(module (type $ii (func (param i32) (result i32))) (type $iiiiv (func (param i32 i32 i32 i32))) (type $v (func)) (type $FUNCSIG$v (func)) (import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32))) (global $~lib/allocator/arena/startOffset (mut i32) (i32.const 0)) (global $~lib/allocator/arena/offset (mut i32) (i32.const 0)) (global $std/string-utf8/str (mut i32) (i32.const 8)) (global $std/string-utf8/len (mut i32) (i32.const 0)) (global $std/string-utf8/ptr (mut i32) (i32.const 0)) (memory $0 1) (data (i32.const 8) "\06\00\00\00\01\d87\dch\00i\00R\d8b\df") (data (i32.const 24) "\12\00\00\00s\00t\00d\00/\00s\00t\00r\00i\00n\00g\00-\00u\00t\00f\008\00.\00t\00s") (export "memory" (memory $0)) (start $start) (func $~lib/string/String#get:lengthUTF8 (; 1 ;) (; has Stack IR ;) (type $ii) (param $0 i32) (result i32) (local $1 i32) (local $2 i32) (local $3 i32) (local $4 i32) (set_local $1 (i32.const 1) ) (set_local $4 (i32.load (get_local $0) ) ) (loop $continue|0 (if (i32.lt_u (get_local $2) (get_local $4) ) (block (set_local $2 (if (result i32) (i32.lt_u (tee_local $3 (i32.load16_u offset=4 (i32.add (get_local $0) (i32.shl (get_local $2) (i32.const 1) ) ) ) ) (i32.const 128) ) (block (result i32) (set_local $1 (i32.add (get_local $1) (i32.const 1) ) ) (i32.add (get_local $2) (i32.const 1) ) ) (if (result i32) (i32.lt_u (get_local $3) (i32.const 2048) ) (block (result i32) (set_local $1 (i32.add (get_local $1) (i32.const 2) ) ) (i32.add (get_local $2) (i32.const 1) ) ) (block (result i32) (if (tee_local $3 (i32.eq (i32.and (get_local $3) (i32.const 64512) ) (i32.const 55296) ) ) (set_local $3 (i32.lt_u (i32.add (get_local $2) (i32.const 1) ) (get_local $4) ) ) ) (if (get_local $3) (set_local $3 (i32.eq (i32.and (i32.load16_u offset=4 (i32.add (get_local $0) (i32.shl (i32.add (get_local $2) (i32.const 1) ) (i32.const 1) ) ) ) (i32.const 64512) ) (i32.const 56320) ) ) ) (if (result i32) (get_local $3) (block (result i32) (set_local $1 (i32.add (get_local $1) (i32.const 4) ) ) (i32.add (get_local $2) (i32.const 2) ) ) (block (result i32) (set_local $1 (i32.add (get_local $1) (i32.const 3) ) ) (i32.add (get_local $2) (i32.const 1) ) ) ) ) ) ) ) (br $continue|0) ) ) ) (get_local $1) ) (func $~lib/allocator/arena/__memory_allocate (; 2 ;) (; has Stack IR ;) (type $ii) (param $0 i32) (result i32) (local $1 i32) (local $2 i32) (local $3 i32) (if (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 (get_local $0) (i32.const 1) ) ) ) (i32.const 7) ) (i32.const -8) ) ) (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) ) (i32.const 65535) ) (i32.const -65536) ) (i32.const 16) ) ) (i32.gt_s (get_local $3) (get_local $0) ) ) ) (i32.const 0) ) (if (i32.lt_s (grow_memory (get_local $0) ) (i32.const 0) ) (unreachable) ) ) ) (set_global $~lib/allocator/arena/offset (get_local $2) ) (get_local $1) ) (func $~lib/string/String#toUTF8 (; 3 ;) (; has Stack IR ;) (type $ii) (param $0 i32) (result i32) (local $1 i32) (local $2 i32) (local $3 i32) (local $4 i32) (local $5 i32) (local $6 i32) (local $7 i32) (set_local $5 (call $~lib/allocator/arena/__memory_allocate (call $~lib/string/String#get:lengthUTF8 (get_local $0) ) ) ) (set_local $7 (i32.load (get_local $0) ) ) (loop $continue|0 (if (i32.lt_u (get_local $3) (get_local $7) ) (block (if (i32.lt_u (tee_local $1 (i32.load16_u offset=4 (i32.add (get_local $0) (i32.shl (get_local $3) (i32.const 1) ) ) ) ) (i32.const 128) ) (block (i32.store8 (i32.add (get_local $5) (get_local $2) ) (get_local $1) ) (set_local $2 (i32.add (get_local $2) (i32.const 1) ) ) ) (if (i32.lt_u (get_local $1) (i32.const 2048) ) (block (i32.store8 (tee_local $4 (i32.add (get_local $5) (get_local $2) ) ) (i32.or (i32.shr_u (get_local $1) (i32.const 6) ) (i32.const 192) ) ) (i32.store8 offset=1 (get_local $4) (i32.or (i32.and (get_local $1) (i32.const 63) ) (i32.const 128) ) ) (set_local $2 (i32.add (get_local $2) (i32.const 2) ) ) ) (block (set_local $4 (i32.add (get_local $5) (get_local $2) ) ) (if (tee_local $6 (i32.eq (i32.and (get_local $1) (i32.const 64512) ) (i32.const 55296) ) ) (set_local $6 (i32.lt_u (i32.add (get_local $3) (i32.const 1) ) (get_local $7) ) ) ) (if (get_local $6) (if (i32.eq (i32.and (tee_local $6 (i32.load16_u offset=4 (i32.add (get_local $0) (i32.shl (i32.add (get_local $3) (i32.const 1) ) (i32.const 1) ) ) ) ) (i32.const 64512) ) (i32.const 56320) ) (block (i32.store8 (get_local $4) (i32.or (i32.shr_u (tee_local $1 (i32.add (i32.add (i32.shl (i32.and (get_local $1) (i32.const 1023) ) (i32.const 10) ) (i32.const 65536) ) (i32.and (get_local $6) (i32.const 1023) ) ) ) (i32.const 18) ) (i32.const 240) ) ) (i32.store8 offset=1 (get_local $4) (i32.or (i32.and (i32.shr_u (get_local $1) (i32.const 12) ) (i32.const 63) ) (i32.const 128) ) ) (i32.store8 offset=2 (get_local $4) (i32.or (i32.and (i32.shr_u (get_local $1) (i32.const 6) ) (i32.const 63) ) (i32.const 128) ) ) (i32.store8 offset=3 (get_local $4) (i32.or (i32.and (get_local $1) (i32.const 63) ) (i32.const 128) ) ) (set_local $2 (i32.add (get_local $2) (i32.const 4) ) ) (set_local $3 (i32.add (get_local $3) (i32.const 2) ) ) (br $continue|0) ) ) ) (i32.store8 (get_local $4) (i32.or (i32.shr_u (get_local $1) (i32.const 12) ) (i32.const 224) ) ) (i32.store8 offset=1 (get_local $4) (i32.or (i32.and (i32.shr_u (get_local $1) (i32.const 6) ) (i32.const 63) ) (i32.const 128) ) ) (i32.store8 offset=2 (get_local $4) (i32.or (i32.and (get_local $1) (i32.const 63) ) (i32.const 128) ) ) (set_local $2 (i32.add (get_local $2) (i32.const 3) ) ) ) ) ) (set_local $3 (i32.add (get_local $3) (i32.const 1) ) ) (br $continue|0) ) ) ) (i32.store8 (i32.add (get_local $5) (get_local $2) ) (i32.const 0) ) (get_local $5) ) (func $~lib/allocator/arena/__memory_free (; 4 ;) (; has Stack IR ;) (type $FUNCSIG$v) (nop) ) (func $start (; 5 ;) (; has Stack IR ;) (type $v) (set_global $~lib/allocator/arena/startOffset (i32.const 64) ) (set_global $~lib/allocator/arena/offset (get_global $~lib/allocator/arena/startOffset) ) (set_global $std/string-utf8/len (call $~lib/string/String#get:lengthUTF8 (get_global $std/string-utf8/str) ) ) (if (i32.ne (get_global $std/string-utf8/len) (i32.const 11) ) (block (call $~lib/env/abort (i32.const 0) (i32.const 24) (i32.const 7) (i32.const 0) ) (unreachable) ) ) (set_global $std/string-utf8/ptr (call $~lib/string/String#toUTF8 (get_global $std/string-utf8/str) ) ) (if (i32.ne (i32.load8_u (get_global $std/string-utf8/ptr) ) (i32.const 240) ) (block (call $~lib/env/abort (i32.const 0) (i32.const 24) (i32.const 11) (i32.const 0) ) (unreachable) ) ) (if (i32.ne (i32.load8_u offset=1 (get_global $std/string-utf8/ptr) ) (i32.const 144) ) (block (call $~lib/env/abort (i32.const 0) (i32.const 24) (i32.const 12) (i32.const 0) ) (unreachable) ) ) (if (i32.ne (i32.load8_u offset=2 (get_global $std/string-utf8/ptr) ) (i32.const 144) ) (block (call $~lib/env/abort (i32.const 0) (i32.const 24) (i32.const 13) (i32.const 0) ) (unreachable) ) ) (if (i32.ne (i32.load8_u offset=3 (get_global $std/string-utf8/ptr) ) (i32.const 183) ) (block (call $~lib/env/abort (i32.const 0) (i32.const 24) (i32.const 14) (i32.const 0) ) (unreachable) ) ) (if (i32.ne (i32.load8_u offset=4 (get_global $std/string-utf8/ptr) ) (i32.const 104) ) (block (call $~lib/env/abort (i32.const 0) (i32.const 24) (i32.const 15) (i32.const 0) ) (unreachable) ) ) (if (i32.ne (i32.load8_u offset=5 (get_global $std/string-utf8/ptr) ) (i32.const 105) ) (block (call $~lib/env/abort (i32.const 0) (i32.const 24) (i32.const 16) (i32.const 0) ) (unreachable) ) ) (if (i32.ne (i32.load8_u offset=6 (get_global $std/string-utf8/ptr) ) (i32.const 240) ) (block (call $~lib/env/abort (i32.const 0) (i32.const 24) (i32.const 17) (i32.const 0) ) (unreachable) ) ) (if (i32.ne (i32.load8_u offset=7 (get_global $std/string-utf8/ptr) ) (i32.const 164) ) (block (call $~lib/env/abort (i32.const 0) (i32.const 24) (i32.const 18) (i32.const 0) ) (unreachable) ) ) (if (i32.ne (i32.load8_u offset=8 (get_global $std/string-utf8/ptr) ) (i32.const 173) ) (block (call $~lib/env/abort (i32.const 0) (i32.const 24) (i32.const 19) (i32.const 0) ) (unreachable) ) ) (if (i32.ne (i32.load8_u offset=9 (get_global $std/string-utf8/ptr) ) (i32.const 162) ) (block (call $~lib/env/abort (i32.const 0) (i32.const 24) (i32.const 20) (i32.const 0) ) (unreachable) ) ) (if (i32.load8_u offset=10 (get_global $std/string-utf8/ptr) ) (block (call $~lib/env/abort (i32.const 0) (i32.const 24) (i32.const 21) (i32.const 0) ) (unreachable) ) ) (call $~lib/allocator/arena/__memory_free) ) (func $null (; 6 ;) (; has Stack IR ;) (type $v) (nop) ) )