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

Function _sqlite3BlobCompare

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

Source from the content-addressed store, hash-verified

33698 STACKTOP = sp;return ($$0|0);
33699}
33700function _sqlite3BlobCompare($0,$1) {
33701 $0 = $0|0;
33702 $1 = $1|0;
33703 var $$ = 0, $$0 = 0, $$07$i = 0, $$07$i30 = 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;
33704 var $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, $39 = 0, $4 = 0, $40 = 0, $41 = 0, $42 = 0;
33705 var $43 = 0, $44 = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
33706 sp = STACKTOP;
33707 $2 = ((($0)) + 12|0);
33708 $3 = HEAP32[$2>>2]|0;
33709 $4 = ((($1)) + 12|0);
33710 $5 = HEAP32[$4>>2]|0;
33711 $6 = ((($0)) + 8|0);
33712 $7 = HEAP16[$6>>1]|0;
33713 $8 = ((($1)) + 8|0);
33714 $9 = HEAP16[$8>>1]|0;
33715 $10 = $9 | $7;
33716 $11 = $10 & 16384;
33717 $12 = ($11<<16>>16)==(0);
33718 if ($12) {
33719 $40 = ((($0)) + 16|0);
33720 $41 = HEAP32[$40>>2]|0;
33721 $42 = ((($1)) + 16|0);
33722 $43 = HEAP32[$42>>2]|0;
33723 $44 = ($3|0)>($5|0);
33724 $45 = $44 ? $5 : $3;
33725 $46 = (_memcmp($41,$43,$45)|0);
33726 $47 = ($46|0)==(0);
33727 $48 = (($3) - ($5))|0;
33728 $$ = $47 ? $48 : $46;
33729 return ($$|0);
33730 }
33731 $13 = $7 & 16384;
33732 $14 = $13 & $9;
33733 $15 = ($14<<16>>16)==(0);
33734 if (!($15)) {
33735 $16 = HEAP32[$0>>2]|0;
33736 $17 = HEAP32[$1>>2]|0;
33737 $18 = (($16) - ($17))|0;
33738 $$0 = $18;
33739 return ($$0|0);
33740 }
33741 $19 = ($13<<16>>16)==(0);
33742 if ($19) {
33743 $30 = ((($0)) + 16|0);
33744 $31 = HEAP32[$30>>2]|0;
33745 $32 = ($3|0)>(0);
33746 L10: do {
33747 if ($32) {
33748 $$07$i30 = 0;
33749 while(1) {
33750 $35 = (($31) + ($$07$i30)|0);
33751 $36 = HEAP8[$35>>0]|0;
33752 $37 = ($36<<24>>24)==(0);
33753 $33 = (($$07$i30) + 1)|0;
33754 if (!($37)) {
33755 $$0 = 1;
33756 break;
33757 }

Callers 1

_sqlite3MemCompareFunction · 0.85

Calls 1

_memcmpFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…