1415 lines
28 KiB
Plaintext
1415 lines
28 KiB
Plaintext
(module $adpcm_dec.wasm
|
|
(type (;0;) (func (param i32 i32)))
|
|
(type (;1;) (func))
|
|
(type (;2;) (func (param i32)))
|
|
(type (;3;) (func (param i32 i32 i32)))
|
|
(type (;4;) (func (result i32)))
|
|
(import "__pragma" "loopbound" (func $__pragma_loopbound (type 0)))
|
|
(func $__wasm_apply_data_relocs (type 1))
|
|
(func $adpcm_dec_decode (type 2) (param i32)
|
|
(local i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32)
|
|
i32.const 0
|
|
local.get 0
|
|
i32.const 6
|
|
i32.shr_s
|
|
i32.store offset=1684
|
|
i32.const 0
|
|
local.get 0
|
|
i32.const 63
|
|
i32.and
|
|
i32.store offset=1680
|
|
i32.const 0
|
|
i32.load offset=1696
|
|
local.set 0
|
|
i32.const 0
|
|
i32.load offset=1728
|
|
local.set 1
|
|
i32.const 5
|
|
i32.const 5
|
|
call $__pragma_loopbound
|
|
i32.const 0
|
|
i32.const 0
|
|
i32.load offset=1768
|
|
i32.const 0
|
|
i32.load offset=1764
|
|
i32.mul
|
|
i32.const 0
|
|
i32.load offset=1760
|
|
i32.const 0
|
|
i32.load offset=1756
|
|
i32.mul
|
|
i32.add
|
|
i32.const 1
|
|
i32.shl
|
|
i32.const 15
|
|
i32.shr_s
|
|
local.tee 2
|
|
i32.store offset=1772
|
|
i32.const 0
|
|
i32.const 0
|
|
i32.load offset=1732
|
|
i32.const 0
|
|
i32.load offset=1700
|
|
i32.mul
|
|
local.get 1
|
|
local.get 0
|
|
i32.mul
|
|
i32.add
|
|
i32.const 0
|
|
i32.load offset=1736
|
|
i32.const 0
|
|
i32.load offset=1704
|
|
i32.mul
|
|
i32.add
|
|
i32.const 0
|
|
i32.load offset=1740
|
|
i32.const 0
|
|
i32.load offset=1708
|
|
i32.mul
|
|
i32.add
|
|
i32.const 0
|
|
i32.load offset=1744
|
|
i32.const 0
|
|
i32.load offset=1712
|
|
i32.mul
|
|
i32.add
|
|
i32.const 0
|
|
i32.load offset=1748
|
|
i32.const 0
|
|
i32.load offset=1716
|
|
i32.mul
|
|
i32.add
|
|
i32.const 14
|
|
i32.shr_s
|
|
local.tee 0
|
|
i32.store offset=1752
|
|
i32.const 0
|
|
local.get 2
|
|
local.get 0
|
|
i32.add
|
|
local.tee 2
|
|
i32.store offset=1776
|
|
i32.const 0
|
|
i32.const 0
|
|
i32.load offset=1680
|
|
i32.const -4
|
|
i32.and
|
|
local.tee 3
|
|
i32.const 1136
|
|
i32.add
|
|
i32.load
|
|
i32.const 0
|
|
i32.load offset=1780
|
|
local.tee 4
|
|
i32.mul
|
|
i32.const 15
|
|
i32.shr_s
|
|
local.tee 1
|
|
i32.store offset=1784
|
|
i32.const 0
|
|
local.get 1
|
|
local.get 0
|
|
i32.add
|
|
i32.store offset=1804
|
|
i32.const 0
|
|
local.get 4
|
|
i32.const 0
|
|
i32.load offset=1788
|
|
i32.const 2
|
|
i32.shl
|
|
i32.const 1200
|
|
i32.add
|
|
i32.load
|
|
i32.mul
|
|
i32.const 15
|
|
i32.shr_s
|
|
local.tee 0
|
|
i32.store offset=1792
|
|
i32.const 0
|
|
local.get 0
|
|
local.get 2
|
|
i32.add
|
|
i32.store offset=1796
|
|
i32.const 0
|
|
i32.const 0
|
|
i32.load offset=1800
|
|
i32.const 127
|
|
i32.mul
|
|
i32.const 7
|
|
i32.shr_s
|
|
local.get 3
|
|
i32.const 1456
|
|
i32.add
|
|
i32.load
|
|
i32.add
|
|
local.tee 0
|
|
i32.const 0
|
|
local.get 0
|
|
i32.const 0
|
|
i32.gt_s
|
|
select
|
|
local.tee 0
|
|
i32.const 18432
|
|
local.get 0
|
|
i32.const 18432
|
|
i32.lt_s
|
|
select
|
|
local.tee 0
|
|
i32.store offset=1800
|
|
i32.const 0
|
|
local.get 0
|
|
i32.const 4
|
|
i32.shr_u
|
|
i32.const 124
|
|
i32.and
|
|
i32.const 1520
|
|
i32.add
|
|
i32.load
|
|
i32.const 9
|
|
local.get 0
|
|
i32.const 11
|
|
i32.shr_u
|
|
i32.sub
|
|
i32.shr_s
|
|
i32.const 3
|
|
i32.shl
|
|
i32.store offset=1780
|
|
local.get 1
|
|
i32.const 1728
|
|
i32.const 1696
|
|
call $adpcm_dec_upzero
|
|
i32.const 0
|
|
i32.const 0
|
|
i32.load offset=1756
|
|
i32.store offset=1764
|
|
i32.const 0
|
|
i32.load offset=1812
|
|
local.set 1
|
|
i32.const 0
|
|
i32.const 0
|
|
i32.load offset=1808
|
|
local.tee 2
|
|
i32.store offset=1812
|
|
i32.const 0
|
|
i32.const 0
|
|
i32.load offset=1804
|
|
local.tee 0
|
|
i32.store offset=1808
|
|
i32.const 0
|
|
i32.const 0
|
|
i32.load offset=1784
|
|
i32.const 0
|
|
i32.load offset=1776
|
|
i32.add
|
|
local.tee 3
|
|
i32.store offset=1816
|
|
i32.const 0
|
|
local.get 3
|
|
i32.store offset=1756
|
|
i32.const 0
|
|
i32.const -128
|
|
i32.const 128
|
|
local.get 1
|
|
local.get 0
|
|
i32.mul
|
|
i32.const 0
|
|
i32.lt_s
|
|
select
|
|
i32.const 0
|
|
i32.load offset=1768
|
|
i32.const 127
|
|
i32.mul
|
|
i32.const 7
|
|
i32.shr_s
|
|
i32.add
|
|
i32.const 0
|
|
i32.load offset=1760
|
|
local.tee 1
|
|
i32.const 2
|
|
i32.shl
|
|
local.tee 3
|
|
i32.const 0
|
|
local.get 3
|
|
i32.sub
|
|
local.get 2
|
|
local.get 0
|
|
i32.mul
|
|
i32.const 0
|
|
i32.lt_s
|
|
local.tee 2
|
|
select
|
|
i32.const 7
|
|
i32.shr_s
|
|
i32.add
|
|
local.tee 0
|
|
i32.const 12288
|
|
local.get 0
|
|
i32.const 12288
|
|
i32.lt_s
|
|
select
|
|
local.tee 0
|
|
i32.const -12288
|
|
local.get 0
|
|
i32.const -12288
|
|
i32.gt_s
|
|
select
|
|
local.tee 0
|
|
i32.store offset=1768
|
|
i32.const 0
|
|
i32.const -192
|
|
i32.const 192
|
|
local.get 2
|
|
select
|
|
local.get 1
|
|
i32.const 255
|
|
i32.mul
|
|
i32.const 8
|
|
i32.shr_s
|
|
i32.add
|
|
local.tee 1
|
|
i32.const 15360
|
|
local.get 0
|
|
i32.sub
|
|
local.tee 2
|
|
local.get 1
|
|
local.get 2
|
|
i32.lt_s
|
|
select
|
|
local.tee 1
|
|
local.get 0
|
|
i32.const -15360
|
|
i32.add
|
|
local.tee 0
|
|
local.get 1
|
|
local.get 0
|
|
i32.gt_s
|
|
select
|
|
i32.store offset=1760
|
|
i32.const 0
|
|
i32.load offset=1824
|
|
local.set 0
|
|
i32.const 0
|
|
i32.load offset=1856
|
|
local.set 1
|
|
i32.const 5
|
|
i32.const 5
|
|
call $__pragma_loopbound
|
|
i32.const 0
|
|
i32.const 0
|
|
i32.load offset=1896
|
|
i32.const 0
|
|
i32.load offset=1892
|
|
i32.mul
|
|
i32.const 0
|
|
i32.load offset=1888
|
|
i32.const 0
|
|
i32.load offset=1884
|
|
i32.mul
|
|
i32.add
|
|
i32.const 1
|
|
i32.shl
|
|
i32.const 15
|
|
i32.shr_s
|
|
local.tee 2
|
|
i32.store offset=1900
|
|
i32.const 0
|
|
i32.const 0
|
|
i32.load offset=1860
|
|
i32.const 0
|
|
i32.load offset=1828
|
|
i32.mul
|
|
local.get 1
|
|
local.get 0
|
|
i32.mul
|
|
i32.add
|
|
i32.const 0
|
|
i32.load offset=1864
|
|
i32.const 0
|
|
i32.load offset=1832
|
|
i32.mul
|
|
i32.add
|
|
i32.const 0
|
|
i32.load offset=1868
|
|
i32.const 0
|
|
i32.load offset=1836
|
|
i32.mul
|
|
i32.add
|
|
i32.const 0
|
|
i32.load offset=1872
|
|
i32.const 0
|
|
i32.load offset=1840
|
|
i32.mul
|
|
i32.add
|
|
i32.const 0
|
|
i32.load offset=1876
|
|
i32.const 0
|
|
i32.load offset=1844
|
|
i32.mul
|
|
i32.add
|
|
i32.const 14
|
|
i32.shr_s
|
|
local.tee 0
|
|
i32.store offset=1880
|
|
i32.const 0
|
|
local.get 2
|
|
local.get 0
|
|
i32.add
|
|
i32.store offset=1904
|
|
i32.const 0
|
|
i32.const 0
|
|
i32.load offset=1684
|
|
i32.const 2
|
|
i32.shl
|
|
local.tee 2
|
|
i32.const 1648
|
|
i32.add
|
|
i32.load
|
|
i32.const 0
|
|
i32.load offset=1908
|
|
i32.mul
|
|
i32.const 15
|
|
i32.shr_s
|
|
local.tee 1
|
|
i32.store offset=1912
|
|
i32.const 0
|
|
local.get 1
|
|
local.get 0
|
|
i32.add
|
|
i32.store offset=1920
|
|
i32.const 0
|
|
i32.const 0
|
|
i32.load offset=1916
|
|
i32.const 127
|
|
i32.mul
|
|
i32.const 7
|
|
i32.shr_s
|
|
local.get 2
|
|
i32.const 1664
|
|
i32.add
|
|
i32.load
|
|
i32.add
|
|
local.tee 0
|
|
i32.const 0
|
|
local.get 0
|
|
i32.const 0
|
|
i32.gt_s
|
|
select
|
|
local.tee 0
|
|
i32.const 22528
|
|
local.get 0
|
|
i32.const 22528
|
|
i32.lt_s
|
|
select
|
|
local.tee 0
|
|
i32.store offset=1916
|
|
i32.const 0
|
|
local.get 0
|
|
i32.const 4
|
|
i32.shr_u
|
|
i32.const 124
|
|
i32.and
|
|
i32.const 1520
|
|
i32.add
|
|
i32.load
|
|
i32.const 11
|
|
local.get 0
|
|
i32.const 11
|
|
i32.shr_u
|
|
i32.sub
|
|
i32.shr_s
|
|
i32.const 3
|
|
i32.shl
|
|
i32.store offset=1908
|
|
local.get 1
|
|
i32.const 1856
|
|
i32.const 1824
|
|
call $adpcm_dec_upzero
|
|
i32.const 0
|
|
i32.const 0
|
|
i32.load offset=1884
|
|
i32.store offset=1892
|
|
i32.const 0
|
|
i32.load offset=1928
|
|
local.set 2
|
|
i32.const 0
|
|
i32.const 0
|
|
i32.load offset=1924
|
|
local.tee 3
|
|
i32.store offset=1928
|
|
i32.const 0
|
|
i32.const 0
|
|
i32.load offset=1920
|
|
local.tee 1
|
|
i32.store offset=1924
|
|
i32.const 0
|
|
i32.const 0
|
|
i32.load offset=1912
|
|
i32.const 0
|
|
i32.load offset=1904
|
|
i32.add
|
|
local.tee 0
|
|
i32.store offset=1932
|
|
i32.const 0
|
|
local.get 0
|
|
i32.store offset=1884
|
|
i32.const 0
|
|
i32.const 0
|
|
i32.load offset=1796
|
|
local.tee 4
|
|
local.get 0
|
|
i32.sub
|
|
local.tee 5
|
|
i32.store offset=1936
|
|
i32.const 0
|
|
local.get 4
|
|
local.get 0
|
|
i32.add
|
|
local.tee 4
|
|
i32.store offset=1940
|
|
i32.const 0
|
|
i32.const -128
|
|
i32.const 128
|
|
local.get 2
|
|
local.get 1
|
|
i32.mul
|
|
i32.const 0
|
|
i32.lt_s
|
|
select
|
|
i32.const 0
|
|
i32.load offset=1896
|
|
i32.const 127
|
|
i32.mul
|
|
i32.const 7
|
|
i32.shr_s
|
|
i32.add
|
|
i32.const 0
|
|
i32.load offset=1888
|
|
local.tee 2
|
|
i32.const 2
|
|
i32.shl
|
|
local.tee 0
|
|
i32.const 0
|
|
local.get 0
|
|
i32.sub
|
|
local.get 3
|
|
local.get 1
|
|
i32.mul
|
|
i32.const 0
|
|
i32.lt_s
|
|
local.tee 1
|
|
select
|
|
i32.const 7
|
|
i32.shr_s
|
|
i32.add
|
|
local.tee 0
|
|
i32.const 12288
|
|
local.get 0
|
|
i32.const 12288
|
|
i32.lt_s
|
|
select
|
|
local.tee 0
|
|
i32.const -12288
|
|
local.get 0
|
|
i32.const -12288
|
|
i32.gt_s
|
|
select
|
|
local.tee 0
|
|
i32.store offset=1896
|
|
i32.const 0
|
|
i32.const -192
|
|
i32.const 192
|
|
local.get 1
|
|
select
|
|
local.get 2
|
|
i32.const 255
|
|
i32.mul
|
|
i32.const 8
|
|
i32.shr_s
|
|
i32.add
|
|
local.tee 1
|
|
i32.const 15360
|
|
local.get 0
|
|
i32.sub
|
|
local.tee 2
|
|
local.get 1
|
|
local.get 2
|
|
i32.lt_s
|
|
select
|
|
local.tee 1
|
|
local.get 0
|
|
i32.const -15360
|
|
i32.add
|
|
local.tee 0
|
|
local.get 1
|
|
local.get 0
|
|
i32.gt_s
|
|
select
|
|
i32.store offset=1888
|
|
i32.const 0
|
|
i32.load offset=1040
|
|
local.set 0
|
|
i32.const 0
|
|
i32.load offset=1044
|
|
local.set 1
|
|
i32.const 10
|
|
i32.const 10
|
|
call $__pragma_loopbound
|
|
i32.const 0
|
|
i32.load offset=1128
|
|
local.set 2
|
|
i32.const 0
|
|
i32.load offset=1992
|
|
local.set 3
|
|
i32.const 0
|
|
i32.load offset=1120
|
|
local.set 6
|
|
i32.const 0
|
|
i32.load offset=1988
|
|
local.set 7
|
|
i32.const 0
|
|
i32.load offset=1112
|
|
local.set 8
|
|
i32.const 0
|
|
i32.load offset=1984
|
|
local.set 9
|
|
i32.const 0
|
|
i32.load offset=1104
|
|
local.set 10
|
|
i32.const 0
|
|
i32.load offset=1980
|
|
local.set 11
|
|
i32.const 0
|
|
i32.load offset=1096
|
|
local.set 12
|
|
i32.const 0
|
|
i32.load offset=1976
|
|
local.set 13
|
|
i32.const 0
|
|
i32.load offset=1088
|
|
local.set 14
|
|
i32.const 0
|
|
i32.load offset=1972
|
|
local.set 15
|
|
i32.const 0
|
|
i32.load offset=1080
|
|
local.set 16
|
|
i32.const 0
|
|
i32.load offset=1968
|
|
local.set 17
|
|
i32.const 0
|
|
i32.load offset=1072
|
|
local.set 18
|
|
i32.const 0
|
|
i32.load offset=1964
|
|
local.set 19
|
|
i32.const 0
|
|
i32.load offset=1064
|
|
local.set 20
|
|
i32.const 0
|
|
i32.load offset=1960
|
|
local.set 21
|
|
i32.const 0
|
|
i32.load offset=1056
|
|
local.set 22
|
|
i32.const 0
|
|
i32.load offset=1956
|
|
local.set 23
|
|
i32.const 0
|
|
i32.load offset=1048
|
|
local.set 24
|
|
i32.const 0
|
|
i32.load offset=1952
|
|
local.set 25
|
|
i32.const 0
|
|
i32.const 0
|
|
i32.load offset=1132
|
|
i32.const 0
|
|
i32.load offset=2040
|
|
i32.mul
|
|
i32.const 0
|
|
i32.load offset=1124
|
|
i32.const 0
|
|
i32.load offset=2036
|
|
i32.mul
|
|
i32.const 0
|
|
i32.load offset=1116
|
|
i32.const 0
|
|
i32.load offset=2032
|
|
i32.mul
|
|
i32.const 0
|
|
i32.load offset=1108
|
|
i32.const 0
|
|
i32.load offset=2028
|
|
i32.mul
|
|
i32.const 0
|
|
i32.load offset=1100
|
|
i32.const 0
|
|
i32.load offset=2024
|
|
i32.mul
|
|
i32.const 0
|
|
i32.load offset=1092
|
|
i32.const 0
|
|
i32.load offset=2020
|
|
i32.mul
|
|
i32.const 0
|
|
i32.load offset=1084
|
|
i32.const 0
|
|
i32.load offset=2016
|
|
i32.mul
|
|
i32.const 0
|
|
i32.load offset=1076
|
|
i32.const 0
|
|
i32.load offset=2012
|
|
i32.mul
|
|
i32.const 0
|
|
i32.load offset=1068
|
|
i32.const 0
|
|
i32.load offset=2008
|
|
i32.mul
|
|
i32.const 0
|
|
i32.load offset=1060
|
|
i32.const 0
|
|
i32.load offset=2004
|
|
i32.mul
|
|
i32.const 0
|
|
i32.load offset=1052
|
|
i32.const 0
|
|
i32.load offset=2000
|
|
i32.mul
|
|
local.get 1
|
|
local.get 4
|
|
i32.mul
|
|
i32.add
|
|
i32.add
|
|
i32.add
|
|
i32.add
|
|
i32.add
|
|
i32.add
|
|
i32.add
|
|
i32.add
|
|
i32.add
|
|
i32.add
|
|
i32.add
|
|
i32.const 14
|
|
i32.shr_s
|
|
i32.store offset=2048
|
|
i32.const 0
|
|
local.get 2
|
|
local.get 3
|
|
i32.mul
|
|
local.get 6
|
|
local.get 7
|
|
i32.mul
|
|
local.get 8
|
|
local.get 9
|
|
i32.mul
|
|
local.get 10
|
|
local.get 11
|
|
i32.mul
|
|
local.get 12
|
|
local.get 13
|
|
i32.mul
|
|
local.get 14
|
|
local.get 15
|
|
i32.mul
|
|
local.get 16
|
|
local.get 17
|
|
i32.mul
|
|
local.get 18
|
|
local.get 19
|
|
i32.mul
|
|
local.get 20
|
|
local.get 21
|
|
i32.mul
|
|
local.get 22
|
|
local.get 23
|
|
i32.mul
|
|
local.get 24
|
|
local.get 25
|
|
i32.mul
|
|
local.get 0
|
|
local.get 5
|
|
i32.mul
|
|
i32.add
|
|
i32.add
|
|
i32.add
|
|
i32.add
|
|
i32.add
|
|
i32.add
|
|
i32.add
|
|
i32.add
|
|
i32.add
|
|
i32.add
|
|
i32.add
|
|
i32.const 14
|
|
i32.shr_s
|
|
i32.store offset=2044
|
|
i32.const 10
|
|
i32.const 10
|
|
call $__pragma_loopbound
|
|
i32.const 0
|
|
i32.const 0
|
|
i64.load offset=1984
|
|
i64.store offset=1988 align=4
|
|
i32.const 0
|
|
i32.const 0
|
|
i32.load offset=2036
|
|
i32.store offset=2040
|
|
i32.const 0
|
|
i32.const 0
|
|
i32.load offset=1980
|
|
i32.store offset=1984
|
|
i32.const 0
|
|
i32.const 0
|
|
i64.load offset=2028 align=4
|
|
i64.store offset=2032
|
|
i32.const 0
|
|
i32.const 0
|
|
i64.load offset=1972 align=4
|
|
i64.store offset=1976
|
|
i32.const 0
|
|
i32.const 0
|
|
i64.load offset=2020 align=4
|
|
i64.store offset=2024
|
|
i32.const 0
|
|
i32.const 0
|
|
i32.load offset=1968
|
|
i32.store offset=1972
|
|
i32.const 0
|
|
i32.const 0
|
|
i32.load offset=2016
|
|
i32.store offset=2020
|
|
i32.const 0
|
|
i32.const 0
|
|
i32.load offset=1964
|
|
i32.store offset=1968
|
|
i32.const 0
|
|
i32.const 0
|
|
i32.load offset=2012
|
|
i32.store offset=2016
|
|
i32.const 0
|
|
i32.const 0
|
|
i32.load offset=1960
|
|
i32.store offset=1964
|
|
i32.const 0
|
|
i32.const 0
|
|
i32.load offset=2008
|
|
i32.store offset=2012
|
|
i32.const 0
|
|
i32.const 0
|
|
i32.load offset=1956
|
|
i32.store offset=1960
|
|
i32.const 0
|
|
i32.const 0
|
|
i32.load offset=2004
|
|
i32.store offset=2008
|
|
i32.const 0
|
|
i32.const 0
|
|
i32.load offset=1952
|
|
i32.store offset=1956
|
|
i32.const 0
|
|
i32.const 0
|
|
i32.load offset=2000
|
|
i32.store offset=2004
|
|
i32.const 0
|
|
i32.const 0
|
|
i32.load offset=1936
|
|
i32.store offset=1952
|
|
i32.const 0
|
|
i32.const 0
|
|
i32.load offset=1940
|
|
i32.store offset=2000)
|
|
(func $adpcm_dec_upzero (type 3) (param i32 i32 i32)
|
|
i32.const 6
|
|
i32.const 6
|
|
call $__pragma_loopbound
|
|
block ;; label = @1
|
|
block ;; label = @2
|
|
local.get 0
|
|
br_if 0 (;@2;)
|
|
local.get 2
|
|
local.get 2
|
|
i32.load
|
|
i32.const 255
|
|
i32.mul
|
|
i32.const 8
|
|
i32.shr_s
|
|
i32.store
|
|
local.get 2
|
|
local.get 2
|
|
i32.load offset=4
|
|
i32.const 255
|
|
i32.mul
|
|
i32.const 8
|
|
i32.shr_s
|
|
i32.store offset=4
|
|
local.get 2
|
|
local.get 2
|
|
i32.load offset=8
|
|
i32.const 255
|
|
i32.mul
|
|
i32.const 8
|
|
i32.shr_s
|
|
i32.store offset=8
|
|
local.get 2
|
|
local.get 2
|
|
i32.load offset=12
|
|
i32.const 255
|
|
i32.mul
|
|
i32.const 8
|
|
i32.shr_s
|
|
i32.store offset=12
|
|
local.get 2
|
|
local.get 2
|
|
i32.load offset=16
|
|
i32.const 255
|
|
i32.mul
|
|
i32.const 8
|
|
i32.shr_s
|
|
i32.store offset=16
|
|
local.get 2
|
|
local.get 2
|
|
i32.load offset=20
|
|
i32.const 255
|
|
i32.mul
|
|
i32.const 8
|
|
i32.shr_s
|
|
i32.store offset=20
|
|
br 1 (;@1;)
|
|
end
|
|
local.get 2
|
|
i32.const 128
|
|
i32.const -128
|
|
local.get 1
|
|
i32.load
|
|
local.get 0
|
|
i32.mul
|
|
i32.const -1
|
|
i32.gt_s
|
|
select
|
|
local.get 2
|
|
i32.load
|
|
i32.const 255
|
|
i32.mul
|
|
i32.const 8
|
|
i32.shr_s
|
|
i32.add
|
|
i32.store
|
|
local.get 2
|
|
i32.const 128
|
|
i32.const -128
|
|
local.get 1
|
|
i32.load offset=4
|
|
local.get 0
|
|
i32.mul
|
|
i32.const -1
|
|
i32.gt_s
|
|
select
|
|
local.get 2
|
|
i32.load offset=4
|
|
i32.const 255
|
|
i32.mul
|
|
i32.const 8
|
|
i32.shr_s
|
|
i32.add
|
|
i32.store offset=4
|
|
local.get 2
|
|
i32.const 128
|
|
i32.const -128
|
|
local.get 1
|
|
i32.load offset=8
|
|
local.get 0
|
|
i32.mul
|
|
i32.const -1
|
|
i32.gt_s
|
|
select
|
|
local.get 2
|
|
i32.load offset=8
|
|
i32.const 255
|
|
i32.mul
|
|
i32.const 8
|
|
i32.shr_s
|
|
i32.add
|
|
i32.store offset=8
|
|
local.get 2
|
|
i32.const 128
|
|
i32.const -128
|
|
local.get 1
|
|
i32.load offset=12
|
|
local.get 0
|
|
i32.mul
|
|
i32.const -1
|
|
i32.gt_s
|
|
select
|
|
local.get 2
|
|
i32.load offset=12
|
|
i32.const 255
|
|
i32.mul
|
|
i32.const 8
|
|
i32.shr_s
|
|
i32.add
|
|
i32.store offset=12
|
|
local.get 2
|
|
i32.const 128
|
|
i32.const -128
|
|
local.get 1
|
|
i32.load offset=16
|
|
local.get 0
|
|
i32.mul
|
|
i32.const -1
|
|
i32.gt_s
|
|
select
|
|
local.get 2
|
|
i32.load offset=16
|
|
i32.const 255
|
|
i32.mul
|
|
i32.const 8
|
|
i32.shr_s
|
|
i32.add
|
|
i32.store offset=16
|
|
local.get 2
|
|
i32.const 128
|
|
i32.const -128
|
|
local.get 1
|
|
i32.load offset=20
|
|
local.get 0
|
|
i32.mul
|
|
i32.const -1
|
|
i32.gt_s
|
|
select
|
|
local.get 2
|
|
i32.load offset=20
|
|
i32.const 255
|
|
i32.mul
|
|
i32.const 8
|
|
i32.shr_s
|
|
i32.add
|
|
i32.store offset=20
|
|
end
|
|
local.get 1
|
|
local.get 1
|
|
i32.load offset=16
|
|
i32.store offset=20
|
|
local.get 1
|
|
local.get 1
|
|
i64.load offset=8 align=4
|
|
i64.store offset=12 align=4
|
|
local.get 1
|
|
i32.load
|
|
local.set 2
|
|
local.get 1
|
|
local.get 0
|
|
i32.store
|
|
local.get 1
|
|
local.get 2
|
|
i32.store offset=4)
|
|
(func $adpcm_dec_reset (type 1)
|
|
i32.const 0
|
|
i32.const 32
|
|
i32.store offset=2052
|
|
i32.const 0
|
|
i32.const 32
|
|
i32.store offset=1780
|
|
i32.const 0
|
|
i32.const 8
|
|
i32.store offset=1908
|
|
i32.const 0
|
|
i32.const 8
|
|
i32.store offset=2056
|
|
i32.const 0
|
|
i32.const 0
|
|
i32.store offset=2060
|
|
i32.const 0
|
|
i32.const 0
|
|
i32.store offset=2064
|
|
i32.const 0
|
|
i32.const 0
|
|
i32.store offset=2068
|
|
i32.const 0
|
|
i32.const 0
|
|
i32.store offset=2072
|
|
i32.const 0
|
|
i32.const 0
|
|
i32.store offset=2076
|
|
i32.const 0
|
|
i32.const 0
|
|
i32.store offset=2080
|
|
i32.const 0
|
|
i32.const 0
|
|
i32.store offset=2084
|
|
i32.const 0
|
|
i32.const 0
|
|
i32.store offset=2088
|
|
i32.const 0
|
|
i32.const 0
|
|
i32.store offset=2092
|
|
i32.const 0
|
|
i32.const 0
|
|
i32.store offset=2096
|
|
i32.const 0
|
|
i32.const 0
|
|
i32.store offset=2100
|
|
i32.const 0
|
|
i32.const 0
|
|
i32.store offset=2104
|
|
i32.const 0
|
|
i32.const 0
|
|
i32.store offset=2108
|
|
i32.const 0
|
|
i32.const 0
|
|
i32.store offset=2112
|
|
i32.const 0
|
|
i32.const 0
|
|
i32.store offset=1764
|
|
i32.const 0
|
|
i32.const 0
|
|
i32.store offset=1812
|
|
i32.const 0
|
|
i32.const 0
|
|
i32.store offset=1756
|
|
i32.const 0
|
|
i32.const 0
|
|
i32.store offset=1808
|
|
i32.const 0
|
|
i32.const 0
|
|
i32.store offset=1768
|
|
i32.const 0
|
|
i32.const 0
|
|
i32.store offset=1760
|
|
i32.const 0
|
|
i32.const 0
|
|
i32.store offset=1800
|
|
i32.const 0
|
|
i32.const 0
|
|
i32.store offset=1892
|
|
i32.const 0
|
|
i32.const 0
|
|
i32.store offset=1884
|
|
i32.const 0
|
|
i32.const 0
|
|
i32.store offset=1928
|
|
i32.const 0
|
|
i32.const 0
|
|
i32.store offset=1924
|
|
i32.const 0
|
|
i32.const 0
|
|
i32.store offset=1896
|
|
i32.const 0
|
|
i32.const 0
|
|
i32.store offset=1888
|
|
i32.const 0
|
|
i32.const 0
|
|
i32.store offset=1916
|
|
i32.const 6
|
|
i32.const 6
|
|
call $__pragma_loopbound
|
|
i32.const 0
|
|
i64.const 0
|
|
i64.store offset=2128
|
|
i32.const 0
|
|
i64.const 0
|
|
i64.store offset=1728
|
|
i32.const 0
|
|
i64.const 0
|
|
i64.store offset=1856
|
|
i32.const 0
|
|
i64.const 0
|
|
i64.store offset=2136
|
|
i32.const 0
|
|
i64.const 0
|
|
i64.store offset=1736
|
|
i32.const 0
|
|
i64.const 0
|
|
i64.store offset=1864
|
|
i32.const 0
|
|
i64.const 0
|
|
i64.store offset=2144
|
|
i32.const 0
|
|
i64.const 0
|
|
i64.store offset=1744
|
|
i32.const 0
|
|
i64.const 0
|
|
i64.store offset=1872
|
|
i32.const 6
|
|
i32.const 6
|
|
call $__pragma_loopbound
|
|
i32.const 0
|
|
i64.const 0
|
|
i64.store offset=2160
|
|
i32.const 0
|
|
i64.const 0
|
|
i64.store offset=1696
|
|
i32.const 0
|
|
i64.const 0
|
|
i64.store offset=1824
|
|
i32.const 0
|
|
i64.const 0
|
|
i64.store offset=2168
|
|
i32.const 0
|
|
i64.const 0
|
|
i64.store offset=1704
|
|
i32.const 0
|
|
i64.const 0
|
|
i64.store offset=1832
|
|
i32.const 0
|
|
i64.const 0
|
|
i64.store offset=2176
|
|
i32.const 0
|
|
i64.const 0
|
|
i64.store offset=1712
|
|
i32.const 0
|
|
i64.const 0
|
|
i64.store offset=1840
|
|
i32.const 11
|
|
i32.const 11
|
|
call $__pragma_loopbound
|
|
i32.const 0
|
|
i64.const 0
|
|
i64.store offset=1952
|
|
i32.const 0
|
|
i64.const 0
|
|
i64.store offset=2000
|
|
i32.const 0
|
|
i64.const 0
|
|
i64.store offset=1960
|
|
i32.const 0
|
|
i64.const 0
|
|
i64.store offset=2008
|
|
i32.const 0
|
|
i64.const 0
|
|
i64.store offset=1968
|
|
i32.const 0
|
|
i64.const 0
|
|
i64.store offset=2016
|
|
i32.const 0
|
|
i64.const 0
|
|
i64.store offset=1976
|
|
i32.const 0
|
|
i64.const 0
|
|
i64.store offset=2024
|
|
i32.const 0
|
|
i64.const 0
|
|
i64.store offset=1984
|
|
i32.const 0
|
|
i64.const 0
|
|
i64.store offset=2032
|
|
i32.const 0
|
|
i32.const 0
|
|
i32.store offset=1992
|
|
i32.const 0
|
|
i32.const 0
|
|
i32.store offset=2040)
|
|
(func $adpcm_dec_main (type 1)
|
|
i32.const 2
|
|
i32.const 2
|
|
call $__pragma_loopbound
|
|
i32.const 0
|
|
i32.load offset=1024
|
|
call $adpcm_dec_decode
|
|
i32.const 0
|
|
i32.const 0
|
|
i32.load offset=2044
|
|
i32.store offset=2224
|
|
i32.const 0
|
|
i32.const 0
|
|
i32.load offset=2048
|
|
i32.store offset=2228
|
|
i32.const 0
|
|
i32.load offset=1028
|
|
call $adpcm_dec_decode
|
|
i32.const 0
|
|
i32.const 0
|
|
i32.load offset=2044
|
|
i32.store offset=2232
|
|
i32.const 0
|
|
i32.const 0
|
|
i32.load offset=2048
|
|
i32.store offset=2236)
|
|
(func $__original_main (type 4) (result i32)
|
|
(local i32 i32 i32 i32 i32)
|
|
global.get $__stack_pointer
|
|
i32.const 16
|
|
i32.sub
|
|
local.tee 0
|
|
global.set $__stack_pointer
|
|
local.get 0
|
|
i32.const 0
|
|
i32.store offset=12
|
|
call $adpcm_dec_reset
|
|
i32.const 3
|
|
i32.const 3
|
|
call $__pragma_loopbound
|
|
i32.const 0
|
|
i32.const 0
|
|
call $__pragma_loopbound
|
|
i32.const 0
|
|
i32.const 1999
|
|
call $__pragma_loopbound
|
|
i32.const 849
|
|
i32.const 2424
|
|
call $__pragma_loopbound
|
|
i32.const 70845716
|
|
local.set 1
|
|
i32.const 70847286
|
|
local.set 2
|
|
i32.const 5
|
|
local.set 3
|
|
loop ;; label = @1
|
|
local.get 1
|
|
i32.const -2464900
|
|
i32.mul
|
|
local.get 3
|
|
local.get 3
|
|
i32.const -1
|
|
i32.add
|
|
i32.mul
|
|
i32.div_s
|
|
local.tee 1
|
|
local.get 2
|
|
i32.add
|
|
local.set 2
|
|
local.get 3
|
|
i32.const 2
|
|
i32.add
|
|
local.set 3
|
|
local.get 1
|
|
br_if 0 (;@1;)
|
|
end
|
|
i32.const 0
|
|
local.get 0
|
|
i32.load offset=12
|
|
local.get 2
|
|
i32.const 10
|
|
i32.mul
|
|
i32.add
|
|
i32.store offset=2192
|
|
i32.const 0
|
|
i32.const 0
|
|
call $__pragma_loopbound
|
|
i32.const 0
|
|
i32.const 1999
|
|
call $__pragma_loopbound
|
|
i32.const 849
|
|
i32.const 2424
|
|
call $__pragma_loopbound
|
|
i32.const 256842837
|
|
local.set 1
|
|
i32.const 256838125
|
|
local.set 2
|
|
i32.const 5
|
|
local.set 3
|
|
loop ;; label = @1
|
|
local.get 1
|
|
i32.const -22202944
|
|
i32.mul
|
|
local.get 3
|
|
local.get 3
|
|
i32.const -1
|
|
i32.add
|
|
i32.mul
|
|
i32.div_s
|
|
local.tee 1
|
|
local.get 2
|
|
i32.add
|
|
local.set 2
|
|
local.get 3
|
|
i32.const 2
|
|
i32.add
|
|
local.set 3
|
|
local.get 1
|
|
br_if 0 (;@1;)
|
|
end
|
|
i32.const 0
|
|
local.get 0
|
|
i32.load offset=12
|
|
local.get 2
|
|
i32.const 10
|
|
i32.mul
|
|
i32.add
|
|
i32.store offset=2196
|
|
i32.const 0
|
|
i32.const 0
|
|
call $__pragma_loopbound
|
|
i32.const 0
|
|
i32.const 1999
|
|
call $__pragma_loopbound
|
|
i32.const 849
|
|
i32.const 2424
|
|
call $__pragma_loopbound
|
|
i32.const 256842837
|
|
local.set 1
|
|
i32.const 256838125
|
|
local.set 2
|
|
i32.const 5
|
|
local.set 3
|
|
loop ;; label = @1
|
|
local.get 1
|
|
i32.const -22202944
|
|
i32.mul
|
|
local.get 3
|
|
local.get 3
|
|
i32.const -1
|
|
i32.add
|
|
i32.mul
|
|
i32.div_s
|
|
local.tee 1
|
|
local.get 2
|
|
i32.add
|
|
local.set 2
|
|
local.get 3
|
|
i32.const 2
|
|
i32.add
|
|
local.set 3
|
|
local.get 1
|
|
br_if 0 (;@1;)
|
|
end
|
|
i32.const 0
|
|
local.get 0
|
|
i32.load offset=12
|
|
local.get 2
|
|
i32.const 10
|
|
i32.mul
|
|
i32.add
|
|
i32.store offset=2200
|
|
call $adpcm_dec_main
|
|
i32.const 2
|
|
i32.const 2
|
|
call $__pragma_loopbound
|
|
i32.const 0
|
|
i32.load offset=2224
|
|
local.set 3
|
|
i32.const 0
|
|
i32.load offset=2228
|
|
local.set 1
|
|
i32.const 0
|
|
i32.load offset=2232
|
|
local.set 2
|
|
i32.const 0
|
|
i32.load offset=2236
|
|
local.set 4
|
|
local.get 0
|
|
i32.const 16
|
|
i32.add
|
|
global.set $__stack_pointer
|
|
local.get 4
|
|
local.get 2
|
|
local.get 1
|
|
local.get 3
|
|
i32.add
|
|
i32.add
|
|
i32.add
|
|
i32.const -2
|
|
i32.ne)
|
|
(table (;0;) 1 1 funcref)
|
|
(memory (;0;) 1)
|
|
(global $__stack_pointer (mut i32) (i32.const 6352))
|
|
(global (;1;) i32 (i32.const 2248))
|
|
(global (;2;) i32 (i32.const 6352))
|
|
(export "memory" (memory 0))
|
|
(export "__wasm_apply_data_relocs" (func $__wasm_apply_data_relocs))
|
|
(export "entrypoint" (func $adpcm_dec_main))
|
|
(export "main" (func $__original_main))
|
|
(export "__data_end" (global 1))
|
|
(export "__heap_base" (global 2))
|
|
(data $.data (i32.const 1024) "\00\00\00\00\fd\00\00\00 \00\00\00\00\00\00\00\0c\00\00\00\d4\ff\ff\ff\d4\ff\ff\ff\d4\00\00\000\00\00\00\90\fd\ff\ff\80\00\00\00\a8\05\00\00\b8\fc\ff\ffl\f3\ff\ff\dc\0e\00\00\90<\00\00\90<\00\00\dc\0e\00\00l\f3\ff\ff\b8\fc\ff\ff\a8\05\00\00\80\00\00\00\90\fd\ff\ff0\00\00\00\d4\00\00\00\d4\ff\ff\ff\d4\ff\ff\ff\0c\00\00\00\00\00\00\00\18\b0\ff\ff\a0\cd\ff\ff\f8\dc\ff\ffp\e7\ff\ffp\ef\ff\ff\e8\f5\ff\ffP\fb\ff\ff\e8O\00\00`2\00\00\08#\00\00\90\18\00\00\90\10\00\00\18\0a\00\00\b0\04\00\00\00\00\00\00x\ff\ff\ffx\ff\ff\ffx\ff\ff\ffx\ff\ff\ff\18\9f\ff\ffp\aa\ff\ff\c0\b5\ff\ff\c0\be\ff\ffx\c5\ff\ff8\cb\ff\ff\08\d0\ff\ffH\d4\ff\ff\08\d8\ff\ffp\db\ff\ff\80\de\ff\ffP\e1\ff\ff\e8\e3\ff\ffP\e6\ff\ff\90\e8\ff\ff\b0\ea\ff\ff\b0\ec\ff\ff\90\ee\ff\ffX\f0\ff\ff\08\f2\ff\ff\a0\f3\ff\ff(\f5\ff\ff\a0\f6\ff\ff\10\f8\ff\ffh\f9\ff\ff\b0\fa\ff\ff\f0\fb\ff\ff(\fd\ff\ff\e8`\00\00\90U\00\00@J\00\00@A\00\00\88:\00\00\c84\00\00\f8/\00\00\b8+\00\00\f8'\00\00\90$\00\00\80!\00\00\b0\1e\00\00\18\1c\00\00\b0\19\00\00p\17\00\00P\15\00\00P\13\00\00p\11\00\00\a8\0f\00\00\f8\0d\00\00`\0c\00\00\d8\0a\00\00`\09\00\00\f0\07\00\00\98\06\00\00P\05\00\00\10\04\00\00\d8\02\00\00\b0\01\00\00\88\00\00\00P\fe\ff\ffx\ff\ff\ff\c4\ff\ff\ff\e2\0b\00\00\ae\04\00\00\1a\02\00\00N\01\00\00\ac\00\00\00:\00\00\00\e2\ff\ff\ff\e2\0b\00\00\ae\04\00\00\1a\02\00\00N\01\00\00\ac\00\00\00:\00\00\00\e2\ff\ff\ff\c4\ff\ff\ff\00\08\00\00-\08\00\00[\08\00\00\8a\08\00\00\b9\08\00\00\ea\08\00\00\1c\09\00\00O\09\00\00\83\09\00\00\b9\09\00\00\ef\09\00\00'\0a\00\00`\0a\00\00\9a\0a\00\00\d6\0a\00\00\12\0b\00\00P\0b\00\00\90\0b\00\00\d1\0b\00\00\13\0c\00\00V\0c\00\00\9c\0c\00\00\e2\0c\00\00+\0d\00\00t\0d\00\00\c0\0d\00\00\0d\0e\00\00\5c\0e\00\00\ac\0e\00\00\fe\0e\00\00R\0f\00\00\a8\0f\00\00\10\e3\ff\ff\b0\f9\ff\ff\f0\1c\00\00P\06\00\00\1e\03\00\00*\ff\ff\ff\1e\03\00\00*\ff\ff\ff"))
|