2 (type $FUNCSIG$vi (func (param i32)))
3 (type $FUNCSIG$ii (func (param i32) (result i32)))
4 (import "env" "DYNAMICTOP_PTR" (global $DYNAMICTOP_PTR$asm2wasm$import i32))
5 (import "env" "tempDoublePtr" (global $tempDoublePtr$asm2wasm$import i32))
6 (import "env" "ABORT" (global $ABORT$asm2wasm$import i32))
7 (import "env" "memoryBase" (global $memoryBase i32))
8 (import "env" "tableBase" (global $tableBase i32))
9 (import "global" "NaN" (global $nan$asm2wasm$import f64))
10 (import "global" "Infinity" (global $inf$asm2wasm$import f64))
11 (import "env" "abortStackOverflow" (func $abortStackOverflow (param i32)))
12 (import "env" "_puts" (func $_puts (param i32) (result i32)))
13 (import "env" "memory" (memory $0 256 256))
14 (import "env" "table" (table 0 0 anyfunc))
15 (global $DYNAMICTOP_PTR (mut i32) (get_global $DYNAMICTOP_PTR$asm2wasm$import))
16 (global $tempDoublePtr (mut i32) (get_global $tempDoublePtr$asm2wasm$import))
17 (global $ABORT (mut i32) (get_global $ABORT$asm2wasm$import))
18 (global $STACKTOP (mut i32) (i32.const 0))
19 (global $STACK_MAX (mut i32) (i32.const 0))
20 (global $__THREW__ (mut i32) (i32.const 0))
21 (global $threwValue (mut i32) (i32.const 0))
22 (global $setjmpId (mut i32) (i32.const 0))
23 (global $undef (mut i32) (i32.const 0))
24 (global $nan (mut f64) (get_global $nan$asm2wasm$import))
25 (global $inf (mut f64) (get_global $inf$asm2wasm$import))
26 (global $tempInt (mut i32) (i32.const 0))
27 (global $tempBigInt (mut i32) (i32.const 0))
28 (global $tempBigIntP (mut i32) (i32.const 0))
29 (global $tempBigIntS (mut i32) (i32.const 0))
30 (global $tempBigIntR (mut f64) (f64.const 0))
31 (global $tempBigIntI (mut i32) (i32.const 0))
32 (global $tempBigIntD (mut i32) (i32.const 0))
33 (global $tempValue (mut i32) (i32.const 0))
34 (global $tempDouble (mut f64) (f64.const 0))
35 (global $tempRet0 (mut i32) (i32.const 0))
36 (global $tempFloat (mut f32) (f32.const 0))
37 (global $f0 (mut f32) (f32.const 0))
38 (global $_global i32 (i32.const 5242912))
39 (export "__ZN3FooC2Ev" (func $__ZN3FooC2Ev))
40 (export "__post_instantiate" (func $__post_instantiate))
41 (export "runPostSets" (func $runPostSets))
42 (export "_global" (global $_global))
43 (func $stackAlloc (; 2 ;) (param $size i32) (result i32)
46 (get_global $STACKTOP)
50 (get_global $STACKTOP)
57 (get_global $STACKTOP)
65 (get_global $STACKTOP)
66 (get_global $STACK_MAX)
68 (call $abortStackOverflow
76 (func $stackSave (; 3 ;) (result i32)
78 (get_global $STACKTOP)
81 (func $stackRestore (; 4 ;) (param $top i32)
86 (func $establishStackSpace (; 5 ;) (param $stackBase i32) (param $stackMax i32)
88 (get_local $stackBase)
90 (set_global $STACK_MAX
94 (func $setThrew (; 6 ;) (param $threw i32) (param $value i32)
97 (get_global $__THREW__)
101 (set_global $__THREW__
104 (set_global $threwValue
110 (func $___cxx_global_var_init (; 7 ;)
114 (get_global $STACKTOP)
118 (get_global $memoryBase)
124 (func $__ZN3FooC2Ev (; 8 ;) (param $$0 i32)
129 (get_global $STACKTOP)
131 (set_global $STACKTOP
133 (get_global $STACKTOP)
139 (get_global $STACKTOP)
140 (get_global $STACK_MAX)
142 (call $abortStackOverflow
152 (get_global $memoryBase)
157 (set_global $STACKTOP
162 (func $__GLOBAL__sub_I_liblib_cpp (; 9 ;)
166 (get_global $STACKTOP)
168 (call $___cxx_global_var_init)
171 (func $runPostSets (; 10 ;)
175 (func $__post_instantiate (; 11 ;)
176 (set_global $STACKTOP
178 (get_global $memoryBase)
182 (set_global $STACK_MAX
184 (get_global $STACKTOP)
189 (call $__GLOBAL__sub_I_liblib_cpp)