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

Function _unixFileControl

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

Source from the content-addressed store, hash-verified

17470 return 0;
17471}
17472function _unixFileControl($0,$1,$2) {
17473 $0 = $0|0;
17474 $1 = $1|0;
17475 $2 = $2|0;
17476 var $$0 = 0, $$0$i34 = 0, $$2$i = 0, $$lobit = 0, $$lobit35 = 0, $$sink$i$i$i = 0, $$sink2$i = 0, $$sink2$i30 = 0, $10 = 0, $100 = 0, $101 = 0, $102 = 0, $103 = 0, $104 = 0, $105 = 0, $106 = 0, $107 = 0, $108 = 0, $109 = 0, $11 = 0;
17477 var $110 = 0, $111 = 0, $112 = 0, $113 = 0, $114 = 0, $115 = 0, $116 = 0, $117 = 0, $118 = 0, $119 = 0, $12 = 0, $120 = 0, $121 = 0, $122 = 0, $123 = 0, $124 = 0, $125 = 0, $126 = 0, $127 = 0, $128 = 0;
17478 var $129 = 0, $13 = 0, $130 = 0, $131 = 0, $132 = 0, $133 = 0, $134 = 0, $135 = 0, $136 = 0, $137 = 0, $138 = 0, $139 = 0, $14 = 0, $140 = 0, $141 = 0, $142 = 0, $143 = 0, $144 = 0, $145 = 0, $146 = 0;
17479 var $147 = 0, $148 = 0, $149 = 0, $15 = 0, $150 = 0, $151 = 0, $152 = 0, $153 = 0, $154 = 0, $155 = 0, $156 = 0, $157 = 0, $158 = 0, $159 = 0, $16 = 0, $160 = 0, $161 = 0, $162 = 0, $163 = 0, $164 = 0;
17480 var $165 = 0, $166 = 0, $167 = 0, $168 = 0, $169 = 0, $17 = 0, $170 = 0, $171 = 0, $172 = 0, $173 = 0, $174 = 0, $175 = 0, $176 = 0, $177 = 0, $178 = 0, $179 = 0, $18 = 0, $180 = 0, $181 = 0, $182 = 0;
17481 var $183 = 0, $184 = 0, $185 = 0, $186 = 0, $187 = 0, $188 = 0, $189 = 0, $19 = 0, $190 = 0, $191 = 0, $192 = 0, $193 = 0, $194 = 0, $195 = 0, $196 = 0, $197 = 0, $198 = 0, $199 = 0, $20 = 0, $200 = 0;
17482 var $201 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0, $25 = 0, $26 = 0, $27 = 0, $28 = 0, $29 = 0, $3 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0, $36 = 0, $37 = 0, $38 = 0;
17483 var $39 = 0, $4 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0, $44 = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0, $49 = 0, $5 = 0, $50 = 0, $51 = 0, $52 = 0, $53 = 0, $54 = 0, $55 = 0, $56 = 0;
17484 var $57 = 0, $58 = 0, $59 = 0, $6 = 0, $60 = 0, $61 = 0, $62 = 0, $63 = 0, $64 = 0, $65 = 0, $66 = 0, $67 = 0, $68 = 0, $69 = 0, $7 = 0, $70 = 0, $71 = 0, $72 = 0, $73 = 0, $74 = 0;
17485 var $75 = 0, $76 = 0, $77 = 0, $78 = 0, $79 = 0, $8 = 0, $80 = 0, $81 = 0, $82 = 0, $83 = 0, $84 = 0, $85 = 0, $86 = 0, $87 = 0, $88 = 0, $89 = 0, $9 = 0, $90 = 0, $91 = 0, $92 = 0;
17486 var $93 = 0, $94 = 0, $95 = 0, $96 = 0, $97 = 0, $98 = 0, $99 = 0, $or$cond$i = 0, $vararg_buffer = 0, label = 0, sp = 0;
17487 sp = STACKTOP;
17488 STACKTOP = STACKTOP + 80|0;
17489 $vararg_buffer = sp;
17490 $3 = sp + 4|0;
17491 do {
17492 switch ($1|0) {
17493 case 1: {
17494 $4 = ((($0)) + 16|0);
17495 $5 = HEAP8[$4>>0]|0;
17496 $6 = $5&255;
17497 HEAP32[$2>>2] = $6;
17498 $$0 = 0;
17499 STACKTOP = sp;return ($$0|0);
17500 break;
17501 }
17502 case 4: {
17503 $7 = ((($0)) + 20|0);
17504 $8 = HEAP32[$7>>2]|0;
17505 HEAP32[$2>>2] = $8;
17506 $$0 = 0;
17507 STACKTOP = sp;return ($$0|0);
17508 break;
17509 }
17510 case 6: {
17511 $9 = HEAP32[$2>>2]|0;
17512 $10 = ((($0)) + 40|0);
17513 HEAP32[$10>>2] = $9;
17514 $$0 = 0;
17515 STACKTOP = sp;return ($$0|0);
17516 break;
17517 }
17518 case 5: {
17519 $11 = $2;
17520 $12 = $11;
17521 $13 = HEAP32[$12>>2]|0;
17522 $14 = (($11) + 4)|0;
17523 $15 = $14;
17524 $16 = HEAP32[$15>>2]|0;
17525 $17 = ((($0)) + 40|0);
17526 $18 = HEAP32[$17>>2]|0;
17527 $19 = ($18|0)>(0);
17528 if (!($19)) {
17529 $$0 = 0;

Callers

nothing calls this directly

Calls 8

_i64AddFunction · 0.85
___remdi3Function · 0.85
_i64SubtractFunction · 0.85
_lseekFunction · 0.85
___errno_locationFunction · 0.85
_sqlite3_mprintfFunction · 0.85
_sqlite3_initializeFunction · 0.85
_unixGetTempnameFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…