6114 lines
128 KiB
Plaintext
Raw Normal View History

2018-02-12 19:17:50 +01:00
(module
(type $iiiiv (func (param i32 i32 i32 i32)))
(type $i (func (result i32)))
(type $ii (func (param i32) (result i32)))
2018-02-12 19:17:50 +01:00
(type $iiiv (func (param i32 i32 i32)))
(type $iiii (func (param i32 i32 i32) (result i32)))
(type $iiv (func (param i32 i32)))
2018-02-12 19:17:50 +01:00
(type $iii (func (param i32 i32) (result i32)))
(type $iv (func (param i32)))
(type $v (func))
2018-06-09 02:27:10 +02:00
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
(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))
2018-04-03 23:56:48 +02:00
(global $~lib/allocator/tlsf/SL_BITS i32 (i32.const 5))
(global $~lib/allocator/tlsf/SL_SIZE i32 (i32.const 32))
(global $~lib/allocator/tlsf/SB_BITS i32 (i32.const 8))
(global $~lib/allocator/tlsf/SB_SIZE i32 (i32.const 256))
(global $~lib/allocator/tlsf/FL_BITS i32 (i32.const 22))
(global $~lib/allocator/tlsf/FREE i32 (i32.const 1))
(global $~lib/allocator/tlsf/LEFT_FREE i32 (i32.const 2))
(global $~lib/allocator/tlsf/TAGS i32 (i32.const 3))
(global $~lib/allocator/tlsf/ROOT (mut i32) (i32.const 0))
2018-06-09 02:27:10 +02:00
(global $HEAP_BASE i32 (i32.const 56))
2018-02-12 19:17:50 +01:00
(memory $0 1)
2018-06-09 02:27:10 +02:00
(data (i32.const 8) "\16\00\00\00~\00l\00i\00b\00/\00a\00l\00l\00o\00c\00a\00t\00o\00r\00/\00t\00l\00s\00f\00.\00t\00s\00")
(export "memory.size" (func $~lib/memory/memory.size))
(export "memory.grow" (func $~lib/memory/memory.grow))
(export "memory.fill" (func $~lib/memory/memory.fill))
(export "memory.copy" (func $~lib/memory/memory.copy))
(export "memory.compare" (func $~lib/memory/memory.compare))
(export "memory.allocate" (func $~lib/memory/memory.allocate))
(export "memory.free" (func $~lib/memory/memory.free))
(export "memory.reset" (func $~lib/memory/memory.reset))
2018-02-12 19:17:50 +01:00
(export "memory" (memory $0))
(start $start)
(func $~lib/memory/memory.size (; 1 ;) (type $i) (result i32)
;;@ ~lib/memory.ts:4:25
(current_memory)
)
(func $~lib/memory/memory.grow (; 2 ;) (type $ii) (param $0 i32) (result i32)
;;@ ~lib/memory.ts:8:30
(grow_memory
;;@ ~lib/memory.ts:8:25
(get_local $0)
)
)
(func $~lib/memory/memory.fill (; 3 ;) (type $iiiv) (param $0 i32) (param $1 i32) (param $2 i32)
(local $3 i32)
(local $4 i32)
(local $5 i64)
;;@ ~lib/memory.ts:17:4
(if
;;@ ~lib/memory.ts:17:8
(i32.eqz
;;@ ~lib/memory.ts:17:9
(get_local $2)
)
;;@ ~lib/memory.ts:17:12
(return)
)
;;@ ~lib/memory.ts:18:4
(i32.store8
;;@ ~lib/memory.ts:18:14
(get_local $0)
;;@ ~lib/memory.ts:18:20
(get_local $1)
)
;;@ ~lib/memory.ts:19:4
(i32.store8
;;@ ~lib/memory.ts:19:14
(i32.sub
(i32.add
(get_local $0)
;;@ ~lib/memory.ts:19:21
(get_local $2)
)
;;@ ~lib/memory.ts:19:25
(i32.const 1)
)
;;@ ~lib/memory.ts:19:28
(get_local $1)
)
;;@ ~lib/memory.ts:20:4
(if
;;@ ~lib/memory.ts:20:8
(i32.le_u
(get_local $2)
;;@ ~lib/memory.ts:20:13
(i32.const 2)
)
;;@ ~lib/memory.ts:20:16
(return)
)
;;@ ~lib/memory.ts:22:4
(i32.store8
;;@ ~lib/memory.ts:22:14
(i32.add
(get_local $0)
;;@ ~lib/memory.ts:22:21
(i32.const 1)
)
;;@ ~lib/memory.ts:22:24
(get_local $1)
)
;;@ ~lib/memory.ts:23:4
(i32.store8
;;@ ~lib/memory.ts:23:14
(i32.add
(get_local $0)
;;@ ~lib/memory.ts:23:21
(i32.const 2)
)
;;@ ~lib/memory.ts:23:24
(get_local $1)
)
;;@ ~lib/memory.ts:24:4
(i32.store8
;;@ ~lib/memory.ts:24:14
(i32.sub
(i32.add
(get_local $0)
;;@ ~lib/memory.ts:24:21
(get_local $2)
)
;;@ ~lib/memory.ts:24:25
(i32.const 2)
)
;;@ ~lib/memory.ts:24:28
(get_local $1)
)
;;@ ~lib/memory.ts:25:4
(i32.store8
;;@ ~lib/memory.ts:25:14
(i32.sub
(i32.add
(get_local $0)
;;@ ~lib/memory.ts:25:21
(get_local $2)
)
;;@ ~lib/memory.ts:25:25
(i32.const 3)
)
;;@ ~lib/memory.ts:25:28
(get_local $1)
)
;;@ ~lib/memory.ts:26:4
(if
;;@ ~lib/memory.ts:26:8
(i32.le_u
(get_local $2)
;;@ ~lib/memory.ts:26:13
(i32.const 6)
)
;;@ ~lib/memory.ts:26:16
(return)
)
;;@ ~lib/memory.ts:27:4
(i32.store8
;;@ ~lib/memory.ts:27:14
(i32.add
(get_local $0)
;;@ ~lib/memory.ts:27:21
(i32.const 3)
)
;;@ ~lib/memory.ts:27:24
(get_local $1)
)
;;@ ~lib/memory.ts:28:4
(i32.store8
;;@ ~lib/memory.ts:28:14
(i32.sub
(i32.add
(get_local $0)
;;@ ~lib/memory.ts:28:21
(get_local $2)
)
;;@ ~lib/memory.ts:28:25
(i32.const 4)
)
;;@ ~lib/memory.ts:28:28
(get_local $1)
)
;;@ ~lib/memory.ts:29:4
(if
;;@ ~lib/memory.ts:29:8
(i32.le_u
(get_local $2)
;;@ ~lib/memory.ts:29:13
(i32.const 8)
)
;;@ ~lib/memory.ts:29:16
(return)
)
;;@ ~lib/memory.ts:32:4
(set_local $3
;;@ ~lib/memory.ts:32:19
(i32.and
(i32.sub
(i32.const 0)
;;@ ~lib/memory.ts:32:20
(get_local $0)
)
;;@ ~lib/memory.ts:32:27
(i32.const 3)
)
)
;;@ ~lib/memory.ts:33:4
(set_local $0
(i32.add
(get_local $0)
;;@ ~lib/memory.ts:33:12
(get_local $3)
)
)
;;@ ~lib/memory.ts:34:4
(set_local $2
(i32.sub
(get_local $2)
;;@ ~lib/memory.ts:34:9
(get_local $3)
)
)
;;@ ~lib/memory.ts:35:4
(set_local $2
(i32.and
(get_local $2)
;;@ ~lib/memory.ts:35:9
(i32.const -4)
)
)
;;@ ~lib/memory.ts:37:4
(set_local $4
;;@ ~lib/memory.ts:37:19
(i32.mul
(i32.div_u
(i32.const -1)
;;@ ~lib/memory.ts:37:29
(i32.const 255)
)
(i32.and
;;@ ~lib/memory.ts:37:35
(get_local $1)
(i32.const 255)
)
)
)
;;@ ~lib/memory.ts:40:4
(i32.store
;;@ ~lib/memory.ts:40:15
(get_local $0)
;;@ ~lib/memory.ts:40:21
(get_local $4)
)
;;@ ~lib/memory.ts:41:4
(i32.store
;;@ ~lib/memory.ts:41:15
(i32.sub
(i32.add
(get_local $0)
;;@ ~lib/memory.ts:41:22
(get_local $2)
)
;;@ ~lib/memory.ts:41:26
(i32.const 4)
)
;;@ ~lib/memory.ts:41:29
(get_local $4)
)
;;@ ~lib/memory.ts:42:4
(if
;;@ ~lib/memory.ts:42:8
(i32.le_u
(get_local $2)
;;@ ~lib/memory.ts:42:13
(i32.const 8)
)
;;@ ~lib/memory.ts:42:16
(return)
)
;;@ ~lib/memory.ts:43:4
(i32.store
;;@ ~lib/memory.ts:43:15
(i32.add
(get_local $0)
;;@ ~lib/memory.ts:43:22
(i32.const 4)
)
;;@ ~lib/memory.ts:43:25
(get_local $4)
)
;;@ ~lib/memory.ts:44:4
(i32.store
;;@ ~lib/memory.ts:44:15
(i32.add
(get_local $0)
;;@ ~lib/memory.ts:44:22
(i32.const 8)
)
;;@ ~lib/memory.ts:44:25
(get_local $4)
)
;;@ ~lib/memory.ts:45:4
(i32.store
;;@ ~lib/memory.ts:45:15
(i32.sub
(i32.add
(get_local $0)
;;@ ~lib/memory.ts:45:22
(get_local $2)
)
;;@ ~lib/memory.ts:45:26
(i32.const 12)
)
;;@ ~lib/memory.ts:45:30
(get_local $4)
)
;;@ ~lib/memory.ts:46:4
(i32.store
;;@ ~lib/memory.ts:46:15
(i32.sub
(i32.add
(get_local $0)
;;@ ~lib/memory.ts:46:22
(get_local $2)
)
;;@ ~lib/memory.ts:46:26
(i32.const 8)
)
;;@ ~lib/memory.ts:46:29
(get_local $4)
)
;;@ ~lib/memory.ts:47:4
(if
;;@ ~lib/memory.ts:47:8
(i32.le_u
(get_local $2)
;;@ ~lib/memory.ts:47:13
(i32.const 24)
)
;;@ ~lib/memory.ts:47:17
(return)
)
;;@ ~lib/memory.ts:48:4
(i32.store
;;@ ~lib/memory.ts:48:15
(i32.add
(get_local $0)
;;@ ~lib/memory.ts:48:22
(i32.const 12)
)
;;@ ~lib/memory.ts:48:26
(get_local $4)
)
;;@ ~lib/memory.ts:49:4
(i32.store
;;@ ~lib/memory.ts:49:15
(i32.add
(get_local $0)
;;@ ~lib/memory.ts:49:22
(i32.const 16)
)
;;@ ~lib/memory.ts:49:26
(get_local $4)
)
;;@ ~lib/memory.ts:50:4
(i32.store
;;@ ~lib/memory.ts:50:15
(i32.add
(get_local $0)
;;@ ~lib/memory.ts:50:22
(i32.const 20)
)
;;@ ~lib/memory.ts:50:26
(get_local $4)
)
;;@ ~lib/memory.ts:51:4
(i32.store
;;@ ~lib/memory.ts:51:15
(i32.add
(get_local $0)
;;@ ~lib/memory.ts:51:22
(i32.const 24)
)
;;@ ~lib/memory.ts:51:26
(get_local $4)
)
;;@ ~lib/memory.ts:52:4
(i32.store
;;@ ~lib/memory.ts:52:15
(i32.sub
(i32.add
(get_local $0)
;;@ ~lib/memory.ts:52:22
(get_local $2)
)
;;@ ~lib/memory.ts:52:26
(i32.const 28)
)
;;@ ~lib/memory.ts:52:30
(get_local $4)
)
;;@ ~lib/memory.ts:53:4
(i32.store
;;@ ~lib/memory.ts:53:15
(i32.sub
(i32.add
(get_local $0)
;;@ ~lib/memory.ts:53:22
(get_local $2)
)
;;@ ~lib/memory.ts:53:26
(i32.const 24)
)
;;@ ~lib/memory.ts:53:30
(get_local $4)
)
;;@ ~lib/memory.ts:54:4
(i32.store
;;@ ~lib/memory.ts:54:15
(i32.sub
(i32.add
(get_local $0)
;;@ ~lib/memory.ts:54:22
(get_local $2)
)
;;@ ~lib/memory.ts:54:26
(i32.const 20)
)
;;@ ~lib/memory.ts:54:30
(get_local $4)
)
;;@ ~lib/memory.ts:55:4
(i32.store
;;@ ~lib/memory.ts:55:15
(i32.sub
(i32.add
(get_local $0)
;;@ ~lib/memory.ts:55:22
(get_local $2)
)
;;@ ~lib/memory.ts:55:26
(i32.const 16)
)
;;@ ~lib/memory.ts:55:30
(get_local $4)
)
;;@ ~lib/memory.ts:58:4
(set_local $3
;;@ ~lib/memory.ts:58:8
(i32.add
(i32.const 24)
;;@ ~lib/memory.ts:58:13
(i32.and
;;@ ~lib/memory.ts:58:14
(get_local $0)
;;@ ~lib/memory.ts:58:21
(i32.const 4)
)
)
)
;;@ ~lib/memory.ts:59:4
(set_local $0
(i32.add
(get_local $0)
;;@ ~lib/memory.ts:59:12
(get_local $3)
)
)
;;@ ~lib/memory.ts:60:4
(set_local $2
(i32.sub
(get_local $2)
;;@ ~lib/memory.ts:60:9
(get_local $3)
)
)
;;@ ~lib/memory.ts:63:4
(set_local $5
;;@ ~lib/memory.ts:63:19
(i64.or
(i64.extend_u/i32
(get_local $4)
)
;;@ ~lib/memory.ts:63:30
(i64.shl
;;@ ~lib/memory.ts:63:31
(i64.extend_u/i32
(get_local $4)
)
;;@ ~lib/memory.ts:63:43
(i64.const 32)
)
)
)
;;@ ~lib/memory.ts:64:4
(block $break|0
(loop $continue|0
(if
;;@ ~lib/memory.ts:64:11
(i32.ge_u
(get_local $2)
;;@ ~lib/memory.ts:64:16
(i32.const 32)
)
(block
(block
;;@ ~lib/memory.ts:65:6
(i64.store
;;@ ~lib/memory.ts:65:17
(get_local $0)
;;@ ~lib/memory.ts:65:23
(get_local $5)
)
;;@ ~lib/memory.ts:66:6
(i64.store
;;@ ~lib/memory.ts:66:17
(i32.add
(get_local $0)
;;@ ~lib/memory.ts:66:24
(i32.const 8)
)
;;@ ~lib/memory.ts:66:27
(get_local $5)
)
;;@ ~lib/memory.ts:67:6
(i64.store
;;@ ~lib/memory.ts:67:17
(i32.add
(get_local $0)
;;@ ~lib/memory.ts:67:24
(i32.const 16)
)
;;@ ~lib/memory.ts:67:28
(get_local $5)
)
;;@ ~lib/memory.ts:68:6
(i64.store
;;@ ~lib/memory.ts:68:17
(i32.add
(get_local $0)
;;@ ~lib/memory.ts:68:24
(i32.const 24)
)
;;@ ~lib/memory.ts:68:28
(get_local $5)
)
;;@ ~lib/memory.ts:69:6
(set_local $2
(i32.sub
(get_local $2)
;;@ ~lib/memory.ts:69:11
(i32.const 32)
)
)
;;@ ~lib/memory.ts:70:6
(set_local $0
(i32.add
(get_local $0)
;;@ ~lib/memory.ts:70:14
(i32.const 32)
)
)
)
(br $continue|0)
)
)
)
)
)
(func $~lib/memory/memcpy (; 4 ;) (type $iiiv) (param $0 i32) (param $1 i32) (param $2 i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
;;@ ~lib/memory.ts:164:2
(block $break|0
(loop $continue|0
(if
;;@ ~lib/memory.ts:164:9
(if (result i32)
(get_local $2)
;;@ ~lib/memory.ts:164:14
(i32.and
;;@ ~lib/memory.ts:164:15
(get_local $1)
;;@ ~lib/memory.ts:164:21
(i32.const 3)
)
(get_local $2)
)
(block
(block
;;@ ~lib/memory.ts:165:4
(i32.store8
;;@ ~lib/memory.ts:165:14
(block (result i32)
(set_local $5
(get_local $0)
)
(set_local $0
(i32.add
(get_local $5)
(i32.const 1)
)
)
(get_local $5)
)
;;@ ~lib/memory.ts:165:22
(i32.load8_u
;;@ ~lib/memory.ts:165:31
(block (result i32)
(set_local $5
(get_local $1)
)
(set_local $1
(i32.add
(get_local $5)
(i32.const 1)
)
)
(get_local $5)
)
)
)
;;@ ~lib/memory.ts:166:4
(set_local $2
(i32.sub
(get_local $2)
(i32.const 1)
)
)
)
(br $continue|0)
)
)
)
)
;;@ ~lib/memory.ts:170:2
(if
;;@ ~lib/memory.ts:170:6
(i32.eq
(i32.and
;;@ ~lib/memory.ts:170:7
(get_local $0)
;;@ ~lib/memory.ts:170:14
(i32.const 3)
)
;;@ ~lib/memory.ts:170:20
(i32.const 0)
)
;;@ ~lib/memory.ts:170:23
(block
(block $break|1
(loop $continue|1
(if
;;@ ~lib/memory.ts:171:11
(i32.ge_u
(get_local $2)
;;@ ~lib/memory.ts:171:16
(i32.const 16)
)
(block
(block
;;@ ~lib/memory.ts:172:6
(i32.store
;;@ ~lib/memory.ts:172:17
(get_local $0)
;;@ ~lib/memory.ts:172:28
(i32.load
;;@ ~lib/memory.ts:172:38
(get_local $1)
)
)
;;@ ~lib/memory.ts:173:6
(i32.store
;;@ ~lib/memory.ts:173:17
(i32.add
(get_local $0)
;;@ ~lib/memory.ts:173:25
(i32.const 4)
)
;;@ ~lib/memory.ts:173:28
(i32.load
;;@ ~lib/memory.ts:173:38
(i32.add
(get_local $1)
;;@ ~lib/memory.ts:173:45
(i32.const 4)
)
)
)
;;@ ~lib/memory.ts:174:6
(i32.store
;;@ ~lib/memory.ts:174:17
(i32.add
(get_local $0)
;;@ ~lib/memory.ts:174:25
(i32.const 8)
)
;;@ ~lib/memory.ts:174:28
(i32.load
;;@ ~lib/memory.ts:174:38
(i32.add
(get_local $1)
;;@ ~lib/memory.ts:174:45
(i32.const 8)
)
)
)
;;@ ~lib/memory.ts:175:6
(i32.store
;;@ ~lib/memory.ts:175:17
(i32.add
(get_local $0)
;;@ ~lib/memory.ts:175:24
(i32.const 12)
)
;;@ ~lib/memory.ts:175:28
(i32.load
;;@ ~lib/memory.ts:175:38
(i32.add
(get_local $1)
;;@ ~lib/memory.ts:175:44
(i32.const 12)
)
)
)
;;@ ~lib/memory.ts:176:6
(set_local $1
(i32.add
(get_local $1)
;;@ ~lib/memory.ts:176:13
(i32.const 16)
)
)
;;@ ~lib/memory.ts:176:17
(set_local $0
(i32.add
(get_local $0)
;;@ ~lib/memory.ts:176:25
(i32.const 16)
)
)
;;@ ~lib/memory.ts:176:29
(set_local $2
(i32.sub
(get_local $2)
;;@ ~lib/memory.ts:176:34
(i32.const 16)
)
)
)
(br $continue|1)
)
)
)
)
;;@ ~lib/memory.ts:178:4
(if
;;@ ~lib/memory.ts:178:8
(i32.and
(get_local $2)
;;@ ~lib/memory.ts:178:12
(i32.const 8)
)
;;@ ~lib/memory.ts:178:15
(block
;;@ ~lib/memory.ts:179:6
(i32.store
;;@ ~lib/memory.ts:179:17
(get_local $0)
;;@ ~lib/memory.ts:179:27
(i32.load
;;@ ~lib/memory.ts:179:37
(get_local $1)
)
)
;;@ ~lib/memory.ts:180:6
(i32.store
;;@ ~lib/memory.ts:180:17
(i32.add
(get_local $0)
;;@ ~lib/memory.ts:180:24
(i32.const 4)
)
;;@ ~lib/memory.ts:180:27
(i32.load
;;@ ~lib/memory.ts:180:37
(i32.add
(get_local $1)
;;@ ~lib/memory.ts:180:43
(i32.const 4)
)
)
)
;;@ ~lib/memory.ts:181:6
(set_local $0
(i32.add
(get_local $0)
;;@ ~lib/memory.ts:181:14
(i32.const 8)
)
)
;;@ ~lib/memory.ts:181:17
(set_local $1
(i32.add
(get_local $1)
;;@ ~lib/memory.ts:181:24
(i32.const 8)
)
)
)
)
;;@ ~lib/memory.ts:183:4
(if
;;@ ~lib/memory.ts:183:8
(i32.and
(get_local $2)
;;@ ~lib/memory.ts:183:12
(i32.const 4)
)
;;@ ~lib/memory.ts:183:15
(block
;;@ ~lib/memory.ts:184:6
(i32.store
;;@ ~lib/memory.ts:184:17
(get_local $0)
;;@ ~lib/memory.ts:184:23
(i32.load
;;@ ~lib/memory.ts:184:33
(get_local $1)
)
)
;;@ ~lib/memory.ts:185:6
(set_local $0
(i32.add
(get_local $0)
;;@ ~lib/memory.ts:185:14
(i32.const 4)
)
)
;;@ ~lib/memory.ts:185:17
(set_local $1
(i32.add
(get_local $1)
;;@ ~lib/memory.ts:185:24
(i32.const 4)
)
)
)
)
;;@ ~lib/memory.ts:187:4
(if
;;@ ~lib/memory.ts:187:8
(i32.and
(get_local $2)
;;@ ~lib/memory.ts:187:12
(i32.const 2)
)
;;@ ~lib/memory.ts:187:15
(block
;;@ ~lib/memory.ts:188:6
(i32.store16
;;@ ~lib/memory.ts:188:17
(get_local $0)
;;@ ~lib/memory.ts:188:23
(i32.load16_u
;;@ ~lib/memory.ts:188:33
(get_local $1)
)
)
;;@ ~lib/memory.ts:189:6
(set_local $0
(i32.add
(get_local $0)
;;@ ~lib/memory.ts:189:14
(i32.const 2)
)
)
;;@ ~lib/memory.ts:189:17
(set_local $1
(i32.add
(get_local $1)
;;@ ~lib/memory.ts:189:24
(i32.const 2)
)
)
)
)
;;@ ~lib/memory.ts:191:4
(if
;;@ ~lib/memory.ts:191:8
(i32.and
(get_local $2)
;;@ ~lib/memory.ts:191:12
(i32.const 1)
)
;;@ ~lib/memory.ts:191:15
(i32.store8
;;@ ~lib/memory.ts:192:16
(block (result i32)
(set_local $5
(get_local $0)
)
(set_local $0
(i32.add
(get_local $5)
(i32.const 1)
)
)
(get_local $5)
)
;;@ ~lib/memory.ts:192:24
(i32.load8_u
;;@ ~lib/memory.ts:192:33
(block (result i32)
(set_local $5
(get_local $1)
)
(set_local $1
(i32.add
(get_local $5)
(i32.const 1)
)
)
(get_local $5)
)
)
)
)
;;@ ~lib/memory.ts:194:4
(return)
)
)
;;@ ~lib/memory.ts:199:2
(if
;;@ ~lib/memory.ts:199:6
(i32.ge_u
(get_local $2)
;;@ ~lib/memory.ts:199:11
(i32.const 32)
)
;;@ ~lib/memory.ts:199:15
(block $break|2
(block $case2|2
(block $case1|2
(block $case0|2
(set_local $5
;;@ ~lib/memory.ts:200:12
(i32.and
(get_local $0)
;;@ ~lib/memory.ts:200:19
(i32.const 3)
)
)
(br_if $case0|2
(i32.eq
(get_local $5)
;;@ ~lib/memory.ts:202:11
(i32.const 1)
)
)
(br_if $case1|2
(i32.eq
(get_local $5)
;;@ ~lib/memory.ts:221:11
(i32.const 2)
)
)
(br_if $case2|2
(i32.eq
(get_local $5)
;;@ ~lib/memory.ts:239:11
(i32.const 3)
)
)
(br $break|2)
)
;;@ ~lib/memory.ts:202:14
(block
;;@ ~lib/memory.ts:203:8
(set_local $3
;;@ ~lib/memory.ts:203:12
(i32.load
;;@ ~lib/memory.ts:203:22
(get_local $1)
)
)
;;@ ~lib/memory.ts:204:8
(i32.store8
;;@ ~lib/memory.ts:204:18
(block (result i32)
(set_local $5
(get_local $0)
)
(set_local $0
(i32.add
(get_local $5)
(i32.const 1)
)
)
(get_local $5)
)
;;@ ~lib/memory.ts:204:26
(i32.load8_u
;;@ ~lib/memory.ts:204:35
(block (result i32)
(set_local $5
(get_local $1)
)
(set_local $1
(i32.add
(get_local $5)
(i32.const 1)
)
)
(get_local $5)
)
)
)
;;@ ~lib/memory.ts:205:8
(i32.store8
;;@ ~lib/memory.ts:205:18
(block (result i32)
(set_local $5
(get_local $0)
)
(set_local $0
(i32.add
(get_local $5)
(i32.const 1)
)
)
(get_local $5)
)
;;@ ~lib/memory.ts:205:26
(i32.load8_u
;;@ ~lib/memory.ts:205:35
(block (result i32)
(set_local $5
(get_local $1)
)
(set_local $1
(i32.add
(get_local $5)
(i32.const 1)
)
)
(get_local $5)
)
)
)
;;@ ~lib/memory.ts:206:8
(i32.store8
;;@ ~lib/memory.ts:206:18
(block (result i32)
(set_local $5
(get_local $0)
)
(set_local $0
(i32.add
(get_local $5)
(i32.const 1)
)
)
(get_local $5)
)
;;@ ~lib/memory.ts:206:26
(i32.load8_u
;;@ ~lib/memory.ts:206:35
(block (result i32)
(set_local $5
(get_local $1)
)
(set_local $1
(i32.add
(get_local $5)
(i32.const 1)
)
)
(get_local $5)
)
)
)
;;@ ~lib/memory.ts:207:8
(set_local $2
(i32.sub
(get_local $2)
;;@ ~lib/memory.ts:207:13
(i32.const 3)
)
)
;;@ ~lib/memory.ts:208:8
(block $break|3
(loop $continue|3
(if
;;@ ~lib/memory.ts:208:15
(i32.ge_u
(get_local $2)
;;@ ~lib/memory.ts:208:20
(i32.const 17)
)
(block
(block
;;@ ~lib/memory.ts:209:10
(set_local $4
;;@ ~lib/memory.ts:209:14
(i32.load
;;@ ~lib/memory.ts:209:24
(i32.add
(get_local $1)
;;@ ~lib/memory.ts:209:30
(i32.const 1)
)
)
)
;;@ ~lib/memory.ts:210:10
(i32.store
;;@ ~lib/memory.ts:210:21
(get_local $0)
;;@ ~lib/memory.ts:210:27
(i32.or
(i32.shr_u
(get_local $3)
;;@ ~lib/memory.ts:210:32
(i32.const 24)
)
;;@ ~lib/memory.ts:210:37
(i32.shl
(get_local $4)
;;@ ~lib/memory.ts:210:42
(i32.const 8)
)
)
)
;;@ ~lib/memory.ts:211:10
(set_local $3
;;@ ~lib/memory.ts:211:14
(i32.load
;;@ ~lib/memory.ts:211:24
(i32.add
(get_local $1)
;;@ ~lib/memory.ts:211:30
(i32.const 5)
)
)
)
;;@ ~lib/memory.ts:212:10
(i32.store
;;@ ~lib/memory.ts:212:21
(i32.add
(get_local $0)
;;@ ~lib/memory.ts:212:28
(i32.const 4)
)
;;@ ~lib/memory.ts:212:31
(i32.or
(i32.shr_u
(get_local $4)
;;@ ~lib/memory.ts:212:36
(i32.const 24)
)
;;@ ~lib/memory.ts:212:41
(i32.shl
(get_local $3)
;;@ ~lib/memory.ts:212:46
(i32.const 8)
)
)
)
;;@ ~lib/memory.ts:213:10
(set_local $4
;;@ ~lib/memory.ts:213:14
(i32.load
;;@ ~lib/memory.ts:213:24
(i32.add
(get_local $1)
;;@ ~lib/memory.ts:213:30
(i32.const 9)
)
)
)
;;@ ~lib/memory.ts:214:10
(i32.store
;;@ ~lib/memory.ts:214:21
(i32.add
(get_local $0)
;;@ ~lib/memory.ts:214:28
(i32.const 8)
)
;;@ ~lib/memory.ts:214:31
(i32.or
(i32.shr_u
(get_local $3)
;;@ ~lib/memory.ts:214:36
(i32.const 24)
)
;;@ ~lib/memory.ts:214:41
(i32.shl
(get_local $4)
;;@ ~lib/memory.ts:214:46
(i32.const 8)
)
)
)
;;@ ~lib/memory.ts:215:10
(set_local $3
;;@ ~lib/memory.ts:215:14
(i32.load
;;@ ~lib/memory.ts:215:24
(i32.add
(get_local $1)
;;@ ~lib/memory.ts:215:30
(i32.const 13)
)
)
)
;;@ ~lib/memory.ts:216:10
(i32.store
;;@ ~lib/memory.ts:216:21
(i32.add
(get_local $0)
;;@ ~lib/memory.ts:216:28
(i32.const 12)
)
;;@ ~lib/memory.ts:216:32
(i32.or
(i32.shr_u
(get_local $4)
;;@ ~lib/memory.ts:216:37
(i32.const 24)
)
;;@ ~lib/memory.ts:216:42
(i32.shl
(get_local $3)
;;@ ~lib/memory.ts:216:47
(i32.const 8)
)
)
)
;;@ ~lib/memory.ts:217:10
(set_local $1
(i32.add
(get_local $1)
;;@ ~lib/memory.ts:217:17
(i32.const 16)
)
)
;;@ ~lib/memory.ts:217:21
(set_local $0
(i32.add
(get_local $0)
;;@ ~lib/memory.ts:217:29
(i32.const 16)
)
)
;;@ ~lib/memory.ts:217:33
(set_local $2
(i32.sub
(get_local $2)
;;@ ~lib/memory.ts:217:38
(i32.const 16)
)
)
)
(br $continue|3)
)
)
)
)
;;@ ~lib/memory.ts:219:8
(br $break|2)
)
)
;;@ ~lib/memory.ts:221:14
(block
;;@ ~lib/memory.ts:222:8
(set_local $3
;;@ ~lib/memory.ts:222:12
(i32.load
;;@ ~lib/memory.ts:222:22
(get_local $1)
)
)
;;@ ~lib/memory.ts:223:8
(i32.store8
;;@ ~lib/memory.ts:223:18
(block (result i32)
(set_local $5
(get_local $0)
)
(set_local $0
(i32.add
(get_local $5)
(i32.const 1)
)
)
(get_local $5)
)
;;@ ~lib/memory.ts:223:26
(i32.load8_u
;;@ ~lib/memory.ts:223:35
(block (result i32)
(set_local $5
(get_local $1)
)
(set_local $1
(i32.add
(get_local $5)
(i32.const 1)
)
)
(get_local $5)
)
)
)
;;@ ~lib/memory.ts:224:8
(i32.store8
;;@ ~lib/memory.ts:224:18
(block (result i32)
(set_local $5
(get_local $0)
)
(set_local $0
(i32.add
(get_local $5)
(i32.const 1)
)
)
(get_local $5)
)
;;@ ~lib/memory.ts:224:26
(i32.load8_u
;;@ ~lib/memory.ts:224:35
(block (result i32)
(set_local $5
(get_local $1)
)
(set_local $1
(i32.add
(get_local $5)
(i32.const 1)
)
)
(get_local $5)
)
)
)
;;@ ~lib/memory.ts:225:8
(set_local $2
(i32.sub
(get_local $2)
;;@ ~lib/memory.ts:225:13
(i32.const 2)
)
)
;;@ ~lib/memory.ts:226:8
(block $break|4
(loop $continue|4
(if
;;@ ~lib/memory.ts:226:15
(i32.ge_u
(get_local $2)
;;@ ~lib/memory.ts:226:20
(i32.const 18)
)
(block
(block
;;@ ~lib/memory.ts:227:10
(set_local $4
;;@ ~lib/memory.ts:227:14
(i32.load
;;@ ~lib/memory.ts:227:24
(i32.add
(get_local $1)
;;@ ~lib/memory.ts:227:30
(i32.const 2)
)
)
)
;;@ ~lib/memory.ts:228:10
(i32.store
;;@ ~lib/memory.ts:228:21
(get_local $0)
;;@ ~lib/memory.ts:228:27
(i32.or
(i32.shr_u
(get_local $3)
;;@ ~lib/memory.ts:228:32
(i32.const 16)
)
;;@ ~lib/memory.ts:228:37
(i32.shl
(get_local $4)
;;@ ~lib/memory.ts:228:42
(i32.const 16)
)
)
)
;;@ ~lib/memory.ts:229:10
(set_local $3
;;@ ~lib/memory.ts:229:14
(i32.load
;;@ ~lib/memory.ts:229:24
(i32.add
(get_local $1)
;;@ ~lib/memory.ts:229:30
(i32.const 6)
)
)
)
;;@ ~lib/memory.ts:230:10
(i32.store
;;@ ~lib/memory.ts:230:21
(i32.add
(get_local $0)
;;@ ~lib/memory.ts:230:28
(i32.const 4)
)
;;@ ~lib/memory.ts:230:31
(i32.or
(i32.shr_u
(get_local $4)
;;@ ~lib/memory.ts:230:36
(i32.const 16)
)
;;@ ~lib/memory.ts:230:41
(i32.shl
(get_local $3)
;;@ ~lib/memory.ts:230:46
(i32.const 16)
)
)
)
;;@ ~lib/memory.ts:231:10
(set_local $4
;;@ ~lib/memory.ts:231:14
(i32.load
;;@ ~lib/memory.ts:231:24
(i32.add
(get_local $1)
;;@ ~lib/memory.ts:231:30
(i32.const 10)
)
)
)
;;@ ~lib/memory.ts:232:10
(i32.store
;;@ ~lib/memory.ts:232:21
(i32.add
(get_local $0)
;;@ ~lib/memory.ts:232:28
(i32.const 8)
)
;;@ ~lib/memory.ts:232:31
(i32.or
(i32.shr_u
(get_local $3)
;;@ ~lib/memory.ts:232:36
(i32.const 16)
)
;;@ ~lib/memory.ts:232:41
(i32.shl
(get_local $4)
;;@ ~lib/memory.ts:232:46
(i32.const 16)
)
)
)
;;@ ~lib/memory.ts:233:10
(set_local $3
;;@ ~lib/memory.ts:233:14
(i32.load
;;@ ~lib/memory.ts:233:24
(i32.add
(get_local $1)
;;@ ~lib/memory.ts:233:30
(i32.const 14)
)
)
)
;;@ ~lib/memory.ts:234:10
(i32.store
;;@ ~lib/memory.ts:234:21
(i32.add
(get_local $0)
;;@ ~lib/memory.ts:234:28
(i32.const 12)
)
;;@ ~lib/memory.ts:234:32
(i32.or
(i32.shr_u
(get_local $4)
;;@ ~lib/memory.ts:234:37
(i32.const 16)
)
;;@ ~lib/memory.ts:234:42
(i32.shl
(get_local $3)
;;@ ~lib/memory.ts:234:47
(i32.const 16)
)
)
)
;;@ ~lib/memory.ts:235:10
(set_local $1
(i32.add
(get_local $1)
;;@ ~lib/memory.ts:235:17
(i32.const 16)
)
)
;;@ ~lib/memory.ts:235:21
(set_local $0
(i32.add
(get_local $0)
;;@ ~lib/memory.ts:235:29
(i32.const 16)
)
)
;;@ ~lib/memory.ts:235:33
(set_local $2
(i32.sub
(get_local $2)
;;@ ~lib/memory.ts:235:38
(i32.const 16)
)
)
)
(br $continue|4)
)
)
)
)
;;@ ~lib/memory.ts:237:8
(br $break|2)
)
)
;;@ ~lib/memory.ts:239:14
(block
;;@ ~lib/memory.ts:240:8
(set_local $3
;;@ ~lib/memory.ts:240:12
(i32.load
;;@ ~lib/memory.ts:240:22
(get_local $1)
)
)
;;@ ~lib/memory.ts:241:8
(i32.store8
;;@ ~lib/memory.ts:241:18
(block (result i32)
(set_local $5
(get_local $0)
)
(set_local $0
(i32.add
(get_local $5)
(i32.const 1)
)
)
(get_local $5)
)
;;@ ~lib/memory.ts:241:26
(i32.load8_u
;;@ ~lib/memory.ts:241:35
(block (result i32)
(set_local $5
(get_local $1)
)
(set_local $1
(i32.add
(get_local $5)
(i32.const 1)
)
)
(get_local $5)
)
)
)
;;@ ~lib/memory.ts:242:8
(set_local $2
(i32.sub
(get_local $2)
;;@ ~lib/memory.ts:242:13
(i32.const 1)
)
)
;;@ ~lib/memory.ts:243:8
(block $break|5
(loop $continue|5
(if
;;@ ~lib/memory.ts:243:15
(i32.ge_u
(get_local $2)
;;@ ~lib/memory.ts:243:20
(i32.const 19)
)
(block
(block
;;@ ~lib/memory.ts:244:10
(set_local $4
;;@ ~lib/memory.ts:244:14
(i32.load
;;@ ~lib/memory.ts:244:24
(i32.add
(get_local $1)
;;@ ~lib/memory.ts:244:30
(i32.const 3)
)
)
)
;;@ ~lib/memory.ts:245:10
(i32.store
;;@ ~lib/memory.ts:245:21
(get_local $0)
;;@ ~lib/memory.ts:245:27
(i32.or
(i32.shr_u
(get_local $3)
;;@ ~lib/memory.ts:245:32
(i32.const 8)
)
;;@ ~lib/memory.ts:245:36
(i32.shl
(get_local $4)
;;@ ~lib/memory.ts:245:41
(i32.const 24)
)
)
)
;;@ ~lib/memory.ts:246:10
(set_local $3
;;@ ~lib/memory.ts:246:14
(i32.load
;;@ ~lib/memory.ts:246:24
(i32.add
(get_local $1)
;;@ ~lib/memory.ts:246:30
(i32.const 7)
)
)
)
;;@ ~lib/memory.ts:247:10
(i32.store
;;@ ~lib/memory.ts:247:21
(i32.add
(get_local $0)
;;@ ~lib/memory.ts:247:28
(i32.const 4)
)
;;@ ~lib/memory.ts:247:31
(i32.or
(i32.shr_u
(get_local $4)
;;@ ~lib/memory.ts:247:36
(i32.const 8)
)
;;@ ~lib/memory.ts:247:40
(i32.shl
(get_local $3)
;;@ ~lib/memory.ts:247:45
(i32.const 24)
)
)
)
;;@ ~lib/memory.ts:248:10
(set_local $4
;;@ ~lib/memory.ts:248:14
(i32.load
;;@ ~lib/memory.ts:248:24
(i32.add
(get_local $1)
;;@ ~lib/memory.ts:248:30
(i32.const 11)
)
)
)
;;@ ~lib/memory.ts:249:10
(i32.store
;;@ ~lib/memory.ts:249:21
(i32.add
(get_local $0)
;;@ ~lib/memory.ts:249:28
(i32.const 8)
)
;;@ ~lib/memory.ts:249:31
(i32.or
(i32.shr_u
(get_local $3)
;;@ ~lib/memory.ts:249:36
(i32.const 8)
)
;;@ ~lib/memory.ts:249:40
(i32.shl
(get_local $4)
;;@ ~lib/memory.ts:249:45
(i32.const 24)
)
)
)
;;@ ~lib/memory.ts:250:10
(set_local $3
;;@ ~lib/memory.ts:250:14
(i32.load
;;@ ~lib/memory.ts:250:24
(i32.add
(get_local $1)
;;@ ~lib/memory.ts:250:30
(i32.const 15)
)
)
)
;;@ ~lib/memory.ts:251:10
(i32.store
;;@ ~lib/memory.ts:251:21
(i32.add
(get_local $0)
;;@ ~lib/memory.ts:251:28
(i32.const 12)
)
;;@ ~lib/memory.ts:251:32
(i32.or
(i32.shr_u
(get_local $4)
;;@ ~lib/memory.ts:251:37
(i32.const 8)
)
;;@ ~lib/memory.ts:251:41
(i32.shl
(get_local $3)
;;@ ~lib/memory.ts:251:46
(i32.const 24)
)
)
)
;;@ ~lib/memory.ts:252:10
(set_local $1
(i32.add
(get_local $1)
;;@ ~lib/memory.ts:252:17
(i32.const 16)
)
)
;;@ ~lib/memory.ts:252:21
(set_local $0
(i32.add
(get_local $0)
;;@ ~lib/memory.ts:252:29
(i32.const 16)
)
)
;;@ ~lib/memory.ts:252:33
(set_local $2
(i32.sub
(get_local $2)
;;@ ~lib/memory.ts:252:38
(i32.const 16)
)
)
)
(br $continue|5)
)
)
)
)
;;@ ~lib/memory.ts:254:8
(br $break|2)
)
)
)
;;@ ~lib/memory.ts:260:2
(if
;;@ ~lib/memory.ts:260:6
(i32.and
(get_local $2)
;;@ ~lib/memory.ts:260:10
(i32.const 16)
)
;;@ ~lib/memory.ts:260:14
(block
;;@ ~lib/memory.ts:261:4
(i32.store8
;;@ ~lib/memory.ts:261:14
(block (result i32)
(set_local $5
(get_local $0)
)
(set_local $0
(i32.add
(get_local $5)
(i32.const 1)
)
)
(get_local $5)
)
;;@ ~lib/memory.ts:261:22
(i32.load8_u
;;@ ~lib/memory.ts:261:31
(block (result i32)
(set_local $5
(get_local $1)
)
(set_local $1
(i32.add
(get_local $5)
(i32.const 1)
)
)
(get_local $5)
)
)
)
;;@ ~lib/memory.ts:262:4
(i32.store8
;;@ ~lib/memory.ts:262:14
(block (result i32)
(set_local $5
(get_local $0)
)
(set_local $0
(i32.add
(get_local $5)
(i32.const 1)
)
)
(get_local $5)
)
;;@ ~lib/memory.ts:262:22
(i32.load8_u
;;@ ~lib/memory.ts:262:31
(block (result i32)
(set_local $5
(get_local $1)
)
(set_local $1
(i32.add
(get_local $5)
(i32.const 1)
)
)
(get_local $5)
)
)
)
;;@ ~lib/memory.ts:263:4
(i32.store8
;;@ ~lib/memory.ts:263:14
(block (result i32)
(set_local $5
(get_local $0)
)
(set_local $0
(i32.add
(get_local $5)
(i32.const 1)
)
)
(get_local $5)
)
;;@ ~lib/memory.ts:263:22
(i32.load8_u
;;@ ~lib/memory.ts:263:31
(block (result i32)
(set_local $5
(get_local $1)
)
(set_local $1
(i32.add
(get_local $5)
(i32.const 1)
)
)
(get_local $5)
)
)
)
;;@ ~lib/memory.ts:264:4
(i32.store8
;;@ ~lib/memory.ts:264:14
(block (result i32)
(set_local $5
(get_local $0)
)
(set_local $0
(i32.add
(get_local $5)
(i32.const 1)
)
)
(get_local $5)
)
;;@ ~lib/memory.ts:264:22
(i32.load8_u
;;@ ~lib/memory.ts:264:31
(block (result i32)
(set_local $5
(get_local $1)
)
(set_local $1
(i32.add
(get_local $5)
(i32.const 1)
)
)
(get_local $5)
)
)
)
;;@ ~lib/memory.ts:265:4
(i32.store8
;;@ ~lib/memory.ts:265:14
(block (result i32)
(set_local $5
(get_local $0)
)
(set_local $0
(i32.add
(get_local $5)
(i32.const 1)
)
)
(get_local $5)
)
;;@ ~lib/memory.ts:265:22
(i32.load8_u
;;@ ~lib/memory.ts:265:31
(block (result i32)
(set_local $5
(get_local $1)
)
(set_local $1
(i32.add
(get_local $5)
(i32.const 1)
)
)
(get_local $5)
)
)
)
;;@ ~lib/memory.ts:266:4
(i32.store8
;;@ ~lib/memory.ts:266:14
(block (result i32)
(set_local $5
(get_local $0)
)
(set_local $0
(i32.add
(get_local $5)
(i32.const 1)
)
)
(get_local $5)
)
;;@ ~lib/memory.ts:266:22
(i32.load8_u
;;@ ~lib/memory.ts:266:31
(block (result i32)
(set_local $5
(get_local $1)
)
(set_local $1
(i32.add
(get_local $5)
(i32.const 1)
)
)
(get_local $5)
)
)
)
;;@ ~lib/memory.ts:267:4
(i32.store8
;;@ ~lib/memory.ts:267:14
(block (result i32)
(set_local $5
(get_local $0)
)
(set_local $0
(i32.add
(get_local $5)
(i32.const 1)
)
)
(get_local $5)
)
;;@ ~lib/memory.ts:267:22
(i32.load8_u
;;@ ~lib/memory.ts:267:31
(block (result i32)
(set_local $5
(get_local $1)
)
(set_local $1
(i32.add
(get_local $5)
(i32.const 1)
)
)
(get_local $5)
)
)
)
;;@ ~lib/memory.ts:268:4
(i32.store8
;;@ ~lib/memory.ts:268:14
(block (result i32)
(set_local $5
(get_local $0)
)
(set_local $0
(i32.add
(get_local $5)
(i32.const 1)
)
)
(get_local $5)
)
;;@ ~lib/memory.ts:268:22
(i32.load8_u
;;@ ~lib/memory.ts:268:31
(block (result i32)
(set_local $5
(get_local $1)
)
(set_local $1
(i32.add
(get_local $5)
(i32.const 1)
)
)
(get_local $5)
)
)
)
;;@ ~lib/memory.ts:269:4
(i32.store8
;;@ ~lib/memory.ts:269:14
(block (result i32)
(set_local $5
(get_local $0)
)
(set_local $0
(i32.add
(get_local $5)
(i32.const 1)
)
)
(get_local $5)
)
;;@ ~lib/memory.ts:269:22
(i32.load8_u
;;@ ~lib/memory.ts:269:31
(block (result i32)
(set_local $5
(get_local $1)
)
(set_local $1
(i32.add
(get_local $5)
(i32.const 1)
)
)
(get_local $5)
)
)
)
;;@ ~lib/memory.ts:270:4
(i32.store8
;;@ ~lib/memory.ts:270:14
(block (result i32)
(set_local $5
(get_local $0)
)
(set_local $0
(i32.add
(get_local $5)
(i32.const 1)
)
)
(get_local $5)
)
;;@ ~lib/memory.ts:270:22
(i32.load8_u
;;@ ~lib/memory.ts:270:31
(block (result i32)
(set_local $5
(get_local $1)
)
(set_local $1
(i32.add
(get_local $5)
(i32.const 1)
)
)
(get_local $5)
)
)
)
;;@ ~lib/memory.ts:271:4
(i32.store8
;;@ ~lib/memory.ts:271:14
(block (result i32)
(set_local $5
(get_local $0)
)
(set_local $0
(i32.add
(get_local $5)
(i32.const 1)
)
)
(get_local $5)
)
;;@ ~lib/memory.ts:271:22
(i32.load8_u
;;@ ~lib/memory.ts:271:31
(block (result i32)
(set_local $5
(get_local $1)
)
(set_local $1
(i32.add
(get_local $5)
(i32.const 1)
)
)
(get_local $5)
)
)
)
;;@ ~lib/memory.ts:272:4
(i32.store8
;;@ ~lib/memory.ts:272:14
(block (result i32)
(set_local $5
(get_local $0)
)
(set_local $0
(i32.add
(get_local $5)
(i32.const 1)
)
)
(get_local $5)
)
;;@ ~lib/memory.ts:272:22
(i32.load8_u
;;@ ~lib/memory.ts:272:31
(block (result i32)
(set_local $5
(get_local $1)
)
(set_local $1
(i32.add
(get_local $5)
(i32.const 1)
)
)
(get_local $5)
)
)
)
;;@ ~lib/memory.ts:273:4
(i32.store8
;;@ ~lib/memory.ts:273:14
(block (result i32)
(set_local $5
(get_local $0)
)
(set_local $0
(i32.add
(get_local $5)
(i32.const 1)
)
)
(get_local $5)
)
;;@ ~lib/memory.ts:273:22
(i32.load8_u
;;@ ~lib/memory.ts:273:31
(block (result i32)
(set_local $5
(get_local $1)
)
(set_local $1
(i32.add
(get_local $5)
(i32.const 1)
)
)
(get_local $5)
)
)
)
;;@ ~lib/memory.ts:274:4
(i32.store8
;;@ ~lib/memory.ts:274:14
(block (result i32)
(set_local $5
(get_local $0)
)
(set_local $0
(i32.add
(get_local $5)
(i32.const 1)
)
)
(get_local $5)
)
;;@ ~lib/memory.ts:274:22
(i32.load8_u
;;@ ~lib/memory.ts:274:31
(block (result i32)
(set_local $5
(get_local $1)
)
(set_local $1
(i32.add
(get_local $5)
(i32.const 1)
)
)
(get_local $5)
)
)
)
;;@ ~lib/memory.ts:275:4
(i32.store8
;;@ ~lib/memory.ts:275:14
(block (result i32)
(set_local $5
(get_local $0)
)
(set_local $0
(i32.add
(get_local $5)
(i32.const 1)
)
)
(get_local $5)
)
;;@ ~lib/memory.ts:275:22
(i32.load8_u
;;@ ~lib/memory.ts:275:31
(block (result i32)
(set_local $5
(get_local $1)
)
(set_local $1
(i32.add
(get_local $5)
(i32.const 1)
)
)
(get_local $5)
)
)
)
;;@ ~lib/memory.ts:276:4
(i32.store8
;;@ ~lib/memory.ts:276:14
(block (result i32)
(set_local $5
(get_local $0)
)
(set_local $0
(i32.add
(get_local $5)
(i32.const 1)
)
)
(get_local $5)
)
;;@ ~lib/memory.ts:276:22
(i32.load8_u
;;@ ~lib/memory.ts:276:31
(block (result i32)
(set_local $5
(get_local $1)
)
(set_local $1
(i32.add
(get_local $5)
(i32.const 1)
)
)
(get_local $5)
)
)
)
)
)
;;@ ~lib/memory.ts:278:2
(if
;;@ ~lib/memory.ts:278:6
(i32.and
(get_local $2)
;;@ ~lib/memory.ts:278:10
(i32.const 8)
)
;;@ ~lib/memory.ts:278:13
(block
;;@ ~lib/memory.ts:279:4
(i32.store8
;;@ ~lib/memory.ts:279:14
(block (result i32)
(set_local $5
(get_local $0)
)
(set_local $0
(i32.add
(get_local $5)
(i32.const 1)
)
)
(get_local $5)
)
;;@ ~lib/memory.ts:279:22
(i32.load8_u
;;@ ~lib/memory.ts:279:31
(block (result i32)
(set_local $5
(get_local $1)
)
(set_local $1
(i32.add
(get_local $5)
(i32.const 1)
)
)
(get_local $5)
)
)
)
;;@ ~lib/memory.ts:280:4
(i32.store8
;;@ ~lib/memory.ts:280:14
(block (result i32)
(set_local $5
(get_local $0)
)
(set_local $0
(i32.add
(get_local $5)
(i32.const 1)
)
)
(get_local $5)
)
;;@ ~lib/memory.ts:280:22
(i32.load8_u
;;@ ~lib/memory.ts:280:31
(block (result i32)
(set_local $5
(get_local $1)
)
(set_local $1
(i32.add
(get_local $5)
(i32.const 1)
)
)
(get_local $5)
)
)
)
;;@ ~lib/memory.ts:281:4
(i32.store8
;;@ ~lib/memory.ts:281:14
(block (result i32)
(set_local $5
(get_local $0)
)
(set_local $0
(i32.add
(get_local $5)
(i32.const 1)
)
)
(get_local $5)
)
;;@ ~lib/memory.ts:281:22
(i32.load8_u
;;@ ~lib/memory.ts:281:31
(block (result i32)
(set_local $5
(get_local $1)
)
(set_local $1
(i32.add
(get_local $5)
(i32.const 1)
)
)
(get_local $5)
)
)
)
;;@ ~lib/memory.ts:282:4
(i32.store8
;;@ ~lib/memory.ts:282:14
(block (result i32)
(set_local $5
(get_local $0)
)
(set_local $0
(i32.add
(get_local $5)
(i32.const 1)
)
)
(get_local $5)
)
;;@ ~lib/memory.ts:282:22
(i32.load8_u
;;@ ~lib/memory.ts:282:31
(block (result i32)
(set_local $5
(get_local $1)
)
(set_local $1
(i32.add
(get_local $5)
(i32.const 1)
)
)
(get_local $5)
)
)
)
;;@ ~lib/memory.ts:283:4
(i32.store8
;;@ ~lib/memory.ts:283:14
(block (result i32)
(set_local $5
(get_local $0)
)
(set_local $0
(i32.add
(get_local $5)
(i32.const 1)
)
)
(get_local $5)
)
;;@ ~lib/memory.ts:283:22
(i32.load8_u
;;@ ~lib/memory.ts:283:31
(block (result i32)
(set_local $5
(get_local $1)
)
(set_local $1
(i32.add
(get_local $5)
(i32.const 1)
)
)
(get_local $5)
)
)
)
;;@ ~lib/memory.ts:284:4
(i32.store8
;;@ ~lib/memory.ts:284:14
(block (result i32)
(set_local $5
(get_local $0)
)
(set_local $0
(i32.add
(get_local $5)
(i32.const 1)
)
)
(get_local $5)
)
;;@ ~lib/memory.ts:284:22
(i32.load8_u
;;@ ~lib/memory.ts:284:31
(block (result i32)
(set_local $5
(get_local $1)
)
(set_local $1
(i32.add
(get_local $5)
(i32.const 1)
)
)
(get_local $5)
)
)
)
;;@ ~lib/memory.ts:285:4
(i32.store8
;;@ ~lib/memory.ts:285:14
(block (result i32)
(set_local $5
(get_local $0)
)
(set_local $0
(i32.add
(get_local $5)
(i32.const 1)
)
)
(get_local $5)
)
;;@ ~lib/memory.ts:285:22
(i32.load8_u
;;@ ~lib/memory.ts:285:31
(block (result i32)
(set_local $5
(get_local $1)
)
(set_local $1
(i32.add
(get_local $5)
(i32.const 1)
)
)
(get_local $5)
)
)
)
;;@ ~lib/memory.ts:286:4
(i32.store8
;;@ ~lib/memory.ts:286:14
(block (result i32)
(set_local $5
(get_local $0)
)
(set_local $0
(i32.add
(get_local $5)
(i32.const 1)
)
)
(get_local $5)
)
;;@ ~lib/memory.ts:286:22
(i32.load8_u
;;@ ~lib/memory.ts:286:31
(block (result i32)
(set_local $5
(get_local $1)
)
(set_local $1
(i32.add
(get_local $5)
(i32.const 1)
)
)
(get_local $5)
)
)
)
)
)
;;@ ~lib/memory.ts:288:2
(if
;;@ ~lib/memory.ts:288:6
(i32.and
(get_local $2)
;;@ ~lib/memory.ts:288:10
(i32.const 4)
)
;;@ ~lib/memory.ts:288:13
(block
;;@ ~lib/memory.ts:289:4
(i32.store8
;;@ ~lib/memory.ts:289:14
(block (result i32)
(set_local $5
(get_local $0)
)
(set_local $0
(i32.add
(get_local $5)
(i32.const 1)
)
)
(get_local $5)
)
;;@ ~lib/memory.ts:289:22
(i32.load8_u
;;@ ~lib/memory.ts:289:31
(block (result i32)
(set_local $5
(get_local $1)
)
(set_local $1
(i32.add
(get_local $5)
(i32.const 1)
)
)
(get_local $5)
)
)
)
;;@ ~lib/memory.ts:290:4
(i32.store8
;;@ ~lib/memory.ts:290:14
(block (result i32)
(set_local $5
(get_local $0)
)
(set_local $0
(i32.add
(get_local $5)
(i32.const 1)
)
)
(get_local $5)
)
;;@ ~lib/memory.ts:290:22
(i32.load8_u
;;@ ~lib/memory.ts:290:31
(block (result i32)
(set_local $5
(get_local $1)
)
(set_local $1
(i32.add
(get_local $5)
(i32.const 1)
)
)
(get_local $5)
)
)
)
;;@ ~lib/memory.ts:291:4
(i32.store8
;;@ ~lib/memory.ts:291:14
(block (result i32)
(set_local $5
(get_local $0)
)
(set_local $0
(i32.add
(get_local $5)
(i32.const 1)
)
)
(get_local $5)
)
;;@ ~lib/memory.ts:291:22
(i32.load8_u
;;@ ~lib/memory.ts:291:31
(block (result i32)
(set_local $5
(get_local $1)
)
(set_local $1
(i32.add
(get_local $5)
(i32.const 1)
)
)
(get_local $5)
)
)
)
;;@ ~lib/memory.ts:292:4
(i32.store8
;;@ ~lib/memory.ts:292:14
(block (result i32)
(set_local $5
(get_local $0)
)
(set_local $0
(i32.add
(get_local $5)
(i32.const 1)
)
)
(get_local $5)
)
;;@ ~lib/memory.ts:292:22
(i32.load8_u
;;@ ~lib/memory.ts:292:31
(block (result i32)
(set_local $5
(get_local $1)
)
(set_local $1
(i32.add
(get_local $5)
(i32.const 1)
)
)
(get_local $5)
)
)
)
)
)
;;@ ~lib/memory.ts:294:2
(if
;;@ ~lib/memory.ts:294:6
(i32.and
(get_local $2)
;;@ ~lib/memory.ts:294:10
(i32.const 2)
)
;;@ ~lib/memory.ts:294:13
(block
;;@ ~lib/memory.ts:295:4
(i32.store8
;;@ ~lib/memory.ts:295:14
(block (result i32)
(set_local $5
(get_local $0)
)
(set_local $0
(i32.add
(get_local $5)
(i32.const 1)
)
)
(get_local $5)
)
;;@ ~lib/memory.ts:295:22
(i32.load8_u
;;@ ~lib/memory.ts:295:31
(block (result i32)
(set_local $5
(get_local $1)
)
(set_local $1
(i32.add
(get_local $5)
(i32.const 1)
)
)
(get_local $5)
)
)
)
;;@ ~lib/memory.ts:296:4
(i32.store8
;;@ ~lib/memory.ts:296:14
(block (result i32)
(set_local $5
(get_local $0)
)
(set_local $0
(i32.add
(get_local $5)
(i32.const 1)
)
)
(get_local $5)
)
;;@ ~lib/memory.ts:296:22
(i32.load8_u
;;@ ~lib/memory.ts:296:31
(block (result i32)
(set_local $5
(get_local $1)
)
(set_local $1
(i32.add
(get_local $5)
(i32.const 1)
)
)
(get_local $5)
)
)
)
)
)
;;@ ~lib/memory.ts:298:2
(if
;;@ ~lib/memory.ts:298:6
(i32.and
(get_local $2)
;;@ ~lib/memory.ts:298:10
(i32.const 1)
)
;;@ ~lib/memory.ts:298:13
(i32.store8
;;@ ~lib/memory.ts:299:14
(block (result i32)
(set_local $5
(get_local $0)
)
(set_local $0
(i32.add
(get_local $5)
(i32.const 1)
)
)
(get_local $5)
)
;;@ ~lib/memory.ts:299:22
(i32.load8_u
;;@ ~lib/memory.ts:299:31
(block (result i32)
(set_local $5
(get_local $1)
)
(set_local $1
(i32.add
(get_local $5)
(i32.const 1)
)
)
(get_local $5)
)
)
)
)
)
(func $~lib/memory/memory.copy (; 5 ;) (type $iiiv) (param $0 i32) (param $1 i32) (param $2 i32)
(local $3 i32)
;;@ ~lib/memory.ts:79:4
(if
;;@ ~lib/memory.ts:79:8
(i32.eq
(get_local $0)
;;@ ~lib/memory.ts:79:16
(get_local $1)
)
;;@ ~lib/memory.ts:79:21
(return)
)
;;@ ~lib/memory.ts:80:4
(if
;;@ ~lib/memory.ts:80:8
(if (result i32)
(tee_local $3
(i32.le_u
(i32.add
(get_local $1)
;;@ ~lib/memory.ts:80:14
(get_local $2)
)
;;@ ~lib/memory.ts:80:19
(get_local $0)
)
)
(get_local $3)
;;@ ~lib/memory.ts:80:27
(i32.le_u
(i32.add
(get_local $0)
;;@ ~lib/memory.ts:80:34
(get_local $2)
)
;;@ ~lib/memory.ts:80:39
(get_local $1)
)
)
;;@ ~lib/memory.ts:80:44
(block
;;@ ~lib/memory.ts:81:6
(call $~lib/memory/memcpy
;;@ ~lib/memory.ts:81:13
(get_local $0)
;;@ ~lib/memory.ts:81:19
(get_local $1)
;;@ ~lib/memory.ts:81:24
(get_local $2)
)
;;@ ~lib/memory.ts:82:6
(return)
)
)
;;@ ~lib/memory.ts:84:4
(if
;;@ ~lib/memory.ts:84:8
(i32.lt_u
(get_local $0)
;;@ ~lib/memory.ts:84:15
(get_local $1)
)
;;@ ~lib/memory.ts:84:20
(block
;;@ ~lib/memory.ts:85:6
(if
;;@ ~lib/memory.ts:85:10
(i32.eq
(i32.and
;;@ ~lib/memory.ts:85:11
(get_local $1)
;;@ ~lib/memory.ts:85:17
(i32.const 7)
)
;;@ ~lib/memory.ts:85:23
(i32.and
;;@ ~lib/memory.ts:85:24
(get_local $0)
;;@ ~lib/memory.ts:85:31
(i32.const 7)
)
)
;;@ ~lib/memory.ts:85:35
(block
(block $break|0
(loop $continue|0
(if
;;@ ~lib/memory.ts:86:15
(i32.and
(get_local $0)
;;@ ~lib/memory.ts:86:22
(i32.const 7)
)
(block
(block
;;@ ~lib/memory.ts:87:10
(if
;;@ ~lib/memory.ts:87:14
(i32.eqz
;;@ ~lib/memory.ts:87:15
(get_local $2)
)
;;@ ~lib/memory.ts:87:18
(return)
)
;;@ ~lib/memory.ts:88:10
(set_local $2
(i32.sub
;;@ ~lib/memory.ts:88:12
(get_local $2)
(i32.const 1)
)
)
;;@ ~lib/memory.ts:89:10
(i32.store8
;;@ ~lib/memory.ts:89:20
(block (result i32)
(set_local $3
(get_local $0)
)
(set_local $0
(i32.add
(get_local $3)
(i32.const 1)
)
)
(get_local $3)
)
;;@ ~lib/memory.ts:89:28
(i32.load8_u
;;@ ~lib/memory.ts:89:37
(block (result i32)
(set_local $3
(get_local $1)
)
(set_local $1
(i32.add
(get_local $3)
(i32.const 1)
)
)
(get_local $3)
)
)
)
)
(br $continue|0)
)
)
)
)
;;@ ~lib/memory.ts:91:8
(block $break|1
(loop $continue|1
(if
;;@ ~lib/memory.ts:91:15
(i32.ge_u
(get_local $2)
;;@ ~lib/memory.ts:91:20
(i32.const 8)
)
(block
(block
;;@ ~lib/memory.ts:92:10
(i64.store
;;@ ~lib/memory.ts:92:21
(get_local $0)
;;@ ~lib/memory.ts:92:27
(i64.load
;;@ ~lib/memory.ts:92:37
(get_local $1)
)
)
;;@ ~lib/memory.ts:93:10
(set_local $2
(i32.sub
(get_local $2)
;;@ ~lib/memory.ts:93:18
(i32.const 8)
)
)
;;@ ~lib/memory.ts:94:10
(set_local $0
(i32.add
(get_local $0)
;;@ ~lib/memory.ts:94:18
(i32.const 8)
)
)
;;@ ~lib/memory.ts:95:10
(set_local $1
(i32.add
(get_local $1)
;;@ ~lib/memory.ts:95:18
(i32.const 8)
)
)
)
(br $continue|1)
)
)
)
)
)
)
;;@ ~lib/memory.ts:98:6
(block $break|2
(loop $continue|2
(if
;;@ ~lib/memory.ts:98:13
(get_local $2)
(block
(block
;;@ ~lib/memory.ts:99:8
(i32.store8
;;@ ~lib/memory.ts:99:18
(block (result i32)
(set_local $3
(get_local $0)
)
(set_local $0
(i32.add
(get_local $3)
(i32.const 1)
)
)
(get_local $3)
)
;;@ ~lib/memory.ts:99:26
(i32.load8_u
;;@ ~lib/memory.ts:99:35
(block (result i32)
(set_local $3
(get_local $1)
)
(set_local $1
(i32.add
(get_local $3)
(i32.const 1)
)
)
(get_local $3)
)
)
)
;;@ ~lib/memory.ts:100:8
(set_local $2
(i32.sub
;;@ ~lib/memory.ts:100:10
(get_local $2)
(i32.const 1)
)
)
)
(br $continue|2)
)
)
)
)
)
;;@ ~lib/memory.ts:102:11
(block
;;@ ~lib/memory.ts:103:6
(if
;;@ ~lib/memory.ts:103:10
(i32.eq
(i32.and
;;@ ~lib/memory.ts:103:11
(get_local $1)
;;@ ~lib/memory.ts:103:17
(i32.const 7)
)
;;@ ~lib/memory.ts:103:23
(i32.and
;;@ ~lib/memory.ts:103:24
(get_local $0)
;;@ ~lib/memory.ts:103:31
(i32.const 7)
)
)
;;@ ~lib/memory.ts:103:35
(block
(block $break|3
(loop $continue|3
(if
;;@ ~lib/memory.ts:104:15
(i32.and
(i32.add
;;@ ~lib/memory.ts:104:16
(get_local $0)
;;@ ~lib/memory.ts:104:23
(get_local $2)
)
;;@ ~lib/memory.ts:104:28
(i32.const 7)
)
(block
(block
;;@ ~lib/memory.ts:105:10
(if
;;@ ~lib/memory.ts:105:14
(i32.eqz
;;@ ~lib/memory.ts:105:15
(get_local $2)
)
;;@ ~lib/memory.ts:105:18
(return)
)
;;@ ~lib/memory.ts:106:10
(i32.store8
;;@ ~lib/memory.ts:106:20
(i32.add
(get_local $0)
;;@ ~lib/memory.ts:106:27
(tee_local $2
(i32.sub
;;@ ~lib/memory.ts:106:29
(get_local $2)
(i32.const 1)
)
)
)
;;@ ~lib/memory.ts:106:32
(i32.load8_u
;;@ ~lib/memory.ts:106:41
(i32.add
(get_local $1)
;;@ ~lib/memory.ts:106:47
(get_local $2)
)
)
)
)
(br $continue|3)
)
)
)
)
;;@ ~lib/memory.ts:108:8
(block $break|4
(loop $continue|4
(if
;;@ ~lib/memory.ts:108:15
(i32.ge_u
(get_local $2)
;;@ ~lib/memory.ts:108:20
(i32.const 8)
)
(block
(block
;;@ ~lib/memory.ts:109:10
(set_local $2
(i32.sub
(get_local $2)
;;@ ~lib/memory.ts:109:15
(i32.const 8)
)
)
;;@ ~lib/memory.ts:110:10
(i64.store
;;@ ~lib/memory.ts:110:21
(i32.add
(get_local $0)
;;@ ~lib/memory.ts:110:28
(get_local $2)
)
;;@ ~lib/memory.ts:110:31
(i64.load
;;@ ~lib/memory.ts:110:41
(i32.add
(get_local $1)
;;@ ~lib/memory.ts:110:47
(get_local $2)
)
)
)
)
(br $continue|4)
)
)
)
)
)
)
;;@ ~lib/memory.ts:113:6
(block $break|5
(loop $continue|5
(if
;;@ ~lib/memory.ts:113:13
(get_local $2)
(block
;;@ ~lib/memory.ts:113:16
(i32.store8
;;@ ~lib/memory.ts:114:18
(i32.add
(get_local $0)
;;@ ~lib/memory.ts:114:25
(tee_local $2
(i32.sub
;;@ ~lib/memory.ts:114:27
(get_local $2)
(i32.const 1)
)
)
)
;;@ ~lib/memory.ts:114:30
(i32.load8_u
;;@ ~lib/memory.ts:114:39
(i32.add
(get_local $1)
;;@ ~lib/memory.ts:114:45
(get_local $2)
)
)
)
(br $continue|5)
)
)
)
)
)
)
)
(func $~lib/memory/memory.compare (; 6 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
;;@ ~lib/memory.ts:122:4
(if
;;@ ~lib/memory.ts:122:8
(i32.eq
(get_local $0)
;;@ ~lib/memory.ts:122:14
(get_local $1)
)
;;@ ~lib/memory.ts:122:25
(return
(i32.const 0)
)
)
;;@ ~lib/memory.ts:123:4
(block $break|0
(loop $continue|0
(if
;;@ ~lib/memory.ts:123:11
(if (result i32)
(tee_local $3
(i32.ne
(get_local $2)
;;@ ~lib/memory.ts:123:16
(i32.const 0)
)
)
;;@ ~lib/memory.ts:123:21
(i32.eq
(i32.load8_u
;;@ ~lib/memory.ts:123:30
(get_local $0)
)
;;@ ~lib/memory.ts:123:37
(i32.load8_u
;;@ ~lib/memory.ts:123:46
(get_local $1)
)
)
(get_local $3)
)
(block
(block
;;@ ~lib/memory.ts:124:6
(set_local $2
(i32.sub
(get_local $2)
(i32.const 1)
)
)
;;@ ~lib/memory.ts:124:11
(set_local $0
(i32.add
(get_local $0)
(i32.const 1)
)
)
;;@ ~lib/memory.ts:124:17
(set_local $1
(i32.add
(get_local $1)
(i32.const 1)
)
)
)
(br $continue|0)
)
)
)
)
;;@ ~lib/memory.ts:126:55
(if (result i32)
;;@ ~lib/memory.ts:126:11
(get_local $2)
;;@ ~lib/memory.ts:126:15
(i32.sub
(i32.load8_u
;;@ ~lib/memory.ts:126:29
(get_local $0)
)
;;@ ~lib/memory.ts:126:35
(i32.load8_u
;;@ ~lib/memory.ts:126:49
(get_local $1)
)
)
;;@ ~lib/memory.ts:126:55
(i32.const 0)
)
)
(func $~lib/allocator/tlsf/Root#set:tailRef (; 7 ;) (type $iiv) (param $0 i32) (param $1 i32)
;;@ ~lib/allocator/tlsf.ts:181:30
(i32.store offset=2912
;;@ ~lib/allocator/tlsf.ts:181:43
2018-02-12 19:17:50 +01:00
(i32.const 0)
;;@ ~lib/allocator/tlsf.ts:181:46
2018-02-12 19:17:50 +01:00
(get_local $1)
)
)
(func $~lib/allocator/tlsf/Root#setSLMap (; 8 ;) (type $iiiv) (param $0 i32) (param $1 i32) (param $2 i32)
;;@ ~lib/allocator/tlsf.ts:144:4
2018-02-12 19:17:50 +01:00
(if
(i32.eqz
;;@ ~lib/allocator/tlsf.ts:144:11
2018-02-12 19:17:50 +01:00
(i32.lt_u
(get_local $1)
;;@ ~lib/allocator/tlsf.ts:144:16
(i32.const 22)
2018-02-12 19:17:50 +01:00
)
)
(block
2018-06-09 02:27:10 +02:00
(call $~lib/env/abort
2018-02-12 19:17:50 +01:00
(i32.const 0)
2018-06-09 02:27:10 +02:00
(i32.const 8)
(i32.const 144)
2018-02-12 19:17:50 +01:00
(i32.const 4)
)
(unreachable)
)
)
;;@ ~lib/allocator/tlsf.ts:145:4
2018-02-12 19:17:50 +01:00
(i32.store offset=4
;;@ ~lib/allocator/tlsf.ts:145:15
2018-02-12 19:17:50 +01:00
(i32.add
(get_local $0)
;;@ ~lib/allocator/tlsf.ts:145:41
2018-02-12 19:17:50 +01:00
(i32.mul
(get_local $1)
;;@ ~lib/allocator/tlsf.ts:145:46
2018-02-12 19:17:50 +01:00
(i32.const 4)
)
)
;;@ ~lib/allocator/tlsf.ts:145:49
2018-02-12 19:17:50 +01:00
(get_local $2)
)
)
(func $~lib/allocator/tlsf/Root#setHead (; 9 ;) (type $iiiiv) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
;;@ ~lib/allocator/tlsf.ts:167:4
2018-02-12 19:17:50 +01:00
(if
(i32.eqz
;;@ ~lib/allocator/tlsf.ts:167:11
2018-02-12 19:17:50 +01:00
(i32.lt_u
(get_local $1)
;;@ ~lib/allocator/tlsf.ts:167:16
(i32.const 22)
2018-02-12 19:17:50 +01:00
)
)
(block
2018-06-09 02:27:10 +02:00
(call $~lib/env/abort
2018-02-12 19:17:50 +01:00
(i32.const 0)
2018-06-09 02:27:10 +02:00
(i32.const 8)
(i32.const 167)
2018-02-12 19:17:50 +01:00
(i32.const 4)
)
(unreachable)
)
)
;;@ ~lib/allocator/tlsf.ts:168:4
2018-02-12 19:17:50 +01:00
(if
(i32.eqz
;;@ ~lib/allocator/tlsf.ts:168:11
2018-02-12 19:17:50 +01:00
(i32.lt_u
(get_local $2)
;;@ ~lib/allocator/tlsf.ts:168:16
2018-02-12 19:17:50 +01:00
(i32.const 32)
)
)
(block
2018-06-09 02:27:10 +02:00
(call $~lib/env/abort
2018-02-12 19:17:50 +01:00
(i32.const 0)
2018-06-09 02:27:10 +02:00
(i32.const 8)
(i32.const 168)
2018-02-12 19:17:50 +01:00
(i32.const 4)
)
(unreachable)
)
)
;;@ ~lib/allocator/tlsf.ts:169:4
2018-02-12 19:17:50 +01:00
(i32.store offset=96
;;@ ~lib/allocator/tlsf.ts:170:6
2018-02-12 19:17:50 +01:00
(i32.add
(get_local $0)
;;@ ~lib/allocator/tlsf.ts:170:32
2018-02-12 19:17:50 +01:00
(i32.mul
(i32.add
;;@ ~lib/allocator/tlsf.ts:170:33
2018-02-12 19:17:50 +01:00
(i32.mul
(get_local $1)
;;@ ~lib/allocator/tlsf.ts:170:38
2018-02-12 19:17:50 +01:00
(i32.const 32)
)
;;@ ~lib/allocator/tlsf.ts:170:48
2018-02-12 19:17:50 +01:00
(get_local $2)
)
;;@ ~lib/allocator/tlsf.ts:170:61
2018-02-12 19:17:50 +01:00
(i32.const 4)
)
)
;;@ ~lib/allocator/tlsf.ts:171:6
2018-02-12 19:17:50 +01:00
(get_local $3)
)
)
(func $~lib/allocator/tlsf/Root#get:tailRef (; 10 ;) (type $ii) (param $0 i32) (result i32)
;;@ ~lib/allocator/tlsf.ts:180:58
(i32.load offset=2912
;;@ ~lib/allocator/tlsf.ts:180:44
(i32.const 0)
2018-02-12 19:17:50 +01:00
)
)
(func $~lib/allocator/tlsf/Block#get:right (; 11 ;) (type $ii) (param $0 i32) (result i32)
2018-02-12 19:17:50 +01:00
(local $1 i32)
;;@ ~lib/allocator/tlsf.ts:89:4
2018-02-12 19:17:50 +01:00
(if
(i32.eqz
;;@ ~lib/allocator/tlsf.ts:89:11
2018-02-12 19:17:50 +01:00
(i32.and
(i32.load
(get_local $0)
)
;;@ ~lib/allocator/tlsf.ts:89:23
2018-02-12 19:17:50 +01:00
(i32.xor
;;@ ~lib/allocator/tlsf.ts:89:24
2018-02-12 19:17:50 +01:00
(i32.const 3)
(i32.const -1)
)
)
)
(block
2018-06-09 02:27:10 +02:00
(call $~lib/env/abort
2018-02-12 19:17:50 +01:00
(i32.const 0)
2018-06-09 02:27:10 +02:00
(i32.const 8)
(i32.const 89)
2018-02-12 19:17:50 +01:00
(i32.const 4)
)
(unreachable)
)
)
;;@ ~lib/allocator/tlsf.ts:94:4
(if (result i32)
(i32.eqz
(tee_local $1
;;@ ~lib/allocator/tlsf.ts:91:6
(i32.add
;;@ ~lib/allocator/tlsf.ts:92:8
2018-02-12 19:17:50 +01:00
(i32.add
(get_local $0)
;;@ ~lib/allocator/tlsf.ts:92:34
(i32.const 8)
)
;;@ ~lib/allocator/tlsf.ts:92:47
(i32.and
;;@ ~lib/allocator/tlsf.ts:92:48
(i32.load
2018-02-12 19:17:50 +01:00
(get_local $0)
)
;;@ ~lib/allocator/tlsf.ts:92:60
(i32.xor
;;@ ~lib/allocator/tlsf.ts:92:61
(i32.const 3)
(i32.const -1)
2018-02-12 19:17:50 +01:00
)
)
)
)
)
(block
(call $~lib/env/abort
(i32.const 0)
(i32.const 8)
(i32.const 90)
(i32.const 11)
2018-02-12 19:17:50 +01:00
)
(unreachable)
2018-02-12 19:17:50 +01:00
)
(get_local $1)
2018-02-12 19:17:50 +01:00
)
)
(func $~lib/allocator/tlsf/fls<usize> (; 12 ;) (type $ii) (param $0 i32) (result i32)
;;@ ~lib/allocator/tlsf.ts:428:2
2018-02-12 19:17:50 +01:00
(if
(i32.eqz
;;@ ~lib/allocator/tlsf.ts:428:9
2018-02-12 19:17:50 +01:00
(i32.ne
(get_local $0)
;;@ ~lib/allocator/tlsf.ts:428:17
2018-02-12 19:17:50 +01:00
(i32.const 0)
)
)
(block
2018-06-09 02:27:10 +02:00
(call $~lib/env/abort
2018-02-12 19:17:50 +01:00
(i32.const 0)
2018-06-09 02:27:10 +02:00
(i32.const 8)
(i32.const 428)
2018-02-12 19:17:50 +01:00
(i32.const 2)
)
(unreachable)
)
)
;;@ ~lib/allocator/tlsf.ts:430:26
(i32.sub
;;@ ~lib/allocator/tlsf.ts:430:9
(i32.const 31)
;;@ ~lib/allocator/tlsf.ts:430:15
(i32.clz
;;@ ~lib/allocator/tlsf.ts:430:22
(get_local $0)
2018-02-12 19:17:50 +01:00
)
)
)
(func $~lib/allocator/tlsf/Root#getHead (; 13 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
;;@ ~lib/allocator/tlsf.ts:158:4
2018-02-12 19:17:50 +01:00
(if
(i32.eqz
;;@ ~lib/allocator/tlsf.ts:158:11
2018-02-12 19:17:50 +01:00
(i32.lt_u
(get_local $1)
;;@ ~lib/allocator/tlsf.ts:158:16
(i32.const 22)
2018-02-12 19:17:50 +01:00
)
)
(block
2018-06-09 02:27:10 +02:00
(call $~lib/env/abort
2018-02-12 19:17:50 +01:00
(i32.const 0)
2018-06-09 02:27:10 +02:00
(i32.const 8)
(i32.const 158)
2018-02-12 19:17:50 +01:00
(i32.const 4)
)
(unreachable)
)
)
;;@ ~lib/allocator/tlsf.ts:159:4
2018-02-12 19:17:50 +01:00
(if
(i32.eqz
;;@ ~lib/allocator/tlsf.ts:159:11
2018-02-12 19:17:50 +01:00
(i32.lt_u
(get_local $2)
;;@ ~lib/allocator/tlsf.ts:159:16
2018-02-12 19:17:50 +01:00
(i32.const 32)
)
)
(block
2018-06-09 02:27:10 +02:00
(call $~lib/env/abort
2018-02-12 19:17:50 +01:00
(i32.const 0)
2018-06-09 02:27:10 +02:00
(i32.const 8)
(i32.const 159)
2018-02-12 19:17:50 +01:00
(i32.const 4)
)
(unreachable)
)
)
;;@ ~lib/allocator/tlsf.ts:162:20
(i32.load offset=96
;;@ ~lib/allocator/tlsf.ts:161:6
(i32.add
(get_local $0)
;;@ ~lib/allocator/tlsf.ts:161:32
(i32.mul
(i32.add
;;@ ~lib/allocator/tlsf.ts:161:33
(i32.mul
(get_local $1)
;;@ ~lib/allocator/tlsf.ts:161:38
(i32.const 32)
2018-02-12 19:17:50 +01:00
)
;;@ ~lib/allocator/tlsf.ts:161:48
(get_local $2)
2018-02-12 19:17:50 +01:00
)
;;@ ~lib/allocator/tlsf.ts:161:61
(i32.const 4)
2018-02-12 19:17:50 +01:00
)
)
)
)
(func $~lib/allocator/tlsf/Root#getSLMap (; 14 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
;;@ ~lib/allocator/tlsf.ts:138:4
2018-02-12 19:17:50 +01:00
(if
(i32.eqz
;;@ ~lib/allocator/tlsf.ts:138:11
2018-02-12 19:17:50 +01:00
(i32.lt_u
(get_local $1)
;;@ ~lib/allocator/tlsf.ts:138:16
(i32.const 22)
2018-02-12 19:17:50 +01:00
)
)
(block
2018-06-09 02:27:10 +02:00
(call $~lib/env/abort
2018-02-12 19:17:50 +01:00
(i32.const 0)
2018-06-09 02:27:10 +02:00
(i32.const 8)
(i32.const 138)
2018-02-12 19:17:50 +01:00
(i32.const 4)
)
(unreachable)
)
)
;;@ ~lib/allocator/tlsf.ts:139:68
(i32.load offset=4
;;@ ~lib/allocator/tlsf.ts:139:21
(i32.add
(get_local $0)
;;@ ~lib/allocator/tlsf.ts:139:47
(i32.mul
(get_local $1)
;;@ ~lib/allocator/tlsf.ts:139:52
(i32.const 4)
2018-02-12 19:17:50 +01:00
)
)
)
)
(func $~lib/allocator/tlsf/Root#remove (; 15 ;) (type $iiv) (param $0 i32) (param $1 i32)
2018-02-12 19:17:50 +01:00
(local $2 i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
(local $6 i32)
(local $7 i32)
(local $8 i32)
;;@ ~lib/allocator/tlsf.ts:257:4
2018-02-12 19:17:50 +01:00
(set_local $2
;;@ ~lib/allocator/tlsf.ts:257:20
2018-02-12 19:17:50 +01:00
(i32.load
(get_local $1)
)
)
;;@ ~lib/allocator/tlsf.ts:258:4
2018-02-12 19:17:50 +01:00
(if
(i32.eqz
;;@ ~lib/allocator/tlsf.ts:258:11
2018-02-12 19:17:50 +01:00
(i32.and
(get_local $2)
;;@ ~lib/allocator/tlsf.ts:258:23
2018-02-12 19:17:50 +01:00
(i32.const 1)
)
)
(block
2018-06-09 02:27:10 +02:00
(call $~lib/env/abort
2018-02-12 19:17:50 +01:00
(i32.const 0)
2018-06-09 02:27:10 +02:00
(i32.const 8)
(i32.const 258)
2018-02-12 19:17:50 +01:00
(i32.const 4)
)
(unreachable)
)
)
;;@ ~lib/allocator/tlsf.ts:259:4
2018-02-12 19:17:50 +01:00
(set_local $3
;;@ ~lib/allocator/tlsf.ts:259:15
2018-02-12 19:17:50 +01:00
(i32.and
(get_local $2)
;;@ ~lib/allocator/tlsf.ts:259:27
2018-02-12 19:17:50 +01:00
(i32.xor
;;@ ~lib/allocator/tlsf.ts:259:28
2018-02-12 19:17:50 +01:00
(i32.const 3)
(i32.const -1)
)
)
)
;;@ ~lib/allocator/tlsf.ts:260:4
2018-02-12 19:17:50 +01:00
(if
(i32.eqz
;;@ ~lib/allocator/tlsf.ts:260:11
(if (result i32)
(tee_local $4
(i32.ge_u
2018-02-12 19:17:50 +01:00
(get_local $3)
;;@ ~lib/allocator/tlsf.ts:260:19
(i32.const 16)
2018-02-12 19:17:50 +01:00
)
)
;;@ ~lib/allocator/tlsf.ts:260:37
(i32.lt_u
(get_local $3)
;;@ ~lib/allocator/tlsf.ts:260:44
(i32.const 1073741824)
)
(get_local $4)
2018-02-12 19:17:50 +01:00
)
)
(block
2018-06-09 02:27:10 +02:00
(call $~lib/env/abort
2018-02-12 19:17:50 +01:00
(i32.const 0)
2018-06-09 02:27:10 +02:00
(i32.const 8)
(i32.const 260)
2018-02-12 19:17:50 +01:00
(i32.const 4)
)
(unreachable)
)
)
;;@ ~lib/allocator/tlsf.ts:264:4
2018-02-12 19:17:50 +01:00
(if
;;@ ~lib/allocator/tlsf.ts:264:8
2018-02-12 19:17:50 +01:00
(i32.lt_u
(get_local $3)
;;@ ~lib/allocator/tlsf.ts:264:15
(i32.const 256)
2018-02-12 19:17:50 +01:00
)
;;@ ~lib/allocator/tlsf.ts:264:24
2018-02-12 19:17:50 +01:00
(block
;;@ ~lib/allocator/tlsf.ts:265:6
2018-02-12 19:17:50 +01:00
(set_local $5
;;@ ~lib/allocator/tlsf.ts:265:11
2018-02-12 19:17:50 +01:00
(i32.const 0)
)
;;@ ~lib/allocator/tlsf.ts:266:6
2018-02-12 19:17:50 +01:00
(set_local $6
;;@ ~lib/allocator/tlsf.ts:266:11
2018-02-12 19:17:50 +01:00
(i32.div_u
;;@ ~lib/allocator/tlsf.ts:266:17
2018-02-12 19:17:50 +01:00
(get_local $3)
;;@ ~lib/allocator/tlsf.ts:266:24
(i32.const 8)
2018-02-12 19:17:50 +01:00
)
)
)
;;@ ~lib/allocator/tlsf.ts:267:11
2018-02-12 19:17:50 +01:00
(block
;;@ ~lib/allocator/tlsf.ts:268:6
2018-02-12 19:17:50 +01:00
(set_local $5
;;@ ~lib/allocator/tlsf.ts:268:11
2018-04-03 23:56:48 +02:00
(call $~lib/allocator/tlsf/fls<usize>
;;@ ~lib/allocator/tlsf.ts:268:22
2018-02-12 19:17:50 +01:00
(get_local $3)
)
)
;;@ ~lib/allocator/tlsf.ts:269:6
2018-02-12 19:17:50 +01:00
(set_local $6
;;@ ~lib/allocator/tlsf.ts:269:11
2018-02-12 19:17:50 +01:00
(i32.xor
;;@ ~lib/allocator/tlsf.ts:269:17
2018-02-12 19:17:50 +01:00
(i32.shr_u
;;@ ~lib/allocator/tlsf.ts:269:18
2018-02-12 19:17:50 +01:00
(get_local $3)
;;@ ~lib/allocator/tlsf.ts:269:26
2018-02-12 19:17:50 +01:00
(i32.sub
;;@ ~lib/allocator/tlsf.ts:269:27
2018-02-12 19:17:50 +01:00
(get_local $5)
;;@ ~lib/allocator/tlsf.ts:269:32
2018-02-12 19:17:50 +01:00
(i32.const 5)
)
)
;;@ ~lib/allocator/tlsf.ts:269:44
2018-02-12 19:17:50 +01:00
(i32.shl
;;@ ~lib/allocator/tlsf.ts:269:45
2018-02-12 19:17:50 +01:00
(i32.const 1)
;;@ ~lib/allocator/tlsf.ts:269:50
2018-02-12 19:17:50 +01:00
(i32.const 5)
)
)
)
;;@ ~lib/allocator/tlsf.ts:270:6
2018-02-12 19:17:50 +01:00
(set_local $5
(i32.sub
(get_local $5)
;;@ ~lib/allocator/tlsf.ts:270:12
2018-02-12 19:17:50 +01:00
(i32.sub
(i32.const 8)
;;@ ~lib/allocator/tlsf.ts:270:22
2018-02-12 19:17:50 +01:00
(i32.const 1)
)
)
)
)
)
;;@ ~lib/allocator/tlsf.ts:274:4
2018-02-12 19:17:50 +01:00
(set_local $7
;;@ ~lib/allocator/tlsf.ts:274:15
2018-02-12 19:17:50 +01:00
(i32.load offset=4
(get_local $1)
)
)
;;@ ~lib/allocator/tlsf.ts:275:4
2018-02-12 19:17:50 +01:00
(set_local $8
;;@ ~lib/allocator/tlsf.ts:275:15
2018-02-12 19:17:50 +01:00
(i32.load offset=8
(get_local $1)
)
)
;;@ ~lib/allocator/tlsf.ts:276:4
2018-02-12 19:17:50 +01:00
(if
;;@ ~lib/allocator/tlsf.ts:276:8
2018-02-12 19:17:50 +01:00
(get_local $7)
;;@ ~lib/allocator/tlsf.ts:276:14
2018-02-12 19:17:50 +01:00
(i32.store offset=8
(get_local $7)
;;@ ~lib/allocator/tlsf.ts:276:26
2018-02-12 19:17:50 +01:00
(get_local $8)
)
)
;;@ ~lib/allocator/tlsf.ts:277:4
2018-02-12 19:17:50 +01:00
(if
;;@ ~lib/allocator/tlsf.ts:277:8
2018-02-12 19:17:50 +01:00
(get_local $8)
;;@ ~lib/allocator/tlsf.ts:277:14
2018-02-12 19:17:50 +01:00
(i32.store offset=4
(get_local $8)
;;@ ~lib/allocator/tlsf.ts:277:26
2018-02-12 19:17:50 +01:00
(get_local $7)
)
)
;;@ ~lib/allocator/tlsf.ts:280:4
2018-02-12 19:17:50 +01:00
(if
;;@ ~lib/allocator/tlsf.ts:280:8
2018-02-12 19:17:50 +01:00
(i32.eq
(get_local $1)
;;@ ~lib/allocator/tlsf.ts:280:22
2018-04-03 23:56:48 +02:00
(call $~lib/allocator/tlsf/Root#getHead
;;@ ~lib/allocator/tlsf.ts:280:17
2018-02-12 19:17:50 +01:00
(get_local $0)
;;@ ~lib/allocator/tlsf.ts:280:30
2018-02-12 19:17:50 +01:00
(get_local $5)
;;@ ~lib/allocator/tlsf.ts:280:34
2018-02-12 19:17:50 +01:00
(get_local $6)
)
)
;;@ ~lib/allocator/tlsf.ts:280:39
2018-02-12 19:17:50 +01:00
(block
;;@ ~lib/allocator/tlsf.ts:281:11
2018-04-03 23:56:48 +02:00
(call $~lib/allocator/tlsf/Root#setHead
;;@ ~lib/allocator/tlsf.ts:281:6
2018-02-12 19:17:50 +01:00
(get_local $0)
;;@ ~lib/allocator/tlsf.ts:281:19
2018-02-12 19:17:50 +01:00
(get_local $5)
;;@ ~lib/allocator/tlsf.ts:281:23
2018-02-12 19:17:50 +01:00
(get_local $6)
;;@ ~lib/allocator/tlsf.ts:281:27
2018-02-12 19:17:50 +01:00
(get_local $8)
)
;;@ ~lib/allocator/tlsf.ts:284:6
2018-02-12 19:17:50 +01:00
(if
;;@ ~lib/allocator/tlsf.ts:284:10
2018-02-12 19:17:50 +01:00
(i32.eqz
;;@ ~lib/allocator/tlsf.ts:284:11
2018-02-12 19:17:50 +01:00
(get_local $8)
)
;;@ ~lib/allocator/tlsf.ts:284:17
2018-02-12 19:17:50 +01:00
(block
;;@ ~lib/allocator/tlsf.ts:285:8
(set_local $4
;;@ ~lib/allocator/tlsf.ts:285:25
2018-04-03 23:56:48 +02:00
(call $~lib/allocator/tlsf/Root#getSLMap
;;@ ~lib/allocator/tlsf.ts:285:20
2018-02-12 19:17:50 +01:00
(get_local $0)
;;@ ~lib/allocator/tlsf.ts:285:34
2018-02-12 19:17:50 +01:00
(get_local $5)
)
)
;;@ ~lib/allocator/tlsf.ts:286:13
2018-04-03 23:56:48 +02:00
(call $~lib/allocator/tlsf/Root#setSLMap
;;@ ~lib/allocator/tlsf.ts:286:8
2018-02-12 19:17:50 +01:00
(get_local $0)
;;@ ~lib/allocator/tlsf.ts:286:22
2018-02-12 19:17:50 +01:00
(get_local $5)
;;@ ~lib/allocator/tlsf.ts:286:26
(tee_local $4
2018-02-12 19:17:50 +01:00
(i32.and
(get_local $4)
;;@ ~lib/allocator/tlsf.ts:286:35
2018-02-12 19:17:50 +01:00
(i32.xor
;;@ ~lib/allocator/tlsf.ts:286:36
2018-02-12 19:17:50 +01:00
(i32.shl
;;@ ~lib/allocator/tlsf.ts:286:37
2018-02-12 19:17:50 +01:00
(i32.const 1)
;;@ ~lib/allocator/tlsf.ts:286:42
2018-02-12 19:17:50 +01:00
(get_local $6)
)
(i32.const -1)
)
)
)
)
;;@ ~lib/allocator/tlsf.ts:289:8
2018-02-12 19:17:50 +01:00
(if
;;@ ~lib/allocator/tlsf.ts:289:12
2018-02-12 19:17:50 +01:00
(i32.eqz
;;@ ~lib/allocator/tlsf.ts:289:13
(get_local $4)
2018-02-12 19:17:50 +01:00
)
;;@ ~lib/allocator/tlsf.ts:289:20
2018-02-12 19:17:50 +01:00
(i32.store
(get_local $0)
(i32.and
(i32.load
(get_local $0)
)
;;@ ~lib/allocator/tlsf.ts:289:34
2018-02-12 19:17:50 +01:00
(i32.xor
;;@ ~lib/allocator/tlsf.ts:289:35
2018-02-12 19:17:50 +01:00
(i32.shl
;;@ ~lib/allocator/tlsf.ts:289:36
2018-02-12 19:17:50 +01:00
(i32.const 1)
;;@ ~lib/allocator/tlsf.ts:289:41
2018-02-12 19:17:50 +01:00
(get_local $5)
)
(i32.const -1)
)
)
)
)
)
)
)
)
)
(func $~lib/allocator/tlsf/Block#get:left (; 16 ;) (type $ii) (param $0 i32) (result i32)
2018-02-12 19:17:50 +01:00
(local $1 i32)
;;@ ~lib/allocator/tlsf.ts:81:4
2018-02-12 19:17:50 +01:00
(if
(i32.eqz
;;@ ~lib/allocator/tlsf.ts:81:11
2018-02-12 19:17:50 +01:00
(i32.and
(i32.load
(get_local $0)
)
;;@ ~lib/allocator/tlsf.ts:81:23
2018-02-12 19:17:50 +01:00
(i32.const 2)
)
)
(block
2018-06-09 02:27:10 +02:00
(call $~lib/env/abort
2018-02-12 19:17:50 +01:00
(i32.const 0)
2018-06-09 02:27:10 +02:00
(i32.const 8)
(i32.const 81)
2018-02-12 19:17:50 +01:00
(i32.const 4)
)
(unreachable)
)
)
;;@ ~lib/allocator/tlsf.ts:84:4
(if (result i32)
(i32.eqz
(tee_local $1
;;@ ~lib/allocator/tlsf.ts:83:6
(i32.load
;;@ ~lib/allocator/tlsf.ts:83:18
(i32.sub
(get_local $0)
;;@ ~lib/allocator/tlsf.ts:83:44
(i32.const 4)
2018-02-12 19:17:50 +01:00
)
)
)
)
(block
(call $~lib/env/abort
(i32.const 0)
(i32.const 8)
(i32.const 82)
(i32.const 11)
2018-02-12 19:17:50 +01:00
)
(unreachable)
2018-02-12 19:17:50 +01:00
)
(get_local $1)
2018-02-12 19:17:50 +01:00
)
)
(func $~lib/allocator/tlsf/Root#setJump (; 17 ;) (type $iiiv) (param $0 i32) (param $1 i32) (param $2 i32)
;;@ ~lib/allocator/tlsf.ts:334:4
2018-02-12 19:17:50 +01:00
(if
(i32.eqz
;;@ ~lib/allocator/tlsf.ts:334:11
2018-02-12 19:17:50 +01:00
(i32.and
(i32.load
(get_local $1)
)
;;@ ~lib/allocator/tlsf.ts:334:23
2018-02-12 19:17:50 +01:00
(i32.const 1)
)
)
(block
2018-06-09 02:27:10 +02:00
(call $~lib/env/abort
2018-02-12 19:17:50 +01:00
(i32.const 0)
2018-06-09 02:27:10 +02:00
(i32.const 8)
(i32.const 334)
2018-02-12 19:17:50 +01:00
(i32.const 4)
)
(unreachable)
)
)
;;@ ~lib/allocator/tlsf.ts:335:4
2018-02-12 19:17:50 +01:00
(if
(i32.eqz
;;@ ~lib/allocator/tlsf.ts:335:11
2018-02-12 19:17:50 +01:00
(i32.eq
2018-04-03 23:56:48 +02:00
(call $~lib/allocator/tlsf/Block#get:right
2018-02-12 19:17:50 +01:00
(get_local $1)
)
;;@ ~lib/allocator/tlsf.ts:335:25
2018-02-12 19:17:50 +01:00
(get_local $2)
)
)
(block
2018-06-09 02:27:10 +02:00
(call $~lib/env/abort
2018-02-12 19:17:50 +01:00
(i32.const 0)
2018-06-09 02:27:10 +02:00
(i32.const 8)
(i32.const 335)
2018-02-12 19:17:50 +01:00
(i32.const 4)
)
(unreachable)
)
)
;;@ ~lib/allocator/tlsf.ts:336:4
2018-02-12 19:17:50 +01:00
(if
(i32.eqz
;;@ ~lib/allocator/tlsf.ts:336:11
2018-02-12 19:17:50 +01:00
(i32.and
(i32.load
(get_local $2)
)
;;@ ~lib/allocator/tlsf.ts:336:24
2018-02-12 19:17:50 +01:00
(i32.const 2)
)
)
(block
2018-06-09 02:27:10 +02:00
(call $~lib/env/abort
2018-02-12 19:17:50 +01:00
(i32.const 0)
2018-06-09 02:27:10 +02:00
(i32.const 8)
(i32.const 336)
2018-02-12 19:17:50 +01:00
(i32.const 4)
)
(unreachable)
)
)
;;@ ~lib/allocator/tlsf.ts:337:4
2018-02-12 19:17:50 +01:00
(i32.store
;;@ ~lib/allocator/tlsf.ts:338:6
2018-02-12 19:17:50 +01:00
(i32.sub
(get_local $2)
;;@ ~lib/allocator/tlsf.ts:338:33
2018-02-12 19:17:50 +01:00
(i32.const 4)
)
;;@ ~lib/allocator/tlsf.ts:339:6
2018-02-12 19:17:50 +01:00
(get_local $1)
)
)
(func $~lib/allocator/tlsf/Root#insert (; 18 ;) (type $iiv) (param $0 i32) (param $1 i32)
2018-02-12 19:17:50 +01:00
(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)
;;@ ~lib/allocator/tlsf.ts:189:4
2018-02-12 19:17:50 +01:00
(if
(i32.eqz
;;@ ~lib/allocator/tlsf.ts:189:11
2018-02-12 19:17:50 +01:00
(get_local $1)
)
(block
2018-06-09 02:27:10 +02:00
(call $~lib/env/abort
2018-02-12 19:17:50 +01:00
(i32.const 0)
2018-06-09 02:27:10 +02:00
(i32.const 8)
(i32.const 189)
2018-02-12 19:17:50 +01:00
(i32.const 4)
)
(unreachable)
)
)
;;@ ~lib/allocator/tlsf.ts:190:4
2018-02-12 19:17:50 +01:00
(set_local $2
;;@ ~lib/allocator/tlsf.ts:190:20
2018-02-12 19:17:50 +01:00
(i32.load
(get_local $1)
)
)
;;@ ~lib/allocator/tlsf.ts:191:4
2018-02-12 19:17:50 +01:00
(if
(i32.eqz
;;@ ~lib/allocator/tlsf.ts:191:11
2018-02-12 19:17:50 +01:00
(i32.and
(get_local $2)
;;@ ~lib/allocator/tlsf.ts:191:23
2018-02-12 19:17:50 +01:00
(i32.const 1)
)
)
(block
2018-06-09 02:27:10 +02:00
(call $~lib/env/abort
2018-02-12 19:17:50 +01:00
(i32.const 0)
2018-06-09 02:27:10 +02:00
(i32.const 8)
(i32.const 191)
2018-02-12 19:17:50 +01:00
(i32.const 4)
)
(unreachable)
)
)
;;@ ~lib/allocator/tlsf.ts:193:4
2018-02-12 19:17:50 +01:00
(if
(i32.eqz
;;@ ~lib/allocator/tlsf.ts:194:6
(if (result i32)
(tee_local $4
(i32.ge_u
(tee_local $3
;;@ ~lib/allocator/tlsf.ts:194:14
(i32.and
(i32.load
(get_local $1)
)
;;@ ~lib/allocator/tlsf.ts:194:27
(i32.xor
;;@ ~lib/allocator/tlsf.ts:194:28
(i32.const 3)
(i32.const -1)
2018-02-12 19:17:50 +01:00
)
)
)
;;@ ~lib/allocator/tlsf.ts:194:37
(i32.const 16)
2018-02-12 19:17:50 +01:00
)
)
;;@ ~lib/allocator/tlsf.ts:194:55
(i32.lt_u
(get_local $3)
;;@ ~lib/allocator/tlsf.ts:194:62
(i32.const 1073741824)
)
(get_local $4)
2018-02-12 19:17:50 +01:00
)
)
(block
2018-06-09 02:27:10 +02:00
(call $~lib/env/abort
2018-02-12 19:17:50 +01:00
(i32.const 0)
2018-06-09 02:27:10 +02:00
(i32.const 8)
(i32.const 193)
2018-02-12 19:17:50 +01:00
(i32.const 4)
)
(unreachable)
)
)
;;@ ~lib/allocator/tlsf.ts:197:4
2018-02-12 19:17:50 +01:00
(set_local $5
;;@ ~lib/allocator/tlsf.ts:197:23
2018-02-12 19:17:50 +01:00
(if (result i32)
(i32.eqz
(tee_local $4
;;@ ~lib/allocator/tlsf.ts:197:30
2018-04-03 23:56:48 +02:00
(call $~lib/allocator/tlsf/Block#get:right
2018-02-12 19:17:50 +01:00
(get_local $1)
)
)
)
(block
2018-06-09 02:27:10 +02:00
(call $~lib/env/abort
2018-02-12 19:17:50 +01:00
(i32.const 0)
2018-06-09 02:27:10 +02:00
(i32.const 8)
(i32.const 197)
2018-02-12 19:17:50 +01:00
(i32.const 23)
)
(unreachable)
)
(get_local $4)
)
)
;;@ ~lib/allocator/tlsf.ts:198:4
2018-02-12 19:17:50 +01:00
(set_local $6
;;@ ~lib/allocator/tlsf.ts:198:20
2018-02-12 19:17:50 +01:00
(i32.load
(get_local $5)
)
)
;;@ ~lib/allocator/tlsf.ts:201:4
2018-02-12 19:17:50 +01:00
(if
;;@ ~lib/allocator/tlsf.ts:201:8
2018-02-12 19:17:50 +01:00
(i32.and
(get_local $6)
;;@ ~lib/allocator/tlsf.ts:201:20
2018-02-12 19:17:50 +01:00
(i32.const 1)
)
;;@ ~lib/allocator/tlsf.ts:201:26
2018-02-12 19:17:50 +01:00
(block
;;@ ~lib/allocator/tlsf.ts:202:11
2018-04-03 23:56:48 +02:00
(call $~lib/allocator/tlsf/Root#remove
;;@ ~lib/allocator/tlsf.ts:202:6
2018-02-12 19:17:50 +01:00
(get_local $0)
;;@ ~lib/allocator/tlsf.ts:202:18
2018-02-12 19:17:50 +01:00
(get_local $5)
)
;;@ ~lib/allocator/tlsf.ts:203:6
2018-02-12 19:17:50 +01:00
(i32.store
(get_local $1)
;;@ ~lib/allocator/tlsf.ts:203:19
2018-02-12 19:17:50 +01:00
(tee_local $2
(i32.add
;;@ ~lib/allocator/tlsf.ts:203:20
2018-02-12 19:17:50 +01:00
(get_local $2)
;;@ ~lib/allocator/tlsf.ts:203:33
2018-02-12 19:17:50 +01:00
(i32.add
(i32.const 8)
;;@ ~lib/allocator/tlsf.ts:203:46
2018-02-12 19:17:50 +01:00
(i32.and
;;@ ~lib/allocator/tlsf.ts:203:47
2018-02-12 19:17:50 +01:00
(get_local $6)
;;@ ~lib/allocator/tlsf.ts:203:59
2018-02-12 19:17:50 +01:00
(i32.xor
;;@ ~lib/allocator/tlsf.ts:203:60
2018-02-12 19:17:50 +01:00
(i32.const 3)
(i32.const -1)
)
)
)
)
)
)
;;@ ~lib/allocator/tlsf.ts:204:6
2018-02-12 19:17:50 +01:00
(set_local $5
;;@ ~lib/allocator/tlsf.ts:204:14
2018-04-03 23:56:48 +02:00
(call $~lib/allocator/tlsf/Block#get:right
2018-02-12 19:17:50 +01:00
(get_local $1)
)
)
;;@ ~lib/allocator/tlsf.ts:205:6
2018-02-12 19:17:50 +01:00
(set_local $6
;;@ ~lib/allocator/tlsf.ts:205:18
2018-02-12 19:17:50 +01:00
(i32.load
(get_local $5)
)
)
)
)
;;@ ~lib/allocator/tlsf.ts:210:4
2018-02-12 19:17:50 +01:00
(if
;;@ ~lib/allocator/tlsf.ts:210:8
2018-02-12 19:17:50 +01:00
(i32.and
(get_local $2)
;;@ ~lib/allocator/tlsf.ts:210:20
2018-02-12 19:17:50 +01:00
(i32.const 2)
)
;;@ ~lib/allocator/tlsf.ts:210:31
2018-02-12 19:17:50 +01:00
(block
;;@ ~lib/allocator/tlsf.ts:211:6
(set_local $4
;;@ ~lib/allocator/tlsf.ts:211:24
2018-02-12 19:17:50 +01:00
(if (result i32)
(i32.eqz
(tee_local $4
;;@ ~lib/allocator/tlsf.ts:211:31
2018-04-03 23:56:48 +02:00
(call $~lib/allocator/tlsf/Block#get:left
2018-02-12 19:17:50 +01:00
(get_local $1)
)
)
)
(block
2018-06-09 02:27:10 +02:00
(call $~lib/env/abort
2018-02-12 19:17:50 +01:00
(i32.const 0)
2018-06-09 02:27:10 +02:00
(i32.const 8)
(i32.const 211)
2018-02-12 19:17:50 +01:00
(i32.const 24)
)
(unreachable)
)
(get_local $4)
)
)
;;@ ~lib/allocator/tlsf.ts:212:6
(set_local $7
;;@ ~lib/allocator/tlsf.ts:212:21
2018-02-12 19:17:50 +01:00
(i32.load
(get_local $4)
2018-02-12 19:17:50 +01:00
)
)
;;@ ~lib/allocator/tlsf.ts:213:6
2018-02-12 19:17:50 +01:00
(if
(i32.eqz
;;@ ~lib/allocator/tlsf.ts:213:13
2018-02-12 19:17:50 +01:00
(i32.and
(get_local $7)
;;@ ~lib/allocator/tlsf.ts:213:24
2018-02-12 19:17:50 +01:00
(i32.const 1)
)
)
(block
2018-06-09 02:27:10 +02:00
(call $~lib/env/abort
2018-02-12 19:17:50 +01:00
(i32.const 0)
2018-06-09 02:27:10 +02:00
(i32.const 8)
(i32.const 213)
2018-02-12 19:17:50 +01:00
(i32.const 6)
)
(unreachable)
)
)
;;@ ~lib/allocator/tlsf.ts:214:11
2018-04-03 23:56:48 +02:00
(call $~lib/allocator/tlsf/Root#remove
;;@ ~lib/allocator/tlsf.ts:214:6
2018-02-12 19:17:50 +01:00
(get_local $0)
;;@ ~lib/allocator/tlsf.ts:214:18
(get_local $4)
2018-02-12 19:17:50 +01:00
)
;;@ ~lib/allocator/tlsf.ts:215:6
2018-02-12 19:17:50 +01:00
(i32.store
(get_local $4)
;;@ ~lib/allocator/tlsf.ts:215:18
(tee_local $7
2018-02-12 19:17:50 +01:00
(i32.add
;;@ ~lib/allocator/tlsf.ts:215:19
(get_local $7)
;;@ ~lib/allocator/tlsf.ts:215:31
2018-02-12 19:17:50 +01:00
(i32.add
(i32.const 8)
;;@ ~lib/allocator/tlsf.ts:215:44
2018-02-12 19:17:50 +01:00
(i32.and
;;@ ~lib/allocator/tlsf.ts:215:45
2018-02-12 19:17:50 +01:00
(get_local $2)
;;@ ~lib/allocator/tlsf.ts:215:57
2018-02-12 19:17:50 +01:00
(i32.xor
;;@ ~lib/allocator/tlsf.ts:215:58
2018-02-12 19:17:50 +01:00
(i32.const 3)
(i32.const -1)
)
)
)
)
)
)
;;@ ~lib/allocator/tlsf.ts:216:6
2018-02-12 19:17:50 +01:00
(set_local $1
;;@ ~lib/allocator/tlsf.ts:216:14
(get_local $4)
2018-02-12 19:17:50 +01:00
)
;;@ ~lib/allocator/tlsf.ts:217:6
2018-02-12 19:17:50 +01:00
(set_local $2
;;@ ~lib/allocator/tlsf.ts:217:18
(get_local $7)
2018-02-12 19:17:50 +01:00
)
)
)
;;@ ~lib/allocator/tlsf.ts:221:4
2018-02-12 19:17:50 +01:00
(i32.store
(get_local $5)
;;@ ~lib/allocator/tlsf.ts:221:17
2018-02-12 19:17:50 +01:00
(i32.or
(get_local $6)
;;@ ~lib/allocator/tlsf.ts:221:29
2018-02-12 19:17:50 +01:00
(i32.const 2)
)
)
;;@ ~lib/allocator/tlsf.ts:222:9
2018-04-03 23:56:48 +02:00
(call $~lib/allocator/tlsf/Root#setJump
;;@ ~lib/allocator/tlsf.ts:222:4
2018-02-12 19:17:50 +01:00
(get_local $0)
;;@ ~lib/allocator/tlsf.ts:222:17
2018-02-12 19:17:50 +01:00
(get_local $1)
;;@ ~lib/allocator/tlsf.ts:222:24
2018-02-12 19:17:50 +01:00
(get_local $5)
)
;;@ ~lib/allocator/tlsf.ts:225:4
2018-02-12 19:17:50 +01:00
(set_local $3
;;@ ~lib/allocator/tlsf.ts:225:11
2018-02-12 19:17:50 +01:00
(i32.and
(get_local $2)
;;@ ~lib/allocator/tlsf.ts:225:23
2018-02-12 19:17:50 +01:00
(i32.xor
;;@ ~lib/allocator/tlsf.ts:225:24
2018-02-12 19:17:50 +01:00
(i32.const 3)
(i32.const -1)
)
)
)
;;@ ~lib/allocator/tlsf.ts:226:4
2018-02-12 19:17:50 +01:00
(if
(i32.eqz
;;@ ~lib/allocator/tlsf.ts:226:11
(if (result i32)
2018-06-09 02:27:10 +02:00
(tee_local $7
(i32.ge_u
2018-02-12 19:17:50 +01:00
(get_local $3)
;;@ ~lib/allocator/tlsf.ts:226:19
(i32.const 16)
2018-02-12 19:17:50 +01:00
)
)
;;@ ~lib/allocator/tlsf.ts:226:37
(i32.lt_u
(get_local $3)
;;@ ~lib/allocator/tlsf.ts:226:44
(i32.const 1073741824)
)
2018-06-09 02:27:10 +02:00
(get_local $7)
2018-02-12 19:17:50 +01:00
)
)
(block
2018-06-09 02:27:10 +02:00
(call $~lib/env/abort
2018-02-12 19:17:50 +01:00
(i32.const 0)
2018-06-09 02:27:10 +02:00
(i32.const 8)
(i32.const 226)
2018-02-12 19:17:50 +01:00
(i32.const 4)
)
(unreachable)
)
)
;;@ ~lib/allocator/tlsf.ts:230:4
2018-02-12 19:17:50 +01:00
(if
;;@ ~lib/allocator/tlsf.ts:230:8
2018-02-12 19:17:50 +01:00
(i32.lt_u
(get_local $3)
;;@ ~lib/allocator/tlsf.ts:230:15
(i32.const 256)
2018-02-12 19:17:50 +01:00
)
;;@ ~lib/allocator/tlsf.ts:230:24
2018-02-12 19:17:50 +01:00
(block
;;@ ~lib/allocator/tlsf.ts:231:6
2018-06-09 02:27:10 +02:00
(set_local $8
;;@ ~lib/allocator/tlsf.ts:231:11
2018-02-12 19:17:50 +01:00
(i32.const 0)
)
;;@ ~lib/allocator/tlsf.ts:232:6
2018-06-09 02:27:10 +02:00
(set_local $9
;;@ ~lib/allocator/tlsf.ts:232:11
2018-02-12 19:17:50 +01:00
(i32.div_u
;;@ ~lib/allocator/tlsf.ts:232:17
2018-02-12 19:17:50 +01:00
(get_local $3)
;;@ ~lib/allocator/tlsf.ts:232:24
(i32.const 8)
2018-02-12 19:17:50 +01:00
)
)
)
;;@ ~lib/allocator/tlsf.ts:233:11
2018-02-12 19:17:50 +01:00
(block
;;@ ~lib/allocator/tlsf.ts:234:6
2018-06-09 02:27:10 +02:00
(set_local $8
;;@ ~lib/allocator/tlsf.ts:234:11
2018-04-03 23:56:48 +02:00
(call $~lib/allocator/tlsf/fls<usize>
;;@ ~lib/allocator/tlsf.ts:234:22
2018-02-12 19:17:50 +01:00
(get_local $3)
)
)
;;@ ~lib/allocator/tlsf.ts:235:6
2018-06-09 02:27:10 +02:00
(set_local $9
;;@ ~lib/allocator/tlsf.ts:235:11
2018-02-12 19:17:50 +01:00
(i32.xor
;;@ ~lib/allocator/tlsf.ts:235:17
2018-02-12 19:17:50 +01:00
(i32.shr_u
;;@ ~lib/allocator/tlsf.ts:235:18
2018-02-12 19:17:50 +01:00
(get_local $3)
;;@ ~lib/allocator/tlsf.ts:235:26
2018-02-12 19:17:50 +01:00
(i32.sub
;;@ ~lib/allocator/tlsf.ts:235:27
2018-06-09 02:27:10 +02:00
(get_local $8)
;;@ ~lib/allocator/tlsf.ts:235:32
2018-02-12 19:17:50 +01:00
(i32.const 5)
)
)
;;@ ~lib/allocator/tlsf.ts:235:44
2018-02-12 19:17:50 +01:00
(i32.shl
;;@ ~lib/allocator/tlsf.ts:235:45
2018-02-12 19:17:50 +01:00
(i32.const 1)
;;@ ~lib/allocator/tlsf.ts:235:50
2018-02-12 19:17:50 +01:00
(i32.const 5)
)
)
)
;;@ ~lib/allocator/tlsf.ts:236:6
2018-06-09 02:27:10 +02:00
(set_local $8
2018-02-12 19:17:50 +01:00
(i32.sub
2018-06-09 02:27:10 +02:00
(get_local $8)
;;@ ~lib/allocator/tlsf.ts:236:12
2018-02-12 19:17:50 +01:00
(i32.sub
(i32.const 8)
;;@ ~lib/allocator/tlsf.ts:236:22
2018-02-12 19:17:50 +01:00
(i32.const 1)
)
)
)
)
)
;;@ ~lib/allocator/tlsf.ts:240:4
2018-06-09 02:27:10 +02:00
(set_local $10
;;@ ~lib/allocator/tlsf.ts:240:20
2018-04-03 23:56:48 +02:00
(call $~lib/allocator/tlsf/Root#getHead
;;@ ~lib/allocator/tlsf.ts:240:15
2018-02-12 19:17:50 +01:00
(get_local $0)
;;@ ~lib/allocator/tlsf.ts:240:28
2018-06-09 02:27:10 +02:00
(get_local $8)
;;@ ~lib/allocator/tlsf.ts:240:32
2018-06-09 02:27:10 +02:00
(get_local $9)
2018-02-12 19:17:50 +01:00
)
)
;;@ ~lib/allocator/tlsf.ts:241:4
2018-02-12 19:17:50 +01:00
(i32.store offset=4
(get_local $1)
;;@ ~lib/allocator/tlsf.ts:241:17
2018-02-12 19:17:50 +01:00
(i32.const 0)
)
;;@ ~lib/allocator/tlsf.ts:242:4
2018-02-12 19:17:50 +01:00
(i32.store offset=8
(get_local $1)
;;@ ~lib/allocator/tlsf.ts:242:17
2018-06-09 02:27:10 +02:00
(get_local $10)
2018-02-12 19:17:50 +01:00
)
;;@ ~lib/allocator/tlsf.ts:243:4
2018-02-12 19:17:50 +01:00
(if
;;@ ~lib/allocator/tlsf.ts:243:8
2018-06-09 02:27:10 +02:00
(get_local $10)
;;@ ~lib/allocator/tlsf.ts:243:14
2018-02-12 19:17:50 +01:00
(i32.store offset=4
2018-06-09 02:27:10 +02:00
(get_local $10)
;;@ ~lib/allocator/tlsf.ts:243:26
2018-02-12 19:17:50 +01:00
(get_local $1)
)
)
;;@ ~lib/allocator/tlsf.ts:244:9
2018-04-03 23:56:48 +02:00
(call $~lib/allocator/tlsf/Root#setHead
;;@ ~lib/allocator/tlsf.ts:244:4
2018-02-12 19:17:50 +01:00
(get_local $0)
;;@ ~lib/allocator/tlsf.ts:244:17
2018-06-09 02:27:10 +02:00
(get_local $8)
;;@ ~lib/allocator/tlsf.ts:244:21
2018-06-09 02:27:10 +02:00
(get_local $9)
;;@ ~lib/allocator/tlsf.ts:244:25
2018-02-12 19:17:50 +01:00
(get_local $1)
)
;;@ ~lib/allocator/tlsf.ts:247:4
2018-02-12 19:17:50 +01:00
(i32.store
(get_local $0)
(i32.or
(i32.load
(get_local $0)
)
;;@ ~lib/allocator/tlsf.ts:247:18
2018-02-12 19:17:50 +01:00
(i32.shl
;;@ ~lib/allocator/tlsf.ts:247:19
2018-02-12 19:17:50 +01:00
(i32.const 1)
;;@ ~lib/allocator/tlsf.ts:247:24
2018-06-09 02:27:10 +02:00
(get_local $8)
2018-02-12 19:17:50 +01:00
)
)
)
;;@ ~lib/allocator/tlsf.ts:248:9
2018-04-03 23:56:48 +02:00
(call $~lib/allocator/tlsf/Root#setSLMap
;;@ ~lib/allocator/tlsf.ts:248:4
2018-02-12 19:17:50 +01:00
(get_local $0)
;;@ ~lib/allocator/tlsf.ts:248:18
2018-06-09 02:27:10 +02:00
(get_local $8)
;;@ ~lib/allocator/tlsf.ts:248:22
2018-02-12 19:17:50 +01:00
(i32.or
;;@ ~lib/allocator/tlsf.ts:248:27
2018-04-03 23:56:48 +02:00
(call $~lib/allocator/tlsf/Root#getSLMap
;;@ ~lib/allocator/tlsf.ts:248:22
2018-02-12 19:17:50 +01:00
(get_local $0)
;;@ ~lib/allocator/tlsf.ts:248:36
2018-06-09 02:27:10 +02:00
(get_local $8)
2018-02-12 19:17:50 +01:00
)
;;@ ~lib/allocator/tlsf.ts:248:42
2018-02-12 19:17:50 +01:00
(i32.shl
;;@ ~lib/allocator/tlsf.ts:248:43
2018-02-12 19:17:50 +01:00
(i32.const 1)
;;@ ~lib/allocator/tlsf.ts:248:48
2018-06-09 02:27:10 +02:00
(get_local $9)
2018-02-12 19:17:50 +01:00
)
)
)
)
(func $~lib/allocator/tlsf/Root#addMemory (; 19 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
2018-02-12 19:17:50 +01:00
(local $3 i32)
(local $4 i32)
(local $5 i32)
(local $6 i32)
(local $7 i32)
(local $8 i32)
;;@ ~lib/allocator/tlsf.ts:377:4
2018-02-12 19:17:50 +01:00
(if
(i32.eqz
;;@ ~lib/allocator/tlsf.ts:377:11
2018-02-12 19:17:50 +01:00
(i32.le_u
(get_local $1)
;;@ ~lib/allocator/tlsf.ts:377:20
2018-02-12 19:17:50 +01:00
(get_local $2)
)
)
(block
2018-06-09 02:27:10 +02:00
(call $~lib/env/abort
2018-02-12 19:17:50 +01:00
(i32.const 0)
2018-06-09 02:27:10 +02:00
(i32.const 8)
(i32.const 377)
2018-02-12 19:17:50 +01:00
(i32.const 4)
)
(unreachable)
)
)
;;@ ~lib/allocator/tlsf.ts:378:4
2018-02-12 19:17:50 +01:00
(if
(i32.eqz
;;@ ~lib/allocator/tlsf.ts:378:11
2018-02-12 19:17:50 +01:00
(i32.eqz
;;@ ~lib/allocator/tlsf.ts:378:12
2018-02-12 19:17:50 +01:00
(i32.and
;;@ ~lib/allocator/tlsf.ts:378:13
2018-02-12 19:17:50 +01:00
(get_local $1)
;;@ ~lib/allocator/tlsf.ts:378:21
(i32.const 7)
2018-02-12 19:17:50 +01:00
)
)
)
(block
2018-06-09 02:27:10 +02:00
(call $~lib/env/abort
2018-02-12 19:17:50 +01:00
(i32.const 0)
2018-06-09 02:27:10 +02:00
(i32.const 8)
(i32.const 378)
2018-02-12 19:17:50 +01:00
(i32.const 4)
)
(unreachable)
)
)
;;@ ~lib/allocator/tlsf.ts:379:4
2018-02-12 19:17:50 +01:00
(if
(i32.eqz
;;@ ~lib/allocator/tlsf.ts:379:11
2018-02-12 19:17:50 +01:00
(i32.eqz
;;@ ~lib/allocator/tlsf.ts:379:12
2018-02-12 19:17:50 +01:00
(i32.and
;;@ ~lib/allocator/tlsf.ts:379:13
2018-02-12 19:17:50 +01:00
(get_local $2)
;;@ ~lib/allocator/tlsf.ts:379:19
(i32.const 7)
2018-02-12 19:17:50 +01:00
)
)
)
(block
2018-06-09 02:27:10 +02:00
(call $~lib/env/abort
2018-02-12 19:17:50 +01:00
(i32.const 0)
2018-06-09 02:27:10 +02:00
(i32.const 8)
(i32.const 379)
2018-02-12 19:17:50 +01:00
(i32.const 4)
)
(unreachable)
)
)
;;@ ~lib/allocator/tlsf.ts:381:4
2018-02-12 19:17:50 +01:00
(set_local $3
;;@ ~lib/allocator/tlsf.ts:381:18
2018-04-03 23:56:48 +02:00
(call $~lib/allocator/tlsf/Root#get:tailRef
2018-02-12 19:17:50 +01:00
(get_local $0)
)
)
;;@ ~lib/allocator/tlsf.ts:382:4
2018-02-12 19:17:50 +01:00
(set_local $4
;;@ ~lib/allocator/tlsf.ts:382:26
2018-02-12 19:17:50 +01:00
(i32.const 0)
)
;;@ ~lib/allocator/tlsf.ts:383:4
2018-02-12 19:17:50 +01:00
(if
;;@ ~lib/allocator/tlsf.ts:383:8
2018-02-12 19:17:50 +01:00
(get_local $3)
;;@ ~lib/allocator/tlsf.ts:383:17
2018-02-12 19:17:50 +01:00
(block
;;@ ~lib/allocator/tlsf.ts:384:6
2018-02-12 19:17:50 +01:00
(if
(i32.eqz
;;@ ~lib/allocator/tlsf.ts:384:13
2018-02-12 19:17:50 +01:00
(i32.ge_u
(get_local $1)
;;@ ~lib/allocator/tlsf.ts:384:22
2018-02-12 19:17:50 +01:00
(i32.add
(get_local $3)
;;@ ~lib/allocator/tlsf.ts:384:32
2018-02-12 19:17:50 +01:00
(i32.const 4)
)
)
)
(block
2018-06-09 02:27:10 +02:00
(call $~lib/env/abort
2018-02-12 19:17:50 +01:00
(i32.const 0)
2018-06-09 02:27:10 +02:00
(i32.const 8)
(i32.const 384)
2018-02-12 19:17:50 +01:00
(i32.const 6)
)
(unreachable)
)
)
;;@ ~lib/allocator/tlsf.ts:387:6
2018-02-12 19:17:50 +01:00
(if
;;@ ~lib/allocator/tlsf.ts:387:10
2018-02-12 19:17:50 +01:00
(i32.eq
(i32.sub
(get_local $1)
;;@ ~lib/allocator/tlsf.ts:387:18
(i32.const 8)
2018-02-12 19:17:50 +01:00
)
;;@ ~lib/allocator/tlsf.ts:387:32
2018-02-12 19:17:50 +01:00
(get_local $3)
)
;;@ ~lib/allocator/tlsf.ts:387:41
2018-02-12 19:17:50 +01:00
(block
;;@ ~lib/allocator/tlsf.ts:388:8
2018-02-12 19:17:50 +01:00
(set_local $1
(i32.sub
(get_local $1)
;;@ ~lib/allocator/tlsf.ts:388:17
(i32.const 8)
2018-02-12 19:17:50 +01:00
)
)
;;@ ~lib/allocator/tlsf.ts:389:8
2018-02-12 19:17:50 +01:00
(set_local $4
;;@ ~lib/allocator/tlsf.ts:389:19
2018-02-12 19:17:50 +01:00
(i32.load
(get_local $3)
)
)
)
)
)
2018-06-09 02:27:10 +02:00
;;@ ~lib/allocator/tlsf.ts:392:11
2018-02-12 19:17:50 +01:00
(if
(i32.eqz
;;@ ~lib/allocator/tlsf.ts:393:13
2018-02-12 19:17:50 +01:00
(i32.ge_u
(get_local $1)
;;@ ~lib/allocator/tlsf.ts:393:22
2018-02-12 19:17:50 +01:00
(i32.add
(get_local $0)
;;@ ~lib/allocator/tlsf.ts:393:48
(i32.const 2916)
2018-02-12 19:17:50 +01:00
)
)
)
(block
2018-06-09 02:27:10 +02:00
(call $~lib/env/abort
2018-02-12 19:17:50 +01:00
(i32.const 0)
2018-06-09 02:27:10 +02:00
(i32.const 8)
(i32.const 393)
2018-02-12 19:17:50 +01:00
(i32.const 6)
)
(unreachable)
)
)
)
;;@ ~lib/allocator/tlsf.ts:397:4
2018-02-12 19:17:50 +01:00
(set_local $5
;;@ ~lib/allocator/tlsf.ts:397:15
2018-02-12 19:17:50 +01:00
(i32.sub
(get_local $2)
;;@ ~lib/allocator/tlsf.ts:397:21
2018-02-12 19:17:50 +01:00
(get_local $1)
)
)
;;@ ~lib/allocator/tlsf.ts:398:4
2018-02-12 19:17:50 +01:00
(if
;;@ ~lib/allocator/tlsf.ts:398:8
2018-02-12 19:17:50 +01:00
(i32.lt_u
(get_local $5)
;;@ ~lib/allocator/tlsf.ts:398:15
2018-02-12 19:17:50 +01:00
(i32.add
(i32.add
(i32.const 8)
;;@ ~lib/allocator/tlsf.ts:398:28
(i32.const 16)
2018-02-12 19:17:50 +01:00
)
;;@ ~lib/allocator/tlsf.ts:398:45
(i32.const 8)
2018-02-12 19:17:50 +01:00
)
)
2018-06-09 02:27:10 +02:00
;;@ ~lib/allocator/tlsf.ts:398:57
2018-02-12 19:17:50 +01:00
(return
2018-06-09 02:27:10 +02:00
;;@ ~lib/allocator/tlsf.ts:399:13
2018-02-12 19:17:50 +01:00
(i32.const 0)
)
)
;;@ ~lib/allocator/tlsf.ts:403:4
2018-02-12 19:17:50 +01:00
(set_local $6
;;@ ~lib/allocator/tlsf.ts:403:19
2018-02-12 19:17:50 +01:00
(i32.sub
(get_local $5)
;;@ ~lib/allocator/tlsf.ts:403:26
2018-02-12 19:17:50 +01:00
(i32.mul
(i32.const 2)
;;@ ~lib/allocator/tlsf.ts:403:30
(i32.const 8)
2018-02-12 19:17:50 +01:00
)
)
)
;;@ ~lib/allocator/tlsf.ts:404:4
2018-02-12 19:17:50 +01:00
(set_local $7
;;@ ~lib/allocator/tlsf.ts:404:15
2018-02-12 19:17:50 +01:00
(get_local $1)
)
;;@ ~lib/allocator/tlsf.ts:405:4
2018-02-12 19:17:50 +01:00
(i32.store
(get_local $7)
;;@ ~lib/allocator/tlsf.ts:405:16
2018-02-12 19:17:50 +01:00
(i32.or
(i32.or
(get_local $6)
;;@ ~lib/allocator/tlsf.ts:405:27
2018-02-12 19:17:50 +01:00
(i32.const 1)
)
;;@ ~lib/allocator/tlsf.ts:405:34
2018-02-12 19:17:50 +01:00
(i32.and
;;@ ~lib/allocator/tlsf.ts:405:35
2018-02-12 19:17:50 +01:00
(get_local $4)
;;@ ~lib/allocator/tlsf.ts:405:46
2018-02-12 19:17:50 +01:00
(i32.const 2)
)
)
)
;;@ ~lib/allocator/tlsf.ts:406:4
2018-02-12 19:17:50 +01:00
(i32.store offset=4
(get_local $7)
;;@ ~lib/allocator/tlsf.ts:406:16
2018-02-12 19:17:50 +01:00
(i32.const 0)
)
;;@ ~lib/allocator/tlsf.ts:407:4
2018-02-12 19:17:50 +01:00
(i32.store offset=8
(get_local $7)
;;@ ~lib/allocator/tlsf.ts:407:16
2018-02-12 19:17:50 +01:00
(i32.const 0)
)
;;@ ~lib/allocator/tlsf.ts:410:4
2018-02-12 19:17:50 +01:00
(set_local $8
;;@ ~lib/allocator/tlsf.ts:410:15
2018-02-12 19:17:50 +01:00
(i32.sub
;;@ ~lib/allocator/tlsf.ts:410:33
2018-02-12 19:17:50 +01:00
(i32.add
(get_local $1)
;;@ ~lib/allocator/tlsf.ts:410:41
2018-02-12 19:17:50 +01:00
(get_local $5)
)
;;@ ~lib/allocator/tlsf.ts:410:48
(i32.const 8)
2018-02-12 19:17:50 +01:00
)
)
;;@ ~lib/allocator/tlsf.ts:411:4
2018-02-12 19:17:50 +01:00
(i32.store
(get_local $8)
;;@ ~lib/allocator/tlsf.ts:411:16
2018-02-12 19:17:50 +01:00
(i32.or
(i32.const 0)
;;@ ~lib/allocator/tlsf.ts:411:20
2018-02-12 19:17:50 +01:00
(i32.const 2)
)
)
;;@ ~lib/allocator/tlsf.ts:412:4
2018-04-03 23:56:48 +02:00
(call $~lib/allocator/tlsf/Root#set:tailRef
2018-02-12 19:17:50 +01:00
(get_local $0)
;;@ ~lib/allocator/tlsf.ts:412:19
2018-02-12 19:17:50 +01:00
(get_local $8)
)
;;@ ~lib/allocator/tlsf.ts:414:9
2018-04-03 23:56:48 +02:00
(call $~lib/allocator/tlsf/Root#insert
;;@ ~lib/allocator/tlsf.ts:414:4
2018-02-12 19:17:50 +01:00
(get_local $0)
;;@ ~lib/allocator/tlsf.ts:414:16
2018-02-12 19:17:50 +01:00
(get_local $7)
)
;;@ ~lib/allocator/tlsf.ts:416:11
(i32.const 1)
2018-02-12 19:17:50 +01:00
)
(func $~lib/allocator/tlsf/ffs<usize> (; 20 ;) (type $ii) (param $0 i32) (result i32)
;;@ ~lib/allocator/tlsf.ts:422:2
2018-02-12 19:17:50 +01:00
(if
(i32.eqz
;;@ ~lib/allocator/tlsf.ts:422:9
2018-02-12 19:17:50 +01:00
(i32.ne
(get_local $0)
;;@ ~lib/allocator/tlsf.ts:422:17
2018-02-12 19:17:50 +01:00
(i32.const 0)
)
)
(block
2018-06-09 02:27:10 +02:00
(call $~lib/env/abort
2018-02-12 19:17:50 +01:00
(i32.const 0)
2018-06-09 02:27:10 +02:00
(i32.const 8)
(i32.const 422)
2018-02-12 19:17:50 +01:00
(i32.const 2)
)
(unreachable)
)
)
;;@ ~lib/allocator/tlsf.ts:423:20
(i32.ctz
;;@ ~lib/allocator/tlsf.ts:423:16
(get_local $0)
2018-02-12 19:17:50 +01:00
)
)
(func $~lib/allocator/tlsf/ffs<u32> (; 21 ;) (type $ii) (param $0 i32) (result i32)
;;@ ~lib/allocator/tlsf.ts:422:2
2018-02-12 19:17:50 +01:00
(if
(i32.eqz
;;@ ~lib/allocator/tlsf.ts:422:9
2018-02-12 19:17:50 +01:00
(i32.ne
(get_local $0)
;;@ ~lib/allocator/tlsf.ts:422:17
2018-02-12 19:17:50 +01:00
(i32.const 0)
)
)
(block
2018-06-09 02:27:10 +02:00
(call $~lib/env/abort
2018-02-12 19:17:50 +01:00
(i32.const 0)
2018-06-09 02:27:10 +02:00
(i32.const 8)
(i32.const 422)
2018-02-12 19:17:50 +01:00
(i32.const 2)
)
(unreachable)
)
)
;;@ ~lib/allocator/tlsf.ts:423:20
(i32.ctz
;;@ ~lib/allocator/tlsf.ts:423:16
(get_local $0)
2018-02-12 19:17:50 +01:00
)
)
(func $~lib/allocator/tlsf/Root#search (; 22 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
2018-02-12 19:17:50 +01:00
(local $2 i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
(local $6 i32)
(local $7 i32)
;;@ ~lib/allocator/tlsf.ts:296:4
2018-02-12 19:17:50 +01:00
(if
(i32.eqz
;;@ ~lib/allocator/tlsf.ts:296:11
(if (result i32)
(tee_local $2
(i32.ge_u
2018-02-12 19:17:50 +01:00
(get_local $1)
;;@ ~lib/allocator/tlsf.ts:296:19
(i32.const 16)
2018-02-12 19:17:50 +01:00
)
)
;;@ ~lib/allocator/tlsf.ts:296:37
(i32.lt_u
(get_local $1)
;;@ ~lib/allocator/tlsf.ts:296:44
(i32.const 1073741824)
)
(get_local $2)
2018-02-12 19:17:50 +01:00
)
)
(block
2018-06-09 02:27:10 +02:00
(call $~lib/env/abort
2018-02-12 19:17:50 +01:00
(i32.const 0)
2018-06-09 02:27:10 +02:00
(i32.const 8)
(i32.const 296)
2018-02-12 19:17:50 +01:00
(i32.const 4)
)
(unreachable)
)
)
;;@ ~lib/allocator/tlsf.ts:300:4
2018-02-12 19:17:50 +01:00
(if
;;@ ~lib/allocator/tlsf.ts:300:8
2018-02-12 19:17:50 +01:00
(i32.lt_u
(get_local $1)
;;@ ~lib/allocator/tlsf.ts:300:15
(i32.const 256)
2018-02-12 19:17:50 +01:00
)
;;@ ~lib/allocator/tlsf.ts:300:24
2018-02-12 19:17:50 +01:00
(block
;;@ ~lib/allocator/tlsf.ts:301:6
2018-02-12 19:17:50 +01:00
(set_local $3
;;@ ~lib/allocator/tlsf.ts:301:11
2018-02-12 19:17:50 +01:00
(i32.const 0)
)
;;@ ~lib/allocator/tlsf.ts:302:6
2018-02-12 19:17:50 +01:00
(set_local $4
;;@ ~lib/allocator/tlsf.ts:302:11
2018-02-12 19:17:50 +01:00
(i32.div_u
;;@ ~lib/allocator/tlsf.ts:302:17
2018-02-12 19:17:50 +01:00
(get_local $1)
;;@ ~lib/allocator/tlsf.ts:302:24
(i32.const 8)
2018-02-12 19:17:50 +01:00
)
)
)
;;@ ~lib/allocator/tlsf.ts:303:11
2018-02-12 19:17:50 +01:00
(block
;;@ ~lib/allocator/tlsf.ts:305:6
2018-02-12 19:17:50 +01:00
(set_local $3
;;@ ~lib/allocator/tlsf.ts:305:11
2018-04-03 23:56:48 +02:00
(call $~lib/allocator/tlsf/fls<usize>
;;@ ~lib/allocator/tlsf.ts:305:22
2018-02-12 19:17:50 +01:00
(get_local $1)
)
)
;;@ ~lib/allocator/tlsf.ts:306:6
2018-02-12 19:17:50 +01:00
(set_local $4
;;@ ~lib/allocator/tlsf.ts:306:11
2018-02-12 19:17:50 +01:00
(i32.xor
;;@ ~lib/allocator/tlsf.ts:306:17
2018-02-12 19:17:50 +01:00
(i32.shr_u
;;@ ~lib/allocator/tlsf.ts:306:18
2018-02-12 19:17:50 +01:00
(get_local $1)
;;@ ~lib/allocator/tlsf.ts:306:26
2018-02-12 19:17:50 +01:00
(i32.sub
;;@ ~lib/allocator/tlsf.ts:306:27
2018-02-12 19:17:50 +01:00
(get_local $3)
;;@ ~lib/allocator/tlsf.ts:306:32
2018-02-12 19:17:50 +01:00
(i32.const 5)
)
)
;;@ ~lib/allocator/tlsf.ts:306:44
2018-02-12 19:17:50 +01:00
(i32.shl
;;@ ~lib/allocator/tlsf.ts:306:45
2018-02-12 19:17:50 +01:00
(i32.const 1)
;;@ ~lib/allocator/tlsf.ts:306:50
2018-02-12 19:17:50 +01:00
(i32.const 5)
)
)
)
;;@ ~lib/allocator/tlsf.ts:307:6
2018-02-12 19:17:50 +01:00
(set_local $3
(i32.sub
(get_local $3)
;;@ ~lib/allocator/tlsf.ts:307:12
2018-02-12 19:17:50 +01:00
(i32.sub
(i32.const 8)
;;@ ~lib/allocator/tlsf.ts:307:22
2018-02-12 19:17:50 +01:00
(i32.const 1)
)
)
)
;;@ ~lib/allocator/tlsf.ts:309:6
2018-02-12 19:17:50 +01:00
(if
;;@ ~lib/allocator/tlsf.ts:309:10
2018-02-12 19:17:50 +01:00
(i32.lt_u
(get_local $4)
;;@ ~lib/allocator/tlsf.ts:309:15
2018-02-12 19:17:50 +01:00
(i32.sub
(i32.const 32)
;;@ ~lib/allocator/tlsf.ts:309:25
2018-02-12 19:17:50 +01:00
(i32.const 1)
)
)
;;@ ~lib/allocator/tlsf.ts:309:28
2018-02-12 19:17:50 +01:00
(set_local $4
(i32.add
;;@ ~lib/allocator/tlsf.ts:309:30
2018-02-12 19:17:50 +01:00
(get_local $4)
(i32.const 1)
)
)
;;@ ~lib/allocator/tlsf.ts:310:11
2018-02-12 19:17:50 +01:00
(block
(set_local $3
(i32.add
;;@ ~lib/allocator/tlsf.ts:310:13
2018-02-12 19:17:50 +01:00
(get_local $3)
(i32.const 1)
)
)
;;@ ~lib/allocator/tlsf.ts:310:17
2018-02-12 19:17:50 +01:00
(set_local $4
;;@ ~lib/allocator/tlsf.ts:310:22
2018-02-12 19:17:50 +01:00
(i32.const 0)
)
)
)
)
)
;;@ ~lib/allocator/tlsf.ts:314:4
2018-02-12 19:17:50 +01:00
(set_local $5
;;@ ~lib/allocator/tlsf.ts:314:16
2018-02-12 19:17:50 +01:00
(i32.and
;;@ ~lib/allocator/tlsf.ts:314:21
2018-04-03 23:56:48 +02:00
(call $~lib/allocator/tlsf/Root#getSLMap
;;@ ~lib/allocator/tlsf.ts:314:16
2018-02-12 19:17:50 +01:00
(get_local $0)
;;@ ~lib/allocator/tlsf.ts:314:30
2018-02-12 19:17:50 +01:00
(get_local $3)
)
;;@ ~lib/allocator/tlsf.ts:314:36
2018-02-12 19:17:50 +01:00
(i32.shl
;;@ ~lib/allocator/tlsf.ts:314:37
2018-02-12 19:17:50 +01:00
(i32.xor
;;@ ~lib/allocator/tlsf.ts:314:38
2018-02-12 19:17:50 +01:00
(i32.const 0)
(i32.const -1)
)
;;@ ~lib/allocator/tlsf.ts:314:43
2018-02-12 19:17:50 +01:00
(get_local $4)
)
)
)
;;@ ~lib/allocator/tlsf.ts:316:4
2018-02-12 19:17:50 +01:00
(if
;;@ ~lib/allocator/tlsf.ts:316:8
2018-02-12 19:17:50 +01:00
(i32.eqz
;;@ ~lib/allocator/tlsf.ts:316:9
2018-02-12 19:17:50 +01:00
(get_local $5)
)
;;@ ~lib/allocator/tlsf.ts:316:16
2018-02-12 19:17:50 +01:00
(block
;;@ ~lib/allocator/tlsf.ts:318:6
(set_local $2
;;@ ~lib/allocator/tlsf.ts:318:18
2018-02-12 19:17:50 +01:00
(i32.and
(i32.load
(get_local $0)
)
;;@ ~lib/allocator/tlsf.ts:318:31
2018-02-12 19:17:50 +01:00
(i32.shl
;;@ ~lib/allocator/tlsf.ts:318:32
2018-02-12 19:17:50 +01:00
(i32.xor
;;@ ~lib/allocator/tlsf.ts:318:33
2018-02-12 19:17:50 +01:00
(i32.const 0)
(i32.const -1)
)
;;@ ~lib/allocator/tlsf.ts:318:38
2018-02-12 19:17:50 +01:00
(i32.add
;;@ ~lib/allocator/tlsf.ts:318:39
2018-02-12 19:17:50 +01:00
(get_local $3)
;;@ ~lib/allocator/tlsf.ts:318:44
2018-02-12 19:17:50 +01:00
(i32.const 1)
)
)
)
)
;;@ ~lib/allocator/tlsf.ts:319:6
2018-02-12 19:17:50 +01:00
(if
;;@ ~lib/allocator/tlsf.ts:319:10
2018-02-12 19:17:50 +01:00
(i32.eqz
;;@ ~lib/allocator/tlsf.ts:319:11
(get_local $2)
2018-02-12 19:17:50 +01:00
)
2018-06-09 02:27:10 +02:00
;;@ ~lib/allocator/tlsf.ts:319:18
2018-02-12 19:17:50 +01:00
(set_local $6
;;@ ~lib/allocator/tlsf.ts:320:15
2018-02-12 19:17:50 +01:00
(i32.const 0)
)
;;@ ~lib/allocator/tlsf.ts:321:13
2018-02-12 19:17:50 +01:00
(block
;;@ ~lib/allocator/tlsf.ts:322:8
2018-02-12 19:17:50 +01:00
(set_local $3
;;@ ~lib/allocator/tlsf.ts:322:13
2018-04-03 23:56:48 +02:00
(call $~lib/allocator/tlsf/ffs<usize>
;;@ ~lib/allocator/tlsf.ts:322:24
(get_local $2)
2018-02-12 19:17:50 +01:00
)
)
;;@ ~lib/allocator/tlsf.ts:323:8
2018-02-12 19:17:50 +01:00
(set_local $5
;;@ ~lib/allocator/tlsf.ts:323:16
2018-02-12 19:17:50 +01:00
(if (result i32)
2018-05-06 01:32:58 +02:00
(tee_local $7
;;@ ~lib/allocator/tlsf.ts:323:28
(call $~lib/allocator/tlsf/Root#getSLMap
;;@ ~lib/allocator/tlsf.ts:323:23
(get_local $0)
;;@ ~lib/allocator/tlsf.ts:323:37
(get_local $3)
2018-02-12 19:17:50 +01:00
)
)
2018-05-06 01:32:58 +02:00
(get_local $7)
2018-02-12 19:17:50 +01:00
(block
2018-06-09 02:27:10 +02:00
(call $~lib/env/abort
2018-02-12 19:17:50 +01:00
(i32.const 0)
2018-06-09 02:27:10 +02:00
(i32.const 8)
(i32.const 323)
2018-02-12 19:17:50 +01:00
(i32.const 16)
)
(unreachable)
)
)
)
;;@ ~lib/allocator/tlsf.ts:324:8
2018-02-12 19:17:50 +01:00
(set_local $6
;;@ ~lib/allocator/tlsf.ts:324:20
2018-04-03 23:56:48 +02:00
(call $~lib/allocator/tlsf/Root#getHead
;;@ ~lib/allocator/tlsf.ts:324:15
2018-02-12 19:17:50 +01:00
(get_local $0)
;;@ ~lib/allocator/tlsf.ts:324:28
2018-02-12 19:17:50 +01:00
(get_local $3)
;;@ ~lib/allocator/tlsf.ts:324:32
2018-04-03 23:56:48 +02:00
(call $~lib/allocator/tlsf/ffs<u32>
;;@ ~lib/allocator/tlsf.ts:324:41
2018-02-12 19:17:50 +01:00
(get_local $5)
)
)
)
)
)
)
2018-06-09 02:27:10 +02:00
;;@ ~lib/allocator/tlsf.ts:326:11
2018-02-12 19:17:50 +01:00
(set_local $6
;;@ ~lib/allocator/tlsf.ts:327:18
2018-04-03 23:56:48 +02:00
(call $~lib/allocator/tlsf/Root#getHead
;;@ ~lib/allocator/tlsf.ts:327:13
2018-02-12 19:17:50 +01:00
(get_local $0)
;;@ ~lib/allocator/tlsf.ts:327:26
2018-02-12 19:17:50 +01:00
(get_local $3)
;;@ ~lib/allocator/tlsf.ts:327:30
2018-04-03 23:56:48 +02:00
(call $~lib/allocator/tlsf/ffs<u32>
;;@ ~lib/allocator/tlsf.ts:327:39
2018-02-12 19:17:50 +01:00
(get_local $5)
)
)
)
)
;;@ ~lib/allocator/tlsf.ts:329:11
(get_local $6)
2018-02-12 19:17:50 +01:00
)
(func $~lib/allocator/tlsf/Root#use (; 23 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
2018-02-12 19:17:50 +01:00
(local $3 i32)
(local $4 i32)
(local $5 i32)
;;@ ~lib/allocator/tlsf.ts:347:4
2018-02-12 19:17:50 +01:00
(set_local $3
;;@ ~lib/allocator/tlsf.ts:347:20
2018-02-12 19:17:50 +01:00
(i32.load
(get_local $1)
)
)
;;@ ~lib/allocator/tlsf.ts:348:4
2018-02-12 19:17:50 +01:00
(if
(i32.eqz
;;@ ~lib/allocator/tlsf.ts:348:11
2018-02-12 19:17:50 +01:00
(i32.and
(get_local $3)
;;@ ~lib/allocator/tlsf.ts:348:23
2018-02-12 19:17:50 +01:00
(i32.const 1)
)
)
(block
2018-06-09 02:27:10 +02:00
(call $~lib/env/abort
2018-02-12 19:17:50 +01:00
(i32.const 0)
2018-06-09 02:27:10 +02:00
(i32.const 8)
(i32.const 348)
2018-02-12 19:17:50 +01:00
(i32.const 4)
)
(unreachable)
)
)
;;@ ~lib/allocator/tlsf.ts:349:4
2018-02-12 19:17:50 +01:00
(if
(i32.eqz
;;@ ~lib/allocator/tlsf.ts:349:11
(if (result i32)
(tee_local $4
(i32.ge_u
2018-02-12 19:17:50 +01:00
(get_local $2)
;;@ ~lib/allocator/tlsf.ts:349:19
(i32.const 16)
2018-02-12 19:17:50 +01:00
)
)
;;@ ~lib/allocator/tlsf.ts:349:37
(i32.lt_u
(get_local $2)
;;@ ~lib/allocator/tlsf.ts:349:44
(i32.const 1073741824)
)
(get_local $4)
2018-02-12 19:17:50 +01:00
)
)
(block
2018-06-09 02:27:10 +02:00
(call $~lib/env/abort
2018-02-12 19:17:50 +01:00
(i32.const 0)
2018-06-09 02:27:10 +02:00
(i32.const 8)
(i32.const 349)
2018-02-12 19:17:50 +01:00
(i32.const 4)
)
(unreachable)
)
)
;;@ ~lib/allocator/tlsf.ts:350:4
2018-02-12 19:17:50 +01:00
(if
(i32.eqz
;;@ ~lib/allocator/tlsf.ts:350:11
2018-02-12 19:17:50 +01:00
(i32.eqz
;;@ ~lib/allocator/tlsf.ts:350:12
2018-02-12 19:17:50 +01:00
(i32.and
;;@ ~lib/allocator/tlsf.ts:350:13
2018-02-12 19:17:50 +01:00
(get_local $2)
;;@ ~lib/allocator/tlsf.ts:350:20
(i32.const 7)
2018-02-12 19:17:50 +01:00
)
)
)
(block
2018-06-09 02:27:10 +02:00
(call $~lib/env/abort
2018-02-12 19:17:50 +01:00
(i32.const 0)
2018-06-09 02:27:10 +02:00
(i32.const 8)
(i32.const 350)
2018-02-12 19:17:50 +01:00
(i32.const 4)
)
(unreachable)
)
)
;;@ ~lib/allocator/tlsf.ts:352:9
2018-04-03 23:56:48 +02:00
(call $~lib/allocator/tlsf/Root#remove
;;@ ~lib/allocator/tlsf.ts:352:4
2018-02-12 19:17:50 +01:00
(get_local $0)
;;@ ~lib/allocator/tlsf.ts:352:16
2018-02-12 19:17:50 +01:00
(get_local $1)
)
;;@ ~lib/allocator/tlsf.ts:355:4
2018-02-12 19:17:50 +01:00
(set_local $5
;;@ ~lib/allocator/tlsf.ts:355:20
2018-02-12 19:17:50 +01:00
(i32.sub
(i32.and
;;@ ~lib/allocator/tlsf.ts:355:21
2018-02-12 19:17:50 +01:00
(get_local $3)
;;@ ~lib/allocator/tlsf.ts:355:33
2018-02-12 19:17:50 +01:00
(i32.xor
;;@ ~lib/allocator/tlsf.ts:355:34
2018-02-12 19:17:50 +01:00
(i32.const 3)
(i32.const -1)
)
)
;;@ ~lib/allocator/tlsf.ts:355:42
2018-02-12 19:17:50 +01:00
(get_local $2)
)
)
;;@ ~lib/allocator/tlsf.ts:356:4
2018-02-12 19:17:50 +01:00
(if
;;@ ~lib/allocator/tlsf.ts:356:8
2018-02-12 19:17:50 +01:00
(i32.ge_u
(get_local $5)
;;@ ~lib/allocator/tlsf.ts:356:21
2018-02-12 19:17:50 +01:00
(i32.add
(i32.const 8)
;;@ ~lib/allocator/tlsf.ts:356:34
(i32.const 16)
2018-02-12 19:17:50 +01:00
)
)
;;@ ~lib/allocator/tlsf.ts:356:50
2018-02-12 19:17:50 +01:00
(block
;;@ ~lib/allocator/tlsf.ts:357:6
2018-02-12 19:17:50 +01:00
(i32.store
(get_local $1)
;;@ ~lib/allocator/tlsf.ts:357:19
2018-02-12 19:17:50 +01:00
(i32.or
(get_local $2)
;;@ ~lib/allocator/tlsf.ts:357:26
2018-02-12 19:17:50 +01:00
(i32.and
;;@ ~lib/allocator/tlsf.ts:357:27
2018-02-12 19:17:50 +01:00
(get_local $3)
;;@ ~lib/allocator/tlsf.ts:357:39
2018-02-12 19:17:50 +01:00
(i32.const 2)
)
)
)
;;@ ~lib/allocator/tlsf.ts:359:6
(set_local $4
;;@ ~lib/allocator/tlsf.ts:359:18
2018-02-12 19:17:50 +01:00
(i32.add
;;@ ~lib/allocator/tlsf.ts:360:8
2018-02-12 19:17:50 +01:00
(i32.add
(get_local $1)
;;@ ~lib/allocator/tlsf.ts:360:35
(i32.const 8)
2018-02-12 19:17:50 +01:00
)
;;@ ~lib/allocator/tlsf.ts:360:48
2018-02-12 19:17:50 +01:00
(get_local $2)
)
)
;;@ ~lib/allocator/tlsf.ts:362:6
2018-02-12 19:17:50 +01:00
(i32.store
(get_local $4)
;;@ ~lib/allocator/tlsf.ts:362:19
2018-02-12 19:17:50 +01:00
(i32.or
(i32.sub
;;@ ~lib/allocator/tlsf.ts:362:20
2018-02-12 19:17:50 +01:00
(get_local $5)
;;@ ~lib/allocator/tlsf.ts:362:32
(i32.const 8)
2018-02-12 19:17:50 +01:00
)
;;@ ~lib/allocator/tlsf.ts:362:46
2018-02-12 19:17:50 +01:00
(i32.const 1)
)
)
;;@ ~lib/allocator/tlsf.ts:363:11
2018-04-03 23:56:48 +02:00
(call $~lib/allocator/tlsf/Root#insert
;;@ ~lib/allocator/tlsf.ts:363:6
2018-02-12 19:17:50 +01:00
(get_local $0)
;;@ ~lib/allocator/tlsf.ts:363:18
(get_local $4)
2018-02-12 19:17:50 +01:00
)
)
;;@ ~lib/allocator/tlsf.ts:366:11
2018-02-12 19:17:50 +01:00
(block
;;@ ~lib/allocator/tlsf.ts:367:6
2018-02-12 19:17:50 +01:00
(i32.store
(get_local $1)
;;@ ~lib/allocator/tlsf.ts:367:19
2018-02-12 19:17:50 +01:00
(i32.and
(get_local $3)
;;@ ~lib/allocator/tlsf.ts:367:31
2018-02-12 19:17:50 +01:00
(i32.xor
;;@ ~lib/allocator/tlsf.ts:367:32
2018-02-12 19:17:50 +01:00
(i32.const 1)
(i32.const -1)
)
)
)
;;@ ~lib/allocator/tlsf.ts:368:6
2018-06-09 02:27:10 +02:00
(set_local $4
;;@ ~lib/allocator/tlsf.ts:368:25
2018-02-12 19:17:50 +01:00
(if (result i32)
(i32.eqz
2018-06-09 02:27:10 +02:00
(tee_local $4
;;@ ~lib/allocator/tlsf.ts:368:32
2018-04-03 23:56:48 +02:00
(call $~lib/allocator/tlsf/Block#get:right
2018-02-12 19:17:50 +01:00
(get_local $1)
)
)
)
(block
2018-06-09 02:27:10 +02:00
(call $~lib/env/abort
2018-02-12 19:17:50 +01:00
(i32.const 0)
2018-06-09 02:27:10 +02:00
(i32.const 8)
(i32.const 368)
2018-02-12 19:17:50 +01:00
(i32.const 25)
)
(unreachable)
)
2018-06-09 02:27:10 +02:00
(get_local $4)
2018-02-12 19:17:50 +01:00
)
)
;;@ ~lib/allocator/tlsf.ts:369:6
2018-02-12 19:17:50 +01:00
(i32.store
2018-06-09 02:27:10 +02:00
(get_local $4)
2018-02-12 19:17:50 +01:00
(i32.and
(i32.load
2018-06-09 02:27:10 +02:00
(get_local $4)
2018-02-12 19:17:50 +01:00
)
;;@ ~lib/allocator/tlsf.ts:369:20
2018-02-12 19:17:50 +01:00
(i32.xor
;;@ ~lib/allocator/tlsf.ts:369:21
2018-02-12 19:17:50 +01:00
(i32.const 2)
(i32.const -1)
)
)
)
)
)
;;@ ~lib/allocator/tlsf.ts:372:44
(i32.add
;;@ ~lib/allocator/tlsf.ts:372:11
(get_local $1)
;;@ ~lib/allocator/tlsf.ts:372:38
(i32.const 8)
2018-02-12 19:17:50 +01:00
)
)
(func $~lib/allocator/tlsf/__memory_allocate (; 24 ;) (type $ii) (param $0 i32) (result i32)
2018-02-12 19:17:50 +01:00
(local $1 i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
(local $6 i32)
(local $7 i32)
(local $8 i32)
;;@ ~lib/allocator/tlsf.ts:443:2
2018-02-12 19:17:50 +01:00
(set_local $1
;;@ ~lib/allocator/tlsf.ts:443:13
2018-04-03 23:56:48 +02:00
(get_global $~lib/allocator/tlsf/ROOT)
2018-02-12 19:17:50 +01:00
)
;;@ ~lib/allocator/tlsf.ts:444:2
2018-02-12 19:17:50 +01:00
(if
;;@ ~lib/allocator/tlsf.ts:444:6
2018-02-12 19:17:50 +01:00
(i32.eqz
;;@ ~lib/allocator/tlsf.ts:444:7
2018-02-12 19:17:50 +01:00
(get_local $1)
)
;;@ ~lib/allocator/tlsf.ts:444:13
2018-02-12 19:17:50 +01:00
(block
;;@ ~lib/allocator/tlsf.ts:445:4
2018-02-12 19:17:50 +01:00
(set_local $2
;;@ ~lib/allocator/tlsf.ts:445:21
2018-02-12 19:17:50 +01:00
(i32.and
(i32.add
;;@ ~lib/allocator/tlsf.ts:445:22
2018-02-12 19:17:50 +01:00
(get_global $HEAP_BASE)
;;@ ~lib/allocator/tlsf.ts:445:34
(i32.const 7)
2018-02-12 19:17:50 +01:00
)
;;@ ~lib/allocator/tlsf.ts:445:45
2018-02-12 19:17:50 +01:00
(i32.xor
;;@ ~lib/allocator/tlsf.ts:445:46
(i32.const 7)
2018-02-12 19:17:50 +01:00
(i32.const -1)
)
)
)
;;@ ~lib/allocator/tlsf.ts:446:4
(set_local $3
;;@ ~lib/allocator/tlsf.ts:446:29
(call $~lib/memory/memory.size)
)
;;@ ~lib/allocator/tlsf.ts:447:4
(set_local $4
;;@ ~lib/allocator/tlsf.ts:447:22
(i32.shr_u
;;@ ~lib/allocator/tlsf.ts:447:28
(i32.and
;;@ ~lib/allocator/tlsf.ts:447:29
(i32.add
;;@ ~lib/allocator/tlsf.ts:447:30
(i32.add
;;@ ~lib/allocator/tlsf.ts:447:31
(get_local $2)
;;@ ~lib/allocator/tlsf.ts:447:44
(i32.const 2916)
)
;;@ ~lib/allocator/tlsf.ts:447:57
(i32.const 65535)
)
;;@ ~lib/allocator/tlsf.ts:447:67
(i32.xor
;;@ ~lib/allocator/tlsf.ts:447:68
(i32.const 65535)
(i32.const -1)
)
)
;;@ ~lib/allocator/tlsf.ts:447:80
(i32.const 16)
)
)
;;@ ~lib/allocator/tlsf.ts:448:4
(if
;;@ ~lib/allocator/tlsf.ts:448:8
(if (result i32)
(tee_local $5
(i32.gt_s
(get_local $4)
;;@ ~lib/allocator/tlsf.ts:448:22
(get_local $3)
)
)
;;@ ~lib/allocator/tlsf.ts:448:37
(i32.lt_s
;;@ ~lib/allocator/tlsf.ts:448:44
(call $~lib/memory/memory.grow
;;@ ~lib/allocator/tlsf.ts:448:49
(i32.sub
(get_local $4)
;;@ ~lib/allocator/tlsf.ts:448:63
(get_local $3)
)
)
;;@ ~lib/allocator/tlsf.ts:448:78
(i32.const 0)
)
(get_local $5)
)
;;@ ~lib/allocator/tlsf.ts:448:81
(unreachable)
)
;;@ ~lib/allocator/tlsf.ts:449:4
2018-04-03 23:56:48 +02:00
(set_global $~lib/allocator/tlsf/ROOT
;;@ ~lib/allocator/tlsf.ts:449:11
2018-02-12 19:17:50 +01:00
(tee_local $1
;;@ ~lib/allocator/tlsf.ts:449:18
2018-02-12 19:17:50 +01:00
(get_local $2)
)
)
;;@ ~lib/allocator/tlsf.ts:450:4
2018-04-03 23:56:48 +02:00
(call $~lib/allocator/tlsf/Root#set:tailRef
2018-02-12 19:17:50 +01:00
(get_local $1)
;;@ ~lib/allocator/tlsf.ts:450:19
2018-02-12 19:17:50 +01:00
(i32.const 0)
)
;;@ ~lib/allocator/tlsf.ts:451:4
2018-02-12 19:17:50 +01:00
(i32.store
(get_local $1)
;;@ ~lib/allocator/tlsf.ts:451:17
2018-02-12 19:17:50 +01:00
(i32.const 0)
)
;;@ ~lib/allocator/tlsf.ts:452:4
2018-02-12 19:17:50 +01:00
(block $break|0
;;@ ~lib/allocator/tlsf.ts:452:9
(set_local $5
;;@ ~lib/allocator/tlsf.ts:452:25
2018-02-12 19:17:50 +01:00
(i32.const 0)
)
2018-06-09 02:27:10 +02:00
(loop $repeat|0
(br_if $break|0
(i32.eqz
;;@ ~lib/allocator/tlsf.ts:452:28
2018-06-09 02:27:10 +02:00
(i32.lt_u
(get_local $5)
;;@ ~lib/allocator/tlsf.ts:452:33
2018-06-09 02:27:10 +02:00
(i32.const 22)
)
)
)
;;@ ~lib/allocator/tlsf.ts:452:48
2018-06-09 02:27:10 +02:00
(block
;;@ ~lib/allocator/tlsf.ts:453:11
2018-06-09 02:27:10 +02:00
(call $~lib/allocator/tlsf/Root#setSLMap
;;@ ~lib/allocator/tlsf.ts:453:6
2018-06-09 02:27:10 +02:00
(get_local $1)
;;@ ~lib/allocator/tlsf.ts:453:20
(get_local $5)
;;@ ~lib/allocator/tlsf.ts:453:24
2018-06-09 02:27:10 +02:00
(i32.const 0)
2018-02-12 19:17:50 +01:00
)
;;@ ~lib/allocator/tlsf.ts:454:6
2018-06-09 02:27:10 +02:00
(block $break|1
;;@ ~lib/allocator/tlsf.ts:454:11
(set_local $6
;;@ ~lib/allocator/tlsf.ts:454:25
2018-06-09 02:27:10 +02:00
(i32.const 0)
)
(loop $repeat|1
(br_if $break|1
(i32.eqz
;;@ ~lib/allocator/tlsf.ts:454:28
2018-06-09 02:27:10 +02:00
(i32.lt_u
(get_local $6)
;;@ ~lib/allocator/tlsf.ts:454:33
2018-06-09 02:27:10 +02:00
(i32.const 32)
)
)
)
;;@ ~lib/allocator/tlsf.ts:454:48
2018-06-09 02:27:10 +02:00
(call $~lib/allocator/tlsf/Root#setHead
;;@ ~lib/allocator/tlsf.ts:455:8
2018-02-12 19:17:50 +01:00
(get_local $1)
;;@ ~lib/allocator/tlsf.ts:455:21
(get_local $5)
;;@ ~lib/allocator/tlsf.ts:455:25
(get_local $6)
;;@ ~lib/allocator/tlsf.ts:455:29
2018-02-12 19:17:50 +01:00
(i32.const 0)
)
;;@ ~lib/allocator/tlsf.ts:454:42
(set_local $6
2018-06-09 02:27:10 +02:00
(i32.add
;;@ ~lib/allocator/tlsf.ts:454:44
(get_local $6)
2018-06-09 02:27:10 +02:00
(i32.const 1)
2018-02-12 19:17:50 +01:00
)
)
2018-06-09 02:27:10 +02:00
(br $repeat|1)
2018-02-12 19:17:50 +01:00
)
)
)
;;@ ~lib/allocator/tlsf.ts:452:42
(set_local $5
2018-06-09 02:27:10 +02:00
(i32.add
;;@ ~lib/allocator/tlsf.ts:452:44
(get_local $5)
2018-06-09 02:27:10 +02:00
(i32.const 1)
)
)
(br $repeat|0)
2018-02-12 19:17:50 +01:00
)
)
;;@ ~lib/allocator/tlsf.ts:458:9
2018-02-12 19:17:50 +01:00
(drop
2018-04-03 23:56:48 +02:00
(call $~lib/allocator/tlsf/Root#addMemory
;;@ ~lib/allocator/tlsf.ts:458:4
2018-02-12 19:17:50 +01:00
(get_local $1)
;;@ ~lib/allocator/tlsf.ts:458:19
(i32.and
(i32.add
;;@ ~lib/allocator/tlsf.ts:458:20
(i32.add
(get_local $2)
;;@ ~lib/allocator/tlsf.ts:458:33
(i32.const 2916)
)
;;@ ~lib/allocator/tlsf.ts:458:45
(i32.const 7)
)
;;@ ~lib/allocator/tlsf.ts:458:56
(i32.xor
;;@ ~lib/allocator/tlsf.ts:458:57
(i32.const 7)
(i32.const -1)
)
2018-02-12 19:17:50 +01:00
)
;;@ ~lib/allocator/tlsf.ts:458:66
2018-02-12 19:17:50 +01:00
(i32.shl
;;@ ~lib/allocator/tlsf.ts:458:73
(call $~lib/memory/memory.size)
;;@ ~lib/allocator/tlsf.ts:458:83
2018-02-12 19:17:50 +01:00
(i32.const 16)
)
)
)
)
)
;;@ ~lib/allocator/tlsf.ts:462:2
(set_local $7
;;@ ~lib/allocator/tlsf.ts:462:20
2018-02-12 19:17:50 +01:00
(i32.const 0)
)
;;@ ~lib/allocator/tlsf.ts:463:2
2018-02-12 19:17:50 +01:00
(if
;;@ ~lib/allocator/tlsf.ts:463:6
(get_local $0)
;;@ ~lib/allocator/tlsf.ts:463:12
2018-02-12 19:17:50 +01:00
(block
;;@ ~lib/allocator/tlsf.ts:464:4
(if
;;@ ~lib/allocator/tlsf.ts:464:8
(i32.gt_u
(get_local $0)
;;@ ~lib/allocator/tlsf.ts:464:15
(i32.const 1073741824)
)
;;@ ~lib/allocator/tlsf.ts:464:31
(unreachable)
)
;;@ ~lib/allocator/tlsf.ts:466:4
2018-02-12 19:17:50 +01:00
(set_local $0
;;@ ~lib/allocator/tlsf.ts:466:11
2018-02-12 19:17:50 +01:00
(select
(tee_local $4
;;@ ~lib/allocator/tlsf.ts:466:22
2018-02-12 19:17:50 +01:00
(i32.and
(i32.add
;;@ ~lib/allocator/tlsf.ts:466:23
2018-02-12 19:17:50 +01:00
(get_local $0)
;;@ ~lib/allocator/tlsf.ts:466:30
(i32.const 7)
2018-02-12 19:17:50 +01:00
)
;;@ ~lib/allocator/tlsf.ts:466:41
2018-02-12 19:17:50 +01:00
(i32.xor
;;@ ~lib/allocator/tlsf.ts:466:42
(i32.const 7)
2018-02-12 19:17:50 +01:00
(i32.const -1)
)
)
)
2018-06-09 02:27:10 +02:00
(tee_local $3
;;@ ~lib/allocator/tlsf.ts:466:51
(i32.const 16)
2018-02-12 19:17:50 +01:00
)
(i32.gt_u
(get_local $4)
2018-06-09 02:27:10 +02:00
(get_local $3)
2018-02-12 19:17:50 +01:00
)
)
)
;;@ ~lib/allocator/tlsf.ts:468:4
(set_local $4
;;@ ~lib/allocator/tlsf.ts:468:21
2018-04-03 23:56:48 +02:00
(call $~lib/allocator/tlsf/Root#search
;;@ ~lib/allocator/tlsf.ts:468:16
2018-02-12 19:17:50 +01:00
(get_local $1)
;;@ ~lib/allocator/tlsf.ts:468:28
2018-02-12 19:17:50 +01:00
(get_local $0)
)
)
;;@ ~lib/allocator/tlsf.ts:469:4
2018-02-12 19:17:50 +01:00
(if
;;@ ~lib/allocator/tlsf.ts:469:8
2018-02-12 19:17:50 +01:00
(i32.eqz
;;@ ~lib/allocator/tlsf.ts:469:9
(get_local $4)
2018-02-12 19:17:50 +01:00
)
;;@ ~lib/allocator/tlsf.ts:469:16
2018-02-12 19:17:50 +01:00
(block
;;@ ~lib/allocator/tlsf.ts:472:6
2018-06-09 02:27:10 +02:00
(set_local $3
;;@ ~lib/allocator/tlsf.ts:472:31
(call $~lib/memory/memory.size)
2018-02-12 19:17:50 +01:00
)
;;@ ~lib/allocator/tlsf.ts:473:6
(set_local $2
;;@ ~lib/allocator/tlsf.ts:473:24
2018-02-25 00:13:39 +01:00
(i32.shr_u
;;@ ~lib/allocator/tlsf.ts:473:30
2018-02-25 00:13:39 +01:00
(i32.and
;;@ ~lib/allocator/tlsf.ts:473:31
2018-02-25 00:13:39 +01:00
(i32.add
;;@ ~lib/allocator/tlsf.ts:473:32
2018-02-25 00:13:39 +01:00
(get_local $0)
;;@ ~lib/allocator/tlsf.ts:473:39
2018-02-25 00:13:39 +01:00
(i32.const 65535)
)
;;@ ~lib/allocator/tlsf.ts:473:49
2018-02-25 00:13:39 +01:00
(i32.xor
;;@ ~lib/allocator/tlsf.ts:473:50
2018-02-25 00:13:39 +01:00
(i32.const 65535)
(i32.const -1)
)
)
;;@ ~lib/allocator/tlsf.ts:473:62
2018-02-25 00:13:39 +01:00
(i32.const 16)
)
)
;;@ ~lib/allocator/tlsf.ts:474:6
(set_local $5
;;@ ~lib/allocator/tlsf.ts:474:24
2018-02-12 19:17:50 +01:00
(select
(tee_local $5
;;@ ~lib/allocator/tlsf.ts:474:28
2018-06-09 02:27:10 +02:00
(get_local $3)
2018-02-12 19:17:50 +01:00
)
(tee_local $6
;;@ ~lib/allocator/tlsf.ts:474:41
(get_local $2)
2018-02-12 19:17:50 +01:00
)
(i32.gt_s
(get_local $5)
2018-06-09 02:27:10 +02:00
(get_local $6)
2018-02-12 19:17:50 +01:00
)
)
)
;;@ ~lib/allocator/tlsf.ts:475:6
2018-02-12 19:17:50 +01:00
(if
;;@ ~lib/allocator/tlsf.ts:475:10
2018-02-12 19:17:50 +01:00
(i32.lt_s
;;@ ~lib/allocator/tlsf.ts:475:17
(call $~lib/memory/memory.grow
;;@ ~lib/allocator/tlsf.ts:475:22
(get_local $5)
2018-02-12 19:17:50 +01:00
)
;;@ ~lib/allocator/tlsf.ts:475:37
2018-02-12 19:17:50 +01:00
(i32.const 0)
)
;;@ ~lib/allocator/tlsf.ts:475:40
2018-02-25 00:13:39 +01:00
(if
;;@ ~lib/allocator/tlsf.ts:476:12
2018-02-25 00:13:39 +01:00
(i32.lt_s
;;@ ~lib/allocator/tlsf.ts:476:19
(call $~lib/memory/memory.grow
;;@ ~lib/allocator/tlsf.ts:476:24
(get_local $2)
2018-02-25 00:13:39 +01:00
)
;;@ ~lib/allocator/tlsf.ts:476:39
2018-02-25 00:13:39 +01:00
(i32.const 0)
)
;;@ ~lib/allocator/tlsf.ts:476:42
2018-02-25 00:13:39 +01:00
(unreachable)
)
2018-02-12 19:17:50 +01:00
)
;;@ ~lib/allocator/tlsf.ts:480:6
(set_local $6
;;@ ~lib/allocator/tlsf.ts:480:30
(call $~lib/memory/memory.size)
2018-02-12 19:17:50 +01:00
)
;;@ ~lib/allocator/tlsf.ts:481:11
2018-02-12 19:17:50 +01:00
(drop
2018-04-03 23:56:48 +02:00
(call $~lib/allocator/tlsf/Root#addMemory
;;@ ~lib/allocator/tlsf.ts:481:6
2018-02-12 19:17:50 +01:00
(get_local $1)
;;@ ~lib/allocator/tlsf.ts:481:21
2018-02-12 19:17:50 +01:00
(i32.shl
2018-06-09 02:27:10 +02:00
(get_local $3)
;;@ ~lib/allocator/tlsf.ts:481:43
2018-02-12 19:17:50 +01:00
(i32.const 16)
)
;;@ ~lib/allocator/tlsf.ts:481:47
2018-02-12 19:17:50 +01:00
(i32.shl
(get_local $6)
;;@ ~lib/allocator/tlsf.ts:481:68
2018-02-12 19:17:50 +01:00
(i32.const 16)
)
)
)
;;@ ~lib/allocator/tlsf.ts:482:6
(set_local $4
;;@ ~lib/allocator/tlsf.ts:482:14
2018-02-12 19:17:50 +01:00
(if (result i32)
(i32.eqz
2018-06-09 02:27:10 +02:00
(tee_local $8
;;@ ~lib/allocator/tlsf.ts:482:26
2018-04-03 23:56:48 +02:00
(call $~lib/allocator/tlsf/Root#search
;;@ ~lib/allocator/tlsf.ts:482:21
2018-02-12 19:17:50 +01:00
(get_local $1)
;;@ ~lib/allocator/tlsf.ts:482:33
2018-02-12 19:17:50 +01:00
(get_local $0)
)
)
)
(block
2018-06-09 02:27:10 +02:00
(call $~lib/env/abort
2018-02-12 19:17:50 +01:00
(i32.const 0)
2018-06-09 02:27:10 +02:00
(i32.const 8)
(i32.const 482)
2018-02-12 19:17:50 +01:00
(i32.const 14)
)
(unreachable)
)
2018-06-09 02:27:10 +02:00
(get_local $8)
2018-02-12 19:17:50 +01:00
)
)
)
)
;;@ ~lib/allocator/tlsf.ts:485:4
2018-02-12 19:17:50 +01:00
(if
(i32.eqz
;;@ ~lib/allocator/tlsf.ts:485:11
2018-02-12 19:17:50 +01:00
(i32.ge_u
(i32.and
;;@ ~lib/allocator/tlsf.ts:485:12
2018-02-12 19:17:50 +01:00
(i32.load
(get_local $4)
2018-02-12 19:17:50 +01:00
)
;;@ ~lib/allocator/tlsf.ts:485:25
2018-02-12 19:17:50 +01:00
(i32.xor
;;@ ~lib/allocator/tlsf.ts:485:26
2018-02-12 19:17:50 +01:00
(i32.const 3)
(i32.const -1)
)
)
;;@ ~lib/allocator/tlsf.ts:485:35
2018-02-12 19:17:50 +01:00
(get_local $0)
)
)
(block
2018-06-09 02:27:10 +02:00
(call $~lib/env/abort
2018-02-12 19:17:50 +01:00
(i32.const 0)
2018-06-09 02:27:10 +02:00
(i32.const 8)
(i32.const 485)
2018-02-12 19:17:50 +01:00
(i32.const 4)
)
(unreachable)
)
)
;;@ ~lib/allocator/tlsf.ts:486:4
(set_local $7
;;@ ~lib/allocator/tlsf.ts:486:16
2018-04-03 23:56:48 +02:00
(call $~lib/allocator/tlsf/Root#use
;;@ ~lib/allocator/tlsf.ts:486:11
2018-02-12 19:17:50 +01:00
(get_local $1)
;;@ ~lib/allocator/tlsf.ts:486:20
(get_local $4)
;;@ ~lib/allocator/tlsf.ts:486:34
2018-02-12 19:17:50 +01:00
(get_local $0)
)
)
)
)
;;@ ~lib/allocator/tlsf.ts:489:9
(get_local $7)
2018-02-12 19:17:50 +01:00
)
(func $~lib/memory/memory.allocate (; 25 ;) (type $ii) (param $0 i32) (result i32)
;;@ ~lib/memory.ts:142:4
(return
;;@ ~lib/memory.ts:142:45
(call $~lib/allocator/tlsf/__memory_allocate
;;@ ~lib/memory.ts:142:63
(get_local $0)
)
)
)
(func $~lib/allocator/tlsf/__memory_free (; 26 ;) (type $iv) (param $0 i32)
2018-02-12 19:17:50 +01:00
(local $1 i32)
(local $2 i32)
(local $3 i32)
;;@ ~lib/allocator/tlsf.ts:495:2
2018-02-12 19:17:50 +01:00
(if
;;@ ~lib/allocator/tlsf.ts:495:6
2018-02-12 19:17:50 +01:00
(get_local $0)
;;@ ~lib/allocator/tlsf.ts:495:12
2018-02-12 19:17:50 +01:00
(block
;;@ ~lib/allocator/tlsf.ts:496:4
2018-02-12 19:17:50 +01:00
(set_local $1
;;@ ~lib/allocator/tlsf.ts:496:15
2018-04-03 23:56:48 +02:00
(get_global $~lib/allocator/tlsf/ROOT)
2018-02-12 19:17:50 +01:00
)
;;@ ~lib/allocator/tlsf.ts:497:4
2018-02-12 19:17:50 +01:00
(if
;;@ ~lib/allocator/tlsf.ts:497:8
2018-02-12 19:17:50 +01:00
(get_local $1)
;;@ ~lib/allocator/tlsf.ts:497:14
2018-02-12 19:17:50 +01:00
(block
;;@ ~lib/allocator/tlsf.ts:498:6
2018-02-12 19:17:50 +01:00
(set_local $2
;;@ ~lib/allocator/tlsf.ts:498:18
2018-02-12 19:17:50 +01:00
(i32.sub
;;@ ~lib/allocator/tlsf.ts:498:36
2018-02-12 19:17:50 +01:00
(get_local $0)
;;@ ~lib/allocator/tlsf.ts:498:43
(i32.const 8)
2018-02-12 19:17:50 +01:00
)
)
;;@ ~lib/allocator/tlsf.ts:499:6
2018-02-12 19:17:50 +01:00
(set_local $3
;;@ ~lib/allocator/tlsf.ts:499:22
2018-02-12 19:17:50 +01:00
(i32.load
(get_local $2)
)
)
;;@ ~lib/allocator/tlsf.ts:500:6
2018-02-12 19:17:50 +01:00
(if
(i32.eqz
;;@ ~lib/allocator/tlsf.ts:500:13
2018-02-12 19:17:50 +01:00
(i32.eqz
;;@ ~lib/allocator/tlsf.ts:500:14
2018-02-12 19:17:50 +01:00
(i32.and
;;@ ~lib/allocator/tlsf.ts:500:15
2018-02-12 19:17:50 +01:00
(get_local $3)
;;@ ~lib/allocator/tlsf.ts:500:27
2018-02-12 19:17:50 +01:00
(i32.const 1)
)
)
)
(block
2018-06-09 02:27:10 +02:00
(call $~lib/env/abort
2018-02-12 19:17:50 +01:00
(i32.const 0)
2018-06-09 02:27:10 +02:00
(i32.const 8)
(i32.const 500)
2018-02-12 19:17:50 +01:00
(i32.const 6)
)
(unreachable)
)
)
;;@ ~lib/allocator/tlsf.ts:501:6
2018-02-12 19:17:50 +01:00
(i32.store
(get_local $2)
;;@ ~lib/allocator/tlsf.ts:501:19
2018-02-12 19:17:50 +01:00
(i32.or
(get_local $3)
;;@ ~lib/allocator/tlsf.ts:501:31
2018-02-12 19:17:50 +01:00
(i32.const 1)
)
)
;;@ ~lib/allocator/tlsf.ts:502:11
2018-04-03 23:56:48 +02:00
(call $~lib/allocator/tlsf/Root#insert
;;@ ~lib/allocator/tlsf.ts:502:6
2018-02-12 19:17:50 +01:00
(get_local $1)
;;@ ~lib/allocator/tlsf.ts:502:18
2018-02-12 19:17:50 +01:00
(i32.sub
;;@ ~lib/allocator/tlsf.ts:502:36
2018-02-12 19:17:50 +01:00
(get_local $0)
;;@ ~lib/allocator/tlsf.ts:502:43
(i32.const 8)
2018-02-12 19:17:50 +01:00
)
)
)
)
)
)
)
(func $~lib/memory/memory.free (; 27 ;) (type $iv) (param $0 i32)
;;@ ~lib/memory.ts:148:36
(call $~lib/allocator/tlsf/__memory_free
;;@ ~lib/memory.ts:148:50
(get_local $0)
)
;;@ ~lib/memory.ts:148:56
(return)
)
(func $~lib/allocator/tlsf/__memory_reset (; 28 ;) (type $v)
;;@ ~lib/allocator/tlsf.ts:509:2
(unreachable)
)
(func $~lib/memory/memory.reset (; 29 ;) (type $v)
;;@ ~lib/memory.ts:154:37
(call $~lib/allocator/tlsf/__memory_reset)
;;@ ~lib/memory.ts:154:55
(return)
)
(func $start (; 30 ;) (type $v)
;;@ ~lib/allocator/tlsf.ts:122:0
2018-02-12 19:17:50 +01:00
(if
(i32.eqz
;;@ ~lib/allocator/tlsf.ts:122:7
2018-02-12 19:17:50 +01:00
(i32.le_s
(i32.shl
;;@ ~lib/allocator/tlsf.ts:122:8
2018-02-12 19:17:50 +01:00
(i32.const 1)
;;@ ~lib/allocator/tlsf.ts:122:13
2018-02-12 19:17:50 +01:00
(i32.const 5)
)
;;@ ~lib/allocator/tlsf.ts:122:25
2018-02-12 19:17:50 +01:00
(i32.const 32)
)
)
(block
2018-06-09 02:27:10 +02:00
(call $~lib/env/abort
2018-02-12 19:17:50 +01:00
(i32.const 0)
2018-06-09 02:27:10 +02:00
(i32.const 8)
(i32.const 122)
2018-02-12 19:17:50 +01:00
(i32.const 0)
)
(unreachable)
)
)
)
)