MCPcopy
hub / github.com/sql-js/sql.js / _unixNextSystemCall

Function _unixNextSystemCall

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

Source from the content-addressed store, hash-verified

16813 return ($$06|0);
16814}
16815function _unixNextSystemCall($0,$1) {
16816 $0 = $0|0;
16817 $1 = $1|0;
16818 var $$011 = 0, $$014 = 0, $$2 = 0, $$2$in = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
16819 sp = STACKTOP;
16820 $2 = ($1|0)==(0|0);
16821 L1: do {
16822 if ($2) {
16823 $$2$in = -1;
16824 } else {
16825 $$014 = 0;
16826 while(1) {
16827 $3 = (3420 + (($$014*12)|0)|0);
16828 $4 = HEAP32[$3>>2]|0;
16829 $5 = (_strcmp($1,$4)|0);
16830 $6 = ($5|0)==(0);
16831 if ($6) {
16832 $$2$in = $$014;
16833 break L1;
16834 }
16835 $7 = (($$014) + 1)|0;
16836 $8 = ($7|0)<(28);
16837 if ($8) {
16838 $$014 = $7;
16839 } else {
16840 $$2$in = $7;
16841 break;
16842 }
16843 }
16844 }
16845 } while(0);
16846 while(1) {
16847 $$2 = (($$2$in) + 1)|0;
16848 $9 = ($$2|0)<(29);
16849 if (!($9)) {
16850 $$011 = 0;
16851 label = 7;
16852 break;
16853 }
16854 $10 = (((3420 + (($$2*12)|0)|0)) + 4|0);
16855 $11 = HEAP32[$10>>2]|0;
16856 $12 = ($11|0)==(0|0);
16857 if ($12) {
16858 $$2$in = $$2;
16859 } else {
16860 break;
16861 }
16862 }
16863 if ((label|0) == 7) {
16864 return ($$011|0);
16865 }
16866 $13 = (3420 + (($$2*12)|0)|0);
16867 $14 = HEAP32[$13>>2]|0;
16868 $$011 = $14;
16869 return ($$011|0);
16870}
16871function _dotlockIoFinderImpl($0,$1) {
16872 $0 = $0|0;

Callers

nothing calls this directly

Calls 1

_strcmpFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…