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

Function _unixSetSystemCall

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

Source from the content-addressed store, hash-verified

16710 STACKTOP = sp;return 0;
16711}
16712function _unixSetSystemCall($0,$1,$2) {
16713 $0 = $0|0;
16714 $1 = $1|0;
16715 $2 = $2|0;
16716 var $$ = 0, $$0 = 0, $$02025 = 0, $$126 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $3 = 0, $4 = 0;
16717 var $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $exitcond = 0, label = 0, sp = 0;
16718 sp = STACKTOP;
16719 $3 = ($1|0)==(0|0);
16720 if ($3) {
16721 $$02025 = 0;
16722 while(1) {
16723 $4 = (((3420 + (($$02025*12)|0)|0)) + 8|0);
16724 $5 = HEAP32[$4>>2]|0;
16725 $6 = ($5|0)==(0|0);
16726 if (!($6)) {
16727 $7 = (((3420 + (($$02025*12)|0)|0)) + 4|0);
16728 HEAP32[$7>>2] = $5;
16729 }
16730 $8 = (($$02025) + 1)|0;
16731 $exitcond = ($8|0)==(29);
16732 if ($exitcond) {
16733 $$0 = 0;
16734 break;
16735 } else {
16736 $$02025 = $8;
16737 }
16738 }
16739 return ($$0|0);
16740 } else {
16741 $$126 = 0;
16742 }
16743 while(1) {
16744 $9 = (3420 + (($$126*12)|0)|0);
16745 $10 = HEAP32[$9>>2]|0;
16746 $11 = (_strcmp($1,$10)|0);
16747 $12 = ($11|0)==(0);
16748 if ($12) {
16749 break;
16750 }
16751 $22 = (($$126) + 1)|0;
16752 $23 = ($22>>>0)<(29);
16753 if ($23) {
16754 $$126 = $22;
16755 } else {
16756 $$0 = 12;
16757 label = 10;
16758 break;
16759 }
16760 }
16761 if ((label|0) == 10) {
16762 return ($$0|0);
16763 }
16764 $13 = (((3420 + (($$126*12)|0)|0)) + 8|0);
16765 $14 = HEAP32[$13>>2]|0;
16766 $15 = ($14|0)==(0|0);
16767 if ($15) {
16768 $16 = (((3420 + (($$126*12)|0)|0)) + 4|0);
16769 $17 = HEAP32[$16>>2]|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…