MCPcopy Create free account
hub / github.com/sql-js/sql.js / _dotlockUnlock

Function _dotlockUnlock

js/sql-debug.js:17417–17457  ·  view source on GitHub ↗
($0,$1)

Source from the content-addressed store, hash-verified

17415 return ($$0|0);
17416}
17417function _dotlockUnlock($0,$1) {
17418 $0 = $0|0;
17419 $1 = $1|0;
17420 var $$0 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
17421 sp = STACKTOP;
17422 $2 = ((($0)) + 24|0);
17423 $3 = HEAP32[$2>>2]|0;
17424 $4 = ((($0)) + 16|0);
17425 $5 = HEAP8[$4>>0]|0;
17426 $6 = $5&255;
17427 $7 = ($6|0)==($1|0);
17428 if ($7) {
17429 $$0 = 0;
17430 return ($$0|0);
17431 }
17432 $8 = ($1|0)==(1);
17433 if ($8) {
17434 HEAP8[$4>>0] = 1;
17435 $$0 = 0;
17436 return ($$0|0);
17437 }
17438 $9 = HEAP32[(3652)>>2]|0;
17439 $10 = (FUNCTION_TABLE_ii[$9 & 255]($3)|0);
17440 $11 = ($10|0)<(0);
17441 if (!($11)) {
17442 HEAP8[$4>>0] = 0;
17443 $$0 = 0;
17444 return ($$0|0);
17445 }
17446 $12 = (___errno_location()|0);
17447 $13 = HEAP32[$12>>2]|0;
17448 $14 = ($13|0)==(2);
17449 if ($14) {
17450 $$0 = 0;
17451 return ($$0|0);
17452 }
17453 $15 = ((($0)) + 20|0);
17454 HEAP32[$15>>2] = $13;
17455 $$0 = 2058;
17456 return ($$0|0);
17457}
17458function _dotlockCheckReservedLock($0,$1) {
17459 $0 = $0|0;
17460 $1 = $1|0;

Callers

nothing calls this directly

Calls 1

___errno_locationFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…