diff options
author | Alon Zakai <azakai@google.com> | 2019-05-01 10:43:01 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-01 10:43:01 -0700 |
commit | 73709b4da08d285c2237c8c23a54ba53274c0c7f (patch) | |
tree | 2f428e5367c511b22391a8c471edbc0e7ed0688a /test/wasm2js | |
parent | ac93469d7fde75397403db94d9bf0c1bac0cf60f (diff) | |
download | binaryen-73709b4da08d285c2237c8c23a54ba53274c0c7f.tar.gz binaryen-73709b4da08d285c2237c8c23a54ba53274c0c7f.tar.bz2 binaryen-73709b4da08d285c2237c8c23a54ba53274c0c7f.zip |
wasm2js: run more optimizations (#2073)
In particular, coalesce-locals is useful even if closure is run later (apparently it finds stuff closure can't).
Diffstat (limited to 'test/wasm2js')
60 files changed, 17230 insertions, 22417 deletions
diff --git a/test/wasm2js/address.2asm.js b/test/wasm2js/address.2asm.js index 3863702fd..b0cbea550 100644 --- a/test/wasm2js/address.2asm.js +++ b/test/wasm2js/address.2asm.js @@ -23,27 +23,27 @@ function asmFunc(global, env, buffer) { var nan = global.NaN; var infinity = global.Infinity; var print = env.print; - function $0(i) { - i = i | 0; + function $0($0_1) { + $0_1 = $0_1 | 0; var wasm2js_i32$0 = 0; - print(HEAPU8[i >> 0] | 0 | 0); - print(HEAPU8[(i + 1 | 0) >> 0] | 0 | 0); - print(HEAPU8[(i + 2 | 0) >> 0] | 0 | 0); - print(HEAPU8[(i + 25 | 0) >> 0] | 0 | 0); - print(HEAPU16[i >> 1] | 0 | 0); - print((wasm2js_i32$0 = i, HEAPU8[wasm2js_i32$0 >> 0] | 0 | 0 | (HEAPU8[(wasm2js_i32$0 + 1 | 0) >> 0] | 0 | 0) << 8) | 0); - print((wasm2js_i32$0 = i, HEAPU8[(wasm2js_i32$0 + 1 | 0) >> 0] | 0 | 0 | (HEAPU8[(wasm2js_i32$0 + 2 | 0) >> 0] | 0 | 0) << 8) | 0); - print(HEAPU16[(i + 2 | 0) >> 1] | 0 | 0); - print((wasm2js_i32$0 = i, HEAPU8[(wasm2js_i32$0 + 25 | 0) >> 0] | 0 | 0 | (HEAPU8[(wasm2js_i32$0 + 26 | 0) >> 0] | 0 | 0) << 8) | 0); - print(HEAP32[i >> 2] | 0 | 0); - print((wasm2js_i32$0 = i, HEAPU8[(wasm2js_i32$0 + 1 | 0) >> 0] | 0 | 0 | (HEAPU8[(wasm2js_i32$0 + 2 | 0) >> 0] | 0 | 0) << 8 | (HEAPU8[(wasm2js_i32$0 + 3 | 0) >> 0] | 0 | 0) << 16 | (HEAPU8[(wasm2js_i32$0 + 4 | 0) >> 0] | 0 | 0) << 24) | 0); - print((wasm2js_i32$0 = i, HEAPU8[(wasm2js_i32$0 + 2 | 0) >> 0] | 0 | 0 | (HEAPU8[(wasm2js_i32$0 + 3 | 0) >> 0] | 0 | 0) << 8 | (HEAPU8[(wasm2js_i32$0 + 4 | 0) >> 0] | 0 | 0) << 16 | (HEAPU8[(wasm2js_i32$0 + 5 | 0) >> 0] | 0 | 0) << 24) | 0); - print((wasm2js_i32$0 = i, HEAPU8[(wasm2js_i32$0 + 25 | 0) >> 0] | 0 | 0 | (HEAPU8[(wasm2js_i32$0 + 26 | 0) >> 0] | 0 | 0) << 8 | (HEAPU8[(wasm2js_i32$0 + 27 | 0) >> 0] | 0 | 0) << 16 | (HEAPU8[(wasm2js_i32$0 + 28 | 0) >> 0] | 0 | 0) << 24) | 0); + print(HEAPU8[$0_1 >> 0] | 0 | 0); + print(HEAPU8[($0_1 + 1 | 0) >> 0] | 0 | 0); + print(HEAPU8[($0_1 + 2 | 0) >> 0] | 0 | 0); + print(HEAPU8[($0_1 + 25 | 0) >> 0] | 0 | 0); + print(HEAPU16[$0_1 >> 1] | 0 | 0); + print((wasm2js_i32$0 = $0_1, HEAPU8[wasm2js_i32$0 >> 0] | 0 | 0 | (HEAPU8[(wasm2js_i32$0 + 1 | 0) >> 0] | 0 | 0) << 8) | 0); + print((wasm2js_i32$0 = $0_1, HEAPU8[(wasm2js_i32$0 + 1 | 0) >> 0] | 0 | 0 | (HEAPU8[(wasm2js_i32$0 + 2 | 0) >> 0] | 0 | 0) << 8) | 0); + print(HEAPU16[($0_1 + 2 | 0) >> 1] | 0 | 0); + print((wasm2js_i32$0 = $0_1, HEAPU8[(wasm2js_i32$0 + 25 | 0) >> 0] | 0 | 0 | (HEAPU8[(wasm2js_i32$0 + 26 | 0) >> 0] | 0 | 0) << 8) | 0); + print(HEAP32[$0_1 >> 2] | 0 | 0); + print((wasm2js_i32$0 = $0_1, HEAPU8[(wasm2js_i32$0 + 1 | 0) >> 0] | 0 | 0 | (HEAPU8[(wasm2js_i32$0 + 2 | 0) >> 0] | 0 | 0) << 8 | (HEAPU8[(wasm2js_i32$0 + 3 | 0) >> 0] | 0 | 0) << 16 | (HEAPU8[(wasm2js_i32$0 + 4 | 0) >> 0] | 0 | 0) << 24) | 0); + print((wasm2js_i32$0 = $0_1, HEAPU8[(wasm2js_i32$0 + 2 | 0) >> 0] | 0 | 0 | (HEAPU8[(wasm2js_i32$0 + 3 | 0) >> 0] | 0 | 0) << 8 | (HEAPU8[(wasm2js_i32$0 + 4 | 0) >> 0] | 0 | 0) << 16 | (HEAPU8[(wasm2js_i32$0 + 5 | 0) >> 0] | 0 | 0) << 24) | 0); + print((wasm2js_i32$0 = $0_1, HEAPU8[(wasm2js_i32$0 + 25 | 0) >> 0] | 0 | 0 | (HEAPU8[(wasm2js_i32$0 + 26 | 0) >> 0] | 0 | 0) << 8 | (HEAPU8[(wasm2js_i32$0 + 27 | 0) >> 0] | 0 | 0) << 16 | (HEAPU8[(wasm2js_i32$0 + 28 | 0) >> 0] | 0 | 0) << 24) | 0); } - function $1(i) { - i = i | 0; - HEAP32[(i + 4294967295 | 0) >> 2] | 0; + function $1($0_1) { + $0_1 = $0_1 | 0; + HEAP32[($0_1 + 4294967295 | 0) >> 2] | 0; } var FUNCTION_TABLE = []; diff --git a/test/wasm2js/block.2asm.js b/test/wasm2js/block.2asm.js index ce6bd5b64..87649e0b4 100644 --- a/test/wasm2js/block.2asm.js +++ b/test/wasm2js/block.2asm.js @@ -121,28 +121,27 @@ function asmFunc(global, env, buffer) { } function $13() { - var $0 = 0, $1_1 = 0, $2_1 = 0, $5_1 = 0, $9_1 = 0, $10_1 = 0, $13_1 = 0, $14_1 = 0; + var $0 = 0, $1_1 = 0; $0 = 0; - $1_1 = $0; block : { - $2_1 = 1; + $1_1 = 1; break block; } - $0 = $1_1 + $2_1 | 0; - $5_1 = $0; - $0 = $5_1 + 2 | 0; - $9_1 = $0; + $0 = $0 + $1_1 | 0; + block49 : { + break block49; + } + $0 = $0 + 2 | 0; block50 : { - $10_1 = 4; + $1_1 = 4; break block50; } - $0 = $9_1 + $10_1 | 0; - $13_1 = $0; + $0 = $0 + $1_1 | 0; block51 : { - $14_1 = 8; + $1_1 = 8; break block51; } - $0 = $13_1 + $14_1 | 0; + $0 = $0 + $1_1 | 0; return $0 | 0; } @@ -158,10 +157,10 @@ function asmFunc(global, env, buffer) { return ($0 | 0) == (-14 | 0) | 0; } - function __wasm_ctz_i32(var$0) { - var$0 = var$0 | 0; - if (var$0) { - return 31 - Math_clz32((var$0 + -1 | 0) ^ var$0 | 0) | 0 | 0 + function __wasm_ctz_i32($0) { + $0 = $0 | 0; + if ($0) { + return 31 - Math_clz32(($0 + -1 | 0) ^ $0 | 0) | 0 | 0 } return 32 | 0; } diff --git a/test/wasm2js/br.2asm.js b/test/wasm2js/br.2asm.js index d8cbcb1e3..95916d896 100644 --- a/test/wasm2js/br.2asm.js +++ b/test/wasm2js/br.2asm.js @@ -54,16 +54,14 @@ function asmFunc(global, env, buffer) { } function $6() { - var i64toi32_i32$0 = 0, $0 = 0, $0$hi = 0; + var $0 = 0, $1_1 = 0; block : { - i64toi32_i32$0 = 0; - $0 = 2; - $0$hi = i64toi32_i32$0; + $0 = 0; + $1_1 = 2; break block; } - i64toi32_i32$0 = $0$hi; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return $0 | 0; + i64toi32_i32$HIGH_BITS = $0; + return $1_1 | 0; } function $7() { @@ -113,7 +111,7 @@ function asmFunc(global, env, buffer) { } function $13() { - var $0 = 0, $1_1 = 0, $3_1 = 0; + var $0 = 0; block : { $0 = 3; break block; @@ -122,7 +120,7 @@ function asmFunc(global, env, buffer) { } function $14() { - var $0 = 0, $1_1 = 0, $3_1 = 0; + var $0 = 0; block : { dummy(); $0 = 4; @@ -195,20 +193,18 @@ function asmFunc(global, env, buffer) { } function $23() { - var i64toi32_i32$0 = 0, $0 = 0, $0$hi = 0; + var $0 = 0, $1_1 = 0; block : { - i64toi32_i32$0 = 0; - $0 = 7; - $0$hi = i64toi32_i32$0; + $0 = 0; + $1_1 = 7; break block; } - i64toi32_i32$0 = $0$hi; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return $0 | 0; + i64toi32_i32$HIGH_BITS = $0; + return $1_1 | 0; } function $24() { - var $0 = 0, $1_1 = 0; + var $0 = 0; if_ : { $0 = 2; break if_; @@ -219,60 +215,49 @@ function asmFunc(global, env, buffer) { function $25($0, $1_1) { $0 = $0 | 0; $1_1 = $1_1 | 0; - var $3_1 = 0, $5_1 = 0; block : { if ($0) { { - $3_1 = 3; + $1_1 = 3; break block; } - } else { - $5_1 = $1_1 } - $3_1 = $5_1; } - return $3_1 | 0; + return $1_1 | 0; } function $26($0, $1_1) { $0 = $0 | 0; $1_1 = $1_1 | 0; - var $4_1 = 0, $5_1 = 0; block : { - if ($0) { - $5_1 = $1_1 - } else { + if (!$0) { { - $4_1 = 4; + $1_1 = 4; break block; } } - $4_1 = $5_1; } - return $4_1 | 0; + return $1_1 | 0; } function $27($0, $1_1) { $0 = $0 | 0; $1_1 = $1_1 | 0; - var $2_1 = 0, $3_1 = 0, $4_1 = 0; block : { - $2_1 = 5; + $0 = 5; break block; } - return $2_1 | 0; + return $0 | 0; } function $28($0, $1_1) { $0 = $0 | 0; $1_1 = $1_1 | 0; - var $2_1 = 0, $3_1 = 0, $4_1 = 0; block : { - $2_1 = $0; - $3_1 = 6; + $0 = 6; break block; } - return $3_1 | 0; + return $0 | 0; } function $29() { @@ -355,12 +340,12 @@ function asmFunc(global, env, buffer) { } function $38() { - var $1_1 = 0; + var $0 = 0; block : { - $1_1 = 17; + $0 = 17; break block; } - return $1_1 | 0; + return $0 | 0; } function $39() { @@ -373,16 +358,14 @@ function asmFunc(global, env, buffer) { } function $40() { - var i64toi32_i32$0 = 0, $0 = 0, $0$hi = 0; + var $0 = 0, $1_1 = 0; block : { - i64toi32_i32$0 = 0; - $0 = 30; - $0$hi = i64toi32_i32$0; + $0 = 0; + $1_1 = 30; break block; } - i64toi32_i32$0 = $0$hi; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return $0 | 0; + i64toi32_i32$HIGH_BITS = $0; + return $1_1 | 0; } function $41() { @@ -440,14 +423,13 @@ function asmFunc(global, env, buffer) { } function $47() { - var $0 = 0, $0$hi = 0, i64toi32_i32$1 = 0; + var $0 = 0, $1_1 = 0; block : { $0 = 45; - $0$hi = 0; + $1_1 = 0; break block; } - i64toi32_i32$1 = $0$hi; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; + i64toi32_i32$HIGH_BITS = $1_1; return $0 | 0; } @@ -516,7 +498,7 @@ function asmFunc(global, env, buffer) { } function $55() { - var $0 = 0, $1_1 = 0; + var $0 = 0; block : { $0 = 8; break block; @@ -552,107 +534,71 @@ function asmFunc(global, env, buffer) { } function legalstub$6() { - var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $6() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$2 = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = 0; - $7_1 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + var $0 = 0, $1_1 = 0, $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0; + $0 = $6() | 0; + $2_1 = i64toi32_i32$HIGH_BITS; + $4_1 = $0; + $5_1 = $2_1; + $3_1 = 32; + $1_1 = $3_1 & 31 | 0; + if (32 >>> 0 <= ($3_1 & 63 | 0) >>> 0) { + $0 = $2_1 >>> $1_1 | 0 } else { - { - i64toi32_i32$0 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $7_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $0 = (((1 << $1_1 | 0) - 1 | 0) & $2_1 | 0) << (32 - $1_1 | 0) | 0 | ($0 >>> $1_1 | 0) | 0 } - setTempRet0($7_1 | 0); - i64toi32_i32$0 = $0$hi; - return $0 | 0; + setTempRet0($0 | 0); + return $4_1 | 0; } function legalstub$23() { - var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $23() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$2 = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = 0; - $7_1 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + var $0 = 0, $1_1 = 0, $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0; + $0 = $23() | 0; + $2_1 = i64toi32_i32$HIGH_BITS; + $4_1 = $0; + $5_1 = $2_1; + $3_1 = 32; + $1_1 = $3_1 & 31 | 0; + if (32 >>> 0 <= ($3_1 & 63 | 0) >>> 0) { + $0 = $2_1 >>> $1_1 | 0 } else { - { - i64toi32_i32$0 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $7_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $0 = (((1 << $1_1 | 0) - 1 | 0) & $2_1 | 0) << (32 - $1_1 | 0) | 0 | ($0 >>> $1_1 | 0) | 0 } - setTempRet0($7_1 | 0); - i64toi32_i32$0 = $0$hi; - return $0 | 0; + setTempRet0($0 | 0); + return $4_1 | 0; } function legalstub$40() { - var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $40() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$2 = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = 0; - $7_1 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + var $0 = 0, $1_1 = 0, $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0; + $0 = $40() | 0; + $2_1 = i64toi32_i32$HIGH_BITS; + $4_1 = $0; + $5_1 = $2_1; + $3_1 = 32; + $1_1 = $3_1 & 31 | 0; + if (32 >>> 0 <= ($3_1 & 63 | 0) >>> 0) { + $0 = $2_1 >>> $1_1 | 0 } else { - { - i64toi32_i32$0 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $7_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $0 = (((1 << $1_1 | 0) - 1 | 0) & $2_1 | 0) << (32 - $1_1 | 0) | 0 | ($0 >>> $1_1 | 0) | 0 } - setTempRet0($7_1 | 0); - i64toi32_i32$0 = $0$hi; - return $0 | 0; + setTempRet0($0 | 0); + return $4_1 | 0; } function legalstub$47() { - var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $47() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$2 = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = 0; - $7_1 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + var $0 = 0, $1_1 = 0, $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0; + $0 = $47() | 0; + $2_1 = i64toi32_i32$HIGH_BITS; + $4_1 = $0; + $5_1 = $2_1; + $3_1 = 32; + $1_1 = $3_1 & 31 | 0; + if (32 >>> 0 <= ($3_1 & 63 | 0) >>> 0) { + $0 = $2_1 >>> $1_1 | 0 } else { - { - i64toi32_i32$0 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $7_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $0 = (((1 << $1_1 | 0) - 1 | 0) & $2_1 | 0) << (32 - $1_1 | 0) | 0 | ($0 >>> $1_1 | 0) | 0 } - setTempRet0($7_1 | 0); - i64toi32_i32$0 = $0$hi; - return $0 | 0; + setTempRet0($0 | 0); + return $4_1 | 0; } var FUNCTION_TABLE = []; diff --git a/test/wasm2js/br_if.2asm.js b/test/wasm2js/br_if.2asm.js index d99629165..15b797799 100644 --- a/test/wasm2js/br_if.2asm.js +++ b/test/wasm2js/br_if.2asm.js @@ -50,9 +50,9 @@ function asmFunc(global, env, buffer) { function $3($0) { $0 = $0 | 0; + dummy(); + dummy(); block : { - dummy(); - dummy(); if ($0) { break block } @@ -61,43 +61,43 @@ function asmFunc(global, env, buffer) { function $4($0) { $0 = $0 | 0; - var $2_1 = 0; + var $1_1 = 0; block : { - $2_1 = 10; + $1_1 = 10; if ($0) { break block } return 11 | 0; } - return $2_1 | 0; + return $1_1 | 0; } function $5($0) { $0 = $0 | 0; - var $2_1 = 0; + var $1_1 = 0; block : { dummy(); - $2_1 = 20; + $1_1 = 20; if ($0) { break block } return 21 | 0; } - return $2_1 | 0; + return $1_1 | 0; } function $6($0) { $0 = $0 | 0; - var $2_1 = 0; + var $1_1 = 0; + dummy(); + dummy(); + $1_1 = 11; block : { - dummy(); - dummy(); - $2_1 = 11; if ($0) { break block } } - return $2_1 | 0; + return $1_1 | 0; } function $7($0) { @@ -125,8 +125,8 @@ function asmFunc(global, env, buffer) { function $9($0) { $0 = $0 | 0; + dummy(); fake_return_waka123 : { - dummy(); if ($0) { break fake_return_waka123 } @@ -163,97 +163,97 @@ function asmFunc(global, env, buffer) { function $12($0) { $0 = $0 | 0; - var $2_1 = 0; + var $1_1 = 0; + $1_1 = 8; block : { - $2_1 = 8; if ($0) { break block } - $2_1 = 4 + 16 | 0; + $1_1 = 4 + 16 | 0; } - return 1 + $2_1 | 0 | 0; + return 1 + $1_1 | 0 | 0; } function $13($0) { $0 = $0 | 0; - var $2_1 = 0; + var $1_1 = 0; block : { - $2_1 = 8; + $1_1 = 8; if ($0) { break block } - $2_1 = 4; + $1_1 = 4; break block; } - return 1 + $2_1 | 0 | 0; + return 1 + $1_1 | 0 | 0; } function $14($0) { $0 = $0 | 0; - var $2_1 = 0; + var $1_1 = 0; + $1_1 = 8; block : { - $2_1 = 8; if ($0) { break block } - $2_1 = 4; + $1_1 = 4; if (1) { break block } - $2_1 = 16; + $1_1 = 16; } - return 1 + $2_1 | 0 | 0; + return 1 + $1_1 | 0 | 0; } function $15($0) { $0 = $0 | 0; - var $2_1 = 0; + var $1_1 = 0; + $1_1 = 8; block : { - $2_1 = 8; if ($0) { break block } - $2_1 = 4; + $1_1 = 4; if (1) { break block } - $2_1 = 16; + $1_1 = 16; } - return 1 + $2_1 | 0 | 0; + return 1 + $1_1 | 0 | 0; } function $16($0) { $0 = $0 | 0; - var $2_1 = 0; + var $1_1 = 0; block : { - $2_1 = 8; + $1_1 = 8; if ($0) { break block } - $2_1 = 4; + $1_1 = 4; switch (1 | 0) { default: break block; }; } - return 1 + $2_1 | 0 | 0; + return 1 + $1_1 | 0 | 0; } function $17($0) { $0 = $0 | 0; - var $2_1 = 0; + var $1_1 = 0; block : { - $2_1 = 8; + $1_1 = 8; if ($0) { break block } - $2_1 = 4; + $1_1 = 4; switch (1 | 0) { default: break block; }; } - return 1 + $2_1 | 0 | 0; + return 1 + $1_1 | 0 | 0; } var FUNCTION_TABLE = []; diff --git a/test/wasm2js/br_table.2asm.js b/test/wasm2js/br_table.2asm.js index d712b6df4..3e2af5364 100644 --- a/test/wasm2js/br_table.2asm.js +++ b/test/wasm2js/br_table.2asm.js @@ -45,73 +45,77 @@ function asmFunc(global, env, buffer) { } function $5() { - var $1_1 = 0; + var $0 = 0; block : { - $1_1 = 1; + $0 = 1; switch (0 | 0) { default: break block; }; } - return $1_1 | 0; + return $0 | 0; } function $6() { - var i64toi32_i32$0 = 0, $1_1 = 0, $1$hi = 0; + var $0 = 0, $1_1 = 0; block : { - i64toi32_i32$0 = 0; + $0 = 0; $1_1 = 2; - $1$hi = i64toi32_i32$0; switch (0 | 0) { default: break block; }; } - i64toi32_i32$0 = $1$hi; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; + i64toi32_i32$HIGH_BITS = $0; return $1_1 | 0; } function $7() { - var $1_1 = Math_fround(0); + var $0 = Math_fround(0); block : { - $1_1 = Math_fround(3.0); + $0 = Math_fround(3.0); switch (0 | 0) { default: break block; }; } - return Math_fround($1_1); + return Math_fround($0); } function $8() { - var $1_1 = 0.0; + var $0 = 0.0; block : { - $1_1 = 4.0; + $0 = 4.0; switch (0 | 0) { default: break block; }; } - return +$1_1; + return +$0; } function $9($0) { $0 = $0 | 0; + block : { + switch ($0 | 0) { + default: + break block; + }; + } return 22 | 0; } function $10($0) { $0 = $0 | 0; - var $3_1 = 0; + var $1_1 = 0; block : { - $3_1 = 33; + $1_1 = 33; switch ($0 | 0) { default: break block; }; } - return $3_1 | 0; + return $1_1 | 0; } function $11($0) { @@ -132,12 +136,11 @@ function asmFunc(global, env, buffer) { function $12($0) { $0 = $0 | 0; - var $2_1 = 0, $3_1 = 0, $4_1 = 0; + var $1_1 = 0, $2_1 = 0; block : { block1 : { - $2_1 = 33; - $3_1 = $2_1; - $4_1 = $2_1; + $1_1 = 33; + $2_1 = $1_1; switch ($0 | 0) { case 0: break block1; @@ -145,9 +148,9 @@ function asmFunc(global, env, buffer) { break block; }; } - $3_1 = 32; + $2_1 = 32; } - return $3_1 | 0; + return $2_1 | 0; } function $13($0) { @@ -183,18 +186,17 @@ function asmFunc(global, env, buffer) { function $14($0) { $0 = $0 | 0; - var $1_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0, $6_1 = 0, $7_1 = 0, $8_1 = 0; + var $1_1 = 0, $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0; block : { block6 : { block7 : { block8 : { block9 : { - $3_1 = 200; - $4_1 = $3_1; - $5_1 = $3_1; - $6_1 = $3_1; - $7_1 = $3_1; - $8_1 = $3_1; + $1_1 = 200; + $2_1 = $1_1; + $3_1 = $1_1; + $4_1 = $1_1; + $5_1 = $1_1; switch ($0 | 0) { case 0: break block6; @@ -208,20 +210,20 @@ function asmFunc(global, env, buffer) { break block; }; } - $1_1 = $8_1; - return $1_1 + 10 | 0 | 0; + $0 = $1_1; + return $0 + 10 | 0 | 0; } - $1_1 = $7_1; - return $1_1 + 11 | 0 | 0; + $0 = $5_1; + return $0 + 11 | 0 | 0; } - $1_1 = $6_1; - return $1_1 + 12 | 0 | 0; + $0 = $4_1; + return $0 + 12 | 0 | 0; } - $1_1 = $5_1; - return $1_1 + 13 | 0 | 0; + $0 = $3_1; + return $0 + 13 | 0 | 0; } - $1_1 = $4_1; - return $1_1 + 14 | 0 | 0; + $0 = $2_1; + return $0 + 14 | 0 | 0; } function $15($0) { @@ -12572,54 +12574,54 @@ function asmFunc(global, env, buffer) { } function $19() { - var $1_1 = 0; + var $0 = 0; block : { dummy(); - $1_1 = 2; + $0 = 2; switch (0 | 0) { default: break block; }; } - return $1_1 | 0; + return $0 | 0; } function $20() { - var $1_1 = 0, $2_1 = 0, $4_1 = 0; + var $0 = 0; fake_return_waka123 : { - $1_1 = 3; + $0 = 3; switch (0 | 0) { default: break fake_return_waka123; }; } - return $1_1 | 0; + return $0 | 0; } function $21() { - var $1_1 = 0, $2_1 = 0, $4_1 = 0; + var $0 = 0; fake_return_waka123 : { dummy(); - $1_1 = 4; + $0 = 4; switch (-1 | 0) { default: break fake_return_waka123; }; } - return $1_1 | 0; + return $0 | 0; } function $22() { - var $1_1 = 0; + var $0 = 0; fake_return_waka123 : { dummy(); - $1_1 = 5; + $0 = 5; switch (1 | 0) { default: break fake_return_waka123; }; } - return $1_1 | 0; + return $0 | 0; } function $23() { @@ -12636,27 +12638,27 @@ function asmFunc(global, env, buffer) { } function $25() { - var $1_1 = 0; + var $0 = 0; block : { - $1_1 = 8; + $0 = 8; switch (0 | 0) { default: break block; }; } - return $1_1 | 0; + return $0 | 0; } function $26() { - var $1_1 = 0; + var $0 = 0; block : { - $1_1 = 9; + $0 = 9; switch (0 | 0) { default: break block; }; } - return $1_1 | 0; + return $0 | 0; } function $27() { @@ -12664,91 +12666,83 @@ function asmFunc(global, env, buffer) { } function $28() { - var $1_1 = 0; + var $0 = 0; block : { - $1_1 = 10; + $0 = 10; switch (0 | 0) { default: break block; }; } - return $1_1 | 0; + return $0 | 0; } function $29() { - var $1_1 = 0; + var $0 = 0; block : { - $1_1 = 11; + $0 = 11; switch (1 | 0) { default: break block; }; } - return $1_1 | 0; + return $0 | 0; } function $30() { - var i64toi32_i32$0 = 0, $1_1 = 0, $1$hi = 0; + var $0 = 0, $1_1 = 0; block : { - i64toi32_i32$0 = 0; + $0 = 0; $1_1 = 7; - $1$hi = i64toi32_i32$0; switch (0 | 0) { default: break block; }; } - i64toi32_i32$0 = $1$hi; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; + i64toi32_i32$HIGH_BITS = $0; return $1_1 | 0; } function $31() { - var $1_1 = 0, $2_1 = 0; + var $0 = 0; if_ : { - $1_1 = 2; + $0 = 2; switch (0 | 0) { default: break if_; }; } - return $1_1 | 0; + return $0 | 0; } function $32($0, $1_1) { $0 = $0 | 0; $1_1 = $1_1 | 0; - var $4_1 = 0, $6_1 = 0; block : { if ($0) { { - $4_1 = 3; + $1_1 = 3; switch (0 | 0) { default: break block; }; } - } else { - $6_1 = $1_1 } - $4_1 = $6_1; } - return $4_1 | 0; + return $1_1 | 0; } function $33($0, $1_1) { $0 = $0 | 0; $1_1 = $1_1 | 0; - var $4_1 = 0, $5_1 = 0, $6_1 = 0, $7_1 = 0; block : { if_ : { if ($0) { - $7_1 = $1_1 + $0 = $1_1 } else { { - $4_1 = 4; - $5_1 = $4_1; - $6_1 = $4_1; + $0 = 4; + $1_1 = $0; switch (0 | 0) { case 0: break block; @@ -12757,52 +12751,48 @@ function asmFunc(global, env, buffer) { }; } } - $6_1 = $7_1; } - $5_1 = $6_1; + $1_1 = $0; } - return $5_1 | 0; + return $1_1 | 0; } function $34($0, $1_1) { $0 = $0 | 0; $1_1 = $1_1 | 0; - var $3_1 = 0, $4_1 = 0, $5_1 = 0; block : { - $3_1 = 5; + $0 = 5; switch (0 | 0) { default: break block; }; } - return $3_1 | 0; + return $0 | 0; } function $35($0, $1_1) { $0 = $0 | 0; $1_1 = $1_1 | 0; - var $2_1 = 0, $4_1 = 0, $5_1 = 0; block : { - $2_1 = $0; - $4_1 = 6; + $0 = 6; switch (1 | 0) { default: break block; }; } - return $4_1 | 0; + return $0 | 0; } function $36() { - var $1_1 = 0; + var $0 = 0; block : { - $1_1 = 7; + $0 = 7; switch (1 | 0) { default: break block; }; } - return $1_1 | 0; + return $0 | 0; } function f($0, $1_1, $2_1) { @@ -12813,287 +12803,282 @@ function asmFunc(global, env, buffer) { } function $38() { - var $1_1 = 0; + var $0 = 0; block : { - $1_1 = 12; + $0 = 12; switch (1 | 0) { default: break block; }; } - return $1_1 | 0; + return $0 | 0; } function $39() { - var $1_1 = 0; + var $0 = 0; block : { - $1_1 = 13; + $0 = 13; switch (1 | 0) { default: break block; }; } - return $1_1 | 0; + return $0 | 0; } function $40() { - var $1_1 = 0; + var $0 = 0; block : { - $1_1 = 14; + $0 = 14; switch (1 | 0) { default: break block; }; } - return $1_1 | 0; + return $0 | 0; } function $41() { - var $1_1 = 0; + var $0 = 0; block : { - $1_1 = 20; + $0 = 20; switch (1 | 0) { default: break block; }; } - return $1_1 | 0; + return $0 | 0; } function $42() { - var $1_1 = 0; + var $0 = 0; block : { - $1_1 = 21; + $0 = 21; switch (1 | 0) { default: break block; }; } - return $1_1 | 0; + return $0 | 0; } function $43() { - var $1_1 = 0; + var $0 = 0; block : { - $1_1 = 22; + $0 = 22; switch (1 | 0) { default: break block; }; } - return $1_1 | 0; + return $0 | 0; } function $44() { - var $1_1 = 0; + var $0 = 0; block : { - $1_1 = 23; + $0 = 23; switch (1 | 0) { default: break block; }; } - return $1_1 | 0; + return $0 | 0; } function $45() { - var $2_1 = 0; + var $0 = 0; block : { - $2_1 = 17; + $0 = 17; switch (1 | 0) { default: break block; }; } - return $2_1 | 0; + return $0 | 0; } function $46() { - var $1_1 = Math_fround(0); + var $0 = Math_fround(0); block : { - $1_1 = Math_fround(1.7000000476837158); + $0 = Math_fround(1.7000000476837158); switch (1 | 0) { default: break block; }; } - return Math_fround($1_1); + return Math_fround($0); } function $47() { - var i64toi32_i32$0 = 0, $1_1 = 0, $1$hi = 0; + var $0 = 0, $1_1 = 0; block : { - i64toi32_i32$0 = 0; + $0 = 0; $1_1 = 30; - $1$hi = i64toi32_i32$0; switch (1 | 0) { default: break block; }; } - i64toi32_i32$0 = $1$hi; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; + i64toi32_i32$HIGH_BITS = $0; return $1_1 | 0; } function $48() { - var $1_1 = 0; + var $0 = 0; block : { - $1_1 = 30; + $0 = 30; switch (1 | 0) { default: break block; }; } - return $1_1 | 0; + return $0 | 0; } function $49() { - var $1_1 = 0; + var $0 = 0; block : { - $1_1 = 31; + $0 = 31; switch (1 | 0) { default: break block; }; } - return $1_1 | 0; + return $0 | 0; } function $50() { - var $1_1 = 0; + var $0 = 0; block : { - $1_1 = 32; + $0 = 32; switch (0 | 0) { default: break block; }; } - return $1_1 | 0; + return $0 | 0; } function $51() { - var $1_1 = 0; + var $0 = 0; block : { - $1_1 = 33; + $0 = 33; switch (0 | 0) { default: break block; }; } - return $1_1 | 0; + return $0 | 0; } function $52() { - var $1_1 = Math_fround(0); + var $0 = Math_fround(0); block : { - $1_1 = Math_fround(3.4000000953674316); + $0 = Math_fround(3.4000000953674316); switch (0 | 0) { default: break block; }; } - return Math_fround($1_1); + return Math_fround($0); } function $53() { - var $1_1 = 0; + var $0 = 0; block : { - $1_1 = 3; + $0 = 3; switch (0 | 0) { default: break block; }; } - return $1_1 | 0; + return $0 | 0; } function $54() { - var i64toi32_i32$0 = 0, $1_1 = 0, $1$hi = 0, i64toi32_i32$1 = 0; + var $0 = 0, $1_1 = 0; block : { - i64toi32_i32$0 = 0; + $0 = 0; $1_1 = 45; - $1$hi = i64toi32_i32$0; switch (0 | 0) { default: break block; }; } - i64toi32_i32$1 = $1$hi; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; + i64toi32_i32$HIGH_BITS = $0; return $1_1 | 0; } function $55() { - var $1_1 = 0; + var $0 = 0; block : { - $1_1 = 44; + $0 = 44; switch (0 | 0) { default: break block; }; } - return $1_1 | 0; + return $0 | 0; } function $56() { - var $1_1 = 0; + var $0 = 0; block : { - $1_1 = 43; + $0 = 43; switch (0 | 0) { default: break block; }; } - return $1_1 | 0; + return $0 | 0; } function $57() { - var $1_1 = 0; + var $0 = 0; block : { - $1_1 = 42; + $0 = 42; switch (0 | 0) { default: break block; }; } - return $1_1 | 0; + return $0 | 0; } function $58() { - var $1_1 = 0; + var $0 = 0; block : { - $1_1 = 41; + $0 = 41; switch (0 | 0) { default: break block; }; } - return $1_1 | 0; + return $0 | 0; } function $59() { - var $1_1 = 0; + var $0 = 0; block : { - $1_1 = 40; + $0 = 40; switch (0 | 0) { default: break block; }; } - return $1_1 | 0; + return $0 | 0; } function $60($0) { $0 = $0 | 0; - var $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0; + var $1_1 = 0, $2_1 = 0, $3_1 = 0; block : { block11 : { block12 : { - $2_1 = 16; - $3_1 = $2_1; - $4_1 = $2_1; - $5_1 = $2_1; + $1_1 = 16; + $2_1 = $1_1; + $3_1 = $1_1; switch ($0 | 0) { case 1: break block11; @@ -13103,23 +13088,22 @@ function asmFunc(global, env, buffer) { break block; }; } - $4_1 = 2 + $5_1 | 0; + $3_1 = 2 + $1_1 | 0; } - $3_1 = 1 + $4_1 | 0; + $2_1 = 1 + $3_1 | 0; } - return $3_1 | 0; + return $2_1 | 0; } function $61($0) { $0 = $0 | 0; - var $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0; + var $1_1 = 0, $2_1 = 0, $3_1 = 0; block : { block13 : { block14 : { - $2_1 = 8; - $3_1 = $2_1; - $4_1 = $2_1; - $5_1 = $2_1; + $1_1 = 8; + $2_1 = $1_1; + $3_1 = $1_1; switch ($0 | 0) { case 0: break block; @@ -13129,23 +13113,22 @@ function asmFunc(global, env, buffer) { break block14; }; } - $4_1 = 16; + $3_1 = 16; } - $3_1 = 1 + $4_1 | 0; + $2_1 = 1 + $3_1 | 0; } - return $3_1 | 0; + return $2_1 | 0; } function $62($0) { $0 = $0 | 0; - var $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0; + var $1_1 = 0, $2_1 = 0, $3_1 = 0; block : { block15 : { block16 : { - $2_1 = 8; - $3_1 = $2_1; - $4_1 = $2_1; - $5_1 = $2_1; + $1_1 = 8; + $2_1 = $1_1; + $3_1 = $1_1; switch ($0 | 0) { case 1: break block15; @@ -13155,21 +13138,20 @@ function asmFunc(global, env, buffer) { break block; }; } - $4_1 = 16; + $3_1 = 16; } - $3_1 = 1 + $4_1 | 0; + $2_1 = 1 + $3_1 | 0; } - return $3_1 | 0; + return $2_1 | 0; } function $63($0) { $0 = $0 | 0; - var $4_1 = 0, $2_1 = 0, $3_1 = 0; + var $1_1 = 0, $2_1 = 0; block : { block17 : { - $2_1 = 8; - $3_1 = $2_1; - $4_1 = $2_1; + $1_1 = 8; + $2_1 = $1_1; switch ($0 | 0) { case 1: break block; @@ -13177,21 +13159,20 @@ function asmFunc(global, env, buffer) { break block17; }; } - $3_1 = 1 + $4_1 | 0; + $2_1 = 1 + $1_1 | 0; } - return $3_1 | 0; + return $2_1 | 0; } function $64($0) { $0 = $0 | 0; - var $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0; + var $1_1 = 0, $2_1 = 0, $3_1 = 0; block : { block18 : { block19 : { - $2_1 = 8; - $3_1 = $2_1; - $4_1 = $2_1; - $5_1 = $2_1; + $1_1 = 8; + $2_1 = $1_1; + $3_1 = $1_1; switch ($0 | 0) { case 1: break block18; @@ -13201,21 +13182,20 @@ function asmFunc(global, env, buffer) { break block; }; } - $4_1 = 16; + $3_1 = 16; } - $3_1 = 1 + $4_1 | 0; + $2_1 = 1 + $3_1 | 0; } - return $3_1 | 0; + return $2_1 | 0; } function $65($0) { $0 = $0 | 0; - var $4_1 = 0, $2_1 = 0, $3_1 = 0; + var $1_1 = 0, $2_1 = 0; block : { block20 : { - $2_1 = 8; - $3_1 = $2_1; - $4_1 = $2_1; + $1_1 = 8; + $2_1 = $1_1; switch ($0 | 0) { case 1: break block; @@ -13223,113 +13203,77 @@ function asmFunc(global, env, buffer) { break block20; }; } - $3_1 = 1 + $4_1 | 0; + $2_1 = 1 + $1_1 | 0; } - return $3_1 | 0; + return $2_1 | 0; } function legalstub$6() { - var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $6() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$2 = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = 0; - $7_1 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + var $0 = 0, $1_1 = 0, $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0; + $0 = $6() | 0; + $2_1 = i64toi32_i32$HIGH_BITS; + $4_1 = $0; + $5_1 = $2_1; + $3_1 = 32; + $1_1 = $3_1 & 31 | 0; + if (32 >>> 0 <= ($3_1 & 63 | 0) >>> 0) { + $0 = $2_1 >>> $1_1 | 0 } else { - { - i64toi32_i32$0 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $7_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $0 = (((1 << $1_1 | 0) - 1 | 0) & $2_1 | 0) << (32 - $1_1 | 0) | 0 | ($0 >>> $1_1 | 0) | 0 } - setTempRet0($7_1 | 0); - i64toi32_i32$0 = $0$hi; - return $0 | 0; + setTempRet0($0 | 0); + return $4_1 | 0; } function legalstub$30() { - var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $30() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$2 = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = 0; - $7_1 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + var $0 = 0, $1_1 = 0, $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0; + $0 = $30() | 0; + $2_1 = i64toi32_i32$HIGH_BITS; + $4_1 = $0; + $5_1 = $2_1; + $3_1 = 32; + $1_1 = $3_1 & 31 | 0; + if (32 >>> 0 <= ($3_1 & 63 | 0) >>> 0) { + $0 = $2_1 >>> $1_1 | 0 } else { - { - i64toi32_i32$0 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $7_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $0 = (((1 << $1_1 | 0) - 1 | 0) & $2_1 | 0) << (32 - $1_1 | 0) | 0 | ($0 >>> $1_1 | 0) | 0 } - setTempRet0($7_1 | 0); - i64toi32_i32$0 = $0$hi; - return $0 | 0; + setTempRet0($0 | 0); + return $4_1 | 0; } function legalstub$47() { - var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $47() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$2 = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = 0; - $7_1 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + var $0 = 0, $1_1 = 0, $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0; + $0 = $47() | 0; + $2_1 = i64toi32_i32$HIGH_BITS; + $4_1 = $0; + $5_1 = $2_1; + $3_1 = 32; + $1_1 = $3_1 & 31 | 0; + if (32 >>> 0 <= ($3_1 & 63 | 0) >>> 0) { + $0 = $2_1 >>> $1_1 | 0 } else { - { - i64toi32_i32$0 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $7_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $0 = (((1 << $1_1 | 0) - 1 | 0) & $2_1 | 0) << (32 - $1_1 | 0) | 0 | ($0 >>> $1_1 | 0) | 0 } - setTempRet0($7_1 | 0); - i64toi32_i32$0 = $0$hi; - return $0 | 0; + setTempRet0($0 | 0); + return $4_1 | 0; } function legalstub$54() { - var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $54() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$2 = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = 0; - $7_1 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + var $0 = 0, $1_1 = 0, $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0; + $0 = $54() | 0; + $2_1 = i64toi32_i32$HIGH_BITS; + $4_1 = $0; + $5_1 = $2_1; + $3_1 = 32; + $1_1 = $3_1 & 31 | 0; + if (32 >>> 0 <= ($3_1 & 63 | 0) >>> 0) { + $0 = $2_1 >>> $1_1 | 0 } else { - { - i64toi32_i32$0 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $7_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $0 = (((1 << $1_1 | 0) - 1 | 0) & $2_1 | 0) << (32 - $1_1 | 0) | 0 | ($0 >>> $1_1 | 0) | 0 } - setTempRet0($7_1 | 0); - i64toi32_i32$0 = $0$hi; - return $0 | 0; + setTempRet0($0 | 0); + return $4_1 | 0; } var FUNCTION_TABLE = []; diff --git a/test/wasm2js/br_table_temp.2asm.js b/test/wasm2js/br_table_temp.2asm.js index c479c29a4..73605df63 100644 --- a/test/wasm2js/br_table_temp.2asm.js +++ b/test/wasm2js/br_table_temp.2asm.js @@ -42,72 +42,76 @@ function asmFunc(global, env, buffer) { } function $5() { - var $1_1 = 0; + var $0 = 0; block : { - $1_1 = 1; + $0 = 1; switch (0 | 0) { default: break block; }; } - return $1_1 | 0; + return $0 | 0; } function $6() { - var i64toi32_i32$0 = 0, $1_1 = 0, $1$hi = 0; + var $0 = 0, $1_1 = 0; block : { - i64toi32_i32$0 = 0; - $1_1 = 2; - $1$hi = i64toi32_i32$0; + $1_1 = 0; + $0 = 2; switch (0 | 0) { default: break block; }; } - i64toi32_i32$0 = $1$hi; - return $1_1 | 0; + return $0 | 0; } function $7() { - var $1_1 = Math_fround(0); + var $0 = Math_fround(0); block : { - $1_1 = Math_fround(3.0); + $0 = Math_fround(3.0); switch (0 | 0) { default: break block; }; } - return Math_fround($1_1); + return Math_fround($0); } function $8() { - var $1_1 = 0.0; + var $0 = 0.0; block : { - $1_1 = 4.0; + $0 = 4.0; switch (0 | 0) { default: break block; }; } - return +$1_1; + return +$0; } function $9($0) { $0 = $0 | 0; + block : { + switch ($0 | 0) { + default: + break block; + }; + } return 22 | 0; } function $10($0) { $0 = $0 | 0; - var $3_1 = 0; + var $1_1 = 0; block : { - $3_1 = 33; + $1_1 = 33; switch ($0 | 0) { default: break block; }; } - return $3_1 | 0; + return $1_1 | 0; } function $11($0) { @@ -128,12 +132,11 @@ function asmFunc(global, env, buffer) { function $12($0) { $0 = $0 | 0; - var $2_1 = 0, $3_1 = 0, $4_1 = 0; + var $1_1 = 0, $2_1 = 0; block : { block1 : { - $2_1 = 33; - $3_1 = $2_1; - $4_1 = $2_1; + $1_1 = 33; + $2_1 = $1_1; switch ($0 | 0) { case 0: break block1; @@ -141,9 +144,9 @@ function asmFunc(global, env, buffer) { break block; }; } - $3_1 = 32; + $2_1 = 32; } - return $3_1 | 0; + return $2_1 | 0; } function $13($0) { @@ -179,18 +182,17 @@ function asmFunc(global, env, buffer) { function $14($0) { $0 = $0 | 0; - var $1_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0, $6_1 = 0, $7_1 = 0, $8_1 = 0; + var $1_1 = 0, $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0; block : { block6 : { block7 : { block8 : { block9 : { - $3_1 = 200; - $4_1 = $3_1; - $5_1 = $3_1; - $6_1 = $3_1; - $7_1 = $3_1; - $8_1 = $3_1; + $1_1 = 200; + $2_1 = $1_1; + $3_1 = $1_1; + $4_1 = $1_1; + $5_1 = $1_1; switch ($0 | 0) { case 0: break block6; @@ -204,20 +206,20 @@ function asmFunc(global, env, buffer) { break block; }; } - $1_1 = $8_1; - return $1_1 + 10 | 0 | 0; + $0 = $1_1; + return $0 + 10 | 0 | 0; } - $1_1 = $7_1; - return $1_1 + 11 | 0 | 0; + $0 = $5_1; + return $0 + 11 | 0 | 0; } - $1_1 = $6_1; - return $1_1 + 12 | 0 | 0; + $0 = $4_1; + return $0 + 12 | 0 | 0; } - $1_1 = $5_1; - return $1_1 + 13 | 0 | 0; + $0 = $3_1; + return $0 + 13 | 0 | 0; } - $1_1 = $4_1; - return $1_1 + 14 | 0 | 0; + $0 = $2_1; + return $0 + 14 | 0 | 0; } function $15($0) { @@ -12568,54 +12570,54 @@ function asmFunc(global, env, buffer) { } function $19() { - var $1_1 = 0; + var $0 = 0; block : { dummy(); - $1_1 = 2; + $0 = 2; switch (0 | 0) { default: break block; }; } - return $1_1 | 0; + return $0 | 0; } function $20() { - var $1_1 = 0, $2_1 = 0, $4_1 = 0; + var $0 = 0; fake_return_waka123 : { - $1_1 = 3; + $0 = 3; switch (0 | 0) { default: break fake_return_waka123; }; } - return $1_1 | 0; + return $0 | 0; } function $21() { - var $1_1 = 0, $2_1 = 0, $4_1 = 0; + var $0 = 0; fake_return_waka123 : { dummy(); - $1_1 = 4; + $0 = 4; switch (-1 | 0) { default: break fake_return_waka123; }; } - return $1_1 | 0; + return $0 | 0; } function $22() { - var $1_1 = 0; + var $0 = 0; fake_return_waka123 : { dummy(); - $1_1 = 5; + $0 = 5; switch (1 | 0) { default: break fake_return_waka123; }; } - return $1_1 | 0; + return $0 | 0; } function $23() { @@ -12632,27 +12634,27 @@ function asmFunc(global, env, buffer) { } function $25() { - var $1_1 = 0; + var $0 = 0; block : { - $1_1 = 8; + $0 = 8; switch (0 | 0) { default: break block; }; } - return $1_1 | 0; + return $0 | 0; } function $26() { - var $1_1 = 0; + var $0 = 0; block : { - $1_1 = 9; + $0 = 9; switch (0 | 0) { default: break block; }; } - return $1_1 | 0; + return $0 | 0; } function $27() { @@ -12660,90 +12662,82 @@ function asmFunc(global, env, buffer) { } function $28() { - var $1_1 = 0; + var $0 = 0; block : { - $1_1 = 10; + $0 = 10; switch (0 | 0) { default: break block; }; } - return $1_1 | 0; + return $0 | 0; } function $29() { - var $1_1 = 0; + var $0 = 0; block : { - $1_1 = 11; + $0 = 11; switch (1 | 0) { default: break block; }; } - return $1_1 | 0; + return $0 | 0; } function $30() { - var i64toi32_i32$0 = 0, $1_1 = 0, $1$hi = 0; + var $0 = 0, $1_1 = 0; block : { - i64toi32_i32$0 = 0; - $1_1 = 7; - $1$hi = i64toi32_i32$0; + $1_1 = 0; + $0 = 7; switch (0 | 0) { default: break block; }; } - i64toi32_i32$0 = $1$hi; - return $1_1 | 0; + return $0 | 0; } function $31() { - var $1_1 = 0, $2_1 = 0; + var $0 = 0; if_ : { - $1_1 = 2; + $0 = 2; switch (0 | 0) { default: break if_; }; } - return $1_1 | 0; + return $0 | 0; } function $32($0, $1_1) { $0 = $0 | 0; $1_1 = $1_1 | 0; - var $4_1 = 0, $6_1 = 0; block : { if ($0) { { - $4_1 = 3; + $1_1 = 3; switch (0 | 0) { default: break block; }; } - } else { - $6_1 = $1_1 } - $4_1 = $6_1; } - return $4_1 | 0; + return $1_1 | 0; } function $33($0, $1_1) { $0 = $0 | 0; $1_1 = $1_1 | 0; - var $4_1 = 0, $5_1 = 0, $6_1 = 0, $7_1 = 0; block : { if_ : { if ($0) { - $7_1 = $1_1 + $0 = $1_1 } else { { - $4_1 = 4; - $5_1 = $4_1; - $6_1 = $4_1; + $0 = 4; + $1_1 = $0; switch (0 | 0) { case 0: break block; @@ -12752,52 +12746,48 @@ function asmFunc(global, env, buffer) { }; } } - $6_1 = $7_1; } - $5_1 = $6_1; + $1_1 = $0; } - return $5_1 | 0; + return $1_1 | 0; } function $34($0, $1_1) { $0 = $0 | 0; $1_1 = $1_1 | 0; - var $3_1 = 0, $4_1 = 0, $5_1 = 0; block : { - $3_1 = 5; + $0 = 5; switch (0 | 0) { default: break block; }; } - return $3_1 | 0; + return $0 | 0; } function $35($0, $1_1) { $0 = $0 | 0; $1_1 = $1_1 | 0; - var $2_1 = 0, $4_1 = 0, $5_1 = 0; block : { - $2_1 = $0; - $4_1 = 6; + $0 = 6; switch (1 | 0) { default: break block; }; } - return $4_1 | 0; + return $0 | 0; } function $36() { - var $1_1 = 0; + var $0 = 0; block : { - $1_1 = 7; + $0 = 7; switch (1 | 0) { default: break block; }; } - return $1_1 | 0; + return $0 | 0; } function f($0, $1_1, $2_1) { @@ -12808,284 +12798,280 @@ function asmFunc(global, env, buffer) { } function $38() { - var $1_1 = 0; + var $0 = 0; block : { - $1_1 = 12; + $0 = 12; switch (1 | 0) { default: break block; }; } - return $1_1 | 0; + return $0 | 0; } function $39() { - var $1_1 = 0; + var $0 = 0; block : { - $1_1 = 13; + $0 = 13; switch (1 | 0) { default: break block; }; } - return $1_1 | 0; + return $0 | 0; } function $40() { - var $1_1 = 0; + var $0 = 0; block : { - $1_1 = 14; + $0 = 14; switch (1 | 0) { default: break block; }; } - return $1_1 | 0; + return $0 | 0; } function $41() { - var $1_1 = 0; + var $0 = 0; block : { - $1_1 = 20; + $0 = 20; switch (1 | 0) { default: break block; }; } - return $1_1 | 0; + return $0 | 0; } function $42() { - var $1_1 = 0; + var $0 = 0; block : { - $1_1 = 21; + $0 = 21; switch (1 | 0) { default: break block; }; } - return $1_1 | 0; + return $0 | 0; } function $43() { - var $1_1 = 0; + var $0 = 0; block : { - $1_1 = 22; + $0 = 22; switch (1 | 0) { default: break block; }; } - return $1_1 | 0; + return $0 | 0; } function $44() { - var $1_1 = 0; + var $0 = 0; block : { - $1_1 = 23; + $0 = 23; switch (1 | 0) { default: break block; }; } - return $1_1 | 0; + return $0 | 0; } function $45() { - var $2_1 = 0; + var $0 = 0; block : { - $2_1 = 17; + $0 = 17; switch (1 | 0) { default: break block; }; } - return $2_1 | 0; + return $0 | 0; } function $46() { - var $1_1 = 0; + var $0 = 0; block : { - $1_1 = 2; + $0 = 2; switch (1 | 0) { default: break block; }; } - return $1_1 | 0; + return $0 | 0; } function $47() { - var i64toi32_i32$0 = 0, $1_1 = 0, $1$hi = 0; + var $0 = 0, $1_1 = 0; block : { - i64toi32_i32$0 = 0; - $1_1 = 30; - $1$hi = i64toi32_i32$0; + $1_1 = 0; + $0 = 30; switch (1 | 0) { default: break block; }; } - i64toi32_i32$0 = $1$hi; - return $1_1 | 0; + return $0 | 0; } function $48() { - var $1_1 = 0; + var $0 = 0; block : { - $1_1 = 30; + $0 = 30; switch (1 | 0) { default: break block; }; } - return $1_1 | 0; + return $0 | 0; } function $49() { - var $1_1 = 0; + var $0 = 0; block : { - $1_1 = 31; + $0 = 31; switch (1 | 0) { default: break block; }; } - return $1_1 | 0; + return $0 | 0; } function $50() { - var $1_1 = 0; + var $0 = 0; block : { - $1_1 = 32; + $0 = 32; switch (0 | 0) { default: break block; }; } - return $1_1 | 0; + return $0 | 0; } function $51() { - var $1_1 = 0; + var $0 = 0; block : { - $1_1 = 33; + $0 = 33; switch (0 | 0) { default: break block; }; } - return $1_1 | 0; + return $0 | 0; } function $52() { - var $1_1 = 0; + var $0 = 0; block : { - $1_1 = 3; + $0 = 3; switch (0 | 0) { default: break block; }; } - return $1_1 | 0; + return $0 | 0; } function $53() { - var $1_1 = 0; + var $0 = 0; block : { - $1_1 = 3; + $0 = 3; switch (0 | 0) { default: break block; }; } - return $1_1 | 0; + return $0 | 0; } function $54() { - var i64toi32_i32$0 = 0, $1_1 = 0, $1$hi = 0; + var $0 = 0, $1_1 = 0; block : { - i64toi32_i32$0 = 0; - $1_1 = 45; - $1$hi = i64toi32_i32$0; + $1_1 = 0; + $0 = 45; switch (0 | 0) { default: break block; }; } - return $1_1 | 0; + return $0 | 0; } function $55() { - var $1_1 = 0; + var $0 = 0; block : { - $1_1 = 44; + $0 = 44; switch (0 | 0) { default: break block; }; } - return $1_1 | 0; + return $0 | 0; } function $56() { - var $1_1 = 0; + var $0 = 0; block : { - $1_1 = 43; + $0 = 43; switch (0 | 0) { default: break block; }; } - return $1_1 | 0; + return $0 | 0; } function $57() { - var $1_1 = 0; + var $0 = 0; block : { - $1_1 = 42; + $0 = 42; switch (0 | 0) { default: break block; }; } - return $1_1 | 0; + return $0 | 0; } function $58() { - var $1_1 = 0; + var $0 = 0; block : { - $1_1 = 41; + $0 = 41; switch (0 | 0) { default: break block; }; } - return $1_1 | 0; + return $0 | 0; } function $59() { - var $1_1 = 0; + var $0 = 0; block : { - $1_1 = 40; + $0 = 40; switch (0 | 0) { default: break block; }; } - return $1_1 | 0; + return $0 | 0; } function $60($0) { $0 = $0 | 0; - var $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0; + var $1_1 = 0, $2_1 = 0, $3_1 = 0; block : { block11 : { block12 : { - $2_1 = 16; - $3_1 = $2_1; - $4_1 = $2_1; - $5_1 = $2_1; + $1_1 = 16; + $2_1 = $1_1; + $3_1 = $1_1; switch ($0 | 0) { case 1: break block11; @@ -13095,23 +13081,22 @@ function asmFunc(global, env, buffer) { break block; }; } - $4_1 = 2 + $5_1 | 0; + $3_1 = 2 + $1_1 | 0; } - $3_1 = 1 + $4_1 | 0; + $2_1 = 1 + $3_1 | 0; } - return $3_1 | 0; + return $2_1 | 0; } function $61($0) { $0 = $0 | 0; - var $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0; + var $1_1 = 0, $2_1 = 0, $3_1 = 0; block : { block13 : { block14 : { - $2_1 = 8; - $3_1 = $2_1; - $4_1 = $2_1; - $5_1 = $2_1; + $1_1 = 8; + $2_1 = $1_1; + $3_1 = $1_1; switch ($0 | 0) { case 0: break block; @@ -13121,23 +13106,22 @@ function asmFunc(global, env, buffer) { break block14; }; } - $4_1 = 16; + $3_1 = 16; } - $3_1 = 1 + $4_1 | 0; + $2_1 = 1 + $3_1 | 0; } - return $3_1 | 0; + return $2_1 | 0; } function $62($0) { $0 = $0 | 0; - var $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0; + var $1_1 = 0, $2_1 = 0, $3_1 = 0; block : { block15 : { block16 : { - $2_1 = 8; - $3_1 = $2_1; - $4_1 = $2_1; - $5_1 = $2_1; + $1_1 = 8; + $2_1 = $1_1; + $3_1 = $1_1; switch ($0 | 0) { case 1: break block15; @@ -13147,21 +13131,20 @@ function asmFunc(global, env, buffer) { break block; }; } - $4_1 = 16; + $3_1 = 16; } - $3_1 = 1 + $4_1 | 0; + $2_1 = 1 + $3_1 | 0; } - return $3_1 | 0; + return $2_1 | 0; } function $63($0) { $0 = $0 | 0; - var $4_1 = 0, $2_1 = 0, $3_1 = 0; + var $1_1 = 0, $2_1 = 0; block : { block17 : { - $2_1 = 8; - $3_1 = $2_1; - $4_1 = $2_1; + $1_1 = 8; + $2_1 = $1_1; switch ($0 | 0) { case 1: break block; @@ -13169,21 +13152,20 @@ function asmFunc(global, env, buffer) { break block17; }; } - $3_1 = 1 + $4_1 | 0; + $2_1 = 1 + $1_1 | 0; } - return $3_1 | 0; + return $2_1 | 0; } function $64($0) { $0 = $0 | 0; - var $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0; + var $1_1 = 0, $2_1 = 0, $3_1 = 0; block : { block18 : { block19 : { - $2_1 = 8; - $3_1 = $2_1; - $4_1 = $2_1; - $5_1 = $2_1; + $1_1 = 8; + $2_1 = $1_1; + $3_1 = $1_1; switch ($0 | 0) { case 1: break block18; @@ -13193,21 +13175,20 @@ function asmFunc(global, env, buffer) { break block; }; } - $4_1 = 16; + $3_1 = 16; } - $3_1 = 1 + $4_1 | 0; + $2_1 = 1 + $3_1 | 0; } - return $3_1 | 0; + return $2_1 | 0; } function $65($0) { $0 = $0 | 0; - var $4_1 = 0, $2_1 = 0, $3_1 = 0; + var $1_1 = 0, $2_1 = 0; block : { block20 : { - $2_1 = 8; - $3_1 = $2_1; - $4_1 = $2_1; + $1_1 = 8; + $2_1 = $1_1; switch ($0 | 0) { case 1: break block; @@ -13215,9 +13196,9 @@ function asmFunc(global, env, buffer) { break block20; }; } - $3_1 = 1 + $4_1 | 0; + $2_1 = 1 + $1_1 | 0; } - return $3_1 | 0; + return $2_1 | 0; } var FUNCTION_TABLE = []; diff --git a/test/wasm2js/br_table_temp.2asm.js.opt b/test/wasm2js/br_table_temp.2asm.js.opt index c5ad1dd8c..29828a662 100644 --- a/test/wasm2js/br_table_temp.2asm.js.opt +++ b/test/wasm2js/br_table_temp.2asm.js.opt @@ -61,13 +61,12 @@ function asmFunc(global, env, buffer) { function $12($0) { $0 = $0 | 0; - var $1_1 = 0; if ($0) { - $1_1 = 33 + $0 = 33 } else { - $1_1 = 32 + $0 = 32 } - return $1_1 | 0; + return $0 | 0; } function $13($0) { @@ -12671,9 +12670,9 @@ function asmFunc(global, env, buffer) { function $63($0) { $0 = $0 | 0; var $1_1 = 0, $2 = 0; + $2 = 8; + $1_1 = $2; block : { - $2 = 8; - $1_1 = $2; if (!($0 - 1 | 0)) { break block } diff --git a/test/wasm2js/call.2asm.js b/test/wasm2js/call.2asm.js index 06025681f..ca4d4a3ef 100644 --- a/test/wasm2js/call.2asm.js +++ b/test/wasm2js/call.2asm.js @@ -46,12 +46,10 @@ function asmFunc(global, env, buffer) { return $0 | 0; } - function id_i64($0, $0$hi) { + function id_i64($0, $1) { $0 = $0 | 0; - $0$hi = $0$hi | 0; - var i64toi32_i32$0 = 0; - i64toi32_i32$0 = $0$hi; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; + $1 = $1 | 0; + i64toi32_i32$HIGH_BITS = $1; return $0 | 0; } @@ -71,13 +69,11 @@ function asmFunc(global, env, buffer) { return $1 | 0; } - function i32_i64($0, $1, $1$hi) { + function i32_i64($0, $1, $2) { $0 = $0 | 0; $1 = $1 | 0; - $1$hi = $1$hi | 0; - var i64toi32_i32$0 = 0; - i64toi32_i32$0 = $1$hi; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; + $2 = $2 | 0; + i64toi32_i32$HIGH_BITS = $2; return $1 | 0; } @@ -87,11 +83,11 @@ function asmFunc(global, env, buffer) { return Math_fround($1); } - function i64_f64($0, $0$hi, $1) { + function i64_f64($0, $1, $2) { $0 = $0 | 0; - $0$hi = $0$hi | 0; - $1 = +$1; - return +$1; + $1 = $1 | 0; + $2 = +$2; + return +$2; } function $12() { @@ -99,11 +95,11 @@ function asmFunc(global, env, buffer) { } function $13() { - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = const_i64() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$0 | 0; + var $0 = 0, $1 = 0; + $0 = const_i64() | 0; + $1 = i64toi32_i32$HIGH_BITS; + i64toi32_i32$HIGH_BITS = $1; + return $0 | 0; } function $14() { @@ -119,12 +115,12 @@ function asmFunc(global, env, buffer) { } function $17() { - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = 0; - i64toi32_i32$0 = id_i64(64 | 0, i64toi32_i32$0 | 0) | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$0 | 0; + var $0 = 0, $1 = 0; + $0 = 0; + $0 = id_i64(64 | 0, $0 | 0) | 0; + $1 = i64toi32_i32$HIGH_BITS; + i64toi32_i32$HIGH_BITS = $1; + return $0 | 0; } function $18() { @@ -140,12 +136,12 @@ function asmFunc(global, env, buffer) { } function $21() { - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = 0; - i64toi32_i32$0 = i32_i64(32 | 0, 64 | 0, i64toi32_i32$0 | 0) | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$0 | 0; + var $0 = 0, $1 = 0; + $0 = 0; + $0 = i32_i64(32 | 0, 64 | 0, $0 | 0) | 0; + $1 = i64toi32_i32$HIGH_BITS; + i64toi32_i32$HIGH_BITS = $1; + return $0 | 0; } function $22() { @@ -156,182 +152,164 @@ function asmFunc(global, env, buffer) { return +(+i64_f64(64 | 0, 0 | 0, +(64.1))); } - function fac($0, $0$hi) { + function fac($0, $1) { $0 = $0 | 0; - $0$hi = $0$hi | 0; - var i64toi32_i32$5 = 0, i64toi32_i32$2 = 0, i64toi32_i32$0 = 0, $8 = 0, $8$hi = 0, i64toi32_i32$3 = 0, $6 = 0, $6$hi = 0; - i64toi32_i32$0 = $0$hi; - if (!($0 | i64toi32_i32$0 | 0)) { + $1 = $1 | 0; + var $2 = 0, $3 = 0, $4 = 0; + $3 = $1; + if (!($0 | $3 | 0)) { { - i64toi32_i32$0 = 0; - $8 = 1; - $8$hi = i64toi32_i32$0; + $3 = 0; + $2 = 1; + $1 = $3; } } else { { - i64toi32_i32$0 = $0$hi; - i64toi32_i32$2 = $0; - i64toi32_i32$3 = 1; - i64toi32_i32$5 = (i64toi32_i32$2 >>> 0 < i64toi32_i32$3 >>> 0) + 0 | 0; - i64toi32_i32$5 = i64toi32_i32$0 - i64toi32_i32$5 | 0; - i64toi32_i32$5 = fac(i64toi32_i32$2 - i64toi32_i32$3 | 0 | 0, i64toi32_i32$5 | 0) | 0; - i64toi32_i32$2 = i64toi32_i32$HIGH_BITS; - $6 = i64toi32_i32$5; - $6$hi = i64toi32_i32$2; - i64toi32_i32$2 = i64toi32_i32$0; - i64toi32_i32$5 = $6$hi; - i64toi32_i32$5 = __wasm_i64_mul($0 | 0, i64toi32_i32$0 | 0, $6 | 0, i64toi32_i32$5 | 0) | 0; - i64toi32_i32$2 = i64toi32_i32$HIGH_BITS; - $8 = i64toi32_i32$5; - $8$hi = i64toi32_i32$2; + $3 = $1; + $1 = $0; + $4 = 1; + $2 = ($1 >>> 0 < $4 >>> 0) + 0 | 0; + $2 = $3 - $2 | 0; + $2 = fac($1 - $4 | 0 | 0, $2 | 0) | 0; + $1 = i64toi32_i32$HIGH_BITS; + $4 = $2; + $2 = $1; + $2 = __wasm_i64_mul($0 | 0, $3 | 0, $4 | 0, $2 | 0) | 0; + $1 = i64toi32_i32$HIGH_BITS; } } - i64toi32_i32$2 = $8$hi; - i64toi32_i32$5 = $8; - i64toi32_i32$HIGH_BITS = i64toi32_i32$2; - return i64toi32_i32$5 | 0; + i64toi32_i32$HIGH_BITS = $1; + return $2 | 0; } - function fac_acc($0, $0$hi, $1, $1$hi) { + function fac_acc($0, $1, $2, $3) { $0 = $0 | 0; - $0$hi = $0$hi | 0; $1 = $1 | 0; - $1$hi = $1$hi | 0; - var i64toi32_i32$5 = 0, i64toi32_i32$2 = 0, i64toi32_i32$0 = 0, $11 = 0, $11$hi = 0, i64toi32_i32$3 = 0, $6 = 0, $6$hi = 0, $9 = 0, $9$hi = 0; - i64toi32_i32$0 = $0$hi; - if (!($0 | i64toi32_i32$0 | 0)) { + $2 = $2 | 0; + $3 = $3 | 0; + var $4 = 0, $5 = 0, $6 = 0, $7 = 0; + $5 = $1; + if (!($0 | $5 | 0)) { { - i64toi32_i32$0 = $1$hi; - $11 = $1; - $11$hi = i64toi32_i32$0; + $5 = $3; + $4 = $2; + $1 = $5; } } else { { - i64toi32_i32$0 = $0$hi; - i64toi32_i32$2 = $0; - i64toi32_i32$3 = 1; - i64toi32_i32$5 = (i64toi32_i32$2 >>> 0 < i64toi32_i32$3 >>> 0) + 0 | 0; - i64toi32_i32$5 = i64toi32_i32$0 - i64toi32_i32$5 | 0; - $6 = i64toi32_i32$2 - i64toi32_i32$3 | 0; - $6$hi = i64toi32_i32$5; - i64toi32_i32$5 = i64toi32_i32$0; - i64toi32_i32$5 = $1$hi; - i64toi32_i32$5 = i64toi32_i32$0; - i64toi32_i32$2 = $1$hi; - i64toi32_i32$2 = __wasm_i64_mul($0 | 0, i64toi32_i32$5 | 0, $1 | 0, i64toi32_i32$2 | 0) | 0; - i64toi32_i32$5 = i64toi32_i32$HIGH_BITS; - $9 = i64toi32_i32$2; - $9$hi = i64toi32_i32$5; - i64toi32_i32$5 = $6$hi; - i64toi32_i32$2 = $9$hi; - i64toi32_i32$2 = fac_acc($6 | 0, i64toi32_i32$5 | 0, $9 | 0, i64toi32_i32$2 | 0) | 0; - i64toi32_i32$5 = i64toi32_i32$HIGH_BITS; - $11 = i64toi32_i32$2; - $11$hi = i64toi32_i32$5; + $5 = $1; + $4 = $0; + $6 = 1; + $1 = ($4 >>> 0 < $6 >>> 0) + 0 | 0; + $1 = $5 - $1 | 0; + $7 = $4 - $6 | 0; + $6 = $1; + $1 = $5; + $4 = $3; + $4 = __wasm_i64_mul($0 | 0, $1 | 0, $2 | 0, $4 | 0) | 0; + $1 = i64toi32_i32$HIGH_BITS; + $0 = $4; + $4 = $1; + $1 = $6; + $4 = fac_acc($7 | 0, $1 | 0, $0 | 0, $4 | 0) | 0; + $1 = i64toi32_i32$HIGH_BITS; } } - i64toi32_i32$5 = $11$hi; - i64toi32_i32$2 = $11; - i64toi32_i32$HIGH_BITS = i64toi32_i32$5; - return i64toi32_i32$2 | 0; + i64toi32_i32$HIGH_BITS = $1; + return $4 | 0; } - function fib($0, $0$hi) { + function fib($0, $1) { $0 = $0 | 0; - $0$hi = $0$hi | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$3 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$5 = 0, i64toi32_i32$4 = 0, i64toi32_i32$6 = 0, $10 = 0, $10$hi = 0, $5 = 0, $5$hi = 0, $8 = 0, $8$hi = 0; - i64toi32_i32$0 = $0$hi; - i64toi32_i32$2 = $0; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 1; - if (i64toi32_i32$0 >>> 0 < i64toi32_i32$1 >>> 0 | ((i64toi32_i32$0 | 0) == (i64toi32_i32$1 | 0) & i64toi32_i32$2 >>> 0 <= i64toi32_i32$3 >>> 0 | 0) | 0) { + $1 = $1 | 0; + var $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0; + $5 = $1; + $3 = $0; + $2 = 0; + $4 = 1; + if ($5 >>> 0 < $2 >>> 0 | (($5 | 0) == ($2 | 0) & $3 >>> 0 <= $4 >>> 0 | 0) | 0) { { - i64toi32_i32$2 = 0; - $10 = 1; - $10$hi = i64toi32_i32$2; + $3 = 0; + $1 = 1; + $5 = $3; } } else { { - i64toi32_i32$2 = $0$hi; - i64toi32_i32$3 = $0; - i64toi32_i32$0 = 0; - i64toi32_i32$1 = 2; - i64toi32_i32$4 = i64toi32_i32$3 - i64toi32_i32$1 | 0; - i64toi32_i32$6 = i64toi32_i32$3 >>> 0 < i64toi32_i32$1 >>> 0; - i64toi32_i32$5 = i64toi32_i32$6 + i64toi32_i32$0 | 0; - i64toi32_i32$5 = i64toi32_i32$2 - i64toi32_i32$5 | 0; - i64toi32_i32$5 = fib(i64toi32_i32$4 | 0, i64toi32_i32$5 | 0) | 0; - i64toi32_i32$3 = i64toi32_i32$HIGH_BITS; - $5 = i64toi32_i32$5; - $5$hi = i64toi32_i32$3; - i64toi32_i32$3 = i64toi32_i32$2; - i64toi32_i32$3 = i64toi32_i32$2; - i64toi32_i32$2 = $0; - i64toi32_i32$5 = 0; - i64toi32_i32$1 = 1; - i64toi32_i32$0 = i64toi32_i32$2 - i64toi32_i32$1 | 0; - i64toi32_i32$6 = i64toi32_i32$2 >>> 0 < i64toi32_i32$1 >>> 0; - i64toi32_i32$4 = i64toi32_i32$6 + i64toi32_i32$5 | 0; - i64toi32_i32$4 = i64toi32_i32$3 - i64toi32_i32$4 | 0; - i64toi32_i32$4 = fib(i64toi32_i32$0 | 0, i64toi32_i32$4 | 0) | 0; - i64toi32_i32$2 = i64toi32_i32$HIGH_BITS; - $8 = i64toi32_i32$4; - $8$hi = i64toi32_i32$2; - i64toi32_i32$2 = $5$hi; - i64toi32_i32$3 = $5; - i64toi32_i32$4 = $8$hi; - i64toi32_i32$1 = $8; - i64toi32_i32$5 = i64toi32_i32$3 + i64toi32_i32$1 | 0; - i64toi32_i32$0 = i64toi32_i32$2 + i64toi32_i32$4 | 0; - if (i64toi32_i32$5 >>> 0 < i64toi32_i32$1 >>> 0) { - i64toi32_i32$0 = i64toi32_i32$0 + 1 | 0 + $3 = $1; + $4 = $0; + $5 = 0; + $2 = 2; + $6 = $4 - $2 | 0; + $2 = $4 >>> 0 < $2 >>> 0; + $1 = $2 + $5 | 0; + $1 = $3 - $1 | 0; + $1 = fib($6 | 0, $1 | 0) | 0; + $4 = i64toi32_i32$HIGH_BITS; + $7 = $1; + $8 = $4; + $4 = $3; + $3 = $0; + $1 = 0; + $2 = 1; + $5 = $3 - $2 | 0; + $2 = $3 >>> 0 < $2 >>> 0; + $6 = $2 + $1 | 0; + $6 = $4 - $6 | 0; + $6 = fib($5 | 0, $6 | 0) | 0; + $3 = i64toi32_i32$HIGH_BITS; + $0 = $6; + $6 = $3; + $3 = $8; + $4 = $7; + $2 = $0; + $1 = $4 + $2 | 0; + $5 = $3 + $6 | 0; + if ($1 >>> 0 < $2 >>> 0) { + $5 = $5 + 1 | 0 } - $10 = i64toi32_i32$5; - $10$hi = i64toi32_i32$0; } } - i64toi32_i32$0 = $10$hi; - i64toi32_i32$3 = $10; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$3 | 0; + $4 = $1; + i64toi32_i32$HIGH_BITS = $5; + return $4 | 0; } - function even($0, $0$hi) { + function even($0, $1) { $0 = $0 | 0; - $0$hi = $0$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$5 = 0, $6 = 0, i64toi32_i32$3 = 0; - i64toi32_i32$0 = $0$hi; - if (!($0 | i64toi32_i32$0 | 0)) { - $6 = 44 + $1 = $1 | 0; + var $2 = 0, $3 = 0; + $2 = $1; + if (!($0 | $2 | 0)) { + $0 = 44 } else { { - i64toi32_i32$0 = $0$hi; - i64toi32_i32$3 = 1; - i64toi32_i32$5 = ($0 >>> 0 < i64toi32_i32$3 >>> 0) + 0 | 0; - i64toi32_i32$5 = i64toi32_i32$0 - i64toi32_i32$5 | 0; - $6 = odd($0 - i64toi32_i32$3 | 0 | 0, i64toi32_i32$5 | 0) | 0; + $2 = $1; + $1 = 1; + $3 = ($0 >>> 0 < $1 >>> 0) + 0 | 0; + $3 = $2 - $3 | 0; + $0 = odd($0 - $1 | 0 | 0, $3 | 0) | 0; } } - return $6 | 0; + return $0 | 0; } - function odd($0, $0$hi) { + function odd($0, $1) { $0 = $0 | 0; - $0$hi = $0$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$5 = 0, $6 = 0, i64toi32_i32$3 = 0; - i64toi32_i32$0 = $0$hi; - if (!($0 | i64toi32_i32$0 | 0)) { - $6 = 99 + $1 = $1 | 0; + var $2 = 0, $3 = 0; + $2 = $1; + if (!($0 | $2 | 0)) { + $0 = 99 } else { { - i64toi32_i32$0 = $0$hi; - i64toi32_i32$3 = 1; - i64toi32_i32$5 = ($0 >>> 0 < i64toi32_i32$3 >>> 0) + 0 | 0; - i64toi32_i32$5 = i64toi32_i32$0 - i64toi32_i32$5 | 0; - $6 = even($0 - i64toi32_i32$3 | 0 | 0, i64toi32_i32$5 | 0) | 0; + $2 = $1; + $1 = 1; + $3 = ($0 >>> 0 < $1 >>> 0) + 0 | 0; + $3 = $2 - $3 | 0; + $0 = even($0 - $1 | 0 | 0, $3 | 0) | 0; } } - return $6 | 0; + return $0 | 0; } function runaway() { @@ -347,134 +325,95 @@ function asmFunc(global, env, buffer) { } function legalstub$13() { - var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7 = 0, $0 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $13() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$2 = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = 0; - $7 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + var $0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0; + $0 = $13() | 0; + $2 = i64toi32_i32$HIGH_BITS; + $4 = $0; + $5 = $2; + $3 = 32; + $1 = $3 & 31 | 0; + if (32 >>> 0 <= ($3 & 63 | 0) >>> 0) { + $0 = $2 >>> $1 | 0 } else { - { - i64toi32_i32$0 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $7 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $0 = (((1 << $1 | 0) - 1 | 0) & $2 | 0) << (32 - $1 | 0) | 0 | ($0 >>> $1 | 0) | 0 } - setTempRet0($7 | 0); - i64toi32_i32$0 = $0$hi; - return $0 | 0; + setTempRet0($0 | 0); + return $4 | 0; } function legalstub$17() { - var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7 = 0, $0 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $17() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$2 = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = 0; - $7 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + var $0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0; + $0 = $17() | 0; + $2 = i64toi32_i32$HIGH_BITS; + $4 = $0; + $5 = $2; + $3 = 32; + $1 = $3 & 31 | 0; + if (32 >>> 0 <= ($3 & 63 | 0) >>> 0) { + $0 = $2 >>> $1 | 0 } else { - { - i64toi32_i32$0 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $7 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $0 = (((1 << $1 | 0) - 1 | 0) & $2 | 0) << (32 - $1 | 0) | 0 | ($0 >>> $1 | 0) | 0 } - setTempRet0($7 | 0); - i64toi32_i32$0 = $0$hi; - return $0 | 0; + setTempRet0($0 | 0); + return $4 | 0; } function legalstub$21() { - var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7 = 0, $0 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $21() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$2 = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = 0; - $7 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + var $0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0; + $0 = $21() | 0; + $2 = i64toi32_i32$HIGH_BITS; + $4 = $0; + $5 = $2; + $3 = 32; + $1 = $3 & 31 | 0; + if (32 >>> 0 <= ($3 & 63 | 0) >>> 0) { + $0 = $2 >>> $1 | 0 } else { - { - i64toi32_i32$0 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $7 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $0 = (((1 << $1 | 0) - 1 | 0) & $2 | 0) << (32 - $1 | 0) | 0 | ($0 >>> $1 | 0) | 0 } - setTempRet0($7 | 0); - i64toi32_i32$0 = $0$hi; - return $0 | 0; + setTempRet0($0 | 0); + return $4 | 0; } function legalstub$fac($0, $1) { $0 = $0 | 0; $1 = $1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12_1 = 0, $13_1 = 0, $4 = 0, $4$hi = 0, $7$hi = 0, $2 = 0, $2$hi = 0; - i64toi32_i32$0 = 0; - $4 = $0; - $4$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $12_1 = 0; + var $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0; + $3 = 0; + $5 = $0; + $6 = $3; + $3 = 0; + $4 = 32; + $2 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { + { + $0 = $1 << $2 | 0; + $4 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $12_1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $0 = ((1 << $2 | 0) - 1 | 0) & ($1 >>> (32 - $2 | 0) | 0) | 0 | ($3 << $2 | 0) | 0; + $4 = $1 << $2 | 0; } } - $7$hi = i64toi32_i32$1; - i64toi32_i32$1 = $4$hi; - i64toi32_i32$0 = $4; - i64toi32_i32$2 = $7$hi; - i64toi32_i32$3 = $12_1; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - i64toi32_i32$2 = fac(i64toi32_i32$0 | i64toi32_i32$3 | 0 | 0, i64toi32_i32$2 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $2 = i64toi32_i32$2; - $2$hi = i64toi32_i32$0; - i64toi32_i32$1 = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $13_1 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + $1 = $0; + $0 = $6; + $3 = $5; + $1 = $0 | $1 | 0; + $1 = fac($3 | $4 | 0 | 0, $1 | 0) | 0; + $3 = i64toi32_i32$HIGH_BITS; + $6 = $1; + $5 = $3; + $0 = $1; + $4 = 32; + $2 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { + $0 = $3 >>> $2 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $13_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$1 >>> i64toi32_i32$4 | 0) | 0; - } + $0 = (((1 << $2 | 0) - 1 | 0) & $3 | 0) << (32 - $2 | 0) | 0 | ($0 >>> $2 | 0) | 0 } - setTempRet0($13_1 | 0); - i64toi32_i32$2 = $2$hi; - return $2 | 0; + setTempRet0($0 | 0); + return $6 | 0; } function legalstub$fac_acc($0, $1, $2, $3) { @@ -482,300 +421,236 @@ function asmFunc(global, env, buffer) { $1 = $1 | 0; $2 = $2 | 0; $3 = $3 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$3 = 0, $21_1 = 0, $22_1 = 0, $23_1 = 0, $6 = 0, $6$hi = 0, $9$hi = 0, $10 = 0, $10$hi = 0, $12_1 = 0, $12$hi = 0, $15$hi = 0, $16_1 = 0, $16$hi = 0, $4 = 0, $4$hi = 0; - i64toi32_i32$0 = 0; - $6 = $0; - $6$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $21_1 = 0; + var $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0; + $6 = 0; + $7 = $0; + $8 = $6; + $6 = 0; + $5 = 32; + $4 = $5 & 31 | 0; + if (32 >>> 0 <= ($5 & 63 | 0) >>> 0) { + { + $0 = $1 << $4 | 0; + $5 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $21_1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $0 = ((1 << $4 | 0) - 1 | 0) & ($1 >>> (32 - $4 | 0) | 0) | 0 | ($6 << $4 | 0) | 0; + $5 = $1 << $4 | 0; } } - $9$hi = i64toi32_i32$1; - i64toi32_i32$1 = $6$hi; - i64toi32_i32$0 = $6; - i64toi32_i32$2 = $9$hi; - i64toi32_i32$3 = $21_1; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - $10 = i64toi32_i32$0 | i64toi32_i32$3 | 0; - $10$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - $12_1 = $2; - $12$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$1 = $3; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = i64toi32_i32$1 << i64toi32_i32$4 | 0; - $22_1 = 0; + $1 = $0; + $0 = $8; + $6 = $7; + $1 = $0 | $1 | 0; + $9 = $6 | $5 | 0; + $7 = $1; + $1 = 0; + $8 = $1; + $1 = 0; + $0 = $3; + $5 = 32; + $4 = $5 & 31 | 0; + if (32 >>> 0 <= ($5 & 63 | 0) >>> 0) { + { + $6 = $0 << $4 | 0; + $5 = 0; } } else { { - i64toi32_i32$0 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$1 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$2 << i64toi32_i32$4 | 0) | 0; - $22_1 = i64toi32_i32$1 << i64toi32_i32$4 | 0; + $6 = ((1 << $4 | 0) - 1 | 0) & ($0 >>> (32 - $4 | 0) | 0) | 0 | ($1 << $4 | 0) | 0; + $5 = $0 << $4 | 0; } } - $15$hi = i64toi32_i32$0; - i64toi32_i32$0 = $12$hi; - i64toi32_i32$2 = $12_1; - i64toi32_i32$1 = $15$hi; - i64toi32_i32$3 = $22_1; - i64toi32_i32$1 = i64toi32_i32$0 | i64toi32_i32$1 | 0; - $16_1 = i64toi32_i32$2 | i64toi32_i32$3 | 0; - $16$hi = i64toi32_i32$1; - i64toi32_i32$1 = $10$hi; - i64toi32_i32$2 = $16$hi; - i64toi32_i32$2 = fac_acc($10 | 0, i64toi32_i32$1 | 0, $16_1 | 0, i64toi32_i32$2 | 0) | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $4 = i64toi32_i32$2; - $4$hi = i64toi32_i32$1; - i64toi32_i32$0 = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $23_1 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + $0 = $6; + $6 = $8; + $1 = $2; + $0 = $6 | $0 | 0; + $2 = $1 | $5 | 0; + $1 = $0; + $0 = $7; + $1 = fac_acc($9 | 0, $0 | 0, $2 | 0, $1 | 0) | 0; + $0 = i64toi32_i32$HIGH_BITS; + $3 = $1; + $2 = $0; + $6 = $1; + $5 = 32; + $4 = $5 & 31 | 0; + if (32 >>> 0 <= ($5 & 63 | 0) >>> 0) { + $0 = $0 >>> $4 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $23_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$0 >>> i64toi32_i32$4 | 0) | 0; - } + $0 = (((1 << $4 | 0) - 1 | 0) & $0 | 0) << (32 - $4 | 0) | 0 | ($6 >>> $4 | 0) | 0 } - setTempRet0($23_1 | 0); - i64toi32_i32$2 = $4$hi; - return $4 | 0; + setTempRet0($0 | 0); + return $3 | 0; } function legalstub$fib($0, $1) { $0 = $0 | 0; $1 = $1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12_1 = 0, $13_1 = 0, $4 = 0, $4$hi = 0, $7$hi = 0, $2 = 0, $2$hi = 0; - i64toi32_i32$0 = 0; - $4 = $0; - $4$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $12_1 = 0; + var $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0; + $3 = 0; + $5 = $0; + $6 = $3; + $3 = 0; + $4 = 32; + $2 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { + { + $0 = $1 << $2 | 0; + $4 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $12_1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $0 = ((1 << $2 | 0) - 1 | 0) & ($1 >>> (32 - $2 | 0) | 0) | 0 | ($3 << $2 | 0) | 0; + $4 = $1 << $2 | 0; } } - $7$hi = i64toi32_i32$1; - i64toi32_i32$1 = $4$hi; - i64toi32_i32$0 = $4; - i64toi32_i32$2 = $7$hi; - i64toi32_i32$3 = $12_1; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - i64toi32_i32$2 = fib(i64toi32_i32$0 | i64toi32_i32$3 | 0 | 0, i64toi32_i32$2 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $2 = i64toi32_i32$2; - $2$hi = i64toi32_i32$0; - i64toi32_i32$1 = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $13_1 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + $1 = $0; + $0 = $6; + $3 = $5; + $1 = $0 | $1 | 0; + $1 = fib($3 | $4 | 0 | 0, $1 | 0) | 0; + $3 = i64toi32_i32$HIGH_BITS; + $6 = $1; + $5 = $3; + $0 = $1; + $4 = 32; + $2 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { + $0 = $3 >>> $2 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $13_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$1 >>> i64toi32_i32$4 | 0) | 0; - } + $0 = (((1 << $2 | 0) - 1 | 0) & $3 | 0) << (32 - $2 | 0) | 0 | ($0 >>> $2 | 0) | 0 } - setTempRet0($13_1 | 0); - i64toi32_i32$2 = $2$hi; - return $2 | 0; + setTempRet0($0 | 0); + return $6 | 0; } function legalstub$even($0, $1) { $0 = $0 | 0; $1 = $1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $10 = 0, $3 = 0, $3$hi = 0, $6$hi = 0; - i64toi32_i32$0 = 0; - $3 = $0; - $3$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0; + $2 = 0; + $6 = $2; + $2 = 0; + $3 = 32; + $4 = $3 & 31 | 0; + if (32 >>> 0 <= ($3 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $10 = 0; + $5 = $1 << $4 | 0; + $3 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $10 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $5 = ((1 << $4 | 0) - 1 | 0) & ($1 >>> (32 - $4 | 0) | 0) | 0 | ($2 << $4 | 0) | 0; + $3 = $1 << $4 | 0; } } - $6$hi = i64toi32_i32$1; - i64toi32_i32$1 = $3$hi; - i64toi32_i32$0 = $3; - i64toi32_i32$2 = $6$hi; - i64toi32_i32$3 = $10; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - return even(i64toi32_i32$0 | i64toi32_i32$3 | 0 | 0, i64toi32_i32$2 | 0) | 0 | 0; + $1 = $5; + $5 = $6; + $2 = $0; + $1 = $5 | $1 | 0; + return even($2 | $3 | 0 | 0, $1 | 0) | 0 | 0; } function legalstub$odd($0, $1) { $0 = $0 | 0; $1 = $1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $10 = 0, $3 = 0, $3$hi = 0, $6$hi = 0; - i64toi32_i32$0 = 0; - $3 = $0; - $3$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0; + $2 = 0; + $6 = $2; + $2 = 0; + $3 = 32; + $4 = $3 & 31 | 0; + if (32 >>> 0 <= ($3 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $10 = 0; + $5 = $1 << $4 | 0; + $3 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $10 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $5 = ((1 << $4 | 0) - 1 | 0) & ($1 >>> (32 - $4 | 0) | 0) | 0 | ($2 << $4 | 0) | 0; + $3 = $1 << $4 | 0; } } - $6$hi = i64toi32_i32$1; - i64toi32_i32$1 = $3$hi; - i64toi32_i32$0 = $3; - i64toi32_i32$2 = $6$hi; - i64toi32_i32$3 = $10; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - return odd(i64toi32_i32$0 | i64toi32_i32$3 | 0 | 0, i64toi32_i32$2 | 0) | 0 | 0; - } - - function _ZN17compiler_builtins3int3mul3Mul3mul17h070e9a1c69faec5bE(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; - var i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, var$2 = 0, i64toi32_i32$2 = 0, i64toi32_i32$3 = 0, var$3 = 0, var$4 = 0, var$5 = 0, $21_1 = 0, $22_1 = 0, var$6 = 0, $24 = 0, $17_1 = 0, $18_1 = 0, $23_1 = 0, $29 = 0, $45 = 0, $56$hi = 0, $62$hi = 0; - i64toi32_i32$0 = var$1$hi; - var$2 = var$1; - var$4 = var$2 >>> 16 | 0; - i64toi32_i32$0 = var$0$hi; - var$3 = var$0; - var$5 = var$3 >>> 16 | 0; - $17_1 = Math_imul(var$4, var$5); - $18_1 = var$2; - i64toi32_i32$2 = var$3; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = 0; - $21_1 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + $1 = $5; + $5 = $6; + $2 = $0; + $1 = $5 | $1 | 0; + return odd($2 | $3 | 0 | 0, $1 | 0) | 0 | 0; + } + + function _ZN17compiler_builtins3int3mul3Mul3mul17h070e9a1c69faec5bE($0, $1, $2, $3) { + $0 = $0 | 0; + $1 = $1 | 0; + $2 = $2 | 0; + $3 = $3 | 0; + var $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $10 = 0, $11 = 0; + $5 = $2; + $9 = $5 >>> 16 | 0; + $10 = $0 >>> 16 | 0; + $11 = Math_imul($9, $10); + $8 = $5; + $6 = $0; + $7 = 32; + $4 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { + $1 = $1 >>> $4 | 0 } else { - { - i64toi32_i32$1 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $21_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $1 = (((1 << $4 | 0) - 1 | 0) & $1 | 0) << (32 - $4 | 0) | 0 | ($6 >>> $4 | 0) | 0 } - $23_1 = $17_1 + Math_imul($18_1, $21_1) | 0; - i64toi32_i32$1 = var$1$hi; - i64toi32_i32$0 = var$1; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $22_1 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + $6 = $11 + Math_imul($8, $1) | 0; + $1 = $2; + $7 = 32; + $4 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { + $1 = $3 >>> $4 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $22_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$0 >>> i64toi32_i32$4 | 0) | 0; - } + $1 = (((1 << $4 | 0) - 1 | 0) & $3 | 0) << (32 - $4 | 0) | 0 | ($1 >>> $4 | 0) | 0 } - $29 = $23_1 + Math_imul($22_1, var$3) | 0; - var$2 = var$2 & 65535 | 0; - var$3 = var$3 & 65535 | 0; - var$6 = Math_imul(var$2, var$3); - var$2 = (var$6 >>> 16 | 0) + Math_imul(var$2, var$5) | 0; - $45 = $29 + (var$2 >>> 16 | 0) | 0; - var$2 = (var$2 & 65535 | 0) + Math_imul(var$4, var$3) | 0; - i64toi32_i32$2 = 0; - i64toi32_i32$1 = $45 + (var$2 >>> 16 | 0) | 0; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = i64toi32_i32$1 << i64toi32_i32$4 | 0; - $24 = 0; + $1 = $6 + Math_imul($1, $0) | 0; + $5 = $5 & 65535 | 0; + $0 = $0 & 65535 | 0; + $8 = Math_imul($5, $0); + $5 = ($8 >>> 16 | 0) + Math_imul($5, $10) | 0; + $1 = $1 + ($5 >>> 16 | 0) | 0; + $5 = ($5 & 65535 | 0) + Math_imul($9, $0) | 0; + $6 = 0; + $3 = $1 + ($5 >>> 16 | 0) | 0; + $7 = 32; + $4 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { + { + $1 = $3 << $4 | 0; + $6 = 0; } } else { { - i64toi32_i32$0 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$1 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$2 << i64toi32_i32$4 | 0) | 0; - $24 = i64toi32_i32$1 << i64toi32_i32$4 | 0; + $1 = ((1 << $4 | 0) - 1 | 0) & ($3 >>> (32 - $4 | 0) | 0) | 0 | ($6 << $4 | 0) | 0; + $6 = $3 << $4 | 0; } } - $56$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - $62$hi = i64toi32_i32$0; - i64toi32_i32$0 = $56$hi; - i64toi32_i32$2 = $24; - i64toi32_i32$1 = $62$hi; - i64toi32_i32$3 = var$2 << 16 | 0 | (var$6 & 65535 | 0) | 0; - i64toi32_i32$1 = i64toi32_i32$0 | i64toi32_i32$1 | 0; - i64toi32_i32$2 = i64toi32_i32$2 | i64toi32_i32$3 | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$2 | 0; - } - - function __wasm_i64_mul(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$0 = var$1$hi; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = _ZN17compiler_builtins3int3mul3Mul3mul17h070e9a1c69faec5bE(var$0 | 0, i64toi32_i32$0 | 0, var$1 | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + $0 = $1; + $1 = 0; + $2 = $1; + $1 = $0; + $3 = $2; + $7 = $5 << 16 | 0 | ($8 & 65535 | 0) | 0; + $3 = $1 | $3 | 0; + $6 = $6 | $7 | 0; + i64toi32_i32$HIGH_BITS = $3; + return $6 | 0; + } + + function __wasm_i64_mul($0, $1, $2, $3) { + $0 = $0 | 0; + $1 = $1 | 0; + $2 = $2 | 0; + $3 = $3 | 0; + $3 = _ZN17compiler_builtins3int3mul3Mul3mul17h070e9a1c69faec5bE($0 | 0, $1 | 0, $2 | 0, $3 | 0) | 0; + $1 = i64toi32_i32$HIGH_BITS; + i64toi32_i32$HIGH_BITS = $1; + return $3 | 0; } var FUNCTION_TABLE = []; diff --git a/test/wasm2js/call_indirect.2asm.js b/test/wasm2js/call_indirect.2asm.js index 93c3e9999..7b7f364db 100644 --- a/test/wasm2js/call_indirect.2asm.js +++ b/test/wasm2js/call_indirect.2asm.js @@ -46,12 +46,10 @@ function asmFunc(global, env, buffer) { return $0 | 0; } - function id_i64($0, $0$hi) { + function id_i64($0, $1) { $0 = $0 | 0; - $0$hi = $0$hi | 0; - var i64toi32_i32$0 = 0; - i64toi32_i32$0 = $0$hi; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; + $1 = $1 | 0; + i64toi32_i32$HIGH_BITS = $1; return $0 | 0; } @@ -65,21 +63,19 @@ function asmFunc(global, env, buffer) { return +$0; } - function i32_i64($0, $1, $1$hi) { + function i32_i64($0, $1, $2) { $0 = $0 | 0; $1 = $1 | 0; - $1$hi = $1$hi | 0; - var i64toi32_i32$0 = 0; - i64toi32_i32$0 = $1$hi; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; + $2 = $2 | 0; + i64toi32_i32$HIGH_BITS = $2; return $1 | 0; } - function i64_f64($0, $0$hi, $1) { + function i64_f64($0, $1, $2) { $0 = $0 | 0; - $0$hi = $0$hi | 0; - $1 = +$1; - return +$1; + $1 = $1 | 0; + $2 = +$2; + return +$2; } function f32_i32($0, $1) { @@ -99,12 +95,10 @@ function asmFunc(global, env, buffer) { return $0 | 0; } - function over_i64_duplicate($0, $0$hi) { + function over_i64_duplicate($0, $1) { $0 = $0 | 0; - $0$hi = $0$hi | 0; - var i64toi32_i32$0 = 0; - i64toi32_i32$0 = $0$hi; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; + $1 = $1 | 0; + i64toi32_i32$HIGH_BITS = $1; return $0 | 0; } @@ -123,11 +117,11 @@ function asmFunc(global, env, buffer) { } function $17() { - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = FUNCTION_TABLE[1]() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$0 | 0; + var $0 = 0, $1 = 0; + $0 = FUNCTION_TABLE[1]() | 0; + $1 = i64toi32_i32$HIGH_BITS; + i64toi32_i32$HIGH_BITS = $1; + return $0 | 0; } function $18() { @@ -139,12 +133,12 @@ function asmFunc(global, env, buffer) { } function $20() { - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = 0; - i64toi32_i32$0 = FUNCTION_TABLE[5](100, i64toi32_i32$0) | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$0 | 0; + var $0 = 0, $1 = 0; + $0 = 0; + $0 = FUNCTION_TABLE[5](100, $0) | 0; + $1 = i64toi32_i32$HIGH_BITS; + i64toi32_i32$HIGH_BITS = $1; + return $0 | 0; } function $21() { @@ -152,12 +146,12 @@ function asmFunc(global, env, buffer) { } function $22() { - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = 0; - i64toi32_i32$0 = FUNCTION_TABLE[5](64, i64toi32_i32$0) | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$0 | 0; + var $0 = 0, $1 = 0; + $0 = 0; + $0 = FUNCTION_TABLE[5](64, $0) | 0; + $1 = i64toi32_i32$HIGH_BITS; + i64toi32_i32$HIGH_BITS = $1; + return $0 | 0; } function $23() { @@ -173,12 +167,12 @@ function asmFunc(global, env, buffer) { } function $26() { - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = 0; - i64toi32_i32$0 = FUNCTION_TABLE[9](32, 64, i64toi32_i32$0) | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$0 | 0; + var $0 = 0, $1 = 0; + $0 = 0; + $0 = FUNCTION_TABLE[9](32, 64, $0) | 0; + $1 = i64toi32_i32$HIGH_BITS; + i64toi32_i32$HIGH_BITS = $1; + return $0 | 0; } function $27() { @@ -189,144 +183,129 @@ function asmFunc(global, env, buffer) { return +(+FUNCTION_TABLE[11](64, 0, 64.1)); } - function $29($0, $1, $1$hi) { + function $29($0, $1, $2) { $0 = $0 | 0; $1 = $1 | 0; - $1$hi = $1$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = $1$hi; - i64toi32_i32$0 = FUNCTION_TABLE[$0]($1, i64toi32_i32$0) | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$0 | 0; + $2 = $2 | 0; + $2 = FUNCTION_TABLE[$0]($1, $2) | 0; + $0 = i64toi32_i32$HIGH_BITS; + i64toi32_i32$HIGH_BITS = $0; + return $2 | 0; } function $30($0) { $0 = $0 | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = 0; - i64toi32_i32$0 = FUNCTION_TABLE[$0](9, i64toi32_i32$0) | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$0 | 0; + var $1 = 0; + $1 = 0; + $1 = FUNCTION_TABLE[$0](9, $1) | 0; + $0 = i64toi32_i32$HIGH_BITS; + i64toi32_i32$HIGH_BITS = $0; + return $1 | 0; } - function fac($0, $0$hi) { + function fac($0, $1) { $0 = $0 | 0; - $0$hi = $0$hi | 0; - var i64toi32_i32$5 = 0, i64toi32_i32$2 = 0, i64toi32_i32$0 = 0, $8 = 0, $8$hi = 0, i64toi32_i32$3 = 0, $6 = 0, $6$hi = 0; - i64toi32_i32$0 = $0$hi; - if (!($0 | i64toi32_i32$0 | 0)) { + $1 = $1 | 0; + var $2 = 0, $3 = 0, $4 = 0; + $3 = $1; + if (!($0 | $3 | 0)) { { - i64toi32_i32$0 = 0; - $8 = 1; - $8$hi = i64toi32_i32$0; + $3 = 0; + $2 = 1; + $1 = $3; } } else { { - i64toi32_i32$0 = $0$hi; - i64toi32_i32$2 = $0; - i64toi32_i32$3 = 1; - i64toi32_i32$5 = (i64toi32_i32$2 >>> 0 < i64toi32_i32$3 >>> 0) + 0 | 0; - i64toi32_i32$5 = i64toi32_i32$0 - i64toi32_i32$5 | 0; - i64toi32_i32$5 = FUNCTION_TABLE[12](i64toi32_i32$2 - i64toi32_i32$3 | 0, i64toi32_i32$5) | 0; - i64toi32_i32$2 = i64toi32_i32$HIGH_BITS; - $6 = i64toi32_i32$5; - $6$hi = i64toi32_i32$2; - i64toi32_i32$2 = i64toi32_i32$0; - i64toi32_i32$5 = $6$hi; - i64toi32_i32$5 = __wasm_i64_mul($0 | 0, i64toi32_i32$0 | 0, $6 | 0, i64toi32_i32$5 | 0) | 0; - i64toi32_i32$2 = i64toi32_i32$HIGH_BITS; - $8 = i64toi32_i32$5; - $8$hi = i64toi32_i32$2; + $3 = $1; + $1 = $0; + $4 = 1; + $2 = ($1 >>> 0 < $4 >>> 0) + 0 | 0; + $2 = $3 - $2 | 0; + $2 = FUNCTION_TABLE[12]($1 - $4 | 0, $2) | 0; + $1 = i64toi32_i32$HIGH_BITS; + $4 = $2; + $2 = $1; + $2 = __wasm_i64_mul($0 | 0, $3 | 0, $4 | 0, $2 | 0) | 0; + $1 = i64toi32_i32$HIGH_BITS; } } - i64toi32_i32$2 = $8$hi; - i64toi32_i32$5 = $8; - i64toi32_i32$HIGH_BITS = i64toi32_i32$2; - return i64toi32_i32$5 | 0; + i64toi32_i32$HIGH_BITS = $1; + return $2 | 0; } - function fib($0, $0$hi) { + function fib($0, $1) { $0 = $0 | 0; - $0$hi = $0$hi | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$3 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$5 = 0, i64toi32_i32$4 = 0, i64toi32_i32$6 = 0, $10 = 0, $10$hi = 0, $5 = 0, $5$hi = 0, $8 = 0, $8$hi = 0; - i64toi32_i32$0 = $0$hi; - i64toi32_i32$2 = $0; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 1; - if (i64toi32_i32$0 >>> 0 < i64toi32_i32$1 >>> 0 | ((i64toi32_i32$0 | 0) == (i64toi32_i32$1 | 0) & i64toi32_i32$2 >>> 0 <= i64toi32_i32$3 >>> 0 | 0) | 0) { + $1 = $1 | 0; + var $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0; + $5 = $1; + $3 = $0; + $2 = 0; + $4 = 1; + if ($5 >>> 0 < $2 >>> 0 | (($5 | 0) == ($2 | 0) & $3 >>> 0 <= $4 >>> 0 | 0) | 0) { { - i64toi32_i32$2 = 0; - $10 = 1; - $10$hi = i64toi32_i32$2; + $3 = 0; + $1 = 1; + $5 = $3; } } else { { - i64toi32_i32$2 = $0$hi; - i64toi32_i32$3 = $0; - i64toi32_i32$0 = 0; - i64toi32_i32$1 = 2; - i64toi32_i32$4 = i64toi32_i32$3 - i64toi32_i32$1 | 0; - i64toi32_i32$6 = i64toi32_i32$3 >>> 0 < i64toi32_i32$1 >>> 0; - i64toi32_i32$5 = i64toi32_i32$6 + i64toi32_i32$0 | 0; - i64toi32_i32$5 = i64toi32_i32$2 - i64toi32_i32$5 | 0; - i64toi32_i32$5 = FUNCTION_TABLE[13](i64toi32_i32$4, i64toi32_i32$5) | 0; - i64toi32_i32$3 = i64toi32_i32$HIGH_BITS; - $5 = i64toi32_i32$5; - $5$hi = i64toi32_i32$3; - i64toi32_i32$3 = i64toi32_i32$2; - i64toi32_i32$3 = i64toi32_i32$2; - i64toi32_i32$2 = $0; - i64toi32_i32$5 = 0; - i64toi32_i32$1 = 1; - i64toi32_i32$0 = i64toi32_i32$2 - i64toi32_i32$1 | 0; - i64toi32_i32$6 = i64toi32_i32$2 >>> 0 < i64toi32_i32$1 >>> 0; - i64toi32_i32$4 = i64toi32_i32$6 + i64toi32_i32$5 | 0; - i64toi32_i32$4 = i64toi32_i32$3 - i64toi32_i32$4 | 0; - i64toi32_i32$4 = FUNCTION_TABLE[13](i64toi32_i32$0, i64toi32_i32$4) | 0; - i64toi32_i32$2 = i64toi32_i32$HIGH_BITS; - $8 = i64toi32_i32$4; - $8$hi = i64toi32_i32$2; - i64toi32_i32$2 = $5$hi; - i64toi32_i32$3 = $5; - i64toi32_i32$4 = $8$hi; - i64toi32_i32$1 = $8; - i64toi32_i32$5 = i64toi32_i32$3 + i64toi32_i32$1 | 0; - i64toi32_i32$0 = i64toi32_i32$2 + i64toi32_i32$4 | 0; - if (i64toi32_i32$5 >>> 0 < i64toi32_i32$1 >>> 0) { - i64toi32_i32$0 = i64toi32_i32$0 + 1 | 0 + $3 = $1; + $4 = $0; + $5 = 0; + $2 = 2; + $6 = $4 - $2 | 0; + $2 = $4 >>> 0 < $2 >>> 0; + $1 = $2 + $5 | 0; + $1 = $3 - $1 | 0; + $1 = FUNCTION_TABLE[13]($6, $1) | 0; + $4 = i64toi32_i32$HIGH_BITS; + $7 = $1; + $8 = $4; + $4 = $3; + $3 = $0; + $1 = 0; + $2 = 1; + $5 = $3 - $2 | 0; + $2 = $3 >>> 0 < $2 >>> 0; + $6 = $2 + $1 | 0; + $6 = $4 - $6 | 0; + $6 = FUNCTION_TABLE[13]($5, $6) | 0; + $3 = i64toi32_i32$HIGH_BITS; + $0 = $6; + $6 = $3; + $3 = $8; + $4 = $7; + $2 = $0; + $1 = $4 + $2 | 0; + $5 = $3 + $6 | 0; + if ($1 >>> 0 < $2 >>> 0) { + $5 = $5 + 1 | 0 } - $10 = i64toi32_i32$5; - $10$hi = i64toi32_i32$0; } } - i64toi32_i32$0 = $10$hi; - i64toi32_i32$3 = $10; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$3 | 0; + $4 = $1; + i64toi32_i32$HIGH_BITS = $5; + return $4 | 0; } function even($0) { $0 = $0 | 0; - var $6 = 0; if (!$0) { - $6 = 44 + $0 = 44 } else { - $6 = FUNCTION_TABLE[15]($0 - 1 | 0) | 0 + $0 = FUNCTION_TABLE[15]($0 - 1 | 0) | 0 } - return $6 | 0; + return $0 | 0; } function odd($0) { $0 = $0 | 0; - var $6 = 0; if (!$0) { - $6 = 99 + $0 = 99 } else { - $6 = FUNCTION_TABLE[14]($0 - 1 | 0) | 0 + $0 = FUNCTION_TABLE[14]($0 - 1 | 0) | 0 } - return $6 | 0; + return $0 | 0; } function runaway() { @@ -342,393 +321,287 @@ function asmFunc(global, env, buffer) { } function legalstub$17() { - var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7 = 0, $0 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $17() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$2 = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = 0; - $7 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + var $0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0; + $0 = $17() | 0; + $2 = i64toi32_i32$HIGH_BITS; + $4 = $0; + $5 = $2; + $3 = 32; + $1 = $3 & 31 | 0; + if (32 >>> 0 <= ($3 & 63 | 0) >>> 0) { + $0 = $2 >>> $1 | 0 } else { - { - i64toi32_i32$0 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $7 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $0 = (((1 << $1 | 0) - 1 | 0) & $2 | 0) << (32 - $1 | 0) | 0 | ($0 >>> $1 | 0) | 0 } - setTempRet0($7 | 0); - i64toi32_i32$0 = $0$hi; - return $0 | 0; + setTempRet0($0 | 0); + return $4 | 0; } function legalstub$20() { - var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7 = 0, $0 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $20() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$2 = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = 0; - $7 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + var $0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0; + $0 = $20() | 0; + $2 = i64toi32_i32$HIGH_BITS; + $4 = $0; + $5 = $2; + $3 = 32; + $1 = $3 & 31 | 0; + if (32 >>> 0 <= ($3 & 63 | 0) >>> 0) { + $0 = $2 >>> $1 | 0 } else { - { - i64toi32_i32$0 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $7 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $0 = (((1 << $1 | 0) - 1 | 0) & $2 | 0) << (32 - $1 | 0) | 0 | ($0 >>> $1 | 0) | 0 } - setTempRet0($7 | 0); - i64toi32_i32$0 = $0$hi; - return $0 | 0; + setTempRet0($0 | 0); + return $4 | 0; } function legalstub$22() { - var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7 = 0, $0 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $22() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$2 = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = 0; - $7 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + var $0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0; + $0 = $22() | 0; + $2 = i64toi32_i32$HIGH_BITS; + $4 = $0; + $5 = $2; + $3 = 32; + $1 = $3 & 31 | 0; + if (32 >>> 0 <= ($3 & 63 | 0) >>> 0) { + $0 = $2 >>> $1 | 0 } else { - { - i64toi32_i32$0 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $7 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $0 = (((1 << $1 | 0) - 1 | 0) & $2 | 0) << (32 - $1 | 0) | 0 | ($0 >>> $1 | 0) | 0 } - setTempRet0($7 | 0); - i64toi32_i32$0 = $0$hi; - return $0 | 0; + setTempRet0($0 | 0); + return $4 | 0; } function legalstub$26() { - var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7 = 0, $0 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $26() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$2 = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = 0; - $7 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + var $0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0; + $0 = $26() | 0; + $2 = i64toi32_i32$HIGH_BITS; + $4 = $0; + $5 = $2; + $3 = 32; + $1 = $3 & 31 | 0; + if (32 >>> 0 <= ($3 & 63 | 0) >>> 0) { + $0 = $2 >>> $1 | 0 } else { - { - i64toi32_i32$0 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $7 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $0 = (((1 << $1 | 0) - 1 | 0) & $2 | 0) << (32 - $1 | 0) | 0 | ($0 >>> $1 | 0) | 0 } - setTempRet0($7 | 0); - i64toi32_i32$0 = $0$hi; - return $0 | 0; + setTempRet0($0 | 0); + return $4 | 0; } function legalstub$29($0, $1, $2) { $0 = $0 | 0; $1 = $1 | 0; $2 = $2 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $14 = 0, $15 = 0, $4 = 0, $6 = 0, $6$hi = 0, $9$hi = 0, $3 = 0, $3$hi = 0; - $4 = $0; - i64toi32_i32$0 = 0; - $6 = $1; - $6$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $2; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $14 = 0; + var $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0; + $7 = $0; + $0 = 0; + $5 = $1; + $6 = $0; + $0 = 0; + $4 = 32; + $3 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { + { + $1 = $2 << $3 | 0; + $4 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $14 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $1 = ((1 << $3 | 0) - 1 | 0) & ($2 >>> (32 - $3 | 0) | 0) | 0 | ($0 << $3 | 0) | 0; + $4 = $2 << $3 | 0; } } - $9$hi = i64toi32_i32$1; - i64toi32_i32$1 = $6$hi; - i64toi32_i32$0 = $6; - i64toi32_i32$2 = $9$hi; - i64toi32_i32$3 = $14; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - i64toi32_i32$2 = $29($4 | 0, i64toi32_i32$0 | i64toi32_i32$3 | 0 | 0, i64toi32_i32$2 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $3 = i64toi32_i32$2; - $3$hi = i64toi32_i32$0; - i64toi32_i32$1 = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $15 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + $2 = $1; + $1 = $6; + $0 = $5; + $2 = $1 | $2 | 0; + $2 = $29($7 | 0, $0 | $4 | 0 | 0, $2 | 0) | 0; + $0 = i64toi32_i32$HIGH_BITS; + $6 = $2; + $5 = $0; + $1 = $2; + $4 = 32; + $3 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { + $0 = $0 >>> $3 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $15 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$1 >>> i64toi32_i32$4 | 0) | 0; - } + $0 = (((1 << $3 | 0) - 1 | 0) & $0 | 0) << (32 - $3 | 0) | 0 | ($1 >>> $3 | 0) | 0 } - setTempRet0($15 | 0); - i64toi32_i32$2 = $3$hi; - return $3 | 0; + setTempRet0($0 | 0); + return $6 | 0; } function legalstub$30($0) { $0 = $0 | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $8 = 0, $1 = 0, $1$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $30($0 | 0) | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $1 = i64toi32_i32$0; - $1$hi = i64toi32_i32$1; - i64toi32_i32$2 = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = 0; - $8 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0; + $0 = $30($0 | 0) | 0; + $2 = i64toi32_i32$HIGH_BITS; + $4 = $0; + $5 = $2; + $3 = 32; + $1 = $3 & 31 | 0; + if (32 >>> 0 <= ($3 & 63 | 0) >>> 0) { + $0 = $2 >>> $1 | 0 } else { - { - i64toi32_i32$0 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $8 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $0 = (((1 << $1 | 0) - 1 | 0) & $2 | 0) << (32 - $1 | 0) | 0 | ($0 >>> $1 | 0) | 0 } - setTempRet0($8 | 0); - i64toi32_i32$0 = $1$hi; - return $1 | 0; + setTempRet0($0 | 0); + return $4 | 0; } function legalstub$fac($0, $1) { $0 = $0 | 0; $1 = $1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12 = 0, $13 = 0, $4 = 0, $4$hi = 0, $7$hi = 0, $2 = 0, $2$hi = 0; - i64toi32_i32$0 = 0; - $4 = $0; - $4$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $12 = 0; + var $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0; + $3 = 0; + $5 = $0; + $6 = $3; + $3 = 0; + $4 = 32; + $2 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { + { + $0 = $1 << $2 | 0; + $4 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $12 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $0 = ((1 << $2 | 0) - 1 | 0) & ($1 >>> (32 - $2 | 0) | 0) | 0 | ($3 << $2 | 0) | 0; + $4 = $1 << $2 | 0; } } - $7$hi = i64toi32_i32$1; - i64toi32_i32$1 = $4$hi; - i64toi32_i32$0 = $4; - i64toi32_i32$2 = $7$hi; - i64toi32_i32$3 = $12; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - i64toi32_i32$2 = fac(i64toi32_i32$0 | i64toi32_i32$3 | 0 | 0, i64toi32_i32$2 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $2 = i64toi32_i32$2; - $2$hi = i64toi32_i32$0; - i64toi32_i32$1 = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $13 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + $1 = $0; + $0 = $6; + $3 = $5; + $1 = $0 | $1 | 0; + $1 = fac($3 | $4 | 0 | 0, $1 | 0) | 0; + $3 = i64toi32_i32$HIGH_BITS; + $6 = $1; + $5 = $3; + $0 = $1; + $4 = 32; + $2 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { + $0 = $3 >>> $2 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $13 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$1 >>> i64toi32_i32$4 | 0) | 0; - } + $0 = (((1 << $2 | 0) - 1 | 0) & $3 | 0) << (32 - $2 | 0) | 0 | ($0 >>> $2 | 0) | 0 } - setTempRet0($13 | 0); - i64toi32_i32$2 = $2$hi; - return $2 | 0; + setTempRet0($0 | 0); + return $6 | 0; } function legalstub$fib($0, $1) { $0 = $0 | 0; $1 = $1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12 = 0, $13 = 0, $4 = 0, $4$hi = 0, $7$hi = 0, $2 = 0, $2$hi = 0; - i64toi32_i32$0 = 0; - $4 = $0; - $4$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $12 = 0; + var $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0; + $3 = 0; + $5 = $0; + $6 = $3; + $3 = 0; + $4 = 32; + $2 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { + { + $0 = $1 << $2 | 0; + $4 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $12 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $0 = ((1 << $2 | 0) - 1 | 0) & ($1 >>> (32 - $2 | 0) | 0) | 0 | ($3 << $2 | 0) | 0; + $4 = $1 << $2 | 0; } } - $7$hi = i64toi32_i32$1; - i64toi32_i32$1 = $4$hi; - i64toi32_i32$0 = $4; - i64toi32_i32$2 = $7$hi; - i64toi32_i32$3 = $12; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - i64toi32_i32$2 = fib(i64toi32_i32$0 | i64toi32_i32$3 | 0 | 0, i64toi32_i32$2 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $2 = i64toi32_i32$2; - $2$hi = i64toi32_i32$0; - i64toi32_i32$1 = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $13 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + $1 = $0; + $0 = $6; + $3 = $5; + $1 = $0 | $1 | 0; + $1 = fib($3 | $4 | 0 | 0, $1 | 0) | 0; + $3 = i64toi32_i32$HIGH_BITS; + $6 = $1; + $5 = $3; + $0 = $1; + $4 = 32; + $2 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { + $0 = $3 >>> $2 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $13 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$1 >>> i64toi32_i32$4 | 0) | 0; - } + $0 = (((1 << $2 | 0) - 1 | 0) & $3 | 0) << (32 - $2 | 0) | 0 | ($0 >>> $2 | 0) | 0 } - setTempRet0($13 | 0); - i64toi32_i32$2 = $2$hi; - return $2 | 0; + setTempRet0($0 | 0); + return $6 | 0; } - function _ZN17compiler_builtins3int3mul3Mul3mul17h070e9a1c69faec5bE(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; - var i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, var$2 = 0, i64toi32_i32$2 = 0, i64toi32_i32$3 = 0, var$3 = 0, var$4 = 0, var$5 = 0, $21_1 = 0, $22_1 = 0, var$6 = 0, $24_1 = 0, $17_1 = 0, $18_1 = 0, $23_1 = 0, $29_1 = 0, $45 = 0, $56$hi = 0, $62$hi = 0; - i64toi32_i32$0 = var$1$hi; - var$2 = var$1; - var$4 = var$2 >>> 16 | 0; - i64toi32_i32$0 = var$0$hi; - var$3 = var$0; - var$5 = var$3 >>> 16 | 0; - $17_1 = Math_imul(var$4, var$5); - $18_1 = var$2; - i64toi32_i32$2 = var$3; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = 0; - $21_1 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + function _ZN17compiler_builtins3int3mul3Mul3mul17h070e9a1c69faec5bE($0, $1, $2, $3) { + $0 = $0 | 0; + $1 = $1 | 0; + $2 = $2 | 0; + $3 = $3 | 0; + var $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $10 = 0, $11 = 0; + $5 = $2; + $9 = $5 >>> 16 | 0; + $10 = $0 >>> 16 | 0; + $11 = Math_imul($9, $10); + $8 = $5; + $6 = $0; + $7 = 32; + $4 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { + $1 = $1 >>> $4 | 0 } else { - { - i64toi32_i32$1 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $21_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $1 = (((1 << $4 | 0) - 1 | 0) & $1 | 0) << (32 - $4 | 0) | 0 | ($6 >>> $4 | 0) | 0 } - $23_1 = $17_1 + Math_imul($18_1, $21_1) | 0; - i64toi32_i32$1 = var$1$hi; - i64toi32_i32$0 = var$1; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $22_1 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + $6 = $11 + Math_imul($8, $1) | 0; + $1 = $2; + $7 = 32; + $4 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { + $1 = $3 >>> $4 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $22_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$0 >>> i64toi32_i32$4 | 0) | 0; - } + $1 = (((1 << $4 | 0) - 1 | 0) & $3 | 0) << (32 - $4 | 0) | 0 | ($1 >>> $4 | 0) | 0 } - $29_1 = $23_1 + Math_imul($22_1, var$3) | 0; - var$2 = var$2 & 65535 | 0; - var$3 = var$3 & 65535 | 0; - var$6 = Math_imul(var$2, var$3); - var$2 = (var$6 >>> 16 | 0) + Math_imul(var$2, var$5) | 0; - $45 = $29_1 + (var$2 >>> 16 | 0) | 0; - var$2 = (var$2 & 65535 | 0) + Math_imul(var$4, var$3) | 0; - i64toi32_i32$2 = 0; - i64toi32_i32$1 = $45 + (var$2 >>> 16 | 0) | 0; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = i64toi32_i32$1 << i64toi32_i32$4 | 0; - $24_1 = 0; + $1 = $6 + Math_imul($1, $0) | 0; + $5 = $5 & 65535 | 0; + $0 = $0 & 65535 | 0; + $8 = Math_imul($5, $0); + $5 = ($8 >>> 16 | 0) + Math_imul($5, $10) | 0; + $1 = $1 + ($5 >>> 16 | 0) | 0; + $5 = ($5 & 65535 | 0) + Math_imul($9, $0) | 0; + $6 = 0; + $3 = $1 + ($5 >>> 16 | 0) | 0; + $7 = 32; + $4 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { + { + $1 = $3 << $4 | 0; + $6 = 0; } } else { { - i64toi32_i32$0 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$1 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$2 << i64toi32_i32$4 | 0) | 0; - $24_1 = i64toi32_i32$1 << i64toi32_i32$4 | 0; + $1 = ((1 << $4 | 0) - 1 | 0) & ($3 >>> (32 - $4 | 0) | 0) | 0 | ($6 << $4 | 0) | 0; + $6 = $3 << $4 | 0; } } - $56$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - $62$hi = i64toi32_i32$0; - i64toi32_i32$0 = $56$hi; - i64toi32_i32$2 = $24_1; - i64toi32_i32$1 = $62$hi; - i64toi32_i32$3 = var$2 << 16 | 0 | (var$6 & 65535 | 0) | 0; - i64toi32_i32$1 = i64toi32_i32$0 | i64toi32_i32$1 | 0; - i64toi32_i32$2 = i64toi32_i32$2 | i64toi32_i32$3 | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$2 | 0; - } - - function __wasm_i64_mul(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$0 = var$1$hi; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = _ZN17compiler_builtins3int3mul3Mul3mul17h070e9a1c69faec5bE(var$0 | 0, i64toi32_i32$0 | 0, var$1 | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + $0 = $1; + $1 = 0; + $2 = $1; + $1 = $0; + $3 = $2; + $7 = $5 << 16 | 0 | ($8 & 65535 | 0) | 0; + $3 = $1 | $3 | 0; + $6 = $6 | $7 | 0; + i64toi32_i32$HIGH_BITS = $3; + return $6 | 0; + } + + function __wasm_i64_mul($0, $1, $2, $3) { + $0 = $0 | 0; + $1 = $1 | 0; + $2 = $2 | 0; + $3 = $3 | 0; + $3 = _ZN17compiler_builtins3int3mul3Mul3mul17h070e9a1c69faec5bE($0 | 0, $1 | 0, $2 | 0, $3 | 0) | 0; + $1 = i64toi32_i32$HIGH_BITS; + i64toi32_i32$HIGH_BITS = $1; + return $3 | 0; } var FUNCTION_TABLE = [const_i32, const_i64, const_f32, const_f64, id_i32, id_i64, id_f32, id_f64, f32_i32, i32_i64, f64_f32, i64_f64, fac, fib, even, odd, runaway, mutual_runaway1, mutual_runaway2, over_i32_duplicate, over_i64_duplicate, over_f32_duplicate, over_f64_duplicate]; diff --git a/test/wasm2js/conversions-modified.2asm.js b/test/wasm2js/conversions-modified.2asm.js index 5dd0ca074..54aaf02a3 100644 --- a/test/wasm2js/conversions-modified.2asm.js +++ b/test/wasm2js/conversions-modified.2asm.js @@ -54,608 +54,484 @@ function asmFunc(global, env, buffer) { var infinity = global.Infinity; var setTempRet0 = env.setTempRet0; var i64toi32_i32$HIGH_BITS = 0; - function $0(x) { - x = x | 0; - var i64toi32_i32$1 = 0, i64toi32_i32$0 = 0; - i64toi32_i32$1 = x; - i64toi32_i32$0 = i64toi32_i32$1 >> 31 | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + function $0($0_1) { + $0_1 = $0_1 | 0; + var $1_1 = 0; + $1_1 = $0_1 >> 31 | 0; + i64toi32_i32$HIGH_BITS = $1_1; + return $0_1 | 0; } - function $1(x) { - x = x | 0; - var i64toi32_i32$0 = 0; - i64toi32_i32$0 = 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return x | 0; + function $1($0_1) { + $0_1 = $0_1 | 0; + var $1_1 = 0; + $1_1 = 0; + i64toi32_i32$HIGH_BITS = $1_1; + return $0_1 | 0; } - function $2(x, x$hi) { - x = x | 0; - x$hi = x$hi | 0; - return x | 0; + function $2($0_1, $1_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + return $0_1 | 0; } - function $3(x) { - x = Math_fround(x); - return ~~x | 0; + function $3($0_1) { + $0_1 = Math_fround($0_1); + return ~~$0_1 | 0; } - function $4(x) { - x = Math_fround(x); - return ~~x >>> 0 | 0; + function $4($0_1) { + $0_1 = Math_fround($0_1); + return ~~$0_1 >>> 0 | 0; } - function $5(x) { - x = +x; - return ~~x | 0; + function $5($0_1) { + $0_1 = +$0_1; + return ~~$0_1 | 0; } - function $6(x) { - x = +x; - return ~~x >>> 0 | 0; + function $6($0_1) { + $0_1 = +$0_1; + return ~~$0_1 >>> 0 | 0; } - function $7(x) { - x = Math_fround(x); - var i64toi32_i32$0 = Math_fround(0), $4_1 = 0, $5_1 = 0, i64toi32_i32$1 = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = x; - if (Math_fround(Math_abs(i64toi32_i32$0)) >= Math_fround(1.0)) { - { - if (i64toi32_i32$0 > Math_fround(0.0)) { - $4_1 = ~~Math_fround(Math_min(Math_fround(Math_floor(Math_fround(i64toi32_i32$0 / Math_fround(4294967296.0)))), Math_fround(Math_fround(4294967296.0) - Math_fround(1.0)))) >>> 0 - } else { - $4_1 = ~~Math_fround(Math_ceil(Math_fround(Math_fround(i64toi32_i32$0 - Math_fround(~~i64toi32_i32$0 >>> 0 >>> 0)) / Math_fround(4294967296.0)))) >>> 0 - } - $5_1 = $4_1; + function $7($0_1) { + $0_1 = Math_fround($0_1); + var $1_1 = 0, $2_1 = 0; + if (Math_fround(Math_abs($0_1)) >= Math_fround(1.0)) { + if ($0_1 > Math_fround(0.0)) { + $1_1 = ~~Math_fround(Math_min(Math_fround(Math_floor(Math_fround($0_1 / Math_fround(4294967296.0)))), Math_fround(Math_fround(4294967296.0) - Math_fround(1.0)))) >>> 0 + } else { + $1_1 = ~~Math_fround(Math_ceil(Math_fround(Math_fround($0_1 - Math_fround(~~$0_1 >>> 0 >>> 0)) / Math_fround(4294967296.0)))) >>> 0 } } else { - $5_1 = 0 + $1_1 = 0 } - i64toi32_i32$1 = $5_1; - i64toi32_i32$2 = ~~i64toi32_i32$0 >>> 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$2 | 0; + $2_1 = ~~$0_1 >>> 0; + i64toi32_i32$HIGH_BITS = $1_1; + return $2_1 | 0; } - function $8(x) { - x = Math_fround(x); - var i64toi32_i32$0 = Math_fround(0), $4_1 = 0, $5_1 = 0, i64toi32_i32$1 = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = x; - if (Math_fround(Math_abs(i64toi32_i32$0)) >= Math_fround(1.0)) { - { - if (i64toi32_i32$0 > Math_fround(0.0)) { - $4_1 = ~~Math_fround(Math_min(Math_fround(Math_floor(Math_fround(i64toi32_i32$0 / Math_fround(4294967296.0)))), Math_fround(Math_fround(4294967296.0) - Math_fround(1.0)))) >>> 0 - } else { - $4_1 = ~~Math_fround(Math_ceil(Math_fround(Math_fround(i64toi32_i32$0 - Math_fround(~~i64toi32_i32$0 >>> 0 >>> 0)) / Math_fround(4294967296.0)))) >>> 0 - } - $5_1 = $4_1; + function $8($0_1) { + $0_1 = Math_fround($0_1); + var $1_1 = 0, $2_1 = 0; + if (Math_fround(Math_abs($0_1)) >= Math_fround(1.0)) { + if ($0_1 > Math_fround(0.0)) { + $1_1 = ~~Math_fround(Math_min(Math_fround(Math_floor(Math_fround($0_1 / Math_fround(4294967296.0)))), Math_fround(Math_fround(4294967296.0) - Math_fround(1.0)))) >>> 0 + } else { + $1_1 = ~~Math_fround(Math_ceil(Math_fround(Math_fround($0_1 - Math_fround(~~$0_1 >>> 0 >>> 0)) / Math_fround(4294967296.0)))) >>> 0 } } else { - $5_1 = 0 + $1_1 = 0 } - i64toi32_i32$1 = $5_1; - i64toi32_i32$2 = ~~i64toi32_i32$0 >>> 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$2 | 0; + $2_1 = ~~$0_1 >>> 0; + i64toi32_i32$HIGH_BITS = $1_1; + return $2_1 | 0; } - function $9(x) { - x = +x; - var i64toi32_i32$0 = 0.0, $4_1 = 0, $5_1 = 0, i64toi32_i32$1 = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = x; - if (Math_abs(i64toi32_i32$0) >= 1.0) { - { - if (i64toi32_i32$0 > 0.0) { - $4_1 = ~~Math_min(Math_floor(i64toi32_i32$0 / 4294967296.0), 4294967296.0 - 1.0) >>> 0 - } else { - $4_1 = ~~Math_ceil((i64toi32_i32$0 - +(~~i64toi32_i32$0 >>> 0 >>> 0)) / 4294967296.0) >>> 0 - } - $5_1 = $4_1; + function $9($0_1) { + $0_1 = +$0_1; + var $1_1 = 0, $2_1 = 0; + if (Math_abs($0_1) >= 1.0) { + if ($0_1 > 0.0) { + $1_1 = ~~Math_min(Math_floor($0_1 / 4294967296.0), 4294967296.0 - 1.0) >>> 0 + } else { + $1_1 = ~~Math_ceil(($0_1 - +(~~$0_1 >>> 0 >>> 0)) / 4294967296.0) >>> 0 } } else { - $5_1 = 0 + $1_1 = 0 } - i64toi32_i32$1 = $5_1; - i64toi32_i32$2 = ~~i64toi32_i32$0 >>> 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$2 | 0; + $2_1 = ~~$0_1 >>> 0; + i64toi32_i32$HIGH_BITS = $1_1; + return $2_1 | 0; } - function $10(x) { - x = +x; - var i64toi32_i32$0 = 0.0, $4_1 = 0, $5_1 = 0, i64toi32_i32$1 = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = x; - if (Math_abs(i64toi32_i32$0) >= 1.0) { - { - if (i64toi32_i32$0 > 0.0) { - $4_1 = ~~Math_min(Math_floor(i64toi32_i32$0 / 4294967296.0), 4294967296.0 - 1.0) >>> 0 - } else { - $4_1 = ~~Math_ceil((i64toi32_i32$0 - +(~~i64toi32_i32$0 >>> 0 >>> 0)) / 4294967296.0) >>> 0 - } - $5_1 = $4_1; + function $10($0_1) { + $0_1 = +$0_1; + var $1_1 = 0, $2_1 = 0; + if (Math_abs($0_1) >= 1.0) { + if ($0_1 > 0.0) { + $1_1 = ~~Math_min(Math_floor($0_1 / 4294967296.0), 4294967296.0 - 1.0) >>> 0 + } else { + $1_1 = ~~Math_ceil(($0_1 - +(~~$0_1 >>> 0 >>> 0)) / 4294967296.0) >>> 0 } } else { - $5_1 = 0 + $1_1 = 0 } - i64toi32_i32$1 = $5_1; - i64toi32_i32$2 = ~~i64toi32_i32$0 >>> 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$2 | 0; + $2_1 = ~~$0_1 >>> 0; + i64toi32_i32$HIGH_BITS = $1_1; + return $2_1 | 0; } - function $11(x) { - x = x | 0; - return Math_fround(Math_fround(x | 0)); + function $11($0_1) { + $0_1 = $0_1 | 0; + return Math_fround(Math_fround($0_1 | 0)); } - function $12(x, x$hi) { - x = x | 0; - x$hi = x$hi | 0; - var i64toi32_i32$0 = 0; - i64toi32_i32$0 = x$hi; - return Math_fround(Math_fround(+(x >>> 0) + 4294967296.0 * +(i64toi32_i32$0 | 0))); + function $12($0_1, $1_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + return Math_fround(Math_fround(+($0_1 >>> 0) + 4294967296.0 * +($1_1 | 0))); } - function $13(x) { - x = x | 0; - return +(+(x | 0)); + function $13($0_1) { + $0_1 = $0_1 | 0; + return +(+($0_1 | 0)); } - function $14(x, x$hi) { - x = x | 0; - x$hi = x$hi | 0; - var i64toi32_i32$0 = 0; - i64toi32_i32$0 = x$hi; - return +(+(x >>> 0) + 4294967296.0 * +(i64toi32_i32$0 | 0)); + function $14($0_1, $1_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + return +(+($0_1 >>> 0) + 4294967296.0 * +($1_1 | 0)); } - function $15(x) { - x = x | 0; - return Math_fround(Math_fround(x >>> 0)); + function $15($0_1) { + $0_1 = $0_1 | 0; + return Math_fround(Math_fround($0_1 >>> 0)); } - function $16(x, x$hi) { - x = x | 0; - x$hi = x$hi | 0; - var i64toi32_i32$0 = 0; - i64toi32_i32$0 = x$hi; - return Math_fround(Math_fround(+(x >>> 0) + 4294967296.0 * +(i64toi32_i32$0 >>> 0))); + function $16($0_1, $1_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + return Math_fround(Math_fround(+($0_1 >>> 0) + 4294967296.0 * +($1_1 >>> 0))); } - function $17(x) { - x = x | 0; - return +(+(x >>> 0)); + function $17($0_1) { + $0_1 = $0_1 | 0; + return +(+($0_1 >>> 0)); } - function $18(x, x$hi) { - x = x | 0; - x$hi = x$hi | 0; - var i64toi32_i32$0 = 0; - i64toi32_i32$0 = x$hi; - return +(+(x >>> 0) + 4294967296.0 * +(i64toi32_i32$0 >>> 0)); + function $18($0_1, $1_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + return +(+($0_1 >>> 0) + 4294967296.0 * +($1_1 >>> 0)); } - function $19(x) { - x = Math_fround(x); - return +(+x); + function $19($0_1) { + $0_1 = Math_fround($0_1); + return +(+$0_1); } - function $20(x) { - x = +x; - return Math_fround(Math_fround(x)); + function $20($0_1) { + $0_1 = +$0_1; + return Math_fround(Math_fround($0_1)); } - function $21(x) { - x = x | 0; - return Math_fround((wasm2js_scratch_store_i32(0, x), wasm2js_scratch_load_f32())); + function $21($0_1) { + $0_1 = $0_1 | 0; + return Math_fround((wasm2js_scratch_store_i32(0, $0_1), wasm2js_scratch_load_f32())); } - function $22(x, x$hi) { - x = x | 0; - x$hi = x$hi | 0; - var i64toi32_i32$0 = 0; - i64toi32_i32$0 = x$hi; - wasm2js_scratch_store_i32(0 | 0, x | 0); - wasm2js_scratch_store_i32(1 | 0, i64toi32_i32$0 | 0); + function $22($0_1, $1_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + wasm2js_scratch_store_i32(0 | 0, $0_1 | 0); + wasm2js_scratch_store_i32(1 | 0, $1_1 | 0); return +(+wasm2js_scratch_load_f64()); } - function $23(x) { - x = Math_fround(x); - return (wasm2js_scratch_store_f32(x), wasm2js_scratch_load_i32(0)) | 0; + function $23($0_1) { + $0_1 = Math_fround($0_1); + return (wasm2js_scratch_store_f32($0_1), wasm2js_scratch_load_i32(0)) | 0; } - function $24(x) { - x = +x; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - wasm2js_scratch_store_f64(+x); - i64toi32_i32$0 = wasm2js_scratch_load_i32(1 | 0) | 0; - i64toi32_i32$1 = wasm2js_scratch_load_i32(0 | 0) | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + function $24($0_1) { + $0_1 = +$0_1; + var $1_1 = 0, $2_1 = 0; + wasm2js_scratch_store_f64(+$0_1); + $1_1 = wasm2js_scratch_load_i32(1 | 0) | 0; + $2_1 = wasm2js_scratch_load_i32(0 | 0) | 0; + i64toi32_i32$HIGH_BITS = $1_1; + return $2_1 | 0; } function legalstub$0($0_1) { $0_1 = $0_1 | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $8_1 = 0, $1_1 = 0, $1$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $0($0_1 | 0) | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $1_1 = i64toi32_i32$0; - $1$hi = i64toi32_i32$1; - i64toi32_i32$2 = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = 0; - $8_1 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + var $1_1 = 0, $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0; + $0_1 = $0($0_1 | 0) | 0; + $2_1 = i64toi32_i32$HIGH_BITS; + $4_1 = $0_1; + $5_1 = $2_1; + $3_1 = 32; + $1_1 = $3_1 & 31 | 0; + if (32 >>> 0 <= ($3_1 & 63 | 0) >>> 0) { + $0_1 = $2_1 >>> $1_1 | 0 } else { - { - i64toi32_i32$0 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $8_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $1_1 | 0) - 1 | 0) & $2_1 | 0) << (32 - $1_1 | 0) | 0 | ($0_1 >>> $1_1 | 0) | 0 } - setTempRet0($8_1 | 0); - i64toi32_i32$0 = $1$hi; - return $1_1 | 0; + setTempRet0($0_1 | 0); + return $4_1 | 0; } function legalstub$1($0_1) { $0_1 = $0_1 | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $8_1 = 0, $1_1 = 0, $1$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $1($0_1 | 0) | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $1_1 = i64toi32_i32$0; - $1$hi = i64toi32_i32$1; - i64toi32_i32$2 = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = 0; - $8_1 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + var $1_1 = 0, $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0; + $0_1 = $1($0_1 | 0) | 0; + $2_1 = i64toi32_i32$HIGH_BITS; + $4_1 = $0_1; + $5_1 = $2_1; + $3_1 = 32; + $1_1 = $3_1 & 31 | 0; + if (32 >>> 0 <= ($3_1 & 63 | 0) >>> 0) { + $0_1 = $2_1 >>> $1_1 | 0 } else { - { - i64toi32_i32$0 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $8_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $1_1 | 0) - 1 | 0) & $2_1 | 0) << (32 - $1_1 | 0) | 0 | ($0_1 >>> $1_1 | 0) | 0 } - setTempRet0($8_1 | 0); - i64toi32_i32$0 = $1$hi; - return $1_1 | 0; + setTempRet0($0_1 | 0); + return $4_1 | 0; } function legalstub$2($0_1, $1_1) { $0_1 = $0_1 | 0; $1_1 = $1_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $10_1 = 0, $3_1 = 0, $3$hi = 0, $6$hi = 0; - i64toi32_i32$0 = 0; - $3_1 = $0_1; - $3$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0, $6_1 = 0; + $2_1 = 0; + $6_1 = $2_1; + $2_1 = 0; + $3_1 = 32; + $4_1 = $3_1 & 31 | 0; + if (32 >>> 0 <= ($3_1 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $10_1 = 0; + $5_1 = $1_1 << $4_1 | 0; + $3_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $10_1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $5_1 = ((1 << $4_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $4_1 | 0) | 0) | 0 | ($2_1 << $4_1 | 0) | 0; + $3_1 = $1_1 << $4_1 | 0; } } - $6$hi = i64toi32_i32$1; - i64toi32_i32$1 = $3$hi; - i64toi32_i32$0 = $3_1; - i64toi32_i32$2 = $6$hi; - i64toi32_i32$3 = $10_1; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - return $2(i64toi32_i32$0 | i64toi32_i32$3 | 0 | 0, i64toi32_i32$2 | 0) | 0 | 0; + $1_1 = $5_1; + $5_1 = $6_1; + $2_1 = $0_1; + $1_1 = $5_1 | $1_1 | 0; + return $2($2_1 | $3_1 | 0 | 0, $1_1 | 0) | 0 | 0; } function legalstub$7($0_1) { $0_1 = Math_fround($0_1); - var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $8_1 = 0, $1_1 = 0, $1$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $7(Math_fround($0_1)) | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $1_1 = i64toi32_i32$0; - $1$hi = i64toi32_i32$1; - i64toi32_i32$2 = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = 0; - $8_1 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + var $1_1 = 0, $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0, $6_1 = 0; + $1_1 = $7(Math_fround($0_1)) | 0; + $3_1 = i64toi32_i32$HIGH_BITS; + $5_1 = $1_1; + $6_1 = $3_1; + $4_1 = 32; + $2_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { + $1_1 = $3_1 >>> $2_1 | 0 } else { - { - i64toi32_i32$0 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $8_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $1_1 = (((1 << $2_1 | 0) - 1 | 0) & $3_1 | 0) << (32 - $2_1 | 0) | 0 | ($1_1 >>> $2_1 | 0) | 0 } - setTempRet0($8_1 | 0); - i64toi32_i32$0 = $1$hi; - return $1_1 | 0; + setTempRet0($1_1 | 0); + return $5_1 | 0; } function legalstub$8($0_1) { $0_1 = Math_fround($0_1); - var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $8_1 = 0, $1_1 = 0, $1$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $8(Math_fround($0_1)) | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $1_1 = i64toi32_i32$0; - $1$hi = i64toi32_i32$1; - i64toi32_i32$2 = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = 0; - $8_1 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + var $1_1 = 0, $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0, $6_1 = 0; + $1_1 = $8(Math_fround($0_1)) | 0; + $3_1 = i64toi32_i32$HIGH_BITS; + $5_1 = $1_1; + $6_1 = $3_1; + $4_1 = 32; + $2_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { + $1_1 = $3_1 >>> $2_1 | 0 } else { - { - i64toi32_i32$0 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $8_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $1_1 = (((1 << $2_1 | 0) - 1 | 0) & $3_1 | 0) << (32 - $2_1 | 0) | 0 | ($1_1 >>> $2_1 | 0) | 0 } - setTempRet0($8_1 | 0); - i64toi32_i32$0 = $1$hi; - return $1_1 | 0; + setTempRet0($1_1 | 0); + return $5_1 | 0; } function legalstub$9($0_1) { $0_1 = +$0_1; - var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $8_1 = 0, $1_1 = 0, $1$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $9(+$0_1) | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $1_1 = i64toi32_i32$0; - $1$hi = i64toi32_i32$1; - i64toi32_i32$2 = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = 0; - $8_1 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + var $1_1 = 0, $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0, $6_1 = 0; + $1_1 = $9(+$0_1) | 0; + $3_1 = i64toi32_i32$HIGH_BITS; + $5_1 = $1_1; + $6_1 = $3_1; + $4_1 = 32; + $2_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { + $1_1 = $3_1 >>> $2_1 | 0 } else { - { - i64toi32_i32$0 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $8_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $1_1 = (((1 << $2_1 | 0) - 1 | 0) & $3_1 | 0) << (32 - $2_1 | 0) | 0 | ($1_1 >>> $2_1 | 0) | 0 } - setTempRet0($8_1 | 0); - i64toi32_i32$0 = $1$hi; - return $1_1 | 0; + setTempRet0($1_1 | 0); + return $5_1 | 0; } function legalstub$10($0_1) { $0_1 = +$0_1; - var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $8_1 = 0, $1_1 = 0, $1$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $10(+$0_1) | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $1_1 = i64toi32_i32$0; - $1$hi = i64toi32_i32$1; - i64toi32_i32$2 = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = 0; - $8_1 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + var $1_1 = 0, $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0, $6_1 = 0; + $1_1 = $10(+$0_1) | 0; + $3_1 = i64toi32_i32$HIGH_BITS; + $5_1 = $1_1; + $6_1 = $3_1; + $4_1 = 32; + $2_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { + $1_1 = $3_1 >>> $2_1 | 0 } else { - { - i64toi32_i32$0 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $8_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $1_1 = (((1 << $2_1 | 0) - 1 | 0) & $3_1 | 0) << (32 - $2_1 | 0) | 0 | ($1_1 >>> $2_1 | 0) | 0 } - setTempRet0($8_1 | 0); - i64toi32_i32$0 = $1$hi; - return $1_1 | 0; + setTempRet0($1_1 | 0); + return $5_1 | 0; } function legalstub$12($0_1, $1_1) { $0_1 = $0_1 | 0; $1_1 = $1_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $10_1 = 0, $3_1 = 0, $3$hi = 0, $6$hi = 0; - i64toi32_i32$0 = 0; - $3_1 = $0_1; - $3$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0, $6_1 = 0; + $2_1 = 0; + $6_1 = $2_1; + $2_1 = 0; + $3_1 = 32; + $4_1 = $3_1 & 31 | 0; + if (32 >>> 0 <= ($3_1 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $10_1 = 0; + $5_1 = $1_1 << $4_1 | 0; + $3_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $10_1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $5_1 = ((1 << $4_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $4_1 | 0) | 0) | 0 | ($2_1 << $4_1 | 0) | 0; + $3_1 = $1_1 << $4_1 | 0; } } - $6$hi = i64toi32_i32$1; - i64toi32_i32$1 = $3$hi; - i64toi32_i32$0 = $3_1; - i64toi32_i32$2 = $6$hi; - i64toi32_i32$3 = $10_1; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - return Math_fround(Math_fround($12(i64toi32_i32$0 | i64toi32_i32$3 | 0 | 0, i64toi32_i32$2 | 0))); + $1_1 = $5_1; + $5_1 = $6_1; + $2_1 = $0_1; + $1_1 = $5_1 | $1_1 | 0; + return Math_fround(Math_fround($12($2_1 | $3_1 | 0 | 0, $1_1 | 0))); } function legalstub$14($0_1, $1_1) { $0_1 = $0_1 | 0; $1_1 = $1_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $10_1 = 0, $3_1 = 0, $3$hi = 0, $6$hi = 0; - i64toi32_i32$0 = 0; - $3_1 = $0_1; - $3$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0, $6_1 = 0; + $2_1 = 0; + $6_1 = $2_1; + $2_1 = 0; + $3_1 = 32; + $4_1 = $3_1 & 31 | 0; + if (32 >>> 0 <= ($3_1 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $10_1 = 0; + $5_1 = $1_1 << $4_1 | 0; + $3_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $10_1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $5_1 = ((1 << $4_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $4_1 | 0) | 0) | 0 | ($2_1 << $4_1 | 0) | 0; + $3_1 = $1_1 << $4_1 | 0; } } - $6$hi = i64toi32_i32$1; - i64toi32_i32$1 = $3$hi; - i64toi32_i32$0 = $3_1; - i64toi32_i32$2 = $6$hi; - i64toi32_i32$3 = $10_1; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - return +(+$14(i64toi32_i32$0 | i64toi32_i32$3 | 0 | 0, i64toi32_i32$2 | 0)); + $1_1 = $5_1; + $5_1 = $6_1; + $2_1 = $0_1; + $1_1 = $5_1 | $1_1 | 0; + return +(+$14($2_1 | $3_1 | 0 | 0, $1_1 | 0)); } function legalstub$16($0_1, $1_1) { $0_1 = $0_1 | 0; $1_1 = $1_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $10_1 = 0, $3_1 = 0, $3$hi = 0, $6$hi = 0; - i64toi32_i32$0 = 0; - $3_1 = $0_1; - $3$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0, $6_1 = 0; + $2_1 = 0; + $6_1 = $2_1; + $2_1 = 0; + $3_1 = 32; + $4_1 = $3_1 & 31 | 0; + if (32 >>> 0 <= ($3_1 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $10_1 = 0; + $5_1 = $1_1 << $4_1 | 0; + $3_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $10_1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $5_1 = ((1 << $4_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $4_1 | 0) | 0) | 0 | ($2_1 << $4_1 | 0) | 0; + $3_1 = $1_1 << $4_1 | 0; } } - $6$hi = i64toi32_i32$1; - i64toi32_i32$1 = $3$hi; - i64toi32_i32$0 = $3_1; - i64toi32_i32$2 = $6$hi; - i64toi32_i32$3 = $10_1; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - return Math_fround(Math_fround($16(i64toi32_i32$0 | i64toi32_i32$3 | 0 | 0, i64toi32_i32$2 | 0))); + $1_1 = $5_1; + $5_1 = $6_1; + $2_1 = $0_1; + $1_1 = $5_1 | $1_1 | 0; + return Math_fround(Math_fround($16($2_1 | $3_1 | 0 | 0, $1_1 | 0))); } function legalstub$18($0_1, $1_1) { $0_1 = $0_1 | 0; $1_1 = $1_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $10_1 = 0, $3_1 = 0, $3$hi = 0, $6$hi = 0; - i64toi32_i32$0 = 0; - $3_1 = $0_1; - $3$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0, $6_1 = 0; + $2_1 = 0; + $6_1 = $2_1; + $2_1 = 0; + $3_1 = 32; + $4_1 = $3_1 & 31 | 0; + if (32 >>> 0 <= ($3_1 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $10_1 = 0; + $5_1 = $1_1 << $4_1 | 0; + $3_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $10_1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $5_1 = ((1 << $4_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $4_1 | 0) | 0) | 0 | ($2_1 << $4_1 | 0) | 0; + $3_1 = $1_1 << $4_1 | 0; } } - $6$hi = i64toi32_i32$1; - i64toi32_i32$1 = $3$hi; - i64toi32_i32$0 = $3_1; - i64toi32_i32$2 = $6$hi; - i64toi32_i32$3 = $10_1; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - return +(+$18(i64toi32_i32$0 | i64toi32_i32$3 | 0 | 0, i64toi32_i32$2 | 0)); + $1_1 = $5_1; + $5_1 = $6_1; + $2_1 = $0_1; + $1_1 = $5_1 | $1_1 | 0; + return +(+$18($2_1 | $3_1 | 0 | 0, $1_1 | 0)); } function legalstub$22($0_1, $1_1) { $0_1 = $0_1 | 0; $1_1 = $1_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $10_1 = 0, $3_1 = 0, $3$hi = 0, $6$hi = 0; - i64toi32_i32$0 = 0; - $3_1 = $0_1; - $3$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0, $6_1 = 0; + $2_1 = 0; + $6_1 = $2_1; + $2_1 = 0; + $3_1 = 32; + $4_1 = $3_1 & 31 | 0; + if (32 >>> 0 <= ($3_1 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $10_1 = 0; + $5_1 = $1_1 << $4_1 | 0; + $3_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $10_1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $5_1 = ((1 << $4_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $4_1 | 0) | 0) | 0 | ($2_1 << $4_1 | 0) | 0; + $3_1 = $1_1 << $4_1 | 0; } } - $6$hi = i64toi32_i32$1; - i64toi32_i32$1 = $3$hi; - i64toi32_i32$0 = $3_1; - i64toi32_i32$2 = $6$hi; - i64toi32_i32$3 = $10_1; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - return +(+$22(i64toi32_i32$0 | i64toi32_i32$3 | 0 | 0, i64toi32_i32$2 | 0)); + $1_1 = $5_1; + $5_1 = $6_1; + $2_1 = $0_1; + $1_1 = $5_1 | $1_1 | 0; + return +(+$22($2_1 | $3_1 | 0 | 0, $1_1 | 0)); } function legalstub$24($0_1) { $0_1 = +$0_1; - var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $8_1 = 0, $1_1 = 0, $1$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $24(+$0_1) | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $1_1 = i64toi32_i32$0; - $1$hi = i64toi32_i32$1; - i64toi32_i32$2 = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = 0; - $8_1 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + var $1_1 = 0, $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0, $6_1 = 0; + $1_1 = $24(+$0_1) | 0; + $3_1 = i64toi32_i32$HIGH_BITS; + $5_1 = $1_1; + $6_1 = $3_1; + $4_1 = 32; + $2_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { + $1_1 = $3_1 >>> $2_1 | 0 } else { - { - i64toi32_i32$0 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $8_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $1_1 = (((1 << $2_1 | 0) - 1 | 0) & $3_1 | 0) << (32 - $2_1 | 0) | 0 | ($1_1 >>> $2_1 | 0) | 0 } - setTempRet0($8_1 | 0); - i64toi32_i32$0 = $1$hi; - return $1_1 | 0; + setTempRet0($1_1 | 0); + return $5_1 | 0; } var FUNCTION_TABLE = []; diff --git a/test/wasm2js/conversions-modified.2asm.js.opt b/test/wasm2js/conversions-modified.2asm.js.opt index 1e9b23fb5..1f1fd7ac5 100644 --- a/test/wasm2js/conversions-modified.2asm.js.opt +++ b/test/wasm2js/conversions-modified.2asm.js.opt @@ -76,42 +76,36 @@ function asmFunc(global, env, buffer) { function $7($0) { $0 = Math_fround($0); - var $1 = 0, $2 = 0, $3_1 = 0; - $3_1 = ~~$0 >>> 0; + var $1 = 0, $2 = 0; + $2 = ~~$0 >>> 0; if (Math_fround(Math_abs($0)) >= Math_fround(1.0)) { - { - if ($0 > Math_fround(0.0)) { - $1 = ~~Math_fround(Math_min(Math_fround(Math_floor(Math_fround($0 / Math_fround(4294967296.0)))), Math_fround(4294967296.0))) >>> 0 - } else { - $1 = ~~Math_fround(Math_ceil(Math_fround(Math_fround($0 - Math_fround(~~$0 >>> 0 >>> 0)) / Math_fround(4294967296.0)))) >>> 0 - } - $2 = $1; + if ($0 > Math_fround(0.0)) { + $1 = ~~Math_fround(Math_min(Math_fround(Math_floor(Math_fround($0 / Math_fround(4294967296.0)))), Math_fround(4294967296.0))) >>> 0 + } else { + $1 = ~~Math_fround(Math_ceil(Math_fround(Math_fround($0 - Math_fround(~~$0 >>> 0 >>> 0)) / Math_fround(4294967296.0)))) >>> 0 } } else { - $2 = 0 + $1 = 0 } - i64toi32_i32$HIGH_BITS = $2; - return $3_1 | 0; + i64toi32_i32$HIGH_BITS = $1; + return $2 | 0; } function $9($0) { $0 = +$0; - var $1 = 0, $2 = 0, $3_1 = 0; - $3_1 = ~~$0 >>> 0; + var $1 = 0, $2 = 0; + $2 = ~~$0 >>> 0; if (Math_abs($0) >= 1.0) { - { - if ($0 > 0.0) { - $1 = ~~Math_min(Math_floor($0 / 4294967296.0), 4294967295.0) >>> 0 - } else { - $1 = ~~Math_ceil(($0 - +(~~$0 >>> 0 >>> 0)) / 4294967296.0) >>> 0 - } - $2 = $1; + if ($0 > 0.0) { + $1 = ~~Math_min(Math_floor($0 / 4294967296.0), 4294967295.0) >>> 0 + } else { + $1 = ~~Math_ceil(($0 - +(~~$0 >>> 0 >>> 0)) / 4294967296.0) >>> 0 } } else { - $2 = 0 + $1 = 0 } - i64toi32_i32$HIGH_BITS = $2; - return $3_1 | 0; + i64toi32_i32$HIGH_BITS = $1; + return $2 | 0; } function $11($0) { diff --git a/test/wasm2js/emscripten.2asm.js b/test/wasm2js/emscripten.2asm.js index 79da32b8f..92373170f 100644 --- a/test/wasm2js/emscripten.2asm.js +++ b/test/wasm2js/emscripten.2asm.js @@ -60,24 +60,24 @@ function asmFunc(global, env, buffer) { return abort() | 0; } - function internal(x) { - x = x | 0; - return x | 0; + function internal($0) { + $0 = $0 | 0; + return $0 | 0; } - function tabled(x) { - x = x | 0; - return x | 0; + function tabled($0) { + $0 = $0 | 0; + return $0 | 0; } - function exported(x) { - x = x | 0; - return x | 0; + function exported($0) { + $0 = $0 | 0; + return $0 | 0; } - function sub_zero(x) { - x = x | 0; - return x - -5 | 0 | 0; + function sub_zero($0) { + $0 = $0 | 0; + return $0 - -5 | 0 | 0; } // EMSCRIPTEN_END_FUNCS; diff --git a/test/wasm2js/endianness.2asm.js b/test/wasm2js/endianness.2asm.js index 81cf13022..0ccf6719f 100644 --- a/test/wasm2js/endianness.2asm.js +++ b/test/wasm2js/endianness.2asm.js @@ -54,672 +54,549 @@ function asmFunc(global, env, buffer) { var infinity = global.Infinity; var setTempRet0 = env.setTempRet0; var i64toi32_i32$HIGH_BITS = 0; - function i16_store_little(address, value) { - address = address | 0; - value = value | 0; - HEAP8[address >> 0] = value; - HEAP8[(address + 1 | 0) >> 0] = value >>> 8 | 0; - } - - function i32_store_little(address, value) { - address = address | 0; - value = value | 0; - i16_store_little(address | 0, value | 0); - i16_store_little(address + 2 | 0 | 0, value >>> 16 | 0 | 0); - } - - function i64_store_little(address, value, value$hi) { - address = address | 0; - value = value | 0; - value$hi = value$hi | 0; - var i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $9_1 = 0, $6_1 = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = value$hi; - i32_store_little(address | 0, value | 0); - $6_1 = address + 4 | 0; - i64toi32_i32$2 = value; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = 0; - $9_1 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + function i16_store_little($0, $1) { + $0 = $0 | 0; + $1 = $1 | 0; + HEAP8[$0 >> 0] = $1; + HEAP8[($0 + 1 | 0) >> 0] = $1 >>> 8 | 0; + } + + function i32_store_little($0, $1) { + $0 = $0 | 0; + $1 = $1 | 0; + i16_store_little($0 | 0, $1 | 0); + i16_store_little($0 + 2 | 0 | 0, $1 >>> 16 | 0 | 0); + } + + function i64_store_little($0, $1, $2) { + $0 = $0 | 0; + $1 = $1 | 0; + $2 = $2 | 0; + var $3 = 0, $4 = 0; + i32_store_little($0 | 0, $1 | 0); + $0 = $0 + 4 | 0; + $4 = 32; + $3 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { + $1 = $2 >>> $3 | 0 } else { - { - i64toi32_i32$1 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $9_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $1 = (((1 << $3 | 0) - 1 | 0) & $2 | 0) << (32 - $3 | 0) | 0 | ($1 >>> $3 | 0) | 0 } - i32_store_little($6_1 | 0, $9_1 | 0); + i32_store_little($0 | 0, $1 | 0); } - function i16_load_little(address) { - address = address | 0; - return HEAPU8[address >> 0] | 0 | ((HEAPU8[(address + 1 | 0) >> 0] | 0) << 8 | 0) | 0 | 0; + function i16_load_little($0) { + $0 = $0 | 0; + return HEAPU8[$0 >> 0] | 0 | ((HEAPU8[($0 + 1 | 0) >> 0] | 0) << 8 | 0) | 0 | 0; } - function i32_load_little(address) { - address = address | 0; - return i16_load_little(address | 0) | 0 | ((i16_load_little(address + 2 | 0 | 0) | 0) << 16 | 0) | 0 | 0; + function i32_load_little($0) { + $0 = $0 | 0; + return i16_load_little($0 | 0) | 0 | ((i16_load_little($0 + 2 | 0 | 0) | 0) << 16 | 0) | 0 | 0; } - function i64_load_little(address) { - address = address | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $9_1 = 0, $3 = 0, $3$hi = 0, $8$hi = 0; - i64toi32_i32$0 = 0; - $3 = i32_load_little(address | 0) | 0; - $3$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = i32_load_little(address + 4 | 0 | 0) | 0; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $9_1 = 0; + function i64_load_little($0) { + $0 = $0 | 0; + var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6_1 = 0; + $1 = 0; + $5 = i32_load_little($0 | 0) | 0; + $6_1 = $1; + $1 = 0; + $0 = i32_load_little($0 + 4 | 0 | 0) | 0; + $2 = 32; + $3 = $2 & 31 | 0; + if (32 >>> 0 <= ($2 & 63 | 0) >>> 0) { + { + $4 = $0 << $3 | 0; + $2 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $9_1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $4 = ((1 << $3 | 0) - 1 | 0) & ($0 >>> (32 - $3 | 0) | 0) | 0 | ($1 << $3 | 0) | 0; + $2 = $0 << $3 | 0; } } - $8$hi = i64toi32_i32$1; - i64toi32_i32$1 = $3$hi; - i64toi32_i32$0 = $3; - i64toi32_i32$2 = $8$hi; - i64toi32_i32$3 = $9_1; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - i64toi32_i32$0 = i64toi32_i32$0 | i64toi32_i32$3 | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$2; - return i64toi32_i32$0 | 0; - } - - function $6(value) { - value = value | 0; - i16_store_little(0 | 0, value | 0); + $0 = $4; + $4 = $6_1; + $1 = $5; + $0 = $4 | $0 | 0; + $1 = $1 | $2 | 0; + i64toi32_i32$HIGH_BITS = $0; + return $1 | 0; + } + + function $6($0) { + $0 = $0 | 0; + i16_store_little(0 | 0, $0 | 0); return HEAP16[0 >> 1] | 0 | 0; } - function $7(value) { - value = value | 0; - i16_store_little(0 | 0, value | 0); + function $7($0) { + $0 = $0 | 0; + i16_store_little(0 | 0, $0 | 0); return HEAPU16[0 >> 1] | 0 | 0; } - function $8(value) { - value = value | 0; - i32_store_little(0 | 0, value | 0); + function $8($0) { + $0 = $0 | 0; + i32_store_little(0 | 0, $0 | 0); return HEAP32[0 >> 2] | 0 | 0; } - function $9(value, value$hi) { - value = value | 0; - value$hi = value$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = value$hi; - i16_store_little(0 | 0, value | 0); - i64toi32_i32$0 = HEAP16[0 >> 1] | 0; - i64toi32_i32$1 = i64toi32_i32$0 >> 31 | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$0 | 0; - } - - function $10(value, value$hi) { - value = value | 0; - value$hi = value$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = value$hi; - i16_store_little(0 | 0, value | 0); - i64toi32_i32$0 = HEAPU16[0 >> 1] | 0; - i64toi32_i32$1 = 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$0 | 0; - } - - function $11(value, value$hi) { - value = value | 0; - value$hi = value$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = value$hi; - i32_store_little(0 | 0, value | 0); - i64toi32_i32$0 = HEAP32[0 >> 2] | 0; - i64toi32_i32$1 = i64toi32_i32$0 >> 31 | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$0 | 0; - } - - function $12(value, value$hi) { - value = value | 0; - value$hi = value$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = value$hi; - i32_store_little(0 | 0, value | 0); - i64toi32_i32$0 = HEAP32[0 >> 2] | 0; - i64toi32_i32$1 = 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$0 | 0; - } - - function $13(value, value$hi) { - value = value | 0; - value$hi = value$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$2 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = value$hi; - i64_store_little(0 | 0, value | 0, i64toi32_i32$0 | 0); - i64toi32_i32$2 = 0; - i64toi32_i32$0 = HEAP32[i64toi32_i32$2 >> 2] | 0; - i64toi32_i32$1 = HEAP32[(i64toi32_i32$2 + 4 | 0) >> 2] | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$0 | 0; - } - - function $14(value) { - value = Math_fround(value); - i32_store_little(0 | 0, (wasm2js_scratch_store_f32(value), wasm2js_scratch_load_i32(0)) | 0); + function $9($0, $1) { + $0 = $0 | 0; + $1 = $1 | 0; + i16_store_little(0 | 0, $0 | 0); + $1 = HEAP16[0 >> 1] | 0; + $0 = $1 >> 31 | 0; + i64toi32_i32$HIGH_BITS = $0; + return $1 | 0; + } + + function $10($0, $1) { + $0 = $0 | 0; + $1 = $1 | 0; + i16_store_little(0 | 0, $0 | 0); + $1 = HEAPU16[0 >> 1] | 0; + $0 = 0; + i64toi32_i32$HIGH_BITS = $0; + return $1 | 0; + } + + function $11($0, $1) { + $0 = $0 | 0; + $1 = $1 | 0; + i32_store_little(0 | 0, $0 | 0); + $1 = HEAP32[0 >> 2] | 0; + $0 = $1 >> 31 | 0; + i64toi32_i32$HIGH_BITS = $0; + return $1 | 0; + } + + function $12($0, $1) { + $0 = $0 | 0; + $1 = $1 | 0; + i32_store_little(0 | 0, $0 | 0); + $1 = HEAP32[0 >> 2] | 0; + $0 = 0; + i64toi32_i32$HIGH_BITS = $0; + return $1 | 0; + } + + function $13($0, $1) { + $0 = $0 | 0; + $1 = $1 | 0; + i64_store_little(0 | 0, $0 | 0, $1 | 0); + $0 = 0; + $1 = HEAP32[$0 >> 2] | 0; + $0 = HEAP32[($0 + 4 | 0) >> 2] | 0; + i64toi32_i32$HIGH_BITS = $0; + return $1 | 0; + } + + function $14($0) { + $0 = Math_fround($0); + i32_store_little(0 | 0, (wasm2js_scratch_store_f32($0), wasm2js_scratch_load_i32(0)) | 0); return Math_fround(Math_fround(HEAPF32[0 >> 2])); } - function $15(value) { - value = +value; - var i64toi32_i32$0 = 0; - wasm2js_scratch_store_f64(+value); - i64toi32_i32$0 = wasm2js_scratch_load_i32(1 | 0) | 0; - i64_store_little(0 | 0, wasm2js_scratch_load_i32(0 | 0) | 0 | 0, i64toi32_i32$0 | 0); + function $15($0) { + $0 = +$0; + var $1 = 0; + wasm2js_scratch_store_f64(+$0); + $1 = wasm2js_scratch_load_i32(1 | 0) | 0; + i64_store_little(0 | 0, wasm2js_scratch_load_i32(0 | 0) | 0 | 0, $1 | 0); return +(+HEAPF64[0 >> 3]); } - function $16(value) { - value = value | 0; - HEAP16[0 >> 1] = value; + function $16($0) { + $0 = $0 | 0; + HEAP16[0 >> 1] = $0; return i16_load_little(0 | 0) | 0 | 0; } - function $17(value) { - value = value | 0; - HEAP32[0 >> 2] = value; + function $17($0) { + $0 = $0 | 0; + HEAP32[0 >> 2] = $0; return i32_load_little(0 | 0) | 0 | 0; } - function $18(value, value$hi) { - value = value | 0; - value$hi = value$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = value$hi; - HEAP16[0 >> 1] = value; - i64toi32_i32$0 = 0; - i64toi32_i32$1 = i16_load_little(0 | 0) | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; - } - - function $19(value, value$hi) { - value = value | 0; - value$hi = value$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = value$hi; - HEAP32[0 >> 2] = value; - i64toi32_i32$0 = 0; - i64toi32_i32$1 = i32_load_little(0 | 0) | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; - } - - function $20(value, value$hi) { - value = value | 0; - value$hi = value$hi | 0; - var i64toi32_i32$1 = 0, i64toi32_i32$0 = 0; - i64toi32_i32$0 = value$hi; - i64toi32_i32$1 = 0; - HEAP32[i64toi32_i32$1 >> 2] = value; - HEAP32[(i64toi32_i32$1 + 4 | 0) >> 2] = i64toi32_i32$0; - i64toi32_i32$0 = i64_load_little(0 | 0) | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$0 | 0; - } - - function $21(value) { - value = Math_fround(value); - HEAPF32[0 >> 2] = value; + function $18($0, $1) { + $0 = $0 | 0; + $1 = $1 | 0; + HEAP16[0 >> 1] = $0; + $1 = 0; + $0 = i16_load_little(0 | 0) | 0; + i64toi32_i32$HIGH_BITS = $1; + return $0 | 0; + } + + function $19($0, $1) { + $0 = $0 | 0; + $1 = $1 | 0; + HEAP32[0 >> 2] = $0; + $1 = 0; + $0 = i32_load_little(0 | 0) | 0; + i64toi32_i32$HIGH_BITS = $1; + return $0 | 0; + } + + function $20($0, $1) { + $0 = $0 | 0; + $1 = $1 | 0; + var $2 = 0; + $2 = 0; + HEAP32[$2 >> 2] = $0; + HEAP32[($2 + 4 | 0) >> 2] = $1; + $1 = i64_load_little(0 | 0) | 0; + $2 = i64toi32_i32$HIGH_BITS; + i64toi32_i32$HIGH_BITS = $2; + return $1 | 0; + } + + function $21($0) { + $0 = Math_fround($0); + HEAPF32[0 >> 2] = $0; return Math_fround((wasm2js_scratch_store_i32(0, i32_load_little(0 | 0) | 0), wasm2js_scratch_load_f32())); } - function $22(value) { - value = +value; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - HEAPF64[0 >> 3] = value; - i64toi32_i32$0 = i64_load_little(0 | 0) | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - wasm2js_scratch_store_i32(0 | 0, i64toi32_i32$0 | 0); - wasm2js_scratch_store_i32(1 | 0, i64toi32_i32$1 | 0); + function $22($0) { + $0 = +$0; + var $1 = 0, $2 = 0; + HEAPF64[0 >> 3] = $0; + $1 = i64_load_little(0 | 0) | 0; + $2 = i64toi32_i32$HIGH_BITS; + wasm2js_scratch_store_i32(0 | 0, $1 | 0); + wasm2js_scratch_store_i32(1 | 0, $2 | 0); return +(+wasm2js_scratch_load_f64()); } function legalstub$9($0, $1) { $0 = $0 | 0; $1 = $1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12_1 = 0, $13_1 = 0, $4 = 0, $4$hi = 0, $7$hi = 0, $2 = 0, $2$hi = 0; - i64toi32_i32$0 = 0; - $4 = $0; - $4$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $12_1 = 0; + var $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6_1 = 0; + $3 = 0; + $5 = $0; + $6_1 = $3; + $3 = 0; + $4 = 32; + $2 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { + { + $0 = $1 << $2 | 0; + $4 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $12_1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $0 = ((1 << $2 | 0) - 1 | 0) & ($1 >>> (32 - $2 | 0) | 0) | 0 | ($3 << $2 | 0) | 0; + $4 = $1 << $2 | 0; } } - $7$hi = i64toi32_i32$1; - i64toi32_i32$1 = $4$hi; - i64toi32_i32$0 = $4; - i64toi32_i32$2 = $7$hi; - i64toi32_i32$3 = $12_1; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - i64toi32_i32$2 = $9(i64toi32_i32$0 | i64toi32_i32$3 | 0 | 0, i64toi32_i32$2 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $2 = i64toi32_i32$2; - $2$hi = i64toi32_i32$0; - i64toi32_i32$1 = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $13_1 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + $1 = $0; + $0 = $6_1; + $3 = $5; + $1 = $0 | $1 | 0; + $1 = $9($3 | $4 | 0 | 0, $1 | 0) | 0; + $3 = i64toi32_i32$HIGH_BITS; + $6_1 = $1; + $5 = $3; + $0 = $1; + $4 = 32; + $2 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { + $0 = $3 >>> $2 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $13_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$1 >>> i64toi32_i32$4 | 0) | 0; - } + $0 = (((1 << $2 | 0) - 1 | 0) & $3 | 0) << (32 - $2 | 0) | 0 | ($0 >>> $2 | 0) | 0 } - setTempRet0($13_1 | 0); - i64toi32_i32$2 = $2$hi; - return $2 | 0; + setTempRet0($0 | 0); + return $6_1 | 0; } function legalstub$10($0, $1) { $0 = $0 | 0; $1 = $1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12_1 = 0, $13_1 = 0, $4 = 0, $4$hi = 0, $7$hi = 0, $2 = 0, $2$hi = 0; - i64toi32_i32$0 = 0; - $4 = $0; - $4$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $12_1 = 0; + var $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6_1 = 0; + $3 = 0; + $5 = $0; + $6_1 = $3; + $3 = 0; + $4 = 32; + $2 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { + { + $0 = $1 << $2 | 0; + $4 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $12_1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $0 = ((1 << $2 | 0) - 1 | 0) & ($1 >>> (32 - $2 | 0) | 0) | 0 | ($3 << $2 | 0) | 0; + $4 = $1 << $2 | 0; } } - $7$hi = i64toi32_i32$1; - i64toi32_i32$1 = $4$hi; - i64toi32_i32$0 = $4; - i64toi32_i32$2 = $7$hi; - i64toi32_i32$3 = $12_1; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - i64toi32_i32$2 = $10(i64toi32_i32$0 | i64toi32_i32$3 | 0 | 0, i64toi32_i32$2 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $2 = i64toi32_i32$2; - $2$hi = i64toi32_i32$0; - i64toi32_i32$1 = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $13_1 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + $1 = $0; + $0 = $6_1; + $3 = $5; + $1 = $0 | $1 | 0; + $1 = $10($3 | $4 | 0 | 0, $1 | 0) | 0; + $3 = i64toi32_i32$HIGH_BITS; + $6_1 = $1; + $5 = $3; + $0 = $1; + $4 = 32; + $2 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { + $0 = $3 >>> $2 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $13_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$1 >>> i64toi32_i32$4 | 0) | 0; - } + $0 = (((1 << $2 | 0) - 1 | 0) & $3 | 0) << (32 - $2 | 0) | 0 | ($0 >>> $2 | 0) | 0 } - setTempRet0($13_1 | 0); - i64toi32_i32$2 = $2$hi; - return $2 | 0; + setTempRet0($0 | 0); + return $6_1 | 0; } function legalstub$11($0, $1) { $0 = $0 | 0; $1 = $1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12_1 = 0, $13_1 = 0, $4 = 0, $4$hi = 0, $7$hi = 0, $2 = 0, $2$hi = 0; - i64toi32_i32$0 = 0; - $4 = $0; - $4$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $12_1 = 0; + var $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6_1 = 0; + $3 = 0; + $5 = $0; + $6_1 = $3; + $3 = 0; + $4 = 32; + $2 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { + { + $0 = $1 << $2 | 0; + $4 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $12_1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $0 = ((1 << $2 | 0) - 1 | 0) & ($1 >>> (32 - $2 | 0) | 0) | 0 | ($3 << $2 | 0) | 0; + $4 = $1 << $2 | 0; } } - $7$hi = i64toi32_i32$1; - i64toi32_i32$1 = $4$hi; - i64toi32_i32$0 = $4; - i64toi32_i32$2 = $7$hi; - i64toi32_i32$3 = $12_1; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - i64toi32_i32$2 = $11(i64toi32_i32$0 | i64toi32_i32$3 | 0 | 0, i64toi32_i32$2 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $2 = i64toi32_i32$2; - $2$hi = i64toi32_i32$0; - i64toi32_i32$1 = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $13_1 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + $1 = $0; + $0 = $6_1; + $3 = $5; + $1 = $0 | $1 | 0; + $1 = $11($3 | $4 | 0 | 0, $1 | 0) | 0; + $3 = i64toi32_i32$HIGH_BITS; + $6_1 = $1; + $5 = $3; + $0 = $1; + $4 = 32; + $2 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { + $0 = $3 >>> $2 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $13_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$1 >>> i64toi32_i32$4 | 0) | 0; - } + $0 = (((1 << $2 | 0) - 1 | 0) & $3 | 0) << (32 - $2 | 0) | 0 | ($0 >>> $2 | 0) | 0 } - setTempRet0($13_1 | 0); - i64toi32_i32$2 = $2$hi; - return $2 | 0; + setTempRet0($0 | 0); + return $6_1 | 0; } function legalstub$12($0, $1) { $0 = $0 | 0; $1 = $1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12_1 = 0, $13_1 = 0, $4 = 0, $4$hi = 0, $7$hi = 0, $2 = 0, $2$hi = 0; - i64toi32_i32$0 = 0; - $4 = $0; - $4$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $12_1 = 0; + var $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6_1 = 0; + $3 = 0; + $5 = $0; + $6_1 = $3; + $3 = 0; + $4 = 32; + $2 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { + { + $0 = $1 << $2 | 0; + $4 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $12_1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $0 = ((1 << $2 | 0) - 1 | 0) & ($1 >>> (32 - $2 | 0) | 0) | 0 | ($3 << $2 | 0) | 0; + $4 = $1 << $2 | 0; } } - $7$hi = i64toi32_i32$1; - i64toi32_i32$1 = $4$hi; - i64toi32_i32$0 = $4; - i64toi32_i32$2 = $7$hi; - i64toi32_i32$3 = $12_1; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - i64toi32_i32$2 = $12(i64toi32_i32$0 | i64toi32_i32$3 | 0 | 0, i64toi32_i32$2 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $2 = i64toi32_i32$2; - $2$hi = i64toi32_i32$0; - i64toi32_i32$1 = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $13_1 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + $1 = $0; + $0 = $6_1; + $3 = $5; + $1 = $0 | $1 | 0; + $1 = $12($3 | $4 | 0 | 0, $1 | 0) | 0; + $3 = i64toi32_i32$HIGH_BITS; + $6_1 = $1; + $5 = $3; + $0 = $1; + $4 = 32; + $2 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { + $0 = $3 >>> $2 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $13_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$1 >>> i64toi32_i32$4 | 0) | 0; - } + $0 = (((1 << $2 | 0) - 1 | 0) & $3 | 0) << (32 - $2 | 0) | 0 | ($0 >>> $2 | 0) | 0 } - setTempRet0($13_1 | 0); - i64toi32_i32$2 = $2$hi; - return $2 | 0; + setTempRet0($0 | 0); + return $6_1 | 0; } function legalstub$13($0, $1) { $0 = $0 | 0; $1 = $1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12_1 = 0, $13_1 = 0, $4 = 0, $4$hi = 0, $7$hi = 0, $2 = 0, $2$hi = 0; - i64toi32_i32$0 = 0; - $4 = $0; - $4$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $12_1 = 0; + var $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6_1 = 0; + $3 = 0; + $5 = $0; + $6_1 = $3; + $3 = 0; + $4 = 32; + $2 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { + { + $0 = $1 << $2 | 0; + $4 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $12_1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $0 = ((1 << $2 | 0) - 1 | 0) & ($1 >>> (32 - $2 | 0) | 0) | 0 | ($3 << $2 | 0) | 0; + $4 = $1 << $2 | 0; } } - $7$hi = i64toi32_i32$1; - i64toi32_i32$1 = $4$hi; - i64toi32_i32$0 = $4; - i64toi32_i32$2 = $7$hi; - i64toi32_i32$3 = $12_1; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - i64toi32_i32$2 = $13(i64toi32_i32$0 | i64toi32_i32$3 | 0 | 0, i64toi32_i32$2 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $2 = i64toi32_i32$2; - $2$hi = i64toi32_i32$0; - i64toi32_i32$1 = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $13_1 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + $1 = $0; + $0 = $6_1; + $3 = $5; + $1 = $0 | $1 | 0; + $1 = $13($3 | $4 | 0 | 0, $1 | 0) | 0; + $3 = i64toi32_i32$HIGH_BITS; + $6_1 = $1; + $5 = $3; + $0 = $1; + $4 = 32; + $2 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { + $0 = $3 >>> $2 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $13_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$1 >>> i64toi32_i32$4 | 0) | 0; - } + $0 = (((1 << $2 | 0) - 1 | 0) & $3 | 0) << (32 - $2 | 0) | 0 | ($0 >>> $2 | 0) | 0 } - setTempRet0($13_1 | 0); - i64toi32_i32$2 = $2$hi; - return $2 | 0; + setTempRet0($0 | 0); + return $6_1 | 0; } function legalstub$18($0, $1) { $0 = $0 | 0; $1 = $1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12_1 = 0, $13_1 = 0, $4 = 0, $4$hi = 0, $7$hi = 0, $2 = 0, $2$hi = 0; - i64toi32_i32$0 = 0; - $4 = $0; - $4$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $12_1 = 0; + var $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6_1 = 0; + $3 = 0; + $5 = $0; + $6_1 = $3; + $3 = 0; + $4 = 32; + $2 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { + { + $0 = $1 << $2 | 0; + $4 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $12_1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $0 = ((1 << $2 | 0) - 1 | 0) & ($1 >>> (32 - $2 | 0) | 0) | 0 | ($3 << $2 | 0) | 0; + $4 = $1 << $2 | 0; } } - $7$hi = i64toi32_i32$1; - i64toi32_i32$1 = $4$hi; - i64toi32_i32$0 = $4; - i64toi32_i32$2 = $7$hi; - i64toi32_i32$3 = $12_1; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - i64toi32_i32$2 = $18(i64toi32_i32$0 | i64toi32_i32$3 | 0 | 0, i64toi32_i32$2 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $2 = i64toi32_i32$2; - $2$hi = i64toi32_i32$0; - i64toi32_i32$1 = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $13_1 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + $1 = $0; + $0 = $6_1; + $3 = $5; + $1 = $0 | $1 | 0; + $1 = $18($3 | $4 | 0 | 0, $1 | 0) | 0; + $3 = i64toi32_i32$HIGH_BITS; + $6_1 = $1; + $5 = $3; + $0 = $1; + $4 = 32; + $2 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { + $0 = $3 >>> $2 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $13_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$1 >>> i64toi32_i32$4 | 0) | 0; - } + $0 = (((1 << $2 | 0) - 1 | 0) & $3 | 0) << (32 - $2 | 0) | 0 | ($0 >>> $2 | 0) | 0 } - setTempRet0($13_1 | 0); - i64toi32_i32$2 = $2$hi; - return $2 | 0; + setTempRet0($0 | 0); + return $6_1 | 0; } function legalstub$19($0, $1) { $0 = $0 | 0; $1 = $1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12_1 = 0, $13_1 = 0, $4 = 0, $4$hi = 0, $7$hi = 0, $2 = 0, $2$hi = 0; - i64toi32_i32$0 = 0; - $4 = $0; - $4$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $12_1 = 0; + var $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6_1 = 0; + $3 = 0; + $5 = $0; + $6_1 = $3; + $3 = 0; + $4 = 32; + $2 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { + { + $0 = $1 << $2 | 0; + $4 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $12_1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $0 = ((1 << $2 | 0) - 1 | 0) & ($1 >>> (32 - $2 | 0) | 0) | 0 | ($3 << $2 | 0) | 0; + $4 = $1 << $2 | 0; } } - $7$hi = i64toi32_i32$1; - i64toi32_i32$1 = $4$hi; - i64toi32_i32$0 = $4; - i64toi32_i32$2 = $7$hi; - i64toi32_i32$3 = $12_1; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - i64toi32_i32$2 = $19(i64toi32_i32$0 | i64toi32_i32$3 | 0 | 0, i64toi32_i32$2 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $2 = i64toi32_i32$2; - $2$hi = i64toi32_i32$0; - i64toi32_i32$1 = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $13_1 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + $1 = $0; + $0 = $6_1; + $3 = $5; + $1 = $0 | $1 | 0; + $1 = $19($3 | $4 | 0 | 0, $1 | 0) | 0; + $3 = i64toi32_i32$HIGH_BITS; + $6_1 = $1; + $5 = $3; + $0 = $1; + $4 = 32; + $2 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { + $0 = $3 >>> $2 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $13_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$1 >>> i64toi32_i32$4 | 0) | 0; - } + $0 = (((1 << $2 | 0) - 1 | 0) & $3 | 0) << (32 - $2 | 0) | 0 | ($0 >>> $2 | 0) | 0 } - setTempRet0($13_1 | 0); - i64toi32_i32$2 = $2$hi; - return $2 | 0; + setTempRet0($0 | 0); + return $6_1 | 0; } function legalstub$20($0, $1) { $0 = $0 | 0; $1 = $1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12_1 = 0, $13_1 = 0, $4 = 0, $4$hi = 0, $7$hi = 0, $2 = 0, $2$hi = 0; - i64toi32_i32$0 = 0; - $4 = $0; - $4$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $12_1 = 0; + var $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6_1 = 0; + $3 = 0; + $5 = $0; + $6_1 = $3; + $3 = 0; + $4 = 32; + $2 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { + { + $0 = $1 << $2 | 0; + $4 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $12_1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $0 = ((1 << $2 | 0) - 1 | 0) & ($1 >>> (32 - $2 | 0) | 0) | 0 | ($3 << $2 | 0) | 0; + $4 = $1 << $2 | 0; } } - $7$hi = i64toi32_i32$1; - i64toi32_i32$1 = $4$hi; - i64toi32_i32$0 = $4; - i64toi32_i32$2 = $7$hi; - i64toi32_i32$3 = $12_1; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - i64toi32_i32$2 = $20(i64toi32_i32$0 | i64toi32_i32$3 | 0 | 0, i64toi32_i32$2 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $2 = i64toi32_i32$2; - $2$hi = i64toi32_i32$0; - i64toi32_i32$1 = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $13_1 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + $1 = $0; + $0 = $6_1; + $3 = $5; + $1 = $0 | $1 | 0; + $1 = $20($3 | $4 | 0 | 0, $1 | 0) | 0; + $3 = i64toi32_i32$HIGH_BITS; + $6_1 = $1; + $5 = $3; + $0 = $1; + $4 = 32; + $2 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { + $0 = $3 >>> $2 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $13_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$1 >>> i64toi32_i32$4 | 0) | 0; - } + $0 = (((1 << $2 | 0) - 1 | 0) & $3 | 0) << (32 - $2 | 0) | 0 | ($0 >>> $2 | 0) | 0 } - setTempRet0($13_1 | 0); - i64toi32_i32$2 = $2$hi; - return $2 | 0; + setTempRet0($0 | 0); + return $6_1 | 0; } var FUNCTION_TABLE = []; diff --git a/test/wasm2js/f32.2asm.js b/test/wasm2js/f32.2asm.js index 291b64124..c31d47bc6 100644 --- a/test/wasm2js/f32.2asm.js +++ b/test/wasm2js/f32.2asm.js @@ -43,104 +43,104 @@ function asmFunc(global, env, buffer) { var abort = env.abort; var nan = global.NaN; var infinity = global.Infinity; - function $0(x, y) { - x = Math_fround(x); - y = Math_fround(y); - return Math_fround(Math_fround(x + y)); + function $0($0_1, $1_1) { + $0_1 = Math_fround($0_1); + $1_1 = Math_fround($1_1); + return Math_fround(Math_fround($0_1 + $1_1)); } - function $1(x, y) { - x = Math_fround(x); - y = Math_fround(y); - return Math_fround(Math_fround(x - y)); + function $1($0_1, $1_1) { + $0_1 = Math_fround($0_1); + $1_1 = Math_fround($1_1); + return Math_fround(Math_fround($0_1 - $1_1)); } - function $2(x, y) { - x = Math_fround(x); - y = Math_fround(y); - return Math_fround(Math_fround(x * y)); + function $2($0_1, $1_1) { + $0_1 = Math_fround($0_1); + $1_1 = Math_fround($1_1); + return Math_fround(Math_fround($0_1 * $1_1)); } - function $3(x, y) { - x = Math_fround(x); - y = Math_fround(y); - return Math_fround(Math_fround(x / y)); + function $3($0_1, $1_1) { + $0_1 = Math_fround($0_1); + $1_1 = Math_fround($1_1); + return Math_fround(Math_fround($0_1 / $1_1)); } - function $4(x) { - x = Math_fround(x); - return Math_fround(Math_fround(Math_sqrt(x))); + function $4($0_1) { + $0_1 = Math_fround($0_1); + return Math_fround(Math_fround(Math_sqrt($0_1))); } - function $5(x, y) { - x = Math_fround(x); - y = Math_fround(y); - return Math_fround(Math_fround(Math_min(x, y))); + function $5($0_1, $1_1) { + $0_1 = Math_fround($0_1); + $1_1 = Math_fround($1_1); + return Math_fround(Math_fround(Math_min($0_1, $1_1))); } - function $6(x, y) { - x = Math_fround(x); - y = Math_fround(y); - return Math_fround(Math_fround(Math_max(x, y))); + function $6($0_1, $1_1) { + $0_1 = Math_fround($0_1); + $1_1 = Math_fround($1_1); + return Math_fround(Math_fround(Math_max($0_1, $1_1))); } - function $7(x) { - x = Math_fround(x); - return Math_fround(Math_fround(Math_ceil(x))); + function $7($0_1) { + $0_1 = Math_fround($0_1); + return Math_fround(Math_fround(Math_ceil($0_1))); } - function $8(x) { - x = Math_fround(x); - return Math_fround(Math_fround(Math_floor(x))); + function $8($0_1) { + $0_1 = Math_fround($0_1); + return Math_fround(Math_fround(Math_floor($0_1))); } - function $9(x) { - x = Math_fround(x); - return Math_fround(Math_fround(__wasm_trunc_f32(Math_fround(x)))); + function $9($0_1) { + $0_1 = Math_fround($0_1); + return Math_fround(Math_fround(__wasm_trunc_f32(Math_fround($0_1)))); } - function $10(x) { - x = Math_fround(x); - return Math_fround(Math_fround(__wasm_nearest_f32(Math_fround(x)))); + function $10($0_1) { + $0_1 = Math_fround($0_1); + return Math_fround(Math_fround(__wasm_nearest_f32(Math_fround($0_1)))); } - function $11(x) { - x = Math_fround(x); - return Math_fround(Math_fround(Math_abs(x))); + function $11($0_1) { + $0_1 = Math_fround($0_1); + return Math_fround(Math_fround(Math_abs($0_1))); } - function $12(x) { - x = Math_fround(x); - return Math_fround(Math_fround(-x)); + function $12($0_1) { + $0_1 = Math_fround($0_1); + return Math_fround(Math_fround(-$0_1)); } - function $13(x, y) { - x = Math_fround(x); - y = Math_fround(y); - return Math_fround((wasm2js_scratch_store_i32(0, (wasm2js_scratch_store_f32(x), wasm2js_scratch_load_i32(0)) & 2147483647 | 0 | ((wasm2js_scratch_store_f32(y), wasm2js_scratch_load_i32(0)) & -2147483648 | 0) | 0), wasm2js_scratch_load_f32())); + function $13($0_1, $1_1) { + $0_1 = Math_fround($0_1); + $1_1 = Math_fround($1_1); + return Math_fround((wasm2js_scratch_store_i32(0, (wasm2js_scratch_store_f32($0_1), wasm2js_scratch_load_i32(0)) & 2147483647 | 0 | ((wasm2js_scratch_store_f32($1_1), wasm2js_scratch_load_i32(0)) & -2147483648 | 0) | 0), wasm2js_scratch_load_f32())); } - function __wasm_nearest_f32(var$0) { - var$0 = Math_fround(var$0); - var var$1 = Math_fround(0), var$2 = Math_fround(0); - var$1 = Math_fround(Math_floor(var$0)); - var$2 = Math_fround(var$0 - var$1); - if (!(var$2 < Math_fround(.5))) { + function __wasm_nearest_f32($0_1) { + $0_1 = Math_fround($0_1); + var $1_1 = Math_fround(0), $2_1 = Math_fround(0); + $1_1 = Math_fround(Math_floor($0_1)); + $2_1 = Math_fround($0_1 - $1_1); + if (!($2_1 < Math_fround(.5))) { { - var$0 = Math_fround(Math_ceil(var$0)); - if (var$2 > Math_fround(.5)) { - return Math_fround(var$0) + $0_1 = Math_fround(Math_ceil($0_1)); + if ($2_1 > Math_fround(.5)) { + return Math_fround($0_1) } - var$2 = Math_fround(var$1 * Math_fround(.5)); - var$1 = Math_fround(var$2 - Math_fround(Math_floor(var$2))) == Math_fround(0.0) ? var$1 : var$0; + $2_1 = Math_fround($1_1 * Math_fround(.5)); + $1_1 = Math_fround($2_1 - Math_fround(Math_floor($2_1))) == Math_fround(0.0) ? $1_1 : $0_1; } } - return Math_fround(var$1); + return Math_fround($1_1); } - function __wasm_trunc_f32(var$0) { - var$0 = Math_fround(var$0); - return Math_fround(var$0 < Math_fround(0.0) ? Math_fround(Math_ceil(var$0)) : Math_fround(Math_floor(var$0))); + function __wasm_trunc_f32($0_1) { + $0_1 = Math_fround($0_1); + return Math_fround($0_1 < Math_fround(0.0) ? Math_fround(Math_ceil($0_1)) : Math_fround(Math_floor($0_1))); } var FUNCTION_TABLE = []; diff --git a/test/wasm2js/f32_cmp.2asm.js b/test/wasm2js/f32_cmp.2asm.js index 671db639d..763f90b94 100644 --- a/test/wasm2js/f32_cmp.2asm.js +++ b/test/wasm2js/f32_cmp.2asm.js @@ -21,40 +21,40 @@ function asmFunc(global, env, buffer) { var abort = env.abort; var nan = global.NaN; var infinity = global.Infinity; - function $0(x, y) { - x = Math_fround(x); - y = Math_fround(y); - return x == y | 0; + function $0($0_1, $1_1) { + $0_1 = Math_fround($0_1); + $1_1 = Math_fround($1_1); + return $0_1 == $1_1 | 0; } - function $1(x, y) { - x = Math_fround(x); - y = Math_fround(y); - return x != y | 0; + function $1($0_1, $1_1) { + $0_1 = Math_fround($0_1); + $1_1 = Math_fround($1_1); + return $0_1 != $1_1 | 0; } - function $2(x, y) { - x = Math_fround(x); - y = Math_fround(y); - return x < y | 0; + function $2($0_1, $1_1) { + $0_1 = Math_fround($0_1); + $1_1 = Math_fround($1_1); + return $0_1 < $1_1 | 0; } - function $3(x, y) { - x = Math_fround(x); - y = Math_fround(y); - return x <= y | 0; + function $3($0_1, $1_1) { + $0_1 = Math_fround($0_1); + $1_1 = Math_fround($1_1); + return $0_1 <= $1_1 | 0; } - function $4(x, y) { - x = Math_fround(x); - y = Math_fround(y); - return x > y | 0; + function $4($0_1, $1_1) { + $0_1 = Math_fround($0_1); + $1_1 = Math_fround($1_1); + return $0_1 > $1_1 | 0; } - function $5(x, y) { - x = Math_fround(x); - y = Math_fround(y); - return x >= y | 0; + function $5($0_1, $1_1) { + $0_1 = Math_fround($0_1); + $1_1 = Math_fround($1_1); + return $0_1 >= $1_1 | 0; } var FUNCTION_TABLE = []; diff --git a/test/wasm2js/f64.2asm.js b/test/wasm2js/f64.2asm.js index fff7f7c47..58d0c45be 100644 --- a/test/wasm2js/f64.2asm.js +++ b/test/wasm2js/f64.2asm.js @@ -43,128 +43,126 @@ function asmFunc(global, env, buffer) { var abort = env.abort; var nan = global.NaN; var infinity = global.Infinity; - function $0(x, y) { - x = +x; - y = +y; - return +(x + y); + function $0($0_1, $1_1) { + $0_1 = +$0_1; + $1_1 = +$1_1; + return +($0_1 + $1_1); } - function $1(x, y) { - x = +x; - y = +y; - return +(x - y); + function $1($0_1, $1_1) { + $0_1 = +$0_1; + $1_1 = +$1_1; + return +($0_1 - $1_1); } - function $2(x, y) { - x = +x; - y = +y; - return +(x * y); + function $2($0_1, $1_1) { + $0_1 = +$0_1; + $1_1 = +$1_1; + return +($0_1 * $1_1); } - function $3(x, y) { - x = +x; - y = +y; - return +(x / y); + function $3($0_1, $1_1) { + $0_1 = +$0_1; + $1_1 = +$1_1; + return +($0_1 / $1_1); } - function $4(x) { - x = +x; - return +Math_sqrt(x); + function $4($0_1) { + $0_1 = +$0_1; + return +Math_sqrt($0_1); } - function $5(x, y) { - x = +x; - y = +y; - return +Math_min(x, y); + function $5($0_1, $1_1) { + $0_1 = +$0_1; + $1_1 = +$1_1; + return +Math_min($0_1, $1_1); } - function $6(x, y) { - x = +x; - y = +y; - return +Math_max(x, y); + function $6($0_1, $1_1) { + $0_1 = +$0_1; + $1_1 = +$1_1; + return +Math_max($0_1, $1_1); } - function $7(x) { - x = +x; - return +Math_ceil(x); + function $7($0_1) { + $0_1 = +$0_1; + return +Math_ceil($0_1); } - function $8(x) { - x = +x; - return +Math_floor(x); + function $8($0_1) { + $0_1 = +$0_1; + return +Math_floor($0_1); } - function $9(x) { - x = +x; - return +(+__wasm_trunc_f64(+x)); + function $9($0_1) { + $0_1 = +$0_1; + return +(+__wasm_trunc_f64(+$0_1)); } - function $10(x) { - x = +x; - return +(+__wasm_nearest_f64(+x)); + function $10($0_1) { + $0_1 = +$0_1; + return +(+__wasm_nearest_f64(+$0_1)); } - function $11(x) { - x = +x; - return +Math_abs(x); + function $11($0_1) { + $0_1 = +$0_1; + return +Math_abs($0_1); } - function $12(x) { - x = +x; - return +-x; + function $12($0_1) { + $0_1 = +$0_1; + return +-$0_1; } - function $13(x, y) { - x = +x; - y = +y; - var i64toi32_i32$0 = 0, i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $4_1 = 0, $4$hi = 0, $7_1 = 0, $7$hi = 0; - wasm2js_scratch_store_f64(+x); - i64toi32_i32$0 = wasm2js_scratch_load_i32(1 | 0) | 0; - i64toi32_i32$2 = wasm2js_scratch_load_i32(0 | 0) | 0; - i64toi32_i32$1 = 2147483647; - i64toi32_i32$3 = -1; - i64toi32_i32$1 = i64toi32_i32$0 & i64toi32_i32$1 | 0; - $4_1 = i64toi32_i32$2 & i64toi32_i32$3 | 0; - $4$hi = i64toi32_i32$1; - wasm2js_scratch_store_f64(+y); - i64toi32_i32$1 = wasm2js_scratch_load_i32(1 | 0) | 0; - i64toi32_i32$0 = wasm2js_scratch_load_i32(0 | 0) | 0; - i64toi32_i32$2 = -2147483648; - i64toi32_i32$3 = 0; - i64toi32_i32$2 = i64toi32_i32$1 & i64toi32_i32$2 | 0; - $7_1 = i64toi32_i32$0 & i64toi32_i32$3 | 0; - $7$hi = i64toi32_i32$2; - i64toi32_i32$2 = $4$hi; - i64toi32_i32$1 = $4_1; - i64toi32_i32$0 = $7$hi; - i64toi32_i32$3 = $7_1; - i64toi32_i32$0 = i64toi32_i32$2 | i64toi32_i32$0 | 0; - wasm2js_scratch_store_i32(0 | 0, i64toi32_i32$1 | i64toi32_i32$3 | 0 | 0); - wasm2js_scratch_store_i32(1 | 0, i64toi32_i32$0 | 0); + function $13($0_1, $1_1) { + $0_1 = +$0_1; + $1_1 = +$1_1; + var $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0, $6_1 = 0, $7_1 = 0; + wasm2js_scratch_store_f64(+$0_1); + $2_1 = wasm2js_scratch_load_i32(1 | 0) | 0; + $3_1 = wasm2js_scratch_load_i32(0 | 0) | 0; + $4_1 = 2147483647; + $5_1 = -1; + $4_1 = $2_1 & $4_1 | 0; + $6_1 = $3_1 & $5_1 | 0; + $7_1 = $4_1; + wasm2js_scratch_store_f64(+$1_1); + $4_1 = wasm2js_scratch_load_i32(1 | 0) | 0; + $2_1 = wasm2js_scratch_load_i32(0 | 0) | 0; + $3_1 = -2147483648; + $5_1 = 0; + $3_1 = $4_1 & $3_1 | 0; + $5_1 = $2_1 & $5_1 | 0; + $2_1 = $3_1; + $3_1 = $7_1; + $4_1 = $6_1; + $2_1 = $3_1 | $2_1 | 0; + wasm2js_scratch_store_i32(0 | 0, $4_1 | $5_1 | 0 | 0); + wasm2js_scratch_store_i32(1 | 0, $2_1 | 0); return +(+wasm2js_scratch_load_f64()); } - function __wasm_nearest_f64(var$0) { - var$0 = +var$0; - var var$1 = 0.0, var$2 = 0.0; - var$1 = Math_floor(var$0); - var$2 = var$0 - var$1; - if (!(var$2 < .5)) { + function __wasm_nearest_f64($0_1) { + $0_1 = +$0_1; + var $1_1 = 0.0, $2_1 = 0.0; + $1_1 = Math_floor($0_1); + $2_1 = $0_1 - $1_1; + if (!($2_1 < .5)) { { - var$0 = Math_ceil(var$0); - if (var$2 > .5) { - return +var$0 + $0_1 = Math_ceil($0_1); + if ($2_1 > .5) { + return +$0_1 } - var$2 = var$1 * .5; - var$1 = var$2 - Math_floor(var$2) == 0.0 ? var$1 : var$0; + $2_1 = $1_1 * .5; + $1_1 = $2_1 - Math_floor($2_1) == 0.0 ? $1_1 : $0_1; } } - return +var$1; + return +$1_1; } - function __wasm_trunc_f64(var$0) { - var$0 = +var$0; - return +(var$0 < 0.0 ? Math_ceil(var$0) : Math_floor(var$0)); + function __wasm_trunc_f64($0_1) { + $0_1 = +$0_1; + return +($0_1 < 0.0 ? Math_ceil($0_1) : Math_floor($0_1)); } var FUNCTION_TABLE = []; diff --git a/test/wasm2js/f64_cmp.2asm.js b/test/wasm2js/f64_cmp.2asm.js index 1d1c10c6b..31e138c36 100644 --- a/test/wasm2js/f64_cmp.2asm.js +++ b/test/wasm2js/f64_cmp.2asm.js @@ -21,40 +21,40 @@ function asmFunc(global, env, buffer) { var abort = env.abort; var nan = global.NaN; var infinity = global.Infinity; - function $0(x, y) { - x = +x; - y = +y; - return x == y | 0; + function $0($0_1, $1_1) { + $0_1 = +$0_1; + $1_1 = +$1_1; + return $0_1 == $1_1 | 0; } - function $1(x, y) { - x = +x; - y = +y; - return x != y | 0; + function $1($0_1, $1_1) { + $0_1 = +$0_1; + $1_1 = +$1_1; + return $0_1 != $1_1 | 0; } - function $2(x, y) { - x = +x; - y = +y; - return x < y | 0; + function $2($0_1, $1_1) { + $0_1 = +$0_1; + $1_1 = +$1_1; + return $0_1 < $1_1 | 0; } - function $3(x, y) { - x = +x; - y = +y; - return x <= y | 0; + function $3($0_1, $1_1) { + $0_1 = +$0_1; + $1_1 = +$1_1; + return $0_1 <= $1_1 | 0; } - function $4(x, y) { - x = +x; - y = +y; - return x > y | 0; + function $4($0_1, $1_1) { + $0_1 = +$0_1; + $1_1 = +$1_1; + return $0_1 > $1_1 | 0; } - function $5(x, y) { - x = +x; - y = +y; - return x >= y | 0; + function $5($0_1, $1_1) { + $0_1 = +$0_1; + $1_1 = +$1_1; + return $0_1 >= $1_1 | 0; } var FUNCTION_TABLE = []; diff --git a/test/wasm2js/fac.2asm.js b/test/wasm2js/fac.2asm.js index 8b712028b..ef513191b 100644 --- a/test/wasm2js/fac.2asm.js +++ b/test/wasm2js/fac.2asm.js @@ -24,619 +24,498 @@ function asmFunc(global, env, buffer) { var infinity = global.Infinity; var setTempRet0 = env.setTempRet0; var i64toi32_i32$HIGH_BITS = 0; - function $0($0_1, $0$hi) { + function $0($0_1, $1) { $0_1 = $0_1 | 0; - $0$hi = $0$hi | 0; - var i64toi32_i32$3 = 0, i64toi32_i32$5 = 0, i64toi32_i32$1 = 0, $8 = 0, $8$hi = 0, $6 = 0, $6$hi = 0; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 0; - if (($0_1 | 0) == (i64toi32_i32$3 | 0) & ($0$hi | 0) == (i64toi32_i32$1 | 0) | 0) { + $1 = $1 | 0; + var $2_1 = 0, $3_1 = 0, $4_1 = 0; + $4_1 = 0; + $3_1 = 0; + if (($0_1 | 0) == ($3_1 | 0) & ($1 | 0) == ($4_1 | 0) | 0) { { - $8 = 1; - $8$hi = 0; + $2_1 = 1; + $3_1 = 0; } } else { { - i64toi32_i32$3 = $0_1; - i64toi32_i32$1 = 1; - i64toi32_i32$5 = (i64toi32_i32$3 >>> 0 < i64toi32_i32$1 >>> 0) + 0 | 0; - i64toi32_i32$5 = $0$hi - i64toi32_i32$5 | 0; - i64toi32_i32$5 = $0(i64toi32_i32$3 - i64toi32_i32$1 | 0 | 0, i64toi32_i32$5 | 0) | 0; - i64toi32_i32$3 = i64toi32_i32$HIGH_BITS; - $6 = i64toi32_i32$5; - $6$hi = i64toi32_i32$3; - i64toi32_i32$3 = $0$hi; - i64toi32_i32$5 = $6$hi; - i64toi32_i32$5 = __wasm_i64_mul($0_1 | 0, $0$hi | 0, $6 | 0, i64toi32_i32$5 | 0) | 0; - i64toi32_i32$3 = i64toi32_i32$HIGH_BITS; - $8 = i64toi32_i32$5; - $8$hi = i64toi32_i32$3; + $3_1 = $0_1; + $4_1 = 1; + $2_1 = ($3_1 >>> 0 < $4_1 >>> 0) + 0 | 0; + $2_1 = $1 - $2_1 | 0; + $2_1 = $0($3_1 - $4_1 | 0 | 0, $2_1 | 0) | 0; + $3_1 = i64toi32_i32$HIGH_BITS; + $4_1 = $2_1; + $2_1 = $3_1; + $2_1 = __wasm_i64_mul($0_1 | 0, $1 | 0, $4_1 | 0, $2_1 | 0) | 0; + $3_1 = i64toi32_i32$HIGH_BITS; } } - i64toi32_i32$3 = $8$hi; - i64toi32_i32$5 = $8; - i64toi32_i32$HIGH_BITS = i64toi32_i32$3; - return i64toi32_i32$5 | 0; + i64toi32_i32$HIGH_BITS = $3_1; + return $2_1 | 0; } - function fac_rec_named(n, n$hi) { - n = n | 0; - n$hi = n$hi | 0; - var i64toi32_i32$3 = 0, i64toi32_i32$5 = 0, i64toi32_i32$1 = 0, $8 = 0, $8$hi = 0, $6 = 0, $6$hi = 0; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 0; - if ((n | 0) == (i64toi32_i32$3 | 0) & (n$hi | 0) == (i64toi32_i32$1 | 0) | 0) { + function fac_rec_named($0_1, $1) { + $0_1 = $0_1 | 0; + $1 = $1 | 0; + var $2_1 = 0, $3_1 = 0, $4_1 = 0; + $4_1 = 0; + $3_1 = 0; + if (($0_1 | 0) == ($3_1 | 0) & ($1 | 0) == ($4_1 | 0) | 0) { { - $8 = 1; - $8$hi = 0; + $2_1 = 1; + $3_1 = 0; } } else { { - i64toi32_i32$3 = n; - i64toi32_i32$1 = 1; - i64toi32_i32$5 = (i64toi32_i32$3 >>> 0 < i64toi32_i32$1 >>> 0) + 0 | 0; - i64toi32_i32$5 = n$hi - i64toi32_i32$5 | 0; - i64toi32_i32$5 = fac_rec_named(i64toi32_i32$3 - i64toi32_i32$1 | 0 | 0, i64toi32_i32$5 | 0) | 0; - i64toi32_i32$3 = i64toi32_i32$HIGH_BITS; - $6 = i64toi32_i32$5; - $6$hi = i64toi32_i32$3; - i64toi32_i32$3 = n$hi; - i64toi32_i32$5 = $6$hi; - i64toi32_i32$5 = __wasm_i64_mul(n | 0, n$hi | 0, $6 | 0, i64toi32_i32$5 | 0) | 0; - i64toi32_i32$3 = i64toi32_i32$HIGH_BITS; - $8 = i64toi32_i32$5; - $8$hi = i64toi32_i32$3; + $3_1 = $0_1; + $4_1 = 1; + $2_1 = ($3_1 >>> 0 < $4_1 >>> 0) + 0 | 0; + $2_1 = $1 - $2_1 | 0; + $2_1 = fac_rec_named($3_1 - $4_1 | 0 | 0, $2_1 | 0) | 0; + $3_1 = i64toi32_i32$HIGH_BITS; + $4_1 = $2_1; + $2_1 = $3_1; + $2_1 = __wasm_i64_mul($0_1 | 0, $1 | 0, $4_1 | 0, $2_1 | 0) | 0; + $3_1 = i64toi32_i32$HIGH_BITS; } } - i64toi32_i32$3 = $8$hi; - i64toi32_i32$5 = $8; - i64toi32_i32$HIGH_BITS = i64toi32_i32$3; - return i64toi32_i32$5 | 0; + i64toi32_i32$HIGH_BITS = $3_1; + return $2_1 | 0; } - function $2($0_1, $0$hi) { + function $2($0_1, $1) { $0_1 = $0_1 | 0; - $0$hi = $0$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$2 = 0, i64toi32_i32$3 = 0, $1$hi = 0, i64toi32_i32$5 = 0, $1 = 0, $2$hi = 0, i64toi32_i32$1 = 0, $2_1 = 0; - i64toi32_i32$0 = $0$hi; - $1 = $0_1; - $1$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - $2_1 = 1; - $2$hi = i64toi32_i32$0; + $1 = $1 | 0; + var $2_1 = 0, $3_1 = 0, $4_1 = 0, $5 = 0, $6 = 0, $7 = 0; + $4_1 = $0_1; + $0_1 = $1; + $1 = 0; + $7 = 1; + $5 = $1; block : { loop_in : while (1) { - i64toi32_i32$0 = $1$hi; - i64toi32_i32$2 = $1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 0; - if ((i64toi32_i32$2 | 0) == (i64toi32_i32$3 | 0) & (i64toi32_i32$0 | 0) == (i64toi32_i32$1 | 0) | 0) { + $1 = $0_1; + $2_1 = $4_1; + $6 = 0; + $3_1 = 0; + if (($2_1 | 0) == ($3_1 | 0) & ($1 | 0) == ($6 | 0) | 0) { break block } else { { - i64toi32_i32$2 = $1$hi; - i64toi32_i32$2 = $2$hi; - i64toi32_i32$2 = $1$hi; - i64toi32_i32$0 = $2$hi; - i64toi32_i32$0 = __wasm_i64_mul($1 | 0, i64toi32_i32$2 | 0, $2_1 | 0, i64toi32_i32$0 | 0) | 0; - i64toi32_i32$2 = i64toi32_i32$HIGH_BITS; - $2_1 = i64toi32_i32$0; - $2$hi = i64toi32_i32$2; - i64toi32_i32$2 = $1$hi; - i64toi32_i32$3 = $1; - i64toi32_i32$0 = 0; - i64toi32_i32$1 = 1; - i64toi32_i32$5 = (i64toi32_i32$3 >>> 0 < i64toi32_i32$1 >>> 0) + i64toi32_i32$0 | 0; - i64toi32_i32$5 = i64toi32_i32$2 - i64toi32_i32$5 | 0; - $1 = i64toi32_i32$3 - i64toi32_i32$1 | 0; - $1$hi = i64toi32_i32$5; + $2_1 = $0_1; + $1 = $5; + $1 = __wasm_i64_mul($4_1 | 0, $2_1 | 0, $7 | 0, $1 | 0) | 0; + $2_1 = i64toi32_i32$HIGH_BITS; + $7 = $1; + $5 = $2_1; + $2_1 = $0_1; + $3_1 = $4_1; + $1 = 0; + $6 = 1; + $0_1 = ($3_1 >>> 0 < $6 >>> 0) + $1 | 0; + $0_1 = $2_1 - $0_1 | 0; + $4_1 = $3_1 - $6 | 0; } } continue loop_in; }; } - i64toi32_i32$5 = $2$hi; - i64toi32_i32$3 = $2_1; - i64toi32_i32$HIGH_BITS = i64toi32_i32$5; - return i64toi32_i32$3 | 0; + $0_1 = $5; + $3_1 = $7; + i64toi32_i32$HIGH_BITS = $0_1; + return $3_1 | 0; } - function $3(n, n$hi) { - n = n | 0; - n$hi = n$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$2 = 0, i64toi32_i32$3 = 0, i$hi = 0, i64toi32_i32$5 = 0, i = 0, res$hi = 0, i64toi32_i32$1 = 0, res = 0; - i64toi32_i32$0 = n$hi; - i = n; - i$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - res = 1; - res$hi = i64toi32_i32$0; + function $3($0_1, $1) { + $0_1 = $0_1 | 0; + $1 = $1 | 0; + var $2_1 = 0, $3_1 = 0, $4_1 = 0, $5 = 0, $6 = 0, $7 = 0; + $4_1 = $0_1; + $0_1 = $1; + $1 = 0; + $7 = 1; + $5 = $1; done : { loop : while (1) { - i64toi32_i32$0 = i$hi; - i64toi32_i32$2 = i; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 0; - if ((i64toi32_i32$2 | 0) == (i64toi32_i32$3 | 0) & (i64toi32_i32$0 | 0) == (i64toi32_i32$1 | 0) | 0) { + $1 = $0_1; + $2_1 = $4_1; + $6 = 0; + $3_1 = 0; + if (($2_1 | 0) == ($3_1 | 0) & ($1 | 0) == ($6 | 0) | 0) { break done } else { { - i64toi32_i32$2 = i$hi; - i64toi32_i32$2 = res$hi; - i64toi32_i32$2 = i$hi; - i64toi32_i32$0 = res$hi; - i64toi32_i32$0 = __wasm_i64_mul(i | 0, i64toi32_i32$2 | 0, res | 0, i64toi32_i32$0 | 0) | 0; - i64toi32_i32$2 = i64toi32_i32$HIGH_BITS; - res = i64toi32_i32$0; - res$hi = i64toi32_i32$2; - i64toi32_i32$2 = i$hi; - i64toi32_i32$3 = i; - i64toi32_i32$0 = 0; - i64toi32_i32$1 = 1; - i64toi32_i32$5 = (i64toi32_i32$3 >>> 0 < i64toi32_i32$1 >>> 0) + i64toi32_i32$0 | 0; - i64toi32_i32$5 = i64toi32_i32$2 - i64toi32_i32$5 | 0; - i = i64toi32_i32$3 - i64toi32_i32$1 | 0; - i$hi = i64toi32_i32$5; + $2_1 = $0_1; + $1 = $5; + $1 = __wasm_i64_mul($4_1 | 0, $2_1 | 0, $7 | 0, $1 | 0) | 0; + $2_1 = i64toi32_i32$HIGH_BITS; + $7 = $1; + $5 = $2_1; + $2_1 = $0_1; + $3_1 = $4_1; + $1 = 0; + $6 = 1; + $0_1 = ($3_1 >>> 0 < $6 >>> 0) + $1 | 0; + $0_1 = $2_1 - $0_1 | 0; + $4_1 = $3_1 - $6 | 0; } } continue loop; }; } - i64toi32_i32$5 = res$hi; - i64toi32_i32$3 = res; - i64toi32_i32$HIGH_BITS = i64toi32_i32$5; - return i64toi32_i32$3 | 0; + $0_1 = $5; + $3_1 = $7; + i64toi32_i32$HIGH_BITS = $0_1; + return $3_1 | 0; } - function $4($0_1, $0$hi) { + function $4($0_1, $1) { $0_1 = $0_1 | 0; - $0$hi = $0$hi | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$5 = 0, i64toi32_i32$3 = 0, $1$hi = 0, $1 = 0, $10 = 0, $11 = 0, $12 = 0, i64toi32_i32$4 = 0, $13 = 0, $14 = 0, $15 = 0; - i64toi32_i32$0 = 0; - $1 = 1; - $1$hi = i64toi32_i32$0; - block : { - i64toi32_i32$0 = $0$hi; - i64toi32_i32$2 = $0_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 2; - if ((i64toi32_i32$0 | 0) < (i64toi32_i32$1 | 0)) { - $10 = 1 - } else { - { - if ((i64toi32_i32$0 | 0) <= (i64toi32_i32$1 | 0)) { - { - if (i64toi32_i32$2 >>> 0 >= i64toi32_i32$3 >>> 0) { - $11 = 0 - } else { - $11 = 1 - } - $12 = $11; - } - } else { - $12 = 0 - } - $10 = $12; + $1 = $1 | 0; + var $2_1 = 0, $3_1 = 0, $4_1 = 0, $5 = 0, $6 = 0, $7 = 0; + $3_1 = 0; + $7 = 1; + $5 = $3_1; + $3_1 = $1; + $2_1 = $0_1; + $4_1 = 0; + $6 = 2; + if (($3_1 | 0) < ($4_1 | 0)) { + $2_1 = 1 + } else { + if (($3_1 | 0) <= ($4_1 | 0)) { + if ($2_1 >>> 0 >= $6 >>> 0) { + $2_1 = 0 + } else { + $2_1 = 1 } + } else { + $2_1 = 0 } - if ($10) { + } + block : { + if ($2_1) { break block } loop_in : while (1) { - i64toi32_i32$2 = $1$hi; - i64toi32_i32$2 = $0$hi; - i64toi32_i32$2 = $1$hi; - i64toi32_i32$0 = $0$hi; - i64toi32_i32$0 = __wasm_i64_mul($1 | 0, i64toi32_i32$2 | 0, $0_1 | 0, i64toi32_i32$0 | 0) | 0; - i64toi32_i32$2 = i64toi32_i32$HIGH_BITS; - $1 = i64toi32_i32$0; - $1$hi = i64toi32_i32$2; - i64toi32_i32$2 = $0$hi; - i64toi32_i32$3 = $0_1; - i64toi32_i32$0 = -1; - i64toi32_i32$1 = -1; - i64toi32_i32$4 = $0_1 + i64toi32_i32$1 | 0; - i64toi32_i32$5 = i64toi32_i32$2 + i64toi32_i32$0 | 0; - if (i64toi32_i32$4 >>> 0 < i64toi32_i32$1 >>> 0) { - i64toi32_i32$5 = i64toi32_i32$5 + 1 | 0 + $2_1 = $5; + $3_1 = $1; + $3_1 = __wasm_i64_mul($7 | 0, $2_1 | 0, $0_1 | 0, $3_1 | 0) | 0; + $2_1 = i64toi32_i32$HIGH_BITS; + $7 = $3_1; + $5 = $2_1; + $2_1 = $1; + $3_1 = -1; + $4_1 = -1; + $0_1 = $0_1 + $4_1 | 0; + $3_1 = $2_1 + $3_1 | 0; + if ($0_1 >>> 0 < $4_1 >>> 0) { + $3_1 = $3_1 + 1 | 0 } - $0_1 = i64toi32_i32$4; - $0$hi = i64toi32_i32$5; - i64toi32_i32$2 = $0_1; - i64toi32_i32$3 = 0; - i64toi32_i32$1 = 1; - if ((i64toi32_i32$5 | 0) > (i64toi32_i32$3 | 0)) { - $13 = 1 + $1 = $3_1; + $2_1 = $0_1; + $6 = 0; + $4_1 = 1; + if (($3_1 | 0) > ($6 | 0)) { + $2_1 = 1 } else { - { - if ((i64toi32_i32$5 | 0) >= (i64toi32_i32$3 | 0)) { - { - if (i64toi32_i32$2 >>> 0 <= i64toi32_i32$1 >>> 0) { - $14 = 0 - } else { - $14 = 1 - } - $15 = $14; - } + if (($3_1 | 0) >= ($6 | 0)) { + if ($2_1 >>> 0 <= $4_1 >>> 0) { + $2_1 = 0 } else { - $15 = 0 + $2_1 = 1 } - $13 = $15; + } else { + $2_1 = 0 } } - if ($13) { + if ($2_1) { continue loop_in } break loop_in; }; } - i64toi32_i32$2 = $1$hi; - i64toi32_i32$5 = $1; - i64toi32_i32$HIGH_BITS = i64toi32_i32$2; - return i64toi32_i32$5 | 0; + $2_1 = $5; + $3_1 = $7; + i64toi32_i32$HIGH_BITS = $2_1; + return $3_1 | 0; } function legalstub$0($0_1, $1) { $0_1 = $0_1 | 0; $1 = $1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12 = 0, $13 = 0, $4_1 = 0, $4$hi = 0, $7$hi = 0, $2_1 = 0, $2$hi = 0; - i64toi32_i32$0 = 0; - $4_1 = $0_1; - $4$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $2_1 = 0, $3_1 = 0, $4_1 = 0, $5 = 0, $6 = 0; + $3_1 = 0; + $5 = $0_1; + $6 = $3_1; + $3_1 = 0; + $4_1 = 32; + $2_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $12 = 0; + $0_1 = $1 << $2_1 | 0; + $4_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $12 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $0_1 = ((1 << $2_1 | 0) - 1 | 0) & ($1 >>> (32 - $2_1 | 0) | 0) | 0 | ($3_1 << $2_1 | 0) | 0; + $4_1 = $1 << $2_1 | 0; } } - $7$hi = i64toi32_i32$1; - i64toi32_i32$1 = $4$hi; - i64toi32_i32$0 = $4_1; - i64toi32_i32$2 = $7$hi; - i64toi32_i32$3 = $12; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - i64toi32_i32$2 = $0(i64toi32_i32$0 | i64toi32_i32$3 | 0 | 0, i64toi32_i32$2 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $2_1 = i64toi32_i32$2; - $2$hi = i64toi32_i32$0; - i64toi32_i32$1 = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $13 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + $1 = $0_1; + $0_1 = $6; + $3_1 = $5; + $1 = $0_1 | $1 | 0; + $1 = $0($3_1 | $4_1 | 0 | 0, $1 | 0) | 0; + $3_1 = i64toi32_i32$HIGH_BITS; + $6 = $1; + $5 = $3_1; + $0_1 = $1; + $4_1 = 32; + $2_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { + $0_1 = $3_1 >>> $2_1 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $13 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$1 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $2_1 | 0) - 1 | 0) & $3_1 | 0) << (32 - $2_1 | 0) | 0 | ($0_1 >>> $2_1 | 0) | 0 } - setTempRet0($13 | 0); - i64toi32_i32$2 = $2$hi; - return $2_1 | 0; + setTempRet0($0_1 | 0); + return $6 | 0; } function legalstub$fac_rec_named($0_1, $1) { $0_1 = $0_1 | 0; $1 = $1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12 = 0, $13 = 0, $4_1 = 0, $4$hi = 0, $7$hi = 0, $2_1 = 0, $2$hi = 0; - i64toi32_i32$0 = 0; - $4_1 = $0_1; - $4$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $2_1 = 0, $3_1 = 0, $4_1 = 0, $5 = 0, $6 = 0; + $3_1 = 0; + $5 = $0_1; + $6 = $3_1; + $3_1 = 0; + $4_1 = 32; + $2_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $12 = 0; + $0_1 = $1 << $2_1 | 0; + $4_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $12 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $0_1 = ((1 << $2_1 | 0) - 1 | 0) & ($1 >>> (32 - $2_1 | 0) | 0) | 0 | ($3_1 << $2_1 | 0) | 0; + $4_1 = $1 << $2_1 | 0; } } - $7$hi = i64toi32_i32$1; - i64toi32_i32$1 = $4$hi; - i64toi32_i32$0 = $4_1; - i64toi32_i32$2 = $7$hi; - i64toi32_i32$3 = $12; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - i64toi32_i32$2 = fac_rec_named(i64toi32_i32$0 | i64toi32_i32$3 | 0 | 0, i64toi32_i32$2 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $2_1 = i64toi32_i32$2; - $2$hi = i64toi32_i32$0; - i64toi32_i32$1 = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $13 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + $1 = $0_1; + $0_1 = $6; + $3_1 = $5; + $1 = $0_1 | $1 | 0; + $1 = fac_rec_named($3_1 | $4_1 | 0 | 0, $1 | 0) | 0; + $3_1 = i64toi32_i32$HIGH_BITS; + $6 = $1; + $5 = $3_1; + $0_1 = $1; + $4_1 = 32; + $2_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { + $0_1 = $3_1 >>> $2_1 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $13 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$1 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $2_1 | 0) - 1 | 0) & $3_1 | 0) << (32 - $2_1 | 0) | 0 | ($0_1 >>> $2_1 | 0) | 0 } - setTempRet0($13 | 0); - i64toi32_i32$2 = $2$hi; - return $2_1 | 0; + setTempRet0($0_1 | 0); + return $6 | 0; } function legalstub$2($0_1, $1) { $0_1 = $0_1 | 0; $1 = $1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12 = 0, $13 = 0, $4_1 = 0, $4$hi = 0, $7$hi = 0, $2_1 = 0, $2$hi = 0; - i64toi32_i32$0 = 0; - $4_1 = $0_1; - $4$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $2_1 = 0, $3_1 = 0, $4_1 = 0, $5 = 0, $6 = 0; + $3_1 = 0; + $5 = $0_1; + $6 = $3_1; + $3_1 = 0; + $4_1 = 32; + $2_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $12 = 0; + $0_1 = $1 << $2_1 | 0; + $4_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $12 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $0_1 = ((1 << $2_1 | 0) - 1 | 0) & ($1 >>> (32 - $2_1 | 0) | 0) | 0 | ($3_1 << $2_1 | 0) | 0; + $4_1 = $1 << $2_1 | 0; } } - $7$hi = i64toi32_i32$1; - i64toi32_i32$1 = $4$hi; - i64toi32_i32$0 = $4_1; - i64toi32_i32$2 = $7$hi; - i64toi32_i32$3 = $12; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - i64toi32_i32$2 = $2(i64toi32_i32$0 | i64toi32_i32$3 | 0 | 0, i64toi32_i32$2 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $2_1 = i64toi32_i32$2; - $2$hi = i64toi32_i32$0; - i64toi32_i32$1 = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $13 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + $1 = $0_1; + $0_1 = $6; + $3_1 = $5; + $1 = $0_1 | $1 | 0; + $1 = $2($3_1 | $4_1 | 0 | 0, $1 | 0) | 0; + $3_1 = i64toi32_i32$HIGH_BITS; + $6 = $1; + $5 = $3_1; + $0_1 = $1; + $4_1 = 32; + $2_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { + $0_1 = $3_1 >>> $2_1 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $13 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$1 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $2_1 | 0) - 1 | 0) & $3_1 | 0) << (32 - $2_1 | 0) | 0 | ($0_1 >>> $2_1 | 0) | 0 } - setTempRet0($13 | 0); - i64toi32_i32$2 = $2$hi; - return $2_1 | 0; + setTempRet0($0_1 | 0); + return $6 | 0; } function legalstub$3($0_1, $1) { $0_1 = $0_1 | 0; $1 = $1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12 = 0, $13 = 0, $4_1 = 0, $4$hi = 0, $7$hi = 0, $2_1 = 0, $2$hi = 0; - i64toi32_i32$0 = 0; - $4_1 = $0_1; - $4$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $2_1 = 0, $3_1 = 0, $4_1 = 0, $5 = 0, $6 = 0; + $3_1 = 0; + $5 = $0_1; + $6 = $3_1; + $3_1 = 0; + $4_1 = 32; + $2_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $12 = 0; + $0_1 = $1 << $2_1 | 0; + $4_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $12 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $0_1 = ((1 << $2_1 | 0) - 1 | 0) & ($1 >>> (32 - $2_1 | 0) | 0) | 0 | ($3_1 << $2_1 | 0) | 0; + $4_1 = $1 << $2_1 | 0; } } - $7$hi = i64toi32_i32$1; - i64toi32_i32$1 = $4$hi; - i64toi32_i32$0 = $4_1; - i64toi32_i32$2 = $7$hi; - i64toi32_i32$3 = $12; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - i64toi32_i32$2 = $3(i64toi32_i32$0 | i64toi32_i32$3 | 0 | 0, i64toi32_i32$2 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $2_1 = i64toi32_i32$2; - $2$hi = i64toi32_i32$0; - i64toi32_i32$1 = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $13 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + $1 = $0_1; + $0_1 = $6; + $3_1 = $5; + $1 = $0_1 | $1 | 0; + $1 = $3($3_1 | $4_1 | 0 | 0, $1 | 0) | 0; + $3_1 = i64toi32_i32$HIGH_BITS; + $6 = $1; + $5 = $3_1; + $0_1 = $1; + $4_1 = 32; + $2_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { + $0_1 = $3_1 >>> $2_1 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $13 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$1 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $2_1 | 0) - 1 | 0) & $3_1 | 0) << (32 - $2_1 | 0) | 0 | ($0_1 >>> $2_1 | 0) | 0 } - setTempRet0($13 | 0); - i64toi32_i32$2 = $2$hi; - return $2_1 | 0; + setTempRet0($0_1 | 0); + return $6 | 0; } function legalstub$4($0_1, $1) { $0_1 = $0_1 | 0; $1 = $1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12 = 0, $13 = 0, $4_1 = 0, $4$hi = 0, $7$hi = 0, $2_1 = 0, $2$hi = 0; - i64toi32_i32$0 = 0; - $4_1 = $0_1; - $4$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $2_1 = 0, $3_1 = 0, $4_1 = 0, $5 = 0, $6 = 0; + $3_1 = 0; + $5 = $0_1; + $6 = $3_1; + $3_1 = 0; + $4_1 = 32; + $2_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $12 = 0; + $0_1 = $1 << $2_1 | 0; + $4_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $12 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $0_1 = ((1 << $2_1 | 0) - 1 | 0) & ($1 >>> (32 - $2_1 | 0) | 0) | 0 | ($3_1 << $2_1 | 0) | 0; + $4_1 = $1 << $2_1 | 0; } } - $7$hi = i64toi32_i32$1; - i64toi32_i32$1 = $4$hi; - i64toi32_i32$0 = $4_1; - i64toi32_i32$2 = $7$hi; - i64toi32_i32$3 = $12; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - i64toi32_i32$2 = $4(i64toi32_i32$0 | i64toi32_i32$3 | 0 | 0, i64toi32_i32$2 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $2_1 = i64toi32_i32$2; - $2$hi = i64toi32_i32$0; - i64toi32_i32$1 = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $13 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + $1 = $0_1; + $0_1 = $6; + $3_1 = $5; + $1 = $0_1 | $1 | 0; + $1 = $4($3_1 | $4_1 | 0 | 0, $1 | 0) | 0; + $3_1 = i64toi32_i32$HIGH_BITS; + $6 = $1; + $5 = $3_1; + $0_1 = $1; + $4_1 = 32; + $2_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { + $0_1 = $3_1 >>> $2_1 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $13 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$1 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $2_1 | 0) - 1 | 0) & $3_1 | 0) << (32 - $2_1 | 0) | 0 | ($0_1 >>> $2_1 | 0) | 0 } - setTempRet0($13 | 0); - i64toi32_i32$2 = $2$hi; - return $2_1 | 0; + setTempRet0($0_1 | 0); + return $6 | 0; } - function _ZN17compiler_builtins3int3mul3Mul3mul17h070e9a1c69faec5bE(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; - var i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, var$2 = 0, i64toi32_i32$2 = 0, i64toi32_i32$3 = 0, var$3 = 0, var$4 = 0, var$5 = 0, $21 = 0, $22 = 0, var$6 = 0, $24 = 0, $17 = 0, $18 = 0, $23 = 0, $29 = 0, $45 = 0, $56$hi = 0, $62$hi = 0; - i64toi32_i32$0 = var$1$hi; - var$2 = var$1; - var$4 = var$2 >>> 16 | 0; - i64toi32_i32$0 = var$0$hi; - var$3 = var$0; - var$5 = var$3 >>> 16 | 0; - $17 = Math_imul(var$4, var$5); - $18 = var$2; - i64toi32_i32$2 = var$3; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = 0; - $21 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + function _ZN17compiler_builtins3int3mul3Mul3mul17h070e9a1c69faec5bE($0_1, $1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1 = $1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + var $4_1 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $10 = 0, $11 = 0; + $5 = $2_1; + $9 = $5 >>> 16 | 0; + $10 = $0_1 >>> 16 | 0; + $11 = Math_imul($9, $10); + $8 = $5; + $6 = $0_1; + $7 = 32; + $4_1 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { + $1 = $1 >>> $4_1 | 0 } else { - { - i64toi32_i32$1 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $21 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $1 = (((1 << $4_1 | 0) - 1 | 0) & $1 | 0) << (32 - $4_1 | 0) | 0 | ($6 >>> $4_1 | 0) | 0 } - $23 = $17 + Math_imul($18, $21) | 0; - i64toi32_i32$1 = var$1$hi; - i64toi32_i32$0 = var$1; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $22 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + $6 = $11 + Math_imul($8, $1) | 0; + $1 = $2_1; + $7 = 32; + $4_1 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { + $1 = $3_1 >>> $4_1 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $22 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$0 >>> i64toi32_i32$4 | 0) | 0; - } + $1 = (((1 << $4_1 | 0) - 1 | 0) & $3_1 | 0) << (32 - $4_1 | 0) | 0 | ($1 >>> $4_1 | 0) | 0 } - $29 = $23 + Math_imul($22, var$3) | 0; - var$2 = var$2 & 65535 | 0; - var$3 = var$3 & 65535 | 0; - var$6 = Math_imul(var$2, var$3); - var$2 = (var$6 >>> 16 | 0) + Math_imul(var$2, var$5) | 0; - $45 = $29 + (var$2 >>> 16 | 0) | 0; - var$2 = (var$2 & 65535 | 0) + Math_imul(var$4, var$3) | 0; - i64toi32_i32$2 = 0; - i64toi32_i32$1 = $45 + (var$2 >>> 16 | 0) | 0; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + $1 = $6 + Math_imul($1, $0_1) | 0; + $5 = $5 & 65535 | 0; + $0_1 = $0_1 & 65535 | 0; + $8 = Math_imul($5, $0_1); + $5 = ($8 >>> 16 | 0) + Math_imul($5, $10) | 0; + $1 = $1 + ($5 >>> 16 | 0) | 0; + $5 = ($5 & 65535 | 0) + Math_imul($9, $0_1) | 0; + $6 = 0; + $3_1 = $1 + ($5 >>> 16 | 0) | 0; + $7 = 32; + $4_1 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$0 = i64toi32_i32$1 << i64toi32_i32$4 | 0; - $24 = 0; + $1 = $3_1 << $4_1 | 0; + $6 = 0; } } else { { - i64toi32_i32$0 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$1 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$2 << i64toi32_i32$4 | 0) | 0; - $24 = i64toi32_i32$1 << i64toi32_i32$4 | 0; + $1 = ((1 << $4_1 | 0) - 1 | 0) & ($3_1 >>> (32 - $4_1 | 0) | 0) | 0 | ($6 << $4_1 | 0) | 0; + $6 = $3_1 << $4_1 | 0; } } - $56$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - $62$hi = i64toi32_i32$0; - i64toi32_i32$0 = $56$hi; - i64toi32_i32$2 = $24; - i64toi32_i32$1 = $62$hi; - i64toi32_i32$3 = var$2 << 16 | 0 | (var$6 & 65535 | 0) | 0; - i64toi32_i32$1 = i64toi32_i32$0 | i64toi32_i32$1 | 0; - i64toi32_i32$2 = i64toi32_i32$2 | i64toi32_i32$3 | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$2 | 0; + $0_1 = $1; + $1 = 0; + $2_1 = $1; + $1 = $0_1; + $3_1 = $2_1; + $7 = $5 << 16 | 0 | ($8 & 65535 | 0) | 0; + $3_1 = $1 | $3_1 | 0; + $6 = $6 | $7 | 0; + i64toi32_i32$HIGH_BITS = $3_1; + return $6 | 0; } - function __wasm_i64_mul(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$0 = var$1$hi; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = _ZN17compiler_builtins3int3mul3Mul3mul17h070e9a1c69faec5bE(var$0 | 0, i64toi32_i32$0 | 0, var$1 | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + function __wasm_i64_mul($0_1, $1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1 = $1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + $3_1 = _ZN17compiler_builtins3int3mul3Mul3mul17h070e9a1c69faec5bE($0_1 | 0, $1 | 0, $2_1 | 0, $3_1 | 0) | 0; + $1 = i64toi32_i32$HIGH_BITS; + i64toi32_i32$HIGH_BITS = $1; + return $3_1 | 0; } var FUNCTION_TABLE = []; diff --git a/test/wasm2js/float-ops.2asm.js b/test/wasm2js/float-ops.2asm.js index 93d79f7e5..0c34582b5 100644 --- a/test/wasm2js/float-ops.2asm.js +++ b/test/wasm2js/float-ops.2asm.js @@ -245,244 +245,196 @@ function asmFunc(global, env, buffer) { return ~~$0 >>> 0 | 0; } - function $43($0, $0$hi) { + function $43($0, $1_1) { $0 = $0 | 0; - $0$hi = $0$hi | 0; - var i64toi32_i32$0 = 0; - i64toi32_i32$0 = $0$hi; - return Math_fround(Math_fround(+($0 >>> 0) + 4294967296.0 * +(i64toi32_i32$0 | 0))); + $1_1 = $1_1 | 0; + return Math_fround(Math_fround(+($0 >>> 0) + 4294967296.0 * +($1_1 | 0))); } - function $44($0, $0$hi) { + function $44($0, $1_1) { $0 = $0 | 0; - $0$hi = $0$hi | 0; - var i64toi32_i32$0 = 0; - i64toi32_i32$0 = $0$hi; - return +(+($0 >>> 0) + 4294967296.0 * +(i64toi32_i32$0 | 0)); + $1_1 = $1_1 | 0; + return +(+($0 >>> 0) + 4294967296.0 * +($1_1 | 0)); } - function $45($0, $0$hi) { + function $45($0, $1_1) { $0 = $0 | 0; - $0$hi = $0$hi | 0; - var i64toi32_i32$0 = 0; - i64toi32_i32$0 = $0$hi; - return Math_fround(Math_fround(+($0 >>> 0) + 4294967296.0 * +(i64toi32_i32$0 >>> 0))); + $1_1 = $1_1 | 0; + return Math_fround(Math_fround(+($0 >>> 0) + 4294967296.0 * +($1_1 >>> 0))); } - function $46($0, $0$hi) { + function $46($0, $1_1) { $0 = $0 | 0; - $0$hi = $0$hi | 0; - var i64toi32_i32$0 = 0; - i64toi32_i32$0 = $0$hi; - return +(+($0 >>> 0) + 4294967296.0 * +(i64toi32_i32$0 >>> 0)); + $1_1 = $1_1 | 0; + return +(+($0 >>> 0) + 4294967296.0 * +($1_1 >>> 0)); } function $47($0) { $0 = Math_fround($0); - var i64toi32_i32$0 = Math_fround(0), $3_1 = 0, $4_1 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = $0; - if (Math_fround(Math_abs(i64toi32_i32$0)) >= Math_fround(1.0)) { - { - if (i64toi32_i32$0 > Math_fround(0.0)) { - $3_1 = ~~Math_fround(Math_min(Math_fround(Math_floor(Math_fround(i64toi32_i32$0 / Math_fround(4294967296.0)))), Math_fround(Math_fround(4294967296.0) - Math_fround(1.0)))) >>> 0 - } else { - $3_1 = ~~Math_fround(Math_ceil(Math_fround(Math_fround(i64toi32_i32$0 - Math_fround(~~i64toi32_i32$0 >>> 0 >>> 0)) / Math_fround(4294967296.0)))) >>> 0 - } - $4_1 = $3_1; + var $1_1 = 0; + if (Math_fround(Math_abs($0)) >= Math_fround(1.0)) { + if ($0 > Math_fround(0.0)) { + $1_1 = ~~Math_fround(Math_min(Math_fround(Math_floor(Math_fround($0 / Math_fround(4294967296.0)))), Math_fround(Math_fround(4294967296.0) - Math_fround(1.0)))) >>> 0 + } else { + $1_1 = ~~Math_fround(Math_ceil(Math_fround(Math_fround($0 - Math_fround(~~$0 >>> 0 >>> 0)) / Math_fround(4294967296.0)))) >>> 0 } } else { - $4_1 = 0 + $1_1 = 0 } - i64toi32_i32$1 = $4_1; - return (~~i64toi32_i32$0 >>> 0 | 0) == (0 | 0) & (i64toi32_i32$1 | 0) == (0 | 0) | 0 | 0; + return (~~$0 >>> 0 | 0) == (0 | 0) & ($1_1 | 0) == (0 | 0) | 0 | 0; } function $48($0) { $0 = +$0; - var i64toi32_i32$0 = 0.0, $3_1 = 0, $4_1 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = $0; - if (Math_abs(i64toi32_i32$0) >= 1.0) { - { - if (i64toi32_i32$0 > 0.0) { - $3_1 = ~~Math_min(Math_floor(i64toi32_i32$0 / 4294967296.0), 4294967296.0 - 1.0) >>> 0 - } else { - $3_1 = ~~Math_ceil((i64toi32_i32$0 - +(~~i64toi32_i32$0 >>> 0 >>> 0)) / 4294967296.0) >>> 0 - } - $4_1 = $3_1; + var $1_1 = 0; + if (Math_abs($0) >= 1.0) { + if ($0 > 0.0) { + $1_1 = ~~Math_min(Math_floor($0 / 4294967296.0), 4294967296.0 - 1.0) >>> 0 + } else { + $1_1 = ~~Math_ceil(($0 - +(~~$0 >>> 0 >>> 0)) / 4294967296.0) >>> 0 } } else { - $4_1 = 0 + $1_1 = 0 } - i64toi32_i32$1 = $4_1; - return (~~i64toi32_i32$0 >>> 0 | 0) == (0 | 0) & (i64toi32_i32$1 | 0) == (0 | 0) | 0 | 0; + return (~~$0 >>> 0 | 0) == (0 | 0) & ($1_1 | 0) == (0 | 0) | 0 | 0; } function $49($0) { $0 = Math_fround($0); - var i64toi32_i32$0 = Math_fround(0), $3_1 = 0, $4_1 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = $0; - if (Math_fround(Math_abs(i64toi32_i32$0)) >= Math_fround(1.0)) { - { - if (i64toi32_i32$0 > Math_fround(0.0)) { - $3_1 = ~~Math_fround(Math_min(Math_fround(Math_floor(Math_fround(i64toi32_i32$0 / Math_fround(4294967296.0)))), Math_fround(Math_fround(4294967296.0) - Math_fround(1.0)))) >>> 0 - } else { - $3_1 = ~~Math_fround(Math_ceil(Math_fround(Math_fround(i64toi32_i32$0 - Math_fround(~~i64toi32_i32$0 >>> 0 >>> 0)) / Math_fround(4294967296.0)))) >>> 0 - } - $4_1 = $3_1; + var $1_1 = 0; + if (Math_fround(Math_abs($0)) >= Math_fround(1.0)) { + if ($0 > Math_fround(0.0)) { + $1_1 = ~~Math_fround(Math_min(Math_fround(Math_floor(Math_fround($0 / Math_fround(4294967296.0)))), Math_fround(Math_fround(4294967296.0) - Math_fround(1.0)))) >>> 0 + } else { + $1_1 = ~~Math_fround(Math_ceil(Math_fround(Math_fround($0 - Math_fround(~~$0 >>> 0 >>> 0)) / Math_fround(4294967296.0)))) >>> 0 } } else { - $4_1 = 0 + $1_1 = 0 } - i64toi32_i32$1 = $4_1; - return (~~i64toi32_i32$0 >>> 0 | 0) == (0 | 0) & (i64toi32_i32$1 | 0) == (0 | 0) | 0 | 0; + return (~~$0 >>> 0 | 0) == (0 | 0) & ($1_1 | 0) == (0 | 0) | 0 | 0; } function $50($0) { $0 = +$0; - var i64toi32_i32$0 = 0.0, $3_1 = 0, $4_1 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = $0; - if (Math_abs(i64toi32_i32$0) >= 1.0) { - { - if (i64toi32_i32$0 > 0.0) { - $3_1 = ~~Math_min(Math_floor(i64toi32_i32$0 / 4294967296.0), 4294967296.0 - 1.0) >>> 0 - } else { - $3_1 = ~~Math_ceil((i64toi32_i32$0 - +(~~i64toi32_i32$0 >>> 0 >>> 0)) / 4294967296.0) >>> 0 - } - $4_1 = $3_1; + var $1_1 = 0; + if (Math_abs($0) >= 1.0) { + if ($0 > 0.0) { + $1_1 = ~~Math_min(Math_floor($0 / 4294967296.0), 4294967296.0 - 1.0) >>> 0 + } else { + $1_1 = ~~Math_ceil(($0 - +(~~$0 >>> 0 >>> 0)) / 4294967296.0) >>> 0 } } else { - $4_1 = 0 + $1_1 = 0 } - i64toi32_i32$1 = $4_1; - return (~~i64toi32_i32$0 >>> 0 | 0) == (0 | 0) & (i64toi32_i32$1 | 0) == (0 | 0) | 0 | 0; + return (~~$0 >>> 0 | 0) == (0 | 0) & ($1_1 | 0) == (0 | 0) | 0 | 0; } function legalstub$43($0, $1_1) { $0 = $0 | 0; $1_1 = $1_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $10_1 = 0, $3_1 = 0, $3$hi = 0, $6$hi = 0; - i64toi32_i32$0 = 0; - $3_1 = $0; - $3$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0, $6_1 = 0; + $2_1 = 0; + $6_1 = $2_1; + $2_1 = 0; + $3_1 = 32; + $4_1 = $3_1 & 31 | 0; + if (32 >>> 0 <= ($3_1 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $10_1 = 0; + $5_1 = $1_1 << $4_1 | 0; + $3_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $10_1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $5_1 = ((1 << $4_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $4_1 | 0) | 0) | 0 | ($2_1 << $4_1 | 0) | 0; + $3_1 = $1_1 << $4_1 | 0; } } - $6$hi = i64toi32_i32$1; - i64toi32_i32$1 = $3$hi; - i64toi32_i32$0 = $3_1; - i64toi32_i32$2 = $6$hi; - i64toi32_i32$3 = $10_1; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - return Math_fround(Math_fround($43(i64toi32_i32$0 | i64toi32_i32$3 | 0 | 0, i64toi32_i32$2 | 0))); + $1_1 = $5_1; + $5_1 = $6_1; + $2_1 = $0; + $1_1 = $5_1 | $1_1 | 0; + return Math_fround(Math_fround($43($2_1 | $3_1 | 0 | 0, $1_1 | 0))); } function legalstub$44($0, $1_1) { $0 = $0 | 0; $1_1 = $1_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $10_1 = 0, $3_1 = 0, $3$hi = 0, $6$hi = 0; - i64toi32_i32$0 = 0; - $3_1 = $0; - $3$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0, $6_1 = 0; + $2_1 = 0; + $6_1 = $2_1; + $2_1 = 0; + $3_1 = 32; + $4_1 = $3_1 & 31 | 0; + if (32 >>> 0 <= ($3_1 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $10_1 = 0; + $5_1 = $1_1 << $4_1 | 0; + $3_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $10_1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $5_1 = ((1 << $4_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $4_1 | 0) | 0) | 0 | ($2_1 << $4_1 | 0) | 0; + $3_1 = $1_1 << $4_1 | 0; } } - $6$hi = i64toi32_i32$1; - i64toi32_i32$1 = $3$hi; - i64toi32_i32$0 = $3_1; - i64toi32_i32$2 = $6$hi; - i64toi32_i32$3 = $10_1; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - return +(+$44(i64toi32_i32$0 | i64toi32_i32$3 | 0 | 0, i64toi32_i32$2 | 0)); + $1_1 = $5_1; + $5_1 = $6_1; + $2_1 = $0; + $1_1 = $5_1 | $1_1 | 0; + return +(+$44($2_1 | $3_1 | 0 | 0, $1_1 | 0)); } function legalstub$45($0, $1_1) { $0 = $0 | 0; $1_1 = $1_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $10_1 = 0, $3_1 = 0, $3$hi = 0, $6$hi = 0; - i64toi32_i32$0 = 0; - $3_1 = $0; - $3$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0, $6_1 = 0; + $2_1 = 0; + $6_1 = $2_1; + $2_1 = 0; + $3_1 = 32; + $4_1 = $3_1 & 31 | 0; + if (32 >>> 0 <= ($3_1 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $10_1 = 0; + $5_1 = $1_1 << $4_1 | 0; + $3_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $10_1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $5_1 = ((1 << $4_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $4_1 | 0) | 0) | 0 | ($2_1 << $4_1 | 0) | 0; + $3_1 = $1_1 << $4_1 | 0; } } - $6$hi = i64toi32_i32$1; - i64toi32_i32$1 = $3$hi; - i64toi32_i32$0 = $3_1; - i64toi32_i32$2 = $6$hi; - i64toi32_i32$3 = $10_1; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - return Math_fround(Math_fround($45(i64toi32_i32$0 | i64toi32_i32$3 | 0 | 0, i64toi32_i32$2 | 0))); + $1_1 = $5_1; + $5_1 = $6_1; + $2_1 = $0; + $1_1 = $5_1 | $1_1 | 0; + return Math_fround(Math_fround($45($2_1 | $3_1 | 0 | 0, $1_1 | 0))); } function legalstub$46($0, $1_1) { $0 = $0 | 0; $1_1 = $1_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $10_1 = 0, $3_1 = 0, $3$hi = 0, $6$hi = 0; - i64toi32_i32$0 = 0; - $3_1 = $0; - $3$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0, $6_1 = 0; + $2_1 = 0; + $6_1 = $2_1; + $2_1 = 0; + $3_1 = 32; + $4_1 = $3_1 & 31 | 0; + if (32 >>> 0 <= ($3_1 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $10_1 = 0; + $5_1 = $1_1 << $4_1 | 0; + $3_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $10_1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $5_1 = ((1 << $4_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $4_1 | 0) | 0) | 0 | ($2_1 << $4_1 | 0) | 0; + $3_1 = $1_1 << $4_1 | 0; } } - $6$hi = i64toi32_i32$1; - i64toi32_i32$1 = $3$hi; - i64toi32_i32$0 = $3_1; - i64toi32_i32$2 = $6$hi; - i64toi32_i32$3 = $10_1; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - return +(+$46(i64toi32_i32$0 | i64toi32_i32$3 | 0 | 0, i64toi32_i32$2 | 0)); + $1_1 = $5_1; + $5_1 = $6_1; + $2_1 = $0; + $1_1 = $5_1 | $1_1 | 0; + return +(+$46($2_1 | $3_1 | 0 | 0, $1_1 | 0)); } var FUNCTION_TABLE = []; diff --git a/test/wasm2js/float-ops.2asm.js.opt b/test/wasm2js/float-ops.2asm.js.opt index aaaea1dce..4ef79e58a 100644 --- a/test/wasm2js/float-ops.2asm.js.opt +++ b/test/wasm2js/float-ops.2asm.js.opt @@ -247,40 +247,34 @@ function asmFunc(global, env, buffer) { function $47($0) { $0 = Math_fround($0); - var $1_1 = 0, $2_1 = 0, $3_1 = 0; - $3_1 = ~~$0 >>> 0; + var $1_1 = 0, $2_1 = 0; + $2_1 = ~~$0 >>> 0; if (Math_fround(Math_abs($0)) >= Math_fround(1.0)) { - { - if ($0 > Math_fround(0.0)) { - $1_1 = ~~Math_fround(Math_min(Math_fround(Math_floor(Math_fround($0 / Math_fround(4294967296.0)))), Math_fround(4294967296.0))) >>> 0 - } else { - $1_1 = ~~Math_fround(Math_ceil(Math_fround(Math_fround($0 - Math_fround(~~$0 >>> 0 >>> 0)) / Math_fround(4294967296.0)))) >>> 0 - } - $2_1 = $1_1; + if ($0 > Math_fround(0.0)) { + $1_1 = ~~Math_fround(Math_min(Math_fround(Math_floor(Math_fround($0 / Math_fround(4294967296.0)))), Math_fround(4294967296.0))) >>> 0 + } else { + $1_1 = ~~Math_fround(Math_ceil(Math_fround(Math_fround($0 - Math_fround(~~$0 >>> 0 >>> 0)) / Math_fround(4294967296.0)))) >>> 0 } } else { - $2_1 = 0 + $1_1 = 0 } - return !($3_1 | $2_1) | 0; + return !($2_1 | $1_1) | 0; } function $48($0) { $0 = +$0; - var $1_1 = 0, $2_1 = 0, $3_1 = 0; - $3_1 = ~~$0 >>> 0; + var $1_1 = 0, $2_1 = 0; + $2_1 = ~~$0 >>> 0; if (Math_abs($0) >= 1.0) { - { - if ($0 > 0.0) { - $1_1 = ~~Math_min(Math_floor($0 / 4294967296.0), 4294967295.0) >>> 0 - } else { - $1_1 = ~~Math_ceil(($0 - +(~~$0 >>> 0 >>> 0)) / 4294967296.0) >>> 0 - } - $2_1 = $1_1; + if ($0 > 0.0) { + $1_1 = ~~Math_min(Math_floor($0 / 4294967296.0), 4294967295.0) >>> 0 + } else { + $1_1 = ~~Math_ceil(($0 - +(~~$0 >>> 0 >>> 0)) / 4294967296.0) >>> 0 } } else { - $2_1 = 0 + $1_1 = 0 } - return !($3_1 | $2_1) | 0; + return !($2_1 | $1_1) | 0; } function legalstub$43($0, $1_1) { diff --git a/test/wasm2js/float_literals-modified.2asm.js b/test/wasm2js/float_literals-modified.2asm.js index 7a623b5e9..04b9e147a 100644 --- a/test/wasm2js/float_literals-modified.2asm.js +++ b/test/wasm2js/float_literals-modified.2asm.js @@ -163,1053 +163,783 @@ function asmFunc(global, env, buffer) { } function $30() { - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; + var $0_1 = 0, $1_1 = 0; wasm2js_scratch_store_f64(+(nan)); - i64toi32_i32$0 = wasm2js_scratch_load_i32(1 | 0) | 0; - i64toi32_i32$1 = wasm2js_scratch_load_i32(0 | 0) | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + $0_1 = wasm2js_scratch_load_i32(1 | 0) | 0; + $1_1 = wasm2js_scratch_load_i32(0 | 0) | 0; + i64toi32_i32$HIGH_BITS = $0_1; + return $1_1 | 0; } function $31() { - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; + var $0_1 = 0, $1_1 = 0; wasm2js_scratch_store_f64(+(nan)); - i64toi32_i32$0 = wasm2js_scratch_load_i32(1 | 0) | 0; - i64toi32_i32$1 = wasm2js_scratch_load_i32(0 | 0) | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + $0_1 = wasm2js_scratch_load_i32(1 | 0) | 0; + $1_1 = wasm2js_scratch_load_i32(0 | 0) | 0; + i64toi32_i32$HIGH_BITS = $0_1; + return $1_1 | 0; } function $32() { - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; + var $0_1 = 0, $1_1 = 0; wasm2js_scratch_store_f64(+(-nan)); - i64toi32_i32$0 = wasm2js_scratch_load_i32(1 | 0) | 0; - i64toi32_i32$1 = wasm2js_scratch_load_i32(0 | 0) | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + $0_1 = wasm2js_scratch_load_i32(1 | 0) | 0; + $1_1 = wasm2js_scratch_load_i32(0 | 0) | 0; + i64toi32_i32$HIGH_BITS = $0_1; + return $1_1 | 0; } function $33() { - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; + var $0_1 = 0, $1_1 = 0; wasm2js_scratch_store_f64(+(nan)); - i64toi32_i32$0 = wasm2js_scratch_load_i32(1 | 0) | 0; - i64toi32_i32$1 = wasm2js_scratch_load_i32(0 | 0) | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + $0_1 = wasm2js_scratch_load_i32(1 | 0) | 0; + $1_1 = wasm2js_scratch_load_i32(0 | 0) | 0; + i64toi32_i32$HIGH_BITS = $0_1; + return $1_1 | 0; } function $34() { - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; + var $0_1 = 0, $1_1 = 0; wasm2js_scratch_store_f64(+(nan)); - i64toi32_i32$0 = wasm2js_scratch_load_i32(1 | 0) | 0; - i64toi32_i32$1 = wasm2js_scratch_load_i32(0 | 0) | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + $0_1 = wasm2js_scratch_load_i32(1 | 0) | 0; + $1_1 = wasm2js_scratch_load_i32(0 | 0) | 0; + i64toi32_i32$HIGH_BITS = $0_1; + return $1_1 | 0; } function $35() { - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; + var $0_1 = 0, $1_1 = 0; wasm2js_scratch_store_f64(+(-nan)); - i64toi32_i32$0 = wasm2js_scratch_load_i32(1 | 0) | 0; - i64toi32_i32$1 = wasm2js_scratch_load_i32(0 | 0) | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + $0_1 = wasm2js_scratch_load_i32(1 | 0) | 0; + $1_1 = wasm2js_scratch_load_i32(0 | 0) | 0; + i64toi32_i32$HIGH_BITS = $0_1; + return $1_1 | 0; } function $36() { - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; + var $0_1 = 0, $1_1 = 0; wasm2js_scratch_store_f64(+(nan)); - i64toi32_i32$0 = wasm2js_scratch_load_i32(1 | 0) | 0; - i64toi32_i32$1 = wasm2js_scratch_load_i32(0 | 0) | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + $0_1 = wasm2js_scratch_load_i32(1 | 0) | 0; + $1_1 = wasm2js_scratch_load_i32(0 | 0) | 0; + i64toi32_i32$HIGH_BITS = $0_1; + return $1_1 | 0; } function $37() { - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; + var $0_1 = 0, $1_1 = 0; wasm2js_scratch_store_f64(+(nan)); - i64toi32_i32$0 = wasm2js_scratch_load_i32(1 | 0) | 0; - i64toi32_i32$1 = wasm2js_scratch_load_i32(0 | 0) | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + $0_1 = wasm2js_scratch_load_i32(1 | 0) | 0; + $1_1 = wasm2js_scratch_load_i32(0 | 0) | 0; + i64toi32_i32$HIGH_BITS = $0_1; + return $1_1 | 0; } function $38() { - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; + var $0_1 = 0, $1_1 = 0; wasm2js_scratch_store_f64(+(-nan)); - i64toi32_i32$0 = wasm2js_scratch_load_i32(1 | 0) | 0; - i64toi32_i32$1 = wasm2js_scratch_load_i32(0 | 0) | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + $0_1 = wasm2js_scratch_load_i32(1 | 0) | 0; + $1_1 = wasm2js_scratch_load_i32(0 | 0) | 0; + i64toi32_i32$HIGH_BITS = $0_1; + return $1_1 | 0; } function $39() { - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; + var $0_1 = 0, $1_1 = 0; wasm2js_scratch_store_f64(+(infinity)); - i64toi32_i32$0 = wasm2js_scratch_load_i32(1 | 0) | 0; - i64toi32_i32$1 = wasm2js_scratch_load_i32(0 | 0) | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + $0_1 = wasm2js_scratch_load_i32(1 | 0) | 0; + $1_1 = wasm2js_scratch_load_i32(0 | 0) | 0; + i64toi32_i32$HIGH_BITS = $0_1; + return $1_1 | 0; } function $40() { - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; + var $0_1 = 0, $1_1 = 0; wasm2js_scratch_store_f64(+(infinity)); - i64toi32_i32$0 = wasm2js_scratch_load_i32(1 | 0) | 0; - i64toi32_i32$1 = wasm2js_scratch_load_i32(0 | 0) | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + $0_1 = wasm2js_scratch_load_i32(1 | 0) | 0; + $1_1 = wasm2js_scratch_load_i32(0 | 0) | 0; + i64toi32_i32$HIGH_BITS = $0_1; + return $1_1 | 0; } function $41() { - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; + var $0_1 = 0, $1_1 = 0; wasm2js_scratch_store_f64(+(-infinity)); - i64toi32_i32$0 = wasm2js_scratch_load_i32(1 | 0) | 0; - i64toi32_i32$1 = wasm2js_scratch_load_i32(0 | 0) | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + $0_1 = wasm2js_scratch_load_i32(1 | 0) | 0; + $1_1 = wasm2js_scratch_load_i32(0 | 0) | 0; + i64toi32_i32$HIGH_BITS = $0_1; + return $1_1 | 0; } function $42() { - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; + var $0_1 = 0, $1_1 = 0; wasm2js_scratch_store_f64(+(0.0)); - i64toi32_i32$0 = wasm2js_scratch_load_i32(1 | 0) | 0; - i64toi32_i32$1 = wasm2js_scratch_load_i32(0 | 0) | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + $0_1 = wasm2js_scratch_load_i32(1 | 0) | 0; + $1_1 = wasm2js_scratch_load_i32(0 | 0) | 0; + i64toi32_i32$HIGH_BITS = $0_1; + return $1_1 | 0; } function $43() { - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; + var $0_1 = 0, $1_1 = 0; wasm2js_scratch_store_f64(+(0.0)); - i64toi32_i32$0 = wasm2js_scratch_load_i32(1 | 0) | 0; - i64toi32_i32$1 = wasm2js_scratch_load_i32(0 | 0) | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + $0_1 = wasm2js_scratch_load_i32(1 | 0) | 0; + $1_1 = wasm2js_scratch_load_i32(0 | 0) | 0; + i64toi32_i32$HIGH_BITS = $0_1; + return $1_1 | 0; } function $44() { - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; + var $0_1 = 0, $1_1 = 0; wasm2js_scratch_store_f64(+(-0.0)); - i64toi32_i32$0 = wasm2js_scratch_load_i32(1 | 0) | 0; - i64toi32_i32$1 = wasm2js_scratch_load_i32(0 | 0) | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + $0_1 = wasm2js_scratch_load_i32(1 | 0) | 0; + $1_1 = wasm2js_scratch_load_i32(0 | 0) | 0; + i64toi32_i32$HIGH_BITS = $0_1; + return $1_1 | 0; } function $45() { - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; + var $0_1 = 0, $1_1 = 0; wasm2js_scratch_store_f64(+(6.283185307179586)); - i64toi32_i32$0 = wasm2js_scratch_load_i32(1 | 0) | 0; - i64toi32_i32$1 = wasm2js_scratch_load_i32(0 | 0) | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + $0_1 = wasm2js_scratch_load_i32(1 | 0) | 0; + $1_1 = wasm2js_scratch_load_i32(0 | 0) | 0; + i64toi32_i32$HIGH_BITS = $0_1; + return $1_1 | 0; } function $46() { - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; + var $0_1 = 0, $1_1 = 0; wasm2js_scratch_store_f64(+(5.0e-324)); - i64toi32_i32$0 = wasm2js_scratch_load_i32(1 | 0) | 0; - i64toi32_i32$1 = wasm2js_scratch_load_i32(0 | 0) | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + $0_1 = wasm2js_scratch_load_i32(1 | 0) | 0; + $1_1 = wasm2js_scratch_load_i32(0 | 0) | 0; + i64toi32_i32$HIGH_BITS = $0_1; + return $1_1 | 0; } function $47() { - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; + var $0_1 = 0, $1_1 = 0; wasm2js_scratch_store_f64(+(2.2250738585072014e-308)); - i64toi32_i32$0 = wasm2js_scratch_load_i32(1 | 0) | 0; - i64toi32_i32$1 = wasm2js_scratch_load_i32(0 | 0) | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + $0_1 = wasm2js_scratch_load_i32(1 | 0) | 0; + $1_1 = wasm2js_scratch_load_i32(0 | 0) | 0; + i64toi32_i32$HIGH_BITS = $0_1; + return $1_1 | 0; } function $48() { - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; + var $0_1 = 0, $1_1 = 0; wasm2js_scratch_store_f64(+(2.225073858507201e-308)); - i64toi32_i32$0 = wasm2js_scratch_load_i32(1 | 0) | 0; - i64toi32_i32$1 = wasm2js_scratch_load_i32(0 | 0) | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + $0_1 = wasm2js_scratch_load_i32(1 | 0) | 0; + $1_1 = wasm2js_scratch_load_i32(0 | 0) | 0; + i64toi32_i32$HIGH_BITS = $0_1; + return $1_1 | 0; } function $49() { - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; + var $0_1 = 0, $1_1 = 0; wasm2js_scratch_store_f64(+(1797693134862315708145274.0e284)); - i64toi32_i32$0 = wasm2js_scratch_load_i32(1 | 0) | 0; - i64toi32_i32$1 = wasm2js_scratch_load_i32(0 | 0) | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + $0_1 = wasm2js_scratch_load_i32(1 | 0) | 0; + $1_1 = wasm2js_scratch_load_i32(0 | 0) | 0; + i64toi32_i32$HIGH_BITS = $0_1; + return $1_1 | 0; } function $50() { - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; + var $0_1 = 0, $1_1 = 0; wasm2js_scratch_store_f64(+(1267650600228229401496703.0e6)); - i64toi32_i32$0 = wasm2js_scratch_load_i32(1 | 0) | 0; - i64toi32_i32$1 = wasm2js_scratch_load_i32(0 | 0) | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + $0_1 = wasm2js_scratch_load_i32(1 | 0) | 0; + $1_1 = wasm2js_scratch_load_i32(0 | 0) | 0; + i64toi32_i32$HIGH_BITS = $0_1; + return $1_1 | 0; } function $51() { - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; + var $0_1 = 0, $1_1 = 0; wasm2js_scratch_store_f64(+(0.0)); - i64toi32_i32$0 = wasm2js_scratch_load_i32(1 | 0) | 0; - i64toi32_i32$1 = wasm2js_scratch_load_i32(0 | 0) | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + $0_1 = wasm2js_scratch_load_i32(1 | 0) | 0; + $1_1 = wasm2js_scratch_load_i32(0 | 0) | 0; + i64toi32_i32$HIGH_BITS = $0_1; + return $1_1 | 0; } function $52() { - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; + var $0_1 = 0, $1_1 = 0; wasm2js_scratch_store_f64(+(0.0)); - i64toi32_i32$0 = wasm2js_scratch_load_i32(1 | 0) | 0; - i64toi32_i32$1 = wasm2js_scratch_load_i32(0 | 0) | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + $0_1 = wasm2js_scratch_load_i32(1 | 0) | 0; + $1_1 = wasm2js_scratch_load_i32(0 | 0) | 0; + i64toi32_i32$HIGH_BITS = $0_1; + return $1_1 | 0; } function $53() { - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; + var $0_1 = 0, $1_1 = 0; wasm2js_scratch_store_f64(+(-0.0)); - i64toi32_i32$0 = wasm2js_scratch_load_i32(1 | 0) | 0; - i64toi32_i32$1 = wasm2js_scratch_load_i32(0 | 0) | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + $0_1 = wasm2js_scratch_load_i32(1 | 0) | 0; + $1_1 = wasm2js_scratch_load_i32(0 | 0) | 0; + i64toi32_i32$HIGH_BITS = $0_1; + return $1_1 | 0; } function $54() { - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; + var $0_1 = 0, $1_1 = 0; wasm2js_scratch_store_f64(+(6.283185307179586)); - i64toi32_i32$0 = wasm2js_scratch_load_i32(1 | 0) | 0; - i64toi32_i32$1 = wasm2js_scratch_load_i32(0 | 0) | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + $0_1 = wasm2js_scratch_load_i32(1 | 0) | 0; + $1_1 = wasm2js_scratch_load_i32(0 | 0) | 0; + i64toi32_i32$HIGH_BITS = $0_1; + return $1_1 | 0; } function $55() { - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; + var $0_1 = 0, $1_1 = 0; wasm2js_scratch_store_f64(+(5.0e-324)); - i64toi32_i32$0 = wasm2js_scratch_load_i32(1 | 0) | 0; - i64toi32_i32$1 = wasm2js_scratch_load_i32(0 | 0) | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + $0_1 = wasm2js_scratch_load_i32(1 | 0) | 0; + $1_1 = wasm2js_scratch_load_i32(0 | 0) | 0; + i64toi32_i32$HIGH_BITS = $0_1; + return $1_1 | 0; } function $56() { - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; + var $0_1 = 0, $1_1 = 0; wasm2js_scratch_store_f64(+(2.2250738585072014e-308)); - i64toi32_i32$0 = wasm2js_scratch_load_i32(1 | 0) | 0; - i64toi32_i32$1 = wasm2js_scratch_load_i32(0 | 0) | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + $0_1 = wasm2js_scratch_load_i32(1 | 0) | 0; + $1_1 = wasm2js_scratch_load_i32(0 | 0) | 0; + i64toi32_i32$HIGH_BITS = $0_1; + return $1_1 | 0; } function $57() { - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; + var $0_1 = 0, $1_1 = 0; wasm2js_scratch_store_f64(+(2.225073858507201e-308)); - i64toi32_i32$0 = wasm2js_scratch_load_i32(1 | 0) | 0; - i64toi32_i32$1 = wasm2js_scratch_load_i32(0 | 0) | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + $0_1 = wasm2js_scratch_load_i32(1 | 0) | 0; + $1_1 = wasm2js_scratch_load_i32(0 | 0) | 0; + i64toi32_i32$HIGH_BITS = $0_1; + return $1_1 | 0; } function $58() { - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; + var $0_1 = 0, $1_1 = 0; wasm2js_scratch_store_f64(+(1797693134862315708145274.0e284)); - i64toi32_i32$0 = wasm2js_scratch_load_i32(1 | 0) | 0; - i64toi32_i32$1 = wasm2js_scratch_load_i32(0 | 0) | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + $0_1 = wasm2js_scratch_load_i32(1 | 0) | 0; + $1_1 = wasm2js_scratch_load_i32(0 | 0) | 0; + i64toi32_i32$HIGH_BITS = $0_1; + return $1_1 | 0; } function $59() { - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; + var $0_1 = 0, $1_1 = 0; wasm2js_scratch_store_f64(+(1.e+100)); - i64toi32_i32$0 = wasm2js_scratch_load_i32(1 | 0) | 0; - i64toi32_i32$1 = wasm2js_scratch_load_i32(0 | 0) | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + $0_1 = wasm2js_scratch_load_i32(1 | 0) | 0; + $1_1 = wasm2js_scratch_load_i32(0 | 0) | 0; + i64toi32_i32$HIGH_BITS = $0_1; + return $1_1 | 0; } function legalstub$30() { - var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0_1 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $30() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0_1 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$2 = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = 0; - $7_1 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + var $0_1 = 0, $1_1 = 0, $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0; + $0_1 = $30() | 0; + $2_1 = i64toi32_i32$HIGH_BITS; + $4_1 = $0_1; + $5_1 = $2_1; + $3_1 = 32; + $1_1 = $3_1 & 31 | 0; + if (32 >>> 0 <= ($3_1 & 63 | 0) >>> 0) { + $0_1 = $2_1 >>> $1_1 | 0 } else { - { - i64toi32_i32$0 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $7_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $1_1 | 0) - 1 | 0) & $2_1 | 0) << (32 - $1_1 | 0) | 0 | ($0_1 >>> $1_1 | 0) | 0 } - setTempRet0($7_1 | 0); - i64toi32_i32$0 = $0$hi; - return $0_1 | 0; + setTempRet0($0_1 | 0); + return $4_1 | 0; } function legalstub$31() { - var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0_1 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $31() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0_1 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$2 = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = 0; - $7_1 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + var $0_1 = 0, $1_1 = 0, $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0; + $0_1 = $31() | 0; + $2_1 = i64toi32_i32$HIGH_BITS; + $4_1 = $0_1; + $5_1 = $2_1; + $3_1 = 32; + $1_1 = $3_1 & 31 | 0; + if (32 >>> 0 <= ($3_1 & 63 | 0) >>> 0) { + $0_1 = $2_1 >>> $1_1 | 0 } else { - { - i64toi32_i32$0 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $7_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $1_1 | 0) - 1 | 0) & $2_1 | 0) << (32 - $1_1 | 0) | 0 | ($0_1 >>> $1_1 | 0) | 0 } - setTempRet0($7_1 | 0); - i64toi32_i32$0 = $0$hi; - return $0_1 | 0; + setTempRet0($0_1 | 0); + return $4_1 | 0; } function legalstub$32() { - var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0_1 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $32() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0_1 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$2 = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = 0; - $7_1 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + var $0_1 = 0, $1_1 = 0, $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0; + $0_1 = $32() | 0; + $2_1 = i64toi32_i32$HIGH_BITS; + $4_1 = $0_1; + $5_1 = $2_1; + $3_1 = 32; + $1_1 = $3_1 & 31 | 0; + if (32 >>> 0 <= ($3_1 & 63 | 0) >>> 0) { + $0_1 = $2_1 >>> $1_1 | 0 } else { - { - i64toi32_i32$0 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $7_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $1_1 | 0) - 1 | 0) & $2_1 | 0) << (32 - $1_1 | 0) | 0 | ($0_1 >>> $1_1 | 0) | 0 } - setTempRet0($7_1 | 0); - i64toi32_i32$0 = $0$hi; - return $0_1 | 0; + setTempRet0($0_1 | 0); + return $4_1 | 0; } function legalstub$33() { - var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0_1 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $33() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0_1 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$2 = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = 0; - $7_1 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + var $0_1 = 0, $1_1 = 0, $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0; + $0_1 = $33() | 0; + $2_1 = i64toi32_i32$HIGH_BITS; + $4_1 = $0_1; + $5_1 = $2_1; + $3_1 = 32; + $1_1 = $3_1 & 31 | 0; + if (32 >>> 0 <= ($3_1 & 63 | 0) >>> 0) { + $0_1 = $2_1 >>> $1_1 | 0 } else { - { - i64toi32_i32$0 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $7_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $1_1 | 0) - 1 | 0) & $2_1 | 0) << (32 - $1_1 | 0) | 0 | ($0_1 >>> $1_1 | 0) | 0 } - setTempRet0($7_1 | 0); - i64toi32_i32$0 = $0$hi; - return $0_1 | 0; + setTempRet0($0_1 | 0); + return $4_1 | 0; } function legalstub$34() { - var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0_1 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $34() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0_1 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$2 = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = 0; - $7_1 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + var $0_1 = 0, $1_1 = 0, $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0; + $0_1 = $34() | 0; + $2_1 = i64toi32_i32$HIGH_BITS; + $4_1 = $0_1; + $5_1 = $2_1; + $3_1 = 32; + $1_1 = $3_1 & 31 | 0; + if (32 >>> 0 <= ($3_1 & 63 | 0) >>> 0) { + $0_1 = $2_1 >>> $1_1 | 0 } else { - { - i64toi32_i32$0 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $7_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $1_1 | 0) - 1 | 0) & $2_1 | 0) << (32 - $1_1 | 0) | 0 | ($0_1 >>> $1_1 | 0) | 0 } - setTempRet0($7_1 | 0); - i64toi32_i32$0 = $0$hi; - return $0_1 | 0; + setTempRet0($0_1 | 0); + return $4_1 | 0; } function legalstub$35() { - var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0_1 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $35() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0_1 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$2 = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = 0; - $7_1 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + var $0_1 = 0, $1_1 = 0, $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0; + $0_1 = $35() | 0; + $2_1 = i64toi32_i32$HIGH_BITS; + $4_1 = $0_1; + $5_1 = $2_1; + $3_1 = 32; + $1_1 = $3_1 & 31 | 0; + if (32 >>> 0 <= ($3_1 & 63 | 0) >>> 0) { + $0_1 = $2_1 >>> $1_1 | 0 } else { - { - i64toi32_i32$0 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $7_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $1_1 | 0) - 1 | 0) & $2_1 | 0) << (32 - $1_1 | 0) | 0 | ($0_1 >>> $1_1 | 0) | 0 } - setTempRet0($7_1 | 0); - i64toi32_i32$0 = $0$hi; - return $0_1 | 0; + setTempRet0($0_1 | 0); + return $4_1 | 0; } function legalstub$36() { - var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0_1 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $36() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0_1 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$2 = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = 0; - $7_1 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + var $0_1 = 0, $1_1 = 0, $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0; + $0_1 = $36() | 0; + $2_1 = i64toi32_i32$HIGH_BITS; + $4_1 = $0_1; + $5_1 = $2_1; + $3_1 = 32; + $1_1 = $3_1 & 31 | 0; + if (32 >>> 0 <= ($3_1 & 63 | 0) >>> 0) { + $0_1 = $2_1 >>> $1_1 | 0 } else { - { - i64toi32_i32$0 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $7_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $1_1 | 0) - 1 | 0) & $2_1 | 0) << (32 - $1_1 | 0) | 0 | ($0_1 >>> $1_1 | 0) | 0 } - setTempRet0($7_1 | 0); - i64toi32_i32$0 = $0$hi; - return $0_1 | 0; + setTempRet0($0_1 | 0); + return $4_1 | 0; } function legalstub$37() { - var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0_1 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $37() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0_1 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$2 = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = 0; - $7_1 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + var $0_1 = 0, $1_1 = 0, $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0; + $0_1 = $37() | 0; + $2_1 = i64toi32_i32$HIGH_BITS; + $4_1 = $0_1; + $5_1 = $2_1; + $3_1 = 32; + $1_1 = $3_1 & 31 | 0; + if (32 >>> 0 <= ($3_1 & 63 | 0) >>> 0) { + $0_1 = $2_1 >>> $1_1 | 0 } else { - { - i64toi32_i32$0 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $7_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $1_1 | 0) - 1 | 0) & $2_1 | 0) << (32 - $1_1 | 0) | 0 | ($0_1 >>> $1_1 | 0) | 0 } - setTempRet0($7_1 | 0); - i64toi32_i32$0 = $0$hi; - return $0_1 | 0; + setTempRet0($0_1 | 0); + return $4_1 | 0; } function legalstub$38() { - var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0_1 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $38() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0_1 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$2 = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = 0; - $7_1 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + var $0_1 = 0, $1_1 = 0, $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0; + $0_1 = $38() | 0; + $2_1 = i64toi32_i32$HIGH_BITS; + $4_1 = $0_1; + $5_1 = $2_1; + $3_1 = 32; + $1_1 = $3_1 & 31 | 0; + if (32 >>> 0 <= ($3_1 & 63 | 0) >>> 0) { + $0_1 = $2_1 >>> $1_1 | 0 } else { - { - i64toi32_i32$0 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $7_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $1_1 | 0) - 1 | 0) & $2_1 | 0) << (32 - $1_1 | 0) | 0 | ($0_1 >>> $1_1 | 0) | 0 } - setTempRet0($7_1 | 0); - i64toi32_i32$0 = $0$hi; - return $0_1 | 0; + setTempRet0($0_1 | 0); + return $4_1 | 0; } function legalstub$39() { - var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0_1 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $39() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0_1 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$2 = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = 0; - $7_1 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + var $0_1 = 0, $1_1 = 0, $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0; + $0_1 = $39() | 0; + $2_1 = i64toi32_i32$HIGH_BITS; + $4_1 = $0_1; + $5_1 = $2_1; + $3_1 = 32; + $1_1 = $3_1 & 31 | 0; + if (32 >>> 0 <= ($3_1 & 63 | 0) >>> 0) { + $0_1 = $2_1 >>> $1_1 | 0 } else { - { - i64toi32_i32$0 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $7_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $1_1 | 0) - 1 | 0) & $2_1 | 0) << (32 - $1_1 | 0) | 0 | ($0_1 >>> $1_1 | 0) | 0 } - setTempRet0($7_1 | 0); - i64toi32_i32$0 = $0$hi; - return $0_1 | 0; + setTempRet0($0_1 | 0); + return $4_1 | 0; } function legalstub$40() { - var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0_1 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $40() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0_1 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$2 = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = 0; - $7_1 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + var $0_1 = 0, $1_1 = 0, $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0; + $0_1 = $40() | 0; + $2_1 = i64toi32_i32$HIGH_BITS; + $4_1 = $0_1; + $5_1 = $2_1; + $3_1 = 32; + $1_1 = $3_1 & 31 | 0; + if (32 >>> 0 <= ($3_1 & 63 | 0) >>> 0) { + $0_1 = $2_1 >>> $1_1 | 0 } else { - { - i64toi32_i32$0 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $7_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $1_1 | 0) - 1 | 0) & $2_1 | 0) << (32 - $1_1 | 0) | 0 | ($0_1 >>> $1_1 | 0) | 0 } - setTempRet0($7_1 | 0); - i64toi32_i32$0 = $0$hi; - return $0_1 | 0; + setTempRet0($0_1 | 0); + return $4_1 | 0; } function legalstub$41() { - var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0_1 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $41() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0_1 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$2 = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = 0; - $7_1 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + var $0_1 = 0, $1_1 = 0, $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0; + $0_1 = $41() | 0; + $2_1 = i64toi32_i32$HIGH_BITS; + $4_1 = $0_1; + $5_1 = $2_1; + $3_1 = 32; + $1_1 = $3_1 & 31 | 0; + if (32 >>> 0 <= ($3_1 & 63 | 0) >>> 0) { + $0_1 = $2_1 >>> $1_1 | 0 } else { - { - i64toi32_i32$0 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $7_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $1_1 | 0) - 1 | 0) & $2_1 | 0) << (32 - $1_1 | 0) | 0 | ($0_1 >>> $1_1 | 0) | 0 } - setTempRet0($7_1 | 0); - i64toi32_i32$0 = $0$hi; - return $0_1 | 0; + setTempRet0($0_1 | 0); + return $4_1 | 0; } function legalstub$42() { - var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0_1 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $42() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0_1 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$2 = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = 0; - $7_1 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + var $0_1 = 0, $1_1 = 0, $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0; + $0_1 = $42() | 0; + $2_1 = i64toi32_i32$HIGH_BITS; + $4_1 = $0_1; + $5_1 = $2_1; + $3_1 = 32; + $1_1 = $3_1 & 31 | 0; + if (32 >>> 0 <= ($3_1 & 63 | 0) >>> 0) { + $0_1 = $2_1 >>> $1_1 | 0 } else { - { - i64toi32_i32$0 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $7_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $1_1 | 0) - 1 | 0) & $2_1 | 0) << (32 - $1_1 | 0) | 0 | ($0_1 >>> $1_1 | 0) | 0 } - setTempRet0($7_1 | 0); - i64toi32_i32$0 = $0$hi; - return $0_1 | 0; + setTempRet0($0_1 | 0); + return $4_1 | 0; } function legalstub$43() { - var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0_1 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $43() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0_1 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$2 = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = 0; - $7_1 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + var $0_1 = 0, $1_1 = 0, $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0; + $0_1 = $43() | 0; + $2_1 = i64toi32_i32$HIGH_BITS; + $4_1 = $0_1; + $5_1 = $2_1; + $3_1 = 32; + $1_1 = $3_1 & 31 | 0; + if (32 >>> 0 <= ($3_1 & 63 | 0) >>> 0) { + $0_1 = $2_1 >>> $1_1 | 0 } else { - { - i64toi32_i32$0 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $7_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $1_1 | 0) - 1 | 0) & $2_1 | 0) << (32 - $1_1 | 0) | 0 | ($0_1 >>> $1_1 | 0) | 0 } - setTempRet0($7_1 | 0); - i64toi32_i32$0 = $0$hi; - return $0_1 | 0; + setTempRet0($0_1 | 0); + return $4_1 | 0; } function legalstub$44() { - var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0_1 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $44() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0_1 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$2 = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = 0; - $7_1 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + var $0_1 = 0, $1_1 = 0, $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0; + $0_1 = $44() | 0; + $2_1 = i64toi32_i32$HIGH_BITS; + $4_1 = $0_1; + $5_1 = $2_1; + $3_1 = 32; + $1_1 = $3_1 & 31 | 0; + if (32 >>> 0 <= ($3_1 & 63 | 0) >>> 0) { + $0_1 = $2_1 >>> $1_1 | 0 } else { - { - i64toi32_i32$0 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $7_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $1_1 | 0) - 1 | 0) & $2_1 | 0) << (32 - $1_1 | 0) | 0 | ($0_1 >>> $1_1 | 0) | 0 } - setTempRet0($7_1 | 0); - i64toi32_i32$0 = $0$hi; - return $0_1 | 0; + setTempRet0($0_1 | 0); + return $4_1 | 0; } function legalstub$45() { - var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0_1 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $45() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0_1 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$2 = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = 0; - $7_1 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + var $0_1 = 0, $1_1 = 0, $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0; + $0_1 = $45() | 0; + $2_1 = i64toi32_i32$HIGH_BITS; + $4_1 = $0_1; + $5_1 = $2_1; + $3_1 = 32; + $1_1 = $3_1 & 31 | 0; + if (32 >>> 0 <= ($3_1 & 63 | 0) >>> 0) { + $0_1 = $2_1 >>> $1_1 | 0 } else { - { - i64toi32_i32$0 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $7_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $1_1 | 0) - 1 | 0) & $2_1 | 0) << (32 - $1_1 | 0) | 0 | ($0_1 >>> $1_1 | 0) | 0 } - setTempRet0($7_1 | 0); - i64toi32_i32$0 = $0$hi; - return $0_1 | 0; + setTempRet0($0_1 | 0); + return $4_1 | 0; } function legalstub$46() { - var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0_1 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $46() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0_1 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$2 = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = 0; - $7_1 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + var $0_1 = 0, $1_1 = 0, $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0; + $0_1 = $46() | 0; + $2_1 = i64toi32_i32$HIGH_BITS; + $4_1 = $0_1; + $5_1 = $2_1; + $3_1 = 32; + $1_1 = $3_1 & 31 | 0; + if (32 >>> 0 <= ($3_1 & 63 | 0) >>> 0) { + $0_1 = $2_1 >>> $1_1 | 0 } else { - { - i64toi32_i32$0 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $7_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $1_1 | 0) - 1 | 0) & $2_1 | 0) << (32 - $1_1 | 0) | 0 | ($0_1 >>> $1_1 | 0) | 0 } - setTempRet0($7_1 | 0); - i64toi32_i32$0 = $0$hi; - return $0_1 | 0; + setTempRet0($0_1 | 0); + return $4_1 | 0; } function legalstub$47() { - var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0_1 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $47() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0_1 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$2 = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = 0; - $7_1 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + var $0_1 = 0, $1_1 = 0, $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0; + $0_1 = $47() | 0; + $2_1 = i64toi32_i32$HIGH_BITS; + $4_1 = $0_1; + $5_1 = $2_1; + $3_1 = 32; + $1_1 = $3_1 & 31 | 0; + if (32 >>> 0 <= ($3_1 & 63 | 0) >>> 0) { + $0_1 = $2_1 >>> $1_1 | 0 } else { - { - i64toi32_i32$0 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $7_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $1_1 | 0) - 1 | 0) & $2_1 | 0) << (32 - $1_1 | 0) | 0 | ($0_1 >>> $1_1 | 0) | 0 } - setTempRet0($7_1 | 0); - i64toi32_i32$0 = $0$hi; - return $0_1 | 0; + setTempRet0($0_1 | 0); + return $4_1 | 0; } function legalstub$48() { - var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0_1 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $48() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0_1 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$2 = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = 0; - $7_1 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + var $0_1 = 0, $1_1 = 0, $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0; + $0_1 = $48() | 0; + $2_1 = i64toi32_i32$HIGH_BITS; + $4_1 = $0_1; + $5_1 = $2_1; + $3_1 = 32; + $1_1 = $3_1 & 31 | 0; + if (32 >>> 0 <= ($3_1 & 63 | 0) >>> 0) { + $0_1 = $2_1 >>> $1_1 | 0 } else { - { - i64toi32_i32$0 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $7_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $1_1 | 0) - 1 | 0) & $2_1 | 0) << (32 - $1_1 | 0) | 0 | ($0_1 >>> $1_1 | 0) | 0 } - setTempRet0($7_1 | 0); - i64toi32_i32$0 = $0$hi; - return $0_1 | 0; + setTempRet0($0_1 | 0); + return $4_1 | 0; } function legalstub$49() { - var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0_1 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $49() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0_1 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$2 = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = 0; - $7_1 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + var $0_1 = 0, $1_1 = 0, $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0; + $0_1 = $49() | 0; + $2_1 = i64toi32_i32$HIGH_BITS; + $4_1 = $0_1; + $5_1 = $2_1; + $3_1 = 32; + $1_1 = $3_1 & 31 | 0; + if (32 >>> 0 <= ($3_1 & 63 | 0) >>> 0) { + $0_1 = $2_1 >>> $1_1 | 0 } else { - { - i64toi32_i32$0 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $7_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $1_1 | 0) - 1 | 0) & $2_1 | 0) << (32 - $1_1 | 0) | 0 | ($0_1 >>> $1_1 | 0) | 0 } - setTempRet0($7_1 | 0); - i64toi32_i32$0 = $0$hi; - return $0_1 | 0; + setTempRet0($0_1 | 0); + return $4_1 | 0; } function legalstub$50() { - var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0_1 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $50() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0_1 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$2 = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = 0; - $7_1 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + var $0_1 = 0, $1_1 = 0, $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0; + $0_1 = $50() | 0; + $2_1 = i64toi32_i32$HIGH_BITS; + $4_1 = $0_1; + $5_1 = $2_1; + $3_1 = 32; + $1_1 = $3_1 & 31 | 0; + if (32 >>> 0 <= ($3_1 & 63 | 0) >>> 0) { + $0_1 = $2_1 >>> $1_1 | 0 } else { - { - i64toi32_i32$0 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $7_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $1_1 | 0) - 1 | 0) & $2_1 | 0) << (32 - $1_1 | 0) | 0 | ($0_1 >>> $1_1 | 0) | 0 } - setTempRet0($7_1 | 0); - i64toi32_i32$0 = $0$hi; - return $0_1 | 0; + setTempRet0($0_1 | 0); + return $4_1 | 0; } function legalstub$51() { - var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0_1 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $51() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0_1 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$2 = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = 0; - $7_1 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + var $0_1 = 0, $1_1 = 0, $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0; + $0_1 = $51() | 0; + $2_1 = i64toi32_i32$HIGH_BITS; + $4_1 = $0_1; + $5_1 = $2_1; + $3_1 = 32; + $1_1 = $3_1 & 31 | 0; + if (32 >>> 0 <= ($3_1 & 63 | 0) >>> 0) { + $0_1 = $2_1 >>> $1_1 | 0 } else { - { - i64toi32_i32$0 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $7_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $1_1 | 0) - 1 | 0) & $2_1 | 0) << (32 - $1_1 | 0) | 0 | ($0_1 >>> $1_1 | 0) | 0 } - setTempRet0($7_1 | 0); - i64toi32_i32$0 = $0$hi; - return $0_1 | 0; + setTempRet0($0_1 | 0); + return $4_1 | 0; } function legalstub$52() { - var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0_1 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $52() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0_1 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$2 = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = 0; - $7_1 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + var $0_1 = 0, $1_1 = 0, $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0; + $0_1 = $52() | 0; + $2_1 = i64toi32_i32$HIGH_BITS; + $4_1 = $0_1; + $5_1 = $2_1; + $3_1 = 32; + $1_1 = $3_1 & 31 | 0; + if (32 >>> 0 <= ($3_1 & 63 | 0) >>> 0) { + $0_1 = $2_1 >>> $1_1 | 0 } else { - { - i64toi32_i32$0 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $7_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $1_1 | 0) - 1 | 0) & $2_1 | 0) << (32 - $1_1 | 0) | 0 | ($0_1 >>> $1_1 | 0) | 0 } - setTempRet0($7_1 | 0); - i64toi32_i32$0 = $0$hi; - return $0_1 | 0; + setTempRet0($0_1 | 0); + return $4_1 | 0; } function legalstub$53() { - var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0_1 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $53() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0_1 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$2 = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = 0; - $7_1 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + var $0_1 = 0, $1_1 = 0, $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0; + $0_1 = $53() | 0; + $2_1 = i64toi32_i32$HIGH_BITS; + $4_1 = $0_1; + $5_1 = $2_1; + $3_1 = 32; + $1_1 = $3_1 & 31 | 0; + if (32 >>> 0 <= ($3_1 & 63 | 0) >>> 0) { + $0_1 = $2_1 >>> $1_1 | 0 } else { - { - i64toi32_i32$0 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $7_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $1_1 | 0) - 1 | 0) & $2_1 | 0) << (32 - $1_1 | 0) | 0 | ($0_1 >>> $1_1 | 0) | 0 } - setTempRet0($7_1 | 0); - i64toi32_i32$0 = $0$hi; - return $0_1 | 0; + setTempRet0($0_1 | 0); + return $4_1 | 0; } function legalstub$54() { - var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0_1 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $54() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0_1 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$2 = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = 0; - $7_1 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + var $0_1 = 0, $1_1 = 0, $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0; + $0_1 = $54() | 0; + $2_1 = i64toi32_i32$HIGH_BITS; + $4_1 = $0_1; + $5_1 = $2_1; + $3_1 = 32; + $1_1 = $3_1 & 31 | 0; + if (32 >>> 0 <= ($3_1 & 63 | 0) >>> 0) { + $0_1 = $2_1 >>> $1_1 | 0 } else { - { - i64toi32_i32$0 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $7_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $1_1 | 0) - 1 | 0) & $2_1 | 0) << (32 - $1_1 | 0) | 0 | ($0_1 >>> $1_1 | 0) | 0 } - setTempRet0($7_1 | 0); - i64toi32_i32$0 = $0$hi; - return $0_1 | 0; + setTempRet0($0_1 | 0); + return $4_1 | 0; } function legalstub$55() { - var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0_1 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $55() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0_1 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$2 = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = 0; - $7_1 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + var $0_1 = 0, $1_1 = 0, $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0; + $0_1 = $55() | 0; + $2_1 = i64toi32_i32$HIGH_BITS; + $4_1 = $0_1; + $5_1 = $2_1; + $3_1 = 32; + $1_1 = $3_1 & 31 | 0; + if (32 >>> 0 <= ($3_1 & 63 | 0) >>> 0) { + $0_1 = $2_1 >>> $1_1 | 0 } else { - { - i64toi32_i32$0 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $7_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $1_1 | 0) - 1 | 0) & $2_1 | 0) << (32 - $1_1 | 0) | 0 | ($0_1 >>> $1_1 | 0) | 0 } - setTempRet0($7_1 | 0); - i64toi32_i32$0 = $0$hi; - return $0_1 | 0; + setTempRet0($0_1 | 0); + return $4_1 | 0; } function legalstub$56() { - var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0_1 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $56() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0_1 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$2 = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = 0; - $7_1 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + var $0_1 = 0, $1_1 = 0, $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0; + $0_1 = $56() | 0; + $2_1 = i64toi32_i32$HIGH_BITS; + $4_1 = $0_1; + $5_1 = $2_1; + $3_1 = 32; + $1_1 = $3_1 & 31 | 0; + if (32 >>> 0 <= ($3_1 & 63 | 0) >>> 0) { + $0_1 = $2_1 >>> $1_1 | 0 } else { - { - i64toi32_i32$0 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $7_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $1_1 | 0) - 1 | 0) & $2_1 | 0) << (32 - $1_1 | 0) | 0 | ($0_1 >>> $1_1 | 0) | 0 } - setTempRet0($7_1 | 0); - i64toi32_i32$0 = $0$hi; - return $0_1 | 0; + setTempRet0($0_1 | 0); + return $4_1 | 0; } function legalstub$57() { - var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0_1 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $57() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0_1 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$2 = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = 0; - $7_1 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + var $0_1 = 0, $1_1 = 0, $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0; + $0_1 = $57() | 0; + $2_1 = i64toi32_i32$HIGH_BITS; + $4_1 = $0_1; + $5_1 = $2_1; + $3_1 = 32; + $1_1 = $3_1 & 31 | 0; + if (32 >>> 0 <= ($3_1 & 63 | 0) >>> 0) { + $0_1 = $2_1 >>> $1_1 | 0 } else { - { - i64toi32_i32$0 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $7_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $1_1 | 0) - 1 | 0) & $2_1 | 0) << (32 - $1_1 | 0) | 0 | ($0_1 >>> $1_1 | 0) | 0 } - setTempRet0($7_1 | 0); - i64toi32_i32$0 = $0$hi; - return $0_1 | 0; + setTempRet0($0_1 | 0); + return $4_1 | 0; } function legalstub$58() { - var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0_1 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $58() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0_1 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$2 = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = 0; - $7_1 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + var $0_1 = 0, $1_1 = 0, $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0; + $0_1 = $58() | 0; + $2_1 = i64toi32_i32$HIGH_BITS; + $4_1 = $0_1; + $5_1 = $2_1; + $3_1 = 32; + $1_1 = $3_1 & 31 | 0; + if (32 >>> 0 <= ($3_1 & 63 | 0) >>> 0) { + $0_1 = $2_1 >>> $1_1 | 0 } else { - { - i64toi32_i32$0 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $7_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $1_1 | 0) - 1 | 0) & $2_1 | 0) << (32 - $1_1 | 0) | 0 | ($0_1 >>> $1_1 | 0) | 0 } - setTempRet0($7_1 | 0); - i64toi32_i32$0 = $0$hi; - return $0_1 | 0; + setTempRet0($0_1 | 0); + return $4_1 | 0; } function legalstub$59() { - var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0_1 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $59() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0_1 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$2 = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = 0; - $7_1 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + var $0_1 = 0, $1_1 = 0, $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0; + $0_1 = $59() | 0; + $2_1 = i64toi32_i32$HIGH_BITS; + $4_1 = $0_1; + $5_1 = $2_1; + $3_1 = 32; + $1_1 = $3_1 & 31 | 0; + if (32 >>> 0 <= ($3_1 & 63 | 0) >>> 0) { + $0_1 = $2_1 >>> $1_1 | 0 } else { - { - i64toi32_i32$0 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $7_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $1_1 | 0) - 1 | 0) & $2_1 | 0) << (32 - $1_1 | 0) | 0 | ($0_1 >>> $1_1 | 0) | 0 } - setTempRet0($7_1 | 0); - i64toi32_i32$0 = $0$hi; - return $0_1 | 0; + setTempRet0($0_1 | 0); + return $4_1 | 0; } var FUNCTION_TABLE = []; diff --git a/test/wasm2js/float_misc.2asm.js b/test/wasm2js/float_misc.2asm.js index 7557c8fdc..6b167bb6b 100644 --- a/test/wasm2js/float_misc.2asm.js +++ b/test/wasm2js/float_misc.2asm.js @@ -51,228 +51,226 @@ function asmFunc(global, env, buffer) { var abort = env.abort; var nan = global.NaN; var infinity = global.Infinity; - function $0(x, y) { - x = Math_fround(x); - y = Math_fround(y); - return Math_fround(Math_fround(x + y)); + function $0($0_1, $1_1) { + $0_1 = Math_fround($0_1); + $1_1 = Math_fround($1_1); + return Math_fround(Math_fround($0_1 + $1_1)); } - function $1(x, y) { - x = Math_fround(x); - y = Math_fround(y); - return Math_fround(Math_fround(x - y)); + function $1($0_1, $1_1) { + $0_1 = Math_fround($0_1); + $1_1 = Math_fround($1_1); + return Math_fround(Math_fround($0_1 - $1_1)); } - function $2(x, y) { - x = Math_fround(x); - y = Math_fround(y); - return Math_fround(Math_fround(x * y)); + function $2($0_1, $1_1) { + $0_1 = Math_fround($0_1); + $1_1 = Math_fround($1_1); + return Math_fround(Math_fround($0_1 * $1_1)); } - function $3(x, y) { - x = Math_fround(x); - y = Math_fround(y); - return Math_fround(Math_fround(x / y)); + function $3($0_1, $1_1) { + $0_1 = Math_fround($0_1); + $1_1 = Math_fround($1_1); + return Math_fround(Math_fround($0_1 / $1_1)); } - function $4(x) { - x = Math_fround(x); - return Math_fround(Math_fround(Math_sqrt(x))); + function $4($0_1) { + $0_1 = Math_fround($0_1); + return Math_fround(Math_fround(Math_sqrt($0_1))); } - function $5(x) { - x = Math_fround(x); - return Math_fround(Math_fround(Math_abs(x))); + function $5($0_1) { + $0_1 = Math_fround($0_1); + return Math_fround(Math_fround(Math_abs($0_1))); } - function $6(x) { - x = Math_fround(x); - return Math_fround(Math_fround(-x)); + function $6($0_1) { + $0_1 = Math_fround($0_1); + return Math_fround(Math_fround(-$0_1)); } - function $7(x, y) { - x = Math_fround(x); - y = Math_fround(y); - return Math_fround((wasm2js_scratch_store_i32(0, (wasm2js_scratch_store_f32(x), wasm2js_scratch_load_i32(0)) & 2147483647 | 0 | ((wasm2js_scratch_store_f32(y), wasm2js_scratch_load_i32(0)) & -2147483648 | 0) | 0), wasm2js_scratch_load_f32())); + function $7($0_1, $1_1) { + $0_1 = Math_fround($0_1); + $1_1 = Math_fround($1_1); + return Math_fround((wasm2js_scratch_store_i32(0, (wasm2js_scratch_store_f32($0_1), wasm2js_scratch_load_i32(0)) & 2147483647 | 0 | ((wasm2js_scratch_store_f32($1_1), wasm2js_scratch_load_i32(0)) & -2147483648 | 0) | 0), wasm2js_scratch_load_f32())); } - function $8(x) { - x = Math_fround(x); - return Math_fround(Math_fround(Math_ceil(x))); + function $8($0_1) { + $0_1 = Math_fround($0_1); + return Math_fround(Math_fround(Math_ceil($0_1))); } - function $9(x) { - x = Math_fround(x); - return Math_fround(Math_fround(Math_floor(x))); + function $9($0_1) { + $0_1 = Math_fround($0_1); + return Math_fround(Math_fround(Math_floor($0_1))); } - function $10(x) { - x = Math_fround(x); - return Math_fround(Math_fround(__wasm_trunc_f32(Math_fround(x)))); + function $10($0_1) { + $0_1 = Math_fround($0_1); + return Math_fround(Math_fround(__wasm_trunc_f32(Math_fround($0_1)))); } - function $11(x) { - x = Math_fround(x); - return Math_fround(Math_fround(__wasm_nearest_f32(Math_fround(x)))); + function $11($0_1) { + $0_1 = Math_fround($0_1); + return Math_fround(Math_fround(__wasm_nearest_f32(Math_fround($0_1)))); } - function $12(x, y) { - x = Math_fround(x); - y = Math_fround(y); - return Math_fround(Math_fround(Math_min(x, y))); + function $12($0_1, $1_1) { + $0_1 = Math_fround($0_1); + $1_1 = Math_fround($1_1); + return Math_fround(Math_fround(Math_min($0_1, $1_1))); } - function $13(x, y) { - x = Math_fround(x); - y = Math_fround(y); - return Math_fround(Math_fround(Math_max(x, y))); + function $13($0_1, $1_1) { + $0_1 = Math_fround($0_1); + $1_1 = Math_fround($1_1); + return Math_fround(Math_fround(Math_max($0_1, $1_1))); } - function $14(x, y) { - x = +x; - y = +y; - return +(x + y); + function $14($0_1, $1_1) { + $0_1 = +$0_1; + $1_1 = +$1_1; + return +($0_1 + $1_1); } - function $15(x, y) { - x = +x; - y = +y; - return +(x - y); + function $15($0_1, $1_1) { + $0_1 = +$0_1; + $1_1 = +$1_1; + return +($0_1 - $1_1); } - function $16(x, y) { - x = +x; - y = +y; - return +(x * y); + function $16($0_1, $1_1) { + $0_1 = +$0_1; + $1_1 = +$1_1; + return +($0_1 * $1_1); } - function $17(x, y) { - x = +x; - y = +y; - return +(x / y); + function $17($0_1, $1_1) { + $0_1 = +$0_1; + $1_1 = +$1_1; + return +($0_1 / $1_1); } - function $18(x) { - x = +x; - return +Math_sqrt(x); + function $18($0_1) { + $0_1 = +$0_1; + return +Math_sqrt($0_1); } - function $19(x) { - x = +x; - return +Math_abs(x); + function $19($0_1) { + $0_1 = +$0_1; + return +Math_abs($0_1); } - function $20(x) { - x = +x; - return +-x; + function $20($0_1) { + $0_1 = +$0_1; + return +-$0_1; } - function $21(x, y) { - x = +x; - y = +y; - var i64toi32_i32$0 = 0, i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $4_1 = 0, $4$hi = 0, $7_1 = 0, $7$hi = 0; - wasm2js_scratch_store_f64(+x); - i64toi32_i32$0 = wasm2js_scratch_load_i32(1 | 0) | 0; - i64toi32_i32$2 = wasm2js_scratch_load_i32(0 | 0) | 0; - i64toi32_i32$1 = 2147483647; - i64toi32_i32$3 = -1; - i64toi32_i32$1 = i64toi32_i32$0 & i64toi32_i32$1 | 0; - $4_1 = i64toi32_i32$2 & i64toi32_i32$3 | 0; - $4$hi = i64toi32_i32$1; - wasm2js_scratch_store_f64(+y); - i64toi32_i32$1 = wasm2js_scratch_load_i32(1 | 0) | 0; - i64toi32_i32$0 = wasm2js_scratch_load_i32(0 | 0) | 0; - i64toi32_i32$2 = -2147483648; - i64toi32_i32$3 = 0; - i64toi32_i32$2 = i64toi32_i32$1 & i64toi32_i32$2 | 0; - $7_1 = i64toi32_i32$0 & i64toi32_i32$3 | 0; - $7$hi = i64toi32_i32$2; - i64toi32_i32$2 = $4$hi; - i64toi32_i32$1 = $4_1; - i64toi32_i32$0 = $7$hi; - i64toi32_i32$3 = $7_1; - i64toi32_i32$0 = i64toi32_i32$2 | i64toi32_i32$0 | 0; - wasm2js_scratch_store_i32(0 | 0, i64toi32_i32$1 | i64toi32_i32$3 | 0 | 0); - wasm2js_scratch_store_i32(1 | 0, i64toi32_i32$0 | 0); + function $21($0_1, $1_1) { + $0_1 = +$0_1; + $1_1 = +$1_1; + var $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0, $6_1 = 0, $7_1 = 0; + wasm2js_scratch_store_f64(+$0_1); + $2_1 = wasm2js_scratch_load_i32(1 | 0) | 0; + $3_1 = wasm2js_scratch_load_i32(0 | 0) | 0; + $4_1 = 2147483647; + $5_1 = -1; + $4_1 = $2_1 & $4_1 | 0; + $6_1 = $3_1 & $5_1 | 0; + $7_1 = $4_1; + wasm2js_scratch_store_f64(+$1_1); + $4_1 = wasm2js_scratch_load_i32(1 | 0) | 0; + $2_1 = wasm2js_scratch_load_i32(0 | 0) | 0; + $3_1 = -2147483648; + $5_1 = 0; + $3_1 = $4_1 & $3_1 | 0; + $5_1 = $2_1 & $5_1 | 0; + $2_1 = $3_1; + $3_1 = $7_1; + $4_1 = $6_1; + $2_1 = $3_1 | $2_1 | 0; + wasm2js_scratch_store_i32(0 | 0, $4_1 | $5_1 | 0 | 0); + wasm2js_scratch_store_i32(1 | 0, $2_1 | 0); return +(+wasm2js_scratch_load_f64()); } - function $22(x) { - x = +x; - return +Math_ceil(x); + function $22($0_1) { + $0_1 = +$0_1; + return +Math_ceil($0_1); } - function $23(x) { - x = +x; - return +Math_floor(x); + function $23($0_1) { + $0_1 = +$0_1; + return +Math_floor($0_1); } - function $24(x) { - x = +x; - return +(+__wasm_trunc_f64(+x)); + function $24($0_1) { + $0_1 = +$0_1; + return +(+__wasm_trunc_f64(+$0_1)); } - function $25(x) { - x = +x; - return +(+__wasm_nearest_f64(+x)); + function $25($0_1) { + $0_1 = +$0_1; + return +(+__wasm_nearest_f64(+$0_1)); } - function $26(x, y) { - x = +x; - y = +y; - return +Math_min(x, y); + function $26($0_1, $1_1) { + $0_1 = +$0_1; + $1_1 = +$1_1; + return +Math_min($0_1, $1_1); } - function $27(x, y) { - x = +x; - y = +y; - return +Math_max(x, y); + function $27($0_1, $1_1) { + $0_1 = +$0_1; + $1_1 = +$1_1; + return +Math_max($0_1, $1_1); } - function __wasm_nearest_f32(var$0) { - var$0 = Math_fround(var$0); - var var$1 = Math_fround(0), var$2 = Math_fround(0); - var$1 = Math_fround(Math_floor(var$0)); - var$2 = Math_fround(var$0 - var$1); - if (!(var$2 < Math_fround(.5))) { + function __wasm_nearest_f32($0_1) { + $0_1 = Math_fround($0_1); + var $1_1 = Math_fround(0), $2_1 = Math_fround(0); + $1_1 = Math_fround(Math_floor($0_1)); + $2_1 = Math_fround($0_1 - $1_1); + if (!($2_1 < Math_fround(.5))) { { - var$0 = Math_fround(Math_ceil(var$0)); - if (var$2 > Math_fround(.5)) { - return Math_fround(var$0) + $0_1 = Math_fround(Math_ceil($0_1)); + if ($2_1 > Math_fround(.5)) { + return Math_fround($0_1) } - var$2 = Math_fround(var$1 * Math_fround(.5)); - var$1 = Math_fround(var$2 - Math_fround(Math_floor(var$2))) == Math_fround(0.0) ? var$1 : var$0; + $2_1 = Math_fround($1_1 * Math_fround(.5)); + $1_1 = Math_fround($2_1 - Math_fround(Math_floor($2_1))) == Math_fround(0.0) ? $1_1 : $0_1; } } - return Math_fround(var$1); + return Math_fround($1_1); } - function __wasm_nearest_f64(var$0) { - var$0 = +var$0; - var var$1 = 0.0, var$2 = 0.0; - var$1 = Math_floor(var$0); - var$2 = var$0 - var$1; - if (!(var$2 < .5)) { + function __wasm_nearest_f64($0_1) { + $0_1 = +$0_1; + var $1_1 = 0.0, $2_1 = 0.0; + $1_1 = Math_floor($0_1); + $2_1 = $0_1 - $1_1; + if (!($2_1 < .5)) { { - var$0 = Math_ceil(var$0); - if (var$2 > .5) { - return +var$0 + $0_1 = Math_ceil($0_1); + if ($2_1 > .5) { + return +$0_1 } - var$2 = var$1 * .5; - var$1 = var$2 - Math_floor(var$2) == 0.0 ? var$1 : var$0; + $2_1 = $1_1 * .5; + $1_1 = $2_1 - Math_floor($2_1) == 0.0 ? $1_1 : $0_1; } } - return +var$1; + return +$1_1; } - function __wasm_trunc_f32(var$0) { - var$0 = Math_fround(var$0); - return Math_fround(var$0 < Math_fround(0.0) ? Math_fround(Math_ceil(var$0)) : Math_fround(Math_floor(var$0))); + function __wasm_trunc_f32($0_1) { + $0_1 = Math_fround($0_1); + return Math_fround($0_1 < Math_fround(0.0) ? Math_fround(Math_ceil($0_1)) : Math_fround(Math_floor($0_1))); } - function __wasm_trunc_f64(var$0) { - var$0 = +var$0; - return +(var$0 < 0.0 ? Math_ceil(var$0) : Math_floor(var$0)); + function __wasm_trunc_f64($0_1) { + $0_1 = +$0_1; + return +($0_1 < 0.0 ? Math_ceil($0_1) : Math_floor($0_1)); } var FUNCTION_TABLE = []; diff --git a/test/wasm2js/forward.2asm.js b/test/wasm2js/forward.2asm.js index 1fd671e49..f89cd6691 100644 --- a/test/wasm2js/forward.2asm.js +++ b/test/wasm2js/forward.2asm.js @@ -21,26 +21,24 @@ function asmFunc(global, env, buffer) { var abort = env.abort; var nan = global.NaN; var infinity = global.Infinity; - function even(n) { - n = n | 0; - var $6 = 0; - if ((n | 0) == (0 | 0)) { - $6 = 1 + function even($0) { + $0 = $0 | 0; + if (($0 | 0) == (0 | 0)) { + $0 = 1 } else { - $6 = odd(n - 1 | 0 | 0) | 0 + $0 = odd($0 - 1 | 0 | 0) | 0 } - return $6 | 0; + return $0 | 0; } - function odd(n) { - n = n | 0; - var $6 = 0; - if ((n | 0) == (0 | 0)) { - $6 = 0 + function odd($0) { + $0 = $0 | 0; + if (($0 | 0) == (0 | 0)) { + $0 = 0 } else { - $6 = even(n - 1 | 0 | 0) | 0 + $0 = even($0 - 1 | 0 | 0) | 0 } - return $6 | 0; + return $0 | 0; } var FUNCTION_TABLE = []; diff --git a/test/wasm2js/func.2asm.js b/test/wasm2js/func.2asm.js index c2d422b2e..4759ccdb7 100644 --- a/test/wasm2js/func.2asm.js +++ b/test/wasm2js/func.2asm.js @@ -42,10 +42,9 @@ function asmFunc(global, env, buffer) { } function $24() { - var i64toi32_i32$0 = 0, $0$hi = 0, $0 = 0; - i64toi32_i32$0 = $0$hi; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return $0 | 0; + var $0 = 0, $1 = 0; + i64toi32_i32$HIGH_BITS = $0; + return $1 | 0; } function $25() { @@ -59,31 +58,29 @@ function asmFunc(global, env, buffer) { } function $27() { - var $1 = 0; - return $1 | 0; + var $0 = 0; + return $0 | 0; } function $28() { - var i64toi32_i32$0 = 0, $1$hi = 0, $1 = 0; - i64toi32_i32$0 = $1$hi; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; + var $0 = 0, $1 = 0; + i64toi32_i32$HIGH_BITS = $0; return $1 | 0; } function $29() { - var $1 = Math_fround(0); - return Math_fround($1); + var $0 = Math_fround(0); + return Math_fround($0); } function $30() { - var $1 = 0.0; - return +$1; + var $0 = 0.0; + return +$0; } function $31() { - var i64toi32_i32$0 = 0, $4 = 0.0, $0 = Math_fround(0), x = 0, $2$hi = 0, $2_1 = 0, $3 = 0, $5 = 0; - i64toi32_i32$0 = $2$hi; - return +$4; + var $0 = 0.0, $1 = Math_fround(0), $2_1 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0; + return +$0; } function $32($0, $1) { @@ -92,14 +89,12 @@ function asmFunc(global, env, buffer) { return $0 | 0; } - function $33($0, $0$hi, $1, $1$hi) { + function $33($0, $1, $2_1, $3) { $0 = $0 | 0; - $0$hi = $0$hi | 0; $1 = $1 | 0; - $1$hi = $1$hi | 0; - var i64toi32_i32$0 = 0; - i64toi32_i32$0 = $0$hi; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; + $2_1 = $2_1 | 0; + $3 = $3 | 0; + i64toi32_i32$HIGH_BITS = $1; return $0 | 0; } @@ -121,15 +116,13 @@ function asmFunc(global, env, buffer) { return $1 | 0; } - function $37($0, $0$hi, $1, $1$hi) { + function $37($0, $1, $2_1, $3) { $0 = $0 | 0; - $0$hi = $0$hi | 0; $1 = $1 | 0; - $1$hi = $1$hi | 0; - var i64toi32_i32$0 = 0; - i64toi32_i32$0 = $1$hi; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return $1 | 0; + $2_1 = $2_1 | 0; + $3 = $3 | 0; + i64toi32_i32$HIGH_BITS = $3; + return $2_1 | 0; } function $38($0, $1) { @@ -144,17 +137,15 @@ function asmFunc(global, env, buffer) { return +$1; } - function $40($0, $1, x, x$hi, $3, $4, $5) { + function $40($0, $1, $2_1, $3, $4, $5, $6) { $0 = Math_fround($0); $1 = $1 | 0; - x = x | 0; - x$hi = x$hi | 0; + $2_1 = $2_1 | 0; $3 = $3 | 0; - $4 = +$4; - $5 = $5 | 0; - var i64toi32_i32$0 = 0; - i64toi32_i32$0 = x$hi; - return +$4; + $4 = $4 | 0; + $5 = +$5; + $6 = $6 | 0; + return +$5; } function $41() { @@ -232,16 +223,14 @@ function asmFunc(global, env, buffer) { } function $57() { - var i64toi32_i32$0 = 0, $0 = 0, $0$hi = 0; + var $0 = 0, $1 = 0; fake_return_waka123 : { - i64toi32_i32$0 = 0; - $0 = 7979; - $0$hi = i64toi32_i32$0; + $0 = 0; + $1 = 7979; break fake_return_waka123; } - i64toi32_i32$0 = $0$hi; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return $0 | 0; + i64toi32_i32$HIGH_BITS = $0; + return $1 | 0; } function $58() { @@ -263,13 +252,13 @@ function asmFunc(global, env, buffer) { } function $60() { - var $2_1 = 0; + var $0 = 0; fake_return_waka123 : { dummy(); - $2_1 = 77; + $0 = 77; break fake_return_waka123; } - return $2_1 | 0; + return $0 | 0; } function $61($0) { @@ -278,15 +267,15 @@ function asmFunc(global, env, buffer) { function $62($0) { $0 = $0 | 0; - var $2_1 = 0; + var $1 = 0; + $1 = 50; fake_return_waka123 : { - $2_1 = 50; if ($0) { break fake_return_waka123 } - $2_1 = 51; + $1 = 51; } - return $2_1 | 0; + return $1 | 0; } function $63($0) { @@ -295,15 +284,15 @@ function asmFunc(global, env, buffer) { function $64($0) { $0 = $0 | 0; - var $3 = 0; + var $1 = 0; fake_return_waka123 : { - $3 = 50; + $1 = 50; switch ($0 | 0) { default: break fake_return_waka123; }; } - return $3 | 0; + return $1 | 0; } function $65($0) { @@ -312,12 +301,11 @@ function asmFunc(global, env, buffer) { function $66($0) { $0 = $0 | 0; - var $2_1 = 0, $3 = 0, $4 = 0; + var $1 = 0, $2_1 = 0; fake_return_waka123 : { block : { - $2_1 = 50; - $3 = $2_1; - $4 = $2_1; + $1 = 50; + $2_1 = $1; switch ($0 | 0) { case 1: break fake_return_waka123; @@ -325,9 +313,9 @@ function asmFunc(global, env, buffer) { break block; }; } - $4 = $3 + 2 | 0; + $1 = $2_1 + 2 | 0; } - return $4 | 0; + return $1 | 0; } function $67() { @@ -336,10 +324,9 @@ function asmFunc(global, env, buffer) { } function $68() { - var i64toi32_i32$0 = 0, $0$hi = 0, $0 = 0; - i64toi32_i32$0 = $0$hi; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return $0 | 0; + var $0 = 0, $1 = 0; + i64toi32_i32$HIGH_BITS = $0; + return $1 | 0; } function $69() { @@ -356,36 +343,36 @@ function asmFunc(global, env, buffer) { } - function complex_sig_1($0, $1, $1$hi, $2_1, $3, $3$hi, $4, $5, $5$hi, $6, $7) { + function complex_sig_1($0, $1, $2_1, $3, $4, $5, $6, $7, $8, $9, $10) { $0 = +$0; $1 = $1 | 0; - $1$hi = $1$hi | 0; - $2_1 = +$2_1; - $3 = $3 | 0; - $3$hi = $3$hi | 0; - $4 = +$4; + $2_1 = $2_1 | 0; + $3 = +$3; + $4 = $4 | 0; $5 = $5 | 0; - $5$hi = $5$hi | 0; - $6 = Math_fround($6); + $6 = +$6; $7 = $7 | 0; + $8 = $8 | 0; + $9 = Math_fround($9); + $10 = $10 | 0; } function empty_sig_2() { } - function complex_sig_3($0, $1, $1$hi, $2_1, $3, $3$hi, $4, $5, $5$hi, $6, $7) { + function complex_sig_3($0, $1, $2_1, $3, $4, $5, $6, $7, $8, $9, $10) { $0 = +$0; $1 = $1 | 0; - $1$hi = $1$hi | 0; - $2_1 = +$2_1; - $3 = $3 | 0; - $3$hi = $3$hi | 0; - $4 = +$4; + $2_1 = $2_1 | 0; + $3 = +$3; + $4 = $4 | 0; $5 = $5 | 0; - $5$hi = $5$hi | 0; - $6 = Math_fround($6); + $6 = +$6; $7 = $7 | 0; + $8 = $8 | 0; + $9 = Math_fround($9); + $10 = $10 | 0; } function $76() { @@ -394,19 +381,19 @@ function asmFunc(global, env, buffer) { } function $77() { - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = 0; - i64toi32_i32$1 = 0; - i64toi32_i32$2 = 0; - FUNCTION_TABLE[0](0.0, 0, i64toi32_i32$0, 0.0, 0, i64toi32_i32$1, 0.0, 0, i64toi32_i32$2, Math_fround(0.0), 0); - i64toi32_i32$2 = 0; - i64toi32_i32$1 = 0; - i64toi32_i32$0 = 0; - FUNCTION_TABLE[2](0.0, 0, i64toi32_i32$2, 0.0, 0, i64toi32_i32$1, 0.0, 0, i64toi32_i32$0, Math_fround(0.0), 0); - i64toi32_i32$0 = 0; - i64toi32_i32$1 = 0; - i64toi32_i32$2 = 0; - FUNCTION_TABLE[3](0.0, 0, i64toi32_i32$0, 0.0, 0, i64toi32_i32$1, 0.0, 0, i64toi32_i32$2, Math_fround(0.0), 0); + var $0 = 0, $1 = 0, $2_1 = 0; + $0 = 0; + $1 = 0; + $2_1 = 0; + FUNCTION_TABLE[0](0.0, 0, $0, 0.0, 0, $1, 0.0, 0, $2_1, Math_fround(0.0), 0); + $2_1 = 0; + $1 = 0; + $0 = 0; + FUNCTION_TABLE[2](0.0, 0, $2_1, 0.0, 0, $1, 0.0, 0, $0, Math_fround(0.0), 0); + $0 = 0; + $1 = 0; + $2_1 = 0; + FUNCTION_TABLE[3](0.0, 0, $0, 0.0, 0, $1, 0.0, 0, $2_1, Math_fround(0.0), 0); } function $78() { @@ -418,55 +405,37 @@ function asmFunc(global, env, buffer) { } function legalstub$24() { - var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7 = 0, $0 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $24() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$2 = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = 0; - $7 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + var $0 = 0, $1 = 0, $2_1 = 0, $3 = 0, $4 = 0, $5 = 0; + $0 = $24() | 0; + $2_1 = i64toi32_i32$HIGH_BITS; + $4 = $0; + $5 = $2_1; + $3 = 32; + $1 = $3 & 31 | 0; + if (32 >>> 0 <= ($3 & 63 | 0) >>> 0) { + $0 = $2_1 >>> $1 | 0 } else { - { - i64toi32_i32$0 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $7 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $0 = (((1 << $1 | 0) - 1 | 0) & $2_1 | 0) << (32 - $1 | 0) | 0 | ($0 >>> $1 | 0) | 0 } - setTempRet0($7 | 0); - i64toi32_i32$0 = $0$hi; - return $0 | 0; + setTempRet0($0 | 0); + return $4 | 0; } function legalstub$28() { - var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7 = 0, $0 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $28() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$2 = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = 0; - $7 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + var $0 = 0, $1 = 0, $2_1 = 0, $3 = 0, $4 = 0, $5 = 0; + $0 = $28() | 0; + $2_1 = i64toi32_i32$HIGH_BITS; + $4 = $0; + $5 = $2_1; + $3 = 32; + $1 = $3 & 31 | 0; + if (32 >>> 0 <= ($3 & 63 | 0) >>> 0) { + $0 = $2_1 >>> $1 | 0 } else { - { - i64toi32_i32$0 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $7 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $0 = (((1 << $1 | 0) - 1 | 0) & $2_1 | 0) << (32 - $1 | 0) | 0 | ($0 >>> $1 | 0) | 0 } - setTempRet0($7 | 0); - i64toi32_i32$0 = $0$hi; - return $0 | 0; + setTempRet0($0 | 0); + return $4 | 0; } function legalstub$33($0, $1, $2_1, $3) { @@ -474,85 +443,68 @@ function asmFunc(global, env, buffer) { $1 = $1 | 0; $2_1 = $2_1 | 0; $3 = $3 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$3 = 0, $21 = 0, $22 = 0, $23_1 = 0, $6 = 0, $6$hi = 0, $9$hi = 0, $10 = 0, $10$hi = 0, $12 = 0, $12$hi = 0, $15$hi = 0, $16 = 0, $16$hi = 0, $4 = 0, $4$hi = 0; - i64toi32_i32$0 = 0; - $6 = $0; - $6$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0; + $6 = 0; + $7 = $0; + $8 = $6; + $6 = 0; + $5 = 32; + $4 = $5 & 31 | 0; + if (32 >>> 0 <= ($5 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $21 = 0; + $0 = $1 << $4 | 0; + $5 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $21 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $0 = ((1 << $4 | 0) - 1 | 0) & ($1 >>> (32 - $4 | 0) | 0) | 0 | ($6 << $4 | 0) | 0; + $5 = $1 << $4 | 0; } } - $9$hi = i64toi32_i32$1; - i64toi32_i32$1 = $6$hi; - i64toi32_i32$0 = $6; - i64toi32_i32$2 = $9$hi; - i64toi32_i32$3 = $21; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - $10 = i64toi32_i32$0 | i64toi32_i32$3 | 0; - $10$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - $12 = $2_1; - $12$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$1 = $3; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + $1 = $0; + $0 = $8; + $6 = $7; + $1 = $0 | $1 | 0; + $9 = $6 | $5 | 0; + $7 = $1; + $1 = 0; + $8 = $1; + $1 = 0; + $0 = $3; + $5 = 32; + $4 = $5 & 31 | 0; + if (32 >>> 0 <= ($5 & 63 | 0) >>> 0) { { - i64toi32_i32$0 = i64toi32_i32$1 << i64toi32_i32$4 | 0; - $22 = 0; + $6 = $0 << $4 | 0; + $5 = 0; } } else { { - i64toi32_i32$0 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$1 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$2 << i64toi32_i32$4 | 0) | 0; - $22 = i64toi32_i32$1 << i64toi32_i32$4 | 0; + $6 = ((1 << $4 | 0) - 1 | 0) & ($0 >>> (32 - $4 | 0) | 0) | 0 | ($1 << $4 | 0) | 0; + $5 = $0 << $4 | 0; } } - $15$hi = i64toi32_i32$0; - i64toi32_i32$0 = $12$hi; - i64toi32_i32$2 = $12; - i64toi32_i32$1 = $15$hi; - i64toi32_i32$3 = $22; - i64toi32_i32$1 = i64toi32_i32$0 | i64toi32_i32$1 | 0; - $16 = i64toi32_i32$2 | i64toi32_i32$3 | 0; - $16$hi = i64toi32_i32$1; - i64toi32_i32$1 = $10$hi; - i64toi32_i32$2 = $16$hi; - i64toi32_i32$2 = $33($10 | 0, i64toi32_i32$1 | 0, $16 | 0, i64toi32_i32$2 | 0) | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $4 = i64toi32_i32$2; - $4$hi = i64toi32_i32$1; - i64toi32_i32$0 = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $23_1 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + $0 = $6; + $6 = $8; + $1 = $2_1; + $0 = $6 | $0 | 0; + $2_1 = $1 | $5 | 0; + $1 = $0; + $0 = $7; + $1 = $33($9 | 0, $0 | 0, $2_1 | 0, $1 | 0) | 0; + $0 = i64toi32_i32$HIGH_BITS; + $3 = $1; + $2_1 = $0; + $6 = $1; + $5 = 32; + $4 = $5 & 31 | 0; + if (32 >>> 0 <= ($5 & 63 | 0) >>> 0) { + $0 = $0 >>> $4 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $23_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$0 >>> i64toi32_i32$4 | 0) | 0; - } + $0 = (((1 << $4 | 0) - 1 | 0) & $0 | 0) << (32 - $4 | 0) | 0 | ($6 >>> $4 | 0) | 0 } - setTempRet0($23_1 | 0); - i64toi32_i32$2 = $4$hi; - return $4 | 0; + setTempRet0($0 | 0); + return $3 | 0; } function legalstub$37($0, $1, $2_1, $3) { @@ -560,85 +512,68 @@ function asmFunc(global, env, buffer) { $1 = $1 | 0; $2_1 = $2_1 | 0; $3 = $3 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$3 = 0, $21 = 0, $22 = 0, $23_1 = 0, $6 = 0, $6$hi = 0, $9$hi = 0, $10 = 0, $10$hi = 0, $12 = 0, $12$hi = 0, $15$hi = 0, $16 = 0, $16$hi = 0, $4 = 0, $4$hi = 0; - i64toi32_i32$0 = 0; - $6 = $0; - $6$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0; + $6 = 0; + $7 = $0; + $8 = $6; + $6 = 0; + $5 = 32; + $4 = $5 & 31 | 0; + if (32 >>> 0 <= ($5 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $21 = 0; + $0 = $1 << $4 | 0; + $5 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $21 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $0 = ((1 << $4 | 0) - 1 | 0) & ($1 >>> (32 - $4 | 0) | 0) | 0 | ($6 << $4 | 0) | 0; + $5 = $1 << $4 | 0; } } - $9$hi = i64toi32_i32$1; - i64toi32_i32$1 = $6$hi; - i64toi32_i32$0 = $6; - i64toi32_i32$2 = $9$hi; - i64toi32_i32$3 = $21; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - $10 = i64toi32_i32$0 | i64toi32_i32$3 | 0; - $10$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - $12 = $2_1; - $12$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$1 = $3; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + $1 = $0; + $0 = $8; + $6 = $7; + $1 = $0 | $1 | 0; + $9 = $6 | $5 | 0; + $7 = $1; + $1 = 0; + $8 = $1; + $1 = 0; + $0 = $3; + $5 = 32; + $4 = $5 & 31 | 0; + if (32 >>> 0 <= ($5 & 63 | 0) >>> 0) { { - i64toi32_i32$0 = i64toi32_i32$1 << i64toi32_i32$4 | 0; - $22 = 0; + $6 = $0 << $4 | 0; + $5 = 0; } } else { { - i64toi32_i32$0 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$1 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$2 << i64toi32_i32$4 | 0) | 0; - $22 = i64toi32_i32$1 << i64toi32_i32$4 | 0; + $6 = ((1 << $4 | 0) - 1 | 0) & ($0 >>> (32 - $4 | 0) | 0) | 0 | ($1 << $4 | 0) | 0; + $5 = $0 << $4 | 0; } } - $15$hi = i64toi32_i32$0; - i64toi32_i32$0 = $12$hi; - i64toi32_i32$2 = $12; - i64toi32_i32$1 = $15$hi; - i64toi32_i32$3 = $22; - i64toi32_i32$1 = i64toi32_i32$0 | i64toi32_i32$1 | 0; - $16 = i64toi32_i32$2 | i64toi32_i32$3 | 0; - $16$hi = i64toi32_i32$1; - i64toi32_i32$1 = $10$hi; - i64toi32_i32$2 = $16$hi; - i64toi32_i32$2 = $37($10 | 0, i64toi32_i32$1 | 0, $16 | 0, i64toi32_i32$2 | 0) | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $4 = i64toi32_i32$2; - $4$hi = i64toi32_i32$1; - i64toi32_i32$0 = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $23_1 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + $0 = $6; + $6 = $8; + $1 = $2_1; + $0 = $6 | $0 | 0; + $2_1 = $1 | $5 | 0; + $1 = $0; + $0 = $7; + $1 = $37($9 | 0, $0 | 0, $2_1 | 0, $1 | 0) | 0; + $0 = i64toi32_i32$HIGH_BITS; + $3 = $1; + $2_1 = $0; + $6 = $1; + $5 = 32; + $4 = $5 & 31 | 0; + if (32 >>> 0 <= ($5 & 63 | 0) >>> 0) { + $0 = $0 >>> $4 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $23_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$0 >>> i64toi32_i32$4 | 0) | 0; - } + $0 = (((1 << $4 | 0) - 1 | 0) & $0 | 0) << (32 - $4 | 0) | 0 | ($6 >>> $4 | 0) | 0 } - setTempRet0($23_1 | 0); - i64toi32_i32$2 = $4$hi; - return $4 | 0; + setTempRet0($0 | 0); + return $3 | 0; } function legalstub$40($0, $1, $2_1, $3, $4, $5, $6) { @@ -649,139 +584,97 @@ function asmFunc(global, env, buffer) { $4 = $4 | 0; $5 = +$5; $6 = $6 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $17 = 0, $7 = Math_fround(0), $8 = 0, $10 = 0, $10$hi = 0, $13$hi = 0; - $7 = $0; - $8 = $1; - i64toi32_i32$0 = 0; - $10 = $2_1; - $10$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $3; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $7 = 0, $8 = 0, $9 = 0, $10 = 0, $11 = 0; + $11 = $1; + $7 = 0; + $1 = $7; + $7 = 0; + $8 = 32; + $9 = $8 & 31 | 0; + if (32 >>> 0 <= ($8 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $17 = 0; + $10 = $3 << $9 | 0; + $8 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $17 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $10 = ((1 << $9 | 0) - 1 | 0) & ($3 >>> (32 - $9 | 0) | 0) | 0 | ($7 << $9 | 0) | 0; + $8 = $3 << $9 | 0; } } - $13$hi = i64toi32_i32$1; - i64toi32_i32$1 = $10$hi; - i64toi32_i32$0 = $10; - i64toi32_i32$2 = $13$hi; - i64toi32_i32$3 = $17; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - return +(+$40(Math_fround($7), $8 | 0, i64toi32_i32$0 | i64toi32_i32$3 | 0 | 0, i64toi32_i32$2 | 0, $4 | 0, +$5, $6 | 0)); + $3 = $10; + $10 = $1; + $7 = $2_1; + $3 = $10 | $3 | 0; + return +(+$40(Math_fround($0), $11 | 0, $7 | $8 | 0 | 0, $3 | 0, $4 | 0, +$5, $6 | 0)); } function legalstub$44() { - var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7 = 0, $0 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $44() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$2 = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = 0; - $7 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + var $0 = 0, $1 = 0, $2_1 = 0, $3 = 0, $4 = 0, $5 = 0; + $0 = $44() | 0; + $2_1 = i64toi32_i32$HIGH_BITS; + $4 = $0; + $5 = $2_1; + $3 = 32; + $1 = $3 & 31 | 0; + if (32 >>> 0 <= ($3 & 63 | 0) >>> 0) { + $0 = $2_1 >>> $1 | 0 } else { - { - i64toi32_i32$0 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $7 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $0 = (((1 << $1 | 0) - 1 | 0) & $2_1 | 0) << (32 - $1 | 0) | 0 | ($0 >>> $1 | 0) | 0 } - setTempRet0($7 | 0); - i64toi32_i32$0 = $0$hi; - return $0 | 0; + setTempRet0($0 | 0); + return $4 | 0; } function legalstub$51() { - var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7 = 0, $0 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $51() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$2 = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = 0; - $7 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + var $0 = 0, $1 = 0, $2_1 = 0, $3 = 0, $4 = 0, $5 = 0; + $0 = $51() | 0; + $2_1 = i64toi32_i32$HIGH_BITS; + $4 = $0; + $5 = $2_1; + $3 = 32; + $1 = $3 & 31 | 0; + if (32 >>> 0 <= ($3 & 63 | 0) >>> 0) { + $0 = $2_1 >>> $1 | 0 } else { - { - i64toi32_i32$0 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $7 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $0 = (((1 << $1 | 0) - 1 | 0) & $2_1 | 0) << (32 - $1 | 0) | 0 | ($0 >>> $1 | 0) | 0 } - setTempRet0($7 | 0); - i64toi32_i32$0 = $0$hi; - return $0 | 0; + setTempRet0($0 | 0); + return $4 | 0; } function legalstub$57() { - var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7 = 0, $0 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $57() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$2 = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = 0; - $7 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + var $0 = 0, $1 = 0, $2_1 = 0, $3 = 0, $4 = 0, $5 = 0; + $0 = $57() | 0; + $2_1 = i64toi32_i32$HIGH_BITS; + $4 = $0; + $5 = $2_1; + $3 = 32; + $1 = $3 & 31 | 0; + if (32 >>> 0 <= ($3 & 63 | 0) >>> 0) { + $0 = $2_1 >>> $1 | 0 } else { - { - i64toi32_i32$0 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $7 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $0 = (((1 << $1 | 0) - 1 | 0) & $2_1 | 0) << (32 - $1 | 0) | 0 | ($0 >>> $1 | 0) | 0 } - setTempRet0($7 | 0); - i64toi32_i32$0 = $0$hi; - return $0 | 0; + setTempRet0($0 | 0); + return $4 | 0; } function legalstub$68() { - var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7 = 0, $0 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $68() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$2 = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = 0; - $7 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + var $0 = 0, $1 = 0, $2_1 = 0, $3 = 0, $4 = 0, $5 = 0; + $0 = $68() | 0; + $2_1 = i64toi32_i32$HIGH_BITS; + $4 = $0; + $5 = $2_1; + $3 = 32; + $1 = $3 & 31 | 0; + if (32 >>> 0 <= ($3 & 63 | 0) >>> 0) { + $0 = $2_1 >>> $1 | 0 } else { - { - i64toi32_i32$0 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $7 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $0 = (((1 << $1 | 0) - 1 | 0) & $2_1 | 0) << (32 - $1 | 0) | 0 | ($0 >>> $1 | 0) | 0 } - setTempRet0($7 | 0); - i64toi32_i32$0 = $0$hi; - return $0 | 0; + setTempRet0($0 | 0); + return $4 | 0; } var FUNCTION_TABLE = [complex_sig_3, empty_sig_2, complex_sig_1, complex_sig_3, empty_sig_1]; diff --git a/test/wasm2js/func_ptrs.2asm.js b/test/wasm2js/func_ptrs.2asm.js index 5ad0aff27..1415c414f 100644 --- a/test/wasm2js/func_ptrs.2asm.js +++ b/test/wasm2js/func_ptrs.2asm.js @@ -32,9 +32,9 @@ function asmFunc(global, env, buffer) { return $0 + 1 | 0 | 0; } - function $5(a) { - a = a | 0; - return a - 2 | 0 | 0; + function $5($0) { + $0 = $0 | 0; + return $0 - 2 | 0 | 0; } function $6($0) { @@ -100,14 +100,14 @@ function asmFunc(global, env, buffer) { return 5 | 0; } - function $5(i) { - i = i | 0; - return FUNCTION_TABLE[i]() | 0 | 0; + function $5($0) { + $0 = $0 | 0; + return FUNCTION_TABLE[$0]() | 0 | 0; } - function $6(i) { - i = i | 0; - return FUNCTION_TABLE[i]() | 0 | 0; + function $6($0) { + $0 = $0 | 0; + return FUNCTION_TABLE[$0]() | 0 | 0; } var FUNCTION_TABLE = [t1, t2, t3, u1, u2, t1, t3]; @@ -152,9 +152,9 @@ function asmFunc(global, env, buffer) { return 2 | 0; } - function $2(i) { - i = i | 0; - return FUNCTION_TABLE[i]() | 0 | 0; + function $2($0) { + $0 = $0 | 0; + return FUNCTION_TABLE[$0]() | 0 | 0; } var FUNCTION_TABLE = [t1, t2]; diff --git a/test/wasm2js/get-set-local.2asm.js b/test/wasm2js/get-set-local.2asm.js index 06ccfb3b3..c15a9b646 100644 --- a/test/wasm2js/get-set-local.2asm.js +++ b/test/wasm2js/get-set-local.2asm.js @@ -21,51 +21,42 @@ function asmFunc(global, env, buffer) { var abort = env.abort; var nan = global.NaN; var infinity = global.Infinity; - function $1($0, r, r$hi) { + function $1($0, $1_1, $2) { $0 = $0 | 0; - r = r | 0; - r$hi = r$hi | 0; - var i64toi32_i32$0 = 0, $9$hi = 0; - i64toi32_i32$0 = r$hi; - i64toi32_i32$0 = 0; - $9$hi = i64toi32_i32$0; - i64toi32_i32$0 = r$hi; - i64toi32_i32$0 = $9$hi; - return ($0 | 0) == (r | 0) & (i64toi32_i32$0 | 0) == (r$hi | 0) | 0 | 0; + $1_1 = $1_1 | 0; + $2 = $2 | 0; + var $3 = 0; + $3 = 0; + return ($0 | 0) == ($1_1 | 0) & ($3 | 0) == ($2 | 0) | 0 | 0; } function legalstub$1($0, $1_1, $2) { $0 = $0 | 0; $1_1 = $1_1 | 0; $2 = $2 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $12 = 0, $3 = 0, $5 = 0, $5$hi = 0, $8$hi = 0; - $3 = $0; - i64toi32_i32$0 = 0; - $5 = $1_1; - $5$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $2; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0; + $7 = $0; + $3 = 0; + $0 = $3; + $3 = 0; + $4 = 32; + $5 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $12 = 0; + $6 = $2 << $5 | 0; + $4 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $12 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $6 = ((1 << $5 | 0) - 1 | 0) & ($2 >>> (32 - $5 | 0) | 0) | 0 | ($3 << $5 | 0) | 0; + $4 = $2 << $5 | 0; } } - $8$hi = i64toi32_i32$1; - i64toi32_i32$1 = $5$hi; - i64toi32_i32$0 = $5; - i64toi32_i32$2 = $8$hi; - i64toi32_i32$3 = $12; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - return $1($3 | 0, i64toi32_i32$0 | i64toi32_i32$3 | 0 | 0, i64toi32_i32$2 | 0) | 0 | 0; + $2 = $6; + $6 = $0; + $3 = $1_1; + $2 = $6 | $2 | 0; + return $1($7 | 0, $3 | $4 | 0 | 0, $2 | 0) | 0 | 0; } var FUNCTION_TABLE = []; diff --git a/test/wasm2js/get_local.2asm.js b/test/wasm2js/get_local.2asm.js index 782be9fba..2f9bc5e4c 100644 --- a/test/wasm2js/get_local.2asm.js +++ b/test/wasm2js/get_local.2asm.js @@ -30,10 +30,9 @@ function asmFunc(global, env, buffer) { } function $1() { - var i64toi32_i32$0 = 0, $0$hi = 0, $0_1 = 0; - i64toi32_i32$0 = $0$hi; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return $0_1 | 0; + var $0_1 = 0, $1_1 = 0; + i64toi32_i32$HIGH_BITS = $0_1; + return $1_1 | 0; } function $2() { @@ -51,12 +50,10 @@ function asmFunc(global, env, buffer) { return $0_1 | 0; } - function $5($0_1, $0$hi) { + function $5($0_1, $1_1) { $0_1 = $0_1 | 0; - $0$hi = $0$hi | 0; - var i64toi32_i32$0 = 0; - i64toi32_i32$0 = $0$hi; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; + $1_1 = $1_1 | 0; + i64toi32_i32$HIGH_BITS = $1_1; return $0_1 | 0; } @@ -70,117 +67,94 @@ function asmFunc(global, env, buffer) { return +$0_1; } - function $8($0_1, $0$hi, $1_1, $2_1, $3_1, $4_1) { + function $8($0_1, $1_1, $2_1, $3_1, $4_1, $5_1) { $0_1 = $0_1 | 0; - $0$hi = $0$hi | 0; - $1_1 = Math_fround($1_1); - $2_1 = +$2_1; - $3_1 = $3_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = Math_fround($2_1); + $3_1 = +$3_1; $4_1 = $4_1 | 0; - var i64toi32_i32$0 = 0, $5_1 = Math_fround(0), $6$hi = 0, $6_1 = 0, $7$hi = 0, $7_1 = 0, $8_1 = 0.0; - i64toi32_i32$0 = $0$hi; - i64toi32_i32$0 = $6$hi; - i64toi32_i32$0 = $7$hi; + $5_1 = $5_1 | 0; + var $6_1 = Math_fround(0), $7_1 = 0, $8_1 = 0, $9_1 = 0, $10 = 0, $11 = 0.0; + $1_1 = $7_1; + $1_1 = $9_1; } - function $9($0_1, $0$hi, $1_1, $2_1, $3_1, $4_1) { + function $9($0_1, $1_1, $2_1, $3_1, $4_1, $5_1) { $0_1 = $0_1 | 0; - $0$hi = $0$hi | 0; - $1_1 = Math_fround($1_1); - $2_1 = +$2_1; - $3_1 = $3_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = Math_fround($2_1); + $3_1 = +$3_1; $4_1 = $4_1 | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, $6$hi = 0, $10 = 0.0, $21 = 0.0, $7$hi = 0, $7_1 = 0; - i64toi32_i32$0 = 0; - $6$hi = i64toi32_i32$0; - i64toi32_i32$0 = $0$hi; - i64toi32_i32$1 = $0_1; - $10 = +(i64toi32_i32$1 >>> 0) + 4294967296.0 * +(i64toi32_i32$0 >>> 0); - i64toi32_i32$0 = $6$hi; - i64toi32_i32$1 = 6; - $21 = +(i64toi32_i32$1 >>> 0) + 4294967296.0 * +(i64toi32_i32$0 >>> 0); - i64toi32_i32$0 = $7$hi; - i64toi32_i32$1 = $7_1; - return +($10 + (+$1_1 + ($2_1 + (+($3_1 >>> 0) + (+($4_1 | 0) + (+Math_fround(5.5) + ($21 + (+(i64toi32_i32$1 >>> 0) + 4294967296.0 * +(i64toi32_i32$0 >>> 0) + 8.0)))))))); + $5_1 = $5_1 | 0; + var $6_1 = 0, $7_1 = 0, $8_1 = 0.0, $9_1 = 0.0, $10 = 0, $11 = 0; + $6_1 = 0; + $7_1 = $6_1; + $6_1 = $1_1; + $8_1 = +($0_1 >>> 0) + 4294967296.0 * +($6_1 >>> 0); + $6_1 = $7_1; + $0_1 = 6; + $9_1 = +($0_1 >>> 0) + 4294967296.0 * +($6_1 >>> 0); + $6_1 = $10; + $0_1 = $11; + return +($8_1 + (+$2_1 + ($3_1 + (+($4_1 >>> 0) + (+($5_1 | 0) + (+Math_fround(5.5) + ($9_1 + (+($0_1 >>> 0) + 4294967296.0 * +($6_1 >>> 0) + 8.0)))))))); } function legalstub$1() { - var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0_1 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $1() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0_1 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$2 = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = 0; - $7_1 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + var $0_1 = 0, $1_1 = 0, $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0; + $0_1 = $1() | 0; + $2_1 = i64toi32_i32$HIGH_BITS; + $4_1 = $0_1; + $5_1 = $2_1; + $3_1 = 32; + $1_1 = $3_1 & 31 | 0; + if (32 >>> 0 <= ($3_1 & 63 | 0) >>> 0) { + $0_1 = $2_1 >>> $1_1 | 0 } else { - { - i64toi32_i32$0 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $7_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $1_1 | 0) - 1 | 0) & $2_1 | 0) << (32 - $1_1 | 0) | 0 | ($0_1 >>> $1_1 | 0) | 0 } - setTempRet0($7_1 | 0); - i64toi32_i32$0 = $0$hi; - return $0_1 | 0; + setTempRet0($0_1 | 0); + return $4_1 | 0; } function legalstub$5($0_1, $1_1) { $0_1 = $0_1 | 0; $1_1 = $1_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12 = 0, $13 = 0, $4_1 = 0, $4$hi = 0, $7$hi = 0, $2_1 = 0, $2$hi = 0; - i64toi32_i32$0 = 0; - $4_1 = $0_1; - $4$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0, $6_1 = 0; + $3_1 = 0; + $5_1 = $0_1; + $6_1 = $3_1; + $3_1 = 0; + $4_1 = 32; + $2_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $12 = 0; + $0_1 = $1_1 << $2_1 | 0; + $4_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $12 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $0_1 = ((1 << $2_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $2_1 | 0) | 0) | 0 | ($3_1 << $2_1 | 0) | 0; + $4_1 = $1_1 << $2_1 | 0; } } - $7$hi = i64toi32_i32$1; - i64toi32_i32$1 = $4$hi; - i64toi32_i32$0 = $4_1; - i64toi32_i32$2 = $7$hi; - i64toi32_i32$3 = $12; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - i64toi32_i32$2 = $5(i64toi32_i32$0 | i64toi32_i32$3 | 0 | 0, i64toi32_i32$2 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $2_1 = i64toi32_i32$2; - $2$hi = i64toi32_i32$0; - i64toi32_i32$1 = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $13 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + $1_1 = $0_1; + $0_1 = $6_1; + $3_1 = $5_1; + $1_1 = $0_1 | $1_1 | 0; + $1_1 = $5($3_1 | $4_1 | 0 | 0, $1_1 | 0) | 0; + $3_1 = i64toi32_i32$HIGH_BITS; + $6_1 = $1_1; + $5_1 = $3_1; + $0_1 = $1_1; + $4_1 = 32; + $2_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { + $0_1 = $3_1 >>> $2_1 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $13 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$1 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $2_1 | 0) - 1 | 0) & $3_1 | 0) << (32 - $2_1 | 0) | 0 | ($0_1 >>> $2_1 | 0) | 0 } - setTempRet0($13 | 0); - i64toi32_i32$2 = $2$hi; - return $2_1 | 0; + setTempRet0($0_1 | 0); + return $6_1 | 0; } function legalstub$8($0_1, $1_1, $2_1, $3_1, $4_1, $5_1) { @@ -190,33 +164,28 @@ function asmFunc(global, env, buffer) { $3_1 = +$3_1; $4_1 = $4_1 | 0; $5_1 = $5_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $14 = 0, $7_1 = 0, $7$hi = 0, $10$hi = 0; - i64toi32_i32$0 = 0; - $7_1 = $0_1; - $7$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $6_1 = 0, $7_1 = 0, $8_1 = 0, $9_1 = 0, $10 = 0; + $6_1 = 0; + $10 = $6_1; + $6_1 = 0; + $7_1 = 32; + $8_1 = $7_1 & 31 | 0; + if (32 >>> 0 <= ($7_1 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $14 = 0; + $9_1 = $1_1 << $8_1 | 0; + $7_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $14 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $9_1 = ((1 << $8_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $8_1 | 0) | 0) | 0 | ($6_1 << $8_1 | 0) | 0; + $7_1 = $1_1 << $8_1 | 0; } } - $10$hi = i64toi32_i32$1; - i64toi32_i32$1 = $7$hi; - i64toi32_i32$0 = $7_1; - i64toi32_i32$2 = $10$hi; - i64toi32_i32$3 = $14; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - $8(i64toi32_i32$0 | i64toi32_i32$3 | 0 | 0, i64toi32_i32$2 | 0, Math_fround($2_1), +$3_1, $4_1 | 0, $5_1 | 0); + $1_1 = $9_1; + $9_1 = $10; + $6_1 = $0_1; + $1_1 = $9_1 | $1_1 | 0; + $8($6_1 | $7_1 | 0 | 0, $1_1 | 0, Math_fround($2_1), +$3_1, $4_1 | 0, $5_1 | 0); } function legalstub$9($0_1, $1_1, $2_1, $3_1, $4_1, $5_1) { @@ -226,33 +195,28 @@ function asmFunc(global, env, buffer) { $3_1 = +$3_1; $4_1 = $4_1 | 0; $5_1 = $5_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $14 = 0, $7_1 = 0, $7$hi = 0, $10$hi = 0; - i64toi32_i32$0 = 0; - $7_1 = $0_1; - $7$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $6_1 = 0, $7_1 = 0, $8_1 = 0, $9_1 = 0, $10 = 0; + $6_1 = 0; + $10 = $6_1; + $6_1 = 0; + $7_1 = 32; + $8_1 = $7_1 & 31 | 0; + if (32 >>> 0 <= ($7_1 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $14 = 0; + $9_1 = $1_1 << $8_1 | 0; + $7_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $14 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $9_1 = ((1 << $8_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $8_1 | 0) | 0) | 0 | ($6_1 << $8_1 | 0) | 0; + $7_1 = $1_1 << $8_1 | 0; } } - $10$hi = i64toi32_i32$1; - i64toi32_i32$1 = $7$hi; - i64toi32_i32$0 = $7_1; - i64toi32_i32$2 = $10$hi; - i64toi32_i32$3 = $14; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - return +(+$9(i64toi32_i32$0 | i64toi32_i32$3 | 0 | 0, i64toi32_i32$2 | 0, Math_fround($2_1), +$3_1, $4_1 | 0, $5_1 | 0)); + $1_1 = $9_1; + $9_1 = $10; + $6_1 = $0_1; + $1_1 = $9_1 | $1_1 | 0; + return +(+$9($6_1 | $7_1 | 0 | 0, $1_1 | 0, Math_fround($2_1), +$3_1, $4_1 | 0, $5_1 | 0)); } var FUNCTION_TABLE = []; diff --git a/test/wasm2js/global_i64.2asm.js b/test/wasm2js/global_i64.2asm.js index 3c0e13ec8..567d89364 100644 --- a/test/wasm2js/global_i64.2asm.js +++ b/test/wasm2js/global_i64.2asm.js @@ -23,18 +23,18 @@ function asmFunc(global, env, buffer) { var infinity = global.Infinity; var f = -1412567121; var f$hi = 305419896; - function call($0, $0$hi) { + function call($0, $1_1) { $0 = $0 | 0; - $0$hi = $0$hi | 0; + $1_1 = $1_1 | 0; } function $1() { - var i64toi32_i32$0 = 0; - i64toi32_i32$0 = f$hi; - call(f | 0, i64toi32_i32$0 | 0); - i64toi32_i32$0 = 287454020; + var $0 = 0; + $0 = f$hi; + call(f | 0, $0 | 0); + $0 = 287454020; f = 1432778632; - f$hi = i64toi32_i32$0; + f$hi = $0; } var FUNCTION_TABLE = []; diff --git a/test/wasm2js/grow_memory.2asm.js b/test/wasm2js/grow_memory.2asm.js index 181eb2ced..17d1069df 100644 --- a/test/wasm2js/grow_memory.2asm.js +++ b/test/wasm2js/grow_memory.2asm.js @@ -21,9 +21,9 @@ function asmFunc(global, env, buffer) { var abort = env.abort; var nan = global.NaN; var infinity = global.Infinity; - function $0(var$0) { - var$0 = var$0 | 0; - return __wasm_grow_memory(var$0 | 0) | 0; + function $0($0_1) { + $0_1 = $0_1 | 0; + return __wasm_grow_memory($0_1 | 0) | 0; } function $1() { diff --git a/test/wasm2js/hello_world.2asm.js b/test/wasm2js/hello_world.2asm.js index 45dc5d7db..f3e0d33bb 100644 --- a/test/wasm2js/hello_world.2asm.js +++ b/test/wasm2js/hello_world.2asm.js @@ -21,10 +21,10 @@ function asmFunc(global, env, buffer) { var abort = env.abort; var nan = global.NaN; var infinity = global.Infinity; - function add(x, y) { - x = x | 0; - y = y | 0; - return x + y | 0 | 0; + function add($0, $1) { + $0 = $0 | 0; + $1 = $1 | 0; + return $0 + $1 | 0 | 0; } var FUNCTION_TABLE = []; diff --git a/test/wasm2js/i32.2asm.js b/test/wasm2js/i32.2asm.js index f049b6b4e..166612dc2 100644 --- a/test/wasm2js/i32.2asm.js +++ b/test/wasm2js/i32.2asm.js @@ -21,217 +21,217 @@ function asmFunc(global, env, buffer) { var abort = env.abort; var nan = global.NaN; var infinity = global.Infinity; - function $0(x, y) { - x = x | 0; - y = y | 0; - return x + y | 0 | 0; + function $0($0_1, $1_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + return $0_1 + $1_1 | 0 | 0; } - function $1(x, y) { - x = x | 0; - y = y | 0; - return x - y | 0 | 0; + function $1($0_1, $1_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + return $0_1 - $1_1 | 0 | 0; } - function $2(x, y) { - x = x | 0; - y = y | 0; - return Math_imul(x, y) | 0; + function $2($0_1, $1_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + return Math_imul($0_1, $1_1) | 0; } - function $3(x, y) { - x = x | 0; - y = y | 0; - return (x | 0) / (y | 0) | 0 | 0; + function $3($0_1, $1_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + return ($0_1 | 0) / ($1_1 | 0) | 0 | 0; } - function $4(x, y) { - x = x | 0; - y = y | 0; - return (x >>> 0) / (y >>> 0) | 0 | 0; + function $4($0_1, $1_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + return ($0_1 >>> 0) / ($1_1 >>> 0) | 0 | 0; } - function $5(x, y) { - x = x | 0; - y = y | 0; - return (x | 0) % (y | 0) | 0 | 0; + function $5($0_1, $1_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + return ($0_1 | 0) % ($1_1 | 0) | 0 | 0; } - function $6(x, y) { - x = x | 0; - y = y | 0; - return (x >>> 0) % (y >>> 0) | 0 | 0; + function $6($0_1, $1_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + return ($0_1 >>> 0) % ($1_1 >>> 0) | 0 | 0; } - function $7(x, y) { - x = x | 0; - y = y | 0; - return x & y | 0 | 0; + function $7($0_1, $1_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + return $0_1 & $1_1 | 0 | 0; } - function $8(x, y) { - x = x | 0; - y = y | 0; - return x | y | 0 | 0; + function $8($0_1, $1_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + return $0_1 | $1_1 | 0 | 0; } - function $9(x, y) { - x = x | 0; - y = y | 0; - return x ^ y | 0 | 0; + function $9($0_1, $1_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + return $0_1 ^ $1_1 | 0 | 0; } - function $10(x, y) { - x = x | 0; - y = y | 0; - return x << y | 0 | 0; + function $10($0_1, $1_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + return $0_1 << $1_1 | 0 | 0; } - function $11(x, y) { - x = x | 0; - y = y | 0; - return x >> y | 0 | 0; + function $11($0_1, $1_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + return $0_1 >> $1_1 | 0 | 0; } - function $12(x, y) { - x = x | 0; - y = y | 0; - return x >>> y | 0 | 0; + function $12($0_1, $1_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + return $0_1 >>> $1_1 | 0 | 0; } - function $13(x, y) { - x = x | 0; - y = y | 0; - return __wasm_rotl_i32(x | 0, y | 0) | 0 | 0; + function $13($0_1, $1_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + return __wasm_rotl_i32($0_1 | 0, $1_1 | 0) | 0 | 0; } - function $14(x, y) { - x = x | 0; - y = y | 0; - return __wasm_rotr_i32(x | 0, y | 0) | 0 | 0; + function $14($0_1, $1_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + return __wasm_rotr_i32($0_1 | 0, $1_1 | 0) | 0 | 0; } - function $15(x) { - x = x | 0; - return Math_clz32(x) | 0; + function $15($0_1) { + $0_1 = $0_1 | 0; + return Math_clz32($0_1) | 0; } - function $16(x) { - x = x | 0; - return __wasm_ctz_i32(x | 0) | 0 | 0; + function $16($0_1) { + $0_1 = $0_1 | 0; + return __wasm_ctz_i32($0_1 | 0) | 0 | 0; } - function $17(x) { - x = x | 0; - return __wasm_popcnt_i32(x | 0) | 0 | 0; + function $17($0_1) { + $0_1 = $0_1 | 0; + return __wasm_popcnt_i32($0_1 | 0) | 0 | 0; } - function $18(x) { - x = x | 0; - return !x | 0; + function $18($0_1) { + $0_1 = $0_1 | 0; + return !$0_1 | 0; } - function $19(x, y) { - x = x | 0; - y = y | 0; - return (x | 0) == (y | 0) | 0; + function $19($0_1, $1_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + return ($0_1 | 0) == ($1_1 | 0) | 0; } - function $20(x, y) { - x = x | 0; - y = y | 0; - return (x | 0) != (y | 0) | 0; + function $20($0_1, $1_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + return ($0_1 | 0) != ($1_1 | 0) | 0; } - function $21(x, y) { - x = x | 0; - y = y | 0; - return (x | 0) < (y | 0) | 0; + function $21($0_1, $1_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + return ($0_1 | 0) < ($1_1 | 0) | 0; } - function $22(x, y) { - x = x | 0; - y = y | 0; - return x >>> 0 < y >>> 0 | 0; + function $22($0_1, $1_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + return $0_1 >>> 0 < $1_1 >>> 0 | 0; } - function $23(x, y) { - x = x | 0; - y = y | 0; - return (x | 0) <= (y | 0) | 0; + function $23($0_1, $1_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + return ($0_1 | 0) <= ($1_1 | 0) | 0; } - function $24(x, y) { - x = x | 0; - y = y | 0; - return x >>> 0 <= y >>> 0 | 0; + function $24($0_1, $1_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + return $0_1 >>> 0 <= $1_1 >>> 0 | 0; } - function $25(x, y) { - x = x | 0; - y = y | 0; - return (x | 0) > (y | 0) | 0; + function $25($0_1, $1_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + return ($0_1 | 0) > ($1_1 | 0) | 0; } - function $26(x, y) { - x = x | 0; - y = y | 0; - return x >>> 0 > y >>> 0 | 0; + function $26($0_1, $1_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + return $0_1 >>> 0 > $1_1 >>> 0 | 0; } - function $27(x, y) { - x = x | 0; - y = y | 0; - return (x | 0) >= (y | 0) | 0; + function $27($0_1, $1_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + return ($0_1 | 0) >= ($1_1 | 0) | 0; } - function $28(x, y) { - x = x | 0; - y = y | 0; - return x >>> 0 >= y >>> 0 | 0; + function $28($0_1, $1_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + return $0_1 >>> 0 >= $1_1 >>> 0 | 0; } - function __wasm_ctz_i32(var$0) { - var$0 = var$0 | 0; - if (var$0) { - return 31 - Math_clz32((var$0 + -1 | 0) ^ var$0 | 0) | 0 | 0 + function __wasm_ctz_i32($0_1) { + $0_1 = $0_1 | 0; + if ($0_1) { + return 31 - Math_clz32(($0_1 + -1 | 0) ^ $0_1 | 0) | 0 | 0 } return 32 | 0; } - function __wasm_popcnt_i32(var$0) { - var$0 = var$0 | 0; - var var$1 = 0, $5_1 = 0; + function __wasm_popcnt_i32($0_1) { + $0_1 = $0_1 | 0; + var $1_1 = 0, $2_1 = 0; label$1 : { label$2 : while (1) { - $5_1 = var$1; - if (!var$0) { + $2_1 = $1_1; + if (!$0_1) { break label$1 } - var$0 = var$0 & (var$0 - 1 | 0) | 0; - var$1 = var$1 + 1 | 0; + $0_1 = $0_1 & ($0_1 - 1 | 0) | 0; + $1_1 = $1_1 + 1 | 0; continue label$2; }; } - return $5_1 | 0; + return $2_1 | 0; } - function __wasm_rotl_i32(var$0, var$1) { - var$0 = var$0 | 0; - var$1 = var$1 | 0; - var var$2 = 0; - var$2 = var$1 & 31 | 0; - var$1 = (0 - var$1 | 0) & 31 | 0; - return ((-1 >>> var$2 | 0) & var$0 | 0) << var$2 | 0 | (((-1 << var$1 | 0) & var$0 | 0) >>> var$1 | 0) | 0 | 0; + function __wasm_rotl_i32($0_1, $1_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + var $2_1 = 0; + $2_1 = $1_1 & 31 | 0; + $1_1 = (0 - $1_1 | 0) & 31 | 0; + return ((-1 >>> $2_1 | 0) & $0_1 | 0) << $2_1 | 0 | (((-1 << $1_1 | 0) & $0_1 | 0) >>> $1_1 | 0) | 0 | 0; } - function __wasm_rotr_i32(var$0, var$1) { - var$0 = var$0 | 0; - var$1 = var$1 | 0; - var var$2 = 0; - var$2 = var$1 & 31 | 0; - var$1 = (0 - var$1 | 0) & 31 | 0; - return ((-1 << var$2 | 0) & var$0 | 0) >>> var$2 | 0 | (((-1 >>> var$1 | 0) & var$0 | 0) << var$1 | 0) | 0 | 0; + function __wasm_rotr_i32($0_1, $1_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + var $2_1 = 0; + $2_1 = $1_1 & 31 | 0; + $1_1 = (0 - $1_1 | 0) & 31 | 0; + return ((-1 << $2_1 | 0) & $0_1 | 0) >>> $2_1 | 0 | (((-1 >>> $1_1 | 0) & $0_1 | 0) << $1_1 | 0) | 0 | 0; } var FUNCTION_TABLE = []; diff --git a/test/wasm2js/i64-add-sub.2asm.js b/test/wasm2js/i64-add-sub.2asm.js index d27bbe3e4..f0fdcb6ac 100644 --- a/test/wasm2js/i64-add-sub.2asm.js +++ b/test/wasm2js/i64-add-sub.2asm.js @@ -21,49 +21,38 @@ function asmFunc(global, env, buffer) { var abort = env.abort; var nan = global.NaN; var infinity = global.Infinity; - function $1($0, $0$hi, $1_1, $1$hi, r, r$hi) { + function $1($0, $1_1, $2_1, $3, $4, $5) { $0 = $0 | 0; - $0$hi = $0$hi | 0; $1_1 = $1_1 | 0; - $1$hi = $1$hi | 0; - r = r | 0; - r$hi = r$hi | 0; - var i64toi32_i32$5 = 0, i64toi32_i32$3 = 0, i64toi32_i32$4 = 0, $5$hi = 0; - i64toi32_i32$3 = $1_1; - i64toi32_i32$4 = $0 + i64toi32_i32$3 | 0; - i64toi32_i32$5 = $0$hi + $1$hi | 0; - if (i64toi32_i32$4 >>> 0 < i64toi32_i32$3 >>> 0) { - i64toi32_i32$5 = i64toi32_i32$5 + 1 | 0 + $2_1 = $2_1 | 0; + $3 = $3 | 0; + $4 = $4 | 0; + $5 = $5 | 0; + var $6 = 0; + $6 = $0 + $2_1 | 0; + $0 = $1_1 + $3 | 0; + if ($6 >>> 0 < $2_1 >>> 0) { + $0 = $0 + 1 | 0 } - $5$hi = i64toi32_i32$5; - i64toi32_i32$5 = r$hi; - i64toi32_i32$5 = $5$hi; - i64toi32_i32$3 = r; - return (i64toi32_i32$4 | 0) == (i64toi32_i32$3 | 0) & (i64toi32_i32$5 | 0) == (r$hi | 0) | 0 | 0; + $2_1 = $4; + return ($6 | 0) == ($2_1 | 0) & ($0 | 0) == ($5 | 0) | 0 | 0; } - function $2($0, $0$hi, $1_1, $1$hi, r, r$hi) { + function $2($0, $1_1, $2_1, $3, $4, $5) { $0 = $0 | 0; - $0$hi = $0$hi | 0; $1_1 = $1_1 | 0; - $1$hi = $1$hi | 0; - r = r | 0; - r$hi = r$hi | 0; - var i64toi32_i32$5 = 0, i64toi32_i32$0 = 0, i64toi32_i32$2 = 0, i64toi32_i32$3 = 0, $5$hi = 0; - i64toi32_i32$0 = $0$hi; - i64toi32_i32$0 = $1$hi; - i64toi32_i32$0 = $0$hi; - i64toi32_i32$2 = $0; - i64toi32_i32$3 = $1_1; - i64toi32_i32$5 = (i64toi32_i32$2 >>> 0 < i64toi32_i32$3 >>> 0) + $1$hi | 0; - i64toi32_i32$5 = i64toi32_i32$0 - i64toi32_i32$5 | 0; - $5$hi = i64toi32_i32$5; - i64toi32_i32$5 = r$hi; - i64toi32_i32$5 = $5$hi; - i64toi32_i32$0 = i64toi32_i32$2 - i64toi32_i32$3 | 0; - i64toi32_i32$2 = r$hi; - i64toi32_i32$3 = r; - return (i64toi32_i32$0 | 0) == (i64toi32_i32$3 | 0) & (i64toi32_i32$5 | 0) == (i64toi32_i32$2 | 0) | 0 | 0; + $2_1 = $2_1 | 0; + $3 = $3 | 0; + $4 = $4 | 0; + $5 = $5 | 0; + var $6 = 0; + $6 = $0; + $0 = ($6 >>> 0 < $2_1 >>> 0) + $3 | 0; + $0 = $1_1 - $0 | 0; + $1_1 = $6 - $2_1 | 0; + $6 = $5; + $2_1 = $4; + return ($1_1 | 0) == ($2_1 | 0) & ($0 | 0) == ($6 | 0) | 0 | 0; } function legalstub$1($0, $1_1, $2_1, $3, $4, $5) { @@ -73,92 +62,79 @@ function asmFunc(global, env, buffer) { $3 = $3 | 0; $4 = $4 | 0; $5 = $5 | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $26 = 0, $27 = 0, $28 = 0, $7 = 0, $7$hi = 0, $10$hi = 0, $11 = 0, $11$hi = 0, $13 = 0, $13$hi = 0, $16$hi = 0, $17 = 0, $17$hi = 0, $19 = 0, $19$hi = 0, $22$hi = 0, $23 = 0, $23$hi = 0; - i64toi32_i32$0 = 0; - $7 = $0; - $7$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $6 = 0, $7 = 0, $8 = 0, $9 = 0, $10 = 0, $11 = 0; + $6 = 0; + $10 = $0; + $9 = $6; + $6 = 0; + $7 = 32; + $8 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $26 = 0; + $0 = $1_1 << $8 | 0; + $7 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $26 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $0 = ((1 << $8 | 0) - 1 | 0) & ($1_1 >>> (32 - $8 | 0) | 0) | 0 | ($6 << $8 | 0) | 0; + $7 = $1_1 << $8 | 0; } } - $10$hi = i64toi32_i32$1; - i64toi32_i32$1 = $7$hi; - i64toi32_i32$0 = $7; - i64toi32_i32$2 = $10$hi; - i64toi32_i32$3 = $26; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - $11 = i64toi32_i32$0 | i64toi32_i32$3 | 0; - $11$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - $13 = $2_1; - $13$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$1 = $3; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + $1_1 = $0; + $0 = $9; + $6 = $10; + $1_1 = $0 | $1_1 | 0; + $11 = $6 | $7 | 0; + $10 = $1_1; + $1_1 = 0; + $9 = $1_1; + $1_1 = 0; + $0 = $3; + $7 = 32; + $8 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$0 = i64toi32_i32$1 << i64toi32_i32$4 | 0; - $27 = 0; + $6 = $0 << $8 | 0; + $7 = 0; } } else { { - i64toi32_i32$0 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$1 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$2 << i64toi32_i32$4 | 0) | 0; - $27 = i64toi32_i32$1 << i64toi32_i32$4 | 0; + $6 = ((1 << $8 | 0) - 1 | 0) & ($0 >>> (32 - $8 | 0) | 0) | 0 | ($1_1 << $8 | 0) | 0; + $7 = $0 << $8 | 0; } } - $16$hi = i64toi32_i32$0; - i64toi32_i32$0 = $13$hi; - i64toi32_i32$2 = $13; - i64toi32_i32$1 = $16$hi; - i64toi32_i32$3 = $27; - i64toi32_i32$1 = i64toi32_i32$0 | i64toi32_i32$1 | 0; - $17 = i64toi32_i32$2 | i64toi32_i32$3 | 0; - $17$hi = i64toi32_i32$1; - i64toi32_i32$1 = 0; - $19 = $4; - $19$hi = i64toi32_i32$1; - i64toi32_i32$1 = 0; - i64toi32_i32$0 = $5; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + $0 = $6; + $6 = $9; + $1_1 = $2_1; + $0 = $6 | $0 | 0; + $9 = $1_1 | $7 | 0; + $2_1 = $0; + $0 = 0; + $3 = $0; + $0 = 0; + $6 = $5; + $7 = 32; + $8 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$2 = i64toi32_i32$0 << i64toi32_i32$4 | 0; - $28 = 0; + $1_1 = $6 << $8 | 0; + $7 = 0; } } else { { - i64toi32_i32$2 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$0 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$1 << i64toi32_i32$4 | 0) | 0; - $28 = i64toi32_i32$0 << i64toi32_i32$4 | 0; + $1_1 = ((1 << $8 | 0) - 1 | 0) & ($6 >>> (32 - $8 | 0) | 0) | 0 | ($0 << $8 | 0) | 0; + $7 = $6 << $8 | 0; } } - $22$hi = i64toi32_i32$2; - i64toi32_i32$2 = $19$hi; - i64toi32_i32$1 = $19; - i64toi32_i32$0 = $22$hi; - i64toi32_i32$3 = $28; - i64toi32_i32$0 = i64toi32_i32$2 | i64toi32_i32$0 | 0; - $23 = i64toi32_i32$1 | i64toi32_i32$3 | 0; - $23$hi = i64toi32_i32$0; - i64toi32_i32$0 = $11$hi; - i64toi32_i32$1 = $17$hi; - i64toi32_i32$2 = $23$hi; - return $1($11 | 0, i64toi32_i32$0 | 0, $17 | 0, i64toi32_i32$1 | 0, $23 | 0, i64toi32_i32$2 | 0) | 0 | 0; + $6 = $1_1; + $1_1 = $3; + $0 = $4; + $6 = $1_1 | $6 | 0; + $3 = $0 | $7 | 0; + $1_1 = $6; + $6 = $10; + $0 = $2_1; + return $1($11 | 0, $6 | 0, $9 | 0, $0 | 0, $3 | 0, $1_1 | 0) | 0 | 0; } function legalstub$2($0, $1_1, $2_1, $3, $4, $5) { @@ -168,92 +144,79 @@ function asmFunc(global, env, buffer) { $3 = $3 | 0; $4 = $4 | 0; $5 = $5 | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $26 = 0, $27 = 0, $28 = 0, $7 = 0, $7$hi = 0, $10$hi = 0, $11 = 0, $11$hi = 0, $13 = 0, $13$hi = 0, $16$hi = 0, $17 = 0, $17$hi = 0, $19 = 0, $19$hi = 0, $22$hi = 0, $23 = 0, $23$hi = 0; - i64toi32_i32$0 = 0; - $7 = $0; - $7$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $6 = 0, $7 = 0, $8 = 0, $9 = 0, $10 = 0, $11 = 0; + $6 = 0; + $10 = $0; + $9 = $6; + $6 = 0; + $7 = 32; + $8 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $26 = 0; + $0 = $1_1 << $8 | 0; + $7 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $26 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $0 = ((1 << $8 | 0) - 1 | 0) & ($1_1 >>> (32 - $8 | 0) | 0) | 0 | ($6 << $8 | 0) | 0; + $7 = $1_1 << $8 | 0; } } - $10$hi = i64toi32_i32$1; - i64toi32_i32$1 = $7$hi; - i64toi32_i32$0 = $7; - i64toi32_i32$2 = $10$hi; - i64toi32_i32$3 = $26; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - $11 = i64toi32_i32$0 | i64toi32_i32$3 | 0; - $11$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - $13 = $2_1; - $13$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$1 = $3; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + $1_1 = $0; + $0 = $9; + $6 = $10; + $1_1 = $0 | $1_1 | 0; + $11 = $6 | $7 | 0; + $10 = $1_1; + $1_1 = 0; + $9 = $1_1; + $1_1 = 0; + $0 = $3; + $7 = 32; + $8 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$0 = i64toi32_i32$1 << i64toi32_i32$4 | 0; - $27 = 0; + $6 = $0 << $8 | 0; + $7 = 0; } } else { { - i64toi32_i32$0 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$1 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$2 << i64toi32_i32$4 | 0) | 0; - $27 = i64toi32_i32$1 << i64toi32_i32$4 | 0; + $6 = ((1 << $8 | 0) - 1 | 0) & ($0 >>> (32 - $8 | 0) | 0) | 0 | ($1_1 << $8 | 0) | 0; + $7 = $0 << $8 | 0; } } - $16$hi = i64toi32_i32$0; - i64toi32_i32$0 = $13$hi; - i64toi32_i32$2 = $13; - i64toi32_i32$1 = $16$hi; - i64toi32_i32$3 = $27; - i64toi32_i32$1 = i64toi32_i32$0 | i64toi32_i32$1 | 0; - $17 = i64toi32_i32$2 | i64toi32_i32$3 | 0; - $17$hi = i64toi32_i32$1; - i64toi32_i32$1 = 0; - $19 = $4; - $19$hi = i64toi32_i32$1; - i64toi32_i32$1 = 0; - i64toi32_i32$0 = $5; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + $0 = $6; + $6 = $9; + $1_1 = $2_1; + $0 = $6 | $0 | 0; + $9 = $1_1 | $7 | 0; + $2_1 = $0; + $0 = 0; + $3 = $0; + $0 = 0; + $6 = $5; + $7 = 32; + $8 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$2 = i64toi32_i32$0 << i64toi32_i32$4 | 0; - $28 = 0; + $1_1 = $6 << $8 | 0; + $7 = 0; } } else { { - i64toi32_i32$2 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$0 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$1 << i64toi32_i32$4 | 0) | 0; - $28 = i64toi32_i32$0 << i64toi32_i32$4 | 0; + $1_1 = ((1 << $8 | 0) - 1 | 0) & ($6 >>> (32 - $8 | 0) | 0) | 0 | ($0 << $8 | 0) | 0; + $7 = $6 << $8 | 0; } } - $22$hi = i64toi32_i32$2; - i64toi32_i32$2 = $19$hi; - i64toi32_i32$1 = $19; - i64toi32_i32$0 = $22$hi; - i64toi32_i32$3 = $28; - i64toi32_i32$0 = i64toi32_i32$2 | i64toi32_i32$0 | 0; - $23 = i64toi32_i32$1 | i64toi32_i32$3 | 0; - $23$hi = i64toi32_i32$0; - i64toi32_i32$0 = $11$hi; - i64toi32_i32$1 = $17$hi; - i64toi32_i32$2 = $23$hi; - return $2($11 | 0, i64toi32_i32$0 | 0, $17 | 0, i64toi32_i32$1 | 0, $23 | 0, i64toi32_i32$2 | 0) | 0 | 0; + $6 = $1_1; + $1_1 = $3; + $0 = $4; + $6 = $1_1 | $6 | 0; + $3 = $0 | $7 | 0; + $1_1 = $6; + $6 = $10; + $0 = $2_1; + return $2($11 | 0, $6 | 0, $9 | 0, $0 | 0, $3 | 0, $1_1 | 0) | 0 | 0; } var FUNCTION_TABLE = []; diff --git a/test/wasm2js/i64-add-sub.2asm.js.opt b/test/wasm2js/i64-add-sub.2asm.js.opt index 5036c2acf..c613c2b4f 100644 --- a/test/wasm2js/i64-add-sub.2asm.js.opt +++ b/test/wasm2js/i64-add-sub.2asm.js.opt @@ -37,24 +37,24 @@ function asmFunc(global, env, buffer) { } function legalstub$1($0, $1_1, $2, $3, $4, $5) { - var $6 = 0, $7 = 0, $8 = 0, $9 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0; - $11 = $0; - $7 = 32; - $0 = $7 & 31; - if (32 >>> 0 <= $7 >>> 0) { + var $6 = 0, $7 = 0, $8 = 0, $9 = 0, $10 = 0, $11 = 0; + $6 = $0; + $8 = 32; + $0 = $8 & 31; + if (32 >>> 0 <= $8 >>> 0) { { - $6 = $1_1 << $0; - $8 = 0; + $7 = $1_1 << $0; + $0 = 0; } } else { { - $6 = (1 << $0) - 1 & $1_1 >>> 32 - $0 | $6 << $0; - $8 = $1_1 << $0; + $7 = (1 << $0) - 1 & $1_1 >>> 32 - $0 | $7 << $0; + $0 = $1_1 << $0; } } - $12 = $11 | $8; - $13 = $6 | $17; - $14 = $2; + $8 = $6 | $0; + $7 = $7 | $9; + $6 = $2; $2 = 0; $1_1 = $3; $3 = 32; @@ -62,31 +62,31 @@ function asmFunc(global, env, buffer) { if (32 >>> 0 <= $3 >>> 0) { { $2 = $1_1 << $0; - $9 = 0; + $0 = 0; } } else { { $2 = (1 << $0) - 1 & $1_1 >>> 32 - $0 | $2 << $0; - $9 = $1_1 << $0; + $0 = $1_1 << $0; } } - $15 = $14 | $9; - $16 = $2 | $18; + $6 = $6 | $0; + $9 = $2 | $10; $2 = 0; $1_1 = $5; $0 = 32 & 31; if (32 >>> 0 <= $3 >>> 0) { { $2 = $1_1 << $0; - $10 = 0; + $0 = 0; } } else { { $2 = (1 << $0) - 1 & $1_1 >>> 32 - $0 | $2 << $0; - $10 = $1_1 << $0; + $0 = $1_1 << $0; } } - return $1($12, $13, $15, $16, $10 | $4, $2 | $19); + return $1($8, $7, $6, $9, $0 | $4, $2 | $11); } function legalstub$2($0, $1_1, $2, $3, $4, $5) { diff --git a/test/wasm2js/i64-ctz.2asm.js b/test/wasm2js/i64-ctz.2asm.js index 6e08b3906..7cfd303c1 100644 --- a/test/wasm2js/i64-ctz.2asm.js +++ b/test/wasm2js/i64-ctz.2asm.js @@ -24,233 +24,193 @@ function asmFunc(global, env, buffer) { var infinity = global.Infinity; var setTempRet0 = env.setTempRet0; var i64toi32_i32$HIGH_BITS = 0; - function popcnt64($0, $0$hi) { + function popcnt64($0, $1) { $0 = $0 | 0; - $0$hi = $0$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = $0$hi; - i64toi32_i32$0 = __wasm_popcnt_i64($0 | 0, i64toi32_i32$0 | 0) | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$0 | 0; + $1 = $1 | 0; + $1 = __wasm_popcnt_i64($0 | 0, $1 | 0) | 0; + $0 = i64toi32_i32$HIGH_BITS; + i64toi32_i32$HIGH_BITS = $0; + return $1 | 0; } - function ctz64($0, $0$hi) { + function ctz64($0, $1) { $0 = $0 | 0; - $0$hi = $0$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = $0$hi; - i64toi32_i32$0 = __wasm_ctz_i64($0 | 0, i64toi32_i32$0 | 0) | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$0 | 0; + $1 = $1 | 0; + $1 = __wasm_ctz_i64($0 | 0, $1 | 0) | 0; + $0 = i64toi32_i32$HIGH_BITS; + i64toi32_i32$HIGH_BITS = $0; + return $1 | 0; } function legalstub$popcnt64($0, $1) { $0 = $0 | 0; $1 = $1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12 = 0, $13 = 0, $4 = 0, $4$hi = 0, $7$hi = 0, $2 = 0, $2$hi = 0; - i64toi32_i32$0 = 0; - $4 = $0; - $4$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0; + $3 = 0; + $5 = $0; + $6 = $3; + $3 = 0; + $4 = 32; + $2 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $12 = 0; + $0 = $1 << $2 | 0; + $4 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $12 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $0 = ((1 << $2 | 0) - 1 | 0) & ($1 >>> (32 - $2 | 0) | 0) | 0 | ($3 << $2 | 0) | 0; + $4 = $1 << $2 | 0; } } - $7$hi = i64toi32_i32$1; - i64toi32_i32$1 = $4$hi; - i64toi32_i32$0 = $4; - i64toi32_i32$2 = $7$hi; - i64toi32_i32$3 = $12; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - i64toi32_i32$2 = popcnt64(i64toi32_i32$0 | i64toi32_i32$3 | 0 | 0, i64toi32_i32$2 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $2 = i64toi32_i32$2; - $2$hi = i64toi32_i32$0; - i64toi32_i32$1 = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $13 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + $1 = $0; + $0 = $6; + $3 = $5; + $1 = $0 | $1 | 0; + $1 = popcnt64($3 | $4 | 0 | 0, $1 | 0) | 0; + $3 = i64toi32_i32$HIGH_BITS; + $6 = $1; + $5 = $3; + $0 = $1; + $4 = 32; + $2 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { + $0 = $3 >>> $2 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $13 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$1 >>> i64toi32_i32$4 | 0) | 0; - } + $0 = (((1 << $2 | 0) - 1 | 0) & $3 | 0) << (32 - $2 | 0) | 0 | ($0 >>> $2 | 0) | 0 } - setTempRet0($13 | 0); - i64toi32_i32$2 = $2$hi; - return $2 | 0; + setTempRet0($0 | 0); + return $6 | 0; } function legalstub$ctz64($0, $1) { $0 = $0 | 0; $1 = $1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12 = 0, $13 = 0, $4 = 0, $4$hi = 0, $7$hi = 0, $2 = 0, $2$hi = 0; - i64toi32_i32$0 = 0; - $4 = $0; - $4$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0; + $3 = 0; + $5 = $0; + $6 = $3; + $3 = 0; + $4 = 32; + $2 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $12 = 0; + $0 = $1 << $2 | 0; + $4 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $12 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $0 = ((1 << $2 | 0) - 1 | 0) & ($1 >>> (32 - $2 | 0) | 0) | 0 | ($3 << $2 | 0) | 0; + $4 = $1 << $2 | 0; } } - $7$hi = i64toi32_i32$1; - i64toi32_i32$1 = $4$hi; - i64toi32_i32$0 = $4; - i64toi32_i32$2 = $7$hi; - i64toi32_i32$3 = $12; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - i64toi32_i32$2 = ctz64(i64toi32_i32$0 | i64toi32_i32$3 | 0 | 0, i64toi32_i32$2 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $2 = i64toi32_i32$2; - $2$hi = i64toi32_i32$0; - i64toi32_i32$1 = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $13 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + $1 = $0; + $0 = $6; + $3 = $5; + $1 = $0 | $1 | 0; + $1 = ctz64($3 | $4 | 0 | 0, $1 | 0) | 0; + $3 = i64toi32_i32$HIGH_BITS; + $6 = $1; + $5 = $3; + $0 = $1; + $4 = 32; + $2 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { + $0 = $3 >>> $2 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $13 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$1 >>> i64toi32_i32$4 | 0) | 0; - } + $0 = (((1 << $2 | 0) - 1 | 0) & $3 | 0) << (32 - $2 | 0) | 0 | ($0 >>> $2 | 0) | 0 } - setTempRet0($13 | 0); - i64toi32_i32$2 = $2$hi; - return $2 | 0; + setTempRet0($0 | 0); + return $6 | 0; } - function __wasm_ctz_i64(var$0, var$0$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$3 = 0, i64toi32_i32$5 = 0, i64toi32_i32$4 = 0, i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, $10 = 0, $5$hi = 0, $8$hi = 0; - i64toi32_i32$0 = var$0$hi; - if (!!(var$0 | i64toi32_i32$0 | 0)) { + function __wasm_ctz_i64($0, $1) { + $0 = $0 | 0; + $1 = $1 | 0; + var $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0; + $3 = $1; + if (!!($0 | $3 | 0)) { { - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$2 = var$0; - i64toi32_i32$1 = -1; - i64toi32_i32$3 = -1; - i64toi32_i32$4 = i64toi32_i32$2 + i64toi32_i32$3 | 0; - i64toi32_i32$5 = i64toi32_i32$0 + i64toi32_i32$1 | 0; - if (i64toi32_i32$4 >>> 0 < i64toi32_i32$3 >>> 0) { - i64toi32_i32$5 = i64toi32_i32$5 + 1 | 0 + $3 = $1; + $2 = $0; + $6 = -1; + $4 = -1; + $2 = $2 + $4 | 0; + $5 = $3 + $6 | 0; + if ($2 >>> 0 < $4 >>> 0) { + $5 = $5 + 1 | 0 } - $5$hi = i64toi32_i32$5; - i64toi32_i32$5 = var$0$hi; - i64toi32_i32$5 = $5$hi; - i64toi32_i32$0 = i64toi32_i32$4; - i64toi32_i32$2 = var$0$hi; - i64toi32_i32$3 = var$0; - i64toi32_i32$2 = i64toi32_i32$5 ^ i64toi32_i32$2 | 0; - i64toi32_i32$0 = i64toi32_i32$0 ^ i64toi32_i32$3 | 0; - i64toi32_i32$3 = Math_clz32(i64toi32_i32$2); - i64toi32_i32$5 = 0; - if ((i64toi32_i32$3 | 0) == (32 | 0)) { - $10 = Math_clz32(i64toi32_i32$0) + 32 | 0 - } else { - $10 = i64toi32_i32$3 + $3 = $2; + $2 = $1; + $4 = $0; + $2 = $5 ^ $2 | 0; + $3 = $3 ^ $4 | 0; + $4 = Math_clz32($2); + $5 = 0; + if (($4 | 0) == (32 | 0)) { + $4 = Math_clz32($3) + 32 | 0 } - $8$hi = i64toi32_i32$5; - i64toi32_i32$5 = 0; - i64toi32_i32$0 = 63; - i64toi32_i32$2 = $8$hi; - i64toi32_i32$3 = $10; - i64toi32_i32$1 = i64toi32_i32$0 - i64toi32_i32$3 | 0; - i64toi32_i32$4 = (i64toi32_i32$0 >>> 0 < i64toi32_i32$3 >>> 0) + i64toi32_i32$2 | 0; - i64toi32_i32$4 = i64toi32_i32$5 - i64toi32_i32$4 | 0; - i64toi32_i32$0 = i64toi32_i32$1; - i64toi32_i32$HIGH_BITS = i64toi32_i32$4; - return i64toi32_i32$0 | 0; + $2 = $5; + $5 = 0; + $3 = 63; + $6 = $3 - $4 | 0; + $2 = ($3 >>> 0 < $4 >>> 0) + $2 | 0; + $2 = $5 - $2 | 0; + $3 = $6; + i64toi32_i32$HIGH_BITS = $2; + return $3 | 0; } } - i64toi32_i32$0 = 0; - i64toi32_i32$4 = 64; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$4 | 0; + $3 = 0; + $2 = 64; + i64toi32_i32$HIGH_BITS = $3; + return $2 | 0; } - function __wasm_popcnt_i64(var$0, var$0$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$2 = 0, i64toi32_i32$5 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, i64toi32_i32$1 = 0, var$1$hi = 0, var$1 = 0, $5 = 0, $5$hi = 0, $4 = 0, $9$hi = 0; + function __wasm_popcnt_i64($0, $1) { + $0 = $0 | 0; + $1 = $1 | 0; + var $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0; label$1 : { label$2 : while (1) { - i64toi32_i32$0 = var$1$hi; - i64toi32_i32$0 = var$0$hi; - $4 = !(var$0 | i64toi32_i32$0 | 0); - i64toi32_i32$0 = var$1$hi; - $5 = var$1; - $5$hi = i64toi32_i32$0; - if ($4) { + $4 = $1; + $3 = !($0 | $4 | 0); + $4 = $7; + $2 = $8; + if ($3) { break label$1 } - i64toi32_i32$0 = $5$hi; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$2 = var$0; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 1; - i64toi32_i32$4 = i64toi32_i32$2 - i64toi32_i32$3 | 0; - i64toi32_i32$5 = (i64toi32_i32$2 >>> 0 < i64toi32_i32$3 >>> 0) + i64toi32_i32$1 | 0; - i64toi32_i32$5 = i64toi32_i32$0 - i64toi32_i32$5 | 0; - $9$hi = i64toi32_i32$5; - i64toi32_i32$5 = i64toi32_i32$0; - i64toi32_i32$0 = i64toi32_i32$2; - i64toi32_i32$2 = $9$hi; - i64toi32_i32$3 = i64toi32_i32$4; - i64toi32_i32$2 = i64toi32_i32$5 & i64toi32_i32$2 | 0; - var$0 = i64toi32_i32$0 & i64toi32_i32$4 | 0; - var$0$hi = i64toi32_i32$2; - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$5 = var$1; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 1; - i64toi32_i32$1 = i64toi32_i32$5 + i64toi32_i32$3 | 0; - i64toi32_i32$4 = i64toi32_i32$2 + i64toi32_i32$0 | 0; - if (i64toi32_i32$1 >>> 0 < i64toi32_i32$3 >>> 0) { - i64toi32_i32$4 = i64toi32_i32$4 + 1 | 0 + $4 = $1; + $3 = $0; + $2 = 0; + $6 = 1; + $5 = $3 - $6 | 0; + $2 = ($3 >>> 0 < $6 >>> 0) + $2 | 0; + $2 = $4 - $2 | 0; + $0 = $2; + $2 = $4; + $4 = $3; + $3 = $0; + $3 = $2 & $3 | 0; + $0 = $4 & $5 | 0; + $1 = $3; + $3 = $7; + $2 = $8; + $4 = 0; + $6 = 1; + $2 = $2 + $6 | 0; + $5 = $3 + $4 | 0; + if ($2 >>> 0 < $6 >>> 0) { + $5 = $5 + 1 | 0 } - var$1 = i64toi32_i32$1; - var$1$hi = i64toi32_i32$4; + $8 = $2; + $7 = $5; continue label$2; }; } - i64toi32_i32$4 = $5$hi; - i64toi32_i32$5 = $5; - i64toi32_i32$HIGH_BITS = i64toi32_i32$4; - return i64toi32_i32$5 | 0; + $5 = $4; + i64toi32_i32$HIGH_BITS = $5; + return $2 | 0; } var FUNCTION_TABLE = []; diff --git a/test/wasm2js/i64-ctz.2asm.js.opt b/test/wasm2js/i64-ctz.2asm.js.opt index a43a10482..b55645f64 100644 --- a/test/wasm2js/i64-ctz.2asm.js.opt +++ b/test/wasm2js/i64-ctz.2asm.js.opt @@ -37,22 +37,22 @@ function asmFunc(global, env, buffer) { } function __wasm_ctz_i64($0, $1) { - var $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0; + var $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0; if ($0 | $1) { { - $3 = 63; - $6 = $3; - $2 = $1 + -1 | 0; - $4 = -1; - $5 = $4 + $0 | 0; - if ($5 >>> 0 < $4 >>> 0) { - $2 = $2 + 1 | 0 + $4 = 63; + $6 = $4; + $3 = $1 + -1 | 0; + $2 = -1; + $5 = $2 + $0 | 0; + if ($5 >>> 0 < $2 >>> 0) { + $3 = $3 + 1 | 0 } - $7 = Math_clz32($0 ^ $5) + 32 | 0; - $0 = Math_clz32($1 ^ $2); - $0 = ($0 | 0) == (32 | 0) ? $7 : $0; + $2 = Math_clz32($0 ^ $5) + 32 | 0; + $0 = Math_clz32($1 ^ $3); + $0 = ($0 | 0) == (32 | 0) ? $2 : $0; $1 = $6 - $0 | 0; - i64toi32_i32$HIGH_BITS = 0 - ($3 >>> 0 < $0 >>> 0) | 0; + i64toi32_i32$HIGH_BITS = 0 - ($4 >>> 0 < $0 >>> 0) | 0; return $1; } } diff --git a/test/wasm2js/i64-lowering.2asm.js b/test/wasm2js/i64-lowering.2asm.js index 6c676d7f8..dd30f6b91 100644 --- a/test/wasm2js/i64-lowering.2asm.js +++ b/test/wasm2js/i64-lowering.2asm.js @@ -21,212 +21,144 @@ function asmFunc(global, env, buffer) { var abort = env.abort; var nan = global.NaN; var infinity = global.Infinity; - function $1($0, $0$hi, $1_1, $1$hi) { + function $1($0, $1_1, $2_1, $3_1) { $0 = $0 | 0; - $0$hi = $0$hi | 0; $1_1 = $1_1 | 0; - $1$hi = $1$hi | 0; - var i64toi32_i32$0 = 0; - i64toi32_i32$0 = $0$hi; - i64toi32_i32$0 = $1$hi; - i64toi32_i32$0 = $0$hi; - return ($0 | 0) == ($1_1 | 0) & (i64toi32_i32$0 | 0) == ($1$hi | 0) | 0 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + return ($0 | 0) == ($2_1 | 0) & ($1_1 | 0) == ($3_1 | 0) | 0 | 0; } - function $2($0, $0$hi, $1_1, $1$hi) { + function $2($0, $1_1, $2_1, $3_1) { $0 = $0 | 0; - $0$hi = $0$hi | 0; $1_1 = $1_1 | 0; - $1$hi = $1$hi | 0; - var i64toi32_i32$0 = 0; - i64toi32_i32$0 = $0$hi; - i64toi32_i32$0 = $1$hi; - i64toi32_i32$0 = $0$hi; - return ($0 | 0) != ($1_1 | 0) | (i64toi32_i32$0 | 0) != ($1$hi | 0) | 0 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + return ($0 | 0) != ($2_1 | 0) | ($1_1 | 0) != ($3_1 | 0) | 0 | 0; } - function $3($0, $0$hi, $1_1, $1$hi) { + function $3($0, $1_1, $2_1, $3_1) { $0 = $0 | 0; - $0$hi = $0$hi | 0; $1_1 = $1_1 | 0; - $1$hi = $1$hi | 0; - var i64toi32_i32$0 = 0, $8_1 = 0, $9_1 = 0, $10_1 = 0, i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0; - i64toi32_i32$0 = $0$hi; - i64toi32_i32$0 = $1$hi; - i64toi32_i32$0 = $0$hi; - i64toi32_i32$2 = $0; - i64toi32_i32$1 = $1$hi; - i64toi32_i32$3 = $1_1; - if ((i64toi32_i32$0 | 0) > ($1$hi | 0)) { - $8_1 = 1 + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + var $4_1 = 0; + $4_1 = $3_1; + if (($1_1 | 0) > ($3_1 | 0)) { + $0 = 1 } else { - { - if ((i64toi32_i32$0 | 0) >= (i64toi32_i32$1 | 0)) { - { - if (i64toi32_i32$2 >>> 0 < i64toi32_i32$3 >>> 0) { - $9_1 = 0 - } else { - $9_1 = 1 - } - $10_1 = $9_1; - } + if (($1_1 | 0) >= ($4_1 | 0)) { + if ($0 >>> 0 < $2_1 >>> 0) { + $0 = 0 } else { - $10_1 = 0 + $0 = 1 } - $8_1 = $10_1; + } else { + $0 = 0 } } - return $8_1 | 0; + return $0 | 0; } - function $4($0, $0$hi, $1_1, $1$hi) { + function $4($0, $1_1, $2_1, $3_1) { $0 = $0 | 0; - $0$hi = $0$hi | 0; $1_1 = $1_1 | 0; - $1$hi = $1$hi | 0; - var i64toi32_i32$0 = 0, $8_1 = 0, $9_1 = 0, $10_1 = 0, i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0; - i64toi32_i32$0 = $0$hi; - i64toi32_i32$0 = $1$hi; - i64toi32_i32$0 = $0$hi; - i64toi32_i32$2 = $0; - i64toi32_i32$1 = $1$hi; - i64toi32_i32$3 = $1_1; - if ((i64toi32_i32$0 | 0) > ($1$hi | 0)) { - $8_1 = 1 + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + var $4_1 = 0; + $4_1 = $3_1; + if (($1_1 | 0) > ($3_1 | 0)) { + $0 = 1 } else { - { - if ((i64toi32_i32$0 | 0) >= (i64toi32_i32$1 | 0)) { - { - if (i64toi32_i32$2 >>> 0 <= i64toi32_i32$3 >>> 0) { - $9_1 = 0 - } else { - $9_1 = 1 - } - $10_1 = $9_1; - } + if (($1_1 | 0) >= ($4_1 | 0)) { + if ($0 >>> 0 <= $2_1 >>> 0) { + $0 = 0 } else { - $10_1 = 0 + $0 = 1 } - $8_1 = $10_1; + } else { + $0 = 0 } } - return $8_1 | 0; + return $0 | 0; } - function $5($0, $0$hi, $1_1, $1$hi) { + function $5($0, $1_1, $2_1, $3_1) { $0 = $0 | 0; - $0$hi = $0$hi | 0; $1_1 = $1_1 | 0; - $1$hi = $1$hi | 0; - var i64toi32_i32$0 = 0, $8_1 = 0, $9_1 = 0, $10_1 = 0, i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0; - i64toi32_i32$0 = $0$hi; - i64toi32_i32$0 = $1$hi; - i64toi32_i32$0 = $0$hi; - i64toi32_i32$2 = $0; - i64toi32_i32$1 = $1$hi; - i64toi32_i32$3 = $1_1; - if ((i64toi32_i32$0 | 0) < ($1$hi | 0)) { - $8_1 = 1 + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + var $4_1 = 0; + $4_1 = $3_1; + if (($1_1 | 0) < ($3_1 | 0)) { + $0 = 1 } else { - { - if ((i64toi32_i32$0 | 0) <= (i64toi32_i32$1 | 0)) { - { - if (i64toi32_i32$2 >>> 0 > i64toi32_i32$3 >>> 0) { - $9_1 = 0 - } else { - $9_1 = 1 - } - $10_1 = $9_1; - } + if (($1_1 | 0) <= ($4_1 | 0)) { + if ($0 >>> 0 > $2_1 >>> 0) { + $0 = 0 } else { - $10_1 = 0 + $0 = 1 } - $8_1 = $10_1; + } else { + $0 = 0 } } - return $8_1 | 0; + return $0 | 0; } - function $6($0, $0$hi, $1_1, $1$hi) { + function $6($0, $1_1, $2_1, $3_1) { $0 = $0 | 0; - $0$hi = $0$hi | 0; $1_1 = $1_1 | 0; - $1$hi = $1$hi | 0; - var i64toi32_i32$0 = 0, $8_1 = 0, $9_1 = 0, $10_1 = 0, i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0; - i64toi32_i32$0 = $0$hi; - i64toi32_i32$0 = $1$hi; - i64toi32_i32$0 = $0$hi; - i64toi32_i32$2 = $0; - i64toi32_i32$1 = $1$hi; - i64toi32_i32$3 = $1_1; - if ((i64toi32_i32$0 | 0) < ($1$hi | 0)) { - $8_1 = 1 + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + var $4_1 = 0; + $4_1 = $3_1; + if (($1_1 | 0) < ($3_1 | 0)) { + $0 = 1 } else { - { - if ((i64toi32_i32$0 | 0) <= (i64toi32_i32$1 | 0)) { - { - if (i64toi32_i32$2 >>> 0 >= i64toi32_i32$3 >>> 0) { - $9_1 = 0 - } else { - $9_1 = 1 - } - $10_1 = $9_1; - } + if (($1_1 | 0) <= ($4_1 | 0)) { + if ($0 >>> 0 >= $2_1 >>> 0) { + $0 = 0 } else { - $10_1 = 0 + $0 = 1 } - $8_1 = $10_1; + } else { + $0 = 0 } } - return $8_1 | 0; + return $0 | 0; } - function $7($0, $0$hi, $1_1, $1$hi) { + function $7($0, $1_1, $2_1, $3_1) { $0 = $0 | 0; - $0$hi = $0$hi | 0; $1_1 = $1_1 | 0; - $1$hi = $1$hi | 0; - var i64toi32_i32$0 = 0; - i64toi32_i32$0 = $0$hi; - i64toi32_i32$0 = $1$hi; - i64toi32_i32$0 = $0$hi; - return i64toi32_i32$0 >>> 0 > $1$hi >>> 0 | ((i64toi32_i32$0 | 0) == ($1$hi | 0) & $0 >>> 0 >= $1_1 >>> 0 | 0) | 0 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + return $1_1 >>> 0 > $3_1 >>> 0 | (($1_1 | 0) == ($3_1 | 0) & $0 >>> 0 >= $2_1 >>> 0 | 0) | 0 | 0; } - function $8($0, $0$hi, $1_1, $1$hi) { + function $8($0, $1_1, $2_1, $3_1) { $0 = $0 | 0; - $0$hi = $0$hi | 0; $1_1 = $1_1 | 0; - $1$hi = $1$hi | 0; - var i64toi32_i32$0 = 0; - i64toi32_i32$0 = $0$hi; - i64toi32_i32$0 = $1$hi; - i64toi32_i32$0 = $0$hi; - return i64toi32_i32$0 >>> 0 > $1$hi >>> 0 | ((i64toi32_i32$0 | 0) == ($1$hi | 0) & $0 >>> 0 > $1_1 >>> 0 | 0) | 0 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + return $1_1 >>> 0 > $3_1 >>> 0 | (($1_1 | 0) == ($3_1 | 0) & $0 >>> 0 > $2_1 >>> 0 | 0) | 0 | 0; } - function $9($0, $0$hi, $1_1, $1$hi) { + function $9($0, $1_1, $2_1, $3_1) { $0 = $0 | 0; - $0$hi = $0$hi | 0; $1_1 = $1_1 | 0; - $1$hi = $1$hi | 0; - var i64toi32_i32$0 = 0; - i64toi32_i32$0 = $0$hi; - i64toi32_i32$0 = $1$hi; - i64toi32_i32$0 = $0$hi; - return i64toi32_i32$0 >>> 0 < $1$hi >>> 0 | ((i64toi32_i32$0 | 0) == ($1$hi | 0) & $0 >>> 0 <= $1_1 >>> 0 | 0) | 0 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + return $1_1 >>> 0 < $3_1 >>> 0 | (($1_1 | 0) == ($3_1 | 0) & $0 >>> 0 <= $2_1 >>> 0 | 0) | 0 | 0; } - function $10($0, $0$hi, $1_1, $1$hi) { + function $10($0, $1_1, $2_1, $3_1) { $0 = $0 | 0; - $0$hi = $0$hi | 0; $1_1 = $1_1 | 0; - $1$hi = $1$hi | 0; - var i64toi32_i32$0 = 0; - i64toi32_i32$0 = $0$hi; - i64toi32_i32$0 = $1$hi; - i64toi32_i32$0 = $0$hi; - return i64toi32_i32$0 >>> 0 < $1$hi >>> 0 | ((i64toi32_i32$0 | 0) == ($1$hi | 0) & $0 >>> 0 < $1_1 >>> 0 | 0) | 0 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + return $1_1 >>> 0 < $3_1 >>> 0 | (($1_1 | 0) == ($3_1 | 0) & $0 >>> 0 < $2_1 >>> 0 | 0) | 0 | 0; } function legalstub$1($0, $1_1, $2_1, $3_1) { @@ -234,64 +166,55 @@ function asmFunc(global, env, buffer) { $1_1 = $1_1 | 0; $2_1 = $2_1 | 0; $3_1 = $3_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $19 = 0, $20 = 0, $5_1 = 0, $5$hi = 0, $8$hi = 0, $9_1 = 0, $9$hi = 0, $11 = 0, $11$hi = 0, $14$hi = 0, $15 = 0, $15$hi = 0; - i64toi32_i32$0 = 0; - $5_1 = $0; - $5$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $19 = 0; + var $4_1 = 0, $5_1 = 0, $6_1 = 0, $7_1 = 0, $8_1 = 0, $9_1 = 0; + $6_1 = 0; + $7_1 = $0; + $8_1 = $6_1; + $6_1 = 0; + $4_1 = 32; + $5_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { + { + $0 = $1_1 << $5_1 | 0; + $4_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $19 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $0 = ((1 << $5_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $5_1 | 0) | 0) | 0 | ($6_1 << $5_1 | 0) | 0; + $4_1 = $1_1 << $5_1 | 0; } } - $8$hi = i64toi32_i32$1; - i64toi32_i32$1 = $5$hi; - i64toi32_i32$0 = $5_1; - i64toi32_i32$2 = $8$hi; - i64toi32_i32$3 = $19; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - $9_1 = i64toi32_i32$0 | i64toi32_i32$3 | 0; - $9$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - $11 = $2_1; - $11$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$1 = $3_1; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = i64toi32_i32$1 << i64toi32_i32$4 | 0; - $20 = 0; + $1_1 = $0; + $0 = $8_1; + $6_1 = $7_1; + $1_1 = $0 | $1_1 | 0; + $9_1 = $6_1 | $4_1 | 0; + $7_1 = $1_1; + $1_1 = 0; + $8_1 = $1_1; + $1_1 = 0; + $0 = $3_1; + $4_1 = 32; + $5_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { + { + $6_1 = $0 << $5_1 | 0; + $4_1 = 0; } } else { { - i64toi32_i32$0 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$1 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$2 << i64toi32_i32$4 | 0) | 0; - $20 = i64toi32_i32$1 << i64toi32_i32$4 | 0; + $6_1 = ((1 << $5_1 | 0) - 1 | 0) & ($0 >>> (32 - $5_1 | 0) | 0) | 0 | ($1_1 << $5_1 | 0) | 0; + $4_1 = $0 << $5_1 | 0; } } - $14$hi = i64toi32_i32$0; - i64toi32_i32$0 = $11$hi; - i64toi32_i32$2 = $11; - i64toi32_i32$1 = $14$hi; - i64toi32_i32$3 = $20; - i64toi32_i32$1 = i64toi32_i32$0 | i64toi32_i32$1 | 0; - $15 = i64toi32_i32$2 | i64toi32_i32$3 | 0; - $15$hi = i64toi32_i32$1; - i64toi32_i32$1 = $9$hi; - i64toi32_i32$2 = $15$hi; - return $1($9_1 | 0, i64toi32_i32$1 | 0, $15 | 0, i64toi32_i32$2 | 0) | 0 | 0; + $0 = $6_1; + $6_1 = $8_1; + $1_1 = $2_1; + $0 = $6_1 | $0 | 0; + $2_1 = $1_1 | $4_1 | 0; + $1_1 = $0; + $0 = $7_1; + return $1($9_1 | 0, $0 | 0, $2_1 | 0, $1_1 | 0) | 0 | 0; } function legalstub$2($0, $1_1, $2_1, $3_1) { @@ -299,64 +222,55 @@ function asmFunc(global, env, buffer) { $1_1 = $1_1 | 0; $2_1 = $2_1 | 0; $3_1 = $3_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $19 = 0, $20 = 0, $5_1 = 0, $5$hi = 0, $8$hi = 0, $9_1 = 0, $9$hi = 0, $11 = 0, $11$hi = 0, $14$hi = 0, $15 = 0, $15$hi = 0; - i64toi32_i32$0 = 0; - $5_1 = $0; - $5$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $19 = 0; + var $4_1 = 0, $5_1 = 0, $6_1 = 0, $7_1 = 0, $8_1 = 0, $9_1 = 0; + $6_1 = 0; + $7_1 = $0; + $8_1 = $6_1; + $6_1 = 0; + $4_1 = 32; + $5_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { + { + $0 = $1_1 << $5_1 | 0; + $4_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $19 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $0 = ((1 << $5_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $5_1 | 0) | 0) | 0 | ($6_1 << $5_1 | 0) | 0; + $4_1 = $1_1 << $5_1 | 0; } } - $8$hi = i64toi32_i32$1; - i64toi32_i32$1 = $5$hi; - i64toi32_i32$0 = $5_1; - i64toi32_i32$2 = $8$hi; - i64toi32_i32$3 = $19; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - $9_1 = i64toi32_i32$0 | i64toi32_i32$3 | 0; - $9$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - $11 = $2_1; - $11$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$1 = $3_1; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = i64toi32_i32$1 << i64toi32_i32$4 | 0; - $20 = 0; + $1_1 = $0; + $0 = $8_1; + $6_1 = $7_1; + $1_1 = $0 | $1_1 | 0; + $9_1 = $6_1 | $4_1 | 0; + $7_1 = $1_1; + $1_1 = 0; + $8_1 = $1_1; + $1_1 = 0; + $0 = $3_1; + $4_1 = 32; + $5_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { + { + $6_1 = $0 << $5_1 | 0; + $4_1 = 0; } } else { { - i64toi32_i32$0 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$1 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$2 << i64toi32_i32$4 | 0) | 0; - $20 = i64toi32_i32$1 << i64toi32_i32$4 | 0; + $6_1 = ((1 << $5_1 | 0) - 1 | 0) & ($0 >>> (32 - $5_1 | 0) | 0) | 0 | ($1_1 << $5_1 | 0) | 0; + $4_1 = $0 << $5_1 | 0; } } - $14$hi = i64toi32_i32$0; - i64toi32_i32$0 = $11$hi; - i64toi32_i32$2 = $11; - i64toi32_i32$1 = $14$hi; - i64toi32_i32$3 = $20; - i64toi32_i32$1 = i64toi32_i32$0 | i64toi32_i32$1 | 0; - $15 = i64toi32_i32$2 | i64toi32_i32$3 | 0; - $15$hi = i64toi32_i32$1; - i64toi32_i32$1 = $9$hi; - i64toi32_i32$2 = $15$hi; - return $2($9_1 | 0, i64toi32_i32$1 | 0, $15 | 0, i64toi32_i32$2 | 0) | 0 | 0; + $0 = $6_1; + $6_1 = $8_1; + $1_1 = $2_1; + $0 = $6_1 | $0 | 0; + $2_1 = $1_1 | $4_1 | 0; + $1_1 = $0; + $0 = $7_1; + return $2($9_1 | 0, $0 | 0, $2_1 | 0, $1_1 | 0) | 0 | 0; } function legalstub$3($0, $1_1, $2_1, $3_1) { @@ -364,64 +278,55 @@ function asmFunc(global, env, buffer) { $1_1 = $1_1 | 0; $2_1 = $2_1 | 0; $3_1 = $3_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $19 = 0, $20 = 0, $5_1 = 0, $5$hi = 0, $8$hi = 0, $9_1 = 0, $9$hi = 0, $11 = 0, $11$hi = 0, $14$hi = 0, $15 = 0, $15$hi = 0; - i64toi32_i32$0 = 0; - $5_1 = $0; - $5$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $19 = 0; + var $4_1 = 0, $5_1 = 0, $6_1 = 0, $7_1 = 0, $8_1 = 0, $9_1 = 0; + $6_1 = 0; + $7_1 = $0; + $8_1 = $6_1; + $6_1 = 0; + $4_1 = 32; + $5_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { + { + $0 = $1_1 << $5_1 | 0; + $4_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $19 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $0 = ((1 << $5_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $5_1 | 0) | 0) | 0 | ($6_1 << $5_1 | 0) | 0; + $4_1 = $1_1 << $5_1 | 0; } } - $8$hi = i64toi32_i32$1; - i64toi32_i32$1 = $5$hi; - i64toi32_i32$0 = $5_1; - i64toi32_i32$2 = $8$hi; - i64toi32_i32$3 = $19; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - $9_1 = i64toi32_i32$0 | i64toi32_i32$3 | 0; - $9$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - $11 = $2_1; - $11$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$1 = $3_1; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = i64toi32_i32$1 << i64toi32_i32$4 | 0; - $20 = 0; + $1_1 = $0; + $0 = $8_1; + $6_1 = $7_1; + $1_1 = $0 | $1_1 | 0; + $9_1 = $6_1 | $4_1 | 0; + $7_1 = $1_1; + $1_1 = 0; + $8_1 = $1_1; + $1_1 = 0; + $0 = $3_1; + $4_1 = 32; + $5_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { + { + $6_1 = $0 << $5_1 | 0; + $4_1 = 0; } } else { { - i64toi32_i32$0 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$1 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$2 << i64toi32_i32$4 | 0) | 0; - $20 = i64toi32_i32$1 << i64toi32_i32$4 | 0; + $6_1 = ((1 << $5_1 | 0) - 1 | 0) & ($0 >>> (32 - $5_1 | 0) | 0) | 0 | ($1_1 << $5_1 | 0) | 0; + $4_1 = $0 << $5_1 | 0; } } - $14$hi = i64toi32_i32$0; - i64toi32_i32$0 = $11$hi; - i64toi32_i32$2 = $11; - i64toi32_i32$1 = $14$hi; - i64toi32_i32$3 = $20; - i64toi32_i32$1 = i64toi32_i32$0 | i64toi32_i32$1 | 0; - $15 = i64toi32_i32$2 | i64toi32_i32$3 | 0; - $15$hi = i64toi32_i32$1; - i64toi32_i32$1 = $9$hi; - i64toi32_i32$2 = $15$hi; - return $3($9_1 | 0, i64toi32_i32$1 | 0, $15 | 0, i64toi32_i32$2 | 0) | 0 | 0; + $0 = $6_1; + $6_1 = $8_1; + $1_1 = $2_1; + $0 = $6_1 | $0 | 0; + $2_1 = $1_1 | $4_1 | 0; + $1_1 = $0; + $0 = $7_1; + return $3($9_1 | 0, $0 | 0, $2_1 | 0, $1_1 | 0) | 0 | 0; } function legalstub$4($0, $1_1, $2_1, $3_1) { @@ -429,64 +334,55 @@ function asmFunc(global, env, buffer) { $1_1 = $1_1 | 0; $2_1 = $2_1 | 0; $3_1 = $3_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $19 = 0, $20 = 0, $5_1 = 0, $5$hi = 0, $8$hi = 0, $9_1 = 0, $9$hi = 0, $11 = 0, $11$hi = 0, $14$hi = 0, $15 = 0, $15$hi = 0; - i64toi32_i32$0 = 0; - $5_1 = $0; - $5$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $19 = 0; + var $4_1 = 0, $5_1 = 0, $6_1 = 0, $7_1 = 0, $8_1 = 0, $9_1 = 0; + $6_1 = 0; + $7_1 = $0; + $8_1 = $6_1; + $6_1 = 0; + $4_1 = 32; + $5_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { + { + $0 = $1_1 << $5_1 | 0; + $4_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $19 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $0 = ((1 << $5_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $5_1 | 0) | 0) | 0 | ($6_1 << $5_1 | 0) | 0; + $4_1 = $1_1 << $5_1 | 0; } } - $8$hi = i64toi32_i32$1; - i64toi32_i32$1 = $5$hi; - i64toi32_i32$0 = $5_1; - i64toi32_i32$2 = $8$hi; - i64toi32_i32$3 = $19; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - $9_1 = i64toi32_i32$0 | i64toi32_i32$3 | 0; - $9$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - $11 = $2_1; - $11$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$1 = $3_1; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = i64toi32_i32$1 << i64toi32_i32$4 | 0; - $20 = 0; + $1_1 = $0; + $0 = $8_1; + $6_1 = $7_1; + $1_1 = $0 | $1_1 | 0; + $9_1 = $6_1 | $4_1 | 0; + $7_1 = $1_1; + $1_1 = 0; + $8_1 = $1_1; + $1_1 = 0; + $0 = $3_1; + $4_1 = 32; + $5_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { + { + $6_1 = $0 << $5_1 | 0; + $4_1 = 0; } } else { { - i64toi32_i32$0 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$1 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$2 << i64toi32_i32$4 | 0) | 0; - $20 = i64toi32_i32$1 << i64toi32_i32$4 | 0; + $6_1 = ((1 << $5_1 | 0) - 1 | 0) & ($0 >>> (32 - $5_1 | 0) | 0) | 0 | ($1_1 << $5_1 | 0) | 0; + $4_1 = $0 << $5_1 | 0; } } - $14$hi = i64toi32_i32$0; - i64toi32_i32$0 = $11$hi; - i64toi32_i32$2 = $11; - i64toi32_i32$1 = $14$hi; - i64toi32_i32$3 = $20; - i64toi32_i32$1 = i64toi32_i32$0 | i64toi32_i32$1 | 0; - $15 = i64toi32_i32$2 | i64toi32_i32$3 | 0; - $15$hi = i64toi32_i32$1; - i64toi32_i32$1 = $9$hi; - i64toi32_i32$2 = $15$hi; - return $4($9_1 | 0, i64toi32_i32$1 | 0, $15 | 0, i64toi32_i32$2 | 0) | 0 | 0; + $0 = $6_1; + $6_1 = $8_1; + $1_1 = $2_1; + $0 = $6_1 | $0 | 0; + $2_1 = $1_1 | $4_1 | 0; + $1_1 = $0; + $0 = $7_1; + return $4($9_1 | 0, $0 | 0, $2_1 | 0, $1_1 | 0) | 0 | 0; } function legalstub$5($0, $1_1, $2_1, $3_1) { @@ -494,64 +390,55 @@ function asmFunc(global, env, buffer) { $1_1 = $1_1 | 0; $2_1 = $2_1 | 0; $3_1 = $3_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $19 = 0, $20 = 0, $5_1 = 0, $5$hi = 0, $8$hi = 0, $9_1 = 0, $9$hi = 0, $11 = 0, $11$hi = 0, $14$hi = 0, $15 = 0, $15$hi = 0; - i64toi32_i32$0 = 0; - $5_1 = $0; - $5$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $19 = 0; + var $4_1 = 0, $5_1 = 0, $6_1 = 0, $7_1 = 0, $8_1 = 0, $9_1 = 0; + $6_1 = 0; + $7_1 = $0; + $8_1 = $6_1; + $6_1 = 0; + $4_1 = 32; + $5_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { + { + $0 = $1_1 << $5_1 | 0; + $4_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $19 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $0 = ((1 << $5_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $5_1 | 0) | 0) | 0 | ($6_1 << $5_1 | 0) | 0; + $4_1 = $1_1 << $5_1 | 0; } } - $8$hi = i64toi32_i32$1; - i64toi32_i32$1 = $5$hi; - i64toi32_i32$0 = $5_1; - i64toi32_i32$2 = $8$hi; - i64toi32_i32$3 = $19; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - $9_1 = i64toi32_i32$0 | i64toi32_i32$3 | 0; - $9$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - $11 = $2_1; - $11$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$1 = $3_1; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = i64toi32_i32$1 << i64toi32_i32$4 | 0; - $20 = 0; + $1_1 = $0; + $0 = $8_1; + $6_1 = $7_1; + $1_1 = $0 | $1_1 | 0; + $9_1 = $6_1 | $4_1 | 0; + $7_1 = $1_1; + $1_1 = 0; + $8_1 = $1_1; + $1_1 = 0; + $0 = $3_1; + $4_1 = 32; + $5_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { + { + $6_1 = $0 << $5_1 | 0; + $4_1 = 0; } } else { { - i64toi32_i32$0 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$1 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$2 << i64toi32_i32$4 | 0) | 0; - $20 = i64toi32_i32$1 << i64toi32_i32$4 | 0; + $6_1 = ((1 << $5_1 | 0) - 1 | 0) & ($0 >>> (32 - $5_1 | 0) | 0) | 0 | ($1_1 << $5_1 | 0) | 0; + $4_1 = $0 << $5_1 | 0; } } - $14$hi = i64toi32_i32$0; - i64toi32_i32$0 = $11$hi; - i64toi32_i32$2 = $11; - i64toi32_i32$1 = $14$hi; - i64toi32_i32$3 = $20; - i64toi32_i32$1 = i64toi32_i32$0 | i64toi32_i32$1 | 0; - $15 = i64toi32_i32$2 | i64toi32_i32$3 | 0; - $15$hi = i64toi32_i32$1; - i64toi32_i32$1 = $9$hi; - i64toi32_i32$2 = $15$hi; - return $5($9_1 | 0, i64toi32_i32$1 | 0, $15 | 0, i64toi32_i32$2 | 0) | 0 | 0; + $0 = $6_1; + $6_1 = $8_1; + $1_1 = $2_1; + $0 = $6_1 | $0 | 0; + $2_1 = $1_1 | $4_1 | 0; + $1_1 = $0; + $0 = $7_1; + return $5($9_1 | 0, $0 | 0, $2_1 | 0, $1_1 | 0) | 0 | 0; } function legalstub$6($0, $1_1, $2_1, $3_1) { @@ -559,64 +446,55 @@ function asmFunc(global, env, buffer) { $1_1 = $1_1 | 0; $2_1 = $2_1 | 0; $3_1 = $3_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $19 = 0, $20 = 0, $5_1 = 0, $5$hi = 0, $8$hi = 0, $9_1 = 0, $9$hi = 0, $11 = 0, $11$hi = 0, $14$hi = 0, $15 = 0, $15$hi = 0; - i64toi32_i32$0 = 0; - $5_1 = $0; - $5$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $19 = 0; + var $4_1 = 0, $5_1 = 0, $6_1 = 0, $7_1 = 0, $8_1 = 0, $9_1 = 0; + $6_1 = 0; + $7_1 = $0; + $8_1 = $6_1; + $6_1 = 0; + $4_1 = 32; + $5_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { + { + $0 = $1_1 << $5_1 | 0; + $4_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $19 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $0 = ((1 << $5_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $5_1 | 0) | 0) | 0 | ($6_1 << $5_1 | 0) | 0; + $4_1 = $1_1 << $5_1 | 0; } } - $8$hi = i64toi32_i32$1; - i64toi32_i32$1 = $5$hi; - i64toi32_i32$0 = $5_1; - i64toi32_i32$2 = $8$hi; - i64toi32_i32$3 = $19; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - $9_1 = i64toi32_i32$0 | i64toi32_i32$3 | 0; - $9$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - $11 = $2_1; - $11$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$1 = $3_1; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = i64toi32_i32$1 << i64toi32_i32$4 | 0; - $20 = 0; + $1_1 = $0; + $0 = $8_1; + $6_1 = $7_1; + $1_1 = $0 | $1_1 | 0; + $9_1 = $6_1 | $4_1 | 0; + $7_1 = $1_1; + $1_1 = 0; + $8_1 = $1_1; + $1_1 = 0; + $0 = $3_1; + $4_1 = 32; + $5_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { + { + $6_1 = $0 << $5_1 | 0; + $4_1 = 0; } } else { { - i64toi32_i32$0 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$1 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$2 << i64toi32_i32$4 | 0) | 0; - $20 = i64toi32_i32$1 << i64toi32_i32$4 | 0; + $6_1 = ((1 << $5_1 | 0) - 1 | 0) & ($0 >>> (32 - $5_1 | 0) | 0) | 0 | ($1_1 << $5_1 | 0) | 0; + $4_1 = $0 << $5_1 | 0; } } - $14$hi = i64toi32_i32$0; - i64toi32_i32$0 = $11$hi; - i64toi32_i32$2 = $11; - i64toi32_i32$1 = $14$hi; - i64toi32_i32$3 = $20; - i64toi32_i32$1 = i64toi32_i32$0 | i64toi32_i32$1 | 0; - $15 = i64toi32_i32$2 | i64toi32_i32$3 | 0; - $15$hi = i64toi32_i32$1; - i64toi32_i32$1 = $9$hi; - i64toi32_i32$2 = $15$hi; - return $6($9_1 | 0, i64toi32_i32$1 | 0, $15 | 0, i64toi32_i32$2 | 0) | 0 | 0; + $0 = $6_1; + $6_1 = $8_1; + $1_1 = $2_1; + $0 = $6_1 | $0 | 0; + $2_1 = $1_1 | $4_1 | 0; + $1_1 = $0; + $0 = $7_1; + return $6($9_1 | 0, $0 | 0, $2_1 | 0, $1_1 | 0) | 0 | 0; } function legalstub$7($0, $1_1, $2_1, $3_1) { @@ -624,64 +502,55 @@ function asmFunc(global, env, buffer) { $1_1 = $1_1 | 0; $2_1 = $2_1 | 0; $3_1 = $3_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $19 = 0, $20 = 0, $5_1 = 0, $5$hi = 0, $8$hi = 0, $9_1 = 0, $9$hi = 0, $11 = 0, $11$hi = 0, $14$hi = 0, $15 = 0, $15$hi = 0; - i64toi32_i32$0 = 0; - $5_1 = $0; - $5$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $19 = 0; + var $4_1 = 0, $5_1 = 0, $6_1 = 0, $7_1 = 0, $8_1 = 0, $9_1 = 0; + $6_1 = 0; + $7_1 = $0; + $8_1 = $6_1; + $6_1 = 0; + $4_1 = 32; + $5_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { + { + $0 = $1_1 << $5_1 | 0; + $4_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $19 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $0 = ((1 << $5_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $5_1 | 0) | 0) | 0 | ($6_1 << $5_1 | 0) | 0; + $4_1 = $1_1 << $5_1 | 0; } } - $8$hi = i64toi32_i32$1; - i64toi32_i32$1 = $5$hi; - i64toi32_i32$0 = $5_1; - i64toi32_i32$2 = $8$hi; - i64toi32_i32$3 = $19; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - $9_1 = i64toi32_i32$0 | i64toi32_i32$3 | 0; - $9$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - $11 = $2_1; - $11$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$1 = $3_1; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = i64toi32_i32$1 << i64toi32_i32$4 | 0; - $20 = 0; + $1_1 = $0; + $0 = $8_1; + $6_1 = $7_1; + $1_1 = $0 | $1_1 | 0; + $9_1 = $6_1 | $4_1 | 0; + $7_1 = $1_1; + $1_1 = 0; + $8_1 = $1_1; + $1_1 = 0; + $0 = $3_1; + $4_1 = 32; + $5_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { + { + $6_1 = $0 << $5_1 | 0; + $4_1 = 0; } } else { { - i64toi32_i32$0 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$1 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$2 << i64toi32_i32$4 | 0) | 0; - $20 = i64toi32_i32$1 << i64toi32_i32$4 | 0; + $6_1 = ((1 << $5_1 | 0) - 1 | 0) & ($0 >>> (32 - $5_1 | 0) | 0) | 0 | ($1_1 << $5_1 | 0) | 0; + $4_1 = $0 << $5_1 | 0; } } - $14$hi = i64toi32_i32$0; - i64toi32_i32$0 = $11$hi; - i64toi32_i32$2 = $11; - i64toi32_i32$1 = $14$hi; - i64toi32_i32$3 = $20; - i64toi32_i32$1 = i64toi32_i32$0 | i64toi32_i32$1 | 0; - $15 = i64toi32_i32$2 | i64toi32_i32$3 | 0; - $15$hi = i64toi32_i32$1; - i64toi32_i32$1 = $9$hi; - i64toi32_i32$2 = $15$hi; - return $7($9_1 | 0, i64toi32_i32$1 | 0, $15 | 0, i64toi32_i32$2 | 0) | 0 | 0; + $0 = $6_1; + $6_1 = $8_1; + $1_1 = $2_1; + $0 = $6_1 | $0 | 0; + $2_1 = $1_1 | $4_1 | 0; + $1_1 = $0; + $0 = $7_1; + return $7($9_1 | 0, $0 | 0, $2_1 | 0, $1_1 | 0) | 0 | 0; } function legalstub$8($0, $1_1, $2_1, $3_1) { @@ -689,64 +558,55 @@ function asmFunc(global, env, buffer) { $1_1 = $1_1 | 0; $2_1 = $2_1 | 0; $3_1 = $3_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $19 = 0, $20 = 0, $5_1 = 0, $5$hi = 0, $8$hi = 0, $9_1 = 0, $9$hi = 0, $11 = 0, $11$hi = 0, $14$hi = 0, $15 = 0, $15$hi = 0; - i64toi32_i32$0 = 0; - $5_1 = $0; - $5$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $19 = 0; + var $4_1 = 0, $5_1 = 0, $6_1 = 0, $7_1 = 0, $8_1 = 0, $9_1 = 0; + $6_1 = 0; + $7_1 = $0; + $8_1 = $6_1; + $6_1 = 0; + $4_1 = 32; + $5_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { + { + $0 = $1_1 << $5_1 | 0; + $4_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $19 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $0 = ((1 << $5_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $5_1 | 0) | 0) | 0 | ($6_1 << $5_1 | 0) | 0; + $4_1 = $1_1 << $5_1 | 0; } } - $8$hi = i64toi32_i32$1; - i64toi32_i32$1 = $5$hi; - i64toi32_i32$0 = $5_1; - i64toi32_i32$2 = $8$hi; - i64toi32_i32$3 = $19; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - $9_1 = i64toi32_i32$0 | i64toi32_i32$3 | 0; - $9$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - $11 = $2_1; - $11$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$1 = $3_1; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = i64toi32_i32$1 << i64toi32_i32$4 | 0; - $20 = 0; + $1_1 = $0; + $0 = $8_1; + $6_1 = $7_1; + $1_1 = $0 | $1_1 | 0; + $9_1 = $6_1 | $4_1 | 0; + $7_1 = $1_1; + $1_1 = 0; + $8_1 = $1_1; + $1_1 = 0; + $0 = $3_1; + $4_1 = 32; + $5_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { + { + $6_1 = $0 << $5_1 | 0; + $4_1 = 0; } } else { { - i64toi32_i32$0 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$1 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$2 << i64toi32_i32$4 | 0) | 0; - $20 = i64toi32_i32$1 << i64toi32_i32$4 | 0; + $6_1 = ((1 << $5_1 | 0) - 1 | 0) & ($0 >>> (32 - $5_1 | 0) | 0) | 0 | ($1_1 << $5_1 | 0) | 0; + $4_1 = $0 << $5_1 | 0; } } - $14$hi = i64toi32_i32$0; - i64toi32_i32$0 = $11$hi; - i64toi32_i32$2 = $11; - i64toi32_i32$1 = $14$hi; - i64toi32_i32$3 = $20; - i64toi32_i32$1 = i64toi32_i32$0 | i64toi32_i32$1 | 0; - $15 = i64toi32_i32$2 | i64toi32_i32$3 | 0; - $15$hi = i64toi32_i32$1; - i64toi32_i32$1 = $9$hi; - i64toi32_i32$2 = $15$hi; - return $8($9_1 | 0, i64toi32_i32$1 | 0, $15 | 0, i64toi32_i32$2 | 0) | 0 | 0; + $0 = $6_1; + $6_1 = $8_1; + $1_1 = $2_1; + $0 = $6_1 | $0 | 0; + $2_1 = $1_1 | $4_1 | 0; + $1_1 = $0; + $0 = $7_1; + return $8($9_1 | 0, $0 | 0, $2_1 | 0, $1_1 | 0) | 0 | 0; } function legalstub$9($0, $1_1, $2_1, $3_1) { @@ -754,64 +614,55 @@ function asmFunc(global, env, buffer) { $1_1 = $1_1 | 0; $2_1 = $2_1 | 0; $3_1 = $3_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $19 = 0, $20 = 0, $5_1 = 0, $5$hi = 0, $8$hi = 0, $9_1 = 0, $9$hi = 0, $11 = 0, $11$hi = 0, $14$hi = 0, $15 = 0, $15$hi = 0; - i64toi32_i32$0 = 0; - $5_1 = $0; - $5$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $19 = 0; + var $4_1 = 0, $5_1 = 0, $6_1 = 0, $7_1 = 0, $8_1 = 0, $9_1 = 0; + $6_1 = 0; + $7_1 = $0; + $8_1 = $6_1; + $6_1 = 0; + $4_1 = 32; + $5_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { + { + $0 = $1_1 << $5_1 | 0; + $4_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $19 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $0 = ((1 << $5_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $5_1 | 0) | 0) | 0 | ($6_1 << $5_1 | 0) | 0; + $4_1 = $1_1 << $5_1 | 0; } } - $8$hi = i64toi32_i32$1; - i64toi32_i32$1 = $5$hi; - i64toi32_i32$0 = $5_1; - i64toi32_i32$2 = $8$hi; - i64toi32_i32$3 = $19; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - $9_1 = i64toi32_i32$0 | i64toi32_i32$3 | 0; - $9$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - $11 = $2_1; - $11$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$1 = $3_1; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = i64toi32_i32$1 << i64toi32_i32$4 | 0; - $20 = 0; + $1_1 = $0; + $0 = $8_1; + $6_1 = $7_1; + $1_1 = $0 | $1_1 | 0; + $9_1 = $6_1 | $4_1 | 0; + $7_1 = $1_1; + $1_1 = 0; + $8_1 = $1_1; + $1_1 = 0; + $0 = $3_1; + $4_1 = 32; + $5_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { + { + $6_1 = $0 << $5_1 | 0; + $4_1 = 0; } } else { { - i64toi32_i32$0 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$1 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$2 << i64toi32_i32$4 | 0) | 0; - $20 = i64toi32_i32$1 << i64toi32_i32$4 | 0; + $6_1 = ((1 << $5_1 | 0) - 1 | 0) & ($0 >>> (32 - $5_1 | 0) | 0) | 0 | ($1_1 << $5_1 | 0) | 0; + $4_1 = $0 << $5_1 | 0; } } - $14$hi = i64toi32_i32$0; - i64toi32_i32$0 = $11$hi; - i64toi32_i32$2 = $11; - i64toi32_i32$1 = $14$hi; - i64toi32_i32$3 = $20; - i64toi32_i32$1 = i64toi32_i32$0 | i64toi32_i32$1 | 0; - $15 = i64toi32_i32$2 | i64toi32_i32$3 | 0; - $15$hi = i64toi32_i32$1; - i64toi32_i32$1 = $9$hi; - i64toi32_i32$2 = $15$hi; - return $9($9_1 | 0, i64toi32_i32$1 | 0, $15 | 0, i64toi32_i32$2 | 0) | 0 | 0; + $0 = $6_1; + $6_1 = $8_1; + $1_1 = $2_1; + $0 = $6_1 | $0 | 0; + $2_1 = $1_1 | $4_1 | 0; + $1_1 = $0; + $0 = $7_1; + return $9($9_1 | 0, $0 | 0, $2_1 | 0, $1_1 | 0) | 0 | 0; } function legalstub$10($0, $1_1, $2_1, $3_1) { @@ -819,64 +670,55 @@ function asmFunc(global, env, buffer) { $1_1 = $1_1 | 0; $2_1 = $2_1 | 0; $3_1 = $3_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $19 = 0, $20 = 0, $5_1 = 0, $5$hi = 0, $8$hi = 0, $9_1 = 0, $9$hi = 0, $11 = 0, $11$hi = 0, $14$hi = 0, $15 = 0, $15$hi = 0; - i64toi32_i32$0 = 0; - $5_1 = $0; - $5$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $19 = 0; + var $4_1 = 0, $5_1 = 0, $6_1 = 0, $7_1 = 0, $8_1 = 0, $9_1 = 0; + $6_1 = 0; + $7_1 = $0; + $8_1 = $6_1; + $6_1 = 0; + $4_1 = 32; + $5_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { + { + $0 = $1_1 << $5_1 | 0; + $4_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $19 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $0 = ((1 << $5_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $5_1 | 0) | 0) | 0 | ($6_1 << $5_1 | 0) | 0; + $4_1 = $1_1 << $5_1 | 0; } } - $8$hi = i64toi32_i32$1; - i64toi32_i32$1 = $5$hi; - i64toi32_i32$0 = $5_1; - i64toi32_i32$2 = $8$hi; - i64toi32_i32$3 = $19; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - $9_1 = i64toi32_i32$0 | i64toi32_i32$3 | 0; - $9$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - $11 = $2_1; - $11$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$1 = $3_1; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = i64toi32_i32$1 << i64toi32_i32$4 | 0; - $20 = 0; + $1_1 = $0; + $0 = $8_1; + $6_1 = $7_1; + $1_1 = $0 | $1_1 | 0; + $9_1 = $6_1 | $4_1 | 0; + $7_1 = $1_1; + $1_1 = 0; + $8_1 = $1_1; + $1_1 = 0; + $0 = $3_1; + $4_1 = 32; + $5_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { + { + $6_1 = $0 << $5_1 | 0; + $4_1 = 0; } } else { { - i64toi32_i32$0 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$1 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$2 << i64toi32_i32$4 | 0) | 0; - $20 = i64toi32_i32$1 << i64toi32_i32$4 | 0; + $6_1 = ((1 << $5_1 | 0) - 1 | 0) & ($0 >>> (32 - $5_1 | 0) | 0) | 0 | ($1_1 << $5_1 | 0) | 0; + $4_1 = $0 << $5_1 | 0; } } - $14$hi = i64toi32_i32$0; - i64toi32_i32$0 = $11$hi; - i64toi32_i32$2 = $11; - i64toi32_i32$1 = $14$hi; - i64toi32_i32$3 = $20; - i64toi32_i32$1 = i64toi32_i32$0 | i64toi32_i32$1 | 0; - $15 = i64toi32_i32$2 | i64toi32_i32$3 | 0; - $15$hi = i64toi32_i32$1; - i64toi32_i32$1 = $9$hi; - i64toi32_i32$2 = $15$hi; - return $10($9_1 | 0, i64toi32_i32$1 | 0, $15 | 0, i64toi32_i32$2 | 0) | 0 | 0; + $0 = $6_1; + $6_1 = $8_1; + $1_1 = $2_1; + $0 = $6_1 | $0 | 0; + $2_1 = $1_1 | $4_1 | 0; + $1_1 = $0; + $0 = $7_1; + return $10($9_1 | 0, $0 | 0, $2_1 | 0, $1_1 | 0) | 0 | 0; } var FUNCTION_TABLE = []; diff --git a/test/wasm2js/i64-lowering.2asm.js.opt b/test/wasm2js/i64-lowering.2asm.js.opt index e79de1f87..fcfd7b902 100644 --- a/test/wasm2js/i64-lowering.2asm.js.opt +++ b/test/wasm2js/i64-lowering.2asm.js.opt @@ -62,24 +62,24 @@ function asmFunc(global, env, buffer) { } function legalstub$3($0, $1, $2, $3_1) { - var $4_1 = 0, $5_1 = 0, $6_1 = 0, $7 = 0, $8 = 0, $9 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0; - $8 = $0; + var $4_1 = 0, $5_1 = 0, $6_1 = 0, $7 = 0, $8 = 0; + $6_1 = $0; $5_1 = 32; $0 = $5_1 & 31; if (32 >>> 0 <= $5_1 >>> 0) { { $4_1 = $1 << $0; - $6_1 = 0; + $0 = 0; } } else { { $4_1 = (1 << $0) - 1 & $1 >>> 32 - $0 | $4_1 << $0; - $6_1 = $1 << $0; + $0 = $1 << $0; } } - $9 = $8 | $6_1; - $10 = $4_1 | $12; - $11 = $2; + $5_1 = $6_1 | $0; + $4_1 = $4_1 | $7; + $6_1 = $2; $2 = 0; $1 = $3_1; $3_1 = 32; @@ -87,36 +87,36 @@ function asmFunc(global, env, buffer) { if (32 >>> 0 <= $3_1 >>> 0) { { $2 = $1 << $0; - $7 = 0; + $0 = 0; } } else { { $2 = (1 << $0) - 1 & $1 >>> 32 - $0 | $2 << $0; - $7 = $1 << $0; + $0 = $1 << $0; } } - return $3($9, $10, $11 | $7, $2 | $13); + return $3($5_1, $4_1, $6_1 | $0, $2 | $8); } function legalstub$4($0, $1, $2, $3_1) { - var $4_1 = 0, $5_1 = 0, $6_1 = 0, $7 = 0, $8 = 0, $9 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0; - $8 = $0; + var $4_1 = 0, $5_1 = 0, $6_1 = 0, $7 = 0, $8 = 0; + $6_1 = $0; $5_1 = 32; $0 = $5_1 & 31; if (32 >>> 0 <= $5_1 >>> 0) { { $4_1 = $1 << $0; - $6_1 = 0; + $0 = 0; } } else { { $4_1 = (1 << $0) - 1 & $1 >>> 32 - $0 | $4_1 << $0; - $6_1 = $1 << $0; + $0 = $1 << $0; } } - $9 = $8 | $6_1; - $10 = $4_1 | $12; - $11 = $2; + $5_1 = $6_1 | $0; + $4_1 = $4_1 | $7; + $6_1 = $2; $2 = 0; $1 = $3_1; $3_1 = 32; @@ -124,36 +124,36 @@ function asmFunc(global, env, buffer) { if (32 >>> 0 <= $3_1 >>> 0) { { $2 = $1 << $0; - $7 = 0; + $0 = 0; } } else { { $2 = (1 << $0) - 1 & $1 >>> 32 - $0 | $2 << $0; - $7 = $1 << $0; + $0 = $1 << $0; } } - return $4($9, $10, $11 | $7, $2 | $13); + return $4($5_1, $4_1, $6_1 | $0, $2 | $8); } function legalstub$5($0, $1, $2, $3_1) { - var $4_1 = 0, $5_1 = 0, $6_1 = 0, $7 = 0, $8 = 0, $9 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0; - $8 = $0; + var $4_1 = 0, $5_1 = 0, $6_1 = 0, $7 = 0, $8 = 0; + $6_1 = $0; $5_1 = 32; $0 = $5_1 & 31; if (32 >>> 0 <= $5_1 >>> 0) { { $4_1 = $1 << $0; - $6_1 = 0; + $0 = 0; } } else { { $4_1 = (1 << $0) - 1 & $1 >>> 32 - $0 | $4_1 << $0; - $6_1 = $1 << $0; + $0 = $1 << $0; } } - $9 = $8 | $6_1; - $10 = $4_1 | $12; - $11 = $2; + $5_1 = $6_1 | $0; + $4_1 = $4_1 | $7; + $6_1 = $2; $2 = 0; $1 = $3_1; $3_1 = 32; @@ -161,36 +161,36 @@ function asmFunc(global, env, buffer) { if (32 >>> 0 <= $3_1 >>> 0) { { $2 = $1 << $0; - $7 = 0; + $0 = 0; } } else { { $2 = (1 << $0) - 1 & $1 >>> 32 - $0 | $2 << $0; - $7 = $1 << $0; + $0 = $1 << $0; } } - return $5($9, $10, $11 | $7, $2 | $13); + return $5($5_1, $4_1, $6_1 | $0, $2 | $8); } function legalstub$6($0, $1, $2, $3_1) { - var $4_1 = 0, $5_1 = 0, $6_1 = 0, $7 = 0, $8 = 0, $9 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0; - $8 = $0; + var $4_1 = 0, $5_1 = 0, $6_1 = 0, $7 = 0, $8 = 0; + $6_1 = $0; $5_1 = 32; $0 = $5_1 & 31; if (32 >>> 0 <= $5_1 >>> 0) { { $4_1 = $1 << $0; - $6_1 = 0; + $0 = 0; } } else { { $4_1 = (1 << $0) - 1 & $1 >>> 32 - $0 | $4_1 << $0; - $6_1 = $1 << $0; + $0 = $1 << $0; } } - $9 = $8 | $6_1; - $10 = $4_1 | $12; - $11 = $2; + $5_1 = $6_1 | $0; + $4_1 = $4_1 | $7; + $6_1 = $2; $2 = 0; $1 = $3_1; $3_1 = 32; @@ -198,15 +198,15 @@ function asmFunc(global, env, buffer) { if (32 >>> 0 <= $3_1 >>> 0) { { $2 = $1 << $0; - $7 = 0; + $0 = 0; } } else { { $2 = (1 << $0) - 1 & $1 >>> 32 - $0 | $2 << $0; - $7 = $1 << $0; + $0 = $1 << $0; } } - return $6($9, $10, $11 | $7, $2 | $13); + return $6($5_1, $4_1, $6_1 | $0, $2 | $8); } function legalstub$7($0, $1, $2, $3_1) { diff --git a/test/wasm2js/i64-rotate.2asm.js b/test/wasm2js/i64-rotate.2asm.js index f8fc282cb..02c170733 100644 --- a/test/wasm2js/i64-rotate.2asm.js +++ b/test/wasm2js/i64-rotate.2asm.js @@ -22,48 +22,32 @@ function asmFunc(global, env, buffer) { var nan = global.NaN; var infinity = global.Infinity; var i64toi32_i32$HIGH_BITS = 0; - function $1($0, $0$hi, $1_1, $1$hi, $2_1, $2$hi) { + function $1($0, $1_1, $2_1, $3, $4, $5) { $0 = $0 | 0; - $0$hi = $0$hi | 0; $1_1 = $1_1 | 0; - $1$hi = $1$hi | 0; $2_1 = $2_1 | 0; - $2$hi = $2$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, $5$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $0$hi; - i64toi32_i32$0 = $1$hi; - i64toi32_i32$0 = $0$hi; - i64toi32_i32$1 = $1$hi; - i64toi32_i32$1 = __wasm_rotl_i64($0 | 0, i64toi32_i32$0 | 0, $1_1 | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $5$hi = i64toi32_i32$0; - i64toi32_i32$0 = $2$hi; - i64toi32_i32$0 = $5$hi; - i64toi32_i32$2 = i64toi32_i32$1; - i64toi32_i32$1 = $2$hi; - return (i64toi32_i32$2 | 0) == ($2_1 | 0) & (i64toi32_i32$0 | 0) == (i64toi32_i32$1 | 0) | 0 | 0; + $3 = $3 | 0; + $4 = $4 | 0; + $5 = $5 | 0; + $3 = __wasm_rotl_i64($0 | 0, $1_1 | 0, $2_1 | 0, $3 | 0) | 0; + $1_1 = i64toi32_i32$HIGH_BITS; + $0 = $3; + $3 = $5; + return ($0 | 0) == ($4 | 0) & ($1_1 | 0) == ($3 | 0) | 0 | 0; } - function $2($0, $0$hi, $1_1, $1$hi, $2_1, $2$hi) { + function $2($0, $1_1, $2_1, $3, $4, $5) { $0 = $0 | 0; - $0$hi = $0$hi | 0; $1_1 = $1_1 | 0; - $1$hi = $1$hi | 0; $2_1 = $2_1 | 0; - $2$hi = $2$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, $5$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $0$hi; - i64toi32_i32$0 = $1$hi; - i64toi32_i32$0 = $0$hi; - i64toi32_i32$1 = $1$hi; - i64toi32_i32$1 = __wasm_rotr_i64($0 | 0, i64toi32_i32$0 | 0, $1_1 | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $5$hi = i64toi32_i32$0; - i64toi32_i32$0 = $2$hi; - i64toi32_i32$0 = $5$hi; - i64toi32_i32$2 = i64toi32_i32$1; - i64toi32_i32$1 = $2$hi; - return (i64toi32_i32$2 | 0) == ($2_1 | 0) & (i64toi32_i32$0 | 0) == (i64toi32_i32$1 | 0) | 0 | 0; + $3 = $3 | 0; + $4 = $4 | 0; + $5 = $5 | 0; + $3 = __wasm_rotr_i64($0 | 0, $1_1 | 0, $2_1 | 0, $3 | 0) | 0; + $1_1 = i64toi32_i32$HIGH_BITS; + $0 = $3; + $3 = $5; + return ($0 | 0) == ($4 | 0) & ($1_1 | 0) == ($3 | 0) | 0 | 0; } function legalstub$1($0, $1_1, $2_1, $3, $4, $5) { @@ -73,92 +57,79 @@ function asmFunc(global, env, buffer) { $3 = $3 | 0; $4 = $4 | 0; $5 = $5 | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $26 = 0, $27 = 0, $28 = 0, $7 = 0, $7$hi = 0, $10$hi = 0, $11 = 0, $11$hi = 0, $13 = 0, $13$hi = 0, $16$hi = 0, $17 = 0, $17$hi = 0, $19 = 0, $19$hi = 0, $22$hi = 0, $23 = 0, $23$hi = 0; - i64toi32_i32$0 = 0; - $7 = $0; - $7$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $6 = 0, $7 = 0, $8 = 0, $9 = 0, $10 = 0, $11 = 0; + $6 = 0; + $10 = $0; + $9 = $6; + $6 = 0; + $7 = 32; + $8 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $26 = 0; + $0 = $1_1 << $8 | 0; + $7 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $26 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $0 = ((1 << $8 | 0) - 1 | 0) & ($1_1 >>> (32 - $8 | 0) | 0) | 0 | ($6 << $8 | 0) | 0; + $7 = $1_1 << $8 | 0; } } - $10$hi = i64toi32_i32$1; - i64toi32_i32$1 = $7$hi; - i64toi32_i32$0 = $7; - i64toi32_i32$2 = $10$hi; - i64toi32_i32$3 = $26; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - $11 = i64toi32_i32$0 | i64toi32_i32$3 | 0; - $11$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - $13 = $2_1; - $13$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$1 = $3; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + $1_1 = $0; + $0 = $9; + $6 = $10; + $1_1 = $0 | $1_1 | 0; + $11 = $6 | $7 | 0; + $10 = $1_1; + $1_1 = 0; + $9 = $1_1; + $1_1 = 0; + $0 = $3; + $7 = 32; + $8 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$0 = i64toi32_i32$1 << i64toi32_i32$4 | 0; - $27 = 0; + $6 = $0 << $8 | 0; + $7 = 0; } } else { { - i64toi32_i32$0 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$1 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$2 << i64toi32_i32$4 | 0) | 0; - $27 = i64toi32_i32$1 << i64toi32_i32$4 | 0; + $6 = ((1 << $8 | 0) - 1 | 0) & ($0 >>> (32 - $8 | 0) | 0) | 0 | ($1_1 << $8 | 0) | 0; + $7 = $0 << $8 | 0; } } - $16$hi = i64toi32_i32$0; - i64toi32_i32$0 = $13$hi; - i64toi32_i32$2 = $13; - i64toi32_i32$1 = $16$hi; - i64toi32_i32$3 = $27; - i64toi32_i32$1 = i64toi32_i32$0 | i64toi32_i32$1 | 0; - $17 = i64toi32_i32$2 | i64toi32_i32$3 | 0; - $17$hi = i64toi32_i32$1; - i64toi32_i32$1 = 0; - $19 = $4; - $19$hi = i64toi32_i32$1; - i64toi32_i32$1 = 0; - i64toi32_i32$0 = $5; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + $0 = $6; + $6 = $9; + $1_1 = $2_1; + $0 = $6 | $0 | 0; + $9 = $1_1 | $7 | 0; + $2_1 = $0; + $0 = 0; + $3 = $0; + $0 = 0; + $6 = $5; + $7 = 32; + $8 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$2 = i64toi32_i32$0 << i64toi32_i32$4 | 0; - $28 = 0; + $1_1 = $6 << $8 | 0; + $7 = 0; } } else { { - i64toi32_i32$2 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$0 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$1 << i64toi32_i32$4 | 0) | 0; - $28 = i64toi32_i32$0 << i64toi32_i32$4 | 0; + $1_1 = ((1 << $8 | 0) - 1 | 0) & ($6 >>> (32 - $8 | 0) | 0) | 0 | ($0 << $8 | 0) | 0; + $7 = $6 << $8 | 0; } } - $22$hi = i64toi32_i32$2; - i64toi32_i32$2 = $19$hi; - i64toi32_i32$1 = $19; - i64toi32_i32$0 = $22$hi; - i64toi32_i32$3 = $28; - i64toi32_i32$0 = i64toi32_i32$2 | i64toi32_i32$0 | 0; - $23 = i64toi32_i32$1 | i64toi32_i32$3 | 0; - $23$hi = i64toi32_i32$0; - i64toi32_i32$0 = $11$hi; - i64toi32_i32$1 = $17$hi; - i64toi32_i32$2 = $23$hi; - return $1($11 | 0, i64toi32_i32$0 | 0, $17 | 0, i64toi32_i32$1 | 0, $23 | 0, i64toi32_i32$2 | 0) | 0 | 0; + $6 = $1_1; + $1_1 = $3; + $0 = $4; + $6 = $1_1 | $6 | 0; + $3 = $0 | $7 | 0; + $1_1 = $6; + $6 = $10; + $0 = $2_1; + return $1($11 | 0, $6 | 0, $9 | 0, $0 | 0, $3 | 0, $1_1 | 0) | 0 | 0; } function legalstub$2($0, $1_1, $2_1, $3, $4, $5) { @@ -168,336 +139,279 @@ function asmFunc(global, env, buffer) { $3 = $3 | 0; $4 = $4 | 0; $5 = $5 | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $26 = 0, $27 = 0, $28 = 0, $7 = 0, $7$hi = 0, $10$hi = 0, $11 = 0, $11$hi = 0, $13 = 0, $13$hi = 0, $16$hi = 0, $17 = 0, $17$hi = 0, $19 = 0, $19$hi = 0, $22$hi = 0, $23 = 0, $23$hi = 0; - i64toi32_i32$0 = 0; - $7 = $0; - $7$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $6 = 0, $7 = 0, $8 = 0, $9 = 0, $10 = 0, $11 = 0; + $6 = 0; + $10 = $0; + $9 = $6; + $6 = 0; + $7 = 32; + $8 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $26 = 0; + $0 = $1_1 << $8 | 0; + $7 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $26 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $0 = ((1 << $8 | 0) - 1 | 0) & ($1_1 >>> (32 - $8 | 0) | 0) | 0 | ($6 << $8 | 0) | 0; + $7 = $1_1 << $8 | 0; } } - $10$hi = i64toi32_i32$1; - i64toi32_i32$1 = $7$hi; - i64toi32_i32$0 = $7; - i64toi32_i32$2 = $10$hi; - i64toi32_i32$3 = $26; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - $11 = i64toi32_i32$0 | i64toi32_i32$3 | 0; - $11$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - $13 = $2_1; - $13$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$1 = $3; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + $1_1 = $0; + $0 = $9; + $6 = $10; + $1_1 = $0 | $1_1 | 0; + $11 = $6 | $7 | 0; + $10 = $1_1; + $1_1 = 0; + $9 = $1_1; + $1_1 = 0; + $0 = $3; + $7 = 32; + $8 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$0 = i64toi32_i32$1 << i64toi32_i32$4 | 0; - $27 = 0; + $6 = $0 << $8 | 0; + $7 = 0; } } else { { - i64toi32_i32$0 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$1 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$2 << i64toi32_i32$4 | 0) | 0; - $27 = i64toi32_i32$1 << i64toi32_i32$4 | 0; + $6 = ((1 << $8 | 0) - 1 | 0) & ($0 >>> (32 - $8 | 0) | 0) | 0 | ($1_1 << $8 | 0) | 0; + $7 = $0 << $8 | 0; } } - $16$hi = i64toi32_i32$0; - i64toi32_i32$0 = $13$hi; - i64toi32_i32$2 = $13; - i64toi32_i32$1 = $16$hi; - i64toi32_i32$3 = $27; - i64toi32_i32$1 = i64toi32_i32$0 | i64toi32_i32$1 | 0; - $17 = i64toi32_i32$2 | i64toi32_i32$3 | 0; - $17$hi = i64toi32_i32$1; - i64toi32_i32$1 = 0; - $19 = $4; - $19$hi = i64toi32_i32$1; - i64toi32_i32$1 = 0; - i64toi32_i32$0 = $5; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + $0 = $6; + $6 = $9; + $1_1 = $2_1; + $0 = $6 | $0 | 0; + $9 = $1_1 | $7 | 0; + $2_1 = $0; + $0 = 0; + $3 = $0; + $0 = 0; + $6 = $5; + $7 = 32; + $8 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$2 = i64toi32_i32$0 << i64toi32_i32$4 | 0; - $28 = 0; + $1_1 = $6 << $8 | 0; + $7 = 0; } } else { { - i64toi32_i32$2 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$0 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$1 << i64toi32_i32$4 | 0) | 0; - $28 = i64toi32_i32$0 << i64toi32_i32$4 | 0; + $1_1 = ((1 << $8 | 0) - 1 | 0) & ($6 >>> (32 - $8 | 0) | 0) | 0 | ($0 << $8 | 0) | 0; + $7 = $6 << $8 | 0; } } - $22$hi = i64toi32_i32$2; - i64toi32_i32$2 = $19$hi; - i64toi32_i32$1 = $19; - i64toi32_i32$0 = $22$hi; - i64toi32_i32$3 = $28; - i64toi32_i32$0 = i64toi32_i32$2 | i64toi32_i32$0 | 0; - $23 = i64toi32_i32$1 | i64toi32_i32$3 | 0; - $23$hi = i64toi32_i32$0; - i64toi32_i32$0 = $11$hi; - i64toi32_i32$1 = $17$hi; - i64toi32_i32$2 = $23$hi; - return $2($11 | 0, i64toi32_i32$0 | 0, $17 | 0, i64toi32_i32$1 | 0, $23 | 0, i64toi32_i32$2 | 0) | 0 | 0; + $6 = $1_1; + $1_1 = $3; + $0 = $4; + $6 = $1_1 | $6 | 0; + $3 = $0 | $7 | 0; + $1_1 = $6; + $6 = $10; + $0 = $2_1; + return $2($11 | 0, $6 | 0, $9 | 0, $0 | 0, $3 | 0, $1_1 | 0) | 0 | 0; } - function __wasm_rotl_i64(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; - var i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, i64toi32_i32$2 = 0, i64toi32_i32$3 = 0, i64toi32_i32$5 = 0, i64toi32_i32$4 = 0, var$2$hi = 0, var$2 = 0, $19 = 0, $20 = 0, $21 = 0, $22 = 0, $6$hi = 0, $8$hi = 0, $10 = 0, $10$hi = 0, $15$hi = 0, $17$hi = 0, $19$hi = 0; - i64toi32_i32$0 = var$1$hi; - i64toi32_i32$2 = var$1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 63; - i64toi32_i32$1 = i64toi32_i32$0 & i64toi32_i32$1 | 0; - var$2 = i64toi32_i32$2 & i64toi32_i32$3 | 0; - var$2$hi = i64toi32_i32$1; - i64toi32_i32$1 = -1; - i64toi32_i32$0 = -1; - i64toi32_i32$2 = var$2$hi; - i64toi32_i32$3 = var$2; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + function __wasm_rotl_i64($0, $1_1, $2_1, $3) { + $0 = $0 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3 = $3 | 0; + var $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $10 = 0, $11 = 0; + $6 = $3; + $7 = $2_1; + $4 = 0; + $5 = 63; + $4 = $6 & $4 | 0; + $10 = $7 & $5 | 0; + $8 = $4; + $4 = -1; + $6 = -1; + $5 = $10; + $9 = $5 & 31 | 0; + if (32 >>> 0 <= ($5 & 63 | 0) >>> 0) { { - i64toi32_i32$2 = 0; - $19 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; + $7 = 0; + $4 = $4 >>> $9 | 0; } } else { { - i64toi32_i32$2 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $19 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$0 >>> i64toi32_i32$4 | 0) | 0; + $7 = $4 >>> $9 | 0; + $4 = (((1 << $9 | 0) - 1 | 0) & $4 | 0) << (32 - $9 | 0) | 0 | ($6 >>> $9 | 0) | 0; } } - $6$hi = i64toi32_i32$2; - i64toi32_i32$2 = var$0$hi; - i64toi32_i32$2 = $6$hi; - i64toi32_i32$1 = $19; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$3 = var$0; - i64toi32_i32$0 = i64toi32_i32$2 & i64toi32_i32$0 | 0; - $8$hi = i64toi32_i32$0; - i64toi32_i32$0 = var$2$hi; - i64toi32_i32$0 = $8$hi; - i64toi32_i32$2 = i64toi32_i32$1 & i64toi32_i32$3 | 0; - i64toi32_i32$1 = var$2$hi; - i64toi32_i32$3 = var$2; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + $6 = $1_1; + $5 = $0; + $6 = $7 & $6 | 0; + $7 = $4 & $5 | 0; + $5 = $10; + $9 = $5 & 31 | 0; + if (32 >>> 0 <= ($5 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $20 = 0; + $4 = $7 << $9 | 0; + $10 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $20 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $4 = ((1 << $9 | 0) - 1 | 0) & ($7 >>> (32 - $9 | 0) | 0) | 0 | ($6 << $9 | 0) | 0; + $10 = $7 << $9 | 0; } } - $10 = $20; - $10$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = 0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$3 = var$1; - i64toi32_i32$4 = i64toi32_i32$0 - i64toi32_i32$3 | 0; - i64toi32_i32$5 = (i64toi32_i32$0 >>> 0 < i64toi32_i32$3 >>> 0) + i64toi32_i32$2 | 0; - i64toi32_i32$5 = i64toi32_i32$1 - i64toi32_i32$5 | 0; - i64toi32_i32$1 = i64toi32_i32$4; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 63; - i64toi32_i32$0 = i64toi32_i32$5 & i64toi32_i32$0 | 0; - var$1 = i64toi32_i32$1 & i64toi32_i32$3 | 0; - var$1$hi = i64toi32_i32$0; - i64toi32_i32$0 = -1; - i64toi32_i32$5 = -1; - i64toi32_i32$1 = var$1$hi; - i64toi32_i32$3 = var$1; - i64toi32_i32$2 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + $11 = $4; + $4 = 0; + $6 = 0; + $7 = $3; + $5 = $2_1; + $9 = $6 - $5 | 0; + $8 = ($6 >>> 0 < $5 >>> 0) + $7 | 0; + $8 = $4 - $8 | 0; + $4 = $9; + $6 = 0; + $5 = 63; + $6 = $8 & $6 | 0; + $2_1 = $4 & $5 | 0; + $3 = $6; + $6 = -1; + $8 = -1; + $5 = $2_1; + $7 = $5 & 31 | 0; + if (32 >>> 0 <= ($5 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$5 << i64toi32_i32$2 | 0; - $21 = 0; + $4 = $8 << $7 | 0; + $6 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$2 | 0) - 1 | 0) & (i64toi32_i32$5 >>> (32 - i64toi32_i32$2 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$2 | 0) | 0; - $21 = i64toi32_i32$5 << i64toi32_i32$2 | 0; + $4 = ((1 << $7 | 0) - 1 | 0) & ($8 >>> (32 - $7 | 0) | 0) | 0 | ($6 << $7 | 0) | 0; + $6 = $8 << $7 | 0; } } - $15$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$1 = $15$hi; - i64toi32_i32$0 = $21; - i64toi32_i32$5 = var$0$hi; - i64toi32_i32$3 = var$0; - i64toi32_i32$5 = i64toi32_i32$1 & i64toi32_i32$5 | 0; - $17$hi = i64toi32_i32$5; - i64toi32_i32$5 = var$1$hi; - i64toi32_i32$5 = $17$hi; - i64toi32_i32$1 = i64toi32_i32$0 & i64toi32_i32$3 | 0; - i64toi32_i32$0 = var$1$hi; - i64toi32_i32$3 = var$1; - i64toi32_i32$2 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + $8 = $1_1; + $5 = $0; + $8 = $4 & $8 | 0; + $4 = $6 & $5 | 0; + $5 = $2_1; + $7 = $5 & 31 | 0; + if (32 >>> 0 <= ($5 & 63 | 0) >>> 0) { { - i64toi32_i32$0 = 0; - $22 = i64toi32_i32$5 >>> i64toi32_i32$2 | 0; + $6 = 0; + $5 = $8 >>> $7 | 0; } } else { { - i64toi32_i32$0 = i64toi32_i32$5 >>> i64toi32_i32$2 | 0; - $22 = (((1 << i64toi32_i32$2 | 0) - 1 | 0) & i64toi32_i32$5 | 0) << (32 - i64toi32_i32$2 | 0) | 0 | (i64toi32_i32$1 >>> i64toi32_i32$2 | 0) | 0; + $6 = $8 >>> $7 | 0; + $5 = (((1 << $7 | 0) - 1 | 0) & $8 | 0) << (32 - $7 | 0) | 0 | ($4 >>> $7 | 0) | 0; } } - $19$hi = i64toi32_i32$0; - i64toi32_i32$0 = $10$hi; - i64toi32_i32$5 = $10; - i64toi32_i32$1 = $19$hi; - i64toi32_i32$3 = $22; - i64toi32_i32$1 = i64toi32_i32$0 | i64toi32_i32$1 | 0; - i64toi32_i32$5 = i64toi32_i32$5 | i64toi32_i32$3 | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$5 | 0; + $4 = $6; + $6 = $11; + $8 = $10; + $4 = $6 | $4 | 0; + $8 = $8 | $5 | 0; + i64toi32_i32$HIGH_BITS = $4; + return $8 | 0; } - function __wasm_rotr_i64(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$2 = 0, i64toi32_i32$3 = 0, i64toi32_i32$5 = 0, i64toi32_i32$4 = 0, var$2$hi = 0, var$2 = 0, $19 = 0, $20 = 0, $21 = 0, $22 = 0, $6$hi = 0, $8$hi = 0, $10 = 0, $10$hi = 0, $15$hi = 0, $17$hi = 0, $19$hi = 0; - i64toi32_i32$0 = var$1$hi; - i64toi32_i32$2 = var$1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 63; - i64toi32_i32$1 = i64toi32_i32$0 & i64toi32_i32$1 | 0; - var$2 = i64toi32_i32$2 & i64toi32_i32$3 | 0; - var$2$hi = i64toi32_i32$1; - i64toi32_i32$1 = -1; - i64toi32_i32$0 = -1; - i64toi32_i32$2 = var$2$hi; - i64toi32_i32$3 = var$2; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + function __wasm_rotr_i64($0, $1_1, $2_1, $3) { + $0 = $0 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3 = $3 | 0; + var $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $10 = 0, $11 = 0; + $4 = $3; + $7 = $2_1; + $5 = 0; + $6 = 63; + $5 = $4 & $5 | 0; + $10 = $7 & $6 | 0; + $8 = $5; + $5 = -1; + $4 = -1; + $6 = $10; + $9 = $6 & 31 | 0; + if (32 >>> 0 <= ($6 & 63 | 0) >>> 0) { { - i64toi32_i32$2 = i64toi32_i32$0 << i64toi32_i32$4 | 0; - $19 = 0; + $7 = $4 << $9 | 0; + $5 = 0; } } else { { - i64toi32_i32$2 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$0 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$1 << i64toi32_i32$4 | 0) | 0; - $19 = i64toi32_i32$0 << i64toi32_i32$4 | 0; + $7 = ((1 << $9 | 0) - 1 | 0) & ($4 >>> (32 - $9 | 0) | 0) | 0 | ($5 << $9 | 0) | 0; + $5 = $4 << $9 | 0; } } - $6$hi = i64toi32_i32$2; - i64toi32_i32$2 = var$0$hi; - i64toi32_i32$2 = $6$hi; - i64toi32_i32$1 = $19; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$3 = var$0; - i64toi32_i32$0 = i64toi32_i32$2 & i64toi32_i32$0 | 0; - $8$hi = i64toi32_i32$0; - i64toi32_i32$0 = var$2$hi; - i64toi32_i32$0 = $8$hi; - i64toi32_i32$2 = i64toi32_i32$1 & i64toi32_i32$3 | 0; - i64toi32_i32$1 = var$2$hi; - i64toi32_i32$3 = var$2; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + $4 = $1_1; + $6 = $0; + $4 = $7 & $4 | 0; + $7 = $5 & $6 | 0; + $6 = $10; + $9 = $6 & 31 | 0; + if (32 >>> 0 <= ($6 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = 0; - $20 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; + $5 = 0; + $10 = $4 >>> $9 | 0; } } else { { - i64toi32_i32$1 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $20 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; + $5 = $4 >>> $9 | 0; + $10 = (((1 << $9 | 0) - 1 | 0) & $4 | 0) << (32 - $9 | 0) | 0 | ($7 >>> $9 | 0) | 0; } } - $10 = $20; - $10$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = 0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$3 = var$1; - i64toi32_i32$4 = i64toi32_i32$0 - i64toi32_i32$3 | 0; - i64toi32_i32$5 = (i64toi32_i32$0 >>> 0 < i64toi32_i32$3 >>> 0) + i64toi32_i32$2 | 0; - i64toi32_i32$5 = i64toi32_i32$1 - i64toi32_i32$5 | 0; - i64toi32_i32$1 = i64toi32_i32$4; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 63; - i64toi32_i32$0 = i64toi32_i32$5 & i64toi32_i32$0 | 0; - var$1 = i64toi32_i32$1 & i64toi32_i32$3 | 0; - var$1$hi = i64toi32_i32$0; - i64toi32_i32$0 = -1; - i64toi32_i32$5 = -1; - i64toi32_i32$1 = var$1$hi; - i64toi32_i32$3 = var$1; - i64toi32_i32$2 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + $11 = $5; + $5 = 0; + $4 = 0; + $7 = $3; + $6 = $2_1; + $9 = $4 - $6 | 0; + $8 = ($4 >>> 0 < $6 >>> 0) + $7 | 0; + $8 = $5 - $8 | 0; + $5 = $9; + $4 = 0; + $6 = 63; + $4 = $8 & $4 | 0; + $2_1 = $5 & $6 | 0; + $3 = $4; + $4 = -1; + $8 = -1; + $6 = $2_1; + $7 = $6 & 31 | 0; + if (32 >>> 0 <= ($6 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = 0; - $21 = i64toi32_i32$0 >>> i64toi32_i32$2 | 0; + $5 = 0; + $4 = $4 >>> $7 | 0; } } else { { - i64toi32_i32$1 = i64toi32_i32$0 >>> i64toi32_i32$2 | 0; - $21 = (((1 << i64toi32_i32$2 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$2 | 0) | 0 | (i64toi32_i32$5 >>> i64toi32_i32$2 | 0) | 0; + $5 = $4 >>> $7 | 0; + $4 = (((1 << $7 | 0) - 1 | 0) & $4 | 0) << (32 - $7 | 0) | 0 | ($8 >>> $7 | 0) | 0; } } - $15$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$1 = $15$hi; - i64toi32_i32$0 = $21; - i64toi32_i32$5 = var$0$hi; - i64toi32_i32$3 = var$0; - i64toi32_i32$5 = i64toi32_i32$1 & i64toi32_i32$5 | 0; - $17$hi = i64toi32_i32$5; - i64toi32_i32$5 = var$1$hi; - i64toi32_i32$5 = $17$hi; - i64toi32_i32$1 = i64toi32_i32$0 & i64toi32_i32$3 | 0; - i64toi32_i32$0 = var$1$hi; - i64toi32_i32$3 = var$1; - i64toi32_i32$2 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + $8 = $1_1; + $6 = $0; + $8 = $5 & $8 | 0; + $5 = $4 & $6 | 0; + $6 = $2_1; + $7 = $6 & 31 | 0; + if (32 >>> 0 <= ($6 & 63 | 0) >>> 0) { { - i64toi32_i32$0 = i64toi32_i32$1 << i64toi32_i32$2 | 0; - $22 = 0; + $4 = $5 << $7 | 0; + $6 = 0; } } else { { - i64toi32_i32$0 = ((1 << i64toi32_i32$2 | 0) - 1 | 0) & (i64toi32_i32$1 >>> (32 - i64toi32_i32$2 | 0) | 0) | 0 | (i64toi32_i32$5 << i64toi32_i32$2 | 0) | 0; - $22 = i64toi32_i32$1 << i64toi32_i32$2 | 0; + $4 = ((1 << $7 | 0) - 1 | 0) & ($5 >>> (32 - $7 | 0) | 0) | 0 | ($8 << $7 | 0) | 0; + $6 = $5 << $7 | 0; } } - $19$hi = i64toi32_i32$0; - i64toi32_i32$0 = $10$hi; - i64toi32_i32$5 = $10; - i64toi32_i32$1 = $19$hi; - i64toi32_i32$3 = $22; - i64toi32_i32$1 = i64toi32_i32$0 | i64toi32_i32$1 | 0; - i64toi32_i32$5 = i64toi32_i32$5 | i64toi32_i32$3 | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$5 | 0; + $5 = $4; + $4 = $11; + $8 = $10; + $5 = $4 | $5 | 0; + $8 = $8 | $6 | 0; + i64toi32_i32$HIGH_BITS = $5; + return $8 | 0; } var FUNCTION_TABLE = []; diff --git a/test/wasm2js/i64-rotate.2asm.js.opt b/test/wasm2js/i64-rotate.2asm.js.opt index 3e3eea811..fd5eca90a 100644 --- a/test/wasm2js/i64-rotate.2asm.js.opt +++ b/test/wasm2js/i64-rotate.2asm.js.opt @@ -31,33 +31,32 @@ function asmFunc(global, env, buffer) { } function __wasm_rotl_i64($0, $1, $2) { - var $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $10 = 0; + var $3 = 0, $4 = 0, $5 = 0, $6 = 0; $6 = $2 & 63; $5 = $6; $3 = $5 & 31; if (32 >>> 0 <= $5 >>> 0) { - $7 = -1 >>> $3 + $3 = -1 >>> $3 } else { { $4 = -1 >>> $3; - $7 = (1 << $3) - 1 << 32 - $3 | -1 >>> $3; + $3 = (1 << $3) - 1 << 32 - $3 | -1 >>> $3; } } - $5 = $7 & $0; + $5 = $3 & $0; $3 = $1 & $4; $4 = $6 & 31; if (32 >>> 0 <= $6 >>> 0) { { $3 = $5 << $4; - $8 = 0; + $6 = 0; } } else { { $3 = (1 << $4) - 1 & $5 >>> 32 - $4 | $3 << $4; - $8 = $5 << $4; + $6 = $5 << $4; } } - $6 = $8; $5 = $3; $4 = 0 - $2 & 63; $3 = $4; @@ -65,94 +64,91 @@ function asmFunc(global, env, buffer) { if (32 >>> 0 <= ($3 & 63) >>> 0) { { $3 = -1 << $2; - $9 = 0; + $2 = 0; } } else { { $3 = (1 << $2) - 1 & -1 >>> 32 - $2 | -1 << $2; - $9 = -1 << $2; + $2 = -1 << $2; } } - $0 = $9 & $0; + $0 = $2 & $0; $3 = $1 & $3; $1 = $4 & 31; if (32 >>> 0 <= $4 >>> 0) { { $2 = 0; - $10 = $3 >>> $1; + $0 = $3 >>> $1; } } else { { $2 = $3 >>> $1; - $10 = ((1 << $1) - 1 & $3) << 32 - $1 | $0 >>> $1; + $0 = ((1 << $1) - 1 & $3) << 32 - $1 | $0 >>> $1; } } - $0 = $10 | $6; + $0 = $0 | $6; i64toi32_i32$HIGH_BITS = $2 | $5; return $0; } function __wasm_rotr_i64($0, $1, $2) { - var $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $10 = 0, $11 = 0; + var $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0; $6 = $2 & 63; - $7 = $6; $3 = $6 & 31; if (32 >>> 0 <= $6 >>> 0) { { $4 = -1 << $3; - $8 = 0; + $7 = 0; } } else { { $4 = (1 << $3) - 1 & -1 >>> 32 - $3 | -1 << $3; - $8 = -1 << $3; + $7 = -1 << $3; } } - $7 = $8 & $0; + $7 = $7 & $0; $3 = $1 & $4; $5 = $6 & 31; if (32 >>> 0 <= $6 >>> 0) { { $4 = 0; - $9 = $3 >>> $5; + $6 = $3 >>> $5; } } else { { $4 = $3 >>> $5; - $9 = ((1 << $5) - 1 & $3) << 32 - $5 | $7 >>> $5; + $6 = ((1 << $5) - 1 & $3) << 32 - $5 | $7 >>> $5; } } - $6 = $9; $7 = $4; $3 = 0 - $2 & 63; - $2 = $3; $5 = $3 & 31; if (32 >>> 0 <= ($3 & 63) >>> 0) { { $4 = 0; - $10 = -1 >>> $5; + $2 = -1 >>> $5; } } else { { $4 = -1 >>> $5; - $10 = (1 << $5) - 1 << 32 - $5 | -1 >>> $5; + $2 = (1 << $5) - 1 << 32 - $5 | -1 >>> $5; } } - $0 = $10 & $0; + $0 = $2 & $0; $1 = $1 & $4; $4 = $3 & 31; if (32 >>> 0 <= $3 >>> 0) { { $2 = $0 << $4; - $11 = 0; + $0 = 0; } } else { { $2 = (1 << $4) - 1 & $0 >>> 32 - $4 | $1 << $4; - $11 = $0 << $4; + $0 = $0 << $4; } } - $0 = $11 | $6; + $0 = $0 | $6; i64toi32_i32$HIGH_BITS = $2 | $7; return $0; } diff --git a/test/wasm2js/i64-shifts.2asm.js b/test/wasm2js/i64-shifts.2asm.js index 9460b6ccb..969908233 100644 --- a/test/wasm2js/i64-shifts.2asm.js +++ b/test/wasm2js/i64-shifts.2asm.js @@ -21,74 +21,53 @@ function asmFunc(global, env, buffer) { var abort = env.abort; var nan = global.NaN; var infinity = global.Infinity; - function $1($0, $0$hi, $1_1, $1$hi, $2_1, $2$hi) { + function $1($0, $1_1, $2_1, $3, $4, $5) { $0 = $0 | 0; - $0$hi = $0$hi | 0; $1_1 = $1_1 | 0; - $1$hi = $1$hi | 0; $2_1 = $2_1 | 0; - $2$hi = $2$hi | 0; - var i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $12 = 0, $5$hi = 0; - i64toi32_i32$0 = $0$hi; - i64toi32_i32$0 = $1$hi; - i64toi32_i32$0 = $0$hi; - i64toi32_i32$2 = $0; - i64toi32_i32$1 = $1$hi; - i64toi32_i32$3 = $1_1; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + $3 = $3 | 0; + $4 = $4 | 0; + $5 = $5 | 0; + var $6 = 0; + $6 = $2_1 & 31 | 0; + if (32 >>> 0 <= ($2_1 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $12 = 0; + $3 = $0 << $6 | 0; + $1_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $12 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $3 = ((1 << $6 | 0) - 1 | 0) & ($0 >>> (32 - $6 | 0) | 0) | 0 | ($1_1 << $6 | 0) | 0; + $1_1 = $0 << $6 | 0; } } - $5$hi = i64toi32_i32$1; - i64toi32_i32$1 = $2$hi; - i64toi32_i32$1 = $5$hi; - i64toi32_i32$0 = $12; - i64toi32_i32$2 = $2$hi; - i64toi32_i32$3 = $2_1; - return (i64toi32_i32$0 | 0) == (i64toi32_i32$3 | 0) & (i64toi32_i32$1 | 0) == (i64toi32_i32$2 | 0) | 0 | 0; + $0 = $5; + $2_1 = $4; + return ($1_1 | 0) == ($2_1 | 0) & ($3 | 0) == ($0 | 0) | 0 | 0; } - function $2($0, $0$hi, $1_1, $1$hi, $2_1, $2$hi) { + function $2($0, $1_1, $2_1, $3, $4, $5) { $0 = $0 | 0; - $0$hi = $0$hi | 0; $1_1 = $1_1 | 0; - $1$hi = $1$hi | 0; $2_1 = $2_1 | 0; - $2$hi = $2$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, i64toi32_i32$2 = 0, $12 = 0, $5$hi = 0; - i64toi32_i32$0 = $0$hi; - i64toi32_i32$0 = $1$hi; - i64toi32_i32$0 = $0$hi; - i64toi32_i32$2 = $0; - i64toi32_i32$1 = $1$hi; - i64toi32_i32$3 = $1_1; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + $3 = $3 | 0; + $4 = $4 | 0; + $5 = $5 | 0; + var $6 = 0; + $6 = $2_1 & 31 | 0; + if (32 >>> 0 <= ($2_1 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$0 >> 31 | 0; - $12 = i64toi32_i32$0 >> i64toi32_i32$4 | 0; + $3 = $1_1 >> 31 | 0; + $1_1 = $1_1 >> $6 | 0; } } else { { - i64toi32_i32$1 = i64toi32_i32$0 >> i64toi32_i32$4 | 0; - $12 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; + $3 = $1_1 >> $6 | 0; + $1_1 = (((1 << $6 | 0) - 1 | 0) & $1_1 | 0) << (32 - $6 | 0) | 0 | ($0 >>> $6 | 0) | 0; } } - $5$hi = i64toi32_i32$1; - i64toi32_i32$1 = $2$hi; - i64toi32_i32$1 = $5$hi; - i64toi32_i32$0 = $12; - i64toi32_i32$2 = $2$hi; - i64toi32_i32$3 = $2_1; - return (i64toi32_i32$0 | 0) == (i64toi32_i32$3 | 0) & (i64toi32_i32$1 | 0) == ($2$hi | 0) | 0 | 0; + $2_1 = $4; + return ($1_1 | 0) == ($2_1 | 0) & ($3 | 0) == ($5 | 0) | 0 | 0; } function legalstub$1($0, $1_1, $2_1, $3, $4, $5) { @@ -98,92 +77,79 @@ function asmFunc(global, env, buffer) { $3 = $3 | 0; $4 = $4 | 0; $5 = $5 | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $26 = 0, $27 = 0, $28 = 0, $7 = 0, $7$hi = 0, $10$hi = 0, $11 = 0, $11$hi = 0, $13 = 0, $13$hi = 0, $16$hi = 0, $17 = 0, $17$hi = 0, $19 = 0, $19$hi = 0, $22$hi = 0, $23 = 0, $23$hi = 0; - i64toi32_i32$0 = 0; - $7 = $0; - $7$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $26 = 0; + var $6 = 0, $7 = 0, $8 = 0, $9 = 0, $10 = 0, $11 = 0; + $6 = 0; + $10 = $0; + $9 = $6; + $6 = 0; + $7 = 32; + $8 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { + { + $0 = $1_1 << $8 | 0; + $7 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $26 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $0 = ((1 << $8 | 0) - 1 | 0) & ($1_1 >>> (32 - $8 | 0) | 0) | 0 | ($6 << $8 | 0) | 0; + $7 = $1_1 << $8 | 0; } } - $10$hi = i64toi32_i32$1; - i64toi32_i32$1 = $7$hi; - i64toi32_i32$0 = $7; - i64toi32_i32$2 = $10$hi; - i64toi32_i32$3 = $26; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - $11 = i64toi32_i32$0 | i64toi32_i32$3 | 0; - $11$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - $13 = $2_1; - $13$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$1 = $3; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = i64toi32_i32$1 << i64toi32_i32$4 | 0; - $27 = 0; + $1_1 = $0; + $0 = $9; + $6 = $10; + $1_1 = $0 | $1_1 | 0; + $11 = $6 | $7 | 0; + $10 = $1_1; + $1_1 = 0; + $9 = $1_1; + $1_1 = 0; + $0 = $3; + $7 = 32; + $8 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { + { + $6 = $0 << $8 | 0; + $7 = 0; } } else { { - i64toi32_i32$0 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$1 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$2 << i64toi32_i32$4 | 0) | 0; - $27 = i64toi32_i32$1 << i64toi32_i32$4 | 0; + $6 = ((1 << $8 | 0) - 1 | 0) & ($0 >>> (32 - $8 | 0) | 0) | 0 | ($1_1 << $8 | 0) | 0; + $7 = $0 << $8 | 0; } } - $16$hi = i64toi32_i32$0; - i64toi32_i32$0 = $13$hi; - i64toi32_i32$2 = $13; - i64toi32_i32$1 = $16$hi; - i64toi32_i32$3 = $27; - i64toi32_i32$1 = i64toi32_i32$0 | i64toi32_i32$1 | 0; - $17 = i64toi32_i32$2 | i64toi32_i32$3 | 0; - $17$hi = i64toi32_i32$1; - i64toi32_i32$1 = 0; - $19 = $4; - $19$hi = i64toi32_i32$1; - i64toi32_i32$1 = 0; - i64toi32_i32$0 = $5; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = i64toi32_i32$0 << i64toi32_i32$4 | 0; - $28 = 0; + $0 = $6; + $6 = $9; + $1_1 = $2_1; + $0 = $6 | $0 | 0; + $9 = $1_1 | $7 | 0; + $2_1 = $0; + $0 = 0; + $3 = $0; + $0 = 0; + $6 = $5; + $7 = 32; + $8 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { + { + $1_1 = $6 << $8 | 0; + $7 = 0; } } else { { - i64toi32_i32$2 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$0 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$1 << i64toi32_i32$4 | 0) | 0; - $28 = i64toi32_i32$0 << i64toi32_i32$4 | 0; + $1_1 = ((1 << $8 | 0) - 1 | 0) & ($6 >>> (32 - $8 | 0) | 0) | 0 | ($0 << $8 | 0) | 0; + $7 = $6 << $8 | 0; } } - $22$hi = i64toi32_i32$2; - i64toi32_i32$2 = $19$hi; - i64toi32_i32$1 = $19; - i64toi32_i32$0 = $22$hi; - i64toi32_i32$3 = $28; - i64toi32_i32$0 = i64toi32_i32$2 | i64toi32_i32$0 | 0; - $23 = i64toi32_i32$1 | i64toi32_i32$3 | 0; - $23$hi = i64toi32_i32$0; - i64toi32_i32$0 = $11$hi; - i64toi32_i32$1 = $17$hi; - i64toi32_i32$2 = $23$hi; - return $1($11 | 0, i64toi32_i32$0 | 0, $17 | 0, i64toi32_i32$1 | 0, $23 | 0, i64toi32_i32$2 | 0) | 0 | 0; + $6 = $1_1; + $1_1 = $3; + $0 = $4; + $6 = $1_1 | $6 | 0; + $3 = $0 | $7 | 0; + $1_1 = $6; + $6 = $10; + $0 = $2_1; + return $1($11 | 0, $6 | 0, $9 | 0, $0 | 0, $3 | 0, $1_1 | 0) | 0 | 0; } function legalstub$2($0, $1_1, $2_1, $3, $4, $5) { @@ -193,92 +159,79 @@ function asmFunc(global, env, buffer) { $3 = $3 | 0; $4 = $4 | 0; $5 = $5 | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $26 = 0, $27 = 0, $28 = 0, $7 = 0, $7$hi = 0, $10$hi = 0, $11 = 0, $11$hi = 0, $13 = 0, $13$hi = 0, $16$hi = 0, $17 = 0, $17$hi = 0, $19 = 0, $19$hi = 0, $22$hi = 0, $23 = 0, $23$hi = 0; - i64toi32_i32$0 = 0; - $7 = $0; - $7$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $26 = 0; + var $6 = 0, $7 = 0, $8 = 0, $9 = 0, $10 = 0, $11 = 0; + $6 = 0; + $10 = $0; + $9 = $6; + $6 = 0; + $7 = 32; + $8 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { + { + $0 = $1_1 << $8 | 0; + $7 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $26 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $0 = ((1 << $8 | 0) - 1 | 0) & ($1_1 >>> (32 - $8 | 0) | 0) | 0 | ($6 << $8 | 0) | 0; + $7 = $1_1 << $8 | 0; } } - $10$hi = i64toi32_i32$1; - i64toi32_i32$1 = $7$hi; - i64toi32_i32$0 = $7; - i64toi32_i32$2 = $10$hi; - i64toi32_i32$3 = $26; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - $11 = i64toi32_i32$0 | i64toi32_i32$3 | 0; - $11$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - $13 = $2_1; - $13$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$1 = $3; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = i64toi32_i32$1 << i64toi32_i32$4 | 0; - $27 = 0; + $1_1 = $0; + $0 = $9; + $6 = $10; + $1_1 = $0 | $1_1 | 0; + $11 = $6 | $7 | 0; + $10 = $1_1; + $1_1 = 0; + $9 = $1_1; + $1_1 = 0; + $0 = $3; + $7 = 32; + $8 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { + { + $6 = $0 << $8 | 0; + $7 = 0; } } else { { - i64toi32_i32$0 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$1 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$2 << i64toi32_i32$4 | 0) | 0; - $27 = i64toi32_i32$1 << i64toi32_i32$4 | 0; + $6 = ((1 << $8 | 0) - 1 | 0) & ($0 >>> (32 - $8 | 0) | 0) | 0 | ($1_1 << $8 | 0) | 0; + $7 = $0 << $8 | 0; } } - $16$hi = i64toi32_i32$0; - i64toi32_i32$0 = $13$hi; - i64toi32_i32$2 = $13; - i64toi32_i32$1 = $16$hi; - i64toi32_i32$3 = $27; - i64toi32_i32$1 = i64toi32_i32$0 | i64toi32_i32$1 | 0; - $17 = i64toi32_i32$2 | i64toi32_i32$3 | 0; - $17$hi = i64toi32_i32$1; - i64toi32_i32$1 = 0; - $19 = $4; - $19$hi = i64toi32_i32$1; - i64toi32_i32$1 = 0; - i64toi32_i32$0 = $5; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = i64toi32_i32$0 << i64toi32_i32$4 | 0; - $28 = 0; + $0 = $6; + $6 = $9; + $1_1 = $2_1; + $0 = $6 | $0 | 0; + $9 = $1_1 | $7 | 0; + $2_1 = $0; + $0 = 0; + $3 = $0; + $0 = 0; + $6 = $5; + $7 = 32; + $8 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { + { + $1_1 = $6 << $8 | 0; + $7 = 0; } } else { { - i64toi32_i32$2 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$0 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$1 << i64toi32_i32$4 | 0) | 0; - $28 = i64toi32_i32$0 << i64toi32_i32$4 | 0; + $1_1 = ((1 << $8 | 0) - 1 | 0) & ($6 >>> (32 - $8 | 0) | 0) | 0 | ($0 << $8 | 0) | 0; + $7 = $6 << $8 | 0; } } - $22$hi = i64toi32_i32$2; - i64toi32_i32$2 = $19$hi; - i64toi32_i32$1 = $19; - i64toi32_i32$0 = $22$hi; - i64toi32_i32$3 = $28; - i64toi32_i32$0 = i64toi32_i32$2 | i64toi32_i32$0 | 0; - $23 = i64toi32_i32$1 | i64toi32_i32$3 | 0; - $23$hi = i64toi32_i32$0; - i64toi32_i32$0 = $11$hi; - i64toi32_i32$1 = $17$hi; - i64toi32_i32$2 = $23$hi; - return $2($11 | 0, i64toi32_i32$0 | 0, $17 | 0, i64toi32_i32$1 | 0, $23 | 0, i64toi32_i32$2 | 0) | 0 | 0; + $6 = $1_1; + $1_1 = $3; + $0 = $4; + $6 = $1_1 | $6 | 0; + $3 = $0 | $7 | 0; + $1_1 = $6; + $6 = $10; + $0 = $2_1; + return $2($11 | 0, $6 | 0, $9 | 0, $0 | 0, $3 | 0, $1_1 | 0) | 0 | 0; } var FUNCTION_TABLE = []; diff --git a/test/wasm2js/i64-shifts.2asm.js.opt b/test/wasm2js/i64-shifts.2asm.js.opt index 7e36812fb..5510b754b 100644 --- a/test/wasm2js/i64-shifts.2asm.js.opt +++ b/test/wasm2js/i64-shifts.2asm.js.opt @@ -27,20 +27,20 @@ function asmFunc(global, env, buffer) { $2_1 = $2_1 | 0; $3 = $3 | 0; $4 = $4 | 0; - var $5 = 0, $6 = 0; + var $5 = 0; $5 = $2_1 & 31; if (32 >>> 0 <= ($2_1 & 63) >>> 0) { { $1_1 = $0 << $5; - $6 = 0; + $0 = 0; } } else { { $1_1 = (1 << $5) - 1 & $0 >>> 32 - $5 | $1_1 << $5; - $6 = $0 << $5; + $0 = $0 << $5; } } - return ($6 | 0) == ($3 | 0) & ($1_1 | 0) == ($4 | 0); + return ($0 | 0) == ($3 | 0) & ($1_1 | 0) == ($4 | 0); } function $2($0, $1_1, $2_1, $3, $4) { @@ -49,124 +49,112 @@ function asmFunc(global, env, buffer) { $2_1 = $2_1 | 0; $3 = $3 | 0; $4 = $4 | 0; - var $5 = 0, $6 = 0; + var $5 = 0; $5 = $2_1 & 31; if (32 >>> 0 <= ($2_1 & 63) >>> 0) { { $2_1 = $1_1 >> 31; - $6 = $1_1 >> $5; + $0 = $1_1 >> $5; } } else { { $2_1 = $1_1 >> $5; - $6 = ((1 << $5) - 1 & $1_1) << 32 - $5 | $0 >>> $5; + $0 = ((1 << $5) - 1 & $1_1) << 32 - $5 | $0 >>> $5; } } - return ($6 | 0) == ($3 | 0) & ($2_1 | 0) == ($4 | 0); + return ($0 | 0) == ($3 | 0) & ($2_1 | 0) == ($4 | 0); } function legalstub$1($0, $1_1, $2_1, $3, $4, $5) { - var $6 = 0, $7 = 0, $8 = 0, $9 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0; - $11 = $0; - $7 = 32; - $0 = $7 & 31; - if (32 >>> 0 <= $7 >>> 0) { + var $6 = 0, $7 = 0, $8 = 0, $9 = 0, $10 = 0; + $6 = $0; + $8 = 32; + $0 = $8 & 31; + if (32 >>> 0 <= $8 >>> 0) { { - $6 = $1_1 << $0; - $8 = 0; + $7 = $1_1 << $0; + $0 = 0; } } else { { - $6 = (1 << $0) - 1 & $1_1 >>> 32 - $0 | $6 << $0; - $8 = $1_1 << $0; + $7 = (1 << $0) - 1 & $1_1 >>> 32 - $0 | $7 << $0; + $0 = $1_1 << $0; } } - $12 = $11 | $8; - $13 = $6 | $16; - $14 = $2_1; + $8 = $6 | $0; + $7 = $7 | $9; + $6 = $2_1; $2_1 = 0; $1_1 = $3; $3 = 32; $0 = $3 & 31; if (32 >>> 0 <= $3 >>> 0) { - { - $2_1 = $1_1 << $0; - $9 = 0; - } + $0 = 0 } else { - { - $2_1 = (1 << $0) - 1 & $1_1 >>> 32 - $0 | $2_1 << $0; - $9 = $1_1 << $0; - } + $0 = $1_1 << $0 } - $15 = $14 | $9; + $6 = $6 | $0; $2_1 = 0; $1_1 = $5; $0 = 32 & 31; if (32 >>> 0 <= $3 >>> 0) { { $2_1 = $1_1 << $0; - $10 = 0; + $0 = 0; } } else { { $2_1 = (1 << $0) - 1 & $1_1 >>> 32 - $0 | $2_1 << $0; - $10 = $1_1 << $0; + $0 = $1_1 << $0; } } - return $1($12, $13, $15, $10 | $4, $2_1 | $17); + return $1($8, $7, $6, $0 | $4, $2_1 | $10); } function legalstub$2($0, $1_1, $2_1, $3, $4, $5) { - var $6 = 0, $7 = 0, $8 = 0, $9 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0; - $11 = $0; - $7 = 32; - $0 = $7 & 31; - if (32 >>> 0 <= $7 >>> 0) { + var $6 = 0, $7 = 0, $8 = 0, $9 = 0, $10 = 0; + $6 = $0; + $8 = 32; + $0 = $8 & 31; + if (32 >>> 0 <= $8 >>> 0) { { - $6 = $1_1 << $0; - $8 = 0; + $7 = $1_1 << $0; + $0 = 0; } } else { { - $6 = (1 << $0) - 1 & $1_1 >>> 32 - $0 | $6 << $0; - $8 = $1_1 << $0; + $7 = (1 << $0) - 1 & $1_1 >>> 32 - $0 | $7 << $0; + $0 = $1_1 << $0; } } - $12 = $11 | $8; - $13 = $6 | $16; - $14 = $2_1; + $8 = $6 | $0; + $7 = $7 | $9; + $6 = $2_1; $2_1 = 0; $1_1 = $3; $3 = 32; $0 = $3 & 31; if (32 >>> 0 <= $3 >>> 0) { - { - $2_1 = $1_1 << $0; - $9 = 0; - } + $0 = 0 } else { - { - $2_1 = (1 << $0) - 1 & $1_1 >>> 32 - $0 | $2_1 << $0; - $9 = $1_1 << $0; - } + $0 = $1_1 << $0 } - $15 = $14 | $9; + $6 = $6 | $0; $2_1 = 0; $1_1 = $5; $0 = 32 & 31; if (32 >>> 0 <= $3 >>> 0) { { $2_1 = $1_1 << $0; - $10 = 0; + $0 = 0; } } else { { $2_1 = (1 << $0) - 1 & $1_1 >>> 32 - $0 | $2_1 << $0; - $10 = $1_1 << $0; + $0 = $1_1 << $0; } } - return $2($12, $13, $15, $10 | $4, $2_1 | $17); + return $2($8, $7, $6, $0 | $4, $2_1 | $10); } var FUNCTION_TABLE = []; diff --git a/test/wasm2js/i64.2asm.js b/test/wasm2js/i64.2asm.js index 823981f7c..a4f5ada78 100644 --- a/test/wasm2js/i64.2asm.js +++ b/test/wasm2js/i64.2asm.js @@ -42,544 +42,383 @@ function asmFunc(global, env, buffer) { var setTempRet0 = env.setTempRet0; var getTempRet0 = env.getTempRet0; var i64toi32_i32$HIGH_BITS = 0; - function $0(x, x$hi, y, y$hi) { - x = x | 0; - x$hi = x$hi | 0; - y = y | 0; - y$hi = y$hi | 0; - var i64toi32_i32$5 = 0, i64toi32_i32$3 = 0, i64toi32_i32$4 = 0; - i64toi32_i32$3 = y; - i64toi32_i32$4 = x + i64toi32_i32$3 | 0; - i64toi32_i32$5 = x$hi + y$hi | 0; - if (i64toi32_i32$4 >>> 0 < i64toi32_i32$3 >>> 0) { - i64toi32_i32$5 = i64toi32_i32$5 + 1 | 0 - } - i64toi32_i32$HIGH_BITS = i64toi32_i32$5; - return i64toi32_i32$4 | 0; - } - - function $1(x, x$hi, y, y$hi) { - x = x | 0; - x$hi = x$hi | 0; - y = y | 0; - y$hi = y$hi | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$0 = 0, i64toi32_i32$5 = 0, i64toi32_i32$3 = 0; - i64toi32_i32$0 = x$hi; - i64toi32_i32$0 = y$hi; - i64toi32_i32$0 = x$hi; - i64toi32_i32$2 = x; - i64toi32_i32$3 = y; - i64toi32_i32$5 = (i64toi32_i32$2 >>> 0 < i64toi32_i32$3 >>> 0) + y$hi | 0; - i64toi32_i32$5 = i64toi32_i32$0 - i64toi32_i32$5 | 0; - i64toi32_i32$2 = i64toi32_i32$2 - i64toi32_i32$3 | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$5; - return i64toi32_i32$2 | 0; - } - - function $2(x, x$hi, y, y$hi) { - x = x | 0; - x$hi = x$hi | 0; - y = y | 0; - y$hi = y$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = x$hi; - i64toi32_i32$0 = y$hi; - i64toi32_i32$0 = x$hi; - i64toi32_i32$1 = y$hi; - i64toi32_i32$1 = __wasm_i64_mul(x | 0, i64toi32_i32$0 | 0, y | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; - } - - function $3(x, x$hi, y, y$hi) { - x = x | 0; - x$hi = x$hi | 0; - y = y | 0; - y$hi = y$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = x$hi; - i64toi32_i32$0 = y$hi; - i64toi32_i32$0 = x$hi; - i64toi32_i32$1 = y$hi; - i64toi32_i32$1 = __wasm_i64_sdiv(x | 0, i64toi32_i32$0 | 0, y | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; - } - - function $4(x, x$hi, y, y$hi) { - x = x | 0; - x$hi = x$hi | 0; - y = y | 0; - y$hi = y$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = x$hi; - i64toi32_i32$0 = y$hi; - i64toi32_i32$0 = x$hi; - i64toi32_i32$1 = y$hi; - i64toi32_i32$1 = __wasm_i64_udiv(x | 0, i64toi32_i32$0 | 0, y | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; - } - - function $5(x, x$hi, y, y$hi) { - x = x | 0; - x$hi = x$hi | 0; - y = y | 0; - y$hi = y$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = x$hi; - i64toi32_i32$0 = y$hi; - i64toi32_i32$0 = x$hi; - i64toi32_i32$1 = y$hi; - i64toi32_i32$1 = __wasm_i64_srem(x | 0, i64toi32_i32$0 | 0, y | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; - } - - function $6(x, x$hi, y, y$hi) { - x = x | 0; - x$hi = x$hi | 0; - y = y | 0; - y$hi = y$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = x$hi; - i64toi32_i32$0 = y$hi; - i64toi32_i32$0 = x$hi; - i64toi32_i32$1 = y$hi; - i64toi32_i32$1 = __wasm_i64_urem(x | 0, i64toi32_i32$0 | 0, y | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; - } - - function $7(x, x$hi, y, y$hi) { - x = x | 0; - x$hi = x$hi | 0; - y = y | 0; - y$hi = y$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$2 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = x$hi; - i64toi32_i32$0 = y$hi; - i64toi32_i32$0 = x$hi; - i64toi32_i32$2 = x; - i64toi32_i32$1 = y$hi; - i64toi32_i32$1 = i64toi32_i32$0 & i64toi32_i32$1 | 0; - i64toi32_i32$2 = i64toi32_i32$2 & y | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$2 | 0; - } - - function $8(x, x$hi, y, y$hi) { - x = x | 0; - x$hi = x$hi | 0; - y = y | 0; - y$hi = y$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$2 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = x$hi; - i64toi32_i32$0 = y$hi; - i64toi32_i32$0 = x$hi; - i64toi32_i32$2 = x; - i64toi32_i32$1 = y$hi; - i64toi32_i32$1 = i64toi32_i32$0 | i64toi32_i32$1 | 0; - i64toi32_i32$2 = i64toi32_i32$2 | y | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$2 | 0; - } - - function $9(x, x$hi, y, y$hi) { - x = x | 0; - x$hi = x$hi | 0; - y = y | 0; - y$hi = y$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$2 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = x$hi; - i64toi32_i32$0 = y$hi; - i64toi32_i32$0 = x$hi; - i64toi32_i32$2 = x; - i64toi32_i32$1 = y$hi; - i64toi32_i32$1 = i64toi32_i32$0 ^ i64toi32_i32$1 | 0; - i64toi32_i32$2 = i64toi32_i32$2 ^ y | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$2 | 0; - } - - function $10(x, x$hi, y, y$hi) { - x = x | 0; - x$hi = x$hi | 0; - y = y | 0; - y$hi = y$hi | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $9_1 = 0; - i64toi32_i32$0 = x$hi; - i64toi32_i32$0 = y$hi; - i64toi32_i32$0 = x$hi; - i64toi32_i32$2 = x; - i64toi32_i32$1 = y$hi; - i64toi32_i32$3 = y; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $9_1 = 0; + function $0($0_1, $1_1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + $0_1 = $0_1 + $2_1 | 0; + $1_1 = $1_1 + $3_1 | 0; + if ($0_1 >>> 0 < $2_1 >>> 0) { + $1_1 = $1_1 + 1 | 0 + } + i64toi32_i32$HIGH_BITS = $1_1; + return $0_1 | 0; + } + + function $1($0_1, $1_1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + $3_1 = ($0_1 >>> 0 < $2_1 >>> 0) + $3_1 | 0; + $3_1 = $1_1 - $3_1 | 0; + $0_1 = $0_1 - $2_1 | 0; + i64toi32_i32$HIGH_BITS = $3_1; + return $0_1 | 0; + } + + function $2($0_1, $1_1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + $3_1 = __wasm_i64_mul($0_1 | 0, $1_1 | 0, $2_1 | 0, $3_1 | 0) | 0; + $1_1 = i64toi32_i32$HIGH_BITS; + i64toi32_i32$HIGH_BITS = $1_1; + return $3_1 | 0; + } + + function $3($0_1, $1_1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + $3_1 = __wasm_i64_sdiv($0_1 | 0, $1_1 | 0, $2_1 | 0, $3_1 | 0) | 0; + $1_1 = i64toi32_i32$HIGH_BITS; + i64toi32_i32$HIGH_BITS = $1_1; + return $3_1 | 0; + } + + function $4($0_1, $1_1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + $3_1 = __wasm_i64_udiv($0_1 | 0, $1_1 | 0, $2_1 | 0, $3_1 | 0) | 0; + $1_1 = i64toi32_i32$HIGH_BITS; + i64toi32_i32$HIGH_BITS = $1_1; + return $3_1 | 0; + } + + function $5($0_1, $1_1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + $3_1 = __wasm_i64_srem($0_1 | 0, $1_1 | 0, $2_1 | 0, $3_1 | 0) | 0; + $1_1 = i64toi32_i32$HIGH_BITS; + i64toi32_i32$HIGH_BITS = $1_1; + return $3_1 | 0; + } + + function $6($0_1, $1_1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + $3_1 = __wasm_i64_urem($0_1 | 0, $1_1 | 0, $2_1 | 0, $3_1 | 0) | 0; + $1_1 = i64toi32_i32$HIGH_BITS; + i64toi32_i32$HIGH_BITS = $1_1; + return $3_1 | 0; + } + + function $7($0_1, $1_1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + $3_1 = $1_1 & $3_1 | 0; + $0_1 = $0_1 & $2_1 | 0; + i64toi32_i32$HIGH_BITS = $3_1; + return $0_1 | 0; + } + + function $8($0_1, $1_1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + $3_1 = $1_1 | $3_1 | 0; + $0_1 = $0_1 | $2_1 | 0; + i64toi32_i32$HIGH_BITS = $3_1; + return $0_1 | 0; + } + + function $9($0_1, $1_1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + $3_1 = $1_1 ^ $3_1 | 0; + $0_1 = $0_1 ^ $2_1 | 0; + i64toi32_i32$HIGH_BITS = $3_1; + return $0_1 | 0; + } + + function $10($0_1, $1_1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + var $4_1 = 0; + $4_1 = $2_1 & 31 | 0; + if (32 >>> 0 <= ($2_1 & 63 | 0) >>> 0) { + { + $3_1 = $0_1 << $4_1 | 0; + $0_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $9_1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $3_1 = ((1 << $4_1 | 0) - 1 | 0) & ($0_1 >>> (32 - $4_1 | 0) | 0) | 0 | ($1_1 << $4_1 | 0) | 0; + $0_1 = $0_1 << $4_1 | 0; } } - i64toi32_i32$2 = $9_1; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$2 | 0; + i64toi32_i32$HIGH_BITS = $3_1; + return $0_1 | 0; } - - function $11(x, x$hi, y, y$hi) { - x = x | 0; - x$hi = x$hi | 0; - y = y | 0; - y$hi = y$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $9_1 = 0; - i64toi32_i32$0 = x$hi; - i64toi32_i32$0 = y$hi; - i64toi32_i32$0 = x$hi; - i64toi32_i32$2 = x; - i64toi32_i32$1 = y$hi; - i64toi32_i32$3 = y; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + + function $11($0_1, $1_1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + var $4_1 = 0; + $4_1 = $2_1 & 31 | 0; + if (32 >>> 0 <= ($2_1 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$0 >> 31 | 0; - $9_1 = i64toi32_i32$0 >> i64toi32_i32$4 | 0; + $3_1 = $1_1 >> 31 | 0; + $0_1 = $1_1 >> $4_1 | 0; } } else { { - i64toi32_i32$1 = i64toi32_i32$0 >> i64toi32_i32$4 | 0; - $9_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; + $3_1 = $1_1 >> $4_1 | 0; + $0_1 = (((1 << $4_1 | 0) - 1 | 0) & $1_1 | 0) << (32 - $4_1 | 0) | 0 | ($0_1 >>> $4_1 | 0) | 0; } - } - i64toi32_i32$2 = $9_1; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$2 | 0; - } - - function $12(x, x$hi, y, y$hi) { - x = x | 0; - x$hi = x$hi | 0; - y = y | 0; - y$hi = y$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $9_1 = 0; - i64toi32_i32$0 = x$hi; - i64toi32_i32$0 = y$hi; - i64toi32_i32$0 = x$hi; - i64toi32_i32$2 = x; - i64toi32_i32$1 = y$hi; - i64toi32_i32$3 = y; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = 0; - $9_1 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } - } else { - { - i64toi32_i32$1 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $9_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } - } - i64toi32_i32$2 = $9_1; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$2 | 0; - } - - function $13(x, x$hi, y, y$hi) { - x = x | 0; - x$hi = x$hi | 0; - y = y | 0; - y$hi = y$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = x$hi; - i64toi32_i32$0 = y$hi; - i64toi32_i32$0 = x$hi; - i64toi32_i32$1 = y$hi; - i64toi32_i32$1 = __wasm_rotl_i64(x | 0, i64toi32_i32$0 | 0, y | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; - } - - function $14(x, x$hi, y, y$hi) { - x = x | 0; - x$hi = x$hi | 0; - y = y | 0; - y$hi = y$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = x$hi; - i64toi32_i32$0 = y$hi; - i64toi32_i32$0 = x$hi; - i64toi32_i32$1 = y$hi; - i64toi32_i32$1 = __wasm_rotr_i64(x | 0, i64toi32_i32$0 | 0, y | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; - } - - function $15(x, x$hi) { - x = x | 0; - x$hi = x$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$3 = 0, $6_1 = 0, i64toi32_i32$1 = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = x$hi; - i64toi32_i32$1 = x; - i64toi32_i32$3 = Math_clz32(i64toi32_i32$0); - i64toi32_i32$2 = 0; - if ((i64toi32_i32$3 | 0) == (32 | 0)) { - $6_1 = Math_clz32(i64toi32_i32$1) + 32 | 0 - } else { - $6_1 = i64toi32_i32$3 - } - i64toi32_i32$0 = $6_1; - i64toi32_i32$HIGH_BITS = i64toi32_i32$2; - return i64toi32_i32$0 | 0; - } - - function $16(x, x$hi) { - x = x | 0; - x$hi = x$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = x$hi; - i64toi32_i32$0 = __wasm_ctz_i64(x | 0, i64toi32_i32$0 | 0) | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$0 | 0; - } - - function $17(x, x$hi) { - x = x | 0; - x$hi = x$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = x$hi; - i64toi32_i32$0 = __wasm_popcnt_i64(x | 0, i64toi32_i32$0 | 0) | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$0 | 0; - } - - function $18(x, x$hi) { - x = x | 0; - x$hi = x$hi | 0; - var i64toi32_i32$0 = 0; - i64toi32_i32$0 = x$hi; - return !(x | i64toi32_i32$0 | 0) | 0; - } - - function $19(x, x$hi, y, y$hi) { - x = x | 0; - x$hi = x$hi | 0; - y = y | 0; - y$hi = y$hi | 0; - var i64toi32_i32$0 = 0; - i64toi32_i32$0 = x$hi; - i64toi32_i32$0 = y$hi; - i64toi32_i32$0 = x$hi; - return (x | 0) == (y | 0) & (i64toi32_i32$0 | 0) == (y$hi | 0) | 0 | 0; - } - - function $20(x, x$hi, y, y$hi) { - x = x | 0; - x$hi = x$hi | 0; - y = y | 0; - y$hi = y$hi | 0; - var i64toi32_i32$0 = 0; - i64toi32_i32$0 = x$hi; - i64toi32_i32$0 = y$hi; - i64toi32_i32$0 = x$hi; - return (x | 0) != (y | 0) | (i64toi32_i32$0 | 0) != (y$hi | 0) | 0 | 0; - } - - function $21(x, x$hi, y, y$hi) { - x = x | 0; - x$hi = x$hi | 0; - y = y | 0; - y$hi = y$hi | 0; - var i64toi32_i32$0 = 0, $8_1 = 0, $9_1 = 0, $10_1 = 0, i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0; - i64toi32_i32$0 = x$hi; - i64toi32_i32$0 = y$hi; - i64toi32_i32$0 = x$hi; - i64toi32_i32$2 = x; - i64toi32_i32$1 = y$hi; - i64toi32_i32$3 = y; - if ((i64toi32_i32$0 | 0) < (y$hi | 0)) { - $8_1 = 1 - } else { - { - if ((i64toi32_i32$0 | 0) <= (i64toi32_i32$1 | 0)) { - { - if (i64toi32_i32$2 >>> 0 >= i64toi32_i32$3 >>> 0) { - $9_1 = 0 - } else { - $9_1 = 1 - } - $10_1 = $9_1; - } + } + i64toi32_i32$HIGH_BITS = $3_1; + return $0_1 | 0; + } + + function $12($0_1, $1_1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + var $4_1 = 0; + $4_1 = $2_1 & 31 | 0; + if (32 >>> 0 <= ($2_1 & 63 | 0) >>> 0) { + { + $3_1 = 0; + $0_1 = $1_1 >>> $4_1 | 0; + } + } else { + { + $3_1 = $1_1 >>> $4_1 | 0; + $0_1 = (((1 << $4_1 | 0) - 1 | 0) & $1_1 | 0) << (32 - $4_1 | 0) | 0 | ($0_1 >>> $4_1 | 0) | 0; + } + } + i64toi32_i32$HIGH_BITS = $3_1; + return $0_1 | 0; + } + + function $13($0_1, $1_1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + $3_1 = __wasm_rotl_i64($0_1 | 0, $1_1 | 0, $2_1 | 0, $3_1 | 0) | 0; + $1_1 = i64toi32_i32$HIGH_BITS; + i64toi32_i32$HIGH_BITS = $1_1; + return $3_1 | 0; + } + + function $14($0_1, $1_1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + $3_1 = __wasm_rotr_i64($0_1 | 0, $1_1 | 0, $2_1 | 0, $3_1 | 0) | 0; + $1_1 = i64toi32_i32$HIGH_BITS; + i64toi32_i32$HIGH_BITS = $1_1; + return $3_1 | 0; + } + + function $15($0_1, $1_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + var $2_1 = 0; + $1_1 = Math_clz32($1_1); + $2_1 = 0; + if (($1_1 | 0) == (32 | 0)) { + $1_1 = Math_clz32($0_1) + 32 | 0 + } + i64toi32_i32$HIGH_BITS = $2_1; + return $1_1 | 0; + } + + function $16($0_1, $1_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $1_1 = __wasm_ctz_i64($0_1 | 0, $1_1 | 0) | 0; + $0_1 = i64toi32_i32$HIGH_BITS; + i64toi32_i32$HIGH_BITS = $0_1; + return $1_1 | 0; + } + + function $17($0_1, $1_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $1_1 = __wasm_popcnt_i64($0_1 | 0, $1_1 | 0) | 0; + $0_1 = i64toi32_i32$HIGH_BITS; + i64toi32_i32$HIGH_BITS = $0_1; + return $1_1 | 0; + } + + function $18($0_1, $1_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + return !($0_1 | $1_1 | 0) | 0; + } + + function $19($0_1, $1_1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + return ($0_1 | 0) == ($2_1 | 0) & ($1_1 | 0) == ($3_1 | 0) | 0 | 0; + } + + function $20($0_1, $1_1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + return ($0_1 | 0) != ($2_1 | 0) | ($1_1 | 0) != ($3_1 | 0) | 0 | 0; + } + + function $21($0_1, $1_1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + var $4_1 = 0; + $4_1 = $3_1; + if (($1_1 | 0) < ($3_1 | 0)) { + $0_1 = 1 + } else { + if (($1_1 | 0) <= ($4_1 | 0)) { + if ($0_1 >>> 0 >= $2_1 >>> 0) { + $0_1 = 0 } else { - $10_1 = 0 + $0_1 = 1 } - $8_1 = $10_1; + } else { + $0_1 = 0 } } - return $8_1 | 0; + return $0_1 | 0; } - function $22(x, x$hi, y, y$hi) { - x = x | 0; - x$hi = x$hi | 0; - y = y | 0; - y$hi = y$hi | 0; - var i64toi32_i32$0 = 0; - i64toi32_i32$0 = x$hi; - i64toi32_i32$0 = y$hi; - i64toi32_i32$0 = x$hi; - return i64toi32_i32$0 >>> 0 < y$hi >>> 0 | ((i64toi32_i32$0 | 0) == (y$hi | 0) & x >>> 0 < y >>> 0 | 0) | 0 | 0; - } - - function $23(x, x$hi, y, y$hi) { - x = x | 0; - x$hi = x$hi | 0; - y = y | 0; - y$hi = y$hi | 0; - var i64toi32_i32$0 = 0, $8_1 = 0, $9_1 = 0, $10_1 = 0, i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0; - i64toi32_i32$0 = x$hi; - i64toi32_i32$0 = y$hi; - i64toi32_i32$0 = x$hi; - i64toi32_i32$2 = x; - i64toi32_i32$1 = y$hi; - i64toi32_i32$3 = y; - if ((i64toi32_i32$0 | 0) < (y$hi | 0)) { - $8_1 = 1 - } else { - { - if ((i64toi32_i32$0 | 0) <= (i64toi32_i32$1 | 0)) { - { - if (i64toi32_i32$2 >>> 0 > i64toi32_i32$3 >>> 0) { - $9_1 = 0 - } else { - $9_1 = 1 - } - $10_1 = $9_1; - } + function $22($0_1, $1_1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + return $1_1 >>> 0 < $3_1 >>> 0 | (($1_1 | 0) == ($3_1 | 0) & $0_1 >>> 0 < $2_1 >>> 0 | 0) | 0 | 0; + } + + function $23($0_1, $1_1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + var $4_1 = 0; + $4_1 = $3_1; + if (($1_1 | 0) < ($3_1 | 0)) { + $0_1 = 1 + } else { + if (($1_1 | 0) <= ($4_1 | 0)) { + if ($0_1 >>> 0 > $2_1 >>> 0) { + $0_1 = 0 } else { - $10_1 = 0 + $0_1 = 1 } - $8_1 = $10_1; + } else { + $0_1 = 0 } } - return $8_1 | 0; + return $0_1 | 0; } - function $24(x, x$hi, y, y$hi) { - x = x | 0; - x$hi = x$hi | 0; - y = y | 0; - y$hi = y$hi | 0; - var i64toi32_i32$0 = 0; - i64toi32_i32$0 = x$hi; - i64toi32_i32$0 = y$hi; - i64toi32_i32$0 = x$hi; - return i64toi32_i32$0 >>> 0 < y$hi >>> 0 | ((i64toi32_i32$0 | 0) == (y$hi | 0) & x >>> 0 <= y >>> 0 | 0) | 0 | 0; - } - - function $25(x, x$hi, y, y$hi) { - x = x | 0; - x$hi = x$hi | 0; - y = y | 0; - y$hi = y$hi | 0; - var i64toi32_i32$0 = 0, $8_1 = 0, $9_1 = 0, $10_1 = 0, i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0; - i64toi32_i32$0 = x$hi; - i64toi32_i32$0 = y$hi; - i64toi32_i32$0 = x$hi; - i64toi32_i32$2 = x; - i64toi32_i32$1 = y$hi; - i64toi32_i32$3 = y; - if ((i64toi32_i32$0 | 0) > (y$hi | 0)) { - $8_1 = 1 - } else { - { - if ((i64toi32_i32$0 | 0) >= (i64toi32_i32$1 | 0)) { - { - if (i64toi32_i32$2 >>> 0 <= i64toi32_i32$3 >>> 0) { - $9_1 = 0 - } else { - $9_1 = 1 - } - $10_1 = $9_1; - } + function $24($0_1, $1_1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + return $1_1 >>> 0 < $3_1 >>> 0 | (($1_1 | 0) == ($3_1 | 0) & $0_1 >>> 0 <= $2_1 >>> 0 | 0) | 0 | 0; + } + + function $25($0_1, $1_1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + var $4_1 = 0; + $4_1 = $3_1; + if (($1_1 | 0) > ($3_1 | 0)) { + $0_1 = 1 + } else { + if (($1_1 | 0) >= ($4_1 | 0)) { + if ($0_1 >>> 0 <= $2_1 >>> 0) { + $0_1 = 0 } else { - $10_1 = 0 + $0_1 = 1 } - $8_1 = $10_1; + } else { + $0_1 = 0 } } - return $8_1 | 0; + return $0_1 | 0; } - function $26(x, x$hi, y, y$hi) { - x = x | 0; - x$hi = x$hi | 0; - y = y | 0; - y$hi = y$hi | 0; - var i64toi32_i32$0 = 0; - i64toi32_i32$0 = x$hi; - i64toi32_i32$0 = y$hi; - i64toi32_i32$0 = x$hi; - return i64toi32_i32$0 >>> 0 > y$hi >>> 0 | ((i64toi32_i32$0 | 0) == (y$hi | 0) & x >>> 0 > y >>> 0 | 0) | 0 | 0; - } - - function $27(x, x$hi, y, y$hi) { - x = x | 0; - x$hi = x$hi | 0; - y = y | 0; - y$hi = y$hi | 0; - var i64toi32_i32$0 = 0, $8_1 = 0, $9_1 = 0, $10_1 = 0, i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0; - i64toi32_i32$0 = x$hi; - i64toi32_i32$0 = y$hi; - i64toi32_i32$0 = x$hi; - i64toi32_i32$2 = x; - i64toi32_i32$1 = y$hi; - i64toi32_i32$3 = y; - if ((i64toi32_i32$0 | 0) > (y$hi | 0)) { - $8_1 = 1 - } else { - { - if ((i64toi32_i32$0 | 0) >= (i64toi32_i32$1 | 0)) { - { - if (i64toi32_i32$2 >>> 0 < i64toi32_i32$3 >>> 0) { - $9_1 = 0 - } else { - $9_1 = 1 - } - $10_1 = $9_1; - } + function $26($0_1, $1_1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + return $1_1 >>> 0 > $3_1 >>> 0 | (($1_1 | 0) == ($3_1 | 0) & $0_1 >>> 0 > $2_1 >>> 0 | 0) | 0 | 0; + } + + function $27($0_1, $1_1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + var $4_1 = 0; + $4_1 = $3_1; + if (($1_1 | 0) > ($3_1 | 0)) { + $0_1 = 1 + } else { + if (($1_1 | 0) >= ($4_1 | 0)) { + if ($0_1 >>> 0 < $2_1 >>> 0) { + $0_1 = 0 } else { - $10_1 = 0 + $0_1 = 1 } - $8_1 = $10_1; + } else { + $0_1 = 0 } } - return $8_1 | 0; + return $0_1 | 0; } - function $28(x, x$hi, y, y$hi) { - x = x | 0; - x$hi = x$hi | 0; - y = y | 0; - y$hi = y$hi | 0; - var i64toi32_i32$0 = 0; - i64toi32_i32$0 = x$hi; - i64toi32_i32$0 = y$hi; - i64toi32_i32$0 = x$hi; - return i64toi32_i32$0 >>> 0 > y$hi >>> 0 | ((i64toi32_i32$0 | 0) == (y$hi | 0) & x >>> 0 >= y >>> 0 | 0) | 0 | 0; + function $28($0_1, $1_1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + return $1_1 >>> 0 > $3_1 >>> 0 | (($1_1 | 0) == ($3_1 | 0) & $0_1 >>> 0 >= $2_1 >>> 0 | 0) | 0 | 0; } function legalstub$0($0_1, $1_1, $2_1, $3_1) { @@ -587,85 +426,68 @@ function asmFunc(global, env, buffer) { $1_1 = $1_1 | 0; $2_1 = $2_1 | 0; $3_1 = $3_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$3 = 0, $21_1 = 0, $22_1 = 0, $23_1 = 0, $6_1 = 0, $6$hi = 0, $9$hi = 0, $10_1 = 0, $10$hi = 0, $12_1 = 0, $12$hi = 0, $15$hi = 0, $16_1 = 0, $16$hi = 0, $4_1 = 0, $4$hi = 0; - i64toi32_i32$0 = 0; - $6_1 = $0_1; - $6$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $4_1 = 0, $5_1 = 0, $6_1 = 0, $7_1 = 0, $8_1 = 0, $9_1 = 0; + $6_1 = 0; + $7_1 = $0_1; + $8_1 = $6_1; + $6_1 = 0; + $5_1 = 32; + $4_1 = $5_1 & 31 | 0; + if (32 >>> 0 <= ($5_1 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $21_1 = 0; + $0_1 = $1_1 << $4_1 | 0; + $5_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $21_1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $0_1 = ((1 << $4_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $4_1 | 0) | 0) | 0 | ($6_1 << $4_1 | 0) | 0; + $5_1 = $1_1 << $4_1 | 0; } } - $9$hi = i64toi32_i32$1; - i64toi32_i32$1 = $6$hi; - i64toi32_i32$0 = $6_1; - i64toi32_i32$2 = $9$hi; - i64toi32_i32$3 = $21_1; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - $10_1 = i64toi32_i32$0 | i64toi32_i32$3 | 0; - $10$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - $12_1 = $2_1; - $12$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$1 = $3_1; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + $1_1 = $0_1; + $0_1 = $8_1; + $6_1 = $7_1; + $1_1 = $0_1 | $1_1 | 0; + $9_1 = $6_1 | $5_1 | 0; + $7_1 = $1_1; + $1_1 = 0; + $8_1 = $1_1; + $1_1 = 0; + $0_1 = $3_1; + $5_1 = 32; + $4_1 = $5_1 & 31 | 0; + if (32 >>> 0 <= ($5_1 & 63 | 0) >>> 0) { { - i64toi32_i32$0 = i64toi32_i32$1 << i64toi32_i32$4 | 0; - $22_1 = 0; + $6_1 = $0_1 << $4_1 | 0; + $5_1 = 0; } } else { { - i64toi32_i32$0 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$1 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$2 << i64toi32_i32$4 | 0) | 0; - $22_1 = i64toi32_i32$1 << i64toi32_i32$4 | 0; + $6_1 = ((1 << $4_1 | 0) - 1 | 0) & ($0_1 >>> (32 - $4_1 | 0) | 0) | 0 | ($1_1 << $4_1 | 0) | 0; + $5_1 = $0_1 << $4_1 | 0; } } - $15$hi = i64toi32_i32$0; - i64toi32_i32$0 = $12$hi; - i64toi32_i32$2 = $12_1; - i64toi32_i32$1 = $15$hi; - i64toi32_i32$3 = $22_1; - i64toi32_i32$1 = i64toi32_i32$0 | i64toi32_i32$1 | 0; - $16_1 = i64toi32_i32$2 | i64toi32_i32$3 | 0; - $16$hi = i64toi32_i32$1; - i64toi32_i32$1 = $10$hi; - i64toi32_i32$2 = $16$hi; - i64toi32_i32$2 = $0($10_1 | 0, i64toi32_i32$1 | 0, $16_1 | 0, i64toi32_i32$2 | 0) | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $4_1 = i64toi32_i32$2; - $4$hi = i64toi32_i32$1; - i64toi32_i32$0 = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $23_1 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + $0_1 = $6_1; + $6_1 = $8_1; + $1_1 = $2_1; + $0_1 = $6_1 | $0_1 | 0; + $2_1 = $1_1 | $5_1 | 0; + $1_1 = $0_1; + $0_1 = $7_1; + $1_1 = $0($9_1 | 0, $0_1 | 0, $2_1 | 0, $1_1 | 0) | 0; + $0_1 = i64toi32_i32$HIGH_BITS; + $3_1 = $1_1; + $2_1 = $0_1; + $6_1 = $1_1; + $5_1 = 32; + $4_1 = $5_1 & 31 | 0; + if (32 >>> 0 <= ($5_1 & 63 | 0) >>> 0) { + $0_1 = $0_1 >>> $4_1 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $23_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$0 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $4_1 | 0) - 1 | 0) & $0_1 | 0) << (32 - $4_1 | 0) | 0 | ($6_1 >>> $4_1 | 0) | 0 } - setTempRet0($23_1 | 0); - i64toi32_i32$2 = $4$hi; - return $4_1 | 0; + setTempRet0($0_1 | 0); + return $3_1 | 0; } function legalstub$1($0_1, $1_1, $2_1, $3_1) { @@ -673,85 +495,68 @@ function asmFunc(global, env, buffer) { $1_1 = $1_1 | 0; $2_1 = $2_1 | 0; $3_1 = $3_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$3 = 0, $21_1 = 0, $22_1 = 0, $23_1 = 0, $6_1 = 0, $6$hi = 0, $9$hi = 0, $10_1 = 0, $10$hi = 0, $12_1 = 0, $12$hi = 0, $15$hi = 0, $16_1 = 0, $16$hi = 0, $4_1 = 0, $4$hi = 0; - i64toi32_i32$0 = 0; - $6_1 = $0_1; - $6$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $4_1 = 0, $5_1 = 0, $6_1 = 0, $7_1 = 0, $8_1 = 0, $9_1 = 0; + $6_1 = 0; + $7_1 = $0_1; + $8_1 = $6_1; + $6_1 = 0; + $5_1 = 32; + $4_1 = $5_1 & 31 | 0; + if (32 >>> 0 <= ($5_1 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $21_1 = 0; + $0_1 = $1_1 << $4_1 | 0; + $5_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $21_1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $0_1 = ((1 << $4_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $4_1 | 0) | 0) | 0 | ($6_1 << $4_1 | 0) | 0; + $5_1 = $1_1 << $4_1 | 0; } } - $9$hi = i64toi32_i32$1; - i64toi32_i32$1 = $6$hi; - i64toi32_i32$0 = $6_1; - i64toi32_i32$2 = $9$hi; - i64toi32_i32$3 = $21_1; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - $10_1 = i64toi32_i32$0 | i64toi32_i32$3 | 0; - $10$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - $12_1 = $2_1; - $12$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$1 = $3_1; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + $1_1 = $0_1; + $0_1 = $8_1; + $6_1 = $7_1; + $1_1 = $0_1 | $1_1 | 0; + $9_1 = $6_1 | $5_1 | 0; + $7_1 = $1_1; + $1_1 = 0; + $8_1 = $1_1; + $1_1 = 0; + $0_1 = $3_1; + $5_1 = 32; + $4_1 = $5_1 & 31 | 0; + if (32 >>> 0 <= ($5_1 & 63 | 0) >>> 0) { { - i64toi32_i32$0 = i64toi32_i32$1 << i64toi32_i32$4 | 0; - $22_1 = 0; + $6_1 = $0_1 << $4_1 | 0; + $5_1 = 0; } } else { { - i64toi32_i32$0 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$1 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$2 << i64toi32_i32$4 | 0) | 0; - $22_1 = i64toi32_i32$1 << i64toi32_i32$4 | 0; + $6_1 = ((1 << $4_1 | 0) - 1 | 0) & ($0_1 >>> (32 - $4_1 | 0) | 0) | 0 | ($1_1 << $4_1 | 0) | 0; + $5_1 = $0_1 << $4_1 | 0; } } - $15$hi = i64toi32_i32$0; - i64toi32_i32$0 = $12$hi; - i64toi32_i32$2 = $12_1; - i64toi32_i32$1 = $15$hi; - i64toi32_i32$3 = $22_1; - i64toi32_i32$1 = i64toi32_i32$0 | i64toi32_i32$1 | 0; - $16_1 = i64toi32_i32$2 | i64toi32_i32$3 | 0; - $16$hi = i64toi32_i32$1; - i64toi32_i32$1 = $10$hi; - i64toi32_i32$2 = $16$hi; - i64toi32_i32$2 = $1($10_1 | 0, i64toi32_i32$1 | 0, $16_1 | 0, i64toi32_i32$2 | 0) | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $4_1 = i64toi32_i32$2; - $4$hi = i64toi32_i32$1; - i64toi32_i32$0 = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $23_1 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + $0_1 = $6_1; + $6_1 = $8_1; + $1_1 = $2_1; + $0_1 = $6_1 | $0_1 | 0; + $2_1 = $1_1 | $5_1 | 0; + $1_1 = $0_1; + $0_1 = $7_1; + $1_1 = $1($9_1 | 0, $0_1 | 0, $2_1 | 0, $1_1 | 0) | 0; + $0_1 = i64toi32_i32$HIGH_BITS; + $3_1 = $1_1; + $2_1 = $0_1; + $6_1 = $1_1; + $5_1 = 32; + $4_1 = $5_1 & 31 | 0; + if (32 >>> 0 <= ($5_1 & 63 | 0) >>> 0) { + $0_1 = $0_1 >>> $4_1 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $23_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$0 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $4_1 | 0) - 1 | 0) & $0_1 | 0) << (32 - $4_1 | 0) | 0 | ($6_1 >>> $4_1 | 0) | 0 } - setTempRet0($23_1 | 0); - i64toi32_i32$2 = $4$hi; - return $4_1 | 0; + setTempRet0($0_1 | 0); + return $3_1 | 0; } function legalstub$2($0_1, $1_1, $2_1, $3_1) { @@ -759,85 +564,68 @@ function asmFunc(global, env, buffer) { $1_1 = $1_1 | 0; $2_1 = $2_1 | 0; $3_1 = $3_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$3 = 0, $21_1 = 0, $22_1 = 0, $23_1 = 0, $6_1 = 0, $6$hi = 0, $9$hi = 0, $10_1 = 0, $10$hi = 0, $12_1 = 0, $12$hi = 0, $15$hi = 0, $16_1 = 0, $16$hi = 0, $4_1 = 0, $4$hi = 0; - i64toi32_i32$0 = 0; - $6_1 = $0_1; - $6$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $4_1 = 0, $5_1 = 0, $6_1 = 0, $7_1 = 0, $8_1 = 0, $9_1 = 0; + $6_1 = 0; + $7_1 = $0_1; + $8_1 = $6_1; + $6_1 = 0; + $5_1 = 32; + $4_1 = $5_1 & 31 | 0; + if (32 >>> 0 <= ($5_1 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $21_1 = 0; + $0_1 = $1_1 << $4_1 | 0; + $5_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $21_1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $0_1 = ((1 << $4_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $4_1 | 0) | 0) | 0 | ($6_1 << $4_1 | 0) | 0; + $5_1 = $1_1 << $4_1 | 0; } } - $9$hi = i64toi32_i32$1; - i64toi32_i32$1 = $6$hi; - i64toi32_i32$0 = $6_1; - i64toi32_i32$2 = $9$hi; - i64toi32_i32$3 = $21_1; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - $10_1 = i64toi32_i32$0 | i64toi32_i32$3 | 0; - $10$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - $12_1 = $2_1; - $12$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$1 = $3_1; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + $1_1 = $0_1; + $0_1 = $8_1; + $6_1 = $7_1; + $1_1 = $0_1 | $1_1 | 0; + $9_1 = $6_1 | $5_1 | 0; + $7_1 = $1_1; + $1_1 = 0; + $8_1 = $1_1; + $1_1 = 0; + $0_1 = $3_1; + $5_1 = 32; + $4_1 = $5_1 & 31 | 0; + if (32 >>> 0 <= ($5_1 & 63 | 0) >>> 0) { { - i64toi32_i32$0 = i64toi32_i32$1 << i64toi32_i32$4 | 0; - $22_1 = 0; + $6_1 = $0_1 << $4_1 | 0; + $5_1 = 0; } } else { { - i64toi32_i32$0 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$1 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$2 << i64toi32_i32$4 | 0) | 0; - $22_1 = i64toi32_i32$1 << i64toi32_i32$4 | 0; + $6_1 = ((1 << $4_1 | 0) - 1 | 0) & ($0_1 >>> (32 - $4_1 | 0) | 0) | 0 | ($1_1 << $4_1 | 0) | 0; + $5_1 = $0_1 << $4_1 | 0; } } - $15$hi = i64toi32_i32$0; - i64toi32_i32$0 = $12$hi; - i64toi32_i32$2 = $12_1; - i64toi32_i32$1 = $15$hi; - i64toi32_i32$3 = $22_1; - i64toi32_i32$1 = i64toi32_i32$0 | i64toi32_i32$1 | 0; - $16_1 = i64toi32_i32$2 | i64toi32_i32$3 | 0; - $16$hi = i64toi32_i32$1; - i64toi32_i32$1 = $10$hi; - i64toi32_i32$2 = $16$hi; - i64toi32_i32$2 = $2($10_1 | 0, i64toi32_i32$1 | 0, $16_1 | 0, i64toi32_i32$2 | 0) | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $4_1 = i64toi32_i32$2; - $4$hi = i64toi32_i32$1; - i64toi32_i32$0 = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $23_1 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + $0_1 = $6_1; + $6_1 = $8_1; + $1_1 = $2_1; + $0_1 = $6_1 | $0_1 | 0; + $2_1 = $1_1 | $5_1 | 0; + $1_1 = $0_1; + $0_1 = $7_1; + $1_1 = $2($9_1 | 0, $0_1 | 0, $2_1 | 0, $1_1 | 0) | 0; + $0_1 = i64toi32_i32$HIGH_BITS; + $3_1 = $1_1; + $2_1 = $0_1; + $6_1 = $1_1; + $5_1 = 32; + $4_1 = $5_1 & 31 | 0; + if (32 >>> 0 <= ($5_1 & 63 | 0) >>> 0) { + $0_1 = $0_1 >>> $4_1 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $23_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$0 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $4_1 | 0) - 1 | 0) & $0_1 | 0) << (32 - $4_1 | 0) | 0 | ($6_1 >>> $4_1 | 0) | 0 } - setTempRet0($23_1 | 0); - i64toi32_i32$2 = $4$hi; - return $4_1 | 0; + setTempRet0($0_1 | 0); + return $3_1 | 0; } function legalstub$3($0_1, $1_1, $2_1, $3_1) { @@ -845,85 +633,68 @@ function asmFunc(global, env, buffer) { $1_1 = $1_1 | 0; $2_1 = $2_1 | 0; $3_1 = $3_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$3 = 0, $21_1 = 0, $22_1 = 0, $23_1 = 0, $6_1 = 0, $6$hi = 0, $9$hi = 0, $10_1 = 0, $10$hi = 0, $12_1 = 0, $12$hi = 0, $15$hi = 0, $16_1 = 0, $16$hi = 0, $4_1 = 0, $4$hi = 0; - i64toi32_i32$0 = 0; - $6_1 = $0_1; - $6$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $4_1 = 0, $5_1 = 0, $6_1 = 0, $7_1 = 0, $8_1 = 0, $9_1 = 0; + $6_1 = 0; + $7_1 = $0_1; + $8_1 = $6_1; + $6_1 = 0; + $5_1 = 32; + $4_1 = $5_1 & 31 | 0; + if (32 >>> 0 <= ($5_1 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $21_1 = 0; + $0_1 = $1_1 << $4_1 | 0; + $5_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $21_1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $0_1 = ((1 << $4_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $4_1 | 0) | 0) | 0 | ($6_1 << $4_1 | 0) | 0; + $5_1 = $1_1 << $4_1 | 0; } } - $9$hi = i64toi32_i32$1; - i64toi32_i32$1 = $6$hi; - i64toi32_i32$0 = $6_1; - i64toi32_i32$2 = $9$hi; - i64toi32_i32$3 = $21_1; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - $10_1 = i64toi32_i32$0 | i64toi32_i32$3 | 0; - $10$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - $12_1 = $2_1; - $12$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$1 = $3_1; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + $1_1 = $0_1; + $0_1 = $8_1; + $6_1 = $7_1; + $1_1 = $0_1 | $1_1 | 0; + $9_1 = $6_1 | $5_1 | 0; + $7_1 = $1_1; + $1_1 = 0; + $8_1 = $1_1; + $1_1 = 0; + $0_1 = $3_1; + $5_1 = 32; + $4_1 = $5_1 & 31 | 0; + if (32 >>> 0 <= ($5_1 & 63 | 0) >>> 0) { { - i64toi32_i32$0 = i64toi32_i32$1 << i64toi32_i32$4 | 0; - $22_1 = 0; + $6_1 = $0_1 << $4_1 | 0; + $5_1 = 0; } } else { { - i64toi32_i32$0 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$1 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$2 << i64toi32_i32$4 | 0) | 0; - $22_1 = i64toi32_i32$1 << i64toi32_i32$4 | 0; + $6_1 = ((1 << $4_1 | 0) - 1 | 0) & ($0_1 >>> (32 - $4_1 | 0) | 0) | 0 | ($1_1 << $4_1 | 0) | 0; + $5_1 = $0_1 << $4_1 | 0; } } - $15$hi = i64toi32_i32$0; - i64toi32_i32$0 = $12$hi; - i64toi32_i32$2 = $12_1; - i64toi32_i32$1 = $15$hi; - i64toi32_i32$3 = $22_1; - i64toi32_i32$1 = i64toi32_i32$0 | i64toi32_i32$1 | 0; - $16_1 = i64toi32_i32$2 | i64toi32_i32$3 | 0; - $16$hi = i64toi32_i32$1; - i64toi32_i32$1 = $10$hi; - i64toi32_i32$2 = $16$hi; - i64toi32_i32$2 = $3($10_1 | 0, i64toi32_i32$1 | 0, $16_1 | 0, i64toi32_i32$2 | 0) | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $4_1 = i64toi32_i32$2; - $4$hi = i64toi32_i32$1; - i64toi32_i32$0 = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $23_1 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + $0_1 = $6_1; + $6_1 = $8_1; + $1_1 = $2_1; + $0_1 = $6_1 | $0_1 | 0; + $2_1 = $1_1 | $5_1 | 0; + $1_1 = $0_1; + $0_1 = $7_1; + $1_1 = $3($9_1 | 0, $0_1 | 0, $2_1 | 0, $1_1 | 0) | 0; + $0_1 = i64toi32_i32$HIGH_BITS; + $3_1 = $1_1; + $2_1 = $0_1; + $6_1 = $1_1; + $5_1 = 32; + $4_1 = $5_1 & 31 | 0; + if (32 >>> 0 <= ($5_1 & 63 | 0) >>> 0) { + $0_1 = $0_1 >>> $4_1 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $23_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$0 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $4_1 | 0) - 1 | 0) & $0_1 | 0) << (32 - $4_1 | 0) | 0 | ($6_1 >>> $4_1 | 0) | 0 } - setTempRet0($23_1 | 0); - i64toi32_i32$2 = $4$hi; - return $4_1 | 0; + setTempRet0($0_1 | 0); + return $3_1 | 0; } function legalstub$4($0_1, $1_1, $2_1, $3_1) { @@ -931,85 +702,68 @@ function asmFunc(global, env, buffer) { $1_1 = $1_1 | 0; $2_1 = $2_1 | 0; $3_1 = $3_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$3 = 0, $21_1 = 0, $22_1 = 0, $23_1 = 0, $6_1 = 0, $6$hi = 0, $9$hi = 0, $10_1 = 0, $10$hi = 0, $12_1 = 0, $12$hi = 0, $15$hi = 0, $16_1 = 0, $16$hi = 0, $4_1 = 0, $4$hi = 0; - i64toi32_i32$0 = 0; - $6_1 = $0_1; - $6$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $4_1 = 0, $5_1 = 0, $6_1 = 0, $7_1 = 0, $8_1 = 0, $9_1 = 0; + $6_1 = 0; + $7_1 = $0_1; + $8_1 = $6_1; + $6_1 = 0; + $5_1 = 32; + $4_1 = $5_1 & 31 | 0; + if (32 >>> 0 <= ($5_1 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $21_1 = 0; + $0_1 = $1_1 << $4_1 | 0; + $5_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $21_1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $0_1 = ((1 << $4_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $4_1 | 0) | 0) | 0 | ($6_1 << $4_1 | 0) | 0; + $5_1 = $1_1 << $4_1 | 0; } } - $9$hi = i64toi32_i32$1; - i64toi32_i32$1 = $6$hi; - i64toi32_i32$0 = $6_1; - i64toi32_i32$2 = $9$hi; - i64toi32_i32$3 = $21_1; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - $10_1 = i64toi32_i32$0 | i64toi32_i32$3 | 0; - $10$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - $12_1 = $2_1; - $12$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$1 = $3_1; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + $1_1 = $0_1; + $0_1 = $8_1; + $6_1 = $7_1; + $1_1 = $0_1 | $1_1 | 0; + $9_1 = $6_1 | $5_1 | 0; + $7_1 = $1_1; + $1_1 = 0; + $8_1 = $1_1; + $1_1 = 0; + $0_1 = $3_1; + $5_1 = 32; + $4_1 = $5_1 & 31 | 0; + if (32 >>> 0 <= ($5_1 & 63 | 0) >>> 0) { { - i64toi32_i32$0 = i64toi32_i32$1 << i64toi32_i32$4 | 0; - $22_1 = 0; + $6_1 = $0_1 << $4_1 | 0; + $5_1 = 0; } } else { { - i64toi32_i32$0 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$1 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$2 << i64toi32_i32$4 | 0) | 0; - $22_1 = i64toi32_i32$1 << i64toi32_i32$4 | 0; + $6_1 = ((1 << $4_1 | 0) - 1 | 0) & ($0_1 >>> (32 - $4_1 | 0) | 0) | 0 | ($1_1 << $4_1 | 0) | 0; + $5_1 = $0_1 << $4_1 | 0; } } - $15$hi = i64toi32_i32$0; - i64toi32_i32$0 = $12$hi; - i64toi32_i32$2 = $12_1; - i64toi32_i32$1 = $15$hi; - i64toi32_i32$3 = $22_1; - i64toi32_i32$1 = i64toi32_i32$0 | i64toi32_i32$1 | 0; - $16_1 = i64toi32_i32$2 | i64toi32_i32$3 | 0; - $16$hi = i64toi32_i32$1; - i64toi32_i32$1 = $10$hi; - i64toi32_i32$2 = $16$hi; - i64toi32_i32$2 = $4($10_1 | 0, i64toi32_i32$1 | 0, $16_1 | 0, i64toi32_i32$2 | 0) | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $4_1 = i64toi32_i32$2; - $4$hi = i64toi32_i32$1; - i64toi32_i32$0 = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $23_1 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + $0_1 = $6_1; + $6_1 = $8_1; + $1_1 = $2_1; + $0_1 = $6_1 | $0_1 | 0; + $2_1 = $1_1 | $5_1 | 0; + $1_1 = $0_1; + $0_1 = $7_1; + $1_1 = $4($9_1 | 0, $0_1 | 0, $2_1 | 0, $1_1 | 0) | 0; + $0_1 = i64toi32_i32$HIGH_BITS; + $3_1 = $1_1; + $2_1 = $0_1; + $6_1 = $1_1; + $5_1 = 32; + $4_1 = $5_1 & 31 | 0; + if (32 >>> 0 <= ($5_1 & 63 | 0) >>> 0) { + $0_1 = $0_1 >>> $4_1 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $23_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$0 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $4_1 | 0) - 1 | 0) & $0_1 | 0) << (32 - $4_1 | 0) | 0 | ($6_1 >>> $4_1 | 0) | 0 } - setTempRet0($23_1 | 0); - i64toi32_i32$2 = $4$hi; - return $4_1 | 0; + setTempRet0($0_1 | 0); + return $3_1 | 0; } function legalstub$5($0_1, $1_1, $2_1, $3_1) { @@ -1017,85 +771,68 @@ function asmFunc(global, env, buffer) { $1_1 = $1_1 | 0; $2_1 = $2_1 | 0; $3_1 = $3_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$3 = 0, $21_1 = 0, $22_1 = 0, $23_1 = 0, $6_1 = 0, $6$hi = 0, $9$hi = 0, $10_1 = 0, $10$hi = 0, $12_1 = 0, $12$hi = 0, $15$hi = 0, $16_1 = 0, $16$hi = 0, $4_1 = 0, $4$hi = 0; - i64toi32_i32$0 = 0; - $6_1 = $0_1; - $6$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $4_1 = 0, $5_1 = 0, $6_1 = 0, $7_1 = 0, $8_1 = 0, $9_1 = 0; + $6_1 = 0; + $7_1 = $0_1; + $8_1 = $6_1; + $6_1 = 0; + $5_1 = 32; + $4_1 = $5_1 & 31 | 0; + if (32 >>> 0 <= ($5_1 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $21_1 = 0; + $0_1 = $1_1 << $4_1 | 0; + $5_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $21_1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $0_1 = ((1 << $4_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $4_1 | 0) | 0) | 0 | ($6_1 << $4_1 | 0) | 0; + $5_1 = $1_1 << $4_1 | 0; } } - $9$hi = i64toi32_i32$1; - i64toi32_i32$1 = $6$hi; - i64toi32_i32$0 = $6_1; - i64toi32_i32$2 = $9$hi; - i64toi32_i32$3 = $21_1; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - $10_1 = i64toi32_i32$0 | i64toi32_i32$3 | 0; - $10$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - $12_1 = $2_1; - $12$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$1 = $3_1; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + $1_1 = $0_1; + $0_1 = $8_1; + $6_1 = $7_1; + $1_1 = $0_1 | $1_1 | 0; + $9_1 = $6_1 | $5_1 | 0; + $7_1 = $1_1; + $1_1 = 0; + $8_1 = $1_1; + $1_1 = 0; + $0_1 = $3_1; + $5_1 = 32; + $4_1 = $5_1 & 31 | 0; + if (32 >>> 0 <= ($5_1 & 63 | 0) >>> 0) { { - i64toi32_i32$0 = i64toi32_i32$1 << i64toi32_i32$4 | 0; - $22_1 = 0; + $6_1 = $0_1 << $4_1 | 0; + $5_1 = 0; } } else { { - i64toi32_i32$0 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$1 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$2 << i64toi32_i32$4 | 0) | 0; - $22_1 = i64toi32_i32$1 << i64toi32_i32$4 | 0; + $6_1 = ((1 << $4_1 | 0) - 1 | 0) & ($0_1 >>> (32 - $4_1 | 0) | 0) | 0 | ($1_1 << $4_1 | 0) | 0; + $5_1 = $0_1 << $4_1 | 0; } } - $15$hi = i64toi32_i32$0; - i64toi32_i32$0 = $12$hi; - i64toi32_i32$2 = $12_1; - i64toi32_i32$1 = $15$hi; - i64toi32_i32$3 = $22_1; - i64toi32_i32$1 = i64toi32_i32$0 | i64toi32_i32$1 | 0; - $16_1 = i64toi32_i32$2 | i64toi32_i32$3 | 0; - $16$hi = i64toi32_i32$1; - i64toi32_i32$1 = $10$hi; - i64toi32_i32$2 = $16$hi; - i64toi32_i32$2 = $5($10_1 | 0, i64toi32_i32$1 | 0, $16_1 | 0, i64toi32_i32$2 | 0) | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $4_1 = i64toi32_i32$2; - $4$hi = i64toi32_i32$1; - i64toi32_i32$0 = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $23_1 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + $0_1 = $6_1; + $6_1 = $8_1; + $1_1 = $2_1; + $0_1 = $6_1 | $0_1 | 0; + $2_1 = $1_1 | $5_1 | 0; + $1_1 = $0_1; + $0_1 = $7_1; + $1_1 = $5($9_1 | 0, $0_1 | 0, $2_1 | 0, $1_1 | 0) | 0; + $0_1 = i64toi32_i32$HIGH_BITS; + $3_1 = $1_1; + $2_1 = $0_1; + $6_1 = $1_1; + $5_1 = 32; + $4_1 = $5_1 & 31 | 0; + if (32 >>> 0 <= ($5_1 & 63 | 0) >>> 0) { + $0_1 = $0_1 >>> $4_1 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $23_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$0 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $4_1 | 0) - 1 | 0) & $0_1 | 0) << (32 - $4_1 | 0) | 0 | ($6_1 >>> $4_1 | 0) | 0 } - setTempRet0($23_1 | 0); - i64toi32_i32$2 = $4$hi; - return $4_1 | 0; + setTempRet0($0_1 | 0); + return $3_1 | 0; } function legalstub$6($0_1, $1_1, $2_1, $3_1) { @@ -1103,85 +840,68 @@ function asmFunc(global, env, buffer) { $1_1 = $1_1 | 0; $2_1 = $2_1 | 0; $3_1 = $3_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$3 = 0, $21_1 = 0, $22_1 = 0, $23_1 = 0, $6_1 = 0, $6$hi = 0, $9$hi = 0, $10_1 = 0, $10$hi = 0, $12_1 = 0, $12$hi = 0, $15$hi = 0, $16_1 = 0, $16$hi = 0, $4_1 = 0, $4$hi = 0; - i64toi32_i32$0 = 0; - $6_1 = $0_1; - $6$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $4_1 = 0, $5_1 = 0, $6_1 = 0, $7_1 = 0, $8_1 = 0, $9_1 = 0; + $6_1 = 0; + $7_1 = $0_1; + $8_1 = $6_1; + $6_1 = 0; + $5_1 = 32; + $4_1 = $5_1 & 31 | 0; + if (32 >>> 0 <= ($5_1 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $21_1 = 0; + $0_1 = $1_1 << $4_1 | 0; + $5_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $21_1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $0_1 = ((1 << $4_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $4_1 | 0) | 0) | 0 | ($6_1 << $4_1 | 0) | 0; + $5_1 = $1_1 << $4_1 | 0; } } - $9$hi = i64toi32_i32$1; - i64toi32_i32$1 = $6$hi; - i64toi32_i32$0 = $6_1; - i64toi32_i32$2 = $9$hi; - i64toi32_i32$3 = $21_1; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - $10_1 = i64toi32_i32$0 | i64toi32_i32$3 | 0; - $10$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - $12_1 = $2_1; - $12$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$1 = $3_1; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + $1_1 = $0_1; + $0_1 = $8_1; + $6_1 = $7_1; + $1_1 = $0_1 | $1_1 | 0; + $9_1 = $6_1 | $5_1 | 0; + $7_1 = $1_1; + $1_1 = 0; + $8_1 = $1_1; + $1_1 = 0; + $0_1 = $3_1; + $5_1 = 32; + $4_1 = $5_1 & 31 | 0; + if (32 >>> 0 <= ($5_1 & 63 | 0) >>> 0) { { - i64toi32_i32$0 = i64toi32_i32$1 << i64toi32_i32$4 | 0; - $22_1 = 0; + $6_1 = $0_1 << $4_1 | 0; + $5_1 = 0; } } else { { - i64toi32_i32$0 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$1 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$2 << i64toi32_i32$4 | 0) | 0; - $22_1 = i64toi32_i32$1 << i64toi32_i32$4 | 0; + $6_1 = ((1 << $4_1 | 0) - 1 | 0) & ($0_1 >>> (32 - $4_1 | 0) | 0) | 0 | ($1_1 << $4_1 | 0) | 0; + $5_1 = $0_1 << $4_1 | 0; } } - $15$hi = i64toi32_i32$0; - i64toi32_i32$0 = $12$hi; - i64toi32_i32$2 = $12_1; - i64toi32_i32$1 = $15$hi; - i64toi32_i32$3 = $22_1; - i64toi32_i32$1 = i64toi32_i32$0 | i64toi32_i32$1 | 0; - $16_1 = i64toi32_i32$2 | i64toi32_i32$3 | 0; - $16$hi = i64toi32_i32$1; - i64toi32_i32$1 = $10$hi; - i64toi32_i32$2 = $16$hi; - i64toi32_i32$2 = $6($10_1 | 0, i64toi32_i32$1 | 0, $16_1 | 0, i64toi32_i32$2 | 0) | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $4_1 = i64toi32_i32$2; - $4$hi = i64toi32_i32$1; - i64toi32_i32$0 = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $23_1 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + $0_1 = $6_1; + $6_1 = $8_1; + $1_1 = $2_1; + $0_1 = $6_1 | $0_1 | 0; + $2_1 = $1_1 | $5_1 | 0; + $1_1 = $0_1; + $0_1 = $7_1; + $1_1 = $6($9_1 | 0, $0_1 | 0, $2_1 | 0, $1_1 | 0) | 0; + $0_1 = i64toi32_i32$HIGH_BITS; + $3_1 = $1_1; + $2_1 = $0_1; + $6_1 = $1_1; + $5_1 = 32; + $4_1 = $5_1 & 31 | 0; + if (32 >>> 0 <= ($5_1 & 63 | 0) >>> 0) { + $0_1 = $0_1 >>> $4_1 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $23_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$0 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $4_1 | 0) - 1 | 0) & $0_1 | 0) << (32 - $4_1 | 0) | 0 | ($6_1 >>> $4_1 | 0) | 0 } - setTempRet0($23_1 | 0); - i64toi32_i32$2 = $4$hi; - return $4_1 | 0; + setTempRet0($0_1 | 0); + return $3_1 | 0; } function legalstub$7($0_1, $1_1, $2_1, $3_1) { @@ -1189,85 +909,68 @@ function asmFunc(global, env, buffer) { $1_1 = $1_1 | 0; $2_1 = $2_1 | 0; $3_1 = $3_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$3 = 0, $21_1 = 0, $22_1 = 0, $23_1 = 0, $6_1 = 0, $6$hi = 0, $9$hi = 0, $10_1 = 0, $10$hi = 0, $12_1 = 0, $12$hi = 0, $15$hi = 0, $16_1 = 0, $16$hi = 0, $4_1 = 0, $4$hi = 0; - i64toi32_i32$0 = 0; - $6_1 = $0_1; - $6$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $4_1 = 0, $5_1 = 0, $6_1 = 0, $7_1 = 0, $8_1 = 0, $9_1 = 0; + $6_1 = 0; + $7_1 = $0_1; + $8_1 = $6_1; + $6_1 = 0; + $5_1 = 32; + $4_1 = $5_1 & 31 | 0; + if (32 >>> 0 <= ($5_1 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $21_1 = 0; + $0_1 = $1_1 << $4_1 | 0; + $5_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $21_1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $0_1 = ((1 << $4_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $4_1 | 0) | 0) | 0 | ($6_1 << $4_1 | 0) | 0; + $5_1 = $1_1 << $4_1 | 0; } } - $9$hi = i64toi32_i32$1; - i64toi32_i32$1 = $6$hi; - i64toi32_i32$0 = $6_1; - i64toi32_i32$2 = $9$hi; - i64toi32_i32$3 = $21_1; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - $10_1 = i64toi32_i32$0 | i64toi32_i32$3 | 0; - $10$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - $12_1 = $2_1; - $12$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$1 = $3_1; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + $1_1 = $0_1; + $0_1 = $8_1; + $6_1 = $7_1; + $1_1 = $0_1 | $1_1 | 0; + $9_1 = $6_1 | $5_1 | 0; + $7_1 = $1_1; + $1_1 = 0; + $8_1 = $1_1; + $1_1 = 0; + $0_1 = $3_1; + $5_1 = 32; + $4_1 = $5_1 & 31 | 0; + if (32 >>> 0 <= ($5_1 & 63 | 0) >>> 0) { { - i64toi32_i32$0 = i64toi32_i32$1 << i64toi32_i32$4 | 0; - $22_1 = 0; + $6_1 = $0_1 << $4_1 | 0; + $5_1 = 0; } } else { { - i64toi32_i32$0 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$1 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$2 << i64toi32_i32$4 | 0) | 0; - $22_1 = i64toi32_i32$1 << i64toi32_i32$4 | 0; + $6_1 = ((1 << $4_1 | 0) - 1 | 0) & ($0_1 >>> (32 - $4_1 | 0) | 0) | 0 | ($1_1 << $4_1 | 0) | 0; + $5_1 = $0_1 << $4_1 | 0; } } - $15$hi = i64toi32_i32$0; - i64toi32_i32$0 = $12$hi; - i64toi32_i32$2 = $12_1; - i64toi32_i32$1 = $15$hi; - i64toi32_i32$3 = $22_1; - i64toi32_i32$1 = i64toi32_i32$0 | i64toi32_i32$1 | 0; - $16_1 = i64toi32_i32$2 | i64toi32_i32$3 | 0; - $16$hi = i64toi32_i32$1; - i64toi32_i32$1 = $10$hi; - i64toi32_i32$2 = $16$hi; - i64toi32_i32$2 = $7($10_1 | 0, i64toi32_i32$1 | 0, $16_1 | 0, i64toi32_i32$2 | 0) | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $4_1 = i64toi32_i32$2; - $4$hi = i64toi32_i32$1; - i64toi32_i32$0 = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $23_1 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + $0_1 = $6_1; + $6_1 = $8_1; + $1_1 = $2_1; + $0_1 = $6_1 | $0_1 | 0; + $2_1 = $1_1 | $5_1 | 0; + $1_1 = $0_1; + $0_1 = $7_1; + $1_1 = $7($9_1 | 0, $0_1 | 0, $2_1 | 0, $1_1 | 0) | 0; + $0_1 = i64toi32_i32$HIGH_BITS; + $3_1 = $1_1; + $2_1 = $0_1; + $6_1 = $1_1; + $5_1 = 32; + $4_1 = $5_1 & 31 | 0; + if (32 >>> 0 <= ($5_1 & 63 | 0) >>> 0) { + $0_1 = $0_1 >>> $4_1 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $23_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$0 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $4_1 | 0) - 1 | 0) & $0_1 | 0) << (32 - $4_1 | 0) | 0 | ($6_1 >>> $4_1 | 0) | 0 } - setTempRet0($23_1 | 0); - i64toi32_i32$2 = $4$hi; - return $4_1 | 0; + setTempRet0($0_1 | 0); + return $3_1 | 0; } function legalstub$8($0_1, $1_1, $2_1, $3_1) { @@ -1275,85 +978,68 @@ function asmFunc(global, env, buffer) { $1_1 = $1_1 | 0; $2_1 = $2_1 | 0; $3_1 = $3_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$3 = 0, $21_1 = 0, $22_1 = 0, $23_1 = 0, $6_1 = 0, $6$hi = 0, $9$hi = 0, $10_1 = 0, $10$hi = 0, $12_1 = 0, $12$hi = 0, $15$hi = 0, $16_1 = 0, $16$hi = 0, $4_1 = 0, $4$hi = 0; - i64toi32_i32$0 = 0; - $6_1 = $0_1; - $6$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $4_1 = 0, $5_1 = 0, $6_1 = 0, $7_1 = 0, $8_1 = 0, $9_1 = 0; + $6_1 = 0; + $7_1 = $0_1; + $8_1 = $6_1; + $6_1 = 0; + $5_1 = 32; + $4_1 = $5_1 & 31 | 0; + if (32 >>> 0 <= ($5_1 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $21_1 = 0; + $0_1 = $1_1 << $4_1 | 0; + $5_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $21_1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $0_1 = ((1 << $4_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $4_1 | 0) | 0) | 0 | ($6_1 << $4_1 | 0) | 0; + $5_1 = $1_1 << $4_1 | 0; } } - $9$hi = i64toi32_i32$1; - i64toi32_i32$1 = $6$hi; - i64toi32_i32$0 = $6_1; - i64toi32_i32$2 = $9$hi; - i64toi32_i32$3 = $21_1; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - $10_1 = i64toi32_i32$0 | i64toi32_i32$3 | 0; - $10$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - $12_1 = $2_1; - $12$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$1 = $3_1; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + $1_1 = $0_1; + $0_1 = $8_1; + $6_1 = $7_1; + $1_1 = $0_1 | $1_1 | 0; + $9_1 = $6_1 | $5_1 | 0; + $7_1 = $1_1; + $1_1 = 0; + $8_1 = $1_1; + $1_1 = 0; + $0_1 = $3_1; + $5_1 = 32; + $4_1 = $5_1 & 31 | 0; + if (32 >>> 0 <= ($5_1 & 63 | 0) >>> 0) { { - i64toi32_i32$0 = i64toi32_i32$1 << i64toi32_i32$4 | 0; - $22_1 = 0; + $6_1 = $0_1 << $4_1 | 0; + $5_1 = 0; } } else { { - i64toi32_i32$0 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$1 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$2 << i64toi32_i32$4 | 0) | 0; - $22_1 = i64toi32_i32$1 << i64toi32_i32$4 | 0; + $6_1 = ((1 << $4_1 | 0) - 1 | 0) & ($0_1 >>> (32 - $4_1 | 0) | 0) | 0 | ($1_1 << $4_1 | 0) | 0; + $5_1 = $0_1 << $4_1 | 0; } } - $15$hi = i64toi32_i32$0; - i64toi32_i32$0 = $12$hi; - i64toi32_i32$2 = $12_1; - i64toi32_i32$1 = $15$hi; - i64toi32_i32$3 = $22_1; - i64toi32_i32$1 = i64toi32_i32$0 | i64toi32_i32$1 | 0; - $16_1 = i64toi32_i32$2 | i64toi32_i32$3 | 0; - $16$hi = i64toi32_i32$1; - i64toi32_i32$1 = $10$hi; - i64toi32_i32$2 = $16$hi; - i64toi32_i32$2 = $8($10_1 | 0, i64toi32_i32$1 | 0, $16_1 | 0, i64toi32_i32$2 | 0) | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $4_1 = i64toi32_i32$2; - $4$hi = i64toi32_i32$1; - i64toi32_i32$0 = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $23_1 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + $0_1 = $6_1; + $6_1 = $8_1; + $1_1 = $2_1; + $0_1 = $6_1 | $0_1 | 0; + $2_1 = $1_1 | $5_1 | 0; + $1_1 = $0_1; + $0_1 = $7_1; + $1_1 = $8($9_1 | 0, $0_1 | 0, $2_1 | 0, $1_1 | 0) | 0; + $0_1 = i64toi32_i32$HIGH_BITS; + $3_1 = $1_1; + $2_1 = $0_1; + $6_1 = $1_1; + $5_1 = 32; + $4_1 = $5_1 & 31 | 0; + if (32 >>> 0 <= ($5_1 & 63 | 0) >>> 0) { + $0_1 = $0_1 >>> $4_1 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $23_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$0 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $4_1 | 0) - 1 | 0) & $0_1 | 0) << (32 - $4_1 | 0) | 0 | ($6_1 >>> $4_1 | 0) | 0 } - setTempRet0($23_1 | 0); - i64toi32_i32$2 = $4$hi; - return $4_1 | 0; + setTempRet0($0_1 | 0); + return $3_1 | 0; } function legalstub$9($0_1, $1_1, $2_1, $3_1) { @@ -1361,85 +1047,68 @@ function asmFunc(global, env, buffer) { $1_1 = $1_1 | 0; $2_1 = $2_1 | 0; $3_1 = $3_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$3 = 0, $21_1 = 0, $22_1 = 0, $23_1 = 0, $6_1 = 0, $6$hi = 0, $9$hi = 0, $10_1 = 0, $10$hi = 0, $12_1 = 0, $12$hi = 0, $15$hi = 0, $16_1 = 0, $16$hi = 0, $4_1 = 0, $4$hi = 0; - i64toi32_i32$0 = 0; - $6_1 = $0_1; - $6$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $4_1 = 0, $5_1 = 0, $6_1 = 0, $7_1 = 0, $8_1 = 0, $9_1 = 0; + $6_1 = 0; + $7_1 = $0_1; + $8_1 = $6_1; + $6_1 = 0; + $5_1 = 32; + $4_1 = $5_1 & 31 | 0; + if (32 >>> 0 <= ($5_1 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $21_1 = 0; + $0_1 = $1_1 << $4_1 | 0; + $5_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $21_1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $0_1 = ((1 << $4_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $4_1 | 0) | 0) | 0 | ($6_1 << $4_1 | 0) | 0; + $5_1 = $1_1 << $4_1 | 0; } } - $9$hi = i64toi32_i32$1; - i64toi32_i32$1 = $6$hi; - i64toi32_i32$0 = $6_1; - i64toi32_i32$2 = $9$hi; - i64toi32_i32$3 = $21_1; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - $10_1 = i64toi32_i32$0 | i64toi32_i32$3 | 0; - $10$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - $12_1 = $2_1; - $12$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$1 = $3_1; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + $1_1 = $0_1; + $0_1 = $8_1; + $6_1 = $7_1; + $1_1 = $0_1 | $1_1 | 0; + $9_1 = $6_1 | $5_1 | 0; + $7_1 = $1_1; + $1_1 = 0; + $8_1 = $1_1; + $1_1 = 0; + $0_1 = $3_1; + $5_1 = 32; + $4_1 = $5_1 & 31 | 0; + if (32 >>> 0 <= ($5_1 & 63 | 0) >>> 0) { { - i64toi32_i32$0 = i64toi32_i32$1 << i64toi32_i32$4 | 0; - $22_1 = 0; + $6_1 = $0_1 << $4_1 | 0; + $5_1 = 0; } } else { { - i64toi32_i32$0 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$1 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$2 << i64toi32_i32$4 | 0) | 0; - $22_1 = i64toi32_i32$1 << i64toi32_i32$4 | 0; + $6_1 = ((1 << $4_1 | 0) - 1 | 0) & ($0_1 >>> (32 - $4_1 | 0) | 0) | 0 | ($1_1 << $4_1 | 0) | 0; + $5_1 = $0_1 << $4_1 | 0; } } - $15$hi = i64toi32_i32$0; - i64toi32_i32$0 = $12$hi; - i64toi32_i32$2 = $12_1; - i64toi32_i32$1 = $15$hi; - i64toi32_i32$3 = $22_1; - i64toi32_i32$1 = i64toi32_i32$0 | i64toi32_i32$1 | 0; - $16_1 = i64toi32_i32$2 | i64toi32_i32$3 | 0; - $16$hi = i64toi32_i32$1; - i64toi32_i32$1 = $10$hi; - i64toi32_i32$2 = $16$hi; - i64toi32_i32$2 = $9($10_1 | 0, i64toi32_i32$1 | 0, $16_1 | 0, i64toi32_i32$2 | 0) | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $4_1 = i64toi32_i32$2; - $4$hi = i64toi32_i32$1; - i64toi32_i32$0 = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $23_1 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + $0_1 = $6_1; + $6_1 = $8_1; + $1_1 = $2_1; + $0_1 = $6_1 | $0_1 | 0; + $2_1 = $1_1 | $5_1 | 0; + $1_1 = $0_1; + $0_1 = $7_1; + $1_1 = $9($9_1 | 0, $0_1 | 0, $2_1 | 0, $1_1 | 0) | 0; + $0_1 = i64toi32_i32$HIGH_BITS; + $3_1 = $1_1; + $2_1 = $0_1; + $6_1 = $1_1; + $5_1 = 32; + $4_1 = $5_1 & 31 | 0; + if (32 >>> 0 <= ($5_1 & 63 | 0) >>> 0) { + $0_1 = $0_1 >>> $4_1 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $23_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$0 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $4_1 | 0) - 1 | 0) & $0_1 | 0) << (32 - $4_1 | 0) | 0 | ($6_1 >>> $4_1 | 0) | 0 } - setTempRet0($23_1 | 0); - i64toi32_i32$2 = $4$hi; - return $4_1 | 0; + setTempRet0($0_1 | 0); + return $3_1 | 0; } function legalstub$10($0_1, $1_1, $2_1, $3_1) { @@ -1447,85 +1116,68 @@ function asmFunc(global, env, buffer) { $1_1 = $1_1 | 0; $2_1 = $2_1 | 0; $3_1 = $3_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$3 = 0, $21_1 = 0, $22_1 = 0, $23_1 = 0, $6_1 = 0, $6$hi = 0, $9$hi = 0, $10_1 = 0, $10$hi = 0, $12_1 = 0, $12$hi = 0, $15$hi = 0, $16_1 = 0, $16$hi = 0, $4_1 = 0, $4$hi = 0; - i64toi32_i32$0 = 0; - $6_1 = $0_1; - $6$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $4_1 = 0, $5_1 = 0, $6_1 = 0, $7_1 = 0, $8_1 = 0, $9_1 = 0; + $6_1 = 0; + $7_1 = $0_1; + $8_1 = $6_1; + $6_1 = 0; + $5_1 = 32; + $4_1 = $5_1 & 31 | 0; + if (32 >>> 0 <= ($5_1 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $21_1 = 0; + $0_1 = $1_1 << $4_1 | 0; + $5_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $21_1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $0_1 = ((1 << $4_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $4_1 | 0) | 0) | 0 | ($6_1 << $4_1 | 0) | 0; + $5_1 = $1_1 << $4_1 | 0; } } - $9$hi = i64toi32_i32$1; - i64toi32_i32$1 = $6$hi; - i64toi32_i32$0 = $6_1; - i64toi32_i32$2 = $9$hi; - i64toi32_i32$3 = $21_1; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - $10_1 = i64toi32_i32$0 | i64toi32_i32$3 | 0; - $10$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - $12_1 = $2_1; - $12$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$1 = $3_1; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + $1_1 = $0_1; + $0_1 = $8_1; + $6_1 = $7_1; + $1_1 = $0_1 | $1_1 | 0; + $9_1 = $6_1 | $5_1 | 0; + $7_1 = $1_1; + $1_1 = 0; + $8_1 = $1_1; + $1_1 = 0; + $0_1 = $3_1; + $5_1 = 32; + $4_1 = $5_1 & 31 | 0; + if (32 >>> 0 <= ($5_1 & 63 | 0) >>> 0) { { - i64toi32_i32$0 = i64toi32_i32$1 << i64toi32_i32$4 | 0; - $22_1 = 0; + $6_1 = $0_1 << $4_1 | 0; + $5_1 = 0; } } else { { - i64toi32_i32$0 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$1 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$2 << i64toi32_i32$4 | 0) | 0; - $22_1 = i64toi32_i32$1 << i64toi32_i32$4 | 0; + $6_1 = ((1 << $4_1 | 0) - 1 | 0) & ($0_1 >>> (32 - $4_1 | 0) | 0) | 0 | ($1_1 << $4_1 | 0) | 0; + $5_1 = $0_1 << $4_1 | 0; } } - $15$hi = i64toi32_i32$0; - i64toi32_i32$0 = $12$hi; - i64toi32_i32$2 = $12_1; - i64toi32_i32$1 = $15$hi; - i64toi32_i32$3 = $22_1; - i64toi32_i32$1 = i64toi32_i32$0 | i64toi32_i32$1 | 0; - $16_1 = i64toi32_i32$2 | i64toi32_i32$3 | 0; - $16$hi = i64toi32_i32$1; - i64toi32_i32$1 = $10$hi; - i64toi32_i32$2 = $16$hi; - i64toi32_i32$2 = $10($10_1 | 0, i64toi32_i32$1 | 0, $16_1 | 0, i64toi32_i32$2 | 0) | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $4_1 = i64toi32_i32$2; - $4$hi = i64toi32_i32$1; - i64toi32_i32$0 = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $23_1 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + $0_1 = $6_1; + $6_1 = $8_1; + $1_1 = $2_1; + $0_1 = $6_1 | $0_1 | 0; + $2_1 = $1_1 | $5_1 | 0; + $1_1 = $0_1; + $0_1 = $7_1; + $1_1 = $10($9_1 | 0, $0_1 | 0, $2_1 | 0, $1_1 | 0) | 0; + $0_1 = i64toi32_i32$HIGH_BITS; + $3_1 = $1_1; + $2_1 = $0_1; + $6_1 = $1_1; + $5_1 = 32; + $4_1 = $5_1 & 31 | 0; + if (32 >>> 0 <= ($5_1 & 63 | 0) >>> 0) { + $0_1 = $0_1 >>> $4_1 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $23_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$0 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $4_1 | 0) - 1 | 0) & $0_1 | 0) << (32 - $4_1 | 0) | 0 | ($6_1 >>> $4_1 | 0) | 0 } - setTempRet0($23_1 | 0); - i64toi32_i32$2 = $4$hi; - return $4_1 | 0; + setTempRet0($0_1 | 0); + return $3_1 | 0; } function legalstub$11($0_1, $1_1, $2_1, $3_1) { @@ -1533,85 +1185,68 @@ function asmFunc(global, env, buffer) { $1_1 = $1_1 | 0; $2_1 = $2_1 | 0; $3_1 = $3_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$3 = 0, $21_1 = 0, $22_1 = 0, $23_1 = 0, $6_1 = 0, $6$hi = 0, $9$hi = 0, $10_1 = 0, $10$hi = 0, $12_1 = 0, $12$hi = 0, $15$hi = 0, $16_1 = 0, $16$hi = 0, $4_1 = 0, $4$hi = 0; - i64toi32_i32$0 = 0; - $6_1 = $0_1; - $6$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $4_1 = 0, $5_1 = 0, $6_1 = 0, $7_1 = 0, $8_1 = 0, $9_1 = 0; + $6_1 = 0; + $7_1 = $0_1; + $8_1 = $6_1; + $6_1 = 0; + $5_1 = 32; + $4_1 = $5_1 & 31 | 0; + if (32 >>> 0 <= ($5_1 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $21_1 = 0; + $0_1 = $1_1 << $4_1 | 0; + $5_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $21_1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $0_1 = ((1 << $4_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $4_1 | 0) | 0) | 0 | ($6_1 << $4_1 | 0) | 0; + $5_1 = $1_1 << $4_1 | 0; } } - $9$hi = i64toi32_i32$1; - i64toi32_i32$1 = $6$hi; - i64toi32_i32$0 = $6_1; - i64toi32_i32$2 = $9$hi; - i64toi32_i32$3 = $21_1; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - $10_1 = i64toi32_i32$0 | i64toi32_i32$3 | 0; - $10$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - $12_1 = $2_1; - $12$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$1 = $3_1; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + $1_1 = $0_1; + $0_1 = $8_1; + $6_1 = $7_1; + $1_1 = $0_1 | $1_1 | 0; + $9_1 = $6_1 | $5_1 | 0; + $7_1 = $1_1; + $1_1 = 0; + $8_1 = $1_1; + $1_1 = 0; + $0_1 = $3_1; + $5_1 = 32; + $4_1 = $5_1 & 31 | 0; + if (32 >>> 0 <= ($5_1 & 63 | 0) >>> 0) { { - i64toi32_i32$0 = i64toi32_i32$1 << i64toi32_i32$4 | 0; - $22_1 = 0; + $6_1 = $0_1 << $4_1 | 0; + $5_1 = 0; } } else { { - i64toi32_i32$0 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$1 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$2 << i64toi32_i32$4 | 0) | 0; - $22_1 = i64toi32_i32$1 << i64toi32_i32$4 | 0; + $6_1 = ((1 << $4_1 | 0) - 1 | 0) & ($0_1 >>> (32 - $4_1 | 0) | 0) | 0 | ($1_1 << $4_1 | 0) | 0; + $5_1 = $0_1 << $4_1 | 0; } } - $15$hi = i64toi32_i32$0; - i64toi32_i32$0 = $12$hi; - i64toi32_i32$2 = $12_1; - i64toi32_i32$1 = $15$hi; - i64toi32_i32$3 = $22_1; - i64toi32_i32$1 = i64toi32_i32$0 | i64toi32_i32$1 | 0; - $16_1 = i64toi32_i32$2 | i64toi32_i32$3 | 0; - $16$hi = i64toi32_i32$1; - i64toi32_i32$1 = $10$hi; - i64toi32_i32$2 = $16$hi; - i64toi32_i32$2 = $11($10_1 | 0, i64toi32_i32$1 | 0, $16_1 | 0, i64toi32_i32$2 | 0) | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $4_1 = i64toi32_i32$2; - $4$hi = i64toi32_i32$1; - i64toi32_i32$0 = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $23_1 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + $0_1 = $6_1; + $6_1 = $8_1; + $1_1 = $2_1; + $0_1 = $6_1 | $0_1 | 0; + $2_1 = $1_1 | $5_1 | 0; + $1_1 = $0_1; + $0_1 = $7_1; + $1_1 = $11($9_1 | 0, $0_1 | 0, $2_1 | 0, $1_1 | 0) | 0; + $0_1 = i64toi32_i32$HIGH_BITS; + $3_1 = $1_1; + $2_1 = $0_1; + $6_1 = $1_1; + $5_1 = 32; + $4_1 = $5_1 & 31 | 0; + if (32 >>> 0 <= ($5_1 & 63 | 0) >>> 0) { + $0_1 = $0_1 >>> $4_1 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $23_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$0 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $4_1 | 0) - 1 | 0) & $0_1 | 0) << (32 - $4_1 | 0) | 0 | ($6_1 >>> $4_1 | 0) | 0 } - setTempRet0($23_1 | 0); - i64toi32_i32$2 = $4$hi; - return $4_1 | 0; + setTempRet0($0_1 | 0); + return $3_1 | 0; } function legalstub$12($0_1, $1_1, $2_1, $3_1) { @@ -1619,85 +1254,68 @@ function asmFunc(global, env, buffer) { $1_1 = $1_1 | 0; $2_1 = $2_1 | 0; $3_1 = $3_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$3 = 0, $21_1 = 0, $22_1 = 0, $23_1 = 0, $6_1 = 0, $6$hi = 0, $9$hi = 0, $10_1 = 0, $10$hi = 0, $12_1 = 0, $12$hi = 0, $15$hi = 0, $16_1 = 0, $16$hi = 0, $4_1 = 0, $4$hi = 0; - i64toi32_i32$0 = 0; - $6_1 = $0_1; - $6$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $4_1 = 0, $5_1 = 0, $6_1 = 0, $7_1 = 0, $8_1 = 0, $9_1 = 0; + $6_1 = 0; + $7_1 = $0_1; + $8_1 = $6_1; + $6_1 = 0; + $5_1 = 32; + $4_1 = $5_1 & 31 | 0; + if (32 >>> 0 <= ($5_1 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $21_1 = 0; + $0_1 = $1_1 << $4_1 | 0; + $5_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $21_1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $0_1 = ((1 << $4_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $4_1 | 0) | 0) | 0 | ($6_1 << $4_1 | 0) | 0; + $5_1 = $1_1 << $4_1 | 0; } } - $9$hi = i64toi32_i32$1; - i64toi32_i32$1 = $6$hi; - i64toi32_i32$0 = $6_1; - i64toi32_i32$2 = $9$hi; - i64toi32_i32$3 = $21_1; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - $10_1 = i64toi32_i32$0 | i64toi32_i32$3 | 0; - $10$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - $12_1 = $2_1; - $12$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$1 = $3_1; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + $1_1 = $0_1; + $0_1 = $8_1; + $6_1 = $7_1; + $1_1 = $0_1 | $1_1 | 0; + $9_1 = $6_1 | $5_1 | 0; + $7_1 = $1_1; + $1_1 = 0; + $8_1 = $1_1; + $1_1 = 0; + $0_1 = $3_1; + $5_1 = 32; + $4_1 = $5_1 & 31 | 0; + if (32 >>> 0 <= ($5_1 & 63 | 0) >>> 0) { { - i64toi32_i32$0 = i64toi32_i32$1 << i64toi32_i32$4 | 0; - $22_1 = 0; + $6_1 = $0_1 << $4_1 | 0; + $5_1 = 0; } } else { { - i64toi32_i32$0 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$1 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$2 << i64toi32_i32$4 | 0) | 0; - $22_1 = i64toi32_i32$1 << i64toi32_i32$4 | 0; + $6_1 = ((1 << $4_1 | 0) - 1 | 0) & ($0_1 >>> (32 - $4_1 | 0) | 0) | 0 | ($1_1 << $4_1 | 0) | 0; + $5_1 = $0_1 << $4_1 | 0; } } - $15$hi = i64toi32_i32$0; - i64toi32_i32$0 = $12$hi; - i64toi32_i32$2 = $12_1; - i64toi32_i32$1 = $15$hi; - i64toi32_i32$3 = $22_1; - i64toi32_i32$1 = i64toi32_i32$0 | i64toi32_i32$1 | 0; - $16_1 = i64toi32_i32$2 | i64toi32_i32$3 | 0; - $16$hi = i64toi32_i32$1; - i64toi32_i32$1 = $10$hi; - i64toi32_i32$2 = $16$hi; - i64toi32_i32$2 = $12($10_1 | 0, i64toi32_i32$1 | 0, $16_1 | 0, i64toi32_i32$2 | 0) | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $4_1 = i64toi32_i32$2; - $4$hi = i64toi32_i32$1; - i64toi32_i32$0 = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $23_1 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + $0_1 = $6_1; + $6_1 = $8_1; + $1_1 = $2_1; + $0_1 = $6_1 | $0_1 | 0; + $2_1 = $1_1 | $5_1 | 0; + $1_1 = $0_1; + $0_1 = $7_1; + $1_1 = $12($9_1 | 0, $0_1 | 0, $2_1 | 0, $1_1 | 0) | 0; + $0_1 = i64toi32_i32$HIGH_BITS; + $3_1 = $1_1; + $2_1 = $0_1; + $6_1 = $1_1; + $5_1 = 32; + $4_1 = $5_1 & 31 | 0; + if (32 >>> 0 <= ($5_1 & 63 | 0) >>> 0) { + $0_1 = $0_1 >>> $4_1 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $23_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$0 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $4_1 | 0) - 1 | 0) & $0_1 | 0) << (32 - $4_1 | 0) | 0 | ($6_1 >>> $4_1 | 0) | 0 } - setTempRet0($23_1 | 0); - i64toi32_i32$2 = $4$hi; - return $4_1 | 0; + setTempRet0($0_1 | 0); + return $3_1 | 0; } function legalstub$13($0_1, $1_1, $2_1, $3_1) { @@ -1705,85 +1323,68 @@ function asmFunc(global, env, buffer) { $1_1 = $1_1 | 0; $2_1 = $2_1 | 0; $3_1 = $3_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$3 = 0, $21_1 = 0, $22_1 = 0, $23_1 = 0, $6_1 = 0, $6$hi = 0, $9$hi = 0, $10_1 = 0, $10$hi = 0, $12_1 = 0, $12$hi = 0, $15$hi = 0, $16_1 = 0, $16$hi = 0, $4_1 = 0, $4$hi = 0; - i64toi32_i32$0 = 0; - $6_1 = $0_1; - $6$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $4_1 = 0, $5_1 = 0, $6_1 = 0, $7_1 = 0, $8_1 = 0, $9_1 = 0; + $6_1 = 0; + $7_1 = $0_1; + $8_1 = $6_1; + $6_1 = 0; + $5_1 = 32; + $4_1 = $5_1 & 31 | 0; + if (32 >>> 0 <= ($5_1 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $21_1 = 0; + $0_1 = $1_1 << $4_1 | 0; + $5_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $21_1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $0_1 = ((1 << $4_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $4_1 | 0) | 0) | 0 | ($6_1 << $4_1 | 0) | 0; + $5_1 = $1_1 << $4_1 | 0; } } - $9$hi = i64toi32_i32$1; - i64toi32_i32$1 = $6$hi; - i64toi32_i32$0 = $6_1; - i64toi32_i32$2 = $9$hi; - i64toi32_i32$3 = $21_1; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - $10_1 = i64toi32_i32$0 | i64toi32_i32$3 | 0; - $10$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - $12_1 = $2_1; - $12$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$1 = $3_1; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + $1_1 = $0_1; + $0_1 = $8_1; + $6_1 = $7_1; + $1_1 = $0_1 | $1_1 | 0; + $9_1 = $6_1 | $5_1 | 0; + $7_1 = $1_1; + $1_1 = 0; + $8_1 = $1_1; + $1_1 = 0; + $0_1 = $3_1; + $5_1 = 32; + $4_1 = $5_1 & 31 | 0; + if (32 >>> 0 <= ($5_1 & 63 | 0) >>> 0) { { - i64toi32_i32$0 = i64toi32_i32$1 << i64toi32_i32$4 | 0; - $22_1 = 0; + $6_1 = $0_1 << $4_1 | 0; + $5_1 = 0; } } else { { - i64toi32_i32$0 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$1 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$2 << i64toi32_i32$4 | 0) | 0; - $22_1 = i64toi32_i32$1 << i64toi32_i32$4 | 0; + $6_1 = ((1 << $4_1 | 0) - 1 | 0) & ($0_1 >>> (32 - $4_1 | 0) | 0) | 0 | ($1_1 << $4_1 | 0) | 0; + $5_1 = $0_1 << $4_1 | 0; } } - $15$hi = i64toi32_i32$0; - i64toi32_i32$0 = $12$hi; - i64toi32_i32$2 = $12_1; - i64toi32_i32$1 = $15$hi; - i64toi32_i32$3 = $22_1; - i64toi32_i32$1 = i64toi32_i32$0 | i64toi32_i32$1 | 0; - $16_1 = i64toi32_i32$2 | i64toi32_i32$3 | 0; - $16$hi = i64toi32_i32$1; - i64toi32_i32$1 = $10$hi; - i64toi32_i32$2 = $16$hi; - i64toi32_i32$2 = $13($10_1 | 0, i64toi32_i32$1 | 0, $16_1 | 0, i64toi32_i32$2 | 0) | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $4_1 = i64toi32_i32$2; - $4$hi = i64toi32_i32$1; - i64toi32_i32$0 = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $23_1 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + $0_1 = $6_1; + $6_1 = $8_1; + $1_1 = $2_1; + $0_1 = $6_1 | $0_1 | 0; + $2_1 = $1_1 | $5_1 | 0; + $1_1 = $0_1; + $0_1 = $7_1; + $1_1 = $13($9_1 | 0, $0_1 | 0, $2_1 | 0, $1_1 | 0) | 0; + $0_1 = i64toi32_i32$HIGH_BITS; + $3_1 = $1_1; + $2_1 = $0_1; + $6_1 = $1_1; + $5_1 = 32; + $4_1 = $5_1 & 31 | 0; + if (32 >>> 0 <= ($5_1 & 63 | 0) >>> 0) { + $0_1 = $0_1 >>> $4_1 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $23_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$0 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $4_1 | 0) - 1 | 0) & $0_1 | 0) << (32 - $4_1 | 0) | 0 | ($6_1 >>> $4_1 | 0) | 0 } - setTempRet0($23_1 | 0); - i64toi32_i32$2 = $4$hi; - return $4_1 | 0; + setTempRet0($0_1 | 0); + return $3_1 | 0; } function legalstub$14($0_1, $1_1, $2_1, $3_1) { @@ -1791,276 +1392,218 @@ function asmFunc(global, env, buffer) { $1_1 = $1_1 | 0; $2_1 = $2_1 | 0; $3_1 = $3_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$3 = 0, $21_1 = 0, $22_1 = 0, $23_1 = 0, $6_1 = 0, $6$hi = 0, $9$hi = 0, $10_1 = 0, $10$hi = 0, $12_1 = 0, $12$hi = 0, $15$hi = 0, $16_1 = 0, $16$hi = 0, $4_1 = 0, $4$hi = 0; - i64toi32_i32$0 = 0; - $6_1 = $0_1; - $6$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $4_1 = 0, $5_1 = 0, $6_1 = 0, $7_1 = 0, $8_1 = 0, $9_1 = 0; + $6_1 = 0; + $7_1 = $0_1; + $8_1 = $6_1; + $6_1 = 0; + $5_1 = 32; + $4_1 = $5_1 & 31 | 0; + if (32 >>> 0 <= ($5_1 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $21_1 = 0; + $0_1 = $1_1 << $4_1 | 0; + $5_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $21_1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $0_1 = ((1 << $4_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $4_1 | 0) | 0) | 0 | ($6_1 << $4_1 | 0) | 0; + $5_1 = $1_1 << $4_1 | 0; } } - $9$hi = i64toi32_i32$1; - i64toi32_i32$1 = $6$hi; - i64toi32_i32$0 = $6_1; - i64toi32_i32$2 = $9$hi; - i64toi32_i32$3 = $21_1; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - $10_1 = i64toi32_i32$0 | i64toi32_i32$3 | 0; - $10$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - $12_1 = $2_1; - $12$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$1 = $3_1; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + $1_1 = $0_1; + $0_1 = $8_1; + $6_1 = $7_1; + $1_1 = $0_1 | $1_1 | 0; + $9_1 = $6_1 | $5_1 | 0; + $7_1 = $1_1; + $1_1 = 0; + $8_1 = $1_1; + $1_1 = 0; + $0_1 = $3_1; + $5_1 = 32; + $4_1 = $5_1 & 31 | 0; + if (32 >>> 0 <= ($5_1 & 63 | 0) >>> 0) { { - i64toi32_i32$0 = i64toi32_i32$1 << i64toi32_i32$4 | 0; - $22_1 = 0; + $6_1 = $0_1 << $4_1 | 0; + $5_1 = 0; } } else { { - i64toi32_i32$0 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$1 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$2 << i64toi32_i32$4 | 0) | 0; - $22_1 = i64toi32_i32$1 << i64toi32_i32$4 | 0; + $6_1 = ((1 << $4_1 | 0) - 1 | 0) & ($0_1 >>> (32 - $4_1 | 0) | 0) | 0 | ($1_1 << $4_1 | 0) | 0; + $5_1 = $0_1 << $4_1 | 0; } } - $15$hi = i64toi32_i32$0; - i64toi32_i32$0 = $12$hi; - i64toi32_i32$2 = $12_1; - i64toi32_i32$1 = $15$hi; - i64toi32_i32$3 = $22_1; - i64toi32_i32$1 = i64toi32_i32$0 | i64toi32_i32$1 | 0; - $16_1 = i64toi32_i32$2 | i64toi32_i32$3 | 0; - $16$hi = i64toi32_i32$1; - i64toi32_i32$1 = $10$hi; - i64toi32_i32$2 = $16$hi; - i64toi32_i32$2 = $14($10_1 | 0, i64toi32_i32$1 | 0, $16_1 | 0, i64toi32_i32$2 | 0) | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $4_1 = i64toi32_i32$2; - $4$hi = i64toi32_i32$1; - i64toi32_i32$0 = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $23_1 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + $0_1 = $6_1; + $6_1 = $8_1; + $1_1 = $2_1; + $0_1 = $6_1 | $0_1 | 0; + $2_1 = $1_1 | $5_1 | 0; + $1_1 = $0_1; + $0_1 = $7_1; + $1_1 = $14($9_1 | 0, $0_1 | 0, $2_1 | 0, $1_1 | 0) | 0; + $0_1 = i64toi32_i32$HIGH_BITS; + $3_1 = $1_1; + $2_1 = $0_1; + $6_1 = $1_1; + $5_1 = 32; + $4_1 = $5_1 & 31 | 0; + if (32 >>> 0 <= ($5_1 & 63 | 0) >>> 0) { + $0_1 = $0_1 >>> $4_1 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $23_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$0 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $4_1 | 0) - 1 | 0) & $0_1 | 0) << (32 - $4_1 | 0) | 0 | ($6_1 >>> $4_1 | 0) | 0 } - setTempRet0($23_1 | 0); - i64toi32_i32$2 = $4$hi; - return $4_1 | 0; + setTempRet0($0_1 | 0); + return $3_1 | 0; } function legalstub$15($0_1, $1_1) { $0_1 = $0_1 | 0; $1_1 = $1_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12_1 = 0, $13_1 = 0, $4_1 = 0, $4$hi = 0, $7$hi = 0, $2_1 = 0, $2$hi = 0; - i64toi32_i32$0 = 0; - $4_1 = $0_1; - $4$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0, $6_1 = 0; + $3_1 = 0; + $5_1 = $0_1; + $6_1 = $3_1; + $3_1 = 0; + $4_1 = 32; + $2_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $12_1 = 0; + $0_1 = $1_1 << $2_1 | 0; + $4_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $12_1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $0_1 = ((1 << $2_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $2_1 | 0) | 0) | 0 | ($3_1 << $2_1 | 0) | 0; + $4_1 = $1_1 << $2_1 | 0; } } - $7$hi = i64toi32_i32$1; - i64toi32_i32$1 = $4$hi; - i64toi32_i32$0 = $4_1; - i64toi32_i32$2 = $7$hi; - i64toi32_i32$3 = $12_1; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - i64toi32_i32$2 = $15(i64toi32_i32$0 | i64toi32_i32$3 | 0 | 0, i64toi32_i32$2 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $2_1 = i64toi32_i32$2; - $2$hi = i64toi32_i32$0; - i64toi32_i32$1 = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $13_1 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + $1_1 = $0_1; + $0_1 = $6_1; + $3_1 = $5_1; + $1_1 = $0_1 | $1_1 | 0; + $1_1 = $15($3_1 | $4_1 | 0 | 0, $1_1 | 0) | 0; + $3_1 = i64toi32_i32$HIGH_BITS; + $6_1 = $1_1; + $5_1 = $3_1; + $0_1 = $1_1; + $4_1 = 32; + $2_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { + $0_1 = $3_1 >>> $2_1 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $13_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$1 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $2_1 | 0) - 1 | 0) & $3_1 | 0) << (32 - $2_1 | 0) | 0 | ($0_1 >>> $2_1 | 0) | 0 } - setTempRet0($13_1 | 0); - i64toi32_i32$2 = $2$hi; - return $2_1 | 0; + setTempRet0($0_1 | 0); + return $6_1 | 0; } function legalstub$16($0_1, $1_1) { $0_1 = $0_1 | 0; $1_1 = $1_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12_1 = 0, $13_1 = 0, $4_1 = 0, $4$hi = 0, $7$hi = 0, $2_1 = 0, $2$hi = 0; - i64toi32_i32$0 = 0; - $4_1 = $0_1; - $4$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0, $6_1 = 0; + $3_1 = 0; + $5_1 = $0_1; + $6_1 = $3_1; + $3_1 = 0; + $4_1 = 32; + $2_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $12_1 = 0; + $0_1 = $1_1 << $2_1 | 0; + $4_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $12_1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $0_1 = ((1 << $2_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $2_1 | 0) | 0) | 0 | ($3_1 << $2_1 | 0) | 0; + $4_1 = $1_1 << $2_1 | 0; } } - $7$hi = i64toi32_i32$1; - i64toi32_i32$1 = $4$hi; - i64toi32_i32$0 = $4_1; - i64toi32_i32$2 = $7$hi; - i64toi32_i32$3 = $12_1; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - i64toi32_i32$2 = $16(i64toi32_i32$0 | i64toi32_i32$3 | 0 | 0, i64toi32_i32$2 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $2_1 = i64toi32_i32$2; - $2$hi = i64toi32_i32$0; - i64toi32_i32$1 = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $13_1 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + $1_1 = $0_1; + $0_1 = $6_1; + $3_1 = $5_1; + $1_1 = $0_1 | $1_1 | 0; + $1_1 = $16($3_1 | $4_1 | 0 | 0, $1_1 | 0) | 0; + $3_1 = i64toi32_i32$HIGH_BITS; + $6_1 = $1_1; + $5_1 = $3_1; + $0_1 = $1_1; + $4_1 = 32; + $2_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { + $0_1 = $3_1 >>> $2_1 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $13_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$1 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $2_1 | 0) - 1 | 0) & $3_1 | 0) << (32 - $2_1 | 0) | 0 | ($0_1 >>> $2_1 | 0) | 0 } - setTempRet0($13_1 | 0); - i64toi32_i32$2 = $2$hi; - return $2_1 | 0; + setTempRet0($0_1 | 0); + return $6_1 | 0; } function legalstub$17($0_1, $1_1) { $0_1 = $0_1 | 0; $1_1 = $1_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12_1 = 0, $13_1 = 0, $4_1 = 0, $4$hi = 0, $7$hi = 0, $2_1 = 0, $2$hi = 0; - i64toi32_i32$0 = 0; - $4_1 = $0_1; - $4$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0, $6_1 = 0; + $3_1 = 0; + $5_1 = $0_1; + $6_1 = $3_1; + $3_1 = 0; + $4_1 = 32; + $2_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $12_1 = 0; + $0_1 = $1_1 << $2_1 | 0; + $4_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $12_1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $0_1 = ((1 << $2_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $2_1 | 0) | 0) | 0 | ($3_1 << $2_1 | 0) | 0; + $4_1 = $1_1 << $2_1 | 0; } } - $7$hi = i64toi32_i32$1; - i64toi32_i32$1 = $4$hi; - i64toi32_i32$0 = $4_1; - i64toi32_i32$2 = $7$hi; - i64toi32_i32$3 = $12_1; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - i64toi32_i32$2 = $17(i64toi32_i32$0 | i64toi32_i32$3 | 0 | 0, i64toi32_i32$2 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $2_1 = i64toi32_i32$2; - $2$hi = i64toi32_i32$0; - i64toi32_i32$1 = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $13_1 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + $1_1 = $0_1; + $0_1 = $6_1; + $3_1 = $5_1; + $1_1 = $0_1 | $1_1 | 0; + $1_1 = $17($3_1 | $4_1 | 0 | 0, $1_1 | 0) | 0; + $3_1 = i64toi32_i32$HIGH_BITS; + $6_1 = $1_1; + $5_1 = $3_1; + $0_1 = $1_1; + $4_1 = 32; + $2_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { + $0_1 = $3_1 >>> $2_1 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $13_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$1 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $2_1 | 0) - 1 | 0) & $3_1 | 0) << (32 - $2_1 | 0) | 0 | ($0_1 >>> $2_1 | 0) | 0 } - setTempRet0($13_1 | 0); - i64toi32_i32$2 = $2$hi; - return $2_1 | 0; + setTempRet0($0_1 | 0); + return $6_1 | 0; } function legalstub$18($0_1, $1_1) { $0_1 = $0_1 | 0; $1_1 = $1_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $10_1 = 0, $3_1 = 0, $3$hi = 0, $6$hi = 0; - i64toi32_i32$0 = 0; - $3_1 = $0_1; - $3$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0, $6_1 = 0; + $2_1 = 0; + $6_1 = $2_1; + $2_1 = 0; + $3_1 = 32; + $4_1 = $3_1 & 31 | 0; + if (32 >>> 0 <= ($3_1 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $10_1 = 0; + $5_1 = $1_1 << $4_1 | 0; + $3_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $10_1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $5_1 = ((1 << $4_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $4_1 | 0) | 0) | 0 | ($2_1 << $4_1 | 0) | 0; + $3_1 = $1_1 << $4_1 | 0; } } - $6$hi = i64toi32_i32$1; - i64toi32_i32$1 = $3$hi; - i64toi32_i32$0 = $3_1; - i64toi32_i32$2 = $6$hi; - i64toi32_i32$3 = $10_1; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - return $18(i64toi32_i32$0 | i64toi32_i32$3 | 0 | 0, i64toi32_i32$2 | 0) | 0 | 0; + $1_1 = $5_1; + $5_1 = $6_1; + $2_1 = $0_1; + $1_1 = $5_1 | $1_1 | 0; + return $18($2_1 | $3_1 | 0 | 0, $1_1 | 0) | 0 | 0; } function legalstub$19($0_1, $1_1, $2_1, $3_1) { @@ -2068,64 +1611,55 @@ function asmFunc(global, env, buffer) { $1_1 = $1_1 | 0; $2_1 = $2_1 | 0; $3_1 = $3_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $19_1 = 0, $20_1 = 0, $5_1 = 0, $5$hi = 0, $8$hi = 0, $9_1 = 0, $9$hi = 0, $11_1 = 0, $11$hi = 0, $14$hi = 0, $15_1 = 0, $15$hi = 0; - i64toi32_i32$0 = 0; - $5_1 = $0_1; - $5$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $4_1 = 0, $5_1 = 0, $6_1 = 0, $7_1 = 0, $8_1 = 0, $9_1 = 0; + $6_1 = 0; + $7_1 = $0_1; + $8_1 = $6_1; + $6_1 = 0; + $4_1 = 32; + $5_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $19_1 = 0; + $0_1 = $1_1 << $5_1 | 0; + $4_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $19_1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $0_1 = ((1 << $5_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $5_1 | 0) | 0) | 0 | ($6_1 << $5_1 | 0) | 0; + $4_1 = $1_1 << $5_1 | 0; } } - $8$hi = i64toi32_i32$1; - i64toi32_i32$1 = $5$hi; - i64toi32_i32$0 = $5_1; - i64toi32_i32$2 = $8$hi; - i64toi32_i32$3 = $19_1; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - $9_1 = i64toi32_i32$0 | i64toi32_i32$3 | 0; - $9$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - $11_1 = $2_1; - $11$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$1 = $3_1; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + $1_1 = $0_1; + $0_1 = $8_1; + $6_1 = $7_1; + $1_1 = $0_1 | $1_1 | 0; + $9_1 = $6_1 | $4_1 | 0; + $7_1 = $1_1; + $1_1 = 0; + $8_1 = $1_1; + $1_1 = 0; + $0_1 = $3_1; + $4_1 = 32; + $5_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { { - i64toi32_i32$0 = i64toi32_i32$1 << i64toi32_i32$4 | 0; - $20_1 = 0; + $6_1 = $0_1 << $5_1 | 0; + $4_1 = 0; } } else { { - i64toi32_i32$0 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$1 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$2 << i64toi32_i32$4 | 0) | 0; - $20_1 = i64toi32_i32$1 << i64toi32_i32$4 | 0; + $6_1 = ((1 << $5_1 | 0) - 1 | 0) & ($0_1 >>> (32 - $5_1 | 0) | 0) | 0 | ($1_1 << $5_1 | 0) | 0; + $4_1 = $0_1 << $5_1 | 0; } } - $14$hi = i64toi32_i32$0; - i64toi32_i32$0 = $11$hi; - i64toi32_i32$2 = $11_1; - i64toi32_i32$1 = $14$hi; - i64toi32_i32$3 = $20_1; - i64toi32_i32$1 = i64toi32_i32$0 | i64toi32_i32$1 | 0; - $15_1 = i64toi32_i32$2 | i64toi32_i32$3 | 0; - $15$hi = i64toi32_i32$1; - i64toi32_i32$1 = $9$hi; - i64toi32_i32$2 = $15$hi; - return $19($9_1 | 0, i64toi32_i32$1 | 0, $15_1 | 0, i64toi32_i32$2 | 0) | 0 | 0; + $0_1 = $6_1; + $6_1 = $8_1; + $1_1 = $2_1; + $0_1 = $6_1 | $0_1 | 0; + $2_1 = $1_1 | $4_1 | 0; + $1_1 = $0_1; + $0_1 = $7_1; + return $19($9_1 | 0, $0_1 | 0, $2_1 | 0, $1_1 | 0) | 0 | 0; } function legalstub$20($0_1, $1_1, $2_1, $3_1) { @@ -2133,64 +1667,55 @@ function asmFunc(global, env, buffer) { $1_1 = $1_1 | 0; $2_1 = $2_1 | 0; $3_1 = $3_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $19_1 = 0, $20_1 = 0, $5_1 = 0, $5$hi = 0, $8$hi = 0, $9_1 = 0, $9$hi = 0, $11_1 = 0, $11$hi = 0, $14$hi = 0, $15_1 = 0, $15$hi = 0; - i64toi32_i32$0 = 0; - $5_1 = $0_1; - $5$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $4_1 = 0, $5_1 = 0, $6_1 = 0, $7_1 = 0, $8_1 = 0, $9_1 = 0; + $6_1 = 0; + $7_1 = $0_1; + $8_1 = $6_1; + $6_1 = 0; + $4_1 = 32; + $5_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $19_1 = 0; + $0_1 = $1_1 << $5_1 | 0; + $4_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $19_1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $0_1 = ((1 << $5_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $5_1 | 0) | 0) | 0 | ($6_1 << $5_1 | 0) | 0; + $4_1 = $1_1 << $5_1 | 0; } } - $8$hi = i64toi32_i32$1; - i64toi32_i32$1 = $5$hi; - i64toi32_i32$0 = $5_1; - i64toi32_i32$2 = $8$hi; - i64toi32_i32$3 = $19_1; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - $9_1 = i64toi32_i32$0 | i64toi32_i32$3 | 0; - $9$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - $11_1 = $2_1; - $11$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$1 = $3_1; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + $1_1 = $0_1; + $0_1 = $8_1; + $6_1 = $7_1; + $1_1 = $0_1 | $1_1 | 0; + $9_1 = $6_1 | $4_1 | 0; + $7_1 = $1_1; + $1_1 = 0; + $8_1 = $1_1; + $1_1 = 0; + $0_1 = $3_1; + $4_1 = 32; + $5_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { { - i64toi32_i32$0 = i64toi32_i32$1 << i64toi32_i32$4 | 0; - $20_1 = 0; + $6_1 = $0_1 << $5_1 | 0; + $4_1 = 0; } } else { { - i64toi32_i32$0 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$1 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$2 << i64toi32_i32$4 | 0) | 0; - $20_1 = i64toi32_i32$1 << i64toi32_i32$4 | 0; + $6_1 = ((1 << $5_1 | 0) - 1 | 0) & ($0_1 >>> (32 - $5_1 | 0) | 0) | 0 | ($1_1 << $5_1 | 0) | 0; + $4_1 = $0_1 << $5_1 | 0; } } - $14$hi = i64toi32_i32$0; - i64toi32_i32$0 = $11$hi; - i64toi32_i32$2 = $11_1; - i64toi32_i32$1 = $14$hi; - i64toi32_i32$3 = $20_1; - i64toi32_i32$1 = i64toi32_i32$0 | i64toi32_i32$1 | 0; - $15_1 = i64toi32_i32$2 | i64toi32_i32$3 | 0; - $15$hi = i64toi32_i32$1; - i64toi32_i32$1 = $9$hi; - i64toi32_i32$2 = $15$hi; - return $20($9_1 | 0, i64toi32_i32$1 | 0, $15_1 | 0, i64toi32_i32$2 | 0) | 0 | 0; + $0_1 = $6_1; + $6_1 = $8_1; + $1_1 = $2_1; + $0_1 = $6_1 | $0_1 | 0; + $2_1 = $1_1 | $4_1 | 0; + $1_1 = $0_1; + $0_1 = $7_1; + return $20($9_1 | 0, $0_1 | 0, $2_1 | 0, $1_1 | 0) | 0 | 0; } function legalstub$21($0_1, $1_1, $2_1, $3_1) { @@ -2198,64 +1723,55 @@ function asmFunc(global, env, buffer) { $1_1 = $1_1 | 0; $2_1 = $2_1 | 0; $3_1 = $3_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $19_1 = 0, $20_1 = 0, $5_1 = 0, $5$hi = 0, $8$hi = 0, $9_1 = 0, $9$hi = 0, $11_1 = 0, $11$hi = 0, $14$hi = 0, $15_1 = 0, $15$hi = 0; - i64toi32_i32$0 = 0; - $5_1 = $0_1; - $5$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $4_1 = 0, $5_1 = 0, $6_1 = 0, $7_1 = 0, $8_1 = 0, $9_1 = 0; + $6_1 = 0; + $7_1 = $0_1; + $8_1 = $6_1; + $6_1 = 0; + $4_1 = 32; + $5_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $19_1 = 0; + $0_1 = $1_1 << $5_1 | 0; + $4_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $19_1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $0_1 = ((1 << $5_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $5_1 | 0) | 0) | 0 | ($6_1 << $5_1 | 0) | 0; + $4_1 = $1_1 << $5_1 | 0; } } - $8$hi = i64toi32_i32$1; - i64toi32_i32$1 = $5$hi; - i64toi32_i32$0 = $5_1; - i64toi32_i32$2 = $8$hi; - i64toi32_i32$3 = $19_1; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - $9_1 = i64toi32_i32$0 | i64toi32_i32$3 | 0; - $9$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - $11_1 = $2_1; - $11$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$1 = $3_1; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + $1_1 = $0_1; + $0_1 = $8_1; + $6_1 = $7_1; + $1_1 = $0_1 | $1_1 | 0; + $9_1 = $6_1 | $4_1 | 0; + $7_1 = $1_1; + $1_1 = 0; + $8_1 = $1_1; + $1_1 = 0; + $0_1 = $3_1; + $4_1 = 32; + $5_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { { - i64toi32_i32$0 = i64toi32_i32$1 << i64toi32_i32$4 | 0; - $20_1 = 0; + $6_1 = $0_1 << $5_1 | 0; + $4_1 = 0; } } else { { - i64toi32_i32$0 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$1 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$2 << i64toi32_i32$4 | 0) | 0; - $20_1 = i64toi32_i32$1 << i64toi32_i32$4 | 0; + $6_1 = ((1 << $5_1 | 0) - 1 | 0) & ($0_1 >>> (32 - $5_1 | 0) | 0) | 0 | ($1_1 << $5_1 | 0) | 0; + $4_1 = $0_1 << $5_1 | 0; } } - $14$hi = i64toi32_i32$0; - i64toi32_i32$0 = $11$hi; - i64toi32_i32$2 = $11_1; - i64toi32_i32$1 = $14$hi; - i64toi32_i32$3 = $20_1; - i64toi32_i32$1 = i64toi32_i32$0 | i64toi32_i32$1 | 0; - $15_1 = i64toi32_i32$2 | i64toi32_i32$3 | 0; - $15$hi = i64toi32_i32$1; - i64toi32_i32$1 = $9$hi; - i64toi32_i32$2 = $15$hi; - return $21($9_1 | 0, i64toi32_i32$1 | 0, $15_1 | 0, i64toi32_i32$2 | 0) | 0 | 0; + $0_1 = $6_1; + $6_1 = $8_1; + $1_1 = $2_1; + $0_1 = $6_1 | $0_1 | 0; + $2_1 = $1_1 | $4_1 | 0; + $1_1 = $0_1; + $0_1 = $7_1; + return $21($9_1 | 0, $0_1 | 0, $2_1 | 0, $1_1 | 0) | 0 | 0; } function legalstub$22($0_1, $1_1, $2_1, $3_1) { @@ -2263,64 +1779,55 @@ function asmFunc(global, env, buffer) { $1_1 = $1_1 | 0; $2_1 = $2_1 | 0; $3_1 = $3_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $19_1 = 0, $20_1 = 0, $5_1 = 0, $5$hi = 0, $8$hi = 0, $9_1 = 0, $9$hi = 0, $11_1 = 0, $11$hi = 0, $14$hi = 0, $15_1 = 0, $15$hi = 0; - i64toi32_i32$0 = 0; - $5_1 = $0_1; - $5$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $4_1 = 0, $5_1 = 0, $6_1 = 0, $7_1 = 0, $8_1 = 0, $9_1 = 0; + $6_1 = 0; + $7_1 = $0_1; + $8_1 = $6_1; + $6_1 = 0; + $4_1 = 32; + $5_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $19_1 = 0; + $0_1 = $1_1 << $5_1 | 0; + $4_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $19_1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $0_1 = ((1 << $5_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $5_1 | 0) | 0) | 0 | ($6_1 << $5_1 | 0) | 0; + $4_1 = $1_1 << $5_1 | 0; } } - $8$hi = i64toi32_i32$1; - i64toi32_i32$1 = $5$hi; - i64toi32_i32$0 = $5_1; - i64toi32_i32$2 = $8$hi; - i64toi32_i32$3 = $19_1; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - $9_1 = i64toi32_i32$0 | i64toi32_i32$3 | 0; - $9$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - $11_1 = $2_1; - $11$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$1 = $3_1; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + $1_1 = $0_1; + $0_1 = $8_1; + $6_1 = $7_1; + $1_1 = $0_1 | $1_1 | 0; + $9_1 = $6_1 | $4_1 | 0; + $7_1 = $1_1; + $1_1 = 0; + $8_1 = $1_1; + $1_1 = 0; + $0_1 = $3_1; + $4_1 = 32; + $5_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { { - i64toi32_i32$0 = i64toi32_i32$1 << i64toi32_i32$4 | 0; - $20_1 = 0; + $6_1 = $0_1 << $5_1 | 0; + $4_1 = 0; } } else { { - i64toi32_i32$0 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$1 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$2 << i64toi32_i32$4 | 0) | 0; - $20_1 = i64toi32_i32$1 << i64toi32_i32$4 | 0; + $6_1 = ((1 << $5_1 | 0) - 1 | 0) & ($0_1 >>> (32 - $5_1 | 0) | 0) | 0 | ($1_1 << $5_1 | 0) | 0; + $4_1 = $0_1 << $5_1 | 0; } } - $14$hi = i64toi32_i32$0; - i64toi32_i32$0 = $11$hi; - i64toi32_i32$2 = $11_1; - i64toi32_i32$1 = $14$hi; - i64toi32_i32$3 = $20_1; - i64toi32_i32$1 = i64toi32_i32$0 | i64toi32_i32$1 | 0; - $15_1 = i64toi32_i32$2 | i64toi32_i32$3 | 0; - $15$hi = i64toi32_i32$1; - i64toi32_i32$1 = $9$hi; - i64toi32_i32$2 = $15$hi; - return $22($9_1 | 0, i64toi32_i32$1 | 0, $15_1 | 0, i64toi32_i32$2 | 0) | 0 | 0; + $0_1 = $6_1; + $6_1 = $8_1; + $1_1 = $2_1; + $0_1 = $6_1 | $0_1 | 0; + $2_1 = $1_1 | $4_1 | 0; + $1_1 = $0_1; + $0_1 = $7_1; + return $22($9_1 | 0, $0_1 | 0, $2_1 | 0, $1_1 | 0) | 0 | 0; } function legalstub$23($0_1, $1_1, $2_1, $3_1) { @@ -2328,64 +1835,55 @@ function asmFunc(global, env, buffer) { $1_1 = $1_1 | 0; $2_1 = $2_1 | 0; $3_1 = $3_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $19_1 = 0, $20_1 = 0, $5_1 = 0, $5$hi = 0, $8$hi = 0, $9_1 = 0, $9$hi = 0, $11_1 = 0, $11$hi = 0, $14$hi = 0, $15_1 = 0, $15$hi = 0; - i64toi32_i32$0 = 0; - $5_1 = $0_1; - $5$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $4_1 = 0, $5_1 = 0, $6_1 = 0, $7_1 = 0, $8_1 = 0, $9_1 = 0; + $6_1 = 0; + $7_1 = $0_1; + $8_1 = $6_1; + $6_1 = 0; + $4_1 = 32; + $5_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $19_1 = 0; + $0_1 = $1_1 << $5_1 | 0; + $4_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $19_1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $0_1 = ((1 << $5_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $5_1 | 0) | 0) | 0 | ($6_1 << $5_1 | 0) | 0; + $4_1 = $1_1 << $5_1 | 0; } } - $8$hi = i64toi32_i32$1; - i64toi32_i32$1 = $5$hi; - i64toi32_i32$0 = $5_1; - i64toi32_i32$2 = $8$hi; - i64toi32_i32$3 = $19_1; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - $9_1 = i64toi32_i32$0 | i64toi32_i32$3 | 0; - $9$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - $11_1 = $2_1; - $11$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$1 = $3_1; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + $1_1 = $0_1; + $0_1 = $8_1; + $6_1 = $7_1; + $1_1 = $0_1 | $1_1 | 0; + $9_1 = $6_1 | $4_1 | 0; + $7_1 = $1_1; + $1_1 = 0; + $8_1 = $1_1; + $1_1 = 0; + $0_1 = $3_1; + $4_1 = 32; + $5_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { { - i64toi32_i32$0 = i64toi32_i32$1 << i64toi32_i32$4 | 0; - $20_1 = 0; + $6_1 = $0_1 << $5_1 | 0; + $4_1 = 0; } } else { { - i64toi32_i32$0 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$1 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$2 << i64toi32_i32$4 | 0) | 0; - $20_1 = i64toi32_i32$1 << i64toi32_i32$4 | 0; + $6_1 = ((1 << $5_1 | 0) - 1 | 0) & ($0_1 >>> (32 - $5_1 | 0) | 0) | 0 | ($1_1 << $5_1 | 0) | 0; + $4_1 = $0_1 << $5_1 | 0; } } - $14$hi = i64toi32_i32$0; - i64toi32_i32$0 = $11$hi; - i64toi32_i32$2 = $11_1; - i64toi32_i32$1 = $14$hi; - i64toi32_i32$3 = $20_1; - i64toi32_i32$1 = i64toi32_i32$0 | i64toi32_i32$1 | 0; - $15_1 = i64toi32_i32$2 | i64toi32_i32$3 | 0; - $15$hi = i64toi32_i32$1; - i64toi32_i32$1 = $9$hi; - i64toi32_i32$2 = $15$hi; - return $23($9_1 | 0, i64toi32_i32$1 | 0, $15_1 | 0, i64toi32_i32$2 | 0) | 0 | 0; + $0_1 = $6_1; + $6_1 = $8_1; + $1_1 = $2_1; + $0_1 = $6_1 | $0_1 | 0; + $2_1 = $1_1 | $4_1 | 0; + $1_1 = $0_1; + $0_1 = $7_1; + return $23($9_1 | 0, $0_1 | 0, $2_1 | 0, $1_1 | 0) | 0 | 0; } function legalstub$24($0_1, $1_1, $2_1, $3_1) { @@ -2393,64 +1891,55 @@ function asmFunc(global, env, buffer) { $1_1 = $1_1 | 0; $2_1 = $2_1 | 0; $3_1 = $3_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $19_1 = 0, $20_1 = 0, $5_1 = 0, $5$hi = 0, $8$hi = 0, $9_1 = 0, $9$hi = 0, $11_1 = 0, $11$hi = 0, $14$hi = 0, $15_1 = 0, $15$hi = 0; - i64toi32_i32$0 = 0; - $5_1 = $0_1; - $5$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $4_1 = 0, $5_1 = 0, $6_1 = 0, $7_1 = 0, $8_1 = 0, $9_1 = 0; + $6_1 = 0; + $7_1 = $0_1; + $8_1 = $6_1; + $6_1 = 0; + $4_1 = 32; + $5_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $19_1 = 0; + $0_1 = $1_1 << $5_1 | 0; + $4_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $19_1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $0_1 = ((1 << $5_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $5_1 | 0) | 0) | 0 | ($6_1 << $5_1 | 0) | 0; + $4_1 = $1_1 << $5_1 | 0; } } - $8$hi = i64toi32_i32$1; - i64toi32_i32$1 = $5$hi; - i64toi32_i32$0 = $5_1; - i64toi32_i32$2 = $8$hi; - i64toi32_i32$3 = $19_1; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - $9_1 = i64toi32_i32$0 | i64toi32_i32$3 | 0; - $9$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - $11_1 = $2_1; - $11$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$1 = $3_1; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + $1_1 = $0_1; + $0_1 = $8_1; + $6_1 = $7_1; + $1_1 = $0_1 | $1_1 | 0; + $9_1 = $6_1 | $4_1 | 0; + $7_1 = $1_1; + $1_1 = 0; + $8_1 = $1_1; + $1_1 = 0; + $0_1 = $3_1; + $4_1 = 32; + $5_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { { - i64toi32_i32$0 = i64toi32_i32$1 << i64toi32_i32$4 | 0; - $20_1 = 0; + $6_1 = $0_1 << $5_1 | 0; + $4_1 = 0; } } else { { - i64toi32_i32$0 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$1 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$2 << i64toi32_i32$4 | 0) | 0; - $20_1 = i64toi32_i32$1 << i64toi32_i32$4 | 0; + $6_1 = ((1 << $5_1 | 0) - 1 | 0) & ($0_1 >>> (32 - $5_1 | 0) | 0) | 0 | ($1_1 << $5_1 | 0) | 0; + $4_1 = $0_1 << $5_1 | 0; } } - $14$hi = i64toi32_i32$0; - i64toi32_i32$0 = $11$hi; - i64toi32_i32$2 = $11_1; - i64toi32_i32$1 = $14$hi; - i64toi32_i32$3 = $20_1; - i64toi32_i32$1 = i64toi32_i32$0 | i64toi32_i32$1 | 0; - $15_1 = i64toi32_i32$2 | i64toi32_i32$3 | 0; - $15$hi = i64toi32_i32$1; - i64toi32_i32$1 = $9$hi; - i64toi32_i32$2 = $15$hi; - return $24($9_1 | 0, i64toi32_i32$1 | 0, $15_1 | 0, i64toi32_i32$2 | 0) | 0 | 0; + $0_1 = $6_1; + $6_1 = $8_1; + $1_1 = $2_1; + $0_1 = $6_1 | $0_1 | 0; + $2_1 = $1_1 | $4_1 | 0; + $1_1 = $0_1; + $0_1 = $7_1; + return $24($9_1 | 0, $0_1 | 0, $2_1 | 0, $1_1 | 0) | 0 | 0; } function legalstub$25($0_1, $1_1, $2_1, $3_1) { @@ -2458,64 +1947,55 @@ function asmFunc(global, env, buffer) { $1_1 = $1_1 | 0; $2_1 = $2_1 | 0; $3_1 = $3_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $19_1 = 0, $20_1 = 0, $5_1 = 0, $5$hi = 0, $8$hi = 0, $9_1 = 0, $9$hi = 0, $11_1 = 0, $11$hi = 0, $14$hi = 0, $15_1 = 0, $15$hi = 0; - i64toi32_i32$0 = 0; - $5_1 = $0_1; - $5$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $4_1 = 0, $5_1 = 0, $6_1 = 0, $7_1 = 0, $8_1 = 0, $9_1 = 0; + $6_1 = 0; + $7_1 = $0_1; + $8_1 = $6_1; + $6_1 = 0; + $4_1 = 32; + $5_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $19_1 = 0; + $0_1 = $1_1 << $5_1 | 0; + $4_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $19_1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $0_1 = ((1 << $5_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $5_1 | 0) | 0) | 0 | ($6_1 << $5_1 | 0) | 0; + $4_1 = $1_1 << $5_1 | 0; } } - $8$hi = i64toi32_i32$1; - i64toi32_i32$1 = $5$hi; - i64toi32_i32$0 = $5_1; - i64toi32_i32$2 = $8$hi; - i64toi32_i32$3 = $19_1; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - $9_1 = i64toi32_i32$0 | i64toi32_i32$3 | 0; - $9$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - $11_1 = $2_1; - $11$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$1 = $3_1; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + $1_1 = $0_1; + $0_1 = $8_1; + $6_1 = $7_1; + $1_1 = $0_1 | $1_1 | 0; + $9_1 = $6_1 | $4_1 | 0; + $7_1 = $1_1; + $1_1 = 0; + $8_1 = $1_1; + $1_1 = 0; + $0_1 = $3_1; + $4_1 = 32; + $5_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { { - i64toi32_i32$0 = i64toi32_i32$1 << i64toi32_i32$4 | 0; - $20_1 = 0; + $6_1 = $0_1 << $5_1 | 0; + $4_1 = 0; } } else { { - i64toi32_i32$0 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$1 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$2 << i64toi32_i32$4 | 0) | 0; - $20_1 = i64toi32_i32$1 << i64toi32_i32$4 | 0; + $6_1 = ((1 << $5_1 | 0) - 1 | 0) & ($0_1 >>> (32 - $5_1 | 0) | 0) | 0 | ($1_1 << $5_1 | 0) | 0; + $4_1 = $0_1 << $5_1 | 0; } } - $14$hi = i64toi32_i32$0; - i64toi32_i32$0 = $11$hi; - i64toi32_i32$2 = $11_1; - i64toi32_i32$1 = $14$hi; - i64toi32_i32$3 = $20_1; - i64toi32_i32$1 = i64toi32_i32$0 | i64toi32_i32$1 | 0; - $15_1 = i64toi32_i32$2 | i64toi32_i32$3 | 0; - $15$hi = i64toi32_i32$1; - i64toi32_i32$1 = $9$hi; - i64toi32_i32$2 = $15$hi; - return $25($9_1 | 0, i64toi32_i32$1 | 0, $15_1 | 0, i64toi32_i32$2 | 0) | 0 | 0; + $0_1 = $6_1; + $6_1 = $8_1; + $1_1 = $2_1; + $0_1 = $6_1 | $0_1 | 0; + $2_1 = $1_1 | $4_1 | 0; + $1_1 = $0_1; + $0_1 = $7_1; + return $25($9_1 | 0, $0_1 | 0, $2_1 | 0, $1_1 | 0) | 0 | 0; } function legalstub$26($0_1, $1_1, $2_1, $3_1) { @@ -2523,64 +2003,55 @@ function asmFunc(global, env, buffer) { $1_1 = $1_1 | 0; $2_1 = $2_1 | 0; $3_1 = $3_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $19_1 = 0, $20_1 = 0, $5_1 = 0, $5$hi = 0, $8$hi = 0, $9_1 = 0, $9$hi = 0, $11_1 = 0, $11$hi = 0, $14$hi = 0, $15_1 = 0, $15$hi = 0; - i64toi32_i32$0 = 0; - $5_1 = $0_1; - $5$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $4_1 = 0, $5_1 = 0, $6_1 = 0, $7_1 = 0, $8_1 = 0, $9_1 = 0; + $6_1 = 0; + $7_1 = $0_1; + $8_1 = $6_1; + $6_1 = 0; + $4_1 = 32; + $5_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $19_1 = 0; + $0_1 = $1_1 << $5_1 | 0; + $4_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $19_1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $0_1 = ((1 << $5_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $5_1 | 0) | 0) | 0 | ($6_1 << $5_1 | 0) | 0; + $4_1 = $1_1 << $5_1 | 0; } } - $8$hi = i64toi32_i32$1; - i64toi32_i32$1 = $5$hi; - i64toi32_i32$0 = $5_1; - i64toi32_i32$2 = $8$hi; - i64toi32_i32$3 = $19_1; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - $9_1 = i64toi32_i32$0 | i64toi32_i32$3 | 0; - $9$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - $11_1 = $2_1; - $11$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$1 = $3_1; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + $1_1 = $0_1; + $0_1 = $8_1; + $6_1 = $7_1; + $1_1 = $0_1 | $1_1 | 0; + $9_1 = $6_1 | $4_1 | 0; + $7_1 = $1_1; + $1_1 = 0; + $8_1 = $1_1; + $1_1 = 0; + $0_1 = $3_1; + $4_1 = 32; + $5_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { { - i64toi32_i32$0 = i64toi32_i32$1 << i64toi32_i32$4 | 0; - $20_1 = 0; + $6_1 = $0_1 << $5_1 | 0; + $4_1 = 0; } } else { { - i64toi32_i32$0 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$1 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$2 << i64toi32_i32$4 | 0) | 0; - $20_1 = i64toi32_i32$1 << i64toi32_i32$4 | 0; + $6_1 = ((1 << $5_1 | 0) - 1 | 0) & ($0_1 >>> (32 - $5_1 | 0) | 0) | 0 | ($1_1 << $5_1 | 0) | 0; + $4_1 = $0_1 << $5_1 | 0; } } - $14$hi = i64toi32_i32$0; - i64toi32_i32$0 = $11$hi; - i64toi32_i32$2 = $11_1; - i64toi32_i32$1 = $14$hi; - i64toi32_i32$3 = $20_1; - i64toi32_i32$1 = i64toi32_i32$0 | i64toi32_i32$1 | 0; - $15_1 = i64toi32_i32$2 | i64toi32_i32$3 | 0; - $15$hi = i64toi32_i32$1; - i64toi32_i32$1 = $9$hi; - i64toi32_i32$2 = $15$hi; - return $26($9_1 | 0, i64toi32_i32$1 | 0, $15_1 | 0, i64toi32_i32$2 | 0) | 0 | 0; + $0_1 = $6_1; + $6_1 = $8_1; + $1_1 = $2_1; + $0_1 = $6_1 | $0_1 | 0; + $2_1 = $1_1 | $4_1 | 0; + $1_1 = $0_1; + $0_1 = $7_1; + return $26($9_1 | 0, $0_1 | 0, $2_1 | 0, $1_1 | 0) | 0 | 0; } function legalstub$27($0_1, $1_1, $2_1, $3_1) { @@ -2588,64 +2059,55 @@ function asmFunc(global, env, buffer) { $1_1 = $1_1 | 0; $2_1 = $2_1 | 0; $3_1 = $3_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $19_1 = 0, $20_1 = 0, $5_1 = 0, $5$hi = 0, $8$hi = 0, $9_1 = 0, $9$hi = 0, $11_1 = 0, $11$hi = 0, $14$hi = 0, $15_1 = 0, $15$hi = 0; - i64toi32_i32$0 = 0; - $5_1 = $0_1; - $5$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $4_1 = 0, $5_1 = 0, $6_1 = 0, $7_1 = 0, $8_1 = 0, $9_1 = 0; + $6_1 = 0; + $7_1 = $0_1; + $8_1 = $6_1; + $6_1 = 0; + $4_1 = 32; + $5_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $19_1 = 0; + $0_1 = $1_1 << $5_1 | 0; + $4_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $19_1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $0_1 = ((1 << $5_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $5_1 | 0) | 0) | 0 | ($6_1 << $5_1 | 0) | 0; + $4_1 = $1_1 << $5_1 | 0; } } - $8$hi = i64toi32_i32$1; - i64toi32_i32$1 = $5$hi; - i64toi32_i32$0 = $5_1; - i64toi32_i32$2 = $8$hi; - i64toi32_i32$3 = $19_1; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - $9_1 = i64toi32_i32$0 | i64toi32_i32$3 | 0; - $9$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - $11_1 = $2_1; - $11$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$1 = $3_1; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + $1_1 = $0_1; + $0_1 = $8_1; + $6_1 = $7_1; + $1_1 = $0_1 | $1_1 | 0; + $9_1 = $6_1 | $4_1 | 0; + $7_1 = $1_1; + $1_1 = 0; + $8_1 = $1_1; + $1_1 = 0; + $0_1 = $3_1; + $4_1 = 32; + $5_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { { - i64toi32_i32$0 = i64toi32_i32$1 << i64toi32_i32$4 | 0; - $20_1 = 0; + $6_1 = $0_1 << $5_1 | 0; + $4_1 = 0; } } else { { - i64toi32_i32$0 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$1 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$2 << i64toi32_i32$4 | 0) | 0; - $20_1 = i64toi32_i32$1 << i64toi32_i32$4 | 0; + $6_1 = ((1 << $5_1 | 0) - 1 | 0) & ($0_1 >>> (32 - $5_1 | 0) | 0) | 0 | ($1_1 << $5_1 | 0) | 0; + $4_1 = $0_1 << $5_1 | 0; } } - $14$hi = i64toi32_i32$0; - i64toi32_i32$0 = $11$hi; - i64toi32_i32$2 = $11_1; - i64toi32_i32$1 = $14$hi; - i64toi32_i32$3 = $20_1; - i64toi32_i32$1 = i64toi32_i32$0 | i64toi32_i32$1 | 0; - $15_1 = i64toi32_i32$2 | i64toi32_i32$3 | 0; - $15$hi = i64toi32_i32$1; - i64toi32_i32$1 = $9$hi; - i64toi32_i32$2 = $15$hi; - return $27($9_1 | 0, i64toi32_i32$1 | 0, $15_1 | 0, i64toi32_i32$2 | 0) | 0 | 0; + $0_1 = $6_1; + $6_1 = $8_1; + $1_1 = $2_1; + $0_1 = $6_1 | $0_1 | 0; + $2_1 = $1_1 | $4_1 | 0; + $1_1 = $0_1; + $0_1 = $7_1; + return $27($9_1 | 0, $0_1 | 0, $2_1 | 0, $1_1 | 0) | 0 | 0; } function legalstub$28($0_1, $1_1, $2_1, $3_1) { @@ -2653,438 +2115,358 @@ function asmFunc(global, env, buffer) { $1_1 = $1_1 | 0; $2_1 = $2_1 | 0; $3_1 = $3_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $19_1 = 0, $20_1 = 0, $5_1 = 0, $5$hi = 0, $8$hi = 0, $9_1 = 0, $9$hi = 0, $11_1 = 0, $11$hi = 0, $14$hi = 0, $15_1 = 0, $15$hi = 0; - i64toi32_i32$0 = 0; - $5_1 = $0_1; - $5$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $4_1 = 0, $5_1 = 0, $6_1 = 0, $7_1 = 0, $8_1 = 0, $9_1 = 0; + $6_1 = 0; + $7_1 = $0_1; + $8_1 = $6_1; + $6_1 = 0; + $4_1 = 32; + $5_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $19_1 = 0; + $0_1 = $1_1 << $5_1 | 0; + $4_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $19_1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $0_1 = ((1 << $5_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $5_1 | 0) | 0) | 0 | ($6_1 << $5_1 | 0) | 0; + $4_1 = $1_1 << $5_1 | 0; } } - $8$hi = i64toi32_i32$1; - i64toi32_i32$1 = $5$hi; - i64toi32_i32$0 = $5_1; - i64toi32_i32$2 = $8$hi; - i64toi32_i32$3 = $19_1; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - $9_1 = i64toi32_i32$0 | i64toi32_i32$3 | 0; - $9$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - $11_1 = $2_1; - $11$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$1 = $3_1; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + $1_1 = $0_1; + $0_1 = $8_1; + $6_1 = $7_1; + $1_1 = $0_1 | $1_1 | 0; + $9_1 = $6_1 | $4_1 | 0; + $7_1 = $1_1; + $1_1 = 0; + $8_1 = $1_1; + $1_1 = 0; + $0_1 = $3_1; + $4_1 = 32; + $5_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { { - i64toi32_i32$0 = i64toi32_i32$1 << i64toi32_i32$4 | 0; - $20_1 = 0; + $6_1 = $0_1 << $5_1 | 0; + $4_1 = 0; } } else { { - i64toi32_i32$0 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$1 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$2 << i64toi32_i32$4 | 0) | 0; - $20_1 = i64toi32_i32$1 << i64toi32_i32$4 | 0; + $6_1 = ((1 << $5_1 | 0) - 1 | 0) & ($0_1 >>> (32 - $5_1 | 0) | 0) | 0 | ($1_1 << $5_1 | 0) | 0; + $4_1 = $0_1 << $5_1 | 0; } } - $14$hi = i64toi32_i32$0; - i64toi32_i32$0 = $11$hi; - i64toi32_i32$2 = $11_1; - i64toi32_i32$1 = $14$hi; - i64toi32_i32$3 = $20_1; - i64toi32_i32$1 = i64toi32_i32$0 | i64toi32_i32$1 | 0; - $15_1 = i64toi32_i32$2 | i64toi32_i32$3 | 0; - $15$hi = i64toi32_i32$1; - i64toi32_i32$1 = $9$hi; - i64toi32_i32$2 = $15$hi; - return $28($9_1 | 0, i64toi32_i32$1 | 0, $15_1 | 0, i64toi32_i32$2 | 0) | 0 | 0; + $0_1 = $6_1; + $6_1 = $8_1; + $1_1 = $2_1; + $0_1 = $6_1 | $0_1 | 0; + $2_1 = $1_1 | $4_1 | 0; + $1_1 = $0_1; + $0_1 = $7_1; + return $28($9_1 | 0, $0_1 | 0, $2_1 | 0, $1_1 | 0) | 0 | 0; } function legalfunc$wasm2js_scratch_load_i64() { - var i64toi32_i32$0 = 0, i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $8_1 = 0, $1_1 = 0, $1$hi = 0, $4$hi = 0; - i64toi32_i32$0 = 0; - $1_1 = legalimport$wasm2js_scratch_load_i64() | 0; - $1$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = getTempRet0() | 0; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $0_1 = 0, $1_1 = 0, $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0, $6_1 = 0; + $0_1 = 0; + $5_1 = legalimport$wasm2js_scratch_load_i64() | 0; + $6_1 = $0_1; + $0_1 = 0; + $1_1 = getTempRet0() | 0; + $2_1 = 32; + $3_1 = $2_1 & 31 | 0; + if (32 >>> 0 <= ($2_1 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $8_1 = 0; + $4_1 = $1_1 << $3_1 | 0; + $2_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $8_1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $4_1 = ((1 << $3_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $3_1 | 0) | 0) | 0 | ($0_1 << $3_1 | 0) | 0; + $2_1 = $1_1 << $3_1 | 0; } } - $4$hi = i64toi32_i32$1; - i64toi32_i32$1 = $1$hi; - i64toi32_i32$0 = $1_1; - i64toi32_i32$2 = $4$hi; - i64toi32_i32$3 = $8_1; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - i64toi32_i32$0 = i64toi32_i32$0 | i64toi32_i32$3 | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$2; - return i64toi32_i32$0 | 0; + $1_1 = $4_1; + $4_1 = $6_1; + $0_1 = $5_1; + $1_1 = $4_1 | $1_1 | 0; + $0_1 = $0_1 | $2_1 | 0; + i64toi32_i32$HIGH_BITS = $1_1; + return $0_1 | 0; } - function legalfunc$wasm2js_scratch_store_i64($0_1, $0$hi) { + function legalfunc$wasm2js_scratch_store_i64($0_1, $1_1) { $0_1 = $0_1 | 0; - $0$hi = $0$hi | 0; - var i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $8_1 = 0, $2_1 = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $0$hi; - $2_1 = $0_1; - i64toi32_i32$2 = $0_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + $1_1 = $1_1 | 0; + var $2_1 = 0, $3_1 = 0, $4_1 = 0; + $4_1 = $0_1; + $3_1 = 32; + $2_1 = $3_1 & 31 | 0; + if (32 >>> 0 <= ($3_1 & 63 | 0) >>> 0) { + $0_1 = $1_1 >>> $2_1 | 0 + } else { + $0_1 = (((1 << $2_1 | 0) - 1 | 0) & $1_1 | 0) << (32 - $2_1 | 0) | 0 | ($0_1 >>> $2_1 | 0) | 0 + } + legalimport$wasm2js_scratch_store_i64($4_1 | 0, $0_1 | 0); + } + + function _ZN17compiler_builtins3int3mul3Mul3mul17h070e9a1c69faec5bE($0_1, $1_1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + var $4_1 = 0, $5_1 = 0, $6_1 = 0, $7_1 = 0, $8_1 = 0, $9_1 = 0, $10_1 = 0, $11_1 = 0; + $5_1 = $2_1; + $9_1 = $5_1 >>> 16 | 0; + $10_1 = $0_1 >>> 16 | 0; + $11_1 = Math_imul($9_1, $10_1); + $8_1 = $5_1; + $6_1 = $0_1; + $7_1 = 32; + $4_1 = $7_1 & 31 | 0; + if (32 >>> 0 <= ($7_1 & 63 | 0) >>> 0) { + $1_1 = $1_1 >>> $4_1 | 0 + } else { + $1_1 = (((1 << $4_1 | 0) - 1 | 0) & $1_1 | 0) << (32 - $4_1 | 0) | 0 | ($6_1 >>> $4_1 | 0) | 0 + } + $6_1 = $11_1 + Math_imul($8_1, $1_1) | 0; + $1_1 = $2_1; + $7_1 = 32; + $4_1 = $7_1 & 31 | 0; + if (32 >>> 0 <= ($7_1 & 63 | 0) >>> 0) { + $1_1 = $3_1 >>> $4_1 | 0 + } else { + $1_1 = (((1 << $4_1 | 0) - 1 | 0) & $3_1 | 0) << (32 - $4_1 | 0) | 0 | ($1_1 >>> $4_1 | 0) | 0 + } + $1_1 = $6_1 + Math_imul($1_1, $0_1) | 0; + $5_1 = $5_1 & 65535 | 0; + $0_1 = $0_1 & 65535 | 0; + $8_1 = Math_imul($5_1, $0_1); + $5_1 = ($8_1 >>> 16 | 0) + Math_imul($5_1, $10_1) | 0; + $1_1 = $1_1 + ($5_1 >>> 16 | 0) | 0; + $5_1 = ($5_1 & 65535 | 0) + Math_imul($9_1, $0_1) | 0; + $6_1 = 0; + $3_1 = $1_1 + ($5_1 >>> 16 | 0) | 0; + $7_1 = 32; + $4_1 = $7_1 & 31 | 0; + if (32 >>> 0 <= ($7_1 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = 0; - $8_1 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; + $1_1 = $3_1 << $4_1 | 0; + $6_1 = 0; } } else { { - i64toi32_i32$1 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $8_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; + $1_1 = ((1 << $4_1 | 0) - 1 | 0) & ($3_1 >>> (32 - $4_1 | 0) | 0) | 0 | ($6_1 << $4_1 | 0) | 0; + $6_1 = $3_1 << $4_1 | 0; } } - legalimport$wasm2js_scratch_store_i64($2_1 | 0, $8_1 | 0); + $0_1 = $1_1; + $1_1 = 0; + $2_1 = $1_1; + $1_1 = $0_1; + $3_1 = $2_1; + $7_1 = $5_1 << 16 | 0 | ($8_1 & 65535 | 0) | 0; + $3_1 = $1_1 | $3_1 | 0; + $6_1 = $6_1 | $7_1 | 0; + i64toi32_i32$HIGH_BITS = $3_1; + return $6_1 | 0; } - function _ZN17compiler_builtins3int3mul3Mul3mul17h070e9a1c69faec5bE(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; - var i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, var$2 = 0, i64toi32_i32$2 = 0, i64toi32_i32$3 = 0, var$3 = 0, var$4 = 0, var$5 = 0, $21_1 = 0, $22_1 = 0, var$6 = 0, $24_1 = 0, $17_1 = 0, $18_1 = 0, $23_1 = 0, $29 = 0, $45 = 0, $56$hi = 0, $62$hi = 0; - i64toi32_i32$0 = var$1$hi; - var$2 = var$1; - var$4 = var$2 >>> 16 | 0; - i64toi32_i32$0 = var$0$hi; - var$3 = var$0; - var$5 = var$3 >>> 16 | 0; - $17_1 = Math_imul(var$4, var$5); - $18_1 = var$2; - i64toi32_i32$2 = var$3; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + function _ZN17compiler_builtins3int4sdiv3Div3div17he78fc483e41d7ec7E($0_1, $1_1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + var $4_1 = 0, $5_1 = 0, $6_1 = 0, $7_1 = 0, $8_1 = 0, $9_1 = 0, $10_1 = 0, $11_1 = 0, $12_1 = 0; + $8_1 = $1_1; + $7_1 = $0_1; + $6_1 = 63; + $5_1 = $6_1 & 31 | 0; + if (32 >>> 0 <= ($6_1 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = 0; - $21_1 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } - } else { - { - i64toi32_i32$1 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $21_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } - } - $23_1 = $17_1 + Math_imul($18_1, $21_1) | 0; - i64toi32_i32$1 = var$1$hi; - i64toi32_i32$0 = var$1; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + $4_1 = $8_1 >> 31 | 0; + $5_1 = $8_1 >> $5_1 | 0; + } + } else { + { + $4_1 = $8_1 >> $5_1 | 0; + $5_1 = (((1 << $5_1 | 0) - 1 | 0) & $8_1 | 0) << (32 - $5_1 | 0) | 0 | ($7_1 >>> $5_1 | 0) | 0; + } + } + $10_1 = $4_1; + $4_1 = $10_1; + $8_1 = $5_1; + $7_1 = $1_1; + $6_1 = $0_1; + $7_1 = $4_1 ^ $7_1 | 0; + $4_1 = $8_1 ^ $6_1 | 0; + $8_1 = $10_1; + $6_1 = $5_1; + $5_1 = $4_1 - $6_1 | 0; + $10_1 = $4_1 >>> 0 < $6_1 >>> 0; + $9_1 = $10_1 + $8_1 | 0; + $9_1 = $7_1 - $9_1 | 0; + $11_1 = $5_1; + $12_1 = $9_1; + $9_1 = $3_1; + $7_1 = $2_1; + $6_1 = 63; + $8_1 = $6_1 & 31 | 0; + if (32 >>> 0 <= ($6_1 & 63 | 0) >>> 0) { + { + $4_1 = $9_1 >> 31 | 0; + $5_1 = $9_1 >> $8_1 | 0; + } + } else { + { + $4_1 = $9_1 >> $8_1 | 0; + $5_1 = (((1 << $8_1 | 0) - 1 | 0) & $9_1 | 0) << (32 - $8_1 | 0) | 0 | ($7_1 >>> $8_1 | 0) | 0; + } + } + $10_1 = $4_1; + $4_1 = $10_1; + $9_1 = $5_1; + $7_1 = $3_1; + $6_1 = $2_1; + $7_1 = $4_1 ^ $7_1 | 0; + $4_1 = $9_1 ^ $6_1 | 0; + $9_1 = $10_1; + $6_1 = $5_1; + $8_1 = $4_1 - $6_1 | 0; + $10_1 = $4_1 >>> 0 < $6_1 >>> 0; + $5_1 = $10_1 + $9_1 | 0; + $5_1 = $7_1 - $5_1 | 0; + $4_1 = $5_1; + $5_1 = $12_1; + $4_1 = __wasm_i64_udiv($11_1 | 0, $5_1 | 0, $8_1 | 0, $4_1 | 0) | 0; + $5_1 = i64toi32_i32$HIGH_BITS; + $10_1 = $4_1; + $8_1 = $5_1; + $5_1 = $3_1; + $7_1 = $2_1; + $4_1 = $1_1; + $6_1 = $0_1; + $4_1 = $5_1 ^ $4_1 | 0; + $5_1 = $7_1 ^ $6_1 | 0; + $6_1 = 63; + $9_1 = $6_1 & 31 | 0; + if (32 >>> 0 <= ($6_1 & 63 | 0) >>> 0) { { - i64toi32_i32$2 = 0; - $22_1 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; + $7_1 = $4_1 >> 31 | 0; + $0_1 = $4_1 >> $9_1 | 0; } } else { { - i64toi32_i32$2 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $22_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$0 >>> i64toi32_i32$4 | 0) | 0; + $7_1 = $4_1 >> $9_1 | 0; + $0_1 = (((1 << $9_1 | 0) - 1 | 0) & $4_1 | 0) << (32 - $9_1 | 0) | 0 | ($5_1 >>> $9_1 | 0) | 0; } - } - $29 = $23_1 + Math_imul($22_1, var$3) | 0; - var$2 = var$2 & 65535 | 0; - var$3 = var$3 & 65535 | 0; - var$6 = Math_imul(var$2, var$3); - var$2 = (var$6 >>> 16 | 0) + Math_imul(var$2, var$5) | 0; - $45 = $29 + (var$2 >>> 16 | 0) | 0; - var$2 = (var$2 & 65535 | 0) + Math_imul(var$4, var$3) | 0; - i64toi32_i32$2 = 0; - i64toi32_i32$1 = $45 + (var$2 >>> 16 | 0) | 0; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = i64toi32_i32$1 << i64toi32_i32$4 | 0; - $24_1 = 0; - } - } else { - { - i64toi32_i32$0 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$1 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$2 << i64toi32_i32$4 | 0) | 0; - $24_1 = i64toi32_i32$1 << i64toi32_i32$4 | 0; - } - } - $56$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - $62$hi = i64toi32_i32$0; - i64toi32_i32$0 = $56$hi; - i64toi32_i32$2 = $24_1; - i64toi32_i32$1 = $62$hi; - i64toi32_i32$3 = var$2 << 16 | 0 | (var$6 & 65535 | 0) | 0; - i64toi32_i32$1 = i64toi32_i32$0 | i64toi32_i32$1 | 0; - i64toi32_i32$2 = i64toi32_i32$2 | i64toi32_i32$3 | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$2 | 0; - } - - function _ZN17compiler_builtins3int4sdiv3Div3div17he78fc483e41d7ec7E(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; - var i64toi32_i32$1 = 0, i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, i64toi32_i32$0 = 0, i64toi32_i32$5 = 0, var$2 = 0, var$2$hi = 0, i64toi32_i32$6 = 0, $21_1 = 0, $22_1 = 0, $23_1 = 0, $7$hi = 0, $9_1 = 0, $9$hi = 0, $14$hi = 0, $16$hi = 0, $17_1 = 0, $17$hi = 0, $23$hi = 0; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$2 = var$0; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 63; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = i64toi32_i32$0 >> 31 | 0; - $21_1 = i64toi32_i32$0 >> i64toi32_i32$4 | 0; - } - } else { - { - i64toi32_i32$1 = i64toi32_i32$0 >> i64toi32_i32$4 | 0; - $21_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } - } - var$2 = $21_1; - var$2$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$1 = var$2$hi; - i64toi32_i32$0 = var$2; - i64toi32_i32$2 = var$0$hi; - i64toi32_i32$3 = var$0; - i64toi32_i32$2 = i64toi32_i32$1 ^ i64toi32_i32$2 | 0; - $7$hi = i64toi32_i32$2; - i64toi32_i32$2 = i64toi32_i32$1; - i64toi32_i32$2 = $7$hi; - i64toi32_i32$1 = i64toi32_i32$0 ^ i64toi32_i32$3 | 0; - i64toi32_i32$0 = var$2$hi; - i64toi32_i32$3 = var$2; - i64toi32_i32$4 = i64toi32_i32$1 - i64toi32_i32$3 | 0; - i64toi32_i32$6 = i64toi32_i32$1 >>> 0 < i64toi32_i32$3 >>> 0; - i64toi32_i32$5 = i64toi32_i32$6 + i64toi32_i32$0 | 0; - i64toi32_i32$5 = i64toi32_i32$2 - i64toi32_i32$5 | 0; - $9_1 = i64toi32_i32$4; - $9$hi = i64toi32_i32$5; - i64toi32_i32$5 = var$1$hi; - i64toi32_i32$2 = var$1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 63; - i64toi32_i32$0 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = i64toi32_i32$5 >> 31 | 0; - $22_1 = i64toi32_i32$5 >> i64toi32_i32$0 | 0; - } - } else { - { - i64toi32_i32$1 = i64toi32_i32$5 >> i64toi32_i32$0 | 0; - $22_1 = (((1 << i64toi32_i32$0 | 0) - 1 | 0) & i64toi32_i32$5 | 0) << (32 - i64toi32_i32$0 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$0 | 0) | 0; - } - } - var$2 = $22_1; - var$2$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = var$2$hi; - i64toi32_i32$5 = var$2; - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$3 = var$1; - i64toi32_i32$2 = i64toi32_i32$1 ^ i64toi32_i32$2 | 0; - $14$hi = i64toi32_i32$2; - i64toi32_i32$2 = i64toi32_i32$1; - i64toi32_i32$2 = $14$hi; - i64toi32_i32$1 = i64toi32_i32$5 ^ i64toi32_i32$3 | 0; - i64toi32_i32$5 = var$2$hi; - i64toi32_i32$3 = var$2; - i64toi32_i32$0 = i64toi32_i32$1 - i64toi32_i32$3 | 0; - i64toi32_i32$6 = i64toi32_i32$1 >>> 0 < i64toi32_i32$3 >>> 0; - i64toi32_i32$4 = i64toi32_i32$6 + i64toi32_i32$5 | 0; - i64toi32_i32$4 = i64toi32_i32$2 - i64toi32_i32$4 | 0; - $16$hi = i64toi32_i32$4; - i64toi32_i32$4 = $9$hi; - i64toi32_i32$1 = $16$hi; - i64toi32_i32$1 = __wasm_i64_udiv($9_1 | 0, i64toi32_i32$4 | 0, i64toi32_i32$0 | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$4 = i64toi32_i32$HIGH_BITS; - $17_1 = i64toi32_i32$1; - $17$hi = i64toi32_i32$4; - i64toi32_i32$4 = var$1$hi; - i64toi32_i32$4 = var$0$hi; - i64toi32_i32$4 = var$1$hi; - i64toi32_i32$2 = var$1; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$3 = var$0; - i64toi32_i32$1 = i64toi32_i32$4 ^ i64toi32_i32$1 | 0; - i64toi32_i32$4 = i64toi32_i32$2 ^ i64toi32_i32$3 | 0; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 63; - i64toi32_i32$5 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = i64toi32_i32$1 >> 31 | 0; - $23_1 = i64toi32_i32$1 >> i64toi32_i32$5 | 0; - } - } else { - { - i64toi32_i32$2 = i64toi32_i32$1 >> i64toi32_i32$5 | 0; - $23_1 = (((1 << i64toi32_i32$5 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$5 | 0) | 0 | (i64toi32_i32$4 >>> i64toi32_i32$5 | 0) | 0; - } - } - var$0 = $23_1; - var$0$hi = i64toi32_i32$2; - i64toi32_i32$2 = $17$hi; - i64toi32_i32$1 = $17_1; - i64toi32_i32$4 = var$0$hi; - i64toi32_i32$3 = var$0; - i64toi32_i32$4 = i64toi32_i32$2 ^ i64toi32_i32$4 | 0; - $23$hi = i64toi32_i32$4; - i64toi32_i32$4 = var$0$hi; - i64toi32_i32$4 = $23$hi; - i64toi32_i32$2 = i64toi32_i32$1 ^ i64toi32_i32$3 | 0; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$5 = i64toi32_i32$2 - i64toi32_i32$3 | 0; - i64toi32_i32$6 = i64toi32_i32$2 >>> 0 < i64toi32_i32$3 >>> 0; - i64toi32_i32$0 = i64toi32_i32$6 + i64toi32_i32$1 | 0; - i64toi32_i32$0 = i64toi32_i32$4 - i64toi32_i32$0 | 0; - i64toi32_i32$2 = i64toi32_i32$5; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$2 | 0; - } - - function _ZN17compiler_builtins3int4sdiv3Mod4mod_17h2cbb7bbf36e41d68E(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; - var i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$2 = 0, i64toi32_i32$0 = 0, i64toi32_i32$3 = 0, i64toi32_i32$5 = 0, var$2$hi = 0, i64toi32_i32$6 = 0, var$2 = 0, $20_1 = 0, $21_1 = 0, $7$hi = 0, $9_1 = 0, $9$hi = 0, $14$hi = 0, $16$hi = 0, $17$hi = 0, $19$hi = 0; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$2 = var$0; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 63; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = i64toi32_i32$0 >> 31 | 0; - $20_1 = i64toi32_i32$0 >> i64toi32_i32$4 | 0; - } - } else { - { - i64toi32_i32$1 = i64toi32_i32$0 >> i64toi32_i32$4 | 0; - $20_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } - } - var$2 = $20_1; - var$2$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$1 = var$2$hi; - i64toi32_i32$0 = var$2; - i64toi32_i32$2 = var$0$hi; - i64toi32_i32$3 = var$0; - i64toi32_i32$2 = i64toi32_i32$1 ^ i64toi32_i32$2 | 0; - $7$hi = i64toi32_i32$2; - i64toi32_i32$2 = i64toi32_i32$1; - i64toi32_i32$2 = $7$hi; - i64toi32_i32$1 = i64toi32_i32$0 ^ i64toi32_i32$3 | 0; - i64toi32_i32$0 = var$2$hi; - i64toi32_i32$3 = var$2; - i64toi32_i32$4 = i64toi32_i32$1 - i64toi32_i32$3 | 0; - i64toi32_i32$6 = i64toi32_i32$1 >>> 0 < i64toi32_i32$3 >>> 0; - i64toi32_i32$5 = i64toi32_i32$6 + i64toi32_i32$0 | 0; - i64toi32_i32$5 = i64toi32_i32$2 - i64toi32_i32$5 | 0; - $9_1 = i64toi32_i32$4; - $9$hi = i64toi32_i32$5; - i64toi32_i32$5 = var$1$hi; - i64toi32_i32$2 = var$1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 63; - i64toi32_i32$0 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = i64toi32_i32$5 >> 31 | 0; - $21_1 = i64toi32_i32$5 >> i64toi32_i32$0 | 0; - } - } else { - { - i64toi32_i32$1 = i64toi32_i32$5 >> i64toi32_i32$0 | 0; - $21_1 = (((1 << i64toi32_i32$0 | 0) - 1 | 0) & i64toi32_i32$5 | 0) << (32 - i64toi32_i32$0 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$0 | 0) | 0; - } - } - var$0 = $21_1; - var$0$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$5 = var$0; - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$3 = var$1; - i64toi32_i32$2 = i64toi32_i32$1 ^ i64toi32_i32$2 | 0; - $14$hi = i64toi32_i32$2; - i64toi32_i32$2 = i64toi32_i32$1; - i64toi32_i32$2 = $14$hi; - i64toi32_i32$1 = i64toi32_i32$5 ^ i64toi32_i32$3 | 0; - i64toi32_i32$5 = var$0$hi; - i64toi32_i32$3 = var$0; - i64toi32_i32$0 = i64toi32_i32$1 - i64toi32_i32$3 | 0; - i64toi32_i32$6 = i64toi32_i32$1 >>> 0 < i64toi32_i32$3 >>> 0; - i64toi32_i32$4 = i64toi32_i32$6 + i64toi32_i32$5 | 0; - i64toi32_i32$4 = i64toi32_i32$2 - i64toi32_i32$4 | 0; - $16$hi = i64toi32_i32$4; - i64toi32_i32$4 = $9$hi; - i64toi32_i32$1 = $16$hi; - i64toi32_i32$1 = __wasm_i64_urem($9_1 | 0, i64toi32_i32$4 | 0, i64toi32_i32$0 | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$4 = i64toi32_i32$HIGH_BITS; - $17$hi = i64toi32_i32$4; - i64toi32_i32$4 = var$2$hi; - i64toi32_i32$4 = $17$hi; - i64toi32_i32$2 = i64toi32_i32$1; - i64toi32_i32$1 = var$2$hi; - i64toi32_i32$3 = var$2; - i64toi32_i32$1 = i64toi32_i32$4 ^ i64toi32_i32$1 | 0; - $19$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$2$hi; - i64toi32_i32$1 = $19$hi; - i64toi32_i32$4 = i64toi32_i32$2 ^ i64toi32_i32$3 | 0; - i64toi32_i32$2 = var$2$hi; - i64toi32_i32$5 = i64toi32_i32$4 - i64toi32_i32$3 | 0; - i64toi32_i32$6 = i64toi32_i32$4 >>> 0 < i64toi32_i32$3 >>> 0; - i64toi32_i32$0 = i64toi32_i32$6 + i64toi32_i32$2 | 0; - i64toi32_i32$0 = i64toi32_i32$1 - i64toi32_i32$0 | 0; - i64toi32_i32$4 = i64toi32_i32$5; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$4 | 0; - } - - function _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$3 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, i64toi32_i32$5 = 0, var$2 = 0, var$3 = 0, var$4 = 0, var$5 = 0, var$5$hi = 0, var$6 = 0, var$6$hi = 0, i64toi32_i32$6 = 0, $37 = 0, $38 = 0, $39 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0, $44 = 0, var$8$hi = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0, var$7$hi = 0, $49 = 0, $63$hi = 0, $65 = 0, $65$hi = 0, $120$hi = 0, $129$hi = 0, $134$hi = 0, var$8 = 0, $140 = 0, $140$hi = 0, $142$hi = 0, $144 = 0, $144$hi = 0, $151 = 0, $151$hi = 0, $154$hi = 0, var$7 = 0, $165$hi = 0; + } + $1_1 = $7_1; + $7_1 = $8_1; + $4_1 = $10_1; + $5_1 = $1_1; + $6_1 = $0_1; + $5_1 = $7_1 ^ $5_1 | 0; + $7_1 = $4_1 ^ $6_1 | 0; + $4_1 = $1_1; + $9_1 = $7_1 - $6_1 | 0; + $10_1 = $7_1 >>> 0 < $6_1 >>> 0; + $8_1 = $10_1 + $4_1 | 0; + $8_1 = $5_1 - $8_1 | 0; + $7_1 = $9_1; + i64toi32_i32$HIGH_BITS = $8_1; + return $7_1 | 0; + } + + function _ZN17compiler_builtins3int4sdiv3Mod4mod_17h2cbb7bbf36e41d68E($0_1, $1_1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + var $4_1 = 0, $5_1 = 0, $6_1 = 0, $7_1 = 0, $8_1 = 0, $9_1 = 0, $10_1 = 0, $11_1 = 0, $12_1 = 0, $13_1 = 0; + $5_1 = $1_1; + $8_1 = $0_1; + $7_1 = 63; + $6_1 = $7_1 & 31 | 0; + if (32 >>> 0 <= ($7_1 & 63 | 0) >>> 0) { + { + $4_1 = $5_1 >> 31 | 0; + $11_1 = $5_1 >> $6_1 | 0; + } + } else { + { + $4_1 = $5_1 >> $6_1 | 0; + $11_1 = (((1 << $6_1 | 0) - 1 | 0) & $5_1 | 0) << (32 - $6_1 | 0) | 0 | ($8_1 >>> $6_1 | 0) | 0; + } + } + $10_1 = $4_1; + $4_1 = $10_1; + $5_1 = $11_1; + $8_1 = $1_1; + $7_1 = $0_1; + $8_1 = $4_1 ^ $8_1 | 0; + $4_1 = $5_1 ^ $7_1 | 0; + $5_1 = $10_1; + $7_1 = $11_1; + $6_1 = $4_1 - $7_1 | 0; + $0_1 = $4_1 >>> 0 < $7_1 >>> 0; + $9_1 = $0_1 + $5_1 | 0; + $9_1 = $8_1 - $9_1 | 0; + $12_1 = $6_1; + $13_1 = $9_1; + $9_1 = $3_1; + $8_1 = $2_1; + $7_1 = 63; + $5_1 = $7_1 & 31 | 0; + if (32 >>> 0 <= ($7_1 & 63 | 0) >>> 0) { + { + $4_1 = $9_1 >> 31 | 0; + $0_1 = $9_1 >> $5_1 | 0; + } + } else { + { + $4_1 = $9_1 >> $5_1 | 0; + $0_1 = (((1 << $5_1 | 0) - 1 | 0) & $9_1 | 0) << (32 - $5_1 | 0) | 0 | ($8_1 >>> $5_1 | 0) | 0; + } + } + $1_1 = $4_1; + $4_1 = $1_1; + $9_1 = $0_1; + $8_1 = $3_1; + $7_1 = $2_1; + $8_1 = $4_1 ^ $8_1 | 0; + $4_1 = $9_1 ^ $7_1 | 0; + $9_1 = $1_1; + $7_1 = $0_1; + $5_1 = $4_1 - $7_1 | 0; + $0_1 = $4_1 >>> 0 < $7_1 >>> 0; + $6_1 = $0_1 + $9_1 | 0; + $6_1 = $8_1 - $6_1 | 0; + $4_1 = $6_1; + $6_1 = $13_1; + $4_1 = __wasm_i64_urem($12_1 | 0, $6_1 | 0, $5_1 | 0, $4_1 | 0) | 0; + $6_1 = i64toi32_i32$HIGH_BITS; + $8_1 = $4_1; + $4_1 = $10_1; + $7_1 = $11_1; + $4_1 = $6_1 ^ $4_1 | 0; + $6_1 = $8_1 ^ $7_1 | 0; + $8_1 = $10_1; + $9_1 = $6_1 - $7_1 | 0; + $0_1 = $6_1 >>> 0 < $7_1 >>> 0; + $5_1 = $0_1 + $8_1 | 0; + $5_1 = $4_1 - $5_1 | 0; + $6_1 = $9_1; + i64toi32_i32$HIGH_BITS = $5_1; + return $6_1 | 0; + } + + function _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E($0_1, $1_1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + var $4_1 = 0, $5_1 = 0, $6_1 = 0, $7_1 = 0, $8_1 = 0, $9_1 = 0, $10_1 = 0, $11_1 = 0, $12_1 = 0, $13_1 = 0, $14_1 = 0, $15_1 = 0, $16_1 = 0, $17_1 = 0, $18_1 = 0, $19_1 = 0, $20_1 = 0; label$1 : { label$2 : { label$3 : { @@ -3095,394 +2477,335 @@ function asmFunc(global, env, buffer) { label$8 : { label$9 : { label$11 : { - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$2 = var$0; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = 0; - $37 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + $7_1 = $1_1; + $5_1 = $0_1; + $4_1 = 32; + $6_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { + $10_1 = $7_1 >>> $6_1 | 0 } else { - { - i64toi32_i32$1 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $37 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $10_1 = (((1 << $6_1 | 0) - 1 | 0) & $7_1 | 0) << (32 - $6_1 | 0) | 0 | ($5_1 >>> $6_1 | 0) | 0 } - var$2 = $37; - if (var$2) { + if ($10_1) { { - i64toi32_i32$1 = var$1$hi; - var$3 = var$1; - if (!var$3) { + $8_1 = $2_1; + if (!$8_1) { break label$11 } - i64toi32_i32$1 = var$1$hi; - i64toi32_i32$0 = var$1; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $38 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + $9_1 = $3_1; + $7_1 = $2_1; + $4_1 = 32; + $6_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { + $11_1 = $9_1 >>> $6_1 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $38 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$0 >>> i64toi32_i32$4 | 0) | 0; - } + $11_1 = (((1 << $6_1 | 0) - 1 | 0) & $9_1 | 0) << (32 - $6_1 | 0) | 0 | ($7_1 >>> $6_1 | 0) | 0 } - var$4 = $38; - if (!var$4) { + if (!$11_1) { break label$9 } - var$2 = Math_clz32(var$4) - Math_clz32(var$2) | 0; - if (var$2 >>> 0 <= 31 >>> 0) { + $10_1 = Math_clz32($11_1) - Math_clz32($10_1) | 0; + if ($10_1 >>> 0 <= 31 >>> 0) { break label$8 } break label$2; } } - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$1 = var$1; - i64toi32_i32$0 = 1; - i64toi32_i32$3 = 0; - if (i64toi32_i32$2 >>> 0 > i64toi32_i32$0 >>> 0 | ((i64toi32_i32$2 | 0) == (i64toi32_i32$0 | 0) & i64toi32_i32$1 >>> 0 >= i64toi32_i32$3 >>> 0 | 0) | 0) { + $5_1 = $3_1; + $9_1 = $2_1; + $7_1 = 1; + $4_1 = 0; + if ($5_1 >>> 0 > $7_1 >>> 0 | (($5_1 | 0) == ($7_1 | 0) & $9_1 >>> 0 >= $4_1 >>> 0 | 0) | 0) { break label$2 } - i64toi32_i32$1 = var$0$hi; - var$2 = var$0; - i64toi32_i32$1 = var$1$hi; - var$3 = var$1; - var$2 = (var$2 >>> 0) / (var$3 >>> 0) | 0; - i64toi32_i32$1 = 0; - legalfunc$wasm2js_scratch_store_i64(var$0 - Math_imul(var$2, var$3) | 0 | 0, i64toi32_i32$1 | 0); - i64toi32_i32$1 = 0; - i64toi32_i32$2 = var$2; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$2 | 0; + $10_1 = $0_1; + $8_1 = $2_1; + $10_1 = ($10_1 >>> 0) / ($8_1 >>> 0) | 0; + $9_1 = 0; + legalfunc$wasm2js_scratch_store_i64($0_1 - Math_imul($10_1, $8_1) | 0 | 0, $9_1 | 0); + $9_1 = 0; + $5_1 = $10_1; + i64toi32_i32$HIGH_BITS = $9_1; + return $5_1 | 0; } - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$3 = var$1; - i64toi32_i32$1 = 0; - i64toi32_i32$0 = 32; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = 0; - $39 = i64toi32_i32$2 >>> i64toi32_i32$4 | 0; - } + $5_1 = $3_1; + $4_1 = $2_1; + $7_1 = 32; + $6_1 = $7_1 & 31 | 0; + if (32 >>> 0 <= ($7_1 & 63 | 0) >>> 0) { + $8_1 = $5_1 >>> $6_1 | 0 } else { - { - i64toi32_i32$1 = i64toi32_i32$2 >>> i64toi32_i32$4 | 0; - $39 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$2 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$3 >>> i64toi32_i32$4 | 0) | 0; - } + $8_1 = (((1 << $6_1 | 0) - 1 | 0) & $5_1 | 0) << (32 - $6_1 | 0) | 0 | ($4_1 >>> $6_1 | 0) | 0 } - var$3 = $39; - i64toi32_i32$1 = var$0$hi; - if (!var$0) { + if (!$0_1) { break label$7 } - if (!var$3) { + if (!$8_1) { break label$6 } - var$4 = var$3 + -1 | 0; - if (var$4 & var$3 | 0) { + $11_1 = $8_1 + -1 | 0; + if ($11_1 & $8_1 | 0) { break label$6 } - i64toi32_i32$1 = 0; - i64toi32_i32$2 = var$4 & var$2 | 0; - i64toi32_i32$3 = 0; - i64toi32_i32$0 = 32; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $9_1 = 0; + $5_1 = $11_1 & $10_1 | 0; + $7_1 = 32; + $6_1 = $7_1 & 31 | 0; + if (32 >>> 0 <= ($7_1 & 63 | 0) >>> 0) { { - i64toi32_i32$3 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $40 = 0; + $4_1 = $5_1 << $6_1 | 0; + $3_1 = 0; } } else { { - i64toi32_i32$3 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$1 << i64toi32_i32$4 | 0) | 0; - $40 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $4_1 = ((1 << $6_1 | 0) - 1 | 0) & ($5_1 >>> (32 - $6_1 | 0) | 0) | 0 | ($9_1 << $6_1 | 0) | 0; + $3_1 = $5_1 << $6_1 | 0; } } - $63$hi = i64toi32_i32$3; - i64toi32_i32$3 = var$0$hi; - i64toi32_i32$1 = var$0; - i64toi32_i32$2 = 0; - i64toi32_i32$0 = -1; - i64toi32_i32$2 = i64toi32_i32$3 & i64toi32_i32$2 | 0; - $65 = i64toi32_i32$1 & i64toi32_i32$0 | 0; - $65$hi = i64toi32_i32$2; - i64toi32_i32$2 = $63$hi; - i64toi32_i32$3 = $40; - i64toi32_i32$1 = $65$hi; - i64toi32_i32$0 = $65; - i64toi32_i32$1 = i64toi32_i32$2 | i64toi32_i32$1 | 0; - legalfunc$wasm2js_scratch_store_i64(i64toi32_i32$3 | i64toi32_i32$0 | 0 | 0, i64toi32_i32$1 | 0); - i64toi32_i32$1 = 0; - i64toi32_i32$3 = var$2 >>> ((__wasm_ctz_i32(var$3 | 0) | 0) & 31 | 0) | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$3 | 0; + $2_1 = $4_1; + $4_1 = $1_1; + $9_1 = $0_1; + $5_1 = 0; + $7_1 = -1; + $5_1 = $4_1 & $5_1 | 0; + $7_1 = $9_1 & $7_1 | 0; + $9_1 = $5_1; + $5_1 = $2_1; + $4_1 = $3_1; + $9_1 = $5_1 | $9_1 | 0; + legalfunc$wasm2js_scratch_store_i64($4_1 | $7_1 | 0 | 0, $9_1 | 0); + $9_1 = 0; + $4_1 = $10_1 >>> ((__wasm_ctz_i32($8_1 | 0) | 0) & 31 | 0) | 0; + i64toi32_i32$HIGH_BITS = $9_1; + return $4_1 | 0; } - var$4 = var$3 + -1 | 0; - if (!(var$4 & var$3 | 0)) { + $11_1 = $8_1 + -1 | 0; + if (!($11_1 & $8_1 | 0)) { break label$5 } - var$2 = (Math_clz32(var$3) + 33 | 0) - Math_clz32(var$2) | 0; - var$3 = 0 - var$2 | 0; + $10_1 = (Math_clz32($8_1) + 33 | 0) - Math_clz32($10_1) | 0; + $8_1 = 0 - $10_1 | 0; break label$3; } - var$3 = 63 - var$2 | 0; - var$2 = var$2 + 1 | 0; + $8_1 = 63 - $10_1 | 0; + $10_1 = $10_1 + 1 | 0; break label$3; } - var$4 = (var$2 >>> 0) / (var$3 >>> 0) | 0; - i64toi32_i32$3 = 0; - i64toi32_i32$2 = var$2 - Math_imul(var$4, var$3) | 0; - i64toi32_i32$1 = 0; - i64toi32_i32$0 = 32; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $11_1 = ($10_1 >>> 0) / ($8_1 >>> 0) | 0; + $4_1 = 0; + $5_1 = $10_1 - Math_imul($11_1, $8_1) | 0; + $7_1 = 32; + $6_1 = $7_1 & 31 | 0; + if (32 >>> 0 <= ($7_1 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $41 = 0; + $9_1 = $5_1 << $6_1 | 0; + $0_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$3 << i64toi32_i32$4 | 0) | 0; - $41 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $9_1 = ((1 << $6_1 | 0) - 1 | 0) & ($5_1 >>> (32 - $6_1 | 0) | 0) | 0 | ($4_1 << $6_1 | 0) | 0; + $0_1 = $5_1 << $6_1 | 0; } } - legalfunc$wasm2js_scratch_store_i64($41 | 0, i64toi32_i32$1 | 0); - i64toi32_i32$1 = 0; - i64toi32_i32$2 = var$4; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$2 | 0; + legalfunc$wasm2js_scratch_store_i64($0_1 | 0, $9_1 | 0); + $9_1 = 0; + $5_1 = $11_1; + i64toi32_i32$HIGH_BITS = $9_1; + return $5_1 | 0; } - var$2 = Math_clz32(var$3) - Math_clz32(var$2) | 0; - if (var$2 >>> 0 < 31 >>> 0) { + $10_1 = Math_clz32($8_1) - Math_clz32($10_1) | 0; + if ($10_1 >>> 0 < 31 >>> 0) { break label$4 } break label$2; } - i64toi32_i32$2 = var$0$hi; - i64toi32_i32$2 = 0; - legalfunc$wasm2js_scratch_store_i64(var$4 & var$0 | 0 | 0, i64toi32_i32$2 | 0); - if ((var$3 | 0) == (1 | 0)) { + $5_1 = 0; + legalfunc$wasm2js_scratch_store_i64($11_1 & $0_1 | 0 | 0, $5_1 | 0); + if (($8_1 | 0) == (1 | 0)) { break label$1 } - i64toi32_i32$2 = var$0$hi; - i64toi32_i32$2 = 0; - $120$hi = i64toi32_i32$2; - i64toi32_i32$2 = var$0$hi; - i64toi32_i32$3 = var$0; - i64toi32_i32$1 = $120$hi; - i64toi32_i32$0 = __wasm_ctz_i32(var$3 | 0) | 0; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $5_1 = 0; + $9_1 = $5_1; + $5_1 = $1_1; + $4_1 = $0_1; + $7_1 = __wasm_ctz_i32($8_1 | 0) | 0; + $6_1 = $7_1 & 31 | 0; + if (32 >>> 0 <= ($7_1 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = 0; - $42 = i64toi32_i32$2 >>> i64toi32_i32$4 | 0; + $9_1 = 0; + $4_1 = $5_1 >>> $6_1 | 0; } } else { { - i64toi32_i32$1 = i64toi32_i32$2 >>> i64toi32_i32$4 | 0; - $42 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$2 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$3 >>> i64toi32_i32$4 | 0) | 0; + $9_1 = $5_1 >>> $6_1 | 0; + $4_1 = (((1 << $6_1 | 0) - 1 | 0) & $5_1 | 0) << (32 - $6_1 | 0) | 0 | ($4_1 >>> $6_1 | 0) | 0; } } - i64toi32_i32$3 = $42; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$3 | 0; + i64toi32_i32$HIGH_BITS = $9_1; + return $4_1 | 0; } - var$3 = 63 - var$2 | 0; - var$2 = var$2 + 1 | 0; + $8_1 = 63 - $10_1 | 0; + $10_1 = $10_1 + 1 | 0; } - i64toi32_i32$3 = var$0$hi; - i64toi32_i32$3 = 0; - $129$hi = i64toi32_i32$3; - i64toi32_i32$3 = var$0$hi; - i64toi32_i32$2 = var$0; - i64toi32_i32$1 = $129$hi; - i64toi32_i32$0 = var$2 & 63 | 0; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $4_1 = 0; + $9_1 = $4_1; + $4_1 = $1_1; + $5_1 = $0_1; + $7_1 = $10_1 & 63 | 0; + $6_1 = $7_1 & 31 | 0; + if (32 >>> 0 <= ($7_1 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = 0; - $43 = i64toi32_i32$3 >>> i64toi32_i32$4 | 0; + $9_1 = 0; + $13_1 = $4_1 >>> $6_1 | 0; } } else { { - i64toi32_i32$1 = i64toi32_i32$3 >>> i64toi32_i32$4 | 0; - $43 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$3 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; + $9_1 = $4_1 >>> $6_1 | 0; + $13_1 = (((1 << $6_1 | 0) - 1 | 0) & $4_1 | 0) << (32 - $6_1 | 0) | 0 | ($5_1 >>> $6_1 | 0) | 0; } } - var$5 = $43; - var$5$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$1 = 0; - $134$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$3 = var$0; - i64toi32_i32$2 = $134$hi; - i64toi32_i32$0 = var$3 & 63 | 0; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $11_1 = $9_1; + $9_1 = 0; + $5_1 = $9_1; + $9_1 = $1_1; + $4_1 = $0_1; + $7_1 = $8_1 & 63 | 0; + $6_1 = $7_1 & 31 | 0; + if (32 >>> 0 <= ($7_1 & 63 | 0) >>> 0) { { - i64toi32_i32$2 = i64toi32_i32$3 << i64toi32_i32$4 | 0; - $44 = 0; + $5_1 = $4_1 << $6_1 | 0; + $0_1 = 0; } } else { { - i64toi32_i32$2 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$3 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$1 << i64toi32_i32$4 | 0) | 0; - $44 = i64toi32_i32$3 << i64toi32_i32$4 | 0; + $5_1 = ((1 << $6_1 | 0) - 1 | 0) & ($4_1 >>> (32 - $6_1 | 0) | 0) | 0 | ($9_1 << $6_1 | 0) | 0; + $0_1 = $4_1 << $6_1 | 0; } } - var$0 = $44; - var$0$hi = i64toi32_i32$2; + $1_1 = $5_1; label$13 : { - if (var$2) { + if ($10_1) { { - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$1 = var$1; - i64toi32_i32$3 = -1; - i64toi32_i32$0 = -1; - i64toi32_i32$4 = i64toi32_i32$1 + i64toi32_i32$0 | 0; - i64toi32_i32$5 = i64toi32_i32$2 + i64toi32_i32$3 | 0; - if (i64toi32_i32$4 >>> 0 < i64toi32_i32$0 >>> 0) { - i64toi32_i32$5 = i64toi32_i32$5 + 1 | 0 + $5_1 = $3_1; + $9_1 = $2_1; + $4_1 = -1; + $7_1 = -1; + $6_1 = $9_1 + $7_1 | 0; + $8_1 = $5_1 + $4_1 | 0; + if ($6_1 >>> 0 < $7_1 >>> 0) { + $8_1 = $8_1 + 1 | 0 } - var$8 = i64toi32_i32$4; - var$8$hi = i64toi32_i32$5; + $17_1 = $6_1; + $15_1 = $8_1; label$15 : while (1) { - i64toi32_i32$5 = var$5$hi; - i64toi32_i32$2 = var$5; - i64toi32_i32$1 = 0; - i64toi32_i32$0 = 1; - i64toi32_i32$3 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $8_1 = $11_1; + $5_1 = $13_1; + $7_1 = 1; + $4_1 = $7_1 & 31 | 0; + if (32 >>> 0 <= ($7_1 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$3 | 0; - $45 = 0; + $9_1 = $5_1 << $4_1 | 0; + $12_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$3 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$3 | 0) | 0) | 0 | (i64toi32_i32$5 << i64toi32_i32$3 | 0) | 0; - $45 = i64toi32_i32$2 << i64toi32_i32$3 | 0; + $9_1 = ((1 << $4_1 | 0) - 1 | 0) & ($5_1 >>> (32 - $4_1 | 0) | 0) | 0 | ($8_1 << $4_1 | 0) | 0; + $12_1 = $5_1 << $4_1 | 0; } } - $140 = $45; - $140$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$5 = var$0; - i64toi32_i32$2 = 0; - i64toi32_i32$0 = 63; - i64toi32_i32$3 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $11_1 = $9_1; + $9_1 = $1_1; + $8_1 = $0_1; + $7_1 = 63; + $4_1 = $7_1 & 31 | 0; + if (32 >>> 0 <= ($7_1 & 63 | 0) >>> 0) { { - i64toi32_i32$2 = 0; - $46 = i64toi32_i32$1 >>> i64toi32_i32$3 | 0; + $5_1 = 0; + $7_1 = $9_1 >>> $4_1 | 0; } } else { { - i64toi32_i32$2 = i64toi32_i32$1 >>> i64toi32_i32$3 | 0; - $46 = (((1 << i64toi32_i32$3 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$3 | 0) | 0 | (i64toi32_i32$5 >>> i64toi32_i32$3 | 0) | 0; + $5_1 = $9_1 >>> $4_1 | 0; + $7_1 = (((1 << $4_1 | 0) - 1 | 0) & $9_1 | 0) << (32 - $4_1 | 0) | 0 | ($8_1 >>> $4_1 | 0) | 0; } } - $142$hi = i64toi32_i32$2; - i64toi32_i32$2 = $140$hi; - i64toi32_i32$1 = $140; - i64toi32_i32$5 = $142$hi; - i64toi32_i32$0 = $46; - i64toi32_i32$5 = i64toi32_i32$2 | i64toi32_i32$5 | 0; - var$5 = i64toi32_i32$1 | i64toi32_i32$0 | 0; - var$5$hi = i64toi32_i32$5; - $144 = var$5; - $144$hi = i64toi32_i32$5; - i64toi32_i32$5 = var$8$hi; - i64toi32_i32$5 = var$5$hi; - i64toi32_i32$5 = var$8$hi; - i64toi32_i32$2 = var$8; - i64toi32_i32$1 = var$5$hi; - i64toi32_i32$0 = var$5; - i64toi32_i32$3 = i64toi32_i32$2 - i64toi32_i32$0 | 0; - i64toi32_i32$6 = i64toi32_i32$2 >>> 0 < i64toi32_i32$0 >>> 0; - i64toi32_i32$4 = i64toi32_i32$6 + i64toi32_i32$1 | 0; - i64toi32_i32$4 = i64toi32_i32$5 - i64toi32_i32$4 | 0; - i64toi32_i32$5 = i64toi32_i32$3; - i64toi32_i32$2 = 0; - i64toi32_i32$0 = 63; - i64toi32_i32$1 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $8_1 = $5_1; + $5_1 = $11_1; + $9_1 = $12_1; + $8_1 = $5_1 | $8_1 | 0; + $13_1 = $9_1 | $7_1 | 0; + $11_1 = $8_1; + $18_1 = $13_1; + $19_1 = $8_1; + $8_1 = $15_1; + $5_1 = $17_1; + $9_1 = $11_1; + $7_1 = $13_1; + $4_1 = $5_1 - $7_1 | 0; + $5_1 = $5_1 >>> 0 < $7_1 >>> 0; + $6_1 = $5_1 + $9_1 | 0; + $6_1 = $8_1 - $6_1 | 0; + $8_1 = $4_1; + $7_1 = 63; + $9_1 = $7_1 & 31 | 0; + if (32 >>> 0 <= ($7_1 & 63 | 0) >>> 0) { { - i64toi32_i32$2 = i64toi32_i32$4 >> 31 | 0; - $47 = i64toi32_i32$4 >> i64toi32_i32$1 | 0; + $5_1 = $6_1 >> 31 | 0; + $14_1 = $6_1 >> $9_1 | 0; } } else { { - i64toi32_i32$2 = i64toi32_i32$4 >> i64toi32_i32$1 | 0; - $47 = (((1 << i64toi32_i32$1 | 0) - 1 | 0) & i64toi32_i32$4 | 0) << (32 - i64toi32_i32$1 | 0) | 0 | (i64toi32_i32$5 >>> i64toi32_i32$1 | 0) | 0; + $5_1 = $6_1 >> $9_1 | 0; + $14_1 = (((1 << $9_1 | 0) - 1 | 0) & $6_1 | 0) << (32 - $9_1 | 0) | 0 | ($8_1 >>> $9_1 | 0) | 0; } } - var$6 = $47; - var$6$hi = i64toi32_i32$2; - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$2 = var$6$hi; - i64toi32_i32$4 = var$6; - i64toi32_i32$5 = var$1$hi; - i64toi32_i32$0 = var$1; - i64toi32_i32$5 = i64toi32_i32$2 & i64toi32_i32$5 | 0; - $151 = i64toi32_i32$4 & i64toi32_i32$0 | 0; - $151$hi = i64toi32_i32$5; - i64toi32_i32$5 = $144$hi; - i64toi32_i32$2 = $144; - i64toi32_i32$4 = $151$hi; - i64toi32_i32$0 = $151; - i64toi32_i32$1 = i64toi32_i32$2 - i64toi32_i32$0 | 0; - i64toi32_i32$6 = i64toi32_i32$2 >>> 0 < i64toi32_i32$0 >>> 0; - i64toi32_i32$3 = i64toi32_i32$6 + i64toi32_i32$4 | 0; - i64toi32_i32$3 = i64toi32_i32$5 - i64toi32_i32$3 | 0; - var$5 = i64toi32_i32$1; - var$5$hi = i64toi32_i32$3; - i64toi32_i32$3 = var$0$hi; - i64toi32_i32$5 = var$0; - i64toi32_i32$2 = 0; - i64toi32_i32$0 = 1; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $12_1 = $5_1; + $5_1 = $12_1; + $6_1 = $14_1; + $8_1 = $3_1; + $7_1 = $2_1; + $8_1 = $5_1 & $8_1 | 0; + $7_1 = $6_1 & $7_1 | 0; + $6_1 = $8_1; + $8_1 = $19_1; + $5_1 = $18_1; + $9_1 = $5_1 - $7_1 | 0; + $5_1 = $5_1 >>> 0 < $7_1 >>> 0; + $4_1 = $5_1 + $6_1 | 0; + $4_1 = $8_1 - $4_1 | 0; + $13_1 = $9_1; + $11_1 = $4_1; + $4_1 = $1_1; + $8_1 = $0_1; + $7_1 = 1; + $6_1 = $7_1 & 31 | 0; + if (32 >>> 0 <= ($7_1 & 63 | 0) >>> 0) { { - i64toi32_i32$2 = i64toi32_i32$5 << i64toi32_i32$4 | 0; - $48 = 0; + $5_1 = $8_1 << $6_1 | 0; + $4_1 = 0; } } else { { - i64toi32_i32$2 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$5 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$3 << i64toi32_i32$4 | 0) | 0; - $48 = i64toi32_i32$5 << i64toi32_i32$4 | 0; + $5_1 = ((1 << $6_1 | 0) - 1 | 0) & ($8_1 >>> (32 - $6_1 | 0) | 0) | 0 | ($4_1 << $6_1 | 0) | 0; + $4_1 = $8_1 << $6_1 | 0; } } - $154$hi = i64toi32_i32$2; - i64toi32_i32$2 = var$7$hi; - i64toi32_i32$2 = $154$hi; - i64toi32_i32$3 = $48; - i64toi32_i32$5 = var$7$hi; - i64toi32_i32$0 = var$7; - i64toi32_i32$5 = i64toi32_i32$2 | i64toi32_i32$5 | 0; - var$0 = i64toi32_i32$3 | i64toi32_i32$0 | 0; - var$0$hi = i64toi32_i32$5; - i64toi32_i32$5 = var$6$hi; - i64toi32_i32$2 = var$6; - i64toi32_i32$3 = 0; - i64toi32_i32$0 = 1; - i64toi32_i32$3 = i64toi32_i32$5 & i64toi32_i32$3 | 0; - var$6 = i64toi32_i32$2 & i64toi32_i32$0 | 0; - var$6$hi = i64toi32_i32$3; - var$7 = var$6; - var$7$hi = i64toi32_i32$3; - var$2 = var$2 + -1 | 0; - if (var$2) { + $8_1 = $16_1; + $7_1 = $20_1; + $8_1 = $5_1 | $8_1 | 0; + $0_1 = $4_1 | $7_1 | 0; + $1_1 = $8_1; + $8_1 = $12_1; + $5_1 = $14_1; + $4_1 = 0; + $7_1 = 1; + $4_1 = $8_1 & $4_1 | 0; + $14_1 = $5_1 & $7_1 | 0; + $12_1 = $4_1; + $20_1 = $14_1; + $16_1 = $4_1; + $10_1 = $10_1 + -1 | 0; + if ($10_1) { continue label$15 } break label$15; @@ -3491,478 +2814,391 @@ function asmFunc(global, env, buffer) { } } } - i64toi32_i32$3 = var$5$hi; - legalfunc$wasm2js_scratch_store_i64(var$5 | 0, i64toi32_i32$3 | 0); - i64toi32_i32$3 = var$0$hi; - i64toi32_i32$5 = var$0; - i64toi32_i32$2 = 0; - i64toi32_i32$0 = 1; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $4_1 = $11_1; + legalfunc$wasm2js_scratch_store_i64($13_1 | 0, $4_1 | 0); + $4_1 = $1_1; + $8_1 = $0_1; + $7_1 = 1; + $6_1 = $7_1 & 31 | 0; + if (32 >>> 0 <= ($7_1 & 63 | 0) >>> 0) { { - i64toi32_i32$2 = i64toi32_i32$5 << i64toi32_i32$4 | 0; - $49 = 0; + $5_1 = $8_1 << $6_1 | 0; + $4_1 = 0; } } else { { - i64toi32_i32$2 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$5 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$3 << i64toi32_i32$4 | 0) | 0; - $49 = i64toi32_i32$5 << i64toi32_i32$4 | 0; + $5_1 = ((1 << $6_1 | 0) - 1 | 0) & ($8_1 >>> (32 - $6_1 | 0) | 0) | 0 | ($4_1 << $6_1 | 0) | 0; + $4_1 = $8_1 << $6_1 | 0; } } - $165$hi = i64toi32_i32$2; - i64toi32_i32$2 = var$6$hi; - i64toi32_i32$2 = $165$hi; - i64toi32_i32$3 = $49; - i64toi32_i32$5 = var$6$hi; - i64toi32_i32$0 = var$6; - i64toi32_i32$5 = i64toi32_i32$2 | i64toi32_i32$5 | 0; - i64toi32_i32$3 = i64toi32_i32$3 | i64toi32_i32$0 | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$5; - return i64toi32_i32$3 | 0; - } - i64toi32_i32$3 = var$0$hi; - legalfunc$wasm2js_scratch_store_i64(var$0 | 0, i64toi32_i32$3 | 0); - i64toi32_i32$3 = 0; - var$0 = 0; - var$0$hi = i64toi32_i32$3; - } - i64toi32_i32$3 = var$0$hi; - i64toi32_i32$5 = var$0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$3; - return i64toi32_i32$5 | 0; - } - - function __wasm_ctz_i64(var$0, var$0$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$3 = 0, i64toi32_i32$5 = 0, i64toi32_i32$4 = 0, i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, $10_1 = 0, $5$hi = 0, $8$hi = 0; - i64toi32_i32$0 = var$0$hi; - if (!!(var$0 | i64toi32_i32$0 | 0)) { - { - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$2 = var$0; - i64toi32_i32$1 = -1; - i64toi32_i32$3 = -1; - i64toi32_i32$4 = i64toi32_i32$2 + i64toi32_i32$3 | 0; - i64toi32_i32$5 = i64toi32_i32$0 + i64toi32_i32$1 | 0; - if (i64toi32_i32$4 >>> 0 < i64toi32_i32$3 >>> 0) { - i64toi32_i32$5 = i64toi32_i32$5 + 1 | 0 + $8_1 = $12_1; + $7_1 = $14_1; + $8_1 = $5_1 | $8_1 | 0; + $4_1 = $4_1 | $7_1 | 0; + i64toi32_i32$HIGH_BITS = $8_1; + return $4_1 | 0; + } + $4_1 = $1_1; + legalfunc$wasm2js_scratch_store_i64($0_1 | 0, $4_1 | 0); + $4_1 = 0; + $0_1 = 0; + $1_1 = $4_1; + } + $4_1 = $1_1; + $8_1 = $0_1; + i64toi32_i32$HIGH_BITS = $4_1; + return $8_1 | 0; + } + + function __wasm_ctz_i64($0_1, $1_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + var $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0, $6_1 = 0; + $3_1 = $1_1; + if (!!($0_1 | $3_1 | 0)) { + { + $3_1 = $1_1; + $2_1 = $0_1; + $6_1 = -1; + $4_1 = -1; + $2_1 = $2_1 + $4_1 | 0; + $5_1 = $3_1 + $6_1 | 0; + if ($2_1 >>> 0 < $4_1 >>> 0) { + $5_1 = $5_1 + 1 | 0 } - $5$hi = i64toi32_i32$5; - i64toi32_i32$5 = var$0$hi; - i64toi32_i32$5 = $5$hi; - i64toi32_i32$0 = i64toi32_i32$4; - i64toi32_i32$2 = var$0$hi; - i64toi32_i32$3 = var$0; - i64toi32_i32$2 = i64toi32_i32$5 ^ i64toi32_i32$2 | 0; - i64toi32_i32$0 = i64toi32_i32$0 ^ i64toi32_i32$3 | 0; - i64toi32_i32$3 = Math_clz32(i64toi32_i32$2); - i64toi32_i32$5 = 0; - if ((i64toi32_i32$3 | 0) == (32 | 0)) { - $10_1 = Math_clz32(i64toi32_i32$0) + 32 | 0 - } else { - $10_1 = i64toi32_i32$3 + $3_1 = $2_1; + $2_1 = $1_1; + $4_1 = $0_1; + $2_1 = $5_1 ^ $2_1 | 0; + $3_1 = $3_1 ^ $4_1 | 0; + $4_1 = Math_clz32($2_1); + $5_1 = 0; + if (($4_1 | 0) == (32 | 0)) { + $4_1 = Math_clz32($3_1) + 32 | 0 } - $8$hi = i64toi32_i32$5; - i64toi32_i32$5 = 0; - i64toi32_i32$0 = 63; - i64toi32_i32$2 = $8$hi; - i64toi32_i32$3 = $10_1; - i64toi32_i32$1 = i64toi32_i32$0 - i64toi32_i32$3 | 0; - i64toi32_i32$4 = (i64toi32_i32$0 >>> 0 < i64toi32_i32$3 >>> 0) + i64toi32_i32$2 | 0; - i64toi32_i32$4 = i64toi32_i32$5 - i64toi32_i32$4 | 0; - i64toi32_i32$0 = i64toi32_i32$1; - i64toi32_i32$HIGH_BITS = i64toi32_i32$4; - return i64toi32_i32$0 | 0; - } - } - i64toi32_i32$0 = 0; - i64toi32_i32$4 = 64; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$4 | 0; - } - - function __wasm_i64_mul(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$0 = var$1$hi; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = _ZN17compiler_builtins3int3mul3Mul3mul17h070e9a1c69faec5bE(var$0 | 0, i64toi32_i32$0 | 0, var$1 | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; - } - - function __wasm_i64_sdiv(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$0 = var$1$hi; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = _ZN17compiler_builtins3int4sdiv3Div3div17he78fc483e41d7ec7E(var$0 | 0, i64toi32_i32$0 | 0, var$1 | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; - } - - function __wasm_i64_srem(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$0 = var$1$hi; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = _ZN17compiler_builtins3int4sdiv3Mod4mod_17h2cbb7bbf36e41d68E(var$0 | 0, i64toi32_i32$0 | 0, var$1 | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; - } - - function __wasm_i64_udiv(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$0 = var$1$hi; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E(var$0 | 0, i64toi32_i32$0 | 0, var$1 | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; - } - - function __wasm_i64_urem(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$0 = var$1$hi; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E(var$0 | 0, i64toi32_i32$0 | 0, var$1 | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$0 = legalfunc$wasm2js_scratch_load_i64() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$0 | 0; - } - - function __wasm_popcnt_i64(var$0, var$0$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$2 = 0, i64toi32_i32$5 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, i64toi32_i32$1 = 0, var$1$hi = 0, var$1 = 0, $5_1 = 0, $5$hi = 0, $4_1 = 0, $9$hi = 0; + $2_1 = $5_1; + $5_1 = 0; + $3_1 = 63; + $6_1 = $3_1 - $4_1 | 0; + $2_1 = ($3_1 >>> 0 < $4_1 >>> 0) + $2_1 | 0; + $2_1 = $5_1 - $2_1 | 0; + $3_1 = $6_1; + i64toi32_i32$HIGH_BITS = $2_1; + return $3_1 | 0; + } + } + $3_1 = 0; + $2_1 = 64; + i64toi32_i32$HIGH_BITS = $3_1; + return $2_1 | 0; + } + + function __wasm_i64_mul($0_1, $1_1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + $3_1 = _ZN17compiler_builtins3int3mul3Mul3mul17h070e9a1c69faec5bE($0_1 | 0, $1_1 | 0, $2_1 | 0, $3_1 | 0) | 0; + $1_1 = i64toi32_i32$HIGH_BITS; + i64toi32_i32$HIGH_BITS = $1_1; + return $3_1 | 0; + } + + function __wasm_i64_sdiv($0_1, $1_1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + $3_1 = _ZN17compiler_builtins3int4sdiv3Div3div17he78fc483e41d7ec7E($0_1 | 0, $1_1 | 0, $2_1 | 0, $3_1 | 0) | 0; + $1_1 = i64toi32_i32$HIGH_BITS; + i64toi32_i32$HIGH_BITS = $1_1; + return $3_1 | 0; + } + + function __wasm_i64_srem($0_1, $1_1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + $3_1 = _ZN17compiler_builtins3int4sdiv3Mod4mod_17h2cbb7bbf36e41d68E($0_1 | 0, $1_1 | 0, $2_1 | 0, $3_1 | 0) | 0; + $1_1 = i64toi32_i32$HIGH_BITS; + i64toi32_i32$HIGH_BITS = $1_1; + return $3_1 | 0; + } + + function __wasm_i64_udiv($0_1, $1_1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + $3_1 = _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E($0_1 | 0, $1_1 | 0, $2_1 | 0, $3_1 | 0) | 0; + $1_1 = i64toi32_i32$HIGH_BITS; + i64toi32_i32$HIGH_BITS = $1_1; + return $3_1 | 0; + } + + function __wasm_i64_urem($0_1, $1_1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + $3_1 = _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E($0_1 | 0, $1_1 | 0, $2_1 | 0, $3_1 | 0) | 0; + $1_1 = legalfunc$wasm2js_scratch_load_i64() | 0; + $3_1 = i64toi32_i32$HIGH_BITS; + i64toi32_i32$HIGH_BITS = $3_1; + return $1_1 | 0; + } + + function __wasm_popcnt_i64($0_1, $1_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + var $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0, $6_1 = 0, $7_1 = 0, $8_1 = 0; label$1 : { label$2 : while (1) { - i64toi32_i32$0 = var$1$hi; - i64toi32_i32$0 = var$0$hi; - $4_1 = !(var$0 | i64toi32_i32$0 | 0); - i64toi32_i32$0 = var$1$hi; - $5_1 = var$1; - $5$hi = i64toi32_i32$0; - if ($4_1) { + $4_1 = $1_1; + $3_1 = !($0_1 | $4_1 | 0); + $4_1 = $7_1; + $2_1 = $8_1; + if ($3_1) { break label$1 } - i64toi32_i32$0 = $5$hi; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$2 = var$0; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 1; - i64toi32_i32$4 = i64toi32_i32$2 - i64toi32_i32$3 | 0; - i64toi32_i32$5 = (i64toi32_i32$2 >>> 0 < i64toi32_i32$3 >>> 0) + i64toi32_i32$1 | 0; - i64toi32_i32$5 = i64toi32_i32$0 - i64toi32_i32$5 | 0; - $9$hi = i64toi32_i32$5; - i64toi32_i32$5 = i64toi32_i32$0; - i64toi32_i32$0 = i64toi32_i32$2; - i64toi32_i32$2 = $9$hi; - i64toi32_i32$3 = i64toi32_i32$4; - i64toi32_i32$2 = i64toi32_i32$5 & i64toi32_i32$2 | 0; - var$0 = i64toi32_i32$0 & i64toi32_i32$4 | 0; - var$0$hi = i64toi32_i32$2; - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$5 = var$1; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 1; - i64toi32_i32$1 = i64toi32_i32$5 + i64toi32_i32$3 | 0; - i64toi32_i32$4 = i64toi32_i32$2 + i64toi32_i32$0 | 0; - if (i64toi32_i32$1 >>> 0 < i64toi32_i32$3 >>> 0) { - i64toi32_i32$4 = i64toi32_i32$4 + 1 | 0 + $4_1 = $1_1; + $3_1 = $0_1; + $2_1 = 0; + $6_1 = 1; + $5_1 = $3_1 - $6_1 | 0; + $2_1 = ($3_1 >>> 0 < $6_1 >>> 0) + $2_1 | 0; + $2_1 = $4_1 - $2_1 | 0; + $0_1 = $2_1; + $2_1 = $4_1; + $4_1 = $3_1; + $3_1 = $0_1; + $3_1 = $2_1 & $3_1 | 0; + $0_1 = $4_1 & $5_1 | 0; + $1_1 = $3_1; + $3_1 = $7_1; + $2_1 = $8_1; + $4_1 = 0; + $6_1 = 1; + $2_1 = $2_1 + $6_1 | 0; + $5_1 = $3_1 + $4_1 | 0; + if ($2_1 >>> 0 < $6_1 >>> 0) { + $5_1 = $5_1 + 1 | 0 } - var$1 = i64toi32_i32$1; - var$1$hi = i64toi32_i32$4; + $8_1 = $2_1; + $7_1 = $5_1; continue label$2; }; } - i64toi32_i32$4 = $5$hi; - i64toi32_i32$5 = $5_1; - i64toi32_i32$HIGH_BITS = i64toi32_i32$4; - return i64toi32_i32$5 | 0; - } - - function __wasm_rotl_i64(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; - var i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, i64toi32_i32$2 = 0, i64toi32_i32$3 = 0, i64toi32_i32$5 = 0, i64toi32_i32$4 = 0, var$2$hi = 0, var$2 = 0, $19_1 = 0, $20_1 = 0, $21_1 = 0, $22_1 = 0, $6$hi = 0, $8$hi = 0, $10_1 = 0, $10$hi = 0, $15$hi = 0, $17$hi = 0, $19$hi = 0; - i64toi32_i32$0 = var$1$hi; - i64toi32_i32$2 = var$1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 63; - i64toi32_i32$1 = i64toi32_i32$0 & i64toi32_i32$1 | 0; - var$2 = i64toi32_i32$2 & i64toi32_i32$3 | 0; - var$2$hi = i64toi32_i32$1; - i64toi32_i32$1 = -1; - i64toi32_i32$0 = -1; - i64toi32_i32$2 = var$2$hi; - i64toi32_i32$3 = var$2; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $19_1 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } - } else { - { - i64toi32_i32$2 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $19_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$0 >>> i64toi32_i32$4 | 0) | 0; - } - } - $6$hi = i64toi32_i32$2; - i64toi32_i32$2 = var$0$hi; - i64toi32_i32$2 = $6$hi; - i64toi32_i32$1 = $19_1; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$3 = var$0; - i64toi32_i32$0 = i64toi32_i32$2 & i64toi32_i32$0 | 0; - $8$hi = i64toi32_i32$0; - i64toi32_i32$0 = var$2$hi; - i64toi32_i32$0 = $8$hi; - i64toi32_i32$2 = i64toi32_i32$1 & i64toi32_i32$3 | 0; - i64toi32_i32$1 = var$2$hi; - i64toi32_i32$3 = var$2; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $20_1 = 0; - } - } else { - { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $20_1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - } - } - $10_1 = $20_1; - $10$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = 0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$3 = var$1; - i64toi32_i32$4 = i64toi32_i32$0 - i64toi32_i32$3 | 0; - i64toi32_i32$5 = (i64toi32_i32$0 >>> 0 < i64toi32_i32$3 >>> 0) + i64toi32_i32$2 | 0; - i64toi32_i32$5 = i64toi32_i32$1 - i64toi32_i32$5 | 0; - i64toi32_i32$1 = i64toi32_i32$4; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 63; - i64toi32_i32$0 = i64toi32_i32$5 & i64toi32_i32$0 | 0; - var$1 = i64toi32_i32$1 & i64toi32_i32$3 | 0; - var$1$hi = i64toi32_i32$0; - i64toi32_i32$0 = -1; - i64toi32_i32$5 = -1; - i64toi32_i32$1 = var$1$hi; - i64toi32_i32$3 = var$1; - i64toi32_i32$2 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = i64toi32_i32$5 << i64toi32_i32$2 | 0; - $21_1 = 0; - } - } else { - { - i64toi32_i32$1 = ((1 << i64toi32_i32$2 | 0) - 1 | 0) & (i64toi32_i32$5 >>> (32 - i64toi32_i32$2 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$2 | 0) | 0; - $21_1 = i64toi32_i32$5 << i64toi32_i32$2 | 0; - } - } - $15$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$1 = $15$hi; - i64toi32_i32$0 = $21_1; - i64toi32_i32$5 = var$0$hi; - i64toi32_i32$3 = var$0; - i64toi32_i32$5 = i64toi32_i32$1 & i64toi32_i32$5 | 0; - $17$hi = i64toi32_i32$5; - i64toi32_i32$5 = var$1$hi; - i64toi32_i32$5 = $17$hi; - i64toi32_i32$1 = i64toi32_i32$0 & i64toi32_i32$3 | 0; - i64toi32_i32$0 = var$1$hi; - i64toi32_i32$3 = var$1; - i64toi32_i32$2 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = 0; - $22_1 = i64toi32_i32$5 >>> i64toi32_i32$2 | 0; - } - } else { - { - i64toi32_i32$0 = i64toi32_i32$5 >>> i64toi32_i32$2 | 0; - $22_1 = (((1 << i64toi32_i32$2 | 0) - 1 | 0) & i64toi32_i32$5 | 0) << (32 - i64toi32_i32$2 | 0) | 0 | (i64toi32_i32$1 >>> i64toi32_i32$2 | 0) | 0; - } - } - $19$hi = i64toi32_i32$0; - i64toi32_i32$0 = $10$hi; - i64toi32_i32$5 = $10_1; - i64toi32_i32$1 = $19$hi; - i64toi32_i32$3 = $22_1; - i64toi32_i32$1 = i64toi32_i32$0 | i64toi32_i32$1 | 0; - i64toi32_i32$5 = i64toi32_i32$5 | i64toi32_i32$3 | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$5 | 0; - } - - function __wasm_rotr_i64(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$2 = 0, i64toi32_i32$3 = 0, i64toi32_i32$5 = 0, i64toi32_i32$4 = 0, var$2$hi = 0, var$2 = 0, $19_1 = 0, $20_1 = 0, $21_1 = 0, $22_1 = 0, $6$hi = 0, $8$hi = 0, $10_1 = 0, $10$hi = 0, $15$hi = 0, $17$hi = 0, $19$hi = 0; - i64toi32_i32$0 = var$1$hi; - i64toi32_i32$2 = var$1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 63; - i64toi32_i32$1 = i64toi32_i32$0 & i64toi32_i32$1 | 0; - var$2 = i64toi32_i32$2 & i64toi32_i32$3 | 0; - var$2$hi = i64toi32_i32$1; - i64toi32_i32$1 = -1; - i64toi32_i32$0 = -1; - i64toi32_i32$2 = var$2$hi; - i64toi32_i32$3 = var$2; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = i64toi32_i32$0 << i64toi32_i32$4 | 0; - $19_1 = 0; - } - } else { - { - i64toi32_i32$2 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$0 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$1 << i64toi32_i32$4 | 0) | 0; - $19_1 = i64toi32_i32$0 << i64toi32_i32$4 | 0; - } - } - $6$hi = i64toi32_i32$2; - i64toi32_i32$2 = var$0$hi; - i64toi32_i32$2 = $6$hi; - i64toi32_i32$1 = $19_1; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$3 = var$0; - i64toi32_i32$0 = i64toi32_i32$2 & i64toi32_i32$0 | 0; - $8$hi = i64toi32_i32$0; - i64toi32_i32$0 = var$2$hi; - i64toi32_i32$0 = $8$hi; - i64toi32_i32$2 = i64toi32_i32$1 & i64toi32_i32$3 | 0; - i64toi32_i32$1 = var$2$hi; - i64toi32_i32$3 = var$2; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = 0; - $20_1 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } - } else { - { - i64toi32_i32$1 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $20_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } - } - $10_1 = $20_1; - $10$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = 0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$3 = var$1; - i64toi32_i32$4 = i64toi32_i32$0 - i64toi32_i32$3 | 0; - i64toi32_i32$5 = (i64toi32_i32$0 >>> 0 < i64toi32_i32$3 >>> 0) + i64toi32_i32$2 | 0; - i64toi32_i32$5 = i64toi32_i32$1 - i64toi32_i32$5 | 0; - i64toi32_i32$1 = i64toi32_i32$4; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 63; - i64toi32_i32$0 = i64toi32_i32$5 & i64toi32_i32$0 | 0; - var$1 = i64toi32_i32$1 & i64toi32_i32$3 | 0; - var$1$hi = i64toi32_i32$0; - i64toi32_i32$0 = -1; - i64toi32_i32$5 = -1; - i64toi32_i32$1 = var$1$hi; - i64toi32_i32$3 = var$1; - i64toi32_i32$2 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = 0; - $21_1 = i64toi32_i32$0 >>> i64toi32_i32$2 | 0; - } - } else { - { - i64toi32_i32$1 = i64toi32_i32$0 >>> i64toi32_i32$2 | 0; - $21_1 = (((1 << i64toi32_i32$2 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$2 | 0) | 0 | (i64toi32_i32$5 >>> i64toi32_i32$2 | 0) | 0; - } - } - $15$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$1 = $15$hi; - i64toi32_i32$0 = $21_1; - i64toi32_i32$5 = var$0$hi; - i64toi32_i32$3 = var$0; - i64toi32_i32$5 = i64toi32_i32$1 & i64toi32_i32$5 | 0; - $17$hi = i64toi32_i32$5; - i64toi32_i32$5 = var$1$hi; - i64toi32_i32$5 = $17$hi; - i64toi32_i32$1 = i64toi32_i32$0 & i64toi32_i32$3 | 0; - i64toi32_i32$0 = var$1$hi; - i64toi32_i32$3 = var$1; - i64toi32_i32$2 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = i64toi32_i32$1 << i64toi32_i32$2 | 0; - $22_1 = 0; - } - } else { - { - i64toi32_i32$0 = ((1 << i64toi32_i32$2 | 0) - 1 | 0) & (i64toi32_i32$1 >>> (32 - i64toi32_i32$2 | 0) | 0) | 0 | (i64toi32_i32$5 << i64toi32_i32$2 | 0) | 0; - $22_1 = i64toi32_i32$1 << i64toi32_i32$2 | 0; - } - } - $19$hi = i64toi32_i32$0; - i64toi32_i32$0 = $10$hi; - i64toi32_i32$5 = $10_1; - i64toi32_i32$1 = $19$hi; - i64toi32_i32$3 = $22_1; - i64toi32_i32$1 = i64toi32_i32$0 | i64toi32_i32$1 | 0; - i64toi32_i32$5 = i64toi32_i32$5 | i64toi32_i32$3 | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$5 | 0; - } - - function __wasm_ctz_i32(var$0) { - var$0 = var$0 | 0; - if (var$0) { - return 31 - Math_clz32((var$0 + -1 | 0) ^ var$0 | 0) | 0 | 0 + $5_1 = $4_1; + i64toi32_i32$HIGH_BITS = $5_1; + return $2_1 | 0; + } + + function __wasm_rotl_i64($0_1, $1_1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + var $4_1 = 0, $5_1 = 0, $6_1 = 0, $7_1 = 0, $8_1 = 0, $9_1 = 0, $10_1 = 0, $11_1 = 0; + $6_1 = $3_1; + $7_1 = $2_1; + $4_1 = 0; + $5_1 = 63; + $4_1 = $6_1 & $4_1 | 0; + $10_1 = $7_1 & $5_1 | 0; + $8_1 = $4_1; + $4_1 = -1; + $6_1 = -1; + $5_1 = $10_1; + $9_1 = $5_1 & 31 | 0; + if (32 >>> 0 <= ($5_1 & 63 | 0) >>> 0) { + { + $7_1 = 0; + $4_1 = $4_1 >>> $9_1 | 0; + } + } else { + { + $7_1 = $4_1 >>> $9_1 | 0; + $4_1 = (((1 << $9_1 | 0) - 1 | 0) & $4_1 | 0) << (32 - $9_1 | 0) | 0 | ($6_1 >>> $9_1 | 0) | 0; + } + } + $6_1 = $1_1; + $5_1 = $0_1; + $6_1 = $7_1 & $6_1 | 0; + $7_1 = $4_1 & $5_1 | 0; + $5_1 = $10_1; + $9_1 = $5_1 & 31 | 0; + if (32 >>> 0 <= ($5_1 & 63 | 0) >>> 0) { + { + $4_1 = $7_1 << $9_1 | 0; + $10_1 = 0; + } + } else { + { + $4_1 = ((1 << $9_1 | 0) - 1 | 0) & ($7_1 >>> (32 - $9_1 | 0) | 0) | 0 | ($6_1 << $9_1 | 0) | 0; + $10_1 = $7_1 << $9_1 | 0; + } + } + $11_1 = $4_1; + $4_1 = 0; + $6_1 = 0; + $7_1 = $3_1; + $5_1 = $2_1; + $9_1 = $6_1 - $5_1 | 0; + $8_1 = ($6_1 >>> 0 < $5_1 >>> 0) + $7_1 | 0; + $8_1 = $4_1 - $8_1 | 0; + $4_1 = $9_1; + $6_1 = 0; + $5_1 = 63; + $6_1 = $8_1 & $6_1 | 0; + $2_1 = $4_1 & $5_1 | 0; + $3_1 = $6_1; + $6_1 = -1; + $8_1 = -1; + $5_1 = $2_1; + $7_1 = $5_1 & 31 | 0; + if (32 >>> 0 <= ($5_1 & 63 | 0) >>> 0) { + { + $4_1 = $8_1 << $7_1 | 0; + $6_1 = 0; + } + } else { + { + $4_1 = ((1 << $7_1 | 0) - 1 | 0) & ($8_1 >>> (32 - $7_1 | 0) | 0) | 0 | ($6_1 << $7_1 | 0) | 0; + $6_1 = $8_1 << $7_1 | 0; + } + } + $8_1 = $1_1; + $5_1 = $0_1; + $8_1 = $4_1 & $8_1 | 0; + $4_1 = $6_1 & $5_1 | 0; + $5_1 = $2_1; + $7_1 = $5_1 & 31 | 0; + if (32 >>> 0 <= ($5_1 & 63 | 0) >>> 0) { + { + $6_1 = 0; + $5_1 = $8_1 >>> $7_1 | 0; + } + } else { + { + $6_1 = $8_1 >>> $7_1 | 0; + $5_1 = (((1 << $7_1 | 0) - 1 | 0) & $8_1 | 0) << (32 - $7_1 | 0) | 0 | ($4_1 >>> $7_1 | 0) | 0; + } + } + $4_1 = $6_1; + $6_1 = $11_1; + $8_1 = $10_1; + $4_1 = $6_1 | $4_1 | 0; + $8_1 = $8_1 | $5_1 | 0; + i64toi32_i32$HIGH_BITS = $4_1; + return $8_1 | 0; + } + + function __wasm_rotr_i64($0_1, $1_1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + var $4_1 = 0, $5_1 = 0, $6_1 = 0, $7_1 = 0, $8_1 = 0, $9_1 = 0, $10_1 = 0, $11_1 = 0; + $4_1 = $3_1; + $7_1 = $2_1; + $5_1 = 0; + $6_1 = 63; + $5_1 = $4_1 & $5_1 | 0; + $10_1 = $7_1 & $6_1 | 0; + $8_1 = $5_1; + $5_1 = -1; + $4_1 = -1; + $6_1 = $10_1; + $9_1 = $6_1 & 31 | 0; + if (32 >>> 0 <= ($6_1 & 63 | 0) >>> 0) { + { + $7_1 = $4_1 << $9_1 | 0; + $5_1 = 0; + } + } else { + { + $7_1 = ((1 << $9_1 | 0) - 1 | 0) & ($4_1 >>> (32 - $9_1 | 0) | 0) | 0 | ($5_1 << $9_1 | 0) | 0; + $5_1 = $4_1 << $9_1 | 0; + } + } + $4_1 = $1_1; + $6_1 = $0_1; + $4_1 = $7_1 & $4_1 | 0; + $7_1 = $5_1 & $6_1 | 0; + $6_1 = $10_1; + $9_1 = $6_1 & 31 | 0; + if (32 >>> 0 <= ($6_1 & 63 | 0) >>> 0) { + { + $5_1 = 0; + $10_1 = $4_1 >>> $9_1 | 0; + } + } else { + { + $5_1 = $4_1 >>> $9_1 | 0; + $10_1 = (((1 << $9_1 | 0) - 1 | 0) & $4_1 | 0) << (32 - $9_1 | 0) | 0 | ($7_1 >>> $9_1 | 0) | 0; + } + } + $11_1 = $5_1; + $5_1 = 0; + $4_1 = 0; + $7_1 = $3_1; + $6_1 = $2_1; + $9_1 = $4_1 - $6_1 | 0; + $8_1 = ($4_1 >>> 0 < $6_1 >>> 0) + $7_1 | 0; + $8_1 = $5_1 - $8_1 | 0; + $5_1 = $9_1; + $4_1 = 0; + $6_1 = 63; + $4_1 = $8_1 & $4_1 | 0; + $2_1 = $5_1 & $6_1 | 0; + $3_1 = $4_1; + $4_1 = -1; + $8_1 = -1; + $6_1 = $2_1; + $7_1 = $6_1 & 31 | 0; + if (32 >>> 0 <= ($6_1 & 63 | 0) >>> 0) { + { + $5_1 = 0; + $4_1 = $4_1 >>> $7_1 | 0; + } + } else { + { + $5_1 = $4_1 >>> $7_1 | 0; + $4_1 = (((1 << $7_1 | 0) - 1 | 0) & $4_1 | 0) << (32 - $7_1 | 0) | 0 | ($8_1 >>> $7_1 | 0) | 0; + } + } + $8_1 = $1_1; + $6_1 = $0_1; + $8_1 = $5_1 & $8_1 | 0; + $5_1 = $4_1 & $6_1 | 0; + $6_1 = $2_1; + $7_1 = $6_1 & 31 | 0; + if (32 >>> 0 <= ($6_1 & 63 | 0) >>> 0) { + { + $4_1 = $5_1 << $7_1 | 0; + $6_1 = 0; + } + } else { + { + $4_1 = ((1 << $7_1 | 0) - 1 | 0) & ($5_1 >>> (32 - $7_1 | 0) | 0) | 0 | ($8_1 << $7_1 | 0) | 0; + $6_1 = $5_1 << $7_1 | 0; + } + } + $5_1 = $4_1; + $4_1 = $11_1; + $8_1 = $10_1; + $5_1 = $4_1 | $5_1 | 0; + $8_1 = $8_1 | $6_1 | 0; + i64toi32_i32$HIGH_BITS = $5_1; + return $8_1 | 0; + } + + function __wasm_ctz_i32($0_1) { + $0_1 = $0_1 | 0; + if ($0_1) { + return 31 - Math_clz32(($0_1 + -1 | 0) ^ $0_1 | 0) | 0 | 0 } return 32 | 0; } diff --git a/test/wasm2js/int_exprs.2asm.js b/test/wasm2js/int_exprs.2asm.js index dac355ac3..a07c22473 100644 --- a/test/wasm2js/int_exprs.2asm.js +++ b/test/wasm2js/int_exprs.2asm.js @@ -21,103 +21,91 @@ function asmFunc(global, env, buffer) { var abort = env.abort; var nan = global.NaN; var infinity = global.Infinity; - function $0(x, y) { - x = x | 0; - y = y | 0; - return (x + 1 | 0 | 0) < (y + 1 | 0 | 0) | 0; - } - - function $1(x, y) { - x = x | 0; - y = y | 0; - return (x + 1 | 0) >>> 0 < (y + 1 | 0) >>> 0 | 0; - } - - function $2(x, x$hi, y, y$hi) { - x = x | 0; - x$hi = x$hi | 0; - y = y | 0; - y$hi = y$hi | 0; - var i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, i64toi32_i32$5 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$2 = 0, $13 = 0, $14 = 0, $15 = 0, $3_1 = 0, $3$hi = 0, $5$hi = 0; - i64toi32_i32$0 = x$hi; - i64toi32_i32$2 = x; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 1; - i64toi32_i32$4 = i64toi32_i32$2 + i64toi32_i32$3 | 0; - i64toi32_i32$5 = i64toi32_i32$0 + i64toi32_i32$1 | 0; - if (i64toi32_i32$4 >>> 0 < i64toi32_i32$3 >>> 0) { - i64toi32_i32$5 = i64toi32_i32$5 + 1 | 0 - } - $3_1 = i64toi32_i32$4; - $3$hi = i64toi32_i32$5; - i64toi32_i32$5 = y$hi; - i64toi32_i32$0 = y; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 1; - i64toi32_i32$1 = i64toi32_i32$0 + i64toi32_i32$3 | 0; - i64toi32_i32$4 = i64toi32_i32$5 + i64toi32_i32$2 | 0; - if (i64toi32_i32$1 >>> 0 < i64toi32_i32$3 >>> 0) { - i64toi32_i32$4 = i64toi32_i32$4 + 1 | 0 - } - $5$hi = i64toi32_i32$4; - i64toi32_i32$4 = $3$hi; - i64toi32_i32$5 = $3_1; - i64toi32_i32$0 = $5$hi; - i64toi32_i32$3 = i64toi32_i32$1; - if ((i64toi32_i32$4 | 0) < (i64toi32_i32$0 | 0)) { - $13 = 1 + function $0($0_1, $1_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + return ($0_1 + 1 | 0 | 0) < ($1_1 + 1 | 0 | 0) | 0; + } + + function $1($0_1, $1_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + return ($0_1 + 1 | 0) >>> 0 < ($1_1 + 1 | 0) >>> 0 | 0; + } + + function $2($0_1, $1_1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + var $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0; + $6 = 0; + $4 = 1; + $0_1 = $0_1 + $4 | 0; + $5 = $1_1 + $6 | 0; + if ($0_1 >>> 0 < $4 >>> 0) { + $5 = $5 + 1 | 0 + } + $7 = $0_1; + $8 = $5; + $5 = $3_1; + $1_1 = $2_1; + $0_1 = 0; + $4 = 1; + $6 = $1_1 + $4 | 0; + $0_1 = $5 + $0_1 | 0; + if ($6 >>> 0 < $4 >>> 0) { + $0_1 = $0_1 + 1 | 0 + } + $1_1 = $0_1; + $0_1 = $8; + $5 = $7; + $4 = $6; + if (($0_1 | 0) < ($1_1 | 0)) { + $0_1 = 1 } else { - { - if ((i64toi32_i32$4 | 0) <= (i64toi32_i32$0 | 0)) { - { - if (i64toi32_i32$5 >>> 0 >= i64toi32_i32$3 >>> 0) { - $14 = 0 - } else { - $14 = 1 - } - $15 = $14; - } + if (($0_1 | 0) <= ($1_1 | 0)) { + if ($5 >>> 0 >= $4 >>> 0) { + $0_1 = 0 } else { - $15 = 0 + $0_1 = 1 } - $13 = $15; - } - } - return $13 | 0; - } - - function $3(x, x$hi, y, y$hi) { - x = x | 0; - x$hi = x$hi | 0; - y = y | 0; - y$hi = y$hi | 0; - var i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, i64toi32_i32$5 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$2 = 0, $3_1 = 0, $3$hi = 0, $5$hi = 0; - i64toi32_i32$0 = x$hi; - i64toi32_i32$2 = x; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 1; - i64toi32_i32$4 = i64toi32_i32$2 + i64toi32_i32$3 | 0; - i64toi32_i32$5 = i64toi32_i32$0 + i64toi32_i32$1 | 0; - if (i64toi32_i32$4 >>> 0 < i64toi32_i32$3 >>> 0) { - i64toi32_i32$5 = i64toi32_i32$5 + 1 | 0 - } - $3_1 = i64toi32_i32$4; - $3$hi = i64toi32_i32$5; - i64toi32_i32$5 = y$hi; - i64toi32_i32$0 = y; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 1; - i64toi32_i32$1 = i64toi32_i32$0 + i64toi32_i32$3 | 0; - i64toi32_i32$4 = i64toi32_i32$5 + i64toi32_i32$2 | 0; - if (i64toi32_i32$1 >>> 0 < i64toi32_i32$3 >>> 0) { - i64toi32_i32$4 = i64toi32_i32$4 + 1 | 0 - } - $5$hi = i64toi32_i32$4; - i64toi32_i32$4 = $3$hi; - i64toi32_i32$5 = $3_1; - i64toi32_i32$0 = $5$hi; - i64toi32_i32$3 = i64toi32_i32$1; - return i64toi32_i32$4 >>> 0 < i64toi32_i32$0 >>> 0 | ((i64toi32_i32$4 | 0) == (i64toi32_i32$0 | 0) & i64toi32_i32$5 >>> 0 < i64toi32_i32$3 >>> 0 | 0) | 0 | 0; + } else { + $0_1 = 0 + } + } + return $0_1 | 0; + } + + function $3($0_1, $1_1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + var $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0; + $6 = 0; + $4 = 1; + $0_1 = $0_1 + $4 | 0; + $5 = $1_1 + $6 | 0; + if ($0_1 >>> 0 < $4 >>> 0) { + $5 = $5 + 1 | 0 + } + $7 = $0_1; + $8 = $5; + $5 = $3_1; + $1_1 = $2_1; + $0_1 = 0; + $4 = 1; + $6 = $1_1 + $4 | 0; + $0_1 = $5 + $0_1 | 0; + if ($6 >>> 0 < $4 >>> 0) { + $0_1 = $0_1 + 1 | 0 + } + $1_1 = $0_1; + $0_1 = $8; + $5 = $7; + $4 = $6; + return $0_1 >>> 0 < $1_1 >>> 0 | (($0_1 | 0) == ($1_1 | 0) & $5 >>> 0 < $4 >>> 0 | 0) | 0 | 0; } function legalstub$2($0_1, $1_1, $2_1, $3_1) { @@ -125,64 +113,55 @@ function asmFunc(global, env, buffer) { $1_1 = $1_1 | 0; $2_1 = $2_1 | 0; $3_1 = $3_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $19 = 0, $20 = 0, $5 = 0, $5$hi = 0, $8$hi = 0, $9 = 0, $9$hi = 0, $11 = 0, $11$hi = 0, $14$hi = 0, $15 = 0, $15$hi = 0; - i64toi32_i32$0 = 0; - $5 = $0_1; - $5$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $19 = 0; + var $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0; + $6 = 0; + $7 = $0_1; + $8 = $6; + $6 = 0; + $4 = 32; + $5 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { + { + $0_1 = $1_1 << $5 | 0; + $4 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $19 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - } - } - $8$hi = i64toi32_i32$1; - i64toi32_i32$1 = $5$hi; - i64toi32_i32$0 = $5; - i64toi32_i32$2 = $8$hi; - i64toi32_i32$3 = $19; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - $9 = i64toi32_i32$0 | i64toi32_i32$3 | 0; - $9$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - $11 = $2_1; - $11$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$1 = $3_1; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = i64toi32_i32$1 << i64toi32_i32$4 | 0; - $20 = 0; + $0_1 = ((1 << $5 | 0) - 1 | 0) & ($1_1 >>> (32 - $5 | 0) | 0) | 0 | ($6 << $5 | 0) | 0; + $4 = $1_1 << $5 | 0; + } + } + $1_1 = $0_1; + $0_1 = $8; + $6 = $7; + $1_1 = $0_1 | $1_1 | 0; + $9 = $6 | $4 | 0; + $7 = $1_1; + $1_1 = 0; + $8 = $1_1; + $1_1 = 0; + $0_1 = $3_1; + $4 = 32; + $5 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { + { + $6 = $0_1 << $5 | 0; + $4 = 0; } } else { { - i64toi32_i32$0 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$1 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$2 << i64toi32_i32$4 | 0) | 0; - $20 = i64toi32_i32$1 << i64toi32_i32$4 | 0; + $6 = ((1 << $5 | 0) - 1 | 0) & ($0_1 >>> (32 - $5 | 0) | 0) | 0 | ($1_1 << $5 | 0) | 0; + $4 = $0_1 << $5 | 0; } } - $14$hi = i64toi32_i32$0; - i64toi32_i32$0 = $11$hi; - i64toi32_i32$2 = $11; - i64toi32_i32$1 = $14$hi; - i64toi32_i32$3 = $20; - i64toi32_i32$1 = i64toi32_i32$0 | i64toi32_i32$1 | 0; - $15 = i64toi32_i32$2 | i64toi32_i32$3 | 0; - $15$hi = i64toi32_i32$1; - i64toi32_i32$1 = $9$hi; - i64toi32_i32$2 = $15$hi; - return $2($9 | 0, i64toi32_i32$1 | 0, $15 | 0, i64toi32_i32$2 | 0) | 0 | 0; + $0_1 = $6; + $6 = $8; + $1_1 = $2_1; + $0_1 = $6 | $0_1 | 0; + $2_1 = $1_1 | $4 | 0; + $1_1 = $0_1; + $0_1 = $7; + return $2($9 | 0, $0_1 | 0, $2_1 | 0, $1_1 | 0) | 0 | 0; } function legalstub$3($0_1, $1_1, $2_1, $3_1) { @@ -190,64 +169,55 @@ function asmFunc(global, env, buffer) { $1_1 = $1_1 | 0; $2_1 = $2_1 | 0; $3_1 = $3_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $19 = 0, $20 = 0, $5 = 0, $5$hi = 0, $8$hi = 0, $9 = 0, $9$hi = 0, $11 = 0, $11$hi = 0, $14$hi = 0, $15 = 0, $15$hi = 0; - i64toi32_i32$0 = 0; - $5 = $0_1; - $5$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $19 = 0; + var $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0; + $6 = 0; + $7 = $0_1; + $8 = $6; + $6 = 0; + $4 = 32; + $5 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { + { + $0_1 = $1_1 << $5 | 0; + $4 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $19 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - } - } - $8$hi = i64toi32_i32$1; - i64toi32_i32$1 = $5$hi; - i64toi32_i32$0 = $5; - i64toi32_i32$2 = $8$hi; - i64toi32_i32$3 = $19; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - $9 = i64toi32_i32$0 | i64toi32_i32$3 | 0; - $9$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - $11 = $2_1; - $11$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$1 = $3_1; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = i64toi32_i32$1 << i64toi32_i32$4 | 0; - $20 = 0; + $0_1 = ((1 << $5 | 0) - 1 | 0) & ($1_1 >>> (32 - $5 | 0) | 0) | 0 | ($6 << $5 | 0) | 0; + $4 = $1_1 << $5 | 0; + } + } + $1_1 = $0_1; + $0_1 = $8; + $6 = $7; + $1_1 = $0_1 | $1_1 | 0; + $9 = $6 | $4 | 0; + $7 = $1_1; + $1_1 = 0; + $8 = $1_1; + $1_1 = 0; + $0_1 = $3_1; + $4 = 32; + $5 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { + { + $6 = $0_1 << $5 | 0; + $4 = 0; } } else { { - i64toi32_i32$0 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$1 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$2 << i64toi32_i32$4 | 0) | 0; - $20 = i64toi32_i32$1 << i64toi32_i32$4 | 0; + $6 = ((1 << $5 | 0) - 1 | 0) & ($0_1 >>> (32 - $5 | 0) | 0) | 0 | ($1_1 << $5 | 0) | 0; + $4 = $0_1 << $5 | 0; } } - $14$hi = i64toi32_i32$0; - i64toi32_i32$0 = $11$hi; - i64toi32_i32$2 = $11; - i64toi32_i32$1 = $14$hi; - i64toi32_i32$3 = $20; - i64toi32_i32$1 = i64toi32_i32$0 | i64toi32_i32$1 | 0; - $15 = i64toi32_i32$2 | i64toi32_i32$3 | 0; - $15$hi = i64toi32_i32$1; - i64toi32_i32$1 = $9$hi; - i64toi32_i32$2 = $15$hi; - return $3($9 | 0, i64toi32_i32$1 | 0, $15 | 0, i64toi32_i32$2 | 0) | 0 | 0; + $0_1 = $6; + $6 = $8; + $1_1 = $2_1; + $0_1 = $6 | $0_1 | 0; + $2_1 = $1_1 | $4 | 0; + $1_1 = $0_1; + $0_1 = $7; + return $3($9 | 0, $0_1 | 0, $2_1 | 0, $1_1 | 0) | 0 | 0; } var FUNCTION_TABLE = []; @@ -291,68 +261,53 @@ function asmFunc(global, env, buffer) { var infinity = global.Infinity; var setTempRet0 = env.setTempRet0; var i64toi32_i32$HIGH_BITS = 0; - function $0(x, x$hi) { - x = x | 0; - x$hi = x$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = x$hi; - i64toi32_i32$1 = x; - i64toi32_i32$0 = i64toi32_i32$1 >> 31 | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + function $0($0_1, $1) { + $0_1 = $0_1 | 0; + $1 = $1 | 0; + $1 = $0_1 >> 31 | 0; + i64toi32_i32$HIGH_BITS = $1; + return $0_1 | 0; } function legalstub$0($0_1, $1) { $0_1 = $0_1 | 0; $1 = $1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12 = 0, $13 = 0, $4 = 0, $4$hi = 0, $7$hi = 0, $2 = 0, $2$hi = 0; - i64toi32_i32$0 = 0; - $4 = $0_1; - $4$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0; + $3 = 0; + $5 = $0_1; + $6 = $3; + $3 = 0; + $4 = 32; + $2 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $12 = 0; + $0_1 = $1 << $2 | 0; + $4 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $12 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - } - } - $7$hi = i64toi32_i32$1; - i64toi32_i32$1 = $4$hi; - i64toi32_i32$0 = $4; - i64toi32_i32$2 = $7$hi; - i64toi32_i32$3 = $12; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - i64toi32_i32$2 = $0(i64toi32_i32$0 | i64toi32_i32$3 | 0 | 0, i64toi32_i32$2 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $2 = i64toi32_i32$2; - $2$hi = i64toi32_i32$0; - i64toi32_i32$1 = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $13 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + $0_1 = ((1 << $2 | 0) - 1 | 0) & ($1 >>> (32 - $2 | 0) | 0) | 0 | ($3 << $2 | 0) | 0; + $4 = $1 << $2 | 0; + } + } + $1 = $0_1; + $0_1 = $6; + $3 = $5; + $1 = $0_1 | $1 | 0; + $1 = $0($3 | $4 | 0 | 0, $1 | 0) | 0; + $3 = i64toi32_i32$HIGH_BITS; + $6 = $1; + $5 = $3; + $0_1 = $1; + $4 = 32; + $2 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { + $0_1 = $3 >>> $2 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $13 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$1 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $2 | 0) - 1 | 0) & $3 | 0) << (32 - $2 | 0) | 0 | ($0_1 >>> $2 | 0) | 0 } - setTempRet0($13 | 0); - i64toi32_i32$2 = $2$hi; - return $2 | 0; + setTempRet0($0_1 | 0); + return $6 | 0; } var FUNCTION_TABLE = []; @@ -390,67 +345,53 @@ function asmFunc(global, env, buffer) { var infinity = global.Infinity; var setTempRet0 = env.setTempRet0; var i64toi32_i32$HIGH_BITS = 0; - function $0(x, x$hi) { - x = x | 0; - x$hi = x$hi | 0; - var i64toi32_i32$0 = 0; - i64toi32_i32$0 = x$hi; - i64toi32_i32$0 = 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return x | 0; + function $0($0_1, $1) { + $0_1 = $0_1 | 0; + $1 = $1 | 0; + $1 = 0; + i64toi32_i32$HIGH_BITS = $1; + return $0_1 | 0; } function legalstub$0($0_1, $1) { $0_1 = $0_1 | 0; $1 = $1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12 = 0, $13 = 0, $4 = 0, $4$hi = 0, $7$hi = 0, $2 = 0, $2$hi = 0; - i64toi32_i32$0 = 0; - $4 = $0_1; - $4$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0; + $3 = 0; + $5 = $0_1; + $6 = $3; + $3 = 0; + $4 = 32; + $2 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $12 = 0; + $0_1 = $1 << $2 | 0; + $4 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $12 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - } - } - $7$hi = i64toi32_i32$1; - i64toi32_i32$1 = $4$hi; - i64toi32_i32$0 = $4; - i64toi32_i32$2 = $7$hi; - i64toi32_i32$3 = $12; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - i64toi32_i32$2 = $0(i64toi32_i32$0 | i64toi32_i32$3 | 0 | 0, i64toi32_i32$2 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $2 = i64toi32_i32$2; - $2$hi = i64toi32_i32$0; - i64toi32_i32$1 = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $13 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + $0_1 = ((1 << $2 | 0) - 1 | 0) & ($1 >>> (32 - $2 | 0) | 0) | 0 | ($3 << $2 | 0) | 0; + $4 = $1 << $2 | 0; + } + } + $1 = $0_1; + $0_1 = $6; + $3 = $5; + $1 = $0_1 | $1 | 0; + $1 = $0($3 | $4 | 0 | 0, $1 | 0) | 0; + $3 = i64toi32_i32$HIGH_BITS; + $6 = $1; + $5 = $3; + $0_1 = $1; + $4 = 32; + $2 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { + $0_1 = $3 >>> $2 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $13 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$1 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $2 | 0) - 1 | 0) & $3 | 0) << (32 - $2 | 0) | 0 | ($0_1 >>> $2 | 0) | 0 } - setTempRet0($13 | 0); - i64toi32_i32$2 = $2$hi; - return $2 | 0; + setTempRet0($0_1 | 0); + return $6 | 0; } var FUNCTION_TABLE = []; @@ -488,200 +429,164 @@ function asmFunc(global, env, buffer) { var infinity = global.Infinity; var setTempRet0 = env.setTempRet0; var i64toi32_i32$HIGH_BITS = 0; - function $0(x) { - x = x | 0; - return (x << 1 | 0) >> 1 | 0 | 0; + function $0($0_1) { + $0_1 = $0_1 | 0; + return ($0_1 << 1 | 0) >> 1 | 0 | 0; } - function $1(x) { - x = x | 0; - return (x << 1 | 0) >>> 1 | 0 | 0; + function $1($0_1) { + $0_1 = $0_1 | 0; + return ($0_1 << 1 | 0) >>> 1 | 0 | 0; } - function $2(x, x$hi) { - x = x | 0; - x$hi = x$hi | 0; - var i64toi32_i32$4 = 0, i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, i64toi32_i32$3 = 0, $7 = 0, $8 = 0; - i64toi32_i32$0 = x$hi; - i64toi32_i32$2 = x; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 1; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + function $2($0_1, $1_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + var $2_1 = 0, $3_1 = 0, $4 = 0; + $3_1 = 1; + $2_1 = $3_1 & 31 | 0; + if (32 >>> 0 <= ($3_1 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $7 = 0; + $4 = $0_1 << $2_1 | 0; + $1_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $7 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $4 = ((1 << $2_1 | 0) - 1 | 0) & ($0_1 >>> (32 - $2_1 | 0) | 0) | 0 | ($1_1 << $2_1 | 0) | 0; + $1_1 = $0_1 << $2_1 | 0; } } - i64toi32_i32$0 = $7; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 1; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + $3_1 = 1; + $2_1 = $3_1 & 31 | 0; + if (32 >>> 0 <= ($3_1 & 63 | 0) >>> 0) { { - i64toi32_i32$2 = i64toi32_i32$1 >> 31 | 0; - $8 = i64toi32_i32$1 >> i64toi32_i32$4 | 0; + $0_1 = $4 >> 31 | 0; + $1_1 = $4 >> $2_1 | 0; } } else { { - i64toi32_i32$2 = i64toi32_i32$1 >> i64toi32_i32$4 | 0; - $8 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$0 >>> i64toi32_i32$4 | 0) | 0; + $0_1 = $4 >> $2_1 | 0; + $1_1 = (((1 << $2_1 | 0) - 1 | 0) & $4 | 0) << (32 - $2_1 | 0) | 0 | ($1_1 >>> $2_1 | 0) | 0; } } - i64toi32_i32$0 = $8; - i64toi32_i32$HIGH_BITS = i64toi32_i32$2; - return i64toi32_i32$0 | 0; + i64toi32_i32$HIGH_BITS = $0_1; + return $1_1 | 0; } - function $3(x, x$hi) { - x = x | 0; - x$hi = x$hi | 0; - var i64toi32_i32$4 = 0, i64toi32_i32$2 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7 = 0, $8 = 0; - i64toi32_i32$0 = x$hi; - i64toi32_i32$2 = x; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 1; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + function $3($0_1, $1_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + var $2_1 = 0, $3_1 = 0, $4 = 0; + $3_1 = 1; + $2_1 = $3_1 & 31 | 0; + if (32 >>> 0 <= ($3_1 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $7 = 0; + $4 = $0_1 << $2_1 | 0; + $1_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $7 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $4 = ((1 << $2_1 | 0) - 1 | 0) & ($0_1 >>> (32 - $2_1 | 0) | 0) | 0 | ($1_1 << $2_1 | 0) | 0; + $1_1 = $0_1 << $2_1 | 0; } } - i64toi32_i32$0 = $7; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 1; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + $3_1 = 1; + $2_1 = $3_1 & 31 | 0; + if (32 >>> 0 <= ($3_1 & 63 | 0) >>> 0) { { - i64toi32_i32$2 = 0; - $8 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; + $0_1 = 0; + $1_1 = $4 >>> $2_1 | 0; } } else { { - i64toi32_i32$2 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $8 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$0 >>> i64toi32_i32$4 | 0) | 0; + $0_1 = $4 >>> $2_1 | 0; + $1_1 = (((1 << $2_1 | 0) - 1 | 0) & $4 | 0) << (32 - $2_1 | 0) | 0 | ($1_1 >>> $2_1 | 0) | 0; } } - i64toi32_i32$0 = $8; - i64toi32_i32$HIGH_BITS = i64toi32_i32$2; - return i64toi32_i32$0 | 0; + i64toi32_i32$HIGH_BITS = $0_1; + return $1_1 | 0; } function legalstub$2($0_1, $1_1) { $0_1 = $0_1 | 0; $1_1 = $1_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12 = 0, $13 = 0, $4 = 0, $4$hi = 0, $7$hi = 0, $2_1 = 0, $2$hi = 0; - i64toi32_i32$0 = 0; - $4 = $0_1; - $4$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $2_1 = 0, $3_1 = 0, $4 = 0, $5 = 0, $6 = 0; + $3_1 = 0; + $5 = $0_1; + $6 = $3_1; + $3_1 = 0; + $4 = 32; + $2_1 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $12 = 0; + $0_1 = $1_1 << $2_1 | 0; + $4 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $12 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - } - } - $7$hi = i64toi32_i32$1; - i64toi32_i32$1 = $4$hi; - i64toi32_i32$0 = $4; - i64toi32_i32$2 = $7$hi; - i64toi32_i32$3 = $12; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - i64toi32_i32$2 = $2(i64toi32_i32$0 | i64toi32_i32$3 | 0 | 0, i64toi32_i32$2 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $2_1 = i64toi32_i32$2; - $2$hi = i64toi32_i32$0; - i64toi32_i32$1 = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $13 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + $0_1 = ((1 << $2_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $2_1 | 0) | 0) | 0 | ($3_1 << $2_1 | 0) | 0; + $4 = $1_1 << $2_1 | 0; + } + } + $1_1 = $0_1; + $0_1 = $6; + $3_1 = $5; + $1_1 = $0_1 | $1_1 | 0; + $1_1 = $2($3_1 | $4 | 0 | 0, $1_1 | 0) | 0; + $3_1 = i64toi32_i32$HIGH_BITS; + $6 = $1_1; + $5 = $3_1; + $0_1 = $1_1; + $4 = 32; + $2_1 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { + $0_1 = $3_1 >>> $2_1 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $13 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$1 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $2_1 | 0) - 1 | 0) & $3_1 | 0) << (32 - $2_1 | 0) | 0 | ($0_1 >>> $2_1 | 0) | 0 } - setTempRet0($13 | 0); - i64toi32_i32$2 = $2$hi; - return $2_1 | 0; + setTempRet0($0_1 | 0); + return $6 | 0; } function legalstub$3($0_1, $1_1) { $0_1 = $0_1 | 0; $1_1 = $1_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12 = 0, $13 = 0, $4 = 0, $4$hi = 0, $7$hi = 0, $2_1 = 0, $2$hi = 0; - i64toi32_i32$0 = 0; - $4 = $0_1; - $4$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $2_1 = 0, $3_1 = 0, $4 = 0, $5 = 0, $6 = 0; + $3_1 = 0; + $5 = $0_1; + $6 = $3_1; + $3_1 = 0; + $4 = 32; + $2_1 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $12 = 0; + $0_1 = $1_1 << $2_1 | 0; + $4 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $12 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - } - } - $7$hi = i64toi32_i32$1; - i64toi32_i32$1 = $4$hi; - i64toi32_i32$0 = $4; - i64toi32_i32$2 = $7$hi; - i64toi32_i32$3 = $12; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - i64toi32_i32$2 = $3(i64toi32_i32$0 | i64toi32_i32$3 | 0 | 0, i64toi32_i32$2 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $2_1 = i64toi32_i32$2; - $2$hi = i64toi32_i32$0; - i64toi32_i32$1 = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $13 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + $0_1 = ((1 << $2_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $2_1 | 0) | 0) | 0 | ($3_1 << $2_1 | 0) | 0; + $4 = $1_1 << $2_1 | 0; + } + } + $1_1 = $0_1; + $0_1 = $6; + $3_1 = $5; + $1_1 = $0_1 | $1_1 | 0; + $1_1 = $3($3_1 | $4 | 0 | 0, $1_1 | 0) | 0; + $3_1 = i64toi32_i32$HIGH_BITS; + $6 = $1_1; + $5 = $3_1; + $0_1 = $1_1; + $4 = 32; + $2_1 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { + $0_1 = $3_1 >>> $2_1 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $13 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$1 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $2_1 | 0) - 1 | 0) & $3_1 | 0) << (32 - $2_1 | 0) | 0 | ($0_1 >>> $2_1 | 0) | 0 } - setTempRet0($13 | 0); - i64toi32_i32$2 = $2$hi; - return $2_1 | 0; + setTempRet0($0_1 | 0); + return $6 | 0; } var FUNCTION_TABLE = []; @@ -725,200 +630,164 @@ function asmFunc(global, env, buffer) { var infinity = global.Infinity; var setTempRet0 = env.setTempRet0; var i64toi32_i32$HIGH_BITS = 0; - function $0(x) { - x = x | 0; - return (x >> 1 | 0) << 1 | 0 | 0; + function $0($0_1) { + $0_1 = $0_1 | 0; + return ($0_1 >> 1 | 0) << 1 | 0 | 0; } - function $1(x) { - x = x | 0; - return (x >>> 1 | 0) << 1 | 0 | 0; + function $1($0_1) { + $0_1 = $0_1 | 0; + return ($0_1 >>> 1 | 0) << 1 | 0 | 0; } - function $2(x, x$hi) { - x = x | 0; - x$hi = x$hi | 0; - var i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$2 = 0, i64toi32_i32$3 = 0, i64toi32_i32$1 = 0, $7 = 0, $8 = 0; - i64toi32_i32$0 = x$hi; - i64toi32_i32$2 = x; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 1; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + function $2($0_1, $1_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + var $2_1 = 0, $3_1 = 0, $4 = 0; + $3_1 = 1; + $2_1 = $3_1 & 31 | 0; + if (32 >>> 0 <= ($3_1 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$0 >> 31 | 0; - $7 = i64toi32_i32$0 >> i64toi32_i32$4 | 0; + $4 = $1_1 >> 31 | 0; + $1_1 = $1_1 >> $2_1 | 0; } } else { { - i64toi32_i32$1 = i64toi32_i32$0 >> i64toi32_i32$4 | 0; - $7 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; + $4 = $1_1 >> $2_1 | 0; + $1_1 = (((1 << $2_1 | 0) - 1 | 0) & $1_1 | 0) << (32 - $2_1 | 0) | 0 | ($0_1 >>> $2_1 | 0) | 0; } } - i64toi32_i32$0 = $7; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 1; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + $3_1 = 1; + $2_1 = $3_1 & 31 | 0; + if (32 >>> 0 <= ($3_1 & 63 | 0) >>> 0) { { - i64toi32_i32$2 = i64toi32_i32$0 << i64toi32_i32$4 | 0; - $8 = 0; + $0_1 = $1_1 << $2_1 | 0; + $1_1 = 0; } } else { { - i64toi32_i32$2 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$0 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$1 << i64toi32_i32$4 | 0) | 0; - $8 = i64toi32_i32$0 << i64toi32_i32$4 | 0; + $0_1 = ((1 << $2_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $2_1 | 0) | 0) | 0 | ($4 << $2_1 | 0) | 0; + $1_1 = $1_1 << $2_1 | 0; } } - i64toi32_i32$0 = $8; - i64toi32_i32$HIGH_BITS = i64toi32_i32$2; - return i64toi32_i32$0 | 0; + i64toi32_i32$HIGH_BITS = $0_1; + return $1_1 | 0; } - function $3(x, x$hi) { - x = x | 0; - x$hi = x$hi | 0; - var i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$2 = 0, i64toi32_i32$3 = 0, i64toi32_i32$1 = 0, $7 = 0, $8 = 0; - i64toi32_i32$0 = x$hi; - i64toi32_i32$2 = x; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 1; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + function $3($0_1, $1_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + var $2_1 = 0, $3_1 = 0, $4 = 0; + $3_1 = 1; + $2_1 = $3_1 & 31 | 0; + if (32 >>> 0 <= ($3_1 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = 0; - $7 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; + $4 = 0; + $1_1 = $1_1 >>> $2_1 | 0; } } else { { - i64toi32_i32$1 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $7 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; + $4 = $1_1 >>> $2_1 | 0; + $1_1 = (((1 << $2_1 | 0) - 1 | 0) & $1_1 | 0) << (32 - $2_1 | 0) | 0 | ($0_1 >>> $2_1 | 0) | 0; } } - i64toi32_i32$0 = $7; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 1; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + $3_1 = 1; + $2_1 = $3_1 & 31 | 0; + if (32 >>> 0 <= ($3_1 & 63 | 0) >>> 0) { { - i64toi32_i32$2 = i64toi32_i32$0 << i64toi32_i32$4 | 0; - $8 = 0; + $0_1 = $1_1 << $2_1 | 0; + $1_1 = 0; } } else { { - i64toi32_i32$2 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$0 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$1 << i64toi32_i32$4 | 0) | 0; - $8 = i64toi32_i32$0 << i64toi32_i32$4 | 0; + $0_1 = ((1 << $2_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $2_1 | 0) | 0) | 0 | ($4 << $2_1 | 0) | 0; + $1_1 = $1_1 << $2_1 | 0; } } - i64toi32_i32$0 = $8; - i64toi32_i32$HIGH_BITS = i64toi32_i32$2; - return i64toi32_i32$0 | 0; + i64toi32_i32$HIGH_BITS = $0_1; + return $1_1 | 0; } function legalstub$2($0_1, $1_1) { $0_1 = $0_1 | 0; $1_1 = $1_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12 = 0, $13 = 0, $4 = 0, $4$hi = 0, $7$hi = 0, $2_1 = 0, $2$hi = 0; - i64toi32_i32$0 = 0; - $4 = $0_1; - $4$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $2_1 = 0, $3_1 = 0, $4 = 0, $5 = 0, $6 = 0; + $3_1 = 0; + $5 = $0_1; + $6 = $3_1; + $3_1 = 0; + $4 = 32; + $2_1 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $12 = 0; + $0_1 = $1_1 << $2_1 | 0; + $4 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $12 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - } - } - $7$hi = i64toi32_i32$1; - i64toi32_i32$1 = $4$hi; - i64toi32_i32$0 = $4; - i64toi32_i32$2 = $7$hi; - i64toi32_i32$3 = $12; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - i64toi32_i32$2 = $2(i64toi32_i32$0 | i64toi32_i32$3 | 0 | 0, i64toi32_i32$2 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $2_1 = i64toi32_i32$2; - $2$hi = i64toi32_i32$0; - i64toi32_i32$1 = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $13 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + $0_1 = ((1 << $2_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $2_1 | 0) | 0) | 0 | ($3_1 << $2_1 | 0) | 0; + $4 = $1_1 << $2_1 | 0; + } + } + $1_1 = $0_1; + $0_1 = $6; + $3_1 = $5; + $1_1 = $0_1 | $1_1 | 0; + $1_1 = $2($3_1 | $4 | 0 | 0, $1_1 | 0) | 0; + $3_1 = i64toi32_i32$HIGH_BITS; + $6 = $1_1; + $5 = $3_1; + $0_1 = $1_1; + $4 = 32; + $2_1 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { + $0_1 = $3_1 >>> $2_1 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $13 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$1 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $2_1 | 0) - 1 | 0) & $3_1 | 0) << (32 - $2_1 | 0) | 0 | ($0_1 >>> $2_1 | 0) | 0 } - setTempRet0($13 | 0); - i64toi32_i32$2 = $2$hi; - return $2_1 | 0; + setTempRet0($0_1 | 0); + return $6 | 0; } function legalstub$3($0_1, $1_1) { $0_1 = $0_1 | 0; $1_1 = $1_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12 = 0, $13 = 0, $4 = 0, $4$hi = 0, $7$hi = 0, $2_1 = 0, $2$hi = 0; - i64toi32_i32$0 = 0; - $4 = $0_1; - $4$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $2_1 = 0, $3_1 = 0, $4 = 0, $5 = 0, $6 = 0; + $3_1 = 0; + $5 = $0_1; + $6 = $3_1; + $3_1 = 0; + $4 = 32; + $2_1 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $12 = 0; + $0_1 = $1_1 << $2_1 | 0; + $4 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $12 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - } - } - $7$hi = i64toi32_i32$1; - i64toi32_i32$1 = $4$hi; - i64toi32_i32$0 = $4; - i64toi32_i32$2 = $7$hi; - i64toi32_i32$3 = $12; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - i64toi32_i32$2 = $3(i64toi32_i32$0 | i64toi32_i32$3 | 0 | 0, i64toi32_i32$2 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $2_1 = i64toi32_i32$2; - $2$hi = i64toi32_i32$0; - i64toi32_i32$1 = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $13 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + $0_1 = ((1 << $2_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $2_1 | 0) | 0) | 0 | ($3_1 << $2_1 | 0) | 0; + $4 = $1_1 << $2_1 | 0; + } + } + $1_1 = $0_1; + $0_1 = $6; + $3_1 = $5; + $1_1 = $0_1 | $1_1 | 0; + $1_1 = $3($3_1 | $4 | 0 | 0, $1_1 | 0) | 0; + $3_1 = i64toi32_i32$HIGH_BITS; + $6 = $1_1; + $5 = $3_1; + $0_1 = $1_1; + $4 = 32; + $2_1 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { + $0_1 = $3_1 >>> $2_1 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $13 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$1 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $2_1 | 0) - 1 | 0) & $3_1 | 0) << (32 - $2_1 | 0) | 0 | ($0_1 >>> $2_1 | 0) | 0 } - setTempRet0($13 | 0); - i64toi32_i32$2 = $2$hi; - return $2_1 | 0; + setTempRet0($0_1 | 0); + return $6 | 0; } var FUNCTION_TABLE = []; @@ -973,392 +842,317 @@ function asmFunc(global, env, buffer) { var infinity = global.Infinity; var setTempRet0 = env.setTempRet0; var i64toi32_i32$HIGH_BITS = 0; - function $0(x) { - x = x | 0; - return Math_imul((x | 0) / (6 | 0) | 0, 6) | 0; - } - - function $1(x) { - x = x | 0; - return Math_imul((x >>> 0) / (6 >>> 0) | 0, 6) | 0; - } - - function $2(x, x$hi) { - x = x | 0; - x$hi = x$hi | 0; - var i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, $4 = 0; - i64toi32_i32$0 = x$hi; - i64toi32_i32$1 = 0; - i64toi32_i32$1 = __wasm_i64_sdiv(x | 0, i64toi32_i32$0 | 0, 6 | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $4 = i64toi32_i32$1; - i64toi32_i32$1 = 0; - i64toi32_i32$1 = __wasm_i64_mul($4 | 0, i64toi32_i32$0 | 0, 6 | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; - } - - function $3(x, x$hi) { - x = x | 0; - x$hi = x$hi | 0; - var i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, $4 = 0; - i64toi32_i32$0 = x$hi; - i64toi32_i32$1 = 0; - i64toi32_i32$1 = __wasm_i64_udiv(x | 0, i64toi32_i32$0 | 0, 6 | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $4 = i64toi32_i32$1; - i64toi32_i32$1 = 0; - i64toi32_i32$1 = __wasm_i64_mul($4 | 0, i64toi32_i32$0 | 0, 6 | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + function $0($0_1) { + $0_1 = $0_1 | 0; + return Math_imul(($0_1 | 0) / (6 | 0) | 0, 6) | 0; + } + + function $1($0_1) { + $0_1 = $0_1 | 0; + return Math_imul(($0_1 >>> 0) / (6 >>> 0) | 0, 6) | 0; + } + + function $2($0_1, $1_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + var $2_1 = 0; + $2_1 = 0; + $2_1 = __wasm_i64_sdiv($0_1 | 0, $1_1 | 0, 6 | 0, $2_1 | 0) | 0; + $1_1 = i64toi32_i32$HIGH_BITS; + $0_1 = $2_1; + $2_1 = 0; + $2_1 = __wasm_i64_mul($0_1 | 0, $1_1 | 0, 6 | 0, $2_1 | 0) | 0; + $1_1 = i64toi32_i32$HIGH_BITS; + i64toi32_i32$HIGH_BITS = $1_1; + return $2_1 | 0; + } + + function $3($0_1, $1_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + var $2_1 = 0; + $2_1 = 0; + $2_1 = __wasm_i64_udiv($0_1 | 0, $1_1 | 0, 6 | 0, $2_1 | 0) | 0; + $1_1 = i64toi32_i32$HIGH_BITS; + $0_1 = $2_1; + $2_1 = 0; + $2_1 = __wasm_i64_mul($0_1 | 0, $1_1 | 0, 6 | 0, $2_1 | 0) | 0; + $1_1 = i64toi32_i32$HIGH_BITS; + i64toi32_i32$HIGH_BITS = $1_1; + return $2_1 | 0; } function legalstub$2($0_1, $1_1) { $0_1 = $0_1 | 0; $1_1 = $1_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12 = 0, $13 = 0, $4 = 0, $4$hi = 0, $7$hi = 0, $2_1 = 0, $2$hi = 0; - i64toi32_i32$0 = 0; - $4 = $0_1; - $4$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $2_1 = 0, $3_1 = 0, $4 = 0, $5 = 0, $6 = 0; + $3_1 = 0; + $5 = $0_1; + $6 = $3_1; + $3_1 = 0; + $4 = 32; + $2_1 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $12 = 0; + $0_1 = $1_1 << $2_1 | 0; + $4 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $12 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - } - } - $7$hi = i64toi32_i32$1; - i64toi32_i32$1 = $4$hi; - i64toi32_i32$0 = $4; - i64toi32_i32$2 = $7$hi; - i64toi32_i32$3 = $12; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - i64toi32_i32$2 = $2(i64toi32_i32$0 | i64toi32_i32$3 | 0 | 0, i64toi32_i32$2 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $2_1 = i64toi32_i32$2; - $2$hi = i64toi32_i32$0; - i64toi32_i32$1 = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $13 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + $0_1 = ((1 << $2_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $2_1 | 0) | 0) | 0 | ($3_1 << $2_1 | 0) | 0; + $4 = $1_1 << $2_1 | 0; + } + } + $1_1 = $0_1; + $0_1 = $6; + $3_1 = $5; + $1_1 = $0_1 | $1_1 | 0; + $1_1 = $2($3_1 | $4 | 0 | 0, $1_1 | 0) | 0; + $3_1 = i64toi32_i32$HIGH_BITS; + $6 = $1_1; + $5 = $3_1; + $0_1 = $1_1; + $4 = 32; + $2_1 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { + $0_1 = $3_1 >>> $2_1 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $13 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$1 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $2_1 | 0) - 1 | 0) & $3_1 | 0) << (32 - $2_1 | 0) | 0 | ($0_1 >>> $2_1 | 0) | 0 } - setTempRet0($13 | 0); - i64toi32_i32$2 = $2$hi; - return $2_1 | 0; + setTempRet0($0_1 | 0); + return $6 | 0; } function legalstub$3($0_1, $1_1) { $0_1 = $0_1 | 0; $1_1 = $1_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12 = 0, $13 = 0, $4 = 0, $4$hi = 0, $7$hi = 0, $2_1 = 0, $2$hi = 0; - i64toi32_i32$0 = 0; - $4 = $0_1; - $4$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $2_1 = 0, $3_1 = 0, $4 = 0, $5 = 0, $6 = 0; + $3_1 = 0; + $5 = $0_1; + $6 = $3_1; + $3_1 = 0; + $4 = 32; + $2_1 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $12 = 0; + $0_1 = $1_1 << $2_1 | 0; + $4 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $12 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - } - } - $7$hi = i64toi32_i32$1; - i64toi32_i32$1 = $4$hi; - i64toi32_i32$0 = $4; - i64toi32_i32$2 = $7$hi; - i64toi32_i32$3 = $12; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - i64toi32_i32$2 = $3(i64toi32_i32$0 | i64toi32_i32$3 | 0 | 0, i64toi32_i32$2 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $2_1 = i64toi32_i32$2; - $2$hi = i64toi32_i32$0; - i64toi32_i32$1 = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $13 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + $0_1 = ((1 << $2_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $2_1 | 0) | 0) | 0 | ($3_1 << $2_1 | 0) | 0; + $4 = $1_1 << $2_1 | 0; + } + } + $1_1 = $0_1; + $0_1 = $6; + $3_1 = $5; + $1_1 = $0_1 | $1_1 | 0; + $1_1 = $3($3_1 | $4 | 0 | 0, $1_1 | 0) | 0; + $3_1 = i64toi32_i32$HIGH_BITS; + $6 = $1_1; + $5 = $3_1; + $0_1 = $1_1; + $4 = 32; + $2_1 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { + $0_1 = $3_1 >>> $2_1 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $13 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$1 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $2_1 | 0) - 1 | 0) & $3_1 | 0) << (32 - $2_1 | 0) | 0 | ($0_1 >>> $2_1 | 0) | 0 } - setTempRet0($13 | 0); - i64toi32_i32$2 = $2$hi; - return $2_1 | 0; + setTempRet0($0_1 | 0); + return $6 | 0; } - function legalfunc$wasm2js_scratch_store_i64($0_1, $0$hi) { + function legalfunc$wasm2js_scratch_store_i64($0_1, $1_1) { $0_1 = $0_1 | 0; - $0$hi = $0$hi | 0; - var i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $8 = 0, $2_1 = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $0$hi; - $2_1 = $0_1; - i64toi32_i32$2 = $0_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = 0; - $8 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + $1_1 = $1_1 | 0; + var $2_1 = 0, $3_1 = 0, $4 = 0; + $4 = $0_1; + $3_1 = 32; + $2_1 = $3_1 & 31 | 0; + if (32 >>> 0 <= ($3_1 & 63 | 0) >>> 0) { + $0_1 = $1_1 >>> $2_1 | 0 } else { - { - i64toi32_i32$1 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $8 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $2_1 | 0) - 1 | 0) & $1_1 | 0) << (32 - $2_1 | 0) | 0 | ($0_1 >>> $2_1 | 0) | 0 } - legalimport$wasm2js_scratch_store_i64($2_1 | 0, $8 | 0); + legalimport$wasm2js_scratch_store_i64($4 | 0, $0_1 | 0); } - function _ZN17compiler_builtins3int3mul3Mul3mul17h070e9a1c69faec5bE(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; - var i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, var$2 = 0, i64toi32_i32$2 = 0, i64toi32_i32$3 = 0, var$3 = 0, var$4 = 0, var$5 = 0, $21 = 0, $22 = 0, var$6 = 0, $24 = 0, $17 = 0, $18 = 0, $23 = 0, $29 = 0, $45 = 0, $56$hi = 0, $62$hi = 0; - i64toi32_i32$0 = var$1$hi; - var$2 = var$1; - var$4 = var$2 >>> 16 | 0; - i64toi32_i32$0 = var$0$hi; - var$3 = var$0; - var$5 = var$3 >>> 16 | 0; - $17 = Math_imul(var$4, var$5); - $18 = var$2; - i64toi32_i32$2 = var$3; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = 0; - $21 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + function _ZN17compiler_builtins3int3mul3Mul3mul17h070e9a1c69faec5bE($0_1, $1_1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + var $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $10 = 0, $11 = 0; + $5 = $2_1; + $9 = $5 >>> 16 | 0; + $10 = $0_1 >>> 16 | 0; + $11 = Math_imul($9, $10); + $8 = $5; + $6 = $0_1; + $7 = 32; + $4 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { + $1_1 = $1_1 >>> $4 | 0 } else { - { - i64toi32_i32$1 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $21 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } - } - $23 = $17 + Math_imul($18, $21) | 0; - i64toi32_i32$1 = var$1$hi; - i64toi32_i32$0 = var$1; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $22 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; + $1_1 = (((1 << $4 | 0) - 1 | 0) & $1_1 | 0) << (32 - $4 | 0) | 0 | ($6 >>> $4 | 0) | 0 + } + $6 = $11 + Math_imul($8, $1_1) | 0; + $1_1 = $2_1; + $7 = 32; + $4 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { + $1_1 = $3_1 >>> $4 | 0 + } else { + $1_1 = (((1 << $4 | 0) - 1 | 0) & $3_1 | 0) << (32 - $4 | 0) | 0 | ($1_1 >>> $4 | 0) | 0 + } + $1_1 = $6 + Math_imul($1_1, $0_1) | 0; + $5 = $5 & 65535 | 0; + $0_1 = $0_1 & 65535 | 0; + $8 = Math_imul($5, $0_1); + $5 = ($8 >>> 16 | 0) + Math_imul($5, $10) | 0; + $1_1 = $1_1 + ($5 >>> 16 | 0) | 0; + $5 = ($5 & 65535 | 0) + Math_imul($9, $0_1) | 0; + $6 = 0; + $3_1 = $1_1 + ($5 >>> 16 | 0) | 0; + $7 = 32; + $4 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { + { + $1_1 = $3_1 << $4 | 0; + $6 = 0; } } else { { - i64toi32_i32$2 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $22 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$0 >>> i64toi32_i32$4 | 0) | 0; + $1_1 = ((1 << $4 | 0) - 1 | 0) & ($3_1 >>> (32 - $4 | 0) | 0) | 0 | ($6 << $4 | 0) | 0; + $6 = $3_1 << $4 | 0; } } - $29 = $23 + Math_imul($22, var$3) | 0; - var$2 = var$2 & 65535 | 0; - var$3 = var$3 & 65535 | 0; - var$6 = Math_imul(var$2, var$3); - var$2 = (var$6 >>> 16 | 0) + Math_imul(var$2, var$5) | 0; - $45 = $29 + (var$2 >>> 16 | 0) | 0; - var$2 = (var$2 & 65535 | 0) + Math_imul(var$4, var$3) | 0; - i64toi32_i32$2 = 0; - i64toi32_i32$1 = $45 + (var$2 >>> 16 | 0) | 0; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + $0_1 = $1_1; + $1_1 = 0; + $2_1 = $1_1; + $1_1 = $0_1; + $3_1 = $2_1; + $7 = $5 << 16 | 0 | ($8 & 65535 | 0) | 0; + $3_1 = $1_1 | $3_1 | 0; + $6 = $6 | $7 | 0; + i64toi32_i32$HIGH_BITS = $3_1; + return $6 | 0; + } + + function _ZN17compiler_builtins3int4sdiv3Div3div17he78fc483e41d7ec7E($0_1, $1_1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + var $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $10 = 0, $11 = 0, $12 = 0; + $8 = $1_1; + $7 = $0_1; + $6 = 63; + $5 = $6 & 31 | 0; + if (32 >>> 0 <= ($6 & 63 | 0) >>> 0) { { - i64toi32_i32$0 = i64toi32_i32$1 << i64toi32_i32$4 | 0; - $24 = 0; + $4 = $8 >> 31 | 0; + $5 = $8 >> $5 | 0; } } else { { - i64toi32_i32$0 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$1 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$2 << i64toi32_i32$4 | 0) | 0; - $24 = i64toi32_i32$1 << i64toi32_i32$4 | 0; - } - } - $56$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - $62$hi = i64toi32_i32$0; - i64toi32_i32$0 = $56$hi; - i64toi32_i32$2 = $24; - i64toi32_i32$1 = $62$hi; - i64toi32_i32$3 = var$2 << 16 | 0 | (var$6 & 65535 | 0) | 0; - i64toi32_i32$1 = i64toi32_i32$0 | i64toi32_i32$1 | 0; - i64toi32_i32$2 = i64toi32_i32$2 | i64toi32_i32$3 | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$2 | 0; - } - - function _ZN17compiler_builtins3int4sdiv3Div3div17he78fc483e41d7ec7E(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; - var i64toi32_i32$1 = 0, i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, i64toi32_i32$0 = 0, i64toi32_i32$5 = 0, var$2 = 0, var$2$hi = 0, i64toi32_i32$6 = 0, $21 = 0, $22 = 0, $23 = 0, $7$hi = 0, $9 = 0, $9$hi = 0, $14$hi = 0, $16$hi = 0, $17 = 0, $17$hi = 0, $23$hi = 0; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$2 = var$0; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 63; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = i64toi32_i32$0 >> 31 | 0; - $21 = i64toi32_i32$0 >> i64toi32_i32$4 | 0; + $4 = $8 >> $5 | 0; + $5 = (((1 << $5 | 0) - 1 | 0) & $8 | 0) << (32 - $5 | 0) | 0 | ($7 >>> $5 | 0) | 0; + } + } + $10 = $4; + $4 = $10; + $8 = $5; + $7 = $1_1; + $6 = $0_1; + $7 = $4 ^ $7 | 0; + $4 = $8 ^ $6 | 0; + $8 = $10; + $6 = $5; + $5 = $4 - $6 | 0; + $10 = $4 >>> 0 < $6 >>> 0; + $9 = $10 + $8 | 0; + $9 = $7 - $9 | 0; + $11 = $5; + $12 = $9; + $9 = $3_1; + $7 = $2_1; + $6 = 63; + $8 = $6 & 31 | 0; + if (32 >>> 0 <= ($6 & 63 | 0) >>> 0) { + { + $4 = $9 >> 31 | 0; + $5 = $9 >> $8 | 0; } } else { { - i64toi32_i32$1 = i64toi32_i32$0 >> i64toi32_i32$4 | 0; - $21 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } - } - var$2 = $21; - var$2$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$1 = var$2$hi; - i64toi32_i32$0 = var$2; - i64toi32_i32$2 = var$0$hi; - i64toi32_i32$3 = var$0; - i64toi32_i32$2 = i64toi32_i32$1 ^ i64toi32_i32$2 | 0; - $7$hi = i64toi32_i32$2; - i64toi32_i32$2 = i64toi32_i32$1; - i64toi32_i32$2 = $7$hi; - i64toi32_i32$1 = i64toi32_i32$0 ^ i64toi32_i32$3 | 0; - i64toi32_i32$0 = var$2$hi; - i64toi32_i32$3 = var$2; - i64toi32_i32$4 = i64toi32_i32$1 - i64toi32_i32$3 | 0; - i64toi32_i32$6 = i64toi32_i32$1 >>> 0 < i64toi32_i32$3 >>> 0; - i64toi32_i32$5 = i64toi32_i32$6 + i64toi32_i32$0 | 0; - i64toi32_i32$5 = i64toi32_i32$2 - i64toi32_i32$5 | 0; - $9 = i64toi32_i32$4; - $9$hi = i64toi32_i32$5; - i64toi32_i32$5 = var$1$hi; - i64toi32_i32$2 = var$1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 63; - i64toi32_i32$0 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = i64toi32_i32$5 >> 31 | 0; - $22 = i64toi32_i32$5 >> i64toi32_i32$0 | 0; + $4 = $9 >> $8 | 0; + $5 = (((1 << $8 | 0) - 1 | 0) & $9 | 0) << (32 - $8 | 0) | 0 | ($7 >>> $8 | 0) | 0; + } + } + $10 = $4; + $4 = $10; + $9 = $5; + $7 = $3_1; + $6 = $2_1; + $7 = $4 ^ $7 | 0; + $4 = $9 ^ $6 | 0; + $9 = $10; + $6 = $5; + $8 = $4 - $6 | 0; + $10 = $4 >>> 0 < $6 >>> 0; + $5 = $10 + $9 | 0; + $5 = $7 - $5 | 0; + $4 = $5; + $5 = $12; + $4 = __wasm_i64_udiv($11 | 0, $5 | 0, $8 | 0, $4 | 0) | 0; + $5 = i64toi32_i32$HIGH_BITS; + $10 = $4; + $8 = $5; + $5 = $3_1; + $7 = $2_1; + $4 = $1_1; + $6 = $0_1; + $4 = $5 ^ $4 | 0; + $5 = $7 ^ $6 | 0; + $6 = 63; + $9 = $6 & 31 | 0; + if (32 >>> 0 <= ($6 & 63 | 0) >>> 0) { + { + $7 = $4 >> 31 | 0; + $0_1 = $4 >> $9 | 0; } } else { { - i64toi32_i32$1 = i64toi32_i32$5 >> i64toi32_i32$0 | 0; - $22 = (((1 << i64toi32_i32$0 | 0) - 1 | 0) & i64toi32_i32$5 | 0) << (32 - i64toi32_i32$0 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$0 | 0) | 0; - } - } - var$2 = $22; - var$2$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = var$2$hi; - i64toi32_i32$5 = var$2; - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$3 = var$1; - i64toi32_i32$2 = i64toi32_i32$1 ^ i64toi32_i32$2 | 0; - $14$hi = i64toi32_i32$2; - i64toi32_i32$2 = i64toi32_i32$1; - i64toi32_i32$2 = $14$hi; - i64toi32_i32$1 = i64toi32_i32$5 ^ i64toi32_i32$3 | 0; - i64toi32_i32$5 = var$2$hi; - i64toi32_i32$3 = var$2; - i64toi32_i32$0 = i64toi32_i32$1 - i64toi32_i32$3 | 0; - i64toi32_i32$6 = i64toi32_i32$1 >>> 0 < i64toi32_i32$3 >>> 0; - i64toi32_i32$4 = i64toi32_i32$6 + i64toi32_i32$5 | 0; - i64toi32_i32$4 = i64toi32_i32$2 - i64toi32_i32$4 | 0; - $16$hi = i64toi32_i32$4; - i64toi32_i32$4 = $9$hi; - i64toi32_i32$1 = $16$hi; - i64toi32_i32$1 = __wasm_i64_udiv($9 | 0, i64toi32_i32$4 | 0, i64toi32_i32$0 | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$4 = i64toi32_i32$HIGH_BITS; - $17 = i64toi32_i32$1; - $17$hi = i64toi32_i32$4; - i64toi32_i32$4 = var$1$hi; - i64toi32_i32$4 = var$0$hi; - i64toi32_i32$4 = var$1$hi; - i64toi32_i32$2 = var$1; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$3 = var$0; - i64toi32_i32$1 = i64toi32_i32$4 ^ i64toi32_i32$1 | 0; - i64toi32_i32$4 = i64toi32_i32$2 ^ i64toi32_i32$3 | 0; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 63; - i64toi32_i32$5 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = i64toi32_i32$1 >> 31 | 0; - $23 = i64toi32_i32$1 >> i64toi32_i32$5 | 0; + $7 = $4 >> $9 | 0; + $0_1 = (((1 << $9 | 0) - 1 | 0) & $4 | 0) << (32 - $9 | 0) | 0 | ($5 >>> $9 | 0) | 0; } - } else { - { - i64toi32_i32$2 = i64toi32_i32$1 >> i64toi32_i32$5 | 0; - $23 = (((1 << i64toi32_i32$5 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$5 | 0) | 0 | (i64toi32_i32$4 >>> i64toi32_i32$5 | 0) | 0; - } - } - var$0 = $23; - var$0$hi = i64toi32_i32$2; - i64toi32_i32$2 = $17$hi; - i64toi32_i32$1 = $17; - i64toi32_i32$4 = var$0$hi; - i64toi32_i32$3 = var$0; - i64toi32_i32$4 = i64toi32_i32$2 ^ i64toi32_i32$4 | 0; - $23$hi = i64toi32_i32$4; - i64toi32_i32$4 = var$0$hi; - i64toi32_i32$4 = $23$hi; - i64toi32_i32$2 = i64toi32_i32$1 ^ i64toi32_i32$3 | 0; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$5 = i64toi32_i32$2 - i64toi32_i32$3 | 0; - i64toi32_i32$6 = i64toi32_i32$2 >>> 0 < i64toi32_i32$3 >>> 0; - i64toi32_i32$0 = i64toi32_i32$6 + i64toi32_i32$1 | 0; - i64toi32_i32$0 = i64toi32_i32$4 - i64toi32_i32$0 | 0; - i64toi32_i32$2 = i64toi32_i32$5; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$2 | 0; - } - - function _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$3 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, i64toi32_i32$5 = 0, var$2 = 0, var$3 = 0, var$4 = 0, var$5 = 0, var$5$hi = 0, var$6 = 0, var$6$hi = 0, i64toi32_i32$6 = 0, $37 = 0, $38 = 0, $39 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0, $44 = 0, var$8$hi = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0, var$7$hi = 0, $49 = 0, $63$hi = 0, $65 = 0, $65$hi = 0, $120$hi = 0, $129$hi = 0, $134$hi = 0, var$8 = 0, $140 = 0, $140$hi = 0, $142$hi = 0, $144 = 0, $144$hi = 0, $151 = 0, $151$hi = 0, $154$hi = 0, var$7 = 0, $165$hi = 0; + } + $1_1 = $7; + $7 = $8; + $4 = $10; + $5 = $1_1; + $6 = $0_1; + $5 = $7 ^ $5 | 0; + $7 = $4 ^ $6 | 0; + $4 = $1_1; + $9 = $7 - $6 | 0; + $10 = $7 >>> 0 < $6 >>> 0; + $8 = $10 + $4 | 0; + $8 = $5 - $8 | 0; + $7 = $9; + i64toi32_i32$HIGH_BITS = $8; + return $7 | 0; + } + + function _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E($0_1, $1_1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + var $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $20 = 0; label$1 : { label$2 : { label$3 : { @@ -1369,394 +1163,335 @@ function asmFunc(global, env, buffer) { label$8 : { label$9 : { label$11 : { - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$2 = var$0; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = 0; - $37 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + $7 = $1_1; + $5 = $0_1; + $4 = 32; + $6 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { + $10 = $7 >>> $6 | 0 } else { - { - i64toi32_i32$1 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $37 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $10 = (((1 << $6 | 0) - 1 | 0) & $7 | 0) << (32 - $6 | 0) | 0 | ($5 >>> $6 | 0) | 0 } - var$2 = $37; - if (var$2) { + if ($10) { { - i64toi32_i32$1 = var$1$hi; - var$3 = var$1; - if (!var$3) { + $8 = $2_1; + if (!$8) { break label$11 } - i64toi32_i32$1 = var$1$hi; - i64toi32_i32$0 = var$1; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $38 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + $9 = $3_1; + $7 = $2_1; + $4 = 32; + $6 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { + $11 = $9 >>> $6 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $38 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$0 >>> i64toi32_i32$4 | 0) | 0; - } + $11 = (((1 << $6 | 0) - 1 | 0) & $9 | 0) << (32 - $6 | 0) | 0 | ($7 >>> $6 | 0) | 0 } - var$4 = $38; - if (!var$4) { + if (!$11) { break label$9 } - var$2 = Math_clz32(var$4) - Math_clz32(var$2) | 0; - if (var$2 >>> 0 <= 31 >>> 0) { + $10 = Math_clz32($11) - Math_clz32($10) | 0; + if ($10 >>> 0 <= 31 >>> 0) { break label$8 } break label$2; } } - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$1 = var$1; - i64toi32_i32$0 = 1; - i64toi32_i32$3 = 0; - if (i64toi32_i32$2 >>> 0 > i64toi32_i32$0 >>> 0 | ((i64toi32_i32$2 | 0) == (i64toi32_i32$0 | 0) & i64toi32_i32$1 >>> 0 >= i64toi32_i32$3 >>> 0 | 0) | 0) { + $5 = $3_1; + $9 = $2_1; + $7 = 1; + $4 = 0; + if ($5 >>> 0 > $7 >>> 0 | (($5 | 0) == ($7 | 0) & $9 >>> 0 >= $4 >>> 0 | 0) | 0) { break label$2 } - i64toi32_i32$1 = var$0$hi; - var$2 = var$0; - i64toi32_i32$1 = var$1$hi; - var$3 = var$1; - var$2 = (var$2 >>> 0) / (var$3 >>> 0) | 0; - i64toi32_i32$1 = 0; - legalfunc$wasm2js_scratch_store_i64(var$0 - Math_imul(var$2, var$3) | 0 | 0, i64toi32_i32$1 | 0); - i64toi32_i32$1 = 0; - i64toi32_i32$2 = var$2; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$2 | 0; + $10 = $0_1; + $8 = $2_1; + $10 = ($10 >>> 0) / ($8 >>> 0) | 0; + $9 = 0; + legalfunc$wasm2js_scratch_store_i64($0_1 - Math_imul($10, $8) | 0 | 0, $9 | 0); + $9 = 0; + $5 = $10; + i64toi32_i32$HIGH_BITS = $9; + return $5 | 0; } - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$3 = var$1; - i64toi32_i32$1 = 0; - i64toi32_i32$0 = 32; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = 0; - $39 = i64toi32_i32$2 >>> i64toi32_i32$4 | 0; - } + $5 = $3_1; + $4 = $2_1; + $7 = 32; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { + $8 = $5 >>> $6 | 0 } else { - { - i64toi32_i32$1 = i64toi32_i32$2 >>> i64toi32_i32$4 | 0; - $39 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$2 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$3 >>> i64toi32_i32$4 | 0) | 0; - } + $8 = (((1 << $6 | 0) - 1 | 0) & $5 | 0) << (32 - $6 | 0) | 0 | ($4 >>> $6 | 0) | 0 } - var$3 = $39; - i64toi32_i32$1 = var$0$hi; - if (!var$0) { + if (!$0_1) { break label$7 } - if (!var$3) { + if (!$8) { break label$6 } - var$4 = var$3 + -1 | 0; - if (var$4 & var$3 | 0) { + $11 = $8 + -1 | 0; + if ($11 & $8 | 0) { break label$6 } - i64toi32_i32$1 = 0; - i64toi32_i32$2 = var$4 & var$2 | 0; - i64toi32_i32$3 = 0; - i64toi32_i32$0 = 32; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $9 = 0; + $5 = $11 & $10 | 0; + $7 = 32; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$3 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $40 = 0; + $4 = $5 << $6 | 0; + $3_1 = 0; } } else { { - i64toi32_i32$3 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$1 << i64toi32_i32$4 | 0) | 0; - $40 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $4 = ((1 << $6 | 0) - 1 | 0) & ($5 >>> (32 - $6 | 0) | 0) | 0 | ($9 << $6 | 0) | 0; + $3_1 = $5 << $6 | 0; } } - $63$hi = i64toi32_i32$3; - i64toi32_i32$3 = var$0$hi; - i64toi32_i32$1 = var$0; - i64toi32_i32$2 = 0; - i64toi32_i32$0 = -1; - i64toi32_i32$2 = i64toi32_i32$3 & i64toi32_i32$2 | 0; - $65 = i64toi32_i32$1 & i64toi32_i32$0 | 0; - $65$hi = i64toi32_i32$2; - i64toi32_i32$2 = $63$hi; - i64toi32_i32$3 = $40; - i64toi32_i32$1 = $65$hi; - i64toi32_i32$0 = $65; - i64toi32_i32$1 = i64toi32_i32$2 | i64toi32_i32$1 | 0; - legalfunc$wasm2js_scratch_store_i64(i64toi32_i32$3 | i64toi32_i32$0 | 0 | 0, i64toi32_i32$1 | 0); - i64toi32_i32$1 = 0; - i64toi32_i32$3 = var$2 >>> ((__wasm_ctz_i32(var$3 | 0) | 0) & 31 | 0) | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$3 | 0; + $2_1 = $4; + $4 = $1_1; + $9 = $0_1; + $5 = 0; + $7 = -1; + $5 = $4 & $5 | 0; + $7 = $9 & $7 | 0; + $9 = $5; + $5 = $2_1; + $4 = $3_1; + $9 = $5 | $9 | 0; + legalfunc$wasm2js_scratch_store_i64($4 | $7 | 0 | 0, $9 | 0); + $9 = 0; + $4 = $10 >>> ((__wasm_ctz_i32($8 | 0) | 0) & 31 | 0) | 0; + i64toi32_i32$HIGH_BITS = $9; + return $4 | 0; } - var$4 = var$3 + -1 | 0; - if (!(var$4 & var$3 | 0)) { + $11 = $8 + -1 | 0; + if (!($11 & $8 | 0)) { break label$5 } - var$2 = (Math_clz32(var$3) + 33 | 0) - Math_clz32(var$2) | 0; - var$3 = 0 - var$2 | 0; + $10 = (Math_clz32($8) + 33 | 0) - Math_clz32($10) | 0; + $8 = 0 - $10 | 0; break label$3; } - var$3 = 63 - var$2 | 0; - var$2 = var$2 + 1 | 0; + $8 = 63 - $10 | 0; + $10 = $10 + 1 | 0; break label$3; } - var$4 = (var$2 >>> 0) / (var$3 >>> 0) | 0; - i64toi32_i32$3 = 0; - i64toi32_i32$2 = var$2 - Math_imul(var$4, var$3) | 0; - i64toi32_i32$1 = 0; - i64toi32_i32$0 = 32; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $11 = ($10 >>> 0) / ($8 >>> 0) | 0; + $4 = 0; + $5 = $10 - Math_imul($11, $8) | 0; + $7 = 32; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $41 = 0; + $9 = $5 << $6 | 0; + $0_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$3 << i64toi32_i32$4 | 0) | 0; - $41 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $9 = ((1 << $6 | 0) - 1 | 0) & ($5 >>> (32 - $6 | 0) | 0) | 0 | ($4 << $6 | 0) | 0; + $0_1 = $5 << $6 | 0; } } - legalfunc$wasm2js_scratch_store_i64($41 | 0, i64toi32_i32$1 | 0); - i64toi32_i32$1 = 0; - i64toi32_i32$2 = var$4; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$2 | 0; + legalfunc$wasm2js_scratch_store_i64($0_1 | 0, $9 | 0); + $9 = 0; + $5 = $11; + i64toi32_i32$HIGH_BITS = $9; + return $5 | 0; } - var$2 = Math_clz32(var$3) - Math_clz32(var$2) | 0; - if (var$2 >>> 0 < 31 >>> 0) { + $10 = Math_clz32($8) - Math_clz32($10) | 0; + if ($10 >>> 0 < 31 >>> 0) { break label$4 } break label$2; } - i64toi32_i32$2 = var$0$hi; - i64toi32_i32$2 = 0; - legalfunc$wasm2js_scratch_store_i64(var$4 & var$0 | 0 | 0, i64toi32_i32$2 | 0); - if ((var$3 | 0) == (1 | 0)) { + $5 = 0; + legalfunc$wasm2js_scratch_store_i64($11 & $0_1 | 0 | 0, $5 | 0); + if (($8 | 0) == (1 | 0)) { break label$1 } - i64toi32_i32$2 = var$0$hi; - i64toi32_i32$2 = 0; - $120$hi = i64toi32_i32$2; - i64toi32_i32$2 = var$0$hi; - i64toi32_i32$3 = var$0; - i64toi32_i32$1 = $120$hi; - i64toi32_i32$0 = __wasm_ctz_i32(var$3 | 0) | 0; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $5 = 0; + $9 = $5; + $5 = $1_1; + $4 = $0_1; + $7 = __wasm_ctz_i32($8 | 0) | 0; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = 0; - $42 = i64toi32_i32$2 >>> i64toi32_i32$4 | 0; + $9 = 0; + $4 = $5 >>> $6 | 0; } } else { { - i64toi32_i32$1 = i64toi32_i32$2 >>> i64toi32_i32$4 | 0; - $42 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$2 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$3 >>> i64toi32_i32$4 | 0) | 0; + $9 = $5 >>> $6 | 0; + $4 = (((1 << $6 | 0) - 1 | 0) & $5 | 0) << (32 - $6 | 0) | 0 | ($4 >>> $6 | 0) | 0; } } - i64toi32_i32$3 = $42; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$3 | 0; + i64toi32_i32$HIGH_BITS = $9; + return $4 | 0; } - var$3 = 63 - var$2 | 0; - var$2 = var$2 + 1 | 0; + $8 = 63 - $10 | 0; + $10 = $10 + 1 | 0; } - i64toi32_i32$3 = var$0$hi; - i64toi32_i32$3 = 0; - $129$hi = i64toi32_i32$3; - i64toi32_i32$3 = var$0$hi; - i64toi32_i32$2 = var$0; - i64toi32_i32$1 = $129$hi; - i64toi32_i32$0 = var$2 & 63 | 0; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $4 = 0; + $9 = $4; + $4 = $1_1; + $5 = $0_1; + $7 = $10 & 63 | 0; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = 0; - $43 = i64toi32_i32$3 >>> i64toi32_i32$4 | 0; + $9 = 0; + $13 = $4 >>> $6 | 0; } } else { { - i64toi32_i32$1 = i64toi32_i32$3 >>> i64toi32_i32$4 | 0; - $43 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$3 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; + $9 = $4 >>> $6 | 0; + $13 = (((1 << $6 | 0) - 1 | 0) & $4 | 0) << (32 - $6 | 0) | 0 | ($5 >>> $6 | 0) | 0; } } - var$5 = $43; - var$5$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$1 = 0; - $134$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$3 = var$0; - i64toi32_i32$2 = $134$hi; - i64toi32_i32$0 = var$3 & 63 | 0; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $11 = $9; + $9 = 0; + $5 = $9; + $9 = $1_1; + $4 = $0_1; + $7 = $8 & 63 | 0; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$2 = i64toi32_i32$3 << i64toi32_i32$4 | 0; - $44 = 0; + $5 = $4 << $6 | 0; + $0_1 = 0; } } else { { - i64toi32_i32$2 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$3 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$1 << i64toi32_i32$4 | 0) | 0; - $44 = i64toi32_i32$3 << i64toi32_i32$4 | 0; + $5 = ((1 << $6 | 0) - 1 | 0) & ($4 >>> (32 - $6 | 0) | 0) | 0 | ($9 << $6 | 0) | 0; + $0_1 = $4 << $6 | 0; } } - var$0 = $44; - var$0$hi = i64toi32_i32$2; + $1_1 = $5; label$13 : { - if (var$2) { + if ($10) { { - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$1 = var$1; - i64toi32_i32$3 = -1; - i64toi32_i32$0 = -1; - i64toi32_i32$4 = i64toi32_i32$1 + i64toi32_i32$0 | 0; - i64toi32_i32$5 = i64toi32_i32$2 + i64toi32_i32$3 | 0; - if (i64toi32_i32$4 >>> 0 < i64toi32_i32$0 >>> 0) { - i64toi32_i32$5 = i64toi32_i32$5 + 1 | 0 + $5 = $3_1; + $9 = $2_1; + $4 = -1; + $7 = -1; + $6 = $9 + $7 | 0; + $8 = $5 + $4 | 0; + if ($6 >>> 0 < $7 >>> 0) { + $8 = $8 + 1 | 0 } - var$8 = i64toi32_i32$4; - var$8$hi = i64toi32_i32$5; + $17 = $6; + $15 = $8; label$15 : while (1) { - i64toi32_i32$5 = var$5$hi; - i64toi32_i32$2 = var$5; - i64toi32_i32$1 = 0; - i64toi32_i32$0 = 1; - i64toi32_i32$3 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $8 = $11; + $5 = $13; + $7 = 1; + $4 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$3 | 0; - $45 = 0; + $9 = $5 << $4 | 0; + $12 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$3 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$3 | 0) | 0) | 0 | (i64toi32_i32$5 << i64toi32_i32$3 | 0) | 0; - $45 = i64toi32_i32$2 << i64toi32_i32$3 | 0; + $9 = ((1 << $4 | 0) - 1 | 0) & ($5 >>> (32 - $4 | 0) | 0) | 0 | ($8 << $4 | 0) | 0; + $12 = $5 << $4 | 0; } } - $140 = $45; - $140$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$5 = var$0; - i64toi32_i32$2 = 0; - i64toi32_i32$0 = 63; - i64toi32_i32$3 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $11 = $9; + $9 = $1_1; + $8 = $0_1; + $7 = 63; + $4 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$2 = 0; - $46 = i64toi32_i32$1 >>> i64toi32_i32$3 | 0; + $5 = 0; + $7 = $9 >>> $4 | 0; } } else { { - i64toi32_i32$2 = i64toi32_i32$1 >>> i64toi32_i32$3 | 0; - $46 = (((1 << i64toi32_i32$3 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$3 | 0) | 0 | (i64toi32_i32$5 >>> i64toi32_i32$3 | 0) | 0; + $5 = $9 >>> $4 | 0; + $7 = (((1 << $4 | 0) - 1 | 0) & $9 | 0) << (32 - $4 | 0) | 0 | ($8 >>> $4 | 0) | 0; } } - $142$hi = i64toi32_i32$2; - i64toi32_i32$2 = $140$hi; - i64toi32_i32$1 = $140; - i64toi32_i32$5 = $142$hi; - i64toi32_i32$0 = $46; - i64toi32_i32$5 = i64toi32_i32$2 | i64toi32_i32$5 | 0; - var$5 = i64toi32_i32$1 | i64toi32_i32$0 | 0; - var$5$hi = i64toi32_i32$5; - $144 = var$5; - $144$hi = i64toi32_i32$5; - i64toi32_i32$5 = var$8$hi; - i64toi32_i32$5 = var$5$hi; - i64toi32_i32$5 = var$8$hi; - i64toi32_i32$2 = var$8; - i64toi32_i32$1 = var$5$hi; - i64toi32_i32$0 = var$5; - i64toi32_i32$3 = i64toi32_i32$2 - i64toi32_i32$0 | 0; - i64toi32_i32$6 = i64toi32_i32$2 >>> 0 < i64toi32_i32$0 >>> 0; - i64toi32_i32$4 = i64toi32_i32$6 + i64toi32_i32$1 | 0; - i64toi32_i32$4 = i64toi32_i32$5 - i64toi32_i32$4 | 0; - i64toi32_i32$5 = i64toi32_i32$3; - i64toi32_i32$2 = 0; - i64toi32_i32$0 = 63; - i64toi32_i32$1 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $8 = $5; + $5 = $11; + $9 = $12; + $8 = $5 | $8 | 0; + $13 = $9 | $7 | 0; + $11 = $8; + $18 = $13; + $19 = $8; + $8 = $15; + $5 = $17; + $9 = $11; + $7 = $13; + $4 = $5 - $7 | 0; + $5 = $5 >>> 0 < $7 >>> 0; + $6 = $5 + $9 | 0; + $6 = $8 - $6 | 0; + $8 = $4; + $7 = 63; + $9 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$2 = i64toi32_i32$4 >> 31 | 0; - $47 = i64toi32_i32$4 >> i64toi32_i32$1 | 0; + $5 = $6 >> 31 | 0; + $14 = $6 >> $9 | 0; } } else { { - i64toi32_i32$2 = i64toi32_i32$4 >> i64toi32_i32$1 | 0; - $47 = (((1 << i64toi32_i32$1 | 0) - 1 | 0) & i64toi32_i32$4 | 0) << (32 - i64toi32_i32$1 | 0) | 0 | (i64toi32_i32$5 >>> i64toi32_i32$1 | 0) | 0; + $5 = $6 >> $9 | 0; + $14 = (((1 << $9 | 0) - 1 | 0) & $6 | 0) << (32 - $9 | 0) | 0 | ($8 >>> $9 | 0) | 0; } } - var$6 = $47; - var$6$hi = i64toi32_i32$2; - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$2 = var$6$hi; - i64toi32_i32$4 = var$6; - i64toi32_i32$5 = var$1$hi; - i64toi32_i32$0 = var$1; - i64toi32_i32$5 = i64toi32_i32$2 & i64toi32_i32$5 | 0; - $151 = i64toi32_i32$4 & i64toi32_i32$0 | 0; - $151$hi = i64toi32_i32$5; - i64toi32_i32$5 = $144$hi; - i64toi32_i32$2 = $144; - i64toi32_i32$4 = $151$hi; - i64toi32_i32$0 = $151; - i64toi32_i32$1 = i64toi32_i32$2 - i64toi32_i32$0 | 0; - i64toi32_i32$6 = i64toi32_i32$2 >>> 0 < i64toi32_i32$0 >>> 0; - i64toi32_i32$3 = i64toi32_i32$6 + i64toi32_i32$4 | 0; - i64toi32_i32$3 = i64toi32_i32$5 - i64toi32_i32$3 | 0; - var$5 = i64toi32_i32$1; - var$5$hi = i64toi32_i32$3; - i64toi32_i32$3 = var$0$hi; - i64toi32_i32$5 = var$0; - i64toi32_i32$2 = 0; - i64toi32_i32$0 = 1; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $12 = $5; + $5 = $12; + $6 = $14; + $8 = $3_1; + $7 = $2_1; + $8 = $5 & $8 | 0; + $7 = $6 & $7 | 0; + $6 = $8; + $8 = $19; + $5 = $18; + $9 = $5 - $7 | 0; + $5 = $5 >>> 0 < $7 >>> 0; + $4 = $5 + $6 | 0; + $4 = $8 - $4 | 0; + $13 = $9; + $11 = $4; + $4 = $1_1; + $8 = $0_1; + $7 = 1; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$2 = i64toi32_i32$5 << i64toi32_i32$4 | 0; - $48 = 0; + $5 = $8 << $6 | 0; + $4 = 0; } } else { { - i64toi32_i32$2 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$5 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$3 << i64toi32_i32$4 | 0) | 0; - $48 = i64toi32_i32$5 << i64toi32_i32$4 | 0; + $5 = ((1 << $6 | 0) - 1 | 0) & ($8 >>> (32 - $6 | 0) | 0) | 0 | ($4 << $6 | 0) | 0; + $4 = $8 << $6 | 0; } } - $154$hi = i64toi32_i32$2; - i64toi32_i32$2 = var$7$hi; - i64toi32_i32$2 = $154$hi; - i64toi32_i32$3 = $48; - i64toi32_i32$5 = var$7$hi; - i64toi32_i32$0 = var$7; - i64toi32_i32$5 = i64toi32_i32$2 | i64toi32_i32$5 | 0; - var$0 = i64toi32_i32$3 | i64toi32_i32$0 | 0; - var$0$hi = i64toi32_i32$5; - i64toi32_i32$5 = var$6$hi; - i64toi32_i32$2 = var$6; - i64toi32_i32$3 = 0; - i64toi32_i32$0 = 1; - i64toi32_i32$3 = i64toi32_i32$5 & i64toi32_i32$3 | 0; - var$6 = i64toi32_i32$2 & i64toi32_i32$0 | 0; - var$6$hi = i64toi32_i32$3; - var$7 = var$6; - var$7$hi = i64toi32_i32$3; - var$2 = var$2 + -1 | 0; - if (var$2) { + $8 = $16; + $7 = $20; + $8 = $5 | $8 | 0; + $0_1 = $4 | $7 | 0; + $1_1 = $8; + $8 = $12; + $5 = $14; + $4 = 0; + $7 = 1; + $4 = $8 & $4 | 0; + $14 = $5 & $7 | 0; + $12 = $4; + $20 = $14; + $16 = $4; + $10 = $10 + -1 | 0; + if ($10) { continue label$15 } break label$15; @@ -1765,99 +1500,79 @@ function asmFunc(global, env, buffer) { } } } - i64toi32_i32$3 = var$5$hi; - legalfunc$wasm2js_scratch_store_i64(var$5 | 0, i64toi32_i32$3 | 0); - i64toi32_i32$3 = var$0$hi; - i64toi32_i32$5 = var$0; - i64toi32_i32$2 = 0; - i64toi32_i32$0 = 1; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $4 = $11; + legalfunc$wasm2js_scratch_store_i64($13 | 0, $4 | 0); + $4 = $1_1; + $8 = $0_1; + $7 = 1; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$2 = i64toi32_i32$5 << i64toi32_i32$4 | 0; - $49 = 0; + $5 = $8 << $6 | 0; + $4 = 0; } } else { { - i64toi32_i32$2 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$5 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$3 << i64toi32_i32$4 | 0) | 0; - $49 = i64toi32_i32$5 << i64toi32_i32$4 | 0; + $5 = ((1 << $6 | 0) - 1 | 0) & ($8 >>> (32 - $6 | 0) | 0) | 0 | ($4 << $6 | 0) | 0; + $4 = $8 << $6 | 0; } } - $165$hi = i64toi32_i32$2; - i64toi32_i32$2 = var$6$hi; - i64toi32_i32$2 = $165$hi; - i64toi32_i32$3 = $49; - i64toi32_i32$5 = var$6$hi; - i64toi32_i32$0 = var$6; - i64toi32_i32$5 = i64toi32_i32$2 | i64toi32_i32$5 | 0; - i64toi32_i32$3 = i64toi32_i32$3 | i64toi32_i32$0 | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$5; - return i64toi32_i32$3 | 0; - } - i64toi32_i32$3 = var$0$hi; - legalfunc$wasm2js_scratch_store_i64(var$0 | 0, i64toi32_i32$3 | 0); - i64toi32_i32$3 = 0; - var$0 = 0; - var$0$hi = i64toi32_i32$3; - } - i64toi32_i32$3 = var$0$hi; - i64toi32_i32$5 = var$0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$3; - return i64toi32_i32$5 | 0; - } - - function __wasm_i64_mul(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$0 = var$1$hi; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = _ZN17compiler_builtins3int3mul3Mul3mul17h070e9a1c69faec5bE(var$0 | 0, i64toi32_i32$0 | 0, var$1 | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; - } - - function __wasm_i64_sdiv(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$0 = var$1$hi; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = _ZN17compiler_builtins3int4sdiv3Div3div17he78fc483e41d7ec7E(var$0 | 0, i64toi32_i32$0 | 0, var$1 | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; - } - - function __wasm_i64_udiv(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$0 = var$1$hi; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E(var$0 | 0, i64toi32_i32$0 | 0, var$1 | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; - } - - function __wasm_ctz_i32(var$0) { - var$0 = var$0 | 0; - if (var$0) { - return 31 - Math_clz32((var$0 + -1 | 0) ^ var$0 | 0) | 0 | 0 + $8 = $12; + $7 = $14; + $8 = $5 | $8 | 0; + $4 = $4 | $7 | 0; + i64toi32_i32$HIGH_BITS = $8; + return $4 | 0; + } + $4 = $1_1; + legalfunc$wasm2js_scratch_store_i64($0_1 | 0, $4 | 0); + $4 = 0; + $0_1 = 0; + $1_1 = $4; + } + $4 = $1_1; + $8 = $0_1; + i64toi32_i32$HIGH_BITS = $4; + return $8 | 0; + } + + function __wasm_i64_mul($0_1, $1_1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + $3_1 = _ZN17compiler_builtins3int3mul3Mul3mul17h070e9a1c69faec5bE($0_1 | 0, $1_1 | 0, $2_1 | 0, $3_1 | 0) | 0; + $1_1 = i64toi32_i32$HIGH_BITS; + i64toi32_i32$HIGH_BITS = $1_1; + return $3_1 | 0; + } + + function __wasm_i64_sdiv($0_1, $1_1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + $3_1 = _ZN17compiler_builtins3int4sdiv3Div3div17he78fc483e41d7ec7E($0_1 | 0, $1_1 | 0, $2_1 | 0, $3_1 | 0) | 0; + $1_1 = i64toi32_i32$HIGH_BITS; + i64toi32_i32$HIGH_BITS = $1_1; + return $3_1 | 0; + } + + function __wasm_i64_udiv($0_1, $1_1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + $3_1 = _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E($0_1 | 0, $1_1 | 0, $2_1 | 0, $3_1 | 0) | 0; + $1_1 = i64toi32_i32$HIGH_BITS; + i64toi32_i32$HIGH_BITS = $1_1; + return $3_1 | 0; + } + + function __wasm_ctz_i32($0_1) { + $0_1 = $0_1 | 0; + if ($0_1) { + return 31 - Math_clz32(($0_1 + -1 | 0) ^ $0_1 | 0) | 0 | 0 } return 32 | 0; } @@ -1914,392 +1629,317 @@ function asmFunc(global, env, buffer) { var infinity = global.Infinity; var setTempRet0 = env.setTempRet0; var i64toi32_i32$HIGH_BITS = 0; - function $0(x) { - x = x | 0; - return (Math_imul(x, 6) | 0) / (6 | 0) | 0 | 0; - } - - function $1(x) { - x = x | 0; - return (Math_imul(x, 6) >>> 0) / (6 >>> 0) | 0 | 0; - } - - function $2(x, x$hi) { - x = x | 0; - x$hi = x$hi | 0; - var i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, $4 = 0; - i64toi32_i32$0 = x$hi; - i64toi32_i32$1 = 0; - i64toi32_i32$1 = __wasm_i64_mul(x | 0, i64toi32_i32$0 | 0, 6 | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $4 = i64toi32_i32$1; - i64toi32_i32$1 = 0; - i64toi32_i32$1 = __wasm_i64_sdiv($4 | 0, i64toi32_i32$0 | 0, 6 | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; - } - - function $3(x, x$hi) { - x = x | 0; - x$hi = x$hi | 0; - var i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, $4 = 0; - i64toi32_i32$0 = x$hi; - i64toi32_i32$1 = 0; - i64toi32_i32$1 = __wasm_i64_mul(x | 0, i64toi32_i32$0 | 0, 6 | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $4 = i64toi32_i32$1; - i64toi32_i32$1 = 0; - i64toi32_i32$1 = __wasm_i64_udiv($4 | 0, i64toi32_i32$0 | 0, 6 | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + function $0($0_1) { + $0_1 = $0_1 | 0; + return (Math_imul($0_1, 6) | 0) / (6 | 0) | 0 | 0; + } + + function $1($0_1) { + $0_1 = $0_1 | 0; + return (Math_imul($0_1, 6) >>> 0) / (6 >>> 0) | 0 | 0; + } + + function $2($0_1, $1_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + var $2_1 = 0; + $2_1 = 0; + $2_1 = __wasm_i64_mul($0_1 | 0, $1_1 | 0, 6 | 0, $2_1 | 0) | 0; + $1_1 = i64toi32_i32$HIGH_BITS; + $0_1 = $2_1; + $2_1 = 0; + $2_1 = __wasm_i64_sdiv($0_1 | 0, $1_1 | 0, 6 | 0, $2_1 | 0) | 0; + $1_1 = i64toi32_i32$HIGH_BITS; + i64toi32_i32$HIGH_BITS = $1_1; + return $2_1 | 0; + } + + function $3($0_1, $1_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + var $2_1 = 0; + $2_1 = 0; + $2_1 = __wasm_i64_mul($0_1 | 0, $1_1 | 0, 6 | 0, $2_1 | 0) | 0; + $1_1 = i64toi32_i32$HIGH_BITS; + $0_1 = $2_1; + $2_1 = 0; + $2_1 = __wasm_i64_udiv($0_1 | 0, $1_1 | 0, 6 | 0, $2_1 | 0) | 0; + $1_1 = i64toi32_i32$HIGH_BITS; + i64toi32_i32$HIGH_BITS = $1_1; + return $2_1 | 0; } function legalstub$2($0_1, $1_1) { $0_1 = $0_1 | 0; $1_1 = $1_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12 = 0, $13 = 0, $4 = 0, $4$hi = 0, $7$hi = 0, $2_1 = 0, $2$hi = 0; - i64toi32_i32$0 = 0; - $4 = $0_1; - $4$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $2_1 = 0, $3_1 = 0, $4 = 0, $5 = 0, $6 = 0; + $3_1 = 0; + $5 = $0_1; + $6 = $3_1; + $3_1 = 0; + $4 = 32; + $2_1 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $12 = 0; + $0_1 = $1_1 << $2_1 | 0; + $4 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $12 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - } - } - $7$hi = i64toi32_i32$1; - i64toi32_i32$1 = $4$hi; - i64toi32_i32$0 = $4; - i64toi32_i32$2 = $7$hi; - i64toi32_i32$3 = $12; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - i64toi32_i32$2 = $2(i64toi32_i32$0 | i64toi32_i32$3 | 0 | 0, i64toi32_i32$2 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $2_1 = i64toi32_i32$2; - $2$hi = i64toi32_i32$0; - i64toi32_i32$1 = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $13 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + $0_1 = ((1 << $2_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $2_1 | 0) | 0) | 0 | ($3_1 << $2_1 | 0) | 0; + $4 = $1_1 << $2_1 | 0; + } + } + $1_1 = $0_1; + $0_1 = $6; + $3_1 = $5; + $1_1 = $0_1 | $1_1 | 0; + $1_1 = $2($3_1 | $4 | 0 | 0, $1_1 | 0) | 0; + $3_1 = i64toi32_i32$HIGH_BITS; + $6 = $1_1; + $5 = $3_1; + $0_1 = $1_1; + $4 = 32; + $2_1 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { + $0_1 = $3_1 >>> $2_1 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $13 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$1 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $2_1 | 0) - 1 | 0) & $3_1 | 0) << (32 - $2_1 | 0) | 0 | ($0_1 >>> $2_1 | 0) | 0 } - setTempRet0($13 | 0); - i64toi32_i32$2 = $2$hi; - return $2_1 | 0; + setTempRet0($0_1 | 0); + return $6 | 0; } function legalstub$3($0_1, $1_1) { $0_1 = $0_1 | 0; $1_1 = $1_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12 = 0, $13 = 0, $4 = 0, $4$hi = 0, $7$hi = 0, $2_1 = 0, $2$hi = 0; - i64toi32_i32$0 = 0; - $4 = $0_1; - $4$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $2_1 = 0, $3_1 = 0, $4 = 0, $5 = 0, $6 = 0; + $3_1 = 0; + $5 = $0_1; + $6 = $3_1; + $3_1 = 0; + $4 = 32; + $2_1 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $12 = 0; + $0_1 = $1_1 << $2_1 | 0; + $4 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $12 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - } - } - $7$hi = i64toi32_i32$1; - i64toi32_i32$1 = $4$hi; - i64toi32_i32$0 = $4; - i64toi32_i32$2 = $7$hi; - i64toi32_i32$3 = $12; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - i64toi32_i32$2 = $3(i64toi32_i32$0 | i64toi32_i32$3 | 0 | 0, i64toi32_i32$2 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $2_1 = i64toi32_i32$2; - $2$hi = i64toi32_i32$0; - i64toi32_i32$1 = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $13 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + $0_1 = ((1 << $2_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $2_1 | 0) | 0) | 0 | ($3_1 << $2_1 | 0) | 0; + $4 = $1_1 << $2_1 | 0; + } + } + $1_1 = $0_1; + $0_1 = $6; + $3_1 = $5; + $1_1 = $0_1 | $1_1 | 0; + $1_1 = $3($3_1 | $4 | 0 | 0, $1_1 | 0) | 0; + $3_1 = i64toi32_i32$HIGH_BITS; + $6 = $1_1; + $5 = $3_1; + $0_1 = $1_1; + $4 = 32; + $2_1 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { + $0_1 = $3_1 >>> $2_1 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $13 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$1 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $2_1 | 0) - 1 | 0) & $3_1 | 0) << (32 - $2_1 | 0) | 0 | ($0_1 >>> $2_1 | 0) | 0 } - setTempRet0($13 | 0); - i64toi32_i32$2 = $2$hi; - return $2_1 | 0; + setTempRet0($0_1 | 0); + return $6 | 0; } - function legalfunc$wasm2js_scratch_store_i64($0_1, $0$hi) { + function legalfunc$wasm2js_scratch_store_i64($0_1, $1_1) { $0_1 = $0_1 | 0; - $0$hi = $0$hi | 0; - var i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $8 = 0, $2_1 = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $0$hi; - $2_1 = $0_1; - i64toi32_i32$2 = $0_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = 0; - $8 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + $1_1 = $1_1 | 0; + var $2_1 = 0, $3_1 = 0, $4 = 0; + $4 = $0_1; + $3_1 = 32; + $2_1 = $3_1 & 31 | 0; + if (32 >>> 0 <= ($3_1 & 63 | 0) >>> 0) { + $0_1 = $1_1 >>> $2_1 | 0 } else { - { - i64toi32_i32$1 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $8 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $2_1 | 0) - 1 | 0) & $1_1 | 0) << (32 - $2_1 | 0) | 0 | ($0_1 >>> $2_1 | 0) | 0 } - legalimport$wasm2js_scratch_store_i64($2_1 | 0, $8 | 0); + legalimport$wasm2js_scratch_store_i64($4 | 0, $0_1 | 0); } - function _ZN17compiler_builtins3int3mul3Mul3mul17h070e9a1c69faec5bE(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; - var i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, var$2 = 0, i64toi32_i32$2 = 0, i64toi32_i32$3 = 0, var$3 = 0, var$4 = 0, var$5 = 0, $21 = 0, $22 = 0, var$6 = 0, $24 = 0, $17 = 0, $18 = 0, $23 = 0, $29 = 0, $45 = 0, $56$hi = 0, $62$hi = 0; - i64toi32_i32$0 = var$1$hi; - var$2 = var$1; - var$4 = var$2 >>> 16 | 0; - i64toi32_i32$0 = var$0$hi; - var$3 = var$0; - var$5 = var$3 >>> 16 | 0; - $17 = Math_imul(var$4, var$5); - $18 = var$2; - i64toi32_i32$2 = var$3; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = 0; - $21 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + function _ZN17compiler_builtins3int3mul3Mul3mul17h070e9a1c69faec5bE($0_1, $1_1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + var $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $10 = 0, $11 = 0; + $5 = $2_1; + $9 = $5 >>> 16 | 0; + $10 = $0_1 >>> 16 | 0; + $11 = Math_imul($9, $10); + $8 = $5; + $6 = $0_1; + $7 = 32; + $4 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { + $1_1 = $1_1 >>> $4 | 0 } else { - { - i64toi32_i32$1 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $21 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } - } - $23 = $17 + Math_imul($18, $21) | 0; - i64toi32_i32$1 = var$1$hi; - i64toi32_i32$0 = var$1; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $22 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; + $1_1 = (((1 << $4 | 0) - 1 | 0) & $1_1 | 0) << (32 - $4 | 0) | 0 | ($6 >>> $4 | 0) | 0 + } + $6 = $11 + Math_imul($8, $1_1) | 0; + $1_1 = $2_1; + $7 = 32; + $4 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { + $1_1 = $3_1 >>> $4 | 0 + } else { + $1_1 = (((1 << $4 | 0) - 1 | 0) & $3_1 | 0) << (32 - $4 | 0) | 0 | ($1_1 >>> $4 | 0) | 0 + } + $1_1 = $6 + Math_imul($1_1, $0_1) | 0; + $5 = $5 & 65535 | 0; + $0_1 = $0_1 & 65535 | 0; + $8 = Math_imul($5, $0_1); + $5 = ($8 >>> 16 | 0) + Math_imul($5, $10) | 0; + $1_1 = $1_1 + ($5 >>> 16 | 0) | 0; + $5 = ($5 & 65535 | 0) + Math_imul($9, $0_1) | 0; + $6 = 0; + $3_1 = $1_1 + ($5 >>> 16 | 0) | 0; + $7 = 32; + $4 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { + { + $1_1 = $3_1 << $4 | 0; + $6 = 0; } } else { { - i64toi32_i32$2 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $22 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$0 >>> i64toi32_i32$4 | 0) | 0; + $1_1 = ((1 << $4 | 0) - 1 | 0) & ($3_1 >>> (32 - $4 | 0) | 0) | 0 | ($6 << $4 | 0) | 0; + $6 = $3_1 << $4 | 0; } } - $29 = $23 + Math_imul($22, var$3) | 0; - var$2 = var$2 & 65535 | 0; - var$3 = var$3 & 65535 | 0; - var$6 = Math_imul(var$2, var$3); - var$2 = (var$6 >>> 16 | 0) + Math_imul(var$2, var$5) | 0; - $45 = $29 + (var$2 >>> 16 | 0) | 0; - var$2 = (var$2 & 65535 | 0) + Math_imul(var$4, var$3) | 0; - i64toi32_i32$2 = 0; - i64toi32_i32$1 = $45 + (var$2 >>> 16 | 0) | 0; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + $0_1 = $1_1; + $1_1 = 0; + $2_1 = $1_1; + $1_1 = $0_1; + $3_1 = $2_1; + $7 = $5 << 16 | 0 | ($8 & 65535 | 0) | 0; + $3_1 = $1_1 | $3_1 | 0; + $6 = $6 | $7 | 0; + i64toi32_i32$HIGH_BITS = $3_1; + return $6 | 0; + } + + function _ZN17compiler_builtins3int4sdiv3Div3div17he78fc483e41d7ec7E($0_1, $1_1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + var $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $10 = 0, $11 = 0, $12 = 0; + $8 = $1_1; + $7 = $0_1; + $6 = 63; + $5 = $6 & 31 | 0; + if (32 >>> 0 <= ($6 & 63 | 0) >>> 0) { { - i64toi32_i32$0 = i64toi32_i32$1 << i64toi32_i32$4 | 0; - $24 = 0; + $4 = $8 >> 31 | 0; + $5 = $8 >> $5 | 0; } } else { { - i64toi32_i32$0 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$1 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$2 << i64toi32_i32$4 | 0) | 0; - $24 = i64toi32_i32$1 << i64toi32_i32$4 | 0; - } - } - $56$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - $62$hi = i64toi32_i32$0; - i64toi32_i32$0 = $56$hi; - i64toi32_i32$2 = $24; - i64toi32_i32$1 = $62$hi; - i64toi32_i32$3 = var$2 << 16 | 0 | (var$6 & 65535 | 0) | 0; - i64toi32_i32$1 = i64toi32_i32$0 | i64toi32_i32$1 | 0; - i64toi32_i32$2 = i64toi32_i32$2 | i64toi32_i32$3 | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$2 | 0; - } - - function _ZN17compiler_builtins3int4sdiv3Div3div17he78fc483e41d7ec7E(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; - var i64toi32_i32$1 = 0, i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, i64toi32_i32$0 = 0, i64toi32_i32$5 = 0, var$2 = 0, var$2$hi = 0, i64toi32_i32$6 = 0, $21 = 0, $22 = 0, $23 = 0, $7$hi = 0, $9 = 0, $9$hi = 0, $14$hi = 0, $16$hi = 0, $17 = 0, $17$hi = 0, $23$hi = 0; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$2 = var$0; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 63; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = i64toi32_i32$0 >> 31 | 0; - $21 = i64toi32_i32$0 >> i64toi32_i32$4 | 0; + $4 = $8 >> $5 | 0; + $5 = (((1 << $5 | 0) - 1 | 0) & $8 | 0) << (32 - $5 | 0) | 0 | ($7 >>> $5 | 0) | 0; + } + } + $10 = $4; + $4 = $10; + $8 = $5; + $7 = $1_1; + $6 = $0_1; + $7 = $4 ^ $7 | 0; + $4 = $8 ^ $6 | 0; + $8 = $10; + $6 = $5; + $5 = $4 - $6 | 0; + $10 = $4 >>> 0 < $6 >>> 0; + $9 = $10 + $8 | 0; + $9 = $7 - $9 | 0; + $11 = $5; + $12 = $9; + $9 = $3_1; + $7 = $2_1; + $6 = 63; + $8 = $6 & 31 | 0; + if (32 >>> 0 <= ($6 & 63 | 0) >>> 0) { + { + $4 = $9 >> 31 | 0; + $5 = $9 >> $8 | 0; } } else { { - i64toi32_i32$1 = i64toi32_i32$0 >> i64toi32_i32$4 | 0; - $21 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } - } - var$2 = $21; - var$2$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$1 = var$2$hi; - i64toi32_i32$0 = var$2; - i64toi32_i32$2 = var$0$hi; - i64toi32_i32$3 = var$0; - i64toi32_i32$2 = i64toi32_i32$1 ^ i64toi32_i32$2 | 0; - $7$hi = i64toi32_i32$2; - i64toi32_i32$2 = i64toi32_i32$1; - i64toi32_i32$2 = $7$hi; - i64toi32_i32$1 = i64toi32_i32$0 ^ i64toi32_i32$3 | 0; - i64toi32_i32$0 = var$2$hi; - i64toi32_i32$3 = var$2; - i64toi32_i32$4 = i64toi32_i32$1 - i64toi32_i32$3 | 0; - i64toi32_i32$6 = i64toi32_i32$1 >>> 0 < i64toi32_i32$3 >>> 0; - i64toi32_i32$5 = i64toi32_i32$6 + i64toi32_i32$0 | 0; - i64toi32_i32$5 = i64toi32_i32$2 - i64toi32_i32$5 | 0; - $9 = i64toi32_i32$4; - $9$hi = i64toi32_i32$5; - i64toi32_i32$5 = var$1$hi; - i64toi32_i32$2 = var$1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 63; - i64toi32_i32$0 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = i64toi32_i32$5 >> 31 | 0; - $22 = i64toi32_i32$5 >> i64toi32_i32$0 | 0; + $4 = $9 >> $8 | 0; + $5 = (((1 << $8 | 0) - 1 | 0) & $9 | 0) << (32 - $8 | 0) | 0 | ($7 >>> $8 | 0) | 0; + } + } + $10 = $4; + $4 = $10; + $9 = $5; + $7 = $3_1; + $6 = $2_1; + $7 = $4 ^ $7 | 0; + $4 = $9 ^ $6 | 0; + $9 = $10; + $6 = $5; + $8 = $4 - $6 | 0; + $10 = $4 >>> 0 < $6 >>> 0; + $5 = $10 + $9 | 0; + $5 = $7 - $5 | 0; + $4 = $5; + $5 = $12; + $4 = __wasm_i64_udiv($11 | 0, $5 | 0, $8 | 0, $4 | 0) | 0; + $5 = i64toi32_i32$HIGH_BITS; + $10 = $4; + $8 = $5; + $5 = $3_1; + $7 = $2_1; + $4 = $1_1; + $6 = $0_1; + $4 = $5 ^ $4 | 0; + $5 = $7 ^ $6 | 0; + $6 = 63; + $9 = $6 & 31 | 0; + if (32 >>> 0 <= ($6 & 63 | 0) >>> 0) { + { + $7 = $4 >> 31 | 0; + $0_1 = $4 >> $9 | 0; } } else { { - i64toi32_i32$1 = i64toi32_i32$5 >> i64toi32_i32$0 | 0; - $22 = (((1 << i64toi32_i32$0 | 0) - 1 | 0) & i64toi32_i32$5 | 0) << (32 - i64toi32_i32$0 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$0 | 0) | 0; - } - } - var$2 = $22; - var$2$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = var$2$hi; - i64toi32_i32$5 = var$2; - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$3 = var$1; - i64toi32_i32$2 = i64toi32_i32$1 ^ i64toi32_i32$2 | 0; - $14$hi = i64toi32_i32$2; - i64toi32_i32$2 = i64toi32_i32$1; - i64toi32_i32$2 = $14$hi; - i64toi32_i32$1 = i64toi32_i32$5 ^ i64toi32_i32$3 | 0; - i64toi32_i32$5 = var$2$hi; - i64toi32_i32$3 = var$2; - i64toi32_i32$0 = i64toi32_i32$1 - i64toi32_i32$3 | 0; - i64toi32_i32$6 = i64toi32_i32$1 >>> 0 < i64toi32_i32$3 >>> 0; - i64toi32_i32$4 = i64toi32_i32$6 + i64toi32_i32$5 | 0; - i64toi32_i32$4 = i64toi32_i32$2 - i64toi32_i32$4 | 0; - $16$hi = i64toi32_i32$4; - i64toi32_i32$4 = $9$hi; - i64toi32_i32$1 = $16$hi; - i64toi32_i32$1 = __wasm_i64_udiv($9 | 0, i64toi32_i32$4 | 0, i64toi32_i32$0 | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$4 = i64toi32_i32$HIGH_BITS; - $17 = i64toi32_i32$1; - $17$hi = i64toi32_i32$4; - i64toi32_i32$4 = var$1$hi; - i64toi32_i32$4 = var$0$hi; - i64toi32_i32$4 = var$1$hi; - i64toi32_i32$2 = var$1; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$3 = var$0; - i64toi32_i32$1 = i64toi32_i32$4 ^ i64toi32_i32$1 | 0; - i64toi32_i32$4 = i64toi32_i32$2 ^ i64toi32_i32$3 | 0; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 63; - i64toi32_i32$5 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = i64toi32_i32$1 >> 31 | 0; - $23 = i64toi32_i32$1 >> i64toi32_i32$5 | 0; + $7 = $4 >> $9 | 0; + $0_1 = (((1 << $9 | 0) - 1 | 0) & $4 | 0) << (32 - $9 | 0) | 0 | ($5 >>> $9 | 0) | 0; } - } else { - { - i64toi32_i32$2 = i64toi32_i32$1 >> i64toi32_i32$5 | 0; - $23 = (((1 << i64toi32_i32$5 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$5 | 0) | 0 | (i64toi32_i32$4 >>> i64toi32_i32$5 | 0) | 0; - } - } - var$0 = $23; - var$0$hi = i64toi32_i32$2; - i64toi32_i32$2 = $17$hi; - i64toi32_i32$1 = $17; - i64toi32_i32$4 = var$0$hi; - i64toi32_i32$3 = var$0; - i64toi32_i32$4 = i64toi32_i32$2 ^ i64toi32_i32$4 | 0; - $23$hi = i64toi32_i32$4; - i64toi32_i32$4 = var$0$hi; - i64toi32_i32$4 = $23$hi; - i64toi32_i32$2 = i64toi32_i32$1 ^ i64toi32_i32$3 | 0; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$5 = i64toi32_i32$2 - i64toi32_i32$3 | 0; - i64toi32_i32$6 = i64toi32_i32$2 >>> 0 < i64toi32_i32$3 >>> 0; - i64toi32_i32$0 = i64toi32_i32$6 + i64toi32_i32$1 | 0; - i64toi32_i32$0 = i64toi32_i32$4 - i64toi32_i32$0 | 0; - i64toi32_i32$2 = i64toi32_i32$5; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$2 | 0; - } - - function _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$3 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, i64toi32_i32$5 = 0, var$2 = 0, var$3 = 0, var$4 = 0, var$5 = 0, var$5$hi = 0, var$6 = 0, var$6$hi = 0, i64toi32_i32$6 = 0, $37 = 0, $38 = 0, $39 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0, $44 = 0, var$8$hi = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0, var$7$hi = 0, $49 = 0, $63$hi = 0, $65 = 0, $65$hi = 0, $120$hi = 0, $129$hi = 0, $134$hi = 0, var$8 = 0, $140 = 0, $140$hi = 0, $142$hi = 0, $144 = 0, $144$hi = 0, $151 = 0, $151$hi = 0, $154$hi = 0, var$7 = 0, $165$hi = 0; + } + $1_1 = $7; + $7 = $8; + $4 = $10; + $5 = $1_1; + $6 = $0_1; + $5 = $7 ^ $5 | 0; + $7 = $4 ^ $6 | 0; + $4 = $1_1; + $9 = $7 - $6 | 0; + $10 = $7 >>> 0 < $6 >>> 0; + $8 = $10 + $4 | 0; + $8 = $5 - $8 | 0; + $7 = $9; + i64toi32_i32$HIGH_BITS = $8; + return $7 | 0; + } + + function _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E($0_1, $1_1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + var $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $20 = 0; label$1 : { label$2 : { label$3 : { @@ -2310,394 +1950,335 @@ function asmFunc(global, env, buffer) { label$8 : { label$9 : { label$11 : { - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$2 = var$0; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = 0; - $37 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + $7 = $1_1; + $5 = $0_1; + $4 = 32; + $6 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { + $10 = $7 >>> $6 | 0 } else { - { - i64toi32_i32$1 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $37 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $10 = (((1 << $6 | 0) - 1 | 0) & $7 | 0) << (32 - $6 | 0) | 0 | ($5 >>> $6 | 0) | 0 } - var$2 = $37; - if (var$2) { + if ($10) { { - i64toi32_i32$1 = var$1$hi; - var$3 = var$1; - if (!var$3) { + $8 = $2_1; + if (!$8) { break label$11 } - i64toi32_i32$1 = var$1$hi; - i64toi32_i32$0 = var$1; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $38 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + $9 = $3_1; + $7 = $2_1; + $4 = 32; + $6 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { + $11 = $9 >>> $6 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $38 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$0 >>> i64toi32_i32$4 | 0) | 0; - } + $11 = (((1 << $6 | 0) - 1 | 0) & $9 | 0) << (32 - $6 | 0) | 0 | ($7 >>> $6 | 0) | 0 } - var$4 = $38; - if (!var$4) { + if (!$11) { break label$9 } - var$2 = Math_clz32(var$4) - Math_clz32(var$2) | 0; - if (var$2 >>> 0 <= 31 >>> 0) { + $10 = Math_clz32($11) - Math_clz32($10) | 0; + if ($10 >>> 0 <= 31 >>> 0) { break label$8 } break label$2; } } - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$1 = var$1; - i64toi32_i32$0 = 1; - i64toi32_i32$3 = 0; - if (i64toi32_i32$2 >>> 0 > i64toi32_i32$0 >>> 0 | ((i64toi32_i32$2 | 0) == (i64toi32_i32$0 | 0) & i64toi32_i32$1 >>> 0 >= i64toi32_i32$3 >>> 0 | 0) | 0) { + $5 = $3_1; + $9 = $2_1; + $7 = 1; + $4 = 0; + if ($5 >>> 0 > $7 >>> 0 | (($5 | 0) == ($7 | 0) & $9 >>> 0 >= $4 >>> 0 | 0) | 0) { break label$2 } - i64toi32_i32$1 = var$0$hi; - var$2 = var$0; - i64toi32_i32$1 = var$1$hi; - var$3 = var$1; - var$2 = (var$2 >>> 0) / (var$3 >>> 0) | 0; - i64toi32_i32$1 = 0; - legalfunc$wasm2js_scratch_store_i64(var$0 - Math_imul(var$2, var$3) | 0 | 0, i64toi32_i32$1 | 0); - i64toi32_i32$1 = 0; - i64toi32_i32$2 = var$2; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$2 | 0; + $10 = $0_1; + $8 = $2_1; + $10 = ($10 >>> 0) / ($8 >>> 0) | 0; + $9 = 0; + legalfunc$wasm2js_scratch_store_i64($0_1 - Math_imul($10, $8) | 0 | 0, $9 | 0); + $9 = 0; + $5 = $10; + i64toi32_i32$HIGH_BITS = $9; + return $5 | 0; } - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$3 = var$1; - i64toi32_i32$1 = 0; - i64toi32_i32$0 = 32; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = 0; - $39 = i64toi32_i32$2 >>> i64toi32_i32$4 | 0; - } + $5 = $3_1; + $4 = $2_1; + $7 = 32; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { + $8 = $5 >>> $6 | 0 } else { - { - i64toi32_i32$1 = i64toi32_i32$2 >>> i64toi32_i32$4 | 0; - $39 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$2 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$3 >>> i64toi32_i32$4 | 0) | 0; - } + $8 = (((1 << $6 | 0) - 1 | 0) & $5 | 0) << (32 - $6 | 0) | 0 | ($4 >>> $6 | 0) | 0 } - var$3 = $39; - i64toi32_i32$1 = var$0$hi; - if (!var$0) { + if (!$0_1) { break label$7 } - if (!var$3) { + if (!$8) { break label$6 } - var$4 = var$3 + -1 | 0; - if (var$4 & var$3 | 0) { + $11 = $8 + -1 | 0; + if ($11 & $8 | 0) { break label$6 } - i64toi32_i32$1 = 0; - i64toi32_i32$2 = var$4 & var$2 | 0; - i64toi32_i32$3 = 0; - i64toi32_i32$0 = 32; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $9 = 0; + $5 = $11 & $10 | 0; + $7 = 32; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$3 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $40 = 0; + $4 = $5 << $6 | 0; + $3_1 = 0; } } else { { - i64toi32_i32$3 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$1 << i64toi32_i32$4 | 0) | 0; - $40 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $4 = ((1 << $6 | 0) - 1 | 0) & ($5 >>> (32 - $6 | 0) | 0) | 0 | ($9 << $6 | 0) | 0; + $3_1 = $5 << $6 | 0; } } - $63$hi = i64toi32_i32$3; - i64toi32_i32$3 = var$0$hi; - i64toi32_i32$1 = var$0; - i64toi32_i32$2 = 0; - i64toi32_i32$0 = -1; - i64toi32_i32$2 = i64toi32_i32$3 & i64toi32_i32$2 | 0; - $65 = i64toi32_i32$1 & i64toi32_i32$0 | 0; - $65$hi = i64toi32_i32$2; - i64toi32_i32$2 = $63$hi; - i64toi32_i32$3 = $40; - i64toi32_i32$1 = $65$hi; - i64toi32_i32$0 = $65; - i64toi32_i32$1 = i64toi32_i32$2 | i64toi32_i32$1 | 0; - legalfunc$wasm2js_scratch_store_i64(i64toi32_i32$3 | i64toi32_i32$0 | 0 | 0, i64toi32_i32$1 | 0); - i64toi32_i32$1 = 0; - i64toi32_i32$3 = var$2 >>> ((__wasm_ctz_i32(var$3 | 0) | 0) & 31 | 0) | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$3 | 0; + $2_1 = $4; + $4 = $1_1; + $9 = $0_1; + $5 = 0; + $7 = -1; + $5 = $4 & $5 | 0; + $7 = $9 & $7 | 0; + $9 = $5; + $5 = $2_1; + $4 = $3_1; + $9 = $5 | $9 | 0; + legalfunc$wasm2js_scratch_store_i64($4 | $7 | 0 | 0, $9 | 0); + $9 = 0; + $4 = $10 >>> ((__wasm_ctz_i32($8 | 0) | 0) & 31 | 0) | 0; + i64toi32_i32$HIGH_BITS = $9; + return $4 | 0; } - var$4 = var$3 + -1 | 0; - if (!(var$4 & var$3 | 0)) { + $11 = $8 + -1 | 0; + if (!($11 & $8 | 0)) { break label$5 } - var$2 = (Math_clz32(var$3) + 33 | 0) - Math_clz32(var$2) | 0; - var$3 = 0 - var$2 | 0; + $10 = (Math_clz32($8) + 33 | 0) - Math_clz32($10) | 0; + $8 = 0 - $10 | 0; break label$3; } - var$3 = 63 - var$2 | 0; - var$2 = var$2 + 1 | 0; + $8 = 63 - $10 | 0; + $10 = $10 + 1 | 0; break label$3; } - var$4 = (var$2 >>> 0) / (var$3 >>> 0) | 0; - i64toi32_i32$3 = 0; - i64toi32_i32$2 = var$2 - Math_imul(var$4, var$3) | 0; - i64toi32_i32$1 = 0; - i64toi32_i32$0 = 32; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $11 = ($10 >>> 0) / ($8 >>> 0) | 0; + $4 = 0; + $5 = $10 - Math_imul($11, $8) | 0; + $7 = 32; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $41 = 0; + $9 = $5 << $6 | 0; + $0_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$3 << i64toi32_i32$4 | 0) | 0; - $41 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $9 = ((1 << $6 | 0) - 1 | 0) & ($5 >>> (32 - $6 | 0) | 0) | 0 | ($4 << $6 | 0) | 0; + $0_1 = $5 << $6 | 0; } } - legalfunc$wasm2js_scratch_store_i64($41 | 0, i64toi32_i32$1 | 0); - i64toi32_i32$1 = 0; - i64toi32_i32$2 = var$4; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$2 | 0; + legalfunc$wasm2js_scratch_store_i64($0_1 | 0, $9 | 0); + $9 = 0; + $5 = $11; + i64toi32_i32$HIGH_BITS = $9; + return $5 | 0; } - var$2 = Math_clz32(var$3) - Math_clz32(var$2) | 0; - if (var$2 >>> 0 < 31 >>> 0) { + $10 = Math_clz32($8) - Math_clz32($10) | 0; + if ($10 >>> 0 < 31 >>> 0) { break label$4 } break label$2; } - i64toi32_i32$2 = var$0$hi; - i64toi32_i32$2 = 0; - legalfunc$wasm2js_scratch_store_i64(var$4 & var$0 | 0 | 0, i64toi32_i32$2 | 0); - if ((var$3 | 0) == (1 | 0)) { + $5 = 0; + legalfunc$wasm2js_scratch_store_i64($11 & $0_1 | 0 | 0, $5 | 0); + if (($8 | 0) == (1 | 0)) { break label$1 } - i64toi32_i32$2 = var$0$hi; - i64toi32_i32$2 = 0; - $120$hi = i64toi32_i32$2; - i64toi32_i32$2 = var$0$hi; - i64toi32_i32$3 = var$0; - i64toi32_i32$1 = $120$hi; - i64toi32_i32$0 = __wasm_ctz_i32(var$3 | 0) | 0; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $5 = 0; + $9 = $5; + $5 = $1_1; + $4 = $0_1; + $7 = __wasm_ctz_i32($8 | 0) | 0; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = 0; - $42 = i64toi32_i32$2 >>> i64toi32_i32$4 | 0; + $9 = 0; + $4 = $5 >>> $6 | 0; } } else { { - i64toi32_i32$1 = i64toi32_i32$2 >>> i64toi32_i32$4 | 0; - $42 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$2 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$3 >>> i64toi32_i32$4 | 0) | 0; + $9 = $5 >>> $6 | 0; + $4 = (((1 << $6 | 0) - 1 | 0) & $5 | 0) << (32 - $6 | 0) | 0 | ($4 >>> $6 | 0) | 0; } } - i64toi32_i32$3 = $42; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$3 | 0; + i64toi32_i32$HIGH_BITS = $9; + return $4 | 0; } - var$3 = 63 - var$2 | 0; - var$2 = var$2 + 1 | 0; + $8 = 63 - $10 | 0; + $10 = $10 + 1 | 0; } - i64toi32_i32$3 = var$0$hi; - i64toi32_i32$3 = 0; - $129$hi = i64toi32_i32$3; - i64toi32_i32$3 = var$0$hi; - i64toi32_i32$2 = var$0; - i64toi32_i32$1 = $129$hi; - i64toi32_i32$0 = var$2 & 63 | 0; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $4 = 0; + $9 = $4; + $4 = $1_1; + $5 = $0_1; + $7 = $10 & 63 | 0; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = 0; - $43 = i64toi32_i32$3 >>> i64toi32_i32$4 | 0; + $9 = 0; + $13 = $4 >>> $6 | 0; } } else { { - i64toi32_i32$1 = i64toi32_i32$3 >>> i64toi32_i32$4 | 0; - $43 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$3 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; + $9 = $4 >>> $6 | 0; + $13 = (((1 << $6 | 0) - 1 | 0) & $4 | 0) << (32 - $6 | 0) | 0 | ($5 >>> $6 | 0) | 0; } } - var$5 = $43; - var$5$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$1 = 0; - $134$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$3 = var$0; - i64toi32_i32$2 = $134$hi; - i64toi32_i32$0 = var$3 & 63 | 0; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $11 = $9; + $9 = 0; + $5 = $9; + $9 = $1_1; + $4 = $0_1; + $7 = $8 & 63 | 0; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$2 = i64toi32_i32$3 << i64toi32_i32$4 | 0; - $44 = 0; + $5 = $4 << $6 | 0; + $0_1 = 0; } } else { { - i64toi32_i32$2 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$3 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$1 << i64toi32_i32$4 | 0) | 0; - $44 = i64toi32_i32$3 << i64toi32_i32$4 | 0; + $5 = ((1 << $6 | 0) - 1 | 0) & ($4 >>> (32 - $6 | 0) | 0) | 0 | ($9 << $6 | 0) | 0; + $0_1 = $4 << $6 | 0; } } - var$0 = $44; - var$0$hi = i64toi32_i32$2; + $1_1 = $5; label$13 : { - if (var$2) { + if ($10) { { - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$1 = var$1; - i64toi32_i32$3 = -1; - i64toi32_i32$0 = -1; - i64toi32_i32$4 = i64toi32_i32$1 + i64toi32_i32$0 | 0; - i64toi32_i32$5 = i64toi32_i32$2 + i64toi32_i32$3 | 0; - if (i64toi32_i32$4 >>> 0 < i64toi32_i32$0 >>> 0) { - i64toi32_i32$5 = i64toi32_i32$5 + 1 | 0 + $5 = $3_1; + $9 = $2_1; + $4 = -1; + $7 = -1; + $6 = $9 + $7 | 0; + $8 = $5 + $4 | 0; + if ($6 >>> 0 < $7 >>> 0) { + $8 = $8 + 1 | 0 } - var$8 = i64toi32_i32$4; - var$8$hi = i64toi32_i32$5; + $17 = $6; + $15 = $8; label$15 : while (1) { - i64toi32_i32$5 = var$5$hi; - i64toi32_i32$2 = var$5; - i64toi32_i32$1 = 0; - i64toi32_i32$0 = 1; - i64toi32_i32$3 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $8 = $11; + $5 = $13; + $7 = 1; + $4 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$3 | 0; - $45 = 0; + $9 = $5 << $4 | 0; + $12 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$3 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$3 | 0) | 0) | 0 | (i64toi32_i32$5 << i64toi32_i32$3 | 0) | 0; - $45 = i64toi32_i32$2 << i64toi32_i32$3 | 0; + $9 = ((1 << $4 | 0) - 1 | 0) & ($5 >>> (32 - $4 | 0) | 0) | 0 | ($8 << $4 | 0) | 0; + $12 = $5 << $4 | 0; } } - $140 = $45; - $140$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$5 = var$0; - i64toi32_i32$2 = 0; - i64toi32_i32$0 = 63; - i64toi32_i32$3 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $11 = $9; + $9 = $1_1; + $8 = $0_1; + $7 = 63; + $4 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$2 = 0; - $46 = i64toi32_i32$1 >>> i64toi32_i32$3 | 0; + $5 = 0; + $7 = $9 >>> $4 | 0; } } else { { - i64toi32_i32$2 = i64toi32_i32$1 >>> i64toi32_i32$3 | 0; - $46 = (((1 << i64toi32_i32$3 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$3 | 0) | 0 | (i64toi32_i32$5 >>> i64toi32_i32$3 | 0) | 0; + $5 = $9 >>> $4 | 0; + $7 = (((1 << $4 | 0) - 1 | 0) & $9 | 0) << (32 - $4 | 0) | 0 | ($8 >>> $4 | 0) | 0; } } - $142$hi = i64toi32_i32$2; - i64toi32_i32$2 = $140$hi; - i64toi32_i32$1 = $140; - i64toi32_i32$5 = $142$hi; - i64toi32_i32$0 = $46; - i64toi32_i32$5 = i64toi32_i32$2 | i64toi32_i32$5 | 0; - var$5 = i64toi32_i32$1 | i64toi32_i32$0 | 0; - var$5$hi = i64toi32_i32$5; - $144 = var$5; - $144$hi = i64toi32_i32$5; - i64toi32_i32$5 = var$8$hi; - i64toi32_i32$5 = var$5$hi; - i64toi32_i32$5 = var$8$hi; - i64toi32_i32$2 = var$8; - i64toi32_i32$1 = var$5$hi; - i64toi32_i32$0 = var$5; - i64toi32_i32$3 = i64toi32_i32$2 - i64toi32_i32$0 | 0; - i64toi32_i32$6 = i64toi32_i32$2 >>> 0 < i64toi32_i32$0 >>> 0; - i64toi32_i32$4 = i64toi32_i32$6 + i64toi32_i32$1 | 0; - i64toi32_i32$4 = i64toi32_i32$5 - i64toi32_i32$4 | 0; - i64toi32_i32$5 = i64toi32_i32$3; - i64toi32_i32$2 = 0; - i64toi32_i32$0 = 63; - i64toi32_i32$1 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $8 = $5; + $5 = $11; + $9 = $12; + $8 = $5 | $8 | 0; + $13 = $9 | $7 | 0; + $11 = $8; + $18 = $13; + $19 = $8; + $8 = $15; + $5 = $17; + $9 = $11; + $7 = $13; + $4 = $5 - $7 | 0; + $5 = $5 >>> 0 < $7 >>> 0; + $6 = $5 + $9 | 0; + $6 = $8 - $6 | 0; + $8 = $4; + $7 = 63; + $9 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$2 = i64toi32_i32$4 >> 31 | 0; - $47 = i64toi32_i32$4 >> i64toi32_i32$1 | 0; + $5 = $6 >> 31 | 0; + $14 = $6 >> $9 | 0; } } else { { - i64toi32_i32$2 = i64toi32_i32$4 >> i64toi32_i32$1 | 0; - $47 = (((1 << i64toi32_i32$1 | 0) - 1 | 0) & i64toi32_i32$4 | 0) << (32 - i64toi32_i32$1 | 0) | 0 | (i64toi32_i32$5 >>> i64toi32_i32$1 | 0) | 0; + $5 = $6 >> $9 | 0; + $14 = (((1 << $9 | 0) - 1 | 0) & $6 | 0) << (32 - $9 | 0) | 0 | ($8 >>> $9 | 0) | 0; } } - var$6 = $47; - var$6$hi = i64toi32_i32$2; - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$2 = var$6$hi; - i64toi32_i32$4 = var$6; - i64toi32_i32$5 = var$1$hi; - i64toi32_i32$0 = var$1; - i64toi32_i32$5 = i64toi32_i32$2 & i64toi32_i32$5 | 0; - $151 = i64toi32_i32$4 & i64toi32_i32$0 | 0; - $151$hi = i64toi32_i32$5; - i64toi32_i32$5 = $144$hi; - i64toi32_i32$2 = $144; - i64toi32_i32$4 = $151$hi; - i64toi32_i32$0 = $151; - i64toi32_i32$1 = i64toi32_i32$2 - i64toi32_i32$0 | 0; - i64toi32_i32$6 = i64toi32_i32$2 >>> 0 < i64toi32_i32$0 >>> 0; - i64toi32_i32$3 = i64toi32_i32$6 + i64toi32_i32$4 | 0; - i64toi32_i32$3 = i64toi32_i32$5 - i64toi32_i32$3 | 0; - var$5 = i64toi32_i32$1; - var$5$hi = i64toi32_i32$3; - i64toi32_i32$3 = var$0$hi; - i64toi32_i32$5 = var$0; - i64toi32_i32$2 = 0; - i64toi32_i32$0 = 1; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $12 = $5; + $5 = $12; + $6 = $14; + $8 = $3_1; + $7 = $2_1; + $8 = $5 & $8 | 0; + $7 = $6 & $7 | 0; + $6 = $8; + $8 = $19; + $5 = $18; + $9 = $5 - $7 | 0; + $5 = $5 >>> 0 < $7 >>> 0; + $4 = $5 + $6 | 0; + $4 = $8 - $4 | 0; + $13 = $9; + $11 = $4; + $4 = $1_1; + $8 = $0_1; + $7 = 1; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$2 = i64toi32_i32$5 << i64toi32_i32$4 | 0; - $48 = 0; + $5 = $8 << $6 | 0; + $4 = 0; } } else { { - i64toi32_i32$2 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$5 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$3 << i64toi32_i32$4 | 0) | 0; - $48 = i64toi32_i32$5 << i64toi32_i32$4 | 0; + $5 = ((1 << $6 | 0) - 1 | 0) & ($8 >>> (32 - $6 | 0) | 0) | 0 | ($4 << $6 | 0) | 0; + $4 = $8 << $6 | 0; } } - $154$hi = i64toi32_i32$2; - i64toi32_i32$2 = var$7$hi; - i64toi32_i32$2 = $154$hi; - i64toi32_i32$3 = $48; - i64toi32_i32$5 = var$7$hi; - i64toi32_i32$0 = var$7; - i64toi32_i32$5 = i64toi32_i32$2 | i64toi32_i32$5 | 0; - var$0 = i64toi32_i32$3 | i64toi32_i32$0 | 0; - var$0$hi = i64toi32_i32$5; - i64toi32_i32$5 = var$6$hi; - i64toi32_i32$2 = var$6; - i64toi32_i32$3 = 0; - i64toi32_i32$0 = 1; - i64toi32_i32$3 = i64toi32_i32$5 & i64toi32_i32$3 | 0; - var$6 = i64toi32_i32$2 & i64toi32_i32$0 | 0; - var$6$hi = i64toi32_i32$3; - var$7 = var$6; - var$7$hi = i64toi32_i32$3; - var$2 = var$2 + -1 | 0; - if (var$2) { + $8 = $16; + $7 = $20; + $8 = $5 | $8 | 0; + $0_1 = $4 | $7 | 0; + $1_1 = $8; + $8 = $12; + $5 = $14; + $4 = 0; + $7 = 1; + $4 = $8 & $4 | 0; + $14 = $5 & $7 | 0; + $12 = $4; + $20 = $14; + $16 = $4; + $10 = $10 + -1 | 0; + if ($10) { continue label$15 } break label$15; @@ -2706,99 +2287,79 @@ function asmFunc(global, env, buffer) { } } } - i64toi32_i32$3 = var$5$hi; - legalfunc$wasm2js_scratch_store_i64(var$5 | 0, i64toi32_i32$3 | 0); - i64toi32_i32$3 = var$0$hi; - i64toi32_i32$5 = var$0; - i64toi32_i32$2 = 0; - i64toi32_i32$0 = 1; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $4 = $11; + legalfunc$wasm2js_scratch_store_i64($13 | 0, $4 | 0); + $4 = $1_1; + $8 = $0_1; + $7 = 1; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$2 = i64toi32_i32$5 << i64toi32_i32$4 | 0; - $49 = 0; + $5 = $8 << $6 | 0; + $4 = 0; } } else { { - i64toi32_i32$2 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$5 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$3 << i64toi32_i32$4 | 0) | 0; - $49 = i64toi32_i32$5 << i64toi32_i32$4 | 0; + $5 = ((1 << $6 | 0) - 1 | 0) & ($8 >>> (32 - $6 | 0) | 0) | 0 | ($4 << $6 | 0) | 0; + $4 = $8 << $6 | 0; } } - $165$hi = i64toi32_i32$2; - i64toi32_i32$2 = var$6$hi; - i64toi32_i32$2 = $165$hi; - i64toi32_i32$3 = $49; - i64toi32_i32$5 = var$6$hi; - i64toi32_i32$0 = var$6; - i64toi32_i32$5 = i64toi32_i32$2 | i64toi32_i32$5 | 0; - i64toi32_i32$3 = i64toi32_i32$3 | i64toi32_i32$0 | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$5; - return i64toi32_i32$3 | 0; - } - i64toi32_i32$3 = var$0$hi; - legalfunc$wasm2js_scratch_store_i64(var$0 | 0, i64toi32_i32$3 | 0); - i64toi32_i32$3 = 0; - var$0 = 0; - var$0$hi = i64toi32_i32$3; - } - i64toi32_i32$3 = var$0$hi; - i64toi32_i32$5 = var$0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$3; - return i64toi32_i32$5 | 0; - } - - function __wasm_i64_mul(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$0 = var$1$hi; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = _ZN17compiler_builtins3int3mul3Mul3mul17h070e9a1c69faec5bE(var$0 | 0, i64toi32_i32$0 | 0, var$1 | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; - } - - function __wasm_i64_sdiv(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$0 = var$1$hi; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = _ZN17compiler_builtins3int4sdiv3Div3div17he78fc483e41d7ec7E(var$0 | 0, i64toi32_i32$0 | 0, var$1 | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; - } - - function __wasm_i64_udiv(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$0 = var$1$hi; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E(var$0 | 0, i64toi32_i32$0 | 0, var$1 | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; - } - - function __wasm_ctz_i32(var$0) { - var$0 = var$0 | 0; - if (var$0) { - return 31 - Math_clz32((var$0 + -1 | 0) ^ var$0 | 0) | 0 | 0 + $8 = $12; + $7 = $14; + $8 = $5 | $8 | 0; + $4 = $4 | $7 | 0; + i64toi32_i32$HIGH_BITS = $8; + return $4 | 0; + } + $4 = $1_1; + legalfunc$wasm2js_scratch_store_i64($0_1 | 0, $4 | 0); + $4 = 0; + $0_1 = 0; + $1_1 = $4; + } + $4 = $1_1; + $8 = $0_1; + i64toi32_i32$HIGH_BITS = $4; + return $8 | 0; + } + + function __wasm_i64_mul($0_1, $1_1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + $3_1 = _ZN17compiler_builtins3int3mul3Mul3mul17h070e9a1c69faec5bE($0_1 | 0, $1_1 | 0, $2_1 | 0, $3_1 | 0) | 0; + $1_1 = i64toi32_i32$HIGH_BITS; + i64toi32_i32$HIGH_BITS = $1_1; + return $3_1 | 0; + } + + function __wasm_i64_sdiv($0_1, $1_1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + $3_1 = _ZN17compiler_builtins3int4sdiv3Div3div17he78fc483e41d7ec7E($0_1 | 0, $1_1 | 0, $2_1 | 0, $3_1 | 0) | 0; + $1_1 = i64toi32_i32$HIGH_BITS; + i64toi32_i32$HIGH_BITS = $1_1; + return $3_1 | 0; + } + + function __wasm_i64_udiv($0_1, $1_1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + $3_1 = _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E($0_1 | 0, $1_1 | 0, $2_1 | 0, $3_1 | 0) | 0; + $1_1 = i64toi32_i32$HIGH_BITS; + i64toi32_i32$HIGH_BITS = $1_1; + return $3_1 | 0; + } + + function __wasm_ctz_i32($0_1) { + $0_1 = $0_1 | 0; + if ($0_1) { + return 31 - Math_clz32(($0_1 + -1 | 0) ^ $0_1 | 0) | 0 | 0 } return 32 | 0; } @@ -2855,248 +2416,201 @@ function asmFunc(global, env, buffer) { var infinity = global.Infinity; var setTempRet0 = env.setTempRet0; var i64toi32_i32$HIGH_BITS = 0; - function $0(x) { - x = x | 0; - return (x | 0) / (2 | 0) | 0 | 0; + function $0($0_1) { + $0_1 = $0_1 | 0; + return ($0_1 | 0) / (2 | 0) | 0 | 0; } - function $1(x, x$hi) { - x = x | 0; - x$hi = x$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = x$hi; - i64toi32_i32$1 = 0; - i64toi32_i32$1 = __wasm_i64_sdiv(x | 0, i64toi32_i32$0 | 0, 2 | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + function $1($0_1, $1_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + var $2 = 0; + $2 = 0; + $2 = __wasm_i64_sdiv($0_1 | 0, $1_1 | 0, 2 | 0, $2 | 0) | 0; + $1_1 = i64toi32_i32$HIGH_BITS; + i64toi32_i32$HIGH_BITS = $1_1; + return $2 | 0; } function legalstub$1($0_1, $1_1) { $0_1 = $0_1 | 0; $1_1 = $1_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12 = 0, $13 = 0, $4 = 0, $4$hi = 0, $7$hi = 0, $2 = 0, $2$hi = 0; - i64toi32_i32$0 = 0; - $4 = $0_1; - $4$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0; + $3 = 0; + $5 = $0_1; + $6 = $3; + $3 = 0; + $4 = 32; + $2 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $12 = 0; + $0_1 = $1_1 << $2 | 0; + $4 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $12 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - } - } - $7$hi = i64toi32_i32$1; - i64toi32_i32$1 = $4$hi; - i64toi32_i32$0 = $4; - i64toi32_i32$2 = $7$hi; - i64toi32_i32$3 = $12; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - i64toi32_i32$2 = $1(i64toi32_i32$0 | i64toi32_i32$3 | 0 | 0, i64toi32_i32$2 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $2 = i64toi32_i32$2; - $2$hi = i64toi32_i32$0; - i64toi32_i32$1 = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $13 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + $0_1 = ((1 << $2 | 0) - 1 | 0) & ($1_1 >>> (32 - $2 | 0) | 0) | 0 | ($3 << $2 | 0) | 0; + $4 = $1_1 << $2 | 0; + } + } + $1_1 = $0_1; + $0_1 = $6; + $3 = $5; + $1_1 = $0_1 | $1_1 | 0; + $1_1 = $1($3 | $4 | 0 | 0, $1_1 | 0) | 0; + $3 = i64toi32_i32$HIGH_BITS; + $6 = $1_1; + $5 = $3; + $0_1 = $1_1; + $4 = 32; + $2 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { + $0_1 = $3 >>> $2 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $13 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$1 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $2 | 0) - 1 | 0) & $3 | 0) << (32 - $2 | 0) | 0 | ($0_1 >>> $2 | 0) | 0 } - setTempRet0($13 | 0); - i64toi32_i32$2 = $2$hi; - return $2 | 0; + setTempRet0($0_1 | 0); + return $6 | 0; } - function legalfunc$wasm2js_scratch_store_i64($0_1, $0$hi) { + function legalfunc$wasm2js_scratch_store_i64($0_1, $1_1) { $0_1 = $0_1 | 0; - $0$hi = $0$hi | 0; - var i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $8 = 0, $2 = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $0$hi; - $2 = $0_1; - i64toi32_i32$2 = $0_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = 0; - $8 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + $1_1 = $1_1 | 0; + var $2 = 0, $3 = 0, $4 = 0; + $4 = $0_1; + $3 = 32; + $2 = $3 & 31 | 0; + if (32 >>> 0 <= ($3 & 63 | 0) >>> 0) { + $0_1 = $1_1 >>> $2 | 0 } else { - { - i64toi32_i32$1 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $8 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $2 | 0) - 1 | 0) & $1_1 | 0) << (32 - $2 | 0) | 0 | ($0_1 >>> $2 | 0) | 0 } - legalimport$wasm2js_scratch_store_i64($2 | 0, $8 | 0); + legalimport$wasm2js_scratch_store_i64($4 | 0, $0_1 | 0); } - function _ZN17compiler_builtins3int4sdiv3Div3div17he78fc483e41d7ec7E(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; - var i64toi32_i32$1 = 0, i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, i64toi32_i32$0 = 0, i64toi32_i32$5 = 0, var$2 = 0, var$2$hi = 0, i64toi32_i32$6 = 0, $21 = 0, $22 = 0, $23 = 0, $7$hi = 0, $9 = 0, $9$hi = 0, $14$hi = 0, $16$hi = 0, $17 = 0, $17$hi = 0, $23$hi = 0; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$2 = var$0; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 63; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = i64toi32_i32$0 >> 31 | 0; - $21 = i64toi32_i32$0 >> i64toi32_i32$4 | 0; + function _ZN17compiler_builtins3int4sdiv3Div3div17he78fc483e41d7ec7E($0_1, $1_1, $2, $3) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2 = $2 | 0; + $3 = $3 | 0; + var $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $10 = 0, $11 = 0, $12 = 0; + $8 = $1_1; + $7 = $0_1; + $6 = 63; + $5 = $6 & 31 | 0; + if (32 >>> 0 <= ($6 & 63 | 0) >>> 0) { + { + $4 = $8 >> 31 | 0; + $5 = $8 >> $5 | 0; } } else { { - i64toi32_i32$1 = i64toi32_i32$0 >> i64toi32_i32$4 | 0; - $21 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } - } - var$2 = $21; - var$2$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$1 = var$2$hi; - i64toi32_i32$0 = var$2; - i64toi32_i32$2 = var$0$hi; - i64toi32_i32$3 = var$0; - i64toi32_i32$2 = i64toi32_i32$1 ^ i64toi32_i32$2 | 0; - $7$hi = i64toi32_i32$2; - i64toi32_i32$2 = i64toi32_i32$1; - i64toi32_i32$2 = $7$hi; - i64toi32_i32$1 = i64toi32_i32$0 ^ i64toi32_i32$3 | 0; - i64toi32_i32$0 = var$2$hi; - i64toi32_i32$3 = var$2; - i64toi32_i32$4 = i64toi32_i32$1 - i64toi32_i32$3 | 0; - i64toi32_i32$6 = i64toi32_i32$1 >>> 0 < i64toi32_i32$3 >>> 0; - i64toi32_i32$5 = i64toi32_i32$6 + i64toi32_i32$0 | 0; - i64toi32_i32$5 = i64toi32_i32$2 - i64toi32_i32$5 | 0; - $9 = i64toi32_i32$4; - $9$hi = i64toi32_i32$5; - i64toi32_i32$5 = var$1$hi; - i64toi32_i32$2 = var$1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 63; - i64toi32_i32$0 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = i64toi32_i32$5 >> 31 | 0; - $22 = i64toi32_i32$5 >> i64toi32_i32$0 | 0; + $4 = $8 >> $5 | 0; + $5 = (((1 << $5 | 0) - 1 | 0) & $8 | 0) << (32 - $5 | 0) | 0 | ($7 >>> $5 | 0) | 0; + } + } + $10 = $4; + $4 = $10; + $8 = $5; + $7 = $1_1; + $6 = $0_1; + $7 = $4 ^ $7 | 0; + $4 = $8 ^ $6 | 0; + $8 = $10; + $6 = $5; + $5 = $4 - $6 | 0; + $10 = $4 >>> 0 < $6 >>> 0; + $9 = $10 + $8 | 0; + $9 = $7 - $9 | 0; + $11 = $5; + $12 = $9; + $9 = $3; + $7 = $2; + $6 = 63; + $8 = $6 & 31 | 0; + if (32 >>> 0 <= ($6 & 63 | 0) >>> 0) { + { + $4 = $9 >> 31 | 0; + $5 = $9 >> $8 | 0; } } else { { - i64toi32_i32$1 = i64toi32_i32$5 >> i64toi32_i32$0 | 0; - $22 = (((1 << i64toi32_i32$0 | 0) - 1 | 0) & i64toi32_i32$5 | 0) << (32 - i64toi32_i32$0 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$0 | 0) | 0; - } - } - var$2 = $22; - var$2$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = var$2$hi; - i64toi32_i32$5 = var$2; - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$3 = var$1; - i64toi32_i32$2 = i64toi32_i32$1 ^ i64toi32_i32$2 | 0; - $14$hi = i64toi32_i32$2; - i64toi32_i32$2 = i64toi32_i32$1; - i64toi32_i32$2 = $14$hi; - i64toi32_i32$1 = i64toi32_i32$5 ^ i64toi32_i32$3 | 0; - i64toi32_i32$5 = var$2$hi; - i64toi32_i32$3 = var$2; - i64toi32_i32$0 = i64toi32_i32$1 - i64toi32_i32$3 | 0; - i64toi32_i32$6 = i64toi32_i32$1 >>> 0 < i64toi32_i32$3 >>> 0; - i64toi32_i32$4 = i64toi32_i32$6 + i64toi32_i32$5 | 0; - i64toi32_i32$4 = i64toi32_i32$2 - i64toi32_i32$4 | 0; - $16$hi = i64toi32_i32$4; - i64toi32_i32$4 = $9$hi; - i64toi32_i32$1 = $16$hi; - i64toi32_i32$1 = __wasm_i64_udiv($9 | 0, i64toi32_i32$4 | 0, i64toi32_i32$0 | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$4 = i64toi32_i32$HIGH_BITS; - $17 = i64toi32_i32$1; - $17$hi = i64toi32_i32$4; - i64toi32_i32$4 = var$1$hi; - i64toi32_i32$4 = var$0$hi; - i64toi32_i32$4 = var$1$hi; - i64toi32_i32$2 = var$1; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$3 = var$0; - i64toi32_i32$1 = i64toi32_i32$4 ^ i64toi32_i32$1 | 0; - i64toi32_i32$4 = i64toi32_i32$2 ^ i64toi32_i32$3 | 0; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 63; - i64toi32_i32$5 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = i64toi32_i32$1 >> 31 | 0; - $23 = i64toi32_i32$1 >> i64toi32_i32$5 | 0; + $4 = $9 >> $8 | 0; + $5 = (((1 << $8 | 0) - 1 | 0) & $9 | 0) << (32 - $8 | 0) | 0 | ($7 >>> $8 | 0) | 0; + } + } + $10 = $4; + $4 = $10; + $9 = $5; + $7 = $3; + $6 = $2; + $7 = $4 ^ $7 | 0; + $4 = $9 ^ $6 | 0; + $9 = $10; + $6 = $5; + $8 = $4 - $6 | 0; + $10 = $4 >>> 0 < $6 >>> 0; + $5 = $10 + $9 | 0; + $5 = $7 - $5 | 0; + $4 = $5; + $5 = $12; + $4 = __wasm_i64_udiv($11 | 0, $5 | 0, $8 | 0, $4 | 0) | 0; + $5 = i64toi32_i32$HIGH_BITS; + $10 = $4; + $8 = $5; + $5 = $3; + $7 = $2; + $4 = $1_1; + $6 = $0_1; + $4 = $5 ^ $4 | 0; + $5 = $7 ^ $6 | 0; + $6 = 63; + $9 = $6 & 31 | 0; + if (32 >>> 0 <= ($6 & 63 | 0) >>> 0) { + { + $7 = $4 >> 31 | 0; + $0_1 = $4 >> $9 | 0; } } else { { - i64toi32_i32$2 = i64toi32_i32$1 >> i64toi32_i32$5 | 0; - $23 = (((1 << i64toi32_i32$5 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$5 | 0) | 0 | (i64toi32_i32$4 >>> i64toi32_i32$5 | 0) | 0; - } - } - var$0 = $23; - var$0$hi = i64toi32_i32$2; - i64toi32_i32$2 = $17$hi; - i64toi32_i32$1 = $17; - i64toi32_i32$4 = var$0$hi; - i64toi32_i32$3 = var$0; - i64toi32_i32$4 = i64toi32_i32$2 ^ i64toi32_i32$4 | 0; - $23$hi = i64toi32_i32$4; - i64toi32_i32$4 = var$0$hi; - i64toi32_i32$4 = $23$hi; - i64toi32_i32$2 = i64toi32_i32$1 ^ i64toi32_i32$3 | 0; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$5 = i64toi32_i32$2 - i64toi32_i32$3 | 0; - i64toi32_i32$6 = i64toi32_i32$2 >>> 0 < i64toi32_i32$3 >>> 0; - i64toi32_i32$0 = i64toi32_i32$6 + i64toi32_i32$1 | 0; - i64toi32_i32$0 = i64toi32_i32$4 - i64toi32_i32$0 | 0; - i64toi32_i32$2 = i64toi32_i32$5; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$2 | 0; - } - - function __wasm_i64_sdiv(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$0 = var$1$hi; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = _ZN17compiler_builtins3int4sdiv3Div3div17he78fc483e41d7ec7E(var$0 | 0, i64toi32_i32$0 | 0, var$1 | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; - } - - function _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$3 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, i64toi32_i32$5 = 0, var$2 = 0, var$3 = 0, var$4 = 0, var$5 = 0, var$5$hi = 0, var$6 = 0, var$6$hi = 0, i64toi32_i32$6 = 0, $37 = 0, $38 = 0, $39 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0, $44 = 0, var$8$hi = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0, var$7$hi = 0, $49 = 0, $63$hi = 0, $65 = 0, $65$hi = 0, $120$hi = 0, $129$hi = 0, $134$hi = 0, var$8 = 0, $140 = 0, $140$hi = 0, $142$hi = 0, $144 = 0, $144$hi = 0, $151 = 0, $151$hi = 0, $154$hi = 0, var$7 = 0, $165$hi = 0; + $7 = $4 >> $9 | 0; + $0_1 = (((1 << $9 | 0) - 1 | 0) & $4 | 0) << (32 - $9 | 0) | 0 | ($5 >>> $9 | 0) | 0; + } + } + $1_1 = $7; + $7 = $8; + $4 = $10; + $5 = $1_1; + $6 = $0_1; + $5 = $7 ^ $5 | 0; + $7 = $4 ^ $6 | 0; + $4 = $1_1; + $9 = $7 - $6 | 0; + $10 = $7 >>> 0 < $6 >>> 0; + $8 = $10 + $4 | 0; + $8 = $5 - $8 | 0; + $7 = $9; + i64toi32_i32$HIGH_BITS = $8; + return $7 | 0; + } + + function __wasm_i64_sdiv($0_1, $1_1, $2, $3) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2 = $2 | 0; + $3 = $3 | 0; + $3 = _ZN17compiler_builtins3int4sdiv3Div3div17he78fc483e41d7ec7E($0_1 | 0, $1_1 | 0, $2 | 0, $3 | 0) | 0; + $1_1 = i64toi32_i32$HIGH_BITS; + i64toi32_i32$HIGH_BITS = $1_1; + return $3 | 0; + } + + function _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E($0_1, $1_1, $2, $3) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2 = $2 | 0; + $3 = $3 | 0; + var $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $20 = 0; label$1 : { label$2 : { label$3 : { @@ -3107,394 +2621,335 @@ function asmFunc(global, env, buffer) { label$8 : { label$9 : { label$11 : { - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$2 = var$0; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = 0; - $37 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + $7 = $1_1; + $5 = $0_1; + $4 = 32; + $6 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { + $10 = $7 >>> $6 | 0 } else { - { - i64toi32_i32$1 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $37 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $10 = (((1 << $6 | 0) - 1 | 0) & $7 | 0) << (32 - $6 | 0) | 0 | ($5 >>> $6 | 0) | 0 } - var$2 = $37; - if (var$2) { + if ($10) { { - i64toi32_i32$1 = var$1$hi; - var$3 = var$1; - if (!var$3) { + $8 = $2; + if (!$8) { break label$11 } - i64toi32_i32$1 = var$1$hi; - i64toi32_i32$0 = var$1; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $38 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + $9 = $3; + $7 = $2; + $4 = 32; + $6 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { + $11 = $9 >>> $6 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $38 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$0 >>> i64toi32_i32$4 | 0) | 0; - } + $11 = (((1 << $6 | 0) - 1 | 0) & $9 | 0) << (32 - $6 | 0) | 0 | ($7 >>> $6 | 0) | 0 } - var$4 = $38; - if (!var$4) { + if (!$11) { break label$9 } - var$2 = Math_clz32(var$4) - Math_clz32(var$2) | 0; - if (var$2 >>> 0 <= 31 >>> 0) { + $10 = Math_clz32($11) - Math_clz32($10) | 0; + if ($10 >>> 0 <= 31 >>> 0) { break label$8 } break label$2; } } - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$1 = var$1; - i64toi32_i32$0 = 1; - i64toi32_i32$3 = 0; - if (i64toi32_i32$2 >>> 0 > i64toi32_i32$0 >>> 0 | ((i64toi32_i32$2 | 0) == (i64toi32_i32$0 | 0) & i64toi32_i32$1 >>> 0 >= i64toi32_i32$3 >>> 0 | 0) | 0) { + $5 = $3; + $9 = $2; + $7 = 1; + $4 = 0; + if ($5 >>> 0 > $7 >>> 0 | (($5 | 0) == ($7 | 0) & $9 >>> 0 >= $4 >>> 0 | 0) | 0) { break label$2 } - i64toi32_i32$1 = var$0$hi; - var$2 = var$0; - i64toi32_i32$1 = var$1$hi; - var$3 = var$1; - var$2 = (var$2 >>> 0) / (var$3 >>> 0) | 0; - i64toi32_i32$1 = 0; - legalfunc$wasm2js_scratch_store_i64(var$0 - Math_imul(var$2, var$3) | 0 | 0, i64toi32_i32$1 | 0); - i64toi32_i32$1 = 0; - i64toi32_i32$2 = var$2; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$2 | 0; + $10 = $0_1; + $8 = $2; + $10 = ($10 >>> 0) / ($8 >>> 0) | 0; + $9 = 0; + legalfunc$wasm2js_scratch_store_i64($0_1 - Math_imul($10, $8) | 0 | 0, $9 | 0); + $9 = 0; + $5 = $10; + i64toi32_i32$HIGH_BITS = $9; + return $5 | 0; } - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$3 = var$1; - i64toi32_i32$1 = 0; - i64toi32_i32$0 = 32; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = 0; - $39 = i64toi32_i32$2 >>> i64toi32_i32$4 | 0; - } + $5 = $3; + $4 = $2; + $7 = 32; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { + $8 = $5 >>> $6 | 0 } else { - { - i64toi32_i32$1 = i64toi32_i32$2 >>> i64toi32_i32$4 | 0; - $39 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$2 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$3 >>> i64toi32_i32$4 | 0) | 0; - } + $8 = (((1 << $6 | 0) - 1 | 0) & $5 | 0) << (32 - $6 | 0) | 0 | ($4 >>> $6 | 0) | 0 } - var$3 = $39; - i64toi32_i32$1 = var$0$hi; - if (!var$0) { + if (!$0_1) { break label$7 } - if (!var$3) { + if (!$8) { break label$6 } - var$4 = var$3 + -1 | 0; - if (var$4 & var$3 | 0) { + $11 = $8 + -1 | 0; + if ($11 & $8 | 0) { break label$6 } - i64toi32_i32$1 = 0; - i64toi32_i32$2 = var$4 & var$2 | 0; - i64toi32_i32$3 = 0; - i64toi32_i32$0 = 32; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $9 = 0; + $5 = $11 & $10 | 0; + $7 = 32; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$3 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $40 = 0; + $4 = $5 << $6 | 0; + $3 = 0; } } else { { - i64toi32_i32$3 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$1 << i64toi32_i32$4 | 0) | 0; - $40 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $4 = ((1 << $6 | 0) - 1 | 0) & ($5 >>> (32 - $6 | 0) | 0) | 0 | ($9 << $6 | 0) | 0; + $3 = $5 << $6 | 0; } } - $63$hi = i64toi32_i32$3; - i64toi32_i32$3 = var$0$hi; - i64toi32_i32$1 = var$0; - i64toi32_i32$2 = 0; - i64toi32_i32$0 = -1; - i64toi32_i32$2 = i64toi32_i32$3 & i64toi32_i32$2 | 0; - $65 = i64toi32_i32$1 & i64toi32_i32$0 | 0; - $65$hi = i64toi32_i32$2; - i64toi32_i32$2 = $63$hi; - i64toi32_i32$3 = $40; - i64toi32_i32$1 = $65$hi; - i64toi32_i32$0 = $65; - i64toi32_i32$1 = i64toi32_i32$2 | i64toi32_i32$1 | 0; - legalfunc$wasm2js_scratch_store_i64(i64toi32_i32$3 | i64toi32_i32$0 | 0 | 0, i64toi32_i32$1 | 0); - i64toi32_i32$1 = 0; - i64toi32_i32$3 = var$2 >>> ((__wasm_ctz_i32(var$3 | 0) | 0) & 31 | 0) | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$3 | 0; + $2 = $4; + $4 = $1_1; + $9 = $0_1; + $5 = 0; + $7 = -1; + $5 = $4 & $5 | 0; + $7 = $9 & $7 | 0; + $9 = $5; + $5 = $2; + $4 = $3; + $9 = $5 | $9 | 0; + legalfunc$wasm2js_scratch_store_i64($4 | $7 | 0 | 0, $9 | 0); + $9 = 0; + $4 = $10 >>> ((__wasm_ctz_i32($8 | 0) | 0) & 31 | 0) | 0; + i64toi32_i32$HIGH_BITS = $9; + return $4 | 0; } - var$4 = var$3 + -1 | 0; - if (!(var$4 & var$3 | 0)) { + $11 = $8 + -1 | 0; + if (!($11 & $8 | 0)) { break label$5 } - var$2 = (Math_clz32(var$3) + 33 | 0) - Math_clz32(var$2) | 0; - var$3 = 0 - var$2 | 0; + $10 = (Math_clz32($8) + 33 | 0) - Math_clz32($10) | 0; + $8 = 0 - $10 | 0; break label$3; } - var$3 = 63 - var$2 | 0; - var$2 = var$2 + 1 | 0; + $8 = 63 - $10 | 0; + $10 = $10 + 1 | 0; break label$3; } - var$4 = (var$2 >>> 0) / (var$3 >>> 0) | 0; - i64toi32_i32$3 = 0; - i64toi32_i32$2 = var$2 - Math_imul(var$4, var$3) | 0; - i64toi32_i32$1 = 0; - i64toi32_i32$0 = 32; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $11 = ($10 >>> 0) / ($8 >>> 0) | 0; + $4 = 0; + $5 = $10 - Math_imul($11, $8) | 0; + $7 = 32; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $41 = 0; + $9 = $5 << $6 | 0; + $0_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$3 << i64toi32_i32$4 | 0) | 0; - $41 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $9 = ((1 << $6 | 0) - 1 | 0) & ($5 >>> (32 - $6 | 0) | 0) | 0 | ($4 << $6 | 0) | 0; + $0_1 = $5 << $6 | 0; } } - legalfunc$wasm2js_scratch_store_i64($41 | 0, i64toi32_i32$1 | 0); - i64toi32_i32$1 = 0; - i64toi32_i32$2 = var$4; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$2 | 0; + legalfunc$wasm2js_scratch_store_i64($0_1 | 0, $9 | 0); + $9 = 0; + $5 = $11; + i64toi32_i32$HIGH_BITS = $9; + return $5 | 0; } - var$2 = Math_clz32(var$3) - Math_clz32(var$2) | 0; - if (var$2 >>> 0 < 31 >>> 0) { + $10 = Math_clz32($8) - Math_clz32($10) | 0; + if ($10 >>> 0 < 31 >>> 0) { break label$4 } break label$2; } - i64toi32_i32$2 = var$0$hi; - i64toi32_i32$2 = 0; - legalfunc$wasm2js_scratch_store_i64(var$4 & var$0 | 0 | 0, i64toi32_i32$2 | 0); - if ((var$3 | 0) == (1 | 0)) { + $5 = 0; + legalfunc$wasm2js_scratch_store_i64($11 & $0_1 | 0 | 0, $5 | 0); + if (($8 | 0) == (1 | 0)) { break label$1 } - i64toi32_i32$2 = var$0$hi; - i64toi32_i32$2 = 0; - $120$hi = i64toi32_i32$2; - i64toi32_i32$2 = var$0$hi; - i64toi32_i32$3 = var$0; - i64toi32_i32$1 = $120$hi; - i64toi32_i32$0 = __wasm_ctz_i32(var$3 | 0) | 0; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $5 = 0; + $9 = $5; + $5 = $1_1; + $4 = $0_1; + $7 = __wasm_ctz_i32($8 | 0) | 0; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = 0; - $42 = i64toi32_i32$2 >>> i64toi32_i32$4 | 0; + $9 = 0; + $4 = $5 >>> $6 | 0; } } else { { - i64toi32_i32$1 = i64toi32_i32$2 >>> i64toi32_i32$4 | 0; - $42 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$2 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$3 >>> i64toi32_i32$4 | 0) | 0; + $9 = $5 >>> $6 | 0; + $4 = (((1 << $6 | 0) - 1 | 0) & $5 | 0) << (32 - $6 | 0) | 0 | ($4 >>> $6 | 0) | 0; } } - i64toi32_i32$3 = $42; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$3 | 0; + i64toi32_i32$HIGH_BITS = $9; + return $4 | 0; } - var$3 = 63 - var$2 | 0; - var$2 = var$2 + 1 | 0; + $8 = 63 - $10 | 0; + $10 = $10 + 1 | 0; } - i64toi32_i32$3 = var$0$hi; - i64toi32_i32$3 = 0; - $129$hi = i64toi32_i32$3; - i64toi32_i32$3 = var$0$hi; - i64toi32_i32$2 = var$0; - i64toi32_i32$1 = $129$hi; - i64toi32_i32$0 = var$2 & 63 | 0; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $4 = 0; + $9 = $4; + $4 = $1_1; + $5 = $0_1; + $7 = $10 & 63 | 0; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = 0; - $43 = i64toi32_i32$3 >>> i64toi32_i32$4 | 0; + $9 = 0; + $13 = $4 >>> $6 | 0; } } else { { - i64toi32_i32$1 = i64toi32_i32$3 >>> i64toi32_i32$4 | 0; - $43 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$3 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; + $9 = $4 >>> $6 | 0; + $13 = (((1 << $6 | 0) - 1 | 0) & $4 | 0) << (32 - $6 | 0) | 0 | ($5 >>> $6 | 0) | 0; } } - var$5 = $43; - var$5$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$1 = 0; - $134$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$3 = var$0; - i64toi32_i32$2 = $134$hi; - i64toi32_i32$0 = var$3 & 63 | 0; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $11 = $9; + $9 = 0; + $5 = $9; + $9 = $1_1; + $4 = $0_1; + $7 = $8 & 63 | 0; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$2 = i64toi32_i32$3 << i64toi32_i32$4 | 0; - $44 = 0; + $5 = $4 << $6 | 0; + $0_1 = 0; } } else { { - i64toi32_i32$2 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$3 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$1 << i64toi32_i32$4 | 0) | 0; - $44 = i64toi32_i32$3 << i64toi32_i32$4 | 0; + $5 = ((1 << $6 | 0) - 1 | 0) & ($4 >>> (32 - $6 | 0) | 0) | 0 | ($9 << $6 | 0) | 0; + $0_1 = $4 << $6 | 0; } } - var$0 = $44; - var$0$hi = i64toi32_i32$2; + $1_1 = $5; label$13 : { - if (var$2) { + if ($10) { { - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$1 = var$1; - i64toi32_i32$3 = -1; - i64toi32_i32$0 = -1; - i64toi32_i32$4 = i64toi32_i32$1 + i64toi32_i32$0 | 0; - i64toi32_i32$5 = i64toi32_i32$2 + i64toi32_i32$3 | 0; - if (i64toi32_i32$4 >>> 0 < i64toi32_i32$0 >>> 0) { - i64toi32_i32$5 = i64toi32_i32$5 + 1 | 0 + $5 = $3; + $9 = $2; + $4 = -1; + $7 = -1; + $6 = $9 + $7 | 0; + $8 = $5 + $4 | 0; + if ($6 >>> 0 < $7 >>> 0) { + $8 = $8 + 1 | 0 } - var$8 = i64toi32_i32$4; - var$8$hi = i64toi32_i32$5; + $17 = $6; + $15 = $8; label$15 : while (1) { - i64toi32_i32$5 = var$5$hi; - i64toi32_i32$2 = var$5; - i64toi32_i32$1 = 0; - i64toi32_i32$0 = 1; - i64toi32_i32$3 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $8 = $11; + $5 = $13; + $7 = 1; + $4 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$3 | 0; - $45 = 0; + $9 = $5 << $4 | 0; + $12 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$3 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$3 | 0) | 0) | 0 | (i64toi32_i32$5 << i64toi32_i32$3 | 0) | 0; - $45 = i64toi32_i32$2 << i64toi32_i32$3 | 0; + $9 = ((1 << $4 | 0) - 1 | 0) & ($5 >>> (32 - $4 | 0) | 0) | 0 | ($8 << $4 | 0) | 0; + $12 = $5 << $4 | 0; } } - $140 = $45; - $140$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$5 = var$0; - i64toi32_i32$2 = 0; - i64toi32_i32$0 = 63; - i64toi32_i32$3 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $11 = $9; + $9 = $1_1; + $8 = $0_1; + $7 = 63; + $4 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$2 = 0; - $46 = i64toi32_i32$1 >>> i64toi32_i32$3 | 0; + $5 = 0; + $7 = $9 >>> $4 | 0; } } else { { - i64toi32_i32$2 = i64toi32_i32$1 >>> i64toi32_i32$3 | 0; - $46 = (((1 << i64toi32_i32$3 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$3 | 0) | 0 | (i64toi32_i32$5 >>> i64toi32_i32$3 | 0) | 0; + $5 = $9 >>> $4 | 0; + $7 = (((1 << $4 | 0) - 1 | 0) & $9 | 0) << (32 - $4 | 0) | 0 | ($8 >>> $4 | 0) | 0; } } - $142$hi = i64toi32_i32$2; - i64toi32_i32$2 = $140$hi; - i64toi32_i32$1 = $140; - i64toi32_i32$5 = $142$hi; - i64toi32_i32$0 = $46; - i64toi32_i32$5 = i64toi32_i32$2 | i64toi32_i32$5 | 0; - var$5 = i64toi32_i32$1 | i64toi32_i32$0 | 0; - var$5$hi = i64toi32_i32$5; - $144 = var$5; - $144$hi = i64toi32_i32$5; - i64toi32_i32$5 = var$8$hi; - i64toi32_i32$5 = var$5$hi; - i64toi32_i32$5 = var$8$hi; - i64toi32_i32$2 = var$8; - i64toi32_i32$1 = var$5$hi; - i64toi32_i32$0 = var$5; - i64toi32_i32$3 = i64toi32_i32$2 - i64toi32_i32$0 | 0; - i64toi32_i32$6 = i64toi32_i32$2 >>> 0 < i64toi32_i32$0 >>> 0; - i64toi32_i32$4 = i64toi32_i32$6 + i64toi32_i32$1 | 0; - i64toi32_i32$4 = i64toi32_i32$5 - i64toi32_i32$4 | 0; - i64toi32_i32$5 = i64toi32_i32$3; - i64toi32_i32$2 = 0; - i64toi32_i32$0 = 63; - i64toi32_i32$1 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $8 = $5; + $5 = $11; + $9 = $12; + $8 = $5 | $8 | 0; + $13 = $9 | $7 | 0; + $11 = $8; + $18 = $13; + $19 = $8; + $8 = $15; + $5 = $17; + $9 = $11; + $7 = $13; + $4 = $5 - $7 | 0; + $5 = $5 >>> 0 < $7 >>> 0; + $6 = $5 + $9 | 0; + $6 = $8 - $6 | 0; + $8 = $4; + $7 = 63; + $9 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$2 = i64toi32_i32$4 >> 31 | 0; - $47 = i64toi32_i32$4 >> i64toi32_i32$1 | 0; + $5 = $6 >> 31 | 0; + $14 = $6 >> $9 | 0; } } else { { - i64toi32_i32$2 = i64toi32_i32$4 >> i64toi32_i32$1 | 0; - $47 = (((1 << i64toi32_i32$1 | 0) - 1 | 0) & i64toi32_i32$4 | 0) << (32 - i64toi32_i32$1 | 0) | 0 | (i64toi32_i32$5 >>> i64toi32_i32$1 | 0) | 0; + $5 = $6 >> $9 | 0; + $14 = (((1 << $9 | 0) - 1 | 0) & $6 | 0) << (32 - $9 | 0) | 0 | ($8 >>> $9 | 0) | 0; } } - var$6 = $47; - var$6$hi = i64toi32_i32$2; - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$2 = var$6$hi; - i64toi32_i32$4 = var$6; - i64toi32_i32$5 = var$1$hi; - i64toi32_i32$0 = var$1; - i64toi32_i32$5 = i64toi32_i32$2 & i64toi32_i32$5 | 0; - $151 = i64toi32_i32$4 & i64toi32_i32$0 | 0; - $151$hi = i64toi32_i32$5; - i64toi32_i32$5 = $144$hi; - i64toi32_i32$2 = $144; - i64toi32_i32$4 = $151$hi; - i64toi32_i32$0 = $151; - i64toi32_i32$1 = i64toi32_i32$2 - i64toi32_i32$0 | 0; - i64toi32_i32$6 = i64toi32_i32$2 >>> 0 < i64toi32_i32$0 >>> 0; - i64toi32_i32$3 = i64toi32_i32$6 + i64toi32_i32$4 | 0; - i64toi32_i32$3 = i64toi32_i32$5 - i64toi32_i32$3 | 0; - var$5 = i64toi32_i32$1; - var$5$hi = i64toi32_i32$3; - i64toi32_i32$3 = var$0$hi; - i64toi32_i32$5 = var$0; - i64toi32_i32$2 = 0; - i64toi32_i32$0 = 1; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $12 = $5; + $5 = $12; + $6 = $14; + $8 = $3; + $7 = $2; + $8 = $5 & $8 | 0; + $7 = $6 & $7 | 0; + $6 = $8; + $8 = $19; + $5 = $18; + $9 = $5 - $7 | 0; + $5 = $5 >>> 0 < $7 >>> 0; + $4 = $5 + $6 | 0; + $4 = $8 - $4 | 0; + $13 = $9; + $11 = $4; + $4 = $1_1; + $8 = $0_1; + $7 = 1; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$2 = i64toi32_i32$5 << i64toi32_i32$4 | 0; - $48 = 0; + $5 = $8 << $6 | 0; + $4 = 0; } } else { { - i64toi32_i32$2 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$5 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$3 << i64toi32_i32$4 | 0) | 0; - $48 = i64toi32_i32$5 << i64toi32_i32$4 | 0; + $5 = ((1 << $6 | 0) - 1 | 0) & ($8 >>> (32 - $6 | 0) | 0) | 0 | ($4 << $6 | 0) | 0; + $4 = $8 << $6 | 0; } } - $154$hi = i64toi32_i32$2; - i64toi32_i32$2 = var$7$hi; - i64toi32_i32$2 = $154$hi; - i64toi32_i32$3 = $48; - i64toi32_i32$5 = var$7$hi; - i64toi32_i32$0 = var$7; - i64toi32_i32$5 = i64toi32_i32$2 | i64toi32_i32$5 | 0; - var$0 = i64toi32_i32$3 | i64toi32_i32$0 | 0; - var$0$hi = i64toi32_i32$5; - i64toi32_i32$5 = var$6$hi; - i64toi32_i32$2 = var$6; - i64toi32_i32$3 = 0; - i64toi32_i32$0 = 1; - i64toi32_i32$3 = i64toi32_i32$5 & i64toi32_i32$3 | 0; - var$6 = i64toi32_i32$2 & i64toi32_i32$0 | 0; - var$6$hi = i64toi32_i32$3; - var$7 = var$6; - var$7$hi = i64toi32_i32$3; - var$2 = var$2 + -1 | 0; - if (var$2) { + $8 = $16; + $7 = $20; + $8 = $5 | $8 | 0; + $0_1 = $4 | $7 | 0; + $1_1 = $8; + $8 = $12; + $5 = $14; + $4 = 0; + $7 = 1; + $4 = $8 & $4 | 0; + $14 = $5 & $7 | 0; + $12 = $4; + $20 = $14; + $16 = $4; + $10 = $10 + -1 | 0; + if ($10) { continue label$15 } break label$15; @@ -3503,67 +2958,57 @@ function asmFunc(global, env, buffer) { } } } - i64toi32_i32$3 = var$5$hi; - legalfunc$wasm2js_scratch_store_i64(var$5 | 0, i64toi32_i32$3 | 0); - i64toi32_i32$3 = var$0$hi; - i64toi32_i32$5 = var$0; - i64toi32_i32$2 = 0; - i64toi32_i32$0 = 1; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $4 = $11; + legalfunc$wasm2js_scratch_store_i64($13 | 0, $4 | 0); + $4 = $1_1; + $8 = $0_1; + $7 = 1; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$2 = i64toi32_i32$5 << i64toi32_i32$4 | 0; - $49 = 0; + $5 = $8 << $6 | 0; + $4 = 0; } } else { { - i64toi32_i32$2 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$5 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$3 << i64toi32_i32$4 | 0) | 0; - $49 = i64toi32_i32$5 << i64toi32_i32$4 | 0; + $5 = ((1 << $6 | 0) - 1 | 0) & ($8 >>> (32 - $6 | 0) | 0) | 0 | ($4 << $6 | 0) | 0; + $4 = $8 << $6 | 0; } } - $165$hi = i64toi32_i32$2; - i64toi32_i32$2 = var$6$hi; - i64toi32_i32$2 = $165$hi; - i64toi32_i32$3 = $49; - i64toi32_i32$5 = var$6$hi; - i64toi32_i32$0 = var$6; - i64toi32_i32$5 = i64toi32_i32$2 | i64toi32_i32$5 | 0; - i64toi32_i32$3 = i64toi32_i32$3 | i64toi32_i32$0 | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$5; - return i64toi32_i32$3 | 0; - } - i64toi32_i32$3 = var$0$hi; - legalfunc$wasm2js_scratch_store_i64(var$0 | 0, i64toi32_i32$3 | 0); - i64toi32_i32$3 = 0; - var$0 = 0; - var$0$hi = i64toi32_i32$3; - } - i64toi32_i32$3 = var$0$hi; - i64toi32_i32$5 = var$0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$3; - return i64toi32_i32$5 | 0; - } - - function __wasm_i64_udiv(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$0 = var$1$hi; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E(var$0 | 0, i64toi32_i32$0 | 0, var$1 | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; - } - - function __wasm_ctz_i32(var$0) { - var$0 = var$0 | 0; - if (var$0) { - return 31 - Math_clz32((var$0 + -1 | 0) ^ var$0 | 0) | 0 | 0 + $8 = $12; + $7 = $14; + $8 = $5 | $8 | 0; + $4 = $4 | $7 | 0; + i64toi32_i32$HIGH_BITS = $8; + return $4 | 0; + } + $4 = $1_1; + legalfunc$wasm2js_scratch_store_i64($0_1 | 0, $4 | 0); + $4 = 0; + $0_1 = 0; + $1_1 = $4; + } + $4 = $1_1; + $8 = $0_1; + i64toi32_i32$HIGH_BITS = $4; + return $8 | 0; + } + + function __wasm_i64_udiv($0_1, $1_1, $2, $3) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2 = $2 | 0; + $3 = $3 | 0; + $3 = _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E($0_1 | 0, $1_1 | 0, $2 | 0, $3 | 0) | 0; + $1_1 = i64toi32_i32$HIGH_BITS; + i64toi32_i32$HIGH_BITS = $1_1; + return $3 | 0; + } + + function __wasm_ctz_i32($0_1) { + $0_1 = $0_1 | 0; + if ($0_1) { + return 31 - Math_clz32(($0_1 + -1 | 0) ^ $0_1 | 0) | 0 | 0 } return 32 | 0; } @@ -3623,256 +3068,207 @@ function asmFunc(global, env, buffer) { var setTempRet0 = env.setTempRet0; var getTempRet0 = env.getTempRet0; var i64toi32_i32$HIGH_BITS = 0; - function $0(x) { - x = x | 0; - return (x | 0) % (2 | 0) | 0 | 0; + function $0($0_1) { + $0_1 = $0_1 | 0; + return ($0_1 | 0) % (2 | 0) | 0 | 0; } - function $1(x, x$hi) { - x = x | 0; - x$hi = x$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = x$hi; - i64toi32_i32$1 = 0; - i64toi32_i32$1 = __wasm_i64_srem(x | 0, i64toi32_i32$0 | 0, 2 | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + function $1($0_1, $1_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + var $2 = 0; + $2 = 0; + $2 = __wasm_i64_srem($0_1 | 0, $1_1 | 0, 2 | 0, $2 | 0) | 0; + $1_1 = i64toi32_i32$HIGH_BITS; + i64toi32_i32$HIGH_BITS = $1_1; + return $2 | 0; } function legalstub$1($0_1, $1_1) { $0_1 = $0_1 | 0; $1_1 = $1_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12 = 0, $13 = 0, $4 = 0, $4$hi = 0, $7$hi = 0, $2 = 0, $2$hi = 0; - i64toi32_i32$0 = 0; - $4 = $0_1; - $4$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0; + $3 = 0; + $5 = $0_1; + $6 = $3; + $3 = 0; + $4 = 32; + $2 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $12 = 0; + $0_1 = $1_1 << $2 | 0; + $4 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $12 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - } - } - $7$hi = i64toi32_i32$1; - i64toi32_i32$1 = $4$hi; - i64toi32_i32$0 = $4; - i64toi32_i32$2 = $7$hi; - i64toi32_i32$3 = $12; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - i64toi32_i32$2 = $1(i64toi32_i32$0 | i64toi32_i32$3 | 0 | 0, i64toi32_i32$2 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $2 = i64toi32_i32$2; - $2$hi = i64toi32_i32$0; - i64toi32_i32$1 = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $13 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + $0_1 = ((1 << $2 | 0) - 1 | 0) & ($1_1 >>> (32 - $2 | 0) | 0) | 0 | ($3 << $2 | 0) | 0; + $4 = $1_1 << $2 | 0; + } + } + $1_1 = $0_1; + $0_1 = $6; + $3 = $5; + $1_1 = $0_1 | $1_1 | 0; + $1_1 = $1($3 | $4 | 0 | 0, $1_1 | 0) | 0; + $3 = i64toi32_i32$HIGH_BITS; + $6 = $1_1; + $5 = $3; + $0_1 = $1_1; + $4 = 32; + $2 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { + $0_1 = $3 >>> $2 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $13 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$1 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $2 | 0) - 1 | 0) & $3 | 0) << (32 - $2 | 0) | 0 | ($0_1 >>> $2 | 0) | 0 } - setTempRet0($13 | 0); - i64toi32_i32$2 = $2$hi; - return $2 | 0; + setTempRet0($0_1 | 0); + return $6 | 0; } function legalfunc$wasm2js_scratch_load_i64() { - var i64toi32_i32$0 = 0, i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $8 = 0, $1_1 = 0, $1$hi = 0, $4$hi = 0; - i64toi32_i32$0 = 0; - $1_1 = legalimport$wasm2js_scratch_load_i64() | 0; - $1$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = getTempRet0() | 0; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $8 = 0; + var $0_1 = 0, $1_1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0; + $0_1 = 0; + $5 = legalimport$wasm2js_scratch_load_i64() | 0; + $6 = $0_1; + $0_1 = 0; + $1_1 = getTempRet0() | 0; + $2 = 32; + $3 = $2 & 31 | 0; + if (32 >>> 0 <= ($2 & 63 | 0) >>> 0) { + { + $4 = $1_1 << $3 | 0; + $2 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $8 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $4 = ((1 << $3 | 0) - 1 | 0) & ($1_1 >>> (32 - $3 | 0) | 0) | 0 | ($0_1 << $3 | 0) | 0; + $2 = $1_1 << $3 | 0; } } - $4$hi = i64toi32_i32$1; - i64toi32_i32$1 = $1$hi; - i64toi32_i32$0 = $1_1; - i64toi32_i32$2 = $4$hi; - i64toi32_i32$3 = $8; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - i64toi32_i32$0 = i64toi32_i32$0 | i64toi32_i32$3 | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$2; - return i64toi32_i32$0 | 0; + $1_1 = $4; + $4 = $6; + $0_1 = $5; + $1_1 = $4 | $1_1 | 0; + $0_1 = $0_1 | $2 | 0; + i64toi32_i32$HIGH_BITS = $1_1; + return $0_1 | 0; } - function legalfunc$wasm2js_scratch_store_i64($0_1, $0$hi) { + function legalfunc$wasm2js_scratch_store_i64($0_1, $1_1) { $0_1 = $0_1 | 0; - $0$hi = $0$hi | 0; - var i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $8 = 0, $2 = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $0$hi; - $2 = $0_1; - i64toi32_i32$2 = $0_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = 0; - $8 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + $1_1 = $1_1 | 0; + var $2 = 0, $3 = 0, $4 = 0; + $4 = $0_1; + $3 = 32; + $2 = $3 & 31 | 0; + if (32 >>> 0 <= ($3 & 63 | 0) >>> 0) { + $0_1 = $1_1 >>> $2 | 0 } else { - { - i64toi32_i32$1 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $8 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $2 | 0) - 1 | 0) & $1_1 | 0) << (32 - $2 | 0) | 0 | ($0_1 >>> $2 | 0) | 0 } - legalimport$wasm2js_scratch_store_i64($2 | 0, $8 | 0); + legalimport$wasm2js_scratch_store_i64($4 | 0, $0_1 | 0); } - function _ZN17compiler_builtins3int4sdiv3Mod4mod_17h2cbb7bbf36e41d68E(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; - var i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$2 = 0, i64toi32_i32$0 = 0, i64toi32_i32$3 = 0, i64toi32_i32$5 = 0, var$2$hi = 0, i64toi32_i32$6 = 0, var$2 = 0, $20 = 0, $21 = 0, $7$hi = 0, $9 = 0, $9$hi = 0, $14$hi = 0, $16$hi = 0, $17$hi = 0, $19$hi = 0; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$2 = var$0; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 63; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = i64toi32_i32$0 >> 31 | 0; - $20 = i64toi32_i32$0 >> i64toi32_i32$4 | 0; + function _ZN17compiler_builtins3int4sdiv3Mod4mod_17h2cbb7bbf36e41d68E($0_1, $1_1, $2, $3) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2 = $2 | 0; + $3 = $3 | 0; + var $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0; + $5 = $1_1; + $8 = $0_1; + $7 = 63; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { + { + $4 = $5 >> 31 | 0; + $11 = $5 >> $6 | 0; } } else { { - i64toi32_i32$1 = i64toi32_i32$0 >> i64toi32_i32$4 | 0; - $20 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } - } - var$2 = $20; - var$2$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$1 = var$2$hi; - i64toi32_i32$0 = var$2; - i64toi32_i32$2 = var$0$hi; - i64toi32_i32$3 = var$0; - i64toi32_i32$2 = i64toi32_i32$1 ^ i64toi32_i32$2 | 0; - $7$hi = i64toi32_i32$2; - i64toi32_i32$2 = i64toi32_i32$1; - i64toi32_i32$2 = $7$hi; - i64toi32_i32$1 = i64toi32_i32$0 ^ i64toi32_i32$3 | 0; - i64toi32_i32$0 = var$2$hi; - i64toi32_i32$3 = var$2; - i64toi32_i32$4 = i64toi32_i32$1 - i64toi32_i32$3 | 0; - i64toi32_i32$6 = i64toi32_i32$1 >>> 0 < i64toi32_i32$3 >>> 0; - i64toi32_i32$5 = i64toi32_i32$6 + i64toi32_i32$0 | 0; - i64toi32_i32$5 = i64toi32_i32$2 - i64toi32_i32$5 | 0; - $9 = i64toi32_i32$4; - $9$hi = i64toi32_i32$5; - i64toi32_i32$5 = var$1$hi; - i64toi32_i32$2 = var$1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 63; - i64toi32_i32$0 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = i64toi32_i32$5 >> 31 | 0; - $21 = i64toi32_i32$5 >> i64toi32_i32$0 | 0; + $4 = $5 >> $6 | 0; + $11 = (((1 << $6 | 0) - 1 | 0) & $5 | 0) << (32 - $6 | 0) | 0 | ($8 >>> $6 | 0) | 0; + } + } + $10 = $4; + $4 = $10; + $5 = $11; + $8 = $1_1; + $7 = $0_1; + $8 = $4 ^ $8 | 0; + $4 = $5 ^ $7 | 0; + $5 = $10; + $7 = $11; + $6 = $4 - $7 | 0; + $0_1 = $4 >>> 0 < $7 >>> 0; + $9 = $0_1 + $5 | 0; + $9 = $8 - $9 | 0; + $12 = $6; + $13 = $9; + $9 = $3; + $8 = $2; + $7 = 63; + $5 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { + { + $4 = $9 >> 31 | 0; + $0_1 = $9 >> $5 | 0; } } else { { - i64toi32_i32$1 = i64toi32_i32$5 >> i64toi32_i32$0 | 0; - $21 = (((1 << i64toi32_i32$0 | 0) - 1 | 0) & i64toi32_i32$5 | 0) << (32 - i64toi32_i32$0 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$0 | 0) | 0; - } - } - var$0 = $21; - var$0$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$5 = var$0; - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$3 = var$1; - i64toi32_i32$2 = i64toi32_i32$1 ^ i64toi32_i32$2 | 0; - $14$hi = i64toi32_i32$2; - i64toi32_i32$2 = i64toi32_i32$1; - i64toi32_i32$2 = $14$hi; - i64toi32_i32$1 = i64toi32_i32$5 ^ i64toi32_i32$3 | 0; - i64toi32_i32$5 = var$0$hi; - i64toi32_i32$3 = var$0; - i64toi32_i32$0 = i64toi32_i32$1 - i64toi32_i32$3 | 0; - i64toi32_i32$6 = i64toi32_i32$1 >>> 0 < i64toi32_i32$3 >>> 0; - i64toi32_i32$4 = i64toi32_i32$6 + i64toi32_i32$5 | 0; - i64toi32_i32$4 = i64toi32_i32$2 - i64toi32_i32$4 | 0; - $16$hi = i64toi32_i32$4; - i64toi32_i32$4 = $9$hi; - i64toi32_i32$1 = $16$hi; - i64toi32_i32$1 = __wasm_i64_urem($9 | 0, i64toi32_i32$4 | 0, i64toi32_i32$0 | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$4 = i64toi32_i32$HIGH_BITS; - $17$hi = i64toi32_i32$4; - i64toi32_i32$4 = var$2$hi; - i64toi32_i32$4 = $17$hi; - i64toi32_i32$2 = i64toi32_i32$1; - i64toi32_i32$1 = var$2$hi; - i64toi32_i32$3 = var$2; - i64toi32_i32$1 = i64toi32_i32$4 ^ i64toi32_i32$1 | 0; - $19$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$2$hi; - i64toi32_i32$1 = $19$hi; - i64toi32_i32$4 = i64toi32_i32$2 ^ i64toi32_i32$3 | 0; - i64toi32_i32$2 = var$2$hi; - i64toi32_i32$5 = i64toi32_i32$4 - i64toi32_i32$3 | 0; - i64toi32_i32$6 = i64toi32_i32$4 >>> 0 < i64toi32_i32$3 >>> 0; - i64toi32_i32$0 = i64toi32_i32$6 + i64toi32_i32$2 | 0; - i64toi32_i32$0 = i64toi32_i32$1 - i64toi32_i32$0 | 0; - i64toi32_i32$4 = i64toi32_i32$5; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$4 | 0; - } - - function __wasm_i64_srem(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$0 = var$1$hi; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = _ZN17compiler_builtins3int4sdiv3Mod4mod_17h2cbb7bbf36e41d68E(var$0 | 0, i64toi32_i32$0 | 0, var$1 | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; - } - - function _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$3 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, i64toi32_i32$5 = 0, var$2 = 0, var$3 = 0, var$4 = 0, var$5 = 0, var$5$hi = 0, var$6 = 0, var$6$hi = 0, i64toi32_i32$6 = 0, $37 = 0, $38 = 0, $39 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0, $44 = 0, var$8$hi = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0, var$7$hi = 0, $49 = 0, $63$hi = 0, $65 = 0, $65$hi = 0, $120$hi = 0, $129$hi = 0, $134$hi = 0, var$8 = 0, $140 = 0, $140$hi = 0, $142$hi = 0, $144 = 0, $144$hi = 0, $151 = 0, $151$hi = 0, $154$hi = 0, var$7 = 0, $165$hi = 0; + $4 = $9 >> $5 | 0; + $0_1 = (((1 << $5 | 0) - 1 | 0) & $9 | 0) << (32 - $5 | 0) | 0 | ($8 >>> $5 | 0) | 0; + } + } + $1_1 = $4; + $4 = $1_1; + $9 = $0_1; + $8 = $3; + $7 = $2; + $8 = $4 ^ $8 | 0; + $4 = $9 ^ $7 | 0; + $9 = $1_1; + $7 = $0_1; + $5 = $4 - $7 | 0; + $0_1 = $4 >>> 0 < $7 >>> 0; + $6 = $0_1 + $9 | 0; + $6 = $8 - $6 | 0; + $4 = $6; + $6 = $13; + $4 = __wasm_i64_urem($12 | 0, $6 | 0, $5 | 0, $4 | 0) | 0; + $6 = i64toi32_i32$HIGH_BITS; + $8 = $4; + $4 = $10; + $7 = $11; + $4 = $6 ^ $4 | 0; + $6 = $8 ^ $7 | 0; + $8 = $10; + $9 = $6 - $7 | 0; + $0_1 = $6 >>> 0 < $7 >>> 0; + $5 = $0_1 + $8 | 0; + $5 = $4 - $5 | 0; + $6 = $9; + i64toi32_i32$HIGH_BITS = $5; + return $6 | 0; + } + + function __wasm_i64_srem($0_1, $1_1, $2, $3) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2 = $2 | 0; + $3 = $3 | 0; + $3 = _ZN17compiler_builtins3int4sdiv3Mod4mod_17h2cbb7bbf36e41d68E($0_1 | 0, $1_1 | 0, $2 | 0, $3 | 0) | 0; + $1_1 = i64toi32_i32$HIGH_BITS; + i64toi32_i32$HIGH_BITS = $1_1; + return $3 | 0; + } + + function _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E($0_1, $1_1, $2, $3) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2 = $2 | 0; + $3 = $3 | 0; + var $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $20 = 0; label$1 : { label$2 : { label$3 : { @@ -3883,394 +3279,335 @@ function asmFunc(global, env, buffer) { label$8 : { label$9 : { label$11 : { - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$2 = var$0; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = 0; - $37 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + $7 = $1_1; + $5 = $0_1; + $4 = 32; + $6 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { + $10 = $7 >>> $6 | 0 } else { - { - i64toi32_i32$1 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $37 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $10 = (((1 << $6 | 0) - 1 | 0) & $7 | 0) << (32 - $6 | 0) | 0 | ($5 >>> $6 | 0) | 0 } - var$2 = $37; - if (var$2) { + if ($10) { { - i64toi32_i32$1 = var$1$hi; - var$3 = var$1; - if (!var$3) { + $8 = $2; + if (!$8) { break label$11 } - i64toi32_i32$1 = var$1$hi; - i64toi32_i32$0 = var$1; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $38 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + $9 = $3; + $7 = $2; + $4 = 32; + $6 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { + $11 = $9 >>> $6 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $38 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$0 >>> i64toi32_i32$4 | 0) | 0; - } + $11 = (((1 << $6 | 0) - 1 | 0) & $9 | 0) << (32 - $6 | 0) | 0 | ($7 >>> $6 | 0) | 0 } - var$4 = $38; - if (!var$4) { + if (!$11) { break label$9 } - var$2 = Math_clz32(var$4) - Math_clz32(var$2) | 0; - if (var$2 >>> 0 <= 31 >>> 0) { + $10 = Math_clz32($11) - Math_clz32($10) | 0; + if ($10 >>> 0 <= 31 >>> 0) { break label$8 } break label$2; } } - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$1 = var$1; - i64toi32_i32$0 = 1; - i64toi32_i32$3 = 0; - if (i64toi32_i32$2 >>> 0 > i64toi32_i32$0 >>> 0 | ((i64toi32_i32$2 | 0) == (i64toi32_i32$0 | 0) & i64toi32_i32$1 >>> 0 >= i64toi32_i32$3 >>> 0 | 0) | 0) { + $5 = $3; + $9 = $2; + $7 = 1; + $4 = 0; + if ($5 >>> 0 > $7 >>> 0 | (($5 | 0) == ($7 | 0) & $9 >>> 0 >= $4 >>> 0 | 0) | 0) { break label$2 } - i64toi32_i32$1 = var$0$hi; - var$2 = var$0; - i64toi32_i32$1 = var$1$hi; - var$3 = var$1; - var$2 = (var$2 >>> 0) / (var$3 >>> 0) | 0; - i64toi32_i32$1 = 0; - legalfunc$wasm2js_scratch_store_i64(var$0 - Math_imul(var$2, var$3) | 0 | 0, i64toi32_i32$1 | 0); - i64toi32_i32$1 = 0; - i64toi32_i32$2 = var$2; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$2 | 0; + $10 = $0_1; + $8 = $2; + $10 = ($10 >>> 0) / ($8 >>> 0) | 0; + $9 = 0; + legalfunc$wasm2js_scratch_store_i64($0_1 - Math_imul($10, $8) | 0 | 0, $9 | 0); + $9 = 0; + $5 = $10; + i64toi32_i32$HIGH_BITS = $9; + return $5 | 0; } - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$3 = var$1; - i64toi32_i32$1 = 0; - i64toi32_i32$0 = 32; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = 0; - $39 = i64toi32_i32$2 >>> i64toi32_i32$4 | 0; - } + $5 = $3; + $4 = $2; + $7 = 32; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { + $8 = $5 >>> $6 | 0 } else { - { - i64toi32_i32$1 = i64toi32_i32$2 >>> i64toi32_i32$4 | 0; - $39 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$2 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$3 >>> i64toi32_i32$4 | 0) | 0; - } + $8 = (((1 << $6 | 0) - 1 | 0) & $5 | 0) << (32 - $6 | 0) | 0 | ($4 >>> $6 | 0) | 0 } - var$3 = $39; - i64toi32_i32$1 = var$0$hi; - if (!var$0) { + if (!$0_1) { break label$7 } - if (!var$3) { + if (!$8) { break label$6 } - var$4 = var$3 + -1 | 0; - if (var$4 & var$3 | 0) { + $11 = $8 + -1 | 0; + if ($11 & $8 | 0) { break label$6 } - i64toi32_i32$1 = 0; - i64toi32_i32$2 = var$4 & var$2 | 0; - i64toi32_i32$3 = 0; - i64toi32_i32$0 = 32; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $9 = 0; + $5 = $11 & $10 | 0; + $7 = 32; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$3 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $40 = 0; + $4 = $5 << $6 | 0; + $3 = 0; } } else { { - i64toi32_i32$3 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$1 << i64toi32_i32$4 | 0) | 0; - $40 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $4 = ((1 << $6 | 0) - 1 | 0) & ($5 >>> (32 - $6 | 0) | 0) | 0 | ($9 << $6 | 0) | 0; + $3 = $5 << $6 | 0; } } - $63$hi = i64toi32_i32$3; - i64toi32_i32$3 = var$0$hi; - i64toi32_i32$1 = var$0; - i64toi32_i32$2 = 0; - i64toi32_i32$0 = -1; - i64toi32_i32$2 = i64toi32_i32$3 & i64toi32_i32$2 | 0; - $65 = i64toi32_i32$1 & i64toi32_i32$0 | 0; - $65$hi = i64toi32_i32$2; - i64toi32_i32$2 = $63$hi; - i64toi32_i32$3 = $40; - i64toi32_i32$1 = $65$hi; - i64toi32_i32$0 = $65; - i64toi32_i32$1 = i64toi32_i32$2 | i64toi32_i32$1 | 0; - legalfunc$wasm2js_scratch_store_i64(i64toi32_i32$3 | i64toi32_i32$0 | 0 | 0, i64toi32_i32$1 | 0); - i64toi32_i32$1 = 0; - i64toi32_i32$3 = var$2 >>> ((__wasm_ctz_i32(var$3 | 0) | 0) & 31 | 0) | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$3 | 0; + $2 = $4; + $4 = $1_1; + $9 = $0_1; + $5 = 0; + $7 = -1; + $5 = $4 & $5 | 0; + $7 = $9 & $7 | 0; + $9 = $5; + $5 = $2; + $4 = $3; + $9 = $5 | $9 | 0; + legalfunc$wasm2js_scratch_store_i64($4 | $7 | 0 | 0, $9 | 0); + $9 = 0; + $4 = $10 >>> ((__wasm_ctz_i32($8 | 0) | 0) & 31 | 0) | 0; + i64toi32_i32$HIGH_BITS = $9; + return $4 | 0; } - var$4 = var$3 + -1 | 0; - if (!(var$4 & var$3 | 0)) { + $11 = $8 + -1 | 0; + if (!($11 & $8 | 0)) { break label$5 } - var$2 = (Math_clz32(var$3) + 33 | 0) - Math_clz32(var$2) | 0; - var$3 = 0 - var$2 | 0; + $10 = (Math_clz32($8) + 33 | 0) - Math_clz32($10) | 0; + $8 = 0 - $10 | 0; break label$3; } - var$3 = 63 - var$2 | 0; - var$2 = var$2 + 1 | 0; + $8 = 63 - $10 | 0; + $10 = $10 + 1 | 0; break label$3; } - var$4 = (var$2 >>> 0) / (var$3 >>> 0) | 0; - i64toi32_i32$3 = 0; - i64toi32_i32$2 = var$2 - Math_imul(var$4, var$3) | 0; - i64toi32_i32$1 = 0; - i64toi32_i32$0 = 32; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $11 = ($10 >>> 0) / ($8 >>> 0) | 0; + $4 = 0; + $5 = $10 - Math_imul($11, $8) | 0; + $7 = 32; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $41 = 0; + $9 = $5 << $6 | 0; + $0_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$3 << i64toi32_i32$4 | 0) | 0; - $41 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $9 = ((1 << $6 | 0) - 1 | 0) & ($5 >>> (32 - $6 | 0) | 0) | 0 | ($4 << $6 | 0) | 0; + $0_1 = $5 << $6 | 0; } } - legalfunc$wasm2js_scratch_store_i64($41 | 0, i64toi32_i32$1 | 0); - i64toi32_i32$1 = 0; - i64toi32_i32$2 = var$4; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$2 | 0; + legalfunc$wasm2js_scratch_store_i64($0_1 | 0, $9 | 0); + $9 = 0; + $5 = $11; + i64toi32_i32$HIGH_BITS = $9; + return $5 | 0; } - var$2 = Math_clz32(var$3) - Math_clz32(var$2) | 0; - if (var$2 >>> 0 < 31 >>> 0) { + $10 = Math_clz32($8) - Math_clz32($10) | 0; + if ($10 >>> 0 < 31 >>> 0) { break label$4 } break label$2; } - i64toi32_i32$2 = var$0$hi; - i64toi32_i32$2 = 0; - legalfunc$wasm2js_scratch_store_i64(var$4 & var$0 | 0 | 0, i64toi32_i32$2 | 0); - if ((var$3 | 0) == (1 | 0)) { + $5 = 0; + legalfunc$wasm2js_scratch_store_i64($11 & $0_1 | 0 | 0, $5 | 0); + if (($8 | 0) == (1 | 0)) { break label$1 } - i64toi32_i32$2 = var$0$hi; - i64toi32_i32$2 = 0; - $120$hi = i64toi32_i32$2; - i64toi32_i32$2 = var$0$hi; - i64toi32_i32$3 = var$0; - i64toi32_i32$1 = $120$hi; - i64toi32_i32$0 = __wasm_ctz_i32(var$3 | 0) | 0; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $5 = 0; + $9 = $5; + $5 = $1_1; + $4 = $0_1; + $7 = __wasm_ctz_i32($8 | 0) | 0; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = 0; - $42 = i64toi32_i32$2 >>> i64toi32_i32$4 | 0; + $9 = 0; + $4 = $5 >>> $6 | 0; } } else { { - i64toi32_i32$1 = i64toi32_i32$2 >>> i64toi32_i32$4 | 0; - $42 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$2 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$3 >>> i64toi32_i32$4 | 0) | 0; + $9 = $5 >>> $6 | 0; + $4 = (((1 << $6 | 0) - 1 | 0) & $5 | 0) << (32 - $6 | 0) | 0 | ($4 >>> $6 | 0) | 0; } } - i64toi32_i32$3 = $42; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$3 | 0; + i64toi32_i32$HIGH_BITS = $9; + return $4 | 0; } - var$3 = 63 - var$2 | 0; - var$2 = var$2 + 1 | 0; + $8 = 63 - $10 | 0; + $10 = $10 + 1 | 0; } - i64toi32_i32$3 = var$0$hi; - i64toi32_i32$3 = 0; - $129$hi = i64toi32_i32$3; - i64toi32_i32$3 = var$0$hi; - i64toi32_i32$2 = var$0; - i64toi32_i32$1 = $129$hi; - i64toi32_i32$0 = var$2 & 63 | 0; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $4 = 0; + $9 = $4; + $4 = $1_1; + $5 = $0_1; + $7 = $10 & 63 | 0; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = 0; - $43 = i64toi32_i32$3 >>> i64toi32_i32$4 | 0; + $9 = 0; + $13 = $4 >>> $6 | 0; } } else { { - i64toi32_i32$1 = i64toi32_i32$3 >>> i64toi32_i32$4 | 0; - $43 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$3 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; + $9 = $4 >>> $6 | 0; + $13 = (((1 << $6 | 0) - 1 | 0) & $4 | 0) << (32 - $6 | 0) | 0 | ($5 >>> $6 | 0) | 0; } } - var$5 = $43; - var$5$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$1 = 0; - $134$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$3 = var$0; - i64toi32_i32$2 = $134$hi; - i64toi32_i32$0 = var$3 & 63 | 0; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $11 = $9; + $9 = 0; + $5 = $9; + $9 = $1_1; + $4 = $0_1; + $7 = $8 & 63 | 0; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$2 = i64toi32_i32$3 << i64toi32_i32$4 | 0; - $44 = 0; + $5 = $4 << $6 | 0; + $0_1 = 0; } } else { { - i64toi32_i32$2 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$3 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$1 << i64toi32_i32$4 | 0) | 0; - $44 = i64toi32_i32$3 << i64toi32_i32$4 | 0; + $5 = ((1 << $6 | 0) - 1 | 0) & ($4 >>> (32 - $6 | 0) | 0) | 0 | ($9 << $6 | 0) | 0; + $0_1 = $4 << $6 | 0; } } - var$0 = $44; - var$0$hi = i64toi32_i32$2; + $1_1 = $5; label$13 : { - if (var$2) { + if ($10) { { - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$1 = var$1; - i64toi32_i32$3 = -1; - i64toi32_i32$0 = -1; - i64toi32_i32$4 = i64toi32_i32$1 + i64toi32_i32$0 | 0; - i64toi32_i32$5 = i64toi32_i32$2 + i64toi32_i32$3 | 0; - if (i64toi32_i32$4 >>> 0 < i64toi32_i32$0 >>> 0) { - i64toi32_i32$5 = i64toi32_i32$5 + 1 | 0 + $5 = $3; + $9 = $2; + $4 = -1; + $7 = -1; + $6 = $9 + $7 | 0; + $8 = $5 + $4 | 0; + if ($6 >>> 0 < $7 >>> 0) { + $8 = $8 + 1 | 0 } - var$8 = i64toi32_i32$4; - var$8$hi = i64toi32_i32$5; + $17 = $6; + $15 = $8; label$15 : while (1) { - i64toi32_i32$5 = var$5$hi; - i64toi32_i32$2 = var$5; - i64toi32_i32$1 = 0; - i64toi32_i32$0 = 1; - i64toi32_i32$3 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $8 = $11; + $5 = $13; + $7 = 1; + $4 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$3 | 0; - $45 = 0; + $9 = $5 << $4 | 0; + $12 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$3 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$3 | 0) | 0) | 0 | (i64toi32_i32$5 << i64toi32_i32$3 | 0) | 0; - $45 = i64toi32_i32$2 << i64toi32_i32$3 | 0; + $9 = ((1 << $4 | 0) - 1 | 0) & ($5 >>> (32 - $4 | 0) | 0) | 0 | ($8 << $4 | 0) | 0; + $12 = $5 << $4 | 0; } } - $140 = $45; - $140$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$5 = var$0; - i64toi32_i32$2 = 0; - i64toi32_i32$0 = 63; - i64toi32_i32$3 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $11 = $9; + $9 = $1_1; + $8 = $0_1; + $7 = 63; + $4 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$2 = 0; - $46 = i64toi32_i32$1 >>> i64toi32_i32$3 | 0; + $5 = 0; + $7 = $9 >>> $4 | 0; } } else { { - i64toi32_i32$2 = i64toi32_i32$1 >>> i64toi32_i32$3 | 0; - $46 = (((1 << i64toi32_i32$3 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$3 | 0) | 0 | (i64toi32_i32$5 >>> i64toi32_i32$3 | 0) | 0; + $5 = $9 >>> $4 | 0; + $7 = (((1 << $4 | 0) - 1 | 0) & $9 | 0) << (32 - $4 | 0) | 0 | ($8 >>> $4 | 0) | 0; } } - $142$hi = i64toi32_i32$2; - i64toi32_i32$2 = $140$hi; - i64toi32_i32$1 = $140; - i64toi32_i32$5 = $142$hi; - i64toi32_i32$0 = $46; - i64toi32_i32$5 = i64toi32_i32$2 | i64toi32_i32$5 | 0; - var$5 = i64toi32_i32$1 | i64toi32_i32$0 | 0; - var$5$hi = i64toi32_i32$5; - $144 = var$5; - $144$hi = i64toi32_i32$5; - i64toi32_i32$5 = var$8$hi; - i64toi32_i32$5 = var$5$hi; - i64toi32_i32$5 = var$8$hi; - i64toi32_i32$2 = var$8; - i64toi32_i32$1 = var$5$hi; - i64toi32_i32$0 = var$5; - i64toi32_i32$3 = i64toi32_i32$2 - i64toi32_i32$0 | 0; - i64toi32_i32$6 = i64toi32_i32$2 >>> 0 < i64toi32_i32$0 >>> 0; - i64toi32_i32$4 = i64toi32_i32$6 + i64toi32_i32$1 | 0; - i64toi32_i32$4 = i64toi32_i32$5 - i64toi32_i32$4 | 0; - i64toi32_i32$5 = i64toi32_i32$3; - i64toi32_i32$2 = 0; - i64toi32_i32$0 = 63; - i64toi32_i32$1 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $8 = $5; + $5 = $11; + $9 = $12; + $8 = $5 | $8 | 0; + $13 = $9 | $7 | 0; + $11 = $8; + $18 = $13; + $19 = $8; + $8 = $15; + $5 = $17; + $9 = $11; + $7 = $13; + $4 = $5 - $7 | 0; + $5 = $5 >>> 0 < $7 >>> 0; + $6 = $5 + $9 | 0; + $6 = $8 - $6 | 0; + $8 = $4; + $7 = 63; + $9 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$2 = i64toi32_i32$4 >> 31 | 0; - $47 = i64toi32_i32$4 >> i64toi32_i32$1 | 0; + $5 = $6 >> 31 | 0; + $14 = $6 >> $9 | 0; } } else { { - i64toi32_i32$2 = i64toi32_i32$4 >> i64toi32_i32$1 | 0; - $47 = (((1 << i64toi32_i32$1 | 0) - 1 | 0) & i64toi32_i32$4 | 0) << (32 - i64toi32_i32$1 | 0) | 0 | (i64toi32_i32$5 >>> i64toi32_i32$1 | 0) | 0; + $5 = $6 >> $9 | 0; + $14 = (((1 << $9 | 0) - 1 | 0) & $6 | 0) << (32 - $9 | 0) | 0 | ($8 >>> $9 | 0) | 0; } } - var$6 = $47; - var$6$hi = i64toi32_i32$2; - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$2 = var$6$hi; - i64toi32_i32$4 = var$6; - i64toi32_i32$5 = var$1$hi; - i64toi32_i32$0 = var$1; - i64toi32_i32$5 = i64toi32_i32$2 & i64toi32_i32$5 | 0; - $151 = i64toi32_i32$4 & i64toi32_i32$0 | 0; - $151$hi = i64toi32_i32$5; - i64toi32_i32$5 = $144$hi; - i64toi32_i32$2 = $144; - i64toi32_i32$4 = $151$hi; - i64toi32_i32$0 = $151; - i64toi32_i32$1 = i64toi32_i32$2 - i64toi32_i32$0 | 0; - i64toi32_i32$6 = i64toi32_i32$2 >>> 0 < i64toi32_i32$0 >>> 0; - i64toi32_i32$3 = i64toi32_i32$6 + i64toi32_i32$4 | 0; - i64toi32_i32$3 = i64toi32_i32$5 - i64toi32_i32$3 | 0; - var$5 = i64toi32_i32$1; - var$5$hi = i64toi32_i32$3; - i64toi32_i32$3 = var$0$hi; - i64toi32_i32$5 = var$0; - i64toi32_i32$2 = 0; - i64toi32_i32$0 = 1; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $12 = $5; + $5 = $12; + $6 = $14; + $8 = $3; + $7 = $2; + $8 = $5 & $8 | 0; + $7 = $6 & $7 | 0; + $6 = $8; + $8 = $19; + $5 = $18; + $9 = $5 - $7 | 0; + $5 = $5 >>> 0 < $7 >>> 0; + $4 = $5 + $6 | 0; + $4 = $8 - $4 | 0; + $13 = $9; + $11 = $4; + $4 = $1_1; + $8 = $0_1; + $7 = 1; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$2 = i64toi32_i32$5 << i64toi32_i32$4 | 0; - $48 = 0; + $5 = $8 << $6 | 0; + $4 = 0; } } else { { - i64toi32_i32$2 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$5 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$3 << i64toi32_i32$4 | 0) | 0; - $48 = i64toi32_i32$5 << i64toi32_i32$4 | 0; + $5 = ((1 << $6 | 0) - 1 | 0) & ($8 >>> (32 - $6 | 0) | 0) | 0 | ($4 << $6 | 0) | 0; + $4 = $8 << $6 | 0; } } - $154$hi = i64toi32_i32$2; - i64toi32_i32$2 = var$7$hi; - i64toi32_i32$2 = $154$hi; - i64toi32_i32$3 = $48; - i64toi32_i32$5 = var$7$hi; - i64toi32_i32$0 = var$7; - i64toi32_i32$5 = i64toi32_i32$2 | i64toi32_i32$5 | 0; - var$0 = i64toi32_i32$3 | i64toi32_i32$0 | 0; - var$0$hi = i64toi32_i32$5; - i64toi32_i32$5 = var$6$hi; - i64toi32_i32$2 = var$6; - i64toi32_i32$3 = 0; - i64toi32_i32$0 = 1; - i64toi32_i32$3 = i64toi32_i32$5 & i64toi32_i32$3 | 0; - var$6 = i64toi32_i32$2 & i64toi32_i32$0 | 0; - var$6$hi = i64toi32_i32$3; - var$7 = var$6; - var$7$hi = i64toi32_i32$3; - var$2 = var$2 + -1 | 0; - if (var$2) { + $8 = $16; + $7 = $20; + $8 = $5 | $8 | 0; + $0_1 = $4 | $7 | 0; + $1_1 = $8; + $8 = $12; + $5 = $14; + $4 = 0; + $7 = 1; + $4 = $8 & $4 | 0; + $14 = $5 & $7 | 0; + $12 = $4; + $20 = $14; + $16 = $4; + $10 = $10 + -1 | 0; + if ($10) { continue label$15 } break label$15; @@ -4279,69 +3616,58 @@ function asmFunc(global, env, buffer) { } } } - i64toi32_i32$3 = var$5$hi; - legalfunc$wasm2js_scratch_store_i64(var$5 | 0, i64toi32_i32$3 | 0); - i64toi32_i32$3 = var$0$hi; - i64toi32_i32$5 = var$0; - i64toi32_i32$2 = 0; - i64toi32_i32$0 = 1; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $4 = $11; + legalfunc$wasm2js_scratch_store_i64($13 | 0, $4 | 0); + $4 = $1_1; + $8 = $0_1; + $7 = 1; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$2 = i64toi32_i32$5 << i64toi32_i32$4 | 0; - $49 = 0; + $5 = $8 << $6 | 0; + $4 = 0; } } else { { - i64toi32_i32$2 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$5 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$3 << i64toi32_i32$4 | 0) | 0; - $49 = i64toi32_i32$5 << i64toi32_i32$4 | 0; + $5 = ((1 << $6 | 0) - 1 | 0) & ($8 >>> (32 - $6 | 0) | 0) | 0 | ($4 << $6 | 0) | 0; + $4 = $8 << $6 | 0; } } - $165$hi = i64toi32_i32$2; - i64toi32_i32$2 = var$6$hi; - i64toi32_i32$2 = $165$hi; - i64toi32_i32$3 = $49; - i64toi32_i32$5 = var$6$hi; - i64toi32_i32$0 = var$6; - i64toi32_i32$5 = i64toi32_i32$2 | i64toi32_i32$5 | 0; - i64toi32_i32$3 = i64toi32_i32$3 | i64toi32_i32$0 | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$5; - return i64toi32_i32$3 | 0; - } - i64toi32_i32$3 = var$0$hi; - legalfunc$wasm2js_scratch_store_i64(var$0 | 0, i64toi32_i32$3 | 0); - i64toi32_i32$3 = 0; - var$0 = 0; - var$0$hi = i64toi32_i32$3; - } - i64toi32_i32$3 = var$0$hi; - i64toi32_i32$5 = var$0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$3; - return i64toi32_i32$5 | 0; - } - - function __wasm_i64_urem(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$0 = var$1$hi; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E(var$0 | 0, i64toi32_i32$0 | 0, var$1 | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$0 = legalfunc$wasm2js_scratch_load_i64() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$0 | 0; - } - - function __wasm_ctz_i32(var$0) { - var$0 = var$0 | 0; - if (var$0) { - return 31 - Math_clz32((var$0 + -1 | 0) ^ var$0 | 0) | 0 | 0 + $8 = $12; + $7 = $14; + $8 = $5 | $8 | 0; + $4 = $4 | $7 | 0; + i64toi32_i32$HIGH_BITS = $8; + return $4 | 0; + } + $4 = $1_1; + legalfunc$wasm2js_scratch_store_i64($0_1 | 0, $4 | 0); + $4 = 0; + $0_1 = 0; + $1_1 = $4; + } + $4 = $1_1; + $8 = $0_1; + i64toi32_i32$HIGH_BITS = $4; + return $8 | 0; + } + + function __wasm_i64_urem($0_1, $1_1, $2, $3) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2 = $2 | 0; + $3 = $3 | 0; + $3 = _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E($0_1 | 0, $1_1 | 0, $2 | 0, $3 | 0) | 0; + $1_1 = legalfunc$wasm2js_scratch_load_i64() | 0; + $3 = i64toi32_i32$HIGH_BITS; + i64toi32_i32$HIGH_BITS = $3; + return $1_1 | 0; + } + + function __wasm_ctz_i32($0_1) { + $0_1 = $0_1 | 0; + if ($0_1) { + return 31 - Math_clz32(($0_1 + -1 | 0) ^ $0_1 | 0) | 0 | 0 } return 32 | 0; } @@ -4394,302 +3720,247 @@ function asmFunc(global, env, buffer) { var infinity = global.Infinity; var setTempRet0 = env.setTempRet0; var i64toi32_i32$HIGH_BITS = 0; - function $0(x) { - x = x | 0; - return (x | 0) / (0 | 0) | 0 | 0; + function $0($0_1) { + $0_1 = $0_1 | 0; + return ($0_1 | 0) / (0 | 0) | 0 | 0; } - function $1(x) { - x = x | 0; - return (x >>> 0) / (0 >>> 0) | 0 | 0; + function $1($0_1) { + $0_1 = $0_1 | 0; + return ($0_1 >>> 0) / (0 >>> 0) | 0 | 0; } - function $2(x, x$hi) { - x = x | 0; - x$hi = x$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = x$hi; - i64toi32_i32$1 = 0; - i64toi32_i32$1 = __wasm_i64_sdiv(x | 0, i64toi32_i32$0 | 0, 0 | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + function $2($0_1, $1_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + var $2_1 = 0; + $2_1 = 0; + $2_1 = __wasm_i64_sdiv($0_1 | 0, $1_1 | 0, 0 | 0, $2_1 | 0) | 0; + $1_1 = i64toi32_i32$HIGH_BITS; + i64toi32_i32$HIGH_BITS = $1_1; + return $2_1 | 0; } - function $3(x, x$hi) { - x = x | 0; - x$hi = x$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = x$hi; - i64toi32_i32$1 = 0; - i64toi32_i32$1 = __wasm_i64_udiv(x | 0, i64toi32_i32$0 | 0, 0 | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + function $3($0_1, $1_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + var $2_1 = 0; + $2_1 = 0; + $2_1 = __wasm_i64_udiv($0_1 | 0, $1_1 | 0, 0 | 0, $2_1 | 0) | 0; + $1_1 = i64toi32_i32$HIGH_BITS; + i64toi32_i32$HIGH_BITS = $1_1; + return $2_1 | 0; } function legalstub$2($0_1, $1_1) { $0_1 = $0_1 | 0; $1_1 = $1_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12 = 0, $13 = 0, $4 = 0, $4$hi = 0, $7$hi = 0, $2_1 = 0, $2$hi = 0; - i64toi32_i32$0 = 0; - $4 = $0_1; - $4$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $2_1 = 0, $3_1 = 0, $4 = 0, $5 = 0, $6 = 0; + $3_1 = 0; + $5 = $0_1; + $6 = $3_1; + $3_1 = 0; + $4 = 32; + $2_1 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $12 = 0; + $0_1 = $1_1 << $2_1 | 0; + $4 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $12 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - } - } - $7$hi = i64toi32_i32$1; - i64toi32_i32$1 = $4$hi; - i64toi32_i32$0 = $4; - i64toi32_i32$2 = $7$hi; - i64toi32_i32$3 = $12; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - i64toi32_i32$2 = $2(i64toi32_i32$0 | i64toi32_i32$3 | 0 | 0, i64toi32_i32$2 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $2_1 = i64toi32_i32$2; - $2$hi = i64toi32_i32$0; - i64toi32_i32$1 = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $13 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + $0_1 = ((1 << $2_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $2_1 | 0) | 0) | 0 | ($3_1 << $2_1 | 0) | 0; + $4 = $1_1 << $2_1 | 0; + } + } + $1_1 = $0_1; + $0_1 = $6; + $3_1 = $5; + $1_1 = $0_1 | $1_1 | 0; + $1_1 = $2($3_1 | $4 | 0 | 0, $1_1 | 0) | 0; + $3_1 = i64toi32_i32$HIGH_BITS; + $6 = $1_1; + $5 = $3_1; + $0_1 = $1_1; + $4 = 32; + $2_1 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { + $0_1 = $3_1 >>> $2_1 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $13 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$1 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $2_1 | 0) - 1 | 0) & $3_1 | 0) << (32 - $2_1 | 0) | 0 | ($0_1 >>> $2_1 | 0) | 0 } - setTempRet0($13 | 0); - i64toi32_i32$2 = $2$hi; - return $2_1 | 0; + setTempRet0($0_1 | 0); + return $6 | 0; } function legalstub$3($0_1, $1_1) { $0_1 = $0_1 | 0; $1_1 = $1_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12 = 0, $13 = 0, $4 = 0, $4$hi = 0, $7$hi = 0, $2_1 = 0, $2$hi = 0; - i64toi32_i32$0 = 0; - $4 = $0_1; - $4$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $2_1 = 0, $3_1 = 0, $4 = 0, $5 = 0, $6 = 0; + $3_1 = 0; + $5 = $0_1; + $6 = $3_1; + $3_1 = 0; + $4 = 32; + $2_1 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $12 = 0; + $0_1 = $1_1 << $2_1 | 0; + $4 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $12 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - } - } - $7$hi = i64toi32_i32$1; - i64toi32_i32$1 = $4$hi; - i64toi32_i32$0 = $4; - i64toi32_i32$2 = $7$hi; - i64toi32_i32$3 = $12; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - i64toi32_i32$2 = $3(i64toi32_i32$0 | i64toi32_i32$3 | 0 | 0, i64toi32_i32$2 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $2_1 = i64toi32_i32$2; - $2$hi = i64toi32_i32$0; - i64toi32_i32$1 = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $13 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + $0_1 = ((1 << $2_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $2_1 | 0) | 0) | 0 | ($3_1 << $2_1 | 0) | 0; + $4 = $1_1 << $2_1 | 0; + } + } + $1_1 = $0_1; + $0_1 = $6; + $3_1 = $5; + $1_1 = $0_1 | $1_1 | 0; + $1_1 = $3($3_1 | $4 | 0 | 0, $1_1 | 0) | 0; + $3_1 = i64toi32_i32$HIGH_BITS; + $6 = $1_1; + $5 = $3_1; + $0_1 = $1_1; + $4 = 32; + $2_1 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { + $0_1 = $3_1 >>> $2_1 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $13 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$1 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $2_1 | 0) - 1 | 0) & $3_1 | 0) << (32 - $2_1 | 0) | 0 | ($0_1 >>> $2_1 | 0) | 0 } - setTempRet0($13 | 0); - i64toi32_i32$2 = $2$hi; - return $2_1 | 0; + setTempRet0($0_1 | 0); + return $6 | 0; } - function legalfunc$wasm2js_scratch_store_i64($0_1, $0$hi) { + function legalfunc$wasm2js_scratch_store_i64($0_1, $1_1) { $0_1 = $0_1 | 0; - $0$hi = $0$hi | 0; - var i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $8 = 0, $2_1 = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $0$hi; - $2_1 = $0_1; - i64toi32_i32$2 = $0_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = 0; - $8 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + $1_1 = $1_1 | 0; + var $2_1 = 0, $3_1 = 0, $4 = 0; + $4 = $0_1; + $3_1 = 32; + $2_1 = $3_1 & 31 | 0; + if (32 >>> 0 <= ($3_1 & 63 | 0) >>> 0) { + $0_1 = $1_1 >>> $2_1 | 0 } else { - { - i64toi32_i32$1 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $8 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $2_1 | 0) - 1 | 0) & $1_1 | 0) << (32 - $2_1 | 0) | 0 | ($0_1 >>> $2_1 | 0) | 0 } - legalimport$wasm2js_scratch_store_i64($2_1 | 0, $8 | 0); + legalimport$wasm2js_scratch_store_i64($4 | 0, $0_1 | 0); } - function _ZN17compiler_builtins3int4sdiv3Div3div17he78fc483e41d7ec7E(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; - var i64toi32_i32$1 = 0, i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, i64toi32_i32$0 = 0, i64toi32_i32$5 = 0, var$2 = 0, var$2$hi = 0, i64toi32_i32$6 = 0, $21 = 0, $22 = 0, $23 = 0, $7$hi = 0, $9 = 0, $9$hi = 0, $14$hi = 0, $16$hi = 0, $17 = 0, $17$hi = 0, $23$hi = 0; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$2 = var$0; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 63; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + function _ZN17compiler_builtins3int4sdiv3Div3div17he78fc483e41d7ec7E($0_1, $1_1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + var $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $10 = 0, $11 = 0, $12 = 0; + $8 = $1_1; + $7 = $0_1; + $6 = 63; + $5 = $6 & 31 | 0; + if (32 >>> 0 <= ($6 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$0 >> 31 | 0; - $21 = i64toi32_i32$0 >> i64toi32_i32$4 | 0; + $4 = $8 >> 31 | 0; + $5 = $8 >> $5 | 0; } } else { { - i64toi32_i32$1 = i64toi32_i32$0 >> i64toi32_i32$4 | 0; - $21 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } - } - var$2 = $21; - var$2$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$1 = var$2$hi; - i64toi32_i32$0 = var$2; - i64toi32_i32$2 = var$0$hi; - i64toi32_i32$3 = var$0; - i64toi32_i32$2 = i64toi32_i32$1 ^ i64toi32_i32$2 | 0; - $7$hi = i64toi32_i32$2; - i64toi32_i32$2 = i64toi32_i32$1; - i64toi32_i32$2 = $7$hi; - i64toi32_i32$1 = i64toi32_i32$0 ^ i64toi32_i32$3 | 0; - i64toi32_i32$0 = var$2$hi; - i64toi32_i32$3 = var$2; - i64toi32_i32$4 = i64toi32_i32$1 - i64toi32_i32$3 | 0; - i64toi32_i32$6 = i64toi32_i32$1 >>> 0 < i64toi32_i32$3 >>> 0; - i64toi32_i32$5 = i64toi32_i32$6 + i64toi32_i32$0 | 0; - i64toi32_i32$5 = i64toi32_i32$2 - i64toi32_i32$5 | 0; - $9 = i64toi32_i32$4; - $9$hi = i64toi32_i32$5; - i64toi32_i32$5 = var$1$hi; - i64toi32_i32$2 = var$1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 63; - i64toi32_i32$0 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = i64toi32_i32$5 >> 31 | 0; - $22 = i64toi32_i32$5 >> i64toi32_i32$0 | 0; + $4 = $8 >> $5 | 0; + $5 = (((1 << $5 | 0) - 1 | 0) & $8 | 0) << (32 - $5 | 0) | 0 | ($7 >>> $5 | 0) | 0; + } + } + $10 = $4; + $4 = $10; + $8 = $5; + $7 = $1_1; + $6 = $0_1; + $7 = $4 ^ $7 | 0; + $4 = $8 ^ $6 | 0; + $8 = $10; + $6 = $5; + $5 = $4 - $6 | 0; + $10 = $4 >>> 0 < $6 >>> 0; + $9 = $10 + $8 | 0; + $9 = $7 - $9 | 0; + $11 = $5; + $12 = $9; + $9 = $3_1; + $7 = $2_1; + $6 = 63; + $8 = $6 & 31 | 0; + if (32 >>> 0 <= ($6 & 63 | 0) >>> 0) { + { + $4 = $9 >> 31 | 0; + $5 = $9 >> $8 | 0; } } else { { - i64toi32_i32$1 = i64toi32_i32$5 >> i64toi32_i32$0 | 0; - $22 = (((1 << i64toi32_i32$0 | 0) - 1 | 0) & i64toi32_i32$5 | 0) << (32 - i64toi32_i32$0 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$0 | 0) | 0; - } - } - var$2 = $22; - var$2$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = var$2$hi; - i64toi32_i32$5 = var$2; - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$3 = var$1; - i64toi32_i32$2 = i64toi32_i32$1 ^ i64toi32_i32$2 | 0; - $14$hi = i64toi32_i32$2; - i64toi32_i32$2 = i64toi32_i32$1; - i64toi32_i32$2 = $14$hi; - i64toi32_i32$1 = i64toi32_i32$5 ^ i64toi32_i32$3 | 0; - i64toi32_i32$5 = var$2$hi; - i64toi32_i32$3 = var$2; - i64toi32_i32$0 = i64toi32_i32$1 - i64toi32_i32$3 | 0; - i64toi32_i32$6 = i64toi32_i32$1 >>> 0 < i64toi32_i32$3 >>> 0; - i64toi32_i32$4 = i64toi32_i32$6 + i64toi32_i32$5 | 0; - i64toi32_i32$4 = i64toi32_i32$2 - i64toi32_i32$4 | 0; - $16$hi = i64toi32_i32$4; - i64toi32_i32$4 = $9$hi; - i64toi32_i32$1 = $16$hi; - i64toi32_i32$1 = __wasm_i64_udiv($9 | 0, i64toi32_i32$4 | 0, i64toi32_i32$0 | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$4 = i64toi32_i32$HIGH_BITS; - $17 = i64toi32_i32$1; - $17$hi = i64toi32_i32$4; - i64toi32_i32$4 = var$1$hi; - i64toi32_i32$4 = var$0$hi; - i64toi32_i32$4 = var$1$hi; - i64toi32_i32$2 = var$1; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$3 = var$0; - i64toi32_i32$1 = i64toi32_i32$4 ^ i64toi32_i32$1 | 0; - i64toi32_i32$4 = i64toi32_i32$2 ^ i64toi32_i32$3 | 0; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 63; - i64toi32_i32$5 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = i64toi32_i32$1 >> 31 | 0; - $23 = i64toi32_i32$1 >> i64toi32_i32$5 | 0; + $4 = $9 >> $8 | 0; + $5 = (((1 << $8 | 0) - 1 | 0) & $9 | 0) << (32 - $8 | 0) | 0 | ($7 >>> $8 | 0) | 0; + } + } + $10 = $4; + $4 = $10; + $9 = $5; + $7 = $3_1; + $6 = $2_1; + $7 = $4 ^ $7 | 0; + $4 = $9 ^ $6 | 0; + $9 = $10; + $6 = $5; + $8 = $4 - $6 | 0; + $10 = $4 >>> 0 < $6 >>> 0; + $5 = $10 + $9 | 0; + $5 = $7 - $5 | 0; + $4 = $5; + $5 = $12; + $4 = __wasm_i64_udiv($11 | 0, $5 | 0, $8 | 0, $4 | 0) | 0; + $5 = i64toi32_i32$HIGH_BITS; + $10 = $4; + $8 = $5; + $5 = $3_1; + $7 = $2_1; + $4 = $1_1; + $6 = $0_1; + $4 = $5 ^ $4 | 0; + $5 = $7 ^ $6 | 0; + $6 = 63; + $9 = $6 & 31 | 0; + if (32 >>> 0 <= ($6 & 63 | 0) >>> 0) { + { + $7 = $4 >> 31 | 0; + $0_1 = $4 >> $9 | 0; } } else { { - i64toi32_i32$2 = i64toi32_i32$1 >> i64toi32_i32$5 | 0; - $23 = (((1 << i64toi32_i32$5 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$5 | 0) | 0 | (i64toi32_i32$4 >>> i64toi32_i32$5 | 0) | 0; - } - } - var$0 = $23; - var$0$hi = i64toi32_i32$2; - i64toi32_i32$2 = $17$hi; - i64toi32_i32$1 = $17; - i64toi32_i32$4 = var$0$hi; - i64toi32_i32$3 = var$0; - i64toi32_i32$4 = i64toi32_i32$2 ^ i64toi32_i32$4 | 0; - $23$hi = i64toi32_i32$4; - i64toi32_i32$4 = var$0$hi; - i64toi32_i32$4 = $23$hi; - i64toi32_i32$2 = i64toi32_i32$1 ^ i64toi32_i32$3 | 0; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$5 = i64toi32_i32$2 - i64toi32_i32$3 | 0; - i64toi32_i32$6 = i64toi32_i32$2 >>> 0 < i64toi32_i32$3 >>> 0; - i64toi32_i32$0 = i64toi32_i32$6 + i64toi32_i32$1 | 0; - i64toi32_i32$0 = i64toi32_i32$4 - i64toi32_i32$0 | 0; - i64toi32_i32$2 = i64toi32_i32$5; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$2 | 0; - } - - function _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$3 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, i64toi32_i32$5 = 0, var$2 = 0, var$3 = 0, var$4 = 0, var$5 = 0, var$5$hi = 0, var$6 = 0, var$6$hi = 0, i64toi32_i32$6 = 0, $37 = 0, $38 = 0, $39 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0, $44 = 0, var$8$hi = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0, var$7$hi = 0, $49 = 0, $63$hi = 0, $65 = 0, $65$hi = 0, $120$hi = 0, $129$hi = 0, $134$hi = 0, var$8 = 0, $140 = 0, $140$hi = 0, $142$hi = 0, $144 = 0, $144$hi = 0, $151 = 0, $151$hi = 0, $154$hi = 0, var$7 = 0, $165$hi = 0; + $7 = $4 >> $9 | 0; + $0_1 = (((1 << $9 | 0) - 1 | 0) & $4 | 0) << (32 - $9 | 0) | 0 | ($5 >>> $9 | 0) | 0; + } + } + $1_1 = $7; + $7 = $8; + $4 = $10; + $5 = $1_1; + $6 = $0_1; + $5 = $7 ^ $5 | 0; + $7 = $4 ^ $6 | 0; + $4 = $1_1; + $9 = $7 - $6 | 0; + $10 = $7 >>> 0 < $6 >>> 0; + $8 = $10 + $4 | 0; + $8 = $5 - $8 | 0; + $7 = $9; + i64toi32_i32$HIGH_BITS = $8; + return $7 | 0; + } + + function _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E($0_1, $1_1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + var $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $20 = 0; label$1 : { label$2 : { label$3 : { @@ -4700,394 +3971,335 @@ function asmFunc(global, env, buffer) { label$8 : { label$9 : { label$11 : { - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$2 = var$0; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = 0; - $37 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + $7 = $1_1; + $5 = $0_1; + $4 = 32; + $6 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { + $10 = $7 >>> $6 | 0 } else { - { - i64toi32_i32$1 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $37 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $10 = (((1 << $6 | 0) - 1 | 0) & $7 | 0) << (32 - $6 | 0) | 0 | ($5 >>> $6 | 0) | 0 } - var$2 = $37; - if (var$2) { + if ($10) { { - i64toi32_i32$1 = var$1$hi; - var$3 = var$1; - if (!var$3) { + $8 = $2_1; + if (!$8) { break label$11 } - i64toi32_i32$1 = var$1$hi; - i64toi32_i32$0 = var$1; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $38 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + $9 = $3_1; + $7 = $2_1; + $4 = 32; + $6 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { + $11 = $9 >>> $6 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $38 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$0 >>> i64toi32_i32$4 | 0) | 0; - } + $11 = (((1 << $6 | 0) - 1 | 0) & $9 | 0) << (32 - $6 | 0) | 0 | ($7 >>> $6 | 0) | 0 } - var$4 = $38; - if (!var$4) { + if (!$11) { break label$9 } - var$2 = Math_clz32(var$4) - Math_clz32(var$2) | 0; - if (var$2 >>> 0 <= 31 >>> 0) { + $10 = Math_clz32($11) - Math_clz32($10) | 0; + if ($10 >>> 0 <= 31 >>> 0) { break label$8 } break label$2; } } - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$1 = var$1; - i64toi32_i32$0 = 1; - i64toi32_i32$3 = 0; - if (i64toi32_i32$2 >>> 0 > i64toi32_i32$0 >>> 0 | ((i64toi32_i32$2 | 0) == (i64toi32_i32$0 | 0) & i64toi32_i32$1 >>> 0 >= i64toi32_i32$3 >>> 0 | 0) | 0) { + $5 = $3_1; + $9 = $2_1; + $7 = 1; + $4 = 0; + if ($5 >>> 0 > $7 >>> 0 | (($5 | 0) == ($7 | 0) & $9 >>> 0 >= $4 >>> 0 | 0) | 0) { break label$2 } - i64toi32_i32$1 = var$0$hi; - var$2 = var$0; - i64toi32_i32$1 = var$1$hi; - var$3 = var$1; - var$2 = (var$2 >>> 0) / (var$3 >>> 0) | 0; - i64toi32_i32$1 = 0; - legalfunc$wasm2js_scratch_store_i64(var$0 - Math_imul(var$2, var$3) | 0 | 0, i64toi32_i32$1 | 0); - i64toi32_i32$1 = 0; - i64toi32_i32$2 = var$2; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$2 | 0; + $10 = $0_1; + $8 = $2_1; + $10 = ($10 >>> 0) / ($8 >>> 0) | 0; + $9 = 0; + legalfunc$wasm2js_scratch_store_i64($0_1 - Math_imul($10, $8) | 0 | 0, $9 | 0); + $9 = 0; + $5 = $10; + i64toi32_i32$HIGH_BITS = $9; + return $5 | 0; } - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$3 = var$1; - i64toi32_i32$1 = 0; - i64toi32_i32$0 = 32; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = 0; - $39 = i64toi32_i32$2 >>> i64toi32_i32$4 | 0; - } + $5 = $3_1; + $4 = $2_1; + $7 = 32; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { + $8 = $5 >>> $6 | 0 } else { - { - i64toi32_i32$1 = i64toi32_i32$2 >>> i64toi32_i32$4 | 0; - $39 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$2 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$3 >>> i64toi32_i32$4 | 0) | 0; - } + $8 = (((1 << $6 | 0) - 1 | 0) & $5 | 0) << (32 - $6 | 0) | 0 | ($4 >>> $6 | 0) | 0 } - var$3 = $39; - i64toi32_i32$1 = var$0$hi; - if (!var$0) { + if (!$0_1) { break label$7 } - if (!var$3) { + if (!$8) { break label$6 } - var$4 = var$3 + -1 | 0; - if (var$4 & var$3 | 0) { + $11 = $8 + -1 | 0; + if ($11 & $8 | 0) { break label$6 } - i64toi32_i32$1 = 0; - i64toi32_i32$2 = var$4 & var$2 | 0; - i64toi32_i32$3 = 0; - i64toi32_i32$0 = 32; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $9 = 0; + $5 = $11 & $10 | 0; + $7 = 32; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$3 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $40 = 0; + $4 = $5 << $6 | 0; + $3_1 = 0; } } else { { - i64toi32_i32$3 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$1 << i64toi32_i32$4 | 0) | 0; - $40 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $4 = ((1 << $6 | 0) - 1 | 0) & ($5 >>> (32 - $6 | 0) | 0) | 0 | ($9 << $6 | 0) | 0; + $3_1 = $5 << $6 | 0; } } - $63$hi = i64toi32_i32$3; - i64toi32_i32$3 = var$0$hi; - i64toi32_i32$1 = var$0; - i64toi32_i32$2 = 0; - i64toi32_i32$0 = -1; - i64toi32_i32$2 = i64toi32_i32$3 & i64toi32_i32$2 | 0; - $65 = i64toi32_i32$1 & i64toi32_i32$0 | 0; - $65$hi = i64toi32_i32$2; - i64toi32_i32$2 = $63$hi; - i64toi32_i32$3 = $40; - i64toi32_i32$1 = $65$hi; - i64toi32_i32$0 = $65; - i64toi32_i32$1 = i64toi32_i32$2 | i64toi32_i32$1 | 0; - legalfunc$wasm2js_scratch_store_i64(i64toi32_i32$3 | i64toi32_i32$0 | 0 | 0, i64toi32_i32$1 | 0); - i64toi32_i32$1 = 0; - i64toi32_i32$3 = var$2 >>> ((__wasm_ctz_i32(var$3 | 0) | 0) & 31 | 0) | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$3 | 0; + $2_1 = $4; + $4 = $1_1; + $9 = $0_1; + $5 = 0; + $7 = -1; + $5 = $4 & $5 | 0; + $7 = $9 & $7 | 0; + $9 = $5; + $5 = $2_1; + $4 = $3_1; + $9 = $5 | $9 | 0; + legalfunc$wasm2js_scratch_store_i64($4 | $7 | 0 | 0, $9 | 0); + $9 = 0; + $4 = $10 >>> ((__wasm_ctz_i32($8 | 0) | 0) & 31 | 0) | 0; + i64toi32_i32$HIGH_BITS = $9; + return $4 | 0; } - var$4 = var$3 + -1 | 0; - if (!(var$4 & var$3 | 0)) { + $11 = $8 + -1 | 0; + if (!($11 & $8 | 0)) { break label$5 } - var$2 = (Math_clz32(var$3) + 33 | 0) - Math_clz32(var$2) | 0; - var$3 = 0 - var$2 | 0; + $10 = (Math_clz32($8) + 33 | 0) - Math_clz32($10) | 0; + $8 = 0 - $10 | 0; break label$3; } - var$3 = 63 - var$2 | 0; - var$2 = var$2 + 1 | 0; + $8 = 63 - $10 | 0; + $10 = $10 + 1 | 0; break label$3; } - var$4 = (var$2 >>> 0) / (var$3 >>> 0) | 0; - i64toi32_i32$3 = 0; - i64toi32_i32$2 = var$2 - Math_imul(var$4, var$3) | 0; - i64toi32_i32$1 = 0; - i64toi32_i32$0 = 32; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $11 = ($10 >>> 0) / ($8 >>> 0) | 0; + $4 = 0; + $5 = $10 - Math_imul($11, $8) | 0; + $7 = 32; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $41 = 0; + $9 = $5 << $6 | 0; + $0_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$3 << i64toi32_i32$4 | 0) | 0; - $41 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $9 = ((1 << $6 | 0) - 1 | 0) & ($5 >>> (32 - $6 | 0) | 0) | 0 | ($4 << $6 | 0) | 0; + $0_1 = $5 << $6 | 0; } } - legalfunc$wasm2js_scratch_store_i64($41 | 0, i64toi32_i32$1 | 0); - i64toi32_i32$1 = 0; - i64toi32_i32$2 = var$4; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$2 | 0; + legalfunc$wasm2js_scratch_store_i64($0_1 | 0, $9 | 0); + $9 = 0; + $5 = $11; + i64toi32_i32$HIGH_BITS = $9; + return $5 | 0; } - var$2 = Math_clz32(var$3) - Math_clz32(var$2) | 0; - if (var$2 >>> 0 < 31 >>> 0) { + $10 = Math_clz32($8) - Math_clz32($10) | 0; + if ($10 >>> 0 < 31 >>> 0) { break label$4 } break label$2; } - i64toi32_i32$2 = var$0$hi; - i64toi32_i32$2 = 0; - legalfunc$wasm2js_scratch_store_i64(var$4 & var$0 | 0 | 0, i64toi32_i32$2 | 0); - if ((var$3 | 0) == (1 | 0)) { + $5 = 0; + legalfunc$wasm2js_scratch_store_i64($11 & $0_1 | 0 | 0, $5 | 0); + if (($8 | 0) == (1 | 0)) { break label$1 } - i64toi32_i32$2 = var$0$hi; - i64toi32_i32$2 = 0; - $120$hi = i64toi32_i32$2; - i64toi32_i32$2 = var$0$hi; - i64toi32_i32$3 = var$0; - i64toi32_i32$1 = $120$hi; - i64toi32_i32$0 = __wasm_ctz_i32(var$3 | 0) | 0; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $5 = 0; + $9 = $5; + $5 = $1_1; + $4 = $0_1; + $7 = __wasm_ctz_i32($8 | 0) | 0; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = 0; - $42 = i64toi32_i32$2 >>> i64toi32_i32$4 | 0; + $9 = 0; + $4 = $5 >>> $6 | 0; } } else { { - i64toi32_i32$1 = i64toi32_i32$2 >>> i64toi32_i32$4 | 0; - $42 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$2 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$3 >>> i64toi32_i32$4 | 0) | 0; + $9 = $5 >>> $6 | 0; + $4 = (((1 << $6 | 0) - 1 | 0) & $5 | 0) << (32 - $6 | 0) | 0 | ($4 >>> $6 | 0) | 0; } } - i64toi32_i32$3 = $42; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$3 | 0; + i64toi32_i32$HIGH_BITS = $9; + return $4 | 0; } - var$3 = 63 - var$2 | 0; - var$2 = var$2 + 1 | 0; + $8 = 63 - $10 | 0; + $10 = $10 + 1 | 0; } - i64toi32_i32$3 = var$0$hi; - i64toi32_i32$3 = 0; - $129$hi = i64toi32_i32$3; - i64toi32_i32$3 = var$0$hi; - i64toi32_i32$2 = var$0; - i64toi32_i32$1 = $129$hi; - i64toi32_i32$0 = var$2 & 63 | 0; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $4 = 0; + $9 = $4; + $4 = $1_1; + $5 = $0_1; + $7 = $10 & 63 | 0; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = 0; - $43 = i64toi32_i32$3 >>> i64toi32_i32$4 | 0; + $9 = 0; + $13 = $4 >>> $6 | 0; } } else { { - i64toi32_i32$1 = i64toi32_i32$3 >>> i64toi32_i32$4 | 0; - $43 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$3 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; + $9 = $4 >>> $6 | 0; + $13 = (((1 << $6 | 0) - 1 | 0) & $4 | 0) << (32 - $6 | 0) | 0 | ($5 >>> $6 | 0) | 0; } } - var$5 = $43; - var$5$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$1 = 0; - $134$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$3 = var$0; - i64toi32_i32$2 = $134$hi; - i64toi32_i32$0 = var$3 & 63 | 0; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $11 = $9; + $9 = 0; + $5 = $9; + $9 = $1_1; + $4 = $0_1; + $7 = $8 & 63 | 0; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$2 = i64toi32_i32$3 << i64toi32_i32$4 | 0; - $44 = 0; + $5 = $4 << $6 | 0; + $0_1 = 0; } } else { { - i64toi32_i32$2 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$3 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$1 << i64toi32_i32$4 | 0) | 0; - $44 = i64toi32_i32$3 << i64toi32_i32$4 | 0; + $5 = ((1 << $6 | 0) - 1 | 0) & ($4 >>> (32 - $6 | 0) | 0) | 0 | ($9 << $6 | 0) | 0; + $0_1 = $4 << $6 | 0; } } - var$0 = $44; - var$0$hi = i64toi32_i32$2; + $1_1 = $5; label$13 : { - if (var$2) { + if ($10) { { - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$1 = var$1; - i64toi32_i32$3 = -1; - i64toi32_i32$0 = -1; - i64toi32_i32$4 = i64toi32_i32$1 + i64toi32_i32$0 | 0; - i64toi32_i32$5 = i64toi32_i32$2 + i64toi32_i32$3 | 0; - if (i64toi32_i32$4 >>> 0 < i64toi32_i32$0 >>> 0) { - i64toi32_i32$5 = i64toi32_i32$5 + 1 | 0 + $5 = $3_1; + $9 = $2_1; + $4 = -1; + $7 = -1; + $6 = $9 + $7 | 0; + $8 = $5 + $4 | 0; + if ($6 >>> 0 < $7 >>> 0) { + $8 = $8 + 1 | 0 } - var$8 = i64toi32_i32$4; - var$8$hi = i64toi32_i32$5; + $17 = $6; + $15 = $8; label$15 : while (1) { - i64toi32_i32$5 = var$5$hi; - i64toi32_i32$2 = var$5; - i64toi32_i32$1 = 0; - i64toi32_i32$0 = 1; - i64toi32_i32$3 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $8 = $11; + $5 = $13; + $7 = 1; + $4 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$3 | 0; - $45 = 0; + $9 = $5 << $4 | 0; + $12 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$3 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$3 | 0) | 0) | 0 | (i64toi32_i32$5 << i64toi32_i32$3 | 0) | 0; - $45 = i64toi32_i32$2 << i64toi32_i32$3 | 0; + $9 = ((1 << $4 | 0) - 1 | 0) & ($5 >>> (32 - $4 | 0) | 0) | 0 | ($8 << $4 | 0) | 0; + $12 = $5 << $4 | 0; } } - $140 = $45; - $140$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$5 = var$0; - i64toi32_i32$2 = 0; - i64toi32_i32$0 = 63; - i64toi32_i32$3 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $11 = $9; + $9 = $1_1; + $8 = $0_1; + $7 = 63; + $4 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$2 = 0; - $46 = i64toi32_i32$1 >>> i64toi32_i32$3 | 0; + $5 = 0; + $7 = $9 >>> $4 | 0; } } else { { - i64toi32_i32$2 = i64toi32_i32$1 >>> i64toi32_i32$3 | 0; - $46 = (((1 << i64toi32_i32$3 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$3 | 0) | 0 | (i64toi32_i32$5 >>> i64toi32_i32$3 | 0) | 0; + $5 = $9 >>> $4 | 0; + $7 = (((1 << $4 | 0) - 1 | 0) & $9 | 0) << (32 - $4 | 0) | 0 | ($8 >>> $4 | 0) | 0; } } - $142$hi = i64toi32_i32$2; - i64toi32_i32$2 = $140$hi; - i64toi32_i32$1 = $140; - i64toi32_i32$5 = $142$hi; - i64toi32_i32$0 = $46; - i64toi32_i32$5 = i64toi32_i32$2 | i64toi32_i32$5 | 0; - var$5 = i64toi32_i32$1 | i64toi32_i32$0 | 0; - var$5$hi = i64toi32_i32$5; - $144 = var$5; - $144$hi = i64toi32_i32$5; - i64toi32_i32$5 = var$8$hi; - i64toi32_i32$5 = var$5$hi; - i64toi32_i32$5 = var$8$hi; - i64toi32_i32$2 = var$8; - i64toi32_i32$1 = var$5$hi; - i64toi32_i32$0 = var$5; - i64toi32_i32$3 = i64toi32_i32$2 - i64toi32_i32$0 | 0; - i64toi32_i32$6 = i64toi32_i32$2 >>> 0 < i64toi32_i32$0 >>> 0; - i64toi32_i32$4 = i64toi32_i32$6 + i64toi32_i32$1 | 0; - i64toi32_i32$4 = i64toi32_i32$5 - i64toi32_i32$4 | 0; - i64toi32_i32$5 = i64toi32_i32$3; - i64toi32_i32$2 = 0; - i64toi32_i32$0 = 63; - i64toi32_i32$1 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $8 = $5; + $5 = $11; + $9 = $12; + $8 = $5 | $8 | 0; + $13 = $9 | $7 | 0; + $11 = $8; + $18 = $13; + $19 = $8; + $8 = $15; + $5 = $17; + $9 = $11; + $7 = $13; + $4 = $5 - $7 | 0; + $5 = $5 >>> 0 < $7 >>> 0; + $6 = $5 + $9 | 0; + $6 = $8 - $6 | 0; + $8 = $4; + $7 = 63; + $9 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$2 = i64toi32_i32$4 >> 31 | 0; - $47 = i64toi32_i32$4 >> i64toi32_i32$1 | 0; + $5 = $6 >> 31 | 0; + $14 = $6 >> $9 | 0; } } else { { - i64toi32_i32$2 = i64toi32_i32$4 >> i64toi32_i32$1 | 0; - $47 = (((1 << i64toi32_i32$1 | 0) - 1 | 0) & i64toi32_i32$4 | 0) << (32 - i64toi32_i32$1 | 0) | 0 | (i64toi32_i32$5 >>> i64toi32_i32$1 | 0) | 0; + $5 = $6 >> $9 | 0; + $14 = (((1 << $9 | 0) - 1 | 0) & $6 | 0) << (32 - $9 | 0) | 0 | ($8 >>> $9 | 0) | 0; } } - var$6 = $47; - var$6$hi = i64toi32_i32$2; - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$2 = var$6$hi; - i64toi32_i32$4 = var$6; - i64toi32_i32$5 = var$1$hi; - i64toi32_i32$0 = var$1; - i64toi32_i32$5 = i64toi32_i32$2 & i64toi32_i32$5 | 0; - $151 = i64toi32_i32$4 & i64toi32_i32$0 | 0; - $151$hi = i64toi32_i32$5; - i64toi32_i32$5 = $144$hi; - i64toi32_i32$2 = $144; - i64toi32_i32$4 = $151$hi; - i64toi32_i32$0 = $151; - i64toi32_i32$1 = i64toi32_i32$2 - i64toi32_i32$0 | 0; - i64toi32_i32$6 = i64toi32_i32$2 >>> 0 < i64toi32_i32$0 >>> 0; - i64toi32_i32$3 = i64toi32_i32$6 + i64toi32_i32$4 | 0; - i64toi32_i32$3 = i64toi32_i32$5 - i64toi32_i32$3 | 0; - var$5 = i64toi32_i32$1; - var$5$hi = i64toi32_i32$3; - i64toi32_i32$3 = var$0$hi; - i64toi32_i32$5 = var$0; - i64toi32_i32$2 = 0; - i64toi32_i32$0 = 1; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $12 = $5; + $5 = $12; + $6 = $14; + $8 = $3_1; + $7 = $2_1; + $8 = $5 & $8 | 0; + $7 = $6 & $7 | 0; + $6 = $8; + $8 = $19; + $5 = $18; + $9 = $5 - $7 | 0; + $5 = $5 >>> 0 < $7 >>> 0; + $4 = $5 + $6 | 0; + $4 = $8 - $4 | 0; + $13 = $9; + $11 = $4; + $4 = $1_1; + $8 = $0_1; + $7 = 1; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$2 = i64toi32_i32$5 << i64toi32_i32$4 | 0; - $48 = 0; + $5 = $8 << $6 | 0; + $4 = 0; } } else { { - i64toi32_i32$2 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$5 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$3 << i64toi32_i32$4 | 0) | 0; - $48 = i64toi32_i32$5 << i64toi32_i32$4 | 0; + $5 = ((1 << $6 | 0) - 1 | 0) & ($8 >>> (32 - $6 | 0) | 0) | 0 | ($4 << $6 | 0) | 0; + $4 = $8 << $6 | 0; } } - $154$hi = i64toi32_i32$2; - i64toi32_i32$2 = var$7$hi; - i64toi32_i32$2 = $154$hi; - i64toi32_i32$3 = $48; - i64toi32_i32$5 = var$7$hi; - i64toi32_i32$0 = var$7; - i64toi32_i32$5 = i64toi32_i32$2 | i64toi32_i32$5 | 0; - var$0 = i64toi32_i32$3 | i64toi32_i32$0 | 0; - var$0$hi = i64toi32_i32$5; - i64toi32_i32$5 = var$6$hi; - i64toi32_i32$2 = var$6; - i64toi32_i32$3 = 0; - i64toi32_i32$0 = 1; - i64toi32_i32$3 = i64toi32_i32$5 & i64toi32_i32$3 | 0; - var$6 = i64toi32_i32$2 & i64toi32_i32$0 | 0; - var$6$hi = i64toi32_i32$3; - var$7 = var$6; - var$7$hi = i64toi32_i32$3; - var$2 = var$2 + -1 | 0; - if (var$2) { + $8 = $16; + $7 = $20; + $8 = $5 | $8 | 0; + $0_1 = $4 | $7 | 0; + $1_1 = $8; + $8 = $12; + $5 = $14; + $4 = 0; + $7 = 1; + $4 = $8 & $4 | 0; + $14 = $5 & $7 | 0; + $12 = $4; + $20 = $14; + $16 = $4; + $10 = $10 + -1 | 0; + if ($10) { continue label$15 } break label$15; @@ -5096,83 +4308,68 @@ function asmFunc(global, env, buffer) { } } } - i64toi32_i32$3 = var$5$hi; - legalfunc$wasm2js_scratch_store_i64(var$5 | 0, i64toi32_i32$3 | 0); - i64toi32_i32$3 = var$0$hi; - i64toi32_i32$5 = var$0; - i64toi32_i32$2 = 0; - i64toi32_i32$0 = 1; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $4 = $11; + legalfunc$wasm2js_scratch_store_i64($13 | 0, $4 | 0); + $4 = $1_1; + $8 = $0_1; + $7 = 1; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$2 = i64toi32_i32$5 << i64toi32_i32$4 | 0; - $49 = 0; + $5 = $8 << $6 | 0; + $4 = 0; } } else { { - i64toi32_i32$2 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$5 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$3 << i64toi32_i32$4 | 0) | 0; - $49 = i64toi32_i32$5 << i64toi32_i32$4 | 0; + $5 = ((1 << $6 | 0) - 1 | 0) & ($8 >>> (32 - $6 | 0) | 0) | 0 | ($4 << $6 | 0) | 0; + $4 = $8 << $6 | 0; } } - $165$hi = i64toi32_i32$2; - i64toi32_i32$2 = var$6$hi; - i64toi32_i32$2 = $165$hi; - i64toi32_i32$3 = $49; - i64toi32_i32$5 = var$6$hi; - i64toi32_i32$0 = var$6; - i64toi32_i32$5 = i64toi32_i32$2 | i64toi32_i32$5 | 0; - i64toi32_i32$3 = i64toi32_i32$3 | i64toi32_i32$0 | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$5; - return i64toi32_i32$3 | 0; - } - i64toi32_i32$3 = var$0$hi; - legalfunc$wasm2js_scratch_store_i64(var$0 | 0, i64toi32_i32$3 | 0); - i64toi32_i32$3 = 0; - var$0 = 0; - var$0$hi = i64toi32_i32$3; - } - i64toi32_i32$3 = var$0$hi; - i64toi32_i32$5 = var$0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$3; - return i64toi32_i32$5 | 0; - } - - function __wasm_i64_sdiv(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$0 = var$1$hi; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = _ZN17compiler_builtins3int4sdiv3Div3div17he78fc483e41d7ec7E(var$0 | 0, i64toi32_i32$0 | 0, var$1 | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; - } - - function __wasm_i64_udiv(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$0 = var$1$hi; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E(var$0 | 0, i64toi32_i32$0 | 0, var$1 | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; - } - - function __wasm_ctz_i32(var$0) { - var$0 = var$0 | 0; - if (var$0) { - return 31 - Math_clz32((var$0 + -1 | 0) ^ var$0 | 0) | 0 | 0 + $8 = $12; + $7 = $14; + $8 = $5 | $8 | 0; + $4 = $4 | $7 | 0; + i64toi32_i32$HIGH_BITS = $8; + return $4 | 0; + } + $4 = $1_1; + legalfunc$wasm2js_scratch_store_i64($0_1 | 0, $4 | 0); + $4 = 0; + $0_1 = 0; + $1_1 = $4; + } + $4 = $1_1; + $8 = $0_1; + i64toi32_i32$HIGH_BITS = $4; + return $8 | 0; + } + + function __wasm_i64_sdiv($0_1, $1_1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + $3_1 = _ZN17compiler_builtins3int4sdiv3Div3div17he78fc483e41d7ec7E($0_1 | 0, $1_1 | 0, $2_1 | 0, $3_1 | 0) | 0; + $1_1 = i64toi32_i32$HIGH_BITS; + i64toi32_i32$HIGH_BITS = $1_1; + return $3_1 | 0; + } + + function __wasm_i64_udiv($0_1, $1_1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + $3_1 = _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E($0_1 | 0, $1_1 | 0, $2_1 | 0, $3_1 | 0) | 0; + $1_1 = i64toi32_i32$HIGH_BITS; + i64toi32_i32$HIGH_BITS = $1_1; + return $3_1 | 0; + } + + function __wasm_ctz_i32($0_1) { + $0_1 = $0_1 | 0; + if ($0_1) { + return 31 - Math_clz32(($0_1 + -1 | 0) ^ $0_1 | 0) | 0 | 0 } return 32 | 0; } @@ -5229,302 +4426,247 @@ function asmFunc(global, env, buffer) { var infinity = global.Infinity; var setTempRet0 = env.setTempRet0; var i64toi32_i32$HIGH_BITS = 0; - function $0(x) { - x = x | 0; - return (x | 0) / (3 | 0) | 0 | 0; + function $0($0_1) { + $0_1 = $0_1 | 0; + return ($0_1 | 0) / (3 | 0) | 0 | 0; } - function $1(x) { - x = x | 0; - return (x >>> 0) / (3 >>> 0) | 0 | 0; + function $1($0_1) { + $0_1 = $0_1 | 0; + return ($0_1 >>> 0) / (3 >>> 0) | 0 | 0; } - function $2(x, x$hi) { - x = x | 0; - x$hi = x$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = x$hi; - i64toi32_i32$1 = 0; - i64toi32_i32$1 = __wasm_i64_sdiv(x | 0, i64toi32_i32$0 | 0, 3 | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + function $2($0_1, $1_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + var $2_1 = 0; + $2_1 = 0; + $2_1 = __wasm_i64_sdiv($0_1 | 0, $1_1 | 0, 3 | 0, $2_1 | 0) | 0; + $1_1 = i64toi32_i32$HIGH_BITS; + i64toi32_i32$HIGH_BITS = $1_1; + return $2_1 | 0; } - function $3(x, x$hi) { - x = x | 0; - x$hi = x$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = x$hi; - i64toi32_i32$1 = 0; - i64toi32_i32$1 = __wasm_i64_udiv(x | 0, i64toi32_i32$0 | 0, 3 | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + function $3($0_1, $1_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + var $2_1 = 0; + $2_1 = 0; + $2_1 = __wasm_i64_udiv($0_1 | 0, $1_1 | 0, 3 | 0, $2_1 | 0) | 0; + $1_1 = i64toi32_i32$HIGH_BITS; + i64toi32_i32$HIGH_BITS = $1_1; + return $2_1 | 0; } function legalstub$2($0_1, $1_1) { $0_1 = $0_1 | 0; $1_1 = $1_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12 = 0, $13 = 0, $4 = 0, $4$hi = 0, $7$hi = 0, $2_1 = 0, $2$hi = 0; - i64toi32_i32$0 = 0; - $4 = $0_1; - $4$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $2_1 = 0, $3_1 = 0, $4 = 0, $5 = 0, $6 = 0; + $3_1 = 0; + $5 = $0_1; + $6 = $3_1; + $3_1 = 0; + $4 = 32; + $2_1 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $12 = 0; + $0_1 = $1_1 << $2_1 | 0; + $4 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $12 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - } - } - $7$hi = i64toi32_i32$1; - i64toi32_i32$1 = $4$hi; - i64toi32_i32$0 = $4; - i64toi32_i32$2 = $7$hi; - i64toi32_i32$3 = $12; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - i64toi32_i32$2 = $2(i64toi32_i32$0 | i64toi32_i32$3 | 0 | 0, i64toi32_i32$2 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $2_1 = i64toi32_i32$2; - $2$hi = i64toi32_i32$0; - i64toi32_i32$1 = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $13 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + $0_1 = ((1 << $2_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $2_1 | 0) | 0) | 0 | ($3_1 << $2_1 | 0) | 0; + $4 = $1_1 << $2_1 | 0; + } + } + $1_1 = $0_1; + $0_1 = $6; + $3_1 = $5; + $1_1 = $0_1 | $1_1 | 0; + $1_1 = $2($3_1 | $4 | 0 | 0, $1_1 | 0) | 0; + $3_1 = i64toi32_i32$HIGH_BITS; + $6 = $1_1; + $5 = $3_1; + $0_1 = $1_1; + $4 = 32; + $2_1 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { + $0_1 = $3_1 >>> $2_1 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $13 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$1 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $2_1 | 0) - 1 | 0) & $3_1 | 0) << (32 - $2_1 | 0) | 0 | ($0_1 >>> $2_1 | 0) | 0 } - setTempRet0($13 | 0); - i64toi32_i32$2 = $2$hi; - return $2_1 | 0; + setTempRet0($0_1 | 0); + return $6 | 0; } function legalstub$3($0_1, $1_1) { $0_1 = $0_1 | 0; $1_1 = $1_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12 = 0, $13 = 0, $4 = 0, $4$hi = 0, $7$hi = 0, $2_1 = 0, $2$hi = 0; - i64toi32_i32$0 = 0; - $4 = $0_1; - $4$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $2_1 = 0, $3_1 = 0, $4 = 0, $5 = 0, $6 = 0; + $3_1 = 0; + $5 = $0_1; + $6 = $3_1; + $3_1 = 0; + $4 = 32; + $2_1 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $12 = 0; + $0_1 = $1_1 << $2_1 | 0; + $4 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $12 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - } - } - $7$hi = i64toi32_i32$1; - i64toi32_i32$1 = $4$hi; - i64toi32_i32$0 = $4; - i64toi32_i32$2 = $7$hi; - i64toi32_i32$3 = $12; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - i64toi32_i32$2 = $3(i64toi32_i32$0 | i64toi32_i32$3 | 0 | 0, i64toi32_i32$2 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $2_1 = i64toi32_i32$2; - $2$hi = i64toi32_i32$0; - i64toi32_i32$1 = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $13 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + $0_1 = ((1 << $2_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $2_1 | 0) | 0) | 0 | ($3_1 << $2_1 | 0) | 0; + $4 = $1_1 << $2_1 | 0; + } + } + $1_1 = $0_1; + $0_1 = $6; + $3_1 = $5; + $1_1 = $0_1 | $1_1 | 0; + $1_1 = $3($3_1 | $4 | 0 | 0, $1_1 | 0) | 0; + $3_1 = i64toi32_i32$HIGH_BITS; + $6 = $1_1; + $5 = $3_1; + $0_1 = $1_1; + $4 = 32; + $2_1 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { + $0_1 = $3_1 >>> $2_1 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $13 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$1 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $2_1 | 0) - 1 | 0) & $3_1 | 0) << (32 - $2_1 | 0) | 0 | ($0_1 >>> $2_1 | 0) | 0 } - setTempRet0($13 | 0); - i64toi32_i32$2 = $2$hi; - return $2_1 | 0; + setTempRet0($0_1 | 0); + return $6 | 0; } - function legalfunc$wasm2js_scratch_store_i64($0_1, $0$hi) { + function legalfunc$wasm2js_scratch_store_i64($0_1, $1_1) { $0_1 = $0_1 | 0; - $0$hi = $0$hi | 0; - var i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $8 = 0, $2_1 = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $0$hi; - $2_1 = $0_1; - i64toi32_i32$2 = $0_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = 0; - $8 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + $1_1 = $1_1 | 0; + var $2_1 = 0, $3_1 = 0, $4 = 0; + $4 = $0_1; + $3_1 = 32; + $2_1 = $3_1 & 31 | 0; + if (32 >>> 0 <= ($3_1 & 63 | 0) >>> 0) { + $0_1 = $1_1 >>> $2_1 | 0 } else { - { - i64toi32_i32$1 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $8 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $2_1 | 0) - 1 | 0) & $1_1 | 0) << (32 - $2_1 | 0) | 0 | ($0_1 >>> $2_1 | 0) | 0 } - legalimport$wasm2js_scratch_store_i64($2_1 | 0, $8 | 0); + legalimport$wasm2js_scratch_store_i64($4 | 0, $0_1 | 0); } - function _ZN17compiler_builtins3int4sdiv3Div3div17he78fc483e41d7ec7E(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; - var i64toi32_i32$1 = 0, i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, i64toi32_i32$0 = 0, i64toi32_i32$5 = 0, var$2 = 0, var$2$hi = 0, i64toi32_i32$6 = 0, $21 = 0, $22 = 0, $23 = 0, $7$hi = 0, $9 = 0, $9$hi = 0, $14$hi = 0, $16$hi = 0, $17 = 0, $17$hi = 0, $23$hi = 0; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$2 = var$0; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 63; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + function _ZN17compiler_builtins3int4sdiv3Div3div17he78fc483e41d7ec7E($0_1, $1_1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + var $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $10 = 0, $11 = 0, $12 = 0; + $8 = $1_1; + $7 = $0_1; + $6 = 63; + $5 = $6 & 31 | 0; + if (32 >>> 0 <= ($6 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$0 >> 31 | 0; - $21 = i64toi32_i32$0 >> i64toi32_i32$4 | 0; + $4 = $8 >> 31 | 0; + $5 = $8 >> $5 | 0; } } else { { - i64toi32_i32$1 = i64toi32_i32$0 >> i64toi32_i32$4 | 0; - $21 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } - } - var$2 = $21; - var$2$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$1 = var$2$hi; - i64toi32_i32$0 = var$2; - i64toi32_i32$2 = var$0$hi; - i64toi32_i32$3 = var$0; - i64toi32_i32$2 = i64toi32_i32$1 ^ i64toi32_i32$2 | 0; - $7$hi = i64toi32_i32$2; - i64toi32_i32$2 = i64toi32_i32$1; - i64toi32_i32$2 = $7$hi; - i64toi32_i32$1 = i64toi32_i32$0 ^ i64toi32_i32$3 | 0; - i64toi32_i32$0 = var$2$hi; - i64toi32_i32$3 = var$2; - i64toi32_i32$4 = i64toi32_i32$1 - i64toi32_i32$3 | 0; - i64toi32_i32$6 = i64toi32_i32$1 >>> 0 < i64toi32_i32$3 >>> 0; - i64toi32_i32$5 = i64toi32_i32$6 + i64toi32_i32$0 | 0; - i64toi32_i32$5 = i64toi32_i32$2 - i64toi32_i32$5 | 0; - $9 = i64toi32_i32$4; - $9$hi = i64toi32_i32$5; - i64toi32_i32$5 = var$1$hi; - i64toi32_i32$2 = var$1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 63; - i64toi32_i32$0 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = i64toi32_i32$5 >> 31 | 0; - $22 = i64toi32_i32$5 >> i64toi32_i32$0 | 0; + $4 = $8 >> $5 | 0; + $5 = (((1 << $5 | 0) - 1 | 0) & $8 | 0) << (32 - $5 | 0) | 0 | ($7 >>> $5 | 0) | 0; + } + } + $10 = $4; + $4 = $10; + $8 = $5; + $7 = $1_1; + $6 = $0_1; + $7 = $4 ^ $7 | 0; + $4 = $8 ^ $6 | 0; + $8 = $10; + $6 = $5; + $5 = $4 - $6 | 0; + $10 = $4 >>> 0 < $6 >>> 0; + $9 = $10 + $8 | 0; + $9 = $7 - $9 | 0; + $11 = $5; + $12 = $9; + $9 = $3_1; + $7 = $2_1; + $6 = 63; + $8 = $6 & 31 | 0; + if (32 >>> 0 <= ($6 & 63 | 0) >>> 0) { + { + $4 = $9 >> 31 | 0; + $5 = $9 >> $8 | 0; } } else { { - i64toi32_i32$1 = i64toi32_i32$5 >> i64toi32_i32$0 | 0; - $22 = (((1 << i64toi32_i32$0 | 0) - 1 | 0) & i64toi32_i32$5 | 0) << (32 - i64toi32_i32$0 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$0 | 0) | 0; - } - } - var$2 = $22; - var$2$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = var$2$hi; - i64toi32_i32$5 = var$2; - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$3 = var$1; - i64toi32_i32$2 = i64toi32_i32$1 ^ i64toi32_i32$2 | 0; - $14$hi = i64toi32_i32$2; - i64toi32_i32$2 = i64toi32_i32$1; - i64toi32_i32$2 = $14$hi; - i64toi32_i32$1 = i64toi32_i32$5 ^ i64toi32_i32$3 | 0; - i64toi32_i32$5 = var$2$hi; - i64toi32_i32$3 = var$2; - i64toi32_i32$0 = i64toi32_i32$1 - i64toi32_i32$3 | 0; - i64toi32_i32$6 = i64toi32_i32$1 >>> 0 < i64toi32_i32$3 >>> 0; - i64toi32_i32$4 = i64toi32_i32$6 + i64toi32_i32$5 | 0; - i64toi32_i32$4 = i64toi32_i32$2 - i64toi32_i32$4 | 0; - $16$hi = i64toi32_i32$4; - i64toi32_i32$4 = $9$hi; - i64toi32_i32$1 = $16$hi; - i64toi32_i32$1 = __wasm_i64_udiv($9 | 0, i64toi32_i32$4 | 0, i64toi32_i32$0 | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$4 = i64toi32_i32$HIGH_BITS; - $17 = i64toi32_i32$1; - $17$hi = i64toi32_i32$4; - i64toi32_i32$4 = var$1$hi; - i64toi32_i32$4 = var$0$hi; - i64toi32_i32$4 = var$1$hi; - i64toi32_i32$2 = var$1; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$3 = var$0; - i64toi32_i32$1 = i64toi32_i32$4 ^ i64toi32_i32$1 | 0; - i64toi32_i32$4 = i64toi32_i32$2 ^ i64toi32_i32$3 | 0; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 63; - i64toi32_i32$5 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = i64toi32_i32$1 >> 31 | 0; - $23 = i64toi32_i32$1 >> i64toi32_i32$5 | 0; + $4 = $9 >> $8 | 0; + $5 = (((1 << $8 | 0) - 1 | 0) & $9 | 0) << (32 - $8 | 0) | 0 | ($7 >>> $8 | 0) | 0; + } + } + $10 = $4; + $4 = $10; + $9 = $5; + $7 = $3_1; + $6 = $2_1; + $7 = $4 ^ $7 | 0; + $4 = $9 ^ $6 | 0; + $9 = $10; + $6 = $5; + $8 = $4 - $6 | 0; + $10 = $4 >>> 0 < $6 >>> 0; + $5 = $10 + $9 | 0; + $5 = $7 - $5 | 0; + $4 = $5; + $5 = $12; + $4 = __wasm_i64_udiv($11 | 0, $5 | 0, $8 | 0, $4 | 0) | 0; + $5 = i64toi32_i32$HIGH_BITS; + $10 = $4; + $8 = $5; + $5 = $3_1; + $7 = $2_1; + $4 = $1_1; + $6 = $0_1; + $4 = $5 ^ $4 | 0; + $5 = $7 ^ $6 | 0; + $6 = 63; + $9 = $6 & 31 | 0; + if (32 >>> 0 <= ($6 & 63 | 0) >>> 0) { + { + $7 = $4 >> 31 | 0; + $0_1 = $4 >> $9 | 0; } } else { { - i64toi32_i32$2 = i64toi32_i32$1 >> i64toi32_i32$5 | 0; - $23 = (((1 << i64toi32_i32$5 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$5 | 0) | 0 | (i64toi32_i32$4 >>> i64toi32_i32$5 | 0) | 0; - } - } - var$0 = $23; - var$0$hi = i64toi32_i32$2; - i64toi32_i32$2 = $17$hi; - i64toi32_i32$1 = $17; - i64toi32_i32$4 = var$0$hi; - i64toi32_i32$3 = var$0; - i64toi32_i32$4 = i64toi32_i32$2 ^ i64toi32_i32$4 | 0; - $23$hi = i64toi32_i32$4; - i64toi32_i32$4 = var$0$hi; - i64toi32_i32$4 = $23$hi; - i64toi32_i32$2 = i64toi32_i32$1 ^ i64toi32_i32$3 | 0; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$5 = i64toi32_i32$2 - i64toi32_i32$3 | 0; - i64toi32_i32$6 = i64toi32_i32$2 >>> 0 < i64toi32_i32$3 >>> 0; - i64toi32_i32$0 = i64toi32_i32$6 + i64toi32_i32$1 | 0; - i64toi32_i32$0 = i64toi32_i32$4 - i64toi32_i32$0 | 0; - i64toi32_i32$2 = i64toi32_i32$5; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$2 | 0; - } - - function _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$3 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, i64toi32_i32$5 = 0, var$2 = 0, var$3 = 0, var$4 = 0, var$5 = 0, var$5$hi = 0, var$6 = 0, var$6$hi = 0, i64toi32_i32$6 = 0, $37 = 0, $38 = 0, $39 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0, $44 = 0, var$8$hi = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0, var$7$hi = 0, $49 = 0, $63$hi = 0, $65 = 0, $65$hi = 0, $120$hi = 0, $129$hi = 0, $134$hi = 0, var$8 = 0, $140 = 0, $140$hi = 0, $142$hi = 0, $144 = 0, $144$hi = 0, $151 = 0, $151$hi = 0, $154$hi = 0, var$7 = 0, $165$hi = 0; + $7 = $4 >> $9 | 0; + $0_1 = (((1 << $9 | 0) - 1 | 0) & $4 | 0) << (32 - $9 | 0) | 0 | ($5 >>> $9 | 0) | 0; + } + } + $1_1 = $7; + $7 = $8; + $4 = $10; + $5 = $1_1; + $6 = $0_1; + $5 = $7 ^ $5 | 0; + $7 = $4 ^ $6 | 0; + $4 = $1_1; + $9 = $7 - $6 | 0; + $10 = $7 >>> 0 < $6 >>> 0; + $8 = $10 + $4 | 0; + $8 = $5 - $8 | 0; + $7 = $9; + i64toi32_i32$HIGH_BITS = $8; + return $7 | 0; + } + + function _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E($0_1, $1_1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + var $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $20 = 0; label$1 : { label$2 : { label$3 : { @@ -5535,394 +4677,335 @@ function asmFunc(global, env, buffer) { label$8 : { label$9 : { label$11 : { - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$2 = var$0; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = 0; - $37 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + $7 = $1_1; + $5 = $0_1; + $4 = 32; + $6 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { + $10 = $7 >>> $6 | 0 } else { - { - i64toi32_i32$1 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $37 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $10 = (((1 << $6 | 0) - 1 | 0) & $7 | 0) << (32 - $6 | 0) | 0 | ($5 >>> $6 | 0) | 0 } - var$2 = $37; - if (var$2) { + if ($10) { { - i64toi32_i32$1 = var$1$hi; - var$3 = var$1; - if (!var$3) { + $8 = $2_1; + if (!$8) { break label$11 } - i64toi32_i32$1 = var$1$hi; - i64toi32_i32$0 = var$1; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $38 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + $9 = $3_1; + $7 = $2_1; + $4 = 32; + $6 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { + $11 = $9 >>> $6 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $38 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$0 >>> i64toi32_i32$4 | 0) | 0; - } + $11 = (((1 << $6 | 0) - 1 | 0) & $9 | 0) << (32 - $6 | 0) | 0 | ($7 >>> $6 | 0) | 0 } - var$4 = $38; - if (!var$4) { + if (!$11) { break label$9 } - var$2 = Math_clz32(var$4) - Math_clz32(var$2) | 0; - if (var$2 >>> 0 <= 31 >>> 0) { + $10 = Math_clz32($11) - Math_clz32($10) | 0; + if ($10 >>> 0 <= 31 >>> 0) { break label$8 } break label$2; } } - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$1 = var$1; - i64toi32_i32$0 = 1; - i64toi32_i32$3 = 0; - if (i64toi32_i32$2 >>> 0 > i64toi32_i32$0 >>> 0 | ((i64toi32_i32$2 | 0) == (i64toi32_i32$0 | 0) & i64toi32_i32$1 >>> 0 >= i64toi32_i32$3 >>> 0 | 0) | 0) { + $5 = $3_1; + $9 = $2_1; + $7 = 1; + $4 = 0; + if ($5 >>> 0 > $7 >>> 0 | (($5 | 0) == ($7 | 0) & $9 >>> 0 >= $4 >>> 0 | 0) | 0) { break label$2 } - i64toi32_i32$1 = var$0$hi; - var$2 = var$0; - i64toi32_i32$1 = var$1$hi; - var$3 = var$1; - var$2 = (var$2 >>> 0) / (var$3 >>> 0) | 0; - i64toi32_i32$1 = 0; - legalfunc$wasm2js_scratch_store_i64(var$0 - Math_imul(var$2, var$3) | 0 | 0, i64toi32_i32$1 | 0); - i64toi32_i32$1 = 0; - i64toi32_i32$2 = var$2; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$2 | 0; + $10 = $0_1; + $8 = $2_1; + $10 = ($10 >>> 0) / ($8 >>> 0) | 0; + $9 = 0; + legalfunc$wasm2js_scratch_store_i64($0_1 - Math_imul($10, $8) | 0 | 0, $9 | 0); + $9 = 0; + $5 = $10; + i64toi32_i32$HIGH_BITS = $9; + return $5 | 0; } - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$3 = var$1; - i64toi32_i32$1 = 0; - i64toi32_i32$0 = 32; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = 0; - $39 = i64toi32_i32$2 >>> i64toi32_i32$4 | 0; - } + $5 = $3_1; + $4 = $2_1; + $7 = 32; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { + $8 = $5 >>> $6 | 0 } else { - { - i64toi32_i32$1 = i64toi32_i32$2 >>> i64toi32_i32$4 | 0; - $39 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$2 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$3 >>> i64toi32_i32$4 | 0) | 0; - } + $8 = (((1 << $6 | 0) - 1 | 0) & $5 | 0) << (32 - $6 | 0) | 0 | ($4 >>> $6 | 0) | 0 } - var$3 = $39; - i64toi32_i32$1 = var$0$hi; - if (!var$0) { + if (!$0_1) { break label$7 } - if (!var$3) { + if (!$8) { break label$6 } - var$4 = var$3 + -1 | 0; - if (var$4 & var$3 | 0) { + $11 = $8 + -1 | 0; + if ($11 & $8 | 0) { break label$6 } - i64toi32_i32$1 = 0; - i64toi32_i32$2 = var$4 & var$2 | 0; - i64toi32_i32$3 = 0; - i64toi32_i32$0 = 32; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $9 = 0; + $5 = $11 & $10 | 0; + $7 = 32; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$3 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $40 = 0; + $4 = $5 << $6 | 0; + $3_1 = 0; } } else { { - i64toi32_i32$3 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$1 << i64toi32_i32$4 | 0) | 0; - $40 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $4 = ((1 << $6 | 0) - 1 | 0) & ($5 >>> (32 - $6 | 0) | 0) | 0 | ($9 << $6 | 0) | 0; + $3_1 = $5 << $6 | 0; } } - $63$hi = i64toi32_i32$3; - i64toi32_i32$3 = var$0$hi; - i64toi32_i32$1 = var$0; - i64toi32_i32$2 = 0; - i64toi32_i32$0 = -1; - i64toi32_i32$2 = i64toi32_i32$3 & i64toi32_i32$2 | 0; - $65 = i64toi32_i32$1 & i64toi32_i32$0 | 0; - $65$hi = i64toi32_i32$2; - i64toi32_i32$2 = $63$hi; - i64toi32_i32$3 = $40; - i64toi32_i32$1 = $65$hi; - i64toi32_i32$0 = $65; - i64toi32_i32$1 = i64toi32_i32$2 | i64toi32_i32$1 | 0; - legalfunc$wasm2js_scratch_store_i64(i64toi32_i32$3 | i64toi32_i32$0 | 0 | 0, i64toi32_i32$1 | 0); - i64toi32_i32$1 = 0; - i64toi32_i32$3 = var$2 >>> ((__wasm_ctz_i32(var$3 | 0) | 0) & 31 | 0) | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$3 | 0; + $2_1 = $4; + $4 = $1_1; + $9 = $0_1; + $5 = 0; + $7 = -1; + $5 = $4 & $5 | 0; + $7 = $9 & $7 | 0; + $9 = $5; + $5 = $2_1; + $4 = $3_1; + $9 = $5 | $9 | 0; + legalfunc$wasm2js_scratch_store_i64($4 | $7 | 0 | 0, $9 | 0); + $9 = 0; + $4 = $10 >>> ((__wasm_ctz_i32($8 | 0) | 0) & 31 | 0) | 0; + i64toi32_i32$HIGH_BITS = $9; + return $4 | 0; } - var$4 = var$3 + -1 | 0; - if (!(var$4 & var$3 | 0)) { + $11 = $8 + -1 | 0; + if (!($11 & $8 | 0)) { break label$5 } - var$2 = (Math_clz32(var$3) + 33 | 0) - Math_clz32(var$2) | 0; - var$3 = 0 - var$2 | 0; + $10 = (Math_clz32($8) + 33 | 0) - Math_clz32($10) | 0; + $8 = 0 - $10 | 0; break label$3; } - var$3 = 63 - var$2 | 0; - var$2 = var$2 + 1 | 0; + $8 = 63 - $10 | 0; + $10 = $10 + 1 | 0; break label$3; } - var$4 = (var$2 >>> 0) / (var$3 >>> 0) | 0; - i64toi32_i32$3 = 0; - i64toi32_i32$2 = var$2 - Math_imul(var$4, var$3) | 0; - i64toi32_i32$1 = 0; - i64toi32_i32$0 = 32; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $11 = ($10 >>> 0) / ($8 >>> 0) | 0; + $4 = 0; + $5 = $10 - Math_imul($11, $8) | 0; + $7 = 32; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $41 = 0; + $9 = $5 << $6 | 0; + $0_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$3 << i64toi32_i32$4 | 0) | 0; - $41 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $9 = ((1 << $6 | 0) - 1 | 0) & ($5 >>> (32 - $6 | 0) | 0) | 0 | ($4 << $6 | 0) | 0; + $0_1 = $5 << $6 | 0; } } - legalfunc$wasm2js_scratch_store_i64($41 | 0, i64toi32_i32$1 | 0); - i64toi32_i32$1 = 0; - i64toi32_i32$2 = var$4; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$2 | 0; + legalfunc$wasm2js_scratch_store_i64($0_1 | 0, $9 | 0); + $9 = 0; + $5 = $11; + i64toi32_i32$HIGH_BITS = $9; + return $5 | 0; } - var$2 = Math_clz32(var$3) - Math_clz32(var$2) | 0; - if (var$2 >>> 0 < 31 >>> 0) { + $10 = Math_clz32($8) - Math_clz32($10) | 0; + if ($10 >>> 0 < 31 >>> 0) { break label$4 } break label$2; } - i64toi32_i32$2 = var$0$hi; - i64toi32_i32$2 = 0; - legalfunc$wasm2js_scratch_store_i64(var$4 & var$0 | 0 | 0, i64toi32_i32$2 | 0); - if ((var$3 | 0) == (1 | 0)) { + $5 = 0; + legalfunc$wasm2js_scratch_store_i64($11 & $0_1 | 0 | 0, $5 | 0); + if (($8 | 0) == (1 | 0)) { break label$1 } - i64toi32_i32$2 = var$0$hi; - i64toi32_i32$2 = 0; - $120$hi = i64toi32_i32$2; - i64toi32_i32$2 = var$0$hi; - i64toi32_i32$3 = var$0; - i64toi32_i32$1 = $120$hi; - i64toi32_i32$0 = __wasm_ctz_i32(var$3 | 0) | 0; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $5 = 0; + $9 = $5; + $5 = $1_1; + $4 = $0_1; + $7 = __wasm_ctz_i32($8 | 0) | 0; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = 0; - $42 = i64toi32_i32$2 >>> i64toi32_i32$4 | 0; + $9 = 0; + $4 = $5 >>> $6 | 0; } } else { { - i64toi32_i32$1 = i64toi32_i32$2 >>> i64toi32_i32$4 | 0; - $42 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$2 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$3 >>> i64toi32_i32$4 | 0) | 0; + $9 = $5 >>> $6 | 0; + $4 = (((1 << $6 | 0) - 1 | 0) & $5 | 0) << (32 - $6 | 0) | 0 | ($4 >>> $6 | 0) | 0; } } - i64toi32_i32$3 = $42; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$3 | 0; + i64toi32_i32$HIGH_BITS = $9; + return $4 | 0; } - var$3 = 63 - var$2 | 0; - var$2 = var$2 + 1 | 0; + $8 = 63 - $10 | 0; + $10 = $10 + 1 | 0; } - i64toi32_i32$3 = var$0$hi; - i64toi32_i32$3 = 0; - $129$hi = i64toi32_i32$3; - i64toi32_i32$3 = var$0$hi; - i64toi32_i32$2 = var$0; - i64toi32_i32$1 = $129$hi; - i64toi32_i32$0 = var$2 & 63 | 0; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $4 = 0; + $9 = $4; + $4 = $1_1; + $5 = $0_1; + $7 = $10 & 63 | 0; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = 0; - $43 = i64toi32_i32$3 >>> i64toi32_i32$4 | 0; + $9 = 0; + $13 = $4 >>> $6 | 0; } } else { { - i64toi32_i32$1 = i64toi32_i32$3 >>> i64toi32_i32$4 | 0; - $43 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$3 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; + $9 = $4 >>> $6 | 0; + $13 = (((1 << $6 | 0) - 1 | 0) & $4 | 0) << (32 - $6 | 0) | 0 | ($5 >>> $6 | 0) | 0; } } - var$5 = $43; - var$5$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$1 = 0; - $134$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$3 = var$0; - i64toi32_i32$2 = $134$hi; - i64toi32_i32$0 = var$3 & 63 | 0; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $11 = $9; + $9 = 0; + $5 = $9; + $9 = $1_1; + $4 = $0_1; + $7 = $8 & 63 | 0; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$2 = i64toi32_i32$3 << i64toi32_i32$4 | 0; - $44 = 0; + $5 = $4 << $6 | 0; + $0_1 = 0; } } else { { - i64toi32_i32$2 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$3 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$1 << i64toi32_i32$4 | 0) | 0; - $44 = i64toi32_i32$3 << i64toi32_i32$4 | 0; + $5 = ((1 << $6 | 0) - 1 | 0) & ($4 >>> (32 - $6 | 0) | 0) | 0 | ($9 << $6 | 0) | 0; + $0_1 = $4 << $6 | 0; } } - var$0 = $44; - var$0$hi = i64toi32_i32$2; + $1_1 = $5; label$13 : { - if (var$2) { + if ($10) { { - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$1 = var$1; - i64toi32_i32$3 = -1; - i64toi32_i32$0 = -1; - i64toi32_i32$4 = i64toi32_i32$1 + i64toi32_i32$0 | 0; - i64toi32_i32$5 = i64toi32_i32$2 + i64toi32_i32$3 | 0; - if (i64toi32_i32$4 >>> 0 < i64toi32_i32$0 >>> 0) { - i64toi32_i32$5 = i64toi32_i32$5 + 1 | 0 + $5 = $3_1; + $9 = $2_1; + $4 = -1; + $7 = -1; + $6 = $9 + $7 | 0; + $8 = $5 + $4 | 0; + if ($6 >>> 0 < $7 >>> 0) { + $8 = $8 + 1 | 0 } - var$8 = i64toi32_i32$4; - var$8$hi = i64toi32_i32$5; + $17 = $6; + $15 = $8; label$15 : while (1) { - i64toi32_i32$5 = var$5$hi; - i64toi32_i32$2 = var$5; - i64toi32_i32$1 = 0; - i64toi32_i32$0 = 1; - i64toi32_i32$3 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $8 = $11; + $5 = $13; + $7 = 1; + $4 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$3 | 0; - $45 = 0; + $9 = $5 << $4 | 0; + $12 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$3 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$3 | 0) | 0) | 0 | (i64toi32_i32$5 << i64toi32_i32$3 | 0) | 0; - $45 = i64toi32_i32$2 << i64toi32_i32$3 | 0; + $9 = ((1 << $4 | 0) - 1 | 0) & ($5 >>> (32 - $4 | 0) | 0) | 0 | ($8 << $4 | 0) | 0; + $12 = $5 << $4 | 0; } } - $140 = $45; - $140$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$5 = var$0; - i64toi32_i32$2 = 0; - i64toi32_i32$0 = 63; - i64toi32_i32$3 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $11 = $9; + $9 = $1_1; + $8 = $0_1; + $7 = 63; + $4 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$2 = 0; - $46 = i64toi32_i32$1 >>> i64toi32_i32$3 | 0; + $5 = 0; + $7 = $9 >>> $4 | 0; } } else { { - i64toi32_i32$2 = i64toi32_i32$1 >>> i64toi32_i32$3 | 0; - $46 = (((1 << i64toi32_i32$3 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$3 | 0) | 0 | (i64toi32_i32$5 >>> i64toi32_i32$3 | 0) | 0; + $5 = $9 >>> $4 | 0; + $7 = (((1 << $4 | 0) - 1 | 0) & $9 | 0) << (32 - $4 | 0) | 0 | ($8 >>> $4 | 0) | 0; } } - $142$hi = i64toi32_i32$2; - i64toi32_i32$2 = $140$hi; - i64toi32_i32$1 = $140; - i64toi32_i32$5 = $142$hi; - i64toi32_i32$0 = $46; - i64toi32_i32$5 = i64toi32_i32$2 | i64toi32_i32$5 | 0; - var$5 = i64toi32_i32$1 | i64toi32_i32$0 | 0; - var$5$hi = i64toi32_i32$5; - $144 = var$5; - $144$hi = i64toi32_i32$5; - i64toi32_i32$5 = var$8$hi; - i64toi32_i32$5 = var$5$hi; - i64toi32_i32$5 = var$8$hi; - i64toi32_i32$2 = var$8; - i64toi32_i32$1 = var$5$hi; - i64toi32_i32$0 = var$5; - i64toi32_i32$3 = i64toi32_i32$2 - i64toi32_i32$0 | 0; - i64toi32_i32$6 = i64toi32_i32$2 >>> 0 < i64toi32_i32$0 >>> 0; - i64toi32_i32$4 = i64toi32_i32$6 + i64toi32_i32$1 | 0; - i64toi32_i32$4 = i64toi32_i32$5 - i64toi32_i32$4 | 0; - i64toi32_i32$5 = i64toi32_i32$3; - i64toi32_i32$2 = 0; - i64toi32_i32$0 = 63; - i64toi32_i32$1 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $8 = $5; + $5 = $11; + $9 = $12; + $8 = $5 | $8 | 0; + $13 = $9 | $7 | 0; + $11 = $8; + $18 = $13; + $19 = $8; + $8 = $15; + $5 = $17; + $9 = $11; + $7 = $13; + $4 = $5 - $7 | 0; + $5 = $5 >>> 0 < $7 >>> 0; + $6 = $5 + $9 | 0; + $6 = $8 - $6 | 0; + $8 = $4; + $7 = 63; + $9 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$2 = i64toi32_i32$4 >> 31 | 0; - $47 = i64toi32_i32$4 >> i64toi32_i32$1 | 0; + $5 = $6 >> 31 | 0; + $14 = $6 >> $9 | 0; } } else { { - i64toi32_i32$2 = i64toi32_i32$4 >> i64toi32_i32$1 | 0; - $47 = (((1 << i64toi32_i32$1 | 0) - 1 | 0) & i64toi32_i32$4 | 0) << (32 - i64toi32_i32$1 | 0) | 0 | (i64toi32_i32$5 >>> i64toi32_i32$1 | 0) | 0; + $5 = $6 >> $9 | 0; + $14 = (((1 << $9 | 0) - 1 | 0) & $6 | 0) << (32 - $9 | 0) | 0 | ($8 >>> $9 | 0) | 0; } } - var$6 = $47; - var$6$hi = i64toi32_i32$2; - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$2 = var$6$hi; - i64toi32_i32$4 = var$6; - i64toi32_i32$5 = var$1$hi; - i64toi32_i32$0 = var$1; - i64toi32_i32$5 = i64toi32_i32$2 & i64toi32_i32$5 | 0; - $151 = i64toi32_i32$4 & i64toi32_i32$0 | 0; - $151$hi = i64toi32_i32$5; - i64toi32_i32$5 = $144$hi; - i64toi32_i32$2 = $144; - i64toi32_i32$4 = $151$hi; - i64toi32_i32$0 = $151; - i64toi32_i32$1 = i64toi32_i32$2 - i64toi32_i32$0 | 0; - i64toi32_i32$6 = i64toi32_i32$2 >>> 0 < i64toi32_i32$0 >>> 0; - i64toi32_i32$3 = i64toi32_i32$6 + i64toi32_i32$4 | 0; - i64toi32_i32$3 = i64toi32_i32$5 - i64toi32_i32$3 | 0; - var$5 = i64toi32_i32$1; - var$5$hi = i64toi32_i32$3; - i64toi32_i32$3 = var$0$hi; - i64toi32_i32$5 = var$0; - i64toi32_i32$2 = 0; - i64toi32_i32$0 = 1; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $12 = $5; + $5 = $12; + $6 = $14; + $8 = $3_1; + $7 = $2_1; + $8 = $5 & $8 | 0; + $7 = $6 & $7 | 0; + $6 = $8; + $8 = $19; + $5 = $18; + $9 = $5 - $7 | 0; + $5 = $5 >>> 0 < $7 >>> 0; + $4 = $5 + $6 | 0; + $4 = $8 - $4 | 0; + $13 = $9; + $11 = $4; + $4 = $1_1; + $8 = $0_1; + $7 = 1; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$2 = i64toi32_i32$5 << i64toi32_i32$4 | 0; - $48 = 0; + $5 = $8 << $6 | 0; + $4 = 0; } } else { { - i64toi32_i32$2 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$5 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$3 << i64toi32_i32$4 | 0) | 0; - $48 = i64toi32_i32$5 << i64toi32_i32$4 | 0; + $5 = ((1 << $6 | 0) - 1 | 0) & ($8 >>> (32 - $6 | 0) | 0) | 0 | ($4 << $6 | 0) | 0; + $4 = $8 << $6 | 0; } } - $154$hi = i64toi32_i32$2; - i64toi32_i32$2 = var$7$hi; - i64toi32_i32$2 = $154$hi; - i64toi32_i32$3 = $48; - i64toi32_i32$5 = var$7$hi; - i64toi32_i32$0 = var$7; - i64toi32_i32$5 = i64toi32_i32$2 | i64toi32_i32$5 | 0; - var$0 = i64toi32_i32$3 | i64toi32_i32$0 | 0; - var$0$hi = i64toi32_i32$5; - i64toi32_i32$5 = var$6$hi; - i64toi32_i32$2 = var$6; - i64toi32_i32$3 = 0; - i64toi32_i32$0 = 1; - i64toi32_i32$3 = i64toi32_i32$5 & i64toi32_i32$3 | 0; - var$6 = i64toi32_i32$2 & i64toi32_i32$0 | 0; - var$6$hi = i64toi32_i32$3; - var$7 = var$6; - var$7$hi = i64toi32_i32$3; - var$2 = var$2 + -1 | 0; - if (var$2) { + $8 = $16; + $7 = $20; + $8 = $5 | $8 | 0; + $0_1 = $4 | $7 | 0; + $1_1 = $8; + $8 = $12; + $5 = $14; + $4 = 0; + $7 = 1; + $4 = $8 & $4 | 0; + $14 = $5 & $7 | 0; + $12 = $4; + $20 = $14; + $16 = $4; + $10 = $10 + -1 | 0; + if ($10) { continue label$15 } break label$15; @@ -5931,83 +5014,68 @@ function asmFunc(global, env, buffer) { } } } - i64toi32_i32$3 = var$5$hi; - legalfunc$wasm2js_scratch_store_i64(var$5 | 0, i64toi32_i32$3 | 0); - i64toi32_i32$3 = var$0$hi; - i64toi32_i32$5 = var$0; - i64toi32_i32$2 = 0; - i64toi32_i32$0 = 1; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $4 = $11; + legalfunc$wasm2js_scratch_store_i64($13 | 0, $4 | 0); + $4 = $1_1; + $8 = $0_1; + $7 = 1; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$2 = i64toi32_i32$5 << i64toi32_i32$4 | 0; - $49 = 0; + $5 = $8 << $6 | 0; + $4 = 0; } } else { { - i64toi32_i32$2 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$5 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$3 << i64toi32_i32$4 | 0) | 0; - $49 = i64toi32_i32$5 << i64toi32_i32$4 | 0; + $5 = ((1 << $6 | 0) - 1 | 0) & ($8 >>> (32 - $6 | 0) | 0) | 0 | ($4 << $6 | 0) | 0; + $4 = $8 << $6 | 0; } } - $165$hi = i64toi32_i32$2; - i64toi32_i32$2 = var$6$hi; - i64toi32_i32$2 = $165$hi; - i64toi32_i32$3 = $49; - i64toi32_i32$5 = var$6$hi; - i64toi32_i32$0 = var$6; - i64toi32_i32$5 = i64toi32_i32$2 | i64toi32_i32$5 | 0; - i64toi32_i32$3 = i64toi32_i32$3 | i64toi32_i32$0 | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$5; - return i64toi32_i32$3 | 0; - } - i64toi32_i32$3 = var$0$hi; - legalfunc$wasm2js_scratch_store_i64(var$0 | 0, i64toi32_i32$3 | 0); - i64toi32_i32$3 = 0; - var$0 = 0; - var$0$hi = i64toi32_i32$3; - } - i64toi32_i32$3 = var$0$hi; - i64toi32_i32$5 = var$0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$3; - return i64toi32_i32$5 | 0; - } - - function __wasm_i64_sdiv(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$0 = var$1$hi; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = _ZN17compiler_builtins3int4sdiv3Div3div17he78fc483e41d7ec7E(var$0 | 0, i64toi32_i32$0 | 0, var$1 | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; - } - - function __wasm_i64_udiv(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$0 = var$1$hi; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E(var$0 | 0, i64toi32_i32$0 | 0, var$1 | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; - } - - function __wasm_ctz_i32(var$0) { - var$0 = var$0 | 0; - if (var$0) { - return 31 - Math_clz32((var$0 + -1 | 0) ^ var$0 | 0) | 0 | 0 + $8 = $12; + $7 = $14; + $8 = $5 | $8 | 0; + $4 = $4 | $7 | 0; + i64toi32_i32$HIGH_BITS = $8; + return $4 | 0; + } + $4 = $1_1; + legalfunc$wasm2js_scratch_store_i64($0_1 | 0, $4 | 0); + $4 = 0; + $0_1 = 0; + $1_1 = $4; + } + $4 = $1_1; + $8 = $0_1; + i64toi32_i32$HIGH_BITS = $4; + return $8 | 0; + } + + function __wasm_i64_sdiv($0_1, $1_1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + $3_1 = _ZN17compiler_builtins3int4sdiv3Div3div17he78fc483e41d7ec7E($0_1 | 0, $1_1 | 0, $2_1 | 0, $3_1 | 0) | 0; + $1_1 = i64toi32_i32$HIGH_BITS; + i64toi32_i32$HIGH_BITS = $1_1; + return $3_1 | 0; + } + + function __wasm_i64_udiv($0_1, $1_1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + $3_1 = _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E($0_1 | 0, $1_1 | 0, $2_1 | 0, $3_1 | 0) | 0; + $1_1 = i64toi32_i32$HIGH_BITS; + i64toi32_i32$HIGH_BITS = $1_1; + return $3_1 | 0; + } + + function __wasm_ctz_i32($0_1) { + $0_1 = $0_1 | 0; + if ($0_1) { + return 31 - Math_clz32(($0_1 + -1 | 0) ^ $0_1 | 0) | 0 | 0 } return 32 | 0; } @@ -6064,302 +5132,247 @@ function asmFunc(global, env, buffer) { var infinity = global.Infinity; var setTempRet0 = env.setTempRet0; var i64toi32_i32$HIGH_BITS = 0; - function $0(x) { - x = x | 0; - return (x | 0) / (5 | 0) | 0 | 0; + function $0($0_1) { + $0_1 = $0_1 | 0; + return ($0_1 | 0) / (5 | 0) | 0 | 0; } - function $1(x) { - x = x | 0; - return (x >>> 0) / (5 >>> 0) | 0 | 0; + function $1($0_1) { + $0_1 = $0_1 | 0; + return ($0_1 >>> 0) / (5 >>> 0) | 0 | 0; } - function $2(x, x$hi) { - x = x | 0; - x$hi = x$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = x$hi; - i64toi32_i32$1 = 0; - i64toi32_i32$1 = __wasm_i64_sdiv(x | 0, i64toi32_i32$0 | 0, 5 | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + function $2($0_1, $1_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + var $2_1 = 0; + $2_1 = 0; + $2_1 = __wasm_i64_sdiv($0_1 | 0, $1_1 | 0, 5 | 0, $2_1 | 0) | 0; + $1_1 = i64toi32_i32$HIGH_BITS; + i64toi32_i32$HIGH_BITS = $1_1; + return $2_1 | 0; } - function $3(x, x$hi) { - x = x | 0; - x$hi = x$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = x$hi; - i64toi32_i32$1 = 0; - i64toi32_i32$1 = __wasm_i64_udiv(x | 0, i64toi32_i32$0 | 0, 5 | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + function $3($0_1, $1_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + var $2_1 = 0; + $2_1 = 0; + $2_1 = __wasm_i64_udiv($0_1 | 0, $1_1 | 0, 5 | 0, $2_1 | 0) | 0; + $1_1 = i64toi32_i32$HIGH_BITS; + i64toi32_i32$HIGH_BITS = $1_1; + return $2_1 | 0; } function legalstub$2($0_1, $1_1) { $0_1 = $0_1 | 0; $1_1 = $1_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12 = 0, $13 = 0, $4 = 0, $4$hi = 0, $7$hi = 0, $2_1 = 0, $2$hi = 0; - i64toi32_i32$0 = 0; - $4 = $0_1; - $4$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $2_1 = 0, $3_1 = 0, $4 = 0, $5 = 0, $6 = 0; + $3_1 = 0; + $5 = $0_1; + $6 = $3_1; + $3_1 = 0; + $4 = 32; + $2_1 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $12 = 0; + $0_1 = $1_1 << $2_1 | 0; + $4 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $12 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - } - } - $7$hi = i64toi32_i32$1; - i64toi32_i32$1 = $4$hi; - i64toi32_i32$0 = $4; - i64toi32_i32$2 = $7$hi; - i64toi32_i32$3 = $12; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - i64toi32_i32$2 = $2(i64toi32_i32$0 | i64toi32_i32$3 | 0 | 0, i64toi32_i32$2 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $2_1 = i64toi32_i32$2; - $2$hi = i64toi32_i32$0; - i64toi32_i32$1 = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $13 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + $0_1 = ((1 << $2_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $2_1 | 0) | 0) | 0 | ($3_1 << $2_1 | 0) | 0; + $4 = $1_1 << $2_1 | 0; + } + } + $1_1 = $0_1; + $0_1 = $6; + $3_1 = $5; + $1_1 = $0_1 | $1_1 | 0; + $1_1 = $2($3_1 | $4 | 0 | 0, $1_1 | 0) | 0; + $3_1 = i64toi32_i32$HIGH_BITS; + $6 = $1_1; + $5 = $3_1; + $0_1 = $1_1; + $4 = 32; + $2_1 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { + $0_1 = $3_1 >>> $2_1 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $13 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$1 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $2_1 | 0) - 1 | 0) & $3_1 | 0) << (32 - $2_1 | 0) | 0 | ($0_1 >>> $2_1 | 0) | 0 } - setTempRet0($13 | 0); - i64toi32_i32$2 = $2$hi; - return $2_1 | 0; + setTempRet0($0_1 | 0); + return $6 | 0; } function legalstub$3($0_1, $1_1) { $0_1 = $0_1 | 0; $1_1 = $1_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12 = 0, $13 = 0, $4 = 0, $4$hi = 0, $7$hi = 0, $2_1 = 0, $2$hi = 0; - i64toi32_i32$0 = 0; - $4 = $0_1; - $4$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $2_1 = 0, $3_1 = 0, $4 = 0, $5 = 0, $6 = 0; + $3_1 = 0; + $5 = $0_1; + $6 = $3_1; + $3_1 = 0; + $4 = 32; + $2_1 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $12 = 0; + $0_1 = $1_1 << $2_1 | 0; + $4 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $12 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - } - } - $7$hi = i64toi32_i32$1; - i64toi32_i32$1 = $4$hi; - i64toi32_i32$0 = $4; - i64toi32_i32$2 = $7$hi; - i64toi32_i32$3 = $12; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - i64toi32_i32$2 = $3(i64toi32_i32$0 | i64toi32_i32$3 | 0 | 0, i64toi32_i32$2 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $2_1 = i64toi32_i32$2; - $2$hi = i64toi32_i32$0; - i64toi32_i32$1 = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $13 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + $0_1 = ((1 << $2_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $2_1 | 0) | 0) | 0 | ($3_1 << $2_1 | 0) | 0; + $4 = $1_1 << $2_1 | 0; + } + } + $1_1 = $0_1; + $0_1 = $6; + $3_1 = $5; + $1_1 = $0_1 | $1_1 | 0; + $1_1 = $3($3_1 | $4 | 0 | 0, $1_1 | 0) | 0; + $3_1 = i64toi32_i32$HIGH_BITS; + $6 = $1_1; + $5 = $3_1; + $0_1 = $1_1; + $4 = 32; + $2_1 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { + $0_1 = $3_1 >>> $2_1 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $13 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$1 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $2_1 | 0) - 1 | 0) & $3_1 | 0) << (32 - $2_1 | 0) | 0 | ($0_1 >>> $2_1 | 0) | 0 } - setTempRet0($13 | 0); - i64toi32_i32$2 = $2$hi; - return $2_1 | 0; + setTempRet0($0_1 | 0); + return $6 | 0; } - function legalfunc$wasm2js_scratch_store_i64($0_1, $0$hi) { + function legalfunc$wasm2js_scratch_store_i64($0_1, $1_1) { $0_1 = $0_1 | 0; - $0$hi = $0$hi | 0; - var i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $8 = 0, $2_1 = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $0$hi; - $2_1 = $0_1; - i64toi32_i32$2 = $0_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = 0; - $8 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + $1_1 = $1_1 | 0; + var $2_1 = 0, $3_1 = 0, $4 = 0; + $4 = $0_1; + $3_1 = 32; + $2_1 = $3_1 & 31 | 0; + if (32 >>> 0 <= ($3_1 & 63 | 0) >>> 0) { + $0_1 = $1_1 >>> $2_1 | 0 } else { - { - i64toi32_i32$1 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $8 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $2_1 | 0) - 1 | 0) & $1_1 | 0) << (32 - $2_1 | 0) | 0 | ($0_1 >>> $2_1 | 0) | 0 } - legalimport$wasm2js_scratch_store_i64($2_1 | 0, $8 | 0); + legalimport$wasm2js_scratch_store_i64($4 | 0, $0_1 | 0); } - function _ZN17compiler_builtins3int4sdiv3Div3div17he78fc483e41d7ec7E(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; - var i64toi32_i32$1 = 0, i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, i64toi32_i32$0 = 0, i64toi32_i32$5 = 0, var$2 = 0, var$2$hi = 0, i64toi32_i32$6 = 0, $21 = 0, $22 = 0, $23 = 0, $7$hi = 0, $9 = 0, $9$hi = 0, $14$hi = 0, $16$hi = 0, $17 = 0, $17$hi = 0, $23$hi = 0; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$2 = var$0; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 63; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + function _ZN17compiler_builtins3int4sdiv3Div3div17he78fc483e41d7ec7E($0_1, $1_1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + var $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $10 = 0, $11 = 0, $12 = 0; + $8 = $1_1; + $7 = $0_1; + $6 = 63; + $5 = $6 & 31 | 0; + if (32 >>> 0 <= ($6 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$0 >> 31 | 0; - $21 = i64toi32_i32$0 >> i64toi32_i32$4 | 0; + $4 = $8 >> 31 | 0; + $5 = $8 >> $5 | 0; } } else { { - i64toi32_i32$1 = i64toi32_i32$0 >> i64toi32_i32$4 | 0; - $21 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } - } - var$2 = $21; - var$2$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$1 = var$2$hi; - i64toi32_i32$0 = var$2; - i64toi32_i32$2 = var$0$hi; - i64toi32_i32$3 = var$0; - i64toi32_i32$2 = i64toi32_i32$1 ^ i64toi32_i32$2 | 0; - $7$hi = i64toi32_i32$2; - i64toi32_i32$2 = i64toi32_i32$1; - i64toi32_i32$2 = $7$hi; - i64toi32_i32$1 = i64toi32_i32$0 ^ i64toi32_i32$3 | 0; - i64toi32_i32$0 = var$2$hi; - i64toi32_i32$3 = var$2; - i64toi32_i32$4 = i64toi32_i32$1 - i64toi32_i32$3 | 0; - i64toi32_i32$6 = i64toi32_i32$1 >>> 0 < i64toi32_i32$3 >>> 0; - i64toi32_i32$5 = i64toi32_i32$6 + i64toi32_i32$0 | 0; - i64toi32_i32$5 = i64toi32_i32$2 - i64toi32_i32$5 | 0; - $9 = i64toi32_i32$4; - $9$hi = i64toi32_i32$5; - i64toi32_i32$5 = var$1$hi; - i64toi32_i32$2 = var$1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 63; - i64toi32_i32$0 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = i64toi32_i32$5 >> 31 | 0; - $22 = i64toi32_i32$5 >> i64toi32_i32$0 | 0; + $4 = $8 >> $5 | 0; + $5 = (((1 << $5 | 0) - 1 | 0) & $8 | 0) << (32 - $5 | 0) | 0 | ($7 >>> $5 | 0) | 0; + } + } + $10 = $4; + $4 = $10; + $8 = $5; + $7 = $1_1; + $6 = $0_1; + $7 = $4 ^ $7 | 0; + $4 = $8 ^ $6 | 0; + $8 = $10; + $6 = $5; + $5 = $4 - $6 | 0; + $10 = $4 >>> 0 < $6 >>> 0; + $9 = $10 + $8 | 0; + $9 = $7 - $9 | 0; + $11 = $5; + $12 = $9; + $9 = $3_1; + $7 = $2_1; + $6 = 63; + $8 = $6 & 31 | 0; + if (32 >>> 0 <= ($6 & 63 | 0) >>> 0) { + { + $4 = $9 >> 31 | 0; + $5 = $9 >> $8 | 0; } } else { { - i64toi32_i32$1 = i64toi32_i32$5 >> i64toi32_i32$0 | 0; - $22 = (((1 << i64toi32_i32$0 | 0) - 1 | 0) & i64toi32_i32$5 | 0) << (32 - i64toi32_i32$0 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$0 | 0) | 0; - } - } - var$2 = $22; - var$2$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = var$2$hi; - i64toi32_i32$5 = var$2; - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$3 = var$1; - i64toi32_i32$2 = i64toi32_i32$1 ^ i64toi32_i32$2 | 0; - $14$hi = i64toi32_i32$2; - i64toi32_i32$2 = i64toi32_i32$1; - i64toi32_i32$2 = $14$hi; - i64toi32_i32$1 = i64toi32_i32$5 ^ i64toi32_i32$3 | 0; - i64toi32_i32$5 = var$2$hi; - i64toi32_i32$3 = var$2; - i64toi32_i32$0 = i64toi32_i32$1 - i64toi32_i32$3 | 0; - i64toi32_i32$6 = i64toi32_i32$1 >>> 0 < i64toi32_i32$3 >>> 0; - i64toi32_i32$4 = i64toi32_i32$6 + i64toi32_i32$5 | 0; - i64toi32_i32$4 = i64toi32_i32$2 - i64toi32_i32$4 | 0; - $16$hi = i64toi32_i32$4; - i64toi32_i32$4 = $9$hi; - i64toi32_i32$1 = $16$hi; - i64toi32_i32$1 = __wasm_i64_udiv($9 | 0, i64toi32_i32$4 | 0, i64toi32_i32$0 | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$4 = i64toi32_i32$HIGH_BITS; - $17 = i64toi32_i32$1; - $17$hi = i64toi32_i32$4; - i64toi32_i32$4 = var$1$hi; - i64toi32_i32$4 = var$0$hi; - i64toi32_i32$4 = var$1$hi; - i64toi32_i32$2 = var$1; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$3 = var$0; - i64toi32_i32$1 = i64toi32_i32$4 ^ i64toi32_i32$1 | 0; - i64toi32_i32$4 = i64toi32_i32$2 ^ i64toi32_i32$3 | 0; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 63; - i64toi32_i32$5 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = i64toi32_i32$1 >> 31 | 0; - $23 = i64toi32_i32$1 >> i64toi32_i32$5 | 0; + $4 = $9 >> $8 | 0; + $5 = (((1 << $8 | 0) - 1 | 0) & $9 | 0) << (32 - $8 | 0) | 0 | ($7 >>> $8 | 0) | 0; + } + } + $10 = $4; + $4 = $10; + $9 = $5; + $7 = $3_1; + $6 = $2_1; + $7 = $4 ^ $7 | 0; + $4 = $9 ^ $6 | 0; + $9 = $10; + $6 = $5; + $8 = $4 - $6 | 0; + $10 = $4 >>> 0 < $6 >>> 0; + $5 = $10 + $9 | 0; + $5 = $7 - $5 | 0; + $4 = $5; + $5 = $12; + $4 = __wasm_i64_udiv($11 | 0, $5 | 0, $8 | 0, $4 | 0) | 0; + $5 = i64toi32_i32$HIGH_BITS; + $10 = $4; + $8 = $5; + $5 = $3_1; + $7 = $2_1; + $4 = $1_1; + $6 = $0_1; + $4 = $5 ^ $4 | 0; + $5 = $7 ^ $6 | 0; + $6 = 63; + $9 = $6 & 31 | 0; + if (32 >>> 0 <= ($6 & 63 | 0) >>> 0) { + { + $7 = $4 >> 31 | 0; + $0_1 = $4 >> $9 | 0; } } else { { - i64toi32_i32$2 = i64toi32_i32$1 >> i64toi32_i32$5 | 0; - $23 = (((1 << i64toi32_i32$5 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$5 | 0) | 0 | (i64toi32_i32$4 >>> i64toi32_i32$5 | 0) | 0; - } - } - var$0 = $23; - var$0$hi = i64toi32_i32$2; - i64toi32_i32$2 = $17$hi; - i64toi32_i32$1 = $17; - i64toi32_i32$4 = var$0$hi; - i64toi32_i32$3 = var$0; - i64toi32_i32$4 = i64toi32_i32$2 ^ i64toi32_i32$4 | 0; - $23$hi = i64toi32_i32$4; - i64toi32_i32$4 = var$0$hi; - i64toi32_i32$4 = $23$hi; - i64toi32_i32$2 = i64toi32_i32$1 ^ i64toi32_i32$3 | 0; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$5 = i64toi32_i32$2 - i64toi32_i32$3 | 0; - i64toi32_i32$6 = i64toi32_i32$2 >>> 0 < i64toi32_i32$3 >>> 0; - i64toi32_i32$0 = i64toi32_i32$6 + i64toi32_i32$1 | 0; - i64toi32_i32$0 = i64toi32_i32$4 - i64toi32_i32$0 | 0; - i64toi32_i32$2 = i64toi32_i32$5; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$2 | 0; - } - - function _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$3 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, i64toi32_i32$5 = 0, var$2 = 0, var$3 = 0, var$4 = 0, var$5 = 0, var$5$hi = 0, var$6 = 0, var$6$hi = 0, i64toi32_i32$6 = 0, $37 = 0, $38 = 0, $39 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0, $44 = 0, var$8$hi = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0, var$7$hi = 0, $49 = 0, $63$hi = 0, $65 = 0, $65$hi = 0, $120$hi = 0, $129$hi = 0, $134$hi = 0, var$8 = 0, $140 = 0, $140$hi = 0, $142$hi = 0, $144 = 0, $144$hi = 0, $151 = 0, $151$hi = 0, $154$hi = 0, var$7 = 0, $165$hi = 0; + $7 = $4 >> $9 | 0; + $0_1 = (((1 << $9 | 0) - 1 | 0) & $4 | 0) << (32 - $9 | 0) | 0 | ($5 >>> $9 | 0) | 0; + } + } + $1_1 = $7; + $7 = $8; + $4 = $10; + $5 = $1_1; + $6 = $0_1; + $5 = $7 ^ $5 | 0; + $7 = $4 ^ $6 | 0; + $4 = $1_1; + $9 = $7 - $6 | 0; + $10 = $7 >>> 0 < $6 >>> 0; + $8 = $10 + $4 | 0; + $8 = $5 - $8 | 0; + $7 = $9; + i64toi32_i32$HIGH_BITS = $8; + return $7 | 0; + } + + function _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E($0_1, $1_1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + var $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $20 = 0; label$1 : { label$2 : { label$3 : { @@ -6370,394 +5383,335 @@ function asmFunc(global, env, buffer) { label$8 : { label$9 : { label$11 : { - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$2 = var$0; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = 0; - $37 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + $7 = $1_1; + $5 = $0_1; + $4 = 32; + $6 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { + $10 = $7 >>> $6 | 0 } else { - { - i64toi32_i32$1 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $37 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $10 = (((1 << $6 | 0) - 1 | 0) & $7 | 0) << (32 - $6 | 0) | 0 | ($5 >>> $6 | 0) | 0 } - var$2 = $37; - if (var$2) { + if ($10) { { - i64toi32_i32$1 = var$1$hi; - var$3 = var$1; - if (!var$3) { + $8 = $2_1; + if (!$8) { break label$11 } - i64toi32_i32$1 = var$1$hi; - i64toi32_i32$0 = var$1; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $38 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + $9 = $3_1; + $7 = $2_1; + $4 = 32; + $6 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { + $11 = $9 >>> $6 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $38 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$0 >>> i64toi32_i32$4 | 0) | 0; - } + $11 = (((1 << $6 | 0) - 1 | 0) & $9 | 0) << (32 - $6 | 0) | 0 | ($7 >>> $6 | 0) | 0 } - var$4 = $38; - if (!var$4) { + if (!$11) { break label$9 } - var$2 = Math_clz32(var$4) - Math_clz32(var$2) | 0; - if (var$2 >>> 0 <= 31 >>> 0) { + $10 = Math_clz32($11) - Math_clz32($10) | 0; + if ($10 >>> 0 <= 31 >>> 0) { break label$8 } break label$2; } } - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$1 = var$1; - i64toi32_i32$0 = 1; - i64toi32_i32$3 = 0; - if (i64toi32_i32$2 >>> 0 > i64toi32_i32$0 >>> 0 | ((i64toi32_i32$2 | 0) == (i64toi32_i32$0 | 0) & i64toi32_i32$1 >>> 0 >= i64toi32_i32$3 >>> 0 | 0) | 0) { + $5 = $3_1; + $9 = $2_1; + $7 = 1; + $4 = 0; + if ($5 >>> 0 > $7 >>> 0 | (($5 | 0) == ($7 | 0) & $9 >>> 0 >= $4 >>> 0 | 0) | 0) { break label$2 } - i64toi32_i32$1 = var$0$hi; - var$2 = var$0; - i64toi32_i32$1 = var$1$hi; - var$3 = var$1; - var$2 = (var$2 >>> 0) / (var$3 >>> 0) | 0; - i64toi32_i32$1 = 0; - legalfunc$wasm2js_scratch_store_i64(var$0 - Math_imul(var$2, var$3) | 0 | 0, i64toi32_i32$1 | 0); - i64toi32_i32$1 = 0; - i64toi32_i32$2 = var$2; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$2 | 0; + $10 = $0_1; + $8 = $2_1; + $10 = ($10 >>> 0) / ($8 >>> 0) | 0; + $9 = 0; + legalfunc$wasm2js_scratch_store_i64($0_1 - Math_imul($10, $8) | 0 | 0, $9 | 0); + $9 = 0; + $5 = $10; + i64toi32_i32$HIGH_BITS = $9; + return $5 | 0; } - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$3 = var$1; - i64toi32_i32$1 = 0; - i64toi32_i32$0 = 32; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = 0; - $39 = i64toi32_i32$2 >>> i64toi32_i32$4 | 0; - } + $5 = $3_1; + $4 = $2_1; + $7 = 32; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { + $8 = $5 >>> $6 | 0 } else { - { - i64toi32_i32$1 = i64toi32_i32$2 >>> i64toi32_i32$4 | 0; - $39 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$2 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$3 >>> i64toi32_i32$4 | 0) | 0; - } + $8 = (((1 << $6 | 0) - 1 | 0) & $5 | 0) << (32 - $6 | 0) | 0 | ($4 >>> $6 | 0) | 0 } - var$3 = $39; - i64toi32_i32$1 = var$0$hi; - if (!var$0) { + if (!$0_1) { break label$7 } - if (!var$3) { + if (!$8) { break label$6 } - var$4 = var$3 + -1 | 0; - if (var$4 & var$3 | 0) { + $11 = $8 + -1 | 0; + if ($11 & $8 | 0) { break label$6 } - i64toi32_i32$1 = 0; - i64toi32_i32$2 = var$4 & var$2 | 0; - i64toi32_i32$3 = 0; - i64toi32_i32$0 = 32; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $9 = 0; + $5 = $11 & $10 | 0; + $7 = 32; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$3 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $40 = 0; + $4 = $5 << $6 | 0; + $3_1 = 0; } } else { { - i64toi32_i32$3 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$1 << i64toi32_i32$4 | 0) | 0; - $40 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $4 = ((1 << $6 | 0) - 1 | 0) & ($5 >>> (32 - $6 | 0) | 0) | 0 | ($9 << $6 | 0) | 0; + $3_1 = $5 << $6 | 0; } } - $63$hi = i64toi32_i32$3; - i64toi32_i32$3 = var$0$hi; - i64toi32_i32$1 = var$0; - i64toi32_i32$2 = 0; - i64toi32_i32$0 = -1; - i64toi32_i32$2 = i64toi32_i32$3 & i64toi32_i32$2 | 0; - $65 = i64toi32_i32$1 & i64toi32_i32$0 | 0; - $65$hi = i64toi32_i32$2; - i64toi32_i32$2 = $63$hi; - i64toi32_i32$3 = $40; - i64toi32_i32$1 = $65$hi; - i64toi32_i32$0 = $65; - i64toi32_i32$1 = i64toi32_i32$2 | i64toi32_i32$1 | 0; - legalfunc$wasm2js_scratch_store_i64(i64toi32_i32$3 | i64toi32_i32$0 | 0 | 0, i64toi32_i32$1 | 0); - i64toi32_i32$1 = 0; - i64toi32_i32$3 = var$2 >>> ((__wasm_ctz_i32(var$3 | 0) | 0) & 31 | 0) | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$3 | 0; + $2_1 = $4; + $4 = $1_1; + $9 = $0_1; + $5 = 0; + $7 = -1; + $5 = $4 & $5 | 0; + $7 = $9 & $7 | 0; + $9 = $5; + $5 = $2_1; + $4 = $3_1; + $9 = $5 | $9 | 0; + legalfunc$wasm2js_scratch_store_i64($4 | $7 | 0 | 0, $9 | 0); + $9 = 0; + $4 = $10 >>> ((__wasm_ctz_i32($8 | 0) | 0) & 31 | 0) | 0; + i64toi32_i32$HIGH_BITS = $9; + return $4 | 0; } - var$4 = var$3 + -1 | 0; - if (!(var$4 & var$3 | 0)) { + $11 = $8 + -1 | 0; + if (!($11 & $8 | 0)) { break label$5 } - var$2 = (Math_clz32(var$3) + 33 | 0) - Math_clz32(var$2) | 0; - var$3 = 0 - var$2 | 0; + $10 = (Math_clz32($8) + 33 | 0) - Math_clz32($10) | 0; + $8 = 0 - $10 | 0; break label$3; } - var$3 = 63 - var$2 | 0; - var$2 = var$2 + 1 | 0; + $8 = 63 - $10 | 0; + $10 = $10 + 1 | 0; break label$3; } - var$4 = (var$2 >>> 0) / (var$3 >>> 0) | 0; - i64toi32_i32$3 = 0; - i64toi32_i32$2 = var$2 - Math_imul(var$4, var$3) | 0; - i64toi32_i32$1 = 0; - i64toi32_i32$0 = 32; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $11 = ($10 >>> 0) / ($8 >>> 0) | 0; + $4 = 0; + $5 = $10 - Math_imul($11, $8) | 0; + $7 = 32; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $41 = 0; + $9 = $5 << $6 | 0; + $0_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$3 << i64toi32_i32$4 | 0) | 0; - $41 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $9 = ((1 << $6 | 0) - 1 | 0) & ($5 >>> (32 - $6 | 0) | 0) | 0 | ($4 << $6 | 0) | 0; + $0_1 = $5 << $6 | 0; } } - legalfunc$wasm2js_scratch_store_i64($41 | 0, i64toi32_i32$1 | 0); - i64toi32_i32$1 = 0; - i64toi32_i32$2 = var$4; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$2 | 0; + legalfunc$wasm2js_scratch_store_i64($0_1 | 0, $9 | 0); + $9 = 0; + $5 = $11; + i64toi32_i32$HIGH_BITS = $9; + return $5 | 0; } - var$2 = Math_clz32(var$3) - Math_clz32(var$2) | 0; - if (var$2 >>> 0 < 31 >>> 0) { + $10 = Math_clz32($8) - Math_clz32($10) | 0; + if ($10 >>> 0 < 31 >>> 0) { break label$4 } break label$2; } - i64toi32_i32$2 = var$0$hi; - i64toi32_i32$2 = 0; - legalfunc$wasm2js_scratch_store_i64(var$4 & var$0 | 0 | 0, i64toi32_i32$2 | 0); - if ((var$3 | 0) == (1 | 0)) { + $5 = 0; + legalfunc$wasm2js_scratch_store_i64($11 & $0_1 | 0 | 0, $5 | 0); + if (($8 | 0) == (1 | 0)) { break label$1 } - i64toi32_i32$2 = var$0$hi; - i64toi32_i32$2 = 0; - $120$hi = i64toi32_i32$2; - i64toi32_i32$2 = var$0$hi; - i64toi32_i32$3 = var$0; - i64toi32_i32$1 = $120$hi; - i64toi32_i32$0 = __wasm_ctz_i32(var$3 | 0) | 0; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $5 = 0; + $9 = $5; + $5 = $1_1; + $4 = $0_1; + $7 = __wasm_ctz_i32($8 | 0) | 0; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = 0; - $42 = i64toi32_i32$2 >>> i64toi32_i32$4 | 0; + $9 = 0; + $4 = $5 >>> $6 | 0; } } else { { - i64toi32_i32$1 = i64toi32_i32$2 >>> i64toi32_i32$4 | 0; - $42 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$2 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$3 >>> i64toi32_i32$4 | 0) | 0; + $9 = $5 >>> $6 | 0; + $4 = (((1 << $6 | 0) - 1 | 0) & $5 | 0) << (32 - $6 | 0) | 0 | ($4 >>> $6 | 0) | 0; } } - i64toi32_i32$3 = $42; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$3 | 0; + i64toi32_i32$HIGH_BITS = $9; + return $4 | 0; } - var$3 = 63 - var$2 | 0; - var$2 = var$2 + 1 | 0; + $8 = 63 - $10 | 0; + $10 = $10 + 1 | 0; } - i64toi32_i32$3 = var$0$hi; - i64toi32_i32$3 = 0; - $129$hi = i64toi32_i32$3; - i64toi32_i32$3 = var$0$hi; - i64toi32_i32$2 = var$0; - i64toi32_i32$1 = $129$hi; - i64toi32_i32$0 = var$2 & 63 | 0; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $4 = 0; + $9 = $4; + $4 = $1_1; + $5 = $0_1; + $7 = $10 & 63 | 0; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = 0; - $43 = i64toi32_i32$3 >>> i64toi32_i32$4 | 0; + $9 = 0; + $13 = $4 >>> $6 | 0; } } else { { - i64toi32_i32$1 = i64toi32_i32$3 >>> i64toi32_i32$4 | 0; - $43 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$3 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; + $9 = $4 >>> $6 | 0; + $13 = (((1 << $6 | 0) - 1 | 0) & $4 | 0) << (32 - $6 | 0) | 0 | ($5 >>> $6 | 0) | 0; } } - var$5 = $43; - var$5$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$1 = 0; - $134$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$3 = var$0; - i64toi32_i32$2 = $134$hi; - i64toi32_i32$0 = var$3 & 63 | 0; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $11 = $9; + $9 = 0; + $5 = $9; + $9 = $1_1; + $4 = $0_1; + $7 = $8 & 63 | 0; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$2 = i64toi32_i32$3 << i64toi32_i32$4 | 0; - $44 = 0; + $5 = $4 << $6 | 0; + $0_1 = 0; } } else { { - i64toi32_i32$2 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$3 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$1 << i64toi32_i32$4 | 0) | 0; - $44 = i64toi32_i32$3 << i64toi32_i32$4 | 0; + $5 = ((1 << $6 | 0) - 1 | 0) & ($4 >>> (32 - $6 | 0) | 0) | 0 | ($9 << $6 | 0) | 0; + $0_1 = $4 << $6 | 0; } } - var$0 = $44; - var$0$hi = i64toi32_i32$2; + $1_1 = $5; label$13 : { - if (var$2) { + if ($10) { { - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$1 = var$1; - i64toi32_i32$3 = -1; - i64toi32_i32$0 = -1; - i64toi32_i32$4 = i64toi32_i32$1 + i64toi32_i32$0 | 0; - i64toi32_i32$5 = i64toi32_i32$2 + i64toi32_i32$3 | 0; - if (i64toi32_i32$4 >>> 0 < i64toi32_i32$0 >>> 0) { - i64toi32_i32$5 = i64toi32_i32$5 + 1 | 0 + $5 = $3_1; + $9 = $2_1; + $4 = -1; + $7 = -1; + $6 = $9 + $7 | 0; + $8 = $5 + $4 | 0; + if ($6 >>> 0 < $7 >>> 0) { + $8 = $8 + 1 | 0 } - var$8 = i64toi32_i32$4; - var$8$hi = i64toi32_i32$5; + $17 = $6; + $15 = $8; label$15 : while (1) { - i64toi32_i32$5 = var$5$hi; - i64toi32_i32$2 = var$5; - i64toi32_i32$1 = 0; - i64toi32_i32$0 = 1; - i64toi32_i32$3 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $8 = $11; + $5 = $13; + $7 = 1; + $4 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$3 | 0; - $45 = 0; + $9 = $5 << $4 | 0; + $12 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$3 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$3 | 0) | 0) | 0 | (i64toi32_i32$5 << i64toi32_i32$3 | 0) | 0; - $45 = i64toi32_i32$2 << i64toi32_i32$3 | 0; + $9 = ((1 << $4 | 0) - 1 | 0) & ($5 >>> (32 - $4 | 0) | 0) | 0 | ($8 << $4 | 0) | 0; + $12 = $5 << $4 | 0; } } - $140 = $45; - $140$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$5 = var$0; - i64toi32_i32$2 = 0; - i64toi32_i32$0 = 63; - i64toi32_i32$3 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $11 = $9; + $9 = $1_1; + $8 = $0_1; + $7 = 63; + $4 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$2 = 0; - $46 = i64toi32_i32$1 >>> i64toi32_i32$3 | 0; + $5 = 0; + $7 = $9 >>> $4 | 0; } } else { { - i64toi32_i32$2 = i64toi32_i32$1 >>> i64toi32_i32$3 | 0; - $46 = (((1 << i64toi32_i32$3 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$3 | 0) | 0 | (i64toi32_i32$5 >>> i64toi32_i32$3 | 0) | 0; + $5 = $9 >>> $4 | 0; + $7 = (((1 << $4 | 0) - 1 | 0) & $9 | 0) << (32 - $4 | 0) | 0 | ($8 >>> $4 | 0) | 0; } } - $142$hi = i64toi32_i32$2; - i64toi32_i32$2 = $140$hi; - i64toi32_i32$1 = $140; - i64toi32_i32$5 = $142$hi; - i64toi32_i32$0 = $46; - i64toi32_i32$5 = i64toi32_i32$2 | i64toi32_i32$5 | 0; - var$5 = i64toi32_i32$1 | i64toi32_i32$0 | 0; - var$5$hi = i64toi32_i32$5; - $144 = var$5; - $144$hi = i64toi32_i32$5; - i64toi32_i32$5 = var$8$hi; - i64toi32_i32$5 = var$5$hi; - i64toi32_i32$5 = var$8$hi; - i64toi32_i32$2 = var$8; - i64toi32_i32$1 = var$5$hi; - i64toi32_i32$0 = var$5; - i64toi32_i32$3 = i64toi32_i32$2 - i64toi32_i32$0 | 0; - i64toi32_i32$6 = i64toi32_i32$2 >>> 0 < i64toi32_i32$0 >>> 0; - i64toi32_i32$4 = i64toi32_i32$6 + i64toi32_i32$1 | 0; - i64toi32_i32$4 = i64toi32_i32$5 - i64toi32_i32$4 | 0; - i64toi32_i32$5 = i64toi32_i32$3; - i64toi32_i32$2 = 0; - i64toi32_i32$0 = 63; - i64toi32_i32$1 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $8 = $5; + $5 = $11; + $9 = $12; + $8 = $5 | $8 | 0; + $13 = $9 | $7 | 0; + $11 = $8; + $18 = $13; + $19 = $8; + $8 = $15; + $5 = $17; + $9 = $11; + $7 = $13; + $4 = $5 - $7 | 0; + $5 = $5 >>> 0 < $7 >>> 0; + $6 = $5 + $9 | 0; + $6 = $8 - $6 | 0; + $8 = $4; + $7 = 63; + $9 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$2 = i64toi32_i32$4 >> 31 | 0; - $47 = i64toi32_i32$4 >> i64toi32_i32$1 | 0; + $5 = $6 >> 31 | 0; + $14 = $6 >> $9 | 0; } } else { { - i64toi32_i32$2 = i64toi32_i32$4 >> i64toi32_i32$1 | 0; - $47 = (((1 << i64toi32_i32$1 | 0) - 1 | 0) & i64toi32_i32$4 | 0) << (32 - i64toi32_i32$1 | 0) | 0 | (i64toi32_i32$5 >>> i64toi32_i32$1 | 0) | 0; + $5 = $6 >> $9 | 0; + $14 = (((1 << $9 | 0) - 1 | 0) & $6 | 0) << (32 - $9 | 0) | 0 | ($8 >>> $9 | 0) | 0; } } - var$6 = $47; - var$6$hi = i64toi32_i32$2; - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$2 = var$6$hi; - i64toi32_i32$4 = var$6; - i64toi32_i32$5 = var$1$hi; - i64toi32_i32$0 = var$1; - i64toi32_i32$5 = i64toi32_i32$2 & i64toi32_i32$5 | 0; - $151 = i64toi32_i32$4 & i64toi32_i32$0 | 0; - $151$hi = i64toi32_i32$5; - i64toi32_i32$5 = $144$hi; - i64toi32_i32$2 = $144; - i64toi32_i32$4 = $151$hi; - i64toi32_i32$0 = $151; - i64toi32_i32$1 = i64toi32_i32$2 - i64toi32_i32$0 | 0; - i64toi32_i32$6 = i64toi32_i32$2 >>> 0 < i64toi32_i32$0 >>> 0; - i64toi32_i32$3 = i64toi32_i32$6 + i64toi32_i32$4 | 0; - i64toi32_i32$3 = i64toi32_i32$5 - i64toi32_i32$3 | 0; - var$5 = i64toi32_i32$1; - var$5$hi = i64toi32_i32$3; - i64toi32_i32$3 = var$0$hi; - i64toi32_i32$5 = var$0; - i64toi32_i32$2 = 0; - i64toi32_i32$0 = 1; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $12 = $5; + $5 = $12; + $6 = $14; + $8 = $3_1; + $7 = $2_1; + $8 = $5 & $8 | 0; + $7 = $6 & $7 | 0; + $6 = $8; + $8 = $19; + $5 = $18; + $9 = $5 - $7 | 0; + $5 = $5 >>> 0 < $7 >>> 0; + $4 = $5 + $6 | 0; + $4 = $8 - $4 | 0; + $13 = $9; + $11 = $4; + $4 = $1_1; + $8 = $0_1; + $7 = 1; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$2 = i64toi32_i32$5 << i64toi32_i32$4 | 0; - $48 = 0; + $5 = $8 << $6 | 0; + $4 = 0; } } else { { - i64toi32_i32$2 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$5 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$3 << i64toi32_i32$4 | 0) | 0; - $48 = i64toi32_i32$5 << i64toi32_i32$4 | 0; + $5 = ((1 << $6 | 0) - 1 | 0) & ($8 >>> (32 - $6 | 0) | 0) | 0 | ($4 << $6 | 0) | 0; + $4 = $8 << $6 | 0; } } - $154$hi = i64toi32_i32$2; - i64toi32_i32$2 = var$7$hi; - i64toi32_i32$2 = $154$hi; - i64toi32_i32$3 = $48; - i64toi32_i32$5 = var$7$hi; - i64toi32_i32$0 = var$7; - i64toi32_i32$5 = i64toi32_i32$2 | i64toi32_i32$5 | 0; - var$0 = i64toi32_i32$3 | i64toi32_i32$0 | 0; - var$0$hi = i64toi32_i32$5; - i64toi32_i32$5 = var$6$hi; - i64toi32_i32$2 = var$6; - i64toi32_i32$3 = 0; - i64toi32_i32$0 = 1; - i64toi32_i32$3 = i64toi32_i32$5 & i64toi32_i32$3 | 0; - var$6 = i64toi32_i32$2 & i64toi32_i32$0 | 0; - var$6$hi = i64toi32_i32$3; - var$7 = var$6; - var$7$hi = i64toi32_i32$3; - var$2 = var$2 + -1 | 0; - if (var$2) { + $8 = $16; + $7 = $20; + $8 = $5 | $8 | 0; + $0_1 = $4 | $7 | 0; + $1_1 = $8; + $8 = $12; + $5 = $14; + $4 = 0; + $7 = 1; + $4 = $8 & $4 | 0; + $14 = $5 & $7 | 0; + $12 = $4; + $20 = $14; + $16 = $4; + $10 = $10 + -1 | 0; + if ($10) { continue label$15 } break label$15; @@ -6766,83 +5720,68 @@ function asmFunc(global, env, buffer) { } } } - i64toi32_i32$3 = var$5$hi; - legalfunc$wasm2js_scratch_store_i64(var$5 | 0, i64toi32_i32$3 | 0); - i64toi32_i32$3 = var$0$hi; - i64toi32_i32$5 = var$0; - i64toi32_i32$2 = 0; - i64toi32_i32$0 = 1; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $4 = $11; + legalfunc$wasm2js_scratch_store_i64($13 | 0, $4 | 0); + $4 = $1_1; + $8 = $0_1; + $7 = 1; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$2 = i64toi32_i32$5 << i64toi32_i32$4 | 0; - $49 = 0; + $5 = $8 << $6 | 0; + $4 = 0; } } else { { - i64toi32_i32$2 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$5 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$3 << i64toi32_i32$4 | 0) | 0; - $49 = i64toi32_i32$5 << i64toi32_i32$4 | 0; + $5 = ((1 << $6 | 0) - 1 | 0) & ($8 >>> (32 - $6 | 0) | 0) | 0 | ($4 << $6 | 0) | 0; + $4 = $8 << $6 | 0; } } - $165$hi = i64toi32_i32$2; - i64toi32_i32$2 = var$6$hi; - i64toi32_i32$2 = $165$hi; - i64toi32_i32$3 = $49; - i64toi32_i32$5 = var$6$hi; - i64toi32_i32$0 = var$6; - i64toi32_i32$5 = i64toi32_i32$2 | i64toi32_i32$5 | 0; - i64toi32_i32$3 = i64toi32_i32$3 | i64toi32_i32$0 | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$5; - return i64toi32_i32$3 | 0; - } - i64toi32_i32$3 = var$0$hi; - legalfunc$wasm2js_scratch_store_i64(var$0 | 0, i64toi32_i32$3 | 0); - i64toi32_i32$3 = 0; - var$0 = 0; - var$0$hi = i64toi32_i32$3; - } - i64toi32_i32$3 = var$0$hi; - i64toi32_i32$5 = var$0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$3; - return i64toi32_i32$5 | 0; - } - - function __wasm_i64_sdiv(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$0 = var$1$hi; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = _ZN17compiler_builtins3int4sdiv3Div3div17he78fc483e41d7ec7E(var$0 | 0, i64toi32_i32$0 | 0, var$1 | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; - } - - function __wasm_i64_udiv(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$0 = var$1$hi; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E(var$0 | 0, i64toi32_i32$0 | 0, var$1 | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; - } - - function __wasm_ctz_i32(var$0) { - var$0 = var$0 | 0; - if (var$0) { - return 31 - Math_clz32((var$0 + -1 | 0) ^ var$0 | 0) | 0 | 0 + $8 = $12; + $7 = $14; + $8 = $5 | $8 | 0; + $4 = $4 | $7 | 0; + i64toi32_i32$HIGH_BITS = $8; + return $4 | 0; + } + $4 = $1_1; + legalfunc$wasm2js_scratch_store_i64($0_1 | 0, $4 | 0); + $4 = 0; + $0_1 = 0; + $1_1 = $4; + } + $4 = $1_1; + $8 = $0_1; + i64toi32_i32$HIGH_BITS = $4; + return $8 | 0; + } + + function __wasm_i64_sdiv($0_1, $1_1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + $3_1 = _ZN17compiler_builtins3int4sdiv3Div3div17he78fc483e41d7ec7E($0_1 | 0, $1_1 | 0, $2_1 | 0, $3_1 | 0) | 0; + $1_1 = i64toi32_i32$HIGH_BITS; + i64toi32_i32$HIGH_BITS = $1_1; + return $3_1 | 0; + } + + function __wasm_i64_udiv($0_1, $1_1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + $3_1 = _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E($0_1 | 0, $1_1 | 0, $2_1 | 0, $3_1 | 0) | 0; + $1_1 = i64toi32_i32$HIGH_BITS; + i64toi32_i32$HIGH_BITS = $1_1; + return $3_1 | 0; + } + + function __wasm_ctz_i32($0_1) { + $0_1 = $0_1 | 0; + if ($0_1) { + return 31 - Math_clz32(($0_1 + -1 | 0) ^ $0_1 | 0) | 0 | 0 } return 32 | 0; } @@ -6899,302 +5838,247 @@ function asmFunc(global, env, buffer) { var infinity = global.Infinity; var setTempRet0 = env.setTempRet0; var i64toi32_i32$HIGH_BITS = 0; - function $0(x) { - x = x | 0; - return (x | 0) / (7 | 0) | 0 | 0; + function $0($0_1) { + $0_1 = $0_1 | 0; + return ($0_1 | 0) / (7 | 0) | 0 | 0; } - function $1(x) { - x = x | 0; - return (x >>> 0) / (7 >>> 0) | 0 | 0; + function $1($0_1) { + $0_1 = $0_1 | 0; + return ($0_1 >>> 0) / (7 >>> 0) | 0 | 0; } - function $2(x, x$hi) { - x = x | 0; - x$hi = x$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = x$hi; - i64toi32_i32$1 = 0; - i64toi32_i32$1 = __wasm_i64_sdiv(x | 0, i64toi32_i32$0 | 0, 7 | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + function $2($0_1, $1_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + var $2_1 = 0; + $2_1 = 0; + $2_1 = __wasm_i64_sdiv($0_1 | 0, $1_1 | 0, 7 | 0, $2_1 | 0) | 0; + $1_1 = i64toi32_i32$HIGH_BITS; + i64toi32_i32$HIGH_BITS = $1_1; + return $2_1 | 0; } - function $3(x, x$hi) { - x = x | 0; - x$hi = x$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = x$hi; - i64toi32_i32$1 = 0; - i64toi32_i32$1 = __wasm_i64_udiv(x | 0, i64toi32_i32$0 | 0, 7 | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + function $3($0_1, $1_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + var $2_1 = 0; + $2_1 = 0; + $2_1 = __wasm_i64_udiv($0_1 | 0, $1_1 | 0, 7 | 0, $2_1 | 0) | 0; + $1_1 = i64toi32_i32$HIGH_BITS; + i64toi32_i32$HIGH_BITS = $1_1; + return $2_1 | 0; } function legalstub$2($0_1, $1_1) { $0_1 = $0_1 | 0; $1_1 = $1_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12 = 0, $13 = 0, $4 = 0, $4$hi = 0, $7$hi = 0, $2_1 = 0, $2$hi = 0; - i64toi32_i32$0 = 0; - $4 = $0_1; - $4$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $2_1 = 0, $3_1 = 0, $4 = 0, $5 = 0, $6 = 0; + $3_1 = 0; + $5 = $0_1; + $6 = $3_1; + $3_1 = 0; + $4 = 32; + $2_1 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $12 = 0; + $0_1 = $1_1 << $2_1 | 0; + $4 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $12 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - } - } - $7$hi = i64toi32_i32$1; - i64toi32_i32$1 = $4$hi; - i64toi32_i32$0 = $4; - i64toi32_i32$2 = $7$hi; - i64toi32_i32$3 = $12; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - i64toi32_i32$2 = $2(i64toi32_i32$0 | i64toi32_i32$3 | 0 | 0, i64toi32_i32$2 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $2_1 = i64toi32_i32$2; - $2$hi = i64toi32_i32$0; - i64toi32_i32$1 = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $13 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + $0_1 = ((1 << $2_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $2_1 | 0) | 0) | 0 | ($3_1 << $2_1 | 0) | 0; + $4 = $1_1 << $2_1 | 0; + } + } + $1_1 = $0_1; + $0_1 = $6; + $3_1 = $5; + $1_1 = $0_1 | $1_1 | 0; + $1_1 = $2($3_1 | $4 | 0 | 0, $1_1 | 0) | 0; + $3_1 = i64toi32_i32$HIGH_BITS; + $6 = $1_1; + $5 = $3_1; + $0_1 = $1_1; + $4 = 32; + $2_1 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { + $0_1 = $3_1 >>> $2_1 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $13 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$1 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $2_1 | 0) - 1 | 0) & $3_1 | 0) << (32 - $2_1 | 0) | 0 | ($0_1 >>> $2_1 | 0) | 0 } - setTempRet0($13 | 0); - i64toi32_i32$2 = $2$hi; - return $2_1 | 0; + setTempRet0($0_1 | 0); + return $6 | 0; } function legalstub$3($0_1, $1_1) { $0_1 = $0_1 | 0; $1_1 = $1_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12 = 0, $13 = 0, $4 = 0, $4$hi = 0, $7$hi = 0, $2_1 = 0, $2$hi = 0; - i64toi32_i32$0 = 0; - $4 = $0_1; - $4$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $2_1 = 0, $3_1 = 0, $4 = 0, $5 = 0, $6 = 0; + $3_1 = 0; + $5 = $0_1; + $6 = $3_1; + $3_1 = 0; + $4 = 32; + $2_1 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $12 = 0; + $0_1 = $1_1 << $2_1 | 0; + $4 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $12 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - } - } - $7$hi = i64toi32_i32$1; - i64toi32_i32$1 = $4$hi; - i64toi32_i32$0 = $4; - i64toi32_i32$2 = $7$hi; - i64toi32_i32$3 = $12; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - i64toi32_i32$2 = $3(i64toi32_i32$0 | i64toi32_i32$3 | 0 | 0, i64toi32_i32$2 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $2_1 = i64toi32_i32$2; - $2$hi = i64toi32_i32$0; - i64toi32_i32$1 = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $13 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + $0_1 = ((1 << $2_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $2_1 | 0) | 0) | 0 | ($3_1 << $2_1 | 0) | 0; + $4 = $1_1 << $2_1 | 0; + } + } + $1_1 = $0_1; + $0_1 = $6; + $3_1 = $5; + $1_1 = $0_1 | $1_1 | 0; + $1_1 = $3($3_1 | $4 | 0 | 0, $1_1 | 0) | 0; + $3_1 = i64toi32_i32$HIGH_BITS; + $6 = $1_1; + $5 = $3_1; + $0_1 = $1_1; + $4 = 32; + $2_1 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { + $0_1 = $3_1 >>> $2_1 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $13 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$1 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $2_1 | 0) - 1 | 0) & $3_1 | 0) << (32 - $2_1 | 0) | 0 | ($0_1 >>> $2_1 | 0) | 0 } - setTempRet0($13 | 0); - i64toi32_i32$2 = $2$hi; - return $2_1 | 0; + setTempRet0($0_1 | 0); + return $6 | 0; } - function legalfunc$wasm2js_scratch_store_i64($0_1, $0$hi) { + function legalfunc$wasm2js_scratch_store_i64($0_1, $1_1) { $0_1 = $0_1 | 0; - $0$hi = $0$hi | 0; - var i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $8 = 0, $2_1 = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $0$hi; - $2_1 = $0_1; - i64toi32_i32$2 = $0_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = 0; - $8 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + $1_1 = $1_1 | 0; + var $2_1 = 0, $3_1 = 0, $4 = 0; + $4 = $0_1; + $3_1 = 32; + $2_1 = $3_1 & 31 | 0; + if (32 >>> 0 <= ($3_1 & 63 | 0) >>> 0) { + $0_1 = $1_1 >>> $2_1 | 0 } else { - { - i64toi32_i32$1 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $8 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $2_1 | 0) - 1 | 0) & $1_1 | 0) << (32 - $2_1 | 0) | 0 | ($0_1 >>> $2_1 | 0) | 0 } - legalimport$wasm2js_scratch_store_i64($2_1 | 0, $8 | 0); + legalimport$wasm2js_scratch_store_i64($4 | 0, $0_1 | 0); } - function _ZN17compiler_builtins3int4sdiv3Div3div17he78fc483e41d7ec7E(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; - var i64toi32_i32$1 = 0, i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, i64toi32_i32$0 = 0, i64toi32_i32$5 = 0, var$2 = 0, var$2$hi = 0, i64toi32_i32$6 = 0, $21 = 0, $22 = 0, $23 = 0, $7$hi = 0, $9 = 0, $9$hi = 0, $14$hi = 0, $16$hi = 0, $17 = 0, $17$hi = 0, $23$hi = 0; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$2 = var$0; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 63; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + function _ZN17compiler_builtins3int4sdiv3Div3div17he78fc483e41d7ec7E($0_1, $1_1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + var $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $10 = 0, $11 = 0, $12 = 0; + $8 = $1_1; + $7 = $0_1; + $6 = 63; + $5 = $6 & 31 | 0; + if (32 >>> 0 <= ($6 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$0 >> 31 | 0; - $21 = i64toi32_i32$0 >> i64toi32_i32$4 | 0; + $4 = $8 >> 31 | 0; + $5 = $8 >> $5 | 0; } } else { { - i64toi32_i32$1 = i64toi32_i32$0 >> i64toi32_i32$4 | 0; - $21 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } - } - var$2 = $21; - var$2$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$1 = var$2$hi; - i64toi32_i32$0 = var$2; - i64toi32_i32$2 = var$0$hi; - i64toi32_i32$3 = var$0; - i64toi32_i32$2 = i64toi32_i32$1 ^ i64toi32_i32$2 | 0; - $7$hi = i64toi32_i32$2; - i64toi32_i32$2 = i64toi32_i32$1; - i64toi32_i32$2 = $7$hi; - i64toi32_i32$1 = i64toi32_i32$0 ^ i64toi32_i32$3 | 0; - i64toi32_i32$0 = var$2$hi; - i64toi32_i32$3 = var$2; - i64toi32_i32$4 = i64toi32_i32$1 - i64toi32_i32$3 | 0; - i64toi32_i32$6 = i64toi32_i32$1 >>> 0 < i64toi32_i32$3 >>> 0; - i64toi32_i32$5 = i64toi32_i32$6 + i64toi32_i32$0 | 0; - i64toi32_i32$5 = i64toi32_i32$2 - i64toi32_i32$5 | 0; - $9 = i64toi32_i32$4; - $9$hi = i64toi32_i32$5; - i64toi32_i32$5 = var$1$hi; - i64toi32_i32$2 = var$1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 63; - i64toi32_i32$0 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = i64toi32_i32$5 >> 31 | 0; - $22 = i64toi32_i32$5 >> i64toi32_i32$0 | 0; + $4 = $8 >> $5 | 0; + $5 = (((1 << $5 | 0) - 1 | 0) & $8 | 0) << (32 - $5 | 0) | 0 | ($7 >>> $5 | 0) | 0; + } + } + $10 = $4; + $4 = $10; + $8 = $5; + $7 = $1_1; + $6 = $0_1; + $7 = $4 ^ $7 | 0; + $4 = $8 ^ $6 | 0; + $8 = $10; + $6 = $5; + $5 = $4 - $6 | 0; + $10 = $4 >>> 0 < $6 >>> 0; + $9 = $10 + $8 | 0; + $9 = $7 - $9 | 0; + $11 = $5; + $12 = $9; + $9 = $3_1; + $7 = $2_1; + $6 = 63; + $8 = $6 & 31 | 0; + if (32 >>> 0 <= ($6 & 63 | 0) >>> 0) { + { + $4 = $9 >> 31 | 0; + $5 = $9 >> $8 | 0; } } else { { - i64toi32_i32$1 = i64toi32_i32$5 >> i64toi32_i32$0 | 0; - $22 = (((1 << i64toi32_i32$0 | 0) - 1 | 0) & i64toi32_i32$5 | 0) << (32 - i64toi32_i32$0 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$0 | 0) | 0; - } - } - var$2 = $22; - var$2$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = var$2$hi; - i64toi32_i32$5 = var$2; - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$3 = var$1; - i64toi32_i32$2 = i64toi32_i32$1 ^ i64toi32_i32$2 | 0; - $14$hi = i64toi32_i32$2; - i64toi32_i32$2 = i64toi32_i32$1; - i64toi32_i32$2 = $14$hi; - i64toi32_i32$1 = i64toi32_i32$5 ^ i64toi32_i32$3 | 0; - i64toi32_i32$5 = var$2$hi; - i64toi32_i32$3 = var$2; - i64toi32_i32$0 = i64toi32_i32$1 - i64toi32_i32$3 | 0; - i64toi32_i32$6 = i64toi32_i32$1 >>> 0 < i64toi32_i32$3 >>> 0; - i64toi32_i32$4 = i64toi32_i32$6 + i64toi32_i32$5 | 0; - i64toi32_i32$4 = i64toi32_i32$2 - i64toi32_i32$4 | 0; - $16$hi = i64toi32_i32$4; - i64toi32_i32$4 = $9$hi; - i64toi32_i32$1 = $16$hi; - i64toi32_i32$1 = __wasm_i64_udiv($9 | 0, i64toi32_i32$4 | 0, i64toi32_i32$0 | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$4 = i64toi32_i32$HIGH_BITS; - $17 = i64toi32_i32$1; - $17$hi = i64toi32_i32$4; - i64toi32_i32$4 = var$1$hi; - i64toi32_i32$4 = var$0$hi; - i64toi32_i32$4 = var$1$hi; - i64toi32_i32$2 = var$1; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$3 = var$0; - i64toi32_i32$1 = i64toi32_i32$4 ^ i64toi32_i32$1 | 0; - i64toi32_i32$4 = i64toi32_i32$2 ^ i64toi32_i32$3 | 0; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 63; - i64toi32_i32$5 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = i64toi32_i32$1 >> 31 | 0; - $23 = i64toi32_i32$1 >> i64toi32_i32$5 | 0; + $4 = $9 >> $8 | 0; + $5 = (((1 << $8 | 0) - 1 | 0) & $9 | 0) << (32 - $8 | 0) | 0 | ($7 >>> $8 | 0) | 0; + } + } + $10 = $4; + $4 = $10; + $9 = $5; + $7 = $3_1; + $6 = $2_1; + $7 = $4 ^ $7 | 0; + $4 = $9 ^ $6 | 0; + $9 = $10; + $6 = $5; + $8 = $4 - $6 | 0; + $10 = $4 >>> 0 < $6 >>> 0; + $5 = $10 + $9 | 0; + $5 = $7 - $5 | 0; + $4 = $5; + $5 = $12; + $4 = __wasm_i64_udiv($11 | 0, $5 | 0, $8 | 0, $4 | 0) | 0; + $5 = i64toi32_i32$HIGH_BITS; + $10 = $4; + $8 = $5; + $5 = $3_1; + $7 = $2_1; + $4 = $1_1; + $6 = $0_1; + $4 = $5 ^ $4 | 0; + $5 = $7 ^ $6 | 0; + $6 = 63; + $9 = $6 & 31 | 0; + if (32 >>> 0 <= ($6 & 63 | 0) >>> 0) { + { + $7 = $4 >> 31 | 0; + $0_1 = $4 >> $9 | 0; } } else { { - i64toi32_i32$2 = i64toi32_i32$1 >> i64toi32_i32$5 | 0; - $23 = (((1 << i64toi32_i32$5 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$5 | 0) | 0 | (i64toi32_i32$4 >>> i64toi32_i32$5 | 0) | 0; - } - } - var$0 = $23; - var$0$hi = i64toi32_i32$2; - i64toi32_i32$2 = $17$hi; - i64toi32_i32$1 = $17; - i64toi32_i32$4 = var$0$hi; - i64toi32_i32$3 = var$0; - i64toi32_i32$4 = i64toi32_i32$2 ^ i64toi32_i32$4 | 0; - $23$hi = i64toi32_i32$4; - i64toi32_i32$4 = var$0$hi; - i64toi32_i32$4 = $23$hi; - i64toi32_i32$2 = i64toi32_i32$1 ^ i64toi32_i32$3 | 0; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$5 = i64toi32_i32$2 - i64toi32_i32$3 | 0; - i64toi32_i32$6 = i64toi32_i32$2 >>> 0 < i64toi32_i32$3 >>> 0; - i64toi32_i32$0 = i64toi32_i32$6 + i64toi32_i32$1 | 0; - i64toi32_i32$0 = i64toi32_i32$4 - i64toi32_i32$0 | 0; - i64toi32_i32$2 = i64toi32_i32$5; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$2 | 0; - } - - function _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$3 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, i64toi32_i32$5 = 0, var$2 = 0, var$3 = 0, var$4 = 0, var$5 = 0, var$5$hi = 0, var$6 = 0, var$6$hi = 0, i64toi32_i32$6 = 0, $37 = 0, $38 = 0, $39 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0, $44 = 0, var$8$hi = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0, var$7$hi = 0, $49 = 0, $63$hi = 0, $65 = 0, $65$hi = 0, $120$hi = 0, $129$hi = 0, $134$hi = 0, var$8 = 0, $140 = 0, $140$hi = 0, $142$hi = 0, $144 = 0, $144$hi = 0, $151 = 0, $151$hi = 0, $154$hi = 0, var$7 = 0, $165$hi = 0; + $7 = $4 >> $9 | 0; + $0_1 = (((1 << $9 | 0) - 1 | 0) & $4 | 0) << (32 - $9 | 0) | 0 | ($5 >>> $9 | 0) | 0; + } + } + $1_1 = $7; + $7 = $8; + $4 = $10; + $5 = $1_1; + $6 = $0_1; + $5 = $7 ^ $5 | 0; + $7 = $4 ^ $6 | 0; + $4 = $1_1; + $9 = $7 - $6 | 0; + $10 = $7 >>> 0 < $6 >>> 0; + $8 = $10 + $4 | 0; + $8 = $5 - $8 | 0; + $7 = $9; + i64toi32_i32$HIGH_BITS = $8; + return $7 | 0; + } + + function _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E($0_1, $1_1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + var $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $20 = 0; label$1 : { label$2 : { label$3 : { @@ -7205,394 +6089,335 @@ function asmFunc(global, env, buffer) { label$8 : { label$9 : { label$11 : { - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$2 = var$0; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = 0; - $37 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + $7 = $1_1; + $5 = $0_1; + $4 = 32; + $6 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { + $10 = $7 >>> $6 | 0 } else { - { - i64toi32_i32$1 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $37 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $10 = (((1 << $6 | 0) - 1 | 0) & $7 | 0) << (32 - $6 | 0) | 0 | ($5 >>> $6 | 0) | 0 } - var$2 = $37; - if (var$2) { + if ($10) { { - i64toi32_i32$1 = var$1$hi; - var$3 = var$1; - if (!var$3) { + $8 = $2_1; + if (!$8) { break label$11 } - i64toi32_i32$1 = var$1$hi; - i64toi32_i32$0 = var$1; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $38 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + $9 = $3_1; + $7 = $2_1; + $4 = 32; + $6 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { + $11 = $9 >>> $6 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $38 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$0 >>> i64toi32_i32$4 | 0) | 0; - } + $11 = (((1 << $6 | 0) - 1 | 0) & $9 | 0) << (32 - $6 | 0) | 0 | ($7 >>> $6 | 0) | 0 } - var$4 = $38; - if (!var$4) { + if (!$11) { break label$9 } - var$2 = Math_clz32(var$4) - Math_clz32(var$2) | 0; - if (var$2 >>> 0 <= 31 >>> 0) { + $10 = Math_clz32($11) - Math_clz32($10) | 0; + if ($10 >>> 0 <= 31 >>> 0) { break label$8 } break label$2; } } - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$1 = var$1; - i64toi32_i32$0 = 1; - i64toi32_i32$3 = 0; - if (i64toi32_i32$2 >>> 0 > i64toi32_i32$0 >>> 0 | ((i64toi32_i32$2 | 0) == (i64toi32_i32$0 | 0) & i64toi32_i32$1 >>> 0 >= i64toi32_i32$3 >>> 0 | 0) | 0) { + $5 = $3_1; + $9 = $2_1; + $7 = 1; + $4 = 0; + if ($5 >>> 0 > $7 >>> 0 | (($5 | 0) == ($7 | 0) & $9 >>> 0 >= $4 >>> 0 | 0) | 0) { break label$2 } - i64toi32_i32$1 = var$0$hi; - var$2 = var$0; - i64toi32_i32$1 = var$1$hi; - var$3 = var$1; - var$2 = (var$2 >>> 0) / (var$3 >>> 0) | 0; - i64toi32_i32$1 = 0; - legalfunc$wasm2js_scratch_store_i64(var$0 - Math_imul(var$2, var$3) | 0 | 0, i64toi32_i32$1 | 0); - i64toi32_i32$1 = 0; - i64toi32_i32$2 = var$2; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$2 | 0; + $10 = $0_1; + $8 = $2_1; + $10 = ($10 >>> 0) / ($8 >>> 0) | 0; + $9 = 0; + legalfunc$wasm2js_scratch_store_i64($0_1 - Math_imul($10, $8) | 0 | 0, $9 | 0); + $9 = 0; + $5 = $10; + i64toi32_i32$HIGH_BITS = $9; + return $5 | 0; } - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$3 = var$1; - i64toi32_i32$1 = 0; - i64toi32_i32$0 = 32; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = 0; - $39 = i64toi32_i32$2 >>> i64toi32_i32$4 | 0; - } + $5 = $3_1; + $4 = $2_1; + $7 = 32; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { + $8 = $5 >>> $6 | 0 } else { - { - i64toi32_i32$1 = i64toi32_i32$2 >>> i64toi32_i32$4 | 0; - $39 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$2 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$3 >>> i64toi32_i32$4 | 0) | 0; - } + $8 = (((1 << $6 | 0) - 1 | 0) & $5 | 0) << (32 - $6 | 0) | 0 | ($4 >>> $6 | 0) | 0 } - var$3 = $39; - i64toi32_i32$1 = var$0$hi; - if (!var$0) { + if (!$0_1) { break label$7 } - if (!var$3) { + if (!$8) { break label$6 } - var$4 = var$3 + -1 | 0; - if (var$4 & var$3 | 0) { + $11 = $8 + -1 | 0; + if ($11 & $8 | 0) { break label$6 } - i64toi32_i32$1 = 0; - i64toi32_i32$2 = var$4 & var$2 | 0; - i64toi32_i32$3 = 0; - i64toi32_i32$0 = 32; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $9 = 0; + $5 = $11 & $10 | 0; + $7 = 32; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$3 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $40 = 0; + $4 = $5 << $6 | 0; + $3_1 = 0; } } else { { - i64toi32_i32$3 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$1 << i64toi32_i32$4 | 0) | 0; - $40 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $4 = ((1 << $6 | 0) - 1 | 0) & ($5 >>> (32 - $6 | 0) | 0) | 0 | ($9 << $6 | 0) | 0; + $3_1 = $5 << $6 | 0; } } - $63$hi = i64toi32_i32$3; - i64toi32_i32$3 = var$0$hi; - i64toi32_i32$1 = var$0; - i64toi32_i32$2 = 0; - i64toi32_i32$0 = -1; - i64toi32_i32$2 = i64toi32_i32$3 & i64toi32_i32$2 | 0; - $65 = i64toi32_i32$1 & i64toi32_i32$0 | 0; - $65$hi = i64toi32_i32$2; - i64toi32_i32$2 = $63$hi; - i64toi32_i32$3 = $40; - i64toi32_i32$1 = $65$hi; - i64toi32_i32$0 = $65; - i64toi32_i32$1 = i64toi32_i32$2 | i64toi32_i32$1 | 0; - legalfunc$wasm2js_scratch_store_i64(i64toi32_i32$3 | i64toi32_i32$0 | 0 | 0, i64toi32_i32$1 | 0); - i64toi32_i32$1 = 0; - i64toi32_i32$3 = var$2 >>> ((__wasm_ctz_i32(var$3 | 0) | 0) & 31 | 0) | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$3 | 0; + $2_1 = $4; + $4 = $1_1; + $9 = $0_1; + $5 = 0; + $7 = -1; + $5 = $4 & $5 | 0; + $7 = $9 & $7 | 0; + $9 = $5; + $5 = $2_1; + $4 = $3_1; + $9 = $5 | $9 | 0; + legalfunc$wasm2js_scratch_store_i64($4 | $7 | 0 | 0, $9 | 0); + $9 = 0; + $4 = $10 >>> ((__wasm_ctz_i32($8 | 0) | 0) & 31 | 0) | 0; + i64toi32_i32$HIGH_BITS = $9; + return $4 | 0; } - var$4 = var$3 + -1 | 0; - if (!(var$4 & var$3 | 0)) { + $11 = $8 + -1 | 0; + if (!($11 & $8 | 0)) { break label$5 } - var$2 = (Math_clz32(var$3) + 33 | 0) - Math_clz32(var$2) | 0; - var$3 = 0 - var$2 | 0; + $10 = (Math_clz32($8) + 33 | 0) - Math_clz32($10) | 0; + $8 = 0 - $10 | 0; break label$3; } - var$3 = 63 - var$2 | 0; - var$2 = var$2 + 1 | 0; + $8 = 63 - $10 | 0; + $10 = $10 + 1 | 0; break label$3; } - var$4 = (var$2 >>> 0) / (var$3 >>> 0) | 0; - i64toi32_i32$3 = 0; - i64toi32_i32$2 = var$2 - Math_imul(var$4, var$3) | 0; - i64toi32_i32$1 = 0; - i64toi32_i32$0 = 32; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $11 = ($10 >>> 0) / ($8 >>> 0) | 0; + $4 = 0; + $5 = $10 - Math_imul($11, $8) | 0; + $7 = 32; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $41 = 0; + $9 = $5 << $6 | 0; + $0_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$3 << i64toi32_i32$4 | 0) | 0; - $41 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $9 = ((1 << $6 | 0) - 1 | 0) & ($5 >>> (32 - $6 | 0) | 0) | 0 | ($4 << $6 | 0) | 0; + $0_1 = $5 << $6 | 0; } } - legalfunc$wasm2js_scratch_store_i64($41 | 0, i64toi32_i32$1 | 0); - i64toi32_i32$1 = 0; - i64toi32_i32$2 = var$4; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$2 | 0; + legalfunc$wasm2js_scratch_store_i64($0_1 | 0, $9 | 0); + $9 = 0; + $5 = $11; + i64toi32_i32$HIGH_BITS = $9; + return $5 | 0; } - var$2 = Math_clz32(var$3) - Math_clz32(var$2) | 0; - if (var$2 >>> 0 < 31 >>> 0) { + $10 = Math_clz32($8) - Math_clz32($10) | 0; + if ($10 >>> 0 < 31 >>> 0) { break label$4 } break label$2; } - i64toi32_i32$2 = var$0$hi; - i64toi32_i32$2 = 0; - legalfunc$wasm2js_scratch_store_i64(var$4 & var$0 | 0 | 0, i64toi32_i32$2 | 0); - if ((var$3 | 0) == (1 | 0)) { + $5 = 0; + legalfunc$wasm2js_scratch_store_i64($11 & $0_1 | 0 | 0, $5 | 0); + if (($8 | 0) == (1 | 0)) { break label$1 } - i64toi32_i32$2 = var$0$hi; - i64toi32_i32$2 = 0; - $120$hi = i64toi32_i32$2; - i64toi32_i32$2 = var$0$hi; - i64toi32_i32$3 = var$0; - i64toi32_i32$1 = $120$hi; - i64toi32_i32$0 = __wasm_ctz_i32(var$3 | 0) | 0; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $5 = 0; + $9 = $5; + $5 = $1_1; + $4 = $0_1; + $7 = __wasm_ctz_i32($8 | 0) | 0; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = 0; - $42 = i64toi32_i32$2 >>> i64toi32_i32$4 | 0; + $9 = 0; + $4 = $5 >>> $6 | 0; } } else { { - i64toi32_i32$1 = i64toi32_i32$2 >>> i64toi32_i32$4 | 0; - $42 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$2 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$3 >>> i64toi32_i32$4 | 0) | 0; + $9 = $5 >>> $6 | 0; + $4 = (((1 << $6 | 0) - 1 | 0) & $5 | 0) << (32 - $6 | 0) | 0 | ($4 >>> $6 | 0) | 0; } } - i64toi32_i32$3 = $42; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$3 | 0; + i64toi32_i32$HIGH_BITS = $9; + return $4 | 0; } - var$3 = 63 - var$2 | 0; - var$2 = var$2 + 1 | 0; + $8 = 63 - $10 | 0; + $10 = $10 + 1 | 0; } - i64toi32_i32$3 = var$0$hi; - i64toi32_i32$3 = 0; - $129$hi = i64toi32_i32$3; - i64toi32_i32$3 = var$0$hi; - i64toi32_i32$2 = var$0; - i64toi32_i32$1 = $129$hi; - i64toi32_i32$0 = var$2 & 63 | 0; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $4 = 0; + $9 = $4; + $4 = $1_1; + $5 = $0_1; + $7 = $10 & 63 | 0; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = 0; - $43 = i64toi32_i32$3 >>> i64toi32_i32$4 | 0; + $9 = 0; + $13 = $4 >>> $6 | 0; } } else { { - i64toi32_i32$1 = i64toi32_i32$3 >>> i64toi32_i32$4 | 0; - $43 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$3 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; + $9 = $4 >>> $6 | 0; + $13 = (((1 << $6 | 0) - 1 | 0) & $4 | 0) << (32 - $6 | 0) | 0 | ($5 >>> $6 | 0) | 0; } } - var$5 = $43; - var$5$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$1 = 0; - $134$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$3 = var$0; - i64toi32_i32$2 = $134$hi; - i64toi32_i32$0 = var$3 & 63 | 0; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $11 = $9; + $9 = 0; + $5 = $9; + $9 = $1_1; + $4 = $0_1; + $7 = $8 & 63 | 0; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$2 = i64toi32_i32$3 << i64toi32_i32$4 | 0; - $44 = 0; + $5 = $4 << $6 | 0; + $0_1 = 0; } } else { { - i64toi32_i32$2 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$3 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$1 << i64toi32_i32$4 | 0) | 0; - $44 = i64toi32_i32$3 << i64toi32_i32$4 | 0; + $5 = ((1 << $6 | 0) - 1 | 0) & ($4 >>> (32 - $6 | 0) | 0) | 0 | ($9 << $6 | 0) | 0; + $0_1 = $4 << $6 | 0; } } - var$0 = $44; - var$0$hi = i64toi32_i32$2; + $1_1 = $5; label$13 : { - if (var$2) { + if ($10) { { - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$1 = var$1; - i64toi32_i32$3 = -1; - i64toi32_i32$0 = -1; - i64toi32_i32$4 = i64toi32_i32$1 + i64toi32_i32$0 | 0; - i64toi32_i32$5 = i64toi32_i32$2 + i64toi32_i32$3 | 0; - if (i64toi32_i32$4 >>> 0 < i64toi32_i32$0 >>> 0) { - i64toi32_i32$5 = i64toi32_i32$5 + 1 | 0 + $5 = $3_1; + $9 = $2_1; + $4 = -1; + $7 = -1; + $6 = $9 + $7 | 0; + $8 = $5 + $4 | 0; + if ($6 >>> 0 < $7 >>> 0) { + $8 = $8 + 1 | 0 } - var$8 = i64toi32_i32$4; - var$8$hi = i64toi32_i32$5; + $17 = $6; + $15 = $8; label$15 : while (1) { - i64toi32_i32$5 = var$5$hi; - i64toi32_i32$2 = var$5; - i64toi32_i32$1 = 0; - i64toi32_i32$0 = 1; - i64toi32_i32$3 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $8 = $11; + $5 = $13; + $7 = 1; + $4 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$3 | 0; - $45 = 0; + $9 = $5 << $4 | 0; + $12 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$3 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$3 | 0) | 0) | 0 | (i64toi32_i32$5 << i64toi32_i32$3 | 0) | 0; - $45 = i64toi32_i32$2 << i64toi32_i32$3 | 0; + $9 = ((1 << $4 | 0) - 1 | 0) & ($5 >>> (32 - $4 | 0) | 0) | 0 | ($8 << $4 | 0) | 0; + $12 = $5 << $4 | 0; } } - $140 = $45; - $140$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$5 = var$0; - i64toi32_i32$2 = 0; - i64toi32_i32$0 = 63; - i64toi32_i32$3 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $11 = $9; + $9 = $1_1; + $8 = $0_1; + $7 = 63; + $4 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$2 = 0; - $46 = i64toi32_i32$1 >>> i64toi32_i32$3 | 0; + $5 = 0; + $7 = $9 >>> $4 | 0; } } else { { - i64toi32_i32$2 = i64toi32_i32$1 >>> i64toi32_i32$3 | 0; - $46 = (((1 << i64toi32_i32$3 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$3 | 0) | 0 | (i64toi32_i32$5 >>> i64toi32_i32$3 | 0) | 0; + $5 = $9 >>> $4 | 0; + $7 = (((1 << $4 | 0) - 1 | 0) & $9 | 0) << (32 - $4 | 0) | 0 | ($8 >>> $4 | 0) | 0; } } - $142$hi = i64toi32_i32$2; - i64toi32_i32$2 = $140$hi; - i64toi32_i32$1 = $140; - i64toi32_i32$5 = $142$hi; - i64toi32_i32$0 = $46; - i64toi32_i32$5 = i64toi32_i32$2 | i64toi32_i32$5 | 0; - var$5 = i64toi32_i32$1 | i64toi32_i32$0 | 0; - var$5$hi = i64toi32_i32$5; - $144 = var$5; - $144$hi = i64toi32_i32$5; - i64toi32_i32$5 = var$8$hi; - i64toi32_i32$5 = var$5$hi; - i64toi32_i32$5 = var$8$hi; - i64toi32_i32$2 = var$8; - i64toi32_i32$1 = var$5$hi; - i64toi32_i32$0 = var$5; - i64toi32_i32$3 = i64toi32_i32$2 - i64toi32_i32$0 | 0; - i64toi32_i32$6 = i64toi32_i32$2 >>> 0 < i64toi32_i32$0 >>> 0; - i64toi32_i32$4 = i64toi32_i32$6 + i64toi32_i32$1 | 0; - i64toi32_i32$4 = i64toi32_i32$5 - i64toi32_i32$4 | 0; - i64toi32_i32$5 = i64toi32_i32$3; - i64toi32_i32$2 = 0; - i64toi32_i32$0 = 63; - i64toi32_i32$1 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $8 = $5; + $5 = $11; + $9 = $12; + $8 = $5 | $8 | 0; + $13 = $9 | $7 | 0; + $11 = $8; + $18 = $13; + $19 = $8; + $8 = $15; + $5 = $17; + $9 = $11; + $7 = $13; + $4 = $5 - $7 | 0; + $5 = $5 >>> 0 < $7 >>> 0; + $6 = $5 + $9 | 0; + $6 = $8 - $6 | 0; + $8 = $4; + $7 = 63; + $9 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$2 = i64toi32_i32$4 >> 31 | 0; - $47 = i64toi32_i32$4 >> i64toi32_i32$1 | 0; + $5 = $6 >> 31 | 0; + $14 = $6 >> $9 | 0; } } else { { - i64toi32_i32$2 = i64toi32_i32$4 >> i64toi32_i32$1 | 0; - $47 = (((1 << i64toi32_i32$1 | 0) - 1 | 0) & i64toi32_i32$4 | 0) << (32 - i64toi32_i32$1 | 0) | 0 | (i64toi32_i32$5 >>> i64toi32_i32$1 | 0) | 0; + $5 = $6 >> $9 | 0; + $14 = (((1 << $9 | 0) - 1 | 0) & $6 | 0) << (32 - $9 | 0) | 0 | ($8 >>> $9 | 0) | 0; } } - var$6 = $47; - var$6$hi = i64toi32_i32$2; - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$2 = var$6$hi; - i64toi32_i32$4 = var$6; - i64toi32_i32$5 = var$1$hi; - i64toi32_i32$0 = var$1; - i64toi32_i32$5 = i64toi32_i32$2 & i64toi32_i32$5 | 0; - $151 = i64toi32_i32$4 & i64toi32_i32$0 | 0; - $151$hi = i64toi32_i32$5; - i64toi32_i32$5 = $144$hi; - i64toi32_i32$2 = $144; - i64toi32_i32$4 = $151$hi; - i64toi32_i32$0 = $151; - i64toi32_i32$1 = i64toi32_i32$2 - i64toi32_i32$0 | 0; - i64toi32_i32$6 = i64toi32_i32$2 >>> 0 < i64toi32_i32$0 >>> 0; - i64toi32_i32$3 = i64toi32_i32$6 + i64toi32_i32$4 | 0; - i64toi32_i32$3 = i64toi32_i32$5 - i64toi32_i32$3 | 0; - var$5 = i64toi32_i32$1; - var$5$hi = i64toi32_i32$3; - i64toi32_i32$3 = var$0$hi; - i64toi32_i32$5 = var$0; - i64toi32_i32$2 = 0; - i64toi32_i32$0 = 1; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $12 = $5; + $5 = $12; + $6 = $14; + $8 = $3_1; + $7 = $2_1; + $8 = $5 & $8 | 0; + $7 = $6 & $7 | 0; + $6 = $8; + $8 = $19; + $5 = $18; + $9 = $5 - $7 | 0; + $5 = $5 >>> 0 < $7 >>> 0; + $4 = $5 + $6 | 0; + $4 = $8 - $4 | 0; + $13 = $9; + $11 = $4; + $4 = $1_1; + $8 = $0_1; + $7 = 1; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$2 = i64toi32_i32$5 << i64toi32_i32$4 | 0; - $48 = 0; + $5 = $8 << $6 | 0; + $4 = 0; } } else { { - i64toi32_i32$2 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$5 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$3 << i64toi32_i32$4 | 0) | 0; - $48 = i64toi32_i32$5 << i64toi32_i32$4 | 0; + $5 = ((1 << $6 | 0) - 1 | 0) & ($8 >>> (32 - $6 | 0) | 0) | 0 | ($4 << $6 | 0) | 0; + $4 = $8 << $6 | 0; } } - $154$hi = i64toi32_i32$2; - i64toi32_i32$2 = var$7$hi; - i64toi32_i32$2 = $154$hi; - i64toi32_i32$3 = $48; - i64toi32_i32$5 = var$7$hi; - i64toi32_i32$0 = var$7; - i64toi32_i32$5 = i64toi32_i32$2 | i64toi32_i32$5 | 0; - var$0 = i64toi32_i32$3 | i64toi32_i32$0 | 0; - var$0$hi = i64toi32_i32$5; - i64toi32_i32$5 = var$6$hi; - i64toi32_i32$2 = var$6; - i64toi32_i32$3 = 0; - i64toi32_i32$0 = 1; - i64toi32_i32$3 = i64toi32_i32$5 & i64toi32_i32$3 | 0; - var$6 = i64toi32_i32$2 & i64toi32_i32$0 | 0; - var$6$hi = i64toi32_i32$3; - var$7 = var$6; - var$7$hi = i64toi32_i32$3; - var$2 = var$2 + -1 | 0; - if (var$2) { + $8 = $16; + $7 = $20; + $8 = $5 | $8 | 0; + $0_1 = $4 | $7 | 0; + $1_1 = $8; + $8 = $12; + $5 = $14; + $4 = 0; + $7 = 1; + $4 = $8 & $4 | 0; + $14 = $5 & $7 | 0; + $12 = $4; + $20 = $14; + $16 = $4; + $10 = $10 + -1 | 0; + if ($10) { continue label$15 } break label$15; @@ -7601,83 +6426,68 @@ function asmFunc(global, env, buffer) { } } } - i64toi32_i32$3 = var$5$hi; - legalfunc$wasm2js_scratch_store_i64(var$5 | 0, i64toi32_i32$3 | 0); - i64toi32_i32$3 = var$0$hi; - i64toi32_i32$5 = var$0; - i64toi32_i32$2 = 0; - i64toi32_i32$0 = 1; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $4 = $11; + legalfunc$wasm2js_scratch_store_i64($13 | 0, $4 | 0); + $4 = $1_1; + $8 = $0_1; + $7 = 1; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$2 = i64toi32_i32$5 << i64toi32_i32$4 | 0; - $49 = 0; + $5 = $8 << $6 | 0; + $4 = 0; } } else { { - i64toi32_i32$2 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$5 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$3 << i64toi32_i32$4 | 0) | 0; - $49 = i64toi32_i32$5 << i64toi32_i32$4 | 0; + $5 = ((1 << $6 | 0) - 1 | 0) & ($8 >>> (32 - $6 | 0) | 0) | 0 | ($4 << $6 | 0) | 0; + $4 = $8 << $6 | 0; } } - $165$hi = i64toi32_i32$2; - i64toi32_i32$2 = var$6$hi; - i64toi32_i32$2 = $165$hi; - i64toi32_i32$3 = $49; - i64toi32_i32$5 = var$6$hi; - i64toi32_i32$0 = var$6; - i64toi32_i32$5 = i64toi32_i32$2 | i64toi32_i32$5 | 0; - i64toi32_i32$3 = i64toi32_i32$3 | i64toi32_i32$0 | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$5; - return i64toi32_i32$3 | 0; - } - i64toi32_i32$3 = var$0$hi; - legalfunc$wasm2js_scratch_store_i64(var$0 | 0, i64toi32_i32$3 | 0); - i64toi32_i32$3 = 0; - var$0 = 0; - var$0$hi = i64toi32_i32$3; - } - i64toi32_i32$3 = var$0$hi; - i64toi32_i32$5 = var$0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$3; - return i64toi32_i32$5 | 0; - } - - function __wasm_i64_sdiv(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$0 = var$1$hi; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = _ZN17compiler_builtins3int4sdiv3Div3div17he78fc483e41d7ec7E(var$0 | 0, i64toi32_i32$0 | 0, var$1 | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; - } - - function __wasm_i64_udiv(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$0 = var$1$hi; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E(var$0 | 0, i64toi32_i32$0 | 0, var$1 | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; - } - - function __wasm_ctz_i32(var$0) { - var$0 = var$0 | 0; - if (var$0) { - return 31 - Math_clz32((var$0 + -1 | 0) ^ var$0 | 0) | 0 | 0 + $8 = $12; + $7 = $14; + $8 = $5 | $8 | 0; + $4 = $4 | $7 | 0; + i64toi32_i32$HIGH_BITS = $8; + return $4 | 0; + } + $4 = $1_1; + legalfunc$wasm2js_scratch_store_i64($0_1 | 0, $4 | 0); + $4 = 0; + $0_1 = 0; + $1_1 = $4; + } + $4 = $1_1; + $8 = $0_1; + i64toi32_i32$HIGH_BITS = $4; + return $8 | 0; + } + + function __wasm_i64_sdiv($0_1, $1_1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + $3_1 = _ZN17compiler_builtins3int4sdiv3Div3div17he78fc483e41d7ec7E($0_1 | 0, $1_1 | 0, $2_1 | 0, $3_1 | 0) | 0; + $1_1 = i64toi32_i32$HIGH_BITS; + i64toi32_i32$HIGH_BITS = $1_1; + return $3_1 | 0; + } + + function __wasm_i64_udiv($0_1, $1_1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + $3_1 = _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E($0_1 | 0, $1_1 | 0, $2_1 | 0, $3_1 | 0) | 0; + $1_1 = i64toi32_i32$HIGH_BITS; + i64toi32_i32$HIGH_BITS = $1_1; + return $3_1 | 0; + } + + function __wasm_ctz_i32($0_1) { + $0_1 = $0_1 | 0; + if ($0_1) { + return 31 - Math_clz32(($0_1 + -1 | 0) ^ $0_1 | 0) | 0 | 0 } return 32 | 0; } @@ -7741,310 +6551,253 @@ function asmFunc(global, env, buffer) { var setTempRet0 = env.setTempRet0; var getTempRet0 = env.getTempRet0; var i64toi32_i32$HIGH_BITS = 0; - function $0(x) { - x = x | 0; - return (x | 0) % (3 | 0) | 0 | 0; + function $0($0_1) { + $0_1 = $0_1 | 0; + return ($0_1 | 0) % (3 | 0) | 0 | 0; } - function $1(x) { - x = x | 0; - return (x >>> 0) % (3 >>> 0) | 0 | 0; + function $1($0_1) { + $0_1 = $0_1 | 0; + return ($0_1 >>> 0) % (3 >>> 0) | 0 | 0; } - function $2(x, x$hi) { - x = x | 0; - x$hi = x$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = x$hi; - i64toi32_i32$1 = 0; - i64toi32_i32$1 = __wasm_i64_srem(x | 0, i64toi32_i32$0 | 0, 3 | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + function $2($0_1, $1_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + var $2_1 = 0; + $2_1 = 0; + $2_1 = __wasm_i64_srem($0_1 | 0, $1_1 | 0, 3 | 0, $2_1 | 0) | 0; + $1_1 = i64toi32_i32$HIGH_BITS; + i64toi32_i32$HIGH_BITS = $1_1; + return $2_1 | 0; } - function $3(x, x$hi) { - x = x | 0; - x$hi = x$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = x$hi; - i64toi32_i32$1 = 0; - i64toi32_i32$1 = __wasm_i64_urem(x | 0, i64toi32_i32$0 | 0, 3 | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + function $3($0_1, $1_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + var $2_1 = 0; + $2_1 = 0; + $2_1 = __wasm_i64_urem($0_1 | 0, $1_1 | 0, 3 | 0, $2_1 | 0) | 0; + $1_1 = i64toi32_i32$HIGH_BITS; + i64toi32_i32$HIGH_BITS = $1_1; + return $2_1 | 0; } function legalstub$2($0_1, $1_1) { $0_1 = $0_1 | 0; $1_1 = $1_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12 = 0, $13 = 0, $4 = 0, $4$hi = 0, $7$hi = 0, $2_1 = 0, $2$hi = 0; - i64toi32_i32$0 = 0; - $4 = $0_1; - $4$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $2_1 = 0, $3_1 = 0, $4 = 0, $5 = 0, $6 = 0; + $3_1 = 0; + $5 = $0_1; + $6 = $3_1; + $3_1 = 0; + $4 = 32; + $2_1 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $12 = 0; + $0_1 = $1_1 << $2_1 | 0; + $4 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $12 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - } - } - $7$hi = i64toi32_i32$1; - i64toi32_i32$1 = $4$hi; - i64toi32_i32$0 = $4; - i64toi32_i32$2 = $7$hi; - i64toi32_i32$3 = $12; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - i64toi32_i32$2 = $2(i64toi32_i32$0 | i64toi32_i32$3 | 0 | 0, i64toi32_i32$2 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $2_1 = i64toi32_i32$2; - $2$hi = i64toi32_i32$0; - i64toi32_i32$1 = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $13 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + $0_1 = ((1 << $2_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $2_1 | 0) | 0) | 0 | ($3_1 << $2_1 | 0) | 0; + $4 = $1_1 << $2_1 | 0; + } + } + $1_1 = $0_1; + $0_1 = $6; + $3_1 = $5; + $1_1 = $0_1 | $1_1 | 0; + $1_1 = $2($3_1 | $4 | 0 | 0, $1_1 | 0) | 0; + $3_1 = i64toi32_i32$HIGH_BITS; + $6 = $1_1; + $5 = $3_1; + $0_1 = $1_1; + $4 = 32; + $2_1 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { + $0_1 = $3_1 >>> $2_1 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $13 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$1 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $2_1 | 0) - 1 | 0) & $3_1 | 0) << (32 - $2_1 | 0) | 0 | ($0_1 >>> $2_1 | 0) | 0 } - setTempRet0($13 | 0); - i64toi32_i32$2 = $2$hi; - return $2_1 | 0; + setTempRet0($0_1 | 0); + return $6 | 0; } function legalstub$3($0_1, $1_1) { $0_1 = $0_1 | 0; $1_1 = $1_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12 = 0, $13 = 0, $4 = 0, $4$hi = 0, $7$hi = 0, $2_1 = 0, $2$hi = 0; - i64toi32_i32$0 = 0; - $4 = $0_1; - $4$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $2_1 = 0, $3_1 = 0, $4 = 0, $5 = 0, $6 = 0; + $3_1 = 0; + $5 = $0_1; + $6 = $3_1; + $3_1 = 0; + $4 = 32; + $2_1 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $12 = 0; + $0_1 = $1_1 << $2_1 | 0; + $4 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $12 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - } - } - $7$hi = i64toi32_i32$1; - i64toi32_i32$1 = $4$hi; - i64toi32_i32$0 = $4; - i64toi32_i32$2 = $7$hi; - i64toi32_i32$3 = $12; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - i64toi32_i32$2 = $3(i64toi32_i32$0 | i64toi32_i32$3 | 0 | 0, i64toi32_i32$2 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $2_1 = i64toi32_i32$2; - $2$hi = i64toi32_i32$0; - i64toi32_i32$1 = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $13 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + $0_1 = ((1 << $2_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $2_1 | 0) | 0) | 0 | ($3_1 << $2_1 | 0) | 0; + $4 = $1_1 << $2_1 | 0; + } + } + $1_1 = $0_1; + $0_1 = $6; + $3_1 = $5; + $1_1 = $0_1 | $1_1 | 0; + $1_1 = $3($3_1 | $4 | 0 | 0, $1_1 | 0) | 0; + $3_1 = i64toi32_i32$HIGH_BITS; + $6 = $1_1; + $5 = $3_1; + $0_1 = $1_1; + $4 = 32; + $2_1 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { + $0_1 = $3_1 >>> $2_1 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $13 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$1 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $2_1 | 0) - 1 | 0) & $3_1 | 0) << (32 - $2_1 | 0) | 0 | ($0_1 >>> $2_1 | 0) | 0 } - setTempRet0($13 | 0); - i64toi32_i32$2 = $2$hi; - return $2_1 | 0; + setTempRet0($0_1 | 0); + return $6 | 0; } function legalfunc$wasm2js_scratch_load_i64() { - var i64toi32_i32$0 = 0, i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $8 = 0, $1_1 = 0, $1$hi = 0, $4$hi = 0; - i64toi32_i32$0 = 0; - $1_1 = legalimport$wasm2js_scratch_load_i64() | 0; - $1$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = getTempRet0() | 0; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $8 = 0; + var $0_1 = 0, $1_1 = 0, $2_1 = 0, $3_1 = 0, $4 = 0, $5 = 0, $6 = 0; + $0_1 = 0; + $5 = legalimport$wasm2js_scratch_load_i64() | 0; + $6 = $0_1; + $0_1 = 0; + $1_1 = getTempRet0() | 0; + $2_1 = 32; + $3_1 = $2_1 & 31 | 0; + if (32 >>> 0 <= ($2_1 & 63 | 0) >>> 0) { + { + $4 = $1_1 << $3_1 | 0; + $2_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $8 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $4 = ((1 << $3_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $3_1 | 0) | 0) | 0 | ($0_1 << $3_1 | 0) | 0; + $2_1 = $1_1 << $3_1 | 0; } } - $4$hi = i64toi32_i32$1; - i64toi32_i32$1 = $1$hi; - i64toi32_i32$0 = $1_1; - i64toi32_i32$2 = $4$hi; - i64toi32_i32$3 = $8; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - i64toi32_i32$0 = i64toi32_i32$0 | i64toi32_i32$3 | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$2; - return i64toi32_i32$0 | 0; + $1_1 = $4; + $4 = $6; + $0_1 = $5; + $1_1 = $4 | $1_1 | 0; + $0_1 = $0_1 | $2_1 | 0; + i64toi32_i32$HIGH_BITS = $1_1; + return $0_1 | 0; } - function legalfunc$wasm2js_scratch_store_i64($0_1, $0$hi) { + function legalfunc$wasm2js_scratch_store_i64($0_1, $1_1) { $0_1 = $0_1 | 0; - $0$hi = $0$hi | 0; - var i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $8 = 0, $2_1 = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $0$hi; - $2_1 = $0_1; - i64toi32_i32$2 = $0_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = 0; - $8 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + $1_1 = $1_1 | 0; + var $2_1 = 0, $3_1 = 0, $4 = 0; + $4 = $0_1; + $3_1 = 32; + $2_1 = $3_1 & 31 | 0; + if (32 >>> 0 <= ($3_1 & 63 | 0) >>> 0) { + $0_1 = $1_1 >>> $2_1 | 0 } else { - { - i64toi32_i32$1 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $8 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $2_1 | 0) - 1 | 0) & $1_1 | 0) << (32 - $2_1 | 0) | 0 | ($0_1 >>> $2_1 | 0) | 0 } - legalimport$wasm2js_scratch_store_i64($2_1 | 0, $8 | 0); + legalimport$wasm2js_scratch_store_i64($4 | 0, $0_1 | 0); } - function _ZN17compiler_builtins3int4sdiv3Mod4mod_17h2cbb7bbf36e41d68E(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; - var i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$2 = 0, i64toi32_i32$0 = 0, i64toi32_i32$3 = 0, i64toi32_i32$5 = 0, var$2$hi = 0, i64toi32_i32$6 = 0, var$2 = 0, $20 = 0, $21 = 0, $7$hi = 0, $9 = 0, $9$hi = 0, $14$hi = 0, $16$hi = 0, $17$hi = 0, $19$hi = 0; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$2 = var$0; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 63; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + function _ZN17compiler_builtins3int4sdiv3Mod4mod_17h2cbb7bbf36e41d68E($0_1, $1_1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + var $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0; + $5 = $1_1; + $8 = $0_1; + $7 = 63; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$0 >> 31 | 0; - $20 = i64toi32_i32$0 >> i64toi32_i32$4 | 0; + $4 = $5 >> 31 | 0; + $11 = $5 >> $6 | 0; } } else { { - i64toi32_i32$1 = i64toi32_i32$0 >> i64toi32_i32$4 | 0; - $20 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } - } - var$2 = $20; - var$2$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$1 = var$2$hi; - i64toi32_i32$0 = var$2; - i64toi32_i32$2 = var$0$hi; - i64toi32_i32$3 = var$0; - i64toi32_i32$2 = i64toi32_i32$1 ^ i64toi32_i32$2 | 0; - $7$hi = i64toi32_i32$2; - i64toi32_i32$2 = i64toi32_i32$1; - i64toi32_i32$2 = $7$hi; - i64toi32_i32$1 = i64toi32_i32$0 ^ i64toi32_i32$3 | 0; - i64toi32_i32$0 = var$2$hi; - i64toi32_i32$3 = var$2; - i64toi32_i32$4 = i64toi32_i32$1 - i64toi32_i32$3 | 0; - i64toi32_i32$6 = i64toi32_i32$1 >>> 0 < i64toi32_i32$3 >>> 0; - i64toi32_i32$5 = i64toi32_i32$6 + i64toi32_i32$0 | 0; - i64toi32_i32$5 = i64toi32_i32$2 - i64toi32_i32$5 | 0; - $9 = i64toi32_i32$4; - $9$hi = i64toi32_i32$5; - i64toi32_i32$5 = var$1$hi; - i64toi32_i32$2 = var$1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 63; - i64toi32_i32$0 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = i64toi32_i32$5 >> 31 | 0; - $21 = i64toi32_i32$5 >> i64toi32_i32$0 | 0; + $4 = $5 >> $6 | 0; + $11 = (((1 << $6 | 0) - 1 | 0) & $5 | 0) << (32 - $6 | 0) | 0 | ($8 >>> $6 | 0) | 0; + } + } + $10 = $4; + $4 = $10; + $5 = $11; + $8 = $1_1; + $7 = $0_1; + $8 = $4 ^ $8 | 0; + $4 = $5 ^ $7 | 0; + $5 = $10; + $7 = $11; + $6 = $4 - $7 | 0; + $0_1 = $4 >>> 0 < $7 >>> 0; + $9 = $0_1 + $5 | 0; + $9 = $8 - $9 | 0; + $12 = $6; + $13 = $9; + $9 = $3_1; + $8 = $2_1; + $7 = 63; + $5 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { + { + $4 = $9 >> 31 | 0; + $0_1 = $9 >> $5 | 0; } } else { { - i64toi32_i32$1 = i64toi32_i32$5 >> i64toi32_i32$0 | 0; - $21 = (((1 << i64toi32_i32$0 | 0) - 1 | 0) & i64toi32_i32$5 | 0) << (32 - i64toi32_i32$0 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$0 | 0) | 0; - } - } - var$0 = $21; - var$0$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$5 = var$0; - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$3 = var$1; - i64toi32_i32$2 = i64toi32_i32$1 ^ i64toi32_i32$2 | 0; - $14$hi = i64toi32_i32$2; - i64toi32_i32$2 = i64toi32_i32$1; - i64toi32_i32$2 = $14$hi; - i64toi32_i32$1 = i64toi32_i32$5 ^ i64toi32_i32$3 | 0; - i64toi32_i32$5 = var$0$hi; - i64toi32_i32$3 = var$0; - i64toi32_i32$0 = i64toi32_i32$1 - i64toi32_i32$3 | 0; - i64toi32_i32$6 = i64toi32_i32$1 >>> 0 < i64toi32_i32$3 >>> 0; - i64toi32_i32$4 = i64toi32_i32$6 + i64toi32_i32$5 | 0; - i64toi32_i32$4 = i64toi32_i32$2 - i64toi32_i32$4 | 0; - $16$hi = i64toi32_i32$4; - i64toi32_i32$4 = $9$hi; - i64toi32_i32$1 = $16$hi; - i64toi32_i32$1 = __wasm_i64_urem($9 | 0, i64toi32_i32$4 | 0, i64toi32_i32$0 | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$4 = i64toi32_i32$HIGH_BITS; - $17$hi = i64toi32_i32$4; - i64toi32_i32$4 = var$2$hi; - i64toi32_i32$4 = $17$hi; - i64toi32_i32$2 = i64toi32_i32$1; - i64toi32_i32$1 = var$2$hi; - i64toi32_i32$3 = var$2; - i64toi32_i32$1 = i64toi32_i32$4 ^ i64toi32_i32$1 | 0; - $19$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$2$hi; - i64toi32_i32$1 = $19$hi; - i64toi32_i32$4 = i64toi32_i32$2 ^ i64toi32_i32$3 | 0; - i64toi32_i32$2 = var$2$hi; - i64toi32_i32$5 = i64toi32_i32$4 - i64toi32_i32$3 | 0; - i64toi32_i32$6 = i64toi32_i32$4 >>> 0 < i64toi32_i32$3 >>> 0; - i64toi32_i32$0 = i64toi32_i32$6 + i64toi32_i32$2 | 0; - i64toi32_i32$0 = i64toi32_i32$1 - i64toi32_i32$0 | 0; - i64toi32_i32$4 = i64toi32_i32$5; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$4 | 0; - } - - function _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$3 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, i64toi32_i32$5 = 0, var$2 = 0, var$3 = 0, var$4 = 0, var$5 = 0, var$5$hi = 0, var$6 = 0, var$6$hi = 0, i64toi32_i32$6 = 0, $37 = 0, $38 = 0, $39 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0, $44 = 0, var$8$hi = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0, var$7$hi = 0, $49 = 0, $63$hi = 0, $65 = 0, $65$hi = 0, $120$hi = 0, $129$hi = 0, $134$hi = 0, var$8 = 0, $140 = 0, $140$hi = 0, $142$hi = 0, $144 = 0, $144$hi = 0, $151 = 0, $151$hi = 0, $154$hi = 0, var$7 = 0, $165$hi = 0; + $4 = $9 >> $5 | 0; + $0_1 = (((1 << $5 | 0) - 1 | 0) & $9 | 0) << (32 - $5 | 0) | 0 | ($8 >>> $5 | 0) | 0; + } + } + $1_1 = $4; + $4 = $1_1; + $9 = $0_1; + $8 = $3_1; + $7 = $2_1; + $8 = $4 ^ $8 | 0; + $4 = $9 ^ $7 | 0; + $9 = $1_1; + $7 = $0_1; + $5 = $4 - $7 | 0; + $0_1 = $4 >>> 0 < $7 >>> 0; + $6 = $0_1 + $9 | 0; + $6 = $8 - $6 | 0; + $4 = $6; + $6 = $13; + $4 = __wasm_i64_urem($12 | 0, $6 | 0, $5 | 0, $4 | 0) | 0; + $6 = i64toi32_i32$HIGH_BITS; + $8 = $4; + $4 = $10; + $7 = $11; + $4 = $6 ^ $4 | 0; + $6 = $8 ^ $7 | 0; + $8 = $10; + $9 = $6 - $7 | 0; + $0_1 = $6 >>> 0 < $7 >>> 0; + $5 = $0_1 + $8 | 0; + $5 = $4 - $5 | 0; + $6 = $9; + i64toi32_i32$HIGH_BITS = $5; + return $6 | 0; + } + + function _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E($0_1, $1_1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + var $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $20 = 0; label$1 : { label$2 : { label$3 : { @@ -8055,394 +6808,335 @@ function asmFunc(global, env, buffer) { label$8 : { label$9 : { label$11 : { - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$2 = var$0; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = 0; - $37 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + $7 = $1_1; + $5 = $0_1; + $4 = 32; + $6 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { + $10 = $7 >>> $6 | 0 } else { - { - i64toi32_i32$1 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $37 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $10 = (((1 << $6 | 0) - 1 | 0) & $7 | 0) << (32 - $6 | 0) | 0 | ($5 >>> $6 | 0) | 0 } - var$2 = $37; - if (var$2) { + if ($10) { { - i64toi32_i32$1 = var$1$hi; - var$3 = var$1; - if (!var$3) { + $8 = $2_1; + if (!$8) { break label$11 } - i64toi32_i32$1 = var$1$hi; - i64toi32_i32$0 = var$1; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $38 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + $9 = $3_1; + $7 = $2_1; + $4 = 32; + $6 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { + $11 = $9 >>> $6 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $38 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$0 >>> i64toi32_i32$4 | 0) | 0; - } + $11 = (((1 << $6 | 0) - 1 | 0) & $9 | 0) << (32 - $6 | 0) | 0 | ($7 >>> $6 | 0) | 0 } - var$4 = $38; - if (!var$4) { + if (!$11) { break label$9 } - var$2 = Math_clz32(var$4) - Math_clz32(var$2) | 0; - if (var$2 >>> 0 <= 31 >>> 0) { + $10 = Math_clz32($11) - Math_clz32($10) | 0; + if ($10 >>> 0 <= 31 >>> 0) { break label$8 } break label$2; } } - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$1 = var$1; - i64toi32_i32$0 = 1; - i64toi32_i32$3 = 0; - if (i64toi32_i32$2 >>> 0 > i64toi32_i32$0 >>> 0 | ((i64toi32_i32$2 | 0) == (i64toi32_i32$0 | 0) & i64toi32_i32$1 >>> 0 >= i64toi32_i32$3 >>> 0 | 0) | 0) { + $5 = $3_1; + $9 = $2_1; + $7 = 1; + $4 = 0; + if ($5 >>> 0 > $7 >>> 0 | (($5 | 0) == ($7 | 0) & $9 >>> 0 >= $4 >>> 0 | 0) | 0) { break label$2 } - i64toi32_i32$1 = var$0$hi; - var$2 = var$0; - i64toi32_i32$1 = var$1$hi; - var$3 = var$1; - var$2 = (var$2 >>> 0) / (var$3 >>> 0) | 0; - i64toi32_i32$1 = 0; - legalfunc$wasm2js_scratch_store_i64(var$0 - Math_imul(var$2, var$3) | 0 | 0, i64toi32_i32$1 | 0); - i64toi32_i32$1 = 0; - i64toi32_i32$2 = var$2; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$2 | 0; + $10 = $0_1; + $8 = $2_1; + $10 = ($10 >>> 0) / ($8 >>> 0) | 0; + $9 = 0; + legalfunc$wasm2js_scratch_store_i64($0_1 - Math_imul($10, $8) | 0 | 0, $9 | 0); + $9 = 0; + $5 = $10; + i64toi32_i32$HIGH_BITS = $9; + return $5 | 0; } - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$3 = var$1; - i64toi32_i32$1 = 0; - i64toi32_i32$0 = 32; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = 0; - $39 = i64toi32_i32$2 >>> i64toi32_i32$4 | 0; - } + $5 = $3_1; + $4 = $2_1; + $7 = 32; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { + $8 = $5 >>> $6 | 0 } else { - { - i64toi32_i32$1 = i64toi32_i32$2 >>> i64toi32_i32$4 | 0; - $39 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$2 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$3 >>> i64toi32_i32$4 | 0) | 0; - } + $8 = (((1 << $6 | 0) - 1 | 0) & $5 | 0) << (32 - $6 | 0) | 0 | ($4 >>> $6 | 0) | 0 } - var$3 = $39; - i64toi32_i32$1 = var$0$hi; - if (!var$0) { + if (!$0_1) { break label$7 } - if (!var$3) { + if (!$8) { break label$6 } - var$4 = var$3 + -1 | 0; - if (var$4 & var$3 | 0) { + $11 = $8 + -1 | 0; + if ($11 & $8 | 0) { break label$6 } - i64toi32_i32$1 = 0; - i64toi32_i32$2 = var$4 & var$2 | 0; - i64toi32_i32$3 = 0; - i64toi32_i32$0 = 32; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $9 = 0; + $5 = $11 & $10 | 0; + $7 = 32; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$3 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $40 = 0; + $4 = $5 << $6 | 0; + $3_1 = 0; } } else { { - i64toi32_i32$3 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$1 << i64toi32_i32$4 | 0) | 0; - $40 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $4 = ((1 << $6 | 0) - 1 | 0) & ($5 >>> (32 - $6 | 0) | 0) | 0 | ($9 << $6 | 0) | 0; + $3_1 = $5 << $6 | 0; } } - $63$hi = i64toi32_i32$3; - i64toi32_i32$3 = var$0$hi; - i64toi32_i32$1 = var$0; - i64toi32_i32$2 = 0; - i64toi32_i32$0 = -1; - i64toi32_i32$2 = i64toi32_i32$3 & i64toi32_i32$2 | 0; - $65 = i64toi32_i32$1 & i64toi32_i32$0 | 0; - $65$hi = i64toi32_i32$2; - i64toi32_i32$2 = $63$hi; - i64toi32_i32$3 = $40; - i64toi32_i32$1 = $65$hi; - i64toi32_i32$0 = $65; - i64toi32_i32$1 = i64toi32_i32$2 | i64toi32_i32$1 | 0; - legalfunc$wasm2js_scratch_store_i64(i64toi32_i32$3 | i64toi32_i32$0 | 0 | 0, i64toi32_i32$1 | 0); - i64toi32_i32$1 = 0; - i64toi32_i32$3 = var$2 >>> ((__wasm_ctz_i32(var$3 | 0) | 0) & 31 | 0) | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$3 | 0; + $2_1 = $4; + $4 = $1_1; + $9 = $0_1; + $5 = 0; + $7 = -1; + $5 = $4 & $5 | 0; + $7 = $9 & $7 | 0; + $9 = $5; + $5 = $2_1; + $4 = $3_1; + $9 = $5 | $9 | 0; + legalfunc$wasm2js_scratch_store_i64($4 | $7 | 0 | 0, $9 | 0); + $9 = 0; + $4 = $10 >>> ((__wasm_ctz_i32($8 | 0) | 0) & 31 | 0) | 0; + i64toi32_i32$HIGH_BITS = $9; + return $4 | 0; } - var$4 = var$3 + -1 | 0; - if (!(var$4 & var$3 | 0)) { + $11 = $8 + -1 | 0; + if (!($11 & $8 | 0)) { break label$5 } - var$2 = (Math_clz32(var$3) + 33 | 0) - Math_clz32(var$2) | 0; - var$3 = 0 - var$2 | 0; + $10 = (Math_clz32($8) + 33 | 0) - Math_clz32($10) | 0; + $8 = 0 - $10 | 0; break label$3; } - var$3 = 63 - var$2 | 0; - var$2 = var$2 + 1 | 0; + $8 = 63 - $10 | 0; + $10 = $10 + 1 | 0; break label$3; } - var$4 = (var$2 >>> 0) / (var$3 >>> 0) | 0; - i64toi32_i32$3 = 0; - i64toi32_i32$2 = var$2 - Math_imul(var$4, var$3) | 0; - i64toi32_i32$1 = 0; - i64toi32_i32$0 = 32; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $11 = ($10 >>> 0) / ($8 >>> 0) | 0; + $4 = 0; + $5 = $10 - Math_imul($11, $8) | 0; + $7 = 32; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $41 = 0; + $9 = $5 << $6 | 0; + $0_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$3 << i64toi32_i32$4 | 0) | 0; - $41 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $9 = ((1 << $6 | 0) - 1 | 0) & ($5 >>> (32 - $6 | 0) | 0) | 0 | ($4 << $6 | 0) | 0; + $0_1 = $5 << $6 | 0; } } - legalfunc$wasm2js_scratch_store_i64($41 | 0, i64toi32_i32$1 | 0); - i64toi32_i32$1 = 0; - i64toi32_i32$2 = var$4; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$2 | 0; + legalfunc$wasm2js_scratch_store_i64($0_1 | 0, $9 | 0); + $9 = 0; + $5 = $11; + i64toi32_i32$HIGH_BITS = $9; + return $5 | 0; } - var$2 = Math_clz32(var$3) - Math_clz32(var$2) | 0; - if (var$2 >>> 0 < 31 >>> 0) { + $10 = Math_clz32($8) - Math_clz32($10) | 0; + if ($10 >>> 0 < 31 >>> 0) { break label$4 } break label$2; } - i64toi32_i32$2 = var$0$hi; - i64toi32_i32$2 = 0; - legalfunc$wasm2js_scratch_store_i64(var$4 & var$0 | 0 | 0, i64toi32_i32$2 | 0); - if ((var$3 | 0) == (1 | 0)) { + $5 = 0; + legalfunc$wasm2js_scratch_store_i64($11 & $0_1 | 0 | 0, $5 | 0); + if (($8 | 0) == (1 | 0)) { break label$1 } - i64toi32_i32$2 = var$0$hi; - i64toi32_i32$2 = 0; - $120$hi = i64toi32_i32$2; - i64toi32_i32$2 = var$0$hi; - i64toi32_i32$3 = var$0; - i64toi32_i32$1 = $120$hi; - i64toi32_i32$0 = __wasm_ctz_i32(var$3 | 0) | 0; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $5 = 0; + $9 = $5; + $5 = $1_1; + $4 = $0_1; + $7 = __wasm_ctz_i32($8 | 0) | 0; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = 0; - $42 = i64toi32_i32$2 >>> i64toi32_i32$4 | 0; + $9 = 0; + $4 = $5 >>> $6 | 0; } } else { { - i64toi32_i32$1 = i64toi32_i32$2 >>> i64toi32_i32$4 | 0; - $42 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$2 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$3 >>> i64toi32_i32$4 | 0) | 0; + $9 = $5 >>> $6 | 0; + $4 = (((1 << $6 | 0) - 1 | 0) & $5 | 0) << (32 - $6 | 0) | 0 | ($4 >>> $6 | 0) | 0; } } - i64toi32_i32$3 = $42; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$3 | 0; + i64toi32_i32$HIGH_BITS = $9; + return $4 | 0; } - var$3 = 63 - var$2 | 0; - var$2 = var$2 + 1 | 0; + $8 = 63 - $10 | 0; + $10 = $10 + 1 | 0; } - i64toi32_i32$3 = var$0$hi; - i64toi32_i32$3 = 0; - $129$hi = i64toi32_i32$3; - i64toi32_i32$3 = var$0$hi; - i64toi32_i32$2 = var$0; - i64toi32_i32$1 = $129$hi; - i64toi32_i32$0 = var$2 & 63 | 0; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $4 = 0; + $9 = $4; + $4 = $1_1; + $5 = $0_1; + $7 = $10 & 63 | 0; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = 0; - $43 = i64toi32_i32$3 >>> i64toi32_i32$4 | 0; + $9 = 0; + $13 = $4 >>> $6 | 0; } } else { { - i64toi32_i32$1 = i64toi32_i32$3 >>> i64toi32_i32$4 | 0; - $43 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$3 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; + $9 = $4 >>> $6 | 0; + $13 = (((1 << $6 | 0) - 1 | 0) & $4 | 0) << (32 - $6 | 0) | 0 | ($5 >>> $6 | 0) | 0; } } - var$5 = $43; - var$5$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$1 = 0; - $134$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$3 = var$0; - i64toi32_i32$2 = $134$hi; - i64toi32_i32$0 = var$3 & 63 | 0; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $11 = $9; + $9 = 0; + $5 = $9; + $9 = $1_1; + $4 = $0_1; + $7 = $8 & 63 | 0; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$2 = i64toi32_i32$3 << i64toi32_i32$4 | 0; - $44 = 0; + $5 = $4 << $6 | 0; + $0_1 = 0; } } else { { - i64toi32_i32$2 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$3 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$1 << i64toi32_i32$4 | 0) | 0; - $44 = i64toi32_i32$3 << i64toi32_i32$4 | 0; + $5 = ((1 << $6 | 0) - 1 | 0) & ($4 >>> (32 - $6 | 0) | 0) | 0 | ($9 << $6 | 0) | 0; + $0_1 = $4 << $6 | 0; } } - var$0 = $44; - var$0$hi = i64toi32_i32$2; + $1_1 = $5; label$13 : { - if (var$2) { + if ($10) { { - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$1 = var$1; - i64toi32_i32$3 = -1; - i64toi32_i32$0 = -1; - i64toi32_i32$4 = i64toi32_i32$1 + i64toi32_i32$0 | 0; - i64toi32_i32$5 = i64toi32_i32$2 + i64toi32_i32$3 | 0; - if (i64toi32_i32$4 >>> 0 < i64toi32_i32$0 >>> 0) { - i64toi32_i32$5 = i64toi32_i32$5 + 1 | 0 + $5 = $3_1; + $9 = $2_1; + $4 = -1; + $7 = -1; + $6 = $9 + $7 | 0; + $8 = $5 + $4 | 0; + if ($6 >>> 0 < $7 >>> 0) { + $8 = $8 + 1 | 0 } - var$8 = i64toi32_i32$4; - var$8$hi = i64toi32_i32$5; + $17 = $6; + $15 = $8; label$15 : while (1) { - i64toi32_i32$5 = var$5$hi; - i64toi32_i32$2 = var$5; - i64toi32_i32$1 = 0; - i64toi32_i32$0 = 1; - i64toi32_i32$3 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $8 = $11; + $5 = $13; + $7 = 1; + $4 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$3 | 0; - $45 = 0; + $9 = $5 << $4 | 0; + $12 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$3 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$3 | 0) | 0) | 0 | (i64toi32_i32$5 << i64toi32_i32$3 | 0) | 0; - $45 = i64toi32_i32$2 << i64toi32_i32$3 | 0; + $9 = ((1 << $4 | 0) - 1 | 0) & ($5 >>> (32 - $4 | 0) | 0) | 0 | ($8 << $4 | 0) | 0; + $12 = $5 << $4 | 0; } } - $140 = $45; - $140$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$5 = var$0; - i64toi32_i32$2 = 0; - i64toi32_i32$0 = 63; - i64toi32_i32$3 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $11 = $9; + $9 = $1_1; + $8 = $0_1; + $7 = 63; + $4 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$2 = 0; - $46 = i64toi32_i32$1 >>> i64toi32_i32$3 | 0; + $5 = 0; + $7 = $9 >>> $4 | 0; } } else { { - i64toi32_i32$2 = i64toi32_i32$1 >>> i64toi32_i32$3 | 0; - $46 = (((1 << i64toi32_i32$3 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$3 | 0) | 0 | (i64toi32_i32$5 >>> i64toi32_i32$3 | 0) | 0; + $5 = $9 >>> $4 | 0; + $7 = (((1 << $4 | 0) - 1 | 0) & $9 | 0) << (32 - $4 | 0) | 0 | ($8 >>> $4 | 0) | 0; } } - $142$hi = i64toi32_i32$2; - i64toi32_i32$2 = $140$hi; - i64toi32_i32$1 = $140; - i64toi32_i32$5 = $142$hi; - i64toi32_i32$0 = $46; - i64toi32_i32$5 = i64toi32_i32$2 | i64toi32_i32$5 | 0; - var$5 = i64toi32_i32$1 | i64toi32_i32$0 | 0; - var$5$hi = i64toi32_i32$5; - $144 = var$5; - $144$hi = i64toi32_i32$5; - i64toi32_i32$5 = var$8$hi; - i64toi32_i32$5 = var$5$hi; - i64toi32_i32$5 = var$8$hi; - i64toi32_i32$2 = var$8; - i64toi32_i32$1 = var$5$hi; - i64toi32_i32$0 = var$5; - i64toi32_i32$3 = i64toi32_i32$2 - i64toi32_i32$0 | 0; - i64toi32_i32$6 = i64toi32_i32$2 >>> 0 < i64toi32_i32$0 >>> 0; - i64toi32_i32$4 = i64toi32_i32$6 + i64toi32_i32$1 | 0; - i64toi32_i32$4 = i64toi32_i32$5 - i64toi32_i32$4 | 0; - i64toi32_i32$5 = i64toi32_i32$3; - i64toi32_i32$2 = 0; - i64toi32_i32$0 = 63; - i64toi32_i32$1 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $8 = $5; + $5 = $11; + $9 = $12; + $8 = $5 | $8 | 0; + $13 = $9 | $7 | 0; + $11 = $8; + $18 = $13; + $19 = $8; + $8 = $15; + $5 = $17; + $9 = $11; + $7 = $13; + $4 = $5 - $7 | 0; + $5 = $5 >>> 0 < $7 >>> 0; + $6 = $5 + $9 | 0; + $6 = $8 - $6 | 0; + $8 = $4; + $7 = 63; + $9 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$2 = i64toi32_i32$4 >> 31 | 0; - $47 = i64toi32_i32$4 >> i64toi32_i32$1 | 0; + $5 = $6 >> 31 | 0; + $14 = $6 >> $9 | 0; } } else { { - i64toi32_i32$2 = i64toi32_i32$4 >> i64toi32_i32$1 | 0; - $47 = (((1 << i64toi32_i32$1 | 0) - 1 | 0) & i64toi32_i32$4 | 0) << (32 - i64toi32_i32$1 | 0) | 0 | (i64toi32_i32$5 >>> i64toi32_i32$1 | 0) | 0; + $5 = $6 >> $9 | 0; + $14 = (((1 << $9 | 0) - 1 | 0) & $6 | 0) << (32 - $9 | 0) | 0 | ($8 >>> $9 | 0) | 0; } } - var$6 = $47; - var$6$hi = i64toi32_i32$2; - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$2 = var$6$hi; - i64toi32_i32$4 = var$6; - i64toi32_i32$5 = var$1$hi; - i64toi32_i32$0 = var$1; - i64toi32_i32$5 = i64toi32_i32$2 & i64toi32_i32$5 | 0; - $151 = i64toi32_i32$4 & i64toi32_i32$0 | 0; - $151$hi = i64toi32_i32$5; - i64toi32_i32$5 = $144$hi; - i64toi32_i32$2 = $144; - i64toi32_i32$4 = $151$hi; - i64toi32_i32$0 = $151; - i64toi32_i32$1 = i64toi32_i32$2 - i64toi32_i32$0 | 0; - i64toi32_i32$6 = i64toi32_i32$2 >>> 0 < i64toi32_i32$0 >>> 0; - i64toi32_i32$3 = i64toi32_i32$6 + i64toi32_i32$4 | 0; - i64toi32_i32$3 = i64toi32_i32$5 - i64toi32_i32$3 | 0; - var$5 = i64toi32_i32$1; - var$5$hi = i64toi32_i32$3; - i64toi32_i32$3 = var$0$hi; - i64toi32_i32$5 = var$0; - i64toi32_i32$2 = 0; - i64toi32_i32$0 = 1; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $12 = $5; + $5 = $12; + $6 = $14; + $8 = $3_1; + $7 = $2_1; + $8 = $5 & $8 | 0; + $7 = $6 & $7 | 0; + $6 = $8; + $8 = $19; + $5 = $18; + $9 = $5 - $7 | 0; + $5 = $5 >>> 0 < $7 >>> 0; + $4 = $5 + $6 | 0; + $4 = $8 - $4 | 0; + $13 = $9; + $11 = $4; + $4 = $1_1; + $8 = $0_1; + $7 = 1; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$2 = i64toi32_i32$5 << i64toi32_i32$4 | 0; - $48 = 0; + $5 = $8 << $6 | 0; + $4 = 0; } } else { { - i64toi32_i32$2 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$5 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$3 << i64toi32_i32$4 | 0) | 0; - $48 = i64toi32_i32$5 << i64toi32_i32$4 | 0; + $5 = ((1 << $6 | 0) - 1 | 0) & ($8 >>> (32 - $6 | 0) | 0) | 0 | ($4 << $6 | 0) | 0; + $4 = $8 << $6 | 0; } } - $154$hi = i64toi32_i32$2; - i64toi32_i32$2 = var$7$hi; - i64toi32_i32$2 = $154$hi; - i64toi32_i32$3 = $48; - i64toi32_i32$5 = var$7$hi; - i64toi32_i32$0 = var$7; - i64toi32_i32$5 = i64toi32_i32$2 | i64toi32_i32$5 | 0; - var$0 = i64toi32_i32$3 | i64toi32_i32$0 | 0; - var$0$hi = i64toi32_i32$5; - i64toi32_i32$5 = var$6$hi; - i64toi32_i32$2 = var$6; - i64toi32_i32$3 = 0; - i64toi32_i32$0 = 1; - i64toi32_i32$3 = i64toi32_i32$5 & i64toi32_i32$3 | 0; - var$6 = i64toi32_i32$2 & i64toi32_i32$0 | 0; - var$6$hi = i64toi32_i32$3; - var$7 = var$6; - var$7$hi = i64toi32_i32$3; - var$2 = var$2 + -1 | 0; - if (var$2) { + $8 = $16; + $7 = $20; + $8 = $5 | $8 | 0; + $0_1 = $4 | $7 | 0; + $1_1 = $8; + $8 = $12; + $5 = $14; + $4 = 0; + $7 = 1; + $4 = $8 & $4 | 0; + $14 = $5 & $7 | 0; + $12 = $4; + $20 = $14; + $16 = $4; + $10 = $10 + -1 | 0; + if ($10) { continue label$15 } break label$15; @@ -8451,85 +7145,69 @@ function asmFunc(global, env, buffer) { } } } - i64toi32_i32$3 = var$5$hi; - legalfunc$wasm2js_scratch_store_i64(var$5 | 0, i64toi32_i32$3 | 0); - i64toi32_i32$3 = var$0$hi; - i64toi32_i32$5 = var$0; - i64toi32_i32$2 = 0; - i64toi32_i32$0 = 1; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $4 = $11; + legalfunc$wasm2js_scratch_store_i64($13 | 0, $4 | 0); + $4 = $1_1; + $8 = $0_1; + $7 = 1; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$2 = i64toi32_i32$5 << i64toi32_i32$4 | 0; - $49 = 0; + $5 = $8 << $6 | 0; + $4 = 0; } } else { { - i64toi32_i32$2 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$5 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$3 << i64toi32_i32$4 | 0) | 0; - $49 = i64toi32_i32$5 << i64toi32_i32$4 | 0; + $5 = ((1 << $6 | 0) - 1 | 0) & ($8 >>> (32 - $6 | 0) | 0) | 0 | ($4 << $6 | 0) | 0; + $4 = $8 << $6 | 0; } } - $165$hi = i64toi32_i32$2; - i64toi32_i32$2 = var$6$hi; - i64toi32_i32$2 = $165$hi; - i64toi32_i32$3 = $49; - i64toi32_i32$5 = var$6$hi; - i64toi32_i32$0 = var$6; - i64toi32_i32$5 = i64toi32_i32$2 | i64toi32_i32$5 | 0; - i64toi32_i32$3 = i64toi32_i32$3 | i64toi32_i32$0 | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$5; - return i64toi32_i32$3 | 0; - } - i64toi32_i32$3 = var$0$hi; - legalfunc$wasm2js_scratch_store_i64(var$0 | 0, i64toi32_i32$3 | 0); - i64toi32_i32$3 = 0; - var$0 = 0; - var$0$hi = i64toi32_i32$3; - } - i64toi32_i32$3 = var$0$hi; - i64toi32_i32$5 = var$0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$3; - return i64toi32_i32$5 | 0; - } - - function __wasm_i64_srem(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$0 = var$1$hi; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = _ZN17compiler_builtins3int4sdiv3Mod4mod_17h2cbb7bbf36e41d68E(var$0 | 0, i64toi32_i32$0 | 0, var$1 | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; - } - - function __wasm_i64_urem(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$0 = var$1$hi; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E(var$0 | 0, i64toi32_i32$0 | 0, var$1 | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$0 = legalfunc$wasm2js_scratch_load_i64() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$0 | 0; - } - - function __wasm_ctz_i32(var$0) { - var$0 = var$0 | 0; - if (var$0) { - return 31 - Math_clz32((var$0 + -1 | 0) ^ var$0 | 0) | 0 | 0 + $8 = $12; + $7 = $14; + $8 = $5 | $8 | 0; + $4 = $4 | $7 | 0; + i64toi32_i32$HIGH_BITS = $8; + return $4 | 0; + } + $4 = $1_1; + legalfunc$wasm2js_scratch_store_i64($0_1 | 0, $4 | 0); + $4 = 0; + $0_1 = 0; + $1_1 = $4; + } + $4 = $1_1; + $8 = $0_1; + i64toi32_i32$HIGH_BITS = $4; + return $8 | 0; + } + + function __wasm_i64_srem($0_1, $1_1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + $3_1 = _ZN17compiler_builtins3int4sdiv3Mod4mod_17h2cbb7bbf36e41d68E($0_1 | 0, $1_1 | 0, $2_1 | 0, $3_1 | 0) | 0; + $1_1 = i64toi32_i32$HIGH_BITS; + i64toi32_i32$HIGH_BITS = $1_1; + return $3_1 | 0; + } + + function __wasm_i64_urem($0_1, $1_1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + $3_1 = _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E($0_1 | 0, $1_1 | 0, $2_1 | 0, $3_1 | 0) | 0; + $1_1 = legalfunc$wasm2js_scratch_load_i64() | 0; + $3_1 = i64toi32_i32$HIGH_BITS; + i64toi32_i32$HIGH_BITS = $3_1; + return $1_1 | 0; + } + + function __wasm_ctz_i32($0_1) { + $0_1 = $0_1 | 0; + if ($0_1) { + return 31 - Math_clz32(($0_1 + -1 | 0) ^ $0_1 | 0) | 0 | 0 } return 32 | 0; } @@ -8593,310 +7271,253 @@ function asmFunc(global, env, buffer) { var setTempRet0 = env.setTempRet0; var getTempRet0 = env.getTempRet0; var i64toi32_i32$HIGH_BITS = 0; - function $0(x) { - x = x | 0; - return (x | 0) % (5 | 0) | 0 | 0; + function $0($0_1) { + $0_1 = $0_1 | 0; + return ($0_1 | 0) % (5 | 0) | 0 | 0; } - function $1(x) { - x = x | 0; - return (x >>> 0) % (5 >>> 0) | 0 | 0; + function $1($0_1) { + $0_1 = $0_1 | 0; + return ($0_1 >>> 0) % (5 >>> 0) | 0 | 0; } - function $2(x, x$hi) { - x = x | 0; - x$hi = x$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = x$hi; - i64toi32_i32$1 = 0; - i64toi32_i32$1 = __wasm_i64_srem(x | 0, i64toi32_i32$0 | 0, 5 | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + function $2($0_1, $1_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + var $2_1 = 0; + $2_1 = 0; + $2_1 = __wasm_i64_srem($0_1 | 0, $1_1 | 0, 5 | 0, $2_1 | 0) | 0; + $1_1 = i64toi32_i32$HIGH_BITS; + i64toi32_i32$HIGH_BITS = $1_1; + return $2_1 | 0; } - function $3(x, x$hi) { - x = x | 0; - x$hi = x$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = x$hi; - i64toi32_i32$1 = 0; - i64toi32_i32$1 = __wasm_i64_urem(x | 0, i64toi32_i32$0 | 0, 5 | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + function $3($0_1, $1_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + var $2_1 = 0; + $2_1 = 0; + $2_1 = __wasm_i64_urem($0_1 | 0, $1_1 | 0, 5 | 0, $2_1 | 0) | 0; + $1_1 = i64toi32_i32$HIGH_BITS; + i64toi32_i32$HIGH_BITS = $1_1; + return $2_1 | 0; } function legalstub$2($0_1, $1_1) { $0_1 = $0_1 | 0; $1_1 = $1_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12 = 0, $13 = 0, $4 = 0, $4$hi = 0, $7$hi = 0, $2_1 = 0, $2$hi = 0; - i64toi32_i32$0 = 0; - $4 = $0_1; - $4$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $2_1 = 0, $3_1 = 0, $4 = 0, $5 = 0, $6 = 0; + $3_1 = 0; + $5 = $0_1; + $6 = $3_1; + $3_1 = 0; + $4 = 32; + $2_1 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $12 = 0; + $0_1 = $1_1 << $2_1 | 0; + $4 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $12 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - } - } - $7$hi = i64toi32_i32$1; - i64toi32_i32$1 = $4$hi; - i64toi32_i32$0 = $4; - i64toi32_i32$2 = $7$hi; - i64toi32_i32$3 = $12; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - i64toi32_i32$2 = $2(i64toi32_i32$0 | i64toi32_i32$3 | 0 | 0, i64toi32_i32$2 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $2_1 = i64toi32_i32$2; - $2$hi = i64toi32_i32$0; - i64toi32_i32$1 = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $13 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + $0_1 = ((1 << $2_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $2_1 | 0) | 0) | 0 | ($3_1 << $2_1 | 0) | 0; + $4 = $1_1 << $2_1 | 0; + } + } + $1_1 = $0_1; + $0_1 = $6; + $3_1 = $5; + $1_1 = $0_1 | $1_1 | 0; + $1_1 = $2($3_1 | $4 | 0 | 0, $1_1 | 0) | 0; + $3_1 = i64toi32_i32$HIGH_BITS; + $6 = $1_1; + $5 = $3_1; + $0_1 = $1_1; + $4 = 32; + $2_1 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { + $0_1 = $3_1 >>> $2_1 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $13 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$1 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $2_1 | 0) - 1 | 0) & $3_1 | 0) << (32 - $2_1 | 0) | 0 | ($0_1 >>> $2_1 | 0) | 0 } - setTempRet0($13 | 0); - i64toi32_i32$2 = $2$hi; - return $2_1 | 0; + setTempRet0($0_1 | 0); + return $6 | 0; } function legalstub$3($0_1, $1_1) { $0_1 = $0_1 | 0; $1_1 = $1_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12 = 0, $13 = 0, $4 = 0, $4$hi = 0, $7$hi = 0, $2_1 = 0, $2$hi = 0; - i64toi32_i32$0 = 0; - $4 = $0_1; - $4$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $2_1 = 0, $3_1 = 0, $4 = 0, $5 = 0, $6 = 0; + $3_1 = 0; + $5 = $0_1; + $6 = $3_1; + $3_1 = 0; + $4 = 32; + $2_1 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $12 = 0; + $0_1 = $1_1 << $2_1 | 0; + $4 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $12 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - } - } - $7$hi = i64toi32_i32$1; - i64toi32_i32$1 = $4$hi; - i64toi32_i32$0 = $4; - i64toi32_i32$2 = $7$hi; - i64toi32_i32$3 = $12; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - i64toi32_i32$2 = $3(i64toi32_i32$0 | i64toi32_i32$3 | 0 | 0, i64toi32_i32$2 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $2_1 = i64toi32_i32$2; - $2$hi = i64toi32_i32$0; - i64toi32_i32$1 = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $13 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + $0_1 = ((1 << $2_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $2_1 | 0) | 0) | 0 | ($3_1 << $2_1 | 0) | 0; + $4 = $1_1 << $2_1 | 0; + } + } + $1_1 = $0_1; + $0_1 = $6; + $3_1 = $5; + $1_1 = $0_1 | $1_1 | 0; + $1_1 = $3($3_1 | $4 | 0 | 0, $1_1 | 0) | 0; + $3_1 = i64toi32_i32$HIGH_BITS; + $6 = $1_1; + $5 = $3_1; + $0_1 = $1_1; + $4 = 32; + $2_1 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { + $0_1 = $3_1 >>> $2_1 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $13 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$1 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $2_1 | 0) - 1 | 0) & $3_1 | 0) << (32 - $2_1 | 0) | 0 | ($0_1 >>> $2_1 | 0) | 0 } - setTempRet0($13 | 0); - i64toi32_i32$2 = $2$hi; - return $2_1 | 0; + setTempRet0($0_1 | 0); + return $6 | 0; } function legalfunc$wasm2js_scratch_load_i64() { - var i64toi32_i32$0 = 0, i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $8 = 0, $1_1 = 0, $1$hi = 0, $4$hi = 0; - i64toi32_i32$0 = 0; - $1_1 = legalimport$wasm2js_scratch_load_i64() | 0; - $1$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = getTempRet0() | 0; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $8 = 0; + var $0_1 = 0, $1_1 = 0, $2_1 = 0, $3_1 = 0, $4 = 0, $5 = 0, $6 = 0; + $0_1 = 0; + $5 = legalimport$wasm2js_scratch_load_i64() | 0; + $6 = $0_1; + $0_1 = 0; + $1_1 = getTempRet0() | 0; + $2_1 = 32; + $3_1 = $2_1 & 31 | 0; + if (32 >>> 0 <= ($2_1 & 63 | 0) >>> 0) { + { + $4 = $1_1 << $3_1 | 0; + $2_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $8 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $4 = ((1 << $3_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $3_1 | 0) | 0) | 0 | ($0_1 << $3_1 | 0) | 0; + $2_1 = $1_1 << $3_1 | 0; } } - $4$hi = i64toi32_i32$1; - i64toi32_i32$1 = $1$hi; - i64toi32_i32$0 = $1_1; - i64toi32_i32$2 = $4$hi; - i64toi32_i32$3 = $8; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - i64toi32_i32$0 = i64toi32_i32$0 | i64toi32_i32$3 | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$2; - return i64toi32_i32$0 | 0; + $1_1 = $4; + $4 = $6; + $0_1 = $5; + $1_1 = $4 | $1_1 | 0; + $0_1 = $0_1 | $2_1 | 0; + i64toi32_i32$HIGH_BITS = $1_1; + return $0_1 | 0; } - function legalfunc$wasm2js_scratch_store_i64($0_1, $0$hi) { + function legalfunc$wasm2js_scratch_store_i64($0_1, $1_1) { $0_1 = $0_1 | 0; - $0$hi = $0$hi | 0; - var i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $8 = 0, $2_1 = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $0$hi; - $2_1 = $0_1; - i64toi32_i32$2 = $0_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = 0; - $8 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + $1_1 = $1_1 | 0; + var $2_1 = 0, $3_1 = 0, $4 = 0; + $4 = $0_1; + $3_1 = 32; + $2_1 = $3_1 & 31 | 0; + if (32 >>> 0 <= ($3_1 & 63 | 0) >>> 0) { + $0_1 = $1_1 >>> $2_1 | 0 } else { - { - i64toi32_i32$1 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $8 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $2_1 | 0) - 1 | 0) & $1_1 | 0) << (32 - $2_1 | 0) | 0 | ($0_1 >>> $2_1 | 0) | 0 } - legalimport$wasm2js_scratch_store_i64($2_1 | 0, $8 | 0); + legalimport$wasm2js_scratch_store_i64($4 | 0, $0_1 | 0); } - function _ZN17compiler_builtins3int4sdiv3Mod4mod_17h2cbb7bbf36e41d68E(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; - var i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$2 = 0, i64toi32_i32$0 = 0, i64toi32_i32$3 = 0, i64toi32_i32$5 = 0, var$2$hi = 0, i64toi32_i32$6 = 0, var$2 = 0, $20 = 0, $21 = 0, $7$hi = 0, $9 = 0, $9$hi = 0, $14$hi = 0, $16$hi = 0, $17$hi = 0, $19$hi = 0; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$2 = var$0; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 63; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + function _ZN17compiler_builtins3int4sdiv3Mod4mod_17h2cbb7bbf36e41d68E($0_1, $1_1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + var $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0; + $5 = $1_1; + $8 = $0_1; + $7 = 63; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$0 >> 31 | 0; - $20 = i64toi32_i32$0 >> i64toi32_i32$4 | 0; + $4 = $5 >> 31 | 0; + $11 = $5 >> $6 | 0; } } else { { - i64toi32_i32$1 = i64toi32_i32$0 >> i64toi32_i32$4 | 0; - $20 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } - } - var$2 = $20; - var$2$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$1 = var$2$hi; - i64toi32_i32$0 = var$2; - i64toi32_i32$2 = var$0$hi; - i64toi32_i32$3 = var$0; - i64toi32_i32$2 = i64toi32_i32$1 ^ i64toi32_i32$2 | 0; - $7$hi = i64toi32_i32$2; - i64toi32_i32$2 = i64toi32_i32$1; - i64toi32_i32$2 = $7$hi; - i64toi32_i32$1 = i64toi32_i32$0 ^ i64toi32_i32$3 | 0; - i64toi32_i32$0 = var$2$hi; - i64toi32_i32$3 = var$2; - i64toi32_i32$4 = i64toi32_i32$1 - i64toi32_i32$3 | 0; - i64toi32_i32$6 = i64toi32_i32$1 >>> 0 < i64toi32_i32$3 >>> 0; - i64toi32_i32$5 = i64toi32_i32$6 + i64toi32_i32$0 | 0; - i64toi32_i32$5 = i64toi32_i32$2 - i64toi32_i32$5 | 0; - $9 = i64toi32_i32$4; - $9$hi = i64toi32_i32$5; - i64toi32_i32$5 = var$1$hi; - i64toi32_i32$2 = var$1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 63; - i64toi32_i32$0 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = i64toi32_i32$5 >> 31 | 0; - $21 = i64toi32_i32$5 >> i64toi32_i32$0 | 0; + $4 = $5 >> $6 | 0; + $11 = (((1 << $6 | 0) - 1 | 0) & $5 | 0) << (32 - $6 | 0) | 0 | ($8 >>> $6 | 0) | 0; + } + } + $10 = $4; + $4 = $10; + $5 = $11; + $8 = $1_1; + $7 = $0_1; + $8 = $4 ^ $8 | 0; + $4 = $5 ^ $7 | 0; + $5 = $10; + $7 = $11; + $6 = $4 - $7 | 0; + $0_1 = $4 >>> 0 < $7 >>> 0; + $9 = $0_1 + $5 | 0; + $9 = $8 - $9 | 0; + $12 = $6; + $13 = $9; + $9 = $3_1; + $8 = $2_1; + $7 = 63; + $5 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { + { + $4 = $9 >> 31 | 0; + $0_1 = $9 >> $5 | 0; } } else { { - i64toi32_i32$1 = i64toi32_i32$5 >> i64toi32_i32$0 | 0; - $21 = (((1 << i64toi32_i32$0 | 0) - 1 | 0) & i64toi32_i32$5 | 0) << (32 - i64toi32_i32$0 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$0 | 0) | 0; - } - } - var$0 = $21; - var$0$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$5 = var$0; - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$3 = var$1; - i64toi32_i32$2 = i64toi32_i32$1 ^ i64toi32_i32$2 | 0; - $14$hi = i64toi32_i32$2; - i64toi32_i32$2 = i64toi32_i32$1; - i64toi32_i32$2 = $14$hi; - i64toi32_i32$1 = i64toi32_i32$5 ^ i64toi32_i32$3 | 0; - i64toi32_i32$5 = var$0$hi; - i64toi32_i32$3 = var$0; - i64toi32_i32$0 = i64toi32_i32$1 - i64toi32_i32$3 | 0; - i64toi32_i32$6 = i64toi32_i32$1 >>> 0 < i64toi32_i32$3 >>> 0; - i64toi32_i32$4 = i64toi32_i32$6 + i64toi32_i32$5 | 0; - i64toi32_i32$4 = i64toi32_i32$2 - i64toi32_i32$4 | 0; - $16$hi = i64toi32_i32$4; - i64toi32_i32$4 = $9$hi; - i64toi32_i32$1 = $16$hi; - i64toi32_i32$1 = __wasm_i64_urem($9 | 0, i64toi32_i32$4 | 0, i64toi32_i32$0 | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$4 = i64toi32_i32$HIGH_BITS; - $17$hi = i64toi32_i32$4; - i64toi32_i32$4 = var$2$hi; - i64toi32_i32$4 = $17$hi; - i64toi32_i32$2 = i64toi32_i32$1; - i64toi32_i32$1 = var$2$hi; - i64toi32_i32$3 = var$2; - i64toi32_i32$1 = i64toi32_i32$4 ^ i64toi32_i32$1 | 0; - $19$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$2$hi; - i64toi32_i32$1 = $19$hi; - i64toi32_i32$4 = i64toi32_i32$2 ^ i64toi32_i32$3 | 0; - i64toi32_i32$2 = var$2$hi; - i64toi32_i32$5 = i64toi32_i32$4 - i64toi32_i32$3 | 0; - i64toi32_i32$6 = i64toi32_i32$4 >>> 0 < i64toi32_i32$3 >>> 0; - i64toi32_i32$0 = i64toi32_i32$6 + i64toi32_i32$2 | 0; - i64toi32_i32$0 = i64toi32_i32$1 - i64toi32_i32$0 | 0; - i64toi32_i32$4 = i64toi32_i32$5; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$4 | 0; - } - - function _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$3 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, i64toi32_i32$5 = 0, var$2 = 0, var$3 = 0, var$4 = 0, var$5 = 0, var$5$hi = 0, var$6 = 0, var$6$hi = 0, i64toi32_i32$6 = 0, $37 = 0, $38 = 0, $39 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0, $44 = 0, var$8$hi = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0, var$7$hi = 0, $49 = 0, $63$hi = 0, $65 = 0, $65$hi = 0, $120$hi = 0, $129$hi = 0, $134$hi = 0, var$8 = 0, $140 = 0, $140$hi = 0, $142$hi = 0, $144 = 0, $144$hi = 0, $151 = 0, $151$hi = 0, $154$hi = 0, var$7 = 0, $165$hi = 0; + $4 = $9 >> $5 | 0; + $0_1 = (((1 << $5 | 0) - 1 | 0) & $9 | 0) << (32 - $5 | 0) | 0 | ($8 >>> $5 | 0) | 0; + } + } + $1_1 = $4; + $4 = $1_1; + $9 = $0_1; + $8 = $3_1; + $7 = $2_1; + $8 = $4 ^ $8 | 0; + $4 = $9 ^ $7 | 0; + $9 = $1_1; + $7 = $0_1; + $5 = $4 - $7 | 0; + $0_1 = $4 >>> 0 < $7 >>> 0; + $6 = $0_1 + $9 | 0; + $6 = $8 - $6 | 0; + $4 = $6; + $6 = $13; + $4 = __wasm_i64_urem($12 | 0, $6 | 0, $5 | 0, $4 | 0) | 0; + $6 = i64toi32_i32$HIGH_BITS; + $8 = $4; + $4 = $10; + $7 = $11; + $4 = $6 ^ $4 | 0; + $6 = $8 ^ $7 | 0; + $8 = $10; + $9 = $6 - $7 | 0; + $0_1 = $6 >>> 0 < $7 >>> 0; + $5 = $0_1 + $8 | 0; + $5 = $4 - $5 | 0; + $6 = $9; + i64toi32_i32$HIGH_BITS = $5; + return $6 | 0; + } + + function _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E($0_1, $1_1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + var $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $20 = 0; label$1 : { label$2 : { label$3 : { @@ -8907,394 +7528,335 @@ function asmFunc(global, env, buffer) { label$8 : { label$9 : { label$11 : { - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$2 = var$0; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = 0; - $37 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + $7 = $1_1; + $5 = $0_1; + $4 = 32; + $6 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { + $10 = $7 >>> $6 | 0 } else { - { - i64toi32_i32$1 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $37 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $10 = (((1 << $6 | 0) - 1 | 0) & $7 | 0) << (32 - $6 | 0) | 0 | ($5 >>> $6 | 0) | 0 } - var$2 = $37; - if (var$2) { + if ($10) { { - i64toi32_i32$1 = var$1$hi; - var$3 = var$1; - if (!var$3) { + $8 = $2_1; + if (!$8) { break label$11 } - i64toi32_i32$1 = var$1$hi; - i64toi32_i32$0 = var$1; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $38 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + $9 = $3_1; + $7 = $2_1; + $4 = 32; + $6 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { + $11 = $9 >>> $6 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $38 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$0 >>> i64toi32_i32$4 | 0) | 0; - } + $11 = (((1 << $6 | 0) - 1 | 0) & $9 | 0) << (32 - $6 | 0) | 0 | ($7 >>> $6 | 0) | 0 } - var$4 = $38; - if (!var$4) { + if (!$11) { break label$9 } - var$2 = Math_clz32(var$4) - Math_clz32(var$2) | 0; - if (var$2 >>> 0 <= 31 >>> 0) { + $10 = Math_clz32($11) - Math_clz32($10) | 0; + if ($10 >>> 0 <= 31 >>> 0) { break label$8 } break label$2; } } - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$1 = var$1; - i64toi32_i32$0 = 1; - i64toi32_i32$3 = 0; - if (i64toi32_i32$2 >>> 0 > i64toi32_i32$0 >>> 0 | ((i64toi32_i32$2 | 0) == (i64toi32_i32$0 | 0) & i64toi32_i32$1 >>> 0 >= i64toi32_i32$3 >>> 0 | 0) | 0) { + $5 = $3_1; + $9 = $2_1; + $7 = 1; + $4 = 0; + if ($5 >>> 0 > $7 >>> 0 | (($5 | 0) == ($7 | 0) & $9 >>> 0 >= $4 >>> 0 | 0) | 0) { break label$2 } - i64toi32_i32$1 = var$0$hi; - var$2 = var$0; - i64toi32_i32$1 = var$1$hi; - var$3 = var$1; - var$2 = (var$2 >>> 0) / (var$3 >>> 0) | 0; - i64toi32_i32$1 = 0; - legalfunc$wasm2js_scratch_store_i64(var$0 - Math_imul(var$2, var$3) | 0 | 0, i64toi32_i32$1 | 0); - i64toi32_i32$1 = 0; - i64toi32_i32$2 = var$2; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$2 | 0; + $10 = $0_1; + $8 = $2_1; + $10 = ($10 >>> 0) / ($8 >>> 0) | 0; + $9 = 0; + legalfunc$wasm2js_scratch_store_i64($0_1 - Math_imul($10, $8) | 0 | 0, $9 | 0); + $9 = 0; + $5 = $10; + i64toi32_i32$HIGH_BITS = $9; + return $5 | 0; } - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$3 = var$1; - i64toi32_i32$1 = 0; - i64toi32_i32$0 = 32; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = 0; - $39 = i64toi32_i32$2 >>> i64toi32_i32$4 | 0; - } + $5 = $3_1; + $4 = $2_1; + $7 = 32; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { + $8 = $5 >>> $6 | 0 } else { - { - i64toi32_i32$1 = i64toi32_i32$2 >>> i64toi32_i32$4 | 0; - $39 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$2 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$3 >>> i64toi32_i32$4 | 0) | 0; - } + $8 = (((1 << $6 | 0) - 1 | 0) & $5 | 0) << (32 - $6 | 0) | 0 | ($4 >>> $6 | 0) | 0 } - var$3 = $39; - i64toi32_i32$1 = var$0$hi; - if (!var$0) { + if (!$0_1) { break label$7 } - if (!var$3) { + if (!$8) { break label$6 } - var$4 = var$3 + -1 | 0; - if (var$4 & var$3 | 0) { + $11 = $8 + -1 | 0; + if ($11 & $8 | 0) { break label$6 } - i64toi32_i32$1 = 0; - i64toi32_i32$2 = var$4 & var$2 | 0; - i64toi32_i32$3 = 0; - i64toi32_i32$0 = 32; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $9 = 0; + $5 = $11 & $10 | 0; + $7 = 32; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$3 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $40 = 0; + $4 = $5 << $6 | 0; + $3_1 = 0; } } else { { - i64toi32_i32$3 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$1 << i64toi32_i32$4 | 0) | 0; - $40 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $4 = ((1 << $6 | 0) - 1 | 0) & ($5 >>> (32 - $6 | 0) | 0) | 0 | ($9 << $6 | 0) | 0; + $3_1 = $5 << $6 | 0; } } - $63$hi = i64toi32_i32$3; - i64toi32_i32$3 = var$0$hi; - i64toi32_i32$1 = var$0; - i64toi32_i32$2 = 0; - i64toi32_i32$0 = -1; - i64toi32_i32$2 = i64toi32_i32$3 & i64toi32_i32$2 | 0; - $65 = i64toi32_i32$1 & i64toi32_i32$0 | 0; - $65$hi = i64toi32_i32$2; - i64toi32_i32$2 = $63$hi; - i64toi32_i32$3 = $40; - i64toi32_i32$1 = $65$hi; - i64toi32_i32$0 = $65; - i64toi32_i32$1 = i64toi32_i32$2 | i64toi32_i32$1 | 0; - legalfunc$wasm2js_scratch_store_i64(i64toi32_i32$3 | i64toi32_i32$0 | 0 | 0, i64toi32_i32$1 | 0); - i64toi32_i32$1 = 0; - i64toi32_i32$3 = var$2 >>> ((__wasm_ctz_i32(var$3 | 0) | 0) & 31 | 0) | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$3 | 0; + $2_1 = $4; + $4 = $1_1; + $9 = $0_1; + $5 = 0; + $7 = -1; + $5 = $4 & $5 | 0; + $7 = $9 & $7 | 0; + $9 = $5; + $5 = $2_1; + $4 = $3_1; + $9 = $5 | $9 | 0; + legalfunc$wasm2js_scratch_store_i64($4 | $7 | 0 | 0, $9 | 0); + $9 = 0; + $4 = $10 >>> ((__wasm_ctz_i32($8 | 0) | 0) & 31 | 0) | 0; + i64toi32_i32$HIGH_BITS = $9; + return $4 | 0; } - var$4 = var$3 + -1 | 0; - if (!(var$4 & var$3 | 0)) { + $11 = $8 + -1 | 0; + if (!($11 & $8 | 0)) { break label$5 } - var$2 = (Math_clz32(var$3) + 33 | 0) - Math_clz32(var$2) | 0; - var$3 = 0 - var$2 | 0; + $10 = (Math_clz32($8) + 33 | 0) - Math_clz32($10) | 0; + $8 = 0 - $10 | 0; break label$3; } - var$3 = 63 - var$2 | 0; - var$2 = var$2 + 1 | 0; + $8 = 63 - $10 | 0; + $10 = $10 + 1 | 0; break label$3; } - var$4 = (var$2 >>> 0) / (var$3 >>> 0) | 0; - i64toi32_i32$3 = 0; - i64toi32_i32$2 = var$2 - Math_imul(var$4, var$3) | 0; - i64toi32_i32$1 = 0; - i64toi32_i32$0 = 32; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $11 = ($10 >>> 0) / ($8 >>> 0) | 0; + $4 = 0; + $5 = $10 - Math_imul($11, $8) | 0; + $7 = 32; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $41 = 0; + $9 = $5 << $6 | 0; + $0_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$3 << i64toi32_i32$4 | 0) | 0; - $41 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $9 = ((1 << $6 | 0) - 1 | 0) & ($5 >>> (32 - $6 | 0) | 0) | 0 | ($4 << $6 | 0) | 0; + $0_1 = $5 << $6 | 0; } } - legalfunc$wasm2js_scratch_store_i64($41 | 0, i64toi32_i32$1 | 0); - i64toi32_i32$1 = 0; - i64toi32_i32$2 = var$4; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$2 | 0; + legalfunc$wasm2js_scratch_store_i64($0_1 | 0, $9 | 0); + $9 = 0; + $5 = $11; + i64toi32_i32$HIGH_BITS = $9; + return $5 | 0; } - var$2 = Math_clz32(var$3) - Math_clz32(var$2) | 0; - if (var$2 >>> 0 < 31 >>> 0) { + $10 = Math_clz32($8) - Math_clz32($10) | 0; + if ($10 >>> 0 < 31 >>> 0) { break label$4 } break label$2; } - i64toi32_i32$2 = var$0$hi; - i64toi32_i32$2 = 0; - legalfunc$wasm2js_scratch_store_i64(var$4 & var$0 | 0 | 0, i64toi32_i32$2 | 0); - if ((var$3 | 0) == (1 | 0)) { + $5 = 0; + legalfunc$wasm2js_scratch_store_i64($11 & $0_1 | 0 | 0, $5 | 0); + if (($8 | 0) == (1 | 0)) { break label$1 } - i64toi32_i32$2 = var$0$hi; - i64toi32_i32$2 = 0; - $120$hi = i64toi32_i32$2; - i64toi32_i32$2 = var$0$hi; - i64toi32_i32$3 = var$0; - i64toi32_i32$1 = $120$hi; - i64toi32_i32$0 = __wasm_ctz_i32(var$3 | 0) | 0; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $5 = 0; + $9 = $5; + $5 = $1_1; + $4 = $0_1; + $7 = __wasm_ctz_i32($8 | 0) | 0; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = 0; - $42 = i64toi32_i32$2 >>> i64toi32_i32$4 | 0; + $9 = 0; + $4 = $5 >>> $6 | 0; } } else { { - i64toi32_i32$1 = i64toi32_i32$2 >>> i64toi32_i32$4 | 0; - $42 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$2 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$3 >>> i64toi32_i32$4 | 0) | 0; + $9 = $5 >>> $6 | 0; + $4 = (((1 << $6 | 0) - 1 | 0) & $5 | 0) << (32 - $6 | 0) | 0 | ($4 >>> $6 | 0) | 0; } } - i64toi32_i32$3 = $42; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$3 | 0; + i64toi32_i32$HIGH_BITS = $9; + return $4 | 0; } - var$3 = 63 - var$2 | 0; - var$2 = var$2 + 1 | 0; + $8 = 63 - $10 | 0; + $10 = $10 + 1 | 0; } - i64toi32_i32$3 = var$0$hi; - i64toi32_i32$3 = 0; - $129$hi = i64toi32_i32$3; - i64toi32_i32$3 = var$0$hi; - i64toi32_i32$2 = var$0; - i64toi32_i32$1 = $129$hi; - i64toi32_i32$0 = var$2 & 63 | 0; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $4 = 0; + $9 = $4; + $4 = $1_1; + $5 = $0_1; + $7 = $10 & 63 | 0; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = 0; - $43 = i64toi32_i32$3 >>> i64toi32_i32$4 | 0; + $9 = 0; + $13 = $4 >>> $6 | 0; } } else { { - i64toi32_i32$1 = i64toi32_i32$3 >>> i64toi32_i32$4 | 0; - $43 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$3 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; + $9 = $4 >>> $6 | 0; + $13 = (((1 << $6 | 0) - 1 | 0) & $4 | 0) << (32 - $6 | 0) | 0 | ($5 >>> $6 | 0) | 0; } } - var$5 = $43; - var$5$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$1 = 0; - $134$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$3 = var$0; - i64toi32_i32$2 = $134$hi; - i64toi32_i32$0 = var$3 & 63 | 0; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $11 = $9; + $9 = 0; + $5 = $9; + $9 = $1_1; + $4 = $0_1; + $7 = $8 & 63 | 0; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$2 = i64toi32_i32$3 << i64toi32_i32$4 | 0; - $44 = 0; + $5 = $4 << $6 | 0; + $0_1 = 0; } } else { { - i64toi32_i32$2 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$3 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$1 << i64toi32_i32$4 | 0) | 0; - $44 = i64toi32_i32$3 << i64toi32_i32$4 | 0; + $5 = ((1 << $6 | 0) - 1 | 0) & ($4 >>> (32 - $6 | 0) | 0) | 0 | ($9 << $6 | 0) | 0; + $0_1 = $4 << $6 | 0; } } - var$0 = $44; - var$0$hi = i64toi32_i32$2; + $1_1 = $5; label$13 : { - if (var$2) { + if ($10) { { - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$1 = var$1; - i64toi32_i32$3 = -1; - i64toi32_i32$0 = -1; - i64toi32_i32$4 = i64toi32_i32$1 + i64toi32_i32$0 | 0; - i64toi32_i32$5 = i64toi32_i32$2 + i64toi32_i32$3 | 0; - if (i64toi32_i32$4 >>> 0 < i64toi32_i32$0 >>> 0) { - i64toi32_i32$5 = i64toi32_i32$5 + 1 | 0 + $5 = $3_1; + $9 = $2_1; + $4 = -1; + $7 = -1; + $6 = $9 + $7 | 0; + $8 = $5 + $4 | 0; + if ($6 >>> 0 < $7 >>> 0) { + $8 = $8 + 1 | 0 } - var$8 = i64toi32_i32$4; - var$8$hi = i64toi32_i32$5; + $17 = $6; + $15 = $8; label$15 : while (1) { - i64toi32_i32$5 = var$5$hi; - i64toi32_i32$2 = var$5; - i64toi32_i32$1 = 0; - i64toi32_i32$0 = 1; - i64toi32_i32$3 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $8 = $11; + $5 = $13; + $7 = 1; + $4 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$3 | 0; - $45 = 0; + $9 = $5 << $4 | 0; + $12 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$3 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$3 | 0) | 0) | 0 | (i64toi32_i32$5 << i64toi32_i32$3 | 0) | 0; - $45 = i64toi32_i32$2 << i64toi32_i32$3 | 0; + $9 = ((1 << $4 | 0) - 1 | 0) & ($5 >>> (32 - $4 | 0) | 0) | 0 | ($8 << $4 | 0) | 0; + $12 = $5 << $4 | 0; } } - $140 = $45; - $140$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$5 = var$0; - i64toi32_i32$2 = 0; - i64toi32_i32$0 = 63; - i64toi32_i32$3 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $11 = $9; + $9 = $1_1; + $8 = $0_1; + $7 = 63; + $4 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$2 = 0; - $46 = i64toi32_i32$1 >>> i64toi32_i32$3 | 0; + $5 = 0; + $7 = $9 >>> $4 | 0; } } else { { - i64toi32_i32$2 = i64toi32_i32$1 >>> i64toi32_i32$3 | 0; - $46 = (((1 << i64toi32_i32$3 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$3 | 0) | 0 | (i64toi32_i32$5 >>> i64toi32_i32$3 | 0) | 0; + $5 = $9 >>> $4 | 0; + $7 = (((1 << $4 | 0) - 1 | 0) & $9 | 0) << (32 - $4 | 0) | 0 | ($8 >>> $4 | 0) | 0; } } - $142$hi = i64toi32_i32$2; - i64toi32_i32$2 = $140$hi; - i64toi32_i32$1 = $140; - i64toi32_i32$5 = $142$hi; - i64toi32_i32$0 = $46; - i64toi32_i32$5 = i64toi32_i32$2 | i64toi32_i32$5 | 0; - var$5 = i64toi32_i32$1 | i64toi32_i32$0 | 0; - var$5$hi = i64toi32_i32$5; - $144 = var$5; - $144$hi = i64toi32_i32$5; - i64toi32_i32$5 = var$8$hi; - i64toi32_i32$5 = var$5$hi; - i64toi32_i32$5 = var$8$hi; - i64toi32_i32$2 = var$8; - i64toi32_i32$1 = var$5$hi; - i64toi32_i32$0 = var$5; - i64toi32_i32$3 = i64toi32_i32$2 - i64toi32_i32$0 | 0; - i64toi32_i32$6 = i64toi32_i32$2 >>> 0 < i64toi32_i32$0 >>> 0; - i64toi32_i32$4 = i64toi32_i32$6 + i64toi32_i32$1 | 0; - i64toi32_i32$4 = i64toi32_i32$5 - i64toi32_i32$4 | 0; - i64toi32_i32$5 = i64toi32_i32$3; - i64toi32_i32$2 = 0; - i64toi32_i32$0 = 63; - i64toi32_i32$1 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $8 = $5; + $5 = $11; + $9 = $12; + $8 = $5 | $8 | 0; + $13 = $9 | $7 | 0; + $11 = $8; + $18 = $13; + $19 = $8; + $8 = $15; + $5 = $17; + $9 = $11; + $7 = $13; + $4 = $5 - $7 | 0; + $5 = $5 >>> 0 < $7 >>> 0; + $6 = $5 + $9 | 0; + $6 = $8 - $6 | 0; + $8 = $4; + $7 = 63; + $9 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$2 = i64toi32_i32$4 >> 31 | 0; - $47 = i64toi32_i32$4 >> i64toi32_i32$1 | 0; + $5 = $6 >> 31 | 0; + $14 = $6 >> $9 | 0; } } else { { - i64toi32_i32$2 = i64toi32_i32$4 >> i64toi32_i32$1 | 0; - $47 = (((1 << i64toi32_i32$1 | 0) - 1 | 0) & i64toi32_i32$4 | 0) << (32 - i64toi32_i32$1 | 0) | 0 | (i64toi32_i32$5 >>> i64toi32_i32$1 | 0) | 0; + $5 = $6 >> $9 | 0; + $14 = (((1 << $9 | 0) - 1 | 0) & $6 | 0) << (32 - $9 | 0) | 0 | ($8 >>> $9 | 0) | 0; } } - var$6 = $47; - var$6$hi = i64toi32_i32$2; - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$2 = var$6$hi; - i64toi32_i32$4 = var$6; - i64toi32_i32$5 = var$1$hi; - i64toi32_i32$0 = var$1; - i64toi32_i32$5 = i64toi32_i32$2 & i64toi32_i32$5 | 0; - $151 = i64toi32_i32$4 & i64toi32_i32$0 | 0; - $151$hi = i64toi32_i32$5; - i64toi32_i32$5 = $144$hi; - i64toi32_i32$2 = $144; - i64toi32_i32$4 = $151$hi; - i64toi32_i32$0 = $151; - i64toi32_i32$1 = i64toi32_i32$2 - i64toi32_i32$0 | 0; - i64toi32_i32$6 = i64toi32_i32$2 >>> 0 < i64toi32_i32$0 >>> 0; - i64toi32_i32$3 = i64toi32_i32$6 + i64toi32_i32$4 | 0; - i64toi32_i32$3 = i64toi32_i32$5 - i64toi32_i32$3 | 0; - var$5 = i64toi32_i32$1; - var$5$hi = i64toi32_i32$3; - i64toi32_i32$3 = var$0$hi; - i64toi32_i32$5 = var$0; - i64toi32_i32$2 = 0; - i64toi32_i32$0 = 1; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $12 = $5; + $5 = $12; + $6 = $14; + $8 = $3_1; + $7 = $2_1; + $8 = $5 & $8 | 0; + $7 = $6 & $7 | 0; + $6 = $8; + $8 = $19; + $5 = $18; + $9 = $5 - $7 | 0; + $5 = $5 >>> 0 < $7 >>> 0; + $4 = $5 + $6 | 0; + $4 = $8 - $4 | 0; + $13 = $9; + $11 = $4; + $4 = $1_1; + $8 = $0_1; + $7 = 1; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$2 = i64toi32_i32$5 << i64toi32_i32$4 | 0; - $48 = 0; + $5 = $8 << $6 | 0; + $4 = 0; } } else { { - i64toi32_i32$2 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$5 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$3 << i64toi32_i32$4 | 0) | 0; - $48 = i64toi32_i32$5 << i64toi32_i32$4 | 0; + $5 = ((1 << $6 | 0) - 1 | 0) & ($8 >>> (32 - $6 | 0) | 0) | 0 | ($4 << $6 | 0) | 0; + $4 = $8 << $6 | 0; } } - $154$hi = i64toi32_i32$2; - i64toi32_i32$2 = var$7$hi; - i64toi32_i32$2 = $154$hi; - i64toi32_i32$3 = $48; - i64toi32_i32$5 = var$7$hi; - i64toi32_i32$0 = var$7; - i64toi32_i32$5 = i64toi32_i32$2 | i64toi32_i32$5 | 0; - var$0 = i64toi32_i32$3 | i64toi32_i32$0 | 0; - var$0$hi = i64toi32_i32$5; - i64toi32_i32$5 = var$6$hi; - i64toi32_i32$2 = var$6; - i64toi32_i32$3 = 0; - i64toi32_i32$0 = 1; - i64toi32_i32$3 = i64toi32_i32$5 & i64toi32_i32$3 | 0; - var$6 = i64toi32_i32$2 & i64toi32_i32$0 | 0; - var$6$hi = i64toi32_i32$3; - var$7 = var$6; - var$7$hi = i64toi32_i32$3; - var$2 = var$2 + -1 | 0; - if (var$2) { + $8 = $16; + $7 = $20; + $8 = $5 | $8 | 0; + $0_1 = $4 | $7 | 0; + $1_1 = $8; + $8 = $12; + $5 = $14; + $4 = 0; + $7 = 1; + $4 = $8 & $4 | 0; + $14 = $5 & $7 | 0; + $12 = $4; + $20 = $14; + $16 = $4; + $10 = $10 + -1 | 0; + if ($10) { continue label$15 } break label$15; @@ -9303,85 +7865,69 @@ function asmFunc(global, env, buffer) { } } } - i64toi32_i32$3 = var$5$hi; - legalfunc$wasm2js_scratch_store_i64(var$5 | 0, i64toi32_i32$3 | 0); - i64toi32_i32$3 = var$0$hi; - i64toi32_i32$5 = var$0; - i64toi32_i32$2 = 0; - i64toi32_i32$0 = 1; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $4 = $11; + legalfunc$wasm2js_scratch_store_i64($13 | 0, $4 | 0); + $4 = $1_1; + $8 = $0_1; + $7 = 1; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$2 = i64toi32_i32$5 << i64toi32_i32$4 | 0; - $49 = 0; + $5 = $8 << $6 | 0; + $4 = 0; } } else { { - i64toi32_i32$2 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$5 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$3 << i64toi32_i32$4 | 0) | 0; - $49 = i64toi32_i32$5 << i64toi32_i32$4 | 0; + $5 = ((1 << $6 | 0) - 1 | 0) & ($8 >>> (32 - $6 | 0) | 0) | 0 | ($4 << $6 | 0) | 0; + $4 = $8 << $6 | 0; } } - $165$hi = i64toi32_i32$2; - i64toi32_i32$2 = var$6$hi; - i64toi32_i32$2 = $165$hi; - i64toi32_i32$3 = $49; - i64toi32_i32$5 = var$6$hi; - i64toi32_i32$0 = var$6; - i64toi32_i32$5 = i64toi32_i32$2 | i64toi32_i32$5 | 0; - i64toi32_i32$3 = i64toi32_i32$3 | i64toi32_i32$0 | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$5; - return i64toi32_i32$3 | 0; - } - i64toi32_i32$3 = var$0$hi; - legalfunc$wasm2js_scratch_store_i64(var$0 | 0, i64toi32_i32$3 | 0); - i64toi32_i32$3 = 0; - var$0 = 0; - var$0$hi = i64toi32_i32$3; - } - i64toi32_i32$3 = var$0$hi; - i64toi32_i32$5 = var$0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$3; - return i64toi32_i32$5 | 0; - } - - function __wasm_i64_srem(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$0 = var$1$hi; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = _ZN17compiler_builtins3int4sdiv3Mod4mod_17h2cbb7bbf36e41d68E(var$0 | 0, i64toi32_i32$0 | 0, var$1 | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; - } - - function __wasm_i64_urem(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$0 = var$1$hi; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E(var$0 | 0, i64toi32_i32$0 | 0, var$1 | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$0 = legalfunc$wasm2js_scratch_load_i64() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$0 | 0; - } - - function __wasm_ctz_i32(var$0) { - var$0 = var$0 | 0; - if (var$0) { - return 31 - Math_clz32((var$0 + -1 | 0) ^ var$0 | 0) | 0 | 0 + $8 = $12; + $7 = $14; + $8 = $5 | $8 | 0; + $4 = $4 | $7 | 0; + i64toi32_i32$HIGH_BITS = $8; + return $4 | 0; + } + $4 = $1_1; + legalfunc$wasm2js_scratch_store_i64($0_1 | 0, $4 | 0); + $4 = 0; + $0_1 = 0; + $1_1 = $4; + } + $4 = $1_1; + $8 = $0_1; + i64toi32_i32$HIGH_BITS = $4; + return $8 | 0; + } + + function __wasm_i64_srem($0_1, $1_1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + $3_1 = _ZN17compiler_builtins3int4sdiv3Mod4mod_17h2cbb7bbf36e41d68E($0_1 | 0, $1_1 | 0, $2_1 | 0, $3_1 | 0) | 0; + $1_1 = i64toi32_i32$HIGH_BITS; + i64toi32_i32$HIGH_BITS = $1_1; + return $3_1 | 0; + } + + function __wasm_i64_urem($0_1, $1_1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + $3_1 = _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E($0_1 | 0, $1_1 | 0, $2_1 | 0, $3_1 | 0) | 0; + $1_1 = legalfunc$wasm2js_scratch_load_i64() | 0; + $3_1 = i64toi32_i32$HIGH_BITS; + i64toi32_i32$HIGH_BITS = $3_1; + return $1_1 | 0; + } + + function __wasm_ctz_i32($0_1) { + $0_1 = $0_1 | 0; + if ($0_1) { + return 31 - Math_clz32(($0_1 + -1 | 0) ^ $0_1 | 0) | 0 | 0 } return 32 | 0; } @@ -9445,310 +7991,253 @@ function asmFunc(global, env, buffer) { var setTempRet0 = env.setTempRet0; var getTempRet0 = env.getTempRet0; var i64toi32_i32$HIGH_BITS = 0; - function $0(x) { - x = x | 0; - return (x | 0) % (7 | 0) | 0 | 0; + function $0($0_1) { + $0_1 = $0_1 | 0; + return ($0_1 | 0) % (7 | 0) | 0 | 0; } - function $1(x) { - x = x | 0; - return (x >>> 0) % (7 >>> 0) | 0 | 0; + function $1($0_1) { + $0_1 = $0_1 | 0; + return ($0_1 >>> 0) % (7 >>> 0) | 0 | 0; } - function $2(x, x$hi) { - x = x | 0; - x$hi = x$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = x$hi; - i64toi32_i32$1 = 0; - i64toi32_i32$1 = __wasm_i64_srem(x | 0, i64toi32_i32$0 | 0, 7 | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + function $2($0_1, $1_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + var $2_1 = 0; + $2_1 = 0; + $2_1 = __wasm_i64_srem($0_1 | 0, $1_1 | 0, 7 | 0, $2_1 | 0) | 0; + $1_1 = i64toi32_i32$HIGH_BITS; + i64toi32_i32$HIGH_BITS = $1_1; + return $2_1 | 0; } - function $3(x, x$hi) { - x = x | 0; - x$hi = x$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = x$hi; - i64toi32_i32$1 = 0; - i64toi32_i32$1 = __wasm_i64_urem(x | 0, i64toi32_i32$0 | 0, 7 | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + function $3($0_1, $1_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + var $2_1 = 0; + $2_1 = 0; + $2_1 = __wasm_i64_urem($0_1 | 0, $1_1 | 0, 7 | 0, $2_1 | 0) | 0; + $1_1 = i64toi32_i32$HIGH_BITS; + i64toi32_i32$HIGH_BITS = $1_1; + return $2_1 | 0; } function legalstub$2($0_1, $1_1) { $0_1 = $0_1 | 0; $1_1 = $1_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12 = 0, $13 = 0, $4 = 0, $4$hi = 0, $7$hi = 0, $2_1 = 0, $2$hi = 0; - i64toi32_i32$0 = 0; - $4 = $0_1; - $4$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $2_1 = 0, $3_1 = 0, $4 = 0, $5 = 0, $6 = 0; + $3_1 = 0; + $5 = $0_1; + $6 = $3_1; + $3_1 = 0; + $4 = 32; + $2_1 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $12 = 0; + $0_1 = $1_1 << $2_1 | 0; + $4 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $12 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - } - } - $7$hi = i64toi32_i32$1; - i64toi32_i32$1 = $4$hi; - i64toi32_i32$0 = $4; - i64toi32_i32$2 = $7$hi; - i64toi32_i32$3 = $12; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - i64toi32_i32$2 = $2(i64toi32_i32$0 | i64toi32_i32$3 | 0 | 0, i64toi32_i32$2 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $2_1 = i64toi32_i32$2; - $2$hi = i64toi32_i32$0; - i64toi32_i32$1 = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $13 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + $0_1 = ((1 << $2_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $2_1 | 0) | 0) | 0 | ($3_1 << $2_1 | 0) | 0; + $4 = $1_1 << $2_1 | 0; + } + } + $1_1 = $0_1; + $0_1 = $6; + $3_1 = $5; + $1_1 = $0_1 | $1_1 | 0; + $1_1 = $2($3_1 | $4 | 0 | 0, $1_1 | 0) | 0; + $3_1 = i64toi32_i32$HIGH_BITS; + $6 = $1_1; + $5 = $3_1; + $0_1 = $1_1; + $4 = 32; + $2_1 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { + $0_1 = $3_1 >>> $2_1 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $13 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$1 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $2_1 | 0) - 1 | 0) & $3_1 | 0) << (32 - $2_1 | 0) | 0 | ($0_1 >>> $2_1 | 0) | 0 } - setTempRet0($13 | 0); - i64toi32_i32$2 = $2$hi; - return $2_1 | 0; + setTempRet0($0_1 | 0); + return $6 | 0; } function legalstub$3($0_1, $1_1) { $0_1 = $0_1 | 0; $1_1 = $1_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12 = 0, $13 = 0, $4 = 0, $4$hi = 0, $7$hi = 0, $2_1 = 0, $2$hi = 0; - i64toi32_i32$0 = 0; - $4 = $0_1; - $4$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $2_1 = 0, $3_1 = 0, $4 = 0, $5 = 0, $6 = 0; + $3_1 = 0; + $5 = $0_1; + $6 = $3_1; + $3_1 = 0; + $4 = 32; + $2_1 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $12 = 0; + $0_1 = $1_1 << $2_1 | 0; + $4 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $12 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - } - } - $7$hi = i64toi32_i32$1; - i64toi32_i32$1 = $4$hi; - i64toi32_i32$0 = $4; - i64toi32_i32$2 = $7$hi; - i64toi32_i32$3 = $12; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - i64toi32_i32$2 = $3(i64toi32_i32$0 | i64toi32_i32$3 | 0 | 0, i64toi32_i32$2 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $2_1 = i64toi32_i32$2; - $2$hi = i64toi32_i32$0; - i64toi32_i32$1 = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $13 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + $0_1 = ((1 << $2_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $2_1 | 0) | 0) | 0 | ($3_1 << $2_1 | 0) | 0; + $4 = $1_1 << $2_1 | 0; + } + } + $1_1 = $0_1; + $0_1 = $6; + $3_1 = $5; + $1_1 = $0_1 | $1_1 | 0; + $1_1 = $3($3_1 | $4 | 0 | 0, $1_1 | 0) | 0; + $3_1 = i64toi32_i32$HIGH_BITS; + $6 = $1_1; + $5 = $3_1; + $0_1 = $1_1; + $4 = 32; + $2_1 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { + $0_1 = $3_1 >>> $2_1 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $13 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$1 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $2_1 | 0) - 1 | 0) & $3_1 | 0) << (32 - $2_1 | 0) | 0 | ($0_1 >>> $2_1 | 0) | 0 } - setTempRet0($13 | 0); - i64toi32_i32$2 = $2$hi; - return $2_1 | 0; + setTempRet0($0_1 | 0); + return $6 | 0; } function legalfunc$wasm2js_scratch_load_i64() { - var i64toi32_i32$0 = 0, i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $8 = 0, $1_1 = 0, $1$hi = 0, $4$hi = 0; - i64toi32_i32$0 = 0; - $1_1 = legalimport$wasm2js_scratch_load_i64() | 0; - $1$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = getTempRet0() | 0; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $8 = 0; + var $0_1 = 0, $1_1 = 0, $2_1 = 0, $3_1 = 0, $4 = 0, $5 = 0, $6 = 0; + $0_1 = 0; + $5 = legalimport$wasm2js_scratch_load_i64() | 0; + $6 = $0_1; + $0_1 = 0; + $1_1 = getTempRet0() | 0; + $2_1 = 32; + $3_1 = $2_1 & 31 | 0; + if (32 >>> 0 <= ($2_1 & 63 | 0) >>> 0) { + { + $4 = $1_1 << $3_1 | 0; + $2_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $8 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $4 = ((1 << $3_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $3_1 | 0) | 0) | 0 | ($0_1 << $3_1 | 0) | 0; + $2_1 = $1_1 << $3_1 | 0; } } - $4$hi = i64toi32_i32$1; - i64toi32_i32$1 = $1$hi; - i64toi32_i32$0 = $1_1; - i64toi32_i32$2 = $4$hi; - i64toi32_i32$3 = $8; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - i64toi32_i32$0 = i64toi32_i32$0 | i64toi32_i32$3 | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$2; - return i64toi32_i32$0 | 0; + $1_1 = $4; + $4 = $6; + $0_1 = $5; + $1_1 = $4 | $1_1 | 0; + $0_1 = $0_1 | $2_1 | 0; + i64toi32_i32$HIGH_BITS = $1_1; + return $0_1 | 0; } - function legalfunc$wasm2js_scratch_store_i64($0_1, $0$hi) { + function legalfunc$wasm2js_scratch_store_i64($0_1, $1_1) { $0_1 = $0_1 | 0; - $0$hi = $0$hi | 0; - var i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $8 = 0, $2_1 = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $0$hi; - $2_1 = $0_1; - i64toi32_i32$2 = $0_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = 0; - $8 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + $1_1 = $1_1 | 0; + var $2_1 = 0, $3_1 = 0, $4 = 0; + $4 = $0_1; + $3_1 = 32; + $2_1 = $3_1 & 31 | 0; + if (32 >>> 0 <= ($3_1 & 63 | 0) >>> 0) { + $0_1 = $1_1 >>> $2_1 | 0 } else { - { - i64toi32_i32$1 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $8 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $2_1 | 0) - 1 | 0) & $1_1 | 0) << (32 - $2_1 | 0) | 0 | ($0_1 >>> $2_1 | 0) | 0 } - legalimport$wasm2js_scratch_store_i64($2_1 | 0, $8 | 0); + legalimport$wasm2js_scratch_store_i64($4 | 0, $0_1 | 0); } - function _ZN17compiler_builtins3int4sdiv3Mod4mod_17h2cbb7bbf36e41d68E(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; - var i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$2 = 0, i64toi32_i32$0 = 0, i64toi32_i32$3 = 0, i64toi32_i32$5 = 0, var$2$hi = 0, i64toi32_i32$6 = 0, var$2 = 0, $20 = 0, $21 = 0, $7$hi = 0, $9 = 0, $9$hi = 0, $14$hi = 0, $16$hi = 0, $17$hi = 0, $19$hi = 0; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$2 = var$0; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 63; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + function _ZN17compiler_builtins3int4sdiv3Mod4mod_17h2cbb7bbf36e41d68E($0_1, $1_1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + var $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0; + $5 = $1_1; + $8 = $0_1; + $7 = 63; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$0 >> 31 | 0; - $20 = i64toi32_i32$0 >> i64toi32_i32$4 | 0; + $4 = $5 >> 31 | 0; + $11 = $5 >> $6 | 0; } } else { { - i64toi32_i32$1 = i64toi32_i32$0 >> i64toi32_i32$4 | 0; - $20 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } - } - var$2 = $20; - var$2$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$1 = var$2$hi; - i64toi32_i32$0 = var$2; - i64toi32_i32$2 = var$0$hi; - i64toi32_i32$3 = var$0; - i64toi32_i32$2 = i64toi32_i32$1 ^ i64toi32_i32$2 | 0; - $7$hi = i64toi32_i32$2; - i64toi32_i32$2 = i64toi32_i32$1; - i64toi32_i32$2 = $7$hi; - i64toi32_i32$1 = i64toi32_i32$0 ^ i64toi32_i32$3 | 0; - i64toi32_i32$0 = var$2$hi; - i64toi32_i32$3 = var$2; - i64toi32_i32$4 = i64toi32_i32$1 - i64toi32_i32$3 | 0; - i64toi32_i32$6 = i64toi32_i32$1 >>> 0 < i64toi32_i32$3 >>> 0; - i64toi32_i32$5 = i64toi32_i32$6 + i64toi32_i32$0 | 0; - i64toi32_i32$5 = i64toi32_i32$2 - i64toi32_i32$5 | 0; - $9 = i64toi32_i32$4; - $9$hi = i64toi32_i32$5; - i64toi32_i32$5 = var$1$hi; - i64toi32_i32$2 = var$1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 63; - i64toi32_i32$0 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = i64toi32_i32$5 >> 31 | 0; - $21 = i64toi32_i32$5 >> i64toi32_i32$0 | 0; + $4 = $5 >> $6 | 0; + $11 = (((1 << $6 | 0) - 1 | 0) & $5 | 0) << (32 - $6 | 0) | 0 | ($8 >>> $6 | 0) | 0; + } + } + $10 = $4; + $4 = $10; + $5 = $11; + $8 = $1_1; + $7 = $0_1; + $8 = $4 ^ $8 | 0; + $4 = $5 ^ $7 | 0; + $5 = $10; + $7 = $11; + $6 = $4 - $7 | 0; + $0_1 = $4 >>> 0 < $7 >>> 0; + $9 = $0_1 + $5 | 0; + $9 = $8 - $9 | 0; + $12 = $6; + $13 = $9; + $9 = $3_1; + $8 = $2_1; + $7 = 63; + $5 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { + { + $4 = $9 >> 31 | 0; + $0_1 = $9 >> $5 | 0; } } else { { - i64toi32_i32$1 = i64toi32_i32$5 >> i64toi32_i32$0 | 0; - $21 = (((1 << i64toi32_i32$0 | 0) - 1 | 0) & i64toi32_i32$5 | 0) << (32 - i64toi32_i32$0 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$0 | 0) | 0; - } - } - var$0 = $21; - var$0$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$5 = var$0; - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$3 = var$1; - i64toi32_i32$2 = i64toi32_i32$1 ^ i64toi32_i32$2 | 0; - $14$hi = i64toi32_i32$2; - i64toi32_i32$2 = i64toi32_i32$1; - i64toi32_i32$2 = $14$hi; - i64toi32_i32$1 = i64toi32_i32$5 ^ i64toi32_i32$3 | 0; - i64toi32_i32$5 = var$0$hi; - i64toi32_i32$3 = var$0; - i64toi32_i32$0 = i64toi32_i32$1 - i64toi32_i32$3 | 0; - i64toi32_i32$6 = i64toi32_i32$1 >>> 0 < i64toi32_i32$3 >>> 0; - i64toi32_i32$4 = i64toi32_i32$6 + i64toi32_i32$5 | 0; - i64toi32_i32$4 = i64toi32_i32$2 - i64toi32_i32$4 | 0; - $16$hi = i64toi32_i32$4; - i64toi32_i32$4 = $9$hi; - i64toi32_i32$1 = $16$hi; - i64toi32_i32$1 = __wasm_i64_urem($9 | 0, i64toi32_i32$4 | 0, i64toi32_i32$0 | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$4 = i64toi32_i32$HIGH_BITS; - $17$hi = i64toi32_i32$4; - i64toi32_i32$4 = var$2$hi; - i64toi32_i32$4 = $17$hi; - i64toi32_i32$2 = i64toi32_i32$1; - i64toi32_i32$1 = var$2$hi; - i64toi32_i32$3 = var$2; - i64toi32_i32$1 = i64toi32_i32$4 ^ i64toi32_i32$1 | 0; - $19$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$2$hi; - i64toi32_i32$1 = $19$hi; - i64toi32_i32$4 = i64toi32_i32$2 ^ i64toi32_i32$3 | 0; - i64toi32_i32$2 = var$2$hi; - i64toi32_i32$5 = i64toi32_i32$4 - i64toi32_i32$3 | 0; - i64toi32_i32$6 = i64toi32_i32$4 >>> 0 < i64toi32_i32$3 >>> 0; - i64toi32_i32$0 = i64toi32_i32$6 + i64toi32_i32$2 | 0; - i64toi32_i32$0 = i64toi32_i32$1 - i64toi32_i32$0 | 0; - i64toi32_i32$4 = i64toi32_i32$5; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$4 | 0; - } - - function _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$3 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, i64toi32_i32$5 = 0, var$2 = 0, var$3 = 0, var$4 = 0, var$5 = 0, var$5$hi = 0, var$6 = 0, var$6$hi = 0, i64toi32_i32$6 = 0, $37 = 0, $38 = 0, $39 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0, $44 = 0, var$8$hi = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0, var$7$hi = 0, $49 = 0, $63$hi = 0, $65 = 0, $65$hi = 0, $120$hi = 0, $129$hi = 0, $134$hi = 0, var$8 = 0, $140 = 0, $140$hi = 0, $142$hi = 0, $144 = 0, $144$hi = 0, $151 = 0, $151$hi = 0, $154$hi = 0, var$7 = 0, $165$hi = 0; + $4 = $9 >> $5 | 0; + $0_1 = (((1 << $5 | 0) - 1 | 0) & $9 | 0) << (32 - $5 | 0) | 0 | ($8 >>> $5 | 0) | 0; + } + } + $1_1 = $4; + $4 = $1_1; + $9 = $0_1; + $8 = $3_1; + $7 = $2_1; + $8 = $4 ^ $8 | 0; + $4 = $9 ^ $7 | 0; + $9 = $1_1; + $7 = $0_1; + $5 = $4 - $7 | 0; + $0_1 = $4 >>> 0 < $7 >>> 0; + $6 = $0_1 + $9 | 0; + $6 = $8 - $6 | 0; + $4 = $6; + $6 = $13; + $4 = __wasm_i64_urem($12 | 0, $6 | 0, $5 | 0, $4 | 0) | 0; + $6 = i64toi32_i32$HIGH_BITS; + $8 = $4; + $4 = $10; + $7 = $11; + $4 = $6 ^ $4 | 0; + $6 = $8 ^ $7 | 0; + $8 = $10; + $9 = $6 - $7 | 0; + $0_1 = $6 >>> 0 < $7 >>> 0; + $5 = $0_1 + $8 | 0; + $5 = $4 - $5 | 0; + $6 = $9; + i64toi32_i32$HIGH_BITS = $5; + return $6 | 0; + } + + function _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E($0_1, $1_1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + var $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $20 = 0; label$1 : { label$2 : { label$3 : { @@ -9759,394 +8248,335 @@ function asmFunc(global, env, buffer) { label$8 : { label$9 : { label$11 : { - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$2 = var$0; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = 0; - $37 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + $7 = $1_1; + $5 = $0_1; + $4 = 32; + $6 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { + $10 = $7 >>> $6 | 0 } else { - { - i64toi32_i32$1 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $37 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $10 = (((1 << $6 | 0) - 1 | 0) & $7 | 0) << (32 - $6 | 0) | 0 | ($5 >>> $6 | 0) | 0 } - var$2 = $37; - if (var$2) { + if ($10) { { - i64toi32_i32$1 = var$1$hi; - var$3 = var$1; - if (!var$3) { + $8 = $2_1; + if (!$8) { break label$11 } - i64toi32_i32$1 = var$1$hi; - i64toi32_i32$0 = var$1; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $38 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + $9 = $3_1; + $7 = $2_1; + $4 = 32; + $6 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { + $11 = $9 >>> $6 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $38 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$0 >>> i64toi32_i32$4 | 0) | 0; - } + $11 = (((1 << $6 | 0) - 1 | 0) & $9 | 0) << (32 - $6 | 0) | 0 | ($7 >>> $6 | 0) | 0 } - var$4 = $38; - if (!var$4) { + if (!$11) { break label$9 } - var$2 = Math_clz32(var$4) - Math_clz32(var$2) | 0; - if (var$2 >>> 0 <= 31 >>> 0) { + $10 = Math_clz32($11) - Math_clz32($10) | 0; + if ($10 >>> 0 <= 31 >>> 0) { break label$8 } break label$2; } } - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$1 = var$1; - i64toi32_i32$0 = 1; - i64toi32_i32$3 = 0; - if (i64toi32_i32$2 >>> 0 > i64toi32_i32$0 >>> 0 | ((i64toi32_i32$2 | 0) == (i64toi32_i32$0 | 0) & i64toi32_i32$1 >>> 0 >= i64toi32_i32$3 >>> 0 | 0) | 0) { + $5 = $3_1; + $9 = $2_1; + $7 = 1; + $4 = 0; + if ($5 >>> 0 > $7 >>> 0 | (($5 | 0) == ($7 | 0) & $9 >>> 0 >= $4 >>> 0 | 0) | 0) { break label$2 } - i64toi32_i32$1 = var$0$hi; - var$2 = var$0; - i64toi32_i32$1 = var$1$hi; - var$3 = var$1; - var$2 = (var$2 >>> 0) / (var$3 >>> 0) | 0; - i64toi32_i32$1 = 0; - legalfunc$wasm2js_scratch_store_i64(var$0 - Math_imul(var$2, var$3) | 0 | 0, i64toi32_i32$1 | 0); - i64toi32_i32$1 = 0; - i64toi32_i32$2 = var$2; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$2 | 0; + $10 = $0_1; + $8 = $2_1; + $10 = ($10 >>> 0) / ($8 >>> 0) | 0; + $9 = 0; + legalfunc$wasm2js_scratch_store_i64($0_1 - Math_imul($10, $8) | 0 | 0, $9 | 0); + $9 = 0; + $5 = $10; + i64toi32_i32$HIGH_BITS = $9; + return $5 | 0; } - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$3 = var$1; - i64toi32_i32$1 = 0; - i64toi32_i32$0 = 32; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = 0; - $39 = i64toi32_i32$2 >>> i64toi32_i32$4 | 0; - } + $5 = $3_1; + $4 = $2_1; + $7 = 32; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { + $8 = $5 >>> $6 | 0 } else { - { - i64toi32_i32$1 = i64toi32_i32$2 >>> i64toi32_i32$4 | 0; - $39 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$2 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$3 >>> i64toi32_i32$4 | 0) | 0; - } + $8 = (((1 << $6 | 0) - 1 | 0) & $5 | 0) << (32 - $6 | 0) | 0 | ($4 >>> $6 | 0) | 0 } - var$3 = $39; - i64toi32_i32$1 = var$0$hi; - if (!var$0) { + if (!$0_1) { break label$7 } - if (!var$3) { + if (!$8) { break label$6 } - var$4 = var$3 + -1 | 0; - if (var$4 & var$3 | 0) { + $11 = $8 + -1 | 0; + if ($11 & $8 | 0) { break label$6 } - i64toi32_i32$1 = 0; - i64toi32_i32$2 = var$4 & var$2 | 0; - i64toi32_i32$3 = 0; - i64toi32_i32$0 = 32; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $9 = 0; + $5 = $11 & $10 | 0; + $7 = 32; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$3 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $40 = 0; + $4 = $5 << $6 | 0; + $3_1 = 0; } } else { { - i64toi32_i32$3 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$1 << i64toi32_i32$4 | 0) | 0; - $40 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $4 = ((1 << $6 | 0) - 1 | 0) & ($5 >>> (32 - $6 | 0) | 0) | 0 | ($9 << $6 | 0) | 0; + $3_1 = $5 << $6 | 0; } } - $63$hi = i64toi32_i32$3; - i64toi32_i32$3 = var$0$hi; - i64toi32_i32$1 = var$0; - i64toi32_i32$2 = 0; - i64toi32_i32$0 = -1; - i64toi32_i32$2 = i64toi32_i32$3 & i64toi32_i32$2 | 0; - $65 = i64toi32_i32$1 & i64toi32_i32$0 | 0; - $65$hi = i64toi32_i32$2; - i64toi32_i32$2 = $63$hi; - i64toi32_i32$3 = $40; - i64toi32_i32$1 = $65$hi; - i64toi32_i32$0 = $65; - i64toi32_i32$1 = i64toi32_i32$2 | i64toi32_i32$1 | 0; - legalfunc$wasm2js_scratch_store_i64(i64toi32_i32$3 | i64toi32_i32$0 | 0 | 0, i64toi32_i32$1 | 0); - i64toi32_i32$1 = 0; - i64toi32_i32$3 = var$2 >>> ((__wasm_ctz_i32(var$3 | 0) | 0) & 31 | 0) | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$3 | 0; + $2_1 = $4; + $4 = $1_1; + $9 = $0_1; + $5 = 0; + $7 = -1; + $5 = $4 & $5 | 0; + $7 = $9 & $7 | 0; + $9 = $5; + $5 = $2_1; + $4 = $3_1; + $9 = $5 | $9 | 0; + legalfunc$wasm2js_scratch_store_i64($4 | $7 | 0 | 0, $9 | 0); + $9 = 0; + $4 = $10 >>> ((__wasm_ctz_i32($8 | 0) | 0) & 31 | 0) | 0; + i64toi32_i32$HIGH_BITS = $9; + return $4 | 0; } - var$4 = var$3 + -1 | 0; - if (!(var$4 & var$3 | 0)) { + $11 = $8 + -1 | 0; + if (!($11 & $8 | 0)) { break label$5 } - var$2 = (Math_clz32(var$3) + 33 | 0) - Math_clz32(var$2) | 0; - var$3 = 0 - var$2 | 0; + $10 = (Math_clz32($8) + 33 | 0) - Math_clz32($10) | 0; + $8 = 0 - $10 | 0; break label$3; } - var$3 = 63 - var$2 | 0; - var$2 = var$2 + 1 | 0; + $8 = 63 - $10 | 0; + $10 = $10 + 1 | 0; break label$3; } - var$4 = (var$2 >>> 0) / (var$3 >>> 0) | 0; - i64toi32_i32$3 = 0; - i64toi32_i32$2 = var$2 - Math_imul(var$4, var$3) | 0; - i64toi32_i32$1 = 0; - i64toi32_i32$0 = 32; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $11 = ($10 >>> 0) / ($8 >>> 0) | 0; + $4 = 0; + $5 = $10 - Math_imul($11, $8) | 0; + $7 = 32; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $41 = 0; + $9 = $5 << $6 | 0; + $0_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$3 << i64toi32_i32$4 | 0) | 0; - $41 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $9 = ((1 << $6 | 0) - 1 | 0) & ($5 >>> (32 - $6 | 0) | 0) | 0 | ($4 << $6 | 0) | 0; + $0_1 = $5 << $6 | 0; } } - legalfunc$wasm2js_scratch_store_i64($41 | 0, i64toi32_i32$1 | 0); - i64toi32_i32$1 = 0; - i64toi32_i32$2 = var$4; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$2 | 0; + legalfunc$wasm2js_scratch_store_i64($0_1 | 0, $9 | 0); + $9 = 0; + $5 = $11; + i64toi32_i32$HIGH_BITS = $9; + return $5 | 0; } - var$2 = Math_clz32(var$3) - Math_clz32(var$2) | 0; - if (var$2 >>> 0 < 31 >>> 0) { + $10 = Math_clz32($8) - Math_clz32($10) | 0; + if ($10 >>> 0 < 31 >>> 0) { break label$4 } break label$2; } - i64toi32_i32$2 = var$0$hi; - i64toi32_i32$2 = 0; - legalfunc$wasm2js_scratch_store_i64(var$4 & var$0 | 0 | 0, i64toi32_i32$2 | 0); - if ((var$3 | 0) == (1 | 0)) { + $5 = 0; + legalfunc$wasm2js_scratch_store_i64($11 & $0_1 | 0 | 0, $5 | 0); + if (($8 | 0) == (1 | 0)) { break label$1 } - i64toi32_i32$2 = var$0$hi; - i64toi32_i32$2 = 0; - $120$hi = i64toi32_i32$2; - i64toi32_i32$2 = var$0$hi; - i64toi32_i32$3 = var$0; - i64toi32_i32$1 = $120$hi; - i64toi32_i32$0 = __wasm_ctz_i32(var$3 | 0) | 0; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $5 = 0; + $9 = $5; + $5 = $1_1; + $4 = $0_1; + $7 = __wasm_ctz_i32($8 | 0) | 0; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = 0; - $42 = i64toi32_i32$2 >>> i64toi32_i32$4 | 0; + $9 = 0; + $4 = $5 >>> $6 | 0; } } else { { - i64toi32_i32$1 = i64toi32_i32$2 >>> i64toi32_i32$4 | 0; - $42 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$2 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$3 >>> i64toi32_i32$4 | 0) | 0; + $9 = $5 >>> $6 | 0; + $4 = (((1 << $6 | 0) - 1 | 0) & $5 | 0) << (32 - $6 | 0) | 0 | ($4 >>> $6 | 0) | 0; } } - i64toi32_i32$3 = $42; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$3 | 0; + i64toi32_i32$HIGH_BITS = $9; + return $4 | 0; } - var$3 = 63 - var$2 | 0; - var$2 = var$2 + 1 | 0; + $8 = 63 - $10 | 0; + $10 = $10 + 1 | 0; } - i64toi32_i32$3 = var$0$hi; - i64toi32_i32$3 = 0; - $129$hi = i64toi32_i32$3; - i64toi32_i32$3 = var$0$hi; - i64toi32_i32$2 = var$0; - i64toi32_i32$1 = $129$hi; - i64toi32_i32$0 = var$2 & 63 | 0; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $4 = 0; + $9 = $4; + $4 = $1_1; + $5 = $0_1; + $7 = $10 & 63 | 0; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = 0; - $43 = i64toi32_i32$3 >>> i64toi32_i32$4 | 0; + $9 = 0; + $13 = $4 >>> $6 | 0; } } else { { - i64toi32_i32$1 = i64toi32_i32$3 >>> i64toi32_i32$4 | 0; - $43 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$3 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; + $9 = $4 >>> $6 | 0; + $13 = (((1 << $6 | 0) - 1 | 0) & $4 | 0) << (32 - $6 | 0) | 0 | ($5 >>> $6 | 0) | 0; } } - var$5 = $43; - var$5$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$1 = 0; - $134$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$3 = var$0; - i64toi32_i32$2 = $134$hi; - i64toi32_i32$0 = var$3 & 63 | 0; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $11 = $9; + $9 = 0; + $5 = $9; + $9 = $1_1; + $4 = $0_1; + $7 = $8 & 63 | 0; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$2 = i64toi32_i32$3 << i64toi32_i32$4 | 0; - $44 = 0; + $5 = $4 << $6 | 0; + $0_1 = 0; } } else { { - i64toi32_i32$2 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$3 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$1 << i64toi32_i32$4 | 0) | 0; - $44 = i64toi32_i32$3 << i64toi32_i32$4 | 0; + $5 = ((1 << $6 | 0) - 1 | 0) & ($4 >>> (32 - $6 | 0) | 0) | 0 | ($9 << $6 | 0) | 0; + $0_1 = $4 << $6 | 0; } } - var$0 = $44; - var$0$hi = i64toi32_i32$2; + $1_1 = $5; label$13 : { - if (var$2) { + if ($10) { { - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$1 = var$1; - i64toi32_i32$3 = -1; - i64toi32_i32$0 = -1; - i64toi32_i32$4 = i64toi32_i32$1 + i64toi32_i32$0 | 0; - i64toi32_i32$5 = i64toi32_i32$2 + i64toi32_i32$3 | 0; - if (i64toi32_i32$4 >>> 0 < i64toi32_i32$0 >>> 0) { - i64toi32_i32$5 = i64toi32_i32$5 + 1 | 0 + $5 = $3_1; + $9 = $2_1; + $4 = -1; + $7 = -1; + $6 = $9 + $7 | 0; + $8 = $5 + $4 | 0; + if ($6 >>> 0 < $7 >>> 0) { + $8 = $8 + 1 | 0 } - var$8 = i64toi32_i32$4; - var$8$hi = i64toi32_i32$5; + $17 = $6; + $15 = $8; label$15 : while (1) { - i64toi32_i32$5 = var$5$hi; - i64toi32_i32$2 = var$5; - i64toi32_i32$1 = 0; - i64toi32_i32$0 = 1; - i64toi32_i32$3 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $8 = $11; + $5 = $13; + $7 = 1; + $4 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$3 | 0; - $45 = 0; + $9 = $5 << $4 | 0; + $12 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$3 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$3 | 0) | 0) | 0 | (i64toi32_i32$5 << i64toi32_i32$3 | 0) | 0; - $45 = i64toi32_i32$2 << i64toi32_i32$3 | 0; + $9 = ((1 << $4 | 0) - 1 | 0) & ($5 >>> (32 - $4 | 0) | 0) | 0 | ($8 << $4 | 0) | 0; + $12 = $5 << $4 | 0; } } - $140 = $45; - $140$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$5 = var$0; - i64toi32_i32$2 = 0; - i64toi32_i32$0 = 63; - i64toi32_i32$3 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $11 = $9; + $9 = $1_1; + $8 = $0_1; + $7 = 63; + $4 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$2 = 0; - $46 = i64toi32_i32$1 >>> i64toi32_i32$3 | 0; + $5 = 0; + $7 = $9 >>> $4 | 0; } } else { { - i64toi32_i32$2 = i64toi32_i32$1 >>> i64toi32_i32$3 | 0; - $46 = (((1 << i64toi32_i32$3 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$3 | 0) | 0 | (i64toi32_i32$5 >>> i64toi32_i32$3 | 0) | 0; + $5 = $9 >>> $4 | 0; + $7 = (((1 << $4 | 0) - 1 | 0) & $9 | 0) << (32 - $4 | 0) | 0 | ($8 >>> $4 | 0) | 0; } } - $142$hi = i64toi32_i32$2; - i64toi32_i32$2 = $140$hi; - i64toi32_i32$1 = $140; - i64toi32_i32$5 = $142$hi; - i64toi32_i32$0 = $46; - i64toi32_i32$5 = i64toi32_i32$2 | i64toi32_i32$5 | 0; - var$5 = i64toi32_i32$1 | i64toi32_i32$0 | 0; - var$5$hi = i64toi32_i32$5; - $144 = var$5; - $144$hi = i64toi32_i32$5; - i64toi32_i32$5 = var$8$hi; - i64toi32_i32$5 = var$5$hi; - i64toi32_i32$5 = var$8$hi; - i64toi32_i32$2 = var$8; - i64toi32_i32$1 = var$5$hi; - i64toi32_i32$0 = var$5; - i64toi32_i32$3 = i64toi32_i32$2 - i64toi32_i32$0 | 0; - i64toi32_i32$6 = i64toi32_i32$2 >>> 0 < i64toi32_i32$0 >>> 0; - i64toi32_i32$4 = i64toi32_i32$6 + i64toi32_i32$1 | 0; - i64toi32_i32$4 = i64toi32_i32$5 - i64toi32_i32$4 | 0; - i64toi32_i32$5 = i64toi32_i32$3; - i64toi32_i32$2 = 0; - i64toi32_i32$0 = 63; - i64toi32_i32$1 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $8 = $5; + $5 = $11; + $9 = $12; + $8 = $5 | $8 | 0; + $13 = $9 | $7 | 0; + $11 = $8; + $18 = $13; + $19 = $8; + $8 = $15; + $5 = $17; + $9 = $11; + $7 = $13; + $4 = $5 - $7 | 0; + $5 = $5 >>> 0 < $7 >>> 0; + $6 = $5 + $9 | 0; + $6 = $8 - $6 | 0; + $8 = $4; + $7 = 63; + $9 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$2 = i64toi32_i32$4 >> 31 | 0; - $47 = i64toi32_i32$4 >> i64toi32_i32$1 | 0; + $5 = $6 >> 31 | 0; + $14 = $6 >> $9 | 0; } } else { { - i64toi32_i32$2 = i64toi32_i32$4 >> i64toi32_i32$1 | 0; - $47 = (((1 << i64toi32_i32$1 | 0) - 1 | 0) & i64toi32_i32$4 | 0) << (32 - i64toi32_i32$1 | 0) | 0 | (i64toi32_i32$5 >>> i64toi32_i32$1 | 0) | 0; + $5 = $6 >> $9 | 0; + $14 = (((1 << $9 | 0) - 1 | 0) & $6 | 0) << (32 - $9 | 0) | 0 | ($8 >>> $9 | 0) | 0; } } - var$6 = $47; - var$6$hi = i64toi32_i32$2; - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$2 = var$6$hi; - i64toi32_i32$4 = var$6; - i64toi32_i32$5 = var$1$hi; - i64toi32_i32$0 = var$1; - i64toi32_i32$5 = i64toi32_i32$2 & i64toi32_i32$5 | 0; - $151 = i64toi32_i32$4 & i64toi32_i32$0 | 0; - $151$hi = i64toi32_i32$5; - i64toi32_i32$5 = $144$hi; - i64toi32_i32$2 = $144; - i64toi32_i32$4 = $151$hi; - i64toi32_i32$0 = $151; - i64toi32_i32$1 = i64toi32_i32$2 - i64toi32_i32$0 | 0; - i64toi32_i32$6 = i64toi32_i32$2 >>> 0 < i64toi32_i32$0 >>> 0; - i64toi32_i32$3 = i64toi32_i32$6 + i64toi32_i32$4 | 0; - i64toi32_i32$3 = i64toi32_i32$5 - i64toi32_i32$3 | 0; - var$5 = i64toi32_i32$1; - var$5$hi = i64toi32_i32$3; - i64toi32_i32$3 = var$0$hi; - i64toi32_i32$5 = var$0; - i64toi32_i32$2 = 0; - i64toi32_i32$0 = 1; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $12 = $5; + $5 = $12; + $6 = $14; + $8 = $3_1; + $7 = $2_1; + $8 = $5 & $8 | 0; + $7 = $6 & $7 | 0; + $6 = $8; + $8 = $19; + $5 = $18; + $9 = $5 - $7 | 0; + $5 = $5 >>> 0 < $7 >>> 0; + $4 = $5 + $6 | 0; + $4 = $8 - $4 | 0; + $13 = $9; + $11 = $4; + $4 = $1_1; + $8 = $0_1; + $7 = 1; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$2 = i64toi32_i32$5 << i64toi32_i32$4 | 0; - $48 = 0; + $5 = $8 << $6 | 0; + $4 = 0; } } else { { - i64toi32_i32$2 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$5 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$3 << i64toi32_i32$4 | 0) | 0; - $48 = i64toi32_i32$5 << i64toi32_i32$4 | 0; + $5 = ((1 << $6 | 0) - 1 | 0) & ($8 >>> (32 - $6 | 0) | 0) | 0 | ($4 << $6 | 0) | 0; + $4 = $8 << $6 | 0; } } - $154$hi = i64toi32_i32$2; - i64toi32_i32$2 = var$7$hi; - i64toi32_i32$2 = $154$hi; - i64toi32_i32$3 = $48; - i64toi32_i32$5 = var$7$hi; - i64toi32_i32$0 = var$7; - i64toi32_i32$5 = i64toi32_i32$2 | i64toi32_i32$5 | 0; - var$0 = i64toi32_i32$3 | i64toi32_i32$0 | 0; - var$0$hi = i64toi32_i32$5; - i64toi32_i32$5 = var$6$hi; - i64toi32_i32$2 = var$6; - i64toi32_i32$3 = 0; - i64toi32_i32$0 = 1; - i64toi32_i32$3 = i64toi32_i32$5 & i64toi32_i32$3 | 0; - var$6 = i64toi32_i32$2 & i64toi32_i32$0 | 0; - var$6$hi = i64toi32_i32$3; - var$7 = var$6; - var$7$hi = i64toi32_i32$3; - var$2 = var$2 + -1 | 0; - if (var$2) { + $8 = $16; + $7 = $20; + $8 = $5 | $8 | 0; + $0_1 = $4 | $7 | 0; + $1_1 = $8; + $8 = $12; + $5 = $14; + $4 = 0; + $7 = 1; + $4 = $8 & $4 | 0; + $14 = $5 & $7 | 0; + $12 = $4; + $20 = $14; + $16 = $4; + $10 = $10 + -1 | 0; + if ($10) { continue label$15 } break label$15; @@ -10155,85 +8585,69 @@ function asmFunc(global, env, buffer) { } } } - i64toi32_i32$3 = var$5$hi; - legalfunc$wasm2js_scratch_store_i64(var$5 | 0, i64toi32_i32$3 | 0); - i64toi32_i32$3 = var$0$hi; - i64toi32_i32$5 = var$0; - i64toi32_i32$2 = 0; - i64toi32_i32$0 = 1; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $4 = $11; + legalfunc$wasm2js_scratch_store_i64($13 | 0, $4 | 0); + $4 = $1_1; + $8 = $0_1; + $7 = 1; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$2 = i64toi32_i32$5 << i64toi32_i32$4 | 0; - $49 = 0; + $5 = $8 << $6 | 0; + $4 = 0; } } else { { - i64toi32_i32$2 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$5 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$3 << i64toi32_i32$4 | 0) | 0; - $49 = i64toi32_i32$5 << i64toi32_i32$4 | 0; + $5 = ((1 << $6 | 0) - 1 | 0) & ($8 >>> (32 - $6 | 0) | 0) | 0 | ($4 << $6 | 0) | 0; + $4 = $8 << $6 | 0; } } - $165$hi = i64toi32_i32$2; - i64toi32_i32$2 = var$6$hi; - i64toi32_i32$2 = $165$hi; - i64toi32_i32$3 = $49; - i64toi32_i32$5 = var$6$hi; - i64toi32_i32$0 = var$6; - i64toi32_i32$5 = i64toi32_i32$2 | i64toi32_i32$5 | 0; - i64toi32_i32$3 = i64toi32_i32$3 | i64toi32_i32$0 | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$5; - return i64toi32_i32$3 | 0; - } - i64toi32_i32$3 = var$0$hi; - legalfunc$wasm2js_scratch_store_i64(var$0 | 0, i64toi32_i32$3 | 0); - i64toi32_i32$3 = 0; - var$0 = 0; - var$0$hi = i64toi32_i32$3; - } - i64toi32_i32$3 = var$0$hi; - i64toi32_i32$5 = var$0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$3; - return i64toi32_i32$5 | 0; - } - - function __wasm_i64_srem(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$0 = var$1$hi; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = _ZN17compiler_builtins3int4sdiv3Mod4mod_17h2cbb7bbf36e41d68E(var$0 | 0, i64toi32_i32$0 | 0, var$1 | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; - } - - function __wasm_i64_urem(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$0 = var$1$hi; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E(var$0 | 0, i64toi32_i32$0 | 0, var$1 | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$0 = legalfunc$wasm2js_scratch_load_i64() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$0 | 0; - } - - function __wasm_ctz_i32(var$0) { - var$0 = var$0 | 0; - if (var$0) { - return 31 - Math_clz32((var$0 + -1 | 0) ^ var$0 | 0) | 0 | 0 + $8 = $12; + $7 = $14; + $8 = $5 | $8 | 0; + $4 = $4 | $7 | 0; + i64toi32_i32$HIGH_BITS = $8; + return $4 | 0; + } + $4 = $1_1; + legalfunc$wasm2js_scratch_store_i64($0_1 | 0, $4 | 0); + $4 = 0; + $0_1 = 0; + $1_1 = $4; + } + $4 = $1_1; + $8 = $0_1; + i64toi32_i32$HIGH_BITS = $4; + return $8 | 0; + } + + function __wasm_i64_srem($0_1, $1_1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + $3_1 = _ZN17compiler_builtins3int4sdiv3Mod4mod_17h2cbb7bbf36e41d68E($0_1 | 0, $1_1 | 0, $2_1 | 0, $3_1 | 0) | 0; + $1_1 = i64toi32_i32$HIGH_BITS; + i64toi32_i32$HIGH_BITS = $1_1; + return $3_1 | 0; + } + + function __wasm_i64_urem($0_1, $1_1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + $3_1 = _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E($0_1 | 0, $1_1 | 0, $2_1 | 0, $3_1 | 0) | 0; + $1_1 = legalfunc$wasm2js_scratch_load_i64() | 0; + $3_1 = i64toi32_i32$HIGH_BITS; + i64toi32_i32$HIGH_BITS = $3_1; + return $1_1 | 0; + } + + function __wasm_ctz_i32($0_1) { + $0_1 = $0_1 | 0; + if ($0_1) { + return 31 - Math_clz32(($0_1 + -1 | 0) ^ $0_1 | 0) | 0 | 0 } return 32 | 0; } diff --git a/test/wasm2js/int_literals.2asm.js b/test/wasm2js/int_literals.2asm.js index 16fe25b0b..03b1244a2 100644 --- a/test/wasm2js/int_literals.2asm.js +++ b/test/wasm2js/int_literals.2asm.js @@ -99,15 +99,15 @@ function asmFunc(global, env, buffer) { } function $17() { - var i64toi32_i32$5 = 0, i64toi32_i32$3 = 0, i64toi32_i32$4 = 0; - i64toi32_i32$3 = 1; - i64toi32_i32$4 = 0 + i64toi32_i32$3 | 0; - i64toi32_i32$5 = -2147483648 + 0 | 0; - if (i64toi32_i32$4 >>> 0 < i64toi32_i32$3 >>> 0) { - i64toi32_i32$5 = i64toi32_i32$5 + 1 | 0 + var $0_1 = 0, $1_1 = 0, $2_1 = 0; + $1_1 = 1; + $2_1 = 0 + $1_1 | 0; + $0_1 = -2147483648 + 0 | 0; + if ($2_1 >>> 0 < $1_1 >>> 0) { + $0_1 = $0_1 + 1 | 0 } - i64toi32_i32$HIGH_BITS = i64toi32_i32$5; - return i64toi32_i32$4 | 0; + i64toi32_i32$HIGH_BITS = $0_1; + return $2_1 | 0; } function $18() { @@ -131,289 +131,190 @@ function asmFunc(global, env, buffer) { } function legalstub$11() { - var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0_1 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $11() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0_1 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$2 = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = 0; - $7_1 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + var $0_1 = 0, $1_1 = 0, $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0; + $0_1 = $11() | 0; + $2_1 = i64toi32_i32$HIGH_BITS; + $4_1 = $0_1; + $5_1 = $2_1; + $3_1 = 32; + $1_1 = $3_1 & 31 | 0; + if (32 >>> 0 <= ($3_1 & 63 | 0) >>> 0) { + $0_1 = $2_1 >>> $1_1 | 0 } else { - { - i64toi32_i32$0 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $7_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $1_1 | 0) - 1 | 0) & $2_1 | 0) << (32 - $1_1 | 0) | 0 | ($0_1 >>> $1_1 | 0) | 0 } - setTempRet0($7_1 | 0); - i64toi32_i32$0 = $0$hi; - return $0_1 | 0; + setTempRet0($0_1 | 0); + return $4_1 | 0; } function legalstub$12() { - var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0_1 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $12() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0_1 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$2 = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = 0; - $7_1 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + var $0_1 = 0, $1_1 = 0, $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0; + $0_1 = $12() | 0; + $2_1 = i64toi32_i32$HIGH_BITS; + $4_1 = $0_1; + $5_1 = $2_1; + $3_1 = 32; + $1_1 = $3_1 & 31 | 0; + if (32 >>> 0 <= ($3_1 & 63 | 0) >>> 0) { + $0_1 = $2_1 >>> $1_1 | 0 } else { - { - i64toi32_i32$0 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $7_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $1_1 | 0) - 1 | 0) & $2_1 | 0) << (32 - $1_1 | 0) | 0 | ($0_1 >>> $1_1 | 0) | 0 } - setTempRet0($7_1 | 0); - i64toi32_i32$0 = $0$hi; - return $0_1 | 0; + setTempRet0($0_1 | 0); + return $4_1 | 0; } function legalstub$13() { - var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0_1 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $13() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0_1 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$2 = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = 0; - $7_1 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + var $0_1 = 0, $1_1 = 0, $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0; + $0_1 = $13() | 0; + $2_1 = i64toi32_i32$HIGH_BITS; + $4_1 = $0_1; + $5_1 = $2_1; + $3_1 = 32; + $1_1 = $3_1 & 31 | 0; + if (32 >>> 0 <= ($3_1 & 63 | 0) >>> 0) { + $0_1 = $2_1 >>> $1_1 | 0 } else { - { - i64toi32_i32$0 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $7_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $1_1 | 0) - 1 | 0) & $2_1 | 0) << (32 - $1_1 | 0) | 0 | ($0_1 >>> $1_1 | 0) | 0 } - setTempRet0($7_1 | 0); - i64toi32_i32$0 = $0$hi; - return $0_1 | 0; + setTempRet0($0_1 | 0); + return $4_1 | 0; } function legalstub$14() { - var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0_1 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $14() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0_1 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$2 = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = 0; - $7_1 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + var $0_1 = 0, $1_1 = 0, $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0; + $0_1 = $14() | 0; + $2_1 = i64toi32_i32$HIGH_BITS; + $4_1 = $0_1; + $5_1 = $2_1; + $3_1 = 32; + $1_1 = $3_1 & 31 | 0; + if (32 >>> 0 <= ($3_1 & 63 | 0) >>> 0) { + $0_1 = $2_1 >>> $1_1 | 0 } else { - { - i64toi32_i32$0 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $7_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $1_1 | 0) - 1 | 0) & $2_1 | 0) << (32 - $1_1 | 0) | 0 | ($0_1 >>> $1_1 | 0) | 0 } - setTempRet0($7_1 | 0); - i64toi32_i32$0 = $0$hi; - return $0_1 | 0; + setTempRet0($0_1 | 0); + return $4_1 | 0; } function legalstub$15() { - var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0_1 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $15() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0_1 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$2 = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = 0; - $7_1 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + var $0_1 = 0, $1_1 = 0, $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0; + $0_1 = $15() | 0; + $2_1 = i64toi32_i32$HIGH_BITS; + $4_1 = $0_1; + $5_1 = $2_1; + $3_1 = 32; + $1_1 = $3_1 & 31 | 0; + if (32 >>> 0 <= ($3_1 & 63 | 0) >>> 0) { + $0_1 = $2_1 >>> $1_1 | 0 } else { - { - i64toi32_i32$0 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $7_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $1_1 | 0) - 1 | 0) & $2_1 | 0) << (32 - $1_1 | 0) | 0 | ($0_1 >>> $1_1 | 0) | 0 } - setTempRet0($7_1 | 0); - i64toi32_i32$0 = $0$hi; - return $0_1 | 0; + setTempRet0($0_1 | 0); + return $4_1 | 0; } function legalstub$16() { - var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0_1 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $16() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0_1 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$2 = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = 0; - $7_1 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + var $0_1 = 0, $1_1 = 0, $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0; + $0_1 = $16() | 0; + $2_1 = i64toi32_i32$HIGH_BITS; + $4_1 = $0_1; + $5_1 = $2_1; + $3_1 = 32; + $1_1 = $3_1 & 31 | 0; + if (32 >>> 0 <= ($3_1 & 63 | 0) >>> 0) { + $0_1 = $2_1 >>> $1_1 | 0 } else { - { - i64toi32_i32$0 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $7_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $1_1 | 0) - 1 | 0) & $2_1 | 0) << (32 - $1_1 | 0) | 0 | ($0_1 >>> $1_1 | 0) | 0 } - setTempRet0($7_1 | 0); - i64toi32_i32$0 = $0$hi; - return $0_1 | 0; + setTempRet0($0_1 | 0); + return $4_1 | 0; } function legalstub$17() { - var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0_1 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $17() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0_1 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$2 = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = 0; - $7_1 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + var $0_1 = 0, $1_1 = 0, $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0; + $0_1 = $17() | 0; + $2_1 = i64toi32_i32$HIGH_BITS; + $4_1 = $0_1; + $5_1 = $2_1; + $3_1 = 32; + $1_1 = $3_1 & 31 | 0; + if (32 >>> 0 <= ($3_1 & 63 | 0) >>> 0) { + $0_1 = $2_1 >>> $1_1 | 0 } else { - { - i64toi32_i32$0 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $7_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $1_1 | 0) - 1 | 0) & $2_1 | 0) << (32 - $1_1 | 0) | 0 | ($0_1 >>> $1_1 | 0) | 0 } - setTempRet0($7_1 | 0); - i64toi32_i32$0 = $0$hi; - return $0_1 | 0; + setTempRet0($0_1 | 0); + return $4_1 | 0; } function legalstub$18() { - var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0_1 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $18() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0_1 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$2 = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = 0; - $7_1 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + var $0_1 = 0, $1_1 = 0, $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0; + $0_1 = $18() | 0; + $2_1 = i64toi32_i32$HIGH_BITS; + $4_1 = $0_1; + $5_1 = $2_1; + $3_1 = 32; + $1_1 = $3_1 & 31 | 0; + if (32 >>> 0 <= ($3_1 & 63 | 0) >>> 0) { + $0_1 = $2_1 >>> $1_1 | 0 } else { - { - i64toi32_i32$0 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $7_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $1_1 | 0) - 1 | 0) & $2_1 | 0) << (32 - $1_1 | 0) | 0 | ($0_1 >>> $1_1 | 0) | 0 } - setTempRet0($7_1 | 0); - i64toi32_i32$0 = $0$hi; - return $0_1 | 0; + setTempRet0($0_1 | 0); + return $4_1 | 0; } function legalstub$19() { - var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0_1 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $19() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0_1 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$2 = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = 0; - $7_1 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + var $0_1 = 0, $1_1 = 0, $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0; + $0_1 = $19() | 0; + $2_1 = i64toi32_i32$HIGH_BITS; + $4_1 = $0_1; + $5_1 = $2_1; + $3_1 = 32; + $1_1 = $3_1 & 31 | 0; + if (32 >>> 0 <= ($3_1 & 63 | 0) >>> 0) { + $0_1 = $2_1 >>> $1_1 | 0 } else { - { - i64toi32_i32$0 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $7_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $1_1 | 0) - 1 | 0) & $2_1 | 0) << (32 - $1_1 | 0) | 0 | ($0_1 >>> $1_1 | 0) | 0 } - setTempRet0($7_1 | 0); - i64toi32_i32$0 = $0$hi; - return $0_1 | 0; + setTempRet0($0_1 | 0); + return $4_1 | 0; } function legalstub$20() { - var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0_1 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $20() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0_1 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$2 = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = 0; - $7_1 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + var $0_1 = 0, $1_1 = 0, $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0; + $0_1 = $20() | 0; + $2_1 = i64toi32_i32$HIGH_BITS; + $4_1 = $0_1; + $5_1 = $2_1; + $3_1 = 32; + $1_1 = $3_1 & 31 | 0; + if (32 >>> 0 <= ($3_1 & 63 | 0) >>> 0) { + $0_1 = $2_1 >>> $1_1 | 0 } else { - { - i64toi32_i32$0 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $7_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $1_1 | 0) - 1 | 0) & $2_1 | 0) << (32 - $1_1 | 0) | 0 | ($0_1 >>> $1_1 | 0) | 0 } - setTempRet0($7_1 | 0); - i64toi32_i32$0 = $0$hi; - return $0_1 | 0; + setTempRet0($0_1 | 0); + return $4_1 | 0; } function legalstub$21() { - var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0_1 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $21() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0_1 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$2 = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = 0; - $7_1 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + var $0_1 = 0, $1_1 = 0, $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0; + $0_1 = $21() | 0; + $2_1 = i64toi32_i32$HIGH_BITS; + $4_1 = $0_1; + $5_1 = $2_1; + $3_1 = 32; + $1_1 = $3_1 & 31 | 0; + if (32 >>> 0 <= ($3_1 & 63 | 0) >>> 0) { + $0_1 = $2_1 >>> $1_1 | 0 } else { - { - i64toi32_i32$0 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $7_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $1_1 | 0) - 1 | 0) & $2_1 | 0) << (32 - $1_1 | 0) | 0 | ($0_1 >>> $1_1 | 0) | 0 } - setTempRet0($7_1 | 0); - i64toi32_i32$0 = $0$hi; - return $0_1 | 0; + setTempRet0($0_1 | 0); + return $4_1 | 0; } var FUNCTION_TABLE = []; diff --git a/test/wasm2js/labels.2asm.js b/test/wasm2js/labels.2asm.js index 043684eb9..c5a61a658 100644 --- a/test/wasm2js/labels.2asm.js +++ b/test/wasm2js/labels.2asm.js @@ -31,153 +31,137 @@ function asmFunc(global, env, buffer) { } function $1() { - var i = 0, $6_1 = 0; - i = 0; + var $0_1 = 0; + $0_1 = 0; exit : { cont : while (1) { - i = i + 1 | 0; - if ((i | 0) == (5 | 0)) { - { - $6_1 = i; - break exit; - } + $0_1 = $0_1 + 1 | 0; + if (($0_1 | 0) == (5 | 0)) { + break exit } continue cont; }; } - return $6_1 | 0; + return $0_1 | 0; } function $2() { - var i = 0, $8_1 = 0; - i = 0; + var $0_1 = 0; + $0_1 = 0; exit : { cont : while (1) { - i = i + 1 | 0; - if ((i | 0) == (5 | 0)) { + $0_1 = $0_1 + 1 | 0; + if (($0_1 | 0) == (5 | 0)) { continue cont } - if ((i | 0) == (8 | 0)) { - { - $8_1 = i; - break exit; - } + if (($0_1 | 0) == (8 | 0)) { + break exit } - i = i + 1 | 0; + $0_1 = $0_1 + 1 | 0; continue cont; }; } - return $8_1 | 0; + return $0_1 | 0; } function $3() { - var i = 0, $6_1 = 0; - i = 0; + var $0_1 = 0; + $0_1 = 0; + $0_1 = $0_1 + 1 | 0; exit : { - i = i + 1 | 0; - if ((i | 0) == (5 | 0)) { - { - $6_1 = i; - break exit; - } + if (($0_1 | 0) == (5 | 0)) { + break exit } - $6_1 = i; } - return $6_1 | 0; + return $0_1 | 0; } - function $4(max) { - max = max | 0; - var i = 0, $9_1 = 0; - i = 1; + function $4($0_1) { + $0_1 = $0_1 | 0; + var $1_1 = 0; + $1_1 = 1; exit : { cont : while (1) { - i = i + i | 0; - if (i >>> 0 > max >>> 0) { - { - $9_1 = i; - break exit; - } + $1_1 = $1_1 + $1_1 | 0; + if ($1_1 >>> 0 > $0_1 >>> 0) { + break exit } continue cont; }; } - return $9_1 | 0; + return $1_1 | 0; } function $5() { - var $0_1 = 0; - $0_1 = 1; - return $0_1 + 1 | 0 | 0; + return 1 + 1 | 0 | 0; } function $6() { - var i = 0; - i = 0; + var $0_1 = 0; + $0_1 = 0; l : { break l; } - i = i + 1 | 0; + $0_1 = $0_1 + 1 | 0; l1 : { break l1; } - i = i + 1 | 0; + $0_1 = $0_1 + 1 | 0; l2 : { break l2; } - i = i + 1 | 0; + $0_1 = $0_1 + 1 | 0; l3 : { break l3; } - i = i + 1 | 0; + $0_1 = $0_1 + 1 | 0; l4 : { break l4; } - i = i + 1 | 0; - return i | 0; + $0_1 = $0_1 + 1 | 0; + return $0_1 | 0; } function $7() { - var i = 0; - i = 0; + var $0_1 = 0; + $0_1 = 0; if_1 : { break if_1; } - i = i + 1 | 0; + $0_1 = $0_1 + 1 | 0; if5 : { break if5; } - i = i + 1 | 0; + $0_1 = $0_1 + 1 | 0; if6 : { break if6; } - i = i + 1 | 0; + $0_1 = $0_1 + 1 | 0; if7 : { break if7; } - i = i + 1 | 0; + $0_1 = $0_1 + 1 | 0; if8 : { break if8; } - i = i + 1 | 0; - return i | 0; + $0_1 = $0_1 + 1 | 0; + return $0_1 | 0; } function $8($0_1) { $0_1 = $0_1 | 0; - var $2_2 = 0, $3_2 = 0; ret : { exit : { $0_2 : { default_ : { $3_1 : { $2_1 : { - $1_1 : { + $1_2 : { switch ($0_1 | 0) { case 0: break $0_2; case 1: - break $1_1; + break $1_2; case 2: break $2_1; case 3: @@ -187,29 +171,29 @@ function asmFunc(global, env, buffer) { }; } } - $2_2 = 2; + $0_1 = 2; break exit; } - $3_2 = 3; + $0_1 = 3; break ret; } } - $2_2 = 5; + $0_1 = 5; } - $3_2 = Math_imul(10, $2_2); + $0_1 = Math_imul(10, $0_1); } - return $3_2 | 0; + return $0_1 | 0; } function $9($0_1) { $0_1 = $0_1 | 0; - $1_1 : { + $1_2 : { $0_2 : { switch ($0_1 | 0) { case 0: break $0_2; default: - break $1_1; + break $1_2; }; } return 0 | 0; @@ -218,91 +202,87 @@ function asmFunc(global, env, buffer) { } function $10() { - var i = 0, $10_1 = 0; - i = 0; - outer : { - inner : { - if (0) { - break inner - } - i = i | 1 | 0; - if (1) { - break inner - } - i = i | 2 | 0; + var $0_1 = 0, $1_1 = 0; + $0_1 = 0; + inner : { + if (0) { + break inner } - i = i | 4 | 0; - $10_1 = i; + $0_1 = $0_1 | 1 | 0; + if (1) { + break inner + } + $0_1 = $0_1 | 2 | 0; + } + $0_1 = $0_1 | 4 | 0; + $1_1 = $0_1; + outer : { if (0) { break outer } - i = i | 8 | 0; - i = i | 16 | 0; - $10_1 = i; + $0_1 = $0_1 | 8 | 0; + $0_1 = $0_1 | 16 | 0; + $1_1 = $0_1; if (1) { break outer } - i = i | 32 | 0; - $10_1 = i; + $0_1 = $0_1 | 32 | 0; + $1_1 = $0_1; } - return $10_1 | 0; + return $1_1 | 0; } function $11() { - var $2_2 = 0, $0_1 = 0; + var $0_1 = 0; + l1 : { + $0_1 = 1; + break l1; + } l0 : { - l1 : { - $0_1 = 1; - break l1; - } - $2_2 = $0_1; if (1) { break l0 } - $2_2 = 1; + $0_1 = 1; } - return $2_2 | 0; + return $0_1 | 0; } function $12() { - var $2_2 = 0, $0_1 = 0; + var $0_1 = 0; l0 : { l1 : { $0_1 = 1; break l1; } - $2_2 = $0_1; break l0; } - return $2_2 | 0; + return $0_1 | 0; } function $13() { - var i1 = 0, $7_1 = 0, $3_2 = 0; + var $0_1 = 0, $1_1 = 0; + $0_1 = 1; + $1_1 = $0_1; + $0_1 = 2; l0 : { - i1 = 1; - $3_2 = i1; - i1 = 2; - $7_1 = $3_2; - if (i1) { + if ($0_1) { break l0 } - $7_1 = 0; + $1_1 = 0; } - return i1 | 0; + return $0_1 | 0; } function $14() { - var $2_2 = 0, $0_1 = 0, $3_2 = 0; + var $0_1 = 0; l0 : { l1 : { $0_1 = 1; break l1; } - $2_2 = $0_1; break l0; } - return $2_2 | 0; + return $0_1 | 0; } function $15() { @@ -315,13 +295,13 @@ function asmFunc(global, env, buffer) { } function $16() { - var $1_2 = 0, $2_2 = 0; - $1_2 = 2; + var $0_1 = 0, $1_1 = 0; + $0_1 = 2; l113 : { - $2_2 = 3; + $1_1 = 3; break l113; } - return $1_2 + $2_2 | 0 | 0; + return $0_1 + $1_1 | 0 | 0; } var FUNCTION_TABLE = []; diff --git a/test/wasm2js/left-to-right.2asm.js b/test/wasm2js/left-to-right.2asm.js index 9b25aedc4..d410ae1c9 100644 --- a/test/wasm2js/left-to-right.2asm.js +++ b/test/wasm2js/left-to-right.2asm.js @@ -72,19 +72,19 @@ function asmFunc(global, env, buffer) { return -2 | 0; } - function i64_t0($0, $0$hi, $1, $1$hi) { + function i64_t0($0, $1, $2, $3) { $0 = $0 | 0; - $0$hi = $0$hi | 0; $1 = $1 | 0; - $1$hi = $1$hi | 0; + $2 = $2 | 0; + $3 = $3 | 0; return -1 | 0; } - function i64_t1($0, $0$hi, $1, $1$hi) { + function i64_t1($0, $1, $2, $3) { $0 = $0 | 0; - $0$hi = $0$hi | 0; $1 = $1 | 0; - $1$hi = $1$hi | 0; + $2 = $2 | 0; + $3 = $3 | 0; return -2 | 0; } @@ -152,20 +152,20 @@ function asmFunc(global, env, buffer) { } function i64_left() { - var i64toi32_i32$0 = 0; + var $0 = 0; bump(); HEAP8[8 >> 0] = 1; - i64toi32_i32$0 = 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; + $0 = 0; + i64toi32_i32$HIGH_BITS = $0; return 0 | 0; } function i64_right() { - var i64toi32_i32$0 = 0; + var $0 = 0; bump(); HEAP8[8 >> 0] = 2; - i64toi32_i32$0 = 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; + $0 = 0; + i64toi32_i32$HIGH_BITS = $0; return 1 | 0; } @@ -234,11 +234,11 @@ function asmFunc(global, env, buffer) { $1 = $1 | 0; } - function i64_dummy($0, $0$hi, $1, $1$hi) { + function i64_dummy($0, $1, $2, $3) { $0 = $0 | 0; - $0$hi = $0$hi | 0; $1 = $1 | 0; - $1$hi = $1$hi | 0; + $2 = $2 | 0; + $3 = $3 | 0; } function f32_dummy($0, $1) { @@ -431,532 +431,436 @@ function asmFunc(global, env, buffer) { } function $64() { - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, i64toi32_i32$4 = 0, i64toi32_i32$5 = 0, $0 = 0, $0$hi = 0, $1 = 0, $1$hi = 0; - reset(); - i64toi32_i32$0 = i64_left() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$1 = i64_right() | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $1 = i64toi32_i32$1; - $1$hi = i64toi32_i32$0; - i64toi32_i32$0 = $0$hi; - i64toi32_i32$1 = $1$hi; - i64toi32_i32$3 = $1; - i64toi32_i32$4 = $0 + i64toi32_i32$3 | 0; - i64toi32_i32$5 = i64toi32_i32$0 + i64toi32_i32$1 | 0; - if (i64toi32_i32$4 >>> 0 < i64toi32_i32$3 >>> 0) { - i64toi32_i32$5 = i64toi32_i32$5 + 1 | 0 - } + var $0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0; + reset(); + $0 = i64_left() | 0; + $1 = i64toi32_i32$HIGH_BITS; + $4 = $0; + $2 = $1; + $1 = i64_right() | 0; + $0 = i64toi32_i32$HIGH_BITS; + $3 = $1; + $1 = $0; + $0 = $2; + $2 = $4 + $3 | 0; + $0 = $0 + $1 | 0; + $2 >>> 0 < $3 >>> 0; return get() | 0 | 0; } function $65() { - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$2 = 0, i64toi32_i32$3 = 0, i64toi32_i32$5 = 0, $0 = 0, $0$hi = 0, $1 = 0, $1$hi = 0; + var $0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0; reset(); - i64toi32_i32$0 = i64_left() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$1 = i64_right() | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $1 = i64toi32_i32$1; - $1$hi = i64toi32_i32$0; - i64toi32_i32$0 = $0$hi; - i64toi32_i32$2 = $0; - i64toi32_i32$1 = $1$hi; - i64toi32_i32$3 = $1; - i64toi32_i32$5 = (i64toi32_i32$2 >>> 0 < i64toi32_i32$3 >>> 0) + i64toi32_i32$1 | 0; - i64toi32_i32$5 = i64toi32_i32$0 - i64toi32_i32$5 | 0; + $1 = i64_left() | 0; + $0 = i64toi32_i32$HIGH_BITS; + $2 = $1; + $4 = $0; + $0 = i64_right() | 0; + $1 = i64toi32_i32$HIGH_BITS; + $3 = $0; + $0 = $1; + $1 = $4; + $0 = ($2 >>> 0 < $3 >>> 0) + $0 | 0; return get() | 0 | 0; } function $66() { - var i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, $0 = 0, $0$hi = 0, $1 = 0, $1$hi = 0; + var $0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0; reset(); - i64toi32_i32$0 = i64_left() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$1 = i64_right() | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $1 = i64toi32_i32$1; - $1$hi = i64toi32_i32$0; - i64toi32_i32$0 = $0$hi; - i64toi32_i32$1 = $1$hi; - i64toi32_i32$1 = __wasm_i64_mul($0 | 0, i64toi32_i32$0 | 0, $1 | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; + $1 = i64_left() | 0; + $0 = i64toi32_i32$HIGH_BITS; + $2 = $1; + $3 = $0; + $0 = i64_right() | 0; + $1 = i64toi32_i32$HIGH_BITS; + $4 = $0; + $0 = $1; + $1 = $3; + $0 = __wasm_i64_mul($2 | 0, $1 | 0, $4 | 0, $0 | 0) | 0; return get() | 0 | 0; } function $67() { - var i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, $0 = 0, $0$hi = 0, $1 = 0, $1$hi = 0; + var $0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0; reset(); - i64toi32_i32$0 = i64_left() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$1 = i64_right() | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $1 = i64toi32_i32$1; - $1$hi = i64toi32_i32$0; - i64toi32_i32$0 = $0$hi; - i64toi32_i32$1 = $1$hi; - i64toi32_i32$1 = __wasm_i64_sdiv($0 | 0, i64toi32_i32$0 | 0, $1 | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; + $1 = i64_left() | 0; + $0 = i64toi32_i32$HIGH_BITS; + $2 = $1; + $3 = $0; + $0 = i64_right() | 0; + $1 = i64toi32_i32$HIGH_BITS; + $4 = $0; + $0 = $1; + $1 = $3; + $0 = __wasm_i64_sdiv($2 | 0, $1 | 0, $4 | 0, $0 | 0) | 0; return get() | 0 | 0; } function $68() { - var i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, $0 = 0, $0$hi = 0, $1 = 0, $1$hi = 0; + var $0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0; reset(); - i64toi32_i32$0 = i64_left() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$1 = i64_right() | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $1 = i64toi32_i32$1; - $1$hi = i64toi32_i32$0; - i64toi32_i32$0 = $0$hi; - i64toi32_i32$1 = $1$hi; - i64toi32_i32$1 = __wasm_i64_udiv($0 | 0, i64toi32_i32$0 | 0, $1 | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; + $1 = i64_left() | 0; + $0 = i64toi32_i32$HIGH_BITS; + $2 = $1; + $3 = $0; + $0 = i64_right() | 0; + $1 = i64toi32_i32$HIGH_BITS; + $4 = $0; + $0 = $1; + $1 = $3; + $0 = __wasm_i64_udiv($2 | 0, $1 | 0, $4 | 0, $0 | 0) | 0; return get() | 0 | 0; } function $69() { - var i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, $0 = 0, $0$hi = 0, $1 = 0, $1$hi = 0; + var $0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0; reset(); - i64toi32_i32$0 = i64_left() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$1 = i64_right() | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $1 = i64toi32_i32$1; - $1$hi = i64toi32_i32$0; - i64toi32_i32$0 = $0$hi; - i64toi32_i32$1 = $1$hi; - i64toi32_i32$1 = __wasm_i64_srem($0 | 0, i64toi32_i32$0 | 0, $1 | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; + $1 = i64_left() | 0; + $0 = i64toi32_i32$HIGH_BITS; + $2 = $1; + $3 = $0; + $0 = i64_right() | 0; + $1 = i64toi32_i32$HIGH_BITS; + $4 = $0; + $0 = $1; + $1 = $3; + $0 = __wasm_i64_srem($2 | 0, $1 | 0, $4 | 0, $0 | 0) | 0; return get() | 0 | 0; } function $70() { - var i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, $0 = 0, $0$hi = 0, $1 = 0, $1$hi = 0; + var $0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0; reset(); - i64toi32_i32$0 = i64_left() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$1 = i64_right() | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $1 = i64toi32_i32$1; - $1$hi = i64toi32_i32$0; - i64toi32_i32$0 = $0$hi; - i64toi32_i32$1 = $1$hi; - i64toi32_i32$1 = __wasm_i64_urem($0 | 0, i64toi32_i32$0 | 0, $1 | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; + $1 = i64_left() | 0; + $0 = i64toi32_i32$HIGH_BITS; + $2 = $1; + $3 = $0; + $0 = i64_right() | 0; + $1 = i64toi32_i32$HIGH_BITS; + $4 = $0; + $0 = $1; + $1 = $3; + $0 = __wasm_i64_urem($2 | 0, $1 | 0, $4 | 0, $0 | 0) | 0; return get() | 0 | 0; } function $71() { - var i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, $0 = 0, $0$hi = 0, $1 = 0, $1$hi = 0; + var $0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0; reset(); - i64toi32_i32$0 = i64_left() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$1 = i64_right() | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $1 = i64toi32_i32$1; - $1$hi = i64toi32_i32$0; - i64toi32_i32$0 = $0$hi; - i64toi32_i32$1 = $1$hi; - i64toi32_i32$1 = i64toi32_i32$0 & i64toi32_i32$1 | 0; + $0 = i64_left() | 0; + $1 = i64toi32_i32$HIGH_BITS; + $2 = $0; + $3 = $1; + $1 = i64_right() | 0; + $0 = i64toi32_i32$HIGH_BITS; + $4 = $1; + $1 = $0; + $0 = $3; return get() | 0 | 0; } function $72() { - var i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, $0 = 0, $0$hi = 0, $1 = 0, $1$hi = 0; + var $0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0; reset(); - i64toi32_i32$0 = i64_left() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$1 = i64_right() | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $1 = i64toi32_i32$1; - $1$hi = i64toi32_i32$0; - i64toi32_i32$0 = $0$hi; - i64toi32_i32$1 = $1$hi; - i64toi32_i32$1 = i64toi32_i32$0 | i64toi32_i32$1 | 0; + $0 = i64_left() | 0; + $1 = i64toi32_i32$HIGH_BITS; + $2 = $0; + $3 = $1; + $1 = i64_right() | 0; + $0 = i64toi32_i32$HIGH_BITS; + $4 = $1; + $1 = $0; + $0 = $3; return get() | 0 | 0; } function $73() { - var i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, $0 = 0, $0$hi = 0, $1 = 0, $1$hi = 0; + var $0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0; reset(); - i64toi32_i32$0 = i64_left() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$1 = i64_right() | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $1 = i64toi32_i32$1; - $1$hi = i64toi32_i32$0; - i64toi32_i32$0 = $0$hi; - i64toi32_i32$1 = $1$hi; - i64toi32_i32$1 = i64toi32_i32$0 ^ i64toi32_i32$1 | 0; + $0 = i64_left() | 0; + $1 = i64toi32_i32$HIGH_BITS; + $2 = $0; + $3 = $1; + $1 = i64_right() | 0; + $0 = i64toi32_i32$HIGH_BITS; + $4 = $1; + $1 = $0; + $0 = $3; return get() | 0 | 0; } function $74() { - var i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$2 = 0, i64toi32_i32$3 = 0, $9 = 0, $0 = 0, $0$hi = 0, $1 = 0, $1$hi = 0; - reset(); - i64toi32_i32$0 = i64_left() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$1 = i64_right() | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $1 = i64toi32_i32$1; - $1$hi = i64toi32_i32$0; - i64toi32_i32$0 = $0$hi; - i64toi32_i32$2 = $0; - i64toi32_i32$1 = $1$hi; - i64toi32_i32$3 = $1; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $9 = 0; - } + var $0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0; + reset(); + $0 = i64_left() | 0; + $2 = i64toi32_i32$HIGH_BITS; + $3 = $0; + $1 = $2; + $2 = i64_right() | 0; + $0 = i64toi32_i32$HIGH_BITS; + $4 = $0; + $0 = $1; + $1 = $2 & 31 | 0; + if (32 >>> 0 <= ($2 & 63 | 0) >>> 0) { + $0 = 0 } else { - { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $9 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - } + $0 = $3 << $1 | 0 } return get() | 0 | 0; } function $75() { - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $9 = 0, $0 = 0, $0$hi = 0, $1 = 0, $1$hi = 0, i64toi32_i32$2 = 0; - reset(); - i64toi32_i32$0 = i64_left() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$1 = i64_right() | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $1 = i64toi32_i32$1; - $1$hi = i64toi32_i32$0; - i64toi32_i32$0 = $0$hi; - i64toi32_i32$2 = $0; - i64toi32_i32$1 = $1$hi; - i64toi32_i32$3 = $1; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = 0; - $9 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + var $0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0; + reset(); + $0 = i64_left() | 0; + $2 = i64toi32_i32$HIGH_BITS; + $3 = $0; + $1 = $2; + $2 = i64_right() | 0; + $0 = i64toi32_i32$HIGH_BITS; + $4 = $0; + $0 = $1; + $1 = $2 & 31 | 0; + if (32 >>> 0 <= ($2 & 63 | 0) >>> 0) { + $0 = $0 >>> $1 | 0 } else { - { - i64toi32_i32$1 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $9 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $0 = (((1 << $1 | 0) - 1 | 0) & $0 | 0) << (32 - $1 | 0) | 0 | ($3 >>> $1 | 0) | 0 } return get() | 0 | 0; } function $76() { - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $9 = 0, $0 = 0, $0$hi = 0, $1 = 0, $1$hi = 0, i64toi32_i32$2 = 0; - reset(); - i64toi32_i32$0 = i64_left() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$1 = i64_right() | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $1 = i64toi32_i32$1; - $1$hi = i64toi32_i32$0; - i64toi32_i32$0 = $0$hi; - i64toi32_i32$2 = $0; - i64toi32_i32$1 = $1$hi; - i64toi32_i32$3 = $1; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = i64toi32_i32$0 >> 31 | 0; - $9 = i64toi32_i32$0 >> i64toi32_i32$4 | 0; - } + var $0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0; + reset(); + $0 = i64_left() | 0; + $2 = i64toi32_i32$HIGH_BITS; + $3 = $0; + $1 = $2; + $2 = i64_right() | 0; + $0 = i64toi32_i32$HIGH_BITS; + $4 = $0; + $0 = $1; + $1 = $2 & 31 | 0; + if (32 >>> 0 <= ($2 & 63 | 0) >>> 0) { + $0 = $0 >> $1 | 0 } else { - { - i64toi32_i32$1 = i64toi32_i32$0 >> i64toi32_i32$4 | 0; - $9 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $0 = (((1 << $1 | 0) - 1 | 0) & $0 | 0) << (32 - $1 | 0) | 0 | ($3 >>> $1 | 0) | 0 } return get() | 0 | 0; } function $77() { - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, $0 = 0, $0$hi = 0, $1 = 0, $1$hi = 0; + var $0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0; reset(); - i64toi32_i32$0 = i64_left() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$1 = i64_right() | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $1 = i64toi32_i32$1; - $1$hi = i64toi32_i32$0; - i64toi32_i32$0 = $0$hi; - i64toi32_i32$1 = $1$hi; + $0 = i64_left() | 0; + $1 = i64toi32_i32$HIGH_BITS; + $2 = $0; + $3 = $1; + $1 = i64_right() | 0; + $0 = i64toi32_i32$HIGH_BITS; + $4 = $1; + $1 = $0; + $0 = $3; return get() | 0 | 0; } function $78() { - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, $0 = 0, $0$hi = 0, $1 = 0, $1$hi = 0; + var $0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0; reset(); - i64toi32_i32$0 = i64_left() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$1 = i64_right() | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $1 = i64toi32_i32$1; - $1$hi = i64toi32_i32$0; - i64toi32_i32$0 = $0$hi; - i64toi32_i32$1 = $1$hi; + $0 = i64_left() | 0; + $1 = i64toi32_i32$HIGH_BITS; + $2 = $0; + $3 = $1; + $1 = i64_right() | 0; + $0 = i64toi32_i32$HIGH_BITS; + $4 = $1; + $1 = $0; + $0 = $3; return get() | 0 | 0; } function $79() { - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, $8 = 0, $9 = 0, $10 = 0, $0 = 0, $0$hi = 0, $1 = 0, $1$hi = 0, i64toi32_i32$2 = 0, i64toi32_i32$3 = 0; - reset(); - i64toi32_i32$0 = i64_left() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$1 = i64_right() | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $1 = i64toi32_i32$1; - $1$hi = i64toi32_i32$0; - i64toi32_i32$0 = $0$hi; - i64toi32_i32$2 = $0; - i64toi32_i32$1 = $1$hi; - i64toi32_i32$3 = $1; - if ((i64toi32_i32$0 | 0) < (i64toi32_i32$1 | 0)) { - $8 = 1 + var $0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0; + reset(); + $0 = i64_left() | 0; + $1 = i64toi32_i32$HIGH_BITS; + $2 = $0; + $3 = $1; + $1 = i64_right() | 0; + $0 = i64toi32_i32$HIGH_BITS; + $4 = $1; + $1 = $0; + $0 = $3; + if (($0 | 0) < ($1 | 0)) { + $0 = 1 } else { - { - if ((i64toi32_i32$0 | 0) <= (i64toi32_i32$1 | 0)) { - { - if (i64toi32_i32$2 >>> 0 >= i64toi32_i32$3 >>> 0) { - $9 = 0 - } else { - $9 = 1 - } - $10 = $9; - } + if (($0 | 0) <= ($1 | 0)) { + if ($2 >>> 0 >= $4 >>> 0) { + $0 = 0 } else { - $10 = 0 + $0 = 1 } - $8 = $10; + } else { + $0 = 0 } } return get() | 0 | 0; } function $80() { - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, $8 = 0, $9 = 0, $10 = 0, $0 = 0, $0$hi = 0, $1 = 0, $1$hi = 0, i64toi32_i32$2 = 0, i64toi32_i32$3 = 0; - reset(); - i64toi32_i32$0 = i64_left() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$1 = i64_right() | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $1 = i64toi32_i32$1; - $1$hi = i64toi32_i32$0; - i64toi32_i32$0 = $0$hi; - i64toi32_i32$2 = $0; - i64toi32_i32$1 = $1$hi; - i64toi32_i32$3 = $1; - if ((i64toi32_i32$0 | 0) < (i64toi32_i32$1 | 0)) { - $8 = 1 + var $0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0; + reset(); + $0 = i64_left() | 0; + $1 = i64toi32_i32$HIGH_BITS; + $2 = $0; + $3 = $1; + $1 = i64_right() | 0; + $0 = i64toi32_i32$HIGH_BITS; + $4 = $1; + $1 = $0; + $0 = $3; + if (($0 | 0) < ($1 | 0)) { + $0 = 1 } else { - { - if ((i64toi32_i32$0 | 0) <= (i64toi32_i32$1 | 0)) { - { - if (i64toi32_i32$2 >>> 0 > i64toi32_i32$3 >>> 0) { - $9 = 0 - } else { - $9 = 1 - } - $10 = $9; - } + if (($0 | 0) <= ($1 | 0)) { + if ($2 >>> 0 > $4 >>> 0) { + $0 = 0 } else { - $10 = 0 + $0 = 1 } - $8 = $10; + } else { + $0 = 0 } } return get() | 0 | 0; } function $81() { - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, $0 = 0, $0$hi = 0, $1 = 0, $1$hi = 0; + var $0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0; reset(); - i64toi32_i32$0 = i64_left() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$1 = i64_right() | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $1 = i64toi32_i32$1; - $1$hi = i64toi32_i32$0; - i64toi32_i32$0 = $0$hi; - i64toi32_i32$1 = $1$hi; + $0 = i64_left() | 0; + $1 = i64toi32_i32$HIGH_BITS; + $2 = $0; + $3 = $1; + $1 = i64_right() | 0; + $0 = i64toi32_i32$HIGH_BITS; + $4 = $1; + $1 = $0; + $0 = $3; return get() | 0 | 0; } function $82() { - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, $0 = 0, $0$hi = 0, $1 = 0, $1$hi = 0; + var $0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0; reset(); - i64toi32_i32$0 = i64_left() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$1 = i64_right() | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $1 = i64toi32_i32$1; - $1$hi = i64toi32_i32$0; - i64toi32_i32$0 = $0$hi; - i64toi32_i32$1 = $1$hi; + $0 = i64_left() | 0; + $1 = i64toi32_i32$HIGH_BITS; + $2 = $0; + $3 = $1; + $1 = i64_right() | 0; + $0 = i64toi32_i32$HIGH_BITS; + $4 = $1; + $1 = $0; + $0 = $3; return get() | 0 | 0; } function $83() { - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, $8 = 0, $9 = 0, $10 = 0, $0 = 0, $0$hi = 0, $1 = 0, $1$hi = 0, i64toi32_i32$2 = 0, i64toi32_i32$3 = 0; - reset(); - i64toi32_i32$0 = i64_left() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$1 = i64_right() | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $1 = i64toi32_i32$1; - $1$hi = i64toi32_i32$0; - i64toi32_i32$0 = $0$hi; - i64toi32_i32$2 = $0; - i64toi32_i32$1 = $1$hi; - i64toi32_i32$3 = $1; - if ((i64toi32_i32$0 | 0) > (i64toi32_i32$1 | 0)) { - $8 = 1 + var $0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0; + reset(); + $0 = i64_left() | 0; + $1 = i64toi32_i32$HIGH_BITS; + $2 = $0; + $3 = $1; + $1 = i64_right() | 0; + $0 = i64toi32_i32$HIGH_BITS; + $4 = $1; + $1 = $0; + $0 = $3; + if (($0 | 0) > ($1 | 0)) { + $0 = 1 } else { - { - if ((i64toi32_i32$0 | 0) >= (i64toi32_i32$1 | 0)) { - { - if (i64toi32_i32$2 >>> 0 <= i64toi32_i32$3 >>> 0) { - $9 = 0 - } else { - $9 = 1 - } - $10 = $9; - } + if (($0 | 0) >= ($1 | 0)) { + if ($2 >>> 0 <= $4 >>> 0) { + $0 = 0 } else { - $10 = 0 + $0 = 1 } - $8 = $10; + } else { + $0 = 0 } } return get() | 0 | 0; } function $84() { - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, $8 = 0, $9 = 0, $10 = 0, $0 = 0, $0$hi = 0, $1 = 0, $1$hi = 0, i64toi32_i32$2 = 0, i64toi32_i32$3 = 0; - reset(); - i64toi32_i32$0 = i64_left() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$1 = i64_right() | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $1 = i64toi32_i32$1; - $1$hi = i64toi32_i32$0; - i64toi32_i32$0 = $0$hi; - i64toi32_i32$2 = $0; - i64toi32_i32$1 = $1$hi; - i64toi32_i32$3 = $1; - if ((i64toi32_i32$0 | 0) > (i64toi32_i32$1 | 0)) { - $8 = 1 + var $0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0; + reset(); + $0 = i64_left() | 0; + $1 = i64toi32_i32$HIGH_BITS; + $2 = $0; + $3 = $1; + $1 = i64_right() | 0; + $0 = i64toi32_i32$HIGH_BITS; + $4 = $1; + $1 = $0; + $0 = $3; + if (($0 | 0) > ($1 | 0)) { + $0 = 1 } else { - { - if ((i64toi32_i32$0 | 0) >= (i64toi32_i32$1 | 0)) { - { - if (i64toi32_i32$2 >>> 0 < i64toi32_i32$3 >>> 0) { - $9 = 0 - } else { - $9 = 1 - } - $10 = $9; - } + if (($0 | 0) >= ($1 | 0)) { + if ($2 >>> 0 < $4 >>> 0) { + $0 = 0 } else { - $10 = 0 + $0 = 1 } - $8 = $10; + } else { + $0 = 0 } } return get() | 0 | 0; } function $85() { - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, $0 = 0, $0$hi = 0, $1 = 0, $1$hi = 0; + var $0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0; reset(); - i64toi32_i32$0 = i64_left() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$1 = i64_right() | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $1 = i64toi32_i32$1; - $1$hi = i64toi32_i32$0; - i64toi32_i32$0 = $0$hi; - i64toi32_i32$1 = $1$hi; + $0 = i64_left() | 0; + $1 = i64toi32_i32$HIGH_BITS; + $2 = $0; + $3 = $1; + $1 = i64_right() | 0; + $0 = i64toi32_i32$HIGH_BITS; + $4 = $1; + $1 = $0; + $0 = $3; return get() | 0 | 0; } function $86() { - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, $0 = 0, $0$hi = 0, $1 = 0, $1$hi = 0; + var $0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0; reset(); - i64toi32_i32$0 = i64_left() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$1 = i64_right() | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $1 = i64toi32_i32$1; - $1$hi = i64toi32_i32$0; - i64toi32_i32$0 = $0$hi; - i64toi32_i32$1 = $1$hi; + $0 = i64_left() | 0; + $1 = i64toi32_i32$HIGH_BITS; + $2 = $0; + $3 = $1; + $1 = i64_right() | 0; + $0 = i64toi32_i32$HIGH_BITS; + $4 = $1; + $1 = $0; + $0 = $3; return get() | 0 | 0; } function $87() { - var i64toi32_i32$0 = 0, $0 = 0, i64toi32_i32$1 = 0, $1 = 0; + var $0 = 0, $1 = 0, $2 = 0, $3 = 0; reset(); - $0 = i32_left() | 0; - i64toi32_i32$0 = i64_right() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $1 = i64toi32_i32$0; - i64toi32_i32$0 = $0; - HEAP32[i64toi32_i32$0 >> 2] = $1; - HEAP32[(i64toi32_i32$0 + 4 | 0) >> 2] = i64toi32_i32$1; + $1 = i32_left() | 0; + $0 = i64_right() | 0; + $2 = i64toi32_i32$HIGH_BITS; + $3 = $0; + $0 = $1; + HEAP32[$0 >> 2] = $3; + HEAP32[($0 + 4 | 0) >> 2] = $2; return get() | 0 | 0; } @@ -982,53 +886,47 @@ function asmFunc(global, env, buffer) { } function $91() { - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, $0 = 0, $0$hi = 0, $1 = 0, $1$hi = 0; + var $0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0; reset(); - i64toi32_i32$0 = i64_left() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$1 = i64_right() | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $1 = i64toi32_i32$1; - $1$hi = i64toi32_i32$0; - i64toi32_i32$0 = $0$hi; - i64toi32_i32$1 = $1$hi; - i64_dummy($0 | 0, i64toi32_i32$0 | 0, $1 | 0, i64toi32_i32$1 | 0); + $0 = i64_left() | 0; + $1 = i64toi32_i32$HIGH_BITS; + $2 = $0; + $3 = $1; + $1 = i64_right() | 0; + $0 = i64toi32_i32$HIGH_BITS; + $4 = $1; + $1 = $0; + $0 = $3; + i64_dummy($2 | 0, $0 | 0, $4 | 0, $1 | 0); return get() | 0 | 0; } function $92() { - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, $0 = 0, $0$hi = 0, $1 = 0, $1$hi = 0; + var $0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0; reset(); - i64toi32_i32$0 = i64_left() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$1 = i64_right() | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $1 = i64toi32_i32$1; - $1$hi = i64toi32_i32$0; - i64toi32_i32$0 = $0$hi; - i64toi32_i32$1 = $1$hi; - FUNCTION_TABLE[i64_callee() | 0]($0, i64toi32_i32$0, $1, i64toi32_i32$1) | 0; + $0 = i64_left() | 0; + $1 = i64toi32_i32$HIGH_BITS; + $2 = $0; + $3 = $1; + $1 = i64_right() | 0; + $0 = i64toi32_i32$HIGH_BITS; + $4 = $1; + $1 = $0; + $0 = $3; + FUNCTION_TABLE[i64_callee() | 0]($2, $0, $4, $1) | 0; return get() | 0 | 0; } function $93() { - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, $0 = 0, $0$hi = 0, $1 = 0, $1$hi = 0, i64toi32_i32$4 = 0; + var $0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0; reset(); - i64toi32_i32$0 = i64_left() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$1 = i64_right() | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $1 = i64toi32_i32$1; - $1$hi = i64toi32_i32$0; - i64toi32_i32$4 = i64_bool() | 0; - i64toi32_i32$0 = $0$hi; - i64toi32_i32$1 = $1$hi; + $0 = i64_left() | 0; + $1 = i64toi32_i32$HIGH_BITS; + $2 = $0; + $3 = $1; + $1 = i64_right() | 0; + $0 = i64toi32_i32$HIGH_BITS; + $4 = i64_bool() | 0; return get() | 0 | 0; } @@ -1162,31 +1060,29 @@ function asmFunc(global, env, buffer) { } function $115() { - var i64toi32_i32$0 = 0, i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $2 = 0, $2$hi = 0, $5 = 0, $5$hi = 0; + var $0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0; reset(); wasm2js_scratch_store_f64(+(+f64_left())); - i64toi32_i32$0 = wasm2js_scratch_load_i32(1 | 0) | 0; - i64toi32_i32$2 = wasm2js_scratch_load_i32(0 | 0) | 0; - i64toi32_i32$1 = 2147483647; - i64toi32_i32$3 = -1; - i64toi32_i32$1 = i64toi32_i32$0 & i64toi32_i32$1 | 0; - $2 = i64toi32_i32$2 & i64toi32_i32$3 | 0; - $2$hi = i64toi32_i32$1; + $0 = wasm2js_scratch_load_i32(1 | 0) | 0; + $1 = wasm2js_scratch_load_i32(0 | 0) | 0; + $2 = 2147483647; + $3 = -1; + $2 = $0 & $2 | 0; + $4 = $1 & $3 | 0; + $5 = $2; wasm2js_scratch_store_f64(+(+f64_right())); - i64toi32_i32$1 = wasm2js_scratch_load_i32(1 | 0) | 0; - i64toi32_i32$0 = wasm2js_scratch_load_i32(0 | 0) | 0; - i64toi32_i32$2 = -2147483648; - i64toi32_i32$3 = 0; - i64toi32_i32$2 = i64toi32_i32$1 & i64toi32_i32$2 | 0; - $5 = i64toi32_i32$0 & i64toi32_i32$3 | 0; - $5$hi = i64toi32_i32$2; - i64toi32_i32$2 = $2$hi; - i64toi32_i32$1 = $2; - i64toi32_i32$0 = $5$hi; - i64toi32_i32$3 = $5; - i64toi32_i32$0 = i64toi32_i32$2 | i64toi32_i32$0 | 0; - wasm2js_scratch_store_i32(0 | 0, i64toi32_i32$1 | i64toi32_i32$3 | 0 | 0); - wasm2js_scratch_store_i32(1 | 0, i64toi32_i32$0 | 0); + $2 = wasm2js_scratch_load_i32(1 | 0) | 0; + $0 = wasm2js_scratch_load_i32(0 | 0) | 0; + $1 = -2147483648; + $3 = 0; + $1 = $2 & $1 | 0; + $3 = $0 & $3 | 0; + $0 = $1; + $1 = $5; + $2 = $4; + $0 = $1 | $0 | 0; + wasm2js_scratch_store_i32(0 | 0, $2 | $3 | 0 | 0); + wasm2js_scratch_store_i32(1 | 0, $0 | 0); +wasm2js_scratch_load_f64(); return get() | 0 | 0; } @@ -1267,26 +1163,25 @@ function asmFunc(global, env, buffer) { } function $128() { - var $3 = 0; + var $0 = 0; + reset(); + $0 = i32_left() | 0; block : { - reset(); - $3 = i32_left() | 0; if ((i32_right() | 0) & 0 | 0) { break block } - $3 = get() | 0; + $0 = get() | 0; } - return $3 | 0; + return $0 | 0; } function $129() { - var $2 = 0, $3 = 0, $4 = 0; + var $0 = 0, $1 = 0; + reset(); a : { - reset(); b : { - $2 = i32_left() | 0; - $3 = $2; - $4 = $2; + $0 = i32_left() | 0; + $1 = $0; switch (i32_right() | 0 | 0) { case 0: break a; @@ -1294,383 +1189,312 @@ function asmFunc(global, env, buffer) { break b; }; } - $3 = get() | 0; + $1 = get() | 0; } - return $3 | 0; + return $1 | 0; } function legalfunc$wasm2js_scratch_load_i64() { - var i64toi32_i32$0 = 0, i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $8 = 0, $1 = 0, $1$hi = 0, $4$hi = 0; - i64toi32_i32$0 = 0; - $1 = legalimport$wasm2js_scratch_load_i64() | 0; - $1$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = getTempRet0() | 0; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0; + $0 = 0; + $5 = legalimport$wasm2js_scratch_load_i64() | 0; + $6 = $0; + $0 = 0; + $1 = getTempRet0() | 0; + $2 = 32; + $3 = $2 & 31 | 0; + if (32 >>> 0 <= ($2 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $8 = 0; + $4 = $1 << $3 | 0; + $2 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $8 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $4 = ((1 << $3 | 0) - 1 | 0) & ($1 >>> (32 - $3 | 0) | 0) | 0 | ($0 << $3 | 0) | 0; + $2 = $1 << $3 | 0; } } - $4$hi = i64toi32_i32$1; - i64toi32_i32$1 = $1$hi; - i64toi32_i32$0 = $1; - i64toi32_i32$2 = $4$hi; - i64toi32_i32$3 = $8; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - i64toi32_i32$0 = i64toi32_i32$0 | i64toi32_i32$3 | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$2; - return i64toi32_i32$0 | 0; - } - - function legalfunc$wasm2js_scratch_store_i64($0, $0$hi) { + $1 = $4; + $4 = $6; + $0 = $5; + $1 = $4 | $1 | 0; + $0 = $0 | $2 | 0; + i64toi32_i32$HIGH_BITS = $1; + return $0 | 0; + } + + function legalfunc$wasm2js_scratch_store_i64($0, $1) { $0 = $0 | 0; - $0$hi = $0$hi | 0; - var i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $8 = 0, $2 = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $0$hi; - $2 = $0; - i64toi32_i32$2 = $0; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = 0; - $8 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + $1 = $1 | 0; + var $2 = 0, $3 = 0, $4 = 0; + $4 = $0; + $3 = 32; + $2 = $3 & 31 | 0; + if (32 >>> 0 <= ($3 & 63 | 0) >>> 0) { + $0 = $1 >>> $2 | 0 } else { - { - i64toi32_i32$1 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $8 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $0 = (((1 << $2 | 0) - 1 | 0) & $1 | 0) << (32 - $2 | 0) | 0 | ($0 >>> $2 | 0) | 0 } - legalimport$wasm2js_scratch_store_i64($2 | 0, $8 | 0); - } - - function _ZN17compiler_builtins3int3mul3Mul3mul17h070e9a1c69faec5bE(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; - var i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, var$2 = 0, i64toi32_i32$2 = 0, i64toi32_i32$3 = 0, var$3 = 0, var$4 = 0, var$5 = 0, $21 = 0, $22 = 0, var$6 = 0, $24 = 0, $17 = 0, $18 = 0, $23 = 0, $29 = 0, $45_1 = 0, $56$hi = 0, $62$hi = 0; - i64toi32_i32$0 = var$1$hi; - var$2 = var$1; - var$4 = var$2 >>> 16 | 0; - i64toi32_i32$0 = var$0$hi; - var$3 = var$0; - var$5 = var$3 >>> 16 | 0; - $17 = Math_imul(var$4, var$5); - $18 = var$2; - i64toi32_i32$2 = var$3; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = 0; - $21 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + legalimport$wasm2js_scratch_store_i64($4 | 0, $0 | 0); + } + + function _ZN17compiler_builtins3int3mul3Mul3mul17h070e9a1c69faec5bE($0, $1, $2, $3) { + $0 = $0 | 0; + $1 = $1 | 0; + $2 = $2 | 0; + $3 = $3 | 0; + var $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $10 = 0, $11 = 0; + $5 = $2; + $9 = $5 >>> 16 | 0; + $10 = $0 >>> 16 | 0; + $11 = Math_imul($9, $10); + $8 = $5; + $6 = $0; + $7 = 32; + $4 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { + $1 = $1 >>> $4 | 0 } else { - { - i64toi32_i32$1 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $21 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $1 = (((1 << $4 | 0) - 1 | 0) & $1 | 0) << (32 - $4 | 0) | 0 | ($6 >>> $4 | 0) | 0 } - $23 = $17 + Math_imul($18, $21) | 0; - i64toi32_i32$1 = var$1$hi; - i64toi32_i32$0 = var$1; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $22 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + $6 = $11 + Math_imul($8, $1) | 0; + $1 = $2; + $7 = 32; + $4 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { + $1 = $3 >>> $4 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $22 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$0 >>> i64toi32_i32$4 | 0) | 0; - } + $1 = (((1 << $4 | 0) - 1 | 0) & $3 | 0) << (32 - $4 | 0) | 0 | ($1 >>> $4 | 0) | 0 } - $29 = $23 + Math_imul($22, var$3) | 0; - var$2 = var$2 & 65535 | 0; - var$3 = var$3 & 65535 | 0; - var$6 = Math_imul(var$2, var$3); - var$2 = (var$6 >>> 16 | 0) + Math_imul(var$2, var$5) | 0; - $45_1 = $29 + (var$2 >>> 16 | 0) | 0; - var$2 = (var$2 & 65535 | 0) + Math_imul(var$4, var$3) | 0; - i64toi32_i32$2 = 0; - i64toi32_i32$1 = $45_1 + (var$2 >>> 16 | 0) | 0; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + $1 = $6 + Math_imul($1, $0) | 0; + $5 = $5 & 65535 | 0; + $0 = $0 & 65535 | 0; + $8 = Math_imul($5, $0); + $5 = ($8 >>> 16 | 0) + Math_imul($5, $10) | 0; + $1 = $1 + ($5 >>> 16 | 0) | 0; + $5 = ($5 & 65535 | 0) + Math_imul($9, $0) | 0; + $6 = 0; + $3 = $1 + ($5 >>> 16 | 0) | 0; + $7 = 32; + $4 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$0 = i64toi32_i32$1 << i64toi32_i32$4 | 0; - $24 = 0; + $1 = $3 << $4 | 0; + $6 = 0; } } else { { - i64toi32_i32$0 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$1 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$2 << i64toi32_i32$4 | 0) | 0; - $24 = i64toi32_i32$1 << i64toi32_i32$4 | 0; + $1 = ((1 << $4 | 0) - 1 | 0) & ($3 >>> (32 - $4 | 0) | 0) | 0 | ($6 << $4 | 0) | 0; + $6 = $3 << $4 | 0; } } - $56$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - $62$hi = i64toi32_i32$0; - i64toi32_i32$0 = $56$hi; - i64toi32_i32$2 = $24; - i64toi32_i32$1 = $62$hi; - i64toi32_i32$3 = var$2 << 16 | 0 | (var$6 & 65535 | 0) | 0; - i64toi32_i32$1 = i64toi32_i32$0 | i64toi32_i32$1 | 0; - i64toi32_i32$2 = i64toi32_i32$2 | i64toi32_i32$3 | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$2 | 0; - } - - function _ZN17compiler_builtins3int4sdiv3Div3div17he78fc483e41d7ec7E(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; - var i64toi32_i32$1 = 0, i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, i64toi32_i32$0 = 0, i64toi32_i32$5 = 0, var$2 = 0, var$2$hi = 0, i64toi32_i32$6 = 0, $21 = 0, $22 = 0, $23 = 0, $7$hi = 0, $9 = 0, $9$hi = 0, $14$hi = 0, $16$hi = 0, $17 = 0, $17$hi = 0, $23$hi = 0; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$2 = var$0; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 63; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + $0 = $1; + $1 = 0; + $2 = $1; + $1 = $0; + $3 = $2; + $7 = $5 << 16 | 0 | ($8 & 65535 | 0) | 0; + $3 = $1 | $3 | 0; + $6 = $6 | $7 | 0; + i64toi32_i32$HIGH_BITS = $3; + return $6 | 0; + } + + function _ZN17compiler_builtins3int4sdiv3Div3div17he78fc483e41d7ec7E($0, $1, $2, $3) { + $0 = $0 | 0; + $1 = $1 | 0; + $2 = $2 | 0; + $3 = $3 | 0; + var $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $10 = 0, $11 = 0, $12 = 0; + $8 = $1; + $7 = $0; + $6 = 63; + $5 = $6 & 31 | 0; + if (32 >>> 0 <= ($6 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$0 >> 31 | 0; - $21 = i64toi32_i32$0 >> i64toi32_i32$4 | 0; + $4 = $8 >> 31 | 0; + $5 = $8 >> $5 | 0; } } else { { - i64toi32_i32$1 = i64toi32_i32$0 >> i64toi32_i32$4 | 0; - $21 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; + $4 = $8 >> $5 | 0; + $5 = (((1 << $5 | 0) - 1 | 0) & $8 | 0) << (32 - $5 | 0) | 0 | ($7 >>> $5 | 0) | 0; } } - var$2 = $21; - var$2$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$1 = var$2$hi; - i64toi32_i32$0 = var$2; - i64toi32_i32$2 = var$0$hi; - i64toi32_i32$3 = var$0; - i64toi32_i32$2 = i64toi32_i32$1 ^ i64toi32_i32$2 | 0; - $7$hi = i64toi32_i32$2; - i64toi32_i32$2 = i64toi32_i32$1; - i64toi32_i32$2 = $7$hi; - i64toi32_i32$1 = i64toi32_i32$0 ^ i64toi32_i32$3 | 0; - i64toi32_i32$0 = var$2$hi; - i64toi32_i32$3 = var$2; - i64toi32_i32$4 = i64toi32_i32$1 - i64toi32_i32$3 | 0; - i64toi32_i32$6 = i64toi32_i32$1 >>> 0 < i64toi32_i32$3 >>> 0; - i64toi32_i32$5 = i64toi32_i32$6 + i64toi32_i32$0 | 0; - i64toi32_i32$5 = i64toi32_i32$2 - i64toi32_i32$5 | 0; - $9 = i64toi32_i32$4; - $9$hi = i64toi32_i32$5; - i64toi32_i32$5 = var$1$hi; - i64toi32_i32$2 = var$1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 63; - i64toi32_i32$0 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + $10 = $4; + $4 = $10; + $8 = $5; + $7 = $1; + $6 = $0; + $7 = $4 ^ $7 | 0; + $4 = $8 ^ $6 | 0; + $8 = $10; + $6 = $5; + $5 = $4 - $6 | 0; + $10 = $4 >>> 0 < $6 >>> 0; + $9 = $10 + $8 | 0; + $9 = $7 - $9 | 0; + $11 = $5; + $12 = $9; + $9 = $3; + $7 = $2; + $6 = 63; + $8 = $6 & 31 | 0; + if (32 >>> 0 <= ($6 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$5 >> 31 | 0; - $22 = i64toi32_i32$5 >> i64toi32_i32$0 | 0; + $4 = $9 >> 31 | 0; + $5 = $9 >> $8 | 0; } } else { { - i64toi32_i32$1 = i64toi32_i32$5 >> i64toi32_i32$0 | 0; - $22 = (((1 << i64toi32_i32$0 | 0) - 1 | 0) & i64toi32_i32$5 | 0) << (32 - i64toi32_i32$0 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$0 | 0) | 0; + $4 = $9 >> $8 | 0; + $5 = (((1 << $8 | 0) - 1 | 0) & $9 | 0) << (32 - $8 | 0) | 0 | ($7 >>> $8 | 0) | 0; } } - var$2 = $22; - var$2$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = var$2$hi; - i64toi32_i32$5 = var$2; - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$3 = var$1; - i64toi32_i32$2 = i64toi32_i32$1 ^ i64toi32_i32$2 | 0; - $14$hi = i64toi32_i32$2; - i64toi32_i32$2 = i64toi32_i32$1; - i64toi32_i32$2 = $14$hi; - i64toi32_i32$1 = i64toi32_i32$5 ^ i64toi32_i32$3 | 0; - i64toi32_i32$5 = var$2$hi; - i64toi32_i32$3 = var$2; - i64toi32_i32$0 = i64toi32_i32$1 - i64toi32_i32$3 | 0; - i64toi32_i32$6 = i64toi32_i32$1 >>> 0 < i64toi32_i32$3 >>> 0; - i64toi32_i32$4 = i64toi32_i32$6 + i64toi32_i32$5 | 0; - i64toi32_i32$4 = i64toi32_i32$2 - i64toi32_i32$4 | 0; - $16$hi = i64toi32_i32$4; - i64toi32_i32$4 = $9$hi; - i64toi32_i32$1 = $16$hi; - i64toi32_i32$1 = __wasm_i64_udiv($9 | 0, i64toi32_i32$4 | 0, i64toi32_i32$0 | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$4 = i64toi32_i32$HIGH_BITS; - $17 = i64toi32_i32$1; - $17$hi = i64toi32_i32$4; - i64toi32_i32$4 = var$1$hi; - i64toi32_i32$4 = var$0$hi; - i64toi32_i32$4 = var$1$hi; - i64toi32_i32$2 = var$1; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$3 = var$0; - i64toi32_i32$1 = i64toi32_i32$4 ^ i64toi32_i32$1 | 0; - i64toi32_i32$4 = i64toi32_i32$2 ^ i64toi32_i32$3 | 0; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 63; - i64toi32_i32$5 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + $10 = $4; + $4 = $10; + $9 = $5; + $7 = $3; + $6 = $2; + $7 = $4 ^ $7 | 0; + $4 = $9 ^ $6 | 0; + $9 = $10; + $6 = $5; + $8 = $4 - $6 | 0; + $10 = $4 >>> 0 < $6 >>> 0; + $5 = $10 + $9 | 0; + $5 = $7 - $5 | 0; + $4 = $5; + $5 = $12; + $4 = __wasm_i64_udiv($11 | 0, $5 | 0, $8 | 0, $4 | 0) | 0; + $5 = i64toi32_i32$HIGH_BITS; + $10 = $4; + $8 = $5; + $5 = $3; + $7 = $2; + $4 = $1; + $6 = $0; + $4 = $5 ^ $4 | 0; + $5 = $7 ^ $6 | 0; + $6 = 63; + $9 = $6 & 31 | 0; + if (32 >>> 0 <= ($6 & 63 | 0) >>> 0) { { - i64toi32_i32$2 = i64toi32_i32$1 >> 31 | 0; - $23 = i64toi32_i32$1 >> i64toi32_i32$5 | 0; + $7 = $4 >> 31 | 0; + $0 = $4 >> $9 | 0; } } else { { - i64toi32_i32$2 = i64toi32_i32$1 >> i64toi32_i32$5 | 0; - $23 = (((1 << i64toi32_i32$5 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$5 | 0) | 0 | (i64toi32_i32$4 >>> i64toi32_i32$5 | 0) | 0; + $7 = $4 >> $9 | 0; + $0 = (((1 << $9 | 0) - 1 | 0) & $4 | 0) << (32 - $9 | 0) | 0 | ($5 >>> $9 | 0) | 0; } } - var$0 = $23; - var$0$hi = i64toi32_i32$2; - i64toi32_i32$2 = $17$hi; - i64toi32_i32$1 = $17; - i64toi32_i32$4 = var$0$hi; - i64toi32_i32$3 = var$0; - i64toi32_i32$4 = i64toi32_i32$2 ^ i64toi32_i32$4 | 0; - $23$hi = i64toi32_i32$4; - i64toi32_i32$4 = var$0$hi; - i64toi32_i32$4 = $23$hi; - i64toi32_i32$2 = i64toi32_i32$1 ^ i64toi32_i32$3 | 0; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$5 = i64toi32_i32$2 - i64toi32_i32$3 | 0; - i64toi32_i32$6 = i64toi32_i32$2 >>> 0 < i64toi32_i32$3 >>> 0; - i64toi32_i32$0 = i64toi32_i32$6 + i64toi32_i32$1 | 0; - i64toi32_i32$0 = i64toi32_i32$4 - i64toi32_i32$0 | 0; - i64toi32_i32$2 = i64toi32_i32$5; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$2 | 0; - } - - function _ZN17compiler_builtins3int4sdiv3Mod4mod_17h2cbb7bbf36e41d68E(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; - var i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$2 = 0, i64toi32_i32$0 = 0, i64toi32_i32$3 = 0, i64toi32_i32$5 = 0, var$2$hi = 0, i64toi32_i32$6 = 0, var$2 = 0, $20 = 0, $21 = 0, $7$hi = 0, $9 = 0, $9$hi = 0, $14$hi = 0, $16$hi = 0, $17$hi = 0, $19$hi = 0; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$2 = var$0; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 63; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + $1 = $7; + $7 = $8; + $4 = $10; + $5 = $1; + $6 = $0; + $5 = $7 ^ $5 | 0; + $7 = $4 ^ $6 | 0; + $4 = $1; + $9 = $7 - $6 | 0; + $10 = $7 >>> 0 < $6 >>> 0; + $8 = $10 + $4 | 0; + $8 = $5 - $8 | 0; + $7 = $9; + i64toi32_i32$HIGH_BITS = $8; + return $7 | 0; + } + + function _ZN17compiler_builtins3int4sdiv3Mod4mod_17h2cbb7bbf36e41d68E($0, $1, $2, $3) { + $0 = $0 | 0; + $1 = $1 | 0; + $2 = $2 | 0; + $3 = $3 | 0; + var $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0; + $5 = $1; + $8 = $0; + $7 = 63; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$0 >> 31 | 0; - $20 = i64toi32_i32$0 >> i64toi32_i32$4 | 0; + $4 = $5 >> 31 | 0; + $11 = $5 >> $6 | 0; } } else { { - i64toi32_i32$1 = i64toi32_i32$0 >> i64toi32_i32$4 | 0; - $20 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; + $4 = $5 >> $6 | 0; + $11 = (((1 << $6 | 0) - 1 | 0) & $5 | 0) << (32 - $6 | 0) | 0 | ($8 >>> $6 | 0) | 0; } } - var$2 = $20; - var$2$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$1 = var$2$hi; - i64toi32_i32$0 = var$2; - i64toi32_i32$2 = var$0$hi; - i64toi32_i32$3 = var$0; - i64toi32_i32$2 = i64toi32_i32$1 ^ i64toi32_i32$2 | 0; - $7$hi = i64toi32_i32$2; - i64toi32_i32$2 = i64toi32_i32$1; - i64toi32_i32$2 = $7$hi; - i64toi32_i32$1 = i64toi32_i32$0 ^ i64toi32_i32$3 | 0; - i64toi32_i32$0 = var$2$hi; - i64toi32_i32$3 = var$2; - i64toi32_i32$4 = i64toi32_i32$1 - i64toi32_i32$3 | 0; - i64toi32_i32$6 = i64toi32_i32$1 >>> 0 < i64toi32_i32$3 >>> 0; - i64toi32_i32$5 = i64toi32_i32$6 + i64toi32_i32$0 | 0; - i64toi32_i32$5 = i64toi32_i32$2 - i64toi32_i32$5 | 0; - $9 = i64toi32_i32$4; - $9$hi = i64toi32_i32$5; - i64toi32_i32$5 = var$1$hi; - i64toi32_i32$2 = var$1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 63; - i64toi32_i32$0 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + $10 = $4; + $4 = $10; + $5 = $11; + $8 = $1; + $7 = $0; + $8 = $4 ^ $8 | 0; + $4 = $5 ^ $7 | 0; + $5 = $10; + $7 = $11; + $6 = $4 - $7 | 0; + $0 = $4 >>> 0 < $7 >>> 0; + $9 = $0 + $5 | 0; + $9 = $8 - $9 | 0; + $12 = $6; + $13 = $9; + $9 = $3; + $8 = $2; + $7 = 63; + $5 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$5 >> 31 | 0; - $21 = i64toi32_i32$5 >> i64toi32_i32$0 | 0; + $4 = $9 >> 31 | 0; + $0 = $9 >> $5 | 0; } } else { { - i64toi32_i32$1 = i64toi32_i32$5 >> i64toi32_i32$0 | 0; - $21 = (((1 << i64toi32_i32$0 | 0) - 1 | 0) & i64toi32_i32$5 | 0) << (32 - i64toi32_i32$0 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$0 | 0) | 0; + $4 = $9 >> $5 | 0; + $0 = (((1 << $5 | 0) - 1 | 0) & $9 | 0) << (32 - $5 | 0) | 0 | ($8 >>> $5 | 0) | 0; } } - var$0 = $21; - var$0$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$5 = var$0; - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$3 = var$1; - i64toi32_i32$2 = i64toi32_i32$1 ^ i64toi32_i32$2 | 0; - $14$hi = i64toi32_i32$2; - i64toi32_i32$2 = i64toi32_i32$1; - i64toi32_i32$2 = $14$hi; - i64toi32_i32$1 = i64toi32_i32$5 ^ i64toi32_i32$3 | 0; - i64toi32_i32$5 = var$0$hi; - i64toi32_i32$3 = var$0; - i64toi32_i32$0 = i64toi32_i32$1 - i64toi32_i32$3 | 0; - i64toi32_i32$6 = i64toi32_i32$1 >>> 0 < i64toi32_i32$3 >>> 0; - i64toi32_i32$4 = i64toi32_i32$6 + i64toi32_i32$5 | 0; - i64toi32_i32$4 = i64toi32_i32$2 - i64toi32_i32$4 | 0; - $16$hi = i64toi32_i32$4; - i64toi32_i32$4 = $9$hi; - i64toi32_i32$1 = $16$hi; - i64toi32_i32$1 = __wasm_i64_urem($9 | 0, i64toi32_i32$4 | 0, i64toi32_i32$0 | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$4 = i64toi32_i32$HIGH_BITS; - $17$hi = i64toi32_i32$4; - i64toi32_i32$4 = var$2$hi; - i64toi32_i32$4 = $17$hi; - i64toi32_i32$2 = i64toi32_i32$1; - i64toi32_i32$1 = var$2$hi; - i64toi32_i32$3 = var$2; - i64toi32_i32$1 = i64toi32_i32$4 ^ i64toi32_i32$1 | 0; - $19$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$2$hi; - i64toi32_i32$1 = $19$hi; - i64toi32_i32$4 = i64toi32_i32$2 ^ i64toi32_i32$3 | 0; - i64toi32_i32$2 = var$2$hi; - i64toi32_i32$5 = i64toi32_i32$4 - i64toi32_i32$3 | 0; - i64toi32_i32$6 = i64toi32_i32$4 >>> 0 < i64toi32_i32$3 >>> 0; - i64toi32_i32$0 = i64toi32_i32$6 + i64toi32_i32$2 | 0; - i64toi32_i32$0 = i64toi32_i32$1 - i64toi32_i32$0 | 0; - i64toi32_i32$4 = i64toi32_i32$5; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$4 | 0; - } - - function _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$3 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, i64toi32_i32$5 = 0, var$2 = 0, var$3 = 0, var$4 = 0, var$5 = 0, var$5$hi = 0, var$6 = 0, var$6$hi = 0, i64toi32_i32$6 = 0, $37_1 = 0, $38_1 = 0, $39_1 = 0, $40_1 = 0, $41_1 = 0, $42_1 = 0, $43_1 = 0, $44_1 = 0, var$8$hi = 0, $45_1 = 0, $46_1 = 0, $47_1 = 0, $48_1 = 0, var$7$hi = 0, $49_1 = 0, $63$hi = 0, $65_1 = 0, $65$hi = 0, $120$hi = 0, $129$hi = 0, $134$hi = 0, var$8 = 0, $140 = 0, $140$hi = 0, $142$hi = 0, $144 = 0, $144$hi = 0, $151 = 0, $151$hi = 0, $154$hi = 0, var$7 = 0, $165$hi = 0; + $1 = $4; + $4 = $1; + $9 = $0; + $8 = $3; + $7 = $2; + $8 = $4 ^ $8 | 0; + $4 = $9 ^ $7 | 0; + $9 = $1; + $7 = $0; + $5 = $4 - $7 | 0; + $0 = $4 >>> 0 < $7 >>> 0; + $6 = $0 + $9 | 0; + $6 = $8 - $6 | 0; + $4 = $6; + $6 = $13; + $4 = __wasm_i64_urem($12 | 0, $6 | 0, $5 | 0, $4 | 0) | 0; + $6 = i64toi32_i32$HIGH_BITS; + $8 = $4; + $4 = $10; + $7 = $11; + $4 = $6 ^ $4 | 0; + $6 = $8 ^ $7 | 0; + $8 = $10; + $9 = $6 - $7 | 0; + $0 = $6 >>> 0 < $7 >>> 0; + $5 = $0 + $8 | 0; + $5 = $4 - $5 | 0; + $6 = $9; + i64toi32_i32$HIGH_BITS = $5; + return $6 | 0; + } + + function _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E($0, $1, $2, $3) { + $0 = $0 | 0; + $1 = $1 | 0; + $2 = $2 | 0; + $3 = $3 | 0; + var $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $20 = 0; label$1 : { label$2 : { label$3 : { @@ -1681,394 +1505,335 @@ function asmFunc(global, env, buffer) { label$8 : { label$9 : { label$11 : { - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$2 = var$0; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = 0; - $37_1 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + $7 = $1; + $5 = $0; + $4 = 32; + $6 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { + $10 = $7 >>> $6 | 0 } else { - { - i64toi32_i32$1 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $37_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $10 = (((1 << $6 | 0) - 1 | 0) & $7 | 0) << (32 - $6 | 0) | 0 | ($5 >>> $6 | 0) | 0 } - var$2 = $37_1; - if (var$2) { + if ($10) { { - i64toi32_i32$1 = var$1$hi; - var$3 = var$1; - if (!var$3) { + $8 = $2; + if (!$8) { break label$11 } - i64toi32_i32$1 = var$1$hi; - i64toi32_i32$0 = var$1; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $38_1 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + $9 = $3; + $7 = $2; + $4 = 32; + $6 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { + $11 = $9 >>> $6 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $38_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$0 >>> i64toi32_i32$4 | 0) | 0; - } + $11 = (((1 << $6 | 0) - 1 | 0) & $9 | 0) << (32 - $6 | 0) | 0 | ($7 >>> $6 | 0) | 0 } - var$4 = $38_1; - if (!var$4) { + if (!$11) { break label$9 } - var$2 = Math_clz32(var$4) - Math_clz32(var$2) | 0; - if (var$2 >>> 0 <= 31 >>> 0) { + $10 = Math_clz32($11) - Math_clz32($10) | 0; + if ($10 >>> 0 <= 31 >>> 0) { break label$8 } break label$2; } } - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$1 = var$1; - i64toi32_i32$0 = 1; - i64toi32_i32$3 = 0; - if (i64toi32_i32$2 >>> 0 > i64toi32_i32$0 >>> 0 | ((i64toi32_i32$2 | 0) == (i64toi32_i32$0 | 0) & i64toi32_i32$1 >>> 0 >= i64toi32_i32$3 >>> 0 | 0) | 0) { + $5 = $3; + $9 = $2; + $7 = 1; + $4 = 0; + if ($5 >>> 0 > $7 >>> 0 | (($5 | 0) == ($7 | 0) & $9 >>> 0 >= $4 >>> 0 | 0) | 0) { break label$2 } - i64toi32_i32$1 = var$0$hi; - var$2 = var$0; - i64toi32_i32$1 = var$1$hi; - var$3 = var$1; - var$2 = (var$2 >>> 0) / (var$3 >>> 0) | 0; - i64toi32_i32$1 = 0; - legalfunc$wasm2js_scratch_store_i64(var$0 - Math_imul(var$2, var$3) | 0 | 0, i64toi32_i32$1 | 0); - i64toi32_i32$1 = 0; - i64toi32_i32$2 = var$2; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$2 | 0; + $10 = $0; + $8 = $2; + $10 = ($10 >>> 0) / ($8 >>> 0) | 0; + $9 = 0; + legalfunc$wasm2js_scratch_store_i64($0 - Math_imul($10, $8) | 0 | 0, $9 | 0); + $9 = 0; + $5 = $10; + i64toi32_i32$HIGH_BITS = $9; + return $5 | 0; } - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$3 = var$1; - i64toi32_i32$1 = 0; - i64toi32_i32$0 = 32; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = 0; - $39_1 = i64toi32_i32$2 >>> i64toi32_i32$4 | 0; - } + $5 = $3; + $4 = $2; + $7 = 32; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { + $8 = $5 >>> $6 | 0 } else { - { - i64toi32_i32$1 = i64toi32_i32$2 >>> i64toi32_i32$4 | 0; - $39_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$2 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$3 >>> i64toi32_i32$4 | 0) | 0; - } + $8 = (((1 << $6 | 0) - 1 | 0) & $5 | 0) << (32 - $6 | 0) | 0 | ($4 >>> $6 | 0) | 0 } - var$3 = $39_1; - i64toi32_i32$1 = var$0$hi; - if (!var$0) { + if (!$0) { break label$7 } - if (!var$3) { + if (!$8) { break label$6 } - var$4 = var$3 + -1 | 0; - if (var$4 & var$3 | 0) { + $11 = $8 + -1 | 0; + if ($11 & $8 | 0) { break label$6 } - i64toi32_i32$1 = 0; - i64toi32_i32$2 = var$4 & var$2 | 0; - i64toi32_i32$3 = 0; - i64toi32_i32$0 = 32; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $9 = 0; + $5 = $11 & $10 | 0; + $7 = 32; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$3 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $40_1 = 0; + $4 = $5 << $6 | 0; + $3 = 0; } } else { { - i64toi32_i32$3 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$1 << i64toi32_i32$4 | 0) | 0; - $40_1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $4 = ((1 << $6 | 0) - 1 | 0) & ($5 >>> (32 - $6 | 0) | 0) | 0 | ($9 << $6 | 0) | 0; + $3 = $5 << $6 | 0; } } - $63$hi = i64toi32_i32$3; - i64toi32_i32$3 = var$0$hi; - i64toi32_i32$1 = var$0; - i64toi32_i32$2 = 0; - i64toi32_i32$0 = -1; - i64toi32_i32$2 = i64toi32_i32$3 & i64toi32_i32$2 | 0; - $65_1 = i64toi32_i32$1 & i64toi32_i32$0 | 0; - $65$hi = i64toi32_i32$2; - i64toi32_i32$2 = $63$hi; - i64toi32_i32$3 = $40_1; - i64toi32_i32$1 = $65$hi; - i64toi32_i32$0 = $65_1; - i64toi32_i32$1 = i64toi32_i32$2 | i64toi32_i32$1 | 0; - legalfunc$wasm2js_scratch_store_i64(i64toi32_i32$3 | i64toi32_i32$0 | 0 | 0, i64toi32_i32$1 | 0); - i64toi32_i32$1 = 0; - i64toi32_i32$3 = var$2 >>> ((__wasm_ctz_i32(var$3 | 0) | 0) & 31 | 0) | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$3 | 0; + $2 = $4; + $4 = $1; + $9 = $0; + $5 = 0; + $7 = -1; + $5 = $4 & $5 | 0; + $7 = $9 & $7 | 0; + $9 = $5; + $5 = $2; + $4 = $3; + $9 = $5 | $9 | 0; + legalfunc$wasm2js_scratch_store_i64($4 | $7 | 0 | 0, $9 | 0); + $9 = 0; + $4 = $10 >>> ((__wasm_ctz_i32($8 | 0) | 0) & 31 | 0) | 0; + i64toi32_i32$HIGH_BITS = $9; + return $4 | 0; } - var$4 = var$3 + -1 | 0; - if (!(var$4 & var$3 | 0)) { + $11 = $8 + -1 | 0; + if (!($11 & $8 | 0)) { break label$5 } - var$2 = (Math_clz32(var$3) + 33 | 0) - Math_clz32(var$2) | 0; - var$3 = 0 - var$2 | 0; + $10 = (Math_clz32($8) + 33 | 0) - Math_clz32($10) | 0; + $8 = 0 - $10 | 0; break label$3; } - var$3 = 63 - var$2 | 0; - var$2 = var$2 + 1 | 0; + $8 = 63 - $10 | 0; + $10 = $10 + 1 | 0; break label$3; } - var$4 = (var$2 >>> 0) / (var$3 >>> 0) | 0; - i64toi32_i32$3 = 0; - i64toi32_i32$2 = var$2 - Math_imul(var$4, var$3) | 0; - i64toi32_i32$1 = 0; - i64toi32_i32$0 = 32; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $11 = ($10 >>> 0) / ($8 >>> 0) | 0; + $4 = 0; + $5 = $10 - Math_imul($11, $8) | 0; + $7 = 32; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $41_1 = 0; + $9 = $5 << $6 | 0; + $0 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$3 << i64toi32_i32$4 | 0) | 0; - $41_1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $9 = ((1 << $6 | 0) - 1 | 0) & ($5 >>> (32 - $6 | 0) | 0) | 0 | ($4 << $6 | 0) | 0; + $0 = $5 << $6 | 0; } } - legalfunc$wasm2js_scratch_store_i64($41_1 | 0, i64toi32_i32$1 | 0); - i64toi32_i32$1 = 0; - i64toi32_i32$2 = var$4; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$2 | 0; + legalfunc$wasm2js_scratch_store_i64($0 | 0, $9 | 0); + $9 = 0; + $5 = $11; + i64toi32_i32$HIGH_BITS = $9; + return $5 | 0; } - var$2 = Math_clz32(var$3) - Math_clz32(var$2) | 0; - if (var$2 >>> 0 < 31 >>> 0) { + $10 = Math_clz32($8) - Math_clz32($10) | 0; + if ($10 >>> 0 < 31 >>> 0) { break label$4 } break label$2; } - i64toi32_i32$2 = var$0$hi; - i64toi32_i32$2 = 0; - legalfunc$wasm2js_scratch_store_i64(var$4 & var$0 | 0 | 0, i64toi32_i32$2 | 0); - if ((var$3 | 0) == (1 | 0)) { + $5 = 0; + legalfunc$wasm2js_scratch_store_i64($11 & $0 | 0 | 0, $5 | 0); + if (($8 | 0) == (1 | 0)) { break label$1 } - i64toi32_i32$2 = var$0$hi; - i64toi32_i32$2 = 0; - $120$hi = i64toi32_i32$2; - i64toi32_i32$2 = var$0$hi; - i64toi32_i32$3 = var$0; - i64toi32_i32$1 = $120$hi; - i64toi32_i32$0 = __wasm_ctz_i32(var$3 | 0) | 0; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $5 = 0; + $9 = $5; + $5 = $1; + $4 = $0; + $7 = __wasm_ctz_i32($8 | 0) | 0; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = 0; - $42_1 = i64toi32_i32$2 >>> i64toi32_i32$4 | 0; + $9 = 0; + $4 = $5 >>> $6 | 0; } } else { { - i64toi32_i32$1 = i64toi32_i32$2 >>> i64toi32_i32$4 | 0; - $42_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$2 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$3 >>> i64toi32_i32$4 | 0) | 0; + $9 = $5 >>> $6 | 0; + $4 = (((1 << $6 | 0) - 1 | 0) & $5 | 0) << (32 - $6 | 0) | 0 | ($4 >>> $6 | 0) | 0; } } - i64toi32_i32$3 = $42_1; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$3 | 0; + i64toi32_i32$HIGH_BITS = $9; + return $4 | 0; } - var$3 = 63 - var$2 | 0; - var$2 = var$2 + 1 | 0; + $8 = 63 - $10 | 0; + $10 = $10 + 1 | 0; } - i64toi32_i32$3 = var$0$hi; - i64toi32_i32$3 = 0; - $129$hi = i64toi32_i32$3; - i64toi32_i32$3 = var$0$hi; - i64toi32_i32$2 = var$0; - i64toi32_i32$1 = $129$hi; - i64toi32_i32$0 = var$2 & 63 | 0; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $4 = 0; + $9 = $4; + $4 = $1; + $5 = $0; + $7 = $10 & 63 | 0; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = 0; - $43_1 = i64toi32_i32$3 >>> i64toi32_i32$4 | 0; + $9 = 0; + $13 = $4 >>> $6 | 0; } } else { { - i64toi32_i32$1 = i64toi32_i32$3 >>> i64toi32_i32$4 | 0; - $43_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$3 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; + $9 = $4 >>> $6 | 0; + $13 = (((1 << $6 | 0) - 1 | 0) & $4 | 0) << (32 - $6 | 0) | 0 | ($5 >>> $6 | 0) | 0; } } - var$5 = $43_1; - var$5$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$1 = 0; - $134$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$3 = var$0; - i64toi32_i32$2 = $134$hi; - i64toi32_i32$0 = var$3 & 63 | 0; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $11 = $9; + $9 = 0; + $5 = $9; + $9 = $1; + $4 = $0; + $7 = $8 & 63 | 0; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$2 = i64toi32_i32$3 << i64toi32_i32$4 | 0; - $44_1 = 0; + $5 = $4 << $6 | 0; + $0 = 0; } } else { { - i64toi32_i32$2 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$3 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$1 << i64toi32_i32$4 | 0) | 0; - $44_1 = i64toi32_i32$3 << i64toi32_i32$4 | 0; + $5 = ((1 << $6 | 0) - 1 | 0) & ($4 >>> (32 - $6 | 0) | 0) | 0 | ($9 << $6 | 0) | 0; + $0 = $4 << $6 | 0; } } - var$0 = $44_1; - var$0$hi = i64toi32_i32$2; + $1 = $5; label$13 : { - if (var$2) { + if ($10) { { - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$1 = var$1; - i64toi32_i32$3 = -1; - i64toi32_i32$0 = -1; - i64toi32_i32$4 = i64toi32_i32$1 + i64toi32_i32$0 | 0; - i64toi32_i32$5 = i64toi32_i32$2 + i64toi32_i32$3 | 0; - if (i64toi32_i32$4 >>> 0 < i64toi32_i32$0 >>> 0) { - i64toi32_i32$5 = i64toi32_i32$5 + 1 | 0 + $5 = $3; + $9 = $2; + $4 = -1; + $7 = -1; + $6 = $9 + $7 | 0; + $8 = $5 + $4 | 0; + if ($6 >>> 0 < $7 >>> 0) { + $8 = $8 + 1 | 0 } - var$8 = i64toi32_i32$4; - var$8$hi = i64toi32_i32$5; + $17 = $6; + $15 = $8; label$15 : while (1) { - i64toi32_i32$5 = var$5$hi; - i64toi32_i32$2 = var$5; - i64toi32_i32$1 = 0; - i64toi32_i32$0 = 1; - i64toi32_i32$3 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $8 = $11; + $5 = $13; + $7 = 1; + $4 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$3 | 0; - $45_1 = 0; + $9 = $5 << $4 | 0; + $12 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$3 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$3 | 0) | 0) | 0 | (i64toi32_i32$5 << i64toi32_i32$3 | 0) | 0; - $45_1 = i64toi32_i32$2 << i64toi32_i32$3 | 0; + $9 = ((1 << $4 | 0) - 1 | 0) & ($5 >>> (32 - $4 | 0) | 0) | 0 | ($8 << $4 | 0) | 0; + $12 = $5 << $4 | 0; } } - $140 = $45_1; - $140$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$5 = var$0; - i64toi32_i32$2 = 0; - i64toi32_i32$0 = 63; - i64toi32_i32$3 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $11 = $9; + $9 = $1; + $8 = $0; + $7 = 63; + $4 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$2 = 0; - $46_1 = i64toi32_i32$1 >>> i64toi32_i32$3 | 0; + $5 = 0; + $7 = $9 >>> $4 | 0; } } else { { - i64toi32_i32$2 = i64toi32_i32$1 >>> i64toi32_i32$3 | 0; - $46_1 = (((1 << i64toi32_i32$3 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$3 | 0) | 0 | (i64toi32_i32$5 >>> i64toi32_i32$3 | 0) | 0; + $5 = $9 >>> $4 | 0; + $7 = (((1 << $4 | 0) - 1 | 0) & $9 | 0) << (32 - $4 | 0) | 0 | ($8 >>> $4 | 0) | 0; } } - $142$hi = i64toi32_i32$2; - i64toi32_i32$2 = $140$hi; - i64toi32_i32$1 = $140; - i64toi32_i32$5 = $142$hi; - i64toi32_i32$0 = $46_1; - i64toi32_i32$5 = i64toi32_i32$2 | i64toi32_i32$5 | 0; - var$5 = i64toi32_i32$1 | i64toi32_i32$0 | 0; - var$5$hi = i64toi32_i32$5; - $144 = var$5; - $144$hi = i64toi32_i32$5; - i64toi32_i32$5 = var$8$hi; - i64toi32_i32$5 = var$5$hi; - i64toi32_i32$5 = var$8$hi; - i64toi32_i32$2 = var$8; - i64toi32_i32$1 = var$5$hi; - i64toi32_i32$0 = var$5; - i64toi32_i32$3 = i64toi32_i32$2 - i64toi32_i32$0 | 0; - i64toi32_i32$6 = i64toi32_i32$2 >>> 0 < i64toi32_i32$0 >>> 0; - i64toi32_i32$4 = i64toi32_i32$6 + i64toi32_i32$1 | 0; - i64toi32_i32$4 = i64toi32_i32$5 - i64toi32_i32$4 | 0; - i64toi32_i32$5 = i64toi32_i32$3; - i64toi32_i32$2 = 0; - i64toi32_i32$0 = 63; - i64toi32_i32$1 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $8 = $5; + $5 = $11; + $9 = $12; + $8 = $5 | $8 | 0; + $13 = $9 | $7 | 0; + $11 = $8; + $18 = $13; + $19 = $8; + $8 = $15; + $5 = $17; + $9 = $11; + $7 = $13; + $4 = $5 - $7 | 0; + $5 = $5 >>> 0 < $7 >>> 0; + $6 = $5 + $9 | 0; + $6 = $8 - $6 | 0; + $8 = $4; + $7 = 63; + $9 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$2 = i64toi32_i32$4 >> 31 | 0; - $47_1 = i64toi32_i32$4 >> i64toi32_i32$1 | 0; + $5 = $6 >> 31 | 0; + $14 = $6 >> $9 | 0; } } else { { - i64toi32_i32$2 = i64toi32_i32$4 >> i64toi32_i32$1 | 0; - $47_1 = (((1 << i64toi32_i32$1 | 0) - 1 | 0) & i64toi32_i32$4 | 0) << (32 - i64toi32_i32$1 | 0) | 0 | (i64toi32_i32$5 >>> i64toi32_i32$1 | 0) | 0; + $5 = $6 >> $9 | 0; + $14 = (((1 << $9 | 0) - 1 | 0) & $6 | 0) << (32 - $9 | 0) | 0 | ($8 >>> $9 | 0) | 0; } } - var$6 = $47_1; - var$6$hi = i64toi32_i32$2; - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$2 = var$6$hi; - i64toi32_i32$4 = var$6; - i64toi32_i32$5 = var$1$hi; - i64toi32_i32$0 = var$1; - i64toi32_i32$5 = i64toi32_i32$2 & i64toi32_i32$5 | 0; - $151 = i64toi32_i32$4 & i64toi32_i32$0 | 0; - $151$hi = i64toi32_i32$5; - i64toi32_i32$5 = $144$hi; - i64toi32_i32$2 = $144; - i64toi32_i32$4 = $151$hi; - i64toi32_i32$0 = $151; - i64toi32_i32$1 = i64toi32_i32$2 - i64toi32_i32$0 | 0; - i64toi32_i32$6 = i64toi32_i32$2 >>> 0 < i64toi32_i32$0 >>> 0; - i64toi32_i32$3 = i64toi32_i32$6 + i64toi32_i32$4 | 0; - i64toi32_i32$3 = i64toi32_i32$5 - i64toi32_i32$3 | 0; - var$5 = i64toi32_i32$1; - var$5$hi = i64toi32_i32$3; - i64toi32_i32$3 = var$0$hi; - i64toi32_i32$5 = var$0; - i64toi32_i32$2 = 0; - i64toi32_i32$0 = 1; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $12 = $5; + $5 = $12; + $6 = $14; + $8 = $3; + $7 = $2; + $8 = $5 & $8 | 0; + $7 = $6 & $7 | 0; + $6 = $8; + $8 = $19; + $5 = $18; + $9 = $5 - $7 | 0; + $5 = $5 >>> 0 < $7 >>> 0; + $4 = $5 + $6 | 0; + $4 = $8 - $4 | 0; + $13 = $9; + $11 = $4; + $4 = $1; + $8 = $0; + $7 = 1; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$2 = i64toi32_i32$5 << i64toi32_i32$4 | 0; - $48_1 = 0; + $5 = $8 << $6 | 0; + $4 = 0; } } else { { - i64toi32_i32$2 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$5 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$3 << i64toi32_i32$4 | 0) | 0; - $48_1 = i64toi32_i32$5 << i64toi32_i32$4 | 0; + $5 = ((1 << $6 | 0) - 1 | 0) & ($8 >>> (32 - $6 | 0) | 0) | 0 | ($4 << $6 | 0) | 0; + $4 = $8 << $6 | 0; } } - $154$hi = i64toi32_i32$2; - i64toi32_i32$2 = var$7$hi; - i64toi32_i32$2 = $154$hi; - i64toi32_i32$3 = $48_1; - i64toi32_i32$5 = var$7$hi; - i64toi32_i32$0 = var$7; - i64toi32_i32$5 = i64toi32_i32$2 | i64toi32_i32$5 | 0; - var$0 = i64toi32_i32$3 | i64toi32_i32$0 | 0; - var$0$hi = i64toi32_i32$5; - i64toi32_i32$5 = var$6$hi; - i64toi32_i32$2 = var$6; - i64toi32_i32$3 = 0; - i64toi32_i32$0 = 1; - i64toi32_i32$3 = i64toi32_i32$5 & i64toi32_i32$3 | 0; - var$6 = i64toi32_i32$2 & i64toi32_i32$0 | 0; - var$6$hi = i64toi32_i32$3; - var$7 = var$6; - var$7$hi = i64toi32_i32$3; - var$2 = var$2 + -1 | 0; - if (var$2) { + $8 = $16; + $7 = $20; + $8 = $5 | $8 | 0; + $0 = $4 | $7 | 0; + $1 = $8; + $8 = $12; + $5 = $14; + $4 = 0; + $7 = 1; + $4 = $8 & $4 | 0; + $14 = $5 & $7 | 0; + $12 = $4; + $20 = $14; + $16 = $4; + $10 = $10 + -1 | 0; + if ($10) { continue label$15 } break label$15; @@ -2077,133 +1842,102 @@ function asmFunc(global, env, buffer) { } } } - i64toi32_i32$3 = var$5$hi; - legalfunc$wasm2js_scratch_store_i64(var$5 | 0, i64toi32_i32$3 | 0); - i64toi32_i32$3 = var$0$hi; - i64toi32_i32$5 = var$0; - i64toi32_i32$2 = 0; - i64toi32_i32$0 = 1; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $4 = $11; + legalfunc$wasm2js_scratch_store_i64($13 | 0, $4 | 0); + $4 = $1; + $8 = $0; + $7 = 1; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$2 = i64toi32_i32$5 << i64toi32_i32$4 | 0; - $49_1 = 0; + $5 = $8 << $6 | 0; + $4 = 0; } } else { { - i64toi32_i32$2 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$5 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$3 << i64toi32_i32$4 | 0) | 0; - $49_1 = i64toi32_i32$5 << i64toi32_i32$4 | 0; + $5 = ((1 << $6 | 0) - 1 | 0) & ($8 >>> (32 - $6 | 0) | 0) | 0 | ($4 << $6 | 0) | 0; + $4 = $8 << $6 | 0; } } - $165$hi = i64toi32_i32$2; - i64toi32_i32$2 = var$6$hi; - i64toi32_i32$2 = $165$hi; - i64toi32_i32$3 = $49_1; - i64toi32_i32$5 = var$6$hi; - i64toi32_i32$0 = var$6; - i64toi32_i32$5 = i64toi32_i32$2 | i64toi32_i32$5 | 0; - i64toi32_i32$3 = i64toi32_i32$3 | i64toi32_i32$0 | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$5; - return i64toi32_i32$3 | 0; + $8 = $12; + $7 = $14; + $8 = $5 | $8 | 0; + $4 = $4 | $7 | 0; + i64toi32_i32$HIGH_BITS = $8; + return $4 | 0; } - i64toi32_i32$3 = var$0$hi; - legalfunc$wasm2js_scratch_store_i64(var$0 | 0, i64toi32_i32$3 | 0); - i64toi32_i32$3 = 0; - var$0 = 0; - var$0$hi = i64toi32_i32$3; + $4 = $1; + legalfunc$wasm2js_scratch_store_i64($0 | 0, $4 | 0); + $4 = 0; + $0 = 0; + $1 = $4; } - i64toi32_i32$3 = var$0$hi; - i64toi32_i32$5 = var$0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$3; - return i64toi32_i32$5 | 0; - } - - function __wasm_i64_mul(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$0 = var$1$hi; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = _ZN17compiler_builtins3int3mul3Mul3mul17h070e9a1c69faec5bE(var$0 | 0, i64toi32_i32$0 | 0, var$1 | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; - } - - function __wasm_i64_sdiv(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$0 = var$1$hi; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = _ZN17compiler_builtins3int4sdiv3Div3div17he78fc483e41d7ec7E(var$0 | 0, i64toi32_i32$0 | 0, var$1 | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; - } - - function __wasm_i64_srem(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$0 = var$1$hi; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = _ZN17compiler_builtins3int4sdiv3Mod4mod_17h2cbb7bbf36e41d68E(var$0 | 0, i64toi32_i32$0 | 0, var$1 | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; - } - - function __wasm_i64_udiv(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$0 = var$1$hi; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E(var$0 | 0, i64toi32_i32$0 | 0, var$1 | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; - } - - function __wasm_i64_urem(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$0 = var$1$hi; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E(var$0 | 0, i64toi32_i32$0 | 0, var$1 | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$0 = legalfunc$wasm2js_scratch_load_i64() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$0 | 0; - } - - function __wasm_ctz_i32(var$0) { - var$0 = var$0 | 0; - if (var$0) { - return 31 - Math_clz32((var$0 + -1 | 0) ^ var$0 | 0) | 0 | 0 + $4 = $1; + $8 = $0; + i64toi32_i32$HIGH_BITS = $4; + return $8 | 0; + } + + function __wasm_i64_mul($0, $1, $2, $3) { + $0 = $0 | 0; + $1 = $1 | 0; + $2 = $2 | 0; + $3 = $3 | 0; + $3 = _ZN17compiler_builtins3int3mul3Mul3mul17h070e9a1c69faec5bE($0 | 0, $1 | 0, $2 | 0, $3 | 0) | 0; + $1 = i64toi32_i32$HIGH_BITS; + i64toi32_i32$HIGH_BITS = $1; + return $3 | 0; + } + + function __wasm_i64_sdiv($0, $1, $2, $3) { + $0 = $0 | 0; + $1 = $1 | 0; + $2 = $2 | 0; + $3 = $3 | 0; + $3 = _ZN17compiler_builtins3int4sdiv3Div3div17he78fc483e41d7ec7E($0 | 0, $1 | 0, $2 | 0, $3 | 0) | 0; + $1 = i64toi32_i32$HIGH_BITS; + i64toi32_i32$HIGH_BITS = $1; + return $3 | 0; + } + + function __wasm_i64_srem($0, $1, $2, $3) { + $0 = $0 | 0; + $1 = $1 | 0; + $2 = $2 | 0; + $3 = $3 | 0; + $3 = _ZN17compiler_builtins3int4sdiv3Mod4mod_17h2cbb7bbf36e41d68E($0 | 0, $1 | 0, $2 | 0, $3 | 0) | 0; + $1 = i64toi32_i32$HIGH_BITS; + i64toi32_i32$HIGH_BITS = $1; + return $3 | 0; + } + + function __wasm_i64_udiv($0, $1, $2, $3) { + $0 = $0 | 0; + $1 = $1 | 0; + $2 = $2 | 0; + $3 = $3 | 0; + $3 = _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E($0 | 0, $1 | 0, $2 | 0, $3 | 0) | 0; + $1 = i64toi32_i32$HIGH_BITS; + i64toi32_i32$HIGH_BITS = $1; + return $3 | 0; + } + + function __wasm_i64_urem($0, $1, $2, $3) { + $0 = $0 | 0; + $1 = $1 | 0; + $2 = $2 | 0; + $3 = $3 | 0; + $3 = _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E($0 | 0, $1 | 0, $2 | 0, $3 | 0) | 0; + $1 = legalfunc$wasm2js_scratch_load_i64() | 0; + $3 = i64toi32_i32$HIGH_BITS; + i64toi32_i32$HIGH_BITS = $3; + return $1 | 0; + } + + function __wasm_ctz_i32($0) { + $0 = $0 | 0; + if ($0) { + return 31 - Math_clz32(($0 + -1 | 0) ^ $0 | 0) | 0 | 0 } return 32 | 0; } diff --git a/test/wasm2js/loop.2asm.js b/test/wasm2js/loop.2asm.js index 6ba7086ea..44f59c91e 100644 --- a/test/wasm2js/loop.2asm.js +++ b/test/wasm2js/loop.2asm.js @@ -33,13 +33,10 @@ function asmFunc(global, env, buffer) { } function $2() { - var $0 = 0; - $0 = 7; - return $0 | 0; + return 7 | 0; } function $3() { - var $2_1 = 0; dummy(); dummy(); dummy(); @@ -47,77 +44,40 @@ function asmFunc(global, env, buffer) { dummy(); dummy(); dummy(); - $2_1 = 8; - return $2_1 | 0; + return 8 | 0; } function $4() { - var $2_1 = 0; dummy(); dummy(); - $2_1 = 9; - return $2_1 | 0; + return 9 | 0; } function $5() { - var $2_1 = 0, $6_1 = 0, $10_1 = 0, $14_1 = 0, $18_1 = 0, $22 = 0, $26 = 0, $30 = 0, $34 = 0, $38 = 0, $42 = 0, $46 = 0, $50 = 0, $54 = 0, $58 = 0, $62 = 0, $66 = 0, $70 = 0, $74 = 0, $78 = 0, $82 = 0; dummy(); - $2_1 = 150; - $6_1 = $2_1; - $10_1 = $6_1; - $14_1 = $10_1; - $18_1 = $14_1; - $22 = $18_1; - $26 = $22; - $30 = $26; - $34 = $30; - $38 = $34; - $42 = $38; - $46 = $42; - $50 = $46; - $54 = $50; - $58 = $54; - $62 = $58; - $66 = $62; - $70 = $66; - $74 = $70; - $78 = $74; - $82 = $78; - return $82 | 0; + return 150 | 0; } function $6() { - var $2_1 = 0; dummy(); - $2_1 = 13; - return __wasm_ctz_i32($2_1 | 0) | 0 | 0; + return __wasm_ctz_i32(13 | 0) | 0 | 0; } function $7() { - var $2_1 = 0, $3_1 = 0, $6_1 = 0; dummy(); - $2_1 = 3; - $3_1 = $2_1; dummy(); - $6_1 = 4; - return Math_imul($3_1, $6_1) | 0; + return Math_imul(3, 4) | 0; } function $8() { - var $2_1 = 0; dummy(); - $2_1 = 13; - return !$2_1 | 0; + return !13 | 0; } function $9() { - var $2_1 = Math_fround(0), $3_1 = Math_fround(0), $6_1 = Math_fround(0); dummy(); - $2_1 = Math_fround(3.0); - $3_1 = $2_1; dummy(); - $6_1 = Math_fround(3.0); - return $3_1 > $6_1 | 0; + return Math_fround(3.0) > Math_fround(3.0) | 0; } function $10() { @@ -146,7 +106,7 @@ function asmFunc(global, env, buffer) { } function $11() { - var $0 = 0, $1_1 = 0, $3_1 = 0; + var $0 = 0; block : { loop_in : while (1) { $0 = 18; @@ -157,7 +117,7 @@ function asmFunc(global, env, buffer) { } function $12() { - var $0 = 0, $5_1 = 0, $7_1 = 0; + var $0 = 0; block : { $0 = 18; break block; @@ -166,46 +126,39 @@ function asmFunc(global, env, buffer) { } function $13() { - var $0 = 0, $1_1 = 0, $2_1 = 0, $5_1 = 0, $6_1 = 0, $9_1 = 0, $10_1 = 0, $12_1 = 0, $17_1 = 0, $18_1 = 0, $21 = 0, $22 = 0; + var $0 = 0, $1_1 = 0; $0 = 0; - $1_1 = $0; block : { - $2_1 = 1; + $1_1 = 1; break block; } - $0 = $1_1 + $2_1 | 0; - $5_1 = $0; + $0 = $0 + $1_1 | 0; block55 : { - $6_1 = 2; + $1_1 = 2; break block55; } - $0 = $5_1 + $6_1 | 0; - $9_1 = $0; + $0 = $0 + $1_1 | 0; block60 : { - $10_1 = 4; + $1_1 = 4; break block60; } - $12_1 = $10_1; - $0 = $9_1 + $12_1 | 0; - $17_1 = $0; + $0 = $0 + $1_1 | 0; block62 : { - $18_1 = 8; + $1_1 = 8; break block62; } - $0 = $17_1 + $18_1 | 0; - $21 = $0; + $0 = $0 + $1_1 | 0; block64 : { - $22 = 16; + $1_1 = 16; break block64; } - $0 = $21 + $22 | 0; + $0 = $0 + $1_1 | 0; return $0 | 0; } function $14() { - var $0 = 0, $1_1 = 0, $2_1 = 0, $3_1 = 0, $5_1 = 0; + var $0 = 0; $0 = 0; - $1_1 = $0; loop_in : while (1) continue loop_in; } @@ -221,80 +174,71 @@ function asmFunc(global, env, buffer) { return ($0 | 0) == (-14 | 0) | 0; } - function $16($0, $0$hi) { + function $16($0, $1_1) { $0 = $0 | 0; - $0$hi = $0$hi | 0; - var i64toi32_i32$0 = 0, $1$hi = 0, i64toi32_i32$5 = 0, i64toi32_i32$1 = 0, $1_1 = 0, i64toi32_i32$3 = 0; - i64toi32_i32$0 = 0; - $1_1 = 1; - $1$hi = i64toi32_i32$0; + $1_1 = $1_1 | 0; + var $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0, $6_1 = 0; + $2_1 = 0; + $4_1 = 1; + $3_1 = $2_1; block : { loop_in : while (1) { - i64toi32_i32$0 = $0$hi; - if (!($0 | i64toi32_i32$0 | 0)) { + $2_1 = $1_1; + if (!($0 | $2_1 | 0)) { break block } - i64toi32_i32$0 = $0$hi; - i64toi32_i32$0 = $1$hi; - i64toi32_i32$0 = $0$hi; - i64toi32_i32$1 = $1$hi; - i64toi32_i32$1 = __wasm_i64_mul($0 | 0, i64toi32_i32$0 | 0, $1_1 | 0, $1$hi | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $1_1 = i64toi32_i32$1; - $1$hi = i64toi32_i32$0; - i64toi32_i32$0 = $0$hi; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 1; - i64toi32_i32$5 = ($0 >>> 0 < i64toi32_i32$3 >>> 0) + i64toi32_i32$1 | 0; - i64toi32_i32$5 = i64toi32_i32$0 - i64toi32_i32$5 | 0; - $0 = $0 - i64toi32_i32$3 | 0; - $0$hi = i64toi32_i32$5; + $2_1 = $1_1; + $5_1 = __wasm_i64_mul($0 | 0, $2_1 | 0, $4_1 | 0, $3_1 | 0) | 0; + $2_1 = i64toi32_i32$HIGH_BITS; + $4_1 = $5_1; + $3_1 = $2_1; + $2_1 = $1_1; + $5_1 = 0; + $6_1 = 1; + $1_1 = ($0 >>> 0 < $6_1 >>> 0) + $5_1 | 0; + $1_1 = $2_1 - $1_1 | 0; + $0 = $0 - $6_1 | 0; continue loop_in; }; } - i64toi32_i32$5 = $1$hi; - i64toi32_i32$HIGH_BITS = i64toi32_i32$5; - return $1_1 | 0; + $1_1 = $3_1; + i64toi32_i32$HIGH_BITS = $1_1; + return $4_1 | 0; } - function $17($0, $0$hi) { + function $17($0, $1_1) { $0 = $0 | 0; - $0$hi = $0$hi | 0; - var i64toi32_i32$0 = 0, $1$hi = 0, $2$hi = 0, i64toi32_i32$1 = 0, $2_1 = 0, i64toi32_i32$5 = 0, $1_1 = 0, i64toi32_i32$4 = 0; - i64toi32_i32$0 = 0; - $1_1 = 1; - $1$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - $2_1 = 2; - $2$hi = i64toi32_i32$0; + $1_1 = $1_1 | 0; + var $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0, $6_1 = 0, $7_1 = 0; + $2_1 = 0; + $7_1 = 1; + $4_1 = $2_1; + $2_1 = 0; + $5_1 = 2; + $3_1 = $2_1; block : { loop_in : while (1) { - i64toi32_i32$0 = $2$hi; - i64toi32_i32$0 = $0$hi; - i64toi32_i32$0 = $2$hi; - i64toi32_i32$1 = $0$hi; - if (i64toi32_i32$0 >>> 0 > i64toi32_i32$1 >>> 0 | ((i64toi32_i32$0 | 0) == (i64toi32_i32$1 | 0) & $2_1 >>> 0 > $0 >>> 0 | 0) | 0) { + $2_1 = $3_1; + $6_1 = $1_1; + if ($2_1 >>> 0 > $6_1 >>> 0 | (($2_1 | 0) == ($6_1 | 0) & $5_1 >>> 0 > $0 >>> 0 | 0) | 0) { break block } - i64toi32_i32$0 = $2$hi; - i64toi32_i32$0 = __wasm_i64_mul($1_1 | 0, $1$hi | 0, $2_1 | 0, i64toi32_i32$0 | 0) | 0; - $1_1 = i64toi32_i32$0; - $1$hi = i64toi32_i32$HIGH_BITS; - i64toi32_i32$0 = 0; - i64toi32_i32$1 = 1; - i64toi32_i32$4 = $2_1 + i64toi32_i32$1 | 0; - i64toi32_i32$5 = $2$hi + i64toi32_i32$0 | 0; - if (i64toi32_i32$4 >>> 0 < i64toi32_i32$1 >>> 0) { - i64toi32_i32$5 = i64toi32_i32$5 + 1 | 0 + $2_1 = $3_1; + $2_1 = __wasm_i64_mul($7_1 | 0, $4_1 | 0, $5_1 | 0, $2_1 | 0) | 0; + $7_1 = $2_1; + $4_1 = i64toi32_i32$HIGH_BITS; + $2_1 = 0; + $6_1 = 1; + $5_1 = $5_1 + $6_1 | 0; + $3_1 = $3_1 + $2_1 | 0; + if ($5_1 >>> 0 < $6_1 >>> 0) { + $3_1 = $3_1 + 1 | 0 } - $2_1 = i64toi32_i32$4; - $2$hi = i64toi32_i32$5; continue loop_in; }; } - i64toi32_i32$5 = $1$hi; - i64toi32_i32$HIGH_BITS = $1$hi; - return $1_1 | 0; + i64toi32_i32$HIGH_BITS = $4_1; + return $7_1 | 0; } function $18($0, $1_1) { @@ -331,213 +275,164 @@ function asmFunc(global, env, buffer) { function legalstub$16($0, $1_1) { $0 = $0 | 0; $1_1 = $1_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12_1 = 0, $13_1 = 0, $4_1 = 0, $4$hi = 0, $7$hi = 0, $2_1 = 0, $2$hi = 0; - i64toi32_i32$0 = 0; - $4_1 = $0; - $4$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0, $6_1 = 0; + $3_1 = 0; + $5_1 = $0; + $6_1 = $3_1; + $3_1 = 0; + $4_1 = 32; + $2_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $12_1 = 0; + $0 = $1_1 << $2_1 | 0; + $4_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $12_1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $0 = ((1 << $2_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $2_1 | 0) | 0) | 0 | ($3_1 << $2_1 | 0) | 0; + $4_1 = $1_1 << $2_1 | 0; } } - $7$hi = i64toi32_i32$1; - i64toi32_i32$1 = $4$hi; - i64toi32_i32$0 = $4_1; - i64toi32_i32$2 = $7$hi; - i64toi32_i32$3 = $12_1; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - i64toi32_i32$2 = $16(i64toi32_i32$0 | i64toi32_i32$3 | 0 | 0, i64toi32_i32$2 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $2_1 = i64toi32_i32$2; - $2$hi = i64toi32_i32$0; - i64toi32_i32$1 = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $13_1 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + $1_1 = $0; + $0 = $6_1; + $3_1 = $5_1; + $1_1 = $0 | $1_1 | 0; + $1_1 = $16($3_1 | $4_1 | 0 | 0, $1_1 | 0) | 0; + $3_1 = i64toi32_i32$HIGH_BITS; + $6_1 = $1_1; + $5_1 = $3_1; + $0 = $1_1; + $4_1 = 32; + $2_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { + $0 = $3_1 >>> $2_1 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $13_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$1 >>> i64toi32_i32$4 | 0) | 0; - } + $0 = (((1 << $2_1 | 0) - 1 | 0) & $3_1 | 0) << (32 - $2_1 | 0) | 0 | ($0 >>> $2_1 | 0) | 0 } - setTempRet0($13_1 | 0); - i64toi32_i32$2 = $2$hi; - return $2_1 | 0; + setTempRet0($0 | 0); + return $6_1 | 0; } function legalstub$17($0, $1_1) { $0 = $0 | 0; $1_1 = $1_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12_1 = 0, $13_1 = 0, $4_1 = 0, $4$hi = 0, $7$hi = 0, $2_1 = 0, $2$hi = 0; - i64toi32_i32$0 = 0; - $4_1 = $0; - $4$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0, $6_1 = 0; + $3_1 = 0; + $5_1 = $0; + $6_1 = $3_1; + $3_1 = 0; + $4_1 = 32; + $2_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $12_1 = 0; + $0 = $1_1 << $2_1 | 0; + $4_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $12_1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $0 = ((1 << $2_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $2_1 | 0) | 0) | 0 | ($3_1 << $2_1 | 0) | 0; + $4_1 = $1_1 << $2_1 | 0; } } - $7$hi = i64toi32_i32$1; - i64toi32_i32$1 = $4$hi; - i64toi32_i32$0 = $4_1; - i64toi32_i32$2 = $7$hi; - i64toi32_i32$3 = $12_1; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - i64toi32_i32$2 = $17(i64toi32_i32$0 | i64toi32_i32$3 | 0 | 0, i64toi32_i32$2 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $2_1 = i64toi32_i32$2; - $2$hi = i64toi32_i32$0; - i64toi32_i32$1 = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $13_1 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + $1_1 = $0; + $0 = $6_1; + $3_1 = $5_1; + $1_1 = $0 | $1_1 | 0; + $1_1 = $17($3_1 | $4_1 | 0 | 0, $1_1 | 0) | 0; + $3_1 = i64toi32_i32$HIGH_BITS; + $6_1 = $1_1; + $5_1 = $3_1; + $0 = $1_1; + $4_1 = 32; + $2_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { + $0 = $3_1 >>> $2_1 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $13_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$1 >>> i64toi32_i32$4 | 0) | 0; - } + $0 = (((1 << $2_1 | 0) - 1 | 0) & $3_1 | 0) << (32 - $2_1 | 0) | 0 | ($0 >>> $2_1 | 0) | 0 } - setTempRet0($13_1 | 0); - i64toi32_i32$2 = $2$hi; - return $2_1 | 0; + setTempRet0($0 | 0); + return $6_1 | 0; } - function _ZN17compiler_builtins3int3mul3Mul3mul17h070e9a1c69faec5bE(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; - var i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, var$2 = 0, i64toi32_i32$2 = 0, i64toi32_i32$3 = 0, var$3 = 0, var$4 = 0, var$5 = 0, $21 = 0, $22 = 0, var$6 = 0, $24 = 0, $17_1 = 0, $18_1 = 0, $23 = 0, $29 = 0, $45 = 0, $56$hi = 0, $62$hi = 0; - i64toi32_i32$0 = var$1$hi; - var$2 = var$1; - var$4 = var$2 >>> 16 | 0; - i64toi32_i32$0 = var$0$hi; - var$3 = var$0; - var$5 = var$3 >>> 16 | 0; - $17_1 = Math_imul(var$4, var$5); - $18_1 = var$2; - i64toi32_i32$2 = var$3; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = 0; - $21 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + function _ZN17compiler_builtins3int3mul3Mul3mul17h070e9a1c69faec5bE($0, $1_1, $2_1, $3_1) { + $0 = $0 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + var $4_1 = 0, $5_1 = 0, $6_1 = 0, $7_1 = 0, $8_1 = 0, $9_1 = 0, $10_1 = 0, $11_1 = 0; + $5_1 = $2_1; + $9_1 = $5_1 >>> 16 | 0; + $10_1 = $0 >>> 16 | 0; + $11_1 = Math_imul($9_1, $10_1); + $8_1 = $5_1; + $6_1 = $0; + $7_1 = 32; + $4_1 = $7_1 & 31 | 0; + if (32 >>> 0 <= ($7_1 & 63 | 0) >>> 0) { + $1_1 = $1_1 >>> $4_1 | 0 } else { - { - i64toi32_i32$1 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $21 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $1_1 = (((1 << $4_1 | 0) - 1 | 0) & $1_1 | 0) << (32 - $4_1 | 0) | 0 | ($6_1 >>> $4_1 | 0) | 0 } - $23 = $17_1 + Math_imul($18_1, $21) | 0; - i64toi32_i32$1 = var$1$hi; - i64toi32_i32$0 = var$1; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $22 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + $6_1 = $11_1 + Math_imul($8_1, $1_1) | 0; + $1_1 = $2_1; + $7_1 = 32; + $4_1 = $7_1 & 31 | 0; + if (32 >>> 0 <= ($7_1 & 63 | 0) >>> 0) { + $1_1 = $3_1 >>> $4_1 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $22 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$0 >>> i64toi32_i32$4 | 0) | 0; - } + $1_1 = (((1 << $4_1 | 0) - 1 | 0) & $3_1 | 0) << (32 - $4_1 | 0) | 0 | ($1_1 >>> $4_1 | 0) | 0 } - $29 = $23 + Math_imul($22, var$3) | 0; - var$2 = var$2 & 65535 | 0; - var$3 = var$3 & 65535 | 0; - var$6 = Math_imul(var$2, var$3); - var$2 = (var$6 >>> 16 | 0) + Math_imul(var$2, var$5) | 0; - $45 = $29 + (var$2 >>> 16 | 0) | 0; - var$2 = (var$2 & 65535 | 0) + Math_imul(var$4, var$3) | 0; - i64toi32_i32$2 = 0; - i64toi32_i32$1 = $45 + (var$2 >>> 16 | 0) | 0; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + $1_1 = $6_1 + Math_imul($1_1, $0) | 0; + $5_1 = $5_1 & 65535 | 0; + $0 = $0 & 65535 | 0; + $8_1 = Math_imul($5_1, $0); + $5_1 = ($8_1 >>> 16 | 0) + Math_imul($5_1, $10_1) | 0; + $1_1 = $1_1 + ($5_1 >>> 16 | 0) | 0; + $5_1 = ($5_1 & 65535 | 0) + Math_imul($9_1, $0) | 0; + $6_1 = 0; + $3_1 = $1_1 + ($5_1 >>> 16 | 0) | 0; + $7_1 = 32; + $4_1 = $7_1 & 31 | 0; + if (32 >>> 0 <= ($7_1 & 63 | 0) >>> 0) { { - i64toi32_i32$0 = i64toi32_i32$1 << i64toi32_i32$4 | 0; - $24 = 0; + $1_1 = $3_1 << $4_1 | 0; + $6_1 = 0; } } else { { - i64toi32_i32$0 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$1 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$2 << i64toi32_i32$4 | 0) | 0; - $24 = i64toi32_i32$1 << i64toi32_i32$4 | 0; + $1_1 = ((1 << $4_1 | 0) - 1 | 0) & ($3_1 >>> (32 - $4_1 | 0) | 0) | 0 | ($6_1 << $4_1 | 0) | 0; + $6_1 = $3_1 << $4_1 | 0; } } - $56$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - $62$hi = i64toi32_i32$0; - i64toi32_i32$0 = $56$hi; - i64toi32_i32$2 = $24; - i64toi32_i32$1 = $62$hi; - i64toi32_i32$3 = var$2 << 16 | 0 | (var$6 & 65535 | 0) | 0; - i64toi32_i32$1 = i64toi32_i32$0 | i64toi32_i32$1 | 0; - i64toi32_i32$2 = i64toi32_i32$2 | i64toi32_i32$3 | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$2 | 0; + $0 = $1_1; + $1_1 = 0; + $2_1 = $1_1; + $1_1 = $0; + $3_1 = $2_1; + $7_1 = $5_1 << 16 | 0 | ($8_1 & 65535 | 0) | 0; + $3_1 = $1_1 | $3_1 | 0; + $6_1 = $6_1 | $7_1 | 0; + i64toi32_i32$HIGH_BITS = $3_1; + return $6_1 | 0; } - function __wasm_ctz_i32(var$0) { - var$0 = var$0 | 0; - if (var$0) { - return 31 - Math_clz32((var$0 + -1 | 0) ^ var$0 | 0) | 0 | 0 + function __wasm_ctz_i32($0) { + $0 = $0 | 0; + if ($0) { + return 31 - Math_clz32(($0 + -1 | 0) ^ $0 | 0) | 0 | 0 } return 32 | 0; } - function __wasm_i64_mul(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$0 = var$1$hi; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = _ZN17compiler_builtins3int3mul3Mul3mul17h070e9a1c69faec5bE(var$0 | 0, i64toi32_i32$0 | 0, var$1 | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + function __wasm_i64_mul($0, $1_1, $2_1, $3_1) { + $0 = $0 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + $3_1 = _ZN17compiler_builtins3int3mul3Mul3mul17h070e9a1c69faec5bE($0 | 0, $1_1 | 0, $2_1 | 0, $3_1 | 0) | 0; + $1_1 = i64toi32_i32$HIGH_BITS; + i64toi32_i32$HIGH_BITS = $1_1; + return $3_1 | 0; } var FUNCTION_TABLE = []; diff --git a/test/wasm2js/reinterpret.2asm.js b/test/wasm2js/reinterpret.2asm.js index d53c50bab..269fcf65b 100644 --- a/test/wasm2js/reinterpret.2asm.js +++ b/test/wasm2js/reinterpret.2asm.js @@ -56,51 +56,43 @@ function asmFunc(global, env, buffer) { return ((wasm2js_scratch_store_f32((wasm2js_scratch_store_i32(0, $0), wasm2js_scratch_load_f32())), wasm2js_scratch_load_i32(0)) | 0) == ($0 | 0) | 0; } - function $2($0, $0$hi) { + function $2($0, $1_1) { $0 = $0 | 0; - $0$hi = $0$hi | 0; - var i64toi32_i32$0 = 0, $3$hi = 0; - i64toi32_i32$0 = $0$hi; + $1_1 = $1_1 | 0; + var $2_1 = 0; + $2_1 = $1_1; wasm2js_scratch_store_i32(0 | 0, $0 | 0); - wasm2js_scratch_store_i32(1 | 0, i64toi32_i32$0 | 0); + wasm2js_scratch_store_i32(1 | 0, $2_1 | 0); wasm2js_scratch_store_f64(+(+wasm2js_scratch_load_f64())); - i64toi32_i32$0 = wasm2js_scratch_load_i32(1 | 0) | 0; - $3$hi = i64toi32_i32$0; - i64toi32_i32$0 = $0$hi; - i64toi32_i32$0 = $3$hi; - return (wasm2js_scratch_load_i32(0 | 0) | 0 | 0) == ($0 | 0) & (i64toi32_i32$0 | 0) == ($0$hi | 0) | 0 | 0; + $2_1 = wasm2js_scratch_load_i32(1 | 0) | 0; + return (wasm2js_scratch_load_i32(0 | 0) | 0 | 0) == ($0 | 0) & ($2_1 | 0) == ($1_1 | 0) | 0 | 0; } function legalstub$2($0, $1_1) { $0 = $0 | 0; $1_1 = $1_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $10 = 0, $3 = 0, $3$hi = 0, $6$hi = 0; - i64toi32_i32$0 = 0; - $3 = $0; - $3$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $2_1 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0; + $2_1 = 0; + $6 = $2_1; + $2_1 = 0; + $3 = 32; + $4 = $3 & 31 | 0; + if (32 >>> 0 <= ($3 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $10 = 0; + $5 = $1_1 << $4 | 0; + $3 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $10 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $5 = ((1 << $4 | 0) - 1 | 0) & ($1_1 >>> (32 - $4 | 0) | 0) | 0 | ($2_1 << $4 | 0) | 0; + $3 = $1_1 << $4 | 0; } } - $6$hi = i64toi32_i32$1; - i64toi32_i32$1 = $3$hi; - i64toi32_i32$0 = $3; - i64toi32_i32$2 = $6$hi; - i64toi32_i32$3 = $10; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - return $2(i64toi32_i32$0 | i64toi32_i32$3 | 0 | 0, i64toi32_i32$2 | 0) | 0 | 0; + $1_1 = $5; + $5 = $6; + $2_1 = $0; + $1_1 = $5 | $1_1 | 0; + return $2($2_1 | $3 | 0 | 0, $1_1 | 0) | 0 | 0; } var FUNCTION_TABLE = []; diff --git a/test/wasm2js/reinterpret.2asm.js.opt b/test/wasm2js/reinterpret.2asm.js.opt index 39b236ce6..1d200861e 100644 --- a/test/wasm2js/reinterpret.2asm.js.opt +++ b/test/wasm2js/reinterpret.2asm.js.opt @@ -68,22 +68,22 @@ function asmFunc(global, env, buffer) { } function legalstub$2($0, $1_1) { - var $2_1 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0; - $5 = $0; + var $2_1 = 0, $3 = 0, $4 = 0, $5 = 0; + $4 = $0; $3 = 32; $0 = $3 & 31; if (32 >>> 0 <= $3 >>> 0) { { $2_1 = $1_1 << $0; - $4 = 0; + $0 = 0; } } else { { $2_1 = (1 << $0) - 1 & $1_1 >>> 32 - $0 | $2_1 << $0; - $4 = $1_1 << $0; + $0 = $1_1 << $0; } } - return $2($5 | $4, $2_1 | $6); + return $2($4 | $0, $2_1 | $5); } var FUNCTION_TABLE = []; diff --git a/test/wasm2js/select.2asm.js b/test/wasm2js/select.2asm.js index a13fac28b..c28b210b8 100644 --- a/test/wasm2js/select.2asm.js +++ b/test/wasm2js/select.2asm.js @@ -24,53 +24,46 @@ function asmFunc(global, env, buffer) { var infinity = global.Infinity; var setTempRet0 = env.setTempRet0; var i64toi32_i32$HIGH_BITS = 0; - function $0(lhs, rhs, cond) { - lhs = lhs | 0; - rhs = rhs | 0; - cond = cond | 0; - return (cond ? lhs : rhs) | 0; + function $0($0_1, $1_1, $2_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + return ($2_1 ? $0_1 : $1_1) | 0; } - function $1(lhs, lhs$hi, rhs, rhs$hi, cond) { - lhs = lhs | 0; - lhs$hi = lhs$hi | 0; - rhs = rhs | 0; - rhs$hi = rhs$hi | 0; - cond = cond | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = lhs$hi; - i64toi32_i32$0 = rhs$hi; - i64toi32_i32$4 = cond; - i64toi32_i32$0 = lhs$hi; - i64toi32_i32$3 = i64toi32_i32$4 ? lhs : rhs; - i64toi32_i32$2 = i64toi32_i32$4 ? i64toi32_i32$0 : rhs$hi; - i64toi32_i32$HIGH_BITS = i64toi32_i32$2; - return i64toi32_i32$3 | 0; + function $1($0_1, $1_1, $2_1, $3_1, $4_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + $4_1 = $4_1 | 0; + $2_1 = $4_1 ? $0_1 : $2_1; + $0_1 = $4_1 ? $1_1 : $3_1; + i64toi32_i32$HIGH_BITS = $0_1; + return $2_1 | 0; } - function $2(lhs, rhs, cond) { - lhs = Math_fround(lhs); - rhs = Math_fround(rhs); - cond = cond | 0; - return Math_fround(cond ? lhs : rhs); + function $2($0_1, $1_1, $2_1) { + $0_1 = Math_fround($0_1); + $1_1 = Math_fround($1_1); + $2_1 = $2_1 | 0; + return Math_fround($2_1 ? $0_1 : $1_1); } - function $3(lhs, rhs, cond) { - lhs = +lhs; - rhs = +rhs; - cond = cond | 0; - return +(cond ? lhs : rhs); + function $3($0_1, $1_1, $2_1) { + $0_1 = +$0_1; + $1_1 = +$1_1; + $2_1 = $2_1 | 0; + return +($2_1 ? $0_1 : $1_1); } - function $4(cond) { - cond = cond | 0; - var $1_1 = 0; + function $4($0_1) { + $0_1 = $0_1 | 0; abort(); } - function $5(cond) { - cond = cond | 0; - var $1_1 = 0; + function $5($0_1) { + $0_1 = $0_1 | 0; abort(); } @@ -80,85 +73,68 @@ function asmFunc(global, env, buffer) { $2_1 = $2_1 | 0; $3_1 = $3_1 | 0; $4_1 = $4_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$3 = 0, $22 = 0, $23 = 0, $24 = 0, $7 = 0, $7$hi = 0, $10$hi = 0, $11 = 0, $11$hi = 0, $13 = 0, $13$hi = 0, $16$hi = 0, $17 = 0, $17$hi = 0, $5_1 = 0, $5$hi = 0; - i64toi32_i32$0 = 0; - $7 = $0_1; - $7$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $5_1 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $10 = 0; + $7 = 0; + $8 = $0_1; + $9 = $7; + $7 = 0; + $6 = 32; + $5_1 = $6 & 31 | 0; + if (32 >>> 0 <= ($6 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $22 = 0; + $0_1 = $1_1 << $5_1 | 0; + $6 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $22 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $0_1 = ((1 << $5_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $5_1 | 0) | 0) | 0 | ($7 << $5_1 | 0) | 0; + $6 = $1_1 << $5_1 | 0; } } - $10$hi = i64toi32_i32$1; - i64toi32_i32$1 = $7$hi; - i64toi32_i32$0 = $7; - i64toi32_i32$2 = $10$hi; - i64toi32_i32$3 = $22; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - $11 = i64toi32_i32$0 | i64toi32_i32$3 | 0; - $11$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - $13 = $2_1; - $13$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$1 = $3_1; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + $1_1 = $0_1; + $0_1 = $9; + $7 = $8; + $1_1 = $0_1 | $1_1 | 0; + $10 = $7 | $6 | 0; + $8 = $1_1; + $1_1 = 0; + $9 = $1_1; + $1_1 = 0; + $0_1 = $3_1; + $6 = 32; + $5_1 = $6 & 31 | 0; + if (32 >>> 0 <= ($6 & 63 | 0) >>> 0) { { - i64toi32_i32$0 = i64toi32_i32$1 << i64toi32_i32$4 | 0; - $23 = 0; + $7 = $0_1 << $5_1 | 0; + $6 = 0; } } else { { - i64toi32_i32$0 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$1 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$2 << i64toi32_i32$4 | 0) | 0; - $23 = i64toi32_i32$1 << i64toi32_i32$4 | 0; + $7 = ((1 << $5_1 | 0) - 1 | 0) & ($0_1 >>> (32 - $5_1 | 0) | 0) | 0 | ($1_1 << $5_1 | 0) | 0; + $6 = $0_1 << $5_1 | 0; } } - $16$hi = i64toi32_i32$0; - i64toi32_i32$0 = $13$hi; - i64toi32_i32$2 = $13; - i64toi32_i32$1 = $16$hi; - i64toi32_i32$3 = $23; - i64toi32_i32$1 = i64toi32_i32$0 | i64toi32_i32$1 | 0; - $17 = i64toi32_i32$2 | i64toi32_i32$3 | 0; - $17$hi = i64toi32_i32$1; - i64toi32_i32$1 = $11$hi; - i64toi32_i32$2 = $17$hi; - i64toi32_i32$2 = $1($11 | 0, i64toi32_i32$1 | 0, $17 | 0, i64toi32_i32$2 | 0, $4_1 | 0) | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $5_1 = i64toi32_i32$2; - $5$hi = i64toi32_i32$1; - i64toi32_i32$0 = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $24 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + $0_1 = $7; + $7 = $9; + $1_1 = $2_1; + $0_1 = $7 | $0_1 | 0; + $2_1 = $1_1 | $6 | 0; + $1_1 = $0_1; + $0_1 = $8; + $1_1 = $1($10 | 0, $0_1 | 0, $2_1 | 0, $1_1 | 0, $4_1 | 0) | 0; + $0_1 = i64toi32_i32$HIGH_BITS; + $3_1 = $1_1; + $2_1 = $0_1; + $7 = $1_1; + $6 = 32; + $5_1 = $6 & 31 | 0; + if (32 >>> 0 <= ($6 & 63 | 0) >>> 0) { + $0_1 = $0_1 >>> $5_1 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $24 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$0 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $5_1 | 0) - 1 | 0) & $0_1 | 0) << (32 - $5_1 | 0) | 0 | ($7 >>> $5_1 | 0) | 0 } - setTempRet0($24 | 0); - i64toi32_i32$2 = $5$hi; - return $5_1 | 0; + setTempRet0($0_1 | 0); + return $3_1 | 0; } var FUNCTION_TABLE = []; diff --git a/test/wasm2js/set_local.2asm.js b/test/wasm2js/set_local.2asm.js index eb5a4485e..9a3788536 100644 --- a/test/wasm2js/set_local.2asm.js +++ b/test/wasm2js/set_local.2asm.js @@ -44,9 +44,9 @@ function asmFunc(global, env, buffer) { $0_1 = $0_1 | 0; } - function $5($0_1, $0$hi) { + function $5($0_1, $1_1) { $0_1 = $0_1 | 0; - $0$hi = $0$hi | 0; + $1_1 = $1_1 | 0; } function $6($0_1) { @@ -57,86 +57,72 @@ function asmFunc(global, env, buffer) { $0_1 = +$0_1; } - function $8($0_1, $0$hi, $1_1, $2_1, $3_1, $4_1) { + function $8($0_1, $1_1, $2_1, $3_1, $4_1, $5_1) { $0_1 = $0_1 | 0; - $0$hi = $0$hi | 0; - $1_1 = Math_fround($1_1); - $2_1 = +$2_1; - $3_1 = $3_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = Math_fround($2_1); + $3_1 = +$3_1; $4_1 = $4_1 | 0; - var i64toi32_i32$0 = 0; - i64toi32_i32$0 = 0; - i64toi32_i32$0 = 0; - i64toi32_i32$0 = 0; + $5_1 = $5_1 | 0; } - function $9($0_1, $0$hi, $1_1, $2_1, $3_1, $4_1) { + function $9($0_1, $1_1, $2_1, $3_1, $4_1, $5_1) { $0_1 = $0_1 | 0; - $0$hi = $0$hi | 0; - $1_1 = Math_fround($1_1); - $2_1 = +$2_1; - $3_1 = $3_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = Math_fround($2_1); + $3_1 = +$3_1; $4_1 = $4_1 | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0.0, $14 = 0, $15 = 0, $6$hi = 0, $10 = 0.0, $21 = 0.0, $7$hi = 0, $7_1 = 0; - i64toi32_i32$0 = 0; - $6$hi = i64toi32_i32$0; - i64toi32_i32$0 = $0$hi; - i64toi32_i32$1 = $0_1; - $10 = +(i64toi32_i32$1 >>> 0) + 4294967296.0 * +(i64toi32_i32$0 >>> 0); - i64toi32_i32$0 = $6$hi; - i64toi32_i32$1 = 6; - $21 = +(i64toi32_i32$1 >>> 0) + 4294967296.0 * +(i64toi32_i32$0 >>> 0); - i64toi32_i32$0 = $7$hi; - i64toi32_i32$1 = $7_1; - i64toi32_i32$3 = $10 + (+Math_fround(-.30000001192092896) + ($2_1 + (+(40 >>> 0) + (+(-7 | 0) + (+Math_fround(5.5) + ($21 + (+(i64toi32_i32$1 >>> 0) + 4294967296.0 * +(i64toi32_i32$0 >>> 0) + 8.0))))))); - if (Math_abs(i64toi32_i32$3) >= 1.0) { - { - if (i64toi32_i32$3 > 0.0) { - $14 = ~~Math_min(Math_floor(i64toi32_i32$3 / 4294967296.0), 4294967296.0 - 1.0) >>> 0 - } else { - $14 = ~~Math_ceil((i64toi32_i32$3 - +(~~i64toi32_i32$3 >>> 0 >>> 0)) / 4294967296.0) >>> 0 - } - $15 = $14; + $5_1 = $5_1 | 0; + var $6_1 = 0.0, $7_1 = 0.0, $8_1 = 0, $9_1 = 0; + $4_1 = 0; + $5_1 = $4_1; + $4_1 = $1_1; + $6_1 = +($0_1 >>> 0) + 4294967296.0 * +($4_1 >>> 0); + $4_1 = $5_1; + $0_1 = 6; + $7_1 = +($0_1 >>> 0) + 4294967296.0 * +($4_1 >>> 0); + $4_1 = $8_1; + $0_1 = $9_1; + $3_1 = $6_1 + (+Math_fround(-.30000001192092896) + ($3_1 + (+(40 >>> 0) + (+(-7 | 0) + (+Math_fround(5.5) + ($7_1 + (+($0_1 >>> 0) + 4294967296.0 * +($4_1 >>> 0) + 8.0))))))); + if (Math_abs($3_1) >= 1.0) { + if ($3_1 > 0.0) { + $4_1 = ~~Math_min(Math_floor($3_1 / 4294967296.0), 4294967296.0 - 1.0) >>> 0 + } else { + $4_1 = ~~Math_ceil(($3_1 - +(~~$3_1 >>> 0 >>> 0)) / 4294967296.0) >>> 0 } } else { - $15 = 0 + $4_1 = 0 } - i64toi32_i32$0 = $15; - i64toi32_i32$1 = ~~i64toi32_i32$3 >>> 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + $0_1 = ~~$3_1 >>> 0; + i64toi32_i32$HIGH_BITS = $4_1; + return $0_1 | 0; } function legalstub$5($0_1, $1_1) { $0_1 = $0_1 | 0; $1_1 = $1_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $10 = 0, $3_1 = 0, $3$hi = 0, $6$hi = 0; - i64toi32_i32$0 = 0; - $3_1 = $0_1; - $3$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0, $6_1 = 0; + $2_1 = 0; + $6_1 = $2_1; + $2_1 = 0; + $3_1 = 32; + $4_1 = $3_1 & 31 | 0; + if (32 >>> 0 <= ($3_1 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $10 = 0; + $5_1 = $1_1 << $4_1 | 0; + $3_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $10 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $5_1 = ((1 << $4_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $4_1 | 0) | 0) | 0 | ($2_1 << $4_1 | 0) | 0; + $3_1 = $1_1 << $4_1 | 0; } } - $6$hi = i64toi32_i32$1; - i64toi32_i32$1 = $3$hi; - i64toi32_i32$0 = $3_1; - i64toi32_i32$2 = $6$hi; - i64toi32_i32$3 = $10; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - $5(i64toi32_i32$0 | i64toi32_i32$3 | 0 | 0, i64toi32_i32$2 | 0); + $1_1 = $5_1; + $5_1 = $6_1; + $2_1 = $0_1; + $1_1 = $5_1 | $1_1 | 0; + $5($2_1 | $3_1 | 0 | 0, $1_1 | 0); } function legalstub$8($0_1, $1_1, $2_1, $3_1, $4_1, $5_1) { @@ -146,33 +132,28 @@ function asmFunc(global, env, buffer) { $3_1 = +$3_1; $4_1 = $4_1 | 0; $5_1 = $5_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $14 = 0, $7_1 = 0, $7$hi = 0, $10$hi = 0; - i64toi32_i32$0 = 0; - $7_1 = $0_1; - $7$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $6_1 = 0, $7_1 = 0, $8_1 = 0, $9_1 = 0, $10 = 0; + $6_1 = 0; + $10 = $6_1; + $6_1 = 0; + $7_1 = 32; + $8_1 = $7_1 & 31 | 0; + if (32 >>> 0 <= ($7_1 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $14 = 0; + $9_1 = $1_1 << $8_1 | 0; + $7_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $14 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $9_1 = ((1 << $8_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $8_1 | 0) | 0) | 0 | ($6_1 << $8_1 | 0) | 0; + $7_1 = $1_1 << $8_1 | 0; } } - $10$hi = i64toi32_i32$1; - i64toi32_i32$1 = $7$hi; - i64toi32_i32$0 = $7_1; - i64toi32_i32$2 = $10$hi; - i64toi32_i32$3 = $14; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - $8(i64toi32_i32$0 | i64toi32_i32$3 | 0 | 0, i64toi32_i32$2 | 0, Math_fround($2_1), +$3_1, $4_1 | 0, $5_1 | 0); + $1_1 = $9_1; + $9_1 = $10; + $6_1 = $0_1; + $1_1 = $9_1 | $1_1 | 0; + $8($6_1 | $7_1 | 0 | 0, $1_1 | 0, Math_fround($2_1), +$3_1, $4_1 | 0, $5_1 | 0); } function legalstub$9($0_1, $1_1, $2_1, $3_1, $4_1, $5_1) { @@ -182,54 +163,42 @@ function asmFunc(global, env, buffer) { $3_1 = +$3_1; $4_1 = $4_1 | 0; $5_1 = $5_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $16 = 0, $17 = 0, $8_1 = 0, $8$hi = 0, $11$hi = 0, $6_1 = 0, $6$hi = 0; - i64toi32_i32$0 = 0; - $8_1 = $0_1; - $8$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $6_1 = 0, $7_1 = 0, $8_1 = 0, $9_1 = 0, $10 = 0; + $7_1 = 0; + $9_1 = $0_1; + $10 = $7_1; + $7_1 = 0; + $8_1 = 32; + $6_1 = $8_1 & 31 | 0; + if (32 >>> 0 <= ($8_1 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $16 = 0; + $0_1 = $1_1 << $6_1 | 0; + $8_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $16 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $0_1 = ((1 << $6_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $6_1 | 0) | 0) | 0 | ($7_1 << $6_1 | 0) | 0; + $8_1 = $1_1 << $6_1 | 0; } } - $11$hi = i64toi32_i32$1; - i64toi32_i32$1 = $8$hi; - i64toi32_i32$0 = $8_1; - i64toi32_i32$2 = $11$hi; - i64toi32_i32$3 = $16; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - i64toi32_i32$2 = $9(i64toi32_i32$0 | i64toi32_i32$3 | 0 | 0, i64toi32_i32$2 | 0, Math_fround($2_1), +$3_1, $4_1 | 0, $5_1 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $6_1 = i64toi32_i32$2; - $6$hi = i64toi32_i32$0; - i64toi32_i32$1 = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $17 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + $1_1 = $0_1; + $0_1 = $10; + $7_1 = $9_1; + $1_1 = $0_1 | $1_1 | 0; + $1_1 = $9($7_1 | $8_1 | 0 | 0, $1_1 | 0, Math_fround($2_1), +$3_1, $4_1 | 0, $5_1 | 0) | 0; + $7_1 = i64toi32_i32$HIGH_BITS; + $5_1 = $1_1; + $4_1 = $7_1; + $0_1 = $1_1; + $8_1 = 32; + $6_1 = $8_1 & 31 | 0; + if (32 >>> 0 <= ($8_1 & 63 | 0) >>> 0) { + $0_1 = $7_1 >>> $6_1 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $17 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$1 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $6_1 | 0) - 1 | 0) & $7_1 | 0) << (32 - $6_1 | 0) | 0 | ($0_1 >>> $6_1 | 0) | 0 } - setTempRet0($17 | 0); - i64toi32_i32$2 = $6$hi; - return $6_1 | 0; + setTempRet0($0_1 | 0); + return $5_1 | 0; } var FUNCTION_TABLE = []; diff --git a/test/wasm2js/stack-modified.2asm.js b/test/wasm2js/stack-modified.2asm.js index 22e6037d1..53a3322ee 100644 --- a/test/wasm2js/stack-modified.2asm.js +++ b/test/wasm2js/stack-modified.2asm.js @@ -24,602 +24,497 @@ function asmFunc(global, env, buffer) { var infinity = global.Infinity; var setTempRet0 = env.setTempRet0; var i64toi32_i32$HIGH_BITS = 0; - function $0(var$0, var$0$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$2 = 0, i64toi32_i32$3 = 0, var$1$hi = 0, i64toi32_i32$5 = 0, var$1 = 0, var$2$hi = 0, i64toi32_i32$1 = 0, var$2 = 0; - i64toi32_i32$0 = var$0$hi; - var$1 = var$0; - var$1$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - var$2 = 1; - var$2$hi = i64toi32_i32$0; + function $0($0_1, $1_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + var $2_1 = 0, $3_1 = 0, $4_1 = 0, $5 = 0, $6 = 0, $7 = 0; + $4_1 = $0_1; + $0_1 = $1_1; + $1_1 = 0; + $7 = 1; + $5 = $1_1; label$1 : { label$2 : while (1) { - i64toi32_i32$0 = var$1$hi; - i64toi32_i32$2 = var$1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 0; - if ((i64toi32_i32$2 | 0) == (i64toi32_i32$3 | 0) & (i64toi32_i32$0 | 0) == (i64toi32_i32$1 | 0) | 0) { + $1_1 = $0_1; + $2_1 = $4_1; + $6 = 0; + $3_1 = 0; + if (($2_1 | 0) == ($3_1 | 0) & ($1_1 | 0) == ($6 | 0) | 0) { break label$1 } else { { - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$2 = var$2$hi; - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$0 = var$2$hi; - i64toi32_i32$0 = __wasm_i64_mul(var$1 | 0, i64toi32_i32$2 | 0, var$2 | 0, i64toi32_i32$0 | 0) | 0; - i64toi32_i32$2 = i64toi32_i32$HIGH_BITS; - var$2 = i64toi32_i32$0; - var$2$hi = i64toi32_i32$2; - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$3 = var$1; - i64toi32_i32$0 = 0; - i64toi32_i32$1 = 1; - i64toi32_i32$5 = (i64toi32_i32$3 >>> 0 < i64toi32_i32$1 >>> 0) + i64toi32_i32$0 | 0; - i64toi32_i32$5 = i64toi32_i32$2 - i64toi32_i32$5 | 0; - var$1 = i64toi32_i32$3 - i64toi32_i32$1 | 0; - var$1$hi = i64toi32_i32$5; + $2_1 = $0_1; + $1_1 = $5; + $1_1 = __wasm_i64_mul($4_1 | 0, $2_1 | 0, $7 | 0, $1_1 | 0) | 0; + $2_1 = i64toi32_i32$HIGH_BITS; + $7 = $1_1; + $5 = $2_1; + $2_1 = $0_1; + $3_1 = $4_1; + $1_1 = 0; + $6 = 1; + $0_1 = ($3_1 >>> 0 < $6 >>> 0) + $1_1 | 0; + $0_1 = $2_1 - $0_1 | 0; + $4_1 = $3_1 - $6 | 0; } } continue label$2; }; } - i64toi32_i32$5 = var$2$hi; - i64toi32_i32$3 = var$2; - i64toi32_i32$HIGH_BITS = i64toi32_i32$5; - return i64toi32_i32$3 | 0; + $0_1 = $5; + $3_1 = $7; + i64toi32_i32$HIGH_BITS = $0_1; + return $3_1 | 0; } - function $1(var$0, var$0$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$2 = 0, i64toi32_i32$3 = 0, var$1$hi = 0, i64toi32_i32$5 = 0, var$1 = 0, var$2$hi = 0, i64toi32_i32$1 = 0, var$2 = 0; - i64toi32_i32$0 = var$0$hi; - var$1 = var$0; - var$1$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - var$2 = 1; - var$2$hi = i64toi32_i32$0; + function $1($0_1, $1_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + var $2_1 = 0, $3_1 = 0, $4_1 = 0, $5 = 0, $6 = 0, $7 = 0; + $4_1 = $0_1; + $0_1 = $1_1; + $1_1 = 0; + $7 = 1; + $5 = $1_1; label$1 : { label$2 : while (1) { - i64toi32_i32$0 = var$1$hi; - i64toi32_i32$2 = var$1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 0; - if ((i64toi32_i32$2 | 0) == (i64toi32_i32$3 | 0) & (i64toi32_i32$0 | 0) == (i64toi32_i32$1 | 0) | 0) { + $1_1 = $0_1; + $2_1 = $4_1; + $6 = 0; + $3_1 = 0; + if (($2_1 | 0) == ($3_1 | 0) & ($1_1 | 0) == ($6 | 0) | 0) { break label$1 } else { { - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$2 = var$2$hi; - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$0 = var$2$hi; - i64toi32_i32$0 = __wasm_i64_mul(var$1 | 0, i64toi32_i32$2 | 0, var$2 | 0, i64toi32_i32$0 | 0) | 0; - i64toi32_i32$2 = i64toi32_i32$HIGH_BITS; - var$2 = i64toi32_i32$0; - var$2$hi = i64toi32_i32$2; - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$3 = var$1; - i64toi32_i32$0 = 0; - i64toi32_i32$1 = 1; - i64toi32_i32$5 = (i64toi32_i32$3 >>> 0 < i64toi32_i32$1 >>> 0) + i64toi32_i32$0 | 0; - i64toi32_i32$5 = i64toi32_i32$2 - i64toi32_i32$5 | 0; - var$1 = i64toi32_i32$3 - i64toi32_i32$1 | 0; - var$1$hi = i64toi32_i32$5; + $2_1 = $0_1; + $1_1 = $5; + $1_1 = __wasm_i64_mul($4_1 | 0, $2_1 | 0, $7 | 0, $1_1 | 0) | 0; + $2_1 = i64toi32_i32$HIGH_BITS; + $7 = $1_1; + $5 = $2_1; + $2_1 = $0_1; + $3_1 = $4_1; + $1_1 = 0; + $6 = 1; + $0_1 = ($3_1 >>> 0 < $6 >>> 0) + $1_1 | 0; + $0_1 = $2_1 - $0_1 | 0; + $4_1 = $3_1 - $6 | 0; } } continue label$2; }; } - i64toi32_i32$5 = var$2$hi; - i64toi32_i32$3 = var$2; - i64toi32_i32$HIGH_BITS = i64toi32_i32$5; - return i64toi32_i32$3 | 0; + $0_1 = $5; + $3_1 = $7; + i64toi32_i32$HIGH_BITS = $0_1; + return $3_1 | 0; } - function $2(var$0, var$0$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$2 = 0, i64toi32_i32$3 = 0, var$1$hi = 0, i64toi32_i32$5 = 0, var$1 = 0, var$2$hi = 0, i64toi32_i32$1 = 0, var$2 = 0; - i64toi32_i32$0 = var$0$hi; - var$1 = var$0; - var$1$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - var$2 = 1; - var$2$hi = i64toi32_i32$0; + function $2($0_1, $1_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + var $2_1 = 0, $3_1 = 0, $4_1 = 0, $5 = 0, $6 = 0, $7 = 0; + $4_1 = $0_1; + $0_1 = $1_1; + $1_1 = 0; + $7 = 1; + $5 = $1_1; label$1 : { label$2 : while (1) { - i64toi32_i32$0 = var$1$hi; - i64toi32_i32$2 = var$1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 0; - if ((i64toi32_i32$2 | 0) == (i64toi32_i32$3 | 0) & (i64toi32_i32$0 | 0) == (i64toi32_i32$1 | 0) | 0) { + $1_1 = $0_1; + $2_1 = $4_1; + $6 = 0; + $3_1 = 0; + if (($2_1 | 0) == ($3_1 | 0) & ($1_1 | 0) == ($6 | 0) | 0) { break label$1 } else { { - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$2 = var$2$hi; - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$0 = var$2$hi; - i64toi32_i32$0 = __wasm_i64_mul(var$1 | 0, i64toi32_i32$2 | 0, var$2 | 0, i64toi32_i32$0 | 0) | 0; - i64toi32_i32$2 = i64toi32_i32$HIGH_BITS; - var$2 = i64toi32_i32$0; - var$2$hi = i64toi32_i32$2; - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$3 = var$1; - i64toi32_i32$0 = 0; - i64toi32_i32$1 = 1; - i64toi32_i32$5 = (i64toi32_i32$3 >>> 0 < i64toi32_i32$1 >>> 0) + i64toi32_i32$0 | 0; - i64toi32_i32$5 = i64toi32_i32$2 - i64toi32_i32$5 | 0; - var$1 = i64toi32_i32$3 - i64toi32_i32$1 | 0; - var$1$hi = i64toi32_i32$5; + $2_1 = $0_1; + $1_1 = $5; + $1_1 = __wasm_i64_mul($4_1 | 0, $2_1 | 0, $7 | 0, $1_1 | 0) | 0; + $2_1 = i64toi32_i32$HIGH_BITS; + $7 = $1_1; + $5 = $2_1; + $2_1 = $0_1; + $3_1 = $4_1; + $1_1 = 0; + $6 = 1; + $0_1 = ($3_1 >>> 0 < $6 >>> 0) + $1_1 | 0; + $0_1 = $2_1 - $0_1 | 0; + $4_1 = $3_1 - $6 | 0; } } continue label$2; }; } - i64toi32_i32$5 = var$2$hi; - i64toi32_i32$3 = var$2; - i64toi32_i32$HIGH_BITS = i64toi32_i32$5; - return i64toi32_i32$3 | 0; + $0_1 = $5; + $3_1 = $7; + i64toi32_i32$HIGH_BITS = $0_1; + return $3_1 | 0; } - function $3(var$0, var$0$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$2 = 0, i64toi32_i32$3 = 0, var$1$hi = 0, i64toi32_i32$5 = 0, var$1 = 0, var$2$hi = 0, i64toi32_i32$1 = 0, var$2 = 0; - i64toi32_i32$0 = var$0$hi; - var$1 = var$0; - var$1$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - var$2 = 1; - var$2$hi = i64toi32_i32$0; + function $3($0_1, $1_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + var $2_1 = 0, $3_1 = 0, $4_1 = 0, $5 = 0, $6 = 0, $7 = 0; + $4_1 = $0_1; + $0_1 = $1_1; + $1_1 = 0; + $7 = 1; + $5 = $1_1; label$1 : { label$2 : while (1) { - i64toi32_i32$0 = var$1$hi; - i64toi32_i32$2 = var$1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 0; - if ((i64toi32_i32$2 | 0) == (i64toi32_i32$3 | 0) & (i64toi32_i32$0 | 0) == (i64toi32_i32$1 | 0) | 0) { + $1_1 = $0_1; + $2_1 = $4_1; + $6 = 0; + $3_1 = 0; + if (($2_1 | 0) == ($3_1 | 0) & ($1_1 | 0) == ($6 | 0) | 0) { break label$1 } else { { - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$2 = var$2$hi; - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$0 = var$2$hi; - i64toi32_i32$0 = __wasm_i64_mul(var$1 | 0, i64toi32_i32$2 | 0, var$2 | 0, i64toi32_i32$0 | 0) | 0; - i64toi32_i32$2 = i64toi32_i32$HIGH_BITS; - var$2 = i64toi32_i32$0; - var$2$hi = i64toi32_i32$2; - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$3 = var$1; - i64toi32_i32$0 = 0; - i64toi32_i32$1 = 1; - i64toi32_i32$5 = (i64toi32_i32$3 >>> 0 < i64toi32_i32$1 >>> 0) + i64toi32_i32$0 | 0; - i64toi32_i32$5 = i64toi32_i32$2 - i64toi32_i32$5 | 0; - var$1 = i64toi32_i32$3 - i64toi32_i32$1 | 0; - var$1$hi = i64toi32_i32$5; + $2_1 = $0_1; + $1_1 = $5; + $1_1 = __wasm_i64_mul($4_1 | 0, $2_1 | 0, $7 | 0, $1_1 | 0) | 0; + $2_1 = i64toi32_i32$HIGH_BITS; + $7 = $1_1; + $5 = $2_1; + $2_1 = $0_1; + $3_1 = $4_1; + $1_1 = 0; + $6 = 1; + $0_1 = ($3_1 >>> 0 < $6 >>> 0) + $1_1 | 0; + $0_1 = $2_1 - $0_1 | 0; + $4_1 = $3_1 - $6 | 0; } } continue label$2; }; } - i64toi32_i32$5 = var$2$hi; - i64toi32_i32$3 = var$2; - i64toi32_i32$HIGH_BITS = i64toi32_i32$5; - return i64toi32_i32$3 | 0; + $0_1 = $5; + $3_1 = $7; + i64toi32_i32$HIGH_BITS = $0_1; + return $3_1 | 0; } - function $4(var$0, var$0$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$2 = 0, i64toi32_i32$3 = 0, var$1$hi = 0, i64toi32_i32$5 = 0, var$1 = 0, var$2$hi = 0, i64toi32_i32$1 = 0, var$2 = 0; - i64toi32_i32$0 = var$0$hi; - var$1 = var$0; - var$1$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - var$2 = 1; - var$2$hi = i64toi32_i32$0; + function $4($0_1, $1_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + var $2_1 = 0, $3_1 = 0, $4_1 = 0, $5 = 0, $6 = 0, $7 = 0; + $4_1 = $0_1; + $0_1 = $1_1; + $1_1 = 0; + $7 = 1; + $5 = $1_1; label$1 : { label$2 : while (1) { - i64toi32_i32$0 = var$1$hi; - i64toi32_i32$2 = var$1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 0; - if ((i64toi32_i32$2 | 0) == (i64toi32_i32$3 | 0) & (i64toi32_i32$0 | 0) == (i64toi32_i32$1 | 0) | 0) { + $1_1 = $0_1; + $2_1 = $4_1; + $6 = 0; + $3_1 = 0; + if (($2_1 | 0) == ($3_1 | 0) & ($1_1 | 0) == ($6 | 0) | 0) { break label$1 } else { { - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$2 = var$2$hi; - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$0 = var$2$hi; - i64toi32_i32$0 = __wasm_i64_mul(var$1 | 0, i64toi32_i32$2 | 0, var$2 | 0, i64toi32_i32$0 | 0) | 0; - i64toi32_i32$2 = i64toi32_i32$HIGH_BITS; - var$2 = i64toi32_i32$0; - var$2$hi = i64toi32_i32$2; - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$3 = var$1; - i64toi32_i32$0 = 0; - i64toi32_i32$1 = 1; - i64toi32_i32$5 = (i64toi32_i32$3 >>> 0 < i64toi32_i32$1 >>> 0) + i64toi32_i32$0 | 0; - i64toi32_i32$5 = i64toi32_i32$2 - i64toi32_i32$5 | 0; - var$1 = i64toi32_i32$3 - i64toi32_i32$1 | 0; - var$1$hi = i64toi32_i32$5; + $2_1 = $0_1; + $1_1 = $5; + $1_1 = __wasm_i64_mul($4_1 | 0, $2_1 | 0, $7 | 0, $1_1 | 0) | 0; + $2_1 = i64toi32_i32$HIGH_BITS; + $7 = $1_1; + $5 = $2_1; + $2_1 = $0_1; + $3_1 = $4_1; + $1_1 = 0; + $6 = 1; + $0_1 = ($3_1 >>> 0 < $6 >>> 0) + $1_1 | 0; + $0_1 = $2_1 - $0_1 | 0; + $4_1 = $3_1 - $6 | 0; } } continue label$2; }; } - i64toi32_i32$5 = var$2$hi; - i64toi32_i32$3 = var$2; - i64toi32_i32$HIGH_BITS = i64toi32_i32$5; - return i64toi32_i32$3 | 0; + $0_1 = $5; + $3_1 = $7; + i64toi32_i32$HIGH_BITS = $0_1; + return $3_1 | 0; } function legalstub$0($0_1, $1_1) { $0_1 = $0_1 | 0; $1_1 = $1_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12 = 0, $13 = 0, $4_1 = 0, $4$hi = 0, $7$hi = 0, $2_1 = 0, $2$hi = 0; - i64toi32_i32$0 = 0; - $4_1 = $0_1; - $4$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $2_1 = 0, $3_1 = 0, $4_1 = 0, $5 = 0, $6 = 0; + $3_1 = 0; + $5 = $0_1; + $6 = $3_1; + $3_1 = 0; + $4_1 = 32; + $2_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $12 = 0; + $0_1 = $1_1 << $2_1 | 0; + $4_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $12 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $0_1 = ((1 << $2_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $2_1 | 0) | 0) | 0 | ($3_1 << $2_1 | 0) | 0; + $4_1 = $1_1 << $2_1 | 0; } } - $7$hi = i64toi32_i32$1; - i64toi32_i32$1 = $4$hi; - i64toi32_i32$0 = $4_1; - i64toi32_i32$2 = $7$hi; - i64toi32_i32$3 = $12; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - i64toi32_i32$2 = $0(i64toi32_i32$0 | i64toi32_i32$3 | 0 | 0, i64toi32_i32$2 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $2_1 = i64toi32_i32$2; - $2$hi = i64toi32_i32$0; - i64toi32_i32$1 = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $13 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + $1_1 = $0_1; + $0_1 = $6; + $3_1 = $5; + $1_1 = $0_1 | $1_1 | 0; + $1_1 = $0($3_1 | $4_1 | 0 | 0, $1_1 | 0) | 0; + $3_1 = i64toi32_i32$HIGH_BITS; + $6 = $1_1; + $5 = $3_1; + $0_1 = $1_1; + $4_1 = 32; + $2_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { + $0_1 = $3_1 >>> $2_1 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $13 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$1 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $2_1 | 0) - 1 | 0) & $3_1 | 0) << (32 - $2_1 | 0) | 0 | ($0_1 >>> $2_1 | 0) | 0 } - setTempRet0($13 | 0); - i64toi32_i32$2 = $2$hi; - return $2_1 | 0; + setTempRet0($0_1 | 0); + return $6 | 0; } function legalstub$1($0_1, $1_1) { $0_1 = $0_1 | 0; $1_1 = $1_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12 = 0, $13 = 0, $4_1 = 0, $4$hi = 0, $7$hi = 0, $2_1 = 0, $2$hi = 0; - i64toi32_i32$0 = 0; - $4_1 = $0_1; - $4$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $2_1 = 0, $3_1 = 0, $4_1 = 0, $5 = 0, $6 = 0; + $3_1 = 0; + $5 = $0_1; + $6 = $3_1; + $3_1 = 0; + $4_1 = 32; + $2_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $12 = 0; + $0_1 = $1_1 << $2_1 | 0; + $4_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $12 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $0_1 = ((1 << $2_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $2_1 | 0) | 0) | 0 | ($3_1 << $2_1 | 0) | 0; + $4_1 = $1_1 << $2_1 | 0; } } - $7$hi = i64toi32_i32$1; - i64toi32_i32$1 = $4$hi; - i64toi32_i32$0 = $4_1; - i64toi32_i32$2 = $7$hi; - i64toi32_i32$3 = $12; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - i64toi32_i32$2 = $1(i64toi32_i32$0 | i64toi32_i32$3 | 0 | 0, i64toi32_i32$2 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $2_1 = i64toi32_i32$2; - $2$hi = i64toi32_i32$0; - i64toi32_i32$1 = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $13 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + $1_1 = $0_1; + $0_1 = $6; + $3_1 = $5; + $1_1 = $0_1 | $1_1 | 0; + $1_1 = $1($3_1 | $4_1 | 0 | 0, $1_1 | 0) | 0; + $3_1 = i64toi32_i32$HIGH_BITS; + $6 = $1_1; + $5 = $3_1; + $0_1 = $1_1; + $4_1 = 32; + $2_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { + $0_1 = $3_1 >>> $2_1 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $13 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$1 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $2_1 | 0) - 1 | 0) & $3_1 | 0) << (32 - $2_1 | 0) | 0 | ($0_1 >>> $2_1 | 0) | 0 } - setTempRet0($13 | 0); - i64toi32_i32$2 = $2$hi; - return $2_1 | 0; + setTempRet0($0_1 | 0); + return $6 | 0; } function legalstub$2($0_1, $1_1) { $0_1 = $0_1 | 0; $1_1 = $1_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12 = 0, $13 = 0, $4_1 = 0, $4$hi = 0, $7$hi = 0, $2_1 = 0, $2$hi = 0; - i64toi32_i32$0 = 0; - $4_1 = $0_1; - $4$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $2_1 = 0, $3_1 = 0, $4_1 = 0, $5 = 0, $6 = 0; + $3_1 = 0; + $5 = $0_1; + $6 = $3_1; + $3_1 = 0; + $4_1 = 32; + $2_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $12 = 0; + $0_1 = $1_1 << $2_1 | 0; + $4_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $12 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $0_1 = ((1 << $2_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $2_1 | 0) | 0) | 0 | ($3_1 << $2_1 | 0) | 0; + $4_1 = $1_1 << $2_1 | 0; } } - $7$hi = i64toi32_i32$1; - i64toi32_i32$1 = $4$hi; - i64toi32_i32$0 = $4_1; - i64toi32_i32$2 = $7$hi; - i64toi32_i32$3 = $12; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - i64toi32_i32$2 = $2(i64toi32_i32$0 | i64toi32_i32$3 | 0 | 0, i64toi32_i32$2 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $2_1 = i64toi32_i32$2; - $2$hi = i64toi32_i32$0; - i64toi32_i32$1 = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $13 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + $1_1 = $0_1; + $0_1 = $6; + $3_1 = $5; + $1_1 = $0_1 | $1_1 | 0; + $1_1 = $2($3_1 | $4_1 | 0 | 0, $1_1 | 0) | 0; + $3_1 = i64toi32_i32$HIGH_BITS; + $6 = $1_1; + $5 = $3_1; + $0_1 = $1_1; + $4_1 = 32; + $2_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { + $0_1 = $3_1 >>> $2_1 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $13 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$1 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $2_1 | 0) - 1 | 0) & $3_1 | 0) << (32 - $2_1 | 0) | 0 | ($0_1 >>> $2_1 | 0) | 0 } - setTempRet0($13 | 0); - i64toi32_i32$2 = $2$hi; - return $2_1 | 0; + setTempRet0($0_1 | 0); + return $6 | 0; } function legalstub$3($0_1, $1_1) { $0_1 = $0_1 | 0; $1_1 = $1_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12 = 0, $13 = 0, $4_1 = 0, $4$hi = 0, $7$hi = 0, $2_1 = 0, $2$hi = 0; - i64toi32_i32$0 = 0; - $4_1 = $0_1; - $4$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $2_1 = 0, $3_1 = 0, $4_1 = 0, $5 = 0, $6 = 0; + $3_1 = 0; + $5 = $0_1; + $6 = $3_1; + $3_1 = 0; + $4_1 = 32; + $2_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $12 = 0; + $0_1 = $1_1 << $2_1 | 0; + $4_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $12 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $0_1 = ((1 << $2_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $2_1 | 0) | 0) | 0 | ($3_1 << $2_1 | 0) | 0; + $4_1 = $1_1 << $2_1 | 0; } } - $7$hi = i64toi32_i32$1; - i64toi32_i32$1 = $4$hi; - i64toi32_i32$0 = $4_1; - i64toi32_i32$2 = $7$hi; - i64toi32_i32$3 = $12; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - i64toi32_i32$2 = $3(i64toi32_i32$0 | i64toi32_i32$3 | 0 | 0, i64toi32_i32$2 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $2_1 = i64toi32_i32$2; - $2$hi = i64toi32_i32$0; - i64toi32_i32$1 = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $13 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + $1_1 = $0_1; + $0_1 = $6; + $3_1 = $5; + $1_1 = $0_1 | $1_1 | 0; + $1_1 = $3($3_1 | $4_1 | 0 | 0, $1_1 | 0) | 0; + $3_1 = i64toi32_i32$HIGH_BITS; + $6 = $1_1; + $5 = $3_1; + $0_1 = $1_1; + $4_1 = 32; + $2_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { + $0_1 = $3_1 >>> $2_1 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $13 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$1 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $2_1 | 0) - 1 | 0) & $3_1 | 0) << (32 - $2_1 | 0) | 0 | ($0_1 >>> $2_1 | 0) | 0 } - setTempRet0($13 | 0); - i64toi32_i32$2 = $2$hi; - return $2_1 | 0; + setTempRet0($0_1 | 0); + return $6 | 0; } function legalstub$4($0_1, $1_1) { $0_1 = $0_1 | 0; $1_1 = $1_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12 = 0, $13 = 0, $4_1 = 0, $4$hi = 0, $7$hi = 0, $2_1 = 0, $2$hi = 0; - i64toi32_i32$0 = 0; - $4_1 = $0_1; - $4$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $2_1 = 0, $3_1 = 0, $4_1 = 0, $5 = 0, $6 = 0; + $3_1 = 0; + $5 = $0_1; + $6 = $3_1; + $3_1 = 0; + $4_1 = 32; + $2_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $12 = 0; + $0_1 = $1_1 << $2_1 | 0; + $4_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $12 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $0_1 = ((1 << $2_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $2_1 | 0) | 0) | 0 | ($3_1 << $2_1 | 0) | 0; + $4_1 = $1_1 << $2_1 | 0; } } - $7$hi = i64toi32_i32$1; - i64toi32_i32$1 = $4$hi; - i64toi32_i32$0 = $4_1; - i64toi32_i32$2 = $7$hi; - i64toi32_i32$3 = $12; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - i64toi32_i32$2 = $4(i64toi32_i32$0 | i64toi32_i32$3 | 0 | 0, i64toi32_i32$2 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $2_1 = i64toi32_i32$2; - $2$hi = i64toi32_i32$0; - i64toi32_i32$1 = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $13 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + $1_1 = $0_1; + $0_1 = $6; + $3_1 = $5; + $1_1 = $0_1 | $1_1 | 0; + $1_1 = $4($3_1 | $4_1 | 0 | 0, $1_1 | 0) | 0; + $3_1 = i64toi32_i32$HIGH_BITS; + $6 = $1_1; + $5 = $3_1; + $0_1 = $1_1; + $4_1 = 32; + $2_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { + $0_1 = $3_1 >>> $2_1 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $13 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$1 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $2_1 | 0) - 1 | 0) & $3_1 | 0) << (32 - $2_1 | 0) | 0 | ($0_1 >>> $2_1 | 0) | 0 } - setTempRet0($13 | 0); - i64toi32_i32$2 = $2$hi; - return $2_1 | 0; + setTempRet0($0_1 | 0); + return $6 | 0; } - function _ZN17compiler_builtins3int3mul3Mul3mul17h070e9a1c69faec5bE(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; - var i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, var$2 = 0, i64toi32_i32$2 = 0, i64toi32_i32$3 = 0, var$3 = 0, var$4 = 0, var$5 = 0, $21 = 0, $22 = 0, var$6 = 0, $24 = 0, $17 = 0, $18 = 0, $23 = 0, $29 = 0, $45 = 0, $56$hi = 0, $62$hi = 0; - i64toi32_i32$0 = var$1$hi; - var$2 = var$1; - var$4 = var$2 >>> 16 | 0; - i64toi32_i32$0 = var$0$hi; - var$3 = var$0; - var$5 = var$3 >>> 16 | 0; - $17 = Math_imul(var$4, var$5); - $18 = var$2; - i64toi32_i32$2 = var$3; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = 0; - $21 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + function _ZN17compiler_builtins3int3mul3Mul3mul17h070e9a1c69faec5bE($0_1, $1_1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + var $4_1 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $10 = 0, $11 = 0; + $5 = $2_1; + $9 = $5 >>> 16 | 0; + $10 = $0_1 >>> 16 | 0; + $11 = Math_imul($9, $10); + $8 = $5; + $6 = $0_1; + $7 = 32; + $4_1 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { + $1_1 = $1_1 >>> $4_1 | 0 } else { - { - i64toi32_i32$1 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $21 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $1_1 = (((1 << $4_1 | 0) - 1 | 0) & $1_1 | 0) << (32 - $4_1 | 0) | 0 | ($6 >>> $4_1 | 0) | 0 } - $23 = $17 + Math_imul($18, $21) | 0; - i64toi32_i32$1 = var$1$hi; - i64toi32_i32$0 = var$1; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $22 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + $6 = $11 + Math_imul($8, $1_1) | 0; + $1_1 = $2_1; + $7 = 32; + $4_1 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { + $1_1 = $3_1 >>> $4_1 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $22 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$0 >>> i64toi32_i32$4 | 0) | 0; - } + $1_1 = (((1 << $4_1 | 0) - 1 | 0) & $3_1 | 0) << (32 - $4_1 | 0) | 0 | ($1_1 >>> $4_1 | 0) | 0 } - $29 = $23 + Math_imul($22, var$3) | 0; - var$2 = var$2 & 65535 | 0; - var$3 = var$3 & 65535 | 0; - var$6 = Math_imul(var$2, var$3); - var$2 = (var$6 >>> 16 | 0) + Math_imul(var$2, var$5) | 0; - $45 = $29 + (var$2 >>> 16 | 0) | 0; - var$2 = (var$2 & 65535 | 0) + Math_imul(var$4, var$3) | 0; - i64toi32_i32$2 = 0; - i64toi32_i32$1 = $45 + (var$2 >>> 16 | 0) | 0; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + $1_1 = $6 + Math_imul($1_1, $0_1) | 0; + $5 = $5 & 65535 | 0; + $0_1 = $0_1 & 65535 | 0; + $8 = Math_imul($5, $0_1); + $5 = ($8 >>> 16 | 0) + Math_imul($5, $10) | 0; + $1_1 = $1_1 + ($5 >>> 16 | 0) | 0; + $5 = ($5 & 65535 | 0) + Math_imul($9, $0_1) | 0; + $6 = 0; + $3_1 = $1_1 + ($5 >>> 16 | 0) | 0; + $7 = 32; + $4_1 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$0 = i64toi32_i32$1 << i64toi32_i32$4 | 0; - $24 = 0; + $1_1 = $3_1 << $4_1 | 0; + $6 = 0; } } else { { - i64toi32_i32$0 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$1 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$2 << i64toi32_i32$4 | 0) | 0; - $24 = i64toi32_i32$1 << i64toi32_i32$4 | 0; + $1_1 = ((1 << $4_1 | 0) - 1 | 0) & ($3_1 >>> (32 - $4_1 | 0) | 0) | 0 | ($6 << $4_1 | 0) | 0; + $6 = $3_1 << $4_1 | 0; } } - $56$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - $62$hi = i64toi32_i32$0; - i64toi32_i32$0 = $56$hi; - i64toi32_i32$2 = $24; - i64toi32_i32$1 = $62$hi; - i64toi32_i32$3 = var$2 << 16 | 0 | (var$6 & 65535 | 0) | 0; - i64toi32_i32$1 = i64toi32_i32$0 | i64toi32_i32$1 | 0; - i64toi32_i32$2 = i64toi32_i32$2 | i64toi32_i32$3 | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$2 | 0; + $0_1 = $1_1; + $1_1 = 0; + $2_1 = $1_1; + $1_1 = $0_1; + $3_1 = $2_1; + $7 = $5 << 16 | 0 | ($8 & 65535 | 0) | 0; + $3_1 = $1_1 | $3_1 | 0; + $6 = $6 | $7 | 0; + i64toi32_i32$HIGH_BITS = $3_1; + return $6 | 0; } - function __wasm_i64_mul(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$0 = var$1$hi; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = _ZN17compiler_builtins3int3mul3Mul3mul17h070e9a1c69faec5bE(var$0 | 0, i64toi32_i32$0 | 0, var$1 | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + function __wasm_i64_mul($0_1, $1_1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + $3_1 = _ZN17compiler_builtins3int3mul3Mul3mul17h070e9a1c69faec5bE($0_1 | 0, $1_1 | 0, $2_1 | 0, $3_1 | 0) | 0; + $1_1 = i64toi32_i32$HIGH_BITS; + i64toi32_i32$HIGH_BITS = $1_1; + return $3_1 | 0; } var FUNCTION_TABLE = []; diff --git a/test/wasm2js/stack-modified.2asm.js.opt b/test/wasm2js/stack-modified.2asm.js.opt index 87b18bd9f..87edb791d 100644 --- a/test/wasm2js/stack-modified.2asm.js.opt +++ b/test/wasm2js/stack-modified.2asm.js.opt @@ -48,23 +48,22 @@ function asmFunc(global, env, buffer) { } function legalstub$0($0_1, $1) { - var $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0; - $5 = $0_1; + var $2 = 0, $3 = 0, $4 = 0, $5 = 0; + $4 = $0_1; $3 = 32; $0_1 = $3 & 31; if (32 >>> 0 <= $3 >>> 0) { { $2 = $1 << $0_1; - $4 = 0; + $0_1 = 0; } } else { { $2 = (1 << $0_1) - 1 & $1 >>> 32 - $0_1 | $2 << $0_1; - $4 = $1 << $0_1; + $0_1 = $1 << $0_1; } } - $1 = $0($5 | $4, $2 | $6); - $6 = $1; + $1 = $0($4 | $0_1, $2 | $5); $2 = i64toi32_i32$HIGH_BITS; $0_1 = 32 & 31; setTempRet0((32 >>> 0 <= $3 >>> 0 ? $2 >>> $0_1 : ((1 << $0_1) - 1 & $2) << 32 - $0_1 | $1 >>> $0_1) | 0); @@ -72,38 +71,38 @@ function asmFunc(global, env, buffer) { } function _ZN17compiler_builtins3int3mul3Mul3mul17h070e9a1c69faec5bE($0_1, $1, $2, $3) { - var $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $10 = 0, $11 = 0, $12 = 0; - $4 = $2 >>> 16; - $5 = $0_1 >>> 16; - $7 = Math_imul($4, $5); + var $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $10 = 0; + $5 = $2 >>> 16; + $6 = $0_1 >>> 16; + $4 = Math_imul($5, $6); $8 = $2 & 65535; - $6 = $0_1 & 65535; - $9 = Math_imul($8, $6); - $5 = ($9 >>> 16) + Math_imul($5, $8) | 0; - $4 = ($5 & 65535) + Math_imul($4, $6) | 0; + $7 = $0_1 & 65535; + $9 = Math_imul($8, $7); + $6 = ($9 >>> 16) + Math_imul($6, $8) | 0; + $5 = ($6 & 65535) + Math_imul($5, $7) | 0; $8 = 0; - $11 = $7; - $6 = $0_1; - $7 = 32; - $0_1 = $7 & 31; - $12 = $11 + Math_imul(32 >>> 0 <= $7 >>> 0 ? $1 >>> $0_1 : ((1 << $0_1) - 1 & $1) << 32 - $0_1 | $6 >>> $0_1, $2) | 0; + $10 = $4; + $7 = $0_1; + $4 = 32; + $0_1 = $4 & 31; + $4 = $10 + Math_imul(32 >>> 0 <= $4 >>> 0 ? $1 >>> $0_1 : ((1 << $0_1) - 1 & $1) << 32 - $0_1 | $7 >>> $0_1, $2) | 0; $1 = $2; $2 = 32; $0_1 = $2 & 31; - $1 = (($12 + Math_imul($6, 32 >>> 0 <= $2 >>> 0 ? $3 >>> $0_1 : ((1 << $0_1) - 1 & $3) << 32 - $0_1 | $1 >>> $0_1) | 0) + ($5 >>> 16) | 0) + ($4 >>> 16) | 0; + $1 = (($4 + Math_imul($7, 32 >>> 0 <= $2 >>> 0 ? $3 >>> $0_1 : ((1 << $0_1) - 1 & $3) << 32 - $0_1 | $1 >>> $0_1) | 0) + ($6 >>> 16) | 0) + ($5 >>> 16) | 0; $0_1 = 32 & 31; if (32 >>> 0 <= $2 >>> 0) { { $2 = $1 << $0_1; - $10 = 0; + $0_1 = 0; } } else { { $2 = (1 << $0_1) - 1 & $1 >>> 32 - $0_1 | $8 << $0_1; - $10 = $1 << $0_1; + $0_1 = $1 << $0_1; } } - $0_1 = $10 | ($9 & 65535 | $4 << 16); + $0_1 = $0_1 | ($9 & 65535 | $5 << 16); i64toi32_i32$HIGH_BITS = $2; return $0_1; } diff --git a/test/wasm2js/switch.2asm.js b/test/wasm2js/switch.2asm.js index 7e5109888..d250273c0 100644 --- a/test/wasm2js/switch.2asm.js +++ b/test/wasm2js/switch.2asm.js @@ -24,10 +24,10 @@ function asmFunc(global, env, buffer) { var infinity = global.Infinity; var setTempRet0 = env.setTempRet0; var i64toi32_i32$HIGH_BITS = 0; - function $0(i) { - i = i | 0; - var j = 0; - j = 100; + function $0($0_1) { + $0_1 = $0_1 | 0; + var $1_1 = 0; + $1_1 = 100; switch_ : { $7 : { default_ : { @@ -36,13 +36,13 @@ function asmFunc(global, env, buffer) { $4 : { $3_1 : { $2_1 : { - $1_1 : { - $0_1 : { - switch (i | 0) { + $1_2 : { + $0_2 : { + switch ($0_1 | 0) { case 0: - break $0_1; + break $0_2; case 1: - break $1_1; + break $1_2; case 2: break $2_1; case 3: @@ -59,32 +59,31 @@ function asmFunc(global, env, buffer) { break default_; }; } - return i | 0; + return $0_1 | 0; } } } - j = 0 - i | 0; + $1_1 = 0 - $0_1 | 0; break switch_; } break switch_; } - j = 101; + $1_1 = 101; break switch_; } - j = 101; } - j = 102; + $1_1 = 102; } } - return j | 0; + return $1_1 | 0; } - function $1(i, i$hi) { - i = i | 0; - i$hi = i$hi | 0; - var i64toi32_i32$5 = 0, i64toi32_i32$2 = 0, $7_1 = 0, $7$hi = 0, j = 0, j$hi = 0; - j = 100; - j$hi = 0; + function $1($0_1, $1_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + var $2_2 = 0, $3_2 = 0; + $3_2 = 100; + $2_2 = 0; switch_ : { $7 : { default_ : { @@ -93,13 +92,13 @@ function asmFunc(global, env, buffer) { $6 : { $3_1 : { $2_1 : { - $1_1 : { - $0_1 : { - switch (i | 0) { + $1_2 : { + $0_2 : { + switch ($0_1 | 0) { case 0: - break $0_1; + break $0_2; case 1: - break $1_1; + break $1_2; case 2: break $2_1; case 3: @@ -116,126 +115,115 @@ function asmFunc(global, env, buffer) { break default_; }; } - i64toi32_i32$HIGH_BITS = i$hi; - return i | 0; + i64toi32_i32$HIGH_BITS = $1_1; + return $0_1 | 0; } } } - i64toi32_i32$2 = 0; - i64toi32_i32$5 = (i64toi32_i32$2 >>> 0 < i >>> 0) + i$hi | 0; - i64toi32_i32$5 = 0 - i64toi32_i32$5 | 0; - $7_1 = i64toi32_i32$2 - i | 0; - $7$hi = i64toi32_i32$5; + $2_2 = 0; + $1_1 = ($2_2 >>> 0 < $0_1 >>> 0) + $1_1 | 0; + $1_1 = 0 - $1_1 | 0; + $0_1 = $2_2 - $0_1 | 0; break switch_; } - i64toi32_i32$5 = 0; - j = 101; - j$hi = i64toi32_i32$5; + $1_1 = 0; + $3_2 = 101; + $2_2 = $1_1; } } } - i64toi32_i32$5 = j$hi; - $7_1 = j; - $7$hi = i64toi32_i32$5; + $1_1 = $2_2; + $0_1 = $3_2; break switch_; } - i64toi32_i32$5 = -1; - $7_1 = -5; - $7$hi = i64toi32_i32$5; + $1_1 = -1; + $0_1 = -5; } - i64toi32_i32$5 = $7$hi; - i64toi32_i32$2 = $7_1; - i64toi32_i32$HIGH_BITS = i64toi32_i32$5; - return i64toi32_i32$2 | 0; + $2_2 = $0_1; + i64toi32_i32$HIGH_BITS = $1_1; + return $2_2 | 0; } - function $2(i) { - i = i | 0; - var $5_1 = 0, $6_1 = 0, $7_1 = 0, $8 = 0, $9 = 0; + function $2($0_1) { + $0_1 = $0_1 | 0; + var $1_1 = 0, $2_2 = 0, $3_2 = 0, $4_1 = 0; $2_1 : { - $1_1 : { - $0_1 : { + $1_2 : { + $0_2 : { default_ : { - $5_1 = Math_imul(2, i); - $6_1 = $5_1; - $7_1 = $5_1; - $8 = $5_1; - $9 = $5_1; - switch (3 & i | 0 | 0) { + $1_1 = Math_imul(2, $0_1); + $2_2 = $1_1; + $3_2 = $1_1; + $4_1 = $1_1; + switch (3 & $0_1 | 0 | 0) { case 0: - break $0_1; + break $0_2; case 1: - break $1_1; + break $1_2; case 2: break $2_1; default: break default_; }; } - $6_1 = 1e3 + $9 | 0; + $2_2 = 1e3 + $1_1 | 0; } - $7_1 = 100 + $6_1 | 0; + $3_2 = 100 + $2_2 | 0; } - $8 = 10 + $7_1 | 0; + $4_1 = 10 + $3_2 | 0; } - return $8 | 0; + return $4_1 | 0; } function $3() { + block : { + switch (0 | 0) { + default: + break block; + }; + } return 1 | 0; } - function legalstub$1($0_2, $1_2) { - $0_2 = $0_2 | 0; - $1_2 = $1_2 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12 = 0, $13 = 0, $4_1 = 0, $4$hi = 0, $7$hi = 0, $2_2 = 0, $2$hi = 0; - i64toi32_i32$0 = 0; - $4_1 = $0_2; - $4$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_2; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + function legalstub$1($0_1, $1_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + var $2_2 = 0, $3_2 = 0, $4_1 = 0, $5_1 = 0, $6_1 = 0; + $3_2 = 0; + $5_1 = $0_1; + $6_1 = $3_2; + $3_2 = 0; + $4_1 = 32; + $2_2 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $12 = 0; + $0_1 = $1_1 << $2_2 | 0; + $4_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $12 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $0_1 = ((1 << $2_2 | 0) - 1 | 0) & ($1_1 >>> (32 - $2_2 | 0) | 0) | 0 | ($3_2 << $2_2 | 0) | 0; + $4_1 = $1_1 << $2_2 | 0; } } - $7$hi = i64toi32_i32$1; - i64toi32_i32$1 = $4$hi; - i64toi32_i32$0 = $4_1; - i64toi32_i32$2 = $7$hi; - i64toi32_i32$3 = $12; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - i64toi32_i32$2 = $1(i64toi32_i32$0 | i64toi32_i32$3 | 0 | 0, i64toi32_i32$2 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $2_2 = i64toi32_i32$2; - $2$hi = i64toi32_i32$0; - i64toi32_i32$1 = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $13 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + $1_1 = $0_1; + $0_1 = $6_1; + $3_2 = $5_1; + $1_1 = $0_1 | $1_1 | 0; + $1_1 = $1($3_2 | $4_1 | 0 | 0, $1_1 | 0) | 0; + $3_2 = i64toi32_i32$HIGH_BITS; + $6_1 = $1_1; + $5_1 = $3_2; + $0_1 = $1_1; + $4_1 = 32; + $2_2 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { + $0_1 = $3_2 >>> $2_2 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $13 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$1 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $2_2 | 0) - 1 | 0) & $3_2 | 0) << (32 - $2_2 | 0) | 0 | ($0_1 >>> $2_2 | 0) | 0 } - setTempRet0($13 | 0); - i64toi32_i32$2 = $2$hi; - return $2_2 | 0; + setTempRet0($0_1 | 0); + return $6_1 | 0; } var FUNCTION_TABLE = []; diff --git a/test/wasm2js/tee_local.2asm.js b/test/wasm2js/tee_local.2asm.js index fa6c70012..709cf8373 100644 --- a/test/wasm2js/tee_local.2asm.js +++ b/test/wasm2js/tee_local.2asm.js @@ -29,9 +29,9 @@ function asmFunc(global, env, buffer) { } function $1() { - var i64toi32_i32$0 = 0; - i64toi32_i32$0 = 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; + var $0_1 = 0; + $0_1 = 0; + i64toi32_i32$HIGH_BITS = $0_1; return 0 | 0; } @@ -48,12 +48,11 @@ function asmFunc(global, env, buffer) { return 10 | 0; } - function $5($0_1, $0$hi) { + function $5($0_1, $1_1) { $0_1 = $0_1 | 0; - $0$hi = $0$hi | 0; - var i64toi32_i32$0 = 0; - i64toi32_i32$0 = 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; + $1_1 = $1_1 | 0; + $0_1 = 0; + i64toi32_i32$HIGH_BITS = $0_1; return 11 | 0; } @@ -67,158 +66,131 @@ function asmFunc(global, env, buffer) { return +(12.2); } - function $8($0_1, $0$hi, $1_1, $2_1, $3_1, $4_1) { + function $8($0_1, $1_1, $2_1, $3_1, $4_1, $5_1) { $0_1 = $0_1 | 0; - $0$hi = $0$hi | 0; - $1_1 = Math_fround($1_1); - $2_1 = +$2_1; - $3_1 = $3_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = Math_fround($2_1); + $3_1 = +$3_1; $4_1 = $4_1 | 0; - var i64toi32_i32$0 = 0; - i64toi32_i32$0 = 0; - i64toi32_i32$0 = 0; - i64toi32_i32$0 = 0; + $5_1 = $5_1 | 0; + $0_1 = 0; + $0_1 = 0; + $0_1 = 0; } - function $9($0_1, $0$hi, $1_1, $2_1, $3_1, $4_1) { + function $9($0_1, $1_1, $2_1, $3_1, $4_1, $5_1) { $0_1 = $0_1 | 0; - $0$hi = $0$hi | 0; - $1_1 = Math_fround($1_1); - $2_1 = +$2_1; - $3_1 = $3_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = Math_fround($2_1); + $3_1 = +$3_1; $4_1 = $4_1 | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0.0, $5_1 = Math_fround(0), $6_1 = 0, $8_1 = 0.0, $17 = 0, $18 = 0, $6$hi = 0, $16 = 0.0, $27 = 0.0, $7$hi = 0, $7_1 = 0; - $1_1 = Math_fround(-.30000001192092896); - $3_1 = 40; - $4_1 = -7; - $5_1 = Math_fround(5.5); - i64toi32_i32$0 = 0; - $6_1 = 6; - $6$hi = i64toi32_i32$0; - $8_1 = 8.0; - i64toi32_i32$0 = $0$hi; - i64toi32_i32$1 = $0_1; - $16 = +(i64toi32_i32$1 >>> 0) + 4294967296.0 * +(i64toi32_i32$0 >>> 0); - i64toi32_i32$0 = $6$hi; - i64toi32_i32$1 = $6_1; - $27 = +(i64toi32_i32$1 >>> 0) + 4294967296.0 * +(i64toi32_i32$0 >>> 0); - i64toi32_i32$0 = $7$hi; - i64toi32_i32$1 = $7_1; - i64toi32_i32$3 = $16 + (+$1_1 + ($2_1 + (+($3_1 >>> 0) + (+($4_1 | 0) + (+$5_1 + ($27 + (+(i64toi32_i32$1 >>> 0) + 4294967296.0 * +(i64toi32_i32$0 >>> 0) + $8_1))))))); - if (Math_abs(i64toi32_i32$3) >= 1.0) { - { - if (i64toi32_i32$3 > 0.0) { - $17 = ~~Math_min(Math_floor(i64toi32_i32$3 / 4294967296.0), 4294967296.0 - 1.0) >>> 0 - } else { - $17 = ~~Math_ceil((i64toi32_i32$3 - +(~~i64toi32_i32$3 >>> 0 >>> 0)) / 4294967296.0) >>> 0 - } - $18 = $17; + $5_1 = $5_1 | 0; + var $6_1 = 0, $7_1 = Math_fround(0), $8_1 = 0, $9_1 = 0.0, $10_1 = 0, $11 = 0.0, $12 = 0.0, $13 = 0, $14 = 0; + $2_1 = Math_fround(-.30000001192092896); + $4_1 = 40; + $5_1 = -7; + $7_1 = Math_fround(5.5); + $6_1 = 0; + $8_1 = 6; + $10_1 = $6_1; + $9_1 = 8.0; + $6_1 = $1_1; + $11 = +($0_1 >>> 0) + 4294967296.0 * +($6_1 >>> 0); + $6_1 = $10_1; + $0_1 = $8_1; + $12 = +($0_1 >>> 0) + 4294967296.0 * +($6_1 >>> 0); + $6_1 = $13; + $0_1 = $14; + $3_1 = $11 + (+$2_1 + ($3_1 + (+($4_1 >>> 0) + (+($5_1 | 0) + (+$7_1 + ($12 + (+($0_1 >>> 0) + 4294967296.0 * +($6_1 >>> 0) + $9_1))))))); + if (Math_abs($3_1) >= 1.0) { + if ($3_1 > 0.0) { + $6_1 = ~~Math_min(Math_floor($3_1 / 4294967296.0), 4294967296.0 - 1.0) >>> 0 + } else { + $6_1 = ~~Math_ceil(($3_1 - +(~~$3_1 >>> 0 >>> 0)) / 4294967296.0) >>> 0 } } else { - $18 = 0 + $6_1 = 0 } - i64toi32_i32$0 = $18; - i64toi32_i32$1 = ~~i64toi32_i32$3 >>> 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + $0_1 = ~~$3_1 >>> 0; + i64toi32_i32$HIGH_BITS = $6_1; + return $0_1 | 0; } - function $10($0_1, $0$hi, $1_1, $2_1, $3_1, $4_1) { + function $10($0_1, $1_1, $2_1, $3_1, $4_1, $5_1) { $0_1 = $0_1 | 0; - $0$hi = $0$hi | 0; - $1_1 = Math_fround($1_1); - $2_1 = +$2_1; - $3_1 = $3_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = Math_fround($2_1); + $3_1 = +$3_1; $4_1 = $4_1 | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, $10_1 = 0.0, $21 = 0.0; - i64toi32_i32$0 = 0; - i64toi32_i32$1 = 1; - $10_1 = +(i64toi32_i32$1 >>> 0) + 4294967296.0 * +(i64toi32_i32$0 >>> 0); - i64toi32_i32$0 = 0; - i64toi32_i32$1 = 6; - $21 = +(i64toi32_i32$1 >>> 0) + 4294967296.0 * +(i64toi32_i32$0 >>> 0); - i64toi32_i32$0 = 0; - i64toi32_i32$1 = 0; - return +($10_1 + (+Math_fround(2.0) + (3.3 + (+(4 >>> 0) + (+(5 | 0) + (+Math_fround(5.5) + ($21 + (+(i64toi32_i32$1 >>> 0) + 4294967296.0 * +(i64toi32_i32$0 >>> 0) + 8.0)))))))); + $5_1 = $5_1 | 0; + var $6_1 = 0.0; + $0_1 = 0; + $1_1 = 1; + $3_1 = +($1_1 >>> 0) + 4294967296.0 * +($0_1 >>> 0); + $0_1 = 0; + $1_1 = 6; + $6_1 = +($1_1 >>> 0) + 4294967296.0 * +($0_1 >>> 0); + $0_1 = 0; + $1_1 = 0; + return +($3_1 + (+Math_fround(2.0) + (3.3 + (+(4 >>> 0) + (+(5 | 0) + (+Math_fround(5.5) + ($6_1 + (+($1_1 >>> 0) + 4294967296.0 * +($0_1 >>> 0) + 8.0)))))))); } function legalstub$1() { - var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0_1 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $1() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0_1 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$2 = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = 0; - $7_1 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + var $0_1 = 0, $1_1 = 0, $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0; + $0_1 = $1() | 0; + $2_1 = i64toi32_i32$HIGH_BITS; + $4_1 = $0_1; + $5_1 = $2_1; + $3_1 = 32; + $1_1 = $3_1 & 31 | 0; + if (32 >>> 0 <= ($3_1 & 63 | 0) >>> 0) { + $0_1 = $2_1 >>> $1_1 | 0 } else { - { - i64toi32_i32$0 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $7_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $1_1 | 0) - 1 | 0) & $2_1 | 0) << (32 - $1_1 | 0) | 0 | ($0_1 >>> $1_1 | 0) | 0 } - setTempRet0($7_1 | 0); - i64toi32_i32$0 = $0$hi; - return $0_1 | 0; + setTempRet0($0_1 | 0); + return $4_1 | 0; } function legalstub$5($0_1, $1_1) { $0_1 = $0_1 | 0; $1_1 = $1_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12 = 0, $13 = 0, $4_1 = 0, $4$hi = 0, $7$hi = 0, $2_1 = 0, $2$hi = 0; - i64toi32_i32$0 = 0; - $4_1 = $0_1; - $4$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0, $6_1 = 0; + $3_1 = 0; + $5_1 = $0_1; + $6_1 = $3_1; + $3_1 = 0; + $4_1 = 32; + $2_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $12 = 0; + $0_1 = $1_1 << $2_1 | 0; + $4_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $12 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $0_1 = ((1 << $2_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $2_1 | 0) | 0) | 0 | ($3_1 << $2_1 | 0) | 0; + $4_1 = $1_1 << $2_1 | 0; } } - $7$hi = i64toi32_i32$1; - i64toi32_i32$1 = $4$hi; - i64toi32_i32$0 = $4_1; - i64toi32_i32$2 = $7$hi; - i64toi32_i32$3 = $12; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - i64toi32_i32$2 = $5(i64toi32_i32$0 | i64toi32_i32$3 | 0 | 0, i64toi32_i32$2 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $2_1 = i64toi32_i32$2; - $2$hi = i64toi32_i32$0; - i64toi32_i32$1 = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $13 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + $1_1 = $0_1; + $0_1 = $6_1; + $3_1 = $5_1; + $1_1 = $0_1 | $1_1 | 0; + $1_1 = $5($3_1 | $4_1 | 0 | 0, $1_1 | 0) | 0; + $3_1 = i64toi32_i32$HIGH_BITS; + $6_1 = $1_1; + $5_1 = $3_1; + $0_1 = $1_1; + $4_1 = 32; + $2_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { + $0_1 = $3_1 >>> $2_1 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $13 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$1 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $2_1 | 0) - 1 | 0) & $3_1 | 0) << (32 - $2_1 | 0) | 0 | ($0_1 >>> $2_1 | 0) | 0 } - setTempRet0($13 | 0); - i64toi32_i32$2 = $2$hi; - return $2_1 | 0; + setTempRet0($0_1 | 0); + return $6_1 | 0; } function legalstub$8($0_1, $1_1, $2_1, $3_1, $4_1, $5_1) { @@ -228,33 +200,28 @@ function asmFunc(global, env, buffer) { $3_1 = +$3_1; $4_1 = $4_1 | 0; $5_1 = $5_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $14 = 0, $7_1 = 0, $7$hi = 0, $10$hi = 0; - i64toi32_i32$0 = 0; - $7_1 = $0_1; - $7$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $6_1 = 0, $7_1 = 0, $8_1 = 0, $9_1 = 0, $10_1 = 0; + $6_1 = 0; + $10_1 = $6_1; + $6_1 = 0; + $7_1 = 32; + $8_1 = $7_1 & 31 | 0; + if (32 >>> 0 <= ($7_1 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $14 = 0; + $9_1 = $1_1 << $8_1 | 0; + $7_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $14 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $9_1 = ((1 << $8_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $8_1 | 0) | 0) | 0 | ($6_1 << $8_1 | 0) | 0; + $7_1 = $1_1 << $8_1 | 0; } } - $10$hi = i64toi32_i32$1; - i64toi32_i32$1 = $7$hi; - i64toi32_i32$0 = $7_1; - i64toi32_i32$2 = $10$hi; - i64toi32_i32$3 = $14; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - $8(i64toi32_i32$0 | i64toi32_i32$3 | 0 | 0, i64toi32_i32$2 | 0, Math_fround($2_1), +$3_1, $4_1 | 0, $5_1 | 0); + $1_1 = $9_1; + $9_1 = $10_1; + $6_1 = $0_1; + $1_1 = $9_1 | $1_1 | 0; + $8($6_1 | $7_1 | 0 | 0, $1_1 | 0, Math_fround($2_1), +$3_1, $4_1 | 0, $5_1 | 0); } function legalstub$9($0_1, $1_1, $2_1, $3_1, $4_1, $5_1) { @@ -264,54 +231,42 @@ function asmFunc(global, env, buffer) { $3_1 = +$3_1; $4_1 = $4_1 | 0; $5_1 = $5_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $16 = 0, $17 = 0, $8_1 = 0, $8$hi = 0, $11$hi = 0, $6_1 = 0, $6$hi = 0; - i64toi32_i32$0 = 0; - $8_1 = $0_1; - $8$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $6_1 = 0, $7_1 = 0, $8_1 = 0, $9_1 = 0, $10_1 = 0; + $7_1 = 0; + $9_1 = $0_1; + $10_1 = $7_1; + $7_1 = 0; + $8_1 = 32; + $6_1 = $8_1 & 31 | 0; + if (32 >>> 0 <= ($8_1 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $16 = 0; + $0_1 = $1_1 << $6_1 | 0; + $8_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $16 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $0_1 = ((1 << $6_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $6_1 | 0) | 0) | 0 | ($7_1 << $6_1 | 0) | 0; + $8_1 = $1_1 << $6_1 | 0; } } - $11$hi = i64toi32_i32$1; - i64toi32_i32$1 = $8$hi; - i64toi32_i32$0 = $8_1; - i64toi32_i32$2 = $11$hi; - i64toi32_i32$3 = $16; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - i64toi32_i32$2 = $9(i64toi32_i32$0 | i64toi32_i32$3 | 0 | 0, i64toi32_i32$2 | 0, Math_fround($2_1), +$3_1, $4_1 | 0, $5_1 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - $6_1 = i64toi32_i32$2; - $6$hi = i64toi32_i32$0; - i64toi32_i32$1 = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $17 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + $1_1 = $0_1; + $0_1 = $10_1; + $7_1 = $9_1; + $1_1 = $0_1 | $1_1 | 0; + $1_1 = $9($7_1 | $8_1 | 0 | 0, $1_1 | 0, Math_fround($2_1), +$3_1, $4_1 | 0, $5_1 | 0) | 0; + $7_1 = i64toi32_i32$HIGH_BITS; + $5_1 = $1_1; + $4_1 = $7_1; + $0_1 = $1_1; + $8_1 = 32; + $6_1 = $8_1 & 31 | 0; + if (32 >>> 0 <= ($8_1 & 63 | 0) >>> 0) { + $0_1 = $7_1 >>> $6_1 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $17 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$1 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $6_1 | 0) - 1 | 0) & $7_1 | 0) << (32 - $6_1 | 0) | 0 | ($0_1 >>> $6_1 | 0) | 0 } - setTempRet0($17 | 0); - i64toi32_i32$2 = $6$hi; - return $6_1 | 0; + setTempRet0($0_1 | 0); + return $5_1 | 0; } function legalstub$10($0_1, $1_1, $2_1, $3_1, $4_1, $5_1) { @@ -321,33 +276,28 @@ function asmFunc(global, env, buffer) { $3_1 = +$3_1; $4_1 = $4_1 | 0; $5_1 = $5_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $14 = 0, $7_1 = 0, $7$hi = 0, $10$hi = 0; - i64toi32_i32$0 = 0; - $7_1 = $0_1; - $7$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $6_1 = 0, $7_1 = 0, $8_1 = 0, $9_1 = 0, $10_1 = 0; + $6_1 = 0; + $10_1 = $6_1; + $6_1 = 0; + $7_1 = 32; + $8_1 = $7_1 & 31 | 0; + if (32 >>> 0 <= ($7_1 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $14 = 0; + $9_1 = $1_1 << $8_1 | 0; + $7_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $14 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $9_1 = ((1 << $8_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $8_1 | 0) | 0) | 0 | ($6_1 << $8_1 | 0) | 0; + $7_1 = $1_1 << $8_1 | 0; } } - $10$hi = i64toi32_i32$1; - i64toi32_i32$1 = $7$hi; - i64toi32_i32$0 = $7_1; - i64toi32_i32$2 = $10$hi; - i64toi32_i32$3 = $14; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - return +(+$10(i64toi32_i32$0 | i64toi32_i32$3 | 0 | 0, i64toi32_i32$2 | 0, Math_fround($2_1), +$3_1, $4_1 | 0, $5_1 | 0)); + $1_1 = $9_1; + $9_1 = $10_1; + $6_1 = $0_1; + $1_1 = $9_1 | $1_1 | 0; + return +(+$10($6_1 | $7_1 | 0 | 0, $1_1 | 0, Math_fround($2_1), +$3_1, $4_1 | 0, $5_1 | 0)); } var FUNCTION_TABLE = []; diff --git a/test/wasm2js/traps.2asm.js b/test/wasm2js/traps.2asm.js index 962278e8a..52d95e6a8 100644 --- a/test/wasm2js/traps.2asm.js +++ b/test/wasm2js/traps.2asm.js @@ -35,48 +35,38 @@ function asmFunc(global, env, buffer) { var infinity = global.Infinity; var setTempRet0 = env.setTempRet0; var i64toi32_i32$HIGH_BITS = 0; - function $0(x, y) { - x = x | 0; - y = y | 0; - return (x | 0) / (y | 0) | 0 | 0; + function $0($0_1, $1_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + return ($0_1 | 0) / ($1_1 | 0) | 0 | 0; } - function $1(x, y) { - x = x | 0; - y = y | 0; - return (x >>> 0) / (y >>> 0) | 0 | 0; + function $1($0_1, $1_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + return ($0_1 >>> 0) / ($1_1 >>> 0) | 0 | 0; } - function $2(x, x$hi, y, y$hi) { - x = x | 0; - x$hi = x$hi | 0; - y = y | 0; - y$hi = y$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = x$hi; - i64toi32_i32$0 = y$hi; - i64toi32_i32$0 = x$hi; - i64toi32_i32$1 = y$hi; - i64toi32_i32$1 = __wasm_i64_sdiv(x | 0, i64toi32_i32$0 | 0, y | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + function $2($0_1, $1_1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + $3_1 = __wasm_i64_sdiv($0_1 | 0, $1_1 | 0, $2_1 | 0, $3_1 | 0) | 0; + $1_1 = i64toi32_i32$HIGH_BITS; + i64toi32_i32$HIGH_BITS = $1_1; + return $3_1 | 0; } - function $3(x, x$hi, y, y$hi) { - x = x | 0; - x$hi = x$hi | 0; - y = y | 0; - y$hi = y$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = x$hi; - i64toi32_i32$0 = y$hi; - i64toi32_i32$0 = x$hi; - i64toi32_i32$1 = y$hi; - i64toi32_i32$1 = __wasm_i64_udiv(x | 0, i64toi32_i32$0 | 0, y | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + function $3($0_1, $1_1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + $3_1 = __wasm_i64_udiv($0_1 | 0, $1_1 | 0, $2_1 | 0, $3_1 | 0) | 0; + $1_1 = i64toi32_i32$HIGH_BITS; + i64toi32_i32$HIGH_BITS = $1_1; + return $3_1 | 0; } function legalstub$2($0_1, $1_1, $2_1, $3_1) { @@ -84,85 +74,68 @@ function asmFunc(global, env, buffer) { $1_1 = $1_1 | 0; $2_1 = $2_1 | 0; $3_1 = $3_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$3 = 0, $21 = 0, $22 = 0, $23 = 0, $6 = 0, $6$hi = 0, $9$hi = 0, $10 = 0, $10$hi = 0, $12 = 0, $12$hi = 0, $15$hi = 0, $16 = 0, $16$hi = 0, $4 = 0, $4$hi = 0; - i64toi32_i32$0 = 0; - $6 = $0_1; - $6$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0; + $6 = 0; + $7 = $0_1; + $8 = $6; + $6 = 0; + $5 = 32; + $4 = $5 & 31 | 0; + if (32 >>> 0 <= ($5 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $21 = 0; + $0_1 = $1_1 << $4 | 0; + $5 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $21 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $0_1 = ((1 << $4 | 0) - 1 | 0) & ($1_1 >>> (32 - $4 | 0) | 0) | 0 | ($6 << $4 | 0) | 0; + $5 = $1_1 << $4 | 0; } } - $9$hi = i64toi32_i32$1; - i64toi32_i32$1 = $6$hi; - i64toi32_i32$0 = $6; - i64toi32_i32$2 = $9$hi; - i64toi32_i32$3 = $21; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - $10 = i64toi32_i32$0 | i64toi32_i32$3 | 0; - $10$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - $12 = $2_1; - $12$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$1 = $3_1; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + $1_1 = $0_1; + $0_1 = $8; + $6 = $7; + $1_1 = $0_1 | $1_1 | 0; + $9 = $6 | $5 | 0; + $7 = $1_1; + $1_1 = 0; + $8 = $1_1; + $1_1 = 0; + $0_1 = $3_1; + $5 = 32; + $4 = $5 & 31 | 0; + if (32 >>> 0 <= ($5 & 63 | 0) >>> 0) { { - i64toi32_i32$0 = i64toi32_i32$1 << i64toi32_i32$4 | 0; - $22 = 0; + $6 = $0_1 << $4 | 0; + $5 = 0; } } else { { - i64toi32_i32$0 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$1 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$2 << i64toi32_i32$4 | 0) | 0; - $22 = i64toi32_i32$1 << i64toi32_i32$4 | 0; + $6 = ((1 << $4 | 0) - 1 | 0) & ($0_1 >>> (32 - $4 | 0) | 0) | 0 | ($1_1 << $4 | 0) | 0; + $5 = $0_1 << $4 | 0; } } - $15$hi = i64toi32_i32$0; - i64toi32_i32$0 = $12$hi; - i64toi32_i32$2 = $12; - i64toi32_i32$1 = $15$hi; - i64toi32_i32$3 = $22; - i64toi32_i32$1 = i64toi32_i32$0 | i64toi32_i32$1 | 0; - $16 = i64toi32_i32$2 | i64toi32_i32$3 | 0; - $16$hi = i64toi32_i32$1; - i64toi32_i32$1 = $10$hi; - i64toi32_i32$2 = $16$hi; - i64toi32_i32$2 = $2($10 | 0, i64toi32_i32$1 | 0, $16 | 0, i64toi32_i32$2 | 0) | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $4 = i64toi32_i32$2; - $4$hi = i64toi32_i32$1; - i64toi32_i32$0 = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $23 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + $0_1 = $6; + $6 = $8; + $1_1 = $2_1; + $0_1 = $6 | $0_1 | 0; + $2_1 = $1_1 | $5 | 0; + $1_1 = $0_1; + $0_1 = $7; + $1_1 = $2($9 | 0, $0_1 | 0, $2_1 | 0, $1_1 | 0) | 0; + $0_1 = i64toi32_i32$HIGH_BITS; + $3_1 = $1_1; + $2_1 = $0_1; + $6 = $1_1; + $5 = 32; + $4 = $5 & 31 | 0; + if (32 >>> 0 <= ($5 & 63 | 0) >>> 0) { + $0_1 = $0_1 >>> $4 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $23 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$0 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $4 | 0) - 1 | 0) & $0_1 | 0) << (32 - $4 | 0) | 0 | ($6 >>> $4 | 0) | 0 } - setTempRet0($23 | 0); - i64toi32_i32$2 = $4$hi; - return $4 | 0; + setTempRet0($0_1 | 0); + return $3_1 | 0; } function legalstub$3($0_1, $1_1, $2_1, $3_1) { @@ -170,243 +143,197 @@ function asmFunc(global, env, buffer) { $1_1 = $1_1 | 0; $2_1 = $2_1 | 0; $3_1 = $3_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$3 = 0, $21 = 0, $22 = 0, $23 = 0, $6 = 0, $6$hi = 0, $9$hi = 0, $10 = 0, $10$hi = 0, $12 = 0, $12$hi = 0, $15$hi = 0, $16 = 0, $16$hi = 0, $4 = 0, $4$hi = 0; - i64toi32_i32$0 = 0; - $6 = $0_1; - $6$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0; + $6 = 0; + $7 = $0_1; + $8 = $6; + $6 = 0; + $5 = 32; + $4 = $5 & 31 | 0; + if (32 >>> 0 <= ($5 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $21 = 0; + $0_1 = $1_1 << $4 | 0; + $5 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $21 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $0_1 = ((1 << $4 | 0) - 1 | 0) & ($1_1 >>> (32 - $4 | 0) | 0) | 0 | ($6 << $4 | 0) | 0; + $5 = $1_1 << $4 | 0; } } - $9$hi = i64toi32_i32$1; - i64toi32_i32$1 = $6$hi; - i64toi32_i32$0 = $6; - i64toi32_i32$2 = $9$hi; - i64toi32_i32$3 = $21; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - $10 = i64toi32_i32$0 | i64toi32_i32$3 | 0; - $10$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - $12 = $2_1; - $12$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$1 = $3_1; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + $1_1 = $0_1; + $0_1 = $8; + $6 = $7; + $1_1 = $0_1 | $1_1 | 0; + $9 = $6 | $5 | 0; + $7 = $1_1; + $1_1 = 0; + $8 = $1_1; + $1_1 = 0; + $0_1 = $3_1; + $5 = 32; + $4 = $5 & 31 | 0; + if (32 >>> 0 <= ($5 & 63 | 0) >>> 0) { { - i64toi32_i32$0 = i64toi32_i32$1 << i64toi32_i32$4 | 0; - $22 = 0; + $6 = $0_1 << $4 | 0; + $5 = 0; } } else { { - i64toi32_i32$0 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$1 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$2 << i64toi32_i32$4 | 0) | 0; - $22 = i64toi32_i32$1 << i64toi32_i32$4 | 0; + $6 = ((1 << $4 | 0) - 1 | 0) & ($0_1 >>> (32 - $4 | 0) | 0) | 0 | ($1_1 << $4 | 0) | 0; + $5 = $0_1 << $4 | 0; } } - $15$hi = i64toi32_i32$0; - i64toi32_i32$0 = $12$hi; - i64toi32_i32$2 = $12; - i64toi32_i32$1 = $15$hi; - i64toi32_i32$3 = $22; - i64toi32_i32$1 = i64toi32_i32$0 | i64toi32_i32$1 | 0; - $16 = i64toi32_i32$2 | i64toi32_i32$3 | 0; - $16$hi = i64toi32_i32$1; - i64toi32_i32$1 = $10$hi; - i64toi32_i32$2 = $16$hi; - i64toi32_i32$2 = $3($10 | 0, i64toi32_i32$1 | 0, $16 | 0, i64toi32_i32$2 | 0) | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $4 = i64toi32_i32$2; - $4$hi = i64toi32_i32$1; - i64toi32_i32$0 = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $23 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + $0_1 = $6; + $6 = $8; + $1_1 = $2_1; + $0_1 = $6 | $0_1 | 0; + $2_1 = $1_1 | $5 | 0; + $1_1 = $0_1; + $0_1 = $7; + $1_1 = $3($9 | 0, $0_1 | 0, $2_1 | 0, $1_1 | 0) | 0; + $0_1 = i64toi32_i32$HIGH_BITS; + $3_1 = $1_1; + $2_1 = $0_1; + $6 = $1_1; + $5 = 32; + $4 = $5 & 31 | 0; + if (32 >>> 0 <= ($5 & 63 | 0) >>> 0) { + $0_1 = $0_1 >>> $4 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $23 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$0 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $4 | 0) - 1 | 0) & $0_1 | 0) << (32 - $4 | 0) | 0 | ($6 >>> $4 | 0) | 0 } - setTempRet0($23 | 0); - i64toi32_i32$2 = $4$hi; - return $4 | 0; + setTempRet0($0_1 | 0); + return $3_1 | 0; } - function legalfunc$wasm2js_scratch_store_i64($0_1, $0$hi) { + function legalfunc$wasm2js_scratch_store_i64($0_1, $1_1) { $0_1 = $0_1 | 0; - $0$hi = $0$hi | 0; - var i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $8 = 0, $2_1 = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $0$hi; - $2_1 = $0_1; - i64toi32_i32$2 = $0_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = 0; - $8 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + $1_1 = $1_1 | 0; + var $2_1 = 0, $3_1 = 0, $4 = 0; + $4 = $0_1; + $3_1 = 32; + $2_1 = $3_1 & 31 | 0; + if (32 >>> 0 <= ($3_1 & 63 | 0) >>> 0) { + $0_1 = $1_1 >>> $2_1 | 0 } else { - { - i64toi32_i32$1 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $8 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $2_1 | 0) - 1 | 0) & $1_1 | 0) << (32 - $2_1 | 0) | 0 | ($0_1 >>> $2_1 | 0) | 0 } - legalimport$wasm2js_scratch_store_i64($2_1 | 0, $8 | 0); + legalimport$wasm2js_scratch_store_i64($4 | 0, $0_1 | 0); } - function _ZN17compiler_builtins3int4sdiv3Div3div17he78fc483e41d7ec7E(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; - var i64toi32_i32$1 = 0, i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, i64toi32_i32$0 = 0, i64toi32_i32$5 = 0, var$2 = 0, var$2$hi = 0, i64toi32_i32$6 = 0, $21 = 0, $22 = 0, $23 = 0, $7$hi = 0, $9 = 0, $9$hi = 0, $14$hi = 0, $16$hi = 0, $17 = 0, $17$hi = 0, $23$hi = 0; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$2 = var$0; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 63; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + function _ZN17compiler_builtins3int4sdiv3Div3div17he78fc483e41d7ec7E($0_1, $1_1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + var $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $10 = 0, $11 = 0, $12 = 0; + $8 = $1_1; + $7 = $0_1; + $6 = 63; + $5 = $6 & 31 | 0; + if (32 >>> 0 <= ($6 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$0 >> 31 | 0; - $21 = i64toi32_i32$0 >> i64toi32_i32$4 | 0; + $4 = $8 >> 31 | 0; + $5 = $8 >> $5 | 0; } } else { { - i64toi32_i32$1 = i64toi32_i32$0 >> i64toi32_i32$4 | 0; - $21 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; + $4 = $8 >> $5 | 0; + $5 = (((1 << $5 | 0) - 1 | 0) & $8 | 0) << (32 - $5 | 0) | 0 | ($7 >>> $5 | 0) | 0; } } - var$2 = $21; - var$2$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$1 = var$2$hi; - i64toi32_i32$0 = var$2; - i64toi32_i32$2 = var$0$hi; - i64toi32_i32$3 = var$0; - i64toi32_i32$2 = i64toi32_i32$1 ^ i64toi32_i32$2 | 0; - $7$hi = i64toi32_i32$2; - i64toi32_i32$2 = i64toi32_i32$1; - i64toi32_i32$2 = $7$hi; - i64toi32_i32$1 = i64toi32_i32$0 ^ i64toi32_i32$3 | 0; - i64toi32_i32$0 = var$2$hi; - i64toi32_i32$3 = var$2; - i64toi32_i32$4 = i64toi32_i32$1 - i64toi32_i32$3 | 0; - i64toi32_i32$6 = i64toi32_i32$1 >>> 0 < i64toi32_i32$3 >>> 0; - i64toi32_i32$5 = i64toi32_i32$6 + i64toi32_i32$0 | 0; - i64toi32_i32$5 = i64toi32_i32$2 - i64toi32_i32$5 | 0; - $9 = i64toi32_i32$4; - $9$hi = i64toi32_i32$5; - i64toi32_i32$5 = var$1$hi; - i64toi32_i32$2 = var$1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 63; - i64toi32_i32$0 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + $10 = $4; + $4 = $10; + $8 = $5; + $7 = $1_1; + $6 = $0_1; + $7 = $4 ^ $7 | 0; + $4 = $8 ^ $6 | 0; + $8 = $10; + $6 = $5; + $5 = $4 - $6 | 0; + $10 = $4 >>> 0 < $6 >>> 0; + $9 = $10 + $8 | 0; + $9 = $7 - $9 | 0; + $11 = $5; + $12 = $9; + $9 = $3_1; + $7 = $2_1; + $6 = 63; + $8 = $6 & 31 | 0; + if (32 >>> 0 <= ($6 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$5 >> 31 | 0; - $22 = i64toi32_i32$5 >> i64toi32_i32$0 | 0; + $4 = $9 >> 31 | 0; + $5 = $9 >> $8 | 0; } } else { { - i64toi32_i32$1 = i64toi32_i32$5 >> i64toi32_i32$0 | 0; - $22 = (((1 << i64toi32_i32$0 | 0) - 1 | 0) & i64toi32_i32$5 | 0) << (32 - i64toi32_i32$0 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$0 | 0) | 0; + $4 = $9 >> $8 | 0; + $5 = (((1 << $8 | 0) - 1 | 0) & $9 | 0) << (32 - $8 | 0) | 0 | ($7 >>> $8 | 0) | 0; } } - var$2 = $22; - var$2$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = var$2$hi; - i64toi32_i32$5 = var$2; - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$3 = var$1; - i64toi32_i32$2 = i64toi32_i32$1 ^ i64toi32_i32$2 | 0; - $14$hi = i64toi32_i32$2; - i64toi32_i32$2 = i64toi32_i32$1; - i64toi32_i32$2 = $14$hi; - i64toi32_i32$1 = i64toi32_i32$5 ^ i64toi32_i32$3 | 0; - i64toi32_i32$5 = var$2$hi; - i64toi32_i32$3 = var$2; - i64toi32_i32$0 = i64toi32_i32$1 - i64toi32_i32$3 | 0; - i64toi32_i32$6 = i64toi32_i32$1 >>> 0 < i64toi32_i32$3 >>> 0; - i64toi32_i32$4 = i64toi32_i32$6 + i64toi32_i32$5 | 0; - i64toi32_i32$4 = i64toi32_i32$2 - i64toi32_i32$4 | 0; - $16$hi = i64toi32_i32$4; - i64toi32_i32$4 = $9$hi; - i64toi32_i32$1 = $16$hi; - i64toi32_i32$1 = __wasm_i64_udiv($9 | 0, i64toi32_i32$4 | 0, i64toi32_i32$0 | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$4 = i64toi32_i32$HIGH_BITS; - $17 = i64toi32_i32$1; - $17$hi = i64toi32_i32$4; - i64toi32_i32$4 = var$1$hi; - i64toi32_i32$4 = var$0$hi; - i64toi32_i32$4 = var$1$hi; - i64toi32_i32$2 = var$1; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$3 = var$0; - i64toi32_i32$1 = i64toi32_i32$4 ^ i64toi32_i32$1 | 0; - i64toi32_i32$4 = i64toi32_i32$2 ^ i64toi32_i32$3 | 0; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 63; - i64toi32_i32$5 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + $10 = $4; + $4 = $10; + $9 = $5; + $7 = $3_1; + $6 = $2_1; + $7 = $4 ^ $7 | 0; + $4 = $9 ^ $6 | 0; + $9 = $10; + $6 = $5; + $8 = $4 - $6 | 0; + $10 = $4 >>> 0 < $6 >>> 0; + $5 = $10 + $9 | 0; + $5 = $7 - $5 | 0; + $4 = $5; + $5 = $12; + $4 = __wasm_i64_udiv($11 | 0, $5 | 0, $8 | 0, $4 | 0) | 0; + $5 = i64toi32_i32$HIGH_BITS; + $10 = $4; + $8 = $5; + $5 = $3_1; + $7 = $2_1; + $4 = $1_1; + $6 = $0_1; + $4 = $5 ^ $4 | 0; + $5 = $7 ^ $6 | 0; + $6 = 63; + $9 = $6 & 31 | 0; + if (32 >>> 0 <= ($6 & 63 | 0) >>> 0) { { - i64toi32_i32$2 = i64toi32_i32$1 >> 31 | 0; - $23 = i64toi32_i32$1 >> i64toi32_i32$5 | 0; + $7 = $4 >> 31 | 0; + $0_1 = $4 >> $9 | 0; } } else { { - i64toi32_i32$2 = i64toi32_i32$1 >> i64toi32_i32$5 | 0; - $23 = (((1 << i64toi32_i32$5 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$5 | 0) | 0 | (i64toi32_i32$4 >>> i64toi32_i32$5 | 0) | 0; + $7 = $4 >> $9 | 0; + $0_1 = (((1 << $9 | 0) - 1 | 0) & $4 | 0) << (32 - $9 | 0) | 0 | ($5 >>> $9 | 0) | 0; } } - var$0 = $23; - var$0$hi = i64toi32_i32$2; - i64toi32_i32$2 = $17$hi; - i64toi32_i32$1 = $17; - i64toi32_i32$4 = var$0$hi; - i64toi32_i32$3 = var$0; - i64toi32_i32$4 = i64toi32_i32$2 ^ i64toi32_i32$4 | 0; - $23$hi = i64toi32_i32$4; - i64toi32_i32$4 = var$0$hi; - i64toi32_i32$4 = $23$hi; - i64toi32_i32$2 = i64toi32_i32$1 ^ i64toi32_i32$3 | 0; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$5 = i64toi32_i32$2 - i64toi32_i32$3 | 0; - i64toi32_i32$6 = i64toi32_i32$2 >>> 0 < i64toi32_i32$3 >>> 0; - i64toi32_i32$0 = i64toi32_i32$6 + i64toi32_i32$1 | 0; - i64toi32_i32$0 = i64toi32_i32$4 - i64toi32_i32$0 | 0; - i64toi32_i32$2 = i64toi32_i32$5; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$2 | 0; + $1_1 = $7; + $7 = $8; + $4 = $10; + $5 = $1_1; + $6 = $0_1; + $5 = $7 ^ $5 | 0; + $7 = $4 ^ $6 | 0; + $4 = $1_1; + $9 = $7 - $6 | 0; + $10 = $7 >>> 0 < $6 >>> 0; + $8 = $10 + $4 | 0; + $8 = $5 - $8 | 0; + $7 = $9; + i64toi32_i32$HIGH_BITS = $8; + return $7 | 0; } - function _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$3 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, i64toi32_i32$5 = 0, var$2 = 0, var$3 = 0, var$4 = 0, var$5 = 0, var$5$hi = 0, var$6 = 0, var$6$hi = 0, i64toi32_i32$6 = 0, $37 = 0, $38 = 0, $39 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0, $44 = 0, var$8$hi = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0, var$7$hi = 0, $49 = 0, $63$hi = 0, $65 = 0, $65$hi = 0, $120$hi = 0, $129$hi = 0, $134$hi = 0, var$8 = 0, $140 = 0, $140$hi = 0, $142$hi = 0, $144 = 0, $144$hi = 0, $151 = 0, $151$hi = 0, $154$hi = 0, var$7 = 0, $165$hi = 0; + function _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E($0_1, $1_1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + var $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $20 = 0; label$1 : { label$2 : { label$3 : { @@ -417,394 +344,335 @@ function asmFunc(global, env, buffer) { label$8 : { label$9 : { label$11 : { - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$2 = var$0; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = 0; - $37 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + $7 = $1_1; + $5 = $0_1; + $4 = 32; + $6 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { + $10 = $7 >>> $6 | 0 } else { - { - i64toi32_i32$1 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $37 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $10 = (((1 << $6 | 0) - 1 | 0) & $7 | 0) << (32 - $6 | 0) | 0 | ($5 >>> $6 | 0) | 0 } - var$2 = $37; - if (var$2) { + if ($10) { { - i64toi32_i32$1 = var$1$hi; - var$3 = var$1; - if (!var$3) { + $8 = $2_1; + if (!$8) { break label$11 } - i64toi32_i32$1 = var$1$hi; - i64toi32_i32$0 = var$1; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $38 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + $9 = $3_1; + $7 = $2_1; + $4 = 32; + $6 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { + $11 = $9 >>> $6 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $38 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$0 >>> i64toi32_i32$4 | 0) | 0; - } + $11 = (((1 << $6 | 0) - 1 | 0) & $9 | 0) << (32 - $6 | 0) | 0 | ($7 >>> $6 | 0) | 0 } - var$4 = $38; - if (!var$4) { + if (!$11) { break label$9 } - var$2 = Math_clz32(var$4) - Math_clz32(var$2) | 0; - if (var$2 >>> 0 <= 31 >>> 0) { + $10 = Math_clz32($11) - Math_clz32($10) | 0; + if ($10 >>> 0 <= 31 >>> 0) { break label$8 } break label$2; } } - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$1 = var$1; - i64toi32_i32$0 = 1; - i64toi32_i32$3 = 0; - if (i64toi32_i32$2 >>> 0 > i64toi32_i32$0 >>> 0 | ((i64toi32_i32$2 | 0) == (i64toi32_i32$0 | 0) & i64toi32_i32$1 >>> 0 >= i64toi32_i32$3 >>> 0 | 0) | 0) { + $5 = $3_1; + $9 = $2_1; + $7 = 1; + $4 = 0; + if ($5 >>> 0 > $7 >>> 0 | (($5 | 0) == ($7 | 0) & $9 >>> 0 >= $4 >>> 0 | 0) | 0) { break label$2 } - i64toi32_i32$1 = var$0$hi; - var$2 = var$0; - i64toi32_i32$1 = var$1$hi; - var$3 = var$1; - var$2 = (var$2 >>> 0) / (var$3 >>> 0) | 0; - i64toi32_i32$1 = 0; - legalfunc$wasm2js_scratch_store_i64(var$0 - Math_imul(var$2, var$3) | 0 | 0, i64toi32_i32$1 | 0); - i64toi32_i32$1 = 0; - i64toi32_i32$2 = var$2; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$2 | 0; + $10 = $0_1; + $8 = $2_1; + $10 = ($10 >>> 0) / ($8 >>> 0) | 0; + $9 = 0; + legalfunc$wasm2js_scratch_store_i64($0_1 - Math_imul($10, $8) | 0 | 0, $9 | 0); + $9 = 0; + $5 = $10; + i64toi32_i32$HIGH_BITS = $9; + return $5 | 0; } - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$3 = var$1; - i64toi32_i32$1 = 0; - i64toi32_i32$0 = 32; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = 0; - $39 = i64toi32_i32$2 >>> i64toi32_i32$4 | 0; - } + $5 = $3_1; + $4 = $2_1; + $7 = 32; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { + $8 = $5 >>> $6 | 0 } else { - { - i64toi32_i32$1 = i64toi32_i32$2 >>> i64toi32_i32$4 | 0; - $39 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$2 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$3 >>> i64toi32_i32$4 | 0) | 0; - } + $8 = (((1 << $6 | 0) - 1 | 0) & $5 | 0) << (32 - $6 | 0) | 0 | ($4 >>> $6 | 0) | 0 } - var$3 = $39; - i64toi32_i32$1 = var$0$hi; - if (!var$0) { + if (!$0_1) { break label$7 } - if (!var$3) { + if (!$8) { break label$6 } - var$4 = var$3 + -1 | 0; - if (var$4 & var$3 | 0) { + $11 = $8 + -1 | 0; + if ($11 & $8 | 0) { break label$6 } - i64toi32_i32$1 = 0; - i64toi32_i32$2 = var$4 & var$2 | 0; - i64toi32_i32$3 = 0; - i64toi32_i32$0 = 32; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $9 = 0; + $5 = $11 & $10 | 0; + $7 = 32; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$3 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $40 = 0; + $4 = $5 << $6 | 0; + $3_1 = 0; } } else { { - i64toi32_i32$3 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$1 << i64toi32_i32$4 | 0) | 0; - $40 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $4 = ((1 << $6 | 0) - 1 | 0) & ($5 >>> (32 - $6 | 0) | 0) | 0 | ($9 << $6 | 0) | 0; + $3_1 = $5 << $6 | 0; } } - $63$hi = i64toi32_i32$3; - i64toi32_i32$3 = var$0$hi; - i64toi32_i32$1 = var$0; - i64toi32_i32$2 = 0; - i64toi32_i32$0 = -1; - i64toi32_i32$2 = i64toi32_i32$3 & i64toi32_i32$2 | 0; - $65 = i64toi32_i32$1 & i64toi32_i32$0 | 0; - $65$hi = i64toi32_i32$2; - i64toi32_i32$2 = $63$hi; - i64toi32_i32$3 = $40; - i64toi32_i32$1 = $65$hi; - i64toi32_i32$0 = $65; - i64toi32_i32$1 = i64toi32_i32$2 | i64toi32_i32$1 | 0; - legalfunc$wasm2js_scratch_store_i64(i64toi32_i32$3 | i64toi32_i32$0 | 0 | 0, i64toi32_i32$1 | 0); - i64toi32_i32$1 = 0; - i64toi32_i32$3 = var$2 >>> ((__wasm_ctz_i32(var$3 | 0) | 0) & 31 | 0) | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$3 | 0; + $2_1 = $4; + $4 = $1_1; + $9 = $0_1; + $5 = 0; + $7 = -1; + $5 = $4 & $5 | 0; + $7 = $9 & $7 | 0; + $9 = $5; + $5 = $2_1; + $4 = $3_1; + $9 = $5 | $9 | 0; + legalfunc$wasm2js_scratch_store_i64($4 | $7 | 0 | 0, $9 | 0); + $9 = 0; + $4 = $10 >>> ((__wasm_ctz_i32($8 | 0) | 0) & 31 | 0) | 0; + i64toi32_i32$HIGH_BITS = $9; + return $4 | 0; } - var$4 = var$3 + -1 | 0; - if (!(var$4 & var$3 | 0)) { + $11 = $8 + -1 | 0; + if (!($11 & $8 | 0)) { break label$5 } - var$2 = (Math_clz32(var$3) + 33 | 0) - Math_clz32(var$2) | 0; - var$3 = 0 - var$2 | 0; + $10 = (Math_clz32($8) + 33 | 0) - Math_clz32($10) | 0; + $8 = 0 - $10 | 0; break label$3; } - var$3 = 63 - var$2 | 0; - var$2 = var$2 + 1 | 0; + $8 = 63 - $10 | 0; + $10 = $10 + 1 | 0; break label$3; } - var$4 = (var$2 >>> 0) / (var$3 >>> 0) | 0; - i64toi32_i32$3 = 0; - i64toi32_i32$2 = var$2 - Math_imul(var$4, var$3) | 0; - i64toi32_i32$1 = 0; - i64toi32_i32$0 = 32; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $11 = ($10 >>> 0) / ($8 >>> 0) | 0; + $4 = 0; + $5 = $10 - Math_imul($11, $8) | 0; + $7 = 32; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $41 = 0; + $9 = $5 << $6 | 0; + $0_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$3 << i64toi32_i32$4 | 0) | 0; - $41 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $9 = ((1 << $6 | 0) - 1 | 0) & ($5 >>> (32 - $6 | 0) | 0) | 0 | ($4 << $6 | 0) | 0; + $0_1 = $5 << $6 | 0; } } - legalfunc$wasm2js_scratch_store_i64($41 | 0, i64toi32_i32$1 | 0); - i64toi32_i32$1 = 0; - i64toi32_i32$2 = var$4; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$2 | 0; + legalfunc$wasm2js_scratch_store_i64($0_1 | 0, $9 | 0); + $9 = 0; + $5 = $11; + i64toi32_i32$HIGH_BITS = $9; + return $5 | 0; } - var$2 = Math_clz32(var$3) - Math_clz32(var$2) | 0; - if (var$2 >>> 0 < 31 >>> 0) { + $10 = Math_clz32($8) - Math_clz32($10) | 0; + if ($10 >>> 0 < 31 >>> 0) { break label$4 } break label$2; } - i64toi32_i32$2 = var$0$hi; - i64toi32_i32$2 = 0; - legalfunc$wasm2js_scratch_store_i64(var$4 & var$0 | 0 | 0, i64toi32_i32$2 | 0); - if ((var$3 | 0) == (1 | 0)) { + $5 = 0; + legalfunc$wasm2js_scratch_store_i64($11 & $0_1 | 0 | 0, $5 | 0); + if (($8 | 0) == (1 | 0)) { break label$1 } - i64toi32_i32$2 = var$0$hi; - i64toi32_i32$2 = 0; - $120$hi = i64toi32_i32$2; - i64toi32_i32$2 = var$0$hi; - i64toi32_i32$3 = var$0; - i64toi32_i32$1 = $120$hi; - i64toi32_i32$0 = __wasm_ctz_i32(var$3 | 0) | 0; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $5 = 0; + $9 = $5; + $5 = $1_1; + $4 = $0_1; + $7 = __wasm_ctz_i32($8 | 0) | 0; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = 0; - $42 = i64toi32_i32$2 >>> i64toi32_i32$4 | 0; + $9 = 0; + $4 = $5 >>> $6 | 0; } } else { { - i64toi32_i32$1 = i64toi32_i32$2 >>> i64toi32_i32$4 | 0; - $42 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$2 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$3 >>> i64toi32_i32$4 | 0) | 0; + $9 = $5 >>> $6 | 0; + $4 = (((1 << $6 | 0) - 1 | 0) & $5 | 0) << (32 - $6 | 0) | 0 | ($4 >>> $6 | 0) | 0; } } - i64toi32_i32$3 = $42; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$3 | 0; + i64toi32_i32$HIGH_BITS = $9; + return $4 | 0; } - var$3 = 63 - var$2 | 0; - var$2 = var$2 + 1 | 0; + $8 = 63 - $10 | 0; + $10 = $10 + 1 | 0; } - i64toi32_i32$3 = var$0$hi; - i64toi32_i32$3 = 0; - $129$hi = i64toi32_i32$3; - i64toi32_i32$3 = var$0$hi; - i64toi32_i32$2 = var$0; - i64toi32_i32$1 = $129$hi; - i64toi32_i32$0 = var$2 & 63 | 0; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $4 = 0; + $9 = $4; + $4 = $1_1; + $5 = $0_1; + $7 = $10 & 63 | 0; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = 0; - $43 = i64toi32_i32$3 >>> i64toi32_i32$4 | 0; + $9 = 0; + $13 = $4 >>> $6 | 0; } } else { { - i64toi32_i32$1 = i64toi32_i32$3 >>> i64toi32_i32$4 | 0; - $43 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$3 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; + $9 = $4 >>> $6 | 0; + $13 = (((1 << $6 | 0) - 1 | 0) & $4 | 0) << (32 - $6 | 0) | 0 | ($5 >>> $6 | 0) | 0; } } - var$5 = $43; - var$5$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$1 = 0; - $134$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$3 = var$0; - i64toi32_i32$2 = $134$hi; - i64toi32_i32$0 = var$3 & 63 | 0; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $11 = $9; + $9 = 0; + $5 = $9; + $9 = $1_1; + $4 = $0_1; + $7 = $8 & 63 | 0; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$2 = i64toi32_i32$3 << i64toi32_i32$4 | 0; - $44 = 0; + $5 = $4 << $6 | 0; + $0_1 = 0; } } else { { - i64toi32_i32$2 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$3 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$1 << i64toi32_i32$4 | 0) | 0; - $44 = i64toi32_i32$3 << i64toi32_i32$4 | 0; + $5 = ((1 << $6 | 0) - 1 | 0) & ($4 >>> (32 - $6 | 0) | 0) | 0 | ($9 << $6 | 0) | 0; + $0_1 = $4 << $6 | 0; } } - var$0 = $44; - var$0$hi = i64toi32_i32$2; + $1_1 = $5; label$13 : { - if (var$2) { + if ($10) { { - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$1 = var$1; - i64toi32_i32$3 = -1; - i64toi32_i32$0 = -1; - i64toi32_i32$4 = i64toi32_i32$1 + i64toi32_i32$0 | 0; - i64toi32_i32$5 = i64toi32_i32$2 + i64toi32_i32$3 | 0; - if (i64toi32_i32$4 >>> 0 < i64toi32_i32$0 >>> 0) { - i64toi32_i32$5 = i64toi32_i32$5 + 1 | 0 + $5 = $3_1; + $9 = $2_1; + $4 = -1; + $7 = -1; + $6 = $9 + $7 | 0; + $8 = $5 + $4 | 0; + if ($6 >>> 0 < $7 >>> 0) { + $8 = $8 + 1 | 0 } - var$8 = i64toi32_i32$4; - var$8$hi = i64toi32_i32$5; + $17 = $6; + $15 = $8; label$15 : while (1) { - i64toi32_i32$5 = var$5$hi; - i64toi32_i32$2 = var$5; - i64toi32_i32$1 = 0; - i64toi32_i32$0 = 1; - i64toi32_i32$3 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $8 = $11; + $5 = $13; + $7 = 1; + $4 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$3 | 0; - $45 = 0; + $9 = $5 << $4 | 0; + $12 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$3 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$3 | 0) | 0) | 0 | (i64toi32_i32$5 << i64toi32_i32$3 | 0) | 0; - $45 = i64toi32_i32$2 << i64toi32_i32$3 | 0; + $9 = ((1 << $4 | 0) - 1 | 0) & ($5 >>> (32 - $4 | 0) | 0) | 0 | ($8 << $4 | 0) | 0; + $12 = $5 << $4 | 0; } } - $140 = $45; - $140$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$5 = var$0; - i64toi32_i32$2 = 0; - i64toi32_i32$0 = 63; - i64toi32_i32$3 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $11 = $9; + $9 = $1_1; + $8 = $0_1; + $7 = 63; + $4 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$2 = 0; - $46 = i64toi32_i32$1 >>> i64toi32_i32$3 | 0; + $5 = 0; + $7 = $9 >>> $4 | 0; } } else { { - i64toi32_i32$2 = i64toi32_i32$1 >>> i64toi32_i32$3 | 0; - $46 = (((1 << i64toi32_i32$3 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$3 | 0) | 0 | (i64toi32_i32$5 >>> i64toi32_i32$3 | 0) | 0; + $5 = $9 >>> $4 | 0; + $7 = (((1 << $4 | 0) - 1 | 0) & $9 | 0) << (32 - $4 | 0) | 0 | ($8 >>> $4 | 0) | 0; } } - $142$hi = i64toi32_i32$2; - i64toi32_i32$2 = $140$hi; - i64toi32_i32$1 = $140; - i64toi32_i32$5 = $142$hi; - i64toi32_i32$0 = $46; - i64toi32_i32$5 = i64toi32_i32$2 | i64toi32_i32$5 | 0; - var$5 = i64toi32_i32$1 | i64toi32_i32$0 | 0; - var$5$hi = i64toi32_i32$5; - $144 = var$5; - $144$hi = i64toi32_i32$5; - i64toi32_i32$5 = var$8$hi; - i64toi32_i32$5 = var$5$hi; - i64toi32_i32$5 = var$8$hi; - i64toi32_i32$2 = var$8; - i64toi32_i32$1 = var$5$hi; - i64toi32_i32$0 = var$5; - i64toi32_i32$3 = i64toi32_i32$2 - i64toi32_i32$0 | 0; - i64toi32_i32$6 = i64toi32_i32$2 >>> 0 < i64toi32_i32$0 >>> 0; - i64toi32_i32$4 = i64toi32_i32$6 + i64toi32_i32$1 | 0; - i64toi32_i32$4 = i64toi32_i32$5 - i64toi32_i32$4 | 0; - i64toi32_i32$5 = i64toi32_i32$3; - i64toi32_i32$2 = 0; - i64toi32_i32$0 = 63; - i64toi32_i32$1 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $8 = $5; + $5 = $11; + $9 = $12; + $8 = $5 | $8 | 0; + $13 = $9 | $7 | 0; + $11 = $8; + $18 = $13; + $19 = $8; + $8 = $15; + $5 = $17; + $9 = $11; + $7 = $13; + $4 = $5 - $7 | 0; + $5 = $5 >>> 0 < $7 >>> 0; + $6 = $5 + $9 | 0; + $6 = $8 - $6 | 0; + $8 = $4; + $7 = 63; + $9 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$2 = i64toi32_i32$4 >> 31 | 0; - $47 = i64toi32_i32$4 >> i64toi32_i32$1 | 0; + $5 = $6 >> 31 | 0; + $14 = $6 >> $9 | 0; } } else { { - i64toi32_i32$2 = i64toi32_i32$4 >> i64toi32_i32$1 | 0; - $47 = (((1 << i64toi32_i32$1 | 0) - 1 | 0) & i64toi32_i32$4 | 0) << (32 - i64toi32_i32$1 | 0) | 0 | (i64toi32_i32$5 >>> i64toi32_i32$1 | 0) | 0; + $5 = $6 >> $9 | 0; + $14 = (((1 << $9 | 0) - 1 | 0) & $6 | 0) << (32 - $9 | 0) | 0 | ($8 >>> $9 | 0) | 0; } } - var$6 = $47; - var$6$hi = i64toi32_i32$2; - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$2 = var$6$hi; - i64toi32_i32$4 = var$6; - i64toi32_i32$5 = var$1$hi; - i64toi32_i32$0 = var$1; - i64toi32_i32$5 = i64toi32_i32$2 & i64toi32_i32$5 | 0; - $151 = i64toi32_i32$4 & i64toi32_i32$0 | 0; - $151$hi = i64toi32_i32$5; - i64toi32_i32$5 = $144$hi; - i64toi32_i32$2 = $144; - i64toi32_i32$4 = $151$hi; - i64toi32_i32$0 = $151; - i64toi32_i32$1 = i64toi32_i32$2 - i64toi32_i32$0 | 0; - i64toi32_i32$6 = i64toi32_i32$2 >>> 0 < i64toi32_i32$0 >>> 0; - i64toi32_i32$3 = i64toi32_i32$6 + i64toi32_i32$4 | 0; - i64toi32_i32$3 = i64toi32_i32$5 - i64toi32_i32$3 | 0; - var$5 = i64toi32_i32$1; - var$5$hi = i64toi32_i32$3; - i64toi32_i32$3 = var$0$hi; - i64toi32_i32$5 = var$0; - i64toi32_i32$2 = 0; - i64toi32_i32$0 = 1; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $12 = $5; + $5 = $12; + $6 = $14; + $8 = $3_1; + $7 = $2_1; + $8 = $5 & $8 | 0; + $7 = $6 & $7 | 0; + $6 = $8; + $8 = $19; + $5 = $18; + $9 = $5 - $7 | 0; + $5 = $5 >>> 0 < $7 >>> 0; + $4 = $5 + $6 | 0; + $4 = $8 - $4 | 0; + $13 = $9; + $11 = $4; + $4 = $1_1; + $8 = $0_1; + $7 = 1; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$2 = i64toi32_i32$5 << i64toi32_i32$4 | 0; - $48 = 0; + $5 = $8 << $6 | 0; + $4 = 0; } } else { { - i64toi32_i32$2 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$5 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$3 << i64toi32_i32$4 | 0) | 0; - $48 = i64toi32_i32$5 << i64toi32_i32$4 | 0; + $5 = ((1 << $6 | 0) - 1 | 0) & ($8 >>> (32 - $6 | 0) | 0) | 0 | ($4 << $6 | 0) | 0; + $4 = $8 << $6 | 0; } } - $154$hi = i64toi32_i32$2; - i64toi32_i32$2 = var$7$hi; - i64toi32_i32$2 = $154$hi; - i64toi32_i32$3 = $48; - i64toi32_i32$5 = var$7$hi; - i64toi32_i32$0 = var$7; - i64toi32_i32$5 = i64toi32_i32$2 | i64toi32_i32$5 | 0; - var$0 = i64toi32_i32$3 | i64toi32_i32$0 | 0; - var$0$hi = i64toi32_i32$5; - i64toi32_i32$5 = var$6$hi; - i64toi32_i32$2 = var$6; - i64toi32_i32$3 = 0; - i64toi32_i32$0 = 1; - i64toi32_i32$3 = i64toi32_i32$5 & i64toi32_i32$3 | 0; - var$6 = i64toi32_i32$2 & i64toi32_i32$0 | 0; - var$6$hi = i64toi32_i32$3; - var$7 = var$6; - var$7$hi = i64toi32_i32$3; - var$2 = var$2 + -1 | 0; - if (var$2) { + $8 = $16; + $7 = $20; + $8 = $5 | $8 | 0; + $0_1 = $4 | $7 | 0; + $1_1 = $8; + $8 = $12; + $5 = $14; + $4 = 0; + $7 = 1; + $4 = $8 & $4 | 0; + $14 = $5 & $7 | 0; + $12 = $4; + $20 = $14; + $16 = $4; + $10 = $10 + -1 | 0; + if ($10) { continue label$15 } break label$15; @@ -813,83 +681,68 @@ function asmFunc(global, env, buffer) { } } } - i64toi32_i32$3 = var$5$hi; - legalfunc$wasm2js_scratch_store_i64(var$5 | 0, i64toi32_i32$3 | 0); - i64toi32_i32$3 = var$0$hi; - i64toi32_i32$5 = var$0; - i64toi32_i32$2 = 0; - i64toi32_i32$0 = 1; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $4 = $11; + legalfunc$wasm2js_scratch_store_i64($13 | 0, $4 | 0); + $4 = $1_1; + $8 = $0_1; + $7 = 1; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$2 = i64toi32_i32$5 << i64toi32_i32$4 | 0; - $49 = 0; + $5 = $8 << $6 | 0; + $4 = 0; } } else { { - i64toi32_i32$2 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$5 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$3 << i64toi32_i32$4 | 0) | 0; - $49 = i64toi32_i32$5 << i64toi32_i32$4 | 0; + $5 = ((1 << $6 | 0) - 1 | 0) & ($8 >>> (32 - $6 | 0) | 0) | 0 | ($4 << $6 | 0) | 0; + $4 = $8 << $6 | 0; } } - $165$hi = i64toi32_i32$2; - i64toi32_i32$2 = var$6$hi; - i64toi32_i32$2 = $165$hi; - i64toi32_i32$3 = $49; - i64toi32_i32$5 = var$6$hi; - i64toi32_i32$0 = var$6; - i64toi32_i32$5 = i64toi32_i32$2 | i64toi32_i32$5 | 0; - i64toi32_i32$3 = i64toi32_i32$3 | i64toi32_i32$0 | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$5; - return i64toi32_i32$3 | 0; + $8 = $12; + $7 = $14; + $8 = $5 | $8 | 0; + $4 = $4 | $7 | 0; + i64toi32_i32$HIGH_BITS = $8; + return $4 | 0; } - i64toi32_i32$3 = var$0$hi; - legalfunc$wasm2js_scratch_store_i64(var$0 | 0, i64toi32_i32$3 | 0); - i64toi32_i32$3 = 0; - var$0 = 0; - var$0$hi = i64toi32_i32$3; + $4 = $1_1; + legalfunc$wasm2js_scratch_store_i64($0_1 | 0, $4 | 0); + $4 = 0; + $0_1 = 0; + $1_1 = $4; } - i64toi32_i32$3 = var$0$hi; - i64toi32_i32$5 = var$0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$3; - return i64toi32_i32$5 | 0; + $4 = $1_1; + $8 = $0_1; + i64toi32_i32$HIGH_BITS = $4; + return $8 | 0; } - function __wasm_i64_sdiv(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$0 = var$1$hi; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = _ZN17compiler_builtins3int4sdiv3Div3div17he78fc483e41d7ec7E(var$0 | 0, i64toi32_i32$0 | 0, var$1 | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + function __wasm_i64_sdiv($0_1, $1_1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + $3_1 = _ZN17compiler_builtins3int4sdiv3Div3div17he78fc483e41d7ec7E($0_1 | 0, $1_1 | 0, $2_1 | 0, $3_1 | 0) | 0; + $1_1 = i64toi32_i32$HIGH_BITS; + i64toi32_i32$HIGH_BITS = $1_1; + return $3_1 | 0; } - function __wasm_i64_udiv(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$0 = var$1$hi; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E(var$0 | 0, i64toi32_i32$0 | 0, var$1 | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + function __wasm_i64_udiv($0_1, $1_1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + $3_1 = _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E($0_1 | 0, $1_1 | 0, $2_1 | 0, $3_1 | 0) | 0; + $1_1 = i64toi32_i32$HIGH_BITS; + i64toi32_i32$HIGH_BITS = $1_1; + return $3_1 | 0; } - function __wasm_ctz_i32(var$0) { - var$0 = var$0 | 0; - if (var$0) { - return 31 - Math_clz32((var$0 + -1 | 0) ^ var$0 | 0) | 0 | 0 + function __wasm_ctz_i32($0_1) { + $0_1 = $0_1 | 0; + if ($0_1) { + return 31 - Math_clz32(($0_1 + -1 | 0) ^ $0_1 | 0) | 0 | 0 } return 32 | 0; } @@ -953,48 +806,38 @@ function asmFunc(global, env, buffer) { var setTempRet0 = env.setTempRet0; var getTempRet0 = env.getTempRet0; var i64toi32_i32$HIGH_BITS = 0; - function $0(x, y) { - x = x | 0; - y = y | 0; - return (x | 0) % (y | 0) | 0 | 0; + function $0($0_1, $1_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + return ($0_1 | 0) % ($1_1 | 0) | 0 | 0; } - function $1(x, y) { - x = x | 0; - y = y | 0; - return (x >>> 0) % (y >>> 0) | 0 | 0; + function $1($0_1, $1_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + return ($0_1 >>> 0) % ($1_1 >>> 0) | 0 | 0; } - function $2(x, x$hi, y, y$hi) { - x = x | 0; - x$hi = x$hi | 0; - y = y | 0; - y$hi = y$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = x$hi; - i64toi32_i32$0 = y$hi; - i64toi32_i32$0 = x$hi; - i64toi32_i32$1 = y$hi; - i64toi32_i32$1 = __wasm_i64_srem(x | 0, i64toi32_i32$0 | 0, y | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + function $2($0_1, $1_1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + $3_1 = __wasm_i64_srem($0_1 | 0, $1_1 | 0, $2_1 | 0, $3_1 | 0) | 0; + $1_1 = i64toi32_i32$HIGH_BITS; + i64toi32_i32$HIGH_BITS = $1_1; + return $3_1 | 0; } - function $3(x, x$hi, y, y$hi) { - x = x | 0; - x$hi = x$hi | 0; - y = y | 0; - y$hi = y$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = x$hi; - i64toi32_i32$0 = y$hi; - i64toi32_i32$0 = x$hi; - i64toi32_i32$1 = y$hi; - i64toi32_i32$1 = __wasm_i64_urem(x | 0, i64toi32_i32$0 | 0, y | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + function $3($0_1, $1_1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + $3_1 = __wasm_i64_urem($0_1 | 0, $1_1 | 0, $2_1 | 0, $3_1 | 0) | 0; + $1_1 = i64toi32_i32$HIGH_BITS; + i64toi32_i32$HIGH_BITS = $1_1; + return $3_1 | 0; } function legalstub$2($0_1, $1_1, $2_1, $3_1) { @@ -1002,85 +845,68 @@ function asmFunc(global, env, buffer) { $1_1 = $1_1 | 0; $2_1 = $2_1 | 0; $3_1 = $3_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$3 = 0, $21 = 0, $22 = 0, $23 = 0, $6 = 0, $6$hi = 0, $9$hi = 0, $10 = 0, $10$hi = 0, $12 = 0, $12$hi = 0, $15$hi = 0, $16 = 0, $16$hi = 0, $4 = 0, $4$hi = 0; - i64toi32_i32$0 = 0; - $6 = $0_1; - $6$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0; + $6 = 0; + $7 = $0_1; + $8 = $6; + $6 = 0; + $5 = 32; + $4 = $5 & 31 | 0; + if (32 >>> 0 <= ($5 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $21 = 0; + $0_1 = $1_1 << $4 | 0; + $5 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $21 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $0_1 = ((1 << $4 | 0) - 1 | 0) & ($1_1 >>> (32 - $4 | 0) | 0) | 0 | ($6 << $4 | 0) | 0; + $5 = $1_1 << $4 | 0; } } - $9$hi = i64toi32_i32$1; - i64toi32_i32$1 = $6$hi; - i64toi32_i32$0 = $6; - i64toi32_i32$2 = $9$hi; - i64toi32_i32$3 = $21; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - $10 = i64toi32_i32$0 | i64toi32_i32$3 | 0; - $10$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - $12 = $2_1; - $12$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$1 = $3_1; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + $1_1 = $0_1; + $0_1 = $8; + $6 = $7; + $1_1 = $0_1 | $1_1 | 0; + $9 = $6 | $5 | 0; + $7 = $1_1; + $1_1 = 0; + $8 = $1_1; + $1_1 = 0; + $0_1 = $3_1; + $5 = 32; + $4 = $5 & 31 | 0; + if (32 >>> 0 <= ($5 & 63 | 0) >>> 0) { { - i64toi32_i32$0 = i64toi32_i32$1 << i64toi32_i32$4 | 0; - $22 = 0; + $6 = $0_1 << $4 | 0; + $5 = 0; } } else { { - i64toi32_i32$0 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$1 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$2 << i64toi32_i32$4 | 0) | 0; - $22 = i64toi32_i32$1 << i64toi32_i32$4 | 0; + $6 = ((1 << $4 | 0) - 1 | 0) & ($0_1 >>> (32 - $4 | 0) | 0) | 0 | ($1_1 << $4 | 0) | 0; + $5 = $0_1 << $4 | 0; } } - $15$hi = i64toi32_i32$0; - i64toi32_i32$0 = $12$hi; - i64toi32_i32$2 = $12; - i64toi32_i32$1 = $15$hi; - i64toi32_i32$3 = $22; - i64toi32_i32$1 = i64toi32_i32$0 | i64toi32_i32$1 | 0; - $16 = i64toi32_i32$2 | i64toi32_i32$3 | 0; - $16$hi = i64toi32_i32$1; - i64toi32_i32$1 = $10$hi; - i64toi32_i32$2 = $16$hi; - i64toi32_i32$2 = $2($10 | 0, i64toi32_i32$1 | 0, $16 | 0, i64toi32_i32$2 | 0) | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $4 = i64toi32_i32$2; - $4$hi = i64toi32_i32$1; - i64toi32_i32$0 = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $23 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + $0_1 = $6; + $6 = $8; + $1_1 = $2_1; + $0_1 = $6 | $0_1 | 0; + $2_1 = $1_1 | $5 | 0; + $1_1 = $0_1; + $0_1 = $7; + $1_1 = $2($9 | 0, $0_1 | 0, $2_1 | 0, $1_1 | 0) | 0; + $0_1 = i64toi32_i32$HIGH_BITS; + $3_1 = $1_1; + $2_1 = $0_1; + $6 = $1_1; + $5 = 32; + $4 = $5 & 31 | 0; + if (32 >>> 0 <= ($5 & 63 | 0) >>> 0) { + $0_1 = $0_1 >>> $4 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $23 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$0 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $4 | 0) - 1 | 0) & $0_1 | 0) << (32 - $4 | 0) | 0 | ($6 >>> $4 | 0) | 0 } - setTempRet0($23 | 0); - i64toi32_i32$2 = $4$hi; - return $4 | 0; + setTempRet0($0_1 | 0); + return $3_1 | 0; } function legalstub$3($0_1, $1_1, $2_1, $3_1) { @@ -1088,251 +914,203 @@ function asmFunc(global, env, buffer) { $1_1 = $1_1 | 0; $2_1 = $2_1 | 0; $3_1 = $3_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$3 = 0, $21 = 0, $22 = 0, $23 = 0, $6 = 0, $6$hi = 0, $9$hi = 0, $10 = 0, $10$hi = 0, $12 = 0, $12$hi = 0, $15$hi = 0, $16 = 0, $16$hi = 0, $4 = 0, $4$hi = 0; - i64toi32_i32$0 = 0; - $6 = $0_1; - $6$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0; + $6 = 0; + $7 = $0_1; + $8 = $6; + $6 = 0; + $5 = 32; + $4 = $5 & 31 | 0; + if (32 >>> 0 <= ($5 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $21 = 0; + $0_1 = $1_1 << $4 | 0; + $5 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $21 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $0_1 = ((1 << $4 | 0) - 1 | 0) & ($1_1 >>> (32 - $4 | 0) | 0) | 0 | ($6 << $4 | 0) | 0; + $5 = $1_1 << $4 | 0; } } - $9$hi = i64toi32_i32$1; - i64toi32_i32$1 = $6$hi; - i64toi32_i32$0 = $6; - i64toi32_i32$2 = $9$hi; - i64toi32_i32$3 = $21; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - $10 = i64toi32_i32$0 | i64toi32_i32$3 | 0; - $10$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - $12 = $2_1; - $12$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$1 = $3_1; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + $1_1 = $0_1; + $0_1 = $8; + $6 = $7; + $1_1 = $0_1 | $1_1 | 0; + $9 = $6 | $5 | 0; + $7 = $1_1; + $1_1 = 0; + $8 = $1_1; + $1_1 = 0; + $0_1 = $3_1; + $5 = 32; + $4 = $5 & 31 | 0; + if (32 >>> 0 <= ($5 & 63 | 0) >>> 0) { { - i64toi32_i32$0 = i64toi32_i32$1 << i64toi32_i32$4 | 0; - $22 = 0; + $6 = $0_1 << $4 | 0; + $5 = 0; } } else { { - i64toi32_i32$0 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$1 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$2 << i64toi32_i32$4 | 0) | 0; - $22 = i64toi32_i32$1 << i64toi32_i32$4 | 0; + $6 = ((1 << $4 | 0) - 1 | 0) & ($0_1 >>> (32 - $4 | 0) | 0) | 0 | ($1_1 << $4 | 0) | 0; + $5 = $0_1 << $4 | 0; } } - $15$hi = i64toi32_i32$0; - i64toi32_i32$0 = $12$hi; - i64toi32_i32$2 = $12; - i64toi32_i32$1 = $15$hi; - i64toi32_i32$3 = $22; - i64toi32_i32$1 = i64toi32_i32$0 | i64toi32_i32$1 | 0; - $16 = i64toi32_i32$2 | i64toi32_i32$3 | 0; - $16$hi = i64toi32_i32$1; - i64toi32_i32$1 = $10$hi; - i64toi32_i32$2 = $16$hi; - i64toi32_i32$2 = $3($10 | 0, i64toi32_i32$1 | 0, $16 | 0, i64toi32_i32$2 | 0) | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $4 = i64toi32_i32$2; - $4$hi = i64toi32_i32$1; - i64toi32_i32$0 = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $23 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + $0_1 = $6; + $6 = $8; + $1_1 = $2_1; + $0_1 = $6 | $0_1 | 0; + $2_1 = $1_1 | $5 | 0; + $1_1 = $0_1; + $0_1 = $7; + $1_1 = $3($9 | 0, $0_1 | 0, $2_1 | 0, $1_1 | 0) | 0; + $0_1 = i64toi32_i32$HIGH_BITS; + $3_1 = $1_1; + $2_1 = $0_1; + $6 = $1_1; + $5 = 32; + $4 = $5 & 31 | 0; + if (32 >>> 0 <= ($5 & 63 | 0) >>> 0) { + $0_1 = $0_1 >>> $4 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $23 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$0 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $4 | 0) - 1 | 0) & $0_1 | 0) << (32 - $4 | 0) | 0 | ($6 >>> $4 | 0) | 0 } - setTempRet0($23 | 0); - i64toi32_i32$2 = $4$hi; - return $4 | 0; + setTempRet0($0_1 | 0); + return $3_1 | 0; } function legalfunc$wasm2js_scratch_load_i64() { - var i64toi32_i32$0 = 0, i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $8 = 0, $1_1 = 0, $1$hi = 0, $4$hi = 0; - i64toi32_i32$0 = 0; - $1_1 = legalimport$wasm2js_scratch_load_i64() | 0; - $1$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = getTempRet0() | 0; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $0_1 = 0, $1_1 = 0, $2_1 = 0, $3_1 = 0, $4 = 0, $5 = 0, $6 = 0; + $0_1 = 0; + $5 = legalimport$wasm2js_scratch_load_i64() | 0; + $6 = $0_1; + $0_1 = 0; + $1_1 = getTempRet0() | 0; + $2_1 = 32; + $3_1 = $2_1 & 31 | 0; + if (32 >>> 0 <= ($2_1 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $8 = 0; + $4 = $1_1 << $3_1 | 0; + $2_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $8 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $4 = ((1 << $3_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $3_1 | 0) | 0) | 0 | ($0_1 << $3_1 | 0) | 0; + $2_1 = $1_1 << $3_1 | 0; } } - $4$hi = i64toi32_i32$1; - i64toi32_i32$1 = $1$hi; - i64toi32_i32$0 = $1_1; - i64toi32_i32$2 = $4$hi; - i64toi32_i32$3 = $8; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - i64toi32_i32$0 = i64toi32_i32$0 | i64toi32_i32$3 | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$2; - return i64toi32_i32$0 | 0; + $1_1 = $4; + $4 = $6; + $0_1 = $5; + $1_1 = $4 | $1_1 | 0; + $0_1 = $0_1 | $2_1 | 0; + i64toi32_i32$HIGH_BITS = $1_1; + return $0_1 | 0; } - function legalfunc$wasm2js_scratch_store_i64($0_1, $0$hi) { + function legalfunc$wasm2js_scratch_store_i64($0_1, $1_1) { $0_1 = $0_1 | 0; - $0$hi = $0$hi | 0; - var i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $8 = 0, $2_1 = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $0$hi; - $2_1 = $0_1; - i64toi32_i32$2 = $0_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = 0; - $8 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + $1_1 = $1_1 | 0; + var $2_1 = 0, $3_1 = 0, $4 = 0; + $4 = $0_1; + $3_1 = 32; + $2_1 = $3_1 & 31 | 0; + if (32 >>> 0 <= ($3_1 & 63 | 0) >>> 0) { + $0_1 = $1_1 >>> $2_1 | 0 } else { - { - i64toi32_i32$1 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $8 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $2_1 | 0) - 1 | 0) & $1_1 | 0) << (32 - $2_1 | 0) | 0 | ($0_1 >>> $2_1 | 0) | 0 } - legalimport$wasm2js_scratch_store_i64($2_1 | 0, $8 | 0); + legalimport$wasm2js_scratch_store_i64($4 | 0, $0_1 | 0); } - function _ZN17compiler_builtins3int4sdiv3Mod4mod_17h2cbb7bbf36e41d68E(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; - var i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$2 = 0, i64toi32_i32$0 = 0, i64toi32_i32$3 = 0, i64toi32_i32$5 = 0, var$2$hi = 0, i64toi32_i32$6 = 0, var$2 = 0, $20 = 0, $21 = 0, $7$hi = 0, $9 = 0, $9$hi = 0, $14$hi = 0, $16$hi = 0, $17$hi = 0, $19$hi = 0; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$2 = var$0; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 63; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + function _ZN17compiler_builtins3int4sdiv3Mod4mod_17h2cbb7bbf36e41d68E($0_1, $1_1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + var $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0; + $5 = $1_1; + $8 = $0_1; + $7 = 63; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$0 >> 31 | 0; - $20 = i64toi32_i32$0 >> i64toi32_i32$4 | 0; + $4 = $5 >> 31 | 0; + $11 = $5 >> $6 | 0; } } else { { - i64toi32_i32$1 = i64toi32_i32$0 >> i64toi32_i32$4 | 0; - $20 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; + $4 = $5 >> $6 | 0; + $11 = (((1 << $6 | 0) - 1 | 0) & $5 | 0) << (32 - $6 | 0) | 0 | ($8 >>> $6 | 0) | 0; } } - var$2 = $20; - var$2$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$1 = var$2$hi; - i64toi32_i32$0 = var$2; - i64toi32_i32$2 = var$0$hi; - i64toi32_i32$3 = var$0; - i64toi32_i32$2 = i64toi32_i32$1 ^ i64toi32_i32$2 | 0; - $7$hi = i64toi32_i32$2; - i64toi32_i32$2 = i64toi32_i32$1; - i64toi32_i32$2 = $7$hi; - i64toi32_i32$1 = i64toi32_i32$0 ^ i64toi32_i32$3 | 0; - i64toi32_i32$0 = var$2$hi; - i64toi32_i32$3 = var$2; - i64toi32_i32$4 = i64toi32_i32$1 - i64toi32_i32$3 | 0; - i64toi32_i32$6 = i64toi32_i32$1 >>> 0 < i64toi32_i32$3 >>> 0; - i64toi32_i32$5 = i64toi32_i32$6 + i64toi32_i32$0 | 0; - i64toi32_i32$5 = i64toi32_i32$2 - i64toi32_i32$5 | 0; - $9 = i64toi32_i32$4; - $9$hi = i64toi32_i32$5; - i64toi32_i32$5 = var$1$hi; - i64toi32_i32$2 = var$1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 63; - i64toi32_i32$0 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + $10 = $4; + $4 = $10; + $5 = $11; + $8 = $1_1; + $7 = $0_1; + $8 = $4 ^ $8 | 0; + $4 = $5 ^ $7 | 0; + $5 = $10; + $7 = $11; + $6 = $4 - $7 | 0; + $0_1 = $4 >>> 0 < $7 >>> 0; + $9 = $0_1 + $5 | 0; + $9 = $8 - $9 | 0; + $12 = $6; + $13 = $9; + $9 = $3_1; + $8 = $2_1; + $7 = 63; + $5 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$5 >> 31 | 0; - $21 = i64toi32_i32$5 >> i64toi32_i32$0 | 0; + $4 = $9 >> 31 | 0; + $0_1 = $9 >> $5 | 0; } } else { { - i64toi32_i32$1 = i64toi32_i32$5 >> i64toi32_i32$0 | 0; - $21 = (((1 << i64toi32_i32$0 | 0) - 1 | 0) & i64toi32_i32$5 | 0) << (32 - i64toi32_i32$0 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$0 | 0) | 0; + $4 = $9 >> $5 | 0; + $0_1 = (((1 << $5 | 0) - 1 | 0) & $9 | 0) << (32 - $5 | 0) | 0 | ($8 >>> $5 | 0) | 0; } } - var$0 = $21; - var$0$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$5 = var$0; - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$3 = var$1; - i64toi32_i32$2 = i64toi32_i32$1 ^ i64toi32_i32$2 | 0; - $14$hi = i64toi32_i32$2; - i64toi32_i32$2 = i64toi32_i32$1; - i64toi32_i32$2 = $14$hi; - i64toi32_i32$1 = i64toi32_i32$5 ^ i64toi32_i32$3 | 0; - i64toi32_i32$5 = var$0$hi; - i64toi32_i32$3 = var$0; - i64toi32_i32$0 = i64toi32_i32$1 - i64toi32_i32$3 | 0; - i64toi32_i32$6 = i64toi32_i32$1 >>> 0 < i64toi32_i32$3 >>> 0; - i64toi32_i32$4 = i64toi32_i32$6 + i64toi32_i32$5 | 0; - i64toi32_i32$4 = i64toi32_i32$2 - i64toi32_i32$4 | 0; - $16$hi = i64toi32_i32$4; - i64toi32_i32$4 = $9$hi; - i64toi32_i32$1 = $16$hi; - i64toi32_i32$1 = __wasm_i64_urem($9 | 0, i64toi32_i32$4 | 0, i64toi32_i32$0 | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$4 = i64toi32_i32$HIGH_BITS; - $17$hi = i64toi32_i32$4; - i64toi32_i32$4 = var$2$hi; - i64toi32_i32$4 = $17$hi; - i64toi32_i32$2 = i64toi32_i32$1; - i64toi32_i32$1 = var$2$hi; - i64toi32_i32$3 = var$2; - i64toi32_i32$1 = i64toi32_i32$4 ^ i64toi32_i32$1 | 0; - $19$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$2$hi; - i64toi32_i32$1 = $19$hi; - i64toi32_i32$4 = i64toi32_i32$2 ^ i64toi32_i32$3 | 0; - i64toi32_i32$2 = var$2$hi; - i64toi32_i32$5 = i64toi32_i32$4 - i64toi32_i32$3 | 0; - i64toi32_i32$6 = i64toi32_i32$4 >>> 0 < i64toi32_i32$3 >>> 0; - i64toi32_i32$0 = i64toi32_i32$6 + i64toi32_i32$2 | 0; - i64toi32_i32$0 = i64toi32_i32$1 - i64toi32_i32$0 | 0; - i64toi32_i32$4 = i64toi32_i32$5; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$4 | 0; + $1_1 = $4; + $4 = $1_1; + $9 = $0_1; + $8 = $3_1; + $7 = $2_1; + $8 = $4 ^ $8 | 0; + $4 = $9 ^ $7 | 0; + $9 = $1_1; + $7 = $0_1; + $5 = $4 - $7 | 0; + $0_1 = $4 >>> 0 < $7 >>> 0; + $6 = $0_1 + $9 | 0; + $6 = $8 - $6 | 0; + $4 = $6; + $6 = $13; + $4 = __wasm_i64_urem($12 | 0, $6 | 0, $5 | 0, $4 | 0) | 0; + $6 = i64toi32_i32$HIGH_BITS; + $8 = $4; + $4 = $10; + $7 = $11; + $4 = $6 ^ $4 | 0; + $6 = $8 ^ $7 | 0; + $8 = $10; + $9 = $6 - $7 | 0; + $0_1 = $6 >>> 0 < $7 >>> 0; + $5 = $0_1 + $8 | 0; + $5 = $4 - $5 | 0; + $6 = $9; + i64toi32_i32$HIGH_BITS = $5; + return $6 | 0; } - function _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$3 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, i64toi32_i32$5 = 0, var$2 = 0, var$3 = 0, var$4 = 0, var$5 = 0, var$5$hi = 0, var$6 = 0, var$6$hi = 0, i64toi32_i32$6 = 0, $37 = 0, $38 = 0, $39 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0, $44 = 0, var$8$hi = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0, var$7$hi = 0, $49 = 0, $63$hi = 0, $65 = 0, $65$hi = 0, $120$hi = 0, $129$hi = 0, $134$hi = 0, var$8 = 0, $140 = 0, $140$hi = 0, $142$hi = 0, $144 = 0, $144$hi = 0, $151 = 0, $151$hi = 0, $154$hi = 0, var$7 = 0, $165$hi = 0; + function _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E($0_1, $1_1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + var $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $20 = 0; label$1 : { label$2 : { label$3 : { @@ -1343,394 +1121,335 @@ function asmFunc(global, env, buffer) { label$8 : { label$9 : { label$11 : { - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$2 = var$0; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = 0; - $37 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - } + $7 = $1_1; + $5 = $0_1; + $4 = 32; + $6 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { + $10 = $7 >>> $6 | 0 } else { - { - i64toi32_i32$1 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; - $37 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $10 = (((1 << $6 | 0) - 1 | 0) & $7 | 0) << (32 - $6 | 0) | 0 | ($5 >>> $6 | 0) | 0 } - var$2 = $37; - if (var$2) { + if ($10) { { - i64toi32_i32$1 = var$1$hi; - var$3 = var$1; - if (!var$3) { + $8 = $2_1; + if (!$8) { break label$11 } - i64toi32_i32$1 = var$1$hi; - i64toi32_i32$0 = var$1; - i64toi32_i32$2 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$2 = 0; - $38 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + $9 = $3_1; + $7 = $2_1; + $4 = 32; + $6 = $4 & 31 | 0; + if (32 >>> 0 <= ($4 & 63 | 0) >>> 0) { + $11 = $9 >>> $6 | 0 } else { - { - i64toi32_i32$2 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $38 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$0 >>> i64toi32_i32$4 | 0) | 0; - } + $11 = (((1 << $6 | 0) - 1 | 0) & $9 | 0) << (32 - $6 | 0) | 0 | ($7 >>> $6 | 0) | 0 } - var$4 = $38; - if (!var$4) { + if (!$11) { break label$9 } - var$2 = Math_clz32(var$4) - Math_clz32(var$2) | 0; - if (var$2 >>> 0 <= 31 >>> 0) { + $10 = Math_clz32($11) - Math_clz32($10) | 0; + if ($10 >>> 0 <= 31 >>> 0) { break label$8 } break label$2; } } - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$1 = var$1; - i64toi32_i32$0 = 1; - i64toi32_i32$3 = 0; - if (i64toi32_i32$2 >>> 0 > i64toi32_i32$0 >>> 0 | ((i64toi32_i32$2 | 0) == (i64toi32_i32$0 | 0) & i64toi32_i32$1 >>> 0 >= i64toi32_i32$3 >>> 0 | 0) | 0) { + $5 = $3_1; + $9 = $2_1; + $7 = 1; + $4 = 0; + if ($5 >>> 0 > $7 >>> 0 | (($5 | 0) == ($7 | 0) & $9 >>> 0 >= $4 >>> 0 | 0) | 0) { break label$2 } - i64toi32_i32$1 = var$0$hi; - var$2 = var$0; - i64toi32_i32$1 = var$1$hi; - var$3 = var$1; - var$2 = (var$2 >>> 0) / (var$3 >>> 0) | 0; - i64toi32_i32$1 = 0; - legalfunc$wasm2js_scratch_store_i64(var$0 - Math_imul(var$2, var$3) | 0 | 0, i64toi32_i32$1 | 0); - i64toi32_i32$1 = 0; - i64toi32_i32$2 = var$2; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$2 | 0; + $10 = $0_1; + $8 = $2_1; + $10 = ($10 >>> 0) / ($8 >>> 0) | 0; + $9 = 0; + legalfunc$wasm2js_scratch_store_i64($0_1 - Math_imul($10, $8) | 0 | 0, $9 | 0); + $9 = 0; + $5 = $10; + i64toi32_i32$HIGH_BITS = $9; + return $5 | 0; } - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$3 = var$1; - i64toi32_i32$1 = 0; - i64toi32_i32$0 = 32; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { - { - i64toi32_i32$1 = 0; - $39 = i64toi32_i32$2 >>> i64toi32_i32$4 | 0; - } + $5 = $3_1; + $4 = $2_1; + $7 = 32; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { + $8 = $5 >>> $6 | 0 } else { - { - i64toi32_i32$1 = i64toi32_i32$2 >>> i64toi32_i32$4 | 0; - $39 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$2 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$3 >>> i64toi32_i32$4 | 0) | 0; - } + $8 = (((1 << $6 | 0) - 1 | 0) & $5 | 0) << (32 - $6 | 0) | 0 | ($4 >>> $6 | 0) | 0 } - var$3 = $39; - i64toi32_i32$1 = var$0$hi; - if (!var$0) { + if (!$0_1) { break label$7 } - if (!var$3) { + if (!$8) { break label$6 } - var$4 = var$3 + -1 | 0; - if (var$4 & var$3 | 0) { + $11 = $8 + -1 | 0; + if ($11 & $8 | 0) { break label$6 } - i64toi32_i32$1 = 0; - i64toi32_i32$2 = var$4 & var$2 | 0; - i64toi32_i32$3 = 0; - i64toi32_i32$0 = 32; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $9 = 0; + $5 = $11 & $10 | 0; + $7 = 32; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$3 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $40 = 0; + $4 = $5 << $6 | 0; + $3_1 = 0; } } else { { - i64toi32_i32$3 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$1 << i64toi32_i32$4 | 0) | 0; - $40 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $4 = ((1 << $6 | 0) - 1 | 0) & ($5 >>> (32 - $6 | 0) | 0) | 0 | ($9 << $6 | 0) | 0; + $3_1 = $5 << $6 | 0; } } - $63$hi = i64toi32_i32$3; - i64toi32_i32$3 = var$0$hi; - i64toi32_i32$1 = var$0; - i64toi32_i32$2 = 0; - i64toi32_i32$0 = -1; - i64toi32_i32$2 = i64toi32_i32$3 & i64toi32_i32$2 | 0; - $65 = i64toi32_i32$1 & i64toi32_i32$0 | 0; - $65$hi = i64toi32_i32$2; - i64toi32_i32$2 = $63$hi; - i64toi32_i32$3 = $40; - i64toi32_i32$1 = $65$hi; - i64toi32_i32$0 = $65; - i64toi32_i32$1 = i64toi32_i32$2 | i64toi32_i32$1 | 0; - legalfunc$wasm2js_scratch_store_i64(i64toi32_i32$3 | i64toi32_i32$0 | 0 | 0, i64toi32_i32$1 | 0); - i64toi32_i32$1 = 0; - i64toi32_i32$3 = var$2 >>> ((__wasm_ctz_i32(var$3 | 0) | 0) & 31 | 0) | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$3 | 0; + $2_1 = $4; + $4 = $1_1; + $9 = $0_1; + $5 = 0; + $7 = -1; + $5 = $4 & $5 | 0; + $7 = $9 & $7 | 0; + $9 = $5; + $5 = $2_1; + $4 = $3_1; + $9 = $5 | $9 | 0; + legalfunc$wasm2js_scratch_store_i64($4 | $7 | 0 | 0, $9 | 0); + $9 = 0; + $4 = $10 >>> ((__wasm_ctz_i32($8 | 0) | 0) & 31 | 0) | 0; + i64toi32_i32$HIGH_BITS = $9; + return $4 | 0; } - var$4 = var$3 + -1 | 0; - if (!(var$4 & var$3 | 0)) { + $11 = $8 + -1 | 0; + if (!($11 & $8 | 0)) { break label$5 } - var$2 = (Math_clz32(var$3) + 33 | 0) - Math_clz32(var$2) | 0; - var$3 = 0 - var$2 | 0; + $10 = (Math_clz32($8) + 33 | 0) - Math_clz32($10) | 0; + $8 = 0 - $10 | 0; break label$3; } - var$3 = 63 - var$2 | 0; - var$2 = var$2 + 1 | 0; + $8 = 63 - $10 | 0; + $10 = $10 + 1 | 0; break label$3; } - var$4 = (var$2 >>> 0) / (var$3 >>> 0) | 0; - i64toi32_i32$3 = 0; - i64toi32_i32$2 = var$2 - Math_imul(var$4, var$3) | 0; - i64toi32_i32$1 = 0; - i64toi32_i32$0 = 32; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $11 = ($10 >>> 0) / ($8 >>> 0) | 0; + $4 = 0; + $5 = $10 - Math_imul($11, $8) | 0; + $7 = 32; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $41 = 0; + $9 = $5 << $6 | 0; + $0_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$3 << i64toi32_i32$4 | 0) | 0; - $41 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $9 = ((1 << $6 | 0) - 1 | 0) & ($5 >>> (32 - $6 | 0) | 0) | 0 | ($4 << $6 | 0) | 0; + $0_1 = $5 << $6 | 0; } } - legalfunc$wasm2js_scratch_store_i64($41 | 0, i64toi32_i32$1 | 0); - i64toi32_i32$1 = 0; - i64toi32_i32$2 = var$4; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$2 | 0; + legalfunc$wasm2js_scratch_store_i64($0_1 | 0, $9 | 0); + $9 = 0; + $5 = $11; + i64toi32_i32$HIGH_BITS = $9; + return $5 | 0; } - var$2 = Math_clz32(var$3) - Math_clz32(var$2) | 0; - if (var$2 >>> 0 < 31 >>> 0) { + $10 = Math_clz32($8) - Math_clz32($10) | 0; + if ($10 >>> 0 < 31 >>> 0) { break label$4 } break label$2; } - i64toi32_i32$2 = var$0$hi; - i64toi32_i32$2 = 0; - legalfunc$wasm2js_scratch_store_i64(var$4 & var$0 | 0 | 0, i64toi32_i32$2 | 0); - if ((var$3 | 0) == (1 | 0)) { + $5 = 0; + legalfunc$wasm2js_scratch_store_i64($11 & $0_1 | 0 | 0, $5 | 0); + if (($8 | 0) == (1 | 0)) { break label$1 } - i64toi32_i32$2 = var$0$hi; - i64toi32_i32$2 = 0; - $120$hi = i64toi32_i32$2; - i64toi32_i32$2 = var$0$hi; - i64toi32_i32$3 = var$0; - i64toi32_i32$1 = $120$hi; - i64toi32_i32$0 = __wasm_ctz_i32(var$3 | 0) | 0; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $5 = 0; + $9 = $5; + $5 = $1_1; + $4 = $0_1; + $7 = __wasm_ctz_i32($8 | 0) | 0; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = 0; - $42 = i64toi32_i32$2 >>> i64toi32_i32$4 | 0; + $9 = 0; + $4 = $5 >>> $6 | 0; } } else { { - i64toi32_i32$1 = i64toi32_i32$2 >>> i64toi32_i32$4 | 0; - $42 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$2 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$3 >>> i64toi32_i32$4 | 0) | 0; + $9 = $5 >>> $6 | 0; + $4 = (((1 << $6 | 0) - 1 | 0) & $5 | 0) << (32 - $6 | 0) | 0 | ($4 >>> $6 | 0) | 0; } } - i64toi32_i32$3 = $42; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$3 | 0; + i64toi32_i32$HIGH_BITS = $9; + return $4 | 0; } - var$3 = 63 - var$2 | 0; - var$2 = var$2 + 1 | 0; + $8 = 63 - $10 | 0; + $10 = $10 + 1 | 0; } - i64toi32_i32$3 = var$0$hi; - i64toi32_i32$3 = 0; - $129$hi = i64toi32_i32$3; - i64toi32_i32$3 = var$0$hi; - i64toi32_i32$2 = var$0; - i64toi32_i32$1 = $129$hi; - i64toi32_i32$0 = var$2 & 63 | 0; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $4 = 0; + $9 = $4; + $4 = $1_1; + $5 = $0_1; + $7 = $10 & 63 | 0; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = 0; - $43 = i64toi32_i32$3 >>> i64toi32_i32$4 | 0; + $9 = 0; + $13 = $4 >>> $6 | 0; } } else { { - i64toi32_i32$1 = i64toi32_i32$3 >>> i64toi32_i32$4 | 0; - $43 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$3 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; + $9 = $4 >>> $6 | 0; + $13 = (((1 << $6 | 0) - 1 | 0) & $4 | 0) << (32 - $6 | 0) | 0 | ($5 >>> $6 | 0) | 0; } } - var$5 = $43; - var$5$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$1 = 0; - $134$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$3 = var$0; - i64toi32_i32$2 = $134$hi; - i64toi32_i32$0 = var$3 & 63 | 0; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $11 = $9; + $9 = 0; + $5 = $9; + $9 = $1_1; + $4 = $0_1; + $7 = $8 & 63 | 0; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$2 = i64toi32_i32$3 << i64toi32_i32$4 | 0; - $44 = 0; + $5 = $4 << $6 | 0; + $0_1 = 0; } } else { { - i64toi32_i32$2 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$3 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$1 << i64toi32_i32$4 | 0) | 0; - $44 = i64toi32_i32$3 << i64toi32_i32$4 | 0; + $5 = ((1 << $6 | 0) - 1 | 0) & ($4 >>> (32 - $6 | 0) | 0) | 0 | ($9 << $6 | 0) | 0; + $0_1 = $4 << $6 | 0; } } - var$0 = $44; - var$0$hi = i64toi32_i32$2; + $1_1 = $5; label$13 : { - if (var$2) { + if ($10) { { - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$1 = var$1; - i64toi32_i32$3 = -1; - i64toi32_i32$0 = -1; - i64toi32_i32$4 = i64toi32_i32$1 + i64toi32_i32$0 | 0; - i64toi32_i32$5 = i64toi32_i32$2 + i64toi32_i32$3 | 0; - if (i64toi32_i32$4 >>> 0 < i64toi32_i32$0 >>> 0) { - i64toi32_i32$5 = i64toi32_i32$5 + 1 | 0 + $5 = $3_1; + $9 = $2_1; + $4 = -1; + $7 = -1; + $6 = $9 + $7 | 0; + $8 = $5 + $4 | 0; + if ($6 >>> 0 < $7 >>> 0) { + $8 = $8 + 1 | 0 } - var$8 = i64toi32_i32$4; - var$8$hi = i64toi32_i32$5; + $17 = $6; + $15 = $8; label$15 : while (1) { - i64toi32_i32$5 = var$5$hi; - i64toi32_i32$2 = var$5; - i64toi32_i32$1 = 0; - i64toi32_i32$0 = 1; - i64toi32_i32$3 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $8 = $11; + $5 = $13; + $7 = 1; + $4 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$3 | 0; - $45 = 0; + $9 = $5 << $4 | 0; + $12 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$3 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$3 | 0) | 0) | 0 | (i64toi32_i32$5 << i64toi32_i32$3 | 0) | 0; - $45 = i64toi32_i32$2 << i64toi32_i32$3 | 0; + $9 = ((1 << $4 | 0) - 1 | 0) & ($5 >>> (32 - $4 | 0) | 0) | 0 | ($8 << $4 | 0) | 0; + $12 = $5 << $4 | 0; } } - $140 = $45; - $140$hi = i64toi32_i32$1; - i64toi32_i32$1 = var$0$hi; - i64toi32_i32$5 = var$0; - i64toi32_i32$2 = 0; - i64toi32_i32$0 = 63; - i64toi32_i32$3 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $11 = $9; + $9 = $1_1; + $8 = $0_1; + $7 = 63; + $4 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$2 = 0; - $46 = i64toi32_i32$1 >>> i64toi32_i32$3 | 0; + $5 = 0; + $7 = $9 >>> $4 | 0; } } else { { - i64toi32_i32$2 = i64toi32_i32$1 >>> i64toi32_i32$3 | 0; - $46 = (((1 << i64toi32_i32$3 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$3 | 0) | 0 | (i64toi32_i32$5 >>> i64toi32_i32$3 | 0) | 0; + $5 = $9 >>> $4 | 0; + $7 = (((1 << $4 | 0) - 1 | 0) & $9 | 0) << (32 - $4 | 0) | 0 | ($8 >>> $4 | 0) | 0; } } - $142$hi = i64toi32_i32$2; - i64toi32_i32$2 = $140$hi; - i64toi32_i32$1 = $140; - i64toi32_i32$5 = $142$hi; - i64toi32_i32$0 = $46; - i64toi32_i32$5 = i64toi32_i32$2 | i64toi32_i32$5 | 0; - var$5 = i64toi32_i32$1 | i64toi32_i32$0 | 0; - var$5$hi = i64toi32_i32$5; - $144 = var$5; - $144$hi = i64toi32_i32$5; - i64toi32_i32$5 = var$8$hi; - i64toi32_i32$5 = var$5$hi; - i64toi32_i32$5 = var$8$hi; - i64toi32_i32$2 = var$8; - i64toi32_i32$1 = var$5$hi; - i64toi32_i32$0 = var$5; - i64toi32_i32$3 = i64toi32_i32$2 - i64toi32_i32$0 | 0; - i64toi32_i32$6 = i64toi32_i32$2 >>> 0 < i64toi32_i32$0 >>> 0; - i64toi32_i32$4 = i64toi32_i32$6 + i64toi32_i32$1 | 0; - i64toi32_i32$4 = i64toi32_i32$5 - i64toi32_i32$4 | 0; - i64toi32_i32$5 = i64toi32_i32$3; - i64toi32_i32$2 = 0; - i64toi32_i32$0 = 63; - i64toi32_i32$1 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $8 = $5; + $5 = $11; + $9 = $12; + $8 = $5 | $8 | 0; + $13 = $9 | $7 | 0; + $11 = $8; + $18 = $13; + $19 = $8; + $8 = $15; + $5 = $17; + $9 = $11; + $7 = $13; + $4 = $5 - $7 | 0; + $5 = $5 >>> 0 < $7 >>> 0; + $6 = $5 + $9 | 0; + $6 = $8 - $6 | 0; + $8 = $4; + $7 = 63; + $9 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$2 = i64toi32_i32$4 >> 31 | 0; - $47 = i64toi32_i32$4 >> i64toi32_i32$1 | 0; + $5 = $6 >> 31 | 0; + $14 = $6 >> $9 | 0; } } else { { - i64toi32_i32$2 = i64toi32_i32$4 >> i64toi32_i32$1 | 0; - $47 = (((1 << i64toi32_i32$1 | 0) - 1 | 0) & i64toi32_i32$4 | 0) << (32 - i64toi32_i32$1 | 0) | 0 | (i64toi32_i32$5 >>> i64toi32_i32$1 | 0) | 0; + $5 = $6 >> $9 | 0; + $14 = (((1 << $9 | 0) - 1 | 0) & $6 | 0) << (32 - $9 | 0) | 0 | ($8 >>> $9 | 0) | 0; } } - var$6 = $47; - var$6$hi = i64toi32_i32$2; - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$2 = var$6$hi; - i64toi32_i32$4 = var$6; - i64toi32_i32$5 = var$1$hi; - i64toi32_i32$0 = var$1; - i64toi32_i32$5 = i64toi32_i32$2 & i64toi32_i32$5 | 0; - $151 = i64toi32_i32$4 & i64toi32_i32$0 | 0; - $151$hi = i64toi32_i32$5; - i64toi32_i32$5 = $144$hi; - i64toi32_i32$2 = $144; - i64toi32_i32$4 = $151$hi; - i64toi32_i32$0 = $151; - i64toi32_i32$1 = i64toi32_i32$2 - i64toi32_i32$0 | 0; - i64toi32_i32$6 = i64toi32_i32$2 >>> 0 < i64toi32_i32$0 >>> 0; - i64toi32_i32$3 = i64toi32_i32$6 + i64toi32_i32$4 | 0; - i64toi32_i32$3 = i64toi32_i32$5 - i64toi32_i32$3 | 0; - var$5 = i64toi32_i32$1; - var$5$hi = i64toi32_i32$3; - i64toi32_i32$3 = var$0$hi; - i64toi32_i32$5 = var$0; - i64toi32_i32$2 = 0; - i64toi32_i32$0 = 1; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $12 = $5; + $5 = $12; + $6 = $14; + $8 = $3_1; + $7 = $2_1; + $8 = $5 & $8 | 0; + $7 = $6 & $7 | 0; + $6 = $8; + $8 = $19; + $5 = $18; + $9 = $5 - $7 | 0; + $5 = $5 >>> 0 < $7 >>> 0; + $4 = $5 + $6 | 0; + $4 = $8 - $4 | 0; + $13 = $9; + $11 = $4; + $4 = $1_1; + $8 = $0_1; + $7 = 1; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$2 = i64toi32_i32$5 << i64toi32_i32$4 | 0; - $48 = 0; + $5 = $8 << $6 | 0; + $4 = 0; } } else { { - i64toi32_i32$2 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$5 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$3 << i64toi32_i32$4 | 0) | 0; - $48 = i64toi32_i32$5 << i64toi32_i32$4 | 0; + $5 = ((1 << $6 | 0) - 1 | 0) & ($8 >>> (32 - $6 | 0) | 0) | 0 | ($4 << $6 | 0) | 0; + $4 = $8 << $6 | 0; } } - $154$hi = i64toi32_i32$2; - i64toi32_i32$2 = var$7$hi; - i64toi32_i32$2 = $154$hi; - i64toi32_i32$3 = $48; - i64toi32_i32$5 = var$7$hi; - i64toi32_i32$0 = var$7; - i64toi32_i32$5 = i64toi32_i32$2 | i64toi32_i32$5 | 0; - var$0 = i64toi32_i32$3 | i64toi32_i32$0 | 0; - var$0$hi = i64toi32_i32$5; - i64toi32_i32$5 = var$6$hi; - i64toi32_i32$2 = var$6; - i64toi32_i32$3 = 0; - i64toi32_i32$0 = 1; - i64toi32_i32$3 = i64toi32_i32$5 & i64toi32_i32$3 | 0; - var$6 = i64toi32_i32$2 & i64toi32_i32$0 | 0; - var$6$hi = i64toi32_i32$3; - var$7 = var$6; - var$7$hi = i64toi32_i32$3; - var$2 = var$2 + -1 | 0; - if (var$2) { + $8 = $16; + $7 = $20; + $8 = $5 | $8 | 0; + $0_1 = $4 | $7 | 0; + $1_1 = $8; + $8 = $12; + $5 = $14; + $4 = 0; + $7 = 1; + $4 = $8 & $4 | 0; + $14 = $5 & $7 | 0; + $12 = $4; + $20 = $14; + $16 = $4; + $10 = $10 + -1 | 0; + if ($10) { continue label$15 } break label$15; @@ -1739,85 +1458,69 @@ function asmFunc(global, env, buffer) { } } } - i64toi32_i32$3 = var$5$hi; - legalfunc$wasm2js_scratch_store_i64(var$5 | 0, i64toi32_i32$3 | 0); - i64toi32_i32$3 = var$0$hi; - i64toi32_i32$5 = var$0; - i64toi32_i32$2 = 0; - i64toi32_i32$0 = 1; - i64toi32_i32$4 = i64toi32_i32$0 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$0 & 63 | 0) >>> 0) { + $4 = $11; + legalfunc$wasm2js_scratch_store_i64($13 | 0, $4 | 0); + $4 = $1_1; + $8 = $0_1; + $7 = 1; + $6 = $7 & 31 | 0; + if (32 >>> 0 <= ($7 & 63 | 0) >>> 0) { { - i64toi32_i32$2 = i64toi32_i32$5 << i64toi32_i32$4 | 0; - $49 = 0; + $5 = $8 << $6 | 0; + $4 = 0; } } else { { - i64toi32_i32$2 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$5 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$3 << i64toi32_i32$4 | 0) | 0; - $49 = i64toi32_i32$5 << i64toi32_i32$4 | 0; + $5 = ((1 << $6 | 0) - 1 | 0) & ($8 >>> (32 - $6 | 0) | 0) | 0 | ($4 << $6 | 0) | 0; + $4 = $8 << $6 | 0; } } - $165$hi = i64toi32_i32$2; - i64toi32_i32$2 = var$6$hi; - i64toi32_i32$2 = $165$hi; - i64toi32_i32$3 = $49; - i64toi32_i32$5 = var$6$hi; - i64toi32_i32$0 = var$6; - i64toi32_i32$5 = i64toi32_i32$2 | i64toi32_i32$5 | 0; - i64toi32_i32$3 = i64toi32_i32$3 | i64toi32_i32$0 | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$5; - return i64toi32_i32$3 | 0; + $8 = $12; + $7 = $14; + $8 = $5 | $8 | 0; + $4 = $4 | $7 | 0; + i64toi32_i32$HIGH_BITS = $8; + return $4 | 0; } - i64toi32_i32$3 = var$0$hi; - legalfunc$wasm2js_scratch_store_i64(var$0 | 0, i64toi32_i32$3 | 0); - i64toi32_i32$3 = 0; - var$0 = 0; - var$0$hi = i64toi32_i32$3; + $4 = $1_1; + legalfunc$wasm2js_scratch_store_i64($0_1 | 0, $4 | 0); + $4 = 0; + $0_1 = 0; + $1_1 = $4; } - i64toi32_i32$3 = var$0$hi; - i64toi32_i32$5 = var$0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$3; - return i64toi32_i32$5 | 0; + $4 = $1_1; + $8 = $0_1; + i64toi32_i32$HIGH_BITS = $4; + return $8 | 0; } - function __wasm_i64_srem(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$0 = var$1$hi; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = _ZN17compiler_builtins3int4sdiv3Mod4mod_17h2cbb7bbf36e41d68E(var$0 | 0, i64toi32_i32$0 | 0, var$1 | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + function __wasm_i64_srem($0_1, $1_1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + $3_1 = _ZN17compiler_builtins3int4sdiv3Mod4mod_17h2cbb7bbf36e41d68E($0_1 | 0, $1_1 | 0, $2_1 | 0, $3_1 | 0) | 0; + $1_1 = i64toi32_i32$HIGH_BITS; + i64toi32_i32$HIGH_BITS = $1_1; + return $3_1 | 0; } - function __wasm_i64_urem(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$0 = var$1$hi; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E(var$0 | 0, i64toi32_i32$0 | 0, var$1 | 0, i64toi32_i32$1 | 0) | 0; - i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$0 = legalfunc$wasm2js_scratch_load_i64() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$0 | 0; + function __wasm_i64_urem($0_1, $1_1, $2_1, $3_1) { + $0_1 = $0_1 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + $3_1 = _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E($0_1 | 0, $1_1 | 0, $2_1 | 0, $3_1 | 0) | 0; + $1_1 = legalfunc$wasm2js_scratch_load_i64() | 0; + $3_1 = i64toi32_i32$HIGH_BITS; + i64toi32_i32$HIGH_BITS = $3_1; + return $1_1 | 0; } - function __wasm_ctz_i32(var$0) { - var$0 = var$0 | 0; - if (var$0) { - return 31 - Math_clz32((var$0 + -1 | 0) ^ var$0 | 0) | 0 | 0 + function __wasm_ctz_i32($0_1) { + $0_1 = $0_1 | 0; + if ($0_1) { + return 31 - Math_clz32(($0_1 + -1 | 0) ^ $0_1 | 0) | 0 | 0 } return 32 | 0; } @@ -1863,220 +1566,164 @@ function asmFunc(global, env, buffer) { var infinity = global.Infinity; var setTempRet0 = env.setTempRet0; var i64toi32_i32$HIGH_BITS = 0; - function $0(x) { - x = Math_fround(x); - return ~~x | 0; + function $0($0_1) { + $0_1 = Math_fround($0_1); + return ~~$0_1 | 0; } - function $1(x) { - x = Math_fround(x); - return ~~x >>> 0 | 0; + function $1($0_1) { + $0_1 = Math_fround($0_1); + return ~~$0_1 >>> 0 | 0; } - function $2(x) { - x = +x; - return ~~x | 0; + function $2($0_1) { + $0_1 = +$0_1; + return ~~$0_1 | 0; } - function $3(x) { - x = +x; - return ~~x >>> 0 | 0; + function $3($0_1) { + $0_1 = +$0_1; + return ~~$0_1 >>> 0 | 0; } - function $4(x) { - x = Math_fround(x); - var i64toi32_i32$0 = Math_fround(0), $4_1 = 0, $5_1 = 0, i64toi32_i32$1 = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = x; - if (Math_fround(Math_abs(i64toi32_i32$0)) >= Math_fround(1.0)) { - { - if (i64toi32_i32$0 > Math_fround(0.0)) { - $4_1 = ~~Math_fround(Math_min(Math_fround(Math_floor(Math_fround(i64toi32_i32$0 / Math_fround(4294967296.0)))), Math_fround(Math_fround(4294967296.0) - Math_fround(1.0)))) >>> 0 - } else { - $4_1 = ~~Math_fround(Math_ceil(Math_fround(Math_fround(i64toi32_i32$0 - Math_fround(~~i64toi32_i32$0 >>> 0 >>> 0)) / Math_fround(4294967296.0)))) >>> 0 - } - $5_1 = $4_1; + function $4($0_1) { + $0_1 = Math_fround($0_1); + var $1_1 = 0, $2_1 = 0; + if (Math_fround(Math_abs($0_1)) >= Math_fround(1.0)) { + if ($0_1 > Math_fround(0.0)) { + $1_1 = ~~Math_fround(Math_min(Math_fround(Math_floor(Math_fround($0_1 / Math_fround(4294967296.0)))), Math_fround(Math_fround(4294967296.0) - Math_fround(1.0)))) >>> 0 + } else { + $1_1 = ~~Math_fround(Math_ceil(Math_fround(Math_fround($0_1 - Math_fround(~~$0_1 >>> 0 >>> 0)) / Math_fround(4294967296.0)))) >>> 0 } } else { - $5_1 = 0 + $1_1 = 0 } - i64toi32_i32$1 = $5_1; - i64toi32_i32$2 = ~~i64toi32_i32$0 >>> 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$2 | 0; + $2_1 = ~~$0_1 >>> 0; + i64toi32_i32$HIGH_BITS = $1_1; + return $2_1 | 0; } - function $5(x) { - x = Math_fround(x); - var i64toi32_i32$0 = Math_fround(0), $4_1 = 0, $5_1 = 0, i64toi32_i32$1 = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = x; - if (Math_fround(Math_abs(i64toi32_i32$0)) >= Math_fround(1.0)) { - { - if (i64toi32_i32$0 > Math_fround(0.0)) { - $4_1 = ~~Math_fround(Math_min(Math_fround(Math_floor(Math_fround(i64toi32_i32$0 / Math_fround(4294967296.0)))), Math_fround(Math_fround(4294967296.0) - Math_fround(1.0)))) >>> 0 - } else { - $4_1 = ~~Math_fround(Math_ceil(Math_fround(Math_fround(i64toi32_i32$0 - Math_fround(~~i64toi32_i32$0 >>> 0 >>> 0)) / Math_fround(4294967296.0)))) >>> 0 - } - $5_1 = $4_1; + function $5($0_1) { + $0_1 = Math_fround($0_1); + var $1_1 = 0, $2_1 = 0; + if (Math_fround(Math_abs($0_1)) >= Math_fround(1.0)) { + if ($0_1 > Math_fround(0.0)) { + $1_1 = ~~Math_fround(Math_min(Math_fround(Math_floor(Math_fround($0_1 / Math_fround(4294967296.0)))), Math_fround(Math_fround(4294967296.0) - Math_fround(1.0)))) >>> 0 + } else { + $1_1 = ~~Math_fround(Math_ceil(Math_fround(Math_fround($0_1 - Math_fround(~~$0_1 >>> 0 >>> 0)) / Math_fround(4294967296.0)))) >>> 0 } } else { - $5_1 = 0 + $1_1 = 0 } - i64toi32_i32$1 = $5_1; - i64toi32_i32$2 = ~~i64toi32_i32$0 >>> 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$2 | 0; + $2_1 = ~~$0_1 >>> 0; + i64toi32_i32$HIGH_BITS = $1_1; + return $2_1 | 0; } - function $6(x) { - x = +x; - var i64toi32_i32$0 = 0.0, $4_1 = 0, $5_1 = 0, i64toi32_i32$1 = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = x; - if (Math_abs(i64toi32_i32$0) >= 1.0) { - { - if (i64toi32_i32$0 > 0.0) { - $4_1 = ~~Math_min(Math_floor(i64toi32_i32$0 / 4294967296.0), 4294967296.0 - 1.0) >>> 0 - } else { - $4_1 = ~~Math_ceil((i64toi32_i32$0 - +(~~i64toi32_i32$0 >>> 0 >>> 0)) / 4294967296.0) >>> 0 - } - $5_1 = $4_1; + function $6($0_1) { + $0_1 = +$0_1; + var $1_1 = 0, $2_1 = 0; + if (Math_abs($0_1) >= 1.0) { + if ($0_1 > 0.0) { + $1_1 = ~~Math_min(Math_floor($0_1 / 4294967296.0), 4294967296.0 - 1.0) >>> 0 + } else { + $1_1 = ~~Math_ceil(($0_1 - +(~~$0_1 >>> 0 >>> 0)) / 4294967296.0) >>> 0 } } else { - $5_1 = 0 + $1_1 = 0 } - i64toi32_i32$1 = $5_1; - i64toi32_i32$2 = ~~i64toi32_i32$0 >>> 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$2 | 0; + $2_1 = ~~$0_1 >>> 0; + i64toi32_i32$HIGH_BITS = $1_1; + return $2_1 | 0; } - function $7(x) { - x = +x; - var i64toi32_i32$0 = 0.0, $4_1 = 0, $5_1 = 0, i64toi32_i32$1 = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = x; - if (Math_abs(i64toi32_i32$0) >= 1.0) { - { - if (i64toi32_i32$0 > 0.0) { - $4_1 = ~~Math_min(Math_floor(i64toi32_i32$0 / 4294967296.0), 4294967296.0 - 1.0) >>> 0 - } else { - $4_1 = ~~Math_ceil((i64toi32_i32$0 - +(~~i64toi32_i32$0 >>> 0 >>> 0)) / 4294967296.0) >>> 0 - } - $5_1 = $4_1; + function $7($0_1) { + $0_1 = +$0_1; + var $1_1 = 0, $2_1 = 0; + if (Math_abs($0_1) >= 1.0) { + if ($0_1 > 0.0) { + $1_1 = ~~Math_min(Math_floor($0_1 / 4294967296.0), 4294967296.0 - 1.0) >>> 0 + } else { + $1_1 = ~~Math_ceil(($0_1 - +(~~$0_1 >>> 0 >>> 0)) / 4294967296.0) >>> 0 } } else { - $5_1 = 0 + $1_1 = 0 } - i64toi32_i32$1 = $5_1; - i64toi32_i32$2 = ~~i64toi32_i32$0 >>> 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$2 | 0; + $2_1 = ~~$0_1 >>> 0; + i64toi32_i32$HIGH_BITS = $1_1; + return $2_1 | 0; } function legalstub$4($0_1) { $0_1 = Math_fround($0_1); - var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $8 = 0, $1_1 = 0, $1$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $4(Math_fround($0_1)) | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $1_1 = i64toi32_i32$0; - $1$hi = i64toi32_i32$1; - i64toi32_i32$2 = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = 0; - $8 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + var $1_1 = 0, $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0, $6_1 = 0; + $1_1 = $4(Math_fround($0_1)) | 0; + $3_1 = i64toi32_i32$HIGH_BITS; + $5_1 = $1_1; + $6_1 = $3_1; + $4_1 = 32; + $2_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { + $1_1 = $3_1 >>> $2_1 | 0 } else { - { - i64toi32_i32$0 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $8 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $1_1 = (((1 << $2_1 | 0) - 1 | 0) & $3_1 | 0) << (32 - $2_1 | 0) | 0 | ($1_1 >>> $2_1 | 0) | 0 } - setTempRet0($8 | 0); - i64toi32_i32$0 = $1$hi; - return $1_1 | 0; + setTempRet0($1_1 | 0); + return $5_1 | 0; } function legalstub$5($0_1) { $0_1 = Math_fround($0_1); - var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $8 = 0, $1_1 = 0, $1$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $5(Math_fround($0_1)) | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $1_1 = i64toi32_i32$0; - $1$hi = i64toi32_i32$1; - i64toi32_i32$2 = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = 0; - $8 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + var $1_1 = 0, $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0, $6_1 = 0; + $1_1 = $5(Math_fround($0_1)) | 0; + $3_1 = i64toi32_i32$HIGH_BITS; + $5_1 = $1_1; + $6_1 = $3_1; + $4_1 = 32; + $2_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { + $1_1 = $3_1 >>> $2_1 | 0 } else { - { - i64toi32_i32$0 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $8 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $1_1 = (((1 << $2_1 | 0) - 1 | 0) & $3_1 | 0) << (32 - $2_1 | 0) | 0 | ($1_1 >>> $2_1 | 0) | 0 } - setTempRet0($8 | 0); - i64toi32_i32$0 = $1$hi; - return $1_1 | 0; + setTempRet0($1_1 | 0); + return $5_1 | 0; } function legalstub$6($0_1) { $0_1 = +$0_1; - var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $8 = 0, $1_1 = 0, $1$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $6(+$0_1) | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $1_1 = i64toi32_i32$0; - $1$hi = i64toi32_i32$1; - i64toi32_i32$2 = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = 0; - $8 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + var $1_1 = 0, $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0, $6_1 = 0; + $1_1 = $6(+$0_1) | 0; + $3_1 = i64toi32_i32$HIGH_BITS; + $5_1 = $1_1; + $6_1 = $3_1; + $4_1 = 32; + $2_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { + $1_1 = $3_1 >>> $2_1 | 0 } else { - { - i64toi32_i32$0 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $8 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $1_1 = (((1 << $2_1 | 0) - 1 | 0) & $3_1 | 0) << (32 - $2_1 | 0) | 0 | ($1_1 >>> $2_1 | 0) | 0 } - setTempRet0($8 | 0); - i64toi32_i32$0 = $1$hi; - return $1_1 | 0; + setTempRet0($1_1 | 0); + return $5_1 | 0; } function legalstub$7($0_1) { $0_1 = +$0_1; - var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $8 = 0, $1_1 = 0, $1$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $7(+$0_1) | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $1_1 = i64toi32_i32$0; - $1$hi = i64toi32_i32$1; - i64toi32_i32$2 = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = 0; - $8 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + var $1_1 = 0, $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0, $6_1 = 0; + $1_1 = $7(+$0_1) | 0; + $3_1 = i64toi32_i32$HIGH_BITS; + $5_1 = $1_1; + $6_1 = $3_1; + $4_1 = 32; + $2_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { + $1_1 = $3_1 >>> $2_1 | 0 } else { - { - i64toi32_i32$0 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $8 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $1_1 = (((1 << $2_1 | 0) - 1 | 0) & $3_1 | 0) << (32 - $2_1 | 0) | 0 | ($1_1 >>> $2_1 | 0) | 0 } - setTempRet0($8 | 0); - i64toi32_i32$0 = $1$hi; - return $1_1 | 0; + setTempRet0($1_1 | 0); + return $5_1 | 0; } var FUNCTION_TABLE = []; @@ -2128,56 +1775,46 @@ function asmFunc(global, env, buffer) { var infinity = global.Infinity; var setTempRet0 = env.setTempRet0; var i64toi32_i32$HIGH_BITS = 0; - function $0(i) { - i = i | 0; - return HEAP32[i >> 2] | 0 | 0; + function $0($0_1) { + $0_1 = $0_1 | 0; + return HEAP32[$0_1 >> 2] | 0 | 0; } - function $1(i) { - i = i | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$2 = i; - i64toi32_i32$0 = HEAP32[i64toi32_i32$2 >> 2] | 0; - i64toi32_i32$1 = HEAP32[(i64toi32_i32$2 + 4 | 0) >> 2] | 0; - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$0 | 0; + function $1($0_1) { + $0_1 = $0_1 | 0; + var $1_1 = 0; + $1_1 = HEAP32[$0_1 >> 2] | 0; + $0_1 = HEAP32[($0_1 + 4 | 0) >> 2] | 0; + i64toi32_i32$HIGH_BITS = $0_1; + return $1_1 | 0; } - function $2(i) { - i = i | 0; - return Math_fround(Math_fround(HEAPF32[i >> 2])); + function $2($0_1) { + $0_1 = $0_1 | 0; + return Math_fround(Math_fround(HEAPF32[$0_1 >> 2])); } - function $3(i) { - i = i | 0; - return +(+HEAPF64[i >> 3]); + function $3($0_1) { + $0_1 = $0_1 | 0; + return +(+HEAPF64[$0_1 >> 3]); } function legalstub$1($0_1) { $0_1 = $0_1 | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $8 = 0, $1_1 = 0, $1$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $1($0_1 | 0) | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $1_1 = i64toi32_i32$0; - $1$hi = i64toi32_i32$1; - i64toi32_i32$2 = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = 0; - $8 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + var $1_1 = 0, $2_1 = 0, $3_1 = 0, $4 = 0, $5 = 0; + $0_1 = $1($0_1 | 0) | 0; + $2_1 = i64toi32_i32$HIGH_BITS; + $4 = $0_1; + $5 = $2_1; + $3_1 = 32; + $1_1 = $3_1 & 31 | 0; + if (32 >>> 0 <= ($3_1 & 63 | 0) >>> 0) { + $0_1 = $2_1 >>> $1_1 | 0 } else { - { - i64toi32_i32$0 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $8 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $1_1 | 0) - 1 | 0) & $2_1 | 0) << (32 - $1_1 | 0) | 0 | ($0_1 >>> $1_1 | 0) | 0 } - setTempRet0($8 | 0); - i64toi32_i32$0 = $1$hi; - return $1_1 | 0; + setTempRet0($0_1 | 0); + return $4 | 0; } var FUNCTION_TABLE = []; diff --git a/test/wasm2js/unaligned.2asm.js b/test/wasm2js/unaligned.2asm.js index 1fd503ff9..094a80faa 100644 --- a/test/wasm2js/unaligned.2asm.js +++ b/test/wasm2js/unaligned.2asm.js @@ -60,12 +60,12 @@ function asmFunc(global, env, buffer) { } function $1() { - var i64toi32_i32$2 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, wasm2js_i32$0 = 0; - i64toi32_i32$2 = 0; - i64toi32_i32$0 = (wasm2js_i32$0 = i64toi32_i32$2, HEAPU8[wasm2js_i32$0 >> 0] | 0 | 0 | (HEAPU8[(wasm2js_i32$0 + 1 | 0) >> 0] | 0 | 0) << 8 | (HEAPU8[(wasm2js_i32$0 + 2 | 0) >> 0] | 0 | 0) << 16 | (HEAPU8[(wasm2js_i32$0 + 3 | 0) >> 0] | 0 | 0) << 24); - i64toi32_i32$1 = (wasm2js_i32$0 = i64toi32_i32$2, HEAPU8[(wasm2js_i32$0 + 4 | 0) >> 0] | 0 | 0 | (HEAPU8[(wasm2js_i32$0 + 5 | 0) >> 0] | 0 | 0) << 8 | (HEAPU8[(wasm2js_i32$0 + 6 | 0) >> 0] | 0 | 0) << 16 | (HEAPU8[(wasm2js_i32$0 + 7 | 0) >> 0] | 0 | 0) << 24); - i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$0 | 0; + var $0_1 = 0, $1_1 = 0, wasm2js_i32$0 = 0; + $0_1 = 0; + $1_1 = (wasm2js_i32$0 = $0_1, HEAPU8[wasm2js_i32$0 >> 0] | 0 | 0 | (HEAPU8[(wasm2js_i32$0 + 1 | 0) >> 0] | 0 | 0) << 8 | (HEAPU8[(wasm2js_i32$0 + 2 | 0) >> 0] | 0 | 0) << 16 | (HEAPU8[(wasm2js_i32$0 + 3 | 0) >> 0] | 0 | 0) << 24); + $0_1 = (wasm2js_i32$0 = $0_1, HEAPU8[(wasm2js_i32$0 + 4 | 0) >> 0] | 0 | 0 | (HEAPU8[(wasm2js_i32$0 + 5 | 0) >> 0] | 0 | 0) << 8 | (HEAPU8[(wasm2js_i32$0 + 6 | 0) >> 0] | 0 | 0) << 16 | (HEAPU8[(wasm2js_i32$0 + 7 | 0) >> 0] | 0 | 0) << 24); + i64toi32_i32$HIGH_BITS = $0_1; + return $1_1 | 0; } function $2() { @@ -74,11 +74,11 @@ function asmFunc(global, env, buffer) { } function $3() { - var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, wasm2js_i32$0 = 0; - i64toi32_i32$2 = 0; - i64toi32_i32$1 = (wasm2js_i32$0 = i64toi32_i32$2, HEAPU8[(wasm2js_i32$0 + 4 | 0) >> 0] | 0 | 0 | (HEAPU8[(wasm2js_i32$0 + 5 | 0) >> 0] | 0 | 0) << 8 | (HEAPU8[(wasm2js_i32$0 + 6 | 0) >> 0] | 0 | 0) << 16 | (HEAPU8[(wasm2js_i32$0 + 7 | 0) >> 0] | 0 | 0) << 24); - wasm2js_scratch_store_i32(0 | 0, (wasm2js_i32$0 = i64toi32_i32$2, HEAPU8[wasm2js_i32$0 >> 0] | 0 | 0 | (HEAPU8[(wasm2js_i32$0 + 1 | 0) >> 0] | 0 | 0) << 8 | (HEAPU8[(wasm2js_i32$0 + 2 | 0) >> 0] | 0 | 0) << 16 | (HEAPU8[(wasm2js_i32$0 + 3 | 0) >> 0] | 0 | 0) << 24) | 0); - wasm2js_scratch_store_i32(1 | 0, i64toi32_i32$1 | 0); + var $0_1 = 0, $1_1 = 0, wasm2js_i32$0 = 0; + $0_1 = 0; + $1_1 = (wasm2js_i32$0 = $0_1, HEAPU8[(wasm2js_i32$0 + 4 | 0) >> 0] | 0 | 0 | (HEAPU8[(wasm2js_i32$0 + 5 | 0) >> 0] | 0 | 0) << 8 | (HEAPU8[(wasm2js_i32$0 + 6 | 0) >> 0] | 0 | 0) << 16 | (HEAPU8[(wasm2js_i32$0 + 7 | 0) >> 0] | 0 | 0) << 24); + wasm2js_scratch_store_i32(0 | 0, (wasm2js_i32$0 = $0_1, HEAPU8[wasm2js_i32$0 >> 0] | 0 | 0 | (HEAPU8[(wasm2js_i32$0 + 1 | 0) >> 0] | 0 | 0) << 8 | (HEAPU8[(wasm2js_i32$0 + 2 | 0) >> 0] | 0 | 0) << 16 | (HEAPU8[(wasm2js_i32$0 + 3 | 0) >> 0] | 0 | 0) << 24) | 0); + wasm2js_scratch_store_i32(1 | 0, $1_1 | 0); return +(+wasm2js_scratch_load_f64()); } @@ -88,10 +88,10 @@ function asmFunc(global, env, buffer) { } function $5() { - var i64toi32_i32$1 = 0, wasm2js_i32$0 = 0, wasm2js_i32$1 = 0; - i64toi32_i32$1 = 0; - (wasm2js_i32$0 = i64toi32_i32$1, wasm2js_i32$1 = 0), ((HEAP8[wasm2js_i32$0 >> 0] = wasm2js_i32$1 & 255 | 0, HEAP8[(wasm2js_i32$0 + 1 | 0) >> 0] = (wasm2js_i32$1 >>> 8 | 0) & 255 | 0), HEAP8[(wasm2js_i32$0 + 2 | 0) >> 0] = (wasm2js_i32$1 >>> 16 | 0) & 255 | 0), HEAP8[(wasm2js_i32$0 + 3 | 0) >> 0] = (wasm2js_i32$1 >>> 24 | 0) & 255 | 0; - (wasm2js_i32$0 = i64toi32_i32$1, wasm2js_i32$1 = 0), ((HEAP8[(wasm2js_i32$0 + 4 | 0) >> 0] = wasm2js_i32$1 & 255 | 0, HEAP8[(wasm2js_i32$0 + 5 | 0) >> 0] = (wasm2js_i32$1 >>> 8 | 0) & 255 | 0), HEAP8[(wasm2js_i32$0 + 6 | 0) >> 0] = (wasm2js_i32$1 >>> 16 | 0) & 255 | 0), HEAP8[(wasm2js_i32$0 + 7 | 0) >> 0] = (wasm2js_i32$1 >>> 24 | 0) & 255 | 0; + var $0_1 = 0, wasm2js_i32$0 = 0, wasm2js_i32$1 = 0; + $0_1 = 0; + (wasm2js_i32$0 = $0_1, wasm2js_i32$1 = 0), ((HEAP8[wasm2js_i32$0 >> 0] = wasm2js_i32$1 & 255 | 0, HEAP8[(wasm2js_i32$0 + 1 | 0) >> 0] = (wasm2js_i32$1 >>> 8 | 0) & 255 | 0), HEAP8[(wasm2js_i32$0 + 2 | 0) >> 0] = (wasm2js_i32$1 >>> 16 | 0) & 255 | 0), HEAP8[(wasm2js_i32$0 + 3 | 0) >> 0] = (wasm2js_i32$1 >>> 24 | 0) & 255 | 0; + (wasm2js_i32$0 = $0_1, wasm2js_i32$1 = 0), ((HEAP8[(wasm2js_i32$0 + 4 | 0) >> 0] = wasm2js_i32$1 & 255 | 0, HEAP8[(wasm2js_i32$0 + 5 | 0) >> 0] = (wasm2js_i32$1 >>> 8 | 0) & 255 | 0), HEAP8[(wasm2js_i32$0 + 6 | 0) >> 0] = (wasm2js_i32$1 >>> 16 | 0) & 255 | 0), HEAP8[(wasm2js_i32$0 + 7 | 0) >> 0] = (wasm2js_i32$1 >>> 24 | 0) & 255 | 0; } function $6() { @@ -100,38 +100,29 @@ function asmFunc(global, env, buffer) { } function $7() { - var i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, wasm2js_i32$0 = 0, wasm2js_i32$1 = 0; + var $0_1 = 0, $1_1 = 0, wasm2js_i32$0 = 0, wasm2js_i32$1 = 0; wasm2js_scratch_store_f64(+(0.0)); - i64toi32_i32$0 = wasm2js_scratch_load_i32(1 | 0) | 0; - i64toi32_i32$1 = 0; - (wasm2js_i32$0 = i64toi32_i32$1, wasm2js_i32$1 = wasm2js_scratch_load_i32(0 | 0) | 0), ((HEAP8[wasm2js_i32$0 >> 0] = wasm2js_i32$1 & 255 | 0, HEAP8[(wasm2js_i32$0 + 1 | 0) >> 0] = (wasm2js_i32$1 >>> 8 | 0) & 255 | 0), HEAP8[(wasm2js_i32$0 + 2 | 0) >> 0] = (wasm2js_i32$1 >>> 16 | 0) & 255 | 0), HEAP8[(wasm2js_i32$0 + 3 | 0) >> 0] = (wasm2js_i32$1 >>> 24 | 0) & 255 | 0; - (wasm2js_i32$0 = i64toi32_i32$1, wasm2js_i32$1 = i64toi32_i32$0), ((HEAP8[(wasm2js_i32$0 + 4 | 0) >> 0] = wasm2js_i32$1 & 255 | 0, HEAP8[(wasm2js_i32$0 + 5 | 0) >> 0] = (wasm2js_i32$1 >>> 8 | 0) & 255 | 0), HEAP8[(wasm2js_i32$0 + 6 | 0) >> 0] = (wasm2js_i32$1 >>> 16 | 0) & 255 | 0), HEAP8[(wasm2js_i32$0 + 7 | 0) >> 0] = (wasm2js_i32$1 >>> 24 | 0) & 255 | 0; + $1_1 = wasm2js_scratch_load_i32(1 | 0) | 0; + $0_1 = 0; + (wasm2js_i32$0 = $0_1, wasm2js_i32$1 = wasm2js_scratch_load_i32(0 | 0) | 0), ((HEAP8[wasm2js_i32$0 >> 0] = wasm2js_i32$1 & 255 | 0, HEAP8[(wasm2js_i32$0 + 1 | 0) >> 0] = (wasm2js_i32$1 >>> 8 | 0) & 255 | 0), HEAP8[(wasm2js_i32$0 + 2 | 0) >> 0] = (wasm2js_i32$1 >>> 16 | 0) & 255 | 0), HEAP8[(wasm2js_i32$0 + 3 | 0) >> 0] = (wasm2js_i32$1 >>> 24 | 0) & 255 | 0; + (wasm2js_i32$0 = $0_1, wasm2js_i32$1 = $1_1), ((HEAP8[(wasm2js_i32$0 + 4 | 0) >> 0] = wasm2js_i32$1 & 255 | 0, HEAP8[(wasm2js_i32$0 + 5 | 0) >> 0] = (wasm2js_i32$1 >>> 8 | 0) & 255 | 0), HEAP8[(wasm2js_i32$0 + 6 | 0) >> 0] = (wasm2js_i32$1 >>> 16 | 0) & 255 | 0), HEAP8[(wasm2js_i32$0 + 7 | 0) >> 0] = (wasm2js_i32$1 >>> 24 | 0) & 255 | 0; } function legalstub$1() { - var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0_1 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $1() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0_1 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$2 = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = 0; - $7_1 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + var $0_1 = 0, $1_1 = 0, $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0; + $0_1 = $1() | 0; + $2_1 = i64toi32_i32$HIGH_BITS; + $4_1 = $0_1; + $5_1 = $2_1; + $3_1 = 32; + $1_1 = $3_1 & 31 | 0; + if (32 >>> 0 <= ($3_1 & 63 | 0) >>> 0) { + $0_1 = $2_1 >>> $1_1 | 0 } else { - { - i64toi32_i32$0 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $7_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $0_1 = (((1 << $1_1 | 0) - 1 | 0) & $2_1 | 0) << (32 - $1_1 | 0) | 0 | ($0_1 >>> $1_1 | 0) | 0 } - setTempRet0($7_1 | 0); - i64toi32_i32$0 = $0$hi; - return $0_1 | 0; + setTempRet0($0_1 | 0); + return $4_1 | 0; } var FUNCTION_TABLE = []; diff --git a/test/wasm2js/unary-ops.2asm.js b/test/wasm2js/unary-ops.2asm.js index 8d2dcbefd..81d927968 100644 --- a/test/wasm2js/unary-ops.2asm.js +++ b/test/wasm2js/unary-ops.2asm.js @@ -27,55 +27,43 @@ function asmFunc(global, env, buffer) { return __wasm_popcnt_i32($0 | 0) | 0 | 0; } - function $2($0, $0$hi, r, r$hi) { + function $2($0, $1_1, $2_1, $3_1) { $0 = $0 | 0; - $0$hi = $0$hi | 0; - r = r | 0; - r$hi = r$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, $3$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $0$hi; - i64toi32_i32$0 = __wasm_popcnt_i64($0 | 0, i64toi32_i32$0 | 0) | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $3$hi = i64toi32_i32$1; - i64toi32_i32$1 = r$hi; - i64toi32_i32$1 = $3$hi; - i64toi32_i32$2 = i64toi32_i32$0; - i64toi32_i32$0 = r$hi; - return (i64toi32_i32$2 | 0) == (r | 0) & (i64toi32_i32$1 | 0) == (i64toi32_i32$0 | 0) | 0 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + var $4_1 = 0; + $1_1 = __wasm_popcnt_i64($0 | 0, $1_1 | 0) | 0; + $0 = i64toi32_i32$HIGH_BITS; + $4_1 = $1_1; + $1_1 = $3_1; + return ($4_1 | 0) == ($2_1 | 0) & ($0 | 0) == ($1_1 | 0) | 0 | 0; } - function $3($0, r, r$hi) { + function $3($0, $1_1, $2_1) { $0 = $0 | 0; - r = r | 0; - r$hi = r$hi | 0; - var i64toi32_i32$0 = 0, $3$hi = 0; - i64toi32_i32$0 = 0; - $3$hi = i64toi32_i32$0; - i64toi32_i32$0 = r$hi; - i64toi32_i32$0 = $3$hi; - return ($0 | 0) == (r | 0) & (i64toi32_i32$0 | 0) == (r$hi | 0) | 0 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + var $3_1 = 0; + $3_1 = 0; + return ($0 | 0) == ($1_1 | 0) & ($3_1 | 0) == ($2_1 | 0) | 0 | 0; } - function $4($0, r, r$hi) { + function $4($0, $1_1, $2_1) { $0 = $0 | 0; - r = r | 0; - r$hi = r$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, $3$hi = 0; - i64toi32_i32$1 = $0; - i64toi32_i32$0 = i64toi32_i32$1 >> 31 | 0; - $3$hi = i64toi32_i32$0; - i64toi32_i32$0 = r$hi; - i64toi32_i32$0 = $3$hi; - i64toi32_i32$1 = r$hi; - return ($0 | 0) == (r | 0) & (i64toi32_i32$0 | 0) == (i64toi32_i32$1 | 0) | 0 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + var $3_1 = 0, $4_1 = 0; + $3_1 = $0; + $4_1 = $3_1 >> 31 | 0; + $3_1 = $2_1; + return ($0 | 0) == ($1_1 | 0) & ($4_1 | 0) == ($3_1 | 0) | 0 | 0; } - function $5($0, $0$hi) { + function $5($0, $1_1) { $0 = $0 | 0; - $0$hi = $0$hi | 0; - var i64toi32_i32$0 = 0; - i64toi32_i32$0 = $0$hi; - return !($0 | i64toi32_i32$0 | 0) | 0; + $1_1 = $1_1 | 0; + return !($0 | $1_1 | 0) | 0; } function $6($0) { @@ -88,45 +76,36 @@ function asmFunc(global, env, buffer) { return __wasm_ctz_i32($0 | 0) | 0 | 0; } - function $8($0, $0$hi, r, r$hi) { + function $8($0, $1_1, $2_1, $3_1) { $0 = $0 | 0; - $0$hi = $0$hi | 0; - r = r | 0; - r$hi = r$hi | 0; - var i64toi32_i32$3 = 0, i64toi32_i32$2 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, $9_1 = 0, $3$hi = 0; - i64toi32_i32$0 = $0$hi; - i64toi32_i32$1 = $0; - i64toi32_i32$3 = Math_clz32(i64toi32_i32$0); - i64toi32_i32$2 = 0; - if ((i64toi32_i32$3 | 0) == (32 | 0)) { - $9_1 = Math_clz32(i64toi32_i32$1) + 32 | 0 + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + var $4_1 = 0, $5_1 = 0; + $4_1 = $0; + $5_1 = Math_clz32($1_1); + $0 = 0; + if (($5_1 | 0) == (32 | 0)) { + $4_1 = Math_clz32($4_1) + 32 | 0 } else { - $9_1 = i64toi32_i32$3 + $4_1 = $5_1 } - $3$hi = i64toi32_i32$2; - i64toi32_i32$2 = r$hi; - i64toi32_i32$2 = $3$hi; - i64toi32_i32$1 = $9_1; - i64toi32_i32$0 = r$hi; - i64toi32_i32$3 = r; - return (i64toi32_i32$1 | 0) == (i64toi32_i32$3 | 0) & (i64toi32_i32$2 | 0) == (i64toi32_i32$0 | 0) | 0 | 0; + $1_1 = $3_1; + $5_1 = $2_1; + return ($4_1 | 0) == ($5_1 | 0) & ($0 | 0) == ($1_1 | 0) | 0 | 0; } - function $9($0, $0$hi, r, r$hi) { + function $9($0, $1_1, $2_1, $3_1) { $0 = $0 | 0; - $0$hi = $0$hi | 0; - r = r | 0; - r$hi = r$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, $3$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $0$hi; - i64toi32_i32$0 = __wasm_ctz_i64($0 | 0, i64toi32_i32$0 | 0) | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $3$hi = i64toi32_i32$1; - i64toi32_i32$1 = r$hi; - i64toi32_i32$1 = $3$hi; - i64toi32_i32$2 = i64toi32_i32$0; - i64toi32_i32$0 = r$hi; - return (i64toi32_i32$2 | 0) == (r | 0) & (i64toi32_i32$1 | 0) == (i64toi32_i32$0 | 0) | 0 | 0; + $1_1 = $1_1 | 0; + $2_1 = $2_1 | 0; + $3_1 = $3_1 | 0; + var $4_1 = 0; + $1_1 = __wasm_ctz_i64($0 | 0, $1_1 | 0) | 0; + $0 = i64toi32_i32$HIGH_BITS; + $4_1 = $1_1; + $1_1 = $3_1; + return ($4_1 | 0) == ($2_1 | 0) & ($0 | 0) == ($1_1 | 0) | 0 | 0; } function legalstub$2($0, $1_1, $2_1, $3_1) { @@ -134,164 +113,140 @@ function asmFunc(global, env, buffer) { $1_1 = $1_1 | 0; $2_1 = $2_1 | 0; $3_1 = $3_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $19 = 0, $20 = 0, $5_1 = 0, $5$hi = 0, $8$hi = 0, $9_1 = 0, $9$hi = 0, $11 = 0, $11$hi = 0, $14$hi = 0, $15 = 0, $15$hi = 0; - i64toi32_i32$0 = 0; - $5_1 = $0; - $5$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $4_1 = 0, $5_1 = 0, $6_1 = 0, $7_1 = 0, $8_1 = 0, $9_1 = 0; + $6_1 = 0; + $7_1 = $0; + $8_1 = $6_1; + $6_1 = 0; + $4_1 = 32; + $5_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $19 = 0; + $0 = $1_1 << $5_1 | 0; + $4_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $19 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $0 = ((1 << $5_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $5_1 | 0) | 0) | 0 | ($6_1 << $5_1 | 0) | 0; + $4_1 = $1_1 << $5_1 | 0; } } - $8$hi = i64toi32_i32$1; - i64toi32_i32$1 = $5$hi; - i64toi32_i32$0 = $5_1; - i64toi32_i32$2 = $8$hi; - i64toi32_i32$3 = $19; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - $9_1 = i64toi32_i32$0 | i64toi32_i32$3 | 0; - $9$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - $11 = $2_1; - $11$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$1 = $3_1; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + $1_1 = $0; + $0 = $8_1; + $6_1 = $7_1; + $1_1 = $0 | $1_1 | 0; + $9_1 = $6_1 | $4_1 | 0; + $7_1 = $1_1; + $1_1 = 0; + $8_1 = $1_1; + $1_1 = 0; + $0 = $3_1; + $4_1 = 32; + $5_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { { - i64toi32_i32$0 = i64toi32_i32$1 << i64toi32_i32$4 | 0; - $20 = 0; + $6_1 = $0 << $5_1 | 0; + $4_1 = 0; } } else { { - i64toi32_i32$0 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$1 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$2 << i64toi32_i32$4 | 0) | 0; - $20 = i64toi32_i32$1 << i64toi32_i32$4 | 0; + $6_1 = ((1 << $5_1 | 0) - 1 | 0) & ($0 >>> (32 - $5_1 | 0) | 0) | 0 | ($1_1 << $5_1 | 0) | 0; + $4_1 = $0 << $5_1 | 0; } } - $14$hi = i64toi32_i32$0; - i64toi32_i32$0 = $11$hi; - i64toi32_i32$2 = $11; - i64toi32_i32$1 = $14$hi; - i64toi32_i32$3 = $20; - i64toi32_i32$1 = i64toi32_i32$0 | i64toi32_i32$1 | 0; - $15 = i64toi32_i32$2 | i64toi32_i32$3 | 0; - $15$hi = i64toi32_i32$1; - i64toi32_i32$1 = $9$hi; - i64toi32_i32$2 = $15$hi; - return $2($9_1 | 0, i64toi32_i32$1 | 0, $15 | 0, i64toi32_i32$2 | 0) | 0 | 0; + $0 = $6_1; + $6_1 = $8_1; + $1_1 = $2_1; + $0 = $6_1 | $0 | 0; + $2_1 = $1_1 | $4_1 | 0; + $1_1 = $0; + $0 = $7_1; + return $2($9_1 | 0, $0 | 0, $2_1 | 0, $1_1 | 0) | 0 | 0; } function legalstub$3($0, $1_1, $2_1) { $0 = $0 | 0; $1_1 = $1_1 | 0; $2_1 = $2_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $12 = 0, $3_1 = 0, $5_1 = 0, $5$hi = 0, $8$hi = 0; - $3_1 = $0; - i64toi32_i32$0 = 0; - $5_1 = $1_1; - $5$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $2_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $3_1 = 0, $4_1 = 0, $5_1 = 0, $6_1 = 0, $7_1 = 0; + $7_1 = $0; + $3_1 = 0; + $0 = $3_1; + $3_1 = 0; + $4_1 = 32; + $5_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $12 = 0; + $6_1 = $2_1 << $5_1 | 0; + $4_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $12 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $6_1 = ((1 << $5_1 | 0) - 1 | 0) & ($2_1 >>> (32 - $5_1 | 0) | 0) | 0 | ($3_1 << $5_1 | 0) | 0; + $4_1 = $2_1 << $5_1 | 0; } } - $8$hi = i64toi32_i32$1; - i64toi32_i32$1 = $5$hi; - i64toi32_i32$0 = $5_1; - i64toi32_i32$2 = $8$hi; - i64toi32_i32$3 = $12; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - return $3($3_1 | 0, i64toi32_i32$0 | i64toi32_i32$3 | 0 | 0, i64toi32_i32$2 | 0) | 0 | 0; + $2_1 = $6_1; + $6_1 = $0; + $3_1 = $1_1; + $2_1 = $6_1 | $2_1 | 0; + return $3($7_1 | 0, $3_1 | $4_1 | 0 | 0, $2_1 | 0) | 0 | 0; } function legalstub$4($0, $1_1, $2_1) { $0 = $0 | 0; $1_1 = $1_1 | 0; $2_1 = $2_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $12 = 0, $3_1 = 0, $5_1 = 0, $5$hi = 0, $8$hi = 0; - $3_1 = $0; - i64toi32_i32$0 = 0; - $5_1 = $1_1; - $5$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $2_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $3_1 = 0, $4_1 = 0, $5_1 = 0, $6_1 = 0, $7_1 = 0; + $7_1 = $0; + $3_1 = 0; + $0 = $3_1; + $3_1 = 0; + $4_1 = 32; + $5_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $12 = 0; + $6_1 = $2_1 << $5_1 | 0; + $4_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $12 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $6_1 = ((1 << $5_1 | 0) - 1 | 0) & ($2_1 >>> (32 - $5_1 | 0) | 0) | 0 | ($3_1 << $5_1 | 0) | 0; + $4_1 = $2_1 << $5_1 | 0; } } - $8$hi = i64toi32_i32$1; - i64toi32_i32$1 = $5$hi; - i64toi32_i32$0 = $5_1; - i64toi32_i32$2 = $8$hi; - i64toi32_i32$3 = $12; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - return $4($3_1 | 0, i64toi32_i32$0 | i64toi32_i32$3 | 0 | 0, i64toi32_i32$2 | 0) | 0 | 0; + $2_1 = $6_1; + $6_1 = $0; + $3_1 = $1_1; + $2_1 = $6_1 | $2_1 | 0; + return $4($7_1 | 0, $3_1 | $4_1 | 0 | 0, $2_1 | 0) | 0 | 0; } function legalstub$5($0, $1_1) { $0 = $0 | 0; $1_1 = $1_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $10 = 0, $3_1 = 0, $3$hi = 0, $6$hi = 0; - i64toi32_i32$0 = 0; - $3_1 = $0; - $3$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0, $6_1 = 0; + $2_1 = 0; + $6_1 = $2_1; + $2_1 = 0; + $3_1 = 32; + $4_1 = $3_1 & 31 | 0; + if (32 >>> 0 <= ($3_1 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $10 = 0; + $5_1 = $1_1 << $4_1 | 0; + $3_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $10 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $5_1 = ((1 << $4_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $4_1 | 0) | 0) | 0 | ($2_1 << $4_1 | 0) | 0; + $3_1 = $1_1 << $4_1 | 0; } } - $6$hi = i64toi32_i32$1; - i64toi32_i32$1 = $3$hi; - i64toi32_i32$0 = $3_1; - i64toi32_i32$2 = $6$hi; - i64toi32_i32$3 = $10; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - return $5(i64toi32_i32$0 | i64toi32_i32$3 | 0 | 0, i64toi32_i32$2 | 0) | 0 | 0; + $1_1 = $5_1; + $5_1 = $6_1; + $2_1 = $0; + $1_1 = $5_1 | $1_1 | 0; + return $5($2_1 | $3_1 | 0 | 0, $1_1 | 0) | 0 | 0; } function legalstub$8($0, $1_1, $2_1, $3_1) { @@ -299,64 +254,55 @@ function asmFunc(global, env, buffer) { $1_1 = $1_1 | 0; $2_1 = $2_1 | 0; $3_1 = $3_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $19 = 0, $20 = 0, $5_1 = 0, $5$hi = 0, $8$hi = 0, $9_1 = 0, $9$hi = 0, $11 = 0, $11$hi = 0, $14$hi = 0, $15 = 0, $15$hi = 0; - i64toi32_i32$0 = 0; - $5_1 = $0; - $5$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $4_1 = 0, $5_1 = 0, $6_1 = 0, $7_1 = 0, $8_1 = 0, $9_1 = 0; + $6_1 = 0; + $7_1 = $0; + $8_1 = $6_1; + $6_1 = 0; + $4_1 = 32; + $5_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $19 = 0; + $0 = $1_1 << $5_1 | 0; + $4_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $19 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $0 = ((1 << $5_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $5_1 | 0) | 0) | 0 | ($6_1 << $5_1 | 0) | 0; + $4_1 = $1_1 << $5_1 | 0; } } - $8$hi = i64toi32_i32$1; - i64toi32_i32$1 = $5$hi; - i64toi32_i32$0 = $5_1; - i64toi32_i32$2 = $8$hi; - i64toi32_i32$3 = $19; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - $9_1 = i64toi32_i32$0 | i64toi32_i32$3 | 0; - $9$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - $11 = $2_1; - $11$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$1 = $3_1; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + $1_1 = $0; + $0 = $8_1; + $6_1 = $7_1; + $1_1 = $0 | $1_1 | 0; + $9_1 = $6_1 | $4_1 | 0; + $7_1 = $1_1; + $1_1 = 0; + $8_1 = $1_1; + $1_1 = 0; + $0 = $3_1; + $4_1 = 32; + $5_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { { - i64toi32_i32$0 = i64toi32_i32$1 << i64toi32_i32$4 | 0; - $20 = 0; + $6_1 = $0 << $5_1 | 0; + $4_1 = 0; } } else { { - i64toi32_i32$0 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$1 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$2 << i64toi32_i32$4 | 0) | 0; - $20 = i64toi32_i32$1 << i64toi32_i32$4 | 0; + $6_1 = ((1 << $5_1 | 0) - 1 | 0) & ($0 >>> (32 - $5_1 | 0) | 0) | 0 | ($1_1 << $5_1 | 0) | 0; + $4_1 = $0 << $5_1 | 0; } } - $14$hi = i64toi32_i32$0; - i64toi32_i32$0 = $11$hi; - i64toi32_i32$2 = $11; - i64toi32_i32$1 = $14$hi; - i64toi32_i32$3 = $20; - i64toi32_i32$1 = i64toi32_i32$0 | i64toi32_i32$1 | 0; - $15 = i64toi32_i32$2 | i64toi32_i32$3 | 0; - $15$hi = i64toi32_i32$1; - i64toi32_i32$1 = $9$hi; - i64toi32_i32$2 = $15$hi; - return $8($9_1 | 0, i64toi32_i32$1 | 0, $15 | 0, i64toi32_i32$2 | 0) | 0 | 0; + $0 = $6_1; + $6_1 = $8_1; + $1_1 = $2_1; + $0 = $6_1 | $0 | 0; + $2_1 = $1_1 | $4_1 | 0; + $1_1 = $0; + $0 = $7_1; + return $8($9_1 | 0, $0 | 0, $2_1 | 0, $1_1 | 0) | 0 | 0; } function legalstub$9($0, $1_1, $2_1, $3_1) { @@ -364,190 +310,169 @@ function asmFunc(global, env, buffer) { $1_1 = $1_1 | 0; $2_1 = $2_1 | 0; $3_1 = $3_1 | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $19 = 0, $20 = 0, $5_1 = 0, $5$hi = 0, $8$hi = 0, $9_1 = 0, $9$hi = 0, $11 = 0, $11$hi = 0, $14$hi = 0, $15 = 0, $15$hi = 0; - i64toi32_i32$0 = 0; - $5_1 = $0; - $5$hi = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$2 = $1_1; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + var $4_1 = 0, $5_1 = 0, $6_1 = 0, $7_1 = 0, $8_1 = 0, $9_1 = 0; + $6_1 = 0; + $7_1 = $0; + $8_1 = $6_1; + $6_1 = 0; + $4_1 = 32; + $5_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { { - i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; - $19 = 0; + $0 = $1_1 << $5_1 | 0; + $4_1 = 0; } } else { { - i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; - $19 = i64toi32_i32$2 << i64toi32_i32$4 | 0; + $0 = ((1 << $5_1 | 0) - 1 | 0) & ($1_1 >>> (32 - $5_1 | 0) | 0) | 0 | ($6_1 << $5_1 | 0) | 0; + $4_1 = $1_1 << $5_1 | 0; } } - $8$hi = i64toi32_i32$1; - i64toi32_i32$1 = $5$hi; - i64toi32_i32$0 = $5_1; - i64toi32_i32$2 = $8$hi; - i64toi32_i32$3 = $19; - i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; - $9_1 = i64toi32_i32$0 | i64toi32_i32$3 | 0; - $9$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - $11 = $2_1; - $11$hi = i64toi32_i32$2; - i64toi32_i32$2 = 0; - i64toi32_i32$1 = $3_1; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { + $1_1 = $0; + $0 = $8_1; + $6_1 = $7_1; + $1_1 = $0 | $1_1 | 0; + $9_1 = $6_1 | $4_1 | 0; + $7_1 = $1_1; + $1_1 = 0; + $8_1 = $1_1; + $1_1 = 0; + $0 = $3_1; + $4_1 = 32; + $5_1 = $4_1 & 31 | 0; + if (32 >>> 0 <= ($4_1 & 63 | 0) >>> 0) { { - i64toi32_i32$0 = i64toi32_i32$1 << i64toi32_i32$4 | 0; - $20 = 0; + $6_1 = $0 << $5_1 | 0; + $4_1 = 0; } } else { { - i64toi32_i32$0 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$1 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$2 << i64toi32_i32$4 | 0) | 0; - $20 = i64toi32_i32$1 << i64toi32_i32$4 | 0; + $6_1 = ((1 << $5_1 | 0) - 1 | 0) & ($0 >>> (32 - $5_1 | 0) | 0) | 0 | ($1_1 << $5_1 | 0) | 0; + $4_1 = $0 << $5_1 | 0; } } - $14$hi = i64toi32_i32$0; - i64toi32_i32$0 = $11$hi; - i64toi32_i32$2 = $11; - i64toi32_i32$1 = $14$hi; - i64toi32_i32$3 = $20; - i64toi32_i32$1 = i64toi32_i32$0 | i64toi32_i32$1 | 0; - $15 = i64toi32_i32$2 | i64toi32_i32$3 | 0; - $15$hi = i64toi32_i32$1; - i64toi32_i32$1 = $9$hi; - i64toi32_i32$2 = $15$hi; - return $9($9_1 | 0, i64toi32_i32$1 | 0, $15 | 0, i64toi32_i32$2 | 0) | 0 | 0; + $0 = $6_1; + $6_1 = $8_1; + $1_1 = $2_1; + $0 = $6_1 | $0 | 0; + $2_1 = $1_1 | $4_1 | 0; + $1_1 = $0; + $0 = $7_1; + return $9($9_1 | 0, $0 | 0, $2_1 | 0, $1_1 | 0) | 0 | 0; } - function __wasm_ctz_i32(var$0) { - var$0 = var$0 | 0; - if (var$0) { - return 31 - Math_clz32((var$0 + -1 | 0) ^ var$0 | 0) | 0 | 0 + function __wasm_ctz_i32($0) { + $0 = $0 | 0; + if ($0) { + return 31 - Math_clz32(($0 + -1 | 0) ^ $0 | 0) | 0 | 0 } return 32 | 0; } - function __wasm_ctz_i64(var$0, var$0$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$3 = 0, i64toi32_i32$5 = 0, i64toi32_i32$4 = 0, i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, $10 = 0, $5$hi = 0, $8$hi = 0; - i64toi32_i32$0 = var$0$hi; - if (!!(var$0 | i64toi32_i32$0 | 0)) { + function __wasm_ctz_i64($0, $1_1) { + $0 = $0 | 0; + $1_1 = $1_1 | 0; + var $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0, $6_1 = 0; + $3_1 = $1_1; + if (!!($0 | $3_1 | 0)) { { - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$2 = var$0; - i64toi32_i32$1 = -1; - i64toi32_i32$3 = -1; - i64toi32_i32$4 = i64toi32_i32$2 + i64toi32_i32$3 | 0; - i64toi32_i32$5 = i64toi32_i32$0 + i64toi32_i32$1 | 0; - if (i64toi32_i32$4 >>> 0 < i64toi32_i32$3 >>> 0) { - i64toi32_i32$5 = i64toi32_i32$5 + 1 | 0 + $3_1 = $1_1; + $2_1 = $0; + $6_1 = -1; + $4_1 = -1; + $2_1 = $2_1 + $4_1 | 0; + $5_1 = $3_1 + $6_1 | 0; + if ($2_1 >>> 0 < $4_1 >>> 0) { + $5_1 = $5_1 + 1 | 0 } - $5$hi = i64toi32_i32$5; - i64toi32_i32$5 = var$0$hi; - i64toi32_i32$5 = $5$hi; - i64toi32_i32$0 = i64toi32_i32$4; - i64toi32_i32$2 = var$0$hi; - i64toi32_i32$3 = var$0; - i64toi32_i32$2 = i64toi32_i32$5 ^ i64toi32_i32$2 | 0; - i64toi32_i32$0 = i64toi32_i32$0 ^ i64toi32_i32$3 | 0; - i64toi32_i32$3 = Math_clz32(i64toi32_i32$2); - i64toi32_i32$5 = 0; - if ((i64toi32_i32$3 | 0) == (32 | 0)) { - $10 = Math_clz32(i64toi32_i32$0) + 32 | 0 - } else { - $10 = i64toi32_i32$3 + $3_1 = $2_1; + $2_1 = $1_1; + $4_1 = $0; + $2_1 = $5_1 ^ $2_1 | 0; + $3_1 = $3_1 ^ $4_1 | 0; + $4_1 = Math_clz32($2_1); + $5_1 = 0; + if (($4_1 | 0) == (32 | 0)) { + $4_1 = Math_clz32($3_1) + 32 | 0 } - $8$hi = i64toi32_i32$5; - i64toi32_i32$5 = 0; - i64toi32_i32$0 = 63; - i64toi32_i32$2 = $8$hi; - i64toi32_i32$3 = $10; - i64toi32_i32$1 = i64toi32_i32$0 - i64toi32_i32$3 | 0; - i64toi32_i32$4 = (i64toi32_i32$0 >>> 0 < i64toi32_i32$3 >>> 0) + i64toi32_i32$2 | 0; - i64toi32_i32$4 = i64toi32_i32$5 - i64toi32_i32$4 | 0; - i64toi32_i32$0 = i64toi32_i32$1; - i64toi32_i32$HIGH_BITS = i64toi32_i32$4; - return i64toi32_i32$0 | 0; + $2_1 = $5_1; + $5_1 = 0; + $3_1 = 63; + $6_1 = $3_1 - $4_1 | 0; + $2_1 = ($3_1 >>> 0 < $4_1 >>> 0) + $2_1 | 0; + $2_1 = $5_1 - $2_1 | 0; + $3_1 = $6_1; + i64toi32_i32$HIGH_BITS = $2_1; + return $3_1 | 0; } } - i64toi32_i32$0 = 0; - i64toi32_i32$4 = 64; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$4 | 0; + $3_1 = 0; + $2_1 = 64; + i64toi32_i32$HIGH_BITS = $3_1; + return $2_1 | 0; } - function __wasm_popcnt_i32(var$0) { - var$0 = var$0 | 0; - var var$1 = 0, $5_1 = 0; + function __wasm_popcnt_i32($0) { + $0 = $0 | 0; + var $1_1 = 0, $2_1 = 0; label$1 : { label$2 : while (1) { - $5_1 = var$1; - if (!var$0) { + $2_1 = $1_1; + if (!$0) { break label$1 } - var$0 = var$0 & (var$0 - 1 | 0) | 0; - var$1 = var$1 + 1 | 0; + $0 = $0 & ($0 - 1 | 0) | 0; + $1_1 = $1_1 + 1 | 0; continue label$2; }; } - return $5_1 | 0; + return $2_1 | 0; } - function __wasm_popcnt_i64(var$0, var$0$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$2 = 0, i64toi32_i32$5 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, i64toi32_i32$1 = 0, var$1$hi = 0, var$1 = 0, $5_1 = 0, $5$hi = 0, $4_1 = 0, $9$hi = 0; + function __wasm_popcnt_i64($0, $1_1) { + $0 = $0 | 0; + $1_1 = $1_1 | 0; + var $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0, $6_1 = 0, $7_1 = 0, $8_1 = 0; label$1 : { label$2 : while (1) { - i64toi32_i32$0 = var$1$hi; - i64toi32_i32$0 = var$0$hi; - $4_1 = !(var$0 | i64toi32_i32$0 | 0); - i64toi32_i32$0 = var$1$hi; - $5_1 = var$1; - $5$hi = i64toi32_i32$0; - if ($4_1) { + $4_1 = $1_1; + $3_1 = !($0 | $4_1 | 0); + $4_1 = $7_1; + $2_1 = $8_1; + if ($3_1) { break label$1 } - i64toi32_i32$0 = $5$hi; - i64toi32_i32$0 = var$0$hi; - i64toi32_i32$2 = var$0; - i64toi32_i32$1 = 0; - i64toi32_i32$3 = 1; - i64toi32_i32$4 = i64toi32_i32$2 - i64toi32_i32$3 | 0; - i64toi32_i32$5 = (i64toi32_i32$2 >>> 0 < i64toi32_i32$3 >>> 0) + i64toi32_i32$1 | 0; - i64toi32_i32$5 = i64toi32_i32$0 - i64toi32_i32$5 | 0; - $9$hi = i64toi32_i32$5; - i64toi32_i32$5 = i64toi32_i32$0; - i64toi32_i32$0 = i64toi32_i32$2; - i64toi32_i32$2 = $9$hi; - i64toi32_i32$3 = i64toi32_i32$4; - i64toi32_i32$2 = i64toi32_i32$5 & i64toi32_i32$2 | 0; - var$0 = i64toi32_i32$0 & i64toi32_i32$4 | 0; - var$0$hi = i64toi32_i32$2; - i64toi32_i32$2 = var$1$hi; - i64toi32_i32$5 = var$1; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 1; - i64toi32_i32$1 = i64toi32_i32$5 + i64toi32_i32$3 | 0; - i64toi32_i32$4 = i64toi32_i32$2 + i64toi32_i32$0 | 0; - if (i64toi32_i32$1 >>> 0 < i64toi32_i32$3 >>> 0) { - i64toi32_i32$4 = i64toi32_i32$4 + 1 | 0 + $4_1 = $1_1; + $3_1 = $0; + $2_1 = 0; + $6_1 = 1; + $5_1 = $3_1 - $6_1 | 0; + $2_1 = ($3_1 >>> 0 < $6_1 >>> 0) + $2_1 | 0; + $2_1 = $4_1 - $2_1 | 0; + $0 = $2_1; + $2_1 = $4_1; + $4_1 = $3_1; + $3_1 = $0; + $3_1 = $2_1 & $3_1 | 0; + $0 = $4_1 & $5_1 | 0; + $1_1 = $3_1; + $3_1 = $7_1; + $2_1 = $8_1; + $4_1 = 0; + $6_1 = 1; + $2_1 = $2_1 + $6_1 | 0; + $5_1 = $3_1 + $4_1 | 0; + if ($2_1 >>> 0 < $6_1 >>> 0) { + $5_1 = $5_1 + 1 | 0 } - var$1 = i64toi32_i32$1; - var$1$hi = i64toi32_i32$4; + $8_1 = $2_1; + $7_1 = $5_1; continue label$2; }; } - i64toi32_i32$4 = $5$hi; - i64toi32_i32$5 = $5_1; - i64toi32_i32$HIGH_BITS = i64toi32_i32$4; - return i64toi32_i32$5 | 0; + $5_1 = $4_1; + i64toi32_i32$HIGH_BITS = $5_1; + return $2_1 | 0; } var FUNCTION_TABLE = []; diff --git a/test/wasm2js/unary-ops.2asm.js.opt b/test/wasm2js/unary-ops.2asm.js.opt index 5a62e84c0..4663ef8dc 100644 --- a/test/wasm2js/unary-ops.2asm.js.opt +++ b/test/wasm2js/unary-ops.2asm.js.opt @@ -34,13 +34,12 @@ function asmFunc(global, env, buffer) { function $7($0) { $0 = $0 | 0; - var $1_1 = 0; if ($0) { - $1_1 = 31 - Math_clz32($0 ^ $0 + -1) | 0 + $0 = 31 - Math_clz32($0 ^ $0 + -1) | 0 } else { - $1_1 = 32 + $0 = 32 } - return $1_1 | 0; + return $0 | 0; } function $8($0, $1_1, $2, $3) { @@ -71,24 +70,24 @@ function asmFunc(global, env, buffer) { } function legalstub$8($0, $1_1, $2, $3) { - var $4 = 0, $5 = 0, $6_1 = 0, $7_1 = 0, $8_1 = 0, $9 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0; - $8_1 = $0; + var $4 = 0, $5 = 0, $6_1 = 0, $7_1 = 0, $8_1 = 0; + $6_1 = $0; $5 = 32; $0 = $5 & 31; if (32 >>> 0 <= $5 >>> 0) { { $4 = $1_1 << $0; - $6_1 = 0; + $0 = 0; } } else { { $4 = (1 << $0) - 1 & $1_1 >>> 32 - $0 | $4 << $0; - $6_1 = $1_1 << $0; + $0 = $1_1 << $0; } } - $9 = $8_1 | $6_1; - $10 = $4 | $12; - $11 = $2; + $5 = $6_1 | $0; + $4 = $4 | $7_1; + $6_1 = $2; $2 = 0; $1_1 = $3; $3 = 32; @@ -96,15 +95,15 @@ function asmFunc(global, env, buffer) { if (32 >>> 0 <= $3 >>> 0) { { $2 = $1_1 << $0; - $7_1 = 0; + $0 = 0; } } else { { $2 = (1 << $0) - 1 & $1_1 >>> 32 - $0 | $2 << $0; - $7_1 = $1_1 << $0; + $0 = $1_1 << $0; } } - return $8($9, $10, $11 | $7_1, $2 | $13); + return $8($5, $4, $6_1 | $0, $2 | $8_1); } function legalstub$9($0, $1_1, $2, $3) { @@ -112,22 +111,22 @@ function asmFunc(global, env, buffer) { } function __wasm_ctz_i64($0, $1_1) { - var $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6_1 = 0, $7_1 = 0; + var $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6_1 = 0; if ($0 | $1_1) { { - $3 = 63; - $6_1 = $3; - $2 = $1_1 + -1 | 0; - $4 = -1; - $5 = $4 + $0 | 0; - if ($5 >>> 0 < $4 >>> 0) { - $2 = $2 + 1 | 0 + $4 = 63; + $6_1 = $4; + $3 = $1_1 + -1 | 0; + $2 = -1; + $5 = $2 + $0 | 0; + if ($5 >>> 0 < $2 >>> 0) { + $3 = $3 + 1 | 0 } - $7_1 = Math_clz32($0 ^ $5) + 32 | 0; - $0 = Math_clz32($1_1 ^ $2); - $0 = ($0 | 0) == (32 | 0) ? $7_1 : $0; + $2 = Math_clz32($0 ^ $5) + 32 | 0; + $0 = Math_clz32($1_1 ^ $3); + $0 = ($0 | 0) == (32 | 0) ? $2 : $0; $1_1 = $6_1 - $0 | 0; - i64toi32_i32$HIGH_BITS = 0 - ($3 >>> 0 < $0 >>> 0) | 0; + i64toi32_i32$HIGH_BITS = 0 - ($4 >>> 0 < $0 >>> 0) | 0; return $1_1; } } diff --git a/test/wasm2js/unreachable.2asm.js b/test/wasm2js/unreachable.2asm.js index d29335a98..b54c1132b 100644 --- a/test/wasm2js/unreachable.2asm.js +++ b/test/wasm2js/unreachable.2asm.js @@ -51,12 +51,10 @@ function asmFunc(global, env, buffer) { } function $6() { - var $0 = 0; abort(); } function $7() { - var $0 = 0; dummy(); abort(); } @@ -72,12 +70,10 @@ function asmFunc(global, env, buffer) { } function $10() { - var $0 = 0; abort(); } function $11() { - var $0 = 0; dummy(); abort(); } @@ -103,12 +99,10 @@ function asmFunc(global, env, buffer) { } function $15() { - var $0 = 0, $2_1 = 0; abort(); } function $16() { - var $0 = 0, $2_1 = 0; dummy(); abort(); } @@ -137,7 +131,6 @@ function asmFunc(global, env, buffer) { } function $21() { - var $0 = 0; abort(); } @@ -151,12 +144,11 @@ function asmFunc(global, env, buffer) { } function $24() { - var $0 = 0; abort(); } function $25() { - var $1 = 0; + var $0 = 0; abort(); } @@ -165,46 +157,36 @@ function asmFunc(global, env, buffer) { } function $27() { - var $0 = 0; abort(); } function $28($0, $1) { $0 = $0 | 0; $1 = $1 | 0; - var $4_1 = 0; if ($0) { abort() - } else { - $4_1 = $1 } - return $4_1 | 0; + return $1 | 0; } function $29($0, $1) { $0 = $0 | 0; $1 = $1 | 0; - var $4_1 = 0; - if ($0) { - $4_1 = $1 - } else { + if (!$0) { abort() } - return $4_1 | 0; + return $1 | 0; } function $30($0, $1) { $0 = $0 | 0; $1 = $1 | 0; - var $2_1 = 0, $3_1 = 0; abort(); } function $31($0, $1) { $0 = $0 | 0; $1 = $1 | 0; - var $2_1 = 0, $3_1 = 0; - $2_1 = $0; abort(); } @@ -301,81 +283,54 @@ function asmFunc(global, env, buffer) { } function legalstub$26() { - var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $26() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$2 = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = 0; - $7_1 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + var $0 = 0, $1 = 0, $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0; + $0 = $26() | 0; + $2_1 = i64toi32_i32$HIGH_BITS; + $4_1 = $0; + $5_1 = $2_1; + $3_1 = 32; + $1 = $3_1 & 31 | 0; + if (32 >>> 0 <= ($3_1 & 63 | 0) >>> 0) { + $0 = $2_1 >>> $1 | 0 } else { - { - i64toi32_i32$0 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $7_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $0 = (((1 << $1 | 0) - 1 | 0) & $2_1 | 0) << (32 - $1 | 0) | 0 | ($0 >>> $1 | 0) | 0 } - setTempRet0($7_1 | 0); - i64toi32_i32$0 = $0$hi; - return $0 | 0; + setTempRet0($0 | 0); + return $4_1 | 0; } function legalstub$42() { - var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $42() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$2 = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = 0; - $7_1 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + var $0 = 0, $1 = 0, $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0; + $0 = $42() | 0; + $2_1 = i64toi32_i32$HIGH_BITS; + $4_1 = $0; + $5_1 = $2_1; + $3_1 = 32; + $1 = $3_1 & 31 | 0; + if (32 >>> 0 <= ($3_1 & 63 | 0) >>> 0) { + $0 = $2_1 >>> $1 | 0 } else { - { - i64toi32_i32$0 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $7_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $0 = (((1 << $1 | 0) - 1 | 0) & $2_1 | 0) << (32 - $1 | 0) | 0 | ($0 >>> $1 | 0) | 0 } - setTempRet0($7_1 | 0); - i64toi32_i32$0 = $0$hi; - return $0 | 0; + setTempRet0($0 | 0); + return $4_1 | 0; } function legalstub$49() { - var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $49() | 0; - i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; - $0 = i64toi32_i32$0; - $0$hi = i64toi32_i32$1; - i64toi32_i32$2 = i64toi32_i32$0; - i64toi32_i32$0 = 0; - i64toi32_i32$3 = 32; - i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; - if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { - { - i64toi32_i32$0 = 0; - $7_1 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - } + var $0 = 0, $1 = 0, $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0; + $0 = $49() | 0; + $2_1 = i64toi32_i32$HIGH_BITS; + $4_1 = $0; + $5_1 = $2_1; + $3_1 = 32; + $1 = $3_1 & 31 | 0; + if (32 >>> 0 <= ($3_1 & 63 | 0) >>> 0) { + $0 = $2_1 >>> $1 | 0 } else { - { - i64toi32_i32$0 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; - $7_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; - } + $0 = (((1 << $1 | 0) - 1 | 0) & $2_1 | 0) << (32 - $1 | 0) | 0 | ($0 >>> $1 | 0) | 0 } - setTempRet0($7_1 | 0); - i64toi32_i32$0 = $0$hi; - return $0 | 0; + setTempRet0($0 | 0); + return $4_1 | 0; } var FUNCTION_TABLE = []; |