2017-12-16 02:27:39 +01:00
|
|
|
(module
|
2018-01-28 15:30:49 +01:00
|
|
|
(type $ii (func (param i32) (result i32)))
|
2018-02-02 03:07:54 +01:00
|
|
|
(type $iiiiv (func (param i32 i32 i32 i32)))
|
2018-01-28 19:14:20 +01:00
|
|
|
(type $iiiv (func (param i32 i32 i32)))
|
2017-12-21 10:14:53 +01:00
|
|
|
(type $iiii (func (param i32 i32 i32) (result i32)))
|
2018-02-04 07:51:40 +01:00
|
|
|
(type $iv (func (param i32)))
|
2017-12-16 02:27:39 +01:00
|
|
|
(type $v (func))
|
2018-05-21 18:48:29 +02:00
|
|
|
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
|
2018-04-02 19:05:26 +02:00
|
|
|
(global $~lib/allocator/arena/startOffset (mut i32) (i32.const 0))
|
|
|
|
(global $~lib/allocator/arena/offset (mut i32) (i32.const 0))
|
2018-02-02 03:07:54 +01:00
|
|
|
(global $std/allocator_arena/ptr1 (mut i32) (i32.const 0))
|
|
|
|
(global $std/allocator_arena/ptr2 (mut i32) (i32.const 0))
|
|
|
|
(global $std/allocator_arena/i (mut i32) (i32.const 0))
|
2017-12-16 02:27:39 +01:00
|
|
|
(memory $0 1)
|
2018-05-14 16:55:55 +02:00
|
|
|
(data (i32.const 8) "\16\00\00\00s\00t\00d\00/\00a\00l\00l\00o\00c\00a\00t\00o\00r\00_\00a\00r\00e\00n\00a\00.\00t\00s")
|
2017-12-16 02:27:39 +01:00
|
|
|
(export "memory" (memory $0))
|
|
|
|
(start $start)
|
2018-08-02 18:23:02 +02:00
|
|
|
(func $~lib/allocator/arena/__memory_allocate (; 1 ;) (; has Stack IR ;) (type $ii) (param $0 i32) (result i32)
|
2018-01-28 19:14:20 +01:00
|
|
|
(local $1 i32)
|
|
|
|
(local $2 i32)
|
|
|
|
(local $3 i32)
|
|
|
|
(if
|
2018-08-04 00:36:59 +02:00
|
|
|
(i32.gt_u
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 1073741824)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.gt_u
|
|
|
|
(tee_local $2
|
|
|
|
(i32.and
|
|
|
|
(i32.add
|
|
|
|
(i32.add
|
|
|
|
(tee_local $1
|
|
|
|
(get_global $~lib/allocator/arena/offset)
|
|
|
|
)
|
|
|
|
(select
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 1)
|
|
|
|
(i32.gt_u
|
2018-04-03 23:56:48 +02:00
|
|
|
(get_local $0)
|
2018-08-04 00:36:59 +02:00
|
|
|
(i32.const 1)
|
2018-04-03 23:56:48 +02:00
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
)
|
2018-04-03 23:56:48 +02:00
|
|
|
)
|
2018-08-04 00:36:59 +02:00
|
|
|
(i32.const 7)
|
2018-04-03 23:56:48 +02:00
|
|
|
)
|
2018-08-04 00:36:59 +02:00
|
|
|
(i32.const -8)
|
2018-03-04 17:25:32 +01:00
|
|
|
)
|
2018-08-04 00:36:59 +02:00
|
|
|
)
|
|
|
|
(i32.shl
|
|
|
|
(tee_local $3
|
|
|
|
(current_memory)
|
|
|
|
)
|
|
|
|
(i32.const 16)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.lt_s
|
|
|
|
(grow_memory
|
|
|
|
(select
|
|
|
|
(get_local $3)
|
|
|
|
(tee_local $0
|
|
|
|
(i32.shr_u
|
|
|
|
(i32.and
|
|
|
|
(i32.add
|
|
|
|
(i32.sub
|
|
|
|
(get_local $2)
|
|
|
|
(get_local $1)
|
2018-01-28 19:14:20 +01:00
|
|
|
)
|
2018-08-04 00:36:59 +02:00
|
|
|
(i32.const 65535)
|
2018-01-28 19:14:20 +01:00
|
|
|
)
|
2018-08-04 00:36:59 +02:00
|
|
|
(i32.const -65536)
|
2018-04-03 23:56:48 +02:00
|
|
|
)
|
2018-08-04 00:36:59 +02:00
|
|
|
(i32.const 16)
|
2018-01-28 19:14:20 +01:00
|
|
|
)
|
2018-03-04 17:25:32 +01:00
|
|
|
)
|
2018-08-04 00:36:59 +02:00
|
|
|
(i32.gt_s
|
|
|
|
(get_local $3)
|
|
|
|
(get_local $0)
|
2018-01-28 19:14:20 +01:00
|
|
|
)
|
|
|
|
)
|
2018-03-04 17:25:32 +01:00
|
|
|
)
|
2018-08-04 00:36:59 +02:00
|
|
|
(i32.const 0)
|
2018-03-04 17:25:32 +01:00
|
|
|
)
|
2018-08-04 00:36:59 +02:00
|
|
|
(if
|
|
|
|
(i32.lt_s
|
|
|
|
(grow_memory
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
2018-01-28 19:14:20 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-08-04 00:36:59 +02:00
|
|
|
(set_global $~lib/allocator/arena/offset
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
(get_local $1)
|
2018-01-28 19:14:20 +01:00
|
|
|
)
|
2018-08-02 18:23:02 +02:00
|
|
|
(func $~lib/internal/memory/memset (; 2 ;) (; has Stack IR ;) (type $iiiv) (param $0 i32) (param $1 i32) (param $2 i32)
|
2018-06-09 14:05:33 +02:00
|
|
|
(local $3 i32)
|
|
|
|
(local $4 i64)
|
2017-12-21 10:14:53 +01:00
|
|
|
(if
|
|
|
|
(i32.eqz
|
|
|
|
(get_local $2)
|
|
|
|
)
|
2018-01-14 02:30:20 +01:00
|
|
|
(return)
|
2017-12-21 10:14:53 +01:00
|
|
|
)
|
|
|
|
(i32.store8
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2017-12-21 10:14:53 +01:00
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(i32.sub
|
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2017-12-21 10:14:53 +01:00
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.le_u
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 2)
|
|
|
|
)
|
2018-01-14 02:30:20 +01:00
|
|
|
(return)
|
2017-12-21 10:14:53 +01:00
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.store8
|
2018-01-14 02:30:20 +01:00
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.store8
|
2018-01-14 02:30:20 +01:00
|
|
|
(i32.sub
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $3
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(get_local $2)
|
|
|
|
)
|
2018-01-14 02:30:20 +01:00
|
|
|
)
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(i32.sub
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $3)
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.const 3)
|
|
|
|
)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.le_u
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 6)
|
|
|
|
)
|
2018-01-14 02:30:20 +01:00
|
|
|
(return)
|
2017-12-21 10:14:53 +01:00
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.const 3)
|
|
|
|
)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(i32.sub
|
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2017-12-21 10:14:53 +01:00
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.le_u
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 8)
|
|
|
|
)
|
2018-01-14 02:30:20 +01:00
|
|
|
(return)
|
2017-12-21 10:14:53 +01:00
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(set_local $2
|
|
|
|
(i32.sub
|
|
|
|
(get_local $2)
|
|
|
|
(tee_local $3
|
|
|
|
(i32.and
|
|
|
|
(i32.sub
|
|
|
|
(i32.const 0)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(i32.const 3)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.store
|
2018-01-14 02:30:20 +01:00
|
|
|
(tee_local $0
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $3)
|
2017-12-21 10:14:53 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(tee_local $1
|
|
|
|
(i32.mul
|
2018-05-06 00:00:54 +02:00
|
|
|
(i32.and
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 255)
|
|
|
|
)
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.const 16843009)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(i32.sub
|
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2017-12-21 10:14:53 +01:00
|
|
|
(tee_local $2
|
|
|
|
(i32.and
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $2)
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.const -4)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.le_u
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 8)
|
|
|
|
)
|
2018-01-14 02:30:20 +01:00
|
|
|
(return)
|
2017-12-21 10:14:53 +01:00
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(i32.sub
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $3
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(get_local $2)
|
|
|
|
)
|
2017-12-21 10:14:53 +01:00
|
|
|
)
|
|
|
|
(i32.const 12)
|
|
|
|
)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(i32.sub
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $3)
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.le_u
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 24)
|
|
|
|
)
|
2018-01-14 02:30:20 +01:00
|
|
|
(return)
|
2017-12-21 10:14:53 +01:00
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.const 12)
|
|
|
|
)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.const 16)
|
|
|
|
)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.const 20)
|
|
|
|
)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.const 24)
|
|
|
|
)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(i32.sub
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $3
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(get_local $2)
|
|
|
|
)
|
2017-12-21 10:14:53 +01:00
|
|
|
)
|
|
|
|
(i32.const 28)
|
|
|
|
)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(i32.sub
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $3)
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.const 24)
|
|
|
|
)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(i32.sub
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $3)
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.const 20)
|
|
|
|
)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(i32.sub
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $3)
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.const 16)
|
|
|
|
)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
2018-01-14 02:30:20 +01:00
|
|
|
(set_local $0
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $3
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.add
|
|
|
|
(i32.and
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(i32.const 24)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $2
|
|
|
|
(i32.sub
|
|
|
|
(get_local $2)
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $3)
|
2017-12-21 10:14:53 +01:00
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(set_local $4
|
2017-12-21 10:14:53 +01:00
|
|
|
(i64.or
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $4
|
2017-12-21 10:14:53 +01:00
|
|
|
(i64.extend_u/i32
|
|
|
|
(get_local $1)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
)
|
|
|
|
(i64.shl
|
|
|
|
(get_local $4)
|
2017-12-21 10:14:53 +01:00
|
|
|
(i64.const 32)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(loop $continue|0
|
|
|
|
(if
|
|
|
|
(i32.ge_u
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 32)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(i64.store
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $4)
|
2017-12-21 10:14:53 +01:00
|
|
|
)
|
|
|
|
(i64.store
|
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.const 8)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $4)
|
2017-12-21 10:14:53 +01:00
|
|
|
)
|
|
|
|
(i64.store
|
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.const 16)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $4)
|
2017-12-21 10:14:53 +01:00
|
|
|
)
|
|
|
|
(i64.store
|
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.const 24)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $4)
|
2017-12-21 10:14:53 +01:00
|
|
|
)
|
|
|
|
(set_local $2
|
|
|
|
(i32.sub
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 32)
|
|
|
|
)
|
|
|
|
)
|
2018-01-14 02:30:20 +01:00
|
|
|
(set_local $0
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.const 32)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br $continue|0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-08-02 18:23:02 +02:00
|
|
|
(func $~lib/internal/memory/memcpy (; 3 ;) (; has Stack IR ;) (type $iiiv) (param $0 i32) (param $1 i32) (param $2 i32)
|
2017-12-21 10:14:53 +01:00
|
|
|
(local $3 i32)
|
|
|
|
(local $4 i32)
|
2018-06-09 14:05:33 +02:00
|
|
|
(local $5 i32)
|
2017-12-21 10:14:53 +01:00
|
|
|
(loop $continue|0
|
|
|
|
(if
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $3
|
|
|
|
(if (result i32)
|
|
|
|
(get_local $2)
|
|
|
|
(i32.and
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 3)
|
|
|
|
)
|
|
|
|
(get_local $2)
|
2017-12-21 10:14:53 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(block
|
2018-01-14 02:30:20 +01:00
|
|
|
(set_local $0
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $4
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2017-12-21 10:14:53 +01:00
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(set_local $1
|
|
|
|
(i32.add
|
|
|
|
(tee_local $3
|
|
|
|
(get_local $1)
|
2017-12-21 10:14:53 +01:00
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(get_local $4)
|
|
|
|
(i32.load8_u
|
|
|
|
(get_local $3)
|
2017-12-21 10:14:53 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $2
|
|
|
|
(i32.sub
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br $continue|0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.eqz
|
2018-02-12 19:47:32 +02:00
|
|
|
(i32.and
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2018-02-12 19:47:32 +02:00
|
|
|
(i32.const 3)
|
2017-12-21 10:14:53 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(loop $continue|1
|
|
|
|
(if
|
|
|
|
(i32.ge_u
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 16)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(i32.store
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.load
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(i32.load
|
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
(i32.load
|
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.const 12)
|
|
|
|
)
|
|
|
|
(i32.load
|
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 12)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $1
|
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 16)
|
|
|
|
)
|
|
|
|
)
|
2018-01-14 02:30:20 +01:00
|
|
|
(set_local $0
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.const 16)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $2
|
|
|
|
(i32.sub
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 16)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br $continue|1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.and
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(i32.store
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.load
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(i32.load
|
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-01-14 02:30:20 +01:00
|
|
|
(set_local $0
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $1
|
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.and
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(i32.store
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.load
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
2018-01-14 02:30:20 +01:00
|
|
|
(set_local $0
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $1
|
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.and
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(i32.store16
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.load16_u
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
2018-01-14 02:30:20 +01:00
|
|
|
(set_local $0
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $1
|
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.and
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(set_local $3
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
2017-12-21 10:14:53 +01:00
|
|
|
)
|
|
|
|
(i32.store8
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $0)
|
|
|
|
(i32.load8_u
|
|
|
|
(get_local $1)
|
2017-12-21 10:14:53 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-01-14 02:30:20 +01:00
|
|
|
(return)
|
2017-12-21 10:14:53 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ge_u
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 32)
|
|
|
|
)
|
|
|
|
(block $break|2
|
|
|
|
(block $case2|2
|
|
|
|
(block $case1|2
|
2018-06-09 14:05:33 +02:00
|
|
|
(if
|
|
|
|
(i32.ne
|
|
|
|
(tee_local $3
|
|
|
|
(i32.and
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 3)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(br_if $case1|2
|
|
|
|
(i32.eq
|
|
|
|
(get_local $3)
|
|
|
|
(i32.const 2)
|
2017-12-21 10:14:53 +01:00
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(br_if $case2|2
|
|
|
|
(i32.eq
|
|
|
|
(get_local $3)
|
|
|
|
(i32.const 3)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br $break|2)
|
2017-12-21 10:14:53 +01:00
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(set_local $5
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.load
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.store8
|
|
|
|
(get_local $0)
|
|
|
|
(i32.load8_u
|
2017-12-21 10:14:53 +01:00
|
|
|
(tee_local $3
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $0
|
|
|
|
(tee_local $1
|
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
2017-12-21 10:14:53 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
|
|
|
(i32.load8_u
|
|
|
|
(tee_local $1
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $3)
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-01-14 02:30:20 +01:00
|
|
|
(set_local $0
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $4
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $0)
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
2017-12-21 10:14:53 +01:00
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(set_local $1
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.add
|
|
|
|
(tee_local $3
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
2017-12-21 10:14:53 +01:00
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $4)
|
|
|
|
(i32.load8_u
|
|
|
|
(get_local $3)
|
2017-12-21 10:14:53 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $2
|
|
|
|
(i32.sub
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 3)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(loop $continue|3
|
|
|
|
(if
|
|
|
|
(i32.ge_u
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 17)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(i32.store
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.or
|
|
|
|
(i32.shr_u
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $5)
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.const 24)
|
|
|
|
)
|
|
|
|
(i32.shl
|
|
|
|
(tee_local $3
|
|
|
|
(i32.load
|
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(i32.or
|
|
|
|
(i32.shr_u
|
|
|
|
(get_local $3)
|
|
|
|
(i32.const 24)
|
|
|
|
)
|
|
|
|
(i32.shl
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $5
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.load
|
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 5)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
(i32.or
|
|
|
|
(i32.shr_u
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $5)
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.const 24)
|
|
|
|
)
|
|
|
|
(i32.shl
|
|
|
|
(tee_local $3
|
|
|
|
(i32.load
|
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 9)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.const 12)
|
|
|
|
)
|
|
|
|
(i32.or
|
|
|
|
(i32.shr_u
|
|
|
|
(get_local $3)
|
|
|
|
(i32.const 24)
|
|
|
|
)
|
|
|
|
(i32.shl
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $5
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.load
|
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 13)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $1
|
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 16)
|
|
|
|
)
|
|
|
|
)
|
2018-01-14 02:30:20 +01:00
|
|
|
(set_local $0
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.const 16)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $2
|
|
|
|
(i32.sub
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 16)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br $continue|3)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br $break|2)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(set_local $5
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.load
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.store8
|
|
|
|
(get_local $0)
|
|
|
|
(i32.load8_u
|
|
|
|
(get_local $1)
|
2017-12-21 10:14:53 +01:00
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(set_local $0
|
|
|
|
(i32.add
|
|
|
|
(tee_local $4
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $0)
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
2017-12-21 10:14:53 +01:00
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(set_local $1
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.add
|
|
|
|
(tee_local $3
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
2017-12-21 10:14:53 +01:00
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $4)
|
|
|
|
(i32.load8_u
|
|
|
|
(get_local $3)
|
2017-12-21 10:14:53 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $2
|
|
|
|
(i32.sub
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(loop $continue|4
|
|
|
|
(if
|
|
|
|
(i32.ge_u
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 18)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(i32.store
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.or
|
|
|
|
(i32.shr_u
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $5)
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.const 16)
|
|
|
|
)
|
|
|
|
(i32.shl
|
|
|
|
(tee_local $3
|
|
|
|
(i32.load
|
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 16)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(i32.or
|
|
|
|
(i32.shr_u
|
|
|
|
(get_local $3)
|
|
|
|
(i32.const 16)
|
|
|
|
)
|
|
|
|
(i32.shl
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $5
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.load
|
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 6)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 16)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
(i32.or
|
|
|
|
(i32.shr_u
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $5)
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.const 16)
|
|
|
|
)
|
|
|
|
(i32.shl
|
|
|
|
(tee_local $3
|
|
|
|
(i32.load
|
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 10)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 16)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.const 12)
|
|
|
|
)
|
|
|
|
(i32.or
|
|
|
|
(i32.shr_u
|
|
|
|
(get_local $3)
|
|
|
|
(i32.const 16)
|
|
|
|
)
|
|
|
|
(i32.shl
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $5
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.load
|
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 14)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 16)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $1
|
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 16)
|
|
|
|
)
|
|
|
|
)
|
2018-01-14 02:30:20 +01:00
|
|
|
(set_local $0
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.const 16)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $2
|
|
|
|
(i32.sub
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 16)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br $continue|4)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br $break|2)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(set_local $5
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.load
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
2018-01-14 02:30:20 +01:00
|
|
|
(set_local $0
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $4
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2017-12-21 10:14:53 +01:00
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(set_local $1
|
|
|
|
(i32.add
|
|
|
|
(tee_local $3
|
|
|
|
(get_local $1)
|
2017-12-21 10:14:53 +01:00
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(get_local $4)
|
|
|
|
(i32.load8_u
|
|
|
|
(get_local $3)
|
2017-12-21 10:14:53 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $2
|
|
|
|
(i32.sub
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(loop $continue|5
|
|
|
|
(if
|
|
|
|
(i32.ge_u
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 19)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(i32.store
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.or
|
|
|
|
(i32.shr_u
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $5)
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
(i32.shl
|
|
|
|
(tee_local $3
|
|
|
|
(i32.load
|
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 3)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 24)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(i32.or
|
|
|
|
(i32.shr_u
|
|
|
|
(get_local $3)
|
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
(i32.shl
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $5
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.load
|
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 7)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 24)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
(i32.or
|
|
|
|
(i32.shr_u
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $5)
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
(i32.shl
|
|
|
|
(tee_local $3
|
|
|
|
(i32.load
|
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 11)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 24)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.const 12)
|
|
|
|
)
|
|
|
|
(i32.or
|
|
|
|
(i32.shr_u
|
|
|
|
(get_local $3)
|
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
(i32.shl
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $5
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.load
|
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 15)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 24)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $1
|
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 16)
|
|
|
|
)
|
|
|
|
)
|
2018-01-14 02:30:20 +01:00
|
|
|
(set_local $0
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.const 16)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $2
|
|
|
|
(i32.sub
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 16)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br $continue|5)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.and
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 16)
|
|
|
|
)
|
|
|
|
(block
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.store8
|
|
|
|
(get_local $0)
|
|
|
|
(i32.load8_u
|
2017-12-21 10:14:53 +01:00
|
|
|
(tee_local $3
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $0
|
|
|
|
(tee_local $1
|
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
2017-12-21 10:14:53 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
|
|
|
(i32.load8_u
|
|
|
|
(tee_local $1
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $3)
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-01-14 02:30:20 +01:00
|
|
|
(set_local $0
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $3
|
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
2017-12-21 10:14:53 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(get_local $3)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.load8_u
|
|
|
|
(tee_local $1
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-01-14 02:30:20 +01:00
|
|
|
(set_local $0
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $3
|
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
2017-12-21 10:14:53 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(get_local $3)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.load8_u
|
|
|
|
(tee_local $1
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-01-14 02:30:20 +01:00
|
|
|
(set_local $0
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $3
|
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
2017-12-21 10:14:53 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(get_local $3)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.load8_u
|
|
|
|
(tee_local $1
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-01-14 02:30:20 +01:00
|
|
|
(set_local $0
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $3
|
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
2017-12-21 10:14:53 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(get_local $3)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.load8_u
|
|
|
|
(tee_local $1
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-01-14 02:30:20 +01:00
|
|
|
(set_local $0
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $3
|
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
2017-12-21 10:14:53 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(get_local $3)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.load8_u
|
|
|
|
(tee_local $1
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-01-14 02:30:20 +01:00
|
|
|
(set_local $0
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $3
|
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
2017-12-21 10:14:53 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(get_local $3)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.load8_u
|
|
|
|
(tee_local $1
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-01-14 02:30:20 +01:00
|
|
|
(set_local $0
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $3
|
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
2017-12-21 10:14:53 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(get_local $3)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.load8_u
|
|
|
|
(tee_local $1
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-01-14 02:30:20 +01:00
|
|
|
(set_local $0
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $3
|
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
2017-12-21 10:14:53 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(get_local $3)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.load8_u
|
|
|
|
(tee_local $1
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-01-14 02:30:20 +01:00
|
|
|
(set_local $0
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $3
|
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
2017-12-21 10:14:53 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(get_local $3)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.load8_u
|
|
|
|
(tee_local $1
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-01-14 02:30:20 +01:00
|
|
|
(set_local $0
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $3
|
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
2017-12-21 10:14:53 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(get_local $3)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.load8_u
|
|
|
|
(tee_local $1
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-01-14 02:30:20 +01:00
|
|
|
(set_local $0
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $3
|
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
2017-12-21 10:14:53 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(get_local $3)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.load8_u
|
|
|
|
(tee_local $1
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-01-14 02:30:20 +01:00
|
|
|
(set_local $0
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $3
|
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
2017-12-21 10:14:53 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(get_local $3)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.load8_u
|
|
|
|
(tee_local $1
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-01-14 02:30:20 +01:00
|
|
|
(set_local $0
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $3
|
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
2017-12-21 10:14:53 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(get_local $3)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.load8_u
|
|
|
|
(tee_local $1
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-01-14 02:30:20 +01:00
|
|
|
(set_local $0
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $4
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
2017-12-21 10:14:53 +01:00
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(set_local $1
|
|
|
|
(i32.add
|
|
|
|
(tee_local $3
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
2017-12-21 10:14:53 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $4)
|
|
|
|
(i32.load8_u
|
|
|
|
(get_local $3)
|
2017-12-21 10:14:53 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.and
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
(block
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.store8
|
|
|
|
(get_local $0)
|
|
|
|
(i32.load8_u
|
2017-12-21 10:14:53 +01:00
|
|
|
(tee_local $3
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $0
|
|
|
|
(tee_local $1
|
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
2017-12-21 10:14:53 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
|
|
|
(i32.load8_u
|
|
|
|
(tee_local $1
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $3)
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-01-14 02:30:20 +01:00
|
|
|
(set_local $0
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $3
|
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
2017-12-21 10:14:53 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(get_local $3)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.load8_u
|
|
|
|
(tee_local $1
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-01-14 02:30:20 +01:00
|
|
|
(set_local $0
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $3
|
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
2017-12-21 10:14:53 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(get_local $3)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.load8_u
|
|
|
|
(tee_local $1
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-01-14 02:30:20 +01:00
|
|
|
(set_local $0
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $3
|
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
2017-12-21 10:14:53 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(get_local $3)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.load8_u
|
|
|
|
(tee_local $1
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-01-14 02:30:20 +01:00
|
|
|
(set_local $0
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $3
|
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
2017-12-21 10:14:53 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(get_local $3)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.load8_u
|
|
|
|
(tee_local $1
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-01-14 02:30:20 +01:00
|
|
|
(set_local $0
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $3
|
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
2017-12-21 10:14:53 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(get_local $3)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.load8_u
|
|
|
|
(tee_local $1
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-01-14 02:30:20 +01:00
|
|
|
(set_local $0
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $4
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $0)
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
2017-12-21 10:14:53 +01:00
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(set_local $1
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.add
|
|
|
|
(tee_local $3
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
2017-12-21 10:14:53 +01:00
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $4)
|
|
|
|
(i32.load8_u
|
|
|
|
(get_local $3)
|
2017-12-21 10:14:53 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.and
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(block
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.store8
|
|
|
|
(get_local $0)
|
|
|
|
(i32.load8_u
|
2017-12-21 10:14:53 +01:00
|
|
|
(tee_local $3
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $0
|
|
|
|
(tee_local $1
|
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
2017-12-21 10:14:53 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
|
|
|
(i32.load8_u
|
|
|
|
(tee_local $1
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $3)
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-01-14 02:30:20 +01:00
|
|
|
(set_local $0
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $3
|
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
2017-12-21 10:14:53 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(get_local $3)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.load8_u
|
|
|
|
(tee_local $1
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-01-14 02:30:20 +01:00
|
|
|
(set_local $0
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $4
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $0)
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
2017-12-21 10:14:53 +01:00
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(set_local $1
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.add
|
|
|
|
(tee_local $3
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
2017-12-21 10:14:53 +01:00
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $4)
|
|
|
|
(i32.load8_u
|
|
|
|
(get_local $3)
|
2017-12-21 10:14:53 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.and
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
(block
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.store8
|
|
|
|
(get_local $0)
|
|
|
|
(i32.load8_u
|
|
|
|
(get_local $1)
|
2017-12-21 10:14:53 +01:00
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(set_local $0
|
|
|
|
(i32.add
|
|
|
|
(tee_local $4
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $0)
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
2017-12-21 10:14:53 +01:00
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(set_local $1
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.add
|
|
|
|
(tee_local $3
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
2017-12-21 10:14:53 +01:00
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $4)
|
|
|
|
(i32.load8_u
|
|
|
|
(get_local $3)
|
2017-12-21 10:14:53 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.and
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(set_local $3
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
2017-12-21 10:14:53 +01:00
|
|
|
)
|
|
|
|
(i32.store8
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $0)
|
|
|
|
(i32.load8_u
|
|
|
|
(get_local $1)
|
2017-12-21 10:14:53 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-08-02 18:23:02 +02:00
|
|
|
(func $~lib/internal/memory/memmove (; 4 ;) (; has Stack IR ;) (type $iiiv) (param $0 i32) (param $1 i32) (param $2 i32)
|
2018-01-14 02:30:20 +01:00
|
|
|
(local $3 i32)
|
2018-06-09 14:05:33 +02:00
|
|
|
(local $4 i32)
|
2018-01-14 02:30:20 +01:00
|
|
|
(if
|
|
|
|
(i32.eq
|
|
|
|
(get_local $0)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(return)
|
|
|
|
)
|
|
|
|
(if
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.eqz
|
2018-05-06 00:00:54 +02:00
|
|
|
(tee_local $3
|
2018-01-14 02:30:20 +01:00
|
|
|
(i32.le_u
|
|
|
|
(i32.add
|
2018-05-06 00:00:54 +02:00
|
|
|
(get_local $1)
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $2)
|
|
|
|
)
|
2018-05-06 00:00:54 +02:00
|
|
|
(get_local $0)
|
2018-01-14 02:30:20 +01:00
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
)
|
|
|
|
(set_local $3
|
2018-05-06 00:00:54 +02:00
|
|
|
(i32.le_u
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
2018-01-14 02:30:20 +01:00
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
)
|
|
|
|
(if
|
|
|
|
(get_local $3)
|
2018-01-14 02:30:20 +01:00
|
|
|
(block
|
2018-08-02 18:23:02 +02:00
|
|
|
(call $~lib/internal/memory/memcpy
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
|
|
|
(get_local $1)
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
(return)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.lt_u
|
|
|
|
(get_local $0)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(if
|
|
|
|
(i32.eq
|
2018-02-12 19:47:32 +02:00
|
|
|
(i32.and
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $1)
|
2018-02-12 19:47:32 +02:00
|
|
|
(i32.const 7)
|
2018-01-14 02:30:20 +01:00
|
|
|
)
|
2018-02-12 19:47:32 +02:00
|
|
|
(i32.and
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2018-02-12 19:47:32 +02:00
|
|
|
(i32.const 7)
|
2018-01-14 02:30:20 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(loop $continue|0
|
|
|
|
(if
|
2018-02-12 19:47:32 +02:00
|
|
|
(i32.and
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2018-02-12 19:47:32 +02:00
|
|
|
(i32.const 7)
|
2018-01-14 02:30:20 +01:00
|
|
|
)
|
|
|
|
(block
|
|
|
|
(if
|
|
|
|
(i32.eqz
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
(return)
|
|
|
|
)
|
|
|
|
(set_local $2
|
|
|
|
(i32.sub
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $0
|
|
|
|
(i32.add
|
|
|
|
(tee_local $3
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $4
|
|
|
|
(get_local $0)
|
|
|
|
)
|
2018-01-14 02:30:20 +01:00
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(set_local $1
|
|
|
|
(i32.add
|
|
|
|
(tee_local $3
|
|
|
|
(get_local $1)
|
2018-01-14 02:30:20 +01:00
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(get_local $4)
|
|
|
|
(i32.load8_u
|
|
|
|
(get_local $3)
|
2018-01-14 02:30:20 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(br $continue|0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(loop $continue|1
|
|
|
|
(if
|
|
|
|
(i32.ge_u
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(i64.store
|
|
|
|
(get_local $0)
|
|
|
|
(i64.load
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $2
|
|
|
|
(i32.sub
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $0
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $1
|
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br $continue|1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(loop $continue|2
|
|
|
|
(if
|
|
|
|
(get_local $2)
|
|
|
|
(block
|
|
|
|
(set_local $0
|
|
|
|
(i32.add
|
|
|
|
(tee_local $3
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $4
|
|
|
|
(get_local $0)
|
|
|
|
)
|
2018-01-14 02:30:20 +01:00
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(set_local $1
|
|
|
|
(i32.add
|
|
|
|
(tee_local $3
|
|
|
|
(get_local $1)
|
2018-01-14 02:30:20 +01:00
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(get_local $4)
|
|
|
|
(i32.load8_u
|
|
|
|
(get_local $3)
|
2018-01-14 02:30:20 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $2
|
|
|
|
(i32.sub
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br $continue|2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(if
|
|
|
|
(i32.eq
|
2018-02-12 19:47:32 +02:00
|
|
|
(i32.and
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $1)
|
2018-02-12 19:47:32 +02:00
|
|
|
(i32.const 7)
|
2018-01-14 02:30:20 +01:00
|
|
|
)
|
2018-02-12 19:47:32 +02:00
|
|
|
(i32.and
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2018-02-12 19:47:32 +02:00
|
|
|
(i32.const 7)
|
2018-01-14 02:30:20 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(loop $continue|3
|
|
|
|
(if
|
2018-02-12 19:47:32 +02:00
|
|
|
(i32.and
|
2018-01-14 02:30:20 +01:00
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(get_local $2)
|
|
|
|
)
|
2018-02-12 19:47:32 +02:00
|
|
|
(i32.const 7)
|
2018-01-14 02:30:20 +01:00
|
|
|
)
|
|
|
|
(block
|
|
|
|
(if
|
|
|
|
(i32.eqz
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
(return)
|
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(tee_local $2
|
|
|
|
(i32.sub
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.load8_u
|
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br $continue|3)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(loop $continue|4
|
|
|
|
(if
|
|
|
|
(i32.ge_u
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(i64.store
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(tee_local $2
|
|
|
|
(i32.sub
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i64.load
|
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br $continue|4)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(loop $continue|5
|
|
|
|
(if
|
|
|
|
(get_local $2)
|
|
|
|
(block
|
|
|
|
(i32.store8
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(tee_local $2
|
|
|
|
(i32.sub
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.load8_u
|
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br $continue|5)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-08-02 18:23:02 +02:00
|
|
|
(func $~lib/internal/memory/memcmp (; 5 ;) (; has Stack IR ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
2018-07-18 23:49:32 +02:00
|
|
|
(local $3 i32)
|
2017-12-21 10:14:53 +01:00
|
|
|
(if
|
|
|
|
(i32.eq
|
|
|
|
(get_local $0)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(return
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(loop $continue|0
|
|
|
|
(if
|
2018-07-18 23:49:32 +02:00
|
|
|
(tee_local $3
|
|
|
|
(i32.ne
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $3
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.eq
|
|
|
|
(i32.load8_u
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(i32.load8_u
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-07-18 23:49:32 +02:00
|
|
|
)
|
|
|
|
(if
|
|
|
|
(get_local $3)
|
2017-12-21 10:14:53 +01:00
|
|
|
(block
|
|
|
|
(set_local $2
|
|
|
|
(i32.sub
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $0
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $1
|
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br $continue|0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $0
|
|
|
|
(if (result i32)
|
|
|
|
(get_local $2)
|
|
|
|
(i32.sub
|
|
|
|
(i32.load8_u
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(i32.load8_u
|
|
|
|
(get_local $1)
|
|
|
|
)
|
2017-12-21 10:14:53 +01:00
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 0)
|
2017-12-21 10:14:53 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-08-02 18:23:02 +02:00
|
|
|
(func $~lib/allocator/arena/__memory_free (; 6 ;) (; has Stack IR ;) (type $iv) (param $0 i32)
|
2018-02-04 07:51:40 +01:00
|
|
|
(nop)
|
|
|
|
)
|
2018-08-02 18:23:02 +02:00
|
|
|
(func $~lib/allocator/arena/__memory_reset (; 7 ;) (; has Stack IR ;) (type $v)
|
2018-04-02 19:05:26 +02:00
|
|
|
(set_global $~lib/allocator/arena/offset
|
|
|
|
(get_global $~lib/allocator/arena/startOffset)
|
2018-02-04 07:51:40 +01:00
|
|
|
)
|
|
|
|
)
|
2018-08-02 18:23:02 +02:00
|
|
|
(func $start (; 8 ;) (; has Stack IR ;) (type $v)
|
2018-04-02 19:05:26 +02:00
|
|
|
(set_global $~lib/allocator/arena/startOffset
|
2018-07-18 23:49:32 +02:00
|
|
|
(i32.const 56)
|
2017-12-16 02:27:39 +01:00
|
|
|
)
|
2018-04-02 19:05:26 +02:00
|
|
|
(set_global $~lib/allocator/arena/offset
|
|
|
|
(get_global $~lib/allocator/arena/startOffset)
|
2018-03-19 19:36:39 +01:00
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
(set_global $std/allocator_arena/ptr1
|
2018-08-02 18:23:02 +02:00
|
|
|
(call $~lib/allocator/arena/__memory_allocate
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.const 42)
|
|
|
|
)
|
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
(set_global $std/allocator_arena/ptr2
|
2018-08-02 18:23:02 +02:00
|
|
|
(call $~lib/allocator/arena/__memory_allocate
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.const 42)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.eq
|
2018-02-02 03:07:54 +01:00
|
|
|
(get_global $std/allocator_arena/ptr1)
|
|
|
|
(get_global $std/allocator_arena/ptr2)
|
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 8)
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 7)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
2017-12-21 10:14:53 +01:00
|
|
|
)
|
|
|
|
)
|
2018-08-02 18:23:02 +02:00
|
|
|
(call $~lib/internal/memory/memset
|
2018-02-02 03:07:54 +01:00
|
|
|
(get_global $std/allocator_arena/ptr1)
|
2018-01-14 02:30:20 +01:00
|
|
|
(i32.const 18)
|
|
|
|
(i32.const 42)
|
2017-12-21 10:14:53 +01:00
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(block $break|0
|
|
|
|
(set_global $std/allocator_arena/i
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
2018-05-25 15:59:17 +02:00
|
|
|
(loop $repeat|0
|
2018-05-23 11:32:12 +02:00
|
|
|
(br_if $break|0
|
|
|
|
(i32.ge_u
|
|
|
|
(get_global $std/allocator_arena/i)
|
|
|
|
(i32.const 42)
|
|
|
|
)
|
2017-12-21 10:14:53 +01:00
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(if
|
|
|
|
(i32.ne
|
|
|
|
(i32.load8_u
|
|
|
|
(i32.add
|
|
|
|
(get_global $std/allocator_arena/ptr1)
|
|
|
|
(get_global $std/allocator_arena/i)
|
2017-12-21 10:14:53 +01:00
|
|
|
)
|
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(i32.const 18)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
|
|
|
(i32.const 8)
|
2018-07-18 23:49:32 +02:00
|
|
|
(i32.const 12)
|
|
|
|
(i32.const 27)
|
2018-02-02 03:07:54 +01:00
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(unreachable)
|
2017-12-21 10:14:53 +01:00
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(block
|
|
|
|
(set_global $std/allocator_arena/i
|
|
|
|
(i32.add
|
|
|
|
(get_global $std/allocator_arena/i)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
2017-12-21 10:14:53 +01:00
|
|
|
)
|
2018-05-25 15:59:17 +02:00
|
|
|
(br $repeat|0)
|
2017-12-21 10:14:53 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-08-02 18:23:02 +02:00
|
|
|
(call $~lib/internal/memory/memmove
|
2018-02-02 03:07:54 +01:00
|
|
|
(get_global $std/allocator_arena/ptr2)
|
|
|
|
(get_global $std/allocator_arena/ptr1)
|
2018-01-14 02:30:20 +01:00
|
|
|
(i32.const 42)
|
2017-12-16 02:27:39 +01:00
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(block $break|1
|
|
|
|
(set_global $std/allocator_arena/i
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
2018-05-25 15:59:17 +02:00
|
|
|
(loop $repeat|1
|
2018-05-23 11:32:12 +02:00
|
|
|
(br_if $break|1
|
|
|
|
(i32.ge_u
|
|
|
|
(get_global $std/allocator_arena/i)
|
|
|
|
(i32.const 42)
|
|
|
|
)
|
2017-12-21 10:14:53 +01:00
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(if
|
|
|
|
(i32.ne
|
|
|
|
(i32.load8_u
|
|
|
|
(i32.add
|
|
|
|
(get_global $std/allocator_arena/ptr2)
|
|
|
|
(get_global $std/allocator_arena/i)
|
2017-12-21 10:14:53 +01:00
|
|
|
)
|
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(i32.const 18)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
|
|
|
(i32.const 8)
|
2018-07-18 23:49:32 +02:00
|
|
|
(i32.const 16)
|
|
|
|
(i32.const 27)
|
2018-02-02 03:07:54 +01:00
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(unreachable)
|
2017-12-21 10:14:53 +01:00
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(block
|
|
|
|
(set_global $std/allocator_arena/i
|
|
|
|
(i32.add
|
|
|
|
(get_global $std/allocator_arena/i)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
2017-12-21 10:14:53 +01:00
|
|
|
)
|
2018-05-25 15:59:17 +02:00
|
|
|
(br $repeat|1)
|
2017-12-21 10:14:53 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
2018-08-02 18:23:02 +02:00
|
|
|
(call $~lib/internal/memory/memcmp
|
2018-02-02 03:07:54 +01:00
|
|
|
(get_global $std/allocator_arena/ptr1)
|
|
|
|
(get_global $std/allocator_arena/ptr2)
|
2017-12-21 10:14:53 +01:00
|
|
|
(i32.const 42)
|
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 8)
|
2018-07-18 23:49:32 +02:00
|
|
|
(i32.const 18)
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
2017-12-16 02:27:39 +01:00
|
|
|
)
|
2018-08-02 18:23:02 +02:00
|
|
|
(call $~lib/allocator/arena/__memory_free
|
2018-02-04 07:51:40 +01:00
|
|
|
(get_global $std/allocator_arena/ptr1)
|
|
|
|
)
|
2018-08-02 18:23:02 +02:00
|
|
|
(call $~lib/allocator/arena/__memory_free
|
2018-02-04 07:51:40 +01:00
|
|
|
(get_global $std/allocator_arena/ptr2)
|
2018-01-28 19:14:20 +01:00
|
|
|
)
|
2018-08-02 18:23:02 +02:00
|
|
|
(call $~lib/allocator/arena/__memory_reset)
|
2018-02-02 03:07:54 +01:00
|
|
|
(set_global $std/allocator_arena/ptr1
|
2018-08-02 18:23:02 +02:00
|
|
|
(call $~lib/allocator/arena/__memory_allocate
|
2018-01-28 19:14:20 +01:00
|
|
|
(i32.const 42)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-02-02 03:07:54 +01:00
|
|
|
(get_global $std/allocator_arena/ptr1)
|
2018-07-18 23:49:32 +02:00
|
|
|
(i32.const 56)
|
2018-01-28 19:14:20 +01:00
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 8)
|
2018-07-18 23:49:32 +02:00
|
|
|
(i32.const 25)
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
2018-01-28 19:14:20 +01:00
|
|
|
)
|
2017-12-16 02:27:39 +01:00
|
|
|
)
|
|
|
|
)
|