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

Function _vdbePmaReadVarint

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

Source from the content-addressed store, hash-verified

314907 return ($$047|0);
314908}
314909function _vdbePmaReadVarint($0,$1) {
314910 $0 = $0|0;
314911 $1 = $1|0;
314912 var $$029 = 0, $$1 = 0, $$sink = 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, $24 = 0, $25 = 0;
314913 var $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, $39 = 0, $4 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0;
314914 var $44 = 0, $45 = 0, $46 = 0, $47 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $or$cond = 0, label = 0, sp = 0;
314915 sp = STACKTOP;
314916 STACKTOP = STACKTOP + 32|0;
314917 $2 = sp + 8|0;
314918 $3 = sp;
314919 $4 = ((($0)) + 44|0);
314920 $5 = HEAP32[$4>>2]|0;
314921 $6 = ($5|0)==(0|0);
314922 $7 = $0;
314923 $8 = $7;
314924 $9 = HEAP32[$8>>2]|0;
314925 $10 = (($7) + 4)|0;
314926 $11 = $10;
314927 $12 = HEAP32[$11>>2]|0;
314928 do {
314929 if ($6) {
314930 $14 = ((($0)) + 40|0);
314931 $15 = HEAP32[$14>>2]|0;
314932 $16 = ($15|0)<(0);
314933 $17 = $16 << 31 >> 31;
314934 $18 = (___remdi3(($9|0),($12|0),($15|0),($17|0))|0);
314935 $19 = tempRet0;
314936 $20 = ($18|0)!=(0);
314937 $21 = (($15) - ($18))|0;
314938 $22 = ($21|0)>(8);
314939 $or$cond = $20 & $22;
314940 if ($or$cond) {
314941 $23 = ((($0)) + 36|0);
314942 $24 = HEAP32[$23>>2]|0;
314943 $25 = (($24) + ($18)|0);
314944 $$sink = $25;
314945 break;
314946 }
314947 $$029 = 0;
314948 while(1) {
314949 $26 = (_vdbePmaReadBlob($0,1,$3)|0);
314950 $27 = ($26|0)==(0);
314951 if (!($27)) {
314952 label = 9;
314953 break;
314954 }
314955 $28 = HEAP32[$3>>2]|0;
314956 $29 = HEAP8[$28>>0]|0;
314957 $30 = (($$029) + 1)|0;
314958 $31 = $$029 & 15;
314959 $32 = (($2) + ($31)|0);
314960 HEAP8[$32>>0] = $29;
314961 $33 = ($29<<24>>24)<(0);
314962 if ($33) {
314963 $$029 = $30;
314964 } else {
314965 label = 8;
314966 break;

Callers 2

_vdbeMergeEngineLevel0Function · 0.85
_vdbePmaReaderNextFunction · 0.85

Calls 4

___remdi3Function · 0.85
_vdbePmaReadBlobFunction · 0.85
_sqlite3GetVarintFunction · 0.85
_i64AddFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…