diff --git a/test/bad_params.asm.js b/test/bad_params.asm.js deleted file mode 100644 index cc5e7ccf8af..00000000000 --- a/test/bad_params.asm.js +++ /dev/null @@ -1,30 +0,0 @@ -function asm(global, env, buffer) { - "use asm"; - - function missing(x, y) { - x = x | 0; - y = +y; - } - - function extra(x, y) { - x = x | 0; - y = +y; - } - - function mix(a) { - a = a | 0; - } - - function ex() { - missing(); - missing(1); - extra(1, +2, 3); - extra(1, +2, 3, 4); - mix(); - mix(1); - mix(1, 2); - } - - return { ex: ex }; -} - diff --git a/test/debugInfo.asm.js b/test/debugInfo.asm.js deleted file mode 100644 index 18555a8b908..00000000000 --- a/test/debugInfo.asm.js +++ /dev/null @@ -1,102 +0,0 @@ -function () { - "use asm"; - var STACKTOP = 0; - function add(x, y) { - x = x | 0; - y = y | 0; - x = x; //@line 5 "tests/hello_world.c" - y = y; //@line 6 "tests/hello_world.c" - x = y; //@line 314159 "tests/other_file.cpp" - return x + y | 0; - } - function ret(x) { - x = x | 0; - x = x << 1; //@line 50 "return.cpp" - return x + 1 | 0; //@line 100 "return.cpp" - } - function opts(x, y) { - x = x | 0; - y = y | 0; - x = (x + y) | 0; //@line 1 "even-opted.cpp" - y = y >> x; //@line 2 "even-opted.cpp" - x = (x | 0) % (y | 0); //@line 3 "even-opted.cpp" - return x + y | 0; - } - function fib($0) { - $0 = $0|0; - var $$0$lcssa = 0, $$01518 = 0, $$01518$phi = 0, $$01617 = 0, $$019 = 0, $1 = 0, $2 = 0, $3 = 0, $exitcond = 0, label = 0, sp = 0; - sp = STACKTOP; - $1 = ($0|0)>(0); //@line 3 "fib.c" - if ($1) { - $$01518 = 0;$$01617 = 0;$$019 = 1; - } else { - $$0$lcssa = 1; - return ($$0$lcssa|0); //@line 8 "fib.c" - } - while(1) { - $2 = (($$019) + ($$01518))|0; //@line 4 "fib.c" - $3 = (($$01617) + 1)|0; //@line 3 "fib.c" - $exitcond = ($3|0)==($0|0); //@line 3 "fib.c" - if ($exitcond) { - $$0$lcssa = $2; - break; - } else { - $$01518$phi = $$019;$$01617 = $3;$$019 = $2;$$01518 = $$01518$phi; - } - } - return ($$0$lcssa|0); //@line 8 "fib.c" - } - function switch_reach($p) { - $p = $p|0; - var $0 = 0, $call = 0, $magic = 0, $rc$0 = 0, $switch$split2D = 0, label = 0, sp = 0; - sp = STACKTOP; - $magic = ((($p)) + 52|0); - $0 = $magic; - $switch$split2D = ($0|0)<(1369188723); - if ($switch$split2D) { - switch ($0|0) { - case -1108210269: { - label = 2; - break; - } - default: { - $rc$0 = 0; - } - } - } else { - switch ($0|0) { - case 1369188723: { - label = 2; - break; - } - default: { - $rc$0 = 0; - } - } - } - if ((label|0) == 2) { - $call = switch_reach($p) | 0; - $rc$0 = $call; - } - switch_reach($p) | 0; - return ($rc$0|0); //@line 59950 "/tmp/emscripten_test_binaryen2_28hnAe/src.c" - } - function nofile() { - nofile(); //@line 1337 - } - function inlineMe(x, y) { - x = x | 0; - y = y | 0; - x = x + y | 0; //@line 120 "inline_me.c" - y = x + y | 0; //@line 121 "inline_me.c" - x = x + y | 0; //@line 122 "inline_me.c" - return x | 0; //@line 123 "inline_me.c" - } - function inlineInto(x, y) { - x = x | 0; - y = y | 0; - return inlineMe(x | 0, y | 0) | 0; //@line 125 "inline_me.c" - } - return { add: add, ret: ret, opts: opts, fib: fib, switch_reach: switch_reach, nofile: nofile, inlineInto: inlineInto }; -} - diff --git a/test/dynamicLibrary.asm.js b/test/dynamicLibrary.asm.js deleted file mode 100644 index 142fd7c9822..00000000000 --- a/test/dynamicLibrary.asm.js +++ /dev/null @@ -1,136 +0,0 @@ -Module["asm"] = (function(global, env, buffer) { - 'almost asm'; - - - var HEAP8 = new global.Int8Array(buffer); - var HEAP16 = new global.Int16Array(buffer); - var HEAP32 = new global.Int32Array(buffer); - var HEAPU8 = new global.Uint8Array(buffer); - var HEAPU16 = new global.Uint16Array(buffer); - var HEAPU32 = new global.Uint32Array(buffer); - var HEAPF32 = new global.Float32Array(buffer); - var HEAPF64 = new global.Float64Array(buffer); - - - var DYNAMICTOP_PTR=env.DYNAMICTOP_PTR|0; - var tempDoublePtr=env.tempDoublePtr|0; - var ABORT=env.ABORT|0; - var memoryBase=env.memoryBase|0; - var tableBase=env.tableBase|0; - - var STACKTOP = 0, STACK_MAX = 0; - - var __THREW__ = 0; - var threwValue = 0; - var setjmpId = 0; - var undef = 0; - var nan = global.NaN, inf = global.Infinity; - var tempInt = 0, tempBigInt = 0, tempBigIntP = 0, tempBigIntS = 0, tempBigIntR = 0.0, tempBigIntI = 0, tempBigIntD = 0, tempValue = 0, tempDouble = 0.0; - var tempRet0 = 0; - - var Math_floor=global.Math.floor; - var Math_abs=global.Math.abs; - var Math_sqrt=global.Math.sqrt; - var Math_pow=global.Math.pow; - var Math_cos=global.Math.cos; - var Math_sin=global.Math.sin; - var Math_tan=global.Math.tan; - var Math_acos=global.Math.acos; - var Math_asin=global.Math.asin; - var Math_atan=global.Math.atan; - var Math_atan2=global.Math.atan2; - var Math_exp=global.Math.exp; - var Math_log=global.Math.log; - var Math_ceil=global.Math.ceil; - var Math_imul=global.Math.imul; - var Math_min=global.Math.min; - var Math_max=global.Math.max; - var Math_clz32=global.Math.clz32; - var Math_fround=global.Math.fround; - var abort=env.abort; - var assert=env.assert; - var enlargeMemory=env.enlargeMemory; - var getTotalMemory=env.getTotalMemory; - var abortOnCannotGrowMemory=env.abortOnCannotGrowMemory; - var abortStackOverflow=env.abortStackOverflow; - var setTempRet0=env.setTempRet0; - var getTempRet0=env.getTempRet0; - var _puts=env._puts; - var tempFloat = Math_fround(0); - const f0 = Math_fround(0); - -// EMSCRIPTEN_START_FUNCS - -function stackAlloc(size) { - size = size|0; - var ret = 0; - ret = STACKTOP; - STACKTOP = (STACKTOP + size)|0; - STACKTOP = (STACKTOP + 15)&-16; - if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(size|0); - - return ret|0; -} -function stackSave() { - return STACKTOP|0; -} -function stackRestore(top) { - top = top|0; - STACKTOP = top; -} -function establishStackSpace(stackBase, stackMax) { - stackBase = stackBase|0; - stackMax = stackMax|0; - STACKTOP = stackBase; - STACK_MAX = stackMax; -} - -function setThrew(threw, value) { - threw = threw|0; - value = value|0; - if ((__THREW__|0) == 0) { - __THREW__ = threw; - threwValue = value; - } -} - -function ___cxx_global_var_init() { - var label = 0, sp = 0; - sp = STACKTOP; - __ZN3FooC2Ev((memoryBase + (5242912) | 0)); - return; -} -function __ZN3FooC2Ev($0) { - $0 = $0|0; - var $1 = 0, label = 0, sp = 0; - sp = STACKTOP; - STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0); - $1 = $0; - (_puts(((memoryBase + (0) | 0)|0))|0); - STACKTOP = sp;return; -} -function __GLOBAL__sub_I_liblib_cpp() { - var label = 0, sp = 0; - sp = STACKTOP; - ___cxx_global_var_init(); - return; -} -function runPostSets() { - var temp = 0; -} -function __post_instantiate() { - STACKTOP = (memoryBase + (32) | 0); - STACK_MAX = STACKTOP + 5242880 | 0; - runPostSets(); - __GLOBAL__sub_I_liblib_cpp(); -} - - - - -// EMSCRIPTEN_END_FUNCS - - - return { __ZN3FooC2Ev: __ZN3FooC2Ev, __post_instantiate: __post_instantiate, runPostSets: runPostSets, _global: 5242912 }; -}) -; \ No newline at end of file diff --git a/test/emcc_O2_hello_world.asm.js b/test/emcc_O2_hello_world.asm.js deleted file mode 100644 index a803b97ffe7..00000000000 --- a/test/emcc_O2_hello_world.asm.js +++ /dev/null @@ -1,2293 +0,0 @@ -Module["asm"] = (function(global,env,buffer) { - - 'use asm'; - - - var HEAP8 = new global.Int8Array(buffer); - var HEAP16 = new global.Int16Array(buffer); - var HEAP32 = new global.Int32Array(buffer); - var HEAPU8 = new global.Uint8Array(buffer); - var HEAPU16 = new global.Uint16Array(buffer); - var HEAPU32 = new global.Uint32Array(buffer); - var HEAPF32 = new global.Float32Array(buffer); - var HEAPF64 = new global.Float64Array(buffer); - - - var STACKTOP=env.STACKTOP|0; - var STACK_MAX=env.STACK_MAX|0; - var tempDoublePtr=env.tempDoublePtr|0; - var ABORT=env.ABORT|0; - - var __THREW__ = 0; - var threwValue = 0; - var setjmpId = 0; - var undef = 0; - var nan = global.NaN, inf = global.Infinity; - var tempInt = 0, tempBigInt = 0, tempBigIntP = 0, tempBigIntS = 0, tempBigIntR = 0.0, tempBigIntI = 0, tempBigIntD = 0, tempValue = 0, tempDouble = 0.0; - - var tempRet0 = 0; - var tempRet1 = 0; - var tempRet2 = 0; - var tempRet3 = 0; - var tempRet4 = 0; - var tempRet5 = 0; - var tempRet6 = 0; - var tempRet7 = 0; - var tempRet8 = 0; - var tempRet9 = 0; - var Math_floor=global.Math.floor; - var Math_abs=global.Math.abs; - var Math_sqrt=global.Math.sqrt; - var Math_pow=global.Math.pow; - var Math_cos=global.Math.cos; - var Math_sin=global.Math.sin; - var Math_tan=global.Math.tan; - var Math_acos=global.Math.acos; - var Math_asin=global.Math.asin; - var Math_atan=global.Math.atan; - var Math_atan2=global.Math.atan2; - var Math_exp=global.Math.exp; - var Math_log=global.Math.log; - var Math_ceil=global.Math.ceil; - var Math_imul=global.Math.imul; - var Math_min=global.Math.min; - var Math_clz32=global.Math.clz32; - var abort=env.abort; - var assert=env.assert; - var invoke_ii=env.invoke_ii; - var invoke_iiii=env.invoke_iiii; - var invoke_vi=env.invoke_vi; - var _pthread_cleanup_pop=env._pthread_cleanup_pop; - var _pthread_self=env._pthread_self; - var _sysconf=env._sysconf; - var ___lock=env.___lock; - var ___syscall6=env.___syscall6; - var ___setErrNo=env.___setErrNo; - var _abort=env._abort; - var _sbrk=env._sbrk; - var _time=env._time; - var _pthread_cleanup_push=env._pthread_cleanup_push; - var _emscripten_memcpy_big=env._emscripten_memcpy_big; - var ___syscall54=env.___syscall54; - var ___unlock=env.___unlock; - var ___syscall140=env.___syscall140; - var _emscripten_set_main_loop_timing=env._emscripten_set_main_loop_timing; - var _emscripten_set_main_loop=env._emscripten_set_main_loop; - var ___syscall146=env.___syscall146; - var tempFloat = 0.0; - -// EMSCRIPTEN_START_FUNCS - -function _malloc(i1) { - i1 = i1 | 0; - var i2 = 0, i3 = 0, i4 = 0, i5 = 0, i6 = 0, i7 = 0, i8 = 0, i9 = 0, i10 = 0, i11 = 0, i12 = 0, i13 = 0, i14 = 0, i15 = 0, i16 = 0, i17 = 0, i18 = 0, i19 = 0, i20 = 0, i21 = 0, i22 = 0, i23 = 0, i24 = 0, i25 = 0, i26 = 0, i27 = 0, i28 = 0, i29 = 0, i30 = 0, i31 = 0, i32 = 0, i33 = 0, i34 = 0, i35 = 0, i36 = 0, i37 = 0, i38 = 0, i39 = 0, i40 = 0, i41 = 0, i42 = 0, i43 = 0, i44 = 0, i45 = 0, i46 = 0, i47 = 0, i48 = 0, i49 = 0, i50 = 0, i51 = 0, i52 = 0, i53 = 0, i54 = 0, i55 = 0, i56 = 0, i57 = 0, i58 = 0, i59 = 0, i60 = 0, i61 = 0, i62 = 0, i63 = 0, i64 = 0, i65 = 0, i66 = 0, i67 = 0, i68 = 0, i69 = 0, i70 = 0, i71 = 0, i72 = 0, i73 = 0, i74 = 0, i75 = 0, i76 = 0, i77 = 0, i78 = 0, i79 = 0, i80 = 0, i81 = 0, i82 = 0, i83 = 0, i84 = 0, i85 = 0, i86 = 0, i87 = 0, i88 = 0, i89 = 0, i90 = 0, i91 = 0, i92 = 0; - do if (i1 >>> 0 < 245) { - i2 = i1 >>> 0 < 11 ? 16 : i1 + 11 & -8; - i3 = i2 >>> 3; - i4 = HEAP32[44] | 0; - i5 = i4 >>> i3; - if (i5 & 3) { - i6 = (i5 & 1 ^ 1) + i3 | 0; - i7 = 216 + (i6 << 1 << 2) | 0; - i8 = i7 + 8 | 0; - i9 = HEAP32[i8 >> 2] | 0; - i10 = i9 + 8 | 0; - i11 = HEAP32[i10 >> 2] | 0; - do if ((i7 | 0) != (i11 | 0)) { - if (i11 >>> 0 < (HEAP32[48] | 0) >>> 0) _abort(); - i12 = i11 + 12 | 0; - if ((HEAP32[i12 >> 2] | 0) == (i9 | 0)) { - HEAP32[i12 >> 2] = i7; - HEAP32[i8 >> 2] = i11; - break; - } else _abort(); - } else HEAP32[44] = i4 & ~(1 << i6); while (0); - i11 = i6 << 3; - HEAP32[i9 + 4 >> 2] = i11 | 3; - i8 = i9 + i11 + 4 | 0; - HEAP32[i8 >> 2] = HEAP32[i8 >> 2] | 1; - i13 = i10; - return i13 | 0; - } - i8 = HEAP32[46] | 0; - if (i2 >>> 0 > i8 >>> 0) { - if (i5) { - i11 = 2 << i3; - i7 = i5 << i3 & (i11 | 0 - i11); - i11 = (i7 & 0 - i7) + -1 | 0; - i7 = i11 >>> 12 & 16; - i12 = i11 >>> i7; - i11 = i12 >>> 5 & 8; - i14 = i12 >>> i11; - i12 = i14 >>> 2 & 4; - i15 = i14 >>> i12; - i14 = i15 >>> 1 & 2; - i16 = i15 >>> i14; - i15 = i16 >>> 1 & 1; - i17 = (i11 | i7 | i12 | i14 | i15) + (i16 >>> i15) | 0; - i15 = 216 + (i17 << 1 << 2) | 0; - i16 = i15 + 8 | 0; - i14 = HEAP32[i16 >> 2] | 0; - i12 = i14 + 8 | 0; - i7 = HEAP32[i12 >> 2] | 0; - do if ((i15 | 0) != (i7 | 0)) { - if (i7 >>> 0 < (HEAP32[48] | 0) >>> 0) _abort(); - i11 = i7 + 12 | 0; - if ((HEAP32[i11 >> 2] | 0) == (i14 | 0)) { - HEAP32[i11 >> 2] = i15; - HEAP32[i16 >> 2] = i7; - i18 = HEAP32[46] | 0; - break; - } else _abort(); - } else { - HEAP32[44] = i4 & ~(1 << i17); - i18 = i8; - } while (0); - i8 = (i17 << 3) - i2 | 0; - HEAP32[i14 + 4 >> 2] = i2 | 3; - i4 = i14 + i2 | 0; - HEAP32[i4 + 4 >> 2] = i8 | 1; - HEAP32[i4 + i8 >> 2] = i8; - if (i18) { - i7 = HEAP32[49] | 0; - i16 = i18 >>> 3; - i15 = 216 + (i16 << 1 << 2) | 0; - i3 = HEAP32[44] | 0; - i5 = 1 << i16; - if (i3 & i5) { - i16 = i15 + 8 | 0; - i10 = HEAP32[i16 >> 2] | 0; - if (i10 >>> 0 < (HEAP32[48] | 0) >>> 0) _abort(); else { - i19 = i16; - i20 = i10; - } - } else { - HEAP32[44] = i3 | i5; - i19 = i15 + 8 | 0; - i20 = i15; - } - HEAP32[i19 >> 2] = i7; - HEAP32[i20 + 12 >> 2] = i7; - HEAP32[i7 + 8 >> 2] = i20; - HEAP32[i7 + 12 >> 2] = i15; - } - HEAP32[46] = i8; - HEAP32[49] = i4; - i13 = i12; - return i13 | 0; - } - i4 = HEAP32[45] | 0; - if (i4) { - i8 = (i4 & 0 - i4) + -1 | 0; - i4 = i8 >>> 12 & 16; - i15 = i8 >>> i4; - i8 = i15 >>> 5 & 8; - i7 = i15 >>> i8; - i15 = i7 >>> 2 & 4; - i5 = i7 >>> i15; - i7 = i5 >>> 1 & 2; - i3 = i5 >>> i7; - i5 = i3 >>> 1 & 1; - i10 = HEAP32[480 + ((i8 | i4 | i15 | i7 | i5) + (i3 >>> i5) << 2) >> 2] | 0; - i5 = (HEAP32[i10 + 4 >> 2] & -8) - i2 | 0; - i3 = i10; - i7 = i10; - while (1) { - i10 = HEAP32[i3 + 16 >> 2] | 0; - if (!i10) { - i15 = HEAP32[i3 + 20 >> 2] | 0; - if (!i15) { - i21 = i5; - i22 = i7; - break; - } else i23 = i15; - } else i23 = i10; - i10 = (HEAP32[i23 + 4 >> 2] & -8) - i2 | 0; - i15 = i10 >>> 0 < i5 >>> 0; - i5 = i15 ? i10 : i5; - i3 = i23; - i7 = i15 ? i23 : i7; - } - i7 = HEAP32[48] | 0; - if (i22 >>> 0 < i7 >>> 0) _abort(); - i3 = i22 + i2 | 0; - if (i22 >>> 0 >= i3 >>> 0) _abort(); - i5 = HEAP32[i22 + 24 >> 2] | 0; - i12 = HEAP32[i22 + 12 >> 2] | 0; - do if ((i12 | 0) == (i22 | 0)) { - i14 = i22 + 20 | 0; - i17 = HEAP32[i14 >> 2] | 0; - if (!i17) { - i15 = i22 + 16 | 0; - i10 = HEAP32[i15 >> 2] | 0; - if (!i10) { - i24 = 0; - break; - } else { - i25 = i10; - i26 = i15; - } - } else { - i25 = i17; - i26 = i14; - } - while (1) { - i14 = i25 + 20 | 0; - i17 = HEAP32[i14 >> 2] | 0; - if (i17) { - i25 = i17; - i26 = i14; - continue; - } - i14 = i25 + 16 | 0; - i17 = HEAP32[i14 >> 2] | 0; - if (!i17) { - i27 = i25; - i28 = i26; - break; - } else { - i25 = i17; - i26 = i14; - } - } - if (i28 >>> 0 < i7 >>> 0) _abort(); else { - HEAP32[i28 >> 2] = 0; - i24 = i27; - break; - } - } else { - i14 = HEAP32[i22 + 8 >> 2] | 0; - if (i14 >>> 0 < i7 >>> 0) _abort(); - i17 = i14 + 12 | 0; - if ((HEAP32[i17 >> 2] | 0) != (i22 | 0)) _abort(); - i15 = i12 + 8 | 0; - if ((HEAP32[i15 >> 2] | 0) == (i22 | 0)) { - HEAP32[i17 >> 2] = i12; - HEAP32[i15 >> 2] = i14; - i24 = i12; - break; - } else _abort(); - } while (0); - do if (i5) { - i12 = HEAP32[i22 + 28 >> 2] | 0; - i7 = 480 + (i12 << 2) | 0; - if ((i22 | 0) == (HEAP32[i7 >> 2] | 0)) { - HEAP32[i7 >> 2] = i24; - if (!i24) { - HEAP32[45] = HEAP32[45] & ~(1 << i12); - break; - } - } else { - if (i5 >>> 0 < (HEAP32[48] | 0) >>> 0) _abort(); - i12 = i5 + 16 | 0; - if ((HEAP32[i12 >> 2] | 0) == (i22 | 0)) HEAP32[i12 >> 2] = i24; else HEAP32[i5 + 20 >> 2] = i24; - if (!i24) break; - } - i12 = HEAP32[48] | 0; - if (i24 >>> 0 < i12 >>> 0) _abort(); - HEAP32[i24 + 24 >> 2] = i5; - i7 = HEAP32[i22 + 16 >> 2] | 0; - do if (i7) if (i7 >>> 0 < i12 >>> 0) _abort(); else { - HEAP32[i24 + 16 >> 2] = i7; - HEAP32[i7 + 24 >> 2] = i24; - break; - } while (0); - i7 = HEAP32[i22 + 20 >> 2] | 0; - if (i7) if (i7 >>> 0 < (HEAP32[48] | 0) >>> 0) _abort(); else { - HEAP32[i24 + 20 >> 2] = i7; - HEAP32[i7 + 24 >> 2] = i24; - break; - } - } while (0); - if (i21 >>> 0 < 16) { - i5 = i21 + i2 | 0; - HEAP32[i22 + 4 >> 2] = i5 | 3; - i7 = i22 + i5 + 4 | 0; - HEAP32[i7 >> 2] = HEAP32[i7 >> 2] | 1; - } else { - HEAP32[i22 + 4 >> 2] = i2 | 3; - HEAP32[i3 + 4 >> 2] = i21 | 1; - HEAP32[i3 + i21 >> 2] = i21; - i7 = HEAP32[46] | 0; - if (i7) { - i5 = HEAP32[49] | 0; - i12 = i7 >>> 3; - i7 = 216 + (i12 << 1 << 2) | 0; - i14 = HEAP32[44] | 0; - i15 = 1 << i12; - if (i14 & i15) { - i12 = i7 + 8 | 0; - i17 = HEAP32[i12 >> 2] | 0; - if (i17 >>> 0 < (HEAP32[48] | 0) >>> 0) _abort(); else { - i29 = i12; - i30 = i17; - } - } else { - HEAP32[44] = i14 | i15; - i29 = i7 + 8 | 0; - i30 = i7; - } - HEAP32[i29 >> 2] = i5; - HEAP32[i30 + 12 >> 2] = i5; - HEAP32[i5 + 8 >> 2] = i30; - HEAP32[i5 + 12 >> 2] = i7; - } - HEAP32[46] = i21; - HEAP32[49] = i3; - } - i13 = i22 + 8 | 0; - return i13 | 0; - } else i31 = i2; - } else i31 = i2; - } else if (i1 >>> 0 <= 4294967231) { - i7 = i1 + 11 | 0; - i5 = i7 & -8; - i15 = HEAP32[45] | 0; - if (i15) { - i14 = 0 - i5 | 0; - i17 = i7 >>> 8; - if (i17) if (i5 >>> 0 > 16777215) i32 = 31; else { - i7 = (i17 + 1048320 | 0) >>> 16 & 8; - i12 = i17 << i7; - i17 = (i12 + 520192 | 0) >>> 16 & 4; - i10 = i12 << i17; - i12 = (i10 + 245760 | 0) >>> 16 & 2; - i4 = 14 - (i17 | i7 | i12) + (i10 << i12 >>> 15) | 0; - i32 = i5 >>> (i4 + 7 | 0) & 1 | i4 << 1; - } else i32 = 0; - i4 = HEAP32[480 + (i32 << 2) >> 2] | 0; - L123 : do if (!i4) { - i33 = i14; - i34 = 0; - i35 = 0; - i36 = 86; - } else { - i12 = i14; - i10 = 0; - i7 = i5 << ((i32 | 0) == 31 ? 0 : 25 - (i32 >>> 1) | 0); - i17 = i4; - i8 = 0; - while (1) { - i16 = HEAP32[i17 + 4 >> 2] & -8; - i9 = i16 - i5 | 0; - if (i9 >>> 0 < i12 >>> 0) if ((i16 | 0) == (i5 | 0)) { - i37 = i9; - i38 = i17; - i39 = i17; - i36 = 90; - break L123; - } else { - i40 = i9; - i41 = i17; - } else { - i40 = i12; - i41 = i8; - } - i9 = HEAP32[i17 + 20 >> 2] | 0; - i17 = HEAP32[i17 + 16 + (i7 >>> 31 << 2) >> 2] | 0; - i16 = (i9 | 0) == 0 | (i9 | 0) == (i17 | 0) ? i10 : i9; - i9 = (i17 | 0) == 0; - if (i9) { - i33 = i40; - i34 = i16; - i35 = i41; - i36 = 86; - break; - } else { - i12 = i40; - i10 = i16; - i7 = i7 << (i9 & 1 ^ 1); - i8 = i41; - } - } - } while (0); - if ((i36 | 0) == 86) { - if ((i34 | 0) == 0 & (i35 | 0) == 0) { - i4 = 2 << i32; - i14 = i15 & (i4 | 0 - i4); - if (!i14) { - i31 = i5; - break; - } - i4 = (i14 & 0 - i14) + -1 | 0; - i14 = i4 >>> 12 & 16; - i2 = i4 >>> i14; - i4 = i2 >>> 5 & 8; - i3 = i2 >>> i4; - i2 = i3 >>> 2 & 4; - i8 = i3 >>> i2; - i3 = i8 >>> 1 & 2; - i7 = i8 >>> i3; - i8 = i7 >>> 1 & 1; - i42 = HEAP32[480 + ((i4 | i14 | i2 | i3 | i8) + (i7 >>> i8) << 2) >> 2] | 0; - } else i42 = i34; - if (!i42) { - i43 = i33; - i44 = i35; - } else { - i37 = i33; - i38 = i42; - i39 = i35; - i36 = 90; - } - } - if ((i36 | 0) == 90) while (1) { - i36 = 0; - i8 = (HEAP32[i38 + 4 >> 2] & -8) - i5 | 0; - i7 = i8 >>> 0 < i37 >>> 0; - i3 = i7 ? i8 : i37; - i8 = i7 ? i38 : i39; - i7 = HEAP32[i38 + 16 >> 2] | 0; - if (i7) { - i37 = i3; - i38 = i7; - i39 = i8; - i36 = 90; - continue; - } - i38 = HEAP32[i38 + 20 >> 2] | 0; - if (!i38) { - i43 = i3; - i44 = i8; - break; - } else { - i37 = i3; - i39 = i8; - i36 = 90; - } - } - if ((i44 | 0) != 0 ? i43 >>> 0 < ((HEAP32[46] | 0) - i5 | 0) >>> 0 : 0) { - i15 = HEAP32[48] | 0; - if (i44 >>> 0 < i15 >>> 0) _abort(); - i8 = i44 + i5 | 0; - if (i44 >>> 0 >= i8 >>> 0) _abort(); - i3 = HEAP32[i44 + 24 >> 2] | 0; - i7 = HEAP32[i44 + 12 >> 2] | 0; - do if ((i7 | 0) == (i44 | 0)) { - i2 = i44 + 20 | 0; - i14 = HEAP32[i2 >> 2] | 0; - if (!i14) { - i4 = i44 + 16 | 0; - i10 = HEAP32[i4 >> 2] | 0; - if (!i10) { - i45 = 0; - break; - } else { - i46 = i10; - i47 = i4; - } - } else { - i46 = i14; - i47 = i2; - } - while (1) { - i2 = i46 + 20 | 0; - i14 = HEAP32[i2 >> 2] | 0; - if (i14) { - i46 = i14; - i47 = i2; - continue; - } - i2 = i46 + 16 | 0; - i14 = HEAP32[i2 >> 2] | 0; - if (!i14) { - i48 = i46; - i49 = i47; - break; - } else { - i46 = i14; - i47 = i2; - } - } - if (i49 >>> 0 < i15 >>> 0) _abort(); else { - HEAP32[i49 >> 2] = 0; - i45 = i48; - break; - } - } else { - i2 = HEAP32[i44 + 8 >> 2] | 0; - if (i2 >>> 0 < i15 >>> 0) _abort(); - i14 = i2 + 12 | 0; - if ((HEAP32[i14 >> 2] | 0) != (i44 | 0)) _abort(); - i4 = i7 + 8 | 0; - if ((HEAP32[i4 >> 2] | 0) == (i44 | 0)) { - HEAP32[i14 >> 2] = i7; - HEAP32[i4 >> 2] = i2; - i45 = i7; - break; - } else _abort(); - } while (0); - do if (i3) { - i7 = HEAP32[i44 + 28 >> 2] | 0; - i15 = 480 + (i7 << 2) | 0; - if ((i44 | 0) == (HEAP32[i15 >> 2] | 0)) { - HEAP32[i15 >> 2] = i45; - if (!i45) { - HEAP32[45] = HEAP32[45] & ~(1 << i7); - break; - } - } else { - if (i3 >>> 0 < (HEAP32[48] | 0) >>> 0) _abort(); - i7 = i3 + 16 | 0; - if ((HEAP32[i7 >> 2] | 0) == (i44 | 0)) HEAP32[i7 >> 2] = i45; else HEAP32[i3 + 20 >> 2] = i45; - if (!i45) break; - } - i7 = HEAP32[48] | 0; - if (i45 >>> 0 < i7 >>> 0) _abort(); - HEAP32[i45 + 24 >> 2] = i3; - i15 = HEAP32[i44 + 16 >> 2] | 0; - do if (i15) if (i15 >>> 0 < i7 >>> 0) _abort(); else { - HEAP32[i45 + 16 >> 2] = i15; - HEAP32[i15 + 24 >> 2] = i45; - break; - } while (0); - i15 = HEAP32[i44 + 20 >> 2] | 0; - if (i15) if (i15 >>> 0 < (HEAP32[48] | 0) >>> 0) _abort(); else { - HEAP32[i45 + 20 >> 2] = i15; - HEAP32[i15 + 24 >> 2] = i45; - break; - } - } while (0); - do if (i43 >>> 0 >= 16) { - HEAP32[i44 + 4 >> 2] = i5 | 3; - HEAP32[i8 + 4 >> 2] = i43 | 1; - HEAP32[i8 + i43 >> 2] = i43; - i3 = i43 >>> 3; - if (i43 >>> 0 < 256) { - i15 = 216 + (i3 << 1 << 2) | 0; - i7 = HEAP32[44] | 0; - i2 = 1 << i3; - if (i7 & i2) { - i3 = i15 + 8 | 0; - i4 = HEAP32[i3 >> 2] | 0; - if (i4 >>> 0 < (HEAP32[48] | 0) >>> 0) _abort(); else { - i50 = i3; - i51 = i4; - } - } else { - HEAP32[44] = i7 | i2; - i50 = i15 + 8 | 0; - i51 = i15; - } - HEAP32[i50 >> 2] = i8; - HEAP32[i51 + 12 >> 2] = i8; - HEAP32[i8 + 8 >> 2] = i51; - HEAP32[i8 + 12 >> 2] = i15; - break; - } - i15 = i43 >>> 8; - if (i15) if (i43 >>> 0 > 16777215) i52 = 31; else { - i2 = (i15 + 1048320 | 0) >>> 16 & 8; - i7 = i15 << i2; - i15 = (i7 + 520192 | 0) >>> 16 & 4; - i4 = i7 << i15; - i7 = (i4 + 245760 | 0) >>> 16 & 2; - i3 = 14 - (i15 | i2 | i7) + (i4 << i7 >>> 15) | 0; - i52 = i43 >>> (i3 + 7 | 0) & 1 | i3 << 1; - } else i52 = 0; - i3 = 480 + (i52 << 2) | 0; - HEAP32[i8 + 28 >> 2] = i52; - i7 = i8 + 16 | 0; - HEAP32[i7 + 4 >> 2] = 0; - HEAP32[i7 >> 2] = 0; - i7 = HEAP32[45] | 0; - i4 = 1 << i52; - if (!(i7 & i4)) { - HEAP32[45] = i7 | i4; - HEAP32[i3 >> 2] = i8; - HEAP32[i8 + 24 >> 2] = i3; - HEAP32[i8 + 12 >> 2] = i8; - HEAP32[i8 + 8 >> 2] = i8; - break; - } - i4 = i43 << ((i52 | 0) == 31 ? 0 : 25 - (i52 >>> 1) | 0); - i7 = HEAP32[i3 >> 2] | 0; - while (1) { - if ((HEAP32[i7 + 4 >> 2] & -8 | 0) == (i43 | 0)) { - i53 = i7; - i36 = 148; - break; - } - i3 = i7 + 16 + (i4 >>> 31 << 2) | 0; - i2 = HEAP32[i3 >> 2] | 0; - if (!i2) { - i54 = i3; - i55 = i7; - i36 = 145; - break; - } else { - i4 = i4 << 1; - i7 = i2; - } - } - if ((i36 | 0) == 145) if (i54 >>> 0 < (HEAP32[48] | 0) >>> 0) _abort(); else { - HEAP32[i54 >> 2] = i8; - HEAP32[i8 + 24 >> 2] = i55; - HEAP32[i8 + 12 >> 2] = i8; - HEAP32[i8 + 8 >> 2] = i8; - break; - } else if ((i36 | 0) == 148) { - i7 = i53 + 8 | 0; - i4 = HEAP32[i7 >> 2] | 0; - i2 = HEAP32[48] | 0; - if (i4 >>> 0 >= i2 >>> 0 & i53 >>> 0 >= i2 >>> 0) { - HEAP32[i4 + 12 >> 2] = i8; - HEAP32[i7 >> 2] = i8; - HEAP32[i8 + 8 >> 2] = i4; - HEAP32[i8 + 12 >> 2] = i53; - HEAP32[i8 + 24 >> 2] = 0; - break; - } else _abort(); - } - } else { - i4 = i43 + i5 | 0; - HEAP32[i44 + 4 >> 2] = i4 | 3; - i7 = i44 + i4 + 4 | 0; - HEAP32[i7 >> 2] = HEAP32[i7 >> 2] | 1; - } while (0); - i13 = i44 + 8 | 0; - return i13 | 0; - } else i31 = i5; - } else i31 = i5; - } else i31 = -1; while (0); - i44 = HEAP32[46] | 0; - if (i44 >>> 0 >= i31 >>> 0) { - i43 = i44 - i31 | 0; - i53 = HEAP32[49] | 0; - if (i43 >>> 0 > 15) { - i55 = i53 + i31 | 0; - HEAP32[49] = i55; - HEAP32[46] = i43; - HEAP32[i55 + 4 >> 2] = i43 | 1; - HEAP32[i55 + i43 >> 2] = i43; - HEAP32[i53 + 4 >> 2] = i31 | 3; - } else { - HEAP32[46] = 0; - HEAP32[49] = 0; - HEAP32[i53 + 4 >> 2] = i44 | 3; - i43 = i53 + i44 + 4 | 0; - HEAP32[i43 >> 2] = HEAP32[i43 >> 2] | 1; - } - i13 = i53 + 8 | 0; - return i13 | 0; - } - i53 = HEAP32[47] | 0; - if (i53 >>> 0 > i31 >>> 0) { - i43 = i53 - i31 | 0; - HEAP32[47] = i43; - i53 = HEAP32[50] | 0; - i44 = i53 + i31 | 0; - HEAP32[50] = i44; - HEAP32[i44 + 4 >> 2] = i43 | 1; - HEAP32[i53 + 4 >> 2] = i31 | 3; - i13 = i53 + 8 | 0; - return i13 | 0; - } - do if (!(HEAP32[162] | 0)) { - i53 = _sysconf(30) | 0; - if (!(i53 + -1 & i53)) { - HEAP32[164] = i53; - HEAP32[163] = i53; - HEAP32[165] = -1; - HEAP32[166] = -1; - HEAP32[167] = 0; - HEAP32[155] = 0; - HEAP32[162] = (_time(0) | 0) & -16 ^ 1431655768; - break; - } else _abort(); - } while (0); - i53 = i31 + 48 | 0; - i43 = HEAP32[164] | 0; - i44 = i31 + 47 | 0; - i55 = i43 + i44 | 0; - i54 = 0 - i43 | 0; - i43 = i55 & i54; - if (i43 >>> 0 <= i31 >>> 0) { - i13 = 0; - return i13 | 0; - } - i52 = HEAP32[154] | 0; - if ((i52 | 0) != 0 ? (i51 = HEAP32[152] | 0, i50 = i51 + i43 | 0, i50 >>> 0 <= i51 >>> 0 | i50 >>> 0 > i52 >>> 0) : 0) { - i13 = 0; - return i13 | 0; - } - L257 : do if (!(HEAP32[155] & 4)) { - i52 = HEAP32[50] | 0; - L259 : do if (i52) { - i50 = 624; - while (1) { - i51 = HEAP32[i50 >> 2] | 0; - if (i51 >>> 0 <= i52 >>> 0 ? (i45 = i50 + 4 | 0, (i51 + (HEAP32[i45 >> 2] | 0) | 0) >>> 0 > i52 >>> 0) : 0) { - i56 = i50; - i57 = i45; - break; - } - i50 = HEAP32[i50 + 8 >> 2] | 0; - if (!i50) { - i36 = 173; - break L259; - } - } - i50 = i55 - (HEAP32[47] | 0) & i54; - if (i50 >>> 0 < 2147483647) { - i45 = _sbrk(i50 | 0) | 0; - if ((i45 | 0) == ((HEAP32[i56 >> 2] | 0) + (HEAP32[i57 >> 2] | 0) | 0)) { - if ((i45 | 0) != (-1 | 0)) { - i58 = i45; - i59 = i50; - i36 = 193; - break L257; - } - } else { - i60 = i45; - i61 = i50; - i36 = 183; - } - } - } else i36 = 173; while (0); - do if ((i36 | 0) == 173 ? (i52 = _sbrk(0) | 0, (i52 | 0) != (-1 | 0)) : 0) { - i5 = i52; - i50 = HEAP32[163] | 0; - i45 = i50 + -1 | 0; - if (!(i45 & i5)) i62 = i43; else i62 = i43 - i5 + (i45 + i5 & 0 - i50) | 0; - i50 = HEAP32[152] | 0; - i5 = i50 + i62 | 0; - if (i62 >>> 0 > i31 >>> 0 & i62 >>> 0 < 2147483647) { - i45 = HEAP32[154] | 0; - if ((i45 | 0) != 0 ? i5 >>> 0 <= i50 >>> 0 | i5 >>> 0 > i45 >>> 0 : 0) break; - i45 = _sbrk(i62 | 0) | 0; - if ((i45 | 0) == (i52 | 0)) { - i58 = i52; - i59 = i62; - i36 = 193; - break L257; - } else { - i60 = i45; - i61 = i62; - i36 = 183; - } - } - } while (0); - L279 : do if ((i36 | 0) == 183) { - i45 = 0 - i61 | 0; - do if (i53 >>> 0 > i61 >>> 0 & (i61 >>> 0 < 2147483647 & (i60 | 0) != (-1 | 0)) ? (i52 = HEAP32[164] | 0, i5 = i44 - i61 + i52 & 0 - i52, i5 >>> 0 < 2147483647) : 0) if ((_sbrk(i5 | 0) | 0) == (-1 | 0)) { - _sbrk(i45 | 0) | 0; - break L279; - } else { - i63 = i5 + i61 | 0; - break; - } else i63 = i61; while (0); - if ((i60 | 0) != (-1 | 0)) { - i58 = i60; - i59 = i63; - i36 = 193; - break L257; - } - } while (0); - HEAP32[155] = HEAP32[155] | 4; - i36 = 190; - } else i36 = 190; while (0); - if ((((i36 | 0) == 190 ? i43 >>> 0 < 2147483647 : 0) ? (i63 = _sbrk(i43 | 0) | 0, i43 = _sbrk(0) | 0, i63 >>> 0 < i43 >>> 0 & ((i63 | 0) != (-1 | 0) & (i43 | 0) != (-1 | 0))) : 0) ? (i60 = i43 - i63 | 0, i60 >>> 0 > (i31 + 40 | 0) >>> 0) : 0) { - i58 = i63; - i59 = i60; - i36 = 193; - } - if ((i36 | 0) == 193) { - i60 = (HEAP32[152] | 0) + i59 | 0; - HEAP32[152] = i60; - if (i60 >>> 0 > (HEAP32[153] | 0) >>> 0) HEAP32[153] = i60; - i60 = HEAP32[50] | 0; - do if (i60) { - i63 = 624; - do { - i43 = HEAP32[i63 >> 2] | 0; - i61 = i63 + 4 | 0; - i44 = HEAP32[i61 >> 2] | 0; - if ((i58 | 0) == (i43 + i44 | 0)) { - i64 = i43; - i65 = i61; - i66 = i44; - i67 = i63; - i36 = 203; - break; - } - i63 = HEAP32[i63 + 8 >> 2] | 0; - } while ((i63 | 0) != 0); - if (((i36 | 0) == 203 ? (HEAP32[i67 + 12 >> 2] & 8 | 0) == 0 : 0) ? i60 >>> 0 < i58 >>> 0 & i60 >>> 0 >= i64 >>> 0 : 0) { - HEAP32[i65 >> 2] = i66 + i59; - i63 = i60 + 8 | 0; - i44 = (i63 & 7 | 0) == 0 ? 0 : 0 - i63 & 7; - i63 = i60 + i44 | 0; - i61 = i59 - i44 + (HEAP32[47] | 0) | 0; - HEAP32[50] = i63; - HEAP32[47] = i61; - HEAP32[i63 + 4 >> 2] = i61 | 1; - HEAP32[i63 + i61 + 4 >> 2] = 40; - HEAP32[51] = HEAP32[166]; - break; - } - i61 = HEAP32[48] | 0; - if (i58 >>> 0 < i61 >>> 0) { - HEAP32[48] = i58; - i68 = i58; - } else i68 = i61; - i61 = i58 + i59 | 0; - i63 = 624; - while (1) { - if ((HEAP32[i63 >> 2] | 0) == (i61 | 0)) { - i69 = i63; - i70 = i63; - i36 = 211; - break; - } - i63 = HEAP32[i63 + 8 >> 2] | 0; - if (!i63) { - i71 = 624; - break; - } - } - if ((i36 | 0) == 211) if (!(HEAP32[i70 + 12 >> 2] & 8)) { - HEAP32[i69 >> 2] = i58; - i63 = i70 + 4 | 0; - HEAP32[i63 >> 2] = (HEAP32[i63 >> 2] | 0) + i59; - i63 = i58 + 8 | 0; - i44 = i58 + ((i63 & 7 | 0) == 0 ? 0 : 0 - i63 & 7) | 0; - i63 = i61 + 8 | 0; - i43 = i61 + ((i63 & 7 | 0) == 0 ? 0 : 0 - i63 & 7) | 0; - i63 = i44 + i31 | 0; - i53 = i43 - i44 - i31 | 0; - HEAP32[i44 + 4 >> 2] = i31 | 3; - do if ((i43 | 0) != (i60 | 0)) { - if ((i43 | 0) == (HEAP32[49] | 0)) { - i62 = (HEAP32[46] | 0) + i53 | 0; - HEAP32[46] = i62; - HEAP32[49] = i63; - HEAP32[i63 + 4 >> 2] = i62 | 1; - HEAP32[i63 + i62 >> 2] = i62; - break; - } - i62 = HEAP32[i43 + 4 >> 2] | 0; - if ((i62 & 3 | 0) == 1) { - i57 = i62 & -8; - i56 = i62 >>> 3; - L331 : do if (i62 >>> 0 >= 256) { - i54 = HEAP32[i43 + 24 >> 2] | 0; - i55 = HEAP32[i43 + 12 >> 2] | 0; - do if ((i55 | 0) == (i43 | 0)) { - i45 = i43 + 16 | 0; - i5 = i45 + 4 | 0; - i52 = HEAP32[i5 >> 2] | 0; - if (!i52) { - i50 = HEAP32[i45 >> 2] | 0; - if (!i50) { - i72 = 0; - break; - } else { - i73 = i50; - i74 = i45; - } - } else { - i73 = i52; - i74 = i5; - } - while (1) { - i5 = i73 + 20 | 0; - i52 = HEAP32[i5 >> 2] | 0; - if (i52) { - i73 = i52; - i74 = i5; - continue; - } - i5 = i73 + 16 | 0; - i52 = HEAP32[i5 >> 2] | 0; - if (!i52) { - i75 = i73; - i76 = i74; - break; - } else { - i73 = i52; - i74 = i5; - } - } - if (i76 >>> 0 < i68 >>> 0) _abort(); else { - HEAP32[i76 >> 2] = 0; - i72 = i75; - break; - } - } else { - i5 = HEAP32[i43 + 8 >> 2] | 0; - if (i5 >>> 0 < i68 >>> 0) _abort(); - i52 = i5 + 12 | 0; - if ((HEAP32[i52 >> 2] | 0) != (i43 | 0)) _abort(); - i45 = i55 + 8 | 0; - if ((HEAP32[i45 >> 2] | 0) == (i43 | 0)) { - HEAP32[i52 >> 2] = i55; - HEAP32[i45 >> 2] = i5; - i72 = i55; - break; - } else _abort(); - } while (0); - if (!i54) break; - i55 = HEAP32[i43 + 28 >> 2] | 0; - i5 = 480 + (i55 << 2) | 0; - do if ((i43 | 0) != (HEAP32[i5 >> 2] | 0)) { - if (i54 >>> 0 < (HEAP32[48] | 0) >>> 0) _abort(); - i45 = i54 + 16 | 0; - if ((HEAP32[i45 >> 2] | 0) == (i43 | 0)) HEAP32[i45 >> 2] = i72; else HEAP32[i54 + 20 >> 2] = i72; - if (!i72) break L331; - } else { - HEAP32[i5 >> 2] = i72; - if (i72) break; - HEAP32[45] = HEAP32[45] & ~(1 << i55); - break L331; - } while (0); - i55 = HEAP32[48] | 0; - if (i72 >>> 0 < i55 >>> 0) _abort(); - HEAP32[i72 + 24 >> 2] = i54; - i5 = i43 + 16 | 0; - i45 = HEAP32[i5 >> 2] | 0; - do if (i45) if (i45 >>> 0 < i55 >>> 0) _abort(); else { - HEAP32[i72 + 16 >> 2] = i45; - HEAP32[i45 + 24 >> 2] = i72; - break; - } while (0); - i45 = HEAP32[i5 + 4 >> 2] | 0; - if (!i45) break; - if (i45 >>> 0 < (HEAP32[48] | 0) >>> 0) _abort(); else { - HEAP32[i72 + 20 >> 2] = i45; - HEAP32[i45 + 24 >> 2] = i72; - break; - } - } else { - i45 = HEAP32[i43 + 8 >> 2] | 0; - i55 = HEAP32[i43 + 12 >> 2] | 0; - i54 = 216 + (i56 << 1 << 2) | 0; - do if ((i45 | 0) != (i54 | 0)) { - if (i45 >>> 0 < i68 >>> 0) _abort(); - if ((HEAP32[i45 + 12 >> 2] | 0) == (i43 | 0)) break; - _abort(); - } while (0); - if ((i55 | 0) == (i45 | 0)) { - HEAP32[44] = HEAP32[44] & ~(1 << i56); - break; - } - do if ((i55 | 0) == (i54 | 0)) i77 = i55 + 8 | 0; else { - if (i55 >>> 0 < i68 >>> 0) _abort(); - i5 = i55 + 8 | 0; - if ((HEAP32[i5 >> 2] | 0) == (i43 | 0)) { - i77 = i5; - break; - } - _abort(); - } while (0); - HEAP32[i45 + 12 >> 2] = i55; - HEAP32[i77 >> 2] = i45; - } while (0); - i78 = i43 + i57 | 0; - i79 = i57 + i53 | 0; - } else { - i78 = i43; - i79 = i53; - } - i56 = i78 + 4 | 0; - HEAP32[i56 >> 2] = HEAP32[i56 >> 2] & -2; - HEAP32[i63 + 4 >> 2] = i79 | 1; - HEAP32[i63 + i79 >> 2] = i79; - i56 = i79 >>> 3; - if (i79 >>> 0 < 256) { - i62 = 216 + (i56 << 1 << 2) | 0; - i54 = HEAP32[44] | 0; - i5 = 1 << i56; - do if (!(i54 & i5)) { - HEAP32[44] = i54 | i5; - i80 = i62 + 8 | 0; - i81 = i62; - } else { - i56 = i62 + 8 | 0; - i52 = HEAP32[i56 >> 2] | 0; - if (i52 >>> 0 >= (HEAP32[48] | 0) >>> 0) { - i80 = i56; - i81 = i52; - break; - } - _abort(); - } while (0); - HEAP32[i80 >> 2] = i63; - HEAP32[i81 + 12 >> 2] = i63; - HEAP32[i63 + 8 >> 2] = i81; - HEAP32[i63 + 12 >> 2] = i62; - break; - } - i5 = i79 >>> 8; - do if (!i5) i82 = 0; else { - if (i79 >>> 0 > 16777215) { - i82 = 31; - break; - } - i54 = (i5 + 1048320 | 0) >>> 16 & 8; - i57 = i5 << i54; - i52 = (i57 + 520192 | 0) >>> 16 & 4; - i56 = i57 << i52; - i57 = (i56 + 245760 | 0) >>> 16 & 2; - i50 = 14 - (i52 | i54 | i57) + (i56 << i57 >>> 15) | 0; - i82 = i79 >>> (i50 + 7 | 0) & 1 | i50 << 1; - } while (0); - i5 = 480 + (i82 << 2) | 0; - HEAP32[i63 + 28 >> 2] = i82; - i62 = i63 + 16 | 0; - HEAP32[i62 + 4 >> 2] = 0; - HEAP32[i62 >> 2] = 0; - i62 = HEAP32[45] | 0; - i50 = 1 << i82; - if (!(i62 & i50)) { - HEAP32[45] = i62 | i50; - HEAP32[i5 >> 2] = i63; - HEAP32[i63 + 24 >> 2] = i5; - HEAP32[i63 + 12 >> 2] = i63; - HEAP32[i63 + 8 >> 2] = i63; - break; - } - i50 = i79 << ((i82 | 0) == 31 ? 0 : 25 - (i82 >>> 1) | 0); - i62 = HEAP32[i5 >> 2] | 0; - while (1) { - if ((HEAP32[i62 + 4 >> 2] & -8 | 0) == (i79 | 0)) { - i83 = i62; - i36 = 281; - break; - } - i5 = i62 + 16 + (i50 >>> 31 << 2) | 0; - i57 = HEAP32[i5 >> 2] | 0; - if (!i57) { - i84 = i5; - i85 = i62; - i36 = 278; - break; - } else { - i50 = i50 << 1; - i62 = i57; - } - } - if ((i36 | 0) == 278) if (i84 >>> 0 < (HEAP32[48] | 0) >>> 0) _abort(); else { - HEAP32[i84 >> 2] = i63; - HEAP32[i63 + 24 >> 2] = i85; - HEAP32[i63 + 12 >> 2] = i63; - HEAP32[i63 + 8 >> 2] = i63; - break; - } else if ((i36 | 0) == 281) { - i62 = i83 + 8 | 0; - i50 = HEAP32[i62 >> 2] | 0; - i57 = HEAP32[48] | 0; - if (i50 >>> 0 >= i57 >>> 0 & i83 >>> 0 >= i57 >>> 0) { - HEAP32[i50 + 12 >> 2] = i63; - HEAP32[i62 >> 2] = i63; - HEAP32[i63 + 8 >> 2] = i50; - HEAP32[i63 + 12 >> 2] = i83; - HEAP32[i63 + 24 >> 2] = 0; - break; - } else _abort(); - } - } else { - i50 = (HEAP32[47] | 0) + i53 | 0; - HEAP32[47] = i50; - HEAP32[50] = i63; - HEAP32[i63 + 4 >> 2] = i50 | 1; - } while (0); - i13 = i44 + 8 | 0; - return i13 | 0; - } else i71 = 624; - while (1) { - i63 = HEAP32[i71 >> 2] | 0; - if (i63 >>> 0 <= i60 >>> 0 ? (i53 = i63 + (HEAP32[i71 + 4 >> 2] | 0) | 0, i53 >>> 0 > i60 >>> 0) : 0) { - i86 = i53; - break; - } - i71 = HEAP32[i71 + 8 >> 2] | 0; - } - i44 = i86 + -47 | 0; - i53 = i44 + 8 | 0; - i63 = i44 + ((i53 & 7 | 0) == 0 ? 0 : 0 - i53 & 7) | 0; - i53 = i60 + 16 | 0; - i44 = i63 >>> 0 < i53 >>> 0 ? i60 : i63; - i63 = i44 + 8 | 0; - i43 = i58 + 8 | 0; - i61 = (i43 & 7 | 0) == 0 ? 0 : 0 - i43 & 7; - i43 = i58 + i61 | 0; - i50 = i59 + -40 - i61 | 0; - HEAP32[50] = i43; - HEAP32[47] = i50; - HEAP32[i43 + 4 >> 2] = i50 | 1; - HEAP32[i43 + i50 + 4 >> 2] = 40; - HEAP32[51] = HEAP32[166]; - i50 = i44 + 4 | 0; - HEAP32[i50 >> 2] = 27; - HEAP32[i63 >> 2] = HEAP32[156]; - HEAP32[i63 + 4 >> 2] = HEAP32[157]; - HEAP32[i63 + 8 >> 2] = HEAP32[158]; - HEAP32[i63 + 12 >> 2] = HEAP32[159]; - HEAP32[156] = i58; - HEAP32[157] = i59; - HEAP32[159] = 0; - HEAP32[158] = i63; - i63 = i44 + 24 | 0; - do { - i63 = i63 + 4 | 0; - HEAP32[i63 >> 2] = 7; - } while ((i63 + 4 | 0) >>> 0 < i86 >>> 0); - if ((i44 | 0) != (i60 | 0)) { - i63 = i44 - i60 | 0; - HEAP32[i50 >> 2] = HEAP32[i50 >> 2] & -2; - HEAP32[i60 + 4 >> 2] = i63 | 1; - HEAP32[i44 >> 2] = i63; - i43 = i63 >>> 3; - if (i63 >>> 0 < 256) { - i61 = 216 + (i43 << 1 << 2) | 0; - i62 = HEAP32[44] | 0; - i57 = 1 << i43; - if (i62 & i57) { - i43 = i61 + 8 | 0; - i5 = HEAP32[i43 >> 2] | 0; - if (i5 >>> 0 < (HEAP32[48] | 0) >>> 0) _abort(); else { - i87 = i43; - i88 = i5; - } - } else { - HEAP32[44] = i62 | i57; - i87 = i61 + 8 | 0; - i88 = i61; - } - HEAP32[i87 >> 2] = i60; - HEAP32[i88 + 12 >> 2] = i60; - HEAP32[i60 + 8 >> 2] = i88; - HEAP32[i60 + 12 >> 2] = i61; - break; - } - i61 = i63 >>> 8; - if (i61) if (i63 >>> 0 > 16777215) i89 = 31; else { - i57 = (i61 + 1048320 | 0) >>> 16 & 8; - i62 = i61 << i57; - i61 = (i62 + 520192 | 0) >>> 16 & 4; - i5 = i62 << i61; - i62 = (i5 + 245760 | 0) >>> 16 & 2; - i43 = 14 - (i61 | i57 | i62) + (i5 << i62 >>> 15) | 0; - i89 = i63 >>> (i43 + 7 | 0) & 1 | i43 << 1; - } else i89 = 0; - i43 = 480 + (i89 << 2) | 0; - HEAP32[i60 + 28 >> 2] = i89; - HEAP32[i60 + 20 >> 2] = 0; - HEAP32[i53 >> 2] = 0; - i62 = HEAP32[45] | 0; - i5 = 1 << i89; - if (!(i62 & i5)) { - HEAP32[45] = i62 | i5; - HEAP32[i43 >> 2] = i60; - HEAP32[i60 + 24 >> 2] = i43; - HEAP32[i60 + 12 >> 2] = i60; - HEAP32[i60 + 8 >> 2] = i60; - break; - } - i5 = i63 << ((i89 | 0) == 31 ? 0 : 25 - (i89 >>> 1) | 0); - i62 = HEAP32[i43 >> 2] | 0; - while (1) { - if ((HEAP32[i62 + 4 >> 2] & -8 | 0) == (i63 | 0)) { - i90 = i62; - i36 = 307; - break; - } - i43 = i62 + 16 + (i5 >>> 31 << 2) | 0; - i57 = HEAP32[i43 >> 2] | 0; - if (!i57) { - i91 = i43; - i92 = i62; - i36 = 304; - break; - } else { - i5 = i5 << 1; - i62 = i57; - } - } - if ((i36 | 0) == 304) if (i91 >>> 0 < (HEAP32[48] | 0) >>> 0) _abort(); else { - HEAP32[i91 >> 2] = i60; - HEAP32[i60 + 24 >> 2] = i92; - HEAP32[i60 + 12 >> 2] = i60; - HEAP32[i60 + 8 >> 2] = i60; - break; - } else if ((i36 | 0) == 307) { - i62 = i90 + 8 | 0; - i5 = HEAP32[i62 >> 2] | 0; - i63 = HEAP32[48] | 0; - if (i5 >>> 0 >= i63 >>> 0 & i90 >>> 0 >= i63 >>> 0) { - HEAP32[i5 + 12 >> 2] = i60; - HEAP32[i62 >> 2] = i60; - HEAP32[i60 + 8 >> 2] = i5; - HEAP32[i60 + 12 >> 2] = i90; - HEAP32[i60 + 24 >> 2] = 0; - break; - } else _abort(); - } - } - } else { - i5 = HEAP32[48] | 0; - if ((i5 | 0) == 0 | i58 >>> 0 < i5 >>> 0) HEAP32[48] = i58; - HEAP32[156] = i58; - HEAP32[157] = i59; - HEAP32[159] = 0; - HEAP32[53] = HEAP32[162]; - HEAP32[52] = -1; - i5 = 0; - do { - i62 = 216 + (i5 << 1 << 2) | 0; - HEAP32[i62 + 12 >> 2] = i62; - HEAP32[i62 + 8 >> 2] = i62; - i5 = i5 + 1 | 0; - } while ((i5 | 0) != 32); - i5 = i58 + 8 | 0; - i62 = (i5 & 7 | 0) == 0 ? 0 : 0 - i5 & 7; - i5 = i58 + i62 | 0; - i63 = i59 + -40 - i62 | 0; - HEAP32[50] = i5; - HEAP32[47] = i63; - HEAP32[i5 + 4 >> 2] = i63 | 1; - HEAP32[i5 + i63 + 4 >> 2] = 40; - HEAP32[51] = HEAP32[166]; - } while (0); - i59 = HEAP32[47] | 0; - if (i59 >>> 0 > i31 >>> 0) { - i58 = i59 - i31 | 0; - HEAP32[47] = i58; - i59 = HEAP32[50] | 0; - i60 = i59 + i31 | 0; - HEAP32[50] = i60; - HEAP32[i60 + 4 >> 2] = i58 | 1; - HEAP32[i59 + 4 >> 2] = i31 | 3; - i13 = i59 + 8 | 0; - return i13 | 0; - } - } - HEAP32[(___errno_location() | 0) >> 2] = 12; - i13 = 0; - return i13 | 0; -} - -function _free(i1) { - i1 = i1 | 0; - var i2 = 0, i3 = 0, i4 = 0, i5 = 0, i6 = 0, i7 = 0, i8 = 0, i9 = 0, i10 = 0, i11 = 0, i12 = 0, i13 = 0, i14 = 0, i15 = 0, i16 = 0, i17 = 0, i18 = 0, i19 = 0, i20 = 0, i21 = 0, i22 = 0, i23 = 0, i24 = 0, i25 = 0, i26 = 0, i27 = 0, i28 = 0, i29 = 0, i30 = 0, i31 = 0, i32 = 0, i33 = 0, i34 = 0, i35 = 0, i36 = 0, i37 = 0; - if (!i1) return; - i2 = i1 + -8 | 0; - i3 = HEAP32[48] | 0; - if (i2 >>> 0 < i3 >>> 0) _abort(); - i4 = HEAP32[i1 + -4 >> 2] | 0; - i1 = i4 & 3; - if ((i1 | 0) == 1) _abort(); - i5 = i4 & -8; - i6 = i2 + i5 | 0; - do if (!(i4 & 1)) { - i7 = HEAP32[i2 >> 2] | 0; - if (!i1) return; - i8 = i2 + (0 - i7) | 0; - i9 = i7 + i5 | 0; - if (i8 >>> 0 < i3 >>> 0) _abort(); - if ((i8 | 0) == (HEAP32[49] | 0)) { - i10 = i6 + 4 | 0; - i11 = HEAP32[i10 >> 2] | 0; - if ((i11 & 3 | 0) != 3) { - i12 = i8; - i13 = i9; - break; - } - HEAP32[46] = i9; - HEAP32[i10 >> 2] = i11 & -2; - HEAP32[i8 + 4 >> 2] = i9 | 1; - HEAP32[i8 + i9 >> 2] = i9; - return; - } - i11 = i7 >>> 3; - if (i7 >>> 0 < 256) { - i7 = HEAP32[i8 + 8 >> 2] | 0; - i10 = HEAP32[i8 + 12 >> 2] | 0; - i14 = 216 + (i11 << 1 << 2) | 0; - if ((i7 | 0) != (i14 | 0)) { - if (i7 >>> 0 < i3 >>> 0) _abort(); - if ((HEAP32[i7 + 12 >> 2] | 0) != (i8 | 0)) _abort(); - } - if ((i10 | 0) == (i7 | 0)) { - HEAP32[44] = HEAP32[44] & ~(1 << i11); - i12 = i8; - i13 = i9; - break; - } - if ((i10 | 0) != (i14 | 0)) { - if (i10 >>> 0 < i3 >>> 0) _abort(); - i14 = i10 + 8 | 0; - if ((HEAP32[i14 >> 2] | 0) == (i8 | 0)) i15 = i14; else _abort(); - } else i15 = i10 + 8 | 0; - HEAP32[i7 + 12 >> 2] = i10; - HEAP32[i15 >> 2] = i7; - i12 = i8; - i13 = i9; - break; - } - i7 = HEAP32[i8 + 24 >> 2] | 0; - i10 = HEAP32[i8 + 12 >> 2] | 0; - do if ((i10 | 0) == (i8 | 0)) { - i14 = i8 + 16 | 0; - i11 = i14 + 4 | 0; - i16 = HEAP32[i11 >> 2] | 0; - if (!i16) { - i17 = HEAP32[i14 >> 2] | 0; - if (!i17) { - i18 = 0; - break; - } else { - i19 = i17; - i20 = i14; - } - } else { - i19 = i16; - i20 = i11; - } - while (1) { - i11 = i19 + 20 | 0; - i16 = HEAP32[i11 >> 2] | 0; - if (i16) { - i19 = i16; - i20 = i11; - continue; - } - i11 = i19 + 16 | 0; - i16 = HEAP32[i11 >> 2] | 0; - if (!i16) { - i21 = i19; - i22 = i20; - break; - } else { - i19 = i16; - i20 = i11; - } - } - if (i22 >>> 0 < i3 >>> 0) _abort(); else { - HEAP32[i22 >> 2] = 0; - i18 = i21; - break; - } - } else { - i11 = HEAP32[i8 + 8 >> 2] | 0; - if (i11 >>> 0 < i3 >>> 0) _abort(); - i16 = i11 + 12 | 0; - if ((HEAP32[i16 >> 2] | 0) != (i8 | 0)) _abort(); - i14 = i10 + 8 | 0; - if ((HEAP32[i14 >> 2] | 0) == (i8 | 0)) { - HEAP32[i16 >> 2] = i10; - HEAP32[i14 >> 2] = i11; - i18 = i10; - break; - } else _abort(); - } while (0); - if (i7) { - i10 = HEAP32[i8 + 28 >> 2] | 0; - i11 = 480 + (i10 << 2) | 0; - if ((i8 | 0) == (HEAP32[i11 >> 2] | 0)) { - HEAP32[i11 >> 2] = i18; - if (!i18) { - HEAP32[45] = HEAP32[45] & ~(1 << i10); - i12 = i8; - i13 = i9; - break; - } - } else { - if (i7 >>> 0 < (HEAP32[48] | 0) >>> 0) _abort(); - i10 = i7 + 16 | 0; - if ((HEAP32[i10 >> 2] | 0) == (i8 | 0)) HEAP32[i10 >> 2] = i18; else HEAP32[i7 + 20 >> 2] = i18; - if (!i18) { - i12 = i8; - i13 = i9; - break; - } - } - i10 = HEAP32[48] | 0; - if (i18 >>> 0 < i10 >>> 0) _abort(); - HEAP32[i18 + 24 >> 2] = i7; - i11 = i8 + 16 | 0; - i14 = HEAP32[i11 >> 2] | 0; - do if (i14) if (i14 >>> 0 < i10 >>> 0) _abort(); else { - HEAP32[i18 + 16 >> 2] = i14; - HEAP32[i14 + 24 >> 2] = i18; - break; - } while (0); - i14 = HEAP32[i11 + 4 >> 2] | 0; - if (i14) if (i14 >>> 0 < (HEAP32[48] | 0) >>> 0) _abort(); else { - HEAP32[i18 + 20 >> 2] = i14; - HEAP32[i14 + 24 >> 2] = i18; - i12 = i8; - i13 = i9; - break; - } else { - i12 = i8; - i13 = i9; - } - } else { - i12 = i8; - i13 = i9; - } - } else { - i12 = i2; - i13 = i5; - } while (0); - if (i12 >>> 0 >= i6 >>> 0) _abort(); - i5 = i6 + 4 | 0; - i2 = HEAP32[i5 >> 2] | 0; - if (!(i2 & 1)) _abort(); - if (!(i2 & 2)) { - if ((i6 | 0) == (HEAP32[50] | 0)) { - i18 = (HEAP32[47] | 0) + i13 | 0; - HEAP32[47] = i18; - HEAP32[50] = i12; - HEAP32[i12 + 4 >> 2] = i18 | 1; - if ((i12 | 0) != (HEAP32[49] | 0)) return; - HEAP32[49] = 0; - HEAP32[46] = 0; - return; - } - if ((i6 | 0) == (HEAP32[49] | 0)) { - i18 = (HEAP32[46] | 0) + i13 | 0; - HEAP32[46] = i18; - HEAP32[49] = i12; - HEAP32[i12 + 4 >> 2] = i18 | 1; - HEAP32[i12 + i18 >> 2] = i18; - return; - } - i18 = (i2 & -8) + i13 | 0; - i3 = i2 >>> 3; - do if (i2 >>> 0 >= 256) { - i21 = HEAP32[i6 + 24 >> 2] | 0; - i22 = HEAP32[i6 + 12 >> 2] | 0; - do if ((i22 | 0) == (i6 | 0)) { - i20 = i6 + 16 | 0; - i19 = i20 + 4 | 0; - i15 = HEAP32[i19 >> 2] | 0; - if (!i15) { - i1 = HEAP32[i20 >> 2] | 0; - if (!i1) { - i23 = 0; - break; - } else { - i24 = i1; - i25 = i20; - } - } else { - i24 = i15; - i25 = i19; - } - while (1) { - i19 = i24 + 20 | 0; - i15 = HEAP32[i19 >> 2] | 0; - if (i15) { - i24 = i15; - i25 = i19; - continue; - } - i19 = i24 + 16 | 0; - i15 = HEAP32[i19 >> 2] | 0; - if (!i15) { - i26 = i24; - i27 = i25; - break; - } else { - i24 = i15; - i25 = i19; - } - } - if (i27 >>> 0 < (HEAP32[48] | 0) >>> 0) _abort(); else { - HEAP32[i27 >> 2] = 0; - i23 = i26; - break; - } - } else { - i19 = HEAP32[i6 + 8 >> 2] | 0; - if (i19 >>> 0 < (HEAP32[48] | 0) >>> 0) _abort(); - i15 = i19 + 12 | 0; - if ((HEAP32[i15 >> 2] | 0) != (i6 | 0)) _abort(); - i20 = i22 + 8 | 0; - if ((HEAP32[i20 >> 2] | 0) == (i6 | 0)) { - HEAP32[i15 >> 2] = i22; - HEAP32[i20 >> 2] = i19; - i23 = i22; - break; - } else _abort(); - } while (0); - if (i21) { - i22 = HEAP32[i6 + 28 >> 2] | 0; - i9 = 480 + (i22 << 2) | 0; - if ((i6 | 0) == (HEAP32[i9 >> 2] | 0)) { - HEAP32[i9 >> 2] = i23; - if (!i23) { - HEAP32[45] = HEAP32[45] & ~(1 << i22); - break; - } - } else { - if (i21 >>> 0 < (HEAP32[48] | 0) >>> 0) _abort(); - i22 = i21 + 16 | 0; - if ((HEAP32[i22 >> 2] | 0) == (i6 | 0)) HEAP32[i22 >> 2] = i23; else HEAP32[i21 + 20 >> 2] = i23; - if (!i23) break; - } - i22 = HEAP32[48] | 0; - if (i23 >>> 0 < i22 >>> 0) _abort(); - HEAP32[i23 + 24 >> 2] = i21; - i9 = i6 + 16 | 0; - i8 = HEAP32[i9 >> 2] | 0; - do if (i8) if (i8 >>> 0 < i22 >>> 0) _abort(); else { - HEAP32[i23 + 16 >> 2] = i8; - HEAP32[i8 + 24 >> 2] = i23; - break; - } while (0); - i8 = HEAP32[i9 + 4 >> 2] | 0; - if (i8) if (i8 >>> 0 < (HEAP32[48] | 0) >>> 0) _abort(); else { - HEAP32[i23 + 20 >> 2] = i8; - HEAP32[i8 + 24 >> 2] = i23; - break; - } - } - } else { - i8 = HEAP32[i6 + 8 >> 2] | 0; - i22 = HEAP32[i6 + 12 >> 2] | 0; - i21 = 216 + (i3 << 1 << 2) | 0; - if ((i8 | 0) != (i21 | 0)) { - if (i8 >>> 0 < (HEAP32[48] | 0) >>> 0) _abort(); - if ((HEAP32[i8 + 12 >> 2] | 0) != (i6 | 0)) _abort(); - } - if ((i22 | 0) == (i8 | 0)) { - HEAP32[44] = HEAP32[44] & ~(1 << i3); - break; - } - if ((i22 | 0) != (i21 | 0)) { - if (i22 >>> 0 < (HEAP32[48] | 0) >>> 0) _abort(); - i21 = i22 + 8 | 0; - if ((HEAP32[i21 >> 2] | 0) == (i6 | 0)) i28 = i21; else _abort(); - } else i28 = i22 + 8 | 0; - HEAP32[i8 + 12 >> 2] = i22; - HEAP32[i28 >> 2] = i8; - } while (0); - HEAP32[i12 + 4 >> 2] = i18 | 1; - HEAP32[i12 + i18 >> 2] = i18; - if ((i12 | 0) == (HEAP32[49] | 0)) { - HEAP32[46] = i18; - return; - } else i29 = i18; - } else { - HEAP32[i5 >> 2] = i2 & -2; - HEAP32[i12 + 4 >> 2] = i13 | 1; - HEAP32[i12 + i13 >> 2] = i13; - i29 = i13; - } - i13 = i29 >>> 3; - if (i29 >>> 0 < 256) { - i2 = 216 + (i13 << 1 << 2) | 0; - i5 = HEAP32[44] | 0; - i18 = 1 << i13; - if (i5 & i18) { - i13 = i2 + 8 | 0; - i28 = HEAP32[i13 >> 2] | 0; - if (i28 >>> 0 < (HEAP32[48] | 0) >>> 0) _abort(); else { - i30 = i13; - i31 = i28; - } - } else { - HEAP32[44] = i5 | i18; - i30 = i2 + 8 | 0; - i31 = i2; - } - HEAP32[i30 >> 2] = i12; - HEAP32[i31 + 12 >> 2] = i12; - HEAP32[i12 + 8 >> 2] = i31; - HEAP32[i12 + 12 >> 2] = i2; - return; - } - i2 = i29 >>> 8; - if (i2) if (i29 >>> 0 > 16777215) i32 = 31; else { - i31 = (i2 + 1048320 | 0) >>> 16 & 8; - i30 = i2 << i31; - i2 = (i30 + 520192 | 0) >>> 16 & 4; - i18 = i30 << i2; - i30 = (i18 + 245760 | 0) >>> 16 & 2; - i5 = 14 - (i2 | i31 | i30) + (i18 << i30 >>> 15) | 0; - i32 = i29 >>> (i5 + 7 | 0) & 1 | i5 << 1; - } else i32 = 0; - i5 = 480 + (i32 << 2) | 0; - HEAP32[i12 + 28 >> 2] = i32; - HEAP32[i12 + 20 >> 2] = 0; - HEAP32[i12 + 16 >> 2] = 0; - i30 = HEAP32[45] | 0; - i18 = 1 << i32; - do if (i30 & i18) { - i31 = i29 << ((i32 | 0) == 31 ? 0 : 25 - (i32 >>> 1) | 0); - i2 = HEAP32[i5 >> 2] | 0; - while (1) { - if ((HEAP32[i2 + 4 >> 2] & -8 | 0) == (i29 | 0)) { - i33 = i2; - i34 = 130; - break; - } - i28 = i2 + 16 + (i31 >>> 31 << 2) | 0; - i13 = HEAP32[i28 >> 2] | 0; - if (!i13) { - i35 = i28; - i36 = i2; - i34 = 127; - break; - } else { - i31 = i31 << 1; - i2 = i13; - } - } - if ((i34 | 0) == 127) if (i35 >>> 0 < (HEAP32[48] | 0) >>> 0) _abort(); else { - HEAP32[i35 >> 2] = i12; - HEAP32[i12 + 24 >> 2] = i36; - HEAP32[i12 + 12 >> 2] = i12; - HEAP32[i12 + 8 >> 2] = i12; - break; - } else if ((i34 | 0) == 130) { - i2 = i33 + 8 | 0; - i31 = HEAP32[i2 >> 2] | 0; - i9 = HEAP32[48] | 0; - if (i31 >>> 0 >= i9 >>> 0 & i33 >>> 0 >= i9 >>> 0) { - HEAP32[i31 + 12 >> 2] = i12; - HEAP32[i2 >> 2] = i12; - HEAP32[i12 + 8 >> 2] = i31; - HEAP32[i12 + 12 >> 2] = i33; - HEAP32[i12 + 24 >> 2] = 0; - break; - } else _abort(); - } - } else { - HEAP32[45] = i30 | i18; - HEAP32[i5 >> 2] = i12; - HEAP32[i12 + 24 >> 2] = i5; - HEAP32[i12 + 12 >> 2] = i12; - HEAP32[i12 + 8 >> 2] = i12; - } while (0); - i12 = (HEAP32[52] | 0) + -1 | 0; - HEAP32[52] = i12; - if (!i12) i37 = 632; else return; - while (1) { - i12 = HEAP32[i37 >> 2] | 0; - if (!i12) break; else i37 = i12 + 8 | 0; - } - HEAP32[52] = -1; - return; -} - -function ___stdio_write(i1, i2, i3) { - i1 = i1 | 0; - i2 = i2 | 0; - i3 = i3 | 0; - var i4 = 0, i5 = 0, i6 = 0, i7 = 0, i8 = 0, i9 = 0, i10 = 0, i11 = 0, i12 = 0, i13 = 0, i14 = 0, i15 = 0, i16 = 0, i17 = 0, i18 = 0, i19 = 0, i20 = 0, i21 = 0, i22 = 0, i23 = 0, i24 = 0; - i4 = STACKTOP; - STACKTOP = STACKTOP + 48 | 0; - i5 = i4 + 16 | 0; - i6 = i4; - i7 = i4 + 32 | 0; - i8 = i1 + 28 | 0; - i9 = HEAP32[i8 >> 2] | 0; - HEAP32[i7 >> 2] = i9; - i10 = i1 + 20 | 0; - i11 = (HEAP32[i10 >> 2] | 0) - i9 | 0; - HEAP32[i7 + 4 >> 2] = i11; - HEAP32[i7 + 8 >> 2] = i2; - HEAP32[i7 + 12 >> 2] = i3; - i2 = i1 + 60 | 0; - i9 = i1 + 44 | 0; - i12 = i7; - i7 = 2; - i13 = i11 + i3 | 0; - while (1) { - if (!(HEAP32[2] | 0)) { - HEAP32[i5 >> 2] = HEAP32[i2 >> 2]; - HEAP32[i5 + 4 >> 2] = i12; - HEAP32[i5 + 8 >> 2] = i7; - i14 = ___syscall_ret(___syscall146(146, i5 | 0) | 0) | 0; - } else { - _pthread_cleanup_push(4, i1 | 0); - HEAP32[i6 >> 2] = HEAP32[i2 >> 2]; - HEAP32[i6 + 4 >> 2] = i12; - HEAP32[i6 + 8 >> 2] = i7; - i11 = ___syscall_ret(___syscall146(146, i6 | 0) | 0) | 0; - _pthread_cleanup_pop(0); - i14 = i11; - } - if ((i13 | 0) == (i14 | 0)) { - i15 = 6; - break; - } - if ((i14 | 0) < 0) { - i16 = i12; - i17 = i7; - i15 = 8; - break; - } - i11 = i13 - i14 | 0; - i18 = HEAP32[i12 + 4 >> 2] | 0; - if (i14 >>> 0 <= i18 >>> 0) if ((i7 | 0) == 2) { - HEAP32[i8 >> 2] = (HEAP32[i8 >> 2] | 0) + i14; - i19 = i18; - i20 = i14; - i21 = i12; - i22 = 2; - } else { - i19 = i18; - i20 = i14; - i21 = i12; - i22 = i7; - } else { - i23 = HEAP32[i9 >> 2] | 0; - HEAP32[i8 >> 2] = i23; - HEAP32[i10 >> 2] = i23; - i19 = HEAP32[i12 + 12 >> 2] | 0; - i20 = i14 - i18 | 0; - i21 = i12 + 8 | 0; - i22 = i7 + -1 | 0; - } - HEAP32[i21 >> 2] = (HEAP32[i21 >> 2] | 0) + i20; - HEAP32[i21 + 4 >> 2] = i19 - i20; - i12 = i21; - i7 = i22; - i13 = i11; - } - if ((i15 | 0) == 6) { - i13 = HEAP32[i9 >> 2] | 0; - HEAP32[i1 + 16 >> 2] = i13 + (HEAP32[i1 + 48 >> 2] | 0); - i9 = i13; - HEAP32[i8 >> 2] = i9; - HEAP32[i10 >> 2] = i9; - i24 = i3; - } else if ((i15 | 0) == 8) { - HEAP32[i1 + 16 >> 2] = 0; - HEAP32[i8 >> 2] = 0; - HEAP32[i10 >> 2] = 0; - HEAP32[i1 >> 2] = HEAP32[i1 >> 2] | 32; - if ((i17 | 0) == 2) i24 = 0; else i24 = i3 - (HEAP32[i16 + 4 >> 2] | 0) | 0; - } - STACKTOP = i4; - return i24 | 0; -} - -function ___fwritex(i1, i2, i3) { - i1 = i1 | 0; - i2 = i2 | 0; - i3 = i3 | 0; - var i4 = 0, i5 = 0, i6 = 0, i7 = 0, i8 = 0, i9 = 0, i10 = 0, i11 = 0, i12 = 0, i13 = 0, i14 = 0, i15 = 0; - i4 = i3 + 16 | 0; - i5 = HEAP32[i4 >> 2] | 0; - if (!i5) if (!(___towrite(i3) | 0)) { - i6 = HEAP32[i4 >> 2] | 0; - i7 = 5; - } else i8 = 0; else { - i6 = i5; - i7 = 5; - } - L5 : do if ((i7 | 0) == 5) { - i5 = i3 + 20 | 0; - i4 = HEAP32[i5 >> 2] | 0; - i9 = i4; - if ((i6 - i4 | 0) >>> 0 < i2 >>> 0) { - i8 = FUNCTION_TABLE_iiii[HEAP32[i3 + 36 >> 2] & 7](i3, i1, i2) | 0; - break; - } - L10 : do if ((HEAP8[i3 + 75 >> 0] | 0) > -1) { - i4 = i2; - while (1) { - if (!i4) { - i10 = i2; - i11 = i1; - i12 = i9; - i13 = 0; - break L10; - } - i14 = i4 + -1 | 0; - if ((HEAP8[i1 + i14 >> 0] | 0) == 10) { - i15 = i4; - break; - } else i4 = i14; - } - if ((FUNCTION_TABLE_iiii[HEAP32[i3 + 36 >> 2] & 7](i3, i1, i15) | 0) >>> 0 < i15 >>> 0) { - i8 = i15; - break L5; - } - i10 = i2 - i15 | 0; - i11 = i1 + i15 | 0; - i12 = HEAP32[i5 >> 2] | 0; - i13 = i15; - } else { - i10 = i2; - i11 = i1; - i12 = i9; - i13 = 0; - } while (0); - _memcpy(i12 | 0, i11 | 0, i10 | 0) | 0; - HEAP32[i5 >> 2] = (HEAP32[i5 >> 2] | 0) + i10; - i8 = i13 + i10 | 0; - } while (0); - return i8 | 0; -} - -function _fflush(i1) { - i1 = i1 | 0; - var i2 = 0, i3 = 0, i4 = 0, i5 = 0, i6 = 0, i7 = 0, i8 = 0; - do if (i1) { - if ((HEAP32[i1 + 76 >> 2] | 0) <= -1) { - i2 = ___fflush_unlocked(i1) | 0; - break; - } - i3 = (___lockfile(i1) | 0) == 0; - i4 = ___fflush_unlocked(i1) | 0; - if (i3) i2 = i4; else { - ___unlockfile(i1); - i2 = i4; - } - } else { - if (!(HEAP32[14] | 0)) i5 = 0; else i5 = _fflush(HEAP32[14] | 0) | 0; - ___lock(36); - i4 = HEAP32[8] | 0; - if (!i4) i6 = i5; else { - i3 = i4; - i4 = i5; - while (1) { - if ((HEAP32[i3 + 76 >> 2] | 0) > -1) i7 = ___lockfile(i3) | 0; else i7 = 0; - if ((HEAP32[i3 + 20 >> 2] | 0) >>> 0 > (HEAP32[i3 + 28 >> 2] | 0) >>> 0) i8 = ___fflush_unlocked(i3) | 0 | i4; else i8 = i4; - if (i7) ___unlockfile(i3); - i3 = HEAP32[i3 + 56 >> 2] | 0; - if (!i3) { - i6 = i8; - break; - } else i4 = i8; - } - } - ___unlock(36); - i2 = i6; - } while (0); - return i2 | 0; -} - -function _strlen(i1) { - i1 = i1 | 0; - var i2 = 0, i3 = 0, i4 = 0, i5 = 0, i6 = 0, i7 = 0, i8 = 0, i9 = 0, i10 = 0, i11 = 0; - i2 = i1; - L1 : do if (!(i2 & 3)) { - i3 = i1; - i4 = 4; - } else { - i5 = i1; - i6 = i2; - while (1) { - if (!(HEAP8[i5 >> 0] | 0)) { - i7 = i6; - break L1; - } - i8 = i5 + 1 | 0; - i6 = i8; - if (!(i6 & 3)) { - i3 = i8; - i4 = 4; - break; - } else i5 = i8; - } - } while (0); - if ((i4 | 0) == 4) { - i4 = i3; - while (1) { - i3 = HEAP32[i4 >> 2] | 0; - if (!((i3 & -2139062144 ^ -2139062144) & i3 + -16843009)) i4 = i4 + 4 | 0; else { - i9 = i3; - i10 = i4; - break; - } - } - if (!((i9 & 255) << 24 >> 24)) i11 = i10; else { - i9 = i10; - while (1) { - i10 = i9 + 1 | 0; - if (!(HEAP8[i10 >> 0] | 0)) { - i11 = i10; - break; - } else i9 = i10; - } - } - i7 = i11; - } - return i7 - i2 | 0; -} - -function ___overflow(i1, i2) { - i1 = i1 | 0; - i2 = i2 | 0; - var i3 = 0, i4 = 0, i5 = 0, i6 = 0, i7 = 0, i8 = 0, i9 = 0, i10 = 0, i11 = 0; - i3 = STACKTOP; - STACKTOP = STACKTOP + 16 | 0; - i4 = i3; - i5 = i2 & 255; - HEAP8[i4 >> 0] = i5; - i6 = i1 + 16 | 0; - i7 = HEAP32[i6 >> 2] | 0; - if (!i7) if (!(___towrite(i1) | 0)) { - i8 = HEAP32[i6 >> 2] | 0; - i9 = 4; - } else i10 = -1; else { - i8 = i7; - i9 = 4; - } - do if ((i9 | 0) == 4) { - i7 = i1 + 20 | 0; - i6 = HEAP32[i7 >> 2] | 0; - if (i6 >>> 0 < i8 >>> 0 ? (i11 = i2 & 255, (i11 | 0) != (HEAP8[i1 + 75 >> 0] | 0)) : 0) { - HEAP32[i7 >> 2] = i6 + 1; - HEAP8[i6 >> 0] = i5; - i10 = i11; - break; - } - if ((FUNCTION_TABLE_iiii[HEAP32[i1 + 36 >> 2] & 7](i1, i4, 1) | 0) == 1) i10 = HEAPU8[i4 >> 0] | 0; else i10 = -1; - } while (0); - STACKTOP = i3; - return i10 | 0; -} - -function ___fflush_unlocked(i1) { - i1 = i1 | 0; - var i2 = 0, i3 = 0, i4 = 0, i5 = 0, i6 = 0, i7 = 0, i8 = 0; - i2 = i1 + 20 | 0; - i3 = i1 + 28 | 0; - if ((HEAP32[i2 >> 2] | 0) >>> 0 > (HEAP32[i3 >> 2] | 0) >>> 0 ? (FUNCTION_TABLE_iiii[HEAP32[i1 + 36 >> 2] & 7](i1, 0, 0) | 0, (HEAP32[i2 >> 2] | 0) == 0) : 0) i4 = -1; else { - i5 = i1 + 4 | 0; - i6 = HEAP32[i5 >> 2] | 0; - i7 = i1 + 8 | 0; - i8 = HEAP32[i7 >> 2] | 0; - if (i6 >>> 0 < i8 >>> 0) FUNCTION_TABLE_iiii[HEAP32[i1 + 40 >> 2] & 7](i1, i6 - i8 | 0, 1) | 0; - HEAP32[i1 + 16 >> 2] = 0; - HEAP32[i3 >> 2] = 0; - HEAP32[i2 >> 2] = 0; - HEAP32[i7 >> 2] = 0; - HEAP32[i5 >> 2] = 0; - i4 = 0; - } - return i4 | 0; -} - -function _memcpy(i1, i2, i3) { - i1 = i1 | 0; - i2 = i2 | 0; - i3 = i3 | 0; - var i4 = 0; - if ((i3 | 0) >= 4096) return _emscripten_memcpy_big(i1 | 0, i2 | 0, i3 | 0) | 0; - i4 = i1 | 0; - if ((i1 & 3) == (i2 & 3)) { - while (i1 & 3) { - if (!i3) return i4 | 0; - HEAP8[i1 >> 0] = HEAP8[i2 >> 0] | 0; - i1 = i1 + 1 | 0; - i2 = i2 + 1 | 0; - i3 = i3 - 1 | 0; - } - while ((i3 | 0) >= 4) { - HEAP32[i1 >> 2] = HEAP32[i2 >> 2]; - i1 = i1 + 4 | 0; - i2 = i2 + 4 | 0; - i3 = i3 - 4 | 0; - } - } - while ((i3 | 0) > 0) { - HEAP8[i1 >> 0] = HEAP8[i2 >> 0] | 0; - i1 = i1 + 1 | 0; - i2 = i2 + 1 | 0; - i3 = i3 - 1 | 0; - } - return i4 | 0; -} - -function runPostSets() {} -function _memset(i1, i2, i3) { - i1 = i1 | 0; - i2 = i2 | 0; - i3 = i3 | 0; - var i4 = 0, i5 = 0, i6 = 0, i7 = 0; - i4 = i1 + i3 | 0; - if ((i3 | 0) >= 20) { - i2 = i2 & 255; - i5 = i1 & 3; - i6 = i2 | i2 << 8 | i2 << 16 | i2 << 24; - i7 = i4 & ~3; - if (i5) { - i5 = i1 + 4 - i5 | 0; - while ((i1 | 0) < (i5 | 0)) { - HEAP8[i1 >> 0] = i2; - i1 = i1 + 1 | 0; - } - } - while ((i1 | 0) < (i7 | 0)) { - HEAP32[i1 >> 2] = i6; - i1 = i1 + 4 | 0; - } - } - while ((i1 | 0) < (i4 | 0)) { - HEAP8[i1 >> 0] = i2; - i1 = i1 + 1 | 0; - } - return i1 - i3 | 0; -} - -function _puts(i1) { - i1 = i1 | 0; - var i2 = 0, i3 = 0, i4 = 0, i5 = 0, i6 = 0; - i2 = HEAP32[13] | 0; - if ((HEAP32[i2 + 76 >> 2] | 0) > -1) i3 = ___lockfile(i2) | 0; else i3 = 0; - do if ((_fputs(i1, i2) | 0) < 0) i4 = 1; else { - if ((HEAP8[i2 + 75 >> 0] | 0) != 10 ? (i5 = i2 + 20 | 0, i6 = HEAP32[i5 >> 2] | 0, i6 >>> 0 < (HEAP32[i2 + 16 >> 2] | 0) >>> 0) : 0) { - HEAP32[i5 >> 2] = i6 + 1; - HEAP8[i6 >> 0] = 10; - i4 = 0; - break; - } - i4 = (___overflow(i2, 10) | 0) < 0; - } while (0); - if (i3) ___unlockfile(i2); - return i4 << 31 >> 31 | 0; -} - -function ___stdio_seek(i1, i2, i3) { - i1 = i1 | 0; - i2 = i2 | 0; - i3 = i3 | 0; - var i4 = 0, i5 = 0, i6 = 0, i7 = 0; - i4 = STACKTOP; - STACKTOP = STACKTOP + 32 | 0; - i5 = i4; - i6 = i4 + 20 | 0; - HEAP32[i5 >> 2] = HEAP32[i1 + 60 >> 2]; - HEAP32[i5 + 4 >> 2] = 0; - HEAP32[i5 + 8 >> 2] = i2; - HEAP32[i5 + 12 >> 2] = i6; - HEAP32[i5 + 16 >> 2] = i3; - if ((___syscall_ret(___syscall140(140, i5 | 0) | 0) | 0) < 0) { - HEAP32[i6 >> 2] = -1; - i7 = -1; - } else i7 = HEAP32[i6 >> 2] | 0; - STACKTOP = i4; - return i7 | 0; -} - -function ___towrite(i1) { - i1 = i1 | 0; - var i2 = 0, i3 = 0, i4 = 0; - i2 = i1 + 74 | 0; - i3 = HEAP8[i2 >> 0] | 0; - HEAP8[i2 >> 0] = i3 + 255 | i3; - i3 = HEAP32[i1 >> 2] | 0; - if (!(i3 & 8)) { - HEAP32[i1 + 8 >> 2] = 0; - HEAP32[i1 + 4 >> 2] = 0; - i2 = HEAP32[i1 + 44 >> 2] | 0; - HEAP32[i1 + 28 >> 2] = i2; - HEAP32[i1 + 20 >> 2] = i2; - HEAP32[i1 + 16 >> 2] = i2 + (HEAP32[i1 + 48 >> 2] | 0); - i4 = 0; - } else { - HEAP32[i1 >> 2] = i3 | 32; - i4 = -1; - } - return i4 | 0; -} - -function _fwrite(i1, i2, i3, i4) { - i1 = i1 | 0; - i2 = i2 | 0; - i3 = i3 | 0; - i4 = i4 | 0; - var i5 = 0, i6 = 0, i7 = 0, i8 = 0, i9 = 0; - i5 = Math_imul(i3, i2) | 0; - if ((HEAP32[i4 + 76 >> 2] | 0) > -1) { - i6 = (___lockfile(i4) | 0) == 0; - i7 = ___fwritex(i1, i5, i4) | 0; - if (i6) i8 = i7; else { - ___unlockfile(i4); - i8 = i7; - } - } else i8 = ___fwritex(i1, i5, i4) | 0; - if ((i8 | 0) == (i5 | 0)) i9 = i3; else i9 = (i8 >>> 0) / (i2 >>> 0) | 0; - return i9 | 0; -} - -function ___stdout_write(i1, i2, i3) { - i1 = i1 | 0; - i2 = i2 | 0; - i3 = i3 | 0; - var i4 = 0, i5 = 0; - i4 = STACKTOP; - STACKTOP = STACKTOP + 80 | 0; - i5 = i4; - HEAP32[i1 + 36 >> 2] = 5; - if ((HEAP32[i1 >> 2] & 64 | 0) == 0 ? (HEAP32[i5 >> 2] = HEAP32[i1 + 60 >> 2], HEAP32[i5 + 4 >> 2] = 21505, HEAP32[i5 + 8 >> 2] = i4 + 12, (___syscall54(54, i5 | 0) | 0) != 0) : 0) HEAP8[i1 + 75 >> 0] = -1; - i5 = ___stdio_write(i1, i2, i3) | 0; - STACKTOP = i4; - return i5 | 0; -} - -function copyTempDouble(i1) { - i1 = i1 | 0; - HEAP8[tempDoublePtr >> 0] = HEAP8[i1 >> 0]; - HEAP8[tempDoublePtr + 1 >> 0] = HEAP8[i1 + 1 >> 0]; - HEAP8[tempDoublePtr + 2 >> 0] = HEAP8[i1 + 2 >> 0]; - HEAP8[tempDoublePtr + 3 >> 0] = HEAP8[i1 + 3 >> 0]; - HEAP8[tempDoublePtr + 4 >> 0] = HEAP8[i1 + 4 >> 0]; - HEAP8[tempDoublePtr + 5 >> 0] = HEAP8[i1 + 5 >> 0]; - HEAP8[tempDoublePtr + 6 >> 0] = HEAP8[i1 + 6 >> 0]; - HEAP8[tempDoublePtr + 7 >> 0] = HEAP8[i1 + 7 >> 0]; -} - -function ___stdio_close(i1) { - i1 = i1 | 0; - var i2 = 0, i3 = 0; - i2 = STACKTOP; - STACKTOP = STACKTOP + 16 | 0; - i3 = i2; - HEAP32[i3 >> 2] = HEAP32[i1 + 60 >> 2]; - i1 = ___syscall_ret(___syscall6(6, i3 | 0) | 0) | 0; - STACKTOP = i2; - return i1 | 0; -} - -function copyTempFloat(i1) { - i1 = i1 | 0; - HEAP8[tempDoublePtr >> 0] = HEAP8[i1 >> 0]; - HEAP8[tempDoublePtr + 1 >> 0] = HEAP8[i1 + 1 >> 0]; - HEAP8[tempDoublePtr + 2 >> 0] = HEAP8[i1 + 2 >> 0]; - HEAP8[tempDoublePtr + 3 >> 0] = HEAP8[i1 + 3 >> 0]; -} - -function ___syscall_ret(i1) { - i1 = i1 | 0; - var i2 = 0; - if (i1 >>> 0 > 4294963200) { - HEAP32[(___errno_location() | 0) >> 2] = 0 - i1; - i2 = -1; - } else i2 = i1; - return i2 | 0; -} - -function dynCall_iiii(i1, i2, i3, i4) { - i1 = i1 | 0; - i2 = i2 | 0; - i3 = i3 | 0; - i4 = i4 | 0; - return FUNCTION_TABLE_iiii[i1 & 7](i2 | 0, i3 | 0, i4 | 0) | 0; -} -function stackAlloc(i1) { - i1 = i1 | 0; - var i2 = 0; - i2 = STACKTOP; - STACKTOP = STACKTOP + i1 | 0; - STACKTOP = STACKTOP + 15 & -16; - return i2 | 0; -} - -function ___errno_location() { - var i1 = 0; - if (!(HEAP32[2] | 0)) i1 = 60; else i1 = HEAP32[(_pthread_self() | 0) + 60 >> 2] | 0; - return i1 | 0; -} - -function setThrew(i1, i2) { - i1 = i1 | 0; - i2 = i2 | 0; - if (!__THREW__) { - __THREW__ = i1; - threwValue = i2; - } -} - -function _fputs(i1, i2) { - i1 = i1 | 0; - i2 = i2 | 0; - return (_fwrite(i1, _strlen(i1) | 0, 1, i2) | 0) + -1 | 0; -} - -function dynCall_ii(i1, i2) { - i1 = i1 | 0; - i2 = i2 | 0; - return FUNCTION_TABLE_ii[i1 & 1](i2 | 0) | 0; -} - -function _cleanup_418(i1) { - i1 = i1 | 0; - if (!(HEAP32[i1 + 68 >> 2] | 0)) ___unlockfile(i1); - return; -} - -function establishStackSpace(i1, i2) { - i1 = i1 | 0; - i2 = i2 | 0; - STACKTOP = i1; - STACK_MAX = i2; -} - -function dynCall_vi(i1, i2) { - i1 = i1 | 0; - i2 = i2 | 0; - FUNCTION_TABLE_vi[i1 & 7](i2 | 0); -} - -function b1(i1, i2, i3) { - i1 = i1 | 0; - i2 = i2 | 0; - i3 = i3 | 0; - abort(1); - return 0; -} - -function stackRestore(i1) { - i1 = i1 | 0; - STACKTOP = i1; -} - -function setTempRet0(i1) { - i1 = i1 | 0; - tempRet0 = i1; -} - -function b0(i1) { - i1 = i1 | 0; - abort(0); - return 0; -} - -function ___unlockfile(i1) { - i1 = i1 | 0; - return; -} - -function ___lockfile(i1) { - i1 = i1 | 0; - return 0; -} - -function getTempRet0() { - return tempRet0 | 0; -} - -function _main() { - _puts(672) | 0; - return 0; -} - -function stackSave() { - return STACKTOP | 0; -} - -function b2(i1) { - i1 = i1 | 0; - abort(2); -} - -// EMSCRIPTEN_END_FUNCS -var FUNCTION_TABLE_ii = [b0,___stdio_close]; -var FUNCTION_TABLE_iiii = [b1,b1,___stdout_write,___stdio_seek,b1,___stdio_write,b1,b1]; -var FUNCTION_TABLE_vi = [b2,b2,b2,b2,_cleanup_418,b2,b2,b2]; - - return { _free: _free, _main: _main, _memset: _memset, _malloc: _malloc, _memcpy: _memcpy, _fflush: _fflush, ___errno_location: ___errno_location, runPostSets: runPostSets, stackAlloc: stackAlloc, stackSave: stackSave, stackRestore: stackRestore, establishStackSpace: establishStackSpace, setThrew: setThrew, setTempRet0: setTempRet0, getTempRet0: getTempRet0, dynCall_ii: dynCall_ii, dynCall_iiii: dynCall_iiii, dynCall_vi: dynCall_vi }; -}) -; \ No newline at end of file diff --git a/test/emcc_hello_world.asm.js b/test/emcc_hello_world.asm.js deleted file mode 100644 index cd188303e9e..00000000000 --- a/test/emcc_hello_world.asm.js +++ /dev/null @@ -1,7101 +0,0 @@ -Module["asm"] = (function(global, env, buffer) { - 'almost asm'; - - - var HEAP8 = new global.Int8Array(buffer); - var HEAP16 = new global.Int16Array(buffer); - var HEAP32 = new global.Int32Array(buffer); - var HEAPU8 = new global.Uint8Array(buffer); - var HEAPU16 = new global.Uint16Array(buffer); - var HEAPU32 = new global.Uint32Array(buffer); - var HEAPF32 = new global.Float32Array(buffer); - var HEAPF64 = new global.Float64Array(buffer); - - - var STACKTOP=env.STACKTOP|0; - var STACK_MAX=env.STACK_MAX|0; - var tempDoublePtr=env.tempDoublePtr|0; - var ABORT=env.ABORT|0; - var cttz_i8=env.cttz_i8|0; - - var __THREW__ = 0; - var threwValue = 0; - var setjmpId = 0; - var undef = 0; - var nan = global.NaN, inf = global.Infinity; - var tempInt = 0, tempBigInt = 0, tempBigIntP = 0, tempBigIntS = 0, tempBigIntR = 0.0, tempBigIntI = 0, tempBigIntD = 0, tempValue = 0, tempDouble = 0.0; - - var tempRet0 = 0; - var tempRet1 = 0; - var tempRet2 = 0; - var tempRet3 = 0; - var tempRet4 = 0; - var tempRet5 = 0; - var tempRet6 = 0; - var tempRet7 = 0; - var tempRet8 = 0; - var tempRet9 = 0; - var Math_floor=global.Math.floor; - var Math_abs=global.Math.abs; - var Math_sqrt=global.Math.sqrt; - var Math_pow=global.Math.pow; - var Math_cos=global.Math.cos; - var Math_sin=global.Math.sin; - var Math_tan=global.Math.tan; - var Math_acos=global.Math.acos; - var Math_asin=global.Math.asin; - var Math_atan=global.Math.atan; - var Math_atan2=global.Math.atan2; - var Math_exp=global.Math.exp; - var Math_log=global.Math.log; - var Math_ceil=global.Math.ceil; - var Math_imul=global.Math.imul; - var Math_min=global.Math.min; - var Math_clz32=global.Math.clz32; - var abort=env.abort; - var assert=env.assert; - var nullFunc_ii=env.nullFunc_ii; - var nullFunc_iiii=env.nullFunc_iiii; - var nullFunc_vi=env.nullFunc_vi; - var invoke_ii=env.invoke_ii; - var invoke_iiii=env.invoke_iiii; - var invoke_vi=env.invoke_vi; - var _pthread_cleanup_pop=env._pthread_cleanup_pop; - var ___lock=env.___lock; - var _emscripten_set_main_loop=env._emscripten_set_main_loop; - var _pthread_self=env._pthread_self; - var _abort=env._abort; - var _emscripten_set_main_loop_timing=env._emscripten_set_main_loop_timing; - var ___syscall6=env.___syscall6; - var _sbrk=env._sbrk; - var _time=env._time; - var ___setErrNo=env.___setErrNo; - var _emscripten_memcpy_big=env._emscripten_memcpy_big; - var ___syscall54=env.___syscall54; - var ___unlock=env.___unlock; - var ___syscall140=env.___syscall140; - var _pthread_cleanup_push=env._pthread_cleanup_push; - var _sysconf=env._sysconf; - var ___syscall146=env.___syscall146; - var _llvm_cttz_i32=env._llvm_cttz_i32; - var tempFloat = 0.0; - -// EMSCRIPTEN_START_FUNCS -function stackAlloc(size) { - size = size|0; - var ret = 0; - ret = STACKTOP; - STACKTOP = (STACKTOP + size)|0; - STACKTOP = (STACKTOP + 15)&-16; -if ((STACKTOP|0) >= (STACK_MAX|0)) abort(); - - return ret|0; -} -function stackSave() { - return STACKTOP|0; -} -function stackRestore(top) { - top = top|0; - STACKTOP = top; -} -function establishStackSpace(stackBase, stackMax) { - stackBase = stackBase|0; - stackMax = stackMax|0; - STACKTOP = stackBase; - STACK_MAX = stackMax; -} - -function setThrew(threw, value) { - threw = threw|0; - value = value|0; - if ((__THREW__|0) == 0) { - __THREW__ = threw; - threwValue = value; - } -} -function copyTempFloat(ptr) { - ptr = ptr|0; - HEAP8[tempDoublePtr>>0] = HEAP8[ptr>>0]; - HEAP8[tempDoublePtr+1>>0] = HEAP8[ptr+1>>0]; - HEAP8[tempDoublePtr+2>>0] = HEAP8[ptr+2>>0]; - HEAP8[tempDoublePtr+3>>0] = HEAP8[ptr+3>>0]; -} -function copyTempDouble(ptr) { - ptr = ptr|0; - HEAP8[tempDoublePtr>>0] = HEAP8[ptr>>0]; - HEAP8[tempDoublePtr+1>>0] = HEAP8[ptr+1>>0]; - HEAP8[tempDoublePtr+2>>0] = HEAP8[ptr+2>>0]; - HEAP8[tempDoublePtr+3>>0] = HEAP8[ptr+3>>0]; - HEAP8[tempDoublePtr+4>>0] = HEAP8[ptr+4>>0]; - HEAP8[tempDoublePtr+5>>0] = HEAP8[ptr+5>>0]; - HEAP8[tempDoublePtr+6>>0] = HEAP8[ptr+6>>0]; - HEAP8[tempDoublePtr+7>>0] = HEAP8[ptr+7>>0]; -} - -function setTempRet0(value) { - value = value|0; - tempRet0 = value; -} -function getTempRet0() { - return tempRet0|0; -} - -function _main() { - var $retval = 0, $vararg_buffer = 0, label = 0, sp = 0; - sp = STACKTOP; - STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abort(); - $vararg_buffer = sp; - $retval = 0; - (_printf(672,$vararg_buffer)|0); - STACKTOP = sp;return 0; -} -function _frexp($x,$e) { - $x = +$x; - $e = $e|0; - var $0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0.0, $call = 0.0, $conv = 0, $mul = 0.0, $retval$0 = 0.0, $storemerge = 0, $sub = 0, $sub8 = 0, $tobool1 = 0, $x$addr$0 = 0.0, label = 0, sp = 0; - sp = STACKTOP; - HEAPF64[tempDoublePtr>>3] = $x;$0 = HEAP32[tempDoublePtr>>2]|0; - $1 = HEAP32[tempDoublePtr+4>>2]|0; - $2 = (_bitshift64Lshr(($0|0),($1|0),52)|0); - $3 = tempRet0; - $conv = $2 & 2047; - switch ($conv|0) { - case 0: { - $tobool1 = $x != 0.0; - if ($tobool1) { - $mul = $x * 1.8446744073709552E+19; - $call = (+_frexp($mul,$e)); - $4 = HEAP32[$e>>2]|0; - $sub = (($4) + -64)|0; - $storemerge = $sub;$x$addr$0 = $call; - } else { - $storemerge = 0;$x$addr$0 = $x; - } - HEAP32[$e>>2] = $storemerge; - $retval$0 = $x$addr$0; - break; - } - case 2047: { - $retval$0 = $x; - break; - } - default: { - $sub8 = (($conv) + -1022)|0; - HEAP32[$e>>2] = $sub8; - $5 = $1 & -2146435073; - $6 = $5 | 1071644672; - HEAP32[tempDoublePtr>>2] = $0;HEAP32[tempDoublePtr+4>>2] = $6;$7 = +HEAPF64[tempDoublePtr>>3]; - $retval$0 = $7; - } - } - return (+$retval$0); -} -function _frexpl($x,$e) { - $x = +$x; - $e = $e|0; - var $call = 0.0, label = 0, sp = 0; - sp = STACKTOP; - $call = (+_frexp($x,$e)); - return (+$call); -} -function _strerror($e) { - $e = $e|0; - var $0 = 0, $1 = 0, $arrayidx = 0, $cmp = 0, $conv = 0, $dec = 0, $i$012 = 0, $i$012$lcssa = 0, $i$111 = 0, $inc = 0, $incdec$ptr = 0, $incdec$ptr$lcssa = 0, $s$0$lcssa = 0, $s$010 = 0, $s$1 = 0, $tobool = 0, $tobool5 = 0, $tobool5$9 = 0, $tobool8 = 0, label = 0; - var sp = 0; - sp = STACKTOP; - $i$012 = 0; - while(1) { - $arrayidx = (687 + ($i$012)|0); - $0 = HEAP8[$arrayidx>>0]|0; - $conv = $0&255; - $cmp = ($conv|0)==($e|0); - if ($cmp) { - $i$012$lcssa = $i$012; - label = 2; - break; - } - $inc = (($i$012) + 1)|0; - $tobool = ($inc|0)==(87); - if ($tobool) { - $i$111 = 87;$s$010 = 775; - label = 5; - break; - } else { - $i$012 = $inc; - } - } - if ((label|0) == 2) { - $tobool5$9 = ($i$012$lcssa|0)==(0); - if ($tobool5$9) { - $s$0$lcssa = 775; - } else { - $i$111 = $i$012$lcssa;$s$010 = 775; - label = 5; - } - } - if ((label|0) == 5) { - while(1) { - label = 0; - $s$1 = $s$010; - while(1) { - $1 = HEAP8[$s$1>>0]|0; - $tobool8 = ($1<<24>>24)==(0); - $incdec$ptr = ((($s$1)) + 1|0); - if ($tobool8) { - $incdec$ptr$lcssa = $incdec$ptr; - break; - } else { - $s$1 = $incdec$ptr; - } - } - $dec = (($i$111) + -1)|0; - $tobool5 = ($dec|0)==(0); - if ($tobool5) { - $s$0$lcssa = $incdec$ptr$lcssa; - break; - } else { - $i$111 = $dec;$s$010 = $incdec$ptr$lcssa; - label = 5; - } - } - } - return ($s$0$lcssa|0); -} -function ___errno_location() { - var $0 = 0, $1 = 0, $call$i = 0, $errno_ptr = 0, $retval$0 = 0, $tobool = 0, label = 0, sp = 0; - sp = STACKTOP; - $0 = HEAP32[4]|0; - $tobool = ($0|0)==(0|0); - if ($tobool) { - $retval$0 = 60; - } else { - $call$i = (_pthread_self()|0); - $errno_ptr = ((($call$i)) + 60|0); - $1 = HEAP32[$errno_ptr>>2]|0; - $retval$0 = $1; - } - return ($retval$0|0); -} -function ___stdio_close($f) { - $f = $f|0; - var $0 = 0, $call = 0, $call1 = 0, $fd = 0, $vararg_buffer = 0, label = 0, sp = 0; - sp = STACKTOP; - STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abort(); - $vararg_buffer = sp; - $fd = ((($f)) + 60|0); - $0 = HEAP32[$fd>>2]|0; - HEAP32[$vararg_buffer>>2] = $0; - $call = (___syscall6(6,($vararg_buffer|0))|0); - $call1 = (___syscall_ret($call)|0); - STACKTOP = sp;return ($call1|0); -} -function ___stdout_write($f,$buf,$len) { - $f = $f|0; - $buf = $buf|0; - $len = $len|0; - var $0 = 0, $1 = 0, $and = 0, $call = 0, $call3 = 0, $fd = 0, $lbf = 0, $tio = 0, $tobool = 0, $tobool2 = 0, $vararg_buffer = 0, $vararg_ptr1 = 0, $vararg_ptr2 = 0, $write = 0, label = 0, sp = 0; - sp = STACKTOP; - STACKTOP = STACKTOP + 80|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abort(); - $vararg_buffer = sp; - $tio = sp + 12|0; - $write = ((($f)) + 36|0); - HEAP32[$write>>2] = 4; - $0 = HEAP32[$f>>2]|0; - $and = $0 & 64; - $tobool = ($and|0)==(0); - if ($tobool) { - $fd = ((($f)) + 60|0); - $1 = HEAP32[$fd>>2]|0; - HEAP32[$vararg_buffer>>2] = $1; - $vararg_ptr1 = ((($vararg_buffer)) + 4|0); - HEAP32[$vararg_ptr1>>2] = 21505; - $vararg_ptr2 = ((($vararg_buffer)) + 8|0); - HEAP32[$vararg_ptr2>>2] = $tio; - $call = (___syscall54(54,($vararg_buffer|0))|0); - $tobool2 = ($call|0)==(0); - if (!($tobool2)) { - $lbf = ((($f)) + 75|0); - HEAP8[$lbf>>0] = -1; - } - } - $call3 = (___stdio_write($f,$buf,$len)|0); - STACKTOP = sp;return ($call3|0); -} -function ___stdio_seek($f,$off,$whence) { - $f = $f|0; - $off = $off|0; - $whence = $whence|0; - var $$pre = 0, $0 = 0, $1 = 0, $call = 0, $call1 = 0, $cmp = 0, $fd = 0, $ret = 0, $vararg_buffer = 0, $vararg_ptr1 = 0, $vararg_ptr2 = 0, $vararg_ptr3 = 0, $vararg_ptr4 = 0, label = 0, sp = 0; - sp = STACKTOP; - STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abort(); - $vararg_buffer = sp; - $ret = sp + 20|0; - $fd = ((($f)) + 60|0); - $0 = HEAP32[$fd>>2]|0; - HEAP32[$vararg_buffer>>2] = $0; - $vararg_ptr1 = ((($vararg_buffer)) + 4|0); - HEAP32[$vararg_ptr1>>2] = 0; - $vararg_ptr2 = ((($vararg_buffer)) + 8|0); - HEAP32[$vararg_ptr2>>2] = $off; - $vararg_ptr3 = ((($vararg_buffer)) + 12|0); - HEAP32[$vararg_ptr3>>2] = $ret; - $vararg_ptr4 = ((($vararg_buffer)) + 16|0); - HEAP32[$vararg_ptr4>>2] = $whence; - $call = (___syscall140(140,($vararg_buffer|0))|0); - $call1 = (___syscall_ret($call)|0); - $cmp = ($call1|0)<(0); - if ($cmp) { - HEAP32[$ret>>2] = -1; - $1 = -1; - } else { - $$pre = HEAP32[$ret>>2]|0; - $1 = $$pre; - } - STACKTOP = sp;return ($1|0); -} -function _fflush($f) { - $f = $f|0; - var $0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $call = 0, $call1 = 0, $call1$18 = 0, $call16 = 0, $call22 = 0, $call7 = 0, $cmp = 0, $cmp14 = 0, $cmp20 = 0, $cond10 = 0, $cond19 = 0, $f$addr$0 = 0, $f$addr$0$19 = 0, $f$addr$022 = 0; - var $lock = 0, $lock13 = 0, $next = 0, $or = 0, $phitmp = 0, $r$0$lcssa = 0, $r$021 = 0, $r$1 = 0, $retval$0 = 0, $tobool = 0, $tobool11 = 0, $tobool11$20 = 0, $tobool24 = 0, $tobool5 = 0, $wbase = 0, $wpos = 0, label = 0, sp = 0; - sp = STACKTOP; - $tobool = ($f|0)==(0|0); - do { - if ($tobool) { - $1 = HEAP32[3]|0; - $tobool5 = ($1|0)==(0|0); - if ($tobool5) { - $cond10 = 0; - } else { - $2 = HEAP32[3]|0; - $call7 = (_fflush($2)|0); - $cond10 = $call7; - } - ___lock(((44)|0)); - $f$addr$0$19 = HEAP32[(40)>>2]|0; - $tobool11$20 = ($f$addr$0$19|0)==(0|0); - if ($tobool11$20) { - $r$0$lcssa = $cond10; - } else { - $f$addr$022 = $f$addr$0$19;$r$021 = $cond10; - while(1) { - $lock13 = ((($f$addr$022)) + 76|0); - $3 = HEAP32[$lock13>>2]|0; - $cmp14 = ($3|0)>(-1); - if ($cmp14) { - $call16 = (___lockfile($f$addr$022)|0); - $cond19 = $call16; - } else { - $cond19 = 0; - } - $wpos = ((($f$addr$022)) + 20|0); - $4 = HEAP32[$wpos>>2]|0; - $wbase = ((($f$addr$022)) + 28|0); - $5 = HEAP32[$wbase>>2]|0; - $cmp20 = ($4>>>0)>($5>>>0); - if ($cmp20) { - $call22 = (___fflush_unlocked($f$addr$022)|0); - $or = $call22 | $r$021; - $r$1 = $or; - } else { - $r$1 = $r$021; - } - $tobool24 = ($cond19|0)==(0); - if (!($tobool24)) { - ___unlockfile($f$addr$022); - } - $next = ((($f$addr$022)) + 56|0); - $f$addr$0 = HEAP32[$next>>2]|0; - $tobool11 = ($f$addr$0|0)==(0|0); - if ($tobool11) { - $r$0$lcssa = $r$1; - break; - } else { - $f$addr$022 = $f$addr$0;$r$021 = $r$1; - } - } - } - ___unlock(((44)|0)); - $retval$0 = $r$0$lcssa; - } else { - $lock = ((($f)) + 76|0); - $0 = HEAP32[$lock>>2]|0; - $cmp = ($0|0)>(-1); - if (!($cmp)) { - $call1$18 = (___fflush_unlocked($f)|0); - $retval$0 = $call1$18; - break; - } - $call = (___lockfile($f)|0); - $phitmp = ($call|0)==(0); - $call1 = (___fflush_unlocked($f)|0); - if ($phitmp) { - $retval$0 = $call1; - } else { - ___unlockfile($f); - $retval$0 = $call1; - } - } - } while(0); - return ($retval$0|0); -} -function _printf($fmt,$varargs) { - $fmt = $fmt|0; - $varargs = $varargs|0; - var $0 = 0, $ap = 0, $call = 0, label = 0, sp = 0; - sp = STACKTOP; - STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abort(); - $ap = sp; - HEAP32[$ap>>2] = $varargs; - $0 = HEAP32[2]|0; - $call = (_vfprintf($0,$fmt,$ap)|0); - STACKTOP = sp;return ($call|0); -} -function ___lockfile($f) { - $f = $f|0; - var label = 0, sp = 0; - sp = STACKTOP; - return 0; -} -function ___unlockfile($f) { - $f = $f|0; - var label = 0, sp = 0; - sp = STACKTOP; - return; -} -function ___stdio_write($f,$buf,$len) { - $f = $f|0; - $buf = $buf|0; - $len = $len|0; - var $$pre = 0, $0 = 0, $1 = 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, $add = 0, $add$ptr = 0, $add$ptr41 = 0, $add$ptr46 = 0; - var $buf31 = 0, $buf_size = 0, $call = 0, $call10 = 0, $call7 = 0, $call9 = 0, $cmp = 0, $cmp17 = 0, $cmp22 = 0, $cmp29 = 0, $cmp38 = 0, $cnt$0 = 0, $cnt$1 = 0, $dec = 0, $fd8 = 0, $incdec$ptr = 0, $iov$0 = 0, $iov$0$lcssa57 = 0, $iov$1 = 0, $iov_base2 = 0; - var $iov_len = 0, $iov_len24 = 0, $iov_len28 = 0, $iov_len3 = 0, $iov_len50 = 0, $iov_len50$phi$trans$insert = 0, $iovcnt$0 = 0, $iovcnt$0$lcssa58 = 0, $iovcnt$1 = 0, $iovs = 0, $or = 0, $rem$0 = 0, $retval$0 = 0, $sub = 0, $sub$ptr$sub = 0, $sub26 = 0, $sub36 = 0, $sub51 = 0, $tobool = 0, $vararg_buffer = 0; - var $vararg_buffer3 = 0, $vararg_ptr1 = 0, $vararg_ptr2 = 0, $vararg_ptr6 = 0, $vararg_ptr7 = 0, $wbase = 0, $wend = 0, $wend19 = 0, $wpos = 0, label = 0, sp = 0; - sp = STACKTOP; - STACKTOP = STACKTOP + 48|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abort(); - $vararg_buffer3 = sp + 16|0; - $vararg_buffer = sp; - $iovs = sp + 32|0; - $wbase = ((($f)) + 28|0); - $0 = HEAP32[$wbase>>2]|0; - HEAP32[$iovs>>2] = $0; - $iov_len = ((($iovs)) + 4|0); - $wpos = ((($f)) + 20|0); - $1 = HEAP32[$wpos>>2]|0; - $sub$ptr$sub = (($1) - ($0))|0; - HEAP32[$iov_len>>2] = $sub$ptr$sub; - $iov_base2 = ((($iovs)) + 8|0); - HEAP32[$iov_base2>>2] = $buf; - $iov_len3 = ((($iovs)) + 12|0); - HEAP32[$iov_len3>>2] = $len; - $add = (($sub$ptr$sub) + ($len))|0; - $fd8 = ((($f)) + 60|0); - $buf31 = ((($f)) + 44|0); - $iov$0 = $iovs;$iovcnt$0 = 2;$rem$0 = $add; - while(1) { - $2 = HEAP32[4]|0; - $tobool = ($2|0)==(0|0); - if ($tobool) { - $4 = HEAP32[$fd8>>2]|0; - HEAP32[$vararg_buffer3>>2] = $4; - $vararg_ptr6 = ((($vararg_buffer3)) + 4|0); - HEAP32[$vararg_ptr6>>2] = $iov$0; - $vararg_ptr7 = ((($vararg_buffer3)) + 8|0); - HEAP32[$vararg_ptr7>>2] = $iovcnt$0; - $call9 = (___syscall146(146,($vararg_buffer3|0))|0); - $call10 = (___syscall_ret($call9)|0); - $cnt$0 = $call10; - } else { - _pthread_cleanup_push((5|0),($f|0)); - $3 = HEAP32[$fd8>>2]|0; - HEAP32[$vararg_buffer>>2] = $3; - $vararg_ptr1 = ((($vararg_buffer)) + 4|0); - HEAP32[$vararg_ptr1>>2] = $iov$0; - $vararg_ptr2 = ((($vararg_buffer)) + 8|0); - HEAP32[$vararg_ptr2>>2] = $iovcnt$0; - $call = (___syscall146(146,($vararg_buffer|0))|0); - $call7 = (___syscall_ret($call)|0); - _pthread_cleanup_pop(0); - $cnt$0 = $call7; - } - $cmp = ($rem$0|0)==($cnt$0|0); - if ($cmp) { - label = 6; - break; - } - $cmp17 = ($cnt$0|0)<(0); - if ($cmp17) { - $iov$0$lcssa57 = $iov$0;$iovcnt$0$lcssa58 = $iovcnt$0; - label = 8; - break; - } - $sub26 = (($rem$0) - ($cnt$0))|0; - $iov_len28 = ((($iov$0)) + 4|0); - $10 = HEAP32[$iov_len28>>2]|0; - $cmp29 = ($cnt$0>>>0)>($10>>>0); - if ($cmp29) { - $11 = HEAP32[$buf31>>2]|0; - HEAP32[$wbase>>2] = $11; - HEAP32[$wpos>>2] = $11; - $sub36 = (($cnt$0) - ($10))|0; - $incdec$ptr = ((($iov$0)) + 8|0); - $dec = (($iovcnt$0) + -1)|0; - $iov_len50$phi$trans$insert = ((($iov$0)) + 12|0); - $$pre = HEAP32[$iov_len50$phi$trans$insert>>2]|0; - $14 = $$pre;$cnt$1 = $sub36;$iov$1 = $incdec$ptr;$iovcnt$1 = $dec; - } else { - $cmp38 = ($iovcnt$0|0)==(2); - if ($cmp38) { - $12 = HEAP32[$wbase>>2]|0; - $add$ptr41 = (($12) + ($cnt$0)|0); - HEAP32[$wbase>>2] = $add$ptr41; - $14 = $10;$cnt$1 = $cnt$0;$iov$1 = $iov$0;$iovcnt$1 = 2; - } else { - $14 = $10;$cnt$1 = $cnt$0;$iov$1 = $iov$0;$iovcnt$1 = $iovcnt$0; - } - } - $13 = HEAP32[$iov$1>>2]|0; - $add$ptr46 = (($13) + ($cnt$1)|0); - HEAP32[$iov$1>>2] = $add$ptr46; - $iov_len50 = ((($iov$1)) + 4|0); - $sub51 = (($14) - ($cnt$1))|0; - HEAP32[$iov_len50>>2] = $sub51; - $iov$0 = $iov$1;$iovcnt$0 = $iovcnt$1;$rem$0 = $sub26; - } - if ((label|0) == 6) { - $5 = HEAP32[$buf31>>2]|0; - $buf_size = ((($f)) + 48|0); - $6 = HEAP32[$buf_size>>2]|0; - $add$ptr = (($5) + ($6)|0); - $wend = ((($f)) + 16|0); - HEAP32[$wend>>2] = $add$ptr; - $7 = $5; - HEAP32[$wbase>>2] = $7; - HEAP32[$wpos>>2] = $7; - $retval$0 = $len; - } - else if ((label|0) == 8) { - $wend19 = ((($f)) + 16|0); - HEAP32[$wend19>>2] = 0; - HEAP32[$wbase>>2] = 0; - HEAP32[$wpos>>2] = 0; - $8 = HEAP32[$f>>2]|0; - $or = $8 | 32; - HEAP32[$f>>2] = $or; - $cmp22 = ($iovcnt$0$lcssa58|0)==(2); - if ($cmp22) { - $retval$0 = 0; - } else { - $iov_len24 = ((($iov$0$lcssa57)) + 4|0); - $9 = HEAP32[$iov_len24>>2]|0; - $sub = (($len) - ($9))|0; - $retval$0 = $sub; - } - } - STACKTOP = sp;return ($retval$0|0); -} -function _vfprintf($f,$fmt,$ap) { - $f = $f|0; - $fmt = $fmt|0; - $ap = $ap|0; - var $$call21 = 0, $0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $add$ptr = 0, $and = 0, $and11 = 0, $and36 = 0, $ap2 = 0, $buf = 0, $buf_size = 0, $call = 0, $call21 = 0, $call21$30 = 0, $call6 = 0; - var $cmp = 0, $cmp5 = 0, $cmp7 = 0, $cond = 0, $internal_buf = 0, $lock = 0, $mode = 0, $nl_arg = 0, $nl_type = 0, $or = 0, $ret$1 = 0, $ret$1$ = 0, $retval$0 = 0, $tobool = 0, $tobool22 = 0, $tobool26 = 0, $tobool37 = 0, $tobool41 = 0, $vacopy_currentptr = 0, $wbase = 0; - var $wend = 0, $wpos = 0, $write = 0, dest = 0, label = 0, sp = 0, stop = 0; - sp = STACKTOP; - STACKTOP = STACKTOP + 224|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abort(); - $ap2 = sp + 120|0; - $nl_type = sp + 80|0; - $nl_arg = sp; - $internal_buf = sp + 136|0; - dest=$nl_type; stop=dest+40|0; do { HEAP32[dest>>2]=0|0; dest=dest+4|0; } while ((dest|0) < (stop|0)); - $vacopy_currentptr = HEAP32[$ap>>2]|0; - HEAP32[$ap2>>2] = $vacopy_currentptr; - $call = (_printf_core(0,$fmt,$ap2,$nl_arg,$nl_type)|0); - $cmp = ($call|0)<(0); - if ($cmp) { - $retval$0 = -1; - } else { - $lock = ((($f)) + 76|0); - $0 = HEAP32[$lock>>2]|0; - $cmp5 = ($0|0)>(-1); - if ($cmp5) { - $call6 = (___lockfile($f)|0); - $cond = $call6; - } else { - $cond = 0; - } - $1 = HEAP32[$f>>2]|0; - $and = $1 & 32; - $mode = ((($f)) + 74|0); - $2 = HEAP8[$mode>>0]|0; - $cmp7 = ($2<<24>>24)<(1); - if ($cmp7) { - $and11 = $1 & -33; - HEAP32[$f>>2] = $and11; - } - $buf_size = ((($f)) + 48|0); - $3 = HEAP32[$buf_size>>2]|0; - $tobool = ($3|0)==(0); - if ($tobool) { - $buf = ((($f)) + 44|0); - $4 = HEAP32[$buf>>2]|0; - HEAP32[$buf>>2] = $internal_buf; - $wbase = ((($f)) + 28|0); - HEAP32[$wbase>>2] = $internal_buf; - $wpos = ((($f)) + 20|0); - HEAP32[$wpos>>2] = $internal_buf; - HEAP32[$buf_size>>2] = 80; - $add$ptr = ((($internal_buf)) + 80|0); - $wend = ((($f)) + 16|0); - HEAP32[$wend>>2] = $add$ptr; - $call21 = (_printf_core($f,$fmt,$ap2,$nl_arg,$nl_type)|0); - $tobool22 = ($4|0)==(0|0); - if ($tobool22) { - $ret$1 = $call21; - } else { - $write = ((($f)) + 36|0); - $5 = HEAP32[$write>>2]|0; - (FUNCTION_TABLE_iiii[$5 & 7]($f,0,0)|0); - $6 = HEAP32[$wpos>>2]|0; - $tobool26 = ($6|0)==(0|0); - $$call21 = $tobool26 ? -1 : $call21; - HEAP32[$buf>>2] = $4; - HEAP32[$buf_size>>2] = 0; - HEAP32[$wend>>2] = 0; - HEAP32[$wbase>>2] = 0; - HEAP32[$wpos>>2] = 0; - $ret$1 = $$call21; - } - } else { - $call21$30 = (_printf_core($f,$fmt,$ap2,$nl_arg,$nl_type)|0); - $ret$1 = $call21$30; - } - $7 = HEAP32[$f>>2]|0; - $and36 = $7 & 32; - $tobool37 = ($and36|0)==(0); - $ret$1$ = $tobool37 ? $ret$1 : -1; - $or = $7 | $and; - HEAP32[$f>>2] = $or; - $tobool41 = ($cond|0)==(0); - if (!($tobool41)) { - ___unlockfile($f); - } - $retval$0 = $ret$1$; - } - STACKTOP = sp;return ($retval$0|0); -} -function ___fwritex($s,$l,$f) { - $s = $s|0; - $l = $l|0; - $f = $f|0; - var $$pre = 0, $$pre31 = 0, $0 = 0, $1 = 0, $10 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $add = 0, $add$ptr = 0, $add$ptr26 = 0, $arrayidx = 0, $call = 0, $call16 = 0, $call4 = 0; - var $cmp = 0, $cmp11 = 0, $cmp17 = 0, $cmp6 = 0, $i$0 = 0, $i$0$lcssa36 = 0, $i$1 = 0, $l$addr$0 = 0, $lbf = 0, $retval$0 = 0, $s$addr$0 = 0, $sub = 0, $sub$ptr$sub = 0, $sub21 = 0, $tobool = 0, $tobool1 = 0, $tobool9 = 0, $wend = 0, $wpos = 0, $write = 0; - var $write15 = 0, label = 0, sp = 0; - sp = STACKTOP; - $wend = ((($f)) + 16|0); - $0 = HEAP32[$wend>>2]|0; - $tobool = ($0|0)==(0|0); - if ($tobool) { - $call = (___towrite($f)|0); - $tobool1 = ($call|0)==(0); - if ($tobool1) { - $$pre = HEAP32[$wend>>2]|0; - $3 = $$pre; - label = 5; - } else { - $retval$0 = 0; - } - } else { - $1 = $0; - $3 = $1; - label = 5; - } - L5: do { - if ((label|0) == 5) { - $wpos = ((($f)) + 20|0); - $2 = HEAP32[$wpos>>2]|0; - $sub$ptr$sub = (($3) - ($2))|0; - $cmp = ($sub$ptr$sub>>>0)<($l>>>0); - $4 = $2; - if ($cmp) { - $write = ((($f)) + 36|0); - $5 = HEAP32[$write>>2]|0; - $call4 = (FUNCTION_TABLE_iiii[$5 & 7]($f,$s,$l)|0); - $retval$0 = $call4; - break; - } - $lbf = ((($f)) + 75|0); - $6 = HEAP8[$lbf>>0]|0; - $cmp6 = ($6<<24>>24)>(-1); - L10: do { - if ($cmp6) { - $i$0 = $l; - while(1) { - $tobool9 = ($i$0|0)==(0); - if ($tobool9) { - $9 = $4;$i$1 = 0;$l$addr$0 = $l;$s$addr$0 = $s; - break L10; - } - $sub = (($i$0) + -1)|0; - $arrayidx = (($s) + ($sub)|0); - $7 = HEAP8[$arrayidx>>0]|0; - $cmp11 = ($7<<24>>24)==(10); - if ($cmp11) { - $i$0$lcssa36 = $i$0; - break; - } else { - $i$0 = $sub; - } - } - $write15 = ((($f)) + 36|0); - $8 = HEAP32[$write15>>2]|0; - $call16 = (FUNCTION_TABLE_iiii[$8 & 7]($f,$s,$i$0$lcssa36)|0); - $cmp17 = ($call16>>>0)<($i$0$lcssa36>>>0); - if ($cmp17) { - $retval$0 = $i$0$lcssa36; - break L5; - } - $add$ptr = (($s) + ($i$0$lcssa36)|0); - $sub21 = (($l) - ($i$0$lcssa36))|0; - $$pre31 = HEAP32[$wpos>>2]|0; - $9 = $$pre31;$i$1 = $i$0$lcssa36;$l$addr$0 = $sub21;$s$addr$0 = $add$ptr; - } else { - $9 = $4;$i$1 = 0;$l$addr$0 = $l;$s$addr$0 = $s; - } - } while(0); - _memcpy(($9|0),($s$addr$0|0),($l$addr$0|0))|0; - $10 = HEAP32[$wpos>>2]|0; - $add$ptr26 = (($10) + ($l$addr$0)|0); - HEAP32[$wpos>>2] = $add$ptr26; - $add = (($i$1) + ($l$addr$0))|0; - $retval$0 = $add; - } - } while(0); - return ($retval$0|0); -} -function ___towrite($f) { - $f = $f|0; - var $0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0, $add$ptr = 0, $and = 0, $buf = 0, $buf_size = 0, $conv = 0, $conv3 = 0, $mode = 0, $or = 0, $or5 = 0, $rend = 0, $retval$0 = 0, $rpos = 0, $sub = 0, $tobool = 0, $wbase = 0; - var $wend = 0, $wpos = 0, label = 0, sp = 0; - sp = STACKTOP; - $mode = ((($f)) + 74|0); - $0 = HEAP8[$mode>>0]|0; - $conv = $0 << 24 >> 24; - $sub = (($conv) + 255)|0; - $or = $sub | $conv; - $conv3 = $or&255; - HEAP8[$mode>>0] = $conv3; - $1 = HEAP32[$f>>2]|0; - $and = $1 & 8; - $tobool = ($and|0)==(0); - if ($tobool) { - $rend = ((($f)) + 8|0); - HEAP32[$rend>>2] = 0; - $rpos = ((($f)) + 4|0); - HEAP32[$rpos>>2] = 0; - $buf = ((($f)) + 44|0); - $2 = HEAP32[$buf>>2]|0; - $wbase = ((($f)) + 28|0); - HEAP32[$wbase>>2] = $2; - $wpos = ((($f)) + 20|0); - HEAP32[$wpos>>2] = $2; - $3 = $2; - $buf_size = ((($f)) + 48|0); - $4 = HEAP32[$buf_size>>2]|0; - $add$ptr = (($3) + ($4)|0); - $wend = ((($f)) + 16|0); - HEAP32[$wend>>2] = $add$ptr; - $retval$0 = 0; - } else { - $or5 = $1 | 32; - HEAP32[$f>>2] = $or5; - $retval$0 = -1; - } - return ($retval$0|0); -} -function _wcrtomb($s,$wc,$st) { - $s = $s|0; - $wc = $wc|0; - $st = $st|0; - var $0 = 0, $and = 0, $and19 = 0, $and23 = 0, $and36 = 0, $and41 = 0, $and45 = 0, $call = 0, $cmp = 0, $cmp11 = 0, $cmp2 = 0, $cmp28 = 0, $cmp9 = 0, $conv = 0, $conv16 = 0, $conv21 = 0, $conv25 = 0, $conv33 = 0, $conv38 = 0, $conv43 = 0; - var $conv47 = 0, $conv5 = 0, $conv7 = 0, $incdec$ptr = 0, $incdec$ptr17 = 0, $incdec$ptr22 = 0, $incdec$ptr34 = 0, $incdec$ptr39 = 0, $incdec$ptr44 = 0, $or = 0, $or$cond = 0, $or15 = 0, $or20 = 0, $or24 = 0, $or32 = 0, $or37 = 0, $or42 = 0, $or46 = 0, $or6 = 0, $retval$0 = 0; - var $shr$28 = 0, $shr14$26 = 0, $shr18$27 = 0, $shr31$23 = 0, $shr35$24 = 0, $shr40$25 = 0, $sub27 = 0, $tobool = 0, label = 0, sp = 0; - sp = STACKTOP; - $tobool = ($s|0)==(0|0); - do { - if ($tobool) { - $retval$0 = 1; - } else { - $cmp = ($wc>>>0)<(128); - if ($cmp) { - $conv = $wc&255; - HEAP8[$s>>0] = $conv; - $retval$0 = 1; - break; - } - $cmp2 = ($wc>>>0)<(2048); - if ($cmp2) { - $shr$28 = $wc >>> 6; - $or = $shr$28 | 192; - $conv5 = $or&255; - $incdec$ptr = ((($s)) + 1|0); - HEAP8[$s>>0] = $conv5; - $and = $wc & 63; - $or6 = $and | 128; - $conv7 = $or6&255; - HEAP8[$incdec$ptr>>0] = $conv7; - $retval$0 = 2; - break; - } - $cmp9 = ($wc>>>0)<(55296); - $0 = $wc & -8192; - $cmp11 = ($0|0)==(57344); - $or$cond = $cmp9 | $cmp11; - if ($or$cond) { - $shr14$26 = $wc >>> 12; - $or15 = $shr14$26 | 224; - $conv16 = $or15&255; - $incdec$ptr17 = ((($s)) + 1|0); - HEAP8[$s>>0] = $conv16; - $shr18$27 = $wc >>> 6; - $and19 = $shr18$27 & 63; - $or20 = $and19 | 128; - $conv21 = $or20&255; - $incdec$ptr22 = ((($s)) + 2|0); - HEAP8[$incdec$ptr17>>0] = $conv21; - $and23 = $wc & 63; - $or24 = $and23 | 128; - $conv25 = $or24&255; - HEAP8[$incdec$ptr22>>0] = $conv25; - $retval$0 = 3; - break; - } - $sub27 = (($wc) + -65536)|0; - $cmp28 = ($sub27>>>0)<(1048576); - if ($cmp28) { - $shr31$23 = $wc >>> 18; - $or32 = $shr31$23 | 240; - $conv33 = $or32&255; - $incdec$ptr34 = ((($s)) + 1|0); - HEAP8[$s>>0] = $conv33; - $shr35$24 = $wc >>> 12; - $and36 = $shr35$24 & 63; - $or37 = $and36 | 128; - $conv38 = $or37&255; - $incdec$ptr39 = ((($s)) + 2|0); - HEAP8[$incdec$ptr34>>0] = $conv38; - $shr40$25 = $wc >>> 6; - $and41 = $shr40$25 & 63; - $or42 = $and41 | 128; - $conv43 = $or42&255; - $incdec$ptr44 = ((($s)) + 3|0); - HEAP8[$incdec$ptr39>>0] = $conv43; - $and45 = $wc & 63; - $or46 = $and45 | 128; - $conv47 = $or46&255; - HEAP8[$incdec$ptr44>>0] = $conv47; - $retval$0 = 4; - break; - } else { - $call = (___errno_location()|0); - HEAP32[$call>>2] = 84; - $retval$0 = -1; - break; - } - } - } while(0); - return ($retval$0|0); -} -function _wctomb($s,$wc) { - $s = $s|0; - $wc = $wc|0; - var $call = 0, $retval$0 = 0, $tobool = 0, label = 0, sp = 0; - sp = STACKTOP; - $tobool = ($s|0)==(0|0); - if ($tobool) { - $retval$0 = 0; - } else { - $call = (_wcrtomb($s,$wc,0)|0); - $retval$0 = $call; - } - return ($retval$0|0); -} -function _memchr($src,$c,$n) { - $src = $src|0; - $c = $c|0; - $n = $n|0; - var $0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $and = 0, $and$39 = 0, $and15 = 0, $and16 = 0, $cmp = 0, $cmp11 = 0, $cmp11$32 = 0, $cmp28 = 0, $cmp8 = 0, $cond = 0, $conv1 = 0, $dec = 0; - var $dec34 = 0, $incdec$ptr = 0, $incdec$ptr21 = 0, $incdec$ptr33 = 0, $lnot = 0, $mul = 0, $n$addr$0$lcssa = 0, $n$addr$0$lcssa61 = 0, $n$addr$043 = 0, $n$addr$1$lcssa = 0, $n$addr$133 = 0, $n$addr$133$lcssa = 0, $n$addr$227 = 0, $n$addr$3 = 0, $neg = 0, $or$cond = 0, $or$cond$42 = 0, $s$0$lcssa = 0, $s$0$lcssa60 = 0, $s$044 = 0; - var $s$128 = 0, $s$2 = 0, $sub = 0, $sub22 = 0, $tobool = 0, $tobool$40 = 0, $tobool2 = 0, $tobool2$41 = 0, $tobool2$lcssa = 0, $tobool25 = 0, $tobool25$26 = 0, $tobool36 = 0, $w$0$lcssa = 0, $w$034 = 0, $w$034$lcssa = 0, $xor = 0, label = 0, sp = 0; - sp = STACKTOP; - $conv1 = $c & 255; - $0 = $src; - $and$39 = $0 & 3; - $tobool$40 = ($and$39|0)!=(0); - $tobool2$41 = ($n|0)!=(0); - $or$cond$42 = $tobool2$41 & $tobool$40; - L1: do { - if ($or$cond$42) { - $1 = $c&255; - $n$addr$043 = $n;$s$044 = $src; - while(1) { - $2 = HEAP8[$s$044>>0]|0; - $cmp = ($2<<24>>24)==($1<<24>>24); - if ($cmp) { - $n$addr$0$lcssa61 = $n$addr$043;$s$0$lcssa60 = $s$044; - label = 6; - break L1; - } - $incdec$ptr = ((($s$044)) + 1|0); - $dec = (($n$addr$043) + -1)|0; - $3 = $incdec$ptr; - $and = $3 & 3; - $tobool = ($and|0)!=(0); - $tobool2 = ($dec|0)!=(0); - $or$cond = $tobool2 & $tobool; - if ($or$cond) { - $n$addr$043 = $dec;$s$044 = $incdec$ptr; - } else { - $n$addr$0$lcssa = $dec;$s$0$lcssa = $incdec$ptr;$tobool2$lcssa = $tobool2; - label = 5; - break; - } - } - } else { - $n$addr$0$lcssa = $n;$s$0$lcssa = $src;$tobool2$lcssa = $tobool2$41; - label = 5; - } - } while(0); - if ((label|0) == 5) { - if ($tobool2$lcssa) { - $n$addr$0$lcssa61 = $n$addr$0$lcssa;$s$0$lcssa60 = $s$0$lcssa; - label = 6; - } else { - $n$addr$3 = 0;$s$2 = $s$0$lcssa; - } - } - L8: do { - if ((label|0) == 6) { - $4 = HEAP8[$s$0$lcssa60>>0]|0; - $5 = $c&255; - $cmp8 = ($4<<24>>24)==($5<<24>>24); - if ($cmp8) { - $n$addr$3 = $n$addr$0$lcssa61;$s$2 = $s$0$lcssa60; - } else { - $mul = Math_imul($conv1, 16843009)|0; - $cmp11$32 = ($n$addr$0$lcssa61>>>0)>(3); - L11: do { - if ($cmp11$32) { - $n$addr$133 = $n$addr$0$lcssa61;$w$034 = $s$0$lcssa60; - while(1) { - $6 = HEAP32[$w$034>>2]|0; - $xor = $6 ^ $mul; - $sub = (($xor) + -16843009)|0; - $neg = $xor & -2139062144; - $and15 = $neg ^ -2139062144; - $and16 = $and15 & $sub; - $lnot = ($and16|0)==(0); - if (!($lnot)) { - $n$addr$133$lcssa = $n$addr$133;$w$034$lcssa = $w$034; - break; - } - $incdec$ptr21 = ((($w$034)) + 4|0); - $sub22 = (($n$addr$133) + -4)|0; - $cmp11 = ($sub22>>>0)>(3); - if ($cmp11) { - $n$addr$133 = $sub22;$w$034 = $incdec$ptr21; - } else { - $n$addr$1$lcssa = $sub22;$w$0$lcssa = $incdec$ptr21; - label = 11; - break L11; - } - } - $n$addr$227 = $n$addr$133$lcssa;$s$128 = $w$034$lcssa; - } else { - $n$addr$1$lcssa = $n$addr$0$lcssa61;$w$0$lcssa = $s$0$lcssa60; - label = 11; - } - } while(0); - if ((label|0) == 11) { - $tobool25$26 = ($n$addr$1$lcssa|0)==(0); - if ($tobool25$26) { - $n$addr$3 = 0;$s$2 = $w$0$lcssa; - break; - } else { - $n$addr$227 = $n$addr$1$lcssa;$s$128 = $w$0$lcssa; - } - } - while(1) { - $7 = HEAP8[$s$128>>0]|0; - $cmp28 = ($7<<24>>24)==($5<<24>>24); - if ($cmp28) { - $n$addr$3 = $n$addr$227;$s$2 = $s$128; - break L8; - } - $incdec$ptr33 = ((($s$128)) + 1|0); - $dec34 = (($n$addr$227) + -1)|0; - $tobool25 = ($dec34|0)==(0); - if ($tobool25) { - $n$addr$3 = 0;$s$2 = $incdec$ptr33; - break; - } else { - $n$addr$227 = $dec34;$s$128 = $incdec$ptr33; - } - } - } - } - } while(0); - $tobool36 = ($n$addr$3|0)!=(0); - $cond = $tobool36 ? $s$2 : 0; - return ($cond|0); -} -function ___syscall_ret($r) { - $r = $r|0; - var $call = 0, $cmp = 0, $retval$0 = 0, $sub = 0, label = 0, sp = 0; - sp = STACKTOP; - $cmp = ($r>>>0)>(4294963200); - if ($cmp) { - $sub = (0 - ($r))|0; - $call = (___errno_location()|0); - HEAP32[$call>>2] = $sub; - $retval$0 = -1; - } else { - $retval$0 = $r; - } - return ($retval$0|0); -} -function ___fflush_unlocked($f) { - $f = $f|0; - var $0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $cmp = 0, $cmp4 = 0, $rend = 0, $retval$0 = 0, $rpos = 0, $seek = 0, $sub$ptr$lhs$cast = 0, $sub$ptr$rhs$cast = 0, $sub$ptr$sub = 0, $tobool = 0, $wbase = 0, $wend = 0, $wpos = 0; - var $write = 0, label = 0, sp = 0; - sp = STACKTOP; - $wpos = ((($f)) + 20|0); - $0 = HEAP32[$wpos>>2]|0; - $wbase = ((($f)) + 28|0); - $1 = HEAP32[$wbase>>2]|0; - $cmp = ($0>>>0)>($1>>>0); - if ($cmp) { - $write = ((($f)) + 36|0); - $2 = HEAP32[$write>>2]|0; - (FUNCTION_TABLE_iiii[$2 & 7]($f,0,0)|0); - $3 = HEAP32[$wpos>>2]|0; - $tobool = ($3|0)==(0|0); - if ($tobool) { - $retval$0 = -1; - } else { - label = 3; - } - } else { - label = 3; - } - if ((label|0) == 3) { - $rpos = ((($f)) + 4|0); - $4 = HEAP32[$rpos>>2]|0; - $rend = ((($f)) + 8|0); - $5 = HEAP32[$rend>>2]|0; - $cmp4 = ($4>>>0)<($5>>>0); - if ($cmp4) { - $seek = ((($f)) + 40|0); - $6 = HEAP32[$seek>>2]|0; - $sub$ptr$lhs$cast = $4; - $sub$ptr$rhs$cast = $5; - $sub$ptr$sub = (($sub$ptr$lhs$cast) - ($sub$ptr$rhs$cast))|0; - (FUNCTION_TABLE_iiii[$6 & 7]($f,$sub$ptr$sub,1)|0); - } - $wend = ((($f)) + 16|0); - HEAP32[$wend>>2] = 0; - HEAP32[$wbase>>2] = 0; - HEAP32[$wpos>>2] = 0; - HEAP32[$rend>>2] = 0; - HEAP32[$rpos>>2] = 0; - $retval$0 = 0; - } - return ($retval$0|0); -} -function _cleanup($p) { - $p = $p|0; - var $0 = 0, $lockcount = 0, $tobool = 0, label = 0, sp = 0; - sp = STACKTOP; - $lockcount = ((($p)) + 68|0); - $0 = HEAP32[$lockcount>>2]|0; - $tobool = ($0|0)==(0); - if ($tobool) { - ___unlockfile($p); - } - return; -} -function _printf_core($f,$fmt,$ap,$nl_arg,$nl_type) { - $f = $f|0; - $fmt = $fmt|0; - $ap = $ap|0; - $nl_arg = $nl_arg|0; - $nl_type = $nl_type|0; - var $$ = 0, $$$i = 0, $$396$i = 0.0, $$404$i = 0.0, $$l10n$0 = 0, $$lcssa = 0, $$p$i = 0, $$p$inc468$i = 0, $$pr$i = 0, $$pr477$i = 0, $$pre = 0, $$pre$i = 0, $$pre357 = 0, $$pre564$i = 0, $$pre566$i = 0, $$pre567$i = 0, $$sub514$i = 0, $$sub562$i = 0, $0 = 0, $1 = 0; - var $10 = 0, $100 = 0, $101 = 0, $102 = 0, $103 = 0, $104 = 0, $105 = 0, $106 = 0, $107 = 0, $108 = 0, $109 = 0, $11 = 0, $110 = 0, $111 = 0, $112 = 0, $113 = 0, $114 = 0, $115 = 0, $116 = 0, $117 = 0; - var $118 = 0, $119 = 0, $12 = 0, $120 = 0, $121 = 0, $122 = 0, $123 = 0, $124 = 0, $125 = 0, $126 = 0, $127 = 0, $128 = 0, $129 = 0, $13 = 0, $130 = 0, $131 = 0, $132 = 0, $133 = 0, $134 = 0, $135 = 0; - var $136 = 0, $137 = 0, $138 = 0, $139 = 0, $14 = 0, $140 = 0, $141 = 0, $142 = 0, $143 = 0, $144 = 0, $145 = 0, $146 = 0, $147 = 0, $148 = 0, $149 = 0, $15 = 0, $150 = 0, $151 = 0, $152 = 0, $153 = 0; - var $154 = 0, $155 = 0, $156 = 0, $157 = 0, $158 = 0, $159 = 0, $16 = 0, $160 = 0, $161 = 0, $162 = 0, $163 = 0, $164 = 0, $165 = 0, $166 = 0, $167 = 0, $168 = 0, $169 = 0, $17 = 0, $170 = 0, $171 = 0; - var $172 = 0, $173 = 0, $174 = 0, $175 = 0, $176 = 0, $177 = 0, $178 = 0, $179 = 0, $18 = 0, $180 = 0, $181 = 0.0, $182 = 0, $183 = 0, $184 = 0, $185 = 0, $186 = 0, $187 = 0, $188 = 0, $189 = 0, $19 = 0; - var $190 = 0, $191 = 0, $192 = 0, $193 = 0, $194 = 0, $195 = 0, $196 = 0, $197 = 0, $198 = 0, $199 = 0, $2 = 0, $20 = 0, $200 = 0, $201 = 0, $202 = 0, $203 = 0, $204 = 0, $205 = 0, $206 = 0, $207 = 0; - var $208 = 0, $209 = 0, $21 = 0, $210 = 0, $211 = 0, $212 = 0, $213 = 0, $214 = 0, $215 = 0, $216 = 0, $217 = 0, $218 = 0, $219 = 0, $22 = 0, $220 = 0, $221 = 0, $222 = 0, $223 = 0, $224 = 0, $225 = 0; - var $226 = 0, $227 = 0, $228 = 0, $229 = 0, $23 = 0, $230 = 0, $231 = 0, $232 = 0, $233 = 0, $234 = 0, $235 = 0, $236 = 0, $237 = 0, $238 = 0, $239 = 0, $24 = 0, $240 = 0, $241 = 0, $242 = 0, $243 = 0; - var $244 = 0, $245 = 0, $246 = 0, $247 = 0, $248 = 0, $249 = 0, $25 = 0, $250 = 0, $251 = 0, $252 = 0, $253 = 0, $254 = 0, $255 = 0, $256 = 0, $257 = 0, $258 = 0, $259 = 0, $26 = 0, $260 = 0, $261 = 0; - var $262 = 0, $263 = 0, $264 = 0, $265 = 0, $266 = 0, $267 = 0, $268 = 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; - 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; - 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; - 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; - var $93 = 0, $94 = 0, $95 = 0, $96 = 0, $97 = 0, $98 = 0, $99 = 0, $a$0 = 0, $a$1 = 0, $a$1$lcssa$i = 0, $a$1549$i = 0, $a$2 = 0, $a$2$ph$i = 0, $a$3$lcssa$i = 0, $a$3539$i = 0, $a$5$lcssa$i = 0, $a$5521$i = 0, $a$6$i = 0, $a$8$i = 0, $a$9$ph$i = 0; - var $add = 0, $add$i = 0, $add$i$203 = 0, $add$i$239 = 0, $add$i$lcssa = 0, $add$ptr = 0, $add$ptr139 = 0, $add$ptr205 = 0, $add$ptr213$i = 0, $add$ptr257 = 0, $add$ptr311$i = 0, $add$ptr311$z$4$i = 0, $add$ptr340 = 0, $add$ptr354$i = 0, $add$ptr358$i = 0, $add$ptr359 = 0, $add$ptr373$i = 0, $add$ptr43 = 0, $add$ptr43$arrayidx31 = 0, $add$ptr442$i = 0; - var $add$ptr442$z$3$i = 0, $add$ptr473 = 0, $add$ptr65$i = 0, $add$ptr671$i = 0, $add$ptr742$i = 0, $add$ptr88 = 0, $add113$i = 0, $add150$i = 0, $add154$i = 0, $add163$i = 0, $add165$i = 0, $add269 = 0, $add269$p$0 = 0, $add273$i = 0, $add275$i = 0, $add284$i = 0, $add313$i = 0, $add322 = 0, $add355$i = 0, $add395 = 0; - var $add410$i = 0.0, $add412 = 0, $add414$i = 0, $add441 = 0, $add477$neg$i = 0, $add561$i = 0, $add608$i = 0, $add612$i = 0, $add620$i = 0, $add653$i = 0, $add67$i = 0, $add737$i = 0, $add810$i = 0, $add87$i = 0.0, $add90$i = 0.0, $and = 0, $and$i = 0, $and$i$216 = 0, $and$i$231 = 0, $and$i$238 = 0; - var $and$i$244 = 0, $and$i$406$i = 0, $and$i$412$i = 0, $and$i$418$i = 0, $and$i$424$i = 0, $and$i$430$i = 0, $and$i$436$i = 0, $and$i$442$i = 0, $and$i$448$i = 0, $and$i$454$i = 0, $and$i$460$i = 0, $and$i$466$i = 0, $and$i$472$i = 0, $and$i$i = 0, $and12$i = 0, $and134$i = 0, $and210 = 0, $and214 = 0, $and216 = 0, $and219 = 0; - var $and249 = 0, $and254 = 0, $and263 = 0, $and282$i = 0, $and289 = 0, $and294 = 0, $and309 = 0, $and309$fl$4 = 0, $and36$i = 0, $and379$i = 0, $and483$i = 0, $and610$pre$phi$iZ2D = 0, $and62$i = 0, $arg = 0, $arglist_current = 0, $arglist_current2 = 0, $arglist_next = 0, $arglist_next3 = 0, $argpos$0 = 0, $arraydecay208$add$ptr213$i = 0; - var $arrayidx$i = 0, $arrayidx$i$236 = 0, $arrayidx114 = 0, $arrayidx117$i = 0, $arrayidx119 = 0, $arrayidx124 = 0, $arrayidx132 = 0, $arrayidx16 = 0, $arrayidx173 = 0, $arrayidx192 = 0, $arrayidx251$i = 0, $arrayidx31 = 0, $arrayidx35 = 0, $arrayidx370 = 0, $arrayidx453$i = 0, $arrayidx469 = 0, $arrayidx481 = 0, $arrayidx489$i = 0, $arrayidx68 = 0, $arrayidx73 = 0; - var $arrayidx81 = 0, $big$i = 0, $buf = 0, $buf$i = 0, $call = 0, $call344 = 0, $call345 = 0, $call356 = 0, $call384 = 0, $call411 = 0, $call55$i = 0.0, $carry$0544$i = 0, $carry262$0535$i = 0, $cmp = 0, $cmp1 = 0, $cmp103$i = 0, $cmp105 = 0, $cmp111 = 0, $cmp116 = 0, $cmp126 = 0; - var $cmp127$i = 0, $cmp13 = 0, $cmp147$i = 0, $cmp165 = 0, $cmp176 = 0, $cmp18 = 0, $cmp181 = 0, $cmp184 = 0, $cmp188$i = 0, $cmp196$i = 0, $cmp205$i = 0, $cmp211 = 0, $cmp225$547$i = 0, $cmp225$i = 0, $cmp228$i = 0, $cmp235$543$i = 0, $cmp235$i = 0, $cmp240 = 0, $cmp249$i = 0, $cmp259$537$i = 0; - var $cmp259$i = 0, $cmp265$i = 0, $cmp270 = 0, $cmp277$533$i = 0, $cmp277$i = 0, $cmp299$i = 0, $cmp306 = 0, $cmp308$i = 0, $cmp315$i = 0, $cmp323 = 0, $cmp324$529$i = 0, $cmp324$i = 0, $cmp333$i = 0, $cmp338$i = 0, $cmp350$i = 0, $cmp363$525$i = 0, $cmp37 = 0, $cmp374$i = 0, $cmp377 = 0, $cmp377$314 = 0; - var $cmp38$i = 0, $cmp385 = 0, $cmp385$i = 0, $cmp390 = 0, $cmp390$i = 0, $cmp397 = 0, $cmp403$i = 0, $cmp404 = 0, $cmp404$324 = 0, $cmp411$i = 0, $cmp413 = 0, $cmp416$519$i = 0, $cmp416$i = 0, $cmp420$i = 0, $cmp421 = 0, $cmp433$515$i = 0, $cmp433$i = 0, $cmp434 = 0, $cmp442 = 0, $cmp443$i = 0; - var $cmp450$i = 0, $cmp450$lcssa$i = 0, $cmp466 = 0, $cmp470$i = 0, $cmp473$i = 0, $cmp478 = 0, $cmp478$295 = 0, $cmp48$i = 0, $cmp495$511$i = 0, $cmp495$i = 0, $cmp50 = 0, $cmp50$308 = 0, $cmp505$i = 0, $cmp515$i = 0, $cmp528$i = 0, $cmp563$i = 0, $cmp577$i = 0, $cmp59$i = 0, $cmp614$i = 0, $cmp617$i = 0; - var $cmp623$i = 0, $cmp636$506$i = 0, $cmp636$i = 0, $cmp65 = 0, $cmp660$i = 0, $cmp665$i = 0, $cmp673$i = 0, $cmp678$491$i = 0, $cmp678$i = 0, $cmp686$i = 0, $cmp707$486$i = 0, $cmp707$i = 0, $cmp710$487$i = 0, $cmp710$i = 0, $cmp722$483$i = 0, $cmp722$i = 0, $cmp727$i = 0, $cmp745$i = 0, $cmp748$499$i = 0, $cmp748$i = 0; - var $cmp75 = 0, $cmp760$i = 0, $cmp765$i = 0, $cmp770$495$i = 0, $cmp770$i = 0, $cmp777$i = 0, $cmp790$i = 0, $cmp818$i = 0, $cmp82$i = 0, $cmp94$i = 0, $cmp97 = 0, $cnt$0 = 0, $cnt$1 = 0, $cnt$1$lcssa = 0, $cond$i = 0, $cond100$i = 0, $cond233$i = 0, $cond245 = 0, $cond271$i = 0, $cond304$i = 0; - var $cond354 = 0, $cond426 = 0, $cond43$i = 0, $cond53$i = 0, $cond629$i = 0, $cond732$i = 0, $cond800$i = 0, $conv$4$i = 0, $conv$4$i$197 = 0, $conv$4$i$211 = 0, $conv$i = 0, $conv$i$205 = 0, $conv1$i = 0, $conv111$i = 0, $conv114$i = 0, $conv116$i = 0, $conv118$393$i = 0, $conv120 = 0, $conv121$i = 0, $conv123$i = 0.0; - var $conv134 = 0, $conv163 = 0, $conv174 = 0, $conv174$lcssa = 0, $conv207 = 0, $conv216$i = 0, $conv218$i = 0.0, $conv229 = 0, $conv232 = 0, $conv242$i$lcssa = 0, $conv32 = 0, $conv48 = 0, $conv48$307 = 0, $conv48311 = 0, $conv58 = 0, $conv644$i = 0, $conv646$i = 0, $conv69 = 0, $conv83 = 0, $d$0$542$i = 0; - var $d$0$i = 0, $d$0545$i = 0, $d$1534$i = 0, $d$2$lcssa$i = 0, $d$2520$i = 0, $d$4$i = 0, $d$5494$i = 0, $d$6488$i = 0, $d$7500$i = 0, $dec$i = 0, $dec476$i = 0, $dec481$i = 0, $dec78$i = 0, $div274$i = 0, $div356$i = 0, $div378$i = 0, $div384$i = 0, $e$0531$i = 0, $e$1$i = 0, $e$2517$i = 0; - var $e$4$i = 0, $e$5$ph$i = 0, $e2$i = 0, $ebuf0$i = 0, $estr$0$i = 0, $estr$1$lcssa$i = 0, $estr$1507$i = 0, $estr$2$i = 0, $exitcond$i = 0, $expanded = 0, $expanded10 = 0, $expanded11 = 0, $expanded13 = 0, $expanded14 = 0, $expanded15 = 0, $expanded4 = 0, $expanded6 = 0, $expanded7 = 0, $expanded8 = 0, $fl$0284 = 0; - var $fl$0310 = 0, $fl$1 = 0, $fl$1$and219 = 0, $fl$3 = 0, $fl$4 = 0, $fl$6 = 0, $i$0$lcssa = 0, $i$0$lcssa368 = 0, $i$0316 = 0, $i$0530$i = 0, $i$07$i = 0, $i$07$i$201 = 0, $i$1$lcssa$i = 0, $i$1325 = 0, $i$1526$i = 0, $i$2299 = 0, $i$2299$lcssa = 0, $i$2516$i = 0, $i$3296 = 0, $i$3512$i = 0; - var $i137 = 0, $i86 = 0, $idxprom$i = 0, $inc = 0, $inc$i = 0, $inc425$i = 0, $inc438$i = 0, $inc468$i = 0, $inc488 = 0, $inc500$i = 0, $incdec$ptr = 0, $incdec$ptr$i = 0, $incdec$ptr$i$204 = 0, $incdec$ptr$i$212 = 0, $incdec$ptr$i$212$lcssa = 0, $incdec$ptr$i$225 = 0, $incdec$ptr$i$lcssa = 0, $incdec$ptr106$i = 0, $incdec$ptr112$i = 0, $incdec$ptr115$i = 0; - var $incdec$ptr122$i = 0, $incdec$ptr137$i = 0, $incdec$ptr169 = 0, $incdec$ptr169$lcssa = 0, $incdec$ptr169269 = 0, $incdec$ptr169271 = 0, $incdec$ptr169271$lcssa414 = 0, $incdec$ptr169272 = 0, $incdec$ptr169274 = 0, $incdec$ptr169275 = 0, $incdec$ptr169276$lcssa = 0, $incdec$ptr169276301 = 0, $incdec$ptr217$i = 0, $incdec$ptr217$i$lcssa = 0, $incdec$ptr23 = 0, $incdec$ptr246$i = 0, $incdec$ptr288$i = 0, $incdec$ptr292$570$i = 0, $incdec$ptr292$a$3$571$i = 0, $incdec$ptr292$a$3$i = 0; - var $incdec$ptr292$a$3573$i = 0, $incdec$ptr292$i = 0, $incdec$ptr296$i = 0, $incdec$ptr383 = 0, $incdec$ptr410 = 0, $incdec$ptr419$i = 0, $incdec$ptr423$i = 0, $incdec$ptr62 = 0, $incdec$ptr639$i = 0, $incdec$ptr645$i = 0, $incdec$ptr647$i = 0, $incdec$ptr681$i = 0, $incdec$ptr689$i = 0, $incdec$ptr698$i = 0, $incdec$ptr698$i$lcssa = 0, $incdec$ptr725$i = 0, $incdec$ptr734$i = 0, $incdec$ptr773$i = 0, $incdec$ptr776$i = 0, $incdec$ptr808$i = 0; - var $isdigit = 0, $isdigit$6$i = 0, $isdigit$6$i$199 = 0, $isdigit$i = 0, $isdigit$i$207 = 0, $isdigit188 = 0, $isdigit190 = 0, $isdigittmp = 0, $isdigittmp$ = 0, $isdigittmp$5$i = 0, $isdigittmp$5$i$198 = 0, $isdigittmp$i = 0, $isdigittmp$i$206 = 0, $isdigittmp187 = 0, $isdigittmp189 = 0, $isdigittmp8$i = 0, $isdigittmp8$i$200 = 0, $j$0$524$i = 0, $j$0$i = 0, $j$0527$i = 0; - var $j$1513$i = 0, $j$2$i = 0, $l$0 = 0, $l$0$i = 0, $l$1$i = 0, $l$1315 = 0, $l$2 = 0, $l10n$0 = 0, $l10n$0$lcssa = 0, $l10n$0$phi = 0, $l10n$1 = 0, $l10n$2 = 0, $l10n$3 = 0, $land$ext$neg$i = 0, $lnot$ext = 0, $lnot$i = 0, $lnot455$i = 0, $lnot483 = 0, $lor$ext$i = 0, $mb = 0; - var $mul$i = 0, $mul$i$202 = 0, $mul$i$240 = 0.0, $mul125$i = 0.0, $mul202$i = 0.0, $mul220$i = 0.0, $mul286$i = 0, $mul286$i$lcssa = 0, $mul322$i = 0, $mul328$i = 0, $mul335$i = 0, $mul349$i = 0, $mul367$i = 0, $mul406$i = 0.0, $mul407$i = 0.0, $mul431$i = 0, $mul437$i = 0, $mul499$i = 0, $mul513$i = 0, $mul80$i = 0.0; - var $mul80$i$lcssa = 0.0, $notlhs$i = 0, $notrhs$i = 0, $or = 0, $or$cond = 0, $or$cond$i = 0, $or$cond1$not$i = 0, $or$cond192 = 0, $or$cond193 = 0, $or$cond195 = 0, $or$cond2$i = 0, $or$cond384 = 0, $or$cond395$i = 0, $or$cond397$i = 0, $or$cond401$i = 0, $or$i = 0, $or$i$241 = 0, $or100 = 0, $or120$i = 0, $or246 = 0; - var $or504$i = 0, $or613$i = 0, $p$0 = 0, $p$1 = 0, $p$2 = 0, $p$2$add322 = 0, $p$3 = 0, $p$4365 = 0, $p$5 = 0, $p$addr$2$$sub514398$i = 0, $p$addr$2$$sub562399$i = 0, $p$addr$2$i = 0, $p$addr$3$i = 0, $p$addr$4$lcssa$i = 0, $p$addr$4489$i = 0, $p$addr$5$lcssa$i = 0, $p$addr$5501$i = 0, $pl$0 = 0, $pl$0$i = 0, $pl$1 = 0; - var $pl$1$i = 0, $pl$2 = 0, $prefix$0 = 0, $prefix$0$add$ptr65$i = 0, $prefix$0$i = 0, $prefix$1 = 0, $prefix$2 = 0, $r$0$a$9$i = 0, $re$1482$i = 0, $rem360$i = 0, $rem370$i = 0, $rem494$510$i = 0, $rem494$i = 0, $retval$0 = 0, $retval$0$i = 0, $round$0481$i = 0.0, $round377$1$i = 0.0, $s$0$i = 0, $s$1$i = 0, $s$1$i$lcssa = 0; - var $s$addr$0$lcssa$i$229 = 0, $s$addr$06$i = 0, $s$addr$06$i$221 = 0, $s35$0$i = 0, $s668$0492$i = 0, $s668$1$i = 0, $s715$0$lcssa$i = 0, $s715$0484$i = 0, $s753$0$i = 0, $s753$1496$i = 0, $s753$2$i = 0, $shl = 0, $shl280$i = 0, $shl60 = 0, $shr = 0, $shr283$i = 0, $shr285$i = 0, $small$0$i = 0.0, $small$1$i = 0.0, $st$0 = 0; - var $st$0$lcssa415 = 0, $storemerge = 0, $storemerge$186282 = 0, $storemerge$186309 = 0, $storemerge$191 = 0, $sub = 0, $sub$i = 0.0, $sub$ptr$div$i = 0, $sub$ptr$div321$i = 0, $sub$ptr$div347$i = 0, $sub$ptr$div430$i = 0, $sub$ptr$div511$i = 0, $sub$ptr$lhs$cast = 0, $sub$ptr$lhs$cast$i = 0, $sub$ptr$lhs$cast160$i = 0, $sub$ptr$lhs$cast305$i = 0, $sub$ptr$lhs$cast317 = 0, $sub$ptr$lhs$cast344$i = 0, $sub$ptr$lhs$cast361 = 0, $sub$ptr$lhs$cast431 = 0; - var $sub$ptr$lhs$cast508$i = 0, $sub$ptr$lhs$cast694$i = 0, $sub$ptr$rhs$cast = 0, $sub$ptr$rhs$cast$i = 0, $sub$ptr$rhs$cast152$i = 0, $sub$ptr$rhs$cast161$i = 0, $sub$ptr$rhs$cast174$i = 0, $sub$ptr$rhs$cast267 = 0, $sub$ptr$rhs$cast306$i = 0, $sub$ptr$rhs$cast318 = 0, $sub$ptr$rhs$cast319$i = 0, $sub$ptr$rhs$cast345$i = 0, $sub$ptr$rhs$cast362 = 0, $sub$ptr$rhs$cast428$i = 0, $sub$ptr$rhs$cast432 = 0, $sub$ptr$rhs$cast634$504$i = 0, $sub$ptr$rhs$cast634$i = 0, $sub$ptr$rhs$cast649$i = 0, $sub$ptr$rhs$cast695$i = 0, $sub$ptr$rhs$cast788$i = 0; - var $sub$ptr$rhs$cast812$i = 0, $sub$ptr$sub = 0, $sub$ptr$sub$i = 0, $sub$ptr$sub145$i = 0, $sub$ptr$sub153$i = 0, $sub$ptr$sub159$i = 0, $sub$ptr$sub162$i = 0, $sub$ptr$sub172$i = 0, $sub$ptr$sub175$i = 0, $sub$ptr$sub268 = 0, $sub$ptr$sub307$i = 0, $sub$ptr$sub319 = 0, $sub$ptr$sub320$i = 0, $sub$ptr$sub346$i = 0, $sub$ptr$sub363 = 0, $sub$ptr$sub429$i = 0, $sub$ptr$sub433 = 0, $sub$ptr$sub433$p$5 = 0, $sub$ptr$sub510$i = 0, $sub$ptr$sub635$505$i = 0; - var $sub$ptr$sub635$i = 0, $sub$ptr$sub650$i = 0, $sub$ptr$sub650$pn$i = 0, $sub$ptr$sub696$i = 0, $sub$ptr$sub789$i = 0, $sub$ptr$sub813$i = 0, $sub101 = 0, $sub124$i = 0.0, $sub135 = 0, $sub146$i = 0, $sub164 = 0, $sub175 = 0, $sub181$i = 0, $sub203$i = 0, $sub219$i = 0.0, $sub256$i = 0, $sub264$i = 0, $sub281$i = 0, $sub336$i = 0, $sub343$i = 0; - var $sub357$i = 0, $sub389 = 0, $sub409$i = 0, $sub478$i = 0, $sub480$i = 0, $sub514$i = 0, $sub54 = 0, $sub562$i = 0, $sub59 = 0, $sub626$le$i = 0, $sub735$i = 0, $sub74$i = 0, $sub806$i = 0, $sub84 = 0, $sub85$i = 0.0, $sub86$i = 0.0, $sub88$i = 0.0, $sub91$i = 0.0, $sub97$i = 0, $sum = 0; - var $t$0 = 0, $t$1 = 0, $t$addr$0$i = 0, $t$addr$1$i = 0, $tobool = 0, $tobool$i = 0, $tobool$i$217 = 0, $tobool$i$232 = 0, $tobool$i$245 = 0, $tobool$i$407$i = 0, $tobool$i$413$i = 0, $tobool$i$419$i = 0, $tobool$i$425$i = 0, $tobool$i$431$i = 0, $tobool$i$437$i = 0, $tobool$i$443$i = 0, $tobool$i$449$i = 0, $tobool$i$455$i = 0, $tobool$i$461$i = 0, $tobool$i$467$i = 0; - var $tobool$i$473$i = 0, $tobool$i$i = 0, $tobool13$i = 0, $tobool135$i = 0, $tobool139$i = 0, $tobool140$i = 0, $tobool141 = 0, $tobool178 = 0, $tobool208 = 0, $tobool217 = 0, $tobool222$i = 0, $tobool244$i = 0, $tobool25 = 0, $tobool255 = 0, $tobool264 = 0, $tobool28 = 0, $tobool290 = 0, $tobool290$569$i = 0, $tobool290$i = 0, $tobool294$i = 0; - var $tobool295 = 0, $tobool314 = 0, $tobool341$i = 0, $tobool349 = 0, $tobool357 = 0, $tobool37$i = 0, $tobool371$i = 0, $tobool380 = 0, $tobool380$i = 0, $tobool400$i = 0, $tobool407 = 0, $tobool459 = 0, $tobool462 = 0, $tobool470 = 0, $tobool484$i = 0, $tobool490$i = 0, $tobool55 = 0, $tobool56$i = 0, $tobool63$i = 0, $tobool76$i = 0; - var $tobool76552$i = 0, $tobool781$i = 0, $tobool79$i = 0, $tobool9$i = 0, $tobool90 = 0, $w$0 = 0, $w$1 = 0, $w$2 = 0, $w$add165$i = 0, $w$add653$i = 0, $wc = 0, $ws$0317 = 0, $ws$1326 = 0, $xor = 0, $xor$i = 0, $xor167$i = 0, $xor186$i = 0, $xor449 = 0, $xor457 = 0, $xor655$i = 0; - var $xor816$i = 0, $y$addr$0$i = 0.0, $y$addr$1$i = 0.0, $y$addr$2$i = 0.0, $y$addr$3$i = 0.0, $y$addr$4$i = 0.0, $z$0$i = 0, $z$0$lcssa = 0, $z$0302 = 0, $z$1 = 0, $z$1$lcssa$i = 0, $z$1548$i = 0, $z$2 = 0, $z$2$i = 0, $z$2$i$lcssa = 0, $z$3$lcssa$i = 0, $z$3538$i = 0, $z$4$i = 0, $z$7$add$ptr742$i = 0, $z$7$i = 0; - var $z$7$i$lcssa = 0, $z$7$ph$i = 0, label = 0, sp = 0; - sp = STACKTOP; - STACKTOP = STACKTOP + 624|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abort(); - $big$i = sp + 24|0; - $e2$i = sp + 16|0; - $buf$i = sp + 588|0; - $ebuf0$i = sp + 576|0; - $arg = sp; - $buf = sp + 536|0; - $wc = sp + 8|0; - $mb = sp + 528|0; - $tobool25 = ($f|0)!=(0|0); - $add$ptr205 = ((($buf)) + 40|0); - $sub$ptr$lhs$cast317 = $add$ptr205; - $add$ptr340 = ((($buf)) + 39|0); - $arrayidx370 = ((($wc)) + 4|0); - $arrayidx$i$236 = ((($ebuf0$i)) + 12|0); - $incdec$ptr106$i = ((($ebuf0$i)) + 11|0); - $sub$ptr$rhs$cast$i = $buf$i; - $sub$ptr$lhs$cast160$i = $arrayidx$i$236; - $sub$ptr$sub159$i = (($sub$ptr$lhs$cast160$i) - ($sub$ptr$rhs$cast$i))|0; - $sub$ptr$sub145$i = (-2 - ($sub$ptr$rhs$cast$i))|0; - $sub$ptr$sub153$i = (($sub$ptr$lhs$cast160$i) + 2)|0; - $add$ptr213$i = ((($big$i)) + 288|0); - $add$ptr671$i = ((($buf$i)) + 9|0); - $sub$ptr$lhs$cast694$i = $add$ptr671$i; - $incdec$ptr689$i = ((($buf$i)) + 8|0); - $cnt$0 = 0;$incdec$ptr169275 = $fmt;$l$0 = 0;$l10n$0 = 0; - L1: while(1) { - $cmp = ($cnt$0|0)>(-1); - do { - if ($cmp) { - $sub = (2147483647 - ($cnt$0))|0; - $cmp1 = ($l$0|0)>($sub|0); - if ($cmp1) { - $call = (___errno_location()|0); - HEAP32[$call>>2] = 75; - $cnt$1 = -1; - break; - } else { - $add = (($l$0) + ($cnt$0))|0; - $cnt$1 = $add; - break; - } - } else { - $cnt$1 = $cnt$0; - } - } while(0); - $0 = HEAP8[$incdec$ptr169275>>0]|0; - $tobool = ($0<<24>>24)==(0); - if ($tobool) { - $cnt$1$lcssa = $cnt$1;$l10n$0$lcssa = $l10n$0; - label = 242; - break; - } else { - $1 = $0;$incdec$ptr169274 = $incdec$ptr169275; - } - L9: while(1) { - switch ($1<<24>>24) { - case 37: { - $incdec$ptr169276301 = $incdec$ptr169274;$z$0302 = $incdec$ptr169274; - label = 9; - break L9; - break; - } - case 0: { - $incdec$ptr169276$lcssa = $incdec$ptr169274;$z$0$lcssa = $incdec$ptr169274; - break L9; - break; - } - default: { - } - } - $incdec$ptr = ((($incdec$ptr169274)) + 1|0); - $$pre = HEAP8[$incdec$ptr>>0]|0; - $1 = $$pre;$incdec$ptr169274 = $incdec$ptr; - } - L12: do { - if ((label|0) == 9) { - while(1) { - label = 0; - $arrayidx16 = ((($incdec$ptr169276301)) + 1|0); - $2 = HEAP8[$arrayidx16>>0]|0; - $cmp18 = ($2<<24>>24)==(37); - if (!($cmp18)) { - $incdec$ptr169276$lcssa = $incdec$ptr169276301;$z$0$lcssa = $z$0302; - break L12; - } - $incdec$ptr23 = ((($z$0302)) + 1|0); - $add$ptr = ((($incdec$ptr169276301)) + 2|0); - $3 = HEAP8[$add$ptr>>0]|0; - $cmp13 = ($3<<24>>24)==(37); - if ($cmp13) { - $incdec$ptr169276301 = $add$ptr;$z$0302 = $incdec$ptr23; - label = 9; - } else { - $incdec$ptr169276$lcssa = $add$ptr;$z$0$lcssa = $incdec$ptr23; - break; - } - } - } - } while(0); - $sub$ptr$lhs$cast = $z$0$lcssa; - $sub$ptr$rhs$cast = $incdec$ptr169275; - $sub$ptr$sub = (($sub$ptr$lhs$cast) - ($sub$ptr$rhs$cast))|0; - if ($tobool25) { - $4 = HEAP32[$f>>2]|0; - $and$i = $4 & 32; - $tobool$i = ($and$i|0)==(0); - if ($tobool$i) { - (___fwritex($incdec$ptr169275,$sub$ptr$sub,$f)|0); - } - } - $tobool28 = ($z$0$lcssa|0)==($incdec$ptr169275|0); - if (!($tobool28)) { - $l10n$0$phi = $l10n$0;$cnt$0 = $cnt$1;$incdec$ptr169275 = $incdec$ptr169276$lcssa;$l$0 = $sub$ptr$sub;$l10n$0 = $l10n$0$phi; - continue; - } - $arrayidx31 = ((($incdec$ptr169276$lcssa)) + 1|0); - $5 = HEAP8[$arrayidx31>>0]|0; - $conv32 = $5 << 24 >> 24; - $isdigittmp = (($conv32) + -48)|0; - $isdigit = ($isdigittmp>>>0)<(10); - if ($isdigit) { - $arrayidx35 = ((($incdec$ptr169276$lcssa)) + 2|0); - $6 = HEAP8[$arrayidx35>>0]|0; - $cmp37 = ($6<<24>>24)==(36); - $add$ptr43 = ((($incdec$ptr169276$lcssa)) + 3|0); - $add$ptr43$arrayidx31 = $cmp37 ? $add$ptr43 : $arrayidx31; - $$l10n$0 = $cmp37 ? 1 : $l10n$0; - $isdigittmp$ = $cmp37 ? $isdigittmp : -1; - $$pre357 = HEAP8[$add$ptr43$arrayidx31>>0]|0; - $7 = $$pre357;$argpos$0 = $isdigittmp$;$l10n$1 = $$l10n$0;$storemerge = $add$ptr43$arrayidx31; - } else { - $7 = $5;$argpos$0 = -1;$l10n$1 = $l10n$0;$storemerge = $arrayidx31; - } - $conv48$307 = $7 << 24 >> 24; - $8 = $conv48$307 & -32; - $cmp50$308 = ($8|0)==(32); - L25: do { - if ($cmp50$308) { - $9 = $7;$conv48311 = $conv48$307;$fl$0310 = 0;$storemerge$186309 = $storemerge; - while(1) { - $sub54 = (($conv48311) + -32)|0; - $shl = 1 << $sub54; - $and = $shl & 75913; - $tobool55 = ($and|0)==(0); - if ($tobool55) { - $12 = $9;$fl$0284 = $fl$0310;$storemerge$186282 = $storemerge$186309; - break L25; - } - $conv58 = $9 << 24 >> 24; - $sub59 = (($conv58) + -32)|0; - $shl60 = 1 << $sub59; - $or = $shl60 | $fl$0310; - $incdec$ptr62 = ((($storemerge$186309)) + 1|0); - $10 = HEAP8[$incdec$ptr62>>0]|0; - $conv48 = $10 << 24 >> 24; - $11 = $conv48 & -32; - $cmp50 = ($11|0)==(32); - if ($cmp50) { - $9 = $10;$conv48311 = $conv48;$fl$0310 = $or;$storemerge$186309 = $incdec$ptr62; - } else { - $12 = $10;$fl$0284 = $or;$storemerge$186282 = $incdec$ptr62; - break; - } - } - } else { - $12 = $7;$fl$0284 = 0;$storemerge$186282 = $storemerge; - } - } while(0); - $cmp65 = ($12<<24>>24)==(42); - do { - if ($cmp65) { - $arrayidx68 = ((($storemerge$186282)) + 1|0); - $13 = HEAP8[$arrayidx68>>0]|0; - $conv69 = $13 << 24 >> 24; - $isdigittmp189 = (($conv69) + -48)|0; - $isdigit190 = ($isdigittmp189>>>0)<(10); - if ($isdigit190) { - $arrayidx73 = ((($storemerge$186282)) + 2|0); - $14 = HEAP8[$arrayidx73>>0]|0; - $cmp75 = ($14<<24>>24)==(36); - if ($cmp75) { - $arrayidx81 = (($nl_type) + ($isdigittmp189<<2)|0); - HEAP32[$arrayidx81>>2] = 10; - $15 = HEAP8[$arrayidx68>>0]|0; - $conv83 = $15 << 24 >> 24; - $sub84 = (($conv83) + -48)|0; - $i86 = (($nl_arg) + ($sub84<<3)|0); - $16 = $i86; - $17 = $16; - $18 = HEAP32[$17>>2]|0; - $19 = (($16) + 4)|0; - $20 = $19; - $21 = HEAP32[$20>>2]|0; - $add$ptr88 = ((($storemerge$186282)) + 3|0); - $l10n$2 = 1;$storemerge$191 = $add$ptr88;$w$0 = $18; - } else { - label = 24; - } - } else { - label = 24; - } - if ((label|0) == 24) { - label = 0; - $tobool90 = ($l10n$1|0)==(0); - if (!($tobool90)) { - $retval$0 = -1; - break L1; - } - if (!($tobool25)) { - $fl$1 = $fl$0284;$incdec$ptr169269 = $arrayidx68;$l10n$3 = 0;$w$1 = 0; - break; - } - $arglist_current = HEAP32[$ap>>2]|0; - $22 = $arglist_current; - $23 = ((0) + 4|0); - $expanded4 = $23; - $expanded = (($expanded4) - 1)|0; - $24 = (($22) + ($expanded))|0; - $25 = ((0) + 4|0); - $expanded8 = $25; - $expanded7 = (($expanded8) - 1)|0; - $expanded6 = $expanded7 ^ -1; - $26 = $24 & $expanded6; - $27 = $26; - $28 = HEAP32[$27>>2]|0; - $arglist_next = ((($27)) + 4|0); - HEAP32[$ap>>2] = $arglist_next; - $l10n$2 = 0;$storemerge$191 = $arrayidx68;$w$0 = $28; - } - $cmp97 = ($w$0|0)<(0); - if ($cmp97) { - $or100 = $fl$0284 | 8192; - $sub101 = (0 - ($w$0))|0; - $fl$1 = $or100;$incdec$ptr169269 = $storemerge$191;$l10n$3 = $l10n$2;$w$1 = $sub101; - } else { - $fl$1 = $fl$0284;$incdec$ptr169269 = $storemerge$191;$l10n$3 = $l10n$2;$w$1 = $w$0; - } - } else { - $conv$4$i = $12 << 24 >> 24; - $isdigittmp$5$i = (($conv$4$i) + -48)|0; - $isdigit$6$i = ($isdigittmp$5$i>>>0)<(10); - if ($isdigit$6$i) { - $29 = $storemerge$186282;$i$07$i = 0;$isdigittmp8$i = $isdigittmp$5$i; - while(1) { - $mul$i = ($i$07$i*10)|0; - $add$i = (($mul$i) + ($isdigittmp8$i))|0; - $incdec$ptr$i = ((($29)) + 1|0); - $30 = HEAP8[$incdec$ptr$i>>0]|0; - $conv$i = $30 << 24 >> 24; - $isdigittmp$i = (($conv$i) + -48)|0; - $isdigit$i = ($isdigittmp$i>>>0)<(10); - if ($isdigit$i) { - $29 = $incdec$ptr$i;$i$07$i = $add$i;$isdigittmp8$i = $isdigittmp$i; - } else { - $add$i$lcssa = $add$i;$incdec$ptr$i$lcssa = $incdec$ptr$i; - break; - } - } - $cmp105 = ($add$i$lcssa|0)<(0); - if ($cmp105) { - $retval$0 = -1; - break L1; - } else { - $fl$1 = $fl$0284;$incdec$ptr169269 = $incdec$ptr$i$lcssa;$l10n$3 = $l10n$1;$w$1 = $add$i$lcssa; - } - } else { - $fl$1 = $fl$0284;$incdec$ptr169269 = $storemerge$186282;$l10n$3 = $l10n$1;$w$1 = 0; - } - } - } while(0); - $31 = HEAP8[$incdec$ptr169269>>0]|0; - $cmp111 = ($31<<24>>24)==(46); - L46: do { - if ($cmp111) { - $arrayidx114 = ((($incdec$ptr169269)) + 1|0); - $32 = HEAP8[$arrayidx114>>0]|0; - $cmp116 = ($32<<24>>24)==(42); - if (!($cmp116)) { - $conv$4$i$197 = $32 << 24 >> 24; - $isdigittmp$5$i$198 = (($conv$4$i$197) + -48)|0; - $isdigit$6$i$199 = ($isdigittmp$5$i$198>>>0)<(10); - if ($isdigit$6$i$199) { - $49 = $arrayidx114;$i$07$i$201 = 0;$isdigittmp8$i$200 = $isdigittmp$5$i$198; - } else { - $incdec$ptr169272 = $arrayidx114;$p$0 = 0; - break; - } - while(1) { - $mul$i$202 = ($i$07$i$201*10)|0; - $add$i$203 = (($mul$i$202) + ($isdigittmp8$i$200))|0; - $incdec$ptr$i$204 = ((($49)) + 1|0); - $50 = HEAP8[$incdec$ptr$i$204>>0]|0; - $conv$i$205 = $50 << 24 >> 24; - $isdigittmp$i$206 = (($conv$i$205) + -48)|0; - $isdigit$i$207 = ($isdigittmp$i$206>>>0)<(10); - if ($isdigit$i$207) { - $49 = $incdec$ptr$i$204;$i$07$i$201 = $add$i$203;$isdigittmp8$i$200 = $isdigittmp$i$206; - } else { - $incdec$ptr169272 = $incdec$ptr$i$204;$p$0 = $add$i$203; - break L46; - } - } - } - $arrayidx119 = ((($incdec$ptr169269)) + 2|0); - $33 = HEAP8[$arrayidx119>>0]|0; - $conv120 = $33 << 24 >> 24; - $isdigittmp187 = (($conv120) + -48)|0; - $isdigit188 = ($isdigittmp187>>>0)<(10); - if ($isdigit188) { - $arrayidx124 = ((($incdec$ptr169269)) + 3|0); - $34 = HEAP8[$arrayidx124>>0]|0; - $cmp126 = ($34<<24>>24)==(36); - if ($cmp126) { - $arrayidx132 = (($nl_type) + ($isdigittmp187<<2)|0); - HEAP32[$arrayidx132>>2] = 10; - $35 = HEAP8[$arrayidx119>>0]|0; - $conv134 = $35 << 24 >> 24; - $sub135 = (($conv134) + -48)|0; - $i137 = (($nl_arg) + ($sub135<<3)|0); - $36 = $i137; - $37 = $36; - $38 = HEAP32[$37>>2]|0; - $39 = (($36) + 4)|0; - $40 = $39; - $41 = HEAP32[$40>>2]|0; - $add$ptr139 = ((($incdec$ptr169269)) + 4|0); - $incdec$ptr169272 = $add$ptr139;$p$0 = $38; - break; - } - } - $tobool141 = ($l10n$3|0)==(0); - if (!($tobool141)) { - $retval$0 = -1; - break L1; - } - if ($tobool25) { - $arglist_current2 = HEAP32[$ap>>2]|0; - $42 = $arglist_current2; - $43 = ((0) + 4|0); - $expanded11 = $43; - $expanded10 = (($expanded11) - 1)|0; - $44 = (($42) + ($expanded10))|0; - $45 = ((0) + 4|0); - $expanded15 = $45; - $expanded14 = (($expanded15) - 1)|0; - $expanded13 = $expanded14 ^ -1; - $46 = $44 & $expanded13; - $47 = $46; - $48 = HEAP32[$47>>2]|0; - $arglist_next3 = ((($47)) + 4|0); - HEAP32[$ap>>2] = $arglist_next3; - $incdec$ptr169272 = $arrayidx119;$p$0 = $48; - } else { - $incdec$ptr169272 = $arrayidx119;$p$0 = 0; - } - } else { - $incdec$ptr169272 = $incdec$ptr169269;$p$0 = -1; - } - } while(0); - $incdec$ptr169271 = $incdec$ptr169272;$st$0 = 0; - while(1) { - $51 = HEAP8[$incdec$ptr169271>>0]|0; - $conv163 = $51 << 24 >> 24; - $sub164 = (($conv163) + -65)|0; - $cmp165 = ($sub164>>>0)>(57); - if ($cmp165) { - $retval$0 = -1; - break L1; - } - $incdec$ptr169 = ((($incdec$ptr169271)) + 1|0); - $arrayidx173 = ((3611 + (($st$0*58)|0)|0) + ($sub164)|0); - $52 = HEAP8[$arrayidx173>>0]|0; - $conv174 = $52&255; - $sub175 = (($conv174) + -1)|0; - $cmp176 = ($sub175>>>0)<(8); - if ($cmp176) { - $incdec$ptr169271 = $incdec$ptr169;$st$0 = $conv174; - } else { - $$lcssa = $52;$conv174$lcssa = $conv174;$incdec$ptr169$lcssa = $incdec$ptr169;$incdec$ptr169271$lcssa414 = $incdec$ptr169271;$st$0$lcssa415 = $st$0; - break; - } - } - $tobool178 = ($$lcssa<<24>>24)==(0); - if ($tobool178) { - $retval$0 = -1; - break; - } - $cmp181 = ($$lcssa<<24>>24)==(19); - $cmp184 = ($argpos$0|0)>(-1); - do { - if ($cmp181) { - if ($cmp184) { - $retval$0 = -1; - break L1; - } else { - label = 52; - } - } else { - if ($cmp184) { - $arrayidx192 = (($nl_type) + ($argpos$0<<2)|0); - HEAP32[$arrayidx192>>2] = $conv174$lcssa; - $53 = (($nl_arg) + ($argpos$0<<3)|0); - $54 = $53; - $55 = $54; - $56 = HEAP32[$55>>2]|0; - $57 = (($54) + 4)|0; - $58 = $57; - $59 = HEAP32[$58>>2]|0; - $60 = $arg; - $61 = $60; - HEAP32[$61>>2] = $56; - $62 = (($60) + 4)|0; - $63 = $62; - HEAP32[$63>>2] = $59; - label = 52; - break; - } - if (!($tobool25)) { - $retval$0 = 0; - break L1; - } - _pop_arg_336($arg,$conv174$lcssa,$ap); - } - } while(0); - if ((label|0) == 52) { - label = 0; - if (!($tobool25)) { - $cnt$0 = $cnt$1;$incdec$ptr169275 = $incdec$ptr169$lcssa;$l$0 = $sub$ptr$sub;$l10n$0 = $l10n$3; - continue; - } - } - $64 = HEAP8[$incdec$ptr169271$lcssa414>>0]|0; - $conv207 = $64 << 24 >> 24; - $tobool208 = ($st$0$lcssa415|0)!=(0); - $and210 = $conv207 & 15; - $cmp211 = ($and210|0)==(3); - $or$cond192 = $tobool208 & $cmp211; - $and214 = $conv207 & -33; - $t$0 = $or$cond192 ? $and214 : $conv207; - $and216 = $fl$1 & 8192; - $tobool217 = ($and216|0)==(0); - $and219 = $fl$1 & -65537; - $fl$1$and219 = $tobool217 ? $fl$1 : $and219; - L75: do { - switch ($t$0|0) { - case 110: { - switch ($st$0$lcssa415|0) { - case 0: { - $71 = HEAP32[$arg>>2]|0; - HEAP32[$71>>2] = $cnt$1; - $cnt$0 = $cnt$1;$incdec$ptr169275 = $incdec$ptr169$lcssa;$l$0 = $sub$ptr$sub;$l10n$0 = $l10n$3; - continue L1; - break; - } - case 1: { - $72 = HEAP32[$arg>>2]|0; - HEAP32[$72>>2] = $cnt$1; - $cnt$0 = $cnt$1;$incdec$ptr169275 = $incdec$ptr169$lcssa;$l$0 = $sub$ptr$sub;$l10n$0 = $l10n$3; - continue L1; - break; - } - case 2: { - $73 = ($cnt$1|0)<(0); - $74 = $73 << 31 >> 31; - $75 = HEAP32[$arg>>2]|0; - $76 = $75; - $77 = $76; - HEAP32[$77>>2] = $cnt$1; - $78 = (($76) + 4)|0; - $79 = $78; - HEAP32[$79>>2] = $74; - $cnt$0 = $cnt$1;$incdec$ptr169275 = $incdec$ptr169$lcssa;$l$0 = $sub$ptr$sub;$l10n$0 = $l10n$3; - continue L1; - break; - } - case 3: { - $conv229 = $cnt$1&65535; - $80 = HEAP32[$arg>>2]|0; - HEAP16[$80>>1] = $conv229; - $cnt$0 = $cnt$1;$incdec$ptr169275 = $incdec$ptr169$lcssa;$l$0 = $sub$ptr$sub;$l10n$0 = $l10n$3; - continue L1; - break; - } - case 4: { - $conv232 = $cnt$1&255; - $81 = HEAP32[$arg>>2]|0; - HEAP8[$81>>0] = $conv232; - $cnt$0 = $cnt$1;$incdec$ptr169275 = $incdec$ptr169$lcssa;$l$0 = $sub$ptr$sub;$l10n$0 = $l10n$3; - continue L1; - break; - } - case 6: { - $82 = HEAP32[$arg>>2]|0; - HEAP32[$82>>2] = $cnt$1; - $cnt$0 = $cnt$1;$incdec$ptr169275 = $incdec$ptr169$lcssa;$l$0 = $sub$ptr$sub;$l10n$0 = $l10n$3; - continue L1; - break; - } - case 7: { - $83 = ($cnt$1|0)<(0); - $84 = $83 << 31 >> 31; - $85 = HEAP32[$arg>>2]|0; - $86 = $85; - $87 = $86; - HEAP32[$87>>2] = $cnt$1; - $88 = (($86) + 4)|0; - $89 = $88; - HEAP32[$89>>2] = $84; - $cnt$0 = $cnt$1;$incdec$ptr169275 = $incdec$ptr169$lcssa;$l$0 = $sub$ptr$sub;$l10n$0 = $l10n$3; - continue L1; - break; - } - default: { - $cnt$0 = $cnt$1;$incdec$ptr169275 = $incdec$ptr169$lcssa;$l$0 = $sub$ptr$sub;$l10n$0 = $l10n$3; - continue L1; - } - } - break; - } - case 112: { - $cmp240 = ($p$0>>>0)>(8); - $cond245 = $cmp240 ? $p$0 : 8; - $or246 = $fl$1$and219 | 8; - $fl$3 = $or246;$p$1 = $cond245;$t$1 = 120; - label = 64; - break; - } - case 88: case 120: { - $fl$3 = $fl$1$and219;$p$1 = $p$0;$t$1 = $t$0; - label = 64; - break; - } - case 111: { - $116 = $arg; - $117 = $116; - $118 = HEAP32[$117>>2]|0; - $119 = (($116) + 4)|0; - $120 = $119; - $121 = HEAP32[$120>>2]|0; - $122 = ($118|0)==(0); - $123 = ($121|0)==(0); - $124 = $122 & $123; - if ($124) { - $s$addr$0$lcssa$i$229 = $add$ptr205; - } else { - $126 = $118;$129 = $121;$s$addr$06$i$221 = $add$ptr205; - while(1) { - $125 = $126 & 7; - $127 = $125 | 48; - $128 = $127&255; - $incdec$ptr$i$225 = ((($s$addr$06$i$221)) + -1|0); - HEAP8[$incdec$ptr$i$225>>0] = $128; - $130 = (_bitshift64Lshr(($126|0),($129|0),3)|0); - $131 = tempRet0; - $132 = ($130|0)==(0); - $133 = ($131|0)==(0); - $134 = $132 & $133; - if ($134) { - $s$addr$0$lcssa$i$229 = $incdec$ptr$i$225; - break; - } else { - $126 = $130;$129 = $131;$s$addr$06$i$221 = $incdec$ptr$i$225; - } - } - } - $and263 = $fl$1$and219 & 8; - $tobool264 = ($and263|0)==(0); - if ($tobool264) { - $a$0 = $s$addr$0$lcssa$i$229;$fl$4 = $fl$1$and219;$p$2 = $p$0;$pl$1 = 0;$prefix$1 = 4091; - label = 77; - } else { - $sub$ptr$rhs$cast267 = $s$addr$0$lcssa$i$229; - $sub$ptr$sub268 = (($sub$ptr$lhs$cast317) - ($sub$ptr$rhs$cast267))|0; - $add269 = (($sub$ptr$sub268) + 1)|0; - $cmp270 = ($p$0|0)<($add269|0); - $add269$p$0 = $cmp270 ? $add269 : $p$0; - $a$0 = $s$addr$0$lcssa$i$229;$fl$4 = $fl$1$and219;$p$2 = $add269$p$0;$pl$1 = 0;$prefix$1 = 4091; - label = 77; - } - break; - } - case 105: case 100: { - $135 = $arg; - $136 = $135; - $137 = HEAP32[$136>>2]|0; - $138 = (($135) + 4)|0; - $139 = $138; - $140 = HEAP32[$139>>2]|0; - $141 = ($140|0)<(0); - if ($141) { - $142 = (_i64Subtract(0,0,($137|0),($140|0))|0); - $143 = tempRet0; - $144 = $arg; - $145 = $144; - HEAP32[$145>>2] = $142; - $146 = (($144) + 4)|0; - $147 = $146; - HEAP32[$147>>2] = $143; - $148 = $142;$149 = $143;$pl$0 = 1;$prefix$0 = 4091; - label = 76; - break L75; - } - $and289 = $fl$1$and219 & 2048; - $tobool290 = ($and289|0)==(0); - if ($tobool290) { - $and294 = $fl$1$and219 & 1; - $tobool295 = ($and294|0)==(0); - $$ = $tobool295 ? 4091 : (4093); - $148 = $137;$149 = $140;$pl$0 = $and294;$prefix$0 = $$; - label = 76; - } else { - $148 = $137;$149 = $140;$pl$0 = 1;$prefix$0 = (4092); - label = 76; - } - break; - } - case 117: { - $65 = $arg; - $66 = $65; - $67 = HEAP32[$66>>2]|0; - $68 = (($65) + 4)|0; - $69 = $68; - $70 = HEAP32[$69>>2]|0; - $148 = $67;$149 = $70;$pl$0 = 0;$prefix$0 = 4091; - label = 76; - break; - } - case 99: { - $161 = $arg; - $162 = $161; - $163 = HEAP32[$162>>2]|0; - $164 = (($161) + 4)|0; - $165 = $164; - $166 = HEAP32[$165>>2]|0; - $167 = $163&255; - HEAP8[$add$ptr340>>0] = $167; - $a$2 = $add$ptr340;$fl$6 = $and219;$p$5 = 1;$pl$2 = 0;$prefix$2 = 4091;$z$2 = $add$ptr205; - break; - } - case 109: { - $call344 = (___errno_location()|0); - $168 = HEAP32[$call344>>2]|0; - $call345 = (_strerror($168)|0); - $a$1 = $call345; - label = 82; - break; - } - case 115: { - $169 = HEAP32[$arg>>2]|0; - $tobool349 = ($169|0)!=(0|0); - $cond354 = $tobool349 ? $169 : 4101; - $a$1 = $cond354; - label = 82; - break; - } - case 67: { - $170 = $arg; - $171 = $170; - $172 = HEAP32[$171>>2]|0; - $173 = (($170) + 4)|0; - $174 = $173; - $175 = HEAP32[$174>>2]|0; - HEAP32[$wc>>2] = $172; - HEAP32[$arrayidx370>>2] = 0; - HEAP32[$arg>>2] = $wc; - $p$4365 = -1; - label = 86; - break; - } - case 83: { - $cmp377$314 = ($p$0|0)==(0); - if ($cmp377$314) { - _pad($f,32,$w$1,0,$fl$1$and219); - $i$0$lcssa368 = 0; - label = 98; - } else { - $p$4365 = $p$0; - label = 86; - } - break; - } - case 65: case 71: case 70: case 69: case 97: case 103: case 102: case 101: { - $181 = +HEAPF64[$arg>>3]; - HEAP32[$e2$i>>2] = 0; - HEAPF64[tempDoublePtr>>3] = $181;$182 = HEAP32[tempDoublePtr>>2]|0; - $183 = HEAP32[tempDoublePtr+4>>2]|0; - $184 = ($183|0)<(0); - if ($184) { - $sub$i = -$181; - $pl$0$i = 1;$prefix$0$i = 4108;$y$addr$0$i = $sub$i; - } else { - $and$i$238 = $fl$1$and219 & 2048; - $tobool9$i = ($and$i$238|0)==(0); - if ($tobool9$i) { - $and12$i = $fl$1$and219 & 1; - $tobool13$i = ($and12$i|0)==(0); - $$$i = $tobool13$i ? (4109) : (4114); - $pl$0$i = $and12$i;$prefix$0$i = $$$i;$y$addr$0$i = $181; - } else { - $pl$0$i = 1;$prefix$0$i = (4111);$y$addr$0$i = $181; - } - } - HEAPF64[tempDoublePtr>>3] = $y$addr$0$i;$185 = HEAP32[tempDoublePtr>>2]|0; - $186 = HEAP32[tempDoublePtr+4>>2]|0; - $187 = $186 & 2146435072; - $188 = ($187>>>0)<(2146435072); - $189 = (0)<(0); - $190 = ($187|0)==(2146435072); - $191 = $190 & $189; - $192 = $188 | $191; - do { - if ($192) { - $call55$i = (+_frexpl($y$addr$0$i,$e2$i)); - $mul$i$240 = $call55$i * 2.0; - $tobool56$i = $mul$i$240 != 0.0; - if ($tobool56$i) { - $195 = HEAP32[$e2$i>>2]|0; - $dec$i = (($195) + -1)|0; - HEAP32[$e2$i>>2] = $dec$i; - } - $or$i$241 = $t$0 | 32; - $cmp59$i = ($or$i$241|0)==(97); - if ($cmp59$i) { - $and62$i = $t$0 & 32; - $tobool63$i = ($and62$i|0)==(0); - $add$ptr65$i = ((($prefix$0$i)) + 9|0); - $prefix$0$add$ptr65$i = $tobool63$i ? $prefix$0$i : $add$ptr65$i; - $add67$i = $pl$0$i | 2; - $196 = ($p$0>>>0)>(11); - $sub74$i = (12 - ($p$0))|0; - $tobool76552$i = ($sub74$i|0)==(0); - $tobool76$i = $196 | $tobool76552$i; - do { - if ($tobool76$i) { - $y$addr$1$i = $mul$i$240; - } else { - $re$1482$i = $sub74$i;$round$0481$i = 8.0; - while(1) { - $dec78$i = (($re$1482$i) + -1)|0; - $mul80$i = $round$0481$i * 16.0; - $tobool79$i = ($dec78$i|0)==(0); - if ($tobool79$i) { - $mul80$i$lcssa = $mul80$i; - break; - } else { - $re$1482$i = $dec78$i;$round$0481$i = $mul80$i; - } - } - $197 = HEAP8[$prefix$0$add$ptr65$i>>0]|0; - $cmp82$i = ($197<<24>>24)==(45); - if ($cmp82$i) { - $sub85$i = -$mul$i$240; - $sub86$i = $sub85$i - $mul80$i$lcssa; - $add87$i = $mul80$i$lcssa + $sub86$i; - $sub88$i = -$add87$i; - $y$addr$1$i = $sub88$i; - break; - } else { - $add90$i = $mul$i$240 + $mul80$i$lcssa; - $sub91$i = $add90$i - $mul80$i$lcssa; - $y$addr$1$i = $sub91$i; - break; - } - } - } while(0); - $198 = HEAP32[$e2$i>>2]|0; - $cmp94$i = ($198|0)<(0); - $sub97$i = (0 - ($198))|0; - $cond100$i = $cmp94$i ? $sub97$i : $198; - $199 = ($cond100$i|0)<(0); - $200 = $199 << 31 >> 31; - $201 = (_fmt_u($cond100$i,$200,$arrayidx$i$236)|0); - $cmp103$i = ($201|0)==($arrayidx$i$236|0); - if ($cmp103$i) { - HEAP8[$incdec$ptr106$i>>0] = 48; - $estr$0$i = $incdec$ptr106$i; - } else { - $estr$0$i = $201; - } - $202 = $198 >> 31; - $203 = $202 & 2; - $204 = (($203) + 43)|0; - $conv111$i = $204&255; - $incdec$ptr112$i = ((($estr$0$i)) + -1|0); - HEAP8[$incdec$ptr112$i>>0] = $conv111$i; - $add113$i = (($t$0) + 15)|0; - $conv114$i = $add113$i&255; - $incdec$ptr115$i = ((($estr$0$i)) + -2|0); - HEAP8[$incdec$ptr115$i>>0] = $conv114$i; - $notrhs$i = ($p$0|0)<(1); - $and134$i = $fl$1$and219 & 8; - $tobool135$i = ($and134$i|0)==(0); - $s$0$i = $buf$i;$y$addr$2$i = $y$addr$1$i; - while(1) { - $conv116$i = (~~(($y$addr$2$i))); - $arrayidx117$i = (4075 + ($conv116$i)|0); - $205 = HEAP8[$arrayidx117$i>>0]|0; - $conv118$393$i = $205&255; - $or120$i = $conv118$393$i | $and62$i; - $conv121$i = $or120$i&255; - $incdec$ptr122$i = ((($s$0$i)) + 1|0); - HEAP8[$s$0$i>>0] = $conv121$i; - $conv123$i = (+($conv116$i|0)); - $sub124$i = $y$addr$2$i - $conv123$i; - $mul125$i = $sub124$i * 16.0; - $sub$ptr$lhs$cast$i = $incdec$ptr122$i; - $sub$ptr$sub$i = (($sub$ptr$lhs$cast$i) - ($sub$ptr$rhs$cast$i))|0; - $cmp127$i = ($sub$ptr$sub$i|0)==(1); - do { - if ($cmp127$i) { - $notlhs$i = $mul125$i == 0.0; - $or$cond1$not$i = $notrhs$i & $notlhs$i; - $or$cond$i = $tobool135$i & $or$cond1$not$i; - if ($or$cond$i) { - $s$1$i = $incdec$ptr122$i; - break; - } - $incdec$ptr137$i = ((($s$0$i)) + 2|0); - HEAP8[$incdec$ptr122$i>>0] = 46; - $s$1$i = $incdec$ptr137$i; - } else { - $s$1$i = $incdec$ptr122$i; - } - } while(0); - $tobool139$i = $mul125$i != 0.0; - if ($tobool139$i) { - $s$0$i = $s$1$i;$y$addr$2$i = $mul125$i; - } else { - $s$1$i$lcssa = $s$1$i; - break; - } - } - $tobool140$i = ($p$0|0)!=(0); - $$pre566$i = $s$1$i$lcssa; - $sub146$i = (($sub$ptr$sub145$i) + ($$pre566$i))|0; - $cmp147$i = ($sub146$i|0)<($p$0|0); - $or$cond384 = $tobool140$i & $cmp147$i; - $sub$ptr$rhs$cast152$i = $incdec$ptr115$i; - $add150$i = (($sub$ptr$sub153$i) + ($p$0))|0; - $add154$i = (($add150$i) - ($sub$ptr$rhs$cast152$i))|0; - $sub$ptr$rhs$cast161$i = $incdec$ptr115$i; - $sub$ptr$sub162$i = (($sub$ptr$sub159$i) - ($sub$ptr$rhs$cast161$i))|0; - $add163$i = (($sub$ptr$sub162$i) + ($$pre566$i))|0; - $l$0$i = $or$cond384 ? $add154$i : $add163$i; - $add165$i = (($l$0$i) + ($add67$i))|0; - _pad($f,32,$w$1,$add165$i,$fl$1$and219); - $206 = HEAP32[$f>>2]|0; - $and$i$418$i = $206 & 32; - $tobool$i$419$i = ($and$i$418$i|0)==(0); - if ($tobool$i$419$i) { - (___fwritex($prefix$0$add$ptr65$i,$add67$i,$f)|0); - } - $xor167$i = $fl$1$and219 ^ 65536; - _pad($f,48,$w$1,$add165$i,$xor167$i); - $sub$ptr$sub172$i = (($$pre566$i) - ($sub$ptr$rhs$cast$i))|0; - $207 = HEAP32[$f>>2]|0; - $and$i$424$i = $207 & 32; - $tobool$i$425$i = ($and$i$424$i|0)==(0); - if ($tobool$i$425$i) { - (___fwritex($buf$i,$sub$ptr$sub172$i,$f)|0); - } - $sub$ptr$rhs$cast174$i = $incdec$ptr115$i; - $sub$ptr$sub175$i = (($sub$ptr$lhs$cast160$i) - ($sub$ptr$rhs$cast174$i))|0; - $sum = (($sub$ptr$sub172$i) + ($sub$ptr$sub175$i))|0; - $sub181$i = (($l$0$i) - ($sum))|0; - _pad($f,48,$sub181$i,0,0); - $208 = HEAP32[$f>>2]|0; - $and$i$430$i = $208 & 32; - $tobool$i$431$i = ($and$i$430$i|0)==(0); - if ($tobool$i$431$i) { - (___fwritex($incdec$ptr115$i,$sub$ptr$sub175$i,$f)|0); - } - $xor186$i = $fl$1$and219 ^ 8192; - _pad($f,32,$w$1,$add165$i,$xor186$i); - $cmp188$i = ($add165$i|0)<($w$1|0); - $w$add165$i = $cmp188$i ? $w$1 : $add165$i; - $retval$0$i = $w$add165$i; - break; - } - $cmp196$i = ($p$0|0)<(0); - $$p$i = $cmp196$i ? 6 : $p$0; - if ($tobool56$i) { - $mul202$i = $mul$i$240 * 268435456.0; - $209 = HEAP32[$e2$i>>2]|0; - $sub203$i = (($209) + -28)|0; - HEAP32[$e2$i>>2] = $sub203$i; - $210 = $sub203$i;$y$addr$3$i = $mul202$i; - } else { - $$pre564$i = HEAP32[$e2$i>>2]|0; - $210 = $$pre564$i;$y$addr$3$i = $mul$i$240; - } - $cmp205$i = ($210|0)<(0); - $arraydecay208$add$ptr213$i = $cmp205$i ? $big$i : $add$ptr213$i; - $sub$ptr$rhs$cast345$i = $arraydecay208$add$ptr213$i; - $y$addr$4$i = $y$addr$3$i;$z$0$i = $arraydecay208$add$ptr213$i; - while(1) { - $conv216$i = (~~(($y$addr$4$i))>>>0); - HEAP32[$z$0$i>>2] = $conv216$i; - $incdec$ptr217$i = ((($z$0$i)) + 4|0); - $conv218$i = (+($conv216$i>>>0)); - $sub219$i = $y$addr$4$i - $conv218$i; - $mul220$i = $sub219$i * 1.0E+9; - $tobool222$i = $mul220$i != 0.0; - if ($tobool222$i) { - $y$addr$4$i = $mul220$i;$z$0$i = $incdec$ptr217$i; - } else { - $incdec$ptr217$i$lcssa = $incdec$ptr217$i; - break; - } - } - $$pr$i = HEAP32[$e2$i>>2]|0; - $cmp225$547$i = ($$pr$i|0)>(0); - if ($cmp225$547$i) { - $211 = $$pr$i;$a$1549$i = $arraydecay208$add$ptr213$i;$z$1548$i = $incdec$ptr217$i$lcssa; - while(1) { - $cmp228$i = ($211|0)>(29); - $cond233$i = $cmp228$i ? 29 : $211; - $d$0$542$i = ((($z$1548$i)) + -4|0); - $cmp235$543$i = ($d$0$542$i>>>0)<($a$1549$i>>>0); - do { - if ($cmp235$543$i) { - $a$2$ph$i = $a$1549$i; - } else { - $carry$0544$i = 0;$d$0545$i = $d$0$542$i; - while(1) { - $212 = HEAP32[$d$0545$i>>2]|0; - $213 = (_bitshift64Shl(($212|0),0,($cond233$i|0))|0); - $214 = tempRet0; - $215 = (_i64Add(($213|0),($214|0),($carry$0544$i|0),0)|0); - $216 = tempRet0; - $217 = (___uremdi3(($215|0),($216|0),1000000000,0)|0); - $218 = tempRet0; - HEAP32[$d$0545$i>>2] = $217; - $219 = (___udivdi3(($215|0),($216|0),1000000000,0)|0); - $220 = tempRet0; - $d$0$i = ((($d$0545$i)) + -4|0); - $cmp235$i = ($d$0$i>>>0)<($a$1549$i>>>0); - if ($cmp235$i) { - $conv242$i$lcssa = $219; - break; - } else { - $carry$0544$i = $219;$d$0545$i = $d$0$i; - } - } - $tobool244$i = ($conv242$i$lcssa|0)==(0); - if ($tobool244$i) { - $a$2$ph$i = $a$1549$i; - break; - } - $incdec$ptr246$i = ((($a$1549$i)) + -4|0); - HEAP32[$incdec$ptr246$i>>2] = $conv242$i$lcssa; - $a$2$ph$i = $incdec$ptr246$i; - } - } while(0); - $z$2$i = $z$1548$i; - while(1) { - $cmp249$i = ($z$2$i>>>0)>($a$2$ph$i>>>0); - if (!($cmp249$i)) { - $z$2$i$lcssa = $z$2$i; - break; - } - $arrayidx251$i = ((($z$2$i)) + -4|0); - $221 = HEAP32[$arrayidx251$i>>2]|0; - $lnot$i = ($221|0)==(0); - if ($lnot$i) { - $z$2$i = $arrayidx251$i; - } else { - $z$2$i$lcssa = $z$2$i; - break; - } - } - $222 = HEAP32[$e2$i>>2]|0; - $sub256$i = (($222) - ($cond233$i))|0; - HEAP32[$e2$i>>2] = $sub256$i; - $cmp225$i = ($sub256$i|0)>(0); - if ($cmp225$i) { - $211 = $sub256$i;$a$1549$i = $a$2$ph$i;$z$1548$i = $z$2$i$lcssa; - } else { - $$pr477$i = $sub256$i;$a$1$lcssa$i = $a$2$ph$i;$z$1$lcssa$i = $z$2$i$lcssa; - break; - } - } - } else { - $$pr477$i = $$pr$i;$a$1$lcssa$i = $arraydecay208$add$ptr213$i;$z$1$lcssa$i = $incdec$ptr217$i$lcssa; - } - $cmp259$537$i = ($$pr477$i|0)<(0); - if ($cmp259$537$i) { - $add273$i = (($$p$i) + 25)|0; - $div274$i = (($add273$i|0) / 9)&-1; - $add275$i = (($div274$i) + 1)|0; - $cmp299$i = ($or$i$241|0)==(102); - $223 = $$pr477$i;$a$3539$i = $a$1$lcssa$i;$z$3538$i = $z$1$lcssa$i; - while(1) { - $sub264$i = (0 - ($223))|0; - $cmp265$i = ($sub264$i|0)>(9); - $cond271$i = $cmp265$i ? 9 : $sub264$i; - $cmp277$533$i = ($a$3539$i>>>0)<($z$3538$i>>>0); - do { - if ($cmp277$533$i) { - $shl280$i = 1 << $cond271$i; - $sub281$i = (($shl280$i) + -1)|0; - $shr285$i = 1000000000 >>> $cond271$i; - $carry262$0535$i = 0;$d$1534$i = $a$3539$i; - while(1) { - $225 = HEAP32[$d$1534$i>>2]|0; - $and282$i = $225 & $sub281$i; - $shr283$i = $225 >>> $cond271$i; - $add284$i = (($shr283$i) + ($carry262$0535$i))|0; - HEAP32[$d$1534$i>>2] = $add284$i; - $mul286$i = Math_imul($and282$i, $shr285$i)|0; - $incdec$ptr288$i = ((($d$1534$i)) + 4|0); - $cmp277$i = ($incdec$ptr288$i>>>0)<($z$3538$i>>>0); - if ($cmp277$i) { - $carry262$0535$i = $mul286$i;$d$1534$i = $incdec$ptr288$i; - } else { - $mul286$i$lcssa = $mul286$i; - break; - } - } - $226 = HEAP32[$a$3539$i>>2]|0; - $tobool290$i = ($226|0)==(0); - $incdec$ptr292$i = ((($a$3539$i)) + 4|0); - $incdec$ptr292$a$3$i = $tobool290$i ? $incdec$ptr292$i : $a$3539$i; - $tobool294$i = ($mul286$i$lcssa|0)==(0); - if ($tobool294$i) { - $incdec$ptr292$a$3573$i = $incdec$ptr292$a$3$i;$z$4$i = $z$3538$i; - break; - } - $incdec$ptr296$i = ((($z$3538$i)) + 4|0); - HEAP32[$z$3538$i>>2] = $mul286$i$lcssa; - $incdec$ptr292$a$3573$i = $incdec$ptr292$a$3$i;$z$4$i = $incdec$ptr296$i; - } else { - $224 = HEAP32[$a$3539$i>>2]|0; - $tobool290$569$i = ($224|0)==(0); - $incdec$ptr292$570$i = ((($a$3539$i)) + 4|0); - $incdec$ptr292$a$3$571$i = $tobool290$569$i ? $incdec$ptr292$570$i : $a$3539$i; - $incdec$ptr292$a$3573$i = $incdec$ptr292$a$3$571$i;$z$4$i = $z$3538$i; - } - } while(0); - $cond304$i = $cmp299$i ? $arraydecay208$add$ptr213$i : $incdec$ptr292$a$3573$i; - $sub$ptr$lhs$cast305$i = $z$4$i; - $sub$ptr$rhs$cast306$i = $cond304$i; - $sub$ptr$sub307$i = (($sub$ptr$lhs$cast305$i) - ($sub$ptr$rhs$cast306$i))|0; - $sub$ptr$div$i = $sub$ptr$sub307$i >> 2; - $cmp308$i = ($sub$ptr$div$i|0)>($add275$i|0); - $add$ptr311$i = (($cond304$i) + ($add275$i<<2)|0); - $add$ptr311$z$4$i = $cmp308$i ? $add$ptr311$i : $z$4$i; - $227 = HEAP32[$e2$i>>2]|0; - $add313$i = (($227) + ($cond271$i))|0; - HEAP32[$e2$i>>2] = $add313$i; - $cmp259$i = ($add313$i|0)<(0); - if ($cmp259$i) { - $223 = $add313$i;$a$3539$i = $incdec$ptr292$a$3573$i;$z$3538$i = $add$ptr311$z$4$i; - } else { - $a$3$lcssa$i = $incdec$ptr292$a$3573$i;$z$3$lcssa$i = $add$ptr311$z$4$i; - break; - } - } - } else { - $a$3$lcssa$i = $a$1$lcssa$i;$z$3$lcssa$i = $z$1$lcssa$i; - } - $cmp315$i = ($a$3$lcssa$i>>>0)<($z$3$lcssa$i>>>0); - do { - if ($cmp315$i) { - $sub$ptr$rhs$cast319$i = $a$3$lcssa$i; - $sub$ptr$sub320$i = (($sub$ptr$rhs$cast345$i) - ($sub$ptr$rhs$cast319$i))|0; - $sub$ptr$div321$i = $sub$ptr$sub320$i >> 2; - $mul322$i = ($sub$ptr$div321$i*9)|0; - $228 = HEAP32[$a$3$lcssa$i>>2]|0; - $cmp324$529$i = ($228>>>0)<(10); - if ($cmp324$529$i) { - $e$1$i = $mul322$i; - break; - } else { - $e$0531$i = $mul322$i;$i$0530$i = 10; - } - while(1) { - $mul328$i = ($i$0530$i*10)|0; - $inc$i = (($e$0531$i) + 1)|0; - $cmp324$i = ($228>>>0)<($mul328$i>>>0); - if ($cmp324$i) { - $e$1$i = $inc$i; - break; - } else { - $e$0531$i = $inc$i;$i$0530$i = $mul328$i; - } - } - } else { - $e$1$i = 0; - } - } while(0); - $cmp333$i = ($or$i$241|0)!=(102); - $mul335$i = $cmp333$i ? $e$1$i : 0; - $sub336$i = (($$p$i) - ($mul335$i))|0; - $cmp338$i = ($or$i$241|0)==(103); - $tobool341$i = ($$p$i|0)!=(0); - $229 = $tobool341$i & $cmp338$i; - $land$ext$neg$i = $229 << 31 >> 31; - $sub343$i = (($sub336$i) + ($land$ext$neg$i))|0; - $sub$ptr$lhs$cast344$i = $z$3$lcssa$i; - $sub$ptr$sub346$i = (($sub$ptr$lhs$cast344$i) - ($sub$ptr$rhs$cast345$i))|0; - $sub$ptr$div347$i = $sub$ptr$sub346$i >> 2; - $230 = ($sub$ptr$div347$i*9)|0; - $mul349$i = (($230) + -9)|0; - $cmp350$i = ($sub343$i|0)<($mul349$i|0); - if ($cmp350$i) { - $add$ptr354$i = ((($arraydecay208$add$ptr213$i)) + 4|0); - $add355$i = (($sub343$i) + 9216)|0; - $div356$i = (($add355$i|0) / 9)&-1; - $sub357$i = (($div356$i) + -1024)|0; - $add$ptr358$i = (($add$ptr354$i) + ($sub357$i<<2)|0); - $rem360$i = (($add355$i|0) % 9)&-1; - $j$0$524$i = (($rem360$i) + 1)|0; - $cmp363$525$i = ($j$0$524$i|0)<(9); - if ($cmp363$525$i) { - $i$1526$i = 10;$j$0527$i = $j$0$524$i; - while(1) { - $mul367$i = ($i$1526$i*10)|0; - $j$0$i = (($j$0527$i) + 1)|0; - $exitcond$i = ($j$0$i|0)==(9); - if ($exitcond$i) { - $i$1$lcssa$i = $mul367$i; - break; - } else { - $i$1526$i = $mul367$i;$j$0527$i = $j$0$i; - } - } - } else { - $i$1$lcssa$i = 10; - } - $231 = HEAP32[$add$ptr358$i>>2]|0; - $rem370$i = (($231>>>0) % ($i$1$lcssa$i>>>0))&-1; - $tobool371$i = ($rem370$i|0)==(0); - $add$ptr373$i = ((($add$ptr358$i)) + 4|0); - $cmp374$i = ($add$ptr373$i|0)==($z$3$lcssa$i|0); - $or$cond395$i = $cmp374$i & $tobool371$i; - do { - if ($or$cond395$i) { - $a$8$i = $a$3$lcssa$i;$d$4$i = $add$ptr358$i;$e$4$i = $e$1$i; - } else { - $div378$i = (($231>>>0) / ($i$1$lcssa$i>>>0))&-1; - $and379$i = $div378$i & 1; - $tobool380$i = ($and379$i|0)==(0); - $$396$i = $tobool380$i ? 9007199254740992.0 : 9007199254740994.0; - $div384$i = (($i$1$lcssa$i|0) / 2)&-1; - $cmp385$i = ($rem370$i>>>0)<($div384$i>>>0); - if ($cmp385$i) { - $small$0$i = 0.5; - } else { - $cmp390$i = ($rem370$i|0)==($div384$i|0); - $or$cond397$i = $cmp374$i & $cmp390$i; - $$404$i = $or$cond397$i ? 1.0 : 1.5; - $small$0$i = $$404$i; - } - $tobool400$i = ($pl$0$i|0)==(0); - do { - if ($tobool400$i) { - $round377$1$i = $$396$i;$small$1$i = $small$0$i; - } else { - $232 = HEAP8[$prefix$0$i>>0]|0; - $cmp403$i = ($232<<24>>24)==(45); - if (!($cmp403$i)) { - $round377$1$i = $$396$i;$small$1$i = $small$0$i; - break; - } - $mul406$i = -$$396$i; - $mul407$i = -$small$0$i; - $round377$1$i = $mul406$i;$small$1$i = $mul407$i; - } - } while(0); - $sub409$i = (($231) - ($rem370$i))|0; - HEAP32[$add$ptr358$i>>2] = $sub409$i; - $add410$i = $round377$1$i + $small$1$i; - $cmp411$i = $add410$i != $round377$1$i; - if (!($cmp411$i)) { - $a$8$i = $a$3$lcssa$i;$d$4$i = $add$ptr358$i;$e$4$i = $e$1$i; - break; - } - $add414$i = (($sub409$i) + ($i$1$lcssa$i))|0; - HEAP32[$add$ptr358$i>>2] = $add414$i; - $cmp416$519$i = ($add414$i>>>0)>(999999999); - if ($cmp416$519$i) { - $a$5521$i = $a$3$lcssa$i;$d$2520$i = $add$ptr358$i; - while(1) { - $incdec$ptr419$i = ((($d$2520$i)) + -4|0); - HEAP32[$d$2520$i>>2] = 0; - $cmp420$i = ($incdec$ptr419$i>>>0)<($a$5521$i>>>0); - if ($cmp420$i) { - $incdec$ptr423$i = ((($a$5521$i)) + -4|0); - HEAP32[$incdec$ptr423$i>>2] = 0; - $a$6$i = $incdec$ptr423$i; - } else { - $a$6$i = $a$5521$i; - } - $233 = HEAP32[$incdec$ptr419$i>>2]|0; - $inc425$i = (($233) + 1)|0; - HEAP32[$incdec$ptr419$i>>2] = $inc425$i; - $cmp416$i = ($inc425$i>>>0)>(999999999); - if ($cmp416$i) { - $a$5521$i = $a$6$i;$d$2520$i = $incdec$ptr419$i; - } else { - $a$5$lcssa$i = $a$6$i;$d$2$lcssa$i = $incdec$ptr419$i; - break; - } - } - } else { - $a$5$lcssa$i = $a$3$lcssa$i;$d$2$lcssa$i = $add$ptr358$i; - } - $sub$ptr$rhs$cast428$i = $a$5$lcssa$i; - $sub$ptr$sub429$i = (($sub$ptr$rhs$cast345$i) - ($sub$ptr$rhs$cast428$i))|0; - $sub$ptr$div430$i = $sub$ptr$sub429$i >> 2; - $mul431$i = ($sub$ptr$div430$i*9)|0; - $234 = HEAP32[$a$5$lcssa$i>>2]|0; - $cmp433$515$i = ($234>>>0)<(10); - if ($cmp433$515$i) { - $a$8$i = $a$5$lcssa$i;$d$4$i = $d$2$lcssa$i;$e$4$i = $mul431$i; - break; - } else { - $e$2517$i = $mul431$i;$i$2516$i = 10; - } - while(1) { - $mul437$i = ($i$2516$i*10)|0; - $inc438$i = (($e$2517$i) + 1)|0; - $cmp433$i = ($234>>>0)<($mul437$i>>>0); - if ($cmp433$i) { - $a$8$i = $a$5$lcssa$i;$d$4$i = $d$2$lcssa$i;$e$4$i = $inc438$i; - break; - } else { - $e$2517$i = $inc438$i;$i$2516$i = $mul437$i; - } - } - } - } while(0); - $add$ptr442$i = ((($d$4$i)) + 4|0); - $cmp443$i = ($z$3$lcssa$i>>>0)>($add$ptr442$i>>>0); - $add$ptr442$z$3$i = $cmp443$i ? $add$ptr442$i : $z$3$lcssa$i; - $a$9$ph$i = $a$8$i;$e$5$ph$i = $e$4$i;$z$7$ph$i = $add$ptr442$z$3$i; - } else { - $a$9$ph$i = $a$3$lcssa$i;$e$5$ph$i = $e$1$i;$z$7$ph$i = $z$3$lcssa$i; - } - $sub626$le$i = (0 - ($e$5$ph$i))|0; - $z$7$i = $z$7$ph$i; - while(1) { - $cmp450$i = ($z$7$i>>>0)>($a$9$ph$i>>>0); - if (!($cmp450$i)) { - $cmp450$lcssa$i = 0;$z$7$i$lcssa = $z$7$i; - break; - } - $arrayidx453$i = ((($z$7$i)) + -4|0); - $235 = HEAP32[$arrayidx453$i>>2]|0; - $lnot455$i = ($235|0)==(0); - if ($lnot455$i) { - $z$7$i = $arrayidx453$i; - } else { - $cmp450$lcssa$i = 1;$z$7$i$lcssa = $z$7$i; - break; - } - } - do { - if ($cmp338$i) { - $236 = $tobool341$i&1; - $inc468$i = $236 ^ 1; - $$p$inc468$i = (($inc468$i) + ($$p$i))|0; - $cmp470$i = ($$p$inc468$i|0)>($e$5$ph$i|0); - $cmp473$i = ($e$5$ph$i|0)>(-5); - $or$cond2$i = $cmp470$i & $cmp473$i; - if ($or$cond2$i) { - $dec476$i = (($t$0) + -1)|0; - $add477$neg$i = (($$p$inc468$i) + -1)|0; - $sub478$i = (($add477$neg$i) - ($e$5$ph$i))|0; - $p$addr$2$i = $sub478$i;$t$addr$0$i = $dec476$i; - } else { - $sub480$i = (($t$0) + -2)|0; - $dec481$i = (($$p$inc468$i) + -1)|0; - $p$addr$2$i = $dec481$i;$t$addr$0$i = $sub480$i; - } - $and483$i = $fl$1$and219 & 8; - $tobool484$i = ($and483$i|0)==(0); - if (!($tobool484$i)) { - $and610$pre$phi$iZ2D = $and483$i;$p$addr$3$i = $p$addr$2$i;$t$addr$1$i = $t$addr$0$i; - break; - } - do { - if ($cmp450$lcssa$i) { - $arrayidx489$i = ((($z$7$i$lcssa)) + -4|0); - $237 = HEAP32[$arrayidx489$i>>2]|0; - $tobool490$i = ($237|0)==(0); - if ($tobool490$i) { - $j$2$i = 9; - break; - } - $rem494$510$i = (($237>>>0) % 10)&-1; - $cmp495$511$i = ($rem494$510$i|0)==(0); - if ($cmp495$511$i) { - $i$3512$i = 10;$j$1513$i = 0; - } else { - $j$2$i = 0; - break; - } - while(1) { - $mul499$i = ($i$3512$i*10)|0; - $inc500$i = (($j$1513$i) + 1)|0; - $rem494$i = (($237>>>0) % ($mul499$i>>>0))&-1; - $cmp495$i = ($rem494$i|0)==(0); - if ($cmp495$i) { - $i$3512$i = $mul499$i;$j$1513$i = $inc500$i; - } else { - $j$2$i = $inc500$i; - break; - } - } - } else { - $j$2$i = 9; - } - } while(0); - $or504$i = $t$addr$0$i | 32; - $cmp505$i = ($or504$i|0)==(102); - $sub$ptr$lhs$cast508$i = $z$7$i$lcssa; - $sub$ptr$sub510$i = (($sub$ptr$lhs$cast508$i) - ($sub$ptr$rhs$cast345$i))|0; - $sub$ptr$div511$i = $sub$ptr$sub510$i >> 2; - $238 = ($sub$ptr$div511$i*9)|0; - $mul513$i = (($238) + -9)|0; - if ($cmp505$i) { - $sub514$i = (($mul513$i) - ($j$2$i))|0; - $cmp515$i = ($sub514$i|0)<(0); - $$sub514$i = $cmp515$i ? 0 : $sub514$i; - $cmp528$i = ($p$addr$2$i|0)<($$sub514$i|0); - $p$addr$2$$sub514398$i = $cmp528$i ? $p$addr$2$i : $$sub514$i; - $and610$pre$phi$iZ2D = 0;$p$addr$3$i = $p$addr$2$$sub514398$i;$t$addr$1$i = $t$addr$0$i; - break; - } else { - $add561$i = (($mul513$i) + ($e$5$ph$i))|0; - $sub562$i = (($add561$i) - ($j$2$i))|0; - $cmp563$i = ($sub562$i|0)<(0); - $$sub562$i = $cmp563$i ? 0 : $sub562$i; - $cmp577$i = ($p$addr$2$i|0)<($$sub562$i|0); - $p$addr$2$$sub562399$i = $cmp577$i ? $p$addr$2$i : $$sub562$i; - $and610$pre$phi$iZ2D = 0;$p$addr$3$i = $p$addr$2$$sub562399$i;$t$addr$1$i = $t$addr$0$i; - break; - } - } else { - $$pre567$i = $fl$1$and219 & 8; - $and610$pre$phi$iZ2D = $$pre567$i;$p$addr$3$i = $$p$i;$t$addr$1$i = $t$0; - } - } while(0); - $239 = $p$addr$3$i | $and610$pre$phi$iZ2D; - $240 = ($239|0)!=(0); - $lor$ext$i = $240&1; - $or613$i = $t$addr$1$i | 32; - $cmp614$i = ($or613$i|0)==(102); - if ($cmp614$i) { - $cmp617$i = ($e$5$ph$i|0)>(0); - $add620$i = $cmp617$i ? $e$5$ph$i : 0; - $estr$2$i = 0;$sub$ptr$sub650$pn$i = $add620$i; - } else { - $cmp623$i = ($e$5$ph$i|0)<(0); - $cond629$i = $cmp623$i ? $sub626$le$i : $e$5$ph$i; - $241 = ($cond629$i|0)<(0); - $242 = $241 << 31 >> 31; - $243 = (_fmt_u($cond629$i,$242,$arrayidx$i$236)|0); - $sub$ptr$rhs$cast634$504$i = $243; - $sub$ptr$sub635$505$i = (($sub$ptr$lhs$cast160$i) - ($sub$ptr$rhs$cast634$504$i))|0; - $cmp636$506$i = ($sub$ptr$sub635$505$i|0)<(2); - if ($cmp636$506$i) { - $estr$1507$i = $243; - while(1) { - $incdec$ptr639$i = ((($estr$1507$i)) + -1|0); - HEAP8[$incdec$ptr639$i>>0] = 48; - $sub$ptr$rhs$cast634$i = $incdec$ptr639$i; - $sub$ptr$sub635$i = (($sub$ptr$lhs$cast160$i) - ($sub$ptr$rhs$cast634$i))|0; - $cmp636$i = ($sub$ptr$sub635$i|0)<(2); - if ($cmp636$i) { - $estr$1507$i = $incdec$ptr639$i; - } else { - $estr$1$lcssa$i = $incdec$ptr639$i; - break; - } - } - } else { - $estr$1$lcssa$i = $243; - } - $244 = $e$5$ph$i >> 31; - $245 = $244 & 2; - $246 = (($245) + 43)|0; - $conv644$i = $246&255; - $incdec$ptr645$i = ((($estr$1$lcssa$i)) + -1|0); - HEAP8[$incdec$ptr645$i>>0] = $conv644$i; - $conv646$i = $t$addr$1$i&255; - $incdec$ptr647$i = ((($estr$1$lcssa$i)) + -2|0); - HEAP8[$incdec$ptr647$i>>0] = $conv646$i; - $sub$ptr$rhs$cast649$i = $incdec$ptr647$i; - $sub$ptr$sub650$i = (($sub$ptr$lhs$cast160$i) - ($sub$ptr$rhs$cast649$i))|0; - $estr$2$i = $incdec$ptr647$i;$sub$ptr$sub650$pn$i = $sub$ptr$sub650$i; - } - $add608$i = (($pl$0$i) + 1)|0; - $add612$i = (($add608$i) + ($p$addr$3$i))|0; - $l$1$i = (($add612$i) + ($lor$ext$i))|0; - $add653$i = (($l$1$i) + ($sub$ptr$sub650$pn$i))|0; - _pad($f,32,$w$1,$add653$i,$fl$1$and219); - $247 = HEAP32[$f>>2]|0; - $and$i$436$i = $247 & 32; - $tobool$i$437$i = ($and$i$436$i|0)==(0); - if ($tobool$i$437$i) { - (___fwritex($prefix$0$i,$pl$0$i,$f)|0); - } - $xor655$i = $fl$1$and219 ^ 65536; - _pad($f,48,$w$1,$add653$i,$xor655$i); - do { - if ($cmp614$i) { - $cmp660$i = ($a$9$ph$i>>>0)>($arraydecay208$add$ptr213$i>>>0); - $r$0$a$9$i = $cmp660$i ? $arraydecay208$add$ptr213$i : $a$9$ph$i; - $d$5494$i = $r$0$a$9$i; - while(1) { - $248 = HEAP32[$d$5494$i>>2]|0; - $249 = (_fmt_u($248,0,$add$ptr671$i)|0); - $cmp673$i = ($d$5494$i|0)==($r$0$a$9$i|0); - do { - if ($cmp673$i) { - $cmp686$i = ($249|0)==($add$ptr671$i|0); - if (!($cmp686$i)) { - $s668$1$i = $249; - break; - } - HEAP8[$incdec$ptr689$i>>0] = 48; - $s668$1$i = $incdec$ptr689$i; - } else { - $cmp678$491$i = ($249>>>0)>($buf$i>>>0); - if ($cmp678$491$i) { - $s668$0492$i = $249; - } else { - $s668$1$i = $249; - break; - } - while(1) { - $incdec$ptr681$i = ((($s668$0492$i)) + -1|0); - HEAP8[$incdec$ptr681$i>>0] = 48; - $cmp678$i = ($incdec$ptr681$i>>>0)>($buf$i>>>0); - if ($cmp678$i) { - $s668$0492$i = $incdec$ptr681$i; - } else { - $s668$1$i = $incdec$ptr681$i; - break; - } - } - } - } while(0); - $250 = HEAP32[$f>>2]|0; - $and$i$442$i = $250 & 32; - $tobool$i$443$i = ($and$i$442$i|0)==(0); - if ($tobool$i$443$i) { - $sub$ptr$rhs$cast695$i = $s668$1$i; - $sub$ptr$sub696$i = (($sub$ptr$lhs$cast694$i) - ($sub$ptr$rhs$cast695$i))|0; - (___fwritex($s668$1$i,$sub$ptr$sub696$i,$f)|0); - } - $incdec$ptr698$i = ((($d$5494$i)) + 4|0); - $cmp665$i = ($incdec$ptr698$i>>>0)>($arraydecay208$add$ptr213$i>>>0); - if ($cmp665$i) { - $incdec$ptr698$i$lcssa = $incdec$ptr698$i; - break; - } else { - $d$5494$i = $incdec$ptr698$i; - } - } - $251 = ($239|0)==(0); - do { - if (!($251)) { - $252 = HEAP32[$f>>2]|0; - $and$i$448$i = $252 & 32; - $tobool$i$449$i = ($and$i$448$i|0)==(0); - if (!($tobool$i$449$i)) { - break; - } - (___fwritex(4143,1,$f)|0); - } - } while(0); - $cmp707$486$i = ($incdec$ptr698$i$lcssa>>>0)<($z$7$i$lcssa>>>0); - $cmp710$487$i = ($p$addr$3$i|0)>(0); - $253 = $cmp710$487$i & $cmp707$486$i; - if ($253) { - $d$6488$i = $incdec$ptr698$i$lcssa;$p$addr$4489$i = $p$addr$3$i; - while(1) { - $254 = HEAP32[$d$6488$i>>2]|0; - $255 = (_fmt_u($254,0,$add$ptr671$i)|0); - $cmp722$483$i = ($255>>>0)>($buf$i>>>0); - if ($cmp722$483$i) { - $s715$0484$i = $255; - while(1) { - $incdec$ptr725$i = ((($s715$0484$i)) + -1|0); - HEAP8[$incdec$ptr725$i>>0] = 48; - $cmp722$i = ($incdec$ptr725$i>>>0)>($buf$i>>>0); - if ($cmp722$i) { - $s715$0484$i = $incdec$ptr725$i; - } else { - $s715$0$lcssa$i = $incdec$ptr725$i; - break; - } - } - } else { - $s715$0$lcssa$i = $255; - } - $256 = HEAP32[$f>>2]|0; - $and$i$454$i = $256 & 32; - $tobool$i$455$i = ($and$i$454$i|0)==(0); - if ($tobool$i$455$i) { - $cmp727$i = ($p$addr$4489$i|0)>(9); - $cond732$i = $cmp727$i ? 9 : $p$addr$4489$i; - (___fwritex($s715$0$lcssa$i,$cond732$i,$f)|0); - } - $incdec$ptr734$i = ((($d$6488$i)) + 4|0); - $sub735$i = (($p$addr$4489$i) + -9)|0; - $cmp707$i = ($incdec$ptr734$i>>>0)<($z$7$i$lcssa>>>0); - $cmp710$i = ($p$addr$4489$i|0)>(9); - $257 = $cmp710$i & $cmp707$i; - if ($257) { - $d$6488$i = $incdec$ptr734$i;$p$addr$4489$i = $sub735$i; - } else { - $p$addr$4$lcssa$i = $sub735$i; - break; - } - } - } else { - $p$addr$4$lcssa$i = $p$addr$3$i; - } - $add737$i = (($p$addr$4$lcssa$i) + 9)|0; - _pad($f,48,$add737$i,9,0); - } else { - $add$ptr742$i = ((($a$9$ph$i)) + 4|0); - $z$7$add$ptr742$i = $cmp450$lcssa$i ? $z$7$i$lcssa : $add$ptr742$i; - $cmp748$499$i = ($p$addr$3$i|0)>(-1); - if ($cmp748$499$i) { - $tobool781$i = ($and610$pre$phi$iZ2D|0)==(0); - $d$7500$i = $a$9$ph$i;$p$addr$5501$i = $p$addr$3$i; - while(1) { - $258 = HEAP32[$d$7500$i>>2]|0; - $259 = (_fmt_u($258,0,$add$ptr671$i)|0); - $cmp760$i = ($259|0)==($add$ptr671$i|0); - if ($cmp760$i) { - HEAP8[$incdec$ptr689$i>>0] = 48; - $s753$0$i = $incdec$ptr689$i; - } else { - $s753$0$i = $259; - } - $cmp765$i = ($d$7500$i|0)==($a$9$ph$i|0); - do { - if ($cmp765$i) { - $incdec$ptr776$i = ((($s753$0$i)) + 1|0); - $260 = HEAP32[$f>>2]|0; - $and$i$460$i = $260 & 32; - $tobool$i$461$i = ($and$i$460$i|0)==(0); - if ($tobool$i$461$i) { - (___fwritex($s753$0$i,1,$f)|0); - } - $cmp777$i = ($p$addr$5501$i|0)<(1); - $or$cond401$i = $tobool781$i & $cmp777$i; - if ($or$cond401$i) { - $s753$2$i = $incdec$ptr776$i; - break; - } - $261 = HEAP32[$f>>2]|0; - $and$i$466$i = $261 & 32; - $tobool$i$467$i = ($and$i$466$i|0)==(0); - if (!($tobool$i$467$i)) { - $s753$2$i = $incdec$ptr776$i; - break; - } - (___fwritex(4143,1,$f)|0); - $s753$2$i = $incdec$ptr776$i; - } else { - $cmp770$495$i = ($s753$0$i>>>0)>($buf$i>>>0); - if ($cmp770$495$i) { - $s753$1496$i = $s753$0$i; - } else { - $s753$2$i = $s753$0$i; - break; - } - while(1) { - $incdec$ptr773$i = ((($s753$1496$i)) + -1|0); - HEAP8[$incdec$ptr773$i>>0] = 48; - $cmp770$i = ($incdec$ptr773$i>>>0)>($buf$i>>>0); - if ($cmp770$i) { - $s753$1496$i = $incdec$ptr773$i; - } else { - $s753$2$i = $incdec$ptr773$i; - break; - } - } - } - } while(0); - $sub$ptr$rhs$cast788$i = $s753$2$i; - $sub$ptr$sub789$i = (($sub$ptr$lhs$cast694$i) - ($sub$ptr$rhs$cast788$i))|0; - $262 = HEAP32[$f>>2]|0; - $and$i$472$i = $262 & 32; - $tobool$i$473$i = ($and$i$472$i|0)==(0); - if ($tobool$i$473$i) { - $cmp790$i = ($p$addr$5501$i|0)>($sub$ptr$sub789$i|0); - $cond800$i = $cmp790$i ? $sub$ptr$sub789$i : $p$addr$5501$i; - (___fwritex($s753$2$i,$cond800$i,$f)|0); - } - $sub806$i = (($p$addr$5501$i) - ($sub$ptr$sub789$i))|0; - $incdec$ptr808$i = ((($d$7500$i)) + 4|0); - $cmp745$i = ($incdec$ptr808$i>>>0)<($z$7$add$ptr742$i>>>0); - $cmp748$i = ($sub806$i|0)>(-1); - $263 = $cmp745$i & $cmp748$i; - if ($263) { - $d$7500$i = $incdec$ptr808$i;$p$addr$5501$i = $sub806$i; - } else { - $p$addr$5$lcssa$i = $sub806$i; - break; - } - } - } else { - $p$addr$5$lcssa$i = $p$addr$3$i; - } - $add810$i = (($p$addr$5$lcssa$i) + 18)|0; - _pad($f,48,$add810$i,18,0); - $264 = HEAP32[$f>>2]|0; - $and$i$i = $264 & 32; - $tobool$i$i = ($and$i$i|0)==(0); - if (!($tobool$i$i)) { - break; - } - $sub$ptr$rhs$cast812$i = $estr$2$i; - $sub$ptr$sub813$i = (($sub$ptr$lhs$cast160$i) - ($sub$ptr$rhs$cast812$i))|0; - (___fwritex($estr$2$i,$sub$ptr$sub813$i,$f)|0); - } - } while(0); - $xor816$i = $fl$1$and219 ^ 8192; - _pad($f,32,$w$1,$add653$i,$xor816$i); - $cmp818$i = ($add653$i|0)<($w$1|0); - $w$add653$i = $cmp818$i ? $w$1 : $add653$i; - $retval$0$i = $w$add653$i; - } else { - $and36$i = $t$0 & 32; - $tobool37$i = ($and36$i|0)!=(0); - $cond$i = $tobool37$i ? 4127 : 4131; - $cmp38$i = ($y$addr$0$i != $y$addr$0$i) | (0.0 != 0.0); - $cond43$i = $tobool37$i ? 4135 : 4139; - $pl$1$i = $cmp38$i ? 0 : $pl$0$i; - $s35$0$i = $cmp38$i ? $cond43$i : $cond$i; - $add$i$239 = (($pl$1$i) + 3)|0; - _pad($f,32,$w$1,$add$i$239,$and219); - $193 = HEAP32[$f>>2]|0; - $and$i$406$i = $193 & 32; - $tobool$i$407$i = ($and$i$406$i|0)==(0); - if ($tobool$i$407$i) { - (___fwritex($prefix$0$i,$pl$1$i,$f)|0); - $$pre$i = HEAP32[$f>>2]|0; - $194 = $$pre$i; - } else { - $194 = $193; - } - $and$i$412$i = $194 & 32; - $tobool$i$413$i = ($and$i$412$i|0)==(0); - if ($tobool$i$413$i) { - (___fwritex($s35$0$i,3,$f)|0); - } - $xor$i = $fl$1$and219 ^ 8192; - _pad($f,32,$w$1,$add$i$239,$xor$i); - $cmp48$i = ($add$i$239|0)<($w$1|0); - $cond53$i = $cmp48$i ? $w$1 : $add$i$239; - $retval$0$i = $cond53$i; - } - } while(0); - $cnt$0 = $cnt$1;$incdec$ptr169275 = $incdec$ptr169$lcssa;$l$0 = $retval$0$i;$l10n$0 = $l10n$3; - continue L1; - break; - } - default: { - $a$2 = $incdec$ptr169275;$fl$6 = $fl$1$and219;$p$5 = $p$0;$pl$2 = 0;$prefix$2 = 4091;$z$2 = $add$ptr205; - } - } - } while(0); - L308: do { - if ((label|0) == 64) { - label = 0; - $90 = $arg; - $91 = $90; - $92 = HEAP32[$91>>2]|0; - $93 = (($90) + 4)|0; - $94 = $93; - $95 = HEAP32[$94>>2]|0; - $and249 = $t$1 & 32; - $96 = ($92|0)==(0); - $97 = ($95|0)==(0); - $98 = $96 & $97; - if ($98) { - $a$0 = $add$ptr205;$fl$4 = $fl$3;$p$2 = $p$1;$pl$1 = 0;$prefix$1 = 4091; - label = 77; - } else { - $101 = $95;$99 = $92;$s$addr$06$i = $add$ptr205; - while(1) { - $idxprom$i = $99 & 15; - $arrayidx$i = (4075 + ($idxprom$i)|0); - $100 = HEAP8[$arrayidx$i>>0]|0; - $conv$4$i$211 = $100&255; - $or$i = $conv$4$i$211 | $and249; - $conv1$i = $or$i&255; - $incdec$ptr$i$212 = ((($s$addr$06$i)) + -1|0); - HEAP8[$incdec$ptr$i$212>>0] = $conv1$i; - $102 = (_bitshift64Lshr(($99|0),($101|0),4)|0); - $103 = tempRet0; - $104 = ($102|0)==(0); - $105 = ($103|0)==(0); - $106 = $104 & $105; - if ($106) { - $incdec$ptr$i$212$lcssa = $incdec$ptr$i$212; - break; - } else { - $101 = $103;$99 = $102;$s$addr$06$i = $incdec$ptr$i$212; - } - } - $107 = $arg; - $108 = $107; - $109 = HEAP32[$108>>2]|0; - $110 = (($107) + 4)|0; - $111 = $110; - $112 = HEAP32[$111>>2]|0; - $113 = ($109|0)==(0); - $114 = ($112|0)==(0); - $115 = $113 & $114; - $and254 = $fl$3 & 8; - $tobool255 = ($and254|0)==(0); - $or$cond193 = $tobool255 | $115; - if ($or$cond193) { - $a$0 = $incdec$ptr$i$212$lcssa;$fl$4 = $fl$3;$p$2 = $p$1;$pl$1 = 0;$prefix$1 = 4091; - label = 77; - } else { - $shr = $t$1 >> 4; - $add$ptr257 = (4091 + ($shr)|0); - $a$0 = $incdec$ptr$i$212$lcssa;$fl$4 = $fl$3;$p$2 = $p$1;$pl$1 = 2;$prefix$1 = $add$ptr257; - label = 77; - } - } - } - else if ((label|0) == 76) { - label = 0; - $150 = (_fmt_u($148,$149,$add$ptr205)|0); - $a$0 = $150;$fl$4 = $fl$1$and219;$p$2 = $p$0;$pl$1 = $pl$0;$prefix$1 = $prefix$0; - label = 77; - } - else if ((label|0) == 82) { - label = 0; - $call356 = (_memchr($a$1,0,$p$0)|0); - $tobool357 = ($call356|0)==(0|0); - $sub$ptr$lhs$cast361 = $call356; - $sub$ptr$rhs$cast362 = $a$1; - $sub$ptr$sub363 = (($sub$ptr$lhs$cast361) - ($sub$ptr$rhs$cast362))|0; - $add$ptr359 = (($a$1) + ($p$0)|0); - $z$1 = $tobool357 ? $add$ptr359 : $call356; - $p$3 = $tobool357 ? $p$0 : $sub$ptr$sub363; - $a$2 = $a$1;$fl$6 = $and219;$p$5 = $p$3;$pl$2 = 0;$prefix$2 = 4091;$z$2 = $z$1; - } - else if ((label|0) == 86) { - label = 0; - $176 = HEAP32[$arg>>2]|0; - $i$0316 = 0;$l$1315 = 0;$ws$0317 = $176; - while(1) { - $177 = HEAP32[$ws$0317>>2]|0; - $tobool380 = ($177|0)==(0); - if ($tobool380) { - $i$0$lcssa = $i$0316;$l$2 = $l$1315; - break; - } - $call384 = (_wctomb($mb,$177)|0); - $cmp385 = ($call384|0)<(0); - $sub389 = (($p$4365) - ($i$0316))|0; - $cmp390 = ($call384>>>0)>($sub389>>>0); - $or$cond195 = $cmp385 | $cmp390; - if ($or$cond195) { - $i$0$lcssa = $i$0316;$l$2 = $call384; - break; - } - $incdec$ptr383 = ((($ws$0317)) + 4|0); - $add395 = (($call384) + ($i$0316))|0; - $cmp377 = ($p$4365>>>0)>($add395>>>0); - if ($cmp377) { - $i$0316 = $add395;$l$1315 = $call384;$ws$0317 = $incdec$ptr383; - } else { - $i$0$lcssa = $add395;$l$2 = $call384; - break; - } - } - $cmp397 = ($l$2|0)<(0); - if ($cmp397) { - $retval$0 = -1; - break L1; - } - _pad($f,32,$w$1,$i$0$lcssa,$fl$1$and219); - $cmp404$324 = ($i$0$lcssa|0)==(0); - if ($cmp404$324) { - $i$0$lcssa368 = 0; - label = 98; - } else { - $178 = HEAP32[$arg>>2]|0; - $i$1325 = 0;$ws$1326 = $178; - while(1) { - $179 = HEAP32[$ws$1326>>2]|0; - $tobool407 = ($179|0)==(0); - if ($tobool407) { - $i$0$lcssa368 = $i$0$lcssa; - label = 98; - break L308; - } - $incdec$ptr410 = ((($ws$1326)) + 4|0); - $call411 = (_wctomb($mb,$179)|0); - $add412 = (($call411) + ($i$1325))|0; - $cmp413 = ($add412|0)>($i$0$lcssa|0); - if ($cmp413) { - $i$0$lcssa368 = $i$0$lcssa; - label = 98; - break L308; - } - $180 = HEAP32[$f>>2]|0; - $and$i$231 = $180 & 32; - $tobool$i$232 = ($and$i$231|0)==(0); - if ($tobool$i$232) { - (___fwritex($mb,$call411,$f)|0); - } - $cmp404 = ($add412>>>0)<($i$0$lcssa>>>0); - if ($cmp404) { - $i$1325 = $add412;$ws$1326 = $incdec$ptr410; - } else { - $i$0$lcssa368 = $i$0$lcssa; - label = 98; - break; - } - } - } - } - } while(0); - if ((label|0) == 98) { - label = 0; - $xor = $fl$1$and219 ^ 8192; - _pad($f,32,$w$1,$i$0$lcssa368,$xor); - $cmp421 = ($w$1|0)>($i$0$lcssa368|0); - $cond426 = $cmp421 ? $w$1 : $i$0$lcssa368; - $cnt$0 = $cnt$1;$incdec$ptr169275 = $incdec$ptr169$lcssa;$l$0 = $cond426;$l10n$0 = $l10n$3; - continue; - } - if ((label|0) == 77) { - label = 0; - $cmp306 = ($p$2|0)>(-1); - $and309 = $fl$4 & -65537; - $and309$fl$4 = $cmp306 ? $and309 : $fl$4; - $151 = $arg; - $152 = $151; - $153 = HEAP32[$152>>2]|0; - $154 = (($151) + 4)|0; - $155 = $154; - $156 = HEAP32[$155>>2]|0; - $157 = ($153|0)!=(0); - $158 = ($156|0)!=(0); - $159 = $157 | $158; - $tobool314 = ($p$2|0)!=(0); - $or$cond = $tobool314 | $159; - if ($or$cond) { - $sub$ptr$rhs$cast318 = $a$0; - $sub$ptr$sub319 = (($sub$ptr$lhs$cast317) - ($sub$ptr$rhs$cast318))|0; - $160 = $159&1; - $lnot$ext = $160 ^ 1; - $add322 = (($lnot$ext) + ($sub$ptr$sub319))|0; - $cmp323 = ($p$2|0)>($add322|0); - $p$2$add322 = $cmp323 ? $p$2 : $add322; - $a$2 = $a$0;$fl$6 = $and309$fl$4;$p$5 = $p$2$add322;$pl$2 = $pl$1;$prefix$2 = $prefix$1;$z$2 = $add$ptr205; - } else { - $a$2 = $add$ptr205;$fl$6 = $and309$fl$4;$p$5 = 0;$pl$2 = $pl$1;$prefix$2 = $prefix$1;$z$2 = $add$ptr205; - } - } - $sub$ptr$lhs$cast431 = $z$2; - $sub$ptr$rhs$cast432 = $a$2; - $sub$ptr$sub433 = (($sub$ptr$lhs$cast431) - ($sub$ptr$rhs$cast432))|0; - $cmp434 = ($p$5|0)<($sub$ptr$sub433|0); - $sub$ptr$sub433$p$5 = $cmp434 ? $sub$ptr$sub433 : $p$5; - $add441 = (($pl$2) + ($sub$ptr$sub433$p$5))|0; - $cmp442 = ($w$1|0)<($add441|0); - $w$2 = $cmp442 ? $add441 : $w$1; - _pad($f,32,$w$2,$add441,$fl$6); - $265 = HEAP32[$f>>2]|0; - $and$i$244 = $265 & 32; - $tobool$i$245 = ($and$i$244|0)==(0); - if ($tobool$i$245) { - (___fwritex($prefix$2,$pl$2,$f)|0); - } - $xor449 = $fl$6 ^ 65536; - _pad($f,48,$w$2,$add441,$xor449); - _pad($f,48,$sub$ptr$sub433$p$5,$sub$ptr$sub433,0); - $266 = HEAP32[$f>>2]|0; - $and$i$216 = $266 & 32; - $tobool$i$217 = ($and$i$216|0)==(0); - if ($tobool$i$217) { - (___fwritex($a$2,$sub$ptr$sub433,$f)|0); - } - $xor457 = $fl$6 ^ 8192; - _pad($f,32,$w$2,$add441,$xor457); - $cnt$0 = $cnt$1;$incdec$ptr169275 = $incdec$ptr169$lcssa;$l$0 = $w$2;$l10n$0 = $l10n$3; - } - L343: do { - if ((label|0) == 242) { - $tobool459 = ($f|0)==(0|0); - if ($tobool459) { - $tobool462 = ($l10n$0$lcssa|0)==(0); - if ($tobool462) { - $retval$0 = 0; - } else { - $i$2299 = 1; - while(1) { - $arrayidx469 = (($nl_type) + ($i$2299<<2)|0); - $267 = HEAP32[$arrayidx469>>2]|0; - $tobool470 = ($267|0)==(0); - if ($tobool470) { - $i$2299$lcssa = $i$2299; - break; - } - $add$ptr473 = (($nl_arg) + ($i$2299<<3)|0); - _pop_arg_336($add$ptr473,$267,$ap); - $inc = (($i$2299) + 1)|0; - $cmp466 = ($inc|0)<(10); - if ($cmp466) { - $i$2299 = $inc; - } else { - $retval$0 = 1; - break L343; - } - } - $cmp478$295 = ($i$2299$lcssa|0)<(10); - if ($cmp478$295) { - $i$3296 = $i$2299$lcssa; - while(1) { - $arrayidx481 = (($nl_type) + ($i$3296<<2)|0); - $268 = HEAP32[$arrayidx481>>2]|0; - $lnot483 = ($268|0)==(0); - $inc488 = (($i$3296) + 1)|0; - if (!($lnot483)) { - $retval$0 = -1; - break L343; - } - $cmp478 = ($inc488|0)<(10); - if ($cmp478) { - $i$3296 = $inc488; - } else { - $retval$0 = 1; - break; - } - } - } else { - $retval$0 = 1; - } - } - } else { - $retval$0 = $cnt$1$lcssa; - } - } - } while(0); - STACKTOP = sp;return ($retval$0|0); -} -function _pop_arg_336($arg,$type,$ap) { - $arg = $arg|0; - $type = $type|0; - $ap = $ap|0; - var $0 = 0, $1 = 0, $10 = 0, $100 = 0, $101 = 0, $102 = 0, $103 = 0.0, $104 = 0, $105 = 0, $106 = 0, $107 = 0, $108 = 0, $109 = 0, $11 = 0, $110 = 0.0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0; - var $17 = 0, $18 = 0, $19 = 0, $2 = 0, $20 = 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; - var $35 = 0, $36 = 0, $37 = 0, $38 = 0, $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; - var $53 = 0, $54 = 0, $55 = 0, $56 = 0, $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; - var $71 = 0, $72 = 0, $73 = 0, $74 = 0, $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; - var $9 = 0, $90 = 0, $91 = 0, $92 = 0, $93 = 0, $94 = 0, $95 = 0, $96 = 0, $97 = 0, $98 = 0, $99 = 0, $arglist_current = 0, $arglist_current11 = 0, $arglist_current14 = 0, $arglist_current17 = 0, $arglist_current2 = 0, $arglist_current20 = 0, $arglist_current23 = 0, $arglist_current26 = 0, $arglist_current5 = 0; - var $arglist_current8 = 0, $arglist_next = 0, $arglist_next12 = 0, $arglist_next15 = 0, $arglist_next18 = 0, $arglist_next21 = 0, $arglist_next24 = 0, $arglist_next27 = 0, $arglist_next3 = 0, $arglist_next6 = 0, $arglist_next9 = 0, $cmp = 0, $conv12 = 0, $conv17$mask = 0, $conv22 = 0, $conv27$mask = 0, $expanded = 0, $expanded28 = 0, $expanded30 = 0, $expanded31 = 0; - var $expanded32 = 0, $expanded34 = 0, $expanded35 = 0, $expanded37 = 0, $expanded38 = 0, $expanded39 = 0, $expanded41 = 0, $expanded42 = 0, $expanded44 = 0, $expanded45 = 0, $expanded46 = 0, $expanded48 = 0, $expanded49 = 0, $expanded51 = 0, $expanded52 = 0, $expanded53 = 0, $expanded55 = 0, $expanded56 = 0, $expanded58 = 0, $expanded59 = 0; - var $expanded60 = 0, $expanded62 = 0, $expanded63 = 0, $expanded65 = 0, $expanded66 = 0, $expanded67 = 0, $expanded69 = 0, $expanded70 = 0, $expanded72 = 0, $expanded73 = 0, $expanded74 = 0, $expanded76 = 0, $expanded77 = 0, $expanded79 = 0, $expanded80 = 0, $expanded81 = 0, $expanded83 = 0, $expanded84 = 0, $expanded86 = 0, $expanded87 = 0; - var $expanded88 = 0, $expanded90 = 0, $expanded91 = 0, $expanded93 = 0, $expanded94 = 0, $expanded95 = 0, label = 0, sp = 0; - sp = STACKTOP; - $cmp = ($type>>>0)>(20); - L1: do { - if (!($cmp)) { - do { - switch ($type|0) { - case 9: { - $arglist_current = HEAP32[$ap>>2]|0; - $0 = $arglist_current; - $1 = ((0) + 4|0); - $expanded28 = $1; - $expanded = (($expanded28) - 1)|0; - $2 = (($0) + ($expanded))|0; - $3 = ((0) + 4|0); - $expanded32 = $3; - $expanded31 = (($expanded32) - 1)|0; - $expanded30 = $expanded31 ^ -1; - $4 = $2 & $expanded30; - $5 = $4; - $6 = HEAP32[$5>>2]|0; - $arglist_next = ((($5)) + 4|0); - HEAP32[$ap>>2] = $arglist_next; - HEAP32[$arg>>2] = $6; - break L1; - break; - } - case 10: { - $arglist_current2 = HEAP32[$ap>>2]|0; - $7 = $arglist_current2; - $8 = ((0) + 4|0); - $expanded35 = $8; - $expanded34 = (($expanded35) - 1)|0; - $9 = (($7) + ($expanded34))|0; - $10 = ((0) + 4|0); - $expanded39 = $10; - $expanded38 = (($expanded39) - 1)|0; - $expanded37 = $expanded38 ^ -1; - $11 = $9 & $expanded37; - $12 = $11; - $13 = HEAP32[$12>>2]|0; - $arglist_next3 = ((($12)) + 4|0); - HEAP32[$ap>>2] = $arglist_next3; - $14 = ($13|0)<(0); - $15 = $14 << 31 >> 31; - $16 = $arg; - $17 = $16; - HEAP32[$17>>2] = $13; - $18 = (($16) + 4)|0; - $19 = $18; - HEAP32[$19>>2] = $15; - break L1; - break; - } - case 11: { - $arglist_current5 = HEAP32[$ap>>2]|0; - $20 = $arglist_current5; - $21 = ((0) + 4|0); - $expanded42 = $21; - $expanded41 = (($expanded42) - 1)|0; - $22 = (($20) + ($expanded41))|0; - $23 = ((0) + 4|0); - $expanded46 = $23; - $expanded45 = (($expanded46) - 1)|0; - $expanded44 = $expanded45 ^ -1; - $24 = $22 & $expanded44; - $25 = $24; - $26 = HEAP32[$25>>2]|0; - $arglist_next6 = ((($25)) + 4|0); - HEAP32[$ap>>2] = $arglist_next6; - $27 = $arg; - $28 = $27; - HEAP32[$28>>2] = $26; - $29 = (($27) + 4)|0; - $30 = $29; - HEAP32[$30>>2] = 0; - break L1; - break; - } - case 12: { - $arglist_current8 = HEAP32[$ap>>2]|0; - $31 = $arglist_current8; - $32 = ((0) + 8|0); - $expanded49 = $32; - $expanded48 = (($expanded49) - 1)|0; - $33 = (($31) + ($expanded48))|0; - $34 = ((0) + 8|0); - $expanded53 = $34; - $expanded52 = (($expanded53) - 1)|0; - $expanded51 = $expanded52 ^ -1; - $35 = $33 & $expanded51; - $36 = $35; - $37 = $36; - $38 = $37; - $39 = HEAP32[$38>>2]|0; - $40 = (($37) + 4)|0; - $41 = $40; - $42 = HEAP32[$41>>2]|0; - $arglist_next9 = ((($36)) + 8|0); - HEAP32[$ap>>2] = $arglist_next9; - $43 = $arg; - $44 = $43; - HEAP32[$44>>2] = $39; - $45 = (($43) + 4)|0; - $46 = $45; - HEAP32[$46>>2] = $42; - break L1; - break; - } - case 13: { - $arglist_current11 = HEAP32[$ap>>2]|0; - $47 = $arglist_current11; - $48 = ((0) + 4|0); - $expanded56 = $48; - $expanded55 = (($expanded56) - 1)|0; - $49 = (($47) + ($expanded55))|0; - $50 = ((0) + 4|0); - $expanded60 = $50; - $expanded59 = (($expanded60) - 1)|0; - $expanded58 = $expanded59 ^ -1; - $51 = $49 & $expanded58; - $52 = $51; - $53 = HEAP32[$52>>2]|0; - $arglist_next12 = ((($52)) + 4|0); - HEAP32[$ap>>2] = $arglist_next12; - $conv12 = $53&65535; - $54 = $conv12 << 16 >> 16; - $55 = ($54|0)<(0); - $56 = $55 << 31 >> 31; - $57 = $arg; - $58 = $57; - HEAP32[$58>>2] = $54; - $59 = (($57) + 4)|0; - $60 = $59; - HEAP32[$60>>2] = $56; - break L1; - break; - } - case 14: { - $arglist_current14 = HEAP32[$ap>>2]|0; - $61 = $arglist_current14; - $62 = ((0) + 4|0); - $expanded63 = $62; - $expanded62 = (($expanded63) - 1)|0; - $63 = (($61) + ($expanded62))|0; - $64 = ((0) + 4|0); - $expanded67 = $64; - $expanded66 = (($expanded67) - 1)|0; - $expanded65 = $expanded66 ^ -1; - $65 = $63 & $expanded65; - $66 = $65; - $67 = HEAP32[$66>>2]|0; - $arglist_next15 = ((($66)) + 4|0); - HEAP32[$ap>>2] = $arglist_next15; - $conv17$mask = $67 & 65535; - $68 = $arg; - $69 = $68; - HEAP32[$69>>2] = $conv17$mask; - $70 = (($68) + 4)|0; - $71 = $70; - HEAP32[$71>>2] = 0; - break L1; - break; - } - case 15: { - $arglist_current17 = HEAP32[$ap>>2]|0; - $72 = $arglist_current17; - $73 = ((0) + 4|0); - $expanded70 = $73; - $expanded69 = (($expanded70) - 1)|0; - $74 = (($72) + ($expanded69))|0; - $75 = ((0) + 4|0); - $expanded74 = $75; - $expanded73 = (($expanded74) - 1)|0; - $expanded72 = $expanded73 ^ -1; - $76 = $74 & $expanded72; - $77 = $76; - $78 = HEAP32[$77>>2]|0; - $arglist_next18 = ((($77)) + 4|0); - HEAP32[$ap>>2] = $arglist_next18; - $conv22 = $78&255; - $79 = $conv22 << 24 >> 24; - $80 = ($79|0)<(0); - $81 = $80 << 31 >> 31; - $82 = $arg; - $83 = $82; - HEAP32[$83>>2] = $79; - $84 = (($82) + 4)|0; - $85 = $84; - HEAP32[$85>>2] = $81; - break L1; - break; - } - case 16: { - $arglist_current20 = HEAP32[$ap>>2]|0; - $86 = $arglist_current20; - $87 = ((0) + 4|0); - $expanded77 = $87; - $expanded76 = (($expanded77) - 1)|0; - $88 = (($86) + ($expanded76))|0; - $89 = ((0) + 4|0); - $expanded81 = $89; - $expanded80 = (($expanded81) - 1)|0; - $expanded79 = $expanded80 ^ -1; - $90 = $88 & $expanded79; - $91 = $90; - $92 = HEAP32[$91>>2]|0; - $arglist_next21 = ((($91)) + 4|0); - HEAP32[$ap>>2] = $arglist_next21; - $conv27$mask = $92 & 255; - $93 = $arg; - $94 = $93; - HEAP32[$94>>2] = $conv27$mask; - $95 = (($93) + 4)|0; - $96 = $95; - HEAP32[$96>>2] = 0; - break L1; - break; - } - case 17: { - $arglist_current23 = HEAP32[$ap>>2]|0; - $97 = $arglist_current23; - $98 = ((0) + 8|0); - $expanded84 = $98; - $expanded83 = (($expanded84) - 1)|0; - $99 = (($97) + ($expanded83))|0; - $100 = ((0) + 8|0); - $expanded88 = $100; - $expanded87 = (($expanded88) - 1)|0; - $expanded86 = $expanded87 ^ -1; - $101 = $99 & $expanded86; - $102 = $101; - $103 = +HEAPF64[$102>>3]; - $arglist_next24 = ((($102)) + 8|0); - HEAP32[$ap>>2] = $arglist_next24; - HEAPF64[$arg>>3] = $103; - break L1; - break; - } - case 18: { - $arglist_current26 = HEAP32[$ap>>2]|0; - $104 = $arglist_current26; - $105 = ((0) + 8|0); - $expanded91 = $105; - $expanded90 = (($expanded91) - 1)|0; - $106 = (($104) + ($expanded90))|0; - $107 = ((0) + 8|0); - $expanded95 = $107; - $expanded94 = (($expanded95) - 1)|0; - $expanded93 = $expanded94 ^ -1; - $108 = $106 & $expanded93; - $109 = $108; - $110 = +HEAPF64[$109>>3]; - $arglist_next27 = ((($109)) + 8|0); - HEAP32[$ap>>2] = $arglist_next27; - HEAPF64[$arg>>3] = $110; - break L1; - break; - } - default: { - break L1; - } - } - } while(0); - } - } while(0); - return; -} -function _fmt_u($0,$1,$s) { - $0 = $0|0; - $1 = $1|0; - $s = $s|0; - var $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, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0; - var $9 = 0, $add5 = 0, $conv6 = 0, $div9 = 0, $incdec$ptr = 0, $incdec$ptr$lcssa = 0, $incdec$ptr7 = 0, $rem4 = 0, $s$addr$0$lcssa = 0, $s$addr$013 = 0, $s$addr$1$lcssa = 0, $s$addr$19 = 0, $tobool$8 = 0, $x$addr$0$lcssa$off0 = 0, $y$010 = 0, label = 0, sp = 0; - sp = STACKTOP; - $2 = ($1>>>0)>(0); - $3 = ($0>>>0)>(4294967295); - $4 = ($1|0)==(0); - $5 = $4 & $3; - $6 = $2 | $5; - if ($6) { - $7 = $0;$8 = $1;$s$addr$013 = $s; - while(1) { - $9 = (___uremdi3(($7|0),($8|0),10,0)|0); - $10 = tempRet0; - $11 = $9 | 48; - $12 = $11&255; - $incdec$ptr = ((($s$addr$013)) + -1|0); - HEAP8[$incdec$ptr>>0] = $12; - $13 = (___udivdi3(($7|0),($8|0),10,0)|0); - $14 = tempRet0; - $15 = ($8>>>0)>(9); - $16 = ($7>>>0)>(4294967295); - $17 = ($8|0)==(9); - $18 = $17 & $16; - $19 = $15 | $18; - if ($19) { - $7 = $13;$8 = $14;$s$addr$013 = $incdec$ptr; - } else { - $21 = $13;$22 = $14;$incdec$ptr$lcssa = $incdec$ptr; - break; - } - } - $s$addr$0$lcssa = $incdec$ptr$lcssa;$x$addr$0$lcssa$off0 = $21; - } else { - $s$addr$0$lcssa = $s;$x$addr$0$lcssa$off0 = $0; - } - $tobool$8 = ($x$addr$0$lcssa$off0|0)==(0); - if ($tobool$8) { - $s$addr$1$lcssa = $s$addr$0$lcssa; - } else { - $s$addr$19 = $s$addr$0$lcssa;$y$010 = $x$addr$0$lcssa$off0; - while(1) { - $rem4 = (($y$010>>>0) % 10)&-1; - $add5 = $rem4 | 48; - $conv6 = $add5&255; - $incdec$ptr7 = ((($s$addr$19)) + -1|0); - HEAP8[$incdec$ptr7>>0] = $conv6; - $div9 = (($y$010>>>0) / 10)&-1; - $20 = ($y$010>>>0)<(10); - if ($20) { - $s$addr$1$lcssa = $incdec$ptr7; - break; - } else { - $s$addr$19 = $incdec$ptr7;$y$010 = $div9; - } - } - } - return ($s$addr$1$lcssa|0); -} -function _pad($f,$c,$w,$l,$fl) { - $f = $f|0; - $c = $c|0; - $w = $w|0; - $l = $l|0; - $fl = $fl|0; - var $$pre = 0, $0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0, $and = 0, $and$i = 0, $and$i$15 = 0, $cmp = 0, $cmp1 = 0, $cmp3 = 0, $cmp3$14 = 0, $cond = 0, $l$addr$0$lcssa21 = 0, $l$addr$017 = 0, $or$cond = 0, $pad = 0, $sub = 0, $sub5 = 0; - var $tobool = 0, $tobool$i = 0, $tobool$i$16 = 0, $tobool$i18 = 0, label = 0, sp = 0; - sp = STACKTOP; - STACKTOP = STACKTOP + 256|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abort(); - $pad = sp; - $and = $fl & 73728; - $tobool = ($and|0)==(0); - $cmp = ($w|0)>($l|0); - $or$cond = $cmp & $tobool; - do { - if ($or$cond) { - $sub = (($w) - ($l))|0; - $cmp1 = ($sub>>>0)>(256); - $cond = $cmp1 ? 256 : $sub; - _memset(($pad|0),($c|0),($cond|0))|0; - $cmp3$14 = ($sub>>>0)>(255); - $0 = HEAP32[$f>>2]|0; - $and$i$15 = $0 & 32; - $tobool$i$16 = ($and$i$15|0)==(0); - if ($cmp3$14) { - $1 = (($w) - ($l))|0; - $4 = $0;$l$addr$017 = $sub;$tobool$i18 = $tobool$i$16; - while(1) { - if ($tobool$i18) { - (___fwritex($pad,256,$f)|0); - $$pre = HEAP32[$f>>2]|0; - $2 = $$pre; - } else { - $2 = $4; - } - $sub5 = (($l$addr$017) + -256)|0; - $cmp3 = ($sub5>>>0)>(255); - $and$i = $2 & 32; - $tobool$i = ($and$i|0)==(0); - if ($cmp3) { - $4 = $2;$l$addr$017 = $sub5;$tobool$i18 = $tobool$i; - } else { - break; - } - } - $3 = $1 & 255; - if ($tobool$i) { - $l$addr$0$lcssa21 = $3; - } else { - break; - } - } else { - if ($tobool$i$16) { - $l$addr$0$lcssa21 = $sub; - } else { - break; - } - } - (___fwritex($pad,$l$addr$0$lcssa21,$f)|0); - } - } while(0); - STACKTOP = sp;return; -} -function _malloc($bytes) { - $bytes = $bytes|0; - var $$lcssa = 0, $$lcssa290 = 0, $$pre = 0, $$pre$i = 0, $$pre$i$177 = 0, $$pre$i$56$i = 0, $$pre$i$i = 0, $$pre$phi$i$178Z2D = 0, $$pre$phi$i$57$iZ2D = 0, $$pre$phi$i$iZ2D = 0, $$pre$phi$iZ2D = 0, $$pre$phiZ2D = 0, $$pre241 = 0, $$pre5$i$i = 0, $0 = 0, $1 = 0, $10 = 0, $100 = 0, $101 = 0, $102 = 0; - var $103 = 0, $104 = 0, $105 = 0, $106 = 0, $107 = 0, $108 = 0, $109 = 0, $11 = 0, $110 = 0, $111 = 0, $112 = 0, $113 = 0, $114 = 0, $115 = 0, $116 = 0, $117 = 0, $118 = 0, $119 = 0, $12 = 0, $120 = 0; - var $121 = 0, $122 = 0, $123 = 0, $124 = 0, $125 = 0, $126 = 0, $127 = 0, $128 = 0, $129 = 0, $13 = 0, $130 = 0, $131 = 0, $132 = 0, $133 = 0, $134 = 0, $135 = 0, $136 = 0, $137 = 0, $138 = 0, $139 = 0; - var $14 = 0, $140 = 0, $141 = 0, $142 = 0, $143 = 0, $144 = 0, $145 = 0, $146 = 0, $147 = 0, $148 = 0, $149 = 0, $15 = 0, $150 = 0, $151 = 0, $152 = 0, $153 = 0, $154 = 0, $155 = 0, $156 = 0, $157 = 0; - var $158 = 0, $159 = 0, $16 = 0, $160 = 0, $161 = 0, $162 = 0, $163 = 0, $164 = 0, $165 = 0, $166 = 0, $167 = 0, $168 = 0, $169 = 0, $17 = 0, $170 = 0, $171 = 0, $172 = 0, $173 = 0, $174 = 0, $175 = 0; - var $176 = 0, $177 = 0, $178 = 0, $179 = 0, $18 = 0, $180 = 0, $181 = 0, $182 = 0, $183 = 0, $184 = 0, $185 = 0, $186 = 0, $187 = 0, $188 = 0, $189 = 0, $19 = 0, $190 = 0, $191 = 0, $192 = 0, $193 = 0; - var $194 = 0, $195 = 0, $196 = 0, $197 = 0, $198 = 0, $199 = 0, $2 = 0, $20 = 0, $200 = 0, $201 = 0, $202 = 0, $203 = 0, $204 = 0, $205 = 0, $206 = 0, $207 = 0, $208 = 0, $21 = 0, $22 = 0, $23 = 0; - var $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, $39 = 0, $4 = 0, $40 = 0, $41 = 0; - var $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, $57 = 0, $58 = 0, $59 = 0, $6 = 0; - var $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, $75 = 0, $76 = 0, $77 = 0, $78 = 0; - var $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, $93 = 0, $94 = 0, $95 = 0, $96 = 0; - var $97 = 0, $98 = 0, $99 = 0, $F$0$i$i = 0, $F104$0 = 0, $F197$0$i = 0, $F224$0$i$i = 0, $F290$0$i = 0, $I252$0$i$i = 0, $I316$0$i = 0, $I57$0$i$i = 0, $K105$0$i$i = 0, $K305$0$i$i = 0, $K373$0$i = 0, $R$1$i = 0, $R$1$i$168 = 0, $R$1$i$168$lcssa = 0, $R$1$i$i = 0, $R$1$i$i$lcssa = 0, $R$1$i$lcssa = 0; - var $R$3$i = 0, $R$3$i$171 = 0, $R$3$i$i = 0, $RP$1$i = 0, $RP$1$i$167 = 0, $RP$1$i$167$lcssa = 0, $RP$1$i$i = 0, $RP$1$i$i$lcssa = 0, $RP$1$i$lcssa = 0, $T$0$i = 0, $T$0$i$58$i = 0, $T$0$i$58$i$lcssa = 0, $T$0$i$58$i$lcssa283 = 0, $T$0$i$i = 0, $T$0$i$i$lcssa = 0, $T$0$i$i$lcssa284 = 0, $T$0$i$lcssa = 0, $T$0$i$lcssa293 = 0, $add$i = 0, $add$i$146 = 0; - var $add$i$180 = 0, $add$i$i = 0, $add$ptr = 0, $add$ptr$i = 0, $add$ptr$i$1$i$i = 0, $add$ptr$i$11$i = 0, $add$ptr$i$161 = 0, $add$ptr$i$193 = 0, $add$ptr$i$21$i = 0, $add$ptr$i$32$i = 0, $add$ptr$i$i = 0, $add$ptr$i$i$i = 0, $add$ptr$i$i$i$lcssa = 0, $add$ptr14$i$i = 0, $add$ptr15$i$i = 0, $add$ptr16$i$i = 0, $add$ptr166 = 0, $add$ptr169 = 0, $add$ptr17$i$i = 0, $add$ptr178 = 0; - var $add$ptr181$i = 0, $add$ptr182 = 0, $add$ptr189$i = 0, $add$ptr190$i = 0, $add$ptr193 = 0, $add$ptr199 = 0, $add$ptr2$i$i = 0, $add$ptr205$i$i = 0, $add$ptr212$i$i = 0, $add$ptr225$i = 0, $add$ptr227$i = 0, $add$ptr24$i$i = 0, $add$ptr262$i = 0, $add$ptr269$i = 0, $add$ptr273$i = 0, $add$ptr282$i = 0, $add$ptr3$i$i = 0, $add$ptr30$i$i = 0, $add$ptr369$i$i = 0, $add$ptr4$i$26$i = 0; - var $add$ptr4$i$37$i = 0, $add$ptr4$i$i = 0, $add$ptr4$i$i$i = 0, $add$ptr441$i = 0, $add$ptr5$i$i = 0, $add$ptr6$i$30$i = 0, $add$ptr6$i$i = 0, $add$ptr6$i$i$i = 0, $add$ptr7$i$i = 0, $add$ptr8$i122$i = 0, $add$ptr95 = 0, $add$ptr98 = 0, $add10$i = 0, $add101$i = 0, $add110$i = 0, $add13$i = 0, $add14$i = 0, $add140$i = 0, $add144 = 0, $add150$i = 0; - var $add17$i = 0, $add17$i$183 = 0, $add177$i = 0, $add18$i = 0, $add19$i = 0, $add2 = 0, $add20$i = 0, $add206$i$i = 0, $add212$i = 0, $add215$i = 0, $add22$i = 0, $add246$i = 0, $add26$i$i = 0, $add268$i = 0, $add269$i$i = 0, $add274$i$i = 0, $add278$i$i = 0, $add280$i$i = 0, $add283$i$i = 0, $add337$i = 0; - var $add342$i = 0, $add346$i = 0, $add348$i = 0, $add351$i = 0, $add46$i = 0, $add50 = 0, $add51$i = 0, $add54 = 0, $add54$i = 0, $add58 = 0, $add62 = 0, $add64 = 0, $add74$i$i = 0, $add77$i = 0, $add78$i = 0, $add79$i$i = 0, $add8 = 0, $add82$i = 0, $add83$i$i = 0, $add85$i$i = 0; - var $add86$i = 0, $add88$i$i = 0, $add9$i = 0, $add90$i = 0, $add92$i = 0, $and = 0, $and$i = 0, $and$i$12$i = 0, $and$i$14$i = 0, $and$i$143 = 0, $and$i$22$i = 0, $and$i$33$i = 0, $and$i$i = 0, $and$i$i$i = 0, $and100$i = 0, $and103$i = 0, $and104$i = 0, $and106 = 0, $and11$i = 0, $and119$i$i = 0; - var $and12$i = 0, $and13$i = 0, $and13$i$i = 0, $and133$i$i = 0, $and14 = 0, $and145 = 0, $and17$i = 0, $and194$i = 0, $and194$i$204 = 0, $and199$i = 0, $and209$i$i = 0, $and21$i = 0, $and21$i$149 = 0, $and227$i$i = 0, $and236$i = 0, $and264$i$i = 0, $and268$i$i = 0, $and273$i$i = 0, $and282$i$i = 0, $and29$i = 0; - var $and292$i = 0, $and295$i$i = 0, $and3$i = 0, $and3$i$24$i = 0, $and3$i$35$i = 0, $and3$i$i = 0, $and3$i$i$i = 0, $and30$i = 0, $and318$i$i = 0, $and32$i = 0, $and32$i$i = 0, $and33$i$i = 0, $and331$i = 0, $and336$i = 0, $and341$i = 0, $and350$i = 0, $and363$i = 0, $and37$i$i = 0, $and387$i = 0, $and4 = 0; - var $and40$i$i = 0, $and41 = 0, $and42$i = 0, $and43 = 0, $and46 = 0, $and49 = 0, $and49$i = 0, $and49$i$i = 0, $and53 = 0, $and57 = 0, $and6$i = 0, $and6$i$38$i = 0, $and6$i$i = 0, $and61 = 0, $and64$i = 0, $and68$i = 0, $and69$i$i = 0, $and7 = 0, $and7$i$i = 0, $and73$i = 0; - var $and73$i$i = 0, $and74 = 0, $and77$i = 0, $and78$i$i = 0, $and8$i = 0, $and80$i = 0, $and81$i = 0, $and85$i = 0, $and87$i$i = 0, $and89$i = 0, $and9$i = 0, $and96$i$i = 0, $arrayidx = 0, $arrayidx$i = 0, $arrayidx$i$150 = 0, $arrayidx$i$20$i = 0, $arrayidx$i$48$i = 0, $arrayidx$i$i = 0, $arrayidx103 = 0, $arrayidx103$i$i = 0; - var $arrayidx106$i = 0, $arrayidx107$i$i = 0, $arrayidx113$i = 0, $arrayidx113$i$159 = 0, $arrayidx121$i = 0, $arrayidx123$i$i = 0, $arrayidx126$i$i = 0, $arrayidx126$i$i$lcssa = 0, $arrayidx137$i = 0, $arrayidx143$i$i = 0, $arrayidx148$i = 0, $arrayidx151$i = 0, $arrayidx151$i$i = 0, $arrayidx154$i = 0, $arrayidx155$i = 0, $arrayidx161$i = 0, $arrayidx165$i = 0, $arrayidx165$i$169 = 0, $arrayidx178$i$i = 0, $arrayidx184$i = 0; - var $arrayidx184$i$i = 0, $arrayidx195$i$i = 0, $arrayidx196$i = 0, $arrayidx204$i = 0, $arrayidx212$i = 0, $arrayidx223$i$i = 0, $arrayidx228$i = 0, $arrayidx23$i = 0, $arrayidx239$i = 0, $arrayidx245$i = 0, $arrayidx256$i = 0, $arrayidx27$i = 0, $arrayidx287$i$i = 0, $arrayidx289$i = 0, $arrayidx290$i$i = 0, $arrayidx325$i$i = 0, $arrayidx325$i$i$lcssa = 0, $arrayidx355$i = 0, $arrayidx358$i = 0, $arrayidx394$i = 0; - var $arrayidx394$i$lcssa = 0, $arrayidx40$i = 0, $arrayidx44$i = 0, $arrayidx61$i = 0, $arrayidx65$i = 0, $arrayidx66 = 0, $arrayidx71$i = 0, $arrayidx75$i = 0, $arrayidx91$i$i = 0, $arrayidx92$i$i = 0, $arrayidx94$i = 0, $arrayidx94$i$156 = 0, $arrayidx96$i$i = 0, $base$i$i$lcssa = 0, $base226$i$lcssa = 0, $bk = 0, $bk$i = 0, $bk$i$163 = 0, $bk$i$46$i = 0, $bk$i$i = 0; - var $bk102$i$i = 0, $bk122 = 0, $bk124 = 0, $bk136$i = 0, $bk139$i$i = 0, $bk158$i$i = 0, $bk161$i$i = 0, $bk218$i = 0, $bk220$i = 0, $bk246$i$i = 0, $bk248$i$i = 0, $bk302$i$i = 0, $bk311$i = 0, $bk313$i = 0, $bk338$i$i = 0, $bk357$i$i = 0, $bk360$i$i = 0, $bk370$i = 0, $bk407$i = 0, $bk429$i = 0; - var $bk43$i$i = 0, $bk432$i = 0, $bk47$i = 0, $bk55$i$i = 0, $bk67$i$i = 0, $bk74$i$i = 0, $bk78 = 0, $bk82$i$i = 0, $br$2$ph$i = 0, $call$i$i = 0, $call107$i = 0, $call131$i = 0, $call132$i = 0, $call275$i = 0, $call37$i = 0, $call6$i$i = 0, $call68$i = 0, $call83$i = 0, $child$i$i = 0, $child166$i$i = 0; - var $child289$i$i = 0, $child357$i = 0, $cmp = 0, $cmp$i = 0, $cmp$i$13$i = 0, $cmp$i$140 = 0, $cmp$i$15$i = 0, $cmp$i$179 = 0, $cmp$i$2$i$i = 0, $cmp$i$23$i = 0, $cmp$i$34$i = 0, $cmp$i$9$i = 0, $cmp$i$i$i = 0, $cmp1 = 0, $cmp1$i = 0, $cmp1$i$i = 0, $cmp10 = 0, $cmp100$i$i = 0, $cmp102$i = 0, $cmp104$i$i = 0; - var $cmp105$i = 0, $cmp106$i$i = 0, $cmp107$i = 0, $cmp107$i$157 = 0, $cmp108$i = 0, $cmp108$i$i = 0, $cmp112$i$i = 0, $cmp113 = 0, $cmp114$i = 0, $cmp116$i = 0, $cmp118$i = 0, $cmp119$i = 0, $cmp12$i = 0, $cmp120$i$53$i = 0, $cmp120$i$i = 0, $cmp121$i = 0, $cmp123$i = 0, $cmp124$i$i = 0, $cmp126$i = 0, $cmp127$i = 0; - var $cmp128 = 0, $cmp128$i = 0, $cmp128$i$i = 0, $cmp130$i = 0, $cmp133$i = 0, $cmp133$i$196 = 0, $cmp133$i$i = 0, $cmp135$i = 0, $cmp137$i = 0, $cmp137$i$197 = 0, $cmp137$i$i = 0, $cmp138$i = 0, $cmp139 = 0, $cmp140$i = 0, $cmp141$not$i = 0, $cmp142$i = 0, $cmp144$i$i = 0, $cmp146 = 0, $cmp15 = 0, $cmp15$i = 0; - var $cmp151$i = 0, $cmp152$i = 0, $cmp153$i$i = 0, $cmp155$i = 0, $cmp156 = 0, $cmp156$i = 0, $cmp156$i$i = 0, $cmp157$i = 0, $cmp159$i = 0, $cmp159$i$199 = 0, $cmp16 = 0, $cmp160$i$i = 0, $cmp162 = 0, $cmp162$i = 0, $cmp162$i$200 = 0, $cmp166$i = 0, $cmp168$i$i = 0, $cmp171$i = 0, $cmp172$i$i = 0, $cmp174$i = 0; - var $cmp180$i = 0, $cmp185$i = 0, $cmp185$i$i = 0, $cmp186 = 0, $cmp186$i = 0, $cmp189$i$i = 0, $cmp19$i = 0, $cmp190$i = 0, $cmp191$i = 0, $cmp198$i = 0, $cmp2$i$i = 0, $cmp2$i$i$i = 0, $cmp20$i$i = 0, $cmp203$i = 0, $cmp205$i = 0, $cmp208$i = 0, $cmp209$i = 0, $cmp21$i = 0, $cmp215$i$i = 0, $cmp217$i = 0; - var $cmp218$i = 0, $cmp221$i = 0, $cmp224$i = 0, $cmp228$i = 0, $cmp229$i = 0, $cmp233$i = 0, $cmp236$i$i = 0, $cmp24$i = 0, $cmp24$i$i = 0, $cmp246$i = 0, $cmp250$i = 0, $cmp254$i$i = 0, $cmp257$i = 0, $cmp258$i$i = 0, $cmp26$i = 0, $cmp265$i = 0, $cmp27$i$i = 0, $cmp28$i = 0, $cmp28$i$i = 0, $cmp284$i = 0; - var $cmp29 = 0, $cmp3$i$i = 0, $cmp301$i = 0, $cmp306$i$i = 0, $cmp31 = 0, $cmp319$i = 0, $cmp319$i$i = 0, $cmp32$i = 0, $cmp32$i$185 = 0, $cmp323$i = 0, $cmp327$i$i = 0, $cmp33$i = 0, $cmp332$i$i = 0, $cmp34$i = 0, $cmp34$i$i = 0, $cmp35$i = 0, $cmp350$i$i = 0, $cmp36$i = 0, $cmp36$i$i = 0, $cmp374$i = 0; - var $cmp38$i = 0, $cmp38$i$i = 0, $cmp388$i = 0, $cmp396$i = 0, $cmp40$i = 0, $cmp401$i = 0, $cmp41$i$i = 0, $cmp42$i$i = 0, $cmp422$i = 0, $cmp43$i = 0, $cmp44$i$i = 0, $cmp45$i = 0, $cmp45$i$155 = 0, $cmp46$i = 0, $cmp46$i$49$i = 0, $cmp46$i$i = 0, $cmp48$i = 0, $cmp49$i = 0, $cmp5 = 0, $cmp51$i = 0; - var $cmp54$i$i = 0, $cmp55$i = 0, $cmp55$i$187 = 0, $cmp57$i = 0, $cmp57$i$188 = 0, $cmp57$i$i = 0, $cmp59$i$i = 0, $cmp60$i = 0, $cmp60$i$i = 0, $cmp62$i = 0, $cmp63$i = 0, $cmp63$i$i = 0, $cmp65$i = 0, $cmp66$i = 0, $cmp66$i$190 = 0, $cmp69$i = 0, $cmp7$i$i = 0, $cmp70 = 0, $cmp72$i = 0, $cmp75$i$i = 0; - var $cmp76 = 0, $cmp76$i = 0, $cmp79 = 0, $cmp81$i = 0, $cmp81$i$191 = 0, $cmp81$i$i = 0, $cmp83$i$i = 0, $cmp85$i = 0, $cmp86$i$i = 0, $cmp89$i = 0, $cmp9$i$i = 0, $cmp90$i = 0, $cmp91$i = 0, $cmp93$i = 0, $cmp95$i = 0, $cmp96$i = 0, $cmp97$7$i = 0, $cmp97$i = 0, $cmp97$i$i = 0, $cmp99 = 0; - var $cond = 0, $cond$i = 0, $cond$i$16$i = 0, $cond$i$25$i = 0, $cond$i$36$i = 0, $cond$i$i = 0, $cond$i$i$i = 0, $cond$v$0$i = 0, $cond115$i$i = 0, $cond13$i$i = 0, $cond15$i$i = 0, $cond2$i = 0, $cond2$i$i = 0, $cond3$i = 0, $cond315$i$i = 0, $cond383$i = 0, $cond4$i = 0, $exitcond$i$i = 0, $fd$i = 0, $fd$i$164 = 0; - var $fd$i$i = 0, $fd103$i$i = 0, $fd123 = 0, $fd139$i = 0, $fd140$i$i = 0, $fd148$i$i = 0, $fd160$i$i = 0, $fd219$i = 0, $fd247$i$i = 0, $fd303$i$i = 0, $fd312$i = 0, $fd339$i$i = 0, $fd344$i$i = 0, $fd359$i$i = 0, $fd371$i = 0, $fd408$i = 0, $fd416$i = 0, $fd431$i = 0, $fd50$i = 0, $fd54$i$i = 0; - var $fd59$i$i = 0, $fd68$pre$phi$i$iZ2D = 0, $fd69 = 0, $fd78$i$i = 0, $fd85$i$i = 0, $fd9 = 0, $head = 0, $head$i = 0, $head$i$154 = 0, $head$i$17$i = 0, $head$i$29$i = 0, $head$i$42$i = 0, $head$i$i = 0, $head$i$i$i = 0, $head118$i$i = 0, $head168 = 0, $head173 = 0, $head177 = 0, $head179 = 0, $head179$i = 0; - var $head182$i = 0, $head187$i = 0, $head189$i = 0, $head195 = 0, $head198 = 0, $head208$i$i = 0, $head211$i$i = 0, $head23$i$i = 0, $head25 = 0, $head265$i = 0, $head268$i = 0, $head271$i = 0, $head274$i = 0, $head279$i = 0, $head281$i = 0, $head29$i = 0, $head29$i$i = 0, $head317$i$i = 0, $head32$i$i = 0, $head34$i$i = 0; - var $head386$i = 0, $head7$i$31$i = 0, $head7$i$i = 0, $head7$i$i$i = 0, $head94 = 0, $head97 = 0, $head99$i = 0, $i$01$i$i = 0, $idx$0$i = 0, $inc$i$i = 0, $index$i = 0, $index$i$172 = 0, $index$i$54$i = 0, $index$i$i = 0, $index288$i$i = 0, $index356$i = 0, $nb$0 = 0, $neg = 0, $neg$i = 0, $neg$i$173 = 0; - var $neg$i$182 = 0, $neg$i$i = 0, $neg103$i = 0, $neg13 = 0, $neg132$i$i = 0, $neg48$i = 0, $neg73 = 0, $next$i = 0, $next$i$i = 0, $next$i$i$i = 0, $next231$i = 0, $not$cmp150$i$i = 0, $not$cmp346$i$i = 0, $not$cmp418$i = 0, $oldfirst$0$i$i = 0, $or$cond$i = 0, $or$cond$i$189 = 0, $or$cond1$i = 0, $or$cond1$i$184 = 0, $or$cond2$i = 0; - var $or$cond3$i = 0, $or$cond4$i = 0, $or$cond5$i = 0, $or$cond7$i = 0, $or$cond8$i = 0, $or$cond98$i = 0, $or$i = 0, $or$i$195 = 0, $or$i$28$i = 0, $or$i$i = 0, $or$i$i$i = 0, $or101$i$i = 0, $or110 = 0, $or167 = 0, $or172 = 0, $or176 = 0, $or178$i = 0, $or180 = 0, $or183$i = 0, $or186$i = 0; - var $or188$i = 0, $or19$i$i = 0, $or194 = 0, $or197 = 0, $or204$i = 0, $or210$i$i = 0, $or22$i$i = 0, $or23 = 0, $or232$i$i = 0, $or26 = 0, $or264$i = 0, $or267$i = 0, $or270$i = 0, $or275$i = 0, $or278$i = 0, $or28$i$i = 0, $or280$i = 0, $or297$i = 0, $or300$i$i = 0, $or33$i$i = 0; - var $or368$i = 0, $or40 = 0, $or44$i$i = 0, $or93 = 0, $or96 = 0, $p$0$i$i = 0, $parent$i = 0, $parent$i$162 = 0, $parent$i$51$i = 0, $parent$i$i = 0, $parent135$i = 0, $parent138$i$i = 0, $parent149$i = 0, $parent162$i$i = 0, $parent165$i$i = 0, $parent166$i = 0, $parent179$i$i = 0, $parent196$i$i = 0, $parent226$i = 0, $parent240$i = 0; - var $parent257$i = 0, $parent301$i$i = 0, $parent337$i$i = 0, $parent361$i$i = 0, $parent369$i = 0, $parent406$i = 0, $parent433$i = 0, $qsize$0$i$i = 0, $retval$0 = 0, $rsize$0$i = 0, $rsize$0$i$152 = 0, $rsize$0$i$lcssa = 0, $rsize$1$i = 0, $rsize$3$i = 0, $rsize$4$lcssa$i = 0, $rsize$49$i = 0, $rst$0$i = 0, $rst$1$i = 0, $sflags193$i = 0, $sflags235$i = 0; - var $shl = 0, $shl$i = 0, $shl$i$144 = 0, $shl$i$19$i = 0, $shl$i$47$i = 0, $shl$i$i = 0, $shl102 = 0, $shl105 = 0, $shl116$i$i = 0, $shl12 = 0, $shl127$i$i = 0, $shl131$i$i = 0, $shl15$i = 0, $shl18$i = 0, $shl192$i = 0, $shl195$i = 0, $shl198$i = 0, $shl22 = 0, $shl221$i$i = 0, $shl226$i$i = 0; - var $shl265$i$i = 0, $shl270$i$i = 0, $shl276$i$i = 0, $shl279$i$i = 0, $shl288$i = 0, $shl291$i = 0, $shl294$i$i = 0, $shl31$i = 0, $shl316$i$i = 0, $shl326$i$i = 0, $shl333$i = 0, $shl338$i = 0, $shl344$i = 0, $shl347$i = 0, $shl35 = 0, $shl362$i = 0, $shl37 = 0, $shl384$i = 0, $shl39$i$i = 0, $shl395$i = 0; - var $shl48$i$i = 0, $shl52$i = 0, $shl60$i = 0, $shl65 = 0, $shl70$i$i = 0, $shl72 = 0, $shl75$i$i = 0, $shl81$i$i = 0, $shl84$i$i = 0, $shl9$i = 0, $shl90 = 0, $shl95$i$i = 0, $shr = 0, $shr$i = 0, $shr$i$139 = 0, $shr$i$45$i = 0, $shr$i$i = 0, $shr101 = 0, $shr11$i = 0, $shr11$i$147 = 0; - var $shr110$i$i = 0, $shr12$i = 0, $shr123$i$i = 0, $shr15$i = 0, $shr16$i = 0, $shr16$i$148 = 0, $shr19$i = 0, $shr194$i = 0, $shr20$i = 0, $shr214$i$i = 0, $shr253$i$i = 0, $shr263$i$i = 0, $shr267$i$i = 0, $shr27$i = 0, $shr272$i$i = 0, $shr277$i$i = 0, $shr281$i$i = 0, $shr283$i = 0, $shr3 = 0, $shr310$i$i = 0; - var $shr318$i = 0, $shr322$i$i = 0, $shr330$i = 0, $shr335$i = 0, $shr340$i = 0, $shr345$i = 0, $shr349$i = 0, $shr378$i = 0, $shr391$i = 0, $shr4$i = 0, $shr41$i = 0, $shr45 = 0, $shr47 = 0, $shr48 = 0, $shr5$i = 0, $shr5$i$142 = 0, $shr51 = 0, $shr52 = 0, $shr55 = 0, $shr56 = 0; - var $shr58$i$i = 0, $shr59 = 0, $shr60 = 0, $shr63 = 0, $shr68$i$i = 0, $shr7$i = 0, $shr7$i$145 = 0, $shr72$i = 0, $shr72$i$i = 0, $shr75$i = 0, $shr76$i = 0, $shr77$i$i = 0, $shr79$i = 0, $shr8$i = 0, $shr80$i = 0, $shr82$i$i = 0, $shr83$i = 0, $shr84$i = 0, $shr86$i$i = 0, $shr87$i = 0; - var $shr88$i = 0, $shr91$i = 0, $size$i$i = 0, $size$i$i$i = 0, $size$i$i$lcssa = 0, $size188$i = 0, $size188$i$lcssa = 0, $size245$i = 0, $sizebits$0$i = 0, $sizebits$0$shl52$i = 0, $sp$0$i$i = 0, $sp$0$i$i$i = 0, $sp$0108$i = 0, $sp$0108$i$lcssa = 0, $sp$1107$i = 0, $sp$1107$i$lcssa = 0, $ssize$0$i = 0, $ssize$2$ph$i = 0, $ssize$5$i = 0, $sub = 0; - var $sub$i = 0, $sub$i$138 = 0, $sub$i$181 = 0, $sub$i$i = 0, $sub$ptr$lhs$cast$i = 0, $sub$ptr$lhs$cast$i$39$i = 0, $sub$ptr$lhs$cast$i$i = 0, $sub$ptr$rhs$cast$i = 0, $sub$ptr$rhs$cast$i$40$i = 0, $sub$ptr$rhs$cast$i$i = 0, $sub$ptr$sub$i = 0, $sub$ptr$sub$i$41$i = 0, $sub$ptr$sub$i$i = 0, $sub10$i = 0, $sub101$i = 0, $sub101$rsize$4$i = 0, $sub112$i = 0, $sub113$i$i = 0, $sub118$i = 0, $sub14$i = 0; - var $sub16$i$i = 0, $sub160 = 0, $sub172$i = 0, $sub18$i$i = 0, $sub190 = 0, $sub2$i = 0, $sub22$i = 0, $sub260$i = 0, $sub262$i$i = 0, $sub266$i$i = 0, $sub271$i$i = 0, $sub275$i$i = 0, $sub30$i = 0, $sub31$i = 0, $sub31$rsize$0$i = 0, $sub313$i$i = 0, $sub329$i = 0, $sub33$i = 0, $sub334$i = 0, $sub339$i = 0; - var $sub343$i = 0, $sub381$i = 0, $sub4$i = 0, $sub41$i = 0, $sub42 = 0, $sub44 = 0, $sub5$i$27$i = 0, $sub5$i$i = 0, $sub5$i$i$i = 0, $sub50$i = 0, $sub6$i = 0, $sub63$i = 0, $sub67$i = 0, $sub67$i$i = 0, $sub70$i = 0, $sub71$i$i = 0, $sub76$i$i = 0, $sub80$i$i = 0, $sub91 = 0, $sub99$i = 0; - var $t$0$i = 0, $t$0$i$151 = 0, $t$2$i = 0, $t$4$ph$i = 0, $t$4$v$4$i = 0, $t$48$i = 0, $tbase$796$i = 0, $tobool$i$i = 0, $tobool107 = 0, $tobool195$i = 0, $tobool200$i = 0, $tobool228$i$i = 0, $tobool237$i = 0, $tobool293$i = 0, $tobool296$i$i = 0, $tobool30$i = 0, $tobool364$i = 0, $tobool97$i$i = 0, $tsize$795$i = 0, $v$0$i = 0; - var $v$0$i$153 = 0, $v$0$i$lcssa = 0, $v$1$i = 0, $v$3$i = 0, $v$4$lcssa$i = 0, $v$410$i = 0, $xor$i$i = 0, label = 0, sp = 0; - sp = STACKTOP; - $cmp = ($bytes>>>0)<(245); - do { - if ($cmp) { - $cmp1 = ($bytes>>>0)<(11); - $add2 = (($bytes) + 11)|0; - $and = $add2 & -8; - $cond = $cmp1 ? 16 : $and; - $shr = $cond >>> 3; - $0 = HEAP32[44]|0; - $shr3 = $0 >>> $shr; - $and4 = $shr3 & 3; - $cmp5 = ($and4|0)==(0); - if (!($cmp5)) { - $neg = $shr3 & 1; - $and7 = $neg ^ 1; - $add8 = (($and7) + ($shr))|0; - $shl = $add8 << 1; - $arrayidx = (216 + ($shl<<2)|0); - $1 = ((($arrayidx)) + 8|0); - $2 = HEAP32[$1>>2]|0; - $fd9 = ((($2)) + 8|0); - $3 = HEAP32[$fd9>>2]|0; - $cmp10 = ($arrayidx|0)==($3|0); - do { - if ($cmp10) { - $shl12 = 1 << $add8; - $neg13 = $shl12 ^ -1; - $and14 = $0 & $neg13; - HEAP32[44] = $and14; - } else { - $4 = HEAP32[(192)>>2]|0; - $cmp15 = ($3>>>0)<($4>>>0); - if ($cmp15) { - _abort(); - // unreachable; - } - $bk = ((($3)) + 12|0); - $5 = HEAP32[$bk>>2]|0; - $cmp16 = ($5|0)==($2|0); - if ($cmp16) { - HEAP32[$bk>>2] = $arrayidx; - HEAP32[$1>>2] = $3; - break; - } else { - _abort(); - // unreachable; - } - } - } while(0); - $shl22 = $add8 << 3; - $or23 = $shl22 | 3; - $head = ((($2)) + 4|0); - HEAP32[$head>>2] = $or23; - $add$ptr = (($2) + ($shl22)|0); - $head25 = ((($add$ptr)) + 4|0); - $6 = HEAP32[$head25>>2]|0; - $or26 = $6 | 1; - HEAP32[$head25>>2] = $or26; - $retval$0 = $fd9; - return ($retval$0|0); - } - $7 = HEAP32[(184)>>2]|0; - $cmp29 = ($cond>>>0)>($7>>>0); - if ($cmp29) { - $cmp31 = ($shr3|0)==(0); - if (!($cmp31)) { - $shl35 = $shr3 << $shr; - $shl37 = 2 << $shr; - $sub = (0 - ($shl37))|0; - $or40 = $shl37 | $sub; - $and41 = $shl35 & $or40; - $sub42 = (0 - ($and41))|0; - $and43 = $and41 & $sub42; - $sub44 = (($and43) + -1)|0; - $shr45 = $sub44 >>> 12; - $and46 = $shr45 & 16; - $shr47 = $sub44 >>> $and46; - $shr48 = $shr47 >>> 5; - $and49 = $shr48 & 8; - $add50 = $and49 | $and46; - $shr51 = $shr47 >>> $and49; - $shr52 = $shr51 >>> 2; - $and53 = $shr52 & 4; - $add54 = $add50 | $and53; - $shr55 = $shr51 >>> $and53; - $shr56 = $shr55 >>> 1; - $and57 = $shr56 & 2; - $add58 = $add54 | $and57; - $shr59 = $shr55 >>> $and57; - $shr60 = $shr59 >>> 1; - $and61 = $shr60 & 1; - $add62 = $add58 | $and61; - $shr63 = $shr59 >>> $and61; - $add64 = (($add62) + ($shr63))|0; - $shl65 = $add64 << 1; - $arrayidx66 = (216 + ($shl65<<2)|0); - $8 = ((($arrayidx66)) + 8|0); - $9 = HEAP32[$8>>2]|0; - $fd69 = ((($9)) + 8|0); - $10 = HEAP32[$fd69>>2]|0; - $cmp70 = ($arrayidx66|0)==($10|0); - do { - if ($cmp70) { - $shl72 = 1 << $add64; - $neg73 = $shl72 ^ -1; - $and74 = $0 & $neg73; - HEAP32[44] = $and74; - $13 = $7; - } else { - $11 = HEAP32[(192)>>2]|0; - $cmp76 = ($10>>>0)<($11>>>0); - if ($cmp76) { - _abort(); - // unreachable; - } - $bk78 = ((($10)) + 12|0); - $12 = HEAP32[$bk78>>2]|0; - $cmp79 = ($12|0)==($9|0); - if ($cmp79) { - HEAP32[$bk78>>2] = $arrayidx66; - HEAP32[$8>>2] = $10; - $$pre = HEAP32[(184)>>2]|0; - $13 = $$pre; - break; - } else { - _abort(); - // unreachable; - } - } - } while(0); - $shl90 = $add64 << 3; - $sub91 = (($shl90) - ($cond))|0; - $or93 = $cond | 3; - $head94 = ((($9)) + 4|0); - HEAP32[$head94>>2] = $or93; - $add$ptr95 = (($9) + ($cond)|0); - $or96 = $sub91 | 1; - $head97 = ((($add$ptr95)) + 4|0); - HEAP32[$head97>>2] = $or96; - $add$ptr98 = (($add$ptr95) + ($sub91)|0); - HEAP32[$add$ptr98>>2] = $sub91; - $cmp99 = ($13|0)==(0); - if (!($cmp99)) { - $14 = HEAP32[(196)>>2]|0; - $shr101 = $13 >>> 3; - $shl102 = $shr101 << 1; - $arrayidx103 = (216 + ($shl102<<2)|0); - $15 = HEAP32[44]|0; - $shl105 = 1 << $shr101; - $and106 = $15 & $shl105; - $tobool107 = ($and106|0)==(0); - if ($tobool107) { - $or110 = $15 | $shl105; - HEAP32[44] = $or110; - $$pre241 = ((($arrayidx103)) + 8|0); - $$pre$phiZ2D = $$pre241;$F104$0 = $arrayidx103; - } else { - $16 = ((($arrayidx103)) + 8|0); - $17 = HEAP32[$16>>2]|0; - $18 = HEAP32[(192)>>2]|0; - $cmp113 = ($17>>>0)<($18>>>0); - if ($cmp113) { - _abort(); - // unreachable; - } else { - $$pre$phiZ2D = $16;$F104$0 = $17; - } - } - HEAP32[$$pre$phiZ2D>>2] = $14; - $bk122 = ((($F104$0)) + 12|0); - HEAP32[$bk122>>2] = $14; - $fd123 = ((($14)) + 8|0); - HEAP32[$fd123>>2] = $F104$0; - $bk124 = ((($14)) + 12|0); - HEAP32[$bk124>>2] = $arrayidx103; - } - HEAP32[(184)>>2] = $sub91; - HEAP32[(196)>>2] = $add$ptr95; - $retval$0 = $fd69; - return ($retval$0|0); - } - $19 = HEAP32[(180)>>2]|0; - $cmp128 = ($19|0)==(0); - if ($cmp128) { - $nb$0 = $cond; - } else { - $sub$i = (0 - ($19))|0; - $and$i = $19 & $sub$i; - $sub2$i = (($and$i) + -1)|0; - $shr$i = $sub2$i >>> 12; - $and3$i = $shr$i & 16; - $shr4$i = $sub2$i >>> $and3$i; - $shr5$i = $shr4$i >>> 5; - $and6$i = $shr5$i & 8; - $add$i = $and6$i | $and3$i; - $shr7$i = $shr4$i >>> $and6$i; - $shr8$i = $shr7$i >>> 2; - $and9$i = $shr8$i & 4; - $add10$i = $add$i | $and9$i; - $shr11$i = $shr7$i >>> $and9$i; - $shr12$i = $shr11$i >>> 1; - $and13$i = $shr12$i & 2; - $add14$i = $add10$i | $and13$i; - $shr15$i = $shr11$i >>> $and13$i; - $shr16$i = $shr15$i >>> 1; - $and17$i = $shr16$i & 1; - $add18$i = $add14$i | $and17$i; - $shr19$i = $shr15$i >>> $and17$i; - $add20$i = (($add18$i) + ($shr19$i))|0; - $arrayidx$i = (480 + ($add20$i<<2)|0); - $20 = HEAP32[$arrayidx$i>>2]|0; - $head$i = ((($20)) + 4|0); - $21 = HEAP32[$head$i>>2]|0; - $and21$i = $21 & -8; - $sub22$i = (($and21$i) - ($cond))|0; - $rsize$0$i = $sub22$i;$t$0$i = $20;$v$0$i = $20; - while(1) { - $arrayidx23$i = ((($t$0$i)) + 16|0); - $22 = HEAP32[$arrayidx23$i>>2]|0; - $cmp$i = ($22|0)==(0|0); - if ($cmp$i) { - $arrayidx27$i = ((($t$0$i)) + 20|0); - $23 = HEAP32[$arrayidx27$i>>2]|0; - $cmp28$i = ($23|0)==(0|0); - if ($cmp28$i) { - $rsize$0$i$lcssa = $rsize$0$i;$v$0$i$lcssa = $v$0$i; - break; - } else { - $cond4$i = $23; - } - } else { - $cond4$i = $22; - } - $head29$i = ((($cond4$i)) + 4|0); - $24 = HEAP32[$head29$i>>2]|0; - $and30$i = $24 & -8; - $sub31$i = (($and30$i) - ($cond))|0; - $cmp32$i = ($sub31$i>>>0)<($rsize$0$i>>>0); - $sub31$rsize$0$i = $cmp32$i ? $sub31$i : $rsize$0$i; - $cond$v$0$i = $cmp32$i ? $cond4$i : $v$0$i; - $rsize$0$i = $sub31$rsize$0$i;$t$0$i = $cond4$i;$v$0$i = $cond$v$0$i; - } - $25 = HEAP32[(192)>>2]|0; - $cmp33$i = ($v$0$i$lcssa>>>0)<($25>>>0); - if ($cmp33$i) { - _abort(); - // unreachable; - } - $add$ptr$i = (($v$0$i$lcssa) + ($cond)|0); - $cmp35$i = ($v$0$i$lcssa>>>0)<($add$ptr$i>>>0); - if (!($cmp35$i)) { - _abort(); - // unreachable; - } - $parent$i = ((($v$0$i$lcssa)) + 24|0); - $26 = HEAP32[$parent$i>>2]|0; - $bk$i = ((($v$0$i$lcssa)) + 12|0); - $27 = HEAP32[$bk$i>>2]|0; - $cmp40$i = ($27|0)==($v$0$i$lcssa|0); - do { - if ($cmp40$i) { - $arrayidx61$i = ((($v$0$i$lcssa)) + 20|0); - $31 = HEAP32[$arrayidx61$i>>2]|0; - $cmp62$i = ($31|0)==(0|0); - if ($cmp62$i) { - $arrayidx65$i = ((($v$0$i$lcssa)) + 16|0); - $32 = HEAP32[$arrayidx65$i>>2]|0; - $cmp66$i = ($32|0)==(0|0); - if ($cmp66$i) { - $R$3$i = 0; - break; - } else { - $R$1$i = $32;$RP$1$i = $arrayidx65$i; - } - } else { - $R$1$i = $31;$RP$1$i = $arrayidx61$i; - } - while(1) { - $arrayidx71$i = ((($R$1$i)) + 20|0); - $33 = HEAP32[$arrayidx71$i>>2]|0; - $cmp72$i = ($33|0)==(0|0); - if (!($cmp72$i)) { - $R$1$i = $33;$RP$1$i = $arrayidx71$i; - continue; - } - $arrayidx75$i = ((($R$1$i)) + 16|0); - $34 = HEAP32[$arrayidx75$i>>2]|0; - $cmp76$i = ($34|0)==(0|0); - if ($cmp76$i) { - $R$1$i$lcssa = $R$1$i;$RP$1$i$lcssa = $RP$1$i; - break; - } else { - $R$1$i = $34;$RP$1$i = $arrayidx75$i; - } - } - $cmp81$i = ($RP$1$i$lcssa>>>0)<($25>>>0); - if ($cmp81$i) { - _abort(); - // unreachable; - } else { - HEAP32[$RP$1$i$lcssa>>2] = 0; - $R$3$i = $R$1$i$lcssa; - break; - } - } else { - $fd$i = ((($v$0$i$lcssa)) + 8|0); - $28 = HEAP32[$fd$i>>2]|0; - $cmp45$i = ($28>>>0)<($25>>>0); - if ($cmp45$i) { - _abort(); - // unreachable; - } - $bk47$i = ((($28)) + 12|0); - $29 = HEAP32[$bk47$i>>2]|0; - $cmp48$i = ($29|0)==($v$0$i$lcssa|0); - if (!($cmp48$i)) { - _abort(); - // unreachable; - } - $fd50$i = ((($27)) + 8|0); - $30 = HEAP32[$fd50$i>>2]|0; - $cmp51$i = ($30|0)==($v$0$i$lcssa|0); - if ($cmp51$i) { - HEAP32[$bk47$i>>2] = $27; - HEAP32[$fd50$i>>2] = $28; - $R$3$i = $27; - break; - } else { - _abort(); - // unreachable; - } - } - } while(0); - $cmp90$i = ($26|0)==(0|0); - do { - if (!($cmp90$i)) { - $index$i = ((($v$0$i$lcssa)) + 28|0); - $35 = HEAP32[$index$i>>2]|0; - $arrayidx94$i = (480 + ($35<<2)|0); - $36 = HEAP32[$arrayidx94$i>>2]|0; - $cmp95$i = ($v$0$i$lcssa|0)==($36|0); - if ($cmp95$i) { - HEAP32[$arrayidx94$i>>2] = $R$3$i; - $cond2$i = ($R$3$i|0)==(0|0); - if ($cond2$i) { - $shl$i = 1 << $35; - $neg$i = $shl$i ^ -1; - $37 = HEAP32[(180)>>2]|0; - $and103$i = $37 & $neg$i; - HEAP32[(180)>>2] = $and103$i; - break; - } - } else { - $38 = HEAP32[(192)>>2]|0; - $cmp107$i = ($26>>>0)<($38>>>0); - if ($cmp107$i) { - _abort(); - // unreachable; - } - $arrayidx113$i = ((($26)) + 16|0); - $39 = HEAP32[$arrayidx113$i>>2]|0; - $cmp114$i = ($39|0)==($v$0$i$lcssa|0); - if ($cmp114$i) { - HEAP32[$arrayidx113$i>>2] = $R$3$i; - } else { - $arrayidx121$i = ((($26)) + 20|0); - HEAP32[$arrayidx121$i>>2] = $R$3$i; - } - $cmp126$i = ($R$3$i|0)==(0|0); - if ($cmp126$i) { - break; - } - } - $40 = HEAP32[(192)>>2]|0; - $cmp130$i = ($R$3$i>>>0)<($40>>>0); - if ($cmp130$i) { - _abort(); - // unreachable; - } - $parent135$i = ((($R$3$i)) + 24|0); - HEAP32[$parent135$i>>2] = $26; - $arrayidx137$i = ((($v$0$i$lcssa)) + 16|0); - $41 = HEAP32[$arrayidx137$i>>2]|0; - $cmp138$i = ($41|0)==(0|0); - do { - if (!($cmp138$i)) { - $cmp142$i = ($41>>>0)<($40>>>0); - if ($cmp142$i) { - _abort(); - // unreachable; - } else { - $arrayidx148$i = ((($R$3$i)) + 16|0); - HEAP32[$arrayidx148$i>>2] = $41; - $parent149$i = ((($41)) + 24|0); - HEAP32[$parent149$i>>2] = $R$3$i; - break; - } - } - } while(0); - $arrayidx154$i = ((($v$0$i$lcssa)) + 20|0); - $42 = HEAP32[$arrayidx154$i>>2]|0; - $cmp155$i = ($42|0)==(0|0); - if (!($cmp155$i)) { - $43 = HEAP32[(192)>>2]|0; - $cmp159$i = ($42>>>0)<($43>>>0); - if ($cmp159$i) { - _abort(); - // unreachable; - } else { - $arrayidx165$i = ((($R$3$i)) + 20|0); - HEAP32[$arrayidx165$i>>2] = $42; - $parent166$i = ((($42)) + 24|0); - HEAP32[$parent166$i>>2] = $R$3$i; - break; - } - } - } - } while(0); - $cmp174$i = ($rsize$0$i$lcssa>>>0)<(16); - if ($cmp174$i) { - $add177$i = (($rsize$0$i$lcssa) + ($cond))|0; - $or178$i = $add177$i | 3; - $head179$i = ((($v$0$i$lcssa)) + 4|0); - HEAP32[$head179$i>>2] = $or178$i; - $add$ptr181$i = (($v$0$i$lcssa) + ($add177$i)|0); - $head182$i = ((($add$ptr181$i)) + 4|0); - $44 = HEAP32[$head182$i>>2]|0; - $or183$i = $44 | 1; - HEAP32[$head182$i>>2] = $or183$i; - } else { - $or186$i = $cond | 3; - $head187$i = ((($v$0$i$lcssa)) + 4|0); - HEAP32[$head187$i>>2] = $or186$i; - $or188$i = $rsize$0$i$lcssa | 1; - $head189$i = ((($add$ptr$i)) + 4|0); - HEAP32[$head189$i>>2] = $or188$i; - $add$ptr190$i = (($add$ptr$i) + ($rsize$0$i$lcssa)|0); - HEAP32[$add$ptr190$i>>2] = $rsize$0$i$lcssa; - $45 = HEAP32[(184)>>2]|0; - $cmp191$i = ($45|0)==(0); - if (!($cmp191$i)) { - $46 = HEAP32[(196)>>2]|0; - $shr194$i = $45 >>> 3; - $shl195$i = $shr194$i << 1; - $arrayidx196$i = (216 + ($shl195$i<<2)|0); - $47 = HEAP32[44]|0; - $shl198$i = 1 << $shr194$i; - $and199$i = $47 & $shl198$i; - $tobool200$i = ($and199$i|0)==(0); - if ($tobool200$i) { - $or204$i = $47 | $shl198$i; - HEAP32[44] = $or204$i; - $$pre$i = ((($arrayidx196$i)) + 8|0); - $$pre$phi$iZ2D = $$pre$i;$F197$0$i = $arrayidx196$i; - } else { - $48 = ((($arrayidx196$i)) + 8|0); - $49 = HEAP32[$48>>2]|0; - $50 = HEAP32[(192)>>2]|0; - $cmp208$i = ($49>>>0)<($50>>>0); - if ($cmp208$i) { - _abort(); - // unreachable; - } else { - $$pre$phi$iZ2D = $48;$F197$0$i = $49; - } - } - HEAP32[$$pre$phi$iZ2D>>2] = $46; - $bk218$i = ((($F197$0$i)) + 12|0); - HEAP32[$bk218$i>>2] = $46; - $fd219$i = ((($46)) + 8|0); - HEAP32[$fd219$i>>2] = $F197$0$i; - $bk220$i = ((($46)) + 12|0); - HEAP32[$bk220$i>>2] = $arrayidx196$i; - } - HEAP32[(184)>>2] = $rsize$0$i$lcssa; - HEAP32[(196)>>2] = $add$ptr$i; - } - $add$ptr225$i = ((($v$0$i$lcssa)) + 8|0); - $retval$0 = $add$ptr225$i; - return ($retval$0|0); - } - } else { - $nb$0 = $cond; - } - } else { - $cmp139 = ($bytes>>>0)>(4294967231); - if ($cmp139) { - $nb$0 = -1; - } else { - $add144 = (($bytes) + 11)|0; - $and145 = $add144 & -8; - $51 = HEAP32[(180)>>2]|0; - $cmp146 = ($51|0)==(0); - if ($cmp146) { - $nb$0 = $and145; - } else { - $sub$i$138 = (0 - ($and145))|0; - $shr$i$139 = $add144 >>> 8; - $cmp$i$140 = ($shr$i$139|0)==(0); - if ($cmp$i$140) { - $idx$0$i = 0; - } else { - $cmp1$i = ($and145>>>0)>(16777215); - if ($cmp1$i) { - $idx$0$i = 31; - } else { - $sub4$i = (($shr$i$139) + 1048320)|0; - $shr5$i$142 = $sub4$i >>> 16; - $and$i$143 = $shr5$i$142 & 8; - $shl$i$144 = $shr$i$139 << $and$i$143; - $sub6$i = (($shl$i$144) + 520192)|0; - $shr7$i$145 = $sub6$i >>> 16; - $and8$i = $shr7$i$145 & 4; - $add$i$146 = $and8$i | $and$i$143; - $shl9$i = $shl$i$144 << $and8$i; - $sub10$i = (($shl9$i) + 245760)|0; - $shr11$i$147 = $sub10$i >>> 16; - $and12$i = $shr11$i$147 & 2; - $add13$i = $add$i$146 | $and12$i; - $sub14$i = (14 - ($add13$i))|0; - $shl15$i = $shl9$i << $and12$i; - $shr16$i$148 = $shl15$i >>> 15; - $add17$i = (($sub14$i) + ($shr16$i$148))|0; - $shl18$i = $add17$i << 1; - $add19$i = (($add17$i) + 7)|0; - $shr20$i = $and145 >>> $add19$i; - $and21$i$149 = $shr20$i & 1; - $add22$i = $and21$i$149 | $shl18$i; - $idx$0$i = $add22$i; - } - } - $arrayidx$i$150 = (480 + ($idx$0$i<<2)|0); - $52 = HEAP32[$arrayidx$i$150>>2]|0; - $cmp24$i = ($52|0)==(0|0); - L123: do { - if ($cmp24$i) { - $rsize$3$i = $sub$i$138;$t$2$i = 0;$v$3$i = 0; - label = 86; - } else { - $cmp26$i = ($idx$0$i|0)==(31); - $shr27$i = $idx$0$i >>> 1; - $sub30$i = (25 - ($shr27$i))|0; - $cond$i = $cmp26$i ? 0 : $sub30$i; - $shl31$i = $and145 << $cond$i; - $rsize$0$i$152 = $sub$i$138;$rst$0$i = 0;$sizebits$0$i = $shl31$i;$t$0$i$151 = $52;$v$0$i$153 = 0; - while(1) { - $head$i$154 = ((($t$0$i$151)) + 4|0); - $53 = HEAP32[$head$i$154>>2]|0; - $and32$i = $53 & -8; - $sub33$i = (($and32$i) - ($and145))|0; - $cmp34$i = ($sub33$i>>>0)<($rsize$0$i$152>>>0); - if ($cmp34$i) { - $cmp36$i = ($and32$i|0)==($and145|0); - if ($cmp36$i) { - $rsize$49$i = $sub33$i;$t$48$i = $t$0$i$151;$v$410$i = $t$0$i$151; - label = 90; - break L123; - } else { - $rsize$1$i = $sub33$i;$v$1$i = $t$0$i$151; - } - } else { - $rsize$1$i = $rsize$0$i$152;$v$1$i = $v$0$i$153; - } - $arrayidx40$i = ((($t$0$i$151)) + 20|0); - $54 = HEAP32[$arrayidx40$i>>2]|0; - $shr41$i = $sizebits$0$i >>> 31; - $arrayidx44$i = (((($t$0$i$151)) + 16|0) + ($shr41$i<<2)|0); - $55 = HEAP32[$arrayidx44$i>>2]|0; - $cmp45$i$155 = ($54|0)==(0|0); - $cmp46$i = ($54|0)==($55|0); - $or$cond1$i = $cmp45$i$155 | $cmp46$i; - $rst$1$i = $or$cond1$i ? $rst$0$i : $54; - $cmp49$i = ($55|0)==(0|0); - $56 = $cmp49$i&1; - $shl52$i = $56 ^ 1; - $sizebits$0$shl52$i = $sizebits$0$i << $shl52$i; - if ($cmp49$i) { - $rsize$3$i = $rsize$1$i;$t$2$i = $rst$1$i;$v$3$i = $v$1$i; - label = 86; - break; - } else { - $rsize$0$i$152 = $rsize$1$i;$rst$0$i = $rst$1$i;$sizebits$0$i = $sizebits$0$shl52$i;$t$0$i$151 = $55;$v$0$i$153 = $v$1$i; - } - } - } - } while(0); - if ((label|0) == 86) { - $cmp55$i = ($t$2$i|0)==(0|0); - $cmp57$i = ($v$3$i|0)==(0|0); - $or$cond$i = $cmp55$i & $cmp57$i; - if ($or$cond$i) { - $shl60$i = 2 << $idx$0$i; - $sub63$i = (0 - ($shl60$i))|0; - $or$i = $shl60$i | $sub63$i; - $and64$i = $51 & $or$i; - $cmp65$i = ($and64$i|0)==(0); - if ($cmp65$i) { - $nb$0 = $and145; - break; - } - $sub67$i = (0 - ($and64$i))|0; - $and68$i = $and64$i & $sub67$i; - $sub70$i = (($and68$i) + -1)|0; - $shr72$i = $sub70$i >>> 12; - $and73$i = $shr72$i & 16; - $shr75$i = $sub70$i >>> $and73$i; - $shr76$i = $shr75$i >>> 5; - $and77$i = $shr76$i & 8; - $add78$i = $and77$i | $and73$i; - $shr79$i = $shr75$i >>> $and77$i; - $shr80$i = $shr79$i >>> 2; - $and81$i = $shr80$i & 4; - $add82$i = $add78$i | $and81$i; - $shr83$i = $shr79$i >>> $and81$i; - $shr84$i = $shr83$i >>> 1; - $and85$i = $shr84$i & 2; - $add86$i = $add82$i | $and85$i; - $shr87$i = $shr83$i >>> $and85$i; - $shr88$i = $shr87$i >>> 1; - $and89$i = $shr88$i & 1; - $add90$i = $add86$i | $and89$i; - $shr91$i = $shr87$i >>> $and89$i; - $add92$i = (($add90$i) + ($shr91$i))|0; - $arrayidx94$i$156 = (480 + ($add92$i<<2)|0); - $57 = HEAP32[$arrayidx94$i$156>>2]|0; - $t$4$ph$i = $57; - } else { - $t$4$ph$i = $t$2$i; - } - $cmp97$7$i = ($t$4$ph$i|0)==(0|0); - if ($cmp97$7$i) { - $rsize$4$lcssa$i = $rsize$3$i;$v$4$lcssa$i = $v$3$i; - } else { - $rsize$49$i = $rsize$3$i;$t$48$i = $t$4$ph$i;$v$410$i = $v$3$i; - label = 90; - } - } - if ((label|0) == 90) { - while(1) { - label = 0; - $head99$i = ((($t$48$i)) + 4|0); - $58 = HEAP32[$head99$i>>2]|0; - $and100$i = $58 & -8; - $sub101$i = (($and100$i) - ($and145))|0; - $cmp102$i = ($sub101$i>>>0)<($rsize$49$i>>>0); - $sub101$rsize$4$i = $cmp102$i ? $sub101$i : $rsize$49$i; - $t$4$v$4$i = $cmp102$i ? $t$48$i : $v$410$i; - $arrayidx106$i = ((($t$48$i)) + 16|0); - $59 = HEAP32[$arrayidx106$i>>2]|0; - $cmp107$i$157 = ($59|0)==(0|0); - if (!($cmp107$i$157)) { - $rsize$49$i = $sub101$rsize$4$i;$t$48$i = $59;$v$410$i = $t$4$v$4$i; - label = 90; - continue; - } - $arrayidx113$i$159 = ((($t$48$i)) + 20|0); - $60 = HEAP32[$arrayidx113$i$159>>2]|0; - $cmp97$i = ($60|0)==(0|0); - if ($cmp97$i) { - $rsize$4$lcssa$i = $sub101$rsize$4$i;$v$4$lcssa$i = $t$4$v$4$i; - break; - } else { - $rsize$49$i = $sub101$rsize$4$i;$t$48$i = $60;$v$410$i = $t$4$v$4$i; - label = 90; - } - } - } - $cmp116$i = ($v$4$lcssa$i|0)==(0|0); - if ($cmp116$i) { - $nb$0 = $and145; - } else { - $61 = HEAP32[(184)>>2]|0; - $sub118$i = (($61) - ($and145))|0; - $cmp119$i = ($rsize$4$lcssa$i>>>0)<($sub118$i>>>0); - if ($cmp119$i) { - $62 = HEAP32[(192)>>2]|0; - $cmp121$i = ($v$4$lcssa$i>>>0)<($62>>>0); - if ($cmp121$i) { - _abort(); - // unreachable; - } - $add$ptr$i$161 = (($v$4$lcssa$i) + ($and145)|0); - $cmp123$i = ($v$4$lcssa$i>>>0)<($add$ptr$i$161>>>0); - if (!($cmp123$i)) { - _abort(); - // unreachable; - } - $parent$i$162 = ((($v$4$lcssa$i)) + 24|0); - $63 = HEAP32[$parent$i$162>>2]|0; - $bk$i$163 = ((($v$4$lcssa$i)) + 12|0); - $64 = HEAP32[$bk$i$163>>2]|0; - $cmp128$i = ($64|0)==($v$4$lcssa$i|0); - do { - if ($cmp128$i) { - $arrayidx151$i = ((($v$4$lcssa$i)) + 20|0); - $68 = HEAP32[$arrayidx151$i>>2]|0; - $cmp152$i = ($68|0)==(0|0); - if ($cmp152$i) { - $arrayidx155$i = ((($v$4$lcssa$i)) + 16|0); - $69 = HEAP32[$arrayidx155$i>>2]|0; - $cmp156$i = ($69|0)==(0|0); - if ($cmp156$i) { - $R$3$i$171 = 0; - break; - } else { - $R$1$i$168 = $69;$RP$1$i$167 = $arrayidx155$i; - } - } else { - $R$1$i$168 = $68;$RP$1$i$167 = $arrayidx151$i; - } - while(1) { - $arrayidx161$i = ((($R$1$i$168)) + 20|0); - $70 = HEAP32[$arrayidx161$i>>2]|0; - $cmp162$i = ($70|0)==(0|0); - if (!($cmp162$i)) { - $R$1$i$168 = $70;$RP$1$i$167 = $arrayidx161$i; - continue; - } - $arrayidx165$i$169 = ((($R$1$i$168)) + 16|0); - $71 = HEAP32[$arrayidx165$i$169>>2]|0; - $cmp166$i = ($71|0)==(0|0); - if ($cmp166$i) { - $R$1$i$168$lcssa = $R$1$i$168;$RP$1$i$167$lcssa = $RP$1$i$167; - break; - } else { - $R$1$i$168 = $71;$RP$1$i$167 = $arrayidx165$i$169; - } - } - $cmp171$i = ($RP$1$i$167$lcssa>>>0)<($62>>>0); - if ($cmp171$i) { - _abort(); - // unreachable; - } else { - HEAP32[$RP$1$i$167$lcssa>>2] = 0; - $R$3$i$171 = $R$1$i$168$lcssa; - break; - } - } else { - $fd$i$164 = ((($v$4$lcssa$i)) + 8|0); - $65 = HEAP32[$fd$i$164>>2]|0; - $cmp133$i = ($65>>>0)<($62>>>0); - if ($cmp133$i) { - _abort(); - // unreachable; - } - $bk136$i = ((($65)) + 12|0); - $66 = HEAP32[$bk136$i>>2]|0; - $cmp137$i = ($66|0)==($v$4$lcssa$i|0); - if (!($cmp137$i)) { - _abort(); - // unreachable; - } - $fd139$i = ((($64)) + 8|0); - $67 = HEAP32[$fd139$i>>2]|0; - $cmp140$i = ($67|0)==($v$4$lcssa$i|0); - if ($cmp140$i) { - HEAP32[$bk136$i>>2] = $64; - HEAP32[$fd139$i>>2] = $65; - $R$3$i$171 = $64; - break; - } else { - _abort(); - // unreachable; - } - } - } while(0); - $cmp180$i = ($63|0)==(0|0); - do { - if (!($cmp180$i)) { - $index$i$172 = ((($v$4$lcssa$i)) + 28|0); - $72 = HEAP32[$index$i$172>>2]|0; - $arrayidx184$i = (480 + ($72<<2)|0); - $73 = HEAP32[$arrayidx184$i>>2]|0; - $cmp185$i = ($v$4$lcssa$i|0)==($73|0); - if ($cmp185$i) { - HEAP32[$arrayidx184$i>>2] = $R$3$i$171; - $cond3$i = ($R$3$i$171|0)==(0|0); - if ($cond3$i) { - $shl192$i = 1 << $72; - $neg$i$173 = $shl192$i ^ -1; - $74 = HEAP32[(180)>>2]|0; - $and194$i = $74 & $neg$i$173; - HEAP32[(180)>>2] = $and194$i; - break; - } - } else { - $75 = HEAP32[(192)>>2]|0; - $cmp198$i = ($63>>>0)<($75>>>0); - if ($cmp198$i) { - _abort(); - // unreachable; - } - $arrayidx204$i = ((($63)) + 16|0); - $76 = HEAP32[$arrayidx204$i>>2]|0; - $cmp205$i = ($76|0)==($v$4$lcssa$i|0); - if ($cmp205$i) { - HEAP32[$arrayidx204$i>>2] = $R$3$i$171; - } else { - $arrayidx212$i = ((($63)) + 20|0); - HEAP32[$arrayidx212$i>>2] = $R$3$i$171; - } - $cmp217$i = ($R$3$i$171|0)==(0|0); - if ($cmp217$i) { - break; - } - } - $77 = HEAP32[(192)>>2]|0; - $cmp221$i = ($R$3$i$171>>>0)<($77>>>0); - if ($cmp221$i) { - _abort(); - // unreachable; - } - $parent226$i = ((($R$3$i$171)) + 24|0); - HEAP32[$parent226$i>>2] = $63; - $arrayidx228$i = ((($v$4$lcssa$i)) + 16|0); - $78 = HEAP32[$arrayidx228$i>>2]|0; - $cmp229$i = ($78|0)==(0|0); - do { - if (!($cmp229$i)) { - $cmp233$i = ($78>>>0)<($77>>>0); - if ($cmp233$i) { - _abort(); - // unreachable; - } else { - $arrayidx239$i = ((($R$3$i$171)) + 16|0); - HEAP32[$arrayidx239$i>>2] = $78; - $parent240$i = ((($78)) + 24|0); - HEAP32[$parent240$i>>2] = $R$3$i$171; - break; - } - } - } while(0); - $arrayidx245$i = ((($v$4$lcssa$i)) + 20|0); - $79 = HEAP32[$arrayidx245$i>>2]|0; - $cmp246$i = ($79|0)==(0|0); - if (!($cmp246$i)) { - $80 = HEAP32[(192)>>2]|0; - $cmp250$i = ($79>>>0)<($80>>>0); - if ($cmp250$i) { - _abort(); - // unreachable; - } else { - $arrayidx256$i = ((($R$3$i$171)) + 20|0); - HEAP32[$arrayidx256$i>>2] = $79; - $parent257$i = ((($79)) + 24|0); - HEAP32[$parent257$i>>2] = $R$3$i$171; - break; - } - } - } - } while(0); - $cmp265$i = ($rsize$4$lcssa$i>>>0)<(16); - do { - if ($cmp265$i) { - $add268$i = (($rsize$4$lcssa$i) + ($and145))|0; - $or270$i = $add268$i | 3; - $head271$i = ((($v$4$lcssa$i)) + 4|0); - HEAP32[$head271$i>>2] = $or270$i; - $add$ptr273$i = (($v$4$lcssa$i) + ($add268$i)|0); - $head274$i = ((($add$ptr273$i)) + 4|0); - $81 = HEAP32[$head274$i>>2]|0; - $or275$i = $81 | 1; - HEAP32[$head274$i>>2] = $or275$i; - } else { - $or278$i = $and145 | 3; - $head279$i = ((($v$4$lcssa$i)) + 4|0); - HEAP32[$head279$i>>2] = $or278$i; - $or280$i = $rsize$4$lcssa$i | 1; - $head281$i = ((($add$ptr$i$161)) + 4|0); - HEAP32[$head281$i>>2] = $or280$i; - $add$ptr282$i = (($add$ptr$i$161) + ($rsize$4$lcssa$i)|0); - HEAP32[$add$ptr282$i>>2] = $rsize$4$lcssa$i; - $shr283$i = $rsize$4$lcssa$i >>> 3; - $cmp284$i = ($rsize$4$lcssa$i>>>0)<(256); - if ($cmp284$i) { - $shl288$i = $shr283$i << 1; - $arrayidx289$i = (216 + ($shl288$i<<2)|0); - $82 = HEAP32[44]|0; - $shl291$i = 1 << $shr283$i; - $and292$i = $82 & $shl291$i; - $tobool293$i = ($and292$i|0)==(0); - if ($tobool293$i) { - $or297$i = $82 | $shl291$i; - HEAP32[44] = $or297$i; - $$pre$i$177 = ((($arrayidx289$i)) + 8|0); - $$pre$phi$i$178Z2D = $$pre$i$177;$F290$0$i = $arrayidx289$i; - } else { - $83 = ((($arrayidx289$i)) + 8|0); - $84 = HEAP32[$83>>2]|0; - $85 = HEAP32[(192)>>2]|0; - $cmp301$i = ($84>>>0)<($85>>>0); - if ($cmp301$i) { - _abort(); - // unreachable; - } else { - $$pre$phi$i$178Z2D = $83;$F290$0$i = $84; - } - } - HEAP32[$$pre$phi$i$178Z2D>>2] = $add$ptr$i$161; - $bk311$i = ((($F290$0$i)) + 12|0); - HEAP32[$bk311$i>>2] = $add$ptr$i$161; - $fd312$i = ((($add$ptr$i$161)) + 8|0); - HEAP32[$fd312$i>>2] = $F290$0$i; - $bk313$i = ((($add$ptr$i$161)) + 12|0); - HEAP32[$bk313$i>>2] = $arrayidx289$i; - break; - } - $shr318$i = $rsize$4$lcssa$i >>> 8; - $cmp319$i = ($shr318$i|0)==(0); - if ($cmp319$i) { - $I316$0$i = 0; - } else { - $cmp323$i = ($rsize$4$lcssa$i>>>0)>(16777215); - if ($cmp323$i) { - $I316$0$i = 31; - } else { - $sub329$i = (($shr318$i) + 1048320)|0; - $shr330$i = $sub329$i >>> 16; - $and331$i = $shr330$i & 8; - $shl333$i = $shr318$i << $and331$i; - $sub334$i = (($shl333$i) + 520192)|0; - $shr335$i = $sub334$i >>> 16; - $and336$i = $shr335$i & 4; - $add337$i = $and336$i | $and331$i; - $shl338$i = $shl333$i << $and336$i; - $sub339$i = (($shl338$i) + 245760)|0; - $shr340$i = $sub339$i >>> 16; - $and341$i = $shr340$i & 2; - $add342$i = $add337$i | $and341$i; - $sub343$i = (14 - ($add342$i))|0; - $shl344$i = $shl338$i << $and341$i; - $shr345$i = $shl344$i >>> 15; - $add346$i = (($sub343$i) + ($shr345$i))|0; - $shl347$i = $add346$i << 1; - $add348$i = (($add346$i) + 7)|0; - $shr349$i = $rsize$4$lcssa$i >>> $add348$i; - $and350$i = $shr349$i & 1; - $add351$i = $and350$i | $shl347$i; - $I316$0$i = $add351$i; - } - } - $arrayidx355$i = (480 + ($I316$0$i<<2)|0); - $index356$i = ((($add$ptr$i$161)) + 28|0); - HEAP32[$index356$i>>2] = $I316$0$i; - $child357$i = ((($add$ptr$i$161)) + 16|0); - $arrayidx358$i = ((($child357$i)) + 4|0); - HEAP32[$arrayidx358$i>>2] = 0; - HEAP32[$child357$i>>2] = 0; - $86 = HEAP32[(180)>>2]|0; - $shl362$i = 1 << $I316$0$i; - $and363$i = $86 & $shl362$i; - $tobool364$i = ($and363$i|0)==(0); - if ($tobool364$i) { - $or368$i = $86 | $shl362$i; - HEAP32[(180)>>2] = $or368$i; - HEAP32[$arrayidx355$i>>2] = $add$ptr$i$161; - $parent369$i = ((($add$ptr$i$161)) + 24|0); - HEAP32[$parent369$i>>2] = $arrayidx355$i; - $bk370$i = ((($add$ptr$i$161)) + 12|0); - HEAP32[$bk370$i>>2] = $add$ptr$i$161; - $fd371$i = ((($add$ptr$i$161)) + 8|0); - HEAP32[$fd371$i>>2] = $add$ptr$i$161; - break; - } - $87 = HEAP32[$arrayidx355$i>>2]|0; - $cmp374$i = ($I316$0$i|0)==(31); - $shr378$i = $I316$0$i >>> 1; - $sub381$i = (25 - ($shr378$i))|0; - $cond383$i = $cmp374$i ? 0 : $sub381$i; - $shl384$i = $rsize$4$lcssa$i << $cond383$i; - $K373$0$i = $shl384$i;$T$0$i = $87; - while(1) { - $head386$i = ((($T$0$i)) + 4|0); - $88 = HEAP32[$head386$i>>2]|0; - $and387$i = $88 & -8; - $cmp388$i = ($and387$i|0)==($rsize$4$lcssa$i|0); - if ($cmp388$i) { - $T$0$i$lcssa = $T$0$i; - label = 148; - break; - } - $shr391$i = $K373$0$i >>> 31; - $arrayidx394$i = (((($T$0$i)) + 16|0) + ($shr391$i<<2)|0); - $shl395$i = $K373$0$i << 1; - $89 = HEAP32[$arrayidx394$i>>2]|0; - $cmp396$i = ($89|0)==(0|0); - if ($cmp396$i) { - $T$0$i$lcssa293 = $T$0$i;$arrayidx394$i$lcssa = $arrayidx394$i; - label = 145; - break; - } else { - $K373$0$i = $shl395$i;$T$0$i = $89; - } - } - if ((label|0) == 145) { - $90 = HEAP32[(192)>>2]|0; - $cmp401$i = ($arrayidx394$i$lcssa>>>0)<($90>>>0); - if ($cmp401$i) { - _abort(); - // unreachable; - } else { - HEAP32[$arrayidx394$i$lcssa>>2] = $add$ptr$i$161; - $parent406$i = ((($add$ptr$i$161)) + 24|0); - HEAP32[$parent406$i>>2] = $T$0$i$lcssa293; - $bk407$i = ((($add$ptr$i$161)) + 12|0); - HEAP32[$bk407$i>>2] = $add$ptr$i$161; - $fd408$i = ((($add$ptr$i$161)) + 8|0); - HEAP32[$fd408$i>>2] = $add$ptr$i$161; - break; - } - } - else if ((label|0) == 148) { - $fd416$i = ((($T$0$i$lcssa)) + 8|0); - $91 = HEAP32[$fd416$i>>2]|0; - $92 = HEAP32[(192)>>2]|0; - $cmp422$i = ($91>>>0)>=($92>>>0); - $not$cmp418$i = ($T$0$i$lcssa>>>0)>=($92>>>0); - $93 = $cmp422$i & $not$cmp418$i; - if ($93) { - $bk429$i = ((($91)) + 12|0); - HEAP32[$bk429$i>>2] = $add$ptr$i$161; - HEAP32[$fd416$i>>2] = $add$ptr$i$161; - $fd431$i = ((($add$ptr$i$161)) + 8|0); - HEAP32[$fd431$i>>2] = $91; - $bk432$i = ((($add$ptr$i$161)) + 12|0); - HEAP32[$bk432$i>>2] = $T$0$i$lcssa; - $parent433$i = ((($add$ptr$i$161)) + 24|0); - HEAP32[$parent433$i>>2] = 0; - break; - } else { - _abort(); - // unreachable; - } - } - } - } while(0); - $add$ptr441$i = ((($v$4$lcssa$i)) + 8|0); - $retval$0 = $add$ptr441$i; - return ($retval$0|0); - } else { - $nb$0 = $and145; - } - } - } - } - } - } while(0); - $94 = HEAP32[(184)>>2]|0; - $cmp156 = ($94>>>0)<($nb$0>>>0); - if (!($cmp156)) { - $sub160 = (($94) - ($nb$0))|0; - $95 = HEAP32[(196)>>2]|0; - $cmp162 = ($sub160>>>0)>(15); - if ($cmp162) { - $add$ptr166 = (($95) + ($nb$0)|0); - HEAP32[(196)>>2] = $add$ptr166; - HEAP32[(184)>>2] = $sub160; - $or167 = $sub160 | 1; - $head168 = ((($add$ptr166)) + 4|0); - HEAP32[$head168>>2] = $or167; - $add$ptr169 = (($add$ptr166) + ($sub160)|0); - HEAP32[$add$ptr169>>2] = $sub160; - $or172 = $nb$0 | 3; - $head173 = ((($95)) + 4|0); - HEAP32[$head173>>2] = $or172; - } else { - HEAP32[(184)>>2] = 0; - HEAP32[(196)>>2] = 0; - $or176 = $94 | 3; - $head177 = ((($95)) + 4|0); - HEAP32[$head177>>2] = $or176; - $add$ptr178 = (($95) + ($94)|0); - $head179 = ((($add$ptr178)) + 4|0); - $96 = HEAP32[$head179>>2]|0; - $or180 = $96 | 1; - HEAP32[$head179>>2] = $or180; - } - $add$ptr182 = ((($95)) + 8|0); - $retval$0 = $add$ptr182; - return ($retval$0|0); - } - $97 = HEAP32[(188)>>2]|0; - $cmp186 = ($97>>>0)>($nb$0>>>0); - if ($cmp186) { - $sub190 = (($97) - ($nb$0))|0; - HEAP32[(188)>>2] = $sub190; - $98 = HEAP32[(200)>>2]|0; - $add$ptr193 = (($98) + ($nb$0)|0); - HEAP32[(200)>>2] = $add$ptr193; - $or194 = $sub190 | 1; - $head195 = ((($add$ptr193)) + 4|0); - HEAP32[$head195>>2] = $or194; - $or197 = $nb$0 | 3; - $head198 = ((($98)) + 4|0); - HEAP32[$head198>>2] = $or197; - $add$ptr199 = ((($98)) + 8|0); - $retval$0 = $add$ptr199; - return ($retval$0|0); - } - $99 = HEAP32[162]|0; - $cmp$i$179 = ($99|0)==(0); - do { - if ($cmp$i$179) { - $call$i$i = (_sysconf(30)|0); - $sub$i$i = (($call$i$i) + -1)|0; - $and$i$i = $sub$i$i & $call$i$i; - $cmp1$i$i = ($and$i$i|0)==(0); - if ($cmp1$i$i) { - HEAP32[(656)>>2] = $call$i$i; - HEAP32[(652)>>2] = $call$i$i; - HEAP32[(660)>>2] = -1; - HEAP32[(664)>>2] = -1; - HEAP32[(668)>>2] = 0; - HEAP32[(620)>>2] = 0; - $call6$i$i = (_time((0|0))|0); - $xor$i$i = $call6$i$i & -16; - $and7$i$i = $xor$i$i ^ 1431655768; - HEAP32[162] = $and7$i$i; - break; - } else { - _abort(); - // unreachable; - } - } - } while(0); - $add$i$180 = (($nb$0) + 48)|0; - $100 = HEAP32[(656)>>2]|0; - $sub$i$181 = (($nb$0) + 47)|0; - $add9$i = (($100) + ($sub$i$181))|0; - $neg$i$182 = (0 - ($100))|0; - $and11$i = $add9$i & $neg$i$182; - $cmp12$i = ($and11$i>>>0)>($nb$0>>>0); - if (!($cmp12$i)) { - $retval$0 = 0; - return ($retval$0|0); - } - $101 = HEAP32[(616)>>2]|0; - $cmp15$i = ($101|0)==(0); - if (!($cmp15$i)) { - $102 = HEAP32[(608)>>2]|0; - $add17$i$183 = (($102) + ($and11$i))|0; - $cmp19$i = ($add17$i$183>>>0)<=($102>>>0); - $cmp21$i = ($add17$i$183>>>0)>($101>>>0); - $or$cond1$i$184 = $cmp19$i | $cmp21$i; - if ($or$cond1$i$184) { - $retval$0 = 0; - return ($retval$0|0); - } - } - $103 = HEAP32[(620)>>2]|0; - $and29$i = $103 & 4; - $tobool30$i = ($and29$i|0)==(0); - L257: do { - if ($tobool30$i) { - $104 = HEAP32[(200)>>2]|0; - $cmp32$i$185 = ($104|0)==(0|0); - L259: do { - if ($cmp32$i$185) { - label = 173; - } else { - $sp$0$i$i = (624); - while(1) { - $105 = HEAP32[$sp$0$i$i>>2]|0; - $cmp$i$9$i = ($105>>>0)>($104>>>0); - if (!($cmp$i$9$i)) { - $size$i$i = ((($sp$0$i$i)) + 4|0); - $106 = HEAP32[$size$i$i>>2]|0; - $add$ptr$i$i = (($105) + ($106)|0); - $cmp2$i$i = ($add$ptr$i$i>>>0)>($104>>>0); - if ($cmp2$i$i) { - $base$i$i$lcssa = $sp$0$i$i;$size$i$i$lcssa = $size$i$i; - break; - } - } - $next$i$i = ((($sp$0$i$i)) + 8|0); - $107 = HEAP32[$next$i$i>>2]|0; - $cmp3$i$i = ($107|0)==(0|0); - if ($cmp3$i$i) { - label = 173; - break L259; - } else { - $sp$0$i$i = $107; - } - } - $112 = HEAP32[(188)>>2]|0; - $add77$i = (($add9$i) - ($112))|0; - $and80$i = $add77$i & $neg$i$182; - $cmp81$i$191 = ($and80$i>>>0)<(2147483647); - if ($cmp81$i$191) { - $call83$i = (_sbrk(($and80$i|0))|0); - $113 = HEAP32[$base$i$i$lcssa>>2]|0; - $114 = HEAP32[$size$i$i$lcssa>>2]|0; - $add$ptr$i$193 = (($113) + ($114)|0); - $cmp85$i = ($call83$i|0)==($add$ptr$i$193|0); - if ($cmp85$i) { - $cmp89$i = ($call83$i|0)==((-1)|0); - if (!($cmp89$i)) { - $tbase$796$i = $call83$i;$tsize$795$i = $and80$i; - label = 193; - break L257; - } - } else { - $br$2$ph$i = $call83$i;$ssize$2$ph$i = $and80$i; - label = 183; - } - } - } - } while(0); - do { - if ((label|0) == 173) { - $call37$i = (_sbrk(0)|0); - $cmp38$i = ($call37$i|0)==((-1)|0); - if (!($cmp38$i)) { - $108 = $call37$i; - $109 = HEAP32[(652)>>2]|0; - $sub41$i = (($109) + -1)|0; - $and42$i = $sub41$i & $108; - $cmp43$i = ($and42$i|0)==(0); - if ($cmp43$i) { - $ssize$0$i = $and11$i; - } else { - $add46$i = (($sub41$i) + ($108))|0; - $neg48$i = (0 - ($109))|0; - $and49$i = $add46$i & $neg48$i; - $sub50$i = (($and11$i) - ($108))|0; - $add51$i = (($sub50$i) + ($and49$i))|0; - $ssize$0$i = $add51$i; - } - $110 = HEAP32[(608)>>2]|0; - $add54$i = (($110) + ($ssize$0$i))|0; - $cmp55$i$187 = ($ssize$0$i>>>0)>($nb$0>>>0); - $cmp57$i$188 = ($ssize$0$i>>>0)<(2147483647); - $or$cond$i$189 = $cmp55$i$187 & $cmp57$i$188; - if ($or$cond$i$189) { - $111 = HEAP32[(616)>>2]|0; - $cmp60$i = ($111|0)==(0); - if (!($cmp60$i)) { - $cmp63$i = ($add54$i>>>0)<=($110>>>0); - $cmp66$i$190 = ($add54$i>>>0)>($111>>>0); - $or$cond2$i = $cmp63$i | $cmp66$i$190; - if ($or$cond2$i) { - break; - } - } - $call68$i = (_sbrk(($ssize$0$i|0))|0); - $cmp69$i = ($call68$i|0)==($call37$i|0); - if ($cmp69$i) { - $tbase$796$i = $call37$i;$tsize$795$i = $ssize$0$i; - label = 193; - break L257; - } else { - $br$2$ph$i = $call68$i;$ssize$2$ph$i = $ssize$0$i; - label = 183; - } - } - } - } - } while(0); - L279: do { - if ((label|0) == 183) { - $sub112$i = (0 - ($ssize$2$ph$i))|0; - $cmp91$i = ($br$2$ph$i|0)!=((-1)|0); - $cmp93$i = ($ssize$2$ph$i>>>0)<(2147483647); - $or$cond5$i = $cmp93$i & $cmp91$i; - $cmp96$i = ($add$i$180>>>0)>($ssize$2$ph$i>>>0); - $or$cond3$i = $cmp96$i & $or$cond5$i; - do { - if ($or$cond3$i) { - $115 = HEAP32[(656)>>2]|0; - $sub99$i = (($sub$i$181) - ($ssize$2$ph$i))|0; - $add101$i = (($sub99$i) + ($115))|0; - $neg103$i = (0 - ($115))|0; - $and104$i = $add101$i & $neg103$i; - $cmp105$i = ($and104$i>>>0)<(2147483647); - if ($cmp105$i) { - $call107$i = (_sbrk(($and104$i|0))|0); - $cmp108$i = ($call107$i|0)==((-1)|0); - if ($cmp108$i) { - (_sbrk(($sub112$i|0))|0); - break L279; - } else { - $add110$i = (($and104$i) + ($ssize$2$ph$i))|0; - $ssize$5$i = $add110$i; - break; - } - } else { - $ssize$5$i = $ssize$2$ph$i; - } - } else { - $ssize$5$i = $ssize$2$ph$i; - } - } while(0); - $cmp118$i = ($br$2$ph$i|0)==((-1)|0); - if (!($cmp118$i)) { - $tbase$796$i = $br$2$ph$i;$tsize$795$i = $ssize$5$i; - label = 193; - break L257; - } - } - } while(0); - $116 = HEAP32[(620)>>2]|0; - $or$i$195 = $116 | 4; - HEAP32[(620)>>2] = $or$i$195; - label = 190; - } else { - label = 190; - } - } while(0); - if ((label|0) == 190) { - $cmp127$i = ($and11$i>>>0)<(2147483647); - if ($cmp127$i) { - $call131$i = (_sbrk(($and11$i|0))|0); - $call132$i = (_sbrk(0)|0); - $cmp133$i$196 = ($call131$i|0)!=((-1)|0); - $cmp135$i = ($call132$i|0)!=((-1)|0); - $or$cond4$i = $cmp133$i$196 & $cmp135$i; - $cmp137$i$197 = ($call131$i>>>0)<($call132$i>>>0); - $or$cond7$i = $cmp137$i$197 & $or$cond4$i; - if ($or$cond7$i) { - $sub$ptr$lhs$cast$i = $call132$i; - $sub$ptr$rhs$cast$i = $call131$i; - $sub$ptr$sub$i = (($sub$ptr$lhs$cast$i) - ($sub$ptr$rhs$cast$i))|0; - $add140$i = (($nb$0) + 40)|0; - $cmp141$not$i = ($sub$ptr$sub$i>>>0)>($add140$i>>>0); - if ($cmp141$not$i) { - $tbase$796$i = $call131$i;$tsize$795$i = $sub$ptr$sub$i; - label = 193; - } - } - } - } - if ((label|0) == 193) { - $117 = HEAP32[(608)>>2]|0; - $add150$i = (($117) + ($tsize$795$i))|0; - HEAP32[(608)>>2] = $add150$i; - $118 = HEAP32[(612)>>2]|0; - $cmp151$i = ($add150$i>>>0)>($118>>>0); - if ($cmp151$i) { - HEAP32[(612)>>2] = $add150$i; - } - $119 = HEAP32[(200)>>2]|0; - $cmp157$i = ($119|0)==(0|0); - do { - if ($cmp157$i) { - $120 = HEAP32[(192)>>2]|0; - $cmp159$i$199 = ($120|0)==(0|0); - $cmp162$i$200 = ($tbase$796$i>>>0)<($120>>>0); - $or$cond8$i = $cmp159$i$199 | $cmp162$i$200; - if ($or$cond8$i) { - HEAP32[(192)>>2] = $tbase$796$i; - } - HEAP32[(624)>>2] = $tbase$796$i; - HEAP32[(628)>>2] = $tsize$795$i; - HEAP32[(636)>>2] = 0; - $121 = HEAP32[162]|0; - HEAP32[(212)>>2] = $121; - HEAP32[(208)>>2] = -1; - $i$01$i$i = 0; - while(1) { - $shl$i$i = $i$01$i$i << 1; - $arrayidx$i$i = (216 + ($shl$i$i<<2)|0); - $122 = ((($arrayidx$i$i)) + 12|0); - HEAP32[$122>>2] = $arrayidx$i$i; - $123 = ((($arrayidx$i$i)) + 8|0); - HEAP32[$123>>2] = $arrayidx$i$i; - $inc$i$i = (($i$01$i$i) + 1)|0; - $exitcond$i$i = ($inc$i$i|0)==(32); - if ($exitcond$i$i) { - break; - } else { - $i$01$i$i = $inc$i$i; - } - } - $sub172$i = (($tsize$795$i) + -40)|0; - $add$ptr$i$11$i = ((($tbase$796$i)) + 8|0); - $124 = $add$ptr$i$11$i; - $and$i$12$i = $124 & 7; - $cmp$i$13$i = ($and$i$12$i|0)==(0); - $125 = (0 - ($124))|0; - $and3$i$i = $125 & 7; - $cond$i$i = $cmp$i$13$i ? 0 : $and3$i$i; - $add$ptr4$i$i = (($tbase$796$i) + ($cond$i$i)|0); - $sub5$i$i = (($sub172$i) - ($cond$i$i))|0; - HEAP32[(200)>>2] = $add$ptr4$i$i; - HEAP32[(188)>>2] = $sub5$i$i; - $or$i$i = $sub5$i$i | 1; - $head$i$i = ((($add$ptr4$i$i)) + 4|0); - HEAP32[$head$i$i>>2] = $or$i$i; - $add$ptr6$i$i = (($add$ptr4$i$i) + ($sub5$i$i)|0); - $head7$i$i = ((($add$ptr6$i$i)) + 4|0); - HEAP32[$head7$i$i>>2] = 40; - $126 = HEAP32[(664)>>2]|0; - HEAP32[(204)>>2] = $126; - } else { - $sp$0108$i = (624); - while(1) { - $127 = HEAP32[$sp$0108$i>>2]|0; - $size188$i = ((($sp$0108$i)) + 4|0); - $128 = HEAP32[$size188$i>>2]|0; - $add$ptr189$i = (($127) + ($128)|0); - $cmp190$i = ($tbase$796$i|0)==($add$ptr189$i|0); - if ($cmp190$i) { - $$lcssa = $127;$$lcssa290 = $128;$size188$i$lcssa = $size188$i;$sp$0108$i$lcssa = $sp$0108$i; - label = 203; - break; - } - $next$i = ((($sp$0108$i)) + 8|0); - $129 = HEAP32[$next$i>>2]|0; - $cmp186$i = ($129|0)==(0|0); - if ($cmp186$i) { - break; - } else { - $sp$0108$i = $129; - } - } - if ((label|0) == 203) { - $sflags193$i = ((($sp$0108$i$lcssa)) + 12|0); - $130 = HEAP32[$sflags193$i>>2]|0; - $and194$i$204 = $130 & 8; - $tobool195$i = ($and194$i$204|0)==(0); - if ($tobool195$i) { - $cmp203$i = ($119>>>0)>=($$lcssa>>>0); - $cmp209$i = ($119>>>0)<($tbase$796$i>>>0); - $or$cond98$i = $cmp209$i & $cmp203$i; - if ($or$cond98$i) { - $add212$i = (($$lcssa290) + ($tsize$795$i))|0; - HEAP32[$size188$i$lcssa>>2] = $add212$i; - $131 = HEAP32[(188)>>2]|0; - $add$ptr$i$21$i = ((($119)) + 8|0); - $132 = $add$ptr$i$21$i; - $and$i$22$i = $132 & 7; - $cmp$i$23$i = ($and$i$22$i|0)==(0); - $133 = (0 - ($132))|0; - $and3$i$24$i = $133 & 7; - $cond$i$25$i = $cmp$i$23$i ? 0 : $and3$i$24$i; - $add$ptr4$i$26$i = (($119) + ($cond$i$25$i)|0); - $add215$i = (($tsize$795$i) - ($cond$i$25$i))|0; - $sub5$i$27$i = (($add215$i) + ($131))|0; - HEAP32[(200)>>2] = $add$ptr4$i$26$i; - HEAP32[(188)>>2] = $sub5$i$27$i; - $or$i$28$i = $sub5$i$27$i | 1; - $head$i$29$i = ((($add$ptr4$i$26$i)) + 4|0); - HEAP32[$head$i$29$i>>2] = $or$i$28$i; - $add$ptr6$i$30$i = (($add$ptr4$i$26$i) + ($sub5$i$27$i)|0); - $head7$i$31$i = ((($add$ptr6$i$30$i)) + 4|0); - HEAP32[$head7$i$31$i>>2] = 40; - $134 = HEAP32[(664)>>2]|0; - HEAP32[(204)>>2] = $134; - break; - } - } - } - $135 = HEAP32[(192)>>2]|0; - $cmp218$i = ($tbase$796$i>>>0)<($135>>>0); - if ($cmp218$i) { - HEAP32[(192)>>2] = $tbase$796$i; - $150 = $tbase$796$i; - } else { - $150 = $135; - } - $add$ptr227$i = (($tbase$796$i) + ($tsize$795$i)|0); - $sp$1107$i = (624); - while(1) { - $136 = HEAP32[$sp$1107$i>>2]|0; - $cmp228$i = ($136|0)==($add$ptr227$i|0); - if ($cmp228$i) { - $base226$i$lcssa = $sp$1107$i;$sp$1107$i$lcssa = $sp$1107$i; - label = 211; - break; - } - $next231$i = ((($sp$1107$i)) + 8|0); - $137 = HEAP32[$next231$i>>2]|0; - $cmp224$i = ($137|0)==(0|0); - if ($cmp224$i) { - $sp$0$i$i$i = (624); - break; - } else { - $sp$1107$i = $137; - } - } - if ((label|0) == 211) { - $sflags235$i = ((($sp$1107$i$lcssa)) + 12|0); - $138 = HEAP32[$sflags235$i>>2]|0; - $and236$i = $138 & 8; - $tobool237$i = ($and236$i|0)==(0); - if ($tobool237$i) { - HEAP32[$base226$i$lcssa>>2] = $tbase$796$i; - $size245$i = ((($sp$1107$i$lcssa)) + 4|0); - $139 = HEAP32[$size245$i>>2]|0; - $add246$i = (($139) + ($tsize$795$i))|0; - HEAP32[$size245$i>>2] = $add246$i; - $add$ptr$i$32$i = ((($tbase$796$i)) + 8|0); - $140 = $add$ptr$i$32$i; - $and$i$33$i = $140 & 7; - $cmp$i$34$i = ($and$i$33$i|0)==(0); - $141 = (0 - ($140))|0; - $and3$i$35$i = $141 & 7; - $cond$i$36$i = $cmp$i$34$i ? 0 : $and3$i$35$i; - $add$ptr4$i$37$i = (($tbase$796$i) + ($cond$i$36$i)|0); - $add$ptr5$i$i = ((($add$ptr227$i)) + 8|0); - $142 = $add$ptr5$i$i; - $and6$i$38$i = $142 & 7; - $cmp7$i$i = ($and6$i$38$i|0)==(0); - $143 = (0 - ($142))|0; - $and13$i$i = $143 & 7; - $cond15$i$i = $cmp7$i$i ? 0 : $and13$i$i; - $add$ptr16$i$i = (($add$ptr227$i) + ($cond15$i$i)|0); - $sub$ptr$lhs$cast$i$39$i = $add$ptr16$i$i; - $sub$ptr$rhs$cast$i$40$i = $add$ptr4$i$37$i; - $sub$ptr$sub$i$41$i = (($sub$ptr$lhs$cast$i$39$i) - ($sub$ptr$rhs$cast$i$40$i))|0; - $add$ptr17$i$i = (($add$ptr4$i$37$i) + ($nb$0)|0); - $sub18$i$i = (($sub$ptr$sub$i$41$i) - ($nb$0))|0; - $or19$i$i = $nb$0 | 3; - $head$i$42$i = ((($add$ptr4$i$37$i)) + 4|0); - HEAP32[$head$i$42$i>>2] = $or19$i$i; - $cmp20$i$i = ($add$ptr16$i$i|0)==($119|0); - do { - if ($cmp20$i$i) { - $144 = HEAP32[(188)>>2]|0; - $add$i$i = (($144) + ($sub18$i$i))|0; - HEAP32[(188)>>2] = $add$i$i; - HEAP32[(200)>>2] = $add$ptr17$i$i; - $or22$i$i = $add$i$i | 1; - $head23$i$i = ((($add$ptr17$i$i)) + 4|0); - HEAP32[$head23$i$i>>2] = $or22$i$i; - } else { - $145 = HEAP32[(196)>>2]|0; - $cmp24$i$i = ($add$ptr16$i$i|0)==($145|0); - if ($cmp24$i$i) { - $146 = HEAP32[(184)>>2]|0; - $add26$i$i = (($146) + ($sub18$i$i))|0; - HEAP32[(184)>>2] = $add26$i$i; - HEAP32[(196)>>2] = $add$ptr17$i$i; - $or28$i$i = $add26$i$i | 1; - $head29$i$i = ((($add$ptr17$i$i)) + 4|0); - HEAP32[$head29$i$i>>2] = $or28$i$i; - $add$ptr30$i$i = (($add$ptr17$i$i) + ($add26$i$i)|0); - HEAP32[$add$ptr30$i$i>>2] = $add26$i$i; - break; - } - $head32$i$i = ((($add$ptr16$i$i)) + 4|0); - $147 = HEAP32[$head32$i$i>>2]|0; - $and33$i$i = $147 & 3; - $cmp34$i$i = ($and33$i$i|0)==(1); - if ($cmp34$i$i) { - $and37$i$i = $147 & -8; - $shr$i$45$i = $147 >>> 3; - $cmp38$i$i = ($147>>>0)<(256); - L331: do { - if ($cmp38$i$i) { - $fd$i$i = ((($add$ptr16$i$i)) + 8|0); - $148 = HEAP32[$fd$i$i>>2]|0; - $bk$i$46$i = ((($add$ptr16$i$i)) + 12|0); - $149 = HEAP32[$bk$i$46$i>>2]|0; - $shl$i$47$i = $shr$i$45$i << 1; - $arrayidx$i$48$i = (216 + ($shl$i$47$i<<2)|0); - $cmp41$i$i = ($148|0)==($arrayidx$i$48$i|0); - do { - if (!($cmp41$i$i)) { - $cmp42$i$i = ($148>>>0)<($150>>>0); - if ($cmp42$i$i) { - _abort(); - // unreachable; - } - $bk43$i$i = ((($148)) + 12|0); - $151 = HEAP32[$bk43$i$i>>2]|0; - $cmp44$i$i = ($151|0)==($add$ptr16$i$i|0); - if ($cmp44$i$i) { - break; - } - _abort(); - // unreachable; - } - } while(0); - $cmp46$i$49$i = ($149|0)==($148|0); - if ($cmp46$i$49$i) { - $shl48$i$i = 1 << $shr$i$45$i; - $neg$i$i = $shl48$i$i ^ -1; - $152 = HEAP32[44]|0; - $and49$i$i = $152 & $neg$i$i; - HEAP32[44] = $and49$i$i; - break; - } - $cmp54$i$i = ($149|0)==($arrayidx$i$48$i|0); - do { - if ($cmp54$i$i) { - $$pre5$i$i = ((($149)) + 8|0); - $fd68$pre$phi$i$iZ2D = $$pre5$i$i; - } else { - $cmp57$i$i = ($149>>>0)<($150>>>0); - if ($cmp57$i$i) { - _abort(); - // unreachable; - } - $fd59$i$i = ((($149)) + 8|0); - $153 = HEAP32[$fd59$i$i>>2]|0; - $cmp60$i$i = ($153|0)==($add$ptr16$i$i|0); - if ($cmp60$i$i) { - $fd68$pre$phi$i$iZ2D = $fd59$i$i; - break; - } - _abort(); - // unreachable; - } - } while(0); - $bk67$i$i = ((($148)) + 12|0); - HEAP32[$bk67$i$i>>2] = $149; - HEAP32[$fd68$pre$phi$i$iZ2D>>2] = $148; - } else { - $parent$i$51$i = ((($add$ptr16$i$i)) + 24|0); - $154 = HEAP32[$parent$i$51$i>>2]|0; - $bk74$i$i = ((($add$ptr16$i$i)) + 12|0); - $155 = HEAP32[$bk74$i$i>>2]|0; - $cmp75$i$i = ($155|0)==($add$ptr16$i$i|0); - do { - if ($cmp75$i$i) { - $child$i$i = ((($add$ptr16$i$i)) + 16|0); - $arrayidx96$i$i = ((($child$i$i)) + 4|0); - $159 = HEAP32[$arrayidx96$i$i>>2]|0; - $cmp97$i$i = ($159|0)==(0|0); - if ($cmp97$i$i) { - $160 = HEAP32[$child$i$i>>2]|0; - $cmp100$i$i = ($160|0)==(0|0); - if ($cmp100$i$i) { - $R$3$i$i = 0; - break; - } else { - $R$1$i$i = $160;$RP$1$i$i = $child$i$i; - } - } else { - $R$1$i$i = $159;$RP$1$i$i = $arrayidx96$i$i; - } - while(1) { - $arrayidx103$i$i = ((($R$1$i$i)) + 20|0); - $161 = HEAP32[$arrayidx103$i$i>>2]|0; - $cmp104$i$i = ($161|0)==(0|0); - if (!($cmp104$i$i)) { - $R$1$i$i = $161;$RP$1$i$i = $arrayidx103$i$i; - continue; - } - $arrayidx107$i$i = ((($R$1$i$i)) + 16|0); - $162 = HEAP32[$arrayidx107$i$i>>2]|0; - $cmp108$i$i = ($162|0)==(0|0); - if ($cmp108$i$i) { - $R$1$i$i$lcssa = $R$1$i$i;$RP$1$i$i$lcssa = $RP$1$i$i; - break; - } else { - $R$1$i$i = $162;$RP$1$i$i = $arrayidx107$i$i; - } - } - $cmp112$i$i = ($RP$1$i$i$lcssa>>>0)<($150>>>0); - if ($cmp112$i$i) { - _abort(); - // unreachable; - } else { - HEAP32[$RP$1$i$i$lcssa>>2] = 0; - $R$3$i$i = $R$1$i$i$lcssa; - break; - } - } else { - $fd78$i$i = ((($add$ptr16$i$i)) + 8|0); - $156 = HEAP32[$fd78$i$i>>2]|0; - $cmp81$i$i = ($156>>>0)<($150>>>0); - if ($cmp81$i$i) { - _abort(); - // unreachable; - } - $bk82$i$i = ((($156)) + 12|0); - $157 = HEAP32[$bk82$i$i>>2]|0; - $cmp83$i$i = ($157|0)==($add$ptr16$i$i|0); - if (!($cmp83$i$i)) { - _abort(); - // unreachable; - } - $fd85$i$i = ((($155)) + 8|0); - $158 = HEAP32[$fd85$i$i>>2]|0; - $cmp86$i$i = ($158|0)==($add$ptr16$i$i|0); - if ($cmp86$i$i) { - HEAP32[$bk82$i$i>>2] = $155; - HEAP32[$fd85$i$i>>2] = $156; - $R$3$i$i = $155; - break; - } else { - _abort(); - // unreachable; - } - } - } while(0); - $cmp120$i$53$i = ($154|0)==(0|0); - if ($cmp120$i$53$i) { - break; - } - $index$i$54$i = ((($add$ptr16$i$i)) + 28|0); - $163 = HEAP32[$index$i$54$i>>2]|0; - $arrayidx123$i$i = (480 + ($163<<2)|0); - $164 = HEAP32[$arrayidx123$i$i>>2]|0; - $cmp124$i$i = ($add$ptr16$i$i|0)==($164|0); - do { - if ($cmp124$i$i) { - HEAP32[$arrayidx123$i$i>>2] = $R$3$i$i; - $cond2$i$i = ($R$3$i$i|0)==(0|0); - if (!($cond2$i$i)) { - break; - } - $shl131$i$i = 1 << $163; - $neg132$i$i = $shl131$i$i ^ -1; - $165 = HEAP32[(180)>>2]|0; - $and133$i$i = $165 & $neg132$i$i; - HEAP32[(180)>>2] = $and133$i$i; - break L331; - } else { - $166 = HEAP32[(192)>>2]|0; - $cmp137$i$i = ($154>>>0)<($166>>>0); - if ($cmp137$i$i) { - _abort(); - // unreachable; - } - $arrayidx143$i$i = ((($154)) + 16|0); - $167 = HEAP32[$arrayidx143$i$i>>2]|0; - $cmp144$i$i = ($167|0)==($add$ptr16$i$i|0); - if ($cmp144$i$i) { - HEAP32[$arrayidx143$i$i>>2] = $R$3$i$i; - } else { - $arrayidx151$i$i = ((($154)) + 20|0); - HEAP32[$arrayidx151$i$i>>2] = $R$3$i$i; - } - $cmp156$i$i = ($R$3$i$i|0)==(0|0); - if ($cmp156$i$i) { - break L331; - } - } - } while(0); - $168 = HEAP32[(192)>>2]|0; - $cmp160$i$i = ($R$3$i$i>>>0)<($168>>>0); - if ($cmp160$i$i) { - _abort(); - // unreachable; - } - $parent165$i$i = ((($R$3$i$i)) + 24|0); - HEAP32[$parent165$i$i>>2] = $154; - $child166$i$i = ((($add$ptr16$i$i)) + 16|0); - $169 = HEAP32[$child166$i$i>>2]|0; - $cmp168$i$i = ($169|0)==(0|0); - do { - if (!($cmp168$i$i)) { - $cmp172$i$i = ($169>>>0)<($168>>>0); - if ($cmp172$i$i) { - _abort(); - // unreachable; - } else { - $arrayidx178$i$i = ((($R$3$i$i)) + 16|0); - HEAP32[$arrayidx178$i$i>>2] = $169; - $parent179$i$i = ((($169)) + 24|0); - HEAP32[$parent179$i$i>>2] = $R$3$i$i; - break; - } - } - } while(0); - $arrayidx184$i$i = ((($child166$i$i)) + 4|0); - $170 = HEAP32[$arrayidx184$i$i>>2]|0; - $cmp185$i$i = ($170|0)==(0|0); - if ($cmp185$i$i) { - break; - } - $171 = HEAP32[(192)>>2]|0; - $cmp189$i$i = ($170>>>0)<($171>>>0); - if ($cmp189$i$i) { - _abort(); - // unreachable; - } else { - $arrayidx195$i$i = ((($R$3$i$i)) + 20|0); - HEAP32[$arrayidx195$i$i>>2] = $170; - $parent196$i$i = ((($170)) + 24|0); - HEAP32[$parent196$i$i>>2] = $R$3$i$i; - break; - } - } - } while(0); - $add$ptr205$i$i = (($add$ptr16$i$i) + ($and37$i$i)|0); - $add206$i$i = (($and37$i$i) + ($sub18$i$i))|0; - $oldfirst$0$i$i = $add$ptr205$i$i;$qsize$0$i$i = $add206$i$i; - } else { - $oldfirst$0$i$i = $add$ptr16$i$i;$qsize$0$i$i = $sub18$i$i; - } - $head208$i$i = ((($oldfirst$0$i$i)) + 4|0); - $172 = HEAP32[$head208$i$i>>2]|0; - $and209$i$i = $172 & -2; - HEAP32[$head208$i$i>>2] = $and209$i$i; - $or210$i$i = $qsize$0$i$i | 1; - $head211$i$i = ((($add$ptr17$i$i)) + 4|0); - HEAP32[$head211$i$i>>2] = $or210$i$i; - $add$ptr212$i$i = (($add$ptr17$i$i) + ($qsize$0$i$i)|0); - HEAP32[$add$ptr212$i$i>>2] = $qsize$0$i$i; - $shr214$i$i = $qsize$0$i$i >>> 3; - $cmp215$i$i = ($qsize$0$i$i>>>0)<(256); - if ($cmp215$i$i) { - $shl221$i$i = $shr214$i$i << 1; - $arrayidx223$i$i = (216 + ($shl221$i$i<<2)|0); - $173 = HEAP32[44]|0; - $shl226$i$i = 1 << $shr214$i$i; - $and227$i$i = $173 & $shl226$i$i; - $tobool228$i$i = ($and227$i$i|0)==(0); - do { - if ($tobool228$i$i) { - $or232$i$i = $173 | $shl226$i$i; - HEAP32[44] = $or232$i$i; - $$pre$i$56$i = ((($arrayidx223$i$i)) + 8|0); - $$pre$phi$i$57$iZ2D = $$pre$i$56$i;$F224$0$i$i = $arrayidx223$i$i; - } else { - $174 = ((($arrayidx223$i$i)) + 8|0); - $175 = HEAP32[$174>>2]|0; - $176 = HEAP32[(192)>>2]|0; - $cmp236$i$i = ($175>>>0)<($176>>>0); - if (!($cmp236$i$i)) { - $$pre$phi$i$57$iZ2D = $174;$F224$0$i$i = $175; - break; - } - _abort(); - // unreachable; - } - } while(0); - HEAP32[$$pre$phi$i$57$iZ2D>>2] = $add$ptr17$i$i; - $bk246$i$i = ((($F224$0$i$i)) + 12|0); - HEAP32[$bk246$i$i>>2] = $add$ptr17$i$i; - $fd247$i$i = ((($add$ptr17$i$i)) + 8|0); - HEAP32[$fd247$i$i>>2] = $F224$0$i$i; - $bk248$i$i = ((($add$ptr17$i$i)) + 12|0); - HEAP32[$bk248$i$i>>2] = $arrayidx223$i$i; - break; - } - $shr253$i$i = $qsize$0$i$i >>> 8; - $cmp254$i$i = ($shr253$i$i|0)==(0); - do { - if ($cmp254$i$i) { - $I252$0$i$i = 0; - } else { - $cmp258$i$i = ($qsize$0$i$i>>>0)>(16777215); - if ($cmp258$i$i) { - $I252$0$i$i = 31; - break; - } - $sub262$i$i = (($shr253$i$i) + 1048320)|0; - $shr263$i$i = $sub262$i$i >>> 16; - $and264$i$i = $shr263$i$i & 8; - $shl265$i$i = $shr253$i$i << $and264$i$i; - $sub266$i$i = (($shl265$i$i) + 520192)|0; - $shr267$i$i = $sub266$i$i >>> 16; - $and268$i$i = $shr267$i$i & 4; - $add269$i$i = $and268$i$i | $and264$i$i; - $shl270$i$i = $shl265$i$i << $and268$i$i; - $sub271$i$i = (($shl270$i$i) + 245760)|0; - $shr272$i$i = $sub271$i$i >>> 16; - $and273$i$i = $shr272$i$i & 2; - $add274$i$i = $add269$i$i | $and273$i$i; - $sub275$i$i = (14 - ($add274$i$i))|0; - $shl276$i$i = $shl270$i$i << $and273$i$i; - $shr277$i$i = $shl276$i$i >>> 15; - $add278$i$i = (($sub275$i$i) + ($shr277$i$i))|0; - $shl279$i$i = $add278$i$i << 1; - $add280$i$i = (($add278$i$i) + 7)|0; - $shr281$i$i = $qsize$0$i$i >>> $add280$i$i; - $and282$i$i = $shr281$i$i & 1; - $add283$i$i = $and282$i$i | $shl279$i$i; - $I252$0$i$i = $add283$i$i; - } - } while(0); - $arrayidx287$i$i = (480 + ($I252$0$i$i<<2)|0); - $index288$i$i = ((($add$ptr17$i$i)) + 28|0); - HEAP32[$index288$i$i>>2] = $I252$0$i$i; - $child289$i$i = ((($add$ptr17$i$i)) + 16|0); - $arrayidx290$i$i = ((($child289$i$i)) + 4|0); - HEAP32[$arrayidx290$i$i>>2] = 0; - HEAP32[$child289$i$i>>2] = 0; - $177 = HEAP32[(180)>>2]|0; - $shl294$i$i = 1 << $I252$0$i$i; - $and295$i$i = $177 & $shl294$i$i; - $tobool296$i$i = ($and295$i$i|0)==(0); - if ($tobool296$i$i) { - $or300$i$i = $177 | $shl294$i$i; - HEAP32[(180)>>2] = $or300$i$i; - HEAP32[$arrayidx287$i$i>>2] = $add$ptr17$i$i; - $parent301$i$i = ((($add$ptr17$i$i)) + 24|0); - HEAP32[$parent301$i$i>>2] = $arrayidx287$i$i; - $bk302$i$i = ((($add$ptr17$i$i)) + 12|0); - HEAP32[$bk302$i$i>>2] = $add$ptr17$i$i; - $fd303$i$i = ((($add$ptr17$i$i)) + 8|0); - HEAP32[$fd303$i$i>>2] = $add$ptr17$i$i; - break; - } - $178 = HEAP32[$arrayidx287$i$i>>2]|0; - $cmp306$i$i = ($I252$0$i$i|0)==(31); - $shr310$i$i = $I252$0$i$i >>> 1; - $sub313$i$i = (25 - ($shr310$i$i))|0; - $cond315$i$i = $cmp306$i$i ? 0 : $sub313$i$i; - $shl316$i$i = $qsize$0$i$i << $cond315$i$i; - $K305$0$i$i = $shl316$i$i;$T$0$i$58$i = $178; - while(1) { - $head317$i$i = ((($T$0$i$58$i)) + 4|0); - $179 = HEAP32[$head317$i$i>>2]|0; - $and318$i$i = $179 & -8; - $cmp319$i$i = ($and318$i$i|0)==($qsize$0$i$i|0); - if ($cmp319$i$i) { - $T$0$i$58$i$lcssa = $T$0$i$58$i; - label = 281; - break; - } - $shr322$i$i = $K305$0$i$i >>> 31; - $arrayidx325$i$i = (((($T$0$i$58$i)) + 16|0) + ($shr322$i$i<<2)|0); - $shl326$i$i = $K305$0$i$i << 1; - $180 = HEAP32[$arrayidx325$i$i>>2]|0; - $cmp327$i$i = ($180|0)==(0|0); - if ($cmp327$i$i) { - $T$0$i$58$i$lcssa283 = $T$0$i$58$i;$arrayidx325$i$i$lcssa = $arrayidx325$i$i; - label = 278; - break; - } else { - $K305$0$i$i = $shl326$i$i;$T$0$i$58$i = $180; - } - } - if ((label|0) == 278) { - $181 = HEAP32[(192)>>2]|0; - $cmp332$i$i = ($arrayidx325$i$i$lcssa>>>0)<($181>>>0); - if ($cmp332$i$i) { - _abort(); - // unreachable; - } else { - HEAP32[$arrayidx325$i$i$lcssa>>2] = $add$ptr17$i$i; - $parent337$i$i = ((($add$ptr17$i$i)) + 24|0); - HEAP32[$parent337$i$i>>2] = $T$0$i$58$i$lcssa283; - $bk338$i$i = ((($add$ptr17$i$i)) + 12|0); - HEAP32[$bk338$i$i>>2] = $add$ptr17$i$i; - $fd339$i$i = ((($add$ptr17$i$i)) + 8|0); - HEAP32[$fd339$i$i>>2] = $add$ptr17$i$i; - break; - } - } - else if ((label|0) == 281) { - $fd344$i$i = ((($T$0$i$58$i$lcssa)) + 8|0); - $182 = HEAP32[$fd344$i$i>>2]|0; - $183 = HEAP32[(192)>>2]|0; - $cmp350$i$i = ($182>>>0)>=($183>>>0); - $not$cmp346$i$i = ($T$0$i$58$i$lcssa>>>0)>=($183>>>0); - $184 = $cmp350$i$i & $not$cmp346$i$i; - if ($184) { - $bk357$i$i = ((($182)) + 12|0); - HEAP32[$bk357$i$i>>2] = $add$ptr17$i$i; - HEAP32[$fd344$i$i>>2] = $add$ptr17$i$i; - $fd359$i$i = ((($add$ptr17$i$i)) + 8|0); - HEAP32[$fd359$i$i>>2] = $182; - $bk360$i$i = ((($add$ptr17$i$i)) + 12|0); - HEAP32[$bk360$i$i>>2] = $T$0$i$58$i$lcssa; - $parent361$i$i = ((($add$ptr17$i$i)) + 24|0); - HEAP32[$parent361$i$i>>2] = 0; - break; - } else { - _abort(); - // unreachable; - } - } - } - } while(0); - $add$ptr369$i$i = ((($add$ptr4$i$37$i)) + 8|0); - $retval$0 = $add$ptr369$i$i; - return ($retval$0|0); - } else { - $sp$0$i$i$i = (624); - } - } - while(1) { - $185 = HEAP32[$sp$0$i$i$i>>2]|0; - $cmp$i$i$i = ($185>>>0)>($119>>>0); - if (!($cmp$i$i$i)) { - $size$i$i$i = ((($sp$0$i$i$i)) + 4|0); - $186 = HEAP32[$size$i$i$i>>2]|0; - $add$ptr$i$i$i = (($185) + ($186)|0); - $cmp2$i$i$i = ($add$ptr$i$i$i>>>0)>($119>>>0); - if ($cmp2$i$i$i) { - $add$ptr$i$i$i$lcssa = $add$ptr$i$i$i; - break; - } - } - $next$i$i$i = ((($sp$0$i$i$i)) + 8|0); - $187 = HEAP32[$next$i$i$i>>2]|0; - $sp$0$i$i$i = $187; - } - $add$ptr2$i$i = ((($add$ptr$i$i$i$lcssa)) + -47|0); - $add$ptr3$i$i = ((($add$ptr2$i$i)) + 8|0); - $188 = $add$ptr3$i$i; - $and$i$14$i = $188 & 7; - $cmp$i$15$i = ($and$i$14$i|0)==(0); - $189 = (0 - ($188))|0; - $and6$i$i = $189 & 7; - $cond$i$16$i = $cmp$i$15$i ? 0 : $and6$i$i; - $add$ptr7$i$i = (($add$ptr2$i$i) + ($cond$i$16$i)|0); - $add$ptr8$i122$i = ((($119)) + 16|0); - $cmp9$i$i = ($add$ptr7$i$i>>>0)<($add$ptr8$i122$i>>>0); - $cond13$i$i = $cmp9$i$i ? $119 : $add$ptr7$i$i; - $add$ptr14$i$i = ((($cond13$i$i)) + 8|0); - $add$ptr15$i$i = ((($cond13$i$i)) + 24|0); - $sub16$i$i = (($tsize$795$i) + -40)|0; - $add$ptr$i$1$i$i = ((($tbase$796$i)) + 8|0); - $190 = $add$ptr$i$1$i$i; - $and$i$i$i = $190 & 7; - $cmp$i$2$i$i = ($and$i$i$i|0)==(0); - $191 = (0 - ($190))|0; - $and3$i$i$i = $191 & 7; - $cond$i$i$i = $cmp$i$2$i$i ? 0 : $and3$i$i$i; - $add$ptr4$i$i$i = (($tbase$796$i) + ($cond$i$i$i)|0); - $sub5$i$i$i = (($sub16$i$i) - ($cond$i$i$i))|0; - HEAP32[(200)>>2] = $add$ptr4$i$i$i; - HEAP32[(188)>>2] = $sub5$i$i$i; - $or$i$i$i = $sub5$i$i$i | 1; - $head$i$i$i = ((($add$ptr4$i$i$i)) + 4|0); - HEAP32[$head$i$i$i>>2] = $or$i$i$i; - $add$ptr6$i$i$i = (($add$ptr4$i$i$i) + ($sub5$i$i$i)|0); - $head7$i$i$i = ((($add$ptr6$i$i$i)) + 4|0); - HEAP32[$head7$i$i$i>>2] = 40; - $192 = HEAP32[(664)>>2]|0; - HEAP32[(204)>>2] = $192; - $head$i$17$i = ((($cond13$i$i)) + 4|0); - HEAP32[$head$i$17$i>>2] = 27; - ;HEAP32[$add$ptr14$i$i>>2]=HEAP32[(624)>>2]|0;HEAP32[$add$ptr14$i$i+4>>2]=HEAP32[(624)+4>>2]|0;HEAP32[$add$ptr14$i$i+8>>2]=HEAP32[(624)+8>>2]|0;HEAP32[$add$ptr14$i$i+12>>2]=HEAP32[(624)+12>>2]|0; - HEAP32[(624)>>2] = $tbase$796$i; - HEAP32[(628)>>2] = $tsize$795$i; - HEAP32[(636)>>2] = 0; - HEAP32[(632)>>2] = $add$ptr14$i$i; - $p$0$i$i = $add$ptr15$i$i; - while(1) { - $add$ptr24$i$i = ((($p$0$i$i)) + 4|0); - HEAP32[$add$ptr24$i$i>>2] = 7; - $193 = ((($add$ptr24$i$i)) + 4|0); - $cmp27$i$i = ($193>>>0)<($add$ptr$i$i$i$lcssa>>>0); - if ($cmp27$i$i) { - $p$0$i$i = $add$ptr24$i$i; - } else { - break; - } - } - $cmp28$i$i = ($cond13$i$i|0)==($119|0); - if (!($cmp28$i$i)) { - $sub$ptr$lhs$cast$i$i = $cond13$i$i; - $sub$ptr$rhs$cast$i$i = $119; - $sub$ptr$sub$i$i = (($sub$ptr$lhs$cast$i$i) - ($sub$ptr$rhs$cast$i$i))|0; - $194 = HEAP32[$head$i$17$i>>2]|0; - $and32$i$i = $194 & -2; - HEAP32[$head$i$17$i>>2] = $and32$i$i; - $or33$i$i = $sub$ptr$sub$i$i | 1; - $head34$i$i = ((($119)) + 4|0); - HEAP32[$head34$i$i>>2] = $or33$i$i; - HEAP32[$cond13$i$i>>2] = $sub$ptr$sub$i$i; - $shr$i$i = $sub$ptr$sub$i$i >>> 3; - $cmp36$i$i = ($sub$ptr$sub$i$i>>>0)<(256); - if ($cmp36$i$i) { - $shl$i$19$i = $shr$i$i << 1; - $arrayidx$i$20$i = (216 + ($shl$i$19$i<<2)|0); - $195 = HEAP32[44]|0; - $shl39$i$i = 1 << $shr$i$i; - $and40$i$i = $195 & $shl39$i$i; - $tobool$i$i = ($and40$i$i|0)==(0); - if ($tobool$i$i) { - $or44$i$i = $195 | $shl39$i$i; - HEAP32[44] = $or44$i$i; - $$pre$i$i = ((($arrayidx$i$20$i)) + 8|0); - $$pre$phi$i$iZ2D = $$pre$i$i;$F$0$i$i = $arrayidx$i$20$i; - } else { - $196 = ((($arrayidx$i$20$i)) + 8|0); - $197 = HEAP32[$196>>2]|0; - $198 = HEAP32[(192)>>2]|0; - $cmp46$i$i = ($197>>>0)<($198>>>0); - if ($cmp46$i$i) { - _abort(); - // unreachable; - } else { - $$pre$phi$i$iZ2D = $196;$F$0$i$i = $197; - } - } - HEAP32[$$pre$phi$i$iZ2D>>2] = $119; - $bk$i$i = ((($F$0$i$i)) + 12|0); - HEAP32[$bk$i$i>>2] = $119; - $fd54$i$i = ((($119)) + 8|0); - HEAP32[$fd54$i$i>>2] = $F$0$i$i; - $bk55$i$i = ((($119)) + 12|0); - HEAP32[$bk55$i$i>>2] = $arrayidx$i$20$i; - break; - } - $shr58$i$i = $sub$ptr$sub$i$i >>> 8; - $cmp59$i$i = ($shr58$i$i|0)==(0); - if ($cmp59$i$i) { - $I57$0$i$i = 0; - } else { - $cmp63$i$i = ($sub$ptr$sub$i$i>>>0)>(16777215); - if ($cmp63$i$i) { - $I57$0$i$i = 31; - } else { - $sub67$i$i = (($shr58$i$i) + 1048320)|0; - $shr68$i$i = $sub67$i$i >>> 16; - $and69$i$i = $shr68$i$i & 8; - $shl70$i$i = $shr58$i$i << $and69$i$i; - $sub71$i$i = (($shl70$i$i) + 520192)|0; - $shr72$i$i = $sub71$i$i >>> 16; - $and73$i$i = $shr72$i$i & 4; - $add74$i$i = $and73$i$i | $and69$i$i; - $shl75$i$i = $shl70$i$i << $and73$i$i; - $sub76$i$i = (($shl75$i$i) + 245760)|0; - $shr77$i$i = $sub76$i$i >>> 16; - $and78$i$i = $shr77$i$i & 2; - $add79$i$i = $add74$i$i | $and78$i$i; - $sub80$i$i = (14 - ($add79$i$i))|0; - $shl81$i$i = $shl75$i$i << $and78$i$i; - $shr82$i$i = $shl81$i$i >>> 15; - $add83$i$i = (($sub80$i$i) + ($shr82$i$i))|0; - $shl84$i$i = $add83$i$i << 1; - $add85$i$i = (($add83$i$i) + 7)|0; - $shr86$i$i = $sub$ptr$sub$i$i >>> $add85$i$i; - $and87$i$i = $shr86$i$i & 1; - $add88$i$i = $and87$i$i | $shl84$i$i; - $I57$0$i$i = $add88$i$i; - } - } - $arrayidx91$i$i = (480 + ($I57$0$i$i<<2)|0); - $index$i$i = ((($119)) + 28|0); - HEAP32[$index$i$i>>2] = $I57$0$i$i; - $arrayidx92$i$i = ((($119)) + 20|0); - HEAP32[$arrayidx92$i$i>>2] = 0; - HEAP32[$add$ptr8$i122$i>>2] = 0; - $199 = HEAP32[(180)>>2]|0; - $shl95$i$i = 1 << $I57$0$i$i; - $and96$i$i = $199 & $shl95$i$i; - $tobool97$i$i = ($and96$i$i|0)==(0); - if ($tobool97$i$i) { - $or101$i$i = $199 | $shl95$i$i; - HEAP32[(180)>>2] = $or101$i$i; - HEAP32[$arrayidx91$i$i>>2] = $119; - $parent$i$i = ((($119)) + 24|0); - HEAP32[$parent$i$i>>2] = $arrayidx91$i$i; - $bk102$i$i = ((($119)) + 12|0); - HEAP32[$bk102$i$i>>2] = $119; - $fd103$i$i = ((($119)) + 8|0); - HEAP32[$fd103$i$i>>2] = $119; - break; - } - $200 = HEAP32[$arrayidx91$i$i>>2]|0; - $cmp106$i$i = ($I57$0$i$i|0)==(31); - $shr110$i$i = $I57$0$i$i >>> 1; - $sub113$i$i = (25 - ($shr110$i$i))|0; - $cond115$i$i = $cmp106$i$i ? 0 : $sub113$i$i; - $shl116$i$i = $sub$ptr$sub$i$i << $cond115$i$i; - $K105$0$i$i = $shl116$i$i;$T$0$i$i = $200; - while(1) { - $head118$i$i = ((($T$0$i$i)) + 4|0); - $201 = HEAP32[$head118$i$i>>2]|0; - $and119$i$i = $201 & -8; - $cmp120$i$i = ($and119$i$i|0)==($sub$ptr$sub$i$i|0); - if ($cmp120$i$i) { - $T$0$i$i$lcssa = $T$0$i$i; - label = 307; - break; - } - $shr123$i$i = $K105$0$i$i >>> 31; - $arrayidx126$i$i = (((($T$0$i$i)) + 16|0) + ($shr123$i$i<<2)|0); - $shl127$i$i = $K105$0$i$i << 1; - $202 = HEAP32[$arrayidx126$i$i>>2]|0; - $cmp128$i$i = ($202|0)==(0|0); - if ($cmp128$i$i) { - $T$0$i$i$lcssa284 = $T$0$i$i;$arrayidx126$i$i$lcssa = $arrayidx126$i$i; - label = 304; - break; - } else { - $K105$0$i$i = $shl127$i$i;$T$0$i$i = $202; - } - } - if ((label|0) == 304) { - $203 = HEAP32[(192)>>2]|0; - $cmp133$i$i = ($arrayidx126$i$i$lcssa>>>0)<($203>>>0); - if ($cmp133$i$i) { - _abort(); - // unreachable; - } else { - HEAP32[$arrayidx126$i$i$lcssa>>2] = $119; - $parent138$i$i = ((($119)) + 24|0); - HEAP32[$parent138$i$i>>2] = $T$0$i$i$lcssa284; - $bk139$i$i = ((($119)) + 12|0); - HEAP32[$bk139$i$i>>2] = $119; - $fd140$i$i = ((($119)) + 8|0); - HEAP32[$fd140$i$i>>2] = $119; - break; - } - } - else if ((label|0) == 307) { - $fd148$i$i = ((($T$0$i$i$lcssa)) + 8|0); - $204 = HEAP32[$fd148$i$i>>2]|0; - $205 = HEAP32[(192)>>2]|0; - $cmp153$i$i = ($204>>>0)>=($205>>>0); - $not$cmp150$i$i = ($T$0$i$i$lcssa>>>0)>=($205>>>0); - $206 = $cmp153$i$i & $not$cmp150$i$i; - if ($206) { - $bk158$i$i = ((($204)) + 12|0); - HEAP32[$bk158$i$i>>2] = $119; - HEAP32[$fd148$i$i>>2] = $119; - $fd160$i$i = ((($119)) + 8|0); - HEAP32[$fd160$i$i>>2] = $204; - $bk161$i$i = ((($119)) + 12|0); - HEAP32[$bk161$i$i>>2] = $T$0$i$i$lcssa; - $parent162$i$i = ((($119)) + 24|0); - HEAP32[$parent162$i$i>>2] = 0; - break; - } else { - _abort(); - // unreachable; - } - } - } - } - } while(0); - $207 = HEAP32[(188)>>2]|0; - $cmp257$i = ($207>>>0)>($nb$0>>>0); - if ($cmp257$i) { - $sub260$i = (($207) - ($nb$0))|0; - HEAP32[(188)>>2] = $sub260$i; - $208 = HEAP32[(200)>>2]|0; - $add$ptr262$i = (($208) + ($nb$0)|0); - HEAP32[(200)>>2] = $add$ptr262$i; - $or264$i = $sub260$i | 1; - $head265$i = ((($add$ptr262$i)) + 4|0); - HEAP32[$head265$i>>2] = $or264$i; - $or267$i = $nb$0 | 3; - $head268$i = ((($208)) + 4|0); - HEAP32[$head268$i>>2] = $or267$i; - $add$ptr269$i = ((($208)) + 8|0); - $retval$0 = $add$ptr269$i; - return ($retval$0|0); - } - } - $call275$i = (___errno_location()|0); - HEAP32[$call275$i>>2] = 12; - $retval$0 = 0; - return ($retval$0|0); -} -function _free($mem) { - $mem = $mem|0; - var $$pre = 0, $$pre$phiZ2D = 0, $$pre312 = 0, $$pre313 = 0, $0 = 0, $1 = 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; - var $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, $39 = 0, $4 = 0, $40 = 0; - var $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, $57 = 0, $58 = 0, $59 = 0; - var $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, $8 = 0, $9 = 0, $F510$0 = 0; - var $I534$0 = 0, $K583$0 = 0, $R$1 = 0, $R$1$lcssa = 0, $R$3 = 0, $R332$1 = 0, $R332$1$lcssa = 0, $R332$3 = 0, $RP$1 = 0, $RP$1$lcssa = 0, $RP360$1 = 0, $RP360$1$lcssa = 0, $T$0 = 0, $T$0$lcssa = 0, $T$0$lcssa319 = 0, $add$ptr = 0, $add$ptr16 = 0, $add$ptr217 = 0, $add$ptr261 = 0, $add$ptr482 = 0; - var $add$ptr498 = 0, $add$ptr6 = 0, $add17 = 0, $add246 = 0, $add258 = 0, $add267 = 0, $add550 = 0, $add555 = 0, $add559 = 0, $add561 = 0, $add564 = 0, $and = 0, $and140 = 0, $and210 = 0, $and215 = 0, $and232 = 0, $and240 = 0, $and266 = 0, $and301 = 0, $and410 = 0; - var $and46 = 0, $and495 = 0, $and5 = 0, $and512 = 0, $and545 = 0, $and549 = 0, $and554 = 0, $and563 = 0, $and574 = 0, $and592 = 0, $and8 = 0, $arrayidx = 0, $arrayidx108 = 0, $arrayidx113 = 0, $arrayidx130 = 0, $arrayidx149 = 0, $arrayidx157 = 0, $arrayidx182 = 0, $arrayidx188 = 0, $arrayidx198 = 0; - var $arrayidx279 = 0, $arrayidx362 = 0, $arrayidx374 = 0, $arrayidx379 = 0, $arrayidx400 = 0, $arrayidx419 = 0, $arrayidx427 = 0, $arrayidx454 = 0, $arrayidx460 = 0, $arrayidx470 = 0, $arrayidx509 = 0, $arrayidx567 = 0, $arrayidx570 = 0, $arrayidx599 = 0, $arrayidx599$lcssa = 0, $arrayidx99 = 0, $bk = 0, $bk275 = 0, $bk286 = 0, $bk321 = 0; - var $bk333 = 0, $bk34 = 0, $bk343 = 0, $bk529 = 0, $bk531 = 0, $bk580 = 0, $bk611 = 0, $bk631 = 0, $bk634 = 0, $bk66 = 0, $bk73 = 0, $bk82 = 0, $child = 0, $child171 = 0, $child361 = 0, $child443 = 0, $child569 = 0, $cmp = 0, $cmp$i = 0, $cmp1 = 0; - var $cmp100 = 0, $cmp104 = 0, $cmp109 = 0, $cmp114 = 0, $cmp118 = 0, $cmp127 = 0, $cmp13 = 0, $cmp131 = 0, $cmp143 = 0, $cmp150 = 0, $cmp162 = 0, $cmp165 = 0, $cmp173 = 0, $cmp176 = 0, $cmp18 = 0, $cmp189 = 0, $cmp192 = 0, $cmp2 = 0, $cmp211 = 0, $cmp22 = 0; - var $cmp228 = 0, $cmp243 = 0, $cmp249 = 0, $cmp25 = 0, $cmp255 = 0, $cmp269 = 0, $cmp280 = 0, $cmp283 = 0, $cmp287 = 0, $cmp29 = 0, $cmp296 = 0, $cmp305 = 0, $cmp308 = 0, $cmp31 = 0, $cmp312 = 0, $cmp334 = 0, $cmp340 = 0, $cmp344 = 0, $cmp348 = 0, $cmp35 = 0; - var $cmp363 = 0, $cmp368 = 0, $cmp375 = 0, $cmp380 = 0, $cmp386 = 0, $cmp395 = 0, $cmp401 = 0, $cmp413 = 0, $cmp42 = 0, $cmp420 = 0, $cmp432 = 0, $cmp435 = 0, $cmp445 = 0, $cmp448 = 0, $cmp461 = 0, $cmp464 = 0, $cmp484 = 0, $cmp50 = 0, $cmp502 = 0, $cmp519 = 0; - var $cmp53 = 0, $cmp536 = 0, $cmp540 = 0, $cmp57 = 0, $cmp584 = 0, $cmp593 = 0, $cmp601 = 0, $cmp605 = 0, $cmp624 = 0, $cmp640 = 0, $cmp74 = 0, $cmp80 = 0, $cmp83 = 0, $cmp87 = 0, $cond = 0, $cond291 = 0, $cond292 = 0, $dec = 0, $fd = 0, $fd273 = 0; - var $fd311 = 0, $fd322$pre$phiZ2D = 0, $fd338 = 0, $fd347 = 0, $fd530 = 0, $fd56 = 0, $fd581 = 0, $fd612 = 0, $fd620 = 0, $fd633 = 0, $fd67$pre$phiZ2D = 0, $fd78 = 0, $fd86 = 0, $head = 0, $head209 = 0, $head216 = 0, $head231 = 0, $head248 = 0, $head260 = 0, $head481 = 0; - var $head497 = 0, $head591 = 0, $idx$neg = 0, $index = 0, $index399 = 0, $index568 = 0, $neg = 0, $neg139 = 0, $neg300 = 0, $neg409 = 0, $next4$i = 0, $not$cmp621 = 0, $or = 0, $or247 = 0, $or259 = 0, $or480 = 0, $or496 = 0, $or516 = 0, $or578 = 0, $p$1 = 0; - var $parent = 0, $parent170 = 0, $parent183 = 0, $parent199 = 0, $parent331 = 0, $parent442 = 0, $parent455 = 0, $parent471 = 0, $parent579 = 0, $parent610 = 0, $parent635 = 0, $psize$1 = 0, $psize$2 = 0, $shl = 0, $shl138 = 0, $shl278 = 0, $shl299 = 0, $shl408 = 0, $shl45 = 0, $shl508 = 0; - var $shl511 = 0, $shl546 = 0, $shl551 = 0, $shl557 = 0, $shl560 = 0, $shl573 = 0, $shl590 = 0, $shl600 = 0, $shr = 0, $shr268 = 0, $shr501 = 0, $shr535 = 0, $shr544 = 0, $shr548 = 0, $shr553 = 0, $shr558 = 0, $shr562 = 0, $shr586 = 0, $shr596 = 0, $sp$0$i = 0; - var $sp$0$in$i = 0, $sub = 0, $sub547 = 0, $sub552 = 0, $sub556 = 0, $sub589 = 0, $tobool233 = 0, $tobool241 = 0, $tobool513 = 0, $tobool575 = 0, $tobool9 = 0, label = 0, sp = 0; - sp = STACKTOP; - $cmp = ($mem|0)==(0|0); - if ($cmp) { - return; - } - $add$ptr = ((($mem)) + -8|0); - $0 = HEAP32[(192)>>2]|0; - $cmp1 = ($add$ptr>>>0)<($0>>>0); - if ($cmp1) { - _abort(); - // unreachable; - } - $head = ((($mem)) + -4|0); - $1 = HEAP32[$head>>2]|0; - $and = $1 & 3; - $cmp2 = ($and|0)==(1); - if ($cmp2) { - _abort(); - // unreachable; - } - $and5 = $1 & -8; - $add$ptr6 = (($add$ptr) + ($and5)|0); - $and8 = $1 & 1; - $tobool9 = ($and8|0)==(0); - do { - if ($tobool9) { - $2 = HEAP32[$add$ptr>>2]|0; - $cmp13 = ($and|0)==(0); - if ($cmp13) { - return; - } - $idx$neg = (0 - ($2))|0; - $add$ptr16 = (($add$ptr) + ($idx$neg)|0); - $add17 = (($2) + ($and5))|0; - $cmp18 = ($add$ptr16>>>0)<($0>>>0); - if ($cmp18) { - _abort(); - // unreachable; - } - $3 = HEAP32[(196)>>2]|0; - $cmp22 = ($add$ptr16|0)==($3|0); - if ($cmp22) { - $head209 = ((($add$ptr6)) + 4|0); - $27 = HEAP32[$head209>>2]|0; - $and210 = $27 & 3; - $cmp211 = ($and210|0)==(3); - if (!($cmp211)) { - $p$1 = $add$ptr16;$psize$1 = $add17; - break; - } - HEAP32[(184)>>2] = $add17; - $and215 = $27 & -2; - HEAP32[$head209>>2] = $and215; - $or = $add17 | 1; - $head216 = ((($add$ptr16)) + 4|0); - HEAP32[$head216>>2] = $or; - $add$ptr217 = (($add$ptr16) + ($add17)|0); - HEAP32[$add$ptr217>>2] = $add17; - return; - } - $shr = $2 >>> 3; - $cmp25 = ($2>>>0)<(256); - if ($cmp25) { - $fd = ((($add$ptr16)) + 8|0); - $4 = HEAP32[$fd>>2]|0; - $bk = ((($add$ptr16)) + 12|0); - $5 = HEAP32[$bk>>2]|0; - $shl = $shr << 1; - $arrayidx = (216 + ($shl<<2)|0); - $cmp29 = ($4|0)==($arrayidx|0); - if (!($cmp29)) { - $cmp31 = ($4>>>0)<($0>>>0); - if ($cmp31) { - _abort(); - // unreachable; - } - $bk34 = ((($4)) + 12|0); - $6 = HEAP32[$bk34>>2]|0; - $cmp35 = ($6|0)==($add$ptr16|0); - if (!($cmp35)) { - _abort(); - // unreachable; - } - } - $cmp42 = ($5|0)==($4|0); - if ($cmp42) { - $shl45 = 1 << $shr; - $neg = $shl45 ^ -1; - $7 = HEAP32[44]|0; - $and46 = $7 & $neg; - HEAP32[44] = $and46; - $p$1 = $add$ptr16;$psize$1 = $add17; - break; - } - $cmp50 = ($5|0)==($arrayidx|0); - if ($cmp50) { - $$pre313 = ((($5)) + 8|0); - $fd67$pre$phiZ2D = $$pre313; - } else { - $cmp53 = ($5>>>0)<($0>>>0); - if ($cmp53) { - _abort(); - // unreachable; - } - $fd56 = ((($5)) + 8|0); - $8 = HEAP32[$fd56>>2]|0; - $cmp57 = ($8|0)==($add$ptr16|0); - if ($cmp57) { - $fd67$pre$phiZ2D = $fd56; - } else { - _abort(); - // unreachable; - } - } - $bk66 = ((($4)) + 12|0); - HEAP32[$bk66>>2] = $5; - HEAP32[$fd67$pre$phiZ2D>>2] = $4; - $p$1 = $add$ptr16;$psize$1 = $add17; - break; - } - $parent = ((($add$ptr16)) + 24|0); - $9 = HEAP32[$parent>>2]|0; - $bk73 = ((($add$ptr16)) + 12|0); - $10 = HEAP32[$bk73>>2]|0; - $cmp74 = ($10|0)==($add$ptr16|0); - do { - if ($cmp74) { - $child = ((($add$ptr16)) + 16|0); - $arrayidx99 = ((($child)) + 4|0); - $14 = HEAP32[$arrayidx99>>2]|0; - $cmp100 = ($14|0)==(0|0); - if ($cmp100) { - $15 = HEAP32[$child>>2]|0; - $cmp104 = ($15|0)==(0|0); - if ($cmp104) { - $R$3 = 0; - break; - } else { - $R$1 = $15;$RP$1 = $child; - } - } else { - $R$1 = $14;$RP$1 = $arrayidx99; - } - while(1) { - $arrayidx108 = ((($R$1)) + 20|0); - $16 = HEAP32[$arrayidx108>>2]|0; - $cmp109 = ($16|0)==(0|0); - if (!($cmp109)) { - $R$1 = $16;$RP$1 = $arrayidx108; - continue; - } - $arrayidx113 = ((($R$1)) + 16|0); - $17 = HEAP32[$arrayidx113>>2]|0; - $cmp114 = ($17|0)==(0|0); - if ($cmp114) { - $R$1$lcssa = $R$1;$RP$1$lcssa = $RP$1; - break; - } else { - $R$1 = $17;$RP$1 = $arrayidx113; - } - } - $cmp118 = ($RP$1$lcssa>>>0)<($0>>>0); - if ($cmp118) { - _abort(); - // unreachable; - } else { - HEAP32[$RP$1$lcssa>>2] = 0; - $R$3 = $R$1$lcssa; - break; - } - } else { - $fd78 = ((($add$ptr16)) + 8|0); - $11 = HEAP32[$fd78>>2]|0; - $cmp80 = ($11>>>0)<($0>>>0); - if ($cmp80) { - _abort(); - // unreachable; - } - $bk82 = ((($11)) + 12|0); - $12 = HEAP32[$bk82>>2]|0; - $cmp83 = ($12|0)==($add$ptr16|0); - if (!($cmp83)) { - _abort(); - // unreachable; - } - $fd86 = ((($10)) + 8|0); - $13 = HEAP32[$fd86>>2]|0; - $cmp87 = ($13|0)==($add$ptr16|0); - if ($cmp87) { - HEAP32[$bk82>>2] = $10; - HEAP32[$fd86>>2] = $11; - $R$3 = $10; - break; - } else { - _abort(); - // unreachable; - } - } - } while(0); - $cmp127 = ($9|0)==(0|0); - if ($cmp127) { - $p$1 = $add$ptr16;$psize$1 = $add17; - } else { - $index = ((($add$ptr16)) + 28|0); - $18 = HEAP32[$index>>2]|0; - $arrayidx130 = (480 + ($18<<2)|0); - $19 = HEAP32[$arrayidx130>>2]|0; - $cmp131 = ($add$ptr16|0)==($19|0); - if ($cmp131) { - HEAP32[$arrayidx130>>2] = $R$3; - $cond291 = ($R$3|0)==(0|0); - if ($cond291) { - $shl138 = 1 << $18; - $neg139 = $shl138 ^ -1; - $20 = HEAP32[(180)>>2]|0; - $and140 = $20 & $neg139; - HEAP32[(180)>>2] = $and140; - $p$1 = $add$ptr16;$psize$1 = $add17; - break; - } - } else { - $21 = HEAP32[(192)>>2]|0; - $cmp143 = ($9>>>0)<($21>>>0); - if ($cmp143) { - _abort(); - // unreachable; - } - $arrayidx149 = ((($9)) + 16|0); - $22 = HEAP32[$arrayidx149>>2]|0; - $cmp150 = ($22|0)==($add$ptr16|0); - if ($cmp150) { - HEAP32[$arrayidx149>>2] = $R$3; - } else { - $arrayidx157 = ((($9)) + 20|0); - HEAP32[$arrayidx157>>2] = $R$3; - } - $cmp162 = ($R$3|0)==(0|0); - if ($cmp162) { - $p$1 = $add$ptr16;$psize$1 = $add17; - break; - } - } - $23 = HEAP32[(192)>>2]|0; - $cmp165 = ($R$3>>>0)<($23>>>0); - if ($cmp165) { - _abort(); - // unreachable; - } - $parent170 = ((($R$3)) + 24|0); - HEAP32[$parent170>>2] = $9; - $child171 = ((($add$ptr16)) + 16|0); - $24 = HEAP32[$child171>>2]|0; - $cmp173 = ($24|0)==(0|0); - do { - if (!($cmp173)) { - $cmp176 = ($24>>>0)<($23>>>0); - if ($cmp176) { - _abort(); - // unreachable; - } else { - $arrayidx182 = ((($R$3)) + 16|0); - HEAP32[$arrayidx182>>2] = $24; - $parent183 = ((($24)) + 24|0); - HEAP32[$parent183>>2] = $R$3; - break; - } - } - } while(0); - $arrayidx188 = ((($child171)) + 4|0); - $25 = HEAP32[$arrayidx188>>2]|0; - $cmp189 = ($25|0)==(0|0); - if ($cmp189) { - $p$1 = $add$ptr16;$psize$1 = $add17; - } else { - $26 = HEAP32[(192)>>2]|0; - $cmp192 = ($25>>>0)<($26>>>0); - if ($cmp192) { - _abort(); - // unreachable; - } else { - $arrayidx198 = ((($R$3)) + 20|0); - HEAP32[$arrayidx198>>2] = $25; - $parent199 = ((($25)) + 24|0); - HEAP32[$parent199>>2] = $R$3; - $p$1 = $add$ptr16;$psize$1 = $add17; - break; - } - } - } - } else { - $p$1 = $add$ptr;$psize$1 = $and5; - } - } while(0); - $cmp228 = ($p$1>>>0)<($add$ptr6>>>0); - if (!($cmp228)) { - _abort(); - // unreachable; - } - $head231 = ((($add$ptr6)) + 4|0); - $28 = HEAP32[$head231>>2]|0; - $and232 = $28 & 1; - $tobool233 = ($and232|0)==(0); - if ($tobool233) { - _abort(); - // unreachable; - } - $and240 = $28 & 2; - $tobool241 = ($and240|0)==(0); - if ($tobool241) { - $29 = HEAP32[(200)>>2]|0; - $cmp243 = ($add$ptr6|0)==($29|0); - if ($cmp243) { - $30 = HEAP32[(188)>>2]|0; - $add246 = (($30) + ($psize$1))|0; - HEAP32[(188)>>2] = $add246; - HEAP32[(200)>>2] = $p$1; - $or247 = $add246 | 1; - $head248 = ((($p$1)) + 4|0); - HEAP32[$head248>>2] = $or247; - $31 = HEAP32[(196)>>2]|0; - $cmp249 = ($p$1|0)==($31|0); - if (!($cmp249)) { - return; - } - HEAP32[(196)>>2] = 0; - HEAP32[(184)>>2] = 0; - return; - } - $32 = HEAP32[(196)>>2]|0; - $cmp255 = ($add$ptr6|0)==($32|0); - if ($cmp255) { - $33 = HEAP32[(184)>>2]|0; - $add258 = (($33) + ($psize$1))|0; - HEAP32[(184)>>2] = $add258; - HEAP32[(196)>>2] = $p$1; - $or259 = $add258 | 1; - $head260 = ((($p$1)) + 4|0); - HEAP32[$head260>>2] = $or259; - $add$ptr261 = (($p$1) + ($add258)|0); - HEAP32[$add$ptr261>>2] = $add258; - return; - } - $and266 = $28 & -8; - $add267 = (($and266) + ($psize$1))|0; - $shr268 = $28 >>> 3; - $cmp269 = ($28>>>0)<(256); - do { - if ($cmp269) { - $fd273 = ((($add$ptr6)) + 8|0); - $34 = HEAP32[$fd273>>2]|0; - $bk275 = ((($add$ptr6)) + 12|0); - $35 = HEAP32[$bk275>>2]|0; - $shl278 = $shr268 << 1; - $arrayidx279 = (216 + ($shl278<<2)|0); - $cmp280 = ($34|0)==($arrayidx279|0); - if (!($cmp280)) { - $36 = HEAP32[(192)>>2]|0; - $cmp283 = ($34>>>0)<($36>>>0); - if ($cmp283) { - _abort(); - // unreachable; - } - $bk286 = ((($34)) + 12|0); - $37 = HEAP32[$bk286>>2]|0; - $cmp287 = ($37|0)==($add$ptr6|0); - if (!($cmp287)) { - _abort(); - // unreachable; - } - } - $cmp296 = ($35|0)==($34|0); - if ($cmp296) { - $shl299 = 1 << $shr268; - $neg300 = $shl299 ^ -1; - $38 = HEAP32[44]|0; - $and301 = $38 & $neg300; - HEAP32[44] = $and301; - break; - } - $cmp305 = ($35|0)==($arrayidx279|0); - if ($cmp305) { - $$pre312 = ((($35)) + 8|0); - $fd322$pre$phiZ2D = $$pre312; - } else { - $39 = HEAP32[(192)>>2]|0; - $cmp308 = ($35>>>0)<($39>>>0); - if ($cmp308) { - _abort(); - // unreachable; - } - $fd311 = ((($35)) + 8|0); - $40 = HEAP32[$fd311>>2]|0; - $cmp312 = ($40|0)==($add$ptr6|0); - if ($cmp312) { - $fd322$pre$phiZ2D = $fd311; - } else { - _abort(); - // unreachable; - } - } - $bk321 = ((($34)) + 12|0); - HEAP32[$bk321>>2] = $35; - HEAP32[$fd322$pre$phiZ2D>>2] = $34; - } else { - $parent331 = ((($add$ptr6)) + 24|0); - $41 = HEAP32[$parent331>>2]|0; - $bk333 = ((($add$ptr6)) + 12|0); - $42 = HEAP32[$bk333>>2]|0; - $cmp334 = ($42|0)==($add$ptr6|0); - do { - if ($cmp334) { - $child361 = ((($add$ptr6)) + 16|0); - $arrayidx362 = ((($child361)) + 4|0); - $47 = HEAP32[$arrayidx362>>2]|0; - $cmp363 = ($47|0)==(0|0); - if ($cmp363) { - $48 = HEAP32[$child361>>2]|0; - $cmp368 = ($48|0)==(0|0); - if ($cmp368) { - $R332$3 = 0; - break; - } else { - $R332$1 = $48;$RP360$1 = $child361; - } - } else { - $R332$1 = $47;$RP360$1 = $arrayidx362; - } - while(1) { - $arrayidx374 = ((($R332$1)) + 20|0); - $49 = HEAP32[$arrayidx374>>2]|0; - $cmp375 = ($49|0)==(0|0); - if (!($cmp375)) { - $R332$1 = $49;$RP360$1 = $arrayidx374; - continue; - } - $arrayidx379 = ((($R332$1)) + 16|0); - $50 = HEAP32[$arrayidx379>>2]|0; - $cmp380 = ($50|0)==(0|0); - if ($cmp380) { - $R332$1$lcssa = $R332$1;$RP360$1$lcssa = $RP360$1; - break; - } else { - $R332$1 = $50;$RP360$1 = $arrayidx379; - } - } - $51 = HEAP32[(192)>>2]|0; - $cmp386 = ($RP360$1$lcssa>>>0)<($51>>>0); - if ($cmp386) { - _abort(); - // unreachable; - } else { - HEAP32[$RP360$1$lcssa>>2] = 0; - $R332$3 = $R332$1$lcssa; - break; - } - } else { - $fd338 = ((($add$ptr6)) + 8|0); - $43 = HEAP32[$fd338>>2]|0; - $44 = HEAP32[(192)>>2]|0; - $cmp340 = ($43>>>0)<($44>>>0); - if ($cmp340) { - _abort(); - // unreachable; - } - $bk343 = ((($43)) + 12|0); - $45 = HEAP32[$bk343>>2]|0; - $cmp344 = ($45|0)==($add$ptr6|0); - if (!($cmp344)) { - _abort(); - // unreachable; - } - $fd347 = ((($42)) + 8|0); - $46 = HEAP32[$fd347>>2]|0; - $cmp348 = ($46|0)==($add$ptr6|0); - if ($cmp348) { - HEAP32[$bk343>>2] = $42; - HEAP32[$fd347>>2] = $43; - $R332$3 = $42; - break; - } else { - _abort(); - // unreachable; - } - } - } while(0); - $cmp395 = ($41|0)==(0|0); - if (!($cmp395)) { - $index399 = ((($add$ptr6)) + 28|0); - $52 = HEAP32[$index399>>2]|0; - $arrayidx400 = (480 + ($52<<2)|0); - $53 = HEAP32[$arrayidx400>>2]|0; - $cmp401 = ($add$ptr6|0)==($53|0); - if ($cmp401) { - HEAP32[$arrayidx400>>2] = $R332$3; - $cond292 = ($R332$3|0)==(0|0); - if ($cond292) { - $shl408 = 1 << $52; - $neg409 = $shl408 ^ -1; - $54 = HEAP32[(180)>>2]|0; - $and410 = $54 & $neg409; - HEAP32[(180)>>2] = $and410; - break; - } - } else { - $55 = HEAP32[(192)>>2]|0; - $cmp413 = ($41>>>0)<($55>>>0); - if ($cmp413) { - _abort(); - // unreachable; - } - $arrayidx419 = ((($41)) + 16|0); - $56 = HEAP32[$arrayidx419>>2]|0; - $cmp420 = ($56|0)==($add$ptr6|0); - if ($cmp420) { - HEAP32[$arrayidx419>>2] = $R332$3; - } else { - $arrayidx427 = ((($41)) + 20|0); - HEAP32[$arrayidx427>>2] = $R332$3; - } - $cmp432 = ($R332$3|0)==(0|0); - if ($cmp432) { - break; - } - } - $57 = HEAP32[(192)>>2]|0; - $cmp435 = ($R332$3>>>0)<($57>>>0); - if ($cmp435) { - _abort(); - // unreachable; - } - $parent442 = ((($R332$3)) + 24|0); - HEAP32[$parent442>>2] = $41; - $child443 = ((($add$ptr6)) + 16|0); - $58 = HEAP32[$child443>>2]|0; - $cmp445 = ($58|0)==(0|0); - do { - if (!($cmp445)) { - $cmp448 = ($58>>>0)<($57>>>0); - if ($cmp448) { - _abort(); - // unreachable; - } else { - $arrayidx454 = ((($R332$3)) + 16|0); - HEAP32[$arrayidx454>>2] = $58; - $parent455 = ((($58)) + 24|0); - HEAP32[$parent455>>2] = $R332$3; - break; - } - } - } while(0); - $arrayidx460 = ((($child443)) + 4|0); - $59 = HEAP32[$arrayidx460>>2]|0; - $cmp461 = ($59|0)==(0|0); - if (!($cmp461)) { - $60 = HEAP32[(192)>>2]|0; - $cmp464 = ($59>>>0)<($60>>>0); - if ($cmp464) { - _abort(); - // unreachable; - } else { - $arrayidx470 = ((($R332$3)) + 20|0); - HEAP32[$arrayidx470>>2] = $59; - $parent471 = ((($59)) + 24|0); - HEAP32[$parent471>>2] = $R332$3; - break; - } - } - } - } - } while(0); - $or480 = $add267 | 1; - $head481 = ((($p$1)) + 4|0); - HEAP32[$head481>>2] = $or480; - $add$ptr482 = (($p$1) + ($add267)|0); - HEAP32[$add$ptr482>>2] = $add267; - $61 = HEAP32[(196)>>2]|0; - $cmp484 = ($p$1|0)==($61|0); - if ($cmp484) { - HEAP32[(184)>>2] = $add267; - return; - } else { - $psize$2 = $add267; - } - } else { - $and495 = $28 & -2; - HEAP32[$head231>>2] = $and495; - $or496 = $psize$1 | 1; - $head497 = ((($p$1)) + 4|0); - HEAP32[$head497>>2] = $or496; - $add$ptr498 = (($p$1) + ($psize$1)|0); - HEAP32[$add$ptr498>>2] = $psize$1; - $psize$2 = $psize$1; - } - $shr501 = $psize$2 >>> 3; - $cmp502 = ($psize$2>>>0)<(256); - if ($cmp502) { - $shl508 = $shr501 << 1; - $arrayidx509 = (216 + ($shl508<<2)|0); - $62 = HEAP32[44]|0; - $shl511 = 1 << $shr501; - $and512 = $62 & $shl511; - $tobool513 = ($and512|0)==(0); - if ($tobool513) { - $or516 = $62 | $shl511; - HEAP32[44] = $or516; - $$pre = ((($arrayidx509)) + 8|0); - $$pre$phiZ2D = $$pre;$F510$0 = $arrayidx509; - } else { - $63 = ((($arrayidx509)) + 8|0); - $64 = HEAP32[$63>>2]|0; - $65 = HEAP32[(192)>>2]|0; - $cmp519 = ($64>>>0)<($65>>>0); - if ($cmp519) { - _abort(); - // unreachable; - } else { - $$pre$phiZ2D = $63;$F510$0 = $64; - } - } - HEAP32[$$pre$phiZ2D>>2] = $p$1; - $bk529 = ((($F510$0)) + 12|0); - HEAP32[$bk529>>2] = $p$1; - $fd530 = ((($p$1)) + 8|0); - HEAP32[$fd530>>2] = $F510$0; - $bk531 = ((($p$1)) + 12|0); - HEAP32[$bk531>>2] = $arrayidx509; - return; - } - $shr535 = $psize$2 >>> 8; - $cmp536 = ($shr535|0)==(0); - if ($cmp536) { - $I534$0 = 0; - } else { - $cmp540 = ($psize$2>>>0)>(16777215); - if ($cmp540) { - $I534$0 = 31; - } else { - $sub = (($shr535) + 1048320)|0; - $shr544 = $sub >>> 16; - $and545 = $shr544 & 8; - $shl546 = $shr535 << $and545; - $sub547 = (($shl546) + 520192)|0; - $shr548 = $sub547 >>> 16; - $and549 = $shr548 & 4; - $add550 = $and549 | $and545; - $shl551 = $shl546 << $and549; - $sub552 = (($shl551) + 245760)|0; - $shr553 = $sub552 >>> 16; - $and554 = $shr553 & 2; - $add555 = $add550 | $and554; - $sub556 = (14 - ($add555))|0; - $shl557 = $shl551 << $and554; - $shr558 = $shl557 >>> 15; - $add559 = (($sub556) + ($shr558))|0; - $shl560 = $add559 << 1; - $add561 = (($add559) + 7)|0; - $shr562 = $psize$2 >>> $add561; - $and563 = $shr562 & 1; - $add564 = $and563 | $shl560; - $I534$0 = $add564; - } - } - $arrayidx567 = (480 + ($I534$0<<2)|0); - $index568 = ((($p$1)) + 28|0); - HEAP32[$index568>>2] = $I534$0; - $child569 = ((($p$1)) + 16|0); - $arrayidx570 = ((($p$1)) + 20|0); - HEAP32[$arrayidx570>>2] = 0; - HEAP32[$child569>>2] = 0; - $66 = HEAP32[(180)>>2]|0; - $shl573 = 1 << $I534$0; - $and574 = $66 & $shl573; - $tobool575 = ($and574|0)==(0); - do { - if ($tobool575) { - $or578 = $66 | $shl573; - HEAP32[(180)>>2] = $or578; - HEAP32[$arrayidx567>>2] = $p$1; - $parent579 = ((($p$1)) + 24|0); - HEAP32[$parent579>>2] = $arrayidx567; - $bk580 = ((($p$1)) + 12|0); - HEAP32[$bk580>>2] = $p$1; - $fd581 = ((($p$1)) + 8|0); - HEAP32[$fd581>>2] = $p$1; - } else { - $67 = HEAP32[$arrayidx567>>2]|0; - $cmp584 = ($I534$0|0)==(31); - $shr586 = $I534$0 >>> 1; - $sub589 = (25 - ($shr586))|0; - $cond = $cmp584 ? 0 : $sub589; - $shl590 = $psize$2 << $cond; - $K583$0 = $shl590;$T$0 = $67; - while(1) { - $head591 = ((($T$0)) + 4|0); - $68 = HEAP32[$head591>>2]|0; - $and592 = $68 & -8; - $cmp593 = ($and592|0)==($psize$2|0); - if ($cmp593) { - $T$0$lcssa = $T$0; - label = 130; - break; - } - $shr596 = $K583$0 >>> 31; - $arrayidx599 = (((($T$0)) + 16|0) + ($shr596<<2)|0); - $shl600 = $K583$0 << 1; - $69 = HEAP32[$arrayidx599>>2]|0; - $cmp601 = ($69|0)==(0|0); - if ($cmp601) { - $T$0$lcssa319 = $T$0;$arrayidx599$lcssa = $arrayidx599; - label = 127; - break; - } else { - $K583$0 = $shl600;$T$0 = $69; - } - } - if ((label|0) == 127) { - $70 = HEAP32[(192)>>2]|0; - $cmp605 = ($arrayidx599$lcssa>>>0)<($70>>>0); - if ($cmp605) { - _abort(); - // unreachable; - } else { - HEAP32[$arrayidx599$lcssa>>2] = $p$1; - $parent610 = ((($p$1)) + 24|0); - HEAP32[$parent610>>2] = $T$0$lcssa319; - $bk611 = ((($p$1)) + 12|0); - HEAP32[$bk611>>2] = $p$1; - $fd612 = ((($p$1)) + 8|0); - HEAP32[$fd612>>2] = $p$1; - break; - } - } - else if ((label|0) == 130) { - $fd620 = ((($T$0$lcssa)) + 8|0); - $71 = HEAP32[$fd620>>2]|0; - $72 = HEAP32[(192)>>2]|0; - $cmp624 = ($71>>>0)>=($72>>>0); - $not$cmp621 = ($T$0$lcssa>>>0)>=($72>>>0); - $73 = $cmp624 & $not$cmp621; - if ($73) { - $bk631 = ((($71)) + 12|0); - HEAP32[$bk631>>2] = $p$1; - HEAP32[$fd620>>2] = $p$1; - $fd633 = ((($p$1)) + 8|0); - HEAP32[$fd633>>2] = $71; - $bk634 = ((($p$1)) + 12|0); - HEAP32[$bk634>>2] = $T$0$lcssa; - $parent635 = ((($p$1)) + 24|0); - HEAP32[$parent635>>2] = 0; - break; - } else { - _abort(); - // unreachable; - } - } - } - } while(0); - $74 = HEAP32[(208)>>2]|0; - $dec = (($74) + -1)|0; - HEAP32[(208)>>2] = $dec; - $cmp640 = ($dec|0)==(0); - if ($cmp640) { - $sp$0$in$i = (632); - } else { - return; - } - while(1) { - $sp$0$i = HEAP32[$sp$0$in$i>>2]|0; - $cmp$i = ($sp$0$i|0)==(0|0); - $next4$i = ((($sp$0$i)) + 8|0); - if ($cmp$i) { - break; - } else { - $sp$0$in$i = $next4$i; - } - } - HEAP32[(208)>>2] = -1; - return; -} -function runPostSets() { -} -function _i64Subtract(a, b, c, d) { - a = a|0; b = b|0; c = c|0; d = d|0; - var l = 0, h = 0; - l = (a - c)>>>0; - h = (b - d)>>>0; - h = (b - d - (((c>>>0) > (a>>>0))|0))>>>0; // Borrow one from high word to low word on underflow. - return ((tempRet0 = h,l|0)|0); -} -function _i64Add(a, b, c, d) { - /* - x = a + b*2^32 - y = c + d*2^32 - result = l + h*2^32 - */ - a = a|0; b = b|0; c = c|0; d = d|0; - var l = 0, h = 0; - l = (a + c)>>>0; - h = (b + d + (((l>>>0) < (a>>>0))|0))>>>0; // Add carry from low word to high word on overflow. - return ((tempRet0 = h,l|0)|0); -} -function _memset(ptr, value, num) { - ptr = ptr|0; value = value|0; num = num|0; - var stop = 0, value4 = 0, stop4 = 0, unaligned = 0; - stop = (ptr + num)|0; - if ((num|0) >= 20) { - // This is unaligned, but quite large, so work hard to get to aligned settings - value = value & 0xff; - unaligned = ptr & 3; - value4 = value | (value << 8) | (value << 16) | (value << 24); - stop4 = stop & ~3; - if (unaligned) { - unaligned = (ptr + 4 - unaligned)|0; - while ((ptr|0) < (unaligned|0)) { // no need to check for stop, since we have large num - HEAP8[((ptr)>>0)]=value; - ptr = (ptr+1)|0; - } - } - while ((ptr|0) < (stop4|0)) { - HEAP32[((ptr)>>2)]=value4; - ptr = (ptr+4)|0; - } - } - while ((ptr|0) < (stop|0)) { - HEAP8[((ptr)>>0)]=value; - ptr = (ptr+1)|0; - } - return (ptr-num)|0; -} -function _bitshift64Lshr(low, high, bits) { - low = low|0; high = high|0; bits = bits|0; - var ander = 0; - if ((bits|0) < 32) { - ander = ((1 << bits) - 1)|0; - tempRet0 = high >>> bits; - return (low >>> bits) | ((high&ander) << (32 - bits)); - } - tempRet0 = 0; - return (high >>> (bits - 32))|0; -} -function _bitshift64Shl(low, high, bits) { - low = low|0; high = high|0; bits = bits|0; - var ander = 0; - if ((bits|0) < 32) { - ander = ((1 << bits) - 1)|0; - tempRet0 = (high << bits) | ((low&(ander << (32 - bits))) >>> (32 - bits)); - return low << bits; - } - tempRet0 = low << (bits - 32); - return 0; -} -function _memcpy(dest, src, num) { - dest = dest|0; src = src|0; num = num|0; - var ret = 0; - if ((num|0) >= 4096) return _emscripten_memcpy_big(dest|0, src|0, num|0)|0; - ret = dest|0; - if ((dest&3) == (src&3)) { - while (dest & 3) { - if ((num|0) == 0) return ret|0; - HEAP8[((dest)>>0)]=((HEAP8[((src)>>0)])|0); - dest = (dest+1)|0; - src = (src+1)|0; - num = (num-1)|0; - } - while ((num|0) >= 4) { - HEAP32[((dest)>>2)]=((HEAP32[((src)>>2)])|0); - dest = (dest+4)|0; - src = (src+4)|0; - num = (num-4)|0; - } - } - while ((num|0) > 0) { - HEAP8[((dest)>>0)]=((HEAP8[((src)>>0)])|0); - dest = (dest+1)|0; - src = (src+1)|0; - num = (num-1)|0; - } - return ret|0; -} -function _bitshift64Ashr(low, high, bits) { - low = low|0; high = high|0; bits = bits|0; - var ander = 0; - if ((bits|0) < 32) { - ander = ((1 << bits) - 1)|0; - tempRet0 = high >> bits; - return (low >>> bits) | ((high&ander) << (32 - bits)); - } - tempRet0 = (high|0) < 0 ? -1 : 0; - return (high >> (bits - 32))|0; - } - -// ======== compiled code from system/lib/compiler-rt , see readme therein -function ___muldsi3($a, $b) { - $a = $a | 0; - $b = $b | 0; - var $1 = 0, $2 = 0, $3 = 0, $6 = 0, $8 = 0, $11 = 0, $12 = 0; - $1 = $a & 65535; - $2 = $b & 65535; - $3 = Math_imul($2, $1) | 0; - $6 = $a >>> 16; - $8 = ($3 >>> 16) + (Math_imul($2, $6) | 0) | 0; - $11 = $b >>> 16; - $12 = Math_imul($11, $1) | 0; - return (tempRet0 = (($8 >>> 16) + (Math_imul($11, $6) | 0) | 0) + ((($8 & 65535) + $12 | 0) >>> 16) | 0, 0 | ($8 + $12 << 16 | $3 & 65535)) | 0; -} -function ___divdi3($a$0, $a$1, $b$0, $b$1) { - $a$0 = $a$0 | 0; - $a$1 = $a$1 | 0; - $b$0 = $b$0 | 0; - $b$1 = $b$1 | 0; - var $1$0 = 0, $1$1 = 0, $2$0 = 0, $2$1 = 0, $4$0 = 0, $4$1 = 0, $6$0 = 0, $7$0 = 0, $7$1 = 0, $8$0 = 0, $10$0 = 0; - $1$0 = $a$1 >> 31 | (($a$1 | 0) < 0 ? -1 : 0) << 1; - $1$1 = (($a$1 | 0) < 0 ? -1 : 0) >> 31 | (($a$1 | 0) < 0 ? -1 : 0) << 1; - $2$0 = $b$1 >> 31 | (($b$1 | 0) < 0 ? -1 : 0) << 1; - $2$1 = (($b$1 | 0) < 0 ? -1 : 0) >> 31 | (($b$1 | 0) < 0 ? -1 : 0) << 1; - $4$0 = _i64Subtract($1$0 ^ $a$0, $1$1 ^ $a$1, $1$0, $1$1) | 0; - $4$1 = tempRet0; - $6$0 = _i64Subtract($2$0 ^ $b$0, $2$1 ^ $b$1, $2$0, $2$1) | 0; - $7$0 = $2$0 ^ $1$0; - $7$1 = $2$1 ^ $1$1; - $8$0 = ___udivmoddi4($4$0, $4$1, $6$0, tempRet0, 0) | 0; - $10$0 = _i64Subtract($8$0 ^ $7$0, tempRet0 ^ $7$1, $7$0, $7$1) | 0; - return $10$0 | 0; -} -function ___remdi3($a$0, $a$1, $b$0, $b$1) { - $a$0 = $a$0 | 0; - $a$1 = $a$1 | 0; - $b$0 = $b$0 | 0; - $b$1 = $b$1 | 0; - var $rem = 0, $1$0 = 0, $1$1 = 0, $2$0 = 0, $2$1 = 0, $4$0 = 0, $4$1 = 0, $6$0 = 0, $10$0 = 0, $10$1 = 0, __stackBase__ = 0; - __stackBase__ = STACKTOP; - STACKTOP = STACKTOP + 16 | 0; - $rem = __stackBase__ | 0; - $1$0 = $a$1 >> 31 | (($a$1 | 0) < 0 ? -1 : 0) << 1; - $1$1 = (($a$1 | 0) < 0 ? -1 : 0) >> 31 | (($a$1 | 0) < 0 ? -1 : 0) << 1; - $2$0 = $b$1 >> 31 | (($b$1 | 0) < 0 ? -1 : 0) << 1; - $2$1 = (($b$1 | 0) < 0 ? -1 : 0) >> 31 | (($b$1 | 0) < 0 ? -1 : 0) << 1; - $4$0 = _i64Subtract($1$0 ^ $a$0, $1$1 ^ $a$1, $1$0, $1$1) | 0; - $4$1 = tempRet0; - $6$0 = _i64Subtract($2$0 ^ $b$0, $2$1 ^ $b$1, $2$0, $2$1) | 0; - ___udivmoddi4($4$0, $4$1, $6$0, tempRet0, $rem) | 0; - $10$0 = _i64Subtract(HEAP32[$rem >> 2] ^ $1$0, HEAP32[$rem + 4 >> 2] ^ $1$1, $1$0, $1$1) | 0; - $10$1 = tempRet0; - STACKTOP = __stackBase__; - return (tempRet0 = $10$1, $10$0) | 0; -} -function ___muldi3($a$0, $a$1, $b$0, $b$1) { - $a$0 = $a$0 | 0; - $a$1 = $a$1 | 0; - $b$0 = $b$0 | 0; - $b$1 = $b$1 | 0; - var $x_sroa_0_0_extract_trunc = 0, $y_sroa_0_0_extract_trunc = 0, $1$0 = 0, $1$1 = 0, $2 = 0; - $x_sroa_0_0_extract_trunc = $a$0; - $y_sroa_0_0_extract_trunc = $b$0; - $1$0 = ___muldsi3($x_sroa_0_0_extract_trunc, $y_sroa_0_0_extract_trunc) | 0; - $1$1 = tempRet0; - $2 = Math_imul($a$1, $y_sroa_0_0_extract_trunc) | 0; - return (tempRet0 = ((Math_imul($b$1, $x_sroa_0_0_extract_trunc) | 0) + $2 | 0) + $1$1 | $1$1 & 0, 0 | $1$0 & -1) | 0; -} -function ___udivdi3($a$0, $a$1, $b$0, $b$1) { - $a$0 = $a$0 | 0; - $a$1 = $a$1 | 0; - $b$0 = $b$0 | 0; - $b$1 = $b$1 | 0; - var $1$0 = 0; - $1$0 = ___udivmoddi4($a$0, $a$1, $b$0, $b$1, 0) | 0; - return $1$0 | 0; -} -function ___uremdi3($a$0, $a$1, $b$0, $b$1) { - $a$0 = $a$0 | 0; - $a$1 = $a$1 | 0; - $b$0 = $b$0 | 0; - $b$1 = $b$1 | 0; - var $rem = 0, __stackBase__ = 0; - __stackBase__ = STACKTOP; - STACKTOP = STACKTOP + 16 | 0; - $rem = __stackBase__ | 0; - ___udivmoddi4($a$0, $a$1, $b$0, $b$1, $rem) | 0; - STACKTOP = __stackBase__; - return (tempRet0 = HEAP32[$rem + 4 >> 2] | 0, HEAP32[$rem >> 2] | 0) | 0; -} -function ___udivmoddi4($a$0, $a$1, $b$0, $b$1, $rem) { - $a$0 = $a$0 | 0; - $a$1 = $a$1 | 0; - $b$0 = $b$0 | 0; - $b$1 = $b$1 | 0; - $rem = $rem | 0; - var $n_sroa_0_0_extract_trunc = 0, $n_sroa_1_4_extract_shift$0 = 0, $n_sroa_1_4_extract_trunc = 0, $d_sroa_0_0_extract_trunc = 0, $d_sroa_1_4_extract_shift$0 = 0, $d_sroa_1_4_extract_trunc = 0, $4 = 0, $17 = 0, $37 = 0, $49 = 0, $51 = 0, $57 = 0, $58 = 0, $66 = 0, $78 = 0, $86 = 0, $88 = 0, $89 = 0, $91 = 0, $92 = 0, $95 = 0, $105 = 0, $117 = 0, $119 = 0, $125 = 0, $126 = 0, $130 = 0, $q_sroa_1_1_ph = 0, $q_sroa_0_1_ph = 0, $r_sroa_1_1_ph = 0, $r_sroa_0_1_ph = 0, $sr_1_ph = 0, $d_sroa_0_0_insert_insert99$0 = 0, $d_sroa_0_0_insert_insert99$1 = 0, $137$0 = 0, $137$1 = 0, $carry_0203 = 0, $sr_1202 = 0, $r_sroa_0_1201 = 0, $r_sroa_1_1200 = 0, $q_sroa_0_1199 = 0, $q_sroa_1_1198 = 0, $147 = 0, $149 = 0, $r_sroa_0_0_insert_insert42$0 = 0, $r_sroa_0_0_insert_insert42$1 = 0, $150$1 = 0, $151$0 = 0, $152 = 0, $154$0 = 0, $r_sroa_0_0_extract_trunc = 0, $r_sroa_1_4_extract_trunc = 0, $155 = 0, $carry_0_lcssa$0 = 0, $carry_0_lcssa$1 = 0, $r_sroa_0_1_lcssa = 0, $r_sroa_1_1_lcssa = 0, $q_sroa_0_1_lcssa = 0, $q_sroa_1_1_lcssa = 0, $q_sroa_0_0_insert_ext75$0 = 0, $q_sroa_0_0_insert_ext75$1 = 0, $q_sroa_0_0_insert_insert77$1 = 0, $_0$0 = 0, $_0$1 = 0; - $n_sroa_0_0_extract_trunc = $a$0; - $n_sroa_1_4_extract_shift$0 = $a$1; - $n_sroa_1_4_extract_trunc = $n_sroa_1_4_extract_shift$0; - $d_sroa_0_0_extract_trunc = $b$0; - $d_sroa_1_4_extract_shift$0 = $b$1; - $d_sroa_1_4_extract_trunc = $d_sroa_1_4_extract_shift$0; - if (($n_sroa_1_4_extract_trunc | 0) == 0) { - $4 = ($rem | 0) != 0; - if (($d_sroa_1_4_extract_trunc | 0) == 0) { - if ($4) { - HEAP32[$rem >> 2] = ($n_sroa_0_0_extract_trunc >>> 0) % ($d_sroa_0_0_extract_trunc >>> 0); - HEAP32[$rem + 4 >> 2] = 0; - } - $_0$1 = 0; - $_0$0 = ($n_sroa_0_0_extract_trunc >>> 0) / ($d_sroa_0_0_extract_trunc >>> 0) >>> 0; - return (tempRet0 = $_0$1, $_0$0) | 0; - } else { - if (!$4) { - $_0$1 = 0; - $_0$0 = 0; - return (tempRet0 = $_0$1, $_0$0) | 0; - } - HEAP32[$rem >> 2] = $a$0 & -1; - HEAP32[$rem + 4 >> 2] = $a$1 & 0; - $_0$1 = 0; - $_0$0 = 0; - return (tempRet0 = $_0$1, $_0$0) | 0; - } - } - $17 = ($d_sroa_1_4_extract_trunc | 0) == 0; - do { - if (($d_sroa_0_0_extract_trunc | 0) == 0) { - if ($17) { - if (($rem | 0) != 0) { - HEAP32[$rem >> 2] = ($n_sroa_1_4_extract_trunc >>> 0) % ($d_sroa_0_0_extract_trunc >>> 0); - HEAP32[$rem + 4 >> 2] = 0; - } - $_0$1 = 0; - $_0$0 = ($n_sroa_1_4_extract_trunc >>> 0) / ($d_sroa_0_0_extract_trunc >>> 0) >>> 0; - return (tempRet0 = $_0$1, $_0$0) | 0; - } - if (($n_sroa_0_0_extract_trunc | 0) == 0) { - if (($rem | 0) != 0) { - HEAP32[$rem >> 2] = 0; - HEAP32[$rem + 4 >> 2] = ($n_sroa_1_4_extract_trunc >>> 0) % ($d_sroa_1_4_extract_trunc >>> 0); - } - $_0$1 = 0; - $_0$0 = ($n_sroa_1_4_extract_trunc >>> 0) / ($d_sroa_1_4_extract_trunc >>> 0) >>> 0; - return (tempRet0 = $_0$1, $_0$0) | 0; - } - $37 = $d_sroa_1_4_extract_trunc - 1 | 0; - if (($37 & $d_sroa_1_4_extract_trunc | 0) == 0) { - if (($rem | 0) != 0) { - HEAP32[$rem >> 2] = 0 | $a$0 & -1; - HEAP32[$rem + 4 >> 2] = $37 & $n_sroa_1_4_extract_trunc | $a$1 & 0; - } - $_0$1 = 0; - $_0$0 = $n_sroa_1_4_extract_trunc >>> ((_llvm_cttz_i32($d_sroa_1_4_extract_trunc | 0) | 0) >>> 0); - return (tempRet0 = $_0$1, $_0$0) | 0; - } - $49 = Math_clz32($d_sroa_1_4_extract_trunc | 0) | 0; - $51 = $49 - (Math_clz32($n_sroa_1_4_extract_trunc | 0) | 0) | 0; - if ($51 >>> 0 <= 30) { - $57 = $51 + 1 | 0; - $58 = 31 - $51 | 0; - $sr_1_ph = $57; - $r_sroa_0_1_ph = $n_sroa_1_4_extract_trunc << $58 | $n_sroa_0_0_extract_trunc >>> ($57 >>> 0); - $r_sroa_1_1_ph = $n_sroa_1_4_extract_trunc >>> ($57 >>> 0); - $q_sroa_0_1_ph = 0; - $q_sroa_1_1_ph = $n_sroa_0_0_extract_trunc << $58; - break; - } - if (($rem | 0) == 0) { - $_0$1 = 0; - $_0$0 = 0; - return (tempRet0 = $_0$1, $_0$0) | 0; - } - HEAP32[$rem >> 2] = 0 | $a$0 & -1; - HEAP32[$rem + 4 >> 2] = $n_sroa_1_4_extract_shift$0 | $a$1 & 0; - $_0$1 = 0; - $_0$0 = 0; - return (tempRet0 = $_0$1, $_0$0) | 0; - } else { - if (!$17) { - $117 = Math_clz32($d_sroa_1_4_extract_trunc | 0) | 0; - $119 = $117 - (Math_clz32($n_sroa_1_4_extract_trunc | 0) | 0) | 0; - if ($119 >>> 0 <= 31) { - $125 = $119 + 1 | 0; - $126 = 31 - $119 | 0; - $130 = $119 - 31 >> 31; - $sr_1_ph = $125; - $r_sroa_0_1_ph = $n_sroa_0_0_extract_trunc >>> ($125 >>> 0) & $130 | $n_sroa_1_4_extract_trunc << $126; - $r_sroa_1_1_ph = $n_sroa_1_4_extract_trunc >>> ($125 >>> 0) & $130; - $q_sroa_0_1_ph = 0; - $q_sroa_1_1_ph = $n_sroa_0_0_extract_trunc << $126; - break; - } - if (($rem | 0) == 0) { - $_0$1 = 0; - $_0$0 = 0; - return (tempRet0 = $_0$1, $_0$0) | 0; - } - HEAP32[$rem >> 2] = 0 | $a$0 & -1; - HEAP32[$rem + 4 >> 2] = $n_sroa_1_4_extract_shift$0 | $a$1 & 0; - $_0$1 = 0; - $_0$0 = 0; - return (tempRet0 = $_0$1, $_0$0) | 0; - } - $66 = $d_sroa_0_0_extract_trunc - 1 | 0; - if (($66 & $d_sroa_0_0_extract_trunc | 0) != 0) { - $86 = (Math_clz32($d_sroa_0_0_extract_trunc | 0) | 0) + 33 | 0; - $88 = $86 - (Math_clz32($n_sroa_1_4_extract_trunc | 0) | 0) | 0; - $89 = 64 - $88 | 0; - $91 = 32 - $88 | 0; - $92 = $91 >> 31; - $95 = $88 - 32 | 0; - $105 = $95 >> 31; - $sr_1_ph = $88; - $r_sroa_0_1_ph = $91 - 1 >> 31 & $n_sroa_1_4_extract_trunc >>> ($95 >>> 0) | ($n_sroa_1_4_extract_trunc << $91 | $n_sroa_0_0_extract_trunc >>> ($88 >>> 0)) & $105; - $r_sroa_1_1_ph = $105 & $n_sroa_1_4_extract_trunc >>> ($88 >>> 0); - $q_sroa_0_1_ph = $n_sroa_0_0_extract_trunc << $89 & $92; - $q_sroa_1_1_ph = ($n_sroa_1_4_extract_trunc << $89 | $n_sroa_0_0_extract_trunc >>> ($95 >>> 0)) & $92 | $n_sroa_0_0_extract_trunc << $91 & $88 - 33 >> 31; - break; - } - if (($rem | 0) != 0) { - HEAP32[$rem >> 2] = $66 & $n_sroa_0_0_extract_trunc; - HEAP32[$rem + 4 >> 2] = 0; - } - if (($d_sroa_0_0_extract_trunc | 0) == 1) { - $_0$1 = $n_sroa_1_4_extract_shift$0 | $a$1 & 0; - $_0$0 = 0 | $a$0 & -1; - return (tempRet0 = $_0$1, $_0$0) | 0; - } else { - $78 = _llvm_cttz_i32($d_sroa_0_0_extract_trunc | 0) | 0; - $_0$1 = 0 | $n_sroa_1_4_extract_trunc >>> ($78 >>> 0); - $_0$0 = $n_sroa_1_4_extract_trunc << 32 - $78 | $n_sroa_0_0_extract_trunc >>> ($78 >>> 0) | 0; - return (tempRet0 = $_0$1, $_0$0) | 0; - } - } - } while (0); - if (($sr_1_ph | 0) == 0) { - $q_sroa_1_1_lcssa = $q_sroa_1_1_ph; - $q_sroa_0_1_lcssa = $q_sroa_0_1_ph; - $r_sroa_1_1_lcssa = $r_sroa_1_1_ph; - $r_sroa_0_1_lcssa = $r_sroa_0_1_ph; - $carry_0_lcssa$1 = 0; - $carry_0_lcssa$0 = 0; - } else { - $d_sroa_0_0_insert_insert99$0 = 0 | $b$0 & -1; - $d_sroa_0_0_insert_insert99$1 = $d_sroa_1_4_extract_shift$0 | $b$1 & 0; - $137$0 = _i64Add($d_sroa_0_0_insert_insert99$0 | 0, $d_sroa_0_0_insert_insert99$1 | 0, -1, -1) | 0; - $137$1 = tempRet0; - $q_sroa_1_1198 = $q_sroa_1_1_ph; - $q_sroa_0_1199 = $q_sroa_0_1_ph; - $r_sroa_1_1200 = $r_sroa_1_1_ph; - $r_sroa_0_1201 = $r_sroa_0_1_ph; - $sr_1202 = $sr_1_ph; - $carry_0203 = 0; - while (1) { - $147 = $q_sroa_0_1199 >>> 31 | $q_sroa_1_1198 << 1; - $149 = $carry_0203 | $q_sroa_0_1199 << 1; - $r_sroa_0_0_insert_insert42$0 = 0 | ($r_sroa_0_1201 << 1 | $q_sroa_1_1198 >>> 31); - $r_sroa_0_0_insert_insert42$1 = $r_sroa_0_1201 >>> 31 | $r_sroa_1_1200 << 1 | 0; - _i64Subtract($137$0, $137$1, $r_sroa_0_0_insert_insert42$0, $r_sroa_0_0_insert_insert42$1) | 0; - $150$1 = tempRet0; - $151$0 = $150$1 >> 31 | (($150$1 | 0) < 0 ? -1 : 0) << 1; - $152 = $151$0 & 1; - $154$0 = _i64Subtract($r_sroa_0_0_insert_insert42$0, $r_sroa_0_0_insert_insert42$1, $151$0 & $d_sroa_0_0_insert_insert99$0, ((($150$1 | 0) < 0 ? -1 : 0) >> 31 | (($150$1 | 0) < 0 ? -1 : 0) << 1) & $d_sroa_0_0_insert_insert99$1) | 0; - $r_sroa_0_0_extract_trunc = $154$0; - $r_sroa_1_4_extract_trunc = tempRet0; - $155 = $sr_1202 - 1 | 0; - if (($155 | 0) == 0) { - break; - } else { - $q_sroa_1_1198 = $147; - $q_sroa_0_1199 = $149; - $r_sroa_1_1200 = $r_sroa_1_4_extract_trunc; - $r_sroa_0_1201 = $r_sroa_0_0_extract_trunc; - $sr_1202 = $155; - $carry_0203 = $152; - } - } - $q_sroa_1_1_lcssa = $147; - $q_sroa_0_1_lcssa = $149; - $r_sroa_1_1_lcssa = $r_sroa_1_4_extract_trunc; - $r_sroa_0_1_lcssa = $r_sroa_0_0_extract_trunc; - $carry_0_lcssa$1 = 0; - $carry_0_lcssa$0 = $152; - } - $q_sroa_0_0_insert_ext75$0 = $q_sroa_0_1_lcssa; - $q_sroa_0_0_insert_ext75$1 = 0; - $q_sroa_0_0_insert_insert77$1 = $q_sroa_1_1_lcssa | $q_sroa_0_0_insert_ext75$1; - if (($rem | 0) != 0) { - HEAP32[$rem >> 2] = 0 | $r_sroa_0_1_lcssa; - HEAP32[$rem + 4 >> 2] = $r_sroa_1_1_lcssa | 0; - } - $_0$1 = (0 | $q_sroa_0_0_insert_ext75$0) >>> 31 | $q_sroa_0_0_insert_insert77$1 << 1 | ($q_sroa_0_0_insert_ext75$1 << 1 | $q_sroa_0_0_insert_ext75$0 >>> 31) & 0 | $carry_0_lcssa$1; - $_0$0 = ($q_sroa_0_0_insert_ext75$0 << 1 | 0 >>> 31) & -2 | $carry_0_lcssa$0; - return (tempRet0 = $_0$1, $_0$0) | 0; -} -// ======================================================================= - - - - -function dynCall_ii(index,a1) { - index = index|0; - a1=a1|0; - return FUNCTION_TABLE_ii[index&1](a1|0)|0; -} - - -function dynCall_iiii(index,a1,a2,a3) { - index = index|0; - a1=a1|0; a2=a2|0; a3=a3|0; - return FUNCTION_TABLE_iiii[index&7](a1|0,a2|0,a3|0)|0; -} - - -function dynCall_vi(index,a1) { - index = index|0; - a1=a1|0; - FUNCTION_TABLE_vi[index&7](a1|0); -} - -function b0(p0) { - p0 = p0|0; nullFunc_ii(0);return 0; -} -function b1(p0,p1,p2) { - p0 = p0|0;p1 = p1|0;p2 = p2|0; nullFunc_iiii(1);return 0; -} -function b2(p0) { - p0 = p0|0; nullFunc_vi(2); -} - -// EMSCRIPTEN_END_FUNCS -var FUNCTION_TABLE_ii = [b0,___stdio_close]; -var FUNCTION_TABLE_iiii = [b1,b1,___stdout_write,___stdio_seek,___stdio_write,b1,b1,b1]; -var FUNCTION_TABLE_vi = [b2,b2,b2,b2,b2,_cleanup,b2,b2]; - - return { _i64Subtract: _i64Subtract, _free: _free, _main: _main, _i64Add: _i64Add, _memset: _memset, _malloc: _malloc, _memcpy: _memcpy, _bitshift64Lshr: _bitshift64Lshr, _fflush: _fflush, ___errno_location: ___errno_location, _bitshift64Shl: _bitshift64Shl, runPostSets: runPostSets, stackAlloc: stackAlloc, stackSave: stackSave, stackRestore: stackRestore, establishStackSpace: establishStackSpace, setThrew: setThrew, setTempRet0: setTempRet0, getTempRet0: getTempRet0, dynCall_ii: dynCall_ii, dynCall_iiii: dynCall_iiii, dynCall_vi: dynCall_vi, ___udivmoddi4: ___udivmoddi4 }; -}) -; diff --git a/test/empty.asm.js b/test/empty.asm.js deleted file mode 100644 index 94fa6bb38b9..00000000000 --- a/test/empty.asm.js +++ /dev/null @@ -1,4 +0,0 @@ -function EmptyModule() { - 'use asm'; - return {}; -} diff --git a/test/empty_4GB.asm.js b/test/empty_4GB.asm.js deleted file mode 100644 index 94fa6bb38b9..00000000000 --- a/test/empty_4GB.asm.js +++ /dev/null @@ -1,4 +0,0 @@ -function EmptyModule() { - 'use asm'; - return {}; -} diff --git a/test/hello_world.asm.js b/test/hello_world.asm.js deleted file mode 100644 index a41fe1a6594..00000000000 --- a/test/hello_world.asm.js +++ /dev/null @@ -1,10 +0,0 @@ -function () { - "use asm"; - function add(x, y) { - x = x | 0; - y = y | 0; - return x + y | 0; - } - return { add: add }; -} - diff --git a/test/i64-setTempRet0.asm.js b/test/i64-setTempRet0.asm.js deleted file mode 100644 index 496414148be..00000000000 --- a/test/i64-setTempRet0.asm.js +++ /dev/null @@ -1,24 +0,0 @@ -// -// Test i64 support in wasm-only builds. In this case, fastcomp emits code that is -// not asm.js, it will only ever run as wasm, and contains special intrinsics for -// asm2wasm that map LLVM IR into i64s. -// - -function asm(global, env, buffer) { - "use asm"; - - var illegalImportResult = env.illegalImportResult; - - var tempRet0 = 0; // this should be used to legalize the illegal result - - function illegalResult() { // illegal result, exported - return i64_const(1, 2); - } - - function imports() { - return i64_trunc(i64(illegalImportResult())) | 0; - } - - return { illegalResult: illegalResult, imports: imports }; -} - diff --git a/test/importedSignCast.asm.js b/test/importedSignCast.asm.js deleted file mode 100644 index 60cc99d3939..00000000000 --- a/test/importedSignCast.asm.js +++ /dev/null @@ -1,14 +0,0 @@ -function asm(global, env, buffer) { - "use asm"; - - var gm = env._emscripten_glIsTexture; - - function func() { - gm(0) << 24 >> 24; - } - - var FUNCTION_TABLE_a = [ gm ]; - - return { func: func }; -} - diff --git a/test/memorygrowth-minimal.asm.js b/test/memorygrowth-minimal.asm.js deleted file mode 100644 index 148a22958d2..00000000000 --- a/test/memorygrowth-minimal.asm.js +++ /dev/null @@ -1,41 +0,0 @@ -Module["asm"] = (function(global,env,buffer) { - - "almost asm"; - var a = global.Int8Array; - var b = global.Int16Array; - var c = global.Int32Array; - var d = global.Uint8Array; - var e = global.Uint16Array; - var f = global.Uint32Array; - var g = global.Float32Array; - var h = global.Float64Array; - var i = new a(buffer); - var j = new b(buffer); - var k = new c(buffer); - var l = new d(buffer); - var m = new e(buffer); - var n = new f(buffer); - var o = new g(buffer); - var p = new h(buffer); - var q = global.byteLength; - - function replaceBuffer(newBuffer) { - if (q(newBuffer) & 16777215 || q(newBuffer) <= 16777215 || q(newBuffer) > 2147483648) return false; - i = new a(newBuffer); - j = new b(newBuffer); - k = new c(newBuffer); - l = new d(newBuffer); - m = new e(newBuffer); - n = new f(newBuffer); - o = new g(newBuffer); - p = new h(newBuffer); - buffer = newBuffer; - return true; - } - return { - _emscripten_replace_memory: replaceBuffer - }; -}) - - -; diff --git a/test/memorygrowth.asm.js b/test/memorygrowth.asm.js deleted file mode 100644 index e4bdc8a9836..00000000000 --- a/test/memorygrowth.asm.js +++ /dev/null @@ -1,2387 +0,0 @@ -Module["asm"] = (function(global,env,buffer) { - - "almost asm"; - var a = global.Int8Array; - var b = global.Int16Array; - var c = global.Int32Array; - var d = global.Uint8Array; - var e = global.Uint16Array; - var f = global.Uint32Array; - var g = global.Float32Array; - var h = global.Float64Array; - var i = new a(buffer); - var j = new b(buffer); - var k = new c(buffer); - var l = new d(buffer); - var m = new e(buffer); - var n = new f(buffer); - var o = new g(buffer); - var p = new h(buffer); - var q = global.byteLength; - var r = env.STACKTOP | 0; - var s = env.STACK_MAX | 0; - var t = env.tempDoublePtr | 0; - var u = env.ABORT | 0; - var v = 0; - var w = 0; - var x = 0; - var y = 0; - var z = global.NaN, A = global.Infinity; - var B = 0, C = 0, D = 0, E = 0, F = 0.0, G = 0, H = 0, I = 0, J = 0.0; - var K = 0; - var L = 0; - var M = 0; - var N = 0; - var O = 0; - var P = 0; - var Q = 0; - var R = 0; - var S = 0; - var T = 0; - var U = global.Math.floor; - var V = global.Math.abs; - var W = global.Math.sqrt; - var X = global.Math.pow; - var Y = global.Math.cos; - var Z = global.Math.sin; - var _ = global.Math.tan; - var $ = global.Math.acos; - var aa = global.Math.asin; - var ba = global.Math.atan; - var ca = global.Math.atan2; - var da = global.Math.exp; - var ea = global.Math.log; - var fa = global.Math.ceil; - var ga = global.Math.imul; - var ha = global.Math.min; - var ia = global.Math.clz32; - var ja = env.abort; - var ka = env.assert; - var la = env.invoke_ii; - var ma = env.invoke_iiii; - var na = env.invoke_vi; - var oa = env._pthread_cleanup_pop; - var pa = env.___lock; - var qa = env._abort; - var ra = env._pthread_cleanup_push; - var sa = env.___syscall6; - var ta = env._sbrk; - var ua = env.___syscall140; - var va = env._emscripten_memcpy_big; - var wa = env.___syscall54; - var xa = env.___unlock; - var ya = env.___syscall146; - var za = 0.0; - function Aa(newBuffer) { - if (q(newBuffer) & 16777215 || q(newBuffer) <= 16777215 || q(newBuffer) > 2147483648) return false; - i = new a(newBuffer); - j = new b(newBuffer); - k = new c(newBuffer); - l = new d(newBuffer); - m = new e(newBuffer); - n = new f(newBuffer); - o = new g(newBuffer); - p = new h(newBuffer); - buffer = newBuffer; - return true; - } - -// EMSCRIPTEN_START_FUNCS - -function eb(a) { - a = a | 0; - var b = 0, c = 0, d = 0, e = 0, f = 0, g = 0, h = 0, i = 0, j = 0, l = 0, m = 0, n = 0, o = 0, p = 0, q = 0, s = 0, t = 0, u = 0, v = 0, w = 0, x = 0, y = 0, z = 0, A = 0, B = 0, C = 0, D = 0, E = 0, F = 0, G = 0, H = 0, I = 0, J = 0, K = 0, L = 0, M = 0, N = 0, O = 0, P = 0, Q = 0, R = 0, S = 0, T = 0, U = 0, V = 0, W = 0, X = 0, Y = 0, Z = 0, _ = 0, $ = 0, aa = 0, ba = 0, ca = 0, da = 0, ea = 0, fa = 0, ga = 0, ha = 0, ia = 0, ja = 0, ka = 0, la = 0, ma = 0, na = 0, oa = 0, pa = 0, ra = 0, sa = 0, ua = 0, va = 0, wa = 0, xa = 0, ya = 0, za = 0, Aa = 0, Ba = 0, Ca = 0, Da = 0, Ea = 0, Fa = 0, Ga = 0, Ha = 0, Ia = 0, Ja = 0, Ka = 0, La = 0, Ma = 0, Na = 0, Oa = 0, Pa = 0, Ra = 0, Sa = 0; - b = r; - r = r + 16 | 0; - c = b; - do if (a >>> 0 < 245) { - d = a >>> 0 < 11 ? 16 : a + 11 & -8; - e = d >>> 3; - f = k[302] | 0; - g = f >>> e; - if (g & 3 | 0) { - h = (g & 1 ^ 1) + e | 0; - i = 1248 + (h << 1 << 2) | 0; - j = i + 8 | 0; - l = k[j >> 2] | 0; - m = l + 8 | 0; - n = k[m >> 2] | 0; - do if ((i | 0) == (n | 0)) k[302] = f & ~(1 << h); else { - if (n >>> 0 < (k[306] | 0) >>> 0) qa(); - o = n + 12 | 0; - if ((k[o >> 2] | 0) == (l | 0)) { - k[o >> 2] = i; - k[j >> 2] = n; - break; - } else qa(); - } while (0); - n = h << 3; - k[l + 4 >> 2] = n | 3; - j = l + n + 4 | 0; - k[j >> 2] = k[j >> 2] | 1; - p = m; - r = b; - return p | 0; - } - j = k[304] | 0; - if (d >>> 0 > j >>> 0) { - if (g | 0) { - n = 2 << e; - i = g << e & (n | 0 - n); - n = (i & 0 - i) + -1 | 0; - i = n >>> 12 & 16; - o = n >>> i; - n = o >>> 5 & 8; - q = o >>> n; - o = q >>> 2 & 4; - s = q >>> o; - q = s >>> 1 & 2; - t = s >>> q; - s = t >>> 1 & 1; - u = (n | i | o | q | s) + (t >>> s) | 0; - s = 1248 + (u << 1 << 2) | 0; - t = s + 8 | 0; - q = k[t >> 2] | 0; - o = q + 8 | 0; - i = k[o >> 2] | 0; - do if ((s | 0) == (i | 0)) { - k[302] = f & ~(1 << u); - v = j; - } else { - if (i >>> 0 < (k[306] | 0) >>> 0) qa(); - n = i + 12 | 0; - if ((k[n >> 2] | 0) == (q | 0)) { - k[n >> 2] = s; - k[t >> 2] = i; - v = k[304] | 0; - break; - } else qa(); - } while (0); - i = (u << 3) - d | 0; - k[q + 4 >> 2] = d | 3; - t = q + d | 0; - k[t + 4 >> 2] = i | 1; - k[t + i >> 2] = i; - if (v | 0) { - s = k[307] | 0; - j = v >>> 3; - f = 1248 + (j << 1 << 2) | 0; - e = k[302] | 0; - g = 1 << j; - if (!(e & g)) { - k[302] = e | g; - w = f + 8 | 0; - x = f; - } else { - g = f + 8 | 0; - e = k[g >> 2] | 0; - if (e >>> 0 < (k[306] | 0) >>> 0) qa(); else { - w = g; - x = e; - } - } - k[w >> 2] = s; - k[x + 12 >> 2] = s; - k[s + 8 >> 2] = x; - k[s + 12 >> 2] = f; - } - k[304] = i; - k[307] = t; - p = o; - r = b; - return p | 0; - } - t = k[303] | 0; - if (!t) y = d; else { - i = (t & 0 - t) + -1 | 0; - t = i >>> 12 & 16; - f = i >>> t; - i = f >>> 5 & 8; - s = f >>> i; - f = s >>> 2 & 4; - e = s >>> f; - s = e >>> 1 & 2; - g = e >>> s; - e = g >>> 1 & 1; - j = k[1512 + ((i | t | f | s | e) + (g >>> e) << 2) >> 2] | 0; - e = (k[j + 4 >> 2] & -8) - d | 0; - g = j; - s = j; - while (1) { - j = k[g + 16 >> 2] | 0; - if (!j) { - f = k[g + 20 >> 2] | 0; - if (!f) { - z = e; - A = s; - break; - } else B = f; - } else B = j; - j = (k[B + 4 >> 2] & -8) - d | 0; - f = j >>> 0 < e >>> 0; - e = f ? j : e; - g = B; - s = f ? B : s; - } - s = k[306] | 0; - if (A >>> 0 < s >>> 0) qa(); - g = A + d | 0; - if (A >>> 0 >= g >>> 0) qa(); - e = k[A + 24 >> 2] | 0; - o = k[A + 12 >> 2] | 0; - do if ((o | 0) == (A | 0)) { - q = A + 20 | 0; - u = k[q >> 2] | 0; - if (!u) { - f = A + 16 | 0; - j = k[f >> 2] | 0; - if (!j) { - C = 0; - break; - } else { - D = j; - E = f; - } - } else { - D = u; - E = q; - } - while (1) { - q = D + 20 | 0; - u = k[q >> 2] | 0; - if (u | 0) { - D = u; - E = q; - continue; - } - q = D + 16 | 0; - u = k[q >> 2] | 0; - if (!u) { - F = D; - G = E; - break; - } else { - D = u; - E = q; - } - } - if (G >>> 0 < s >>> 0) qa(); else { - k[G >> 2] = 0; - C = F; - break; - } - } else { - q = k[A + 8 >> 2] | 0; - if (q >>> 0 < s >>> 0) qa(); - u = q + 12 | 0; - if ((k[u >> 2] | 0) != (A | 0)) qa(); - f = o + 8 | 0; - if ((k[f >> 2] | 0) == (A | 0)) { - k[u >> 2] = o; - k[f >> 2] = q; - C = o; - break; - } else qa(); - } while (0); - do if (e | 0) { - o = k[A + 28 >> 2] | 0; - s = 1512 + (o << 2) | 0; - if ((A | 0) == (k[s >> 2] | 0)) { - k[s >> 2] = C; - if (!C) { - k[303] = k[303] & ~(1 << o); - break; - } - } else { - if (e >>> 0 < (k[306] | 0) >>> 0) qa(); - o = e + 16 | 0; - if ((k[o >> 2] | 0) == (A | 0)) k[o >> 2] = C; else k[e + 20 >> 2] = C; - if (!C) break; - } - o = k[306] | 0; - if (C >>> 0 < o >>> 0) qa(); - k[C + 24 >> 2] = e; - s = k[A + 16 >> 2] | 0; - do if (s | 0) if (s >>> 0 < o >>> 0) qa(); else { - k[C + 16 >> 2] = s; - k[s + 24 >> 2] = C; - break; - } while (0); - s = k[A + 20 >> 2] | 0; - if (s | 0) if (s >>> 0 < (k[306] | 0) >>> 0) qa(); else { - k[C + 20 >> 2] = s; - k[s + 24 >> 2] = C; - break; - } - } while (0); - if (z >>> 0 < 16) { - e = z + d | 0; - k[A + 4 >> 2] = e | 3; - s = A + e + 4 | 0; - k[s >> 2] = k[s >> 2] | 1; - } else { - k[A + 4 >> 2] = d | 3; - k[g + 4 >> 2] = z | 1; - k[g + z >> 2] = z; - s = k[304] | 0; - if (s | 0) { - e = k[307] | 0; - o = s >>> 3; - s = 1248 + (o << 1 << 2) | 0; - q = k[302] | 0; - f = 1 << o; - if (!(q & f)) { - k[302] = q | f; - H = s + 8 | 0; - I = s; - } else { - f = s + 8 | 0; - q = k[f >> 2] | 0; - if (q >>> 0 < (k[306] | 0) >>> 0) qa(); else { - H = f; - I = q; - } - } - k[H >> 2] = e; - k[I + 12 >> 2] = e; - k[e + 8 >> 2] = I; - k[e + 12 >> 2] = s; - } - k[304] = z; - k[307] = g; - } - p = A + 8 | 0; - r = b; - return p | 0; - } - } else y = d; - } else if (a >>> 0 > 4294967231) y = -1; else { - s = a + 11 | 0; - e = s & -8; - q = k[303] | 0; - if (!q) y = e; else { - f = 0 - e | 0; - o = s >>> 8; - if (!o) J = 0; else if (e >>> 0 > 16777215) J = 31; else { - s = (o + 1048320 | 0) >>> 16 & 8; - u = o << s; - o = (u + 520192 | 0) >>> 16 & 4; - j = u << o; - u = (j + 245760 | 0) >>> 16 & 2; - t = 14 - (o | s | u) + (j << u >>> 15) | 0; - J = e >>> (t + 7 | 0) & 1 | t << 1; - } - t = k[1512 + (J << 2) >> 2] | 0; - a : do if (!t) { - K = f; - L = 0; - M = 0; - N = 86; - } else { - u = f; - j = 0; - s = e << ((J | 0) == 31 ? 0 : 25 - (J >>> 1) | 0); - o = t; - i = 0; - while (1) { - m = k[o + 4 >> 2] & -8; - l = m - e | 0; - if (l >>> 0 < u >>> 0) if ((m | 0) == (e | 0)) { - O = l; - P = o; - Q = o; - N = 90; - break a; - } else { - R = l; - S = o; - } else { - R = u; - S = i; - } - l = k[o + 20 >> 2] | 0; - o = k[o + 16 + (s >>> 31 << 2) >> 2] | 0; - m = (l | 0) == 0 | (l | 0) == (o | 0) ? j : l; - l = (o | 0) == 0; - if (l) { - K = R; - L = m; - M = S; - N = 86; - break; - } else { - u = R; - j = m; - s = s << (l & 1 ^ 1); - i = S; - } - } - } while (0); - if ((N | 0) == 86) { - if ((L | 0) == 0 & (M | 0) == 0) { - t = 2 << J; - f = q & (t | 0 - t); - if (!f) { - y = e; - break; - } - t = (f & 0 - f) + -1 | 0; - f = t >>> 12 & 16; - d = t >>> f; - t = d >>> 5 & 8; - g = d >>> t; - d = g >>> 2 & 4; - i = g >>> d; - g = i >>> 1 & 2; - s = i >>> g; - i = s >>> 1 & 1; - T = k[1512 + ((t | f | d | g | i) + (s >>> i) << 2) >> 2] | 0; - } else T = L; - if (!T) { - U = K; - V = M; - } else { - O = K; - P = T; - Q = M; - N = 90; - } - } - if ((N | 0) == 90) while (1) { - N = 0; - i = (k[P + 4 >> 2] & -8) - e | 0; - s = i >>> 0 < O >>> 0; - g = s ? i : O; - i = s ? P : Q; - s = k[P + 16 >> 2] | 0; - if (s | 0) { - O = g; - P = s; - Q = i; - N = 90; - continue; - } - P = k[P + 20 >> 2] | 0; - if (!P) { - U = g; - V = i; - break; - } else { - O = g; - Q = i; - N = 90; - } - } - if (!V) y = e; else if (U >>> 0 < ((k[304] | 0) - e | 0) >>> 0) { - q = k[306] | 0; - if (V >>> 0 < q >>> 0) qa(); - i = V + e | 0; - if (V >>> 0 >= i >>> 0) qa(); - g = k[V + 24 >> 2] | 0; - s = k[V + 12 >> 2] | 0; - do if ((s | 0) == (V | 0)) { - d = V + 20 | 0; - f = k[d >> 2] | 0; - if (!f) { - t = V + 16 | 0; - j = k[t >> 2] | 0; - if (!j) { - W = 0; - break; - } else { - X = j; - Y = t; - } - } else { - X = f; - Y = d; - } - while (1) { - d = X + 20 | 0; - f = k[d >> 2] | 0; - if (f | 0) { - X = f; - Y = d; - continue; - } - d = X + 16 | 0; - f = k[d >> 2] | 0; - if (!f) { - Z = X; - _ = Y; - break; - } else { - X = f; - Y = d; - } - } - if (_ >>> 0 < q >>> 0) qa(); else { - k[_ >> 2] = 0; - W = Z; - break; - } - } else { - d = k[V + 8 >> 2] | 0; - if (d >>> 0 < q >>> 0) qa(); - f = d + 12 | 0; - if ((k[f >> 2] | 0) != (V | 0)) qa(); - t = s + 8 | 0; - if ((k[t >> 2] | 0) == (V | 0)) { - k[f >> 2] = s; - k[t >> 2] = d; - W = s; - break; - } else qa(); - } while (0); - do if (g | 0) { - s = k[V + 28 >> 2] | 0; - q = 1512 + (s << 2) | 0; - if ((V | 0) == (k[q >> 2] | 0)) { - k[q >> 2] = W; - if (!W) { - k[303] = k[303] & ~(1 << s); - break; - } - } else { - if (g >>> 0 < (k[306] | 0) >>> 0) qa(); - s = g + 16 | 0; - if ((k[s >> 2] | 0) == (V | 0)) k[s >> 2] = W; else k[g + 20 >> 2] = W; - if (!W) break; - } - s = k[306] | 0; - if (W >>> 0 < s >>> 0) qa(); - k[W + 24 >> 2] = g; - q = k[V + 16 >> 2] | 0; - do if (q | 0) if (q >>> 0 < s >>> 0) qa(); else { - k[W + 16 >> 2] = q; - k[q + 24 >> 2] = W; - break; - } while (0); - q = k[V + 20 >> 2] | 0; - if (q | 0) if (q >>> 0 < (k[306] | 0) >>> 0) qa(); else { - k[W + 20 >> 2] = q; - k[q + 24 >> 2] = W; - break; - } - } while (0); - do if (U >>> 0 < 16) { - g = U + e | 0; - k[V + 4 >> 2] = g | 3; - q = V + g + 4 | 0; - k[q >> 2] = k[q >> 2] | 1; - } else { - k[V + 4 >> 2] = e | 3; - k[i + 4 >> 2] = U | 1; - k[i + U >> 2] = U; - q = U >>> 3; - if (U >>> 0 < 256) { - g = 1248 + (q << 1 << 2) | 0; - s = k[302] | 0; - d = 1 << q; - if (!(s & d)) { - k[302] = s | d; - $ = g + 8 | 0; - aa = g; - } else { - d = g + 8 | 0; - s = k[d >> 2] | 0; - if (s >>> 0 < (k[306] | 0) >>> 0) qa(); else { - $ = d; - aa = s; - } - } - k[$ >> 2] = i; - k[aa + 12 >> 2] = i; - k[i + 8 >> 2] = aa; - k[i + 12 >> 2] = g; - break; - } - g = U >>> 8; - if (!g) ba = 0; else if (U >>> 0 > 16777215) ba = 31; else { - s = (g + 1048320 | 0) >>> 16 & 8; - d = g << s; - g = (d + 520192 | 0) >>> 16 & 4; - q = d << g; - d = (q + 245760 | 0) >>> 16 & 2; - t = 14 - (g | s | d) + (q << d >>> 15) | 0; - ba = U >>> (t + 7 | 0) & 1 | t << 1; - } - t = 1512 + (ba << 2) | 0; - k[i + 28 >> 2] = ba; - d = i + 16 | 0; - k[d + 4 >> 2] = 0; - k[d >> 2] = 0; - d = k[303] | 0; - q = 1 << ba; - if (!(d & q)) { - k[303] = d | q; - k[t >> 2] = i; - k[i + 24 >> 2] = t; - k[i + 12 >> 2] = i; - k[i + 8 >> 2] = i; - break; - } - q = U << ((ba | 0) == 31 ? 0 : 25 - (ba >>> 1) | 0); - d = k[t >> 2] | 0; - while (1) { - if ((k[d + 4 >> 2] & -8 | 0) == (U | 0)) { - ca = d; - N = 148; - break; - } - t = d + 16 + (q >>> 31 << 2) | 0; - s = k[t >> 2] | 0; - if (!s) { - da = t; - ea = d; - N = 145; - break; - } else { - q = q << 1; - d = s; - } - } - if ((N | 0) == 145) if (da >>> 0 < (k[306] | 0) >>> 0) qa(); else { - k[da >> 2] = i; - k[i + 24 >> 2] = ea; - k[i + 12 >> 2] = i; - k[i + 8 >> 2] = i; - break; - } else if ((N | 0) == 148) { - d = ca + 8 | 0; - q = k[d >> 2] | 0; - s = k[306] | 0; - if (q >>> 0 >= s >>> 0 & ca >>> 0 >= s >>> 0) { - k[q + 12 >> 2] = i; - k[d >> 2] = i; - k[i + 8 >> 2] = q; - k[i + 12 >> 2] = ca; - k[i + 24 >> 2] = 0; - break; - } else qa(); - } - } while (0); - p = V + 8 | 0; - r = b; - return p | 0; - } else y = e; - } - } while (0); - V = k[304] | 0; - if (V >>> 0 >= y >>> 0) { - ca = V - y | 0; - ea = k[307] | 0; - if (ca >>> 0 > 15) { - da = ea + y | 0; - k[307] = da; - k[304] = ca; - k[da + 4 >> 2] = ca | 1; - k[da + ca >> 2] = ca; - k[ea + 4 >> 2] = y | 3; - } else { - k[304] = 0; - k[307] = 0; - k[ea + 4 >> 2] = V | 3; - ca = ea + V + 4 | 0; - k[ca >> 2] = k[ca >> 2] | 1; - } - p = ea + 8 | 0; - r = b; - return p | 0; - } - ea = k[305] | 0; - if (ea >>> 0 > y >>> 0) { - ca = ea - y | 0; - k[305] = ca; - ea = k[308] | 0; - V = ea + y | 0; - k[308] = V; - k[V + 4 >> 2] = ca | 1; - k[ea + 4 >> 2] = y | 3; - p = ea + 8 | 0; - r = b; - return p | 0; - } - if (!(k[420] | 0)) { - k[422] = 4096; - k[421] = 4096; - k[423] = -1; - k[424] = -1; - k[425] = 0; - k[413] = 0; - ea = c & -16 ^ 1431655768; - k[c >> 2] = ea; - k[420] = ea; - } - ea = y + 48 | 0; - c = k[422] | 0; - ca = y + 47 | 0; - V = c + ca | 0; - da = 0 - c | 0; - c = V & da; - if (c >>> 0 <= y >>> 0) { - p = 0; - r = b; - return p | 0; - } - U = k[412] | 0; - if (U | 0) { - ba = k[410] | 0; - aa = ba + c | 0; - if (aa >>> 0 <= ba >>> 0 | aa >>> 0 > U >>> 0) { - p = 0; - r = b; - return p | 0; - } - } - b : do if (!(k[413] & 4)) { - U = k[308] | 0; - c : do if (!U) N = 171; else { - aa = 1656; - while (1) { - ba = k[aa >> 2] | 0; - if (ba >>> 0 <= U >>> 0) { - $ = aa + 4 | 0; - if ((ba + (k[$ >> 2] | 0) | 0) >>> 0 > U >>> 0) { - fa = aa; - ga = $; - break; - } - } - aa = k[aa + 8 >> 2] | 0; - if (!aa) { - N = 171; - break c; - } - } - aa = V - (k[305] | 0) & da; - if (aa >>> 0 < 2147483647) { - $ = ta(aa | 0) | 0; - if (($ | 0) == ((k[fa >> 2] | 0) + (k[ga >> 2] | 0) | 0)) { - if (($ | 0) != (-1 | 0)) { - ha = $; - ia = aa; - N = 191; - break b; - } - } else { - ja = $; - ka = aa; - N = 181; - } - } - } while (0); - do if ((N | 0) == 171) { - U = ta(0) | 0; - if ((U | 0) != (-1 | 0)) { - e = U; - aa = k[421] | 0; - $ = aa + -1 | 0; - if (!($ & e)) la = c; else la = c - e + ($ + e & 0 - aa) | 0; - aa = k[410] | 0; - e = aa + la | 0; - if (la >>> 0 > y >>> 0 & la >>> 0 < 2147483647) { - $ = k[412] | 0; - if ($ | 0) if (e >>> 0 <= aa >>> 0 | e >>> 0 > $ >>> 0) break; - $ = ta(la | 0) | 0; - if (($ | 0) == (U | 0)) { - ha = U; - ia = la; - N = 191; - break b; - } else { - ja = $; - ka = la; - N = 181; - } - } - } - } while (0); - d : do if ((N | 0) == 181) { - $ = 0 - ka | 0; - do if (ea >>> 0 > ka >>> 0 & (ka >>> 0 < 2147483647 & (ja | 0) != (-1 | 0))) { - U = k[422] | 0; - e = ca - ka + U & 0 - U; - if (e >>> 0 < 2147483647) if ((ta(e | 0) | 0) == (-1 | 0)) { - ta($ | 0) | 0; - break d; - } else { - ma = e + ka | 0; - break; - } else ma = ka; - } else ma = ka; while (0); - if ((ja | 0) != (-1 | 0)) { - ha = ja; - ia = ma; - N = 191; - break b; - } - } while (0); - k[413] = k[413] | 4; - N = 188; - } else N = 188; while (0); - if ((N | 0) == 188) if (c >>> 0 < 2147483647) { - ma = ta(c | 0) | 0; - c = ta(0) | 0; - if (ma >>> 0 < c >>> 0 & ((ma | 0) != (-1 | 0) & (c | 0) != (-1 | 0))) { - ja = c - ma | 0; - if (ja >>> 0 > (y + 40 | 0) >>> 0) { - ha = ma; - ia = ja; - N = 191; - } - } - } - if ((N | 0) == 191) { - ja = (k[410] | 0) + ia | 0; - k[410] = ja; - if (ja >>> 0 > (k[411] | 0) >>> 0) k[411] = ja; - ja = k[308] | 0; - do if (!ja) { - ma = k[306] | 0; - if ((ma | 0) == 0 | ha >>> 0 < ma >>> 0) k[306] = ha; - k[414] = ha; - k[415] = ia; - k[417] = 0; - k[311] = k[420]; - k[310] = -1; - ma = 0; - do { - c = 1248 + (ma << 1 << 2) | 0; - k[c + 12 >> 2] = c; - k[c + 8 >> 2] = c; - ma = ma + 1 | 0; - } while ((ma | 0) != 32); - ma = ha + 8 | 0; - c = (ma & 7 | 0) == 0 ? 0 : 0 - ma & 7; - ma = ha + c | 0; - ka = ia + -40 - c | 0; - k[308] = ma; - k[305] = ka; - k[ma + 4 >> 2] = ka | 1; - k[ma + ka + 4 >> 2] = 40; - k[309] = k[424]; - } else { - ka = 1656; - do { - ma = k[ka >> 2] | 0; - c = ka + 4 | 0; - ca = k[c >> 2] | 0; - if ((ha | 0) == (ma + ca | 0)) { - na = ma; - oa = c; - pa = ca; - ra = ka; - N = 201; - break; - } - ka = k[ka + 8 >> 2] | 0; - } while ((ka | 0) != 0); - if ((N | 0) == 201) if (!(k[ra + 12 >> 2] & 8)) if (ja >>> 0 < ha >>> 0 & ja >>> 0 >= na >>> 0) { - k[oa >> 2] = pa + ia; - ka = ja + 8 | 0; - ca = (ka & 7 | 0) == 0 ? 0 : 0 - ka & 7; - ka = ja + ca | 0; - c = ia - ca + (k[305] | 0) | 0; - k[308] = ka; - k[305] = c; - k[ka + 4 >> 2] = c | 1; - k[ka + c + 4 >> 2] = 40; - k[309] = k[424]; - break; - } - c = k[306] | 0; - if (ha >>> 0 < c >>> 0) { - k[306] = ha; - sa = ha; - } else sa = c; - c = ha + ia | 0; - ka = 1656; - while (1) { - if ((k[ka >> 2] | 0) == (c | 0)) { - ua = ka; - va = ka; - N = 209; - break; - } - ka = k[ka + 8 >> 2] | 0; - if (!ka) { - wa = 1656; - break; - } - } - if ((N | 0) == 209) if (!(k[va + 12 >> 2] & 8)) { - k[ua >> 2] = ha; - ka = va + 4 | 0; - k[ka >> 2] = (k[ka >> 2] | 0) + ia; - ka = ha + 8 | 0; - ca = ha + ((ka & 7 | 0) == 0 ? 0 : 0 - ka & 7) | 0; - ka = c + 8 | 0; - ma = c + ((ka & 7 | 0) == 0 ? 0 : 0 - ka & 7) | 0; - ka = ca + y | 0; - ea = ma - ca - y | 0; - k[ca + 4 >> 2] = y | 3; - do if ((ma | 0) == (ja | 0)) { - la = (k[305] | 0) + ea | 0; - k[305] = la; - k[308] = ka; - k[ka + 4 >> 2] = la | 1; - } else { - if ((ma | 0) == (k[307] | 0)) { - la = (k[304] | 0) + ea | 0; - k[304] = la; - k[307] = ka; - k[ka + 4 >> 2] = la | 1; - k[ka + la >> 2] = la; - break; - } - la = k[ma + 4 >> 2] | 0; - if ((la & 3 | 0) == 1) { - ga = la & -8; - fa = la >>> 3; - e : do if (la >>> 0 < 256) { - da = k[ma + 8 >> 2] | 0; - V = k[ma + 12 >> 2] | 0; - $ = 1248 + (fa << 1 << 2) | 0; - do if ((da | 0) != ($ | 0)) { - if (da >>> 0 < sa >>> 0) qa(); - if ((k[da + 12 >> 2] | 0) == (ma | 0)) break; - qa(); - } while (0); - if ((V | 0) == (da | 0)) { - k[302] = k[302] & ~(1 << fa); - break; - } - do if ((V | 0) == ($ | 0)) xa = V + 8 | 0; else { - if (V >>> 0 < sa >>> 0) qa(); - e = V + 8 | 0; - if ((k[e >> 2] | 0) == (ma | 0)) { - xa = e; - break; - } - qa(); - } while (0); - k[da + 12 >> 2] = V; - k[xa >> 2] = da; - } else { - $ = k[ma + 24 >> 2] | 0; - e = k[ma + 12 >> 2] | 0; - do if ((e | 0) == (ma | 0)) { - U = ma + 16 | 0; - aa = U + 4 | 0; - ba = k[aa >> 2] | 0; - if (!ba) { - W = k[U >> 2] | 0; - if (!W) { - ya = 0; - break; - } else { - za = W; - Aa = U; - } - } else { - za = ba; - Aa = aa; - } - while (1) { - aa = za + 20 | 0; - ba = k[aa >> 2] | 0; - if (ba | 0) { - za = ba; - Aa = aa; - continue; - } - aa = za + 16 | 0; - ba = k[aa >> 2] | 0; - if (!ba) { - Ba = za; - Ca = Aa; - break; - } else { - za = ba; - Aa = aa; - } - } - if (Ca >>> 0 < sa >>> 0) qa(); else { - k[Ca >> 2] = 0; - ya = Ba; - break; - } - } else { - aa = k[ma + 8 >> 2] | 0; - if (aa >>> 0 < sa >>> 0) qa(); - ba = aa + 12 | 0; - if ((k[ba >> 2] | 0) != (ma | 0)) qa(); - U = e + 8 | 0; - if ((k[U >> 2] | 0) == (ma | 0)) { - k[ba >> 2] = e; - k[U >> 2] = aa; - ya = e; - break; - } else qa(); - } while (0); - if (!$) break; - e = k[ma + 28 >> 2] | 0; - da = 1512 + (e << 2) | 0; - do if ((ma | 0) == (k[da >> 2] | 0)) { - k[da >> 2] = ya; - if (ya | 0) break; - k[303] = k[303] & ~(1 << e); - break e; - } else { - if ($ >>> 0 < (k[306] | 0) >>> 0) qa(); - V = $ + 16 | 0; - if ((k[V >> 2] | 0) == (ma | 0)) k[V >> 2] = ya; else k[$ + 20 >> 2] = ya; - if (!ya) break e; - } while (0); - e = k[306] | 0; - if (ya >>> 0 < e >>> 0) qa(); - k[ya + 24 >> 2] = $; - da = ma + 16 | 0; - V = k[da >> 2] | 0; - do if (V | 0) if (V >>> 0 < e >>> 0) qa(); else { - k[ya + 16 >> 2] = V; - k[V + 24 >> 2] = ya; - break; - } while (0); - V = k[da + 4 >> 2] | 0; - if (!V) break; - if (V >>> 0 < (k[306] | 0) >>> 0) qa(); else { - k[ya + 20 >> 2] = V; - k[V + 24 >> 2] = ya; - break; - } - } while (0); - Da = ma + ga | 0; - Ea = ga + ea | 0; - } else { - Da = ma; - Ea = ea; - } - fa = Da + 4 | 0; - k[fa >> 2] = k[fa >> 2] & -2; - k[ka + 4 >> 2] = Ea | 1; - k[ka + Ea >> 2] = Ea; - fa = Ea >>> 3; - if (Ea >>> 0 < 256) { - la = 1248 + (fa << 1 << 2) | 0; - V = k[302] | 0; - e = 1 << fa; - do if (!(V & e)) { - k[302] = V | e; - Fa = la + 8 | 0; - Ga = la; - } else { - fa = la + 8 | 0; - $ = k[fa >> 2] | 0; - if ($ >>> 0 >= (k[306] | 0) >>> 0) { - Fa = fa; - Ga = $; - break; - } - qa(); - } while (0); - k[Fa >> 2] = ka; - k[Ga + 12 >> 2] = ka; - k[ka + 8 >> 2] = Ga; - k[ka + 12 >> 2] = la; - break; - } - e = Ea >>> 8; - do if (!e) Ha = 0; else { - if (Ea >>> 0 > 16777215) { - Ha = 31; - break; - } - V = (e + 1048320 | 0) >>> 16 & 8; - ga = e << V; - $ = (ga + 520192 | 0) >>> 16 & 4; - fa = ga << $; - ga = (fa + 245760 | 0) >>> 16 & 2; - aa = 14 - ($ | V | ga) + (fa << ga >>> 15) | 0; - Ha = Ea >>> (aa + 7 | 0) & 1 | aa << 1; - } while (0); - e = 1512 + (Ha << 2) | 0; - k[ka + 28 >> 2] = Ha; - la = ka + 16 | 0; - k[la + 4 >> 2] = 0; - k[la >> 2] = 0; - la = k[303] | 0; - aa = 1 << Ha; - if (!(la & aa)) { - k[303] = la | aa; - k[e >> 2] = ka; - k[ka + 24 >> 2] = e; - k[ka + 12 >> 2] = ka; - k[ka + 8 >> 2] = ka; - break; - } - aa = Ea << ((Ha | 0) == 31 ? 0 : 25 - (Ha >>> 1) | 0); - la = k[e >> 2] | 0; - while (1) { - if ((k[la + 4 >> 2] & -8 | 0) == (Ea | 0)) { - Ia = la; - N = 279; - break; - } - e = la + 16 + (aa >>> 31 << 2) | 0; - ga = k[e >> 2] | 0; - if (!ga) { - Ja = e; - Ka = la; - N = 276; - break; - } else { - aa = aa << 1; - la = ga; - } - } - if ((N | 0) == 276) if (Ja >>> 0 < (k[306] | 0) >>> 0) qa(); else { - k[Ja >> 2] = ka; - k[ka + 24 >> 2] = Ka; - k[ka + 12 >> 2] = ka; - k[ka + 8 >> 2] = ka; - break; - } else if ((N | 0) == 279) { - la = Ia + 8 | 0; - aa = k[la >> 2] | 0; - ga = k[306] | 0; - if (aa >>> 0 >= ga >>> 0 & Ia >>> 0 >= ga >>> 0) { - k[aa + 12 >> 2] = ka; - k[la >> 2] = ka; - k[ka + 8 >> 2] = aa; - k[ka + 12 >> 2] = Ia; - k[ka + 24 >> 2] = 0; - break; - } else qa(); - } - } while (0); - p = ca + 8 | 0; - r = b; - return p | 0; - } else wa = 1656; - while (1) { - ka = k[wa >> 2] | 0; - if (ka >>> 0 <= ja >>> 0) { - ea = ka + (k[wa + 4 >> 2] | 0) | 0; - if (ea >>> 0 > ja >>> 0) { - La = ea; - break; - } - } - wa = k[wa + 8 >> 2] | 0; - } - ca = La + -47 | 0; - ea = ca + 8 | 0; - ka = ca + ((ea & 7 | 0) == 0 ? 0 : 0 - ea & 7) | 0; - ea = ja + 16 | 0; - ca = ka >>> 0 < ea >>> 0 ? ja : ka; - ka = ca + 8 | 0; - ma = ha + 8 | 0; - c = (ma & 7 | 0) == 0 ? 0 : 0 - ma & 7; - ma = ha + c | 0; - aa = ia + -40 - c | 0; - k[308] = ma; - k[305] = aa; - k[ma + 4 >> 2] = aa | 1; - k[ma + aa + 4 >> 2] = 40; - k[309] = k[424]; - aa = ca + 4 | 0; - k[aa >> 2] = 27; - k[ka >> 2] = k[414]; - k[ka + 4 >> 2] = k[415]; - k[ka + 8 >> 2] = k[416]; - k[ka + 12 >> 2] = k[417]; - k[414] = ha; - k[415] = ia; - k[417] = 0; - k[416] = ka; - ka = ca + 24 | 0; - do { - ka = ka + 4 | 0; - k[ka >> 2] = 7; - } while ((ka + 4 | 0) >>> 0 < La >>> 0); - if ((ca | 0) != (ja | 0)) { - ka = ca - ja | 0; - k[aa >> 2] = k[aa >> 2] & -2; - k[ja + 4 >> 2] = ka | 1; - k[ca >> 2] = ka; - ma = ka >>> 3; - if (ka >>> 0 < 256) { - c = 1248 + (ma << 1 << 2) | 0; - la = k[302] | 0; - ga = 1 << ma; - if (!(la & ga)) { - k[302] = la | ga; - Ma = c + 8 | 0; - Na = c; - } else { - ga = c + 8 | 0; - la = k[ga >> 2] | 0; - if (la >>> 0 < (k[306] | 0) >>> 0) qa(); else { - Ma = ga; - Na = la; - } - } - k[Ma >> 2] = ja; - k[Na + 12 >> 2] = ja; - k[ja + 8 >> 2] = Na; - k[ja + 12 >> 2] = c; - break; - } - c = ka >>> 8; - if (!c) Oa = 0; else if (ka >>> 0 > 16777215) Oa = 31; else { - la = (c + 1048320 | 0) >>> 16 & 8; - ga = c << la; - c = (ga + 520192 | 0) >>> 16 & 4; - ma = ga << c; - ga = (ma + 245760 | 0) >>> 16 & 2; - e = 14 - (c | la | ga) + (ma << ga >>> 15) | 0; - Oa = ka >>> (e + 7 | 0) & 1 | e << 1; - } - e = 1512 + (Oa << 2) | 0; - k[ja + 28 >> 2] = Oa; - k[ja + 20 >> 2] = 0; - k[ea >> 2] = 0; - ga = k[303] | 0; - ma = 1 << Oa; - if (!(ga & ma)) { - k[303] = ga | ma; - k[e >> 2] = ja; - k[ja + 24 >> 2] = e; - k[ja + 12 >> 2] = ja; - k[ja + 8 >> 2] = ja; - break; - } - ma = ka << ((Oa | 0) == 31 ? 0 : 25 - (Oa >>> 1) | 0); - ga = k[e >> 2] | 0; - while (1) { - if ((k[ga + 4 >> 2] & -8 | 0) == (ka | 0)) { - Pa = ga; - N = 305; - break; - } - e = ga + 16 + (ma >>> 31 << 2) | 0; - la = k[e >> 2] | 0; - if (!la) { - Ra = e; - Sa = ga; - N = 302; - break; - } else { - ma = ma << 1; - ga = la; - } - } - if ((N | 0) == 302) if (Ra >>> 0 < (k[306] | 0) >>> 0) qa(); else { - k[Ra >> 2] = ja; - k[ja + 24 >> 2] = Sa; - k[ja + 12 >> 2] = ja; - k[ja + 8 >> 2] = ja; - break; - } else if ((N | 0) == 305) { - ga = Pa + 8 | 0; - ma = k[ga >> 2] | 0; - ka = k[306] | 0; - if (ma >>> 0 >= ka >>> 0 & Pa >>> 0 >= ka >>> 0) { - k[ma + 12 >> 2] = ja; - k[ga >> 2] = ja; - k[ja + 8 >> 2] = ma; - k[ja + 12 >> 2] = Pa; - k[ja + 24 >> 2] = 0; - break; - } else qa(); - } - } - } while (0); - ja = k[305] | 0; - if (ja >>> 0 > y >>> 0) { - Pa = ja - y | 0; - k[305] = Pa; - ja = k[308] | 0; - N = ja + y | 0; - k[308] = N; - k[N + 4 >> 2] = Pa | 1; - k[ja + 4 >> 2] = y | 3; - p = ja + 8 | 0; - r = b; - return p | 0; - } - } - ja = Qa() | 0; - k[ja >> 2] = 12; - p = 0; - r = b; - return p | 0; -} - -function fb(a) { - a = a | 0; - var b = 0, c = 0, d = 0, e = 0, f = 0, g = 0, h = 0, i = 0, j = 0, l = 0, m = 0, n = 0, o = 0, p = 0, q = 0, r = 0, s = 0, t = 0, u = 0, v = 0, w = 0, x = 0, y = 0, z = 0, A = 0, B = 0, C = 0, D = 0, E = 0, F = 0, G = 0, H = 0, I = 0, J = 0, K = 0, L = 0; - if (!a) return; - b = a + -8 | 0; - c = k[306] | 0; - if (b >>> 0 < c >>> 0) qa(); - d = k[a + -4 >> 2] | 0; - a = d & 3; - if ((a | 0) == 1) qa(); - e = d & -8; - f = b + e | 0; - do if (!(d & 1)) { - g = k[b >> 2] | 0; - if (!a) return; - h = b + (0 - g) | 0; - i = g + e | 0; - if (h >>> 0 < c >>> 0) qa(); - if ((h | 0) == (k[307] | 0)) { - j = f + 4 | 0; - l = k[j >> 2] | 0; - if ((l & 3 | 0) != 3) { - m = h; - n = i; - break; - } - k[304] = i; - k[j >> 2] = l & -2; - k[h + 4 >> 2] = i | 1; - k[h + i >> 2] = i; - return; - } - l = g >>> 3; - if (g >>> 0 < 256) { - g = k[h + 8 >> 2] | 0; - j = k[h + 12 >> 2] | 0; - o = 1248 + (l << 1 << 2) | 0; - if ((g | 0) != (o | 0)) { - if (g >>> 0 < c >>> 0) qa(); - if ((k[g + 12 >> 2] | 0) != (h | 0)) qa(); - } - if ((j | 0) == (g | 0)) { - k[302] = k[302] & ~(1 << l); - m = h; - n = i; - break; - } - if ((j | 0) == (o | 0)) p = j + 8 | 0; else { - if (j >>> 0 < c >>> 0) qa(); - o = j + 8 | 0; - if ((k[o >> 2] | 0) == (h | 0)) p = o; else qa(); - } - k[g + 12 >> 2] = j; - k[p >> 2] = g; - m = h; - n = i; - break; - } - g = k[h + 24 >> 2] | 0; - j = k[h + 12 >> 2] | 0; - do if ((j | 0) == (h | 0)) { - o = h + 16 | 0; - l = o + 4 | 0; - q = k[l >> 2] | 0; - if (!q) { - r = k[o >> 2] | 0; - if (!r) { - s = 0; - break; - } else { - t = r; - u = o; - } - } else { - t = q; - u = l; - } - while (1) { - l = t + 20 | 0; - q = k[l >> 2] | 0; - if (q | 0) { - t = q; - u = l; - continue; - } - l = t + 16 | 0; - q = k[l >> 2] | 0; - if (!q) { - v = t; - w = u; - break; - } else { - t = q; - u = l; - } - } - if (w >>> 0 < c >>> 0) qa(); else { - k[w >> 2] = 0; - s = v; - break; - } - } else { - l = k[h + 8 >> 2] | 0; - if (l >>> 0 < c >>> 0) qa(); - q = l + 12 | 0; - if ((k[q >> 2] | 0) != (h | 0)) qa(); - o = j + 8 | 0; - if ((k[o >> 2] | 0) == (h | 0)) { - k[q >> 2] = j; - k[o >> 2] = l; - s = j; - break; - } else qa(); - } while (0); - if (!g) { - m = h; - n = i; - } else { - j = k[h + 28 >> 2] | 0; - l = 1512 + (j << 2) | 0; - if ((h | 0) == (k[l >> 2] | 0)) { - k[l >> 2] = s; - if (!s) { - k[303] = k[303] & ~(1 << j); - m = h; - n = i; - break; - } - } else { - if (g >>> 0 < (k[306] | 0) >>> 0) qa(); - j = g + 16 | 0; - if ((k[j >> 2] | 0) == (h | 0)) k[j >> 2] = s; else k[g + 20 >> 2] = s; - if (!s) { - m = h; - n = i; - break; - } - } - j = k[306] | 0; - if (s >>> 0 < j >>> 0) qa(); - k[s + 24 >> 2] = g; - l = h + 16 | 0; - o = k[l >> 2] | 0; - do if (o | 0) if (o >>> 0 < j >>> 0) qa(); else { - k[s + 16 >> 2] = o; - k[o + 24 >> 2] = s; - break; - } while (0); - o = k[l + 4 >> 2] | 0; - if (!o) { - m = h; - n = i; - } else if (o >>> 0 < (k[306] | 0) >>> 0) qa(); else { - k[s + 20 >> 2] = o; - k[o + 24 >> 2] = s; - m = h; - n = i; - break; - } - } - } else { - m = b; - n = e; - } while (0); - if (m >>> 0 >= f >>> 0) qa(); - e = f + 4 | 0; - b = k[e >> 2] | 0; - if (!(b & 1)) qa(); - if (!(b & 2)) { - if ((f | 0) == (k[308] | 0)) { - s = (k[305] | 0) + n | 0; - k[305] = s; - k[308] = m; - k[m + 4 >> 2] = s | 1; - if ((m | 0) != (k[307] | 0)) return; - k[307] = 0; - k[304] = 0; - return; - } - if ((f | 0) == (k[307] | 0)) { - s = (k[304] | 0) + n | 0; - k[304] = s; - k[307] = m; - k[m + 4 >> 2] = s | 1; - k[m + s >> 2] = s; - return; - } - s = (b & -8) + n | 0; - c = b >>> 3; - do if (b >>> 0 < 256) { - v = k[f + 8 >> 2] | 0; - w = k[f + 12 >> 2] | 0; - u = 1248 + (c << 1 << 2) | 0; - if ((v | 0) != (u | 0)) { - if (v >>> 0 < (k[306] | 0) >>> 0) qa(); - if ((k[v + 12 >> 2] | 0) != (f | 0)) qa(); - } - if ((w | 0) == (v | 0)) { - k[302] = k[302] & ~(1 << c); - break; - } - if ((w | 0) == (u | 0)) x = w + 8 | 0; else { - if (w >>> 0 < (k[306] | 0) >>> 0) qa(); - u = w + 8 | 0; - if ((k[u >> 2] | 0) == (f | 0)) x = u; else qa(); - } - k[v + 12 >> 2] = w; - k[x >> 2] = v; - } else { - v = k[f + 24 >> 2] | 0; - w = k[f + 12 >> 2] | 0; - do if ((w | 0) == (f | 0)) { - u = f + 16 | 0; - t = u + 4 | 0; - p = k[t >> 2] | 0; - if (!p) { - a = k[u >> 2] | 0; - if (!a) { - y = 0; - break; - } else { - z = a; - A = u; - } - } else { - z = p; - A = t; - } - while (1) { - t = z + 20 | 0; - p = k[t >> 2] | 0; - if (p | 0) { - z = p; - A = t; - continue; - } - t = z + 16 | 0; - p = k[t >> 2] | 0; - if (!p) { - B = z; - C = A; - break; - } else { - z = p; - A = t; - } - } - if (C >>> 0 < (k[306] | 0) >>> 0) qa(); else { - k[C >> 2] = 0; - y = B; - break; - } - } else { - t = k[f + 8 >> 2] | 0; - if (t >>> 0 < (k[306] | 0) >>> 0) qa(); - p = t + 12 | 0; - if ((k[p >> 2] | 0) != (f | 0)) qa(); - u = w + 8 | 0; - if ((k[u >> 2] | 0) == (f | 0)) { - k[p >> 2] = w; - k[u >> 2] = t; - y = w; - break; - } else qa(); - } while (0); - if (v | 0) { - w = k[f + 28 >> 2] | 0; - i = 1512 + (w << 2) | 0; - if ((f | 0) == (k[i >> 2] | 0)) { - k[i >> 2] = y; - if (!y) { - k[303] = k[303] & ~(1 << w); - break; - } - } else { - if (v >>> 0 < (k[306] | 0) >>> 0) qa(); - w = v + 16 | 0; - if ((k[w >> 2] | 0) == (f | 0)) k[w >> 2] = y; else k[v + 20 >> 2] = y; - if (!y) break; - } - w = k[306] | 0; - if (y >>> 0 < w >>> 0) qa(); - k[y + 24 >> 2] = v; - i = f + 16 | 0; - h = k[i >> 2] | 0; - do if (h | 0) if (h >>> 0 < w >>> 0) qa(); else { - k[y + 16 >> 2] = h; - k[h + 24 >> 2] = y; - break; - } while (0); - h = k[i + 4 >> 2] | 0; - if (h | 0) if (h >>> 0 < (k[306] | 0) >>> 0) qa(); else { - k[y + 20 >> 2] = h; - k[h + 24 >> 2] = y; - break; - } - } - } while (0); - k[m + 4 >> 2] = s | 1; - k[m + s >> 2] = s; - if ((m | 0) == (k[307] | 0)) { - k[304] = s; - return; - } else D = s; - } else { - k[e >> 2] = b & -2; - k[m + 4 >> 2] = n | 1; - k[m + n >> 2] = n; - D = n; - } - n = D >>> 3; - if (D >>> 0 < 256) { - b = 1248 + (n << 1 << 2) | 0; - e = k[302] | 0; - s = 1 << n; - if (!(e & s)) { - k[302] = e | s; - E = b + 8 | 0; - F = b; - } else { - s = b + 8 | 0; - e = k[s >> 2] | 0; - if (e >>> 0 < (k[306] | 0) >>> 0) qa(); else { - E = s; - F = e; - } - } - k[E >> 2] = m; - k[F + 12 >> 2] = m; - k[m + 8 >> 2] = F; - k[m + 12 >> 2] = b; - return; - } - b = D >>> 8; - if (!b) G = 0; else if (D >>> 0 > 16777215) G = 31; else { - F = (b + 1048320 | 0) >>> 16 & 8; - E = b << F; - b = (E + 520192 | 0) >>> 16 & 4; - e = E << b; - E = (e + 245760 | 0) >>> 16 & 2; - s = 14 - (b | F | E) + (e << E >>> 15) | 0; - G = D >>> (s + 7 | 0) & 1 | s << 1; - } - s = 1512 + (G << 2) | 0; - k[m + 28 >> 2] = G; - k[m + 20 >> 2] = 0; - k[m + 16 >> 2] = 0; - E = k[303] | 0; - e = 1 << G; - do if (!(E & e)) { - k[303] = E | e; - k[s >> 2] = m; - k[m + 24 >> 2] = s; - k[m + 12 >> 2] = m; - k[m + 8 >> 2] = m; - } else { - F = D << ((G | 0) == 31 ? 0 : 25 - (G >>> 1) | 0); - b = k[s >> 2] | 0; - while (1) { - if ((k[b + 4 >> 2] & -8 | 0) == (D | 0)) { - H = b; - I = 130; - break; - } - n = b + 16 + (F >>> 31 << 2) | 0; - y = k[n >> 2] | 0; - if (!y) { - J = n; - K = b; - I = 127; - break; - } else { - F = F << 1; - b = y; - } - } - if ((I | 0) == 127) if (J >>> 0 < (k[306] | 0) >>> 0) qa(); else { - k[J >> 2] = m; - k[m + 24 >> 2] = K; - k[m + 12 >> 2] = m; - k[m + 8 >> 2] = m; - break; - } else if ((I | 0) == 130) { - b = H + 8 | 0; - F = k[b >> 2] | 0; - i = k[306] | 0; - if (F >>> 0 >= i >>> 0 & H >>> 0 >= i >>> 0) { - k[F + 12 >> 2] = m; - k[b >> 2] = m; - k[m + 8 >> 2] = F; - k[m + 12 >> 2] = H; - k[m + 24 >> 2] = 0; - break; - } else qa(); - } - } while (0); - m = (k[310] | 0) + -1 | 0; - k[310] = m; - if (!m) L = 1664; else return; - while (1) { - m = k[L >> 2] | 0; - if (!m) break; else L = m + 8 | 0; - } - k[310] = -1; - return; -} - -function Ra(a, b, c) { - a = a | 0; - b = b | 0; - c = c | 0; - var d = 0, e = 0, f = 0, g = 0, h = 0, i = 0, j = 0, l = 0, m = 0, n = 0, o = 0, p = 0, q = 0, s = 0, t = 0, u = 0, v = 0, w = 0, x = 0, y = 0, z = 0; - d = r; - r = r + 48 | 0; - e = d + 16 | 0; - f = d; - g = d + 32 | 0; - h = a + 28 | 0; - i = k[h >> 2] | 0; - k[g >> 2] = i; - j = a + 20 | 0; - l = (k[j >> 2] | 0) - i | 0; - k[g + 4 >> 2] = l; - k[g + 8 >> 2] = b; - k[g + 12 >> 2] = c; - b = a + 60 | 0; - i = a + 44 | 0; - m = g; - g = 2; - n = l + c | 0; - while (1) { - if (!(k[290] | 0)) { - k[e >> 2] = k[b >> 2]; - k[e + 4 >> 2] = m; - k[e + 8 >> 2] = g; - o = Pa(ya(146, e | 0) | 0) | 0; - } else { - ra(1, a | 0); - k[f >> 2] = k[b >> 2]; - k[f + 4 >> 2] = m; - k[f + 8 >> 2] = g; - l = Pa(ya(146, f | 0) | 0) | 0; - oa(0); - o = l; - } - if ((n | 0) == (o | 0)) { - p = 6; - break; - } - if ((o | 0) < 0) { - q = m; - s = g; - p = 8; - break; - } - l = n - o | 0; - t = k[m + 4 >> 2] | 0; - if (o >>> 0 > t >>> 0) { - u = k[i >> 2] | 0; - k[h >> 2] = u; - k[j >> 2] = u; - v = k[m + 12 >> 2] | 0; - w = o - t | 0; - x = m + 8 | 0; - y = g + -1 | 0; - } else if ((g | 0) == 2) { - k[h >> 2] = (k[h >> 2] | 0) + o; - v = t; - w = o; - x = m; - y = 2; - } else { - v = t; - w = o; - x = m; - y = g; - } - k[x >> 2] = (k[x >> 2] | 0) + w; - k[x + 4 >> 2] = v - w; - m = x; - g = y; - n = l; - } - if ((p | 0) == 6) { - n = k[i >> 2] | 0; - k[a + 16 >> 2] = n + (k[a + 48 >> 2] | 0); - i = n; - k[h >> 2] = i; - k[j >> 2] = i; - z = c; - } else if ((p | 0) == 8) { - k[a + 16 >> 2] = 0; - k[h >> 2] = 0; - k[j >> 2] = 0; - k[a >> 2] = k[a >> 2] | 32; - if ((s | 0) == 2) z = 0; else z = c - (k[q + 4 >> 2] | 0) | 0; - } - r = d; - return z | 0; -} - -function Wa(a, b, c) { - a = a | 0; - b = b | 0; - c = c | 0; - var d = 0, e = 0, f = 0, g = 0, h = 0, j = 0, l = 0, m = 0, n = 0, o = 0, p = 0, q = 0; - d = c + 16 | 0; - e = k[d >> 2] | 0; - if (!e) if (!(Xa(c) | 0)) { - f = k[d >> 2] | 0; - g = 5; - } else h = 0; else { - f = e; - g = 5; - } - a : do if ((g | 0) == 5) { - e = c + 20 | 0; - d = k[e >> 2] | 0; - j = d; - if ((f - d | 0) >>> 0 < b >>> 0) { - h = Ca[k[c + 36 >> 2] & 3](c, a, b) | 0; - break; - } - b : do if ((i[c + 75 >> 0] | 0) > -1) { - d = b; - while (1) { - if (!d) { - l = b; - m = a; - n = j; - o = 0; - break b; - } - p = d + -1 | 0; - if ((i[a + p >> 0] | 0) == 10) { - q = d; - break; - } else d = p; - } - if ((Ca[k[c + 36 >> 2] & 3](c, a, q) | 0) >>> 0 < q >>> 0) { - h = q; - break a; - } - l = b - q | 0; - m = a + q | 0; - n = k[e >> 2] | 0; - o = q; - } else { - l = b; - m = a; - n = j; - o = 0; - } while (0); - jb(n | 0, m | 0, l | 0) | 0; - k[e >> 2] = (k[e >> 2] | 0) + l; - h = o + l | 0; - } while (0); - return h | 0; -} - -function Za(a) { - a = a | 0; - var b = 0, c = 0, d = 0, e = 0, f = 0, g = 0, h = 0, j = 0, l = 0, m = 0; - b = a; - a : do if (!(b & 3)) { - c = a; - d = 4; - } else { - e = a; - f = b; - while (1) { - if (!(i[e >> 0] | 0)) { - g = f; - break a; - } - h = e + 1 | 0; - f = h; - if (!(f & 3)) { - c = h; - d = 4; - break; - } else e = h; - } - } while (0); - if ((d | 0) == 4) { - d = c; - while (1) { - c = k[d >> 2] | 0; - if (!((c & -2139062144 ^ -2139062144) & c + -16843009)) d = d + 4 | 0; else { - j = c; - l = d; - break; - } - } - if (!((j & 255) << 24 >> 24)) m = l; else { - j = l; - while (1) { - l = j + 1 | 0; - if (!(i[l >> 0] | 0)) { - m = l; - break; - } else j = l; - } - } - g = m; - } - return g - b | 0; -} - -function _a(a) { - a = a | 0; - var b = 0, c = 0, d = 0, e = 0, f = 0, g = 0, h = 0; - do if (!a) { - if (!(k[285] | 0)) b = 0; else b = _a(k[285] | 0) | 0; - pa(1188); - c = k[296] | 0; - if (!c) d = b; else { - e = c; - c = b; - while (1) { - if ((k[e + 76 >> 2] | 0) > -1) f = Ya(e) | 0; else f = 0; - if ((k[e + 20 >> 2] | 0) >>> 0 > (k[e + 28 >> 2] | 0) >>> 0) g = $a(e) | 0 | c; else g = c; - if (f | 0) Ta(e); - e = k[e + 56 >> 2] | 0; - if (!e) { - d = g; - break; - } else c = g; - } - } - xa(1188); - h = d; - } else { - if ((k[a + 76 >> 2] | 0) <= -1) { - h = $a(a) | 0; - break; - } - c = (Ya(a) | 0) == 0; - e = $a(a) | 0; - if (c) h = e; else { - Ta(a); - h = e; - } - } while (0); - return h | 0; -} - -function ab(a, b) { - a = a | 0; - b = b | 0; - var c = 0, d = 0, e = 0, f = 0, g = 0, h = 0, j = 0, m = 0, n = 0; - c = r; - r = r + 16 | 0; - d = c; - e = b & 255; - i[d >> 0] = e; - f = a + 16 | 0; - g = k[f >> 2] | 0; - if (!g) if (!(Xa(a) | 0)) { - h = k[f >> 2] | 0; - j = 4; - } else m = -1; else { - h = g; - j = 4; - } - do if ((j | 0) == 4) { - g = a + 20 | 0; - f = k[g >> 2] | 0; - if (f >>> 0 < h >>> 0) { - n = b & 255; - if ((n | 0) != (i[a + 75 >> 0] | 0)) { - k[g >> 2] = f + 1; - i[f >> 0] = e; - m = n; - break; - } - } - if ((Ca[k[a + 36 >> 2] & 3](a, d, 1) | 0) == 1) m = l[d >> 0] | 0; else m = -1; - } while (0); - r = c; - return m | 0; -} - -function $a(a) { - a = a | 0; - var b = 0, c = 0, d = 0, e = 0, f = 0, g = 0, h = 0; - b = a + 20 | 0; - c = a + 28 | 0; - if ((k[b >> 2] | 0) >>> 0 > (k[c >> 2] | 0) >>> 0) { - Ca[k[a + 36 >> 2] & 3](a, 0, 0) | 0; - if (!(k[b >> 2] | 0)) d = -1; else e = 3; - } else e = 3; - if ((e | 0) == 3) { - e = a + 4 | 0; - f = k[e >> 2] | 0; - g = a + 8 | 0; - h = k[g >> 2] | 0; - if (f >>> 0 < h >>> 0) Ca[k[a + 40 >> 2] & 3](a, f - h | 0, 1) | 0; - k[a + 16 >> 2] = 0; - k[c >> 2] = 0; - k[b >> 2] = 0; - k[g >> 2] = 0; - k[e >> 2] = 0; - d = 0; - } - return d | 0; -} - -function jb(a, b, c) { - a = a | 0; - b = b | 0; - c = c | 0; - var d = 0; - if ((c | 0) >= 4096) return va(a | 0, b | 0, c | 0) | 0; - d = a | 0; - if ((a & 3) == (b & 3)) { - while (a & 3) { - if (!c) return d | 0; - i[a >> 0] = i[b >> 0] | 0; - a = a + 1 | 0; - b = b + 1 | 0; - c = c - 1 | 0; - } - while ((c | 0) >= 4) { - k[a >> 2] = k[b >> 2]; - a = a + 4 | 0; - b = b + 4 | 0; - c = c - 4 | 0; - } - } - while ((c | 0) > 0) { - i[a >> 0] = i[b >> 0] | 0; - a = a + 1 | 0; - b = b + 1 | 0; - c = c - 1 | 0; - } - return d | 0; -} - -function gb() {} -function hb(a, b, c) { - a = a | 0; - b = b | 0; - c = c | 0; - var d = 0, e = 0, f = 0, g = 0; - d = a + c | 0; - if ((c | 0) >= 20) { - b = b & 255; - e = a & 3; - f = b | b << 8 | b << 16 | b << 24; - g = d & ~3; - if (e) { - e = a + 4 - e | 0; - while ((a | 0) < (e | 0)) { - i[a >> 0] = b; - a = a + 1 | 0; - } - } - while ((a | 0) < (g | 0)) { - k[a >> 2] = f; - a = a + 4 | 0; - } - } - while ((a | 0) < (d | 0)) { - i[a >> 0] = b; - a = a + 1 | 0; - } - return a - c | 0; -} - -function db(a) { - a = a | 0; - var b = 0, c = 0, d = 0, e = 0, f = 0; - b = k[256] | 0; - if ((k[b + 76 >> 2] | 0) > -1) c = Ya(b) | 0; else c = 0; - do if ((cb(a, b) | 0) < 0) d = 1; else { - if ((i[b + 75 >> 0] | 0) != 10) { - e = b + 20 | 0; - f = k[e >> 2] | 0; - if (f >>> 0 < (k[b + 16 >> 2] | 0) >>> 0) { - k[e >> 2] = f + 1; - i[f >> 0] = 10; - d = 0; - break; - } - } - d = (ab(b, 10) | 0) < 0; - } while (0); - if (c | 0) Ta(b); - return d << 31 >> 31 | 0; -} - -function Xa(a) { - a = a | 0; - var b = 0, c = 0, d = 0; - b = a + 74 | 0; - c = i[b >> 0] | 0; - i[b >> 0] = c + 255 | c; - c = k[a >> 2] | 0; - if (!(c & 8)) { - k[a + 8 >> 2] = 0; - k[a + 4 >> 2] = 0; - b = k[a + 44 >> 2] | 0; - k[a + 28 >> 2] = b; - k[a + 20 >> 2] = b; - k[a + 16 >> 2] = b + (k[a + 48 >> 2] | 0); - d = 0; - } else { - k[a >> 2] = c | 32; - d = -1; - } - return d | 0; -} - -function bb(a, b, c, d) { - a = a | 0; - b = b | 0; - c = c | 0; - d = d | 0; - var e = 0, f = 0, g = 0, h = 0, i = 0; - e = ga(c, b) | 0; - if ((k[d + 76 >> 2] | 0) > -1) { - f = (Ya(d) | 0) == 0; - g = Wa(a, e, d) | 0; - if (f) h = g; else { - Ta(d); - h = g; - } - } else h = Wa(a, e, d) | 0; - if ((h | 0) == (e | 0)) i = c; else i = (h >>> 0) / (b >>> 0) | 0; - return i | 0; -} - -function Ua(a, b, c) { - a = a | 0; - b = b | 0; - c = c | 0; - var d = 0, e = 0, f = 0, g = 0; - d = r; - r = r + 32 | 0; - e = d; - f = d + 20 | 0; - k[e >> 2] = k[a + 60 >> 2]; - k[e + 4 >> 2] = 0; - k[e + 8 >> 2] = b; - k[e + 12 >> 2] = f; - k[e + 16 >> 2] = c; - if ((Pa(ua(140, e | 0) | 0) | 0) < 0) { - k[f >> 2] = -1; - g = -1; - } else g = k[f >> 2] | 0; - r = d; - return g | 0; -} - -function Va(a, b, c) { - a = a | 0; - b = b | 0; - c = c | 0; - var d = 0, e = 0; - d = r; - r = r + 80 | 0; - e = d; - k[a + 36 >> 2] = 3; - if (!(k[a >> 2] & 64)) { - k[e >> 2] = k[a + 60 >> 2]; - k[e + 4 >> 2] = 21505; - k[e + 8 >> 2] = d + 12; - if (wa(54, e | 0) | 0) i[a + 75 >> 0] = -1; - } - e = Ra(a, b, c) | 0; - r = d; - return e | 0; -} - -function Ka(a) { - a = a | 0; - i[t >> 0] = i[a >> 0]; - i[t + 1 >> 0] = i[a + 1 >> 0]; - i[t + 2 >> 0] = i[a + 2 >> 0]; - i[t + 3 >> 0] = i[a + 3 >> 0]; - i[t + 4 >> 0] = i[a + 4 >> 0]; - i[t + 5 >> 0] = i[a + 5 >> 0]; - i[t + 6 >> 0] = i[a + 6 >> 0]; - i[t + 7 >> 0] = i[a + 7 >> 0]; -} - -function Oa(a) { - a = a | 0; - var b = 0, c = 0; - b = r; - r = r + 16 | 0; - c = b; - k[c >> 2] = k[a + 60 >> 2]; - a = Pa(sa(6, c | 0) | 0) | 0; - r = b; - return a | 0; -} - -function Pa(a) { - a = a | 0; - var b = 0, c = 0; - if (a >>> 0 > 4294963200) { - b = Qa() | 0; - k[b >> 2] = 0 - a; - c = -1; - } else c = a; - return c | 0; -} - -function Ja(a) { - a = a | 0; - i[t >> 0] = i[a >> 0]; - i[t + 1 >> 0] = i[a + 1 >> 0]; - i[t + 2 >> 0] = i[a + 2 >> 0]; - i[t + 3 >> 0] = i[a + 3 >> 0]; -} - -function Qa() { - var a = 0, b = 0; - if (!(k[290] | 0)) a = 1204; else { - b = (ib() | 0) + 64 | 0; - a = k[b >> 2] | 0; - } - return a | 0; -} - -function lb(a, b, c, d) { - a = a | 0; - b = b | 0; - c = c | 0; - d = d | 0; - return Ca[a & 3](b | 0, c | 0, d | 0) | 0; -} -function Ea(a) { - a = a | 0; - var b = 0; - b = r; - r = r + a | 0; - r = r + 15 & -16; - return b | 0; -} - -function cb(a, b) { - a = a | 0; - b = b | 0; - return (bb(a, Za(a) | 0, 1, b) | 0) + -1 | 0; -} - -function ob(a, b, c) { - a = a | 0; - b = b | 0; - c = c | 0; - ja(1); - return 0; -} - -function Ia(a, b) { - a = a | 0; - b = b | 0; - if (!v) { - v = a; - w = b; - } -} - -function kb(a, b) { - a = a | 0; - b = b | 0; - return Ba[a & 1](b | 0) | 0; -} - -function Sa(a) { - a = a | 0; - if (!(k[a + 68 >> 2] | 0)) Ta(a); - return; -} - -function mb(a, b) { - a = a | 0; - b = b | 0; - Da[a & 1](b | 0); -} - -function Ha(a, b) { - a = a | 0; - b = b | 0; - r = a; - s = b; -} - -function nb(a) { - a = a | 0; - ja(0); - return 0; -} - -function Na() { - db(1144) | 0; - return 0; -} - -function Ya(a) { - a = a | 0; - return 0; -} - -function Ta(a) { - a = a | 0; - return; -} - -function pb(a) { - a = a | 0; - ja(2); -} - -function La(a) { - a = a | 0; - K = a; -} - -function Ga(a) { - a = a | 0; - r = a; -} - -function Ma() { - return K | 0; -} - -function Fa() { - return r | 0; -} - -function ib() { - return 0; -} - -// EMSCRIPTEN_END_FUNCS - - var Ba = [ nb, Oa ]; - var Ca = [ ob, Va, Ua, Ra ]; - var Da = [ pb, Sa ]; - return { - _free: fb, - _main: Na, - _pthread_self: ib, - _memset: hb, - _malloc: eb, - _memcpy: jb, - _fflush: _a, - ___errno_location: Qa, - runPostSets: gb, - _emscripten_replace_memory: Aa, - stackAlloc: Ea, - stackSave: Fa, - stackRestore: Ga, - establishStackSpace: Ha, - setThrew: Ia, - setTempRet0: La, - getTempRet0: Ma, - dynCall_ii: kb, - dynCall_iiii: lb, - dynCall_vi: mb - }; -}) - - -; \ No newline at end of file diff --git a/test/min.asm.js b/test/min.asm.js deleted file mode 100644 index 33528798848..00000000000 --- a/test/min.asm.js +++ /dev/null @@ -1,52 +0,0 @@ -function (global, env, buffer) { - "use asm"; - - var c = new global.Int32Array(buffer); - var g = new global.Float32Array(buffer); - - var fr = global.Math.fround; - - var tDP = env.tempDoublePtr | 0; - var ctz32 = env._llvm_cttz_i32; - - var h8 = new global.Int8Array(buffer); - var h16 = new global.Int16Array(buffer); - var h32 = new global.Int32Array(buffer); - var hU8 = new global.Uint8Array(buffer); - var hU16 = new global.Uint16Array(buffer); - var hU32 = new global.Uint32Array(buffer); - var hF32 = new global.Float32Array(buffer); - var hF64 = new global.Float64Array(buffer); - - var M = 0; // tempRet - - function floats(f) { - f = fr(f); - var t = fr(0); - return fr(t + f); - } - function neg(k, p) { - k = k | 0; - p = p | 0; - var n = fr(0); - n = fr(-(c[k >> 2] = p, fr(g[k >> 2]))); - return n; - } - function bitcasts(i, f) { - i = i | 0; - f = Math_fround(f); - (h32[tDP >> 2] = i, fr(hF32[tDP >> 2])); // i32->f32 - (h32[tDP >> 2] = i, +hF32[tDP >> 2]); // i32->f32, no fround - (hF32[tDP >> 2] = f, h32[tDP >> 2] | 0); // f32->i32 - } - function ctzzzz() { - return ctz32(0x1234) | 0; - } - function ub() { - ub(); // emterpreter assertions mode might add some code here - return M | 0; - } - - return { floats: floats, getTempRet0: ub, neg: neg, bitcasts: bitcasts, ctzzzz: ctzzzz }; -} - diff --git a/test/noffi_f32.asm.js b/test/noffi_f32.asm.js deleted file mode 100644 index cc7a47972c3..00000000000 --- a/test/noffi_f32.asm.js +++ /dev/null @@ -1,21 +0,0 @@ -function(global, env, buffer) { - "use asm"; - var Math_fround=global.Math.fround; - var importf=env._importf; - - function exportf(a){ - a=Math_fround(a); - return Math_fround(a+Math_fround(1.0)) - } - function main(){ - Math_fround(importf(Math_fround(3.4000000953674316))); - return 0 - } - - return{ - main:main, - exportf:exportf} -} - -; - diff --git a/test/noffi_i64.asm.js b/test/noffi_i64.asm.js deleted file mode 100644 index 304d70fc0b9..00000000000 --- a/test/noffi_i64.asm.js +++ /dev/null @@ -1,21 +0,0 @@ -function(global, env, buffer) { - "use asm"; - var importll=env._importll; - - function add(a,b) { - a = i64(a); - b = i64(b); - var c = i64(); - c = i64_add(b,a); - return (i64(c)); - } - function main() { - (i64(importll(i64_const(2,0)))); - return 0; - } - - return { - _add: add, - _main: main }; -} -; diff --git a/test/threads.asm.js b/test/threads.asm.js deleted file mode 100644 index bedeb7a3733..00000000000 --- a/test/threads.asm.js +++ /dev/null @@ -1,147 +0,0 @@ -Module["asm"] = (function(global, env, buffer) { - 'use asm'; - - - var HEAP8 = new global.Int8Array(buffer); - var HEAP16 = new global.Int16Array(buffer); - var HEAP32 = new global.Int32Array(buffer); - var HEAPU8 = new global.Uint8Array(buffer); - var HEAPU16 = new global.Uint16Array(buffer); - var HEAPU32 = new global.Uint32Array(buffer); - var HEAPF32 = new global.Float32Array(buffer); - var HEAPF64 = new global.Float64Array(buffer); - - var DYNAMICTOP_PTR=env.DYNAMICTOP_PTR|0; - var tempDoublePtr=env.tempDoublePtr|0; - var ABORT=env.ABORT|0; - var STACKTOP=env.STACKTOP|0; - var STACK_MAX=env.STACK_MAX|0; - - var __THREW__ = 0; - var threwValue = 0; - var setjmpId = 0; - var undef = 0; - var nan = global.NaN, inf = global.Infinity; - var tempInt = 0, tempBigInt = 0, tempBigIntS = 0, tempValue = 0, tempDouble = 0.0; - var tempRet0 = 0; - - var __pthread_ptr = 0; - var __pthread_is_main_runtime_thread = 0; - var __pthread_is_main_browser_thread = 0; - - var Math_floor=global.Math.floor; - var Math_abs=global.Math.abs; - var Math_sqrt=global.Math.sqrt; - var Math_pow=global.Math.pow; - var Math_cos=global.Math.cos; - var Math_sin=global.Math.sin; - var Math_tan=global.Math.tan; - var Math_acos=global.Math.acos; - var Math_asin=global.Math.asin; - var Math_atan=global.Math.atan; - var Math_atan2=global.Math.atan2; - var Math_exp=global.Math.exp; - var Math_log=global.Math.log; - var Math_ceil=global.Math.ceil; - var Math_imul=global.Math.imul; - var Math_min=global.Math.min; - var Math_max=global.Math.max; - var Math_clz32=global.Math.clz32; - var Math_fround=global.Math.fround; - var abort=env.abort; - var assert=env.assert; - var enlargeMemory=env.enlargeMemory; - var getTotalMemory=env.getTotalMemory; - var abortOnCannotGrowMemory=env.abortOnCannotGrowMemory; - var abortStackOverflow=env.abortStackOverflow; - var nullFunc_iiii=env.nullFunc_iiii; - var nullFunc_i=env.nullFunc_i; - var nullFunc_vi=env.nullFunc_vi; - var nullFunc_vii=env.nullFunc_vii; - var nullFunc_ii=env.nullFunc_ii; - var nullFunc_viii=env.nullFunc_viii; - var nullFunc_v=env.nullFunc_v; - var nullFunc_iii=env.nullFunc_iii; - var invoke_iiii=env.invoke_iiii; - var invoke_i=env.invoke_i; - var invoke_vi=env.invoke_vi; - var invoke_vii=env.invoke_vii; - var invoke_ii=env.invoke_ii; - var invoke_viii=env.invoke_viii; - var invoke_v=env.invoke_v; - var invoke_iii=env.invoke_iii; - var __spawn_thread=env.__spawn_thread; - var _putenv=env._putenv; - var _emscripten_get_now_is_monotonic=env._emscripten_get_now_is_monotonic; - var _fpathconf=env._fpathconf; - var ___unlock=env.___unlock; - var _emscripten_syscall=env._emscripten_syscall; - var ___assert_fail=env.___assert_fail; - var _utimes=env._utimes; - var ___buildEnvironment=env.___buildEnvironment; - var _emscripten_asm_const_i=env._emscripten_asm_const_i; - var _clock_gettime=env._clock_gettime; - var _emscripten_futex_wait=env._emscripten_futex_wait; - var _tzset=env._tzset; - var ___setErrNo=env.___setErrNo; - var _emscripten_set_current_thread_status_js=env._emscripten_set_current_thread_status_js; - var _pthread_getschedparam=env._pthread_getschedparam; - var _clearenv=env._clearenv; - var _emscripten_futex_wake=env._emscripten_futex_wake; - var _sysconf=env._sysconf; - var _utime=env._utime; - var ___call_main=env.___call_main; - var _emscripten_memcpy_big=env._emscripten_memcpy_big; - var _confstr=env._confstr; - var _getenv=env._getenv; - var ___syscall54=env.___syscall54; - var _emscripten_has_threading_support=env._emscripten_has_threading_support; - var _pthread_create=env._pthread_create; - var _emscripten_get_now=env._emscripten_get_now; - var _chroot=env._chroot; - var ___lock=env.___lock; - var ___syscall6=env.___syscall6; - var _unsetenv=env._unsetenv; - var ___clock_gettime=env.___clock_gettime; - var _gettimeofday=env._gettimeofday; - var _atexit=env._atexit; - var ___syscall140=env.___syscall140; - var _emscripten_set_thread_name_js=env._emscripten_set_thread_name_js; - var _setenv=env._setenv; - var ___syscall146=env.___syscall146; - var _emscripten_conditional_set_current_thread_status_js=env._emscripten_conditional_set_current_thread_status_js; - var Atomics_load=global.Atomics.load; - var Atomics_store=global.Atomics.store; - var Atomics_exchange=global.Atomics.exchange; - var Atomics_compareExchange=global.Atomics.compareExchange; - var Atomics_add=global.Atomics.add; - var Atomics_sub=global.Atomics.sub; - var Atomics_and=global.Atomics.and; - var Atomics_or=global.Atomics.or; - var Atomics_xor=global.Atomics.xor; - var tempFloat = Math_fround(0); - const f0 = Math_fround(0); - - function test() { - var $temp = 0; - $temp = (Atomics_load(HEAP32, 1229)|0); - $temp = (Atomics_load(HEAPU16, 1229)|0); - $temp = (Atomics_store(HEAP32, $temp>>2, 0)|0); - $temp = (Atomics_exchange(HEAP32, $temp>>2, 1)|0); - $temp = (Atomics_compareExchange(HEAP32, $temp>>2, 1, 2)|0); - $temp = (Atomics_add(HEAP32, $temp>>2, 0)|0); - $temp = (Atomics_sub(HEAP32, $temp>>2, 0)|0); - $temp = (Atomics_and(HEAP32, $temp>>2, 0)|0); - $temp = (Atomics_or(HEAP32, $temp>>2, 0)|0); - $temp = (Atomics_xor(HEAP32, $temp>>2, 0)|0); - $temp = (Atomics_xor(HEAPU32, 1024, 0)|0); - $temp = (Atomics_xor(HEAP16, 1024, 0)|0); - $temp = (Atomics_xor(HEAPU8, 1024, 0)|0); - // corner cases - $temp = (Atomics_compareExchange(HEAP8, $temp | 0, 1, 2)|0); - $temp = (Atomics_compareExchange(HEAP8, $temp >> 2, 1, 2)|0); - } - - return { test: test }; -}) -; diff --git a/test/threads.wasm-only.asm.js b/test/threads.wasm-only.asm.js deleted file mode 100644 index 7c40665f48d..00000000000 --- a/test/threads.wasm-only.asm.js +++ /dev/null @@ -1,48 +0,0 @@ -// -// Test wasm-only builds. In this case, fastcomp emits code that is -// not asm.js, it will only ever run as wasm, and contains special intrinsics for -// asm2wasm that map LLVM IR into i64s. -// - -function asm(global, env, buffer) { - "use asm"; - - var HEAP8 = new global.Int8Array(buffer); - var HEAP16 = new global.Int16Array(buffer); - var HEAP32 = new global.Int32Array(buffer); - var HEAPU8 = new global.Uint8Array(buffer); - var HEAPU16 = new global.Uint16Array(buffer); - var HEAPU32 = new global.Uint32Array(buffer); - var HEAPF32 = new global.Float32Array(buffer); - var HEAPF64 = new global.Float64Array(buffer); - - var STACKTOP = env.STACKTOP | 0; - - var fround = global.Math.fround; - var Math_imul = global.Math.imul; - - var illegalImport = env.illegalImport; - var illegalImportResult = env.illegalImportResult; - - var _fabsf = env._fabsf; - var do_i64 = env.do_i64; - var abort = env.abort; - - function test64() { - var x = i64(), y = i64(), z = 0; // define i64 variables using special intrinsic - var int32 = 0, float32 = fround(0), float64 = +0; - i64_atomics_store(4656, i64_const(92, 0))|0; - x = i64_atomics_load(4656); - y = i64_atomics_add(int32, i64_const(26, 0))|0; - x = i64_atomics_sub(1024, y)|0; - y = i64_atomics_and(1024, x)|0; - x = i64_atomics_or(1024, y)|0; - y = i64_atomics_xor(1024, x)|0; - x = i64_atomics_exchange(1024, y)|0; - y = i64_atomics_compareExchange(1024, x, y)|0; - return x; - } - - return { test64: test64 }; -} - diff --git a/test/two_sides.asm.js b/test/two_sides.asm.js deleted file mode 100644 index cb45ac6fa25..00000000000 --- a/test/two_sides.asm.js +++ /dev/null @@ -1,30 +0,0 @@ -Module["asm"] = (function(global, env, buffer) { - "use asm"; - var Math_imul = global.Math.imul; - function _test(i1, i2, i3, i4, i5) { - i1 = i1 | 0; - i2 = i2 | 0; - i3 = i3 | 0; - i4 = i4 | 0; - i5 = i5 | 0; - var d6 = 0.0; - if (!i5) { - d6 = +(Math_imul(i4, i3) | 0); - d6 = (+(i3 | 0) + d6) * (+(i4 | 0) + d6); - i5 = ~~d6; - return i5 | 0; - } else { - d6 = +(Math_imul(i2, i1) | 0); - d6 = (+(i3 | 0) + d6) * (d6 + +(i4 | 0)); - i5 = ~~d6; - return i5 | 0; - } - return 0; - } - return { - _test: _test - }; -}); - - - diff --git a/test/unit.asm.js b/test/unit.asm.js deleted file mode 100644 index 405701ee6eb..00000000000 --- a/test/unit.asm.js +++ /dev/null @@ -1,811 +0,0 @@ -function asm(global, env, buffer) { - "use asm"; - - var t = global.NaN, u = global.Infinity; - var Int = 0; - var Double = 0.0; - var Math_fround = global.Math.fround; - var Math_abs = global.Math.abs; - var Math_ceil = global.Math.ceil; - var Math_max = global.Math.max; - var Math_min = global.Math.min; - var Math_sqrt = global.Math.sqrt; - var tempDoublePtr = env.tempDoublePtr | 0; - var n = env.gb | 0; - var STACKTOP = env.STACKTOP | 0; - var setTempRet0=env.setTempRet0; - - var abort = env.abort; - var print = env.print; - var h = env.h; - var return_int = env.return_int; - var emscripten_log = env.emscripten_log; - - var HEAP8 = new global.Int8Array(buffer); - var HEAP16 = new global.Int16Array(buffer); - var HEAP32 = new global.Int32Array(buffer); - var HEAPU8 = new global.Uint8Array(buffer); - var HEAPU16 = new global.Uint16Array(buffer); - var HEAPU32 = new global.Uint32Array(buffer); - var HEAPF32 = new global.Float32Array(buffer); - var HEAPF64 = new global.Float64Array(buffer); - - var nonZero = 1337; - - function big_negative() { - var temp = 0.0; - temp = +-2147483648; - temp = -2147483648.0; - temp = -21474836480.0; - temp = 0.039625; - temp = -0.039625; - } - function importedDoubles() { - var temp = 0.0; - temp = t + u + (-u) + (-t); - if ((Int | 0) > 0) return -3.4; - if (Double > 0.0) return 5.6; - return 1.2; - } - function doubleCompares(x, y) { - x = +x; - y = +y; - var t = 0.0; - var Int = 0.0, Double = 0; // confusing with globals - if (x > 0.0) return 1.2; - Int = x; - Double = n; - if (Int > 0.0) return -3.4; - if ((Double|0) > 0) return 5.6; - if (x < y) return +x; - return +y; - } - function intOps(x) { - x = x | 0; - return (!x) | 0; - } - function hexLiterals() { - var i = 0; - i = 0x0 + 0x12ABCdef + 0xFEDcba90 | 0; - } - function conversions(i, d, f) { - i = i | 0; - d = +d; - f = Math_fround(f); - i = ~~d; - i = ~~f; - d = +(i | 0); - d = +(i >>> 0); - } - function seq() { - var J = 0.0; - J = (0.1, 5.1) - (3.2, 4.2); - } - function switcher(x) { - x = x | 0; - var waka = 0; - switch (x | 0) { - case 1: return 1; - case 2: return 2; - } - switch (x | 0) { - case 12: return 121; - case 5: return 51; - } - Lout: switch (x | 0) { - case 12: break; - case 10: break Lout; - case 5: { - while (1) { - break; - } - break; - } - case 2: { - while (1) { - break Lout; - } - break; - } - } - - L1 : while (1) { - L3 : while (1) switch (x | 0) { - case -1: - { - break L1; - break; - } - case 116: - { - waka = 1; - break; - } - case 110: - { - break L3; - break; - } - default: - { - break L1; - } - } - h(120); - } - - return 0; - } - function blocker() { - L: { - break L; - } - } - function frem() { - return +(5.5 % 1.2); - } - function frem_float() { - return Math_fround(Math_fround(5.5) % Math_fround(1.2)); - } - function big_uint_div_u() { - var x = 0; - x = (4294967295 / 2)&-1; - return x | 0; - } - function trapping_sint_div_s() { - var x = 0; - x = (-2147483648 / -1); - return x | 0; - } - function fr(x) { - x = Math_fround(x); - var y = Math_fround(0), z = 0.0; - Math_fround(z); - Math_fround(y); - Math_fround(5); - Math_fround(0); - Math_fround(5.0); - Math_fround(0.0); - } - function negZero() { - return +-0; - } - function abs() { - var x = 0, y = 0.0, z = Math_fround(0); - x = Math_abs(0) | 0; - y = +Math_abs(0.0); - z = Math_fround(Math_abs(Math_fround(0))); - } - function minmax() { - var x = 0.0, y = 0.0, z = Math_fround(0), w = Math_fround(0); - x = +Math_min(+x, +y); - y = +Math_max(+x, +y); - z = Math_fround(Math_min(Math_fround(z), Math_fround(w))); - w = Math_fround(Math_max(Math_fround(z), Math_fround(w))); - } - function neg() { - var x = Math_fround(0); - x = Math_fround(-x); - FUNCTION_TABLE_c[1 & 7](x); - } - function cneg(x) { - x = Math_fround(x); - FUNCTION_TABLE_c[1 & 7](x); - } - function ___syscall_ret() { - var $0 = 0; - ($0>>>0) > 4294963200; // -4096 - } - function smallCompare(i, j) { - i = i | 0; - j = j | 0; - if ((i | 0) < (j | 0)) i = i + 1 | 0; - if ((i >>> 0) < (j >>> 0)) i = i + 1 | 0; - return i | 0; - } - function cneg_nosemicolon() { - FUNCTION_TABLE_vi[1 & 7](1) // no semicolon - } - function forLoop() { - var i = 0; - for (i = 1; (i | 0) < 200; i = i + 1 | 0) { - h(i | 0); - } - } - function ceiling_32_64(u, B) { - u = Math_fround(u); - B = +B; - var temp = Math_fround(0); - temp = Math_fround(Math_ceil(B)); - temp = Math_fround(u * Math_fround(Math_ceil(Math_fround(B)))); - } - function aborts() { - abort(); - abort(55); - abort(); - abort(12.34); - abort(+Math_fround(56.78)); - } - function continues() { - while (1) { - print(1); - do { - print(5); - if (return_int() | 0) continue; - } while (0); - print(2); - } - } - function bitcasts(i, f) { - i = i | 0; - f = Math_fround(f); - var d = 0.0; - (HEAP32[tempDoublePtr >> 2] = i, Math_fround(HEAPF32[tempDoublePtr >> 2])); // i32->f32 - (HEAP32[tempDoublePtr >> 2] = i, +HEAPF32[tempDoublePtr >> 2]); // i32->f32, no fround - (HEAPF32[tempDoublePtr >> 2] = f, HEAP32[tempDoublePtr >> 2] | 0); // f32->i32 - (HEAPF32[tempDoublePtr >> 2] = d, HEAP32[tempDoublePtr >> 2] | 0); // f64 with implict f32 conversion, ->i32 - } - function recursiveBlockMerging(x) { - x = x | 0; - lb((1, x) + (2, 3) + (((4, 5), 6), 7) + (8, (9, (10, (11, 12)))) | 0) | 0; - x = (lb(1) | 0, x) + (lb(2) | 0, lb(3) | 0) + (((lb(4) | 0, lb(5) | 0), lb(6) | 0), lb(7) | 0) + (lb(8) | 0, (lb(9) | 0, (lb(10) | 0, (lb(11) | 0, lb(12) | 0)))) | 0; - return x | 0; - } - - function lb(a) { - a = a | 0; - HEAP32[a >> 2] = n + 136 + 8; - return 0; - } - - function forgetMe() { - 123.456; - } - function exportMe() { - -3.14159; - } - - function zeroInit(x) { - x = x | 0; - var y = 0; // reusing this with x is dangerous - x has a value, and y needs to start at 0! - if (lb(0) | 0) { - if (lb(1) | 0) y = 3; - } else { - y = 3; - } - if ((y | 0) == 3) { - lb(2) | 0; - } - } - - function phi() { - var x = 0; - do { - if (lb(1) | 0) { - x = 0; - break; - } - x = 1; - } while (0); - return x | 0; - } - - function smallIf() { - do { - if (return_int() | 0) { - lb(3) | 0; - } else { - break; - } - } while (0); - } - - function dropCall() { - if (return_int() | 0) { - phi() | 0; // drop this - setTempRet0(10); // this too - zeroInit(setTempRet0(10) | 0); - } - return phi() | 0; - } - - function useGlobalSet() { - var x = 0; - x = (Int = 10); - Int = 20; - return (Int = 30) | 0; - } - - function usesGlobalSet2() { - return (Int = 40, 50) | 0; - } - - function breakThroughMany($s) { - $s = $s|0; - L1: do { - if ($s) { - while(1) { - if (!($s)) { - break L1; - } - zeroInit(0); - } - } else { - 1337; - } - } while(0); - } - - function ifChainEmpty(label) { - label = label | 0; - if ((label|0) == 4) { - return 0; - } - else if ((label|0) == 7) { - // unreachable; - } - return 0; - } - - function heap8NoShift(x) { - x = x | 0; - return HEAP8[x | 0] | 0; - } - - function conditionalTypeFun() { - var x = 0, y = 0.0; - x = return_int() | 0 ? abort(5) | 0 : 2; - y = return_int() | 0 ? +abort(7) : 4.5; - } - - function loadSigned(x) { - x = x | 0; - loadSigned(HEAP8[x >> 0] << 24 >> 24); - loadSigned(HEAPU8[x >> 0] << 24 >> 24); - loadSigned(HEAP16[x >> 1] << 16 >> 16); - loadSigned(HEAPU16[x >> 1] << 16 >> 16); - loadSigned(HEAP8[x >> 0] << 24 >> 16); - loadSigned(HEAPU8[x >> 0] << 16 >> 24); - loadSigned(HEAP16[x >> 1] << 16 >> 24); - loadSigned(HEAPU16[x >> 1] << 24 >> 16); - } - - function z(x) { - x = Math_fround(x); - } - function w() { - return 0.0; - } - - function globalOpts() { - var x = 0, y = 0.0; - x = Int; - y = Double; - HEAP8[13] = HEAP32[3]; // access memory, should not confuse the global writes - Double = y; - Int = x; - globalOpts(); - x = Int; - if (return_int() | 0) Int = 20; // but this does interfere - Int = x; - globalOpts(); - x = Int; - globalOpts(); // this too - Int = x; - } - - function dropCallImport() { - if (return_int() | 0) return_int() | 0; - } - - function loophi(x, y) { - x = x | 0; - y = y | 0; - var temp = 0, inc = 0, loopvar = 0; // this order matters - loopvar = x; - while(1) { - loophi(loopvar | 0, 0); - temp = loopvar; - if (temp) { - if (temp) { - break; - } - } - inc = loopvar + 1 | 0; - if ((inc|0) == (y|0)) { - loopvar = inc; - } else { - break; - } - } - } - - function loophi2() { - var jnc = 0, i = 0, i$lcssa = 0, temp = 0, j = 0; - i = 0; - L7: while(1) { - j = 0; - while(1) { - temp = j; - if (return_int() | 0) { - if (temp) { - i$lcssa = i; - break L7; - } - } - jnc = j + 1 | 0; - if (jnc) { - j = jnc; - } else { - break; - } - } - } - return i$lcssa | 0 - } - - function loophi2b() { - var jnc = 0, i = 0, i$lcssa = 0, temp = 0, j = 0; - i = 0; - L7: while(1) { - j = 0; - while(1) { - temp = j; - if (return_int() | 0) { - if (temp) { - i$lcssa = j; - break L7; - } - } - jnc = j + 1 | 0; - if (jnc) { - j = jnc; - } else { - break; - } - } - } - return i$lcssa | 0 - } - - function relooperJumpThreading(x) { - x = x | 0; - var label = 0; - // from if - if (x) { - h(0); - label = 1; - } - if ((label|0) == 1) { - h(1); - } - h(-1); - // from loop - while (1) { - x = x + 1 | 0; - if (x) { - h(2); - label = 2; - break; - } - } - if ((label|0) == 2) { - h(3); - } - h(-2); - // if-else afterward - if (x) { - h(4); - if ((x|0) == 3) { - label = 3; - } else { - label = 4; - } - } - if ((label|0) == 3) { - h(5); - } else if ((label|0) == 4) { - h(6); - } - h(-3); - // two ifs afterward - if (x) { - h(7); - if ((x|0) == 5) { - label = 5; - } else { - label = 6; - } - } - if ((label|0) == 5) { - h(8); - if ((x|0) == 6) { - label = 6; - } - } - if ((label|0) == 6) { - h(9); - } - h(-4); - // labeled if after - if (x) { - h(10); - label = 7; - } - L1: do { - if ((label|0) == 7) { - h(11); - break L1; - } - } while (0); - h(-5); - // labeled if after normal if - if (x) { - h(12); - if ((x|0) == 8) { - label = 8; - } else { - label = 9; - } - } - if ((label|0) == 8) { - h(13); - if (x) label = 9; - } - L1: do { - if ((label|0) == 9) { - h(14); - break L1; - } - } while (0); - h(-6); - // TODO - // labeled if after a first if - // do-enclosed if after (?) - // test multiple labels, some should be ignored initially by JumpUpdater - return x | 0; - } - - function relooperJumpThreading__ZN4game14preloadweaponsEv($12, $14, $or$cond8, $or$cond6, $vararg_ptr5, $11, $exitcond) { - $12 = $12 | 0; - $14 = $14 | 0; - $or$cond8 = $or$cond8 | 0; - $or$cond6 = $or$cond6 | 0; - $vararg_ptr5 = $vararg_ptr5 | 0; - $11 = $11 | 0; - $exitcond = $exitcond | 0; - var label = 0; - while(1) { - if ($14) { - if ($or$cond8) { - label = 7; - } else { - label = 8; - } - } else { - if ($or$cond6) { - label = 7; - } else { - label = 8; - } - } - if ((label|0) == 7) { - label = 0; - } - else if ((label|0) == 8) { - label = 0; - HEAP32[$vararg_ptr5>>2] = $11; - } - } - } - - function relooperJumpThreading_irreducible(x) { - x = x | 0; - var label = 0; - if ((x|0) == 100) { - label = 1; - } else { - label = 10; - } - if ((label|0) == 1) { - while (1) { - relooperJumpThreading_irreducible(1337); - label = 1; // this is ok - the if means the body of the if begins with the block for 1. so a setting inside the body of the if must return to the top of the if - } - } - // too many settings, we just look one back, so this one will not be optimized - if ((x|0) == 200) { - label = 2; - } else { - label = 10; - } - if ((x|0) == 300) { - label = 2; - } - if ((label|0) == 2) { - relooperJumpThreading_irreducible(1448); - } - if ((label|0) == 10) { - relooperJumpThreading_irreducible(2000); - } - } - - function __Z12multi_varargiz($0, $$06$i4, $exitcond$i6, $2) { - $0 = $0|0; - $$06$i4 = $$06$i4 | 0; - $exitcond$i6 = $exitcond$i6 | 0; - $2 = $2 | 0; - var $12 = 0, $20 = 0; - if ($2) { - while(1) { - $12 = $$06$i4; - if ($exitcond$i6) { - break; - } else { - $$06$i4 = $20; - } - } - } else { - lb(1) | 0; // returns a value, and the while is unreachable - } - } - - function jumpThreadDrop() { - var label = 0, temp = 0; - temp = return_int() | 0; - while (1) { - label = 14; - break; - } - if ((label | 0) == 10) { - } else if ((label | 0) == 12) { - return_int() | 0; // drop in the middle of an if-else chain for threading - } else if ((label | 0) == 14) { - } - return temp | 0; - } - - function dropIgnoredImportInIf($0,$1,$2) { - $0 = $0|0; - $1 = $1|0; - $2 = $2|0; - do { - if ($0) { - $0 = 1; - lb($2 | 0) | 0; - } else { - break; - } - } while(0); - return; - } - - function big_fround() { - return Math_fround(4294967295); - } - - function dropIgnoredImportsInIf($0,$1,$2) { - $0 = $0|0; - $1 = $1|0; - $2 = $2|0; - do { - if ($0) { - lb($1 | 0) | 0; - } else { - lb($2 | 0) | 0; - } - } while(0); - return; - } - - function f32_ucast(x) { - x = x | 0; - return Math_fround(x>>>0); - } - function f32_scast(x) { - x = x | 0; - return Math_fround(x|0); - } - - function store_fround(x) { - x = x | 0; - HEAPF64[10] = Math_fround(x|0); - } - - function relocatableAndModules() { - ftCall_v(10); // function table call - mftCall_v(20); // possible inter-module function table call - return ftCall_idi(30, 1.5, 200) | 0; // with args - } - - function exported_f32_user(x, y, z) { - x = x | 0; - y = Math_fround(y); - z = +z; - return Math_fround(y); - } - - function sqrts(x) { - x = +x; - return +(+Math_sqrt(x) + +Math_fround(Math_sqrt(Math_fround(x)))); - } - - function f2u(x) { - x = +x; - return (~~x>>>0) | 0; - } - function f2s(x) { - x = +x; - return (~~x) | 0; - } - - function autoDrop(x) { - x = x | 0; - while (1) { - if ((x | 0) == 17) { - return 5; - autoDrop(1) | 0; - } else { - break; - x = autoDrop(2) | 0; - } - } - return x | 0; - } - - function indirectInSequence() { - var i1 = 0; - // this indirect call should have the right type, vi - i1 = (FUNCTION_TABLE_vi[1 & 7](0), 1); - } - - function emterpretify_assertions_safeHeap() { - var i1 = 0; - // assignment into the function table param, optimizer can do things there - FUNCTION_TABLE_vi[(Int = 1) & 7](i1 | 0); - } - - function call_emscripten_log() { - // emscripten_log has no return value, don't let the conditional after the comma confuse you - emscripten_log(), 2 ? abort() | 0 : 3; - } - - function mod_detectSign(d1, d2, d8) { - d1 = +d1; - d2 = +d2; - d8 = +d8; - return ~~(d2 - d8 % d1 / d1 * d2); - } - - function keepAlive() { - sqrts(3.14159); - sqrts(2.18281); // don't inline it either - f2u(100.0); - f2s(100.0); - autoDrop(52) | 0; - indirectInSequence(); - emterpretify_assertions_safeHeap(); - call_emscripten_log(); - mod_detectSign(1.0, 2.31, 9.78); - nonZero = nonZero + 1 | 0; - } - - function v() { - } - function vi(x) { - x = x | 0; - } - function ii(x) { - x = x | 0; - return x | 0; - } - - var FUNCTION_TABLE_a = [ v, big_negative, v, v ]; - var FUNCTION_TABLE_b = [ w, w, importedDoubles, w ]; - var FUNCTION_TABLE_c = [ z, cneg, z, z, z, z, z, z ]; - var FUNCTION_TABLE_vi = [ vi, vi, vi, vi, vi, vi, vi, vi ]; - var FUNCTION_TABLE_ii = [ ii ]; - - return { big_negative: big_negative, pick: forgetMe, pick: exportMe, doubleCompares: doubleCompares, intOps: intOps, conversions: conversions, switcher: switcher, frem: frem, frem_float: frem_float, big_uint_div_u: big_uint_div_u, trapping_sint_div_s: trapping_sint_div_s, fr: fr, negZero: negZero, neg: neg, smallCompare: smallCompare, cneg_nosemicolon: cneg_nosemicolon, forLoop: forLoop, ceiling_32_64: ceiling_32_64, aborts: aborts, continues: continues, bitcasts: bitcasts, recursiveBlockMerging: recursiveBlockMerging, lb: lb, zeroInit: zeroInit, phi: phi, smallIf: smallIf, dropCall: dropCall, useGlobalSet: useGlobalSet, usesGlobalSet2: usesGlobalSet2, breakThroughMany: breakThroughMany, ifChainEmpty: ifChainEmpty, heap8NoShift: heap8NoShift, conditionalTypeFun: conditionalTypeFun, loadSigned: loadSigned, globalOpts: globalOpts, dropCallImport: dropCallImport, loophi: loophi, loophi2: loophi2, loophi2b: loophi2b, relooperJumpThreading: relooperJumpThreading, relooperJumpThreading__ZN4game14preloadweaponsEv: relooperJumpThreading__ZN4game14preloadweaponsEv, __Z12multi_varargiz: __Z12multi_varargiz, jumpThreadDrop: jumpThreadDrop, dropIgnoredImportInIf: dropIgnoredImportInIf, dropIgnoredImportsInIf: dropIgnoredImportsInIf, relooperJumpThreading_irreducible: relooperJumpThreading_irreducible, store_fround: store_fround, exportedNumber: 42, relocatableAndModules: relocatableAndModules, exported_f32_user: exported_f32_user, keepAlive: keepAlive }; -} - diff --git a/test/unreachable-import_wasm-only.asm.js b/test/unreachable-import_wasm-only.asm.js deleted file mode 100644 index 9df74a192e7..00000000000 --- a/test/unreachable-import_wasm-only.asm.js +++ /dev/null @@ -1,107 +0,0 @@ -function asm(global, env, buffer) { - "use asm"; - - var HEAP8 = new global.Int8Array(buffer); - var HEAP16 = new global.Int16Array(buffer); - var HEAP32 = new global.Int32Array(buffer); - var HEAPU8 = new global.Uint8Array(buffer); - var HEAPU16 = new global.Uint16Array(buffer); - var HEAPU32 = new global.Uint32Array(buffer); - var HEAPF32 = new global.Float32Array(buffer); - var HEAPF64 = new global.Float64Array(buffer); - - var DYNAMICTOP_PTR=env.DYNAMICTOP_PTR|0; - var tempDoublePtr=env.tempDoublePtr|0; - var ABORT=env.ABORT|0; - var STACKTOP=env.STACKTOP|0; - var STACK_MAX=env.STACK_MAX|0; - var ___async=env.___async|0; - var ___async_unwind=env.___async_unwind|0; - var ___async_retval=env.___async_retval|0; - var ___async_cur_frame=env.___async_cur_frame|0; - - var __THREW__ = 0; - var threwValue = 0; - var setjmpId = 0; - var undef = 0; - var nan = global.NaN, inf = global.Infinity; - var tempInt = 0, tempBigInt = 0, tempBigIntP = 0, tempBigIntS = 0, tempBigIntR = 0.0, tempBigIntI = 0, tempBigIntD = 0, tempValue = 0, tempDouble = 0.0; - var tempRet0 = 0; - - var Math_floor=global.Math.floor; - var Math_abs=global.Math.abs; - var Math_sqrt=global.Math.sqrt; - var Math_pow=global.Math.pow; - var Math_cos=global.Math.cos; - var Math_sin=global.Math.sin; - var Math_tan=global.Math.tan; - var Math_acos=global.Math.acos; - var Math_asin=global.Math.asin; - var Math_atan=global.Math.atan; - var Math_atan2=global.Math.atan2; - var Math_exp=global.Math.exp; - var Math_log=global.Math.log; - var Math_ceil=global.Math.ceil; - var Math_imul=global.Math.imul; - var Math_min=global.Math.min; - var Math_max=global.Math.max; - var Math_clz32=global.Math.clz32; - var Math_fround=global.Math.fround; - var abort=env.abort; - var assert=env.assert; - var enlargeMemory=env.enlargeMemory; - var getTotalMemory=env.getTotalMemory; - var abortOnCannotGrowMemory=env.abortOnCannotGrowMemory; - var invoke_iiii=env.invoke_iiii; - var invoke_viiiii=env.invoke_viiiii; - var invoke_vi=env.invoke_vi; - var invoke_ii=env.invoke_ii; - var invoke_v=env.invoke_v; - var invoke_viiiiii=env.invoke_viiiiii; - var invoke_viiii=env.invoke_viiii; - var _pthread_cleanup_pop=env._pthread_cleanup_pop; - var _pthread_key_create=env._pthread_key_create; - var ___syscall6=env.___syscall6; - var ___gxx_personality_v0=env.___gxx_personality_v0; - var ___assert_fail=env.___assert_fail; - var ___cxa_allocate_exception=env.___cxa_allocate_exception; - var __ZSt18uncaught_exceptionv=env.__ZSt18uncaught_exceptionv; - var ___setErrNo=env.___setErrNo; - var ___cxa_begin_catch=env.___cxa_begin_catch; - var _emscripten_memcpy_big=env._emscripten_memcpy_big; - var ___resumeException=env.___resumeException; - var ___cxa_find_matching_catch=env.___cxa_find_matching_catch; - var _pthread_getspecific=env._pthread_getspecific; - var _pthread_once=env._pthread_once; - var ___syscall54=env.___syscall54; - var ___unlock=env.___unlock; - var _pthread_setspecific=env._pthread_setspecific; - var ___cxa_throw=env.___cxa_throw; - var ___lock=env.___lock; - var _abort=env._abort; - var _pthread_cleanup_push=env._pthread_cleanup_push; - var ___syscall140=env.___syscall140; - var ___cxa_pure_virtual=env.___cxa_pure_virtual; - var ___syscall146=env.___syscall146; - var tempFloat = Math_fround(0); - const f0 = Math_fround(0); - -function __ZN10WasmAssertC2Ev__async_cb($0) { - $0 = $0|0; - switch (0) { - case 0: { - store4(12,26); - return; - break; - } - default: { - $0 = (___cxa_allocate_exception(4)|0); - store4($0,1); - ___cxa_throw(($0|0),(1280|0),(0|0)); - } - } -} - - return { __ZN10WasmAssertC2Ev__async_cb: __ZN10WasmAssertC2Ev__async_cb }; -} - diff --git a/test/use-import-and-drop.asm.js b/test/use-import-and-drop.asm.js deleted file mode 100644 index 57688ced9c1..00000000000 --- a/test/use-import-and-drop.asm.js +++ /dev/null @@ -1,19 +0,0 @@ -Module["asm"] = (function(global, env, buffer) { - "use asm"; - var setTempRet0=env.setTempRet0; - var Math_imul = global.Math.imul; - function test1() { - var $b$1 = 0, $x_sroa_0_0_extract_trunc = 0, $2 = 0, $1$1 = 0, $1$0 = 0; - // Here we use setTempRet0 as if it returns i32, and later as if no return value. - // We should *not* expand the return type to f64, as this is not an overloaded return value - return (setTempRet0((((Math_imul($b$1, $x_sroa_0_0_extract_trunc) | 0) + $2 | 0) + $1$1 | $1$1 & 0) | 0), 0 | $1$0 & -1) | 0; - } - function test2() { - setTempRet0(10); - } - return { - }; -}); - - - diff --git a/test/wasm-only.asm.js b/test/wasm-only.asm.js deleted file mode 100644 index 056f45801f9..00000000000 --- a/test/wasm-only.asm.js +++ /dev/null @@ -1,484 +0,0 @@ -// -// Test wasm-only builds. In this case, fastcomp emits code that is -// not asm.js, it will only ever run as wasm, and contains special intrinsics for -// asm2wasm that map LLVM IR into i64s. -// - -function asm(global, env, buffer) { - "use asm"; - - var HEAP8 = new global.Int8Array(buffer); - var HEAP16 = new global.Int16Array(buffer); - var HEAP32 = new global.Int32Array(buffer); - var HEAPU8 = new global.Uint8Array(buffer); - var HEAPU16 = new global.Uint16Array(buffer); - var HEAPU32 = new global.Uint32Array(buffer); - var HEAPF32 = new global.Float32Array(buffer); - var HEAPF64 = new global.Float64Array(buffer); - - var STACKTOP = env.STACKTOP | 0; - - var fround = global.Math.fround; - var Math_imul = global.Math.imul; - - var illegalImport = env.illegalImport; - var illegalImportResult = env.illegalImportResult; - - var _fabsf = env._fabsf; - var do_i64 = env.do_i64; - var abort = env.abort; - - function loads() { - var i = 0, f = fround(0), d = +0; - i = load1(100); - i = load1(101, 0); - i = load2(102); - i = load2(103, 0); - i = load2(104, 1); - i = load2(105, 2); - i = load4(106); - i = load4(107, 0); - i = load4(108, 1); - i = load4(109, 2); - i = load4(110, 4); - f = loadf(111); - f = loadf(112, 0); - f = loadf(113, 1); - f = loadf(114, 2); - f = loadf(115, 4); - d = loadd(116); - d = loadd(117, 0); - d = loadd(118, 1); - d = loadd(119, 2); - d = loadd(120, 4); - d = loadd(121, 8); - } - - function stores() { - var i = 0, f = fround(0), d = +0; - store1(100, i); - store1(101, i, 0); - store2(102, i); - store2(103, i, 0); - store2(104, i, 1); - store2(105, i, 2); - store4(106, i); - store4(107, i, 0); - store4(108, i, 1); - store4(109, i, 2); - store4(110, i, 4); - storef(111, f); - storef(112, f, 0); - storef(113, f, 1); - storef(114, f, 2); - storef(115, f, 4); - stored(116, d); - stored(117, d, 0); - stored(118, d, 1); - stored(119, d, 2); - stored(120, d, 4); - stored(121, d, 8); - } - - function test() { - var i = 0, j = i64(), f = fround(0), f1 = fround(0), f2 = fround(0), d1 = +0, d2 = +0; - // bitcasts - i = i32_bc2i(f); - f = i32_bc2f(i); - i = i32_cttz(i); - i = i32_ctpop(i); - j = i64_ctpop(j); - f1 = f32_copysign(f1, f2); - d1 = f64_copysign(d1, d2); - } - - function test64() { - var x = i64(), y = i64(), z = 0; // define i64 variables using special intrinsic - var int32 = 0, float32 = fround(0), float64 = +0; - x = i64_const(100, 0); // i64 constant - y = i64_const(17, 30); - x = i64_add(x, y); // binaries - x = i64_sub(x, y); - x = i64_mul(x, y); - x = i64_udiv(x, y); - x = i64_sdiv(x, y); - x = i64_urem(x, y); - x = i64_srem(x, y); - x = i64_and(x, y); - x = i64_or(x, y); - x = i64_xor(x, y); - x = i64_shl(x, y); - x = i64_ashr(x, y); - x = i64_lshr(x, y); - x = load8(120, 0); // load and store - x = load8(120); - x = load8(120, 2); - x = load8(120, 4); - x = load8(120, 8); - store8(120, x, 0); - store8(120, x); - store8(120, x, 2); - store8(120, x, 4); - store8(120, x, 8); - // comps - z = i64_eq(x, y); - z = i64_ne(x, y); - z = i64_ule(x, y); - z = i64_sle(x, y); - z = i64_uge(x, y); - z = i64_sge(x, y); - z = i64_ult(x, y); - z = i64_slt(x, y); - z = i64_ugt(x, y); - z = i64_sgt(x, y); - // convs - int32 = i64_trunc(x); - x = i64_sext(int32); - x = i64_zext(int32); - float32 = i64_s2f(x); - float64 = i64_s2d(x); - float32 = i64_u2f(x); - float64 = i64_u2d(x); - x = i64_f2s(float32); - x = i64_d2s(float64); - x = i64_f2u(float32); - x = i64_d2u(float64); - // bitcasts - x = i64_bc2i(float64); - float64 = i64_bc2d(x); - // intrinsics - x = i64_ctlz(y); - y = i64_cttz(x); - } - function imports() { - illegalImport(-3.13159, i64_const(11, 22), -33); // this call must be legalized - return i64(illegalImportResult()); - } - function arg(x) { // illegal param, but not exported - x = i64(x); - store8(100, x, 0); - arg(i64(x)); // "coercion"/"cast" - } - function illegalParam(a, x, c) { - a = 0; - x = i64(x); - b = +0; - store4(50, a, 0); - store8(100, x, 0); - stored(200, b, 0); - illegalParam(0, i64(x), 12.34); // "coercion"/"cast" - } - function result() { // illegal result, but not exported - return i64_const(1, 2); - } - function illegalResult() { // illegal result, exported - return i64_const(1, 2); - } - function call1(x) { - x = i64(x); - var y = i64(); - y = i64(call1(x)); - return i64(y); // return i64 with a "cast" - } - function call2(x) { - x = i64(x); - i64(call2(i64(call2(x)))); - return i64_const(591726473, 57073); // return an i64 const - } - function returnCastConst() { - return i64(0); - } - function ifValue64($4, $6) { - $4 = i64($4); - $6 = i64($6); - var $$0 = i64(), $9 = i64(), $10 = i64(); - if ($6) { - $9 = i64(call2($4)); - $$0 = $9; - } else { - $10 = i64(call2($4)); - $$0 = $10; - } - return i64($$0); - } - function ifValue32($4, $6) { - $4 = $4 | 0; - $6 = $6 | 0; - var $$0 = 0, $9 = 0, $10 = 0; - if ($6) { - $9 = ifValue32($4 | 0, $6 | 0) | 0; - $$0 = $9; - } else { - $10 = ifValue32($4 | 0, $6 | 0) | 0; - $$0 = $10; - } - return $$0 | 0; - } - function switch64($a444) { - $a444 = i64($a444); - var $waka = 0; - switch (i64($a444)) { - case i64_const(7,10): { - $waka = 11000; - break; - } - case i64_const(5,10): { - $waka = 10; - break; - } - default: { - $waka = 1; - } - } - return $waka | 0; - } - function unreachable_leftovers($0,$1,$2) { - $0 = $0|0; - $1 = $1|0; - $2 = $2|0; - var label = 0; - L1: do { - if ($1) { - label = 10; - } else { - if ($2) { - break L1; - return; - } - store4($0,-2); - return; - } - } while(0); - if ((label|0) == 10) { - store4($0,-1); - } - return; - } - function switch64TOOMUCH($a444) { - $a444 = i64($a444); - var $waka = 0; - switch (i64($a444)) { - case i64_const(0,1073741824): // spread is huge here, we should not make a jump table! - case i64_const(0,2147483648): { - return 40; - } - default: { - $waka = 1; - } - } - switch (100) { - case 107374182: // similar, but 32-bit - case 214748364: { - return 41; - } - default: { - $waka = 1001; - } - } - // no defaults - switch (i64($a444)) { - case i64_const(0,1073741824): // spread is huge here, we should not make a jump table! - case i64_const(0,2147483648): { - return 42; - } - } - switch (100) { - case 107374182: // similar, but 32-bit - case 214748364: { - return 43; - } - } - return 44; - } - function _memchr($src,$c,$n) { - $src = $src|0; - $c = $c|0; - $n = $n|0; - var $0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $and = 0, $and15 = 0, $and16 = 0, $and39 = 0, $cmp = 0, $cmp11 = 0, $cmp1132 = 0, $cmp28 = 0, $cmp8 = 0, $cond = 0, $conv1 = 0, $dec = 0; - var $dec34 = 0, $incdec$ptr = 0, $incdec$ptr21 = 0, $incdec$ptr33 = 0, $lnot = 0, $mul = 0, $n$addr$0$lcssa = 0, $n$addr$0$lcssa52 = 0, $n$addr$043 = 0, $n$addr$1$lcssa = 0, $n$addr$133 = 0, $n$addr$227 = 0, $n$addr$3 = 0, $neg = 0, $or$cond = 0, $or$cond42 = 0, $s$0$lcssa = 0, $s$0$lcssa53 = 0, $s$044 = 0, $s$128 = 0; - var $s$2 = 0, $sub = 0, $sub22 = 0, $tobool = 0, $tobool2 = 0, $tobool2$lcssa = 0, $tobool241 = 0, $tobool25 = 0, $tobool2526 = 0, $tobool36 = 0, $tobool40 = 0, $w$0$lcssa = 0, $w$034 = 0, $xor = 0, label = 0, sp = 0; - sp = STACKTOP; - $conv1 = $c & 255; - $0 = $src; - $and39 = $0 & 3; - $tobool40 = ($and39|0)!=(0); - $tobool241 = ($n|0)!=(0); - $or$cond42 = $tobool241 & $tobool40; - L1: do { - if ($or$cond42) { - $1 = $c&255; - $n$addr$043 = $n;$s$044 = $src; - while(1) { - $2 = load1($s$044); - $cmp = ($2<<24>>24)==($1<<24>>24); - if ($cmp) { - $n$addr$0$lcssa52 = $n$addr$043;$s$0$lcssa53 = $s$044; - label = 6; - break L1; - } - $incdec$ptr = ((($s$044)) + 1|0); - $dec = (($n$addr$043) + -1)|0; - $3 = $incdec$ptr; - $and = $3 & 3; - $tobool = ($and|0)!=(0); - $tobool2 = ($dec|0)!=(0); - $or$cond = $tobool2 & $tobool; - if ($or$cond) { - $n$addr$043 = $dec;$s$044 = $incdec$ptr; - } else { - $n$addr$0$lcssa = $dec;$s$0$lcssa = $incdec$ptr;$tobool2$lcssa = $tobool2; - label = 5; - break; - } - } - } else { - $n$addr$0$lcssa = $n;$s$0$lcssa = $src;$tobool2$lcssa = $tobool241; - label = 5; - } - } while(0); - if ((label|0) == 5) { - if ($tobool2$lcssa) { - $n$addr$0$lcssa52 = $n$addr$0$lcssa;$s$0$lcssa53 = $s$0$lcssa; - label = 6; - } else { - $n$addr$3 = 0;$s$2 = $s$0$lcssa; - } - } - L8: do { - if ((label|0) == 6) { - $4 = load1($s$0$lcssa53); - $5 = $c&255; - $cmp8 = ($4<<24>>24)==($5<<24>>24); - if ($cmp8) { - $n$addr$3 = $n$addr$0$lcssa52;$s$2 = $s$0$lcssa53; - } else { - $mul = Math_imul($conv1, 16843009)|0; - $cmp1132 = ($n$addr$0$lcssa52>>>0)>(3); - L11: do { - if ($cmp1132) { - $n$addr$133 = $n$addr$0$lcssa52;$w$034 = $s$0$lcssa53; - while(1) { - $6 = load4($w$034); - $xor = $6 ^ $mul; - $sub = (($xor) + -16843009)|0; - $neg = $xor & -2139062144; - $and15 = $neg ^ -2139062144; - $and16 = $and15 & $sub; - $lnot = ($and16|0)==(0); - if (!($lnot)) { - break; - } - $incdec$ptr21 = ((($w$034)) + 4|0); - $sub22 = (($n$addr$133) + -4)|0; - $cmp11 = ($sub22>>>0)>(3); - if ($cmp11) { - $n$addr$133 = $sub22;$w$034 = $incdec$ptr21; - } else { - $n$addr$1$lcssa = $sub22;$w$0$lcssa = $incdec$ptr21; - label = 11; - break L11; - } - } - $n$addr$227 = $n$addr$133;$s$128 = $w$034; - } else { - $n$addr$1$lcssa = $n$addr$0$lcssa52;$w$0$lcssa = $s$0$lcssa53; - label = 11; - } - } while(0); - if ((label|0) == 11) { - $tobool2526 = ($n$addr$1$lcssa|0)==(0); - if ($tobool2526) { - $n$addr$3 = 0;$s$2 = $w$0$lcssa; - break; - } else { - $n$addr$227 = $n$addr$1$lcssa;$s$128 = $w$0$lcssa; - } - } - while(1) { - $7 = load1($s$128); - $cmp28 = ($7<<24>>24)==($5<<24>>24); - if ($cmp28) { - $n$addr$3 = $n$addr$227;$s$2 = $s$128; - break L8; - } - $incdec$ptr33 = ((($s$128)) + 1|0); - $dec34 = (($n$addr$227) + -1)|0; - $tobool25 = ($dec34|0)==(0); - if ($tobool25) { - $n$addr$3 = 0;$s$2 = $incdec$ptr33; - break; - } else { - $n$addr$227 = $dec34;$s$128 = $incdec$ptr33; - } - } - } - } - } while(0); - $tobool36 = ($n$addr$3|0)!=(0); - $cond = $tobool36 ? $s$2 : 0; - return ($cond|0); - } - - function switch64_big_condition1($x) { - $x = i64($x); - switch (i64($x)) { - case i64_const(0,2146435072): { - abort(); - break; - } - default: { - return; - } - } - } - function switch64_big_condition2($x) { - $x = i64($x); - switch (i64($x)) { - case i64_const(0,2146435072): { - abort(); - break; - } - } - } - - function keepAlive() { - loads(); - loads(); - stores(); - stores(); - test(); - test(); - i64(imports()); - i64(imports()); - arg(i64(0)); - arg(i64(0)); - i64(call1(i64(0))); - i64(call1(i64(0))); - i64(call2(i64(0))); - i64(call2(i64(0))); - i64(returnCastConst()); - i64(returnCastConst()); - i64(ifValue64(i64(0), i64(0))); - i64(ifValue64(i64(0), i64(0))); - ifValue32(0, 0) | 0; - ifValue32(0, 0) | 0; - switch64(i64(0)) | 0; - switch64(i64(0)) | 0; - unreachable_leftovers(0, 0, 0); - unreachable_leftovers(0, 0, 0); - _memchr(0, 0, 0) | 0; - switch64TOOMUCH(i64(0)) | 0; - switch64_big_condition1(i64(0)); - switch64_big_condition2(i64(0)); - } - - function __emscripten_dceable_type_decls() { // dce-able, but this defines the type of fabsf which has no other use - fround(_fabsf(fround(0.0))); - i64(do_i64()); - } - - var FUNCTION_TABLE_X = [illegalImport, _fabsf, do_i64]; // must stay ok in the table, not legalized, as it will be called internally by the true type - - return { test64: test64, illegalParam : illegalParam, illegalResult: illegalResult, keepAlive: keepAlive }; -} -