(module (type $FUNCSIG$iii (func (param i32 i32) (result i32))) (type $FUNCSIG$iiii (func (param i32 i32 i32) (result i32))) (type $FUNCSIG$viiii (func (param i32 i32 i32 i32))) (type $FUNCSIG$v (func)) (type $FUNCSIG$vii (func (param i32 i32))) (type $FUNCSIG$ii (func (param i32) (result i32))) (type $FUNCSIG$viii (func (param i32 i32 i32))) (type $FUNCSIG$vi (func (param i32))) (import "env" "abort" (func $~lib/builtins/abort (param i32 i32 i32 i32))) (import "rtrace" "retain" (func $~lib/rt/purerc/onIncrement (param i32))) (import "rtrace" "release" (func $~lib/rt/purerc/onDecrement (param i32))) (import "rtrace" "free" (func $~lib/rt/tlsf/onFree (param i32))) (memory $0 1) (data (i32.const 8) "&\00\00\00\01\00\00\00\10\00\00\00&\00\00\00~\00l\00i\00b\00/\00a\00r\00r\00a\00y\00b\00u\00f\00f\00e\00r\00.\00t\00s\00") (data (i32.const 64) "\1e\00\00\00\01\00\00\00\10\00\00\00\1e\00\00\00~\00l\00i\00b\00/\00r\00t\00/\00t\00l\00s\00f\00.\00t\00s\00") (data (i32.const 112) "\"\00\00\00\01\00\00\00\10\00\00\00\"\00\00\00~\00l\00i\00b\00/\00r\00t\00/\00p\00u\00r\00e\00r\00c\00.\00t\00s\00") (data (i32.const 168) "\1a\00\00\00\01\00\00\00\10\00\00\00\1a\00\00\00~\00l\00i\00b\00/\00a\00r\00r\00a\00y\00.\00t\00s\00") (data (i32.const 216) "\00\00\00\00\01\00\00\00\10\00\00\00\00\00\00\00") (data (i32.const 232) "\02\00\00\00\01\00\00\00\10\00\00\00\02\00\00\00a\00") (data (i32.const 256) "\02\00\00\00\01\00\00\00\10\00\00\00\02\00\00\00b\00") (data (i32.const 280) "\08\00\00\00\01\00\00\00\10\00\00\00\08\00\00\00n\00u\00l\00l\00") (data (i32.const 304) "\02\00\00\00\01\00\00\00\10\00\00\00\02\00\00\00d\00") (data (i32.const 328) "\12\00\00\00\00\00\00\00\08\00\00\00\00\00\00\00\08\00\00\00\00\00\00\00\08\00\00\00\00\00\00\00\08\00\00\00\00\00\00\00\08\00\00\00\00\00\00\00\08\00\00\00\00\00\00\00\08\00\00\00\00\00\00\00\08\00\00\00\00\00\00\00\08\00\00\00\00\00\00\00\08\00\00\00\00\00\00\00\08\00\00\00\00\00\00\00\08\00\00\00\00\00\00\00\08\00\00\00\00\00\00\00\08\00\00\00\00\00\00\00\08\00\00\00\00\00\00\00\08\00\00\00\00\00\00\00I\00\00\00\0e\00\00\00I\04\00\00\0e\00\00\00") (table $0 1 funcref) (elem (i32.const 0) $null) (global $~lib/rt/tlsf/ROOT (mut i32) (i32.const 0)) (global $~lib/rt/purerc/CUR (mut i32) (i32.const 0)) (global $~lib/rt/purerc/END (mut i32) (i32.const 0)) (global $~lib/rt/purerc/ROOTS (mut i32) (i32.const 0)) (global $~lib/started (mut i32) (i32.const 0)) (global $~lib/builtins/RTTI_BASE i32 (i32.const 328)) (global $~lib/builtins/HEAP_BASE i32 (i32.const 480)) (export "memory" (memory $0)) (export "main" (func $retain-release-sanity/main)) (func $~lib/rt/tlsf/removeBlock (; 4 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32) (local $2 i32) (local $3 i32) (local $4 i32) (local $5 i32) (local $6 i32) (local $7 i32) (local $8 i32) (local $9 i32) (local $10 i32) (local $11 i32) local.get $1 i32.load local.set $2 local.get $2 i32.const 1 i32.and i32.eqz if i32.const 0 i32.const 80 i32.const 275 i32.const 13 call $~lib/builtins/abort unreachable end local.get $2 i32.const 3 i32.const -1 i32.xor i32.and local.set $3 local.get $3 i32.const 16 i32.ge_u if (result i32) local.get $3 i32.const 1073741808 i32.lt_u else i32.const 0 end i32.eqz if i32.const 0 i32.const 80 i32.const 277 i32.const 13 call $~lib/builtins/abort unreachable end local.get $3 i32.const 256 i32.lt_u if i32.const 0 local.set $4 local.get $3 i32.const 4 i32.shr_u local.set $5 else i32.const 31 local.get $3 i32.clz i32.sub local.set $4 local.get $3 local.get $4 i32.const 4 i32.sub i32.shr_u i32.const 1 i32.const 4 i32.shl i32.xor local.set $5 local.get $4 i32.const 8 i32.const 1 i32.sub i32.sub local.set $4 end local.get $4 i32.const 23 i32.lt_u if (result i32) local.get $5 i32.const 16 i32.lt_u else i32.const 0 end i32.eqz if i32.const 0 i32.const 80 i32.const 290 i32.const 13 call $~lib/builtins/abort unreachable end local.get $1 i32.load offset=16 local.set $6 local.get $1 i32.load offset=20 local.set $7 local.get $6 if local.get $6 local.get $7 i32.store offset=20 end local.get $7 if local.get $7 local.get $6 i32.store offset=16 end local.get $1 block $~lib/rt/tlsf/GETHEAD|inlined.1 (result i32) local.get $0 local.set $10 local.get $4 local.set $9 local.get $5 local.set $8 local.get $10 local.get $9 i32.const 4 i32.shl local.get $8 i32.add i32.const 2 i32.shl i32.add i32.load offset=96 end i32.eq if block $~lib/rt/tlsf/SETHEAD|inlined.1 local.get $0 local.set $11 local.get $4 local.set $10 local.get $5 local.set $9 local.get $7 local.set $8 local.get $11 local.get $10 i32.const 4 i32.shl local.get $9 i32.add i32.const 2 i32.shl i32.add local.get $8 i32.store offset=96 end local.get $7 i32.eqz if block $~lib/rt/tlsf/GETSL|inlined.0 (result i32) local.get $0 local.set $9 local.get $4 local.set $8 local.get $9 local.get $8 i32.const 2 i32.shl i32.add i32.load offset=4 end local.set $8 block $~lib/rt/tlsf/SETSL|inlined.1 local.get $0 local.set $11 local.get $4 local.set $10 local.get $8 i32.const 1 local.get $5 i32.shl i32.const -1 i32.xor i32.and local.tee $8 local.set $9 local.get $11 local.get $10 i32.const 2 i32.shl i32.add local.get $9 i32.store offset=4 end local.get $8 i32.eqz if local.get $0 local.get $0 i32.load i32.const 1 local.get $4 i32.shl i32.const -1 i32.xor i32.and i32.store end end end ) (func $~lib/rt/tlsf/insertBlock (; 5 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32) (local $2 i32) (local $3 i32) (local $4 i32) (local $5 i32) (local $6 i32) (local $7 i32) (local $8 i32) (local $9 i32) (local $10 i32) (local $11 i32) (local $12 i32) (local $13 i32) local.get $1 i32.eqz if i32.const 0 i32.const 80 i32.const 203 i32.const 13 call $~lib/builtins/abort unreachable end local.get $1 i32.load local.set $2 local.get $2 i32.const 1 i32.and i32.eqz if i32.const 0 i32.const 80 i32.const 205 i32.const 13 call $~lib/builtins/abort unreachable end block $~lib/rt/tlsf/GETRIGHT|inlined.0 (result i32) local.get $1 local.set $3 local.get $3 i32.const 16 i32.add local.get $3 i32.load i32.const 3 i32.const -1 i32.xor i32.and i32.add end local.set $4 local.get $4 i32.load local.set $5 local.get $5 i32.const 1 i32.and if local.get $2 i32.const 3 i32.const -1 i32.xor i32.and i32.const 16 i32.add local.get $5 i32.const 3 i32.const -1 i32.xor i32.and i32.add local.set $3 local.get $3 i32.const 1073741808 i32.lt_u if local.get $0 local.get $4 call $~lib/rt/tlsf/removeBlock local.get $1 local.get $2 i32.const 3 i32.and local.get $3 i32.or local.tee $2 i32.store block $~lib/rt/tlsf/GETRIGHT|inlined.1 (result i32) local.get $1 local.set $6 local.get $6 i32.const 16 i32.add local.get $6 i32.load i32.const 3 i32.const -1 i32.xor i32.and i32.add end local.set $4 local.get $4 i32.load local.set $5 end end local.get $2 i32.const 2 i32.and if block $~lib/rt/tlsf/GETFREELEFT|inlined.0 (result i32) local.get $1 local.set $3 local.get $3 i32.const 4 i32.sub i32.load end local.set $3 local.get $3 i32.load local.set $6 local.get $6 i32.const 1 i32.and i32.eqz if i32.const 0 i32.const 80 i32.const 226 i32.const 15 call $~lib/builtins/abort unreachable end local.get $6 i32.const 3 i32.const -1 i32.xor i32.and i32.const 16 i32.add local.get $2 i32.const 3 i32.const -1 i32.xor i32.and i32.add local.set $7 local.get $7 i32.const 1073741808 i32.lt_u if local.get $0 local.get $3 call $~lib/rt/tlsf/removeBlock local.get $3 local.get $6 i32.const 3 i32.and local.get $7 i32.or local.tee $2 i32.store local.get $3 local.set $1 end end local.get $4 local.get $5 i32.const 2 i32.or i32.store local.get $2 i32.const 3 i32.const -1 i32.xor i32.and local.set $8 local.get $8 i32.const 16 i32.ge_u if (result i32) local.get $8 i32.const 1073741808 i32.lt_u else i32.const 0 end i32.eqz if i32.const 0 i32.const 80 i32.const 241 i32.const 13 call $~lib/builtins/abort unreachable end local.get $1 i32.const 16 i32.add local.get $8 i32.add local.get $4 i32.eq i32.eqz if i32.const 0 i32.const 80 i32.const 242 i32.const 13 call $~lib/builtins/abort unreachable end local.get $4 i32.const 4 i32.sub local.get $1 i32.store local.get $8 i32.const 256 i32.lt_u if i32.const 0 local.set $9 local.get $8 i32.const 4 i32.shr_u local.set $10 else i32.const 31 local.get $8 i32.clz i32.sub local.set $9 local.get $8 local.get $9 i32.const 4 i32.sub i32.shr_u i32.const 1 i32.const 4 i32.shl i32.xor local.set $10 local.get $9 i32.const 8 i32.const 1 i32.sub i32.sub local.set $9 end local.get $9 i32.const 23 i32.lt_u if (result i32) local.get $10 i32.const 16 i32.lt_u else i32.const 0 end i32.eqz if i32.const 0 i32.const 80 i32.const 258 i32.const 13 call $~lib/builtins/abort unreachable end block $~lib/rt/tlsf/GETHEAD|inlined.2 (result i32) local.get $0 local.set $3 local.get $9 local.set $6 local.get $10 local.set $7 local.get $3 local.get $6 i32.const 4 i32.shl local.get $7 i32.add i32.const 2 i32.shl i32.add i32.load offset=96 end local.set $11 local.get $1 i32.const 0 i32.store offset=16 local.get $1 local.get $11 i32.store offset=20 local.get $11 if local.get $11 local.get $1 i32.store offset=16 end block $~lib/rt/tlsf/SETHEAD|inlined.2 local.get $0 local.set $12 local.get $9 local.set $3 local.get $10 local.set $6 local.get $1 local.set $7 local.get $12 local.get $3 i32.const 4 i32.shl local.get $6 i32.add i32.const 2 i32.shl i32.add local.get $7 i32.store offset=96 end local.get $0 local.get $0 i32.load i32.const 1 local.get $9 i32.shl i32.or i32.store block $~lib/rt/tlsf/SETSL|inlined.2 block $~lib/rt/tlsf/GETSL|inlined.1 (result i32) local.get $0 local.set $13 local.get $9 local.set $12 local.get $13 local.get $12 i32.const 2 i32.shl i32.add i32.load offset=4 end i32.const 1 local.get $10 i32.shl i32.or local.set $3 local.get $0 local.get $9 i32.const 2 i32.shl i32.add local.get $3 i32.store offset=4 end ) (func $~lib/rt/tlsf/addMemory (; 6 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32) (local $3 i32) (local $4 i32) (local $5 i32) (local $6 i32) (local $7 i32) (local $8 i32) (local $9 i32) local.get $1 local.get $2 i32.le_u if (result i32) local.get $1 i32.const 15 i32.and i32.eqz else i32.const 0 end if (result i32) local.get $2 i32.const 15 i32.and i32.eqz else i32.const 0 end i32.eqz if i32.const 0 i32.const 80 i32.const 384 i32.const 4 call $~lib/builtins/abort unreachable end block $~lib/rt/tlsf/GETTAIL|inlined.0 (result i32) local.get $0 local.set $3 local.get $3 i32.load offset=1568 end local.set $4 i32.const 0 local.set $5 local.get $4 if local.get $1 local.get $4 i32.const 16 i32.add i32.ge_u i32.eqz if i32.const 0 i32.const 80 i32.const 394 i32.const 15 call $~lib/builtins/abort unreachable end local.get $1 i32.const 16 i32.sub local.get $4 i32.eq if local.get $1 i32.const 16 i32.sub local.set $1 local.get $4 i32.load local.set $5 else nop end else local.get $1 local.get $0 i32.const 1572 i32.add i32.ge_u i32.eqz if i32.const 0 i32.const 80 i32.const 406 i32.const 4 call $~lib/builtins/abort unreachable end end local.get $2 local.get $1 i32.sub local.set $6 local.get $6 i32.const 16 i32.const 16 i32.add i32.const 16 i32.add i32.lt_u if i32.const 0 return end local.get $6 i32.const 2 i32.const 16 i32.mul i32.sub local.set $7 local.get $1 local.set $8 local.get $8 local.get $7 i32.const 1 i32.or local.get $5 i32.const 2 i32.and i32.or i32.store local.get $8 i32.const 0 i32.store offset=16 local.get $8 i32.const 0 i32.store offset=20 local.get $1 local.get $6 i32.add i32.const 16 i32.sub local.set $4 local.get $4 i32.const 0 i32.const 2 i32.or i32.store block $~lib/rt/tlsf/SETTAIL|inlined.1 local.get $0 local.set $9 local.get $4 local.set $3 local.get $9 local.get $3 i32.store offset=1568 end local.get $0 local.get $8 call $~lib/rt/tlsf/insertBlock i32.const 1 ) (func $~lib/rt/tlsf/initializeRoot (; 7 ;) (type $FUNCSIG$v) (local $0 i32) (local $1 i32) (local $2 i32) (local $3 i32) (local $4 i32) (local $5 i32) (local $6 i32) (local $7 i32) (local $8 i32) (local $9 i32) global.get $~lib/builtins/HEAP_BASE i32.const 15 i32.add i32.const 15 i32.const -1 i32.xor i32.and local.set $0 current_memory local.set $1 local.get $0 i32.const 1572 i32.add i32.const 65535 i32.add i32.const 65535 i32.const -1 i32.xor i32.and i32.const 16 i32.shr_u local.set $2 local.get $2 local.get $1 i32.gt_s if (result i32) local.get $2 local.get $1 i32.sub grow_memory i32.const 0 i32.lt_s else i32.const 0 end if unreachable end local.get $0 local.set $3 local.get $3 i32.const 0 i32.store block $~lib/rt/tlsf/SETTAIL|inlined.0 local.get $3 local.set $5 i32.const 0 local.set $4 local.get $5 local.get $4 i32.store offset=1568 end block $break|0 i32.const 0 local.set $4 loop $repeat|0 local.get $4 i32.const 23 i32.lt_u i32.eqz br_if $break|0 block $~lib/rt/tlsf/SETSL|inlined.0 local.get $3 local.set $7 local.get $4 local.set $6 i32.const 0 local.set $5 local.get $7 local.get $6 i32.const 2 i32.shl i32.add local.get $5 i32.store offset=4 end block $break|1 i32.const 0 local.set $5 loop $repeat|1 local.get $5 i32.const 16 i32.lt_u i32.eqz br_if $break|1 block $~lib/rt/tlsf/SETHEAD|inlined.0 local.get $3 local.set $9 local.get $4 local.set $8 local.get $5 local.set $7 i32.const 0 local.set $6 local.get $9 local.get $8 i32.const 4 i32.shl local.get $7 i32.add i32.const 2 i32.shl i32.add local.get $6 i32.store offset=96 end local.get $5 i32.const 1 i32.add local.set $5 br $repeat|1 unreachable end unreachable end local.get $4 i32.const 1 i32.add local.set $4 br $repeat|0 unreachable end unreachable end local.get $3 local.get $0 i32.const 1572 i32.add i32.const 15 i32.add i32.const 15 i32.const -1 i32.xor i32.and current_memory i32.const 16 i32.shl call $~lib/rt/tlsf/addMemory drop local.get $3 global.set $~lib/rt/tlsf/ROOT ) (func $~lib/rt/tlsf/prepareSize (; 8 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32) (local $1 i32) (local $2 i32) local.get $0 i32.const 1073741808 i32.ge_u if i32.const 0 i32.const 80 i32.const 446 i32.const 29 call $~lib/builtins/abort unreachable end local.get $0 i32.const 15 i32.add i32.const 15 i32.const -1 i32.xor i32.and local.tee $1 i32.const 16 local.tee $2 local.get $1 local.get $2 i32.gt_u select ) (func $~lib/rt/tlsf/searchBlock (; 9 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32) (local $2 i32) (local $3 i32) (local $4 i32) (local $5 i32) (local $6 i32) (local $7 i32) (local $8 i32) (local $9 i32) local.get $1 i32.const 256 i32.lt_u if i32.const 0 local.set $2 local.get $1 i32.const 4 i32.shr_u local.set $3 else local.get $1 i32.const 536870904 i32.lt_u if (result i32) local.get $1 i32.const 1 i32.const 27 local.get $1 i32.clz i32.sub i32.shl i32.add i32.const 1 i32.sub else local.get $1 end local.set $4 i32.const 31 local.get $4 i32.clz i32.sub local.set $2 local.get $4 local.get $2 i32.const 4 i32.sub i32.shr_u i32.const 1 i32.const 4 i32.shl i32.xor local.set $3 local.get $2 i32.const 8 i32.const 1 i32.sub i32.sub local.set $2 end local.get $2 i32.const 23 i32.lt_u if (result i32) local.get $3 i32.const 16 i32.lt_u else i32.const 0 end i32.eqz if i32.const 0 i32.const 80 i32.const 336 i32.const 13 call $~lib/builtins/abort unreachable end block $~lib/rt/tlsf/GETSL|inlined.2 (result i32) local.get $0 local.set $5 local.get $2 local.set $4 local.get $5 local.get $4 i32.const 2 i32.shl i32.add i32.load offset=4 end i32.const 0 i32.const -1 i32.xor local.get $3 i32.shl i32.and local.set $6 local.get $6 i32.eqz if local.get $0 i32.load i32.const 0 i32.const -1 i32.xor local.get $2 i32.const 1 i32.add i32.shl i32.and local.set $4 local.get $4 i32.eqz if i32.const 0 local.set $7 else local.get $4 i32.ctz local.set $2 block $~lib/rt/tlsf/GETSL|inlined.3 (result i32) local.get $0 local.set $8 local.get $2 local.set $5 local.get $8 local.get $5 i32.const 2 i32.shl i32.add i32.load offset=4 end local.set $6 local.get $6 i32.eqz if i32.const 0 i32.const 80 i32.const 349 i32.const 17 call $~lib/builtins/abort unreachable end block $~lib/rt/tlsf/GETHEAD|inlined.3 (result i32) local.get $0 local.set $9 local.get $2 local.set $8 local.get $6 i32.ctz local.set $5 local.get $9 local.get $8 i32.const 4 i32.shl local.get $5 i32.add i32.const 2 i32.shl i32.add i32.load offset=96 end local.set $7 end else block $~lib/rt/tlsf/GETHEAD|inlined.4 (result i32) local.get $0 local.set $8 local.get $2 local.set $5 local.get $6 i32.ctz local.set $4 local.get $8 local.get $5 i32.const 4 i32.shl local.get $4 i32.add i32.const 2 i32.shl i32.add i32.load offset=96 end local.set $7 end local.get $7 ) (func $~lib/rt/tlsf/growMemory (; 10 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32) (local $2 i32) (local $3 i32) (local $4 i32) (local $5 i32) (local $6 i32) (local $7 i32) current_memory local.set $2 local.get $1 i32.const 65535 i32.add i32.const 65535 i32.const -1 i32.xor i32.and i32.const 16 i32.shr_u local.set $3 local.get $2 local.tee $4 local.get $3 local.tee $5 local.get $4 local.get $5 i32.gt_s select local.set $6 local.get $6 grow_memory i32.const 0 i32.lt_s if local.get $3 grow_memory i32.const 0 i32.lt_s if unreachable end end current_memory local.set $7 local.get $0 local.get $2 i32.const 16 i32.shl local.get $7 i32.const 16 i32.shl call $~lib/rt/tlsf/addMemory drop ) (func $~lib/rt/tlsf/prepareBlock (; 11 ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32) (local $3 i32) (local $4 i32) (local $5 i32) local.get $1 i32.load local.set $3 local.get $2 i32.const 15 i32.and i32.eqz i32.eqz if i32.const 0 i32.const 80 i32.const 363 i32.const 13 call $~lib/builtins/abort unreachable end local.get $3 i32.const 3 i32.const -1 i32.xor i32.and local.get $2 i32.sub local.set $4 local.get $4 i32.const 16 i32.const 16 i32.add i32.ge_u if local.get $1 local.get $2 local.get $3 i32.const 2 i32.and i32.or i32.store local.get $1 i32.const 16 i32.add local.get $2 i32.add local.set $5 local.get $5 local.get $4 i32.const 16 i32.sub i32.const 1 i32.or i32.store local.get $0 local.get $5 call $~lib/rt/tlsf/insertBlock else local.get $1 local.get $3 i32.const 1 i32.const -1 i32.xor i32.and i32.store block $~lib/rt/tlsf/GETRIGHT|inlined.3 (result i32) local.get $1 local.set $5 local.get $5 i32.const 16 i32.add local.get $5 i32.load i32.const 3 i32.const -1 i32.xor i32.and i32.add end block $~lib/rt/tlsf/GETRIGHT|inlined.2 (result i32) local.get $1 local.set $5 local.get $5 i32.const 16 i32.add local.get $5 i32.load i32.const 3 i32.const -1 i32.xor i32.and i32.add end i32.load i32.const 2 i32.const -1 i32.xor i32.and i32.store end ) (func $~lib/rt/tlsf/allocateBlock (; 12 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32) (local $2 i32) (local $3 i32) local.get $1 call $~lib/rt/tlsf/prepareSize local.set $2 local.get $0 local.get $2 call $~lib/rt/tlsf/searchBlock local.set $3 local.get $3 i32.eqz if local.get $0 local.get $2 call $~lib/rt/tlsf/growMemory local.get $0 local.get $2 call $~lib/rt/tlsf/searchBlock local.set $3 local.get $3 i32.eqz if i32.const 0 i32.const 80 i32.const 476 i32.const 15 call $~lib/builtins/abort unreachable end end local.get $3 i32.load i32.const 3 i32.const -1 i32.xor i32.and local.get $2 i32.ge_u i32.eqz if i32.const 0 i32.const 80 i32.const 478 i32.const 13 call $~lib/builtins/abort unreachable end local.get $3 i32.const 0 i32.store offset=4 local.get $3 local.get $1 i32.store offset=12 local.get $0 local.get $3 call $~lib/rt/tlsf/removeBlock local.get $0 local.get $3 local.get $2 call $~lib/rt/tlsf/prepareBlock local.get $3 ) (func $~lib/rt/tlsf/__alloc (; 13 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32) (local $2 i32) (local $3 i32) global.get $~lib/rt/tlsf/ROOT local.set $2 local.get $2 i32.eqz if call $~lib/rt/tlsf/initializeRoot global.get $~lib/rt/tlsf/ROOT local.set $2 end local.get $2 local.get $0 call $~lib/rt/tlsf/allocateBlock local.set $3 local.get $3 local.get $1 i32.store offset=8 local.get $3 i32.const 16 i32.add ) (func $~lib/memory/memory.fill (; 14 ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32) (local $3 i32) (local $4 i32) (local $5 i32) (local $6 i64) block $~lib/util/memory/memset|inlined.0 local.get $2 i32.eqz if br $~lib/util/memory/memset|inlined.0 end local.get $0 local.get $1 i32.store8 local.get $0 local.get $2 i32.add i32.const 1 i32.sub local.get $1 i32.store8 local.get $2 i32.const 2 i32.le_u if br $~lib/util/memory/memset|inlined.0 end local.get $0 i32.const 1 i32.add local.get $1 i32.store8 local.get $0 i32.const 2 i32.add local.get $1 i32.store8 local.get $0 local.get $2 i32.add i32.const 2 i32.sub local.get $1 i32.store8 local.get $0 local.get $2 i32.add i32.const 3 i32.sub local.get $1 i32.store8 local.get $2 i32.const 6 i32.le_u if br $~lib/util/memory/memset|inlined.0 end local.get $0 i32.const 3 i32.add local.get $1 i32.store8 local.get $0 local.get $2 i32.add i32.const 4 i32.sub local.get $1 i32.store8 local.get $2 i32.const 8 i32.le_u if br $~lib/util/memory/memset|inlined.0 end i32.const 0 local.get $0 i32.sub i32.const 3 i32.and local.set $5 local.get $0 local.get $5 i32.add local.set $0 local.get $2 local.get $5 i32.sub local.set $2 local.get $2 i32.const -4 i32.and local.set $2 i32.const -1 i32.const 255 i32.div_u local.get $1 i32.const 255 i32.and i32.mul local.set $4 local.get $0 local.get $4 i32.store local.get $0 local.get $2 i32.add i32.const 4 i32.sub local.get $4 i32.store local.get $2 i32.const 8 i32.le_u if br $~lib/util/memory/memset|inlined.0 end local.get $0 i32.const 4 i32.add local.get $4 i32.store local.get $0 i32.const 8 i32.add local.get $4 i32.store local.get $0 local.get $2 i32.add i32.const 12 i32.sub local.get $4 i32.store local.get $0 local.get $2 i32.add i32.const 8 i32.sub local.get $4 i32.store local.get $2 i32.const 24 i32.le_u if br $~lib/util/memory/memset|inlined.0 end local.get $0 i32.const 12 i32.add local.get $4 i32.store local.get $0 i32.const 16 i32.add local.get $4 i32.store local.get $0 i32.const 20 i32.add local.get $4 i32.store local.get $0 i32.const 24 i32.add local.get $4 i32.store local.get $0 local.get $2 i32.add i32.const 28 i32.sub local.get $4 i32.store local.get $0 local.get $2 i32.add i32.const 24 i32.sub local.get $4 i32.store local.get $0 local.get $2 i32.add i32.const 20 i32.sub local.get $4 i32.store local.get $0 local.get $2 i32.add i32.const 16 i32.sub local.get $4 i32.store i32.const 24 local.get $0 i32.const 4 i32.and i32.add local.set $5 local.get $0 local.get $5 i32.add local.set $0 local.get $2 local.get $5 i32.sub local.set $2 local.get $4 i64.extend_i32_u local.get $4 i64.extend_i32_u i64.const 32 i64.shl i64.or local.set $6 block $break|0 loop $continue|0 local.get $2 i32.const 32 i32.ge_u if local.get $0 local.get $6 i64.store local.get $0 i32.const 8 i32.add local.get $6 i64.store local.get $0 i32.const 16 i32.add local.get $6 i64.store local.get $0 i32.const 24 i32.add local.get $6 i64.store local.get $2 i32.const 32 i32.sub local.set $2 local.get $0 i32.const 32 i32.add local.set $0 br $continue|0 end end end end ) (func $~lib/rt/purerc/increment (; 15 ;) (type $FUNCSIG$vi) (param $0 i32) (local $1 i32) local.get $0 i32.load offset=4 local.set $1 local.get $1 i32.const 268435455 i32.const -1 i32.xor i32.and local.get $1 i32.const 1 i32.add i32.const 268435455 i32.const -1 i32.xor i32.and i32.eq i32.eqz if i32.const 0 i32.const 128 i32.const 103 i32.const 2 call $~lib/builtins/abort unreachable end local.get $0 local.get $1 i32.const 1 i32.add i32.store offset=4 local.get $0 call $~lib/rt/purerc/onIncrement local.get $0 i32.load i32.const 1 i32.and i32.eqz i32.eqz if i32.const 0 i32.const 128 i32.const 106 i32.const 13 call $~lib/builtins/abort unreachable end ) (func $~lib/rt/purerc/__retain (; 16 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32) local.get $0 global.get $~lib/builtins/HEAP_BASE i32.gt_u if local.get $0 i32.const 16 i32.sub call $~lib/rt/purerc/increment end local.get $0 ) (func $~lib/arraybuffer/ArrayBuffer#constructor (; 17 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32) (local $2 i32) local.get $1 i32.const 1073741808 i32.gt_u if i32.const 0 i32.const 24 i32.const 57 i32.const 42 call $~lib/builtins/abort unreachable end local.get $1 i32.const 15 call $~lib/rt/tlsf/__alloc local.set $2 local.get $2 i32.const 0 local.get $1 call $~lib/memory/memory.fill local.get $2 call $~lib/rt/purerc/__retain ) (func $~lib/arraybuffer/ArrayBufferView#constructor (; 18 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32) (local $3 i32) (local $4 i32) local.get $1 i32.const 1073741808 local.get $2 i32.shr_u i32.gt_u if i32.const 0 i32.const 24 i32.const 14 i32.const 56 call $~lib/builtins/abort unreachable end i32.const 0 local.get $1 local.get $2 i32.shl local.tee $1 call $~lib/arraybuffer/ArrayBuffer#constructor local.tee $3 local.set $4 block (result i32) local.get $0 i32.eqz if i32.const 12 i32.const 14 call $~lib/rt/tlsf/__alloc call $~lib/rt/purerc/__retain local.set $0 end local.get $0 i32.const 0 i32.store local.get $0 i32.const 0 i32.store offset=4 local.get $0 i32.const 0 i32.store offset=8 local.get $0 end local.get $4 i32.store local.get $0 local.get $4 i32.store offset=4 local.get $0 local.get $1 i32.store offset=8 local.get $0 ) (func $~lib/array/Array#constructor (; 19 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32) (local $2 i32) local.get $0 if (result i32) local.get $0 else i32.const 16 i32.const 17 call $~lib/rt/tlsf/__alloc call $~lib/rt/purerc/__retain end local.get $1 i32.const 2 call $~lib/arraybuffer/ArrayBufferView#constructor local.tee $2 local.set $0 local.get $0 i32.const 0 i32.store offset=12 local.get $0 local.get $1 i32.store offset=12 local.get $0 ) (func $~lib/rt/tlsf/freeBlock (; 20 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32) (local $2 i32) local.get $1 i32.load local.set $2 local.get $2 i32.const 1 i32.and i32.eqz i32.eqz if i32.const 0 i32.const 80 i32.const 530 i32.const 2 call $~lib/builtins/abort unreachable end local.get $1 local.get $2 i32.const 1 i32.or i32.store local.get $0 local.get $1 call $~lib/rt/tlsf/insertBlock local.get $1 call $~lib/rt/tlsf/onFree ) (func $~lib/rt/common/__typeinfo (; 21 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32) (local $1 i32) global.get $~lib/builtins/RTTI_BASE local.set $1 local.get $0 i32.eqz if (result i32) i32.const 1 else local.get $0 local.get $1 i32.load i32.gt_u end if (result i32) unreachable else local.get $1 local.get $0 i32.const 8 i32.mul i32.add i32.load end ) (func $~lib/memory/memory.copy (; 22 ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32) (local $3 i32) (local $4 i32) (local $5 i32) block $~lib/util/memory/memmove|inlined.0 local.get $0 local.get $1 i32.eq if br $~lib/util/memory/memmove|inlined.0 end local.get $0 local.get $1 i32.lt_u if local.get $1 i32.const 7 i32.and local.get $0 i32.const 7 i32.and i32.eq if block $break|0 loop $continue|0 local.get $0 i32.const 7 i32.and if local.get $2 i32.eqz if br $~lib/util/memory/memmove|inlined.0 end local.get $2 i32.const 1 i32.sub local.set $2 block (result i32) local.get $0 local.tee $5 i32.const 1 i32.add local.set $0 local.get $5 end block (result i32) local.get $1 local.tee $5 i32.const 1 i32.add local.set $1 local.get $5 end i32.load8_u i32.store8 br $continue|0 end end end block $break|1 loop $continue|1 local.get $2 i32.const 8 i32.ge_u if local.get $0 local.get $1 i64.load i64.store local.get $2 i32.const 8 i32.sub local.set $2 local.get $0 i32.const 8 i32.add local.set $0 local.get $1 i32.const 8 i32.add local.set $1 br $continue|1 end end end end block $break|2 loop $continue|2 local.get $2 if block (result i32) local.get $0 local.tee $5 i32.const 1 i32.add local.set $0 local.get $5 end block (result i32) local.get $1 local.tee $5 i32.const 1 i32.add local.set $1 local.get $5 end i32.load8_u i32.store8 local.get $2 i32.const 1 i32.sub local.set $2 br $continue|2 end end end else local.get $1 i32.const 7 i32.and local.get $0 i32.const 7 i32.and i32.eq if block $break|3 loop $continue|3 local.get $0 local.get $2 i32.add i32.const 7 i32.and if local.get $2 i32.eqz if br $~lib/util/memory/memmove|inlined.0 end local.get $0 local.get $2 i32.const 1 i32.sub local.tee $2 i32.add local.get $1 local.get $2 i32.add i32.load8_u i32.store8 br $continue|3 end end end block $break|4 loop $continue|4 local.get $2 i32.const 8 i32.ge_u if local.get $2 i32.const 8 i32.sub local.set $2 local.get $0 local.get $2 i32.add local.get $1 local.get $2 i32.add i64.load i64.store br $continue|4 end end end end block $break|5 loop $continue|5 local.get $2 if local.get $0 local.get $2 i32.const 1 i32.sub local.tee $2 i32.add local.get $1 local.get $2 i32.add i32.load8_u i32.store8 br $continue|5 end end end end end ) (func $~lib/rt/purerc/growRoots (; 23 ;) (type $FUNCSIG$v) (local $0 i32) (local $1 i32) (local $2 i32) (local $3 i32) (local $4 i32) (local $5 i32) global.get $~lib/rt/purerc/ROOTS local.set $0 global.get $~lib/rt/purerc/CUR local.get $0 i32.sub local.set $1 local.get $1 i32.const 2 i32.mul local.tee $2 i32.const 64 i32.const 2 i32.shl local.tee $3 local.get $2 local.get $3 i32.gt_u select local.set $4 local.get $4 i32.const 0 call $~lib/rt/tlsf/__alloc local.set $5 local.get $5 local.get $0 local.get $1 call $~lib/memory/memory.copy local.get $5 global.set $~lib/rt/purerc/ROOTS local.get $5 local.get $1 i32.add global.set $~lib/rt/purerc/CUR local.get $5 local.get $4 i32.add global.set $~lib/rt/purerc/END ) (func $~lib/rt/purerc/appendRoot (; 24 ;) (type $FUNCSIG$vi) (param $0 i32) (local $1 i32) global.get $~lib/rt/purerc/CUR local.set $1 local.get $1 global.get $~lib/rt/purerc/END i32.ge_u if call $~lib/rt/purerc/growRoots global.get $~lib/rt/purerc/CUR local.set $1 end local.get $1 local.get $0 i32.store local.get $1 i32.const 1 i32.add global.set $~lib/rt/purerc/CUR ) (func $~lib/rt/purerc/decrement (; 25 ;) (type $FUNCSIG$vi) (param $0 i32) (local $1 i32) (local $2 i32) local.get $0 i32.load offset=4 local.set $1 local.get $1 i32.const 268435455 i32.and local.set $2 local.get $0 call $~lib/rt/purerc/onDecrement local.get $0 i32.load i32.const 1 i32.and i32.eqz i32.eqz if i32.const 0 i32.const 128 i32.const 114 i32.const 13 call $~lib/builtins/abort unreachable end local.get $2 i32.const 1 i32.eq if local.get $0 i32.const 16 i32.add i32.const 1 call $~lib/builtins/__visit_members local.get $1 i32.const -2147483648 i32.and i32.eqz if global.get $~lib/rt/tlsf/ROOT local.get $0 call $~lib/rt/tlsf/freeBlock else local.get $0 i32.const -2147483648 i32.const 0 i32.or i32.const 0 i32.or i32.store offset=4 end else local.get $2 i32.const 0 i32.gt_u i32.eqz if i32.const 0 i32.const 128 i32.const 123 i32.const 15 call $~lib/builtins/abort unreachable end local.get $0 i32.load offset=8 call $~lib/rt/common/__typeinfo i32.const 8 i32.and i32.eqz if local.get $0 i32.const -2147483648 i32.const 805306368 i32.or local.get $2 i32.const 1 i32.sub i32.or i32.store offset=4 local.get $1 i32.const -2147483648 i32.and i32.eqz if local.get $0 call $~lib/rt/purerc/appendRoot end else local.get $0 local.get $1 i32.const 268435455 i32.const -1 i32.xor i32.and local.get $2 i32.const 1 i32.sub i32.or i32.store offset=4 end end ) (func $~lib/rt/purerc/__release (; 26 ;) (type $FUNCSIG$vi) (param $0 i32) local.get $0 global.get $~lib/builtins/HEAP_BASE i32.gt_u if local.get $0 i32.const 16 i32.sub call $~lib/rt/purerc/decrement end ) (func $~lib/rt/tlsf/reallocateBlock (; 27 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32) (local $3 i32) (local $4 i32) (local $5 i32) (local $6 i32) (local $7 i32) (local $8 i32) local.get $2 call $~lib/rt/tlsf/prepareSize local.set $3 local.get $1 i32.load local.set $4 local.get $4 i32.const 1 i32.and i32.eqz i32.eqz if i32.const 0 i32.const 80 i32.const 491 i32.const 13 call $~lib/builtins/abort unreachable end local.get $3 local.get $4 i32.const 3 i32.const -1 i32.xor i32.and i32.le_u if local.get $0 local.get $1 local.get $3 call $~lib/rt/tlsf/prepareBlock local.get $1 local.get $2 i32.store offset=12 local.get $1 return end block $~lib/rt/tlsf/GETRIGHT|inlined.4 (result i32) local.get $1 local.set $5 local.get $5 i32.const 16 i32.add local.get $5 i32.load i32.const 3 i32.const -1 i32.xor i32.and i32.add end local.set $6 local.get $6 i32.load local.set $7 local.get $7 i32.const 1 i32.and if local.get $4 i32.const 3 i32.const -1 i32.xor i32.and i32.const 16 i32.add local.get $7 i32.const 3 i32.const -1 i32.xor i32.and i32.add local.set $5 local.get $5 local.get $3 i32.ge_u if local.get $0 local.get $6 call $~lib/rt/tlsf/removeBlock local.get $1 local.get $4 i32.const 3 i32.and local.get $5 i32.or i32.store local.get $1 local.get $2 i32.store offset=12 local.get $0 local.get $1 local.get $3 call $~lib/rt/tlsf/prepareBlock local.get $1 return end end local.get $0 local.get $2 call $~lib/rt/tlsf/allocateBlock local.set $8 local.get $8 local.get $1 i32.load offset=4 i32.store offset=4 local.get $8 local.get $1 i32.load offset=8 i32.store offset=8 local.get $8 i32.const 16 i32.add local.get $1 i32.const 16 i32.add local.get $2 call $~lib/memory/memory.copy local.get $1 local.get $4 i32.const 1 i32.or i32.store local.get $0 local.get $1 call $~lib/rt/tlsf/insertBlock local.get $1 call $~lib/rt/tlsf/onFree local.get $8 ) (func $~lib/rt/tlsf/__realloc (; 28 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32) global.get $~lib/rt/tlsf/ROOT i32.eqz if i32.const 0 i32.const 80 i32.const 552 i32.const 13 call $~lib/builtins/abort unreachable end local.get $0 i32.const 0 i32.ne if (result i32) local.get $0 i32.const 15 i32.and i32.eqz else i32.const 0 end i32.eqz if i32.const 0 i32.const 80 i32.const 553 i32.const 2 call $~lib/builtins/abort unreachable end global.get $~lib/rt/tlsf/ROOT local.get $0 i32.const 16 i32.sub local.get $1 call $~lib/rt/tlsf/reallocateBlock i32.const 16 i32.add ) (func $~lib/array/ensureSize (; 29 ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32) (local $3 i32) (local $4 i32) (local $5 i32) (local $6 i32) local.get $0 call $~lib/rt/purerc/__retain drop local.get $0 i32.load offset=8 local.set $3 local.get $1 local.get $3 local.get $2 i32.shr_u i32.gt_u if local.get $1 i32.const 1073741808 local.get $2 i32.shr_u i32.gt_u if local.get $0 call $~lib/rt/purerc/__release block i32.const 0 i32.const 184 i32.const 14 i32.const 47 call $~lib/builtins/abort unreachable unreachable end unreachable end local.get $0 i32.load local.set $4 local.get $1 local.get $2 i32.shl local.set $5 local.get $4 local.get $5 call $~lib/rt/tlsf/__realloc local.set $6 local.get $6 local.get $3 i32.add i32.const 0 local.get $5 local.get $3 i32.sub call $~lib/memory/memory.fill local.get $6 local.get $4 i32.ne if local.get $0 local.get $6 call $~lib/rt/purerc/__retain i32.store local.get $0 local.get $6 i32.store offset=4 end local.get $0 local.get $5 i32.store offset=8 end local.get $0 call $~lib/rt/purerc/__release ) (func $~lib/array/Array#push (; 30 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32) (local $2 i32) (local $3 i32) local.get $0 i32.load offset=12 local.set $2 local.get $2 i32.const 1 i32.add local.set $3 local.get $0 local.get $3 i32.const 2 call $~lib/array/ensureSize local.get $0 i32.load offset=4 local.get $2 i32.const 2 i32.shl i32.add local.get $1 i32.store local.get $0 local.get $3 i32.store offset=12 local.get $3 ) (func $~lib/array/Array#pop (; 31 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32) (local $1 i32) (local $2 i32) local.get $0 i32.load offset=12 local.set $1 local.get $1 i32.const 1 i32.lt_s if i32.const 0 i32.const 184 i32.const 250 i32.const 20 call $~lib/builtins/abort unreachable end local.get $0 i32.load offset=4 local.get $1 i32.const 1 i32.sub local.tee $1 i32.const 2 i32.shl i32.add i32.load local.set $2 local.get $0 local.get $1 i32.store offset=12 local.get $2 ) (func $~lib/array/Array<~lib/string/String>#constructor (; 32 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32) (local $2 i32) local.get $0 if (result i32) local.get $0 else i32.const 16 i32.const 18 call $~lib/rt/tlsf/__alloc call $~lib/rt/purerc/__retain end local.get $1 i32.const 2 call $~lib/arraybuffer/ArrayBufferView#constructor local.tee $2 local.set $0 local.get $0 i32.const 0 i32.store offset=12 local.get $1 if local.get $2 call $~lib/rt/purerc/__release block i32.const 0 i32.const 184 i32.const 56 i32.const 20 call $~lib/builtins/abort unreachable unreachable end unreachable end local.get $0 local.get $1 i32.store offset=12 local.get $0 ) (func $~lib/rt/purerc/__retainRelease (; 33 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32) (local $2 i32) local.get $0 local.get $1 i32.ne if global.get $~lib/builtins/HEAP_BASE local.set $2 local.get $0 local.get $2 i32.gt_u if local.get $0 i32.const 16 i32.sub call $~lib/rt/purerc/increment end local.get $1 local.get $2 i32.gt_u if local.get $1 i32.const 16 i32.sub call $~lib/rt/purerc/decrement end end local.get $0 ) (func $~lib/array/Array<~lib/string/String>#push (; 34 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32) (local $2 i32) (local $3 i32) (local $4 i32) local.get $1 call $~lib/rt/purerc/__retain drop local.get $0 i32.load offset=12 local.set $2 local.get $2 i32.const 1 i32.add local.set $3 local.get $0 local.get $3 i32.const 2 call $~lib/array/ensureSize local.get $0 i32.load offset=4 local.get $2 i32.const 2 i32.shl i32.add local.set $4 local.get $4 local.get $1 local.get $4 i32.load call $~lib/rt/purerc/__retainRelease i32.store local.get $0 local.get $3 i32.store offset=12 local.get $1 call $~lib/rt/purerc/__release local.get $3 ) (func $~lib/string/String#get:length (; 35 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32) local.get $0 i32.const 16 i32.sub i32.load offset=12 i32.const 1 i32.shr_u ) (func $~lib/string/String#concat (; 36 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32) (local $2 i32) (local $3 i32) (local $4 i32) (local $5 i32) (local $6 i32) local.get $1 call $~lib/rt/purerc/__retain drop local.get $1 i32.const 0 i32.eq if i32.const 296 local.get $1 call $~lib/rt/purerc/__retainRelease local.set $1 end local.get $0 call $~lib/string/String#get:length i32.const 1 i32.shl local.set $2 local.get $1 call $~lib/string/String#get:length i32.const 1 i32.shl local.set $3 local.get $2 local.get $3 i32.add local.set $4 local.get $4 i32.const 0 i32.eq if i32.const 232 call $~lib/rt/purerc/__retain local.set $5 local.get $1 call $~lib/rt/purerc/__release local.get $5 return end local.get $4 i32.const 16 call $~lib/rt/tlsf/__alloc local.set $6 local.get $6 local.get $0 local.get $2 call $~lib/memory/memory.copy local.get $6 local.get $2 i32.add local.get $1 local.get $3 call $~lib/memory/memory.copy local.get $6 call $~lib/rt/purerc/__retain local.set $5 local.get $1 call $~lib/rt/purerc/__release local.get $5 ) (func $~lib/string/String.__concat (; 37 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32) (local $2 i32) (local $3 i32) local.get $0 call $~lib/rt/purerc/__retain drop local.get $1 call $~lib/rt/purerc/__retain drop local.get $0 i32.const 296 local.get $0 i32.const 0 i32.ne select local.get $1 call $~lib/string/String#concat local.tee $2 call $~lib/rt/purerc/__retain local.set $3 local.get $2 call $~lib/rt/purerc/__release local.get $0 call $~lib/rt/purerc/__release local.get $1 call $~lib/rt/purerc/__release local.get $3 ) (func $~lib/rt/purerc/markGray (; 38 ;) (type $FUNCSIG$vi) (param $0 i32) (local $1 i32) local.get $0 i32.load offset=4 local.set $1 local.get $1 i32.const 1879048192 i32.and i32.const 268435456 i32.ne if local.get $0 local.get $1 i32.const 1879048192 i32.const -1 i32.xor i32.and i32.const 268435456 i32.or i32.store offset=4 local.get $0 i32.const 16 i32.add i32.const 2 call $~lib/builtins/__visit_members end ) (func $~lib/rt/purerc/scanBlack (; 39 ;) (type $FUNCSIG$vi) (param $0 i32) local.get $0 local.get $0 i32.load offset=4 i32.const 1879048192 i32.const -1 i32.xor i32.and i32.const 0 i32.or i32.store offset=4 local.get $0 i32.const 16 i32.add i32.const 4 call $~lib/builtins/__visit_members ) (func $~lib/rt/purerc/scan (; 40 ;) (type $FUNCSIG$vi) (param $0 i32) (local $1 i32) local.get $0 i32.load offset=4 local.set $1 local.get $1 i32.const 1879048192 i32.and i32.const 268435456 i32.eq if local.get $1 i32.const 268435455 i32.and i32.const 0 i32.gt_u if local.get $0 call $~lib/rt/purerc/scanBlack else local.get $0 local.get $1 i32.const 1879048192 i32.const -1 i32.xor i32.and i32.const 536870912 i32.or i32.store offset=4 local.get $0 i32.const 16 i32.add i32.const 3 call $~lib/builtins/__visit_members end end ) (func $~lib/rt/purerc/collectWhite (; 41 ;) (type $FUNCSIG$vi) (param $0 i32) (local $1 i32) local.get $0 i32.load offset=4 local.set $1 local.get $1 i32.const 1879048192 i32.and i32.const 536870912 i32.eq if (result i32) local.get $1 i32.const -2147483648 i32.and i32.eqz else i32.const 0 end if local.get $0 i32.const 16 i32.add i32.const 5 call $~lib/builtins/__visit_members end global.get $~lib/rt/tlsf/ROOT local.get $0 call $~lib/rt/tlsf/freeBlock ) (func $~lib/rt/purerc/__collect (; 42 ;) (type $FUNCSIG$v) (local $0 i32) (local $1 i32) (local $2 i32) (local $3 i32) (local $4 i32) (local $5 i32) global.get $~lib/rt/purerc/ROOTS local.set $0 local.get $0 local.set $1 block $break|0 block local.get $1 local.set $2 global.get $~lib/rt/purerc/CUR local.set $3 end loop $repeat|0 local.get $2 local.get $3 i32.lt_u i32.eqz br_if $break|0 local.get $2 i32.load local.set $4 local.get $4 i32.load offset=4 local.set $5 local.get $5 i32.const 1879048192 i32.and i32.const 805306368 i32.eq if (result i32) local.get $5 i32.const 268435455 i32.and i32.const 0 i32.gt_u else i32.const 0 end if local.get $4 call $~lib/rt/purerc/markGray local.get $1 local.get $4 i32.store local.get $1 i32.const 4 i32.add local.set $1 else local.get $5 i32.const 1879048192 i32.and i32.const 0 i32.eq if (result i32) local.get $5 i32.const 268435455 i32.and i32.eqz else i32.const 0 end if global.get $~lib/rt/tlsf/ROOT local.get $4 call $~lib/rt/tlsf/freeBlock else local.get $4 local.get $5 i32.const -2147483648 i32.const -1 i32.xor i32.and i32.store offset=4 end end local.get $2 i32.const 4 i32.add local.set $2 br $repeat|0 unreachable end unreachable end local.get $1 global.set $~lib/rt/purerc/CUR block $break|1 local.get $0 local.set $5 loop $repeat|1 local.get $5 local.get $1 i32.lt_u i32.eqz br_if $break|1 local.get $5 i32.load call $~lib/rt/purerc/scan local.get $5 i32.const 4 i32.add local.set $5 br $repeat|1 unreachable end unreachable end block $break|2 local.get $0 local.set $5 loop $repeat|2 local.get $5 local.get $1 i32.lt_u i32.eqz br_if $break|2 local.get $5 i32.load local.set $4 local.get $4 local.get $4 i32.load offset=4 i32.const -2147483648 i32.const -1 i32.xor i32.and i32.store offset=4 local.get $4 call $~lib/rt/purerc/collectWhite local.get $5 i32.const 4 i32.add local.set $5 br $repeat|2 unreachable end unreachable end local.get $0 global.set $~lib/rt/purerc/CUR ) (func $start:retain-release-sanity (; 43 ;) (type $FUNCSIG$v) (local $0 i32) (local $1 i32) (local $2 i32) (local $3 i32) block i32.const 0 i32.const 3 call $~lib/array/Array#constructor local.tee $0 call $~lib/rt/purerc/__retain local.set $1 local.get $1 i32.const 123 call $~lib/array/Array#push drop local.get $1 i32.const 123 call $~lib/array/Array#push drop local.get $1 call $~lib/array/Array#pop drop local.get $0 call $~lib/rt/purerc/__release local.get $1 call $~lib/rt/purerc/__release end block $break|0 i32.const 0 local.set $1 loop $repeat|0 local.get $1 i32.const 10 i32.lt_s i32.eqz br_if $break|0 i32.const 0 i32.const 0 call $~lib/array/Array<~lib/string/String>#constructor local.tee $0 call $~lib/rt/purerc/__retain local.set $2 block $break|1 i32.const 0 local.set $3 loop $repeat|1 local.get $3 i32.const 10 i32.lt_s i32.eqz br_if $break|1 local.get $2 i32.const 232 call $~lib/array/Array<~lib/string/String>#push drop local.get $3 i32.const 1 i32.add local.set $3 br $repeat|1 unreachable end unreachable end local.get $0 call $~lib/rt/purerc/__release local.get $2 call $~lib/rt/purerc/__release local.get $1 i32.const 1 i32.add local.set $1 br $repeat|0 unreachable end unreachable end block i32.const 248 call $~lib/rt/purerc/__retain local.set $2 local.get $2 i32.const 272 call $~lib/string/String.__concat local.tee $0 call $~lib/rt/purerc/__retain local.set $1 local.get $1 i32.const 320 call $~lib/string/String.__concat local.tee $3 drop local.get $2 call $~lib/rt/purerc/__release local.get $0 call $~lib/rt/purerc/__release local.get $1 call $~lib/rt/purerc/__release local.get $3 call $~lib/rt/purerc/__release end call $~lib/rt/purerc/__collect ) (func $retain-release-sanity/main (; 44 ;) (type $FUNCSIG$v) global.get $~lib/started i32.eqz if call $start i32.const 1 global.set $~lib/started end ) (func $start (; 45 ;) (type $FUNCSIG$v) call $start:retain-release-sanity ) (func $~lib/rt/purerc/__visit (; 46 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32) (local $2 i32) (local $3 i32) local.get $0 global.get $~lib/builtins/HEAP_BASE i32.lt_u if return end local.get $0 i32.const 16 i32.sub local.set $2 block $break|0 block $case5|0 block $case4|0 block $case3|0 block $case2|0 block $case1|0 block $case0|0 local.get $1 local.set $3 local.get $3 i32.const 1 i32.eq br_if $case0|0 local.get $3 i32.const 2 i32.eq br_if $case1|0 local.get $3 i32.const 3 i32.eq br_if $case2|0 local.get $3 i32.const 4 i32.eq br_if $case3|0 local.get $3 i32.const 5 i32.eq br_if $case4|0 br $case5|0 end block local.get $2 call $~lib/rt/purerc/decrement br $break|0 unreachable end unreachable end block local.get $2 i32.load offset=4 i32.const 268435455 i32.and i32.const 0 i32.gt_u i32.eqz if i32.const 0 i32.const 128 i32.const 74 i32.const 17 call $~lib/builtins/abort unreachable end local.get $2 local.get $2 i32.load offset=4 i32.const 1 i32.sub i32.store offset=4 local.get $2 call $~lib/rt/purerc/markGray br $break|0 unreachable end unreachable end block local.get $2 call $~lib/rt/purerc/scan br $break|0 unreachable end unreachable end block local.get $2 i32.load offset=4 local.set $3 local.get $3 i32.const 268435455 i32.const -1 i32.xor i32.and local.get $3 i32.const 1 i32.add i32.const 268435455 i32.const -1 i32.xor i32.and i32.eq i32.eqz if i32.const 0 i32.const 128 i32.const 85 i32.const 6 call $~lib/builtins/abort unreachable end local.get $2 local.get $3 i32.const 1 i32.add i32.store offset=4 local.get $3 i32.const 1879048192 i32.and i32.const 0 i32.ne if local.get $2 call $~lib/rt/purerc/scanBlack end br $break|0 unreachable end unreachable end block local.get $2 call $~lib/rt/purerc/collectWhite br $break|0 unreachable end unreachable end i32.const 0 i32.eqz if i32.const 0 i32.const 128 i32.const 96 i32.const 24 call $~lib/builtins/abort unreachable end end ) (func $~lib/array/Array#__traverse (; 47 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32) local.get $0 i32.load local.get $1 call $~lib/rt/purerc/__visit ) (func $~lib/array/Array<~lib/string/String>#__traverse (; 48 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32) (local $2 i32) (local $3 i32) (local $4 i32) local.get $0 i32.load local.get $1 call $~lib/rt/purerc/__visit local.get $0 i32.load offset=4 local.set $2 local.get $2 local.get $0 i32.load offset=8 i32.add local.set $3 block $break|0 loop $continue|0 local.get $2 local.get $3 i32.lt_u if local.get $2 i32.load local.set $4 local.get $4 if local.get $4 local.get $1 call $~lib/rt/purerc/__visit local.get $4 local.get $1 call $~lib/builtins/__visit_members end local.get $2 i32.const 4 i32.add local.set $2 br $continue|0 end end end ) (func $~lib/builtins/__visit_members (; 49 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32) (local $2 i32) block $invalid block $~lib/array/Array<~lib/string/String> block $~lib/array/Array block $~lib/string/String block $~lib/arraybuffer/ArrayBuffer block $~lib/arraybuffer/ArrayBufferView block $~lib/number/F64 block $~lib/number/F32 block $~lib/number/Bool block $~lib/number/Usize block $~lib/number/U64 block $~lib/number/U32 block $~lib/number/U16 block $~lib/number/U8 block $~lib/number/Isize block $~lib/number/I64 block $~lib/number/I32 block $~lib/number/I16 block $~lib/number/I8 local.get $0 i32.const 8 i32.sub i32.load br_table $invalid $~lib/number/I8 $~lib/number/I16 $~lib/number/I32 $~lib/number/I64 $~lib/number/Isize $~lib/number/U8 $~lib/number/U16 $~lib/number/U32 $~lib/number/U64 $~lib/number/Usize $~lib/number/Bool $~lib/number/F32 $~lib/number/F64 $~lib/arraybuffer/ArrayBufferView $~lib/arraybuffer/ArrayBuffer $~lib/string/String $~lib/array/Array $~lib/array/Array<~lib/string/String> $invalid end return end return end return end return end return end return end return end return end return end return end return end return end return end local.get $0 i32.load local.tee $2 if local.get $2 local.get $1 call $~lib/rt/purerc/__visit local.get $2 local.get $1 call $~lib/builtins/__visit_members end return end return end return end local.get $0 local.get $1 call $~lib/array/Array#__traverse return end local.get $0 local.get $1 call $~lib/array/Array<~lib/string/String>#__traverse return end unreachable ) (func $null (; 50 ;) (type $FUNCSIG$v) ) )