(module (type $iv (func (param i32))) (type $ii (func (param i32) (result i32))) (type $iiv (func (param i32 i32))) (type $v (func)) (type $iii (func (param i32 i32) (result i32))) (type $iiiv (func (param i32 i32 i32))) (type $iiiiv (func (param i32 i32 i32 i32))) (type $i (func (result i32))) (import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32))) (memory $0 1) (data (i32.const 8) "\00\00\00\00\00\00\00\00\01\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00") (data (i32.const 32) "\00\00\00\00\00\00\00\00\02\00\00\00\00\00\00\00\18\00\00\00\00\00\00\00") (data (i32.const 56) "\00\00\00\00\00\00\00\00\05\00\00\00\00\00\00\00\0d\00\00\00~\00l\00i\00b\00/\00a\00r\00r\00a\00y\00.\00t\00s\00") (data (i32.const 104) "\00\00\00\00\00\00\00\00\05\00\00\00\00\00\00\00\1c\00\00\00~\00l\00i\00b\00/\00i\00n\00t\00e\00r\00n\00a\00l\00/\00a\00r\00r\00a\00y\00b\00u\00f\00f\00e\00r\00.\00t\00s\00") (table $0 7 anyfunc) (elem (i32.const 0) $null $~lib/arraybuffer/ArrayBuffer~gc $~lib/array/Array~gc $~lib/collector/itcm/__gc_mark $std/gc-array/Foo~gc $~lib/string/String~gc $~lib/internal/arraybuffer/__gc) (global $~lib/internal/allocator/AL_BITS i32 (i32.const 3)) (global $~lib/internal/allocator/AL_SIZE i32 (i32.const 8)) (global $~lib/internal/allocator/AL_MASK i32 (i32.const 7)) (global $~lib/internal/allocator/MAX_SIZE_32 i32 (i32.const 1073741824)) (global $~lib/allocator/arena/startOffset (mut i32) (i32.const 0)) (global $~lib/allocator/arena/offset (mut i32) (i32.const 0)) (global $~lib/collector/itcm/TRACE i32 (i32.const 0)) (global $~lib/collector/itcm/HEADER_SIZE i32 (i32.const 16)) (global $~lib/collector/itcm/State.INIT i32 (i32.const 0)) (global $~lib/collector/itcm/State.IDLE i32 (i32.const 1)) (global $~lib/collector/itcm/State.MARK i32 (i32.const 2)) (global $~lib/collector/itcm/State.SWEEP i32 (i32.const 3)) (global $~lib/collector/itcm/state (mut i32) (i32.const 0)) (global $~lib/collector/itcm/white (mut i32) (i32.const 0)) (global $~lib/collector/itcm/fromSpace (mut i32) (i32.const 0)) (global $~lib/collector/itcm/toSpace (mut i32) (i32.const 0)) (global $~lib/collector/itcm/iter (mut i32) (i32.const 0)) (global $~lib/internal/arraybuffer/HEADER_SIZE i32 (i32.const 8)) (global $std/gc-array/arr (mut i32) (i32.const 48)) (global $~argc (mut i32) (i32.const 0)) (global $~lib/internal/arraybuffer/MAX_BLENGTH i32 (i32.const 1073741816)) (global $~started (mut i32) (i32.const 0)) (global $HEAP_BASE i32 (i32.const 180)) (export "memory" (memory $0)) (export "table" (table $0)) (export "main" (func $std/gc-array/main)) (func $~lib/arraybuffer/ArrayBuffer~gc (; 1 ;) (type $iv) (param $0 i32) get_local $0 i32.eqz if return end get_local $0 call $~lib/collector/itcm/__gc_mark ) (func $~lib/collector/itcm/ManagedObject#get:color (; 2 ;) (type $ii) (param $0 i32) (result i32) get_local $0 i32.load i32.const 3 i32.and ) (func $~lib/collector/itcm/ManagedObject#get:next (; 3 ;) (type $ii) (param $0 i32) (result i32) get_local $0 i32.load i32.const 3 i32.const -1 i32.xor i32.and ) (func $~lib/collector/itcm/ManagedObject#set:next (; 4 ;) (type $iiv) (param $0 i32) (param $1 i32) get_local $0 get_local $1 get_local $0 i32.load i32.const 3 i32.and i32.or i32.store ) (func $~lib/collector/itcm/ManagedObject#unlink (; 5 ;) (type $iv) (param $0 i32) (local $1 i32) (local $2 i32) get_local $0 call $~lib/collector/itcm/ManagedObject#get:next set_local $1 get_local $0 i32.load offset=4 set_local $2 get_local $1 get_local $2 i32.store offset=4 get_local $2 get_local $1 call $~lib/collector/itcm/ManagedObject#set:next ) (func $~lib/collector/itcm/ManagedObjectList#push (; 6 ;) (type $iiv) (param $0 i32) (param $1 i32) (local $2 i32) get_local $0 i32.load offset=4 set_local $2 get_local $1 get_local $0 call $~lib/collector/itcm/ManagedObject#set:next get_local $1 get_local $2 i32.store offset=4 get_local $2 get_local $1 call $~lib/collector/itcm/ManagedObject#set:next get_local $0 get_local $1 i32.store offset=4 ) (func $~lib/collector/itcm/ManagedObject#makeGray (; 7 ;) (type $iv) (param $0 i32) get_local $0 get_global $~lib/collector/itcm/iter i32.eq if get_local $0 i32.load offset=4 set_global $~lib/collector/itcm/iter end get_local $0 call $~lib/collector/itcm/ManagedObject#unlink get_global $~lib/collector/itcm/toSpace get_local $0 call $~lib/collector/itcm/ManagedObjectList#push get_local $0 get_local $0 i32.load i32.const 3 i32.const -1 i32.xor i32.and i32.const 2 i32.or i32.store ) (func $~lib/collector/itcm/__gc_mark (; 8 ;) (type $iv) (param $0 i32) (local $1 i32) get_local $0 if block $~lib/collector/itcm/refToObj|inlined.0 (result i32) get_local $0 get_global $~lib/collector/itcm/HEADER_SIZE i32.sub end set_local $1 get_local $1 call $~lib/collector/itcm/ManagedObject#get:color get_global $~lib/collector/itcm/white i32.eq if get_local $1 call $~lib/collector/itcm/ManagedObject#makeGray end end ) (func $~lib/array/Array~gc (; 9 ;) (type $iv) (param $0 i32) (local $1 i32) (local $2 i32) (local $3 i32) get_local $0 i32.load set_local $1 get_local $1 call $~lib/collector/itcm/__gc_mark i32.const 0 set_local $2 get_local $0 i32.load offset=4 i32.const 2 i32.shl set_local $3 block $break|0 loop $continue|0 get_local $2 get_local $3 i32.lt_u if block get_local $1 get_local $2 i32.add i32.load offset=8 call $~lib/collector/itcm/__gc_mark get_local $2 i32.const 4 i32.add set_local $2 end br $continue|0 end end end ) (func $~lib/allocator/arena/__memory_allocate (; 10 ;) (type $ii) (param $0 i32) (result i32) (local $1 i32) (local $2 i32) (local $3 i32) (local $4 i32) (local $5 i32) (local $6 i32) get_local $0 get_global $~lib/internal/allocator/MAX_SIZE_32 i32.gt_u if unreachable end get_global $~lib/allocator/arena/offset set_local $1 get_local $1 get_local $0 tee_local $2 i32.const 1 tee_local $3 get_local $2 get_local $3 i32.gt_u select i32.add get_global $~lib/internal/allocator/AL_MASK i32.add get_global $~lib/internal/allocator/AL_MASK i32.const -1 i32.xor i32.and set_local $4 current_memory set_local $5 get_local $4 get_local $5 i32.const 16 i32.shl i32.gt_u if get_local $4 get_local $1 i32.sub i32.const 65535 i32.add i32.const 65535 i32.const -1 i32.xor i32.and i32.const 16 i32.shr_u set_local $2 get_local $5 tee_local $3 get_local $2 tee_local $6 get_local $3 get_local $6 i32.gt_s select set_local $3 get_local $3 grow_memory i32.const 0 i32.lt_s if get_local $2 grow_memory i32.const 0 i32.lt_s if unreachable end end end get_local $4 set_global $~lib/allocator/arena/offset get_local $1 ) (func $~lib/collector/itcm/ManagedObjectList#clear (; 11 ;) (type $iv) (param $0 i32) get_local $0 get_local $0 i32.store get_local $0 get_local $0 i32.store offset=4 ) (func $~lib/collector/itcm/ManagedObject#set:color (; 12 ;) (type $iiv) (param $0 i32) (param $1 i32) get_local $0 get_local $0 i32.load i32.const 3 i32.const -1 i32.xor i32.and get_local $1 i32.or i32.store ) (func $~lib/allocator/arena/__memory_free (; 13 ;) (type $iv) (param $0 i32) nop ) (func $~lib/collector/itcm/step (; 14 ;) (type $v) (local $0 i32) (local $1 i32) block $break|0 block $case3|0 block $case2|0 block $case1|0 block $case0|0 get_global $~lib/collector/itcm/state set_local $1 get_local $1 get_global $~lib/collector/itcm/State.INIT i32.eq br_if $case0|0 get_local $1 get_global $~lib/collector/itcm/State.IDLE i32.eq br_if $case1|0 get_local $1 get_global $~lib/collector/itcm/State.MARK i32.eq br_if $case2|0 get_local $1 get_global $~lib/collector/itcm/State.SWEEP i32.eq br_if $case3|0 br $break|0 end block block $~lib/memory/memory.allocate|inlined.0 (result i32) get_global $~lib/collector/itcm/HEADER_SIZE set_local $1 get_local $1 call $~lib/allocator/arena/__memory_allocate br $~lib/memory/memory.allocate|inlined.0 end set_global $~lib/collector/itcm/fromSpace get_global $~lib/collector/itcm/fromSpace i32.const -1 i32.store offset=8 get_global $~lib/collector/itcm/fromSpace call $~lib/collector/itcm/ManagedObjectList#clear block $~lib/memory/memory.allocate|inlined.1 (result i32) get_global $~lib/collector/itcm/HEADER_SIZE set_local $1 get_local $1 call $~lib/allocator/arena/__memory_allocate br $~lib/memory/memory.allocate|inlined.1 end set_global $~lib/collector/itcm/toSpace get_global $~lib/collector/itcm/toSpace i32.const -1 i32.store offset=8 get_global $~lib/collector/itcm/toSpace call $~lib/collector/itcm/ManagedObjectList#clear get_global $~lib/collector/itcm/toSpace set_global $~lib/collector/itcm/iter get_global $~lib/collector/itcm/State.IDLE set_global $~lib/collector/itcm/state end end block i32.const 3 call $~iterateRoots get_global $~lib/collector/itcm/State.MARK set_global $~lib/collector/itcm/state br $break|0 unreachable end unreachable end block get_global $~lib/collector/itcm/iter call $~lib/collector/itcm/ManagedObject#get:next set_local $0 get_local $0 get_global $~lib/collector/itcm/toSpace i32.ne if get_local $0 set_global $~lib/collector/itcm/iter get_local $0 get_global $~lib/collector/itcm/white i32.eqz call $~lib/collector/itcm/ManagedObject#set:color i32.const 1 set_global $~argc block $~lib/collector/itcm/objToRef|inlined.0 (result i32) get_local $0 get_global $~lib/collector/itcm/HEADER_SIZE i32.add end get_local $0 i32.load offset=8 call_indirect (type $iv) else i32.const 3 call $~iterateRoots get_global $~lib/collector/itcm/iter call $~lib/collector/itcm/ManagedObject#get:next set_local $0 get_local $0 get_global $~lib/collector/itcm/toSpace i32.eq if get_global $~lib/collector/itcm/fromSpace set_local $1 get_global $~lib/collector/itcm/toSpace set_global $~lib/collector/itcm/fromSpace get_local $1 set_global $~lib/collector/itcm/toSpace get_global $~lib/collector/itcm/white i32.eqz set_global $~lib/collector/itcm/white get_local $1 call $~lib/collector/itcm/ManagedObject#get:next set_global $~lib/collector/itcm/iter get_global $~lib/collector/itcm/State.SWEEP set_global $~lib/collector/itcm/state end end br $break|0 unreachable end unreachable end block get_global $~lib/collector/itcm/iter set_local $0 get_local $0 get_global $~lib/collector/itcm/toSpace i32.ne if get_local $0 call $~lib/collector/itcm/ManagedObject#get:next set_global $~lib/collector/itcm/iter get_local $0 get_global $HEAP_BASE i32.ge_u if block $~lib/memory/memory.free|inlined.0 block get_local $0 call $~lib/allocator/arena/__memory_free br $~lib/memory/memory.free|inlined.0 unreachable end unreachable end end else get_global $~lib/collector/itcm/toSpace call $~lib/collector/itcm/ManagedObjectList#clear get_global $~lib/collector/itcm/State.IDLE set_global $~lib/collector/itcm/state end br $break|0 unreachable end unreachable end ) (func $~lib/collector/itcm/__gc_collect (; 15 ;) (type $v) (local $0 i32) block $break|0 block $case1|0 block $case0|0 get_global $~lib/collector/itcm/state set_local $0 get_local $0 get_global $~lib/collector/itcm/State.INIT i32.eq br_if $case0|0 get_local $0 get_global $~lib/collector/itcm/State.IDLE i32.eq br_if $case1|0 br $break|0 end end call $~lib/collector/itcm/step end block $break|1 loop $continue|1 get_global $~lib/collector/itcm/state get_global $~lib/collector/itcm/State.IDLE i32.ne if call $~lib/collector/itcm/step br $continue|1 end end end ) (func $~lib/gc/gc.collect (; 16 ;) (type $v) call $~lib/collector/itcm/__gc_collect return ) (func $~lib/collector/itcm/__gc_allocate (; 17 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32) (local $2 i32) (local $3 i32) get_local $0 get_global $~lib/internal/allocator/MAX_SIZE_32 get_global $~lib/collector/itcm/HEADER_SIZE i32.sub i32.gt_u if unreachable end call $~lib/collector/itcm/step block $~lib/memory/memory.allocate|inlined.2 (result i32) get_global $~lib/collector/itcm/HEADER_SIZE get_local $0 i32.add set_local $2 get_local $2 call $~lib/allocator/arena/__memory_allocate br $~lib/memory/memory.allocate|inlined.2 end set_local $3 get_local $3 get_local $1 i32.store offset=8 get_local $3 get_global $~lib/collector/itcm/white call $~lib/collector/itcm/ManagedObject#set:color get_global $~lib/collector/itcm/fromSpace get_local $3 call $~lib/collector/itcm/ManagedObjectList#push block $~lib/collector/itcm/objToRef|inlined.1 (result i32) get_local $3 get_global $~lib/collector/itcm/HEADER_SIZE i32.add end ) (func $std/gc-array/Foo~gc (; 18 ;) (type $iv) (param $0 i32) get_local $0 i32.eqz if return end get_local $0 call $~lib/collector/itcm/__gc_mark ) (func $~lib/string/String~gc (; 19 ;) (type $iv) (param $0 i32) get_local $0 i32.eqz if return end get_local $0 call $~lib/collector/itcm/__gc_mark ) (func $~lib/internal/arraybuffer/computeSize (; 20 ;) (type $ii) (param $0 i32) (result i32) i32.const 1 i32.const 32 get_local $0 get_global $~lib/internal/arraybuffer/HEADER_SIZE i32.add i32.const 1 i32.sub i32.clz i32.sub i32.shl ) (func $~lib/internal/memory/memset (; 21 ;) (type $iiiv) (param $0 i32) (param $1 i32) (param $2 i32) (local $3 i32) (local $4 i32) (local $5 i64) get_local $2 i32.eqz if return end get_local $0 get_local $1 i32.store8 get_local $0 get_local $2 i32.add i32.const 1 i32.sub get_local $1 i32.store8 get_local $2 i32.const 2 i32.le_u if return end get_local $0 i32.const 1 i32.add get_local $1 i32.store8 get_local $0 i32.const 2 i32.add get_local $1 i32.store8 get_local $0 get_local $2 i32.add i32.const 2 i32.sub get_local $1 i32.store8 get_local $0 get_local $2 i32.add i32.const 3 i32.sub get_local $1 i32.store8 get_local $2 i32.const 6 i32.le_u if return end get_local $0 i32.const 3 i32.add get_local $1 i32.store8 get_local $0 get_local $2 i32.add i32.const 4 i32.sub get_local $1 i32.store8 get_local $2 i32.const 8 i32.le_u if return end i32.const 0 get_local $0 i32.sub i32.const 3 i32.and set_local $3 get_local $0 get_local $3 i32.add set_local $0 get_local $2 get_local $3 i32.sub set_local $2 get_local $2 i32.const -4 i32.and set_local $2 i32.const -1 i32.const 255 i32.div_u get_local $1 i32.const 255 i32.and i32.mul set_local $4 get_local $0 get_local $4 i32.store get_local $0 get_local $2 i32.add i32.const 4 i32.sub get_local $4 i32.store get_local $2 i32.const 8 i32.le_u if return end get_local $0 i32.const 4 i32.add get_local $4 i32.store get_local $0 i32.const 8 i32.add get_local $4 i32.store get_local $0 get_local $2 i32.add i32.const 12 i32.sub get_local $4 i32.store get_local $0 get_local $2 i32.add i32.const 8 i32.sub get_local $4 i32.store get_local $2 i32.const 24 i32.le_u if return end get_local $0 i32.const 12 i32.add get_local $4 i32.store get_local $0 i32.const 16 i32.add get_local $4 i32.store get_local $0 i32.const 20 i32.add get_local $4 i32.store get_local $0 i32.const 24 i32.add get_local $4 i32.store get_local $0 get_local $2 i32.add i32.const 28 i32.sub get_local $4 i32.store get_local $0 get_local $2 i32.add i32.const 24 i32.sub get_local $4 i32.store get_local $0 get_local $2 i32.add i32.const 20 i32.sub get_local $4 i32.store get_local $0 get_local $2 i32.add i32.const 16 i32.sub get_local $4 i32.store i32.const 24 get_local $0 i32.const 4 i32.and i32.add set_local $3 get_local $0 get_local $3 i32.add set_local $0 get_local $2 get_local $3 i32.sub set_local $2 get_local $4 i64.extend_u/i32 get_local $4 i64.extend_u/i32 i64.const 32 i64.shl i64.or set_local $5 block $break|0 loop $continue|0 get_local $2 i32.const 32 i32.ge_u if block get_local $0 get_local $5 i64.store get_local $0 i32.const 8 i32.add get_local $5 i64.store get_local $0 i32.const 16 i32.add get_local $5 i64.store get_local $0 i32.const 24 i32.add get_local $5 i64.store get_local $2 i32.const 32 i32.sub set_local $2 get_local $0 i32.const 32 i32.add set_local $0 end br $continue|0 end end end ) (func $~lib/internal/arraybuffer/__gc (; 22 ;) (type $iv) (param $0 i32) nop ) (func $~lib/internal/arraybuffer/allocateUnsafe (; 23 ;) (type $ii) (param $0 i32) (result i32) (local $1 i32) get_local $0 get_global $~lib/internal/arraybuffer/MAX_BLENGTH i32.le_u i32.eqz if i32.const 0 i32.const 120 i32.const 23 i32.const 2 call $~lib/env/abort unreachable end get_local $0 call $~lib/internal/arraybuffer/computeSize i32.const 6 call $~lib/collector/itcm/__gc_allocate set_local $1 get_local $1 get_local $0 i32.store get_local $1 ) (func $~lib/internal/memory/memcpy (; 24 ;) (type $iiiv) (param $0 i32) (param $1 i32) (param $2 i32) (local $3 i32) (local $4 i32) (local $5 i32) block $break|0 loop $continue|0 get_local $2 if (result i32) get_local $1 i32.const 3 i32.and else get_local $2 end if block block (result i32) get_local $0 tee_local $5 i32.const 1 i32.add set_local $0 get_local $5 end block (result i32) get_local $1 tee_local $5 i32.const 1 i32.add set_local $1 get_local $5 end i32.load8_u i32.store8 get_local $2 i32.const 1 i32.sub set_local $2 end br $continue|0 end end end get_local $0 i32.const 3 i32.and i32.const 0 i32.eq if block $break|1 loop $continue|1 get_local $2 i32.const 16 i32.ge_u if block get_local $0 get_local $1 i32.load i32.store get_local $0 i32.const 4 i32.add get_local $1 i32.const 4 i32.add i32.load i32.store get_local $0 i32.const 8 i32.add get_local $1 i32.const 8 i32.add i32.load i32.store get_local $0 i32.const 12 i32.add get_local $1 i32.const 12 i32.add i32.load i32.store get_local $1 i32.const 16 i32.add set_local $1 get_local $0 i32.const 16 i32.add set_local $0 get_local $2 i32.const 16 i32.sub set_local $2 end br $continue|1 end end end get_local $2 i32.const 8 i32.and if get_local $0 get_local $1 i32.load i32.store get_local $0 i32.const 4 i32.add get_local $1 i32.const 4 i32.add i32.load i32.store get_local $0 i32.const 8 i32.add set_local $0 get_local $1 i32.const 8 i32.add set_local $1 end get_local $2 i32.const 4 i32.and if get_local $0 get_local $1 i32.load i32.store get_local $0 i32.const 4 i32.add set_local $0 get_local $1 i32.const 4 i32.add set_local $1 end get_local $2 i32.const 2 i32.and if get_local $0 get_local $1 i32.load16_u i32.store16 get_local $0 i32.const 2 i32.add set_local $0 get_local $1 i32.const 2 i32.add set_local $1 end get_local $2 i32.const 1 i32.and if block (result i32) get_local $0 tee_local $5 i32.const 1 i32.add set_local $0 get_local $5 end block (result i32) get_local $1 tee_local $5 i32.const 1 i32.add set_local $1 get_local $5 end i32.load8_u i32.store8 end return end get_local $2 i32.const 32 i32.ge_u if block $break|2 block $case2|2 block $case1|2 block $case0|2 get_local $0 i32.const 3 i32.and set_local $5 get_local $5 i32.const 1 i32.eq br_if $case0|2 get_local $5 i32.const 2 i32.eq br_if $case1|2 get_local $5 i32.const 3 i32.eq br_if $case2|2 br $break|2 end block get_local $1 i32.load set_local $3 block (result i32) get_local $0 tee_local $5 i32.const 1 i32.add set_local $0 get_local $5 end block (result i32) get_local $1 tee_local $5 i32.const 1 i32.add set_local $1 get_local $5 end i32.load8_u i32.store8 block (result i32) get_local $0 tee_local $5 i32.const 1 i32.add set_local $0 get_local $5 end block (result i32) get_local $1 tee_local $5 i32.const 1 i32.add set_local $1 get_local $5 end i32.load8_u i32.store8 block (result i32) get_local $0 tee_local $5 i32.const 1 i32.add set_local $0 get_local $5 end block (result i32) get_local $1 tee_local $5 i32.const 1 i32.add set_local $1 get_local $5 end i32.load8_u i32.store8 get_local $2 i32.const 3 i32.sub set_local $2 block $break|3 loop $continue|3 get_local $2 i32.const 17 i32.ge_u if block get_local $1 i32.const 1 i32.add i32.load set_local $4 get_local $0 get_local $3 i32.const 24 i32.shr_u get_local $4 i32.const 8 i32.shl i32.or i32.store get_local $1 i32.const 5 i32.add i32.load set_local $3 get_local $0 i32.const 4 i32.add get_local $4 i32.const 24 i32.shr_u get_local $3 i32.const 8 i32.shl i32.or i32.store get_local $1 i32.const 9 i32.add i32.load set_local $4 get_local $0 i32.const 8 i32.add get_local $3 i32.const 24 i32.shr_u get_local $4 i32.const 8 i32.shl i32.or i32.store get_local $1 i32.const 13 i32.add i32.load set_local $3 get_local $0 i32.const 12 i32.add get_local $4 i32.const 24 i32.shr_u get_local $3 i32.const 8 i32.shl i32.or i32.store get_local $1 i32.const 16 i32.add set_local $1 get_local $0 i32.const 16 i32.add set_local $0 get_local $2 i32.const 16 i32.sub set_local $2 end br $continue|3 end end end br $break|2 unreachable end unreachable end block get_local $1 i32.load set_local $3 block (result i32) get_local $0 tee_local $5 i32.const 1 i32.add set_local $0 get_local $5 end block (result i32) get_local $1 tee_local $5 i32.const 1 i32.add set_local $1 get_local $5 end i32.load8_u i32.store8 block (result i32) get_local $0 tee_local $5 i32.const 1 i32.add set_local $0 get_local $5 end block (result i32) get_local $1 tee_local $5 i32.const 1 i32.add set_local $1 get_local $5 end i32.load8_u i32.store8 get_local $2 i32.const 2 i32.sub set_local $2 block $break|4 loop $continue|4 get_local $2 i32.const 18 i32.ge_u if block get_local $1 i32.const 2 i32.add i32.load set_local $4 get_local $0 get_local $3 i32.const 16 i32.shr_u get_local $4 i32.const 16 i32.shl i32.or i32.store get_local $1 i32.const 6 i32.add i32.load set_local $3 get_local $0 i32.const 4 i32.add get_local $4 i32.const 16 i32.shr_u get_local $3 i32.const 16 i32.shl i32.or i32.store get_local $1 i32.const 10 i32.add i32.load set_local $4 get_local $0 i32.const 8 i32.add get_local $3 i32.const 16 i32.shr_u get_local $4 i32.const 16 i32.shl i32.or i32.store get_local $1 i32.const 14 i32.add i32.load set_local $3 get_local $0 i32.const 12 i32.add get_local $4 i32.const 16 i32.shr_u get_local $3 i32.const 16 i32.shl i32.or i32.store get_local $1 i32.const 16 i32.add set_local $1 get_local $0 i32.const 16 i32.add set_local $0 get_local $2 i32.const 16 i32.sub set_local $2 end br $continue|4 end end end br $break|2 unreachable end unreachable end block get_local $1 i32.load set_local $3 block (result i32) get_local $0 tee_local $5 i32.const 1 i32.add set_local $0 get_local $5 end block (result i32) get_local $1 tee_local $5 i32.const 1 i32.add set_local $1 get_local $5 end i32.load8_u i32.store8 get_local $2 i32.const 1 i32.sub set_local $2 block $break|5 loop $continue|5 get_local $2 i32.const 19 i32.ge_u if block get_local $1 i32.const 3 i32.add i32.load set_local $4 get_local $0 get_local $3 i32.const 8 i32.shr_u get_local $4 i32.const 24 i32.shl i32.or i32.store get_local $1 i32.const 7 i32.add i32.load set_local $3 get_local $0 i32.const 4 i32.add get_local $4 i32.const 8 i32.shr_u get_local $3 i32.const 24 i32.shl i32.or i32.store get_local $1 i32.const 11 i32.add i32.load set_local $4 get_local $0 i32.const 8 i32.add get_local $3 i32.const 8 i32.shr_u get_local $4 i32.const 24 i32.shl i32.or i32.store get_local $1 i32.const 15 i32.add i32.load set_local $3 get_local $0 i32.const 12 i32.add get_local $4 i32.const 8 i32.shr_u get_local $3 i32.const 24 i32.shl i32.or i32.store get_local $1 i32.const 16 i32.add set_local $1 get_local $0 i32.const 16 i32.add set_local $0 get_local $2 i32.const 16 i32.sub set_local $2 end br $continue|5 end end end br $break|2 unreachable end unreachable end end get_local $2 i32.const 16 i32.and if block (result i32) get_local $0 tee_local $5 i32.const 1 i32.add set_local $0 get_local $5 end block (result i32) get_local $1 tee_local $5 i32.const 1 i32.add set_local $1 get_local $5 end i32.load8_u i32.store8 block (result i32) get_local $0 tee_local $5 i32.const 1 i32.add set_local $0 get_local $5 end block (result i32) get_local $1 tee_local $5 i32.const 1 i32.add set_local $1 get_local $5 end i32.load8_u i32.store8 block (result i32) get_local $0 tee_local $5 i32.const 1 i32.add set_local $0 get_local $5 end block (result i32) get_local $1 tee_local $5 i32.const 1 i32.add set_local $1 get_local $5 end i32.load8_u i32.store8 block (result i32) get_local $0 tee_local $5 i32.const 1 i32.add set_local $0 get_local $5 end block (result i32) get_local $1 tee_local $5 i32.const 1 i32.add set_local $1 get_local $5 end i32.load8_u i32.store8 block (result i32) get_local $0 tee_local $5 i32.const 1 i32.add set_local $0 get_local $5 end block (result i32) get_local $1 tee_local $5 i32.const 1 i32.add set_local $1 get_local $5 end i32.load8_u i32.store8 block (result i32) get_local $0 tee_local $5 i32.const 1 i32.add set_local $0 get_local $5 end block (result i32) get_local $1 tee_local $5 i32.const 1 i32.add set_local $1 get_local $5 end i32.load8_u i32.store8 block (result i32) get_local $0 tee_local $5 i32.const 1 i32.add set_local $0 get_local $5 end block (result i32) get_local $1 tee_local $5 i32.const 1 i32.add set_local $1 get_local $5 end i32.load8_u i32.store8 block (result i32) get_local $0 tee_local $5 i32.const 1 i32.add set_local $0 get_local $5 end block (result i32) get_local $1 tee_local $5 i32.const 1 i32.add set_local $1 get_local $5 end i32.load8_u i32.store8 block (result i32) get_local $0 tee_local $5 i32.const 1 i32.add set_local $0 get_local $5 end block (result i32) get_local $1 tee_local $5 i32.const 1 i32.add set_local $1 get_local $5 end i32.load8_u i32.store8 block (result i32) get_local $0 tee_local $5 i32.const 1 i32.add set_local $0 get_local $5 end block (result i32) get_local $1 tee_local $5 i32.const 1 i32.add set_local $1 get_local $5 end i32.load8_u i32.store8 block (result i32) get_local $0 tee_local $5 i32.const 1 i32.add set_local $0 get_local $5 end block (result i32) get_local $1 tee_local $5 i32.const 1 i32.add set_local $1 get_local $5 end i32.load8_u i32.store8 block (result i32) get_local $0 tee_local $5 i32.const 1 i32.add set_local $0 get_local $5 end block (result i32) get_local $1 tee_local $5 i32.const 1 i32.add set_local $1 get_local $5 end i32.load8_u i32.store8 block (result i32) get_local $0 tee_local $5 i32.const 1 i32.add set_local $0 get_local $5 end block (result i32) get_local $1 tee_local $5 i32.const 1 i32.add set_local $1 get_local $5 end i32.load8_u i32.store8 block (result i32) get_local $0 tee_local $5 i32.const 1 i32.add set_local $0 get_local $5 end block (result i32) get_local $1 tee_local $5 i32.const 1 i32.add set_local $1 get_local $5 end i32.load8_u i32.store8 block (result i32) get_local $0 tee_local $5 i32.const 1 i32.add set_local $0 get_local $5 end block (result i32) get_local $1 tee_local $5 i32.const 1 i32.add set_local $1 get_local $5 end i32.load8_u i32.store8 block (result i32) get_local $0 tee_local $5 i32.const 1 i32.add set_local $0 get_local $5 end block (result i32) get_local $1 tee_local $5 i32.const 1 i32.add set_local $1 get_local $5 end i32.load8_u i32.store8 end get_local $2 i32.const 8 i32.and if block (result i32) get_local $0 tee_local $5 i32.const 1 i32.add set_local $0 get_local $5 end block (result i32) get_local $1 tee_local $5 i32.const 1 i32.add set_local $1 get_local $5 end i32.load8_u i32.store8 block (result i32) get_local $0 tee_local $5 i32.const 1 i32.add set_local $0 get_local $5 end block (result i32) get_local $1 tee_local $5 i32.const 1 i32.add set_local $1 get_local $5 end i32.load8_u i32.store8 block (result i32) get_local $0 tee_local $5 i32.const 1 i32.add set_local $0 get_local $5 end block (result i32) get_local $1 tee_local $5 i32.const 1 i32.add set_local $1 get_local $5 end i32.load8_u i32.store8 block (result i32) get_local $0 tee_local $5 i32.const 1 i32.add set_local $0 get_local $5 end block (result i32) get_local $1 tee_local $5 i32.const 1 i32.add set_local $1 get_local $5 end i32.load8_u i32.store8 block (result i32) get_local $0 tee_local $5 i32.const 1 i32.add set_local $0 get_local $5 end block (result i32) get_local $1 tee_local $5 i32.const 1 i32.add set_local $1 get_local $5 end i32.load8_u i32.store8 block (result i32) get_local $0 tee_local $5 i32.const 1 i32.add set_local $0 get_local $5 end block (result i32) get_local $1 tee_local $5 i32.const 1 i32.add set_local $1 get_local $5 end i32.load8_u i32.store8 block (result i32) get_local $0 tee_local $5 i32.const 1 i32.add set_local $0 get_local $5 end block (result i32) get_local $1 tee_local $5 i32.const 1 i32.add set_local $1 get_local $5 end i32.load8_u i32.store8 block (result i32) get_local $0 tee_local $5 i32.const 1 i32.add set_local $0 get_local $5 end block (result i32) get_local $1 tee_local $5 i32.const 1 i32.add set_local $1 get_local $5 end i32.load8_u i32.store8 end get_local $2 i32.const 4 i32.and if block (result i32) get_local $0 tee_local $5 i32.const 1 i32.add set_local $0 get_local $5 end block (result i32) get_local $1 tee_local $5 i32.const 1 i32.add set_local $1 get_local $5 end i32.load8_u i32.store8 block (result i32) get_local $0 tee_local $5 i32.const 1 i32.add set_local $0 get_local $5 end block (result i32) get_local $1 tee_local $5 i32.const 1 i32.add set_local $1 get_local $5 end i32.load8_u i32.store8 block (result i32) get_local $0 tee_local $5 i32.const 1 i32.add set_local $0 get_local $5 end block (result i32) get_local $1 tee_local $5 i32.const 1 i32.add set_local $1 get_local $5 end i32.load8_u i32.store8 block (result i32) get_local $0 tee_local $5 i32.const 1 i32.add set_local $0 get_local $5 end block (result i32) get_local $1 tee_local $5 i32.const 1 i32.add set_local $1 get_local $5 end i32.load8_u i32.store8 end get_local $2 i32.const 2 i32.and if block (result i32) get_local $0 tee_local $5 i32.const 1 i32.add set_local $0 get_local $5 end block (result i32) get_local $1 tee_local $5 i32.const 1 i32.add set_local $1 get_local $5 end i32.load8_u i32.store8 block (result i32) get_local $0 tee_local $5 i32.const 1 i32.add set_local $0 get_local $5 end block (result i32) get_local $1 tee_local $5 i32.const 1 i32.add set_local $1 get_local $5 end i32.load8_u i32.store8 end get_local $2 i32.const 1 i32.and if block (result i32) get_local $0 tee_local $5 i32.const 1 i32.add set_local $0 get_local $5 end block (result i32) get_local $1 tee_local $5 i32.const 1 i32.add set_local $1 get_local $5 end i32.load8_u i32.store8 end ) (func $~lib/internal/memory/memmove (; 25 ;) (type $iiiv) (param $0 i32) (param $1 i32) (param $2 i32) (local $3 i32) get_local $0 get_local $1 i32.eq if return end get_local $1 get_local $2 i32.add get_local $0 i32.le_u tee_local $3 if (result i32) get_local $3 else get_local $0 get_local $2 i32.add get_local $1 i32.le_u end if get_local $0 get_local $1 get_local $2 call $~lib/internal/memory/memcpy return end get_local $0 get_local $1 i32.lt_u if get_local $1 i32.const 7 i32.and get_local $0 i32.const 7 i32.and i32.eq if block $break|0 loop $continue|0 get_local $0 i32.const 7 i32.and if block get_local $2 i32.eqz if return end get_local $2 i32.const 1 i32.sub set_local $2 block (result i32) get_local $0 tee_local $3 i32.const 1 i32.add set_local $0 get_local $3 end block (result i32) get_local $1 tee_local $3 i32.const 1 i32.add set_local $1 get_local $3 end i32.load8_u i32.store8 end br $continue|0 end end end block $break|1 loop $continue|1 get_local $2 i32.const 8 i32.ge_u if block get_local $0 get_local $1 i64.load i64.store get_local $2 i32.const 8 i32.sub set_local $2 get_local $0 i32.const 8 i32.add set_local $0 get_local $1 i32.const 8 i32.add set_local $1 end br $continue|1 end end end end block $break|2 loop $continue|2 get_local $2 if block block (result i32) get_local $0 tee_local $3 i32.const 1 i32.add set_local $0 get_local $3 end block (result i32) get_local $1 tee_local $3 i32.const 1 i32.add set_local $1 get_local $3 end i32.load8_u i32.store8 get_local $2 i32.const 1 i32.sub set_local $2 end br $continue|2 end end end else get_local $1 i32.const 7 i32.and get_local $0 i32.const 7 i32.and i32.eq if block $break|3 loop $continue|3 get_local $0 get_local $2 i32.add i32.const 7 i32.and if block get_local $2 i32.eqz if return end get_local $0 get_local $2 i32.const 1 i32.sub tee_local $2 i32.add get_local $1 get_local $2 i32.add i32.load8_u i32.store8 end br $continue|3 end end end block $break|4 loop $continue|4 get_local $2 i32.const 8 i32.ge_u if block get_local $2 i32.const 8 i32.sub set_local $2 get_local $0 get_local $2 i32.add get_local $1 get_local $2 i32.add i64.load i64.store end br $continue|4 end end end end block $break|5 loop $continue|5 get_local $2 if get_local $0 get_local $2 i32.const 1 i32.sub tee_local $2 i32.add get_local $1 get_local $2 i32.add i32.load8_u i32.store8 br $continue|5 end end end end ) (func $~lib/internal/arraybuffer/reallocateUnsafe (; 26 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32) (local $2 i32) (local $3 i32) (local $4 i32) (local $5 i32) (local $6 i32) get_local $0 i32.load set_local $2 get_local $1 get_local $2 i32.gt_s if get_local $1 get_global $~lib/internal/arraybuffer/MAX_BLENGTH i32.le_s i32.eqz if i32.const 0 i32.const 120 i32.const 37 i32.const 4 call $~lib/env/abort unreachable end get_local $1 get_local $2 call $~lib/internal/arraybuffer/computeSize get_global $~lib/internal/arraybuffer/HEADER_SIZE i32.sub i32.le_s if get_local $0 get_local $1 i32.store block $~lib/memory/memory.fill|inlined.0 get_local $0 get_global $~lib/internal/arraybuffer/HEADER_SIZE i32.add get_local $2 i32.add set_local $3 i32.const 0 set_local $4 get_local $1 get_local $2 i32.sub set_local $5 get_local $3 get_local $4 get_local $5 call $~lib/internal/memory/memset end else get_local $1 call $~lib/internal/arraybuffer/allocateUnsafe set_local $5 block $~lib/memory/memory.copy|inlined.0 get_local $5 get_global $~lib/internal/arraybuffer/HEADER_SIZE i32.add set_local $4 get_local $0 get_global $~lib/internal/arraybuffer/HEADER_SIZE i32.add set_local $3 get_local $4 get_local $3 get_local $2 call $~lib/internal/memory/memmove end block $~lib/memory/memory.fill|inlined.1 get_local $5 get_global $~lib/internal/arraybuffer/HEADER_SIZE i32.add get_local $2 i32.add set_local $3 i32.const 0 set_local $4 get_local $1 get_local $2 i32.sub set_local $6 get_local $3 get_local $4 get_local $6 call $~lib/internal/memory/memset end get_local $5 return end else get_local $1 get_local $2 i32.lt_s if get_local $1 i32.const 0 i32.ge_s i32.eqz if i32.const 0 i32.const 120 i32.const 61 i32.const 4 call $~lib/env/abort unreachable end get_local $0 get_local $1 i32.store end end get_local $0 ) (func $~lib/collector/itcm/__gc_link (; 27 ;) (type $iiv) (param $0 i32) (param $1 i32) (local $2 i32) (local $3 i32) block $~lib/collector/itcm/refToObj|inlined.1 (result i32) get_local $0 get_global $~lib/collector/itcm/HEADER_SIZE i32.sub end set_local $2 get_local $2 call $~lib/collector/itcm/ManagedObject#get:color get_global $~lib/collector/itcm/white i32.eqz i32.eq tee_local $3 if (result i32) block $~lib/collector/itcm/refToObj|inlined.3 (result i32) get_local $1 get_global $~lib/collector/itcm/HEADER_SIZE i32.sub end call $~lib/collector/itcm/ManagedObject#get:color get_global $~lib/collector/itcm/white i32.eq else get_local $3 end if get_local $2 call $~lib/collector/itcm/ManagedObject#makeGray end ) (func $~lib/array/Array#__set (; 28 ;) (type $iiiv) (param $0 i32) (param $1 i32) (param $2 i32) (local $3 i32) (local $4 i32) get_local $0 i32.load set_local $3 get_local $3 i32.load i32.const 2 i32.shr_u set_local $4 get_local $1 get_local $4 i32.ge_u if get_local $1 i32.const 268435454 i32.ge_u if i32.const 0 i32.const 72 i32.const 109 i32.const 41 call $~lib/env/abort unreachable end get_local $3 get_local $1 i32.const 1 i32.add i32.const 2 i32.shl call $~lib/internal/arraybuffer/reallocateUnsafe set_local $3 get_local $0 get_local $3 i32.store get_local $0 get_local $1 i32.const 1 i32.add i32.store offset=4 end block $~lib/internal/arraybuffer/storeUnsafe|inlined.0 get_local $3 get_local $1 i32.const 2 i32.shl i32.add get_local $2 i32.store offset=8 end get_local $0 get_local $2 call $~lib/collector/itcm/__gc_link ) (func $std/gc-array/main (; 29 ;) (type $i) (result i32) get_global $~started i32.eqz if call $start i32.const 1 set_global $~started end i32.const 0 ) (func $start (; 30 ;) (type $v) (local $0 i32) (local $1 i32) (local $2 i32) get_global $HEAP_BASE get_global $~lib/internal/allocator/AL_MASK i32.add get_global $~lib/internal/allocator/AL_MASK i32.const -1 i32.xor i32.and set_global $~lib/allocator/arena/startOffset get_global $~lib/allocator/arena/startOffset set_global $~lib/allocator/arena/offset get_global $~lib/collector/itcm/State.INIT set_global $~lib/collector/itcm/state call $~lib/gc/gc.collect get_global $std/gc-array/arr i32.const 0 block (result i32) i32.const 0 i32.const 4 call $~lib/collector/itcm/__gc_allocate set_local $0 get_local $0 end call $~lib/array/Array#__set call $~lib/gc/gc.collect get_global $std/gc-array/arr i32.const 1 block (result i32) i32.const 0 i32.const 4 call $~lib/collector/itcm/__gc_allocate set_local $1 get_local $1 end call $~lib/array/Array#__set call $~lib/gc/gc.collect get_global $std/gc-array/arr i32.const 0 block (result i32) i32.const 0 i32.const 4 call $~lib/collector/itcm/__gc_allocate set_local $2 get_local $2 end call $~lib/array/Array#__set call $~lib/gc/gc.collect ) (func $null (; 31 ;) (type $v) ) (func $~iterateRoots (; 32 ;) (type $iv) (param $0 i32) get_global $std/gc-array/arr get_local $0 call_indirect (type $iv) ) )