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

Function _unixCheckReservedLock

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

Source from the content-addressed store, hash-verified

20456 STACKTOP = sp;return ($$032$i|0);
20457}
20458function _unixCheckReservedLock($0,$1) {
20459 $0 = $0|0;
20460 $1 = $1|0;
20461 var $$$ = 0, $$0 = 0, $$1 = 0, $$114 = 0, $$2 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $2 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0;
20462 var $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $not$ = 0, $vararg_buffer = 0, label = 0, sp = 0;
20463 sp = STACKTOP;
20464 STACKTOP = STACKTOP + 32|0;
20465 $vararg_buffer = sp;
20466 $2 = sp + 8|0;
20467 $3 = ((($0)) + 8|0);
20468 $4 = HEAP32[$3>>2]|0;
20469 $5 = ((($4)) + 20|0);
20470 $6 = HEAP8[$5>>0]|0;
20471 $7 = ($6&255)>(1);
20472 if ($7) {
20473 $$1 = 0;$$2 = 1;
20474 HEAP32[$1>>2] = $$2;
20475 STACKTOP = sp;return ($$1|0);
20476 }
20477 $8 = ((($4)) + 21|0);
20478 $9 = HEAP8[$8>>0]|0;
20479 $10 = ($9<<24>>24)==(0);
20480 if (!($10)) {
20481 $$1 = 0;$$2 = 0;
20482 HEAP32[$1>>2] = $$2;
20483 STACKTOP = sp;return ($$1|0);
20484 }
20485 $11 = ((($2)) + 2|0);
20486 HEAP16[$11>>1] = 0;
20487 $12 = (1073741824 + 1)|0;
20488 $13 = ((($2)) + 4|0);
20489 HEAP32[$13>>2] = $12;
20490 $14 = ((($2)) + 8|0);
20491 HEAP32[$14>>2] = 1;
20492 HEAP16[$2>>1] = 1;
20493 $15 = HEAP32[(3508)>>2]|0;
20494 $16 = ((($0)) + 12|0);
20495 $17 = HEAP32[$16>>2]|0;
20496 HEAP32[$vararg_buffer>>2] = $2;
20497 $18 = (FUNCTION_TABLE_iiii[$15 & 255]($17,12,$vararg_buffer)|0);
20498 $19 = ($18|0)==(0);
20499 if ($19) {
20500 $23 = HEAP16[$2>>1]|0;
20501 $not$ = ($23<<16>>16)!=(2);
20502 $$$ = $not$&1;
20503 $$0 = 0;$$114 = $$$;
20504 } else {
20505 $20 = (___errno_location()|0);
20506 $21 = HEAP32[$20>>2]|0;
20507 $22 = ((($0)) + 20|0);
20508 HEAP32[$22>>2] = $21;
20509 $$0 = 3594;$$114 = 0;
20510 }
20511 $$1 = $$0;$$2 = $$114;
20512 HEAP32[$1>>2] = $$2;
20513 STACKTOP = sp;return ($$1|0);
20514}
20515function _unixShmMap($0,$1,$2,$3,$4) {

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…