navid/veins / commit
97662c9d9373
Navid M <navidmomtahen@gmail.com> · 2026-11-27
parents: ff3e5d106585
Browse files at this commit · Download source
--- /dev/null+++ b/veins/ssa/out.ssa@@ -0,0 +1,211852 @@+data $str_w_mode = { b "w", b 0 }+data $str_r_mode = { b "r", b 0 }+data $sx_stdin_ptr = { l 0 }+data $sx_stdout_ptr = { l 0 }+data $sx_stderr_ptr = { l 0 }++function l $sx_stdout() {+@start+ %p =l loadl $sx_stdout_ptr+ %c =w cnel %p, 0+ jnz %c, @done, @init+@init+ %r =l call $fdopen(w 1, l $str_w_mode)+ storel %r, $sx_stdout_ptr+ ret %r+@done+ ret %p+}+function l $sx_stderr() {+@start+ %p =l loadl $sx_stderr_ptr+ %c =w cnel %p, 0+ jnz %c, @done, @init+@init+ %r =l call $fdopen(w 2, l $str_w_mode)+ storel %r, $sx_stderr_ptr+ ret %r+@done+ ret %p+}+function l $sx_stdin() {+@start+ %p =l loadl $sx_stdin_ptr+ %c =w cnel %p, 0+ jnz %c, @done, @init+@init+ %r =l call $fdopen(w 0, l $str_r_mode)+ storel %r, $sx_stdin_ptr+ ret %r+@done+ ret %p+}++data $sx_argc_store = { l 0 }+data $sx_argv_store = { l 0 }++function l $sx_get_args() {+@start+ %argc =l loadl $sx_argc_store+ %argv =l loadl $sx_argv_store+ %hdr =l call $malloc(l 32)+ %cap =l mul %argc, 8+ %buf =l call $malloc(l %cap)+ storel %buf, %hdr+ %len_slot =l add %hdr, 8+ storel 0, %len_slot+ %cap_slot =l add %hdr, 16+ storel %argc, %cap_slot+ %desc_slot =l add %hdr, 24+ storel 0, %desc_slot+ %i =l copy 0+@args_loop+ %done =w csgel %i, %argc+ jnz %done, @args_done, @args_body+@args_body+ %off =l mul %i, 8+ %slot =l add %argv, %off+ %str =l loadl %slot+ %cur_len =l loadl %len_slot+ %boff =l mul %cur_len, 8+ %bslot =l add %buf, %boff+ storel %str, %bslot+ %new_len =l add %cur_len, 1+ storel %new_len, %len_slot+ %i =l add %i, 1+ jmp @args_loop+@args_done+ ret %hdr+}++function l $__sx_get_args() {+@start+ %r =l call $sx_get_args()+ ret %r+}++function l $sxqbe_strcmp(l %a, l %b) {+@start+ %pa =l copy %a+ %pb =l copy %b+@loop+ %ca =w loadub %pa+ %cb =w loadub %pb+ %d =w sub %ca, %cb+ %ne =w cnew %d, 0+ jnz %ne, @diff, @same+@same+ %z =w ceqw %ca, 0+ jnz %z, @done, @advance+@advance+ %pa =l add %pa, 1+ %pb =l add %pb, 1+ jmp @loop+@diff+ %r =l extsw %d+ ret %r+@done+ ret 0+}++function l $sxqbe_atoi(l %s) {+@start+ %p =l copy %s+ %n =l copy 0+ %sign =l copy 1+@ws+ %c =w loadub %p+ %is_sp =w ceqw %c, 32+ %is_tab =w ceqw %c, 9+ %is_nl =w ceqw %c, 10+ %is_vt =w ceqw %c, 11+ %is_ff =w ceqw %c, 12+ %is_cr =w ceqw %c, 13+ %w1 =w or %is_sp, %is_tab+ %w2 =w or %is_nl, %is_vt+ %w3 =w or %is_ff, %is_cr+ %w4 =w or %w1, %w2+ %is_ws =w or %w4, %w3+ jnz %is_ws, @ws_advance, @sign+@ws_advance+ %p =l add %p, 1+ jmp @ws+@sign+ %c2 =w loadub %p+ %is_plus =w ceqw %c2, 43+ %is_minus =w ceqw %c2, 45+ %is_sign =w or %is_plus, %is_minus+ jnz %is_sign, @sign_advance, @digits+@sign_advance+ jnz %is_minus, @negative, @sign_done+@negative+ %sign =l copy -1+@sign_done+ %p =l add %p, 1+ jmp @digits+@digits+ %c3 =w loadub %p+ %ge0 =w cugew %c3, 48+ %le9 =w culew %c3, 57+ %is_digit =w and %ge0, %le9+ jnz %is_digit, @digit_body, @done+@digit_body+ %d =w sub %c3, 48+ %dl =l extuw %d+ %n10 =l mul %n, 10+ %n =l add %n10, %dl+ %p =l add %p, 1+ jmp @digits+@done+ %r =l mul %n, %sign+ ret %r+}++function l $sxqbe_strlen(l %s) {+@start+ %p =l copy %s+ %n =l copy 0+@loop+ %c =w loadub %p+ %done =w ceqw %c, 0+ jnz %done, @done, @body+@body+ %p =l add %p, 1+ %n =l add %n, 1+ jmp @loop+@done+ ret %n+}++function w $os__exit(w %code) {+@start+ call $exit(w %code)+ ret 0+}+dbgfile "spectrelib/allocators/core.sx"+export function l $std__allocators__Arena__new(l %__ret, l %capacity) {+@start+ %t0 =l alloc8 8+ %t8 =l alloc8 8+ %t12 =l alloc8 16+ %t16 =l alloc8 8+ %t22 =l alloc8 16+ %t33 =l alloc8 16+ dbgloc 35+ storel %capacity, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "capacity", "usize", %t0, 8, 5, 35+ dbgloc 36+ %t1 =l copy 0+ %t2 =w csgtl %capacity, %t1+ jnz %t2, @lbl0, @lbl1+@lbl1+ %t3 =l copy $__str1+ call $dprintf(w 2, l %t3)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl0+ dbgloc 40+ %t5 =l copy 24+ %t6 =l copy %t5+ %t4 =l call $malloc(l %t6)+ %t7 =l copy %t4+ storel %t7, %t8+ call $__sx_dbg_keep(l %t8)+ dbgvar "header", "ref ArenaHeader", %t8, 8, 7, 40+ dbgloc 43+ %t9 =l loadl %t8+ %t10 =l copy 0+ %t11 =w ceql %t9, %t10+ jnz %t11, @lbl2, @lbl3+@lbl2+ dbgloc 44+ call $memset(l %t12, w 0, l 16)+ storel 1, %t12+ %t13 =l copy 0+ %t14 =l add %t12, 8+ storel %t13, %t14+ call $memcpy(l %__ret, l %t12, l 16)+ ret %__ret+@lbl3+ dbgloc 47+ %t15 =l call $malloc(l %capacity)+ storel %t15, %t16+ call $__sx_dbg_keep(l %t16)+ dbgvar "buf", "ref ", %t16, 8, 7, 47+ dbgloc 48+ %t17 =l copy 0+ %t18 =w ceql %t15, %t17+ jnz %t18, @lbl5, @lbl6+@lbl5+ dbgloc 49+ %t20 =l loadl %t8+ %t21 =l copy %t20+ call $free(l %t21)+ %t19 =l copy 0+ dbgloc 50+ call $memset(l %t22, w 0, l 16)+ storel 1, %t22+ %t23 =l copy 0+ %t24 =l add %t22, 8+ storel %t23, %t24+ call $memcpy(l %__ret, l %t22, l 16)+ ret %__ret+@lbl6+ dbgloc 53+ %t26 =l copy 0+ call $memset(l %t15, w %t26, l %capacity)+ %t25 =l copy 0+ dbgloc 54+ %t27 =l loadl %t8+ storel %t15, %t27+ dbgloc 55+ %t28 =l copy 0+ %t29 =l loadl %t8+ %t30 =l add %t29, 8+ storel %t28, %t30+ dbgloc 56+ %t31 =l loadl %t8+ %t32 =l add %t31, 16+ storel %capacity, %t32+ dbgloc 58+ call $memset(l %t33, w 0, l 16)+ storel 0, %t33+ %t34 =l call $malloc(l 8)+ %t35 =l loadl %t8+ storel %t35, %t34+ %t37 =l add %t33, 8+ storel %t34, %t37+ call $memcpy(l %__ret, l %t33, l 16)+ ret %__ret+}++export function w $std__allocators__Arena__free(l %arena) {+@start+ %t0 =l alloc8 8+ %t2 =l alloc8 8+ dbgloc 62+ storel %arena, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "arena", "Arena", %t0, 8, 5, 62+ dbgloc 63+ %t1 =l loadl %arena+ storel %t1, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "header", "ref ArenaHeader", %t2, 8, 7, 63+ dbgloc 64+ %t3 =l loadl %t2+ %t4 =l loadl %t3+ %t5 =l copy 0+ %t6 =w cnel %t4, %t5+ jnz %t6, @lbl8, @lbl9+@lbl8+ dbgloc 65+ %t8 =l loadl %t2+ %t9 =l loadl %t8+ call $free(l %t9)+ %t7 =l copy 0+ jmp @lbl9+@lbl9+ dbgloc 67+ %t11 =l loadl %t2+ %t12 =l copy %t11+ call $free(l %t12)+ %t10 =l copy 0+ ret 0+}++export function l $std__allocators__Arena__alloc(l %__ret, l %arena, l %size) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t6 =l alloc8 8+ %t19 =l alloc8 8+ %t28 =l alloc8 16+ %t36 =l alloc8 8+ %t43 =l alloc8 16+ dbgloc 73+ storel %arena, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "arena", "Arena", %t0, 8, 5, 73+ storel %size, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "size", "usize", %t1, 8, 5, 73+ dbgloc 74+ %t2 =l copy 0+ %t3 =w csgtl %size, %t2+ jnz %t3, @lbl11, @lbl12+@lbl12+ %t4 =l copy $__str2+ call $dprintf(w 2, l %t4)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl11+ dbgloc 77+ %t5 =l loadl %arena+ storel %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "header", "ref ArenaHeader", %t6, 8, 7, 77+ dbgloc 78+ %t7 =l copy 7+ %t8 =l add %size, %t7+ %t9 =l copy 7+ %t10 =l add %size, %t9+ %t11 =l copy 7+ %t12 =l add %size, %t11+ %t13 =l copy 8+ %t14 =l div %t12, %t13+ %t15 =l copy 8+ %t16 =l mul %t14, %t15+ %t17 =l sub %t10, %t16+ %t18 =l sub %t8, %t17+ storel %t18, %t19+ call $__sx_dbg_keep(l %t19)+ dbgvar "aligned", "usize", %t19, 8, 5, 78+ dbgloc 79+ %t20 =l loadl %t6+ %t22 =l add %t20, 8+ %t21 =l loadl %t22+ %t23 =l add %t21, %t18+ %t24 =l loadl %t6+ %t26 =l add %t24, 16+ %t25 =l loadl %t26+ %t27 =w csgtl %t23, %t25+ jnz %t27, @lbl13, @lbl14+@lbl13+ dbgloc 80+ storel 0, %t28+ call $memcpy(l %__ret, l %t28, l 16)+ ret %__ret+@lbl14+ dbgloc 82+ %t30 =l loadl %t6+ %t31 =l loadl %t30+ %t32 =l loadl %t6+ %t34 =l add %t32, 8+ %t33 =l loadl %t34+ %t35 =l copy %t33+ %t29 =l add %t31, %t35+ storel %t29, %t36+ call $__sx_dbg_keep(l %t36)+ dbgvar "ptr", "ref ", %t36, 8, 7, 82+ dbgloc 83+ %t37 =l loadl %t6+ %t39 =l add %t37, 8+ %t38 =l loadl %t39+ %t40 =l add %t38, %t18+ %t41 =l loadl %t6+ %t42 =l add %t41, 8+ storel %t40, %t42+ dbgloc 84+ call $memset(l %t43, w 0, l 16)+ storel 1, %t43+ %t44 =l add %t43, 8+ storel %t29, %t44+ call $memcpy(l %__ret, l %t43, l 16)+ ret %__ret+}++export function l $std__allocators__Arena__alloc_or_none(l %arena, l %size) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t6 =l alloc8 16+ %t7 =l alloc8 8+ dbgloc 91+ storel %arena, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "arena", "Arena", %t0, 8, 5, 91+ storel %size, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "size", "usize", %t1, 8, 5, 91+ dbgloc 92+ %t2 =l copy 0+ %t3 =w csgtl %size, %t2+ jnz %t3, @lbl16, @lbl17+@lbl17+ %t4 =l copy $__str3+ call $dprintf(w 2, l %t4)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl16+ dbgloc 95+ %t5 =l call $std__allocators__Arena__alloc(l %t6, l %arena, l %size)+ storel %t6, %t7+ call $__sx_dbg_keep(l %t7)+ dbgvar "out", "option[ref ]", %t7, 8, 5, 95+ dbgloc 96+ %t8 =l loadl %t6+ %t9 =w cnel %t8, 0+ jnz %t9, @lbl18, @lbl19+@lbl18+ %t11 =l add %t6, 8+ %t10 =l loadl %t11+ dbgloc 98+ ret %t10+@lbl19+ dbgloc 101+ %t12 =l copy 0+ ret %t12+@lbl20+ ret 0+}++export function l $std__allocators__Arena__alloc_raw(l %arena, l %size) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t3 =l alloc8 16+ %t4 =l alloc8 8+ dbgloc 109+ storel %arena, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "arena", "Arena", %t0, 8, 5, 109+ storel %size, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "size", "usize", %t1, 8, 5, 109+ dbgloc 110+ %t2 =l call $std__allocators__Arena__alloc(l %t3, l %arena, l %size)+ storel %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "out", "option[ref ]", %t4, 8, 5, 110+ dbgloc 111+ %t5 =l loadl %t3+ %t6 =w cnel %t5, 0+ jnz %t6, @lbl21, @lbl22+@lbl21+ %t8 =l add %t3, 8+ %t7 =l loadl %t8+ dbgloc 112+ ret %t7+@lbl22+ jmp @lbl23+@lbl23+ dbgloc 114+ %t9 =l copy 0+ ret %t9+}++export function l $std__allocators__Arena__used(l %arena) {+@start+ %t0 =l alloc8 8+ dbgloc 118+ storel %arena, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "arena", "Arena", %t0, 8, 5, 118+ dbgloc 119+ %t1 =l loadl %arena+ %t3 =l add %t1, 8+ %t2 =l loadl %t3+ ret %t2+}++export function l $std__allocators__Arena__cap(l %arena) {+@start+ %t0 =l alloc8 8+ dbgloc 123+ storel %arena, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "arena", "Arena", %t0, 8, 5, 123+ dbgloc 124+ %t1 =l loadl %arena+ %t3 =l add %t1, 16+ %t2 =l loadl %t3+ ret %t2+}++export function l $std__allocators__Arena__remaining(l %arena) {+@start+ %t0 =l alloc8 8+ %t12 =l alloc8 8+ %t16 =l alloc8 8+ dbgloc 129+ storel %arena, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "arena", "Arena", %t0, 8, 5, 129+ dbgloc 130+ %t1 =l loadl %arena+ %t3 =l add %t1, 8+ %t2 =l loadl %t3+ %t4 =l loadl %arena+ %t6 =l add %t4, 16+ %t5 =l loadl %t6+ %t7 =w cslel %t2, %t5+ jnz %t7, @lbl24, @lbl25+@lbl25+ %t8 =l copy $__str4+ call $dprintf(w 2, l %t8)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl24+ dbgloc 133+ %t9 =l loadl %arena+ %t11 =l add %t9, 8+ %t10 =l loadl %t11+ storel %t10, %t12+ call $__sx_dbg_keep(l %t12)+ dbgvar "off", "usize", %t12, 8, 5, 133+ dbgloc 134+ %t13 =l loadl %arena+ %t15 =l add %t13, 16+ %t14 =l loadl %t15+ storel %t14, %t16+ call $__sx_dbg_keep(l %t16)+ dbgvar "cap", "usize", %t16, 8, 5, 134+ dbgloc 135+ %t17 =w cslel %t10, %t14+ jnz %t17, @lbl26, @lbl27+@lbl27+ %t18 =l copy $__str5+ call $dprintf(w 2, l %t18)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl26+ dbgloc 138+ %t19 =l sub %t14, %t10+ ret %t19+}++export function w $std__allocators__Arena__reset(l %arena) {+@start+ %t0 =l alloc8 8+ %t2 =l alloc8 8+ dbgloc 142+ storel %arena, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "arena", "Arena", %t0, 8, 5, 142+ dbgloc 143+ %t1 =l loadl %arena+ storel %t1, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "header", "ref ArenaHeader", %t2, 8, 7, 143+ dbgloc 144+ %t4 =l loadl %t2+ %t5 =l loadl %t4+ %t6 =l copy 0+ %t7 =l loadl %t2+ %t9 =l add %t7, 16+ %t8 =l loadl %t9+ call $memset(l %t5, w %t6, l %t8)+ %t3 =l copy 0+ dbgloc 145+ %t10 =l copy 0+ %t11 =l loadl %t2+ %t12 =l add %t11, 8+ storel %t10, %t12+ ret 0+}++export function l $std__allocators__Stack__new(l %__ret, l %capacity) {+@start+ %t0 =l alloc8 8+ %t8 =l alloc8 8+ %t12 =l alloc8 16+ %t16 =l alloc8 8+ %t22 =l alloc8 16+ %t31 =l alloc8 16+ dbgloc 229+ storel %capacity, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "capacity", "usize", %t0, 8, 5, 229+ dbgloc 230+ %t1 =l copy 0+ %t2 =w csgtl %capacity, %t1+ jnz %t2, @lbl28, @lbl29+@lbl29+ %t3 =l copy $__str6+ call $dprintf(w 2, l %t3)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl28+ dbgloc 233+ %t5 =l copy 24+ %t6 =l copy %t5+ %t4 =l call $malloc(l %t6)+ %t7 =l copy %t4+ storel %t7, %t8+ call $__sx_dbg_keep(l %t8)+ dbgvar "header", "ref StackHeader", %t8, 8, 7, 233+ dbgloc 236+ %t9 =l loadl %t8+ %t10 =l copy 0+ %t11 =w ceql %t9, %t10+ jnz %t11, @lbl30, @lbl31+@lbl30+ dbgloc 237+ call $memset(l %t12, w 0, l 16)+ storel 1, %t12+ %t13 =l copy 0+ %t14 =l add %t12, 8+ storel %t13, %t14+ call $memcpy(l %__ret, l %t12, l 16)+ ret %__ret+@lbl31+ dbgloc 239+ %t15 =l call $malloc(l %capacity)+ storel %t15, %t16+ call $__sx_dbg_keep(l %t16)+ dbgvar "buf", "ref ", %t16, 8, 7, 239+ dbgloc 240+ %t17 =l copy 0+ %t18 =w ceql %t15, %t17+ jnz %t18, @lbl33, @lbl34+@lbl33+ dbgloc 241+ %t20 =l loadl %t8+ %t21 =l copy %t20+ call $free(l %t21)+ %t19 =l copy 0+ dbgloc 242+ call $memset(l %t22, w 0, l 16)+ storel 1, %t22+ %t23 =l copy 0+ %t24 =l add %t22, 8+ storel %t23, %t24+ call $memcpy(l %__ret, l %t22, l 16)+ ret %__ret+@lbl34+ dbgloc 244+ %t25 =l loadl %t8+ storel %t15, %t25+ dbgloc 245+ %t26 =l copy 0+ %t27 =l loadl %t8+ %t28 =l add %t27, 8+ storel %t26, %t28+ dbgloc 246+ %t29 =l loadl %t8+ %t30 =l add %t29, 16+ storel %capacity, %t30+ dbgloc 247+ call $memset(l %t31, w 0, l 16)+ storel 0, %t31+ %t32 =l call $malloc(l 8)+ %t33 =l loadl %t8+ storel %t33, %t32+ %t35 =l add %t31, 8+ storel %t32, %t35+ call $memcpy(l %__ret, l %t31, l 16)+ ret %__ret+}++export function l $std__allocators__Stack__alloc(l %__ret, l %stack, l %size) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t6 =l alloc8 8+ %t12 =l alloc8 8+ %t21 =l alloc8 16+ %t29 =l alloc8 8+ %t36 =l alloc8 16+ dbgloc 251+ storel %stack, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "stack", "Stack", %t0, 8, 5, 251+ storel %size, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "size", "usize", %t1, 8, 5, 251+ dbgloc 252+ %t2 =l copy 0+ %t3 =w csgtl %size, %t2+ jnz %t3, @lbl36, @lbl37+@lbl37+ %t4 =l copy $__str7+ call $dprintf(w 2, l %t4)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl36+ dbgloc 256+ %t5 =l loadl %stack+ storel %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "header", "ref StackHeader", %t6, 8, 7, 256+ dbgloc 257+ %t7 =l copy 7+ %t8 =l add %size, %t7+ %t9 =l copy 7+ %t10 =l xor %t9, -1+ %t11 =l and %t8, %t10+ storel %t11, %t12+ call $__sx_dbg_keep(l %t12)+ dbgvar "aligned", "usize", %t12, 8, 5, 257+ dbgloc 259+ %t13 =l loadl %t6+ %t15 =l add %t13, 8+ %t14 =l loadl %t15+ %t16 =l add %t14, %t11+ %t17 =l loadl %t6+ %t19 =l add %t17, 16+ %t18 =l loadl %t19+ %t20 =w csgtl %t16, %t18+ jnz %t20, @lbl38, @lbl39+@lbl38+ dbgloc 260+ storel 0, %t21+ call $memcpy(l %__ret, l %t21, l 16)+ ret %__ret+@lbl39+ dbgloc 263+ %t23 =l loadl %t6+ %t24 =l loadl %t23+ %t25 =l loadl %t6+ %t27 =l add %t25, 8+ %t26 =l loadl %t27+ %t28 =l copy %t26+ %t22 =l add %t24, %t28+ storel %t22, %t29+ call $__sx_dbg_keep(l %t29)+ dbgvar "ptr", "ref ", %t29, 8, 7, 263+ dbgloc 264+ %t30 =l loadl %t6+ %t32 =l add %t30, 8+ %t31 =l loadl %t32+ %t33 =l add %t31, %t11+ %t34 =l loadl %t6+ %t35 =l add %t34, 8+ storel %t33, %t35+ dbgloc 265+ call $memset(l %t36, w 0, l 16)+ storel 1, %t36+ %t37 =l add %t36, 8+ storel %t22, %t37+ call $memcpy(l %__ret, l %t36, l 16)+ ret %__ret+}++export function l $std__allocators__Stack__save(l %stack) {+@start+ %t0 =l alloc8 8+ dbgloc 270+ storel %stack, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "stack", "Stack", %t0, 8, 5, 270+ dbgloc 271+ %t1 =l loadl %stack+ %t3 =l add %t1, 8+ %t2 =l loadl %t3+ ret %t2+}++export function w $std__allocators__Stack__restore(l %stack, l %checkpoint) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t12 =l alloc8 8+ dbgloc 276+ storel %stack, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "stack", "Stack", %t0, 8, 5, 276+ storel %checkpoint, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "checkpoint", "usize", %t1, 8, 5, 276+ dbgloc 277+ %t2 =l loadl %stack+ %t4 =l add %t2, 16+ %t3 =l loadl %t4+ %t5 =w cslel %checkpoint, %t3+ jnz %t5, @lbl41, @lbl42+@lbl42+ %t6 =l copy $__str8+ call $dprintf(w 2, l %t6)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl41+ %t7 =l copy 0+ %t9 =w csltl %checkpoint, %t7+ %t8 =w ceqw %t9, 0+ jnz %t8, @lbl43, @lbl44+@lbl44+ %t10 =l copy $__str9+ call $dprintf(w 2, l %t10)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl43+ dbgloc 281+ %t11 =l loadl %stack+ storel %t11, %t12+ call $__sx_dbg_keep(l %t12)+ dbgvar "header", "ref StackHeader", %t12, 8, 7, 281+ dbgloc 282+ %t13 =l loadl %t12+ %t14 =l add %t13, 8+ storel %checkpoint, %t14+ ret 0+}++export function w $std__allocators__Stack__free(l %stack) {+@start+ %t0 =l alloc8 8+ %t2 =l alloc8 8+ dbgloc 286+ storel %stack, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "stack", "Stack", %t0, 8, 5, 286+ dbgloc 287+ %t1 =l loadl %stack+ storel %t1, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "header", "ref StackHeader", %t2, 8, 7, 287+ dbgloc 288+ %t3 =l loadl %t2+ %t4 =l loadl %t3+ %t5 =l copy 0+ %t6 =w cnel %t4, %t5+ jnz %t6, @lbl45, @lbl46+@lbl45+ dbgloc 289+ %t8 =l loadl %t2+ %t9 =l loadl %t8+ call $free(l %t9)+ %t7 =l copy 0+ jmp @lbl46+@lbl46+ dbgloc 291+ %t11 =l loadl %t2+ %t12 =l copy %t11+ call $free(l %t12)+ %t10 =l copy 0+ ret 0+}++export function l $std__allocators__HeapAllocator__alloc(l %__ret, l %_unused.0, l %size) {+@start+ %t0 =l alloc8 8+ %t6 =l alloc8 8+ %t8 =l alloc8 8+ %t11 =l alloc8 16+ %t15 =l alloc8 8+ %t16 =l alloc8 16+ dbgloc 339+ storel %size, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "size", "usize", %t0, 8, 5, 339+ dbgloc 340+ %t1 =l copy 0+ %t2 =w csgtl %size, %t1+ jnz %t2, @lbl48, @lbl49+@lbl49+ %t3 =l copy $__str10+ call $dprintf(w 2, l %t3)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl48+ dbgloc 343+ %t4 =l copy 8+ %t5 =l add %size, %t4+ storel %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "total", "usize", %t6, 8, 5, 343+ dbgloc 344+ %t7 =l call $malloc(l %t5)+ storel %t7, %t8+ call $__sx_dbg_keep(l %t8)+ dbgvar "raw", "ref ", %t8, 8, 7, 344+ dbgloc 345+ %t9 =l copy 0+ %t10 =w ceql %t7, %t9+ jnz %t10, @lbl50, @lbl51+@lbl50+ dbgloc 346+ storel 0, %t11+ call $memcpy(l %__ret, l %t11, l 16)+ ret %__ret+@lbl51+ dbgloc 348+ storel %size, %t7+ %t12 =l copy 0+ dbgloc 349+ %t14 =l copy 8+ %t13 =l add %t7, %t14+ storel %t13, %t15+ call $__sx_dbg_keep(l %t15)+ dbgvar "user_ptr", "ref ", %t15, 8, 7, 349+ dbgloc 350+ call $memset(l %t16, w 0, l 16)+ storel 1, %t16+ %t17 =l add %t16, 8+ storel %t13, %t17+ call $memcpy(l %__ret, l %t16, l 16)+ ret %__ret+}++export function w $std__allocators__HeapAllocator__free(l %_unused.0, l %ptr) {+@start+ %t0 =l alloc8 8+ %t4 =l alloc8 8+ dbgloc 354+ storel %ptr, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "ptr", "ref ", %t0, 8, 7, 354+ dbgloc 355+ %t2 =l copy 8+ %t3 =l neg %t2+ %t1 =l add %ptr, %t3+ storel %t1, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "raw", "ref ", %t4, 8, 7, 355+ dbgloc 356+ call $free(l %t1)+ %t5 =l copy 0+ ret 0+}++export function l $std__allocators__HeapAllocator__realloc(l %__ret, l %_unused.0, l %ptr, l %new_size) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t8 =l alloc8 8+ %t11 =l alloc8 8+ %t13 =l alloc8 8+ %t16 =l alloc8 16+ %t20 =l alloc8 8+ %t21 =l alloc8 16+ dbgloc 360+ storel %ptr, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "ptr", "ref ", %t0, 8, 7, 360+ storel %new_size, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "new_size", "usize", %t1, 8, 5, 360+ dbgloc 361+ %t2 =l copy 0+ %t3 =w csgtl %new_size, %t2+ jnz %t3, @lbl53, @lbl54+@lbl54+ %t4 =l copy $__str11+ call $dprintf(w 2, l %t4)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl53+ dbgloc 365+ %t6 =l copy 8+ %t7 =l neg %t6+ %t5 =l add %ptr, %t7+ storel %t5, %t8+ call $__sx_dbg_keep(l %t8)+ dbgvar "old_raw", "ref ", %t8, 8, 7, 365+ dbgloc 366+ %t9 =l copy 8+ %t10 =l add %new_size, %t9+ storel %t10, %t11+ call $__sx_dbg_keep(l %t11)+ dbgvar "new_total", "usize", %t11, 8, 5, 366+ dbgloc 367+ %t12 =l call $realloc(l %t5, l %t10)+ storel %t12, %t13+ call $__sx_dbg_keep(l %t13)+ dbgvar "new_raw", "ref ", %t13, 8, 7, 367+ dbgloc 369+ %t14 =l copy 0+ %t15 =w ceql %t12, %t14+ jnz %t15, @lbl55, @lbl56+@lbl55+ dbgloc 370+ storel 0, %t16+ call $memcpy(l %__ret, l %t16, l 16)+ ret %__ret+@lbl56+ dbgloc 373+ storel %new_size, %t12+ %t17 =l copy 0+ dbgloc 375+ %t19 =l copy 8+ %t18 =l add %t12, %t19+ storel %t18, %t20+ call $__sx_dbg_keep(l %t20)+ dbgvar "new_ptr", "ref ", %t20, 8, 7, 375+ dbgloc 376+ call $memset(l %t21, w 0, l 16)+ storel 1, %t21+ %t22 =l add %t21, 8+ storel %t18, %t22+ call $memcpy(l %__ret, l %t21, l 16)+ ret %__ret+}++function l $std__allocators__scoped_block_new(l %__ret, l %block_size) {+@start+ %t0 =l alloc8 8+ %t4 =l alloc8 8+ %t6 =l alloc8 8+ %t10 =l alloc4 1+ %t19 =l alloc8 16+ %t31 =l alloc8 16+ dbgloc 467+ storel %block_size, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "block_size", "usize", %t0, 8, 5, 467+ dbgloc 468+ %t2 =l copy 32+ %t1 =l call $malloc(l %t2)+ %t3 =l copy %t1+ storel %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "node", "ref ScopedArenaBlock", %t4, 8, 7, 468+ dbgloc 469+ %t5 =l call $malloc(l %block_size)+ storel %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "buf", "ref ", %t6, 8, 7, 469+ dbgloc 470+ %t7 =l loadl %t4+ %t8 =l copy 0+ %t9 =w ceql %t7, %t8+ storew %t9, %t10+ jnz %t9, @lbl62, @lbl61+@lbl61+ %t11 =l copy 0+ %t12 =w ceql %t5, %t11+ storew %t12, %t10+ jmp @lbl62+@lbl62+ %t13 =w loadw %t10+ jnz %t13, @lbl58, @lbl59+@lbl58+ dbgloc 471+ %t14 =l loadl %t4+ %t15 =l copy 0+ %t16 =w cnel %t14, %t15+ jnz %t16, @lbl63, @lbl64+@lbl63+ dbgloc 472+ %t18 =l loadl %t4+ call $free(l %t18)+ %t17 =l copy 0+ jmp @lbl64+@lbl64+ dbgloc 474+ call $memset(l %t19, w 0, l 16)+ storel 1, %t19+ %t20 =l copy 0+ %t21 =l add %t19, 8+ storel %t20, %t21+ call $memcpy(l %__ret, l %t19, l 16)+ ret %__ret+@lbl59+ dbgloc 476+ %t22 =l loadl %t4+ storel %t5, %t22+ dbgloc 477+ %t23 =l copy 0+ %t24 =l loadl %t4+ %t25 =l add %t24, 8+ storel %t23, %t25+ dbgloc 478+ %t26 =l loadl %t4+ %t27 =l add %t26, 16+ storel %block_size, %t27+ dbgloc 479+ %t28 =l copy 0+ %t29 =l loadl %t4+ %t30 =l add %t29, 24+ storel %t28, %t30+ dbgloc 480+ call $memset(l %t31, w 0, l 16)+ storel 0, %t31+ %t32 =l loadl %t4+ %t33 =l add %t31, 8+ storel %t32, %t33+ call $memcpy(l %__ret, l %t31, l 16)+ ret %__ret+}++export function l $std__allocators__ScopedArena__new(l %__ret, l %block_size) {+@start+ %t0 =l alloc8 8+ %t7 =l alloc8 8+ %t11 =l alloc8 16+ %t21 =l alloc8 16+ dbgloc 484+ storel %block_size, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "block_size", "usize", %t0, 8, 5, 484+ dbgloc 485+ %t1 =l copy 0+ %t2 =w csgtl %block_size, %t1+ jnz %t2, @lbl66, @lbl67+@lbl67+ %t3 =l copy $__str12+ call $dprintf(w 2, l %t3)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl66+ dbgloc 488+ %t5 =l copy 24+ %t4 =l call $malloc(l %t5)+ %t6 =l copy %t4+ storel %t6, %t7+ call $__sx_dbg_keep(l %t7)+ dbgvar "a", "ref ScopedArena", %t7, 8, 7, 488+ dbgloc 489+ %t8 =l loadl %t7+ %t9 =l copy 0+ %t10 =w ceql %t8, %t9+ jnz %t10, @lbl68, @lbl69+@lbl68+ dbgloc 490+ call $memset(l %t11, w 0, l 16)+ storel 1, %t11+ %t12 =l copy 0+ %t13 =l add %t11, 8+ storel %t12, %t13+ call $memcpy(l %__ret, l %t11, l 16)+ ret %__ret+@lbl69+ dbgloc 492+ %t14 =l copy 0+ %t15 =l loadl %t7+ storel %t14, %t15+ dbgloc 493+ %t16 =l copy 0+ %t17 =l loadl %t7+ %t18 =l add %t17, 8+ storel %t16, %t18+ dbgloc 494+ %t19 =l loadl %t7+ %t20 =l add %t19, 16+ storel %block_size, %t20+ dbgloc 495+ call $memset(l %t21, w 0, l 16)+ storel 0, %t21+ %t22 =l loadl %t7+ %t23 =l copy %t22+ %t24 =l add %t21, 8+ storel %t23, %t24+ call $memcpy(l %__ret, l %t21, l 16)+ ret %__ret+}++export function l $std__allocators__ScopedArena__alloc(l %__ret, l %a, l %size) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t6 =l alloc8 8+ %t13 =l alloc8 8+ %t18 =l alloc8 8+ %t36 =l alloc8 8+ %t46 =l alloc8 16+ %t54 =l alloc8 8+ %t59 =l alloc8 16+ %t77 =l alloc8 8+ %t82 =l alloc8 16+ %t84 =l alloc8 16+ %t85 =l alloc8 16+ dbgloc 499+ storel %a, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "a", "ScopedArenaAllocator", %t0, 8, 5, 499+ storel %size, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "size", "usize", %t1, 8, 5, 499+ dbgloc 500+ %t2 =l copy 0+ %t3 =w csgtl %size, %t2+ jnz %t3, @lbl71, @lbl72+@lbl72+ %t4 =l copy $__str13+ call $dprintf(w 2, l %t4)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl71+ dbgloc 503+ %t5 =l copy %a+ storel %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "au", "ref ScopedArena", %t6, 8, 7, 503+ dbgloc 504+ %t7 =l copy 7+ %t8 =l add %size, %t7+ %t9 =l copy 7+ %t10 =l copy %t9+ %t11 =l xor %t10, -1+ %t12 =l and %t8, %t11+ storel %t12, %t13+ call $__sx_dbg_keep(l %t13)+ dbgvar "aligned", "usize", %t13, 8, 5, 504+ dbgloc 505+ %t14 =l loadl %t6+ %t16 =l add %t14, 8+ %t15 =l loadl %t16+ %t17 =l copy %t15+ storel %t17, %t18+ call $__sx_dbg_keep(l %t18)+ dbgvar "node", "ref ScopedArenaBlock", %t18, 8, 7, 505+ dbgloc 506+ jmp @lbl73+@lbl73+ jmp @lbl74+@lbl74+ dbgloc 507+ %t19 =l loadl %t18+ %t20 =l copy 0+ %t21 =w ceql %t19, %t20+ jnz %t21, @lbl77, @lbl78+@lbl77+ dbgloc 508+ jmp @lbl76+@lbl78+ dbgloc 510+ %t22 =l loadl %t18+ %t24 =l add %t22, 8+ %t23 =l loadl %t24+ %t25 =l add %t23, %t12+ %t26 =l loadl %t18+ %t28 =l add %t26, 16+ %t27 =l loadl %t28+ %t29 =w cslel %t25, %t27+ jnz %t29, @lbl80, @lbl81+@lbl80+ dbgloc 511+ %t31 =l loadl %t18+ %t32 =l loadl %t31+ %t33 =l loadl %t18+ %t35 =l add %t33, 8+ %t34 =l loadl %t35+ %t30 =l add %t32, %t34+ storel %t30, %t36+ call $__sx_dbg_keep(l %t36)+ dbgvar "ptr", "ref ", %t36, 8, 7, 511+ dbgloc 512+ %t37 =l loadl %t18+ %t39 =l add %t37, 8+ %t38 =l loadl %t39+ %t40 =l add %t38, %t12+ %t41 =l loadl %t18+ %t42 =l add %t41, 8+ storel %t40, %t42+ dbgloc 513+ %t43 =l loadl %t18+ %t44 =l loadl %t6+ %t45 =l add %t44, 8+ storel %t43, %t45+ dbgloc 514+ call $memset(l %t46, w 0, l 16)+ storel 1, %t46+ %t47 =l add %t46, 8+ storel %t30, %t47+ call $memcpy(l %__ret, l %t46, l 16)+ ret %__ret+@lbl81+ dbgloc 516+ %t48 =l loadl %t18+ %t50 =l add %t48, 24+ %t49 =l loadl %t50+ storel %t49, %t18+ jmp @lbl75+@lbl75+ jmp @lbl73+@lbl76+ dbgloc 518+ %t51 =l loadl %t6+ %t53 =l add %t51, 16+ %t52 =l loadl %t53+ storel %t52, %t54+ call $__sx_dbg_keep(l %t54)+ dbgvar "cap", "usize", %t54, 8, 5, 518+ dbgloc 519+ %t55 =l loadl %t54+ %t56 =w csgtl %t12, %t55+ jnz %t56, @lbl83, @lbl84+@lbl83+ dbgloc 520+ storel %t12, %t54+ jmp @lbl84+@lbl84+ dbgloc 522+ %t57 =l loadl %t54+ %t58 =l call $std__allocators__scoped_block_new(l %t59, l %t57)+ %t60 =l loadl %t59+ %t61 =w ceql %t60, 0+ jnz %t61, @lbl86, @lbl87+@lbl86+ %t63 =l add %t59, 8+ %t62 =l loadl %t63+ dbgloc 524+ %t64 =l loadl %t6+ %t65 =l loadl %t64+ %t66 =l copy %t65+ %t67 =l add %t62, 24+ storel %t66, %t67+ dbgloc 525+ %t68 =l copy %t62+ %t69 =l loadl %t6+ storel %t68, %t69+ dbgloc 526+ %t70 =l copy %t62+ %t71 =l loadl %t6+ %t72 =l add %t71, 8+ storel %t70, %t72+ dbgloc 527+ %t74 =l loadl %t62+ %t76 =l add %t62, 8+ %t75 =l loadl %t76+ %t73 =l add %t74, %t75+ storel %t73, %t77+ call $__sx_dbg_keep(l %t77)+ dbgvar "ptr", "ref ", %t77, 8, 7, 527+ dbgloc 528+ %t79 =l add %t62, 8+ %t78 =l loadl %t79+ %t80 =l add %t78, %t12+ %t81 =l add %t62, 8+ storel %t80, %t81+ dbgloc 529+ call $memset(l %t82, w 0, l 16)+ storel 1, %t82+ %t83 =l add %t82, 8+ storel %t73, %t83+ call $memcpy(l %__ret, l %t82, l 16)+ ret %__ret+@lbl87+ dbgloc 532+ storel 0, %t84+ call $memcpy(l %__ret, l %t84, l 16)+ ret %__ret+@lbl88+ dbgloc 535+ storel 0, %t85+ call $memcpy(l %__ret, l %t85, l 16)+ ret %__ret+}++export function l $std__allocators__ScopedArena__alloc_or_none(l %a, l %size) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t3 =l alloc8 16+ dbgloc 539+ storel %a, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "a", "ScopedArenaAllocator", %t0, 8, 5, 539+ storel %size, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "size", "usize", %t1, 8, 5, 539+ dbgloc 540+ %t2 =l call $std__allocators__ScopedArena__alloc(l %t3, l %a, l %size)+ %t4 =l loadl %t3+ %t5 =w cnel %t4, 0+ jnz %t5, @lbl89, @lbl90+@lbl89+ %t7 =l add %t3, 8+ %t6 =l loadl %t7+ dbgloc 542+ ret %t6+@lbl90+ dbgloc 545+ %t8 =l copy 0+ ret %t8+@lbl91+ ret 0+}++export function l $std__allocators__ScopedArena__alloc_raw(l %a, l %size) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t3 =l alloc8 16+ dbgloc 553+ storel %a, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "a", "ScopedArenaAllocator", %t0, 8, 5, 553+ storel %size, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "size", "usize", %t1, 8, 5, 553+ dbgloc 554+ %t2 =l call $std__allocators__ScopedArena__alloc(l %t3, l %a, l %size)+ %t4 =l loadl %t3+ %t5 =w cnel %t4, 0+ jnz %t5, @lbl92, @lbl93+@lbl92+ %t7 =l add %t3, 8+ %t6 =l loadl %t7+ dbgloc 556+ ret %t6+@lbl93+ dbgloc 559+ %t8 =l copy 0+ ret %t8+@lbl94+ ret 0+}++export function w $std__allocators__ScopedArena__reset(l %a) {+@start+ %t0 =l alloc8 8+ %t2 =l alloc8 8+ %t6 =l alloc8 8+ dbgloc 565+ storel %a, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "a", "ScopedArenaAllocator", %t0, 8, 5, 565+ dbgloc 566+ %t1 =l copy %a+ storel %t1, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "au", "ref ScopedArena", %t2, 8, 7, 566+ dbgloc 567+ %t3 =l loadl %t2+ %t4 =l loadl %t3+ %t5 =l copy %t4+ storel %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "node", "ref ScopedArenaBlock", %t6, 8, 7, 567+ dbgloc 568+ jmp @lbl95+@lbl95+ jmp @lbl96+@lbl96+ dbgloc 569+ %t7 =l loadl %t6+ %t8 =l copy 0+ %t9 =w ceql %t7, %t8+ jnz %t9, @lbl99, @lbl100+@lbl99+ dbgloc 570+ jmp @lbl98+@lbl100+ dbgloc 572+ %t10 =l copy 0+ %t11 =l loadl %t6+ %t12 =l add %t11, 8+ storel %t10, %t12+ dbgloc 573+ %t13 =l loadl %t6+ %t15 =l add %t13, 24+ %t14 =l loadl %t15+ storel %t14, %t6+ jmp @lbl97+@lbl97+ jmp @lbl95+@lbl98+ dbgloc 575+ %t16 =l loadl %t2+ %t17 =l loadl %t16+ %t18 =l loadl %t2+ %t19 =l add %t18, 8+ storel %t17, %t19+ ret 0+}++export function w $std__allocators__ScopedArena__free(l %a) {+@start+ %t0 =l alloc8 8+ %t2 =l alloc8 8+ %t6 =l alloc8 8+ %t13 =l alloc8 8+ dbgloc 579+ storel %a, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "a", "ScopedArenaAllocator", %t0, 8, 5, 579+ dbgloc 580+ %t1 =l copy %a+ storel %t1, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "au", "ref ScopedArena", %t2, 8, 7, 580+ dbgloc 581+ %t3 =l loadl %t2+ %t4 =l loadl %t3+ %t5 =l copy %t4+ storel %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "node", "ref ScopedArenaBlock", %t6, 8, 7, 581+ dbgloc 582+ jmp @lbl102+@lbl102+ jmp @lbl103+@lbl103+ dbgloc 583+ %t7 =l loadl %t6+ %t8 =l copy 0+ %t9 =w ceql %t7, %t8+ jnz %t9, @lbl106, @lbl107+@lbl106+ dbgloc 584+ jmp @lbl105+@lbl107+ dbgloc 586+ %t10 =l loadl %t6+ %t12 =l add %t10, 24+ %t11 =l loadl %t12+ storel %t11, %t13+ call $__sx_dbg_keep(l %t13)+ dbgvar "next_node", "ref ScopedArenaBlock", %t13, 8, 7, 586+ dbgloc 587+ %t15 =l loadl %t6+ %t16 =l loadl %t15+ call $free(l %t16)+ %t14 =l copy 0+ dbgloc 588+ %t18 =l loadl %t6+ call $free(l %t18)+ %t17 =l copy 0+ dbgloc 589+ storel %t11, %t6+ jmp @lbl104+@lbl104+ jmp @lbl102+@lbl105+ dbgloc 591+ %t20 =l loadl %t2+ call $free(l %t20)+ %t19 =l copy 0+ ret 0+}++export function l $std__allocators__ListArena__alloc(l %__ret, l %a, l %size) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t6 =l alloc8 8+ %t9 =l alloc8 16+ %t13 =l alloc8 16+ dbgloc 604+ storel %a, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "a", "ListArena", %t0, 8, 5, 604+ storel %size, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "size", "usize", %t1, 8, 5, 604+ dbgloc 605+ %t2 =l loadl %a+ %t3 =l copy 8+ %t4 =l add %size, %t3+ %t5 =l call $std__allocators__ScopedArena__alloc_or_none(l %t2, l %t4)+ storel %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "raw", "ref ", %t6, 8, 7, 605+ dbgloc 606+ %t7 =l copy 0+ %t8 =w ceql %t5, %t7+ jnz %t8, @lbl109, @lbl110+@lbl109+ dbgloc 607+ storel 0, %t9+ call $memcpy(l %__ret, l %t9, l 16)+ ret %__ret+@lbl110+ dbgloc 609+ storel %size, %t5+ %t10 =l copy 0+ dbgloc 610+ %t12 =l copy 8+ %t11 =l add %t5, %t12+ call $memset(l %t13, w 0, l 16)+ storel 1, %t13+ %t14 =l add %t13, 8+ storel %t11, %t14+ call $memcpy(l %__ret, l %t13, l 16)+ ret %__ret+}++export function w $std__allocators__ListArena__free(l %_unused.0, l %_unused.1) {+@start+ dbgloc 614+ ret 0+}++export function l $std__allocators__ListArena__realloc(l %__ret, l %a, l %ptr, l %new_size) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t6 =l alloc8 16+ %t12 =l alloc8 8+ %t14 =l alloc8 16+ %t15 =l alloc8 8+ %t20 =l alloc8 8+ %t25 =l alloc8 16+ %t27 =l alloc8 16+ dbgloc 617+ storel %a, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "a", "ListArena", %t0, 8, 5, 617+ storel %ptr, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "ptr", "ref ", %t1, 8, 7, 617+ storel %new_size, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "new_size", "usize", %t2, 8, 5, 617+ dbgloc 618+ %t3 =l copy 0+ %t4 =w ceql %ptr, %t3+ jnz %t4, @lbl112, @lbl113+@lbl112+ dbgloc 619+ %t5 =l call $std__allocators__ListArena__alloc(l %t6, l %a, l %new_size)+ call $memcpy(l %__ret, l %t6, l 16)+ ret %__ret+@lbl113+ dbgloc 621+ %t9 =l copy 8+ %t10 =l neg %t9+ %t8 =l add %ptr, %t10+ %t7 =l loadl %t8+ %t11 =l copy %t7+ storel %t11, %t12+ call $__sx_dbg_keep(l %t12)+ dbgvar "old_size", "usize", %t12, 8, 5, 621+ dbgloc 622+ %t13 =l call $std__allocators__ListArena__alloc(l %t14, l %a, l %new_size)+ storel %t14, %t15+ call $__sx_dbg_keep(l %t15)+ dbgvar "next", "option[ref ]", %t15, 8, 5, 622+ dbgloc 623+ %t16 =l loadl %t14+ %t17 =w cnel %t16, 0+ jnz %t17, @lbl115, @lbl116+@lbl115+ %t19 =l add %t14, 8+ %t18 =l loadl %t19+ dbgloc 624+ storel %t11, %t20+ call $__sx_dbg_keep(l %t20)+ dbgvar "copy_len", "usize", %t20, 8, 5, 624+ dbgloc 625+ %t21 =l loadl %t20+ %t22 =w csltl %new_size, %t21+ jnz %t22, @lbl118, @lbl119+@lbl118+ dbgloc 626+ storel %new_size, %t20+ jmp @lbl119+@lbl119+ dbgloc 628+ %t24 =l loadl %t20+ call $memcpy(l %t18, l %ptr, l %t24)+ %t23 =l copy 0+ dbgloc 629+ call $memset(l %t25, w 0, l 16)+ storel 1, %t25+ %t26 =l add %t25, 8+ storel %t18, %t26+ call $memcpy(l %__ret, l %t25, l 16)+ ret %__ret+@lbl116+ jmp @lbl117+@lbl117+ dbgloc 631+ storel 0, %t27+ call $memcpy(l %__ret, l %t27, l 16)+ ret %__ret+}++dbgfile "spectrelib/ascii/core.sx"+export function w $ascii__is_upper(w %c) {+@start+ %t0 =l alloc8 8+ %t4 =l alloc4 1+ dbgloc 7+ storew %c, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "c", "u8", %t0, 1, 7, 7+ dbgloc 8+ %t1 =w copy 65+ %t3 =w csltw %c, %t1+ %t2 =w ceqw %t3, 0+ storew %t2, %t4+ jnz %t2, @lbl121, @lbl122+@lbl121+ %t5 =w copy 90+ %t6 =w cslew %c, %t5+ storew %t6, %t4+ jmp @lbl122+@lbl122+ %t7 =w loadw %t4+ ret %t7+}++export function w $ascii__is_lower(w %c) {+@start+ %t0 =l alloc8 8+ %t4 =l alloc4 1+ dbgloc 12+ storew %c, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "c", "u8", %t0, 1, 7, 12+ dbgloc 13+ %t1 =w copy 97+ %t3 =w csltw %c, %t1+ %t2 =w ceqw %t3, 0+ storew %t2, %t4+ jnz %t2, @lbl123, @lbl124+@lbl123+ %t5 =w copy 122+ %t6 =w cslew %c, %t5+ storew %t6, %t4+ jmp @lbl124+@lbl124+ %t7 =w loadw %t4+ ret %t7+}++export function w $ascii__is_digit(w %c) {+@start+ %t0 =l alloc8 8+ %t4 =l alloc4 1+ dbgloc 17+ storew %c, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "c", "u8", %t0, 1, 7, 17+ dbgloc 18+ %t1 =w copy 48+ %t3 =w csltw %c, %t1+ %t2 =w ceqw %t3, 0+ storew %t2, %t4+ jnz %t2, @lbl125, @lbl126+@lbl125+ %t5 =w copy 57+ %t6 =w cslew %c, %t5+ storew %t6, %t4+ jmp @lbl126+@lbl126+ %t7 =w loadw %t4+ ret %t7+}++export function w $ascii__lower(w %c) {+@start+ %t0 =l alloc8 8+ dbgloc 22+ storew %c, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "c", "u8", %t0, 1, 7, 22+ dbgloc 23+ %t1 =w call $ascii__is_upper(w %c)+ jnz %t1, @lbl127, @lbl128+@lbl127+ dbgloc 24+ %t2 =l extsw %c+ %t3 =l copy 32+ %t5 =l extsw %t2+ %t4 =l add %t5, %t3+ %t6 =w copy %t4+ ret %t6+@lbl128+ dbgloc 26+ ret %c+}++export function w $ascii__upper(w %c) {+@start+ %t0 =l alloc8 8+ dbgloc 30+ storew %c, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "c", "u8", %t0, 1, 7, 30+ dbgloc 31+ %t1 =w call $ascii__is_lower(w %c)+ jnz %t1, @lbl130, @lbl131+@lbl130+ dbgloc 32+ %t2 =l extsw %c+ %t3 =l copy 32+ %t5 =l extsw %t2+ %t4 =l sub %t5, %t3+ %t6 =w copy %t4+ ret %t6+@lbl131+ dbgloc 34+ ret %c+}++dbgfile "spectrelib/runtime/core.sx"+export function l $rt__alloc(l %size) {+@start+ %t0 =l alloc8 8+ dbgloc 490+ storel %size, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "size", "usize", %t0, 8, 5, 490+ dbgloc 491+ dbgloc 495+ %t1 =l call $malloc(l %size)+ ret %t1+}++export function l $rt__calloc(l %count, l %size) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 499+ storel %count, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "count", "usize", %t0, 8, 5, 499+ storel %size, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "size", "usize", %t1, 8, 5, 499+ dbgloc 500+ dbgloc 504+ %t2 =l call $calloc(l %count, l %size)+ ret %t2+}++export function l $rt__realloc(l %ptr, l %size) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 508+ storel %ptr, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "ptr", "ref ", %t0, 8, 7, 508+ storel %size, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "size", "usize", %t1, 8, 5, 508+ dbgloc 509+ dbgloc 513+ %t2 =l call $realloc(l %ptr, l %size)+ ret %t2+}++export function w $rt__free(l %ptr) {+@start+ %t0 =l alloc8 8+ dbgloc 517+ storel %ptr, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "ptr", "ref ", %t0, 8, 7, 517+ dbgloc 518+ dbgloc 522+ %t1 =w call $free(l %ptr)+ ret 0+}++export function l $rt__memcpy(l %dst, l %src, l %n) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ dbgloc 526+ storel %dst, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "dst", "ref ", %t0, 8, 7, 526+ storel %src, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "src", "ref ", %t1, 8, 7, 526+ storel %n, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "n", "usize", %t2, 8, 5, 526+ dbgloc 527+ dbgloc 531+ %t3 =l call $memcpy(l %dst, l %src, l %n)+ ret %t3+}++export function l $rt__memmove(l %dst, l %src, l %n) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ dbgloc 535+ storel %dst, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "dst", "ref ", %t0, 8, 7, 535+ storel %src, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "src", "ref ", %t1, 8, 7, 535+ storel %n, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "n", "usize", %t2, 8, 5, 535+ dbgloc 536+ dbgloc 540+ %t3 =l call $memmove(l %dst, l %src, l %n)+ ret %t3+}++export function l $rt__memset(l %dst, w %value, l %n) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ dbgloc 544+ storel %dst, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "dst", "ref ", %t0, 8, 7, 544+ storew %value, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "value", "i32", %t1, 4, 5, 544+ storel %n, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "n", "usize", %t2, 8, 5, 544+ dbgloc 545+ dbgloc 549+ %t3 =l call $memset(l %dst, w %value, l %n)+ ret %t3+}++export function w $rt__memcmp(l %a, l %b, l %n) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ dbgloc 553+ storel %a, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "a", "ref ", %t0, 8, 7, 553+ storel %b, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "b", "ref ", %t1, 8, 7, 553+ storel %n, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "n", "usize", %t2, 8, 5, 553+ dbgloc 554+ dbgloc 558+ %t3 =w call $memcmp(l %a, l %b, l %n)+ ret %t3+}++export function l $rt__strlen(l %s) {+@start+ %t0 =l alloc8 8+ dbgloc 562+ storel %s, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "s", "ref u8", %t0, 8, 7, 562+ dbgloc 563+ dbgloc 567+ %t1 =l call $strlen(l %s)+ ret %t1+}++export function w $rt__strcmp(l %a, l %b) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 571+ storel %a, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "a", "ref u8", %t0, 8, 7, 571+ storel %b, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "b", "ref u8", %t1, 8, 7, 571+ dbgloc 572+ dbgloc 576+ %t2 =w call $strcmp(l %a, l %b)+ ret %t2+}++export function w $rt__strncmp(l %a, l %b, l %n) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ dbgloc 580+ storel %a, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "a", "ref u8", %t0, 8, 7, 580+ storel %b, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "b", "ref u8", %t1, 8, 7, 580+ storel %n, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "n", "usize", %t2, 8, 5, 580+ dbgloc 581+ dbgloc 585+ %t3 =w call $strncmp(l %a, l %b, l %n)+ ret %t3+}++export function l $rt__strcpy(l %dst, l %src) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 589+ storel %dst, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "dst", "ref u8", %t0, 8, 7, 589+ storel %src, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "src", "ref u8", %t1, 8, 7, 589+ dbgloc 590+ dbgloc 594+ %t2 =l call $strcpy(l %dst, l %src)+ ret %t2+}++export function l $rt__strcat(l %dst, l %src) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 598+ storel %dst, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "dst", "ref u8", %t0, 8, 7, 598+ storel %src, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "src", "ref u8", %t1, 8, 7, 598+ dbgloc 599+ dbgloc 603+ %t2 =l call $strcat(l %dst, l %src)+ ret %t2+}++export function l $rt__strchr(l %s, w %c) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 607+ storel %s, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "s", "ref u8", %t0, 8, 7, 607+ storew %c, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "c", "i32", %t1, 4, 5, 607+ dbgloc 608+ dbgloc 612+ %t2 =l call $strchr(l %s, w %c)+ ret %t2+}++export function l $rt__strrchr(l %s, w %c) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 616+ storel %s, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "s", "ref u8", %t0, 8, 7, 616+ storew %c, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "c", "i32", %t1, 4, 5, 616+ dbgloc 617+ dbgloc 621+ %t2 =l call $strrchr(l %s, w %c)+ ret %t2+}++export function l $rt__strstr(l %haystack, l %needle) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 625+ storel %haystack, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "haystack", "ref u8", %t0, 8, 7, 625+ storel %needle, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "needle", "ref u8", %t1, 8, 7, 625+ dbgloc 626+ dbgloc 630+ %t2 =l call $strstr(l %haystack, l %needle)+ ret %t2+}++export function l $rt__strdup(l %s) {+@start+ %t0 =l alloc8 8+ dbgloc 634+ storel %s, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "s", "ref u8", %t0, 8, 7, 634+ dbgloc 635+ dbgloc 639+ dbgloc 643+ %t1 =l call $strdup(l %s)+ ret %t1+}++export function l $rt__strtok_r(l %s, l %delim, l %save) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ dbgloc 648+ storel %s, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "s", "ref u8", %t0, 8, 7, 648+ storel %delim, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "delim", "ref u8", %t1, 8, 7, 648+ storel %save, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "save", "ref ref u8", %t2, 8, 7, 648+ dbgloc 649+ dbgloc 653+ %t3 =l call $strtok_r(l %s, l %delim, l %save)+ ret %t3+}++export function w $rt__atoi(l %s) {+@start+ %t0 =l alloc8 8+ dbgloc 657+ storel %s, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "s", "ref u8", %t0, 8, 7, 657+ dbgloc 658+ dbgloc 662+ %t1 =w call $atoi(l %s)+ ret %t1+}++export function w $rt__isdigit(w %c) {+@start+ %t0 =l alloc8 8+ dbgloc 666+ storew %c, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "c", "i32", %t0, 4, 5, 666+ dbgloc 667+ dbgloc 671+ %t1 =w call $isdigit(w %c)+ ret %t1+}++export function l $rt__strtol(l %s, l %end, w %base) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ dbgloc 675+ storel %s, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "s", "ref u8", %t0, 8, 7, 675+ storel %end, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "end", "ref ref u8", %t1, 8, 7, 675+ storew %base, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "base", "i32", %t2, 4, 5, 675+ dbgloc 676+ dbgloc 680+ %t3 =l call $strtol(l %s, l %end, w %base)+ ret %t3+}++export function d $rt__strtod(l %s, l %end) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 684+ storel %s, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "s", "ref u8", %t0, 8, 7, 684+ storel %end, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "end", "ref ref u8", %t1, 8, 7, 684+ dbgloc 685+ dbgloc 689+ %t2 =d call $strtod(l %s, l %end)+ ret %t2+}++export function w $rt__fork() {+@start+ dbgloc 693+ dbgloc 694+ dbgloc 698+ dbgloc 699+ %t0 =w call $fork()+ ret %t0+}++export function w $rt__execvp(l %file, l %argv) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 707+ storel %file, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "file", "ref u8", %t0, 8, 7, 707+ storel %argv, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "argv", "ref ref u8", %t1, 8, 7, 707+ dbgloc 708+ dbgloc 712+ dbgloc 713+ %t2 =w call $execvp(l %file, l %argv)+ ret %t2+}++export function w $rt__waitpid(w %pid, l %status, w %options) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ dbgloc 721+ storew %pid, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "pid", "i32", %t0, 4, 5, 721+ storel %status, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "status", "ref i32", %t1, 8, 7, 721+ storew %options, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "options", "i32", %t2, 4, 5, 721+ dbgloc 722+ dbgloc 726+ dbgloc 727+ %t3 =w call $waitpid(w %pid, l %status, w %options)+ ret %t3+}++export function w $rt__exit_now(w %code) {+@start+ %t0 =l alloc8 8+ dbgloc 735+ storew %code, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "code", "i32", %t0, 4, 5, 735+ dbgloc 736+ dbgloc 740+ dbgloc 741+ %t1 =w call $_exit(w %code)+ ret 0+}++export function w $rt__pipe(l %fds) {+@start+ %t0 =l alloc8 8+ dbgloc 746+ storel %fds, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "fds", "ref i32", %t0, 8, 7, 746+ dbgloc 747+ dbgloc 751+ dbgloc 752+ %t1 =w call $pipe(l %fds)+ ret %t1+}++export function w $rt__dup(w %fd) {+@start+ %t0 =l alloc8 8+ dbgloc 760+ storew %fd, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "fd", "i32", %t0, 4, 5, 760+ dbgloc 761+ dbgloc 765+ dbgloc 766+ %t1 =w call $dup(w %fd)+ ret %t1+}++export function w $rt__dup2(w %oldfd, w %newfd) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 774+ storew %oldfd, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "oldfd", "i32", %t0, 4, 5, 774+ storew %newfd, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "newfd", "i32", %t1, 4, 5, 774+ dbgloc 775+ dbgloc 779+ dbgloc 780+ %t2 =w call $dup2(w %oldfd, w %newfd)+ ret %t2+}++export function w $rt__close(w %fd) {+@start+ %t0 =l alloc8 8+ dbgloc 788+ storew %fd, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "fd", "i32", %t0, 4, 5, 788+ dbgloc 789+ dbgloc 793+ %t1 =w call $close(w %fd)+ ret %t1+}++export function w $rt__open(l %path, w %flags, w %mode) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ dbgloc 797+ storel %path, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "path", "ref u8", %t0, 8, 7, 797+ storew %flags, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "flags", "i32", %t1, 4, 5, 797+ storew %mode, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "mode", "i32", %t2, 4, 5, 797+ dbgloc 798+ dbgloc 802+ dbgloc 803+ %t3 =w call $open(l %path, w %flags, w %mode)+ ret %t3+}++export function l $rt__read(w %fd, l %buf, l %n) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ dbgloc 811+ storew %fd, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "fd", "i32", %t0, 4, 5, 811+ storel %buf, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "buf", "ref ", %t1, 8, 7, 811+ storel %n, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "n", "usize", %t2, 8, 5, 811+ dbgloc 812+ dbgloc 816+ dbgloc 817+ %t3 =l call $read(w %fd, l %buf, l %n)+ ret %t3+}++export function l $rt__write(w %fd, l %buf, l %n) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ dbgloc 825+ storew %fd, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "fd", "i32", %t0, 4, 5, 825+ storel %buf, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "buf", "ref ", %t1, 8, 7, 825+ storel %n, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "n", "usize", %t2, 8, 5, 825+ dbgloc 826+ dbgloc 830+ dbgloc 831+ %t3 =l call $write(w %fd, l %buf, l %n)+ ret %t3+}++export function w $rt__getpid() {+@start+ dbgloc 839+ dbgloc 840+ dbgloc 844+ dbgloc 845+ %t0 =w call $getpid()+ ret %t0+}++export function w $rt__kill(w %pid, w %sig) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 853+ storew %pid, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "pid", "i32", %t0, 4, 5, 853+ storew %sig, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "sig", "i32", %t1, 4, 5, 853+ dbgloc 854+ dbgloc 858+ dbgloc 859+ %t2 =w call $kill(w %pid, w %sig)+ ret %t2+}++export function w $rt__setenv(l %name, l %value, w %overwrite) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ dbgloc 867+ storel %name, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "name", "ref u8", %t0, 8, 7, 867+ storel %value, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "value", "ref u8", %t1, 8, 7, 867+ storew %overwrite, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "overwrite", "i32", %t2, 4, 5, 867+ dbgloc 868+ dbgloc 872+ dbgloc 873+ %t3 =w call $setenv(l %name, l %value, w %overwrite)+ ret %t3+}++export function w $rt__unsetenv(l %name) {+@start+ %t0 =l alloc8 8+ dbgloc 881+ storel %name, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "name", "ref u8", %t0, 8, 7, 881+ dbgloc 882+ dbgloc 886+ dbgloc 887+ %t1 =w call $unsetenv(l %name)+ ret %t1+}++export function w $rt__gethostname(l %buf, l %n) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 895+ storel %buf, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "buf", "ref u8", %t0, 8, 7, 895+ storel %n, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "n", "usize", %t1, 8, 5, 895+ dbgloc 896+ dbgloc 900+ dbgloc 901+ %t2 =w call $gethostname(l %buf, l %n)+ ret %t2+}++export function w $rt__tcgetattr(w %fd, l %t) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 909+ storew %fd, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "fd", "i32", %t0, 4, 5, 909+ storel %t, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "t", "ref ", %t1, 8, 7, 909+ dbgloc 910+ dbgloc 914+ dbgloc 915+ %t2 =w call $tcgetattr(w %fd, l %t)+ ret %t2+}++export function w $rt__tcsetattr(w %fd, w %act, l %t) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ dbgloc 923+ storew %fd, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "fd", "i32", %t0, 4, 5, 923+ storew %act, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "act", "i32", %t1, 4, 5, 923+ storel %t, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "t", "ref ", %t2, 8, 7, 923+ dbgloc 924+ dbgloc 928+ dbgloc 929+ %t3 =w call $tcsetattr(w %fd, w %act, l %t)+ ret %t3+}++export function w $rt__ioctl(w %fd, l %req, l %arg) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ dbgloc 937+ storew %fd, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "fd", "i32", %t0, 4, 5, 937+ storel %req, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "req", "u64", %t1, 8, 7, 937+ storel %arg, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "arg", "ref ", %t2, 8, 7, 937+ dbgloc 938+ dbgloc 942+ dbgloc 943+ %t3 =w call $ioctl(w %fd, l %req, l %arg)+ ret %t3+}++export function l $rt__fopen(l %path, l %mode) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 951+ storel %path, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "path", "ref u8", %t0, 8, 7, 951+ storel %mode, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "mode", "ref u8", %t1, 8, 7, 951+ dbgloc 952+ dbgloc 956+ %t2 =l call $fopen(l %path, l %mode)+ ret %t2+}++export function w $rt__fclose(l %f) {+@start+ %t0 =l alloc8 8+ dbgloc 960+ storel %f, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "f", "ref ", %t0, 8, 7, 960+ dbgloc 961+ dbgloc 965+ %t1 =w call $fclose(l %f)+ ret %t1+}++export function l $rt__fread(l %ptr, l %size, l %count, l %f) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t3 =l alloc8 8+ dbgloc 969+ storel %ptr, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "ptr", "ref ", %t0, 8, 7, 969+ storel %size, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "size", "usize", %t1, 8, 5, 969+ storel %count, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "count", "usize", %t2, 8, 5, 969+ storel %f, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "f", "ref ", %t3, 8, 7, 969+ dbgloc 970+ dbgloc 974+ %t4 =l call $fread(l %ptr, l %size, l %count, l %f)+ ret %t4+}++export function l $rt__fwrite(l %ptr, l %size, l %count, l %f) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t3 =l alloc8 8+ dbgloc 978+ storel %ptr, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "ptr", "ref ", %t0, 8, 7, 978+ storel %size, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "size", "usize", %t1, 8, 5, 978+ storel %count, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "count", "usize", %t2, 8, 5, 978+ storel %f, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "f", "ref ", %t3, 8, 7, 978+ dbgloc 979+ dbgloc 983+ %t4 =l call $fwrite(l %ptr, l %size, l %count, l %f)+ ret %t4+}++export function w $rt__fseek(l %f, l %offset, w %whence) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ dbgloc 987+ storel %f, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "f", "ref ", %t0, 8, 7, 987+ storel %offset, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "offset", "i64", %t1, 8, 5, 987+ storew %whence, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "whence", "i32", %t2, 4, 5, 987+ dbgloc 988+ dbgloc 992+ %t3 =w call $fseek(l %f, l %offset, w %whence)+ ret %t3+}++export function l $rt__ftell(l %f) {+@start+ %t0 =l alloc8 8+ dbgloc 996+ storel %f, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "f", "ref ", %t0, 8, 7, 996+ dbgloc 997+ dbgloc 1001+ %t1 =l call $ftell(l %f)+ ret %t1+}++export function w $rt__rewind(l %f) {+@start+ %t0 =l alloc8 8+ dbgloc 1005+ storel %f, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "f", "ref ", %t0, 8, 7, 1005+ dbgloc 1006+ dbgloc 1010+ %t1 =w call $rewind(l %f)+ ret 0+}++export function w $rt__fflush(l %f) {+@start+ %t0 =l alloc8 8+ dbgloc 1014+ storel %f, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "f", "ref ", %t0, 8, 7, 1014+ dbgloc 1015+ dbgloc 1019+ %t1 =w call $fflush(l %f)+ ret %t1+}++export function w $rt__fgetc(l %f) {+@start+ %t0 =l alloc8 8+ dbgloc 1023+ storel %f, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "f", "ref ", %t0, 8, 7, 1023+ dbgloc 1024+ dbgloc 1028+ %t1 =w call $fgetc(l %f)+ ret %t1+}++export function w $rt__getchar() {+@start+ dbgloc 1032+ dbgloc 1033+ dbgloc 1037+ %t0 =w call $getchar()+ ret %t0+}++export function w $rt__fputc(w %c, l %f) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 1041+ storew %c, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "c", "i32", %t0, 4, 5, 1041+ storel %f, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "f", "ref ", %t1, 8, 7, 1041+ dbgloc 1042+ dbgloc 1046+ %t2 =w call $fputc(w %c, l %f)+ ret %t2+}++export function w $rt__putchar(w %c) {+@start+ %t0 =l alloc8 8+ dbgloc 1050+ storew %c, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "c", "i32", %t0, 4, 5, 1050+ dbgloc 1051+ dbgloc 1055+ %t1 =w call $putchar(w %c)+ ret %t1+}++export function l $rt__fgets(l %buf, w %n, l %f) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ dbgloc 1059+ storel %buf, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "buf", "ref u8", %t0, 8, 7, 1059+ storew %n, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "n", "i32", %t1, 4, 5, 1059+ storel %f, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "f", "ref ", %t2, 8, 7, 1059+ dbgloc 1060+ dbgloc 1064+ %t3 =l call $fgets(l %buf, w %n, l %f)+ ret %t3+}++export function w $rt__fputs(l %s, l %f) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 1068+ storel %s, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "s", "ref u8", %t0, 8, 7, 1068+ storel %f, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "f", "ref ", %t1, 8, 7, 1068+ dbgloc 1069+ dbgloc 1073+ %t2 =w call $fputs(l %s, l %f)+ ret %t2+}++export function l $rt__fdopen(w %fd, l %mode) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 1077+ storew %fd, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "fd", "i32", %t0, 4, 5, 1077+ storel %mode, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "mode", "ref u8", %t1, 8, 7, 1077+ dbgloc 1078+ dbgloc 1082+ dbgloc 1086+ %t2 =l call $fdopen(w %fd, l %mode)+ ret %t2+}++export function w $rt__fileno(l %f) {+@start+ %t0 =l alloc8 8+ dbgloc 1091+ storel %f, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "f", "ref ", %t0, 8, 7, 1091+ dbgloc 1092+ dbgloc 1096+ dbgloc 1100+ %t1 =w call $fileno(l %f)+ ret %t1+}++export function w $rt__feof(l %f) {+@start+ %t0 =l alloc8 8+ dbgloc 1105+ storel %f, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "f", "ref ", %t0, 8, 7, 1105+ dbgloc 1106+ dbgloc 1110+ %t1 =w call $feof(l %f)+ ret %t1+}++export function w $rt__ferror(l %f) {+@start+ %t0 =l alloc8 8+ dbgloc 1114+ storel %f, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "f", "ref ", %t0, 8, 7, 1114+ dbgloc 1115+ dbgloc 1119+ %t1 =w call $ferror(l %f)+ ret %t1+}++export function l $rt__stdin() {+@start+ dbgloc 1123+ dbgloc 1124+ dbgloc 1128+ %t0 =l call $sx_stdin()+ ret %t0+}++export function l $rt__stdout() {+@start+ dbgloc 1132+ dbgloc 1133+ dbgloc 1137+ %t0 =l call $sx_stdout()+ ret %t0+}++export function l $rt__stderr() {+@start+ dbgloc 1141+ dbgloc 1142+ dbgloc 1146+ %t0 =l call $sx_stderr()+ ret %t0+}++export function l $rt__getenv(l %name) {+@start+ %t0 =l alloc8 8+ dbgloc 1150+ storel %name, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "name", "ref u8", %t0, 8, 7, 1150+ dbgloc 1151+ dbgloc 1155+ %t1 =l call $getenv(l %name)+ ret %t1+}++export function l $rt__getcwd(l %buf, l %size) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 1159+ storel %buf, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "buf", "ref u8", %t0, 8, 7, 1159+ storel %size, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "size", "usize", %t1, 8, 5, 1159+ dbgloc 1160+ dbgloc 1164+ dbgloc 1168+ %t2 =l call $getcwd(l %buf, l %size)+ ret %t2+}++export function w $rt__chdir(l %path) {+@start+ %t0 =l alloc8 8+ dbgloc 1173+ storel %path, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "path", "ref u8", %t0, 8, 7, 1173+ dbgloc 1174+ dbgloc 1178+ dbgloc 1182+ %t1 =w call $chdir(l %path)+ ret %t1+}++export function w $rt__access(l %path, w %mode) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 1187+ storel %path, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "path", "ref u8", %t0, 8, 7, 1187+ storew %mode, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "mode", "i32", %t1, 4, 5, 1187+ dbgloc 1188+ dbgloc 1192+ dbgloc 1196+ %t2 =w call $access(l %path, w %mode)+ ret %t2+}++export function w $rt__mkdir(l %path, w %mode) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 1201+ storel %path, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "path", "ref u8", %t0, 8, 7, 1201+ storew %mode, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "mode", "u32", %t1, 4, 7, 1201+ dbgloc 1202+ dbgloc 1206+ dbgloc 1210+ %t2 =w call $mkdir(l %path, w %mode)+ ret %t2+}++export function w $rt__rmdir(l %path) {+@start+ %t0 =l alloc8 8+ dbgloc 1215+ storel %path, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "path", "ref u8", %t0, 8, 7, 1215+ dbgloc 1216+ dbgloc 1220+ dbgloc 1224+ %t1 =w call $rmdir(l %path)+ ret %t1+}++export function w $rt__remove(l %path) {+@start+ %t0 =l alloc8 8+ dbgloc 1229+ storel %path, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "path", "ref u8", %t0, 8, 7, 1229+ dbgloc 1230+ dbgloc 1234+ %t1 =w call $remove(l %path)+ ret %t1+}++export function w $rt__rename(l %old, l %new) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 1238+ storel %old, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "old", "ref u8", %t0, 8, 7, 1238+ storel %new, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "new", "ref u8", %t1, 8, 7, 1238+ dbgloc 1239+ dbgloc 1243+ %t2 =w call $rename(l %old, l %new)+ ret %t2+}++export function w $rt__unlink(l %path) {+@start+ %t0 =l alloc8 8+ dbgloc 1247+ storel %path, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "path", "ref u8", %t0, 8, 7, 1247+ dbgloc 1248+ dbgloc 1252+ dbgloc 1256+ %t1 =w call $unlink(l %path)+ ret %t1+}++export function l $rt__realpath(l %path, l %out) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 1261+ storel %path, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "path", "ref u8", %t0, 8, 7, 1261+ storel %out, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "out", "ref u8", %t1, 8, 7, 1261+ dbgloc 1262+ dbgloc 1266+ %t2 =l call $realpath(l %path, l %out)+ ret %t2+}++export function l $rt__readlink(l %path, l %buf, l %n) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ dbgloc 1270+ storel %path, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "path", "ref u8", %t0, 8, 7, 1270+ storel %buf, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "buf", "ref u8", %t1, 8, 7, 1270+ storel %n, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "n", "usize", %t2, 8, 5, 1270+ dbgloc 1271+ dbgloc 1275+ %t3 =l call $readlink(l %path, l %buf, l %n)+ ret %t3+}++export function w $rt__isatty(w %fd) {+@start+ %t0 =l alloc8 8+ dbgloc 1279+ storew %fd, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "fd", "i32", %t0, 4, 5, 1279+ dbgloc 1280+ dbgloc 1284+ dbgloc 1288+ %t1 =w call $isatty(w %fd)+ ret %t1+}++export function w $rt__console_supports_ansi() {+@start+ dbgloc 1297+ dbgloc 1298+ dbgloc 1302+ dbgloc 1306+ %t0 =l copy 1+ ret %t0+}++export function w $rt__stat(l %path, l %buf) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 1311+ storel %path, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "path", "ref u8", %t0, 8, 7, 1311+ storel %buf, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "buf", "ref ", %t1, 8, 7, 1311+ dbgloc 1312+ dbgloc 1316+ %t2 =w call $stat(l %path, l %buf)+ ret %t2+}++export function w $rt__uname(l %buf) {+@start+ %t0 =l alloc8 8+ dbgloc 1320+ storel %buf, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "buf", "ref ", %t0, 8, 7, 1320+ dbgloc 1321+ dbgloc 1325+ %t1 =w call $uname(l %buf)+ ret %t1+}++export function l $rt__opendir(l %path) {+@start+ %t0 =l alloc8 8+ dbgloc 1329+ storel %path, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "path", "ref u8", %t0, 8, 7, 1329+ dbgloc 1330+ dbgloc 1334+ %t1 =l call $opendir(l %path)+ ret %t1+}++export function w $rt__closedir(l %dir) {+@start+ %t0 =l alloc8 8+ dbgloc 1338+ storel %dir, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "dir", "ref ", %t0, 8, 7, 1338+ dbgloc 1339+ dbgloc 1343+ %t1 =w call $closedir(l %dir)+ ret %t1+}++export function l $rt__readdir(l %dir) {+@start+ %t0 =l alloc8 8+ dbgloc 1347+ storel %dir, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "dir", "ref ", %t0, 8, 7, 1347+ dbgloc 1348+ dbgloc 1352+ %t1 =l call $readdir(l %dir)+ ret %t1+}++export function w $rt__exit(w %code) {+@start+ %t0 =l alloc8 8+ dbgloc 1356+ storew %code, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "code", "i32", %t0, 4, 5, 1356+ dbgloc 1357+ dbgloc 1361+ %t1 =w call $exit(w %code)+ ret 0+}++export function w $rt__system(l %cmd) {+@start+ %t0 =l alloc8 8+ dbgloc 1365+ storel %cmd, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "cmd", "ref u8", %t0, 8, 7, 1365+ dbgloc 1366+ dbgloc 1370+ %t1 =w call $system(l %cmd)+ ret %t1+}++export function l $rt__popen(l %cmd, l %mode) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 1374+ storel %cmd, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "cmd", "ref u8", %t0, 8, 7, 1374+ storel %mode, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "mode", "ref u8", %t1, 8, 7, 1374+ dbgloc 1375+ dbgloc 1379+ dbgloc 1383+ %t2 =l call $popen(l %cmd, l %mode)+ ret %t2+}++export function w $rt__pclose(l %pipe) {+@start+ %t0 =l alloc8 8+ dbgloc 1388+ storel %pipe, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "pipe", "ref ", %t0, 8, 7, 1388+ dbgloc 1389+ dbgloc 1393+ dbgloc 1397+ %t1 =w call $pclose(l %pipe)+ ret %t1+}++export function w $rt__gettimeofday(l %tv, l %tz) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 1402+ storel %tv, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "tv", "ref ", %t0, 8, 7, 1402+ storel %tz, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "tz", "ref ", %t1, 8, 7, 1402+ dbgloc 1403+ dbgloc 1407+ %t2 =w call $gettimeofday(l %tv, l %tz)+ ret %t2+}++export function l $rt__localtime(l %t) {+@start+ %t0 =l alloc8 8+ dbgloc 1411+ storel %t, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "t", "ref i64", %t0, 8, 7, 1411+ dbgloc 1412+ dbgloc 1416+ %t1 =l call $localtime(l %t)+ ret %t1+}++export function w $rt__usleep(w %usec) {+@start+ %t0 =l alloc8 8+ dbgloc 1420+ storew %usec, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "usec", "u32", %t0, 4, 7, 1420+ dbgloc 1421+ dbgloc 1425+ %t1 =w call $usleep(w %usec)+ ret %t1+}++export function w $rt__sleep(w %seconds) {+@start+ %t0 =l alloc8 8+ dbgloc 1429+ storew %seconds, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "seconds", "u32", %t0, 4, 7, 1429+ dbgloc 1430+ dbgloc 1434+ %t1 =w call $sleep(w %seconds)+ ret %t1+}++export function l $rt__time(l %out) {+@start+ %t0 =l alloc8 8+ dbgloc 1438+ storel %out, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "out", "ref i64", %t0, 8, 7, 1438+ dbgloc 1439+ dbgloc 1443+ %t1 =l call $time(l %out)+ ret %t1+}++export function l $rt__times(l %buf) {+@start+ %t0 =l alloc8 8+ dbgloc 1447+ storel %buf, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "buf", "ref ", %t0, 8, 7, 1447+ dbgloc 1448+ dbgloc 1452+ dbgloc 1453+ %t1 =l call $times(l %buf)+ ret %t1+}++export function l $rt__getrandom(l %buf, l %n, w %flags) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ dbgloc 1461+ storel %buf, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "buf", "ref ", %t0, 8, 7, 1461+ storel %n, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "n", "usize", %t1, 8, 5, 1461+ storew %flags, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "flags", "u32", %t2, 4, 7, 1461+ dbgloc 1462+ dbgloc 1466+ dbgloc 1472+ %t3 =l call $getrandom(l %buf, l %n, w %flags)+ ret %t3+}++export function w $rt__arc4random_buf(l %buf, l %n) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 1477+ storel %buf, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "buf", "ref ", %t0, 8, 7, 1477+ storel %n, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "n", "usize", %t1, 8, 5, 1477+ dbgloc 1478+ dbgloc 1482+ %t2 =w call $arc4random_buf(l %buf, l %n)+ ret 0+}++export function w $rt__pthread_create(l %thread, l %attr, l %entry, l %arg) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t3 =l alloc8 8+ dbgloc 1486+ storel %thread, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "thread", "ref ", %t0, 8, 7, 1486+ storel %attr, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "attr", "ref ", %t1, 8, 7, 1486+ storel %entry, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "entry", "usize", %t2, 8, 5, 1486+ storel %arg, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "arg", "ref ", %t3, 8, 7, 1486+ dbgloc 1487+ dbgloc 1491+ %t4 =w call $pthread_create(l %thread, l %attr, l %entry, l %arg)+ ret %t4+}++export function w $rt__pthread_join(l %thread, l %retval) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 1495+ storel %thread, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "thread", "ref ", %t0, 8, 7, 1495+ storel %retval, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "retval", "ref ", %t1, 8, 7, 1495+ dbgloc 1496+ dbgloc 1500+ %t2 =w call $pthread_join(l %thread, l %retval)+ ret %t2+}++export function w $rt__pthread_detach(l %thread) {+@start+ %t0 =l alloc8 8+ dbgloc 1504+ storel %thread, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "thread", "ref ", %t0, 8, 7, 1504+ dbgloc 1505+ dbgloc 1509+ %t1 =w call $pthread_detach(l %thread)+ ret %t1+}++export function l $rt__pthread_self() {+@start+ dbgloc 1513+ dbgloc 1514+ dbgloc 1518+ %t0 =l call $pthread_self()+ ret %t0+}++export function w $rt__sched_yield() {+@start+ dbgloc 1522+ dbgloc 1523+ dbgloc 1527+ %t0 =w call $sched_yield()+ ret %t0+}++export function w $rt__mutex_init(l %m) {+@start+ %t0 =l alloc8 8+ dbgloc 1531+ storel %m, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "m", "ref ", %t0, 8, 7, 1531+ dbgloc 1532+ dbgloc 1536+ %t1 =l copy 0+ %t2 =w call $pthread_mutex_init(l %m, l %t1)+ ret %t2+}++export function w $rt__mutex_destroy(l %m) {+@start+ %t0 =l alloc8 8+ dbgloc 1540+ storel %m, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "m", "ref ", %t0, 8, 7, 1540+ dbgloc 1541+ dbgloc 1545+ %t1 =w call $pthread_mutex_destroy(l %m)+ ret %t1+}++export function w $rt__mutex_lock(l %m) {+@start+ %t0 =l alloc8 8+ dbgloc 1549+ storel %m, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "m", "ref ", %t0, 8, 7, 1549+ dbgloc 1550+ dbgloc 1554+ %t1 =w call $pthread_mutex_lock(l %m)+ ret %t1+}++export function w $rt__mutex_unlock(l %m) {+@start+ %t0 =l alloc8 8+ dbgloc 1558+ storel %m, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "m", "ref ", %t0, 8, 7, 1558+ dbgloc 1559+ dbgloc 1563+ %t1 =w call $pthread_mutex_unlock(l %m)+ ret %t1+}++export function w $rt__socket(w %domain, w %kind, w %protocol) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ dbgloc 1567+ storew %domain, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "domain", "i32", %t0, 4, 5, 1567+ storew %kind, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "kind", "i32", %t1, 4, 5, 1567+ storew %protocol, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "protocol", "i32", %t2, 4, 5, 1567+ dbgloc 1568+ dbgloc 1572+ %t3 =w call $socket(w %domain, w %kind, w %protocol)+ ret %t3+}++export function w $rt__bind(w %fd, l %addr, w %len) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ dbgloc 1576+ storew %fd, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "fd", "i32", %t0, 4, 5, 1576+ storel %addr, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "addr", "ref ", %t1, 8, 7, 1576+ storew %len, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "len", "u32", %t2, 4, 7, 1576+ dbgloc 1577+ dbgloc 1581+ %t3 =w call $bind(w %fd, l %addr, w %len)+ ret %t3+}++export function w $rt__listen(w %fd, w %backlog) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 1585+ storew %fd, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "fd", "i32", %t0, 4, 5, 1585+ storew %backlog, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "backlog", "i32", %t1, 4, 5, 1585+ dbgloc 1586+ dbgloc 1590+ %t2 =w call $listen(w %fd, w %backlog)+ ret %t2+}++export function w $rt__accept(w %fd, l %addr, l %len) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ dbgloc 1594+ storew %fd, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "fd", "i32", %t0, 4, 5, 1594+ storel %addr, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "addr", "ref ", %t1, 8, 7, 1594+ storel %len, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "len", "ref u32", %t2, 8, 7, 1594+ dbgloc 1595+ dbgloc 1599+ %t3 =w call $accept(w %fd, l %addr, l %len)+ ret %t3+}++export function w $rt__connect(w %fd, l %addr, w %len) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ dbgloc 1603+ storew %fd, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "fd", "i32", %t0, 4, 5, 1603+ storel %addr, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "addr", "ref ", %t1, 8, 7, 1603+ storew %len, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "len", "u32", %t2, 4, 7, 1603+ dbgloc 1604+ dbgloc 1608+ %t3 =w call $connect(w %fd, l %addr, w %len)+ ret %t3+}++export function l $rt__send(w %fd, l %buf, l %n, w %flags) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t3 =l alloc8 8+ dbgloc 1612+ storew %fd, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "fd", "i32", %t0, 4, 5, 1612+ storel %buf, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "buf", "ref ", %t1, 8, 7, 1612+ storel %n, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "n", "usize", %t2, 8, 5, 1612+ storew %flags, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "flags", "i32", %t3, 4, 5, 1612+ dbgloc 1613+ dbgloc 1617+ %t4 =l call $send(w %fd, l %buf, l %n, w %flags)+ ret %t4+}++export function l $rt__recv(w %fd, l %buf, l %n, w %flags) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t3 =l alloc8 8+ dbgloc 1621+ storew %fd, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "fd", "i32", %t0, 4, 5, 1621+ storel %buf, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "buf", "ref ", %t1, 8, 7, 1621+ storel %n, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "n", "usize", %t2, 8, 5, 1621+ storew %flags, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "flags", "i32", %t3, 4, 5, 1621+ dbgloc 1622+ dbgloc 1626+ %t4 =l call $recv(w %fd, l %buf, l %n, w %flags)+ ret %t4+}++export function w $rt__sendto(w %fd, l %buf, l %n, w %flags, l %addr, w %len) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t3 =l alloc8 8+ %t4 =l alloc8 8+ %t5 =l alloc8 8+ dbgloc 1630+ storew %fd, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "fd", "i32", %t0, 4, 5, 1630+ storel %buf, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "buf", "ref ", %t1, 8, 7, 1630+ storel %n, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "n", "usize", %t2, 8, 5, 1630+ storew %flags, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "flags", "i32", %t3, 4, 5, 1630+ storel %addr, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "addr", "ref ", %t4, 8, 7, 1630+ storew %len, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "len", "u32", %t5, 4, 7, 1630+ dbgloc 1631+ dbgloc 1635+ %t6 =w call $sendto(w %fd, l %buf, l %n, w %flags, l %addr, w %len)+ ret %t6+}++export function w $rt__recvfrom(w %fd, l %buf, l %n, w %flags, l %addr, l %len) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t3 =l alloc8 8+ %t4 =l alloc8 8+ %t5 =l alloc8 8+ dbgloc 1639+ storew %fd, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "fd", "i32", %t0, 4, 5, 1639+ storel %buf, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "buf", "ref ", %t1, 8, 7, 1639+ storel %n, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "n", "usize", %t2, 8, 5, 1639+ storew %flags, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "flags", "i32", %t3, 4, 5, 1639+ storel %addr, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "addr", "ref ", %t4, 8, 7, 1639+ storel %len, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "len", "ref u32", %t5, 8, 7, 1639+ dbgloc 1647+ dbgloc 1651+ %t6 =w call $recvfrom(w %fd, l %buf, l %n, w %flags, l %addr, l %len)+ ret %t6+}++export function w $rt__setsockopt(w %fd, w %level, w %opt, l %value, w %len) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t3 =l alloc8 8+ %t4 =l alloc8 8+ dbgloc 1655+ storew %fd, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "fd", "i32", %t0, 4, 5, 1655+ storew %level, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "level", "i32", %t1, 4, 5, 1655+ storew %opt, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "opt", "i32", %t2, 4, 5, 1655+ storel %value, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "value", "ref ", %t3, 8, 7, 1655+ storew %len, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "len", "u32", %t4, 4, 7, 1655+ dbgloc 1656+ dbgloc 1660+ %t5 =w call $setsockopt(w %fd, w %level, w %opt, l %value, w %len)+ ret %t5+}++export function w $rt__getsockopt(w %fd, w %level, w %opt, l %value, l %len) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t3 =l alloc8 8+ %t4 =l alloc8 8+ dbgloc 1664+ storew %fd, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "fd", "i32", %t0, 4, 5, 1664+ storew %level, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "level", "i32", %t1, 4, 5, 1664+ storew %opt, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "opt", "i32", %t2, 4, 5, 1664+ storel %value, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "value", "ref ", %t3, 8, 7, 1664+ storel %len, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "len", "ref u32", %t4, 8, 7, 1664+ dbgloc 1665+ dbgloc 1669+ %t5 =w call $getsockopt(w %fd, w %level, w %opt, l %value, l %len)+ ret %t5+}++export function w $rt__poll(l %fds, l %n, w %timeout) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ dbgloc 1673+ storel %fds, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "fds", "ref ", %t0, 8, 7, 1673+ storel %n, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "n", "u64", %t1, 8, 7, 1673+ storew %timeout, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "timeout", "i32", %t2, 4, 5, 1673+ dbgloc 1674+ dbgloc 1678+ %t3 =w call $poll(l %fds, l %n, w %timeout)+ ret %t3+}++export function w $rt__htons(w %v) {+@start+ %t0 =l alloc8 8+ dbgloc 1682+ storew %v, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "v", "u16", %t0, 2, 7, 1682+ dbgloc 1683+ dbgloc 1687+ %t1 =w call $htons(w %v)+ ret %t1+}++export function w $rt__ntohs(w %v) {+@start+ %t0 =l alloc8 8+ dbgloc 1691+ storew %v, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "v", "u16", %t0, 2, 7, 1691+ dbgloc 1692+ dbgloc 1696+ %t1 =w call $ntohs(w %v)+ ret %t1+}++export function w $rt__closesocket(w %fd) {+@start+ %t0 =l alloc8 8+ dbgloc 1700+ storew %fd, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "fd", "i32", %t0, 4, 5, 1700+ dbgloc 1701+ dbgloc 1705+ dbgloc 1709+ %t1 =w call $close(w %fd)+ ret %t1+}++export function l $rt__signal(w %sig, l %handler) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 1714+ storew %sig, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "sig", "i32", %t0, 4, 5, 1714+ storel %handler, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "handler", "fn(i32) ", %t1, 8, 5, 1714+ dbgloc 1717+ dbgloc 1721+ %t2 =l call $signal(w %sig, l %handler)+ ret %t2+}++export function w $rt__raise(w %sig) {+@start+ %t0 =l alloc8 8+ dbgloc 1725+ storew %sig, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "sig", "i32", %t0, 4, 5, 1725+ dbgloc 1726+ dbgloc 1730+ %t1 =w call $raise(w %sig)+ ret %t1+}++dbgfile "spectrelib/string/cstr.sx"+export function l $cstr__cmp(l %a, l %b) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t4 =l alloc4 1+ %t11 =l alloc4 1+ dbgloc 40+ storel %a, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "a", "ref u8", %t0, 8, 7, 40+ storel %b, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "b", "ref u8", %t1, 8, 7, 40+ dbgloc 41+ %t2 =l copy 0+ %t3 =w ceql %a, %t2+ storew %t3, %t4+ jnz %t3, @lbl138, @lbl139+@lbl138+ %t5 =l copy 0+ %t6 =w ceql %b, %t5+ storew %t6, %t4+ jmp @lbl139+@lbl139+ %t7 =w loadw %t4+ jnz %t7, @lbl133, @lbl135+@lbl133+ dbgloc 42+ %t8 =l copy 0+ ret %t8+@lbl135+ %t9 =l copy 0+ %t10 =w ceql %a, %t9+ storew %t10, %t11+ jnz %t10, @lbl141, @lbl140+@lbl140+ %t12 =l copy 0+ %t13 =w ceql %b, %t12+ storew %t13, %t11+ jmp @lbl141+@lbl141+ %t14 =w loadw %t11+ jnz %t14, @lbl136, @lbl134+@lbl136+ dbgloc 44+ %t15 =l copy 1+ %t16 =l neg %t15+ ret %t16+@lbl134+ dbgloc 46+ %t17 =w call $rt__strcmp(l %a, l %b)+ %t18 =l extsw %t17+ ret %t18+}++export function w $cstr__eql(l %a, l %b) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t4 =l alloc4 1+ dbgloc 53+ storel %a, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "a", "ref u8", %t0, 8, 7, 53+ storel %b, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "b", "ref u8", %t1, 8, 7, 53+ dbgloc 54+ %t2 =l copy 0+ %t3 =w cnel %a, %t2+ storew %t3, %t4+ jnz %t3, @lbl142, @lbl143+@lbl142+ %t5 =l copy 0+ %t6 =w cnel %b, %t5+ storew %t6, %t4+ jmp @lbl143+@lbl143+ %t7 =w loadw %t4+ jnz %t7, @lbl144, @lbl145+@lbl145+ dbgloc 55+ %t8 =w ceql %a, %b+ ret %t8+@lbl144+ dbgloc 57+ %t9 =w ceql %a, %b+ jnz %t9, @lbl146, @lbl147+@lbl146+ dbgloc 58+ %t10 =l copy 1+ ret %t10+@lbl147+ dbgloc 60+ %t11 =w call $rt__strcmp(l %a, l %b)+ %t12 =w copy 0+ %t13 =w ceqw %t11, %t12+ ret %t13+}++export function l $cstr__len(l %s) {+@start+ %t0 =l alloc8 8+ dbgloc 64+ storel %s, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "s", "ref u8", %t0, 8, 7, 64+ dbgloc 65+ %t1 =l copy 0+ %t2 =w cnel %s, %t1+ jnz %t2, @lbl149, @lbl150+@lbl150+ %t3 =l copy $__str14+ call $dprintf(w 2, l %t3)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl149+ dbgloc 68+ %t4 =l call $rt__strlen(l %s)+ ret %t4+}++export function w $cstr__starts_with(l %s, l %prefix) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t8 =l alloc8 8+ %t9 =l alloc8 8+ %t11 =l alloc8 8+ %t18 =l alloc8 8+ %t27 =l alloc8 8+ dbgloc 72+ storel %s, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "s", "ref u8", %t0, 8, 7, 72+ storel %prefix, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "prefix", "ref u8", %t1, 8, 7, 72+ dbgloc 73+ %t2 =l copy 0+ %t3 =w ceql %prefix, %t2+ jnz %t3, @lbl151, @lbl152+@lbl151+ dbgloc 74+ %t4 =l copy 1+ ret %t4+@lbl152+ dbgloc 76+ %t5 =l copy 0+ %t6 =w ceql %s, %t5+ jnz %t6, @lbl154, @lbl155+@lbl154+ dbgloc 77+ %t7 =l copy 0+ ret %t7+@lbl155+ dbgloc 80+ storel %prefix, %t8+ call $__sx_dbg_keep(l %t8)+ dbgvar "ps", "ref u8", %t8, 8, 7, 80+ dbgloc 81+ storel %s, %t9+ call $__sx_dbg_keep(l %t9)+ dbgvar "ss", "ref u8", %t9, 8, 7, 81+ dbgloc 82+ %t10 =l copy 0+ storel %t10, %t11+ call $__sx_dbg_keep(l %t11)+ dbgvar "i", "i64", %t11, 8, 5, 82+ dbgloc 84+ jmp @lbl157+@lbl157+ jmp @lbl158+@lbl158+ dbgloc 85+ %t14 =l loadl %t11+ %t13 =l add %prefix, %t14+ %t15 =w loadub %t13+ %t12 =l extsw %t15+ %t16 =w copy %t12+ %t17 =w extub %t16+ storew %t17, %t18+ call $__sx_dbg_keep(l %t18)+ dbgvar "pc", "u8", %t18, 1, 7, 85+ dbgloc 86+ %t19 =w copy 0+ %t20 =w ceqw %t17, %t19+ jnz %t20, @lbl161, @lbl162+@lbl161+ dbgloc 87+ jmp @lbl160+@lbl162+ dbgloc 89+ %t23 =l loadl %t11+ %t22 =l add %s, %t23+ %t24 =w loadub %t22+ %t21 =l extsw %t24+ %t25 =w copy %t21+ %t26 =w extub %t25+ storew %t26, %t27+ call $__sx_dbg_keep(l %t27)+ dbgvar "sc", "u8", %t27, 1, 7, 89+ dbgloc 91+ %t28 =w copy 0+ %t29 =w ceqw %t26, %t28+ jnz %t29, @lbl164, @lbl165+@lbl164+ dbgloc 92+ %t30 =l copy 0+ ret %t30+@lbl165+ dbgloc 95+ %t31 =l extsw %t17+ %t32 =l extsw %t26+ %t33 =w cnew %t31, %t32+ jnz %t33, @lbl167, @lbl168+@lbl167+ dbgloc 96+ %t34 =l copy 0+ ret %t34+@lbl168+ dbgloc 99+ %t35 =l loadl %t11+ %t36 =l add %t35, 1+ storel %t36, %t11+ jmp @lbl159+@lbl159+ jmp @lbl157+@lbl160+ dbgloc 102+ %t37 =l copy 1+ ret %t37+}++export function w $cstr__ends_with(l %s, l %suffix) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t9 =l alloc8 8+ %t11 =l alloc8 8+ %t12 =l alloc8 8+ %t13 =l alloc8 8+ %t20 =l alloc8 8+ %t31 =l alloc8 8+ %t43 =l alloc8 8+ %t45 =l alloc8 8+ %t57 =l alloc8 8+ %t64 =l alloc8 8+ dbgloc 105+ storel %s, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "s", "ref u8", %t0, 8, 7, 105+ storel %suffix, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "suffix", "ref u8", %t1, 8, 7, 105+ dbgloc 106+ %t2 =l copy 0+ %t3 =w ceql %suffix, %t2+ jnz %t3, @lbl170, @lbl171+@lbl170+ dbgloc 107+ %t4 =l copy 1+ ret %t4+@lbl171+ dbgloc 109+ %t5 =l copy 0+ %t6 =w ceql %s, %t5+ jnz %t6, @lbl173, @lbl174+@lbl173+ dbgloc 110+ %t7 =l copy 0+ ret %t7+@lbl174+ dbgloc 113+ %t8 =l copy 0+ storel %t8, %t9+ call $__sx_dbg_keep(l %t9)+ dbgvar "suffix_len", "i64", %t9, 8, 5, 113+ dbgloc 114+ %t10 =l copy 0+ storel %t10, %t11+ call $__sx_dbg_keep(l %t11)+ dbgvar "s_len", "i64", %t11, 8, 5, 114+ dbgloc 115+ storel %suffix, %t12+ call $__sx_dbg_keep(l %t12)+ dbgvar "ps", "ref u8", %t12, 8, 7, 115+ dbgloc 116+ storel %s, %t13+ call $__sx_dbg_keep(l %t13)+ dbgvar "ss", "ref u8", %t13, 8, 7, 116+ dbgloc 118+ jmp @lbl176+@lbl176+ jmp @lbl177+@lbl177+ dbgloc 119+ %t16 =l loadl %t9+ %t15 =l add %suffix, %t16+ %t17 =w loadub %t15+ %t14 =l extsw %t17+ %t18 =w copy %t14+ %t19 =w extub %t18+ storew %t19, %t20+ call $__sx_dbg_keep(l %t20)+ dbgvar "c", "u8", %t20, 1, 7, 119+ dbgloc 120+ %t21 =w copy 0+ %t22 =w ceqw %t19, %t21+ jnz %t22, @lbl180, @lbl181+@lbl180+ dbgloc 121+ jmp @lbl179+@lbl181+ dbgloc 123+ %t23 =l loadl %t9+ %t24 =l add %t23, 1+ storel %t24, %t9+ jmp @lbl178+@lbl178+ jmp @lbl176+@lbl179+ dbgloc 126+ jmp @lbl183+@lbl183+ jmp @lbl184+@lbl184+ dbgloc 127+ %t27 =l loadl %t11+ %t26 =l add %s, %t27+ %t28 =w loadub %t26+ %t25 =l extsw %t28+ %t29 =w copy %t25+ %t30 =w extub %t29+ storew %t30, %t31+ call $__sx_dbg_keep(l %t31)+ dbgvar "c", "u8", %t31, 1, 7, 127+ dbgloc 128+ %t32 =w copy 0+ %t33 =w ceqw %t30, %t32+ jnz %t33, @lbl187, @lbl188+@lbl187+ dbgloc 129+ jmp @lbl186+@lbl188+ dbgloc 131+ %t34 =l loadl %t11+ %t35 =l add %t34, 1+ storel %t35, %t11+ jmp @lbl185+@lbl185+ jmp @lbl183+@lbl186+ dbgloc 134+ %t36 =l loadl %t9+ %t37 =l loadl %t11+ %t38 =w csgtl %t36, %t37+ jnz %t38, @lbl190, @lbl191+@lbl190+ dbgloc 135+ %t39 =l copy 0+ ret %t39+@lbl191+ dbgloc 138+ %t40 =l loadl %t11+ %t41 =l loadl %t9+ %t42 =l sub %t40, %t41+ storel %t42, %t43+ call $__sx_dbg_keep(l %t43)+ dbgvar "offset", "i64", %t43, 8, 5, 138+ dbgloc 139+ %t44 =l copy 0+ storel %t44, %t45+ call $__sx_dbg_keep(l %t45)+ dbgvar "i", "i64", %t45, 8, 5, 139+ dbgloc 141+ jmp @lbl193+@lbl193+ jmp @lbl194+@lbl194+ dbgloc 142+ %t46 =l loadl %t45+ %t47 =l loadl %t9+ %t49 =w csltl %t46, %t47+ %t48 =w ceqw %t49, 0+ jnz %t48, @lbl197, @lbl198+@lbl197+ dbgloc 143+ jmp @lbl196+@lbl198+ dbgloc 145+ %t52 =l loadl %t45+ %t53 =l add %t42, %t52+ %t51 =l add %s, %t53+ %t54 =w loadub %t51+ %t50 =l extsw %t54+ %t55 =w copy %t50+ %t56 =w extub %t55+ storew %t56, %t57+ call $__sx_dbg_keep(l %t57)+ dbgvar "a", "u8", %t57, 1, 7, 145+ dbgloc 146+ %t60 =l loadl %t45+ %t59 =l add %suffix, %t60+ %t61 =w loadub %t59+ %t58 =l extsw %t61+ %t62 =w copy %t58+ %t63 =w extub %t62+ storew %t63, %t64+ call $__sx_dbg_keep(l %t64)+ dbgvar "b", "u8", %t64, 1, 7, 146+ dbgloc 147+ %t65 =l extsw %t56+ %t66 =l extsw %t63+ %t67 =w cnew %t65, %t66+ jnz %t67, @lbl200, @lbl201+@lbl200+ dbgloc 148+ %t68 =l copy 0+ ret %t68+@lbl201+ dbgloc 150+ %t69 =l loadl %t45+ %t70 =l add %t69, 1+ storel %t70, %t45+ jmp @lbl195+@lbl195+ jmp @lbl193+@lbl196+ dbgloc 153+ %t71 =l copy 1+ ret %t71+}++export function w $cstr__contains(l %haystack, l %needle) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t3 =l alloc8 8+ %t5 =l alloc8 8+ %t12 =l alloc8 8+ %t14 =l alloc8 8+ %t18 =l alloc8 8+ %t22 =l alloc8 8+ %t34 =l alloc8 8+ %t41 =l alloc8 8+ dbgloc 157+ storel %haystack, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "haystack", "ref u8", %t0, 8, 7, 157+ storel %needle, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "needle", "ref u8", %t1, 8, 7, 157+ dbgloc 158+ %t2 =l call $cstr__len(l %haystack)+ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "hlen", "i64", %t3, 8, 5, 158+ dbgloc 159+ %t4 =l call $cstr__len(l %needle)+ storel %t4, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "nlen", "i64", %t5, 8, 5, 159+ dbgloc 160+ %t6 =l copy 0+ %t7 =w ceql %t4, %t6+ jnz %t7, @lbl203, @lbl204+@lbl203+ dbgloc 161+ %t8 =l copy 1+ ret %t8+@lbl204+ dbgloc 163+ %t9 =w csgtl %t4, %t2+ jnz %t9, @lbl206, @lbl207+@lbl206+ dbgloc 164+ %t10 =l copy 0+ ret %t10+@lbl207+ dbgloc 167+ %t11 =l sub %t2, %t4+ storel %t11, %t12+ call $__sx_dbg_keep(l %t12)+ dbgvar "limit", "i64", %t12, 8, 5, 167+ dbgloc 168+ %t13 =l copy 0+ storel %t13, %t14+ call $__sx_dbg_keep(l %t14)+ dbgvar "i", "i64", %t14, 8, 5, 168+ dbgloc 169+ jmp @lbl209+@lbl209+ jmp @lbl210+@lbl210+ dbgloc 170+ %t15 =l loadl %t14+ %t16 =w csgtl %t15, %t11+ jnz %t16, @lbl213, @lbl214+@lbl213+ dbgloc 171+ jmp @lbl212+@lbl214+ dbgloc 173+ %t17 =l copy 0+ storel %t17, %t18+ call $__sx_dbg_keep(l %t18)+ dbgvar "j", "i64", %t18, 8, 5, 173+ dbgloc 174+ %t19 =l copy 1+ %t20 =w copy %t19+ %t21 =w extub %t20+ storew %t21, %t22+ call $__sx_dbg_keep(l %t22)+ dbgvar "matched", "bool", %t22, 1, 7, 174+ dbgloc 175+ jmp @lbl216+@lbl216+ jmp @lbl217+@lbl217+ dbgloc 176+ %t23 =l loadl %t18+ %t25 =w csltl %t23, %t4+ %t24 =w ceqw %t25, 0+ jnz %t24, @lbl220, @lbl221+@lbl220+ dbgloc 177+ jmp @lbl219+@lbl221+ dbgloc 179+ %t28 =l loadl %t14+ %t29 =l loadl %t18+ %t30 =l add %t28, %t29+ %t27 =l add %haystack, %t30+ %t31 =w loadub %t27+ %t26 =l extsw %t31+ %t32 =w copy %t26+ %t33 =w extub %t32+ storew %t33, %t34+ call $__sx_dbg_keep(l %t34)+ dbgvar "a", "u8", %t34, 1, 7, 179+ dbgloc 180+ %t37 =l loadl %t18+ %t36 =l add %needle, %t37+ %t38 =w loadub %t36+ %t35 =l extsw %t38+ %t39 =w copy %t35+ %t40 =w extub %t39+ storew %t40, %t41+ call $__sx_dbg_keep(l %t41)+ dbgvar "b", "u8", %t41, 1, 7, 180+ dbgloc 181+ %t42 =l extsw %t33+ %t43 =l extsw %t40+ %t44 =w cnew %t42, %t43+ jnz %t44, @lbl223, @lbl224+@lbl223+ dbgloc 182+ %t45 =l copy 0+ %t46 =w copy %t45+ %t47 =w extub %t46+ storew %t47, %t22+ dbgloc 183+ jmp @lbl219+@lbl224+ dbgloc 185+ %t48 =l loadl %t18+ %t49 =l add %t48, 1+ storel %t49, %t18+ jmp @lbl218+@lbl218+ jmp @lbl216+@lbl219+ dbgloc 187+ %t51 =w loadw %t22+ %t50 =l extsw %t51+ jnz %t50, @lbl226, @lbl227+@lbl226+ dbgloc 188+ %t52 =l copy 1+ ret %t52+@lbl227+ dbgloc 190+ %t53 =l loadl %t14+ %t54 =l add %t53, 1+ storel %t54, %t14+ jmp @lbl211+@lbl211+ jmp @lbl209+@lbl212+ dbgloc 192+ %t55 =l copy 0+ ret %t55+}++export function l $cstr__concat(l %a, l %b) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t3 =l alloc8 8+ %t8 =l alloc8 8+ %t15 =l alloc8 8+ %t19 =l alloc8 8+ dbgloc 196+ storel %a, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "a", "ref u8", %t0, 8, 7, 196+ storel %b, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "b", "ref u8", %t1, 8, 7, 196+ dbgloc 197+ %t2 =l copy 0+ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "len_a", "i64", %t3, 8, 5, 197+ dbgloc 198+ %t4 =l copy 0+ %t5 =w cnel %a, %t4+ jnz %t5, @lbl229, @lbl230+@lbl229+ dbgloc 199+ %t6 =l call $rt__strlen(l %a)+ storel %t6, %t3+ jmp @lbl230+@lbl230+ dbgloc 201+ %t7 =l copy 0+ storel %t7, %t8+ call $__sx_dbg_keep(l %t8)+ dbgvar "len_b", "i64", %t8, 8, 5, 201+ dbgloc 202+ %t9 =l copy 0+ %t10 =w cnel %b, %t9+ jnz %t10, @lbl232, @lbl233+@lbl232+ dbgloc 203+ %t11 =l call $rt__strlen(l %b)+ storel %t11, %t8+ jmp @lbl233+@lbl233+ dbgloc 205+ %t12 =l loadl %t3+ %t13 =l loadl %t8+ %t14 =l add %t12, %t13+ storel %t14, %t15+ call $__sx_dbg_keep(l %t15)+ dbgvar "new_len", "i64", %t15, 8, 5, 205+ dbgloc 206+ %t17 =l copy 1+ %t18 =l add %t14, %t17+ %t16 =l call $malloc(l %t18)+ storel %t16, %t19+ call $__sx_dbg_keep(l %t19)+ dbgvar "buf", "ref ", %t19, 8, 7, 206+ dbgloc 208+ %t20 =l loadl %t3+ %t21 =l copy 0+ %t22 =w csgtl %t20, %t21+ jnz %t22, @lbl235, @lbl236+@lbl235+ dbgloc 209+ %t24 =l loadl %t19+ %t25 =l loadl %t3+ call $memcpy(l %t24, l %a, l %t25)+ %t23 =l copy 0+ jmp @lbl236+@lbl236+ dbgloc 211+ %t26 =l loadl %t8+ %t27 =l copy 0+ %t28 =w csgtl %t26, %t27+ jnz %t28, @lbl238, @lbl239+@lbl238+ dbgloc 212+ %t31 =l loadl %t19+ %t32 =l loadl %t3+ %t30 =l add %t31, %t32+ %t33 =l loadl %t8+ call $memcpy(l %t30, l %b, l %t33)+ %t29 =l copy 0+ jmp @lbl239+@lbl239+ dbgloc 214+ %t36 =l loadl %t19+ %t35 =l add %t36, %t14+ %t37 =l copy 0+ storeb %t37, %t35+ %t34 =l copy 0+ dbgloc 216+ %t38 =l loadl %t19+ %t39 =l copy %t38+ ret %t39+}++export function l $cstr__byte_at(l %__ret, l %s, l %i) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t8 =l alloc8 16+ %t10 =l alloc8 8+ %t13 =l alloc8 16+ %t17 =l alloc8 16+ dbgloc 220+ storel %s, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "s", "ref u8", %t0, 8, 7, 220+ storel %i, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "i", "i64", %t1, 8, 5, 220+ dbgloc 221+ %t2 =l copy 0+ %t4 =w csltl %i, %t2+ %t3 =w ceqw %t4, 0+ jnz %t3, @lbl241, @lbl242+@lbl242+ %t5 =l copy $__str15+ call $dprintf(w 2, l %t5)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl241+ dbgloc 224+ %t6 =l copy 0+ %t7 =w ceql %s, %t6+ jnz %t7, @lbl243, @lbl244+@lbl243+ dbgloc 225+ storel 0, %t8+ call $memcpy(l %__ret, l %t8, l 16)+ ret %__ret+@lbl244+ dbgloc 227+ %t9 =l call $rt__strlen(l %s)+ storel %t9, %t10+ call $__sx_dbg_keep(l %t10)+ dbgvar "l", "i64", %t10, 8, 5, 227+ dbgloc 228+ %t12 =w csltl %i, %t9+ %t11 =w ceqw %t12, 0+ jnz %t11, @lbl246, @lbl247+@lbl246+ dbgloc 229+ storel 0, %t13+ call $memcpy(l %__ret, l %t13, l 16)+ ret %__ret+@lbl247+ dbgloc 231+ %t15 =l add %s, %i+ %t16 =w loadub %t15+ %t14 =l extsw %t16+ call $memset(l %t17, w 0, l 16)+ storel 1, %t17+ %t18 =l add %t17, 8+ storew %t14, %t18+ call $memcpy(l %__ret, l %t17, l 16)+ ret %__ret+}++export function l $cstr__substr(l %src, l %start, l %len) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t6 =l alloc8 8+ dbgloc 288+ storel %src, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "src", "ref u8", %t0, 8, 7, 288+ storel %start, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "start", "i64", %t1, 8, 5, 288+ storel %len, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "len", "i64", %t2, 8, 5, 288+ dbgloc 289+ %t4 =l copy 1+ %t5 =l add %len, %t4+ %t3 =l call $malloc(l %t5)+ storel %t3, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "buf", "ref ", %t6, 8, 7, 289+ dbgloc 290+ %t8 =l add %src, %start+ call $memcpy(l %t3, l %t8, l %len)+ %t7 =l copy 0+ dbgloc 291+ %t10 =l add %t3, %len+ %t11 =l copy 0+ storeb %t11, %t10+ %t9 =l copy 0+ dbgloc 292+ %t12 =l copy %t3+ ret %t12+}++export function w $cstr__copy(l %dst, l %dst_off, l %src) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t4 =l alloc8 8+ dbgloc 297+ storel %dst, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "dst", "ref u8", %t0, 8, 7, 297+ storel %dst_off, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "dst_off", "i64", %t1, 8, 5, 297+ storel %src, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "src", "ref u8", %t2, 8, 7, 297+ dbgloc 298+ %t3 =l call $rt__strlen(l %src)+ storel %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "slen", "i64", %t4, 8, 5, 298+ dbgloc 299+ %t6 =l add %dst, %dst_off+ call $memcpy(l %t6, l %src, l %t3)+ %t5 =l copy 0+ ret 0+}++dbgfile "spectrelib/string/core.sx"+export function l $std__str__view(l %ptr, l %len) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t10 =l alloc8 16+ dbgloc 79+ storel %ptr, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "ptr", "ref u8", %t0, 8, 7, 79+ storel %len, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "len", "i64", %t1, 8, 5, 79+ dbgloc 80+ storel %len, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "safe_len", "i64", %t2, 8, 5, 80+ dbgloc 81+ %t3 =l loadl %t2+ %t4 =l copy 0+ %t5 =w csltl %t3, %t4+ jnz %t5, @lbl249, @lbl250+@lbl249+ dbgloc 82+ %t6 =l copy 0+ storel %t6, %t2+ jmp @lbl250+@lbl250+ dbgloc 84+ %t7 =l copy 0+ %t8 =w ceql %ptr, %t7+ jnz %t8, @lbl252, @lbl253+@lbl252+ dbgloc 85+ %t9 =l copy 0+ storel %t9, %t2+ jmp @lbl253+@lbl253+ dbgloc 87+ storel %ptr, %t10+ %t12 =l loadl %t2+ %t13 =l add %t10, 8+ storel %t12, %t13+ %t14 =l call $malloc(l 16)+ call $memcpy(l %t14, l %t10, l 16)+ ret %t14+}++function l $std__str__from_cstr_impl(l %s) {+@start+ %t0 =l alloc8 8+ dbgloc 91+ storel %s, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "s", "ref u8", %t0, 8, 7, 91+ dbgloc 92+ %t1 =l copy 0+ %t2 =w ceql %s, %t1+ jnz %t2, @lbl255, @lbl256+@lbl255+ dbgloc 93+ %t3 =l copy 0+ %t4 =l copy 0+ %t5 =l call $std__str__view(l %t3, l %t4)+ ret %t5+@lbl256+ dbgloc 95+ %t6 =l call $rt__strlen(l %s)+ %t7 =l call $std__str__view(l %s, l %t6)+ ret %t7+}++export function l $std__str__from_cstr(l %s) {+@start+ %t0 =l alloc8 8+ dbgloc 99+ storel %s, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "s", "ref u8", %t0, 8, 7, 99+ dbgloc 100+ %t1 =l call $std__str__from_cstr_impl(l %s)+ ret %t1+}++export function l $std__str__len(l %v) {+@start+ %t0 =l alloc8 8+ dbgloc 121+ storel %v, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "v", "StringView", %t0, 8, 5, 121+ dbgloc 122+ %t2 =l add %v, 8+ %t1 =l loadl %t2+ ret %t1+}++export function l $std__str__ptr(l %v) {+@start+ %t0 =l alloc8 8+ dbgloc 125+ storel %v, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "v", "StringView", %t0, 8, 5, 125+ dbgloc 126+ %t1 =l loadl %v+ ret %t1+}++export function w $std__str__is_empty(l %v) {+@start+ %t0 =l alloc8 8+ dbgloc 129+ storel %v, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "v", "StringView", %t0, 8, 5, 129+ dbgloc 130+ %t2 =l add %v, 8+ %t1 =l loadl %t2+ %t3 =l copy 0+ %t4 =w ceql %t1, %t3+ ret %t4+}++export function l $std__str__cmp(l %a, l %b) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t4 =l alloc8 8+ %t13 =l alloc8 8+ %t26 =l alloc8 8+ %t35 =l alloc8 8+ dbgloc 134+ storel %a, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "a", "StringView", %t0, 8, 5, 134+ storel %b, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "b", "StringView", %t1, 8, 5, 134+ dbgloc 135+ %t3 =l add %b, 8+ %t2 =l loadl %t3+ storel %t2, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "shorter", "i64", %t4, 8, 5, 135+ dbgloc 136+ %t6 =l add %a, 8+ %t5 =l loadl %t6+ %t8 =l add %b, 8+ %t7 =l loadl %t8+ %t9 =w csltl %t5, %t7+ jnz %t9, @lbl258, @lbl259+@lbl258+ dbgloc 137+ %t11 =l add %a, 8+ %t10 =l loadl %t11+ storel %t10, %t4+ jmp @lbl259+@lbl259+ dbgloc 139+ %t12 =l copy 0+ storel %t12, %t13+ call $__sx_dbg_keep(l %t13)+ dbgvar "i", "i64", %t13, 8, 5, 139+ dbgloc 140+ jmp @lbl261+@lbl261+ jmp @lbl262+@lbl262+ dbgloc 141+ %t14 =l loadl %t13+ %t15 =l loadl %t4+ %t17 =w csltl %t14, %t15+ %t16 =w ceqw %t17, 0+ jnz %t16, @lbl265, @lbl266+@lbl265+ dbgloc 142+ jmp @lbl264+@lbl266+ dbgloc 144+ %t20 =l loadl %a+ %t21 =l loadl %t13+ %t19 =l add %t20, %t21+ %t22 =w loadub %t19+ %t18 =l extsw %t22+ %t23 =w copy %t18+ %t24 =w copy %t23+ %t25 =w extub %t24+ storew %t25, %t26+ call $__sx_dbg_keep(l %t26)+ dbgvar "ac", "u8", %t26, 1, 7, 144+ dbgloc 145+ %t29 =l loadl %b+ %t30 =l loadl %t13+ %t28 =l add %t29, %t30+ %t31 =w loadub %t28+ %t27 =l extsw %t31+ %t32 =w copy %t27+ %t33 =w copy %t32+ %t34 =w extub %t33+ storew %t34, %t35+ call $__sx_dbg_keep(l %t35)+ dbgvar "bc", "u8", %t35, 1, 7, 145+ dbgloc 146+ %t36 =l extsw %t25+ %t37 =l extsw %t34+ %t38 =w cnew %t36, %t37+ jnz %t38, @lbl268, @lbl269+@lbl268+ dbgloc 147+ %t39 =l extsw %t25+ %t40 =l extsw %t34+ %t41 =l sub %t39, %t40+ ret %t41+@lbl269+ dbgloc 149+ %t42 =l loadl %t13+ %t43 =l add %t42, 1+ storel %t43, %t13+ jmp @lbl263+@lbl263+ jmp @lbl261+@lbl264+ dbgloc 151+ %t45 =l add %a, 8+ %t44 =l loadl %t45+ %t47 =l add %b, 8+ %t46 =l loadl %t47+ %t48 =w csltl %t44, %t46+ jnz %t48, @lbl271, @lbl272+@lbl271+ dbgloc 152+ %t49 =l copy 1+ %t50 =l neg %t49+ ret %t50+@lbl272+ dbgloc 154+ %t52 =l add %a, 8+ %t51 =l loadl %t52+ %t54 =l add %b, 8+ %t53 =l loadl %t54+ %t55 =w csgtl %t51, %t53+ jnz %t55, @lbl274, @lbl275+@lbl274+ dbgloc 155+ %t56 =l copy 1+ ret %t56+@lbl275+ dbgloc 157+ %t57 =l copy 0+ ret %t57+}++export function w $std__str__eql(l %a, l %b) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 160+ storel %a, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "a", "StringView", %t0, 8, 5, 160+ storel %b, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "b", "StringView", %t1, 8, 5, 160+ dbgloc 161+ %t2 =l call $std__str__cmp(l %a, l %b)+ %t3 =l copy 0+ %t4 =w ceql %t2, %t3+ ret %t4+}++export function w $std__str__eql_cstr(l %v, l %s) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 165+ storel %v, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "v", "StringView", %t0, 8, 5, 165+ storel %s, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "s", "ref u8", %t1, 8, 7, 165+ dbgloc 166+ %t2 =l call $std__str__from_cstr(l %s)+ %t3 =w call $std__str__eql(l %v, l %t2)+ ret %t3+}++export function l $std__str__slice(l %v, l %start, l %end) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t3 =l alloc8 8+ %t4 =l alloc8 8+ dbgloc 170+ storel %v, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "v", "StringView", %t0, 8, 5, 170+ storel %start, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "start", "i64", %t1, 8, 5, 170+ storel %end, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "end", "i64", %t2, 8, 5, 170+ dbgloc 171+ storel %start, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "real_start", "i64", %t3, 8, 5, 171+ dbgloc 172+ storel %end, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "real_end", "i64", %t4, 8, 5, 172+ dbgloc 173+ %t5 =l loadl %t3+ %t6 =l copy 0+ %t7 =w csltl %t5, %t6+ jnz %t7, @lbl277, @lbl278+@lbl277+ dbgloc 174+ %t8 =l copy 0+ storel %t8, %t3+ jmp @lbl278+@lbl278+ dbgloc 176+ %t9 =l loadl %t4+ %t11 =l add %v, 8+ %t10 =l loadl %t11+ %t12 =w csgtl %t9, %t10+ jnz %t12, @lbl280, @lbl281+@lbl280+ dbgloc 177+ %t14 =l add %v, 8+ %t13 =l loadl %t14+ storel %t13, %t4+ jmp @lbl281+@lbl281+ dbgloc 179+ %t15 =l loadl %t4+ %t16 =l loadl %t3+ %t17 =w csltl %t15, %t16+ jnz %t17, @lbl283, @lbl284+@lbl283+ dbgloc 180+ %t18 =l loadl %t3+ storel %t18, %t4+ jmp @lbl284+@lbl284+ dbgloc 182+ %t20 =l loadl %v+ %t21 =l loadl %t3+ %t19 =l add %t20, %t21+ %t22 =l copy %t19+ %t23 =l loadl %t4+ %t24 =l loadl %t3+ %t25 =l sub %t23, %t24+ %t26 =l call $std__str__view(l %t22, l %t25)+ ret %t26+}++export function w $std__str__starts_with(l %v, l %prefix) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t9 =l alloc8 8+ dbgloc 185+ storel %v, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "v", "StringView", %t0, 8, 5, 185+ storel %prefix, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "prefix", "StringView", %t1, 8, 5, 185+ dbgloc 186+ %t3 =l add %prefix, 8+ %t2 =l loadl %t3+ %t5 =l add %v, 8+ %t4 =l loadl %t5+ %t6 =w csgtl %t2, %t4+ jnz %t6, @lbl286, @lbl287+@lbl286+ dbgloc 187+ %t7 =l copy 0+ ret %t7+@lbl287+ dbgloc 189+ %t8 =l copy 0+ storel %t8, %t9+ call $__sx_dbg_keep(l %t9)+ dbgvar "i", "i64", %t9, 8, 5, 189+ dbgloc 190+ jmp @lbl289+@lbl289+ jmp @lbl290+@lbl290+ dbgloc 191+ %t10 =l loadl %t9+ %t12 =l add %prefix, 8+ %t11 =l loadl %t12+ %t14 =w csltl %t10, %t11+ %t13 =w ceqw %t14, 0+ jnz %t13, @lbl293, @lbl294+@lbl293+ dbgloc 192+ jmp @lbl292+@lbl294+ dbgloc 194+ %t17 =l loadl %v+ %t18 =l loadl %t9+ %t16 =l add %t17, %t18+ %t19 =w loadub %t16+ %t15 =l extsw %t19+ %t22 =l loadl %prefix+ %t23 =l loadl %t9+ %t21 =l add %t22, %t23+ %t24 =w loadub %t21+ %t20 =l extsw %t24+ %t25 =w cnel %t15, %t20+ jnz %t25, @lbl296, @lbl297+@lbl296+ dbgloc 195+ %t26 =l copy 0+ ret %t26+@lbl297+ dbgloc 197+ %t27 =l loadl %t9+ %t28 =l add %t27, 1+ storel %t28, %t9+ jmp @lbl291+@lbl291+ jmp @lbl289+@lbl292+ dbgloc 199+ %t29 =l copy 1+ ret %t29+}++export function w $std__str__ends_with(l %v, l %suffix) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t13 =l alloc8 8+ %t15 =l alloc8 8+ dbgloc 202+ storel %v, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "v", "StringView", %t0, 8, 5, 202+ storel %suffix, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "suffix", "StringView", %t1, 8, 5, 202+ dbgloc 203+ %t3 =l add %suffix, 8+ %t2 =l loadl %t3+ %t5 =l add %v, 8+ %t4 =l loadl %t5+ %t6 =w csgtl %t2, %t4+ jnz %t6, @lbl299, @lbl300+@lbl299+ dbgloc 204+ %t7 =l copy 0+ ret %t7+@lbl300+ dbgloc 206+ %t9 =l add %v, 8+ %t8 =l loadl %t9+ %t11 =l add %suffix, 8+ %t10 =l loadl %t11+ %t12 =l sub %t8, %t10+ storel %t12, %t13+ call $__sx_dbg_keep(l %t13)+ dbgvar "offset", "i64", %t13, 8, 5, 206+ dbgloc 207+ %t14 =l copy 0+ storel %t14, %t15+ call $__sx_dbg_keep(l %t15)+ dbgvar "i", "i64", %t15, 8, 5, 207+ dbgloc 208+ jmp @lbl302+@lbl302+ jmp @lbl303+@lbl303+ dbgloc 209+ %t16 =l loadl %t15+ %t18 =l add %suffix, 8+ %t17 =l loadl %t18+ %t20 =w csltl %t16, %t17+ %t19 =w ceqw %t20, 0+ jnz %t19, @lbl306, @lbl307+@lbl306+ dbgloc 210+ jmp @lbl305+@lbl307+ dbgloc 212+ %t23 =l loadl %v+ %t24 =l loadl %t15+ %t25 =l add %t12, %t24+ %t22 =l add %t23, %t25+ %t26 =w loadub %t22+ %t21 =l extsw %t26+ %t29 =l loadl %suffix+ %t30 =l loadl %t15+ %t28 =l add %t29, %t30+ %t31 =w loadub %t28+ %t27 =l extsw %t31+ %t32 =w cnel %t21, %t27+ jnz %t32, @lbl309, @lbl310+@lbl309+ dbgloc 213+ %t33 =l copy 0+ ret %t33+@lbl310+ dbgloc 215+ %t34 =l loadl %t15+ %t35 =l add %t34, 1+ storel %t35, %t15+ jmp @lbl304+@lbl304+ jmp @lbl302+@lbl305+ dbgloc 217+ %t36 =l copy 1+ ret %t36+}++export function l $std__str__find(l %__ret, l %v, l %needle) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t7 =l alloc8 16+ %t14 =l alloc8 16+ %t20 =l alloc8 8+ %t22 =l alloc8 8+ %t26 =l alloc8 8+ %t30 =l alloc8 8+ %t57 =l alloc8 16+ %t61 =l alloc8 16+ dbgloc 220+ storel %v, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "v", "StringView", %t0, 8, 5, 220+ storel %needle, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "needle", "StringView", %t1, 8, 5, 220+ dbgloc 221+ %t3 =l add %needle, 8+ %t2 =l loadl %t3+ %t4 =l copy 0+ %t5 =w ceql %t2, %t4+ jnz %t5, @lbl312, @lbl313+@lbl312+ dbgloc 222+ %t6 =l copy 0+ call $memset(l %t7, w 0, l 16)+ storel 1, %t7+ %t8 =l add %t7, 8+ storel %t6, %t8+ call $memcpy(l %__ret, l %t7, l 16)+ ret %__ret+@lbl313+ dbgloc 224+ %t10 =l add %needle, 8+ %t9 =l loadl %t10+ %t12 =l add %v, 8+ %t11 =l loadl %t12+ %t13 =w csgtl %t9, %t11+ jnz %t13, @lbl315, @lbl316+@lbl315+ dbgloc 225+ storel 0, %t14+ call $memcpy(l %__ret, l %t14, l 16)+ ret %__ret+@lbl316+ dbgloc 227+ %t16 =l add %v, 8+ %t15 =l loadl %t16+ %t18 =l add %needle, 8+ %t17 =l loadl %t18+ %t19 =l sub %t15, %t17+ storel %t19, %t20+ call $__sx_dbg_keep(l %t20)+ dbgvar "limit", "i64", %t20, 8, 5, 227+ dbgloc 228+ %t21 =l copy 0+ storel %t21, %t22+ call $__sx_dbg_keep(l %t22)+ dbgvar "i", "i64", %t22, 8, 5, 228+ dbgloc 229+ jmp @lbl318+@lbl318+ jmp @lbl319+@lbl319+ dbgloc 230+ %t23 =l loadl %t22+ %t24 =w csgtl %t23, %t19+ jnz %t24, @lbl322, @lbl323+@lbl322+ dbgloc 231+ jmp @lbl321+@lbl323+ dbgloc 233+ %t25 =l copy 0+ storel %t25, %t26+ call $__sx_dbg_keep(l %t26)+ dbgvar "j", "i64", %t26, 8, 5, 233+ dbgloc 234+ %t27 =l copy 1+ %t28 =w copy %t27+ %t29 =w extub %t28+ storew %t29, %t30+ call $__sx_dbg_keep(l %t30)+ dbgvar "matched", "bool", %t30, 1, 7, 234+ dbgloc 235+ jmp @lbl325+@lbl325+ jmp @lbl326+@lbl326+ dbgloc 236+ %t31 =l loadl %t26+ %t33 =l add %needle, 8+ %t32 =l loadl %t33+ %t35 =w csltl %t31, %t32+ %t34 =w ceqw %t35, 0+ jnz %t34, @lbl329, @lbl330+@lbl329+ dbgloc 237+ jmp @lbl328+@lbl330+ dbgloc 239+ %t38 =l loadl %v+ %t39 =l loadl %t22+ %t40 =l loadl %t26+ %t41 =l add %t39, %t40+ %t37 =l add %t38, %t41+ %t42 =w loadub %t37+ %t36 =l extsw %t42+ %t45 =l loadl %needle+ %t46 =l loadl %t26+ %t44 =l add %t45, %t46+ %t47 =w loadub %t44+ %t43 =l extsw %t47+ %t48 =w cnel %t36, %t43+ jnz %t48, @lbl332, @lbl333+@lbl332+ dbgloc 240+ %t49 =l copy 0+ %t50 =w copy %t49+ %t51 =w extub %t50+ storew %t51, %t30+ dbgloc 241+ jmp @lbl328+@lbl333+ dbgloc 243+ %t52 =l loadl %t26+ %t53 =l add %t52, 1+ storel %t53, %t26+ jmp @lbl327+@lbl327+ jmp @lbl325+@lbl328+ dbgloc 245+ %t55 =w loadw %t30+ %t54 =l extsw %t55+ jnz %t54, @lbl335, @lbl336+@lbl335+ dbgloc 246+ %t56 =l loadl %t22+ call $memset(l %t57, w 0, l 16)+ storel 1, %t57+ %t58 =l add %t57, 8+ storel %t56, %t58+ call $memcpy(l %__ret, l %t57, l 16)+ ret %__ret+@lbl336+ dbgloc 248+ %t59 =l loadl %t22+ %t60 =l add %t59, 1+ storel %t60, %t22+ jmp @lbl320+@lbl320+ jmp @lbl318+@lbl321+ dbgloc 250+ storel 0, %t61+ call $memcpy(l %__ret, l %t61, l 16)+ ret %__ret+}++export function w $std__str__contains(l %v, l %needle) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t3 =l alloc8 16+ dbgloc 253+ storel %v, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "v", "StringView", %t0, 8, 5, 253+ storel %needle, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "needle", "StringView", %t1, 8, 5, 253+ dbgloc 254+ %t2 =l call $std__str__find(l %t3, l %v, l %needle)+ %t4 =l loadl %t3+ %t5 =w cnel %t4, 0+ jnz %t5, @lbl338, @lbl339+@lbl338+ dbgloc 256+ %t6 =l copy 1+ ret %t6+@lbl339+ dbgloc 259+ %t7 =l copy 0+ ret %t7+@lbl340+ ret 0+}++export function l $std__str__trim_left(l %v) {+@start+ %t0 =l alloc8 8+ %t2 =l alloc8 8+ %t16 =l alloc8 8+ %t19 =l alloc4 1+ %t23 =l alloc4 1+ %t27 =l alloc4 1+ dbgloc 264+ storel %v, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "v", "StringView", %t0, 8, 5, 264+ dbgloc 265+ %t1 =l copy 0+ storel %t1, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "i", "i64", %t2, 8, 5, 265+ dbgloc 266+ jmp @lbl341+@lbl341+ jmp @lbl342+@lbl342+ dbgloc 267+ %t3 =l loadl %t2+ %t5 =l add %v, 8+ %t4 =l loadl %t5+ %t7 =w csltl %t3, %t4+ %t6 =w ceqw %t7, 0+ jnz %t6, @lbl345, @lbl346+@lbl345+ dbgloc 268+ jmp @lbl344+@lbl346+ dbgloc 270+ %t10 =l loadl %v+ %t11 =l loadl %t2+ %t9 =l add %t10, %t11+ %t12 =w loadub %t9+ %t8 =l extsw %t12+ %t13 =w copy %t8+ %t14 =w copy %t13+ %t15 =w extub %t14+ storew %t15, %t16+ call $__sx_dbg_keep(l %t16)+ dbgvar "c", "u8", %t16, 1, 7, 270+ dbgloc 271+ %t17 =w copy 32+ %t18 =w cnew %t15, %t17+ storew %t18, %t19+ jnz %t18, @lbl351, @lbl352+@lbl351+ %t20 =w copy 9+ %t21 =w cnew %t15, %t20+ storew %t21, %t19+ jmp @lbl352+@lbl352+ %t22 =w loadw %t19+ storew %t22, %t23+ jnz %t22, @lbl353, @lbl354+@lbl353+ %t24 =w copy 10+ %t25 =w cnew %t15, %t24+ storew %t25, %t23+ jmp @lbl354+@lbl354+ %t26 =w loadw %t23+ storew %t26, %t27+ jnz %t26, @lbl355, @lbl356+@lbl355+ %t28 =w copy 13+ %t29 =w cnew %t15, %t28+ storew %t29, %t27+ jmp @lbl356+@lbl356+ %t30 =w loadw %t27+ jnz %t30, @lbl348, @lbl349+@lbl348+ dbgloc 272+ jmp @lbl344+@lbl349+ dbgloc 274+ %t31 =l loadl %t2+ %t32 =l add %t31, 1+ storel %t32, %t2+ jmp @lbl343+@lbl343+ jmp @lbl341+@lbl344+ dbgloc 276+ %t33 =l loadl %t2+ %t35 =l add %v, 8+ %t34 =l loadl %t35+ %t36 =l call $std__str__slice(l %v, l %t33, l %t34)+ ret %t36+}++export function l $std__str__trim_right(l %v) {+@start+ %t0 =l alloc8 8+ %t3 =l alloc8 8+ %t17 =l alloc8 8+ %t20 =l alloc4 1+ %t24 =l alloc4 1+ %t28 =l alloc4 1+ dbgloc 279+ storel %v, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "v", "StringView", %t0, 8, 5, 279+ dbgloc 280+ %t2 =l add %v, 8+ %t1 =l loadl %t2+ storel %t1, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "end", "i64", %t3, 8, 5, 280+ dbgloc 281+ jmp @lbl357+@lbl357+ jmp @lbl358+@lbl358+ dbgloc 282+ %t4 =l loadl %t3+ %t5 =l copy 0+ %t6 =w cslel %t4, %t5+ jnz %t6, @lbl361, @lbl362+@lbl361+ dbgloc 283+ jmp @lbl360+@lbl362+ dbgloc 285+ %t9 =l loadl %v+ %t10 =l loadl %t3+ %t11 =l copy 1+ %t12 =l sub %t10, %t11+ %t8 =l add %t9, %t12+ %t13 =w loadub %t8+ %t7 =l extsw %t13+ %t14 =w copy %t7+ %t15 =w copy %t14+ %t16 =w extub %t15+ storew %t16, %t17+ call $__sx_dbg_keep(l %t17)+ dbgvar "c", "u8", %t17, 1, 7, 285+ dbgloc 286+ %t18 =w copy 32+ %t19 =w cnew %t16, %t18+ storew %t19, %t20+ jnz %t19, @lbl367, @lbl368+@lbl367+ %t21 =w copy 9+ %t22 =w cnew %t16, %t21+ storew %t22, %t20+ jmp @lbl368+@lbl368+ %t23 =w loadw %t20+ storew %t23, %t24+ jnz %t23, @lbl369, @lbl370+@lbl369+ %t25 =w copy 10+ %t26 =w cnew %t16, %t25+ storew %t26, %t24+ jmp @lbl370+@lbl370+ %t27 =w loadw %t24+ storew %t27, %t28+ jnz %t27, @lbl371, @lbl372+@lbl371+ %t29 =w copy 13+ %t30 =w cnew %t16, %t29+ storew %t30, %t28+ jmp @lbl372+@lbl372+ %t31 =w loadw %t28+ jnz %t31, @lbl364, @lbl365+@lbl364+ dbgloc 287+ jmp @lbl360+@lbl365+ dbgloc 289+ %t32 =l loadl %t3+ %t33 =l sub %t32, 1+ storel %t33, %t3+ jmp @lbl359+@lbl359+ jmp @lbl357+@lbl360+ dbgloc 291+ %t34 =l copy 0+ %t35 =l loadl %t3+ %t36 =l call $std__str__slice(l %v, l %t34, l %t35)+ ret %t36+}++export function l $std__str__trim(l %v) {+@start+ %t0 =l alloc8 8+ dbgloc 294+ storel %v, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "v", "StringView", %t0, 8, 5, 294+ dbgloc 295+ %t1 =l call $std__str__trim_right(l %v)+ %t2 =l call $std__str__trim_left(l %t1)+ ret %t2+}++export function l $std__str__zstr_ptr(l %s) {+@start+ %t0 =l alloc8 8+ dbgloc 334+ storel %s, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "s", "ZString", %t0, 8, 5, 334+ dbgloc 335+ %t1 =l loadl %s+ ret %t1+}++export function l $std__str__zstr(l %s) {+@start+ %t0 =l alloc8 8+ dbgloc 338+ storel %s, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "s", "ZString", %t0, 8, 5, 338+ dbgloc 339+ %t1 =l loadl %s+ %t2 =l call $std__str__from_cstr(l %t1)+ ret %t2+}++export function w $std__str__is_alpha(w %c) {+@start+ %t0 =l alloc8 8+ %t4 =l alloc4 1+ %t8 =l alloc4 1+ %t12 =l alloc4 1+ dbgloc 405+ storew %c, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "c", "u8", %t0, 1, 7, 405+ dbgloc 406+ %t1 =w copy 65+ %t3 =w csltw %c, %t1+ %t2 =w ceqw %t3, 0+ storew %t2, %t4+ jnz %t2, @lbl373, @lbl374+@lbl373+ %t5 =w copy 90+ %t6 =w cslew %c, %t5+ storew %t6, %t4+ jmp @lbl374+@lbl374+ %t7 =w loadw %t4+ storew %t7, %t8+ jnz %t7, @lbl376, @lbl375+@lbl375+ %t9 =w copy 97+ %t11 =w csltw %c, %t9+ %t10 =w ceqw %t11, 0+ storew %t10, %t12+ jnz %t10, @lbl377, @lbl378+@lbl377+ %t13 =w copy 122+ %t14 =w cslew %c, %t13+ storew %t14, %t12+ jmp @lbl378+@lbl378+ %t15 =w loadw %t12+ storew %t15, %t8+ jmp @lbl376+@lbl376+ %t16 =w loadw %t8+ ret %t16+}++dbgfile "spectrelib/stdio/core.sx"+export function w $std__stdio__printv(l %data) {+@start+ %t0 =l alloc8 8+ dbgloc 5+ storel %data, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "data", "str.StringView", %t0, 8, 5, 5+ dbgloc 6+ %t2 =l add %data, 8+ %t1 =l loadl %t2+ %t3 =l copy 0+ %t4 =w csgtl %t1, %t3+ jnz %t4, @lbl379, @lbl380+@lbl379+ dbgloc 7+ %t5 =l loadl %data+ %t6 =l copy %t5+ %t7 =l copy 1+ %t8 =l copy %t7+ %t10 =l add %data, 8+ %t9 =l loadl %t10+ %t11 =l copy %t9+ %t12 =l call $rt__stdout()+ %t13 =l call $rt__fwrite(l %t6, l %t8, l %t11, l %t12)+ jmp @lbl380+@lbl380+ ret 0+}++export function w $std__stdio__eprintv(l %data) {+@start+ %t0 =l alloc8 8+ dbgloc 12+ storel %data, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "data", "str.StringView", %t0, 8, 5, 12+ dbgloc 13+ %t2 =l add %data, 8+ %t1 =l loadl %t2+ %t3 =l copy 0+ %t4 =w csgtl %t1, %t3+ jnz %t4, @lbl382, @lbl383+@lbl382+ dbgloc 14+ %t5 =l loadl %data+ %t6 =l copy %t5+ %t7 =l copy 1+ %t8 =l copy %t7+ %t10 =l add %data, 8+ %t9 =l loadl %t10+ %t11 =l copy %t9+ %t12 =l call $rt__stderr()+ %t13 =l call $rt__fwrite(l %t6, l %t8, l %t11, l %t12)+ jmp @lbl383+@lbl383+ ret 0+}++export function w $std__stdio__puts(l %data) {+@start+ %t0 =l alloc8 8+ %t6 =l alloc8 8+ dbgloc 19+ storel %data, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "data", "str.StringView", %t0, 8, 5, 19+ dbgloc 20+ %t1 =w call $std__stdio__printv(l %data)+ dbgloc 21+ %t2 =l copy 10+ %t3 =w copy %t2+ %t4 =w copy %t3+ %t5 =w extub %t4+ storew %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "nl", "u8", %t6, 1, 7, 21+ dbgloc 22+ %t7 =l copy %t6+ %t8 =l copy 1+ %t9 =l copy %t8+ %t10 =l copy 1+ %t11 =l copy %t10+ %t12 =l call $rt__stdout()+ %t13 =l call $rt__fwrite(l %t7, l %t9, l %t11, l %t12)+ ret 0+}++export function w $std__stdio__print(l %fmt, l %args) {+@start+ %t0 =l alloc8 8+ dbgloc 26+ storel %fmt, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "fmt", "str.StringView", %t0, 8, 5, 26+ dbgloc 27+ %t2 =l loadl %fmt+ %t3 =l call $sxqbe_rewrite_fmt(l %t2)+ %t4 =l add %args, 0+ %t5 =l loadl %t4+ %t6 =l add %args, 8+ %t7 =l loadl %t6+ %t8 =l add %args, 16+ %t9 =l loadl %t8+ %t10 =l add %args, 24+ %t11 =l loadl %t10+ %t12 =l add %args, 32+ %t13 =l loadl %t12+ %t14 =l add %args, 40+ %t15 =l loadl %t14+ %t16 =l add %args, 48+ %t17 =l loadl %t16+ %t18 =l add %args, 56+ %t19 =l loadl %t18+ %t20 =l add %args, 64+ %t21 =l loadl %t20+ %t22 =l add %args, 72+ %t23 =l loadl %t22+ %t24 =l add %args, 80+ %t25 =l loadl %t24+ %t26 =l add %args, 88+ %t27 =l loadl %t26+ %t28 =l add %args, 96+ %t29 =l loadl %t28+ %t30 =l add %args, 104+ %t31 =l loadl %t30+ %t32 =l add %args, 112+ %t33 =l loadl %t32+ %t34 =l add %args, 120+ %t35 =l loadl %t34+ %t1 =w call $printf(l %t3, ..., l %t5, l %t7, l %t9, l %t11, l %t13, l %t15, l %t17, l %t19, l %t21, l %t23, l %t25, l %t27, l %t29, l %t31, l %t33, l %t35)+ ret 0+}++export function w $std__stdio__eputs(l %msg) {+@start+ %t0 =l alloc8 8+ %t6 =l alloc8 8+ dbgloc 31+ storel %msg, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "msg", "str.StringView", %t0, 8, 5, 31+ dbgloc 32+ %t1 =w call $std__stdio__eprintv(l %msg)+ dbgloc 33+ %t2 =l copy 10+ %t3 =w copy %t2+ %t4 =w copy %t3+ %t5 =w extub %t4+ storew %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "nl", "u8", %t6, 1, 7, 33+ dbgloc 34+ %t7 =l copy %t6+ %t8 =l copy 1+ %t9 =l copy %t8+ %t10 =l copy 1+ %t11 =l copy %t10+ %t12 =l call $rt__stderr()+ %t13 =l call $rt__fwrite(l %t7, l %t9, l %t11, l %t12)+ ret 0+}++export function w $std__stdio__eprint(l %fmt, l %args) {+@start+ %t0 =l alloc8 8+ dbgloc 38+ storel %fmt, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "fmt", "str.StringView", %t0, 8, 5, 38+ dbgloc 39+ %t2 =l copy 2+ %t1 =l call $dprintf(l %t2, l %fmt, l %args)+ ret 0+}++export function w $std__stdio__read_key() {+@start+ dbgloc 44+ dbgloc 45+ %t0 =l call $getchar()+ %t1 =w copy %t0+ ret %t1+}++export function l $std__stdio__read_line(l %buf, l %max_len) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 51+ storel %buf, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "buf", "ref u8", %t0, 8, 7, 51+ storel %max_len, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "max_len", "i64", %t1, 8, 5, 51+ dbgloc 52+ %t3 =l call $rt__stdin()+ %t2 =l call $fgets(l %buf, l %max_len, l %t3)+ ret %t2+}++dbgfile "spectrelib/collections/core.sx"+data $collections__ELEMENT_SIZE = { l 8 }+export function l $std__collections__PtrList__len(l %list) {+@start+ %t0 =l alloc8 8+ dbgloc 88+ storel %list, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "list", "PtrList", %t0, 8, 5, 88+ dbgloc 89+ %t3 =l copy 8+ %t2 =l add %list, %t3+ %t1 =l loadl %t2+ %t4 =l copy %t1+ ret %t4+}++export function l $std__collections__PtrList__cap(l %list) {+@start+ %t0 =l alloc8 8+ dbgloc 93+ storel %list, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "list", "PtrList", %t0, 8, 5, 93+ dbgloc 94+ %t3 =l copy 16+ %t2 =l add %list, %t3+ %t1 =l loadl %t2+ %t4 =l copy %t1+ ret %t4+}++export function l $std__collections__PtrList__get(l %__ret, l %list, l %i) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t11 =l alloc8 8+ %t14 =l alloc8 16+ %t16 =l alloc8 8+ %t20 =l alloc8 8+ %t25 =l alloc8 16+ dbgloc 155+ storel %list, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "list", "PtrList", %t0, 8, 5, 155+ storel %i, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "i", "usize", %t1, 8, 5, 155+ dbgloc 156+ %t4 =l copy 8+ %t3 =l add %list, %t4+ %t2 =l loadl %t3+ %t5 =w csltl %i, %t2+ jnz %t5, @lbl385, @lbl386+@lbl386+ %t6 =l copy $__str16+ call $dprintf(w 2, l %t6)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl385+ dbgloc 159+ %t9 =l copy 8+ %t8 =l add %list, %t9+ %t7 =l loadl %t8+ %t10 =l copy %t7+ storel %t10, %t11+ call $__sx_dbg_keep(l %t11)+ dbgvar "len", "usize", %t11, 8, 5, 159+ dbgloc 160+ %t13 =w csltl %i, %t10+ %t12 =w ceqw %t13, 0+ jnz %t12, @lbl387, @lbl388+@lbl387+ dbgloc 161+ storel 0, %t14+ call $memcpy(l %__ret, l %t14, l 16)+ ret %__ret+@lbl388+ dbgloc 163+ %t15 =l loadl %list+ storel %t15, %t16+ call $__sx_dbg_keep(l %t16)+ dbgvar "buf", "ref ", %t16, 8, 7, 163+ dbgloc 164+ %t18 =l copy 8+ %t19 =l mul %i, %t18+ %t17 =l add %t15, %t19+ storel %t17, %t20+ call $__sx_dbg_keep(l %t20)+ dbgvar "slot", "ref ", %t20, 8, 7, 164+ dbgloc 165+ %t21 =w csltl %i, %t10+ jnz %t21, @lbl390, @lbl391+@lbl391+ %t22 =l copy $__str17+ call $dprintf(w 2, l %t22)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl390+ dbgloc 168+ %t23 =l loadl %t17+ %t24 =l copy %t23+ call $memset(l %t25, w 0, l 16)+ storel 1, %t25+ %t26 =l add %t25, 8+ storel %t24, %t26+ call $memcpy(l %__ret, l %t25, l 16)+ ret %__ret+}++export function l $std__collections__PtrList__set(l %list, l %i, l %value) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t12 =l alloc8 8+ %t17 =l alloc8 8+ %t21 =l alloc8 8+ dbgloc 174+ storel %list, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "list", "PtrList", %t0, 8, 5, 174+ storel %i, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "i", "usize", %t1, 8, 5, 174+ storel %value, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "value", "usize", %t2, 8, 5, 174+ dbgloc 175+ %t5 =l copy 8+ %t4 =l add %list, %t5+ %t3 =l loadl %t4+ %t6 =w csltl %i, %t3+ jnz %t6, @lbl392, @lbl393+@lbl393+ %t7 =l copy $__str18+ call $dprintf(w 2, l %t7)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl392+ dbgloc 178+ %t10 =l copy 8+ %t9 =l add %list, %t10+ %t8 =l loadl %t9+ %t11 =l copy %t8+ storel %t11, %t12+ call $__sx_dbg_keep(l %t12)+ dbgvar "len", "usize", %t12, 8, 5, 178+ dbgloc 179+ %t14 =w csltl %i, %t11+ %t13 =w ceqw %t14, 0+ jnz %t13, @lbl394, @lbl395+@lbl394+ dbgloc 180+ %t15 =l copy 0+ ret %t15+@lbl395+ dbgloc 182+ %t16 =l loadl %list+ storel %t16, %t17+ call $__sx_dbg_keep(l %t17)+ dbgvar "buf", "ref ", %t17, 8, 7, 182+ dbgloc 183+ %t19 =l copy 8+ %t20 =l mul %i, %t19+ %t18 =l add %t16, %t20+ storel %t18, %t21+ call $__sx_dbg_keep(l %t21)+ dbgvar "slot", "ref ", %t21, 8, 7, 183+ dbgloc 184+ storel %value, %t18+ %t22 =l copy 0+ dbgloc 185+ %t23 =w csltl %i, %t11+ jnz %t23, @lbl397, @lbl398+@lbl398+ %t24 =l copy $__str19+ call $dprintf(w 2, l %t24)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl397+ dbgloc 188+ %t25 =l copy 1+ ret %t25+}++export function l $std__collections__PtrList__pop(l %__ret, l %list) {+@start+ %t0 =l alloc8 8+ %t11 =l alloc8 8+ %t14 =l alloc8 16+ %t17 =l alloc8 8+ %t19 =l alloc8 8+ %t23 =l alloc8 8+ %t26 =l alloc8 8+ %t33 =l alloc8 16+ dbgloc 193+ storel %list, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "list", "PtrList", %t0, 8, 5, 193+ dbgloc 194+ %t3 =l copy 8+ %t2 =l add %list, %t3+ %t1 =l loadl %t2+ %t4 =l copy 0+ %t5 =w csgtl %t1, %t4+ jnz %t5, @lbl399, @lbl400+@lbl400+ %t6 =l copy $__str20+ call $dprintf(w 2, l %t6)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl399+ dbgloc 197+ %t9 =l copy 8+ %t8 =l add %list, %t9+ %t7 =l loadl %t8+ %t10 =l copy %t7+ storel %t10, %t11+ call $__sx_dbg_keep(l %t11)+ dbgvar "len", "usize", %t11, 8, 5, 197+ dbgloc 198+ %t12 =l copy 0+ %t13 =w ceql %t10, %t12+ jnz %t13, @lbl401, @lbl402+@lbl401+ dbgloc 199+ storel 0, %t14+ call $memcpy(l %__ret, l %t14, l 16)+ ret %__ret+@lbl402+ dbgloc 201+ %t15 =l copy 1+ %t16 =l sub %t10, %t15+ storel %t16, %t17+ call $__sx_dbg_keep(l %t17)+ dbgvar "new_len", "usize", %t17, 8, 5, 201+ dbgloc 202+ %t18 =l loadl %list+ storel %t18, %t19+ call $__sx_dbg_keep(l %t19)+ dbgvar "buf", "ref ", %t19, 8, 7, 202+ dbgloc 203+ %t21 =l copy 8+ %t22 =l mul %t16, %t21+ %t20 =l add %t18, %t22+ storel %t20, %t23+ call $__sx_dbg_keep(l %t23)+ dbgvar "slot", "ref ", %t23, 8, 7, 203+ dbgloc 204+ %t24 =l loadl %t20+ %t25 =l copy %t24+ storel %t25, %t26+ call $__sx_dbg_keep(l %t26)+ dbgvar "value", "usize", %t26, 8, 5, 204+ dbgloc 205+ %t29 =l copy 8+ %t28 =l add %list, %t29+ storel %t16, %t28+ %t27 =l copy 0+ dbgloc 206+ %t30 =l copy 0+ %t31 =w csgtl %t10, %t30+ jnz %t31, @lbl404, @lbl405+@lbl405+ %t32 =l copy $__str21+ call $dprintf(w 2, l %t32)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl404+ dbgloc 209+ call $memset(l %t33, w 0, l 16)+ storel 1, %t33+ %t34 =l add %t33, 8+ storel %t25, %t34+ call $memcpy(l %__ret, l %t33, l 16)+ ret %__ret+}++data $collections__MAP_BUCKET_SIZE = { l 24 }+data $collections__MAP_BUCKET_EMPTY = { l 0 }+data $collections__MAP_BUCKET_LIVE = { l 1 }+data $collections__MAP_BUCKET_DEAD = { l 2 }+data $collections__MAP_HEADER_SIZE = { l 32 }+export function l $std__collections__hash_identity(l %key) {+@start+ %t0 =l alloc8 8+ dbgloc 246+ storel %key, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "key", "usize", %t0, 8, 5, 246+ dbgloc 247+ ret %key+}++export function l $std__collections__Map__len(l %map) {+@start+ %t0 =l alloc8 8+ dbgloc 296+ storel %map, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "map", "Map", %t0, 8, 5, 296+ dbgloc 297+ %t3 =l loadl %map+ %t4 =l copy 8+ %t2 =l add %t3, %t4+ %t1 =l loadl %t2+ %t5 =l copy %t1+ ret %t5+}++export function l $std__collections__Map__cap(l %map) {+@start+ %t0 =l alloc8 8+ dbgloc 301+ storel %map, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "map", "Map", %t0, 8, 5, 301+ dbgloc 302+ %t3 =l loadl %map+ %t4 =l copy 16+ %t2 =l add %t3, %t4+ %t1 =l loadl %t2+ %t5 =l copy %t1+ ret %t5+}++export function l $std__collections__Map__get(l %__ret, l %map, l %key) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t7 =l alloc8 8+ %t12 =l alloc8 8+ %t14 =l alloc8 8+ %t18 =l alloc8 8+ %t20 =l alloc8 8+ %t24 =l alloc8 8+ %i =l alloc8 8+ %t35 =l alloc8 8+ %t39 =l alloc8 8+ %t42 =l alloc8 8+ %t45 =l alloc8 16+ %t52 =l alloc8 8+ %t58 =l alloc8 16+ %t66 =l alloc8 16+ dbgloc 382+ storel %map, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "map", "Map", %t0, 8, 5, 382+ storel %key, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "key", "usize", %t1, 8, 5, 382+ dbgloc 383+ %t2 =l loadl %map+ %t3 =l copy 0+ %t4 =w cnel %t2, %t3+ jnz %t4, @lbl406, @lbl407+@lbl407+ %t5 =l copy $__str22+ call $dprintf(w 2, l %t5)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl406+ dbgloc 386+ %t6 =l loadl %map+ storel %t6, %t7+ call $__sx_dbg_keep(l %t7)+ dbgvar "header", "ref ", %t7, 8, 7, 386+ dbgloc 387+ %t10 =l copy 16+ %t9 =l add %t6, %t10+ %t8 =l loadl %t9+ %t11 =l copy %t8+ storel %t11, %t12+ call $__sx_dbg_keep(l %t12)+ dbgvar "cap", "usize", %t12, 8, 5, 387+ dbgloc 388+ %t13 =l loadl %t6+ storel %t13, %t14+ call $__sx_dbg_keep(l %t14)+ dbgvar "buckets", "ref ", %t14, 8, 7, 388+ dbgloc 389+ %t17 =l copy 24+ %t16 =l add %t6, %t17+ %t15 =l loadl %t16+ storel %t15, %t18+ call $__sx_dbg_keep(l %t18)+ dbgvar "hash_fn", "ref ", %t18, 8, 7, 389+ dbgloc 390+ %t19 =l call %t15(l %key)+ storel %t19, %t20+ call $__sx_dbg_keep(l %t20)+ dbgvar "h", "usize", %t20, 8, 5, 390+ dbgloc 391+ %t21 =l div %t19, %t11+ %t22 =l mul %t21, %t11+ %t23 =l sub %t19, %t22+ storel %t23, %t24+ call $__sx_dbg_keep(l %t24)+ dbgvar "start", "usize", %t24, 8, 5, 391+ dbgloc 393+ %t25 =l copy 0+ storel %t25, %i+ jmp @lbl408+@lbl408+ %t26 =l loadl %i+ %t27 =w csltl %t26, %t11+ jnz %t27, @lbl409, @lbl411+@lbl409+ dbgloc 394+ %t28 =l loadl %i+ %t29 =l add %t23, %t28+ %t30 =l loadl %i+ %t31 =l add %t23, %t30+ %t32 =l div %t31, %t11+ %t33 =l mul %t32, %t11+ %t34 =l sub %t29, %t33+ storel %t34, %t35+ call $__sx_dbg_keep(l %t35)+ dbgvar "idx", "usize", %t35, 8, 5, 394+ dbgloc 395+ %t37 =l copy 24+ %t38 =l mul %t34, %t37+ %t36 =l add %t13, %t38+ storel %t36, %t39+ call $__sx_dbg_keep(l %t39)+ dbgvar "slot", "ref ", %t39, 8, 7, 395+ dbgloc 396+ %t40 =l loadl %t36+ %t41 =l copy %t40+ storel %t41, %t42+ call $__sx_dbg_keep(l %t42)+ dbgvar "state", "usize", %t42, 8, 5, 396+ dbgloc 398+ %t43 =l copy 0+ %t44 =w ceql %t41, %t43+ jnz %t44, @lbl412, @lbl413+@lbl412+ dbgloc 399+ storel 0, %t45+ call $memcpy(l %__ret, l %t45, l 16)+ ret %__ret+@lbl413+ dbgloc 402+ %t46 =l copy 1+ %t47 =w ceql %t41, %t46+ jnz %t47, @lbl415, @lbl416+@lbl415+ dbgloc 403+ %t50 =l copy 8+ %t49 =l add %t36, %t50+ %t48 =l loadl %t49+ %t51 =l copy %t48+ storel %t51, %t52+ call $__sx_dbg_keep(l %t52)+ dbgvar "existing_key", "usize", %t52, 8, 5, 403+ dbgloc 404+ %t53 =w ceql %t51, %key+ jnz %t53, @lbl418, @lbl419+@lbl418+ dbgloc 405+ %t56 =l copy 16+ %t55 =l add %t36, %t56+ %t54 =l loadl %t55+ %t57 =l copy %t54+ call $memset(l %t58, w 0, l 16)+ storel 1, %t58+ %t59 =l add %t58, 8+ storel %t57, %t59+ call $memcpy(l %__ret, l %t58, l 16)+ ret %__ret+@lbl419+ jmp @lbl416+@lbl416+ jmp @lbl410+@lbl410+ %t60 =l loadl %i+ %t61 =l add %t60, 1+ storel %t61, %i+ jmp @lbl408+@lbl411+ dbgloc 410+ %t62 =l loadl %map+ %t63 =l copy 0+ %t64 =w cnel %t62, %t63+ jnz %t64, @lbl421, @lbl422+@lbl422+ %t65 =l copy $__str23+ call $dprintf(w 2, l %t65)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl421+ dbgloc 414+ storel 0, %t66+ call $memcpy(l %__ret, l %t66, l 16)+ ret %__ret+}++export function l $std__collections__Map__delete(l %map, l %key) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t3 =l alloc8 8+ %t8 =l alloc8 8+ %t10 =l alloc8 8+ %t14 =l alloc8 8+ %t16 =l alloc8 8+ %t20 =l alloc8 8+ %i =l alloc8 8+ %t31 =l alloc8 8+ %t35 =l alloc8 8+ %t38 =l alloc8 8+ %t48 =l alloc8 8+ dbgloc 418+ storel %map, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "map", "Map", %t0, 8, 5, 418+ storel %key, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "key", "usize", %t1, 8, 5, 418+ dbgloc 419+ %t2 =l loadl %map+ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "header", "ref ", %t3, 8, 7, 419+ dbgloc 420+ %t6 =l copy 16+ %t5 =l add %t2, %t6+ %t4 =l loadl %t5+ %t7 =l copy %t4+ storel %t7, %t8+ call $__sx_dbg_keep(l %t8)+ dbgvar "cap", "usize", %t8, 8, 5, 420+ dbgloc 421+ %t9 =l loadl %t2+ storel %t9, %t10+ call $__sx_dbg_keep(l %t10)+ dbgvar "buckets", "ref ", %t10, 8, 7, 421+ dbgloc 422+ %t13 =l copy 24+ %t12 =l add %t2, %t13+ %t11 =l loadl %t12+ storel %t11, %t14+ call $__sx_dbg_keep(l %t14)+ dbgvar "hash_fn", "ref ", %t14, 8, 7, 422+ dbgloc 423+ %t15 =l call %t11(l %key)+ storel %t15, %t16+ call $__sx_dbg_keep(l %t16)+ dbgvar "h", "usize", %t16, 8, 5, 423+ dbgloc 424+ %t17 =l div %t15, %t7+ %t18 =l mul %t17, %t7+ %t19 =l sub %t15, %t18+ storel %t19, %t20+ call $__sx_dbg_keep(l %t20)+ dbgvar "start", "usize", %t20, 8, 5, 424+ dbgloc 426+ %t21 =l copy 0+ storel %t21, %i+ jmp @lbl423+@lbl423+ %t22 =l loadl %i+ %t23 =w csltl %t22, %t7+ jnz %t23, @lbl424, @lbl426+@lbl424+ dbgloc 427+ %t24 =l loadl %i+ %t25 =l add %t19, %t24+ %t26 =l loadl %i+ %t27 =l add %t19, %t26+ %t28 =l div %t27, %t7+ %t29 =l mul %t28, %t7+ %t30 =l sub %t25, %t29+ storel %t30, %t31+ call $__sx_dbg_keep(l %t31)+ dbgvar "idx", "usize", %t31, 8, 5, 427+ dbgloc 428+ %t33 =l copy 24+ %t34 =l mul %t30, %t33+ %t32 =l add %t9, %t34+ storel %t32, %t35+ call $__sx_dbg_keep(l %t35)+ dbgvar "slot", "ref ", %t35, 8, 7, 428+ dbgloc 429+ %t36 =l loadl %t32+ %t37 =l copy %t36+ storel %t37, %t38+ call $__sx_dbg_keep(l %t38)+ dbgvar "state", "usize", %t38, 8, 5, 429+ dbgloc 431+ %t39 =l copy 0+ %t40 =w ceql %t37, %t39+ jnz %t40, @lbl427, @lbl428+@lbl427+ dbgloc 432+ %t41 =l copy 0+ ret %t41+@lbl428+ dbgloc 435+ %t42 =l copy 1+ %t43 =w ceql %t37, %t42+ jnz %t43, @lbl430, @lbl431+@lbl430+ dbgloc 436+ %t46 =l copy 8+ %t45 =l add %t32, %t46+ %t44 =l loadl %t45+ %t47 =l copy %t44+ storel %t47, %t48+ call $__sx_dbg_keep(l %t48)+ dbgvar "existing_key", "usize", %t48, 8, 5, 436+ dbgloc 437+ %t49 =w ceql %t47, %key+ jnz %t49, @lbl433, @lbl434+@lbl433+ dbgloc 438+ %t51 =l copy 2+ storel %t51, %t32+ %t50 =l copy 0+ dbgloc 439+ %t54 =l copy 8+ %t53 =l add %t2, %t54+ %t57 =l copy 8+ %t56 =l add %t2, %t57+ %t55 =l loadl %t56+ %t58 =l copy 1+ %t59 =l sub %t55, %t58+ storel %t59, %t53+ %t52 =l copy 0+ dbgloc 440+ %t60 =l copy 1+ ret %t60+@lbl434+ jmp @lbl431+@lbl431+ jmp @lbl425+@lbl425+ %t61 =l loadl %i+ %t62 =l add %t61, 1+ storel %t62, %i+ jmp @lbl423+@lbl426+ dbgloc 445+ %t63 =l copy 0+ ret %t63+}++export function w $std__collections__Map__contains(l %map, l %key) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t7 =l alloc8 16+ %t8 =l alloc8 8+ %t10 =l alloc8 8+ dbgloc 449+ storel %map, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "map", "Map", %t0, 8, 5, 449+ storel %key, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "key", "usize", %t1, 8, 5, 449+ dbgloc 450+ %t2 =l loadl %map+ %t3 =l copy 0+ %t4 =w cnel %t2, %t3+ jnz %t4, @lbl436, @lbl437+@lbl437+ %t5 =l copy $__str24+ call $dprintf(w 2, l %t5)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl436+ dbgloc 453+ %t6 =l call $std__collections__Map__get(l %t7, l %map, l %key)+ storel %t7, %t8+ call $__sx_dbg_keep(l %t8)+ dbgvar "result", "option[usize]", %t8, 8, 5, 453+ dbgloc 454+ %t9 =l copy 0+ storel %t9, %t10+ call $__sx_dbg_keep(l %t10)+ dbgvar "found", "usize", %t10, 8, 5, 454+ dbgloc 455+ %t11 =l loadl %t7+ %t12 =w cnel %t11, 0+ jnz %t12, @lbl438, @lbl439+@lbl438+ dbgloc 457+ %t13 =l copy 1+ storel %t13, %t10+ jmp @lbl440+@lbl439+ dbgloc 460+ %t14 =l copy 0+ storel %t14, %t10+ jmp @lbl440+@lbl440+ dbgloc 463+ %t15 =l loadl %map+ %t16 =l copy 0+ %t17 =w cnel %t15, %t16+ jnz %t17, @lbl441, @lbl442+@lbl442+ %t18 =l copy $__str25+ call $dprintf(w 2, l %t18)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl441+ dbgloc 466+ %t19 =l loadl %t10+ %t20 =l copy 0+ %t21 =w cnel %t19, %t20+ ret %t21+}++export function w $std__collections__Map__clear(l %map) {+@start+ %t0 =l alloc8 8+ %t2 =l alloc8 8+ %t7 =l alloc8 8+ %t9 =l alloc8 8+ dbgloc 470+ storel %map, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "map", "Map", %t0, 8, 5, 470+ dbgloc 471+ %t1 =l loadl %map+ storel %t1, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "header", "ref ", %t2, 8, 7, 471+ dbgloc 472+ %t5 =l copy 16+ %t4 =l add %t1, %t5+ %t3 =l loadl %t4+ %t6 =l copy %t3+ storel %t6, %t7+ call $__sx_dbg_keep(l %t7)+ dbgvar "cap", "usize", %t7, 8, 5, 472+ dbgloc 473+ %t8 =l loadl %t1+ storel %t8, %t9+ call $__sx_dbg_keep(l %t9)+ dbgvar "buckets", "ref ", %t9, 8, 7, 473+ dbgloc 474+ %t11 =l copy 0+ %t12 =l copy 24+ %t13 =l mul %t6, %t12+ call $memset(l %t8, w %t11, l %t13)+ %t10 =l copy 0+ dbgloc 475+ %t16 =l copy 8+ %t15 =l add %t1, %t16+ %t17 =l copy 0+ storel %t17, %t15+ %t14 =l copy 0+ ret 0+}++export function l $std__collections__hash_string(l %key) {+@start+ %t0 =l alloc8 8+ %t5 =l alloc8 8+ %t7 =l alloc8 8+ %t9 =l alloc8 8+ %t17 =l alloc8 8+ %t39 =l alloc8 8+ dbgloc 624+ storel %key, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "key", "ref u8", %t0, 8, 7, 624+ dbgloc 625+ %t1 =l copy 0+ %t2 =w cnel %key, %t1+ jnz %t2, @lbl443, @lbl444+@lbl444+ %t3 =l copy $__str26+ call $dprintf(w 2, l %t3)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl443+ dbgloc 628+ %t4 =l copy %key+ storel %t4, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "s", "ref u8", %t5, 8, 7, 628+ dbgloc 629+ %t6 =l copy 5381+ storel %t6, %t7+ call $__sx_dbg_keep(l %t7)+ dbgvar "h", "usize", %t7, 8, 5, 629+ dbgloc 630+ %t8 =l copy 0+ storel %t8, %t9+ call $__sx_dbg_keep(l %t9)+ dbgvar "i", "i64", %t9, 8, 5, 630+ dbgloc 631+ jmp @lbl445+@lbl445+ jmp @lbl446+@lbl446+ dbgloc 632+ %t12 =l loadl %t9+ %t11 =l add %t4, %t12+ %t13 =w loadub %t11+ %t10 =l extsw %t13+ %t14 =w copy %t10+ %t15 =w copy %t14+ %t16 =w extub %t15+ storew %t16, %t17+ call $__sx_dbg_keep(l %t17)+ dbgvar "c", "u8", %t17, 1, 7, 632+ dbgloc 633+ %t18 =w copy 0+ %t19 =w ceqw %t16, %t18+ jnz %t19, @lbl449, @lbl450+@lbl449+ dbgloc 634+ jmp @lbl448+@lbl450+ dbgloc 636+ %t20 =l loadl %t7+ %t21 =l copy 33+ %t22 =l mul %t20, %t21+ %t23 =l loadl %t7+ %t24 =l copy 33+ %t25 =l mul %t23, %t24+ %t26 =l copy 4294967296+ %t27 =l div %t25, %t26+ %t28 =l copy 4294967296+ %t29 =l mul %t27, %t28+ %t30 =l sub %t22, %t29+ storel %t30, %t7+ dbgloc 637+ %t31 =l loadl %t7+ %t32 =l loadl %t7+ %t33 =l copy 4294967296+ %t34 =l div %t32, %t33+ %t35 =l copy 4294967296+ %t36 =l mul %t34, %t35+ %t37 =l sub %t31, %t36+ storel %t37, %t7+ dbgloc 638+ %t38 =l extsw %t16+ storel %t38, %t39+ call $__sx_dbg_keep(l %t39)+ dbgvar "cu", "usize", %t39, 8, 5, 638+ dbgloc 639+ %t40 =l loadl %t7+ %t41 =l loadl %t7+ %t42 =l sub %t41, %t38+ %t43 =l copy 4294967296+ %t44 =l div %t42, %t43+ %t45 =l copy 4294967296+ %t46 =l mul %t44, %t45+ %t47 =l sub %t40, %t46+ storel %t47, %t7+ dbgloc 640+ %t48 =l loadl %t7+ %t49 =l add %t48, %t38+ storel %t49, %t7+ dbgloc 641+ %t50 =l loadl %t9+ %t51 =l add %t50, 1+ storel %t51, %t9+ jmp @lbl447+@lbl447+ jmp @lbl445+@lbl448+ dbgloc 643+ %t52 =l loadl %t7+ ret %t52+}++function w $std__collections__cstr_eq(l %a, l %b) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t3 =l alloc8 8+ %t11 =l alloc8 8+ %t19 =l alloc8 8+ dbgloc 650+ storel %a, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "a", "ref u8", %t0, 8, 7, 650+ storel %b, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "b", "ref u8", %t1, 8, 7, 650+ dbgloc 651+ %t2 =l copy 0+ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "i", "i64", %t3, 8, 5, 651+ dbgloc 652+ jmp @lbl452+@lbl452+ jmp @lbl453+@lbl453+ dbgloc 653+ %t6 =l loadl %t3+ %t5 =l add %a, %t6+ %t7 =w loadub %t5+ %t4 =l extsw %t7+ %t8 =w copy %t4+ %t9 =w copy %t8+ %t10 =w extub %t9+ storew %t10, %t11+ call $__sx_dbg_keep(l %t11)+ dbgvar "ca", "u8", %t11, 1, 7, 653+ dbgloc 654+ %t14 =l loadl %t3+ %t13 =l add %b, %t14+ %t15 =w loadub %t13+ %t12 =l extsw %t15+ %t16 =w copy %t12+ %t17 =w copy %t16+ %t18 =w extub %t17+ storew %t18, %t19+ call $__sx_dbg_keep(l %t19)+ dbgvar "cb", "u8", %t19, 1, 7, 654+ dbgloc 655+ %t20 =l extsw %t10+ %t21 =l extsw %t18+ %t22 =w cnew %t20, %t21+ jnz %t22, @lbl456, @lbl457+@lbl456+ dbgloc 656+ %t23 =l copy 0+ ret %t23+@lbl457+ dbgloc 658+ %t24 =w copy 0+ %t25 =w ceqw %t10, %t24+ jnz %t25, @lbl459, @lbl460+@lbl459+ dbgloc 659+ %t26 =l copy 1+ ret %t26+@lbl460+ dbgloc 661+ %t27 =l loadl %t3+ %t28 =l add %t27, 1+ storel %t28, %t3+ jmp @lbl454+@lbl454+ jmp @lbl452+@lbl455+ dbgloc 663+ %t29 =l copy 1+ ret %t29+}++export function l $std__collections__StringMap__get(l %__ret, l %map, l %key) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t3 =l alloc8 8+ %t8 =l alloc8 8+ %t10 =l alloc8 8+ %t14 =l alloc8 8+ %t16 =l alloc8 8+ %t21 =l alloc8 8+ %t25 =l alloc8 8+ %i =l alloc8 8+ %t36 =l alloc8 8+ %t40 =l alloc8 8+ %t43 =l alloc8 8+ %t46 =l alloc8 16+ %t53 =l alloc8 8+ %t59 =l alloc8 16+ %t63 =l alloc8 16+ dbgloc 715+ storel %map, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "map", "StringMap", %t0, 8, 5, 715+ storel %key, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "key", "ref u8", %t1, 8, 7, 715+ dbgloc 716+ %t2 =l loadl %map+ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "header", "ref ", %t3, 8, 7, 716+ dbgloc 717+ %t6 =l copy 16+ %t5 =l add %t2, %t6+ %t4 =l loadl %t5+ %t7 =l copy %t4+ storel %t7, %t8+ call $__sx_dbg_keep(l %t8)+ dbgvar "cap", "usize", %t8, 8, 5, 717+ dbgloc 718+ %t9 =l loadl %t2+ storel %t9, %t10+ call $__sx_dbg_keep(l %t10)+ dbgvar "buckets", "ref ", %t10, 8, 7, 718+ dbgloc 719+ %t13 =l copy 24+ %t12 =l add %t2, %t13+ %t11 =l loadl %t12+ storel %t11, %t14+ call $__sx_dbg_keep(l %t14)+ dbgvar "hash_fn", "ref ", %t14, 8, 7, 719+ dbgloc 720+ %t15 =l copy 0+ storel %t15, %t16+ call $__sx_dbg_keep(l %t16)+ dbgvar "key_holder", "usize", %t16, 8, 5, 720+ dbgloc 721+ %t18 =l copy %t16+ storel %key, %t18+ %t17 =l copy 0+ dbgloc 722+ %t20 =l loadl %t16+ %t19 =l call %t11(l %t20)+ storel %t19, %t21+ call $__sx_dbg_keep(l %t21)+ dbgvar "h", "usize", %t21, 8, 5, 722+ dbgloc 723+ %t22 =l div %t19, %t7+ %t23 =l mul %t22, %t7+ %t24 =l sub %t19, %t23+ storel %t24, %t25+ call $__sx_dbg_keep(l %t25)+ dbgvar "start", "usize", %t25, 8, 5, 723+ dbgloc 725+ %t26 =l copy 0+ storel %t26, %i+ jmp @lbl462+@lbl462+ %t27 =l loadl %i+ %t28 =w csltl %t27, %t7+ jnz %t28, @lbl463, @lbl465+@lbl463+ dbgloc 726+ %t29 =l loadl %i+ %t30 =l add %t24, %t29+ %t31 =l loadl %i+ %t32 =l add %t24, %t31+ %t33 =l div %t32, %t7+ %t34 =l mul %t33, %t7+ %t35 =l sub %t30, %t34+ storel %t35, %t36+ call $__sx_dbg_keep(l %t36)+ dbgvar "idx", "usize", %t36, 8, 5, 726+ dbgloc 727+ %t38 =l copy 24+ %t39 =l mul %t35, %t38+ %t37 =l add %t9, %t39+ storel %t37, %t40+ call $__sx_dbg_keep(l %t40)+ dbgvar "slot", "ref ", %t40, 8, 7, 727+ dbgloc 728+ %t41 =l loadl %t37+ %t42 =l copy %t41+ storel %t42, %t43+ call $__sx_dbg_keep(l %t43)+ dbgvar "state", "usize", %t43, 8, 5, 728+ dbgloc 729+ %t44 =l copy 0+ %t45 =w ceql %t42, %t44+ jnz %t45, @lbl466, @lbl467+@lbl466+ dbgloc 730+ storel 0, %t46+ call $memcpy(l %__ret, l %t46, l 16)+ ret %__ret+@lbl467+ dbgloc 732+ %t47 =l copy 1+ %t48 =w ceql %t42, %t47+ jnz %t48, @lbl469, @lbl470+@lbl469+ dbgloc 733+ %t51 =l copy 8+ %t50 =l add %t37, %t51+ %t49 =l loadl %t50+ %t52 =l copy %t49+ storel %t52, %t53+ call $__sx_dbg_keep(l %t53)+ dbgvar "existing_key", "ref u8", %t53, 8, 7, 733+ dbgloc 734+ %t54 =w call $std__collections__cstr_eq(l %t52, l %key)+ jnz %t54, @lbl472, @lbl473+@lbl472+ dbgloc 735+ %t57 =l copy 16+ %t56 =l add %t37, %t57+ %t55 =l loadl %t56+ %t58 =l copy %t55+ call $memset(l %t59, w 0, l 16)+ storel 1, %t59+ %t60 =l add %t59, 8+ storel %t58, %t60+ call $memcpy(l %__ret, l %t59, l 16)+ ret %__ret+@lbl473+ jmp @lbl470+@lbl470+ jmp @lbl464+@lbl464+ %t61 =l loadl %i+ %t62 =l add %t61, 1+ storel %t62, %i+ jmp @lbl462+@lbl465+ dbgloc 740+ storel 0, %t63+ call $memcpy(l %__ret, l %t63, l 16)+ ret %__ret+}++export function w $std__collections__StringMap__contains(l %map, l %key) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t3 =l alloc8 16+ %t4 =l alloc8 8+ dbgloc 744+ storel %map, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "map", "StringMap", %t0, 8, 5, 744+ storel %key, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "key", "ref u8", %t1, 8, 7, 744+ dbgloc 745+ %t2 =l call $std__collections__StringMap__get(l %t3, l %map, l %key)+ storel %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "result", "option[usize]", %t4, 8, 5, 745+ dbgloc 746+ %t5 =l loadl %t3+ %t6 =w cnel %t5, 0+ jnz %t6, @lbl475, @lbl476+@lbl475+ dbgloc 748+ %t7 =l copy 1+ ret %t7+@lbl476+ dbgloc 751+ %t8 =l copy 0+ ret %t8+@lbl477+ ret 0+}++export function l $std__collections__StringMap__len(l %map) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t7 =l alloc8 8+ dbgloc 793+ storel %map, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "map", "StringMap", %t0, 8, 5, 793+ dbgloc 794+ %t2 =l loadl %map+ storel %t2, %t1+ %t5 =l copy 0+ %t6 =w cnel %t1, 0+ jnz %t6, @lbl478, @lbl479+@lbl478+ %t4 =l call $malloc(l 8)+ call $memset(l %t4, w 0, l 8)+ call $memcpy(l %t4, l %t1, l 8)+ %t5 =l copy %t4+@lbl479+ storel %t5, %t7+ call $__sx_dbg_keep(l %t7)+ dbgvar "base", "Map", %t7, 8, 5, 794+ dbgloc 795+ %t8 =l call $std__collections__Map__len(l %t5)+ ret %t8+}++data $collections__IMAP_HEADER_SIZE = { l 16 }+export function l $std__collections__IndexMap__get(l %__ret, l %map, l %key) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t6 =l alloc8 16+ dbgloc 970+ storel %map, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "map", "IndexMap", %t0, 8, 5, 970+ storel %key, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "key", "ref u8", %t1, 8, 7, 970+ dbgloc 971+ %t3 =l loadl %map+ storel %t3, %t2+ %t5 =l call $std__collections__StringMap__get(l %t6, l %t2, l %key)+ call $memcpy(l %__ret, l %t6, l 16)+ ret %__ret+}++export function w $std__collections__IndexMap__contains(l %map, l %key) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ dbgloc 975+ storel %map, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "map", "IndexMap", %t0, 8, 5, 975+ storel %key, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "key", "ref u8", %t1, 8, 7, 975+ dbgloc 976+ %t3 =l loadl %map+ storel %t3, %t2+ %t5 =w call $std__collections__StringMap__contains(l %t2, l %key)+ ret %t5+}++export function l $std__collections__IndexMap__len(l %map) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 1011+ storel %map, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "map", "IndexMap", %t0, 8, 5, 1011+ dbgloc 1012+ %t2 =l loadl %map+ storel %t2, %t1+ %t4 =l call $std__collections__StringMap__len(l %t1)+ ret %t4+}++export function w $std__collections__IndexMap__each(l %map, l %cb) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t8 =l alloc8 8+ %t11 =l alloc8 8+ %t13 =l alloc8 8+ %i =l alloc8 8+ %t19 =l alloc8 16+ %t27 =l alloc8 8+ %t29 =l alloc8 16+ dbgloc 1016+ storel %map, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "map", "IndexMap", %t0, 8, 5, 1016+ storel %cb, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "cb", "fn(ref u8, usize) ", %t1, 8, 5, 1016+ dbgloc 1017+ %t3 =l loadl %map+ storel %t3, %t2+ %t6 =l copy 0+ %t7 =w cnel %t2, 0+ jnz %t7, @lbl480, @lbl481+@lbl480+ %t5 =l call $malloc(l 8)+ call $memset(l %t5, w 0, l 8)+ call $memcpy(l %t5, l %t2, l 8)+ %t6 =l copy %t5+@lbl481+ storel %t6, %t8+ call $__sx_dbg_keep(l %t8)+ dbgvar "inner", "StringMap", %t8, 8, 5, 1017+ dbgloc 1018+ %t10 =l add %map, 8+ %t9 =l loadl %t10+ storel %t9, %t11+ call $__sx_dbg_keep(l %t11)+ dbgvar "keys", "ref ", %t11, 8, 7, 1018+ dbgloc 1019+ %t12 =l call $std__collections__PtrList__len(l %t9)+ storel %t12, %t13+ call $__sx_dbg_keep(l %t13)+ dbgvar "n", "usize", %t13, 8, 5, 1019+ dbgloc 1020+ %t14 =l copy 0+ storel %t14, %i+ jmp @lbl482+@lbl482+ %t15 =l loadl %i+ %t16 =w csltl %t15, %t12+ jnz %t16, @lbl483, @lbl485+@lbl483+ dbgloc 1021+ %t17 =l loadl %i+ %t18 =l call $std__collections__PtrList__get(l %t19, l %t9, l %t17)+ %t20 =l loadl %t19+ %t21 =w cnel %t20, 0+ jnz %t21, @lbl486, @lbl487+@lbl486+ %t23 =l add %t19, 8+ %t22 =l loadl %t23+ dbgloc 1024+ %t24 =l copy 0+ %t25 =w cnel %t22, %t24+ jnz %t25, @lbl489, @lbl490+@lbl489+ dbgloc 1025+ %t26 =l copy %t22+ storel %t26, %t27+ call $__sx_dbg_keep(l %t27)+ dbgvar "k", "ref u8", %t27, 8, 7, 1025+ dbgloc 1026+ %t28 =l call $std__collections__StringMap__get(l %t29, l %t6, l %t26)+ %t30 =l loadl %t29+ %t31 =w cnel %t30, 0+ jnz %t31, @lbl492, @lbl493+@lbl492+ %t33 =l add %t29, 8+ %t32 =l loadl %t33+ dbgloc 1029+ %t34 =l call %cb(l %t26, l %t32)+ jmp @lbl494+@lbl493+ jmp @lbl494+@lbl494+ jmp @lbl490+@lbl490+ jmp @lbl488+@lbl487+ jmp @lbl488+@lbl488+ jmp @lbl484+@lbl484+ %t35 =l loadl %i+ %t36 =l add %t35, 1+ storel %t36, %i+ jmp @lbl482+@lbl485+ ret 0+}++export function l $std__collections__IndexMap__key_at(l %__ret, l %map, l %i) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t4 =l alloc8 8+ %t6 =l alloc8 8+ %t8 =l alloc8 8+ %j =l alloc8 8+ %t14 =l alloc8 16+ %t24 =l alloc8 16+ %t30 =l alloc8 16+ dbgloc 1040+ storel %map, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "map", "IndexMap", %t0, 8, 5, 1040+ storel %i, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "i", "usize", %t1, 8, 5, 1040+ dbgloc 1041+ %t3 =l add %map, 8+ %t2 =l loadl %t3+ storel %t2, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "keys", "ref ", %t4, 8, 7, 1041+ dbgloc 1042+ %t5 =l call $std__collections__PtrList__len(l %t2)+ storel %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "n", "usize", %t6, 8, 5, 1042+ dbgloc 1043+ %t7 =l copy 0+ storel %t7, %t8+ call $__sx_dbg_keep(l %t8)+ dbgvar "live", "usize", %t8, 8, 5, 1043+ dbgloc 1044+ %t9 =l copy 0+ storel %t9, %j+ jmp @lbl495+@lbl495+ %t10 =l loadl %j+ %t11 =w csltl %t10, %t5+ jnz %t11, @lbl496, @lbl498+@lbl496+ dbgloc 1045+ %t12 =l loadl %j+ %t13 =l call $std__collections__PtrList__get(l %t14, l %t2, l %t12)+ %t15 =l loadl %t14+ %t16 =w cnel %t15, 0+ jnz %t16, @lbl499, @lbl500+@lbl499+ %t18 =l add %t14, 8+ %t17 =l loadl %t18+ dbgloc 1048+ %t19 =l copy 0+ %t20 =w cnel %t17, %t19+ jnz %t20, @lbl502, @lbl503+@lbl502+ dbgloc 1049+ %t21 =l loadl %t8+ %t22 =w ceql %t21, %i+ jnz %t22, @lbl505, @lbl506+@lbl505+ dbgloc 1050+ %t23 =l copy %t17+ call $memset(l %t24, w 0, l 16)+ storel 1, %t24+ %t25 =l add %t24, 8+ storel %t23, %t25+ call $memcpy(l %__ret, l %t24, l 16)+ ret %__ret+@lbl506+ dbgloc 1052+ %t26 =l loadl %t8+ %t27 =l add %t26, 1+ storel %t27, %t8+ jmp @lbl503+@lbl503+ jmp @lbl501+@lbl500+ jmp @lbl501+@lbl501+ jmp @lbl497+@lbl497+ %t28 =l loadl %j+ %t29 =l add %t28, 1+ storel %t29, %j+ jmp @lbl495+@lbl498+ dbgloc 1057+ storel 0, %t30+ call $memcpy(l %__ret, l %t30, l 16)+ ret %__ret+}++export function l $std__collections__RawIndexMap__new(l %initial_cap) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t5 =l alloc8 8+ %t7 =l alloc8 8+ %t11 =l alloc4 1+ %t20 =l alloc8 16+ %t21 =l alloc8 8+ dbgloc 1079+ storel %initial_cap, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "initial_cap", "usize", %t0, 8, 5, 1079+ dbgloc 1080+ call $memset(l %t1, w 0, l 8)+ %t3 =l copy 0+ %t4 =w cnel %t1, 0+ jnz %t4, @lbl508, @lbl509+@lbl508+ %t2 =l call $malloc(l 0)+ call $memset(l %t2, w 0, l 0)+ call $memcpy(l %t2, l %t1, l 0)+ %t3 =l copy %t2+@lbl509+ storel %t3, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "heap", "allocators.HeapAllocator", %t5, 8, 5, 1080+ dbgloc 1081+ %t6 =l call $std__collections__IndexMap__new__GENMONO__allocators__HeapAllocator(l %t3, l %initial_cap)++ storel %t6, %t7+ call $__sx_dbg_keep(l %t7)+ dbgvar "inner", "IndexMap", %t7, 8, 5, 1081+ dbgloc 1082+ %t8 =l loadl %t6+ %t9 =l copy 0+ %t10 =w ceql %t8, %t9+ storew %t10, %t11+ jnz %t10, @lbl514, @lbl513+@lbl513+ %t13 =l add %t6, 8+ %t12 =l loadl %t13+ %t14 =l copy 0+ %t15 =w ceql %t12, %t14+ storew %t15, %t11+ jmp @lbl514+@lbl514+ %t16 =w loadw %t11+ jnz %t16, @lbl510, @lbl511+@lbl510+ dbgloc 1083+ %t17 =l copy 0+ ret %t17+@lbl511+ dbgloc 1085+ %t18 =l copy 16+ %t19 =l call $std__allocators__HeapAllocator__alloc(l %t20, l %t3, l %t18)+ storel %t20, %t21+ call $__sx_dbg_keep(l %t21)+ dbgvar "raw_opt", "option[ref ]", %t21, 8, 5, 1085+ dbgloc 1086+ %t22 =l loadl %t20+ %t23 =w cnel %t22, 0+ jnz %t23, @lbl515, @lbl516+@lbl515+ %t25 =l add %t20, 8+ %t24 =l loadl %t25+ dbgloc 1088+ %t27 =l loadl %t6+ storel %t27, %t24+ %t26 =l copy 0+ dbgloc 1089+ %t30 =l copy 8+ %t29 =l add %t24, %t30+ %t32 =l add %t6, 8+ %t31 =l loadl %t32+ storel %t31, %t29+ %t28 =l copy 0+ dbgloc 1090+ ret %t24+@lbl516+ dbgloc 1093+ %t33 =w call $std__collections__IndexMap__free__GENMONO__allocators__HeapAllocator(l %t3, l %t6)++ dbgloc 1094+ %t34 =l copy 0+ ret %t34+@lbl517+ ret 0+}++export function w $std__collections__RawIndexMap__set(l %map, l %key, l %value) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t3 =l alloc8 8+ %t7 =l alloc8 8+ %t8 =l alloc8 16+ %t20 =l alloc8 8+ dbgloc 1099+ storel %map, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "map", "ref ", %t0, 8, 7, 1099+ storel %key, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "key", "ref u8", %t1, 8, 7, 1099+ storel %value, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "value", "usize", %t2, 8, 5, 1099+ dbgloc 1100+ call $memset(l %t3, w 0, l 8)+ %t5 =l copy 0+ %t6 =w cnel %t3, 0+ jnz %t6, @lbl518, @lbl519+@lbl518+ %t4 =l call $malloc(l 0)+ call $memset(l %t4, w 0, l 0)+ call $memcpy(l %t4, l %t3, l 0)+ %t5 =l copy %t4+@lbl519+ storel %t5, %t7+ call $__sx_dbg_keep(l %t7)+ dbgvar "heap", "allocators.HeapAllocator", %t7, 8, 5, 1100+ dbgloc 1101+ %t9 =l loadl %map+ %t10 =l copy %t9+ storel %t10, %t8+ %t14 =l copy 8+ %t13 =l add %map, %t14+ %t12 =l loadl %t13+ %t15 =l copy %t12+ %t16 =l add %t8, 8+ storel %t15, %t16+ %t18 =l copy 0+ %t19 =w cnel %t8, 0+ jnz %t19, @lbl520, @lbl521+@lbl520+ %t17 =l call $malloc(l 16)+ call $memset(l %t17, w 0, l 16)+ call $memcpy(l %t17, l %t8, l 16)+ %t18 =l copy %t17+@lbl521+ storel %t18, %t20+ call $__sx_dbg_keep(l %t20)+ dbgvar "inner", "IndexMap", %t20, 8, 5, 1101+ dbgloc 1105+ %t21 =w call $std__collections__IndexMap__set__GENMONO__allocators__HeapAllocator(l %t5, l %t18, l %key, l %value)++ ret 0+}++export function l $std__collections__RawIndexMap__get(l %__ret, l %map, l %key) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 16+ %t14 =l alloc8 8+ %t16 =l alloc8 16+ dbgloc 1108+ storel %map, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "map", "ref ", %t0, 8, 7, 1108+ storel %key, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "key", "ref u8", %t1, 8, 7, 1108+ dbgloc 1109+ %t3 =l loadl %map+ %t4 =l copy %t3+ storel %t4, %t2+ %t8 =l copy 8+ %t7 =l add %map, %t8+ %t6 =l loadl %t7+ %t9 =l copy %t6+ %t10 =l add %t2, 8+ storel %t9, %t10+ %t12 =l copy 0+ %t13 =w cnel %t2, 0+ jnz %t13, @lbl522, @lbl523+@lbl522+ %t11 =l call $malloc(l 16)+ call $memset(l %t11, w 0, l 16)+ call $memcpy(l %t11, l %t2, l 16)+ %t12 =l copy %t11+@lbl523+ storel %t12, %t14+ call $__sx_dbg_keep(l %t14)+ dbgvar "inner", "IndexMap", %t14, 8, 5, 1109+ dbgloc 1113+ %t15 =l call $std__collections__IndexMap__get(l %t16, l %t12, l %key)+ call $memcpy(l %__ret, l %t16, l 16)+ ret %__ret+}++export function w $std__collections__RawIndexMap__contains(l %map, l %key) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 16+ %t14 =l alloc8 8+ dbgloc 1116+ storel %map, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "map", "ref ", %t0, 8, 7, 1116+ storel %key, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "key", "ref u8", %t1, 8, 7, 1116+ dbgloc 1117+ %t3 =l loadl %map+ %t4 =l copy %t3+ storel %t4, %t2+ %t8 =l copy 8+ %t7 =l add %map, %t8+ %t6 =l loadl %t7+ %t9 =l copy %t6+ %t10 =l add %t2, 8+ storel %t9, %t10+ %t12 =l copy 0+ %t13 =w cnel %t2, 0+ jnz %t13, @lbl524, @lbl525+@lbl524+ %t11 =l call $malloc(l 16)+ call $memset(l %t11, w 0, l 16)+ call $memcpy(l %t11, l %t2, l 16)+ %t12 =l copy %t11+@lbl525+ storel %t12, %t14+ call $__sx_dbg_keep(l %t14)+ dbgvar "inner", "IndexMap", %t14, 8, 5, 1117+ dbgloc 1121+ %t15 =w call $std__collections__IndexMap__contains(l %t12, l %key)+ ret %t15+}++export function l $std__collections__RawIndexMap__delete(l %map, l %key) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t6 =l alloc8 8+ %t7 =l alloc8 16+ %t19 =l alloc8 8+ dbgloc 1124+ storel %map, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "map", "ref ", %t0, 8, 7, 1124+ storel %key, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "key", "ref u8", %t1, 8, 7, 1124+ dbgloc 1125+ call $memset(l %t2, w 0, l 8)+ %t4 =l copy 0+ %t5 =w cnel %t2, 0+ jnz %t5, @lbl526, @lbl527+@lbl526+ %t3 =l call $malloc(l 0)+ call $memset(l %t3, w 0, l 0)+ call $memcpy(l %t3, l %t2, l 0)+ %t4 =l copy %t3+@lbl527+ storel %t4, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "heap", "allocators.HeapAllocator", %t6, 8, 5, 1125+ dbgloc 1126+ %t8 =l loadl %map+ %t9 =l copy %t8+ storel %t9, %t7+ %t13 =l copy 8+ %t12 =l add %map, %t13+ %t11 =l loadl %t12+ %t14 =l copy %t11+ %t15 =l add %t7, 8+ storel %t14, %t15+ %t17 =l copy 0+ %t18 =w cnel %t7, 0+ jnz %t18, @lbl528, @lbl529+@lbl528+ %t16 =l call $malloc(l 16)+ call $memset(l %t16, w 0, l 16)+ call $memcpy(l %t16, l %t7, l 16)+ %t17 =l copy %t16+@lbl529+ storel %t17, %t19+ call $__sx_dbg_keep(l %t19)+ dbgvar "inner", "IndexMap", %t19, 8, 5, 1126+ dbgloc 1130+ %t20 =l call $std__collections__IndexMap__delete__GENMONO__allocators__HeapAllocator(l %t4, l %t17, l %key)++ ret %t20+}++export function l $std__collections__RawIndexMap__len(l %map) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 16+ %t13 =l alloc8 8+ dbgloc 1133+ storel %map, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "map", "ref ", %t0, 8, 7, 1133+ dbgloc 1134+ %t2 =l loadl %map+ %t3 =l copy %t2+ storel %t3, %t1+ %t7 =l copy 8+ %t6 =l add %map, %t7+ %t5 =l loadl %t6+ %t8 =l copy %t5+ %t9 =l add %t1, 8+ storel %t8, %t9+ %t11 =l copy 0+ %t12 =w cnel %t1, 0+ jnz %t12, @lbl530, @lbl531+@lbl530+ %t10 =l call $malloc(l 16)+ call $memset(l %t10, w 0, l 16)+ call $memcpy(l %t10, l %t1, l 16)+ %t11 =l copy %t10+@lbl531+ storel %t11, %t13+ call $__sx_dbg_keep(l %t13)+ dbgvar "inner", "IndexMap", %t13, 8, 5, 1134+ dbgloc 1138+ %t14 =l call $std__collections__IndexMap__len(l %t11)+ ret %t14+}++export function w $std__collections__RawIndexMap__each(l %map, l %cb) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 16+ %t14 =l alloc8 8+ dbgloc 1141+ storel %map, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "map", "ref ", %t0, 8, 7, 1141+ storel %cb, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "cb", "fn(ref u8, usize) ", %t1, 8, 5, 1141+ dbgloc 1142+ %t3 =l loadl %map+ %t4 =l copy %t3+ storel %t4, %t2+ %t8 =l copy 8+ %t7 =l add %map, %t8+ %t6 =l loadl %t7+ %t9 =l copy %t6+ %t10 =l add %t2, 8+ storel %t9, %t10+ %t12 =l copy 0+ %t13 =w cnel %t2, 0+ jnz %t13, @lbl532, @lbl533+@lbl532+ %t11 =l call $malloc(l 16)+ call $memset(l %t11, w 0, l 16)+ call $memcpy(l %t11, l %t2, l 16)+ %t12 =l copy %t11+@lbl533+ storel %t12, %t14+ call $__sx_dbg_keep(l %t14)+ dbgvar "inner", "IndexMap", %t14, 8, 5, 1142+ dbgloc 1146+ %t15 =w call $std__collections__IndexMap__each(l %t12, l %cb)+ ret 0+}++export function l $std__collections__RawIndexMap__key_at(l %__ret, l %map, l %i) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 16+ %t14 =l alloc8 8+ %t16 =l alloc8 16+ dbgloc 1149+ storel %map, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "map", "ref ", %t0, 8, 7, 1149+ storel %i, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "i", "usize", %t1, 8, 5, 1149+ dbgloc 1150+ %t3 =l loadl %map+ %t4 =l copy %t3+ storel %t4, %t2+ %t8 =l copy 8+ %t7 =l add %map, %t8+ %t6 =l loadl %t7+ %t9 =l copy %t6+ %t10 =l add %t2, 8+ storel %t9, %t10+ %t12 =l copy 0+ %t13 =w cnel %t2, 0+ jnz %t13, @lbl534, @lbl535+@lbl534+ %t11 =l call $malloc(l 16)+ call $memset(l %t11, w 0, l 16)+ call $memcpy(l %t11, l %t2, l 16)+ %t12 =l copy %t11+@lbl535+ storel %t12, %t14+ call $__sx_dbg_keep(l %t14)+ dbgvar "inner", "IndexMap", %t14, 8, 5, 1150+ dbgloc 1154+ %t15 =l call $std__collections__IndexMap__key_at(l %t16, l %t12, l %i)+ call $memcpy(l %__ret, l %t16, l 16)+ ret %__ret+}++export function w $std__collections__RawIndexMap__free(l %map) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t5 =l alloc8 8+ %t6 =l alloc8 16+ %t18 =l alloc8 8+ dbgloc 1157+ storel %map, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "map", "ref ", %t0, 8, 7, 1157+ dbgloc 1158+ call $memset(l %t1, w 0, l 8)+ %t3 =l copy 0+ %t4 =w cnel %t1, 0+ jnz %t4, @lbl536, @lbl537+@lbl536+ %t2 =l call $malloc(l 0)+ call $memset(l %t2, w 0, l 0)+ call $memcpy(l %t2, l %t1, l 0)+ %t3 =l copy %t2+@lbl537+ storel %t3, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "heap", "allocators.HeapAllocator", %t5, 8, 5, 1158+ dbgloc 1159+ %t7 =l loadl %map+ %t8 =l copy %t7+ storel %t8, %t6+ %t12 =l copy 8+ %t11 =l add %map, %t12+ %t10 =l loadl %t11+ %t13 =l copy %t10+ %t14 =l add %t6, 8+ storel %t13, %t14+ %t16 =l copy 0+ %t17 =w cnel %t6, 0+ jnz %t17, @lbl538, @lbl539+@lbl538+ %t15 =l call $malloc(l 16)+ call $memset(l %t15, w 0, l 16)+ call $memcpy(l %t15, l %t6, l 16)+ %t16 =l copy %t15+@lbl539+ storel %t16, %t18+ call $__sx_dbg_keep(l %t18)+ dbgvar "inner", "IndexMap", %t18, 8, 5, 1159+ dbgloc 1163+ %t19 =w call $std__collections__IndexMap__free__GENMONO__allocators__HeapAllocator(l %t3, l %t16)++ dbgloc 1164+ %t20 =w call $std__allocators__HeapAllocator__free(l %t3, l %map)+ ret 0+}++export function l $std__collections__LongMap__len(l %map) {+@start+ %t0 =l alloc8 8+ dbgloc 1343+ storel %map, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "map", "ref ", %t0, 8, 7, 1343+ dbgloc 1344+ %t3 =l copy 24+ %t2 =l add %map, %t3+ %t1 =l loadl %t2+ %t4 =l copy %t1+ ret %t4+}++export function l $std__collections__LongMap__cap(l %map) {+@start+ %t0 =l alloc8 8+ dbgloc 1348+ storel %map, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "map", "ref ", %t0, 8, 7, 1348+ dbgloc 1349+ %t3 =l copy 16+ %t2 =l add %map, %t3+ %t1 =l loadl %t2+ %t4 =l copy %t1+ ret %t4+}++function l $std__collections__LongMap__lookup(l %map, l %key) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t3 =l alloc8 8+ %t8 =l alloc8 8+ %t11 =l alloc8 8+ %t15 =l alloc8 8+ %t18 =l alloc8 8+ %i =l alloc8 8+ %t25 =l alloc8 8+ %t31 =l alloc8 8+ dbgloc 1353+ storel %map, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "map", "ref ", %t0, 8, 7, 1353+ storel %key, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "key", "i64", %t1, 8, 5, 1353+ dbgloc 1354+ %t2 =l loadl %map+ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "keys", "ref ", %t3, 8, 7, 1354+ dbgloc 1355+ %t6 =l copy 16+ %t5 =l add %map, %t6+ %t4 =l loadl %t5+ %t7 =l copy %t4+ storel %t7, %t8+ call $__sx_dbg_keep(l %t8)+ dbgvar "cap", "i64", %t8, 8, 5, 1355+ dbgloc 1356+ %t9 =l copy 1+ %t10 =l sub %t7, %t9+ storel %t10, %t11+ call $__sx_dbg_keep(l %t11)+ dbgvar "mask", "i64", %t11, 8, 5, 1356+ dbgloc 1357+ %t12 =l copy %key+ %t13 =l copy 11400714819323198485+ %t14 =l mul %t12, %t13+ storel %t14, %t15+ call $__sx_dbg_keep(l %t15)+ dbgvar "h", "u64", %t15, 8, 7, 1357+ dbgloc 1358+ %t16 =l copy %t14+ %t17 =l and %t16, %t10+ storel %t17, %t18+ call $__sx_dbg_keep(l %t18)+ dbgvar "start", "i64", %t18, 8, 5, 1358+ dbgloc 1359+ %t19 =l copy 0+ storel %t19, %i+ jmp @lbl540+@lbl540+ %t20 =l loadl %i+ %t21 =w csltl %t20, %t7+ jnz %t21, @lbl541, @lbl543+@lbl541+ dbgloc 1360+ %t22 =l loadl %i+ %t23 =l add %t17, %t22+ %t24 =l and %t23, %t10+ storel %t24, %t25+ call $__sx_dbg_keep(l %t25)+ dbgvar "idx", "i64", %t25, 8, 5, 1360+ dbgloc 1361+ %t28 =l copy 8+ %t29 =l mul %t24, %t28+ %t27 =l add %t2, %t29+ %t26 =l loadl %t27+ %t30 =l copy %t26+ storel %t30, %t31+ call $__sx_dbg_keep(l %t31)+ dbgvar "k", "i64", %t31, 8, 5, 1361+ dbgloc 1362+ %t32 =w ceql %t30, %key+ jnz %t32, @lbl544, @lbl545+@lbl544+ dbgloc 1363+ ret %t24+@lbl545+ dbgloc 1365+ %t33 =l copy 1+ %t34 =l neg %t33+ %t35 =w ceql %t30, %t34+ jnz %t35, @lbl547, @lbl548+@lbl547+ dbgloc 1366+ %t36 =l copy 0+ %t37 =l copy 1+ %t38 =l sub %t36, %t37+ ret %t38+@lbl548+ jmp @lbl542+@lbl542+ %t39 =l loadl %i+ %t40 =l add %t39, 1+ storel %t40, %i+ jmp @lbl540+@lbl543+ dbgloc 1369+ %t41 =l copy 0+ %t42 =l copy 1+ %t43 =l sub %t41, %t42+ ret %t43+}++export function l $std__collections__LongMap__get_or(l %map, l %key, l %fallback) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t4 =l alloc8 8+ %t10 =l alloc8 8+ dbgloc 1459+ storel %map, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "map", "ref ", %t0, 8, 7, 1459+ storel %key, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "key", "i64", %t1, 8, 5, 1459+ storel %fallback, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "fallback", "i64", %t2, 8, 5, 1459+ dbgloc 1460+ %t3 =l call $std__collections__LongMap__lookup(l %map, l %key)+ storel %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "idx", "i64", %t4, 8, 5, 1460+ dbgloc 1461+ %t5 =l copy 0+ %t6 =w csltl %t3, %t5+ jnz %t6, @lbl550, @lbl551+@lbl550+ dbgloc 1462+ ret %fallback+@lbl551+ dbgloc 1464+ %t9 =l copy 8+ %t8 =l add %map, %t9+ %t7 =l loadl %t8+ storel %t7, %t10+ call $__sx_dbg_keep(l %t10)+ dbgvar "vals", "ref ", %t10, 8, 7, 1464+ dbgloc 1465+ %t13 =l copy 8+ %t14 =l mul %t3, %t13+ %t12 =l add %t7, %t14+ %t11 =l loadl %t12+ %t15 =l copy %t11+ ret %t15+}++export function l $std__collections__LongMap__get(l %__ret, l %map, l %key) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t3 =l alloc8 8+ %t6 =l alloc8 16+ %t10 =l alloc8 8+ %t16 =l alloc8 16+ dbgloc 1469+ storel %map, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "map", "ref ", %t0, 8, 7, 1469+ storel %key, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "key", "i64", %t1, 8, 5, 1469+ dbgloc 1470+ %t2 =l call $std__collections__LongMap__lookup(l %map, l %key)+ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "idx", "i64", %t3, 8, 5, 1470+ dbgloc 1471+ %t4 =l copy 0+ %t5 =w csltl %t2, %t4+ jnz %t5, @lbl553, @lbl554+@lbl553+ dbgloc 1472+ storel 0, %t6+ call $memcpy(l %__ret, l %t6, l 16)+ ret %__ret+@lbl554+ dbgloc 1474+ %t9 =l copy 8+ %t8 =l add %map, %t9+ %t7 =l loadl %t8+ storel %t7, %t10+ call $__sx_dbg_keep(l %t10)+ dbgvar "vals", "ref ", %t10, 8, 7, 1474+ dbgloc 1475+ %t13 =l copy 8+ %t14 =l mul %t2, %t13+ %t12 =l add %t7, %t14+ %t11 =l loadl %t12+ %t15 =l copy %t11+ call $memset(l %t16, w 0, l 16)+ storel 1, %t16+ %t17 =l add %t16, 8+ storel %t15, %t17+ call $memcpy(l %__ret, l %t16, l 16)+ ret %__ret+}++dbgfile "spectrelib/string/owned.sx"+export function l $ostr__new() {+@start+ %t2 =l alloc8 8+ %t5 =l alloc8 8+ dbgloc 80+ dbgloc 81+ %t1 =l copy 24+ %t0 =l call $malloc(l %t1)+ storel %t0, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "s", "ref ", %t2, 8, 7, 81+ dbgloc 82+ %t4 =l copy 1+ %t3 =l call $malloc(l %t4)+ storel %t3, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "buf", "ref ", %t5, 8, 7, 82+ dbgloc 83+ %t7 =l copy 0+ storeb %t7, %t3+ %t6 =l copy 0+ dbgloc 84+ storel %t3, %t0+ %t8 =l copy 0+ dbgloc 85+ %t11 =l copy 8+ %t10 =l add %t0, %t11+ %t12 =l copy 0+ storel %t12, %t10+ %t9 =l copy 0+ dbgloc 86+ %t15 =l copy 16+ %t14 =l add %t0, %t15+ %t16 =l copy 1+ storel %t16, %t14+ %t13 =l copy 0+ dbgloc 87+ %t17 =l copy %t0+ ret %t17+}++export function w $ostr__free(l %s) {+@start+ %t0 =l alloc8 8+ %t3 =l alloc8 8+ %t6 =l alloc8 8+ dbgloc 105+ storel %s, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "s", "str.String", %t0, 8, 5, 105+ dbgloc 106+ %t2 =l copy %s+ %t1 =l loadl %t2+ storel %t1, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "ptr", "ref ", %t3, 8, 7, 106+ dbgloc 107+ call $free(l %t1)+ %t4 =l copy 0+ dbgloc 108+ %t5 =l copy %s+ storel %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "header", "ref ", %t6, 8, 7, 108+ dbgloc 109+ %t8 =l loadl %t6+ call $free(l %t8)+ %t7 =l copy 0+ ret 0+}++export function l $ostr__len(l %s) {+@start+ %t0 =l alloc8 8+ dbgloc 113+ storel %s, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "s", "str.String", %t0, 8, 5, 113+ dbgloc 114+ %t3 =l copy 8+ %t2 =l add %s, %t3+ %t1 =l loadl %t2+ %t4 =l copy %t1+ ret %t4+}++export function l $ostr__as_cstr(l %s) {+@start+ %t0 =l alloc8 8+ dbgloc 118+ storel %s, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "s", "str.String", %t0, 8, 5, 118+ dbgloc 119+ %t2 =l copy %s+ %t1 =l loadl %t2+ %t3 =l copy %t1+ ret %t3+}++function w $ostr__ensure_cap(l %ptr, l %needed) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t6 =l alloc8 8+ %t10 =l alloc8 8+ %t12 =l alloc8 8+ %t14 =l alloc8 8+ dbgloc 123+ storel %ptr, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "ptr", "ref ", %t0, 8, 7, 123+ storel %needed, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "needed", "i64", %t1, 8, 5, 123+ dbgloc 124+ %t4 =l copy 16+ %t3 =l add %ptr, %t4+ %t2 =l loadl %t3+ %t5 =l copy %t2+ storel %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "cap", "i64", %t6, 8, 5, 124+ dbgloc 125+ %t7 =w cslel %needed, %t5+ jnz %t7, @lbl556, @lbl557+@lbl556+ dbgloc 126+ ret 0+@lbl557+ dbgloc 128+ %t8 =l copy 2+ %t9 =l mul %needed, %t8+ storel %t9, %t10+ call $__sx_dbg_keep(l %t10)+ dbgvar "new_cap", "i64", %t10, 8, 5, 128+ dbgloc 129+ %t11 =l loadl %ptr+ storel %t11, %t12+ call $__sx_dbg_keep(l %t12)+ dbgvar "old_ptr", "ref ", %t12, 8, 7, 129+ dbgloc 130+ %t13 =l call $realloc(l %t11, l %t9)+ storel %t13, %t14+ call $__sx_dbg_keep(l %t14)+ dbgvar "new_ptr", "ref ", %t14, 8, 7, 130+ dbgloc 131+ storel %t13, %ptr+ %t15 =l copy 0+ dbgloc 132+ %t18 =l copy 16+ %t17 =l add %ptr, %t18+ storel %t9, %t17+ %t16 =l copy 0+ ret 0+}++export function w $ostr__push_cstr(l %s, l %other) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t6 =l alloc8 8+ %t8 =l alloc8 8+ %t10 =l alloc8 8+ %t16 =l alloc8 8+ dbgloc 136+ storel %s, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "s", "str.String", %t0, 8, 5, 136+ storel %other, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "other", "ref u8", %t1, 8, 7, 136+ dbgloc 137+ %t4 =l copy 8+ %t3 =l add %s, %t4+ %t2 =l loadl %t3+ %t5 =l copy %t2+ storel %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "l", "i64", %t6, 8, 5, 137+ dbgloc 138+ %t7 =l call $rt__strlen(l %other)+ storel %t7, %t8+ call $__sx_dbg_keep(l %t8)+ dbgvar "add_len", "i64", %t8, 8, 5, 138+ dbgloc 139+ %t9 =l add %t5, %t7+ storel %t9, %t10+ call $__sx_dbg_keep(l %t10)+ dbgvar "new_len", "i64", %t10, 8, 5, 139+ dbgloc 141+ %t11 =l copy %s+ %t12 =l copy 1+ %t13 =l add %t9, %t12+ %t14 =w call $ostr__ensure_cap(l %t11, l %t13)+ dbgloc 143+ %t15 =l loadl %s+ storel %t15, %t16+ call $__sx_dbg_keep(l %t16)+ dbgvar "ptr", "ref ", %t16, 8, 7, 143+ dbgloc 145+ %t18 =l add %t15, %t5+ call $memcpy(l %t18, l %other, l %t7)+ %t17 =l copy 0+ dbgloc 146+ %t20 =l add %t15, %t9+ %t21 =l copy 0+ storeb %t21, %t20+ %t19 =l copy 0+ dbgloc 147+ %t24 =l copy 8+ %t23 =l add %s, %t24+ storel %t9, %t23+ %t22 =l copy 0+ ret 0+}++export function w $ostr__push(l %s, l %other) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t4 =l alloc8 8+ %t10 =l alloc8 8+ %t16 =l alloc8 8+ %t18 =l alloc8 8+ %t25 =l alloc8 8+ dbgloc 151+ storel %s, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "s", "str.String", %t0, 8, 5, 151+ storel %other, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "other", "str.String", %t1, 8, 5, 151+ dbgloc 152+ %t3 =l copy %other+ %t2 =l loadl %t3+ storel %t2, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "other_ptr", "ref ", %t4, 8, 7, 152+ dbgloc 153+ %t7 =l copy %other+ %t8 =l copy 8+ %t6 =l add %t7, %t8+ %t5 =l loadl %t6+ %t9 =l copy %t5+ storel %t9, %t10+ call $__sx_dbg_keep(l %t10)+ dbgvar "other_len", "i64", %t10, 8, 5, 153+ dbgloc 155+ %t13 =l copy %s+ %t14 =l copy 8+ %t12 =l add %t13, %t14+ %t11 =l loadl %t12+ %t15 =l copy %t11+ storel %t15, %t16+ call $__sx_dbg_keep(l %t16)+ dbgvar "l", "i64", %t16, 8, 5, 155+ dbgloc 156+ %t17 =l add %t15, %t9+ storel %t17, %t18+ call $__sx_dbg_keep(l %t18)+ dbgvar "new_len", "i64", %t18, 8, 5, 156+ dbgloc 158+ %t19 =l copy %s+ %t20 =l copy 1+ %t21 =l add %t17, %t20+ %t22 =w call $ostr__ensure_cap(l %t19, l %t21)+ dbgloc 160+ %t24 =l copy %s+ %t23 =l loadl %t24+ storel %t23, %t25+ call $__sx_dbg_keep(l %t25)+ dbgvar "ptr", "ref ", %t25, 8, 7, 160+ dbgloc 162+ %t27 =l add %t23, %t15+ call $memcpy(l %t27, l %t2, l %t9)+ %t26 =l copy 0+ dbgloc 163+ %t29 =l add %t23, %t17+ %t30 =l copy 0+ storeb %t30, %t29+ %t28 =l copy 0+ dbgloc 164+ %t33 =l copy %s+ %t34 =l copy 8+ %t32 =l add %t33, %t34+ storel %t17, %t32+ %t31 =l copy 0+ ret 0+}++export function l $ostr__clone(l %s) {+@start+ %t0 =l alloc8 8+ %t6 =l alloc8 8+ %t9 =l alloc8 8+ %t13 =l alloc8 8+ %t20 =l alloc8 8+ dbgloc 168+ storel %s, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "s", "str.String", %t0, 8, 5, 168+ dbgloc 169+ %t3 =l copy %s+ %t4 =l copy 8+ %t2 =l add %t3, %t4+ %t1 =l loadl %t2+ %t5 =l copy %t1+ storel %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "l", "i64", %t6, 8, 5, 169+ dbgloc 170+ %t8 =l copy %s+ %t7 =l loadl %t8+ storel %t7, %t9+ call $__sx_dbg_keep(l %t9)+ dbgvar "ptr", "ref ", %t9, 8, 7, 170+ dbgloc 171+ %t11 =l copy 1+ %t12 =l add %t5, %t11+ %t10 =l call $malloc(l %t12)+ storel %t10, %t13+ call $__sx_dbg_keep(l %t13)+ dbgvar "buf", "ref ", %t13, 8, 7, 171+ dbgloc 173+ call $memcpy(l %t10, l %t7, l %t5)+ %t14 =l copy 0+ dbgloc 174+ %t16 =l add %t10, %t5+ %t17 =l copy 0+ storeb %t17, %t16+ %t15 =l copy 0+ dbgloc 176+ %t19 =l copy 24+ %t18 =l call $malloc(l %t19)+ storel %t18, %t20+ call $__sx_dbg_keep(l %t20)+ dbgvar "out", "ref ", %t20, 8, 7, 176+ dbgloc 178+ storel %t10, %t18+ %t21 =l copy 0+ dbgloc 179+ %t24 =l copy 8+ %t23 =l add %t18, %t24+ storel %t5, %t23+ %t22 =l copy 0+ dbgloc 180+ %t27 =l copy 16+ %t26 =l add %t18, %t27+ %t28 =l copy 1+ %t29 =l add %t5, %t28+ storel %t29, %t26+ %t25 =l copy 0+ dbgloc 182+ %t30 =l copy %t18+ ret %t30+}++export function w $ostr__reverse(l %s) {+@start+ %t0 =l alloc8 8+ %t3 =l alloc8 8+ %t9 =l alloc8 8+ %t11 =l alloc8 8+ %t14 =l alloc8 8+ %t25 =l alloc8 8+ %t32 =l alloc8 8+ dbgloc 186+ storel %s, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "s", "str.String", %t0, 8, 5, 186+ dbgloc 187+ %t2 =l copy %s+ %t1 =l loadl %t2+ storel %t1, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "ptr", "ref ", %t3, 8, 7, 187+ dbgloc 188+ %t6 =l copy %s+ %t7 =l copy 8+ %t5 =l add %t6, %t7+ %t4 =l loadl %t5+ %t8 =l copy %t4+ storel %t8, %t9+ call $__sx_dbg_keep(l %t9)+ dbgvar "l", "i64", %t9, 8, 5, 188+ dbgloc 190+ %t10 =l copy 0+ storel %t10, %t11+ call $__sx_dbg_keep(l %t11)+ dbgvar "i", "i64", %t11, 8, 5, 190+ dbgloc 191+ %t12 =l copy 1+ %t13 =l sub %t8, %t12+ storel %t13, %t14+ call $__sx_dbg_keep(l %t14)+ dbgvar "j", "i64", %t14, 8, 5, 191+ dbgloc 193+ jmp @lbl559+@lbl559+ jmp @lbl560+@lbl560+ dbgloc 194+ %t15 =l loadl %t11+ %t16 =l loadl %t14+ %t18 =w csltl %t15, %t16+ %t17 =w ceqw %t18, 0+ jnz %t17, @lbl563, @lbl564+@lbl563+ dbgloc 195+ jmp @lbl562+@lbl564+ dbgloc 197+ %t21 =l loadl %t11+ %t20 =l add %t1, %t21+ %t22 =w loadub %t20+ %t19 =l extsw %t22+ %t23 =w copy %t19+ %t24 =w extub %t23+ storew %t24, %t25+ call $__sx_dbg_keep(l %t25)+ dbgvar "a", "u8", %t25, 1, 7, 197+ dbgloc 198+ %t28 =l loadl %t14+ %t27 =l add %t1, %t28+ %t29 =w loadub %t27+ %t26 =l extsw %t29+ %t30 =w copy %t26+ %t31 =w extub %t30+ storew %t31, %t32+ call $__sx_dbg_keep(l %t32)+ dbgvar "b", "u8", %t32, 1, 7, 198+ dbgloc 200+ %t35 =l loadl %t11+ %t34 =l add %t1, %t35+ storeb %t31, %t34+ %t33 =l copy 0+ dbgloc 201+ %t38 =l loadl %t14+ %t37 =l add %t1, %t38+ storeb %t24, %t37+ %t36 =l copy 0+ dbgloc 203+ %t39 =l loadl %t11+ %t40 =l add %t39, 1+ storel %t40, %t11+ dbgloc 204+ %t41 =l loadl %t14+ %t42 =l sub %t41, 1+ storel %t42, %t14+ jmp @lbl561+@lbl561+ jmp @lbl559+@lbl562+ ret 0+}++export function l $ostr__concat(l %a, l %b) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t3 =l alloc8 8+ dbgloc 209+ storel %a, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "a", "str.String", %t0, 8, 5, 209+ storel %b, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "b", "str.String", %t1, 8, 5, 209+ dbgloc 210+ %t2 =l call $ostr__clone(l %a)+ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "out", "str.String", %t3, 8, 5, 210+ dbgloc 211+ %t4 =w call $ostr__push(l %t2, l %b)+ dbgloc 212+ ret %t2+}++export function w $ostr__reserve(l %s, l %cap) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 216+ storel %s, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "s", "str.String", %t0, 8, 5, 216+ storel %cap, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "cap", "i64", %t1, 8, 5, 216+ dbgloc 217+ %t2 =l copy %s+ %t3 =w call $ostr__ensure_cap(l %t2, l %cap)+ ret 0+}++export function w $ostr__clear(l %s) {+@start+ %t0 =l alloc8 8+ %t3 =l alloc8 8+ dbgloc 221+ storel %s, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "s", "str.String", %t0, 8, 5, 221+ dbgloc 222+ %t2 =l copy %s+ %t1 =l loadl %t2+ storel %t1, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "ptr", "ref ", %t3, 8, 7, 222+ dbgloc 223+ %t5 =l copy 0+ storeb %t5, %t1+ %t4 =l copy 0+ dbgloc 224+ %t8 =l copy %s+ %t9 =l copy 8+ %t7 =l add %t8, %t9+ %t10 =l copy 0+ storel %t10, %t7+ %t6 =l copy 0+ ret 0+}++export function w $ostr__push_char(l %s, w %c) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t7 =l alloc8 8+ %t10 =l alloc8 8+ %t17 =l alloc8 8+ dbgloc 228+ storel %s, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "s", "str.String", %t0, 8, 5, 228+ storew %c, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "c", "u8", %t1, 1, 7, 228+ dbgloc 229+ %t4 =l copy %s+ %t5 =l copy 8+ %t3 =l add %t4, %t5+ %t2 =l loadl %t3+ %t6 =l copy %t2+ storel %t6, %t7+ call $__sx_dbg_keep(l %t7)+ dbgvar "l", "i64", %t7, 8, 5, 229+ dbgloc 230+ %t8 =l copy 1+ %t9 =l add %t6, %t8+ storel %t9, %t10+ call $__sx_dbg_keep(l %t10)+ dbgvar "new_len", "i64", %t10, 8, 5, 230+ dbgloc 232+ %t11 =l copy %s+ %t12 =l copy 1+ %t13 =l add %t9, %t12+ %t14 =w call $ostr__ensure_cap(l %t11, l %t13)+ dbgloc 234+ %t16 =l copy %s+ %t15 =l loadl %t16+ storel %t15, %t17+ call $__sx_dbg_keep(l %t17)+ dbgvar "ptr", "ref ", %t17, 8, 7, 234+ dbgloc 235+ %t19 =l add %t15, %t6+ storeb %c, %t19+ %t18 =l copy 0+ dbgloc 236+ %t21 =l add %t15, %t9+ %t22 =l copy 0+ storeb %t22, %t21+ %t20 =l copy 0+ dbgloc 237+ %t25 =l copy %s+ %t26 =l copy 8+ %t24 =l add %t25, %t26+ storel %t9, %t24+ %t23 =l copy 0+ ret 0+}++export function l $ostr__get(l %__ret, l %s, l %i) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t14 =l alloc8 8+ %t17 =l alloc8 16+ %t20 =l alloc8 8+ %t28 =l alloc8 16+ dbgloc 241+ storel %s, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "s", "str.String", %t0, 8, 5, 241+ storel %i, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "i", "i64", %t1, 8, 5, 241+ dbgloc 242+ %t2 =l copy 0+ %t3 =w cnel %s, %t2+ jnz %t3, @lbl566, @lbl567+@lbl567+ %t4 =l copy $__str33+ call $dprintf(w 2, l %t4)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl566+ %t5 =l copy 0+ %t7 =w csltl %i, %t5+ %t6 =w ceqw %t7, 0+ jnz %t6, @lbl568, @lbl569+@lbl569+ %t8 =l copy $__str34+ call $dprintf(w 2, l %t8)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl568+ dbgloc 246+ %t11 =l copy %s+ %t12 =l copy 8+ %t10 =l add %t11, %t12+ %t9 =l loadl %t10+ %t13 =l copy %t9+ storel %t13, %t14+ call $__sx_dbg_keep(l %t14)+ dbgvar "l", "i64", %t14, 8, 5, 246+ dbgloc 247+ %t16 =w csltl %i, %t13+ %t15 =w ceqw %t16, 0+ jnz %t15, @lbl570, @lbl571+@lbl570+ dbgloc 248+ storel 0, %t17+ call $memcpy(l %__ret, l %t17, l 16)+ ret %__ret+@lbl571+ dbgloc 250+ %t19 =l copy %s+ %t18 =l loadl %t19+ storel %t18, %t20+ call $__sx_dbg_keep(l %t20)+ dbgvar "ptr", "ref ", %t20, 8, 7, 250+ dbgloc 251+ %t21 =l copy 0+ %t23 =w csltl %i, %t21+ %t22 =w ceqw %t23, 0+ jnz %t22, @lbl573, @lbl574+@lbl574+ %t24 =l copy $__str35+ call $dprintf(w 2, l %t24)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl573+ dbgloc 254+ %t26 =l add %t18, %i+ %t27 =w loadub %t26+ %t25 =l extsw %t27+ call $memset(l %t28, w 0, l 16)+ storel 1, %t28+ %t29 =l add %t28, 8+ storew %t25, %t29+ call $memcpy(l %__ret, l %t28, l 16)+ ret %__ret+}++export function w $ostr__set(l %s, l %i, w %c) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t8 =l alloc8 8+ %t13 =l alloc8 8+ dbgloc 258+ storel %s, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "s", "str.String", %t0, 8, 5, 258+ storel %i, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "i", "i64", %t1, 8, 5, 258+ storew %c, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "c", "u8", %t2, 1, 7, 258+ dbgloc 259+ %t5 =l copy %s+ %t6 =l copy 8+ %t4 =l add %t5, %t6+ %t3 =l loadl %t4+ %t7 =l copy %t3+ storel %t7, %t8+ call $__sx_dbg_keep(l %t8)+ dbgvar "l", "i64", %t8, 8, 5, 259+ dbgloc 260+ %t10 =w csltl %i, %t7+ %t9 =w ceqw %t10, 0+ jnz %t9, @lbl575, @lbl576+@lbl575+ dbgloc 261+ ret 0+@lbl576+ dbgloc 263+ %t12 =l copy %s+ %t11 =l loadl %t12+ storel %t11, %t13+ call $__sx_dbg_keep(l %t13)+ dbgvar "ptr", "ref ", %t13, 8, 7, 263+ dbgloc 264+ %t15 =l add %t11, %i+ storeb %c, %t15+ %t14 =l copy 0+ ret 0+}++export function l $ostr__slice(l %s, l %start, l %end) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t8 =l alloc8 8+ %t9 =l alloc8 8+ %t10 =l alloc8 8+ %t20 =l alloc8 8+ %t27 =l alloc8 8+ %t32 =l alloc8 8+ %t43 =l alloc8 8+ dbgloc 268+ storel %s, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "s", "str.String", %t0, 8, 5, 268+ storel %start, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "start", "i64", %t1, 8, 5, 268+ storel %end, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "end", "i64", %t2, 8, 5, 268+ dbgloc 269+ %t5 =l copy %s+ %t6 =l copy 8+ %t4 =l add %t5, %t6+ %t3 =l loadl %t4+ %t7 =l copy %t3+ storel %t7, %t8+ call $__sx_dbg_keep(l %t8)+ dbgvar "l", "i64", %t8, 8, 5, 269+ dbgloc 271+ storel %start, %t9+ call $__sx_dbg_keep(l %t9)+ dbgvar "real_start", "i64", %t9, 8, 5, 271+ dbgloc 272+ storel %end, %t10+ call $__sx_dbg_keep(l %t10)+ dbgvar "real_end", "i64", %t10, 8, 5, 272+ dbgloc 273+ %t11 =l loadl %t9+ %t12 =l copy 0+ %t13 =w csltl %t11, %t12+ jnz %t13, @lbl578, @lbl579+@lbl578+ dbgloc 274+ %t14 =l copy 0+ storel %t14, %t9+ jmp @lbl579+@lbl579+ dbgloc 276+ %t15 =l loadl %t10+ %t16 =w csgtl %t15, %t7+ jnz %t16, @lbl581, @lbl582+@lbl581+ dbgloc 277+ storel %t7, %t10+ jmp @lbl582+@lbl582+ dbgloc 280+ %t17 =l loadl %t10+ %t18 =l loadl %t9+ %t19 =l sub %t17, %t18+ storel %t19, %t20+ call $__sx_dbg_keep(l %t20)+ dbgvar "slice_len", "i64", %t20, 8, 5, 280+ dbgloc 281+ %t21 =l loadl %t20+ %t22 =l copy 0+ %t23 =w csltl %t21, %t22+ jnz %t23, @lbl584, @lbl585+@lbl584+ dbgloc 282+ %t24 =l copy 0+ storel %t24, %t20+ jmp @lbl585+@lbl585+ dbgloc 285+ %t26 =l copy %s+ %t25 =l loadl %t26+ storel %t25, %t27+ call $__sx_dbg_keep(l %t27)+ dbgvar "src_ptr", "ref ", %t27, 8, 7, 285+ dbgloc 286+ %t29 =l loadl %t20+ %t30 =l copy 1+ %t31 =l add %t29, %t30+ %t28 =l call $malloc(l %t31)+ storel %t28, %t32+ call $__sx_dbg_keep(l %t32)+ dbgvar "buf", "ref ", %t32, 8, 7, 286+ dbgloc 287+ %t35 =l loadl %t9+ %t34 =l add %t25, %t35+ %t36 =l loadl %t20+ call $memcpy(l %t28, l %t34, l %t36)+ %t33 =l copy 0+ dbgloc 288+ %t39 =l loadl %t20+ %t38 =l add %t28, %t39+ %t40 =l copy 0+ storeb %t40, %t38+ %t37 =l copy 0+ dbgloc 290+ %t42 =l copy 24+ %t41 =l call $malloc(l %t42)+ storel %t41, %t43+ call $__sx_dbg_keep(l %t43)+ dbgvar "out", "ref ", %t43, 8, 7, 290+ dbgloc 291+ storel %t28, %t41+ %t44 =l copy 0+ dbgloc 292+ %t47 =l copy 8+ %t46 =l add %t41, %t47+ %t48 =l loadl %t20+ storel %t48, %t46+ %t45 =l copy 0+ dbgloc 293+ %t51 =l copy 16+ %t50 =l add %t41, %t51+ %t52 =l loadl %t20+ %t53 =l copy 1+ %t54 =l add %t52, %t53+ storel %t54, %t50+ %t49 =l copy 0+ dbgloc 294+ %t55 =l copy %t41+ ret %t55+}++export function l $ostr__find(l %__ret, l %s, l %sub) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t13 =l alloc8 8+ %t19 =l alloc8 8+ %t23 =l alloc8 16+ %t26 =l alloc8 16+ %t29 =l alloc8 8+ %t32 =l alloc8 8+ %t34 =l alloc8 8+ %t36 =l alloc8 8+ %t38 =l alloc8 8+ %t40 =l alloc8 8+ %t57 =l alloc8 8+ %t65 =l alloc8 8+ %t76 =l alloc8 16+ %t83 =l alloc8 16+ dbgloc 333+ storel %s, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "s", "str.String", %t0, 8, 5, 333+ storel %sub, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "sub", "str.String", %t1, 8, 5, 333+ dbgloc 334+ %t2 =l copy 0+ %t3 =w cnel %s, %t2+ jnz %t3, @lbl587, @lbl588+@lbl588+ %t4 =l copy $__str36+ call $dprintf(w 2, l %t4)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl587+ %t5 =l copy 0+ %t6 =w cnel %sub, %t5+ jnz %t6, @lbl589, @lbl590+@lbl590+ %t7 =l copy $__str37+ call $dprintf(w 2, l %t7)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl589+ dbgloc 339+ %t10 =l copy %s+ %t11 =l copy 8+ %t9 =l add %t10, %t11+ %t8 =l loadl %t9+ %t12 =l copy %t8+ storel %t12, %t13+ call $__sx_dbg_keep(l %t13)+ dbgvar "sl", "i64", %t13, 8, 5, 339+ dbgloc 340+ %t16 =l copy %sub+ %t17 =l copy 8+ %t15 =l add %t16, %t17+ %t14 =l loadl %t15+ %t18 =l copy %t14+ storel %t18, %t19+ call $__sx_dbg_keep(l %t19)+ dbgvar "subl", "i64", %t19, 8, 5, 340+ dbgloc 342+ %t20 =l copy 0+ %t21 =w ceql %t18, %t20+ jnz %t21, @lbl591, @lbl592+@lbl591+ dbgloc 343+ %t22 =l copy 0+ call $memset(l %t23, w 0, l 16)+ storel 1, %t23+ %t24 =l add %t23, 8+ storel %t22, %t24+ call $memcpy(l %__ret, l %t23, l 16)+ ret %__ret+@lbl592+ dbgloc 345+ %t25 =w csgtl %t18, %t12+ jnz %t25, @lbl594, @lbl595+@lbl594+ dbgloc 346+ storel 0, %t26+ call $memcpy(l %__ret, l %t26, l 16)+ ret %__ret+@lbl595+ dbgloc 349+ %t28 =l copy %s+ %t27 =l loadl %t28+ storel %t27, %t29+ call $__sx_dbg_keep(l %t29)+ dbgvar "sp", "ref ", %t29, 8, 7, 349+ dbgloc 350+ %t31 =l copy %sub+ %t30 =l loadl %t31+ storel %t30, %t32+ call $__sx_dbg_keep(l %t32)+ dbgvar "subp", "ref ", %t32, 8, 7, 350+ dbgloc 352+ %t33 =l sub %t12, %t18+ storel %t33, %t34+ call $__sx_dbg_keep(l %t34)+ dbgvar "limit", "i64", %t34, 8, 5, 352+ dbgloc 353+ %t35 =l copy 0+ storel %t35, %t36+ call $__sx_dbg_keep(l %t36)+ dbgvar "i", "i64", %t36, 8, 5, 353+ dbgloc 354+ %t37 =l copy 0+ storel %t37, %t38+ call $__sx_dbg_keep(l %t38)+ dbgvar "j", "i64", %t38, 8, 5, 354+ dbgloc 355+ %t39 =l copy 0+ storel %t39, %t40+ call $__sx_dbg_keep(l %t40)+ dbgvar "matched", "i64", %t40, 8, 5, 355+ dbgloc 356+ jmp @lbl597+@lbl597+ jmp @lbl598+@lbl598+ dbgloc 357+ %t41 =l loadl %t36+ %t42 =w csgtl %t41, %t33+ jnz %t42, @lbl601, @lbl602+@lbl601+ dbgloc 358+ jmp @lbl600+@lbl602+ dbgloc 360+ %t43 =l copy 0+ storel %t43, %t38+ dbgloc 361+ %t44 =l copy 1+ storel %t44, %t40+ dbgloc 362+ jmp @lbl604+@lbl604+ jmp @lbl605+@lbl605+ dbgloc 363+ %t45 =l loadl %t38+ %t47 =w csltl %t45, %t18+ %t46 =w ceqw %t47, 0+ jnz %t46, @lbl608, @lbl609+@lbl608+ dbgloc 364+ jmp @lbl607+@lbl609+ dbgloc 366+ %t50 =l loadl %t36+ %t51 =l loadl %t38+ %t52 =l add %t50, %t51+ %t49 =l add %t27, %t52+ %t53 =w loadub %t49+ %t48 =l extsw %t53+ %t54 =w copy %t48+ %t55 =w copy %t54+ %t56 =w extub %t55+ storew %t56, %t57+ call $__sx_dbg_keep(l %t57)+ dbgvar "a", "u8", %t57, 1, 7, 366+ dbgloc 367+ %t60 =l loadl %t38+ %t59 =l add %t30, %t60+ %t61 =w loadub %t59+ %t58 =l extsw %t61+ %t62 =w copy %t58+ %t63 =w copy %t62+ %t64 =w extub %t63+ storew %t64, %t65+ call $__sx_dbg_keep(l %t65)+ dbgvar "b", "u8", %t65, 1, 7, 367+ dbgloc 368+ %t66 =l extsw %t56+ %t67 =l extsw %t64+ %t68 =w cnew %t66, %t67+ jnz %t68, @lbl611, @lbl612+@lbl611+ dbgloc 369+ %t69 =l copy 0+ storel %t69, %t40+ dbgloc 370+ jmp @lbl607+@lbl612+ dbgloc 372+ %t70 =l loadl %t38+ %t71 =l add %t70, 1+ storel %t71, %t38+ jmp @lbl606+@lbl606+ jmp @lbl604+@lbl607+ dbgloc 374+ %t72 =l loadl %t40+ %t73 =l copy 0+ %t74 =w cnel %t72, %t73+ jnz %t74, @lbl614, @lbl615+@lbl614+ dbgloc 375+ %t75 =l loadl %t36+ call $memset(l %t76, w 0, l 16)+ storel 1, %t76+ %t77 =l add %t76, 8+ storel %t75, %t77+ call $memcpy(l %__ret, l %t76, l 16)+ ret %__ret+@lbl615+ dbgloc 377+ %t78 =l loadl %t36+ %t79 =l add %t78, 1+ storel %t79, %t36+ jmp @lbl599+@lbl599+ jmp @lbl597+@lbl600+ dbgloc 380+ %t80 =l copy 0+ %t81 =w cnel %s, %t80+ jnz %t81, @lbl617, @lbl618+@lbl618+ %t82 =l copy $__str38+ call $dprintf(w 2, l %t82)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl617+ dbgloc 384+ storel 0, %t83+ call $memcpy(l %__ret, l %t83, l 16)+ ret %__ret+}++export function w $ostr__contains(l %s, l %sub) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t9 =l alloc8 16+ %t10 =l alloc8 8+ %t12 =l alloc8 8+ dbgloc 388+ storel %s, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "s", "str.String", %t0, 8, 5, 388+ storel %sub, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "sub", "str.String", %t1, 8, 5, 388+ dbgloc 389+ %t2 =l copy 0+ %t3 =w cnel %s, %t2+ jnz %t3, @lbl619, @lbl620+@lbl620+ %t4 =l copy $__str39+ call $dprintf(w 2, l %t4)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl619+ %t5 =l copy 0+ %t6 =w cnel %sub, %t5+ jnz %t6, @lbl621, @lbl622+@lbl622+ %t7 =l copy $__str40+ call $dprintf(w 2, l %t7)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl621+ dbgloc 394+ %t8 =l call $ostr__find(l %t9, l %s, l %sub)+ storel %t9, %t10+ call $__sx_dbg_keep(l %t10)+ dbgvar "result", "option[i64]", %t10, 8, 5, 394+ dbgloc 395+ %t11 =l copy 0+ storel %t11, %t12+ call $__sx_dbg_keep(l %t12)+ dbgvar "found", "i64", %t12, 8, 5, 395+ dbgloc 396+ %t13 =l loadl %t9+ %t14 =w cnel %t13, 0+ jnz %t14, @lbl623, @lbl624+@lbl623+ dbgloc 398+ %t15 =l copy 1+ storel %t15, %t12+ jmp @lbl625+@lbl624+ dbgloc 401+ %t16 =l copy 0+ storel %t16, %t12+ jmp @lbl625+@lbl625+ dbgloc 405+ %t17 =l copy 0+ %t18 =w cnel %s, %t17+ jnz %t18, @lbl626, @lbl627+@lbl627+ %t19 =l copy $__str41+ call $dprintf(w 2, l %t19)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl626+ dbgloc 409+ %t20 =l loadl %t12+ %t21 =l copy 0+ %t22 =w cnel %t20, %t21+ ret %t22+}++export function w $ostr__to_upper(l %s) {+@start+ %t0 =l alloc8 8+ %t9 =l alloc8 8+ %t12 =l alloc8 8+ %t14 =l alloc8 8+ %t24 =l alloc8 8+ dbgloc 413+ storel %s, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "s", "str.String", %t0, 8, 5, 413+ dbgloc 414+ %t1 =l copy 0+ %t2 =w cnel %s, %t1+ jnz %t2, @lbl628, @lbl629+@lbl629+ %t3 =l copy $__str42+ call $dprintf(w 2, l %t3)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl628+ dbgloc 417+ %t6 =l copy %s+ %t7 =l copy 8+ %t5 =l add %t6, %t7+ %t4 =l loadl %t5+ %t8 =l copy %t4+ storel %t8, %t9+ call $__sx_dbg_keep(l %t9)+ dbgvar "l", "i64", %t9, 8, 5, 417+ dbgloc 418+ %t11 =l copy %s+ %t10 =l loadl %t11+ storel %t10, %t12+ call $__sx_dbg_keep(l %t12)+ dbgvar "ptr", "ref ", %t12, 8, 7, 418+ dbgloc 419+ %t13 =l copy 0+ storel %t13, %t14+ call $__sx_dbg_keep(l %t14)+ dbgvar "i", "i64", %t14, 8, 5, 419+ dbgloc 420+ jmp @lbl630+@lbl630+ jmp @lbl631+@lbl631+ dbgloc 421+ %t15 =l loadl %t14+ %t17 =w csltl %t15, %t8+ %t16 =w ceqw %t17, 0+ jnz %t16, @lbl634, @lbl635+@lbl634+ dbgloc 422+ jmp @lbl633+@lbl635+ dbgloc 424+ %t20 =l loadl %t14+ %t19 =l add %t10, %t20+ %t21 =w loadub %t19+ %t18 =l extsw %t21+ %t22 =w copy %t18+ %t23 =w extub %t22+ storew %t23, %t24+ call $__sx_dbg_keep(l %t24)+ dbgvar "c", "u8", %t24, 1, 7, 424+ dbgloc 425+ %t25 =w copy 97+ %t27 =w csltw %t23, %t25+ %t26 =w ceqw %t27, 0+ jnz %t26, @lbl637, @lbl638+@lbl637+ dbgloc 426+ %t28 =w copy 122+ %t29 =w cslew %t23, %t28+ jnz %t29, @lbl640, @lbl641+@lbl640+ dbgloc 427+ %t32 =l loadl %t14+ %t31 =l add %t10, %t32+ %t33 =l extsw %t23+ %t34 =l copy 32+ %t36 =l extsw %t33+ %t35 =l sub %t36, %t34+ storeb %t35, %t31+ %t30 =l copy 0+ jmp @lbl641+@lbl641+ jmp @lbl638+@lbl638+ dbgloc 430+ %t37 =l loadl %t14+ %t38 =l add %t37, 1+ storel %t38, %t14+ jmp @lbl632+@lbl632+ jmp @lbl630+@lbl633+ ret 0+}++export function w $ostr__to_lower(l %s) {+@start+ %t0 =l alloc8 8+ %t9 =l alloc8 8+ %t12 =l alloc8 8+ %t14 =l alloc8 8+ %t24 =l alloc8 8+ dbgloc 435+ storel %s, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "s", "str.String", %t0, 8, 5, 435+ dbgloc 436+ %t1 =l copy 0+ %t2 =w cnel %s, %t1+ jnz %t2, @lbl643, @lbl644+@lbl644+ %t3 =l copy $__str43+ call $dprintf(w 2, l %t3)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl643+ dbgloc 439+ %t6 =l copy %s+ %t7 =l copy 8+ %t5 =l add %t6, %t7+ %t4 =l loadl %t5+ %t8 =l copy %t4+ storel %t8, %t9+ call $__sx_dbg_keep(l %t9)+ dbgvar "l", "i64", %t9, 8, 5, 439+ dbgloc 440+ %t11 =l copy %s+ %t10 =l loadl %t11+ storel %t10, %t12+ call $__sx_dbg_keep(l %t12)+ dbgvar "ptr", "ref ", %t12, 8, 7, 440+ dbgloc 441+ %t13 =l copy 0+ storel %t13, %t14+ call $__sx_dbg_keep(l %t14)+ dbgvar "i", "i64", %t14, 8, 5, 441+ dbgloc 442+ jmp @lbl645+@lbl645+ jmp @lbl646+@lbl646+ dbgloc 443+ %t15 =l loadl %t14+ %t17 =w csltl %t15, %t8+ %t16 =w ceqw %t17, 0+ jnz %t16, @lbl649, @lbl650+@lbl649+ dbgloc 444+ jmp @lbl648+@lbl650+ dbgloc 446+ %t20 =l loadl %t14+ %t19 =l add %t10, %t20+ %t21 =w loadub %t19+ %t18 =l extsw %t21+ %t22 =w copy %t18+ %t23 =w extub %t22+ storew %t23, %t24+ call $__sx_dbg_keep(l %t24)+ dbgvar "c", "u8", %t24, 1, 7, 446+ dbgloc 447+ %t25 =w copy 65+ %t27 =w csltw %t23, %t25+ %t26 =w ceqw %t27, 0+ jnz %t26, @lbl652, @lbl653+@lbl652+ dbgloc 448+ %t28 =w copy 90+ %t29 =w cslew %t23, %t28+ jnz %t29, @lbl655, @lbl656+@lbl655+ dbgloc 449+ %t32 =l loadl %t14+ %t31 =l add %t10, %t32+ %t33 =l extsw %t23+ %t34 =l copy 32+ %t36 =l extsw %t33+ %t35 =l add %t36, %t34+ storeb %t35, %t31+ %t30 =l copy 0+ jmp @lbl656+@lbl656+ jmp @lbl653+@lbl653+ dbgloc 452+ %t37 =l loadl %t14+ %t38 =l add %t37, 1+ storel %t38, %t14+ jmp @lbl647+@lbl647+ jmp @lbl645+@lbl648+ ret 0+}++export function w $ostr__trim_left(l %s) {+@start+ %t0 =l alloc8 8+ %t9 =l alloc8 8+ %t12 =l alloc8 8+ %t14 =l alloc8 8+ %t25 =l alloc8 8+ %t41 =l alloc8 8+ dbgloc 457+ storel %s, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "s", "str.String", %t0, 8, 5, 457+ dbgloc 458+ %t1 =l copy 0+ %t2 =w cnel %s, %t1+ jnz %t2, @lbl658, @lbl659+@lbl659+ %t3 =l copy $__str44+ call $dprintf(w 2, l %t3)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl658+ dbgloc 461+ %t6 =l copy %s+ %t7 =l copy 8+ %t5 =l add %t6, %t7+ %t4 =l loadl %t5+ %t8 =l copy %t4+ storel %t8, %t9+ call $__sx_dbg_keep(l %t9)+ dbgvar "l", "i64", %t9, 8, 5, 461+ dbgloc 462+ %t11 =l copy %s+ %t10 =l loadl %t11+ storel %t10, %t12+ call $__sx_dbg_keep(l %t12)+ dbgvar "ptr", "ref ", %t12, 8, 7, 462+ dbgloc 463+ %t13 =l copy 0+ storel %t13, %t14+ call $__sx_dbg_keep(l %t14)+ dbgvar "start", "i64", %t14, 8, 5, 463+ dbgloc 464+ jmp @lbl660+@lbl660+ jmp @lbl661+@lbl661+ dbgloc 465+ %t15 =l loadl %t14+ %t17 =w csltl %t15, %t8+ %t16 =w ceqw %t17, 0+ jnz %t16, @lbl664, @lbl665+@lbl664+ dbgloc 466+ jmp @lbl663+@lbl665+ dbgloc 468+ %t20 =l loadl %t14+ %t19 =l add %t10, %t20+ %t21 =w loadub %t19+ %t18 =l extsw %t21+ %t22 =w copy %t18+ %t23 =w copy %t22+ %t24 =w extub %t23+ storew %t24, %t25+ call $__sx_dbg_keep(l %t25)+ dbgvar "c", "u8", %t25, 1, 7, 468+ dbgloc 469+ %t26 =w copy 32+ %t27 =w cnew %t24, %t26+ jnz %t27, @lbl667, @lbl668+@lbl667+ dbgloc 470+ %t28 =w copy 9+ %t29 =w cnew %t24, %t28+ jnz %t29, @lbl670, @lbl671+@lbl670+ dbgloc 471+ %t30 =w copy 10+ %t31 =w cnew %t24, %t30+ jnz %t31, @lbl673, @lbl674+@lbl673+ dbgloc 472+ %t32 =w copy 13+ %t33 =w cnew %t24, %t32+ jnz %t33, @lbl676, @lbl677+@lbl676+ dbgloc 473+ jmp @lbl663+@lbl677+ jmp @lbl674+@lbl674+ jmp @lbl671+@lbl671+ jmp @lbl668+@lbl668+ dbgloc 478+ %t34 =l loadl %t14+ %t35 =l add %t34, 1+ storel %t35, %t14+ jmp @lbl662+@lbl662+ jmp @lbl660+@lbl663+ dbgloc 480+ %t36 =l loadl %t14+ %t37 =l copy 0+ %t38 =w ceql %t36, %t37+ jnz %t38, @lbl679, @lbl680+@lbl679+ dbgloc 481+ ret 0+@lbl680+ dbgloc 483+ %t39 =l loadl %t14+ %t40 =l sub %t8, %t39+ storel %t40, %t41+ call $__sx_dbg_keep(l %t41)+ dbgvar "new_len", "i64", %t41, 8, 5, 483+ dbgloc 484+ %t44 =l loadl %t14+ %t43 =l add %t10, %t44+ call $memcpy(l %t10, l %t43, l %t40)+ %t42 =l copy 0+ dbgloc 485+ %t46 =l add %t10, %t40+ %t47 =l copy 0+ storeb %t47, %t46+ %t45 =l copy 0+ dbgloc 486+ %t50 =l copy %s+ %t51 =l copy 8+ %t49 =l add %t50, %t51+ storel %t40, %t49+ %t48 =l copy 0+ ret 0+}++export function w $ostr__trim_right(l %s) {+@start+ %t0 =l alloc8 8+ %t9 =l alloc8 8+ %t12 =l alloc8 8+ %t24 =l alloc8 8+ dbgloc 490+ storel %s, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "s", "str.String", %t0, 8, 5, 490+ dbgloc 491+ %t1 =l copy 0+ %t2 =w cnel %s, %t1+ jnz %t2, @lbl682, @lbl683+@lbl683+ %t3 =l copy $__str45+ call $dprintf(w 2, l %t3)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl682+ dbgloc 494+ %t6 =l copy %s+ %t7 =l copy 8+ %t5 =l add %t6, %t7+ %t4 =l loadl %t5+ %t8 =l copy %t4+ storel %t8, %t9+ call $__sx_dbg_keep(l %t9)+ dbgvar "l", "i64", %t9, 8, 5, 494+ dbgloc 495+ %t11 =l copy %s+ %t10 =l loadl %t11+ storel %t10, %t12+ call $__sx_dbg_keep(l %t12)+ dbgvar "ptr", "ref ", %t12, 8, 7, 495+ dbgloc 496+ jmp @lbl684+@lbl684+ jmp @lbl685+@lbl685+ dbgloc 497+ %t13 =l loadl %t9+ %t14 =l copy 0+ %t15 =w cslel %t13, %t14+ jnz %t15, @lbl688, @lbl689+@lbl688+ dbgloc 498+ jmp @lbl687+@lbl689+ dbgloc 500+ %t18 =l loadl %t9+ %t19 =l copy 1+ %t20 =l sub %t18, %t19+ %t17 =l add %t10, %t20+ %t21 =w loadub %t17+ %t16 =l extsw %t21+ %t22 =w copy %t16+ %t23 =w extub %t22+ storew %t23, %t24+ call $__sx_dbg_keep(l %t24)+ dbgvar "c", "u8", %t24, 1, 7, 500+ dbgloc 501+ %t25 =w copy 32+ %t26 =w cnew %t23, %t25+ jnz %t26, @lbl691, @lbl692+@lbl691+ dbgloc 502+ %t27 =w copy 9+ %t28 =w cnew %t23, %t27+ jnz %t28, @lbl694, @lbl695+@lbl694+ dbgloc 503+ %t29 =w copy 10+ %t30 =w cnew %t23, %t29+ jnz %t30, @lbl697, @lbl698+@lbl697+ dbgloc 504+ %t31 =w copy 13+ %t32 =w cnew %t23, %t31+ jnz %t32, @lbl700, @lbl701+@lbl700+ dbgloc 505+ jmp @lbl687+@lbl701+ jmp @lbl698+@lbl698+ jmp @lbl695+@lbl695+ jmp @lbl692+@lbl692+ dbgloc 510+ %t33 =l loadl %t9+ %t34 =l sub %t33, 1+ storel %t34, %t9+ jmp @lbl686+@lbl686+ jmp @lbl684+@lbl687+ dbgloc 512+ %t37 =l loadl %t9+ %t36 =l add %t10, %t37+ %t38 =l copy 0+ storeb %t38, %t36+ %t35 =l copy 0+ dbgloc 513+ %t41 =l copy %s+ %t42 =l copy 8+ %t40 =l add %t41, %t42+ %t43 =l loadl %t9+ storel %t43, %t40+ %t39 =l copy 0+ ret 0+}++export function w $ostr__trim(l %s) {+@start+ %t0 =l alloc8 8+ dbgloc 517+ storel %s, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "s", "str.String", %t0, 8, 5, 517+ dbgloc 518+ %t1 =l copy 0+ %t2 =w cnel %s, %t1+ jnz %t2, @lbl703, @lbl704+@lbl704+ %t3 =l copy $__str46+ call $dprintf(w 2, l %t3)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl703+ dbgloc 521+ %t4 =w call $ostr__trim_right(l %s)+ dbgloc 522+ %t5 =w call $ostr__trim_left(l %s)+ ret 0+}++export function l $ostr__replace(l %s, l %from, l %to) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t8 =l alloc8 8+ %t14 =l alloc8 8+ %t20 =l alloc8 8+ %t22 =l alloc8 8+ %t28 =l alloc8 8+ %t31 =l alloc8 8+ %t34 =l alloc8 8+ %t36 =l alloc8 8+ %t38 =l alloc8 8+ %t40 =l alloc8 8+ %t42 =l alloc8 8+ %t47 =l alloc8 8+ %t52 =l alloc8 8+ %t54 =l alloc8 8+ %t56 =l alloc8 8+ %t58 =l alloc8 8+ %t63 =l alloc8 8+ dbgloc 526+ storel %s, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "s", "str.String", %t0, 8, 5, 526+ storel %from, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "from", "str.String", %t1, 8, 5, 526+ storel %to, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "to", "str.String", %t2, 8, 5, 526+ dbgloc 527+ %t5 =l copy %s+ %t6 =l copy 8+ %t4 =l add %t5, %t6+ %t3 =l loadl %t4+ %t7 =l copy %t3+ storel %t7, %t8+ call $__sx_dbg_keep(l %t8)+ dbgvar "sl", "i64", %t8, 8, 5, 527+ dbgloc 528+ %t11 =l copy %from+ %t12 =l copy 8+ %t10 =l add %t11, %t12+ %t9 =l loadl %t10+ %t13 =l copy %t9+ storel %t13, %t14+ call $__sx_dbg_keep(l %t14)+ dbgvar "froml", "i64", %t14, 8, 5, 528+ dbgloc 529+ %t17 =l copy %to+ %t18 =l copy 8+ %t16 =l add %t17, %t18+ %t15 =l loadl %t16+ %t19 =l copy %t15+ storel %t19, %t20+ call $__sx_dbg_keep(l %t20)+ dbgvar "tol", "i64", %t20, 8, 5, 529+ dbgloc 530+ %t21 =l call $ostr__new()+ storel %t21, %t22+ call $__sx_dbg_keep(l %t22)+ dbgvar "out", "str.String", %t22, 8, 5, 530+ dbgloc 532+ %t23 =l copy 0+ %t24 =w ceql %t13, %t23+ jnz %t24, @lbl705, @lbl706+@lbl705+ dbgloc 533+ %t25 =w call $ostr__push(l %t21, l %s)+ dbgloc 534+ ret %t21+@lbl706+ dbgloc 537+ %t27 =l copy %s+ %t26 =l loadl %t27+ storel %t26, %t28+ call $__sx_dbg_keep(l %t28)+ dbgvar "sp", "ref ", %t28, 8, 7, 537+ dbgloc 538+ %t30 =l copy %from+ %t29 =l loadl %t30+ storel %t29, %t31+ call $__sx_dbg_keep(l %t31)+ dbgvar "fromp", "ref ", %t31, 8, 7, 538+ dbgloc 539+ %t33 =l copy %to+ %t32 =l loadl %t33+ storel %t32, %t34+ call $__sx_dbg_keep(l %t34)+ dbgvar "top", "ref ", %t34, 8, 7, 539+ dbgloc 541+ %t35 =l copy 0+ storel %t35, %t36+ call $__sx_dbg_keep(l %t36)+ dbgvar "i", "i64", %t36, 8, 5, 541+ dbgloc 542+ %t37 =l copy 0+ storel %t37, %t38+ call $__sx_dbg_keep(l %t38)+ dbgvar "j", "i64", %t38, 8, 5, 542+ dbgloc 543+ %t39 =l copy 0+ storel %t39, %t40+ call $__sx_dbg_keep(l %t40)+ dbgvar "matched", "i64", %t40, 8, 5, 543+ dbgloc 544+ %t41 =l copy 0+ storel %t41, %t42+ call $__sx_dbg_keep(l %t42)+ dbgvar "limit", "i64", %t42, 8, 5, 544+ dbgloc 545+ %t43 =l copy 0+ %t44 =w copy %t43+ %t45 =w copy %t44+ %t46 =w extub %t45+ storew %t46, %t47+ call $__sx_dbg_keep(l %t47)+ dbgvar "a", "u8", %t47, 1, 7, 545+ dbgloc 546+ %t48 =l copy 0+ %t49 =w copy %t48+ %t50 =w copy %t49+ %t51 =w extub %t50+ storew %t51, %t52+ call $__sx_dbg_keep(l %t52)+ dbgvar "b", "u8", %t52, 1, 7, 546+ dbgloc 547+ %t53 =l copy 0+ storel %t53, %t54+ call $__sx_dbg_keep(l %t54)+ dbgvar "out_l", "i64", %t54, 8, 5, 547+ dbgloc 548+ %t55 =l copy 0+ storel %t55, %t56+ call $__sx_dbg_keep(l %t56)+ dbgvar "new_len", "i64", %t56, 8, 5, 548+ dbgloc 549+ %t57 =l copy 0+ storel %t57, %t58+ call $__sx_dbg_keep(l %t58)+ dbgvar "out_ptr", "ref ", %t58, 8, 7, 549+ dbgloc 550+ %t59 =l copy 0+ %t60 =w copy %t59+ %t61 =w copy %t60+ %t62 =w extub %t61+ storew %t62, %t63+ call $__sx_dbg_keep(l %t63)+ dbgvar "c", "u8", %t63, 1, 7, 550+ dbgloc 552+ jmp @lbl708+@lbl708+ jmp @lbl709+@lbl709+ dbgloc 553+ %t64 =l loadl %t36+ %t66 =w csltl %t64, %t7+ %t65 =w ceqw %t66, 0+ jnz %t65, @lbl712, @lbl713+@lbl712+ dbgloc 554+ jmp @lbl711+@lbl713+ dbgloc 556+ %t67 =l sub %t7, %t13+ storel %t67, %t42+ dbgloc 557+ %t68 =l loadl %t36+ %t69 =l loadl %t42+ %t70 =w cslel %t68, %t69+ jnz %t70, @lbl715, @lbl717+@lbl715+ dbgloc 558+ %t71 =l copy 0+ storel %t71, %t38+ dbgloc 559+ %t72 =l copy 1+ storel %t72, %t40+ dbgloc 560+ jmp @lbl718+@lbl718+ jmp @lbl719+@lbl719+ dbgloc 561+ %t73 =l loadl %t38+ %t75 =w csltl %t73, %t13+ %t74 =w ceqw %t75, 0+ jnz %t74, @lbl722, @lbl723+@lbl722+ dbgloc 562+ jmp @lbl721+@lbl723+ dbgloc 564+ %t78 =l loadl %t36+ %t79 =l loadl %t38+ %t80 =l add %t78, %t79+ %t77 =l add %t26, %t80+ %t81 =w loadub %t77+ %t76 =l extsw %t81+ %t82 =w copy %t76+ %t83 =w extub %t82+ storew %t83, %t47+ dbgloc 565+ %t86 =l loadl %t38+ %t85 =l add %t29, %t86+ %t87 =w loadub %t85+ %t84 =l extsw %t87+ %t88 =w copy %t84+ %t89 =w extub %t88+ storew %t89, %t52+ dbgloc 566+ %t91 =w loadw %t47+ %t90 =l extsw %t91+ %t92 =l extsw %t90+ %t94 =w loadw %t52+ %t93 =l extsw %t94+ %t95 =l extsw %t93+ %t96 =w cnew %t92, %t95+ jnz %t96, @lbl725, @lbl726+@lbl725+ dbgloc 567+ %t97 =l copy 0+ storel %t97, %t40+ dbgloc 568+ jmp @lbl721+@lbl726+ dbgloc 570+ %t98 =l loadl %t38+ %t99 =l add %t98, 1+ storel %t99, %t38+ jmp @lbl720+@lbl720+ jmp @lbl718+@lbl721+ dbgloc 572+ %t100 =l loadl %t40+ %t101 =l copy 0+ %t102 =w cnel %t100, %t101+ jnz %t102, @lbl728, @lbl730+@lbl728+ dbgloc 573+ %t105 =l copy %t21+ %t106 =l copy 8+ %t104 =l add %t105, %t106+ %t103 =l loadl %t104+ %t107 =l copy %t103+ storel %t107, %t54+ dbgloc 574+ %t108 =l loadl %t54+ %t109 =l add %t108, %t19+ storel %t109, %t56+ dbgloc 575+ %t110 =l copy %t21+ %t111 =l loadl %t56+ %t112 =l copy 1+ %t113 =l add %t111, %t112+ %t114 =w call $ostr__ensure_cap(l %t110, l %t113)+ dbgloc 576+ %t116 =l copy %t21+ %t115 =l loadl %t116+ storel %t115, %t58+ dbgloc 577+ %t119 =l loadl %t58+ %t120 =l loadl %t54+ %t118 =l add %t119, %t120+ call $memcpy(l %t118, l %t32, l %t19)+ %t117 =l copy 0+ dbgloc 578+ %t123 =l loadl %t58+ %t124 =l loadl %t56+ %t122 =l add %t123, %t124+ %t125 =l copy 0+ storeb %t125, %t122+ %t121 =l copy 0+ dbgloc 579+ %t128 =l copy %t21+ %t129 =l copy 8+ %t127 =l add %t128, %t129+ %t130 =l loadl %t56+ storel %t130, %t127+ %t126 =l copy 0+ dbgloc 580+ %t131 =l loadl %t36+ %t132 =l add %t131, %t13+ storel %t132, %t36+ jmp @lbl729+@lbl730+ dbgloc 582+ %t135 =l loadl %t36+ %t134 =l add %t26, %t135+ %t136 =w loadub %t134+ %t133 =l extsw %t136+ %t137 =w copy %t133+ %t138 =w extub %t137+ storew %t138, %t63+ dbgloc 583+ %t140 =w loadw %t63+ %t139 =l extsw %t140+ %t141 =w call $ostr__push_char(l %t21, w %t139)+ dbgloc 584+ %t142 =l loadl %t36+ %t143 =l add %t142, 1+ storel %t143, %t36+ jmp @lbl729+@lbl729+ jmp @lbl716+@lbl717+ dbgloc 587+ %t146 =l loadl %t36+ %t145 =l add %t26, %t146+ %t147 =w loadub %t145+ %t144 =l extsw %t147+ %t148 =w copy %t144+ %t149 =w extub %t148+ storew %t149, %t63+ dbgloc 588+ %t151 =w loadw %t63+ %t150 =l extsw %t151+ %t152 =w call $ostr__push_char(l %t21, w %t150)+ dbgloc 589+ %t153 =l loadl %t36+ %t154 =l add %t153, 1+ storel %t154, %t36+ jmp @lbl716+@lbl716+ jmp @lbl710+@lbl710+ jmp @lbl708+@lbl711+ dbgloc 593+ ret %t21+}++export function w $ostr__equals(l %x, l %y) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t12 =l alloc8 8+ %t17 =l alloc8 8+ %t21 =l alloc8 8+ %t23 =l alloc8 8+ %t25 =l alloc8 8+ %t36 =l alloc8 8+ %t44 =l alloc8 8+ dbgloc 657+ storel %x, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "x", "str.String", %t0, 8, 5, 657+ storel %y, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "y", "str.String", %t1, 8, 5, 657+ dbgloc 658+ %t2 =l copy 0+ %t3 =w cnel %x, %t2+ jnz %t3, @lbl731, @lbl732+@lbl732+ %t4 =l copy $__str47+ call $dprintf(w 2, l %t4)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl731+ %t5 =l copy 0+ %t6 =w cnel %y, %t5+ jnz %t6, @lbl733, @lbl734+@lbl734+ %t7 =l copy $__str48+ call $dprintf(w 2, l %t7)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl733+ dbgloc 663+ %t10 =l copy 8+ %t9 =l add %x, %t10+ %t8 =l loadl %t9+ %t11 =l copy %t8+ storel %t11, %t12+ call $__sx_dbg_keep(l %t12)+ dbgvar "lx", "i64", %t12, 8, 5, 663+ dbgloc 664+ %t15 =l copy 8+ %t14 =l add %y, %t15+ %t13 =l loadl %t14+ %t16 =l copy %t13+ storel %t16, %t17+ call $__sx_dbg_keep(l %t17)+ dbgvar "ly", "i64", %t17, 8, 5, 664+ dbgloc 666+ %t18 =w cnel %t11, %t16+ jnz %t18, @lbl735, @lbl736+@lbl735+ dbgloc 667+ %t19 =l copy 0+ ret %t19+@lbl736+ dbgloc 670+ %t20 =l loadl %x+ storel %t20, %t21+ call $__sx_dbg_keep(l %t21)+ dbgvar "px", "ref ", %t21, 8, 7, 670+ dbgloc 671+ %t22 =l loadl %y+ storel %t22, %t23+ call $__sx_dbg_keep(l %t23)+ dbgvar "py", "ref ", %t23, 8, 7, 671+ dbgloc 673+ %t24 =l copy 0+ storel %t24, %t25+ call $__sx_dbg_keep(l %t25)+ dbgvar "i", "i64", %t25, 8, 5, 673+ dbgloc 674+ jmp @lbl738+@lbl738+ jmp @lbl739+@lbl739+ dbgloc 675+ %t26 =l loadl %t25+ %t28 =w csltl %t26, %t11+ %t27 =w ceqw %t28, 0+ jnz %t27, @lbl742, @lbl743+@lbl742+ dbgloc 676+ jmp @lbl741+@lbl743+ dbgloc 678+ %t31 =l loadl %t25+ %t30 =l add %t20, %t31+ %t32 =w loadub %t30+ %t29 =l extsw %t32+ %t33 =w copy %t29+ %t34 =w copy %t33+ %t35 =w extub %t34+ storew %t35, %t36+ call $__sx_dbg_keep(l %t36)+ dbgvar "a", "u8", %t36, 1, 7, 678+ dbgloc 679+ %t39 =l loadl %t25+ %t38 =l add %t22, %t39+ %t40 =w loadub %t38+ %t37 =l extsw %t40+ %t41 =w copy %t37+ %t42 =w copy %t41+ %t43 =w extub %t42+ storew %t43, %t44+ call $__sx_dbg_keep(l %t44)+ dbgvar "b", "u8", %t44, 1, 7, 679+ dbgloc 680+ %t45 =l extsw %t35+ %t46 =l extsw %t43+ %t47 =w cnew %t45, %t46+ jnz %t47, @lbl745, @lbl746+@lbl745+ dbgloc 681+ %t48 =l copy 0+ ret %t48+@lbl746+ dbgloc 683+ %t49 =l loadl %t25+ %t50 =l add %t49, 1+ storel %t50, %t25+ jmp @lbl740+@lbl740+ jmp @lbl738+@lbl741+ dbgloc 686+ %t51 =w ceql %t11, %t16+ jnz %t51, @lbl748, @lbl749+@lbl749+ %t52 =l copy $__str49+ call $dprintf(w 2, l %t52)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl748+ dbgloc 690+ %t53 =l copy 1+ ret %t53+}++export function l $ostr__trim_prefix(l %s, l %prefix) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t10 =l alloc8 8+ %t16 =l alloc8 8+ dbgloc 694+ storel %s, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "s", "str.String", %t0, 8, 5, 694+ storel %prefix, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "prefix", "str.String", %t1, 8, 5, 694+ dbgloc 695+ %t2 =w call $ostr__starts_with(l %s, l %prefix)+ %t3 =w ceqw %t2, 0+ jnz %t3, @lbl750, @lbl751+@lbl750+ dbgloc 696+ %t4 =l call $ostr__clone(l %s)+ ret %t4+@lbl751+ dbgloc 699+ %t7 =l copy %prefix+ %t8 =l copy 8+ %t6 =l add %t7, %t8+ %t5 =l loadl %t6+ %t9 =l copy %t5+ storel %t9, %t10+ call $__sx_dbg_keep(l %t10)+ dbgvar "pl", "i64", %t10, 8, 5, 699+ dbgloc 700+ %t13 =l copy %s+ %t14 =l copy 8+ %t12 =l add %t13, %t14+ %t11 =l loadl %t12+ %t15 =l copy %t11+ storel %t15, %t16+ call $__sx_dbg_keep(l %t16)+ dbgvar "sl", "i64", %t16, 8, 5, 700+ dbgloc 702+ %t17 =l call $ostr__slice(l %s, l %t9, l %t15)+ ret %t17+}++export function l $ostr__trim_suffix(l %s, l %suffix) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t10 =l alloc8 8+ %t16 =l alloc8 8+ dbgloc 706+ storel %s, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "s", "str.String", %t0, 8, 5, 706+ storel %suffix, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "suffix", "str.String", %t1, 8, 5, 706+ dbgloc 707+ %t2 =w call $ostr__ends_with(l %s, l %suffix)+ %t3 =w ceqw %t2, 0+ jnz %t3, @lbl753, @lbl754+@lbl753+ dbgloc 708+ %t4 =l call $ostr__clone(l %s)+ ret %t4+@lbl754+ dbgloc 711+ %t7 =l copy %s+ %t8 =l copy 8+ %t6 =l add %t7, %t8+ %t5 =l loadl %t6+ %t9 =l copy %t5+ storel %t9, %t10+ call $__sx_dbg_keep(l %t10)+ dbgvar "sl", "i64", %t10, 8, 5, 711+ dbgloc 712+ %t13 =l copy %suffix+ %t14 =l copy 8+ %t12 =l add %t13, %t14+ %t11 =l loadl %t12+ %t15 =l copy %t11+ storel %t15, %t16+ call $__sx_dbg_keep(l %t16)+ dbgvar "sul", "i64", %t16, 8, 5, 712+ dbgloc 714+ %t17 =l copy 0+ %t18 =l sub %t9, %t15+ %t19 =l call $ostr__slice(l %s, l %t17, l %t18)+ ret %t19+}++export function w $ostr__starts_with(l %s, l %prefix) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t13 =l alloc8 8+ %t19 =l alloc8 8+ %t24 =l alloc8 8+ %t27 =l alloc8 8+ %t29 =l alloc8 8+ %t40 =l alloc8 8+ %t48 =l alloc8 8+ dbgloc 718+ storel %s, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "s", "str.String", %t0, 8, 5, 718+ storel %prefix, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "prefix", "str.String", %t1, 8, 5, 718+ dbgloc 719+ %t2 =l copy 0+ %t3 =w cnel %s, %t2+ jnz %t3, @lbl756, @lbl757+@lbl757+ %t4 =l copy $__str50+ call $dprintf(w 2, l %t4)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl756+ %t5 =l copy 0+ %t6 =w cnel %prefix, %t5+ jnz %t6, @lbl758, @lbl759+@lbl759+ %t7 =l copy $__str51+ call $dprintf(w 2, l %t7)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl758+ dbgloc 724+ %t10 =l copy %s+ %t11 =l copy 8+ %t9 =l add %t10, %t11+ %t8 =l loadl %t9+ %t12 =l copy %t8+ storel %t12, %t13+ call $__sx_dbg_keep(l %t13)+ dbgvar "sl", "i64", %t13, 8, 5, 724+ dbgloc 725+ %t16 =l copy %prefix+ %t17 =l copy 8+ %t15 =l add %t16, %t17+ %t14 =l loadl %t15+ %t18 =l copy %t14+ storel %t18, %t19+ call $__sx_dbg_keep(l %t19)+ dbgvar "pl", "i64", %t19, 8, 5, 725+ dbgloc 727+ %t20 =w csgtl %t18, %t12+ jnz %t20, @lbl760, @lbl761+@lbl760+ dbgloc 728+ %t21 =l copy 0+ ret %t21+@lbl761+ dbgloc 731+ %t23 =l copy %s+ %t22 =l loadl %t23+ storel %t22, %t24+ call $__sx_dbg_keep(l %t24)+ dbgvar "sp", "ref ", %t24, 8, 7, 731+ dbgloc 732+ %t26 =l copy %prefix+ %t25 =l loadl %t26+ storel %t25, %t27+ call $__sx_dbg_keep(l %t27)+ dbgvar "pp", "ref ", %t27, 8, 7, 732+ dbgloc 734+ %t28 =l copy 0+ storel %t28, %t29+ call $__sx_dbg_keep(l %t29)+ dbgvar "i", "i64", %t29, 8, 5, 734+ dbgloc 735+ jmp @lbl763+@lbl763+ jmp @lbl764+@lbl764+ dbgloc 736+ %t30 =l loadl %t29+ %t32 =w csltl %t30, %t18+ %t31 =w ceqw %t32, 0+ jnz %t31, @lbl767, @lbl768+@lbl767+ dbgloc 737+ jmp @lbl766+@lbl768+ dbgloc 739+ %t35 =l loadl %t29+ %t34 =l add %t22, %t35+ %t36 =w loadub %t34+ %t33 =l extsw %t36+ %t37 =w copy %t33+ %t38 =w copy %t37+ %t39 =w extub %t38+ storew %t39, %t40+ call $__sx_dbg_keep(l %t40)+ dbgvar "a", "u8", %t40, 1, 7, 739+ dbgloc 740+ %t43 =l loadl %t29+ %t42 =l add %t25, %t43+ %t44 =w loadub %t42+ %t41 =l extsw %t44+ %t45 =w copy %t41+ %t46 =w copy %t45+ %t47 =w extub %t46+ storew %t47, %t48+ call $__sx_dbg_keep(l %t48)+ dbgvar "b", "u8", %t48, 1, 7, 740+ dbgloc 741+ %t49 =l extsw %t39+ %t50 =l extsw %t47+ %t51 =w cnew %t49, %t50+ jnz %t51, @lbl770, @lbl771+@lbl770+ dbgloc 742+ %t52 =l copy 0+ ret %t52+@lbl771+ dbgloc 744+ %t53 =l loadl %t29+ %t54 =l add %t53, 1+ storel %t54, %t29+ jmp @lbl765+@lbl765+ jmp @lbl763+@lbl766+ dbgloc 747+ %t55 =w cslel %t18, %t12+ jnz %t55, @lbl773, @lbl774+@lbl774+ %t56 =l copy $__str52+ call $dprintf(w 2, l %t56)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl773+ dbgloc 751+ %t57 =l copy 1+ ret %t57+}++export function w $ostr__ends_with(l %s, l %suffix) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t13 =l alloc8 8+ %t19 =l alloc8 8+ %t24 =l alloc8 8+ %t27 =l alloc8 8+ %t29 =l alloc8 8+ %t31 =l alloc8 8+ %t43 =l alloc8 8+ %t51 =l alloc8 8+ dbgloc 755+ storel %s, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "s", "str.String", %t0, 8, 5, 755+ storel %suffix, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "suffix", "str.String", %t1, 8, 5, 755+ dbgloc 756+ %t2 =l copy 0+ %t3 =w cnel %s, %t2+ jnz %t3, @lbl775, @lbl776+@lbl776+ %t4 =l copy $__str53+ call $dprintf(w 2, l %t4)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl775+ %t5 =l copy 0+ %t6 =w cnel %suffix, %t5+ jnz %t6, @lbl777, @lbl778+@lbl778+ %t7 =l copy $__str54+ call $dprintf(w 2, l %t7)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl777+ dbgloc 761+ %t10 =l copy %s+ %t11 =l copy 8+ %t9 =l add %t10, %t11+ %t8 =l loadl %t9+ %t12 =l copy %t8+ storel %t12, %t13+ call $__sx_dbg_keep(l %t13)+ dbgvar "sl", "i64", %t13, 8, 5, 761+ dbgloc 762+ %t16 =l copy %suffix+ %t17 =l copy 8+ %t15 =l add %t16, %t17+ %t14 =l loadl %t15+ %t18 =l copy %t14+ storel %t18, %t19+ call $__sx_dbg_keep(l %t19)+ dbgvar "sul", "i64", %t19, 8, 5, 762+ dbgloc 764+ %t20 =w csgtl %t18, %t12+ jnz %t20, @lbl779, @lbl780+@lbl779+ dbgloc 765+ %t21 =l copy 0+ ret %t21+@lbl780+ dbgloc 768+ %t23 =l copy %s+ %t22 =l loadl %t23+ storel %t22, %t24+ call $__sx_dbg_keep(l %t24)+ dbgvar "sp", "ref ", %t24, 8, 7, 768+ dbgloc 769+ %t26 =l copy %suffix+ %t25 =l loadl %t26+ storel %t25, %t27+ call $__sx_dbg_keep(l %t27)+ dbgvar "sup", "ref ", %t27, 8, 7, 769+ dbgloc 770+ %t28 =l sub %t12, %t18+ storel %t28, %t29+ call $__sx_dbg_keep(l %t29)+ dbgvar "offset", "i64", %t29, 8, 5, 770+ dbgloc 771+ %t30 =l copy 0+ storel %t30, %t31+ call $__sx_dbg_keep(l %t31)+ dbgvar "i", "i64", %t31, 8, 5, 771+ dbgloc 773+ jmp @lbl782+@lbl782+ jmp @lbl783+@lbl783+ dbgloc 774+ %t32 =l loadl %t31+ %t34 =w csltl %t32, %t18+ %t33 =w ceqw %t34, 0+ jnz %t33, @lbl786, @lbl787+@lbl786+ dbgloc 775+ jmp @lbl785+@lbl787+ dbgloc 777+ %t37 =l loadl %t31+ %t38 =l add %t28, %t37+ %t36 =l add %t22, %t38+ %t39 =w loadub %t36+ %t35 =l extsw %t39+ %t40 =w copy %t35+ %t41 =w copy %t40+ %t42 =w extub %t41+ storew %t42, %t43+ call $__sx_dbg_keep(l %t43)+ dbgvar "a", "u8", %t43, 1, 7, 777+ dbgloc 778+ %t46 =l loadl %t31+ %t45 =l add %t25, %t46+ %t47 =w loadub %t45+ %t44 =l extsw %t47+ %t48 =w copy %t44+ %t49 =w copy %t48+ %t50 =w extub %t49+ storew %t50, %t51+ call $__sx_dbg_keep(l %t51)+ dbgvar "b", "u8", %t51, 1, 7, 778+ dbgloc 779+ %t52 =l extsw %t42+ %t53 =l extsw %t50+ %t54 =w cnew %t52, %t53+ jnz %t54, @lbl789, @lbl790+@lbl789+ dbgloc 780+ %t55 =l copy 0+ ret %t55+@lbl790+ dbgloc 782+ %t56 =l loadl %t31+ %t57 =l add %t56, 1+ storel %t57, %t31+ jmp @lbl784+@lbl784+ jmp @lbl782+@lbl785+ dbgloc 785+ %t58 =w cslel %t18, %t12+ jnz %t58, @lbl792, @lbl793+@lbl793+ %t59 =l copy $__str55+ call $dprintf(w 2, l %t59)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl792+ dbgloc 789+ %t60 =l copy 1+ ret %t60+}++dbgfile "spectrelib/string/builder.sx"+function w $builder__ensure_cap(l %ptr, l %needed) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t6 =l alloc8 8+ %t10 =l alloc8 8+ %t12 =l alloc8 8+ %t14 =l alloc8 8+ dbgloc 10+ storel %ptr, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "ptr", "ref ", %t0, 8, 7, 10+ storel %needed, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "needed", "i64", %t1, 8, 5, 10+ dbgloc 11+ %t4 =l copy 16+ %t3 =l add %ptr, %t4+ %t2 =l loadl %t3+ %t5 =l copy %t2+ storel %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "cap", "i64", %t6, 8, 5, 11+ dbgloc 12+ %t7 =w cslel %needed, %t5+ jnz %t7, @lbl794, @lbl795+@lbl794+ dbgloc 13+ ret 0+@lbl795+ dbgloc 15+ %t8 =l copy 2+ %t9 =l mul %needed, %t8+ storel %t9, %t10+ call $__sx_dbg_keep(l %t10)+ dbgvar "new_cap", "i64", %t10, 8, 5, 15+ dbgloc 16+ %t11 =l loadl %ptr+ storel %t11, %t12+ call $__sx_dbg_keep(l %t12)+ dbgvar "old_ptr", "ref ", %t12, 8, 7, 16+ dbgloc 17+ %t13 =l call $realloc(l %t11, l %t9)+ storel %t13, %t14+ call $__sx_dbg_keep(l %t14)+ dbgvar "new_ptr", "ref ", %t14, 8, 7, 17+ dbgloc 18+ storel %t13, %ptr+ %t15 =l copy 0+ dbgloc 19+ %t18 =l copy 16+ %t17 =l add %ptr, %t18+ storel %t9, %t17+ %t16 =l copy 0+ ret 0+}++export function l $builder__StringBuilder__new() {+@start+ %t2 =l alloc8 8+ %t5 =l alloc8 8+ dbgloc 30+ dbgloc 31+ %t1 =l copy 24+ %t0 =l call $malloc(l %t1)+ storel %t0, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "s", "ref ", %t2, 8, 7, 31+ dbgloc 32+ %t4 =l copy 64+ %t3 =l call $malloc(l %t4)+ storel %t3, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "buf", "ref ", %t5, 8, 7, 32+ dbgloc 33+ dbgloc 34+ %t7 =l copy 0+ storeb %t7, %t3+ %t6 =l copy 0+ dbgloc 35+ storel %t3, %t0+ %t8 =l copy 0+ dbgloc 36+ %t11 =l copy 8+ %t10 =l add %t0, %t11+ %t12 =l copy 0+ storel %t12, %t10+ %t9 =l copy 0+ dbgloc 37+ %t15 =l copy 16+ %t14 =l add %t0, %t15+ %t16 =l copy 64+ storel %t16, %t14+ %t13 =l copy 0+ dbgloc 39+ %t17 =l copy %t0+ ret %t17+}++export function w $builder__StringBuilder__append(l %sb, l %v) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t7 =l alloc8 8+ %t11 =l alloc8 8+ %t18 =l alloc8 8+ dbgloc 43+ storel %sb, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "sb", "StringBuilder", %t0, 8, 5, 43+ storel %v, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "v", "str.StringView", %t1, 8, 5, 43+ dbgloc 44+ %t4 =l copy %sb+ %t5 =l copy 8+ %t3 =l add %t4, %t5+ %t2 =l loadl %t3+ %t6 =l copy %t2+ storel %t6, %t7+ call $__sx_dbg_keep(l %t7)+ dbgvar "l", "i64", %t7, 8, 5, 44+ dbgloc 45+ %t9 =l add %v, 8+ %t8 =l loadl %t9+ %t10 =l add %t6, %t8+ storel %t10, %t11+ call $__sx_dbg_keep(l %t11)+ dbgvar "new_len", "i64", %t11, 8, 5, 45+ dbgloc 47+ %t12 =l copy %sb+ %t13 =l copy 1+ %t14 =l add %t10, %t13+ %t15 =w call $builder__ensure_cap(l %t12, l %t14)+ dbgloc 49+ %t17 =l copy %sb+ %t16 =l loadl %t17+ storel %t16, %t18+ call $__sx_dbg_keep(l %t18)+ dbgvar "ptr", "ref ", %t18, 8, 7, 49+ dbgloc 51+ %t20 =l add %v, 8+ %t19 =l loadl %t20+ %t21 =l copy 0+ %t22 =w csgtl %t19, %t21+ jnz %t22, @lbl797, @lbl798+@lbl797+ dbgloc 52+ %t24 =l add %t16, %t6+ %t25 =l loadl %v+ %t26 =l copy %t25+ %t28 =l add %v, 8+ %t27 =l loadl %t28+ %t29 =l copy %t27+ call $memcpy(l %t24, l %t26, l %t29)+ %t23 =l copy 0+ jmp @lbl798+@lbl798+ dbgloc 54+ %t31 =l add %t16, %t10+ %t32 =l copy 0+ storeb %t32, %t31+ %t30 =l copy 0+ dbgloc 55+ %t35 =l copy %sb+ %t36 =l copy 8+ %t34 =l add %t35, %t36+ storel %t10, %t34+ %t33 =l copy 0+ ret 0+}++export function w $builder__StringBuilder__append_string(l %sb, l %s) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t4 =l alloc8 8+ %t10 =l alloc8 8+ %t16 =l alloc8 8+ %t18 =l alloc8 8+ %t25 =l alloc8 8+ dbgloc 59+ storel %sb, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "sb", "StringBuilder", %t0, 8, 5, 59+ storel %s, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "s", "str.String", %t1, 8, 5, 59+ dbgloc 60+ %t3 =l copy %s+ %t2 =l loadl %t3+ storel %t2, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "other_ptr", "ref ", %t4, 8, 7, 60+ dbgloc 61+ %t7 =l copy %s+ %t8 =l copy 8+ %t6 =l add %t7, %t8+ %t5 =l loadl %t6+ %t9 =l copy %t5+ storel %t9, %t10+ call $__sx_dbg_keep(l %t10)+ dbgvar "other_len", "i64", %t10, 8, 5, 61+ dbgloc 62+ %t13 =l copy %sb+ %t14 =l copy 8+ %t12 =l add %t13, %t14+ %t11 =l loadl %t12+ %t15 =l copy %t11+ storel %t15, %t16+ call $__sx_dbg_keep(l %t16)+ dbgvar "l", "i64", %t16, 8, 5, 62+ dbgloc 63+ %t17 =l add %t15, %t9+ storel %t17, %t18+ call $__sx_dbg_keep(l %t18)+ dbgvar "new_len", "i64", %t18, 8, 5, 63+ dbgloc 65+ %t19 =l copy %sb+ %t20 =l copy 1+ %t21 =l add %t17, %t20+ %t22 =w call $builder__ensure_cap(l %t19, l %t21)+ dbgloc 67+ %t24 =l copy %sb+ %t23 =l loadl %t24+ storel %t23, %t25+ call $__sx_dbg_keep(l %t25)+ dbgvar "ptr", "ref ", %t25, 8, 7, 67+ dbgloc 69+ %t27 =l add %t23, %t15+ call $memcpy(l %t27, l %t2, l %t9)+ %t26 =l copy 0+ dbgloc 70+ %t29 =l add %t23, %t17+ %t30 =l copy 0+ storeb %t30, %t29+ %t28 =l copy 0+ dbgloc 71+ %t33 =l copy %sb+ %t34 =l copy 8+ %t32 =l add %t33, %t34+ storel %t17, %t32+ %t31 =l copy 0+ ret 0+}++export function w $builder__StringBuilder__append_cstr(l %sb, l %cstr) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t7 =l alloc8 8+ %t9 =l alloc8 8+ %t11 =l alloc8 8+ %t18 =l alloc8 8+ dbgloc 75+ storel %sb, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "sb", "StringBuilder", %t0, 8, 5, 75+ storel %cstr, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "cstr", "ref u8", %t1, 8, 7, 75+ dbgloc 76+ %t4 =l copy %sb+ %t5 =l copy 8+ %t3 =l add %t4, %t5+ %t2 =l loadl %t3+ %t6 =l copy %t2+ storel %t6, %t7+ call $__sx_dbg_keep(l %t7)+ dbgvar "l", "i64", %t7, 8, 5, 76+ dbgloc 77+ %t8 =l call $rt__strlen(l %cstr)+ storel %t8, %t9+ call $__sx_dbg_keep(l %t9)+ dbgvar "add_len", "i64", %t9, 8, 5, 77+ dbgloc 78+ %t10 =l add %t6, %t8+ storel %t10, %t11+ call $__sx_dbg_keep(l %t11)+ dbgvar "new_len", "i64", %t11, 8, 5, 78+ dbgloc 80+ %t12 =l copy %sb+ %t13 =l copy 1+ %t14 =l add %t10, %t13+ %t15 =w call $builder__ensure_cap(l %t12, l %t14)+ dbgloc 82+ %t17 =l copy %sb+ %t16 =l loadl %t17+ storel %t16, %t18+ call $__sx_dbg_keep(l %t18)+ dbgvar "ptr", "ref ", %t18, 8, 7, 82+ dbgloc 84+ %t20 =l add %t16, %t6+ call $memcpy(l %t20, l %cstr, l %t8)+ %t19 =l copy 0+ dbgloc 85+ %t22 =l add %t16, %t10+ %t23 =l copy 0+ storeb %t23, %t22+ %t21 =l copy 0+ dbgloc 86+ %t26 =l copy %sb+ %t27 =l copy 8+ %t25 =l add %t26, %t27+ storel %t10, %t25+ %t24 =l copy 0+ ret 0+}++export function l $builder__StringBuilder__build(l %sb) {+@start+ %t0 =l alloc8 8+ %t6 =l alloc8 8+ %t9 =l alloc8 8+ %t13 =l alloc8 8+ %t20 =l alloc8 8+ dbgloc 90+ storel %sb, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "sb", "StringBuilder", %t0, 8, 5, 90+ dbgloc 91+ %t3 =l copy %sb+ %t4 =l copy 8+ %t2 =l add %t3, %t4+ %t1 =l loadl %t2+ %t5 =l copy %t1+ storel %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "l", "i64", %t6, 8, 5, 91+ dbgloc 92+ %t8 =l copy %sb+ %t7 =l loadl %t8+ storel %t7, %t9+ call $__sx_dbg_keep(l %t9)+ dbgvar "ptr", "ref ", %t9, 8, 7, 92+ dbgloc 93+ %t11 =l copy 1+ %t12 =l add %t5, %t11+ %t10 =l call $malloc(l %t12)+ storel %t10, %t13+ call $__sx_dbg_keep(l %t13)+ dbgvar "buf", "ref ", %t13, 8, 7, 93+ dbgloc 95+ call $memcpy(l %t10, l %t7, l %t5)+ %t14 =l copy 0+ dbgloc 96+ %t16 =l add %t10, %t5+ %t17 =l copy 0+ storeb %t17, %t16+ %t15 =l copy 0+ dbgloc 98+ %t19 =l copy 24+ %t18 =l call $malloc(l %t19)+ storel %t18, %t20+ call $__sx_dbg_keep(l %t20)+ dbgvar "out", "ref ", %t20, 8, 7, 98+ dbgloc 100+ storel %t10, %t18+ %t21 =l copy 0+ dbgloc 101+ %t24 =l copy 8+ %t23 =l add %t18, %t24+ storel %t5, %t23+ %t22 =l copy 0+ dbgloc 102+ %t27 =l copy 16+ %t26 =l add %t18, %t27+ %t28 =l copy 1+ %t29 =l add %t5, %t28+ storel %t29, %t26+ %t25 =l copy 0+ dbgloc 104+ %t30 =l copy %t18+ ret %t30+}++export function w $builder__StringBuilder__free(l %sb) {+@start+ %t0 =l alloc8 8+ %t3 =l alloc8 8+ %t6 =l alloc8 8+ dbgloc 108+ storel %sb, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "sb", "StringBuilder", %t0, 8, 5, 108+ dbgloc 109+ %t2 =l copy %sb+ %t1 =l loadl %t2+ storel %t1, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "ptr", "ref ", %t3, 8, 7, 109+ dbgloc 110+ call $free(l %t1)+ %t4 =l copy 0+ dbgloc 111+ %t5 =l copy %sb+ storel %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "hdr", "ref ", %t6, 8, 7, 111+ dbgloc 112+ %t8 =l loadl %t6+ call $free(l %t8)+ %t7 =l copy 0+ ret 0+}++export function w $builder__StringBuilder__append_char(l %sb, w %c) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t7 =l alloc8 8+ %t10 =l alloc8 8+ %t17 =l alloc8 8+ dbgloc 116+ storel %sb, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "sb", "StringBuilder", %t0, 8, 5, 116+ storew %c, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "c", "u8", %t1, 1, 7, 116+ dbgloc 117+ %t4 =l copy %sb+ %t5 =l copy 8+ %t3 =l add %t4, %t5+ %t2 =l loadl %t3+ %t6 =l copy %t2+ storel %t6, %t7+ call $__sx_dbg_keep(l %t7)+ dbgvar "l", "i64", %t7, 8, 5, 117+ dbgloc 118+ %t8 =l copy 1+ %t9 =l add %t6, %t8+ storel %t9, %t10+ call $__sx_dbg_keep(l %t10)+ dbgvar "new_len", "i64", %t10, 8, 5, 118+ dbgloc 120+ %t11 =l copy %sb+ %t12 =l copy 1+ %t13 =l add %t9, %t12+ %t14 =w call $builder__ensure_cap(l %t11, l %t13)+ dbgloc 122+ %t16 =l copy %sb+ %t15 =l loadl %t16+ storel %t15, %t17+ call $__sx_dbg_keep(l %t17)+ dbgvar "ptr", "ref ", %t17, 8, 7, 122+ dbgloc 123+ %t19 =l add %t15, %t6+ storeb %c, %t19+ %t18 =l copy 0+ dbgloc 124+ %t21 =l add %t15, %t9+ %t22 =l copy 0+ storeb %t22, %t21+ %t20 =l copy 0+ dbgloc 125+ %t25 =l copy %sb+ %t26 =l copy 8+ %t24 =l add %t25, %t26+ storel %t9, %t24+ %t23 =l copy 0+ ret 0+}++export function w $builder__StringBuilder__clear(l %sb) {+@start+ %t0 =l alloc8 8+ %t3 =l alloc8 8+ dbgloc 129+ storel %sb, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "sb", "StringBuilder", %t0, 8, 5, 129+ dbgloc 130+ %t2 =l copy %sb+ %t1 =l loadl %t2+ storel %t1, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "ptr", "ref ", %t3, 8, 7, 130+ dbgloc 131+ %t5 =l copy 0+ storeb %t5, %t1+ %t4 =l copy 0+ dbgloc 132+ %t8 =l copy %sb+ %t9 =l copy 8+ %t7 =l add %t8, %t9+ %t10 =l copy 0+ storel %t10, %t7+ %t6 =l copy 0+ ret 0+}++dbgfile "spectrelib/os/core.sx"+data $os__current_child = { w 0 }+data $os__pending_signal = { w 0 }+function w $std__os__interrupt_child(w %sig) {+@start+ %t0 =l alloc8 8+ dbgloc 23+ storew %sig, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "sig", "i32", %t0, 4, 5, 23+ dbgloc 24+ %t1 =w copy %sig+ storew %t1, $os__pending_signal+ dbgloc 25+ %t3 =w loadw $os__current_child+ %t2 =l extsw %t3+ %t4 =w copy 0+ %t5 =w csgtw %t2, %t4+ jnz %t5, @lbl800, @lbl801+@lbl800+ dbgloc 26+ %t7 =w loadw $os__current_child+ %t6 =l extsw %t7+ %t8 =w call $kill(w %t6, w %sig)+ jmp @lbl801+@lbl801+ ret 0+}++export function l $std__os__getenv(l %name) {+@start+ %t0 =l alloc8 8+ dbgloc 139+ storel %name, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "name", "ref u8", %t0, 8, 7, 139+ dbgloc 140+ %t1 =l call $rt__getenv(l %name)+ ret %t1+}++export function w $std__os__mkdir(l %path, w %mode) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 143+ storel %path, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "path", "ref u8", %t0, 8, 7, 143+ storew %mode, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "mode", "u32", %t1, 4, 7, 143+ dbgloc 144+ %t2 =w call $rt__mkdir(l %path, w %mode)+ ret %t2+}++export function w $std__os__rmdir(l %path) {+@start+ %t0 =l alloc8 8+ dbgloc 147+ storel %path, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "path", "ref u8", %t0, 8, 7, 147+ dbgloc 148+ %t1 =w call $rt__rmdir(l %path)+ ret %t1+}++export function l $std__os__opendir(l %path) {+@start+ %t0 =l alloc8 8+ dbgloc 151+ storel %path, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "path", "ref u8", %t0, 8, 7, 151+ dbgloc 152+ %t1 =l call $rt__opendir(l %path)+ ret %t1+}++export function w $std__os__closedir(l %dir) {+@start+ %t0 =l alloc8 8+ dbgloc 155+ storel %dir, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "dir", "ref ", %t0, 8, 7, 155+ dbgloc 156+ %t1 =w call $rt__closedir(l %dir)+ ret %t1+}++export function l $std__os__readdir(l %dir) {+@start+ %t0 =l alloc8 8+ dbgloc 159+ storel %dir, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "dir", "ref ", %t0, 8, 7, 159+ dbgloc 160+ %t1 =l call $rt__readdir(l %dir)+ %t2 =l copy %t1+ ret %t2+}++export function w $std__os__exit(l %code) {+@start+ %t0 =l alloc8 8+ dbgloc 163+ storel %code, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "code", "i64", %t0, 8, 5, 163+ dbgloc 164+ %t1 =w call $rt__exit(w %code)+ ret 0+}++function l $std__os__fopen(l %path, l %mode) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 167+ storel %path, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "path", "ref u8", %t0, 8, 7, 167+ storel %mode, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "mode", "ref u8", %t1, 8, 7, 167+ dbgloc 168+ %t2 =l call $rt__fopen(l %path, l %mode)+ ret %t2+}++function w $std__os__fclose(l %file) {+@start+ %t0 =l alloc8 8+ dbgloc 171+ storel %file, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "file", "ref ", %t0, 8, 7, 171+ dbgloc 172+ %t1 =w call $rt__fclose(l %file)+ ret %t1+}++function l $std__os__fread(l %ptr, l %size, l %nmemb, l %file) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t3 =l alloc8 8+ dbgloc 175+ storel %ptr, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "ptr", "ref ", %t0, 8, 7, 175+ storel %size, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "size", "i64", %t1, 8, 5, 175+ storel %nmemb, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "nmemb", "i64", %t2, 8, 5, 175+ storel %file, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "file", "ref ", %t3, 8, 7, 175+ dbgloc 176+ %t4 =l copy %size+ %t5 =l copy %nmemb+ %t6 =l call $rt__fread(l %ptr, l %t4, l %t5, l %file)+ %t7 =l copy %t6+ ret %t7+}++function l $std__os__fwrite(l %ptr, l %size, l %nmemb, l %file) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t3 =l alloc8 8+ dbgloc 179+ storel %ptr, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "ptr", "ref ", %t0, 8, 7, 179+ storel %size, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "size", "i64", %t1, 8, 5, 179+ storel %nmemb, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "nmemb", "i64", %t2, 8, 5, 179+ storel %file, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "file", "ref ", %t3, 8, 7, 179+ dbgloc 180+ %t4 =l copy %size+ %t5 =l copy %nmemb+ %t6 =l call $rt__fwrite(l %ptr, l %t4, l %t5, l %file)+ %t7 =l copy %t6+ ret %t7+}++function w $std__os__remove(l %path) {+@start+ %t0 =l alloc8 8+ dbgloc 183+ storel %path, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "path", "ref u8", %t0, 8, 7, 183+ dbgloc 184+ %t1 =w call $rt__remove(l %path)+ ret %t1+}++function w $std__os__rename(l %oldpath, l %newpath) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 187+ storel %oldpath, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "oldpath", "ref u8", %t0, 8, 7, 187+ storel %newpath, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "newpath", "ref u8", %t1, 8, 7, 187+ dbgloc 188+ %t2 =w call $rt__rename(l %oldpath, l %newpath)+ ret %t2+}++function w $std__os__access(l %path, w %mode) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 191+ storel %path, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "path", "ref u8", %t0, 8, 7, 191+ storew %mode, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "mode", "i32", %t1, 4, 5, 191+ dbgloc 192+ %t2 =w call $rt__access(l %path, w %mode)+ ret %t2+}++function l $std__os__popen(l %cmd, l %mode) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 195+ storel %cmd, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "cmd", "ref u8", %t0, 8, 7, 195+ storel %mode, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "mode", "ref u8", %t1, 8, 7, 195+ dbgloc 196+ %t2 =l call $rt__popen(l %cmd, l %mode)+ ret %t2+}++function w $std__os__pclose(l %pipe) {+@start+ %t0 =l alloc8 8+ dbgloc 199+ storel %pipe, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "pipe", "ref ", %t0, 8, 7, 199+ dbgloc 200+ %t1 =w call $rt__pclose(l %pipe)+ ret %t1+}++function w $std__os__system(l %cmd) {+@start+ %t0 =l alloc8 8+ dbgloc 203+ storel %cmd, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "cmd", "ref u8", %t0, 8, 7, 203+ dbgloc 204+ %t1 =w call $rt__system(l %cmd)+ ret %t1+}++export function l $std__os__env(l %__ret, l %var) {+@start+ %t0 =l alloc8 8+ %t2 =l alloc8 8+ %t5 =l alloc8 16+ %t6 =l alloc8 16+ dbgloc 213+ storel %var, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "var", "ref u8", %t0, 8, 7, 213+ dbgloc 214+ %t1 =l call $std__os__getenv(l %var)+ storel %t1, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "val_ptr", "ref u8", %t2, 8, 7, 214+ dbgloc 215+ %t3 =l copy 0+ %t4 =w ceql %t1, %t3+ jnz %t4, @lbl803, @lbl804+@lbl803+ dbgloc 216+ storel 0, %t5+ call $memcpy(l %__ret, l %t5, l 16)+ ret %__ret+@lbl804+ dbgloc 218+ call $memset(l %t6, w 0, l 16)+ storel 1, %t6+ %t7 =l add %t6, 8+ storel %t1, %t7+ call $memcpy(l %__ret, l %t6, l 16)+ ret %__ret+}++export function w $std__os__exists(l %path) {+@start+ %t0 =l alloc8 8+ %t4 =l alloc8 8+ dbgloc 222+ storel %path, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "path", "ref u8", %t0, 8, 7, 222+ dbgloc 223+ %t1 =l copy 0+ %t2 =w call $std__os__access(l %path, w %t1)+ %t3 =w copy %t2+ storew %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "result", "i32", %t4, 4, 5, 223+ dbgloc 224+ %t5 =w copy 0+ %t6 =w ceqw %t3, %t5+ ret %t6+}++export function l $std__os__open(l %__ret, l %path, l %mode) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t6 =l alloc8 8+ %t9 =l alloc8 16+ %t10 =l alloc8 16+ dbgloc 228+ storel %path, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "path", "ref u8", %t0, 8, 7, 228+ storel %mode, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "mode", "ref u8", %t1, 8, 7, 228+ dbgloc 229+ %t2 =l copy $__str56+ %t3 =w cnel %mode, %t2+ jnz %t3, @lbl806, @lbl807+@lbl807+ %t4 =l copy $__str57+ call $dprintf(w 2, l %t4)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl806+ dbgloc 232+ %t5 =l call $std__os__fopen(l %path, l %mode)+ storel %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "f", "ref ", %t6, 8, 7, 232+ dbgloc 233+ %t7 =l copy 0+ %t8 =w ceql %t5, %t7+ jnz %t8, @lbl808, @lbl809+@lbl808+ dbgloc 234+ storel 0, %t9+ call $memcpy(l %__ret, l %t9, l 16)+ ret %__ret+@lbl809+ dbgloc 236+ call $memset(l %t10, w 0, l 16)+ storel 1, %t10+ %t11 =l add %t10, 8+ storel %t5, %t11+ call $memcpy(l %__ret, l %t10, l 16)+ ret %__ret+}++export function w $std__os__close(l %file) {+@start+ %t0 =l alloc8 8+ dbgloc 240+ storel %file, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "file", "ref ", %t0, 8, 7, 240+ dbgloc 241+ %t1 =w call $std__os__fclose(l %file)+ ret 0+}++export function l $std__os__read(l %file, l %size) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t6 =l alloc8 8+ dbgloc 245+ storel %file, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "file", "ref ", %t0, 8, 7, 245+ storel %size, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "size", "i64", %t1, 8, 5, 245+ dbgloc 246+ %t2 =l copy 0+ %t3 =w csgtl %size, %t2+ jnz %t3, @lbl811, @lbl812+@lbl812+ %t4 =l copy $__str58+ call $dprintf(w 2, l %t4)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl811+ dbgloc 249+ %t5 =l call $malloc(l %size)+ storel %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "buf", "ref ", %t6, 8, 7, 249+ dbgloc 250+ %t7 =l copy 1+ %t8 =l call $std__os__fread(l %t5, l %t7, l %size, l %file)+ dbgloc 251+ ret %t5+}++export function l $std__os__write(l %file, l %buf, l %size) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ dbgloc 255+ storel %file, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "file", "ref ", %t0, 8, 7, 255+ storel %buf, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "buf", "ref ", %t1, 8, 7, 255+ storel %size, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "size", "i64", %t2, 8, 5, 255+ dbgloc 256+ %t3 =l copy 0+ %t4 =w csgtl %size, %t3+ jnz %t4, @lbl813, @lbl814+@lbl814+ %t5 =l copy $__str59+ call $dprintf(w 2, l %t5)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl813+ dbgloc 259+ %t6 =l copy 1+ %t7 =l call $std__os__fwrite(l %buf, l %t6, l %size, l %file)+ ret %t7+}++export function w $std__os__delete(l %path) {+@start+ %t0 =l alloc8 8+ dbgloc 263+ storel %path, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "path", "ref u8", %t0, 8, 7, 263+ dbgloc 264+ %t1 =w call $std__os__remove(l %path)+ ret %t1+}++export function w $std__os__rename_file(l %oldpath, l %newpath) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 268+ storel %oldpath, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "oldpath", "ref u8", %t0, 8, 7, 268+ storel %newpath, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "newpath", "ref u8", %t1, 8, 7, 268+ dbgloc 269+ %t2 =w call $std__os__rename(l %oldpath, l %newpath)+ ret %t2+}++function w $std__os__is_dot_dir_entry(l %name) {+@start+ %t0 =l alloc8 8+ %t6 =l alloc8 8+ %t17 =l alloc8 8+ %t31 =l alloc8 8+ dbgloc 273+ storel %name, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "name", "ref u8", %t0, 8, 7, 273+ dbgloc 274+ %t2 =w loadub %name+ %t1 =l extsw %t2+ %t3 =w copy %t1+ %t4 =w copy %t3+ %t5 =w extub %t4+ storew %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "c0", "u8", %t6, 1, 7, 274+ dbgloc 275+ %t7 =w copy 46+ %t8 =w cnew %t5, %t7+ jnz %t8, @lbl815, @lbl816+@lbl815+ dbgloc 276+ %t9 =l copy 0+ ret %t9+@lbl816+ dbgloc 278+ %t12 =l copy 1+ %t11 =l add %name, %t12+ %t13 =w loadub %t11+ %t10 =l extsw %t13+ %t14 =w copy %t10+ %t15 =w copy %t14+ %t16 =w extub %t15+ storew %t16, %t17+ call $__sx_dbg_keep(l %t17)+ dbgvar "c1", "u8", %t17, 1, 7, 278+ dbgloc 279+ %t18 =w copy 0+ %t19 =w ceqw %t16, %t18+ jnz %t19, @lbl818, @lbl819+@lbl818+ dbgloc 280+ %t20 =l copy 1+ ret %t20+@lbl819+ dbgloc 282+ %t21 =w copy 46+ %t22 =w cnew %t16, %t21+ jnz %t22, @lbl821, @lbl822+@lbl821+ dbgloc 283+ %t23 =l copy 0+ ret %t23+@lbl822+ dbgloc 285+ %t26 =l copy 2+ %t25 =l add %name, %t26+ %t27 =w loadub %t25+ %t24 =l extsw %t27+ %t28 =w copy %t24+ %t29 =w copy %t28+ %t30 =w extub %t29+ storew %t30, %t31+ call $__sx_dbg_keep(l %t31)+ dbgvar "c2", "u8", %t31, 1, 7, 285+ dbgloc 286+ %t32 =w copy 0+ %t33 =w ceqw %t30, %t32+ ret %t33+}++function w $std__os__ensure_dir(l %path) {+@start+ %t0 =l alloc8 8+ dbgloc 289+ storel %path, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "path", "ref u8", %t0, 8, 7, 289+ dbgloc 290+ %t1 =w call $std__os__exists(l %path)+ jnz %t1, @lbl824, @lbl825+@lbl824+ dbgloc 291+ %t2 =l copy 1+ ret %t2+@lbl825+ dbgloc 293+ dbgloc 296+ dbgloc 297+ %t3 =l copy 493+ %t4 =w call $std__os__mkdir(l %path, w %t3)+ %t5 =w copy 0+ %t6 =w ceqw %t4, %t5+ ret %t6+}++export function w $std__os__copy_file(l %src_path, l %dst_path) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t4 =l alloc8 16+ %t5 =l alloc8 8+ %t12 =l alloc8 16+ %t13 =l alloc8 8+ %t19 =l alloc8 8+ %t21 =l alloc8 8+ %t25 =l alloc8 8+ %t28 =l alloc8 8+ %t33 =l alloc8 8+ dbgloc 303+ storel %src_path, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "src_path", "ref u8", %t0, 8, 7, 303+ storel %dst_path, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "dst_path", "ref u8", %t1, 8, 7, 303+ dbgloc 304+ %t2 =l copy $__str60+ %t3 =l call $std__os__open(l %t4, l %src_path, l %t2)+ storel %t4, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "src_opt", "option[ref ]", %t5, 8, 5, 304+ dbgloc 305+ %t6 =l loadl %t4+ %t7 =w cnel %t6, 0+ jnz %t7, @lbl827, @lbl828+@lbl827+ %t9 =l add %t4, 8+ %t8 =l loadl %t9+ dbgloc 310+ %t10 =l copy $__str61+ %t11 =l call $std__os__open(l %t12, l %dst_path, l %t10)+ storel %t12, %t13+ call $__sx_dbg_keep(l %t13)+ dbgvar "dst_opt", "option[ref ]", %t13, 8, 5, 310+ dbgloc 311+ %t14 =l loadl %t12+ %t15 =w cnel %t14, 0+ jnz %t15, @lbl830, @lbl831+@lbl830+ %t17 =l add %t12, 8+ %t16 =l loadl %t17+ dbgloc 317+ %t18 =l copy 4096+ storel %t18, %t19+ call $__sx_dbg_keep(l %t19)+ dbgvar "buf_size", "i64", %t19, 8, 5, 317+ dbgloc 318+ %t20 =l call $malloc(l %t18)+ storel %t20, %t21+ call $__sx_dbg_keep(l %t21)+ dbgvar "buf", "ref ", %t21, 8, 7, 318+ dbgloc 319+ %t22 =l copy 1+ %t23 =w copy %t22+ %t24 =w extub %t23+ storew %t24, %t25+ call $__sx_dbg_keep(l %t25)+ dbgvar "its_ok", "bool", %t25, 1, 7, 319+ dbgloc 320+ jmp @lbl833+@lbl833+ jmp @lbl834+@lbl834+ dbgloc 321+ %t26 =l copy 1+ %t27 =l call $std__os__fread(l %t20, l %t26, l %t18, l %t8)+ storel %t27, %t28+ call $__sx_dbg_keep(l %t28)+ dbgvar "n", "i64", %t28, 8, 5, 321+ dbgloc 322+ %t29 =l copy 0+ %t30 =w ceql %t27, %t29+ jnz %t30, @lbl837, @lbl838+@lbl837+ dbgloc 323+ jmp @lbl836+@lbl838+ dbgloc 325+ %t31 =l copy 1+ %t32 =l call $std__os__fwrite(l %t20, l %t31, l %t27, l %t16)+ storel %t32, %t33+ call $__sx_dbg_keep(l %t33)+ dbgvar "written", "i64", %t33, 8, 5, 325+ dbgloc 326+ %t34 =w cnel %t32, %t27+ jnz %t34, @lbl840, @lbl841+@lbl840+ dbgloc 327+ %t35 =l copy 0+ %t36 =w copy %t35+ %t37 =w extub %t36+ storew %t37, %t25+ dbgloc 328+ jmp @lbl836+@lbl841+ jmp @lbl835+@lbl835+ jmp @lbl833+@lbl836+ dbgloc 331+ call $free(l %t20)+ %t38 =l copy 0+ dbgloc 332+ %t39 =w call $std__os__close(l %t16)+ dbgloc 333+ %t40 =w call $std__os__close(l %t8)+ dbgloc 334+ %t42 =w loadw %t25+ %t41 =l extsw %t42+ ret %t41+@lbl831+ dbgloc 313+ %t43 =w call $std__os__close(l %t8)+ dbgloc 314+ %t44 =l copy 0+ ret %t44+@lbl832+ jmp @lbl829+@lbl828+ dbgloc 307+ %t45 =l copy 0+ ret %t45+@lbl829+ ret 0+}++export function w $std__os__copy_dir_recursive(l %src_dir, l %dst_dir) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t6 =l alloc8 8+ %t13 =l alloc8 8+ %t15 =l alloc8 8+ %t20 =l alloc8 8+ %t42 =l alloc8 8+ %t51 =l alloc8 8+ %t53 =l alloc8 8+ dbgloc 342+ storel %src_dir, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "src_dir", "ref u8", %t0, 8, 7, 342+ storel %dst_dir, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "dst_dir", "ref u8", %t1, 8, 7, 342+ dbgloc 343+ dbgloc 389+ dbgloc 390+ %t2 =w call $std__os__ensure_dir(l %dst_dir)+ %t3 =w ceqw %t2, 0+ jnz %t3, @lbl843, @lbl844+@lbl843+ dbgloc 391+ %t4 =l copy 0+ ret %t4+@lbl844+ dbgloc 394+ %t5 =l call $std__os__opendir(l %src_dir)+ storel %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "dir", "ref ", %t6, 8, 7, 394+ dbgloc 395+ %t7 =l copy 0+ %t8 =w ceql %t5, %t7+ jnz %t8, @lbl846, @lbl847+@lbl846+ dbgloc 396+ %t9 =l copy 0+ ret %t9+@lbl847+ dbgloc 399+ %t10 =l copy 1+ %t11 =w copy %t10+ %t12 =w extub %t11+ storew %t12, %t13+ call $__sx_dbg_keep(l %t13)+ dbgvar "its_ok", "bool", %t13, 1, 7, 399+ dbgloc 400+ jmp @lbl849+@lbl849+ jmp @lbl850+@lbl850+ dbgloc 401+ %t14 =l call $std__os__readdir(l %t5)+ storel %t14, %t15+ call $__sx_dbg_keep(l %t15)+ dbgvar "entry", "ref Dirent", %t15, 8, 7, 401+ dbgloc 402+ %t16 =l copy 0+ %t17 =w ceql %t14, %t16+ jnz %t17, @lbl853, @lbl854+@lbl853+ dbgloc 403+ jmp @lbl852+@lbl854+ dbgloc 405+ %t18 =l add %t14, 19+ %t19 =l copy %t18+ storel %t19, %t20+ call $__sx_dbg_keep(l %t20)+ dbgvar "name", "ref u8", %t20, 8, 7, 405+ dbgloc 407+ %t21 =w call $std__os__is_dot_dir_entry(l %t19)+ jnz %t21, @lbl856, @lbl857+@lbl856+ dbgloc 408+ jmp @lbl851+@lbl857+ dbgloc 411+ %t22 =l copy $__str56+ %t23 =l call $cstr__cmp(l %src_dir, l %t22)+ %t24 =l copy 0+ %t25 =w ceql %t23, %t24+ jnz %t25, @lbl859, @lbl860+@lbl859+ dbgloc 412+ jmp @lbl852+@lbl860+ dbgloc 415+ %t26 =l copy $__str56+ %t27 =l call $cstr__cmp(l %dst_dir, l %t26)+ %t28 =l copy 0+ %t29 =w ceql %t27, %t28+ jnz %t29, @lbl862, @lbl863+@lbl862+ dbgloc 416+ jmp @lbl852+@lbl863+ dbgloc 419+ %t30 =l copy $__str56+ %t31 =l call $cstr__cmp(l %t19, l %t30)+ %t32 =l copy 0+ %t33 =w ceql %t31, %t32+ jnz %t33, @lbl865, @lbl866+@lbl865+ dbgloc 420+ jmp @lbl852+@lbl866+ dbgloc 423+ %t35 =l copy $__str62+ %t36 =l call $malloc(l 4096)+ %t37 =w call $snprintf(l %t36, l 4096, l %t35, ..., l %src_dir, l %t19)+ %t38 =l extsw %t37+ %t39 =l add %t38, 1+ %t40 =l call $malloc(l %t39)+ call $memcpy(l %t40, l %t36, l %t38)+ %t41 =l add %t40, %t38+ storeb 0, %t41+ call $free(l %t36)+ %t34 =l copy %t40+ storel %t34, %t42+ call $__sx_dbg_keep(l %t42)+ dbgvar "src_child", "ref u8", %t42, 8, 7, 423+ dbgloc 424+ %t44 =l copy $__str62+ %t45 =l call $malloc(l 4096)+ %t46 =w call $snprintf(l %t45, l 4096, l %t44, ..., l %dst_dir, l %t19)+ %t47 =l extsw %t46+ %t48 =l add %t47, 1+ %t49 =l call $malloc(l %t48)+ call $memcpy(l %t49, l %t45, l %t47)+ %t50 =l add %t49, %t47+ storeb 0, %t50+ call $free(l %t45)+ %t43 =l copy %t49+ storel %t43, %t51+ call $__sx_dbg_keep(l %t51)+ dbgvar "dst_child", "ref u8", %t51, 8, 7, 424+ dbgloc 425+ %t52 =l call $std__os__opendir(l %t34)+ storel %t52, %t53+ call $__sx_dbg_keep(l %t53)+ dbgvar "child_dir", "ref ", %t53, 8, 7, 425+ dbgloc 427+ %t54 =l copy 0+ %t55 =w cnel %t52, %t54+ jnz %t55, @lbl868, @lbl870+@lbl868+ dbgloc 428+ %t56 =w call $std__os__closedir(l %t52)+ dbgloc 429+ %t57 =w call $std__os__copy_dir_recursive(l %t34, l %t43)+ %t58 =w ceqw %t57, 0+ jnz %t58, @lbl873, @lbl874+@lbl873+ dbgloc 430+ %t59 =l copy 0+ %t60 =w copy %t59+ %t61 =w extub %t60+ storew %t61, %t13+ dbgloc 431+ jmp @lbl852+@lbl874+ jmp @lbl869+@lbl870+ %t62 =w call $std__os__copy_file(l %t34, l %t43)+ %t63 =w ceqw %t62, 0+ jnz %t63, @lbl871, @lbl869+@lbl871+ dbgloc 434+ %t64 =l copy 0+ %t65 =w copy %t64+ %t66 =w extub %t65+ storew %t66, %t13+ dbgloc 435+ jmp @lbl852+@lbl869+ jmp @lbl851+@lbl851+ jmp @lbl849+@lbl852+ dbgloc 439+ %t67 =w call $std__os__closedir(l %t5)+ dbgloc 440+ %t69 =w loadw %t13+ %t68 =l extsw %t69+ ret %t68+}++function w $std__os__bytes_equal(l %buf, l %expected, l %len) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t4 =l alloc8 8+ %t15 =l alloc8 8+ %t23 =l alloc8 8+ dbgloc 445+ storel %buf, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "buf", "ref ", %t0, 8, 7, 445+ storel %expected, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "expected", "ref u8", %t1, 8, 7, 445+ storel %len, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "len", "i64", %t2, 8, 5, 445+ dbgloc 446+ %t3 =l copy 0+ storel %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "i", "i64", %t4, 8, 5, 446+ dbgloc 447+ jmp @lbl876+@lbl876+ jmp @lbl877+@lbl877+ dbgloc 448+ %t5 =l loadl %t4+ %t7 =w csltl %t5, %len+ %t6 =w ceqw %t7, 0+ jnz %t6, @lbl880, @lbl881+@lbl880+ dbgloc 449+ jmp @lbl879+@lbl881+ dbgloc 451+ %t10 =l loadl %t4+ %t9 =l add %buf, %t10+ %t11 =w loadub %t9+ %t8 =l extsw %t11+ %t12 =w copy %t8+ %t13 =w copy %t12+ %t14 =w extub %t13+ storew %t14, %t15+ call $__sx_dbg_keep(l %t15)+ dbgvar "a", "u8", %t15, 1, 7, 451+ dbgloc 452+ %t18 =l loadl %t4+ %t17 =l add %expected, %t18+ %t19 =w loadub %t17+ %t16 =l extsw %t19+ %t20 =w copy %t16+ %t21 =w copy %t20+ %t22 =w extub %t21+ storew %t22, %t23+ call $__sx_dbg_keep(l %t23)+ dbgvar "b", "u8", %t23, 1, 7, 452+ dbgloc 453+ %t24 =l extsw %t14+ %t25 =l extsw %t22+ %t26 =w cnew %t24, %t25+ jnz %t26, @lbl883, @lbl884+@lbl883+ dbgloc 454+ %t27 =l copy 0+ ret %t27+@lbl884+ dbgloc 456+ %t28 =l loadl %t4+ %t29 =l add %t28, 1+ storel %t29, %t4+ jmp @lbl878+@lbl878+ jmp @lbl876+@lbl879+ dbgloc 458+ %t30 =l copy 1+ ret %t30+}++export function l $std__os__get_args() {+@start+ dbgloc 462+ dbgloc 463+ %t0 =l call $__sx_get_args()+ ret %t0+}++function l $std__os__command_for_shell(l %cmd) {+@start+ %t0 =l alloc8 8+ dbgloc 469+ storel %cmd, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "cmd", "ref u8", %t0, 8, 7, 469+ dbgloc 470+ dbgloc 475+ ret %cmd+}++export function w $std__os__run(l %cmd) {+@start+ %t0 =l alloc8 8+ %t2 =l alloc8 8+ %t5 =l alloc8 8+ dbgloc 479+ storel %cmd, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "cmd", "ref u8", %t0, 8, 7, 479+ dbgloc 480+ %t1 =l call $std__os__command_for_shell(l %cmd)+ storel %t1, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "actual", "ref u8", %t2, 8, 7, 480+ dbgloc 481+ %t3 =w call $std__os__system(l %t1)+ %t4 =w copy %t3+ storew %t4, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "code", "i32", %t5, 4, 5, 481+ dbgloc 482+ %t6 =w cnel %t1, %cmd+ jnz %t6, @lbl886, @lbl887+@lbl886+ dbgloc 483+ %t8 =l copy %t1+ call $free(l %t8)+ %t7 =l copy 0+ jmp @lbl887+@lbl887+ dbgloc 485+ ret %t4+}++export function l $std__os__run_interruptible(l %cmd) {+@start+ %t0 =l alloc8 8+ %t2 =l alloc8 8+ %t7 =l alloc8 8+ %t12 =l alloc8 8+ %t32 =l alloc8 8+ %t36 =l alloc8 8+ %t41 =l alloc8 8+ %t61 =l alloc8 8+ %t65 =l alloc8 8+ %t79 =l alloc8 8+ %t88 =l alloc8 8+ %t99 =l alloc8 8+ %t114 =l alloc8 8+ %t127 =l alloc8 8+ dbgloc 496+ storel %cmd, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "cmd", "ref u8", %t0, 8, 7, 496+ dbgloc 497+ dbgloc 498+ dbgloc 499+ %t1 =l call $std__os__command_for_shell(l %cmd)+ storel %t1, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "actual", "ref u8", %t2, 8, 7, 499+ dbgloc 500+ %t3 =l copy 2+ %t4 =l copy $std__os__interrupt_child+ %t6 =w copy %t3+ %t5 =l call $rt__signal(w %t6, l %t4)+ storel %t5, %t7+ call $__sx_dbg_keep(l %t7)+ dbgvar "previous_int", "fn(i32) ", %t7, 8, 5, 500+ dbgloc 501+ %t8 =l copy 15+ %t9 =l copy $std__os__interrupt_child+ %t11 =w copy %t8+ %t10 =l call $rt__signal(w %t11, l %t9)+ storel %t10, %t12+ call $__sx_dbg_keep(l %t12)+ dbgvar "previous_term", "fn(i32) ", %t12, 8, 5, 501+ dbgloc 502+ %t13 =w copy 0+ %t14 =w copy %t13+ storew %t14, $os__pending_signal+ dbgloc 503+ %t15 =w call $fork()+ %t16 =w copy %t15+ storew %t16, $os__current_child+ dbgloc 504+ %t18 =w loadw $os__current_child+ %t17 =l extsw %t18+ %t19 =w copy 0+ %t20 =w ceqw %t17, %t19+ jnz %t20, @lbl889, @lbl890+@lbl889+ dbgloc 505+ %t21 =l copy $__str63+ %t22 =l copy $__str64+ %t23 =l copy $__str65+ %t24 =l copy 0+ %t25 =w call $execl(l %t21, l %t22, l %t23, l %t1, l %t24)+ dbgloc 506+ %t26 =l copy 127+ %t28 =w copy %t26+ %t27 =w call $_exit(w %t28)+ jmp @lbl890+@lbl890+ dbgloc 508+ %t30 =w loadw $os__current_child+ %t29 =l extsw %t30+ %t31 =w copy %t29+ storew %t31, %t32+ call $__sx_dbg_keep(l %t32)+ dbgvar "pid", "i32", %t32, 4, 5, 508+ dbgloc 509+ %t33 =l copy 0+ %t34 =w copy %t33+ %t35 =w copy %t34+ storew %t35, %t36+ call $__sx_dbg_keep(l %t36)+ dbgvar "status", "i32", %t36, 4, 5, 509+ dbgloc 510+ %t37 =l copy 1+ %t38 =l neg %t37+ %t39 =w copy %t38+ %t40 =w copy %t39+ storew %t40, %t41+ call $__sx_dbg_keep(l %t41)+ dbgvar "awaited", "i32", %t41, 4, 5, 510+ dbgloc 511+ %t42 =w copy 0+ %t43 =w csgtw %t31, %t42+ jnz %t43, @lbl892, @lbl893+@lbl892+ dbgloc 512+ jmp @lbl895+@lbl895+ jmp @lbl896+@lbl896+ dbgloc 513+ %t44 =l copy 0+ %t46 =w copy %t44+ %t45 =w call $waitpid(w %t31, l %t36, w %t46)+ %t47 =w copy %t45+ storew %t47, %t41+ dbgloc 514+ %t49 =w loadw %t41+ %t48 =l extsw %t49+ %t50 =w copy 0+ %t52 =w csltw %t48, %t50+ %t51 =w ceqw %t52, 0+ jnz %t51, @lbl899, @lbl900+@lbl899+ dbgloc 515+ jmp @lbl898+@lbl900+ jmp @lbl897+@lbl897+ jmp @lbl895+@lbl898+ jmp @lbl893+@lbl893+ dbgloc 519+ %t53 =w copy 0+ %t54 =w copy %t53+ storew %t54, $os__current_child+ dbgloc 520+ %t56 =w loadw $os__pending_signal+ %t55 =l extsw %t56+ %t57 =w copy 0+ %t58 =w cnew %t55, %t57+ %t59 =w copy %t58+ %t60 =w extub %t59+ storew %t60, %t61+ call $__sx_dbg_keep(l %t61)+ dbgvar "cancelled", "bool", %t61, 1, 7, 520+ dbgloc 521+ %t63 =w loadw $os__pending_signal+ %t62 =l extsw %t63+ %t64 =w copy %t62+ storew %t64, %t65+ call $__sx_dbg_keep(l %t65)+ dbgvar "signum", "i32", %t65, 4, 5, 521+ dbgloc 522+ %t66 =w copy 0+ %t67 =w copy %t66+ storew %t67, $os__pending_signal+ dbgloc 523+ %t68 =l copy 2+ %t70 =w copy %t68+ %t69 =l call $rt__signal(w %t70, l %t5)+ dbgloc 524+ %t71 =l copy 15+ %t73 =w copy %t71+ %t72 =l call $rt__signal(w %t73, l %t10)+ dbgloc 525+ %t74 =w cnel %t1, %cmd+ jnz %t74, @lbl902, @lbl903+@lbl902+ dbgloc 526+ %t76 =l copy %t1+ call $free(l %t76)+ %t75 =l copy 0+ jmp @lbl903+@lbl903+ dbgloc 528+ %t77 =w copy 0+ %t78 =w cslew %t31, %t77+ jnz %t78, @lbl905, @lbl906+@lbl905+ dbgloc 529+ %t80 =l copy 127+ storew %t80, %t79+ %t82 =l copy 0+ %t83 =l add %t79, 4+ storew %t82, %t83+ %t84 =l call $malloc(l 8)+ call $memcpy(l %t84, l %t79, l 8)+ ret %t84+@lbl906+ dbgloc 531+ jnz %t60, @lbl908, @lbl909+@lbl908+ dbgloc 532+ %t85 =l copy 0+ %t86 =w copy %t85+ %t87 =w copy %t86+ storew %t87, %t88+ call $__sx_dbg_keep(l %t88)+ dbgvar "code", "i32", %t88, 4, 5, 532+ dbgloc 533+ %t89 =w copy 2+ %t90 =w ceqw %t64, %t89+ jnz %t90, @lbl911, @lbl913+@lbl911+ dbgloc 534+ %t91 =w copy 130+ %t92 =w copy %t91+ storew %t92, %t88+ jmp @lbl912+@lbl913+ dbgloc 536+ %t93 =l copy 128+ %t94 =l extsw %t64+ %t96 =l extsw %t94+ %t95 =l add %t93, %t96+ %t97 =w copy %t95+ %t98 =w copy %t97+ storew %t98, %t88+ jmp @lbl912+@lbl912+ dbgloc 538+ %t101 =w loadw %t88+ %t100 =l extsw %t101+ storew %t100, %t99+ %t103 =l copy 1+ %t104 =l add %t99, 4+ storew %t103, %t104+ %t105 =l call $malloc(l 8)+ call $memcpy(l %t105, l %t99, l 8)+ ret %t105+@lbl909+ dbgloc 540+ %t107 =w loadw %t36+ %t106 =l extsw %t107+ %t108 =l extsw %t106+ %t109 =l copy 127+ %t111 =l extsw %t108+ %t110 =l and %t111, %t109+ %t112 =l copy 0+ %t113 =w ceql %t110, %t112+ jnz %t113, @lbl914, @lbl915+@lbl914+ dbgloc 541+ %t116 =w loadw %t36+ %t115 =l extsw %t116+ %t117 =l extsw %t115+ %t118 =l copy 8+ %t120 =l extsw %t117+ %t119 =l shr %t120, %t118+ %t121 =l copy 255+ %t122 =l and %t119, %t121+ storew %t122, %t114+ %t124 =l copy 0+ %t125 =l add %t114, 4+ storew %t124, %t125+ %t126 =l call $malloc(l 8)+ call $memcpy(l %t126, l %t114, l 8)+ ret %t126+@lbl915+ dbgloc 543+ %t128 =l copy 128+ %t130 =w loadw %t36+ %t129 =l extsw %t130+ %t131 =l extsw %t129+ %t132 =l copy 127+ %t134 =l extsw %t131+ %t133 =l and %t134, %t132+ %t135 =l add %t128, %t133+ storew %t135, %t127+ %t137 =l copy 0+ %t138 =l add %t127, 4+ storew %t137, %t138+ %t139 =l call $malloc(l 8)+ call $memcpy(l %t139, l %t127, l 8)+ ret %t139+}++export function l $std__os__exec(l %__ret, l %cmd) {+@start+ %t0 =l alloc8 8+ %t2 =l alloc8 8+ %t5 =l alloc8 8+ %t11 =l alloc8 16+ %t15 =l alloc8 8+ %t17 =l alloc8 8+ %t19 =l alloc8 8+ %t22 =l alloc8 8+ %t27 =l alloc8 16+ %t33 =l alloc8 8+ %t44 =l alloc8 8+ %t52 =l alloc8 8+ %t54 =l alloc8 16+ dbgloc 550+ storel %cmd, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "cmd", "ref u8", %t0, 8, 7, 550+ dbgloc 551+ %t1 =l call $std__os__command_for_shell(l %cmd)+ storel %t1, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "actual", "ref u8", %t2, 8, 7, 551+ dbgloc 552+ %t3 =l copy $__str66+ %t4 =l call $std__os__popen(l %t1, l %t3)+ storel %t4, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "pipe", "ref ", %t5, 8, 7, 552+ dbgloc 553+ %t6 =w cnel %t1, %cmd+ jnz %t6, @lbl917, @lbl918+@lbl917+ dbgloc 554+ %t8 =l copy %t1+ call $free(l %t8)+ %t7 =l copy 0+ jmp @lbl918+@lbl918+ dbgloc 556+ %t9 =l copy 0+ %t10 =w ceql %t4, %t9+ jnz %t10, @lbl920, @lbl921+@lbl920+ dbgloc 557+ call $memset(l %t11, w 0, l 16)+ storel 1, %t11+ %t12 =l copy 0+ %t13 =l add %t11, 8+ storel %t12, %t13+ call $memcpy(l %__ret, l %t11, l 16)+ ret %__ret+@lbl921+ dbgloc 560+ %t14 =l call $builder__StringBuilder__new()+ storel %t14, %t15+ call $__sx_dbg_keep(l %t15)+ dbgvar "sb", "ref ", %t15, 8, 7, 560+ dbgloc 561+ %t16 =l copy 1024+ storel %t16, %t17+ call $__sx_dbg_keep(l %t17)+ dbgvar "buf_size", "i64", %t17, 8, 5, 561+ dbgloc 562+ %t18 =l call $malloc(l %t16)+ storel %t18, %t19+ call $__sx_dbg_keep(l %t19)+ dbgvar "buf", "ref ", %t19, 8, 7, 562+ dbgloc 564+ jmp @lbl923+@lbl923+ jmp @lbl924+@lbl924+ dbgloc 565+ %t20 =l copy 1+ %t21 =l call $std__os__fread(l %t18, l %t20, l %t16, l %t4)+ storel %t21, %t22+ call $__sx_dbg_keep(l %t22)+ dbgvar "n", "i64", %t22, 8, 5, 565+ dbgloc 567+ %t23 =l copy 0+ %t24 =w csltl %t21, %t23+ jnz %t24, @lbl927, @lbl928+@lbl927+ dbgloc 568+ call $free(l %t18)+ %t25 =l copy 0+ dbgloc 569+ %t26 =w call $std__os__pclose(l %t4)+ dbgloc 570+ call $memset(l %t27, w 0, l 16)+ storel 1, %t27+ %t28 =l copy 1+ %t29 =l add %t27, 8+ storel %t28, %t29+ call $memcpy(l %__ret, l %t27, l 16)+ ret %__ret+@lbl928+ dbgloc 573+ %t30 =l copy 0+ %t31 =w ceql %t21, %t30+ jnz %t31, @lbl930, @lbl931+@lbl930+ dbgloc 574+ jmp @lbl926+@lbl931+ dbgloc 577+ %t32 =l copy 0+ storel %t32, %t33+ call $__sx_dbg_keep(l %t33)+ dbgvar "i", "i64", %t33, 8, 5, 577+ dbgloc 578+ jmp @lbl933+@lbl933+ jmp @lbl934+@lbl934+ dbgloc 579+ %t34 =l loadl %t33+ %t36 =w csltl %t34, %t21+ %t35 =w ceqw %t36, 0+ jnz %t35, @lbl937, @lbl938+@lbl937+ dbgloc 580+ jmp @lbl936+@lbl938+ dbgloc 582+ %t39 =l loadl %t33+ %t38 =l add %t18, %t39+ %t40 =w loadub %t38+ %t37 =l extsw %t40+ %t41 =w copy %t37+ %t42 =w copy %t41+ %t43 =w extub %t42+ storew %t43, %t44+ call $__sx_dbg_keep(l %t44)+ dbgvar "c", "u8", %t44, 1, 7, 582+ dbgloc 583+ %t45 =w call $builder__StringBuilder__append_char(l %t14, w %t43)+ dbgloc 584+ %t46 =l loadl %t33+ %t47 =l add %t46, 1+ storel %t47, %t33+ jmp @lbl935+@lbl935+ jmp @lbl933+@lbl936+ jmp @lbl925+@lbl925+ jmp @lbl923+@lbl926+ dbgloc 588+ call $free(l %t18)+ %t48 =l copy 0+ dbgloc 589+ %t49 =w call $std__os__pclose(l %t4)+ dbgloc 591+ %t50 =l call $builder__StringBuilder__build(l %t14)+ %t51 =l copy %t50+ storel %t51, %t52+ call $__sx_dbg_keep(l %t52)+ dbgvar "out", "String", %t52, 8, 5, 591+ dbgloc 592+ %t53 =w call $builder__StringBuilder__free(l %t14)+ dbgloc 594+ call $memset(l %t54, w 0, l 16)+ storel 0, %t54+ %t55 =l add %t54, 8+ storel %t51, %t55+ call $memcpy(l %__ret, l %t54, l 16)+ ret %__ret+}++function w $std__os__path_separator() {+@start+ dbgloc 597+ dbgloc 598+ dbgloc 601+ %t0 =l copy 58+ %t1 =w copy %t0+ ret %t1+}++export function w $std__os__in_path(l %binary) {+@start+ %t0 =l alloc8 8+ %t3 =l alloc8 16+ %t4 =l alloc8 8+ %t13 =l alloc8 8+ %t15 =l alloc8 8+ %t17 =l alloc8 8+ %t25 =l alloc8 8+ %t29 =l alloc4 1+ %t36 =l alloc8 8+ %t42 =l alloc8 8+ %t58 =l alloc8 8+ dbgloc 605+ storel %binary, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "binary", "ref u8", %t0, 8, 7, 605+ dbgloc 606+ %t1 =l copy $__str67+ %t2 =l call $std__os__env(l %t3, l %t1)+ storel %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "path_env", "option[ref u8]", %t4, 8, 5, 606+ dbgloc 607+ %t5 =l loadl %t3+ %t6 =w cnel %t5, 0+ jnz %t6, @lbl940, @lbl941+@lbl940+ %t8 =l add %t3, 8+ %t7 =l loadl %t8+ dbgloc 612+ %t9 =l copy 58+ %t10 =w copy %t9+ %t11 =w copy %t10+ %t12 =w extub %t11+ storew %t12, %t13+ call $__sx_dbg_keep(l %t13)+ dbgvar "sep", "u8", %t13, 1, 7, 612+ dbgloc 614+ %t14 =l copy 0+ storel %t14, %t15+ call $__sx_dbg_keep(l %t15)+ dbgvar "i", "i64", %t15, 8, 5, 614+ dbgloc 615+ %t16 =l copy 0+ storel %t16, %t17+ call $__sx_dbg_keep(l %t17)+ dbgvar "start", "i64", %t17, 8, 5, 615+ dbgloc 616+ jmp @lbl943+@lbl943+ jmp @lbl944+@lbl944+ dbgloc 617+ %t20 =l loadl %t15+ %t19 =l add %t7, %t20+ %t21 =w loadub %t19+ %t18 =l extsw %t21+ %t22 =w copy %t18+ %t23 =w copy %t22+ %t24 =w extub %t23+ storew %t24, %t25+ call $__sx_dbg_keep(l %t25)+ dbgvar "c", "u8", %t25, 1, 7, 617+ dbgloc 618+ %t26 =l extsw %t24+ %t27 =l extsw %t12+ %t28 =w ceqw %t26, %t27+ storew %t28, %t29+ jnz %t28, @lbl951, @lbl950+@lbl950+ %t30 =w copy 0+ %t31 =w ceqw %t24, %t30+ storew %t31, %t29+ jmp @lbl951+@lbl951+ %t32 =w loadw %t29+ jnz %t32, @lbl947, @lbl948+@lbl947+ dbgloc 619+ %t33 =l loadl %t15+ %t34 =l loadl %t17+ %t35 =l sub %t33, %t34+ storel %t35, %t36+ call $__sx_dbg_keep(l %t36)+ dbgvar "dir_len", "i64", %t36, 8, 5, 619+ dbgloc 620+ %t37 =l copy 0+ %t38 =w csgtl %t35, %t37+ jnz %t38, @lbl952, @lbl953+@lbl952+ dbgloc 621+ %t40 =l copy 1+ %t41 =l add %t35, %t40+ %t39 =l call $malloc(l %t41)+ storel %t39, %t42+ call $__sx_dbg_keep(l %t42)+ dbgvar "dir_buf", "ref ", %t42, 8, 7, 621+ dbgloc 622+ %t45 =l loadl %t17+ %t44 =l add %t7, %t45+ call $memcpy(l %t39, l %t44, l %t35)+ %t43 =l copy 0+ dbgloc 623+ %t47 =l add %t39, %t35+ %t48 =l copy 0+ storeb %t48, %t47+ %t46 =l copy 0+ dbgloc 624+ %t50 =l copy $__str62+ %t51 =l call $malloc(l 4096)+ %t57 =l copy %t39+ %t52 =w call $snprintf(l %t51, l 4096, l %t50, ..., l %t57, l %binary)+ %t53 =l extsw %t52+ %t54 =l add %t53, 1+ %t55 =l call $malloc(l %t54)+ call $memcpy(l %t55, l %t51, l %t53)+ %t56 =l add %t55, %t53+ storeb 0, %t56+ call $free(l %t51)+ %t49 =l copy %t55+ storel %t49, %t58+ call $__sx_dbg_keep(l %t58)+ dbgvar "full", "ref u8", %t58, 8, 7, 624+ dbgloc 625+ call $free(l %t39)+ %t59 =l copy 0+ dbgloc 626+ %t60 =w call $std__os__exists(l %t49)+ jnz %t60, @lbl955, @lbl956+@lbl955+ dbgloc 627+ %t61 =l copy 1+ ret %t61+@lbl956+ jmp @lbl953+@lbl953+ dbgloc 630+ %t62 =l loadl %t15+ %t63 =l copy 1+ %t64 =l add %t62, %t63+ storel %t64, %t17+ jmp @lbl948+@lbl948+ dbgloc 632+ %t65 =w copy 0+ %t66 =w ceqw %t24, %t65+ jnz %t66, @lbl958, @lbl959+@lbl958+ dbgloc 633+ jmp @lbl946+@lbl959+ dbgloc 635+ %t67 =l loadl %t15+ %t68 =l add %t67, 1+ storel %t68, %t15+ jmp @lbl945+@lbl945+ jmp @lbl943+@lbl946+ dbgloc 637+ %t69 =l copy 0+ ret %t69+@lbl941+ dbgloc 609+ %t70 =l copy 0+ ret %t70+@lbl942+ ret 0+}++export function l $std__os__exec_trim(l %__ret, l %cmd) {+@start+ %t0 =l alloc8 8+ %t2 =l alloc8 16+ %t7 =l alloc8 8+ %t12 =l alloc8 16+ %t15 =l alloc8 16+ dbgloc 643+ storel %cmd, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "cmd", "ref u8", %t0, 8, 7, 643+ dbgloc 644+ %t1 =l call $std__os__exec(l %t2, l %cmd)+ %t3 =l loadl %t2+ %t4 =w ceql %t3, 0+ jnz %t4, @lbl961, @lbl962+@lbl962+ call $memcpy(l %__ret, l %t2, l 16)+ ret %__ret+@lbl961+ %t6 =l add %t2, 8+ %t5 =l loadl %t6+ storel %t5, %t7+ call $__sx_dbg_keep(l %t7)+ dbgvar "res", "String", %t7, 8, 5, 644+ dbgloc 645+ %t8 =w copy 1+ jnz %t5, @lbl963, @lbl964+@lbl963+ %t10 =l copy %t5+ dbgloc 647+ %t11 =w call $ostr__trim(l %t10)+ dbgloc 648+ call $memset(l %t12, w 0, l 16)+ storel 0, %t12+ %t13 =l add %t12, 8+ storel %t10, %t13+ call $memcpy(l %__ret, l %t12, l 16)+ ret %__ret+@lbl964+ %t14 =l copy 0+ dbgloc 651+ call $memset(l %t15, w 0, l 16)+ storel 1, %t15+ %t16 =l add %t15, 8+ storel %t14, %t16+ call $memcpy(l %__ret, l %t15, l 16)+ ret %__ret+@lbl965+ ret 0+}++dbgfile "spectrelib/testing/core.sx"+data $testing__LEAK_TABLE_FMT = { l $__sv0 }+function l $testing__leak_record_at(l %records, l %index) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t5 =l alloc8 8+ dbgloc 44+ storel %records, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "records", "ref LeakRecord", %t0, 8, 7, 44+ storel %index, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "index", "i64", %t1, 8, 5, 44+ dbgloc 45+ %t2 =l copy %index+ %t3 =l copy 32+ %t4 =l mul %t2, %t3+ storel %t4, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "offset", "usize", %t5, 8, 5, 45+ dbgloc 46+ %t6 =l add %records, %t4+ ret %t6+}++export function w $testing__LeakDiagnostics__pprint(l %ld) {+@start+ %t0 =l alloc8 8+ %t5 =l alloc8 8+ %t39 =l alloc4 1+ %t48 =l alloc8 8+ %t57 =l alloc8 8+ %t62 =l alloc8 8+ dbgloc 50+ storel %ld, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "ld", "LeakDiagnostics", %t0, 8, 5, 50+ dbgloc 51+ %t2 =l copy 4096+ %t3 =l copy %t2+ %t1 =l call $malloc(l %t3)+ %t4 =l copy %t1+ storel %t4, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "summary", "ref u8", %t5, 8, 7, 51+ dbgloc 52+ %t7 =l loadl %t5+ %t8 =l copy 4096+ %t9 =l copy $__sv0+ %t10 =l call $sxqbe_rewrite_fmt(l %t9)+ %t12 =l add $__sv1, 8+ %t11 =l loadl %t12+ %t13 =l loadl $__sv1+ %t14 =l loadl %ld+ %t16 =l add %ld, 8+ %t15 =l loadl %t16+ %t18 =l add %ld, 16+ %t17 =l loadl %t18+ %t20 =l add %ld, 24+ %t19 =l loadl %t20+ %t22 =l add %ld, 32+ %t21 =l loadl %t22+ %t24 =l add %ld, 40+ %t23 =l loadl %t24+ %t26 =l add %ld, 48+ %t25 =l loadl %t26+ %t6 =w call $snprintf(l %t7, l %t8, l %t10, ..., l %t11, l %t13, l %t14, l %t15, l %t17, l %t19, l %t21, l %t23, l %t25)+ %t27 =l extsw %t6+ dbgloc 62+ %t28 =l copy $__str69+ %t29 =l loadl %t5+ %t30 =l call $printf(l %t28, ..., l %t29)+ dbgloc 63+ %t32 =l loadl %t5+ %t33 =l copy %t32+ call $free(l %t33)+ %t31 =l copy 0+ dbgloc 65+ %t35 =l add %ld, 64+ %t34 =l loadl %t35+ %t36 =l copy 0+ %t37 =l copy %t36+ %t38 =w csgtl %t34, %t37+ storew %t38, %t39+ jnz %t38, @lbl969, @lbl970+@lbl969+ %t41 =l add %ld, 56+ %t40 =l loadl %t41+ %t42 =l copy 0+ %t43 =w cnel %t40, %t42+ storew %t43, %t39+ jmp @lbl970+@lbl970+ %t44 =w loadw %t39+ jnz %t44, @lbl966, @lbl967+@lbl966+ dbgloc 66+ %t45 =w call $std__stdio__puts(l $__sv2)+ dbgloc 67+ %t46 =l copy 0+ %t47 =l copy %t46+ storel %t47, %t48+ call $__sx_dbg_keep(l %t48)+ dbgvar "index", "i64", %t48, 8, 5, 67+ dbgloc 68+ jmp @lbl971+@lbl971+ %t49 =l loadl %t48+ %t51 =l add %ld, 64+ %t50 =l loadl %t51+ %t52 =w csltl %t49, %t50+ jnz %t52, @lbl972, @lbl974+@lbl972+ dbgloc 69+ %t54 =l add %ld, 56+ %t53 =l loadl %t54+ %t55 =l loadl %t48+ %t56 =l call $testing__leak_record_at(l %t53, l %t55)+ storel %t56, %t57+ call $__sx_dbg_keep(l %t57)+ dbgvar "record", "ref LeakRecord", %t57, 8, 7, 69+ dbgloc 70+ %t59 =l copy 1024+ %t60 =l copy %t59+ %t58 =l call $malloc(l %t60)+ %t61 =l copy %t58+ storel %t61, %t62+ call $__sx_dbg_keep(l %t62)+ dbgvar "row", "ref u8", %t62, 8, 7, 70+ dbgloc 71+ %t64 =l loadl %t62+ %t65 =l copy 1024+ %t66 =l copy $__str71+ %t68 =l add %t56, 8+ %t67 =l loadl %t68+ %t70 =l add %t56, 24+ %t69 =l loadl %t70+ %t72 =l add %t56, 16+ %t71 =l loadl %t72+ %t63 =w call $snprintf(l %t64, l %t65, l %t66, ..., l %t67, l %t69, l %t71)+ %t73 =l extsw %t63+ dbgloc 76+ %t74 =l copy $__str69+ %t75 =l loadl %t62+ %t76 =l call $printf(l %t74, ..., l %t75)+ dbgloc 77+ %t78 =l loadl %t62+ %t79 =l copy %t78+ call $free(l %t79)+ %t77 =l copy 0+ dbgloc 78+ %t80 =l loadl %t48+ %t81 =l copy 1+ %t82 =l copy %t81+ %t83 =l add %t80, %t82+ storel %t83, %t48+ jmp @lbl973+@lbl973+ jmp @lbl971+@lbl974+ jmp @lbl967+@lbl967+ ret 0+}++export function l $testing__LeakDiagnostics__pprint_str(l %ld) {+@start+ %t0 =l alloc8 8+ %t2 =l alloc8 8+ %t7 =l alloc8 8+ %t40 =l alloc4 1+ %t50 =l alloc8 8+ %t59 =l alloc8 8+ %t64 =l alloc8 8+ %t85 =l alloc8 8+ dbgloc 84+ storel %ld, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "ld", "LeakDiagnostics", %t0, 8, 5, 84+ dbgloc 85+ %t1 =l call $builder__StringBuilder__new()+ storel %t1, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "sb", "StringBuilder", %t2, 8, 5, 85+ dbgloc 87+ %t4 =l copy 4096+ %t5 =l copy %t4+ %t3 =l call $malloc(l %t5)+ %t6 =l copy %t3+ storel %t6, %t7+ call $__sx_dbg_keep(l %t7)+ dbgvar "summary", "ref u8", %t7, 8, 7, 87+ dbgloc 88+ %t9 =l loadl %t7+ %t10 =l copy 4096+ %t11 =l copy $__sv0+ %t12 =l call $sxqbe_rewrite_fmt(l %t11)+ %t14 =l add $__sv1, 8+ %t13 =l loadl %t14+ %t15 =l loadl $__sv1+ %t16 =l loadl %ld+ %t18 =l add %ld, 8+ %t17 =l loadl %t18+ %t20 =l add %ld, 16+ %t19 =l loadl %t20+ %t22 =l add %ld, 24+ %t21 =l loadl %t22+ %t24 =l add %ld, 32+ %t23 =l loadl %t24+ %t26 =l add %ld, 40+ %t25 =l loadl %t26+ %t28 =l add %ld, 48+ %t27 =l loadl %t28+ %t8 =w call $snprintf(l %t9, l %t10, l %t12, ..., l %t13, l %t15, l %t16, l %t17, l %t19, l %t21, l %t23, l %t25, l %t27)+ %t29 =l extsw %t8+ dbgloc 98+ %t30 =l loadl %t7+ %t31 =w call $builder__StringBuilder__append_cstr(l %t1, l %t30)+ dbgloc 99+ %t33 =l loadl %t7+ %t34 =l copy %t33+ call $free(l %t34)+ %t32 =l copy 0+ dbgloc 101+ %t36 =l add %ld, 64+ %t35 =l loadl %t36+ %t37 =l copy 0+ %t38 =l copy %t37+ %t39 =w csgtl %t35, %t38+ storew %t39, %t40+ jnz %t39, @lbl978, @lbl979+@lbl978+ %t42 =l add %ld, 56+ %t41 =l loadl %t42+ %t43 =l copy 0+ %t44 =w cnel %t41, %t43+ storew %t44, %t40+ jmp @lbl979+@lbl979+ %t45 =w loadw %t40+ jnz %t45, @lbl975, @lbl976+@lbl975+ dbgloc 102+ %t46 =l copy $__str72+ %t47 =w call $builder__StringBuilder__append_cstr(l %t1, l %t46)+ dbgloc 106+ %t48 =l copy 0+ %t49 =l copy %t48+ storel %t49, %t50+ call $__sx_dbg_keep(l %t50)+ dbgvar "index", "i64", %t50, 8, 5, 106+ dbgloc 107+ jmp @lbl980+@lbl980+ %t51 =l loadl %t50+ %t53 =l add %ld, 64+ %t52 =l loadl %t53+ %t54 =w csltl %t51, %t52+ jnz %t54, @lbl981, @lbl983+@lbl981+ dbgloc 108+ %t56 =l add %ld, 56+ %t55 =l loadl %t56+ %t57 =l loadl %t50+ %t58 =l call $testing__leak_record_at(l %t55, l %t57)+ storel %t58, %t59+ call $__sx_dbg_keep(l %t59)+ dbgvar "record", "ref LeakRecord", %t59, 8, 7, 108+ dbgloc 109+ %t61 =l copy 1024+ %t62 =l copy %t61+ %t60 =l call $malloc(l %t62)+ %t63 =l copy %t60+ storel %t63, %t64+ call $__sx_dbg_keep(l %t64)+ dbgvar "row", "ref u8", %t64, 8, 7, 109+ dbgloc 110+ %t66 =l loadl %t64+ %t67 =l copy 1024+ %t68 =l copy $__str71+ %t70 =l add %t58, 8+ %t69 =l loadl %t70+ %t72 =l add %t58, 24+ %t71 =l loadl %t72+ %t74 =l add %t58, 16+ %t73 =l loadl %t74+ %t65 =w call $snprintf(l %t66, l %t67, l %t68, ..., l %t69, l %t71, l %t73)+ %t75 =l extsw %t65+ dbgloc 115+ %t76 =l loadl %t64+ %t77 =w call $builder__StringBuilder__append_cstr(l %t1, l %t76)+ dbgloc 116+ %t79 =l loadl %t64+ %t80 =l copy %t79+ call $free(l %t80)+ %t78 =l copy 0+ dbgloc 117+ %t81 =l copy 1+ %t82 =l loadl %t50+ %t83 =l add %t82, %t81+ storel %t83, %t50+ jmp @lbl982+@lbl982+ jmp @lbl980+@lbl983+ jmp @lbl976+@lbl976+ dbgloc 121+ %t84 =l call $builder__StringBuilder__build(l %t1)+ storel %t84, %t85+ call $__sx_dbg_keep(l %t85)+ dbgvar "result", "str.String", %t85, 8, 5, 121+ dbgloc 122+ %t86 =w call $builder__StringBuilder__free(l %t1)+ dbgloc 123+ ret %t84+}++dbgfile "spectrelib/env/core.sx"+export function l $std__env__get(l %name) {+@start+ %t0 =l alloc8 8+ %t2 =l alloc8 8+ dbgloc 10+ storel %name, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "name", "ref u8", %t0, 8, 7, 10+ dbgloc 11+ %t1 =l call $rt__getenv(l %name)+ storel %t1, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "value", "ref u8", %t2, 8, 7, 11+ dbgloc 12+ %t3 =l copy 0+ %t4 =w ceql %t1, %t3+ jnz %t4, @lbl984, @lbl985+@lbl984+ dbgloc 13+ %t5 =l copy $__str56+ ret %t5+@lbl985+ dbgloc 15+ ret %t1+}++export function l $std__env__get_opt(l %__ret, l %name) {+@start+ %t0 =l alloc8 8+ %t2 =l alloc8 8+ %t5 =l alloc8 16+ %t6 =l alloc8 16+ dbgloc 19+ storel %name, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "name", "ref u8", %t0, 8, 7, 19+ dbgloc 20+ %t1 =l call $rt__getenv(l %name)+ storel %t1, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "value", "ref u8", %t2, 8, 7, 20+ dbgloc 21+ %t3 =l copy 0+ %t4 =w ceql %t1, %t3+ jnz %t4, @lbl987, @lbl988+@lbl987+ dbgloc 22+ storel 0, %t5+ call $memcpy(l %__ret, l %t5, l 16)+ ret %__ret+@lbl988+ dbgloc 24+ call $memset(l %t6, w 0, l 16)+ storel 1, %t6+ %t7 =l add %t6, 8+ storel %t1, %t7+ call $memcpy(l %__ret, l %t6, l 16)+ ret %__ret+}++export function w $std__env__has(l %name) {+@start+ %t0 =l alloc8 8+ dbgloc 28+ storel %name, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "name", "ref u8", %t0, 8, 7, 28+ dbgloc 29+ %t1 =l copy 0+ %t2 =w cnel %name, %t1+ jnz %t2, @lbl990, @lbl991+@lbl991+ %t3 =l copy $__str73+ call $dprintf(w 2, l %t3)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl990+ dbgloc 32+ %t4 =l call $rt__getenv(l %name)+ %t5 =l copy 0+ %t6 =w cnel %t4, %t5+ ret %t6+}++dbgfile "spectrelib/terminal/core.sx"+function w $terminal__default_enabled() {+@start+ %t10 =l alloc8 8+ %t14 =l alloc8 8+ %t17 =l alloc4 1+ %t28 =l alloc8 8+ dbgloc 46+ dbgloc 47+ %t0 =l copy $__str74+ %t1 =w call $std__env__has(l %t0)+ jnz %t1, @lbl992, @lbl993+@lbl992+ dbgloc 48+ %t2 =l copy 0+ ret %t2+@lbl993+ dbgloc 50+ %t3 =l copy 1+ %t5 =w copy %t3+ %t4 =w call $rt__isatty(w %t5)+ %t6 =w copy 0+ %t7 =w cnew %t4, %t6+ %t8 =w copy %t7+ %t9 =w extub %t8+ storew %t9, %t10+ call $__sx_dbg_keep(l %t10)+ dbgvar "is_tty", "bool", %t10, 1, 7, 50+ dbgloc 51+ dbgloc 56+ %t11 =l copy $__str75+ %t12 =l call $std__env__get(l %t11)+ %t13 =l call $std__str__from_cstr(l %t12)+ storel %t13, %t14+ call $__sx_dbg_keep(l %t14)+ dbgvar "forced", "str.StringView", %t14, 8, 5, 56+ dbgloc 57+ %t15 =w call $std__str__is_empty(l %t13)+ %t16 =w ceqw %t15, 0+ storew %t16, %t17+ jnz %t16, @lbl998, @lbl999+@lbl998+ %t18 =l copy $__str76+ %t19 =w call $std__str__eql_cstr(l %t13, l %t18)+ %t20 =w ceqw %t19, 0+ storew %t20, %t17+ jmp @lbl999+@lbl999+ %t21 =w loadw %t17+ jnz %t21, @lbl995, @lbl996+@lbl995+ dbgloc 58+ %t22 =l copy 1+ ret %t22+@lbl996+ dbgloc 60+ %t23 =w ceqw %t9, 0+ jnz %t23, @lbl1000, @lbl1001+@lbl1000+ dbgloc 61+ %t24 =l copy 0+ ret %t24+@lbl1001+ dbgloc 63+ %t25 =l copy $__str77+ %t26 =l call $std__env__get(l %t25)+ %t27 =l call $std__str__from_cstr(l %t26)+ storel %t27, %t28+ call $__sx_dbg_keep(l %t28)+ dbgvar "term", "str.StringView", %t28, 8, 5, 63+ dbgloc 64+ %t29 =l copy $__str78+ %t30 =w call $std__str__eql_cstr(l %t27, l %t29)+ jnz %t30, @lbl1003, @lbl1004+@lbl1003+ dbgloc 65+ %t31 =l copy 0+ ret %t31+@lbl1004+ dbgloc 67+ %t32 =l copy 1+ ret %t32+}++data $terminal__enabled_state = { w 0 }+data $terminal__initialized_state = { w 0 }+function w $terminal__current_enabled() {+@start+ dbgloc 73+ dbgloc 74+ %t1 =w loadw $terminal__initialized_state+ %t0 =l extsw %t1+ %t2 =w ceqw %t0, 0+ jnz %t2, @lbl1006, @lbl1007+@lbl1006+ dbgloc 75+ %t3 =w call $terminal__default_enabled()+ %t4 =w copy %t3+ %t5 =w extub %t4+ storew %t5, $terminal__enabled_state+ dbgloc 76+ %t6 =l copy 1+ %t7 =w copy %t6+ %t8 =w extub %t7+ storew %t8, $terminal__initialized_state+ jmp @lbl1007+@lbl1007+ dbgloc 78+ %t10 =w loadw $terminal__enabled_state+ %t9 =l extsw %t10+ ret %t9+}++export function w $terminal__is_enabled() {+@start+ dbgloc 82+ dbgloc 83+ %t0 =w call $terminal__current_enabled()+ ret %t0+}++export function w $terminal__set_enabled(w %enabled) {+@start+ %t0 =l alloc8 8+ dbgloc 87+ storew %enabled, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "enabled", "bool", %t0, 1, 7, 87+ dbgloc 88+ %t1 =w copy %enabled+ %t2 =w extub %t1+ storew %t2, $terminal__enabled_state+ dbgloc 89+ %t3 =l copy 1+ %t4 =w copy %t3+ %t5 =w extub %t4+ storew %t5, $terminal__initialized_state+ ret 0+}++export function w $terminal__enable() {+@start+ dbgloc 93+ dbgloc 94+ %t0 =l copy 1+ %t1 =w call $terminal__set_enabled(w %t0)+ ret 0+}++export function w $terminal__disable() {+@start+ dbgloc 98+ dbgloc 99+ %t0 =l copy 0+ %t1 =w call $terminal__set_enabled(w %t0)+ ret 0+}++export function l $terminal__reset() {+@start+ dbgloc 103+ dbgloc 104+ ret $__sv3+}++export function l $terminal__fg(l %color) {+@start+ %t0 =l alloc8 8+ dbgloc 108+ storel %color, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "color", "Color", %t0, 8, 5, 108+ dbgloc 109+ %t1 =l copy 0+ %t2 =w ceql %color, %t1+ jnz %t2, @lbl1009, @lbl1010+@lbl1009+ dbgloc 110+ ret $__sv4+@lbl1010+ dbgloc 112+ %t3 =l copy 1+ %t4 =w ceql %color, %t3+ jnz %t4, @lbl1012, @lbl1013+@lbl1012+ dbgloc 113+ ret $__sv5+@lbl1013+ dbgloc 115+ %t5 =l copy 2+ %t6 =w ceql %color, %t5+ jnz %t6, @lbl1015, @lbl1016+@lbl1015+ dbgloc 116+ ret $__sv6+@lbl1016+ dbgloc 118+ %t7 =l copy 3+ %t8 =w ceql %color, %t7+ jnz %t8, @lbl1018, @lbl1019+@lbl1018+ dbgloc 119+ ret $__sv7+@lbl1019+ dbgloc 121+ %t9 =l copy 4+ %t10 =w ceql %color, %t9+ jnz %t10, @lbl1021, @lbl1022+@lbl1021+ dbgloc 122+ ret $__sv8+@lbl1022+ dbgloc 124+ %t11 =l copy 5+ %t12 =w ceql %color, %t11+ jnz %t12, @lbl1024, @lbl1025+@lbl1024+ dbgloc 125+ ret $__sv9+@lbl1025+ dbgloc 127+ %t13 =l copy 6+ %t14 =w ceql %color, %t13+ jnz %t14, @lbl1027, @lbl1028+@lbl1027+ dbgloc 128+ ret $__sv10+@lbl1028+ dbgloc 130+ %t15 =l copy 7+ %t16 =w ceql %color, %t15+ jnz %t16, @lbl1030, @lbl1031+@lbl1030+ dbgloc 131+ ret $__sv11+@lbl1031+ dbgloc 133+ %t17 =l copy 8+ %t18 =w ceql %color, %t17+ jnz %t18, @lbl1033, @lbl1034+@lbl1033+ dbgloc 134+ ret $__sv12+@lbl1034+ dbgloc 136+ %t19 =l copy 9+ %t20 =w ceql %color, %t19+ jnz %t20, @lbl1036, @lbl1037+@lbl1036+ dbgloc 137+ ret $__sv13+@lbl1037+ dbgloc 139+ %t21 =l copy 10+ %t22 =w ceql %color, %t21+ jnz %t22, @lbl1039, @lbl1040+@lbl1039+ dbgloc 140+ ret $__sv14+@lbl1040+ dbgloc 142+ %t23 =l copy 11+ %t24 =w ceql %color, %t23+ jnz %t24, @lbl1042, @lbl1043+@lbl1042+ dbgloc 143+ ret $__sv15+@lbl1043+ dbgloc 145+ %t25 =l copy 12+ %t26 =w ceql %color, %t25+ jnz %t26, @lbl1045, @lbl1046+@lbl1045+ dbgloc 146+ ret $__sv16+@lbl1046+ dbgloc 148+ %t27 =l copy 13+ %t28 =w ceql %color, %t27+ jnz %t28, @lbl1048, @lbl1049+@lbl1048+ dbgloc 149+ ret $__sv17+@lbl1049+ dbgloc 151+ %t29 =l copy 14+ %t30 =w ceql %color, %t29+ jnz %t30, @lbl1051, @lbl1052+@lbl1051+ dbgloc 152+ ret $__sv18+@lbl1052+ dbgloc 154+ %t31 =l copy 15+ %t32 =w ceql %color, %t31+ jnz %t32, @lbl1054, @lbl1055+@lbl1054+ dbgloc 155+ ret $__sv19+@lbl1055+ dbgloc 157+ %t33 =l copy 17+ %t34 =w ceql %color, %t33+ jnz %t34, @lbl1057, @lbl1058+@lbl1057+ dbgloc 158+ ret $__sv20+@lbl1058+ dbgloc 160+ ret $__sv21+}++export function l $terminal__bg(l %color) {+@start+ %t0 =l alloc8 8+ dbgloc 164+ storel %color, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "color", "Color", %t0, 8, 5, 164+ dbgloc 165+ %t1 =l copy 0+ %t2 =w ceql %color, %t1+ jnz %t2, @lbl1060, @lbl1061+@lbl1060+ dbgloc 166+ ret $__sv22+@lbl1061+ dbgloc 168+ %t3 =l copy 1+ %t4 =w ceql %color, %t3+ jnz %t4, @lbl1063, @lbl1064+@lbl1063+ dbgloc 169+ ret $__sv23+@lbl1064+ dbgloc 171+ %t5 =l copy 2+ %t6 =w ceql %color, %t5+ jnz %t6, @lbl1066, @lbl1067+@lbl1066+ dbgloc 172+ ret $__sv24+@lbl1067+ dbgloc 174+ %t7 =l copy 3+ %t8 =w ceql %color, %t7+ jnz %t8, @lbl1069, @lbl1070+@lbl1069+ dbgloc 175+ ret $__sv25+@lbl1070+ dbgloc 177+ %t9 =l copy 4+ %t10 =w ceql %color, %t9+ jnz %t10, @lbl1072, @lbl1073+@lbl1072+ dbgloc 178+ ret $__sv26+@lbl1073+ dbgloc 180+ %t11 =l copy 5+ %t12 =w ceql %color, %t11+ jnz %t12, @lbl1075, @lbl1076+@lbl1075+ dbgloc 181+ ret $__sv27+@lbl1076+ dbgloc 183+ %t13 =l copy 6+ %t14 =w ceql %color, %t13+ jnz %t14, @lbl1078, @lbl1079+@lbl1078+ dbgloc 184+ ret $__sv28+@lbl1079+ dbgloc 186+ %t15 =l copy 7+ %t16 =w ceql %color, %t15+ jnz %t16, @lbl1081, @lbl1082+@lbl1081+ dbgloc 187+ ret $__sv29+@lbl1082+ dbgloc 189+ %t17 =l copy 8+ %t18 =w ceql %color, %t17+ jnz %t18, @lbl1084, @lbl1085+@lbl1084+ dbgloc 190+ ret $__sv30+@lbl1085+ dbgloc 192+ %t19 =l copy 9+ %t20 =w ceql %color, %t19+ jnz %t20, @lbl1087, @lbl1088+@lbl1087+ dbgloc 193+ ret $__sv31+@lbl1088+ dbgloc 195+ %t21 =l copy 10+ %t22 =w ceql %color, %t21+ jnz %t22, @lbl1090, @lbl1091+@lbl1090+ dbgloc 196+ ret $__sv32+@lbl1091+ dbgloc 198+ %t23 =l copy 11+ %t24 =w ceql %color, %t23+ jnz %t24, @lbl1093, @lbl1094+@lbl1093+ dbgloc 199+ ret $__sv33+@lbl1094+ dbgloc 201+ %t25 =l copy 12+ %t26 =w ceql %color, %t25+ jnz %t26, @lbl1096, @lbl1097+@lbl1096+ dbgloc 202+ ret $__sv34+@lbl1097+ dbgloc 204+ %t27 =l copy 13+ %t28 =w ceql %color, %t27+ jnz %t28, @lbl1099, @lbl1100+@lbl1099+ dbgloc 205+ ret $__sv35+@lbl1100+ dbgloc 207+ %t29 =l copy 14+ %t30 =w ceql %color, %t29+ jnz %t30, @lbl1102, @lbl1103+@lbl1102+ dbgloc 208+ ret $__sv36+@lbl1103+ dbgloc 210+ %t31 =l copy 15+ %t32 =w ceql %color, %t31+ jnz %t32, @lbl1105, @lbl1106+@lbl1105+ dbgloc 211+ ret $__sv37+@lbl1106+ dbgloc 213+ %t33 =l copy 17+ %t34 =w ceql %color, %t33+ jnz %t34, @lbl1108, @lbl1109+@lbl1108+ dbgloc 214+ ret $__sv38+@lbl1109+ dbgloc 216+ ret $__sv39+}++export function l $terminal__style(l %text_style) {+@start+ %t0 =l alloc8 8+ dbgloc 220+ storel %text_style, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "text_style", "Style", %t0, 8, 5, 220+ dbgloc 221+ %t1 =l copy 1+ %t2 =w ceql %text_style, %t1+ jnz %t2, @lbl1111, @lbl1112+@lbl1111+ dbgloc 222+ ret $__sv40+@lbl1112+ dbgloc 224+ %t3 =l copy 2+ %t4 =w ceql %text_style, %t3+ jnz %t4, @lbl1114, @lbl1115+@lbl1114+ dbgloc 225+ ret $__sv41+@lbl1115+ dbgloc 227+ %t5 =l copy 3+ %t6 =w ceql %text_style, %t5+ jnz %t6, @lbl1117, @lbl1118+@lbl1117+ dbgloc 228+ ret $__sv42+@lbl1118+ dbgloc 230+ %t7 =l copy 4+ %t8 =w ceql %text_style, %t7+ jnz %t8, @lbl1120, @lbl1121+@lbl1120+ dbgloc 231+ ret $__sv43+@lbl1121+ dbgloc 233+ %t9 =l copy 5+ %t10 =w ceql %text_style, %t9+ jnz %t10, @lbl1123, @lbl1124+@lbl1123+ dbgloc 234+ ret $__sv44+@lbl1124+ dbgloc 236+ %t11 =l copy 6+ %t12 =w ceql %text_style, %t11+ jnz %t12, @lbl1126, @lbl1127+@lbl1126+ dbgloc 237+ ret $__sv45+@lbl1127+ dbgloc 239+ %t13 =l copy 7+ %t14 =w ceql %text_style, %t13+ jnz %t14, @lbl1129, @lbl1130+@lbl1129+ dbgloc 240+ ret $__sv46+@lbl1130+ dbgloc 242+ %t15 =l copy 8+ %t16 =w ceql %text_style, %t15+ jnz %t16, @lbl1132, @lbl1133+@lbl1132+ dbgloc 243+ ret $__sv47+@lbl1133+ dbgloc 245+ ret $__sv48+}++function w $terminal__write_out(l %text, w %to_stderr) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 248+ storel %text, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "text", "str.StringView", %t0, 8, 5, 248+ storew %to_stderr, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "to_stderr", "bool", %t1, 1, 7, 248+ dbgloc 249+ jnz %to_stderr, @lbl1135, @lbl1137+@lbl1135+ dbgloc 250+ %t2 =l copy $__str124+ %t4 =l add %text, 8+ %t3 =l loadl %t4+ %t5 =l loadl %text+ %t6 =l call $printf(l %t2, ..., l %t3, l %t5)+ jmp @lbl1136+@lbl1137+ dbgloc 252+ %t7 =l copy $__str124+ %t9 =l add %text, 8+ %t8 =l loadl %t9+ %t10 =l loadl %text+ %t11 =l call $printf(l %t7, ..., l %t8, l %t10)+ jmp @lbl1136+@lbl1136+ ret 0+}++function w $terminal__emit(l %text, l %foreground, l %background, l %text_style, w %newline, w %to_stderr) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t3 =l alloc8 8+ %t4 =l alloc8 8+ %t5 =l alloc8 8+ dbgloc 256+ storel %text, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "text", "str.StringView", %t0, 8, 5, 256+ storel %foreground, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "foreground", "Color", %t1, 8, 5, 256+ storel %background, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "background", "Color", %t2, 8, 5, 256+ storel %text_style, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "text_style", "Style", %t3, 8, 5, 256+ storew %newline, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "newline", "bool", %t4, 1, 7, 256+ storew %to_stderr, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "to_stderr", "bool", %t5, 1, 7, 256+ dbgloc 264+ %t6 =w call $terminal__current_enabled()+ jnz %t6, @lbl1138, @lbl1140+@lbl1138+ dbgloc 265+ %t7 =l call $terminal__style(l %text_style)+ %t8 =w call $terminal__write_out(l %t7, w %to_stderr)+ dbgloc 266+ %t9 =l call $terminal__fg(l %foreground)+ %t10 =w call $terminal__write_out(l %t9, w %to_stderr)+ dbgloc 267+ %t11 =l call $terminal__bg(l %background)+ %t12 =w call $terminal__write_out(l %t11, w %to_stderr)+ dbgloc 268+ %t13 =w call $terminal__write_out(l %text, w %to_stderr)+ dbgloc 269+ %t14 =l call $terminal__reset()+ %t15 =w call $terminal__write_out(l %t14, w %to_stderr)+ jmp @lbl1139+@lbl1140+ dbgloc 271+ %t16 =w call $terminal__write_out(l %text, w %to_stderr)+ jmp @lbl1139+@lbl1139+ dbgloc 273+ jnz %newline, @lbl1141, @lbl1142+@lbl1141+ dbgloc 274+ %t17 =w call $terminal__write_out(l $__sv49, w %to_stderr)+ jmp @lbl1142+@lbl1142+ ret 0+}++export function w $terminal__print(l %text, l %color) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 279+ storel %text, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "text", "str.StringView", %t0, 8, 5, 279+ storel %color, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "color", "Color", %t1, 8, 5, 279+ dbgloc 280+ %t2 =l copy 0+ %t3 =l copy 0+ %t4 =l copy 0+ %t5 =l copy 0+ %t6 =w call $terminal__emit(l %text, l %color, l %t2, l %t3, w %t4, w %t5)+ ret 0+}++function w $terminal__emit_repeat(l %text, l %count, l %foreground, l %background, l %text_style, w %newline, w %to_stderr) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t3 =l alloc8 8+ %t4 =l alloc8 8+ %t5 =l alloc8 8+ %t6 =l alloc8 8+ %t13 =l alloc8 8+ %t21 =l alloc8 8+ dbgloc 283+ storel %text, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "text", "str.StringView", %t0, 8, 5, 283+ storel %count, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "count", "i64", %t1, 8, 5, 283+ storel %foreground, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "foreground", "Color", %t2, 8, 5, 283+ storel %background, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "background", "Color", %t3, 8, 5, 283+ storel %text_style, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "text_style", "Style", %t4, 8, 5, 283+ storew %newline, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "newline", "bool", %t5, 1, 7, 283+ storew %to_stderr, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "to_stderr", "bool", %t6, 1, 7, 283+ dbgloc 292+ %t7 =l copy 0+ %t8 =w cslel %count, %t7+ jnz %t8, @lbl1144, @lbl1145+@lbl1144+ dbgloc 293+ jnz %newline, @lbl1147, @lbl1148+@lbl1147+ dbgloc 294+ %t9 =w call $terminal__write_out(l $__sv49, w %to_stderr)+ jmp @lbl1148+@lbl1148+ dbgloc 296+ ret 0+@lbl1145+ dbgloc 298+ %t10 =w call $terminal__current_enabled()+ %t11 =w copy %t10+ %t12 =w extub %t11+ storew %t12, %t13+ call $__sx_dbg_keep(l %t13)+ dbgvar "colored", "bool", %t13, 1, 7, 298+ dbgloc 299+ jnz %t12, @lbl1150, @lbl1151+@lbl1150+ dbgloc 300+ %t14 =l call $terminal__style(l %text_style)+ %t15 =w call $terminal__write_out(l %t14, w %to_stderr)+ dbgloc 301+ %t16 =l call $terminal__fg(l %foreground)+ %t17 =w call $terminal__write_out(l %t16, w %to_stderr)+ dbgloc 302+ %t18 =l call $terminal__bg(l %background)+ %t19 =w call $terminal__write_out(l %t18, w %to_stderr)+ jmp @lbl1151+@lbl1151+ dbgloc 304+ %t20 =l copy 0+ storel %t20, %t21+ call $__sx_dbg_keep(l %t21)+ dbgvar "index", "i64", %t21, 8, 5, 304+ dbgloc 305+ jmp @lbl1153+@lbl1153+ jmp @lbl1154+@lbl1154+ dbgloc 306+ %t22 =l loadl %t21+ %t24 =w csltl %t22, %count+ %t23 =w ceqw %t24, 0+ jnz %t23, @lbl1157, @lbl1158+@lbl1157+ dbgloc 307+ jmp @lbl1156+@lbl1158+ dbgloc 309+ %t25 =w call $terminal__write_out(l %text, w %to_stderr)+ dbgloc 310+ %t26 =l loadl %t21+ %t27 =l add %t26, 1+ storel %t27, %t21+ jmp @lbl1155+@lbl1155+ jmp @lbl1153+@lbl1156+ dbgloc 312+ jnz %t12, @lbl1160, @lbl1161+@lbl1160+ dbgloc 313+ %t28 =l call $terminal__reset()+ %t29 =w call $terminal__write_out(l %t28, w %to_stderr)+ jmp @lbl1161+@lbl1161+ dbgloc 315+ jnz %newline, @lbl1163, @lbl1164+@lbl1163+ dbgloc 316+ %t30 =w call $terminal__write_out(l $__sv49, w %to_stderr)+ jmp @lbl1164+@lbl1164+ ret 0+}++export function w $terminal__print_repeat(l %text, l %count, l %color) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ dbgloc 321+ storel %text, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "text", "str.StringView", %t0, 8, 5, 321+ storel %count, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "count", "i64", %t1, 8, 5, 321+ storel %color, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "color", "Color", %t2, 8, 5, 321+ dbgloc 322+ %t3 =l copy 0+ %t4 =l copy 0+ %t5 =l copy 0+ %t6 =l copy 0+ %t7 =w call $terminal__emit_repeat(l %text, l %count, l %color, l %t3, l %t4, w %t5, w %t6)+ ret 0+}++export function w $terminal__puts(l %text, l %color) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 326+ storel %text, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "text", "str.StringView", %t0, 8, 5, 326+ storel %color, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "color", "Color", %t1, 8, 5, 326+ dbgloc 327+ %t2 =l copy 0+ %t3 =l copy 0+ %t4 =l copy 1+ %t5 =l copy 0+ %t6 =w call $terminal__emit(l %text, l %color, l %t2, l %t3, w %t4, w %t5)+ ret 0+}++export function w $terminal__eprint(l %text, l %color) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 331+ storel %text, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "text", "str.StringView", %t0, 8, 5, 331+ storel %color, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "color", "Color", %t1, 8, 5, 331+ dbgloc 332+ %t2 =l copy 0+ %t3 =l copy 0+ %t4 =l copy 0+ %t5 =l copy 1+ %t6 =w call $terminal__emit(l %text, l %color, l %t2, l %t3, w %t4, w %t5)+ ret 0+}++export function w $terminal__eputs(l %text, l %color) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 336+ storel %text, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "text", "str.StringView", %t0, 8, 5, 336+ storel %color, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "color", "Color", %t1, 8, 5, 336+ dbgloc 337+ %t2 =l copy 0+ %t3 =l copy 0+ %t4 =l copy 1+ %t5 =l copy 1+ %t6 =w call $terminal__emit(l %text, l %color, l %t2, l %t3, w %t4, w %t5)+ ret 0+}++export function w $terminal__print_styled(l %text, l %foreground, l %background, l %text_style) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t3 =l alloc8 8+ dbgloc 341+ storel %text, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "text", "str.StringView", %t0, 8, 5, 341+ storel %foreground, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "foreground", "Color", %t1, 8, 5, 341+ storel %background, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "background", "Color", %t2, 8, 5, 341+ storel %text_style, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "text_style", "Style", %t3, 8, 5, 341+ dbgloc 347+ %t4 =l copy 0+ %t5 =l copy 0+ %t6 =w call $terminal__emit(l %text, l %foreground, l %background, l %text_style, w %t4, w %t5)+ ret 0+}++export function w $terminal__puts_styled(l %text, l %foreground, l %background, l %text_style) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t3 =l alloc8 8+ dbgloc 351+ storel %text, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "text", "str.StringView", %t0, 8, 5, 351+ storel %foreground, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "foreground", "Color", %t1, 8, 5, 351+ storel %background, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "background", "Color", %t2, 8, 5, 351+ storel %text_style, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "text_style", "Style", %t3, 8, 5, 351+ dbgloc 357+ %t4 =l copy 1+ %t5 =l copy 0+ %t6 =w call $terminal__emit(l %text, l %foreground, l %background, l %text_style, w %t4, w %t5)+ ret 0+}++export function w $terminal__eprint_styled(l %text, l %foreground, l %background, l %text_style) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t3 =l alloc8 8+ dbgloc 361+ storel %text, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "text", "str.StringView", %t0, 8, 5, 361+ storel %foreground, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "foreground", "Color", %t1, 8, 5, 361+ storel %background, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "background", "Color", %t2, 8, 5, 361+ storel %text_style, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "text_style", "Style", %t3, 8, 5, 361+ dbgloc 367+ %t4 =l copy 0+ %t5 =l copy 1+ %t6 =w call $terminal__emit(l %text, l %foreground, l %background, l %text_style, w %t4, w %t5)+ ret 0+}++export function w $terminal__eputs_styled(l %text, l %foreground, l %background, l %text_style) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t3 =l alloc8 8+ dbgloc 371+ storel %text, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "text", "str.StringView", %t0, 8, 5, 371+ storel %foreground, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "foreground", "Color", %t1, 8, 5, 371+ storel %background, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "background", "Color", %t2, 8, 5, 371+ storel %text_style, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "text_style", "Style", %t3, 8, 5, 371+ dbgloc 377+ %t4 =l copy 1+ %t5 =l copy 1+ %t6 =w call $terminal__emit(l %text, l %foreground, l %background, l %text_style, w %t4, w %t5)+ ret 0+}++dbgfile "src/core/msg.sx"+export function w $msg__error_prefix() {+@start+ dbgloc 7+ dbgloc 8+ %t0 =l copy 2+ %t1 =l copy 0+ %t2 =l copy 1+ %t3 =w call $terminal__eprint_styled(l $__sv50, l %t0, l %t1, l %t2)+ dbgloc 9+ %t4 =l copy $__str127+ %t5 =l call $printf(l %t4, ..., l 0)+ ret 0+}++export function w $msg__warning_prefix() {+@start+ dbgloc 13+ dbgloc 14+ %t0 =l copy 4+ %t1 =l copy 0+ %t2 =l copy 1+ %t3 =w call $terminal__eprint_styled(l $__sv51, l %t0, l %t1, l %t2)+ dbgloc 20+ %t4 =l copy $__str127+ %t5 =l call $printf(l %t4, ..., l 0)+ ret 0+}++export function w $msg__info_prefix() {+@start+ dbgloc 24+ dbgloc 25+ %t0 =l copy 7+ %t1 =l copy 0+ %t2 =l copy 0+ %t3 =w call $terminal__print_styled(l $__sv52, l %t0, l %t1, l %t2)+ dbgloc 26+ %t4 =l copy $__str127+ %t5 =l call $printf(l %t4, ..., l 0)+ ret 0+}++dbgfile "src/core/bytes.sx"+export function l $bytes__bytes(l %ptr, l %len) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t4 =l alloc8 16+ %t10 =l alloc8 16+ dbgloc 12+ storel %ptr, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "ptr", "ref u8", %t0, 8, 7, 12+ storel %len, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "len", "usize", %t1, 8, 5, 12+ dbgloc 13+ %t2 =l copy 0+ %t3 =w ceql %ptr, %t2+ jnz %t3, @lbl1166, @lbl1167+@lbl1166+ dbgloc 14+ %t5 =l copy 0+ storel %t5, %t4+ %t7 =l copy 0+ %t8 =l add %t4, 8+ storel %t7, %t8+ %t9 =l call $malloc(l 16)+ call $memcpy(l %t9, l %t4, l 16)+ ret %t9+@lbl1167+ dbgloc 16+ storel %ptr, %t10+ %t12 =l add %t10, 8+ storel %len, %t12+ %t13 =l call $malloc(l 16)+ call $memcpy(l %t13, l %t10, l 16)+ ret %t13+}++export function l $bytes__empty() {+@start+ %t0 =l alloc8 16+ dbgloc 19+ dbgloc 20+ %t1 =l copy 0+ storel %t1, %t0+ %t3 =l copy 0+ %t4 =l add %t0, 8+ storel %t3, %t4+ %t5 =l call $malloc(l 16)+ call $memcpy(l %t5, l %t0, l 16)+ ret %t5+}++export function w $bytes__Bytes__is_empty(l %b) {+@start+ %t0 =l alloc8 8+ dbgloc 23+ storel %b, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "b", "Bytes", %t0, 8, 5, 23+ dbgloc 24+ %t2 =l add %b, 8+ %t1 =l loadl %t2+ %t3 =l copy 0+ %t4 =w ceql %t1, %t3+ ret %t4+}++export function w $bytes__Bytes__at(l %b, l %i) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 27+ storel %b, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "b", "Bytes", %t0, 8, 5, 27+ storel %i, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "i", "usize", %t1, 8, 5, 27+ dbgloc 28+ %t3 =l add %b, 8+ %t2 =l loadl %t3+ %t4 =w csltl %i, %t2+ jnz %t4, @lbl1169, @lbl1170+@lbl1170+ %t5 =l copy $__str130+ call $dprintf(w 2, l %t5)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl1169+ dbgloc 31+ %t8 =l loadl %b+ %t9 =l copy %i+ %t7 =l add %t8, %t9+ %t10 =w loadub %t7+ %t6 =l extsw %t10+ %t11 =w copy %t6+ ret %t11+}++export function l $bytes__Bytes__slice(l %b, l %start, l %end) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t11 =l alloc8 16+ %t21 =l alloc8 8+ dbgloc 34+ storel %b, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "b", "Bytes", %t0, 8, 5, 34+ storel %start, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "start", "usize", %t1, 8, 5, 34+ storel %end, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "end", "usize", %t2, 8, 5, 34+ dbgloc 35+ %t3 =w cslel %start, %end+ jnz %t3, @lbl1171, @lbl1172+@lbl1172+ %t4 =l copy $__str131+ call $dprintf(w 2, l %t4)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl1171+ %t6 =l add %b, 8+ %t5 =l loadl %t6+ %t7 =w cslel %end, %t5+ jnz %t7, @lbl1173, @lbl1174+@lbl1174+ %t8 =l copy $__str132+ call $dprintf(w 2, l %t8)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl1173+ dbgloc 39+ %t9 =w ceql %start, %end+ jnz %t9, @lbl1175, @lbl1176+@lbl1175+ dbgloc 40+ %t10 =l call $bytes__empty()+ ret %t10+@lbl1176+ dbgloc 42+ %t13 =l loadl %b+ %t14 =l copy %start+ %t12 =l add %t13, %t14+ storel %t12, %t11+ %t16 =l sub %end, %start+ %t17 =l add %t11, 8+ storel %t16, %t17+ %t19 =l copy 0+ %t20 =w cnel %t11, 0+ jnz %t20, @lbl1178, @lbl1179+@lbl1178+ %t18 =l call $malloc(l 16)+ call $memset(l %t18, w 0, l 16)+ call $memcpy(l %t18, l %t11, l 16)+ %t19 =l copy %t18+@lbl1179+ storel %t19, %t21+ call $__sx_dbg_keep(l %t21)+ dbgvar "out", "Bytes", %t21, 8, 5, 42+ dbgloc 43+ ret %t19+}++export function l $bytes__Bytes__cmp(l %a, l %b) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t4 =l alloc8 8+ %t13 =l alloc8 8+ %t26 =l alloc8 8+ %t36 =l alloc8 8+ dbgloc 47+ storel %a, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "a", "Bytes", %t0, 8, 5, 47+ storel %b, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "b", "Bytes", %t1, 8, 5, 47+ dbgloc 48+ %t3 =l add %b, 8+ %t2 =l loadl %t3+ storel %t2, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "n", "usize", %t4, 8, 5, 48+ dbgloc 49+ %t6 =l add %a, 8+ %t5 =l loadl %t6+ %t8 =l add %b, 8+ %t7 =l loadl %t8+ %t9 =w csltl %t5, %t7+ jnz %t9, @lbl1180, @lbl1181+@lbl1180+ dbgloc 50+ %t11 =l add %a, 8+ %t10 =l loadl %t11+ storel %t10, %t4+ jmp @lbl1181+@lbl1181+ dbgloc 52+ %t12 =l copy 0+ storel %t12, %t13+ call $__sx_dbg_keep(l %t13)+ dbgvar "i", "usize", %t13, 8, 5, 52+ dbgloc 53+ jmp @lbl1183+@lbl1183+ %t14 =l loadl %t13+ %t15 =l loadl %t4+ %t16 =w csltl %t14, %t15+ jnz %t16, @lbl1184, @lbl1186+@lbl1184+ dbgloc 54+ %t19 =l loadl %a+ %t20 =l loadl %t13+ %t21 =l copy %t20+ %t18 =l add %t19, %t21+ %t22 =w loadub %t18+ %t17 =l extsw %t22+ %t23 =w copy %t17+ %t24 =w copy %t23+ %t25 =w extub %t24+ storew %t25, %t26+ call $__sx_dbg_keep(l %t26)+ dbgvar "ca", "u8", %t26, 1, 7, 54+ dbgloc 55+ %t29 =l loadl %b+ %t30 =l loadl %t13+ %t31 =l copy %t30+ %t28 =l add %t29, %t31+ %t32 =w loadub %t28+ %t27 =l extsw %t32+ %t33 =w copy %t27+ %t34 =w copy %t33+ %t35 =w extub %t34+ storew %t35, %t36+ call $__sx_dbg_keep(l %t36)+ dbgvar "cb", "u8", %t36, 1, 7, 55+ dbgloc 56+ %t37 =l extsw %t25+ %t38 =l extsw %t35+ %t39 =w csltw %t37, %t38+ jnz %t39, @lbl1187, @lbl1188+@lbl1187+ dbgloc 57+ %t40 =l copy 1+ %t41 =l neg %t40+ ret %t41+@lbl1188+ dbgloc 59+ %t42 =l extsw %t25+ %t43 =l extsw %t35+ %t44 =w csgtw %t42, %t43+ jnz %t44, @lbl1190, @lbl1191+@lbl1190+ dbgloc 60+ %t45 =l copy 1+ ret %t45+@lbl1191+ dbgloc 62+ %t46 =l loadl %t13+ %t47 =l add %t46, 1+ storel %t47, %t13+ jmp @lbl1185+@lbl1185+ jmp @lbl1183+@lbl1186+ dbgloc 64+ %t49 =l add %a, 8+ %t48 =l loadl %t49+ %t51 =l add %b, 8+ %t50 =l loadl %t51+ %t52 =w csltl %t48, %t50+ jnz %t52, @lbl1193, @lbl1194+@lbl1193+ dbgloc 65+ %t53 =l copy 1+ %t54 =l neg %t53+ ret %t54+@lbl1194+ dbgloc 67+ %t56 =l add %a, 8+ %t55 =l loadl %t56+ %t58 =l add %b, 8+ %t57 =l loadl %t58+ %t59 =w csgtl %t55, %t57+ jnz %t59, @lbl1196, @lbl1197+@lbl1196+ dbgloc 68+ %t60 =l copy 1+ ret %t60+@lbl1197+ dbgloc 70+ %t61 =l copy 0+ ret %t61+}++export function w $bytes__Bytes__eql(l %a, l %b) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 73+ storel %a, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "a", "Bytes", %t0, 8, 5, 73+ storel %b, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "b", "Bytes", %t1, 8, 5, 73+ dbgloc 74+ %t2 =l call $bytes__Bytes__cmp(l %a, l %b)+ %t3 =l copy 0+ %t4 =w ceql %t2, %t3+ ret %t4+}++export function w $bytes__Bytes__eql_ascii_ci(l %a, l %b) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t9 =l alloc8 8+ %t24 =l alloc8 8+ %t35 =l alloc8 8+ dbgloc 78+ storel %a, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "a", "Bytes", %t0, 8, 5, 78+ storel %b, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "b", "Bytes", %t1, 8, 5, 78+ dbgloc 79+ %t3 =l add %a, 8+ %t2 =l loadl %t3+ %t5 =l add %b, 8+ %t4 =l loadl %t5+ %t6 =w cnel %t2, %t4+ jnz %t6, @lbl1199, @lbl1200+@lbl1199+ dbgloc 80+ %t7 =l copy 0+ ret %t7+@lbl1200+ dbgloc 82+ %t8 =l copy 0+ storel %t8, %t9+ call $__sx_dbg_keep(l %t9)+ dbgvar "i", "usize", %t9, 8, 5, 82+ dbgloc 83+ jmp @lbl1202+@lbl1202+ %t10 =l loadl %t9+ %t12 =l add %a, 8+ %t11 =l loadl %t12+ %t13 =w csltl %t10, %t11+ jnz %t13, @lbl1203, @lbl1205+@lbl1203+ dbgloc 84+ %t16 =l loadl %a+ %t17 =l loadl %t9+ %t18 =l copy %t17+ %t15 =l add %t16, %t18+ %t19 =w loadub %t15+ %t14 =l extsw %t19+ %t21 =w copy %t14+ %t20 =w call $bytes__ascii_lower(w %t21)+ %t22 =w copy %t20+ %t23 =w extub %t22+ storew %t23, %t24+ call $__sx_dbg_keep(l %t24)+ dbgvar "ca", "u8", %t24, 1, 7, 84+ dbgloc 85+ %t27 =l loadl %b+ %t28 =l loadl %t9+ %t29 =l copy %t28+ %t26 =l add %t27, %t29+ %t30 =w loadub %t26+ %t25 =l extsw %t30+ %t32 =w copy %t25+ %t31 =w call $bytes__ascii_lower(w %t32)+ %t33 =w copy %t31+ %t34 =w extub %t33+ storew %t34, %t35+ call $__sx_dbg_keep(l %t35)+ dbgvar "cb", "u8", %t35, 1, 7, 85+ dbgloc 86+ %t36 =l extsw %t23+ %t37 =l extsw %t34+ %t38 =w cnew %t36, %t37+ jnz %t38, @lbl1206, @lbl1207+@lbl1206+ dbgloc 87+ %t39 =l copy 0+ ret %t39+@lbl1207+ dbgloc 89+ %t40 =l loadl %t9+ %t41 =l add %t40, 1+ storel %t41, %t9+ jmp @lbl1204+@lbl1204+ jmp @lbl1202+@lbl1205+ dbgloc 91+ %t42 =l copy 1+ ret %t42+}++function w $bytes__ascii_lower(w %c) {+@start+ %t0 =l alloc8 8+ %t4 =l alloc4 1+ dbgloc 94+ storew %c, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "c", "u8", %t0, 1, 7, 94+ dbgloc 95+ %t1 =w copy 65+ %t3 =w csltw %c, %t1+ %t2 =w ceqw %t3, 0+ storew %t2, %t4+ jnz %t2, @lbl1212, @lbl1213+@lbl1212+ %t5 =w copy 90+ %t6 =w cslew %c, %t5+ storew %t6, %t4+ jmp @lbl1213+@lbl1213+ %t7 =w loadw %t4+ jnz %t7, @lbl1209, @lbl1210+@lbl1209+ dbgloc 96+ %t8 =l extsw %c+ %t9 =l copy 32+ %t11 =l extsw %t8+ %t10 =l add %t11, %t9+ ret %t10+@lbl1210+ dbgloc 98+ ret %c+}++export function l $bytes__Bytes__to_cstr(l %b) {+@start+ %t0 =l alloc8 8+ %t7 =l alloc8 8+ dbgloc 102+ storel %b, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "b", "Bytes", %t0, 8, 5, 102+ dbgloc 103+ %t3 =l add %b, 8+ %t2 =l loadl %t3+ %t4 =l copy 1+ %t5 =l add %t2, %t4+ %t1 =l call $malloc(l %t5)+ %t6 =l copy %t1+ storel %t6, %t7+ call $__sx_dbg_keep(l %t7)+ dbgvar "out", "ref u8", %t7, 8, 7, 103+ dbgloc 104+ %t9 =l add %b, 8+ %t8 =l loadl %t9+ %t10 =l copy 0+ %t11 =w csgtl %t8, %t10+ jnz %t11, @lbl1214, @lbl1215+@lbl1214+ dbgloc 105+ %t13 =l copy %t6+ %t14 =l loadl %b+ %t15 =l copy %t14+ %t17 =l add %b, 8+ %t16 =l loadl %t17+ call $memcpy(l %t13, l %t15, l %t16)+ %t12 =l copy 0+ jmp @lbl1215+@lbl1215+ dbgloc 107+ %t21 =l add %b, 8+ %t20 =l loadl %t21+ %t22 =l copy %t20+ %t19 =l add %t6, %t22+ %t23 =l copy 0+ storeb %t23, %t19+ %t18 =l copy 0+ dbgloc 108+ ret %t6+}++export function l $bytes__Bytes__dup(l %b) {+@start+ %t0 =l alloc8 8+ %t10 =l alloc8 8+ %t17 =l alloc8 16+ dbgloc 112+ storel %b, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "b", "Bytes", %t0, 8, 5, 112+ dbgloc 113+ %t2 =l add %b, 8+ %t1 =l loadl %t2+ %t3 =l copy 0+ %t4 =w ceql %t1, %t3+ jnz %t4, @lbl1217, @lbl1218+@lbl1217+ dbgloc 114+ %t5 =l call $bytes__empty()+ ret %t5+@lbl1218+ dbgloc 116+ %t8 =l add %b, 8+ %t7 =l loadl %t8+ %t6 =l call $malloc(l %t7)+ %t9 =l copy %t6+ storel %t9, %t10+ call $__sx_dbg_keep(l %t10)+ dbgvar "out", "ref u8", %t10, 8, 7, 116+ dbgloc 117+ %t12 =l copy %t9+ %t13 =l loadl %b+ %t14 =l copy %t13+ %t16 =l add %b, 8+ %t15 =l loadl %t16+ call $memcpy(l %t12, l %t14, l %t15)+ %t11 =l copy 0+ dbgloc 118+ storel %t9, %t17+ %t20 =l add %b, 8+ %t19 =l loadl %t20+ %t21 =l add %t17, 8+ storel %t19, %t21+ %t22 =l call $malloc(l 16)+ call $memcpy(l %t22, l %t17, l 16)+ ret %t22+}++export function l $bytes__from_cstr(l %s) {+@start+ %t0 =l alloc8 8+ %t6 =l alloc8 8+ %t7 =l alloc8 16+ dbgloc 121+ storel %s, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "s", "ref u8", %t0, 8, 7, 121+ dbgloc 122+ %t1 =l copy 0+ %t2 =w ceql %s, %t1+ jnz %t2, @lbl1220, @lbl1221+@lbl1220+ dbgloc 123+ %t3 =l call $bytes__empty()+ ret %t3+@lbl1221+ dbgloc 125+ %t4 =l call $sxqbe_strlen(l %s)+ %t5 =l copy %t4+ storel %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "n", "usize", %t6, 8, 5, 125+ dbgloc 126+ storel %s, %t7+ %t9 =l add %t7, 8+ storel %t5, %t9+ %t10 =l call $malloc(l 16)+ call $memcpy(l %t10, l %t7, l 16)+ ret %t10+}++export function w $bytes__Bytes__starts_with(l %b, l %prefix) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t9 =l alloc8 8+ dbgloc 129+ storel %b, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "b", "Bytes", %t0, 8, 5, 129+ storel %prefix, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "prefix", "Bytes", %t1, 8, 5, 129+ dbgloc 130+ %t3 =l add %prefix, 8+ %t2 =l loadl %t3+ %t5 =l add %b, 8+ %t4 =l loadl %t5+ %t6 =w csgtl %t2, %t4+ jnz %t6, @lbl1223, @lbl1224+@lbl1223+ dbgloc 131+ %t7 =l copy 0+ ret %t7+@lbl1224+ dbgloc 133+ %t8 =l copy 0+ storel %t8, %t9+ call $__sx_dbg_keep(l %t9)+ dbgvar "i", "usize", %t9, 8, 5, 133+ dbgloc 134+ jmp @lbl1226+@lbl1226+ %t10 =l loadl %t9+ %t12 =l add %prefix, 8+ %t11 =l loadl %t12+ %t13 =w csltl %t10, %t11+ jnz %t13, @lbl1227, @lbl1229+@lbl1227+ dbgloc 135+ %t16 =l loadl %b+ %t17 =l loadl %t9+ %t18 =l copy %t17+ %t15 =l add %t16, %t18+ %t19 =w loadub %t15+ %t14 =l extsw %t19+ %t22 =l loadl %prefix+ %t23 =l loadl %t9+ %t24 =l copy %t23+ %t21 =l add %t22, %t24+ %t25 =w loadub %t21+ %t20 =l extsw %t25+ %t26 =w cnel %t14, %t20+ jnz %t26, @lbl1230, @lbl1231+@lbl1230+ dbgloc 136+ %t27 =l copy 0+ ret %t27+@lbl1231+ dbgloc 138+ %t28 =l loadl %t9+ %t29 =l add %t28, 1+ storel %t29, %t9+ jmp @lbl1228+@lbl1228+ jmp @lbl1226+@lbl1229+ dbgloc 140+ %t30 =l copy 1+ ret %t30+}++export function w $bytes__free_owned(l %b) {+@start+ %t0 =l alloc8 8+ %t6 =l alloc8 8+ dbgloc 144+ storel %b, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "b", "Bytes", %t0, 8, 5, 144+ dbgloc 145+ %t1 =l loadl %b+ %t2 =l copy 0+ %t3 =w cnel %t1, %t2+ jnz %t3, @lbl1233, @lbl1234+@lbl1233+ dbgloc 146+ %t4 =l loadl %b+ %t5 =l copy %t4+ storel %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "p", "ref ", %t6, 8, 7, 146+ dbgloc 147+ %t8 =l loadl %t6+ call $free(l %t8)+ %t7 =l copy 0+ jmp @lbl1234+@lbl1234+ ret 0+}++export function w $bytes__free_ptr(l %p) {+@start+ %t0 =l alloc8 8+ %t4 =l alloc8 8+ dbgloc 152+ storel %p, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "p", "ref u8", %t0, 8, 7, 152+ dbgloc 153+ %t1 =l copy 0+ %t2 =w cnel %p, %t1+ jnz %t2, @lbl1236, @lbl1237+@lbl1236+ dbgloc 154+ %t3 =l copy %p+ storel %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "q", "ref ", %t4, 8, 7, 154+ dbgloc 155+ %t6 =l loadl %t4+ call $free(l %t6)+ %t5 =l copy 0+ jmp @lbl1237+@lbl1237+ ret 0+}++dbgfile "spectrelib/path/core.sx"+export function l $std__path__get_name_without_ext_cstr(l %arena, l %path) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t3 =l alloc8 8+ %t6 =l alloc8 8+ %t8 =l alloc8 8+ %t15 =l alloc8 8+ %t18 =l alloc8 16+ %t35 =l alloc8 8+ %t37 =l alloc8 8+ %t40 =l alloc8 8+ %t42 =l alloc8 8+ %t49 =l alloc8 8+ %t53 =l alloc8 16+ %t68 =l alloc8 8+ %t78 =l alloc8 16+ %t79 =l alloc8 8+ %t81 =l alloc8 8+ dbgloc 17+ storel %arena, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "arena", "ref allocators.Arena", %t0, 8, 7, 17+ storel %path, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "path", "ref u8", %t1, 8, 7, 17+ dbgloc 18+ %t2 =l call $cstr__len(l %path)+ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "len", "i64", %t3, 8, 5, 18+ dbgloc 19+ %t4 =l copy 1+ %t5 =l neg %t4+ storel %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "last_slash", "i64", %t6, 8, 5, 19+ dbgloc 20+ %t7 =l copy 0+ storel %t7, %t8+ call $__sx_dbg_keep(l %t8)+ dbgvar "i", "i64", %t8, 8, 5, 20+ dbgloc 22+ jmp @lbl1239+@lbl1239+ jmp @lbl1240+@lbl1240+ dbgloc 23+ %t9 =l loadl %t8+ %t11 =w csltl %t9, %t2+ %t10 =w ceqw %t11, 0+ jnz %t10, @lbl1243, @lbl1244+@lbl1243+ dbgloc 24+ jmp @lbl1242+@lbl1244+ dbgloc 26+ %t12 =l copy 0+ %t13 =w copy %t12+ %t14 =w extub %t13+ storew %t14, %t15+ call $__sx_dbg_keep(l %t15)+ dbgvar "c", "u8", %t15, 1, 7, 26+ dbgloc 27+ %t16 =l loadl %t8+ %t17 =l call $cstr__byte_at(l %t18, l %path, l %t16)+ %t19 =l loadl %t18+ %t20 =w cnel %t19, 0+ jnz %t20, @lbl1246, @lbl1247+@lbl1246+ %t22 =l add %t18, 8+ %t21 =w loadw %t22+ dbgloc 28+ %t23 =w copy %t21+ %t24 =w extub %t23+ storew %t24, %t15+ jmp @lbl1248+@lbl1247+ jmp @lbl1248+@lbl1248+ dbgloc 30+ %t26 =w loadw %t15+ %t25 =l extsw %t26+ %t27 =w copy 47+ %t28 =w ceqw %t25, %t27+ jnz %t28, @lbl1249, @lbl1250+@lbl1249+ dbgloc 31+ %t29 =l loadl %t8+ storel %t29, %t6+ jmp @lbl1250+@lbl1250+ dbgloc 33+ dbgloc 38+ %t30 =l loadl %t8+ %t31 =l add %t30, 1+ storel %t31, %t8+ jmp @lbl1241+@lbl1241+ jmp @lbl1239+@lbl1242+ dbgloc 41+ %t32 =l loadl %t6+ %t33 =l copy 1+ %t34 =l add %t32, %t33+ storel %t34, %t35+ call $__sx_dbg_keep(l %t35)+ dbgvar "filename_start", "i64", %t35, 8, 5, 41+ dbgloc 42+ %t36 =l sub %t2, %t34+ storel %t36, %t37+ call $__sx_dbg_keep(l %t37)+ dbgvar "filename_len", "i64", %t37, 8, 5, 42+ dbgloc 43+ %t38 =l copy 1+ %t39 =l neg %t38+ storel %t39, %t40+ call $__sx_dbg_keep(l %t40)+ dbgvar "last_dot", "i64", %t40, 8, 5, 43+ dbgloc 44+ %t41 =l copy 0+ storel %t41, %t42+ call $__sx_dbg_keep(l %t42)+ dbgvar "j", "i64", %t42, 8, 5, 44+ dbgloc 46+ jmp @lbl1252+@lbl1252+ jmp @lbl1253+@lbl1253+ dbgloc 47+ %t43 =l loadl %t42+ %t45 =w csltl %t43, %t36+ %t44 =w ceqw %t45, 0+ jnz %t44, @lbl1256, @lbl1257+@lbl1256+ dbgloc 48+ jmp @lbl1255+@lbl1257+ dbgloc 50+ %t46 =l copy 0+ %t47 =w copy %t46+ %t48 =w extub %t47+ storew %t48, %t49+ call $__sx_dbg_keep(l %t49)+ dbgvar "c", "u8", %t49, 1, 7, 50+ dbgloc 51+ %t50 =l loadl %t42+ %t51 =l add %t34, %t50+ %t52 =l call $cstr__byte_at(l %t53, l %path, l %t51)+ %t54 =l loadl %t53+ %t55 =w cnel %t54, 0+ jnz %t55, @lbl1259, @lbl1260+@lbl1259+ %t57 =l add %t53, 8+ %t56 =w loadw %t57+ dbgloc 52+ %t58 =w copy %t56+ %t59 =w extub %t58+ storew %t59, %t49+ jmp @lbl1261+@lbl1260+ jmp @lbl1261+@lbl1261+ dbgloc 54+ %t61 =w loadw %t49+ %t60 =l extsw %t61+ %t62 =w copy 46+ %t63 =w ceqw %t60, %t62+ jnz %t63, @lbl1262, @lbl1263+@lbl1262+ dbgloc 55+ %t64 =l loadl %t42+ storel %t64, %t40+ jmp @lbl1263+@lbl1263+ dbgloc 57+ %t65 =l loadl %t42+ %t66 =l add %t65, 1+ storel %t66, %t42+ jmp @lbl1254+@lbl1254+ jmp @lbl1252+@lbl1255+ dbgloc 60+ %t67 =l copy 0+ storel %t67, %t68+ call $__sx_dbg_keep(l %t68)+ dbgvar "name_len", "i64", %t68, 8, 5, 60+ dbgloc 62+ %t69 =l loadl %t40+ %t70 =l copy 0+ %t72 =w csltl %t69, %t70+ %t71 =w ceqw %t72, 0+ jnz %t71, @lbl1265, @lbl1267+@lbl1265+ dbgloc 63+ %t73 =l loadl %t40+ storel %t73, %t68+ jmp @lbl1266+@lbl1267+ dbgloc 65+ storel %t36, %t68+ jmp @lbl1266+@lbl1266+ dbgloc 68+ %t74 =l loadl %t68+ %t75 =l copy 1+ %t76 =l add %t74, %t75+ %t77 =l call $std__allocators__Arena__alloc(l %t78, l %arena, l %t76)+ storel %t78, %t79+ call $__sx_dbg_keep(l %t79)+ dbgvar "buf_opt", "option[ref ]", %t79, 8, 5, 68+ dbgloc 69+ %t80 =l copy 0+ storel %t80, %t81+ call $__sx_dbg_keep(l %t81)+ dbgvar "buf", "ref ", %t81, 8, 7, 69+ dbgloc 70+ %t82 =l loadl %t78+ %t83 =w cnel %t82, 0+ jnz %t83, @lbl1268, @lbl1269+@lbl1268+ %t85 =l add %t78, 8+ %t84 =l loadl %t85+ dbgloc 72+ storel %t84, %t81+ jmp @lbl1270+@lbl1269+ dbgloc 75+ %t86 =w call $std__stdio__puts(l $__sv53)+ dbgloc 76+ %t87 =l copy $__str56+ ret %t87+@lbl1270+ dbgloc 79+ %t89 =l loadl %t81+ %t90 =l add %path, %t34+ %t91 =l loadl %t68+ call $memcpy(l %t89, l %t90, l %t91)+ %t88 =l copy 0+ dbgloc 80+ %t94 =l loadl %t81+ %t95 =l loadl %t68+ %t93 =l add %t94, %t95+ %t96 =l copy 0+ storeb %t96, %t93+ %t92 =l copy 0+ dbgloc 82+ %t97 =l loadl %t81+ %t98 =l copy %t97+ ret %t98+}++export function l $std__path__get_name_without_ext(l %arena, l %path) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t3 =l alloc8 8+ %t6 =l alloc8 8+ %t8 =l alloc8 8+ %t26 =l alloc8 8+ %t36 =l alloc8 16+ %t37 =l alloc8 8+ %t39 =l alloc8 8+ dbgloc 86+ storel %arena, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "arena", "ref allocators.Arena", %t0, 8, 7, 86+ storel %path, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "path", "str.StringView", %t1, 8, 5, 86+ dbgloc 90+ %t2 =l call $std__path__base_name(l %path)+ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "base", "str.StringView", %t3, 8, 5, 90+ dbgloc 91+ %t4 =l copy 1+ %t5 =l neg %t4+ storel %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "last_dot", "i64", %t6, 8, 5, 91+ dbgloc 92+ %t7 =l copy 0+ storel %t7, %t8+ call $__sx_dbg_keep(l %t8)+ dbgvar "i", "i64", %t8, 8, 5, 92+ dbgloc 93+ jmp @lbl1271+@lbl1271+ jmp @lbl1272+@lbl1272+ dbgloc 94+ %t9 =l loadl %t8+ %t11 =l add %t2, 8+ %t10 =l loadl %t11+ %t13 =w csltl %t9, %t10+ %t12 =w ceqw %t13, 0+ jnz %t12, @lbl1275, @lbl1276+@lbl1275+ dbgloc 95+ jmp @lbl1274+@lbl1276+ dbgloc 97+ %t16 =l loadl %t2+ %t17 =l loadl %t8+ %t15 =l add %t16, %t17+ %t18 =w loadub %t15+ %t14 =l extsw %t18+ %t19 =l copy 46+ %t20 =w ceql %t14, %t19+ jnz %t20, @lbl1278, @lbl1279+@lbl1278+ dbgloc 98+ %t21 =l loadl %t8+ storel %t21, %t6+ jmp @lbl1279+@lbl1279+ dbgloc 100+ %t22 =l loadl %t8+ %t23 =l add %t22, 1+ storel %t23, %t8+ jmp @lbl1273+@lbl1273+ jmp @lbl1271+@lbl1274+ dbgloc 103+ %t25 =l add %t2, 8+ %t24 =l loadl %t25+ storel %t24, %t26+ call $__sx_dbg_keep(l %t26)+ dbgvar "name_len", "i64", %t26, 8, 5, 103+ dbgloc 104+ %t27 =l loadl %t6+ %t28 =l copy 0+ %t30 =w csltl %t27, %t28+ %t29 =w ceqw %t30, 0+ jnz %t29, @lbl1281, @lbl1282+@lbl1281+ dbgloc 105+ %t31 =l loadl %t6+ storel %t31, %t26+ jmp @lbl1282+@lbl1282+ dbgloc 107+ %t32 =l loadl %t26+ %t33 =l copy 1+ %t34 =l add %t32, %t33+ %t35 =l call $std__allocators__Arena__alloc(l %t36, l %arena, l %t34)+ storel %t36, %t37+ call $__sx_dbg_keep(l %t37)+ dbgvar "buf_opt", "option[ref ]", %t37, 8, 5, 107+ dbgloc 108+ %t38 =l copy 0+ storel %t38, %t39+ call $__sx_dbg_keep(l %t39)+ dbgvar "buf", "ref ", %t39, 8, 7, 108+ dbgloc 109+ %t40 =l loadl %t36+ %t41 =w cnel %t40, 0+ jnz %t41, @lbl1284, @lbl1285+@lbl1284+ %t43 =l add %t36, 8+ %t42 =l loadl %t43+ dbgloc 111+ storel %t42, %t39+ jmp @lbl1286+@lbl1285+ dbgloc 114+ %t44 =w call $std__stdio__puts(l $__sv53)+ dbgloc 115+ %t45 =l copy $__str56+ ret %t45+@lbl1286+ dbgloc 118+ %t46 =l loadl %t26+ %t47 =l copy 0+ %t48 =w csgtl %t46, %t47+ jnz %t48, @lbl1287, @lbl1288+@lbl1287+ dbgloc 119+ %t50 =l loadl %t39+ %t51 =l loadl %t2+ %t52 =l copy %t51+ %t53 =l loadl %t26+ %t54 =l copy %t53+ call $memcpy(l %t50, l %t52, l %t54)+ %t49 =l copy 0+ jmp @lbl1288+@lbl1288+ dbgloc 121+ %t57 =l loadl %t39+ %t58 =l loadl %t26+ %t56 =l add %t57, %t58+ %t59 =l copy 0+ storeb %t59, %t56+ %t55 =l copy 0+ dbgloc 122+ %t60 =l loadl %t39+ %t61 =l copy %t60+ ret %t61+}++export function l $std__path__join_cstr(l %dir, l %name) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t3 =l alloc8 8+ %t5 =l alloc8 8+ %t7 =l alloc8 8+ %t18 =l alloc8 8+ %t21 =l alloc4 1+ %t33 =l alloc8 8+ dbgloc 127+ storel %dir, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "dir", "ref u8", %t0, 8, 7, 127+ storel %name, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "name", "ref u8", %t1, 8, 7, 127+ dbgloc 128+ %t2 =l call $cstr__len(l %dir)+ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "dlen", "i64", %t3, 8, 5, 128+ dbgloc 129+ %t4 =l call $cstr__len(l %name)+ storel %t4, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "nlen", "i64", %t5, 8, 5, 129+ dbgloc 130+ %t6 =l copy 1+ storel %t6, %t7+ call $__sx_dbg_keep(l %t7)+ dbgvar "sep", "i64", %t7, 8, 5, 130+ dbgloc 131+ %t8 =l copy 0+ %t9 =w csgtl %t2, %t8+ jnz %t9, @lbl1290, @lbl1291+@lbl1290+ dbgloc 132+ %t12 =l copy 1+ %t13 =l sub %t2, %t12+ %t11 =l add %dir, %t13+ %t14 =w loadub %t11+ %t10 =l extsw %t14+ %t15 =w copy %t10+ %t16 =w copy %t15+ %t17 =w extub %t16+ storew %t17, %t18+ call $__sx_dbg_keep(l %t18)+ dbgvar "last", "u8", %t18, 1, 7, 132+ dbgloc 133+ %t19 =w copy 47+ %t20 =w ceqw %t17, %t19+ storew %t20, %t21+ jnz %t20, @lbl1297, @lbl1296+@lbl1296+ %t22 =w copy 92+ %t23 =w ceqw %t17, %t22+ storew %t23, %t21+ jmp @lbl1297+@lbl1297+ %t24 =w loadw %t21+ jnz %t24, @lbl1293, @lbl1294+@lbl1293+ dbgloc 134+ %t25 =l copy 0+ storel %t25, %t7+ jmp @lbl1294+@lbl1294+ jmp @lbl1291+@lbl1291+ dbgloc 137+ %t27 =l add %t2, %t4+ %t28 =l loadl %t7+ %t29 =l add %t27, %t28+ %t30 =l copy 1+ %t31 =l add %t29, %t30+ %t26 =l call $malloc(l %t31)+ %t32 =l copy %t26+ storel %t32, %t33+ call $__sx_dbg_keep(l %t33)+ dbgvar "buf", "ref u8", %t33, 8, 7, 137+ dbgloc 138+ %t35 =l copy %t2+ call $memcpy(l %t32, l %dir, l %t35)+ %t34 =l copy 0+ dbgloc 139+ %t36 =l loadl %t7+ %t37 =l copy 1+ %t38 =w ceql %t36, %t37+ jnz %t38, @lbl1298, @lbl1299+@lbl1298+ dbgloc 140+ %t40 =l add %t32, %t2+ %t41 =l copy 47+ storeb %t41, %t40+ %t39 =l copy 0+ jmp @lbl1299+@lbl1299+ dbgloc 142+ %t44 =l loadl %t7+ %t45 =l add %t2, %t44+ %t43 =l add %t32, %t45+ %t46 =l copy %t4+ call $memcpy(l %t43, l %name, l %t46)+ %t42 =l copy 0+ dbgloc 143+ %t49 =l loadl %t7+ %t50 =l add %t2, %t49+ %t51 =l add %t50, %t4+ %t48 =l add %t32, %t51+ %t52 =l copy 0+ storeb %t52, %t48+ %t47 =l copy 0+ dbgloc 144+ ret %t32+}++export function l $std__path__join(l %dir, l %name) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t4 =l alloc8 8+ %t7 =l alloc8 8+ %t9 =l alloc8 8+ %t21 =l alloc8 8+ %t24 =l alloc4 1+ %t36 =l alloc8 8+ dbgloc 148+ storel %dir, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "dir", "str.StringView", %t0, 8, 5, 148+ storel %name, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "name", "str.StringView", %t1, 8, 5, 148+ dbgloc 149+ %t3 =l add %dir, 8+ %t2 =l loadl %t3+ storel %t2, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "dlen", "i64", %t4, 8, 5, 149+ dbgloc 150+ %t6 =l add %name, 8+ %t5 =l loadl %t6+ storel %t5, %t7+ call $__sx_dbg_keep(l %t7)+ dbgvar "nlen", "i64", %t7, 8, 5, 150+ dbgloc 151+ %t8 =l copy 1+ storel %t8, %t9+ call $__sx_dbg_keep(l %t9)+ dbgvar "sep", "i64", %t9, 8, 5, 151+ dbgloc 152+ %t10 =l copy 0+ %t11 =w csgtl %t2, %t10+ jnz %t11, @lbl1301, @lbl1302+@lbl1301+ dbgloc 153+ %t14 =l loadl %dir+ %t15 =l copy 1+ %t16 =l sub %t2, %t15+ %t13 =l add %t14, %t16+ %t17 =w loadub %t13+ %t12 =l extsw %t17+ %t18 =w copy %t12+ %t19 =w copy %t18+ %t20 =w extub %t19+ storew %t20, %t21+ call $__sx_dbg_keep(l %t21)+ dbgvar "last", "u8", %t21, 1, 7, 153+ dbgloc 154+ %t22 =w copy 47+ %t23 =w ceqw %t20, %t22+ storew %t23, %t24+ jnz %t23, @lbl1308, @lbl1307+@lbl1307+ %t25 =w copy 92+ %t26 =w ceqw %t20, %t25+ storew %t26, %t24+ jmp @lbl1308+@lbl1308+ %t27 =w loadw %t24+ jnz %t27, @lbl1304, @lbl1305+@lbl1304+ dbgloc 155+ %t28 =l copy 0+ storel %t28, %t9+ jmp @lbl1305+@lbl1305+ jmp @lbl1302+@lbl1302+ dbgloc 158+ %t30 =l add %t2, %t5+ %t31 =l loadl %t9+ %t32 =l add %t30, %t31+ %t33 =l copy 1+ %t34 =l add %t32, %t33+ %t29 =l call $malloc(l %t34)+ %t35 =l copy %t29+ storel %t35, %t36+ call $__sx_dbg_keep(l %t36)+ dbgvar "buf", "ref u8", %t36, 8, 7, 158+ dbgloc 159+ %t37 =l copy 0+ %t38 =w csgtl %t2, %t37+ jnz %t38, @lbl1309, @lbl1310+@lbl1309+ dbgloc 160+ %t40 =l copy %t35+ %t41 =l loadl %dir+ %t42 =l copy %t41+ %t43 =l copy %t2+ call $memcpy(l %t40, l %t42, l %t43)+ %t39 =l copy 0+ jmp @lbl1310+@lbl1310+ dbgloc 162+ %t44 =l loadl %t9+ %t45 =l copy 1+ %t46 =w ceql %t44, %t45+ jnz %t46, @lbl1312, @lbl1313+@lbl1312+ dbgloc 163+ %t48 =l add %t35, %t2+ %t49 =l copy 47+ storeb %t49, %t48+ %t47 =l copy 0+ jmp @lbl1313+@lbl1313+ dbgloc 165+ %t50 =l copy 0+ %t51 =w csgtl %t5, %t50+ jnz %t51, @lbl1315, @lbl1316+@lbl1315+ dbgloc 166+ %t54 =l loadl %t9+ %t55 =l add %t2, %t54+ %t53 =l add %t35, %t55+ %t56 =l copy %t53+ %t57 =l loadl %name+ %t58 =l copy %t57+ %t59 =l copy %t5+ call $memcpy(l %t56, l %t58, l %t59)+ %t52 =l copy 0+ jmp @lbl1316+@lbl1316+ dbgloc 168+ %t62 =l loadl %t9+ %t63 =l add %t2, %t62+ %t64 =l add %t63, %t5+ %t61 =l add %t35, %t64+ %t65 =l copy 0+ storeb %t65, %t61+ %t60 =l copy 0+ dbgloc 169+ ret %t35+}++export function l $std__path__dir(l %path) {+@start+ %t0 =l alloc8 8+ %t3 =l alloc8 8+ %t5 =l alloc8 8+ %t19 =l alloc8 8+ dbgloc 174+ storel %path, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "path", "str.StringView", %t0, 8, 5, 174+ dbgloc 175+ %t1 =l copy 1+ %t2 =l neg %t1+ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "last_slash", "i64", %t3, 8, 5, 175+ dbgloc 176+ %t4 =l copy 0+ storel %t4, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "i", "i64", %t5, 8, 5, 176+ dbgloc 177+ jmp @lbl1318+@lbl1318+ jmp @lbl1319+@lbl1319+ dbgloc 178+ %t6 =l loadl %t5+ %t8 =l add %path, 8+ %t7 =l loadl %t8+ %t10 =w csltl %t6, %t7+ %t9 =w ceqw %t10, 0+ jnz %t9, @lbl1322, @lbl1323+@lbl1322+ dbgloc 179+ jmp @lbl1321+@lbl1323+ dbgloc 181+ %t13 =l loadl %path+ %t14 =l loadl %t5+ %t12 =l add %t13, %t14+ %t15 =w loadub %t12+ %t11 =l extsw %t15+ %t16 =w copy %t11+ %t17 =w copy %t16+ %t18 =w extub %t17+ storew %t18, %t19+ call $__sx_dbg_keep(l %t19)+ dbgvar "c", "u8", %t19, 1, 7, 181+ dbgloc 182+ %t20 =w copy 47+ %t21 =w ceqw %t18, %t20+ jnz %t21, @lbl1325, @lbl1326+@lbl1325+ dbgloc 183+ %t22 =l loadl %t5+ storel %t22, %t3+ jmp @lbl1326+@lbl1326+ dbgloc 185+ dbgloc 190+ %t23 =l loadl %t5+ %t24 =l add %t23, 1+ storel %t24, %t5+ jmp @lbl1320+@lbl1320+ jmp @lbl1318+@lbl1321+ dbgloc 192+ %t25 =l loadl %t3+ %t26 =l copy 0+ %t27 =w csltl %t25, %t26+ jnz %t27, @lbl1328, @lbl1329+@lbl1328+ dbgloc 193+ ret $__sv54+@lbl1329+ dbgloc 195+ %t28 =l copy 0+ %t29 =l loadl %t3+ %t30 =l copy 1+ %t31 =l add %t29, %t30+ %t32 =l call $std__str__slice(l %path, l %t28, l %t31)+ ret %t32+}++export function l $std__path__dir_cstr(l %path) {+@start+ %t0 =l alloc8 8+ %t2 =l alloc8 8+ %t5 =l alloc8 8+ %t7 =l alloc8 8+ %t18 =l alloc8 8+ %t33 =l alloc8 8+ dbgloc 200+ storel %path, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "path", "ref u8", %t0, 8, 7, 200+ dbgloc 201+ %t1 =l call $cstr__len(l %path)+ storel %t1, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "len", "i64", %t2, 8, 5, 201+ dbgloc 202+ %t3 =l copy 1+ %t4 =l neg %t3+ storel %t4, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "last_slash", "i64", %t5, 8, 5, 202+ dbgloc 203+ %t6 =l copy 0+ storel %t6, %t7+ call $__sx_dbg_keep(l %t7)+ dbgvar "i", "i64", %t7, 8, 5, 203+ dbgloc 204+ jmp @lbl1331+@lbl1331+ jmp @lbl1332+@lbl1332+ dbgloc 205+ %t8 =l loadl %t7+ %t10 =w csltl %t8, %t1+ %t9 =w ceqw %t10, 0+ jnz %t9, @lbl1335, @lbl1336+@lbl1335+ dbgloc 206+ jmp @lbl1334+@lbl1336+ dbgloc 208+ %t13 =l loadl %t7+ %t12 =l add %path, %t13+ %t14 =w loadub %t12+ %t11 =l extsw %t14+ %t15 =w copy %t11+ %t16 =w copy %t15+ %t17 =w extub %t16+ storew %t17, %t18+ call $__sx_dbg_keep(l %t18)+ dbgvar "c", "u8", %t18, 1, 7, 208+ dbgloc 209+ %t19 =w copy 47+ %t20 =w ceqw %t17, %t19+ jnz %t20, @lbl1338, @lbl1339+@lbl1338+ dbgloc 210+ %t21 =l loadl %t7+ storel %t21, %t5+ jmp @lbl1339+@lbl1339+ dbgloc 212+ dbgloc 217+ %t22 =l loadl %t7+ %t23 =l add %t22, 1+ storel %t23, %t7+ jmp @lbl1333+@lbl1333+ jmp @lbl1331+@lbl1334+ dbgloc 219+ %t24 =l loadl %t5+ %t25 =l copy 0+ %t26 =w csltl %t24, %t25+ jnz %t26, @lbl1341, @lbl1342+@lbl1341+ dbgloc 220+ %t27 =l copy $__str134+ ret %t27+@lbl1342+ dbgloc 222+ %t29 =l loadl %t5+ %t30 =l copy 2+ %t31 =l add %t29, %t30+ %t28 =l call $malloc(l %t31)+ %t32 =l copy %t28+ storel %t32, %t33+ call $__sx_dbg_keep(l %t33)+ dbgvar "buf", "ref u8", %t33, 8, 7, 222+ dbgloc 223+ %t35 =l loadl %t5+ %t36 =l copy 1+ %t37 =l add %t35, %t36+ %t38 =l copy %t37+ call $memcpy(l %t32, l %path, l %t38)+ %t34 =l copy 0+ dbgloc 224+ %t41 =l loadl %t5+ %t42 =l copy 1+ %t43 =l add %t41, %t42+ %t40 =l add %t32, %t43+ %t44 =l copy 0+ storeb %t44, %t40+ %t39 =l copy 0+ dbgloc 225+ ret %t32+}++function w $std__path__has_unc_prefix(l %path, l %len) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 229+ storel %path, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "path", "ref u8", %t0, 8, 7, 229+ storel %len, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "len", "i64", %t1, 8, 5, 229+ dbgloc 230+ dbgloc 231+ %t2 =l copy 0+ %t3 =w csltl %len, %t2+ jnz %t3, @lbl1344, @lbl1345+@lbl1344+ dbgloc 232+ %t4 =l copy 0+ ret %t4+@lbl1345+ dbgloc 234+ dbgloc 239+ %t5 =l copy 0+ ret %t5+}++export function l $std__path__canonicalize_path_cstr(l %path) {+@start+ %t0 =l alloc8 8+ %t4 =l alloc8 8+ %t14 =l alloc8 8+ %t16 =l alloc8 8+ %t18 =l alloc8 8+ %t22 =l alloc8 8+ %t24 =l alloc8 8+ %t28 =l alloc4 1+ %t35 =l alloc8 8+ %t54 =l alloc8 8+ %t68 =l alloc4 1+ %t76 =l alloc4 1+ %t86 =l alloc8 8+ %t93 =l alloc8 16+ %t98 =l alloc8 8+ %t99 =l alloc8 8+ %t104 =l alloc8 8+ %t113 =l alloc8 8+ %t124 =l alloc8 8+ %t129 =l alloc8 8+ %t140 =l alloc8 8+ %t146 =l alloc8 8+ %t152 =l alloc8 8+ %t173 =l alloc8 8+ %t177 =l alloc8 16+ %t188 =l alloc8 8+ %t288 =l alloc8 8+ %t309 =l alloc8 8+ %t316 =l alloc8 8+ %t319 =l alloc4 1+ %t335 =l alloc8 8+ %t344 =l alloc8 16+ %t354 =l alloc8 8+ %t365 =l alloc4 1+ %t380 =l alloc8 8+ %t382 =l alloc8 8+ %t386 =l alloc8 8+ %t394 =l alloc8 16+ %t404 =l alloc8 8+ %t410 =l alloc8 8+ dbgloc 242+ storel %path, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "path", "ref u8", %t0, 8, 7, 242+ dbgloc 243+ %t1 =l copy 0+ %t2 =w ceql %path, %t1+ jnz %t2, @lbl1347, @lbl1348+@lbl1347+ dbgloc 244+ ret %path+@lbl1348+ dbgloc 246+ %t3 =l call $cstr__len(l %path)+ storel %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "len", "i64", %t4, 8, 5, 246+ dbgloc 247+ %t5 =l copy 0+ %t6 =w ceql %t3, %t5+ jnz %t6, @lbl1350, @lbl1351+@lbl1350+ dbgloc 248+ ret %path+@lbl1351+ dbgloc 251+ %t9 =l copy 0+ %t8 =l add %path, %t9+ %t10 =w loadub %t8+ %t7 =l extsw %t10+ %t11 =w copy %t7+ %t12 =w copy %t11+ %t13 =w extub %t12+ storew %t13, %t14+ call $__sx_dbg_keep(l %t14)+ dbgvar "first", "u8", %t14, 1, 7, 251+ dbgloc 252+ %t15 =l copy 0+ storel %t15, %t16+ call $__sx_dbg_keep(l %t16)+ dbgvar "root_prefix", "ref u8", %t16, 8, 7, 252+ dbgloc 253+ %t17 =l copy 0+ storel %t17, %t18+ call $__sx_dbg_keep(l %t18)+ dbgvar "root_floor", "i64", %t18, 8, 5, 253+ dbgloc 254+ %t19 =l copy 0+ %t20 =w copy %t19+ %t21 =w extub %t20+ storew %t21, %t22+ call $__sx_dbg_keep(l %t22)+ dbgvar "is_abs", "bool", %t22, 1, 7, 254+ dbgloc 255+ %t23 =l copy 0+ storel %t23, %t24+ call $__sx_dbg_keep(l %t24)+ dbgvar "i", "i64", %t24, 8, 5, 255+ dbgloc 257+ dbgloc 272+ %t26 =w loadw %t22+ %t25 =l extsw %t26+ %t27 =w ceqw %t25, 0+ storew %t27, %t28+ jnz %t27, @lbl1356, @lbl1357+@lbl1356+ %t29 =w call $std__path__is_path_sep(w %t13)+ storew %t29, %t28+ jmp @lbl1357+@lbl1357+ %t30 =w loadw %t28+ jnz %t30, @lbl1353, @lbl1354+@lbl1353+ dbgloc 273+ %t31 =w call $std__path__has_unc_prefix(l %path, l %t3)+ jnz %t31, @lbl1358, @lbl1360+@lbl1358+ dbgloc 274+ %t33 =l copy 3+ %t32 =l call $malloc(l %t33)+ %t34 =l copy %t32+ storel %t34, %t35+ call $__sx_dbg_keep(l %t35)+ dbgvar "unc_root", "ref u8", %t35, 8, 7, 274+ dbgloc 275+ %t37 =l copy 47+ storeb %t37, %t34+ %t36 =l copy 0+ dbgloc 276+ %t40 =l copy 1+ %t39 =l add %t34, %t40+ %t41 =l copy 47+ storeb %t41, %t39+ %t38 =l copy 0+ dbgloc 277+ %t44 =l copy 2+ %t43 =l add %t34, %t44+ %t45 =l copy 0+ storeb %t45, %t43+ %t42 =l copy 0+ dbgloc 278+ storel %t34, %t16+ dbgloc 279+ %t46 =l copy 2+ storel %t46, %t18+ dbgloc 280+ %t47 =l copy 1+ %t48 =w copy %t47+ %t49 =w extub %t48+ storew %t49, %t22+ dbgloc 281+ %t50 =l copy 2+ storel %t50, %t24+ jmp @lbl1359+@lbl1360+ dbgloc 283+ %t52 =l copy 2+ %t51 =l call $malloc(l %t52)+ %t53 =l copy %t51+ storel %t53, %t54+ call $__sx_dbg_keep(l %t54)+ dbgvar "abs_root", "ref u8", %t54, 8, 7, 283+ dbgloc 284+ %t56 =l copy 47+ storeb %t56, %t53+ %t55 =l copy 0+ dbgloc 285+ %t59 =l copy 1+ %t58 =l add %t53, %t59+ %t60 =l copy 0+ storeb %t60, %t58+ %t57 =l copy 0+ dbgloc 286+ storel %t53, %t16+ dbgloc 287+ %t61 =l copy 1+ %t62 =w copy %t61+ %t63 =w extub %t62+ storew %t63, %t22+ dbgloc 288+ %t64 =l copy 1+ storel %t64, %t24+ jmp @lbl1359+@lbl1359+ jmp @lbl1354+@lbl1354+ dbgloc 292+ %t65 =l copy 2+ %t67 =w csltl %t3, %t65+ %t66 =w ceqw %t67, 0+ storew %t66, %t68+ jnz %t66, @lbl1361, @lbl1362+@lbl1361+ %t71 =l copy 0+ %t70 =l add %path, %t71+ %t72 =w loadub %t70+ %t69 =l extsw %t72+ %t73 =l copy 46+ %t74 =w ceql %t69, %t73+ storew %t74, %t68+ jmp @lbl1362+@lbl1362+ %t75 =w loadw %t68+ storew %t75, %t76+ jnz %t75, @lbl1363, @lbl1364+@lbl1363+ %t79 =l copy 1+ %t78 =l add %path, %t79+ %t80 =w loadub %t78+ %t77 =l extsw %t80+ %t82 =w copy %t77+ %t81 =w call $std__path__is_path_sep(w %t82)+ storew %t81, %t76+ jmp @lbl1364+@lbl1364+ %t83 =w loadw %t76+ %t84 =w copy %t83+ %t85 =w extub %t84+ storew %t85, %t86+ call $__sx_dbg_keep(l %t86)+ dbgvar "keep_dot_prefix", "bool", %t86, 1, 7, 292+ dbgloc 295+ %t87 =l copy 16+ %t88 =l mul %t3, %t87+ %t89 =l copy 1024+ %t90 =l add %t88, %t89+ %t91 =l copy %t90+ %t92 =l call $std__allocators__ScopedArena__new(l %t93, l %t91)+ %t94 =l loadl %t93+ %t95 =w ceql %t94, 0+ jnz %t95, @lbl1365, @lbl1366+@lbl1366+ ret %t93+@lbl1365+ %t97 =l add %t93, 8+ %t96 =l loadl %t97+ storel %t96, %t98+ call $__sx_dbg_keep(l %t98)+ dbgvar "list_arena", "allocators.ScopedArenaAllocator", %t98, 8, 5, 295+ dbgloc 298+ dbgloc 301+ storel %t96, %t99+ %t102 =l copy 0+ %t103 =w cnel %t99, 0+ jnz %t103, @lbl1367, @lbl1368+@lbl1367+ %t101 =l call $malloc(l 8)+ call $memset(l %t101, w 0, l 8)+ call $memcpy(l %t101, l %t99, l 8)+ %t102 =l copy %t101+@lbl1368+ storel %t102, %t104+ call $__sx_dbg_keep(l %t104)+ dbgvar "list_ac", "allocators.ListArena", %t104, 8, 5, 301+ dbgloc 302+ %t106 =l copy $sx__allocadapt_allocators__ListArena_alloc+ %t107 =l copy $sx__allocadapt_allocators__ListArena_free+ %t108 =l copy $sx__allocadapt_allocators__ListArena_realloc+ %t105 =l call $sxqbe_list_alloc(l %t106, l %t107, l %t108, l %t102)+ %t109 =l loadl %t105+ %t110 =w ceql %t109, 0+ jnz %t110, @lbl1369, @lbl1370+@lbl1370+ ret %t105+@lbl1369+ %t112 =l add %t105, 8+ %t111 =l loadl %t112+ storel %t111, %t113+ call $__sx_dbg_keep(l %t113)+ dbgvar "segs", "list[ref u8]", %t113, 8, 5, 302+ dbgloc 304+ jmp @lbl1371+@lbl1371+ jmp @lbl1372+@lbl1372+ dbgloc 305+ %t114 =l loadl %t24+ %t116 =w csltl %t114, %t3+ %t115 =w ceqw %t116, 0+ jnz %t115, @lbl1375, @lbl1376+@lbl1375+ dbgloc 306+ jmp @lbl1374+@lbl1376+ dbgloc 308+ %t119 =l loadl %t24+ %t118 =l add %path, %t119+ %t120 =w loadub %t118+ %t117 =l extsw %t120+ %t121 =w copy %t117+ %t122 =w copy %t121+ %t123 =w extub %t122+ storew %t123, %t124+ call $__sx_dbg_keep(l %t124)+ dbgvar "c", "u8", %t124, 1, 7, 308+ dbgloc 309+ %t125 =w call $std__path__is_path_sep(w %t123)+ jnz %t125, @lbl1378, @lbl1379+@lbl1378+ dbgloc 310+ %t126 =l loadl %t24+ %t127 =l add %t126, 1+ storel %t127, %t24+ dbgloc 311+ jmp @lbl1373+@lbl1379+ dbgloc 313+ %t128 =l loadl %t24+ storel %t128, %t129+ call $__sx_dbg_keep(l %t129)+ dbgvar "start", "i64", %t129, 8, 5, 313+ dbgloc 314+ jmp @lbl1381+@lbl1381+ jmp @lbl1382+@lbl1382+ dbgloc 315+ %t130 =l loadl %t24+ %t132 =w csltl %t130, %t3+ %t131 =w ceqw %t132, 0+ jnz %t131, @lbl1385, @lbl1386+@lbl1385+ dbgloc 316+ jmp @lbl1384+@lbl1386+ dbgloc 318+ %t135 =l loadl %t24+ %t134 =l add %path, %t135+ %t136 =w loadub %t134+ %t133 =l extsw %t136+ %t137 =w copy %t133+ %t138 =w copy %t137+ %t139 =w extub %t138+ storew %t139, %t140+ call $__sx_dbg_keep(l %t140)+ dbgvar "c2", "u8", %t140, 1, 7, 318+ dbgloc 319+ %t141 =w call $std__path__is_path_sep(w %t139)+ jnz %t141, @lbl1388, @lbl1389+@lbl1388+ dbgloc 320+ jmp @lbl1384+@lbl1389+ dbgloc 322+ %t142 =l loadl %t24+ %t143 =l add %t142, 1+ storel %t143, %t24+ jmp @lbl1383+@lbl1383+ jmp @lbl1381+@lbl1384+ dbgloc 324+ %t144 =l loadl %t24+ %t145 =l sub %t144, %t128+ storel %t145, %t146+ call $__sx_dbg_keep(l %t146)+ dbgvar "seg_len", "i64", %t146, 8, 5, 324+ dbgloc 325+ %t148 =l copy 1+ %t149 =l add %t145, %t148+ %t150 =l copy %t149+ %t147 =l call $malloc(l %t150)+ %t151 =l copy %t147+ storel %t151, %t152+ call $__sx_dbg_keep(l %t152)+ dbgvar "seg", "ref u8", %t152, 8, 7, 325+ dbgloc 326+ %t154 =l add %path, %t128+ %t155 =l copy %t145+ call $memcpy(l %t151, l %t154, l %t155)+ %t153 =l copy 0+ dbgloc 327+ %t157 =l add %t151, %t145+ %t158 =l copy 0+ storeb %t158, %t157+ %t156 =l copy 0+ dbgloc 328+ %t159 =l copy $__str134+ %t160 =l call $cstr__cmp(l %t151, l %t159)+ %t161 =l copy 0+ %t162 =w ceql %t160, %t161+ jnz %t162, @lbl1391, @lbl1392+@lbl1391+ dbgloc 329+ %t164 =l copy %t151+ call $free(l %t164)+ %t163 =l copy 0+ dbgloc 330+ jmp @lbl1373+@lbl1392+ dbgloc 332+ %t165 =l copy $__str135+ %t166 =l call $cstr__cmp(l %t151, l %t165)+ %t167 =l copy 0+ %t168 =w ceql %t166, %t167+ jnz %t168, @lbl1394, @lbl1395+@lbl1394+ dbgloc 333+ %t170 =l loadl %t113+ %t171 =l call $sxqbe_list_len(l %t170)+ %t172 =l copy %t171+ storel %t172, %t173+ call $__sx_dbg_keep(l %t173)+ dbgvar "segs_len", "i64", %t173, 8, 5, 333+ dbgloc 334+ %t174 =l loadl %t18+ %t175 =w csgtl %t172, %t174+ jnz %t175, @lbl1397, @lbl1399+@lbl1397+ dbgloc 335+ storel 0, %t177+ %t178 =l loadl %t113+ %t179 =l copy 1+ %t180 =l sub %t172, %t179+ %t181 =l copy %t180+ %t182 =w call $sxqbe_list_valid(l %t178, l %t181)+ jnz %t182, @lbl1402, @lbl1403+@lbl1402+ %t183 =l call $sxqbe_list_buf(l %t178)+ %t184 =l mul %t181, 8+ %t185 =l add %t183, %t184+ %t186 =l loadl %t185+ %t187 =l add %t177, 8+ storel %t186, %t187+ storel 1, %t177+ jmp @lbl1404+@lbl1403+ jmp @lbl1404+@lbl1404+ storel %t177, %t188+ call $__sx_dbg_keep(l %t188)+ dbgvar "last_opt", "option[ref u8]", %t188, 8, 5, 335+ dbgloc 336+ %t189 =l loadl %t177+ %t190 =w cnel %t189, 0+ jnz %t190, @lbl1405, @lbl1406+@lbl1405+ %t192 =l add %t177, 8+ %t191 =l loadl %t192+ dbgloc 338+ %t193 =l copy %t191+ %t194 =l copy $__str135+ %t195 =l call $cstr__cmp(l %t193, l %t194)+ %t196 =l copy 0+ %t197 =w cnel %t195, %t196+ jnz %t197, @lbl1408, @lbl1410+@lbl1408+ dbgloc 339+ %t199 =l copy %t191+ call $free(l %t199)+ %t198 =l copy 0+ dbgloc 340+ %t201 =l call $sxqbe_list_ensure(l %t113)+ %t202 =l copy 1+ %t203 =l sub %t172, %t202+ %t204 =l add %t201, 8+ %t205 =l loadl %t204+ %t206 =l loadl %t201+ %t207 =l mul %t203, 8+ %t208 =l add %t206, %t207+ %t209 =l loadl %t208+ %t210 =l copy %t203+ jmp @lbl1413+@lbl1413+ %t211 =l sub %t205, 1+ %t212 =w csltl %t210, %t211+ jnz %t212, @lbl1414, @lbl1415+@lbl1414+ %t213 =l add %t210, 1+ %t214 =l mul %t213, 8+ %t215 =l mul %t210, 8+ %t216 =l loadl %t201+ %t217 =l add %t216, %t214+ %t218 =l add %t216, %t215+ %t219 =l loadl %t217+ storel %t219, %t218+ %t220 =l add %t210, 1+ %t210 =l copy %t220+ jmp @lbl1413+@lbl1415+ %t221 =l sub %t205, 1+ storel %t221, %t204+ dbgloc 341+ %t223 =l copy %t151+ call $free(l %t223)+ %t222 =l copy 0+ jmp @lbl1409+@lbl1410+ %t225 =w loadw %t22+ %t224 =l extsw %t225+ %t226 =w ceqw %t224, 0+ jnz %t226, @lbl1411, @lbl1412+@lbl1411+ dbgloc 343+ %t228 =l call $sxqbe_list_ensure(l %t113)+ %t229 =l add %t228, 8+ %t230 =l add %t228, 16+ %t231 =l loadl %t229+ %t232 =l loadl %t230+ %t234 =l add %t231, 1+ %t233 =w call $sxqbe_list_grow(l %t228, l %t234)+ %t235 =l call $sxqbe_list_buf(l %t228)+ %t236 =l mul %t231, 8+ %t237 =l add %t235, %t236+ storel %t151, %t237+ %t238 =l add %t231, 1+ storel %t238, %t229+ %t227 =l copy 0+ jmp @lbl1409+@lbl1412+ dbgloc 345+ %t240 =l copy %t151+ call $free(l %t240)+ %t239 =l copy 0+ jmp @lbl1409+@lbl1409+ jmp @lbl1407+@lbl1406+ dbgloc 349+ %t242 =w loadw %t22+ %t241 =l extsw %t242+ %t243 =w ceqw %t241, 0+ jnz %t243, @lbl1416, @lbl1418+@lbl1416+ dbgloc 350+ %t245 =l call $sxqbe_list_ensure(l %t113)+ %t246 =l add %t245, 8+ %t247 =l add %t245, 16+ %t248 =l loadl %t246+ %t249 =l loadl %t247+ %t251 =l add %t248, 1+ %t250 =w call $sxqbe_list_grow(l %t245, l %t251)+ %t252 =l call $sxqbe_list_buf(l %t245)+ %t253 =l mul %t248, 8+ %t254 =l add %t252, %t253+ storel %t151, %t254+ %t255 =l add %t248, 1+ storel %t255, %t246+ %t244 =l copy 0+ jmp @lbl1417+@lbl1418+ dbgloc 352+ %t257 =l copy %t151+ call $free(l %t257)+ %t256 =l copy 0+ jmp @lbl1417+@lbl1417+ jmp @lbl1407+@lbl1407+ jmp @lbl1398+@lbl1399+ %t259 =w loadw %t22+ %t258 =l extsw %t259+ %t260 =w ceqw %t258, 0+ jnz %t260, @lbl1400, @lbl1401+@lbl1400+ dbgloc 357+ %t262 =l call $sxqbe_list_ensure(l %t113)+ %t263 =l add %t262, 8+ %t264 =l add %t262, 16+ %t265 =l loadl %t263+ %t266 =l loadl %t264+ %t268 =l add %t265, 1+ %t267 =w call $sxqbe_list_grow(l %t262, l %t268)+ %t269 =l call $sxqbe_list_buf(l %t262)+ %t270 =l mul %t265, 8+ %t271 =l add %t269, %t270+ storel %t151, %t271+ %t272 =l add %t265, 1+ storel %t272, %t263+ %t261 =l copy 0+ jmp @lbl1398+@lbl1401+ dbgloc 359+ %t274 =l copy %t151+ call $free(l %t274)+ %t273 =l copy 0+ jmp @lbl1398+@lbl1398+ dbgloc 361+ jmp @lbl1373+@lbl1395+ dbgloc 363+ %t276 =l call $sxqbe_list_ensure(l %t113)+ %t277 =l add %t276, 8+ %t278 =l add %t276, 16+ %t279 =l loadl %t277+ %t280 =l loadl %t278+ %t282 =l add %t279, 1+ %t281 =w call $sxqbe_list_grow(l %t276, l %t282)+ %t283 =l call $sxqbe_list_buf(l %t276)+ %t284 =l mul %t279, 8+ %t285 =l add %t283, %t284+ storel %t151, %t285+ %t286 =l add %t279, 1+ storel %t286, %t277+ %t275 =l copy 0+ jmp @lbl1373+@lbl1373+ jmp @lbl1371+@lbl1374+ dbgloc 366+ %t287 =l call $builder__StringBuilder__new()+ storel %t287, %t288+ call $__sx_dbg_keep(l %t288)+ dbgvar "sb", "ref ", %t288, 8, 7, 366+ dbgloc 367+ %t289 =l loadl %t16+ %t290 =l copy 0+ %t291 =w cnel %t289, %t290+ jnz %t291, @lbl1419, @lbl1420+@lbl1419+ dbgloc 368+ %t292 =l loadl %t16+ %t293 =l copy %t292+ %t294 =w call $builder__StringBuilder__append_cstr(l %t287, l %t293)+ jmp @lbl1420+@lbl1420+ dbgloc 371+ %t296 =l loadl %t113+ %t297 =l call $sxqbe_list_len(l %t296)+ %t298 =l copy %t297+ %t299 =l copy 0+ %t300 =w ceql %t298, %t299+ jnz %t300, @lbl1422, @lbl1424+@lbl1422+ dbgloc 372+ %t301 =l loadl %t16+ %t302 =l copy 0+ %t303 =w ceql %t301, %t302+ jnz %t303, @lbl1425, @lbl1426+@lbl1425+ dbgloc 373+ %t304 =l copy 46+ %t305 =w call $builder__StringBuilder__append_char(l %t287, w %t304)+ jmp @lbl1426+@lbl1426+ jmp @lbl1423+@lbl1424+ dbgloc 376+ %t306 =l copy 0+ %t307 =w copy %t306+ %t308 =w extub %t307+ storew %t308, %t309+ call $__sx_dbg_keep(l %t309)+ dbgvar "root_needs_sep", "bool", %t309, 1, 7, 376+ dbgloc 377+ %t310 =l loadl %t16+ %t311 =l copy 0+ %t312 =w cnel %t310, %t311+ jnz %t312, @lbl1428, @lbl1429+@lbl1428+ dbgloc 378+ %t313 =l loadl %t16+ %t314 =l copy %t313+ %t315 =l call $cstr__len(l %t314)+ storel %t315, %t316+ call $__sx_dbg_keep(l %t316)+ dbgvar "rlen", "i64", %t316, 8, 5, 378+ dbgloc 379+ %t317 =l copy 0+ %t318 =w csgtl %t315, %t317+ storew %t318, %t319+ jnz %t318, @lbl1434, @lbl1435+@lbl1434+ %t322 =l loadl %t16+ %t323 =l copy %t322+ %t324 =l copy 1+ %t325 =l sub %t315, %t324+ %t321 =l add %t323, %t325+ %t326 =w loadub %t321+ %t320 =l extsw %t326+ %t328 =w copy %t320+ %t327 =w call $std__path__is_path_sep(w %t328)+ %t329 =w ceqw %t327, 0+ storew %t329, %t319+ jmp @lbl1435+@lbl1435+ %t330 =w loadw %t319+ jnz %t330, @lbl1431, @lbl1432+@lbl1431+ dbgloc 380+ %t331 =l copy 1+ %t332 =w copy %t331+ %t333 =w extub %t332+ storew %t333, %t309+ jmp @lbl1432+@lbl1432+ jmp @lbl1429+@lbl1429+ dbgloc 384+ %t334 =l copy 0+ storel %t334, %t335+ call $__sx_dbg_keep(l %t335)+ dbgvar "si", "i64", %t335, 8, 5, 384+ dbgloc 385+ jmp @lbl1436+@lbl1436+ jmp @lbl1437+@lbl1437+ dbgloc 386+ %t336 =l loadl %t335+ %t338 =l loadl %t113+ %t339 =l call $sxqbe_list_len(l %t338)+ %t340 =l copy %t339+ %t342 =w csltl %t336, %t340+ %t341 =w ceqw %t342, 0+ jnz %t341, @lbl1440, @lbl1441+@lbl1440+ dbgloc 387+ jmp @lbl1439+@lbl1441+ dbgloc 389+ storel 0, %t344+ %t345 =l loadl %t113+ %t346 =l loadl %t335+ %t347 =l copy %t346+ %t348 =w call $sxqbe_list_valid(l %t345, l %t347)+ jnz %t348, @lbl1443, @lbl1444+@lbl1443+ %t349 =l call $sxqbe_list_buf(l %t345)+ %t350 =l mul %t347, 8+ %t351 =l add %t349, %t350+ %t352 =l loadl %t351+ %t353 =l add %t344, 8+ storel %t352, %t353+ storel 1, %t344+ jmp @lbl1445+@lbl1444+ jmp @lbl1445+@lbl1445+ storel %t344, %t354+ call $__sx_dbg_keep(l %t354)+ dbgvar "s_opt", "option[ref u8]", %t354, 8, 5, 389+ dbgloc 390+ %t355 =l loadl %t344+ %t356 =w cnel %t355, 0+ jnz %t356, @lbl1446, @lbl1447+@lbl1446+ %t358 =l add %t344, 8+ %t357 =l loadl %t358+ dbgloc 391+ %t359 =l loadl %t335+ %t360 =l copy 0+ %t361 =w ceql %t359, %t360+ jnz %t361, @lbl1449, @lbl1451+@lbl1449+ dbgloc 392+ %t362 =l loadl %t16+ %t363 =l copy 0+ %t364 =w ceql %t362, %t363+ storew %t364, %t365+ jnz %t364, @lbl1457, @lbl1458+@lbl1457+ storew %t85, %t365+ jmp @lbl1458+@lbl1458+ %t366 =w loadw %t365+ jnz %t366, @lbl1452, @lbl1454+@lbl1452+ dbgloc 393+ %t367 =l copy $__str136+ %t368 =w call $builder__StringBuilder__append_cstr(l %t287, l %t367)+ jmp @lbl1453+@lbl1454+ %t370 =w loadw %t309+ %t369 =l extsw %t370+ jnz %t369, @lbl1455, @lbl1453+@lbl1455+ dbgloc 395+ %t371 =l copy 47+ %t372 =w call $builder__StringBuilder__append_char(l %t287, w %t371)+ jmp @lbl1453+@lbl1453+ jmp @lbl1450+@lbl1451+ dbgloc 398+ %t373 =l copy 47+ %t374 =w call $builder__StringBuilder__append_char(l %t287, w %t373)+ jmp @lbl1450+@lbl1450+ dbgloc 400+ %t375 =l copy %t357+ %t376 =w call $builder__StringBuilder__append_cstr(l %t287, l %t375)+ jmp @lbl1448+@lbl1447+ jmp @lbl1448+@lbl1448+ dbgloc 402+ %t377 =l loadl %t335+ %t378 =l add %t377, 1+ storel %t378, %t335+ jmp @lbl1438+@lbl1438+ jmp @lbl1436+@lbl1439+ jmp @lbl1423+@lbl1423+ dbgloc 406+ %t379 =l call $builder__StringBuilder__build(l %t287)+ storel %t379, %t380+ call $__sx_dbg_keep(l %t380)+ dbgvar "built", "ref ", %t380, 8, 7, 406+ dbgloc 407+ %t381 =l call $ostr__as_cstr(l %t379)+ storel %t381, %t382+ call $__sx_dbg_keep(l %t382)+ dbgvar "out", "ref u8", %t382, 8, 7, 407+ dbgloc 408+ %t383 =w call $builder__StringBuilder__free(l %t287)+ dbgloc 409+ call $free(l %t379)+ %t384 =l copy 0+ dbgloc 411+ %t385 =l copy 0+ storel %t385, %t386+ call $__sx_dbg_keep(l %t386)+ dbgvar "fi", "i64", %t386, 8, 5, 411+ dbgloc 412+ jmp @lbl1459+@lbl1459+ %t387 =l loadl %t386+ %t389 =l loadl %t113+ %t390 =l call $sxqbe_list_len(l %t389)+ %t391 =l copy %t390+ %t392 =w csltl %t387, %t391+ jnz %t392, @lbl1460, @lbl1462+@lbl1460+ dbgloc 413+ storel 0, %t394+ %t395 =l loadl %t113+ %t396 =l loadl %t386+ %t397 =l copy %t396+ %t398 =w call $sxqbe_list_valid(l %t395, l %t397)+ jnz %t398, @lbl1463, @lbl1464+@lbl1463+ %t399 =l call $sxqbe_list_buf(l %t395)+ %t400 =l mul %t397, 8+ %t401 =l add %t399, %t400+ %t402 =l loadl %t401+ %t403 =l add %t394, 8+ storel %t402, %t403+ storel 1, %t394+ jmp @lbl1465+@lbl1464+ jmp @lbl1465+@lbl1465+ storel %t394, %t404+ call $__sx_dbg_keep(l %t404)+ dbgvar "seg_opt", "option[ref u8]", %t404, 8, 5, 413+ dbgloc 414+ %t405 =l loadl %t394+ %t406 =w cnel %t405, 0+ jnz %t406, @lbl1466, @lbl1467+@lbl1466+ %t408 =l add %t394, 8+ %t407 =l loadl %t408+ dbgloc 415+ %t409 =l copy %t407+ storel %t409, %t410+ call $__sx_dbg_keep(l %t410)+ dbgvar "seg_ptr", "ref u8", %t410, 8, 7, 415+ dbgloc 416+ %t412 =l loadl %t410+ %t413 =l copy %t412+ call $free(l %t413)+ %t411 =l copy 0+ jmp @lbl1468+@lbl1467+ jmp @lbl1468+@lbl1468+ dbgloc 418+ %t414 =l loadl %t386+ %t415 =l add %t414, 1+ storel %t415, %t386+ jmp @lbl1461+@lbl1461+ jmp @lbl1459+@lbl1462+ dbgloc 420+ %t416 =l loadl %t16+ %t417 =l copy 0+ %t418 =w cnel %t416, %t417+ jnz %t418, @lbl1469, @lbl1470+@lbl1469+ dbgloc 421+ %t420 =l loadl %t16+ %t421 =l copy %t420+ call $free(l %t421)+ %t419 =l copy 0+ jmp @lbl1470+@lbl1470+ dbgloc 423+ dbgloc 299+ %t422 =w call $std__allocators__ScopedArena__free(l %t96)+ ret %t381+}++export function l $std__path__canonicalize_path(l %path) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t5 =l alloc8 8+ %t7 =l alloc8 8+ %t14 =l alloc8 8+ %t21 =l alloc8 8+ dbgloc 427+ storel %path, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "path", "str.StringView", %t0, 8, 5, 427+ dbgloc 428+ call $memset(l %t1, w 0, l 8)+ %t3 =l copy 0+ %t4 =w cnel %t1, 0+ jnz %t4, @lbl1472, @lbl1473+@lbl1472+ %t2 =l call $malloc(l 0)+ call $memset(l %t2, w 0, l 0)+ call $memcpy(l %t2, l %t1, l 0)+ %t3 =l copy %t2+@lbl1473+ storel %t3, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "heap", "allocators.HeapAllocator", %t5, 8, 5, 428+ dbgloc 429+ %t6 =l call $std__str__zstr_from__GENMONO__allocators__HeapAllocator(l %t3, l %path)++ storel %t6, %t7+ call $__sx_dbg_keep(l %t7)+ dbgvar "tmp", "str.ZString", %t7, 8, 5, 429+ dbgloc 430+ %t8 =l loadl %t6+ %t9 =l copy 0+ %t10 =w ceql %t8, %t9+ jnz %t10, @lbl1474, @lbl1475+@lbl1474+ dbgloc 431+ %t11 =l copy 0+ ret %t11+@lbl1475+ dbgloc 433+ %t12 =l loadl %t6+ %t13 =l call $std__path__canonicalize_path_cstr(l %t12)+ storel %t13, %t14+ call $__sx_dbg_keep(l %t14)+ dbgvar "result", "ref u8", %t14, 8, 7, 433+ dbgloc 434+ %t15 =l loadl %t6+ %t16 =w ceql %t13, %t15+ jnz %t16, @lbl1477, @lbl1478+@lbl1477+ dbgloc 435+ %t17 =w call $std__str__zstr_free__GENMONO__allocators__HeapAllocator(l %t3, l %t6)++ dbgloc 436+ %t19 =l copy 1+ %t18 =l call $malloc(l %t19)+ %t20 =l copy %t18+ storel %t20, %t21+ call $__sx_dbg_keep(l %t21)+ dbgvar "empty", "ref u8", %t21, 8, 7, 436+ dbgloc 437+ %t23 =l copy 0+ storeb %t23, %t20+ %t22 =l copy 0+ dbgloc 438+ ret %t20+@lbl1478+ dbgloc 440+ %t24 =w call $std__str__zstr_free__GENMONO__allocators__HeapAllocator(l %t3, l %t6)++ dbgloc 441+ ret %t13+}++export function w $std__path__is_path_sep(w %c) {+@start+ %t0 =l alloc8 8+ %t3 =l alloc4 1+ dbgloc 445+ storew %c, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "c", "u8", %t0, 1, 7, 445+ dbgloc 446+ %t1 =w copy 47+ %t2 =w ceqw %c, %t1+ storew %t2, %t3+ jnz %t2, @lbl1481, @lbl1480+@lbl1480+ %t4 =w copy 92+ %t5 =w ceqw %c, %t4+ storew %t5, %t3+ jmp @lbl1481+@lbl1481+ %t6 =w loadw %t3+ ret %t6+}++export function w $std__path__path_sep() {+@start+ dbgloc 453+ dbgloc 454+ dbgloc 457+ %t0 =l copy 58+ ret %t0+}++export function l $std__path__base_name_cstr(l %path) {+@start+ %t0 =l alloc8 8+ %t2 =l alloc8 8+ %t6 =l alloc8 8+ %t18 =l alloc8 8+ %t25 =l alloc8 8+ %t35 =l alloc8 8+ dbgloc 464+ storel %path, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "path", "ref u8", %t0, 8, 7, 464+ dbgloc 465+ %t1 =l call $cstr__len(l %path)+ storel %t1, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "len", "i64", %t2, 8, 5, 465+ dbgloc 466+ %t3 =l copy 0+ %t4 =w ceql %t1, %t3+ jnz %t4, @lbl1482, @lbl1483+@lbl1482+ dbgloc 467+ %t5 =l copy $__str56+ ret %t5+@lbl1483+ dbgloc 470+ storel %t1, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "end", "i64", %t6, 8, 5, 470+ dbgloc 471+ jmp @lbl1485+@lbl1485+ jmp @lbl1486+@lbl1486+ dbgloc 472+ %t7 =l loadl %t6+ %t8 =l copy 1+ %t9 =w cslel %t7, %t8+ jnz %t9, @lbl1489, @lbl1490+@lbl1489+ dbgloc 473+ jmp @lbl1488+@lbl1490+ dbgloc 475+ %t12 =l loadl %t6+ %t13 =l copy 1+ %t14 =l sub %t12, %t13+ %t11 =l add %path, %t14+ %t15 =w loadub %t11+ %t10 =l extsw %t15+ %t16 =w copy %t10+ %t17 =w extub %t16+ storew %t17, %t18+ call $__sx_dbg_keep(l %t18)+ dbgvar "c", "u8", %t18, 1, 7, 475+ dbgloc 476+ %t19 =w call $std__path__is_path_sep(w %t17)+ jnz %t19, @lbl1492, @lbl1494+@lbl1492+ dbgloc 477+ %t20 =l loadl %t6+ %t21 =l sub %t20, 1+ storel %t21, %t6+ jmp @lbl1493+@lbl1494+ dbgloc 479+ jmp @lbl1488+@lbl1493+ jmp @lbl1487+@lbl1487+ jmp @lbl1485+@lbl1488+ dbgloc 483+ %t22 =l loadl %t6+ %t23 =l copy 1+ %t24 =l sub %t22, %t23+ storel %t24, %t25+ call $__sx_dbg_keep(l %t25)+ dbgvar "i", "i64", %t25, 8, 5, 483+ dbgloc 484+ jmp @lbl1495+@lbl1495+ jmp @lbl1496+@lbl1496+ dbgloc 485+ %t26 =l loadl %t25+ %t27 =l copy 0+ %t28 =w csltl %t26, %t27+ jnz %t28, @lbl1499, @lbl1500+@lbl1499+ dbgloc 486+ jmp @lbl1498+@lbl1500+ dbgloc 488+ %t31 =l loadl %t25+ %t30 =l add %path, %t31+ %t32 =w loadub %t30+ %t29 =l extsw %t32+ %t33 =w copy %t29+ %t34 =w extub %t33+ storew %t34, %t35+ call $__sx_dbg_keep(l %t35)+ dbgvar "c", "u8", %t35, 1, 7, 488+ dbgloc 489+ %t36 =w call $std__path__is_path_sep(w %t34)+ jnz %t36, @lbl1502, @lbl1503+@lbl1502+ dbgloc 490+ %t37 =l loadl %t25+ %t38 =l copy 1+ %t39 =l add %t37, %t38+ %t40 =l loadl %t6+ %t41 =l loadl %t25+ %t42 =l sub %t40, %t41+ %t43 =l copy 1+ %t44 =l sub %t42, %t43+ %t45 =l call $cstr__substr(l %path, l %t39, l %t44)+ ret %t45+@lbl1503+ dbgloc 492+ %t46 =l loadl %t25+ %t47 =l sub %t46, 1+ storel %t47, %t25+ jmp @lbl1497+@lbl1497+ jmp @lbl1495+@lbl1498+ dbgloc 494+ %t48 =l copy 0+ %t49 =l loadl %t6+ %t50 =l call $cstr__substr(l %path, l %t48, l %t49)+ ret %t50+}++export function l $std__path__base_name(l %path) {+@start+ %t0 =l alloc8 8+ %t7 =l alloc8 8+ %t20 =l alloc8 8+ %t27 =l alloc8 8+ %t38 =l alloc8 8+ dbgloc 498+ storel %path, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "path", "str.StringView", %t0, 8, 5, 498+ dbgloc 499+ %t2 =l add %path, 8+ %t1 =l loadl %t2+ %t3 =l copy 0+ %t4 =w ceql %t1, %t3+ jnz %t4, @lbl1505, @lbl1506+@lbl1505+ dbgloc 500+ ret $__sv48+@lbl1506+ dbgloc 503+ %t6 =l add %path, 8+ %t5 =l loadl %t6+ storel %t5, %t7+ call $__sx_dbg_keep(l %t7)+ dbgvar "end", "i64", %t7, 8, 5, 503+ dbgloc 504+ jmp @lbl1508+@lbl1508+ jmp @lbl1509+@lbl1509+ dbgloc 505+ %t8 =l loadl %t7+ %t9 =l copy 1+ %t10 =w cslel %t8, %t9+ jnz %t10, @lbl1512, @lbl1513+@lbl1512+ dbgloc 506+ jmp @lbl1511+@lbl1513+ dbgloc 508+ %t13 =l loadl %path+ %t14 =l loadl %t7+ %t15 =l copy 1+ %t16 =l sub %t14, %t15+ %t12 =l add %t13, %t16+ %t17 =w loadub %t12+ %t11 =l extsw %t17+ %t18 =w copy %t11+ %t19 =w extub %t18+ storew %t19, %t20+ call $__sx_dbg_keep(l %t20)+ dbgvar "c", "u8", %t20, 1, 7, 508+ dbgloc 509+ %t21 =w call $std__path__is_path_sep(w %t19)+ jnz %t21, @lbl1515, @lbl1517+@lbl1515+ dbgloc 510+ %t22 =l loadl %t7+ %t23 =l sub %t22, 1+ storel %t23, %t7+ jmp @lbl1516+@lbl1517+ dbgloc 512+ jmp @lbl1511+@lbl1516+ jmp @lbl1510+@lbl1510+ jmp @lbl1508+@lbl1511+ dbgloc 516+ %t24 =l loadl %t7+ %t25 =l copy 1+ %t26 =l sub %t24, %t25+ storel %t26, %t27+ call $__sx_dbg_keep(l %t27)+ dbgvar "i", "i64", %t27, 8, 5, 516+ dbgloc 517+ jmp @lbl1518+@lbl1518+ jmp @lbl1519+@lbl1519+ dbgloc 518+ %t28 =l loadl %t27+ %t29 =l copy 0+ %t30 =w csltl %t28, %t29+ jnz %t30, @lbl1522, @lbl1523+@lbl1522+ dbgloc 519+ jmp @lbl1521+@lbl1523+ dbgloc 521+ %t33 =l loadl %path+ %t34 =l loadl %t27+ %t32 =l add %t33, %t34+ %t35 =w loadub %t32+ %t31 =l extsw %t35+ %t36 =w copy %t31+ %t37 =w extub %t36+ storew %t37, %t38+ call $__sx_dbg_keep(l %t38)+ dbgvar "c", "u8", %t38, 1, 7, 521+ dbgloc 522+ %t39 =w call $std__path__is_path_sep(w %t37)+ jnz %t39, @lbl1525, @lbl1526+@lbl1525+ dbgloc 523+ %t40 =l loadl %t27+ %t41 =l copy 1+ %t42 =l add %t40, %t41+ %t43 =l loadl %t7+ %t44 =l call $std__str__slice(l %path, l %t42, l %t43)+ ret %t44+@lbl1526+ dbgloc 525+ %t45 =l loadl %t27+ %t46 =l sub %t45, 1+ storel %t46, %t27+ jmp @lbl1520+@lbl1520+ jmp @lbl1518+@lbl1521+ dbgloc 527+ %t47 =l copy 0+ %t48 =l loadl %t7+ %t49 =l call $std__str__slice(l %path, l %t47, l %t48)+ ret %t49+}++function w $std__path__lower_char(w %c) {+@start+ %t0 =l alloc8 8+ %t4 =l alloc4 1+ dbgloc 530+ storew %c, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "c", "u8", %t0, 1, 7, 530+ dbgloc 531+ %t1 =w copy 65+ %t3 =w csltw %c, %t1+ %t2 =w ceqw %t3, 0+ storew %t2, %t4+ jnz %t2, @lbl1531, @lbl1532+@lbl1531+ %t5 =w copy 90+ %t6 =w cslew %c, %t5+ storew %t6, %t4+ jmp @lbl1532+@lbl1532+ %t7 =w loadw %t4+ jnz %t7, @lbl1528, @lbl1529+@lbl1528+ dbgloc 532+ %t8 =l extsw %c+ %t9 =l copy 32+ %t11 =l extsw %t8+ %t10 =l add %t11, %t9+ ret %t10+@lbl1529+ dbgloc 534+ ret %c+}++function w $std__path__has_exe_suffix(l %s) {+@start+ %t0 =l alloc8 8+ %t2 =l alloc8 8+ %t13 =l alloc8 8+ %t22 =l alloc8 8+ %t31 =l alloc8 8+ %t40 =l alloc8 8+ %t43 =l alloc4 1+ %t47 =l alloc4 1+ %t51 =l alloc4 1+ dbgloc 537+ storel %s, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "s", "ref u8", %t0, 8, 7, 537+ dbgloc 538+ %t1 =l call $cstr__len(l %s)+ storel %t1, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "len", "i64", %t2, 8, 5, 538+ dbgloc 539+ %t3 =l copy 4+ %t4 =w cslel %t1, %t3+ jnz %t4, @lbl1533, @lbl1534+@lbl1533+ dbgloc 540+ %t5 =l copy 0+ ret %t5+@lbl1534+ dbgloc 542+ %t8 =l copy 4+ %t9 =l sub %t1, %t8+ %t7 =l add %s, %t9+ %t10 =w loadub %t7+ %t6 =l extsw %t10+ %t11 =w copy %t6+ %t12 =w extub %t11+ storew %t12, %t13+ call $__sx_dbg_keep(l %t13)+ dbgvar "dot", "u8", %t13, 1, 7, 542+ dbgloc 543+ %t16 =l copy 3+ %t17 =l sub %t1, %t16+ %t15 =l add %s, %t17+ %t18 =w loadub %t15+ %t14 =l extsw %t18+ %t19 =w call $std__path__lower_char(w %t14)+ %t20 =w copy %t19+ %t21 =w extub %t20+ storew %t21, %t22+ call $__sx_dbg_keep(l %t22)+ dbgvar "e1", "u8", %t22, 1, 7, 543+ dbgloc 544+ %t25 =l copy 2+ %t26 =l sub %t1, %t25+ %t24 =l add %s, %t26+ %t27 =w loadub %t24+ %t23 =l extsw %t27+ %t28 =w call $std__path__lower_char(w %t23)+ %t29 =w copy %t28+ %t30 =w extub %t29+ storew %t30, %t31+ call $__sx_dbg_keep(l %t31)+ dbgvar "x", "u8", %t31, 1, 7, 544+ dbgloc 545+ %t34 =l copy 1+ %t35 =l sub %t1, %t34+ %t33 =l add %s, %t35+ %t36 =w loadub %t33+ %t32 =l extsw %t36+ %t37 =w call $std__path__lower_char(w %t32)+ %t38 =w copy %t37+ %t39 =w extub %t38+ storew %t39, %t40+ call $__sx_dbg_keep(l %t40)+ dbgvar "e2", "u8", %t40, 1, 7, 545+ dbgloc 546+ %t41 =w copy 46+ %t42 =w ceqw %t12, %t41+ storew %t42, %t43+ jnz %t42, @lbl1536, @lbl1537+@lbl1536+ %t44 =w copy 101+ %t45 =w ceqw %t21, %t44+ storew %t45, %t43+ jmp @lbl1537+@lbl1537+ %t46 =w loadw %t43+ storew %t46, %t47+ jnz %t46, @lbl1538, @lbl1539+@lbl1538+ %t48 =w copy 120+ %t49 =w ceqw %t30, %t48+ storew %t49, %t47+ jmp @lbl1539+@lbl1539+ %t50 =w loadw %t47+ storew %t50, %t51+ jnz %t50, @lbl1540, @lbl1541+@lbl1540+ %t52 =w copy 101+ %t53 =w ceqw %t39, %t52+ storew %t53, %t51+ jmp @lbl1541+@lbl1541+ %t54 =w loadw %t51+ ret %t54+}++export function l $std__path__normalize_shell_cstr(l %name) {+@start+ %t0 =l alloc8 8+ %t2 =l alloc8 8+ %t4 =l alloc8 8+ %t5 =l alloc8 8+ %t17 =l alloc8 8+ %t19 =l alloc8 8+ %t32 =l alloc8 8+ dbgloc 554+ storel %name, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "name", "ref u8", %t0, 8, 7, 554+ dbgloc 555+ %t1 =l call $std__path__base_name_cstr(l %name)+ storel %t1, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "base", "ref u8", %t2, 8, 7, 555+ dbgloc 556+ %t3 =l call $cstr__len(l %t1)+ storel %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "len", "i64", %t4, 8, 5, 556+ dbgloc 557+ storel %t1, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "trimmed", "ref u8", %t5, 8, 7, 557+ dbgloc 558+ %t6 =w call $std__path__has_exe_suffix(l %t1)+ jnz %t6, @lbl1542, @lbl1543+@lbl1542+ dbgloc 559+ %t7 =l copy 0+ %t8 =l copy 4+ %t9 =l sub %t3, %t8+ %t10 =l call $cstr__substr(l %t1, l %t7, l %t9)+ storel %t10, %t5+ jmp @lbl1543+@lbl1543+ dbgloc 562+ %t12 =l loadl %t5+ %t13 =l call $cstr__len(l %t12)+ %t14 =l copy 1+ %t15 =l add %t13, %t14+ %t11 =l call $malloc(l %t15)+ %t16 =l copy %t11+ storel %t16, %t17+ call $__sx_dbg_keep(l %t17)+ dbgvar "lower", "ref u8", %t17, 8, 7, 562+ dbgloc 563+ %t18 =l copy 0+ storel %t18, %t19+ call $__sx_dbg_keep(l %t19)+ dbgvar "i", "i64", %t19, 8, 5, 563+ dbgloc 564+ jmp @lbl1545+@lbl1545+ jmp @lbl1546+@lbl1546+ dbgloc 565+ %t20 =l loadl %t19+ %t21 =l loadl %t5+ %t22 =l call $cstr__len(l %t21)+ %t24 =w csltl %t20, %t22+ %t23 =w ceqw %t24, 0+ jnz %t23, @lbl1549, @lbl1550+@lbl1549+ dbgloc 566+ jmp @lbl1548+@lbl1550+ dbgloc 568+ %t27 =l loadl %t5+ %t28 =l loadl %t19+ %t26 =l add %t27, %t28+ %t29 =w loadub %t26+ %t25 =l extsw %t29+ %t30 =w copy %t25+ %t31 =w extub %t30+ storew %t31, %t32+ call $__sx_dbg_keep(l %t32)+ dbgvar "c", "u8", %t32, 1, 7, 568+ dbgloc 569+ %t35 =l loadl %t19+ %t34 =l add %t16, %t35+ %t36 =w call $std__path__lower_char(w %t31)+ storeb %t36, %t34+ %t33 =l copy 0+ dbgloc 570+ %t37 =l loadl %t19+ %t38 =l add %t37, 1+ storel %t38, %t19+ jmp @lbl1547+@lbl1547+ jmp @lbl1545+@lbl1548+ dbgloc 572+ %t41 =l loadl %t19+ %t40 =l add %t16, %t41+ %t42 =l copy 0+ storeb %t42, %t40+ %t39 =l copy 0+ dbgloc 573+ ret %t16+}++export function l $std__path__normalize_shell(l %name) {+@start+ %t0 =l alloc8 8+ %t2 =l alloc8 8+ %t5 =l alloc8 8+ %t7 =l alloc8 8+ %t18 =l alloc8 8+ %t28 =l alloc8 8+ %t38 =l alloc8 8+ %t48 =l alloc8 8+ %t51 =l alloc4 1+ %t55 =l alloc4 1+ %t59 =l alloc4 1+ %t74 =l alloc8 8+ %t76 =l alloc8 8+ %t91 =l alloc8 8+ dbgloc 577+ storel %name, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "name", "str.StringView", %t0, 8, 5, 577+ dbgloc 578+ %t1 =l call $std__path__base_name(l %name)+ storel %t1, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "base", "str.StringView", %t2, 8, 5, 578+ dbgloc 579+ %t4 =l add %t1, 8+ %t3 =l loadl %t4+ storel %t3, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "len", "i64", %t5, 8, 5, 579+ dbgloc 580+ %t6 =l call $malloc(l 16)+ call $memset(l %t6, w 0, l 16)+ call $memcpy(l %t6, l %t1, l 16)+ storel %t6, %t7+ call $__sx_dbg_keep(l %t7)+ dbgvar "trimmed", "str.StringView", %t7, 8, 5, 580+ dbgloc 581+ %t8 =l copy 4+ %t9 =w csgtl %t3, %t8+ jnz %t9, @lbl1552, @lbl1553+@lbl1552+ dbgloc 582+ %t12 =l loadl %t1+ %t13 =l copy 4+ %t14 =l sub %t3, %t13+ %t11 =l add %t12, %t14+ %t15 =w loadub %t11+ %t10 =l extsw %t15+ %t16 =w copy %t10+ %t17 =w extub %t16+ storew %t17, %t18+ call $__sx_dbg_keep(l %t18)+ dbgvar "dot", "u8", %t18, 1, 7, 582+ dbgloc 583+ %t21 =l loadl %t1+ %t22 =l copy 3+ %t23 =l sub %t3, %t22+ %t20 =l add %t21, %t23+ %t24 =w loadub %t20+ %t19 =l extsw %t24+ %t25 =w call $std__path__lower_char(w %t19)+ %t26 =w copy %t25+ %t27 =w extub %t26+ storew %t27, %t28+ call $__sx_dbg_keep(l %t28)+ dbgvar "e1", "u8", %t28, 1, 7, 583+ dbgloc 584+ %t31 =l loadl %t1+ %t32 =l copy 2+ %t33 =l sub %t3, %t32+ %t30 =l add %t31, %t33+ %t34 =w loadub %t30+ %t29 =l extsw %t34+ %t35 =w call $std__path__lower_char(w %t29)+ %t36 =w copy %t35+ %t37 =w extub %t36+ storew %t37, %t38+ call $__sx_dbg_keep(l %t38)+ dbgvar "x", "u8", %t38, 1, 7, 584+ dbgloc 585+ %t41 =l loadl %t1+ %t42 =l copy 1+ %t43 =l sub %t3, %t42+ %t40 =l add %t41, %t43+ %t44 =w loadub %t40+ %t39 =l extsw %t44+ %t45 =w call $std__path__lower_char(w %t39)+ %t46 =w copy %t45+ %t47 =w extub %t46+ storew %t47, %t48+ call $__sx_dbg_keep(l %t48)+ dbgvar "e2", "u8", %t48, 1, 7, 585+ dbgloc 586+ %t49 =w copy 46+ %t50 =w ceqw %t17, %t49+ storew %t50, %t51+ jnz %t50, @lbl1558, @lbl1559+@lbl1558+ %t52 =w copy 101+ %t53 =w ceqw %t27, %t52+ storew %t53, %t51+ jmp @lbl1559+@lbl1559+ %t54 =w loadw %t51+ storew %t54, %t55+ jnz %t54, @lbl1560, @lbl1561+@lbl1560+ %t56 =w copy 120+ %t57 =w ceqw %t37, %t56+ storew %t57, %t55+ jmp @lbl1561+@lbl1561+ %t58 =w loadw %t55+ storew %t58, %t59+ jnz %t58, @lbl1562, @lbl1563+@lbl1562+ %t60 =w copy 101+ %t61 =w ceqw %t47, %t60+ storew %t61, %t59+ jmp @lbl1563+@lbl1563+ %t62 =w loadw %t59+ jnz %t62, @lbl1555, @lbl1556+@lbl1555+ dbgloc 587+ %t63 =l copy 0+ %t64 =l copy 4+ %t65 =l sub %t3, %t64+ %t66 =l call $std__str__slice(l %t1, l %t63, l %t65)+ storel %t66, %t7+ jmp @lbl1556+@lbl1556+ jmp @lbl1553+@lbl1553+ dbgloc 591+ %t68 =l loadl %t7+ %t70 =l add %t68, 8+ %t69 =l loadl %t70+ %t71 =l copy 1+ %t72 =l add %t69, %t71+ %t67 =l call $malloc(l %t72)+ %t73 =l copy %t67+ storel %t73, %t74+ call $__sx_dbg_keep(l %t74)+ dbgvar "lower", "ref u8", %t74, 8, 7, 591+ dbgloc 592+ %t75 =l copy 0+ storel %t75, %t76+ call $__sx_dbg_keep(l %t76)+ dbgvar "i", "i64", %t76, 8, 5, 592+ dbgloc 593+ jmp @lbl1564+@lbl1564+ jmp @lbl1565+@lbl1565+ dbgloc 594+ %t77 =l loadl %t76+ %t78 =l loadl %t7+ %t80 =l add %t78, 8+ %t79 =l loadl %t80+ %t82 =w csltl %t77, %t79+ %t81 =w ceqw %t82, 0+ jnz %t81, @lbl1568, @lbl1569+@lbl1568+ dbgloc 595+ jmp @lbl1567+@lbl1569+ dbgloc 597+ %t85 =l loadl %t7+ %t86 =l loadl %t85+ %t87 =l loadl %t76+ %t84 =l add %t86, %t87+ %t88 =w loadub %t84+ %t83 =l extsw %t88+ %t89 =w copy %t83+ %t90 =w extub %t89+ storew %t90, %t91+ call $__sx_dbg_keep(l %t91)+ dbgvar "c", "u8", %t91, 1, 7, 597+ dbgloc 598+ %t94 =l loadl %t76+ %t93 =l add %t73, %t94+ %t95 =w call $std__path__lower_char(w %t90)+ storeb %t95, %t93+ %t92 =l copy 0+ dbgloc 599+ %t96 =l loadl %t76+ %t97 =l add %t96, 1+ storel %t97, %t76+ jmp @lbl1566+@lbl1566+ jmp @lbl1564+@lbl1567+ dbgloc 601+ %t100 =l loadl %t76+ %t99 =l add %t73, %t100+ %t101 =l copy 0+ storeb %t101, %t99+ %t98 =l copy 0+ dbgloc 602+ ret %t73+}++function w $std__path__is_directory(l %path) {+@start+ %t0 =l alloc8 8+ %t2 =l alloc8 8+ dbgloc 605+ storel %path, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "path", "ref u8", %t0, 8, 7, 605+ dbgloc 606+ %t1 =l call $std__os__opendir(l %path)+ storel %t1, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "handle", "ref ", %t2, 8, 7, 606+ dbgloc 607+ %t3 =l copy 0+ %t4 =w ceql %t1, %t3+ jnz %t4, @lbl1571, @lbl1572+@lbl1571+ dbgloc 608+ %t5 =l copy 0+ ret %t5+@lbl1572+ dbgloc 610+ %t6 =w call $std__os__closedir(l %t1)+ dbgloc 611+ %t7 =l copy 1+ ret %t7+}++function w $std__path__make_directory(l %path) {+@start+ %t0 =l alloc8 8+ dbgloc 614+ storel %path, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "path", "ref u8", %t0, 8, 7, 614+ dbgloc 615+ dbgloc 618+ dbgloc 619+ %t1 =l copy 493+ %t2 =w call $std__os__mkdir(l %path, w %t1)+ %t3 =w copy 0+ %t4 =w ceqw %t2, %t3+ ret %t4+}++export function w $std__path__ensure_dir_cstr(l %path) {+@start+ %t0 =l alloc8 8+ %t2 =l alloc8 8+ %t5 =l alloc4 1+ %t15 =l alloc8 8+ %t25 =l alloc8 8+ %t30 =l alloc8 8+ %t34 =l alloc4 1+ dbgloc 628+ storel %path, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "path", "ref u8", %t0, 8, 7, 628+ dbgloc 629+ %t1 =l call $cstr__len(l %path)+ storel %t1, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "len", "i64", %t2, 8, 5, 629+ dbgloc 630+ %t3 =l copy 0+ %t4 =w ceql %t1, %t3+ storew %t4, %t5+ jnz %t4, @lbl1578, @lbl1577+@lbl1577+ %t6 =l copy $__str134+ %t7 =l call $cstr__cmp(l %path, l %t6)+ %t8 =l copy 0+ %t9 =w ceql %t7, %t8+ storew %t9, %t5+ jmp @lbl1578+@lbl1578+ %t10 =w loadw %t5+ jnz %t10, @lbl1574, @lbl1575+@lbl1574+ dbgloc 631+ %t11 =l copy 1+ ret %t11+@lbl1575+ dbgloc 633+ %t12 =w call $std__path__is_directory(l %path)+ jnz %t12, @lbl1579, @lbl1580+@lbl1579+ dbgloc 634+ %t13 =l copy 1+ ret %t13+@lbl1580+ dbgloc 637+ %t14 =l copy 1+ storel %t14, %t15+ call $__sx_dbg_keep(l %t15)+ dbgvar "i", "i64", %t15, 8, 5, 637+ dbgloc 638+ jmp @lbl1582+@lbl1582+ jmp @lbl1583+@lbl1583+ dbgloc 639+ %t16 =l loadl %t15+ %t18 =w csltl %t16, %t1+ %t17 =w ceqw %t18, 0+ jnz %t17, @lbl1586, @lbl1587+@lbl1586+ dbgloc 640+ jmp @lbl1585+@lbl1587+ dbgloc 642+ %t21 =l loadl %t15+ %t20 =l add %path, %t21+ %t22 =w loadub %t20+ %t19 =l extsw %t22+ %t23 =w copy %t19+ %t24 =w extub %t23+ storew %t24, %t25+ call $__sx_dbg_keep(l %t25)+ dbgvar "c", "u8", %t25, 1, 7, 642+ dbgloc 643+ %t26 =w call $std__path__is_path_sep(w %t24)+ jnz %t26, @lbl1589, @lbl1590+@lbl1589+ dbgloc 644+ %t27 =l copy 0+ %t28 =l loadl %t15+ %t29 =l call $cstr__substr(l %path, l %t27, l %t28)+ storel %t29, %t30+ call $__sx_dbg_keep(l %t30)+ dbgvar "parent", "ref u8", %t30, 8, 7, 644+ dbgloc 645+ %t31 =l call $cstr__len(l %t29)+ %t32 =l copy 0+ %t33 =w csgtl %t31, %t32+ storew %t33, %t34+ jnz %t33, @lbl1595, @lbl1596+@lbl1595+ %t35 =w call $std__path__is_directory(l %t29)+ %t36 =w ceqw %t35, 0+ storew %t36, %t34+ jmp @lbl1596+@lbl1596+ %t37 =w loadw %t34+ jnz %t37, @lbl1592, @lbl1593+@lbl1592+ dbgloc 646+ %t38 =w call $std__path__make_directory(l %t29)+ jmp @lbl1593+@lbl1593+ jmp @lbl1590+@lbl1590+ dbgloc 649+ %t39 =l loadl %t15+ %t40 =l add %t39, 1+ storel %t40, %t15+ jmp @lbl1584+@lbl1584+ jmp @lbl1582+@lbl1585+ dbgloc 652+ %t41 =w call $std__path__is_directory(l %path)+ jnz %t41, @lbl1597, @lbl1598+@lbl1597+ dbgloc 653+ %t42 =l copy 1+ ret %t42+@lbl1598+ dbgloc 655+ %t43 =w call $std__path__make_directory(l %path)+ ret %t43+}++export function w $std__path__ensure_dir(l %path) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t5 =l alloc8 8+ %t7 =l alloc8 8+ %t16 =l alloc8 8+ dbgloc 659+ storel %path, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "path", "str.StringView", %t0, 8, 5, 659+ dbgloc 660+ call $memset(l %t1, w 0, l 8)+ %t3 =l copy 0+ %t4 =w cnel %t1, 0+ jnz %t4, @lbl1600, @lbl1601+@lbl1600+ %t2 =l call $malloc(l 0)+ call $memset(l %t2, w 0, l 0)+ call $memcpy(l %t2, l %t1, l 0)+ %t3 =l copy %t2+@lbl1601+ storel %t3, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "heap", "allocators.HeapAllocator", %t5, 8, 5, 660+ dbgloc 661+ %t6 =l call $std__str__zstr_from__GENMONO__allocators__HeapAllocator(l %t3, l %path)++ storel %t6, %t7+ call $__sx_dbg_keep(l %t7)+ dbgvar "tmp", "str.ZString", %t7, 8, 5, 661+ dbgloc 662+ %t8 =l loadl %t6+ %t9 =l copy 0+ %t10 =w ceql %t8, %t9+ jnz %t10, @lbl1602, @lbl1603+@lbl1602+ dbgloc 663+ %t11 =l copy 0+ ret %t11+@lbl1603+ dbgloc 665+ %t12 =l loadl %t6+ %t13 =w call $std__path__ensure_dir_cstr(l %t12)+ %t14 =w copy %t13+ %t15 =w extub %t14+ storew %t15, %t16+ call $__sx_dbg_keep(l %t16)+ dbgvar "result", "bool", %t16, 1, 7, 665+ dbgloc 666+ %t17 =w call $std__str__zstr_free__GENMONO__allocators__HeapAllocator(l %t3, l %t6)++ dbgloc 667+ ret %t15+}++export function w $std__path__path_contains_dir(l %target) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t5 =l alloc8 8+ %t7 =l alloc8 8+ %t16 =l alloc8 8+ dbgloc 671+ storel %target, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "target", "str.StringView", %t0, 8, 5, 671+ dbgloc 672+ call $memset(l %t1, w 0, l 8)+ %t3 =l copy 0+ %t4 =w cnel %t1, 0+ jnz %t4, @lbl1605, @lbl1606+@lbl1605+ %t2 =l call $malloc(l 0)+ call $memset(l %t2, w 0, l 0)+ call $memcpy(l %t2, l %t1, l 0)+ %t3 =l copy %t2+@lbl1606+ storel %t3, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "heap", "allocators.HeapAllocator", %t5, 8, 5, 672+ dbgloc 673+ %t6 =l call $std__str__zstr_from__GENMONO__allocators__HeapAllocator(l %t3, l %target)++ storel %t6, %t7+ call $__sx_dbg_keep(l %t7)+ dbgvar "tmp", "str.ZString", %t7, 8, 5, 673+ dbgloc 674+ %t8 =l loadl %t6+ %t9 =l copy 0+ %t10 =w ceql %t8, %t9+ jnz %t10, @lbl1607, @lbl1608+@lbl1607+ dbgloc 675+ %t11 =l copy 0+ ret %t11+@lbl1608+ dbgloc 677+ %t12 =l loadl %t6+ %t13 =w call $std__path__path_contains_dir_cstr(l %t12)+ %t14 =w copy %t13+ %t15 =w extub %t14+ storew %t15, %t16+ call $__sx_dbg_keep(l %t16)+ dbgvar "result", "bool", %t16, 1, 7, 677+ dbgloc 678+ %t17 =w call $std__str__zstr_free__GENMONO__allocators__HeapAllocator(l %t3, l %t6)++ dbgloc 679+ ret %t15+}++export function w $std__path__path_contains_dir_cstr(l %target) {+@start+ %t0 =l alloc8 8+ %t3 =l alloc8 16+ %t4 =l alloc8 8+ %t6 =l alloc8 8+ %t14 =l alloc8 8+ %t19 =l alloc8 8+ %t21 =l alloc8 8+ %t23 =l alloc8 8+ %t30 =l alloc8 8+ %t35 =l alloc8 8+ %t44 =l alloc4 1+ %t57 =l alloc8 8+ %t61 =l alloc4 1+ dbgloc 684+ storel %target, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "target", "ref u8", %t0, 8, 7, 684+ dbgloc 685+ %t1 =l copy $__str67+ %t2 =l call $std__os__env(l %t3, l %t1)+ storel %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "env_opt", "option[ref u8]", %t4, 8, 5, 685+ dbgloc 686+ %t5 =l copy $__str56+ storel %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "value", "ref u8", %t6, 8, 7, 686+ dbgloc 687+ %t7 =l loadl %t3+ %t8 =w cnel %t7, 0+ jnz %t8, @lbl1610, @lbl1611+@lbl1610+ %t10 =l add %t3, 8+ %t9 =l loadl %t10+ dbgloc 692+ storel %t9, %t6+ jmp @lbl1612+@lbl1611+ dbgloc 689+ %t11 =l copy 0+ ret %t11+@lbl1612+ dbgloc 696+ %t12 =l loadl %t6+ %t13 =l call $cstr__len(l %t12)+ storel %t13, %t14+ call $__sx_dbg_keep(l %t14)+ dbgvar "len", "i64", %t14, 8, 5, 696+ dbgloc 697+ %t15 =l copy 58+ %t16 =w copy %t15+ %t17 =w copy %t16+ %t18 =w extub %t17+ storew %t18, %t19+ call $__sx_dbg_keep(l %t19)+ dbgvar "sep", "u8", %t19, 1, 7, 697+ dbgloc 698+ %t20 =l copy 0+ storel %t20, %t21+ call $__sx_dbg_keep(l %t21)+ dbgvar "start", "i64", %t21, 8, 5, 698+ dbgloc 699+ %t22 =l copy 0+ storel %t22, %t23+ call $__sx_dbg_keep(l %t23)+ dbgvar "i", "i64", %t23, 8, 5, 699+ dbgloc 700+ jmp @lbl1613+@lbl1613+ jmp @lbl1614+@lbl1614+ dbgloc 701+ %t24 =l loadl %t23+ %t25 =w csgtl %t24, %t13+ jnz %t25, @lbl1617, @lbl1618+@lbl1617+ dbgloc 702+ jmp @lbl1616+@lbl1618+ dbgloc 704+ %t26 =l loadl %t23+ %t27 =w ceql %t26, %t13+ %t28 =w copy %t27+ %t29 =w extub %t28+ storew %t29, %t30+ call $__sx_dbg_keep(l %t30)+ dbgvar "at_end", "bool", %t30, 1, 7, 704+ dbgloc 705+ %t31 =l copy 0+ %t32 =w copy %t31+ %t33 =w copy %t32+ %t34 =w extub %t33+ storew %t34, %t35+ call $__sx_dbg_keep(l %t35)+ dbgvar "c", "u8", %t35, 1, 7, 705+ dbgloc 706+ %t36 =w ceqw %t29, 0+ jnz %t36, @lbl1620, @lbl1621+@lbl1620+ dbgloc 707+ %t39 =l loadl %t6+ %t40 =l loadl %t23+ %t38 =l add %t39, %t40+ %t41 =w loadub %t38+ %t37 =l extsw %t41+ %t42 =w copy %t37+ %t43 =w extub %t42+ storew %t43, %t35+ jmp @lbl1621+@lbl1621+ dbgloc 709+ storew %t29, %t44+ jnz %t29, @lbl1627, @lbl1626+@lbl1626+ %t46 =w loadw %t35+ %t45 =l extsw %t46+ %t47 =l extsw %t45+ %t48 =l extsw %t18+ %t49 =w ceqw %t47, %t48+ storew %t49, %t44+ jmp @lbl1627+@lbl1627+ %t50 =w loadw %t44+ jnz %t50, @lbl1623, @lbl1624+@lbl1623+ dbgloc 710+ %t51 =l loadl %t6+ %t52 =l loadl %t21+ %t53 =l loadl %t23+ %t54 =l loadl %t21+ %t55 =l sub %t53, %t54+ %t56 =l call $cstr__substr(l %t51, l %t52, l %t55)+ storel %t56, %t57+ call $__sx_dbg_keep(l %t57)+ dbgvar "part", "ref u8", %t57, 8, 7, 710+ dbgloc 711+ %t58 =l call $cstr__len(l %t56)+ %t59 =l copy 0+ %t60 =w csgtl %t58, %t59+ storew %t60, %t61+ jnz %t60, @lbl1631, @lbl1632+@lbl1631+ %t62 =l call $cstr__cmp(l %t56, l %target)+ %t63 =l copy 0+ %t64 =w ceql %t62, %t63+ storew %t64, %t61+ jmp @lbl1632+@lbl1632+ %t65 =w loadw %t61+ jnz %t65, @lbl1628, @lbl1629+@lbl1628+ dbgloc 712+ %t66 =l copy 1+ ret %t66+@lbl1629+ dbgloc 714+ %t67 =l loadl %t23+ %t68 =l copy 1+ %t69 =l add %t67, %t68+ storel %t69, %t21+ jmp @lbl1624+@lbl1624+ dbgloc 716+ jnz %t29, @lbl1633, @lbl1634+@lbl1633+ dbgloc 717+ jmp @lbl1616+@lbl1634+ dbgloc 719+ %t70 =l loadl %t23+ %t71 =l add %t70, 1+ storel %t71, %t23+ jmp @lbl1615+@lbl1615+ jmp @lbl1613+@lbl1616+ dbgloc 721+ %t72 =l copy 0+ ret %t72+}++dbgfile "spectrelib/fs/core.sx"+function l $std__fs__cstr_heap() {+@start+ %t0 =l alloc8 8+ dbgloc 13+ dbgloc 14+ call $memset(l %t0, w 0, l 8)+ ret %t0+}++export function l $std__fs__getenv(l %name) {+@start+ %t0 =l alloc8 8+ dbgloc 18+ storel %name, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "name", "ref u8", %t0, 8, 7, 18+ dbgloc 19+ %t1 =l call $rt__getenv(l %name)+ ret %t1+}++export function w $std__fs__mkdir(l %path, w %mode) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 23+ storel %path, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "path", "ref u8", %t0, 8, 7, 23+ storew %mode, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "mode", "u32", %t1, 4, 7, 23+ dbgloc 24+ %t2 =w call $rt__mkdir(l %path, w %mode)+ ret %t2+}++export function w $std__fs___mkdir(l %path) {+@start+ %t0 =l alloc8 8+ dbgloc 28+ storel %path, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "path", "ref u8", %t0, 8, 7, 28+ dbgloc 29+ %t1 =l copy 0+ %t2 =w call $rt__mkdir(l %path, w %t1)+ ret %t2+}++export function w $std__fs__rmdir(l %path) {+@start+ %t0 =l alloc8 8+ dbgloc 33+ storel %path, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "path", "ref u8", %t0, 8, 7, 33+ dbgloc 34+ %t1 =w call $rt__rmdir(l %path)+ ret %t1+}++export function l $std__fs__opendir(l %path) {+@start+ %t0 =l alloc8 8+ dbgloc 38+ storel %path, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "path", "ref u8", %t0, 8, 7, 38+ dbgloc 39+ %t1 =l call $rt__opendir(l %path)+ ret %t1+}++export function w $std__fs__closedir(l %dir) {+@start+ %t0 =l alloc8 8+ dbgloc 43+ storel %dir, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "dir", "ref ", %t0, 8, 7, 43+ dbgloc 44+ %t1 =w call $rt__closedir(l %dir)+ ret %t1+}++export function l $std__fs__readdir(l %dir) {+@start+ %t0 =l alloc8 8+ dbgloc 48+ storel %dir, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "dir", "ref ", %t0, 8, 7, 48+ dbgloc 49+ %t1 =l call $rt__readdir(l %dir)+ %t2 =l copy %t1+ ret %t2+}++function l $std__fs__raw_alloc_cstr(l %len) {+@start+ %t0 =l alloc8 8+ %t5 =l alloc8 8+ dbgloc 177+ storel %len, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "len", "i64", %t0, 8, 5, 177+ dbgloc 178+ %t2 =l copy 1+ %t3 =l add %len, %t2+ %t1 =l call $malloc(l %t3)+ %t4 =l copy %t1+ storel %t4, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "buf", "ref u8", %t5, 8, 7, 178+ dbgloc 179+ %t6 =l copy 0+ %t7 =w ceql %t4, %t6+ jnz %t7, @lbl1636, @lbl1637+@lbl1636+ dbgloc 180+ %t8 =l copy 0+ ret %t8+@lbl1637+ dbgloc 182+ %t10 =l copy 0+ %t11 =l copy 1+ %t12 =l add %len, %t11+ call $memset(l %t4, w %t10, l %t12)+ %t9 =l copy 0+ dbgloc 183+ ret %t4+}++function l $std__fs__raw_copy_cstr_len(l %text, l %len) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t9 =l alloc8 8+ dbgloc 186+ storel %text, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "text", "ref u8", %t0, 8, 7, 186+ storel %len, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "len", "i64", %t1, 8, 5, 186+ dbgloc 187+ %t2 =l copy 0+ %t3 =w ceql %text, %t2+ jnz %t3, @lbl1639, @lbl1640+@lbl1639+ dbgloc 188+ %t4 =l copy 0+ ret %t4+@lbl1640+ dbgloc 190+ %t5 =l copy 0+ %t6 =w csltl %len, %t5+ jnz %t6, @lbl1642, @lbl1643+@lbl1642+ dbgloc 191+ %t7 =l copy 0+ ret %t7+@lbl1643+ dbgloc 193+ %t8 =l call $std__fs__raw_alloc_cstr(l %len)+ storel %t8, %t9+ call $__sx_dbg_keep(l %t9)+ dbgvar "buf", "ref u8", %t9, 8, 7, 193+ dbgloc 194+ %t10 =l copy 0+ %t11 =w ceql %t8, %t10+ jnz %t11, @lbl1645, @lbl1646+@lbl1645+ dbgloc 195+ %t12 =l copy 0+ ret %t12+@lbl1646+ dbgloc 197+ %t13 =l copy 0+ %t14 =w csgtl %len, %t13+ jnz %t14, @lbl1648, @lbl1649+@lbl1648+ dbgloc 198+ %t16 =l copy %len+ call $memcpy(l %t8, l %text, l %t16)+ %t15 =l copy 0+ jmp @lbl1649+@lbl1649+ dbgloc 200+ ret %t8+}++function l $std__fs__dirent_name_len(l %entry) {+@start+ %t0 =l alloc8 8+ dbgloc 203+ storel %entry, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "entry", "ref Dirent", %t0, 8, 7, 203+ dbgloc 204+ dbgloc 207+ dbgloc 210+ dbgloc 213+ dbgloc 216+ %t1 =l add %entry, 19+ %t2 =l copy %t1+ %t3 =l call $rt__strlen(l %t2)+ ret %t3+}++function l $std__fs__raw_copy_dirent_name(l %entry) {+@start+ %t0 =l alloc8 8+ dbgloc 223+ storel %entry, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "entry", "ref Dirent", %t0, 8, 7, 223+ dbgloc 224+ %t1 =l add %entry, 19+ %t2 =l copy %t1+ %t3 =l call $std__fs__dirent_name_len(l %entry)+ %t4 =l call $std__fs__raw_copy_cstr_len(l %t2, l %t3)+ ret %t4+}++export function l $std__fs__open_cstr(l %__ret, l %path, l %mode) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t3 =l alloc8 8+ %t6 =l alloc8 16+ %t9 =l alloc8 8+ %t11 =l alloc8 16+ dbgloc 229+ storel %path, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "path", "ref u8", %t0, 8, 7, 229+ storel %mode, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "mode", "ref u8", %t1, 8, 7, 229+ dbgloc 230+ %t2 =l call $rt__fopen(l %path, l %mode)+ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "ptr", "ref ", %t3, 8, 7, 230+ dbgloc 231+ %t4 =l copy 0+ %t5 =w ceql %t2, %t4+ jnz %t5, @lbl1651, @lbl1652+@lbl1651+ dbgloc 232+ storel 0, %t6+ call $memcpy(l %__ret, l %t6, l 16)+ ret %__ret+@lbl1652+ dbgloc 234+ %t8 =l copy 8+ %t7 =l call $malloc(l %t8)+ storel %t7, %t9+ call $__sx_dbg_keep(l %t9)+ dbgvar "f", "ref ", %t9, 8, 7, 234+ dbgloc 235+ storel %t2, %t7+ %t10 =l copy 0+ dbgloc 236+ call $memset(l %t11, w 0, l 16)+ storel 1, %t11+ %t12 =l add %t11, 8+ storel %t7, %t12+ call $memcpy(l %__ret, l %t11, l 16)+ ret %__ret+}++export function l $std__fs__open(l %__ret, l %path, l %mode) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t4 =l alloc8 8+ %t7 =l alloc8 8+ %t11 =l alloc4 1+ %t16 =l alloc8 16+ %t24 =l alloc8 16+ dbgloc 240+ storel %path, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "path", "str.StringView", %t0, 8, 5, 240+ storel %mode, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "mode", "str.StringView", %t1, 8, 5, 240+ dbgloc 241+ %t2 =l call $std__fs__cstr_heap()+ %t3 =l call $std__str__zstr_from__GENMONO__allocators__HeapAllocator(l %t2, l %path)++ storel %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "p", "str.ZString", %t4, 8, 5, 241+ dbgloc 242+ %t5 =l call $std__fs__cstr_heap()+ %t6 =l call $std__str__zstr_from__GENMONO__allocators__HeapAllocator(l %t5, l %mode)++ storel %t6, %t7+ call $__sx_dbg_keep(l %t7)+ dbgvar "m", "str.ZString", %t7, 8, 5, 242+ dbgloc 243+ dbgloc 247+ %t8 =l loadl %t3+ %t9 =l copy 0+ %t10 =w ceql %t8, %t9+ storew %t10, %t11+ jnz %t10, @lbl1658, @lbl1657+@lbl1657+ %t12 =l loadl %t6+ %t13 =l copy 0+ %t14 =w ceql %t12, %t13+ storew %t14, %t11+ jmp @lbl1658+@lbl1658+ %t15 =w loadw %t11+ jnz %t15, @lbl1654, @lbl1655+@lbl1654+ dbgloc 248+ storel 0, %t16+ dbgloc 244+ %t17 =l call $std__fs__cstr_heap()+ %t18 =w call $std__str__zstr_free__GENMONO__allocators__HeapAllocator(l %t17, l %t3)++ dbgloc 245+ %t19 =l call $std__fs__cstr_heap()+ %t20 =w call $std__str__zstr_free__GENMONO__allocators__HeapAllocator(l %t19, l %t6)++ call $memcpy(l %__ret, l %t16, l 16)+ ret %__ret+@lbl1655+ dbgloc 250+ %t21 =l loadl %t3+ %t22 =l loadl %t6+ %t23 =l call $std__fs__open_cstr(l %t24, l %t21, l %t22)+ dbgloc 244+ %t25 =l call $std__fs__cstr_heap()+ %t26 =w call $std__str__zstr_free__GENMONO__allocators__HeapAllocator(l %t25, l %t3)++ dbgloc 245+ %t27 =l call $std__fs__cstr_heap()+ %t28 =w call $std__str__zstr_free__GENMONO__allocators__HeapAllocator(l %t27, l %t6)++ call $memcpy(l %__ret, l %t24, l 16)+ ret %__ret+}++export function l $std__fs__file_size(l %__ret, l %path) {+@start+ %t0 =l alloc8 8+ %t3 =l alloc8 8+ %t7 =l alloc8 16+ %t12 =l alloc8 16+ dbgloc 254+ storel %path, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "path", "str.StringView", %t0, 8, 5, 254+ dbgloc 255+ %t1 =l call $std__fs__cstr_heap()+ %t2 =l call $std__str__zstr_from__GENMONO__allocators__HeapAllocator(l %t1, l %path)++ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "p", "str.ZString", %t3, 8, 5, 255+ dbgloc 256+ dbgloc 259+ %t4 =l loadl %t2+ %t5 =l copy 0+ %t6 =w ceql %t4, %t5+ jnz %t6, @lbl1659, @lbl1660+@lbl1659+ dbgloc 260+ storel 0, %t7+ dbgloc 257+ %t8 =l call $std__fs__cstr_heap()+ %t9 =w call $std__str__zstr_free__GENMONO__allocators__HeapAllocator(l %t8, l %t2)++ call $memcpy(l %__ret, l %t7, l 16)+ ret %__ret+@lbl1660+ dbgloc 262+ %t10 =l loadl %t2+ %t11 =l call $std__fs__file_size_cstr(l %t12, l %t10)+ dbgloc 257+ %t13 =l call $std__fs__cstr_heap()+ %t14 =w call $std__str__zstr_free__GENMONO__allocators__HeapAllocator(l %t13, l %t2)++ call $memcpy(l %__ret, l %t12, l 16)+ ret %__ret+}++export function l $std__fs__read_all_heap(l %__ret, l %path) {+@start+ %t0 =l alloc8 8+ %t3 =l alloc8 8+ %t7 =l alloc8 16+ %t12 =l alloc8 16+ dbgloc 281+ storel %path, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "path", "str.StringView", %t0, 8, 5, 281+ dbgloc 282+ %t1 =l call $std__fs__cstr_heap()+ %t2 =l call $std__str__zstr_from__GENMONO__allocators__HeapAllocator(l %t1, l %path)++ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "p", "str.ZString", %t3, 8, 5, 282+ dbgloc 283+ dbgloc 286+ %t4 =l loadl %t2+ %t5 =l copy 0+ %t6 =w ceql %t4, %t5+ jnz %t6, @lbl1662, @lbl1663+@lbl1662+ dbgloc 287+ storel 0, %t7+ dbgloc 284+ %t8 =l call $std__fs__cstr_heap()+ %t9 =w call $std__str__zstr_free__GENMONO__allocators__HeapAllocator(l %t8, l %t2)++ call $memcpy(l %__ret, l %t7, l 16)+ ret %__ret+@lbl1663+ dbgloc 289+ %t10 =l loadl %t2+ %t11 =l call $std__fs__read_all_heap_cstr(l %t12, l %t10)+ dbgloc 284+ %t13 =l call $std__fs__cstr_heap()+ %t14 =w call $std__str__zstr_free__GENMONO__allocators__HeapAllocator(l %t13, l %t2)++ call $memcpy(l %__ret, l %t12, l 16)+ ret %__ret+}++export function w $std__fs__write(l %f, l %data) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t7 =l alloc8 8+ dbgloc 293+ storel %f, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "f", "ref ", %t0, 8, 7, 293+ storel %data, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "data", "str.StringView", %t1, 8, 5, 293+ dbgloc 294+ %t3 =l add %data, 8+ %t2 =l loadl %t3+ %t4 =l copy 0+ %t5 =w cslel %t2, %t4+ jnz %t5, @lbl1665, @lbl1666+@lbl1665+ dbgloc 295+ ret 0+@lbl1666+ dbgloc 297+ %t6 =l loadl %f+ storel %t6, %t7+ call $__sx_dbg_keep(l %t7)+ dbgvar "ptr", "ref ", %t7, 8, 7, 297+ dbgloc 298+ %t8 =l loadl %data+ %t9 =l copy %t8+ %t10 =l copy 1+ %t11 =l copy %t10+ %t13 =l add %data, 8+ %t12 =l loadl %t13+ %t14 =l copy %t12+ %t15 =l call $rt__fwrite(l %t9, l %t11, l %t14, l %t6)+ ret 0+}++export function w $std__fs__write_line(l %f, l %data) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t4 =l alloc8 8+ %t9 =l alloc8 8+ dbgloc 302+ storel %f, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "f", "ref ", %t0, 8, 7, 302+ storel %data, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "data", "str.StringView", %t1, 8, 5, 302+ dbgloc 303+ %t2 =w call $std__fs__write(l %f, l %data)+ dbgloc 304+ %t3 =l loadl %f+ storel %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "ptr", "ref ", %t4, 8, 7, 304+ dbgloc 305+ %t5 =l copy 10+ %t6 =w copy %t5+ %t7 =w copy %t6+ %t8 =w extub %t7+ storew %t8, %t9+ call $__sx_dbg_keep(l %t9)+ dbgvar "nl", "u8", %t9, 1, 7, 305+ dbgloc 306+ %t10 =l copy %t9+ %t11 =l copy 1+ %t12 =l copy %t11+ %t13 =l copy 1+ %t14 =l copy %t13+ %t15 =l call $rt__fwrite(l %t10, l %t12, l %t14, l %t3)+ ret 0+}++export function w $std__fs__write_all(l %path, l %data) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t4 =l alloc8 8+ %t14 =l alloc8 16+ %t15 =l alloc8 8+ dbgloc 310+ storel %path, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "path", "str.StringView", %t0, 8, 5, 310+ storel %data, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "data", "str.StringView", %t1, 8, 5, 310+ dbgloc 311+ %t2 =l call $std__fs__cstr_heap()+ %t3 =l call $std__str__zstr_from__GENMONO__allocators__HeapAllocator(l %t2, l %path)++ storel %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "p", "str.ZString", %t4, 8, 5, 311+ dbgloc 312+ dbgloc 315+ %t5 =l loadl %t3+ %t6 =l copy 0+ %t7 =w ceql %t5, %t6+ jnz %t7, @lbl1668, @lbl1669+@lbl1668+ dbgloc 316+ %t8 =l copy 0+ dbgloc 313+ %t9 =l call $std__fs__cstr_heap()+ %t10 =w call $std__str__zstr_free__GENMONO__allocators__HeapAllocator(l %t9, l %t3)++ ret %t8+@lbl1669+ dbgloc 318+ %t11 =l loadl %t3+ %t12 =l copy $__str137+ %t13 =l call $std__fs__open_cstr(l %t14, l %t11, l %t12)+ storel %t14, %t15+ call $__sx_dbg_keep(l %t15)+ dbgvar "handle", "option[ref ]", %t15, 8, 5, 318+ dbgloc 319+ %t16 =l loadl %t14+ %t17 =w cnel %t16, 0+ jnz %t17, @lbl1671, @lbl1672+@lbl1671+ %t19 =l add %t14, 8+ %t18 =l loadl %t19+ dbgloc 324+ %t20 =w call $std__fs__write(l %t18, l %data)+ dbgloc 325+ %t21 =w call $std__fs__close(l %t18)+ jmp @lbl1673+@lbl1672+ dbgloc 321+ %t22 =l copy 0+ dbgloc 313+ %t23 =l call $std__fs__cstr_heap()+ %t24 =w call $std__str__zstr_free__GENMONO__allocators__HeapAllocator(l %t23, l %t3)++ ret %t22+@lbl1673+ dbgloc 328+ %t25 =l copy 1+ dbgloc 313+ %t26 =l call $std__fs__cstr_heap()+ %t27 =w call $std__str__zstr_free__GENMONO__allocators__HeapAllocator(l %t26, l %t3)++ ret %t25+}++export function w $std__fs__write_all_bytes(l %path, l %data, l %len) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t5 =l alloc8 8+ dbgloc 332+ storel %path, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "path", "str.StringView", %t0, 8, 5, 332+ storel %data, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "data", "ref ", %t1, 8, 7, 332+ storel %len, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "len", "i64", %t2, 8, 5, 332+ dbgloc 337+ %t3 =l call $std__fs__cstr_heap()+ %t4 =l call $std__str__zstr_from__GENMONO__allocators__HeapAllocator(l %t3, l %path)++ storel %t4, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "p", "str.ZString", %t5, 8, 5, 337+ dbgloc 338+ dbgloc 341+ %t6 =l loadl %t4+ %t7 =l copy 0+ %t8 =w ceql %t6, %t7+ jnz %t8, @lbl1674, @lbl1675+@lbl1674+ dbgloc 342+ %t9 =l copy 0+ dbgloc 339+ %t10 =l call $std__fs__cstr_heap()+ %t11 =w call $std__str__zstr_free__GENMONO__allocators__HeapAllocator(l %t10, l %t4)++ ret %t9+@lbl1675+ dbgloc 344+ %t12 =l loadl %t4+ %t13 =w call $std__fs__write_all_bytes_cstr(l %t12, l %data, l %len)+ dbgloc 339+ %t14 =l call $std__fs__cstr_heap()+ %t15 =w call $std__str__zstr_free__GENMONO__allocators__HeapAllocator(l %t14, l %t4)++ ret %t13+}++export function w $std__fs__append_all(l %path, l %data) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t4 =l alloc8 8+ %t14 =l alloc8 16+ %t15 =l alloc8 8+ dbgloc 348+ storel %path, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "path", "str.StringView", %t0, 8, 5, 348+ storel %data, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "data", "str.StringView", %t1, 8, 5, 348+ dbgloc 349+ %t2 =l call $std__fs__cstr_heap()+ %t3 =l call $std__str__zstr_from__GENMONO__allocators__HeapAllocator(l %t2, l %path)++ storel %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "p", "str.ZString", %t4, 8, 5, 349+ dbgloc 350+ dbgloc 353+ %t5 =l loadl %t3+ %t6 =l copy 0+ %t7 =w ceql %t5, %t6+ jnz %t7, @lbl1677, @lbl1678+@lbl1677+ dbgloc 354+ %t8 =l copy 0+ dbgloc 351+ %t9 =l call $std__fs__cstr_heap()+ %t10 =w call $std__str__zstr_free__GENMONO__allocators__HeapAllocator(l %t9, l %t3)++ ret %t8+@lbl1678+ dbgloc 356+ %t11 =l loadl %t3+ %t12 =l copy $__str138+ %t13 =l call $std__fs__open_cstr(l %t14, l %t11, l %t12)+ storel %t14, %t15+ call $__sx_dbg_keep(l %t15)+ dbgvar "handle", "option[ref ]", %t15, 8, 5, 356+ dbgloc 357+ %t16 =l loadl %t14+ %t17 =w cnel %t16, 0+ jnz %t17, @lbl1680, @lbl1681+@lbl1680+ %t19 =l add %t14, 8+ %t18 =l loadl %t19+ dbgloc 362+ %t20 =w call $std__fs__write(l %t18, l %data)+ dbgloc 363+ %t21 =w call $std__fs__close(l %t18)+ jmp @lbl1682+@lbl1681+ dbgloc 359+ %t22 =l copy 0+ dbgloc 351+ %t23 =l call $std__fs__cstr_heap()+ %t24 =w call $std__str__zstr_free__GENMONO__allocators__HeapAllocator(l %t23, l %t3)++ ret %t22+@lbl1682+ dbgloc 366+ %t25 =l copy 1+ dbgloc 351+ %t26 =l call $std__fs__cstr_heap()+ %t27 =w call $std__str__zstr_free__GENMONO__allocators__HeapAllocator(l %t26, l %t3)++ ret %t25+}++export function w $std__fs__append_all_bytes(l %path, l %data, l %len) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t5 =l alloc8 8+ dbgloc 370+ storel %path, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "path", "str.StringView", %t0, 8, 5, 370+ storel %data, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "data", "ref ", %t1, 8, 7, 370+ storel %len, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "len", "i64", %t2, 8, 5, 370+ dbgloc 375+ %t3 =l call $std__fs__cstr_heap()+ %t4 =l call $std__str__zstr_from__GENMONO__allocators__HeapAllocator(l %t3, l %path)++ storel %t4, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "p", "str.ZString", %t5, 8, 5, 375+ dbgloc 376+ dbgloc 379+ %t6 =l loadl %t4+ %t7 =l copy 0+ %t8 =w ceql %t6, %t7+ jnz %t8, @lbl1683, @lbl1684+@lbl1683+ dbgloc 380+ %t9 =l copy 0+ dbgloc 377+ %t10 =l call $std__fs__cstr_heap()+ %t11 =w call $std__str__zstr_free__GENMONO__allocators__HeapAllocator(l %t10, l %t4)++ ret %t9+@lbl1684+ dbgloc 382+ %t12 =l loadl %t4+ %t13 =w call $std__fs__append_all_bytes_cstr(l %t12, l %data, l %len)+ dbgloc 377+ %t14 =l call $std__fs__cstr_heap()+ %t15 =w call $std__str__zstr_free__GENMONO__allocators__HeapAllocator(l %t14, l %t4)++ ret %t13+}++export function w $std__fs__delete(l %path) {+@start+ %t0 =l alloc8 8+ %t3 =l alloc8 8+ dbgloc 386+ storel %path, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "path", "str.StringView", %t0, 8, 5, 386+ dbgloc 387+ %t1 =l call $std__fs__cstr_heap()+ %t2 =l call $std__str__zstr_from__GENMONO__allocators__HeapAllocator(l %t1, l %path)++ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "p", "str.ZString", %t3, 8, 5, 387+ dbgloc 388+ dbgloc 391+ %t4 =l loadl %t2+ %t5 =l copy 0+ %t6 =w ceql %t4, %t5+ jnz %t6, @lbl1686, @lbl1687+@lbl1686+ dbgloc 392+ %t7 =l copy 0+ dbgloc 389+ %t8 =l call $std__fs__cstr_heap()+ %t9 =w call $std__str__zstr_free__GENMONO__allocators__HeapAllocator(l %t8, l %t2)++ ret %t7+@lbl1687+ dbgloc 394+ %t10 =l loadl %t2+ %t11 =w call $std__fs__delete_cstr(l %t10)+ dbgloc 389+ %t12 =l call $std__fs__cstr_heap()+ %t13 =w call $std__str__zstr_free__GENMONO__allocators__HeapAllocator(l %t12, l %t2)++ ret %t11+}++export function w $std__fs__rename_path(l %old, l %new) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t4 =l alloc8 8+ %t7 =l alloc8 8+ %t11 =l alloc4 1+ dbgloc 398+ storel %old, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "old", "str.StringView", %t0, 8, 5, 398+ storel %new, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "new", "str.StringView", %t1, 8, 5, 398+ dbgloc 399+ %t2 =l call $std__fs__cstr_heap()+ %t3 =l call $std__str__zstr_from__GENMONO__allocators__HeapAllocator(l %t2, l %old)++ storel %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "o", "str.ZString", %t4, 8, 5, 399+ dbgloc 400+ %t5 =l call $std__fs__cstr_heap()+ %t6 =l call $std__str__zstr_from__GENMONO__allocators__HeapAllocator(l %t5, l %new)++ storel %t6, %t7+ call $__sx_dbg_keep(l %t7)+ dbgvar "n", "str.ZString", %t7, 8, 5, 400+ dbgloc 401+ dbgloc 405+ %t8 =l loadl %t3+ %t9 =l copy 0+ %t10 =w ceql %t8, %t9+ storew %t10, %t11+ jnz %t10, @lbl1693, @lbl1692+@lbl1692+ %t12 =l loadl %t6+ %t13 =l copy 0+ %t14 =w ceql %t12, %t13+ storew %t14, %t11+ jmp @lbl1693+@lbl1693+ %t15 =w loadw %t11+ jnz %t15, @lbl1689, @lbl1690+@lbl1689+ dbgloc 406+ %t16 =l copy 0+ dbgloc 402+ %t17 =l call $std__fs__cstr_heap()+ %t18 =w call $std__str__zstr_free__GENMONO__allocators__HeapAllocator(l %t17, l %t3)++ dbgloc 403+ %t19 =l call $std__fs__cstr_heap()+ %t20 =w call $std__str__zstr_free__GENMONO__allocators__HeapAllocator(l %t19, l %t6)++ ret %t16+@lbl1690+ dbgloc 408+ %t21 =l loadl %t3+ %t22 =l loadl %t6+ %t23 =w call $std__fs__rename_path_cstr(l %t21, l %t22)+ dbgloc 402+ %t24 =l call $std__fs__cstr_heap()+ %t25 =w call $std__str__zstr_free__GENMONO__allocators__HeapAllocator(l %t24, l %t3)++ dbgloc 403+ %t26 =l call $std__fs__cstr_heap()+ %t27 =w call $std__str__zstr_free__GENMONO__allocators__HeapAllocator(l %t26, l %t6)++ ret %t23+}++export function w $std__fs__mkdir_path(l %path) {+@start+ %t0 =l alloc8 8+ %t3 =l alloc8 8+ dbgloc 412+ storel %path, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "path", "str.StringView", %t0, 8, 5, 412+ dbgloc 413+ %t1 =l call $std__fs__cstr_heap()+ %t2 =l call $std__str__zstr_from__GENMONO__allocators__HeapAllocator(l %t1, l %path)++ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "p", "str.ZString", %t3, 8, 5, 413+ dbgloc 414+ dbgloc 417+ %t4 =l loadl %t2+ %t5 =l copy 0+ %t6 =w ceql %t4, %t5+ jnz %t6, @lbl1694, @lbl1695+@lbl1694+ dbgloc 418+ %t7 =l copy 0+ dbgloc 415+ %t8 =l call $std__fs__cstr_heap()+ %t9 =w call $std__str__zstr_free__GENMONO__allocators__HeapAllocator(l %t8, l %t2)++ ret %t7+@lbl1695+ dbgloc 420+ %t10 =l loadl %t2+ %t11 =w call $std__fs__mkdir_path_cstr(l %t10)+ dbgloc 415+ %t12 =l call $std__fs__cstr_heap()+ %t13 =w call $std__str__zstr_free__GENMONO__allocators__HeapAllocator(l %t12, l %t2)++ ret %t11+}++export function w $std__fs__rmdir_path(l %path) {+@start+ %t0 =l alloc8 8+ %t3 =l alloc8 8+ dbgloc 424+ storel %path, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "path", "str.StringView", %t0, 8, 5, 424+ dbgloc 425+ %t1 =l call $std__fs__cstr_heap()+ %t2 =l call $std__str__zstr_from__GENMONO__allocators__HeapAllocator(l %t1, l %path)++ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "p", "str.ZString", %t3, 8, 5, 425+ dbgloc 426+ dbgloc 429+ %t4 =l loadl %t2+ %t5 =l copy 0+ %t6 =w ceql %t4, %t5+ jnz %t6, @lbl1697, @lbl1698+@lbl1697+ dbgloc 430+ %t7 =l copy 0+ dbgloc 427+ %t8 =l call $std__fs__cstr_heap()+ %t9 =w call $std__str__zstr_free__GENMONO__allocators__HeapAllocator(l %t8, l %t2)++ ret %t7+@lbl1698+ dbgloc 432+ %t10 =l loadl %t2+ %t11 =w call $std__fs__rmdir_path_cstr(l %t10)+ dbgloc 427+ %t12 =l call $std__fs__cstr_heap()+ %t13 =w call $std__str__zstr_free__GENMONO__allocators__HeapAllocator(l %t12, l %t2)++ ret %t11+}++export function w $std__fs__remove_dir_all(l %path) {+@start+ %t0 =l alloc8 8+ %t3 =l alloc8 8+ dbgloc 436+ storel %path, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "path", "str.StringView", %t0, 8, 5, 436+ dbgloc 437+ %t1 =l call $std__fs__cstr_heap()+ %t2 =l call $std__str__zstr_from__GENMONO__allocators__HeapAllocator(l %t1, l %path)++ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "p", "str.ZString", %t3, 8, 5, 437+ dbgloc 438+ dbgloc 441+ %t4 =l loadl %t2+ %t5 =l copy 0+ %t6 =w ceql %t4, %t5+ jnz %t6, @lbl1700, @lbl1701+@lbl1700+ dbgloc 442+ %t7 =l copy 0+ dbgloc 439+ %t8 =l call $std__fs__cstr_heap()+ %t9 =w call $std__str__zstr_free__GENMONO__allocators__HeapAllocator(l %t8, l %t2)++ ret %t7+@lbl1701+ dbgloc 444+ %t10 =l loadl %t2+ %t11 =w call $std__fs__remove_dir_all_cstr(l %t10)+ dbgloc 439+ %t12 =l call $std__fs__cstr_heap()+ %t13 =w call $std__str__zstr_free__GENMONO__allocators__HeapAllocator(l %t12, l %t2)++ ret %t11+}++export function w $std__fs__is_directory(l %path) {+@start+ %t0 =l alloc8 8+ %t3 =l alloc8 8+ dbgloc 448+ storel %path, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "path", "str.StringView", %t0, 8, 5, 448+ dbgloc 449+ %t1 =l call $std__fs__cstr_heap()+ %t2 =l call $std__str__zstr_from__GENMONO__allocators__HeapAllocator(l %t1, l %path)++ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "p", "str.ZString", %t3, 8, 5, 449+ dbgloc 450+ dbgloc 453+ %t4 =l loadl %t2+ %t5 =l copy 0+ %t6 =w ceql %t4, %t5+ jnz %t6, @lbl1703, @lbl1704+@lbl1703+ dbgloc 454+ %t7 =l copy 0+ dbgloc 451+ %t8 =l call $std__fs__cstr_heap()+ %t9 =w call $std__str__zstr_free__GENMONO__allocators__HeapAllocator(l %t8, l %t2)++ ret %t7+@lbl1704+ dbgloc 456+ %t10 =l loadl %t2+ %t11 =w call $std__fs__is_directory_cstr(l %t10)+ dbgloc 451+ %t12 =l call $std__fs__cstr_heap()+ %t13 =w call $std__str__zstr_free__GENMONO__allocators__HeapAllocator(l %t12, l %t2)++ ret %t11+}++export function w $std__fs__close(l %f) {+@start+ %t0 =l alloc8 8+ %t2 =l alloc8 8+ dbgloc 460+ storel %f, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "f", "ref ", %t0, 8, 7, 460+ dbgloc 461+ %t1 =l loadl %f+ storel %t1, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "ptr", "ref ", %t2, 8, 7, 461+ dbgloc 462+ %t3 =w call $rt__fclose(l %t1)+ dbgloc 463+ call $free(l %f)+ %t4 =l copy 0+ ret 0+}++export function l $std__fs__file_size_cstr(l %__ret, l %path) {+@start+ %t0 =l alloc8 8+ %t3 =l alloc8 16+ %t4 =l alloc8 8+ %t10 =l alloc8 8+ %t15 =l alloc8 8+ %t18 =l alloc8 16+ %t20 =l alloc8 16+ dbgloc 468+ storel %path, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "path", "ref u8", %t0, 8, 7, 468+ dbgloc 469+ %t1 =l copy $__str60+ %t2 =l call $std__fs__open_cstr(l %t3, l %path, l %t1)+ storel %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "handle", "option[ref ]", %t4, 8, 5, 469+ dbgloc 470+ %t5 =l loadl %t3+ %t6 =w cnel %t5, 0+ jnz %t6, @lbl1706, @lbl1707+@lbl1706+ %t8 =l add %t3, 8+ %t7 =l loadl %t8+ dbgloc 475+ %t9 =l loadl %t7+ storel %t9, %t10+ call $__sx_dbg_keep(l %t10)+ dbgvar "ptr", "ref ", %t10, 8, 7, 475+ dbgloc 476+ %t11 =l copy 0+ %t12 =l copy 2+ %t13 =w call $rt__fseek(l %t9, l %t11, w %t12)+ dbgloc 477+ %t14 =l call $rt__ftell(l %t9)+ storel %t14, %t15+ call $__sx_dbg_keep(l %t15)+ dbgvar "size", "i64", %t15, 8, 5, 477+ dbgloc 478+ %t16 =w call $rt__rewind(l %t9)+ dbgloc 479+ %t17 =w call $std__fs__close(l %t7)+ dbgloc 480+ call $memset(l %t18, w 0, l 16)+ storel 1, %t18+ %t19 =l add %t18, 8+ storel %t14, %t19+ call $memcpy(l %__ret, l %t18, l 16)+ ret %__ret+@lbl1707+ dbgloc 472+ storel 0, %t20+ call $memcpy(l %__ret, l %t20, l 16)+ ret %__ret+@lbl1708+ ret 0+}++export function l $std__fs__read_all_heap_cstr(l %__ret, l %path) {+@start+ %t0 =l alloc8 8+ %t3 =l alloc8 16+ %t4 =l alloc8 8+ %t10 =l alloc8 8+ %t15 =l alloc8 8+ %t20 =l alloc8 8+ %t24 =l alloc8 16+ %t33 =l alloc8 16+ %t35 =l alloc8 16+ dbgloc 511+ storel %path, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "path", "ref u8", %t0, 8, 7, 511+ dbgloc 512+ %t1 =l copy $__str60+ %t2 =l call $std__fs__open_cstr(l %t3, l %path, l %t1)+ storel %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "handle", "option[ref ]", %t4, 8, 5, 512+ dbgloc 513+ %t5 =l loadl %t3+ %t6 =w cnel %t5, 0+ jnz %t6, @lbl1709, @lbl1710+@lbl1709+ %t8 =l add %t3, 8+ %t7 =l loadl %t8+ dbgloc 518+ %t9 =l loadl %t7+ storel %t9, %t10+ call $__sx_dbg_keep(l %t10)+ dbgvar "ptr", "ref ", %t10, 8, 7, 518+ dbgloc 519+ %t11 =l copy 0+ %t12 =l copy 2+ %t13 =w call $rt__fseek(l %t9, l %t11, w %t12)+ dbgloc 520+ %t14 =l call $rt__ftell(l %t9)+ storel %t14, %t15+ call $__sx_dbg_keep(l %t15)+ dbgvar "size", "i64", %t15, 8, 5, 520+ dbgloc 521+ %t16 =w call $rt__rewind(l %t9)+ dbgloc 522+ %t18 =l copy 1+ %t19 =l add %t14, %t18+ %t17 =l call $malloc(l %t19)+ storel %t17, %t20+ call $__sx_dbg_keep(l %t20)+ dbgvar "buf", "ref ", %t20, 8, 7, 522+ dbgloc 523+ %t21 =l copy 0+ %t22 =w ceql %t17, %t21+ jnz %t22, @lbl1712, @lbl1713+@lbl1712+ dbgloc 524+ %t23 =w call $std__fs__close(l %t7)+ dbgloc 525+ storel 0, %t24+ call $memcpy(l %__ret, l %t24, l 16)+ ret %__ret+@lbl1713+ dbgloc 527+ %t25 =l copy 1+ %t26 =l copy %t25+ %t27 =l copy %t14+ %t28 =l call $rt__fread(l %t17, l %t26, l %t27, l %t9)+ dbgloc 528+ %t30 =l add %t17, %t14+ %t31 =l copy 0+ storeb %t31, %t30+ %t29 =l copy 0+ dbgloc 529+ %t32 =w call $std__fs__close(l %t7)+ dbgloc 530+ call $memset(l %t33, w 0, l 16)+ storel 1, %t33+ %t34 =l add %t33, 8+ storel %t17, %t34+ call $memcpy(l %__ret, l %t33, l 16)+ ret %__ret+@lbl1710+ dbgloc 515+ storel 0, %t35+ call $memcpy(l %__ret, l %t35, l 16)+ ret %__ret+@lbl1711+ ret 0+}++export function w $std__fs__read_line(l %f, l %buf, l %max_len) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t4 =l alloc8 8+ %t6 =l alloc8 8+ %t11 =l alloc8 8+ %t24 =l alloc8 8+ dbgloc 538+ storel %f, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "f", "ref ", %t0, 8, 7, 538+ storel %buf, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "buf", "ref u8", %t1, 8, 7, 538+ storel %max_len, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "max_len", "i64", %t2, 8, 5, 538+ dbgloc 539+ %t3 =l loadl %f+ storel %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "ptr", "ref ", %t4, 8, 7, 539+ dbgloc 540+ %t5 =l call $fgets(l %buf, l %max_len, l %t3)+ storel %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "result", "ref ", %t6, 8, 7, 540+ dbgloc 541+ %t7 =l copy 0+ %t8 =w ceql %t5, %t7+ jnz %t8, @lbl1715, @lbl1716+@lbl1715+ dbgloc 542+ %t9 =l copy 0+ ret %t9+@lbl1716+ dbgloc 544+ %t10 =l call $rt__strlen(l %buf)+ storel %t10, %t11+ call $__sx_dbg_keep(l %t11)+ dbgvar "l", "i64", %t11, 8, 5, 544+ dbgloc 545+ jmp @lbl1718+@lbl1718+ jmp @lbl1719+@lbl1719+ dbgloc 546+ %t12 =l loadl %t11+ %t13 =l copy 0+ %t14 =w cslel %t12, %t13+ jnz %t14, @lbl1722, @lbl1723+@lbl1722+ dbgloc 547+ jmp @lbl1721+@lbl1723+ dbgloc 549+ %t17 =l loadl %t11+ %t18 =l copy 1+ %t19 =l sub %t17, %t18+ %t16 =l add %buf, %t19+ %t20 =w loadub %t16+ %t15 =l extsw %t20+ %t21 =w copy %t15+ %t22 =w copy %t21+ %t23 =w extub %t22+ storew %t23, %t24+ call $__sx_dbg_keep(l %t24)+ dbgvar "c", "u8", %t24, 1, 7, 549+ dbgloc 550+ %t25 =w copy 10+ %t26 =w cnew %t23, %t25+ jnz %t26, @lbl1725, @lbl1726+@lbl1725+ dbgloc 551+ %t27 =w copy 13+ %t28 =w cnew %t23, %t27+ jnz %t28, @lbl1728, @lbl1729+@lbl1728+ dbgloc 552+ jmp @lbl1721+@lbl1729+ jmp @lbl1726+@lbl1726+ dbgloc 555+ %t31 =l loadl %t11+ %t32 =l copy 1+ %t33 =l sub %t31, %t32+ %t30 =l add %buf, %t33+ %t34 =l copy 0+ storeb %t34, %t30+ %t29 =l copy 0+ dbgloc 556+ %t35 =l loadl %t11+ %t36 =l sub %t35, 1+ storel %t36, %t11+ jmp @lbl1720+@lbl1720+ jmp @lbl1718+@lbl1721+ dbgloc 558+ %t37 =l copy 1+ ret %t37+}++export function w $std__fs__write_cstr(l %f, l %data) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t3 =l alloc8 8+ %t5 =l alloc8 8+ dbgloc 562+ storel %f, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "f", "ref ", %t0, 8, 7, 562+ storel %data, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "data", "ref u8", %t1, 8, 7, 562+ dbgloc 563+ %t2 =l loadl %f+ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "ptr", "ref ", %t3, 8, 7, 563+ dbgloc 564+ %t4 =l call $rt__strlen(l %data)+ storel %t4, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "l", "i64", %t5, 8, 5, 564+ dbgloc 565+ %t6 =l copy 1+ %t7 =l copy %t6+ %t8 =l copy %t4+ %t9 =l call $rt__fwrite(l %data, l %t7, l %t8, l %t2)+ ret 0+}++export function w $std__fs__write_bytes(l %f, l %data, l %len) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t6 =l alloc8 8+ dbgloc 570+ storel %f, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "f", "ref ", %t0, 8, 7, 570+ storel %data, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "data", "ref ", %t1, 8, 7, 570+ storel %len, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "len", "i64", %t2, 8, 5, 570+ dbgloc 571+ %t3 =l copy 0+ %t4 =w cslel %len, %t3+ jnz %t4, @lbl1731, @lbl1732+@lbl1731+ dbgloc 572+ ret 0+@lbl1732+ dbgloc 574+ %t5 =l loadl %f+ storel %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "ptr", "ref ", %t6, 8, 7, 574+ dbgloc 575+ %t7 =l copy 1+ %t8 =l copy %t7+ %t9 =l copy %len+ %t10 =l call $rt__fwrite(l %data, l %t8, l %t9, l %t5)+ ret 0+}++export function w $std__fs__write_line_cstr(l %f, l %data) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t4 =l alloc8 8+ %t6 =l alloc8 8+ dbgloc 579+ storel %f, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "f", "ref ", %t0, 8, 7, 579+ storel %data, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "data", "ref u8", %t1, 8, 7, 579+ dbgloc 580+ %t2 =w call $std__fs__write_cstr(l %f, l %data)+ dbgloc 581+ %t3 =l copy $__str125+ storel %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "nl", "ref u8", %t4, 8, 7, 581+ dbgloc 582+ %t5 =l loadl %f+ storel %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "ptr", "ref ", %t6, 8, 7, 582+ dbgloc 583+ %t7 =l copy 1+ %t8 =l copy %t7+ %t9 =l copy 1+ %t10 =l copy %t9+ %t11 =l call $rt__fwrite(l %t3, l %t8, l %t10, l %t5)+ ret 0+}++export function w $std__fs__write_all_cstr(l %path, l %data) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t4 =l alloc8 16+ %t5 =l alloc8 8+ dbgloc 587+ storel %path, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "path", "ref u8", %t0, 8, 7, 587+ storel %data, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "data", "ref u8", %t1, 8, 7, 587+ dbgloc 588+ %t2 =l copy $__str137+ %t3 =l call $std__fs__open_cstr(l %t4, l %path, l %t2)+ storel %t4, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "handle", "option[ref ]", %t5, 8, 5, 588+ dbgloc 589+ %t6 =l loadl %t4+ %t7 =w cnel %t6, 0+ jnz %t7, @lbl1734, @lbl1735+@lbl1734+ %t9 =l add %t4, 8+ %t8 =l loadl %t9+ dbgloc 594+ %t10 =w call $std__fs__write_cstr(l %t8, l %data)+ dbgloc 595+ %t11 =w call $std__fs__close(l %t8)+ dbgloc 596+ %t12 =l copy 1+ ret %t12+@lbl1735+ dbgloc 591+ %t13 =l copy 0+ ret %t13+@lbl1736+ ret 0+}++export function w $std__fs__write_all_bytes_cstr(l %path, l %data, l %len) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t5 =l alloc8 16+ %t6 =l alloc8 8+ dbgloc 603+ storel %path, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "path", "ref u8", %t0, 8, 7, 603+ storel %data, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "data", "ref ", %t1, 8, 7, 603+ storel %len, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "len", "i64", %t2, 8, 5, 603+ dbgloc 604+ %t3 =l copy $__str61+ %t4 =l call $std__fs__open_cstr(l %t5, l %path, l %t3)+ storel %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "handle", "option[ref ]", %t6, 8, 5, 604+ dbgloc 605+ %t7 =l loadl %t5+ %t8 =w cnel %t7, 0+ jnz %t8, @lbl1737, @lbl1738+@lbl1737+ %t10 =l add %t5, 8+ %t9 =l loadl %t10+ dbgloc 610+ %t11 =w call $std__fs__write_bytes(l %t9, l %data, l %len)+ dbgloc 611+ %t12 =w call $std__fs__close(l %t9)+ dbgloc 612+ %t13 =l copy 1+ ret %t13+@lbl1738+ dbgloc 607+ %t14 =l copy 0+ ret %t14+@lbl1739+ ret 0+}++export function w $std__fs__append_all_bytes_cstr(l %path, l %data, l %len) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t5 =l alloc8 16+ %t6 =l alloc8 8+ dbgloc 618+ storel %path, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "path", "ref u8", %t0, 8, 7, 618+ storel %data, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "data", "ref ", %t1, 8, 7, 618+ storel %len, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "len", "i64", %t2, 8, 5, 618+ dbgloc 619+ %t3 =l copy $__str139+ %t4 =l call $std__fs__open_cstr(l %t5, l %path, l %t3)+ storel %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "handle", "option[ref ]", %t6, 8, 5, 619+ dbgloc 620+ %t7 =l loadl %t5+ %t8 =w cnel %t7, 0+ jnz %t8, @lbl1740, @lbl1741+@lbl1740+ %t10 =l add %t5, 8+ %t9 =l loadl %t10+ dbgloc 625+ %t11 =w call $std__fs__write_bytes(l %t9, l %data, l %len)+ dbgloc 626+ %t12 =w call $std__fs__close(l %t9)+ dbgloc 627+ %t13 =l copy 1+ ret %t13+@lbl1741+ dbgloc 622+ %t14 =l copy 0+ ret %t14+@lbl1742+ ret 0+}++export function w $std__fs__append_all_cstr(l %path, l %data) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t4 =l alloc8 16+ %t5 =l alloc8 8+ dbgloc 633+ storel %path, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "path", "ref u8", %t0, 8, 7, 633+ storel %data, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "data", "ref u8", %t1, 8, 7, 633+ dbgloc 634+ %t2 =l copy $__str138+ %t3 =l call $std__fs__open_cstr(l %t4, l %path, l %t2)+ storel %t4, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "handle", "option[ref ]", %t5, 8, 5, 634+ dbgloc 635+ %t6 =l loadl %t4+ %t7 =w cnel %t6, 0+ jnz %t7, @lbl1743, @lbl1744+@lbl1743+ %t9 =l add %t4, 8+ %t8 =l loadl %t9+ dbgloc 640+ %t10 =w call $std__fs__write_cstr(l %t8, l %data)+ dbgloc 641+ %t11 =w call $std__fs__close(l %t8)+ dbgloc 642+ %t12 =l copy 1+ ret %t12+@lbl1744+ dbgloc 637+ %t13 =l copy 0+ ret %t13+@lbl1745+ ret 0+}++export function w $std__fs__delete_cstr(l %path) {+@start+ %t0 =l alloc8 8+ %t3 =l alloc8 8+ dbgloc 649+ storel %path, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "path", "ref u8", %t0, 8, 7, 649+ dbgloc 650+ %t1 =w call $rt__remove(l %path)+ %t2 =w copy %t1+ storew %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "r", "i32", %t3, 4, 5, 650+ dbgloc 651+ %t4 =w copy 0+ %t5 =w ceqw %t2, %t4+ ret %t5+}++export function w $std__fs__rename_path_cstr(l %old, l %new) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t4 =l alloc8 8+ dbgloc 656+ storel %old, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "old", "ref u8", %t0, 8, 7, 656+ storel %new, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "new", "ref u8", %t1, 8, 7, 656+ dbgloc 657+ %t2 =w call $rt__rename(l %old, l %new)+ %t3 =w copy %t2+ storew %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "r", "i32", %t4, 4, 5, 657+ dbgloc 658+ %t5 =w copy 0+ %t6 =w ceqw %t3, %t5+ ret %t6+}++export function w $std__fs__mkdir_path_cstr(l %path) {+@start+ %t0 =l alloc8 8+ %t4 =l alloc8 8+ dbgloc 663+ storel %path, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "path", "ref u8", %t0, 8, 7, 663+ dbgloc 664+ dbgloc 667+ dbgloc 668+ %t1 =l copy 493+ %t2 =w call $std__fs__mkdir(l %path, w %t1)+ %t3 =w copy %t2+ storew %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "r", "i32", %t4, 4, 5, 668+ dbgloc 669+ %t5 =w copy 0+ %t6 =w ceqw %t3, %t5+ ret %t6+}++export function w $std__fs__rmdir_path_cstr(l %path) {+@start+ %t0 =l alloc8 8+ %t3 =l alloc8 8+ dbgloc 676+ storel %path, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "path", "ref u8", %t0, 8, 7, 676+ dbgloc 677+ %t1 =w call $std__fs__rmdir(l %path)+ %t2 =w copy %t1+ storew %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "r", "i32", %t3, 4, 5, 677+ dbgloc 678+ %t4 =w copy 0+ %t5 =w ceqw %t2, %t4+ ret %t5+}++export function w $std__fs__remove_dir_all_cstr(l %path) {+@start+ %t0 =l alloc8 8+ %t2 =l alloc8 8+ %t9 =l alloc8 8+ %t11 =l alloc8 8+ %t16 =l alloc8 8+ %t22 =l alloc8 8+ %t32 =l alloc8 8+ %t44 =l alloc8 8+ %t48 =l alloc8 8+ %t50 =l alloc8 8+ %t53 =l alloc8 8+ dbgloc 683+ storel %path, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "path", "ref u8", %t0, 8, 7, 683+ dbgloc 684+ %t1 =l call $rt__opendir(l %path)+ storel %t1, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "dir", "ref ", %t2, 8, 7, 684+ dbgloc 685+ %t3 =l copy 0+ %t4 =w ceql %t1, %t3+ jnz %t4, @lbl1746, @lbl1747+@lbl1746+ dbgloc 687+ %t5 =w call $std__fs__delete_cstr(l %path)+ ret %t5+@lbl1747+ dbgloc 690+ %t6 =l copy 1+ %t7 =w copy %t6+ %t8 =w extub %t7+ storew %t8, %t9+ call $__sx_dbg_keep(l %t9)+ dbgvar "success", "bool", %t9, 1, 7, 690+ dbgloc 691+ jmp @lbl1749+@lbl1749+ jmp @lbl1750+@lbl1750+ dbgloc 692+ %t10 =l call $rt__readdir(l %t1)+ storel %t10, %t11+ call $__sx_dbg_keep(l %t11)+ dbgvar "entry", "ref Dirent", %t11, 8, 7, 692+ dbgloc 693+ %t12 =l copy 0+ %t13 =w ceql %t10, %t12+ jnz %t13, @lbl1753, @lbl1754+@lbl1753+ dbgloc 694+ jmp @lbl1752+@lbl1754+ dbgloc 696+ %t14 =l add %t10, 19+ %t15 =l copy %t14+ storel %t15, %t16+ call $__sx_dbg_keep(l %t16)+ dbgvar "name", "ref u8", %t16, 8, 7, 696+ dbgloc 697+ %t18 =w loadub %t15+ %t17 =l extsw %t18+ %t19 =w copy %t17+ %t20 =w copy %t19+ %t21 =w extub %t20+ storew %t21, %t22+ call $__sx_dbg_keep(l %t22)+ dbgvar "c0", "u8", %t22, 1, 7, 697+ dbgloc 698+ %t23 =w copy 46+ %t24 =w ceqw %t21, %t23+ jnz %t24, @lbl1756, @lbl1757+@lbl1756+ dbgloc 699+ %t27 =l copy 1+ %t26 =l add %t15, %t27+ %t28 =w loadub %t26+ %t25 =l extsw %t28+ %t29 =w copy %t25+ %t30 =w copy %t29+ %t31 =w extub %t30+ storew %t31, %t32+ call $__sx_dbg_keep(l %t32)+ dbgvar "c1", "u8", %t32, 1, 7, 699+ dbgloc 700+ %t33 =w copy 0+ %t34 =w ceqw %t31, %t33+ jnz %t34, @lbl1759, @lbl1760+@lbl1759+ dbgloc 701+ jmp @lbl1751+@lbl1760+ dbgloc 703+ %t35 =w copy 46+ %t36 =w ceqw %t31, %t35+ jnz %t36, @lbl1762, @lbl1763+@lbl1762+ dbgloc 704+ %t39 =l copy 2+ %t38 =l add %t15, %t39+ %t40 =w loadub %t38+ %t37 =l extsw %t40+ %t41 =w copy %t37+ %t42 =w copy %t41+ %t43 =w extub %t42+ storew %t43, %t44+ call $__sx_dbg_keep(l %t44)+ dbgvar "c2", "u8", %t44, 1, 7, 704+ dbgloc 705+ %t45 =w copy 0+ %t46 =w ceqw %t43, %t45+ jnz %t46, @lbl1765, @lbl1766+@lbl1765+ dbgloc 706+ jmp @lbl1751+@lbl1766+ jmp @lbl1763+@lbl1763+ jmp @lbl1757+@lbl1757+ dbgloc 711+ %t47 =l call $std__path__join_cstr(l %path, l %t15)+ storel %t47, %t48+ call $__sx_dbg_keep(l %t48)+ dbgvar "child", "ref u8", %t48, 8, 7, 711+ dbgloc 712+ %t49 =l loadl %t48+ storel %t49, %t50+ call $__sx_dbg_keep(l %t50)+ dbgvar "child_ptr", "ref u8", %t50, 8, 7, 712+ dbgloc 713+ %t51 =l loadl %t48+ %t52 =l call $rt__opendir(l %t51)+ storel %t52, %t53+ call $__sx_dbg_keep(l %t53)+ dbgvar "sub", "ref ", %t53, 8, 7, 713+ dbgloc 714+ %t54 =l copy 0+ %t55 =w cnel %t52, %t54+ jnz %t55, @lbl1768, @lbl1770+@lbl1768+ dbgloc 715+ %t56 =w call $rt__closedir(l %t52)+ dbgloc 716+ %t57 =l loadl %t48+ %t58 =w call $std__fs__remove_dir_all_cstr(l %t57)+ %t59 =w ceqw %t58, 0+ jnz %t59, @lbl1771, @lbl1772+@lbl1771+ dbgloc 717+ %t60 =l copy 0+ %t61 =w copy %t60+ %t62 =w extub %t61+ storew %t62, %t9+ jmp @lbl1772+@lbl1772+ jmp @lbl1769+@lbl1770+ dbgloc 720+ %t63 =l loadl %t48+ %t64 =w call $std__fs__delete_cstr(l %t63)+ %t65 =w ceqw %t64, 0+ jnz %t65, @lbl1774, @lbl1775+@lbl1774+ dbgloc 721+ %t66 =l copy 0+ %t67 =w copy %t66+ %t68 =w extub %t67+ storew %t68, %t9+ jmp @lbl1775+@lbl1775+ jmp @lbl1769+@lbl1769+ dbgloc 724+ %t70 =l loadl %t50+ %t71 =l copy %t70+ call $free(l %t71)+ %t69 =l copy 0+ jmp @lbl1751+@lbl1751+ jmp @lbl1749+@lbl1752+ dbgloc 726+ %t72 =w call $rt__closedir(l %t1)+ dbgloc 728+ %t74 =w loadw %t9+ %t73 =l extsw %t74+ %t75 =w ceqw %t73, 0+ jnz %t75, @lbl1777, @lbl1778+@lbl1777+ dbgloc 729+ %t76 =l copy 0+ ret %t76+@lbl1778+ dbgloc 731+ %t77 =w call $std__fs__rmdir_path_cstr(l %path)+ ret %t77+}++export function l $std__fs__cwd_cstr(l %__ret) {+@start+ %t2 =l alloc8 8+ %t5 =l alloc8 16+ %t9 =l alloc8 8+ %t13 =l alloc8 16+ %t14 =l alloc8 16+ dbgloc 747+ dbgloc 748+ %t0 =l copy 4095+ %t1 =l call $std__fs__raw_alloc_cstr(l %t0)+ storel %t1, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "buf", "ref u8", %t2, 8, 7, 748+ dbgloc 749+ %t3 =l copy 0+ %t4 =w ceql %t1, %t3+ jnz %t4, @lbl1780, @lbl1781+@lbl1780+ dbgloc 750+ storel 0, %t5+ call $memcpy(l %__ret, l %t5, l 16)+ ret %__ret+@lbl1781+ dbgloc 752+ %t6 =l copy 4096+ %t7 =l copy %t6+ %t8 =l call $rt__getcwd(l %t1, l %t7)+ storel %t8, %t9+ call $__sx_dbg_keep(l %t9)+ dbgvar "result", "ref u8", %t9, 8, 7, 752+ dbgloc 753+ %t10 =l copy 0+ %t11 =w ceql %t8, %t10+ jnz %t11, @lbl1783, @lbl1784+@lbl1783+ dbgloc 754+ call $free(l %t1)+ %t12 =l copy 0+ dbgloc 755+ storel 0, %t13+ call $memcpy(l %__ret, l %t13, l 16)+ ret %__ret+@lbl1784+ dbgloc 757+ call $memset(l %t14, w 0, l 16)+ storel 1, %t14+ %t15 =l add %t14, 8+ storel %t1, %t15+ call $memcpy(l %__ret, l %t14, l 16)+ ret %__ret+}++export function l $std__fs__temp_dir_cstr() {+@start+ %t2 =l alloc8 8+ dbgloc 784+ dbgloc 785+ dbgloc 786+ %t0 =l copy $__str140+ %t1 =l call $rt__getenv(l %t0)+ storel %t1, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "t", "ref u8", %t2, 8, 7, 786+ dbgloc 787+ %t3 =l copy 0+ %t4 =w cnel %t1, %t3+ jnz %t4, @lbl1786, @lbl1787+@lbl1786+ dbgloc 788+ ret %t1+@lbl1787+ dbgloc 790+ %t5 =l copy $__str141+ ret %t5+}++export function l $std__fs__home_dir_cstr(l %__ret) {+@start+ %t2 =l alloc8 8+ %t5 =l alloc8 16+ %t7 =l alloc8 16+ dbgloc 830+ dbgloc 831+ dbgloc 832+ %t0 =l copy $__str142+ %t1 =l call $rt__getenv(l %t0)+ storel %t1, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "h", "ref u8", %t2, 8, 7, 832+ dbgloc 833+ %t3 =l copy 0+ %t4 =w cnel %t1, %t3+ jnz %t4, @lbl1789, @lbl1790+@lbl1789+ dbgloc 834+ call $memset(l %t5, w 0, l 16)+ storel 1, %t5+ %t6 =l add %t5, 8+ storel %t1, %t6+ call $memcpy(l %__ret, l %t5, l 16)+ ret %__ret+@lbl1790+ dbgloc 836+ storel 0, %t7+ call $memcpy(l %__ret, l %t7, l 16)+ ret %__ret+}++export function l $std__fs__config_dir_cstr(l %__ret) {+@start+ %t2 =l alloc8 8+ %t5 =l alloc8 16+ %t9 =l alloc8 8+ %t12 =l alloc8 16+ %t14 =l alloc8 8+ %t16 =l alloc8 8+ %t18 =l alloc8 8+ %t21 =l alloc8 8+ %t24 =l alloc8 16+ %t28 =l alloc8 16+ dbgloc 887+ dbgloc 888+ dbgloc 889+ %t0 =l copy $__str143+ %t1 =l call $rt__getenv(l %t0)+ storel %t1, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "xdg", "ref u8", %t2, 8, 7, 889+ dbgloc 890+ %t3 =l copy 0+ %t4 =w cnel %t1, %t3+ jnz %t4, @lbl1792, @lbl1793+@lbl1792+ dbgloc 891+ call $memset(l %t5, w 0, l 16)+ storel 1, %t5+ %t6 =l add %t5, 8+ storel %t1, %t6+ call $memcpy(l %__ret, l %t5, l 16)+ ret %__ret+@lbl1793+ dbgloc 893+ %t7 =l copy $__str142+ %t8 =l call $rt__getenv(l %t7)+ storel %t8, %t9+ call $__sx_dbg_keep(l %t9)+ dbgvar "h", "ref u8", %t9, 8, 7, 893+ dbgloc 894+ %t10 =l copy 0+ %t11 =w ceql %t8, %t10+ jnz %t11, @lbl1795, @lbl1796+@lbl1795+ dbgloc 895+ storel 0, %t12+ call $memcpy(l %__ret, l %t12, l 16)+ ret %__ret+@lbl1796+ dbgloc 897+ %t13 =l call $rt__strlen(l %t8)+ storel %t13, %t14+ call $__sx_dbg_keep(l %t14)+ dbgvar "hl", "i64", %t14, 8, 5, 897+ dbgloc 898+ %t15 =l copy $__str144+ storel %t15, %t16+ call $__sx_dbg_keep(l %t16)+ dbgvar "suffix", "ref u8", %t16, 8, 7, 898+ dbgloc 899+ %t17 =l call $rt__strlen(l %t15)+ storel %t17, %t18+ call $__sx_dbg_keep(l %t18)+ dbgvar "sl", "i64", %t18, 8, 5, 899+ dbgloc 900+ %t19 =l add %t13, %t17+ %t20 =l call $std__fs__raw_alloc_cstr(l %t19)+ storel %t20, %t21+ call $__sx_dbg_keep(l %t21)+ dbgvar "buf", "ref u8", %t21, 8, 7, 900+ dbgloc 901+ %t22 =l copy 0+ %t23 =w ceql %t20, %t22+ jnz %t23, @lbl1798, @lbl1799+@lbl1798+ dbgloc 902+ storel 0, %t24+ call $memcpy(l %__ret, l %t24, l 16)+ ret %__ret+@lbl1799+ dbgloc 904+ call $memcpy(l %t20, l %t8, l %t13)+ %t25 =l copy 0+ dbgloc 905+ %t27 =l add %t20, %t13+ call $memcpy(l %t27, l %t15, l %t17)+ %t26 =l copy 0+ dbgloc 906+ call $memset(l %t28, w 0, l 16)+ storel 1, %t28+ %t29 =l add %t28, 8+ storel %t20, %t29+ call $memcpy(l %__ret, l %t28, l 16)+ ret %__ret+}++export function w $std__fs__is_directory_cstr(l %path) {+@start+ %t0 =l alloc8 8+ %t5 =l alloc8 8+ dbgloc 1244+ storel %path, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "path", "ref u8", %t0, 8, 7, 1244+ dbgloc 1245+ %t1 =l copy 0+ %t2 =w cnel %path, %t1+ jnz %t2, @lbl1801, @lbl1802+@lbl1802+ %t3 =l copy $__str145+ call $dprintf(w 2, l %t3)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl1801+ dbgloc 1248+ %t4 =l call $rt__opendir(l %path)+ storel %t4, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "handle", "ref ", %t5, 8, 7, 1248+ dbgloc 1249+ %t6 =l copy 0+ %t7 =w ceql %t4, %t6+ jnz %t7, @lbl1803, @lbl1804+@lbl1803+ dbgloc 1250+ %t8 =l copy 0+ ret %t8+@lbl1804+ dbgloc 1252+ %t9 =w call $rt__closedir(l %t4)+ dbgloc 1253+ %t10 =l copy 1+ ret %t10+}++dbgfile "src/core/lists.sx"+dbgfile "src/io/files.sx"+data $files__MAX_PATH = { l 65536 }+function l $files__heap() {+@start+ %t0 =l alloc8 8+ dbgloc 14+ dbgloc 15+ call $memset(l %t0, w 0, l 8)+ ret %t0+}++export function l $files__to_view(l %b) {+@start+ %t0 =l alloc8 8+ dbgloc 18+ storel %b, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "b", "bytes.Bytes", %t0, 8, 5, 18+ dbgloc 19+ %t1 =l loadl %b+ %t3 =l add %b, 8+ %t2 =l loadl %t3+ %t4 =l copy %t2+ %t5 =l call $std__str__view(l %t1, l %t4)+ ret %t5+}++export function l $files__cstr_view(l %b) {+@start+ %t0 =l alloc8 8+ dbgloc 22+ storel %b, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "b", "bytes.Bytes", %t0, 8, 5, 22+ dbgloc 23+ %t1 =l loadl %b+ %t2 =l call $std__str__from_cstr(l %t1)+ ret %t2+}++export function l $files__join(l %a, l %b) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t3 =l alloc8 8+ %t19 =l alloc8 8+ %t30 =l alloc8 8+ %t35 =l alloc8 8+ dbgloc 27+ storel %a, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "a", "str.StringView", %t0, 8, 5, 27+ storel %b, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "b", "str.StringView", %t1, 8, 5, 27+ dbgloc 28+ %t2 =l copy 0+ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "need_sep", "usize", %t3, 8, 5, 28+ dbgloc 29+ %t5 =l add %a, 8+ %t4 =l loadl %t5+ %t6 =l copy 0+ %t7 =w csgtl %t4, %t6+ jnz %t7, @lbl1806, @lbl1807+@lbl1806+ dbgloc 30+ %t10 =l loadl %a+ %t12 =l add %a, 8+ %t11 =l loadl %t12+ %t13 =l copy 1+ %t14 =l sub %t11, %t13+ %t9 =l add %t10, %t14+ %t15 =w loadub %t9+ %t8 =l extsw %t15+ %t16 =w copy %t8+ %t17 =w copy %t16+ %t18 =w extub %t17+ storew %t18, %t19+ call $__sx_dbg_keep(l %t19)+ dbgvar "last", "u8", %t19, 1, 7, 30+ dbgloc 31+ %t20 =w copy 47+ %t21 =w cnew %t18, %t20+ jnz %t21, @lbl1809, @lbl1810+@lbl1809+ dbgloc 32+ %t22 =l copy 1+ storel %t22, %t3+ jmp @lbl1810+@lbl1810+ jmp @lbl1807+@lbl1807+ dbgloc 35+ %t24 =l add %a, 8+ %t23 =l loadl %t24+ %t25 =l loadl %t3+ %t26 =l add %t23, %t25+ %t28 =l add %b, 8+ %t27 =l loadl %t28+ %t29 =l add %t26, %t27+ storel %t29, %t30+ call $__sx_dbg_keep(l %t30)+ dbgvar "n", "usize", %t30, 8, 5, 35+ dbgloc 36+ %t32 =l copy 1+ %t33 =l add %t29, %t32+ %t31 =l call $malloc(l %t33)+ %t34 =l copy %t31+ storel %t34, %t35+ call $__sx_dbg_keep(l %t35)+ dbgvar "p", "ref u8", %t35, 8, 7, 36+ dbgloc 37+ dbgloc 38+ %t37 =l add %a, 8+ %t36 =l loadl %t37+ %t38 =l copy 0+ %t39 =w csgtl %t36, %t38+ jnz %t39, @lbl1812, @lbl1813+@lbl1812+ dbgloc 39+ %t41 =l copy %t34+ %t42 =l loadl %a+ %t43 =l copy %t42+ %t45 =l add %a, 8+ %t44 =l loadl %t45+ %t46 =l copy %t44+ call $memcpy(l %t41, l %t43, l %t46)+ %t40 =l copy 0+ jmp @lbl1813+@lbl1813+ dbgloc 41+ %t47 =l loadl %t3+ %t48 =l copy 1+ %t49 =w ceql %t47, %t48+ jnz %t49, @lbl1815, @lbl1816+@lbl1815+ dbgloc 42+ %t53 =l add %a, 8+ %t52 =l loadl %t53+ %t51 =l add %t34, %t52+ %t54 =l copy 47+ storeb %t54, %t51+ %t50 =l copy 0+ jmp @lbl1816+@lbl1816+ dbgloc 44+ %t56 =l add %b, 8+ %t55 =l loadl %t56+ %t57 =l copy 0+ %t58 =w csgtl %t55, %t57+ jnz %t58, @lbl1818, @lbl1819+@lbl1818+ dbgloc 45+ %t62 =l add %a, 8+ %t61 =l loadl %t62+ %t63 =l loadl %t3+ %t64 =l add %t61, %t63+ %t60 =l add %t34, %t64+ %t65 =l loadl %b+ %t66 =l copy %t65+ %t68 =l add %b, 8+ %t67 =l loadl %t68+ %t69 =l copy %t67+ call $memcpy(l %t60, l %t66, l %t69)+ %t59 =l copy 0+ jmp @lbl1819+@lbl1819+ dbgloc 47+ %t71 =l add %t34, %t29+ %t72 =l copy 0+ storeb %t72, %t71+ %t70 =l copy 0+ dbgloc 49+ %t73 =l call $std__str__view(l %t34, l %t29)+ ret %t73+}++export function l $files__join3(l %a, l %b, l %c) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t4 =l alloc8 8+ %t6 =l alloc8 8+ dbgloc 53+ storel %a, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "a", "str.StringView", %t0, 8, 5, 53+ storel %b, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "b", "str.StringView", %t1, 8, 5, 53+ storel %c, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "c", "str.StringView", %t2, 8, 5, 53+ dbgloc 54+ %t3 =l call $files__join(l %a, l %b)+ storel %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "ab", "str.StringView", %t4, 8, 5, 54+ dbgloc 55+ %t5 =l call $files__join(l %t3, l %c)+ storel %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "out", "str.StringView", %t6, 8, 5, 55+ dbgloc 56+ %t7 =w call $files__free_path(l %t3)+ dbgloc 57+ ret %t5+}++export function w $files__free_path(l %p) {+@start+ %t0 =l alloc8 8+ %t6 =l alloc8 8+ dbgloc 60+ storel %p, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "p", "str.StringView", %t0, 8, 5, 60+ dbgloc 61+ %t1 =l loadl %p+ %t2 =l copy 0+ %t3 =w cnel %t1, %t2+ jnz %t3, @lbl1821, @lbl1822+@lbl1821+ dbgloc 62+ %t4 =l loadl %p+ %t5 =l copy %t4+ storel %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "q", "ref ", %t6, 8, 7, 62+ dbgloc 63+ %t8 =l loadl %t6+ call $free(l %t8)+ %t7 =l copy 0+ jmp @lbl1822+@lbl1822+ ret 0+}++export function l $files__with_suffix(l %p, l %suffix) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t7 =l alloc8 8+ %t12 =l alloc8 8+ dbgloc 68+ storel %p, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "p", "str.StringView", %t0, 8, 5, 68+ storel %suffix, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "suffix", "str.StringView", %t1, 8, 5, 68+ dbgloc 69+ %t3 =l add %p, 8+ %t2 =l loadl %t3+ %t5 =l add %suffix, 8+ %t4 =l loadl %t5+ %t6 =l add %t2, %t4+ storel %t6, %t7+ call $__sx_dbg_keep(l %t7)+ dbgvar "n", "usize", %t7, 8, 5, 69+ dbgloc 70+ %t9 =l copy 1+ %t10 =l add %t6, %t9+ %t8 =l call $malloc(l %t10)+ %t11 =l copy %t8+ storel %t11, %t12+ call $__sx_dbg_keep(l %t12)+ dbgvar "out", "ref u8", %t12, 8, 7, 70+ dbgloc 71+ dbgloc 72+ %t14 =l add %p, 8+ %t13 =l loadl %t14+ %t15 =l copy 0+ %t16 =w csgtl %t13, %t15+ jnz %t16, @lbl1824, @lbl1825+@lbl1824+ dbgloc 73+ %t18 =l copy %t11+ %t19 =l loadl %p+ %t20 =l copy %t19+ %t22 =l add %p, 8+ %t21 =l loadl %t22+ %t23 =l copy %t21+ call $memcpy(l %t18, l %t20, l %t23)+ %t17 =l copy 0+ jmp @lbl1825+@lbl1825+ dbgloc 75+ %t25 =l add %suffix, 8+ %t24 =l loadl %t25+ %t26 =l copy 0+ %t27 =w csgtl %t24, %t26+ jnz %t27, @lbl1827, @lbl1828+@lbl1827+ dbgloc 76+ %t31 =l add %p, 8+ %t30 =l loadl %t31+ %t29 =l add %t11, %t30+ %t32 =l loadl %suffix+ %t33 =l copy %t32+ %t35 =l add %suffix, 8+ %t34 =l loadl %t35+ %t36 =l copy %t34+ call $memcpy(l %t29, l %t33, l %t36)+ %t28 =l copy 0+ jmp @lbl1828+@lbl1828+ dbgloc 78+ %t38 =l add %t11, %t6+ %t39 =l copy 0+ storeb %t39, %t38+ %t37 =l copy 0+ dbgloc 80+ %t40 =l call $std__str__view(l %t11, l %t6)+ ret %t40+}++export function l $files__basename(l %p) {+@start+ %t0 =l alloc8 8+ %t5 =l alloc8 8+ %t18 =l alloc8 8+ dbgloc 83+ storel %p, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "p", "str.StringView", %t0, 8, 5, 83+ dbgloc 84+ %t2 =l add %p, 8+ %t1 =l loadl %t2+ %t3 =l copy 1+ %t4 =l sub %t1, %t3+ storel %t4, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "i", "i64", %t5, 8, 5, 84+ dbgloc 85+ jmp @lbl1830+@lbl1830+ %t6 =l loadl %t5+ %t7 =l copy 0+ %t9 =w csltl %t6, %t7+ %t8 =w ceqw %t9, 0+ jnz %t8, @lbl1831, @lbl1833+@lbl1831+ dbgloc 86+ %t12 =l loadl %p+ %t13 =l loadl %t5+ %t11 =l add %t12, %t13+ %t14 =w loadub %t11+ %t10 =l extsw %t14+ %t15 =w copy %t10+ %t16 =w copy %t15+ %t17 =w extub %t16+ storew %t17, %t18+ call $__sx_dbg_keep(l %t18)+ dbgvar "c", "u8", %t18, 1, 7, 86+ dbgloc 87+ %t19 =w copy 47+ %t20 =w ceqw %t17, %t19+ jnz %t20, @lbl1834, @lbl1835+@lbl1834+ dbgloc 88+ %t21 =l loadl %t5+ %t22 =l copy 1+ %t23 =l add %t21, %t22+ %t25 =l add %p, 8+ %t24 =l loadl %t25+ %t26 =l call $std__str__slice(l %p, l %t23, l %t24)+ ret %t26+@lbl1835+ dbgloc 90+ %t27 =l loadl %t5+ %t28 =l sub %t27, 1+ storel %t28, %t5+ jmp @lbl1832+@lbl1832+ jmp @lbl1830+@lbl1833+ dbgloc 92+ ret %p+}++export function w $files__exists_file(l %p) {+@start+ %t0 =l alloc8 8+ %t4 =l alloc8 16+ %t5 =l alloc8 8+ dbgloc 95+ storel %p, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "p", "str.StringView", %t0, 8, 5, 95+ dbgloc 96+ %t1 =w call $std__fs__is_directory(l %p)+ jnz %t1, @lbl1837, @lbl1838+@lbl1837+ dbgloc 97+ %t2 =l copy 0+ ret %t2+@lbl1838+ dbgloc 99+ %t3 =l call $std__fs__file_size(l %t4, l %p)+ storel %t4, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "sz", "option[i64]", %t5, 8, 5, 99+ dbgloc 100+ %t6 =l loadl %t4+ %t7 =w cnel %t6, 0+ jnz %t7, @lbl1840, @lbl1841+@lbl1840+ dbgloc 101+ %t8 =l copy 1+ ret %t8+@lbl1841+ jmp @lbl1842+@lbl1842+ dbgloc 103+ %t9 =l copy 0+ ret %t9+}++export function w $files__exists_dir(l %p) {+@start+ %t0 =l alloc8 8+ dbgloc 106+ storel %p, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "p", "str.StringView", %t0, 8, 5, 106+ dbgloc 107+ %t1 =w call $std__fs__is_directory(l %p)+ ret %t1+}++export function l $files__read_all(l %__ret, l %p) {+@start+ %t0 =l alloc8 8+ %t2 =l alloc8 16+ %t3 =l alloc8 8+ %t6 =l alloc8 16+ %t8 =l alloc8 8+ %t13 =l alloc8 16+ %t17 =l alloc4 1+ %t22 =l alloc8 16+ %t27 =l alloc8 16+ %t30 =l alloc8 16+ %t31 =l alloc8 8+ %t34 =l alloc8 16+ %t36 =l alloc8 8+ %t41 =l alloc8 16+ %t46 =l alloc8 16+ dbgloc 111+ storel %p, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "p", "str.StringView", %t0, 8, 5, 111+ dbgloc 112+ %t1 =l call $std__fs__file_size(l %t2, l %p)+ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "size_opt", "option[i64]", %t3, 8, 5, 112+ dbgloc 113+ %t4 =l loadl %t2+ %t5 =w cnel %t4, 0+ jnz %t5, @lbl1843, @lbl1844+@lbl1843+ jmp @lbl1845+@lbl1844+ dbgloc 114+ storel 0, %t6+ call $memcpy(l %__ret, l %t6, l 16)+ ret %__ret+@lbl1845+ dbgloc 116+ %t7 =l copy 0+ storel %t7, %t8+ call $__sx_dbg_keep(l %t8)+ dbgvar "size", "i64", %t8, 8, 5, 116+ dbgloc 117+ %t9 =l loadl %t2+ %t10 =w cnel %t9, 0+ jnz %t10, @lbl1846, @lbl1847+@lbl1846+ %t12 =l add %t2, 8+ %t11 =l loadl %t12+ dbgloc 119+ storel %t11, %t8+ jmp @lbl1848+@lbl1847+ dbgloc 122+ storel 0, %t13+ call $memcpy(l %__ret, l %t13, l 16)+ ret %__ret+@lbl1848+ dbgloc 125+ %t14 =l loadl %t8+ %t15 =l copy 0+ %t16 =w csltl %t14, %t15+ storew %t16, %t17+ jnz %t16, @lbl1853, @lbl1852+@lbl1852+ %t18 =l loadl %t8+ %t19 =l copy 8589934592+ %t20 =w csgtl %t18, %t19+ storew %t20, %t17+ jmp @lbl1853+@lbl1853+ %t21 =w loadw %t17+ jnz %t21, @lbl1849, @lbl1850+@lbl1849+ dbgloc 126+ storel 0, %t22+ call $memcpy(l %__ret, l %t22, l 16)+ ret %__ret+@lbl1850+ dbgloc 128+ %t23 =l loadl %t8+ %t24 =l copy 0+ %t25 =w ceql %t23, %t24+ jnz %t25, @lbl1854, @lbl1855+@lbl1854+ dbgloc 129+ %t26 =l call $bytes__empty()+ call $memset(l %t27, w 0, l 16)+ storel 1, %t27+ %t28 =l add %t27, 8+ storel %t26, %t28+ call $memcpy(l %__ret, l %t27, l 16)+ ret %__ret+@lbl1855+ dbgloc 131+ %t29 =l call $std__fs__read_all_heap(l %t30, l %p)+ storel %t30, %t31+ call $__sx_dbg_keep(l %t31)+ dbgvar "data_opt", "option[ref u8]", %t31, 8, 5, 131+ dbgloc 132+ %t32 =l loadl %t30+ %t33 =w cnel %t32, 0+ jnz %t33, @lbl1857, @lbl1858+@lbl1857+ jmp @lbl1859+@lbl1858+ dbgloc 133+ storel 0, %t34+ call $memcpy(l %__ret, l %t34, l 16)+ ret %__ret+@lbl1859+ dbgloc 135+ %t35 =l copy 0+ storel %t35, %t36+ call $__sx_dbg_keep(l %t36)+ dbgvar "ptr", "ref u8", %t36, 8, 7, 135+ dbgloc 136+ %t37 =l loadl %t30+ %t38 =w cnel %t37, 0+ jnz %t38, @lbl1860, @lbl1861+@lbl1860+ %t40 =l add %t30, 8+ %t39 =l loadl %t40+ dbgloc 138+ storel %t39, %t36+ jmp @lbl1862+@lbl1861+ dbgloc 141+ storel 0, %t41+ call $memcpy(l %__ret, l %t41, l 16)+ ret %__ret+@lbl1862+ dbgloc 144+ %t42 =l loadl %t36+ %t43 =l loadl %t8+ %t44 =l copy %t43+ %t45 =l call $bytes__bytes(l %t42, l %t44)+ call $memset(l %t46, w 0, l 16)+ storel 1, %t46+ %t47 =l add %t46, 8+ storel %t45, %t47+ call $memcpy(l %__ret, l %t46, l 16)+ ret %__ret+}++export function w $files__free_buffer(l %b) {+@start+ %t0 =l alloc8 8+ %t6 =l alloc8 8+ dbgloc 147+ storel %b, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "b", "bytes.Bytes", %t0, 8, 5, 147+ dbgloc 148+ %t1 =l loadl %b+ %t2 =l copy 0+ %t3 =w cnel %t1, %t2+ jnz %t3, @lbl1863, @lbl1864+@lbl1863+ dbgloc 149+ %t4 =l loadl %b+ %t5 =l copy %t4+ storel %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "p", "ref ", %t6, 8, 7, 149+ dbgloc 150+ %t8 =l loadl %t6+ call $free(l %t8)+ %t7 =l copy 0+ jmp @lbl1864+@lbl1864+ ret 0+}++export function w $files__write_all(l %p, l %data) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 154+ storel %p, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "p", "str.StringView", %t0, 8, 5, 154+ storel %data, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "data", "bytes.Bytes", %t1, 8, 5, 154+ dbgloc 155+ %t2 =l loadl %data+ %t3 =l copy %t2+ %t5 =l add %data, 8+ %t4 =l loadl %t5+ %t6 =l copy %t4+ %t7 =w call $std__fs__write_all_bytes(l %p, l %t3, l %t6)+ ret %t7+}++export function w $files__append_all(l %p, l %data) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 158+ storel %p, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "p", "str.StringView", %t0, 8, 5, 158+ storel %data, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "data", "bytes.Bytes", %t1, 8, 5, 158+ dbgloc 159+ %t2 =l loadl %data+ %t3 =l copy %t2+ %t5 =l add %data, 8+ %t4 =l loadl %t5+ %t6 =l copy %t4+ %t7 =w call $std__fs__append_all_bytes(l %p, l %t3, l %t6)+ ret %t7+}++export function w $files__mkdir_all(l %p) {+@start+ %t0 =l alloc8 8+ dbgloc 162+ storel %p, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "p", "str.StringView", %t0, 8, 5, 162+ dbgloc 163+ %t1 =w call $std__fs__mkdir_path(l %p)+ ret %t1+}++export function w $files__delete(l %p) {+@start+ %t0 =l alloc8 8+ dbgloc 166+ storel %p, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "p", "str.StringView", %t0, 8, 5, 166+ dbgloc 167+ %t1 =w call $std__fs__delete(l %p)+ ret %t1+}++export function w $files__rename_path(l %oldp, l %newp) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 170+ storel %oldp, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "oldp", "str.StringView", %t0, 8, 5, 170+ storel %newp, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "newp", "str.StringView", %t1, 8, 5, 170+ dbgloc 171+ %t2 =w call $std__fs__rename_path(l %oldp, l %newp)+ ret %t2+}++export function l $files__list_dir(l %p) {+@start+ %t0 =l alloc8 8+ %t2 =l alloc8 8+ %t5 =l alloc8 8+ %t13 =l alloc8 16+ %t14 =l alloc8 8+ %t19 =l alloc8 8+ %t24 =l alloc8 8+ %t27 =l alloc8 16+ %t28 =l alloc8 8+ %t33 =l alloc8 8+ dbgloc 176+ storel %p, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "p", "str.StringView", %t0, 8, 5, 176+ dbgloc 177+ %t1 =l call $lists__new__GENMONO__ref_u8()++ storel %t1, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "out", "list[ref u8]", %t2, 8, 5, 177+ dbgloc 178+ %t3 =l call $files__heap()+ %t4 =l call $std__str__zstr_from__GENMONO__allocators__HeapAllocator(l %t3, l %p)++ storel %t4, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "z", "str.ZString", %t5, 8, 5, 178+ dbgloc 179+ %t6 =l loadl %t4+ %t7 =l copy 0+ %t8 =w ceql %t6, %t7+ jnz %t8, @lbl1866, @lbl1867+@lbl1866+ dbgloc 180+ %t9 =l loadl %t2+ ret %t9+@lbl1867+ dbgloc 182+ %t10 =l copy 4096+ %t11 =l copy %t10+ %t12 =l call $std__allocators__ScopedArena__new(l %t13, l %t11)+ storel %t13, %t14+ call $__sx_dbg_keep(l %t14)+ dbgvar "arena_r", "result[ScopedArenaAllocator, AllocError]", %t14, 8, 5, 182+ dbgloc 183+ %t15 =l loadl %t13+ %t16 =w ceql %t15, 0+ jnz %t16, @lbl1869, @lbl1870+@lbl1869+ %t18 =l add %t13, 8+ %t17 =l loadl %t18+ dbgloc 185+ storel %t17, %t19+ %t22 =l copy 0+ %t23 =w cnel %t19, 0+ jnz %t23, @lbl1872, @lbl1873+@lbl1872+ %t21 =l call $malloc(l 8)+ call $memset(l %t21, w 0, l 8)+ call $memcpy(l %t21, l %t19, l 8)+ %t22 =l copy %t21+@lbl1873+ storel %t22, %t24+ call $__sx_dbg_keep(l %t24)+ dbgvar "la", "allocators.ListArena", %t24, 8, 5, 185+ dbgloc 186+ %t25 =l loadl %t4+ %t26 =l call $std__fs__walk_dir_cstr__GENMONO__allocators__ListArena(l %t27, l %t22, l %t25)++ storel %t27, %t28+ call $__sx_dbg_keep(l %t28)+ dbgvar "names", "option[list[ref u8]]", %t28, 8, 5, 186+ dbgloc 187+ %t29 =l loadl %t27+ %t30 =w cnel %t29, 0+ jnz %t30, @lbl1874, @lbl1875+@lbl1874+ %t32 =l add %t27, 8+ %t31 =l loadl %t32+ dbgloc 188+ storel 0, %t33+ %t34 =l call $sxqbe_list_len(l %t31)+@lbl1877+ %t35 =l loadl %t33+ %t36 =w csltl %t35, %t34+ jnz %t36, @lbl1878, @lbl1879+@lbl1878+ %t37 =l call $sxqbe_list_buf(l %t31)+ %t38 =l mul %t35, 8+ %t39 =l add %t37, %t38+ %t40 =l loadl %t39+ dbgloc 189+ %t42 =l call $sxqbe_list_ensure(l %t2)+ %t43 =l add %t42, 8+ %t44 =l add %t42, 16+ %t45 =l loadl %t43+ %t46 =l loadl %t44+ %t48 =l add %t45, 1+ %t47 =w call $sxqbe_list_grow(l %t42, l %t48)+ %t49 =l call $sxqbe_list_buf(l %t42)+ %t50 =l mul %t45, 8+ %t51 =l add %t49, %t50+ storel %t40, %t51+ %t52 =l add %t45, 1+ storel %t52, %t43+ %t41 =l copy 0+@lbl1880+ %t53 =l add %t35, 1+ storel %t53, %t33+ jmp @lbl1877+@lbl1879+ jmp @lbl1876+@lbl1875+ jmp @lbl1876+@lbl1876+ dbgloc 192+ %t54 =w call $std__allocators__ScopedArena__free(l %t17)+ jmp @lbl1871+@lbl1870+ jmp @lbl1871+@lbl1871+ dbgloc 197+ %t55 =l call $files__heap()+ %t56 =w call $std__str__zstr_free__GENMONO__allocators__HeapAllocator(l %t55, l %t4)++ dbgloc 198+ %t57 =l loadl %t2+ ret %t57+}++export function w $files__free_names(l %names) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t10 =l alloc8 8+ dbgloc 201+ storel %names, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "names", "list[ref u8]", %t0, 8, 5, 201+ dbgloc 202+ storel 0, %t1+ %t2 =l call $sxqbe_list_len(l %names)+@lbl1881+ %t3 =l loadl %t1+ %t4 =w csltl %t3, %t2+ jnz %t4, @lbl1882, @lbl1883+@lbl1882+ %t5 =l call $sxqbe_list_buf(l %names)+ %t6 =l mul %t3, 8+ %t7 =l add %t5, %t6+ %t8 =l loadl %t7+ dbgloc 203+ %t9 =l copy %t8+ storel %t9, %t10+ call $__sx_dbg_keep(l %t10)+ dbgvar "p", "ref ", %t10, 8, 7, 203+ dbgloc 204+ %t12 =l loadl %t10+ call $free(l %t12)+ %t11 =l copy 0+@lbl1884+ %t13 =l add %t3, 1+ storel %t13, %t1+ jmp @lbl1881+@lbl1883+ dbgloc 206+ call $sxqbe_list_free(l %names)+ %t14 =l copy 0+ ret 0+}++export function w $files__name_ends_with(l %name, l %suffix) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t3 =l alloc8 8+ %t5 =l alloc8 8+ %t9 =l alloc8 8+ %t11 =l alloc8 8+ %t22 =l alloc8 8+ %t30 =l alloc8 8+ dbgloc 210+ storel %name, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "name", "ref u8", %t0, 8, 7, 210+ storel %suffix, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "suffix", "ref u8", %t1, 8, 7, 210+ dbgloc 211+ %t2 =l call $sxqbe_strlen(l %name)+ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "nl", "i64", %t3, 8, 5, 211+ dbgloc 212+ %t4 =l call $sxqbe_strlen(l %suffix)+ storel %t4, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "sl", "i64", %t5, 8, 5, 212+ dbgloc 213+ %t6 =w csgtl %t4, %t2+ jnz %t6, @lbl1885, @lbl1886+@lbl1885+ dbgloc 214+ %t7 =l copy 0+ ret %t7+@lbl1886+ dbgloc 216+ %t8 =l sub %t2, %t4+ storel %t8, %t9+ call $__sx_dbg_keep(l %t9)+ dbgvar "off", "i64", %t9, 8, 5, 216+ dbgloc 217+ %t10 =l copy 0+ storel %t10, %t11+ call $__sx_dbg_keep(l %t11)+ dbgvar "i", "i64", %t11, 8, 5, 217+ dbgloc 218+ jmp @lbl1888+@lbl1888+ %t12 =l loadl %t11+ %t13 =w csltl %t12, %t4+ jnz %t13, @lbl1889, @lbl1891+@lbl1889+ dbgloc 219+ %t16 =l loadl %t11+ %t17 =l add %t8, %t16+ %t15 =l add %name, %t17+ %t18 =w loadub %t15+ %t14 =l extsw %t18+ %t19 =w copy %t14+ %t20 =w copy %t19+ %t21 =w extub %t20+ storew %t21, %t22+ call $__sx_dbg_keep(l %t22)+ dbgvar "a", "u8", %t22, 1, 7, 219+ dbgloc 220+ %t25 =l loadl %t11+ %t24 =l add %suffix, %t25+ %t26 =w loadub %t24+ %t23 =l extsw %t26+ %t27 =w copy %t23+ %t28 =w copy %t27+ %t29 =w extub %t28+ storew %t29, %t30+ call $__sx_dbg_keep(l %t30)+ dbgvar "b", "u8", %t30, 1, 7, 220+ dbgloc 221+ %t31 =l extsw %t21+ %t32 =l extsw %t29+ %t33 =w cnew %t31, %t32+ jnz %t33, @lbl1892, @lbl1893+@lbl1892+ dbgloc 222+ %t34 =l copy 0+ ret %t34+@lbl1893+ dbgloc 224+ %t35 =l loadl %t11+ %t36 =l add %t35, 1+ storel %t36, %t11+ jmp @lbl1890+@lbl1890+ jmp @lbl1888+@lbl1891+ dbgloc 226+ %t37 =l copy 1+ ret %t37+}++dbgfile "src/store/layout.sx"+data $layout__FORMAT_TEXT_LEN = { l 13 }+function l $layout__format_text() {+@start+ dbgloc 11+ dbgloc 12+ %t0 =l copy $__str147+ %t1 =l copy 13+ %t2 =l call $bytes__bytes(l %t0, l %t1)+ ret %t2+}++export function l $layout__root_view(l %r) {+@start+ %t0 =l alloc8 8+ dbgloc 19+ storel %r, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "r", "Repo", %t0, 8, 5, 19+ dbgloc 20+ %t1 =l add %r, 0+ %t2 =l loadl %t1+ %t3 =l add %r, 0+ %t5 =l add %t3, 8+ %t4 =l loadl %t5+ %t6 =l copy %t4+ %t7 =l call $std__str__view(l %t2, l %t6)+ ret %t7+}++export function w $layout__free_repo(l %r) {+@start+ %t0 =l alloc8 8+ dbgloc 23+ storel %r, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "r", "Repo", %t0, 8, 5, 23+ dbgloc 24+ %t1 =l add %r, 0+ %t2 =w call $files__free_buffer(l %t1)+ ret 0+}++function l $layout__canonical(l %p) {+@start+ %t0 =l alloc8 8+ dbgloc 27+ storel %p, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "p", "str.StringView", %t0, 8, 5, 27+ dbgloc 28+ %t1 =l call $std__path__canonicalize_path(l %p)+ ret %t1+}++export function l $layout__discover(l %__ret, l %start) {+@start+ %t0 =l alloc8 8+ %t2 =l alloc8 8+ %t7 =l alloc8 8+ %t12 =l alloc4 1+ %t21 =l alloc8 8+ %t24 =l alloc8 16+ %t25 =l alloc8 8+ %t34 =l alloc8 8+ %t39 =l alloc8 8+ %t49 =l alloc8 16+ %t52 =l alloc8 8+ %t58 =l alloc8 8+ %t62 =l alloc8 8+ %t66 =l alloc8 16+ %t73 =l alloc8 8+ %t86 =l alloc8 8+ %t96 =l alloc8 8+ %t99 =l alloc8 16+ %t105 =l alloc8 16+ dbgloc 32+ storel %start, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "start", "str.StringView", %t0, 8, 5, 32+ dbgloc 33+ %t1 =l call $malloc(l 16)+ call $memset(l %t1, w 0, l 16)+ call $memcpy(l %t1, l %start, l 16)+ storel %t1, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "abs", "str.StringView", %t2, 8, 5, 33+ dbgloc 34+ %t3 =l copy 0+ %t4 =l copy 0+ %t5 =l call $std__str__view(l %t3, l %t4)+ %t6 =l call $malloc(l 16)+ call $memset(l %t6, w 0, l 16)+ call $memcpy(l %t6, l %t5, l 16)+ storel %t6, %t7+ call $__sx_dbg_keep(l %t7)+ dbgvar "joined", "str.StringView", %t7, 8, 5, 34+ dbgloc 35+ %t9 =l add %start, 8+ %t8 =l loadl %t9+ %t10 =l copy 0+ %t11 =w csgtl %t8, %t10+ storew %t11, %t12+ jnz %t11, @lbl1895, @lbl1896+@lbl1895+ %t14 =l loadl %start+ %t15 =w loadub %t14+ %t13 =l extsw %t15+ %t16 =l copy 47+ %t17 =w ceql %t13, %t16+ storew %t17, %t12+ jmp @lbl1896+@lbl1896+ %t18 =w loadw %t12+ %t19 =w copy %t18+ %t20 =w extub %t19+ storew %t20, %t21+ call $__sx_dbg_keep(l %t21)+ dbgvar "absolute", "bool", %t21, 1, 7, 35+ dbgloc 36+ %t22 =w ceqw %t20, 0+ jnz %t22, @lbl1897, @lbl1898+@lbl1897+ dbgloc 37+ %t23 =l call $std__fs__cwd_cstr(l %t24)+ storel %t24, %t25+ call $__sx_dbg_keep(l %t25)+ dbgvar "cwd", "option[ref u8]", %t25, 8, 5, 37+ dbgloc 38+ %t26 =l loadl %t24+ %t27 =w cnel %t26, 0+ jnz %t27, @lbl1900, @lbl1901+@lbl1900+ %t29 =l add %t24, 8+ %t28 =l loadl %t29+ dbgloc 39+ %t30 =l call $std__str__from_cstr(l %t28)+ %t31 =l call $files__join(l %t30, l %start)+ storel %t31, %t7+ dbgloc 40+ %t32 =l loadl %t7+ storel %t32, %t2+ dbgloc 41+ %t33 =l copy %t28+ storel %t33, %t34+ call $__sx_dbg_keep(l %t34)+ dbgvar "cp", "ref ", %t34, 8, 7, 41+ dbgloc 42+ %t36 =l loadl %t34+ call $free(l %t36)+ %t35 =l copy 0+ jmp @lbl1902+@lbl1901+ jmp @lbl1902+@lbl1902+ jmp @lbl1898+@lbl1898+ dbgloc 45+ %t37 =l loadl %t2+ %t38 =l call $layout__canonical(l %t37)+ storel %t38, %t39+ call $__sx_dbg_keep(l %t39)+ dbgvar "cpath", "ref u8", %t39, 8, 7, 45+ dbgloc 46+ %t40 =l loadl %t7+ %t41 =l loadl %t40+ %t42 =l copy 0+ %t43 =w cnel %t41, %t42+ jnz %t43, @lbl1903, @lbl1904+@lbl1903+ dbgloc 47+ %t44 =l loadl %t7+ %t45 =w call $files__free_path(l %t44)+ jmp @lbl1904+@lbl1904+ dbgloc 49+ %t46 =l loadl %t39+ %t47 =l copy 0+ %t48 =w ceql %t46, %t47+ jnz %t48, @lbl1906, @lbl1907+@lbl1906+ dbgloc 50+ storel 0, %t49+ call $memcpy(l %__ret, l %t49, l 16)+ ret %__ret+@lbl1907+ dbgloc 52+ jmp @lbl1909+@lbl1909+ jmp @lbl1910+@lbl1910+ dbgloc 53+ %t50 =l loadl %t39+ %t51 =l call $bytes__from_cstr(l %t50)+ storel %t51, %t52+ call $__sx_dbg_keep(l %t52)+ dbgvar "root_b", "bytes.Bytes", %t52, 8, 5, 53+ dbgloc 54+ %t53 =l loadl %t39+ %t55 =l loadl %t39+ %t54 =l call $sxqbe_strlen(l %t55)+ %t56 =l call $std__str__view(l %t53, l %t54)+ %t57 =l call $files__join(l %t56, l $__sv55)+ storel %t57, %t58+ call $__sx_dbg_keep(l %t58)+ dbgvar "marker", "str.StringView", %t58, 8, 5, 54+ dbgloc 55+ %t59 =w call $files__exists_file(l %t57)+ %t60 =w copy %t59+ %t61 =w extub %t60+ storew %t61, %t62+ call $__sx_dbg_keep(l %t62)+ dbgvar "found", "bool", %t62, 1, 7, 55+ dbgloc 56+ %t63 =w call $files__free_path(l %t57)+ dbgloc 57+ jnz %t61, @lbl1913, @lbl1914+@lbl1913+ dbgloc 58+ %t64 =l call $malloc(l 16)+ %t65 =l add %t64, 0+ call $memcpy(l %t65, l %t51, l 16)+ call $memset(l %t66, w 0, l 16)+ storel 1, %t66+ %t67 =l add %t66, 8+ storel %t64, %t67+ call $memcpy(l %__ret, l %t66, l 16)+ ret %__ret+@lbl1914+ dbgloc 60+ %t69 =l loadl %t39+ %t68 =l call $sxqbe_strlen(l %t69)+ %t70 =l copy %t68+ %t71 =l copy 1+ %t72 =l sub %t70, %t71+ storel %t72, %t73+ call $__sx_dbg_keep(l %t73)+ dbgvar "last", "i64", %t73, 8, 5, 60+ dbgloc 61+ jmp @lbl1916+@lbl1916+ %t74 =l loadl %t73+ %t75 =l copy 0+ %t77 =w csltl %t74, %t75+ %t76 =w ceqw %t77, 0+ jnz %t76, @lbl1917, @lbl1919+@lbl1917+ dbgloc 62+ %t80 =l loadl %t39+ %t81 =l loadl %t73+ %t79 =l add %t80, %t81+ %t82 =w loadub %t79+ %t78 =l extsw %t82+ %t83 =w copy %t78+ %t84 =w copy %t83+ %t85 =w extub %t84+ storew %t85, %t86+ call $__sx_dbg_keep(l %t86)+ dbgvar "c", "u8", %t86, 1, 7, 62+ dbgloc 63+ %t87 =w copy 47+ %t88 =w ceqw %t85, %t87+ jnz %t88, @lbl1920, @lbl1921+@lbl1920+ dbgloc 64+ jmp @lbl1919+@lbl1921+ dbgloc 66+ %t89 =l loadl %t73+ %t90 =l sub %t89, 1+ storel %t90, %t73+ jmp @lbl1918+@lbl1918+ jmp @lbl1916+@lbl1919+ dbgloc 68+ %t91 =l loadl %t73+ %t92 =l copy 0+ %t93 =w cslel %t91, %t92+ jnz %t93, @lbl1923, @lbl1924+@lbl1923+ dbgloc 69+ %t94 =l loadl %t39+ %t95 =l copy %t94+ storel %t95, %t96+ call $__sx_dbg_keep(l %t96)+ dbgvar "p", "ref ", %t96, 8, 7, 69+ dbgloc 70+ %t98 =l loadl %t96+ call $free(l %t98)+ %t97 =l copy 0+ dbgloc 71+ storel 0, %t99+ call $memcpy(l %__ret, l %t99, l 16)+ ret %__ret+@lbl1924+ dbgloc 73+ %t102 =l loadl %t39+ %t103 =l loadl %t73+ %t101 =l add %t102, %t103+ %t104 =l copy 0+ storeb %t104, %t101+ %t100 =l copy 0+ jmp @lbl1911+@lbl1911+ jmp @lbl1909+@lbl1912+ dbgloc 75+ storel 0, %t105+ call $memcpy(l %__ret, l %t105, l 16)+ ret %__ret+}++export function l $layout__veins_dir(l %r) {+@start+ %t0 =l alloc8 8+ dbgloc 78+ storel %r, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "r", "Repo", %t0, 8, 5, 78+ dbgloc 79+ %t1 =l call $layout__root_view(l %r)+ %t2 =l call $files__join(l %t1, l $__sv56)+ ret %t2+}++export function l $layout__packs_dir(l %r) {+@start+ %t0 =l alloc8 8+ dbgloc 82+ storel %r, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "r", "Repo", %t0, 8, 5, 82+ dbgloc 83+ %t1 =l call $layout__root_view(l %r)+ %t2 =l call $files__join(l %t1, l $__sv57)+ ret %t2+}++export function l $layout__tmp_dir(l %r) {+@start+ %t0 =l alloc8 8+ dbgloc 86+ storel %r, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "r", "Repo", %t0, 8, 5, 86+ dbgloc 87+ %t1 =l call $layout__root_view(l %r)+ %t2 =l call $files__join(l %t1, l $__sv58)+ ret %t2+}++export function l $layout__op_heads_dir(l %r) {+@start+ %t0 =l alloc8 8+ dbgloc 90+ storel %r, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "r", "Repo", %t0, 8, 5, 90+ dbgloc 91+ %t1 =l call $layout__root_view(l %r)+ %t2 =l call $files__join(l %t1, l $__sv59)+ ret %t2+}++export function l $layout__git_dir(l %r) {+@start+ %t0 =l alloc8 8+ dbgloc 94+ storel %r, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "r", "Repo", %t0, 8, 5, 94+ dbgloc 95+ %t1 =l call $layout__root_view(l %r)+ %t2 =l call $files__join(l %t1, l $__sv60)+ ret %t2+}++export function l $layout__git_map_dir(l %r) {+@start+ %t0 =l alloc8 8+ dbgloc 98+ storel %r, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "r", "Repo", %t0, 8, 5, 98+ dbgloc 99+ %t1 =l call $layout__root_view(l %r)+ %t2 =l call $files__join(l %t1, l $__sv61)+ ret %t2+}++export function l $layout__raw_dir(l %r) {+@start+ %t0 =l alloc8 8+ dbgloc 102+ storel %r, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "r", "Repo", %t0, 8, 5, 102+ dbgloc 103+ %t1 =l call $layout__root_view(l %r)+ %t2 =l call $files__join(l %t1, l $__sv62)+ ret %t2+}++export function l $layout__working_copy_dir(l %r) {+@start+ %t0 =l alloc8 8+ dbgloc 106+ storel %r, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "r", "Repo", %t0, 8, 5, 106+ dbgloc 107+ %t1 =l call $layout__root_view(l %r)+ %t2 =l call $files__join(l %t1, l $__sv63)+ ret %t2+}++export function l $layout__resolutions_dir(l %r) {+@start+ %t0 =l alloc8 8+ dbgloc 110+ storel %r, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "r", "Repo", %t0, 8, 5, 110+ dbgloc 111+ %t1 =l call $layout__root_view(l %r)+ %t2 =l call $files__join(l %t1, l $__sv64)+ ret %t2+}++export function l $layout__config_path(l %r) {+@start+ %t0 =l alloc8 8+ dbgloc 114+ storel %r, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "r", "Repo", %t0, 8, 5, 114+ dbgloc 115+ %t1 =l call $layout__root_view(l %r)+ %t2 =l call $files__join(l %t1, l $__sv65)+ ret %t2+}++export function l $layout__format_path(l %r) {+@start+ %t0 =l alloc8 8+ dbgloc 118+ storel %r, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "r", "Repo", %t0, 8, 5, 118+ dbgloc 119+ %t1 =l call $layout__root_view(l %r)+ %t2 =l call $files__join(l %t1, l $__sv55)+ ret %t2+}++function w $layout__mkdirs_under(l %r, l %sub) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t4 =l alloc8 8+ %t11 =l alloc8 8+ dbgloc 122+ storel %r, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "r", "Repo", %t0, 8, 5, 122+ storel %sub, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "sub", "str.StringView", %t1, 8, 5, 122+ dbgloc 123+ %t2 =l call $layout__root_view(l %r)+ %t3 =l call $files__join(l %t2, l %sub)+ storel %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "p", "str.StringView", %t4, 8, 5, 123+ dbgloc 124+ %t5 =w call $files__exists_dir(l %t3)+ jnz %t5, @lbl1926, @lbl1927+@lbl1926+ dbgloc 125+ %t6 =w call $files__free_path(l %t3)+ dbgloc 126+ %t7 =l copy 1+ ret %t7+@lbl1927+ dbgloc 128+ %t8 =w call $files__mkdir_all(l %t3)+ %t9 =w copy %t8+ %t10 =w extub %t9+ storew %t10, %t11+ call $__sx_dbg_keep(l %t11)+ dbgvar "created", "bool", %t11, 1, 7, 128+ dbgloc 129+ %t12 =w call $files__free_path(l %t3)+ dbgloc 130+ ret %t10+}++function w $layout__migrate_dir(l %r, l %old_sub, l %new_sub) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t5 =l alloc8 8+ %t8 =l alloc8 8+ %t12 =l alloc8 8+ %t16 =l alloc8 8+ %t20 =l alloc8 8+ %t21 =l alloc4 1+ dbgloc 133+ storel %r, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "r", "Repo", %t0, 8, 5, 133+ storel %old_sub, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "old_sub", "str.StringView", %t1, 8, 5, 133+ storel %new_sub, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "new_sub", "str.StringView", %t2, 8, 5, 133+ dbgloc 134+ %t3 =l call $layout__root_view(l %r)+ %t4 =l call $files__join(l %t3, l %old_sub)+ storel %t4, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "oldp", "str.StringView", %t5, 8, 5, 134+ dbgloc 135+ %t6 =l call $layout__root_view(l %r)+ %t7 =l call $files__join(l %t6, l %new_sub)+ storel %t7, %t8+ call $__sx_dbg_keep(l %t8)+ dbgvar "newp", "str.StringView", %t8, 8, 5, 135+ dbgloc 136+ %t9 =w call $files__exists_dir(l %t4)+ %t10 =w copy %t9+ %t11 =w extub %t10+ storew %t11, %t12+ call $__sx_dbg_keep(l %t12)+ dbgvar "old_exists", "bool", %t12, 1, 7, 136+ dbgloc 137+ %t13 =w call $files__exists_dir(l %t7)+ %t14 =w copy %t13+ %t15 =w extub %t14+ storew %t15, %t16+ call $__sx_dbg_keep(l %t16)+ dbgvar "new_exists", "bool", %t16, 1, 7, 137+ dbgloc 138+ %t17 =l copy 1+ %t18 =w copy %t17+ %t19 =w extub %t18+ storew %t19, %t20+ call $__sx_dbg_keep(l %t20)+ dbgvar "moved", "bool", %t20, 1, 7, 138+ dbgloc 139+ storew %t11, %t21+ jnz %t11, @lbl1932, @lbl1933+@lbl1932+ %t22 =w ceqw %t15, 0+ storew %t22, %t21+ jmp @lbl1933+@lbl1933+ %t23 =w loadw %t21+ jnz %t23, @lbl1929, @lbl1930+@lbl1929+ dbgloc 140+ %t24 =w call $files__rename_path(l %t4, l %t7)+ %t25 =w copy %t24+ %t26 =w extub %t25+ storew %t26, %t20+ jmp @lbl1930+@lbl1930+ dbgloc 142+ %t27 =w call $files__free_path(l %t4)+ dbgloc 143+ %t28 =w call $files__free_path(l %t7)+ dbgloc 144+ %t30 =w loadw %t20+ %t29 =l extsw %t30+ ret %t29+}++function w $layout__ensure_layout(l %r) {+@start+ %t0 =l alloc8 8+ dbgloc 147+ storel %r, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "r", "Repo", %t0, 8, 5, 147+ dbgloc 148+ %t1 =w call $layout__migrate_dir(l %r, l $__sv66, l $__sv59)+ %t2 =w ceqw %t1, 0+ jnz %t2, @lbl1934, @lbl1935+@lbl1934+ dbgloc 149+ %t3 =l copy 0+ ret %t3+@lbl1935+ dbgloc 151+ %t4 =w call $layout__migrate_dir(l %r, l $__sv67, l $__sv63)+ %t5 =w ceqw %t4, 0+ jnz %t5, @lbl1937, @lbl1938+@lbl1937+ dbgloc 152+ %t6 =l copy 0+ ret %t6+@lbl1938+ dbgloc 154+ %t7 =w call $layout__mkdirs_under(l %r, l $__sv56)+ %t8 =w ceqw %t7, 0+ jnz %t8, @lbl1940, @lbl1941+@lbl1940+ dbgloc 155+ %t9 =l copy 0+ ret %t9+@lbl1941+ dbgloc 157+ %t10 =w call $layout__mkdirs_under(l %r, l $__sv68)+ %t11 =w ceqw %t10, 0+ jnz %t11, @lbl1943, @lbl1944+@lbl1943+ dbgloc 158+ %t12 =l copy 0+ ret %t12+@lbl1944+ dbgloc 160+ %t13 =w call $layout__mkdirs_under(l %r, l $__sv57)+ %t14 =w ceqw %t13, 0+ jnz %t14, @lbl1946, @lbl1947+@lbl1946+ dbgloc 161+ %t15 =l copy 0+ ret %t15+@lbl1947+ dbgloc 163+ %t16 =w call $layout__mkdirs_under(l %r, l $__sv58)+ %t17 =w ceqw %t16, 0+ jnz %t17, @lbl1949, @lbl1950+@lbl1949+ dbgloc 164+ %t18 =l copy 0+ ret %t18+@lbl1950+ dbgloc 166+ %t19 =w call $layout__mkdirs_under(l %r, l $__sv59)+ %t20 =w ceqw %t19, 0+ jnz %t20, @lbl1952, @lbl1953+@lbl1952+ dbgloc 167+ %t21 =l copy 0+ ret %t21+@lbl1953+ dbgloc 169+ %t22 =w call $layout__mkdirs_under(l %r, l $__sv61)+ %t23 =w ceqw %t22, 0+ jnz %t23, @lbl1955, @lbl1956+@lbl1955+ dbgloc 170+ %t24 =l copy 0+ ret %t24+@lbl1956+ dbgloc 172+ %t25 =w call $layout__mkdirs_under(l %r, l $__sv62)+ %t26 =w ceqw %t25, 0+ jnz %t26, @lbl1958, @lbl1959+@lbl1958+ dbgloc 173+ %t27 =l copy 0+ ret %t27+@lbl1959+ dbgloc 175+ %t28 =w call $layout__mkdirs_under(l %r, l $__sv63)+ %t29 =w ceqw %t28, 0+ jnz %t29, @lbl1961, @lbl1962+@lbl1961+ dbgloc 176+ %t30 =l copy 0+ ret %t30+@lbl1962+ dbgloc 178+ %t31 =w call $layout__mkdirs_under(l %r, l $__sv64)+ %t32 =w ceqw %t31, 0+ jnz %t32, @lbl1964, @lbl1965+@lbl1964+ dbgloc 179+ %t33 =l copy 0+ ret %t33+@lbl1965+ dbgloc 181+ %t34 =l copy 1+ ret %t34+}++export function l $layout__init(l %__ret, l %root) {+@start+ %t0 =l alloc8 8+ %t5 =l alloc8 16+ %t9 =l alloc8 8+ %t12 =l alloc8 16+ %t15 =l alloc8 16+ %t21 =l alloc8 8+ %t23 =l alloc8 8+ %t27 =l alloc8 8+ %t29 =l alloc8 16+ %t30 =l alloc8 8+ %t40 =l alloc8 8+ %t44 =l alloc8 16+ %t48 =l alloc8 16+ %t55 =l alloc8 16+ %t60 =l alloc8 8+ %t65 =l alloc8 8+ %t69 =l alloc8 16+ %t73 =l alloc8 8+ %t77 =l alloc8 8+ %t80 =l alloc8 16+ dbgloc 185+ storel %root, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "root", "str.StringView", %t0, 8, 5, 185+ dbgloc 186+ %t1 =w call $files__exists_dir(l %root)+ %t2 =w ceqw %t1, 0+ jnz %t2, @lbl1967, @lbl1968+@lbl1967+ dbgloc 187+ %t3 =w call $files__mkdir_all(l %root)+ %t4 =w ceqw %t3, 0+ jnz %t4, @lbl1970, @lbl1971+@lbl1970+ dbgloc 188+ call $memset(l %t5, w 0, l 16)+ storel 1, %t5+ %t6 =l copy 12+ %t7 =l add %t5, 8+ storew %t6, %t7+ call $memcpy(l %__ret, l %t5, l 16)+ ret %__ret+@lbl1971+ jmp @lbl1968+@lbl1968+ dbgloc 191+ %t8 =l call $layout__canonical(l %root)+ storel %t8, %t9+ call $__sx_dbg_keep(l %t9)+ dbgvar "cpath", "ref u8", %t9, 8, 7, 191+ dbgloc 192+ %t10 =l copy 0+ %t11 =w ceql %t8, %t10+ jnz %t11, @lbl1973, @lbl1974+@lbl1973+ dbgloc 193+ call $memset(l %t12, w 0, l 16)+ storel 1, %t12+ %t13 =l copy 1+ %t14 =l add %t12, 8+ storew %t13, %t14+ call $memcpy(l %__ret, l %t12, l 16)+ ret %__ret+@lbl1974+ dbgloc 195+ %t16 =l add %t15, 0+ %t17 =l call $bytes__from_cstr(l %t8)+ call $memcpy(l %t16, l %t17, l 16)+ %t19 =l copy 0+ %t20 =w cnel %t15, 0+ jnz %t20, @lbl1976, @lbl1977+@lbl1976+ %t18 =l call $malloc(l 16)+ call $memset(l %t18, w 0, l 16)+ call $memcpy(l %t18, l %t15, l 16)+ %t19 =l copy %t18+@lbl1977+ storel %t19, %t21+ call $__sx_dbg_keep(l %t21)+ dbgvar "repo", "Repo", %t21, 8, 5, 195+ dbgloc 196+ %t22 =l call $layout__format_path(l %t19)+ storel %t22, %t23+ call $__sx_dbg_keep(l %t23)+ dbgvar "format", "str.StringView", %t23, 8, 5, 196+ dbgloc 197+ %t24 =w call $files__exists_file(l %t22)+ %t25 =w copy %t24+ %t26 =w extub %t25+ storew %t26, %t27+ call $__sx_dbg_keep(l %t27)+ dbgvar "had_format", "bool", %t27, 1, 7, 197+ dbgloc 198+ jnz %t26, @lbl1978, @lbl1980+@lbl1978+ dbgloc 199+ %t28 =l call $files__read_all(l %t29, l %t22)+ storel %t29, %t30+ call $__sx_dbg_keep(l %t30)+ dbgvar "existing", "option[bytes.Bytes]", %t30, 8, 5, 199+ dbgloc 200+ %t31 =w call $files__free_path(l %t22)+ dbgloc 201+ %t32 =l loadl %t29+ %t33 =w cnel %t32, 0+ jnz %t33, @lbl1981, @lbl1982+@lbl1981+ %t35 =l add %t29, 8+ %t34 =l loadl %t35+ dbgloc 202+ %t36 =l call $layout__format_text()+ %t37 =w call $bytes__Bytes__eql(l %t34, l %t36)+ %t38 =w copy %t37+ %t39 =w extub %t38+ storew %t39, %t40+ call $__sx_dbg_keep(l %t40)+ dbgvar "same", "bool", %t40, 1, 7, 202+ dbgloc 203+ %t41 =w call $files__free_buffer(l %t34)+ dbgloc 204+ %t42 =w ceqw %t39, 0+ jnz %t42, @lbl1984, @lbl1985+@lbl1984+ dbgloc 205+ %t43 =w call $layout__free_repo(l %t19)+ dbgloc 206+ call $memset(l %t44, w 0, l 16)+ storel 1, %t44+ %t45 =l copy 2+ %t46 =l add %t44, 8+ storew %t45, %t46+ call $memcpy(l %__ret, l %t44, l 16)+ ret %__ret+@lbl1985+ jmp @lbl1983+@lbl1982+ dbgloc 209+ %t47 =w call $layout__free_repo(l %t19)+ dbgloc 210+ call $memset(l %t48, w 0, l 16)+ storel 1, %t48+ %t49 =l copy 3+ %t50 =l add %t48, 8+ storew %t49, %t50+ call $memcpy(l %__ret, l %t48, l 16)+ ret %__ret+@lbl1983+ jmp @lbl1979+@lbl1980+ dbgloc 213+ %t51 =w call $files__free_path(l %t22)+ jmp @lbl1979+@lbl1979+ dbgloc 216+ %t52 =w call $layout__ensure_layout(l %t19)+ %t53 =w ceqw %t52, 0+ jnz %t53, @lbl1987, @lbl1988+@lbl1987+ dbgloc 217+ %t54 =w call $layout__free_repo(l %t19)+ dbgloc 218+ call $memset(l %t55, w 0, l 16)+ storel 1, %t55+ %t56 =l copy 4+ %t57 =l add %t55, 8+ storew %t56, %t57+ call $memcpy(l %__ret, l %t55, l 16)+ ret %__ret+@lbl1988+ dbgloc 221+ %t58 =w ceqw %t26, 0+ jnz %t58, @lbl1990, @lbl1991+@lbl1990+ dbgloc 222+ %t59 =l call $layout__format_path(l %t19)+ storel %t59, %t60+ call $__sx_dbg_keep(l %t60)+ dbgvar "fp", "str.StringView", %t60, 8, 5, 222+ dbgloc 223+ %t61 =l call $layout__format_text()+ %t62 =w call $files__write_all(l %t59, l %t61)+ %t63 =w copy %t62+ %t64 =w extub %t63+ storew %t64, %t65+ call $__sx_dbg_keep(l %t65)+ dbgvar "wrote", "bool", %t65, 1, 7, 223+ dbgloc 224+ %t66 =w call $files__free_path(l %t59)+ dbgloc 225+ %t67 =w ceqw %t64, 0+ jnz %t67, @lbl1993, @lbl1994+@lbl1993+ dbgloc 226+ %t68 =w call $layout__free_repo(l %t19)+ dbgloc 227+ call $memset(l %t69, w 0, l 16)+ storel 1, %t69+ %t70 =l copy 11+ %t71 =l add %t69, 8+ storew %t70, %t71+ call $memcpy(l %__ret, l %t69, l 16)+ ret %__ret+@lbl1994+ jmp @lbl1991+@lbl1991+ dbgloc 231+ %t72 =l call $layout__config_path(l %t19)+ storel %t72, %t73+ call $__sx_dbg_keep(l %t73)+ dbgvar "cp", "str.StringView", %t73, 8, 5, 231+ dbgloc 232+ %t74 =w call $files__exists_file(l %t72)+ %t75 =w ceqw %t74, 0+ jnz %t75, @lbl1996, @lbl1997+@lbl1996+ dbgloc 233+ %t76 =l call $bytes__empty()+ storel %t76, %t77+ call $__sx_dbg_keep(l %t77)+ dbgvar "empty", "bytes.Bytes", %t77, 8, 5, 233+ dbgloc 234+ %t78 =w call $files__write_all(l %t72, l %t76)+ jmp @lbl1997+@lbl1997+ dbgloc 236+ %t79 =w call $files__free_path(l %t72)+ dbgloc 237+ call $memset(l %t80, w 0, l 16)+ storel 0, %t80+ %t81 =l add %t80, 8+ storel %t19, %t81+ call $memcpy(l %__ret, l %t80, l 16)+ ret %__ret+}++dbgfile "src/git/mirror.sx"+function w $mirror__has_git_dir(l %path) {+@start+ %t0 =l alloc8 8+ %t4 =l alloc8 8+ %t8 =l alloc8 8+ dbgloc 10+ storel %path, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "path", "str.StringView", %t0, 8, 5, 10+ dbgloc 11+ %t1 =l copy $__str162+ %t2 =l call $std__str__from_cstr(l %t1)+ %t3 =l call $files__join(l %path, l %t2)+ storel %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "marker", "str.StringView", %t4, 8, 5, 11+ dbgloc 12+ %t5 =w call $files__exists_dir(l %t3)+ %t6 =w copy %t5+ %t7 =w extub %t6+ storew %t7, %t8+ call $__sx_dbg_keep(l %t8)+ dbgvar "dir", "bool", %t8, 1, 7, 12+ dbgloc 13+ %t9 =w call $files__free_path(l %t3)+ dbgloc 14+ ret %t7+}++function w $mirror__is_bare(l %path) {+@start+ %t0 =l alloc8 8+ %t4 =l alloc8 8+ %t8 =l alloc8 8+ %t10 =l alloc4 1+ %t15 =l alloc8 8+ dbgloc 17+ storel %path, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "path", "str.StringView", %t0, 8, 5, 17+ dbgloc 18+ %t1 =l copy $__str163+ %t2 =l call $std__str__from_cstr(l %t1)+ %t3 =l call $files__join(l %path, l %t2)+ storel %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "head", "str.StringView", %t4, 8, 5, 18+ dbgloc 19+ %t5 =l copy $__str164+ %t6 =l call $std__str__from_cstr(l %t5)+ %t7 =l call $files__join(l %path, l %t6)+ storel %t7, %t8+ call $__sx_dbg_keep(l %t8)+ dbgvar "objects", "str.StringView", %t8, 8, 5, 19+ dbgloc 20+ %t9 =w call $files__exists_file(l %t3)+ storew %t9, %t10+ jnz %t9, @lbl1999, @lbl2000+@lbl1999+ %t11 =w call $files__exists_dir(l %t7)+ storew %t11, %t10+ jmp @lbl2000+@lbl2000+ %t12 =w loadw %t10+ %t13 =w copy %t12+ %t14 =w extub %t13+ storew %t14, %t15+ call $__sx_dbg_keep(l %t15)+ dbgvar "success", "bool", %t15, 1, 7, 20+ dbgloc 21+ %t16 =w call $files__free_path(l %t3)+ dbgloc 22+ %t17 =w call $files__free_path(l %t7)+ dbgloc 23+ ret %t14+}++function l $mirror__gitdir_from_file(l %__ret, l %path) {+@start+ %t0 =l alloc8 8+ %t2 =l alloc8 16+ %t3 =l alloc8 8+ %t11 =l alloc8 8+ %t15 =l alloc8 16+ %t20 =l alloc8 8+ %t23 =l alloc8 8+ %t27 =l alloc4 1+ %t34 =l alloc4 1+ %t48 =l alloc8 8+ %t54 =l alloc8 8+ %t59 =l alloc8 8+ %t64 =l alloc4 1+ %t76 =l alloc8 8+ %t84 =l alloc8 8+ %t88 =l alloc8 16+ %t90 =l alloc8 16+ dbgloc 26+ storel %path, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "path", "str.StringView", %t0, 8, 5, 26+ dbgloc 27+ %t1 =l call $files__read_all(l %t2, l %path)+ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "data_opt", "option[bytes.Bytes]", %t3, 8, 5, 27+ dbgloc 28+ %t4 =l loadl %t2+ %t5 =w cnel %t4, 0+ jnz %t5, @lbl2001, @lbl2002+@lbl2001+ %t7 =l add %t2, 8+ %t6 =l loadl %t7+ dbgloc 30+ %t8 =l copy $__str165+ %t9 =l copy 8+ %t10 =l call $bytes__bytes(l %t8, l %t9)+ storel %t10, %t11+ call $__sx_dbg_keep(l %t11)+ dbgvar "prefix", "bytes.Bytes", %t11, 8, 5, 30+ dbgloc 31+ %t12 =w call $bytes__Bytes__starts_with(l %t6, l %t10)+ %t13 =w ceqw %t12, 0+ jnz %t13, @lbl2004, @lbl2005+@lbl2004+ dbgloc 32+ %t14 =w call $files__free_buffer(l %t6)+ dbgloc 33+ storel 0, %t15+ call $memcpy(l %__ret, l %t15, l 16)+ ret %__ret+@lbl2005+ dbgloc 35+ %t16 =l copy 8+ %t18 =l add %t6, 8+ %t17 =l loadl %t18+ %t19 =l call $bytes__Bytes__slice(l %t6, l %t16, l %t17)+ storel %t19, %t20+ call $__sx_dbg_keep(l %t20)+ dbgvar "raw", "bytes.Bytes", %t20, 8, 5, 35+ dbgloc 36+ %t22 =l add %t19, 8+ %t21 =l loadl %t22+ storel %t21, %t23+ call $__sx_dbg_keep(l %t23)+ dbgvar "end", "usize", %t23, 8, 5, 36+ dbgloc 37+ jmp @lbl2007+@lbl2007+ %t24 =l loadl %t23+ %t25 =l copy 0+ %t26 =w csgtl %t24, %t25+ storew %t26, %t27+ jnz %t26, @lbl2011, @lbl2012+@lbl2011+ %t28 =l loadl %t23+ %t29 =l copy 1+ %t30 =l sub %t28, %t29+ %t31 =w call $bytes__Bytes__at(l %t19, l %t30)+ %t32 =w copy 10+ %t33 =w ceqw %t31, %t32+ storew %t33, %t34+ jnz %t33, @lbl2014, @lbl2013+@lbl2013+ %t35 =l loadl %t23+ %t36 =l copy 1+ %t37 =l sub %t35, %t36+ %t38 =w call $bytes__Bytes__at(l %t19, l %t37)+ %t39 =w copy 13+ %t40 =w ceqw %t38, %t39+ storew %t40, %t34+ jmp @lbl2014+@lbl2014+ %t41 =w loadw %t34+ storew %t41, %t27+ jmp @lbl2012+@lbl2012+ %t42 =w loadw %t27+ jnz %t42, @lbl2008, @lbl2010+@lbl2008+ dbgloc 41+ %t43 =l loadl %t23+ %t44 =l sub %t43, 1+ storel %t44, %t23+ jmp @lbl2009+@lbl2009+ jmp @lbl2007+@lbl2010+ dbgloc 43+ %t45 =l copy 0+ %t46 =l loadl %t23+ %t47 =l call $bytes__Bytes__slice(l %t19, l %t45, l %t46)+ storel %t47, %t48+ call $__sx_dbg_keep(l %t48)+ dbgvar "value", "bytes.Bytes", %t48, 8, 5, 43+ dbgloc 44+ %t49 =l loadl %t47+ %t51 =l add %t47, 8+ %t50 =l loadl %t51+ %t52 =l copy %t50+ %t53 =l call $std__str__view(l %t49, l %t52)+ storel %t53, %t54+ call $__sx_dbg_keep(l %t54)+ dbgvar "view", "str.StringView", %t54, 8, 5, 44+ dbgloc 45+ %t55 =l copy 0+ %t56 =l copy 0+ %t57 =l call $std__str__view(l %t55, l %t56)+ %t58 =l call $malloc(l 16)+ call $memset(l %t58, w 0, l 16)+ call $memcpy(l %t58, l %t57, l 16)+ storel %t58, %t59+ call $__sx_dbg_keep(l %t59)+ dbgvar "out", "str.StringView", %t59, 8, 5, 45+ dbgloc 46+ %t61 =l add %t53, 8+ %t60 =l loadl %t61+ %t62 =l copy 0+ %t63 =w csgtl %t60, %t62+ storew %t63, %t64+ jnz %t63, @lbl2018, @lbl2019+@lbl2018+ %t66 =l loadl %t53+ %t67 =w loadub %t66+ %t65 =l extsw %t67+ %t68 =l copy 47+ %t69 =w ceql %t65, %t68+ storew %t69, %t64+ jmp @lbl2019+@lbl2019+ %t70 =w loadw %t64+ jnz %t70, @lbl2015, @lbl2017+@lbl2015+ dbgloc 47+ %t71 =l copy 0+ %t72 =l copy 0+ %t73 =l call $std__str__view(l %t71, l %t72)+ %t74 =l call $files__with_suffix(l %t53, l %t73)+ storel %t74, %t59+ jmp @lbl2016+@lbl2017+ dbgloc 49+ %t75 =l call $files__basename(l %path)+ storel %t75, %t76+ call $__sx_dbg_keep(l %t76)+ dbgvar "parent", "str.StringView", %t76, 8, 5, 49+ dbgloc 50+ %t77 =l loadl %path+ %t79 =l add %path, 8+ %t78 =l loadl %t79+ %t81 =l add %t75, 8+ %t80 =l loadl %t81+ %t82 =l sub %t78, %t80+ %t83 =l call $std__str__view(l %t77, l %t82)+ storel %t83, %t84+ call $__sx_dbg_keep(l %t84)+ dbgvar "parent_path", "str.StringView", %t84, 8, 5, 50+ dbgloc 51+ %t85 =l call $files__join(l %t83, l %t53)+ storel %t85, %t59+ jmp @lbl2016+@lbl2016+ dbgloc 53+ %t86 =w call $files__free_buffer(l %t6)+ dbgloc 54+ %t87 =l loadl %t59+ call $memset(l %t88, w 0, l 16)+ storel 1, %t88+ %t89 =l add %t88, 8+ storel %t87, %t89+ call $memcpy(l %__ret, l %t88, l 16)+ ret %__ret+@lbl2002+ dbgloc 57+ storel 0, %t90+ call $memcpy(l %__ret, l %t90, l 16)+ ret %__ret+@lbl2003+ ret 0+}++export function l $mirror__resolve_source(l %__ret, l %source) {+@start+ %t0 =l alloc8 8+ %t5 =l alloc8 8+ %t7 =l alloc8 16+ %t10 =l alloc8 16+ %t11 =l alloc8 8+ %t14 =l alloc8 16+ %t18 =l alloc8 16+ %t20 =l alloc8 16+ dbgloc 63+ storel %source, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "source", "str.StringView", %t0, 8, 5, 63+ dbgloc 64+ %t1 =w call $mirror__has_git_dir(l %source)+ jnz %t1, @lbl2020, @lbl2021+@lbl2020+ dbgloc 65+ %t2 =l copy $__str162+ %t3 =l call $std__str__from_cstr(l %t2)+ %t4 =l call $files__join(l %source, l %t3)+ storel %t4, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "dotgit", "str.StringView", %t5, 8, 5, 65+ dbgloc 66+ %t6 =w call $files__exists_dir(l %t4)+ jnz %t6, @lbl2023, @lbl2024+@lbl2023+ dbgloc 67+ call $memset(l %t7, w 0, l 16)+ storel 1, %t7+ %t8 =l add %t7, 8+ storel %t4, %t8+ call $memcpy(l %__ret, l %t7, l 16)+ ret %__ret+@lbl2024+ dbgloc 69+ %t9 =l call $mirror__gitdir_from_file(l %t10, l %t4)+ storel %t10, %t11+ call $__sx_dbg_keep(l %t11)+ dbgvar "from_file", "option[str.StringView]", %t11, 8, 5, 69+ dbgloc 70+ %t12 =w call $files__free_path(l %t4)+ dbgloc 71+ call $memcpy(l %__ret, l %t10, l 16)+ ret %__ret+@lbl2021+ dbgloc 73+ %t13 =w call $mirror__is_bare(l %source)+ jnz %t13, @lbl2026, @lbl2027+@lbl2026+ dbgloc 74+ storel 0, %t14+ %t15 =l copy 0+ %t16 =l call $std__str__view(l %t14, l %t15)+ %t17 =l call $files__with_suffix(l %source, l %t16)+ call $memset(l %t18, w 0, l 16)+ storel 1, %t18+ %t19 =l add %t18, 8+ storel %t17, %t19+ call $memcpy(l %__ret, l %t18, l 16)+ ret %__ret+@lbl2027+ dbgloc 76+ storel 0, %t20+ call $memcpy(l %__ret, l %t20, l 16)+ ret %__ret+}++function w $mirror__try_link(l %src, l %dst) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t3 =l alloc8 8+ %t5 =l alloc8 8+ dbgloc 79+ storel %src, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "src", "str.StringView", %t0, 8, 5, 79+ storel %dst, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "dst", "str.StringView", %t1, 8, 5, 79+ dbgloc 80+ %t2 =l loadl %src+ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "s", "ref u8", %t3, 8, 7, 80+ dbgloc 81+ %t4 =l loadl %dst+ storel %t4, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "d", "ref u8", %t5, 8, 7, 81+ dbgloc 82+ %t6 =w call $link(l %t2, l %t4)+ %t7 =w copy 0+ %t8 =w ceqw %t6, %t7+ ret %t8+}++function w $mirror__copy_file_fallback(l %src, l %dst) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t3 =l alloc8 16+ %t4 =l alloc8 8+ %t12 =l alloc8 8+ dbgloc 85+ storel %src, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "src", "str.StringView", %t0, 8, 5, 85+ storel %dst, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "dst", "str.StringView", %t1, 8, 5, 85+ dbgloc 86+ %t2 =l call $files__read_all(l %t3, l %src)+ storel %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "data_opt", "option[bytes.Bytes]", %t4, 8, 5, 86+ dbgloc 87+ %t5 =l loadl %t3+ %t6 =w cnel %t5, 0+ jnz %t6, @lbl2029, @lbl2030+@lbl2029+ %t8 =l add %t3, 8+ %t7 =l loadl %t8+ dbgloc 89+ %t9 =w call $files__write_all(l %dst, l %t7)+ %t10 =w copy %t9+ %t11 =w extub %t10+ storew %t11, %t12+ call $__sx_dbg_keep(l %t12)+ dbgvar "wrote", "bool", %t12, 1, 7, 89+ dbgloc 90+ %t13 =w call $files__free_buffer(l %t7)+ dbgloc 91+ ret %t11+@lbl2030+ dbgloc 94+ %t14 =l copy 0+ ret %t14+@lbl2031+ ret 0+}++function w $mirror__copy_tree(l %src, l %dst) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t8 =l alloc8 8+ %t12 =l alloc8 8+ %t13 =l alloc8 8+ %t22 =l alloc8 8+ %t24 =l alloc8 8+ %t26 =l alloc8 8+ dbgloc 99+ storel %src, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "src", "str.StringView", %t0, 8, 5, 99+ storel %dst, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "dst", "str.StringView", %t1, 8, 5, 99+ dbgloc 100+ %t2 =w call $files__exists_dir(l %dst)+ %t3 =w ceqw %t2, 0+ jnz %t3, @lbl2032, @lbl2033+@lbl2032+ dbgloc 101+ %t4 =w call $files__mkdir_all(l %dst)+ %t5 =w ceqw %t4, 0+ jnz %t5, @lbl2035, @lbl2036+@lbl2035+ dbgloc 102+ %t6 =l copy 0+ ret %t6+@lbl2036+ jmp @lbl2033+@lbl2033+ dbgloc 105+ %t7 =l call $files__list_dir(l %src)+ storel %t7, %t8+ call $__sx_dbg_keep(l %t8)+ dbgvar "names", "list[ref u8]", %t8, 8, 5, 105+ dbgloc 106+ %t9 =l copy 0+ %t10 =w copy %t9+ %t11 =w extub %t10+ storew %t11, %t12+ call $__sx_dbg_keep(l %t12)+ dbgvar "failed", "bool", %t12, 1, 7, 106+ dbgloc 107+ storel 0, %t13+ %t14 =l call $sxqbe_list_len(l %t7)+@lbl2038+ %t15 =l loadl %t13+ %t16 =w csltl %t15, %t14+ jnz %t16, @lbl2039, @lbl2040+@lbl2039+ %t17 =l call $sxqbe_list_buf(l %t7)+ %t18 =l mul %t15, 8+ %t19 =l add %t17, %t18+ %t20 =l loadl %t19+ dbgloc 108+ %t21 =l call $std__str__from_cstr(l %t20)+ storel %t21, %t22+ call $__sx_dbg_keep(l %t22)+ dbgvar "name", "str.StringView", %t22, 8, 5, 108+ dbgloc 109+ %t23 =l call $files__join(l %src, l %t21)+ storel %t23, %t24+ call $__sx_dbg_keep(l %t24)+ dbgvar "s", "str.StringView", %t24, 8, 5, 109+ dbgloc 110+ %t25 =l call $files__join(l %dst, l %t21)+ storel %t25, %t26+ call $__sx_dbg_keep(l %t26)+ dbgvar "d", "str.StringView", %t26, 8, 5, 110+ dbgloc 111+ %t27 =w call $files__exists_dir(l %t23)+ jnz %t27, @lbl2042, @lbl2044+@lbl2042+ dbgloc 112+ %t28 =w call $mirror__copy_tree(l %t23, l %t25)+ %t29 =w ceqw %t28, 0+ jnz %t29, @lbl2047, @lbl2048+@lbl2047+ dbgloc 113+ %t30 =l copy 1+ %t31 =w copy %t30+ %t32 =w extub %t31+ storew %t32, %t12+ jmp @lbl2048+@lbl2048+ jmp @lbl2043+@lbl2044+ %t33 =w call $files__exists_file(l %t23)+ jnz %t33, @lbl2045, @lbl2043+@lbl2045+ dbgloc 116+ %t34 =w call $mirror__try_link(l %t23, l %t25)+ %t35 =w ceqw %t34, 0+ jnz %t35, @lbl2050, @lbl2051+@lbl2050+ dbgloc 117+ %t36 =w call $mirror__copy_file_fallback(l %t23, l %t25)+ %t37 =w ceqw %t36, 0+ jnz %t37, @lbl2053, @lbl2054+@lbl2053+ dbgloc 118+ %t38 =l copy 1+ %t39 =w copy %t38+ %t40 =w extub %t39+ storew %t40, %t12+ jmp @lbl2054+@lbl2054+ jmp @lbl2051+@lbl2051+ jmp @lbl2043+@lbl2043+ dbgloc 122+ %t41 =w call $files__free_path(l %t23)+ dbgloc 123+ %t42 =w call $files__free_path(l %t25)+@lbl2041+ %t43 =l add %t15, 1+ storel %t43, %t13+ jmp @lbl2038+@lbl2040+ dbgloc 125+ %t44 =w call $files__free_names(l %t7)+ dbgloc 126+ %t46 =w loadw %t12+ %t45 =l extsw %t46+ %t47 =w ceqw %t45, 0+ ret %t47+}++export function w $mirror__prepare(l %repo, l %source) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t3 =l alloc8 8+ %t7 =l alloc8 8+ %t11 =l alloc8 8+ %t17 =l alloc8 16+ %t18 =l alloc8 8+ %t23 =l alloc8 8+ %t35 =l alloc8 8+ dbgloc 131+ storel %repo, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "repo", "layout.Repo", %t0, 8, 5, 131+ storel %source, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "source", "str.StringView", %t1, 8, 5, 131+ dbgloc 132+ %t2 =l call $layout__git_dir(l %repo)+ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "target", "str.StringView", %t3, 8, 5, 132+ dbgloc 133+ %t4 =l copy $__str163+ %t5 =l call $std__str__from_cstr(l %t4)+ %t6 =l call $files__join(l %t2, l %t5)+ storel %t6, %t7+ call $__sx_dbg_keep(l %t7)+ dbgvar "head", "str.StringView", %t7, 8, 5, 133+ dbgloc 134+ %t8 =w call $files__exists_file(l %t6)+ %t9 =w copy %t8+ %t10 =w extub %t9+ storew %t10, %t11+ call $__sx_dbg_keep(l %t11)+ dbgvar "already", "bool", %t11, 1, 7, 134+ dbgloc 135+ %t12 =w call $files__free_path(l %t6)+ dbgloc 136+ jnz %t10, @lbl2056, @lbl2057+@lbl2056+ dbgloc 137+ %t13 =w call $files__free_path(l %t2)+ dbgloc 138+ %t14 =l copy 0+ %t15 =w copy %t14+ ret %t15+@lbl2057+ dbgloc 140+ %t16 =l call $mirror__resolve_source(l %t17, l %source)+ storel %t17, %t18+ call $__sx_dbg_keep(l %t18)+ dbgvar "src_opt", "option[str.StringView]", %t18, 8, 5, 140+ dbgloc 141+ %t19 =l copy 0+ %t20 =l copy 0+ %t21 =l call $std__str__view(l %t19, l %t20)+ %t22 =l call $malloc(l 16)+ call $memset(l %t22, w 0, l 16)+ call $memcpy(l %t22, l %t21, l 16)+ storel %t22, %t23+ call $__sx_dbg_keep(l %t23)+ dbgvar "src", "str.StringView", %t23, 8, 5, 141+ dbgloc 142+ %t24 =l loadl %t17+ %t25 =w cnel %t24, 0+ jnz %t25, @lbl2059, @lbl2060+@lbl2059+ %t27 =l add %t17, 8+ %t26 =l loadl %t27+ dbgloc 144+ storel %t26, %t23+ jmp @lbl2061+@lbl2060+ dbgloc 147+ %t28 =w call $files__free_path(l %t2)+ dbgloc 148+ %t29 =l copy 2+ %t30 =w copy %t29+ ret %t30+@lbl2061+ dbgloc 151+ %t31 =l loadl %t23+ %t32 =w call $mirror__copy_tree(l %t31, l %t2)+ %t33 =w copy %t32+ %t34 =w extub %t33+ storew %t34, %t35+ call $__sx_dbg_keep(l %t35)+ dbgvar "success", "bool", %t35, 1, 7, 151+ dbgloc 152+ %t36 =l loadl %t23+ %t37 =w call $files__free_path(l %t36)+ dbgloc 153+ %t38 =w call $files__free_path(l %t2)+ dbgloc 154+ jnz %t34, @lbl2062, @lbl2063+@lbl2062+ dbgloc 155+ %t39 =l copy 0+ %t40 =w copy %t39+ ret %t40+@lbl2063+ dbgloc 157+ %t41 =l copy 3+ %t42 =w copy %t41+ ret %t42+}++dbgfile "spectrelib/time/core.sx"+export function l $std__time__DateTime__new(l %year, l %month, l %day, l %hour, l %minute, l %second, l %millis) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t3 =l alloc8 8+ %t4 =l alloc8 8+ %t5 =l alloc8 8+ %t6 =l alloc8 8+ %t10 =l alloc4 1+ %t18 =l alloc4 1+ %t26 =l alloc4 1+ %t34 =l alloc4 1+ %t42 =l alloc4 1+ %t50 =l alloc4 1+ %t55 =l alloc8 56+ dbgloc 30+ storel %year, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "year", "i64", %t0, 8, 5, 30+ storel %month, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "month", "i64", %t1, 8, 5, 30+ storel %day, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "day", "i64", %t2, 8, 5, 30+ storel %hour, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "hour", "i64", %t3, 8, 5, 30+ storel %minute, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "minute", "i64", %t4, 8, 5, 30+ storel %second, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "second", "i64", %t5, 8, 5, 30+ storel %millis, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "millis", "i64", %t6, 8, 5, 30+ dbgloc 39+ %t7 =l copy 1+ %t9 =w csltl %month, %t7+ %t8 =w ceqw %t9, 0+ storew %t8, %t10+ jnz %t8, @lbl2065, @lbl2066+@lbl2065+ %t11 =l copy 12+ %t12 =w cslel %month, %t11+ storew %t12, %t10+ jmp @lbl2066+@lbl2066+ %t13 =w loadw %t10+ jnz %t13, @lbl2067, @lbl2068+@lbl2068+ %t14 =l copy $__str166+ call $dprintf(w 2, l %t14)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl2067+ %t15 =l copy 1+ %t17 =w csltl %day, %t15+ %t16 =w ceqw %t17, 0+ storew %t16, %t18+ jnz %t16, @lbl2069, @lbl2070+@lbl2069+ %t19 =l copy 31+ %t20 =w cslel %day, %t19+ storew %t20, %t18+ jmp @lbl2070+@lbl2070+ %t21 =w loadw %t18+ jnz %t21, @lbl2071, @lbl2072+@lbl2072+ %t22 =l copy $__str167+ call $dprintf(w 2, l %t22)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl2071+ %t23 =l copy 0+ %t25 =w csltl %hour, %t23+ %t24 =w ceqw %t25, 0+ storew %t24, %t26+ jnz %t24, @lbl2073, @lbl2074+@lbl2073+ %t27 =l copy 23+ %t28 =w cslel %hour, %t27+ storew %t28, %t26+ jmp @lbl2074+@lbl2074+ %t29 =w loadw %t26+ jnz %t29, @lbl2075, @lbl2076+@lbl2076+ %t30 =l copy $__str168+ call $dprintf(w 2, l %t30)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl2075+ %t31 =l copy 0+ %t33 =w csltl %minute, %t31+ %t32 =w ceqw %t33, 0+ storew %t32, %t34+ jnz %t32, @lbl2077, @lbl2078+@lbl2077+ %t35 =l copy 59+ %t36 =w cslel %minute, %t35+ storew %t36, %t34+ jmp @lbl2078+@lbl2078+ %t37 =w loadw %t34+ jnz %t37, @lbl2079, @lbl2080+@lbl2080+ %t38 =l copy $__str169+ call $dprintf(w 2, l %t38)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl2079+ %t39 =l copy 0+ %t41 =w csltl %second, %t39+ %t40 =w ceqw %t41, 0+ storew %t40, %t42+ jnz %t40, @lbl2081, @lbl2082+@lbl2081+ %t43 =l copy 59+ %t44 =w cslel %second, %t43+ storew %t44, %t42+ jmp @lbl2082+@lbl2082+ %t45 =w loadw %t42+ jnz %t45, @lbl2083, @lbl2084+@lbl2084+ %t46 =l copy $__str170+ call $dprintf(w 2, l %t46)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl2083+ %t47 =l copy 0+ %t49 =w csltl %millis, %t47+ %t48 =w ceqw %t49, 0+ storew %t48, %t50+ jnz %t48, @lbl2085, @lbl2086+@lbl2085+ %t51 =l copy 999+ %t52 =w cslel %millis, %t51+ storew %t52, %t50+ jmp @lbl2086+@lbl2086+ %t53 =w loadw %t50+ jnz %t53, @lbl2087, @lbl2088+@lbl2088+ %t54 =l copy $__str171+ call $dprintf(w 2, l %t54)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl2087+ dbgloc 48+ storel %year, %t55+ %t57 =l add %t55, 8+ storel %month, %t57+ %t58 =l add %t55, 16+ storel %day, %t58+ %t59 =l add %t55, 24+ storel %hour, %t59+ %t60 =l add %t55, 32+ storel %minute, %t60+ %t61 =l add %t55, 40+ storel %second, %t61+ %t62 =l add %t55, 48+ storel %millis, %t62+ %t63 =l call $malloc(l 56)+ call $memcpy(l %t63, l %t55, l 56)+ ret %t63+}++export function l $std__time__DateTime__now() {+@start+ %t0 =l alloc8 16+ %t6 =l alloc8 8+ %t12 =l alloc8 8+ %t16 =l alloc8 8+ %t18 =l alloc8 8+ %t25 =l alloc8 8+ %t32 =l alloc8 8+ %t39 =l alloc8 8+ %t46 =l alloc8 8+ %t53 =l alloc8 8+ %t60 =l alloc8 8+ %t63 =l alloc8 8+ dbgloc 61+ dbgloc 62+ %t1 =l copy 0+ storel %t1, %t0+ %t3 =l copy 0+ %t4 =l add %t0, 8+ storel %t3, %t4+ %t5 =l call $malloc(l 16)+ call $memset(l %t5, w 0, l 16)+ call $memcpy(l %t5, l %t0, l 16)+ storel %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "tv", "TimeVal", %t6, 8, 5, 62+ dbgloc 64+ %t7 =l loadl %t6+ %t8 =l copy 0+ %t9 =w call $rt__gettimeofday(l %t7, l %t8)+ dbgloc 66+ %t10 =l loadl %t6+ %t11 =l loadl %t10+ storel %t11, %t12+ call $__sx_dbg_keep(l %t12)+ dbgvar "seconds", "i64", %t12, 8, 5, 66+ dbgloc 67+ %t13 =l loadl %t6+ %t15 =l add %t13, 8+ %t14 =l loadl %t15+ storel %t14, %t16+ call $__sx_dbg_keep(l %t16)+ dbgvar "usecs", "i64", %t16, 8, 5, 67+ dbgloc 68+ %t17 =l call $rt__localtime(l %t12)+ storel %t17, %t18+ call $__sx_dbg_keep(l %t18)+ dbgvar "tm", "ref ", %t18, 8, 7, 68+ dbgloc 70+ %t21 =l copy 20+ %t20 =l add %t17, %t21+ %t19 =l loadl %t20+ %t22 =l copy 4294967295+ %t23 =l and %t19, %t22+ %t24 =l copy %t23+ storel %t24, %t25+ call $__sx_dbg_keep(l %t25)+ dbgvar "year", "i64", %t25, 8, 5, 70+ dbgloc 71+ %t28 =l copy 16+ %t27 =l add %t17, %t28+ %t26 =l loadl %t27+ %t29 =l copy 4294967295+ %t30 =l and %t26, %t29+ %t31 =l copy %t30+ storel %t31, %t32+ call $__sx_dbg_keep(l %t32)+ dbgvar "month", "i64", %t32, 8, 5, 71+ dbgloc 72+ %t35 =l copy 12+ %t34 =l add %t17, %t35+ %t33 =l loadl %t34+ %t36 =l copy 4294967295+ %t37 =l and %t33, %t36+ %t38 =l copy %t37+ storel %t38, %t39+ call $__sx_dbg_keep(l %t39)+ dbgvar "day", "i64", %t39, 8, 5, 72+ dbgloc 73+ %t42 =l copy 8+ %t41 =l add %t17, %t42+ %t40 =l loadl %t41+ %t43 =l copy 4294967295+ %t44 =l and %t40, %t43+ %t45 =l copy %t44+ storel %t45, %t46+ call $__sx_dbg_keep(l %t46)+ dbgvar "hour", "i64", %t46, 8, 5, 73+ dbgloc 74+ %t49 =l copy 4+ %t48 =l add %t17, %t49+ %t47 =l loadl %t48+ %t50 =l copy 4294967295+ %t51 =l and %t47, %t50+ %t52 =l copy %t51+ storel %t52, %t53+ call $__sx_dbg_keep(l %t53)+ dbgvar "minute", "i64", %t53, 8, 5, 74+ dbgloc 75+ %t56 =l copy 0+ %t55 =l add %t17, %t56+ %t54 =l loadl %t55+ %t57 =l copy 4294967295+ %t58 =l and %t54, %t57+ %t59 =l copy %t58+ storel %t59, %t60+ call $__sx_dbg_keep(l %t60)+ dbgvar "second", "i64", %t60, 8, 5, 75+ dbgloc 76+ %t61 =l copy 1000+ %t62 =l div %t14, %t61+ storel %t62, %t63+ call $__sx_dbg_keep(l %t63)+ dbgvar "millis", "i64", %t63, 8, 5, 76+ dbgloc 78+ %t64 =l copy 1900+ %t65 =l add %t24, %t64+ %t66 =l copy 1+ %t67 =l add %t31, %t66+ %t68 =l call $std__time__DateTime__new(l %t65, l %t67, l %t38, l %t45, l %t52, l %t59, l %t62)+ ret %t68+}++export function l $std__time__unix_now() {+@start+ %t0 =l alloc8 16+ %t6 =l alloc8 8+ %t12 =l alloc8 8+ dbgloc 82+ dbgloc 83+ %t1 =l copy 0+ storel %t1, %t0+ %t3 =l copy 0+ %t4 =l add %t0, 8+ storel %t3, %t4+ %t5 =l call $malloc(l 16)+ call $memset(l %t5, w 0, l 16)+ call $memcpy(l %t5, l %t0, l 16)+ storel %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "tv", "TimeVal", %t6, 8, 5, 83+ dbgloc 84+ %t7 =l loadl %t6+ %t8 =l copy 0+ %t9 =w call $rt__gettimeofday(l %t7, l %t8)+ dbgloc 85+ %t10 =l loadl %t6+ %t11 =l loadl %t10+ storel %t11, %t12+ call $__sx_dbg_keep(l %t12)+ dbgvar "seconds", "i64", %t12, 8, 5, 85+ dbgloc 86+ ret %t11+}++export function l $std__time__unix_now_millis() {+@start+ %t0 =l alloc8 16+ %t6 =l alloc8 8+ %t20 =l alloc8 8+ dbgloc 90+ dbgloc 91+ %t1 =l copy 0+ storel %t1, %t0+ %t3 =l copy 0+ %t4 =l add %t0, 8+ storel %t3, %t4+ %t5 =l call $malloc(l 16)+ call $memset(l %t5, w 0, l 16)+ call $memcpy(l %t5, l %t0, l 16)+ storel %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "tv", "TimeVal", %t6, 8, 5, 91+ dbgloc 92+ %t7 =l loadl %t6+ %t8 =l copy 0+ %t9 =w call $rt__gettimeofday(l %t7, l %t8)+ dbgloc 93+ %t10 =l loadl %t6+ %t11 =l loadl %t10+ %t12 =l copy 1000+ %t13 =l mul %t11, %t12+ %t14 =l loadl %t6+ %t16 =l add %t14, 8+ %t15 =l loadl %t16+ %t17 =l copy 1000+ %t18 =l div %t15, %t17+ %t19 =l add %t13, %t18+ storel %t19, %t20+ call $__sx_dbg_keep(l %t20)+ dbgvar "millis", "i64", %t20, 8, 5, 93+ dbgloc 94+ ret %t19+}++export function l $std__time__unix_now_micros() {+@start+ %t0 =l alloc8 16+ %t6 =l alloc8 8+ %t18 =l alloc8 8+ dbgloc 98+ dbgloc 99+ %t1 =l copy 0+ storel %t1, %t0+ %t3 =l copy 0+ %t4 =l add %t0, 8+ storel %t3, %t4+ %t5 =l call $malloc(l 16)+ call $memset(l %t5, w 0, l 16)+ call $memcpy(l %t5, l %t0, l 16)+ storel %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "tv", "TimeVal", %t6, 8, 5, 99+ dbgloc 100+ %t7 =l loadl %t6+ %t8 =l copy 0+ %t9 =w call $rt__gettimeofday(l %t7, l %t8)+ dbgloc 101+ %t10 =l loadl %t6+ %t11 =l loadl %t10+ %t12 =l copy 1000000+ %t13 =l mul %t11, %t12+ %t14 =l loadl %t6+ %t16 =l add %t14, 8+ %t15 =l loadl %t16+ %t17 =l add %t13, %t15+ storel %t17, %t18+ call $__sx_dbg_keep(l %t18)+ dbgvar "micros", "i64", %t18, 8, 5, 101+ dbgloc 102+ ret %t17+}++export function l $std__time__now_ns() {+@start+ %t0 =l alloc8 16+ %t6 =l alloc8 8+ dbgloc 107+ dbgloc 108+ %t1 =l copy 0+ storel %t1, %t0+ %t3 =l copy 0+ %t4 =l add %t0, 8+ storel %t3, %t4+ %t5 =l call $malloc(l 16)+ call $memset(l %t5, w 0, l 16)+ call $memcpy(l %t5, l %t0, l 16)+ storel %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "tv", "TimeVal", %t6, 8, 5, 108+ dbgloc 109+ %t7 =l loadl %t6+ %t8 =l copy 0+ %t9 =w call $rt__gettimeofday(l %t7, l %t8)+ dbgloc 110+ %t10 =l loadl %t6+ %t11 =l loadl %t10+ %t12 =l copy 1000000000+ %t13 =l mul %t11, %t12+ %t14 =l loadl %t6+ %t16 =l add %t14, 8+ %t15 =l loadl %t16+ %t17 =l copy 1000+ %t18 =l mul %t15, %t17+ %t19 =l add %t13, %t18+ ret %t19+}++export function w $std__time__sleep_millis(l %ms) {+@start+ %t0 =l alloc8 8+ %t7 =l alloc8 8+ dbgloc 114+ storel %ms, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "ms", "i64", %t0, 8, 5, 114+ dbgloc 115+ %t1 =l copy 0+ %t3 =w csltl %ms, %t1+ %t2 =w ceqw %t3, 0+ jnz %t2, @lbl2089, @lbl2090+@lbl2090+ %t4 =l copy $__str172+ call $dprintf(w 2, l %t4)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl2089+ dbgloc 119+ dbgloc 120+ %t5 =l copy 1000+ %t6 =l mul %ms, %t5+ storel %t6, %t7+ call $__sx_dbg_keep(l %t7)+ dbgvar "remaining_us", "i64", %t7, 8, 5, 120+ dbgloc 121+ jmp @lbl2091+@lbl2091+ jmp @lbl2092+@lbl2092+ dbgloc 122+ %t8 =l loadl %t7+ %t9 =l copy 0+ %t10 =w cslel %t8, %t9+ jnz %t10, @lbl2095, @lbl2096+@lbl2095+ dbgloc 123+ jmp @lbl2094+@lbl2096+ dbgloc 125+ %t11 =l loadl %t7+ %t12 =l copy 4294967295+ %t13 =w csgtl %t11, %t12+ jnz %t13, @lbl2098, @lbl2100+@lbl2098+ dbgloc 126+ %t14 =l copy 4294967295+ %t15 =w call $rt__usleep(w %t14)+ dbgloc 127+ %t16 =l copy 4294967295+ %t17 =l loadl %t7+ %t18 =l sub %t17, %t16+ storel %t18, %t7+ jmp @lbl2099+@lbl2100+ dbgloc 129+ %t19 =l loadl %t7+ %t20 =w call $rt__usleep(w %t19)+ dbgloc 130+ jmp @lbl2094+@lbl2099+ jmp @lbl2093+@lbl2093+ jmp @lbl2091+@lbl2094+ dbgloc 135+ ret 0+}++export function l $std__time__DateTime__year(l %dt) {+@start+ %t0 =l alloc8 8+ dbgloc 153+ storel %dt, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "dt", "DateTime", %t0, 8, 5, 153+ dbgloc 154+ %t1 =l loadl %dt+ ret %t1+}++export function l $std__time__DateTime__month(l %dt) {+@start+ %t0 =l alloc8 8+ dbgloc 158+ storel %dt, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "dt", "DateTime", %t0, 8, 5, 158+ dbgloc 159+ %t2 =l add %dt, 8+ %t1 =l loadl %t2+ ret %t1+}++export function l $std__time__DateTime__day(l %dt) {+@start+ %t0 =l alloc8 8+ dbgloc 163+ storel %dt, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "dt", "DateTime", %t0, 8, 5, 163+ dbgloc 164+ %t2 =l add %dt, 16+ %t1 =l loadl %t2+ ret %t1+}++export function l $std__time__DateTime__hour(l %dt) {+@start+ %t0 =l alloc8 8+ dbgloc 168+ storel %dt, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "dt", "DateTime", %t0, 8, 5, 168+ dbgloc 169+ %t2 =l add %dt, 24+ %t1 =l loadl %t2+ ret %t1+}++export function l $std__time__DateTime__minute(l %dt) {+@start+ %t0 =l alloc8 8+ dbgloc 173+ storel %dt, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "dt", "DateTime", %t0, 8, 5, 173+ dbgloc 174+ %t2 =l add %dt, 32+ %t1 =l loadl %t2+ ret %t1+}++export function l $std__time__DateTime__second(l %dt) {+@start+ %t0 =l alloc8 8+ dbgloc 178+ storel %dt, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "dt", "DateTime", %t0, 8, 5, 178+ dbgloc 179+ %t2 =l add %dt, 40+ %t1 =l loadl %t2+ ret %t1+}++export function l $std__time__DateTime__millis(l %dt) {+@start+ %t0 =l alloc8 8+ dbgloc 183+ storel %dt, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "dt", "DateTime", %t0, 8, 5, 183+ dbgloc 184+ %t2 =l add %dt, 48+ %t1 =l loadl %t2+ ret %t1+}++export function l $std__time__DateTime__to_unix(l %dt) {+@start+ %t0 =l alloc8 8+ %t2 =l alloc8 8+ %t4 =l alloc8 8+ %t6 =l alloc8 8+ %t8 =l alloc8 8+ %t10 =l alloc8 8+ %t12 =l alloc8 8+ %t15 =l alloc8 8+ %t20 =l alloc8 8+ %t24 =l alloc8 8+ %t34 =l alloc8 8+ %t39 =l alloc8 8+ dbgloc 189+ storel %dt, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "dt", "DateTime", %t0, 8, 5, 189+ dbgloc 190+ %t1 =l call $std__time__DateTime__year(l %dt)+ storel %t1, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "y", "i64", %t2, 8, 5, 190+ dbgloc 191+ %t3 =l call $std__time__DateTime__month(l %dt)+ storel %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "mo", "i64", %t4, 8, 5, 191+ dbgloc 192+ %t5 =l call $std__time__DateTime__day(l %dt)+ storel %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "d", "i64", %t6, 8, 5, 192+ dbgloc 193+ %t7 =l call $std__time__DateTime__hour(l %dt)+ storel %t7, %t8+ call $__sx_dbg_keep(l %t8)+ dbgvar "h", "i64", %t8, 8, 5, 193+ dbgloc 194+ %t9 =l call $std__time__DateTime__minute(l %dt)+ storel %t9, %t10+ call $__sx_dbg_keep(l %t10)+ dbgvar "mi", "i64", %t10, 8, 5, 194+ dbgloc 195+ %t11 =l call $std__time__DateTime__second(l %dt)+ storel %t11, %t12+ call $__sx_dbg_keep(l %t12)+ dbgvar "s", "i64", %t12, 8, 5, 195+ dbgloc 196+ %t13 =l copy 1970+ %t14 =l sub %t1, %t13+ storel %t14, %t15+ call $__sx_dbg_keep(l %t15)+ dbgvar "years_since", "i64", %t15, 8, 5, 196+ dbgloc 197+ %t16 =l copy 1+ %t17 =l sub %t14, %t16+ %t18 =l copy 4+ %t19 =l div %t17, %t18+ storel %t19, %t20+ call $__sx_dbg_keep(l %t20)+ dbgvar "leap_days", "i64", %t20, 8, 5, 197+ dbgloc 198+ %t21 =l copy 365+ %t22 =l mul %t14, %t21+ %t23 =l add %t22, %t19+ storel %t23, %t24+ call $__sx_dbg_keep(l %t24)+ dbgvar "days_in_year", "i64", %t24, 8, 5, 198+ dbgloc 199+ %t25 =l copy 1+ %t26 =l sub %t3, %t25+ %t27 =l copy 30+ %t28 =l mul %t26, %t27+ %t29 =l copy 1+ %t30 =l sub %t3, %t29+ %t31 =l copy 2+ %t32 =l div %t30, %t31+ %t33 =l add %t28, %t32+ storel %t33, %t34+ call $__sx_dbg_keep(l %t34)+ dbgvar "month_days", "i64", %t34, 8, 5, 199+ dbgloc 200+ %t35 =l add %t23, %t33+ %t36 =l copy 1+ %t37 =l sub %t5, %t36+ %t38 =l add %t35, %t37+ storel %t38, %t39+ call $__sx_dbg_keep(l %t39)+ dbgvar "total_days", "i64", %t39, 8, 5, 200+ dbgloc 201+ %t40 =l copy 86400+ %t41 =l mul %t38, %t40+ %t42 =l copy 3600+ %t43 =l mul %t7, %t42+ %t44 =l add %t41, %t43+ %t45 =l copy 60+ %t46 =l mul %t9, %t45+ %t47 =l add %t44, %t46+ %t48 =l add %t47, %t11+ ret %t48+}++export function w $std__time__DateTime__is_leap_year(l %dt) {+@start+ %t0 =l alloc8 8+ %t2 =l alloc8 8+ dbgloc 205+ storel %dt, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "dt", "DateTime", %t0, 8, 5, 205+ dbgloc 206+ %t1 =l call $std__time__DateTime__year(l %dt)+ storel %t1, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "y", "i64", %t2, 8, 5, 206+ dbgloc 207+ %t3 =l copy 400+ %t4 =l rem %t1, %t3+ %t5 =l copy 0+ %t6 =w ceql %t4, %t5+ jnz %t6, @lbl2101, @lbl2102+@lbl2101+ dbgloc 208+ %t7 =l copy 1+ ret %t7+@lbl2102+ dbgloc 210+ %t8 =l copy 100+ %t9 =l rem %t1, %t8+ %t10 =l copy 0+ %t11 =w ceql %t9, %t10+ jnz %t11, @lbl2104, @lbl2105+@lbl2104+ dbgloc 211+ %t12 =l copy 0+ ret %t12+@lbl2105+ dbgloc 213+ %t13 =l copy 4+ %t14 =l rem %t1, %t13+ %t15 =l copy 0+ %t16 =w ceql %t14, %t15+ ret %t16+}++export function l $std__time__DateTime__days_in_month(l %dt) {+@start+ %t0 =l alloc8 8+ %t2 =l alloc8 8+ %t6 =l alloc8 8+ %t13 =l alloc4 1+ %t17 =l alloc4 1+ %t21 =l alloc4 1+ dbgloc 217+ storel %dt, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "dt", "DateTime", %t0, 8, 5, 217+ dbgloc 218+ %t1 =l call $std__time__DateTime__month(l %dt)+ storel %t1, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "mo", "i64", %t2, 8, 5, 218+ dbgloc 219+ %t3 =w call $std__time__DateTime__is_leap_year(l %dt)+ %t4 =w copy %t3+ %t5 =w extub %t4+ storew %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "leap", "bool", %t6, 1, 7, 219+ dbgloc 221+ %t7 =l copy 2+ %t8 =w ceql %t1, %t7+ jnz %t8, @lbl2107, @lbl2108+@lbl2107+ dbgloc 222+ jnz %t5, @lbl2110, @lbl2111+@lbl2110+ dbgloc 223+ %t9 =l copy 29+ ret %t9+@lbl2111+ dbgloc 225+ %t10 =l copy 28+ ret %t10+@lbl2108+ dbgloc 227+ %t11 =l copy 4+ %t12 =w ceql %t1, %t11+ storew %t12, %t13+ jnz %t12, @lbl2117, @lbl2116+@lbl2116+ %t14 =l copy 6+ %t15 =w ceql %t1, %t14+ storew %t15, %t13+ jmp @lbl2117+@lbl2117+ %t16 =w loadw %t13+ storew %t16, %t17+ jnz %t16, @lbl2119, @lbl2118+@lbl2118+ %t18 =l copy 9+ %t19 =w ceql %t1, %t18+ storew %t19, %t17+ jmp @lbl2119+@lbl2119+ %t20 =w loadw %t17+ storew %t20, %t21+ jnz %t20, @lbl2121, @lbl2120+@lbl2120+ %t22 =l copy 11+ %t23 =w ceql %t1, %t22+ storew %t23, %t21+ jmp @lbl2121+@lbl2121+ %t24 =w loadw %t21+ jnz %t24, @lbl2113, @lbl2114+@lbl2113+ dbgloc 228+ %t25 =l copy 30+ ret %t25+@lbl2114+ dbgloc 230+ %t26 =l copy 31+ ret %t26+}++export function w $std__time__DateTime__equals(l %a, l %b) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t3 =l alloc8 8+ %t5 =l alloc8 8+ %t9 =l alloc8 8+ %t11 =l alloc8 8+ %t15 =l alloc8 8+ %t17 =l alloc8 8+ %t21 =l alloc8 8+ %t23 =l alloc8 8+ %t27 =l alloc8 8+ %t29 =l alloc8 8+ %t33 =l alloc8 8+ %t35 =l alloc8 8+ dbgloc 234+ storel %a, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "a", "DateTime", %t0, 8, 5, 234+ storel %b, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "b", "DateTime", %t1, 8, 5, 234+ dbgloc 235+ %t2 =l call $std__time__DateTime__year(l %a)+ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "ay", "i64", %t3, 8, 5, 235+ dbgloc 236+ %t4 =l call $std__time__DateTime__year(l %b)+ storel %t4, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "by", "i64", %t5, 8, 5, 236+ dbgloc 237+ %t6 =w cnel %t2, %t4+ jnz %t6, @lbl2122, @lbl2123+@lbl2122+ dbgloc 238+ %t7 =l copy 0+ ret %t7+@lbl2123+ dbgloc 241+ %t8 =l call $std__time__DateTime__month(l %a)+ storel %t8, %t9+ call $__sx_dbg_keep(l %t9)+ dbgvar "amo", "i64", %t9, 8, 5, 241+ dbgloc 242+ %t10 =l call $std__time__DateTime__month(l %b)+ storel %t10, %t11+ call $__sx_dbg_keep(l %t11)+ dbgvar "bmo", "i64", %t11, 8, 5, 242+ dbgloc 243+ %t12 =w cnel %t8, %t10+ jnz %t12, @lbl2125, @lbl2126+@lbl2125+ dbgloc 244+ %t13 =l copy 0+ ret %t13+@lbl2126+ dbgloc 247+ %t14 =l call $std__time__DateTime__day(l %a)+ storel %t14, %t15+ call $__sx_dbg_keep(l %t15)+ dbgvar "ad", "i64", %t15, 8, 5, 247+ dbgloc 248+ %t16 =l call $std__time__DateTime__day(l %b)+ storel %t16, %t17+ call $__sx_dbg_keep(l %t17)+ dbgvar "bd", "i64", %t17, 8, 5, 248+ dbgloc 249+ %t18 =w cnel %t14, %t16+ jnz %t18, @lbl2128, @lbl2129+@lbl2128+ dbgloc 250+ %t19 =l copy 0+ ret %t19+@lbl2129+ dbgloc 253+ %t20 =l call $std__time__DateTime__hour(l %a)+ storel %t20, %t21+ call $__sx_dbg_keep(l %t21)+ dbgvar "ah", "i64", %t21, 8, 5, 253+ dbgloc 254+ %t22 =l call $std__time__DateTime__hour(l %b)+ storel %t22, %t23+ call $__sx_dbg_keep(l %t23)+ dbgvar "bh", "i64", %t23, 8, 5, 254+ dbgloc 255+ %t24 =w cnel %t20, %t22+ jnz %t24, @lbl2131, @lbl2132+@lbl2131+ dbgloc 256+ %t25 =l copy 0+ ret %t25+@lbl2132+ dbgloc 259+ %t26 =l call $std__time__DateTime__minute(l %a)+ storel %t26, %t27+ call $__sx_dbg_keep(l %t27)+ dbgvar "ami", "i64", %t27, 8, 5, 259+ dbgloc 260+ %t28 =l call $std__time__DateTime__minute(l %b)+ storel %t28, %t29+ call $__sx_dbg_keep(l %t29)+ dbgvar "bmi", "i64", %t29, 8, 5, 260+ dbgloc 261+ %t30 =w cnel %t26, %t28+ jnz %t30, @lbl2134, @lbl2135+@lbl2134+ dbgloc 262+ %t31 =l copy 0+ ret %t31+@lbl2135+ dbgloc 265+ %t32 =l call $std__time__DateTime__second(l %a)+ storel %t32, %t33+ call $__sx_dbg_keep(l %t33)+ dbgvar "as_", "i64", %t33, 8, 5, 265+ dbgloc 266+ %t34 =l call $std__time__DateTime__second(l %b)+ storel %t34, %t35+ call $__sx_dbg_keep(l %t35)+ dbgvar "bs_", "i64", %t35, 8, 5, 266+ dbgloc 267+ %t36 =w ceql %t32, %t34+ ret %t36+}++export function w $std__time__DateTime__before(l %a, l %b) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t3 =l alloc8 8+ %t5 =l alloc8 8+ dbgloc 271+ storel %a, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "a", "DateTime", %t0, 8, 5, 271+ storel %b, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "b", "DateTime", %t1, 8, 5, 271+ dbgloc 272+ %t2 =l call $std__time__DateTime__to_unix(l %a)+ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "ua", "i64", %t3, 8, 5, 272+ dbgloc 273+ %t4 =l call $std__time__DateTime__to_unix(l %b)+ storel %t4, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "ub", "i64", %t5, 8, 5, 273+ dbgloc 274+ %t6 =w csltl %t2, %t4+ ret %t6+}++export function w $std__time__DateTime__after(l %a, l %b) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t3 =l alloc8 8+ %t5 =l alloc8 8+ dbgloc 278+ storel %a, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "a", "DateTime", %t0, 8, 5, 278+ storel %b, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "b", "DateTime", %t1, 8, 5, 278+ dbgloc 279+ %t2 =l call $std__time__DateTime__to_unix(l %a)+ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "ua", "i64", %t3, 8, 5, 279+ dbgloc 280+ %t4 =l call $std__time__DateTime__to_unix(l %b)+ storel %t4, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "ub", "i64", %t5, 8, 5, 280+ dbgloc 281+ %t6 =w csgtl %t2, %t4+ ret %t6+}++export function l $std__time__DateTime__diff_seconds(l %a, l %b) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t3 =l alloc8 8+ %t5 =l alloc8 8+ dbgloc 285+ storel %a, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "a", "DateTime", %t0, 8, 5, 285+ storel %b, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "b", "DateTime", %t1, 8, 5, 285+ dbgloc 286+ %t2 =l call $std__time__DateTime__to_unix(l %a)+ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "ua", "i64", %t3, 8, 5, 286+ dbgloc 287+ %t4 =l call $std__time__DateTime__to_unix(l %b)+ storel %t4, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "ub", "i64", %t5, 8, 5, 287+ dbgloc 288+ %t6 =l sub %t2, %t4+ ret %t6+}++dbgfile "spectrelib/crypto/random.sx"+export function w $std__random__random_bytes(l %buf, l %len) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t3 =l alloc8 8+ %t14 =l alloc8 8+ dbgloc 20+ storel %buf, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "buf", "ref ", %t0, 8, 7, 20+ storel %len, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "len", "usize", %t1, 8, 5, 20+ dbgloc 21+ dbgloc 22+ %t2 =l copy 0+ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "total", "usize", %t3, 8, 5, 22+ dbgloc 23+ jmp @lbl2137+@lbl2137+ jmp @lbl2138+@lbl2138+ dbgloc 24+ %t4 =l loadl %t3+ %t6 =w csltl %t4, %len+ %t5 =w ceqw %t6, 0+ jnz %t5, @lbl2141, @lbl2142+@lbl2141+ dbgloc 25+ jmp @lbl2140+@lbl2142+ dbgloc 27+ %t8 =l loadl %t3+ %t9 =l copy %t8+ %t7 =l add %buf, %t9+ %t10 =l loadl %t3+ %t11 =l sub %len, %t10+ %t12 =l copy 0+ %t13 =l call $rt__getrandom(l %t7, l %t11, w %t12)+ storel %t13, %t14+ call $__sx_dbg_keep(l %t14)+ dbgvar "n", "isize", %t14, 8, 5, 27+ dbgloc 28+ %t15 =l copy 0+ %t16 =w cslel %t13, %t15+ jnz %t16, @lbl2144, @lbl2145+@lbl2144+ dbgloc 29+ jmp @lbl2140+@lbl2145+ dbgloc 31+ %t17 =l loadl %t3+ %t18 =l copy %t13+ %t19 =l add %t17, %t18+ storel %t19, %t3+ jmp @lbl2139+@lbl2139+ jmp @lbl2137+@lbl2140+ ret 0+}++export function l $std__random__random_u64() {+@start+ %t2 =l alloc8 8+ %t8 =l alloc8 8+ dbgloc 60+ dbgloc 61+ %t1 =l copy 8+ %t0 =l call $malloc(l %t1)+ storel %t0, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "buf", "ref ", %t2, 8, 7, 61+ dbgloc 62+ %t3 =l copy 8+ %t4 =l copy %t3+ %t5 =w call $std__random__random_bytes(l %t0, l %t4)+ dbgloc 63+ %t6 =l loadl %t0+ %t7 =l copy %t6+ storel %t7, %t8+ call $__sx_dbg_keep(l %t8)+ dbgvar "result", "u64", %t8, 8, 7, 63+ dbgloc 64+ call $free(l %t0)+ %t9 =l copy 0+ dbgloc 65+ ret %t7+}++export function w $std__random__random_u32_below(w %upper_bound) {+@start+ %t0 =l alloc8 8+ %t20 =l alloc8 8+ %t23 =l alloc8 8+ %t29 =l alloc8 8+ dbgloc 70+ storew %upper_bound, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "upper_bound", "u32", %t0, 4, 7, 70+ dbgloc 71+ %t1 =w copy 1+ %t2 =w cslew %upper_bound, %t1+ jnz %t2, @lbl2147, @lbl2148+@lbl2147+ dbgloc 72+ %t3 =l copy 0+ %t4 =w copy %t3+ ret %t4+@lbl2148+ dbgloc 74+ %t5 =l copy 4294967295+ %t6 =l extsw %t5+ %t7 =l extsw %upper_bound+ %t9 =l extsw %t6+ %t10 =l extsw %t7+ %t8 =l rem %t9, %t10+ %t11 =l extsw %t8+ %t12 =l copy 1+ %t14 =l extsw %t11+ %t13 =l add %t14, %t12+ %t15 =l extsw %upper_bound+ %t17 =l extsw %t15+ %t16 =l rem %t13, %t17+ %t18 =w copy %t16+ %t19 =w copy %t18+ storew %t19, %t20+ call $__sx_dbg_keep(l %t20)+ dbgvar "threshold", "u32", %t20, 4, 7, 74+ dbgloc 75+ jmp @lbl2150+@lbl2150+ jmp @lbl2151+@lbl2151+ dbgloc 76+ %t22 =l copy 4+ %t21 =l call $malloc(l %t22)+ storel %t21, %t23+ call $__sx_dbg_keep(l %t23)+ dbgvar "buf", "ref ", %t23, 8, 7, 76+ dbgloc 77+ %t24 =l copy 4+ %t25 =l copy %t24+ %t26 =w call $std__random__random_bytes(l %t21, l %t25)+ dbgloc 78+ %t27 =l loadl %t21+ %t28 =w copy %t27+ storew %t28, %t29+ call $__sx_dbg_keep(l %t29)+ dbgvar "r", "u32", %t29, 4, 7, 78+ dbgloc 79+ call $free(l %t21)+ %t30 =l copy 0+ dbgloc 80+ %t31 =l extsw %t28+ %t32 =l extsw %t19+ %t34 =w csltw %t31, %t32+ %t33 =w ceqw %t34, 0+ jnz %t33, @lbl2154, @lbl2155+@lbl2154+ dbgloc 81+ %t35 =l extsw %t28+ %t36 =l extsw %upper_bound+ %t38 =l extsw %t35+ %t39 =l extsw %t36+ %t37 =l rem %t38, %t39+ ret %t37+@lbl2155+ jmp @lbl2152+@lbl2152+ jmp @lbl2150+@lbl2153+ dbgloc 84+ %t40 =l copy 0+ %t41 =w copy %t40+ ret %t41+}++export function l $std__random__random_uuid() {+@start+ %t2 =l alloc8 8+ %t8 =l alloc8 8+ %t13 =l alloc8 8+ %t18 =l alloc8 8+ %t23 =l alloc8 8+ %t27 =l alloc8 8+ dbgloc 91+ dbgloc 92+ %t1 =l copy 16+ %t0 =l call $malloc(l %t1)+ storel %t0, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "rnd", "ref ", %t2, 8, 7, 92+ dbgloc 93+ %t3 =l copy 16+ %t4 =l copy %t3+ %t5 =w call $std__random__random_bytes(l %t0, l %t4)+ dbgloc 95+ %t6 =l loadl %t0+ %t7 =l copy %t6+ storel %t7, %t8+ call $__sx_dbg_keep(l %t8)+ dbgvar "hi", "u64", %t8, 8, 7, 95+ dbgloc 96+ %t11 =l copy 8+ %t10 =l add %t0, %t11+ %t9 =l loadl %t10+ %t12 =l copy %t9+ storel %t12, %t13+ call $__sx_dbg_keep(l %t13)+ dbgvar "lo", "u64", %t13, 8, 7, 96+ dbgloc 97+ %t14 =l copy -61441+ %t15 =l and %t7, %t14+ %t16 =l copy 16384+ %t17 =l or %t15, %t16+ storel %t17, %t18+ call $__sx_dbg_keep(l %t18)+ dbgvar "hi_v", "u64", %t18, 8, 7, 97+ dbgloc 98+ %t19 =l copy 4611686018427387903+ %t20 =l and %t12, %t19+ %t21 =l copy -9223372036854775808+ %t22 =l or %t20, %t21+ storel %t22, %t23+ call $__sx_dbg_keep(l %t23)+ dbgvar "lo_v", "u64", %t23, 8, 7, 98+ dbgloc 99+ %t25 =l copy 37+ %t24 =l call $malloc(l %t25)+ %t26 =l copy %t24+ storel %t26, %t27+ call $__sx_dbg_keep(l %t27)+ dbgvar "out", "ref u8", %t27, 8, 7, 99+ dbgloc 101+ %t29 =l copy 37+ %t30 =l copy $__str173+ %t31 =l copy 32+ %t32 =l shr %t17, %t31+ %t33 =l copy 4294967295+ %t34 =l and %t32, %t33+ %t35 =l copy 16+ %t36 =l shr %t17, %t35+ %t37 =l copy 65535+ %t38 =l and %t36, %t37+ %t39 =l copy 65535+ %t40 =l and %t17, %t39+ %t41 =l copy 48+ %t42 =l shr %t22, %t41+ %t43 =l copy 65535+ %t44 =l and %t42, %t43+ %t45 =l copy 281474976710655+ %t46 =l and %t22, %t45+ %t28 =w call $snprintf(l %t26, l %t29, l %t30, ..., l %t34, l %t38, l %t40, l %t44, l %t46)+ %t47 =l extsw %t28+ dbgloc 108+ call $free(l %t0)+ %t48 =l copy 0+ dbgloc 109+ ret %t26+}++dbgfile "src/core/primitives.sx"+data $prim__MAX_NAME_LEN = { l 4096 }+data $prim__MAX_PATH_LEN = { l 65536 }+data $prim__MAX_MESSAGE_LEN = { l 16777216 }+data $prim__MAX_OBJECT_BODY = { l 67108864 }+data $prim__MAX_CHUNK_LEN = { l 262144 }+data $prim__MAX_MANIFEST_ENTRIES = { l 1024 }+data $prim__MAX_TREE_ENTRIES = { l 1000000 }+data $prim__MAX_CONFLICT_TERMS = { l 64 }+data $prim__INLINE_THRESHOLD = { l 16384 }+dbgfile "src/core/buf.sx"+data $buf__INITIAL_CAPACITY = { l 64 }+export function l $buf__new(l %capacity) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t9 =l alloc8 8+ %t13 =l alloc8 24+ dbgloc 17+ storel %capacity, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "capacity", "usize", %t0, 8, 5, 17+ dbgloc 18+ storel %capacity, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "cap", "usize", %t1, 8, 5, 18+ dbgloc 19+ %t2 =l loadl %t1+ %t3 =l copy 64+ %t4 =w csltl %t2, %t3+ jnz %t4, @lbl2157, @lbl2158+@lbl2157+ dbgloc 20+ %t5 =l copy 64+ storel %t5, %t1+ jmp @lbl2158+@lbl2158+ dbgloc 22+ %t7 =l loadl %t1+ %t6 =l call $malloc(l %t7)+ %t8 =l copy %t6+ storel %t8, %t9+ call $__sx_dbg_keep(l %t9)+ dbgvar "p", "ref u8", %t9, 8, 7, 22+ dbgloc 23+ %t10 =l copy 0+ %t11 =w cnel %t8, %t10+ jnz %t11, @lbl2160, @lbl2161+@lbl2161+ %t12 =l copy $__str174+ call $dprintf(w 2, l %t12)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl2160+ dbgloc 24+ storel %t8, %t13+ %t15 =l copy 0+ %t16 =l add %t13, 8+ storel %t15, %t16+ %t17 =l loadl %t1+ %t18 =l add %t13, 16+ storel %t17, %t18+ %t19 =l call $malloc(l 24)+ call $memcpy(l %t19, l %t13, l 24)+ ret %t19+}++export function w $buf__Buf__free(l %b) {+@start+ %t0 =l alloc8 8+ dbgloc 27+ storel %b, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "b", "Buf", %t0, 8, 5, 27+ dbgloc 28+ %t1 =l loadl %t0+ %t2 =l loadl %t1+ %t3 =l copy 0+ %t4 =w cnel %t2, %t3+ jnz %t4, @lbl2162, @lbl2163+@lbl2162+ dbgloc 29+ dbgloc 30+ %t6 =l loadl %t0+ %t7 =l loadl %t6+ %t8 =l copy %t7+ call $free(l %t8)+ %t5 =l copy 0+ jmp @lbl2163+@lbl2163+ dbgloc 33+ %t9 =l copy 0+ %t10 =l loadl %t0+ storel %t9, %t10+ dbgloc 34+ %t11 =l copy 0+ %t12 =l loadl %t0+ %t13 =l add %t12, 8+ storel %t11, %t13+ dbgloc 35+ %t14 =l copy 0+ %t15 =l loadl %t0+ %t16 =l add %t15, 16+ storel %t14, %t16+ ret 0+}++export function l $buf__Buf__view(l %b) {+@start+ %t0 =l alloc8 8+ dbgloc 38+ storel %b, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "b", "Buf", %t0, 8, 5, 38+ dbgloc 39+ %t1 =l loadl %b+ %t3 =l add %b, 8+ %t2 =l loadl %t3+ %t4 =l call $bytes__bytes(l %t1, l %t2)+ ret %t4+}++export function w $buf__Buf__reset(l %b) {+@start+ %t0 =l alloc8 8+ dbgloc 42+ storel %b, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "b", "Buf", %t0, 8, 5, 42+ dbgloc 43+ %t1 =l copy 0+ %t2 =l loadl %t0+ %t3 =l add %t2, 8+ storel %t1, %t3+ ret 0+}++export function w $buf__Buf__reserve(l %b, l %extra) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t6 =l alloc8 8+ %t14 =l alloc8 8+ %t25 =l alloc8 8+ dbgloc 46+ storel %b, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "b", "Buf", %t0, 8, 5, 46+ storel %extra, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "extra", "usize", %t1, 8, 5, 46+ dbgloc 47+ %t2 =l loadl %t0+ %t4 =l add %t2, 8+ %t3 =l loadl %t4+ %t5 =l add %t3, %extra+ storel %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "need", "usize", %t6, 8, 5, 47+ dbgloc 48+ %t7 =l loadl %t0+ %t9 =l add %t7, 16+ %t8 =l loadl %t9+ %t10 =w cslel %t5, %t8+ jnz %t10, @lbl2165, @lbl2166+@lbl2165+ dbgloc 49+ ret 0+@lbl2166+ dbgloc 51+ %t11 =l loadl %t0+ %t13 =l add %t11, 16+ %t12 =l loadl %t13+ storel %t12, %t14+ call $__sx_dbg_keep(l %t14)+ dbgvar "cap", "usize", %t14, 8, 5, 51+ dbgloc 52+ jmp @lbl2168+@lbl2168+ %t15 =l loadl %t14+ %t16 =w csltl %t15, %t5+ jnz %t16, @lbl2169, @lbl2171+@lbl2169+ dbgloc 53+ %t17 =l loadl %t14+ %t18 =l copy 2+ %t19 =l mul %t17, %t18+ storel %t19, %t14+ jmp @lbl2170+@lbl2170+ jmp @lbl2168+@lbl2171+ dbgloc 55+ dbgloc 56+ %t21 =l loadl %t0+ %t22 =l loadl %t21+ %t23 =l copy %t22+ %t24 =l loadl %t14+ %t20 =l call $realloc(l %t23, l %t24)+ storel %t20, %t25+ call $__sx_dbg_keep(l %t25)+ dbgvar "p", "ref ", %t25, 8, 7, 56+ dbgloc 57+ %t26 =l copy 0+ %t27 =w cnel %t20, %t26+ jnz %t27, @lbl2172, @lbl2173+@lbl2173+ %t28 =l copy $__str175+ call $dprintf(w 2, l %t28)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl2172+ dbgloc 58+ %t29 =l copy %t20+ %t30 =l loadl %t0+ storel %t29, %t30+ dbgloc 59+ %t31 =l loadl %t14+ %t32 =l loadl %t0+ %t33 =l add %t32, 16+ storel %t31, %t33+ ret 0+}++export function w $buf__Buf__put_u8(l %b, w %v) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 63+ storel %b, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "b", "Buf", %t0, 8, 5, 63+ storew %v, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "v", "u8", %t1, 1, 7, 63+ dbgloc 64+ %t2 =l loadl %t0+ %t3 =l copy 1+ %t4 =w call $buf__Buf__reserve(l %t2, l %t3)+ dbgloc 65+ dbgloc 66+ %t7 =l loadl %t0+ %t8 =l loadl %t7+ %t9 =l loadl %t0+ %t11 =l add %t9, 8+ %t10 =l loadl %t11+ %t12 =l copy %t10+ %t6 =l add %t8, %t12+ storeb %v, %t6+ %t5 =l copy 0+ dbgloc 68+ %t13 =l loadl %t0+ %t15 =l add %t13, 8+ %t14 =l loadl %t15+ %t16 =l add %t14, 1+ %t17 =l loadl %t0+ %t18 =l add %t17, 8+ storel %t16, %t18+ ret 0+}++export function w $buf__Buf__put_u16_le(l %b, w %v) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 71+ storel %b, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "b", "Buf", %t0, 8, 5, 71+ storew %v, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "v", "u16", %t1, 2, 7, 71+ dbgloc 72+ %t2 =l loadl %t0+ %t3 =l extsw %v+ %t4 =l copy 255+ %t6 =l extsw %t3+ %t5 =l and %t6, %t4+ %t7 =w call $buf__Buf__put_u8(l %t2, w %t5)+ dbgloc 73+ %t8 =l loadl %t0+ %t9 =l extsw %v+ %t10 =l copy 8+ %t12 =l extuw %t9+ %t11 =l shr %t12, %t10+ %t13 =l copy 255+ %t14 =l and %t11, %t13+ %t15 =w call $buf__Buf__put_u8(l %t8, w %t14)+ ret 0+}++export function w $buf__Buf__put_u32_le(l %b, w %v) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 76+ storel %b, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "b", "Buf", %t0, 8, 5, 76+ storew %v, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "v", "u32", %t1, 4, 7, 76+ dbgloc 77+ %t2 =l loadl %t0+ %t3 =l copy 4+ %t4 =w call $buf__Buf__reserve(l %t2, l %t3)+ dbgloc 78+ dbgloc 79+ %t7 =l loadl %t0+ %t8 =l loadl %t7+ %t9 =l loadl %t0+ %t11 =l add %t9, 8+ %t10 =l loadl %t11+ %t12 =l copy %t10+ %t6 =l add %t8, %t12+ storew %v, %t6+ %t5 =l copy 0+ dbgloc 81+ %t13 =l copy 4+ %t14 =l loadl %t0+ %t16 =l add %t14, 8+ %t15 =l loadl %t16+ %t17 =l add %t15, %t13+ %t18 =l loadl %t0+ %t19 =l add %t18, 8+ storel %t17, %t19+ ret 0+}++export function w $buf__Buf__put_u64_le(l %b, l %v) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 84+ storel %b, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "b", "Buf", %t0, 8, 5, 84+ storel %v, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "v", "u64", %t1, 8, 7, 84+ dbgloc 85+ %t2 =l loadl %t0+ %t3 =l copy 8+ %t4 =w call $buf__Buf__reserve(l %t2, l %t3)+ dbgloc 86+ dbgloc 87+ %t7 =l loadl %t0+ %t8 =l loadl %t7+ %t9 =l loadl %t0+ %t11 =l add %t9, 8+ %t10 =l loadl %t11+ %t12 =l copy %t10+ %t6 =l add %t8, %t12+ storel %v, %t6+ %t5 =l copy 0+ dbgloc 89+ %t13 =l copy 8+ %t14 =l loadl %t0+ %t16 =l add %t14, 8+ %t15 =l loadl %t16+ %t17 =l add %t15, %t13+ %t18 =l loadl %t0+ %t19 =l add %t18, 8+ storel %t17, %t19+ ret 0+}++export function w $buf__Buf__put_i16_le(l %b, w %v) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 92+ storel %b, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "b", "Buf", %t0, 8, 5, 92+ storew %v, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "v", "i16", %t1, 2, 5, 92+ dbgloc 93+ %t2 =l loadl %t0+ %t3 =w call $buf__Buf__put_u16_le(l %t2, w %v)+ ret 0+}++export function w $buf__Buf__put_i64_le(l %b, l %v) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 96+ storel %b, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "b", "Buf", %t0, 8, 5, 96+ storel %v, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "v", "i64", %t1, 8, 5, 96+ dbgloc 97+ %t2 =l loadl %t0+ %t3 =l copy %v+ %t4 =w call $buf__Buf__put_u64_le(l %t2, l %t3)+ ret 0+}++export function w $buf__Buf__put_raw(l %b, l %p, l %n) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ dbgloc 100+ storel %b, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "b", "Buf", %t0, 8, 5, 100+ storel %p, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "p", "ref u8", %t1, 8, 7, 100+ storel %n, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "n", "usize", %t2, 8, 5, 100+ dbgloc 101+ %t3 =l copy 0+ %t4 =w ceql %n, %t3+ jnz %t4, @lbl2174, @lbl2175+@lbl2174+ dbgloc 102+ ret 0+@lbl2175+ dbgloc 104+ %t5 =l loadl %t0+ %t6 =w call $buf__Buf__reserve(l %t5, l %n)+ dbgloc 105+ dbgloc 106+ %t9 =l loadl %t0+ %t10 =l loadl %t9+ %t11 =l loadl %t0+ %t13 =l add %t11, 8+ %t12 =l loadl %t13+ %t14 =l copy %t12+ %t8 =l add %t10, %t14+ %t15 =l copy %p+ call $memcpy(l %t8, l %t15, l %n)+ %t7 =l copy 0+ dbgloc 108+ %t16 =l loadl %t0+ %t18 =l add %t16, 8+ %t17 =l loadl %t18+ %t19 =l add %t17, %n+ %t20 =l loadl %t0+ %t21 =l add %t20, 8+ storel %t19, %t21+ ret 0+}++export function w $buf__Buf__put_bytes(l %b, l %v) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 111+ storel %b, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "b", "Buf", %t0, 8, 5, 111+ storel %v, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "v", "bytes.Bytes", %t1, 8, 5, 111+ dbgloc 112+ %t2 =l loadl %t0+ %t3 =l loadl %v+ %t5 =l add %v, 8+ %t4 =l loadl %t5+ %t6 =w call $buf__Buf__put_raw(l %t2, l %t3, l %t4)+ ret 0+}++export function w $buf__Buf__put_varint(l %b, l %value) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t8 =l alloc8 8+ dbgloc 115+ storel %b, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "b", "Buf", %t0, 8, 5, 115+ storel %value, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "value", "u64", %t1, 8, 7, 115+ dbgloc 116+ storel %value, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "v", "u64", %t2, 8, 7, 116+ dbgloc 117+ jmp @lbl2177+@lbl2177+ jmp @lbl2178+@lbl2178+ dbgloc 118+ %t3 =l loadl %t2+ %t4 =l copy 127+ %t5 =l and %t3, %t4+ %t6 =w copy %t5+ %t7 =w extub %t6+ storew %t7, %t8+ call $__sx_dbg_keep(l %t8)+ dbgvar "low", "u8", %t8, 1, 7, 118+ dbgloc 119+ %t9 =l loadl %t2+ %t10 =l copy 7+ %t11 =l shr %t9, %t10+ storel %t11, %t2+ dbgloc 120+ %t12 =l loadl %t2+ %t13 =l copy 0+ %t14 =w ceql %t12, %t13+ jnz %t14, @lbl2181, @lbl2182+@lbl2181+ dbgloc 121+ %t15 =l loadl %t0+ %t16 =w call $buf__Buf__put_u8(l %t15, w %t7)+ dbgloc 122+ jmp @lbl2180+@lbl2182+ dbgloc 124+ %t17 =l loadl %t0+ %t18 =l extsw %t7+ %t19 =l copy 128+ %t21 =l extsw %t18+ %t20 =l or %t21, %t19+ %t23 =w copy %t20+ %t22 =w call $buf__Buf__put_u8(l %t17, w %t23)+ jmp @lbl2179+@lbl2179+ jmp @lbl2177+@lbl2180+ ret 0+}++export function w $buf__Buf__put_length_prefixed(l %b, l %v) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 128+ storel %b, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "b", "Buf", %t0, 8, 5, 128+ storel %v, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "v", "bytes.Bytes", %t1, 8, 5, 128+ dbgloc 129+ %t2 =l loadl %t0+ %t4 =l add %v, 8+ %t3 =l loadl %t4+ %t5 =l copy %t3+ %t6 =w call $buf__Buf__put_varint(l %t2, l %t5)+ dbgloc 130+ %t7 =l loadl %t0+ %t8 =w call $buf__Buf__put_bytes(l %t7, l %v)+ ret 0+}++export function w $buf__Buf__put_opt_id(l %b, l %p) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 133+ storel %b, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "b", "Buf", %t0, 8, 5, 133+ storel %p, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "p", "ref u8", %t1, 8, 7, 133+ dbgloc 134+ %t2 =l copy 0+ %t3 =w ceql %p, %t2+ jnz %t3, @lbl2184, @lbl2185+@lbl2184+ dbgloc 135+ %t4 =l loadl %t0+ %t5 =l copy 0+ %t7 =w copy %t5+ %t6 =w call $buf__Buf__put_u8(l %t4, w %t7)+ dbgloc 136+ ret 0+@lbl2185+ dbgloc 138+ %t8 =l loadl %t0+ %t9 =l copy 1+ %t11 =w copy %t9+ %t10 =w call $buf__Buf__put_u8(l %t8, w %t11)+ dbgloc 139+ %t12 =l loadl %t0+ %t13 =l copy 32+ %t14 =w call $buf__Buf__put_raw(l %t12, l %p, l %t13)+ ret 0+}++export function w $buf__Buf__put_id(l %b, l %p) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 142+ storel %b, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "b", "Buf", %t0, 8, 5, 142+ storel %p, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "p", "ref u8", %t1, 8, 7, 142+ dbgloc 143+ %t2 =l copy 0+ %t3 =w cnel %p, %t2+ jnz %t3, @lbl2187, @lbl2188+@lbl2188+ %t4 =l copy $__str176+ call $dprintf(w 2, l %t4)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl2187+ dbgloc 146+ %t5 =l loadl %t0+ %t6 =l copy 32+ %t7 =w call $buf__Buf__put_raw(l %t5, l %p, l %t6)+ ret 0+}++export function w $buf__Buf__put_sig(l %b, l %v) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 149+ storel %b, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "b", "Buf", %t0, 8, 5, 149+ storel %v, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "v", "prim.Sig", %t1, 8, 5, 149+ dbgloc 150+ %t2 =l loadl %t0+ %t3 =l add %v, 0+ %t4 =w call $buf__Buf__put_length_prefixed(l %t2, l %t3)+ dbgloc 151+ %t5 =l loadl %t0+ %t6 =l add %v, 16+ %t7 =w call $buf__Buf__put_length_prefixed(l %t5, l %t6)+ dbgloc 152+ %t8 =l loadl %t0+ %t10 =l add %v, 32+ %t9 =l loadl %t10+ %t11 =w call $buf__Buf__put_i64_le(l %t8, l %t9)+ dbgloc 153+ %t12 =l loadl %t0+ %t14 =l add %v, 40+ %t13 =l loadsh %t14+ %t15 =w call $buf__Buf__put_i16_le(l %t12, w %t13)+ ret 0+}++export function w $buf__Buf__put_time_ms(l %b, l %v) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 156+ storel %b, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "b", "Buf", %t0, 8, 5, 156+ storel %v, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "v", "prim.TimeMs", %t1, 8, 5, 156+ dbgloc 157+ %t2 =l loadl %t0+ %t3 =l loadl %v+ %t4 =w call $buf__Buf__put_i64_le(l %t2, l %t3)+ dbgloc 158+ %t5 =l loadl %t0+ %t7 =l add %v, 8+ %t6 =l loadsh %t7+ %t8 =w call $buf__Buf__put_i16_le(l %t5, w %t6)+ ret 0+}++export function w $buf__Buf__put_kv(l %b, l %v) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 161+ storel %b, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "b", "Buf", %t0, 8, 5, 161+ storel %v, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "v", "prim.KeyValue", %t1, 8, 5, 161+ dbgloc 162+ %t2 =l loadl %t0+ %t3 =l add %v, 0+ %t4 =w call $buf__Buf__put_length_prefixed(l %t2, l %t3)+ dbgloc 163+ %t5 =l loadl %t0+ %t6 =l add %v, 16+ %t7 =w call $buf__Buf__put_length_prefixed(l %t5, l %t6)+ ret 0+}++dbgfile "src/crypto/blake3.sx"+data $b3__IV__data = { l 1779033703, l 3144134277, l 1013904242, l 2773480762, l 1359893119, l 2600822924, l 528734635, l 1541459225 }+data $b3__IV__hdr = { l $b3__IV__data, l 8, l 8 }+data $b3__IV = { l $b3__IV__hdr }+data $b3__MSG__data = { l 0, l 1, l 2, l 3, l 4, l 5, l 6, l 7, l 8, l 9, l 10, l 11, l 12, l 13, l 14, l 15, l 2, l 6, l 3, l 10, l 7, l 0, l 4, l 13, l 1, l 11, l 12, l 5, l 9, l 14, l 15, l 8, l 3, l 4, l 10, l 12, l 13, l 2, l 7, l 14, l 6, l 5, l 9, l 0, l 11, l 15, l 8, l 1, l 10, l 7, l 12, l 9, l 14, l 3, l 13, l 15, l 4, l 0, l 11, l 2, l 5, l 8, l 1, l 6, l 12, l 13, l 9, l 11, l 15, l 10, l 14, l 8, l 7, l 2, l 5, l 3, l 0, l 1, l 6, l 4, l 9, l 14, l 11, l 5, l 8, l 12, l 15, l 1, l 13, l 3, l 0, l 10, l 2, l 6, l 4, l 7, l 11, l 15, l 5, l 0, l 1, l 9, l 8, l 6, l 14, l 10, l 2, l 12, l 3, l 4, l 7, l 13 }+data $b3__MSG__hdr = { l $b3__MSG__data, l 112, l 112 }+data $b3__MSG = { l $b3__MSG__hdr }+data $b3__CHUNK_START = { l 1 }+data $b3__CHUNK_END = { l 2 }+data $b3__PARENT = { l 4 }+data $b3__ROOT = { l 8 }+data $b3__MAX_STACK_DEPTH = { l 54 }+function l $b3__mask32(l %x) {+@start+ %t0 =l alloc8 8+ dbgloc 30+ storel %x, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "x", "u64", %t0, 8, 7, 30+ dbgloc 31+ %t1 =l copy 4294967295+ %t2 =l and %x, %t1+ ret %t2+}++function l $b3__rotr(l %x, l %n) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t3 =l alloc8 8+ dbgloc 34+ storel %x, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "x", "u64", %t0, 8, 7, 34+ storel %n, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "n", "u64", %t1, 8, 7, 34+ dbgloc 35+ %t2 =l call $b3__mask32(l %x)+ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "v", "u64", %t3, 8, 7, 35+ dbgloc 36+ %t4 =l shr %t2, %n+ %t5 =l copy 32+ %t6 =l sub %t5, %n+ %t7 =l shl %t2, %t6+ %t8 =l or %t4, %t7+ %t9 =l call $b3__mask32(l %t8)+ ret %t9+}++function l $b3__ldw(l %p, l %i) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 39+ storel %p, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "p", "ref u64", %t0, 8, 7, 39+ storel %i, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "i", "usize", %t1, 8, 5, 39+ dbgloc 40+ %t4 =l copy 8+ %t5 =l mul %i, %t4+ %t6 =l copy %t5+ %t3 =l add %p, %t6+ %t2 =l loadl %t3+ %t7 =l copy %t2+ ret %t7+}++function w $b3__stw(l %p, l %i, l %v) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ dbgloc 43+ storel %p, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "p", "ref u64", %t0, 8, 7, 43+ storel %i, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "i", "usize", %t1, 8, 5, 43+ storel %v, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "v", "u64", %t2, 8, 7, 43+ dbgloc 44+ %t5 =l copy 8+ %t6 =l mul %i, %t5+ %t7 =l copy %t6+ %t4 =l add %p, %t7+ storel %v, %t4+ %t3 =l copy 0+ ret 0+}++function l $b3__msg_word(l %r, l %i) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t3 =l alloc8 16+ dbgloc 47+ storel %r, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "r", "usize", %t0, 8, 5, 47+ storel %i, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "i", "usize", %t1, 8, 5, 47+ dbgloc 48+ storel 0, %t3+ %t4 =l loadl $b3__MSG+ %t5 =l copy 16+ %t6 =l mul %r, %t5+ %t7 =l add %t6, %i+ %t8 =w call $sxqbe_list_valid(l %t4, l %t7)+ jnz %t8, @lbl2189, @lbl2190+@lbl2189+ %t9 =l call $sxqbe_list_buf(l %t4)+ %t10 =l mul %t7, 8+ %t11 =l add %t9, %t10+ %t12 =l loadl %t11+ %t13 =l add %t3, 8+ storel %t12, %t13+ storel 1, %t3+ jmp @lbl2191+@lbl2190+ jmp @lbl2191+@lbl2191+ dbgloc 49+ %t14 =l loadl %t3+ %t15 =w cnel %t14, 0+ jnz %t15, @lbl2192, @lbl2193+@lbl2192+ %t17 =l add %t3, 8+ %t16 =l loadl %t17+ dbgloc 50+ %t18 =l copy %t16+ ret %t18+@lbl2193+ jmp @lbl2194+@lbl2194+ dbgloc 52+ %t19 =l copy 0+ ret %t19+}++function l $b3__iv_word(l %i) {+@start+ %t0 =l alloc8 8+ %t2 =l alloc8 16+ dbgloc 55+ storel %i, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "i", "usize", %t0, 8, 5, 55+ dbgloc 56+ storel 0, %t2+ %t3 =l loadl $b3__IV+ %t4 =w call $sxqbe_list_valid(l %t3, l %i)+ jnz %t4, @lbl2195, @lbl2196+@lbl2195+ %t5 =l call $sxqbe_list_buf(l %t3)+ %t6 =l mul %i, 8+ %t7 =l add %t5, %t6+ %t8 =l loadl %t7+ %t9 =l add %t2, 8+ storel %t8, %t9+ storel 1, %t2+ jmp @lbl2197+@lbl2196+ jmp @lbl2197+@lbl2197+ dbgloc 57+ %t10 =l loadl %t2+ %t11 =w cnel %t10, 0+ jnz %t11, @lbl2198, @lbl2199+@lbl2198+ %t13 =l add %t2, 8+ %t12 =l loadl %t13+ dbgloc 58+ %t14 =l copy %t12+ ret %t14+@lbl2199+ jmp @lbl2200+@lbl2200+ dbgloc 60+ %t15 =l copy 0+ ret %t15+}++function l $b3__block_word(l %block, l %i) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t7 =l alloc8 8+ dbgloc 63+ storel %block, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "block", "ref u64", %t0, 8, 7, 63+ storel %i, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "i", "u64", %t1, 8, 7, 63+ dbgloc 64+ %t3 =l copy %block+ %t4 =l copy 4+ %t5 =l mul %i, %t4+ %t6 =l copy %t5+ %t2 =l add %t3, %t6+ storel %t2, %t7+ call $__sx_dbg_keep(l %t7)+ dbgvar "p", "ref ", %t7, 8, 7, 64+ dbgloc 65+ %t9 =w loadsw %t2+ %t8 =l extsw %t9+ %t10 =l extsw %t8+ ret %t10+}++function w $b3__g(l %s, l %a, l %b, l %c, l %d, l %mx, l %my) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t3 =l alloc8 8+ %t4 =l alloc8 8+ %t5 =l alloc8 8+ %t6 =l alloc8 8+ %t12 =l alloc8 8+ %t18 =l alloc8 8+ %t23 =l alloc8 8+ %t29 =l alloc8 8+ dbgloc 68+ storel %s, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "s", "ref u64", %t0, 8, 7, 68+ storel %a, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "a", "usize", %t1, 8, 5, 68+ storel %b, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "b", "usize", %t2, 8, 5, 68+ storel %c, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "c", "usize", %t3, 8, 5, 68+ storel %d, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "d", "usize", %t4, 8, 5, 68+ storel %mx, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "mx", "u64", %t5, 8, 7, 68+ storel %my, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "my", "u64", %t6, 8, 7, 68+ dbgloc 69+ %t7 =l call $b3__ldw(l %s, l %a)+ %t8 =l call $b3__ldw(l %s, l %b)+ %t9 =l add %t7, %t8+ %t10 =l add %t9, %mx+ %t11 =l call $b3__mask32(l %t10)+ storel %t11, %t12+ call $__sx_dbg_keep(l %t12)+ dbgvar "x0", "u64", %t12, 8, 7, 69+ dbgloc 70+ %t13 =l call $b3__ldw(l %s, l %d)+ %t14 =l loadl %t12+ %t15 =l xor %t13, %t14+ %t16 =l copy 16+ %t17 =l call $b3__rotr(l %t15, l %t16)+ storel %t17, %t18+ call $__sx_dbg_keep(l %t18)+ dbgvar "x3", "u64", %t18, 8, 7, 70+ dbgloc 71+ %t19 =l call $b3__ldw(l %s, l %c)+ %t20 =l loadl %t18+ %t21 =l add %t19, %t20+ %t22 =l call $b3__mask32(l %t21)+ storel %t22, %t23+ call $__sx_dbg_keep(l %t23)+ dbgvar "x2", "u64", %t23, 8, 7, 71+ dbgloc 72+ %t24 =l call $b3__ldw(l %s, l %b)+ %t25 =l loadl %t23+ %t26 =l xor %t24, %t25+ %t27 =l copy 12+ %t28 =l call $b3__rotr(l %t26, l %t27)+ storel %t28, %t29+ call $__sx_dbg_keep(l %t29)+ dbgvar "x1", "u64", %t29, 8, 7, 72+ dbgloc 73+ %t30 =l loadl %t12+ %t31 =l loadl %t29+ %t32 =l add %t30, %t31+ %t33 =l add %t32, %my+ %t34 =l call $b3__mask32(l %t33)+ storel %t34, %t12+ dbgloc 74+ %t35 =l loadl %t18+ %t36 =l loadl %t12+ %t37 =l xor %t35, %t36+ %t38 =l copy 8+ %t39 =l call $b3__rotr(l %t37, l %t38)+ storel %t39, %t18+ dbgloc 75+ %t40 =l loadl %t23+ %t41 =l loadl %t18+ %t42 =l add %t40, %t41+ %t43 =l call $b3__mask32(l %t42)+ storel %t43, %t23+ dbgloc 76+ %t44 =l loadl %t29+ %t45 =l loadl %t23+ %t46 =l xor %t44, %t45+ %t47 =l copy 7+ %t48 =l call $b3__rotr(l %t46, l %t47)+ storel %t48, %t29+ dbgloc 77+ %t49 =l loadl %t12+ %t50 =w call $b3__stw(l %s, l %a, l %t49)+ dbgloc 78+ %t51 =l loadl %t29+ %t52 =w call $b3__stw(l %s, l %b, l %t51)+ dbgloc 79+ %t53 =l loadl %t23+ %t54 =w call $b3__stw(l %s, l %c, l %t53)+ dbgloc 80+ %t55 =l loadl %t18+ %t56 =w call $b3__stw(l %s, l %d, l %t55)+ ret 0+}++function w $b3__compress_into(l %cv, l %block, l %counter, l %block_len, l %flags, l %out) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t3 =l alloc8 8+ %t4 =l alloc8 8+ %t5 =l alloc8 8+ %t63 =l alloc8 8+ %t174 =l alloc8 8+ %t180 =l alloc8 8+ %t185 =l alloc8 8+ dbgloc 83+ storel %cv, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "cv", "ref u64", %t0, 8, 7, 83+ storel %block, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "block", "ref u64", %t1, 8, 7, 83+ storel %counter, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "counter", "u64", %t2, 8, 7, 83+ storel %block_len, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "block_len", "u64", %t3, 8, 7, 83+ storel %flags, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "flags", "u64", %t4, 8, 7, 83+ storel %out, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "out", "ref u64", %t5, 8, 7, 83+ dbgloc 91+ %t6 =l copy 0+ %t7 =l copy 0+ %t8 =l call $b3__ldw(l %cv, l %t7)+ %t9 =w call $b3__stw(l %out, l %t6, l %t8)+ dbgloc 92+ %t10 =l copy 1+ %t11 =l copy 1+ %t12 =l call $b3__ldw(l %cv, l %t11)+ %t13 =w call $b3__stw(l %out, l %t10, l %t12)+ dbgloc 93+ %t14 =l copy 2+ %t15 =l copy 2+ %t16 =l call $b3__ldw(l %cv, l %t15)+ %t17 =w call $b3__stw(l %out, l %t14, l %t16)+ dbgloc 94+ %t18 =l copy 3+ %t19 =l copy 3+ %t20 =l call $b3__ldw(l %cv, l %t19)+ %t21 =w call $b3__stw(l %out, l %t18, l %t20)+ dbgloc 95+ %t22 =l copy 4+ %t23 =l copy 4+ %t24 =l call $b3__ldw(l %cv, l %t23)+ %t25 =w call $b3__stw(l %out, l %t22, l %t24)+ dbgloc 96+ %t26 =l copy 5+ %t27 =l copy 5+ %t28 =l call $b3__ldw(l %cv, l %t27)+ %t29 =w call $b3__stw(l %out, l %t26, l %t28)+ dbgloc 97+ %t30 =l copy 6+ %t31 =l copy 6+ %t32 =l call $b3__ldw(l %cv, l %t31)+ %t33 =w call $b3__stw(l %out, l %t30, l %t32)+ dbgloc 98+ %t34 =l copy 7+ %t35 =l copy 7+ %t36 =l call $b3__ldw(l %cv, l %t35)+ %t37 =w call $b3__stw(l %out, l %t34, l %t36)+ dbgloc 99+ %t38 =l copy 8+ %t39 =l copy 1779033703+ %t40 =w call $b3__stw(l %out, l %t38, l %t39)+ dbgloc 100+ %t41 =l copy 9+ %t42 =l copy 3144134277+ %t43 =w call $b3__stw(l %out, l %t41, l %t42)+ dbgloc 101+ %t44 =l copy 10+ %t45 =l copy 1013904242+ %t46 =w call $b3__stw(l %out, l %t44, l %t45)+ dbgloc 102+ %t47 =l copy 11+ %t48 =l copy 2773480762+ %t49 =w call $b3__stw(l %out, l %t47, l %t48)+ dbgloc 103+ %t50 =l copy 12+ %t51 =l call $b3__mask32(l %counter)+ %t52 =w call $b3__stw(l %out, l %t50, l %t51)+ dbgloc 104+ %t53 =l copy 13+ %t54 =l copy 32+ %t55 =l shr %counter, %t54+ %t56 =l call $b3__mask32(l %t55)+ %t57 =w call $b3__stw(l %out, l %t53, l %t56)+ dbgloc 105+ %t58 =l copy 14+ %t59 =w call $b3__stw(l %out, l %t58, l %block_len)+ dbgloc 106+ %t60 =l copy 15+ %t61 =w call $b3__stw(l %out, l %t60, l %flags)+ dbgloc 108+ %t62 =l copy 0+ storel %t62, %t63+ call $__sx_dbg_keep(l %t63)+ dbgvar "r", "usize", %t63, 8, 5, 108+ dbgloc 109+ jmp @lbl2201+@lbl2201+ %t64 =l loadl %t63+ %t65 =l copy 7+ %t66 =w csltl %t64, %t65+ jnz %t66, @lbl2202, @lbl2204+@lbl2202+ dbgloc 110+ %t67 =l copy 0+ %t68 =l copy 4+ %t69 =l copy 8+ %t70 =l copy 12+ %t71 =l loadl %t63+ %t72 =l copy 0+ %t73 =l call $b3__msg_word(l %t71, l %t72)+ %t74 =l call $b3__block_word(l %block, l %t73)+ %t75 =l loadl %t63+ %t76 =l copy 1+ %t77 =l call $b3__msg_word(l %t75, l %t76)+ %t78 =l call $b3__block_word(l %block, l %t77)+ %t79 =w call $b3__g(l %out, l %t67, l %t68, l %t69, l %t70, l %t74, l %t78)+ dbgloc 111+ %t80 =l copy 1+ %t81 =l copy 5+ %t82 =l copy 9+ %t83 =l copy 13+ %t84 =l loadl %t63+ %t85 =l copy 2+ %t86 =l call $b3__msg_word(l %t84, l %t85)+ %t87 =l call $b3__block_word(l %block, l %t86)+ %t88 =l loadl %t63+ %t89 =l copy 3+ %t90 =l call $b3__msg_word(l %t88, l %t89)+ %t91 =l call $b3__block_word(l %block, l %t90)+ %t92 =w call $b3__g(l %out, l %t80, l %t81, l %t82, l %t83, l %t87, l %t91)+ dbgloc 112+ %t93 =l copy 2+ %t94 =l copy 6+ %t95 =l copy 10+ %t96 =l copy 14+ %t97 =l loadl %t63+ %t98 =l copy 4+ %t99 =l call $b3__msg_word(l %t97, l %t98)+ %t100 =l call $b3__block_word(l %block, l %t99)+ %t101 =l loadl %t63+ %t102 =l copy 5+ %t103 =l call $b3__msg_word(l %t101, l %t102)+ %t104 =l call $b3__block_word(l %block, l %t103)+ %t105 =w call $b3__g(l %out, l %t93, l %t94, l %t95, l %t96, l %t100, l %t104)+ dbgloc 113+ %t106 =l copy 3+ %t107 =l copy 7+ %t108 =l copy 11+ %t109 =l copy 15+ %t110 =l loadl %t63+ %t111 =l copy 6+ %t112 =l call $b3__msg_word(l %t110, l %t111)+ %t113 =l call $b3__block_word(l %block, l %t112)+ %t114 =l loadl %t63+ %t115 =l copy 7+ %t116 =l call $b3__msg_word(l %t114, l %t115)+ %t117 =l call $b3__block_word(l %block, l %t116)+ %t118 =w call $b3__g(l %out, l %t106, l %t107, l %t108, l %t109, l %t113, l %t117)+ dbgloc 114+ %t119 =l copy 0+ %t120 =l copy 5+ %t121 =l copy 10+ %t122 =l copy 15+ %t123 =l loadl %t63+ %t124 =l copy 8+ %t125 =l call $b3__msg_word(l %t123, l %t124)+ %t126 =l call $b3__block_word(l %block, l %t125)+ %t127 =l loadl %t63+ %t128 =l copy 9+ %t129 =l call $b3__msg_word(l %t127, l %t128)+ %t130 =l call $b3__block_word(l %block, l %t129)+ %t131 =w call $b3__g(l %out, l %t119, l %t120, l %t121, l %t122, l %t126, l %t130)+ dbgloc 115+ %t132 =l copy 1+ %t133 =l copy 6+ %t134 =l copy 11+ %t135 =l copy 12+ %t136 =l loadl %t63+ %t137 =l copy 10+ %t138 =l call $b3__msg_word(l %t136, l %t137)+ %t139 =l call $b3__block_word(l %block, l %t138)+ %t140 =l loadl %t63+ %t141 =l copy 11+ %t142 =l call $b3__msg_word(l %t140, l %t141)+ %t143 =l call $b3__block_word(l %block, l %t142)+ %t144 =w call $b3__g(l %out, l %t132, l %t133, l %t134, l %t135, l %t139, l %t143)+ dbgloc 116+ %t145 =l copy 2+ %t146 =l copy 7+ %t147 =l copy 8+ %t148 =l copy 13+ %t149 =l loadl %t63+ %t150 =l copy 12+ %t151 =l call $b3__msg_word(l %t149, l %t150)+ %t152 =l call $b3__block_word(l %block, l %t151)+ %t153 =l loadl %t63+ %t154 =l copy 13+ %t155 =l call $b3__msg_word(l %t153, l %t154)+ %t156 =l call $b3__block_word(l %block, l %t155)+ %t157 =w call $b3__g(l %out, l %t145, l %t146, l %t147, l %t148, l %t152, l %t156)+ dbgloc 117+ %t158 =l copy 3+ %t159 =l copy 4+ %t160 =l copy 9+ %t161 =l copy 14+ %t162 =l loadl %t63+ %t163 =l copy 14+ %t164 =l call $b3__msg_word(l %t162, l %t163)+ %t165 =l call $b3__block_word(l %block, l %t164)+ %t166 =l loadl %t63+ %t167 =l copy 15+ %t168 =l call $b3__msg_word(l %t166, l %t167)+ %t169 =l call $b3__block_word(l %block, l %t168)+ %t170 =w call $b3__g(l %out, l %t158, l %t159, l %t160, l %t161, l %t165, l %t169)+ dbgloc 118+ %t171 =l loadl %t63+ %t172 =l add %t171, 1+ storel %t172, %t63+ jmp @lbl2203+@lbl2203+ jmp @lbl2201+@lbl2204+ dbgloc 121+ %t173 =l copy 0+ storel %t173, %t174+ call $__sx_dbg_keep(l %t174)+ dbgvar "i", "usize", %t174, 8, 5, 121+ dbgloc 122+ jmp @lbl2205+@lbl2205+ %t175 =l loadl %t174+ %t176 =l copy 8+ %t177 =w csltl %t175, %t176+ jnz %t177, @lbl2206, @lbl2208+@lbl2206+ dbgloc 123+ %t178 =l loadl %t174+ %t179 =l call $b3__ldw(l %out, l %t178)+ storel %t179, %t180+ call $__sx_dbg_keep(l %t180)+ dbgvar "lo", "u64", %t180, 8, 7, 123+ dbgloc 124+ %t181 =l loadl %t174+ %t182 =l copy 8+ %t183 =l add %t181, %t182+ %t184 =l call $b3__ldw(l %out, l %t183)+ storel %t184, %t185+ call $__sx_dbg_keep(l %t185)+ dbgvar "hi", "u64", %t185, 8, 7, 124+ dbgloc 125+ %t186 =l loadl %t174+ %t187 =l xor %t179, %t184+ %t188 =l call $b3__mask32(l %t187)+ %t189 =w call $b3__stw(l %out, l %t186, l %t188)+ dbgloc 126+ %t190 =l loadl %t174+ %t191 =l copy 8+ %t192 =l add %t190, %t191+ %t193 =l loadl %t174+ %t194 =l call $b3__ldw(l %cv, l %t193)+ %t195 =l xor %t184, %t194+ %t196 =l call $b3__mask32(l %t195)+ %t197 =w call $b3__stw(l %out, l %t192, l %t196)+ dbgloc 127+ %t198 =l loadl %t174+ %t199 =l add %t198, 1+ storel %t199, %t174+ jmp @lbl2207+@lbl2207+ jmp @lbl2205+@lbl2208+ ret 0+}++function w $b3__copy_words(l %dst, l %src, l %n) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t4 =l alloc8 8+ dbgloc 131+ storel %dst, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "dst", "ref u64", %t0, 8, 7, 131+ storel %src, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "src", "ref u64", %t1, 8, 7, 131+ storel %n, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "n", "usize", %t2, 8, 5, 131+ dbgloc 132+ %t3 =l copy 0+ storel %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "i", "usize", %t4, 8, 5, 132+ dbgloc 133+ jmp @lbl2209+@lbl2209+ %t5 =l loadl %t4+ %t6 =w csltl %t5, %n+ jnz %t6, @lbl2210, @lbl2212+@lbl2210+ dbgloc 134+ %t7 =l loadl %t4+ %t8 =l loadl %t4+ %t9 =l call $b3__ldw(l %src, l %t8)+ %t10 =w call $b3__stw(l %dst, l %t7, l %t9)+ dbgloc 135+ %t11 =l loadl %t4+ %t12 =l add %t11, 1+ storel %t12, %t4+ jmp @lbl2211+@lbl2211+ jmp @lbl2209+@lbl2212+ ret 0+}++function w $b3__set_iv(l %out_cv) {+@start+ %t0 =l alloc8 8+ dbgloc 139+ storel %out_cv, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "out_cv", "ref u64", %t0, 8, 7, 139+ dbgloc 140+ %t1 =l copy 0+ %t2 =l copy 1779033703+ %t3 =w call $b3__stw(l %out_cv, l %t1, l %t2)+ dbgloc 141+ %t4 =l copy 1+ %t5 =l copy 3144134277+ %t6 =w call $b3__stw(l %out_cv, l %t4, l %t5)+ dbgloc 142+ %t7 =l copy 2+ %t8 =l copy 1013904242+ %t9 =w call $b3__stw(l %out_cv, l %t7, l %t8)+ dbgloc 143+ %t10 =l copy 3+ %t11 =l copy 2773480762+ %t12 =w call $b3__stw(l %out_cv, l %t10, l %t11)+ dbgloc 144+ %t13 =l copy 4+ %t14 =l copy 1359893119+ %t15 =w call $b3__stw(l %out_cv, l %t13, l %t14)+ dbgloc 145+ %t16 =l copy 5+ %t17 =l copy 2600822924+ %t18 =w call $b3__stw(l %out_cv, l %t16, l %t17)+ dbgloc 146+ %t19 =l copy 6+ %t20 =l copy 528734635+ %t21 =w call $b3__stw(l %out_cv, l %t19, l %t20)+ dbgloc 147+ %t22 =l copy 7+ %t23 =l copy 1541459225+ %t24 =w call $b3__stw(l %out_cv, l %t22, l %t23)+ ret 0+}++function w $b3__output_cv(l %cv, l %block, l %counter, l %block_len, l %flags, l %scratch, l %out_cv) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t3 =l alloc8 8+ %t4 =l alloc8 8+ %t5 =l alloc8 8+ %t6 =l alloc8 8+ dbgloc 150+ storel %cv, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "cv", "ref u64", %t0, 8, 7, 150+ storel %block, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "block", "ref u64", %t1, 8, 7, 150+ storel %counter, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "counter", "u64", %t2, 8, 7, 150+ storel %block_len, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "block_len", "u64", %t3, 8, 7, 150+ storel %flags, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "flags", "u64", %t4, 8, 7, 150+ storel %scratch, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "scratch", "ref u64", %t5, 8, 7, 150+ storel %out_cv, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "out_cv", "ref u64", %t6, 8, 7, 150+ dbgloc 159+ %t7 =w call $b3__compress_into(l %cv, l %block, l %counter, l %block_len, l %flags, l %scratch)+ dbgloc 160+ %t8 =l copy 8+ %t9 =w call $b3__copy_words(l %out_cv, l %scratch, l %t8)+ ret 0+}++function w $b3__chunk_finalize(l %data, l %len, l %counter, l %out_cv, l %out_block, l %out_flags, l %out_counter, l %out_block_len) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t3 =l alloc8 8+ %t4 =l alloc8 8+ %t5 =l alloc8 8+ %t6 =l alloc8 8+ %t7 =l alloc8 8+ %t13 =l alloc8 8+ %t17 =l alloc8 8+ %t21 =l alloc8 8+ %t23 =l alloc8 8+ %t36 =l alloc8 8+ %t42 =l alloc8 8+ %t61 =l alloc8 8+ %t69 =l alloc8 8+ %t74 =l alloc8 8+ dbgloc 165+ storel %data, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "data", "ref u8", %t0, 8, 7, 165+ storel %len, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "len", "usize", %t1, 8, 5, 165+ storel %counter, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "counter", "u64", %t2, 8, 7, 165+ storel %out_cv, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "out_cv", "ref u64", %t3, 8, 7, 165+ storel %out_block, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "out_block", "ref u64", %t4, 8, 7, 165+ storel %out_flags, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "out_flags", "ref u64", %t5, 8, 7, 165+ storel %out_counter, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "out_counter", "ref u64", %t6, 8, 7, 165+ storel %out_block_len, %t7+ call $__sx_dbg_keep(l %t7)+ dbgvar "out_block_len", "ref u64", %t7, 8, 7, 165+ dbgloc 175+ %t8 =w call $b3__set_iv(l %out_cv)+ dbgloc 176+ %t9 =l copy 63+ %t10 =l add %len, %t9+ %t11 =l copy 64+ %t12 =l div %t10, %t11+ storel %t12, %t13+ call $__sx_dbg_keep(l %t13)+ dbgvar "total", "usize", %t13, 8, 5, 176+ dbgloc 177+ %t15 =l copy 64+ %t14 =l call $malloc(l %t15)+ %t16 =l copy %t14+ storel %t16, %t17+ call $__sx_dbg_keep(l %t17)+ dbgvar "blk", "ref u64", %t17, 8, 7, 177+ dbgloc 178+ %t19 =l copy 128+ %t18 =l call $malloc(l %t19)+ %t20 =l copy %t18+ storel %t20, %t21+ call $__sx_dbg_keep(l %t21)+ dbgvar "state", "ref u64", %t21, 8, 7, 178+ dbgloc 180+ %t22 =l copy 0+ storel %t22, %t23+ call $__sx_dbg_keep(l %t23)+ dbgvar "i", "usize", %t23, 8, 5, 180+ dbgloc 181+ jmp @lbl2213+@lbl2213+ %t24 =l loadl %t23+ %t25 =l copy 1+ %t26 =l add %t24, %t25+ %t27 =w csltl %t26, %t12+ jnz %t27, @lbl2214, @lbl2216+@lbl2214+ dbgloc 182+ %t29 =l copy 0+ %t30 =l copy 64+ call $memset(l %t16, w %t29, l %t30)+ %t28 =l copy 0+ dbgloc 183+ %t32 =l loadl %t23+ %t33 =l copy 64+ %t34 =l mul %t32, %t33+ %t35 =l copy %t34+ %t31 =l add %data, %t35+ storel %t31, %t36+ call $__sx_dbg_keep(l %t36)+ dbgvar "blk_ptr", "ref u8", %t36, 8, 7, 183+ dbgloc 184+ %t38 =l copy %t16+ %t39 =l copy %t31+ %t40 =l copy 64+ call $memcpy(l %t38, l %t39, l %t40)+ %t37 =l copy 0+ dbgloc 185+ %t41 =l copy 0+ storel %t41, %t42+ call $__sx_dbg_keep(l %t42)+ dbgvar "cf", "u64", %t42, 8, 7, 185+ dbgloc 186+ %t43 =l loadl %t23+ %t44 =l copy 0+ %t45 =w ceql %t43, %t44+ jnz %t45, @lbl2217, @lbl2218+@lbl2217+ dbgloc 187+ %t46 =l copy 1+ storel %t46, %t42+ jmp @lbl2218+@lbl2218+ dbgloc 189+ %t47 =l copy 64+ %t48 =l loadl %t42+ %t49 =w call $b3__compress_into(l %out_cv, l %t16, l %counter, l %t47, l %t48, l %t20)+ dbgloc 190+ %t50 =l copy 8+ %t51 =w call $b3__copy_words(l %out_cv, l %t20, l %t50)+ dbgloc 191+ %t52 =l loadl %t23+ %t53 =l add %t52, 1+ storel %t53, %t23+ jmp @lbl2215+@lbl2215+ jmp @lbl2213+@lbl2216+ dbgloc 194+ %t55 =l copy 0+ %t56 =l copy 64+ call $memset(l %out_block, w %t55, l %t56)+ %t54 =l copy 0+ dbgloc 195+ %t57 =l loadl %t23+ %t58 =l copy 64+ %t59 =l mul %t57, %t58+ %t60 =l sub %len, %t59+ storel %t60, %t61+ call $__sx_dbg_keep(l %t61)+ dbgvar "last_len", "usize", %t61, 8, 5, 195+ dbgloc 196+ %t62 =l copy 0+ %t63 =w csgtl %t60, %t62+ jnz %t63, @lbl2220, @lbl2221+@lbl2220+ dbgloc 197+ %t65 =l loadl %t23+ %t66 =l copy 64+ %t67 =l mul %t65, %t66+ %t68 =l copy %t67+ %t64 =l add %data, %t68+ storel %t64, %t69+ call $__sx_dbg_keep(l %t69)+ dbgvar "blk_ptr2", "ref u8", %t69, 8, 7, 197+ dbgloc 198+ %t71 =l copy %out_block+ %t72 =l copy %t64+ call $memcpy(l %t71, l %t72, l %t60)+ %t70 =l copy 0+ jmp @lbl2221+@lbl2221+ dbgloc 200+ %t73 =l copy 0+ storel %t73, %t74+ call $__sx_dbg_keep(l %t74)+ dbgvar "start_flag", "u64", %t74, 8, 7, 200+ dbgloc 201+ %t75 =l loadl %t23+ %t76 =l copy 0+ %t77 =w ceql %t75, %t76+ jnz %t77, @lbl2223, @lbl2224+@lbl2223+ dbgloc 202+ %t78 =l copy 1+ storel %t78, %t74+ jmp @lbl2224+@lbl2224+ dbgloc 204+ %t80 =l loadl %t74+ %t81 =l copy 2+ %t82 =l or %t80, %t81+ storel %t82, %out_flags+ %t79 =l copy 0+ dbgloc 205+ storel %counter, %out_counter+ %t83 =l copy 0+ dbgloc 206+ %t85 =l copy %t60+ storel %t85, %out_block_len+ %t84 =l copy 0+ dbgloc 208+ %t87 =l copy %t16+ call $free(l %t87)+ %t86 =l copy 0+ dbgloc 209+ %t89 =l copy %t20+ call $free(l %t89)+ %t88 =l copy 0+ ret 0+}++function w $b3__parent_output(l %left, l %right, l %out_cv, l %out_block) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t3 =l alloc8 8+ %t6 =l alloc8 8+ dbgloc 213+ storel %left, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "left", "ref u64", %t0, 8, 7, 213+ storel %right, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "right", "ref u64", %t1, 8, 7, 213+ storel %out_cv, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "out_cv", "ref u64", %t2, 8, 7, 213+ storel %out_block, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "out_block", "ref u64", %t3, 8, 7, 213+ dbgloc 214+ %t4 =w call $b3__set_iv(l %out_cv)+ dbgloc 215+ %t5 =l copy 0+ storel %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "i", "usize", %t6, 8, 5, 215+ dbgloc 216+ jmp @lbl2226+@lbl2226+ %t7 =l loadl %t6+ %t8 =l copy 8+ %t9 =w csltl %t7, %t8+ jnz %t9, @lbl2227, @lbl2229+@lbl2227+ dbgloc 217+ %t12 =l copy %out_block+ %t13 =l loadl %t6+ %t14 =l copy 4+ %t15 =l mul %t13, %t14+ %t16 =l copy %t15+ %t11 =l add %t12, %t16+ %t17 =l loadl %t6+ %t18 =l call $b3__ldw(l %left, l %t17)+ storew %t18, %t11+ %t10 =l copy 0+ dbgloc 218+ %t21 =l copy %out_block+ %t22 =l loadl %t6+ %t23 =l copy 8+ %t24 =l add %t22, %t23+ %t25 =l copy 4+ %t26 =l mul %t24, %t25+ %t27 =l copy %t26+ %t20 =l add %t21, %t27+ %t28 =l loadl %t6+ %t29 =l call $b3__ldw(l %right, l %t28)+ storew %t29, %t20+ %t19 =l copy 0+ dbgloc 219+ %t30 =l loadl %t6+ %t31 =l add %t30, 1+ storel %t31, %t6+ jmp @lbl2228+@lbl2228+ jmp @lbl2226+@lbl2229+ ret 0+}++function w $b3__push_cv(l %stack, l %depth, l %cv) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t8 =l alloc8 8+ dbgloc 223+ storel %stack, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "stack", "ref u64", %t0, 8, 7, 223+ storel %depth, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "depth", "usize", %t1, 8, 5, 223+ storel %cv, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "cv", "ref u64", %t2, 8, 7, 223+ dbgloc 224+ %t4 =l copy 64+ %t5 =l mul %depth, %t4+ %t6 =l copy %t5+ %t3 =l add %stack, %t6+ %t7 =l copy %t3+ storel %t7, %t8+ call $__sx_dbg_keep(l %t8)+ dbgvar "base", "ref u64", %t8, 8, 7, 224+ dbgloc 225+ %t9 =l copy 8+ %t10 =w call $b3__copy_words(l %t7, l %cv, l %t9)+ ret 0+}++function w $b3__pop_cv(l %stack, l %depth, l %out) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t8 =l alloc8 8+ dbgloc 228+ storel %stack, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "stack", "ref u64", %t0, 8, 7, 228+ storel %depth, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "depth", "usize", %t1, 8, 5, 228+ storel %out, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "out", "ref u64", %t2, 8, 7, 228+ dbgloc 229+ %t4 =l copy 64+ %t5 =l mul %depth, %t4+ %t6 =l copy %t5+ %t3 =l add %stack, %t6+ %t7 =l copy %t3+ storel %t7, %t8+ call $__sx_dbg_keep(l %t8)+ dbgvar "base", "ref u64", %t8, 8, 7, 229+ dbgloc 230+ %t9 =l copy 8+ %t10 =w call $b3__copy_words(l %out, l %t7, l %t9)+ ret 0+}++export function l $b3__hasher_state_size() {+@start+ dbgloc 243+ dbgloc 244+ %t0 =l call $veins_blake3_state_size()+ ret %t0+}++export function w $b3__hasher_init(l %state) {+@start+ %t0 =l alloc8 8+ dbgloc 247+ storel %state, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "state", "ref ", %t0, 8, 7, 247+ dbgloc 248+ %t1 =w call $veins_blake3_init(l %state)+ ret 0+}++export function w $b3__hasher_update(l %state, l %data, l %len) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ dbgloc 251+ storel %state, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "state", "ref ", %t0, 8, 7, 251+ storel %data, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "data", "ref u8", %t1, 8, 7, 251+ storel %len, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "len", "usize", %t2, 8, 5, 251+ dbgloc 252+ %t3 =w call $veins_blake3_update(l %state, l %data, l %len)+ ret 0+}++export function w $b3__hasher_final(l %state, l %out) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 255+ storel %state, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "state", "ref ", %t0, 8, 7, 255+ storel %out, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "out", "ref u8", %t1, 8, 7, 255+ dbgloc 256+ %t2 =w call $veins_blake3_final(l %state, l %out)+ ret 0+}++export function w $b3__hash(l %data, l %len, l %out) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ dbgloc 263+ storel %data, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "data", "ref u8", %t0, 8, 7, 263+ storel %len, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "len", "usize", %t1, 8, 5, 263+ storel %out, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "out", "ref u8", %t2, 8, 7, 263+ dbgloc 264+ %t3 =w call $veins_blake3(l %data, l %len, l %out)+ ret 0+}++export function w $b3__hash_pure(l %data, l %len, l %out) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t10 =l alloc8 8+ %t14 =l alloc8 8+ %t18 =l alloc8 8+ %t22 =l alloc8 8+ %t26 =l alloc8 8+ %t30 =l alloc8 8+ %t34 =l alloc8 8+ %t38 =l alloc8 8+ %t42 =l alloc8 8+ %t46 =l alloc8 8+ %t50 =l alloc8 8+ %t56 =l alloc8 8+ %t61 =l alloc8 8+ %t63 =l alloc8 8+ %t73 =l alloc8 8+ %t88 =l alloc8 8+ %t125 =l alloc8 8+ %t127 =l alloc8 8+ %t159 =l alloc8 8+ %t167 =l alloc8 8+ %t178 =l alloc8 8+ dbgloc 267+ storel %data, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "data", "ref u8", %t0, 8, 7, 267+ storel %len, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "len", "usize", %t1, 8, 5, 267+ storel %out, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "out", "ref u8", %t2, 8, 7, 267+ dbgloc 268+ %t4 =l copy 54+ %t5 =l copy 1+ %t6 =l add %t4, %t5+ %t7 =l copy 64+ %t8 =l mul %t6, %t7+ %t3 =l call $malloc(l %t8)+ %t9 =l copy %t3+ storel %t9, %t10+ call $__sx_dbg_keep(l %t10)+ dbgvar "stack", "ref u64", %t10, 8, 7, 268+ dbgloc 269+ %t12 =l copy 128+ %t11 =l call $malloc(l %t12)+ %t13 =l copy %t11+ storel %t13, %t14+ call $__sx_dbg_keep(l %t14)+ dbgvar "scratch", "ref u64", %t14, 8, 7, 269+ dbgloc 270+ %t16 =l copy 64+ %t15 =l call $malloc(l %t16)+ %t17 =l copy %t15+ storel %t17, %t18+ call $__sx_dbg_keep(l %t18)+ dbgvar "out_cv", "ref u64", %t18, 8, 7, 270+ dbgloc 271+ %t20 =l copy 64+ %t19 =l call $malloc(l %t20)+ %t21 =l copy %t19+ storel %t21, %t22+ call $__sx_dbg_keep(l %t22)+ dbgvar "out_block", "ref u64", %t22, 8, 7, 271+ dbgloc 272+ %t24 =l copy 8+ %t23 =l call $malloc(l %t24)+ %t25 =l copy %t23+ storel %t25, %t26+ call $__sx_dbg_keep(l %t26)+ dbgvar "out_flags", "ref u64", %t26, 8, 7, 272+ dbgloc 273+ %t28 =l copy 8+ %t27 =l call $malloc(l %t28)+ %t29 =l copy %t27+ storel %t29, %t30+ call $__sx_dbg_keep(l %t30)+ dbgvar "out_counter", "ref u64", %t30, 8, 7, 273+ dbgloc 274+ %t32 =l copy 8+ %t31 =l call $malloc(l %t32)+ %t33 =l copy %t31+ storel %t33, %t34+ call $__sx_dbg_keep(l %t34)+ dbgvar "out_block_len", "ref u64", %t34, 8, 7, 274+ dbgloc 275+ %t36 =l copy 64+ %t35 =l call $malloc(l %t36)+ %t37 =l copy %t35+ storel %t37, %t38+ call $__sx_dbg_keep(l %t38)+ dbgvar "chunk_cv", "ref u64", %t38, 8, 7, 275+ dbgloc 276+ %t40 =l copy 64+ %t39 =l call $malloc(l %t40)+ %t41 =l copy %t39+ storel %t41, %t42+ call $__sx_dbg_keep(l %t42)+ dbgvar "new_cv", "ref u64", %t42, 8, 7, 276+ dbgloc 277+ %t44 =l copy 64+ %t43 =l call $malloc(l %t44)+ %t45 =l copy %t43+ storel %t45, %t46+ call $__sx_dbg_keep(l %t46)+ dbgvar "left", "ref u64", %t46, 8, 7, 277+ dbgloc 278+ %t48 =l copy 64+ %t47 =l call $malloc(l %t48)+ %t49 =l copy %t47+ storel %t49, %t50+ call $__sx_dbg_keep(l %t50)+ dbgvar "cur_cv", "ref u64", %t50, 8, 7, 278+ dbgloc 280+ %t51 =l copy 1023+ %t52 =l add %len, %t51+ %t53 =l copy 1024+ %t54 =l div %t52, %t53+ %t55 =l copy %t54+ storel %t55, %t56+ call $__sx_dbg_keep(l %t56)+ dbgvar "total_chunks", "u64", %t56, 8, 7, 280+ dbgloc 281+ %t57 =l copy 0+ %t58 =w ceql %len, %t57+ jnz %t58, @lbl2230, @lbl2231+@lbl2230+ dbgloc 282+ %t59 =l copy 1+ storel %t59, %t56+ jmp @lbl2231+@lbl2231+ dbgloc 284+ %t60 =l copy 0+ storel %t60, %t61+ call $__sx_dbg_keep(l %t61)+ dbgvar "depth", "usize", %t61, 8, 5, 284+ dbgloc 285+ %t62 =l copy 0+ storel %t62, %t63+ call $__sx_dbg_keep(l %t63)+ dbgvar "i", "u64", %t63, 8, 7, 285+ dbgloc 286+ jmp @lbl2233+@lbl2233+ %t64 =l loadl %t63+ %t65 =l copy 1+ %t66 =l add %t64, %t65+ %t67 =l loadl %t56+ %t68 =w csltl %t66, %t67+ jnz %t68, @lbl2234, @lbl2236+@lbl2234+ dbgloc 287+ %t69 =l loadl %t63+ %t70 =l copy %t69+ %t71 =l copy 1024+ %t72 =l mul %t70, %t71+ storel %t72, %t73+ call $__sx_dbg_keep(l %t73)+ dbgvar "off", "usize", %t73, 8, 5, 287+ dbgloc 288+ %t75 =l copy %t72+ %t74 =l add %data, %t75+ %t76 =l copy 1024+ %t77 =l loadl %t63+ %t78 =w call $b3__chunk_finalize(l %t74, l %t76, l %t77, l %t17, l %t21, l %t25, l %t29, l %t33)+ dbgloc 298+ %t79 =l loadl %t63+ %t80 =l copy 64+ %t81 =l loadl %t25+ %t82 =w call $b3__output_cv(l %t17, l %t21, l %t79, l %t80, l %t81, l %t13, l %t37)+ dbgloc 299+ %t83 =l copy 8+ %t84 =w call $b3__copy_words(l %t41, l %t37, l %t83)+ dbgloc 300+ %t85 =l loadl %t63+ %t86 =l copy 1+ %t87 =l add %t85, %t86+ storel %t87, %t88+ call $__sx_dbg_keep(l %t88)+ dbgvar "total_so_far", "u64", %t88, 8, 7, 300+ dbgloc 301+ jmp @lbl2237+@lbl2237+ %t89 =l loadl %t88+ %t90 =l copy 1+ %t91 =l and %t89, %t90+ %t92 =l call $b3__mask32(l %t91)+ %t93 =l copy 0+ %t94 =w ceql %t92, %t93+ jnz %t94, @lbl2238, @lbl2240+@lbl2238+ dbgloc 302+ %t95 =l loadl %t61+ %t96 =l copy 1+ %t97 =l sub %t95, %t96+ %t98 =w call $b3__pop_cv(l %t9, l %t97, l %t45)+ dbgloc 303+ %t99 =l loadl %t61+ %t100 =l sub %t99, 1+ storel %t100, %t61+ dbgloc 304+ %t101 =w call $b3__parent_output(l %t45, l %t41, l %t17, l %t21)+ dbgloc 305+ %t103 =l copy 4+ storel %t103, %t25+ %t102 =l copy 0+ dbgloc 306+ %t105 =l copy 0+ storel %t105, %t29+ %t104 =l copy 0+ dbgloc 307+ %t107 =l copy 64+ storel %t107, %t33+ %t106 =l copy 0+ dbgloc 308+ %t108 =l copy 0+ %t109 =l copy 64+ %t110 =l copy 4+ %t111 =w call $b3__output_cv(l %t17, l %t21, l %t108, l %t109, l %t110, l %t13, l %t41)+ dbgloc 309+ %t112 =l loadl %t88+ %t113 =l copy 1+ %t114 =l shr %t112, %t113+ storel %t114, %t88+ jmp @lbl2239+@lbl2239+ jmp @lbl2237+@lbl2240+ dbgloc 311+ %t115 =l loadl %t61+ %t116 =w call $b3__push_cv(l %t9, l %t115, l %t41)+ dbgloc 312+ %t117 =l loadl %t61+ %t118 =l add %t117, 1+ storel %t118, %t61+ dbgloc 313+ %t119 =l loadl %t63+ %t120 =l add %t119, 1+ storel %t120, %t63+ jmp @lbl2235+@lbl2235+ jmp @lbl2233+@lbl2236+ dbgloc 316+ %t121 =l loadl %t63+ %t122 =l copy %t121+ %t123 =l copy 1024+ %t124 =l mul %t122, %t123+ storel %t124, %t125+ call $__sx_dbg_keep(l %t125)+ dbgvar "last_off", "usize", %t125, 8, 5, 316+ dbgloc 317+ %t126 =l sub %len, %t124+ storel %t126, %t127+ call $__sx_dbg_keep(l %t127)+ dbgvar "last_len", "usize", %t127, 8, 5, 317+ dbgloc 318+ %t129 =l copy %t124+ %t128 =l add %data, %t129+ %t130 =l loadl %t63+ %t131 =w call $b3__chunk_finalize(l %t128, l %t126, l %t130, l %t17, l %t21, l %t25, l %t29, l %t33)+ dbgloc 329+ jmp @lbl2241+@lbl2241+ %t132 =l loadl %t61+ %t133 =l copy 0+ %t134 =w csgtl %t132, %t133+ jnz %t134, @lbl2242, @lbl2244+@lbl2242+ dbgloc 330+ %t135 =l loadl %t61+ %t136 =l copy 1+ %t137 =l sub %t135, %t136+ %t138 =w call $b3__pop_cv(l %t9, l %t137, l %t45)+ dbgloc 331+ %t139 =l loadl %t61+ %t140 =l sub %t139, 1+ storel %t140, %t61+ dbgloc 332+ %t141 =l loadl %t29+ %t142 =l loadl %t33+ %t143 =l loadl %t25+ %t144 =w call $b3__output_cv(l %t17, l %t21, l %t141, l %t142, l %t143, l %t13, l %t49)+ dbgloc 341+ %t145 =w call $b3__parent_output(l %t45, l %t49, l %t17, l %t21)+ dbgloc 342+ %t147 =l copy 4+ storel %t147, %t25+ %t146 =l copy 0+ dbgloc 343+ %t149 =l copy 0+ storel %t149, %t29+ %t148 =l copy 0+ dbgloc 344+ %t151 =l copy 64+ storel %t151, %t33+ %t150 =l copy 0+ jmp @lbl2243+@lbl2243+ jmp @lbl2241+@lbl2244+ dbgloc 347+ %t152 =l copy 0+ %t153 =l loadl %t33+ %t154 =l loadl %t25+ %t155 =l copy 8+ %t156 =l or %t154, %t155+ %t157 =w call $b3__compress_into(l %t17, l %t21, l %t152, l %t153, l %t156, l %t13)+ dbgloc 355+ %t158 =l copy 0+ storel %t158, %t159+ call $__sx_dbg_keep(l %t159)+ dbgvar "j", "usize", %t159, 8, 5, 355+ dbgloc 356+ jmp @lbl2245+@lbl2245+ %t160 =l loadl %t159+ %t161 =l copy 32+ %t162 =w csltl %t160, %t161+ jnz %t162, @lbl2246, @lbl2248+@lbl2246+ dbgloc 357+ %t163 =l loadl %t159+ %t164 =l copy 4+ %t165 =l div %t163, %t164+ %t166 =l call $b3__ldw(l %t13, l %t165)+ storel %t166, %t167+ call $__sx_dbg_keep(l %t167)+ dbgvar "word", "u64", %t167, 8, 7, 357+ dbgloc 358+ %t168 =l loadl %t159+ %t169 =l copy 4+ %t170 =l rem %t168, %t169+ %t171 =l copy 8+ %t172 =l mul %t170, %t171+ %t173 =l shr %t166, %t172+ %t174 =l copy 255+ %t175 =l and %t173, %t174+ %t176 =w copy %t175+ %t177 =w extub %t176+ storew %t177, %t178+ call $__sx_dbg_keep(l %t178)+ dbgvar "byte", "u8", %t178, 1, 7, 358+ dbgloc 359+ %t181 =l loadl %t159+ %t182 =l copy %t181+ %t180 =l add %out, %t182+ storeb %t177, %t180+ %t179 =l copy 0+ dbgloc 360+ %t183 =l loadl %t159+ %t184 =l add %t183, 1+ storel %t184, %t159+ jmp @lbl2247+@lbl2247+ jmp @lbl2245+@lbl2248+ dbgloc 363+ %t186 =l copy %t9+ call $free(l %t186)+ %t185 =l copy 0+ dbgloc 364+ %t188 =l copy %t13+ call $free(l %t188)+ %t187 =l copy 0+ dbgloc 365+ %t190 =l copy %t17+ call $free(l %t190)+ %t189 =l copy 0+ dbgloc 366+ %t192 =l copy %t21+ call $free(l %t192)+ %t191 =l copy 0+ dbgloc 367+ %t194 =l copy %t25+ call $free(l %t194)+ %t193 =l copy 0+ dbgloc 368+ %t196 =l copy %t29+ call $free(l %t196)+ %t195 =l copy 0+ dbgloc 369+ %t198 =l copy %t33+ call $free(l %t198)+ %t197 =l copy 0+ dbgloc 370+ %t200 =l copy %t37+ call $free(l %t200)+ %t199 =l copy 0+ dbgloc 371+ %t202 =l copy %t41+ call $free(l %t202)+ %t201 =l copy 0+ dbgloc 372+ %t204 =l copy %t45+ call $free(l %t204)+ %t203 =l copy 0+ dbgloc 373+ %t206 =l copy %t49+ call $free(l %t206)+ %t205 =l copy 0+ ret 0+}++dbgfile "src/object/id.sx"+data $objid__ID_LEN = { l 32 }+data $objid__CHANGE_ID_LEN = { l 16 }+export function l $objid__id_none() {+@start+ %t0 =l alloc8 8+ dbgloc 20+ dbgloc 21+ %t1 =l copy 0+ storel %t1, %t0+ %t3 =l call $malloc(l 8)+ call $memcpy(l %t3, l %t0, l 8)+ ret %t3+}++export function l $objid__id(l %ptr) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 24+ storel %ptr, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "ptr", "ref u8", %t0, 8, 7, 24+ dbgloc 25+ storel %ptr, %t1+ %t3 =l call $malloc(l 8)+ call $memcpy(l %t3, l %t1, l 8)+ ret %t3+}++export function l $objid__change_id(l %ptr) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 28+ storel %ptr, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "ptr", "ref u8", %t0, 8, 7, 28+ dbgloc 29+ storel %ptr, %t1+ %t3 =l call $malloc(l 8)+ call $memcpy(l %t3, l %t1, l 8)+ ret %t3+}++export function w $objid__Id__is_none(l %v) {+@start+ %t0 =l alloc8 8+ dbgloc 32+ storel %v, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "v", "Id", %t0, 8, 5, 32+ dbgloc 33+ %t1 =l loadl %v+ %t2 =l copy 0+ %t3 =w ceql %t1, %t2+ ret %t3+}++export function w $objid__Id__eql(l %a, l %b) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t5 =l alloc4 1+ dbgloc 36+ storel %a, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "a", "Id", %t0, 8, 5, 36+ storel %b, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "b", "Id", %t1, 8, 5, 36+ dbgloc 37+ %t2 =l loadl %a+ %t3 =l copy 0+ %t4 =w ceql %t2, %t3+ storew %t4, %t5+ jnz %t4, @lbl2253, @lbl2252+@lbl2252+ %t6 =l loadl %b+ %t7 =l copy 0+ %t8 =w ceql %t6, %t7+ storew %t8, %t5+ jmp @lbl2253+@lbl2253+ %t9 =w loadw %t5+ jnz %t9, @lbl2249, @lbl2250+@lbl2249+ dbgloc 38+ %t10 =l loadl %a+ %t11 =l loadl %b+ %t12 =w ceql %t10, %t11+ ret %t12+@lbl2250+ dbgloc 40+ %t13 =l loadl %a+ %t14 =l copy 32+ %t15 =l call $bytes__bytes(l %t13, l %t14)+ %t16 =l loadl %b+ %t17 =l copy 32+ %t18 =l call $bytes__bytes(l %t16, l %t17)+ %t19 =w call $bytes__Bytes__eql(l %t15, l %t18)+ ret %t19+}++export function l $objid__Id__cmp(l %a, l %b) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 43+ storel %a, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "a", "Id", %t0, 8, 5, 43+ storel %b, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "b", "Id", %t1, 8, 5, 43+ dbgloc 44+ %t2 =l loadl %a+ %t3 =l copy 0+ %t4 =w ceql %t2, %t3+ jnz %t4, @lbl2254, @lbl2255+@lbl2254+ dbgloc 45+ %t5 =l loadl %b+ %t6 =l copy 0+ %t7 =w ceql %t5, %t6+ jnz %t7, @lbl2257, @lbl2258+@lbl2257+ dbgloc 46+ %t8 =l copy 0+ ret %t8+@lbl2258+ dbgloc 48+ %t9 =l copy 1+ %t10 =l neg %t9+ ret %t10+@lbl2255+ dbgloc 50+ %t11 =l loadl %b+ %t12 =l copy 0+ %t13 =w ceql %t11, %t12+ jnz %t13, @lbl2260, @lbl2261+@lbl2260+ dbgloc 51+ %t14 =l copy 1+ ret %t14+@lbl2261+ dbgloc 53+ %t15 =l loadl %a+ %t16 =l copy 32+ %t17 =l call $bytes__bytes(l %t15, l %t16)+ %t18 =l loadl %b+ %t19 =l copy 32+ %t20 =l call $bytes__bytes(l %t18, l %t19)+ %t21 =l call $bytes__Bytes__cmp(l %t17, l %t20)+ ret %t21+}++export function w $objid__ChangeId__eql(l %a, l %b) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t5 =l alloc4 1+ dbgloc 56+ storel %a, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "a", "ChangeId", %t0, 8, 5, 56+ storel %b, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "b", "ChangeId", %t1, 8, 5, 56+ dbgloc 57+ %t2 =l loadl %a+ %t3 =l copy 0+ %t4 =w ceql %t2, %t3+ storew %t4, %t5+ jnz %t4, @lbl2267, @lbl2266+@lbl2266+ %t6 =l loadl %b+ %t7 =l copy 0+ %t8 =w ceql %t6, %t7+ storew %t8, %t5+ jmp @lbl2267+@lbl2267+ %t9 =w loadw %t5+ jnz %t9, @lbl2263, @lbl2264+@lbl2263+ dbgloc 58+ %t10 =l loadl %a+ %t11 =l loadl %b+ %t12 =w ceql %t10, %t11+ ret %t12+@lbl2264+ dbgloc 60+ %t13 =l loadl %a+ %t14 =l copy 16+ %t15 =l call $bytes__bytes(l %t13, l %t14)+ %t16 =l loadl %b+ %t17 =l copy 16+ %t18 =l call $bytes__bytes(l %t16, l %t17)+ %t19 =w call $bytes__Bytes__eql(l %t15, l %t18)+ ret %t19+}++export function l $objid__ChangeId__cmp(l %a, l %b) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 63+ storel %a, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "a", "ChangeId", %t0, 8, 5, 63+ storel %b, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "b", "ChangeId", %t1, 8, 5, 63+ dbgloc 64+ %t2 =l loadl %a+ %t3 =l copy 0+ %t4 =w ceql %t2, %t3+ jnz %t4, @lbl2268, @lbl2269+@lbl2268+ dbgloc 65+ %t5 =l loadl %b+ %t6 =l copy 0+ %t7 =w ceql %t5, %t6+ jnz %t7, @lbl2271, @lbl2272+@lbl2271+ dbgloc 66+ %t8 =l copy 0+ ret %t8+@lbl2272+ dbgloc 68+ %t9 =l copy 1+ %t10 =l neg %t9+ ret %t10+@lbl2269+ dbgloc 70+ %t11 =l loadl %b+ %t12 =l copy 0+ %t13 =w ceql %t11, %t12+ jnz %t13, @lbl2274, @lbl2275+@lbl2274+ dbgloc 71+ %t14 =l copy 1+ ret %t14+@lbl2275+ dbgloc 73+ %t15 =l loadl %a+ %t16 =l copy 16+ %t17 =l call $bytes__bytes(l %t15, l %t16)+ %t18 =l loadl %b+ %t19 =l copy 16+ %t20 =l call $bytes__bytes(l %t18, l %t19)+ %t21 =l call $bytes__Bytes__cmp(l %t17, l %t20)+ ret %t21+}++function w $objid__hex_digit(w %n) {+@start+ %t0 =l alloc8 8+ dbgloc 76+ storew %n, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "n", "u8", %t0, 1, 7, 76+ dbgloc 77+ %t1 =w copy 10+ %t2 =w csltw %n, %t1+ jnz %t2, @lbl2277, @lbl2278+@lbl2277+ dbgloc 78+ %t3 =l copy 48+ %t4 =l extsw %n+ %t6 =l extsw %t4+ %t5 =l add %t3, %t6+ ret %t5+@lbl2278+ dbgloc 80+ %t7 =l copy 87+ %t8 =l extsw %n+ %t10 =l extsw %t8+ %t9 =l add %t7, %t10+ ret %t9+}++export function w $objid__hex_encode(l %src, l %n, l %out) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t4 =l alloc8 8+ %t15 =l alloc8 8+ dbgloc 83+ storel %src, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "src", "ref u8", %t0, 8, 7, 83+ storel %n, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "n", "usize", %t1, 8, 5, 83+ storel %out, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "out", "ref u8", %t2, 8, 7, 83+ dbgloc 84+ %t3 =l copy 0+ storel %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "i", "usize", %t4, 8, 5, 84+ dbgloc 85+ jmp @lbl2280+@lbl2280+ %t5 =l loadl %t4+ %t6 =w csltl %t5, %n+ jnz %t6, @lbl2281, @lbl2283+@lbl2281+ dbgloc 86+ dbgloc 87+ %t9 =l loadl %t4+ %t10 =l copy %t9+ %t8 =l add %src, %t10+ %t11 =w loadub %t8+ %t7 =l extsw %t11+ %t12 =w copy %t7+ %t13 =w copy %t12+ %t14 =w extub %t13+ storew %t14, %t15+ call $__sx_dbg_keep(l %t15)+ dbgvar "v", "u8", %t15, 1, 7, 87+ dbgloc 88+ %t18 =l loadl %t4+ %t19 =l copy 2+ %t20 =l mul %t18, %t19+ %t21 =l copy %t20+ %t17 =l add %out, %t21+ %t22 =l extsw %t14+ %t23 =l copy 4+ %t25 =l extuw %t22+ %t24 =l shr %t25, %t23+ %t27 =w copy %t24+ %t26 =w call $objid__hex_digit(w %t27)+ storeb %t26, %t17+ %t16 =l copy 0+ dbgloc 89+ %t30 =l loadl %t4+ %t31 =l copy 2+ %t32 =l mul %t30, %t31+ %t33 =l copy 1+ %t34 =l add %t32, %t33+ %t35 =l copy %t34+ %t29 =l add %out, %t35+ %t36 =l extsw %t14+ %t37 =l copy 15+ %t39 =l extsw %t36+ %t38 =l and %t39, %t37+ %t41 =w copy %t38+ %t40 =w call $objid__hex_digit(w %t41)+ storeb %t40, %t29+ %t28 =l copy 0+ dbgloc 91+ %t42 =l loadl %t4+ %t43 =l add %t42, 1+ storel %t43, %t4+ jmp @lbl2282+@lbl2282+ jmp @lbl2280+@lbl2283+ ret 0+}++function w $objid__hex_value(w %c) {+@start+ %t0 =l alloc8 8+ %t4 =l alloc4 1+ %t15 =l alloc4 1+ %t26 =l alloc4 1+ dbgloc 95+ storew %c, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "c", "u8", %t0, 1, 7, 95+ dbgloc 96+ %t1 =w copy 48+ %t3 =w csltw %c, %t1+ %t2 =w ceqw %t3, 0+ storew %t2, %t4+ jnz %t2, @lbl2287, @lbl2288+@lbl2287+ %t5 =w copy 57+ %t6 =w cslew %c, %t5+ storew %t6, %t4+ jmp @lbl2288+@lbl2288+ %t7 =w loadw %t4+ jnz %t7, @lbl2284, @lbl2285+@lbl2284+ dbgloc 97+ %t8 =l extsw %c+ %t9 =l copy 48+ %t11 =l extsw %t8+ %t10 =l sub %t11, %t9+ ret %t10+@lbl2285+ dbgloc 99+ %t12 =w copy 97+ %t14 =w csltw %c, %t12+ %t13 =w ceqw %t14, 0+ storew %t13, %t15+ jnz %t13, @lbl2292, @lbl2293+@lbl2292+ %t16 =w copy 102+ %t17 =w cslew %c, %t16+ storew %t17, %t15+ jmp @lbl2293+@lbl2293+ %t18 =w loadw %t15+ jnz %t18, @lbl2289, @lbl2290+@lbl2289+ dbgloc 100+ %t19 =l extsw %c+ %t20 =l copy 87+ %t22 =l extsw %t19+ %t21 =l sub %t22, %t20+ ret %t21+@lbl2290+ dbgloc 102+ %t23 =w copy 65+ %t25 =w csltw %c, %t23+ %t24 =w ceqw %t25, 0+ storew %t24, %t26+ jnz %t24, @lbl2297, @lbl2298+@lbl2297+ %t27 =w copy 70+ %t28 =w cslew %c, %t27+ storew %t28, %t26+ jmp @lbl2298+@lbl2298+ %t29 =w loadw %t26+ jnz %t29, @lbl2294, @lbl2295+@lbl2294+ dbgloc 103+ %t30 =l extsw %c+ %t31 =l copy 55+ %t33 =l extsw %t30+ %t32 =l sub %t33, %t31+ ret %t32+@lbl2295+ dbgloc 105+ %t34 =l copy 1+ %t35 =l neg %t34+ %t36 =w copy %t35+ ret %t36+}++export function w $objid__hex_decode(l %s, l %n, l %out) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t4 =l alloc8 8+ %t17 =l alloc8 8+ %t30 =l alloc8 8+ %t33 =l alloc4 1+ dbgloc 109+ storel %s, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "s", "ref u8", %t0, 8, 7, 109+ storel %n, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "n", "usize", %t1, 8, 5, 109+ storel %out, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "out", "ref u8", %t2, 8, 7, 109+ dbgloc 110+ %t3 =l copy 0+ storel %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "i", "usize", %t4, 8, 5, 110+ dbgloc 111+ jmp @lbl2299+@lbl2299+ %t5 =l loadl %t4+ %t6 =w csltl %t5, %n+ jnz %t6, @lbl2300, @lbl2302+@lbl2300+ dbgloc 112+ %t9 =l loadl %t4+ %t10 =l copy 2+ %t11 =l mul %t9, %t10+ %t12 =l copy %t11+ %t8 =l add %s, %t12+ %t13 =w loadub %t8+ %t7 =l extsw %t13+ %t15 =w copy %t7+ %t14 =w call $objid__hex_value(w %t15)+ %t16 =w copy %t14+ storew %t16, %t17+ call $__sx_dbg_keep(l %t17)+ dbgvar "hi", "i32", %t17, 4, 5, 112+ dbgloc 113+ %t20 =l loadl %t4+ %t21 =l copy 2+ %t22 =l mul %t20, %t21+ %t23 =l copy 1+ %t24 =l add %t22, %t23+ %t25 =l copy %t24+ %t19 =l add %s, %t25+ %t26 =w loadub %t19+ %t18 =l extsw %t26+ %t28 =w copy %t18+ %t27 =w call $objid__hex_value(w %t28)+ %t29 =w copy %t27+ storew %t29, %t30+ call $__sx_dbg_keep(l %t30)+ dbgvar "lo", "i32", %t30, 4, 5, 113+ dbgloc 114+ %t31 =w copy 0+ %t32 =w csltw %t16, %t31+ storew %t32, %t33+ jnz %t32, @lbl2307, @lbl2306+@lbl2306+ %t34 =w copy 0+ %t35 =w csltw %t29, %t34+ storew %t35, %t33+ jmp @lbl2307+@lbl2307+ %t36 =w loadw %t33+ jnz %t36, @lbl2303, @lbl2304+@lbl2303+ dbgloc 115+ %t37 =l copy 0+ ret %t37+@lbl2304+ dbgloc 117+ %t40 =l loadl %t4+ %t41 =l copy %t40+ %t39 =l add %out, %t41+ %t42 =l extsw %t16+ %t43 =l copy 16+ %t45 =l extsw %t42+ %t44 =l mul %t45, %t43+ %t46 =l extsw %t29+ %t48 =l extsw %t46+ %t47 =l add %t44, %t48+ storeb %t47, %t39+ %t38 =l copy 0+ dbgloc 118+ %t49 =l loadl %t4+ %t50 =l add %t49, 1+ storel %t50, %t4+ jmp @lbl2301+@lbl2301+ jmp @lbl2299+@lbl2302+ dbgloc 120+ %t51 =l copy 1+ ret %t51+}++export function l $objid__Id__hex(l %v) {+@start+ %t0 =l alloc8 8+ %t8 =l alloc8 8+ dbgloc 124+ storel %v, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "v", "Id", %t0, 8, 5, 124+ dbgloc 125+ %t1 =l loadl %v+ %t2 =l copy 0+ %t3 =w cnel %t1, %t2+ jnz %t3, @lbl2308, @lbl2309+@lbl2309+ %t4 =l copy $__str177+ call $dprintf(w 2, l %t4)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl2308+ dbgloc 128+ %t6 =l copy 65+ %t5 =l call $malloc(l %t6)+ %t7 =l copy %t5+ storel %t7, %t8+ call $__sx_dbg_keep(l %t8)+ dbgvar "out", "ref u8", %t8, 8, 7, 128+ dbgloc 129+ %t9 =l loadl %v+ %t10 =l copy 32+ %t11 =w call $objid__hex_encode(l %t9, l %t10, l %t7)+ dbgloc 130+ %t14 =l copy 64+ %t13 =l add %t7, %t14+ %t15 =l copy 0+ storeb %t15, %t13+ %t12 =l copy 0+ dbgloc 131+ ret %t7+}++export function l $objid__ChangeId__hex(l %v) {+@start+ %t0 =l alloc8 8+ %t8 =l alloc8 8+ dbgloc 135+ storel %v, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "v", "ChangeId", %t0, 8, 5, 135+ dbgloc 136+ %t1 =l loadl %v+ %t2 =l copy 0+ %t3 =w cnel %t1, %t2+ jnz %t3, @lbl2310, @lbl2311+@lbl2311+ %t4 =l copy $__str178+ call $dprintf(w 2, l %t4)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl2310+ dbgloc 139+ %t6 =l copy 33+ %t5 =l call $malloc(l %t6)+ %t7 =l copy %t5+ storel %t7, %t8+ call $__sx_dbg_keep(l %t8)+ dbgvar "out", "ref u8", %t8, 8, 7, 139+ dbgloc 140+ %t9 =l loadl %v+ %t10 =l copy 16+ %t11 =w call $objid__hex_encode(l %t9, l %t10, l %t7)+ dbgloc 141+ %t14 =l copy 32+ %t13 =l add %t7, %t14+ %t15 =l copy 0+ storeb %t15, %t13+ %t12 =l copy 0+ dbgloc 142+ ret %t7+}++export function w $objid__object_id_into(w %type_byte, l %body, l %out) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t9 =l alloc8 8+ dbgloc 146+ storew %type_byte, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "type_byte", "u8", %t0, 1, 7, 146+ storel %body, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "body", "bytes.Bytes", %t1, 8, 5, 146+ storel %out, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "out", "ref u8", %t2, 8, 7, 146+ dbgloc 147+ %t4 =l add %body, 8+ %t3 =l loadl %t4+ %t5 =l copy 9+ %t6 =l add %t3, %t5+ %t7 =l call $buf__new(l %t6)+ %t8 =l call $malloc(l 24)+ call $memset(l %t8, w 0, l 24)+ call $memcpy(l %t8, l %t7, l 24)+ storel %t8, %t9+ call $__sx_dbg_keep(l %t9)+ dbgvar "b", "buf.Buf", %t9, 8, 5, 147+ dbgloc 148+ %t10 =l loadl %t9+ %t11 =l copy $__str179+ %t12 =l copy 7+ %t13 =w call $buf__Buf__put_raw(l %t10, l %t11, l %t12)+ dbgloc 149+ %t14 =l loadl %t9+ %t15 =l copy 0+ %t17 =w copy %t15+ %t16 =w call $buf__Buf__put_u8(l %t14, w %t17)+ dbgloc 150+ %t18 =l loadl %t9+ %t19 =w call $buf__Buf__put_u8(l %t18, w %type_byte)+ dbgloc 151+ %t20 =l loadl %t9+ %t21 =w call $buf__Buf__put_bytes(l %t20, l %body)+ dbgloc 152+ %t22 =l loadl %t9+ %t23 =l loadl %t22+ %t24 =l loadl %t9+ %t26 =l add %t24, 8+ %t25 =l loadl %t26+ %t27 =w call $b3__hash(l %t23, l %t25, l %out)+ dbgloc 153+ %t28 =l loadl %t9+ %t29 =w call $buf__Buf__free(l %t28)+ ret 0+}++export function l $objid__object_id(w %type_byte, l %body) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t5 =l alloc8 8+ %t7 =l alloc8 8+ dbgloc 157+ storew %type_byte, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "type_byte", "u8", %t0, 1, 7, 157+ storel %body, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "body", "bytes.Bytes", %t1, 8, 5, 157+ dbgloc 158+ %t3 =l copy 32+ %t2 =l call $malloc(l %t3)+ %t4 =l copy %t2+ storel %t4, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "out", "ref u8", %t5, 8, 7, 158+ dbgloc 159+ %t6 =w call $objid__object_id_into(w %type_byte, l %body, l %t4)+ dbgloc 160+ storel %t4, %t7+ %t9 =l call $malloc(l 8)+ call $memcpy(l %t9, l %t7, l 8)+ ret %t9+}++export function l $objid__id_from_bytes(w %type_byte, l %body) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 163+ storew %type_byte, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "type_byte", "u8", %t0, 1, 7, 163+ storel %body, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "body", "bytes.Bytes", %t1, 8, 5, 163+ dbgloc 164+ %t2 =l call $objid__object_id(w %type_byte, l %body)+ ret %t2+}++dbgfile "src/object/types.sx"+data $types__CHUNK = { l 1 }+data $types__BLOB = { l 2 }+data $types__TREE = { l 3 }+data $types__COMMIT = { l 4 }+data $types__CONFLICT = { l 5 }+data $types__OPERATION = { l 6 }+data $types__VIEW = { l 7 }+export function l $types__name(w %t) {+@start+ %t0 =l alloc8 8+ dbgloc 13+ storew %t, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "t", "u8", %t0, 1, 7, 13+ dbgloc 14+ %t1 =w copy 1+ %t2 =w ceqw %t, %t1+ jnz %t2, @lbl2312, @lbl2313+@lbl2312+ dbgloc 15+ ret $__sv69+@lbl2313+ dbgloc 17+ %t3 =w copy 2+ %t4 =w ceqw %t, %t3+ jnz %t4, @lbl2315, @lbl2316+@lbl2315+ dbgloc 18+ ret $__sv70+@lbl2316+ dbgloc 20+ %t5 =w copy 3+ %t6 =w ceqw %t, %t5+ jnz %t6, @lbl2318, @lbl2319+@lbl2318+ dbgloc 21+ ret $__sv71+@lbl2319+ dbgloc 23+ %t7 =w copy 4+ %t8 =w ceqw %t, %t7+ jnz %t8, @lbl2321, @lbl2322+@lbl2321+ dbgloc 24+ ret $__sv72+@lbl2322+ dbgloc 26+ %t9 =w copy 5+ %t10 =w ceqw %t, %t9+ jnz %t10, @lbl2324, @lbl2325+@lbl2324+ dbgloc 27+ ret $__sv73+@lbl2325+ dbgloc 29+ %t11 =w copy 6+ %t12 =w ceqw %t, %t11+ jnz %t12, @lbl2327, @lbl2328+@lbl2327+ dbgloc 30+ ret $__sv74+@lbl2328+ dbgloc 32+ %t13 =w copy 7+ %t14 =w ceqw %t, %t13+ jnz %t14, @lbl2330, @lbl2331+@lbl2330+ dbgloc 33+ ret $__sv75+@lbl2331+ dbgloc 35+ ret $__sv76+}++export function w $types__is_valid(w %t) {+@start+ %t0 =l alloc8 8+ %t4 =l alloc4 1+ dbgloc 38+ storew %t, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "t", "u8", %t0, 1, 7, 38+ dbgloc 39+ %t1 =w copy 1+ %t3 =w csltw %t, %t1+ %t2 =w ceqw %t3, 0+ storew %t2, %t4+ jnz %t2, @lbl2333, @lbl2334+@lbl2333+ %t5 =w copy 7+ %t6 =w cslew %t, %t5+ storew %t6, %t4+ jmp @lbl2334+@lbl2334+ %t7 =w loadw %t4+ ret %t7+}++dbgfile "src/core/error.sx"+export function l $derr__fail(l %kind, l %offset) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 16+ dbgloc 31+ storel %kind, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "kind", "ErrorKind", %t0, 8, 5, 31+ storel %offset, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "offset", "usize", %t1, 8, 5, 31+ dbgloc 32+ storel %kind, %t2+ %t4 =l add %t2, 8+ storel %offset, %t4+ %t5 =l call $malloc(l 16)+ call $memcpy(l %t5, l %t2, l 16)+ ret %t5+}++export function l $derr__ErrorKind__name(l %k) {+@start+ %t0 =l alloc8 8+ dbgloc 36+ storel %k, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "k", "ErrorKind", %t0, 8, 5, 36+ dbgloc 37+ %t1 =w ceql %k, 0+ jnz %t1, @lbl2336, @lbl2337+@lbl2336+ dbgloc 39+ ret $__sv77+@lbl2337+ %t2 =w ceql %k, 1+ jnz %t2, @lbl2338, @lbl2339+@lbl2338+ dbgloc 42+ ret $__sv78+@lbl2339+ %t3 =w ceql %k, 2+ jnz %t3, @lbl2340, @lbl2341+@lbl2340+ dbgloc 45+ ret $__sv79+@lbl2341+ %t4 =w ceql %k, 3+ jnz %t4, @lbl2342, @lbl2343+@lbl2342+ dbgloc 48+ ret $__sv80+@lbl2343+ %t5 =w ceql %k, 4+ jnz %t5, @lbl2344, @lbl2345+@lbl2344+ dbgloc 51+ ret $__sv81+@lbl2345+ %t6 =w ceql %k, 5+ jnz %t6, @lbl2346, @lbl2347+@lbl2346+ dbgloc 54+ ret $__sv82+@lbl2347+ %t7 =w ceql %k, 6+ jnz %t7, @lbl2348, @lbl2349+@lbl2348+ dbgloc 57+ ret $__sv83+@lbl2349+ %t8 =w ceql %k, 7+ jnz %t8, @lbl2350, @lbl2351+@lbl2350+ dbgloc 60+ ret $__sv84+@lbl2351+ %t9 =w ceql %k, 8+ jnz %t9, @lbl2352, @lbl2353+@lbl2352+ dbgloc 63+ ret $__sv85+@lbl2353+ %t10 =w ceql %k, 9+ jnz %t10, @lbl2354, @lbl2355+@lbl2354+ dbgloc 66+ ret $__sv86+@lbl2355+ %t11 =w ceql %k, 10+ jnz %t11, @lbl2356, @lbl2357+@lbl2356+ dbgloc 69+ ret $__sv87+@lbl2357+ %t12 =w ceql %k, 11+ jnz %t12, @lbl2358, @lbl2359+@lbl2358+ dbgloc 72+ ret $__sv88+@lbl2359+ %t13 =w ceql %k, 12+ jnz %t13, @lbl2360, @lbl2361+@lbl2360+ dbgloc 75+ ret $__sv89+@lbl2361+ %t14 =w ceql %k, 13+ jnz %t14, @lbl2362, @lbl2363+@lbl2362+ dbgloc 78+ ret $__sv90+@lbl2363+ %t15 =w ceql %k, 14+ jnz %t15, @lbl2364, @lbl2365+@lbl2364+ dbgloc 81+ ret $__sv91+@lbl2365+@lbl2335+ dbgloc 84+ ret $__sv92+}++dbgfile "src/core/reader.sx"+data $reader__MAX_VARINT_BYTES = { l 10 }+export function l $reader__new(l %data, l %len) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 24+ dbgloc 18+ storel %data, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "data", "ref u8", %t0, 8, 7, 18+ storel %len, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "len", "usize", %t1, 8, 5, 18+ dbgloc 19+ storel %data, %t2+ %t4 =l add %t2, 8+ storel %len, %t4+ %t5 =l copy 0+ %t6 =l add %t2, 16+ storel %t5, %t6+ %t7 =l call $malloc(l 24)+ call $memcpy(l %t7, l %t2, l 24)+ ret %t7+}++export function l $reader__Reader__offset(l %r) {+@start+ %t0 =l alloc8 8+ dbgloc 22+ storel %r, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "r", "Reader", %t0, 8, 5, 22+ dbgloc 23+ %t2 =l add %r, 16+ %t1 =l loadl %t2+ ret %t1+}++export function l $reader__Reader__remaining(l %r) {+@start+ %t0 =l alloc8 8+ dbgloc 26+ storel %r, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "r", "Reader", %t0, 8, 5, 26+ dbgloc 27+ %t2 =l add %r, 16+ %t1 =l loadl %t2+ %t4 =l add %r, 8+ %t3 =l loadl %t4+ %t5 =w cslel %t1, %t3+ jnz %t5, @lbl2366, @lbl2367+@lbl2367+ %t6 =l copy $__str204+ call $dprintf(w 2, l %t6)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl2366+ dbgloc 30+ %t8 =l add %r, 8+ %t7 =l loadl %t8+ %t10 =l add %r, 16+ %t9 =l loadl %t10+ %t11 =l sub %t7, %t9+ ret %t11+}++export function w $reader__Reader__at_end(l %r) {+@start+ %t0 =l alloc8 8+ dbgloc 33+ storel %r, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "r", "Reader", %t0, 8, 5, 33+ dbgloc 34+ %t2 =l add %r, 16+ %t1 =l loadl %t2+ %t4 =l add %r, 8+ %t3 =l loadl %t4+ %t6 =w csltl %t1, %t3+ %t5 =w ceqw %t6, 0+ ret %t5+}++export function l $reader__Reader__fail(l %r, l %kind) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 37+ storel %r, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "r", "Reader", %t0, 8, 5, 37+ storel %kind, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "kind", "derr.ErrorKind", %t1, 8, 5, 37+ dbgloc 38+ %t3 =l add %r, 16+ %t2 =l loadl %t3+ %t4 =l call $derr__fail(l %kind, l %t2)+ ret %t4+}++export function l $reader__Reader__read_u8(l %__ret, l %r) {+@start+ %t0 =l alloc8 8+ %t9 =l alloc8 16+ %t28 =l alloc8 8+ %t35 =l alloc8 16+ dbgloc 41+ storel %r, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "r", "Reader", %t0, 8, 5, 41+ dbgloc 42+ %t1 =l loadl %t0+ %t3 =l add %t1, 16+ %t2 =l loadl %t3+ %t4 =l loadl %t0+ %t6 =l add %t4, 8+ %t5 =l loadl %t6+ %t8 =w csltl %t2, %t5+ %t7 =w ceqw %t8, 0+ jnz %t7, @lbl2368, @lbl2369+@lbl2368+ dbgloc 43+ call $memset(l %t9, w 0, l 16)+ storel 1, %t9+ %t10 =l copy 0+ %t11 =l loadl %t0+ %t13 =l add %t11, 16+ %t12 =l loadl %t13+ %t14 =l call $derr__fail(l %t10, l %t12)+ %t15 =l add %t9, 8+ storel %t14, %t15+ call $memcpy(l %__ret, l %t9, l 16)+ ret %__ret+@lbl2369+ dbgloc 45+ %t18 =l loadl %t0+ %t19 =l loadl %t18+ %t20 =l loadl %t0+ %t22 =l add %t20, 16+ %t21 =l loadl %t22+ %t23 =l copy %t21+ %t17 =l add %t19, %t23+ %t24 =w loadub %t17+ %t16 =l extsw %t24+ %t25 =w copy %t16+ %t26 =w copy %t25+ %t27 =w extub %t26+ storew %t27, %t28+ call $__sx_dbg_keep(l %t28)+ dbgvar "v", "u8", %t28, 1, 7, 45+ dbgloc 46+ %t29 =l loadl %t0+ %t31 =l add %t29, 16+ %t30 =l loadl %t31+ %t32 =l add %t30, 1+ %t33 =l loadl %t0+ %t34 =l add %t33, 16+ storel %t32, %t34+ dbgloc 47+ call $memset(l %t35, w 0, l 16)+ storel 0, %t35+ %t36 =l add %t35, 8+ storew %t27, %t36+ call $memcpy(l %__ret, l %t35, l 16)+ ret %__ret+}++export function l $reader__Reader__read_u16_le(l %__ret, l %r) {+@start+ %t0 =l alloc8 8+ %t5 =l alloc8 16+ %t24 =l alloc8 8+ %t32 =l alloc8 16+ dbgloc 50+ storel %r, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "r", "Reader", %t0, 8, 5, 50+ dbgloc 51+ %t1 =l loadl %t0+ %t2 =l call $reader__Reader__remaining(l %t1)+ %t3 =l copy 2+ %t4 =w csltl %t2, %t3+ jnz %t4, @lbl2371, @lbl2372+@lbl2371+ dbgloc 52+ call $memset(l %t5, w 0, l 16)+ storel 1, %t5+ %t6 =l copy 0+ %t7 =l loadl %t0+ %t9 =l add %t7, 16+ %t8 =l loadl %t9+ %t10 =l call $derr__fail(l %t6, l %t8)+ %t11 =l add %t5, 8+ storel %t10, %t11+ call $memcpy(l %__ret, l %t5, l 16)+ ret %__ret+@lbl2372+ dbgloc 54+ %t14 =l loadl %t0+ %t15 =l loadl %t14+ %t16 =l loadl %t0+ %t18 =l add %t16, 16+ %t17 =l loadl %t18+ %t19 =l copy %t17+ %t13 =l add %t15, %t19+ %t20 =w loaduh %t13+ %t12 =l extsw %t20+ %t21 =w copy %t12+ %t22 =w copy %t21+ %t23 =w extuh %t22+ storew %t23, %t24+ call $__sx_dbg_keep(l %t24)+ dbgvar "v", "u16", %t24, 2, 7, 54+ dbgloc 55+ %t25 =l copy 2+ %t26 =l loadl %t0+ %t28 =l add %t26, 16+ %t27 =l loadl %t28+ %t29 =l add %t27, %t25+ %t30 =l loadl %t0+ %t31 =l add %t30, 16+ storel %t29, %t31+ dbgloc 56+ call $memset(l %t32, w 0, l 16)+ storel 0, %t32+ %t33 =l add %t32, 8+ storew %t23, %t33+ call $memcpy(l %__ret, l %t32, l 16)+ ret %__ret+}++export function l $reader__Reader__read_u32_le(l %__ret, l %r) {+@start+ %t0 =l alloc8 8+ %t5 =l alloc8 16+ %t22 =l alloc8 8+ %t30 =l alloc8 16+ dbgloc 59+ storel %r, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "r", "Reader", %t0, 8, 5, 59+ dbgloc 60+ %t1 =l loadl %t0+ %t2 =l call $reader__Reader__remaining(l %t1)+ %t3 =l copy 4+ %t4 =w csltl %t2, %t3+ jnz %t4, @lbl2374, @lbl2375+@lbl2374+ dbgloc 61+ call $memset(l %t5, w 0, l 16)+ storel 1, %t5+ %t6 =l copy 0+ %t7 =l loadl %t0+ %t9 =l add %t7, 16+ %t8 =l loadl %t9+ %t10 =l call $derr__fail(l %t6, l %t8)+ %t11 =l add %t5, 8+ storel %t10, %t11+ call $memcpy(l %__ret, l %t5, l 16)+ ret %__ret+@lbl2375+ dbgloc 63+ %t14 =l loadl %t0+ %t15 =l loadl %t14+ %t16 =l loadl %t0+ %t18 =l add %t16, 16+ %t17 =l loadl %t18+ %t19 =l copy %t17+ %t13 =l add %t15, %t19+ %t20 =w loadsw %t13+ %t12 =l extsw %t20+ %t21 =w copy %t12+ storew %t21, %t22+ call $__sx_dbg_keep(l %t22)+ dbgvar "v", "u32", %t22, 4, 7, 63+ dbgloc 64+ %t23 =l copy 4+ %t24 =l loadl %t0+ %t26 =l add %t24, 16+ %t25 =l loadl %t26+ %t27 =l add %t25, %t23+ %t28 =l loadl %t0+ %t29 =l add %t28, 16+ storel %t27, %t29+ dbgloc 65+ call $memset(l %t30, w 0, l 16)+ storel 0, %t30+ %t31 =l add %t30, 8+ storew %t21, %t31+ call $memcpy(l %__ret, l %t30, l 16)+ ret %__ret+}++export function l $reader__Reader__read_u64_le(l %__ret, l %r) {+@start+ %t0 =l alloc8 8+ %t5 =l alloc8 16+ %t21 =l alloc8 8+ %t29 =l alloc8 16+ dbgloc 68+ storel %r, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "r", "Reader", %t0, 8, 5, 68+ dbgloc 69+ %t1 =l loadl %t0+ %t2 =l call $reader__Reader__remaining(l %t1)+ %t3 =l copy 8+ %t4 =w csltl %t2, %t3+ jnz %t4, @lbl2377, @lbl2378+@lbl2377+ dbgloc 70+ call $memset(l %t5, w 0, l 16)+ storel 1, %t5+ %t6 =l copy 0+ %t7 =l loadl %t0+ %t9 =l add %t7, 16+ %t8 =l loadl %t9+ %t10 =l call $derr__fail(l %t6, l %t8)+ %t11 =l add %t5, 8+ storel %t10, %t11+ call $memcpy(l %__ret, l %t5, l 16)+ ret %__ret+@lbl2378+ dbgloc 72+ %t14 =l loadl %t0+ %t15 =l loadl %t14+ %t16 =l loadl %t0+ %t18 =l add %t16, 16+ %t17 =l loadl %t18+ %t19 =l copy %t17+ %t13 =l add %t15, %t19+ %t12 =l loadl %t13+ %t20 =l copy %t12+ storel %t20, %t21+ call $__sx_dbg_keep(l %t21)+ dbgvar "v", "u64", %t21, 8, 7, 72+ dbgloc 73+ %t22 =l copy 8+ %t23 =l loadl %t0+ %t25 =l add %t23, 16+ %t24 =l loadl %t25+ %t26 =l add %t24, %t22+ %t27 =l loadl %t0+ %t28 =l add %t27, 16+ storel %t26, %t28+ dbgloc 74+ call $memset(l %t29, w 0, l 16)+ storel 0, %t29+ %t30 =l add %t29, 8+ storel %t20, %t30+ call $memcpy(l %__ret, l %t29, l 16)+ ret %__ret+}++export function l $reader__Reader__read_i16_le(l %__ret, l %r) {+@start+ %t0 =l alloc8 8+ %t3 =l alloc8 16+ %t11 =l alloc8 8+ %t12 =l alloc8 16+ dbgloc 77+ storel %r, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "r", "Reader", %t0, 8, 5, 77+ dbgloc 78+ %t1 =l loadl %t0+ %t2 =l call $reader__Reader__read_u16_le(l %t3, l %t1)+ %t4 =l loadl %t3+ %t5 =w ceql %t4, 0+ jnz %t5, @lbl2380, @lbl2381+@lbl2381+ call $memcpy(l %__ret, l %t3, l 16)+ ret %__ret+@lbl2380+ %t7 =l add %t3, 8+ %t6 =w loadw %t7+ %t8 =w copy %t6+ %t9 =w copy %t8+ %t10 =w extuh %t9+ storew %t10, %t11+ call $__sx_dbg_keep(l %t11)+ dbgvar "v", "u16", %t11, 2, 7, 78+ dbgloc 79+ call $memset(l %t12, w 0, l 16)+ storel 0, %t12+ %t13 =l add %t12, 8+ storew %t10, %t13+ call $memcpy(l %__ret, l %t12, l 16)+ ret %__ret+}++export function l $reader__Reader__read_i64_le(l %__ret, l %r) {+@start+ %t0 =l alloc8 8+ %t3 =l alloc8 16+ %t8 =l alloc8 8+ %t9 =l alloc8 16+ dbgloc 82+ storel %r, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "r", "Reader", %t0, 8, 5, 82+ dbgloc 83+ %t1 =l loadl %t0+ %t2 =l call $reader__Reader__read_u64_le(l %t3, l %t1)+ %t4 =l loadl %t3+ %t5 =w ceql %t4, 0+ jnz %t5, @lbl2382, @lbl2383+@lbl2383+ call $memcpy(l %__ret, l %t3, l 16)+ ret %__ret+@lbl2382+ %t7 =l add %t3, 8+ %t6 =l loadl %t7+ storel %t6, %t8+ call $__sx_dbg_keep(l %t8)+ dbgvar "v", "u64", %t8, 8, 7, 83+ dbgloc 84+ call $memset(l %t9, w 0, l 16)+ storel 0, %t9+ %t10 =l copy %t6+ %t11 =l add %t9, 8+ storel %t10, %t11+ call $memcpy(l %__ret, l %t9, l 16)+ ret %__ret+}++export function l $reader__Reader__read_varint(l %__ret, l %r) {+@start+ %t0 =l alloc8 8+ %t4 =l alloc8 8+ %t6 =l alloc8 8+ %t8 =l alloc8 8+ %t10 =l alloc8 8+ %t16 =l alloc8 16+ %t24 =l alloc8 8+ %t30 =l alloc8 8+ %t34 =l alloc4 1+ %t38 =l alloc8 16+ %t55 =l alloc4 1+ %t59 =l alloc8 16+ %t63 =l alloc8 16+ %t71 =l alloc8 16+ dbgloc 87+ storel %r, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "r", "Reader", %t0, 8, 5, 87+ dbgloc 88+ %t1 =l loadl %t0+ %t3 =l add %t1, 16+ %t2 =l loadl %t3+ storel %t2, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "start", "usize", %t4, 8, 5, 88+ dbgloc 89+ %t5 =l copy 0+ storel %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "value", "u64", %t6, 8, 7, 89+ dbgloc 90+ %t7 =l copy 0+ storel %t7, %t8+ call $__sx_dbg_keep(l %t8)+ dbgvar "shift", "u64", %t8, 8, 7, 90+ dbgloc 91+ %t9 =l copy 0+ storel %t9, %t10+ call $__sx_dbg_keep(l %t10)+ dbgvar "i", "usize", %t10, 8, 5, 91+ dbgloc 92+ jmp @lbl2384+@lbl2384+ %t11 =l loadl %t10+ %t12 =l copy 10+ %t13 =w csltl %t11, %t12+ jnz %t13, @lbl2385, @lbl2387+@lbl2385+ dbgloc 93+ %t14 =l loadl %t0+ %t15 =l call $reader__Reader__read_u8(l %t16, l %t14)+ %t17 =l loadl %t16+ %t18 =w ceql %t17, 0+ jnz %t18, @lbl2388, @lbl2389+@lbl2389+ call $memcpy(l %__ret, l %t16, l 16)+ ret %__ret+@lbl2388+ %t20 =l add %t16, 8+ %t19 =w loadw %t20+ %t21 =w copy %t19+ %t22 =w copy %t21+ %t23 =w extub %t22+ storew %t23, %t24+ call $__sx_dbg_keep(l %t24)+ dbgvar "b", "u8", %t24, 1, 7, 93+ dbgloc 94+ %t25 =l extsw %t23+ %t26 =l copy 127+ %t28 =l extsw %t25+ %t27 =l and %t28, %t26+ %t29 =l copy %t27+ storel %t29, %t30+ call $__sx_dbg_keep(l %t30)+ dbgvar "low", "u64", %t30, 8, 7, 94+ dbgloc 95+ %t31 =l loadl %t8+ %t32 =l copy 63+ %t33 =w ceql %t31, %t32+ storew %t33, %t34+ jnz %t33, @lbl2393, @lbl2394+@lbl2393+ %t35 =l copy 1+ %t36 =w csgtl %t29, %t35+ storew %t36, %t34+ jmp @lbl2394+@lbl2394+ %t37 =w loadw %t34+ jnz %t37, @lbl2390, @lbl2391+@lbl2390+ dbgloc 96+ call $memset(l %t38, w 0, l 16)+ storel 1, %t38+ %t39 =l copy 2+ %t40 =l call $derr__fail(l %t39, l %t2)+ %t41 =l add %t38, 8+ storel %t40, %t41+ call $memcpy(l %__ret, l %t38, l 16)+ ret %__ret+@lbl2391+ dbgloc 98+ %t42 =l loadl %t6+ %t43 =l loadl %t8+ %t44 =l shl %t29, %t43+ %t45 =l or %t42, %t44+ storel %t45, %t6+ dbgloc 99+ %t46 =l extsw %t23+ %t47 =l copy 128+ %t49 =l extsw %t46+ %t48 =l and %t49, %t47+ %t50 =l copy 0+ %t51 =w ceql %t48, %t50+ jnz %t51, @lbl2395, @lbl2396+@lbl2395+ dbgloc 100+ %t52 =l loadl %t10+ %t53 =l copy 0+ %t54 =w csgtl %t52, %t53+ storew %t54, %t55+ jnz %t54, @lbl2401, @lbl2402+@lbl2401+ %t56 =l copy 0+ %t57 =w ceql %t29, %t56+ storew %t57, %t55+ jmp @lbl2402+@lbl2402+ %t58 =w loadw %t55+ jnz %t58, @lbl2398, @lbl2399+@lbl2398+ dbgloc 101+ call $memset(l %t59, w 0, l 16)+ storel 1, %t59+ %t60 =l copy 1+ %t61 =l call $derr__fail(l %t60, l %t2)+ %t62 =l add %t59, 8+ storel %t61, %t62+ call $memcpy(l %__ret, l %t59, l 16)+ ret %__ret+@lbl2399+ dbgloc 103+ call $memset(l %t63, w 0, l 16)+ storel 0, %t63+ %t64 =l loadl %t6+ %t65 =l add %t63, 8+ storel %t64, %t65+ call $memcpy(l %__ret, l %t63, l 16)+ ret %__ret+@lbl2396+ dbgloc 105+ %t66 =l copy 7+ %t67 =l loadl %t8+ %t68 =l add %t67, %t66+ storel %t68, %t8+ dbgloc 106+ %t69 =l loadl %t10+ %t70 =l add %t69, 1+ storel %t70, %t10+ jmp @lbl2386+@lbl2386+ jmp @lbl2384+@lbl2387+ dbgloc 108+ call $memset(l %t71, w 0, l 16)+ storel 1, %t71+ %t72 =l copy 2+ %t73 =l call $derr__fail(l %t72, l %t2)+ %t74 =l add %t71, 8+ storel %t73, %t74+ call $memcpy(l %__ret, l %t71, l 16)+ ret %__ret+}++export function l $reader__Reader__read_raw(l %__ret, l %r, l %n) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t5 =l alloc8 16+ %t15 =l alloc8 8+ %t22 =l alloc8 16+ dbgloc 111+ storel %r, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "r", "Reader", %t0, 8, 5, 111+ storel %n, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "n", "usize", %t1, 8, 5, 111+ dbgloc 112+ %t2 =l loadl %t0+ %t3 =l call $reader__Reader__remaining(l %t2)+ %t4 =w csgtl %n, %t3+ jnz %t4, @lbl2403, @lbl2404+@lbl2403+ dbgloc 113+ call $memset(l %t5, w 0, l 16)+ storel 1, %t5+ %t6 =l copy 0+ %t7 =l loadl %t0+ %t9 =l add %t7, 16+ %t8 =l loadl %t9+ %t10 =l call $derr__fail(l %t6, l %t8)+ %t11 =l add %t5, 8+ storel %t10, %t11+ call $memcpy(l %__ret, l %t5, l 16)+ ret %__ret+@lbl2404+ dbgloc 115+ %t12 =l loadl %t0+ %t14 =l add %t12, 16+ %t13 =l loadl %t14+ storel %t13, %t15+ call $__sx_dbg_keep(l %t15)+ dbgvar "start", "usize", %t15, 8, 5, 115+ dbgloc 116+ %t16 =l loadl %t0+ %t18 =l add %t16, 16+ %t17 =l loadl %t18+ %t19 =l add %t17, %n+ %t20 =l loadl %t0+ %t21 =l add %t20, 16+ storel %t19, %t21+ dbgloc 117+ call $memset(l %t22, w 0, l 16)+ storel 0, %t22+ %t24 =l loadl %t0+ %t25 =l loadl %t24+ %t26 =l copy %t13+ %t23 =l add %t25, %t26+ %t27 =l call $bytes__bytes(l %t23, l %n)+ %t28 =l add %t22, 8+ storel %t27, %t28+ call $memcpy(l %__ret, l %t22, l 16)+ ret %__ret+}++export function l $reader__Reader__read_bytes(l %__ret, l %r, l %max_len) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t5 =l alloc8 8+ %t8 =l alloc8 16+ %t13 =l alloc8 8+ %t16 =l alloc8 16+ %t24 =l alloc8 16+ %t31 =l alloc8 16+ dbgloc 120+ storel %r, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "r", "Reader", %t0, 8, 5, 120+ storel %max_len, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "max_len", "usize", %t1, 8, 5, 120+ dbgloc 121+ %t2 =l loadl %t0+ %t4 =l add %t2, 16+ %t3 =l loadl %t4+ storel %t3, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "at", "usize", %t5, 8, 5, 121+ dbgloc 122+ %t6 =l loadl %t0+ %t7 =l call $reader__Reader__read_varint(l %t8, l %t6)+ %t9 =l loadl %t8+ %t10 =w ceql %t9, 0+ jnz %t10, @lbl2406, @lbl2407+@lbl2407+ call $memcpy(l %__ret, l %t8, l 16)+ ret %__ret+@lbl2406+ %t12 =l add %t8, 8+ %t11 =l loadl %t12+ storel %t11, %t13+ call $__sx_dbg_keep(l %t13)+ dbgvar "n", "u64", %t13, 8, 7, 122+ dbgloc 123+ %t14 =l copy %max_len+ %t15 =w csgtl %t11, %t14+ jnz %t15, @lbl2408, @lbl2409+@lbl2408+ dbgloc 124+ call $memset(l %t16, w 0, l 16)+ storel 1, %t16+ %t17 =l copy 6+ %t18 =l call $derr__fail(l %t17, l %t3)+ %t19 =l add %t16, 8+ storel %t18, %t19+ call $memcpy(l %__ret, l %t16, l 16)+ ret %__ret+@lbl2409+ dbgloc 126+ %t20 =l loadl %t0+ %t21 =l call $reader__Reader__remaining(l %t20)+ %t22 =l copy %t21+ %t23 =w csgtl %t11, %t22+ jnz %t23, @lbl2411, @lbl2412+@lbl2411+ dbgloc 127+ call $memset(l %t24, w 0, l 16)+ storel 1, %t24+ %t25 =l copy 0+ %t26 =l call $derr__fail(l %t25, l %t3)+ %t27 =l add %t24, 8+ storel %t26, %t27+ call $memcpy(l %__ret, l %t24, l 16)+ ret %__ret+@lbl2412+ dbgloc 129+ %t28 =l loadl %t0+ %t29 =l copy %t11+ %t30 =l call $reader__Reader__read_raw(l %t31, l %t28, l %t29)+ call $memcpy(l %__ret, l %t31, l 16)+ ret %__ret+}++export function l $reader__Reader__read_list_len(l %__ret, l %r, l %max) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t5 =l alloc8 8+ %t8 =l alloc8 16+ %t13 =l alloc8 8+ %t16 =l alloc8 16+ %t20 =l alloc8 16+ dbgloc 132+ storel %r, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "r", "Reader", %t0, 8, 5, 132+ storel %max, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "max", "usize", %t1, 8, 5, 132+ dbgloc 136+ %t2 =l loadl %t0+ %t4 =l add %t2, 16+ %t3 =l loadl %t4+ storel %t3, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "at", "usize", %t5, 8, 5, 136+ dbgloc 137+ %t6 =l loadl %t0+ %t7 =l call $reader__Reader__read_varint(l %t8, l %t6)+ %t9 =l loadl %t8+ %t10 =w ceql %t9, 0+ jnz %t10, @lbl2414, @lbl2415+@lbl2415+ call $memcpy(l %__ret, l %t8, l 16)+ ret %__ret+@lbl2414+ %t12 =l add %t8, 8+ %t11 =l loadl %t12+ storel %t11, %t13+ call $__sx_dbg_keep(l %t13)+ dbgvar "n", "u64", %t13, 8, 7, 137+ dbgloc 138+ %t14 =l copy %max+ %t15 =w csgtl %t11, %t14+ jnz %t15, @lbl2416, @lbl2417+@lbl2416+ dbgloc 139+ call $memset(l %t16, w 0, l 16)+ storel 1, %t16+ %t17 =l copy 6+ %t18 =l call $derr__fail(l %t17, l %t3)+ %t19 =l add %t16, 8+ storel %t18, %t19+ call $memcpy(l %__ret, l %t16, l 16)+ ret %__ret+@lbl2417+ dbgloc 141+ call $memset(l %t20, w 0, l 16)+ storel 0, %t20+ %t21 =l copy %t11+ %t22 =l add %t20, 8+ storel %t21, %t22+ call $memcpy(l %__ret, l %t20, l 16)+ ret %__ret+}++export function l $reader__Reader__read_id(l %__ret, l %r) {+@start+ %t0 =l alloc8 8+ %t5 =l alloc8 16+ %t15 =l alloc8 8+ %t23 =l alloc8 16+ dbgloc 144+ storel %r, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "r", "Reader", %t0, 8, 5, 144+ dbgloc 145+ %t1 =l loadl %t0+ %t2 =l call $reader__Reader__remaining(l %t1)+ %t3 =l copy 32+ %t4 =w csltl %t2, %t3+ jnz %t4, @lbl2419, @lbl2420+@lbl2419+ dbgloc 146+ call $memset(l %t5, w 0, l 16)+ storel 1, %t5+ %t6 =l copy 0+ %t7 =l loadl %t0+ %t9 =l add %t7, 16+ %t8 =l loadl %t9+ %t10 =l call $derr__fail(l %t6, l %t8)+ %t11 =l add %t5, 8+ storel %t10, %t11+ call $memcpy(l %__ret, l %t5, l 16)+ ret %__ret+@lbl2420+ dbgloc 148+ %t12 =l loadl %t0+ %t14 =l add %t12, 16+ %t13 =l loadl %t14+ storel %t13, %t15+ call $__sx_dbg_keep(l %t15)+ dbgvar "start", "usize", %t15, 8, 5, 148+ dbgloc 149+ %t16 =l copy 32+ %t17 =l loadl %t0+ %t19 =l add %t17, 16+ %t18 =l loadl %t19+ %t20 =l add %t18, %t16+ %t21 =l loadl %t0+ %t22 =l add %t21, 16+ storel %t20, %t22+ dbgloc 150+ call $memset(l %t23, w 0, l 16)+ storel 0, %t23+ %t25 =l loadl %t0+ %t26 =l loadl %t25+ %t27 =l copy %t13+ %t24 =l add %t26, %t27+ %t28 =l add %t23, 8+ storel %t24, %t28+ call $memcpy(l %__ret, l %t23, l 16)+ ret %__ret+}++export function l $reader__Reader__read_opt_id(l %__ret, l %r) {+@start+ %t0 =l alloc8 8+ %t3 =l alloc8 16+ %t11 =l alloc8 8+ %t14 =l alloc8 16+ %t19 =l alloc8 16+ %t30 =l alloc8 16+ dbgloc 153+ storel %r, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "r", "Reader", %t0, 8, 5, 153+ dbgloc 154+ %t1 =l loadl %t0+ %t2 =l call $reader__Reader__read_u8(l %t3, l %t1)+ %t4 =l loadl %t3+ %t5 =w ceql %t4, 0+ jnz %t5, @lbl2422, @lbl2423+@lbl2423+ call $memcpy(l %__ret, l %t3, l 16)+ ret %__ret+@lbl2422+ %t7 =l add %t3, 8+ %t6 =w loadw %t7+ %t8 =w copy %t6+ %t9 =w copy %t8+ %t10 =w extub %t9+ storew %t10, %t11+ call $__sx_dbg_keep(l %t11)+ dbgvar "tag", "u8", %t11, 1, 7, 154+ dbgloc 155+ %t12 =w copy 0+ %t13 =w ceqw %t10, %t12+ jnz %t13, @lbl2424, @lbl2425+@lbl2424+ dbgloc 156+ call $memset(l %t14, w 0, l 16)+ storel 0, %t14+ %t15 =l copy 0+ %t16 =l add %t14, 8+ storel %t15, %t16+ call $memcpy(l %__ret, l %t14, l 16)+ ret %__ret+@lbl2425+ dbgloc 158+ %t17 =w copy 1+ %t18 =w cnew %t10, %t17+ jnz %t18, @lbl2427, @lbl2428+@lbl2427+ dbgloc 159+ call $memset(l %t19, w 0, l 16)+ storel 1, %t19+ %t20 =l copy 3+ %t21 =l loadl %t0+ %t23 =l add %t21, 16+ %t22 =l loadl %t23+ %t24 =l copy 1+ %t25 =l sub %t22, %t24+ %t26 =l call $derr__fail(l %t20, l %t25)+ %t27 =l add %t19, 8+ storel %t26, %t27+ call $memcpy(l %__ret, l %t19, l 16)+ ret %__ret+@lbl2428+ dbgloc 161+ %t28 =l loadl %t0+ %t29 =l call $reader__Reader__read_id(l %t30, l %t28)+ call $memcpy(l %__ret, l %t30, l 16)+ ret %__ret+}++export function l $reader__Reader__read_sig(l %__ret, l %r, l %max_name, l %max_email) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t10 =l alloc8 16+ %t15 =l alloc8 8+ %t18 =l alloc8 16+ %t23 =l alloc8 8+ %t26 =l alloc8 16+ %t31 =l alloc8 8+ %t34 =l alloc8 16+ %t42 =l alloc8 8+ %t43 =l alloc8 16+ dbgloc 164+ storel %r, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "r", "Reader", %t0, 8, 5, 164+ storel %max_name, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "max_name", "usize", %t1, 8, 5, 164+ storel %max_email, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "max_email", "usize", %t2, 8, 5, 164+ dbgloc 169+ %t3 =l loadl %t0+ %t5 =l add %t3, 16+ %t4 =l loadl %t5+ %t6 =l loadl %t0+ %t7 =l add %t6, 16+ storel %t4, %t7+ dbgloc 170+ %t8 =l loadl %t0+ %t9 =l call $reader__Reader__read_bytes(l %t10, l %t8, l %max_name)+ %t11 =l loadl %t10+ %t12 =w ceql %t11, 0+ jnz %t12, @lbl2430, @lbl2431+@lbl2431+ call $memcpy(l %__ret, l %t10, l 16)+ ret %__ret+@lbl2430+ %t14 =l add %t10, 8+ %t13 =l loadl %t14+ storel %t13, %t15+ call $__sx_dbg_keep(l %t15)+ dbgvar "name", "bytes.Bytes", %t15, 8, 5, 170+ dbgloc 171+ %t16 =l loadl %t0+ %t17 =l call $reader__Reader__read_bytes(l %t18, l %t16, l %max_email)+ %t19 =l loadl %t18+ %t20 =w ceql %t19, 0+ jnz %t20, @lbl2432, @lbl2433+@lbl2433+ call $memcpy(l %__ret, l %t18, l 16)+ ret %__ret+@lbl2432+ %t22 =l add %t18, 8+ %t21 =l loadl %t22+ storel %t21, %t23+ call $__sx_dbg_keep(l %t23)+ dbgvar "email", "bytes.Bytes", %t23, 8, 5, 171+ dbgloc 172+ %t24 =l loadl %t0+ %t25 =l call $reader__Reader__read_i64_le(l %t26, l %t24)+ %t27 =l loadl %t26+ %t28 =w ceql %t27, 0+ jnz %t28, @lbl2434, @lbl2435+@lbl2435+ call $memcpy(l %__ret, l %t26, l 16)+ ret %__ret+@lbl2434+ %t30 =l add %t26, 8+ %t29 =l loadl %t30+ storel %t29, %t31+ call $__sx_dbg_keep(l %t31)+ dbgvar "seconds", "i64", %t31, 8, 5, 172+ dbgloc 173+ %t32 =l loadl %t0+ %t33 =l call $reader__Reader__read_i16_le(l %t34, l %t32)+ %t35 =l loadl %t34+ %t36 =w ceql %t35, 0+ jnz %t36, @lbl2436, @lbl2437+@lbl2437+ call $memcpy(l %__ret, l %t34, l 16)+ ret %__ret+@lbl2436+ %t38 =l add %t34, 8+ %t37 =w loadw %t38+ %t39 =w copy %t37+ %t40 =w copy %t39+ %t41 =w extsh %t40+ storew %t41, %t42+ call $__sx_dbg_keep(l %t42)+ dbgvar "tz_min", "i16", %t42, 2, 5, 173+ dbgloc 174+ call $memset(l %t43, w 0, l 16)+ storel 0, %t43+ %t44 =l call $malloc(l 42)+ %t45 =l add %t44, 0+ call $memcpy(l %t45, l %t13, l 16)+ %t46 =l add %t44, 16+ call $memcpy(l %t46, l %t21, l 16)+ %t47 =l add %t44, 32+ storel %t29, %t47+ %t48 =l add %t44, 40+ storeh %t41, %t48+ %t49 =l add %t43, 8+ storel %t44, %t49+ call $memcpy(l %__ret, l %t43, l 16)+ ret %__ret+}++export function l $reader__Reader__read_time_ms(l %__ret, l %r) {+@start+ %t0 =l alloc8 8+ %t8 =l alloc8 16+ %t13 =l alloc8 8+ %t16 =l alloc8 16+ %t24 =l alloc8 8+ %t25 =l alloc8 16+ dbgloc 177+ storel %r, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "r", "Reader", %t0, 8, 5, 177+ dbgloc 178+ %t1 =l loadl %t0+ %t3 =l add %t1, 16+ %t2 =l loadl %t3+ %t4 =l loadl %t0+ %t5 =l add %t4, 16+ storel %t2, %t5+ dbgloc 179+ %t6 =l loadl %t0+ %t7 =l call $reader__Reader__read_i64_le(l %t8, l %t6)+ %t9 =l loadl %t8+ %t10 =w ceql %t9, 0+ jnz %t10, @lbl2438, @lbl2439+@lbl2439+ call $memcpy(l %__ret, l %t8, l 16)+ ret %__ret+@lbl2438+ %t12 =l add %t8, 8+ %t11 =l loadl %t12+ storel %t11, %t13+ call $__sx_dbg_keep(l %t13)+ dbgvar "ms", "i64", %t13, 8, 5, 179+ dbgloc 180+ %t14 =l loadl %t0+ %t15 =l call $reader__Reader__read_i16_le(l %t16, l %t14)+ %t17 =l loadl %t16+ %t18 =w ceql %t17, 0+ jnz %t18, @lbl2440, @lbl2441+@lbl2441+ call $memcpy(l %__ret, l %t16, l 16)+ ret %__ret+@lbl2440+ %t20 =l add %t16, 8+ %t19 =w loadw %t20+ %t21 =w copy %t19+ %t22 =w copy %t21+ %t23 =w extsh %t22+ storew %t23, %t24+ call $__sx_dbg_keep(l %t24)+ dbgvar "tz_min", "i16", %t24, 2, 5, 180+ dbgloc 181+ call $memset(l %t25, w 0, l 16)+ storel 0, %t25+ %t26 =l call $malloc(l 10)+ storel %t11, %t26+ %t28 =l add %t26, 8+ storeh %t23, %t28+ %t29 =l add %t25, 8+ storel %t26, %t29+ call $memcpy(l %__ret, l %t25, l 16)+ ret %__ret+}++export function l $reader__Reader__finish(l %__ret, l %r) {+@start+ %t0 =l alloc8 8+ %t6 =l alloc8 16+ %t12 =l alloc8 16+ dbgloc 184+ storel %r, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "r", "Reader", %t0, 8, 5, 184+ dbgloc 185+ %t2 =l add %r, 16+ %t1 =l loadl %t2+ %t4 =l add %r, 8+ %t3 =l loadl %t4+ %t5 =w cnel %t1, %t3+ jnz %t5, @lbl2442, @lbl2443+@lbl2442+ dbgloc 186+ call $memset(l %t6, w 0, l 16)+ storel 1, %t6+ %t7 =l copy 10+ %t9 =l add %r, 16+ %t8 =l loadl %t9+ %t10 =l call $derr__fail(l %t7, l %t8)+ %t11 =l add %t6, 8+ storel %t10, %t11+ call $memcpy(l %__ret, l %t6, l 16)+ ret %__ret+@lbl2443+ dbgloc 188+ call $memset(l %t12, w 0, l 16)+ storel 0, %t12+ call $memcpy(l %__ret, l %t12, l 16)+ ret %__ret+}++dbgfile "src/object/names.sx"+function w $names__is_dot_name(l %b) {+@start+ %t0 =l alloc8 8+ %t5 =l alloc4 1+ %t16 =l alloc4 1+ %t22 =l alloc4 1+ dbgloc 6+ storel %b, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "b", "bytes.Bytes", %t0, 8, 5, 6+ dbgloc 7+ %t2 =l add %b, 8+ %t1 =l loadl %t2+ %t3 =l copy 1+ %t4 =w ceql %t1, %t3+ storew %t4, %t5+ jnz %t4, @lbl2448, @lbl2449+@lbl2448+ %t6 =l copy 0+ %t7 =w call $bytes__Bytes__at(l %b, l %t6)+ %t8 =w copy 46+ %t9 =w ceqw %t7, %t8+ storew %t9, %t5+ jmp @lbl2449+@lbl2449+ %t10 =w loadw %t5+ jnz %t10, @lbl2445, @lbl2446+@lbl2445+ dbgloc 8+ %t11 =l copy 1+ ret %t11+@lbl2446+ dbgloc 10+ %t13 =l add %b, 8+ %t12 =l loadl %t13+ %t14 =l copy 2+ %t15 =w ceql %t12, %t14+ storew %t15, %t16+ jnz %t15, @lbl2453, @lbl2454+@lbl2453+ %t17 =l copy 0+ %t18 =w call $bytes__Bytes__at(l %b, l %t17)+ %t19 =w copy 46+ %t20 =w ceqw %t18, %t19+ storew %t20, %t16+ jmp @lbl2454+@lbl2454+ %t21 =w loadw %t16+ storew %t21, %t22+ jnz %t21, @lbl2455, @lbl2456+@lbl2455+ %t23 =l copy 1+ %t24 =w call $bytes__Bytes__at(l %b, l %t23)+ %t25 =w copy 46+ %t26 =w ceqw %t24, %t25+ storew %t26, %t22+ jmp @lbl2456+@lbl2456+ %t27 =w loadw %t22+ jnz %t27, @lbl2450, @lbl2451+@lbl2450+ dbgloc 11+ %t28 =l copy 1+ ret %t28+@lbl2451+ dbgloc 13+ %t29 =l copy 0+ ret %t29+}++export function w $names__valid_name(l %b) {+@start+ %t0 =l alloc8 8+ %t5 =l alloc4 1+ %t13 =l alloc8 8+ %t22 =l alloc8 8+ %t25 =l alloc4 1+ %t37 =l alloc8 8+ dbgloc 18+ storel %b, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "b", "bytes.Bytes", %t0, 8, 5, 18+ dbgloc 19+ %t2 =l add %b, 8+ %t1 =l loadl %t2+ %t3 =l copy 0+ %t4 =w ceql %t1, %t3+ storew %t4, %t5+ jnz %t4, @lbl2461, @lbl2460+@lbl2460+ %t7 =l add %b, 8+ %t6 =l loadl %t7+ %t8 =l copy 4096+ %t9 =w csgtl %t6, %t8+ storew %t9, %t5+ jmp @lbl2461+@lbl2461+ %t10 =w loadw %t5+ jnz %t10, @lbl2457, @lbl2458+@lbl2457+ dbgloc 20+ %t11 =l copy 0+ ret %t11+@lbl2458+ dbgloc 22+ %t12 =l copy 0+ storel %t12, %t13+ call $__sx_dbg_keep(l %t13)+ dbgvar "i", "usize", %t13, 8, 5, 22+ dbgloc 23+ jmp @lbl2462+@lbl2462+ %t14 =l loadl %t13+ %t16 =l add %b, 8+ %t15 =l loadl %t16+ %t17 =w csltl %t14, %t15+ jnz %t17, @lbl2463, @lbl2465+@lbl2463+ dbgloc 24+ %t18 =l loadl %t13+ %t19 =w call $bytes__Bytes__at(l %b, l %t18)+ %t20 =w copy %t19+ %t21 =w extub %t20+ storew %t21, %t22+ call $__sx_dbg_keep(l %t22)+ dbgvar "c", "u8", %t22, 1, 7, 24+ dbgloc 25+ %t23 =w copy 0+ %t24 =w ceqw %t21, %t23+ storew %t24, %t25+ jnz %t24, @lbl2470, @lbl2469+@lbl2469+ %t26 =w copy 47+ %t27 =w ceqw %t21, %t26+ storew %t27, %t25+ jmp @lbl2470+@lbl2470+ %t28 =w loadw %t25+ jnz %t28, @lbl2466, @lbl2467+@lbl2466+ dbgloc 26+ %t29 =l copy 0+ ret %t29+@lbl2467+ dbgloc 28+ %t30 =l loadl %t13+ %t31 =l add %t30, 1+ storel %t31, %t13+ jmp @lbl2464+@lbl2464+ jmp @lbl2462+@lbl2465+ dbgloc 30+ %t32 =w call $names__is_dot_name(l %b)+ jnz %t32, @lbl2471, @lbl2472+@lbl2471+ dbgloc 31+ %t33 =l copy 0+ ret %t33+@lbl2472+ dbgloc 33+ %t34 =l copy $__str149+ %t35 =l copy 6+ %t36 =l call $bytes__bytes(l %t34, l %t35)+ storel %t36, %t37+ call $__sx_dbg_keep(l %t37)+ dbgvar "veins", "bytes.Bytes", %t37, 8, 5, 33+ dbgloc 34+ %t38 =w call $bytes__Bytes__eql_ascii_ci(l %b, l %t36)+ jnz %t38, @lbl2474, @lbl2475+@lbl2474+ dbgloc 35+ %t39 =l copy 0+ ret %t39+@lbl2475+ dbgloc 37+ %t40 =l copy 1+ ret %t40+}++function w $names__valid_component(l %b) {+@start+ %t0 =l alloc8 8+ %t5 =l alloc4 1+ %t15 =l alloc8 8+ %t24 =l alloc8 8+ %t27 =l alloc4 1+ dbgloc 40+ storel %b, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "b", "bytes.Bytes", %t0, 8, 5, 40+ dbgloc 41+ %t2 =l add %b, 8+ %t1 =l loadl %t2+ %t3 =l copy 0+ %t4 =w ceql %t1, %t3+ storew %t4, %t5+ jnz %t4, @lbl2481, @lbl2480+@lbl2480+ %t7 =l add %b, 8+ %t6 =l loadl %t7+ %t8 =l copy 4096+ %t9 =w csgtl %t6, %t8+ storew %t9, %t5+ jmp @lbl2481+@lbl2481+ %t10 =w loadw %t5+ jnz %t10, @lbl2477, @lbl2478+@lbl2477+ dbgloc 42+ %t11 =l copy 0+ ret %t11+@lbl2478+ dbgloc 44+ %t12 =w call $names__is_dot_name(l %b)+ jnz %t12, @lbl2482, @lbl2483+@lbl2482+ dbgloc 45+ %t13 =l copy 0+ ret %t13+@lbl2483+ dbgloc 47+ %t14 =l copy 0+ storel %t14, %t15+ call $__sx_dbg_keep(l %t15)+ dbgvar "i", "usize", %t15, 8, 5, 47+ dbgloc 48+ jmp @lbl2485+@lbl2485+ %t16 =l loadl %t15+ %t18 =l add %b, 8+ %t17 =l loadl %t18+ %t19 =w csltl %t16, %t17+ jnz %t19, @lbl2486, @lbl2488+@lbl2486+ dbgloc 49+ %t20 =l loadl %t15+ %t21 =w call $bytes__Bytes__at(l %b, l %t20)+ %t22 =w copy %t21+ %t23 =w extub %t22+ storew %t23, %t24+ call $__sx_dbg_keep(l %t24)+ dbgvar "c", "u8", %t24, 1, 7, 49+ dbgloc 50+ %t25 =w copy 0+ %t26 =w ceqw %t23, %t25+ storew %t26, %t27+ jnz %t26, @lbl2493, @lbl2492+@lbl2492+ %t28 =w copy 47+ %t29 =w ceqw %t23, %t28+ storew %t29, %t27+ jmp @lbl2493+@lbl2493+ %t30 =w loadw %t27+ jnz %t30, @lbl2489, @lbl2490+@lbl2489+ dbgloc 51+ %t31 =l copy 0+ ret %t31+@lbl2490+ dbgloc 53+ %t32 =l loadl %t15+ %t33 =l add %t32, 1+ storel %t33, %t15+ jmp @lbl2487+@lbl2487+ jmp @lbl2485+@lbl2488+ dbgloc 55+ %t34 =l copy 1+ ret %t34+}++export function w $names__valid_path(l %p) {+@start+ %t0 =l alloc8 8+ %t5 =l alloc4 1+ %t18 =l alloc8 8+ %t20 =l alloc8 8+ %t31 =l alloc8 8+ %t33 =l alloc4 1+ %t41 =l alloc8 8+ %t42 =l alloc4 1+ %t47 =l alloc8 8+ dbgloc 59+ storel %p, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "p", "bytes.Bytes", %t0, 8, 5, 59+ dbgloc 60+ %t2 =l add %p, 8+ %t1 =l loadl %t2+ %t3 =l copy 0+ %t4 =w ceql %t1, %t3+ storew %t4, %t5+ jnz %t4, @lbl2498, @lbl2497+@lbl2497+ %t7 =l add %p, 8+ %t6 =l loadl %t7+ %t8 =l copy 65536+ %t9 =w csgtl %t6, %t8+ storew %t9, %t5+ jmp @lbl2498+@lbl2498+ %t10 =w loadw %t5+ jnz %t10, @lbl2494, @lbl2495+@lbl2494+ dbgloc 61+ %t11 =l copy 0+ ret %t11+@lbl2495+ dbgloc 63+ %t12 =l copy 0+ %t13 =w call $bytes__Bytes__at(l %p, l %t12)+ %t14 =w copy 47+ %t15 =w ceqw %t13, %t14+ jnz %t15, @lbl2499, @lbl2500+@lbl2499+ dbgloc 64+ %t16 =l copy 0+ ret %t16+@lbl2500+ dbgloc 66+ %t17 =l copy 0+ storel %t17, %t18+ call $__sx_dbg_keep(l %t18)+ dbgvar "start", "usize", %t18, 8, 5, 66+ dbgloc 67+ %t19 =l copy 0+ storel %t19, %t20+ call $__sx_dbg_keep(l %t20)+ dbgvar "i", "usize", %t20, 8, 5, 67+ dbgloc 68+ jmp @lbl2502+@lbl2502+ %t21 =l loadl %t20+ %t23 =l add %p, 8+ %t22 =l loadl %t23+ %t24 =w cslel %t21, %t22+ jnz %t24, @lbl2503, @lbl2505+@lbl2503+ dbgloc 69+ %t25 =l loadl %t20+ %t27 =l add %p, 8+ %t26 =l loadl %t27+ %t28 =w ceql %t25, %t26+ %t29 =w copy %t28+ %t30 =w extub %t29+ storew %t30, %t31+ call $__sx_dbg_keep(l %t31)+ dbgvar "at_end", "bool", %t31, 1, 7, 69+ dbgloc 70+ %t32 =w ceqw %t30, 0+ storew %t32, %t33+ jnz %t32, @lbl2506, @lbl2507+@lbl2506+ %t34 =l loadl %t20+ %t35 =w call $bytes__Bytes__at(l %p, l %t34)+ %t36 =w copy 47+ %t37 =w ceqw %t35, %t36+ storew %t37, %t33+ jmp @lbl2507+@lbl2507+ %t38 =w loadw %t33+ %t39 =w copy %t38+ %t40 =w extub %t39+ storew %t40, %t41+ call $__sx_dbg_keep(l %t41)+ dbgvar "sep", "bool", %t41, 1, 7, 70+ dbgloc 71+ storew %t30, %t42+ jnz %t30, @lbl2512, @lbl2511+@lbl2511+ storew %t40, %t42+ jmp @lbl2512+@lbl2512+ %t43 =w loadw %t42+ jnz %t43, @lbl2508, @lbl2509+@lbl2508+ dbgloc 72+ %t44 =l loadl %t18+ %t45 =l loadl %t20+ %t46 =l call $bytes__Bytes__slice(l %p, l %t44, l %t45)+ storel %t46, %t47+ call $__sx_dbg_keep(l %t47)+ dbgvar "comp", "bytes.Bytes", %t47, 8, 5, 72+ dbgloc 73+ %t48 =w call $names__valid_component(l %t46)+ %t49 =w ceqw %t48, 0+ jnz %t49, @lbl2513, @lbl2514+@lbl2513+ dbgloc 74+ %t50 =l copy 0+ ret %t50+@lbl2514+ dbgloc 76+ %t51 =l loadl %t20+ %t52 =l copy 1+ %t53 =l add %t51, %t52+ storel %t53, %t18+ jmp @lbl2509+@lbl2509+ dbgloc 78+ %t54 =l loadl %t20+ %t55 =l add %t54, 1+ storel %t55, %t20+ jmp @lbl2504+@lbl2504+ jmp @lbl2502+@lbl2505+ dbgloc 80+ %t56 =l copy 1+ ret %t56+}++dbgfile "src/object/tree.sx"+data $tree__KIND_FILE = { l 1 }+data $tree__KIND_EXECUTABLE = { l 2 }+data $tree__KIND_SYMLINK = { l 3 }+data $tree__KIND_SUBTREE = { l 4 }+data $tree__KIND_SUBMODULE = { l 5 }+data $tree__KIND_CONFLICT = { l 6 }+export function l $tree__entry(l %name, w %kind, l %target) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t6 =l alloc8 8+ dbgloc 30+ storel %name, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "name", "bytes.Bytes", %t0, 8, 5, 30+ storew %kind, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "kind", "u8", %t1, 1, 7, 30+ storel %target, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "target", "objid.Id", %t2, 8, 5, 30+ dbgloc 31+ %t4 =l copy 25+ %t3 =l call $malloc(l %t4)+ %t5 =l copy %t3+ storel %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "e", "ref TreeEntry", %t6, 8, 7, 31+ dbgloc 32+ %t7 =l loadl %t6+ call $memcpy(l %t7, l %name, l 16)+ dbgloc 33+ %t8 =l loadl %t6+ %t9 =l add %t8, 16+ storeb %kind, %t9+ dbgloc 34+ %t10 =l loadl %t6+ %t11 =l add %t10, 17+ call $memcpy(l %t11, l %target, l 8)+ dbgloc 35+ %t12 =l loadl %t6+ ret %t12+}++export function l $tree__empty() {+@start+ %t0 =l alloc8 24+ dbgloc 38+ dbgloc 39+ %t1 =l call $lists__new__GENMONO__ref_TreeEntry()++ storel %t1, %t0+ %t3 =l call $malloc(l 24)+ call $memcpy(l %t3, l %t0, l 24)+ ret %t3+}++function l $tree__entry_at(l %entries, l %i) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t3 =l alloc8 16+ %t10 =l alloc8 8+ dbgloc 42+ storel %entries, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "entries", "list[ref TreeEntry]", %t0, 8, 5, 42+ storel %i, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "i", "usize", %t1, 8, 5, 42+ dbgloc 43+ storel 0, %t3+ %t4 =w call $sxqbe_list_valid(l %entries, l %i)+ jnz %t4, @lbl2516, @lbl2517+@lbl2516+ %t5 =l call $sxqbe_list_buf(l %entries)+ %t6 =l mul %i, 8+ %t7 =l add %t5, %t6+ %t8 =l loadl %t7+ %t9 =l add %t3, 8+ storel %t8, %t9+ storel 1, %t3+ jmp @lbl2518+@lbl2517+ jmp @lbl2518+@lbl2518+ storel %t3, %t10+ call $__sx_dbg_keep(l %t10)+ dbgvar "o", "option[ref TreeEntry]", %t10, 8, 5, 43+ dbgloc 44+ %t11 =l loadl %t3+ %t12 =w cnel %t11, 0+ jnz %t12, @lbl2519, @lbl2520+@lbl2519+ %t14 =l add %t3, 8+ %t13 =l loadl %t14+ dbgloc 45+ ret %t13+@lbl2520+ jmp @lbl2521+@lbl2521+ dbgloc 47+ %t15 =l copy 0+ jnz %t15, @lbl2522, @lbl2523+@lbl2523+ %t16 =l copy $__str205+ call $dprintf(w 2, l %t16)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl2522+ dbgloc 48+ %t17 =l copy 0+ ret %t17+}++function w $tree__valid_kind(w %k) {+@start+ %t0 =l alloc8 8+ %t4 =l alloc4 1+ dbgloc 51+ storew %k, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "k", "u8", %t0, 1, 7, 51+ dbgloc 52+ %t1 =w copy 1+ %t3 =w csltw %k, %t1+ %t2 =w ceqw %t3, 0+ storew %t2, %t4+ jnz %t2, @lbl2524, @lbl2525+@lbl2524+ %t5 =w copy 6+ %t6 =w cslew %k, %t5+ storew %t6, %t4+ jmp @lbl2525+@lbl2525+ %t7 =w loadw %t4+ ret %t7+}++function w $tree__valid_submodule(l %id) {+@start+ %t0 =l alloc8 8+ %t2 =l alloc8 8+ dbgloc 55+ storel %id, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "id", "objid.Id", %t0, 8, 5, 55+ dbgloc 56+ %t1 =l copy 20+ storel %t1, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "i", "usize", %t2, 8, 5, 56+ dbgloc 57+ jmp @lbl2526+@lbl2526+ %t3 =l loadl %t2+ %t4 =l copy 32+ %t5 =w csltl %t3, %t4+ jnz %t5, @lbl2527, @lbl2529+@lbl2527+ dbgloc 58+ %t8 =l loadl %id+ %t9 =l loadl %t2+ %t10 =l copy %t9+ %t7 =l add %t8, %t10+ %t11 =w loadub %t7+ %t6 =l extsw %t11+ %t12 =l copy 0+ %t13 =w cnel %t6, %t12+ jnz %t13, @lbl2530, @lbl2531+@lbl2530+ dbgloc 59+ %t14 =l copy 0+ ret %t14+@lbl2531+ dbgloc 61+ %t15 =l loadl %t2+ %t16 =l add %t15, 1+ storel %t16, %t2+ jmp @lbl2528+@lbl2528+ jmp @lbl2526+@lbl2529+ dbgloc 63+ %t17 =l copy 1+ ret %t17+}++export function l $tree__decode(l %__ret, l %body) {+@start+ %t0 =l alloc8 8+ %t6 =l alloc8 8+ %t10 =l alloc8 16+ %t15 =l alloc8 8+ %t19 =l alloc8 8+ %t27 =l alloc8 8+ %t31 =l alloc8 8+ %t33 =l alloc8 8+ %t38 =l alloc8 8+ %t42 =l alloc8 16+ %t47 =l alloc8 8+ %t50 =l alloc8 16+ %t58 =l alloc8 8+ %t61 =l alloc8 16+ %t67 =l alloc8 16+ %t73 =l alloc8 16+ %t81 =l alloc8 8+ %t84 =l alloc8 16+ %t90 =l alloc8 16+ %t95 =l alloc8 8+ %t101 =l alloc8 16+ %t127 =l alloc8 16+ %t132 =l alloc8 16+ dbgloc 66+ storel %body, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "body", "bytes.Bytes", %t0, 8, 5, 66+ dbgloc 67+ %t1 =l loadl %body+ %t3 =l add %body, 8+ %t2 =l loadl %t3+ %t4 =l call $reader__new(l %t1, l %t2)+ %t5 =l call $malloc(l 24)+ call $memset(l %t5, w 0, l 24)+ call $memcpy(l %t5, l %t4, l 24)+ storel %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "r", "reader.Reader", %t6, 8, 5, 67+ dbgloc 68+ %t7 =l loadl %t6+ %t8 =l copy 1000000+ %t9 =l call $reader__Reader__read_list_len(l %t10, l %t7, l %t8)+ %t11 =l loadl %t10+ %t12 =w ceql %t11, 0+ jnz %t12, @lbl2533, @lbl2534+@lbl2534+ call $memcpy(l %__ret, l %t10, l 16)+ ret %__ret+@lbl2533+ %t14 =l add %t10, 8+ %t13 =l loadl %t14+ storel %t13, %t15+ call $__sx_dbg_keep(l %t15)+ dbgvar "count", "usize", %t15, 8, 5, 68+ dbgloc 69+ %t17 =l copy 24+ %t16 =l call $malloc(l %t17)+ %t18 =l copy %t16+ storel %t18, %t19+ call $__sx_dbg_keep(l %t19)+ dbgvar "t", "ref Tree", %t19, 8, 7, 69+ dbgloc 70+ %t20 =l call $lists__new__GENMONO__ref_TreeEntry()++ %t21 =l loadl %t19+ storel %t20, %t21+ dbgloc 71+ %t22 =l call $bytes__empty()+ %t23 =l loadl %t19+ %t24 =l add %t23, 8+ call $memcpy(l %t24, l %t22, l 16)+ dbgloc 72+ %t25 =l call $bytes__empty()+ %t26 =l call $malloc(l 16)+ call $memset(l %t26, w 0, l 16)+ call $memcpy(l %t26, l %t25, l 16)+ storel %t26, %t27+ call $__sx_dbg_keep(l %t27)+ dbgvar "prev", "bytes.Bytes", %t27, 8, 5, 72+ dbgloc 73+ %t28 =l copy 0+ %t29 =w copy %t28+ %t30 =w extub %t29+ storew %t30, %t31+ call $__sx_dbg_keep(l %t31)+ dbgvar "have_prev", "bool", %t31, 1, 7, 73+ dbgloc 74+ %t32 =l copy 0+ storel %t32, %t33+ call $__sx_dbg_keep(l %t33)+ dbgvar "i", "usize", %t33, 8, 5, 74+ dbgloc 75+ jmp @lbl2535+@lbl2535+ %t34 =l loadl %t33+ %t35 =w csltl %t34, %t13+ jnz %t35, @lbl2536, @lbl2538+@lbl2536+ dbgloc 76+ %t36 =l loadl %t6+ %t37 =l call $reader__Reader__offset(l %t36)+ storel %t37, %t38+ call $__sx_dbg_keep(l %t38)+ dbgvar "at", "usize", %t38, 8, 5, 76+ dbgloc 77+ %t39 =l loadl %t6+ %t40 =l copy 4096+ %t41 =l call $reader__Reader__read_bytes(l %t42, l %t39, l %t40)+ %t43 =l loadl %t42+ %t44 =w ceql %t43, 0+ jnz %t44, @lbl2539, @lbl2540+@lbl2540+ call $memcpy(l %__ret, l %t42, l 16)+ ret %__ret+@lbl2539+ %t46 =l add %t42, 8+ %t45 =l loadl %t46+ storel %t45, %t47+ call $__sx_dbg_keep(l %t47)+ dbgvar "name", "bytes.Bytes", %t47, 8, 5, 77+ dbgloc 78+ %t48 =w call $names__valid_name(l %t45)+ %t49 =w ceqw %t48, 0+ jnz %t49, @lbl2541, @lbl2542+@lbl2541+ dbgloc 79+ call $memset(l %t50, w 0, l 16)+ storel 1, %t50+ %t51 =l copy 7+ %t52 =l call $derr__fail(l %t51, l %t37)+ %t53 =l add %t50, 8+ storel %t52, %t53+ call $memcpy(l %__ret, l %t50, l 16)+ ret %__ret+@lbl2542+ dbgloc 81+ %t55 =w loadw %t31+ %t54 =l extsw %t55+ jnz %t54, @lbl2544, @lbl2545+@lbl2544+ dbgloc 82+ %t56 =l loadl %t27+ %t57 =l call $bytes__Bytes__cmp(l %t56, l %t45)+ storel %t57, %t58+ call $__sx_dbg_keep(l %t58)+ dbgvar "c", "i64", %t58, 8, 5, 82+ dbgloc 83+ %t59 =l copy 0+ %t60 =w ceql %t57, %t59+ jnz %t60, @lbl2547, @lbl2548+@lbl2547+ dbgloc 84+ call $memset(l %t61, w 0, l 16)+ storel 1, %t61+ %t62 =l copy 5+ %t63 =l call $derr__fail(l %t62, l %t37)+ %t64 =l add %t61, 8+ storel %t63, %t64+ call $memcpy(l %__ret, l %t61, l 16)+ ret %__ret+@lbl2548+ dbgloc 86+ %t65 =l copy 0+ %t66 =w csgtl %t57, %t65+ jnz %t66, @lbl2550, @lbl2551+@lbl2550+ dbgloc 87+ call $memset(l %t67, w 0, l 16)+ storel 1, %t67+ %t68 =l copy 4+ %t69 =l call $derr__fail(l %t68, l %t37)+ %t70 =l add %t67, 8+ storel %t69, %t70+ call $memcpy(l %__ret, l %t67, l 16)+ ret %__ret+@lbl2551+ jmp @lbl2545+@lbl2545+ dbgloc 90+ %t71 =l loadl %t6+ %t72 =l call $reader__Reader__read_u8(l %t73, l %t71)+ %t74 =l loadl %t73+ %t75 =w ceql %t74, 0+ jnz %t75, @lbl2553, @lbl2554+@lbl2554+ call $memcpy(l %__ret, l %t73, l 16)+ ret %__ret+@lbl2553+ %t77 =l add %t73, 8+ %t76 =w loadw %t77+ %t78 =w copy %t76+ %t79 =w copy %t78+ %t80 =w extub %t79+ storew %t80, %t81+ call $__sx_dbg_keep(l %t81)+ dbgvar "kind", "u8", %t81, 1, 7, 90+ dbgloc 91+ %t82 =w call $tree__valid_kind(w %t80)+ %t83 =w ceqw %t82, 0+ jnz %t83, @lbl2555, @lbl2556+@lbl2555+ dbgloc 92+ call $memset(l %t84, w 0, l 16)+ storel 1, %t84+ %t85 =l copy 3+ %t86 =l call $derr__fail(l %t85, l %t37)+ %t87 =l add %t84, 8+ storel %t86, %t87+ call $memcpy(l %__ret, l %t84, l 16)+ ret %__ret+@lbl2556+ dbgloc 94+ %t88 =l loadl %t6+ %t89 =l call $reader__Reader__read_id(l %t90, l %t88)+ %t91 =l loadl %t90+ %t92 =w ceql %t91, 0+ jnz %t92, @lbl2558, @lbl2559+@lbl2559+ call $memcpy(l %__ret, l %t90, l 16)+ ret %__ret+@lbl2558+ %t94 =l add %t90, 8+ %t93 =l loadl %t94+ storel %t93, %t95+ call $__sx_dbg_keep(l %t95)+ dbgvar "tid", "ref u8", %t95, 8, 7, 94+ dbgloc 95+ %t96 =w copy 5+ %t97 =w ceqw %t80, %t96+ jnz %t97, @lbl2560, @lbl2561+@lbl2560+ dbgloc 96+ %t98 =l call $objid__id(l %t93)+ %t99 =w call $tree__valid_submodule(l %t98)+ %t100 =w ceqw %t99, 0+ jnz %t100, @lbl2563, @lbl2564+@lbl2563+ dbgloc 97+ call $memset(l %t101, w 0, l 16)+ storel 1, %t101+ %t102 =l copy 3+ %t103 =l call $derr__fail(l %t102, l %t37)+ %t104 =l add %t101, 8+ storel %t103, %t104+ call $memcpy(l %__ret, l %t101, l 16)+ ret %__ret+@lbl2564+ jmp @lbl2561+@lbl2561+ dbgloc 100+ %t106 =l loadl %t19+ %t107 =l call $sxqbe_list_ensure(l %t106)+ %t108 =l call $objid__id(l %t93)+ %t109 =l call $tree__entry(l %t45, w %t80, l %t108)+ %t110 =l add %t107, 8+ %t111 =l add %t107, 16+ %t112 =l loadl %t110+ %t113 =l loadl %t111+ %t115 =l add %t112, 1+ %t114 =w call $sxqbe_list_grow(l %t107, l %t115)+ %t116 =l call $sxqbe_list_buf(l %t107)+ %t117 =l mul %t112, 8+ %t118 =l add %t116, %t117+ storel %t109, %t118+ %t119 =l add %t112, 1+ storel %t119, %t110+ %t105 =l copy 0+ dbgloc 101+ storel %t45, %t27+ dbgloc 102+ %t120 =l copy 1+ %t121 =w copy %t120+ %t122 =w extub %t121+ storew %t122, %t31+ dbgloc 103+ %t123 =l loadl %t33+ %t124 =l add %t123, 1+ storel %t124, %t33+ jmp @lbl2537+@lbl2537+ jmp @lbl2535+@lbl2538+ dbgloc 105+ %t125 =l loadl %t6+ %t126 =l call $reader__Reader__finish(l %t127, l %t125)+ %t128 =l loadl %t127+ %t129 =w ceql %t128, 0+ jnz %t129, @lbl2566, @lbl2567+@lbl2567+ call $memcpy(l %__ret, l %t127, l 16)+ ret %__ret+@lbl2566+ %t131 =l add %t127, 8+ %t130 =l loadl %t131+ dbgloc 106+ call $memset(l %t132, w 0, l 16)+ storel 0, %t132+ %t133 =l loadl %t19+ %t134 =l add %t132, 8+ storel %t133, %t134+ call $memcpy(l %__ret, l %t132, l 16)+ ret %__ret+}++export function l $tree__encode(l %__ret, l %entries) {+@start+ %t0 =l alloc8 8+ %t9 =l alloc8 8+ %t17 =l alloc8 8+ %t21 =l alloc8 8+ %t23 =l alloc8 8+ %t30 =l alloc8 8+ %t36 =l alloc8 16+ %t43 =l alloc4 1+ %t53 =l alloc8 16+ %t64 =l alloc8 16+ %t89 =l alloc8 8+ %t92 =l alloc8 16+ dbgloc 111+ storel %entries, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "entries", "list[ref TreeEntry]", %t0, 8, 5, 111+ dbgloc 112+ %t2 =l call $sxqbe_list_len(l %entries)+ %t3 =l copy 48+ %t4 =l mul %t2, %t3+ %t5 =l copy 8+ %t6 =l add %t4, %t5+ %t7 =l call $buf__new(l %t6)+ %t8 =l call $malloc(l 24)+ call $memset(l %t8, w 0, l 24)+ call $memcpy(l %t8, l %t7, l 24)+ storel %t8, %t9+ call $__sx_dbg_keep(l %t9)+ dbgvar "b", "buf.Buf", %t9, 8, 5, 112+ dbgloc 113+ %t10 =l loadl %t9+ %t12 =l call $sxqbe_list_len(l %entries)+ %t13 =l copy %t12+ %t14 =w call $buf__Buf__put_varint(l %t10, l %t13)+ dbgloc 114+ %t15 =l call $bytes__empty()+ %t16 =l call $malloc(l 16)+ call $memset(l %t16, w 0, l 16)+ call $memcpy(l %t16, l %t15, l 16)+ storel %t16, %t17+ call $__sx_dbg_keep(l %t17)+ dbgvar "prev", "bytes.Bytes", %t17, 8, 5, 114+ dbgloc 115+ %t18 =l copy 0+ %t19 =w copy %t18+ %t20 =w extub %t19+ storew %t20, %t21+ call $__sx_dbg_keep(l %t21)+ dbgvar "have_prev", "bool", %t21, 1, 7, 115+ dbgloc 116+ %t22 =l copy 0+ storel %t22, %t23+ call $__sx_dbg_keep(l %t23)+ dbgvar "i", "usize", %t23, 8, 5, 116+ dbgloc 117+ jmp @lbl2568+@lbl2568+ %t24 =l loadl %t23+ %t26 =l call $sxqbe_list_len(l %entries)+ %t27 =w csltl %t24, %t26+ jnz %t27, @lbl2569, @lbl2571+@lbl2569+ dbgloc 118+ %t28 =l loadl %t23+ %t29 =l call $tree__entry_at(l %entries, l %t28)+ storel %t29, %t30+ call $__sx_dbg_keep(l %t30)+ dbgvar "e", "ref TreeEntry", %t30, 8, 7, 118+ dbgloc 119+ %t31 =l add %t29, 0+ %t32 =w call $names__valid_name(l %t31)+ %t33 =w ceqw %t32, 0+ jnz %t33, @lbl2572, @lbl2573+@lbl2572+ dbgloc 120+ %t34 =l loadl %t9+ %t35 =w call $buf__Buf__free(l %t34)+ dbgloc 121+ call $memset(l %t36, w 0, l 16)+ storel 1, %t36+ %t37 =l copy 7+ %t38 =l loadl %t23+ %t39 =l call $derr__fail(l %t37, l %t38)+ %t40 =l add %t36, 8+ storel %t39, %t40+ call $memcpy(l %__ret, l %t36, l 16)+ ret %__ret+@lbl2573+ dbgloc 123+ %t42 =w loadw %t21+ %t41 =l extsw %t42+ storew %t41, %t43+ jnz %t41, @lbl2578, @lbl2579+@lbl2578+ %t44 =l loadl %t17+ %t45 =l add %t29, 0+ %t46 =l call $bytes__Bytes__cmp(l %t44, l %t45)+ %t47 =l copy 0+ %t49 =w csltl %t46, %t47+ %t48 =w ceqw %t49, 0+ storew %t48, %t43+ jmp @lbl2579+@lbl2579+ %t50 =w loadw %t43+ jnz %t50, @lbl2575, @lbl2576+@lbl2575+ dbgloc 124+ %t51 =l loadl %t9+ %t52 =w call $buf__Buf__free(l %t51)+ dbgloc 125+ call $memset(l %t53, w 0, l 16)+ storel 1, %t53+ %t54 =l copy 4+ %t55 =l loadl %t23+ %t56 =l call $derr__fail(l %t54, l %t55)+ %t57 =l add %t53, 8+ storel %t56, %t57+ call $memcpy(l %__ret, l %t53, l 16)+ ret %__ret+@lbl2576+ dbgloc 127+ %t59 =l add %t29, 16+ %t58 =l loadub %t59+ %t60 =w call $tree__valid_kind(w %t58)+ %t61 =w ceqw %t60, 0+ jnz %t61, @lbl2580, @lbl2581+@lbl2580+ dbgloc 128+ %t62 =l loadl %t9+ %t63 =w call $buf__Buf__free(l %t62)+ dbgloc 129+ call $memset(l %t64, w 0, l 16)+ storel 1, %t64+ %t65 =l copy 3+ %t66 =l loadl %t23+ %t67 =l call $derr__fail(l %t65, l %t66)+ %t68 =l add %t64, 8+ storel %t67, %t68+ call $memcpy(l %__ret, l %t64, l 16)+ ret %__ret+@lbl2581+ dbgloc 131+ %t69 =l loadl %t9+ %t70 =l add %t29, 0+ %t71 =w call $buf__Buf__put_length_prefixed(l %t69, l %t70)+ dbgloc 132+ %t72 =l loadl %t9+ %t74 =l add %t29, 16+ %t73 =l loadub %t74+ %t75 =w call $buf__Buf__put_u8(l %t72, w %t73)+ dbgloc 133+ %t76 =l loadl %t9+ %t77 =l add %t29, 17+ %t78 =l loadl %t77+ %t79 =w call $buf__Buf__put_id(l %t76, l %t78)+ dbgloc 134+ %t80 =l add %t29, 0+ storel %t80, %t17+ dbgloc 135+ %t81 =l copy 1+ %t82 =w copy %t81+ %t83 =w extub %t82+ storew %t83, %t21+ dbgloc 136+ %t84 =l loadl %t23+ %t85 =l add %t84, 1+ storel %t85, %t23+ jmp @lbl2570+@lbl2570+ jmp @lbl2568+@lbl2571+ dbgloc 138+ %t86 =l loadl %t9+ %t87 =l call $buf__Buf__view(l %t86)+ %t88 =l call $bytes__Bytes__dup(l %t87)+ storel %t88, %t89+ call $__sx_dbg_keep(l %t89)+ dbgvar "out", "bytes.Bytes", %t89, 8, 5, 138+ dbgloc 139+ %t90 =l loadl %t9+ %t91 =w call $buf__Buf__free(l %t90)+ dbgloc 140+ call $memset(l %t92, w 0, l 16)+ storel 0, %t92+ %t93 =l add %t92, 8+ storel %t88, %t93+ call $memcpy(l %__ret, l %t92, l 16)+ ret %__ret+}++export function w $tree__free_tree(l %t) {+@start+ %t0 =l alloc8 8+ %t8 =l alloc8 8+ %t12 =l alloc8 8+ %t21 =l alloc8 8+ %t28 =l alloc8 8+ dbgloc 143+ storel %t, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "t", "ref Tree", %t0, 8, 7, 143+ dbgloc 144+ %t1 =l add %t, 8+ %t2 =l loadl %t1+ %t3 =l copy 0+ %t4 =w cnel %t2, %t3+ jnz %t4, @lbl2583, @lbl2584+@lbl2583+ dbgloc 145+ %t5 =l add %t, 8+ %t6 =l loadl %t5+ %t7 =l copy %t6+ storel %t7, %t8+ call $__sx_dbg_keep(l %t8)+ dbgvar "bp", "ref ", %t8, 8, 7, 145+ dbgloc 146+ %t10 =l loadl %t8+ call $free(l %t10)+ %t9 =l copy 0+ jmp @lbl2584+@lbl2584+ dbgloc 148+ %t11 =l loadl %t+ storel 0, %t12+ %t13 =l call $sxqbe_list_len(l %t11)+@lbl2586+ %t14 =l loadl %t12+ %t15 =w csltl %t14, %t13+ jnz %t15, @lbl2587, @lbl2588+@lbl2587+ %t16 =l call $sxqbe_list_buf(l %t11)+ %t17 =l mul %t14, 8+ %t18 =l add %t16, %t17+ %t19 =l loadl %t18+ dbgloc 149+ %t20 =l copy %t19+ storel %t20, %t21+ call $__sx_dbg_keep(l %t21)+ dbgvar "p", "ref ", %t21, 8, 7, 149+ dbgloc 150+ %t23 =l loadl %t21+ call $free(l %t23)+ %t22 =l copy 0+@lbl2589+ %t24 =l add %t14, 1+ storel %t24, %t12+ jmp @lbl2586+@lbl2588+ dbgloc 152+ %t26 =l loadl %t+ call $sxqbe_list_free(l %t26)+ %t25 =l copy 0+ dbgloc 153+ %t27 =l copy %t+ storel %t27, %t28+ call $__sx_dbg_keep(l %t28)+ dbgvar "p2", "ref ", %t28, 8, 7, 153+ dbgloc 154+ %t30 =l loadl %t28+ call $free(l %t30)+ %t29 =l copy 0+ ret 0+}++dbgfile "src/object/commit.sx"+data $commit__RENAMES_UNKNOWN = { l 0 }+data $commit__RENAMES_RECORDED = { l 1 }+export function l $commit__new_rename(l %parent_index, w %kind, l %from_path, l %to_path) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t3 =l alloc8 8+ %t7 =l alloc8 8+ dbgloc 35+ storel %parent_index, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "parent_index", "u64", %t0, 8, 7, 35+ storew %kind, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "kind", "u8", %t1, 1, 7, 35+ storel %from_path, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "from_path", "bytes.Bytes", %t2, 8, 5, 35+ storel %to_path, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "to_path", "bytes.Bytes", %t3, 8, 5, 35+ dbgloc 41+ %t5 =l copy 41+ %t4 =l call $malloc(l %t5)+ %t6 =l copy %t4+ storel %t6, %t7+ call $__sx_dbg_keep(l %t7)+ dbgvar "r", "ref Rename", %t7, 8, 7, 41+ dbgloc 42+ %t8 =l loadl %t7+ storel %parent_index, %t8+ dbgloc 43+ %t9 =l loadl %t7+ %t10 =l add %t9, 8+ storeb %kind, %t10+ dbgloc 44+ %t11 =l loadl %t7+ %t12 =l add %t11, 9+ call $memcpy(l %t12, l %from_path, l 16)+ dbgloc 45+ %t13 =l loadl %t7+ %t14 =l add %t13, 25+ call $memcpy(l %t14, l %to_path, l 16)+ dbgloc 46+ %t15 =l loadl %t7+ ret %t15+}++export function l $commit__new_kv(l %key, l %value) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t5 =l alloc8 8+ dbgloc 49+ storel %key, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "key", "bytes.Bytes", %t0, 8, 5, 49+ storel %value, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "value", "bytes.Bytes", %t1, 8, 5, 49+ dbgloc 50+ %t3 =l copy 32+ %t2 =l call $malloc(l %t3)+ %t4 =l copy %t2+ storel %t4, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "kv", "ref prim.KeyValue", %t5, 8, 7, 50+ dbgloc 51+ %t6 =l loadl %t5+ call $memcpy(l %t6, l %key, l 16)+ dbgloc 52+ %t7 =l loadl %t5+ %t8 =l add %t7, 16+ call $memcpy(l %t8, l %value, l 16)+ dbgloc 53+ %t9 =l loadl %t5+ ret %t9+}++function l $commit__id_at(l %ids, l %i) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t3 =l alloc8 16+ %t10 =l alloc8 8+ dbgloc 56+ storel %ids, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "ids", "list[objid.Id]", %t0, 8, 5, 56+ storel %i, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "i", "usize", %t1, 8, 5, 56+ dbgloc 57+ storel 0, %t3+ %t4 =w call $sxqbe_list_valid(l %ids, l %i)+ jnz %t4, @lbl2590, @lbl2591+@lbl2590+ %t5 =l call $sxqbe_list_buf(l %ids)+ %t6 =l mul %i, 8+ %t7 =l add %t5, %t6+ %t8 =l loadl %t7+ %t9 =l add %t3, 8+ storel %t8, %t9+ storel 1, %t3+ jmp @lbl2592+@lbl2591+ jmp @lbl2592+@lbl2592+ storel %t3, %t10+ call $__sx_dbg_keep(l %t10)+ dbgvar "o", "option[objid.Id]", %t10, 8, 5, 57+ dbgloc 58+ %t11 =l loadl %t3+ %t12 =w cnel %t11, 0+ jnz %t12, @lbl2593, @lbl2594+@lbl2593+ %t14 =l add %t3, 8+ %t13 =l loadl %t14+ dbgloc 59+ ret %t13+@lbl2594+ jmp @lbl2595+@lbl2595+ dbgloc 61+ %t15 =l copy 0+ jnz %t15, @lbl2596, @lbl2597+@lbl2597+ %t16 =l copy $__str206+ call $dprintf(w 2, l %t16)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl2596+ dbgloc 62+ %t17 =l call $objid__id_none()+ ret %t17+}++function l $commit__read_parents(l %__ret, l %r) {+@start+ %t0 =l alloc8 8+ %t4 =l alloc8 16+ %t9 =l alloc8 8+ %t11 =l alloc8 8+ %t13 =l alloc8 8+ %t18 =l alloc8 16+ %t23 =l alloc8 8+ %t39 =l alloc8 16+ dbgloc 65+ storel %r, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "r", "reader.Reader", %t0, 8, 5, 65+ dbgloc 66+ %t1 =l loadl %t0+ %t2 =l copy 1024+ %t3 =l call $reader__Reader__read_list_len(l %t4, l %t1, l %t2)+ %t5 =l loadl %t4+ %t6 =w ceql %t5, 0+ jnz %t6, @lbl2598, @lbl2599+@lbl2599+ call $memcpy(l %__ret, l %t4, l 16)+ ret %__ret+@lbl2598+ %t8 =l add %t4, 8+ %t7 =l loadl %t8+ storel %t7, %t9+ call $__sx_dbg_keep(l %t9)+ dbgvar "n", "usize", %t9, 8, 5, 66+ dbgloc 67+ %t10 =l call $lists__new__GENMONO__objid__Id()++ storel %t10, %t11+ call $__sx_dbg_keep(l %t11)+ dbgvar "out", "list[objid.Id]", %t11, 8, 5, 67+ dbgloc 68+ %t12 =l copy 0+ storel %t12, %t13+ call $__sx_dbg_keep(l %t13)+ dbgvar "i", "usize", %t13, 8, 5, 68+ dbgloc 69+ jmp @lbl2600+@lbl2600+ %t14 =l loadl %t13+ %t15 =w csltl %t14, %t7+ jnz %t15, @lbl2601, @lbl2603+@lbl2601+ dbgloc 70+ %t16 =l loadl %t0+ %t17 =l call $reader__Reader__read_id(l %t18, l %t16)+ %t19 =l loadl %t18+ %t20 =w ceql %t19, 0+ jnz %t20, @lbl2604, @lbl2605+@lbl2605+ call $memcpy(l %__ret, l %t18, l 16)+ ret %__ret+@lbl2604+ %t22 =l add %t18, 8+ %t21 =l loadl %t22+ storel %t21, %t23+ call $__sx_dbg_keep(l %t23)+ dbgvar "p", "ref u8", %t23, 8, 7, 70+ dbgloc 71+ %t25 =l call $sxqbe_list_ensure(l %t11)+ %t26 =l call $objid__id(l %t21)+ %t27 =l add %t25, 8+ %t28 =l add %t25, 16+ %t29 =l loadl %t27+ %t30 =l loadl %t28+ %t32 =l add %t29, 1+ %t31 =w call $sxqbe_list_grow(l %t25, l %t32)+ %t33 =l call $sxqbe_list_buf(l %t25)+ %t34 =l mul %t29, 8+ %t35 =l add %t33, %t34+ storel %t26, %t35+ %t36 =l add %t29, 1+ storel %t36, %t27+ %t24 =l copy 0+ dbgloc 72+ %t37 =l loadl %t13+ %t38 =l add %t37, 1+ storel %t38, %t13+ jmp @lbl2602+@lbl2602+ jmp @lbl2600+@lbl2603+ dbgloc 74+ call $memset(l %t39, w 0, l 16)+ storel 0, %t39+ %t40 =l loadl %t11+ %t41 =l add %t39, 8+ storel %t40, %t41+ call $memcpy(l %__ret, l %t39, l 16)+ ret %__ret+}++function l $commit__read_renames(l %__ret, l %r, l %parent_count, w %state) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t6 =l alloc8 16+ %t11 =l alloc8 8+ %t13 =l alloc8 8+ %t18 =l alloc8 16+ %t24 =l alloc8 16+ %t28 =l alloc8 8+ %t31 =l alloc8 8+ %t35 =l alloc8 8+ %t37 =l alloc8 8+ %t42 =l alloc8 8+ %t45 =l alloc8 16+ %t50 =l alloc8 8+ %t53 =l alloc8 16+ %t61 =l alloc8 8+ %t65 =l alloc8 16+ %t70 =l alloc8 8+ %t74 =l alloc8 16+ %t79 =l alloc8 8+ %t83 =l alloc8 16+ %t89 =l alloc8 16+ %t95 =l alloc4 1+ %t99 =l alloc8 16+ %t107 =l alloc8 16+ %t113 =l alloc4 1+ %t120 =l alloc8 16+ %t142 =l alloc8 16+ dbgloc 77+ storel %r, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "r", "reader.Reader", %t0, 8, 5, 77+ storel %parent_count, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "parent_count", "usize", %t1, 8, 5, 77+ storew %state, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "state", "u8", %t2, 1, 7, 77+ dbgloc 82+ %t3 =l loadl %t0+ %t4 =l copy 1000000+ %t5 =l call $reader__Reader__read_list_len(l %t6, l %t3, l %t4)+ %t7 =l loadl %t6+ %t8 =w ceql %t7, 0+ jnz %t8, @lbl2606, @lbl2607+@lbl2607+ call $memcpy(l %__ret, l %t6, l 16)+ ret %__ret+@lbl2606+ %t10 =l add %t6, 8+ %t9 =l loadl %t10+ storel %t9, %t11+ call $__sx_dbg_keep(l %t11)+ dbgvar "n", "usize", %t11, 8, 5, 82+ dbgloc 83+ %t12 =l call $lists__new__GENMONO__ref_Rename()++ storel %t12, %t13+ call $__sx_dbg_keep(l %t13)+ dbgvar "out", "list[ref Rename]", %t13, 8, 5, 83+ dbgloc 84+ %t14 =w copy 0+ %t15 =w ceqw %state, %t14+ jnz %t15, @lbl2608, @lbl2609+@lbl2608+ dbgloc 85+ %t16 =l copy 0+ %t17 =w cnel %t9, %t16+ jnz %t17, @lbl2611, @lbl2612+@lbl2611+ dbgloc 86+ call $memset(l %t18, w 0, l 16)+ storel 1, %t18+ %t19 =l copy 3+ %t20 =l loadl %t0+ %t21 =l call $reader__Reader__offset(l %t20)+ %t22 =l call $derr__fail(l %t19, l %t21)+ %t23 =l add %t18, 8+ storel %t22, %t23+ call $memcpy(l %__ret, l %t18, l 16)+ ret %__ret+@lbl2612+ dbgloc 88+ call $memset(l %t24, w 0, l 16)+ storel 0, %t24+ %t25 =l loadl %t13+ %t26 =l add %t24, 8+ storel %t25, %t26+ call $memcpy(l %__ret, l %t24, l 16)+ ret %__ret+@lbl2609+ dbgloc 90+ %t27 =l copy 0+ storel %t27, %t28+ call $__sx_dbg_keep(l %t28)+ dbgvar "prev_parent", "u64", %t28, 8, 7, 90+ dbgloc 91+ %t29 =l call $bytes__empty()+ %t30 =l call $malloc(l 16)+ call $memset(l %t30, w 0, l 16)+ call $memcpy(l %t30, l %t29, l 16)+ storel %t30, %t31+ call $__sx_dbg_keep(l %t31)+ dbgvar "prev_path", "bytes.Bytes", %t31, 8, 5, 91+ dbgloc 92+ %t32 =l copy 0+ %t33 =w copy %t32+ %t34 =w extub %t33+ storew %t34, %t35+ call $__sx_dbg_keep(l %t35)+ dbgvar "have_prev", "bool", %t35, 1, 7, 92+ dbgloc 93+ %t36 =l copy 0+ storel %t36, %t37+ call $__sx_dbg_keep(l %t37)+ dbgvar "i", "usize", %t37, 8, 5, 93+ dbgloc 94+ jmp @lbl2614+@lbl2614+ %t38 =l loadl %t37+ %t39 =w csltl %t38, %t9+ jnz %t39, @lbl2615, @lbl2617+@lbl2615+ dbgloc 95+ %t40 =l loadl %t0+ %t41 =l call $reader__Reader__offset(l %t40)+ storel %t41, %t42+ call $__sx_dbg_keep(l %t42)+ dbgvar "at", "usize", %t42, 8, 5, 95+ dbgloc 96+ %t43 =l loadl %t0+ %t44 =l call $reader__Reader__read_varint(l %t45, l %t43)+ %t46 =l loadl %t45+ %t47 =w ceql %t46, 0+ jnz %t47, @lbl2618, @lbl2619+@lbl2619+ call $memcpy(l %__ret, l %t45, l 16)+ ret %__ret+@lbl2618+ %t49 =l add %t45, 8+ %t48 =l loadl %t49+ storel %t48, %t50+ call $__sx_dbg_keep(l %t50)+ dbgvar "parent_index", "u64", %t50, 8, 7, 96+ dbgloc 97+ %t51 =l loadl %t0+ %t52 =l call $reader__Reader__read_u8(l %t53, l %t51)+ %t54 =l loadl %t53+ %t55 =w ceql %t54, 0+ jnz %t55, @lbl2620, @lbl2621+@lbl2621+ call $memcpy(l %__ret, l %t53, l 16)+ ret %__ret+@lbl2620+ %t57 =l add %t53, 8+ %t56 =w loadw %t57+ %t58 =w copy %t56+ %t59 =w copy %t58+ %t60 =w extub %t59+ storew %t60, %t61+ call $__sx_dbg_keep(l %t61)+ dbgvar "kind", "u8", %t61, 1, 7, 97+ dbgloc 98+ %t62 =l loadl %t0+ %t63 =l copy 65536+ %t64 =l call $reader__Reader__read_bytes(l %t65, l %t62, l %t63)+ %t66 =l loadl %t65+ %t67 =w ceql %t66, 0+ jnz %t67, @lbl2622, @lbl2623+@lbl2623+ call $memcpy(l %__ret, l %t65, l 16)+ ret %__ret+@lbl2622+ %t69 =l add %t65, 8+ %t68 =l loadl %t69+ storel %t68, %t70+ call $__sx_dbg_keep(l %t70)+ dbgvar "from", "bytes.Bytes", %t70, 8, 5, 98+ dbgloc 99+ %t71 =l loadl %t0+ %t72 =l copy 65536+ %t73 =l call $reader__Reader__read_bytes(l %t74, l %t71, l %t72)+ %t75 =l loadl %t74+ %t76 =w ceql %t75, 0+ jnz %t76, @lbl2624, @lbl2625+@lbl2625+ call $memcpy(l %__ret, l %t74, l 16)+ ret %__ret+@lbl2624+ %t78 =l add %t74, 8+ %t77 =l loadl %t78+ storel %t77, %t79+ call $__sx_dbg_keep(l %t79)+ dbgvar "to", "bytes.Bytes", %t79, 8, 5, 99+ dbgloc 100+ %t80 =l copy %parent_count+ %t82 =w csltl %t48, %t80+ %t81 =w ceqw %t82, 0+ jnz %t81, @lbl2626, @lbl2627+@lbl2626+ dbgloc 101+ call $memset(l %t83, w 0, l 16)+ storel 1, %t83+ %t84 =l copy 3+ %t85 =l call $derr__fail(l %t84, l %t41)+ %t86 =l add %t83, 8+ storel %t85, %t86+ call $memcpy(l %__ret, l %t83, l 16)+ ret %__ret+@lbl2627+ dbgloc 103+ %t87 =w copy 1+ %t88 =w csgtw %t60, %t87+ jnz %t88, @lbl2629, @lbl2630+@lbl2629+ dbgloc 104+ call $memset(l %t89, w 0, l 16)+ storel 1, %t89+ %t90 =l copy 3+ %t91 =l call $derr__fail(l %t90, l %t41)+ %t92 =l add %t89, 8+ storel %t91, %t92+ call $memcpy(l %__ret, l %t89, l 16)+ ret %__ret+@lbl2630+ dbgloc 106+ %t93 =w call $names__valid_path(l %t68)+ %t94 =w ceqw %t93, 0+ storew %t94, %t95+ jnz %t94, @lbl2636, @lbl2635+@lbl2635+ %t96 =w call $names__valid_path(l %t77)+ %t97 =w ceqw %t96, 0+ storew %t97, %t95+ jmp @lbl2636+@lbl2636+ %t98 =w loadw %t95+ jnz %t98, @lbl2632, @lbl2633+@lbl2632+ dbgloc 107+ call $memset(l %t99, w 0, l 16)+ storel 1, %t99+ %t100 =l copy 7+ %t101 =l call $derr__fail(l %t100, l %t41)+ %t102 =l add %t99, 8+ storel %t101, %t102+ call $memcpy(l %__ret, l %t99, l 16)+ ret %__ret+@lbl2633+ dbgloc 109+ %t104 =w loadw %t35+ %t103 =l extsw %t104+ jnz %t103, @lbl2637, @lbl2638+@lbl2637+ dbgloc 110+ %t105 =l loadl %t28+ %t106 =w csltl %t48, %t105+ jnz %t106, @lbl2640, @lbl2641+@lbl2640+ dbgloc 111+ call $memset(l %t107, w 0, l 16)+ storel 1, %t107+ %t108 =l copy 4+ %t109 =l call $derr__fail(l %t108, l %t41)+ %t110 =l add %t107, 8+ storel %t109, %t110+ call $memcpy(l %__ret, l %t107, l 16)+ ret %__ret+@lbl2641+ dbgloc 113+ %t111 =l loadl %t28+ %t112 =w ceql %t48, %t111+ storew %t112, %t113+ jnz %t112, @lbl2646, @lbl2647+@lbl2646+ %t114 =l loadl %t31+ %t115 =l call $bytes__Bytes__cmp(l %t114, l %t77)+ %t116 =l copy 0+ %t118 =w csltl %t115, %t116+ %t117 =w ceqw %t118, 0+ storew %t117, %t113+ jmp @lbl2647+@lbl2647+ %t119 =w loadw %t113+ jnz %t119, @lbl2643, @lbl2644+@lbl2643+ dbgloc 114+ call $memset(l %t120, w 0, l 16)+ storel 1, %t120+ %t121 =l copy 4+ %t122 =l call $derr__fail(l %t121, l %t41)+ %t123 =l add %t120, 8+ storel %t122, %t123+ call $memcpy(l %__ret, l %t120, l 16)+ ret %__ret+@lbl2644+ jmp @lbl2638+@lbl2638+ dbgloc 117+ %t125 =l call $sxqbe_list_ensure(l %t13)+ %t126 =l call $commit__new_rename(l %t48, w %t60, l %t68, l %t77)+ %t127 =l add %t125, 8+ %t128 =l add %t125, 16+ %t129 =l loadl %t127+ %t130 =l loadl %t128+ %t132 =l add %t129, 1+ %t131 =w call $sxqbe_list_grow(l %t125, l %t132)+ %t133 =l call $sxqbe_list_buf(l %t125)+ %t134 =l mul %t129, 8+ %t135 =l add %t133, %t134+ storel %t126, %t135+ %t136 =l add %t129, 1+ storel %t136, %t127+ %t124 =l copy 0+ dbgloc 118+ storel %t48, %t28+ dbgloc 119+ storel %t77, %t31+ dbgloc 120+ %t137 =l copy 1+ %t138 =w copy %t137+ %t139 =w extub %t138+ storew %t139, %t35+ dbgloc 121+ %t140 =l loadl %t37+ %t141 =l add %t140, 1+ storel %t141, %t37+ jmp @lbl2616+@lbl2616+ jmp @lbl2614+@lbl2617+ dbgloc 123+ call $memset(l %t142, w 0, l 16)+ storel 0, %t142+ %t143 =l loadl %t13+ %t144 =l add %t142, 8+ storel %t143, %t144+ call $memcpy(l %__ret, l %t142, l 16)+ ret %__ret+}++function l $commit__read_extra(l %__ret, l %r) {+@start+ %t0 =l alloc8 8+ %t4 =l alloc8 16+ %t9 =l alloc8 8+ %t11 =l alloc8 8+ %t13 =l alloc8 8+ %t18 =l alloc8 8+ %t22 =l alloc8 16+ %t27 =l alloc8 8+ %t31 =l alloc8 16+ %t36 =l alloc8 8+ %t41 =l alloc8 16+ %t60 =l alloc8 16+ dbgloc 126+ storel %r, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "r", "reader.Reader", %t0, 8, 5, 126+ dbgloc 127+ %t1 =l loadl %t0+ %t2 =l copy 1024+ %t3 =l call $reader__Reader__read_list_len(l %t4, l %t1, l %t2)+ %t5 =l loadl %t4+ %t6 =w ceql %t5, 0+ jnz %t6, @lbl2648, @lbl2649+@lbl2649+ call $memcpy(l %__ret, l %t4, l 16)+ ret %__ret+@lbl2648+ %t8 =l add %t4, 8+ %t7 =l loadl %t8+ storel %t7, %t9+ call $__sx_dbg_keep(l %t9)+ dbgvar "n", "usize", %t9, 8, 5, 127+ dbgloc 128+ %t10 =l call $lists__new__GENMONO__ref_prim__KeyValue()++ storel %t10, %t11+ call $__sx_dbg_keep(l %t11)+ dbgvar "out", "list[ref prim.KeyValue]", %t11, 8, 5, 128+ dbgloc 129+ %t12 =l copy 0+ storel %t12, %t13+ call $__sx_dbg_keep(l %t13)+ dbgvar "i", "usize", %t13, 8, 5, 129+ dbgloc 130+ jmp @lbl2650+@lbl2650+ %t14 =l loadl %t13+ %t15 =w csltl %t14, %t7+ jnz %t15, @lbl2651, @lbl2653+@lbl2651+ dbgloc 131+ %t16 =l loadl %t0+ %t17 =l call $reader__Reader__offset(l %t16)+ storel %t17, %t18+ call $__sx_dbg_keep(l %t18)+ dbgvar "at", "usize", %t18, 8, 5, 131+ dbgloc 132+ %t19 =l loadl %t0+ %t20 =l copy 4096+ %t21 =l call $reader__Reader__read_bytes(l %t22, l %t19, l %t20)+ %t23 =l loadl %t22+ %t24 =w ceql %t23, 0+ jnz %t24, @lbl2654, @lbl2655+@lbl2655+ call $memcpy(l %__ret, l %t22, l 16)+ ret %__ret+@lbl2654+ %t26 =l add %t22, 8+ %t25 =l loadl %t26+ storel %t25, %t27+ call $__sx_dbg_keep(l %t27)+ dbgvar "key", "bytes.Bytes", %t27, 8, 5, 132+ dbgloc 133+ %t28 =l loadl %t0+ %t29 =l copy 16777216+ %t30 =l call $reader__Reader__read_bytes(l %t31, l %t28, l %t29)+ %t32 =l loadl %t31+ %t33 =w ceql %t32, 0+ jnz %t33, @lbl2656, @lbl2657+@lbl2657+ call $memcpy(l %__ret, l %t31, l 16)+ ret %__ret+@lbl2656+ %t35 =l add %t31, 8+ %t34 =l loadl %t35+ storel %t34, %t36+ call $__sx_dbg_keep(l %t36)+ dbgvar "value", "bytes.Bytes", %t36, 8, 5, 133+ dbgloc 134+ %t38 =l add %t25, 8+ %t37 =l loadl %t38+ %t39 =l copy 0+ %t40 =w ceql %t37, %t39+ jnz %t40, @lbl2658, @lbl2659+@lbl2658+ dbgloc 135+ call $memset(l %t41, w 0, l 16)+ storel 1, %t41+ %t42 =l copy 3+ %t43 =l call $derr__fail(l %t42, l %t17)+ %t44 =l add %t41, 8+ storel %t43, %t44+ call $memcpy(l %__ret, l %t41, l 16)+ ret %__ret+@lbl2659+ dbgloc 137+ %t46 =l call $sxqbe_list_ensure(l %t11)+ %t47 =l call $commit__new_kv(l %t25, l %t34)+ %t48 =l add %t46, 8+ %t49 =l add %t46, 16+ %t50 =l loadl %t48+ %t51 =l loadl %t49+ %t53 =l add %t50, 1+ %t52 =w call $sxqbe_list_grow(l %t46, l %t53)+ %t54 =l call $sxqbe_list_buf(l %t46)+ %t55 =l mul %t50, 8+ %t56 =l add %t54, %t55+ storel %t47, %t56+ %t57 =l add %t50, 1+ storel %t57, %t48+ %t45 =l copy 0+ dbgloc 138+ %t58 =l loadl %t13+ %t59 =l add %t58, 1+ storel %t59, %t13+ jmp @lbl2652+@lbl2652+ jmp @lbl2650+@lbl2653+ dbgloc 140+ call $memset(l %t60, w 0, l 16)+ storel 0, %t60+ %t61 =l loadl %t11+ %t62 =l add %t60, 8+ storel %t61, %t62+ call $memcpy(l %__ret, l %t60, l 16)+ ret %__ret+}++export function l $commit__decode(l %__ret, l %body) {+@start+ %t0 =l alloc8 8+ %t6 =l alloc8 8+ %t10 =l alloc8 8+ %t13 =l alloc8 16+ %t24 =l alloc8 16+ %t31 =l alloc8 16+ %t40 =l alloc8 16+ %t45 =l alloc8 8+ %t52 =l alloc8 16+ %t57 =l alloc8 8+ %t66 =l alloc8 16+ %t77 =l alloc8 16+ %t87 =l alloc8 16+ %t96 =l alloc8 16+ %t109 =l alloc8 16+ %t127 =l alloc8 16+ %t136 =l alloc8 16+ %t145 =l alloc8 16+ %t150 =l alloc8 16+ dbgloc 143+ storel %body, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "body", "bytes.Bytes", %t0, 8, 5, 143+ dbgloc 144+ %t1 =l loadl %body+ %t3 =l add %body, 8+ %t2 =l loadl %t3+ %t4 =l call $reader__new(l %t1, l %t2)+ %t5 =l call $malloc(l 24)+ call $memset(l %t5, w 0, l 24)+ call $memcpy(l %t5, l %t4, l 24)+ storel %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "r", "reader.Reader", %t6, 8, 5, 144+ dbgloc 145+ %t8 =l copy 142+ %t7 =l call $malloc(l %t8)+ %t9 =l copy %t7+ storel %t9, %t10+ call $__sx_dbg_keep(l %t10)+ dbgvar "c", "ref Commit", %t10, 8, 7, 145+ dbgloc 146+ %t11 =l loadl %t6+ %t12 =l call $reader__Reader__read_u8(l %t13, l %t11)+ %t14 =l loadl %t13+ %t15 =w ceql %t14, 0+ jnz %t15, @lbl2661, @lbl2662+@lbl2662+ call $memcpy(l %__ret, l %t13, l 16)+ ret %__ret+@lbl2661+ %t17 =l add %t13, 8+ %t16 =w loadw %t17+ %t18 =w copy %t16+ %t19 =l loadl %t10+ storeb %t18, %t19+ dbgloc 147+ %t20 =l loadl %t10+ %t21 =l loadub %t20+ %t22 =w copy 1+ %t23 =w cnew %t21, %t22+ jnz %t23, @lbl2663, @lbl2664+@lbl2663+ dbgloc 148+ call $memset(l %t24, w 0, l 16)+ storel 1, %t24+ %t25 =l copy 9+ %t26 =l copy 0+ %t27 =l call $derr__fail(l %t25, l %t26)+ %t28 =l add %t24, 8+ storel %t27, %t28+ call $memcpy(l %__ret, l %t24, l 16)+ ret %__ret+@lbl2664+ dbgloc 150+ %t29 =l loadl %t6+ %t30 =l call $commit__read_parents(l %t31, l %t29)+ %t32 =l loadl %t31+ %t33 =w ceql %t32, 0+ jnz %t33, @lbl2666, @lbl2667+@lbl2667+ call $memcpy(l %__ret, l %t31, l 16)+ ret %__ret+@lbl2666+ %t35 =l add %t31, 8+ %t34 =l loadl %t35+ %t36 =l loadl %t10+ %t37 =l add %t36, 1+ storel %t34, %t37+ dbgloc 151+ %t38 =l loadl %t6+ %t39 =l call $reader__Reader__read_id(l %t40, l %t38)+ %t41 =l loadl %t40+ %t42 =w ceql %t41, 0+ jnz %t42, @lbl2668, @lbl2669+@lbl2669+ call $memcpy(l %__ret, l %t40, l 16)+ ret %__ret+@lbl2668+ %t44 =l add %t40, 8+ %t43 =l loadl %t44+ storel %t43, %t45+ call $__sx_dbg_keep(l %t45)+ dbgvar "root", "ref u8", %t45, 8, 7, 151+ dbgloc 152+ %t46 =l call $objid__id(l %t43)+ %t47 =l loadl %t10+ %t48 =l add %t47, 9+ call $memcpy(l %t48, l %t46, l 8)+ dbgloc 153+ %t49 =l loadl %t6+ %t50 =l copy 16+ %t51 =l call $reader__Reader__read_raw(l %t52, l %t49, l %t50)+ %t53 =l loadl %t52+ %t54 =w ceql %t53, 0+ jnz %t54, @lbl2670, @lbl2671+@lbl2671+ call $memcpy(l %__ret, l %t52, l 16)+ ret %__ret+@lbl2670+ %t56 =l add %t52, 8+ %t55 =l loadl %t56+ storel %t55, %t57+ call $__sx_dbg_keep(l %t57)+ dbgvar "cid", "bytes.Bytes", %t57, 8, 5, 153+ dbgloc 154+ %t58 =l loadl %t55+ %t59 =l call $objid__change_id(l %t58)+ %t60 =l loadl %t10+ %t61 =l add %t60, 17+ call $memcpy(l %t61, l %t59, l 8)+ dbgloc 155+ %t62 =l loadl %t6+ %t63 =l copy 4096+ %t64 =l copy 4096+ %t65 =l call $reader__Reader__read_sig(l %t66, l %t62, l %t63, l %t64)+ %t67 =l loadl %t66+ %t68 =w ceql %t67, 0+ jnz %t68, @lbl2672, @lbl2673+@lbl2673+ call $memcpy(l %__ret, l %t66, l 16)+ ret %__ret+@lbl2672+ %t70 =l add %t66, 8+ %t69 =l loadl %t70+ %t71 =l loadl %t10+ %t72 =l add %t71, 25+ call $memcpy(l %t72, l %t69, l 42)+ dbgloc 156+ %t73 =l loadl %t6+ %t74 =l copy 4096+ %t75 =l copy 4096+ %t76 =l call $reader__Reader__read_sig(l %t77, l %t73, l %t74, l %t75)+ %t78 =l loadl %t77+ %t79 =w ceql %t78, 0+ jnz %t79, @lbl2674, @lbl2675+@lbl2675+ call $memcpy(l %__ret, l %t77, l 16)+ ret %__ret+@lbl2674+ %t81 =l add %t77, 8+ %t80 =l loadl %t81+ %t82 =l loadl %t10+ %t83 =l add %t82, 67+ call $memcpy(l %t83, l %t80, l 42)+ dbgloc 157+ %t84 =l loadl %t6+ %t85 =l copy 16777216+ %t86 =l call $reader__Reader__read_bytes(l %t87, l %t84, l %t85)+ %t88 =l loadl %t87+ %t89 =w ceql %t88, 0+ jnz %t89, @lbl2676, @lbl2677+@lbl2677+ call $memcpy(l %__ret, l %t87, l 16)+ ret %__ret+@lbl2676+ %t91 =l add %t87, 8+ %t90 =l loadl %t91+ %t92 =l loadl %t10+ %t93 =l add %t92, 109+ call $memcpy(l %t93, l %t90, l 16)+ dbgloc 158+ %t94 =l loadl %t6+ %t95 =l call $reader__Reader__read_u8(l %t96, l %t94)+ %t97 =l loadl %t96+ %t98 =w ceql %t97, 0+ jnz %t98, @lbl2678, @lbl2679+@lbl2679+ call $memcpy(l %__ret, l %t96, l 16)+ ret %__ret+@lbl2678+ %t100 =l add %t96, 8+ %t99 =w loadw %t100+ %t101 =w copy %t99+ %t102 =l loadl %t10+ %t103 =l add %t102, 125+ storeb %t101, %t103+ dbgloc 159+ %t104 =l loadl %t10+ %t106 =l add %t104, 125+ %t105 =l loadub %t106+ %t107 =w copy 1+ %t108 =w csgtw %t105, %t107+ jnz %t108, @lbl2680, @lbl2681+@lbl2680+ dbgloc 160+ call $memset(l %t109, w 0, l 16)+ storel 1, %t109+ %t110 =l copy 3+ %t111 =l loadl %t6+ %t112 =l call $reader__Reader__offset(l %t111)+ %t113 =l copy 1+ %t114 =l sub %t112, %t113+ %t115 =l call $derr__fail(l %t110, l %t114)+ %t116 =l add %t109, 8+ storel %t115, %t116+ call $memcpy(l %__ret, l %t109, l 16)+ ret %__ret+@lbl2681+ dbgloc 162+ %t117 =l loadl %t6+ %t119 =l loadl %t10+ %t120 =l add %t119, 1+ %t121 =l loadl %t120+ %t122 =l call $sxqbe_list_len(l %t121)+ %t123 =l loadl %t10+ %t125 =l add %t123, 125+ %t124 =l loadub %t125+ %t126 =l call $commit__read_renames(l %t127, l %t117, l %t122, w %t124)+ %t128 =l loadl %t127+ %t129 =w ceql %t128, 0+ jnz %t129, @lbl2683, @lbl2684+@lbl2684+ call $memcpy(l %__ret, l %t127, l 16)+ ret %__ret+@lbl2683+ %t131 =l add %t127, 8+ %t130 =l loadl %t131+ %t132 =l loadl %t10+ %t133 =l add %t132, 126+ storel %t130, %t133+ dbgloc 163+ %t134 =l loadl %t6+ %t135 =l call $commit__read_extra(l %t136, l %t134)+ %t137 =l loadl %t136+ %t138 =w ceql %t137, 0+ jnz %t138, @lbl2685, @lbl2686+@lbl2686+ call $memcpy(l %__ret, l %t136, l 16)+ ret %__ret+@lbl2685+ %t140 =l add %t136, 8+ %t139 =l loadl %t140+ %t141 =l loadl %t10+ %t142 =l add %t141, 134+ storel %t139, %t142+ dbgloc 164+ %t143 =l loadl %t6+ %t144 =l call $reader__Reader__finish(l %t145, l %t143)+ %t146 =l loadl %t145+ %t147 =w ceql %t146, 0+ jnz %t147, @lbl2687, @lbl2688+@lbl2688+ call $memcpy(l %__ret, l %t145, l 16)+ ret %__ret+@lbl2687+ %t149 =l add %t145, 8+ %t148 =l loadl %t149+ dbgloc 165+ call $memset(l %t150, w 0, l 16)+ storel 0, %t150+ %t151 =l loadl %t10+ %t152 =l add %t150, 8+ storel %t151, %t152+ call $memcpy(l %__ret, l %t150, l 16)+ ret %__ret+}++export function l $commit__encode(l %c) {+@start+ %t0 =l alloc8 8+ %t4 =l alloc8 8+ %t16 =l alloc8 8+ %t63 =l alloc8 8+ %t94 =l alloc8 8+ %t112 =l alloc8 8+ dbgloc 168+ storel %c, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "c", "ref Commit", %t0, 8, 7, 168+ dbgloc 169+ %t1 =l copy 256+ %t2 =l call $buf__new(l %t1)+ %t3 =l call $malloc(l 24)+ call $memset(l %t3, w 0, l 24)+ call $memcpy(l %t3, l %t2, l 24)+ storel %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "b", "buf.Buf", %t4, 8, 5, 169+ dbgloc 170+ %t5 =l loadl %t4+ %t6 =l loadub %c+ %t7 =w call $buf__Buf__put_u8(l %t5, w %t6)+ dbgloc 171+ %t8 =l loadl %t4+ %t10 =l add %c, 1+ %t11 =l loadl %t10+ %t12 =l call $sxqbe_list_len(l %t11)+ %t13 =l copy %t12+ %t14 =w call $buf__Buf__put_varint(l %t8, l %t13)+ dbgloc 172+ %t15 =l copy 0+ storel %t15, %t16+ call $__sx_dbg_keep(l %t16)+ dbgvar "i", "usize", %t16, 8, 5, 172+ dbgloc 173+ jmp @lbl2689+@lbl2689+ %t17 =l loadl %t16+ %t19 =l add %c, 1+ %t20 =l loadl %t19+ %t21 =l call $sxqbe_list_len(l %t20)+ %t22 =w csltl %t17, %t21+ jnz %t22, @lbl2690, @lbl2692+@lbl2690+ dbgloc 174+ %t23 =l loadl %t4+ %t25 =l add %c, 1+ %t24 =l loadl %t25+ %t26 =l loadl %t16+ %t27 =l call $commit__id_at(l %t24, l %t26)+ %t28 =l loadl %t27+ %t29 =w call $buf__Buf__put_id(l %t23, l %t28)+ dbgloc 175+ %t30 =l loadl %t16+ %t31 =l add %t30, 1+ storel %t31, %t16+ jmp @lbl2691+@lbl2691+ jmp @lbl2689+@lbl2692+ dbgloc 177+ %t32 =l loadl %t4+ %t33 =l add %c, 9+ %t34 =l loadl %t33+ %t35 =w call $buf__Buf__put_id(l %t32, l %t34)+ dbgloc 178+ %t36 =l loadl %t4+ %t37 =l add %c, 17+ %t38 =l loadl %t37+ %t39 =l copy 16+ %t40 =w call $buf__Buf__put_raw(l %t36, l %t38, l %t39)+ dbgloc 179+ %t41 =l loadl %t4+ %t42 =l add %c, 25+ %t43 =w call $buf__Buf__put_sig(l %t41, l %t42)+ dbgloc 180+ %t44 =l loadl %t4+ %t45 =l add %c, 67+ %t46 =w call $buf__Buf__put_sig(l %t44, l %t45)+ dbgloc 181+ %t47 =l loadl %t4+ %t48 =l add %c, 109+ %t49 =w call $buf__Buf__put_length_prefixed(l %t47, l %t48)+ dbgloc 182+ %t50 =l loadl %t4+ %t52 =l add %c, 125+ %t51 =l loadub %t52+ %t53 =w call $buf__Buf__put_u8(l %t50, w %t51)+ dbgloc 183+ %t54 =l loadl %t4+ %t56 =l add %c, 126+ %t57 =l loadl %t56+ %t58 =l call $sxqbe_list_len(l %t57)+ %t59 =l copy %t58+ %t60 =w call $buf__Buf__put_varint(l %t54, l %t59)+ dbgloc 184+ %t62 =l add %c, 126+ %t61 =l loadl %t62+ storel 0, %t63+ %t64 =l call $sxqbe_list_len(l %t61)+@lbl2693+ %t65 =l loadl %t63+ %t66 =w csltl %t65, %t64+ jnz %t66, @lbl2694, @lbl2695+@lbl2694+ %t67 =l call $sxqbe_list_buf(l %t61)+ %t68 =l mul %t65, 8+ %t69 =l add %t67, %t68+ %t70 =l loadl %t69+ dbgloc 185+ %t71 =l loadl %t4+ %t72 =l loadl %t70+ %t73 =w call $buf__Buf__put_varint(l %t71, l %t72)+ dbgloc 186+ %t74 =l loadl %t4+ %t76 =l add %t70, 8+ %t75 =l loadub %t76+ %t77 =w call $buf__Buf__put_u8(l %t74, w %t75)+ dbgloc 187+ %t78 =l loadl %t4+ %t79 =l add %t70, 9+ %t80 =w call $buf__Buf__put_length_prefixed(l %t78, l %t79)+ dbgloc 188+ %t81 =l loadl %t4+ %t82 =l add %t70, 25+ %t83 =w call $buf__Buf__put_length_prefixed(l %t81, l %t82)+@lbl2696+ %t84 =l add %t65, 1+ storel %t84, %t63+ jmp @lbl2693+@lbl2695+ dbgloc 190+ %t85 =l loadl %t4+ %t87 =l add %c, 134+ %t88 =l loadl %t87+ %t89 =l call $sxqbe_list_len(l %t88)+ %t90 =l copy %t89+ %t91 =w call $buf__Buf__put_varint(l %t85, l %t90)+ dbgloc 191+ %t93 =l add %c, 134+ %t92 =l loadl %t93+ storel 0, %t94+ %t95 =l call $sxqbe_list_len(l %t92)+@lbl2697+ %t96 =l loadl %t94+ %t97 =w csltl %t96, %t95+ jnz %t97, @lbl2698, @lbl2699+@lbl2698+ %t98 =l call $sxqbe_list_buf(l %t92)+ %t99 =l mul %t96, 8+ %t100 =l add %t98, %t99+ %t101 =l loadl %t100+ dbgloc 192+ %t102 =l loadl %t4+ %t103 =l add %t101, 0+ %t104 =w call $buf__Buf__put_length_prefixed(l %t102, l %t103)+ dbgloc 193+ %t105 =l loadl %t4+ %t106 =l add %t101, 16+ %t107 =w call $buf__Buf__put_length_prefixed(l %t105, l %t106)+@lbl2700+ %t108 =l add %t96, 1+ storel %t108, %t94+ jmp @lbl2697+@lbl2699+ dbgloc 195+ %t109 =l loadl %t4+ %t110 =l call $buf__Buf__view(l %t109)+ %t111 =l call $bytes__Bytes__dup(l %t110)+ storel %t111, %t112+ call $__sx_dbg_keep(l %t112)+ dbgvar "out", "bytes.Bytes", %t112, 8, 5, 195+ dbgloc 196+ %t113 =l loadl %t4+ %t114 =w call $buf__Buf__free(l %t113)+ dbgloc 197+ ret %t111+}++function w $commit__free_renames(l %rs) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t10 =l alloc8 8+ dbgloc 200+ storel %rs, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "rs", "list[ref Rename]", %t0, 8, 5, 200+ dbgloc 201+ storel 0, %t1+ %t2 =l call $sxqbe_list_len(l %rs)+@lbl2701+ %t3 =l loadl %t1+ %t4 =w csltl %t3, %t2+ jnz %t4, @lbl2702, @lbl2703+@lbl2702+ %t5 =l call $sxqbe_list_buf(l %rs)+ %t6 =l mul %t3, 8+ %t7 =l add %t5, %t6+ %t8 =l loadl %t7+ dbgloc 202+ %t9 =l copy %t8+ storel %t9, %t10+ call $__sx_dbg_keep(l %t10)+ dbgvar "p", "ref ", %t10, 8, 7, 202+ dbgloc 203+ %t12 =l loadl %t10+ call $free(l %t12)+ %t11 =l copy 0+@lbl2704+ %t13 =l add %t3, 1+ storel %t13, %t1+ jmp @lbl2701+@lbl2703+ dbgloc 205+ call $sxqbe_list_free(l %rs)+ %t14 =l copy 0+ ret 0+}++function w $commit__free_kvs(l %xs) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t10 =l alloc8 8+ dbgloc 208+ storel %xs, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "xs", "list[ref prim.KeyValue]", %t0, 8, 5, 208+ dbgloc 209+ storel 0, %t1+ %t2 =l call $sxqbe_list_len(l %xs)+@lbl2705+ %t3 =l loadl %t1+ %t4 =w csltl %t3, %t2+ jnz %t4, @lbl2706, @lbl2707+@lbl2706+ %t5 =l call $sxqbe_list_buf(l %xs)+ %t6 =l mul %t3, 8+ %t7 =l add %t5, %t6+ %t8 =l loadl %t7+ dbgloc 210+ %t9 =l copy %t8+ storel %t9, %t10+ call $__sx_dbg_keep(l %t10)+ dbgvar "p", "ref ", %t10, 8, 7, 210+ dbgloc 211+ %t12 =l loadl %t10+ call $free(l %t12)+ %t11 =l copy 0+@lbl2708+ %t13 =l add %t3, 1+ storel %t13, %t1+ jmp @lbl2705+@lbl2707+ dbgloc 213+ call $sxqbe_list_free(l %xs)+ %t14 =l copy 0+ ret 0+}++export function w $commit__free_commit(l %c) {+@start+ %t0 =l alloc8 8+ %t11 =l alloc8 8+ dbgloc 216+ storel %c, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "c", "ref Commit", %t0, 8, 7, 216+ dbgloc 217+ %t3 =l add %c, 1+ %t2 =l loadl %t3+ call $sxqbe_list_free(l %t2)+ %t1 =l copy 0+ dbgloc 218+ %t5 =l add %c, 126+ %t4 =l loadl %t5+ %t6 =w call $commit__free_renames(l %t4)+ dbgloc 219+ %t8 =l add %c, 134+ %t7 =l loadl %t8+ %t9 =w call $commit__free_kvs(l %t7)+ dbgloc 220+ %t10 =l copy %c+ storel %t10, %t11+ call $__sx_dbg_keep(l %t11)+ dbgvar "p", "ref ", %t11, 8, 7, 220+ dbgloc 221+ %t13 =l loadl %t11+ call $free(l %t13)+ %t12 =l copy 0+ ret 0+}++dbgfile "src/object/operation.sx"+function l $operation__new_kv(l %key, l %value) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t5 =l alloc8 8+ dbgloc 23+ storel %key, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "key", "bytes.Bytes", %t0, 8, 5, 23+ storel %value, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "value", "bytes.Bytes", %t1, 8, 5, 23+ dbgloc 24+ %t3 =l copy 32+ %t2 =l call $malloc(l %t3)+ %t4 =l copy %t2+ storel %t4, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "kv", "ref prim.KeyValue", %t5, 8, 7, 24+ dbgloc 25+ %t6 =l loadl %t5+ call $memcpy(l %t6, l %key, l 16)+ dbgloc 26+ %t7 =l loadl %t5+ %t8 =l add %t7, 16+ call $memcpy(l %t8, l %value, l 16)+ dbgloc 27+ %t9 =l loadl %t5+ ret %t9+}++function l $operation__read_parents(l %__ret, l %r) {+@start+ %t0 =l alloc8 8+ %t4 =l alloc8 16+ %t9 =l alloc8 8+ %t11 =l alloc8 8+ %t13 =l alloc8 8+ %t18 =l alloc8 16+ %t23 =l alloc8 8+ %t39 =l alloc8 16+ dbgloc 30+ storel %r, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "r", "reader.Reader", %t0, 8, 5, 30+ dbgloc 31+ %t1 =l loadl %t0+ %t2 =l copy 1024+ %t3 =l call $reader__Reader__read_list_len(l %t4, l %t1, l %t2)+ %t5 =l loadl %t4+ %t6 =w ceql %t5, 0+ jnz %t6, @lbl2709, @lbl2710+@lbl2710+ call $memcpy(l %__ret, l %t4, l 16)+ ret %__ret+@lbl2709+ %t8 =l add %t4, 8+ %t7 =l loadl %t8+ storel %t7, %t9+ call $__sx_dbg_keep(l %t9)+ dbgvar "n", "usize", %t9, 8, 5, 31+ dbgloc 32+ %t10 =l call $lists__new__GENMONO__objid__Id()++ storel %t10, %t11+ call $__sx_dbg_keep(l %t11)+ dbgvar "out", "list[objid.Id]", %t11, 8, 5, 32+ dbgloc 33+ %t12 =l copy 0+ storel %t12, %t13+ call $__sx_dbg_keep(l %t13)+ dbgvar "i", "usize", %t13, 8, 5, 33+ dbgloc 34+ jmp @lbl2711+@lbl2711+ %t14 =l loadl %t13+ %t15 =w csltl %t14, %t7+ jnz %t15, @lbl2712, @lbl2714+@lbl2712+ dbgloc 35+ %t16 =l loadl %t0+ %t17 =l call $reader__Reader__read_id(l %t18, l %t16)+ %t19 =l loadl %t18+ %t20 =w ceql %t19, 0+ jnz %t20, @lbl2715, @lbl2716+@lbl2716+ call $memcpy(l %__ret, l %t18, l 16)+ ret %__ret+@lbl2715+ %t22 =l add %t18, 8+ %t21 =l loadl %t22+ storel %t21, %t23+ call $__sx_dbg_keep(l %t23)+ dbgvar "p", "ref u8", %t23, 8, 7, 35+ dbgloc 36+ %t25 =l call $sxqbe_list_ensure(l %t11)+ %t26 =l call $objid__id(l %t21)+ %t27 =l add %t25, 8+ %t28 =l add %t25, 16+ %t29 =l loadl %t27+ %t30 =l loadl %t28+ %t32 =l add %t29, 1+ %t31 =w call $sxqbe_list_grow(l %t25, l %t32)+ %t33 =l call $sxqbe_list_buf(l %t25)+ %t34 =l mul %t29, 8+ %t35 =l add %t33, %t34+ storel %t26, %t35+ %t36 =l add %t29, 1+ storel %t36, %t27+ %t24 =l copy 0+ dbgloc 37+ %t37 =l loadl %t13+ %t38 =l add %t37, 1+ storel %t38, %t13+ jmp @lbl2713+@lbl2713+ jmp @lbl2711+@lbl2714+ dbgloc 39+ call $memset(l %t39, w 0, l 16)+ storel 0, %t39+ %t40 =l loadl %t11+ %t41 =l add %t39, 8+ storel %t40, %t41+ call $memcpy(l %__ret, l %t39, l 16)+ ret %__ret+}++function l $operation__read_tags(l %__ret, l %r) {+@start+ %t0 =l alloc8 8+ %t4 =l alloc8 16+ %t9 =l alloc8 8+ %t11 =l alloc8 8+ %t13 =l alloc8 8+ %t18 =l alloc8 8+ %t22 =l alloc8 16+ %t27 =l alloc8 8+ %t31 =l alloc8 16+ %t36 =l alloc8 8+ %t41 =l alloc8 16+ %t60 =l alloc8 16+ dbgloc 42+ storel %r, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "r", "reader.Reader", %t0, 8, 5, 42+ dbgloc 43+ %t1 =l loadl %t0+ %t2 =l copy 1024+ %t3 =l call $reader__Reader__read_list_len(l %t4, l %t1, l %t2)+ %t5 =l loadl %t4+ %t6 =w ceql %t5, 0+ jnz %t6, @lbl2717, @lbl2718+@lbl2718+ call $memcpy(l %__ret, l %t4, l 16)+ ret %__ret+@lbl2717+ %t8 =l add %t4, 8+ %t7 =l loadl %t8+ storel %t7, %t9+ call $__sx_dbg_keep(l %t9)+ dbgvar "n", "usize", %t9, 8, 5, 43+ dbgloc 44+ %t10 =l call $lists__new__GENMONO__ref_prim__KeyValue()++ storel %t10, %t11+ call $__sx_dbg_keep(l %t11)+ dbgvar "out", "list[ref prim.KeyValue]", %t11, 8, 5, 44+ dbgloc 45+ %t12 =l copy 0+ storel %t12, %t13+ call $__sx_dbg_keep(l %t13)+ dbgvar "i", "usize", %t13, 8, 5, 45+ dbgloc 46+ jmp @lbl2719+@lbl2719+ %t14 =l loadl %t13+ %t15 =w csltl %t14, %t7+ jnz %t15, @lbl2720, @lbl2722+@lbl2720+ dbgloc 47+ %t16 =l loadl %t0+ %t17 =l call $reader__Reader__offset(l %t16)+ storel %t17, %t18+ call $__sx_dbg_keep(l %t18)+ dbgvar "at", "usize", %t18, 8, 5, 47+ dbgloc 48+ %t19 =l loadl %t0+ %t20 =l copy 4096+ %t21 =l call $reader__Reader__read_bytes(l %t22, l %t19, l %t20)+ %t23 =l loadl %t22+ %t24 =w ceql %t23, 0+ jnz %t24, @lbl2723, @lbl2724+@lbl2724+ call $memcpy(l %__ret, l %t22, l 16)+ ret %__ret+@lbl2723+ %t26 =l add %t22, 8+ %t25 =l loadl %t26+ storel %t25, %t27+ call $__sx_dbg_keep(l %t27)+ dbgvar "key", "bytes.Bytes", %t27, 8, 5, 48+ dbgloc 49+ %t28 =l loadl %t0+ %t29 =l copy 16777216+ %t30 =l call $reader__Reader__read_bytes(l %t31, l %t28, l %t29)+ %t32 =l loadl %t31+ %t33 =w ceql %t32, 0+ jnz %t33, @lbl2725, @lbl2726+@lbl2726+ call $memcpy(l %__ret, l %t31, l 16)+ ret %__ret+@lbl2725+ %t35 =l add %t31, 8+ %t34 =l loadl %t35+ storel %t34, %t36+ call $__sx_dbg_keep(l %t36)+ dbgvar "value", "bytes.Bytes", %t36, 8, 5, 49+ dbgloc 50+ %t38 =l add %t25, 8+ %t37 =l loadl %t38+ %t39 =l copy 0+ %t40 =w ceql %t37, %t39+ jnz %t40, @lbl2727, @lbl2728+@lbl2727+ dbgloc 51+ call $memset(l %t41, w 0, l 16)+ storel 1, %t41+ %t42 =l copy 3+ %t43 =l call $derr__fail(l %t42, l %t17)+ %t44 =l add %t41, 8+ storel %t43, %t44+ call $memcpy(l %__ret, l %t41, l 16)+ ret %__ret+@lbl2728+ dbgloc 53+ %t46 =l call $sxqbe_list_ensure(l %t11)+ %t47 =l call $operation__new_kv(l %t25, l %t34)+ %t48 =l add %t46, 8+ %t49 =l add %t46, 16+ %t50 =l loadl %t48+ %t51 =l loadl %t49+ %t53 =l add %t50, 1+ %t52 =w call $sxqbe_list_grow(l %t46, l %t53)+ %t54 =l call $sxqbe_list_buf(l %t46)+ %t55 =l mul %t50, 8+ %t56 =l add %t54, %t55+ storel %t47, %t56+ %t57 =l add %t50, 1+ storel %t57, %t48+ %t45 =l copy 0+ dbgloc 54+ %t58 =l loadl %t13+ %t59 =l add %t58, 1+ storel %t59, %t13+ jmp @lbl2721+@lbl2721+ jmp @lbl2719+@lbl2722+ dbgloc 56+ call $memset(l %t60, w 0, l 16)+ storel 0, %t60+ %t61 =l loadl %t11+ %t62 =l add %t60, 8+ storel %t61, %t62+ call $memcpy(l %__ret, l %t60, l 16)+ ret %__ret+}++export function l $operation__decode(l %__ret, l %body) {+@start+ %t0 =l alloc8 8+ %t6 =l alloc8 8+ %t10 =l alloc8 8+ %t16 =l alloc8 16+ %t24 =l alloc8 16+ %t29 =l alloc8 8+ %t35 =l alloc8 16+ %t44 =l alloc8 16+ %t54 =l alloc8 16+ %t64 =l alloc8 16+ %t74 =l alloc8 16+ %t83 =l alloc8 16+ %t92 =l alloc8 16+ %t97 =l alloc8 16+ dbgloc 59+ storel %body, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "body", "bytes.Bytes", %t0, 8, 5, 59+ dbgloc 60+ %t1 =l loadl %body+ %t3 =l add %body, 8+ %t2 =l loadl %t3+ %t4 =l call $reader__new(l %t1, l %t2)+ %t5 =l call $malloc(l 24)+ call $memset(l %t5, w 0, l 24)+ call $memcpy(l %t5, l %t4, l 24)+ storel %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "r", "reader.Reader", %t6, 8, 5, 60+ dbgloc 61+ %t8 =l copy 108+ %t7 =l call $malloc(l %t8)+ %t9 =l copy %t7+ storel %t9, %t10+ call $__sx_dbg_keep(l %t10)+ dbgvar "op", "ref Operation", %t10, 8, 7, 61+ dbgloc 62+ %t11 =l call $bytes__empty()+ %t12 =l loadl %t10+ %t13 =l add %t12, 92+ call $memcpy(l %t13, l %t11, l 16)+ dbgloc 63+ %t14 =l loadl %t6+ %t15 =l call $operation__read_parents(l %t16, l %t14)+ %t17 =l loadl %t16+ %t18 =w ceql %t17, 0+ jnz %t18, @lbl2730, @lbl2731+@lbl2731+ call $memcpy(l %__ret, l %t16, l 16)+ ret %__ret+@lbl2730+ %t20 =l add %t16, 8+ %t19 =l loadl %t20+ %t21 =l loadl %t10+ storel %t19, %t21+ dbgloc 64+ %t22 =l loadl %t6+ %t23 =l call $reader__Reader__read_id(l %t24, l %t22)+ %t25 =l loadl %t24+ %t26 =w ceql %t25, 0+ jnz %t26, @lbl2732, @lbl2733+@lbl2733+ call $memcpy(l %__ret, l %t24, l 16)+ ret %__ret+@lbl2732+ %t28 =l add %t24, 8+ %t27 =l loadl %t28+ storel %t27, %t29+ call $__sx_dbg_keep(l %t29)+ dbgvar "v", "ref u8", %t29, 8, 7, 64+ dbgloc 65+ %t30 =l call $objid__id(l %t27)+ %t31 =l loadl %t10+ %t32 =l add %t31, 8+ call $memcpy(l %t32, l %t30, l 8)+ dbgloc 66+ %t33 =l loadl %t6+ %t34 =l call $reader__Reader__read_time_ms(l %t35, l %t33)+ %t36 =l loadl %t35+ %t37 =w ceql %t36, 0+ jnz %t37, @lbl2734, @lbl2735+@lbl2735+ call $memcpy(l %__ret, l %t35, l 16)+ ret %__ret+@lbl2734+ %t39 =l add %t35, 8+ %t38 =l loadl %t39+ %t40 =l loadl %t10+ %t41 =l add %t40, 16+ call $memcpy(l %t41, l %t38, l 10)+ dbgloc 67+ %t42 =l loadl %t6+ %t43 =l call $reader__Reader__read_time_ms(l %t44, l %t42)+ %t45 =l loadl %t44+ %t46 =w ceql %t45, 0+ jnz %t46, @lbl2736, @lbl2737+@lbl2737+ call $memcpy(l %__ret, l %t44, l 16)+ ret %__ret+@lbl2736+ %t48 =l add %t44, 8+ %t47 =l loadl %t48+ %t49 =l loadl %t10+ %t50 =l add %t49, 26+ call $memcpy(l %t50, l %t47, l 10)+ dbgloc 68+ %t51 =l loadl %t6+ %t52 =l copy 4096+ %t53 =l call $reader__Reader__read_bytes(l %t54, l %t51, l %t52)+ %t55 =l loadl %t54+ %t56 =w ceql %t55, 0+ jnz %t56, @lbl2738, @lbl2739+@lbl2739+ call $memcpy(l %__ret, l %t54, l 16)+ ret %__ret+@lbl2738+ %t58 =l add %t54, 8+ %t57 =l loadl %t58+ %t59 =l loadl %t10+ %t60 =l add %t59, 36+ call $memcpy(l %t60, l %t57, l 16)+ dbgloc 69+ %t61 =l loadl %t6+ %t62 =l copy 4096+ %t63 =l call $reader__Reader__read_bytes(l %t64, l %t61, l %t62)+ %t65 =l loadl %t64+ %t66 =w ceql %t65, 0+ jnz %t66, @lbl2740, @lbl2741+@lbl2741+ call $memcpy(l %__ret, l %t64, l 16)+ ret %__ret+@lbl2740+ %t68 =l add %t64, 8+ %t67 =l loadl %t68+ %t69 =l loadl %t10+ %t70 =l add %t69, 52+ call $memcpy(l %t70, l %t67, l 16)+ dbgloc 70+ %t71 =l loadl %t6+ %t72 =l copy 16777216+ %t73 =l call $reader__Reader__read_bytes(l %t74, l %t71, l %t72)+ %t75 =l loadl %t74+ %t76 =w ceql %t75, 0+ jnz %t76, @lbl2742, @lbl2743+@lbl2743+ call $memcpy(l %__ret, l %t74, l 16)+ ret %__ret+@lbl2742+ %t78 =l add %t74, 8+ %t77 =l loadl %t78+ %t79 =l loadl %t10+ %t80 =l add %t79, 68+ call $memcpy(l %t80, l %t77, l 16)+ dbgloc 71+ %t81 =l loadl %t6+ %t82 =l call $operation__read_tags(l %t83, l %t81)+ %t84 =l loadl %t83+ %t85 =w ceql %t84, 0+ jnz %t85, @lbl2744, @lbl2745+@lbl2745+ call $memcpy(l %__ret, l %t83, l 16)+ ret %__ret+@lbl2744+ %t87 =l add %t83, 8+ %t86 =l loadl %t87+ %t88 =l loadl %t10+ %t89 =l add %t88, 84+ storel %t86, %t89+ dbgloc 72+ %t90 =l loadl %t6+ %t91 =l call $reader__Reader__finish(l %t92, l %t90)+ %t93 =l loadl %t92+ %t94 =w ceql %t93, 0+ jnz %t94, @lbl2746, @lbl2747+@lbl2747+ call $memcpy(l %__ret, l %t92, l 16)+ ret %__ret+@lbl2746+ %t96 =l add %t92, 8+ %t95 =l loadl %t96+ dbgloc 73+ call $memset(l %t97, w 0, l 16)+ storel 0, %t97+ %t98 =l loadl %t10+ %t99 =l add %t97, 8+ storel %t98, %t99+ call $memcpy(l %__ret, l %t97, l 16)+ ret %__ret+}++function l $operation__id_at(l %ids, l %i) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t3 =l alloc8 16+ %t10 =l alloc8 8+ dbgloc 76+ storel %ids, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "ids", "list[objid.Id]", %t0, 8, 5, 76+ storel %i, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "i", "usize", %t1, 8, 5, 76+ dbgloc 77+ storel 0, %t3+ %t4 =w call $sxqbe_list_valid(l %ids, l %i)+ jnz %t4, @lbl2748, @lbl2749+@lbl2748+ %t5 =l call $sxqbe_list_buf(l %ids)+ %t6 =l mul %i, 8+ %t7 =l add %t5, %t6+ %t8 =l loadl %t7+ %t9 =l add %t3, 8+ storel %t8, %t9+ storel 1, %t3+ jmp @lbl2750+@lbl2749+ jmp @lbl2750+@lbl2750+ storel %t3, %t10+ call $__sx_dbg_keep(l %t10)+ dbgvar "o", "option[objid.Id]", %t10, 8, 5, 77+ dbgloc 78+ %t11 =l loadl %t3+ %t12 =w cnel %t11, 0+ jnz %t12, @lbl2751, @lbl2752+@lbl2751+ %t14 =l add %t3, 8+ %t13 =l loadl %t14+ dbgloc 79+ ret %t13+@lbl2752+ jmp @lbl2753+@lbl2753+ dbgloc 81+ %t15 =l copy 0+ jnz %t15, @lbl2754, @lbl2755+@lbl2755+ %t16 =l copy $__str207+ call $dprintf(w 2, l %t16)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl2754+ dbgloc 82+ %t17 =l call $objid__id_none()+ ret %t17+}++export function l $operation__encode(l %op) {+@start+ %t0 =l alloc8 8+ %t4 =l alloc8 8+ %t12 =l alloc8 8+ %t54 =l alloc8 8+ %t72 =l alloc8 8+ dbgloc 85+ storel %op, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "op", "ref Operation", %t0, 8, 7, 85+ dbgloc 86+ %t1 =l copy 256+ %t2 =l call $buf__new(l %t1)+ %t3 =l call $malloc(l 24)+ call $memset(l %t3, w 0, l 24)+ call $memcpy(l %t3, l %t2, l 24)+ storel %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "b", "buf.Buf", %t4, 8, 5, 86+ dbgloc 87+ %t5 =l loadl %t4+ %t7 =l loadl %op+ %t8 =l call $sxqbe_list_len(l %t7)+ %t9 =l copy %t8+ %t10 =w call $buf__Buf__put_varint(l %t5, l %t9)+ dbgloc 88+ %t11 =l copy 0+ storel %t11, %t12+ call $__sx_dbg_keep(l %t12)+ dbgvar "i", "usize", %t12, 8, 5, 88+ dbgloc 89+ jmp @lbl2756+@lbl2756+ %t13 =l loadl %t12+ %t15 =l loadl %op+ %t16 =l call $sxqbe_list_len(l %t15)+ %t17 =w csltl %t13, %t16+ jnz %t17, @lbl2757, @lbl2759+@lbl2757+ dbgloc 90+ %t18 =l loadl %t4+ %t19 =l loadl %op+ %t20 =l loadl %t12+ %t21 =l call $operation__id_at(l %t19, l %t20)+ %t22 =l loadl %t21+ %t23 =w call $buf__Buf__put_id(l %t18, l %t22)+ dbgloc 91+ %t24 =l loadl %t12+ %t25 =l add %t24, 1+ storel %t25, %t12+ jmp @lbl2758+@lbl2758+ jmp @lbl2756+@lbl2759+ dbgloc 93+ %t26 =l loadl %t4+ %t27 =l add %op, 8+ %t28 =l loadl %t27+ %t29 =w call $buf__Buf__put_id(l %t26, l %t28)+ dbgloc 94+ %t30 =l loadl %t4+ %t31 =l add %op, 16+ %t32 =w call $buf__Buf__put_time_ms(l %t30, l %t31)+ dbgloc 95+ %t33 =l loadl %t4+ %t34 =l add %op, 26+ %t35 =w call $buf__Buf__put_time_ms(l %t33, l %t34)+ dbgloc 96+ %t36 =l loadl %t4+ %t37 =l add %op, 36+ %t38 =w call $buf__Buf__put_length_prefixed(l %t36, l %t37)+ dbgloc 97+ %t39 =l loadl %t4+ %t40 =l add %op, 52+ %t41 =w call $buf__Buf__put_length_prefixed(l %t39, l %t40)+ dbgloc 98+ %t42 =l loadl %t4+ %t43 =l add %op, 68+ %t44 =w call $buf__Buf__put_length_prefixed(l %t42, l %t43)+ dbgloc 99+ %t45 =l loadl %t4+ %t47 =l add %op, 84+ %t48 =l loadl %t47+ %t49 =l call $sxqbe_list_len(l %t48)+ %t50 =l copy %t49+ %t51 =w call $buf__Buf__put_varint(l %t45, l %t50)+ dbgloc 100+ %t53 =l add %op, 84+ %t52 =l loadl %t53+ storel 0, %t54+ %t55 =l call $sxqbe_list_len(l %t52)+@lbl2760+ %t56 =l loadl %t54+ %t57 =w csltl %t56, %t55+ jnz %t57, @lbl2761, @lbl2762+@lbl2761+ %t58 =l call $sxqbe_list_buf(l %t52)+ %t59 =l mul %t56, 8+ %t60 =l add %t58, %t59+ %t61 =l loadl %t60+ dbgloc 101+ %t62 =l loadl %t4+ %t63 =l add %t61, 0+ %t64 =w call $buf__Buf__put_length_prefixed(l %t62, l %t63)+ dbgloc 102+ %t65 =l loadl %t4+ %t66 =l add %t61, 16+ %t67 =w call $buf__Buf__put_length_prefixed(l %t65, l %t66)+@lbl2763+ %t68 =l add %t56, 1+ storel %t68, %t54+ jmp @lbl2760+@lbl2762+ dbgloc 104+ %t69 =l loadl %t4+ %t70 =l call $buf__Buf__view(l %t69)+ %t71 =l call $bytes__Bytes__dup(l %t70)+ storel %t71, %t72+ call $__sx_dbg_keep(l %t72)+ dbgvar "out", "bytes.Bytes", %t72, 8, 5, 104+ dbgloc 105+ %t73 =l loadl %t4+ %t74 =w call $buf__Buf__free(l %t73)+ dbgloc 106+ ret %t71+}++export function w $operation__free_operation(l %op) {+@start+ %t0 =l alloc8 8+ %t5 =l alloc8 8+ %t14 =l alloc8 8+ %t28 =l alloc8 8+ %t32 =l alloc8 8+ dbgloc 109+ storel %op, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "op", "ref Operation", %t0, 8, 7, 109+ dbgloc 110+ %t2 =l loadl %op+ call $sxqbe_list_free(l %t2)+ %t1 =l copy 0+ dbgloc 111+ %t4 =l add %op, 84+ %t3 =l loadl %t4+ storel 0, %t5+ %t6 =l call $sxqbe_list_len(l %t3)+@lbl2764+ %t7 =l loadl %t5+ %t8 =w csltl %t7, %t6+ jnz %t8, @lbl2765, @lbl2766+@lbl2765+ %t9 =l call $sxqbe_list_buf(l %t3)+ %t10 =l mul %t7, 8+ %t11 =l add %t9, %t10+ %t12 =l loadl %t11+ dbgloc 112+ %t13 =l copy %t12+ storel %t13, %t14+ call $__sx_dbg_keep(l %t14)+ dbgvar "p", "ref ", %t14, 8, 7, 112+ dbgloc 113+ %t16 =l loadl %t14+ call $free(l %t16)+ %t15 =l copy 0+@lbl2767+ %t17 =l add %t7, 1+ storel %t17, %t5+ jmp @lbl2764+@lbl2766+ dbgloc 115+ %t20 =l add %op, 84+ %t19 =l loadl %t20+ call $sxqbe_list_free(l %t19)+ %t18 =l copy 0+ dbgloc 116+ %t21 =l add %op, 92+ %t22 =l loadl %t21+ %t23 =l copy 0+ %t24 =w cnel %t22, %t23+ jnz %t24, @lbl2768, @lbl2769+@lbl2768+ dbgloc 117+ %t25 =l add %op, 92+ %t26 =l loadl %t25+ %t27 =l copy %t26+ storel %t27, %t28+ call $__sx_dbg_keep(l %t28)+ dbgvar "ob", "ref ", %t28, 8, 7, 117+ dbgloc 118+ %t30 =l loadl %t28+ call $free(l %t30)+ %t29 =l copy 0+ jmp @lbl2769+@lbl2769+ dbgloc 120+ %t31 =l copy %op+ storel %t31, %t32+ call $__sx_dbg_keep(l %t32)+ dbgvar "p2", "ref ", %t32, 8, 7, 120+ dbgloc 121+ %t34 =l loadl %t32+ call $free(l %t34)+ %t33 =l copy 0+ ret 0+}++dbgfile "src/object/view.sx"+export function l $view__empty_target_set() {+@start+ %t0 =l alloc8 16+ dbgloc 46+ dbgloc 47+ %t1 =l call $lists__new__GENMONO__objid__Id()++ storel %t1, %t0+ %t3 =l call $lists__new__GENMONO__objid__Id()++ %t4 =l add %t0, 8+ storel %t3, %t4+ %t5 =l call $malloc(l 16)+ call $memcpy(l %t5, l %t0, l 16)+ ret %t5+}++function l $view__id_at(l %ids, l %i) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t3 =l alloc8 16+ %t10 =l alloc8 8+ dbgloc 50+ storel %ids, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "ids", "list[objid.Id]", %t0, 8, 5, 50+ storel %i, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "i", "usize", %t1, 8, 5, 50+ dbgloc 51+ storel 0, %t3+ %t4 =w call $sxqbe_list_valid(l %ids, l %i)+ jnz %t4, @lbl2771, @lbl2772+@lbl2771+ %t5 =l call $sxqbe_list_buf(l %ids)+ %t6 =l mul %i, 8+ %t7 =l add %t5, %t6+ %t8 =l loadl %t7+ %t9 =l add %t3, 8+ storel %t8, %t9+ storel 1, %t3+ jmp @lbl2773+@lbl2772+ jmp @lbl2773+@lbl2773+ storel %t3, %t10+ call $__sx_dbg_keep(l %t10)+ dbgvar "o", "option[objid.Id]", %t10, 8, 5, 51+ dbgloc 52+ %t11 =l loadl %t3+ %t12 =w cnel %t11, 0+ jnz %t12, @lbl2774, @lbl2775+@lbl2774+ %t14 =l add %t3, 8+ %t13 =l loadl %t14+ dbgloc 53+ ret %t13+@lbl2775+ jmp @lbl2776+@lbl2776+ dbgloc 55+ %t15 =l copy 0+ jnz %t15, @lbl2777, @lbl2778+@lbl2778+ %t16 =l copy $__str208+ call $dprintf(w 2, l %t16)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl2777+ dbgloc 56+ %t17 =l call $objid__id_none()+ ret %t17+}++function w $view__name_valid(l %b) {+@start+ %t0 =l alloc8 8+ %t5 =l alloc4 1+ %t13 =l alloc8 8+ dbgloc 59+ storel %b, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "b", "bytes.Bytes", %t0, 8, 5, 59+ dbgloc 60+ %t2 =l add %b, 8+ %t1 =l loadl %t2+ %t3 =l copy 0+ %t4 =w ceql %t1, %t3+ storew %t4, %t5+ jnz %t4, @lbl2783, @lbl2782+@lbl2782+ %t7 =l add %b, 8+ %t6 =l loadl %t7+ %t8 =l copy 4096+ %t9 =w csgtl %t6, %t8+ storew %t9, %t5+ jmp @lbl2783+@lbl2783+ %t10 =w loadw %t5+ jnz %t10, @lbl2779, @lbl2780+@lbl2779+ dbgloc 61+ %t11 =l copy 0+ ret %t11+@lbl2780+ dbgloc 63+ %t12 =l copy 0+ storel %t12, %t13+ call $__sx_dbg_keep(l %t13)+ dbgvar "i", "usize", %t13, 8, 5, 63+ dbgloc 64+ jmp @lbl2784+@lbl2784+ %t14 =l loadl %t13+ %t16 =l add %b, 8+ %t15 =l loadl %t16+ %t17 =w csltl %t14, %t15+ jnz %t17, @lbl2785, @lbl2787+@lbl2785+ dbgloc 65+ %t18 =l loadl %t13+ %t19 =w call $bytes__Bytes__at(l %b, l %t18)+ %t20 =w copy 0+ %t21 =w ceqw %t19, %t20+ jnz %t21, @lbl2788, @lbl2789+@lbl2788+ dbgloc 66+ %t22 =l copy 0+ ret %t22+@lbl2789+ dbgloc 68+ %t23 =l loadl %t13+ %t24 =l add %t23, 1+ storel %t24, %t13+ jmp @lbl2786+@lbl2786+ jmp @lbl2784+@lbl2787+ dbgloc 70+ %t25 =l copy 1+ ret %t25+}++function l $view__read_heads(l %__ret, l %r) {+@start+ %t0 =l alloc8 8+ %t4 =l alloc8 16+ %t9 =l alloc8 8+ %t11 =l alloc8 8+ %t14 =l alloc8 8+ %t18 =l alloc8 8+ %t20 =l alloc8 8+ %t25 =l alloc8 8+ %t28 =l alloc8 16+ %t33 =l alloc8 8+ %t35 =l alloc8 8+ %t40 =l alloc8 8+ %t43 =l alloc8 16+ %t49 =l alloc8 16+ %t70 =l alloc8 16+ dbgloc 73+ storel %r, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "r", "reader.Reader", %t0, 8, 5, 73+ dbgloc 74+ %t1 =l loadl %t0+ %t2 =l copy 1000000+ %t3 =l call $reader__Reader__read_list_len(l %t4, l %t1, l %t2)+ %t5 =l loadl %t4+ %t6 =w ceql %t5, 0+ jnz %t6, @lbl2791, @lbl2792+@lbl2792+ call $memcpy(l %__ret, l %t4, l 16)+ ret %__ret+@lbl2791+ %t8 =l add %t4, 8+ %t7 =l loadl %t8+ storel %t7, %t9+ call $__sx_dbg_keep(l %t9)+ dbgvar "n", "usize", %t9, 8, 5, 74+ dbgloc 75+ %t10 =l call $lists__new__GENMONO__objid__Id()++ storel %t10, %t11+ call $__sx_dbg_keep(l %t11)+ dbgvar "out", "list[objid.Id]", %t11, 8, 5, 75+ dbgloc 76+ %t12 =l call $objid__id_none()+ %t13 =l call $malloc(l 8)+ call $memset(l %t13, w 0, l 8)+ call $memcpy(l %t13, l %t12, l 8)+ storel %t13, %t14+ call $__sx_dbg_keep(l %t14)+ dbgvar "prev", "objid.Id", %t14, 8, 5, 76+ dbgloc 77+ %t15 =l copy 0+ %t16 =w copy %t15+ %t17 =w extub %t16+ storew %t17, %t18+ call $__sx_dbg_keep(l %t18)+ dbgvar "have_prev", "bool", %t18, 1, 7, 77+ dbgloc 78+ %t19 =l copy 0+ storel %t19, %t20+ call $__sx_dbg_keep(l %t20)+ dbgvar "i", "usize", %t20, 8, 5, 78+ dbgloc 79+ jmp @lbl2793+@lbl2793+ %t21 =l loadl %t20+ %t22 =w csltl %t21, %t7+ jnz %t22, @lbl2794, @lbl2796+@lbl2794+ dbgloc 80+ %t23 =l loadl %t0+ %t24 =l call $reader__Reader__offset(l %t23)+ storel %t24, %t25+ call $__sx_dbg_keep(l %t25)+ dbgvar "at", "usize", %t25, 8, 5, 80+ dbgloc 81+ %t26 =l loadl %t0+ %t27 =l call $reader__Reader__read_id(l %t28, l %t26)+ %t29 =l loadl %t28+ %t30 =w ceql %t29, 0+ jnz %t30, @lbl2797, @lbl2798+@lbl2798+ call $memcpy(l %__ret, l %t28, l 16)+ ret %__ret+@lbl2797+ %t32 =l add %t28, 8+ %t31 =l loadl %t32+ storel %t31, %t33+ call $__sx_dbg_keep(l %t33)+ dbgvar "p", "ref u8", %t33, 8, 7, 81+ dbgloc 82+ %t34 =l call $objid__id(l %t31)+ storel %t34, %t35+ call $__sx_dbg_keep(l %t35)+ dbgvar "cur", "objid.Id", %t35, 8, 5, 82+ dbgloc 83+ %t37 =w loadw %t18+ %t36 =l extsw %t37+ jnz %t36, @lbl2799, @lbl2800+@lbl2799+ dbgloc 84+ %t38 =l loadl %t14+ %t39 =l call $objid__Id__cmp(l %t38, l %t34)+ storel %t39, %t40+ call $__sx_dbg_keep(l %t40)+ dbgvar "c", "i64", %t40, 8, 5, 84+ dbgloc 85+ %t41 =l copy 0+ %t42 =w ceql %t39, %t41+ jnz %t42, @lbl2802, @lbl2803+@lbl2802+ dbgloc 86+ call $memset(l %t43, w 0, l 16)+ storel 1, %t43+ %t44 =l copy 5+ %t45 =l call $derr__fail(l %t44, l %t24)+ %t46 =l add %t43, 8+ storel %t45, %t46+ call $memcpy(l %__ret, l %t43, l 16)+ ret %__ret+@lbl2803+ dbgloc 88+ %t47 =l copy 0+ %t48 =w csgtl %t39, %t47+ jnz %t48, @lbl2805, @lbl2806+@lbl2805+ dbgloc 89+ call $memset(l %t49, w 0, l 16)+ storel 1, %t49+ %t50 =l copy 4+ %t51 =l call $derr__fail(l %t50, l %t24)+ %t52 =l add %t49, 8+ storel %t51, %t52+ call $memcpy(l %__ret, l %t49, l 16)+ ret %__ret+@lbl2806+ jmp @lbl2800+@lbl2800+ dbgloc 92+ %t54 =l call $sxqbe_list_ensure(l %t11)+ %t55 =l add %t54, 8+ %t56 =l add %t54, 16+ %t57 =l loadl %t55+ %t58 =l loadl %t56+ %t60 =l add %t57, 1+ %t59 =w call $sxqbe_list_grow(l %t54, l %t60)+ %t61 =l call $sxqbe_list_buf(l %t54)+ %t62 =l mul %t57, 8+ %t63 =l add %t61, %t62+ storel %t34, %t63+ %t64 =l add %t57, 1+ storel %t64, %t55+ %t53 =l copy 0+ dbgloc 93+ storel %t34, %t14+ dbgloc 94+ %t65 =l copy 1+ %t66 =w copy %t65+ %t67 =w extub %t66+ storew %t67, %t18+ dbgloc 95+ %t68 =l loadl %t20+ %t69 =l add %t68, 1+ storel %t69, %t20+ jmp @lbl2795+@lbl2795+ jmp @lbl2793+@lbl2796+ dbgloc 97+ call $memset(l %t70, w 0, l 16)+ storel 0, %t70+ %t71 =l loadl %t11+ %t72 =l add %t70, 8+ storel %t71, %t72+ call $memcpy(l %__ret, l %t70, l 16)+ ret %__ret+}++function l $view__read_id_list(l %__ret, l %r, l %max, w %optional) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t5 =l alloc8 16+ %t10 =l alloc8 8+ %t12 =l alloc8 8+ %t14 =l alloc8 8+ %t19 =l alloc8 16+ %t24 =l alloc8 8+ %t40 =l alloc8 16+ %t45 =l alloc8 8+ %t61 =l alloc8 16+ dbgloc 100+ storel %r, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "r", "reader.Reader", %t0, 8, 5, 100+ storel %max, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "max", "usize", %t1, 8, 5, 100+ storew %optional, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "optional", "bool", %t2, 1, 7, 100+ dbgloc 105+ %t3 =l loadl %t0+ %t4 =l call $reader__Reader__read_list_len(l %t5, l %t3, l %max)+ %t6 =l loadl %t5+ %t7 =w ceql %t6, 0+ jnz %t7, @lbl2808, @lbl2809+@lbl2809+ call $memcpy(l %__ret, l %t5, l 16)+ ret %__ret+@lbl2808+ %t9 =l add %t5, 8+ %t8 =l loadl %t9+ storel %t8, %t10+ call $__sx_dbg_keep(l %t10)+ dbgvar "n", "usize", %t10, 8, 5, 105+ dbgloc 106+ %t11 =l call $lists__new__GENMONO__objid__Id()++ storel %t11, %t12+ call $__sx_dbg_keep(l %t12)+ dbgvar "out", "list[objid.Id]", %t12, 8, 5, 106+ dbgloc 107+ %t13 =l copy 0+ storel %t13, %t14+ call $__sx_dbg_keep(l %t14)+ dbgvar "i", "usize", %t14, 8, 5, 107+ dbgloc 108+ jmp @lbl2810+@lbl2810+ %t15 =l loadl %t14+ %t16 =w csltl %t15, %t8+ jnz %t16, @lbl2811, @lbl2813+@lbl2811+ dbgloc 109+ jnz %optional, @lbl2814, @lbl2816+@lbl2814+ dbgloc 110+ %t17 =l loadl %t0+ %t18 =l call $reader__Reader__read_opt_id(l %t19, l %t17)+ %t20 =l loadl %t19+ %t21 =w ceql %t20, 0+ jnz %t21, @lbl2817, @lbl2818+@lbl2818+ call $memcpy(l %__ret, l %t19, l 16)+ ret %__ret+@lbl2817+ %t23 =l add %t19, 8+ %t22 =l loadl %t23+ storel %t22, %t24+ call $__sx_dbg_keep(l %t24)+ dbgvar "p", "ref u8", %t24, 8, 7, 110+ dbgloc 111+ %t26 =l call $sxqbe_list_ensure(l %t12)+ %t27 =l call $objid__id(l %t22)+ %t28 =l add %t26, 8+ %t29 =l add %t26, 16+ %t30 =l loadl %t28+ %t31 =l loadl %t29+ %t33 =l add %t30, 1+ %t32 =w call $sxqbe_list_grow(l %t26, l %t33)+ %t34 =l call $sxqbe_list_buf(l %t26)+ %t35 =l mul %t30, 8+ %t36 =l add %t34, %t35+ storel %t27, %t36+ %t37 =l add %t30, 1+ storel %t37, %t28+ %t25 =l copy 0+ jmp @lbl2815+@lbl2816+ dbgloc 113+ %t38 =l loadl %t0+ %t39 =l call $reader__Reader__read_id(l %t40, l %t38)+ %t41 =l loadl %t40+ %t42 =w ceql %t41, 0+ jnz %t42, @lbl2819, @lbl2820+@lbl2820+ call $memcpy(l %__ret, l %t40, l 16)+ ret %__ret+@lbl2819+ %t44 =l add %t40, 8+ %t43 =l loadl %t44+ storel %t43, %t45+ call $__sx_dbg_keep(l %t45)+ dbgvar "p2", "ref u8", %t45, 8, 7, 113+ dbgloc 114+ %t47 =l call $sxqbe_list_ensure(l %t12)+ %t48 =l call $objid__id(l %t43)+ %t49 =l add %t47, 8+ %t50 =l add %t47, 16+ %t51 =l loadl %t49+ %t52 =l loadl %t50+ %t54 =l add %t51, 1+ %t53 =w call $sxqbe_list_grow(l %t47, l %t54)+ %t55 =l call $sxqbe_list_buf(l %t47)+ %t56 =l mul %t51, 8+ %t57 =l add %t55, %t56+ storel %t48, %t57+ %t58 =l add %t51, 1+ storel %t58, %t49+ %t46 =l copy 0+ jmp @lbl2815+@lbl2815+ dbgloc 116+ %t59 =l loadl %t14+ %t60 =l add %t59, 1+ storel %t60, %t14+ jmp @lbl2812+@lbl2812+ jmp @lbl2810+@lbl2813+ dbgloc 118+ call $memset(l %t61, w 0, l 16)+ storel 0, %t61+ %t62 =l loadl %t12+ %t63 =l add %t61, 8+ storel %t62, %t63+ call $memcpy(l %__ret, l %t61, l 16)+ ret %__ret+}++function w $view__contains_id(l %ids, l %v) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ dbgloc 121+ storel %ids, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "ids", "list[objid.Id]", %t0, 8, 5, 121+ storel %v, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "v", "objid.Id", %t1, 8, 5, 121+ dbgloc 122+ storel 0, %t2+ %t3 =l call $sxqbe_list_len(l %ids)+@lbl2821+ %t4 =l loadl %t2+ %t5 =w csltl %t4, %t3+ jnz %t5, @lbl2822, @lbl2823+@lbl2822+ %t6 =l call $sxqbe_list_buf(l %ids)+ %t7 =l mul %t4, 8+ %t8 =l add %t6, %t7+ %t9 =l loadl %t8+ dbgloc 123+ %t10 =w call $objid__Id__eql(l %t9, l %v)+ jnz %t10, @lbl2825, @lbl2826+@lbl2825+ dbgloc 124+ %t11 =l copy 1+ ret %t11+@lbl2826+@lbl2824+ %t12 =l add %t4, 1+ storel %t12, %t2+ jmp @lbl2821+@lbl2823+ dbgloc 127+ %t13 =l copy 0+ ret %t13+}++function w $view__all_same(l %ids) {+@start+ %t0 =l alloc8 8+ %t8 =l alloc8 8+ %t9 =l alloc8 8+ dbgloc 130+ storel %ids, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "ids", "list[objid.Id]", %t0, 8, 5, 130+ dbgloc 131+ %t2 =l call $sxqbe_list_len(l %ids)+ %t3 =l copy 1+ %t4 =w cslel %t2, %t3+ jnz %t4, @lbl2828, @lbl2829+@lbl2828+ dbgloc 132+ %t5 =l copy 1+ ret %t5+@lbl2829+ dbgloc 134+ %t6 =l copy 0+ %t7 =l call $view__id_at(l %ids, l %t6)+ storel %t7, %t8+ call $__sx_dbg_keep(l %t8)+ dbgvar "first", "objid.Id", %t8, 8, 5, 134+ dbgloc 135+ storel 0, %t9+ %t10 =l call $sxqbe_list_len(l %ids)+@lbl2831+ %t11 =l loadl %t9+ %t12 =w csltl %t11, %t10+ jnz %t12, @lbl2832, @lbl2833+@lbl2832+ %t13 =l call $sxqbe_list_buf(l %ids)+ %t14 =l mul %t11, 8+ %t15 =l add %t13, %t14+ %t16 =l loadl %t15+ dbgloc 136+ %t17 =w call $objid__Id__eql(l %t7, l %t16)+ %t18 =w ceqw %t17, 0+ jnz %t18, @lbl2835, @lbl2836+@lbl2835+ dbgloc 137+ %t19 =l copy 0+ ret %t19+@lbl2836+@lbl2834+ %t20 =l add %t11, 1+ storel %t20, %t9+ jmp @lbl2831+@lbl2833+ dbgloc 140+ %t21 =l copy 1+ ret %t21+}++function l $view__read_target_set(l %__ret, l %r) {+@start+ %t0 =l alloc8 8+ %t3 =l alloc8 8+ %t6 =l alloc8 8+ %t11 =l alloc8 16+ %t21 =l alloc8 16+ %t34 =l alloc8 16+ %t50 =l alloc8 16+ %t66 =l alloc8 16+ %t72 =l alloc8 8+ %t84 =l alloc8 16+ %t92 =l alloc4 1+ %t100 =l alloc8 16+ %t104 =l alloc8 16+ dbgloc 143+ storel %r, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "r", "reader.Reader", %t0, 8, 5, 143+ dbgloc 144+ %t1 =l loadl %t0+ %t2 =l call $reader__Reader__offset(l %t1)+ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "at", "usize", %t3, 8, 5, 144+ dbgloc 145+ %t4 =l call $view__empty_target_set()+ %t5 =l call $malloc(l 16)+ call $memset(l %t5, w 0, l 16)+ call $memcpy(l %t5, l %t4, l 16)+ storel %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "ts", "TargetSet", %t6, 8, 5, 145+ dbgloc 146+ %t7 =l loadl %t0+ %t8 =l copy 64+ %t9 =l copy 1+ %t10 =l call $view__read_id_list(l %t11, l %t7, l %t8, w %t9)+ %t12 =l loadl %t11+ %t13 =w ceql %t12, 0+ jnz %t13, @lbl2838, @lbl2839+@lbl2839+ call $memcpy(l %__ret, l %t11, l 16)+ ret %__ret+@lbl2838+ %t15 =l add %t11, 8+ %t14 =l loadl %t15+ %t16 =l loadl %t6+ storel %t14, %t16+ dbgloc 147+ %t17 =l loadl %t0+ %t18 =l copy 64+ %t19 =l copy 1+ %t20 =l call $view__read_id_list(l %t21, l %t17, l %t18, w %t19)+ %t22 =l loadl %t21+ %t23 =w ceql %t22, 0+ jnz %t23, @lbl2840, @lbl2841+@lbl2841+ call $memcpy(l %__ret, l %t21, l 16)+ ret %__ret+@lbl2840+ %t25 =l add %t21, 8+ %t24 =l loadl %t25+ %t26 =l loadl %t6+ %t27 =l add %t26, 8+ storel %t24, %t27+ dbgloc 148+ %t29 =l loadl %t6+ %t30 =l loadl %t29+ %t31 =l call $sxqbe_list_len(l %t30)+ %t32 =l copy 0+ %t33 =w ceql %t31, %t32+ jnz %t33, @lbl2842, @lbl2843+@lbl2842+ dbgloc 149+ call $memset(l %t34, w 0, l 16)+ storel 1, %t34+ %t35 =l copy 3+ %t36 =l call $derr__fail(l %t35, l %t2)+ %t37 =l add %t34, 8+ storel %t36, %t37+ call $memcpy(l %__ret, l %t34, l 16)+ ret %__ret+@lbl2843+ dbgloc 151+ %t39 =l loadl %t6+ %t40 =l loadl %t39+ %t41 =l call $sxqbe_list_len(l %t40)+ %t43 =l loadl %t6+ %t44 =l add %t43, 8+ %t45 =l loadl %t44+ %t46 =l call $sxqbe_list_len(l %t45)+ %t47 =l copy 1+ %t48 =l add %t46, %t47+ %t49 =w cnel %t41, %t48+ jnz %t49, @lbl2845, @lbl2846+@lbl2845+ dbgloc 152+ call $memset(l %t50, w 0, l 16)+ storel 1, %t50+ %t51 =l copy 3+ %t52 =l call $derr__fail(l %t51, l %t2)+ %t53 =l add %t50, 8+ storel %t52, %t53+ call $memcpy(l %__ret, l %t50, l 16)+ ret %__ret+@lbl2846+ dbgloc 154+ %t55 =l loadl %t6+ %t56 =l loadl %t55+ %t57 =l call $sxqbe_list_len(l %t56)+ %t59 =l loadl %t6+ %t60 =l add %t59, 8+ %t61 =l loadl %t60+ %t62 =l call $sxqbe_list_len(l %t61)+ %t63 =l add %t57, %t62+ %t64 =l copy 64+ %t65 =w csgtl %t63, %t64+ jnz %t65, @lbl2848, @lbl2849+@lbl2848+ dbgloc 155+ call $memset(l %t66, w 0, l 16)+ storel 1, %t66+ %t67 =l copy 6+ %t68 =l call $derr__fail(l %t67, l %t2)+ %t69 =l add %t66, 8+ storel %t68, %t69+ call $memcpy(l %__ret, l %t66, l 16)+ ret %__ret+@lbl2849+ dbgloc 157+ %t70 =l loadl %t6+ %t71 =l loadl %t70+ storel 0, %t72+ %t73 =l call $sxqbe_list_len(l %t71)+@lbl2851+ %t74 =l loadl %t72+ %t75 =w csltl %t74, %t73+ jnz %t75, @lbl2852, @lbl2853+@lbl2852+ %t76 =l call $sxqbe_list_buf(l %t71)+ %t77 =l mul %t74, 8+ %t78 =l add %t76, %t77+ %t79 =l loadl %t78+ dbgloc 158+ %t80 =l loadl %t6+ %t82 =l add %t80, 8+ %t81 =l loadl %t82+ %t83 =w call $view__contains_id(l %t81, l %t79)+ jnz %t83, @lbl2855, @lbl2856+@lbl2855+ dbgloc 159+ call $memset(l %t84, w 0, l 16)+ storel 1, %t84+ %t85 =l copy 3+ %t86 =l call $derr__fail(l %t85, l %t2)+ %t87 =l add %t84, 8+ storel %t86, %t87+ call $memcpy(l %__ret, l %t84, l 16)+ ret %__ret+@lbl2856+@lbl2854+ %t88 =l add %t74, 1+ storel %t88, %t72+ jmp @lbl2851+@lbl2853+ dbgloc 162+ %t89 =l loadl %t6+ %t90 =l loadl %t89+ %t91 =w call $view__all_same(l %t90)+ storew %t91, %t92+ jnz %t91, @lbl2861, @lbl2862+@lbl2861+ %t94 =l loadl %t6+ %t95 =l loadl %t94+ %t96 =l call $sxqbe_list_len(l %t95)+ %t97 =l copy 1+ %t98 =w csgtl %t96, %t97+ storew %t98, %t92+ jmp @lbl2862+@lbl2862+ %t99 =w loadw %t92+ jnz %t99, @lbl2858, @lbl2859+@lbl2858+ dbgloc 163+ call $memset(l %t100, w 0, l 16)+ storel 1, %t100+ %t101 =l copy 3+ %t102 =l call $derr__fail(l %t101, l %t2)+ %t103 =l add %t100, 8+ storel %t102, %t103+ call $memcpy(l %__ret, l %t100, l 16)+ ret %__ret+@lbl2859+ dbgloc 165+ call $memset(l %t104, w 0, l 16)+ storel 0, %t104+ %t105 =l loadl %t6+ %t106 =l add %t104, 8+ storel %t105, %t106+ call $memcpy(l %__ret, l %t104, l 16)+ ret %__ret+}++function l $view__read_bookmarks(l %__ret, l %r) {+@start+ %t0 =l alloc8 8+ %t4 =l alloc8 16+ %t9 =l alloc8 8+ %t11 =l alloc8 8+ %t14 =l alloc8 8+ %t18 =l alloc8 8+ %t20 =l alloc8 8+ %t25 =l alloc8 8+ %t29 =l alloc8 16+ %t34 =l alloc8 8+ %t37 =l alloc8 16+ %t45 =l alloc8 8+ %t48 =l alloc8 16+ %t54 =l alloc8 16+ %t60 =l alloc8 16+ %t65 =l alloc8 8+ %t69 =l alloc8 8+ %t91 =l alloc8 16+ dbgloc 168+ storel %r, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "r", "reader.Reader", %t0, 8, 5, 168+ dbgloc 169+ %t1 =l loadl %t0+ %t2 =l copy 1000000+ %t3 =l call $reader__Reader__read_list_len(l %t4, l %t1, l %t2)+ %t5 =l loadl %t4+ %t6 =w ceql %t5, 0+ jnz %t6, @lbl2863, @lbl2864+@lbl2864+ call $memcpy(l %__ret, l %t4, l 16)+ ret %__ret+@lbl2863+ %t8 =l add %t4, 8+ %t7 =l loadl %t8+ storel %t7, %t9+ call $__sx_dbg_keep(l %t9)+ dbgvar "n", "usize", %t9, 8, 5, 169+ dbgloc 170+ %t10 =l call $lists__new__GENMONO__ref_Bookmark()++ storel %t10, %t11+ call $__sx_dbg_keep(l %t11)+ dbgvar "out", "list[ref Bookmark]", %t11, 8, 5, 170+ dbgloc 171+ %t12 =l call $bytes__empty()+ %t13 =l call $malloc(l 16)+ call $memset(l %t13, w 0, l 16)+ call $memcpy(l %t13, l %t12, l 16)+ storel %t13, %t14+ call $__sx_dbg_keep(l %t14)+ dbgvar "prev", "bytes.Bytes", %t14, 8, 5, 171+ dbgloc 172+ %t15 =l copy 0+ %t16 =w copy %t15+ %t17 =w extub %t16+ storew %t17, %t18+ call $__sx_dbg_keep(l %t18)+ dbgvar "have_prev", "bool", %t18, 1, 7, 172+ dbgloc 173+ %t19 =l copy 0+ storel %t19, %t20+ call $__sx_dbg_keep(l %t20)+ dbgvar "i", "usize", %t20, 8, 5, 173+ dbgloc 174+ jmp @lbl2865+@lbl2865+ %t21 =l loadl %t20+ %t22 =w csltl %t21, %t7+ jnz %t22, @lbl2866, @lbl2868+@lbl2866+ dbgloc 175+ %t23 =l loadl %t0+ %t24 =l call $reader__Reader__offset(l %t23)+ storel %t24, %t25+ call $__sx_dbg_keep(l %t25)+ dbgvar "at", "usize", %t25, 8, 5, 175+ dbgloc 176+ %t26 =l loadl %t0+ %t27 =l copy 4096+ %t28 =l call $reader__Reader__read_bytes(l %t29, l %t26, l %t27)+ %t30 =l loadl %t29+ %t31 =w ceql %t30, 0+ jnz %t31, @lbl2869, @lbl2870+@lbl2870+ call $memcpy(l %__ret, l %t29, l 16)+ ret %__ret+@lbl2869+ %t33 =l add %t29, 8+ %t32 =l loadl %t33+ storel %t32, %t34+ call $__sx_dbg_keep(l %t34)+ dbgvar "name", "bytes.Bytes", %t34, 8, 5, 176+ dbgloc 177+ %t35 =w call $view__name_valid(l %t32)+ %t36 =w ceqw %t35, 0+ jnz %t36, @lbl2871, @lbl2872+@lbl2871+ dbgloc 178+ call $memset(l %t37, w 0, l 16)+ storel 1, %t37+ %t38 =l copy 7+ %t39 =l call $derr__fail(l %t38, l %t24)+ %t40 =l add %t37, 8+ storel %t39, %t40+ call $memcpy(l %__ret, l %t37, l 16)+ ret %__ret+@lbl2872+ dbgloc 180+ %t42 =w loadw %t18+ %t41 =l extsw %t42+ jnz %t41, @lbl2874, @lbl2875+@lbl2874+ dbgloc 181+ %t43 =l loadl %t14+ %t44 =l call $bytes__Bytes__cmp(l %t43, l %t32)+ storel %t44, %t45+ call $__sx_dbg_keep(l %t45)+ dbgvar "c", "i64", %t45, 8, 5, 181+ dbgloc 182+ %t46 =l copy 0+ %t47 =w ceql %t44, %t46+ jnz %t47, @lbl2877, @lbl2878+@lbl2877+ dbgloc 183+ call $memset(l %t48, w 0, l 16)+ storel 1, %t48+ %t49 =l copy 5+ %t50 =l call $derr__fail(l %t49, l %t24)+ %t51 =l add %t48, 8+ storel %t50, %t51+ call $memcpy(l %__ret, l %t48, l 16)+ ret %__ret+@lbl2878+ dbgloc 185+ %t52 =l copy 0+ %t53 =w csgtl %t44, %t52+ jnz %t53, @lbl2880, @lbl2881+@lbl2880+ dbgloc 186+ call $memset(l %t54, w 0, l 16)+ storel 1, %t54+ %t55 =l copy 4+ %t56 =l call $derr__fail(l %t55, l %t24)+ %t57 =l add %t54, 8+ storel %t56, %t57+ call $memcpy(l %__ret, l %t54, l 16)+ ret %__ret+@lbl2881+ jmp @lbl2875+@lbl2875+ dbgloc 189+ %t58 =l loadl %t0+ %t59 =l call $view__read_target_set(l %t60, l %t58)+ %t61 =l loadl %t60+ %t62 =w ceql %t61, 0+ jnz %t62, @lbl2883, @lbl2884+@lbl2884+ call $memcpy(l %__ret, l %t60, l 16)+ ret %__ret+@lbl2883+ %t64 =l add %t60, 8+ %t63 =l loadl %t64+ storel %t63, %t65+ call $__sx_dbg_keep(l %t65)+ dbgvar "ts", "TargetSet", %t65, 8, 5, 189+ dbgloc 190+ %t67 =l copy 32+ %t66 =l call $malloc(l %t67)+ %t68 =l copy %t66+ storel %t68, %t69+ call $__sx_dbg_keep(l %t69)+ dbgvar "bm", "ref Bookmark", %t69, 8, 7, 190+ dbgloc 191+ %t70 =l loadl %t69+ call $memcpy(l %t70, l %t32, l 16)+ dbgloc 192+ %t71 =l loadl %t69+ %t72 =l add %t71, 16+ call $memcpy(l %t72, l %t63, l 16)+ dbgloc 193+ %t74 =l call $sxqbe_list_ensure(l %t11)+ %t75 =l loadl %t69+ %t76 =l add %t74, 8+ %t77 =l add %t74, 16+ %t78 =l loadl %t76+ %t79 =l loadl %t77+ %t81 =l add %t78, 1+ %t80 =w call $sxqbe_list_grow(l %t74, l %t81)+ %t82 =l call $sxqbe_list_buf(l %t74)+ %t83 =l mul %t78, 8+ %t84 =l add %t82, %t83+ storel %t75, %t84+ %t85 =l add %t78, 1+ storel %t85, %t76+ %t73 =l copy 0+ dbgloc 194+ storel %t32, %t14+ dbgloc 195+ %t86 =l copy 1+ %t87 =w copy %t86+ %t88 =w extub %t87+ storew %t88, %t18+ dbgloc 196+ %t89 =l loadl %t20+ %t90 =l add %t89, 1+ storel %t90, %t20+ jmp @lbl2867+@lbl2867+ jmp @lbl2865+@lbl2868+ dbgloc 198+ call $memset(l %t91, w 0, l 16)+ storel 0, %t91+ %t92 =l loadl %t11+ %t93 =l add %t91, 8+ storel %t92, %t93+ call $memcpy(l %__ret, l %t91, l 16)+ ret %__ret+}++function l $view__read_tags(l %__ret, l %r) {+@start+ %t0 =l alloc8 8+ %t4 =l alloc8 16+ %t9 =l alloc8 8+ %t11 =l alloc8 8+ %t14 =l alloc8 8+ %t18 =l alloc8 8+ %t20 =l alloc8 8+ %t25 =l alloc8 8+ %t29 =l alloc8 16+ %t34 =l alloc8 8+ %t37 =l alloc8 16+ %t45 =l alloc8 8+ %t48 =l alloc8 16+ %t54 =l alloc8 16+ %t60 =l alloc8 16+ %t65 =l alloc8 8+ %t69 =l alloc8 8+ %t92 =l alloc8 16+ dbgloc 201+ storel %r, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "r", "reader.Reader", %t0, 8, 5, 201+ dbgloc 202+ %t1 =l loadl %t0+ %t2 =l copy 1000000+ %t3 =l call $reader__Reader__read_list_len(l %t4, l %t1, l %t2)+ %t5 =l loadl %t4+ %t6 =w ceql %t5, 0+ jnz %t6, @lbl2885, @lbl2886+@lbl2886+ call $memcpy(l %__ret, l %t4, l 16)+ ret %__ret+@lbl2885+ %t8 =l add %t4, 8+ %t7 =l loadl %t8+ storel %t7, %t9+ call $__sx_dbg_keep(l %t9)+ dbgvar "n", "usize", %t9, 8, 5, 202+ dbgloc 203+ %t10 =l call $lists__new__GENMONO__ref_TagRef()++ storel %t10, %t11+ call $__sx_dbg_keep(l %t11)+ dbgvar "out", "list[ref TagRef]", %t11, 8, 5, 203+ dbgloc 204+ %t12 =l call $bytes__empty()+ %t13 =l call $malloc(l 16)+ call $memset(l %t13, w 0, l 16)+ call $memcpy(l %t13, l %t12, l 16)+ storel %t13, %t14+ call $__sx_dbg_keep(l %t14)+ dbgvar "prev", "bytes.Bytes", %t14, 8, 5, 204+ dbgloc 205+ %t15 =l copy 0+ %t16 =w copy %t15+ %t17 =w extub %t16+ storew %t17, %t18+ call $__sx_dbg_keep(l %t18)+ dbgvar "have_prev", "bool", %t18, 1, 7, 205+ dbgloc 206+ %t19 =l copy 0+ storel %t19, %t20+ call $__sx_dbg_keep(l %t20)+ dbgvar "i", "usize", %t20, 8, 5, 206+ dbgloc 207+ jmp @lbl2887+@lbl2887+ %t21 =l loadl %t20+ %t22 =w csltl %t21, %t7+ jnz %t22, @lbl2888, @lbl2890+@lbl2888+ dbgloc 208+ %t23 =l loadl %t0+ %t24 =l call $reader__Reader__offset(l %t23)+ storel %t24, %t25+ call $__sx_dbg_keep(l %t25)+ dbgvar "at", "usize", %t25, 8, 5, 208+ dbgloc 209+ %t26 =l loadl %t0+ %t27 =l copy 4096+ %t28 =l call $reader__Reader__read_bytes(l %t29, l %t26, l %t27)+ %t30 =l loadl %t29+ %t31 =w ceql %t30, 0+ jnz %t31, @lbl2891, @lbl2892+@lbl2892+ call $memcpy(l %__ret, l %t29, l 16)+ ret %__ret+@lbl2891+ %t33 =l add %t29, 8+ %t32 =l loadl %t33+ storel %t32, %t34+ call $__sx_dbg_keep(l %t34)+ dbgvar "name", "bytes.Bytes", %t34, 8, 5, 209+ dbgloc 210+ %t35 =w call $view__name_valid(l %t32)+ %t36 =w ceqw %t35, 0+ jnz %t36, @lbl2893, @lbl2894+@lbl2893+ dbgloc 211+ call $memset(l %t37, w 0, l 16)+ storel 1, %t37+ %t38 =l copy 7+ %t39 =l call $derr__fail(l %t38, l %t24)+ %t40 =l add %t37, 8+ storel %t39, %t40+ call $memcpy(l %__ret, l %t37, l 16)+ ret %__ret+@lbl2894+ dbgloc 213+ %t42 =w loadw %t18+ %t41 =l extsw %t42+ jnz %t41, @lbl2896, @lbl2897+@lbl2896+ dbgloc 214+ %t43 =l loadl %t14+ %t44 =l call $bytes__Bytes__cmp(l %t43, l %t32)+ storel %t44, %t45+ call $__sx_dbg_keep(l %t45)+ dbgvar "c", "i64", %t45, 8, 5, 214+ dbgloc 215+ %t46 =l copy 0+ %t47 =w ceql %t44, %t46+ jnz %t47, @lbl2899, @lbl2900+@lbl2899+ dbgloc 216+ call $memset(l %t48, w 0, l 16)+ storel 1, %t48+ %t49 =l copy 5+ %t50 =l call $derr__fail(l %t49, l %t24)+ %t51 =l add %t48, 8+ storel %t50, %t51+ call $memcpy(l %__ret, l %t48, l 16)+ ret %__ret+@lbl2900+ dbgloc 218+ %t52 =l copy 0+ %t53 =w csgtl %t44, %t52+ jnz %t53, @lbl2902, @lbl2903+@lbl2902+ dbgloc 219+ call $memset(l %t54, w 0, l 16)+ storel 1, %t54+ %t55 =l copy 4+ %t56 =l call $derr__fail(l %t55, l %t24)+ %t57 =l add %t54, 8+ storel %t56, %t57+ call $memcpy(l %__ret, l %t54, l 16)+ ret %__ret+@lbl2903+ jmp @lbl2897+@lbl2897+ dbgloc 222+ %t58 =l loadl %t0+ %t59 =l call $reader__Reader__read_id(l %t60, l %t58)+ %t61 =l loadl %t60+ %t62 =w ceql %t61, 0+ jnz %t62, @lbl2905, @lbl2906+@lbl2906+ call $memcpy(l %__ret, l %t60, l 16)+ ret %__ret+@lbl2905+ %t64 =l add %t60, 8+ %t63 =l loadl %t64+ storel %t63, %t65+ call $__sx_dbg_keep(l %t65)+ dbgvar "target", "ref u8", %t65, 8, 7, 222+ dbgloc 223+ %t67 =l copy 24+ %t66 =l call $malloc(l %t67)+ %t68 =l copy %t66+ storel %t68, %t69+ call $__sx_dbg_keep(l %t69)+ dbgvar "t", "ref TagRef", %t69, 8, 7, 223+ dbgloc 224+ %t70 =l loadl %t69+ call $memcpy(l %t70, l %t32, l 16)+ dbgloc 225+ %t71 =l call $objid__id(l %t63)+ %t72 =l loadl %t69+ %t73 =l add %t72, 16+ call $memcpy(l %t73, l %t71, l 8)+ dbgloc 226+ %t75 =l call $sxqbe_list_ensure(l %t11)+ %t76 =l loadl %t69+ %t77 =l add %t75, 8+ %t78 =l add %t75, 16+ %t79 =l loadl %t77+ %t80 =l loadl %t78+ %t82 =l add %t79, 1+ %t81 =w call $sxqbe_list_grow(l %t75, l %t82)+ %t83 =l call $sxqbe_list_buf(l %t75)+ %t84 =l mul %t79, 8+ %t85 =l add %t83, %t84+ storel %t76, %t85+ %t86 =l add %t79, 1+ storel %t86, %t77+ %t74 =l copy 0+ dbgloc 227+ storel %t32, %t14+ dbgloc 228+ %t87 =l copy 1+ %t88 =w copy %t87+ %t89 =w extub %t88+ storew %t89, %t18+ dbgloc 229+ %t90 =l loadl %t20+ %t91 =l add %t90, 1+ storel %t91, %t20+ jmp @lbl2889+@lbl2889+ jmp @lbl2887+@lbl2890+ dbgloc 231+ call $memset(l %t92, w 0, l 16)+ storel 0, %t92+ %t93 =l loadl %t11+ %t94 =l add %t92, 8+ storel %t93, %t94+ call $memcpy(l %__ret, l %t92, l 16)+ ret %__ret+}++function l $view__ref_cmp(l %remote_a, l %name_a, l %remote_b, l %name_b) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t3 =l alloc8 8+ %t5 =l alloc8 8+ dbgloc 234+ storel %remote_a, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "remote_a", "bytes.Bytes", %t0, 8, 5, 234+ storel %name_a, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "name_a", "bytes.Bytes", %t1, 8, 5, 234+ storel %remote_b, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "remote_b", "bytes.Bytes", %t2, 8, 5, 234+ storel %name_b, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "name_b", "bytes.Bytes", %t3, 8, 5, 234+ dbgloc 240+ %t4 =l call $bytes__Bytes__cmp(l %remote_a, l %remote_b)+ storel %t4, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "c", "i64", %t5, 8, 5, 240+ dbgloc 241+ %t6 =l copy 0+ %t7 =w cnel %t4, %t6+ jnz %t7, @lbl2907, @lbl2908+@lbl2907+ dbgloc 242+ ret %t4+@lbl2908+ dbgloc 244+ %t8 =l call $bytes__Bytes__cmp(l %name_a, l %name_b)+ ret %t8+}++function l $view__read_remote_refs(l %__ret, l %r) {+@start+ %t0 =l alloc8 8+ %t4 =l alloc8 16+ %t9 =l alloc8 8+ %t11 =l alloc8 8+ %t14 =l alloc8 8+ %t17 =l alloc8 8+ %t21 =l alloc8 8+ %t23 =l alloc8 8+ %t28 =l alloc8 8+ %t32 =l alloc8 16+ %t37 =l alloc8 8+ %t41 =l alloc8 16+ %t46 =l alloc8 8+ %t49 =l alloc4 1+ %t53 =l alloc8 16+ %t62 =l alloc8 8+ %t65 =l alloc8 16+ %t71 =l alloc8 16+ %t77 =l alloc8 16+ %t82 =l alloc8 8+ %t86 =l alloc8 8+ %t111 =l alloc8 16+ dbgloc 247+ storel %r, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "r", "reader.Reader", %t0, 8, 5, 247+ dbgloc 248+ %t1 =l loadl %t0+ %t2 =l copy 1000000+ %t3 =l call $reader__Reader__read_list_len(l %t4, l %t1, l %t2)+ %t5 =l loadl %t4+ %t6 =w ceql %t5, 0+ jnz %t6, @lbl2910, @lbl2911+@lbl2911+ call $memcpy(l %__ret, l %t4, l 16)+ ret %__ret+@lbl2910+ %t8 =l add %t4, 8+ %t7 =l loadl %t8+ storel %t7, %t9+ call $__sx_dbg_keep(l %t9)+ dbgvar "n", "usize", %t9, 8, 5, 248+ dbgloc 249+ %t10 =l call $lists__new__GENMONO__ref_RemoteRef()++ storel %t10, %t11+ call $__sx_dbg_keep(l %t11)+ dbgvar "out", "list[ref RemoteRef]", %t11, 8, 5, 249+ dbgloc 250+ %t12 =l call $bytes__empty()+ %t13 =l call $malloc(l 16)+ call $memset(l %t13, w 0, l 16)+ call $memcpy(l %t13, l %t12, l 16)+ storel %t13, %t14+ call $__sx_dbg_keep(l %t14)+ dbgvar "prev_remote", "bytes.Bytes", %t14, 8, 5, 250+ dbgloc 251+ %t15 =l call $bytes__empty()+ %t16 =l call $malloc(l 16)+ call $memset(l %t16, w 0, l 16)+ call $memcpy(l %t16, l %t15, l 16)+ storel %t16, %t17+ call $__sx_dbg_keep(l %t17)+ dbgvar "prev_name", "bytes.Bytes", %t17, 8, 5, 251+ dbgloc 252+ %t18 =l copy 0+ %t19 =w copy %t18+ %t20 =w extub %t19+ storew %t20, %t21+ call $__sx_dbg_keep(l %t21)+ dbgvar "have_prev", "bool", %t21, 1, 7, 252+ dbgloc 253+ %t22 =l copy 0+ storel %t22, %t23+ call $__sx_dbg_keep(l %t23)+ dbgvar "i", "usize", %t23, 8, 5, 253+ dbgloc 254+ jmp @lbl2912+@lbl2912+ %t24 =l loadl %t23+ %t25 =w csltl %t24, %t7+ jnz %t25, @lbl2913, @lbl2915+@lbl2913+ dbgloc 255+ %t26 =l loadl %t0+ %t27 =l call $reader__Reader__offset(l %t26)+ storel %t27, %t28+ call $__sx_dbg_keep(l %t28)+ dbgvar "at", "usize", %t28, 8, 5, 255+ dbgloc 256+ %t29 =l loadl %t0+ %t30 =l copy 4096+ %t31 =l call $reader__Reader__read_bytes(l %t32, l %t29, l %t30)+ %t33 =l loadl %t32+ %t34 =w ceql %t33, 0+ jnz %t34, @lbl2916, @lbl2917+@lbl2917+ call $memcpy(l %__ret, l %t32, l 16)+ ret %__ret+@lbl2916+ %t36 =l add %t32, 8+ %t35 =l loadl %t36+ storel %t35, %t37+ call $__sx_dbg_keep(l %t37)+ dbgvar "remote", "bytes.Bytes", %t37, 8, 5, 256+ dbgloc 257+ %t38 =l loadl %t0+ %t39 =l copy 4096+ %t40 =l call $reader__Reader__read_bytes(l %t41, l %t38, l %t39)+ %t42 =l loadl %t41+ %t43 =w ceql %t42, 0+ jnz %t43, @lbl2918, @lbl2919+@lbl2919+ call $memcpy(l %__ret, l %t41, l 16)+ ret %__ret+@lbl2918+ %t45 =l add %t41, 8+ %t44 =l loadl %t45+ storel %t44, %t46+ call $__sx_dbg_keep(l %t46)+ dbgvar "name", "bytes.Bytes", %t46, 8, 5, 257+ dbgloc 258+ %t47 =w call $view__name_valid(l %t35)+ %t48 =w ceqw %t47, 0+ storew %t48, %t49+ jnz %t48, @lbl2924, @lbl2923+@lbl2923+ %t50 =w call $view__name_valid(l %t44)+ %t51 =w ceqw %t50, 0+ storew %t51, %t49+ jmp @lbl2924+@lbl2924+ %t52 =w loadw %t49+ jnz %t52, @lbl2920, @lbl2921+@lbl2920+ dbgloc 259+ call $memset(l %t53, w 0, l 16)+ storel 1, %t53+ %t54 =l copy 7+ %t55 =l call $derr__fail(l %t54, l %t27)+ %t56 =l add %t53, 8+ storel %t55, %t56+ call $memcpy(l %__ret, l %t53, l 16)+ ret %__ret+@lbl2921+ dbgloc 261+ %t58 =w loadw %t21+ %t57 =l extsw %t58+ jnz %t57, @lbl2925, @lbl2926+@lbl2925+ dbgloc 262+ %t59 =l loadl %t14+ %t60 =l loadl %t17+ %t61 =l call $view__ref_cmp(l %t59, l %t60, l %t35, l %t44)+ storel %t61, %t62+ call $__sx_dbg_keep(l %t62)+ dbgvar "c", "i64", %t62, 8, 5, 262+ dbgloc 263+ %t63 =l copy 0+ %t64 =w ceql %t61, %t63+ jnz %t64, @lbl2928, @lbl2929+@lbl2928+ dbgloc 264+ call $memset(l %t65, w 0, l 16)+ storel 1, %t65+ %t66 =l copy 5+ %t67 =l call $derr__fail(l %t66, l %t27)+ %t68 =l add %t65, 8+ storel %t67, %t68+ call $memcpy(l %__ret, l %t65, l 16)+ ret %__ret+@lbl2929+ dbgloc 266+ %t69 =l copy 0+ %t70 =w csgtl %t61, %t69+ jnz %t70, @lbl2931, @lbl2932+@lbl2931+ dbgloc 267+ call $memset(l %t71, w 0, l 16)+ storel 1, %t71+ %t72 =l copy 4+ %t73 =l call $derr__fail(l %t72, l %t27)+ %t74 =l add %t71, 8+ storel %t73, %t74+ call $memcpy(l %__ret, l %t71, l 16)+ ret %__ret+@lbl2932+ jmp @lbl2926+@lbl2926+ dbgloc 270+ %t75 =l loadl %t0+ %t76 =l call $reader__Reader__read_id(l %t77, l %t75)+ %t78 =l loadl %t77+ %t79 =w ceql %t78, 0+ jnz %t79, @lbl2934, @lbl2935+@lbl2935+ call $memcpy(l %__ret, l %t77, l 16)+ ret %__ret+@lbl2934+ %t81 =l add %t77, 8+ %t80 =l loadl %t81+ storel %t80, %t82+ call $__sx_dbg_keep(l %t82)+ dbgvar "target", "ref u8", %t82, 8, 7, 270+ dbgloc 271+ %t84 =l copy 40+ %t83 =l call $malloc(l %t84)+ %t85 =l copy %t83+ storel %t85, %t86+ call $__sx_dbg_keep(l %t86)+ dbgvar "rr", "ref RemoteRef", %t86, 8, 7, 271+ dbgloc 272+ %t87 =l loadl %t86+ call $memcpy(l %t87, l %t35, l 16)+ dbgloc 273+ %t88 =l loadl %t86+ %t89 =l add %t88, 16+ call $memcpy(l %t89, l %t44, l 16)+ dbgloc 274+ %t90 =l call $objid__id(l %t80)+ %t91 =l loadl %t86+ %t92 =l add %t91, 32+ call $memcpy(l %t92, l %t90, l 8)+ dbgloc 275+ %t94 =l call $sxqbe_list_ensure(l %t11)+ %t95 =l loadl %t86+ %t96 =l add %t94, 8+ %t97 =l add %t94, 16+ %t98 =l loadl %t96+ %t99 =l loadl %t97+ %t101 =l add %t98, 1+ %t100 =w call $sxqbe_list_grow(l %t94, l %t101)+ %t102 =l call $sxqbe_list_buf(l %t94)+ %t103 =l mul %t98, 8+ %t104 =l add %t102, %t103+ storel %t95, %t104+ %t105 =l add %t98, 1+ storel %t105, %t96+ %t93 =l copy 0+ dbgloc 276+ storel %t35, %t14+ dbgloc 277+ storel %t44, %t17+ dbgloc 278+ %t106 =l copy 1+ %t107 =w copy %t106+ %t108 =w extub %t107+ storew %t108, %t21+ dbgloc 279+ %t109 =l loadl %t23+ %t110 =l add %t109, 1+ storel %t110, %t23+ jmp @lbl2914+@lbl2914+ jmp @lbl2912+@lbl2915+ dbgloc 281+ call $memset(l %t111, w 0, l 16)+ storel 0, %t111+ %t112 =l loadl %t11+ %t113 =l add %t111, 8+ storel %t112, %t113+ call $memcpy(l %__ret, l %t111, l 16)+ ret %__ret+}++function l $view__read_working_copies(l %__ret, l %r) {+@start+ %t0 =l alloc8 8+ %t4 =l alloc8 16+ %t9 =l alloc8 8+ %t11 =l alloc8 8+ %t14 =l alloc8 8+ %t18 =l alloc8 8+ %t20 =l alloc8 8+ %t25 =l alloc8 8+ %t29 =l alloc8 16+ %t34 =l alloc8 8+ %t37 =l alloc8 16+ %t45 =l alloc8 8+ %t48 =l alloc8 16+ %t54 =l alloc8 16+ %t60 =l alloc8 16+ %t65 =l alloc8 8+ %t69 =l alloc8 8+ %t92 =l alloc8 16+ dbgloc 284+ storel %r, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "r", "reader.Reader", %t0, 8, 5, 284+ dbgloc 285+ %t1 =l loadl %t0+ %t2 =l copy 1000000+ %t3 =l call $reader__Reader__read_list_len(l %t4, l %t1, l %t2)+ %t5 =l loadl %t4+ %t6 =w ceql %t5, 0+ jnz %t6, @lbl2936, @lbl2937+@lbl2937+ call $memcpy(l %__ret, l %t4, l 16)+ ret %__ret+@lbl2936+ %t8 =l add %t4, 8+ %t7 =l loadl %t8+ storel %t7, %t9+ call $__sx_dbg_keep(l %t9)+ dbgvar "n", "usize", %t9, 8, 5, 285+ dbgloc 286+ %t10 =l call $lists__new__GENMONO__ref_WorkspaceRef()++ storel %t10, %t11+ call $__sx_dbg_keep(l %t11)+ dbgvar "out", "list[ref WorkspaceRef]", %t11, 8, 5, 286+ dbgloc 287+ %t12 =l call $bytes__empty()+ %t13 =l call $malloc(l 16)+ call $memset(l %t13, w 0, l 16)+ call $memcpy(l %t13, l %t12, l 16)+ storel %t13, %t14+ call $__sx_dbg_keep(l %t14)+ dbgvar "prev", "bytes.Bytes", %t14, 8, 5, 287+ dbgloc 288+ %t15 =l copy 0+ %t16 =w copy %t15+ %t17 =w extub %t16+ storew %t17, %t18+ call $__sx_dbg_keep(l %t18)+ dbgvar "have_prev", "bool", %t18, 1, 7, 288+ dbgloc 289+ %t19 =l copy 0+ storel %t19, %t20+ call $__sx_dbg_keep(l %t20)+ dbgvar "i", "usize", %t20, 8, 5, 289+ dbgloc 290+ jmp @lbl2938+@lbl2938+ %t21 =l loadl %t20+ %t22 =w csltl %t21, %t7+ jnz %t22, @lbl2939, @lbl2941+@lbl2939+ dbgloc 291+ %t23 =l loadl %t0+ %t24 =l call $reader__Reader__offset(l %t23)+ storel %t24, %t25+ call $__sx_dbg_keep(l %t25)+ dbgvar "at", "usize", %t25, 8, 5, 291+ dbgloc 292+ %t26 =l loadl %t0+ %t27 =l copy 4096+ %t28 =l call $reader__Reader__read_bytes(l %t29, l %t26, l %t27)+ %t30 =l loadl %t29+ %t31 =w ceql %t30, 0+ jnz %t31, @lbl2942, @lbl2943+@lbl2943+ call $memcpy(l %__ret, l %t29, l 16)+ ret %__ret+@lbl2942+ %t33 =l add %t29, 8+ %t32 =l loadl %t33+ storel %t32, %t34+ call $__sx_dbg_keep(l %t34)+ dbgvar "workspace", "bytes.Bytes", %t34, 8, 5, 292+ dbgloc 293+ %t35 =w call $view__name_valid(l %t32)+ %t36 =w ceqw %t35, 0+ jnz %t36, @lbl2944, @lbl2945+@lbl2944+ dbgloc 294+ call $memset(l %t37, w 0, l 16)+ storel 1, %t37+ %t38 =l copy 7+ %t39 =l call $derr__fail(l %t38, l %t24)+ %t40 =l add %t37, 8+ storel %t39, %t40+ call $memcpy(l %__ret, l %t37, l 16)+ ret %__ret+@lbl2945+ dbgloc 296+ %t42 =w loadw %t18+ %t41 =l extsw %t42+ jnz %t41, @lbl2947, @lbl2948+@lbl2947+ dbgloc 297+ %t43 =l loadl %t14+ %t44 =l call $bytes__Bytes__cmp(l %t43, l %t32)+ storel %t44, %t45+ call $__sx_dbg_keep(l %t45)+ dbgvar "c", "i64", %t45, 8, 5, 297+ dbgloc 298+ %t46 =l copy 0+ %t47 =w ceql %t44, %t46+ jnz %t47, @lbl2950, @lbl2951+@lbl2950+ dbgloc 299+ call $memset(l %t48, w 0, l 16)+ storel 1, %t48+ %t49 =l copy 5+ %t50 =l call $derr__fail(l %t49, l %t24)+ %t51 =l add %t48, 8+ storel %t50, %t51+ call $memcpy(l %__ret, l %t48, l 16)+ ret %__ret+@lbl2951+ dbgloc 301+ %t52 =l copy 0+ %t53 =w csgtl %t44, %t52+ jnz %t53, @lbl2953, @lbl2954+@lbl2953+ dbgloc 302+ call $memset(l %t54, w 0, l 16)+ storel 1, %t54+ %t55 =l copy 4+ %t56 =l call $derr__fail(l %t55, l %t24)+ %t57 =l add %t54, 8+ storel %t56, %t57+ call $memcpy(l %__ret, l %t54, l 16)+ ret %__ret+@lbl2954+ jmp @lbl2948+@lbl2948+ dbgloc 305+ %t58 =l loadl %t0+ %t59 =l call $reader__Reader__read_id(l %t60, l %t58)+ %t61 =l loadl %t60+ %t62 =w ceql %t61, 0+ jnz %t62, @lbl2956, @lbl2957+@lbl2957+ call $memcpy(l %__ret, l %t60, l 16)+ ret %__ret+@lbl2956+ %t64 =l add %t60, 8+ %t63 =l loadl %t64+ storel %t63, %t65+ call $__sx_dbg_keep(l %t65)+ dbgvar "target", "ref u8", %t65, 8, 7, 305+ dbgloc 306+ %t67 =l copy 24+ %t66 =l call $malloc(l %t67)+ %t68 =l copy %t66+ storel %t68, %t69+ call $__sx_dbg_keep(l %t69)+ dbgvar "w", "ref WorkspaceRef", %t69, 8, 7, 306+ dbgloc 307+ %t70 =l loadl %t69+ call $memcpy(l %t70, l %t32, l 16)+ dbgloc 308+ %t71 =l call $objid__id(l %t63)+ %t72 =l loadl %t69+ %t73 =l add %t72, 16+ call $memcpy(l %t73, l %t71, l 8)+ dbgloc 309+ %t75 =l call $sxqbe_list_ensure(l %t11)+ %t76 =l loadl %t69+ %t77 =l add %t75, 8+ %t78 =l add %t75, 16+ %t79 =l loadl %t77+ %t80 =l loadl %t78+ %t82 =l add %t79, 1+ %t81 =w call $sxqbe_list_grow(l %t75, l %t82)+ %t83 =l call $sxqbe_list_buf(l %t75)+ %t84 =l mul %t79, 8+ %t85 =l add %t83, %t84+ storel %t76, %t85+ %t86 =l add %t79, 1+ storel %t86, %t77+ %t74 =l copy 0+ dbgloc 310+ storel %t32, %t14+ dbgloc 311+ %t87 =l copy 1+ %t88 =w copy %t87+ %t89 =w extub %t88+ storew %t89, %t18+ dbgloc 312+ %t90 =l loadl %t20+ %t91 =l add %t90, 1+ storel %t91, %t20+ jmp @lbl2940+@lbl2940+ jmp @lbl2938+@lbl2941+ dbgloc 314+ call $memset(l %t92, w 0, l 16)+ storel 0, %t92+ %t93 =l loadl %t11+ %t94 =l add %t92, 8+ storel %t93, %t94+ call $memcpy(l %__ret, l %t92, l 16)+ ret %__ret+}++export function l $view__decode(l %__ret, l %body) {+@start+ %t0 =l alloc8 8+ %t6 =l alloc8 8+ %t10 =l alloc8 8+ %t16 =l alloc8 16+ %t24 =l alloc8 16+ %t33 =l alloc8 16+ %t42 =l alloc8 16+ %t51 =l alloc8 16+ %t60 =l alloc8 16+ %t65 =l alloc8 16+ dbgloc 317+ storel %body, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "body", "bytes.Bytes", %t0, 8, 5, 317+ dbgloc 318+ %t1 =l loadl %body+ %t3 =l add %body, 8+ %t2 =l loadl %t3+ %t4 =l call $reader__new(l %t1, l %t2)+ %t5 =l call $malloc(l 24)+ call $memset(l %t5, w 0, l 24)+ call $memcpy(l %t5, l %t4, l 24)+ storel %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "r", "reader.Reader", %t6, 8, 5, 318+ dbgloc 319+ %t8 =l copy 56+ %t7 =l call $malloc(l %t8)+ %t9 =l copy %t7+ storel %t9, %t10+ call $__sx_dbg_keep(l %t10)+ dbgvar "v", "ref View", %t10, 8, 7, 319+ dbgloc 320+ %t11 =l call $bytes__empty()+ %t12 =l loadl %t10+ %t13 =l add %t12, 40+ call $memcpy(l %t13, l %t11, l 16)+ dbgloc 321+ %t14 =l loadl %t6+ %t15 =l call $view__read_heads(l %t16, l %t14)+ %t17 =l loadl %t16+ %t18 =w ceql %t17, 0+ jnz %t18, @lbl2958, @lbl2959+@lbl2959+ call $memcpy(l %__ret, l %t16, l 16)+ ret %__ret+@lbl2958+ %t20 =l add %t16, 8+ %t19 =l loadl %t20+ %t21 =l loadl %t10+ storel %t19, %t21+ dbgloc 322+ %t22 =l loadl %t6+ %t23 =l call $view__read_bookmarks(l %t24, l %t22)+ %t25 =l loadl %t24+ %t26 =w ceql %t25, 0+ jnz %t26, @lbl2960, @lbl2961+@lbl2961+ call $memcpy(l %__ret, l %t24, l 16)+ ret %__ret+@lbl2960+ %t28 =l add %t24, 8+ %t27 =l loadl %t28+ %t29 =l loadl %t10+ %t30 =l add %t29, 8+ storel %t27, %t30+ dbgloc 323+ %t31 =l loadl %t6+ %t32 =l call $view__read_tags(l %t33, l %t31)+ %t34 =l loadl %t33+ %t35 =w ceql %t34, 0+ jnz %t35, @lbl2962, @lbl2963+@lbl2963+ call $memcpy(l %__ret, l %t33, l 16)+ ret %__ret+@lbl2962+ %t37 =l add %t33, 8+ %t36 =l loadl %t37+ %t38 =l loadl %t10+ %t39 =l add %t38, 16+ storel %t36, %t39+ dbgloc 324+ %t40 =l loadl %t6+ %t41 =l call $view__read_remote_refs(l %t42, l %t40)+ %t43 =l loadl %t42+ %t44 =w ceql %t43, 0+ jnz %t44, @lbl2964, @lbl2965+@lbl2965+ call $memcpy(l %__ret, l %t42, l 16)+ ret %__ret+@lbl2964+ %t46 =l add %t42, 8+ %t45 =l loadl %t46+ %t47 =l loadl %t10+ %t48 =l add %t47, 24+ storel %t45, %t48+ dbgloc 325+ %t49 =l loadl %t6+ %t50 =l call $view__read_working_copies(l %t51, l %t49)+ %t52 =l loadl %t51+ %t53 =w ceql %t52, 0+ jnz %t53, @lbl2966, @lbl2967+@lbl2967+ call $memcpy(l %__ret, l %t51, l 16)+ ret %__ret+@lbl2966+ %t55 =l add %t51, 8+ %t54 =l loadl %t55+ %t56 =l loadl %t10+ %t57 =l add %t56, 32+ storel %t54, %t57+ dbgloc 326+ %t58 =l loadl %t6+ %t59 =l call $reader__Reader__finish(l %t60, l %t58)+ %t61 =l loadl %t60+ %t62 =w ceql %t61, 0+ jnz %t62, @lbl2968, @lbl2969+@lbl2969+ call $memcpy(l %__ret, l %t60, l 16)+ ret %__ret+@lbl2968+ %t64 =l add %t60, 8+ %t63 =l loadl %t64+ dbgloc 327+ call $memset(l %t65, w 0, l 16)+ storel 0, %t65+ %t66 =l loadl %t10+ %t67 =l add %t65, 8+ storel %t66, %t67+ call $memcpy(l %__ret, l %t65, l 16)+ ret %__ret+}++function w $view__put_target_set(l %b, l %ts) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t9 =l alloc8 8+ %t30 =l alloc8 8+ dbgloc 330+ storel %b, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "b", "buf.Buf", %t0, 8, 5, 330+ storel %ts, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "ts", "TargetSet", %t1, 8, 5, 330+ dbgloc 331+ %t2 =l loadl %t0+ %t4 =l loadl %ts+ %t5 =l call $sxqbe_list_len(l %t4)+ %t6 =l copy %t5+ %t7 =w call $buf__Buf__put_varint(l %t2, l %t6)+ dbgloc 332+ %t8 =l loadl %ts+ storel 0, %t9+ %t10 =l call $sxqbe_list_len(l %t8)+@lbl2970+ %t11 =l loadl %t9+ %t12 =w csltl %t11, %t10+ jnz %t12, @lbl2971, @lbl2972+@lbl2971+ %t13 =l call $sxqbe_list_buf(l %t8)+ %t14 =l mul %t11, 8+ %t15 =l add %t13, %t14+ %t16 =l loadl %t15+ dbgloc 333+ %t17 =l loadl %t0+ %t18 =l loadl %t16+ %t19 =w call $buf__Buf__put_opt_id(l %t17, l %t18)+@lbl2973+ %t20 =l add %t11, 1+ storel %t20, %t9+ jmp @lbl2970+@lbl2972+ dbgloc 335+ %t21 =l loadl %t0+ %t23 =l add %ts, 8+ %t24 =l loadl %t23+ %t25 =l call $sxqbe_list_len(l %t24)+ %t26 =l copy %t25+ %t27 =w call $buf__Buf__put_varint(l %t21, l %t26)+ dbgloc 336+ %t29 =l add %ts, 8+ %t28 =l loadl %t29+ storel 0, %t30+ %t31 =l call $sxqbe_list_len(l %t28)+@lbl2974+ %t32 =l loadl %t30+ %t33 =w csltl %t32, %t31+ jnz %t33, @lbl2975, @lbl2976+@lbl2975+ %t34 =l call $sxqbe_list_buf(l %t28)+ %t35 =l mul %t32, 8+ %t36 =l add %t34, %t35+ %t37 =l loadl %t36+ dbgloc 337+ %t38 =l loadl %t0+ %t39 =l loadl %t37+ %t40 =w call $buf__Buf__put_opt_id(l %t38, l %t39)+@lbl2977+ %t41 =l add %t32, 1+ storel %t41, %t30+ jmp @lbl2974+@lbl2976+ ret 0+}++export function l $view__encode(l %v) {+@start+ %t0 =l alloc8 8+ %t4 =l alloc8 8+ %t12 =l alloc8 8+ %t35 =l alloc8 8+ %t59 =l alloc8 8+ %t84 =l alloc8 8+ %t112 =l alloc8 8+ %t131 =l alloc8 8+ dbgloc 341+ storel %v, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "v", "ref View", %t0, 8, 7, 341+ dbgloc 342+ %t1 =l copy 256+ %t2 =l call $buf__new(l %t1)+ %t3 =l call $malloc(l 24)+ call $memset(l %t3, w 0, l 24)+ call $memcpy(l %t3, l %t2, l 24)+ storel %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "b", "buf.Buf", %t4, 8, 5, 342+ dbgloc 343+ %t5 =l loadl %t4+ %t7 =l loadl %v+ %t8 =l call $sxqbe_list_len(l %t7)+ %t9 =l copy %t8+ %t10 =w call $buf__Buf__put_varint(l %t5, l %t9)+ dbgloc 344+ %t11 =l copy 0+ storel %t11, %t12+ call $__sx_dbg_keep(l %t12)+ dbgvar "i", "usize", %t12, 8, 5, 344+ dbgloc 345+ jmp @lbl2978+@lbl2978+ %t13 =l loadl %t12+ %t15 =l loadl %v+ %t16 =l call $sxqbe_list_len(l %t15)+ %t17 =w csltl %t13, %t16+ jnz %t17, @lbl2979, @lbl2981+@lbl2979+ dbgloc 346+ %t18 =l loadl %t4+ %t19 =l loadl %v+ %t20 =l loadl %t12+ %t21 =l call $view__id_at(l %t19, l %t20)+ %t22 =l loadl %t21+ %t23 =w call $buf__Buf__put_id(l %t18, l %t22)+ dbgloc 347+ %t24 =l loadl %t12+ %t25 =l add %t24, 1+ storel %t25, %t12+ jmp @lbl2980+@lbl2980+ jmp @lbl2978+@lbl2981+ dbgloc 349+ %t26 =l loadl %t4+ %t28 =l add %v, 8+ %t29 =l loadl %t28+ %t30 =l call $sxqbe_list_len(l %t29)+ %t31 =l copy %t30+ %t32 =w call $buf__Buf__put_varint(l %t26, l %t31)+ dbgloc 350+ %t34 =l add %v, 8+ %t33 =l loadl %t34+ storel 0, %t35+ %t36 =l call $sxqbe_list_len(l %t33)+@lbl2982+ %t37 =l loadl %t35+ %t38 =w csltl %t37, %t36+ jnz %t38, @lbl2983, @lbl2984+@lbl2983+ %t39 =l call $sxqbe_list_buf(l %t33)+ %t40 =l mul %t37, 8+ %t41 =l add %t39, %t40+ %t42 =l loadl %t41+ dbgloc 351+ %t43 =l loadl %t4+ %t44 =l add %t42, 0+ %t45 =w call $buf__Buf__put_length_prefixed(l %t43, l %t44)+ dbgloc 352+ %t46 =l loadl %t4+ %t47 =l add %t42, 16+ %t48 =w call $view__put_target_set(l %t46, l %t47)+@lbl2985+ %t49 =l add %t37, 1+ storel %t49, %t35+ jmp @lbl2982+@lbl2984+ dbgloc 354+ %t50 =l loadl %t4+ %t52 =l add %v, 16+ %t53 =l loadl %t52+ %t54 =l call $sxqbe_list_len(l %t53)+ %t55 =l copy %t54+ %t56 =w call $buf__Buf__put_varint(l %t50, l %t55)+ dbgloc 355+ %t58 =l add %v, 16+ %t57 =l loadl %t58+ storel 0, %t59+ %t60 =l call $sxqbe_list_len(l %t57)+@lbl2986+ %t61 =l loadl %t59+ %t62 =w csltl %t61, %t60+ jnz %t62, @lbl2987, @lbl2988+@lbl2987+ %t63 =l call $sxqbe_list_buf(l %t57)+ %t64 =l mul %t61, 8+ %t65 =l add %t63, %t64+ %t66 =l loadl %t65+ dbgloc 356+ %t67 =l loadl %t4+ %t68 =l add %t66, 0+ %t69 =w call $buf__Buf__put_length_prefixed(l %t67, l %t68)+ dbgloc 357+ %t70 =l loadl %t4+ %t71 =l add %t66, 16+ %t72 =l loadl %t71+ %t73 =w call $buf__Buf__put_id(l %t70, l %t72)+@lbl2989+ %t74 =l add %t61, 1+ storel %t74, %t59+ jmp @lbl2986+@lbl2988+ dbgloc 359+ %t75 =l loadl %t4+ %t77 =l add %v, 24+ %t78 =l loadl %t77+ %t79 =l call $sxqbe_list_len(l %t78)+ %t80 =l copy %t79+ %t81 =w call $buf__Buf__put_varint(l %t75, l %t80)+ dbgloc 360+ %t83 =l add %v, 24+ %t82 =l loadl %t83+ storel 0, %t84+ %t85 =l call $sxqbe_list_len(l %t82)+@lbl2990+ %t86 =l loadl %t84+ %t87 =w csltl %t86, %t85+ jnz %t87, @lbl2991, @lbl2992+@lbl2991+ %t88 =l call $sxqbe_list_buf(l %t82)+ %t89 =l mul %t86, 8+ %t90 =l add %t88, %t89+ %t91 =l loadl %t90+ dbgloc 361+ %t92 =l loadl %t4+ %t93 =l add %t91, 0+ %t94 =w call $buf__Buf__put_length_prefixed(l %t92, l %t93)+ dbgloc 362+ %t95 =l loadl %t4+ %t96 =l add %t91, 16+ %t97 =w call $buf__Buf__put_length_prefixed(l %t95, l %t96)+ dbgloc 363+ %t98 =l loadl %t4+ %t99 =l add %t91, 32+ %t100 =l loadl %t99+ %t101 =w call $buf__Buf__put_id(l %t98, l %t100)+@lbl2993+ %t102 =l add %t86, 1+ storel %t102, %t84+ jmp @lbl2990+@lbl2992+ dbgloc 365+ %t103 =l loadl %t4+ %t105 =l add %v, 32+ %t106 =l loadl %t105+ %t107 =l call $sxqbe_list_len(l %t106)+ %t108 =l copy %t107+ %t109 =w call $buf__Buf__put_varint(l %t103, l %t108)+ dbgloc 366+ %t111 =l add %v, 32+ %t110 =l loadl %t111+ storel 0, %t112+ %t113 =l call $sxqbe_list_len(l %t110)+@lbl2994+ %t114 =l loadl %t112+ %t115 =w csltl %t114, %t113+ jnz %t115, @lbl2995, @lbl2996+@lbl2995+ %t116 =l call $sxqbe_list_buf(l %t110)+ %t117 =l mul %t114, 8+ %t118 =l add %t116, %t117+ %t119 =l loadl %t118+ dbgloc 367+ %t120 =l loadl %t4+ %t121 =l add %t119, 0+ %t122 =w call $buf__Buf__put_length_prefixed(l %t120, l %t121)+ dbgloc 368+ %t123 =l loadl %t4+ %t124 =l add %t119, 16+ %t125 =l loadl %t124+ %t126 =w call $buf__Buf__put_id(l %t123, l %t125)+@lbl2997+ %t127 =l add %t114, 1+ storel %t127, %t112+ jmp @lbl2994+@lbl2996+ dbgloc 370+ %t128 =l loadl %t4+ %t129 =l call $buf__Buf__view(l %t128)+ %t130 =l call $bytes__Bytes__dup(l %t129)+ storel %t130, %t131+ call $__sx_dbg_keep(l %t131)+ dbgvar "out", "bytes.Bytes", %t131, 8, 5, 370+ dbgloc 371+ %t132 =l loadl %t4+ %t133 =w call $buf__Buf__free(l %t132)+ dbgloc 372+ ret %t130+}++function w $view__free_target_set(l %ts) {+@start+ %t0 =l alloc8 8+ dbgloc 375+ storel %ts, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "ts", "TargetSet", %t0, 8, 5, 375+ dbgloc 376+ %t2 =l loadl %ts+ call $sxqbe_list_free(l %t2)+ %t1 =l copy 0+ dbgloc 377+ %t5 =l add %ts, 8+ %t4 =l loadl %t5+ call $sxqbe_list_free(l %t4)+ %t3 =l copy 0+ ret 0+}++export function w $view__free_view(l %v) {+@start+ %t0 =l alloc8 8+ %t5 =l alloc8 8+ %t16 =l alloc8 8+ %t25 =l alloc8 8+ %t34 =l alloc8 8+ %t43 =l alloc8 8+ %t52 =l alloc8 8+ %t61 =l alloc8 8+ %t70 =l alloc8 8+ %t84 =l alloc8 8+ %t88 =l alloc8 8+ dbgloc 380+ storel %v, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "v", "ref View", %t0, 8, 7, 380+ dbgloc 381+ %t2 =l loadl %v+ call $sxqbe_list_free(l %t2)+ %t1 =l copy 0+ dbgloc 382+ %t4 =l add %v, 8+ %t3 =l loadl %t4+ storel 0, %t5+ %t6 =l call $sxqbe_list_len(l %t3)+@lbl2998+ %t7 =l loadl %t5+ %t8 =w csltl %t7, %t6+ jnz %t8, @lbl2999, @lbl3000+@lbl2999+ %t9 =l call $sxqbe_list_buf(l %t3)+ %t10 =l mul %t7, 8+ %t11 =l add %t9, %t10+ %t12 =l loadl %t11+ dbgloc 383+ %t13 =l add %t12, 16+ %t14 =w call $view__free_target_set(l %t13)+ dbgloc 384+ %t15 =l copy %t12+ storel %t15, %t16+ call $__sx_dbg_keep(l %t16)+ dbgvar "p", "ref ", %t16, 8, 7, 384+ dbgloc 385+ %t18 =l loadl %t16+ call $free(l %t18)+ %t17 =l copy 0+@lbl3001+ %t19 =l add %t7, 1+ storel %t19, %t5+ jmp @lbl2998+@lbl3000+ dbgloc 387+ %t22 =l add %v, 8+ %t21 =l loadl %t22+ call $sxqbe_list_free(l %t21)+ %t20 =l copy 0+ dbgloc 388+ %t24 =l add %v, 16+ %t23 =l loadl %t24+ storel 0, %t25+ %t26 =l call $sxqbe_list_len(l %t23)+@lbl3002+ %t27 =l loadl %t25+ %t28 =w csltl %t27, %t26+ jnz %t28, @lbl3003, @lbl3004+@lbl3003+ %t29 =l call $sxqbe_list_buf(l %t23)+ %t30 =l mul %t27, 8+ %t31 =l add %t29, %t30+ %t32 =l loadl %t31+ dbgloc 389+ %t33 =l copy %t32+ storel %t33, %t34+ call $__sx_dbg_keep(l %t34)+ dbgvar "p", "ref ", %t34, 8, 7, 389+ dbgloc 390+ %t36 =l loadl %t34+ call $free(l %t36)+ %t35 =l copy 0+@lbl3005+ %t37 =l add %t27, 1+ storel %t37, %t25+ jmp @lbl3002+@lbl3004+ dbgloc 392+ %t40 =l add %v, 16+ %t39 =l loadl %t40+ call $sxqbe_list_free(l %t39)+ %t38 =l copy 0+ dbgloc 393+ %t42 =l add %v, 24+ %t41 =l loadl %t42+ storel 0, %t43+ %t44 =l call $sxqbe_list_len(l %t41)+@lbl3006+ %t45 =l loadl %t43+ %t46 =w csltl %t45, %t44+ jnz %t46, @lbl3007, @lbl3008+@lbl3007+ %t47 =l call $sxqbe_list_buf(l %t41)+ %t48 =l mul %t45, 8+ %t49 =l add %t47, %t48+ %t50 =l loadl %t49+ dbgloc 394+ %t51 =l copy %t50+ storel %t51, %t52+ call $__sx_dbg_keep(l %t52)+ dbgvar "p", "ref ", %t52, 8, 7, 394+ dbgloc 395+ %t54 =l loadl %t52+ call $free(l %t54)+ %t53 =l copy 0+@lbl3009+ %t55 =l add %t45, 1+ storel %t55, %t43+ jmp @lbl3006+@lbl3008+ dbgloc 397+ %t58 =l add %v, 24+ %t57 =l loadl %t58+ call $sxqbe_list_free(l %t57)+ %t56 =l copy 0+ dbgloc 398+ %t60 =l add %v, 32+ %t59 =l loadl %t60+ storel 0, %t61+ %t62 =l call $sxqbe_list_len(l %t59)+@lbl3010+ %t63 =l loadl %t61+ %t64 =w csltl %t63, %t62+ jnz %t64, @lbl3011, @lbl3012+@lbl3011+ %t65 =l call $sxqbe_list_buf(l %t59)+ %t66 =l mul %t63, 8+ %t67 =l add %t65, %t66+ %t68 =l loadl %t67+ dbgloc 399+ %t69 =l copy %t68+ storel %t69, %t70+ call $__sx_dbg_keep(l %t70)+ dbgvar "p", "ref ", %t70, 8, 7, 399+ dbgloc 400+ %t72 =l loadl %t70+ call $free(l %t72)+ %t71 =l copy 0+@lbl3013+ %t73 =l add %t63, 1+ storel %t73, %t61+ jmp @lbl3010+@lbl3012+ dbgloc 402+ %t76 =l add %v, 32+ %t75 =l loadl %t76+ call $sxqbe_list_free(l %t75)+ %t74 =l copy 0+ dbgloc 403+ %t77 =l add %v, 40+ %t78 =l loadl %t77+ %t79 =l copy 0+ %t80 =w cnel %t78, %t79+ jnz %t80, @lbl3014, @lbl3015+@lbl3014+ dbgloc 404+ %t81 =l add %v, 40+ %t82 =l loadl %t81+ %t83 =l copy %t82+ storel %t83, %t84+ call $__sx_dbg_keep(l %t84)+ dbgvar "ob", "ref ", %t84, 8, 7, 404+ dbgloc 405+ %t86 =l loadl %t84+ call $free(l %t86)+ %t85 =l copy 0+ jmp @lbl3015+@lbl3015+ dbgloc 407+ %t87 =l copy %v+ storel %t87, %t88+ call $__sx_dbg_keep(l %t88)+ dbgvar "p2", "ref ", %t88, 8, 7, 407+ dbgloc 408+ %t90 =l loadl %t88+ call $free(l %t90)+ %t89 =l copy 0+ ret 0+}++dbgfile "src/object/raw.sx"+export function l $raw__raw(w %type_byte, l %body) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t5 =l alloc8 8+ dbgloc 12+ storew %type_byte, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "type_byte", "u8", %t0, 1, 7, 12+ storel %body, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "body", "bytes.Bytes", %t1, 8, 5, 12+ dbgloc 13+ %t3 =l copy 25+ %t2 =l call $malloc(l %t3)+ %t4 =l copy %t2+ storel %t4, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "o", "ref RawObject", %t5, 8, 7, 13+ dbgloc 14+ %t6 =l loadl %t5+ storeb %type_byte, %t6+ dbgloc 15+ %t7 =l loadl %t5+ %t8 =l add %t7, 1+ call $memcpy(l %t8, l %body, l 16)+ dbgloc 16+ %t9 =l copy 0+ %t10 =l loadl %t5+ %t11 =l add %t10, 17+ storel %t9, %t11+ dbgloc 17+ %t12 =l loadl %t5+ ret %t12+}++export function w $raw__free_objects(l %objects) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t16 =l alloc8 8+ %t26 =l alloc8 8+ %t30 =l alloc8 8+ dbgloc 20+ storel %objects, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "objects", "list[ref RawObject]", %t0, 8, 5, 20+ dbgloc 21+ storel 0, %t1+ %t2 =l call $sxqbe_list_len(l %objects)+@lbl3017+ %t3 =l loadl %t1+ %t4 =w csltl %t3, %t2+ jnz %t4, @lbl3018, @lbl3019+@lbl3018+ %t5 =l call $sxqbe_list_buf(l %objects)+ %t6 =l mul %t3, 8+ %t7 =l add %t5, %t6+ %t8 =l loadl %t7+ dbgloc 22+ %t9 =l add %t8, 1+ %t10 =l loadl %t9+ %t11 =l copy 0+ %t12 =w cnel %t10, %t11+ jnz %t12, @lbl3021, @lbl3022+@lbl3021+ dbgloc 23+ %t13 =l add %t8, 1+ %t14 =l loadl %t13+ %t15 =l copy %t14+ storel %t15, %t16+ call $__sx_dbg_keep(l %t16)+ dbgvar "body_ptr", "ref ", %t16, 8, 7, 23+ dbgloc 24+ %t18 =l loadl %t16+ call $free(l %t18)+ %t17 =l copy 0+ jmp @lbl3022+@lbl3022+ dbgloc 26+ %t20 =l add %t8, 17+ %t19 =l loadl %t20+ %t21 =l copy 0+ %t22 =w cnel %t19, %t21+ jnz %t22, @lbl3024, @lbl3025+@lbl3024+ dbgloc 27+ %t24 =l add %t8, 17+ %t23 =l loadl %t24+ %t25 =l copy %t23+ storel %t25, %t26+ call $__sx_dbg_keep(l %t26)+ dbgvar "id_ptr", "ref ", %t26, 8, 7, 27+ dbgloc 28+ %t28 =l loadl %t26+ call $free(l %t28)+ %t27 =l copy 0+ jmp @lbl3025+@lbl3025+ dbgloc 30+ %t29 =l copy %t8+ storel %t29, %t30+ call $__sx_dbg_keep(l %t30)+ dbgvar "obj_ptr", "ref ", %t30, 8, 7, 30+ dbgloc 31+ %t32 =l loadl %t30+ call $free(l %t32)+ %t31 =l copy 0+@lbl3020+ %t33 =l add %t3, 1+ storel %t33, %t1+ jmp @lbl3017+@lbl3019+ dbgloc 33+ call $sxqbe_list_free(l %objects)+ %t34 =l copy 0+ ret 0+}++export function l $raw__empty_list() {+@start+ dbgloc 36+ dbgloc 37+ %t0 =l call $lists__new__GENMONO__ref_RawObject()++ ret %t0+}++dbgfile "src/store/records.sx"+export function l $records__record_meta(l %id, l %offset, w %type_byte, l %raw_len) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t3 =l alloc8 8+ %t7 =l alloc8 8+ dbgloc 13+ storel %id, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "id", "objid.Id", %t0, 8, 5, 13+ storel %offset, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "offset", "u64", %t1, 8, 7, 13+ storew %type_byte, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "type_byte", "u8", %t2, 1, 7, 13+ storel %raw_len, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "raw_len", "u64", %t3, 8, 7, 13+ dbgloc 19+ %t5 =l copy 25+ %t4 =l call $malloc(l %t5)+ %t6 =l copy %t4+ storel %t6, %t7+ call $__sx_dbg_keep(l %t7)+ dbgvar "r", "ref RecordMeta", %t7, 8, 7, 19+ dbgloc 20+ %t8 =l loadl %t7+ call $memcpy(l %t8, l %id, l 8)+ dbgloc 21+ %t9 =l loadl %t7+ %t10 =l add %t9, 8+ storel %offset, %t10+ dbgloc 22+ %t11 =l loadl %t7+ %t12 =l add %t11, 16+ storeb %type_byte, %t12+ dbgloc 23+ %t13 =l loadl %t7+ %t14 =l add %t13, 17+ storel %raw_len, %t14+ dbgloc 24+ %t15 =l loadl %t7+ ret %t15+}++function l $records__ref_at(l %xs, l %i) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t3 =l alloc8 16+ %t10 =l alloc8 8+ dbgloc 29+ storel %xs, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "xs", "list[ref RecordMeta]", %t0, 8, 5, 29+ storel %i, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "i", "usize", %t1, 8, 5, 29+ dbgloc 30+ storel 0, %t3+ %t4 =w call $sxqbe_list_valid(l %xs, l %i)+ jnz %t4, @lbl3027, @lbl3028+@lbl3027+ %t5 =l call $sxqbe_list_buf(l %xs)+ %t6 =l mul %i, 8+ %t7 =l add %t5, %t6+ %t8 =l loadl %t7+ %t9 =l add %t3, 8+ storel %t8, %t9+ storel 1, %t3+ jmp @lbl3029+@lbl3028+ jmp @lbl3029+@lbl3029+ storel %t3, %t10+ call $__sx_dbg_keep(l %t10)+ dbgvar "o", "option[ref RecordMeta]", %t10, 8, 5, 30+ dbgloc 31+ %t11 =l loadl %t3+ %t12 =w cnel %t11, 0+ jnz %t12, @lbl3030, @lbl3031+@lbl3030+ %t14 =l add %t3, 8+ %t13 =l loadl %t14+ dbgloc 32+ ret %t13+@lbl3031+ jmp @lbl3032+@lbl3032+ dbgloc 34+ %t15 =l copy 0+ jnz %t15, @lbl3033, @lbl3034+@lbl3034+ %t16 =l copy $__str209+ call $dprintf(w 2, l %t16)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl3033+ dbgloc 35+ %t17 =l copy 0+ ret %t17+}++function w $records__merge_run(l %src, l %dst, l %left, l %mid, l %right) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t3 =l alloc8 8+ %t4 =l alloc8 8+ %t5 =l alloc8 8+ %t6 =l alloc8 8+ %t7 =l alloc8 8+ %t13 =l alloc8 8+ dbgloc 38+ storel %src, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "src", "list[ref RecordMeta]", %t0, 8, 5, 38+ storel %dst, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "dst", "list[ref RecordMeta]", %t1, 8, 5, 38+ storel %left, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "left", "usize", %t2, 8, 5, 38+ storel %mid, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "mid", "usize", %t3, 8, 5, 38+ storel %right, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "right", "usize", %t4, 8, 5, 38+ dbgloc 45+ storel %left, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "i", "usize", %t5, 8, 5, 45+ dbgloc 46+ storel %mid, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "j", "usize", %t6, 8, 5, 46+ dbgloc 47+ storel %left, %t7+ call $__sx_dbg_keep(l %t7)+ dbgvar "k", "usize", %t7, 8, 5, 47+ dbgloc 48+ jmp @lbl3035+@lbl3035+ %t8 =l loadl %t7+ %t9 =w csltl %t8, %right+ jnz %t9, @lbl3036, @lbl3038+@lbl3036+ dbgloc 49+ %t10 =l copy 0+ %t11 =w copy %t10+ %t12 =w extub %t11+ storew %t12, %t13+ call $__sx_dbg_keep(l %t13)+ dbgvar "take_left", "bool", %t13, 1, 7, 49+ dbgloc 50+ %t14 =l loadl %t5+ %t16 =w csltl %t14, %mid+ %t15 =w ceqw %t16, 0+ jnz %t15, @lbl3039, @lbl3041+@lbl3039+ dbgloc 51+ %t17 =l copy 0+ %t18 =w copy %t17+ %t19 =w extub %t18+ storew %t19, %t13+ jmp @lbl3040+@lbl3041+ %t20 =l loadl %t6+ %t22 =w csltl %t20, %right+ %t21 =w ceqw %t22, 0+ jnz %t21, @lbl3042, @lbl3043+@lbl3042+ dbgloc 53+ %t23 =l copy 1+ %t24 =w copy %t23+ %t25 =w extub %t24+ storew %t25, %t13+ jmp @lbl3040+@lbl3043+ dbgloc 55+ %t26 =l loadl %t5+ %t27 =l call $records__ref_at(l %src, l %t26)+ %t28 =l add %t27, 0+ %t29 =l loadl %t6+ %t30 =l call $records__ref_at(l %src, l %t29)+ %t31 =l add %t30, 0+ %t32 =l call $objid__Id__cmp(l %t28, l %t31)+ %t33 =l copy 0+ %t34 =w cslel %t32, %t33+ %t35 =w copy %t34+ %t36 =w extub %t35+ storew %t36, %t13+ jmp @lbl3040+@lbl3040+ dbgloc 57+ %t38 =w loadw %t13+ %t37 =l extsw %t38+ jnz %t37, @lbl3044, @lbl3046+@lbl3044+ dbgloc 58+ %t40 =l loadl %t1+ %t41 =l loadl %t7+ %t42 =l loadl %t5+ %t43 =l call $records__ref_at(l %src, l %t42)+ %t44 =l loadl %t40+ %t45 =l mul %t41, 8+ %t46 =l add %t44, %t45+ storel %t43, %t46+ %t39 =l copy 0+ dbgloc 59+ %t47 =l loadl %t5+ %t48 =l add %t47, 1+ storel %t48, %t5+ jmp @lbl3045+@lbl3046+ dbgloc 61+ %t50 =l loadl %t1+ %t51 =l loadl %t7+ %t52 =l loadl %t6+ %t53 =l call $records__ref_at(l %src, l %t52)+ %t54 =l loadl %t50+ %t55 =l mul %t51, 8+ %t56 =l add %t54, %t55+ storel %t53, %t56+ %t49 =l copy 0+ dbgloc 62+ %t57 =l loadl %t6+ %t58 =l add %t57, 1+ storel %t58, %t6+ jmp @lbl3045+@lbl3045+ dbgloc 64+ %t59 =l loadl %t7+ %t60 =l add %t59, 1+ storel %t60, %t7+ jmp @lbl3037+@lbl3037+ jmp @lbl3035+@lbl3038+ ret 0+}++export function w $records__sort_by_id(l %records) {+@start+ %t0 =l alloc8 8+ %t4 =l alloc8 8+ %t8 =l alloc8 8+ %t10 =l alloc8 8+ %t12 =l alloc8 8+ %t16 =l alloc8 16+ %t25 =l alloc8 8+ %t83 =l alloc8 8+ %t85 =l alloc8 8+ %t87 =l alloc8 8+ %t91 =l alloc8 8+ %t94 =l alloc8 8+ %t102 =l alloc8 8+ %t126 =l alloc8 8+ %t132 =l alloc8 8+ dbgloc 69+ storel %records, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "records", "list[ref RecordMeta]", %t0, 8, 5, 69+ dbgloc 70+ %t2 =l loadl %t0+ %t3 =l call $sxqbe_list_len(l %t2)+ storel %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "n", "usize", %t4, 8, 5, 70+ dbgloc 71+ %t5 =l copy 2+ %t6 =w csltl %t3, %t5+ jnz %t6, @lbl3047, @lbl3048+@lbl3047+ dbgloc 72+ ret 0+@lbl3048+ dbgloc 74+ %t7 =l call $lists__new__GENMONO__ref_RecordMeta()++ storel %t7, %t8+ call $__sx_dbg_keep(l %t8)+ dbgvar "src", "list[ref RecordMeta]", %t8, 8, 5, 74+ dbgloc 75+ %t9 =l call $lists__new__GENMONO__ref_RecordMeta()++ storel %t9, %t10+ call $__sx_dbg_keep(l %t10)+ dbgvar "dst", "list[ref RecordMeta]", %t10, 8, 5, 75+ dbgloc 76+ %t11 =l copy 0+ storel %t11, %t12+ call $__sx_dbg_keep(l %t12)+ dbgvar "i", "usize", %t12, 8, 5, 76+ dbgloc 77+ jmp @lbl3050+@lbl3050+ %t13 =l loadl %t12+ %t14 =w csltl %t13, %t3+ jnz %t14, @lbl3051, @lbl3053+@lbl3051+ dbgloc 78+ storel 0, %t16+ %t17 =l loadl %t0+ %t18 =l loadl %t12+ %t19 =w call $sxqbe_list_valid(l %t17, l %t18)+ jnz %t19, @lbl3054, @lbl3055+@lbl3054+ %t20 =l call $sxqbe_list_buf(l %t17)+ %t21 =l mul %t18, 8+ %t22 =l add %t20, %t21+ %t23 =l loadl %t22+ %t24 =l add %t16, 8+ storel %t23, %t24+ storel 1, %t16+ jmp @lbl3056+@lbl3055+ jmp @lbl3056+@lbl3056+ storel %t16, %t25+ call $__sx_dbg_keep(l %t25)+ dbgvar "o", "option[ref RecordMeta]", %t25, 8, 5, 78+ dbgloc 79+ %t26 =l loadl %t16+ %t27 =w cnel %t26, 0+ jnz %t27, @lbl3057, @lbl3058+@lbl3057+ %t29 =l add %t16, 8+ %t28 =l loadl %t29+ dbgloc 80+ %t31 =l call $sxqbe_list_ensure(l %t8)+ %t32 =l add %t31, 8+ %t33 =l add %t31, 16+ %t34 =l loadl %t32+ %t35 =l loadl %t33+ %t37 =l add %t34, 1+ %t36 =w call $sxqbe_list_grow(l %t31, l %t37)+ %t38 =l call $sxqbe_list_buf(l %t31)+ %t39 =l mul %t34, 8+ %t40 =l add %t38, %t39+ storel %t28, %t40+ %t41 =l add %t34, 1+ storel %t41, %t32+ %t30 =l copy 0+ dbgloc 81+ %t43 =l call $sxqbe_list_ensure(l %t10)+ %t44 =l add %t43, 8+ %t45 =l add %t43, 16+ %t46 =l loadl %t44+ %t47 =l loadl %t45+ %t49 =l add %t46, 1+ %t48 =w call $sxqbe_list_grow(l %t43, l %t49)+ %t50 =l call $sxqbe_list_buf(l %t43)+ %t51 =l mul %t46, 8+ %t52 =l add %t50, %t51+ storel %t28, %t52+ %t53 =l add %t46, 1+ storel %t53, %t44+ %t42 =l copy 0+ jmp @lbl3059+@lbl3058+ dbgloc 83+ %t55 =l call $sxqbe_list_ensure(l %t8)+ %t56 =l copy 0+ %t57 =l add %t55, 8+ %t58 =l add %t55, 16+ %t59 =l loadl %t57+ %t60 =l loadl %t58+ %t62 =l add %t59, 1+ %t61 =w call $sxqbe_list_grow(l %t55, l %t62)+ %t63 =l call $sxqbe_list_buf(l %t55)+ %t64 =l mul %t59, 8+ %t65 =l add %t63, %t64+ storel %t56, %t65+ %t66 =l add %t59, 1+ storel %t66, %t57+ %t54 =l copy 0+ dbgloc 84+ %t68 =l call $sxqbe_list_ensure(l %t10)+ %t69 =l copy 0+ %t70 =l add %t68, 8+ %t71 =l add %t68, 16+ %t72 =l loadl %t70+ %t73 =l loadl %t71+ %t75 =l add %t72, 1+ %t74 =w call $sxqbe_list_grow(l %t68, l %t75)+ %t76 =l call $sxqbe_list_buf(l %t68)+ %t77 =l mul %t72, 8+ %t78 =l add %t76, %t77+ storel %t69, %t78+ %t79 =l add %t72, 1+ storel %t79, %t70+ %t67 =l copy 0+ jmp @lbl3059+@lbl3059+ dbgloc 86+ %t80 =l loadl %t12+ %t81 =l add %t80, 1+ storel %t81, %t12+ jmp @lbl3052+@lbl3052+ jmp @lbl3050+@lbl3053+ dbgloc 88+ %t82 =l loadl %t8+ storel %t82, %t83+ call $__sx_dbg_keep(l %t83)+ dbgvar "mut_a", "list[ref RecordMeta]", %t83, 8, 5, 88+ dbgloc 89+ %t84 =l loadl %t10+ storel %t84, %t85+ call $__sx_dbg_keep(l %t85)+ dbgvar "mut_b", "list[ref RecordMeta]", %t85, 8, 5, 89+ dbgloc 90+ %t86 =l copy 1+ storel %t86, %t87+ call $__sx_dbg_keep(l %t87)+ dbgvar "width", "usize", %t87, 8, 5, 90+ dbgloc 91+ jmp @lbl3060+@lbl3060+ %t88 =l loadl %t87+ %t89 =w csltl %t88, %t3+ jnz %t89, @lbl3061, @lbl3063+@lbl3061+ dbgloc 92+ %t90 =l copy 0+ storel %t90, %t91+ call $__sx_dbg_keep(l %t91)+ dbgvar "left", "usize", %t91, 8, 5, 92+ dbgloc 93+ jmp @lbl3064+@lbl3064+ %t92 =l loadl %t91+ %t93 =w csltl %t92, %t3+ jnz %t93, @lbl3065, @lbl3067+@lbl3065+ dbgloc 94+ storel %t3, %t94+ call $__sx_dbg_keep(l %t94)+ dbgvar "mid", "usize", %t94, 8, 5, 94+ dbgloc 95+ %t95 =l loadl %t91+ %t96 =l loadl %t87+ %t97 =l add %t95, %t96+ %t98 =w csltl %t97, %t3+ jnz %t98, @lbl3068, @lbl3069+@lbl3068+ dbgloc 96+ %t99 =l loadl %t91+ %t100 =l loadl %t87+ %t101 =l add %t99, %t100+ storel %t101, %t94+ jmp @lbl3069+@lbl3069+ dbgloc 98+ storel %t3, %t102+ call $__sx_dbg_keep(l %t102)+ dbgvar "right", "usize", %t102, 8, 5, 98+ dbgloc 99+ %t103 =l loadl %t91+ %t104 =l copy 2+ %t105 =l loadl %t87+ %t106 =l mul %t104, %t105+ %t107 =l add %t103, %t106+ %t108 =w csltl %t107, %t3+ jnz %t108, @lbl3071, @lbl3072+@lbl3071+ dbgloc 100+ %t109 =l loadl %t91+ %t110 =l copy 2+ %t111 =l loadl %t87+ %t112 =l mul %t110, %t111+ %t113 =l add %t109, %t112+ storel %t113, %t102+ jmp @lbl3072+@lbl3072+ dbgloc 102+ %t114 =l loadl %t83+ %t115 =l loadl %t85+ %t116 =l loadl %t91+ %t117 =l loadl %t94+ %t118 =l loadl %t102+ %t119 =w call $records__merge_run(l %t114, l %t115, l %t116, l %t117, l %t118)+ dbgloc 103+ %t120 =l loadl %t91+ %t121 =l copy 2+ %t122 =l loadl %t87+ %t123 =l mul %t121, %t122+ %t124 =l add %t120, %t123+ storel %t124, %t91+ jmp @lbl3066+@lbl3066+ jmp @lbl3064+@lbl3067+ dbgloc 105+ %t125 =l loadl %t83+ storel %t125, %t126+ call $__sx_dbg_keep(l %t126)+ dbgvar "tmp", "list[ref RecordMeta]", %t126, 8, 5, 105+ dbgloc 106+ %t127 =l loadl %t85+ storel %t127, %t83+ dbgloc 107+ storel %t125, %t85+ dbgloc 108+ %t128 =l loadl %t87+ %t129 =l copy 2+ %t130 =l mul %t128, %t129+ storel %t130, %t87+ jmp @lbl3062+@lbl3062+ jmp @lbl3060+@lbl3063+ dbgloc 110+ %t131 =l copy 0+ storel %t131, %t132+ call $__sx_dbg_keep(l %t132)+ dbgvar "j", "usize", %t132, 8, 5, 110+ dbgloc 111+ jmp @lbl3074+@lbl3074+ %t133 =l loadl %t132+ %t134 =w csltl %t133, %t3+ jnz %t134, @lbl3075, @lbl3077+@lbl3075+ dbgloc 112+ %t136 =l loadl %t0+ %t137 =l loadl %t132+ %t138 =l loadl %t83+ %t139 =l loadl %t132+ %t140 =l call $records__ref_at(l %t138, l %t139)+ %t141 =l loadl %t136+ %t142 =l mul %t137, 8+ %t143 =l add %t141, %t142+ storel %t140, %t143+ %t135 =l copy 0+ dbgloc 113+ %t144 =l loadl %t132+ %t145 =l add %t144, 1+ storel %t145, %t132+ jmp @lbl3076+@lbl3076+ jmp @lbl3074+@lbl3077+ dbgloc 115+ %t147 =l loadl %t8+ call $sxqbe_list_free(l %t147)+ %t146 =l copy 0+ dbgloc 116+ %t149 =l loadl %t10+ call $sxqbe_list_free(l %t149)+ %t148 =l copy 0+ ret 0+}++dbgfile "src/store/index.sx"+data $index__INDEX_FORMAT_VERSION = { l 1 }+export function l $index__Index__id_at(l %idx, l %i) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 22+ storel %idx, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "idx", "Index", %t0, 8, 5, 22+ storel %i, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "i", "usize", %t1, 8, 5, 22+ dbgloc 23+ %t3 =l add %idx, 16+ %t2 =l loadl %t3+ %t4 =w csltl %i, %t2+ jnz %t4, @lbl3078, @lbl3079+@lbl3079+ %t5 =l copy $__str210+ call $dprintf(w 2, l %t5)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl3078+ dbgloc 26+ %t8 =l add %idx, 24+ %t7 =l loadl %t8+ %t9 =l copy 32+ %t10 =l mul %i, %t9+ %t11 =l copy %t10+ %t6 =l add %t7, %t11+ %t12 =l call $objid__id(l %t6)+ ret %t12+}++export function l $index__Index__offset_at(l %idx, l %i) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 29+ storel %idx, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "idx", "Index", %t0, 8, 5, 29+ storel %i, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "i", "usize", %t1, 8, 5, 29+ dbgloc 30+ %t3 =l add %idx, 16+ %t2 =l loadl %t3+ %t4 =w csltl %i, %t2+ jnz %t4, @lbl3080, @lbl3081+@lbl3081+ %t5 =l copy $__str211+ call $dprintf(w 2, l %t5)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl3080+ dbgloc 33+ %t9 =l add %idx, 32+ %t8 =l loadl %t9+ %t10 =l copy 8+ %t11 =l mul %i, %t10+ %t12 =l copy %t11+ %t7 =l add %t8, %t12+ %t6 =l loadl %t7+ %t13 =l copy %t6+ ret %t13+}++function l $index__compare_id(l %a, l %b) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 36+ storel %a, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "a", "ref u8", %t0, 8, 7, 36+ storel %b, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "b", "ref u8", %t1, 8, 7, 36+ dbgloc 37+ %t2 =l copy 32+ %t3 =l call $bytes__bytes(l %a, l %t2)+ %t4 =l copy 32+ %t5 =l call $bytes__bytes(l %b, l %t4)+ %t6 =l call $bytes__Bytes__cmp(l %t3, l %t5)+ ret %t6+}++export function l $index__Index__find(l %__ret, l %idx, l %id) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t7 =l alloc8 8+ %t10 =l alloc8 8+ %t21 =l alloc8 8+ %t28 =l alloc8 8+ %t31 =l alloc8 8+ %t34 =l alloc8 16+ %t40 =l alloc8 16+ dbgloc 41+ storel %idx, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "idx", "Index", %t0, 8, 5, 41+ storel %id, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "id", "objid.Id", %t1, 8, 5, 41+ dbgloc 42+ %t2 =l loadl %id+ %t3 =l copy 0+ %t4 =w cnel %t2, %t3+ jnz %t4, @lbl3082, @lbl3083+@lbl3083+ %t5 =l copy $__str212+ call $dprintf(w 2, l %t5)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl3082+ dbgloc 45+ %t6 =l copy 0+ storel %t6, %t7+ call $__sx_dbg_keep(l %t7)+ dbgvar "lo", "usize", %t7, 8, 5, 45+ dbgloc 46+ %t9 =l add %idx, 16+ %t8 =l loadl %t9+ storel %t8, %t10+ call $__sx_dbg_keep(l %t10)+ dbgvar "hi", "usize", %t10, 8, 5, 46+ dbgloc 47+ jmp @lbl3084+@lbl3084+ %t11 =l loadl %t7+ %t12 =l loadl %t10+ %t13 =w csltl %t11, %t12+ jnz %t13, @lbl3085, @lbl3087+@lbl3085+ dbgloc 48+ %t14 =l loadl %t7+ %t15 =l loadl %t10+ %t16 =l loadl %t7+ %t17 =l sub %t15, %t16+ %t18 =l copy 2+ %t19 =l div %t17, %t18+ %t20 =l add %t14, %t19+ storel %t20, %t21+ call $__sx_dbg_keep(l %t21)+ dbgvar "mid", "usize", %t21, 8, 5, 48+ dbgloc 49+ %t24 =l add %idx, 24+ %t23 =l loadl %t24+ %t25 =l copy 32+ %t26 =l mul %t20, %t25+ %t27 =l copy %t26+ %t22 =l add %t23, %t27+ storel %t22, %t28+ call $__sx_dbg_keep(l %t28)+ dbgvar "cur", "ref u8", %t28, 8, 7, 49+ dbgloc 50+ %t29 =l loadl %id+ %t30 =l call $index__compare_id(l %t22, l %t29)+ storel %t30, %t31+ call $__sx_dbg_keep(l %t31)+ dbgvar "c", "i64", %t31, 8, 5, 50+ dbgloc 51+ %t32 =l copy 0+ %t33 =w ceql %t30, %t32+ jnz %t33, @lbl3088, @lbl3089+@lbl3088+ dbgloc 52+ call $memset(l %t34, w 0, l 16)+ storel 1, %t34+ %t35 =l add %t34, 8+ storel %t20, %t35+ call $memcpy(l %__ret, l %t34, l 16)+ ret %__ret+@lbl3089+ dbgloc 54+ %t36 =l copy 0+ %t37 =w csltl %t30, %t36+ jnz %t37, @lbl3091, @lbl3093+@lbl3091+ dbgloc 55+ %t38 =l copy 1+ %t39 =l add %t20, %t38+ storel %t39, %t7+ jmp @lbl3092+@lbl3093+ dbgloc 57+ storel %t20, %t10+ jmp @lbl3092+@lbl3092+ jmp @lbl3086+@lbl3086+ jmp @lbl3084+@lbl3087+ dbgloc 60+ storel 0, %t40+ call $memcpy(l %__ret, l %t40, l 16)+ ret %__ret+}++export function w $index__free_index(l %idx) {+@start+ %t0 =l alloc8 8+ %t4 =l alloc8 8+ dbgloc 63+ storel %idx, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "idx", "ref Index", %t0, 8, 7, 63+ dbgloc 64+ %t1 =l add %idx, 0+ %t2 =w call $files__free_buffer(l %t1)+ dbgloc 65+ %t3 =l copy %idx+ storel %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "p", "ref ", %t4, 8, 7, 65+ dbgloc 66+ %t6 =l loadl %t4+ call $free(l %t6)+ %t5 =l copy 0+ ret 0+}++export function l $index__decode(l %__ret, l %data, l %expected_pack_trailer) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t8 =l alloc8 16+ %t18 =l alloc8 8+ %t22 =l alloc8 16+ %t27 =l alloc8 8+ %t33 =l alloc8 16+ %t40 =l alloc8 16+ %t47 =l alloc8 8+ %t50 =l alloc8 16+ %t58 =l alloc8 8+ %t62 =l alloc8 8+ %t64 =l alloc8 8+ %t70 =l alloc8 16+ %t77 =l alloc8 8+ %t83 =l alloc8 16+ %t98 =l alloc8 8+ %t102 =l alloc8 16+ %t110 =l alloc8 8+ %t115 =l alloc8 16+ %t121 =l alloc8 8+ %t126 =l alloc8 16+ %t135 =l alloc8 8+ %t140 =l alloc8 8+ %t158 =l alloc8 8+ %t163 =l alloc8 8+ %t167 =l alloc8 8+ %t178 =l alloc8 8+ %t182 =l alloc8 16+ %t189 =l alloc4 1+ %t193 =l alloc8 16+ %t200 =l alloc8 8+ %t206 =l alloc8 8+ %t214 =l alloc8 8+ %t225 =l alloc8 8+ %t227 =l alloc8 8+ %t232 =l alloc8 16+ %t245 =l alloc8 16+ %t259 =l alloc8 8+ %t266 =l alloc8 8+ %t270 =l alloc8 8+ %t281 =l alloc8 8+ %t283 =l alloc8 8+ %t294 =l alloc8 8+ %t316 =l alloc8 8+ %t324 =l alloc8 16+ %t340 =l alloc8 8+ %t350 =l alloc8 16+ dbgloc 69+ storel %data, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "data", "bytes.Bytes", %t0, 8, 5, 69+ storel %expected_pack_trailer, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "expected_pack_trailer", "bytes.Bytes", %t1, 8, 5, 69+ dbgloc 73+ %t3 =l add %data, 8+ %t2 =l loadl %t3+ %t4 =l copy 1032+ %t5 =l copy 64+ %t6 =l add %t4, %t5+ %t7 =w csltl %t2, %t6+ jnz %t7, @lbl3094, @lbl3095+@lbl3094+ dbgloc 74+ call $memset(l %t8, w 0, l 16)+ storel 1, %t8+ %t9 =l copy 0+ %t10 =l copy 0+ %t11 =l call $derr__fail(l %t9, l %t10)+ %t12 =l add %t8, 8+ storel %t11, %t12+ call $memcpy(l %__ret, l %t8, l 16)+ ret %__ret+@lbl3095+ dbgloc 76+ %t13 =l loadl %data+ %t15 =l add %data, 8+ %t14 =l loadl %t15+ %t16 =l call $reader__new(l %t13, l %t14)+ %t17 =l call $malloc(l 24)+ call $memset(l %t17, w 0, l 24)+ call $memcpy(l %t17, l %t16, l 24)+ storel %t17, %t18+ call $__sx_dbg_keep(l %t18)+ dbgvar "r", "reader.Reader", %t18, 8, 5, 76+ dbgloc 77+ %t19 =l loadl %t18+ %t20 =l copy 4+ %t21 =l call $reader__Reader__read_raw(l %t22, l %t19, l %t20)+ %t23 =l loadl %t22+ %t24 =w ceql %t23, 0+ jnz %t24, @lbl3097, @lbl3098+@lbl3098+ call $memcpy(l %__ret, l %t22, l 16)+ ret %__ret+@lbl3097+ %t26 =l add %t22, 8+ %t25 =l loadl %t26+ storel %t25, %t27+ call $__sx_dbg_keep(l %t27)+ dbgvar "magic", "bytes.Bytes", %t27, 8, 5, 77+ dbgloc 78+ %t28 =l copy $__str213+ %t29 =l copy 4+ %t30 =l call $bytes__bytes(l %t28, l %t29)+ %t31 =w call $bytes__Bytes__eql(l %t25, l %t30)+ %t32 =w ceqw %t31, 0+ jnz %t32, @lbl3099, @lbl3100+@lbl3099+ dbgloc 79+ call $memset(l %t33, w 0, l 16)+ storel 1, %t33+ %t34 =l copy 8+ %t35 =l copy 0+ %t36 =l call $derr__fail(l %t34, l %t35)+ %t37 =l add %t33, 8+ storel %t36, %t37+ call $memcpy(l %__ret, l %t33, l 16)+ ret %__ret+@lbl3100+ dbgloc 81+ %t38 =l loadl %t18+ %t39 =l call $reader__Reader__read_u32_le(l %t40, l %t38)+ %t41 =l loadl %t40+ %t42 =w ceql %t41, 0+ jnz %t42, @lbl3102, @lbl3103+@lbl3103+ call $memcpy(l %__ret, l %t40, l 16)+ ret %__ret+@lbl3102+ %t44 =l add %t40, 8+ %t43 =w loadw %t44+ %t45 =w copy %t43+ %t46 =w copy %t45+ storew %t46, %t47+ call $__sx_dbg_keep(l %t47)+ dbgvar "version", "u32", %t47, 4, 7, 81+ dbgloc 82+ %t48 =w copy 1+ %t49 =w cnew %t46, %t48+ jnz %t49, @lbl3104, @lbl3105+@lbl3104+ dbgloc 83+ call $memset(l %t50, w 0, l 16)+ storel 1, %t50+ %t51 =l copy 9+ %t52 =l copy 4+ %t53 =l call $derr__fail(l %t51, l %t52)+ %t54 =l add %t50, 8+ storel %t53, %t54+ call $memcpy(l %__ret, l %t50, l 16)+ ret %__ret+@lbl3105+ dbgloc 86+ %t55 =l copy 0+ %t56 =w copy %t55+ %t57 =w copy %t56+ storew %t57, %t58+ call $__sx_dbg_keep(l %t58)+ dbgvar "prev", "u32", %t58, 4, 7, 86+ dbgloc 87+ %t59 =l copy 0+ %t60 =w copy %t59+ %t61 =w copy %t60+ storew %t61, %t62+ call $__sx_dbg_keep(l %t62)+ dbgvar "last", "u32", %t62, 4, 7, 87+ dbgloc 88+ %t63 =l copy 0+ storel %t63, %t64+ call $__sx_dbg_keep(l %t64)+ dbgvar "i", "usize", %t64, 8, 5, 88+ dbgloc 89+ jmp @lbl3107+@lbl3107+ %t65 =l loadl %t64+ %t66 =l copy 256+ %t67 =w csltl %t65, %t66+ jnz %t67, @lbl3108, @lbl3110+@lbl3108+ dbgloc 90+ %t68 =l loadl %t18+ %t69 =l call $reader__Reader__read_u32_le(l %t70, l %t68)+ %t71 =l loadl %t70+ %t72 =w ceql %t71, 0+ jnz %t72, @lbl3111, @lbl3112+@lbl3112+ call $memcpy(l %__ret, l %t70, l 16)+ ret %__ret+@lbl3111+ %t74 =l add %t70, 8+ %t73 =w loadw %t74+ %t75 =w copy %t73+ %t76 =w copy %t75+ storew %t76, %t77+ call $__sx_dbg_keep(l %t77)+ dbgvar "v", "u32", %t77, 4, 7, 90+ dbgloc 91+ %t78 =l extsw %t76+ %t80 =w loadw %t58+ %t79 =l extsw %t80+ %t81 =l extsw %t79+ %t82 =w csltw %t78, %t81+ jnz %t82, @lbl3113, @lbl3114+@lbl3113+ dbgloc 92+ call $memset(l %t83, w 0, l 16)+ storel 1, %t83+ %t84 =l copy 4+ %t85 =l loadl %t18+ %t86 =l call $reader__Reader__offset(l %t85)+ %t87 =l copy 4+ %t88 =l sub %t86, %t87+ %t89 =l call $derr__fail(l %t84, l %t88)+ %t90 =l add %t83, 8+ storel %t89, %t90+ call $memcpy(l %__ret, l %t83, l 16)+ ret %__ret+@lbl3114+ dbgloc 94+ %t91 =w copy %t76+ storew %t91, %t58+ dbgloc 95+ %t92 =w copy %t76+ storew %t92, %t62+ dbgloc 96+ %t93 =l loadl %t64+ %t94 =l add %t93, 1+ storel %t94, %t64+ jmp @lbl3109+@lbl3109+ jmp @lbl3107+@lbl3110+ dbgloc 99+ %t95 =l copy 1032+ %t96 =l copy 64+ %t97 =l add %t95, %t96+ storel %t97, %t98+ call $__sx_dbg_keep(l %t98)+ dbgvar "base", "usize", %t98, 8, 5, 99+ dbgloc 100+ %t100 =l add %data, 8+ %t99 =l loadl %t100+ %t101 =w csltl %t99, %t97+ jnz %t101, @lbl3116, @lbl3117+@lbl3116+ dbgloc 101+ call $memset(l %t102, w 0, l 16)+ storel 1, %t102+ %t103 =l copy 0+ %t104 =l copy 1032+ %t105 =l call $derr__fail(l %t103, l %t104)+ %t106 =l add %t102, 8+ storel %t105, %t106+ call $memcpy(l %__ret, l %t102, l 16)+ ret %__ret+@lbl3117+ dbgloc 103+ %t108 =l add %data, 8+ %t107 =l loadl %t108+ %t109 =l sub %t107, %t97+ storel %t109, %t110+ call $__sx_dbg_keep(l %t110)+ dbgvar "body", "usize", %t110, 8, 5, 103+ dbgloc 104+ %t111 =l copy 40+ %t112 =l rem %t109, %t111+ %t113 =l copy 0+ %t114 =w cnel %t112, %t113+ jnz %t114, @lbl3119, @lbl3120+@lbl3119+ dbgloc 105+ call $memset(l %t115, w 0, l 16)+ storel 1, %t115+ %t116 =l copy 10+ %t117 =l call $derr__fail(l %t116, l %t97)+ %t118 =l add %t115, 8+ storel %t117, %t118+ call $memcpy(l %__ret, l %t115, l 16)+ ret %__ret+@lbl3120+ dbgloc 107+ %t119 =l copy 40+ %t120 =l div %t109, %t119+ storel %t120, %t121+ call $__sx_dbg_keep(l %t121)+ dbgvar "count", "usize", %t121, 8, 5, 107+ dbgloc 108+ %t123 =w loadw %t62+ %t122 =l extsw %t123+ %t124 =l extsw %t122+ %t125 =w cnel %t120, %t124+ jnz %t125, @lbl3122, @lbl3123+@lbl3122+ dbgloc 109+ call $memset(l %t126, w 0, l 16)+ storel 1, %t126+ %t127 =l copy 14+ %t128 =l copy 1032+ %t129 =l call $derr__fail(l %t127, l %t128)+ %t130 =l add %t126, 8+ storel %t129, %t130+ call $memcpy(l %__ret, l %t126, l 16)+ ret %__ret+@lbl3123+ dbgloc 112+ %t132 =l loadl %data+ %t133 =l copy 1032+ %t134 =l copy %t133+ %t131 =l add %t132, %t134+ storel %t131, %t135+ call $__sx_dbg_keep(l %t135)+ dbgvar "ids", "ref u8", %t135, 8, 7, 112+ dbgloc 113+ %t137 =l copy 32+ %t138 =l mul %t120, %t137+ %t139 =l copy %t138+ %t136 =l add %t131, %t139+ storel %t136, %t140+ call $__sx_dbg_keep(l %t140)+ dbgvar "offsets", "ref u8", %t140, 8, 7, 113+ dbgloc 114+ %t141 =l copy 1032+ %t142 =l copy 32+ %t143 =l mul %t120, %t142+ %t144 =l add %t141, %t143+ %t145 =l copy 8+ %t146 =l mul %t120, %t145+ %t147 =l add %t144, %t146+ %t148 =l copy 1032+ %t149 =l copy 32+ %t150 =l mul %t120, %t149+ %t151 =l add %t148, %t150+ %t152 =l copy 8+ %t153 =l mul %t120, %t152+ %t154 =l add %t151, %t153+ %t155 =l copy 32+ %t156 =l add %t154, %t155+ %t157 =l call $bytes__Bytes__slice(l %data, l %t147, l %t156)+ storel %t157, %t158+ call $__sx_dbg_keep(l %t158)+ dbgvar "pack_trailer", "bytes.Bytes", %t158, 8, 5, 114+ dbgloc 119+ %t160 =l add %data, 8+ %t159 =l loadl %t160+ %t161 =l copy 32+ %t162 =l sub %t159, %t161+ storel %t162, %t163+ call $__sx_dbg_keep(l %t163)+ dbgvar "index_trailer_off", "usize", %t163, 8, 5, 119+ dbgloc 121+ %t165 =l copy 32+ %t164 =l call $malloc(l %t165)+ %t166 =l copy %t164+ storel %t166, %t167+ call $__sx_dbg_keep(l %t167)+ dbgvar "digest", "ref u8", %t167, 8, 7, 121+ dbgloc 122+ %t168 =l loadl %data+ %t169 =w call $b3__hash(l %t168, l %t162, l %t166)+ dbgloc 123+ %t170 =l copy 32+ %t171 =l call $bytes__bytes(l %t166, l %t170)+ %t173 =l add %data, 8+ %t172 =l loadl %t173+ %t174 =l call $bytes__Bytes__slice(l %data, l %t162, l %t172)+ %t175 =w call $bytes__Bytes__eql(l %t171, l %t174)+ %t176 =w copy %t175+ %t177 =w extub %t176+ storew %t177, %t178+ call $__sx_dbg_keep(l %t178)+ dbgvar "valid", "bool", %t178, 1, 7, 123+ dbgloc 127+ %t180 =l copy %t166+ call $free(l %t180)+ %t179 =l copy 0+ dbgloc 128+ %t181 =w ceqw %t177, 0+ jnz %t181, @lbl3125, @lbl3126+@lbl3125+ dbgloc 129+ call $memset(l %t182, w 0, l 16)+ storel 1, %t182+ %t183 =l copy 11+ %t184 =l call $derr__fail(l %t183, l %t162)+ %t185 =l add %t182, 8+ storel %t184, %t185+ call $memcpy(l %__ret, l %t182, l 16)+ ret %__ret+@lbl3126+ dbgloc 131+ %t186 =l loadl %expected_pack_trailer+ %t187 =l copy 0+ %t188 =w cnel %t186, %t187+ storew %t188, %t189+ jnz %t188, @lbl3131, @lbl3132+@lbl3131+ %t190 =w call $bytes__Bytes__eql(l %t157, l %expected_pack_trailer)+ %t191 =w ceqw %t190, 0+ storew %t191, %t189+ jmp @lbl3132+@lbl3132+ %t192 =w loadw %t189+ jnz %t192, @lbl3128, @lbl3129+@lbl3128+ dbgloc 132+ call $memset(l %t193, w 0, l 16)+ storel 1, %t193+ %t194 =l copy 14+ %t195 =l call $derr__fail(l %t194, l %t162)+ %t196 =l add %t193, 8+ storel %t195, %t196+ call $memcpy(l %__ret, l %t193, l 16)+ ret %__ret+@lbl3129+ dbgloc 135+ %t198 =l copy 1024+ %t197 =l call $malloc(l %t198)+ %t199 =l copy %t197+ storel %t199, %t200+ call $__sx_dbg_keep(l %t200)+ dbgvar "counts", "ref u32", %t200, 8, 7, 135+ dbgloc 136+ %t202 =l copy %t199+ %t203 =l copy 0+ %t204 =l copy 1024+ call $memset(l %t202, w %t203, l %t204)+ %t201 =l copy 0+ dbgloc 137+ %t205 =l copy 0+ storel %t205, %t206+ call $__sx_dbg_keep(l %t206)+ dbgvar "j", "usize", %t206, 8, 5, 137+ dbgloc 138+ jmp @lbl3133+@lbl3133+ %t207 =l loadl %t206+ %t208 =w csltl %t207, %t120+ jnz %t208, @lbl3134, @lbl3136+@lbl3134+ dbgloc 139+ %t210 =l loadl %t206+ %t211 =l copy 32+ %t212 =l mul %t210, %t211+ %t213 =l copy %t212+ %t209 =l add %t131, %t213+ storel %t209, %t214+ call $__sx_dbg_keep(l %t214)+ dbgvar "cur", "ref u8", %t214, 8, 7, 139+ dbgloc 140+ %t215 =l loadl %t206+ %t216 =l copy 0+ %t217 =w csgtl %t215, %t216+ jnz %t217, @lbl3137, @lbl3138+@lbl3137+ dbgloc 141+ %t219 =l loadl %t206+ %t220 =l copy 1+ %t221 =l sub %t219, %t220+ %t222 =l copy 32+ %t223 =l mul %t221, %t222+ %t224 =l copy %t223+ %t218 =l add %t131, %t224+ storel %t218, %t225+ call $__sx_dbg_keep(l %t225)+ dbgvar "prev_id", "ref u8", %t225, 8, 7, 141+ dbgloc 142+ %t226 =l call $index__compare_id(l %t218, l %t209)+ storel %t226, %t227+ call $__sx_dbg_keep(l %t227)+ dbgvar "c", "i64", %t227, 8, 5, 142+ dbgloc 143+ %t228 =l copy 0+ %t229 =w ceql %t226, %t228+ jnz %t229, @lbl3140, @lbl3141+@lbl3140+ dbgloc 144+ %t231 =l copy %t199+ call $free(l %t231)+ %t230 =l copy 0+ dbgloc 145+ call $memset(l %t232, w 0, l 16)+ storel 1, %t232+ %t233 =l copy 5+ %t234 =l copy 1032+ %t235 =l loadl %t206+ %t236 =l copy 32+ %t237 =l mul %t235, %t236+ %t238 =l add %t234, %t237+ %t239 =l call $derr__fail(l %t233, l %t238)+ %t240 =l add %t232, 8+ storel %t239, %t240+ call $memcpy(l %__ret, l %t232, l 16)+ ret %__ret+@lbl3141+ dbgloc 147+ %t241 =l copy 0+ %t242 =w csgtl %t226, %t241+ jnz %t242, @lbl3143, @lbl3144+@lbl3143+ dbgloc 148+ %t244 =l copy %t199+ call $free(l %t244)+ %t243 =l copy 0+ dbgloc 149+ call $memset(l %t245, w 0, l 16)+ storel 1, %t245+ %t246 =l copy 4+ %t247 =l copy 1032+ %t248 =l loadl %t206+ %t249 =l copy 32+ %t250 =l mul %t248, %t249+ %t251 =l add %t247, %t250+ %t252 =l call $derr__fail(l %t246, l %t251)+ %t253 =l add %t245, 8+ storel %t252, %t253+ call $memcpy(l %__ret, l %t245, l 16)+ ret %__ret+@lbl3144+ jmp @lbl3138+@lbl3138+ dbgloc 152+ %t255 =w loadub %t209+ %t254 =l extsw %t255+ %t256 =w copy %t254+ %t257 =w copy %t256+ %t258 =w extub %t257+ storew %t258, %t259+ call $__sx_dbg_keep(l %t259)+ dbgvar "first", "u8", %t259, 1, 7, 152+ dbgloc 153+ %t261 =l copy %t199+ %t262 =l extsw %t258+ %t263 =l copy 4+ %t264 =l mul %t262, %t263+ %t260 =l add %t261, %t264+ %t265 =l copy %t260+ storel %t265, %t266+ call $__sx_dbg_keep(l %t266)+ dbgvar "slot", "ref u32", %t266, 8, 7, 153+ dbgloc 154+ %t268 =w loadsw %t265+ %t267 =l extsw %t268+ %t269 =w copy %t267+ storew %t269, %t270+ call $__sx_dbg_keep(l %t270)+ dbgvar "c0", "u32", %t270, 4, 7, 154+ dbgloc 155+ %t272 =l extsw %t269+ %t273 =l copy 1+ %t275 =l extsw %t272+ %t274 =l add %t275, %t273+ storew %t274, %t265+ %t271 =l copy 0+ dbgloc 156+ %t276 =l loadl %t206+ %t277 =l add %t276, 1+ storel %t277, %t206+ jmp @lbl3135+@lbl3135+ jmp @lbl3133+@lbl3136+ dbgloc 158+ %t278 =l copy 0+ %t279 =w copy %t278+ %t280 =w copy %t279+ storew %t280, %t281+ call $__sx_dbg_keep(l %t281)+ dbgvar "running", "u32", %t281, 4, 7, 158+ dbgloc 159+ %t282 =l copy 0+ storel %t282, %t283+ call $__sx_dbg_keep(l %t283)+ dbgvar "k", "usize", %t283, 8, 5, 159+ dbgloc 160+ jmp @lbl3146+@lbl3146+ %t284 =l loadl %t283+ %t285 =l copy 256+ %t286 =w csltl %t284, %t285+ jnz %t286, @lbl3147, @lbl3149+@lbl3147+ dbgloc 161+ %t288 =l copy %t199+ %t289 =l loadl %t283+ %t290 =l copy %t289+ %t291 =l copy 4+ %t292 =l mul %t290, %t291+ %t287 =l add %t288, %t292+ %t293 =l copy %t287+ storel %t293, %t294+ call $__sx_dbg_keep(l %t294)+ dbgvar "slot2", "ref u32", %t294, 8, 7, 161+ dbgloc 162+ %t296 =w loadw %t281+ %t295 =l extsw %t296+ %t297 =l extsw %t295+ %t299 =w loadsw %t293+ %t298 =l extsw %t299+ %t300 =l extsw %t298+ %t302 =l extsw %t297+ %t303 =l extsw %t300+ %t301 =l add %t302, %t303+ %t304 =w copy %t301+ storew %t304, %t281+ dbgloc 163+ %t307 =l loadl %data+ %t308 =l copy 8+ %t309 =l loadl %t283+ %t310 =l copy 4+ %t311 =l mul %t309, %t310+ %t312 =l add %t308, %t311+ %t313 =l copy %t312+ %t306 =l add %t307, %t313+ %t314 =w loadsw %t306+ %t305 =l extsw %t314+ %t315 =w copy %t305+ storew %t315, %t316+ call $__sx_dbg_keep(l %t316)+ dbgvar "stored", "u32", %t316, 4, 7, 163+ dbgloc 164+ %t317 =l extsw %t315+ %t319 =w loadw %t281+ %t318 =l extsw %t319+ %t320 =l extsw %t318+ %t321 =w cnew %t317, %t320+ jnz %t321, @lbl3150, @lbl3151+@lbl3150+ dbgloc 165+ %t323 =l copy %t199+ call $free(l %t323)+ %t322 =l copy 0+ dbgloc 166+ call $memset(l %t324, w 0, l 16)+ storel 1, %t324+ %t325 =l copy 14+ %t326 =l copy 8+ %t327 =l loadl %t283+ %t328 =l copy 4+ %t329 =l mul %t327, %t328+ %t330 =l add %t326, %t329+ %t331 =l call $derr__fail(l %t325, l %t330)+ %t332 =l add %t324, 8+ storel %t331, %t332+ call $memcpy(l %__ret, l %t324, l 16)+ ret %__ret+@lbl3151+ dbgloc 168+ %t333 =l loadl %t283+ %t334 =l add %t333, 1+ storel %t334, %t283+ jmp @lbl3148+@lbl3148+ jmp @lbl3146+@lbl3149+ dbgloc 170+ %t336 =l copy %t199+ call $free(l %t336)+ %t335 =l copy 0+ dbgloc 172+ %t338 =l copy 56+ %t337 =l call $malloc(l %t338)+ %t339 =l copy %t337+ storel %t339, %t340+ call $__sx_dbg_keep(l %t340)+ dbgvar "idx", "ref Index", %t340, 8, 7, 172+ dbgloc 173+ %t341 =l loadl %t340+ call $memcpy(l %t341, l %data, l 16)+ dbgloc 174+ %t342 =l loadl %t340+ %t343 =l add %t342, 16+ storel %t120, %t343+ dbgloc 175+ %t344 =l loadl %t340+ %t345 =l add %t344, 24+ storel %t131, %t345+ dbgloc 176+ %t346 =l loadl %t340+ %t347 =l add %t346, 32+ storel %t136, %t347+ dbgloc 177+ %t348 =l loadl %t340+ %t349 =l add %t348, 40+ call $memcpy(l %t349, l %t157, l 16)+ dbgloc 178+ call $memset(l %t350, w 0, l 16)+ storel 0, %t350+ %t351 =l loadl %t340+ %t352 =l add %t350, 8+ storel %t351, %t352+ call $memcpy(l %__ret, l %t350, l 16)+ ret %__ret+}++export function l $index__encode(l %recs, l %pack_trailer) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t10 =l alloc8 8+ %t15 =l alloc8 8+ %t30 =l alloc8 8+ %t37 =l alloc8 8+ %t41 =l alloc8 8+ %t56 =l alloc8 8+ %t68 =l alloc8 8+ %t70 =l alloc8 8+ %t81 =l alloc8 8+ %t98 =l alloc8 8+ %t111 =l alloc8 8+ %t131 =l alloc8 8+ %t148 =l alloc8 8+ dbgloc 181+ storel %recs, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "recs", "list[ref records.RecordMeta]", %t0, 8, 5, 181+ storel %pack_trailer, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "pack_trailer", "bytes.Bytes", %t1, 8, 5, 181+ dbgloc 182+ %t3 =l add %pack_trailer, 8+ %t2 =l loadl %t3+ %t4 =l copy 32+ %t5 =w ceql %t2, %t4+ jnz %t5, @lbl3153, @lbl3154+@lbl3154+ %t6 =l copy $__str214+ call $dprintf(w 2, l %t6)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl3153+ dbgloc 185+ %t8 =l copy 1024+ %t7 =l call $malloc(l %t8)+ %t9 =l copy %t7+ storel %t9, %t10+ call $__sx_dbg_keep(l %t10)+ dbgvar "counts", "ref u32", %t10, 8, 7, 185+ dbgloc 186+ %t12 =l copy %t9+ %t13 =l copy 0+ %t14 =l copy 1024+ call $memset(l %t12, w %t13, l %t14)+ %t11 =l copy 0+ dbgloc 187+ storel 0, %t15+ %t16 =l call $sxqbe_list_len(l %recs)+@lbl3155+ %t17 =l loadl %t15+ %t18 =w csltl %t17, %t16+ jnz %t18, @lbl3156, @lbl3157+@lbl3156+ %t19 =l call $sxqbe_list_buf(l %recs)+ %t20 =l mul %t17, 8+ %t21 =l add %t19, %t20+ %t22 =l loadl %t21+ dbgloc 188+ %t24 =l add %t22, 0+ %t25 =l loadl %t24+ %t26 =w loadub %t25+ %t23 =l extsw %t26+ %t27 =w copy %t23+ %t28 =w copy %t27+ %t29 =w extub %t28+ storew %t29, %t30+ call $__sx_dbg_keep(l %t30)+ dbgvar "first", "u8", %t30, 1, 7, 188+ dbgloc 189+ %t32 =l copy %t9+ %t33 =l extsw %t29+ %t34 =l copy 4+ %t35 =l mul %t33, %t34+ %t31 =l add %t32, %t35+ %t36 =l copy %t31+ storel %t36, %t37+ call $__sx_dbg_keep(l %t37)+ dbgvar "slot", "ref u32", %t37, 8, 7, 189+ dbgloc 190+ %t39 =w loadsw %t36+ %t38 =l extsw %t39+ %t40 =w copy %t38+ storew %t40, %t41+ call $__sx_dbg_keep(l %t41)+ dbgvar "c0", "u32", %t41, 4, 7, 190+ dbgloc 191+ %t43 =l extsw %t40+ %t44 =l copy 1+ %t46 =l extsw %t43+ %t45 =l add %t46, %t44+ storew %t45, %t36+ %t42 =l copy 0+@lbl3158+ %t47 =l add %t17, 1+ storel %t47, %t15+ jmp @lbl3155+@lbl3157+ dbgloc 194+ %t49 =l call $sxqbe_list_len(l %recs)+ %t50 =l copy 40+ %t51 =l mul %t49, %t50+ %t52 =l copy 128+ %t53 =l add %t51, %t52+ %t54 =l call $buf__new(l %t53)+ %t55 =l call $malloc(l 24)+ call $memset(l %t55, w 0, l 24)+ call $memcpy(l %t55, l %t54, l 24)+ storel %t55, %t56+ call $__sx_dbg_keep(l %t56)+ dbgvar "b", "buf.Buf", %t56, 8, 5, 194+ dbgloc 195+ %t57 =l loadl %t56+ %t58 =l copy $__str213+ %t59 =l copy 4+ %t60 =w call $buf__Buf__put_raw(l %t57, l %t58, l %t59)+ dbgloc 196+ %t61 =l loadl %t56+ %t62 =l copy 1+ %t64 =w copy %t62+ %t63 =w call $buf__Buf__put_u32_le(l %t61, w %t64)+ dbgloc 197+ %t65 =l copy 0+ %t66 =w copy %t65+ %t67 =w copy %t66+ storew %t67, %t68+ call $__sx_dbg_keep(l %t68)+ dbgvar "running", "u32", %t68, 4, 7, 197+ dbgloc 198+ %t69 =l copy 0+ storel %t69, %t70+ call $__sx_dbg_keep(l %t70)+ dbgvar "k", "usize", %t70, 8, 5, 198+ dbgloc 199+ jmp @lbl3159+@lbl3159+ %t71 =l loadl %t70+ %t72 =l copy 256+ %t73 =w csltl %t71, %t72+ jnz %t73, @lbl3160, @lbl3162+@lbl3160+ dbgloc 200+ %t75 =l copy %t9+ %t76 =l loadl %t70+ %t77 =l copy %t76+ %t78 =l copy 4+ %t79 =l mul %t77, %t78+ %t74 =l add %t75, %t79+ %t80 =l copy %t74+ storel %t80, %t81+ call $__sx_dbg_keep(l %t81)+ dbgvar "slot2", "ref u32", %t81, 8, 7, 200+ dbgloc 201+ %t83 =w loadw %t68+ %t82 =l extsw %t83+ %t84 =l extsw %t82+ %t86 =w loadsw %t80+ %t85 =l extsw %t86+ %t87 =l extsw %t85+ %t89 =l extsw %t84+ %t90 =l extsw %t87+ %t88 =l add %t89, %t90+ %t91 =w copy %t88+ storew %t91, %t68+ dbgloc 202+ %t92 =l loadl %t56+ %t94 =w loadw %t68+ %t93 =l extsw %t94+ %t95 =w call $buf__Buf__put_u32_le(l %t92, w %t93)+ dbgloc 203+ %t96 =l loadl %t70+ %t97 =l add %t96, 1+ storel %t97, %t70+ jmp @lbl3161+@lbl3161+ jmp @lbl3159+@lbl3162+ dbgloc 205+ storel 0, %t98+ %t99 =l call $sxqbe_list_len(l %recs)+@lbl3163+ %t100 =l loadl %t98+ %t101 =w csltl %t100, %t99+ jnz %t101, @lbl3164, @lbl3165+@lbl3164+ %t102 =l call $sxqbe_list_buf(l %recs)+ %t103 =l mul %t100, 8+ %t104 =l add %t102, %t103+ %t105 =l loadl %t104+ dbgloc 206+ %t106 =l loadl %t56+ %t107 =l add %t105, 0+ %t108 =l loadl %t107+ %t109 =w call $buf__Buf__put_id(l %t106, l %t108)+@lbl3166+ %t110 =l add %t100, 1+ storel %t110, %t98+ jmp @lbl3163+@lbl3165+ dbgloc 208+ storel 0, %t111+ %t112 =l call $sxqbe_list_len(l %recs)+@lbl3167+ %t113 =l loadl %t111+ %t114 =w csltl %t113, %t112+ jnz %t114, @lbl3168, @lbl3169+@lbl3168+ %t115 =l call $sxqbe_list_buf(l %recs)+ %t116 =l mul %t113, 8+ %t117 =l add %t115, %t116+ %t118 =l loadl %t117+ dbgloc 209+ %t119 =l loadl %t56+ %t121 =l add %t118, 8+ %t120 =l loadl %t121+ %t122 =w call $buf__Buf__put_u64_le(l %t119, l %t120)+@lbl3170+ %t123 =l add %t113, 1+ storel %t123, %t111+ jmp @lbl3167+@lbl3169+ dbgloc 211+ %t124 =l loadl %t56+ %t125 =l loadl %pack_trailer+ %t126 =l copy 32+ %t127 =w call $buf__Buf__put_raw(l %t124, l %t125, l %t126)+ dbgloc 213+ %t129 =l copy 32+ %t128 =l call $malloc(l %t129)+ %t130 =l copy %t128+ storel %t130, %t131+ call $__sx_dbg_keep(l %t131)+ dbgvar "digest", "ref u8", %t131, 8, 7, 213+ dbgloc 214+ %t132 =l loadl %t56+ %t133 =l loadl %t132+ %t134 =l loadl %t56+ %t136 =l add %t134, 8+ %t135 =l loadl %t136+ %t137 =w call $b3__hash(l %t133, l %t135, l %t130)+ dbgloc 215+ %t138 =l loadl %t56+ %t139 =l copy 32+ %t140 =w call $buf__Buf__put_raw(l %t138, l %t130, l %t139)+ dbgloc 216+ %t142 =l copy %t130+ call $free(l %t142)+ %t141 =l copy 0+ dbgloc 217+ %t144 =l copy %t9+ call $free(l %t144)+ %t143 =l copy 0+ dbgloc 219+ %t145 =l loadl %t56+ %t146 =l call $buf__Buf__view(l %t145)+ %t147 =l call $bytes__Bytes__dup(l %t146)+ storel %t147, %t148+ call $__sx_dbg_keep(l %t148)+ dbgvar "out", "bytes.Bytes", %t148, 8, 5, 219+ dbgloc 220+ %t149 =l loadl %t56+ %t150 =w call $buf__Buf__free(l %t149)+ dbgloc 221+ ret %t147+}++dbgfile "src/store/zstd.sx"+data $zstd__DEFAULT_LEVEL = { l 1 }+export function l $zstd__compress(l %src, w %level) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t10 =l alloc8 8+ %t16 =l alloc8 8+ %t23 =l alloc8 8+ %t27 =l alloc4 1+ dbgloc 31+ storel %src, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "src", "bytes.Bytes", %t0, 8, 5, 31+ storew %level, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "level", "i32", %t1, 4, 5, 31+ dbgloc 32+ %t3 =l add %src, 8+ %t2 =l loadl %t3+ %t4 =l copy 0+ %t5 =w ceql %t2, %t4+ jnz %t5, @lbl3171, @lbl3172+@lbl3171+ dbgloc 33+ %t6 =l call $bytes__empty()+ ret %t6+@lbl3172+ dbgloc 35+ %t8 =l add %src, 8+ %t7 =l loadl %t8+ %t9 =l call $ZSTD_compressBound(l %t7)+ storel %t9, %t10+ call $__sx_dbg_keep(l %t10)+ dbgvar "bound", "usize", %t10, 8, 5, 35+ dbgloc 36+ %t11 =l copy 0+ %t12 =w ceql %t9, %t11+ jnz %t12, @lbl3174, @lbl3175+@lbl3174+ dbgloc 37+ %t13 =l call $bytes__empty()+ ret %t13+@lbl3175+ dbgloc 39+ %t14 =l call $malloc(l %t9)+ %t15 =l copy %t14+ storel %t15, %t16+ call $__sx_dbg_keep(l %t16)+ dbgvar "dst", "ref u8", %t16, 8, 7, 39+ dbgloc 40+ %t17 =l copy %t15+ %t18 =l loadl %src+ %t19 =l copy %t18+ %t21 =l add %src, 8+ %t20 =l loadl %t21+ %t22 =l call $ZSTD_compress(l %t17, l %t9, l %t19, l %t20, w %level)+ storel %t22, %t23+ call $__sx_dbg_keep(l %t23)+ dbgvar "n", "usize", %t23, 8, 5, 40+ dbgloc 47+ %t24 =w call $ZSTD_isError(l %t22)+ %t25 =w copy 0+ %t26 =w cnew %t24, %t25+ storew %t26, %t27+ jnz %t26, @lbl3181, @lbl3180+@lbl3180+ %t29 =l add %src, 8+ %t28 =l loadl %t29+ %t31 =w csltl %t22, %t28+ %t30 =w ceqw %t31, 0+ storew %t30, %t27+ jmp @lbl3181+@lbl3181+ %t32 =w loadw %t27+ jnz %t32, @lbl3177, @lbl3178+@lbl3177+ dbgloc 48+ %t34 =l copy %t15+ call $free(l %t34)+ %t33 =l copy 0+ dbgloc 49+ %t35 =l call $bytes__empty()+ ret %t35+@lbl3178+ dbgloc 51+ %t36 =l call $bytes__bytes(l %t15, l %t22)+ ret %t36+}++export function l $zstd__decompress(l %__ret, l %src, l %raw_len) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t4 =l alloc8 16+ %t7 =l alloc8 8+ %t14 =l alloc8 8+ %t18 =l alloc4 1+ %t23 =l alloc8 16+ %t25 =l alloc8 16+ dbgloc 56+ storel %src, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "src", "bytes.Bytes", %t0, 8, 5, 56+ storel %raw_len, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "raw_len", "usize", %t1, 8, 5, 56+ dbgloc 57+ %t2 =l copy 0+ %t3 =w ceql %raw_len, %t2+ jnz %t3, @lbl3182, @lbl3183+@lbl3182+ dbgloc 58+ storel 0, %t4+ call $memcpy(l %__ret, l %t4, l 16)+ ret %__ret+@lbl3183+ dbgloc 60+ %t5 =l call $malloc(l %raw_len)+ %t6 =l copy %t5+ storel %t6, %t7+ call $__sx_dbg_keep(l %t7)+ dbgvar "dst", "ref u8", %t7, 8, 7, 60+ dbgloc 61+ %t8 =l copy %t6+ %t9 =l loadl %src+ %t10 =l copy %t9+ %t12 =l add %src, 8+ %t11 =l loadl %t12+ %t13 =l call $ZSTD_decompress(l %t8, l %raw_len, l %t10, l %t11)+ storel %t13, %t14+ call $__sx_dbg_keep(l %t14)+ dbgvar "n", "usize", %t14, 8, 5, 61+ dbgloc 67+ %t15 =w call $ZSTD_isError(l %t13)+ %t16 =w copy 0+ %t17 =w cnew %t15, %t16+ storew %t17, %t18+ jnz %t17, @lbl3189, @lbl3188+@lbl3188+ %t19 =w cnel %t13, %raw_len+ storew %t19, %t18+ jmp @lbl3189+@lbl3189+ %t20 =w loadw %t18+ jnz %t20, @lbl3185, @lbl3186+@lbl3185+ dbgloc 68+ %t22 =l copy %t6+ call $free(l %t22)+ %t21 =l copy 0+ dbgloc 69+ storel 0, %t23+ call $memcpy(l %__ret, l %t23, l 16)+ ret %__ret+@lbl3186+ dbgloc 71+ %t24 =l call $bytes__bytes(l %t6, l %raw_len)+ call $memset(l %t25, w 0, l 16)+ storel 1, %t25+ %t26 =l add %t25, 8+ storel %t24, %t26+ call $memcpy(l %__ret, l %t25, l 16)+ ret %__ret+}++dbgfile "src/store/pack.sx"+data $pack__PACK_FORMAT_VERSION = { l 1 }+data $pack__PACK_HEADER_LEN = { l 16 }+data $pack__RECORD_MIN = { l 36 }+export function l $pack__Pack__id_at(l %p, l %i) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 41+ storel %p, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "p", "Pack", %t0, 8, 5, 41+ storel %i, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "i", "usize", %t1, 8, 5, 41+ dbgloc 42+ %t3 =l add %p, 16+ %t2 =l loadl %t3+ %t4 =w csltl %i, %t2+ jnz %t4, @lbl3190, @lbl3191+@lbl3191+ %t5 =l copy $__str215+ call $dprintf(w 2, l %t5)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl3190+ dbgloc 45+ %t8 =l add %p, 24+ %t7 =l loadl %t8+ %t9 =l copy 32+ %t10 =l mul %i, %t9+ %t11 =l copy %t10+ %t6 =l add %t7, %t11+ %t12 =l call $objid__id(l %t6)+ ret %t12+}++export function w $pack__Pack__kind_at(l %p, l %i) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 48+ storel %p, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "p", "Pack", %t0, 8, 5, 48+ storel %i, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "i", "usize", %t1, 8, 5, 48+ dbgloc 49+ %t3 =l add %p, 16+ %t2 =l loadl %t3+ %t4 =w csltl %i, %t2+ jnz %t4, @lbl3192, @lbl3193+@lbl3193+ %t5 =l copy $__str216+ call $dprintf(w 2, l %t5)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl3192+ dbgloc 52+ %t9 =l add %p, 32+ %t8 =l loadl %t9+ %t10 =l copy %i+ %t7 =l add %t8, %t10+ %t11 =w loadub %t7+ %t6 =l extsw %t11+ %t12 =w copy %t6+ ret %t12+}++export function w $pack__Pack__comp_at(l %p, l %i) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 55+ storel %p, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "p", "Pack", %t0, 8, 5, 55+ storel %i, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "i", "usize", %t1, 8, 5, 55+ dbgloc 56+ %t3 =l add %p, 16+ %t2 =l loadl %t3+ %t4 =w csltl %i, %t2+ jnz %t4, @lbl3194, @lbl3195+@lbl3195+ %t5 =l copy $__str217+ call $dprintf(w 2, l %t5)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl3194+ dbgloc 59+ %t9 =l add %p, 40+ %t8 =l loadl %t9+ %t10 =l copy %i+ %t7 =l add %t8, %t10+ %t11 =w loadub %t7+ %t6 =l extsw %t11+ %t12 =w copy %t6+ ret %t12+}++export function l $pack__Pack__raw_len_at(l %p, l %i) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 62+ storel %p, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "p", "Pack", %t0, 8, 5, 62+ storel %i, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "i", "usize", %t1, 8, 5, 62+ dbgloc 63+ %t3 =l add %p, 16+ %t2 =l loadl %t3+ %t4 =w csltl %i, %t2+ jnz %t4, @lbl3196, @lbl3197+@lbl3197+ %t5 =l copy $__str218+ call $dprintf(w 2, l %t5)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl3196+ dbgloc 66+ %t9 =l add %p, 48+ %t8 =l loadl %t9+ %t10 =l copy 8+ %t11 =l mul %i, %t10+ %t12 =l copy %t11+ %t7 =l add %t8, %t12+ %t6 =l loadl %t7+ %t13 =l copy %t6+ ret %t13+}++export function l $pack__Pack__stored_len_at(l %p, l %i) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 69+ storel %p, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "p", "Pack", %t0, 8, 5, 69+ storel %i, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "i", "usize", %t1, 8, 5, 69+ dbgloc 70+ %t3 =l add %p, 16+ %t2 =l loadl %t3+ %t4 =w csltl %i, %t2+ jnz %t4, @lbl3198, @lbl3199+@lbl3199+ %t5 =l copy $__str219+ call $dprintf(w 2, l %t5)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl3198+ dbgloc 73+ %t9 =l add %p, 56+ %t8 =l loadl %t9+ %t10 =l copy 8+ %t11 =l mul %i, %t10+ %t12 =l copy %t11+ %t7 =l add %t8, %t12+ %t6 =l loadl %t7+ %t13 =l copy %t6+ ret %t13+}++export function l $pack__Pack__data_off_at(l %p, l %i) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 76+ storel %p, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "p", "Pack", %t0, 8, 5, 76+ storel %i, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "i", "usize", %t1, 8, 5, 76+ dbgloc 77+ %t3 =l add %p, 16+ %t2 =l loadl %t3+ %t4 =w csltl %i, %t2+ jnz %t4, @lbl3200, @lbl3201+@lbl3201+ %t5 =l copy $__str220+ call $dprintf(w 2, l %t5)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl3200+ dbgloc 80+ %t9 =l add %p, 64+ %t8 =l loadl %t9+ %t10 =l copy 8+ %t11 =l mul %i, %t10+ %t12 =l copy %t11+ %t7 =l add %t8, %t12+ %t6 =l loadl %t7+ %t13 =l copy %t6+ ret %t13+}++export function l $pack__Pack__rec_off_at(l %p, l %i) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 83+ storel %p, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "p", "Pack", %t0, 8, 5, 83+ storel %i, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "i", "usize", %t1, 8, 5, 83+ dbgloc 84+ %t3 =l add %p, 16+ %t2 =l loadl %t3+ %t4 =w csltl %i, %t2+ jnz %t4, @lbl3202, @lbl3203+@lbl3203+ %t5 =l copy $__str221+ call $dprintf(w 2, l %t5)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl3202+ dbgloc 87+ %t9 =l add %p, 72+ %t8 =l loadl %t9+ %t10 =l copy 8+ %t11 =l mul %i, %t10+ %t12 =l copy %t11+ %t7 =l add %t8, %t12+ %t6 =l loadl %t7+ %t13 =l copy %t6+ ret %t13+}++export function l $pack__Pack__find_by_offset(l %__ret, l %p, l %off) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t3 =l alloc8 8+ %t6 =l alloc8 8+ %t17 =l alloc8 8+ %t19 =l alloc8 8+ %t21 =l alloc8 16+ %t26 =l alloc8 16+ dbgloc 91+ storel %p, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "p", "Pack", %t0, 8, 5, 91+ storel %off, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "off", "u64", %t1, 8, 7, 91+ dbgloc 92+ %t2 =l copy 0+ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "lo", "usize", %t3, 8, 5, 92+ dbgloc 93+ %t5 =l add %p, 16+ %t4 =l loadl %t5+ storel %t4, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "hi", "usize", %t6, 8, 5, 93+ dbgloc 94+ jmp @lbl3204+@lbl3204+ %t7 =l loadl %t3+ %t8 =l loadl %t6+ %t9 =w csltl %t7, %t8+ jnz %t9, @lbl3205, @lbl3207+@lbl3205+ dbgloc 95+ %t10 =l loadl %t3+ %t11 =l loadl %t6+ %t12 =l loadl %t3+ %t13 =l sub %t11, %t12+ %t14 =l copy 2+ %t15 =l div %t13, %t14+ %t16 =l add %t10, %t15+ storel %t16, %t17+ call $__sx_dbg_keep(l %t17)+ dbgvar "mid", "usize", %t17, 8, 5, 95+ dbgloc 96+ %t18 =l call $pack__Pack__rec_off_at(l %p, l %t16)+ storel %t18, %t19+ call $__sx_dbg_keep(l %t19)+ dbgvar "cur", "u64", %t19, 8, 7, 96+ dbgloc 97+ %t20 =w ceql %t18, %off+ jnz %t20, @lbl3208, @lbl3209+@lbl3208+ dbgloc 98+ call $memset(l %t21, w 0, l 16)+ storel 1, %t21+ %t22 =l add %t21, 8+ storel %t16, %t22+ call $memcpy(l %__ret, l %t21, l 16)+ ret %__ret+@lbl3209+ dbgloc 100+ %t23 =w csltl %t18, %off+ jnz %t23, @lbl3211, @lbl3213+@lbl3211+ dbgloc 101+ %t24 =l copy 1+ %t25 =l add %t16, %t24+ storel %t25, %t3+ jmp @lbl3212+@lbl3213+ dbgloc 103+ storel %t16, %t6+ jmp @lbl3212+@lbl3212+ jmp @lbl3206+@lbl3206+ jmp @lbl3204+@lbl3207+ dbgloc 106+ storel 0, %t26+ call $memcpy(l %__ret, l %t26, l 16)+ ret %__ret+}++export function l $pack__Pack__stored(l %p, l %i) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t8 =l alloc8 8+ %t11 =l alloc8 8+ dbgloc 109+ storel %p, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "p", "Pack", %t0, 8, 5, 109+ storel %i, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "i", "usize", %t1, 8, 5, 109+ dbgloc 110+ %t3 =l add %p, 16+ %t2 =l loadl %t3+ %t4 =w csltl %i, %t2+ jnz %t4, @lbl3214, @lbl3215+@lbl3215+ %t5 =l copy $__str222+ call $dprintf(w 2, l %t5)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl3214+ dbgloc 113+ %t6 =l call $pack__Pack__data_off_at(l %p, l %i)+ %t7 =l copy %t6+ storel %t7, %t8+ call $__sx_dbg_keep(l %t8)+ dbgvar "off", "usize", %t8, 8, 5, 113+ dbgloc 114+ %t9 =l call $pack__Pack__stored_len_at(l %p, l %i)+ %t10 =l copy %t9+ storel %t10, %t11+ call $__sx_dbg_keep(l %t11)+ dbgvar "n", "usize", %t11, 8, 5, 114+ dbgloc 115+ %t12 =l add %p, 0+ %t13 =l add %t7, %t10+ %t14 =l call $bytes__Bytes__slice(l %t12, l %t7, l %t13)+ ret %t14+}++export function w $pack__free_pack(l %p) {+@start+ %t0 =l alloc8 8+ %t32 =l alloc8 8+ dbgloc 118+ storel %p, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "p", "ref Pack", %t0, 8, 7, 118+ dbgloc 119+ %t1 =l add %p, 0+ %t2 =w call $pack__files_free(l %t1)+ dbgloc 120+ %t5 =l add %p, 24+ %t4 =l loadl %t5+ %t6 =l copy %t4+ call $free(l %t6)+ %t3 =l copy 0+ dbgloc 121+ %t9 =l add %p, 32+ %t8 =l loadl %t9+ %t10 =l copy %t8+ call $free(l %t10)+ %t7 =l copy 0+ dbgloc 122+ %t13 =l add %p, 40+ %t12 =l loadl %t13+ %t14 =l copy %t12+ call $free(l %t14)+ %t11 =l copy 0+ dbgloc 123+ %t17 =l add %p, 48+ %t16 =l loadl %t17+ %t18 =l copy %t16+ call $free(l %t18)+ %t15 =l copy 0+ dbgloc 124+ %t21 =l add %p, 56+ %t20 =l loadl %t21+ %t22 =l copy %t20+ call $free(l %t22)+ %t19 =l copy 0+ dbgloc 125+ %t25 =l add %p, 64+ %t24 =l loadl %t25+ %t26 =l copy %t24+ call $free(l %t26)+ %t23 =l copy 0+ dbgloc 126+ %t29 =l add %p, 72+ %t28 =l loadl %t29+ %t30 =l copy %t28+ call $free(l %t30)+ %t27 =l copy 0+ dbgloc 127+ %t31 =l copy %p+ storel %t31, %t32+ call $__sx_dbg_keep(l %t32)+ dbgvar "q", "ref ", %t32, 8, 7, 127+ dbgloc 128+ %t34 =l loadl %t32+ call $free(l %t34)+ %t33 =l copy 0+ ret 0+}++function w $pack__files_free(l %b) {+@start+ %t0 =l alloc8 8+ %t6 =l alloc8 8+ dbgloc 131+ storel %b, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "b", "bytes.Bytes", %t0, 8, 5, 131+ dbgloc 132+ %t1 =l loadl %b+ %t2 =l copy 0+ %t3 =w cnel %t1, %t2+ jnz %t3, @lbl3216, @lbl3217+@lbl3216+ dbgloc 133+ %t4 =l loadl %b+ %t5 =l copy %t4+ storel %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "p", "ref ", %t6, 8, 7, 133+ dbgloc 134+ %t8 =l loadl %t6+ call $free(l %t8)+ %t7 =l copy 0+ jmp @lbl3217+@lbl3217+ ret 0+}++function l $pack__type_limit(w %t) {+@start+ %t0 =l alloc8 8+ dbgloc 138+ storew %t, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "t", "u8", %t0, 1, 7, 138+ dbgloc 139+ %t1 =l extsw %t+ %t2 =l copy 1+ %t4 =l extsw %t1+ %t3 =w ceql %t4, %t2+ jnz %t3, @lbl3219, @lbl3220+@lbl3219+ dbgloc 140+ %t5 =l copy 262144+ ret %t5+@lbl3220+ dbgloc 142+ %t6 =l copy 67108864+ ret %t6+}++export function l $pack__decode(l %__ret, l %data) {+@start+ %t0 =l alloc8 8+ %t7 =l alloc8 16+ %t20 =l alloc8 16+ %t31 =l alloc8 8+ %t34 =l alloc8 16+ %t44 =l alloc8 8+ %t49 =l alloc8 8+ %t53 =l alloc8 8+ %t57 =l alloc8 8+ %t65 =l alloc8 8+ %t69 =l alloc8 16+ %t78 =l alloc8 16+ %t84 =l alloc8 8+ %t89 =l alloc8 8+ %t92 =l alloc8 8+ %t95 =l alloc8 8+ %t100 =l alloc8 8+ %t105 =l alloc8 8+ %t110 =l alloc8 8+ %t115 =l alloc8 8+ %t119 =l alloc8 8+ %t124 =l alloc8 8+ %t129 =l alloc8 8+ %t132 =l alloc8 16+ %t137 =l alloc8 8+ %t155 =l alloc8 16+ %t163 =l alloc8 8+ %t166 =l alloc8 16+ %t176 =l alloc8 16+ %t184 =l alloc8 8+ %t187 =l alloc8 16+ %t197 =l alloc8 8+ %t200 =l alloc8 16+ %t205 =l alloc8 8+ %t208 =l alloc8 16+ %t213 =l alloc8 8+ %t216 =l alloc8 16+ %t223 =l alloc8 16+ %t229 =l alloc4 1+ %t232 =l alloc8 16+ %t240 =l alloc8 16+ %t276 =l alloc8 16+ %t286 =l alloc8 16+ %t295 =l alloc8 8+ %t315 =l alloc8 16+ dbgloc 147+ storel %data, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "data", "bytes.Bytes", %t0, 8, 5, 147+ dbgloc 148+ %t2 =l add %data, 8+ %t1 =l loadl %t2+ %t3 =l copy 16+ %t4 =l copy 32+ %t5 =l add %t3, %t4+ %t6 =w csltl %t1, %t5+ jnz %t6, @lbl3222, @lbl3223+@lbl3222+ dbgloc 149+ call $memset(l %t7, w 0, l 16)+ storel 1, %t7+ %t8 =l copy 0+ %t9 =l copy 0+ %t10 =l call $derr__fail(l %t8, l %t9)+ %t11 =l add %t7, 8+ storel %t10, %t11+ call $memcpy(l %__ret, l %t7, l 16)+ ret %__ret+@lbl3223+ dbgloc 151+ %t12 =l copy 0+ %t13 =l copy 4+ %t14 =l call $bytes__Bytes__slice(l %data, l %t12, l %t13)+ %t15 =l copy $__str223+ %t16 =l copy 4+ %t17 =l call $bytes__bytes(l %t15, l %t16)+ %t18 =w call $bytes__Bytes__eql(l %t14, l %t17)+ %t19 =w ceqw %t18, 0+ jnz %t19, @lbl3225, @lbl3226+@lbl3225+ dbgloc 152+ call $memset(l %t20, w 0, l 16)+ storel 1, %t20+ %t21 =l copy 8+ %t22 =l copy 0+ %t23 =l call $derr__fail(l %t21, l %t22)+ %t24 =l add %t20, 8+ storel %t23, %t24+ call $memcpy(l %__ret, l %t20, l 16)+ ret %__ret+@lbl3226+ dbgloc 154+ %t27 =l loadl %data+ %t28 =l copy 4+ %t26 =l add %t27, %t28+ %t29 =w loadsw %t26+ %t25 =l extsw %t29+ %t30 =w copy %t25+ storew %t30, %t31+ call $__sx_dbg_keep(l %t31)+ dbgvar "version", "u32", %t31, 4, 7, 154+ dbgloc 155+ %t32 =w copy 1+ %t33 =w cnew %t30, %t32+ jnz %t33, @lbl3228, @lbl3229+@lbl3228+ dbgloc 156+ call $memset(l %t34, w 0, l 16)+ storel 1, %t34+ %t35 =l copy 9+ %t36 =l copy 4+ %t37 =l call $derr__fail(l %t35, l %t36)+ %t38 =l add %t34, 8+ storel %t37, %t38+ call $memcpy(l %__ret, l %t34, l 16)+ ret %__ret+@lbl3229+ dbgloc 158+ %t41 =l loadl %data+ %t42 =l copy 8+ %t40 =l add %t41, %t42+ %t39 =l loadl %t40+ %t43 =l copy %t39+ storel %t43, %t44+ call $__sx_dbg_keep(l %t44)+ dbgvar "count_u64", "u64", %t44, 8, 7, 158+ dbgloc 159+ %t46 =l add %data, 8+ %t45 =l loadl %t46+ %t47 =l copy 32+ %t48 =l sub %t45, %t47+ storel %t48, %t49+ call $__sx_dbg_keep(l %t49)+ dbgvar "body_end", "usize", %t49, 8, 5, 159+ dbgloc 160+ %t51 =l add %data, 8+ %t50 =l loadl %t51+ %t52 =l call $bytes__Bytes__slice(l %data, l %t48, l %t50)+ storel %t52, %t53+ call $__sx_dbg_keep(l %t53)+ dbgvar "trailer", "bytes.Bytes", %t53, 8, 5, 160+ dbgloc 162+ %t55 =l copy 32+ %t54 =l call $malloc(l %t55)+ %t56 =l copy %t54+ storel %t56, %t57+ call $__sx_dbg_keep(l %t57)+ dbgvar "digest", "ref u8", %t57, 8, 7, 162+ dbgloc 163+ %t58 =l loadl %data+ %t59 =w call $b3__hash(l %t58, l %t48, l %t56)+ dbgloc 164+ %t60 =l copy 32+ %t61 =l call $bytes__bytes(l %t56, l %t60)+ %t62 =w call $bytes__Bytes__eql(l %t61, l %t52)+ %t63 =w copy %t62+ %t64 =w extub %t63+ storew %t64, %t65+ call $__sx_dbg_keep(l %t65)+ dbgvar "valid", "bool", %t65, 1, 7, 164+ dbgloc 165+ %t67 =l copy %t56+ call $free(l %t67)+ %t66 =l copy 0+ dbgloc 166+ %t68 =w ceqw %t64, 0+ jnz %t68, @lbl3231, @lbl3232+@lbl3231+ dbgloc 167+ call $memset(l %t69, w 0, l 16)+ storel 1, %t69+ %t70 =l copy 11+ %t71 =l call $derr__fail(l %t70, l %t48)+ %t72 =l add %t69, 8+ storel %t71, %t72+ call $memcpy(l %__ret, l %t69, l 16)+ ret %__ret+@lbl3232+ dbgloc 170+ %t73 =l copy %t48+ %t74 =l copy 36+ %t75 =l copy %t74+ %t76 =l div %t73, %t75+ %t77 =w csgtl %t43, %t76+ jnz %t77, @lbl3234, @lbl3235+@lbl3234+ dbgloc 171+ call $memset(l %t78, w 0, l 16)+ storel 1, %t78+ %t79 =l copy 6+ %t80 =l copy 8+ %t81 =l call $derr__fail(l %t79, l %t80)+ %t82 =l add %t78, 8+ storel %t81, %t82+ call $memcpy(l %__ret, l %t78, l 16)+ ret %__ret+@lbl3235+ dbgloc 173+ %t83 =l copy %t43+ storel %t83, %t84+ call $__sx_dbg_keep(l %t84)+ dbgvar "count", "usize", %t84, 8, 5, 173+ dbgloc 174+ %t86 =l copy 32+ %t87 =l mul %t83, %t86+ %t85 =l call $malloc(l %t87)+ %t88 =l copy %t85+ storel %t88, %t89+ call $__sx_dbg_keep(l %t89)+ dbgvar "ids", "ref u8", %t89, 8, 7, 174+ dbgloc 175+ %t90 =l call $malloc(l %t83)+ %t91 =l copy %t90+ storel %t91, %t92+ call $__sx_dbg_keep(l %t92)+ dbgvar "kinds", "ref u8", %t92, 8, 7, 175+ dbgloc 176+ %t93 =l call $malloc(l %t83)+ %t94 =l copy %t93+ storel %t94, %t95+ call $__sx_dbg_keep(l %t95)+ dbgvar "comps", "ref u8", %t95, 8, 7, 176+ dbgloc 177+ %t97 =l copy 8+ %t98 =l mul %t83, %t97+ %t96 =l call $malloc(l %t98)+ %t99 =l copy %t96+ storel %t99, %t100+ call $__sx_dbg_keep(l %t100)+ dbgvar "raw_lens", "ref u8", %t100, 8, 7, 177+ dbgloc 178+ %t102 =l copy 8+ %t103 =l mul %t83, %t102+ %t101 =l call $malloc(l %t103)+ %t104 =l copy %t101+ storel %t104, %t105+ call $__sx_dbg_keep(l %t105)+ dbgvar "stored_lens", "ref u8", %t105, 8, 7, 178+ dbgloc 179+ %t107 =l copy 8+ %t108 =l mul %t83, %t107+ %t106 =l call $malloc(l %t108)+ %t109 =l copy %t106+ storel %t109, %t110+ call $__sx_dbg_keep(l %t110)+ dbgvar "data_offs", "ref u8", %t110, 8, 7, 179+ dbgloc 180+ %t112 =l copy 8+ %t113 =l mul %t83, %t112+ %t111 =l call $malloc(l %t113)+ %t114 =l copy %t111+ storel %t114, %t115+ call $__sx_dbg_keep(l %t115)+ dbgvar "rec_offs", "ref u8", %t115, 8, 7, 180+ dbgloc 182+ %t116 =l loadl %data+ %t117 =l call $reader__new(l %t116, l %t48)+ %t118 =l call $malloc(l 24)+ call $memset(l %t118, w 0, l 24)+ call $memcpy(l %t118, l %t117, l 24)+ storel %t118, %t119+ call $__sx_dbg_keep(l %t119)+ dbgvar "r", "reader.Reader", %t119, 8, 5, 182+ dbgloc 183+ %t120 =l copy 16+ %t121 =l loadl %t119+ %t122 =l add %t121, 16+ storel %t120, %t122+ dbgloc 184+ %t123 =l copy 0+ storel %t123, %t124+ call $__sx_dbg_keep(l %t124)+ dbgvar "i", "usize", %t124, 8, 5, 184+ dbgloc 185+ jmp @lbl3237+@lbl3237+ %t125 =l loadl %t124+ %t126 =w csltl %t125, %t83+ jnz %t126, @lbl3238, @lbl3240+@lbl3238+ dbgloc 186+ %t127 =l loadl %t119+ %t128 =l call $reader__Reader__offset(l %t127)+ storel %t128, %t129+ call $__sx_dbg_keep(l %t129)+ dbgvar "rec_off", "usize", %t129, 8, 5, 186+ dbgloc 187+ %t130 =l loadl %t119+ %t131 =l call $reader__Reader__read_id(l %t132, l %t130)+ %t133 =l loadl %t132+ %t134 =w ceql %t133, 0+ jnz %t134, @lbl3241, @lbl3242+@lbl3242+ call $memcpy(l %__ret, l %t132, l 16)+ ret %__ret+@lbl3241+ %t136 =l add %t132, 8+ %t135 =l loadl %t136+ storel %t135, %t137+ call $__sx_dbg_keep(l %t137)+ dbgvar "idp", "ref u8", %t137, 8, 7, 187+ dbgloc 188+ %t140 =l loadl %t124+ %t141 =l copy 32+ %t142 =l mul %t140, %t141+ %t143 =l copy %t142+ %t139 =l add %t88, %t143+ %t144 =l copy %t135+ %t145 =l copy 32+ call $memcpy(l %t139, l %t144, l %t145)+ %t138 =l copy 0+ dbgloc 189+ %t148 =l loadl %t124+ %t149 =l copy 8+ %t150 =l mul %t148, %t149+ %t151 =l copy %t150+ %t147 =l add %t114, %t151+ %t152 =l copy %t128+ storel %t152, %t147+ %t146 =l copy 0+ dbgloc 191+ %t153 =l loadl %t119+ %t154 =l call $reader__Reader__read_u8(l %t155, l %t153)+ %t156 =l loadl %t155+ %t157 =w ceql %t156, 0+ jnz %t157, @lbl3243, @lbl3244+@lbl3244+ call $memcpy(l %__ret, l %t155, l 16)+ ret %__ret+@lbl3243+ %t159 =l add %t155, 8+ %t158 =w loadw %t159+ %t160 =w copy %t158+ %t161 =w copy %t160+ %t162 =w extub %t161+ storew %t162, %t163+ call $__sx_dbg_keep(l %t163)+ dbgvar "kind", "u8", %t163, 1, 7, 191+ dbgloc 192+ %t164 =w call $types__is_valid(w %t162)+ %t165 =w ceqw %t164, 0+ jnz %t165, @lbl3245, @lbl3246+@lbl3245+ dbgloc 193+ call $memset(l %t166, w 0, l 16)+ storel 1, %t166+ %t167 =l copy 3+ %t168 =l loadl %t119+ %t169 =l call $reader__Reader__offset(l %t168)+ %t170 =l copy 1+ %t171 =l sub %t169, %t170+ %t172 =l call $derr__fail(l %t167, l %t171)+ %t173 =l add %t166, 8+ storel %t172, %t173+ call $memcpy(l %__ret, l %t166, l 16)+ ret %__ret+@lbl3246+ dbgloc 195+ %t174 =l loadl %t119+ %t175 =l call $reader__Reader__read_u8(l %t176, l %t174)+ %t177 =l loadl %t176+ %t178 =w ceql %t177, 0+ jnz %t178, @lbl3248, @lbl3249+@lbl3249+ call $memcpy(l %__ret, l %t176, l 16)+ ret %__ret+@lbl3248+ %t180 =l add %t176, 8+ %t179 =w loadw %t180+ %t181 =w copy %t179+ %t182 =w copy %t181+ %t183 =w extub %t182+ storew %t183, %t184+ call $__sx_dbg_keep(l %t184)+ dbgvar "comp", "u8", %t184, 1, 7, 195+ dbgloc 196+ %t185 =w copy 1+ %t186 =w csgtw %t183, %t185+ jnz %t186, @lbl3250, @lbl3251+@lbl3250+ dbgloc 197+ call $memset(l %t187, w 0, l 16)+ storel 1, %t187+ %t188 =l copy 3+ %t189 =l loadl %t119+ %t190 =l call $reader__Reader__offset(l %t189)+ %t191 =l copy 1+ %t192 =l sub %t190, %t191+ %t193 =l call $derr__fail(l %t188, l %t192)+ %t194 =l add %t187, 8+ storel %t193, %t194+ call $memcpy(l %__ret, l %t187, l 16)+ ret %__ret+@lbl3251+ dbgloc 199+ %t195 =l loadl %t119+ %t196 =l call $reader__Reader__offset(l %t195)+ storel %t196, %t197+ call $__sx_dbg_keep(l %t197)+ dbgvar "at", "usize", %t197, 8, 5, 199+ dbgloc 200+ %t198 =l loadl %t119+ %t199 =l call $reader__Reader__read_varint(l %t200, l %t198)+ %t201 =l loadl %t200+ %t202 =w ceql %t201, 0+ jnz %t202, @lbl3253, @lbl3254+@lbl3254+ call $memcpy(l %__ret, l %t200, l 16)+ ret %__ret+@lbl3253+ %t204 =l add %t200, 8+ %t203 =l loadl %t204+ storel %t203, %t205+ call $__sx_dbg_keep(l %t205)+ dbgvar "raw_len", "u64", %t205, 8, 7, 200+ dbgloc 201+ %t206 =l loadl %t119+ %t207 =l call $reader__Reader__read_varint(l %t208, l %t206)+ %t209 =l loadl %t208+ %t210 =w ceql %t209, 0+ jnz %t210, @lbl3255, @lbl3256+@lbl3256+ call $memcpy(l %__ret, l %t208, l 16)+ ret %__ret+@lbl3255+ %t212 =l add %t208, 8+ %t211 =l loadl %t212+ storel %t211, %t213+ call $__sx_dbg_keep(l %t213)+ dbgvar "stored_len", "u64", %t213, 8, 7, 201+ dbgloc 202+ %t214 =l copy 0+ %t215 =w ceql %t203, %t214+ jnz %t215, @lbl3257, @lbl3258+@lbl3257+ dbgloc 203+ call $memset(l %t216, w 0, l 16)+ storel 1, %t216+ %t217 =l copy 3+ %t218 =l call $derr__fail(l %t217, l %t196)+ %t219 =l add %t216, 8+ storel %t218, %t219+ call $memcpy(l %__ret, l %t216, l 16)+ ret %__ret+@lbl3258+ dbgloc 205+ %t220 =l call $pack__type_limit(w %t162)+ %t221 =l copy %t220+ %t222 =w csgtl %t203, %t221+ jnz %t222, @lbl3260, @lbl3261+@lbl3260+ dbgloc 206+ call $memset(l %t223, w 0, l 16)+ storel 1, %t223+ %t224 =l copy 6+ %t225 =l call $derr__fail(l %t224, l %t196)+ %t226 =l add %t223, 8+ storel %t225, %t226+ call $memcpy(l %__ret, l %t223, l 16)+ ret %__ret+@lbl3261+ dbgloc 208+ %t227 =w copy 0+ %t228 =w ceqw %t183, %t227+ storew %t228, %t229+ jnz %t228, @lbl3266, @lbl3267+@lbl3266+ %t230 =w cnel %t203, %t211+ storew %t230, %t229+ jmp @lbl3267+@lbl3267+ %t231 =w loadw %t229+ jnz %t231, @lbl3263, @lbl3264+@lbl3263+ dbgloc 209+ call $memset(l %t232, w 0, l 16)+ storel 1, %t232+ %t233 =l copy 3+ %t234 =l call $derr__fail(l %t233, l %t196)+ %t235 =l add %t232, 8+ storel %t234, %t235+ call $memcpy(l %__ret, l %t232, l 16)+ ret %__ret+@lbl3264+ dbgloc 211+ %t236 =l loadl %t119+ %t237 =l call $reader__Reader__remaining(l %t236)+ %t238 =l copy %t237+ %t239 =w csgtl %t211, %t238+ jnz %t239, @lbl3268, @lbl3269+@lbl3268+ dbgloc 212+ call $memset(l %t240, w 0, l 16)+ storel 1, %t240+ %t241 =l copy 0+ %t242 =l call $derr__fail(l %t241, l %t196)+ %t243 =l add %t240, 8+ storel %t242, %t243+ call $memcpy(l %__ret, l %t240, l 16)+ ret %__ret+@lbl3269+ dbgloc 214+ %t246 =l loadl %t124+ %t247 =l copy %t246+ %t245 =l add %t91, %t247+ storeb %t162, %t245+ %t244 =l copy 0+ dbgloc 215+ %t250 =l loadl %t124+ %t251 =l copy %t250+ %t249 =l add %t94, %t251+ storeb %t183, %t249+ %t248 =l copy 0+ dbgloc 216+ %t254 =l loadl %t124+ %t255 =l copy 8+ %t256 =l mul %t254, %t255+ %t257 =l copy %t256+ %t253 =l add %t99, %t257+ storel %t203, %t253+ %t252 =l copy 0+ dbgloc 217+ %t260 =l loadl %t124+ %t261 =l copy 8+ %t262 =l mul %t260, %t261+ %t263 =l copy %t262+ %t259 =l add %t104, %t263+ storel %t211, %t259+ %t258 =l copy 0+ dbgloc 218+ %t266 =l loadl %t124+ %t267 =l copy 8+ %t268 =l mul %t266, %t267+ %t269 =l copy %t268+ %t265 =l add %t109, %t269+ %t270 =l loadl %t119+ %t271 =l call $reader__Reader__offset(l %t270)+ %t272 =l copy %t271+ storel %t272, %t265+ %t264 =l copy 0+ dbgloc 219+ %t273 =l loadl %t119+ %t274 =l copy %t211+ %t275 =l call $reader__Reader__read_raw(l %t276, l %t273, l %t274)+ %t277 =l loadl %t276+ %t278 =w ceql %t277, 0+ jnz %t278, @lbl3271, @lbl3272+@lbl3272+ call $memcpy(l %__ret, l %t276, l 16)+ ret %__ret+@lbl3271+ %t280 =l add %t276, 8+ %t279 =l loadl %t280+ dbgloc 220+ %t281 =l loadl %t124+ %t282 =l add %t281, 1+ storel %t282, %t124+ jmp @lbl3239+@lbl3239+ jmp @lbl3237+@lbl3240+ dbgloc 222+ %t283 =l loadl %t119+ %t284 =l call $reader__Reader__offset(l %t283)+ %t285 =w cnel %t284, %t48+ jnz %t285, @lbl3273, @lbl3274+@lbl3273+ dbgloc 223+ call $memset(l %t286, w 0, l 16)+ storel 1, %t286+ %t287 =l copy 10+ %t288 =l loadl %t119+ %t289 =l call $reader__Reader__offset(l %t288)+ %t290 =l call $derr__fail(l %t287, l %t289)+ %t291 =l add %t286, 8+ storel %t290, %t291+ call $memcpy(l %__ret, l %t286, l 16)+ ret %__ret+@lbl3274+ dbgloc 226+ %t293 =l copy 96+ %t292 =l call $malloc(l %t293)+ %t294 =l copy %t292+ storel %t294, %t295+ call $__sx_dbg_keep(l %t295)+ dbgvar "p", "ref Pack", %t295, 8, 7, 226+ dbgloc 227+ %t296 =l loadl %t295+ call $memcpy(l %t296, l %data, l 16)+ dbgloc 228+ %t297 =l loadl %t295+ %t298 =l add %t297, 16+ storel %t83, %t298+ dbgloc 229+ %t299 =l loadl %t295+ %t300 =l add %t299, 24+ storel %t88, %t300+ dbgloc 230+ %t301 =l loadl %t295+ %t302 =l add %t301, 32+ storel %t91, %t302+ dbgloc 231+ %t303 =l loadl %t295+ %t304 =l add %t303, 40+ storel %t94, %t304+ dbgloc 232+ %t305 =l loadl %t295+ %t306 =l add %t305, 48+ storel %t99, %t306+ dbgloc 233+ %t307 =l loadl %t295+ %t308 =l add %t307, 56+ storel %t104, %t308+ dbgloc 234+ %t309 =l loadl %t295+ %t310 =l add %t309, 64+ storel %t109, %t310+ dbgloc 235+ %t311 =l loadl %t295+ %t312 =l add %t311, 72+ storel %t114, %t312+ dbgloc 236+ %t313 =l loadl %t295+ %t314 =l add %t313, 80+ call $memcpy(l %t314, l %t52, l 16)+ dbgloc 237+ call $memset(l %t315, w 0, l 16)+ storel 0, %t315+ %t316 =l loadl %t295+ %t317 =l add %t315, 8+ storel %t316, %t317+ call $memcpy(l %__ret, l %t315, l 16)+ ret %__ret+}++export function l $pack__get(l %__ret, l %p, l %i) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t8 =l alloc8 8+ %t11 =l alloc8 16+ %t17 =l alloc8 8+ %t19 =l alloc8 8+ %t24 =l alloc8 8+ %t29 =l alloc8 16+ %t33 =l alloc8 16+ %t34 =l alloc8 8+ %t39 =l alloc8 16+ %t41 =l alloc8 16+ dbgloc 241+ storel %p, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "p", "ref Pack", %t0, 8, 7, 241+ storel %i, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "i", "usize", %t1, 8, 5, 241+ dbgloc 242+ %t3 =l add %p, 16+ %t2 =l loadl %t3+ %t4 =w csltl %i, %t2+ jnz %t4, @lbl3276, @lbl3277+@lbl3277+ %t5 =l copy $__str224+ call $dprintf(w 2, l %t5)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl3276+ dbgloc 245+ %t6 =l call $pack__Pack__raw_len_at(l %p, l %i)+ %t7 =l copy %t6+ storel %t7, %t8+ call $__sx_dbg_keep(l %t8)+ dbgvar "raw_len", "usize", %t8, 8, 5, 245+ dbgloc 246+ %t9 =l copy 0+ %t10 =w ceql %t7, %t9+ jnz %t10, @lbl3278, @lbl3279+@lbl3278+ dbgloc 247+ call $memset(l %t11, w 0, l 16)+ storel 0, %t11+ %t12 =l call $bytes__empty()+ %t13 =l add %t11, 8+ storel %t12, %t13+ call $memcpy(l %__ret, l %t11, l 16)+ ret %__ret+@lbl3279+ dbgloc 249+ %t14 =w call $pack__Pack__comp_at(l %p, l %i)+ %t15 =w copy %t14+ %t16 =w extub %t15+ storew %t16, %t17+ call $__sx_dbg_keep(l %t17)+ dbgvar "comp", "u8", %t17, 1, 7, 249+ dbgloc 250+ %t18 =l call $pack__Pack__stored(l %p, l %i)+ storel %t18, %t19+ call $__sx_dbg_keep(l %t19)+ dbgvar "stored", "bytes.Bytes", %t19, 8, 5, 250+ dbgloc 251+ %t20 =w copy 0+ %t21 =w ceqw %t16, %t20+ jnz %t21, @lbl3281, @lbl3282+@lbl3281+ dbgloc 252+ %t22 =l call $malloc(l %t7)+ %t23 =l copy %t22+ storel %t23, %t24+ call $__sx_dbg_keep(l %t24)+ dbgvar "out", "ref u8", %t24, 8, 7, 252+ dbgloc 253+ %t26 =l copy %t23+ %t27 =l loadl %t18+ %t28 =l copy %t27+ call $memcpy(l %t26, l %t28, l %t7)+ %t25 =l copy 0+ dbgloc 254+ call $memset(l %t29, w 0, l 16)+ storel 0, %t29+ %t30 =l call $bytes__bytes(l %t23, l %t7)+ %t31 =l add %t29, 8+ storel %t30, %t31+ call $memcpy(l %__ret, l %t29, l 16)+ ret %__ret+@lbl3282+ dbgloc 256+ %t32 =l call $zstd__decompress(l %t33, l %t18, l %t7)+ storel %t33, %t34+ call $__sx_dbg_keep(l %t34)+ dbgvar "decoded", "option[bytes.Bytes]", %t34, 8, 5, 256+ dbgloc 257+ %t35 =l loadl %t33+ %t36 =w cnel %t35, 0+ jnz %t36, @lbl3284, @lbl3285+@lbl3284+ %t38 =l add %t33, 8+ %t37 =l loadl %t38+ dbgloc 258+ call $memset(l %t39, w 0, l 16)+ storel 0, %t39+ %t40 =l add %t39, 8+ storel %t37, %t40+ call $memcpy(l %__ret, l %t39, l 16)+ ret %__ret+@lbl3285+ jmp @lbl3286+@lbl3286+ dbgloc 260+ call $memset(l %t41, w 0, l 16)+ storel 1, %t41+ %t42 =l copy 14+ %t43 =l call $pack__Pack__data_off_at(l %p, l %i)+ %t44 =l copy %t43+ %t45 =l call $derr__fail(l %t42, l %t44)+ %t46 =l add %t41, 8+ storel %t45, %t46+ call $memcpy(l %__ret, l %t41, l 16)+ ret %__ret+}++function w $pack__id_in(l %seen, l %id) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ dbgloc 263+ storel %seen, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "seen", "list[objid.Id]", %t0, 8, 5, 263+ storel %id, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "id", "objid.Id", %t1, 8, 5, 263+ dbgloc 264+ storel 0, %t2+ %t3 =l call $sxqbe_list_len(l %seen)+@lbl3287+ %t4 =l loadl %t2+ %t5 =w csltl %t4, %t3+ jnz %t5, @lbl3288, @lbl3289+@lbl3288+ %t6 =l call $sxqbe_list_buf(l %seen)+ %t7 =l mul %t4, 8+ %t8 =l add %t6, %t7+ %t9 =l loadl %t8+ dbgloc 265+ %t10 =w call $objid__Id__eql(l %t9, l %id)+ jnz %t10, @lbl3291, @lbl3292+@lbl3291+ dbgloc 266+ %t11 =l copy 1+ ret %t11+@lbl3292+@lbl3290+ %t12 =l add %t4, 1+ storel %t12, %t2+ jmp @lbl3287+@lbl3289+ dbgloc 269+ %t13 =l copy 0+ ret %t13+}++function w $pack__free_id(l %id) {+@start+ %t0 =l alloc8 8+ %t6 =l alloc8 8+ dbgloc 272+ storel %id, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "id", "objid.Id", %t0, 8, 5, 272+ dbgloc 273+ %t1 =l loadl %id+ %t2 =l copy 0+ %t3 =w cnel %t1, %t2+ jnz %t3, @lbl3294, @lbl3295+@lbl3294+ dbgloc 274+ %t4 =l loadl %id+ %t5 =l copy %t4+ storel %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "p", "ref ", %t6, 8, 7, 274+ dbgloc 275+ %t8 =l loadl %t6+ call $free(l %t8)+ %t7 =l copy 0+ jmp @lbl3295+@lbl3295+ ret 0+}++export function l $pack__encode(l %objects) {+@start+ %t0 =l alloc8 8+ %t2 =l alloc8 8+ %t4 =l alloc8 8+ %t8 =l alloc8 8+ %t20 =l alloc8 8+ %t34 =l alloc8 8+ %t54 =l alloc8 8+ %t59 =l alloc8 8+ %t64 =l alloc8 8+ %t67 =l alloc8 8+ %t106 =l alloc8 8+ %t140 =l alloc8 8+ %t155 =l alloc8 8+ %t163 =l alloc8 8+ %t168 =l alloc8 8+ %t172 =l alloc8 8+ %t182 =l alloc8 8+ %t186 =l alloc8 8+ %t190 =l alloc8 8+ %t199 =l alloc8 8+ %t206 =l alloc8 8+ %t218 =l alloc8 56+ dbgloc 282+ storel %objects, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "objects", "list[ref raw.RawObject]", %t0, 8, 5, 282+ dbgloc 283+ %t1 =l call $lists__new__GENMONO__objid__Id()++ storel %t1, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "seen", "list[objid.Id]", %t2, 8, 5, 283+ dbgloc 284+ %t3 =l call $lists__new__GENMONO__ref_records__RecordMeta()++ storel %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "metas", "list[ref records.RecordMeta]", %t4, 8, 5, 284+ dbgloc 285+ %t5 =l copy 4096+ %t6 =l call $buf__new(l %t5)+ %t7 =l call $malloc(l 24)+ call $memset(l %t7, w 0, l 24)+ call $memcpy(l %t7, l %t6, l 24)+ storel %t7, %t8+ call $__sx_dbg_keep(l %t8)+ dbgvar "b", "buf.Buf", %t8, 8, 5, 285+ dbgloc 286+ %t9 =l loadl %t8+ %t10 =l copy $__str223+ %t11 =l copy 4+ %t12 =w call $buf__Buf__put_raw(l %t9, l %t10, l %t11)+ dbgloc 287+ %t13 =l loadl %t8+ %t14 =l copy 1+ %t16 =w copy %t14+ %t15 =w call $buf__Buf__put_u32_le(l %t13, w %t16)+ dbgloc 288+ %t17 =l loadl %t8+ %t18 =l copy 0+ %t19 =w call $buf__Buf__put_u64_le(l %t17, l %t18)+ dbgloc 290+ storel 0, %t20+ %t21 =l call $sxqbe_list_len(l %objects)+@lbl3297+ %t22 =l loadl %t20+ %t23 =w csltl %t22, %t21+ jnz %t23, @lbl3298, @lbl3299+@lbl3298+ %t24 =l call $sxqbe_list_buf(l %objects)+ %t25 =l mul %t22, 8+ %t26 =l add %t24, %t25+ %t27 =l loadl %t26+ dbgloc 291+ %t28 =l loadub %t27+ %t29 =w call $types__is_valid(w %t28)+ %t30 =w ceqw %t29, 0+ jnz %t30, @lbl3301, @lbl3302+@lbl3301+ dbgloc 292+ jmp @lbl3300+@lbl3302+ dbgloc 294+ %t31 =l loadub %t27+ %t32 =l add %t27, 1+ %t33 =l call $objid__object_id(w %t31, l %t32)+ storel %t33, %t34+ call $__sx_dbg_keep(l %t34)+ dbgvar "id", "objid.Id", %t34, 8, 5, 294+ dbgloc 295+ %t35 =l loadl %t2+ %t36 =w call $pack__id_in(l %t35, l %t33)+ jnz %t36, @lbl3304, @lbl3305+@lbl3304+ dbgloc 296+ %t37 =w call $pack__free_id(l %t33)+ dbgloc 297+ jmp @lbl3300+@lbl3305+ dbgloc 299+ %t39 =l call $sxqbe_list_ensure(l %t2)+ %t40 =l add %t39, 8+ %t41 =l add %t39, 16+ %t42 =l loadl %t40+ %t43 =l loadl %t41+ %t45 =l add %t42, 1+ %t44 =w call $sxqbe_list_grow(l %t39, l %t45)+ %t46 =l call $sxqbe_list_buf(l %t39)+ %t47 =l mul %t42, 8+ %t48 =l add %t46, %t47+ storel %t33, %t48+ %t49 =l add %t42, 1+ storel %t49, %t40+ %t38 =l copy 0+ dbgloc 300+ %t50 =l loadl %t8+ %t52 =l add %t50, 8+ %t51 =l loadl %t52+ %t53 =l copy %t51+ storel %t53, %t54+ call $__sx_dbg_keep(l %t54)+ dbgvar "offset", "u64", %t54, 8, 7, 300+ dbgloc 301+ %t55 =l add %t27, 1+ %t56 =l copy 1+ %t58 =w copy %t56+ %t57 =l call $zstd__compress(l %t55, w %t58)+ storel %t57, %t59+ call $__sx_dbg_keep(l %t59)+ dbgvar "compressed", "bytes.Bytes", %t59, 8, 5, 301+ dbgloc 302+ %t60 =l copy 0+ %t61 =w copy %t60+ %t62 =w copy %t61+ %t63 =w extub %t62+ storew %t63, %t64+ call $__sx_dbg_keep(l %t64)+ dbgvar "comp", "u8", %t64, 1, 7, 302+ dbgloc 303+ %t65 =l add %t27, 1+ %t66 =l call $malloc(l 16)+ call $memset(l %t66, w 0, l 16)+ call $memcpy(l %t66, l %t65, l 16)+ storel %t66, %t67+ call $__sx_dbg_keep(l %t67)+ dbgvar "stored", "bytes.Bytes", %t67, 8, 5, 303+ dbgloc 304+ %t69 =l add %t57, 8+ %t68 =l loadl %t69+ %t70 =l copy 0+ %t71 =w csgtl %t68, %t70+ jnz %t71, @lbl3307, @lbl3308+@lbl3307+ dbgloc 305+ %t72 =w copy 1+ %t73 =w copy %t72+ %t74 =w extub %t73+ storew %t74, %t64+ dbgloc 306+ storel %t57, %t67+ jmp @lbl3308+@lbl3308+ dbgloc 308+ %t75 =l loadl %t8+ %t76 =l loadl %t33+ %t77 =w call $buf__Buf__put_id(l %t75, l %t76)+ dbgloc 309+ %t78 =l loadl %t8+ %t79 =l loadub %t27+ %t80 =w call $buf__Buf__put_u8(l %t78, w %t79)+ dbgloc 310+ %t81 =l loadl %t8+ %t83 =w loadw %t64+ %t82 =l extsw %t83+ %t84 =w call $buf__Buf__put_u8(l %t81, w %t82)+ dbgloc 311+ %t85 =l loadl %t8+ %t86 =l add %t27, 1+ %t88 =l add %t86, 8+ %t87 =l loadl %t88+ %t89 =l copy %t87+ %t90 =w call $buf__Buf__put_varint(l %t85, l %t89)+ dbgloc 312+ %t91 =l loadl %t8+ %t92 =l loadl %t67+ %t94 =l add %t92, 8+ %t93 =l loadl %t94+ %t95 =l copy %t93+ %t96 =w call $buf__Buf__put_varint(l %t91, l %t95)+ dbgloc 313+ %t97 =l loadl %t8+ %t98 =l loadl %t67+ %t99 =w call $buf__Buf__put_bytes(l %t97, l %t98)+ dbgloc 314+ %t101 =l add %t57, 8+ %t100 =l loadl %t101+ %t102 =l copy 0+ %t103 =w csgtl %t100, %t102+ jnz %t103, @lbl3310, @lbl3311+@lbl3310+ dbgloc 315+ %t104 =l loadl %t57+ %t105 =l copy %t104+ storel %t105, %t106+ call $__sx_dbg_keep(l %t106)+ dbgvar "p", "ref ", %t106, 8, 7, 315+ dbgloc 316+ %t108 =l loadl %t106+ call $free(l %t108)+ %t107 =l copy 0+ jmp @lbl3311+@lbl3311+ dbgloc 318+ %t110 =l call $sxqbe_list_ensure(l %t4)+ %t111 =l loadub %t27+ %t112 =l add %t27, 1+ %t114 =l add %t112, 8+ %t113 =l loadl %t114+ %t115 =l copy %t113+ %t116 =l call $records__record_meta(l %t33, l %t53, w %t111, l %t115)+ %t117 =l add %t110, 8+ %t118 =l add %t110, 16+ %t119 =l loadl %t117+ %t120 =l loadl %t118+ %t122 =l add %t119, 1+ %t121 =w call $sxqbe_list_grow(l %t110, l %t122)+ %t123 =l call $sxqbe_list_buf(l %t110)+ %t124 =l mul %t119, 8+ %t125 =l add %t123, %t124+ storel %t116, %t125+ %t126 =l add %t119, 1+ storel %t126, %t117+ %t109 =l copy 0+@lbl3300+ %t127 =l add %t22, 1+ storel %t127, %t20+ jmp @lbl3297+@lbl3299+ dbgloc 321+ %t130 =l loadl %t8+ %t131 =l loadl %t130+ %t132 =l copy 8+ %t129 =l add %t131, %t132+ %t134 =l loadl %t4+ %t135 =l call $sxqbe_list_len(l %t134)+ %t136 =l copy %t135+ storel %t136, %t129+ %t128 =l copy 0+ dbgloc 322+ %t138 =l copy 32+ %t137 =l call $malloc(l %t138)+ %t139 =l copy %t137+ storel %t139, %t140+ call $__sx_dbg_keep(l %t140)+ dbgvar "digest", "ref u8", %t140, 8, 7, 322+ dbgloc 323+ %t141 =l loadl %t8+ %t142 =l loadl %t141+ %t143 =l loadl %t8+ %t145 =l add %t143, 8+ %t144 =l loadl %t145+ %t146 =w call $b3__hash(l %t142, l %t144, l %t139)+ dbgloc 324+ %t147 =l loadl %t8+ %t148 =l copy 32+ %t149 =w call $buf__Buf__put_raw(l %t147, l %t139, l %t148)+ dbgloc 325+ %t151 =l copy %t139+ call $free(l %t151)+ %t150 =l copy 0+ dbgloc 327+ %t152 =l loadl %t8+ %t153 =l call $buf__Buf__view(l %t152)+ %t154 =l call $bytes__Bytes__dup(l %t153)+ storel %t154, %t155+ call $__sx_dbg_keep(l %t155)+ dbgvar "pack_bytes", "bytes.Bytes", %t155, 8, 5, 327+ dbgloc 328+ %t157 =l add %t154, 8+ %t156 =l loadl %t157+ %t158 =l copy 32+ %t159 =l sub %t156, %t158+ %t161 =l add %t154, 8+ %t160 =l loadl %t161+ %t162 =l call $bytes__Bytes__slice(l %t154, l %t159, l %t160)+ storel %t162, %t163+ call $__sx_dbg_keep(l %t163)+ dbgvar "pack_trailer", "bytes.Bytes", %t163, 8, 5, 328+ dbgloc 333+ %t164 =l loadl %t4+ %t165 =w call $records__sort_by_id(l %t164)+ dbgloc 334+ %t166 =l loadl %t4+ %t167 =l call $index__encode(l %t166, l %t162)+ storel %t167, %t168+ call $__sx_dbg_keep(l %t168)+ dbgvar "index_bytes", "bytes.Bytes", %t168, 8, 5, 334+ dbgloc 336+ %t170 =l copy 65+ %t169 =l call $malloc(l %t170)+ %t171 =l copy %t169+ storel %t171, %t172+ call $__sx_dbg_keep(l %t172)+ dbgvar "name_hex", "ref u8", %t172, 8, 7, 336+ dbgloc 337+ %t173 =l loadl %t162+ %t174 =l copy 32+ %t175 =w call $objid__hex_encode(l %t173, l %t174, l %t171)+ dbgloc 338+ %t178 =l copy 64+ %t177 =l add %t171, %t178+ %t179 =l copy 0+ storeb %t179, %t177+ %t176 =l copy 0+ dbgloc 339+ %t180 =l copy 64+ %t181 =l call $bytes__bytes(l %t171, l %t180)+ storel %t181, %t182+ call $__sx_dbg_keep(l %t182)+ dbgvar "name", "bytes.Bytes", %t182, 8, 5, 339+ dbgloc 341+ %t184 =l loadl %t4+ %t185 =l call $sxqbe_list_len(l %t184)+ storel %t185, %t186+ call $__sx_dbg_keep(l %t186)+ dbgvar "n", "usize", %t186, 8, 5, 341+ dbgloc 342+ %t187 =l loadl %t8+ %t188 =w call $buf__Buf__free(l %t187)+ dbgloc 343+ %t189 =l loadl %t4+ storel 0, %t190+ %t191 =l call $sxqbe_list_len(l %t189)+@lbl3313+ %t192 =l loadl %t190+ %t193 =w csltl %t192, %t191+ jnz %t193, @lbl3314, @lbl3315+@lbl3314+ %t194 =l call $sxqbe_list_buf(l %t189)+ %t195 =l mul %t192, 8+ %t196 =l add %t194, %t195+ %t197 =l loadl %t196+ dbgloc 344+ %t198 =l copy %t197+ storel %t198, %t199+ call $__sx_dbg_keep(l %t199)+ dbgvar "p", "ref ", %t199, 8, 7, 344+ dbgloc 345+ %t201 =l loadl %t199+ call $free(l %t201)+ %t200 =l copy 0+@lbl3316+ %t202 =l add %t192, 1+ storel %t202, %t190+ jmp @lbl3313+@lbl3315+ dbgloc 347+ %t204 =l loadl %t4+ call $sxqbe_list_free(l %t204)+ %t203 =l copy 0+ dbgloc 348+ %t205 =l loadl %t2+ storel 0, %t206+ %t207 =l call $sxqbe_list_len(l %t205)+@lbl3317+ %t208 =l loadl %t206+ %t209 =w csltl %t208, %t207+ jnz %t209, @lbl3318, @lbl3319+@lbl3318+ %t210 =l call $sxqbe_list_buf(l %t205)+ %t211 =l mul %t208, 8+ %t212 =l add %t210, %t211+ %t213 =l loadl %t212+ dbgloc 349+ %t214 =w call $pack__free_id(l %t213)+@lbl3320+ %t215 =l add %t208, 1+ storel %t215, %t206+ jmp @lbl3317+@lbl3319+ dbgloc 351+ %t217 =l loadl %t2+ call $sxqbe_list_free(l %t217)+ %t216 =l copy 0+ dbgloc 353+ %t219 =l add %t218, 0+ call $memcpy(l %t219, l %t154, l 16)+ %t220 =l add %t218, 16+ call $memcpy(l %t220, l %t167, l 16)+ %t221 =l add %t218, 32+ call $memcpy(l %t221, l %t181, l 16)+ %t222 =l add %t218, 48+ storel %t185, %t222+ %t223 =l call $malloc(l 56)+ call $memcpy(l %t223, l %t218, l 56)+ ret %t223+}++export function w $pack__free_output(l %o) {+@start+ %t0 =l alloc8 8+ %t4 =l alloc8 8+ %t10 =l alloc8 8+ %t16 =l alloc8 8+ dbgloc 356+ storel %o, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "o", "PackOutput", %t0, 8, 5, 356+ dbgloc 357+ %t1 =l add %o, 0+ %t2 =l loadl %t1+ %t3 =l copy %t2+ storel %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "a", "ref ", %t4, 8, 7, 357+ dbgloc 358+ %t6 =l loadl %t4+ call $free(l %t6)+ %t5 =l copy 0+ dbgloc 359+ %t7 =l add %o, 16+ %t8 =l loadl %t7+ %t9 =l copy %t8+ storel %t9, %t10+ call $__sx_dbg_keep(l %t10)+ dbgvar "b", "ref ", %t10, 8, 7, 359+ dbgloc 360+ %t12 =l loadl %t10+ call $free(l %t12)+ %t11 =l copy 0+ dbgloc 361+ %t13 =l add %o, 32+ %t14 =l loadl %t13+ %t15 =l copy %t14+ storel %t15, %t16+ call $__sx_dbg_keep(l %t16)+ dbgvar "c", "ref ", %t16, 8, 7, 361+ dbgloc 362+ %t18 =l loadl %t16+ call $free(l %t18)+ %t17 =l copy 0+ ret 0+}++dbgfile "src/io/native.sx"+data $native__O_WRONLY = { l 1 }+data $native__O_RDWR = { l 2 }+data $native__O_CREAT = { l 64 }+data $native__O_TRUNC = { l 512 }+data $native__OPEN_FLAGS = { l 577 }+data $native__MODE = { l 420 }+function l $native__heap() {+@start+ %t0 =l alloc8 8+ dbgloc 27+ dbgloc 28+ call $memset(l %t0, w 0, l 8)+ ret %t0+}++function l $native__zstr(l %p) {+@start+ %t0 =l alloc8 8+ dbgloc 31+ storel %p, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "p", "str.StringView", %t0, 8, 5, 31+ dbgloc 32+ %t1 =l call $native__heap()+ %t2 =l call $std__str__zstr_from__GENMONO__allocators__HeapAllocator(l %t1, l %p)++ ret %t2+}++function w $native__free_z(l %z) {+@start+ %t0 =l alloc8 8+ dbgloc 35+ storel %z, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "z", "str.ZString", %t0, 8, 5, 35+ dbgloc 36+ %t1 =l call $native__heap()+ %t2 =w call $std__str__zstr_free__GENMONO__allocators__HeapAllocator(l %t1, l %z)++ ret 0+}++function w $native__write_all_fd(w %fd, l %data) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t3 =l alloc8 8+ %t13 =l alloc8 8+ %t19 =l alloc8 8+ dbgloc 39+ storew %fd, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "fd", "i32", %t0, 4, 5, 39+ storel %data, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "data", "bytes.Bytes", %t1, 8, 5, 39+ dbgloc 40+ %t2 =l copy 0+ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "off", "usize", %t3, 8, 5, 40+ dbgloc 41+ jmp @lbl3321+@lbl3321+ %t4 =l loadl %t3+ %t6 =l add %data, 8+ %t5 =l loadl %t6+ %t7 =w csltl %t4, %t5+ jnz %t7, @lbl3322, @lbl3324+@lbl3322+ dbgloc 42+ %t9 =l loadl %data+ %t10 =l loadl %t3+ %t11 =l copy %t10+ %t8 =l add %t9, %t11+ %t12 =l copy %t8+ storel %t12, %t13+ call $__sx_dbg_keep(l %t13)+ dbgvar "p", "ref ", %t13, 8, 7, 42+ dbgloc 43+ %t15 =l add %data, 8+ %t14 =l loadl %t15+ %t16 =l loadl %t3+ %t17 =l sub %t14, %t16+ %t18 =l call $write(w %fd, l %t12, l %t17)+ storel %t18, %t19+ call $__sx_dbg_keep(l %t19)+ dbgvar "n", "i64", %t19, 8, 5, 43+ dbgloc 44+ %t20 =l copy 0+ %t21 =w cslel %t18, %t20+ jnz %t21, @lbl3325, @lbl3326+@lbl3325+ dbgloc 45+ %t22 =l copy 0+ ret %t22+@lbl3326+ dbgloc 47+ %t23 =l loadl %t3+ %t24 =l copy %t18+ %t25 =l add %t23, %t24+ storel %t25, %t3+ jmp @lbl3323+@lbl3323+ jmp @lbl3321+@lbl3324+ dbgloc 49+ %t26 =l copy 1+ ret %t26+}++export function w $native__write_fd_all(w %fd, l %data) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 53+ storew %fd, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "fd", "i32", %t0, 4, 5, 53+ storel %data, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "data", "bytes.Bytes", %t1, 8, 5, 53+ dbgloc 54+ %t2 =w call $native__write_all_fd(w %fd, l %data)+ ret %t2+}++export function w $native__open_rw(l %path) {+@start+ %t0 =l alloc8 8+ %t2 =l alloc8 8+ %t19 =l alloc8 8+ dbgloc 58+ storel %path, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "path", "str.StringView", %t0, 8, 5, 58+ dbgloc 59+ %t1 =l call $native__zstr(l %path)+ storel %t1, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "z", "str.ZString", %t2, 8, 5, 59+ dbgloc 60+ %t3 =l loadl %t1+ %t4 =l copy 0+ %t5 =w ceql %t3, %t4+ jnz %t5, @lbl3328, @lbl3329+@lbl3328+ dbgloc 61+ %t6 =l copy 1+ %t7 =l neg %t6+ %t8 =w copy %t7+ ret %t8+@lbl3329+ dbgloc 63+ %t9 =l loadl %t1+ %t10 =l copy 2+ %t11 =l copy 64+ %t12 =l or %t10, %t11+ %t13 =l copy 512+ %t14 =l or %t12, %t13+ %t15 =l copy 420+ %t17 =w copy %t14+ %t16 =w call $open(l %t9, w %t17, ..., l %t15)+ %t18 =w copy %t16+ storew %t18, %t19+ call $__sx_dbg_keep(l %t19)+ dbgvar "fd", "i32", %t19, 4, 5, 63+ dbgloc 64+ %t20 =w call $native__free_z(l %t1)+ dbgloc 65+ ret %t18+}++export function w $native__pwrite_fd_all(w %fd, l %offset, l %data) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t4 =l alloc8 8+ %t14 =l alloc8 8+ %t23 =l alloc8 8+ dbgloc 69+ storew %fd, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "fd", "i32", %t0, 4, 5, 69+ storel %offset, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "offset", "i64", %t1, 8, 5, 69+ storel %data, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "data", "bytes.Bytes", %t2, 8, 5, 69+ dbgloc 70+ %t3 =l copy 0+ storel %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "done", "usize", %t4, 8, 5, 70+ dbgloc 71+ jmp @lbl3331+@lbl3331+ %t5 =l loadl %t4+ %t7 =l add %data, 8+ %t6 =l loadl %t7+ %t8 =w csltl %t5, %t6+ jnz %t8, @lbl3332, @lbl3334+@lbl3332+ dbgloc 72+ %t10 =l loadl %data+ %t11 =l loadl %t4+ %t12 =l copy %t11+ %t9 =l add %t10, %t12+ %t13 =l copy %t9+ storel %t13, %t14+ call $__sx_dbg_keep(l %t14)+ dbgvar "p", "ref ", %t14, 8, 7, 72+ dbgloc 73+ %t16 =l add %data, 8+ %t15 =l loadl %t16+ %t17 =l loadl %t4+ %t18 =l sub %t15, %t17+ %t19 =l loadl %t4+ %t20 =l copy %t19+ %t21 =l add %offset, %t20+ %t22 =l call $pwrite(w %fd, l %t13, l %t18, l %t21)+ storel %t22, %t23+ call $__sx_dbg_keep(l %t23)+ dbgvar "n", "i64", %t23, 8, 5, 73+ dbgloc 74+ %t24 =l copy 0+ %t25 =w cslel %t22, %t24+ jnz %t25, @lbl3335, @lbl3336+@lbl3335+ dbgloc 75+ %t26 =l copy 0+ ret %t26+@lbl3336+ dbgloc 77+ %t27 =l loadl %t4+ %t28 =l copy %t22+ %t29 =l add %t27, %t28+ storel %t29, %t4+ jmp @lbl3333+@lbl3333+ jmp @lbl3331+@lbl3334+ dbgloc 79+ %t30 =l copy 1+ ret %t30+}++export function l $native__read_fd(w %fd, l %buf, l %n) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ dbgloc 83+ storew %fd, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "fd", "i32", %t0, 4, 5, 83+ storel %buf, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "buf", "ref u8", %t1, 8, 7, 83+ storel %n, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "n", "usize", %t2, 8, 5, 83+ dbgloc 84+ %t3 =l copy %buf+ %t4 =l call $read(w %fd, l %t3, l %n)+ ret %t4+}++export function w $native__seek_set(w %fd, l %offset) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 87+ storew %fd, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "fd", "i32", %t0, 4, 5, 87+ storel %offset, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "offset", "i64", %t1, 8, 5, 87+ dbgloc 88+ %t2 =l copy 0+ %t4 =w copy %t2+ %t3 =l call $lseek(w %fd, l %offset, w %t4)+ %t5 =w ceql %t3, %offset+ ret %t5+}++export function w $native__fsync_fd(w %fd) {+@start+ %t0 =l alloc8 8+ dbgloc 91+ storew %fd, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "fd", "i32", %t0, 4, 5, 91+ dbgloc 92+ %t1 =w call $fsync(w %fd)+ %t2 =w copy 0+ %t3 =w ceqw %t1, %t2+ ret %t3+}++export function w $native__close_fd(w %fd) {+@start+ %t0 =l alloc8 8+ dbgloc 95+ storew %fd, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "fd", "i32", %t0, 4, 5, 95+ dbgloc 96+ %t1 =w call $close(w %fd)+ ret 0+}++export function w $native__rename_file(l %oldp, l %newp) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t3 =l alloc8 8+ %t5 =l alloc8 8+ %t9 =l alloc4 1+ %t21 =l alloc8 8+ dbgloc 99+ storel %oldp, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "oldp", "str.StringView", %t0, 8, 5, 99+ storel %newp, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "newp", "str.StringView", %t1, 8, 5, 99+ dbgloc 100+ %t2 =l call $native__zstr(l %oldp)+ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "oz", "str.ZString", %t3, 8, 5, 100+ dbgloc 101+ %t4 =l call $native__zstr(l %newp)+ storel %t4, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "nz", "str.ZString", %t5, 8, 5, 101+ dbgloc 102+ %t6 =l loadl %t2+ %t7 =l copy 0+ %t8 =w ceql %t6, %t7+ storew %t8, %t9+ jnz %t8, @lbl3342, @lbl3341+@lbl3341+ %t10 =l loadl %t4+ %t11 =l copy 0+ %t12 =w ceql %t10, %t11+ storew %t12, %t9+ jmp @lbl3342+@lbl3342+ %t13 =w loadw %t9+ jnz %t13, @lbl3338, @lbl3339+@lbl3338+ dbgloc 103+ %t14 =w call $native__free_z(l %t2)+ dbgloc 104+ %t15 =w call $native__free_z(l %t4)+ dbgloc 105+ %t16 =l copy 0+ ret %t16+@lbl3339+ dbgloc 107+ %t17 =l loadl %t2+ %t18 =l loadl %t4+ %t19 =w call $rename(l %t17, l %t18)+ %t20 =w copy %t19+ storew %t20, %t21+ call $__sx_dbg_keep(l %t21)+ dbgvar "rc", "i32", %t21, 4, 5, 107+ dbgloc 108+ %t22 =w call $native__free_z(l %t2)+ dbgloc 109+ %t23 =w call $native__free_z(l %t4)+ dbgloc 110+ %t24 =w copy 0+ %t25 =w ceqw %t20, %t24+ ret %t25+}++export function w $native__delete_file(l %path) {+@start+ %t0 =l alloc8 8+ %t2 =l alloc8 8+ %t10 =l alloc8 8+ dbgloc 113+ storel %path, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "path", "str.StringView", %t0, 8, 5, 113+ dbgloc 114+ %t1 =l call $native__zstr(l %path)+ storel %t1, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "z", "str.ZString", %t2, 8, 5, 114+ dbgloc 115+ %t3 =l loadl %t1+ %t4 =l copy 0+ %t5 =w ceql %t3, %t4+ jnz %t5, @lbl3343, @lbl3344+@lbl3343+ dbgloc 116+ %t6 =l copy 0+ ret %t6+@lbl3344+ dbgloc 118+ %t7 =l loadl %t1+ %t8 =w call $unlink(l %t7)+ %t9 =w copy %t8+ storew %t9, %t10+ call $__sx_dbg_keep(l %t10)+ dbgvar "rc", "i32", %t10, 4, 5, 118+ dbgloc 119+ %t11 =w call $native__free_z(l %t1)+ dbgloc 120+ %t12 =w copy 0+ %t13 =w ceqw %t9, %t12+ ret %t13+}++export function w $native__sync_dir_path(l %dir) {+@start+ %t0 =l alloc8 8+ dbgloc 124+ storel %dir, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "dir", "str.StringView", %t0, 8, 5, 124+ dbgloc 125+ %t1 =w call $native__sync_dir(l %dir)+ ret %t1+}++function w $native__sync_dir(l %dir) {+@start+ %t0 =l alloc8 8+ %t2 =l alloc8 8+ %t10 =l alloc8 8+ %t17 =l alloc8 8+ %t23 =l alloc8 8+ dbgloc 128+ storel %dir, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "dir", "str.StringView", %t0, 8, 5, 128+ dbgloc 129+ %t1 =l call $native__zstr(l %dir)+ storel %t1, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "z", "str.ZString", %t2, 8, 5, 129+ dbgloc 130+ %t3 =l loadl %t1+ %t4 =l copy 0+ %t5 =w ceql %t3, %t4+ jnz %t5, @lbl3346, @lbl3347+@lbl3346+ dbgloc 131+ %t6 =l copy 0+ ret %t6+@lbl3347+ dbgloc 133+ %t7 =l copy 0+ %t8 =w copy %t7+ %t9 =w extub %t8+ storew %t9, %t10+ call $__sx_dbg_keep(l %t10)+ dbgvar "success", "bool", %t10, 1, 7, 133+ dbgloc 134+ dbgloc 135+ %t11 =l loadl %t1+ %t12 =l copy 0+ %t13 =l copy 0+ %t15 =w copy %t12+ %t14 =w call $open(l %t11, w %t15, ..., l %t13)+ %t16 =w copy %t14+ storew %t16, %t17+ call $__sx_dbg_keep(l %t17)+ dbgvar "fd", "i32", %t17, 4, 5, 135+ dbgloc 136+ %t18 =w copy 0+ %t20 =w csltw %t16, %t18+ %t19 =w ceqw %t20, 0+ jnz %t19, @lbl3349, @lbl3350+@lbl3349+ dbgloc 137+ %t21 =w call $fsync(w %t16)+ %t22 =w copy %t21+ storew %t22, %t23+ call $__sx_dbg_keep(l %t23)+ dbgvar "r", "i32", %t23, 4, 5, 137+ dbgloc 138+ %t24 =w call $close(w %t16)+ dbgloc 139+ %t25 =w copy 0+ %t26 =w ceqw %t22, %t25+ %t27 =w copy %t26+ %t28 =w extub %t27+ storew %t28, %t10+ jmp @lbl3350+@lbl3350+ dbgloc 142+ %t29 =w call $native__free_z(l %t1)+ dbgloc 143+ %t31 =w loadw %t10+ %t30 =l extsw %t31+ ret %t30+}++export function w $native__write_atomic(l %tmp, l %final, l %tmp_dir, l %final_dir, l %data) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t3 =l alloc8 8+ %t4 =l alloc8 8+ %t6 =l alloc8 8+ %t8 =l alloc8 8+ %t12 =l alloc4 1+ %t23 =l alloc8 8+ %t30 =l alloc8 8+ %t37 =l alloc8 8+ %t40 =l alloc8 8+ %t42 =l alloc4 1+ dbgloc 148+ storel %tmp, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "tmp", "str.StringView", %t0, 8, 5, 148+ storel %final, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "final", "str.StringView", %t1, 8, 5, 148+ storel %tmp_dir, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "tmp_dir", "str.StringView", %t2, 8, 5, 148+ storel %final_dir, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "final_dir", "str.StringView", %t3, 8, 5, 148+ storel %data, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "data", "bytes.Bytes", %t4, 8, 5, 148+ dbgloc 155+ %t5 =l call $native__zstr(l %tmp)+ storel %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "tz", "str.ZString", %t6, 8, 5, 155+ dbgloc 156+ %t7 =l call $native__zstr(l %final)+ storel %t7, %t8+ call $__sx_dbg_keep(l %t8)+ dbgvar "fz", "str.ZString", %t8, 8, 5, 156+ dbgloc 157+ %t9 =l loadl %t5+ %t10 =l copy 0+ %t11 =w ceql %t9, %t10+ storew %t11, %t12+ jnz %t11, @lbl3356, @lbl3355+@lbl3355+ %t13 =l loadl %t7+ %t14 =l copy 0+ %t15 =w ceql %t13, %t14+ storew %t15, %t12+ jmp @lbl3356+@lbl3356+ %t16 =w loadw %t12+ jnz %t16, @lbl3352, @lbl3353+@lbl3352+ dbgloc 158+ %t17 =w call $native__free_z(l %t5)+ dbgloc 159+ %t18 =w call $native__free_z(l %t7)+ dbgloc 160+ %t19 =l copy 0+ ret %t19+@lbl3353+ dbgloc 162+ %t20 =l copy 0+ %t21 =w copy %t20+ %t22 =w extub %t21+ storew %t22, %t23+ call $__sx_dbg_keep(l %t23)+ dbgvar "success", "bool", %t23, 1, 7, 162+ dbgloc 163+ dbgloc 164+ %t24 =l loadl %t5+ %t25 =l copy 577+ %t26 =l copy 420+ %t28 =w copy %t25+ %t27 =w call $open(l %t24, w %t28, ..., l %t26)+ %t29 =w copy %t27+ storew %t29, %t30+ call $__sx_dbg_keep(l %t30)+ dbgvar "fd", "i32", %t30, 4, 5, 164+ dbgloc 165+ %t31 =w copy 0+ %t33 =w csltw %t29, %t31+ %t32 =w ceqw %t33, 0+ jnz %t32, @lbl3357, @lbl3358+@lbl3357+ dbgloc 166+ %t34 =w call $native__write_all_fd(w %t29, l %data)+ %t35 =w copy %t34+ %t36 =w extub %t35+ storew %t36, %t37+ call $__sx_dbg_keep(l %t37)+ dbgvar "wrote", "bool", %t37, 1, 7, 166+ dbgloc 167+ %t38 =w call $fsync(w %t29)+ %t39 =w copy %t38+ storew %t39, %t40+ call $__sx_dbg_keep(l %t40)+ dbgvar "synced", "i32", %t40, 4, 5, 167+ dbgloc 168+ %t41 =w call $close(w %t29)+ dbgloc 169+ storew %t36, %t42+ jnz %t36, @lbl3363, @lbl3364+@lbl3363+ %t43 =w copy 0+ %t44 =w ceqw %t39, %t43+ storew %t44, %t42+ jmp @lbl3364+@lbl3364+ %t45 =w loadw %t42+ jnz %t45, @lbl3360, @lbl3361+@lbl3360+ dbgloc 170+ %t46 =l loadl %t5+ %t47 =l loadl %t7+ %t48 =w call $rename(l %t46, l %t47)+ %t49 =w copy 0+ %t50 =w ceqw %t48, %t49+ jnz %t50, @lbl3365, @lbl3366+@lbl3365+ dbgloc 171+ %t51 =l copy 1+ %t52 =w copy %t51+ %t53 =w extub %t52+ storew %t53, %t23+ jmp @lbl3366+@lbl3366+ jmp @lbl3361+@lbl3361+ jmp @lbl3358+@lbl3358+ dbgloc 176+ %t54 =w call $native__free_z(l %t5)+ dbgloc 177+ %t55 =w call $native__free_z(l %t7)+ dbgloc 178+ %t57 =w loadw %t23+ %t56 =l extsw %t57+ %t58 =w ceqw %t56, 0+ jnz %t58, @lbl3368, @lbl3369+@lbl3368+ dbgloc 179+ %t59 =l copy 0+ ret %t59+@lbl3369+ dbgloc 181+ %t60 =w call $native__sync_dir(l %tmp_dir)+ %t61 =w ceqw %t60, 0+ jnz %t61, @lbl3371, @lbl3372+@lbl3371+ dbgloc 182+ %t62 =l copy 0+ ret %t62+@lbl3372+ dbgloc 184+ %t63 =w call $native__sync_dir(l %final_dir)+ ret %t63+}++dbgfile "src/io/stat.sx"+data $stat__KIND_MISSING = { l 0 }+data $stat__KIND_FILE = { l 1 }+data $stat__KIND_DIR = { l 2 }+data $stat__KIND_LINK = { l 3 }+function l $stat__heap() {+@start+ %t0 =l alloc8 8+ dbgloc 27+ dbgloc 28+ call $memset(l %t0, w 0, l 8)+ ret %t0+}++function l $stat__zstr(l %p) {+@start+ %t0 =l alloc8 8+ dbgloc 31+ storel %p, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "p", "str.StringView", %t0, 8, 5, 31+ dbgloc 32+ %t1 =l call $stat__heap()+ %t2 =l call $std__str__zstr_from__GENMONO__allocators__HeapAllocator(l %t1, l %p)++ ret %t2+}++function w $stat__free_z(l %z) {+@start+ %t0 =l alloc8 8+ dbgloc 35+ storel %z, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "z", "str.ZString", %t0, 8, 5, 35+ dbgloc 36+ %t1 =l call $stat__heap()+ %t2 =w call $std__str__zstr_free__GENMONO__allocators__HeapAllocator(l %t1, l %z)++ ret 0+}++function w $stat__kind_from_mode(w %mode) {+@start+ %t0 =l alloc8 8+ %t7 =l alloc8 8+ dbgloc 39+ storew %mode, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "mode", "u32", %t0, 4, 7, 39+ dbgloc 40+ %t1 =l extsw %mode+ %t2 =l copy 61440+ %t4 =l extsw %t1+ %t3 =l and %t4, %t2+ %t5 =w copy %t3+ %t6 =w copy %t5+ storew %t6, %t7+ call $__sx_dbg_keep(l %t7)+ dbgvar "masked", "u32", %t7, 4, 7, 40+ dbgloc 41+ %t8 =w copy 16384+ %t9 =w ceqw %t6, %t8+ jnz %t9, @lbl3374, @lbl3375+@lbl3374+ dbgloc 42+ %t10 =l copy 2+ %t11 =w copy %t10+ ret %t11+@lbl3375+ dbgloc 44+ %t12 =w copy 32768+ %t13 =w ceqw %t6, %t12+ jnz %t13, @lbl3377, @lbl3378+@lbl3377+ dbgloc 45+ %t14 =l copy 1+ %t15 =w copy %t14+ ret %t15+@lbl3378+ dbgloc 47+ %t16 =w copy 40960+ %t17 =w ceqw %t6, %t16+ jnz %t17, @lbl3380, @lbl3381+@lbl3380+ dbgloc 48+ %t18 =l copy 3+ %t19 =w copy %t18+ ret %t19+@lbl3381+ dbgloc 50+ %t20 =l copy 0+ %t21 =w copy %t20+ ret %t21+}++export function l $stat__read(l %__ret, l %path) {+@start+ %t0 =l alloc8 8+ %t2 =l alloc8 8+ %t6 =l alloc8 16+ %t10 =l alloc8 8+ %t19 =l alloc8 8+ %t25 =l alloc8 16+ %t26 =l alloc8 29+ %t38 =l alloc8 8+ %t45 =l alloc8 8+ %t75 =l alloc8 8+ %t81 =l alloc8 8+ %t90 =l alloc8 16+ dbgloc 53+ storel %path, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "path", "str.StringView", %t0, 8, 5, 53+ dbgloc 54+ %t1 =l call $stat__zstr(l %path)+ storel %t1, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "z", "str.ZString", %t2, 8, 5, 54+ dbgloc 55+ %t3 =l loadl %t1+ %t4 =l copy 0+ %t5 =w ceql %t3, %t4+ jnz %t5, @lbl3383, @lbl3384+@lbl3383+ dbgloc 56+ storel 0, %t6+ call $memcpy(l %__ret, l %t6, l 16)+ ret %__ret+@lbl3384+ dbgloc 58+ %t8 =l copy 320+ %t7 =l call $malloc(l %t8)+ %t9 =l copy %t7+ storel %t9, %t10+ call $__sx_dbg_keep(l %t10)+ dbgvar "buf", "ref u8", %t10, 8, 7, 58+ dbgloc 59+ %t12 =l copy %t9+ %t13 =l copy 0+ %t14 =l copy 320+ call $memset(l %t12, w %t13, l %t14)+ %t11 =l copy 0+ dbgloc 60+ %t15 =l loadl %t1+ %t16 =l copy %t9+ %t17 =w call $lstat(l %t15, l %t16)+ %t18 =w copy %t17+ storew %t18, %t19+ call $__sx_dbg_keep(l %t19)+ dbgvar "rc", "i32", %t19, 4, 5, 60+ dbgloc 61+ %t20 =w call $stat__free_z(l %t1)+ dbgloc 62+ %t21 =w copy 0+ %t22 =w cnew %t18, %t21+ jnz %t22, @lbl3386, @lbl3387+@lbl3386+ dbgloc 63+ %t24 =l copy %t9+ call $free(l %t24)+ %t23 =l copy 0+ dbgloc 64+ storel 0, %t25+ call $memcpy(l %__ret, l %t25, l 16)+ ret %__ret+@lbl3387+ dbgloc 66+ %t27 =l copy 0+ storeb %t27, %t26+ %t29 =l copy 0+ %t30 =l add %t26, 1+ storew %t29, %t30+ %t31 =l copy 0+ %t32 =l add %t26, 5+ storel %t31, %t32+ %t33 =l copy 0+ %t34 =l add %t26, 13+ storel %t33, %t34+ %t35 =l copy 0+ %t36 =l add %t26, 21+ storel %t35, %t36+ %t37 =l call $malloc(l 29)+ call $memset(l %t37, w 0, l 29)+ call $memcpy(l %t37, l %t26, l 29)+ storel %t37, %t38+ call $__sx_dbg_keep(l %t38)+ dbgvar "info", "StatInfo", %t38, 8, 5, 66+ dbgloc 73+ dbgloc 74+ %t41 =l copy 24+ %t40 =l add %t9, %t41+ %t42 =l copy %t40+ %t43 =w loadsw %t42+ %t39 =l extsw %t43+ %t44 =w copy %t39+ storew %t44, %t45+ call $__sx_dbg_keep(l %t45)+ dbgvar "mode", "u32", %t45, 4, 7, 74+ dbgloc 75+ %t46 =w call $stat__kind_from_mode(w %t44)+ %t47 =l loadl %t38+ storeb %t46, %t47+ dbgloc 76+ %t48 =l extsw %t44+ %t49 =l copy 73+ %t51 =l extsw %t48+ %t50 =l and %t51, %t49+ %t52 =l copy 0+ %t53 =w cnel %t50, %t52+ %t54 =l loadl %t38+ %t55 =l add %t54, 1+ storew %t53, %t55+ dbgloc 77+ %t58 =l copy 8+ %t57 =l add %t9, %t58+ %t59 =l copy %t57+ %t56 =l loadl %t59+ %t60 =l copy %t56+ %t61 =l loadl %t38+ %t62 =l add %t61, 21+ storel %t60, %t62+ dbgloc 78+ %t65 =l copy 48+ %t64 =l add %t9, %t65+ %t66 =l copy %t64+ %t63 =l loadl %t66+ %t67 =l copy %t63+ %t68 =l loadl %t38+ %t69 =l add %t68, 5+ storel %t67, %t69+ dbgloc 79+ %t72 =l copy 88+ %t71 =l add %t9, %t72+ %t73 =l copy %t71+ %t70 =l loadl %t73+ %t74 =l copy %t70+ storel %t74, %t75+ call $__sx_dbg_keep(l %t75)+ dbgvar "sec", "u64", %t75, 8, 7, 79+ dbgloc 80+ %t78 =l copy 96+ %t77 =l add %t9, %t78+ %t79 =l copy %t77+ %t76 =l loadl %t79+ %t80 =l copy %t76+ storel %t80, %t81+ call $__sx_dbg_keep(l %t81)+ dbgvar "nsec", "u64", %t81, 8, 7, 80+ dbgloc 81+ %t82 =l copy 1000000000+ %t83 =l mul %t74, %t82+ %t84 =l add %t83, %t80+ %t85 =l loadl %t38+ %t86 =l add %t85, 13+ storel %t84, %t86+ dbgloc 101+ %t88 =l copy %t9+ call $free(l %t88)+ %t87 =l copy 0+ dbgloc 102+ %t89 =l loadl %t38+ call $memset(l %t90, w 0, l 16)+ storel 1, %t90+ %t91 =l add %t90, 8+ storel %t89, %t91+ call $memcpy(l %__ret, l %t90, l 16)+ ret %__ret+}++export function l $stat__link_target(l %__ret, l %path) {+@start+ %t0 =l alloc8 8+ %t2 =l alloc8 8+ %t6 =l alloc8 16+ %t8 =l alloc8 8+ %t11 =l alloc8 8+ %t16 =l alloc8 8+ %t22 =l alloc8 16+ %t25 =l alloc8 16+ dbgloc 106+ storel %path, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "path", "str.StringView", %t0, 8, 5, 106+ dbgloc 107+ %t1 =l call $stat__zstr(l %path)+ storel %t1, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "z", "str.ZString", %t2, 8, 5, 107+ dbgloc 108+ %t3 =l loadl %t1+ %t4 =l copy 0+ %t5 =w ceql %t3, %t4+ jnz %t5, @lbl3389, @lbl3390+@lbl3389+ dbgloc 109+ storel 0, %t6+ call $memcpy(l %__ret, l %t6, l 16)+ ret %__ret+@lbl3390+ dbgloc 111+ %t7 =l copy 65537+ storel %t7, %t8+ call $__sx_dbg_keep(l %t8)+ dbgvar "cap", "usize", %t8, 8, 5, 111+ dbgloc 112+ %t9 =l call $malloc(l %t7)+ %t10 =l copy %t9+ storel %t10, %t11+ call $__sx_dbg_keep(l %t11)+ dbgvar "buf", "ref u8", %t11, 8, 7, 112+ dbgloc 113+ %t12 =l loadl %t1+ %t13 =l copy 1+ %t14 =l sub %t7, %t13+ %t15 =l call $readlink(l %t12, l %t10, l %t14)+ storel %t15, %t16+ call $__sx_dbg_keep(l %t16)+ dbgvar "n", "i64", %t16, 8, 5, 113+ dbgloc 114+ %t17 =w call $stat__free_z(l %t1)+ dbgloc 115+ %t18 =l copy 0+ %t19 =w csltl %t15, %t18+ jnz %t19, @lbl3392, @lbl3393+@lbl3392+ dbgloc 116+ %t21 =l copy %t10+ call $free(l %t21)+ %t20 =l copy 0+ dbgloc 117+ storel 0, %t22+ call $memcpy(l %__ret, l %t22, l 16)+ ret %__ret+@lbl3393+ dbgloc 119+ %t23 =l copy %t15+ %t24 =l call $bytes__bytes(l %t10, l %t23)+ call $memset(l %t25, w 0, l 16)+ storel 1, %t25+ %t26 =l add %t25, 8+ storel %t24, %t26+ call $memcpy(l %__ret, l %t25, l 16)+ ret %__ret+}++dbgfile "src/store/store.sx"+export function l $store__new_store() {+@start+ %t0 =l alloc8 8+ dbgloc 33+ dbgloc 34+ %t1 =l call $lists__new__GENMONO__ref_Handle()++ storel %t1, %t0+ %t3 =l call $malloc(l 8)+ call $memcpy(l %t3, l %t0, l 8)+ ret %t3+}++export function w $store__add_handle(l %handles, l %path, l %p, l %idx) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t3 =l alloc8 8+ %t7 =l alloc8 8+ dbgloc 37+ storel %handles, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "handles", "list[ref Handle]", %t0, 8, 5, 37+ storel %path, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "path", "str.StringView", %t1, 8, 5, 37+ storel %p, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "p", "ref pack.Pack", %t2, 8, 7, 37+ storel %idx, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "idx", "ref index.Index", %t3, 8, 7, 37+ dbgloc 43+ %t5 =l copy 40+ %t4 =l call $malloc(l %t5)+ %t6 =l copy %t4+ storel %t6, %t7+ call $__sx_dbg_keep(l %t7)+ dbgvar "h", "ref Handle", %t7, 8, 7, 43+ dbgloc 44+ %t8 =l loadl %t7+ call $memcpy(l %t8, l %path, l 16)+ dbgloc 45+ %t9 =l loadl %t7+ %t10 =l add %t9, 16+ storel %p, %t10+ dbgloc 46+ %t11 =l loadl %t7+ %t12 =l add %t11, 24+ storel %idx, %t12+ dbgloc 47+ %t13 =l copy 0+ %t14 =l loadl %t7+ %t15 =l add %t14, 32+ storel %t13, %t15+ dbgloc 48+ %t17 =l call $sxqbe_list_ensure(l %t0)+ %t18 =l loadl %t7+ %t19 =l add %t17, 8+ %t20 =l add %t17, 16+ %t21 =l loadl %t19+ %t22 =l loadl %t20+ %t24 =l add %t21, 1+ %t23 =w call $sxqbe_list_grow(l %t17, l %t24)+ %t25 =l call $sxqbe_list_buf(l %t17)+ %t26 =l mul %t21, 8+ %t27 =l add %t25, %t26+ storel %t18, %t27+ %t28 =l add %t21, 1+ storel %t28, %t19+ %t16 =l copy 0+ ret 0+}++export function w $store__add(l %store, l %path, l %p, l %idx) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t3 =l alloc8 8+ dbgloc 51+ storel %store, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "store", "Store", %t0, 8, 5, 51+ storel %path, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "path", "str.StringView", %t1, 8, 5, 51+ storel %p, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "p", "ref pack.Pack", %t2, 8, 7, 51+ storel %idx, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "idx", "ref index.Index", %t3, 8, 7, 51+ dbgloc 52+ %t4 =l loadl %t0+ %t5 =l loadl %t4+ %t6 =w call $store__add_handle(l %t5, l %path, l %p, l %idx)+ ret 0+}++export function w $store__close_handles(l %handles) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t26 =l alloc8 8+ dbgloc 55+ storel %handles, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "handles", "list[ref Handle]", %t0, 8, 5, 55+ dbgloc 56+ storel 0, %t1+ %t2 =l call $sxqbe_list_len(l %handles)+@lbl3395+ %t3 =l loadl %t1+ %t4 =w csltl %t3, %t2+ jnz %t4, @lbl3396, @lbl3397+@lbl3396+ %t5 =l call $sxqbe_list_buf(l %handles)+ %t6 =l mul %t3, 8+ %t7 =l add %t5, %t6+ %t8 =l loadl %t7+ dbgloc 57+ %t10 =l add %t8, 16+ %t9 =l loadl %t10+ %t11 =l copy 0+ %t12 =w cnel %t9, %t11+ jnz %t12, @lbl3399, @lbl3400+@lbl3399+ dbgloc 58+ %t14 =l add %t8, 16+ %t13 =l loadl %t14+ %t15 =w call $pack__free_pack(l %t13)+ jmp @lbl3400+@lbl3400+ dbgloc 60+ %t17 =l add %t8, 24+ %t16 =l loadl %t17+ %t18 =l copy 0+ %t19 =w cnel %t16, %t18+ jnz %t19, @lbl3402, @lbl3403+@lbl3402+ dbgloc 61+ %t21 =l add %t8, 24+ %t20 =l loadl %t21+ %t22 =w call $index__free_index(l %t20)+ jmp @lbl3403+@lbl3403+ dbgloc 63+ %t23 =l add %t8, 0+ %t24 =w call $files__free_path(l %t23)+ dbgloc 64+ %t25 =l copy %t8+ storel %t25, %t26+ call $__sx_dbg_keep(l %t26)+ dbgvar "p", "ref ", %t26, 8, 7, 64+ dbgloc 65+ %t28 =l loadl %t26+ call $free(l %t28)+ %t27 =l copy 0+@lbl3398+ %t29 =l add %t3, 1+ storel %t29, %t1+ jmp @lbl3395+@lbl3397+ dbgloc 67+ call $sxqbe_list_free(l %handles)+ %t30 =l copy 0+ ret 0+}++export function w $store__ensure_index(l %h) {+@start+ %t0 =l alloc8 8+ %t24 =l alloc8 8+ %t28 =l alloc8 8+ %t30 =l alloc8 16+ %t31 =l alloc8 8+ %t35 =l alloc8 8+ %t44 =l alloc8 16+ %t45 =l alloc8 8+ %t53 =l alloc8 8+ %t58 =l alloc4 1+ dbgloc 74+ storel %h, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "h", "ref Handle", %t0, 8, 7, 74+ dbgloc 75+ %t1 =l loadl %t0+ %t3 =l add %t1, 24+ %t2 =l loadl %t3+ %t4 =l copy 0+ %t5 =w cnel %t2, %t4+ jnz %t5, @lbl3405, @lbl3406+@lbl3405+ dbgloc 76+ %t6 =l copy 1+ ret %t6+@lbl3406+ dbgloc 78+ %t7 =l loadl %t0+ %t8 =l add %t7, 0+ %t10 =l add %t8, 8+ %t9 =l loadl %t10+ %t11 =l copy 6+ %t12 =w cslel %t9, %t11+ jnz %t12, @lbl3408, @lbl3409+@lbl3408+ dbgloc 79+ %t13 =l copy 0+ ret %t13+@lbl3409+ dbgloc 81+ %t14 =l loadl %t0+ %t15 =l add %t14, 0+ %t16 =l loadl %t15+ %t17 =l loadl %t0+ %t18 =l add %t17, 0+ %t20 =l add %t18, 8+ %t19 =l loadl %t20+ %t21 =l copy 6+ %t22 =l sub %t19, %t21+ %t23 =l call $std__str__view(l %t16, l %t22)+ storel %t23, %t24+ call $__sx_dbg_keep(l %t24)+ dbgvar "base_view", "str.StringView", %t24, 8, 5, 81+ dbgloc 82+ %t25 =l copy $__str225+ %t26 =l call $std__str__from_cstr(l %t25)+ %t27 =l call $files__with_suffix(l %t23, l %t26)+ storel %t27, %t28+ call $__sx_dbg_keep(l %t28)+ dbgvar "iview", "str.StringView", %t28, 8, 5, 82+ dbgloc 83+ %t29 =l call $files__read_all(l %t30, l %t27)+ storel %t30, %t31+ call $__sx_dbg_keep(l %t31)+ dbgvar "idata_opt", "option[bytes.Bytes]", %t31, 8, 5, 83+ dbgloc 84+ %t32 =w call $files__free_path(l %t27)+ dbgloc 85+ %t33 =l call $bytes__empty()+ %t34 =l call $malloc(l 16)+ call $memset(l %t34, w 0, l 16)+ call $memcpy(l %t34, l %t33, l 16)+ storel %t34, %t35+ call $__sx_dbg_keep(l %t35)+ dbgvar "idata", "bytes.Bytes", %t35, 8, 5, 85+ dbgloc 86+ %t36 =l loadl %t30+ %t37 =w cnel %t36, 0+ jnz %t37, @lbl3411, @lbl3412+@lbl3411+ %t39 =l add %t30, 8+ %t38 =l loadl %t39+ dbgloc 88+ storel %t38, %t35+ jmp @lbl3413+@lbl3412+ dbgloc 91+ %t40 =l copy 0+ ret %t40+@lbl3413+ dbgloc 94+ %t41 =l loadl %t35+ %t42 =l call $bytes__empty()+ %t43 =l call $index__decode(l %t44, l %t41, l %t42)+ storel %t44, %t45+ call $__sx_dbg_keep(l %t45)+ dbgvar "decoded", "result[ref Index, derr.DecodeError]", %t45, 8, 5, 94+ dbgloc 95+ %t46 =l loadl %t44+ %t47 =w ceql %t46, 0+ jnz %t47, @lbl3414, @lbl3415+@lbl3414+ %t49 =l add %t44, 8+ %t48 =l loadl %t49+ dbgloc 97+ %t50 =l loadl %t0+ %t51 =l add %t50, 0+ %t52 =l call $files__basename(l %t51)+ storel %t52, %t53+ call $__sx_dbg_keep(l %t53)+ dbgvar "base", "str.StringView", %t53, 8, 5, 97+ dbgloc 98+ %t55 =l add %t52, 8+ %t54 =l loadl %t55+ %t56 =l copy 6+ %t57 =w cslel %t54, %t56+ storew %t57, %t58+ jnz %t57, @lbl3421, @lbl3420+@lbl3420+ %t59 =l loadl %t52+ %t61 =l add %t52, 8+ %t60 =l loadl %t61+ %t62 =l copy 6+ %t63 =l sub %t60, %t62+ %t64 =l call $std__str__view(l %t59, l %t63)+ %t65 =l add %t48, 40+ %t66 =w call $store__pack_name_matches_trailer(l %t64, l %t65)+ %t67 =w ceqw %t66, 0+ storew %t67, %t58+ jmp @lbl3421+@lbl3421+ %t68 =w loadw %t58+ jnz %t68, @lbl3417, @lbl3418+@lbl3417+ dbgloc 102+ %t69 =w call $index__free_index(l %t48)+ dbgloc 103+ %t70 =l copy 0+ ret %t70+@lbl3418+ dbgloc 105+ %t71 =l loadl %t0+ %t72 =l add %t71, 24+ storel %t48, %t72+ dbgloc 106+ %t73 =l copy 1+ ret %t73+@lbl3415+ dbgloc 109+ %t74 =l loadl %t35+ %t75 =w call $files__free_buffer(l %t74)+ dbgloc 110+ %t76 =l copy 0+ ret %t76+@lbl3416+ ret 0+}++export function w $store__ensure_pack(l %h) {+@start+ %t0 =l alloc8 8+ %t14 =l alloc8 16+ %t15 =l alloc8 8+ %t18 =l alloc8 8+ %t26 =l alloc8 16+ %t27 =l alloc8 8+ dbgloc 115+ storel %h, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "h", "ref Handle", %t0, 8, 7, 115+ dbgloc 116+ %t1 =l loadl %t0+ %t3 =l add %t1, 16+ %t2 =l loadl %t3+ %t4 =l copy 0+ %t5 =w cnel %t2, %t4+ jnz %t5, @lbl3422, @lbl3423+@lbl3422+ dbgloc 117+ %t6 =l copy 1+ ret %t6+@lbl3423+ dbgloc 119+ %t7 =l loadl %t0+ %t8 =w call $store__ensure_index(l %t7)+ %t9 =w ceqw %t8, 0+ jnz %t9, @lbl3425, @lbl3426+@lbl3425+ dbgloc 120+ %t10 =l copy 0+ ret %t10+@lbl3426+ dbgloc 122+ %t11 =l loadl %t0+ %t12 =l add %t11, 0+ %t13 =l call $files__read_all(l %t14, l %t12)+ storel %t14, %t15+ call $__sx_dbg_keep(l %t15)+ dbgvar "data_opt", "option[bytes.Bytes]", %t15, 8, 5, 122+ dbgloc 123+ %t16 =l call $bytes__empty()+ %t17 =l call $malloc(l 16)+ call $memset(l %t17, w 0, l 16)+ call $memcpy(l %t17, l %t16, l 16)+ storel %t17, %t18+ call $__sx_dbg_keep(l %t18)+ dbgvar "data", "bytes.Bytes", %t18, 8, 5, 123+ dbgloc 124+ %t19 =l loadl %t14+ %t20 =w cnel %t19, 0+ jnz %t20, @lbl3428, @lbl3429+@lbl3428+ %t22 =l add %t14, 8+ %t21 =l loadl %t22+ dbgloc 126+ storel %t21, %t18+ jmp @lbl3430+@lbl3429+ dbgloc 129+ %t23 =l copy 0+ ret %t23+@lbl3430+ dbgloc 132+ %t24 =l loadl %t18+ %t25 =l call $pack__decode(l %t26, l %t24)+ storel %t26, %t27+ call $__sx_dbg_keep(l %t27)+ dbgvar "decoded", "result[ref Pack, derr.DecodeError]", %t27, 8, 5, 132+ dbgloc 133+ %t28 =l loadl %t26+ %t29 =w ceql %t28, 0+ jnz %t29, @lbl3431, @lbl3432+@lbl3431+ %t31 =l add %t26, 8+ %t30 =l loadl %t31+ dbgloc 135+ %t32 =l add %t30, 80+ %t33 =l loadl %t0+ %t35 =l add %t33, 24+ %t34 =l loadl %t35+ %t36 =l add %t34, 40+ %t37 =w call $bytes__Bytes__eql(l %t32, l %t36)+ %t38 =w ceqw %t37, 0+ jnz %t38, @lbl3434, @lbl3435+@lbl3434+ dbgloc 136+ %t39 =w call $pack__free_pack(l %t30)+ dbgloc 137+ %t40 =l copy 0+ ret %t40+@lbl3435+ dbgloc 139+ %t41 =l loadl %t0+ %t42 =l add %t41, 16+ storel %t30, %t42+ dbgloc 140+ %t43 =l copy 1+ ret %t43+@lbl3432+ dbgloc 143+ %t44 =l loadl %t18+ %t45 =w call $files__free_buffer(l %t44)+ dbgloc 144+ %t46 =l copy 0+ ret %t46+@lbl3433+ ret 0+}++export function w $store__close(l %store) {+@start+ %t0 =l alloc8 8+ dbgloc 149+ storel %store, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "store", "Store", %t0, 8, 5, 149+ dbgloc 150+ %t1 =l loadl %store+ %t2 =w call $store__close_handles(l %t1)+ ret 0+}++export function l $store__handle_at(l %store, l %i) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t3 =l alloc8 16+ %t11 =l alloc8 8+ dbgloc 153+ storel %store, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "store", "Store", %t0, 8, 5, 153+ storel %i, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "i", "usize", %t1, 8, 5, 153+ dbgloc 154+ storel 0, %t3+ %t4 =l loadl %store+ %t5 =w call $sxqbe_list_valid(l %t4, l %i)+ jnz %t5, @lbl3437, @lbl3438+@lbl3437+ %t6 =l call $sxqbe_list_buf(l %t4)+ %t7 =l mul %i, 8+ %t8 =l add %t6, %t7+ %t9 =l loadl %t8+ %t10 =l add %t3, 8+ storel %t9, %t10+ storel 1, %t3+ jmp @lbl3439+@lbl3438+ jmp @lbl3439+@lbl3439+ storel %t3, %t11+ call $__sx_dbg_keep(l %t11)+ dbgvar "o", "option[ref Handle]", %t11, 8, 5, 154+ dbgloc 155+ %t12 =l loadl %t3+ %t13 =w cnel %t12, 0+ jnz %t13, @lbl3440, @lbl3441+@lbl3440+ %t15 =l add %t3, 8+ %t14 =l loadl %t15+ dbgloc 156+ ret %t14+@lbl3441+ jmp @lbl3442+@lbl3442+ dbgloc 158+ %t16 =l copy 0+ jnz %t16, @lbl3443, @lbl3444+@lbl3444+ %t17 =l copy $__str226+ call $dprintf(w 2, l %t17)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl3443+ dbgloc 159+ %t18 =l copy 0+ ret %t18+}++export function w $store__find_handles(l %handles, l %id, l %out) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t4 =l alloc8 8+ %t11 =l alloc8 8+ %t21 =l alloc8 16+ %t22 =l alloc8 8+ %t31 =l alloc8 8+ %t41 =l alloc8 16+ %t42 =l alloc8 8+ %t48 =l alloc8 8+ %t49 =l alloc8 8+ %t56 =l alloc8 8+ dbgloc 165+ storel %handles, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "handles", "list[ref Handle]", %t0, 8, 5, 165+ storel %id, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "id", "objid.Id", %t1, 8, 5, 165+ storel %out, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "out", "Loc", %t2, 8, 5, 165+ dbgloc 170+ %t3 =l copy 0+ storel %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "i", "usize", %t4, 8, 5, 170+ dbgloc 171+ jmp @lbl3445+@lbl3445+ %t5 =l loadl %t4+ %t7 =l call $sxqbe_list_len(l %handles)+ %t8 =w csltl %t5, %t7+ jnz %t8, @lbl3446, @lbl3448+@lbl3446+ dbgloc 172+ %t9 =l loadl %t4+ %t10 =l call $store__handle_list_at(l %handles, l %t9)+ storel %t10, %t11+ call $__sx_dbg_keep(l %t11)+ dbgvar "h", "ref Handle", %t11, 8, 7, 172+ dbgloc 173+ %t12 =l loadl %t11+ %t13 =w call $store__ensure_index(l %t12)+ %t14 =w ceqw %t13, 0+ jnz %t14, @lbl3449, @lbl3450+@lbl3449+ dbgloc 174+ %t15 =l loadl %t4+ %t16 =l add %t15, 1+ storel %t16, %t4+ dbgloc 175+ jmp @lbl3447+@lbl3450+ dbgloc 177+ %t17 =l loadl %t11+ %t19 =l add %t17, 24+ %t18 =l loadl %t19+ %t20 =l call $index__Index__find(l %t21, l %t18, l %id)+ storel %t21, %t22+ call $__sx_dbg_keep(l %t22)+ dbgvar "found", "option[usize]", %t22, 8, 5, 177+ dbgloc 178+ %t23 =l loadl %t21+ %t24 =w cnel %t23, 0+ jnz %t24, @lbl3452, @lbl3453+@lbl3452+ %t26 =l add %t21, 8+ %t25 =l loadl %t26+ dbgloc 179+ %t27 =l loadl %t11+ %t29 =l add %t27, 24+ %t28 =l loadl %t29+ %t30 =l call $index__Index__offset_at(l %t28, l %t25)+ storel %t30, %t31+ call $__sx_dbg_keep(l %t31)+ dbgvar "off", "u64", %t31, 8, 7, 179+ dbgloc 180+ %t32 =l loadl %t11+ %t33 =w call $store__ensure_pack(l %t32)+ %t34 =w ceqw %t33, 0+ jnz %t34, @lbl3455, @lbl3456+@lbl3455+ dbgloc 181+ %t35 =l loadl %t4+ %t36 =l add %t35, 1+ storel %t36, %t4+ dbgloc 182+ jmp @lbl3447+@lbl3456+ dbgloc 184+ %t37 =l loadl %t11+ %t39 =l add %t37, 16+ %t38 =l loadl %t39+ %t40 =l call $pack__Pack__find_by_offset(l %t41, l %t38, l %t30)+ storel %t41, %t42+ call $__sx_dbg_keep(l %t42)+ dbgvar "rec", "option[usize]", %t42, 8, 5, 184+ dbgloc 185+ %t43 =l loadl %t41+ %t44 =w cnel %t43, 0+ jnz %t44, @lbl3458, @lbl3459+@lbl3458+ %t46 =l add %t41, 8+ %t45 =l loadl %t46+ dbgloc 186+ %t47 =l loadl %t4+ storel %t47, %t48+ call $__sx_dbg_keep(l %t48)+ dbgvar "pidx", "usize", %t48, 8, 5, 186+ dbgloc 187+ storel %t45, %t49+ call $__sx_dbg_keep(l %t49)+ dbgvar "ridx", "usize", %t49, 8, 5, 187+ dbgloc 188+ %t50 =l loadl %t11+ %t52 =l add %t50, 16+ %t51 =l loadl %t52+ %t53 =w call $pack__Pack__kind_at(l %t51, l %t45)+ %t54 =w copy %t53+ %t55 =w extub %t54+ storew %t55, %t56+ call $__sx_dbg_keep(l %t56)+ dbgvar "kk", "u8", %t56, 1, 7, 188+ dbgloc 189+ %t57 =l loadl %t2+ storel %t47, %t57+ dbgloc 190+ %t58 =l loadl %t2+ %t59 =l add %t58, 8+ storel %t45, %t59+ dbgloc 191+ %t60 =l loadl %t2+ %t61 =l add %t60, 16+ storeb %t55, %t61+ dbgloc 192+ %t62 =l copy 1+ ret %t62+@lbl3459+ jmp @lbl3460+@lbl3460+ jmp @lbl3454+@lbl3453+ jmp @lbl3454+@lbl3454+ dbgloc 195+ %t63 =l loadl %t4+ %t64 =l add %t63, 1+ storel %t64, %t4+ jmp @lbl3447+@lbl3447+ jmp @lbl3445+@lbl3448+ dbgloc 197+ %t65 =l copy 0+ ret %t65+}++export function l $store__lookup_handles(l %__ret, l %handles, l %id) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 17+ %t10 =l alloc8 8+ %t14 =l alloc8 16+ %t16 =l alloc8 16+ dbgloc 201+ storel %handles, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "handles", "list[ref Handle]", %t0, 8, 5, 201+ storel %id, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "id", "objid.Id", %t1, 8, 5, 201+ dbgloc 202+ %t3 =l copy 0+ storel %t3, %t2+ %t5 =l copy 0+ %t6 =l add %t2, 8+ storel %t5, %t6+ %t7 =l copy 0+ %t8 =l add %t2, 16+ storeb %t7, %t8+ %t9 =l call $malloc(l 17)+ call $memset(l %t9, w 0, l 17)+ call $memcpy(l %t9, l %t2, l 17)+ storel %t9, %t10+ call $__sx_dbg_keep(l %t10)+ dbgvar "out", "Loc", %t10, 8, 5, 202+ dbgloc 203+ %t11 =l loadl %t10+ %t12 =w call $store__find_handles(l %handles, l %id, l %t11)+ jnz %t12, @lbl3461, @lbl3462+@lbl3461+ dbgloc 204+ %t13 =l loadl %t10+ call $memset(l %t14, w 0, l 16)+ storel 1, %t14+ %t15 =l add %t14, 8+ storel %t13, %t15+ call $memcpy(l %__ret, l %t14, l 16)+ ret %__ret+@lbl3462+ dbgloc 206+ storel 0, %t16+ call $memcpy(l %__ret, l %t16, l 16)+ ret %__ret+}++export function l $store__lookup(l %__ret, l %store, l %id) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t4 =l alloc8 16+ dbgloc 210+ storel %store, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "store", "Store", %t0, 8, 5, 210+ storel %id, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "id", "objid.Id", %t1, 8, 5, 210+ dbgloc 211+ %t2 =l loadl %store+ %t3 =l call $store__lookup_handles(l %t4, l %t2, l %id)+ call $memcpy(l %__ret, l %t4, l 16)+ ret %__ret+}++export function l $store__handle_list_at(l %handles, l %i) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t3 =l alloc8 16+ %t10 =l alloc8 8+ dbgloc 214+ storel %handles, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "handles", "list[ref Handle]", %t0, 8, 5, 214+ storel %i, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "i", "usize", %t1, 8, 5, 214+ dbgloc 215+ storel 0, %t3+ %t4 =w call $sxqbe_list_valid(l %handles, l %i)+ jnz %t4, @lbl3464, @lbl3465+@lbl3464+ %t5 =l call $sxqbe_list_buf(l %handles)+ %t6 =l mul %i, 8+ %t7 =l add %t5, %t6+ %t8 =l loadl %t7+ %t9 =l add %t3, 8+ storel %t8, %t9+ storel 1, %t3+ jmp @lbl3466+@lbl3465+ jmp @lbl3466+@lbl3466+ storel %t3, %t10+ call $__sx_dbg_keep(l %t10)+ dbgvar "o", "option[ref Handle]", %t10, 8, 5, 215+ dbgloc 216+ %t11 =l loadl %t3+ %t12 =w cnel %t11, 0+ jnz %t12, @lbl3467, @lbl3468+@lbl3467+ %t14 =l add %t3, 8+ %t13 =l loadl %t14+ dbgloc 217+ ret %t13+@lbl3468+ jmp @lbl3469+@lbl3469+ dbgloc 219+ %t15 =l copy 0+ jnz %t15, @lbl3470, @lbl3471+@lbl3471+ %t16 =l copy $__str227+ call $dprintf(w 2, l %t16)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl3470+ dbgloc 220+ %t17 =l copy 0+ ret %t17+}++export function l $store__get_handles(l %__ret, l %handles, l %loc) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t9 =l alloc8 8+ %t13 =l alloc8 16+ %t24 =l alloc8 16+ dbgloc 223+ storel %handles, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "handles", "list[ref Handle]", %t0, 8, 5, 223+ storel %loc, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "loc", "Loc", %t1, 8, 5, 223+ dbgloc 227+ %t2 =l loadl %loc+ %t4 =l call $sxqbe_list_len(l %handles)+ %t5 =w csltl %t2, %t4+ jnz %t5, @lbl3472, @lbl3473+@lbl3473+ %t6 =l copy $__str228+ call $dprintf(w 2, l %t6)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl3472+ dbgloc 230+ %t7 =l loadl %loc+ %t8 =l call $store__handle_list_at(l %handles, l %t7)+ storel %t8, %t9+ call $__sx_dbg_keep(l %t9)+ dbgvar "h", "ref Handle", %t9, 8, 7, 230+ dbgloc 231+ %t10 =l loadl %t9+ %t11 =w call $store__ensure_pack(l %t10)+ %t12 =w ceqw %t11, 0+ jnz %t12, @lbl3474, @lbl3475+@lbl3474+ dbgloc 232+ call $memset(l %t13, w 0, l 16)+ storel 1, %t13+ %t14 =l copy 14+ %t15 =l copy 0+ %t16 =l call $derr__fail(l %t14, l %t15)+ %t17 =l add %t13, 8+ storel %t16, %t17+ call $memcpy(l %__ret, l %t13, l 16)+ ret %__ret+@lbl3475+ dbgloc 234+ %t18 =l loadl %t9+ %t20 =l add %t18, 16+ %t19 =l loadl %t20+ %t22 =l add %loc, 8+ %t21 =l loadl %t22+ %t23 =l call $pack__get(l %t24, l %t19, l %t21)+ call $memcpy(l %__ret, l %t24, l 16)+ ret %__ret+}++export function l $store__get(l %__ret, l %store, l %loc) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t4 =l alloc8 16+ dbgloc 237+ storel %store, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "store", "Store", %t0, 8, 5, 237+ storel %loc, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "loc", "Loc", %t1, 8, 5, 237+ dbgloc 238+ %t2 =l loadl %store+ %t3 =l call $store__get_handles(l %t4, l %t2, l %loc)+ call $memcpy(l %__ret, l %t4, l 16)+ ret %__ret+}++function w $store__pack_name_matches_trailer(l %name, l %trailer) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t6 =l alloc4 1+ %t16 =l alloc8 8+ %t31 =l alloc8 8+ dbgloc 241+ storel %name, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "name", "str.StringView", %t0, 8, 5, 241+ storel %trailer, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "trailer", "bytes.Bytes", %t1, 8, 5, 241+ dbgloc 242+ %t3 =l add %name, 8+ %t2 =l loadl %t3+ %t4 =l copy 64+ %t5 =w cnel %t2, %t4+ storew %t5, %t6+ jnz %t5, @lbl3481, @lbl3480+@lbl3480+ %t8 =l add %trailer, 8+ %t7 =l loadl %t8+ %t9 =l copy 32+ %t10 =w cnel %t7, %t9+ storew %t10, %t6+ jmp @lbl3481+@lbl3481+ %t11 =w loadw %t6+ jnz %t11, @lbl3477, @lbl3478+@lbl3477+ dbgloc 243+ %t12 =l copy 0+ ret %t12+@lbl3478+ dbgloc 245+ %t14 =l copy 65+ %t13 =l call $malloc(l %t14)+ %t15 =l copy %t13+ storel %t15, %t16+ call $__sx_dbg_keep(l %t16)+ dbgvar "hex", "ref u8", %t16, 8, 7, 245+ dbgloc 246+ %t17 =l loadl %trailer+ %t18 =l copy 32+ %t19 =w call $objid__hex_encode(l %t17, l %t18, l %t15)+ dbgloc 247+ %t22 =l copy 64+ %t21 =l add %t15, %t22+ %t23 =l copy 0+ storeb %t23, %t21+ %t20 =l copy 0+ dbgloc 248+ %t24 =l loadl %name+ %t25 =l copy 64+ %t26 =l call $bytes__bytes(l %t24, l %t25)+ %t27 =l call $bytes__from_cstr(l %t15)+ %t28 =w call $bytes__Bytes__eql(l %t26, l %t27)+ %t29 =w copy %t28+ %t30 =w extub %t29+ storew %t30, %t31+ call $__sx_dbg_keep(l %t31)+ dbgvar "same", "bool", %t31, 1, 7, 248+ dbgloc 249+ %t33 =l copy %t15+ call $free(l %t33)+ %t32 =l copy 0+ dbgloc 250+ ret %t30+}++function l $store__lazy_handle(l %packs_dir, l %name) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t3 =l alloc8 8+ %t7 =l alloc8 8+ %t19 =l alloc8 16+ %t20 =l alloc8 8+ dbgloc 253+ storel %packs_dir, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "packs_dir", "str.StringView", %t0, 8, 5, 253+ storel %name, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "name", "str.StringView", %t1, 8, 5, 253+ dbgloc 254+ %t2 =l call $files__join(l %packs_dir, l %name)+ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "pview", "str.StringView", %t3, 8, 5, 254+ dbgloc 255+ %t5 =l copy 40+ %t4 =l call $malloc(l %t5)+ %t6 =l copy %t4+ storel %t6, %t7+ call $__sx_dbg_keep(l %t7)+ dbgvar "h", "ref Handle", %t7, 8, 7, 255+ dbgloc 256+ %t8 =l loadl %t7+ call $memcpy(l %t8, l %t2, l 16)+ dbgloc 257+ %t9 =l copy 0+ %t10 =l loadl %t7+ %t11 =l add %t10, 16+ storel %t9, %t11+ dbgloc 258+ %t12 =l copy 0+ %t13 =l loadl %t7+ %t14 =l add %t13, 24+ storel %t12, %t14+ dbgloc 259+ %t15 =l copy 0+ %t16 =l loadl %t7+ %t17 =l add %t16, 32+ storel %t15, %t17+ dbgloc 260+ %t18 =l call $stat__read(l %t19, l %t2)+ storel %t19, %t20+ call $__sx_dbg_keep(l %t20)+ dbgvar "info", "option[StatInfo]", %t20, 8, 5, 260+ dbgloc 261+ %t21 =l loadl %t19+ %t22 =w cnel %t21, 0+ jnz %t22, @lbl3482, @lbl3483+@lbl3482+ %t24 =l add %t19, 8+ %t23 =l loadl %t24+ dbgloc 262+ %t26 =l add %t23, 13+ %t25 =l loadl %t26+ %t27 =l loadl %t7+ %t28 =l add %t27, 32+ storel %t25, %t28+ jmp @lbl3484+@lbl3483+ jmp @lbl3484+@lbl3484+ dbgloc 264+ %t29 =l loadl %t7+ ret %t29+}++function l $store__handle_ref_at(l %xs, l %i) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t3 =l alloc8 16+ %t10 =l alloc8 8+ dbgloc 267+ storel %xs, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "xs", "list[ref Handle]", %t0, 8, 5, 267+ storel %i, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "i", "usize", %t1, 8, 5, 267+ dbgloc 268+ storel 0, %t3+ %t4 =w call $sxqbe_list_valid(l %xs, l %i)+ jnz %t4, @lbl3485, @lbl3486+@lbl3485+ %t5 =l call $sxqbe_list_buf(l %xs)+ %t6 =l mul %i, 8+ %t7 =l add %t5, %t6+ %t8 =l loadl %t7+ %t9 =l add %t3, 8+ storel %t8, %t9+ storel 1, %t3+ jmp @lbl3487+@lbl3486+ jmp @lbl3487+@lbl3487+ storel %t3, %t10+ call $__sx_dbg_keep(l %t10)+ dbgvar "o", "option[ref Handle]", %t10, 8, 5, 268+ dbgloc 269+ %t11 =l loadl %t3+ %t12 =w cnel %t11, 0+ jnz %t12, @lbl3488, @lbl3489+@lbl3488+ %t14 =l add %t3, 8+ %t13 =l loadl %t14+ dbgloc 270+ ret %t13+@lbl3489+ jmp @lbl3490+@lbl3490+ dbgloc 272+ %t15 =l copy 0+ jnz %t15, @lbl3491, @lbl3492+@lbl3492+ %t16 =l copy $__str229+ call $dprintf(w 2, l %t16)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl3491+ dbgloc 273+ %t17 =l copy 0+ ret %t17+}++function w $store__merge_sort_handles(l %xs, l %lo, l %hi, l %tmp) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t3 =l alloc8 8+ %t11 =l alloc8 8+ %t18 =l alloc8 8+ %t19 =l alloc8 8+ %t20 =l alloc8 8+ %t26 =l alloc8 8+ %t79 =l alloc8 8+ dbgloc 276+ storel %xs, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "xs", "list[ref Handle]", %t0, 8, 5, 276+ storel %lo, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "lo", "usize", %t1, 8, 5, 276+ storel %hi, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "hi", "usize", %t2, 8, 5, 276+ storel %tmp, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "tmp", "list[ref Handle]", %t3, 8, 5, 276+ dbgloc 282+ %t4 =l sub %hi, %lo+ %t5 =l copy 1+ %t6 =w cslel %t4, %t5+ jnz %t6, @lbl3493, @lbl3494+@lbl3493+ dbgloc 283+ ret 0+@lbl3494+ dbgloc 285+ %t7 =l sub %hi, %lo+ %t8 =l copy 2+ %t9 =l div %t7, %t8+ %t10 =l add %lo, %t9+ storel %t10, %t11+ call $__sx_dbg_keep(l %t11)+ dbgvar "mid", "usize", %t11, 8, 5, 285+ dbgloc 286+ %t12 =l loadl %t0+ %t13 =l loadl %t3+ %t14 =w call $store__merge_sort_handles(l %t12, l %lo, l %t10, l %t13)+ dbgloc 287+ %t15 =l loadl %t0+ %t16 =l loadl %t3+ %t17 =w call $store__merge_sort_handles(l %t15, l %t10, l %hi, l %t16)+ dbgloc 288+ storel %lo, %t18+ call $__sx_dbg_keep(l %t18)+ dbgvar "i", "usize", %t18, 8, 5, 288+ dbgloc 289+ storel %t10, %t19+ call $__sx_dbg_keep(l %t19)+ dbgvar "j", "usize", %t19, 8, 5, 289+ dbgloc 290+ storel %lo, %t20+ call $__sx_dbg_keep(l %t20)+ dbgvar "k", "usize", %t20, 8, 5, 290+ dbgloc 291+ jmp @lbl3496+@lbl3496+ %t21 =l loadl %t20+ %t22 =w csltl %t21, %hi+ jnz %t22, @lbl3497, @lbl3499+@lbl3497+ dbgloc 292+ %t23 =l copy 0+ %t24 =w copy %t23+ %t25 =w extub %t24+ storew %t25, %t26+ call $__sx_dbg_keep(l %t26)+ dbgvar "take_left", "bool", %t26, 1, 7, 292+ dbgloc 293+ %t27 =l loadl %t18+ %t29 =w csltl %t27, %t10+ %t28 =w ceqw %t29, 0+ jnz %t28, @lbl3500, @lbl3502+@lbl3500+ dbgloc 294+ %t30 =l copy 0+ %t31 =w copy %t30+ %t32 =w extub %t31+ storew %t32, %t26+ jmp @lbl3501+@lbl3502+ %t33 =l loadl %t19+ %t35 =w csltl %t33, %hi+ %t34 =w ceqw %t35, 0+ jnz %t34, @lbl3503, @lbl3504+@lbl3503+ dbgloc 296+ %t36 =l copy 1+ %t37 =w copy %t36+ %t38 =w extub %t37+ storew %t38, %t26+ jmp @lbl3501+@lbl3504+ dbgloc 298+ %t39 =l loadl %t0+ %t40 =l loadl %t18+ %t41 =l call $store__handle_ref_at(l %t39, l %t40)+ %t43 =l add %t41, 32+ %t42 =l loadl %t43+ %t44 =l loadl %t0+ %t45 =l loadl %t19+ %t46 =l call $store__handle_ref_at(l %t44, l %t45)+ %t48 =l add %t46, 32+ %t47 =l loadl %t48+ %t50 =w csltl %t42, %t47+ %t49 =w ceqw %t50, 0+ %t51 =w copy %t49+ %t52 =w extub %t51+ storew %t52, %t26+ jmp @lbl3501+@lbl3501+ dbgloc 300+ %t54 =w loadw %t26+ %t53 =l extsw %t54+ jnz %t53, @lbl3505, @lbl3507+@lbl3505+ dbgloc 301+ %t56 =l loadl %t3+ %t57 =l loadl %t20+ %t58 =l loadl %t0+ %t59 =l loadl %t18+ %t60 =l call $store__handle_ref_at(l %t58, l %t59)+ %t61 =l loadl %t56+ %t62 =l mul %t57, 8+ %t63 =l add %t61, %t62+ storel %t60, %t63+ %t55 =l copy 0+ dbgloc 302+ %t64 =l loadl %t18+ %t65 =l add %t64, 1+ storel %t65, %t18+ jmp @lbl3506+@lbl3507+ dbgloc 304+ %t67 =l loadl %t3+ %t68 =l loadl %t20+ %t69 =l loadl %t0+ %t70 =l loadl %t19+ %t71 =l call $store__handle_ref_at(l %t69, l %t70)+ %t72 =l loadl %t67+ %t73 =l mul %t68, 8+ %t74 =l add %t72, %t73+ storel %t71, %t74+ %t66 =l copy 0+ dbgloc 305+ %t75 =l loadl %t19+ %t76 =l add %t75, 1+ storel %t76, %t19+ jmp @lbl3506+@lbl3506+ dbgloc 307+ %t77 =l loadl %t20+ %t78 =l add %t77, 1+ storel %t78, %t20+ jmp @lbl3498+@lbl3498+ jmp @lbl3496+@lbl3499+ dbgloc 309+ storel %lo, %t79+ call $__sx_dbg_keep(l %t79)+ dbgvar "m", "usize", %t79, 8, 5, 309+ dbgloc 310+ jmp @lbl3508+@lbl3508+ %t80 =l loadl %t79+ %t81 =w csltl %t80, %hi+ jnz %t81, @lbl3509, @lbl3511+@lbl3509+ dbgloc 311+ %t83 =l loadl %t0+ %t84 =l loadl %t79+ %t85 =l loadl %t3+ %t86 =l loadl %t79+ %t87 =l call $store__handle_ref_at(l %t85, l %t86)+ %t88 =l loadl %t83+ %t89 =l mul %t84, 8+ %t90 =l add %t88, %t89+ storel %t87, %t90+ %t82 =l copy 0+ dbgloc 312+ %t91 =l loadl %t79+ %t92 =l add %t91, 1+ storel %t92, %t79+ jmp @lbl3510+@lbl3510+ jmp @lbl3508+@lbl3511+ ret 0+}++function w $store__sort_handles(l %xs) {+@start+ %t0 =l alloc8 8+ %t4 =l alloc8 8+ %t8 =l alloc8 8+ %t10 =l alloc8 8+ dbgloc 317+ storel %xs, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "xs", "list[ref Handle]", %t0, 8, 5, 317+ dbgloc 318+ %t2 =l loadl %t0+ %t3 =l call $sxqbe_list_len(l %t2)+ storel %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "n", "usize", %t4, 8, 5, 318+ dbgloc 319+ %t5 =l copy 1+ %t6 =w cslel %t3, %t5+ jnz %t6, @lbl3512, @lbl3513+@lbl3512+ dbgloc 320+ ret 0+@lbl3513+ dbgloc 322+ %t7 =l call $lists__new__GENMONO__ref_Handle()++ storel %t7, %t8+ call $__sx_dbg_keep(l %t8)+ dbgvar "tmp", "list[ref Handle]", %t8, 8, 5, 322+ dbgloc 323+ %t9 =l copy 0+ storel %t9, %t10+ call $__sx_dbg_keep(l %t10)+ dbgvar "i", "usize", %t10, 8, 5, 323+ dbgloc 324+ jmp @lbl3515+@lbl3515+ %t11 =l loadl %t10+ %t12 =w csltl %t11, %t3+ jnz %t12, @lbl3516, @lbl3518+@lbl3516+ dbgloc 325+ %t14 =l call $sxqbe_list_ensure(l %t8)+ %t15 =l copy 0+ %t16 =l add %t14, 8+ %t17 =l add %t14, 16+ %t18 =l loadl %t16+ %t19 =l loadl %t17+ %t21 =l add %t18, 1+ %t20 =w call $sxqbe_list_grow(l %t14, l %t21)+ %t22 =l call $sxqbe_list_buf(l %t14)+ %t23 =l mul %t18, 8+ %t24 =l add %t22, %t23+ storel %t15, %t24+ %t25 =l add %t18, 1+ storel %t25, %t16+ %t13 =l copy 0+ dbgloc 326+ %t26 =l loadl %t10+ %t27 =l add %t26, 1+ storel %t27, %t10+ jmp @lbl3517+@lbl3517+ jmp @lbl3515+@lbl3518+ dbgloc 328+ %t28 =l loadl %t0+ %t29 =l copy 0+ %t30 =l loadl %t8+ %t31 =w call $store__merge_sort_handles(l %t28, l %t29, l %t3, l %t30)+ dbgloc 329+ %t33 =l loadl %t8+ call $sxqbe_list_free(l %t33)+ %t32 =l copy 0+ ret 0+}++export function l $store__open_all(l %repo) {+@start+ %t0 =l alloc8 8+ %t3 =l alloc8 8+ %t5 =l alloc8 8+ %t7 =l alloc8 8+ %t8 =l alloc8 8+ %t17 =l alloc8 8+ %t20 =l alloc4 1+ dbgloc 334+ storel %repo, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "repo", "layout.Repo", %t0, 8, 5, 334+ dbgloc 335+ %t1 =l call $store__new_store()+ %t2 =l call $malloc(l 8)+ call $memset(l %t2, w 0, l 8)+ call $memcpy(l %t2, l %t1, l 8)+ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "store", "Store", %t3, 8, 5, 335+ dbgloc 336+ %t4 =l call $layout__packs_dir(l %repo)+ storel %t4, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "dir", "str.StringView", %t5, 8, 5, 336+ dbgloc 337+ %t6 =l call $files__list_dir(l %t4)+ storel %t6, %t7+ call $__sx_dbg_keep(l %t7)+ dbgvar "names", "list[ref u8]", %t7, 8, 5, 337+ dbgloc 338+ storel 0, %t8+ %t9 =l call $sxqbe_list_len(l %t6)+@lbl3519+ %t10 =l loadl %t8+ %t11 =w csltl %t10, %t9+ jnz %t11, @lbl3520, @lbl3521+@lbl3520+ %t12 =l call $sxqbe_list_buf(l %t6)+ %t13 =l mul %t10, 8+ %t14 =l add %t12, %t13+ %t15 =l loadl %t14+ dbgloc 339+ %t16 =l call $std__str__from_cstr(l %t15)+ storel %t16, %t17+ call $__sx_dbg_keep(l %t17)+ dbgvar "nv", "str.StringView", %t17, 8, 5, 339+ dbgloc 340+ %t18 =l copy $__str230+ %t19 =w call $files__name_ends_with(l %t15, l %t18)+ storew %t19, %t20+ jnz %t19, @lbl3526, @lbl3527+@lbl3526+ %t22 =l add %t16, 8+ %t21 =l loadl %t22+ %t23 =l copy 6+ %t24 =w csgtl %t21, %t23+ storew %t24, %t20+ jmp @lbl3527+@lbl3527+ %t25 =w loadw %t20+ jnz %t25, @lbl3523, @lbl3524+@lbl3523+ dbgloc 341+ %t27 =l loadl %t3+ %t28 =l call $sxqbe_list_ensure(l %t27)+ %t29 =l call $store__lazy_handle(l %t4, l %t16)+ %t30 =l add %t28, 8+ %t31 =l add %t28, 16+ %t32 =l loadl %t30+ %t33 =l loadl %t31+ %t35 =l add %t32, 1+ %t34 =w call $sxqbe_list_grow(l %t28, l %t35)+ %t36 =l call $sxqbe_list_buf(l %t28)+ %t37 =l mul %t32, 8+ %t38 =l add %t36, %t37+ storel %t29, %t38+ %t39 =l add %t32, 1+ storel %t39, %t30+ %t26 =l copy 0+ jmp @lbl3524+@lbl3524+@lbl3522+ %t40 =l add %t10, 1+ storel %t40, %t8+ jmp @lbl3519+@lbl3521+ dbgloc 344+ %t41 =w call $files__free_names(l %t6)+ dbgloc 345+ %t42 =w call $files__free_path(l %t4)+ dbgloc 346+ %t43 =l loadl %t3+ %t44 =l loadl %t43+ %t45 =w call $store__sort_handles(l %t44)+ dbgloc 347+ %t46 =l loadl %t3+ ret %t46+}++function w $store__has_name(l %handles, l %name) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ dbgloc 350+ storel %handles, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "handles", "list[ref Handle]", %t0, 8, 5, 350+ storel %name, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "name", "ref u8", %t1, 8, 7, 350+ dbgloc 351+ storel 0, %t2+ %t3 =l call $sxqbe_list_len(l %handles)+@lbl3528+ %t4 =l loadl %t2+ %t5 =w csltl %t4, %t3+ jnz %t5, @lbl3529, @lbl3530+@lbl3529+ %t6 =l call $sxqbe_list_buf(l %handles)+ %t7 =l mul %t4, 8+ %t8 =l add %t6, %t7+ %t9 =l loadl %t8+ dbgloc 352+ %t10 =l add %t9, 0+ %t11 =l loadl %t10+ %t12 =w call $files__name_ends_with(l %t11, l %name)+ jnz %t12, @lbl3532, @lbl3533+@lbl3532+ dbgloc 353+ %t13 =l copy 1+ ret %t13+@lbl3533+@lbl3531+ %t14 =l add %t4, 1+ storel %t14, %t2+ jmp @lbl3528+@lbl3530+ dbgloc 356+ %t15 =l copy 0+ ret %t15+}++export function w $store__refresh(l %store, l %repo) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t3 =l alloc8 8+ %t8 =l alloc8 8+ %t9 =l alloc8 8+ %t18 =l alloc8 8+ %t21 =l alloc4 1+ %t27 =l alloc4 1+ dbgloc 361+ storel %store, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "store", "Store", %t0, 8, 5, 361+ storel %repo, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "repo", "layout.Repo", %t1, 8, 5, 361+ dbgloc 362+ %t2 =l call $layout__packs_dir(l %repo)+ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "dir", "str.StringView", %t3, 8, 5, 362+ dbgloc 363+ %t4 =w call $files__exists_dir(l %t2)+ %t5 =w ceqw %t4, 0+ jnz %t5, @lbl3535, @lbl3536+@lbl3535+ dbgloc 364+ %t6 =w call $files__free_path(l %t2)+ dbgloc 365+ ret 0+@lbl3536+ dbgloc 367+ %t7 =l call $files__list_dir(l %t2)+ storel %t7, %t8+ call $__sx_dbg_keep(l %t8)+ dbgvar "names", "list[ref u8]", %t8, 8, 5, 367+ dbgloc 368+ storel 0, %t9+ %t10 =l call $sxqbe_list_len(l %t7)+@lbl3538+ %t11 =l loadl %t9+ %t12 =w csltl %t11, %t10+ jnz %t12, @lbl3539, @lbl3540+@lbl3539+ %t13 =l call $sxqbe_list_buf(l %t7)+ %t14 =l mul %t11, 8+ %t15 =l add %t13, %t14+ %t16 =l loadl %t15+ dbgloc 369+ %t17 =l call $std__str__from_cstr(l %t16)+ storel %t17, %t18+ call $__sx_dbg_keep(l %t18)+ dbgvar "nv", "str.StringView", %t18, 8, 5, 369+ dbgloc 370+ %t19 =l copy $__str230+ %t20 =w call $files__name_ends_with(l %t16, l %t19)+ storew %t20, %t21+ jnz %t20, @lbl3545, @lbl3546+@lbl3545+ %t23 =l add %t17, 8+ %t22 =l loadl %t23+ %t24 =l copy 6+ %t25 =w csgtl %t22, %t24+ storew %t25, %t21+ jmp @lbl3546+@lbl3546+ %t26 =w loadw %t21+ storew %t26, %t27+ jnz %t26, @lbl3547, @lbl3548+@lbl3547+ %t28 =l loadl %t0+ %t29 =l loadl %t28+ %t30 =w call $store__has_name(l %t29, l %t16)+ %t31 =w ceqw %t30, 0+ storew %t31, %t27+ jmp @lbl3548+@lbl3548+ %t32 =w loadw %t27+ jnz %t32, @lbl3542, @lbl3543+@lbl3542+ dbgloc 371+ %t34 =l loadl %t0+ %t35 =l call $sxqbe_list_ensure(l %t34)+ %t36 =l call $store__lazy_handle(l %t2, l %t17)+ %t37 =l add %t35, 8+ %t38 =l add %t35, 16+ %t39 =l loadl %t37+ %t40 =l loadl %t38+ %t42 =l add %t39, 1+ %t41 =w call $sxqbe_list_grow(l %t35, l %t42)+ %t43 =l call $sxqbe_list_buf(l %t35)+ %t44 =l mul %t39, 8+ %t45 =l add %t43, %t44+ storel %t36, %t45+ %t46 =l add %t39, 1+ storel %t46, %t37+ %t33 =l copy 0+ jmp @lbl3543+@lbl3543+@lbl3541+ %t47 =l add %t11, 1+ storel %t47, %t9+ jmp @lbl3538+@lbl3540+ dbgloc 374+ %t48 =w call $files__free_names(l %t7)+ dbgloc 375+ %t49 =w call $files__free_path(l %t2)+ dbgloc 376+ %t50 =l loadl %t0+ %t51 =l loadl %t50+ %t52 =w call $store__sort_handles(l %t51)+ ret 0+}++export function w $store__write_pack(l %repo, l %objects) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t3 =l alloc8 8+ %t5 =l alloc8 8+ %t7 =l alloc8 8+ %t15 =l alloc8 8+ %t17 =l alloc8 8+ %t19 =l alloc8 8+ %t21 =l alloc8 8+ %t23 =l alloc8 8+ %t25 =l alloc8 8+ %t27 =l alloc8 8+ %t29 =l alloc8 8+ %t31 =l alloc8 8+ %t36 =l alloc8 8+ %t40 =l alloc8 8+ %t60 =l alloc4 1+ dbgloc 380+ storel %repo, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "repo", "layout.Repo", %t0, 8, 5, 380+ storel %objects, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "objects", "list[ref raw.RawObject]", %t1, 8, 5, 380+ dbgloc 381+ %t2 =l call $pack__encode(l %objects)+ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "out", "pack.PackOutput", %t3, 8, 5, 381+ dbgloc 382+ %t4 =l call $layout__packs_dir(l %repo)+ storel %t4, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "dir", "str.StringView", %t5, 8, 5, 382+ dbgloc 383+ %t6 =l call $layout__tmp_dir(l %repo)+ storel %t6, %t7+ call $__sx_dbg_keep(l %t7)+ dbgvar "tmpd", "str.StringView", %t7, 8, 5, 383+ dbgloc 384+ %t8 =l add %t2, 32+ %t9 =l loadl %t8+ %t10 =l add %t2, 32+ %t12 =l add %t10, 8+ %t11 =l loadl %t12+ %t13 =l copy %t11+ %t14 =l call $std__str__view(l %t9, l %t13)+ storel %t14, %t15+ call $__sx_dbg_keep(l %t15)+ dbgvar "base", "str.StringView", %t15, 8, 5, 384+ dbgloc 386+ %t16 =l call $files__with_suffix(l %t14, l $__sv93)+ storel %t16, %t17+ call $__sx_dbg_keep(l %t17)+ dbgvar "pack_suffix", "str.StringView", %t17, 8, 5, 386+ dbgloc 387+ %t18 =l call $files__with_suffix(l %t14, l $__sv94)+ storel %t18, %t19+ call $__sx_dbg_keep(l %t19)+ dbgvar "idx_suffix", "str.StringView", %t19, 8, 5, 387+ dbgloc 388+ %t20 =l call $files__with_suffix(l %t14, l $__sv95)+ storel %t20, %t21+ call $__sx_dbg_keep(l %t21)+ dbgvar "ptmp_suffix", "str.StringView", %t21, 8, 5, 388+ dbgloc 389+ %t22 =l call $files__with_suffix(l %t14, l $__sv96)+ storel %t22, %t23+ call $__sx_dbg_keep(l %t23)+ dbgvar "itmp_suffix", "str.StringView", %t23, 8, 5, 389+ dbgloc 391+ %t24 =l call $files__join(l %t4, l %t16)+ storel %t24, %t25+ call $__sx_dbg_keep(l %t25)+ dbgvar "pfinal", "str.StringView", %t25, 8, 5, 391+ dbgloc 392+ %t26 =l call $files__join(l %t4, l %t18)+ storel %t26, %t27+ call $__sx_dbg_keep(l %t27)+ dbgvar "ifinal", "str.StringView", %t27, 8, 5, 392+ dbgloc 393+ %t28 =l call $files__join(l %t6, l %t20)+ storel %t28, %t29+ call $__sx_dbg_keep(l %t29)+ dbgvar "ptmp", "str.StringView", %t29, 8, 5, 393+ dbgloc 394+ %t30 =l call $files__join(l %t6, l %t22)+ storel %t30, %t31+ call $__sx_dbg_keep(l %t31)+ dbgvar "itmp", "str.StringView", %t31, 8, 5, 394+ dbgloc 396+ %t32 =l add %t2, 0+ %t33 =w call $native__write_atomic(l %t28, l %t24, l %t6, l %t4, l %t32)+ %t34 =w copy %t33+ %t35 =w extub %t34+ storew %t35, %t36+ call $__sx_dbg_keep(l %t36)+ dbgvar "wrote_pack", "bool", %t36, 1, 7, 396+ dbgloc 397+ %t37 =l copy 0+ %t38 =w copy %t37+ %t39 =w extub %t38+ storew %t39, %t40+ call $__sx_dbg_keep(l %t40)+ dbgvar "wrote_index", "bool", %t40, 1, 7, 397+ dbgloc 398+ jnz %t35, @lbl3549, @lbl3550+@lbl3549+ dbgloc 399+ %t41 =l add %t2, 16+ %t42 =w call $native__write_atomic(l %t30, l %t26, l %t6, l %t4, l %t41)+ %t43 =w copy %t42+ %t44 =w extub %t43+ storew %t44, %t40+ dbgloc 400+ %t46 =w loadw %t40+ %t45 =l extsw %t46+ %t47 =w ceqw %t45, 0+ jnz %t47, @lbl3552, @lbl3553+@lbl3552+ dbgloc 401+ %t48 =w call $files__delete(l %t24)+ jmp @lbl3553+@lbl3553+ jmp @lbl3550+@lbl3550+ dbgloc 405+ %t49 =w call $files__free_path(l %t24)+ dbgloc 406+ %t50 =w call $files__free_path(l %t26)+ dbgloc 407+ %t51 =w call $files__free_path(l %t28)+ dbgloc 408+ %t52 =w call $files__free_path(l %t30)+ dbgloc 409+ %t53 =w call $files__free_path(l %t16)+ dbgloc 410+ %t54 =w call $files__free_path(l %t18)+ dbgloc 411+ %t55 =w call $files__free_path(l %t20)+ dbgloc 412+ %t56 =w call $files__free_path(l %t22)+ dbgloc 413+ %t57 =w call $files__free_path(l %t4)+ dbgloc 414+ %t58 =w call $files__free_path(l %t6)+ dbgloc 415+ %t59 =w call $pack__free_output(l %t2)+ dbgloc 416+ storew %t35, %t60+ jnz %t35, @lbl3555, @lbl3556+@lbl3555+ %t62 =w loadw %t40+ %t61 =l extsw %t62+ storew %t61, %t60+ jmp @lbl3556+@lbl3556+ %t63 =w loadw %t60+ ret %t63+}++function w $store__contains(l %hay, l %needle) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t13 =l alloc8 8+ %t15 =l alloc8 8+ dbgloc 419+ storel %hay, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "hay", "bytes.Bytes", %t0, 8, 5, 419+ storel %needle, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "needle", "bytes.Bytes", %t1, 8, 5, 419+ dbgloc 420+ %t3 =l add %needle, 8+ %t2 =l loadl %t3+ %t5 =l add %hay, 8+ %t4 =l loadl %t5+ %t6 =w csgtl %t2, %t4+ jnz %t6, @lbl3557, @lbl3558+@lbl3557+ dbgloc 421+ %t7 =l copy 0+ ret %t7+@lbl3558+ dbgloc 423+ %t9 =l add %hay, 8+ %t8 =l loadl %t9+ %t11 =l add %needle, 8+ %t10 =l loadl %t11+ %t12 =l sub %t8, %t10+ storel %t12, %t13+ call $__sx_dbg_keep(l %t13)+ dbgvar "limit", "usize", %t13, 8, 5, 423+ dbgloc 424+ %t14 =l copy 0+ storel %t14, %t15+ call $__sx_dbg_keep(l %t15)+ dbgvar "i", "usize", %t15, 8, 5, 424+ dbgloc 425+ jmp @lbl3560+@lbl3560+ %t16 =l loadl %t15+ %t17 =w cslel %t16, %t12+ jnz %t17, @lbl3561, @lbl3563+@lbl3561+ dbgloc 426+ %t18 =l loadl %t15+ %t19 =l loadl %t15+ %t21 =l add %needle, 8+ %t20 =l loadl %t21+ %t22 =l add %t19, %t20+ %t23 =l call $bytes__Bytes__slice(l %hay, l %t18, l %t22)+ %t24 =w call $bytes__Bytes__eql(l %t23, l %needle)+ jnz %t24, @lbl3564, @lbl3565+@lbl3564+ dbgloc 427+ %t25 =l copy 1+ ret %t25+@lbl3565+ dbgloc 429+ %t26 =l loadl %t15+ %t27 =l add %t26, 1+ storel %t27, %t15+ jmp @lbl3562+@lbl3562+ jmp @lbl3560+@lbl3563+ dbgloc 431+ %t28 =l copy 0+ ret %t28+}++export function w $store__has_promisor(l %repo) {+@start+ %t0 =l alloc8 8+ %t2 =l alloc8 8+ %t4 =l alloc8 16+ %t5 =l alloc8 8+ %t17 =l alloc8 8+ dbgloc 435+ storel %repo, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "repo", "layout.Repo", %t0, 8, 5, 435+ dbgloc 436+ %t1 =l call $layout__config_path(l %repo)+ storel %t1, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "cfgp", "str.StringView", %t2, 8, 5, 436+ dbgloc 437+ %t3 =l call $files__read_all(l %t4, l %t1)+ storel %t4, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "data", "option[bytes.Bytes]", %t5, 8, 5, 437+ dbgloc 438+ %t6 =w call $files__free_path(l %t1)+ dbgloc 439+ %t7 =l loadl %t4+ %t8 =w cnel %t7, 0+ jnz %t8, @lbl3567, @lbl3568+@lbl3567+ %t10 =l add %t4, 8+ %t9 =l loadl %t10+ dbgloc 440+ %t11 =l copy $__str233+ %t12 =l copy 8+ %t13 =l call $bytes__bytes(l %t11, l %t12)+ %t14 =w call $store__contains(l %t9, l %t13)+ %t15 =w copy %t14+ %t16 =w extub %t15+ storew %t16, %t17+ call $__sx_dbg_keep(l %t17)+ dbgvar "found", "bool", %t17, 1, 7, 440+ dbgloc 441+ %t18 =w call $files__free_buffer(l %t9)+ dbgloc 442+ ret %t16+@lbl3568+ jmp @lbl3569+@lbl3569+ dbgloc 444+ %t19 =l copy 0+ ret %t19+}++dbgfile "src/store/state.sx"+export function l $read__read_body(l %__ret, l %handles, l %id, w %expected) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t3 =l alloc8 17+ %t11 =l alloc8 8+ %t15 =l alloc8 16+ %t22 =l alloc8 16+ %t25 =l alloc8 16+ %t26 =l alloc8 8+ %t29 =l alloc8 8+ %t34 =l alloc8 16+ %t37 =l alloc8 8+ %t41 =l alloc8 8+ %t47 =l alloc8 8+ %t53 =l alloc8 16+ %t55 =l alloc8 16+ dbgloc 15+ storel %handles, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "handles", "list[ref store.Handle]", %t0, 8, 5, 15+ storel %id, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "id", "objid.Id", %t1, 8, 5, 15+ storew %expected, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "expected", "u8", %t2, 1, 7, 15+ dbgloc 20+ %t4 =l copy 0+ storel %t4, %t3+ %t6 =l copy 0+ %t7 =l add %t3, 8+ storel %t6, %t7+ %t8 =l copy 0+ %t9 =l add %t3, 16+ storeb %t8, %t9+ %t10 =l call $malloc(l 17)+ call $memset(l %t10, w 0, l 17)+ call $memcpy(l %t10, l %t3, l 17)+ storel %t10, %t11+ call $__sx_dbg_keep(l %t11)+ dbgvar "loc", "store.Loc", %t11, 8, 5, 20+ dbgloc 21+ %t12 =l loadl %t11+ %t13 =w call $store__find_handles(l %handles, l %id, l %t12)+ %t14 =w ceqw %t13, 0+ jnz %t14, @lbl3570, @lbl3571+@lbl3570+ dbgloc 22+ storel 0, %t15+ call $memcpy(l %__ret, l %t15, l 16)+ ret %__ret+@lbl3571+ dbgloc 24+ %t16 =l loadl %t11+ %t18 =l add %t16, 16+ %t17 =l loadub %t18+ %t19 =l extsw %t17+ %t20 =l extsw %expected+ %t21 =w cnew %t19, %t20+ jnz %t21, @lbl3573, @lbl3574+@lbl3573+ dbgloc 25+ storel 0, %t22+ call $memcpy(l %__ret, l %t22, l 16)+ ret %__ret+@lbl3574+ dbgloc 27+ %t23 =l loadl %t11+ %t24 =l call $store__get_handles(l %t25, l %handles, l %t23)+ storel %t25, %t26+ call $__sx_dbg_keep(l %t26)+ dbgvar "body_opt", "result[bytes.Bytes, derr.DecodeError]", %t26, 8, 5, 27+ dbgloc 28+ %t27 =l call $bytes__empty()+ %t28 =l call $malloc(l 16)+ call $memset(l %t28, w 0, l 16)+ call $memcpy(l %t28, l %t27, l 16)+ storel %t28, %t29+ call $__sx_dbg_keep(l %t29)+ dbgvar "body", "bytes.Bytes", %t29, 8, 5, 28+ dbgloc 29+ %t30 =l loadl %t25+ %t31 =w ceql %t30, 0+ jnz %t31, @lbl3576, @lbl3577+@lbl3576+ %t33 =l add %t25, 8+ %t32 =l loadl %t33+ dbgloc 31+ storel %t32, %t29+ jmp @lbl3578+@lbl3577+ dbgloc 34+ storel 0, %t34+ call $memcpy(l %__ret, l %t34, l 16)+ ret %__ret+@lbl3578+ dbgloc 37+ %t35 =l loadl %t29+ %t36 =l call $objid__object_id(w %expected, l %t35)+ storel %t36, %t37+ call $__sx_dbg_keep(l %t37)+ dbgvar "computed", "objid.Id", %t37, 8, 5, 37+ dbgloc 38+ %t38 =w call $objid__Id__eql(l %t36, l %id)+ %t39 =w copy %t38+ %t40 =w extub %t39+ storew %t40, %t41+ call $__sx_dbg_keep(l %t41)+ dbgvar "same", "bool", %t41, 1, 7, 38+ dbgloc 39+ %t42 =l loadl %t36+ %t43 =l copy 0+ %t44 =w cnel %t42, %t43+ jnz %t44, @lbl3579, @lbl3580+@lbl3579+ dbgloc 40+ %t45 =l loadl %t36+ %t46 =l copy %t45+ storel %t46, %t47+ call $__sx_dbg_keep(l %t47)+ dbgvar "cp", "ref ", %t47, 8, 7, 40+ dbgloc 41+ %t49 =l loadl %t47+ call $free(l %t49)+ %t48 =l copy 0+ jmp @lbl3580+@lbl3580+ dbgloc 43+ %t50 =w ceqw %t40, 0+ jnz %t50, @lbl3582, @lbl3583+@lbl3582+ dbgloc 44+ %t51 =l loadl %t29+ %t52 =w call $files__free_buffer(l %t51)+ dbgloc 45+ storel 0, %t53+ call $memcpy(l %__ret, l %t53, l 16)+ ret %__ret+@lbl3583+ dbgloc 47+ %t54 =l loadl %t29+ call $memset(l %t55, w 0, l 16)+ storel 1, %t55+ %t56 =l add %t55, 8+ storel %t54, %t56+ call $memcpy(l %__ret, l %t55, l 16)+ ret %__ret+}++export function l $read__read_view(l %__ret, l %handles, l %id) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t4 =l alloc8 16+ %t6 =l alloc8 8+ %t9 =l alloc8 8+ %t14 =l alloc8 16+ %t17 =l alloc8 16+ %t18 =l alloc8 8+ %t25 =l alloc8 16+ %t29 =l alloc8 16+ dbgloc 50+ storel %handles, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "handles", "list[ref store.Handle]", %t0, 8, 5, 50+ storel %id, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "id", "objid.Id", %t1, 8, 5, 50+ dbgloc 51+ %t2 =l copy 7+ %t5 =w copy %t2+ %t3 =l call $read__read_body(l %t4, l %handles, l %id, w %t5)+ storel %t4, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "body_opt", "option[bytes.Bytes]", %t6, 8, 5, 51+ dbgloc 52+ %t7 =l call $bytes__empty()+ %t8 =l call $malloc(l 16)+ call $memset(l %t8, w 0, l 16)+ call $memcpy(l %t8, l %t7, l 16)+ storel %t8, %t9+ call $__sx_dbg_keep(l %t9)+ dbgvar "body", "bytes.Bytes", %t9, 8, 5, 52+ dbgloc 53+ %t10 =l loadl %t4+ %t11 =w cnel %t10, 0+ jnz %t11, @lbl3585, @lbl3586+@lbl3585+ %t13 =l add %t4, 8+ %t12 =l loadl %t13+ dbgloc 55+ storel %t12, %t9+ jmp @lbl3587+@lbl3586+ dbgloc 58+ storel 0, %t14+ call $memcpy(l %__ret, l %t14, l 16)+ ret %__ret+@lbl3587+ dbgloc 61+ %t15 =l loadl %t9+ %t16 =l call $view__decode(l %t17, l %t15)+ storel %t17, %t18+ call $__sx_dbg_keep(l %t18)+ dbgvar "decoded", "result[ref View, derr.DecodeError]", %t18, 8, 5, 61+ dbgloc 62+ %t19 =l loadl %t17+ %t20 =w ceql %t19, 0+ jnz %t20, @lbl3588, @lbl3589+@lbl3588+ %t22 =l add %t17, 8+ %t21 =l loadl %t22+ dbgloc 64+ %t23 =l loadl %t9+ %t24 =l add %t21, 40+ call $memcpy(l %t24, l %t23, l 16)+ dbgloc 65+ call $memset(l %t25, w 0, l 16)+ storel 1, %t25+ %t26 =l add %t25, 8+ storel %t21, %t26+ call $memcpy(l %__ret, l %t25, l 16)+ ret %__ret+@lbl3589+ dbgloc 68+ %t27 =l loadl %t9+ %t28 =w call $files__free_buffer(l %t27)+ dbgloc 69+ storel 0, %t29+ call $memcpy(l %__ret, l %t29, l 16)+ ret %__ret+@lbl3590+ ret 0+}++export function l $read__read_operation(l %__ret, l %handles, l %id) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t4 =l alloc8 16+ %t6 =l alloc8 8+ %t9 =l alloc8 8+ %t14 =l alloc8 16+ %t17 =l alloc8 16+ %t18 =l alloc8 8+ %t25 =l alloc8 16+ %t29 =l alloc8 16+ dbgloc 74+ storel %handles, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "handles", "list[ref store.Handle]", %t0, 8, 5, 74+ storel %id, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "id", "objid.Id", %t1, 8, 5, 74+ dbgloc 78+ %t2 =l copy 6+ %t5 =w copy %t2+ %t3 =l call $read__read_body(l %t4, l %handles, l %id, w %t5)+ storel %t4, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "body_opt", "option[bytes.Bytes]", %t6, 8, 5, 78+ dbgloc 79+ %t7 =l call $bytes__empty()+ %t8 =l call $malloc(l 16)+ call $memset(l %t8, w 0, l 16)+ call $memcpy(l %t8, l %t7, l 16)+ storel %t8, %t9+ call $__sx_dbg_keep(l %t9)+ dbgvar "body", "bytes.Bytes", %t9, 8, 5, 79+ dbgloc 80+ %t10 =l loadl %t4+ %t11 =w cnel %t10, 0+ jnz %t11, @lbl3591, @lbl3592+@lbl3591+ %t13 =l add %t4, 8+ %t12 =l loadl %t13+ dbgloc 82+ storel %t12, %t9+ jmp @lbl3593+@lbl3592+ dbgloc 85+ storel 0, %t14+ call $memcpy(l %__ret, l %t14, l 16)+ ret %__ret+@lbl3593+ dbgloc 88+ %t15 =l loadl %t9+ %t16 =l call $operation__decode(l %t17, l %t15)+ storel %t17, %t18+ call $__sx_dbg_keep(l %t18)+ dbgvar "decoded", "result[ref Operation, derr.DecodeError]", %t18, 8, 5, 88+ dbgloc 89+ %t19 =l loadl %t17+ %t20 =w ceql %t19, 0+ jnz %t20, @lbl3594, @lbl3595+@lbl3594+ %t22 =l add %t17, 8+ %t21 =l loadl %t22+ dbgloc 91+ %t23 =l loadl %t9+ %t24 =l add %t21, 92+ call $memcpy(l %t24, l %t23, l 16)+ dbgloc 92+ call $memset(l %t25, w 0, l 16)+ storel 1, %t25+ %t26 =l add %t25, 8+ storel %t21, %t26+ call $memcpy(l %__ret, l %t25, l 16)+ ret %__ret+@lbl3595+ dbgloc 95+ %t27 =l loadl %t9+ %t28 =w call $files__free_buffer(l %t27)+ dbgloc 96+ storel 0, %t29+ call $memcpy(l %__ret, l %t29, l 16)+ ret %__ret+@lbl3596+ ret 0+}++function l $read__parse_head_name(l %__ret, l %name) {+@start+ %t0 =l alloc8 8+ %t2 =l alloc8 8+ %t5 =l alloc8 16+ %t9 =l alloc8 8+ %t11 =l alloc8 8+ %t17 =l alloc8 8+ %t24 =l alloc8 8+ %t33 =l alloc8 8+ %t38 =l alloc8 8+ %t43 =l alloc8 8+ %t47 =l alloc4 1+ %t59 =l alloc4 1+ %t71 =l alloc4 1+ %t83 =l alloc4 1+ %t95 =l alloc4 1+ %t107 =l alloc4 1+ %t120 =l alloc4 1+ %t128 =l alloc8 16+ %t147 =l alloc8 16+ dbgloc 101+ storel %name, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "name", "ref u8", %t0, 8, 7, 101+ dbgloc 102+ %t1 =l call $sxqbe_strlen(l %name)+ storel %t1, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "n", "i64", %t2, 8, 5, 102+ dbgloc 103+ %t3 =l copy 64+ %t4 =w cnel %t1, %t3+ jnz %t4, @lbl3597, @lbl3598+@lbl3597+ dbgloc 104+ storel 0, %t5+ call $memcpy(l %__ret, l %t5, l 16)+ ret %__ret+@lbl3598+ dbgloc 106+ %t7 =l copy 32+ %t6 =l call $malloc(l %t7)+ %t8 =l copy %t6+ storel %t8, %t9+ call $__sx_dbg_keep(l %t9)+ dbgvar "raw", "ref u8", %t9, 8, 7, 106+ dbgloc 107+ %t10 =l copy 0+ storel %t10, %t11+ call $__sx_dbg_keep(l %t11)+ dbgvar "i", "usize", %t11, 8, 5, 107+ dbgloc 108+ jmp @lbl3600+@lbl3600+ %t12 =l loadl %t11+ %t13 =l copy 32+ %t14 =w csltl %t12, %t13+ jnz %t14, @lbl3601, @lbl3603+@lbl3601+ dbgloc 109+ %t15 =l copy 64+ %t16 =l call $bytes__bytes(l %name, l %t15)+ storel %t16, %t17+ call $__sx_dbg_keep(l %t17)+ dbgvar "hex", "bytes.Bytes", %t17, 8, 5, 109+ dbgloc 110+ %t18 =l loadl %t11+ %t19 =l copy 2+ %t20 =l mul %t18, %t19+ %t21 =w call $bytes__Bytes__at(l %t16, l %t20)+ %t22 =w copy %t21+ %t23 =w extub %t22+ storew %t23, %t24+ call $__sx_dbg_keep(l %t24)+ dbgvar "hi_c", "u8", %t24, 1, 7, 110+ dbgloc 111+ %t25 =l loadl %t11+ %t26 =l copy 2+ %t27 =l mul %t25, %t26+ %t28 =l copy 1+ %t29 =l add %t27, %t28+ %t30 =w call $bytes__Bytes__at(l %t16, l %t29)+ %t31 =w copy %t30+ %t32 =w extub %t31+ storew %t32, %t33+ call $__sx_dbg_keep(l %t33)+ dbgvar "lo_c", "u8", %t33, 1, 7, 111+ dbgloc 112+ %t34 =l copy 1+ %t35 =l neg %t34+ %t36 =w copy %t35+ %t37 =w copy %t36+ storew %t37, %t38+ call $__sx_dbg_keep(l %t38)+ dbgvar "hi", "i32", %t38, 4, 5, 112+ dbgloc 113+ %t39 =l copy 1+ %t40 =l neg %t39+ %t41 =w copy %t40+ %t42 =w copy %t41+ storew %t42, %t43+ call $__sx_dbg_keep(l %t43)+ dbgvar "lo", "i32", %t43, 4, 5, 113+ dbgloc 114+ %t44 =w copy 48+ %t46 =w csltw %t23, %t44+ %t45 =w ceqw %t46, 0+ storew %t45, %t47+ jnz %t45, @lbl3611, @lbl3612+@lbl3611+ %t48 =w copy 57+ %t49 =w cslew %t23, %t48+ storew %t49, %t47+ jmp @lbl3612+@lbl3612+ %t50 =w loadw %t47+ jnz %t50, @lbl3604, @lbl3606+@lbl3604+ dbgloc 115+ %t51 =l extsw %t23+ %t52 =l copy 48+ %t54 =l extsw %t51+ %t53 =l sub %t54, %t52+ %t55 =w copy %t53+ storew %t55, %t38+ jmp @lbl3605+@lbl3606+ %t56 =w copy 97+ %t58 =w csltw %t23, %t56+ %t57 =w ceqw %t58, 0+ storew %t57, %t59+ jnz %t57, @lbl3613, @lbl3614+@lbl3613+ %t60 =w copy 102+ %t61 =w cslew %t23, %t60+ storew %t61, %t59+ jmp @lbl3614+@lbl3614+ %t62 =w loadw %t59+ jnz %t62, @lbl3607, @lbl3608+@lbl3607+ dbgloc 117+ %t63 =l extsw %t23+ %t64 =l copy 87+ %t66 =l extsw %t63+ %t65 =l sub %t66, %t64+ %t67 =w copy %t65+ storew %t67, %t38+ jmp @lbl3605+@lbl3608+ %t68 =w copy 65+ %t70 =w csltw %t23, %t68+ %t69 =w ceqw %t70, 0+ storew %t69, %t71+ jnz %t69, @lbl3615, @lbl3616+@lbl3615+ %t72 =w copy 70+ %t73 =w cslew %t23, %t72+ storew %t73, %t71+ jmp @lbl3616+@lbl3616+ %t74 =w loadw %t71+ jnz %t74, @lbl3609, @lbl3605+@lbl3609+ dbgloc 119+ %t75 =l extsw %t23+ %t76 =l copy 55+ %t78 =l extsw %t75+ %t77 =l sub %t78, %t76+ %t79 =w copy %t77+ storew %t79, %t38+ jmp @lbl3605+@lbl3605+ dbgloc 121+ %t80 =w copy 48+ %t82 =w csltw %t32, %t80+ %t81 =w ceqw %t82, 0+ storew %t81, %t83+ jnz %t81, @lbl3624, @lbl3625+@lbl3624+ %t84 =w copy 57+ %t85 =w cslew %t32, %t84+ storew %t85, %t83+ jmp @lbl3625+@lbl3625+ %t86 =w loadw %t83+ jnz %t86, @lbl3617, @lbl3619+@lbl3617+ dbgloc 122+ %t87 =l extsw %t32+ %t88 =l copy 48+ %t90 =l extsw %t87+ %t89 =l sub %t90, %t88+ %t91 =w copy %t89+ storew %t91, %t43+ jmp @lbl3618+@lbl3619+ %t92 =w copy 97+ %t94 =w csltw %t32, %t92+ %t93 =w ceqw %t94, 0+ storew %t93, %t95+ jnz %t93, @lbl3626, @lbl3627+@lbl3626+ %t96 =w copy 102+ %t97 =w cslew %t32, %t96+ storew %t97, %t95+ jmp @lbl3627+@lbl3627+ %t98 =w loadw %t95+ jnz %t98, @lbl3620, @lbl3621+@lbl3620+ dbgloc 124+ %t99 =l extsw %t32+ %t100 =l copy 87+ %t102 =l extsw %t99+ %t101 =l sub %t102, %t100+ %t103 =w copy %t101+ storew %t103, %t43+ jmp @lbl3618+@lbl3621+ %t104 =w copy 65+ %t106 =w csltw %t32, %t104+ %t105 =w ceqw %t106, 0+ storew %t105, %t107+ jnz %t105, @lbl3628, @lbl3629+@lbl3628+ %t108 =w copy 70+ %t109 =w cslew %t32, %t108+ storew %t109, %t107+ jmp @lbl3629+@lbl3629+ %t110 =w loadw %t107+ jnz %t110, @lbl3622, @lbl3618+@lbl3622+ dbgloc 126+ %t111 =l extsw %t32+ %t112 =l copy 55+ %t114 =l extsw %t111+ %t113 =l sub %t114, %t112+ %t115 =w copy %t113+ storew %t115, %t43+ jmp @lbl3618+@lbl3618+ dbgloc 128+ %t117 =w loadw %t38+ %t116 =l extsw %t117+ %t118 =w copy 0+ %t119 =w csltw %t116, %t118+ storew %t119, %t120+ jnz %t119, @lbl3634, @lbl3633+@lbl3633+ %t122 =w loadw %t43+ %t121 =l extsw %t122+ %t123 =w copy 0+ %t124 =w csltw %t121, %t123+ storew %t124, %t120+ jmp @lbl3634+@lbl3634+ %t125 =w loadw %t120+ jnz %t125, @lbl3630, @lbl3631+@lbl3630+ dbgloc 129+ %t127 =l copy %t8+ call $free(l %t127)+ %t126 =l copy 0+ dbgloc 130+ storel 0, %t128+ call $memcpy(l %__ret, l %t128, l 16)+ ret %__ret+@lbl3631+ dbgloc 132+ %t131 =l loadl %t11+ %t132 =l copy %t131+ %t130 =l add %t8, %t132+ %t134 =w loadw %t38+ %t133 =l extsw %t134+ %t135 =l extsw %t133+ %t136 =l copy 16+ %t138 =l extsw %t135+ %t137 =l mul %t138, %t136+ %t140 =w loadw %t43+ %t139 =l extsw %t140+ %t141 =l extsw %t139+ %t143 =l extsw %t141+ %t142 =l add %t137, %t143+ storeb %t142, %t130+ %t129 =l copy 0+ dbgloc 133+ %t144 =l loadl %t11+ %t145 =l add %t144, 1+ storel %t145, %t11+ jmp @lbl3602+@lbl3602+ jmp @lbl3600+@lbl3603+ dbgloc 135+ %t146 =l call $objid__id(l %t8)+ call $memset(l %t147, w 0, l 16)+ storel 1, %t147+ %t148 =l add %t147, 8+ storel %t146, %t148+ call $memcpy(l %__ret, l %t147, l 16)+ ret %__ret+}++function w $read__sort_ids(l %ids) {+@start+ %t0 =l alloc8 8+ %t4 =l alloc8 8+ %t6 =l alloc8 8+ %t10 =l alloc8 16+ %t19 =l alloc8 8+ %t22 =l alloc8 8+ %t28 =l alloc8 8+ %t33 =l alloc8 16+ %t44 =l alloc8 8+ %t47 =l alloc8 8+ dbgloc 138+ storel %ids, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "ids", "list[objid.Id]", %t0, 8, 5, 138+ dbgloc 139+ %t2 =l loadl %t0+ %t3 =l call $sxqbe_list_len(l %t2)+ storel %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "n", "usize", %t4, 8, 5, 139+ dbgloc 140+ %t5 =l copy 1+ storel %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "i", "usize", %t6, 8, 5, 140+ dbgloc 141+ jmp @lbl3635+@lbl3635+ %t7 =l loadl %t6+ %t8 =w csltl %t7, %t3+ jnz %t8, @lbl3636, @lbl3638+@lbl3636+ dbgloc 142+ storel 0, %t10+ %t11 =l loadl %t0+ %t12 =l loadl %t6+ %t13 =w call $sxqbe_list_valid(l %t11, l %t12)+ jnz %t13, @lbl3639, @lbl3640+@lbl3639+ %t14 =l call $sxqbe_list_buf(l %t11)+ %t15 =l mul %t12, 8+ %t16 =l add %t14, %t15+ %t17 =l loadl %t16+ %t18 =l add %t10, 8+ storel %t17, %t18+ storel 1, %t10+ jmp @lbl3641+@lbl3640+ jmp @lbl3641+@lbl3641+ storel %t10, %t19+ call $__sx_dbg_keep(l %t19)+ dbgvar "cur", "option[objid.Id]", %t19, 8, 5, 142+ dbgloc 143+ %t20 =l call $objid__id_none()+ %t21 =l call $malloc(l 8)+ call $memset(l %t21, w 0, l 8)+ call $memcpy(l %t21, l %t20, l 8)+ storel %t21, %t22+ call $__sx_dbg_keep(l %t22)+ dbgvar "cid", "objid.Id", %t22, 8, 5, 143+ dbgloc 144+ %t23 =l loadl %t10+ %t24 =w cnel %t23, 0+ jnz %t24, @lbl3642, @lbl3643+@lbl3642+ %t26 =l add %t10, 8+ %t25 =l loadl %t26+ dbgloc 145+ storel %t25, %t22+ jmp @lbl3644+@lbl3643+ jmp @lbl3644+@lbl3644+ dbgloc 147+ %t27 =l loadl %t6+ storel %t27, %t28+ call $__sx_dbg_keep(l %t28)+ dbgvar "j", "usize", %t28, 8, 5, 147+ dbgloc 148+ jmp @lbl3645+@lbl3645+ %t29 =l loadl %t28+ %t30 =l copy 0+ %t31 =w csgtl %t29, %t30+ jnz %t31, @lbl3646, @lbl3648+@lbl3646+ dbgloc 149+ storel 0, %t33+ %t34 =l loadl %t0+ %t35 =l loadl %t28+ %t36 =l copy 1+ %t37 =l sub %t35, %t36+ %t38 =w call $sxqbe_list_valid(l %t34, l %t37)+ jnz %t38, @lbl3649, @lbl3650+@lbl3649+ %t39 =l call $sxqbe_list_buf(l %t34)+ %t40 =l mul %t37, 8+ %t41 =l add %t39, %t40+ %t42 =l loadl %t41+ %t43 =l add %t33, 8+ storel %t42, %t43+ storel 1, %t33+ jmp @lbl3651+@lbl3650+ jmp @lbl3651+@lbl3651+ storel %t33, %t44+ call $__sx_dbg_keep(l %t44)+ dbgvar "prev_opt", "option[objid.Id]", %t44, 8, 5, 149+ dbgloc 150+ %t45 =l call $objid__id_none()+ %t46 =l call $malloc(l 8)+ call $memset(l %t46, w 0, l 8)+ call $memcpy(l %t46, l %t45, l 8)+ storel %t46, %t47+ call $__sx_dbg_keep(l %t47)+ dbgvar "prev", "objid.Id", %t47, 8, 5, 150+ dbgloc 151+ %t48 =l loadl %t33+ %t49 =w cnel %t48, 0+ jnz %t49, @lbl3652, @lbl3653+@lbl3652+ %t51 =l add %t33, 8+ %t50 =l loadl %t51+ dbgloc 152+ storel %t50, %t47+ jmp @lbl3654+@lbl3653+ jmp @lbl3654+@lbl3654+ dbgloc 154+ %t52 =l loadl %t47+ %t53 =l loadl %t22+ %t54 =l call $objid__Id__cmp(l %t52, l %t53)+ %t55 =l copy 0+ %t56 =w cslel %t54, %t55+ jnz %t56, @lbl3655, @lbl3656+@lbl3655+ dbgloc 155+ jmp @lbl3648+@lbl3656+ dbgloc 157+ %t58 =l loadl %t0+ %t59 =l loadl %t28+ %t60 =l loadl %t47+ %t61 =l loadl %t58+ %t62 =l mul %t59, 8+ %t63 =l add %t61, %t62+ storel %t60, %t63+ %t57 =l copy 0+ dbgloc 158+ %t64 =l loadl %t28+ %t65 =l sub %t64, 1+ storel %t65, %t28+ jmp @lbl3647+@lbl3647+ jmp @lbl3645+@lbl3648+ dbgloc 160+ %t67 =l loadl %t0+ %t68 =l loadl %t28+ %t69 =l loadl %t22+ %t70 =l loadl %t67+ %t71 =l mul %t68, 8+ %t72 =l add %t70, %t71+ storel %t69, %t72+ %t66 =l copy 0+ dbgloc 161+ %t73 =l loadl %t6+ %t74 =l add %t73, 1+ storel %t74, %t6+ jmp @lbl3637+@lbl3637+ jmp @lbl3635+@lbl3638+ ret 0+}++export function l $read__heads(l %repo) {+@start+ %t0 =l alloc8 8+ %t2 =l alloc8 8+ %t4 =l alloc8 8+ %t10 =l alloc8 8+ %t11 =l alloc8 8+ %t20 =l alloc8 16+ %t21 =l alloc8 8+ dbgloc 165+ storel %repo, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "repo", "layout.Repo", %t0, 8, 5, 165+ dbgloc 166+ %t1 =l call $lists__new__GENMONO__objid__Id()++ storel %t1, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "out", "list[objid.Id]", %t2, 8, 5, 166+ dbgloc 167+ %t3 =l call $layout__op_heads_dir(l %repo)+ storel %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "dir", "str.StringView", %t4, 8, 5, 167+ dbgloc 168+ %t5 =w call $files__exists_dir(l %t3)+ %t6 =w ceqw %t5, 0+ jnz %t6, @lbl3658, @lbl3659+@lbl3658+ dbgloc 169+ %t7 =w call $files__free_path(l %t3)+ dbgloc 170+ %t8 =l loadl %t2+ ret %t8+@lbl3659+ dbgloc 172+ %t9 =l call $files__list_dir(l %t3)+ storel %t9, %t10+ call $__sx_dbg_keep(l %t10)+ dbgvar "names", "list[ref u8]", %t10, 8, 5, 172+ dbgloc 173+ storel 0, %t11+ %t12 =l call $sxqbe_list_len(l %t9)+@lbl3661+ %t13 =l loadl %t11+ %t14 =w csltl %t13, %t12+ jnz %t14, @lbl3662, @lbl3663+@lbl3662+ %t15 =l call $sxqbe_list_buf(l %t9)+ %t16 =l mul %t13, 8+ %t17 =l add %t15, %t16+ %t18 =l loadl %t17+ dbgloc 174+ %t19 =l call $read__parse_head_name(l %t20, l %t18)+ storel %t20, %t21+ call $__sx_dbg_keep(l %t21)+ dbgvar "parsed", "option[objid.Id]", %t21, 8, 5, 174+ dbgloc 175+ %t22 =l loadl %t20+ %t23 =w cnel %t22, 0+ jnz %t23, @lbl3665, @lbl3666+@lbl3665+ %t25 =l add %t20, 8+ %t24 =l loadl %t25+ dbgloc 176+ %t27 =l call $sxqbe_list_ensure(l %t2)+ %t28 =l add %t27, 8+ %t29 =l add %t27, 16+ %t30 =l loadl %t28+ %t31 =l loadl %t29+ %t33 =l add %t30, 1+ %t32 =w call $sxqbe_list_grow(l %t27, l %t33)+ %t34 =l call $sxqbe_list_buf(l %t27)+ %t35 =l mul %t30, 8+ %t36 =l add %t34, %t35+ storel %t24, %t36+ %t37 =l add %t30, 1+ storel %t37, %t28+ %t26 =l copy 0+ jmp @lbl3667+@lbl3666+ jmp @lbl3667+@lbl3667+@lbl3664+ %t38 =l add %t13, 1+ storel %t38, %t11+ jmp @lbl3661+@lbl3663+ dbgloc 179+ %t39 =w call $files__free_names(l %t9)+ dbgloc 180+ %t40 =w call $files__free_path(l %t3)+ dbgloc 181+ %t41 =l loadl %t2+ %t42 =w call $read__sort_ids(l %t41)+ dbgloc 182+ %t43 =l loadl %t2+ ret %t43+}++export function l $read__current_view(l %__ret, l %repo, l %handles) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t3 =l alloc8 8+ %t9 =l alloc8 16+ %t11 =l alloc8 16+ %t19 =l alloc8 8+ %t22 =l alloc8 8+ %t29 =l alloc8 16+ %t30 =l alloc8 8+ %t37 =l alloc8 16+ %t38 =l alloc8 8+ %t40 =l alloc8 8+ %t53 =l alloc8 8+ %t58 =l alloc8 8+ %t71 =l alloc8 8+ %t76 =l alloc8 16+ dbgloc 185+ storel %repo, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "repo", "layout.Repo", %t0, 8, 5, 185+ storel %handles, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "handles", "list[ref store.Handle]", %t1, 8, 5, 185+ dbgloc 189+ %t2 =l call $read__heads(l %repo)+ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "hs", "list[objid.Id]", %t3, 8, 5, 189+ dbgloc 190+ %t5 =l call $sxqbe_list_len(l %t2)+ %t6 =l copy 0+ %t7 =w ceql %t5, %t6+ jnz %t7, @lbl3668, @lbl3669+@lbl3668+ dbgloc 191+ call $sxqbe_list_free(l %t2)+ %t8 =l copy 0+ dbgloc 192+ storel 0, %t9+ call $memcpy(l %__ret, l %t9, l 16)+ ret %__ret+@lbl3669+ dbgloc 194+ storel 0, %t11+ %t12 =l copy 0+ %t13 =w call $sxqbe_list_valid(l %t2, l %t12)+ jnz %t13, @lbl3671, @lbl3672+@lbl3671+ %t14 =l call $sxqbe_list_buf(l %t2)+ %t15 =l mul %t12, 8+ %t16 =l add %t14, %t15+ %t17 =l loadl %t16+ %t18 =l add %t11, 8+ storel %t17, %t18+ storel 1, %t11+ jmp @lbl3673+@lbl3672+ jmp @lbl3673+@lbl3673+ storel %t11, %t19+ call $__sx_dbg_keep(l %t19)+ dbgvar "first", "option[objid.Id]", %t19, 8, 5, 194+ dbgloc 195+ %t20 =l call $objid__id_none()+ %t21 =l call $malloc(l 8)+ call $memset(l %t21, w 0, l 8)+ call $memcpy(l %t21, l %t20, l 8)+ storel %t21, %t22+ call $__sx_dbg_keep(l %t22)+ dbgvar "op_id", "objid.Id", %t22, 8, 5, 195+ dbgloc 196+ %t23 =l loadl %t11+ %t24 =w cnel %t23, 0+ jnz %t24, @lbl3674, @lbl3675+@lbl3674+ %t26 =l add %t11, 8+ %t25 =l loadl %t26+ dbgloc 197+ storel %t25, %t22+ jmp @lbl3676+@lbl3675+ jmp @lbl3676+@lbl3676+ dbgloc 199+ %t27 =l loadl %t22+ %t28 =l call $read__read_operation(l %t29, l %handles, l %t27)+ storel %t29, %t30+ call $__sx_dbg_keep(l %t30)+ dbgvar "op_opt", "option[ref operation.Operation]", %t30, 8, 5, 199+ dbgloc 200+ %t31 =l loadl %t29+ %t32 =w cnel %t31, 0+ jnz %t32, @lbl3677, @lbl3678+@lbl3677+ %t34 =l add %t29, 8+ %t33 =l loadl %t34+ dbgloc 202+ %t35 =l add %t33, 8+ %t36 =l call $read__read_view(l %t37, l %handles, l %t35)+ storel %t37, %t38+ call $__sx_dbg_keep(l %t38)+ dbgvar "v_opt", "option[ref view.View]", %t38, 8, 5, 202+ dbgloc 203+ %t39 =w call $operation__free_operation(l %t33)+ dbgloc 204+ storel 0, %t40+ %t41 =l call $sxqbe_list_len(l %t2)+@lbl3680+ %t42 =l loadl %t40+ %t43 =w csltl %t42, %t41+ jnz %t43, @lbl3681, @lbl3682+@lbl3681+ %t44 =l call $sxqbe_list_buf(l %t2)+ %t45 =l mul %t42, 8+ %t46 =l add %t44, %t45+ %t47 =l loadl %t46+ dbgloc 205+ %t48 =l loadl %t47+ %t49 =l copy 0+ %t50 =w cnel %t48, %t49+ jnz %t50, @lbl3684, @lbl3685+@lbl3684+ dbgloc 206+ %t51 =l loadl %t47+ %t52 =l copy %t51+ storel %t52, %t53+ call $__sx_dbg_keep(l %t53)+ dbgvar "hp", "ref ", %t53, 8, 7, 206+ dbgloc 207+ %t55 =l loadl %t53+ call $free(l %t55)+ %t54 =l copy 0+ jmp @lbl3685+@lbl3685+@lbl3683+ %t56 =l add %t42, 1+ storel %t56, %t40+ jmp @lbl3680+@lbl3682+ dbgloc 210+ call $sxqbe_list_free(l %t2)+ %t57 =l copy 0+ dbgloc 211+ call $memcpy(l %__ret, l %t37, l 16)+ ret %__ret+@lbl3678+ dbgloc 214+ storel 0, %t58+ %t59 =l call $sxqbe_list_len(l %t2)+@lbl3687+ %t60 =l loadl %t58+ %t61 =w csltl %t60, %t59+ jnz %t61, @lbl3688, @lbl3689+@lbl3688+ %t62 =l call $sxqbe_list_buf(l %t2)+ %t63 =l mul %t60, 8+ %t64 =l add %t62, %t63+ %t65 =l loadl %t64+ dbgloc 215+ %t66 =l loadl %t65+ %t67 =l copy 0+ %t68 =w cnel %t66, %t67+ jnz %t68, @lbl3691, @lbl3692+@lbl3691+ dbgloc 216+ %t69 =l loadl %t65+ %t70 =l copy %t69+ storel %t70, %t71+ call $__sx_dbg_keep(l %t71)+ dbgvar "hp2", "ref ", %t71, 8, 7, 216+ dbgloc 217+ %t73 =l loadl %t71+ call $free(l %t73)+ %t72 =l copy 0+ jmp @lbl3692+@lbl3692+@lbl3690+ %t74 =l add %t60, 1+ storel %t74, %t58+ jmp @lbl3687+@lbl3689+ dbgloc 220+ call $sxqbe_list_free(l %t2)+ %t75 =l copy 0+ dbgloc 221+ storel 0, %t76+ call $memcpy(l %__ret, l %t76, l 16)+ ret %__ret+@lbl3679+ ret 0+}++export function l $read__empty_view() {+@start+ %t3 =l alloc8 8+ dbgloc 226+ dbgloc 227+ %t1 =l copy 56+ %t0 =l call $malloc(l %t1)+ %t2 =l copy %t0+ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "v", "ref view.View", %t3, 8, 7, 227+ dbgloc 228+ %t4 =l call $lists__new__GENMONO__objid__Id()++ %t5 =l loadl %t3+ storel %t4, %t5+ dbgloc 229+ %t6 =l call $lists__new__GENMONO__ref_view__Bookmark()++ %t7 =l loadl %t3+ %t8 =l add %t7, 8+ storel %t6, %t8+ dbgloc 230+ %t9 =l call $lists__new__GENMONO__ref_view__TagRef()++ %t10 =l loadl %t3+ %t11 =l add %t10, 16+ storel %t9, %t11+ dbgloc 231+ %t12 =l call $lists__new__GENMONO__ref_view__RemoteRef()++ %t13 =l loadl %t3+ %t14 =l add %t13, 24+ storel %t12, %t14+ dbgloc 232+ %t15 =l call $lists__new__GENMONO__ref_view__WorkspaceRef()++ %t16 =l loadl %t3+ %t17 =l add %t16, 32+ storel %t15, %t17+ dbgloc 233+ %t18 =l call $bytes__empty()+ %t19 =l loadl %t3+ %t20 =l add %t19, 40+ call $memcpy(l %t20, l %t18, l 16)+ dbgloc 234+ %t21 =l loadl %t3+ ret %t21+}++export function l $read__head_name(l %id) {+@start+ %t0 =l alloc8 8+ dbgloc 237+ storel %id, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "id", "objid.Id", %t0, 8, 5, 237+ dbgloc 238+ %t1 =l call $objid__Id__hex(l %id)+ ret %t1+}++export function w $read__write_head(l %repo, l %id) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t3 =l alloc8 8+ %t5 =l alloc8 8+ %t7 =l alloc8 8+ %t9 =l alloc8 8+ %t11 =l alloc8 8+ %t15 =l alloc8 8+ %t17 =l alloc8 8+ %t22 =l alloc8 8+ dbgloc 241+ storel %repo, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "repo", "layout.Repo", %t0, 8, 5, 241+ storel %id, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "id", "objid.Id", %t1, 8, 5, 241+ dbgloc 242+ %t2 =l call $read__head_name(l %id)+ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "hex", "ref u8", %t3, 8, 7, 242+ dbgloc 243+ %t4 =l call $layout__op_heads_dir(l %repo)+ storel %t4, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "dir", "str.StringView", %t5, 8, 5, 243+ dbgloc 244+ %t6 =l call $std__str__from_cstr(l %t2)+ storel %t6, %t7+ call $__sx_dbg_keep(l %t7)+ dbgvar "name", "str.StringView", %t7, 8, 5, 244+ dbgloc 245+ %t8 =l call $files__join(l %t4, l %t6)+ storel %t8, %t9+ call $__sx_dbg_keep(l %t9)+ dbgvar "final", "str.StringView", %t9, 8, 5, 245+ dbgloc 246+ %t10 =l call $layout__tmp_dir(l %repo)+ storel %t10, %t11+ call $__sx_dbg_keep(l %t11)+ dbgvar "tmpd", "str.StringView", %t11, 8, 5, 246+ dbgloc 247+ %t12 =l copy $__str234+ %t13 =l call $std__str__from_cstr(l %t12)+ %t14 =l call $files__with_suffix(l %t6, l %t13)+ storel %t14, %t15+ call $__sx_dbg_keep(l %t15)+ dbgvar "tmpname", "str.StringView", %t15, 8, 5, 247+ dbgloc 248+ %t16 =l call $files__join(l %t10, l %t14)+ storel %t16, %t17+ call $__sx_dbg_keep(l %t17)+ dbgvar "tmp", "str.StringView", %t17, 8, 5, 248+ dbgloc 249+ %t18 =l call $bytes__empty()+ %t19 =w call $native__write_atomic(l %t16, l %t8, l %t10, l %t4, l %t18)+ %t20 =w copy %t19+ %t21 =w extub %t20+ storew %t21, %t22+ call $__sx_dbg_keep(l %t22)+ dbgvar "success", "bool", %t22, 1, 7, 249+ dbgloc 250+ %t23 =w call $files__free_path(l %t4)+ dbgloc 251+ %t24 =w call $files__free_path(l %t10)+ dbgloc 252+ %t25 =w call $files__free_path(l %t8)+ dbgloc 253+ %t26 =w call $files__free_path(l %t14)+ dbgloc 254+ %t27 =w call $files__free_path(l %t16)+ dbgloc 255+ %t29 =l copy %t2+ call $free(l %t29)+ %t28 =l copy 0+ dbgloc 256+ ret %t21+}++export function w $read__delete_head(l %repo, l %id) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t3 =l alloc8 8+ %t5 =l alloc8 8+ %t7 =l alloc8 8+ %t9 =l alloc8 8+ %t13 =l alloc8 8+ dbgloc 259+ storel %repo, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "repo", "layout.Repo", %t0, 8, 5, 259+ storel %id, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "id", "objid.Id", %t1, 8, 5, 259+ dbgloc 260+ %t2 =l call $read__head_name(l %id)+ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "hex", "ref u8", %t3, 8, 7, 260+ dbgloc 261+ %t4 =l call $layout__op_heads_dir(l %repo)+ storel %t4, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "dir", "str.StringView", %t5, 8, 5, 261+ dbgloc 262+ %t6 =l call $std__str__from_cstr(l %t2)+ storel %t6, %t7+ call $__sx_dbg_keep(l %t7)+ dbgvar "name", "str.StringView", %t7, 8, 5, 262+ dbgloc 263+ %t8 =l call $files__join(l %t4, l %t6)+ storel %t8, %t9+ call $__sx_dbg_keep(l %t9)+ dbgvar "path", "str.StringView", %t9, 8, 5, 263+ dbgloc 264+ %t10 =w call $files__delete(l %t8)+ %t11 =w copy %t10+ %t12 =w extub %t11+ storew %t12, %t13+ call $__sx_dbg_keep(l %t13)+ dbgvar "success", "bool", %t13, 1, 7, 264+ dbgloc 265+ %t14 =w call $files__free_path(l %t4)+ dbgloc 266+ %t15 =w call $files__free_path(l %t8)+ dbgloc 267+ %t17 =l copy %t2+ call $free(l %t17)+ %t16 =l copy 0+ dbgloc 268+ ret %t12+}++dbgfile "spectrelib/thread/core.sx"+export function l $std__thread__current_thread_id() {+@start+ %t1 =l alloc8 8+ dbgloc 200+ dbgloc 201+ dbgloc 202+ %t0 =l call $rt__pthread_self()+ storel %t0, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "tid", "ref ", %t1, 8, 7, 202+ dbgloc 203+ %t2 =l copy %t0+ ret %t2+}++export function w $std__thread__yield_thread() {+@start+ dbgloc 213+ dbgloc 214+ dbgloc 215+ %t0 =w call $rt__sched_yield()+ dbgloc 217+ ret 0+}++data $thread__MUTEX_SIZE = { l 40 }+export function w $std__thread__Mutex__lock(l %m) {+@start+ %t0 =l alloc8 8+ dbgloc 281+ storel %m, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "m", "Mutex", %t0, 8, 5, 281+ dbgloc 282+ dbgloc 283+ %t1 =w call $rt__mutex_lock(l %m)+ dbgloc 285+ ret 0+}++export function w $std__thread__Mutex__unlock(l %m) {+@start+ %t0 =l alloc8 8+ dbgloc 291+ storel %m, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "m", "Mutex", %t0, 8, 5, 291+ dbgloc 292+ dbgloc 293+ %t1 =w call $rt__mutex_unlock(l %m)+ dbgloc 295+ ret 0+}++function l $std__thread__thread_test_entry(l %arg) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t4 =l alloc8 8+ dbgloc 311+ storel %arg, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "arg", "ref ", %t0, 8, 7, 311+ dbgloc 312+ storel %arg, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "c", "ref ", %t1, 8, 7, 312+ dbgloc 313+ %t2 =l loadl %arg+ %t3 =l copy %t2+ storel %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "old_val", "i64", %t4, 8, 5, 313+ dbgloc 314+ %t6 =l copy 1+ %t7 =l add %t3, %t6+ storel %t7, %arg+ %t5 =l copy 0+ dbgloc 315+ ret %arg+}++dbgfile "src/store/idmap.sx"+data $idmap__ID_LEN = { l 32 }+data $idmap__SLOT_LEN = { l 40 }+function l $idmap__round_cap(l %n) {+@start+ %t0 =l alloc8 8+ %t2 =l alloc8 8+ dbgloc 14+ storel %n, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "n", "usize", %t0, 8, 5, 14+ dbgloc 15+ %t1 =l copy 16+ storel %t1, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "c", "usize", %t2, 8, 5, 15+ dbgloc 16+ jmp @lbl3694+@lbl3694+ %t3 =l loadl %t2+ %t4 =w csltl %t3, %n+ jnz %t4, @lbl3695, @lbl3697+@lbl3695+ dbgloc 17+ %t5 =l loadl %t2+ %t6 =l copy 2+ %t7 =l mul %t5, %t6+ storel %t7, %t2+ jmp @lbl3696+@lbl3696+ jmp @lbl3694+@lbl3697+ dbgloc 19+ %t8 =l loadl %t2+ ret %t8+}++function l $idmap__key_ptr(l %set, l %i) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 22+ storel %set, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "set", "IdSet", %t0, 8, 5, 22+ storel %i, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "i", "usize", %t1, 8, 5, 22+ dbgloc 23+ %t3 =l loadl %set+ %t4 =l copy 40+ %t5 =l mul %i, %t4+ %t6 =l copy 1+ %t7 =l add %t5, %t6+ %t8 =l copy %t7+ %t2 =l add %t3, %t8+ ret %t2+}++function w $idmap__used_at(l %set, l %i) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 26+ storel %set, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "set", "IdSet", %t0, 8, 5, 26+ storel %i, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "i", "usize", %t1, 8, 5, 26+ dbgloc 27+ %t4 =l loadl %set+ %t5 =l copy 40+ %t6 =l mul %i, %t5+ %t7 =l copy %t6+ %t3 =l add %t4, %t7+ %t8 =w loadub %t3+ %t2 =l extsw %t8+ %t9 =l copy 0+ %t10 =w cnel %t2, %t9+ ret %t10+}++function w $idmap__set_used(l %set, l %i) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 30+ storel %set, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "set", "IdSet", %t0, 8, 5, 30+ storel %i, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "i", "usize", %t1, 8, 5, 30+ dbgloc 31+ %t4 =l loadl %set+ %t5 =l copy 40+ %t6 =l mul %i, %t5+ %t7 =l copy %t6+ %t3 =l add %t4, %t7+ %t8 =l copy 1+ storeb %t8, %t3+ %t2 =l copy 0+ ret 0+}++function l $idmap__hash_id(l %id) {+@start+ %t0 =l alloc8 8+ %t2 =l alloc8 8+ %t4 =l alloc8 8+ dbgloc 34+ storel %id, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "id", "bytes.Bytes", %t0, 8, 5, 34+ dbgloc 35+ %t1 =l copy 1469598103934665603+ storel %t1, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "h", "u64", %t2, 8, 7, 35+ dbgloc 36+ %t3 =l copy 0+ storel %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "k", "usize", %t4, 8, 5, 36+ dbgloc 37+ jmp @lbl3698+@lbl3698+ %t5 =l loadl %t4+ %t6 =l copy 32+ %t7 =w csltl %t5, %t6+ jnz %t7, @lbl3699, @lbl3701+@lbl3699+ dbgloc 38+ %t8 =l loadl %t2+ %t9 =l loadl %t4+ %t10 =w call $bytes__Bytes__at(l %id, l %t9)+ %t11 =l extsw %t10+ %t12 =l xor %t8, %t11+ %t13 =l copy 1099511628211+ %t14 =l mul %t12, %t13+ storel %t14, %t2+ dbgloc 39+ %t15 =l loadl %t4+ %t16 =l add %t15, 1+ storel %t16, %t4+ jmp @lbl3700+@lbl3700+ jmp @lbl3698+@lbl3701+ dbgloc 41+ %t17 =l loadl %t2+ ret %t17+}++function w $idmap__slot_eql(l %set, l %i, l %id) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ dbgloc 44+ storel %set, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "set", "IdSet", %t0, 8, 5, 44+ storel %i, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "i", "usize", %t1, 8, 5, 44+ storel %id, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "id", "bytes.Bytes", %t2, 8, 5, 44+ dbgloc 45+ %t3 =l call $idmap__key_ptr(l %set, l %i)+ %t4 =l copy 32+ %t5 =l call $bytes__bytes(l %t3, l %t4)+ %t6 =w call $bytes__Bytes__eql(l %t5, l %id)+ ret %t6+}++function w $idmap__copy_key(l %set, l %i, l %id) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ dbgloc 48+ storel %set, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "set", "IdSet", %t0, 8, 5, 48+ storel %i, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "i", "usize", %t1, 8, 5, 48+ storel %id, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "id", "bytes.Bytes", %t2, 8, 5, 48+ dbgloc 49+ %t4 =l call $idmap__key_ptr(l %set, l %i)+ %t5 =l copy %t4+ %t6 =l loadl %id+ %t7 =l copy %t6+ %t8 =l copy 32+ call $memcpy(l %t5, l %t7, l %t8)+ %t3 =l copy 0+ ret 0+}++export function l $idmap__new(l %initial) {+@start+ %t0 =l alloc8 8+ %t2 =l alloc8 8+ %t7 =l alloc8 8+ %t13 =l alloc8 24+ dbgloc 52+ storel %initial, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "initial", "usize", %t0, 8, 5, 52+ dbgloc 53+ %t1 =l call $idmap__round_cap(l %initial)+ storel %t1, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "cap", "usize", %t2, 8, 5, 53+ dbgloc 54+ %t4 =l copy 40+ %t5 =l mul %t1, %t4+ %t3 =l call $malloc(l %t5)+ %t6 =l copy %t3+ storel %t6, %t7+ call $__sx_dbg_keep(l %t7)+ dbgvar "p", "ref u8", %t7, 8, 7, 54+ dbgloc 55+ %t9 =l copy %t6+ %t10 =l copy 0+ %t11 =l copy 40+ %t12 =l mul %t1, %t11+ call $memset(l %t9, w %t10, l %t12)+ %t8 =l copy 0+ dbgloc 56+ storel %t6, %t13+ %t15 =l add %t13, 8+ storel %t1, %t15+ %t16 =l copy 0+ %t17 =l add %t13, 16+ storel %t16, %t17+ %t18 =l call $malloc(l 24)+ call $memcpy(l %t18, l %t13, l 24)+ ret %t18+}++export function w $idmap__free(l %set) {+@start+ %t0 =l alloc8 8+ dbgloc 59+ storel %set, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "set", "IdSet", %t0, 8, 5, 59+ dbgloc 60+ %t1 =l loadl %t0+ %t2 =l loadl %t1+ %t3 =l copy 0+ %t4 =w cnel %t2, %t3+ jnz %t4, @lbl3702, @lbl3703+@lbl3702+ dbgloc 61+ %t6 =l loadl %t0+ %t7 =l loadl %t6+ %t8 =l copy %t7+ call $free(l %t8)+ %t5 =l copy 0+ jmp @lbl3703+@lbl3703+ dbgloc 63+ %t9 =l copy 0+ %t10 =l loadl %t0+ storel %t9, %t10+ dbgloc 64+ %t11 =l copy 0+ %t12 =l loadl %t0+ %t13 =l add %t12, 8+ storel %t11, %t13+ dbgloc 65+ %t14 =l copy 0+ %t15 =l loadl %t0+ %t16 =l add %t15, 16+ storel %t14, %t16+ ret 0+}++function w $idmap__grow(l %set) {+@start+ %t0 =l alloc8 8+ %t3 =l alloc8 8+ %t7 =l alloc8 8+ %t10 =l alloc8 8+ %t15 =l alloc8 8+ %t28 =l alloc8 8+ %t51 =l alloc8 8+ dbgloc 68+ storel %set, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "set", "IdSet", %t0, 8, 5, 68+ dbgloc 69+ %t1 =l loadl %t0+ %t2 =l loadl %t1+ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "old_slots", "ref u8", %t3, 8, 7, 69+ dbgloc 70+ %t4 =l loadl %t0+ %t6 =l add %t4, 8+ %t5 =l loadl %t6+ storel %t5, %t7+ call $__sx_dbg_keep(l %t7)+ dbgvar "old_cap", "usize", %t7, 8, 5, 70+ dbgloc 71+ %t8 =l copy 2+ %t9 =l mul %t5, %t8+ storel %t9, %t10+ call $__sx_dbg_keep(l %t10)+ dbgvar "new_cap", "usize", %t10, 8, 5, 71+ dbgloc 72+ %t12 =l copy 40+ %t13 =l mul %t9, %t12+ %t11 =l call $malloc(l %t13)+ %t14 =l copy %t11+ storel %t14, %t15+ call $__sx_dbg_keep(l %t15)+ dbgvar "p", "ref u8", %t15, 8, 7, 72+ dbgloc 73+ %t17 =l copy %t14+ %t18 =l copy 0+ %t19 =l copy 40+ %t20 =l mul %t9, %t19+ call $memset(l %t17, w %t18, l %t20)+ %t16 =l copy 0+ dbgloc 74+ %t21 =l loadl %t0+ storel %t14, %t21+ dbgloc 75+ %t22 =l loadl %t0+ %t23 =l add %t22, 8+ storel %t9, %t23+ dbgloc 76+ %t24 =l copy 0+ %t25 =l loadl %t0+ %t26 =l add %t25, 16+ storel %t24, %t26+ dbgloc 77+ %t27 =l copy 0+ storel %t27, %t28+ call $__sx_dbg_keep(l %t28)+ dbgvar "i", "usize", %t28, 8, 5, 77+ dbgloc 78+ jmp @lbl3705+@lbl3705+ %t29 =l loadl %t28+ %t30 =w csltl %t29, %t5+ jnz %t30, @lbl3706, @lbl3708+@lbl3706+ dbgloc 79+ %t33 =l loadl %t3+ %t34 =l loadl %t28+ %t35 =l copy 40+ %t36 =l mul %t34, %t35+ %t37 =l copy %t36+ %t32 =l add %t33, %t37+ %t38 =w loadub %t32+ %t31 =l extsw %t38+ %t39 =l copy 0+ %t40 =w cnel %t31, %t39+ jnz %t40, @lbl3709, @lbl3710+@lbl3709+ dbgloc 80+ %t42 =l loadl %t3+ %t43 =l loadl %t28+ %t44 =l copy 40+ %t45 =l mul %t43, %t44+ %t46 =l copy 1+ %t47 =l add %t45, %t46+ %t48 =l copy %t47+ %t41 =l add %t42, %t48+ %t49 =l copy 32+ %t50 =l call $bytes__bytes(l %t41, l %t49)+ storel %t50, %t51+ call $__sx_dbg_keep(l %t51)+ dbgvar "id", "bytes.Bytes", %t51, 8, 5, 80+ dbgloc 84+ %t52 =l loadl %t0+ %t53 =w call $idmap__insert_existing(l %t52, l %t50)+ jmp @lbl3710+@lbl3710+ dbgloc 86+ %t54 =l loadl %t28+ %t55 =l add %t54, 1+ storel %t55, %t28+ jmp @lbl3707+@lbl3707+ jmp @lbl3705+@lbl3708+ dbgloc 88+ %t57 =l loadl %t3+ %t58 =l copy %t57+ call $free(l %t58)+ %t56 =l copy 0+ ret 0+}++function w $idmap__insert_existing(l %set, l %id) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t7 =l alloc8 8+ %t11 =l alloc8 8+ dbgloc 91+ storel %set, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "set", "IdSet", %t0, 8, 5, 91+ storel %id, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "id", "bytes.Bytes", %t1, 8, 5, 91+ dbgloc 92+ %t2 =l loadl %t0+ %t4 =l add %t2, 8+ %t3 =l loadl %t4+ %t5 =l copy 1+ %t6 =l sub %t3, %t5+ storel %t6, %t7+ call $__sx_dbg_keep(l %t7)+ dbgvar "mask", "usize", %t7, 8, 5, 92+ dbgloc 93+ %t8 =l call $idmap__hash_id(l %id)+ %t9 =l copy %t8+ %t10 =l and %t9, %t6+ storel %t10, %t11+ call $__sx_dbg_keep(l %t11)+ dbgvar "idx", "usize", %t11, 8, 5, 93+ dbgloc 94+ jmp @lbl3712+@lbl3712+ jmp @lbl3713+@lbl3713+ dbgloc 95+ %t12 =l loadl %t0+ %t13 =l loadl %t11+ %t14 =w call $idmap__used_at(l %t12, l %t13)+ %t15 =w ceqw %t14, 0+ jnz %t15, @lbl3716, @lbl3717+@lbl3716+ dbgloc 96+ %t16 =l loadl %t0+ %t17 =l loadl %t11+ %t18 =w call $idmap__set_used(l %t16, l %t17)+ dbgloc 97+ %t19 =l loadl %t0+ %t20 =l loadl %t11+ %t21 =w call $idmap__copy_key(l %t19, l %t20, l %id)+ dbgloc 98+ %t22 =l loadl %t0+ %t24 =l add %t22, 16+ %t23 =l loadl %t24+ %t25 =l add %t23, 1+ %t26 =l loadl %t0+ %t27 =l add %t26, 16+ storel %t25, %t27+ dbgloc 99+ %t28 =l copy 1+ ret %t28+@lbl3717+ dbgloc 101+ %t29 =l loadl %t0+ %t30 =l loadl %t11+ %t31 =w call $idmap__slot_eql(l %t29, l %t30, l %id)+ jnz %t31, @lbl3719, @lbl3720+@lbl3719+ dbgloc 102+ %t32 =l copy 0+ ret %t32+@lbl3720+ dbgloc 104+ %t33 =l loadl %t11+ %t34 =l copy 1+ %t35 =l add %t33, %t34+ %t36 =l and %t35, %t6+ storel %t36, %t11+ jmp @lbl3714+@lbl3714+ jmp @lbl3712+@lbl3715+ dbgloc 106+ %t37 =l copy 0+ ret %t37+}++export function w $idmap__put(l %set, l %id) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 110+ storel %set, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "set", "IdSet", %t0, 8, 5, 110+ storel %id, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "id", "bytes.Bytes", %t1, 8, 5, 110+ dbgloc 111+ %t3 =l add %id, 8+ %t2 =l loadl %t3+ %t4 =l copy 32+ %t5 =w ceql %t2, %t4+ jnz %t5, @lbl3722, @lbl3723+@lbl3723+ %t6 =l copy $__str235+ call $dprintf(w 2, l %t6)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl3722+ dbgloc 114+ %t7 =l loadl %t0+ %t9 =l add %t7, 16+ %t8 =l loadl %t9+ %t10 =l copy 1+ %t11 =l add %t8, %t10+ %t12 =l copy 10+ %t13 =l mul %t11, %t12+ %t14 =l loadl %t0+ %t16 =l add %t14, 8+ %t15 =l loadl %t16+ %t17 =l copy 7+ %t18 =l mul %t15, %t17+ %t20 =w csltl %t13, %t18+ %t19 =w ceqw %t20, 0+ jnz %t19, @lbl3724, @lbl3725+@lbl3724+ dbgloc 115+ %t21 =l loadl %t0+ %t22 =w call $idmap__grow(l %t21)+ jmp @lbl3725+@lbl3725+ dbgloc 117+ %t23 =l loadl %t0+ %t24 =w call $idmap__insert_existing(l %t23, l %id)+ ret %t24+}++export function w $idmap__contains(l %set, l %id) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t16 =l alloc8 8+ %t20 =l alloc8 8+ dbgloc 120+ storel %set, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "set", "IdSet", %t0, 8, 5, 120+ storel %id, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "id", "bytes.Bytes", %t1, 8, 5, 120+ dbgloc 121+ %t3 =l add %id, 8+ %t2 =l loadl %t3+ %t4 =l copy 32+ %t5 =w ceql %t2, %t4+ jnz %t5, @lbl3727, @lbl3728+@lbl3728+ %t6 =l copy $__str236+ call $dprintf(w 2, l %t6)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl3727+ dbgloc 124+ %t8 =l add %set, 8+ %t7 =l loadl %t8+ %t9 =l copy 0+ %t10 =w ceql %t7, %t9+ jnz %t10, @lbl3729, @lbl3730+@lbl3729+ dbgloc 125+ %t11 =l copy 0+ ret %t11+@lbl3730+ dbgloc 127+ %t13 =l add %set, 8+ %t12 =l loadl %t13+ %t14 =l copy 1+ %t15 =l sub %t12, %t14+ storel %t15, %t16+ call $__sx_dbg_keep(l %t16)+ dbgvar "mask", "usize", %t16, 8, 5, 127+ dbgloc 128+ %t17 =l call $idmap__hash_id(l %id)+ %t18 =l copy %t17+ %t19 =l and %t18, %t15+ storel %t19, %t20+ call $__sx_dbg_keep(l %t20)+ dbgvar "idx", "usize", %t20, 8, 5, 128+ dbgloc 129+ jmp @lbl3732+@lbl3732+ jmp @lbl3733+@lbl3733+ dbgloc 130+ %t21 =l loadl %t20+ %t22 =w call $idmap__used_at(l %set, l %t21)+ %t23 =w ceqw %t22, 0+ jnz %t23, @lbl3736, @lbl3737+@lbl3736+ dbgloc 131+ %t24 =l copy 0+ ret %t24+@lbl3737+ dbgloc 133+ %t25 =l loadl %t20+ %t26 =w call $idmap__slot_eql(l %set, l %t25, l %id)+ jnz %t26, @lbl3739, @lbl3740+@lbl3739+ dbgloc 134+ %t27 =l copy 1+ ret %t27+@lbl3740+ dbgloc 136+ %t28 =l loadl %t20+ %t29 =l copy 1+ %t30 =l add %t28, %t29+ %t31 =l and %t30, %t15+ storel %t31, %t20+ jmp @lbl3734+@lbl3734+ jmp @lbl3732+@lbl3735+ dbgloc 138+ %t32 =l copy 0+ ret %t32+}++dbgfile "src/store/writer.sx"+function l $writer__worker_count() {+@start+ %t3 =l alloc8 8+ dbgloc 62+ dbgloc 63+ dbgloc 64+ %t0 =l copy 84+ %t2 =w copy %t0+ %t1 =l call $sysconf(w %t2)+ storel %t1, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "n", "i64", %t3, 8, 5, 64+ dbgloc 65+ %t4 =l copy 0+ %t5 =w csgtl %t1, %t4+ jnz %t5, @lbl3742, @lbl3743+@lbl3742+ dbgloc 66+ %t6 =l copy %t1+ ret %t6+@lbl3743+ dbgloc 69+ dbgloc 75+ %t7 =l copy 4+ ret %t7+}++function w $writer__free_cached(l %items) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t16 =l alloc8 8+ %t26 =l alloc8 8+ %t30 =l alloc8 8+ dbgloc 78+ storel %items, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "items", "list[ref CachedObj]", %t0, 8, 5, 78+ dbgloc 79+ storel 0, %t1+ %t2 =l call $sxqbe_list_len(l %items)+@lbl3745+ %t3 =l loadl %t1+ %t4 =w csltl %t3, %t2+ jnz %t4, @lbl3746, @lbl3747+@lbl3746+ %t5 =l call $sxqbe_list_buf(l %items)+ %t6 =l mul %t3, 8+ %t7 =l add %t5, %t6+ %t8 =l loadl %t7+ dbgloc 80+ %t9 =l add %t8, 9+ %t10 =l loadl %t9+ %t11 =l copy 0+ %t12 =w cnel %t10, %t11+ jnz %t12, @lbl3749, @lbl3750+@lbl3749+ dbgloc 81+ %t13 =l add %t8, 9+ %t14 =l loadl %t13+ %t15 =l copy %t14+ storel %t15, %t16+ call $__sx_dbg_keep(l %t16)+ dbgvar "bp", "ref ", %t16, 8, 7, 81+ dbgloc 82+ %t18 =l loadl %t16+ call $free(l %t18)+ %t17 =l copy 0+ jmp @lbl3750+@lbl3750+ dbgloc 84+ %t19 =l add %t8, 1+ %t20 =l loadl %t19+ %t21 =l copy 0+ %t22 =w cnel %t20, %t21+ jnz %t22, @lbl3752, @lbl3753+@lbl3752+ dbgloc 85+ %t23 =l add %t8, 1+ %t24 =l loadl %t23+ %t25 =l copy %t24+ storel %t25, %t26+ call $__sx_dbg_keep(l %t26)+ dbgvar "ip", "ref ", %t26, 8, 7, 85+ dbgloc 86+ %t28 =l loadl %t26+ call $free(l %t28)+ %t27 =l copy 0+ jmp @lbl3753+@lbl3753+ dbgloc 88+ %t29 =l copy %t8+ storel %t29, %t30+ call $__sx_dbg_keep(l %t30)+ dbgvar "cp", "ref ", %t30, 8, 7, 88+ dbgloc 89+ %t32 =l loadl %t30+ call $free(l %t32)+ %t31 =l copy 0+@lbl3748+ %t33 =l add %t3, 1+ storel %t33, %t1+ jmp @lbl3745+@lbl3747+ dbgloc 91+ call $sxqbe_list_free(l %items)+ %t34 =l copy 0+ ret 0+}++function w $writer__free_items(l %items) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t16 =l alloc8 8+ %t23 =l alloc4 1+ %t32 =l alloc8 8+ %t42 =l alloc8 8+ %t46 =l alloc8 8+ dbgloc 94+ storel %items, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "items", "list[ref PendingRecord]", %t0, 8, 5, 94+ dbgloc 95+ storel 0, %t1+ %t2 =l call $sxqbe_list_len(l %items)+@lbl3755+ %t3 =l loadl %t1+ %t4 =w csltl %t3, %t2+ jnz %t4, @lbl3756, @lbl3757+@lbl3756+ %t5 =l call $sxqbe_list_buf(l %items)+ %t6 =l mul %t3, 8+ %t7 =l add %t5, %t6+ %t8 =l loadl %t7+ dbgloc 96+ %t9 =l add %t8, 9+ %t10 =l loadl %t9+ %t11 =l copy 0+ %t12 =w cnel %t10, %t11+ jnz %t12, @lbl3759, @lbl3760+@lbl3759+ dbgloc 97+ %t13 =l add %t8, 9+ %t14 =l loadl %t13+ %t15 =l copy %t14+ storel %t15, %t16+ call $__sx_dbg_keep(l %t16)+ dbgvar "bp", "ref ", %t16, 8, 7, 97+ dbgloc 98+ %t18 =l loadl %t16+ call $free(l %t18)+ %t17 =l copy 0+ jmp @lbl3760+@lbl3760+ dbgloc 100+ %t20 =l add %t8, 41+ %t19 =l loadub %t20+ %t21 =w copy 1+ %t22 =w ceqw %t19, %t21+ storew %t22, %t23+ jnz %t22, @lbl3765, @lbl3766+@lbl3765+ %t24 =l add %t8, 25+ %t25 =l loadl %t24+ %t26 =l copy 0+ %t27 =w cnel %t25, %t26+ storew %t27, %t23+ jmp @lbl3766+@lbl3766+ %t28 =w loadw %t23+ jnz %t28, @lbl3762, @lbl3763+@lbl3762+ dbgloc 101+ %t29 =l add %t8, 25+ %t30 =l loadl %t29+ %t31 =l copy %t30+ storel %t31, %t32+ call $__sx_dbg_keep(l %t32)+ dbgvar "sp", "ref ", %t32, 8, 7, 101+ dbgloc 102+ %t34 =l loadl %t32+ call $free(l %t34)+ %t33 =l copy 0+ jmp @lbl3763+@lbl3763+ dbgloc 104+ %t35 =l add %t8, 0+ %t36 =l loadl %t35+ %t37 =l copy 0+ %t38 =w cnel %t36, %t37+ jnz %t38, @lbl3767, @lbl3768+@lbl3767+ dbgloc 105+ %t39 =l add %t8, 0+ %t40 =l loadl %t39+ %t41 =l copy %t40+ storel %t41, %t42+ call $__sx_dbg_keep(l %t42)+ dbgvar "ip", "ref ", %t42, 8, 7, 105+ dbgloc 106+ %t44 =l loadl %t42+ call $free(l %t44)+ %t43 =l copy 0+ jmp @lbl3768+@lbl3768+ dbgloc 108+ %t45 =l copy %t8+ storel %t45, %t46+ call $__sx_dbg_keep(l %t46)+ dbgvar "rp", "ref ", %t46, 8, 7, 108+ dbgloc 109+ %t48 =l loadl %t46+ call $free(l %t48)+ %t47 =l copy 0+@lbl3758+ %t49 =l add %t3, 1+ storel %t49, %t1+ jmp @lbl3755+@lbl3757+ dbgloc 111+ call $sxqbe_list_free(l %items)+ %t50 =l copy 0+ ret 0+}++function l $writer__compress_worker(l %arg) {+@start+ %t0 =l alloc8 8+ %t2 =l alloc8 8+ %t5 =l alloc8 8+ %t12 =l alloc8 16+ %t21 =l alloc8 8+ %t30 =l alloc8 8+ dbgloc 114+ storel %arg, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "arg", "ref ", %t0, 8, 7, 114+ dbgloc 115+ %t1 =l copy %arg+ storel %t1, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "job", "ref CompressJob", %t2, 8, 7, 115+ dbgloc 116+ %t4 =l add %t1, 8+ %t3 =l loadl %t4+ storel %t3, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "i", "usize", %t5, 8, 5, 116+ dbgloc 117+ jmp @lbl3770+@lbl3770+ %t6 =l loadl %t5+ %t8 =l loadl %t1+ %t9 =l call $sxqbe_list_len(l %t8)+ %t10 =w csltl %t6, %t9+ jnz %t10, @lbl3771, @lbl3773+@lbl3771+ dbgloc 118+ storel 0, %t12+ %t13 =l loadl %t1+ %t14 =l loadl %t5+ %t15 =w call $sxqbe_list_valid(l %t13, l %t14)+ jnz %t15, @lbl3774, @lbl3775+@lbl3774+ %t16 =l call $sxqbe_list_buf(l %t13)+ %t17 =l mul %t14, 8+ %t18 =l add %t16, %t17+ %t19 =l loadl %t18+ %t20 =l add %t12, 8+ storel %t19, %t20+ storel 1, %t12+ jmp @lbl3776+@lbl3775+ jmp @lbl3776+@lbl3776+ storel %t12, %t21+ call $__sx_dbg_keep(l %t21)+ dbgvar "item", "option[ref PendingRecord]", %t21, 8, 5, 118+ dbgloc 119+ %t22 =l loadl %t12+ %t23 =w cnel %t22, 0+ jnz %t23, @lbl3777, @lbl3778+@lbl3777+ %t25 =l add %t12, 8+ %t24 =l loadl %t25+ dbgloc 120+ %t26 =l add %t24, 9+ %t27 =l copy 1+ %t29 =w copy %t27+ %t28 =l call $zstd__compress(l %t26, w %t29)+ storel %t28, %t30+ call $__sx_dbg_keep(l %t30)+ dbgvar "compressed", "bytes.Bytes", %t30, 8, 5, 120+ dbgloc 121+ %t32 =l add %t28, 8+ %t31 =l loadl %t32+ %t33 =l copy 0+ %t34 =w csgtl %t31, %t33+ jnz %t34, @lbl3780, @lbl3782+@lbl3780+ dbgloc 122+ %t35 =l copy 1+ %t36 =w copy %t35+ %t37 =l add %t24, 41+ storeb %t36, %t37+ dbgloc 123+ %t38 =l add %t24, 25+ call $memcpy(l %t38, l %t28, l 16)+ jmp @lbl3781+@lbl3782+ dbgloc 125+ %t39 =l copy 0+ %t40 =w copy %t39+ %t41 =l add %t24, 41+ storeb %t40, %t41+ dbgloc 126+ %t42 =l add %t24, 9+ %t43 =l add %t24, 25+ call $memcpy(l %t43, l %t42, l 16)+ jmp @lbl3781+@lbl3781+ jmp @lbl3779+@lbl3778+ jmp @lbl3779+@lbl3779+ dbgloc 129+ %t44 =l loadl %t5+ %t46 =l add %t1, 16+ %t45 =l loadl %t46+ %t47 =l add %t44, %t45+ storel %t47, %t5+ jmp @lbl3772+@lbl3772+ jmp @lbl3770+@lbl3773+ dbgloc 131+ %t48 =l copy 0+ ret %t48+}++function w $writer__compress_items(l %items) {+@start+ %t0 =l alloc8 8+ %t3 =l alloc8 8+ %t7 =l alloc8 8+ %t14 =l alloc8 8+ %t18 =l alloc8 8+ %t20 =l alloc8 8+ %t22 =l alloc8 8+ %t24 =l alloc8 8+ %t31 =l alloc8 8+ %t56 =l alloc8 16+ %t57 =l alloc8 8+ %t80 =l alloc8 8+ %t87 =l alloc8 16+ %t96 =l alloc8 8+ %t102 =l alloc8 16+ %t103 =l alloc8 8+ %t110 =l alloc8 8+ %t117 =l alloc8 16+ %t126 =l alloc8 8+ dbgloc 134+ storel %items, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "items", "list[ref PendingRecord]", %t0, 8, 5, 134+ dbgloc 135+ %t2 =l call $sxqbe_list_len(l %items)+ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "n", "usize", %t3, 8, 5, 135+ dbgloc 136+ %t4 =l copy 0+ %t5 =w ceql %t2, %t4+ jnz %t5, @lbl3783, @lbl3784+@lbl3783+ dbgloc 137+ ret 0+@lbl3784+ dbgloc 139+ %t6 =l call $writer__worker_count()+ storel %t6, %t7+ call $__sx_dbg_keep(l %t7)+ dbgvar "workers", "usize", %t7, 8, 5, 139+ dbgloc 140+ %t8 =l loadl %t7+ %t9 =l copy 1+ %t10 =w csltl %t8, %t9+ jnz %t10, @lbl3786, @lbl3787+@lbl3786+ dbgloc 141+ %t11 =l copy 1+ storel %t11, %t7+ jmp @lbl3787+@lbl3787+ dbgloc 143+ %t12 =l loadl %t7+ %t13 =w csgtl %t12, %t2+ jnz %t13, @lbl3789, @lbl3790+@lbl3789+ dbgloc 144+ storel %t2, %t7+ jmp @lbl3790+@lbl3790+ dbgloc 146+ call $memset(l %t14, w 0, l 8)+ %t16 =l copy 0+ %t17 =w cnel %t14, 0+ jnz %t17, @lbl3792, @lbl3793+@lbl3792+ %t15 =l call $malloc(l 0)+ call $memset(l %t15, w 0, l 0)+ call $memcpy(l %t15, l %t14, l 0)+ %t16 =l copy %t15+@lbl3793+ storel %t16, %t18+ call $__sx_dbg_keep(l %t18)+ dbgvar "ac", "allocators.HeapAllocator", %t18, 8, 5, 146+ dbgloc 147+ %t19 =l call $lists__new__GENMONO__ref_void()++ storel %t19, %t20+ call $__sx_dbg_keep(l %t20)+ dbgvar "thread_refs", "list[ref ]", %t20, 8, 5, 147+ dbgloc 148+ %t21 =l call $lists__new__GENMONO__ref_CompressJob()++ storel %t21, %t22+ call $__sx_dbg_keep(l %t22)+ dbgvar "jobs", "list[ref CompressJob]", %t22, 8, 5, 148+ dbgloc 149+ %t23 =l copy 0+ storel %t23, %t24+ call $__sx_dbg_keep(l %t24)+ dbgvar "w", "usize", %t24, 8, 5, 149+ dbgloc 150+ jmp @lbl3794+@lbl3794+ %t25 =l loadl %t24+ %t26 =l loadl %t7+ %t27 =w csltl %t25, %t26+ jnz %t27, @lbl3795, @lbl3797+@lbl3795+ dbgloc 151+ %t29 =l copy 24+ %t28 =l call $malloc(l %t29)+ %t30 =l copy %t28+ storel %t30, %t31+ call $__sx_dbg_keep(l %t31)+ dbgvar "job", "ref CompressJob", %t31, 8, 7, 151+ dbgloc 152+ %t32 =l loadl %t31+ storel %items, %t32+ dbgloc 153+ %t33 =l loadl %t24+ %t34 =l loadl %t31+ %t35 =l add %t34, 8+ storel %t33, %t35+ dbgloc 154+ %t36 =l loadl %t7+ %t37 =l loadl %t31+ %t38 =l add %t37, 16+ storel %t36, %t38+ dbgloc 155+ %t40 =l call $sxqbe_list_ensure(l %t22)+ %t41 =l loadl %t31+ %t42 =l add %t40, 8+ %t43 =l add %t40, 16+ %t44 =l loadl %t42+ %t45 =l loadl %t43+ %t47 =l add %t44, 1+ %t46 =w call $sxqbe_list_grow(l %t40, l %t47)+ %t48 =l call $sxqbe_list_buf(l %t40)+ %t49 =l mul %t44, 8+ %t50 =l add %t48, %t49+ storel %t41, %t50+ %t51 =l add %t44, 1+ storel %t51, %t42+ %t39 =l copy 0+ dbgloc 156+ %t52 =l copy $writer__compress_worker+ %t53 =l loadl %t31+ %t54 =l copy %t53+ %t55 =l call $std__thread__Thread__new__GENMONO__allocators__HeapAllocator(l %t56, l %t16, l %t52, l %t54)++ storel %t56, %t57+ call $__sx_dbg_keep(l %t57)+ dbgvar "tr", "result[ref , ThreadError]", %t57, 8, 5, 156+ dbgloc 157+ %t58 =l loadl %t56+ %t59 =w ceql %t58, 0+ jnz %t59, @lbl3798, @lbl3799+@lbl3798+ %t61 =l add %t56, 8+ %t60 =l loadl %t61+ dbgloc 159+ %t63 =l call $sxqbe_list_ensure(l %t20)+ %t64 =l add %t63, 8+ %t65 =l add %t63, 16+ %t66 =l loadl %t64+ %t67 =l loadl %t65+ %t69 =l add %t66, 1+ %t68 =w call $sxqbe_list_grow(l %t63, l %t69)+ %t70 =l call $sxqbe_list_buf(l %t63)+ %t71 =l mul %t66, 8+ %t72 =l add %t70, %t71+ storel %t60, %t72+ %t73 =l add %t66, 1+ storel %t73, %t64+ %t62 =l copy 0+ jmp @lbl3800+@lbl3799+ dbgloc 162+ %t74 =l loadl %t31+ %t75 =l copy %t74+ %t76 =l call $writer__compress_worker(l %t75)+ jmp @lbl3800+@lbl3800+ dbgloc 165+ %t77 =l loadl %t24+ %t78 =l add %t77, 1+ storel %t78, %t24+ jmp @lbl3796+@lbl3796+ jmp @lbl3794+@lbl3797+ dbgloc 167+ %t79 =l copy 0+ storel %t79, %t80+ call $__sx_dbg_keep(l %t80)+ dbgvar "j", "usize", %t80, 8, 5, 167+ dbgloc 168+ jmp @lbl3801+@lbl3801+ %t81 =l loadl %t80+ %t83 =l loadl %t20+ %t84 =l call $sxqbe_list_len(l %t83)+ %t85 =w csltl %t81, %t84+ jnz %t85, @lbl3802, @lbl3804+@lbl3802+ dbgloc 169+ storel 0, %t87+ %t88 =l loadl %t20+ %t89 =l loadl %t80+ %t90 =w call $sxqbe_list_valid(l %t88, l %t89)+ jnz %t90, @lbl3805, @lbl3806+@lbl3805+ %t91 =l call $sxqbe_list_buf(l %t88)+ %t92 =l mul %t89, 8+ %t93 =l add %t91, %t92+ %t94 =l loadl %t93+ %t95 =l add %t87, 8+ storel %t94, %t95+ storel 1, %t87+ jmp @lbl3807+@lbl3806+ jmp @lbl3807+@lbl3807+ storel %t87, %t96+ call $__sx_dbg_keep(l %t96)+ dbgvar "tr", "option[ref ]", %t96, 8, 5, 169+ dbgloc 170+ %t97 =l loadl %t87+ %t98 =w cnel %t97, 0+ jnz %t98, @lbl3808, @lbl3809+@lbl3808+ %t100 =l add %t87, 8+ %t99 =l loadl %t100+ dbgloc 171+ %t101 =l call $std__thread__Thread__join__GENMONO__allocators__HeapAllocator(l %t102, l %t16, l %t99)++ storel %t102, %t103+ call $__sx_dbg_keep(l %t103)+ dbgvar "joined", "result[ref , ThreadError]", %t103, 8, 5, 171+ dbgloc 172+ %t104 =l loadl %t102+ %t105 =w ceql %t104, 0+ jnz %t105, @lbl3811, @lbl3812+@lbl3811+ jmp @lbl3813+@lbl3812+ jmp @lbl3813+@lbl3813+ dbgloc 178+ %t106 =w call $std__allocators__HeapAllocator__free(l %t16, l %t99)+ jmp @lbl3810+@lbl3809+ jmp @lbl3810+@lbl3810+ dbgloc 180+ %t107 =l loadl %t80+ %t108 =l add %t107, 1+ storel %t108, %t80+ jmp @lbl3803+@lbl3803+ jmp @lbl3801+@lbl3804+ dbgloc 182+ %t109 =l copy 0+ storel %t109, %t110+ call $__sx_dbg_keep(l %t110)+ dbgvar "jf", "usize", %t110, 8, 5, 182+ dbgloc 183+ jmp @lbl3814+@lbl3814+ %t111 =l loadl %t110+ %t113 =l loadl %t22+ %t114 =l call $sxqbe_list_len(l %t113)+ %t115 =w csltl %t111, %t114+ jnz %t115, @lbl3815, @lbl3817+@lbl3815+ dbgloc 184+ storel 0, %t117+ %t118 =l loadl %t22+ %t119 =l loadl %t110+ %t120 =w call $sxqbe_list_valid(l %t118, l %t119)+ jnz %t120, @lbl3818, @lbl3819+@lbl3818+ %t121 =l call $sxqbe_list_buf(l %t118)+ %t122 =l mul %t119, 8+ %t123 =l add %t121, %t122+ %t124 =l loadl %t123+ %t125 =l add %t117, 8+ storel %t124, %t125+ storel 1, %t117+ jmp @lbl3820+@lbl3819+ jmp @lbl3820+@lbl3820+ storel %t117, %t126+ call $__sx_dbg_keep(l %t126)+ dbgvar "jo", "option[ref CompressJob]", %t126, 8, 5, 184+ dbgloc 185+ %t127 =l loadl %t117+ %t128 =w cnel %t127, 0+ jnz %t128, @lbl3821, @lbl3822+@lbl3821+ %t130 =l add %t117, 8+ %t129 =l loadl %t130+ dbgloc 186+ %t132 =l copy %t129+ call $free(l %t132)+ %t131 =l copy 0+ jmp @lbl3823+@lbl3822+ jmp @lbl3823+@lbl3823+ dbgloc 188+ %t133 =l loadl %t110+ %t134 =l add %t133, 1+ storel %t134, %t110+ jmp @lbl3816+@lbl3816+ jmp @lbl3814+@lbl3817+ dbgloc 190+ %t136 =l loadl %t22+ call $sxqbe_list_free(l %t136)+ %t135 =l copy 0+ dbgloc 191+ %t138 =l loadl %t20+ call $sxqbe_list_free(l %t138)+ %t137 =l copy 0+ ret 0+}++function l $writer__copy_id(l %id) {+@start+ %t0 =l alloc8 8+ %t4 =l alloc8 8+ dbgloc 194+ storel %id, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "id", "objid.Id", %t0, 8, 5, 194+ dbgloc 195+ %t2 =l copy 32+ %t1 =l call $malloc(l %t2)+ %t3 =l copy %t1+ storel %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "out", "ref u8", %t4, 8, 7, 195+ dbgloc 196+ %t6 =l copy %t3+ %t7 =l loadl %id+ %t8 =l copy %t7+ %t9 =l copy 32+ call $memcpy(l %t6, l %t8, l %t9)+ %t5 =l copy 0+ dbgloc 197+ %t10 =l call $objid__id(l %t3)+ ret %t10+}++function w $writer__free_meta_list(l %metas) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t16 =l alloc8 8+ %t20 =l alloc8 8+ dbgloc 200+ storel %metas, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "metas", "list[ref records.RecordMeta]", %t0, 8, 5, 200+ dbgloc 201+ storel 0, %t1+ %t2 =l call $sxqbe_list_len(l %metas)+@lbl3824+ %t3 =l loadl %t1+ %t4 =w csltl %t3, %t2+ jnz %t4, @lbl3825, @lbl3826+@lbl3825+ %t5 =l call $sxqbe_list_buf(l %metas)+ %t6 =l mul %t3, 8+ %t7 =l add %t5, %t6+ %t8 =l loadl %t7+ dbgloc 202+ %t9 =l add %t8, 0+ %t10 =l loadl %t9+ %t11 =l copy 0+ %t12 =w cnel %t10, %t11+ jnz %t12, @lbl3828, @lbl3829+@lbl3828+ dbgloc 203+ %t13 =l add %t8, 0+ %t14 =l loadl %t13+ %t15 =l copy %t14+ storel %t15, %t16+ call $__sx_dbg_keep(l %t16)+ dbgvar "ip", "ref ", %t16, 8, 7, 203+ dbgloc 204+ %t18 =l loadl %t16+ call $free(l %t18)+ %t17 =l copy 0+ jmp @lbl3829+@lbl3829+ dbgloc 206+ %t19 =l copy %t8+ storel %t19, %t20+ call $__sx_dbg_keep(l %t20)+ dbgvar "mp", "ref ", %t20, 8, 7, 206+ dbgloc 207+ %t22 =l loadl %t20+ call $free(l %t22)+ %t21 =l copy 0+@lbl3827+ %t23 =l add %t3, 1+ storel %t23, %t1+ jmp @lbl3824+@lbl3826+ dbgloc 209+ call $sxqbe_list_free(l %metas)+ %t24 =l copy 0+ ret 0+}++export function l $writer__open(l %__ret, l %repo) {+@start+ %t0 =l alloc8 8+ %t2 =l alloc8 8+ %t4 =l alloc8 8+ %t14 =l alloc8 8+ %t16 =l alloc8 8+ %t18 =l alloc8 8+ %t23 =l alloc8 8+ %t29 =l alloc8 16+ %t33 =l alloc8 8+ %t50 =l alloc8 8+ %t59 =l alloc8 16+ %t63 =l alloc8 8+ %t102 =l alloc8 16+ dbgloc 212+ storel %repo, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "repo", "layout.Repo", %t0, 8, 5, 212+ dbgloc 213+ %t1 =l call $layout__tmp_dir(l %repo)+ storel %t1, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "tmpdir", "str.StringView", %t2, 8, 5, 213+ dbgloc 214+ %t3 =l call $layout__packs_dir(l %repo)+ storel %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "packs", "str.StringView", %t4, 8, 5, 214+ dbgloc 215+ %t6 =l copy $__str238+ %t7 =l call $malloc(l 4096)+ %t13 =l call $std__time__now_ns()+ %t8 =w call $snprintf(l %t7, l 4096, l %t6, ..., l %t13)+ %t9 =l extsw %t8+ %t10 =l add %t9, 1+ %t11 =l call $malloc(l %t10)+ call $memcpy(l %t11, l %t7, l %t9)+ %t12 =l add %t11, %t9+ storeb 0, %t12+ call $free(l %t7)+ %t5 =l copy %t11+ storel %t5, %t14+ call $__sx_dbg_keep(l %t14)+ dbgvar "name_c", "ref u8", %t14, 8, 7, 215+ dbgloc 216+ %t15 =l call $std__str__from_cstr(l %t5)+ storel %t15, %t16+ call $__sx_dbg_keep(l %t16)+ dbgvar "name", "str.StringView", %t16, 8, 5, 216+ dbgloc 217+ %t17 =l call $files__join(l %t1, l %t15)+ storel %t17, %t18+ call $__sx_dbg_keep(l %t18)+ dbgvar "tmp", "str.StringView", %t18, 8, 5, 217+ dbgloc 218+ %t20 =l copy %t5+ call $free(l %t20)+ %t19 =l copy 0+ dbgloc 219+ %t21 =w call $native__open_rw(l %t17)+ %t22 =w copy %t21+ storew %t22, %t23+ call $__sx_dbg_keep(l %t23)+ dbgvar "fd", "i32", %t23, 4, 5, 219+ dbgloc 220+ %t24 =w copy 0+ %t25 =w csltw %t22, %t24+ jnz %t25, @lbl3831, @lbl3832+@lbl3831+ dbgloc 221+ %t26 =w call $files__free_path(l %t1)+ dbgloc 222+ %t27 =w call $files__free_path(l %t3)+ dbgloc 223+ %t28 =w call $files__free_path(l %t17)+ dbgloc 224+ storel 0, %t29+ call $memcpy(l %__ret, l %t29, l 16)+ ret %__ret+@lbl3832+ dbgloc 226+ %t30 =l copy 16+ %t31 =l call $buf__new(l %t30)+ %t32 =l call $malloc(l 24)+ call $memset(l %t32, w 0, l 24)+ call $memcpy(l %t32, l %t31, l 24)+ storel %t32, %t33+ call $__sx_dbg_keep(l %t33)+ dbgvar "header", "buf.Buf", %t33, 8, 5, 226+ dbgloc 227+ %t34 =l loadl %t33+ %t35 =l copy $__str223+ %t36 =l copy 4+ %t37 =w call $buf__Buf__put_raw(l %t34, l %t35, l %t36)+ dbgloc 228+ %t38 =l loadl %t33+ %t39 =l copy 1+ %t41 =w copy %t39+ %t40 =w call $buf__Buf__put_u32_le(l %t38, w %t41)+ dbgloc 229+ %t42 =l loadl %t33+ %t43 =l copy 0+ %t44 =w call $buf__Buf__put_u64_le(l %t42, l %t43)+ dbgloc 230+ %t45 =l loadl %t33+ %t46 =l call $buf__Buf__view(l %t45)+ %t47 =w call $native__write_fd_all(w %t22, l %t46)+ %t48 =w copy %t47+ %t49 =w extub %t48+ storew %t49, %t50+ call $__sx_dbg_keep(l %t50)+ dbgvar "wrote", "bool", %t50, 1, 7, 230+ dbgloc 231+ %t51 =w ceqw %t49, 0+ jnz %t51, @lbl3834, @lbl3835+@lbl3834+ dbgloc 232+ %t52 =l loadl %t33+ %t53 =w call $buf__Buf__free(l %t52)+ dbgloc 233+ %t54 =w call $native__close_fd(w %t22)+ dbgloc 234+ %t55 =w call $native__delete_file(l %t17)+ dbgloc 235+ %t56 =w call $files__free_path(l %t1)+ dbgloc 236+ %t57 =w call $files__free_path(l %t3)+ dbgloc 237+ %t58 =w call $files__free_path(l %t17)+ dbgloc 238+ storel 0, %t59+ call $memcpy(l %__ret, l %t59, l 16)+ ret %__ret+@lbl3835+ dbgloc 240+ %t61 =l copy 132+ %t60 =l call $malloc(l %t61)+ %t62 =l copy %t60+ storel %t62, %t63+ call $__sx_dbg_keep(l %t63)+ dbgvar "w", "ref Writer", %t63, 8, 7, 240+ dbgloc 241+ %t64 =l loadl %t63+ call $memcpy(l %t64, l %t17, l 16)+ dbgloc 242+ %t65 =l loadl %t63+ %t66 =l add %t65, 16+ call $memcpy(l %t66, l %t1, l 16)+ dbgloc 243+ %t67 =l loadl %t63+ %t68 =l add %t67, 32+ call $memcpy(l %t68, l %t3, l 16)+ dbgloc 244+ %t69 =l loadl %t63+ %t70 =l add %t69, 48+ storew %t22, %t70+ dbgloc 245+ %t71 =l copy 0+ %t72 =l loadl %t63+ %t73 =l add %t72, 52+ storel %t71, %t73+ dbgloc 246+ %t74 =l copy 16+ %t75 =l loadl %t63+ %t76 =l add %t75, 60+ storel %t74, %t76+ dbgloc 247+ %t77 =l call $lists__new__GENMONO__ref_records__RecordMeta()++ %t78 =l loadl %t63+ %t79 =l add %t78, 68+ storel %t77, %t79+ dbgloc 248+ %t80 =l call $lists__new__GENMONO__ref_PendingRecord()++ %t81 =l loadl %t63+ %t82 =l add %t81, 76+ storel %t80, %t82+ dbgloc 249+ %t83 =l copy 0+ %t84 =l loadl %t63+ %t85 =l add %t84, 84+ storel %t83, %t85+ dbgloc 250+ %t86 =l loadl %t33+ %t87 =w call $buf__Buf__free(l %t86)+ dbgloc 251+ %t88 =l copy 0+ %t89 =l loadl %t63+ %t90 =l add %t89, 92+ storew %t88, %t90+ dbgloc 252+ %t91 =l copy 1024+ %t92 =l call $idmap__new(l %t91)+ %t93 =l loadl %t63+ %t94 =l add %t93, 96+ call $memcpy(l %t94, l %t92, l 24)+ dbgloc 253+ %t95 =l call $lists__new__GENMONO__ref_CachedObj()++ %t96 =l loadl %t63+ %t97 =l add %t96, 120+ storel %t95, %t97+ dbgloc 254+ %t98 =l copy 0+ %t99 =l loadl %t63+ %t100 =l add %t99, 128+ storew %t98, %t100+ dbgloc 255+ %t101 =l loadl %t63+ call $memset(l %t102, w 0, l 16)+ storel 1, %t102+ %t103 =l add %t102, 8+ storel %t101, %t103+ call $memcpy(l %__ret, l %t102, l 16)+ ret %__ret+}++export function l $writer__add_known(l %w, w %kind, l %id, l %body) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t3 =l alloc8 8+ %t12 =l alloc8 8+ %t18 =l alloc8 8+ %t27 =l alloc8 8+ %t35 =l alloc4 1+ %t43 =l alloc8 8+ %t69 =l alloc8 8+ dbgloc 259+ storel %w, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "w", "Writer", %t0, 8, 5, 259+ storew %kind, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "kind", "u8", %t1, 1, 7, 259+ storel %id, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "id", "objid.Id", %t2, 8, 5, 259+ storel %body, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "body", "bytes.Bytes", %t3, 8, 5, 259+ dbgloc 260+ %t4 =l loadl %t0+ %t6 =l add %t4, 92+ %t5 =l loadub %t6+ jnz %t5, @lbl3837, @lbl3838+@lbl3837+ dbgloc 261+ %t7 =l loadl %body+ %t8 =l copy 0+ %t9 =w cnel %t7, %t8+ jnz %t9, @lbl3840, @lbl3841+@lbl3840+ dbgloc 262+ %t10 =l loadl %body+ %t11 =l copy %t10+ storel %t11, %t12+ call $__sx_dbg_keep(l %t12)+ dbgvar "bp", "ref ", %t12, 8, 7, 262+ dbgloc 263+ %t14 =l loadl %t12+ call $free(l %t14)+ %t13 =l copy 0+ jmp @lbl3841+@lbl3841+ dbgloc 265+ ret %id+@lbl3838+ dbgloc 267+ %t15 =l loadl %id+ %t16 =l copy 32+ %t17 =l call $bytes__bytes(l %t15, l %t16)+ storel %t17, %t18+ call $__sx_dbg_keep(l %t18)+ dbgvar "id_view", "bytes.Bytes", %t18, 8, 5, 267+ dbgloc 268+ %t19 =l loadl %t0+ %t20 =l add %t19, 96+ %t21 =w call $idmap__contains(l %t20, l %t17)+ jnz %t21, @lbl3843, @lbl3844+@lbl3843+ dbgloc 269+ %t22 =l loadl %body+ %t23 =l copy 0+ %t24 =w cnel %t22, %t23+ jnz %t24, @lbl3846, @lbl3847+@lbl3846+ dbgloc 270+ %t25 =l loadl %body+ %t26 =l copy %t25+ storel %t26, %t27+ call $__sx_dbg_keep(l %t27)+ dbgvar "bp2", "ref ", %t27, 8, 7, 270+ dbgloc 271+ %t29 =l loadl %t27+ call $free(l %t29)+ %t28 =l copy 0+ jmp @lbl3847+@lbl3847+ dbgloc 273+ ret %id+@lbl3844+ dbgloc 275+ %t30 =l loadl %t0+ %t31 =l add %t30, 96+ %t32 =w call $idmap__put(l %t31, l %t17)+ dbgloc 278+ %t33 =w copy 1+ %t34 =w cnew %kind, %t33+ storew %t34, %t35+ jnz %t34, @lbl3853, @lbl3852+@lbl3852+ %t36 =l loadl %t0+ %t38 =l add %t36, 128+ %t37 =l loadub %t38+ storew %t37, %t35+ jmp @lbl3853+@lbl3853+ %t39 =w loadw %t35+ jnz %t39, @lbl3849, @lbl3850+@lbl3849+ dbgloc 279+ %t41 =l copy 25+ %t40 =l call $malloc(l %t41)+ %t42 =l copy %t40+ storel %t42, %t43+ call $__sx_dbg_keep(l %t43)+ dbgvar "c", "ref CachedObj", %t43, 8, 7, 279+ dbgloc 280+ %t44 =l loadl %t43+ storeb %kind, %t44+ dbgloc 281+ %t45 =l call $writer__copy_id(l %id)+ %t46 =l loadl %t43+ %t47 =l add %t46, 1+ call $memcpy(l %t47, l %t45, l 8)+ dbgloc 282+ %t48 =l call $bytes__Bytes__dup(l %body)+ %t49 =l loadl %t43+ %t50 =l add %t49, 9+ call $memcpy(l %t50, l %t48, l 16)+ dbgloc 283+ %t52 =l loadl %t0+ %t53 =l add %t52, 120+ %t54 =l call $sxqbe_list_ensure(l %t53)+ %t55 =l loadl %t43+ %t56 =l add %t54, 8+ %t57 =l add %t54, 16+ %t58 =l loadl %t56+ %t59 =l loadl %t57+ %t61 =l add %t58, 1+ %t60 =w call $sxqbe_list_grow(l %t54, l %t61)+ %t62 =l call $sxqbe_list_buf(l %t54)+ %t63 =l mul %t58, 8+ %t64 =l add %t62, %t63+ storel %t55, %t64+ %t65 =l add %t58, 1+ storel %t65, %t56+ %t51 =l copy 0+ jmp @lbl3850+@lbl3850+ dbgloc 285+ %t67 =l copy 42+ %t66 =l call $malloc(l %t67)+ %t68 =l copy %t66+ storel %t68, %t69+ call $__sx_dbg_keep(l %t69)+ dbgvar "r", "ref PendingRecord", %t69, 8, 7, 285+ dbgloc 286+ %t70 =l call $writer__copy_id(l %id)+ %t71 =l loadl %t69+ call $memcpy(l %t71, l %t70, l 8)+ dbgloc 287+ %t72 =l loadl %t69+ %t73 =l add %t72, 8+ storeb %kind, %t73+ dbgloc 288+ %t74 =l loadl %t69+ %t75 =l add %t74, 9+ call $memcpy(l %t75, l %body, l 16)+ dbgloc 289+ %t76 =l call $bytes__empty()+ %t77 =l loadl %t69+ %t78 =l add %t77, 25+ call $memcpy(l %t78, l %t76, l 16)+ dbgloc 290+ %t79 =l copy 0+ %t80 =w copy %t79+ %t81 =l loadl %t69+ %t82 =l add %t81, 41+ storeb %t80, %t82+ dbgloc 291+ %t84 =l loadl %t0+ %t85 =l add %t84, 76+ %t86 =l call $sxqbe_list_ensure(l %t85)+ %t87 =l loadl %t69+ %t88 =l add %t86, 8+ %t89 =l add %t86, 16+ %t90 =l loadl %t88+ %t91 =l loadl %t89+ %t93 =l add %t90, 1+ %t92 =w call $sxqbe_list_grow(l %t86, l %t93)+ %t94 =l call $sxqbe_list_buf(l %t86)+ %t95 =l mul %t90, 8+ %t96 =l add %t94, %t95+ storel %t87, %t96+ %t97 =l add %t90, 1+ storel %t97, %t88+ %t83 =l copy 0+ dbgloc 292+ %t98 =l loadl %t0+ %t100 =l add %t98, 84+ %t99 =l loadl %t100+ %t102 =l add %body, 8+ %t101 =l loadl %t102+ %t103 =l add %t99, %t101+ %t104 =l loadl %t0+ %t105 =l add %t104, 84+ storel %t103, %t105+ dbgloc 293+ %t106 =l loadl %t0+ %t108 =l add %t106, 84+ %t107 =l loadl %t108+ %t109 =l copy 268435456+ %t111 =w csltl %t107, %t109+ %t110 =w ceqw %t111, 0+ jnz %t110, @lbl3854, @lbl3855+@lbl3854+ dbgloc 294+ %t112 =l loadl %t0+ %t113 =w call $writer__write_pending(l %t112)+ %t114 =w ceqw %t113, 0+ jnz %t114, @lbl3857, @lbl3858+@lbl3857+ dbgloc 295+ %t115 =l copy 1+ %t116 =l loadl %t0+ %t117 =l add %t116, 92+ storew %t115, %t117+ jmp @lbl3858+@lbl3858+ jmp @lbl3855+@lbl3855+ dbgloc 298+ ret %id+}++export function l $writer__add(l %w, w %kind, l %body) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t4 =l alloc8 8+ dbgloc 302+ storel %w, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "w", "Writer", %t0, 8, 5, 302+ storew %kind, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "kind", "u8", %t1, 1, 7, 302+ storel %body, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "body", "bytes.Bytes", %t2, 8, 5, 302+ dbgloc 303+ %t3 =l call $objid__object_id(w %kind, l %body)+ storel %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "id", "objid.Id", %t4, 8, 5, 303+ dbgloc 304+ %t5 =l loadl %t0+ %t6 =l call $writer__add_known(l %t5, w %kind, l %t3, l %body)+ ret %t6+}++function w $writer__free_writer(l %w) {+@start+ %t0 =l alloc8 8+ dbgloc 307+ storel %w, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "w", "ref Writer", %t0, 8, 7, 307+ dbgloc 308+ %t1 =l loadl %t0+ %t3 =l add %t1, 48+ %t2 =l loadsw %t3+ %t4 =w copy 0+ %t6 =w csltw %t2, %t4+ %t5 =w ceqw %t6, 0+ jnz %t5, @lbl3860, @lbl3861+@lbl3860+ dbgloc 309+ %t7 =l loadl %t0+ %t9 =l add %t7, 48+ %t8 =l loadsw %t9+ %t10 =w call $native__close_fd(w %t8)+ dbgloc 310+ %t11 =l copy 1+ %t12 =l neg %t11+ %t13 =w copy %t12+ %t14 =l loadl %t0+ %t15 =l add %t14, 48+ storew %t13, %t15+ jmp @lbl3861+@lbl3861+ dbgloc 312+ %t16 =l loadl %t0+ %t18 =l add %t16, 68+ %t17 =l loadl %t18+ %t19 =w call $writer__free_meta_list(l %t17)+ dbgloc 313+ %t20 =l loadl %t0+ %t22 =l add %t20, 120+ %t21 =l loadl %t22+ %t23 =w call $writer__free_cached(l %t21)+ dbgloc 314+ %t25 =l loadl %t0+ %t26 =l add %t25, 76+ %t27 =l loadl %t26+ %t28 =l call $sxqbe_list_len(l %t27)+ %t29 =l copy 0+ %t30 =w csgtl %t28, %t29+ jnz %t30, @lbl3863, @lbl3865+@lbl3863+ dbgloc 315+ %t31 =l loadl %t0+ %t33 =l add %t31, 76+ %t32 =l loadl %t33+ %t34 =w call $writer__free_items(l %t32)+ jmp @lbl3864+@lbl3865+ dbgloc 317+ %t36 =l loadl %t0+ %t38 =l add %t36, 76+ %t37 =l loadl %t38+ call $sxqbe_list_free(l %t37)+ %t35 =l copy 0+ jmp @lbl3864+@lbl3864+ dbgloc 319+ %t39 =l loadl %t0+ %t40 =l add %t39, 96+ %t41 =w call $idmap__free(l %t40)+ dbgloc 320+ %t42 =l loadl %t0+ %t43 =l add %t42, 0+ %t44 =l loadl %t43+ %t45 =l copy 0+ %t46 =w cnel %t44, %t45+ jnz %t46, @lbl3866, @lbl3867+@lbl3866+ dbgloc 321+ %t47 =l loadl %t0+ %t48 =l add %t47, 0+ %t49 =w call $files__free_path(l %t48)+ jmp @lbl3867+@lbl3867+ dbgloc 323+ %t50 =l loadl %t0+ %t51 =l add %t50, 16+ %t52 =l loadl %t51+ %t53 =l copy 0+ %t54 =w cnel %t52, %t53+ jnz %t54, @lbl3869, @lbl3870+@lbl3869+ dbgloc 324+ %t55 =l loadl %t0+ %t56 =l add %t55, 16+ %t57 =w call $files__free_path(l %t56)+ jmp @lbl3870+@lbl3870+ dbgloc 326+ %t58 =l loadl %t0+ %t59 =l add %t58, 32+ %t60 =l loadl %t59+ %t61 =l copy 0+ %t62 =w cnel %t60, %t61+ jnz %t62, @lbl3872, @lbl3873+@lbl3872+ dbgloc 327+ %t63 =l loadl %t0+ %t64 =l add %t63, 32+ %t65 =w call $files__free_path(l %t64)+ jmp @lbl3873+@lbl3873+ dbgloc 329+ %t67 =l loadl %t0+ %t68 =l copy %t67+ call $free(l %t68)+ %t66 =l copy 0+ ret 0+}++export function w $writer__abort(l %w) {+@start+ %t0 =l alloc8 8+ dbgloc 332+ storel %w, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "w", "ref Writer", %t0, 8, 7, 332+ dbgloc 333+ %t1 =l loadl %t0+ %t3 =l add %t1, 92+ %t2 =l loadub %t3+ %t4 =w ceqw %t2, 0+ jnz %t4, @lbl3875, @lbl3876+@lbl3875+ dbgloc 334+ %t5 =l copy 1+ %t6 =l loadl %t0+ %t7 =l add %t6, 92+ storew %t5, %t7+ jmp @lbl3876+@lbl3876+ dbgloc 336+ %t8 =l loadl %t0+ %t10 =l add %t8, 48+ %t9 =l loadsw %t10+ %t11 =w copy 0+ %t13 =w csltw %t9, %t11+ %t12 =w ceqw %t13, 0+ jnz %t12, @lbl3878, @lbl3879+@lbl3878+ dbgloc 337+ %t14 =l loadl %t0+ %t16 =l add %t14, 48+ %t15 =l loadsw %t16+ %t17 =w call $native__close_fd(w %t15)+ dbgloc 338+ %t18 =l copy 1+ %t19 =l neg %t18+ %t20 =w copy %t19+ %t21 =l loadl %t0+ %t22 =l add %t21, 48+ storew %t20, %t22+ jmp @lbl3879+@lbl3879+ dbgloc 340+ %t23 =l loadl %t0+ %t24 =l add %t23, 0+ %t25 =w call $native__delete_file(l %t24)+ dbgloc 341+ %t26 =l loadl %t0+ %t27 =w call $writer__free_writer(l %t26)+ ret 0+}++function w $writer__write_pending(l %w) {+@start+ %t0 =l alloc8 8+ %t14 =l alloc8 8+ %t18 =l alloc8 8+ %t22 =l alloc8 8+ %t31 =l alloc8 16+ %t42 =l alloc8 8+ %t76 =l alloc8 8+ dbgloc 344+ storel %w, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "w", "ref Writer", %t0, 8, 7, 344+ dbgloc 345+ %t2 =l loadl %t0+ %t3 =l add %t2, 76+ %t4 =l loadl %t3+ %t5 =l call $sxqbe_list_len(l %t4)+ %t6 =l copy 0+ %t7 =w ceql %t5, %t6+ jnz %t7, @lbl3881, @lbl3882+@lbl3881+ dbgloc 346+ %t8 =l copy 1+ ret %t8+@lbl3882+ dbgloc 348+ %t9 =l loadl %t0+ %t11 =l add %t9, 76+ %t10 =l loadl %t11+ %t12 =w call $writer__compress_items(l %t10)+ dbgloc 349+ %t13 =l copy 0+ storel %t13, %t14+ call $__sx_dbg_keep(l %t14)+ dbgvar "i", "usize", %t14, 8, 5, 349+ dbgloc 350+ %t15 =l copy 8388608+ %t16 =l call $buf__new(l %t15)+ %t17 =l call $malloc(l 24)+ call $memset(l %t17, w 0, l 24)+ call $memcpy(l %t17, l %t16, l 24)+ storel %t17, %t18+ call $__sx_dbg_keep(l %t18)+ dbgvar "out", "buf.Buf", %t18, 8, 5, 350+ dbgloc 351+ %t19 =l copy 64+ %t20 =l call $buf__new(l %t19)+ %t21 =l call $malloc(l 24)+ call $memset(l %t21, w 0, l 24)+ call $memcpy(l %t21, l %t20, l 24)+ storel %t21, %t22+ call $__sx_dbg_keep(l %t22)+ dbgvar "header", "buf.Buf", %t22, 8, 5, 351+ dbgloc 352+ jmp @lbl3884+@lbl3884+ %t23 =l loadl %t14+ %t25 =l loadl %t0+ %t26 =l add %t25, 76+ %t27 =l loadl %t26+ %t28 =l call $sxqbe_list_len(l %t27)+ %t29 =w csltl %t23, %t28+ jnz %t29, @lbl3885, @lbl3887+@lbl3885+ dbgloc 353+ storel 0, %t31+ %t32 =l loadl %t0+ %t33 =l add %t32, 76+ %t34 =l loadl %t33+ %t35 =l loadl %t14+ %t36 =w call $sxqbe_list_valid(l %t34, l %t35)+ jnz %t36, @lbl3888, @lbl3889+@lbl3888+ %t37 =l call $sxqbe_list_buf(l %t34)+ %t38 =l mul %t35, 8+ %t39 =l add %t37, %t38+ %t40 =l loadl %t39+ %t41 =l add %t31, 8+ storel %t40, %t41+ storel 1, %t31+ jmp @lbl3890+@lbl3889+ jmp @lbl3890+@lbl3890+ storel %t31, %t42+ call $__sx_dbg_keep(l %t42)+ dbgvar "item", "option[ref PendingRecord]", %t42, 8, 5, 353+ dbgloc 354+ %t43 =l loadl %t31+ %t44 =w cnel %t43, 0+ jnz %t44, @lbl3891, @lbl3892+@lbl3891+ %t46 =l add %t31, 8+ %t45 =l loadl %t46+ dbgloc 355+ %t47 =l loadl %t22+ %t48 =w call $buf__Buf__reset(l %t47)+ dbgloc 356+ %t49 =l loadl %t22+ %t50 =l add %t45, 0+ %t51 =l loadl %t50+ %t52 =w call $buf__Buf__put_id(l %t49, l %t51)+ dbgloc 357+ %t53 =l loadl %t22+ %t55 =l add %t45, 8+ %t54 =l loadub %t55+ %t56 =w call $buf__Buf__put_u8(l %t53, w %t54)+ dbgloc 358+ %t57 =l loadl %t22+ %t59 =l add %t45, 41+ %t58 =l loadub %t59+ %t60 =w call $buf__Buf__put_u8(l %t57, w %t58)+ dbgloc 359+ %t61 =l loadl %t22+ %t62 =l add %t45, 9+ %t64 =l add %t62, 8+ %t63 =l loadl %t64+ %t65 =l copy %t63+ %t66 =w call $buf__Buf__put_varint(l %t61, l %t65)+ dbgloc 360+ %t67 =l loadl %t22+ %t68 =l add %t45, 25+ %t70 =l add %t68, 8+ %t69 =l loadl %t70+ %t71 =l copy %t69+ %t72 =w call $buf__Buf__put_varint(l %t67, l %t71)+ dbgloc 361+ %t73 =l loadl %t0+ %t75 =l add %t73, 60+ %t74 =l loadl %t75+ storel %t74, %t76+ call $__sx_dbg_keep(l %t76)+ dbgvar "start", "u64", %t76, 8, 7, 361+ dbgloc 362+ %t77 =l loadl %t18+ %t78 =l loadl %t22+ %t79 =l call $buf__Buf__view(l %t78)+ %t80 =w call $buf__Buf__put_bytes(l %t77, l %t79)+ dbgloc 363+ %t81 =l loadl %t18+ %t82 =l add %t45, 25+ %t83 =w call $buf__Buf__put_bytes(l %t81, l %t82)+ dbgloc 364+ %t85 =l loadl %t0+ %t86 =l add %t85, 68+ %t87 =l call $sxqbe_list_ensure(l %t86)+ %t88 =l add %t45, 0+ %t89 =l call $writer__copy_id(l %t88)+ %t91 =l add %t45, 8+ %t90 =l loadub %t91+ %t92 =l add %t45, 9+ %t94 =l add %t92, 8+ %t93 =l loadl %t94+ %t95 =l copy %t93+ %t96 =l call $records__record_meta(l %t89, l %t74, w %t90, l %t95)+ %t97 =l add %t87, 8+ %t98 =l add %t87, 16+ %t99 =l loadl %t97+ %t100 =l loadl %t98+ %t102 =l add %t99, 1+ %t101 =w call $sxqbe_list_grow(l %t87, l %t102)+ %t103 =l call $sxqbe_list_buf(l %t87)+ %t104 =l mul %t99, 8+ %t105 =l add %t103, %t104+ storel %t96, %t105+ %t106 =l add %t99, 1+ storel %t106, %t97+ %t84 =l copy 0+ dbgloc 365+ %t107 =l loadl %t0+ %t109 =l add %t107, 52+ %t108 =l loadl %t109+ %t110 =l add %t108, 1+ %t111 =l loadl %t0+ %t112 =l add %t111, 52+ storel %t110, %t112+ dbgloc 366+ %t113 =l loadl %t22+ %t115 =l add %t113, 8+ %t114 =l loadl %t115+ %t116 =l copy %t114+ %t117 =l add %t74, %t116+ %t118 =l add %t45, 25+ %t120 =l add %t118, 8+ %t119 =l loadl %t120+ %t121 =l copy %t119+ %t122 =l add %t117, %t121+ %t123 =l loadl %t0+ %t124 =l add %t123, 60+ storel %t122, %t124+ dbgloc 367+ %t125 =l loadl %t18+ %t127 =l add %t125, 8+ %t126 =l loadl %t127+ %t128 =l copy 8388608+ %t130 =w csltl %t126, %t128+ %t129 =w ceqw %t130, 0+ jnz %t129, @lbl3894, @lbl3895+@lbl3894+ dbgloc 368+ %t131 =l loadl %t0+ %t133 =l add %t131, 48+ %t132 =l loadsw %t133+ %t134 =l loadl %t18+ %t135 =l call $buf__Buf__view(l %t134)+ %t136 =w call $native__write_fd_all(w %t132, l %t135)+ %t137 =w ceqw %t136, 0+ jnz %t137, @lbl3897, @lbl3898+@lbl3897+ dbgloc 369+ %t138 =l copy 1+ %t139 =l loadl %t0+ %t140 =l add %t139, 92+ storew %t138, %t140+ jmp @lbl3898+@lbl3898+ dbgloc 371+ %t141 =l loadl %t18+ %t142 =w call $buf__Buf__reset(l %t141)+ jmp @lbl3895+@lbl3895+ jmp @lbl3893+@lbl3892+ jmp @lbl3893+@lbl3893+ dbgloc 374+ %t143 =l loadl %t14+ %t144 =l add %t143, 1+ storel %t144, %t14+ jmp @lbl3886+@lbl3886+ jmp @lbl3884+@lbl3887+ dbgloc 376+ %t145 =l loadl %t18+ %t147 =l add %t145, 8+ %t146 =l loadl %t147+ %t148 =l copy 0+ %t149 =w csgtl %t146, %t148+ jnz %t149, @lbl3900, @lbl3901+@lbl3900+ dbgloc 377+ %t150 =l loadl %t0+ %t152 =l add %t150, 48+ %t151 =l loadsw %t152+ %t153 =l loadl %t18+ %t154 =l call $buf__Buf__view(l %t153)+ %t155 =w call $native__write_fd_all(w %t151, l %t154)+ %t156 =w ceqw %t155, 0+ jnz %t156, @lbl3903, @lbl3904+@lbl3903+ dbgloc 378+ %t157 =l copy 1+ %t158 =l loadl %t0+ %t159 =l add %t158, 92+ storew %t157, %t159+ jmp @lbl3904+@lbl3904+ dbgloc 380+ %t160 =l loadl %t18+ %t161 =w call $buf__Buf__reset(l %t160)+ jmp @lbl3901+@lbl3901+ dbgloc 382+ %t162 =l loadl %t18+ %t163 =w call $buf__Buf__free(l %t162)+ dbgloc 383+ %t164 =l loadl %t22+ %t165 =w call $buf__Buf__free(l %t164)+ dbgloc 384+ %t166 =l loadl %t0+ %t168 =l add %t166, 92+ %t167 =l loadub %t168+ jnz %t167, @lbl3906, @lbl3907+@lbl3906+ dbgloc 385+ %t169 =l copy 0+ ret %t169+@lbl3907+ dbgloc 387+ %t170 =l loadl %t0+ %t172 =l add %t170, 76+ %t171 =l loadl %t172+ %t173 =w call $writer__free_items(l %t171)+ dbgloc 388+ %t174 =l call $lists__new__GENMONO__ref_PendingRecord()++ %t175 =l loadl %t0+ %t176 =l add %t175, 76+ storel %t174, %t176+ dbgloc 389+ %t177 =l copy 0+ %t178 =l loadl %t0+ %t179 =l add %t178, 84+ storel %t177, %t179+ dbgloc 390+ %t180 =l copy 1+ ret %t180+}++export function w $writer__enable_chunk_cache(l %w) {+@start+ %t0 =l alloc8 8+ dbgloc 393+ storel %w, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "w", "Writer", %t0, 8, 5, 393+ dbgloc 394+ %t1 =l copy 1+ %t2 =l loadl %t0+ %t3 =l add %t2, 128+ storew %t1, %t3+ ret 0+}++export function l $writer__find_cached(l %__ret, l %w, w %kind, l %id) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t5 =l alloc8 8+ %t17 =l alloc4 1+ %t22 =l alloc8 16+ %t25 =l alloc8 16+ dbgloc 399+ storel %w, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "w", "ref Writer", %t0, 8, 7, 399+ storew %kind, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "kind", "u8", %t1, 1, 7, 399+ storel %id, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "id", "objid.Id", %t2, 8, 5, 399+ dbgloc 400+ %t4 =l add %w, 120+ %t3 =l loadl %t4+ storel 0, %t5+ %t6 =l call $sxqbe_list_len(l %t3)+@lbl3909+ %t7 =l loadl %t5+ %t8 =w csltl %t7, %t6+ jnz %t8, @lbl3910, @lbl3911+@lbl3910+ %t9 =l call $sxqbe_list_buf(l %t3)+ %t10 =l mul %t7, 8+ %t11 =l add %t9, %t10+ %t12 =l loadl %t11+ dbgloc 401+ %t13 =l loadub %t12+ %t14 =l extsw %t13+ %t15 =l extsw %kind+ %t16 =w ceqw %t14, %t15+ storew %t16, %t17+ jnz %t16, @lbl3916, @lbl3917+@lbl3916+ %t18 =l add %t12, 1+ %t19 =w call $objid__Id__eql(l %t18, l %id)+ storew %t19, %t17+ jmp @lbl3917+@lbl3917+ %t20 =w loadw %t17+ jnz %t20, @lbl3913, @lbl3914+@lbl3913+ dbgloc 402+ %t21 =l add %t12, 9+ call $memset(l %t22, w 0, l 16)+ storel 1, %t22+ %t23 =l add %t22, 8+ storel %t21, %t23+ call $memcpy(l %__ret, l %t22, l 16)+ ret %__ret+@lbl3914+@lbl3912+ %t24 =l add %t7, 1+ storel %t24, %t5+ jmp @lbl3909+@lbl3911+ dbgloc 405+ storel 0, %t25+ call $memcpy(l %__ret, l %t25, l 16)+ ret %__ret+}++export function w $writer__finish(l %w) {+@start+ %t0 =l alloc8 8+ %t16 =l alloc8 8+ %t32 =l alloc8 8+ %t50 =l alloc8 8+ %t55 =l alloc8 8+ %t59 =l alloc8 8+ %t65 =l alloc8 8+ %t78 =l alloc8 8+ %t93 =l alloc8 8+ %t104 =l alloc8 8+ %t111 =l alloc8 8+ %t122 =l alloc4 1+ %t136 =l alloc8 8+ %t144 =l alloc8 8+ %t148 =l alloc8 8+ %t152 =l alloc8 8+ %t156 =l alloc8 8+ %t160 =l alloc8 8+ %t166 =l alloc8 8+ %t193 =l alloc8 8+ %t197 =l alloc8 8+ %t201 =l alloc8 8+ %t209 =l alloc8 8+ %t212 =l alloc8 8+ dbgloc 409+ storel %w, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "w", "ref Writer", %t0, 8, 7, 409+ dbgloc 410+ %t1 =l loadl %t0+ %t3 =l add %t1, 92+ %t2 =l loadub %t3+ jnz %t2, @lbl3918, @lbl3919+@lbl3918+ dbgloc 411+ %t4 =l loadl %t0+ %t5 =w call $writer__abort(l %t4)+ dbgloc 412+ %t6 =l copy 0+ ret %t6+@lbl3919+ dbgloc 414+ %t7 =l loadl %t0+ %t8 =w call $writer__write_pending(l %t7)+ %t9 =w ceqw %t8, 0+ jnz %t9, @lbl3921, @lbl3922+@lbl3921+ dbgloc 415+ %t10 =l loadl %t0+ %t11 =w call $writer__abort(l %t10)+ dbgloc 416+ %t12 =l copy 0+ ret %t12+@lbl3922+ dbgloc 419+ %t13 =l copy 8+ %t14 =l call $buf__new(l %t13)+ %t15 =l call $malloc(l 24)+ call $memset(l %t15, w 0, l 24)+ call $memcpy(l %t15, l %t14, l 24)+ storel %t15, %t16+ call $__sx_dbg_keep(l %t16)+ dbgvar "count_buf", "buf.Buf", %t16, 8, 5, 419+ dbgloc 420+ %t17 =l loadl %t16+ %t18 =l loadl %t0+ %t20 =l add %t18, 52+ %t19 =l loadl %t20+ %t21 =l copy %t19+ %t22 =w call $buf__Buf__put_u64_le(l %t17, l %t21)+ dbgloc 421+ %t23 =l loadl %t0+ %t25 =l add %t23, 48+ %t24 =l loadsw %t25+ %t26 =l copy 8+ %t27 =l loadl %t16+ %t28 =l call $buf__Buf__view(l %t27)+ %t29 =w call $native__pwrite_fd_all(w %t24, l %t26, l %t28)+ %t30 =w copy %t29+ %t31 =w extub %t30+ storew %t31, %t32+ call $__sx_dbg_keep(l %t32)+ dbgvar "patched", "bool", %t32, 1, 7, 421+ dbgloc 422+ %t33 =l loadl %t16+ %t34 =w call $buf__Buf__free(l %t33)+ dbgloc 423+ %t35 =w ceqw %t31, 0+ jnz %t35, @lbl3924, @lbl3925+@lbl3924+ dbgloc 424+ %t36 =l loadl %t0+ %t37 =w call $writer__abort(l %t36)+ dbgloc 425+ %t38 =l copy 0+ ret %t38+@lbl3925+ dbgloc 428+ %t39 =l loadl %t0+ %t41 =l add %t39, 48+ %t40 =l loadsw %t41+ %t42 =l copy 0+ %t43 =w call $native__seek_set(w %t40, l %t42)+ %t44 =w ceqw %t43, 0+ jnz %t44, @lbl3927, @lbl3928+@lbl3927+ dbgloc 429+ %t45 =l loadl %t0+ %t46 =w call $writer__abort(l %t45)+ dbgloc 430+ %t47 =l copy 0+ ret %t47+@lbl3928+ dbgloc 432+ %t49 =l call $b3__hasher_state_size()+ %t48 =l call $malloc(l %t49)+ storel %t48, %t50+ call $__sx_dbg_keep(l %t50)+ dbgvar "state", "ref ", %t50, 8, 7, 432+ dbgloc 433+ %t51 =w call $b3__hasher_init(l %t48)+ dbgloc 434+ %t53 =l copy 1048576+ %t52 =l call $malloc(l %t53)+ %t54 =l copy %t52+ storel %t54, %t55+ call $__sx_dbg_keep(l %t55)+ dbgvar "chunk", "ref u8", %t55, 8, 7, 434+ dbgloc 435+ %t56 =l copy 1+ %t57 =w copy %t56+ %t58 =w extub %t57+ storew %t58, %t59+ call $__sx_dbg_keep(l %t59)+ dbgvar "hashed", "bool", %t59, 1, 7, 435+ dbgloc 436+ jmp @lbl3930+@lbl3930+ jmp @lbl3931+@lbl3931+ dbgloc 437+ %t60 =l loadl %t0+ %t62 =l add %t60, 48+ %t61 =l loadsw %t62+ %t63 =l copy 1048576+ %t64 =l call $native__read_fd(w %t61, l %t54, l %t63)+ storel %t64, %t65+ call $__sx_dbg_keep(l %t65)+ dbgvar "n", "i64", %t65, 8, 5, 437+ dbgloc 438+ %t66 =l copy 0+ %t67 =w csltl %t64, %t66+ jnz %t67, @lbl3934, @lbl3935+@lbl3934+ dbgloc 439+ %t68 =l copy 0+ %t69 =w copy %t68+ %t70 =w extub %t69+ storew %t70, %t59+ dbgloc 440+ jmp @lbl3933+@lbl3935+ dbgloc 442+ %t71 =l copy 0+ %t72 =w ceql %t64, %t71+ jnz %t72, @lbl3937, @lbl3938+@lbl3937+ dbgloc 443+ jmp @lbl3933+@lbl3938+ dbgloc 445+ %t73 =l copy %t64+ %t74 =w call $b3__hasher_update(l %t48, l %t54, l %t73)+ jmp @lbl3932+@lbl3932+ jmp @lbl3930+@lbl3933+ dbgloc 447+ %t76 =l copy 32+ %t75 =l call $malloc(l %t76)+ %t77 =l copy %t75+ storel %t77, %t78+ call $__sx_dbg_keep(l %t78)+ dbgvar "digest", "ref u8", %t78, 8, 7, 447+ dbgloc 448+ %t79 =w call $b3__hasher_final(l %t48, l %t77)+ dbgloc 449+ call $free(l %t48)+ %t80 =l copy 0+ dbgloc 450+ %t82 =l copy %t54+ call $free(l %t82)+ %t81 =l copy 0+ dbgloc 451+ %t84 =w loadw %t59+ %t83 =l extsw %t84+ %t85 =w ceqw %t83, 0+ jnz %t85, @lbl3940, @lbl3941+@lbl3940+ dbgloc 452+ %t87 =l copy %t77+ call $free(l %t87)+ %t86 =l copy 0+ dbgloc 453+ %t88 =l loadl %t0+ %t89 =w call $writer__abort(l %t88)+ dbgloc 454+ %t90 =l copy 0+ ret %t90+@lbl3941+ dbgloc 456+ %t91 =l copy 32+ %t92 =l call $bytes__bytes(l %t77, l %t91)+ storel %t92, %t93+ call $__sx_dbg_keep(l %t93)+ dbgvar "trailer", "bytes.Bytes", %t93, 8, 5, 456+ dbgloc 457+ %t94 =l loadl %t0+ %t96 =l add %t94, 48+ %t95 =l loadsw %t96+ %t97 =l loadl %t0+ %t99 =l add %t97, 60+ %t98 =l loadl %t99+ %t100 =l copy %t98+ %t101 =w call $native__pwrite_fd_all(w %t95, l %t100, l %t92)+ %t102 =w copy %t101+ %t103 =w extub %t102+ storew %t103, %t104+ call $__sx_dbg_keep(l %t104)+ dbgvar "wrote_trailer", "bool", %t104, 1, 7, 457+ dbgloc 458+ %t105 =l loadl %t0+ %t107 =l add %t105, 48+ %t106 =l loadsw %t107+ %t108 =w call $native__fsync_fd(w %t106)+ %t109 =w copy %t108+ %t110 =w extub %t109+ storew %t110, %t111+ call $__sx_dbg_keep(l %t111)+ dbgvar "synced", "bool", %t111, 1, 7, 458+ dbgloc 459+ %t112 =l loadl %t0+ %t114 =l add %t112, 48+ %t113 =l loadsw %t114+ %t115 =w call $native__close_fd(w %t113)+ dbgloc 460+ %t116 =l copy 1+ %t117 =l neg %t116+ %t118 =w copy %t117+ %t119 =l loadl %t0+ %t120 =l add %t119, 48+ storew %t118, %t120+ dbgloc 461+ %t121 =w ceqw %t103, 0+ storew %t121, %t122+ jnz %t121, @lbl3947, @lbl3946+@lbl3946+ %t123 =w ceqw %t110, 0+ storew %t123, %t122+ jmp @lbl3947+@lbl3947+ %t124 =w loadw %t122+ jnz %t124, @lbl3943, @lbl3944+@lbl3943+ dbgloc 462+ %t126 =l copy %t77+ call $free(l %t126)+ %t125 =l copy 0+ dbgloc 463+ %t127 =l loadl %t0+ %t128 =l add %t127, 0+ %t129 =w call $native__delete_file(l %t128)+ dbgloc 464+ %t130 =l loadl %t0+ %t131 =w call $writer__free_writer(l %t130)+ dbgloc 465+ %t132 =l copy 0+ ret %t132+@lbl3944+ dbgloc 468+ %t134 =l copy 65+ %t133 =l call $malloc(l %t134)+ %t135 =l copy %t133+ storel %t135, %t136+ call $__sx_dbg_keep(l %t136)+ dbgvar "hex", "ref u8", %t136, 8, 7, 468+ dbgloc 469+ %t137 =l copy 32+ %t138 =w call $objid__hex_encode(l %t77, l %t137, l %t135)+ dbgloc 470+ %t141 =l copy 64+ %t140 =l add %t135, %t141+ %t142 =l copy 0+ storeb %t142, %t140+ %t139 =l copy 0+ dbgloc 471+ %t143 =l call $std__str__from_cstr(l %t135)+ storel %t143, %t144+ call $__sx_dbg_keep(l %t144)+ dbgvar "pack_name", "str.StringView", %t144, 8, 5, 471+ dbgloc 472+ %t145 =l copy $__str230+ %t146 =l call $std__str__from_cstr(l %t145)+ %t147 =l call $files__with_suffix(l %t143, l %t146)+ storel %t147, %t148+ call $__sx_dbg_keep(l %t148)+ dbgvar "pack_file", "str.StringView", %t148, 8, 5, 472+ dbgloc 473+ %t149 =l copy $__str225+ %t150 =l call $std__str__from_cstr(l %t149)+ %t151 =l call $files__with_suffix(l %t143, l %t150)+ storel %t151, %t152+ call $__sx_dbg_keep(l %t152)+ dbgvar "idx_file", "str.StringView", %t152, 8, 5, 473+ dbgloc 474+ %t153 =l loadl %t0+ %t154 =l add %t153, 32+ %t155 =l call $files__join(l %t154, l %t147)+ storel %t155, %t156+ call $__sx_dbg_keep(l %t156)+ dbgvar "pack_final", "str.StringView", %t156, 8, 5, 474+ dbgloc 475+ %t157 =l loadl %t0+ %t158 =l add %t157, 32+ %t159 =l call $files__join(l %t158, l %t151)+ storel %t159, %t160+ call $__sx_dbg_keep(l %t160)+ dbgvar "idx_final", "str.StringView", %t160, 8, 5, 475+ dbgloc 476+ %t161 =l loadl %t0+ %t162 =l add %t161, 0+ %t163 =w call $native__rename_file(l %t162, l %t155)+ %t164 =w copy %t163+ %t165 =w extub %t164+ storew %t165, %t166+ call $__sx_dbg_keep(l %t166)+ dbgvar "renamed", "bool", %t166, 1, 7, 476+ dbgloc 477+ %t167 =w ceqw %t165, 0+ jnz %t167, @lbl3948, @lbl3949+@lbl3948+ dbgloc 478+ %t169 =l copy %t135+ call $free(l %t169)+ %t168 =l copy 0+ dbgloc 479+ %t171 =l copy %t77+ call $free(l %t171)+ %t170 =l copy 0+ dbgloc 480+ %t172 =w call $files__free_path(l %t147)+ dbgloc 481+ %t173 =w call $files__free_path(l %t151)+ dbgloc 482+ %t174 =w call $files__free_path(l %t155)+ dbgloc 483+ %t175 =w call $files__free_path(l %t159)+ dbgloc 484+ %t176 =l loadl %t0+ %t177 =l add %t176, 0+ %t178 =w call $native__delete_file(l %t177)+ dbgloc 485+ %t179 =l loadl %t0+ %t180 =w call $writer__free_writer(l %t179)+ dbgloc 486+ %t181 =l copy 0+ ret %t181+@lbl3949+ dbgloc 488+ %t182 =l loadl %t0+ %t183 =l add %t182, 32+ %t184 =w call $native__sync_dir_path(l %t183)+ dbgloc 490+ %t185 =l loadl %t0+ %t187 =l add %t185, 68+ %t186 =l loadl %t187+ %t188 =w call $records__sort_by_id(l %t186)+ dbgloc 491+ %t189 =l loadl %t0+ %t191 =l add %t189, 68+ %t190 =l loadl %t191+ %t192 =l call $index__encode(l %t190, l %t92)+ storel %t192, %t193+ call $__sx_dbg_keep(l %t193)+ dbgvar "index_bytes", "bytes.Bytes", %t193, 8, 5, 491+ dbgloc 492+ %t194 =l copy $__str232+ %t195 =l call $std__str__from_cstr(l %t194)+ %t196 =l call $files__with_suffix(l %t143, l %t195)+ storel %t196, %t197+ call $__sx_dbg_keep(l %t197)+ dbgvar "idx_tmp_name", "str.StringView", %t197, 8, 5, 492+ dbgloc 493+ %t198 =l loadl %t0+ %t199 =l add %t198, 16+ %t200 =l call $files__join(l %t199, l %t196)+ storel %t200, %t201+ call $__sx_dbg_keep(l %t201)+ dbgvar "idx_tmp", "str.StringView", %t201, 8, 5, 493+ dbgloc 494+ %t202 =l loadl %t0+ %t203 =l add %t202, 16+ %t204 =l loadl %t0+ %t205 =l add %t204, 32+ %t206 =w call $native__write_atomic(l %t200, l %t159, l %t203, l %t205, l %t192)+ %t207 =w copy %t206+ %t208 =w extub %t207+ storew %t208, %t209+ call $__sx_dbg_keep(l %t209)+ dbgvar "wrote_index", "bool", %t209, 1, 7, 494+ dbgloc 501+ %t210 =l loadl %t192+ %t211 =l copy %t210+ storel %t211, %t212+ call $__sx_dbg_keep(l %t212)+ dbgvar "idx_buf", "ref ", %t212, 8, 7, 501+ dbgloc 502+ %t214 =l loadl %t212+ call $free(l %t214)+ %t213 =l copy 0+ dbgloc 503+ %t215 =w call $files__free_path(l %t196)+ dbgloc 504+ %t216 =w call $files__free_path(l %t200)+ dbgloc 505+ %t217 =w call $files__free_path(l %t147)+ dbgloc 506+ %t218 =w call $files__free_path(l %t151)+ dbgloc 507+ %t219 =w call $files__free_path(l %t155)+ dbgloc 508+ %t220 =w call $files__free_path(l %t159)+ dbgloc 509+ %t222 =l copy %t135+ call $free(l %t222)+ %t221 =l copy 0+ dbgloc 510+ %t224 =l copy %t77+ call $free(l %t224)+ %t223 =l copy 0+ dbgloc 511+ %t225 =l loadl %t0+ %t226 =w call $writer__free_writer(l %t225)+ dbgloc 512+ ret %t208+}++dbgfile "src/store/txn.sx"+function l $txnmod__copy_id(l %id) {+@start+ %t0 =l alloc8 8+ %t4 =l alloc8 8+ dbgloc 30+ storel %id, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "id", "objid.Id", %t0, 8, 5, 30+ dbgloc 31+ %t2 =l copy 32+ %t1 =l call $malloc(l %t2)+ %t3 =l copy %t1+ storel %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "out", "ref u8", %t4, 8, 7, 31+ dbgloc 32+ %t6 =l copy %t3+ %t7 =l loadl %id+ %t8 =l copy %t7+ %t9 =l copy 32+ call $memcpy(l %t6, l %t8, l %t9)+ %t5 =l copy 0+ dbgloc 33+ %t10 =l call $objid__id(l %t3)+ ret %t10+}++function w $txnmod__free_ids(l %ids) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t14 =l alloc8 8+ dbgloc 36+ storel %ids, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "ids", "list[objid.Id]", %t0, 8, 5, 36+ dbgloc 37+ storel 0, %t1+ %t2 =l call $sxqbe_list_len(l %ids)+@lbl3951+ %t3 =l loadl %t1+ %t4 =w csltl %t3, %t2+ jnz %t4, @lbl3952, @lbl3953+@lbl3952+ %t5 =l call $sxqbe_list_buf(l %ids)+ %t6 =l mul %t3, 8+ %t7 =l add %t5, %t6+ %t8 =l loadl %t7+ dbgloc 38+ %t9 =l loadl %t8+ %t10 =l copy 0+ %t11 =w cnel %t9, %t10+ jnz %t11, @lbl3955, @lbl3956+@lbl3955+ dbgloc 39+ %t12 =l loadl %t8+ %t13 =l copy %t12+ storel %t13, %t14+ call $__sx_dbg_keep(l %t14)+ dbgvar "p", "ref ", %t14, 8, 7, 39+ dbgloc 40+ %t16 =l loadl %t14+ call $free(l %t16)+ %t15 =l copy 0+ jmp @lbl3956+@lbl3956+@lbl3954+ %t17 =l add %t3, 1+ storel %t17, %t1+ jmp @lbl3951+@lbl3953+ dbgloc 43+ call $sxqbe_list_free(l %ids)+ %t18 =l copy 0+ ret 0+}++function w $txnmod__same_id(l %a, l %b) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 46+ storel %a, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "a", "objid.Id", %t0, 8, 5, 46+ storel %b, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "b", "objid.Id", %t1, 8, 5, 46+ dbgloc 47+ %t2 =w call $objid__Id__eql(l %a, l %b)+ ret %t2+}++function w $txnmod__contains_id(l %xs, l %id) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ dbgloc 50+ storel %xs, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "xs", "list[objid.Id]", %t0, 8, 5, 50+ storel %id, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "id", "objid.Id", %t1, 8, 5, 50+ dbgloc 51+ storel 0, %t2+ %t3 =l call $sxqbe_list_len(l %xs)+@lbl3958+ %t4 =l loadl %t2+ %t5 =w csltl %t4, %t3+ jnz %t5, @lbl3959, @lbl3960+@lbl3959+ %t6 =l call $sxqbe_list_buf(l %xs)+ %t7 =l mul %t4, 8+ %t8 =l add %t6, %t7+ %t9 =l loadl %t8+ dbgloc 52+ %t10 =w call $txnmod__same_id(l %t9, l %id)+ jnz %t10, @lbl3962, @lbl3963+@lbl3962+ dbgloc 53+ %t11 =l copy 1+ ret %t11+@lbl3963+@lbl3961+ %t12 =l add %t4, 1+ storel %t12, %t2+ jmp @lbl3958+@lbl3960+ dbgloc 56+ %t13 =l copy 0+ ret %t13+}++function w $txnmod__add_unique(l %xs, l %id) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 59+ storel %xs, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "xs", "list[objid.Id]", %t0, 8, 5, 59+ storel %id, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "id", "objid.Id", %t1, 8, 5, 59+ dbgloc 60+ %t2 =l loadl %t0+ %t3 =w call $txnmod__contains_id(l %t2, l %id)+ %t4 =w ceqw %t3, 0+ jnz %t4, @lbl3965, @lbl3966+@lbl3965+ dbgloc 61+ %t6 =l call $sxqbe_list_ensure(l %t0)+ %t7 =l call $txnmod__copy_id(l %id)+ %t8 =l add %t6, 8+ %t9 =l add %t6, 16+ %t10 =l loadl %t8+ %t11 =l loadl %t9+ %t13 =l add %t10, 1+ %t12 =w call $sxqbe_list_grow(l %t6, l %t13)+ %t14 =l call $sxqbe_list_buf(l %t6)+ %t15 =l mul %t10, 8+ %t16 =l add %t14, %t15+ storel %t7, %t16+ %t17 =l add %t10, 1+ storel %t17, %t8+ %t5 =l copy 0+ jmp @lbl3966+@lbl3966+ ret 0+}++function l $txnmod__clone_targets(l %ts) {+@start+ %t0 =l alloc8 8+ %t3 =l alloc8 8+ %t5 =l alloc8 8+ %t30 =l alloc8 8+ dbgloc 65+ storel %ts, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "ts", "view.TargetSet", %t0, 8, 5, 65+ dbgloc 66+ %t1 =l call $view__empty_target_set()+ %t2 =l call $malloc(l 16)+ call $memset(l %t2, w 0, l 16)+ call $memcpy(l %t2, l %t1, l 16)+ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "out", "view.TargetSet", %t3, 8, 5, 66+ dbgloc 67+ %t4 =l loadl %ts+ storel 0, %t5+ %t6 =l call $sxqbe_list_len(l %t4)+@lbl3968+ %t7 =l loadl %t5+ %t8 =w csltl %t7, %t6+ jnz %t8, @lbl3969, @lbl3970+@lbl3969+ %t9 =l call $sxqbe_list_buf(l %t4)+ %t10 =l mul %t7, 8+ %t11 =l add %t9, %t10+ %t12 =l loadl %t11+ dbgloc 68+ %t14 =l loadl %t3+ %t15 =l call $sxqbe_list_ensure(l %t14)+ %t16 =l call $txnmod__copy_id(l %t12)+ %t17 =l add %t15, 8+ %t18 =l add %t15, 16+ %t19 =l loadl %t17+ %t20 =l loadl %t18+ %t22 =l add %t19, 1+ %t21 =w call $sxqbe_list_grow(l %t15, l %t22)+ %t23 =l call $sxqbe_list_buf(l %t15)+ %t24 =l mul %t19, 8+ %t25 =l add %t23, %t24+ storel %t16, %t25+ %t26 =l add %t19, 1+ storel %t26, %t17+ %t13 =l copy 0+@lbl3971+ %t27 =l add %t7, 1+ storel %t27, %t5+ jmp @lbl3968+@lbl3970+ dbgloc 70+ %t29 =l add %ts, 8+ %t28 =l loadl %t29+ storel 0, %t30+ %t31 =l call $sxqbe_list_len(l %t28)+@lbl3972+ %t32 =l loadl %t30+ %t33 =w csltl %t32, %t31+ jnz %t33, @lbl3973, @lbl3974+@lbl3973+ %t34 =l call $sxqbe_list_buf(l %t28)+ %t35 =l mul %t32, 8+ %t36 =l add %t34, %t35+ %t37 =l loadl %t36+ dbgloc 71+ %t39 =l loadl %t3+ %t40 =l add %t39, 8+ %t41 =l call $sxqbe_list_ensure(l %t40)+ %t42 =l call $txnmod__copy_id(l %t37)+ %t43 =l add %t41, 8+ %t44 =l add %t41, 16+ %t45 =l loadl %t43+ %t46 =l loadl %t44+ %t48 =l add %t45, 1+ %t47 =w call $sxqbe_list_grow(l %t41, l %t48)+ %t49 =l call $sxqbe_list_buf(l %t41)+ %t50 =l mul %t45, 8+ %t51 =l add %t49, %t50+ storel %t42, %t51+ %t52 =l add %t45, 1+ storel %t52, %t43+ %t38 =l copy 0+@lbl3975+ %t53 =l add %t32, 1+ storel %t53, %t30+ jmp @lbl3972+@lbl3974+ dbgloc 73+ %t54 =l loadl %t3+ ret %t54+}++function l $txnmod__clone_bookmark(l %bm) {+@start+ %t0 =l alloc8 8+ %t4 =l alloc8 8+ dbgloc 76+ storel %bm, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "bm", "ref view.Bookmark", %t0, 8, 7, 76+ dbgloc 77+ %t2 =l copy 32+ %t1 =l call $malloc(l %t2)+ %t3 =l copy %t1+ storel %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "b", "ref view.Bookmark", %t4, 8, 7, 77+ dbgloc 78+ %t5 =l add %bm, 0+ %t6 =l call $bytes__Bytes__dup(l %t5)+ %t7 =l loadl %t4+ call $memcpy(l %t7, l %t6, l 16)+ dbgloc 79+ %t8 =l add %bm, 16+ %t9 =l call $txnmod__clone_targets(l %t8)+ %t10 =l loadl %t4+ %t11 =l add %t10, 16+ call $memcpy(l %t11, l %t9, l 16)+ dbgloc 80+ %t12 =l loadl %t4+ ret %t12+}++function l $txnmod__clone_tag(l %t) {+@start+ %t0 =l alloc8 8+ %t4 =l alloc8 8+ dbgloc 83+ storel %t, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "t", "ref view.TagRef", %t0, 8, 7, 83+ dbgloc 84+ %t2 =l copy 24+ %t1 =l call $malloc(l %t2)+ %t3 =l copy %t1+ storel %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "out", "ref view.TagRef", %t4, 8, 7, 84+ dbgloc 85+ %t5 =l add %t, 0+ %t6 =l call $bytes__Bytes__dup(l %t5)+ %t7 =l loadl %t4+ call $memcpy(l %t7, l %t6, l 16)+ dbgloc 86+ %t8 =l add %t, 16+ %t9 =l call $txnmod__copy_id(l %t8)+ %t10 =l loadl %t4+ %t11 =l add %t10, 16+ call $memcpy(l %t11, l %t9, l 8)+ dbgloc 87+ %t12 =l loadl %t4+ ret %t12+}++function l $txnmod__clone_workspace(l %w) {+@start+ %t0 =l alloc8 8+ %t4 =l alloc8 8+ dbgloc 90+ storel %w, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "w", "ref view.WorkspaceRef", %t0, 8, 7, 90+ dbgloc 91+ %t2 =l copy 24+ %t1 =l call $malloc(l %t2)+ %t3 =l copy %t1+ storel %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "out", "ref view.WorkspaceRef", %t4, 8, 7, 91+ dbgloc 92+ %t5 =l add %w, 0+ %t6 =l call $bytes__Bytes__dup(l %t5)+ %t7 =l loadl %t4+ call $memcpy(l %t7, l %t6, l 16)+ dbgloc 93+ %t8 =l add %w, 16+ %t9 =l call $txnmod__copy_id(l %t8)+ %t10 =l loadl %t4+ %t11 =l add %t10, 16+ call $memcpy(l %t11, l %t9, l 8)+ dbgloc 94+ %t12 =l loadl %t4+ ret %t12+}++function w $txnmod__find_bookmark(l %v, l %name) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t3 =l alloc8 8+ %t11 =l alloc8 16+ %t21 =l alloc8 8+ dbgloc 97+ storel %v, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "v", "ref view.View", %t0, 8, 7, 97+ storel %name, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "name", "bytes.Bytes", %t1, 8, 5, 97+ dbgloc 98+ %t2 =l copy 0+ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "i", "usize", %t3, 8, 5, 98+ dbgloc 99+ jmp @lbl3976+@lbl3976+ %t4 =l loadl %t3+ %t6 =l add %v, 8+ %t7 =l loadl %t6+ %t8 =l call $sxqbe_list_len(l %t7)+ %t9 =w csltl %t4, %t8+ jnz %t9, @lbl3977, @lbl3979+@lbl3977+ dbgloc 100+ storel 0, %t11+ %t12 =l add %v, 8+ %t13 =l loadl %t12+ %t14 =l loadl %t3+ %t15 =w call $sxqbe_list_valid(l %t13, l %t14)+ jnz %t15, @lbl3980, @lbl3981+@lbl3980+ %t16 =l call $sxqbe_list_buf(l %t13)+ %t17 =l mul %t14, 8+ %t18 =l add %t16, %t17+ %t19 =l loadl %t18+ %t20 =l add %t11, 8+ storel %t19, %t20+ storel 1, %t11+ jmp @lbl3982+@lbl3981+ jmp @lbl3982+@lbl3982+ storel %t11, %t21+ call $__sx_dbg_keep(l %t21)+ dbgvar "o", "option[ref Bookmark]", %t21, 8, 5, 100+ dbgloc 101+ %t22 =l loadl %t11+ %t23 =w cnel %t22, 0+ jnz %t23, @lbl3983, @lbl3984+@lbl3983+ %t25 =l add %t11, 8+ %t24 =l loadl %t25+ dbgloc 102+ %t26 =l add %t24, 0+ %t27 =w call $bytes__Bytes__eql(l %t26, l %name)+ jnz %t27, @lbl3986, @lbl3987+@lbl3986+ dbgloc 103+ %t28 =l loadl %t3+ ret %t28+@lbl3987+ jmp @lbl3985+@lbl3984+ jmp @lbl3985+@lbl3985+ dbgloc 106+ %t29 =l loadl %t3+ %t30 =l add %t29, 1+ storel %t30, %t3+ jmp @lbl3978+@lbl3978+ jmp @lbl3976+@lbl3979+ dbgloc 108+ %t31 =l copy 1+ %t32 =l neg %t31+ %t33 =w copy %t32+ ret %t33+}++function w $txnmod__find_tag(l %v, l %name) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t3 =l alloc8 8+ %t11 =l alloc8 16+ %t21 =l alloc8 8+ dbgloc 111+ storel %v, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "v", "ref view.View", %t0, 8, 7, 111+ storel %name, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "name", "bytes.Bytes", %t1, 8, 5, 111+ dbgloc 112+ %t2 =l copy 0+ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "i", "usize", %t3, 8, 5, 112+ dbgloc 113+ jmp @lbl3989+@lbl3989+ %t4 =l loadl %t3+ %t6 =l add %v, 16+ %t7 =l loadl %t6+ %t8 =l call $sxqbe_list_len(l %t7)+ %t9 =w csltl %t4, %t8+ jnz %t9, @lbl3990, @lbl3992+@lbl3990+ dbgloc 114+ storel 0, %t11+ %t12 =l add %v, 16+ %t13 =l loadl %t12+ %t14 =l loadl %t3+ %t15 =w call $sxqbe_list_valid(l %t13, l %t14)+ jnz %t15, @lbl3993, @lbl3994+@lbl3993+ %t16 =l call $sxqbe_list_buf(l %t13)+ %t17 =l mul %t14, 8+ %t18 =l add %t16, %t17+ %t19 =l loadl %t18+ %t20 =l add %t11, 8+ storel %t19, %t20+ storel 1, %t11+ jmp @lbl3995+@lbl3994+ jmp @lbl3995+@lbl3995+ storel %t11, %t21+ call $__sx_dbg_keep(l %t21)+ dbgvar "o", "option[ref TagRef]", %t21, 8, 5, 114+ dbgloc 115+ %t22 =l loadl %t11+ %t23 =w cnel %t22, 0+ jnz %t23, @lbl3996, @lbl3997+@lbl3996+ %t25 =l add %t11, 8+ %t24 =l loadl %t25+ dbgloc 116+ %t26 =l add %t24, 0+ %t27 =w call $bytes__Bytes__eql(l %t26, l %name)+ jnz %t27, @lbl3999, @lbl4000+@lbl3999+ dbgloc 117+ %t28 =l loadl %t3+ ret %t28+@lbl4000+ jmp @lbl3998+@lbl3997+ jmp @lbl3998+@lbl3998+ dbgloc 120+ %t29 =l loadl %t3+ %t30 =l add %t29, 1+ storel %t30, %t3+ jmp @lbl3991+@lbl3991+ jmp @lbl3989+@lbl3992+ dbgloc 122+ %t31 =l copy 1+ %t32 =l neg %t31+ %t33 =w copy %t32+ ret %t33+}++function w $txnmod__find_workspace(l %v, l %name) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t3 =l alloc8 8+ %t11 =l alloc8 16+ %t21 =l alloc8 8+ dbgloc 125+ storel %v, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "v", "ref view.View", %t0, 8, 7, 125+ storel %name, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "name", "bytes.Bytes", %t1, 8, 5, 125+ dbgloc 126+ %t2 =l copy 0+ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "i", "usize", %t3, 8, 5, 126+ dbgloc 127+ jmp @lbl4002+@lbl4002+ %t4 =l loadl %t3+ %t6 =l add %v, 32+ %t7 =l loadl %t6+ %t8 =l call $sxqbe_list_len(l %t7)+ %t9 =w csltl %t4, %t8+ jnz %t9, @lbl4003, @lbl4005+@lbl4003+ dbgloc 128+ storel 0, %t11+ %t12 =l add %v, 32+ %t13 =l loadl %t12+ %t14 =l loadl %t3+ %t15 =w call $sxqbe_list_valid(l %t13, l %t14)+ jnz %t15, @lbl4006, @lbl4007+@lbl4006+ %t16 =l call $sxqbe_list_buf(l %t13)+ %t17 =l mul %t14, 8+ %t18 =l add %t16, %t17+ %t19 =l loadl %t18+ %t20 =l add %t11, 8+ storel %t19, %t20+ storel 1, %t11+ jmp @lbl4008+@lbl4007+ jmp @lbl4008+@lbl4008+ storel %t11, %t21+ call $__sx_dbg_keep(l %t21)+ dbgvar "o", "option[ref WorkspaceRef]", %t21, 8, 5, 128+ dbgloc 129+ %t22 =l loadl %t11+ %t23 =w cnel %t22, 0+ jnz %t23, @lbl4009, @lbl4010+@lbl4009+ %t25 =l add %t11, 8+ %t24 =l loadl %t25+ dbgloc 130+ %t26 =l add %t24, 0+ %t27 =w call $bytes__Bytes__eql(l %t26, l %name)+ jnz %t27, @lbl4012, @lbl4013+@lbl4012+ dbgloc 131+ %t28 =l loadl %t3+ ret %t28+@lbl4013+ jmp @lbl4011+@lbl4010+ jmp @lbl4011+@lbl4011+ dbgloc 134+ %t29 =l loadl %t3+ %t30 =l add %t29, 1+ storel %t30, %t3+ jmp @lbl4004+@lbl4004+ jmp @lbl4002+@lbl4005+ dbgloc 136+ %t31 =l copy 1+ %t32 =l neg %t31+ %t33 =w copy %t32+ ret %t33+}++function l $txnmod__conflict_targets(l %a, l %b) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t4 =l alloc8 8+ dbgloc 139+ storel %a, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "a", "objid.Id", %t0, 8, 5, 139+ storel %b, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "b", "objid.Id", %t1, 8, 5, 139+ dbgloc 140+ %t2 =l call $view__empty_target_set()+ %t3 =l call $malloc(l 16)+ call $memset(l %t3, w 0, l 16)+ call $memcpy(l %t3, l %t2, l 16)+ storel %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "ts", "view.TargetSet", %t4, 8, 5, 140+ dbgloc 141+ %t6 =l loadl %t4+ %t7 =l call $sxqbe_list_ensure(l %t6)+ %t8 =l call $txnmod__copy_id(l %a)+ %t9 =l add %t7, 8+ %t10 =l add %t7, 16+ %t11 =l loadl %t9+ %t12 =l loadl %t10+ %t14 =l add %t11, 1+ %t13 =w call $sxqbe_list_grow(l %t7, l %t14)+ %t15 =l call $sxqbe_list_buf(l %t7)+ %t16 =l mul %t11, 8+ %t17 =l add %t15, %t16+ storel %t8, %t17+ %t18 =l add %t11, 1+ storel %t18, %t9+ %t5 =l copy 0+ dbgloc 142+ %t20 =l loadl %t4+ %t21 =l call $sxqbe_list_ensure(l %t20)+ %t22 =l call $txnmod__copy_id(l %b)+ %t23 =l add %t21, 8+ %t24 =l add %t21, 16+ %t25 =l loadl %t23+ %t26 =l loadl %t24+ %t28 =l add %t25, 1+ %t27 =w call $sxqbe_list_grow(l %t21, l %t28)+ %t29 =l call $sxqbe_list_buf(l %t21)+ %t30 =l mul %t25, 8+ %t31 =l add %t29, %t30+ storel %t22, %t31+ %t32 =l add %t25, 1+ storel %t32, %t23+ %t19 =l copy 0+ dbgloc 143+ %t34 =l loadl %t4+ %t35 =l add %t34, 8+ %t36 =l call $sxqbe_list_ensure(l %t35)+ %t37 =l copy 0+ %t38 =l call $objid__id(l %t37)+ %t39 =l add %t36, 8+ %t40 =l add %t36, 16+ %t41 =l loadl %t39+ %t42 =l loadl %t40+ %t44 =l add %t41, 1+ %t43 =w call $sxqbe_list_grow(l %t36, l %t44)+ %t45 =l call $sxqbe_list_buf(l %t36)+ %t46 =l mul %t41, 8+ %t47 =l add %t45, %t46+ storel %t38, %t47+ %t48 =l add %t41, 1+ storel %t48, %t39+ %t33 =l copy 0+ dbgloc 144+ %t49 =l loadl %t4+ ret %t49+}++function w $txnmod__merge_view_into(l %dst, l %src) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t3 =l alloc8 8+ %t17 =l alloc8 8+ %t29 =l alloc8 8+ %t48 =l alloc8 16+ %t59 =l alloc8 8+ %t66 =l alloc8 8+ %t69 =l alloc8 8+ %t77 =l alloc8 16+ %t87 =l alloc8 8+ %t99 =l alloc8 16+ %t109 =l alloc8 8+ %t118 =l alloc4 1+ %t143 =l alloc8 8+ %t174 =l alloc8 8+ dbgloc 147+ storel %dst, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "dst", "ref view.View", %t0, 8, 7, 147+ storel %src, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "src", "ref view.View", %t1, 8, 7, 147+ dbgloc 148+ %t2 =l loadl %src+ storel 0, %t3+ %t4 =l call $sxqbe_list_len(l %t2)+@lbl4015+ %t5 =l loadl %t3+ %t6 =w csltl %t5, %t4+ jnz %t6, @lbl4016, @lbl4017+@lbl4016+ %t7 =l call $sxqbe_list_buf(l %t2)+ %t8 =l mul %t5, 8+ %t9 =l add %t7, %t8+ %t10 =l loadl %t9+ dbgloc 149+ %t11 =l loadl %t0+ %t12 =l loadl %t11+ %t13 =w call $txnmod__add_unique(l %t12, l %t10)+@lbl4018+ %t14 =l add %t5, 1+ storel %t14, %t3+ jmp @lbl4015+@lbl4017+ dbgloc 151+ %t16 =l add %src, 8+ %t15 =l loadl %t16+ storel 0, %t17+ %t18 =l call $sxqbe_list_len(l %t15)+@lbl4019+ %t19 =l loadl %t17+ %t20 =w csltl %t19, %t18+ jnz %t20, @lbl4020, @lbl4021+@lbl4020+ %t21 =l call $sxqbe_list_buf(l %t15)+ %t22 =l mul %t19, 8+ %t23 =l add %t21, %t22+ %t24 =l loadl %t23+ dbgloc 152+ %t25 =l loadl %t0+ %t26 =l add %t24, 0+ %t27 =w call $txnmod__find_bookmark(l %t25, l %t26)+ %t28 =w copy %t27+ storew %t28, %t29+ call $__sx_dbg_keep(l %t29)+ dbgvar "idx", "i32", %t29, 4, 5, 152+ dbgloc 153+ %t30 =w copy 0+ %t31 =w csltw %t28, %t30+ jnz %t31, @lbl4023, @lbl4025+@lbl4023+ dbgloc 154+ %t33 =l loadl %t0+ %t34 =l add %t33, 8+ %t35 =l call $sxqbe_list_ensure(l %t34)+ %t36 =l call $txnmod__clone_bookmark(l %t24)+ %t37 =l add %t35, 8+ %t38 =l add %t35, 16+ %t39 =l loadl %t37+ %t40 =l loadl %t38+ %t42 =l add %t39, 1+ %t41 =w call $sxqbe_list_grow(l %t35, l %t42)+ %t43 =l call $sxqbe_list_buf(l %t35)+ %t44 =l mul %t39, 8+ %t45 =l add %t43, %t44+ storel %t36, %t45+ %t46 =l add %t39, 1+ storel %t46, %t37+ %t32 =l copy 0+ jmp @lbl4024+@lbl4025+ dbgloc 156+ storel 0, %t48+ %t49 =l loadl %t0+ %t50 =l add %t49, 8+ %t51 =l loadl %t50+ %t52 =l extsw %t28+ %t53 =w call $sxqbe_list_valid(l %t51, l %t52)+ jnz %t53, @lbl4026, @lbl4027+@lbl4026+ %t54 =l call $sxqbe_list_buf(l %t51)+ %t55 =l mul %t52, 8+ %t56 =l add %t54, %t55+ %t57 =l loadl %t56+ %t58 =l add %t48, 8+ storel %t57, %t58+ storel 1, %t48+ jmp @lbl4028+@lbl4027+ jmp @lbl4028+@lbl4028+ storel %t48, %t59+ call $__sx_dbg_keep(l %t59)+ dbgvar "existing", "option[ref Bookmark]", %t59, 8, 5, 156+ dbgloc 157+ %t60 =l loadl %t48+ %t61 =w cnel %t60, 0+ jnz %t61, @lbl4029, @lbl4030+@lbl4029+ %t63 =l add %t48, 8+ %t62 =l loadl %t63+ dbgloc 158+ %t64 =l call $objid__id_none()+ %t65 =l call $malloc(l 8)+ call $memset(l %t65, w 0, l 8)+ call $memcpy(l %t65, l %t64, l 8)+ storel %t65, %t66+ call $__sx_dbg_keep(l %t66)+ dbgvar "a", "objid.Id", %t66, 8, 5, 158+ dbgloc 159+ %t67 =l call $objid__id_none()+ %t68 =l call $malloc(l 8)+ call $memset(l %t68, w 0, l 8)+ call $memcpy(l %t68, l %t67, l 8)+ storel %t68, %t69+ call $__sx_dbg_keep(l %t69)+ dbgvar "b", "objid.Id", %t69, 8, 5, 159+ dbgloc 160+ %t71 =l add %t62, 16+ %t72 =l loadl %t71+ %t73 =l call $sxqbe_list_len(l %t72)+ %t74 =l copy 0+ %t75 =w csgtl %t73, %t74+ jnz %t75, @lbl4032, @lbl4033+@lbl4032+ dbgloc 161+ storel 0, %t77+ %t78 =l add %t62, 16+ %t79 =l loadl %t78+ %t80 =l copy 0+ %t81 =w call $sxqbe_list_valid(l %t79, l %t80)+ jnz %t81, @lbl4035, @lbl4036+@lbl4035+ %t82 =l call $sxqbe_list_buf(l %t79)+ %t83 =l mul %t80, 8+ %t84 =l add %t82, %t83+ %t85 =l loadl %t84+ %t86 =l add %t77, 8+ storel %t85, %t86+ storel 1, %t77+ jmp @lbl4037+@lbl4036+ jmp @lbl4037+@lbl4037+ storel %t77, %t87+ call $__sx_dbg_keep(l %t87)+ dbgvar "o", "option[objid.Id]", %t87, 8, 5, 161+ dbgloc 162+ %t88 =l loadl %t77+ %t89 =w cnel %t88, 0+ jnz %t89, @lbl4038, @lbl4039+@lbl4038+ %t91 =l add %t77, 8+ %t90 =l loadl %t91+ dbgloc 163+ storel %t90, %t66+ jmp @lbl4040+@lbl4039+ jmp @lbl4040+@lbl4040+ jmp @lbl4033+@lbl4033+ dbgloc 166+ %t93 =l add %t24, 16+ %t94 =l loadl %t93+ %t95 =l call $sxqbe_list_len(l %t94)+ %t96 =l copy 0+ %t97 =w csgtl %t95, %t96+ jnz %t97, @lbl4041, @lbl4042+@lbl4041+ dbgloc 167+ storel 0, %t99+ %t100 =l add %t24, 16+ %t101 =l loadl %t100+ %t102 =l copy 0+ %t103 =w call $sxqbe_list_valid(l %t101, l %t102)+ jnz %t103, @lbl4044, @lbl4045+@lbl4044+ %t104 =l call $sxqbe_list_buf(l %t101)+ %t105 =l mul %t102, 8+ %t106 =l add %t104, %t105+ %t107 =l loadl %t106+ %t108 =l add %t99, 8+ storel %t107, %t108+ storel 1, %t99+ jmp @lbl4046+@lbl4045+ jmp @lbl4046+@lbl4046+ storel %t99, %t109+ call $__sx_dbg_keep(l %t109)+ dbgvar "o2", "option[objid.Id]", %t109, 8, 5, 167+ dbgloc 168+ %t110 =l loadl %t99+ %t111 =w cnel %t110, 0+ jnz %t111, @lbl4047, @lbl4048+@lbl4047+ %t113 =l add %t99, 8+ %t112 =l loadl %t113+ dbgloc 169+ storel %t112, %t69+ jmp @lbl4049+@lbl4048+ jmp @lbl4049+@lbl4049+ jmp @lbl4042+@lbl4042+ dbgloc 172+ %t114 =l loadl %t66+ %t115 =l loadl %t69+ %t116 =w call $txnmod__same_id(l %t114, l %t115)+ %t117 =w ceqw %t116, 0+ storew %t117, %t118+ jnz %t117, @lbl4054, @lbl4053+@lbl4053+ %t120 =l add %t62, 16+ %t121 =l loadl %t120+ %t122 =l call $sxqbe_list_len(l %t121)+ %t124 =l add %t24, 16+ %t125 =l loadl %t124+ %t126 =l call $sxqbe_list_len(l %t125)+ %t127 =w cnel %t122, %t126+ storew %t127, %t118+ jmp @lbl4054+@lbl4054+ %t128 =w loadw %t118+ jnz %t128, @lbl4050, @lbl4051+@lbl4050+ dbgloc 173+ %t130 =l add %t62, 16+ %t131 =l loadl %t130+ call $sxqbe_list_free(l %t131)+ %t129 =l copy 0+ dbgloc 174+ %t133 =l add %t62, 16+ %t135 =l add %t133, 8+ %t134 =l loadl %t135+ call $sxqbe_list_free(l %t134)+ %t132 =l copy 0+ dbgloc 175+ %t136 =l loadl %t66+ %t137 =l loadl %t69+ %t138 =l call $txnmod__conflict_targets(l %t136, l %t137)+ %t139 =l add %t62, 16+ call $memcpy(l %t139, l %t138, l 16)+ jmp @lbl4051+@lbl4051+ jmp @lbl4031+@lbl4030+ jmp @lbl4031+@lbl4031+ jmp @lbl4024+@lbl4024+@lbl4022+ %t140 =l add %t19, 1+ storel %t140, %t17+ jmp @lbl4019+@lbl4021+ dbgloc 180+ %t142 =l add %src, 16+ %t141 =l loadl %t142+ storel 0, %t143+ %t144 =l call $sxqbe_list_len(l %t141)+@lbl4055+ %t145 =l loadl %t143+ %t146 =w csltl %t145, %t144+ jnz %t146, @lbl4056, @lbl4057+@lbl4056+ %t147 =l call $sxqbe_list_buf(l %t141)+ %t148 =l mul %t145, 8+ %t149 =l add %t147, %t148+ %t150 =l loadl %t149+ dbgloc 181+ %t151 =l loadl %t0+ %t152 =l add %t150, 0+ %t153 =w call $txnmod__find_tag(l %t151, l %t152)+ %t154 =w copy 0+ %t155 =w csltw %t153, %t154+ jnz %t155, @lbl4059, @lbl4060+@lbl4059+ dbgloc 182+ %t157 =l loadl %t0+ %t158 =l add %t157, 16+ %t159 =l call $sxqbe_list_ensure(l %t158)+ %t160 =l call $txnmod__clone_tag(l %t150)+ %t161 =l add %t159, 8+ %t162 =l add %t159, 16+ %t163 =l loadl %t161+ %t164 =l loadl %t162+ %t166 =l add %t163, 1+ %t165 =w call $sxqbe_list_grow(l %t159, l %t166)+ %t167 =l call $sxqbe_list_buf(l %t159)+ %t168 =l mul %t163, 8+ %t169 =l add %t167, %t168+ storel %t160, %t169+ %t170 =l add %t163, 1+ storel %t170, %t161+ %t156 =l copy 0+ jmp @lbl4060+@lbl4060+@lbl4058+ %t171 =l add %t145, 1+ storel %t171, %t143+ jmp @lbl4055+@lbl4057+ dbgloc 185+ %t173 =l add %src, 32+ %t172 =l loadl %t173+ storel 0, %t174+ %t175 =l call $sxqbe_list_len(l %t172)+@lbl4062+ %t176 =l loadl %t174+ %t177 =w csltl %t176, %t175+ jnz %t177, @lbl4063, @lbl4064+@lbl4063+ %t178 =l call $sxqbe_list_buf(l %t172)+ %t179 =l mul %t176, 8+ %t180 =l add %t178, %t179+ %t181 =l loadl %t180+ dbgloc 186+ %t182 =l loadl %t0+ %t183 =l add %t181, 0+ %t184 =w call $txnmod__find_workspace(l %t182, l %t183)+ %t185 =w copy 0+ %t186 =w csltw %t184, %t185+ jnz %t186, @lbl4066, @lbl4067+@lbl4066+ dbgloc 187+ %t188 =l loadl %t0+ %t189 =l add %t188, 32+ %t190 =l call $sxqbe_list_ensure(l %t189)+ %t191 =l call $txnmod__clone_workspace(l %t181)+ %t192 =l add %t190, 8+ %t193 =l add %t190, 16+ %t194 =l loadl %t192+ %t195 =l loadl %t193+ %t197 =l add %t194, 1+ %t196 =w call $sxqbe_list_grow(l %t190, l %t197)+ %t198 =l call $sxqbe_list_buf(l %t190)+ %t199 =l mul %t194, 8+ %t200 =l add %t198, %t199+ storel %t191, %t200+ %t201 =l add %t194, 1+ storel %t201, %t192+ %t187 =l copy 0+ jmp @lbl4067+@lbl4067+@lbl4065+ %t202 =l add %t176, 1+ storel %t202, %t174+ jmp @lbl4062+@lbl4064+ ret 0+}++function w $txnmod__sort_remote_refs(l %xs) {+@start+ %t0 =l alloc8 8+ %t2 =l alloc8 8+ %t9 =l alloc8 16+ %t18 =l alloc8 8+ %t20 =l alloc8 8+ %t26 =l alloc8 8+ %t31 =l alloc8 16+ %t42 =l alloc8 8+ %t44 =l alloc8 8+ %t54 =l alloc8 8+ %t57 =l alloc4 1+ %t60 =l alloc4 1+ %t72 =l alloc8 8+ dbgloc 192+ storel %xs, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "xs", "list[ref view.RemoteRef]", %t0, 8, 5, 192+ dbgloc 193+ %t1 =l copy 1+ storel %t1, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "i", "usize", %t2, 8, 5, 193+ dbgloc 194+ jmp @lbl4069+@lbl4069+ %t3 =l loadl %t2+ %t5 =l loadl %t0+ %t6 =l call $sxqbe_list_len(l %t5)+ %t7 =w csltl %t3, %t6+ jnz %t7, @lbl4070, @lbl4072+@lbl4070+ dbgloc 195+ storel 0, %t9+ %t10 =l loadl %t0+ %t11 =l loadl %t2+ %t12 =w call $sxqbe_list_valid(l %t10, l %t11)+ jnz %t12, @lbl4073, @lbl4074+@lbl4073+ %t13 =l call $sxqbe_list_buf(l %t10)+ %t14 =l mul %t11, 8+ %t15 =l add %t13, %t14+ %t16 =l loadl %t15+ %t17 =l add %t9, 8+ storel %t16, %t17+ storel 1, %t9+ jmp @lbl4075+@lbl4074+ jmp @lbl4075+@lbl4075+ storel %t9, %t18+ call $__sx_dbg_keep(l %t18)+ dbgvar "cur", "option[ref view.RemoteRef]", %t18, 8, 5, 195+ dbgloc 196+ %t19 =l copy 0+ storel %t19, %t20+ call $__sx_dbg_keep(l %t20)+ dbgvar "c", "ref view.RemoteRef", %t20, 8, 7, 196+ dbgloc 197+ %t21 =l loadl %t9+ %t22 =w cnel %t21, 0+ jnz %t22, @lbl4076, @lbl4077+@lbl4076+ %t24 =l add %t9, 8+ %t23 =l loadl %t24+ dbgloc 198+ storel %t23, %t20+ jmp @lbl4078+@lbl4077+ jmp @lbl4078+@lbl4078+ dbgloc 200+ %t25 =l loadl %t2+ storel %t25, %t26+ call $__sx_dbg_keep(l %t26)+ dbgvar "j", "usize", %t26, 8, 5, 200+ dbgloc 201+ jmp @lbl4079+@lbl4079+ %t27 =l loadl %t26+ %t28 =l copy 0+ %t29 =w csgtl %t27, %t28+ jnz %t29, @lbl4080, @lbl4082+@lbl4080+ dbgloc 202+ storel 0, %t31+ %t32 =l loadl %t0+ %t33 =l loadl %t26+ %t34 =l copy 1+ %t35 =l sub %t33, %t34+ %t36 =w call $sxqbe_list_valid(l %t32, l %t35)+ jnz %t36, @lbl4083, @lbl4084+@lbl4083+ %t37 =l call $sxqbe_list_buf(l %t32)+ %t38 =l mul %t35, 8+ %t39 =l add %t37, %t38+ %t40 =l loadl %t39+ %t41 =l add %t31, 8+ storel %t40, %t41+ storel 1, %t31+ jmp @lbl4085+@lbl4084+ jmp @lbl4085+@lbl4085+ storel %t31, %t42+ call $__sx_dbg_keep(l %t42)+ dbgvar "prev_opt", "option[ref view.RemoteRef]", %t42, 8, 5, 202+ dbgloc 203+ %t43 =l copy 0+ storel %t43, %t44+ call $__sx_dbg_keep(l %t44)+ dbgvar "prev", "ref view.RemoteRef", %t44, 8, 7, 203+ dbgloc 204+ %t45 =l loadl %t31+ %t46 =w cnel %t45, 0+ jnz %t46, @lbl4086, @lbl4087+@lbl4086+ %t48 =l add %t31, 8+ %t47 =l loadl %t48+ dbgloc 205+ storel %t47, %t44+ jmp @lbl4088+@lbl4087+ jmp @lbl4088+@lbl4088+ dbgloc 207+ %t49 =l loadl %t44+ %t50 =l add %t49, 0+ %t51 =l loadl %t20+ %t52 =l add %t51, 0+ %t53 =l call $bytes__Bytes__cmp(l %t50, l %t52)+ storel %t53, %t54+ call $__sx_dbg_keep(l %t54)+ dbgvar "cmp", "i64", %t54, 8, 5, 207+ dbgloc 208+ %t55 =l copy 0+ %t56 =w csltl %t53, %t55+ storew %t56, %t57+ jnz %t56, @lbl4090, @lbl4089+@lbl4089+ %t58 =l copy 0+ %t59 =w ceql %t53, %t58+ storew %t59, %t60+ jnz %t59, @lbl4091, @lbl4092+@lbl4091+ %t61 =l loadl %t44+ %t62 =l add %t61, 16+ %t63 =l loadl %t20+ %t64 =l add %t63, 16+ %t65 =l call $bytes__Bytes__cmp(l %t62, l %t64)+ %t66 =l copy 0+ %t67 =w cslel %t65, %t66+ storew %t67, %t60+ jmp @lbl4092+@lbl4092+ %t68 =w loadw %t60+ storew %t68, %t57+ jmp @lbl4090+@lbl4090+ %t69 =w loadw %t57+ %t70 =w copy %t69+ %t71 =w extub %t70+ storew %t71, %t72+ call $__sx_dbg_keep(l %t72)+ dbgvar "ordered", "bool", %t72, 1, 7, 208+ dbgloc 209+ jnz %t71, @lbl4093, @lbl4094+@lbl4093+ dbgloc 210+ jmp @lbl4082+@lbl4094+ dbgloc 212+ %t74 =l loadl %t0+ %t75 =l loadl %t26+ %t76 =l loadl %t44+ %t77 =l loadl %t74+ %t78 =l mul %t75, 8+ %t79 =l add %t77, %t78+ storel %t76, %t79+ %t73 =l copy 0+ dbgloc 213+ %t80 =l loadl %t26+ %t81 =l sub %t80, 1+ storel %t81, %t26+ jmp @lbl4081+@lbl4081+ jmp @lbl4079+@lbl4082+ dbgloc 215+ %t83 =l loadl %t0+ %t84 =l loadl %t26+ %t85 =l loadl %t20+ %t86 =l loadl %t83+ %t87 =l mul %t84, 8+ %t88 =l add %t86, %t87+ storel %t85, %t88+ %t82 =l copy 0+ dbgloc 216+ %t89 =l loadl %t2+ %t90 =l add %t89, 1+ storel %t90, %t2+ jmp @lbl4071+@lbl4071+ jmp @lbl4069+@lbl4072+ ret 0+}++function w $txnmod__sort_heads(l %xs) {+@start+ %t0 =l alloc8 8+ %t2 =l alloc8 8+ %t9 =l alloc8 16+ %t18 =l alloc8 8+ %t21 =l alloc8 8+ %t27 =l alloc8 8+ %t32 =l alloc8 16+ %t43 =l alloc8 8+ %t46 =l alloc8 8+ dbgloc 220+ storel %xs, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "xs", "list[objid.Id]", %t0, 8, 5, 220+ dbgloc 221+ %t1 =l copy 1+ storel %t1, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "i", "usize", %t2, 8, 5, 221+ dbgloc 222+ jmp @lbl4096+@lbl4096+ %t3 =l loadl %t2+ %t5 =l loadl %t0+ %t6 =l call $sxqbe_list_len(l %t5)+ %t7 =w csltl %t3, %t6+ jnz %t7, @lbl4097, @lbl4099+@lbl4097+ dbgloc 223+ storel 0, %t9+ %t10 =l loadl %t0+ %t11 =l loadl %t2+ %t12 =w call $sxqbe_list_valid(l %t10, l %t11)+ jnz %t12, @lbl4100, @lbl4101+@lbl4100+ %t13 =l call $sxqbe_list_buf(l %t10)+ %t14 =l mul %t11, 8+ %t15 =l add %t13, %t14+ %t16 =l loadl %t15+ %t17 =l add %t9, 8+ storel %t16, %t17+ storel 1, %t9+ jmp @lbl4102+@lbl4101+ jmp @lbl4102+@lbl4102+ storel %t9, %t18+ call $__sx_dbg_keep(l %t18)+ dbgvar "cur", "option[objid.Id]", %t18, 8, 5, 223+ dbgloc 224+ %t19 =l call $objid__id_none()+ %t20 =l call $malloc(l 8)+ call $memset(l %t20, w 0, l 8)+ call $memcpy(l %t20, l %t19, l 8)+ storel %t20, %t21+ call $__sx_dbg_keep(l %t21)+ dbgvar "c", "objid.Id", %t21, 8, 5, 224+ dbgloc 225+ %t22 =l loadl %t9+ %t23 =w cnel %t22, 0+ jnz %t23, @lbl4103, @lbl4104+@lbl4103+ %t25 =l add %t9, 8+ %t24 =l loadl %t25+ dbgloc 226+ storel %t24, %t21+ jmp @lbl4105+@lbl4104+ jmp @lbl4105+@lbl4105+ dbgloc 228+ %t26 =l loadl %t2+ storel %t26, %t27+ call $__sx_dbg_keep(l %t27)+ dbgvar "j", "usize", %t27, 8, 5, 228+ dbgloc 229+ jmp @lbl4106+@lbl4106+ %t28 =l loadl %t27+ %t29 =l copy 0+ %t30 =w csgtl %t28, %t29+ jnz %t30, @lbl4107, @lbl4109+@lbl4107+ dbgloc 230+ storel 0, %t32+ %t33 =l loadl %t0+ %t34 =l loadl %t27+ %t35 =l copy 1+ %t36 =l sub %t34, %t35+ %t37 =w call $sxqbe_list_valid(l %t33, l %t36)+ jnz %t37, @lbl4110, @lbl4111+@lbl4110+ %t38 =l call $sxqbe_list_buf(l %t33)+ %t39 =l mul %t36, 8+ %t40 =l add %t38, %t39+ %t41 =l loadl %t40+ %t42 =l add %t32, 8+ storel %t41, %t42+ storel 1, %t32+ jmp @lbl4112+@lbl4111+ jmp @lbl4112+@lbl4112+ storel %t32, %t43+ call $__sx_dbg_keep(l %t43)+ dbgvar "prev_opt", "option[objid.Id]", %t43, 8, 5, 230+ dbgloc 231+ %t44 =l call $objid__id_none()+ %t45 =l call $malloc(l 8)+ call $memset(l %t45, w 0, l 8)+ call $memcpy(l %t45, l %t44, l 8)+ storel %t45, %t46+ call $__sx_dbg_keep(l %t46)+ dbgvar "prev", "objid.Id", %t46, 8, 5, 231+ dbgloc 232+ %t47 =l loadl %t32+ %t48 =w cnel %t47, 0+ jnz %t48, @lbl4113, @lbl4114+@lbl4113+ %t50 =l add %t32, 8+ %t49 =l loadl %t50+ dbgloc 233+ storel %t49, %t46+ jmp @lbl4115+@lbl4114+ jmp @lbl4115+@lbl4115+ dbgloc 235+ %t51 =l loadl %t46+ %t52 =l loadl %t21+ %t53 =l call $objid__Id__cmp(l %t51, l %t52)+ %t54 =l copy 0+ %t55 =w cslel %t53, %t54+ jnz %t55, @lbl4116, @lbl4117+@lbl4116+ dbgloc 236+ jmp @lbl4109+@lbl4117+ dbgloc 238+ %t57 =l loadl %t0+ %t58 =l loadl %t27+ %t59 =l loadl %t46+ %t60 =l loadl %t57+ %t61 =l mul %t58, 8+ %t62 =l add %t60, %t61+ storel %t59, %t62+ %t56 =l copy 0+ dbgloc 239+ %t63 =l loadl %t27+ %t64 =l sub %t63, 1+ storel %t64, %t27+ jmp @lbl4108+@lbl4108+ jmp @lbl4106+@lbl4109+ dbgloc 241+ %t66 =l loadl %t0+ %t67 =l loadl %t27+ %t68 =l loadl %t21+ %t69 =l loadl %t66+ %t70 =l mul %t67, 8+ %t71 =l add %t69, %t70+ storel %t68, %t71+ %t65 =l copy 0+ dbgloc 242+ %t72 =l loadl %t2+ %t73 =l add %t72, 1+ storel %t73, %t2+ jmp @lbl4098+@lbl4098+ jmp @lbl4096+@lbl4099+ ret 0+}++function w $txnmod__sort_bookmarks(l %xs) {+@start+ %t0 =l alloc8 8+ %t2 =l alloc8 8+ %t9 =l alloc8 16+ %t18 =l alloc8 8+ %t20 =l alloc8 8+ %t26 =l alloc8 8+ %t31 =l alloc8 16+ %t42 =l alloc8 8+ %t44 =l alloc8 8+ dbgloc 246+ storel %xs, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "xs", "list[ref view.Bookmark]", %t0, 8, 5, 246+ dbgloc 247+ %t1 =l copy 1+ storel %t1, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "i", "usize", %t2, 8, 5, 247+ dbgloc 248+ jmp @lbl4119+@lbl4119+ %t3 =l loadl %t2+ %t5 =l loadl %t0+ %t6 =l call $sxqbe_list_len(l %t5)+ %t7 =w csltl %t3, %t6+ jnz %t7, @lbl4120, @lbl4122+@lbl4120+ dbgloc 249+ storel 0, %t9+ %t10 =l loadl %t0+ %t11 =l loadl %t2+ %t12 =w call $sxqbe_list_valid(l %t10, l %t11)+ jnz %t12, @lbl4123, @lbl4124+@lbl4123+ %t13 =l call $sxqbe_list_buf(l %t10)+ %t14 =l mul %t11, 8+ %t15 =l add %t13, %t14+ %t16 =l loadl %t15+ %t17 =l add %t9, 8+ storel %t16, %t17+ storel 1, %t9+ jmp @lbl4125+@lbl4124+ jmp @lbl4125+@lbl4125+ storel %t9, %t18+ call $__sx_dbg_keep(l %t18)+ dbgvar "cur", "option[ref view.Bookmark]", %t18, 8, 5, 249+ dbgloc 250+ %t19 =l copy 0+ storel %t19, %t20+ call $__sx_dbg_keep(l %t20)+ dbgvar "c", "ref view.Bookmark", %t20, 8, 7, 250+ dbgloc 251+ %t21 =l loadl %t9+ %t22 =w cnel %t21, 0+ jnz %t22, @lbl4126, @lbl4127+@lbl4126+ %t24 =l add %t9, 8+ %t23 =l loadl %t24+ dbgloc 252+ storel %t23, %t20+ jmp @lbl4128+@lbl4127+ jmp @lbl4128+@lbl4128+ dbgloc 254+ %t25 =l loadl %t2+ storel %t25, %t26+ call $__sx_dbg_keep(l %t26)+ dbgvar "j", "usize", %t26, 8, 5, 254+ dbgloc 255+ jmp @lbl4129+@lbl4129+ %t27 =l loadl %t26+ %t28 =l copy 0+ %t29 =w csgtl %t27, %t28+ jnz %t29, @lbl4130, @lbl4132+@lbl4130+ dbgloc 256+ storel 0, %t31+ %t32 =l loadl %t0+ %t33 =l loadl %t26+ %t34 =l copy 1+ %t35 =l sub %t33, %t34+ %t36 =w call $sxqbe_list_valid(l %t32, l %t35)+ jnz %t36, @lbl4133, @lbl4134+@lbl4133+ %t37 =l call $sxqbe_list_buf(l %t32)+ %t38 =l mul %t35, 8+ %t39 =l add %t37, %t38+ %t40 =l loadl %t39+ %t41 =l add %t31, 8+ storel %t40, %t41+ storel 1, %t31+ jmp @lbl4135+@lbl4134+ jmp @lbl4135+@lbl4135+ storel %t31, %t42+ call $__sx_dbg_keep(l %t42)+ dbgvar "prev_opt", "option[ref view.Bookmark]", %t42, 8, 5, 256+ dbgloc 257+ %t43 =l copy 0+ storel %t43, %t44+ call $__sx_dbg_keep(l %t44)+ dbgvar "prev", "ref view.Bookmark", %t44, 8, 7, 257+ dbgloc 258+ %t45 =l loadl %t31+ %t46 =w cnel %t45, 0+ jnz %t46, @lbl4136, @lbl4137+@lbl4136+ %t48 =l add %t31, 8+ %t47 =l loadl %t48+ dbgloc 259+ storel %t47, %t44+ jmp @lbl4138+@lbl4137+ jmp @lbl4138+@lbl4138+ dbgloc 261+ %t49 =l loadl %t44+ %t50 =l add %t49, 0+ %t51 =l loadl %t20+ %t52 =l add %t51, 0+ %t53 =l call $bytes__Bytes__cmp(l %t50, l %t52)+ %t54 =l copy 0+ %t55 =w cslel %t53, %t54+ jnz %t55, @lbl4139, @lbl4140+@lbl4139+ dbgloc 262+ jmp @lbl4132+@lbl4140+ dbgloc 264+ %t57 =l loadl %t0+ %t58 =l loadl %t26+ %t59 =l loadl %t44+ %t60 =l loadl %t57+ %t61 =l mul %t58, 8+ %t62 =l add %t60, %t61+ storel %t59, %t62+ %t56 =l copy 0+ dbgloc 265+ %t63 =l loadl %t26+ %t64 =l sub %t63, 1+ storel %t64, %t26+ jmp @lbl4131+@lbl4131+ jmp @lbl4129+@lbl4132+ dbgloc 267+ %t66 =l loadl %t0+ %t67 =l loadl %t26+ %t68 =l loadl %t20+ %t69 =l loadl %t66+ %t70 =l mul %t67, 8+ %t71 =l add %t69, %t70+ storel %t68, %t71+ %t65 =l copy 0+ dbgloc 268+ %t72 =l loadl %t2+ %t73 =l add %t72, 1+ storel %t73, %t2+ jmp @lbl4121+@lbl4121+ jmp @lbl4119+@lbl4122+ ret 0+}++function w $txnmod__sort_tags(l %xs) {+@start+ %t0 =l alloc8 8+ %t2 =l alloc8 8+ %t9 =l alloc8 16+ %t18 =l alloc8 8+ %t20 =l alloc8 8+ %t26 =l alloc8 8+ %t31 =l alloc8 16+ %t42 =l alloc8 8+ %t44 =l alloc8 8+ dbgloc 272+ storel %xs, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "xs", "list[ref view.TagRef]", %t0, 8, 5, 272+ dbgloc 273+ %t1 =l copy 1+ storel %t1, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "i", "usize", %t2, 8, 5, 273+ dbgloc 274+ jmp @lbl4142+@lbl4142+ %t3 =l loadl %t2+ %t5 =l loadl %t0+ %t6 =l call $sxqbe_list_len(l %t5)+ %t7 =w csltl %t3, %t6+ jnz %t7, @lbl4143, @lbl4145+@lbl4143+ dbgloc 275+ storel 0, %t9+ %t10 =l loadl %t0+ %t11 =l loadl %t2+ %t12 =w call $sxqbe_list_valid(l %t10, l %t11)+ jnz %t12, @lbl4146, @lbl4147+@lbl4146+ %t13 =l call $sxqbe_list_buf(l %t10)+ %t14 =l mul %t11, 8+ %t15 =l add %t13, %t14+ %t16 =l loadl %t15+ %t17 =l add %t9, 8+ storel %t16, %t17+ storel 1, %t9+ jmp @lbl4148+@lbl4147+ jmp @lbl4148+@lbl4148+ storel %t9, %t18+ call $__sx_dbg_keep(l %t18)+ dbgvar "cur", "option[ref view.TagRef]", %t18, 8, 5, 275+ dbgloc 276+ %t19 =l copy 0+ storel %t19, %t20+ call $__sx_dbg_keep(l %t20)+ dbgvar "c", "ref view.TagRef", %t20, 8, 7, 276+ dbgloc 277+ %t21 =l loadl %t9+ %t22 =w cnel %t21, 0+ jnz %t22, @lbl4149, @lbl4150+@lbl4149+ %t24 =l add %t9, 8+ %t23 =l loadl %t24+ dbgloc 278+ storel %t23, %t20+ jmp @lbl4151+@lbl4150+ jmp @lbl4151+@lbl4151+ dbgloc 280+ %t25 =l loadl %t2+ storel %t25, %t26+ call $__sx_dbg_keep(l %t26)+ dbgvar "j", "usize", %t26, 8, 5, 280+ dbgloc 281+ jmp @lbl4152+@lbl4152+ %t27 =l loadl %t26+ %t28 =l copy 0+ %t29 =w csgtl %t27, %t28+ jnz %t29, @lbl4153, @lbl4155+@lbl4153+ dbgloc 282+ storel 0, %t31+ %t32 =l loadl %t0+ %t33 =l loadl %t26+ %t34 =l copy 1+ %t35 =l sub %t33, %t34+ %t36 =w call $sxqbe_list_valid(l %t32, l %t35)+ jnz %t36, @lbl4156, @lbl4157+@lbl4156+ %t37 =l call $sxqbe_list_buf(l %t32)+ %t38 =l mul %t35, 8+ %t39 =l add %t37, %t38+ %t40 =l loadl %t39+ %t41 =l add %t31, 8+ storel %t40, %t41+ storel 1, %t31+ jmp @lbl4158+@lbl4157+ jmp @lbl4158+@lbl4158+ storel %t31, %t42+ call $__sx_dbg_keep(l %t42)+ dbgvar "prev_opt", "option[ref view.TagRef]", %t42, 8, 5, 282+ dbgloc 283+ %t43 =l copy 0+ storel %t43, %t44+ call $__sx_dbg_keep(l %t44)+ dbgvar "prev", "ref view.TagRef", %t44, 8, 7, 283+ dbgloc 284+ %t45 =l loadl %t31+ %t46 =w cnel %t45, 0+ jnz %t46, @lbl4159, @lbl4160+@lbl4159+ %t48 =l add %t31, 8+ %t47 =l loadl %t48+ dbgloc 285+ storel %t47, %t44+ jmp @lbl4161+@lbl4160+ jmp @lbl4161+@lbl4161+ dbgloc 287+ %t49 =l loadl %t44+ %t50 =l add %t49, 0+ %t51 =l loadl %t20+ %t52 =l add %t51, 0+ %t53 =l call $bytes__Bytes__cmp(l %t50, l %t52)+ %t54 =l copy 0+ %t55 =w cslel %t53, %t54+ jnz %t55, @lbl4162, @lbl4163+@lbl4162+ dbgloc 288+ jmp @lbl4155+@lbl4163+ dbgloc 290+ %t57 =l loadl %t0+ %t58 =l loadl %t26+ %t59 =l loadl %t44+ %t60 =l loadl %t57+ %t61 =l mul %t58, 8+ %t62 =l add %t60, %t61+ storel %t59, %t62+ %t56 =l copy 0+ dbgloc 291+ %t63 =l loadl %t26+ %t64 =l sub %t63, 1+ storel %t64, %t26+ jmp @lbl4154+@lbl4154+ jmp @lbl4152+@lbl4155+ dbgloc 293+ %t66 =l loadl %t0+ %t67 =l loadl %t26+ %t68 =l loadl %t20+ %t69 =l loadl %t66+ %t70 =l mul %t67, 8+ %t71 =l add %t69, %t70+ storel %t68, %t71+ %t65 =l copy 0+ dbgloc 294+ %t72 =l loadl %t2+ %t73 =l add %t72, 1+ storel %t73, %t2+ jmp @lbl4144+@lbl4144+ jmp @lbl4142+@lbl4145+ ret 0+}++function w $txnmod__sort_workspaces(l %xs) {+@start+ %t0 =l alloc8 8+ %t2 =l alloc8 8+ %t9 =l alloc8 16+ %t18 =l alloc8 8+ %t20 =l alloc8 8+ %t26 =l alloc8 8+ %t31 =l alloc8 16+ %t42 =l alloc8 8+ %t44 =l alloc8 8+ dbgloc 298+ storel %xs, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "xs", "list[ref view.WorkspaceRef]", %t0, 8, 5, 298+ dbgloc 299+ %t1 =l copy 1+ storel %t1, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "i", "usize", %t2, 8, 5, 299+ dbgloc 300+ jmp @lbl4165+@lbl4165+ %t3 =l loadl %t2+ %t5 =l loadl %t0+ %t6 =l call $sxqbe_list_len(l %t5)+ %t7 =w csltl %t3, %t6+ jnz %t7, @lbl4166, @lbl4168+@lbl4166+ dbgloc 301+ storel 0, %t9+ %t10 =l loadl %t0+ %t11 =l loadl %t2+ %t12 =w call $sxqbe_list_valid(l %t10, l %t11)+ jnz %t12, @lbl4169, @lbl4170+@lbl4169+ %t13 =l call $sxqbe_list_buf(l %t10)+ %t14 =l mul %t11, 8+ %t15 =l add %t13, %t14+ %t16 =l loadl %t15+ %t17 =l add %t9, 8+ storel %t16, %t17+ storel 1, %t9+ jmp @lbl4171+@lbl4170+ jmp @lbl4171+@lbl4171+ storel %t9, %t18+ call $__sx_dbg_keep(l %t18)+ dbgvar "cur", "option[ref view.WorkspaceRef]", %t18, 8, 5, 301+ dbgloc 302+ %t19 =l copy 0+ storel %t19, %t20+ call $__sx_dbg_keep(l %t20)+ dbgvar "c", "ref view.WorkspaceRef", %t20, 8, 7, 302+ dbgloc 303+ %t21 =l loadl %t9+ %t22 =w cnel %t21, 0+ jnz %t22, @lbl4172, @lbl4173+@lbl4172+ %t24 =l add %t9, 8+ %t23 =l loadl %t24+ dbgloc 304+ storel %t23, %t20+ jmp @lbl4174+@lbl4173+ jmp @lbl4174+@lbl4174+ dbgloc 306+ %t25 =l loadl %t2+ storel %t25, %t26+ call $__sx_dbg_keep(l %t26)+ dbgvar "j", "usize", %t26, 8, 5, 306+ dbgloc 307+ jmp @lbl4175+@lbl4175+ %t27 =l loadl %t26+ %t28 =l copy 0+ %t29 =w csgtl %t27, %t28+ jnz %t29, @lbl4176, @lbl4178+@lbl4176+ dbgloc 308+ storel 0, %t31+ %t32 =l loadl %t0+ %t33 =l loadl %t26+ %t34 =l copy 1+ %t35 =l sub %t33, %t34+ %t36 =w call $sxqbe_list_valid(l %t32, l %t35)+ jnz %t36, @lbl4179, @lbl4180+@lbl4179+ %t37 =l call $sxqbe_list_buf(l %t32)+ %t38 =l mul %t35, 8+ %t39 =l add %t37, %t38+ %t40 =l loadl %t39+ %t41 =l add %t31, 8+ storel %t40, %t41+ storel 1, %t31+ jmp @lbl4181+@lbl4180+ jmp @lbl4181+@lbl4181+ storel %t31, %t42+ call $__sx_dbg_keep(l %t42)+ dbgvar "prev_opt", "option[ref view.WorkspaceRef]", %t42, 8, 5, 308+ dbgloc 309+ %t43 =l copy 0+ storel %t43, %t44+ call $__sx_dbg_keep(l %t44)+ dbgvar "prev", "ref view.WorkspaceRef", %t44, 8, 7, 309+ dbgloc 310+ %t45 =l loadl %t31+ %t46 =w cnel %t45, 0+ jnz %t46, @lbl4182, @lbl4183+@lbl4182+ %t48 =l add %t31, 8+ %t47 =l loadl %t48+ dbgloc 311+ storel %t47, %t44+ jmp @lbl4184+@lbl4183+ jmp @lbl4184+@lbl4184+ dbgloc 313+ %t49 =l loadl %t44+ %t50 =l add %t49, 0+ %t51 =l loadl %t20+ %t52 =l add %t51, 0+ %t53 =l call $bytes__Bytes__cmp(l %t50, l %t52)+ %t54 =l copy 0+ %t55 =w cslel %t53, %t54+ jnz %t55, @lbl4185, @lbl4186+@lbl4185+ dbgloc 314+ jmp @lbl4178+@lbl4186+ dbgloc 316+ %t57 =l loadl %t0+ %t58 =l loadl %t26+ %t59 =l loadl %t44+ %t60 =l loadl %t57+ %t61 =l mul %t58, 8+ %t62 =l add %t60, %t61+ storel %t59, %t62+ %t56 =l copy 0+ dbgloc 317+ %t63 =l loadl %t26+ %t64 =l sub %t63, 1+ storel %t64, %t26+ jmp @lbl4177+@lbl4177+ jmp @lbl4175+@lbl4178+ dbgloc 319+ %t66 =l loadl %t0+ %t67 =l loadl %t26+ %t68 =l loadl %t20+ %t69 =l loadl %t66+ %t70 =l mul %t67, 8+ %t71 =l add %t69, %t70+ storel %t68, %t71+ %t65 =l copy 0+ dbgloc 320+ %t72 =l loadl %t2+ %t73 =l add %t72, 1+ storel %t73, %t2+ jmp @lbl4167+@lbl4167+ jmp @lbl4165+@lbl4168+ ret 0+}++function l $txnmod__load_view_for_head(l %__ret, l %handles, l %id) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t3 =l alloc8 16+ %t4 =l alloc8 8+ %t6 =l alloc8 8+ %t11 =l alloc8 16+ %t15 =l alloc8 8+ %t19 =l alloc8 16+ %t20 =l alloc8 8+ %t26 =l alloc8 8+ dbgloc 324+ storel %handles, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "handles", "list[ref store.Handle]", %t0, 8, 5, 324+ storel %id, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "id", "objid.Id", %t1, 8, 5, 324+ dbgloc 328+ %t2 =l call $read__read_operation(l %t3, l %handles, l %id)+ storel %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "op_opt", "option[ref operation.Operation]", %t4, 8, 5, 328+ dbgloc 329+ %t5 =l copy 0+ storel %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "op", "ref operation.Operation", %t6, 8, 7, 329+ dbgloc 330+ %t7 =l loadl %t3+ %t8 =w cnel %t7, 0+ jnz %t8, @lbl4188, @lbl4189+@lbl4188+ %t10 =l add %t3, 8+ %t9 =l loadl %t10+ dbgloc 332+ storel %t9, %t6+ jmp @lbl4190+@lbl4189+ dbgloc 335+ storel 0, %t11+ call $memcpy(l %__ret, l %t11, l 16)+ ret %__ret+@lbl4190+ dbgloc 338+ %t12 =l loadl %t6+ %t13 =l add %t12, 8+ %t14 =l call $txnmod__copy_id(l %t13)+ storel %t14, %t15+ call $__sx_dbg_keep(l %t15)+ dbgvar "view_id", "objid.Id", %t15, 8, 5, 338+ dbgloc 339+ %t16 =l loadl %t6+ %t17 =w call $operation__free_operation(l %t16)+ dbgloc 340+ %t18 =l call $read__read_view(l %t19, l %handles, l %t14)+ storel %t19, %t20+ call $__sx_dbg_keep(l %t20)+ dbgvar "v_opt", "option[ref view.View]", %t20, 8, 5, 340+ dbgloc 341+ %t21 =l loadl %t14+ %t22 =l copy 0+ %t23 =w cnel %t21, %t22+ jnz %t23, @lbl4191, @lbl4192+@lbl4191+ dbgloc 342+ %t24 =l loadl %t14+ %t25 =l copy %t24+ storel %t25, %t26+ call $__sx_dbg_keep(l %t26)+ dbgvar "vp", "ref ", %t26, 8, 7, 342+ dbgloc 343+ %t28 =l loadl %t26+ call $free(l %t28)+ %t27 =l copy 0+ jmp @lbl4192+@lbl4192+ dbgloc 345+ call $memcpy(l %__ret, l %t19, l 16)+ ret %__ret+}++export function l $txnmod__begin(l %__ret, l %repo) {+@start+ %t0 =l alloc8 8+ %t2 =l alloc8 8+ %t5 =l alloc8 16+ dbgloc 348+ storel %repo, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "repo", "layout.Repo", %t0, 8, 5, 348+ dbgloc 349+ %t1 =l call $store__open_all(l %repo)+ storel %t1, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "st", "store.Store", %t2, 8, 5, 349+ dbgloc 350+ %t3 =l copy 1+ %t4 =l call $txnmod__begin_owned(l %t5, l %repo, l %t1, w %t3)+ call $memcpy(l %__ret, l %t5, l 16)+ ret %__ret+}++export function l $txnmod__begin_with(l %__ret, l %repo, l %st) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t4 =l alloc8 16+ dbgloc 355+ storel %repo, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "repo", "layout.Repo", %t0, 8, 5, 355+ storel %st, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "st", "store.Store", %t1, 8, 5, 355+ dbgloc 356+ %t2 =l copy 0+ %t3 =l call $txnmod__begin_owned(l %t4, l %repo, l %st, w %t2)+ call $memcpy(l %__ret, l %t4, l 16)+ ret %__ret+}++function l $txnmod__begin_owned(l %__ret, l %repo, l %st, w %owns) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t4 =l alloc8 8+ %t6 =l alloc8 8+ %t17 =l alloc8 16+ %t25 =l alloc8 8+ %t28 =l alloc8 8+ %t36 =l alloc8 16+ %t37 =l alloc8 8+ %t44 =l alloc8 16+ %t46 =l alloc8 16+ %t54 =l alloc8 8+ %t57 =l alloc8 8+ %t65 =l alloc8 16+ %t66 =l alloc8 8+ %t68 =l alloc8 8+ %t75 =l alloc8 16+ %t77 =l alloc8 8+ %t83 =l alloc8 16+ %t91 =l alloc8 8+ %t94 =l alloc8 8+ %t102 =l alloc8 16+ %t103 =l alloc8 8+ %t131 =l alloc8 16+ %t132 =l alloc8 8+ %t134 =l alloc8 8+ %t143 =l alloc8 16+ %t147 =l alloc8 8+ %t165 =l alloc8 16+ dbgloc 359+ storel %repo, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "repo", "layout.Repo", %t0, 8, 5, 359+ storel %st, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "st", "store.Store", %t1, 8, 5, 359+ storew %owns, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "owns", "bool", %t2, 1, 7, 359+ dbgloc 360+ %t3 =l call $read__heads(l %repo)+ storel %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "heads", "list[objid.Id]", %t4, 8, 5, 360+ dbgloc 361+ %t5 =l copy 0+ storel %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "v", "ref view.View", %t6, 8, 7, 361+ dbgloc 362+ %t8 =l call $sxqbe_list_len(l %t3)+ %t9 =l copy 0+ %t10 =w ceql %t8, %t9+ jnz %t10, @lbl4194, @lbl4196+@lbl4194+ dbgloc 363+ %t11 =l call $read__empty_view()+ storel %t11, %t6+ jmp @lbl4195+@lbl4196+ %t13 =l call $sxqbe_list_len(l %t3)+ %t14 =l copy 1+ %t15 =w ceql %t13, %t14+ jnz %t15, @lbl4197, @lbl4198+@lbl4197+ dbgloc 365+ storel 0, %t17+ %t18 =l copy 0+ %t19 =w call $sxqbe_list_valid(l %t3, l %t18)+ jnz %t19, @lbl4199, @lbl4200+@lbl4199+ %t20 =l call $sxqbe_list_buf(l %t3)+ %t21 =l mul %t18, 8+ %t22 =l add %t20, %t21+ %t23 =l loadl %t22+ %t24 =l add %t17, 8+ storel %t23, %t24+ storel 1, %t17+ jmp @lbl4201+@lbl4200+ jmp @lbl4201+@lbl4201+ storel %t17, %t25+ call $__sx_dbg_keep(l %t25)+ dbgvar "only", "option[objid.Id]", %t25, 8, 5, 365+ dbgloc 366+ %t26 =l call $objid__id_none()+ %t27 =l call $malloc(l 8)+ call $memset(l %t27, w 0, l 8)+ call $memcpy(l %t27, l %t26, l 8)+ storel %t27, %t28+ call $__sx_dbg_keep(l %t28)+ dbgvar "id", "objid.Id", %t28, 8, 5, 366+ dbgloc 367+ %t29 =l loadl %t17+ %t30 =w cnel %t29, 0+ jnz %t30, @lbl4202, @lbl4203+@lbl4202+ %t32 =l add %t17, 8+ %t31 =l loadl %t32+ dbgloc 368+ storel %t31, %t28+ jmp @lbl4204+@lbl4203+ jmp @lbl4204+@lbl4204+ dbgloc 370+ %t33 =l loadl %st+ %t34 =l loadl %t28+ %t35 =l call $txnmod__load_view_for_head(l %t36, l %t33, l %t34)+ storel %t36, %t37+ call $__sx_dbg_keep(l %t37)+ dbgvar "loaded", "option[ref view.View]", %t37, 8, 5, 370+ dbgloc 371+ %t38 =l loadl %t36+ %t39 =w cnel %t38, 0+ jnz %t39, @lbl4205, @lbl4206+@lbl4205+ %t41 =l add %t36, 8+ %t40 =l loadl %t41+ dbgloc 373+ storel %t40, %t6+ jmp @lbl4207+@lbl4206+ dbgloc 376+ jnz %owns, @lbl4208, @lbl4209+@lbl4208+ dbgloc 377+ %t42 =w call $store__close(l %st)+ jmp @lbl4209+@lbl4209+ dbgloc 379+ %t43 =w call $txnmod__free_ids(l %t3)+ dbgloc 380+ storel 0, %t44+ call $memcpy(l %__ret, l %t44, l 16)+ ret %__ret+@lbl4207+ jmp @lbl4195+@lbl4198+ dbgloc 384+ storel 0, %t46+ %t47 =l copy 0+ %t48 =w call $sxqbe_list_valid(l %t3, l %t47)+ jnz %t48, @lbl4211, @lbl4212+@lbl4211+ %t49 =l call $sxqbe_list_buf(l %t3)+ %t50 =l mul %t47, 8+ %t51 =l add %t49, %t50+ %t52 =l loadl %t51+ %t53 =l add %t46, 8+ storel %t52, %t53+ storel 1, %t46+ jmp @lbl4213+@lbl4212+ jmp @lbl4213+@lbl4213+ storel %t46, %t54+ call $__sx_dbg_keep(l %t54)+ dbgvar "first", "option[objid.Id]", %t54, 8, 5, 384+ dbgloc 385+ %t55 =l call $objid__id_none()+ %t56 =l call $malloc(l 8)+ call $memset(l %t56, w 0, l 8)+ call $memcpy(l %t56, l %t55, l 8)+ storel %t56, %t57+ call $__sx_dbg_keep(l %t57)+ dbgvar "first_id", "objid.Id", %t57, 8, 5, 385+ dbgloc 386+ %t58 =l loadl %t46+ %t59 =w cnel %t58, 0+ jnz %t59, @lbl4214, @lbl4215+@lbl4214+ %t61 =l add %t46, 8+ %t60 =l loadl %t61+ dbgloc 387+ storel %t60, %t57+ jmp @lbl4216+@lbl4215+ jmp @lbl4216+@lbl4216+ dbgloc 389+ %t62 =l loadl %st+ %t63 =l loadl %t57+ %t64 =l call $txnmod__load_view_for_head(l %t65, l %t62, l %t63)+ storel %t65, %t66+ call $__sx_dbg_keep(l %t66)+ dbgvar "base", "option[ref view.View]", %t66, 8, 5, 389+ dbgloc 390+ %t67 =l copy 0+ storel %t67, %t68+ call $__sx_dbg_keep(l %t68)+ dbgvar "base_view", "ref view.View", %t68, 8, 7, 390+ dbgloc 391+ %t69 =l loadl %t65+ %t70 =w cnel %t69, 0+ jnz %t70, @lbl4217, @lbl4218+@lbl4217+ %t72 =l add %t65, 8+ %t71 =l loadl %t72+ dbgloc 393+ storel %t71, %t68+ jmp @lbl4219+@lbl4218+ dbgloc 396+ jnz %owns, @lbl4220, @lbl4221+@lbl4220+ dbgloc 397+ %t73 =w call $store__close(l %st)+ jmp @lbl4221+@lbl4221+ dbgloc 399+ %t74 =w call $txnmod__free_ids(l %t3)+ dbgloc 400+ storel 0, %t75+ call $memcpy(l %__ret, l %t75, l 16)+ ret %__ret+@lbl4219+ dbgloc 403+ %t76 =l copy 1+ storel %t76, %t77+ call $__sx_dbg_keep(l %t77)+ dbgvar "i", "usize", %t77, 8, 5, 403+ dbgloc 404+ jmp @lbl4223+@lbl4223+ %t78 =l loadl %t77+ %t80 =l call $sxqbe_list_len(l %t3)+ %t81 =w csltl %t78, %t80+ jnz %t81, @lbl4224, @lbl4226+@lbl4224+ dbgloc 405+ storel 0, %t83+ %t84 =l loadl %t77+ %t85 =w call $sxqbe_list_valid(l %t3, l %t84)+ jnz %t85, @lbl4227, @lbl4228+@lbl4227+ %t86 =l call $sxqbe_list_buf(l %t3)+ %t87 =l mul %t84, 8+ %t88 =l add %t86, %t87+ %t89 =l loadl %t88+ %t90 =l add %t83, 8+ storel %t89, %t90+ storel 1, %t83+ jmp @lbl4229+@lbl4228+ jmp @lbl4229+@lbl4229+ storel %t83, %t91+ call $__sx_dbg_keep(l %t91)+ dbgvar "o", "option[objid.Id]", %t91, 8, 5, 405+ dbgloc 406+ %t92 =l call $objid__id_none()+ %t93 =l call $malloc(l 8)+ call $memset(l %t93, w 0, l 8)+ call $memcpy(l %t93, l %t92, l 8)+ storel %t93, %t94+ call $__sx_dbg_keep(l %t94)+ dbgvar "hid", "objid.Id", %t94, 8, 5, 406+ dbgloc 407+ %t95 =l loadl %t83+ %t96 =w cnel %t95, 0+ jnz %t96, @lbl4230, @lbl4231+@lbl4230+ %t98 =l add %t83, 8+ %t97 =l loadl %t98+ dbgloc 408+ storel %t97, %t94+ jmp @lbl4232+@lbl4231+ jmp @lbl4232+@lbl4232+ dbgloc 410+ %t99 =l loadl %st+ %t100 =l loadl %t94+ %t101 =l call $txnmod__load_view_for_head(l %t102, l %t99, l %t100)+ storel %t102, %t103+ call $__sx_dbg_keep(l %t103)+ dbgvar "extra", "option[ref view.View]", %t103, 8, 5, 410+ dbgloc 411+ %t104 =l loadl %t102+ %t105 =w cnel %t104, 0+ jnz %t105, @lbl4233, @lbl4234+@lbl4233+ %t107 =l add %t102, 8+ %t106 =l loadl %t107+ dbgloc 412+ %t108 =l loadl %t68+ %t109 =w call $txnmod__merge_view_into(l %t108, l %t106)+ dbgloc 413+ %t110 =w call $view__free_view(l %t106)+ jmp @lbl4235+@lbl4234+ jmp @lbl4235+@lbl4235+ dbgloc 415+ %t111 =l loadl %t77+ %t112 =l add %t111, 1+ storel %t112, %t77+ jmp @lbl4225+@lbl4225+ jmp @lbl4223+@lbl4226+ dbgloc 417+ %t113 =l loadl %t68+ %t114 =l loadl %t113+ %t115 =l loadl %t57+ %t116 =w call $txnmod__add_unique(l %t114, l %t115)+ dbgloc 418+ %t117 =l loadl %t68+ storel %t117, %t6+ jmp @lbl4195+@lbl4195+ dbgloc 420+ %t118 =l loadl %t6+ %t120 =l add %t118, 8+ %t119 =l loadl %t120+ %t121 =w call $txnmod__sort_bookmarks(l %t119)+ dbgloc 421+ %t122 =l loadl %t6+ %t124 =l add %t122, 16+ %t123 =l loadl %t124+ %t125 =w call $txnmod__sort_tags(l %t123)+ dbgloc 422+ %t126 =l loadl %t6+ %t128 =l add %t126, 32+ %t127 =l loadl %t128+ %t129 =w call $txnmod__sort_workspaces(l %t127)+ dbgloc 423+ %t130 =l call $writer__open(l %t131, l %repo)+ storel %t131, %t132+ call $__sx_dbg_keep(l %t132)+ dbgvar "w_opt", "option[ref Writer]", %t132, 8, 5, 423+ dbgloc 424+ %t133 =l copy 0+ storel %t133, %t134+ call $__sx_dbg_keep(l %t134)+ dbgvar "w", "ref writer.Writer", %t134, 8, 7, 424+ dbgloc 425+ %t135 =l loadl %t131+ %t136 =w cnel %t135, 0+ jnz %t136, @lbl4236, @lbl4237+@lbl4236+ %t138 =l add %t131, 8+ %t137 =l loadl %t138+ dbgloc 427+ storel %t137, %t134+ jmp @lbl4238+@lbl4237+ dbgloc 430+ jnz %owns, @lbl4239, @lbl4240+@lbl4239+ dbgloc 431+ %t139 =w call $store__close(l %st)+ jmp @lbl4240+@lbl4240+ dbgloc 433+ %t140 =l loadl %t6+ %t141 =w call $view__free_view(l %t140)+ dbgloc 434+ %t142 =w call $txnmod__free_ids(l %t3)+ dbgloc 435+ storel 0, %t143+ call $memcpy(l %__ret, l %t143, l 16)+ ret %__ret+@lbl4238+ dbgloc 438+ %t145 =l copy 60+ %t144 =l call $malloc(l %t145)+ %t146 =l copy %t144+ storel %t146, %t147+ call $__sx_dbg_keep(l %t147)+ dbgvar "tx", "ref Txn", %t147, 8, 7, 438+ dbgloc 439+ %t148 =l loadl %t147+ call $memcpy(l %t148, l %repo, l 16)+ dbgloc 440+ %t149 =l loadl %t134+ %t150 =l loadl %t147+ %t151 =l add %t150, 16+ storel %t149, %t151+ dbgloc 441+ %t152 =l loadl %t6+ %t153 =l loadl %t147+ %t154 =l add %t153, 24+ storel %t152, %t154+ dbgloc 442+ %t155 =l loadl %t147+ %t156 =l add %t155, 32+ call $memcpy(l %t156, l %st, l 8)+ dbgloc 443+ %t157 =l loadl %t147+ %t158 =l add %t157, 40+ storew %owns, %t158+ dbgloc 444+ %t159 =l loadl %t147+ %t160 =l add %t159, 44+ storel %t3, %t160+ dbgloc 445+ %t161 =l call $std__time__unix_now_millis()+ %t162 =l loadl %t147+ %t163 =l add %t162, 52+ storel %t161, %t163+ dbgloc 446+ %t164 =l loadl %t147+ call $memset(l %t165, w 0, l 16)+ storel 1, %t165+ %t166 =l add %t165, 8+ storel %t164, %t166+ call $memcpy(l %__ret, l %t165, l 16)+ ret %__ret+}++export function l $txnmod__handles(l %tx) {+@start+ %t0 =l alloc8 8+ dbgloc 451+ storel %tx, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "tx", "ref Txn", %t0, 8, 7, 451+ dbgloc 452+ %t1 =l add %tx, 32+ %t2 =l loadl %t1+ ret %t2+}++export function l $txnmod__add_object(l %tx, w %kind, l %body) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ dbgloc 455+ storel %tx, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "tx", "ref Txn", %t0, 8, 7, 455+ storew %kind, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "kind", "u8", %t1, 1, 7, 455+ storel %body, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "body", "bytes.Bytes", %t2, 8, 5, 455+ dbgloc 456+ %t3 =l loadl %t0+ %t5 =l add %t3, 16+ %t4 =l loadl %t5+ %t6 =l call $writer__add(l %t4, w %kind, l %body)+ ret %t6+}++export function l $txnmod__add_known(l %tx, w %kind, l %id, l %body) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t3 =l alloc8 8+ dbgloc 459+ storel %tx, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "tx", "ref Txn", %t0, 8, 7, 459+ storew %kind, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "kind", "u8", %t1, 1, 7, 459+ storel %id, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "id", "objid.Id", %t2, 8, 5, 459+ storel %body, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "body", "bytes.Bytes", %t3, 8, 5, 459+ dbgloc 460+ %t4 =l loadl %t0+ %t6 =l add %t4, 16+ %t5 =l loadl %t6+ %t7 =l call $writer__add_known(l %t5, w %kind, l %id, l %body)+ ret %t7+}++export function w $txnmod__enable_chunk_cache(l %tx) {+@start+ %t0 =l alloc8 8+ dbgloc 463+ storel %tx, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "tx", "ref Txn", %t0, 8, 7, 463+ dbgloc 464+ %t1 =l loadl %t0+ %t3 =l add %t1, 16+ %t2 =l loadl %t3+ %t4 =w call $writer__enable_chunk_cache(l %t2)+ ret 0+}++export function l $txnmod__find_cached(l %__ret, l %tx, w %kind, l %id) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t6 =l alloc8 16+ dbgloc 467+ storel %tx, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "tx", "ref Txn", %t0, 8, 7, 467+ storew %kind, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "kind", "u8", %t1, 1, 7, 467+ storel %id, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "id", "objid.Id", %t2, 8, 5, 467+ dbgloc 468+ %t4 =l add %tx, 16+ %t3 =l loadl %t4+ %t5 =l call $writer__find_cached(l %t6, l %t3, w %kind, l %id)+ call $memcpy(l %__ret, l %t6, l 16)+ ret %__ret+}++function l $txnmod__host_from_env() {+@start+ %t2 =l alloc8 16+ %t3 =l alloc8 8+ dbgloc 471+ dbgloc 472+ %t0 =l copy $__str239+ %t1 =l call $std__os__env(l %t2, l %t0)+ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "h", "option[ref u8]", %t3, 8, 5, 472+ dbgloc 473+ %t4 =l loadl %t2+ %t5 =w cnel %t4, 0+ jnz %t5, @lbl4242, @lbl4243+@lbl4242+ %t7 =l add %t2, 8+ %t6 =l loadl %t7+ dbgloc 475+ %t8 =l call $bytes__from_cstr(l %t6)+ %t9 =l call $bytes__Bytes__dup(l %t8)+ ret %t9+@lbl4243+ dbgloc 478+ %t10 =l copy $__str240+ %t11 =l copy 9+ %t12 =l call $bytes__bytes(l %t10, l %t11)+ %t13 =l call $bytes__Bytes__dup(l %t12)+ ret %t13+@lbl4244+ ret 0+}++function l $txnmod__user_from_env() {+@start+ %t2 =l alloc8 16+ %t3 =l alloc8 8+ dbgloc 483+ dbgloc 484+ %t0 =l copy $__str241+ %t1 =l call $std__os__env(l %t2, l %t0)+ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "u", "option[ref u8]", %t3, 8, 5, 484+ dbgloc 485+ %t4 =l loadl %t2+ %t5 =w cnel %t4, 0+ jnz %t5, @lbl4245, @lbl4246+@lbl4245+ %t7 =l add %t2, 8+ %t6 =l loadl %t7+ dbgloc 487+ %t8 =l call $bytes__from_cstr(l %t6)+ %t9 =l call $bytes__Bytes__dup(l %t8)+ ret %t9+@lbl4246+ dbgloc 490+ %t10 =l copy $__str187+ %t11 =l copy 7+ %t12 =l call $bytes__bytes(l %t10, l %t11)+ %t13 =l call $bytes__Bytes__dup(l %t12)+ ret %t13+@lbl4247+ ret 0+}++function w $txnmod__free_txn(l %tx) {+@start+ %t0 =l alloc8 8+ dbgloc 495+ storel %tx, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "tx", "ref Txn", %t0, 8, 7, 495+ dbgloc 496+ %t1 =l loadl %t0+ %t3 =l add %t1, 24+ %t2 =l loadl %t3+ %t4 =l copy 0+ %t5 =w cnel %t2, %t4+ jnz %t5, @lbl4248, @lbl4249+@lbl4248+ dbgloc 497+ %t6 =l loadl %t0+ %t8 =l add %t6, 24+ %t7 =l loadl %t8+ %t9 =w call $view__free_view(l %t7)+ jmp @lbl4249+@lbl4249+ dbgloc 499+ %t10 =l loadl %t0+ %t12 =l add %t10, 40+ %t11 =l loadub %t12+ jnz %t11, @lbl4251, @lbl4252+@lbl4251+ dbgloc 500+ %t13 =l loadl %t0+ %t14 =l add %t13, 32+ %t15 =w call $store__close(l %t14)+ jmp @lbl4252+@lbl4252+ dbgloc 502+ %t16 =l loadl %t0+ %t18 =l add %t16, 44+ %t17 =l loadl %t18+ %t19 =w call $txnmod__free_ids(l %t17)+ dbgloc 503+ %t21 =l loadl %t0+ %t22 =l copy %t21+ call $free(l %t22)+ %t20 =l copy 0+ ret 0+}++export function w $txnmod__abort(l %tx) {+@start+ %t0 =l alloc8 8+ dbgloc 506+ storel %tx, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "tx", "ref Txn", %t0, 8, 7, 506+ dbgloc 507+ %t1 =l loadl %t0+ %t3 =l add %t1, 16+ %t2 =l loadl %t3+ %t4 =w call $writer__abort(l %t2)+ dbgloc 508+ %t5 =l loadl %t0+ %t6 =w call $txnmod__free_txn(l %t5)+ ret 0+}++function w $txnmod__prepare_view(l %v) {+@start+ %t0 =l alloc8 8+ dbgloc 512+ storel %v, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "v", "ref view.View", %t0, 8, 7, 512+ dbgloc 513+ %t1 =l loadl %t0+ %t2 =l loadl %t1+ %t3 =w call $txnmod__sort_heads(l %t2)+ dbgloc 514+ %t4 =l loadl %t0+ %t6 =l add %t4, 8+ %t5 =l loadl %t6+ %t7 =w call $txnmod__sort_bookmarks(l %t5)+ dbgloc 515+ %t8 =l loadl %t0+ %t10 =l add %t8, 16+ %t9 =l loadl %t10+ %t11 =w call $txnmod__sort_tags(l %t9)+ dbgloc 516+ %t12 =l loadl %t0+ %t14 =l add %t12, 24+ %t13 =l loadl %t14+ %t15 =w call $txnmod__sort_remote_refs(l %t13)+ dbgloc 517+ %t16 =l loadl %t0+ %t18 =l add %t16, 32+ %t17 =l loadl %t18+ %t19 =w call $txnmod__sort_workspaces(l %t17)+ ret 0+}++function l $txnmod__encode_canonical_view(l %v) {+@start+ %t0 =l alloc8 8+ dbgloc 520+ storel %v, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "v", "ref view.View", %t0, 8, 7, 520+ dbgloc 521+ %t1 =l loadl %t0+ %t2 =w call $txnmod__prepare_view(l %t1)+ dbgloc 522+ %t3 =l loadl %t0+ %t4 =l call $view__encode(l %t3)+ ret %t4+}++export function w $txnmod__finish(l %tx, l %description) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t6 =l alloc8 8+ %t13 =l alloc8 8+ %t15 =l alloc8 8+ %t17 =l alloc8 8+ %t19 =l alloc8 8+ %t21 =l alloc8 8+ %t25 =l alloc8 8+ %t49 =l alloc8 8+ %t55 =l alloc8 8+ %t80 =l alloc8 10+ %t89 =l alloc8 10+ %t110 =l alloc8 8+ %t117 =l alloc8 8+ %t126 =l alloc8 8+ %t140 =l alloc8 8+ %t144 =l alloc8 8+ %t163 =l alloc8 8+ %t171 =l alloc8 8+ dbgloc 526+ storel %tx, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "tx", "ref Txn", %t0, 8, 7, 526+ storel %description, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "description", "bytes.Bytes", %t1, 8, 5, 526+ dbgloc 527+ %t2 =l loadl %t0+ %t4 =l add %t2, 24+ %t3 =l loadl %t4+ %t5 =l call $txnmod__encode_canonical_view(l %t3)+ storel %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "view_body", "bytes.Bytes", %t6, 8, 5, 527+ dbgloc 528+ %t7 =l loadl %t0+ %t9 =l add %t7, 16+ %t8 =l loadl %t9+ %t10 =l copy 7+ %t12 =w copy %t10+ %t11 =l call $writer__add(l %t8, w %t12, l %t5)+ storel %t11, %t13+ call $__sx_dbg_keep(l %t13)+ dbgvar "view_id", "objid.Id", %t13, 8, 5, 528+ dbgloc 529+ %t14 =l call $std__time__unix_now_millis()+ storel %t14, %t15+ call $__sx_dbg_keep(l %t15)+ dbgvar "now", "i64", %t15, 8, 5, 529+ dbgloc 530+ %t16 =l call $txnmod__host_from_env()+ storel %t16, %t17+ call $__sx_dbg_keep(l %t17)+ dbgvar "hostname", "bytes.Bytes", %t17, 8, 5, 530+ dbgloc 531+ %t18 =l call $txnmod__user_from_env()+ storel %t18, %t19+ call $__sx_dbg_keep(l %t19)+ dbgvar "username", "bytes.Bytes", %t19, 8, 5, 531+ dbgloc 532+ %t20 =l call $lists__new__GENMONO__ref_prim__KeyValue()++ storel %t20, %t21+ call $__sx_dbg_keep(l %t21)+ dbgvar "tags", "list[ref prim.KeyValue]", %t21, 8, 5, 532+ dbgloc 533+ %t23 =l copy 32+ %t22 =l call $malloc(l %t23)+ %t24 =l copy %t22+ storel %t24, %t25+ call $__sx_dbg_keep(l %t25)+ dbgvar "kv", "ref prim.KeyValue", %t25, 8, 7, 533+ dbgloc 534+ %t26 =l copy $__str242+ %t27 =l copy 7+ %t28 =l call $bytes__bytes(l %t26, l %t27)+ %t29 =l loadl %t25+ call $memcpy(l %t29, l %t28, l 16)+ dbgloc 535+ %t30 =l call $bytes__Bytes__dup(l %description)+ %t31 =l loadl %t25+ %t32 =l add %t31, 16+ call $memcpy(l %t32, l %t30, l 16)+ dbgloc 536+ %t34 =l call $sxqbe_list_ensure(l %t21)+ %t35 =l loadl %t25+ %t36 =l add %t34, 8+ %t37 =l add %t34, 16+ %t38 =l loadl %t36+ %t39 =l loadl %t37+ %t41 =l add %t38, 1+ %t40 =w call $sxqbe_list_grow(l %t34, l %t41)+ %t42 =l call $sxqbe_list_buf(l %t34)+ %t43 =l mul %t38, 8+ %t44 =l add %t42, %t43+ storel %t35, %t44+ %t45 =l add %t38, 1+ storel %t45, %t36+ %t33 =l copy 0+ dbgloc 537+ %t47 =l copy 108+ %t46 =l call $malloc(l %t47)+ %t48 =l copy %t46+ storel %t48, %t49+ call $__sx_dbg_keep(l %t49)+ dbgvar "op", "ref operation.Operation", %t49, 8, 7, 537+ dbgloc 538+ %t50 =l call $lists__new__GENMONO__objid__Id()++ %t51 =l loadl %t49+ storel %t50, %t51+ dbgloc 539+ %t52 =l loadl %t0+ %t54 =l add %t52, 44+ %t53 =l loadl %t54+ storel 0, %t55+ %t56 =l call $sxqbe_list_len(l %t53)+@lbl4254+ %t57 =l loadl %t55+ %t58 =w csltl %t57, %t56+ jnz %t58, @lbl4255, @lbl4256+@lbl4255+ %t59 =l call $sxqbe_list_buf(l %t53)+ %t60 =l mul %t57, 8+ %t61 =l add %t59, %t60+ %t62 =l loadl %t61+ dbgloc 540+ %t64 =l loadl %t49+ %t65 =l call $sxqbe_list_ensure(l %t64)+ %t66 =l call $txnmod__copy_id(l %t62)+ %t67 =l add %t65, 8+ %t68 =l add %t65, 16+ %t69 =l loadl %t67+ %t70 =l loadl %t68+ %t72 =l add %t69, 1+ %t71 =w call $sxqbe_list_grow(l %t65, l %t72)+ %t73 =l call $sxqbe_list_buf(l %t65)+ %t74 =l mul %t69, 8+ %t75 =l add %t73, %t74+ storel %t66, %t75+ %t76 =l add %t69, 1+ storel %t76, %t67+ %t63 =l copy 0+@lbl4257+ %t77 =l add %t57, 1+ storel %t77, %t55+ jmp @lbl4254+@lbl4256+ dbgloc 542+ %t78 =l loadl %t49+ %t79 =l add %t78, 8+ call $memcpy(l %t79, l %t11, l 8)+ dbgloc 543+ %t81 =l loadl %t0+ %t83 =l add %t81, 52+ %t82 =l loadl %t83+ storel %t82, %t80+ %t85 =l copy 0+ %t86 =l add %t80, 8+ storeh %t85, %t86+ %t87 =l loadl %t49+ %t88 =l add %t87, 16+ call $memcpy(l %t88, l %t80, l 10)+ dbgloc 544+ storel %t14, %t89+ %t91 =l copy 0+ %t92 =l add %t89, 8+ storeh %t91, %t92+ %t93 =l loadl %t49+ %t94 =l add %t93, 26+ call $memcpy(l %t94, l %t89, l 10)+ dbgloc 545+ %t95 =l loadl %t49+ %t96 =l add %t95, 36+ call $memcpy(l %t96, l %t16, l 16)+ dbgloc 546+ %t97 =l loadl %t49+ %t98 =l add %t97, 52+ call $memcpy(l %t98, l %t18, l 16)+ dbgloc 547+ %t99 =l call $bytes__Bytes__dup(l %description)+ %t100 =l loadl %t49+ %t101 =l add %t100, 68+ call $memcpy(l %t101, l %t99, l 16)+ dbgloc 548+ %t102 =l loadl %t21+ %t103 =l loadl %t49+ %t104 =l add %t103, 84+ storel %t102, %t104+ dbgloc 549+ %t105 =l call $bytes__empty()+ %t106 =l loadl %t49+ %t107 =l add %t106, 92+ call $memcpy(l %t107, l %t105, l 16)+ dbgloc 550+ %t108 =l loadl %t49+ %t109 =l call $operation__encode(l %t108)+ storel %t109, %t110+ call $__sx_dbg_keep(l %t110)+ dbgvar "op_body", "bytes.Bytes", %t110, 8, 5, 550+ dbgloc 551+ %t111 =l loadl %t0+ %t113 =l add %t111, 16+ %t112 =l loadl %t113+ %t114 =l copy 6+ %t116 =w copy %t114+ %t115 =l call $writer__add(l %t112, w %t116, l %t109)+ storel %t115, %t117+ call $__sx_dbg_keep(l %t117)+ dbgvar "op_id", "objid.Id", %t117, 8, 5, 551+ dbgloc 552+ %t118 =l loadl %t49+ %t119 =w call $operation__free_operation(l %t118)+ dbgloc 554+ %t120 =l loadl %t0+ %t122 =l add %t120, 16+ %t121 =l loadl %t122+ %t123 =w call $writer__finish(l %t121)+ %t124 =w copy %t123+ %t125 =w extub %t124+ storew %t125, %t126+ call $__sx_dbg_keep(l %t126)+ dbgvar "wrote", "bool", %t126, 1, 7, 554+ dbgloc 555+ %t127 =w ceqw %t125, 0+ jnz %t127, @lbl4258, @lbl4259+@lbl4258+ dbgloc 556+ %t128 =w call $msg__error_prefix()+ dbgloc 557+ %t129 =l copy $__str243+ %t130 =l call $printf(l %t129, ..., l 0)+ dbgloc 558+ %t131 =l loadl %t0+ %t132 =w call $txnmod__free_txn(l %t131)+ dbgloc 559+ %t133 =l copy 1+ %t134 =w copy %t133+ ret %t134+@lbl4259+ dbgloc 561+ %t135 =l loadl %t0+ %t136 =l add %t135, 0+ %t137 =w call $read__write_head(l %t136, l %t115)+ %t138 =w copy %t137+ %t139 =w extub %t138+ storew %t139, %t140+ call $__sx_dbg_keep(l %t140)+ dbgvar "head_ok", "bool", %t140, 1, 7, 561+ dbgloc 562+ jnz %t139, @lbl4261, @lbl4262+@lbl4261+ dbgloc 563+ %t141 =l loadl %t0+ %t143 =l add %t141, 44+ %t142 =l loadl %t143+ storel 0, %t144+ %t145 =l call $sxqbe_list_len(l %t142)+@lbl4264+ %t146 =l loadl %t144+ %t147 =w csltl %t146, %t145+ jnz %t147, @lbl4265, @lbl4266+@lbl4265+ %t148 =l call $sxqbe_list_buf(l %t142)+ %t149 =l mul %t146, 8+ %t150 =l add %t148, %t149+ %t151 =l loadl %t150+ dbgloc 564+ %t152 =w call $objid__Id__is_none(l %t151)+ %t153 =w ceqw %t152, 0+ jnz %t153, @lbl4268, @lbl4269+@lbl4268+ dbgloc 565+ %t154 =l loadl %t0+ %t155 =l add %t154, 0+ %t156 =w call $read__delete_head(l %t155, l %t151)+ jmp @lbl4269+@lbl4269+@lbl4267+ %t157 =l add %t146, 1+ storel %t157, %t144+ jmp @lbl4264+@lbl4266+ jmp @lbl4262+@lbl4262+ dbgloc 569+ %t158 =l loadl %t11+ %t159 =l copy 0+ %t160 =w cnel %t158, %t159+ jnz %t160, @lbl4271, @lbl4272+@lbl4271+ dbgloc 570+ %t161 =l loadl %t11+ %t162 =l copy %t161+ storel %t162, %t163+ call $__sx_dbg_keep(l %t163)+ dbgvar "vp", "ref ", %t163, 8, 7, 570+ dbgloc 571+ %t165 =l loadl %t163+ call $free(l %t165)+ %t164 =l copy 0+ jmp @lbl4272+@lbl4272+ dbgloc 573+ %t166 =l loadl %t115+ %t167 =l copy 0+ %t168 =w cnel %t166, %t167+ jnz %t168, @lbl4274, @lbl4275+@lbl4274+ dbgloc 574+ %t169 =l loadl %t115+ %t170 =l copy %t169+ storel %t170, %t171+ call $__sx_dbg_keep(l %t171)+ dbgvar "opp", "ref ", %t171, 8, 7, 574+ dbgloc 575+ %t173 =l loadl %t171+ call $free(l %t173)+ %t172 =l copy 0+ jmp @lbl4275+@lbl4275+ dbgloc 577+ %t174 =l loadl %t0+ %t175 =w call $txnmod__free_txn(l %t174)+ dbgloc 578+ %t176 =w ceqw %t139, 0+ jnz %t176, @lbl4277, @lbl4278+@lbl4277+ dbgloc 579+ %t177 =l copy 1+ %t178 =w copy %t177+ ret %t178+@lbl4278+ dbgloc 581+ %t179 =l copy 0+ %t180 =w copy %t179+ ret %t180+}++function l $txnmod__test_id(w %fill) {+@start+ %t0 =l alloc8 8+ %t4 =l alloc8 8+ %t6 =l alloc8 8+ dbgloc 584+ storew %fill, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "fill", "u8", %t0, 1, 7, 584+ dbgloc 585+ %t2 =l copy 32+ %t1 =l call $malloc(l %t2)+ %t3 =l copy %t1+ storel %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "p", "ref u8", %t4, 8, 7, 585+ dbgloc 586+ %t5 =l copy 0+ storel %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "i", "usize", %t6, 8, 5, 586+ dbgloc 587+ jmp @lbl4280+@lbl4280+ %t7 =l loadl %t6+ %t8 =l copy 32+ %t9 =w csltl %t7, %t8+ jnz %t9, @lbl4281, @lbl4283+@lbl4281+ dbgloc 588+ %t12 =l loadl %t6+ %t13 =l copy %t12+ %t11 =l add %t3, %t13+ storeb %fill, %t11+ %t10 =l copy 0+ dbgloc 589+ %t14 =l loadl %t6+ %t15 =l add %t14, 1+ storel %t15, %t6+ jmp @lbl4282+@lbl4282+ jmp @lbl4280+@lbl4283+ dbgloc 591+ %t16 =l call $objid__id(l %t3)+ ret %t16+}++dbgfile "src/object/treewalk.sx"+data $treewalk__KIND_MISSING = { l 0 }+function l $treewalk__copy_id(l %id) {+@start+ %t0 =l alloc8 8+ %t4 =l alloc8 8+ dbgloc 21+ storel %id, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "id", "objid.Id", %t0, 8, 5, 21+ dbgloc 22+ %t2 =l copy 32+ %t1 =l call $malloc(l %t2)+ %t3 =l copy %t1+ storel %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "out", "ref u8", %t4, 8, 7, 22+ dbgloc 23+ %t6 =l copy %t3+ %t7 =l loadl %id+ %t8 =l copy %t7+ %t9 =l copy 32+ call $memcpy(l %t6, l %t8, l %t9)+ %t5 =l copy 0+ dbgloc 24+ %t10 =l call $objid__id(l %t3)+ ret %t10+}++function l $treewalk__read_tree_inner(l %__ret, l %handles, l %id, w %use_cache, l %tx) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t3 =l alloc8 8+ %t6 =l alloc8 16+ %t8 =l alloc8 8+ %t11 =l alloc8 16+ %t13 =l alloc8 8+ %t19 =l alloc8 8+ %t26 =l alloc8 16+ %t30 =l alloc8 8+ %t36 =l alloc8 16+ %t39 =l alloc8 16+ %t40 =l alloc8 8+ %t47 =l alloc8 16+ %t51 =l alloc8 16+ dbgloc 27+ storel %handles, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "handles", "list[ref store.Handle]", %t0, 8, 5, 27+ storel %id, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "id", "objid.Id", %t1, 8, 5, 27+ storew %use_cache, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "use_cache", "bool", %t2, 1, 7, 27+ storel %tx, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "tx", "ref txnmod.Txn", %t3, 8, 7, 27+ dbgloc 33+ %t4 =l copy 3+ %t7 =w copy %t4+ %t5 =l call $read__read_body(l %t6, l %handles, l %id, w %t7)+ storel %t6, %t8+ call $__sx_dbg_keep(l %t8)+ dbgvar "body_opt", "option[bytes.Bytes]", %t8, 8, 5, 33+ dbgloc 34+ jnz %use_cache, @lbl4284, @lbl4285+@lbl4284+ dbgloc 35+ %t9 =l copy 3+ %t12 =w copy %t9+ %t10 =l call $txnmod__find_cached(l %t11, l %tx, w %t12, l %id)+ storel %t11, %t13+ call $__sx_dbg_keep(l %t13)+ dbgvar "cached", "option[bytes.Bytes]", %t13, 8, 5, 35+ dbgloc 36+ %t14 =l loadl %t11+ %t15 =w cnel %t14, 0+ jnz %t15, @lbl4287, @lbl4288+@lbl4287+ %t17 =l add %t11, 8+ %t16 =l loadl %t17+ dbgloc 37+ %t18 =l call $bytes__Bytes__dup(l %t16)+ storel %t18, %t19+ call $__sx_dbg_keep(l %t19)+ dbgvar "owned", "bytes.Bytes", %t19, 8, 5, 37+ dbgloc 38+ %t20 =l loadl %t8+ %t21 =l loadl %t20+ %t22 =w cnel %t21, 0+ jnz %t22, @lbl4290, @lbl4291+@lbl4290+ %t24 =l add %t20, 8+ %t23 =l loadl %t24+ dbgloc 39+ %t25 =w call $files__free_buffer(l %t23)+ jmp @lbl4292+@lbl4291+ jmp @lbl4292+@lbl4292+ dbgloc 41+ call $memset(l %t26, w 0, l 16)+ storel 1, %t26+ %t27 =l add %t26, 8+ storel %t18, %t27+ storel %t26, %t8+ jmp @lbl4289+@lbl4288+ jmp @lbl4289+@lbl4289+ jmp @lbl4285+@lbl4285+ dbgloc 44+ %t28 =l call $bytes__empty()+ %t29 =l call $malloc(l 16)+ call $memset(l %t29, w 0, l 16)+ call $memcpy(l %t29, l %t28, l 16)+ storel %t29, %t30+ call $__sx_dbg_keep(l %t30)+ dbgvar "body", "bytes.Bytes", %t30, 8, 5, 44+ dbgloc 45+ %t31 =l loadl %t8+ %t32 =l loadl %t31+ %t33 =w cnel %t32, 0+ jnz %t33, @lbl4293, @lbl4294+@lbl4293+ %t35 =l add %t31, 8+ %t34 =l loadl %t35+ dbgloc 47+ storel %t34, %t30+ jmp @lbl4295+@lbl4294+ dbgloc 50+ storel 0, %t36+ call $memcpy(l %__ret, l %t36, l 16)+ ret %__ret+@lbl4295+ dbgloc 53+ %t37 =l loadl %t30+ %t38 =l call $tree__decode(l %t39, l %t37)+ storel %t39, %t40+ call $__sx_dbg_keep(l %t40)+ dbgvar "decoded", "result[ref Tree, derr.DecodeError]", %t40, 8, 5, 53+ dbgloc 54+ %t41 =l loadl %t39+ %t42 =w ceql %t41, 0+ jnz %t42, @lbl4296, @lbl4297+@lbl4296+ %t44 =l add %t39, 8+ %t43 =l loadl %t44+ dbgloc 56+ %t45 =l loadl %t30+ %t46 =l add %t43, 8+ call $memcpy(l %t46, l %t45, l 16)+ dbgloc 57+ call $memset(l %t47, w 0, l 16)+ storel 1, %t47+ %t48 =l add %t47, 8+ storel %t43, %t48+ call $memcpy(l %__ret, l %t47, l 16)+ ret %__ret+@lbl4297+ dbgloc 60+ %t49 =l loadl %t30+ %t50 =w call $files__free_buffer(l %t49)+ dbgloc 61+ storel 0, %t51+ call $memcpy(l %__ret, l %t51, l 16)+ ret %__ret+@lbl4298+ ret 0+}++export function l $treewalk__read_tree(l %__ret, l %handles, l %id) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t3 =l alloc8 16+ %t5 =l alloc8 16+ dbgloc 66+ storel %handles, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "handles", "list[ref store.Handle]", %t0, 8, 5, 66+ storel %id, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "id", "objid.Id", %t1, 8, 5, 66+ dbgloc 67+ %t2 =l copy 0+ storel 0, %t3+ %t4 =l call $treewalk__read_tree_inner(l %t5, l %handles, l %id, w %t2, l %t3)+ call $memcpy(l %__ret, l %t5, l 16)+ ret %__ret+}++export function l $treewalk__read_tree_tx(l %__ret, l %handles, l %id, l %tx) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t5 =l alloc8 16+ dbgloc 70+ storel %handles, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "handles", "list[ref store.Handle]", %t0, 8, 5, 70+ storel %id, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "id", "objid.Id", %t1, 8, 5, 70+ storel %tx, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "tx", "ref txnmod.Txn", %t2, 8, 7, 70+ dbgloc 75+ %t3 =l copy 1+ %t4 =l call $treewalk__read_tree_inner(l %t5, l %handles, l %id, w %t3, l %tx)+ call $memcpy(l %__ret, l %t5, l 16)+ ret %__ret+}++export function w $treewalk__find_name(l %t, l %name) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t3 =l alloc8 8+ %t7 =l alloc8 8+ %t18 =l alloc8 8+ %t20 =l alloc8 16+ %t28 =l alloc8 8+ %t30 =l alloc8 8+ dbgloc 78+ storel %t, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "t", "ref tree.Tree", %t0, 8, 7, 78+ storel %name, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "name", "bytes.Bytes", %t1, 8, 5, 78+ dbgloc 79+ %t2 =l copy 0+ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "lo", "usize", %t3, 8, 5, 79+ dbgloc 80+ %t5 =l loadl %t+ %t6 =l call $sxqbe_list_len(l %t5)+ storel %t6, %t7+ call $__sx_dbg_keep(l %t7)+ dbgvar "hi", "usize", %t7, 8, 5, 80+ dbgloc 81+ jmp @lbl4299+@lbl4299+ %t8 =l loadl %t3+ %t9 =l loadl %t7+ %t10 =w csltl %t8, %t9+ jnz %t10, @lbl4300, @lbl4302+@lbl4300+ dbgloc 82+ %t11 =l loadl %t3+ %t12 =l loadl %t7+ %t13 =l loadl %t3+ %t14 =l sub %t12, %t13+ %t15 =l copy 2+ %t16 =l div %t14, %t15+ %t17 =l add %t11, %t16+ storel %t17, %t18+ call $__sx_dbg_keep(l %t18)+ dbgvar "mid", "usize", %t18, 8, 5, 82+ dbgloc 83+ storel 0, %t20+ %t21 =l loadl %t+ %t22 =w call $sxqbe_list_valid(l %t21, l %t17)+ jnz %t22, @lbl4303, @lbl4304+@lbl4303+ %t23 =l call $sxqbe_list_buf(l %t21)+ %t24 =l mul %t17, 8+ %t25 =l add %t23, %t24+ %t26 =l loadl %t25+ %t27 =l add %t20, 8+ storel %t26, %t27+ storel 1, %t20+ jmp @lbl4305+@lbl4304+ jmp @lbl4305+@lbl4305+ storel %t20, %t28+ call $__sx_dbg_keep(l %t28)+ dbgvar "e", "option[ref TreeEntry]", %t28, 8, 5, 83+ dbgloc 84+ %t29 =l copy 0+ storel %t29, %t30+ call $__sx_dbg_keep(l %t30)+ dbgvar "c", "i64", %t30, 8, 5, 84+ dbgloc 85+ %t31 =l loadl %t20+ %t32 =w cnel %t31, 0+ jnz %t32, @lbl4306, @lbl4307+@lbl4306+ %t34 =l add %t20, 8+ %t33 =l loadl %t34+ dbgloc 86+ %t35 =l add %t33, 0+ %t36 =l call $bytes__Bytes__cmp(l %t35, l %name)+ storel %t36, %t30+ dbgloc 87+ %t37 =l loadl %t30+ %t38 =l copy 0+ %t39 =w ceql %t37, %t38+ jnz %t39, @lbl4309, @lbl4310+@lbl4309+ dbgloc 88+ ret %t17+@lbl4310+ jmp @lbl4308+@lbl4307+ jmp @lbl4308+@lbl4308+ dbgloc 91+ %t40 =l loadl %t30+ %t41 =l copy 0+ %t42 =w csltl %t40, %t41+ jnz %t42, @lbl4312, @lbl4314+@lbl4312+ dbgloc 92+ %t43 =l copy 1+ %t44 =l add %t17, %t43+ storel %t44, %t3+ jmp @lbl4313+@lbl4314+ dbgloc 94+ storel %t17, %t7+ jmp @lbl4313+@lbl4313+ jmp @lbl4301+@lbl4301+ jmp @lbl4299+@lbl4302+ dbgloc 97+ %t45 =l copy 1+ %t46 =l neg %t45+ %t47 =w copy %t46+ ret %t47+}++function l $treewalk__join_path(l %prefix, l %name) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t16 =l alloc8 8+ dbgloc 100+ storel %prefix, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "prefix", "bytes.Bytes", %t0, 8, 5, 100+ storel %name, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "name", "bytes.Bytes", %t1, 8, 5, 100+ dbgloc 101+ %t3 =l add %prefix, 8+ %t2 =l loadl %t3+ %t4 =l copy 0+ %t5 =w ceql %t2, %t4+ jnz %t5, @lbl4315, @lbl4316+@lbl4315+ dbgloc 102+ %t6 =l call $bytes__Bytes__dup(l %name)+ ret %t6+@lbl4316+ dbgloc 104+ %t9 =l add %prefix, 8+ %t8 =l loadl %t9+ %t10 =l copy 1+ %t11 =l add %t8, %t10+ %t13 =l add %name, 8+ %t12 =l loadl %t13+ %t14 =l add %t11, %t12+ %t7 =l call $malloc(l %t14)+ %t15 =l copy %t7+ storel %t15, %t16+ call $__sx_dbg_keep(l %t16)+ dbgvar "out", "ref u8", %t16, 8, 7, 104+ dbgloc 105+ %t18 =l copy %t15+ %t19 =l loadl %prefix+ %t20 =l copy %t19+ %t22 =l add %prefix, 8+ %t21 =l loadl %t22+ call $memcpy(l %t18, l %t20, l %t21)+ %t17 =l copy 0+ dbgloc 106+ %t26 =l add %prefix, 8+ %t25 =l loadl %t26+ %t27 =l copy %t25+ %t24 =l add %t15, %t27+ %t28 =l copy 47+ storeb %t28, %t24+ %t23 =l copy 0+ dbgloc 107+ %t32 =l add %prefix, 8+ %t31 =l loadl %t32+ %t33 =l copy 1+ %t34 =l add %t31, %t33+ %t35 =l copy %t34+ %t30 =l add %t15, %t35+ %t36 =l copy %t30+ %t37 =l loadl %name+ %t38 =l copy %t37+ %t40 =l add %name, 8+ %t39 =l loadl %t40+ call $memcpy(l %t36, l %t38, l %t39)+ %t29 =l copy 0+ dbgloc 112+ %t42 =l add %prefix, 8+ %t41 =l loadl %t42+ %t43 =l copy 1+ %t44 =l add %t41, %t43+ %t46 =l add %name, 8+ %t45 =l loadl %t46+ %t47 =l add %t44, %t45+ %t48 =l call $bytes__bytes(l %t15, l %t47)+ ret %t48+}++function l $treewalk__new_flat(l %path, w %kind, l %target) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t6 =l alloc8 8+ dbgloc 115+ storel %path, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "path", "bytes.Bytes", %t0, 8, 5, 115+ storew %kind, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "kind", "u8", %t1, 1, 7, 115+ storel %target, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "target", "objid.Id", %t2, 8, 5, 115+ dbgloc 116+ %t4 =l copy 25+ %t3 =l call $malloc(l %t4)+ %t5 =l copy %t3+ storel %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "e", "ref FlatEntry", %t6, 8, 7, 116+ dbgloc 117+ %t7 =l loadl %t6+ call $memcpy(l %t7, l %path, l 16)+ dbgloc 118+ %t8 =l loadl %t6+ %t9 =l add %t8, 16+ storeb %kind, %t9+ dbgloc 119+ %t10 =l call $treewalk__copy_id(l %target)+ %t11 =l loadl %t6+ %t12 =l add %t11, 17+ call $memcpy(l %t12, l %t10, l 8)+ dbgloc 120+ %t13 =l loadl %t6+ ret %t13+}++function w $treewalk__flatten_into(l %handles, l %tree_id, l %prefix, l %out, l %depth, w %use_cache, l %tx) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t3 =l alloc8 8+ %t4 =l alloc8 8+ %t5 =l alloc8 8+ %t6 =l alloc8 8+ %t11 =l alloc8 16+ %t12 =l alloc8 8+ %t14 =l alloc8 8+ %t23 =l alloc8 8+ %t26 =l alloc8 8+ %t36 =l alloc8 8+ dbgloc 123+ storel %handles, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "handles", "list[ref store.Handle]", %t0, 8, 5, 123+ storel %tree_id, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "tree_id", "objid.Id", %t1, 8, 5, 123+ storel %prefix, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "prefix", "bytes.Bytes", %t2, 8, 5, 123+ storel %out, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "out", "list[ref FlatEntry]", %t3, 8, 5, 123+ storel %depth, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "depth", "usize", %t4, 8, 5, 123+ storew %use_cache, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "use_cache", "bool", %t5, 1, 7, 123+ storel %tx, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "tx", "ref txnmod.Txn", %t6, 8, 7, 123+ dbgloc 132+ %t7 =l copy 4096+ %t8 =w csgtl %depth, %t7+ jnz %t8, @lbl4318, @lbl4319+@lbl4318+ dbgloc 133+ %t9 =l copy 0+ ret %t9+@lbl4319+ dbgloc 135+ %t10 =l call $treewalk__read_tree_inner(l %t11, l %handles, l %tree_id, w %use_cache, l %tx)+ storel %t11, %t12+ call $__sx_dbg_keep(l %t12)+ dbgvar "t_opt", "option[ref tree.Tree]", %t12, 8, 5, 135+ dbgloc 136+ %t13 =l copy 0+ storel %t13, %t14+ call $__sx_dbg_keep(l %t14)+ dbgvar "t", "ref tree.Tree", %t14, 8, 7, 136+ dbgloc 137+ %t15 =l loadl %t11+ %t16 =w cnel %t15, 0+ jnz %t16, @lbl4321, @lbl4322+@lbl4321+ %t18 =l add %t11, 8+ %t17 =l loadl %t18+ dbgloc 139+ storel %t17, %t14+ jmp @lbl4323+@lbl4322+ dbgloc 142+ %t19 =l copy 0+ ret %t19+@lbl4323+ dbgloc 145+ %t20 =l copy 1+ %t21 =w copy %t20+ %t22 =w extub %t21+ storew %t22, %t23+ call $__sx_dbg_keep(l %t23)+ dbgvar "good", "bool", %t23, 1, 7, 145+ dbgloc 146+ %t24 =l loadl %t14+ %t25 =l loadl %t24+ storel 0, %t26+ %t27 =l call $sxqbe_list_len(l %t25)+@lbl4324+ %t28 =l loadl %t26+ %t29 =w csltl %t28, %t27+ jnz %t29, @lbl4325, @lbl4326+@lbl4325+ %t30 =l call $sxqbe_list_buf(l %t25)+ %t31 =l mul %t28, 8+ %t32 =l add %t30, %t31+ %t33 =l loadl %t32+ dbgloc 147+ %t34 =l add %t33, 0+ %t35 =l call $treewalk__join_path(l %prefix, l %t34)+ storel %t35, %t36+ call $__sx_dbg_keep(l %t36)+ dbgvar "path", "bytes.Bytes", %t36, 8, 5, 147+ dbgloc 148+ %t38 =l add %t33, 16+ %t37 =l loadub %t38+ %t39 =l extsw %t37+ %t40 =l copy 4+ %t42 =l extsw %t39+ %t41 =w ceql %t42, %t40+ jnz %t41, @lbl4328, @lbl4330+@lbl4328+ dbgloc 149+ %t43 =l add %t33, 17+ %t44 =l loadl %t3+ %t45 =l copy 1+ %t46 =l add %depth, %t45+ %t47 =w call $treewalk__flatten_into(l %handles, l %t43, l %t35, l %t44, l %t46, w %use_cache, l %tx)+ %t48 =w ceqw %t47, 0+ jnz %t48, @lbl4331, @lbl4332+@lbl4331+ dbgloc 150+ %t49 =w call $files__free_buffer(l %t35)+ dbgloc 151+ %t50 =l copy 0+ %t51 =w copy %t50+ %t52 =w extub %t51+ storew %t52, %t23+ dbgloc 152+ jmp @lbl4326+@lbl4332+ dbgloc 154+ %t53 =w call $files__free_buffer(l %t35)+ jmp @lbl4329+@lbl4330+ dbgloc 156+ %t55 =l call $sxqbe_list_ensure(l %t3)+ %t57 =l add %t33, 16+ %t56 =l loadub %t57+ %t58 =l add %t33, 17+ %t59 =l call $treewalk__new_flat(l %t35, w %t56, l %t58)+ %t60 =l add %t55, 8+ %t61 =l add %t55, 16+ %t62 =l loadl %t60+ %t63 =l loadl %t61+ %t65 =l add %t62, 1+ %t64 =w call $sxqbe_list_grow(l %t55, l %t65)+ %t66 =l call $sxqbe_list_buf(l %t55)+ %t67 =l mul %t62, 8+ %t68 =l add %t66, %t67+ storel %t59, %t68+ %t69 =l add %t62, 1+ storel %t69, %t60+ %t54 =l copy 0+ jmp @lbl4329+@lbl4329+@lbl4327+ %t70 =l add %t28, 1+ storel %t70, %t26+ jmp @lbl4324+@lbl4326+ dbgloc 159+ %t71 =l loadl %t14+ %t72 =w call $tree__free_tree(l %t71)+ dbgloc 160+ %t74 =w loadw %t23+ %t73 =l extsw %t74+ ret %t73+}++function l $treewalk__entry_at(l %xs, l %i) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t3 =l alloc8 16+ %t10 =l alloc8 8+ dbgloc 163+ storel %xs, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "xs", "list[ref FlatEntry]", %t0, 8, 5, 163+ storel %i, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "i", "usize", %t1, 8, 5, 163+ dbgloc 164+ storel 0, %t3+ %t4 =w call $sxqbe_list_valid(l %xs, l %i)+ jnz %t4, @lbl4334, @lbl4335+@lbl4334+ %t5 =l call $sxqbe_list_buf(l %xs)+ %t6 =l mul %i, 8+ %t7 =l add %t5, %t6+ %t8 =l loadl %t7+ %t9 =l add %t3, 8+ storel %t8, %t9+ storel 1, %t3+ jmp @lbl4336+@lbl4335+ jmp @lbl4336+@lbl4336+ storel %t3, %t10+ call $__sx_dbg_keep(l %t10)+ dbgvar "o", "option[ref FlatEntry]", %t10, 8, 5, 164+ dbgloc 165+ %t11 =l loadl %t3+ %t12 =w cnel %t11, 0+ jnz %t12, @lbl4337, @lbl4338+@lbl4337+ %t14 =l add %t3, 8+ %t13 =l loadl %t14+ dbgloc 166+ ret %t13+@lbl4338+ jmp @lbl4339+@lbl4339+ dbgloc 168+ %t15 =l copy 0+ jnz %t15, @lbl4340, @lbl4341+@lbl4341+ %t16 =l copy $__str244+ call $dprintf(w 2, l %t16)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl4340+ dbgloc 169+ %t17 =l copy 0+ ret %t17+}++function w $treewalk__merge_sort(l %xs, l %lo, l %hi, l %tmp) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t3 =l alloc8 8+ %t11 =l alloc8 8+ %t18 =l alloc8 8+ %t19 =l alloc8 8+ %t20 =l alloc8 8+ %t26 =l alloc8 8+ %t78 =l alloc8 8+ dbgloc 172+ storel %xs, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "xs", "list[ref FlatEntry]", %t0, 8, 5, 172+ storel %lo, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "lo", "usize", %t1, 8, 5, 172+ storel %hi, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "hi", "usize", %t2, 8, 5, 172+ storel %tmp, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "tmp", "list[ref FlatEntry]", %t3, 8, 5, 172+ dbgloc 178+ %t4 =l sub %hi, %lo+ %t5 =l copy 1+ %t6 =w cslel %t4, %t5+ jnz %t6, @lbl4342, @lbl4343+@lbl4342+ dbgloc 179+ ret 0+@lbl4343+ dbgloc 181+ %t7 =l sub %hi, %lo+ %t8 =l copy 2+ %t9 =l div %t7, %t8+ %t10 =l add %lo, %t9+ storel %t10, %t11+ call $__sx_dbg_keep(l %t11)+ dbgvar "mid", "usize", %t11, 8, 5, 181+ dbgloc 182+ %t12 =l loadl %t0+ %t13 =l loadl %t3+ %t14 =w call $treewalk__merge_sort(l %t12, l %lo, l %t10, l %t13)+ dbgloc 183+ %t15 =l loadl %t0+ %t16 =l loadl %t3+ %t17 =w call $treewalk__merge_sort(l %t15, l %t10, l %hi, l %t16)+ dbgloc 184+ storel %lo, %t18+ call $__sx_dbg_keep(l %t18)+ dbgvar "i", "usize", %t18, 8, 5, 184+ dbgloc 185+ storel %t10, %t19+ call $__sx_dbg_keep(l %t19)+ dbgvar "j", "usize", %t19, 8, 5, 185+ dbgloc 186+ storel %lo, %t20+ call $__sx_dbg_keep(l %t20)+ dbgvar "k", "usize", %t20, 8, 5, 186+ dbgloc 187+ jmp @lbl4345+@lbl4345+ %t21 =l loadl %t20+ %t22 =w csltl %t21, %hi+ jnz %t22, @lbl4346, @lbl4348+@lbl4346+ dbgloc 188+ %t23 =l copy 0+ %t24 =w copy %t23+ %t25 =w extub %t24+ storew %t25, %t26+ call $__sx_dbg_keep(l %t26)+ dbgvar "take_left", "bool", %t26, 1, 7, 188+ dbgloc 189+ %t27 =l loadl %t18+ %t29 =w csltl %t27, %t10+ %t28 =w ceqw %t29, 0+ jnz %t28, @lbl4349, @lbl4351+@lbl4349+ dbgloc 190+ %t30 =l copy 0+ %t31 =w copy %t30+ %t32 =w extub %t31+ storew %t32, %t26+ jmp @lbl4350+@lbl4351+ %t33 =l loadl %t19+ %t35 =w csltl %t33, %hi+ %t34 =w ceqw %t35, 0+ jnz %t34, @lbl4352, @lbl4353+@lbl4352+ dbgloc 192+ %t36 =l copy 1+ %t37 =w copy %t36+ %t38 =w extub %t37+ storew %t38, %t26+ jmp @lbl4350+@lbl4353+ dbgloc 194+ %t39 =l loadl %t0+ %t40 =l loadl %t18+ %t41 =l call $treewalk__entry_at(l %t39, l %t40)+ %t42 =l add %t41, 0+ %t43 =l loadl %t0+ %t44 =l loadl %t19+ %t45 =l call $treewalk__entry_at(l %t43, l %t44)+ %t46 =l add %t45, 0+ %t47 =l call $bytes__Bytes__cmp(l %t42, l %t46)+ %t48 =l copy 0+ %t49 =w cslel %t47, %t48+ %t50 =w copy %t49+ %t51 =w extub %t50+ storew %t51, %t26+ jmp @lbl4350+@lbl4350+ dbgloc 196+ %t53 =w loadw %t26+ %t52 =l extsw %t53+ jnz %t52, @lbl4354, @lbl4356+@lbl4354+ dbgloc 197+ %t55 =l loadl %t3+ %t56 =l loadl %t20+ %t57 =l loadl %t0+ %t58 =l loadl %t18+ %t59 =l call $treewalk__entry_at(l %t57, l %t58)+ %t60 =l loadl %t55+ %t61 =l mul %t56, 8+ %t62 =l add %t60, %t61+ storel %t59, %t62+ %t54 =l copy 0+ dbgloc 198+ %t63 =l loadl %t18+ %t64 =l add %t63, 1+ storel %t64, %t18+ jmp @lbl4355+@lbl4356+ dbgloc 200+ %t66 =l loadl %t3+ %t67 =l loadl %t20+ %t68 =l loadl %t0+ %t69 =l loadl %t19+ %t70 =l call $treewalk__entry_at(l %t68, l %t69)+ %t71 =l loadl %t66+ %t72 =l mul %t67, 8+ %t73 =l add %t71, %t72+ storel %t70, %t73+ %t65 =l copy 0+ dbgloc 201+ %t74 =l loadl %t19+ %t75 =l add %t74, 1+ storel %t75, %t19+ jmp @lbl4355+@lbl4355+ dbgloc 203+ %t76 =l loadl %t20+ %t77 =l add %t76, 1+ storel %t77, %t20+ jmp @lbl4347+@lbl4347+ jmp @lbl4345+@lbl4348+ dbgloc 205+ storel %lo, %t78+ call $__sx_dbg_keep(l %t78)+ dbgvar "m", "usize", %t78, 8, 5, 205+ dbgloc 206+ jmp @lbl4357+@lbl4357+ %t79 =l loadl %t78+ %t80 =w csltl %t79, %hi+ jnz %t80, @lbl4358, @lbl4360+@lbl4358+ dbgloc 207+ %t82 =l loadl %t0+ %t83 =l loadl %t78+ %t84 =l loadl %t3+ %t85 =l loadl %t78+ %t86 =l call $treewalk__entry_at(l %t84, l %t85)+ %t87 =l loadl %t82+ %t88 =l mul %t83, 8+ %t89 =l add %t87, %t88+ storel %t86, %t89+ %t81 =l copy 0+ dbgloc 208+ %t90 =l loadl %t78+ %t91 =l add %t90, 1+ storel %t91, %t78+ jmp @lbl4359+@lbl4359+ jmp @lbl4357+@lbl4360+ ret 0+}++export function w $treewalk__sort_flat(l %xs) {+@start+ %t0 =l alloc8 8+ %t4 =l alloc8 8+ %t8 =l alloc8 8+ %t10 =l alloc8 8+ dbgloc 212+ storel %xs, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "xs", "list[ref FlatEntry]", %t0, 8, 5, 212+ dbgloc 213+ %t2 =l loadl %t0+ %t3 =l call $sxqbe_list_len(l %t2)+ storel %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "n", "usize", %t4, 8, 5, 213+ dbgloc 214+ %t5 =l copy 1+ %t6 =w cslel %t3, %t5+ jnz %t6, @lbl4361, @lbl4362+@lbl4361+ dbgloc 215+ ret 0+@lbl4362+ dbgloc 217+ %t7 =l call $lists__new__GENMONO__ref_FlatEntry()++ storel %t7, %t8+ call $__sx_dbg_keep(l %t8)+ dbgvar "tmp", "list[ref FlatEntry]", %t8, 8, 5, 217+ dbgloc 218+ %t9 =l copy 0+ storel %t9, %t10+ call $__sx_dbg_keep(l %t10)+ dbgvar "i", "usize", %t10, 8, 5, 218+ dbgloc 219+ jmp @lbl4364+@lbl4364+ %t11 =l loadl %t10+ %t12 =w csltl %t11, %t3+ jnz %t12, @lbl4365, @lbl4367+@lbl4365+ dbgloc 220+ %t14 =l call $sxqbe_list_ensure(l %t8)+ %t15 =l copy 0+ %t16 =l add %t14, 8+ %t17 =l add %t14, 16+ %t18 =l loadl %t16+ %t19 =l loadl %t17+ %t21 =l add %t18, 1+ %t20 =w call $sxqbe_list_grow(l %t14, l %t21)+ %t22 =l call $sxqbe_list_buf(l %t14)+ %t23 =l mul %t18, 8+ %t24 =l add %t22, %t23+ storel %t15, %t24+ %t25 =l add %t18, 1+ storel %t25, %t16+ %t13 =l copy 0+ dbgloc 221+ %t26 =l loadl %t10+ %t27 =l add %t26, 1+ storel %t27, %t10+ jmp @lbl4366+@lbl4366+ jmp @lbl4364+@lbl4367+ dbgloc 223+ %t28 =l loadl %t0+ %t29 =l copy 0+ %t30 =l loadl %t8+ %t31 =w call $treewalk__merge_sort(l %t28, l %t29, l %t3, l %t30)+ dbgloc 224+ %t33 =l loadl %t8+ call $sxqbe_list_free(l %t33)+ %t32 =l copy 0+ ret 0+}++function l $treewalk__flatten_inner(l %handles, l %tree_id, w %use_cache, l %tx) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t3 =l alloc8 8+ %t5 =l alloc8 8+ dbgloc 228+ storel %handles, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "handles", "list[ref store.Handle]", %t0, 8, 5, 228+ storel %tree_id, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "tree_id", "objid.Id", %t1, 8, 5, 228+ storew %use_cache, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "use_cache", "bool", %t2, 1, 7, 228+ storel %tx, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "tx", "ref txnmod.Txn", %t3, 8, 7, 228+ dbgloc 234+ %t4 =l call $lists__new__GENMONO__ref_FlatEntry()++ storel %t4, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "out", "list[ref FlatEntry]", %t5, 8, 5, 234+ dbgloc 235+ %t6 =l call $bytes__empty()+ %t7 =l loadl %t5+ %t8 =l copy 0+ %t9 =w call $treewalk__flatten_into(l %handles, l %tree_id, l %t6, l %t7, l %t8, w %use_cache, l %tx)+ %t10 =w ceqw %t9, 0+ jnz %t10, @lbl4368, @lbl4369+@lbl4368+ jmp @lbl4369+@lbl4369+ dbgloc 239+ %t11 =l loadl %t5+ %t12 =w call $treewalk__sort_flat(l %t11)+ dbgloc 240+ %t13 =l loadl %t5+ ret %t13+}++export function l $treewalk__flatten(l %handles, l %tree_id) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 243+ storel %handles, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "handles", "list[ref store.Handle]", %t0, 8, 5, 243+ storel %tree_id, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "tree_id", "objid.Id", %t1, 8, 5, 243+ dbgloc 244+ %t2 =l copy 0+ %t3 =l copy 0+ %t4 =l call $treewalk__flatten_inner(l %handles, l %tree_id, w %t2, l %t3)+ ret %t4+}++export function l $treewalk__flatten_tx(l %handles, l %tree_id, l %tx) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ dbgloc 247+ storel %handles, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "handles", "list[ref store.Handle]", %t0, 8, 5, 247+ storel %tree_id, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "tree_id", "objid.Id", %t1, 8, 5, 247+ storel %tx, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "tx", "ref txnmod.Txn", %t2, 8, 7, 247+ dbgloc 252+ %t3 =l copy 1+ %t4 =l call $treewalk__flatten_inner(l %handles, l %tree_id, w %t3, l %tx)+ ret %t4+}++export function l $treewalk__flatten_or_empty(l %handles, l %tree) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 255+ storel %handles, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "handles", "list[ref store.Handle]", %t0, 8, 5, 255+ storel %tree, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "tree", "option[objid.Id]", %t1, 8, 5, 255+ dbgloc 259+ %t2 =l loadl %tree+ %t3 =w cnel %t2, 0+ jnz %t3, @lbl4371, @lbl4372+@lbl4371+ %t5 =l add %tree, 8+ %t4 =l loadl %t5+ dbgloc 260+ %t6 =l call $treewalk__flatten(l %handles, l %t4)+ ret %t6+@lbl4372+ jmp @lbl4373+@lbl4373+ dbgloc 262+ %t7 =l call $lists__new__GENMONO__ref_FlatEntry()++ ret %t7+}++export function l $treewalk__flatten_or_empty_tx(l %handles, l %tree, l %tx) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ dbgloc 265+ storel %handles, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "handles", "list[ref store.Handle]", %t0, 8, 5, 265+ storel %tree, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "tree", "option[objid.Id]", %t1, 8, 5, 265+ storel %tx, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "tx", "ref txnmod.Txn", %t2, 8, 7, 265+ dbgloc 270+ %t3 =l loadl %tree+ %t4 =w cnel %t3, 0+ jnz %t4, @lbl4374, @lbl4375+@lbl4374+ %t6 =l add %tree, 8+ %t5 =l loadl %t6+ dbgloc 271+ %t7 =l call $treewalk__flatten_tx(l %handles, l %t5, l %tx)+ ret %t7+@lbl4375+ jmp @lbl4376+@lbl4376+ dbgloc 273+ %t8 =l call $lists__new__GENMONO__ref_FlatEntry()++ ret %t8+}++export function l $treewalk__lookup(l %__ret, l %entries, l %path) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t3 =l alloc8 8+ %t6 =l alloc8 8+ %t17 =l alloc8 8+ %t21 =l alloc8 8+ %t25 =l alloc8 16+ %t31 =l alloc8 16+ dbgloc 276+ storel %entries, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "entries", "list[ref FlatEntry]", %t0, 8, 5, 276+ storel %path, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "path", "bytes.Bytes", %t1, 8, 5, 276+ dbgloc 277+ %t2 =l copy 0+ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "lo", "usize", %t3, 8, 5, 277+ dbgloc 278+ %t5 =l call $sxqbe_list_len(l %entries)+ storel %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "hi", "usize", %t6, 8, 5, 278+ dbgloc 279+ jmp @lbl4377+@lbl4377+ %t7 =l loadl %t3+ %t8 =l loadl %t6+ %t9 =w csltl %t7, %t8+ jnz %t9, @lbl4378, @lbl4380+@lbl4378+ dbgloc 280+ %t10 =l loadl %t3+ %t11 =l loadl %t6+ %t12 =l loadl %t3+ %t13 =l sub %t11, %t12+ %t14 =l copy 2+ %t15 =l div %t13, %t14+ %t16 =l add %t10, %t15+ storel %t16, %t17+ call $__sx_dbg_keep(l %t17)+ dbgvar "mid", "usize", %t17, 8, 5, 280+ dbgloc 281+ %t18 =l call $treewalk__entry_at(l %entries, l %t16)+ %t19 =l add %t18, 0+ %t20 =l call $bytes__Bytes__cmp(l %t19, l %path)+ storel %t20, %t21+ call $__sx_dbg_keep(l %t21)+ dbgvar "c", "i64", %t21, 8, 5, 281+ dbgloc 282+ %t22 =l copy 0+ %t23 =w ceql %t20, %t22+ jnz %t23, @lbl4381, @lbl4382+@lbl4381+ dbgloc 283+ %t24 =l call $treewalk__entry_at(l %entries, l %t16)+ call $memset(l %t25, w 0, l 16)+ storel 1, %t25+ %t26 =l add %t25, 8+ storel %t24, %t26+ call $memcpy(l %__ret, l %t25, l 16)+ ret %__ret+@lbl4382+ dbgloc 285+ %t27 =l copy 0+ %t28 =w csltl %t20, %t27+ jnz %t28, @lbl4384, @lbl4386+@lbl4384+ dbgloc 286+ %t29 =l copy 1+ %t30 =l add %t16, %t29+ storel %t30, %t3+ jmp @lbl4385+@lbl4386+ dbgloc 288+ storel %t16, %t6+ jmp @lbl4385+@lbl4385+ jmp @lbl4379+@lbl4379+ jmp @lbl4377+@lbl4380+ dbgloc 291+ storel 0, %t31+ call $memcpy(l %__ret, l %t31, l 16)+ ret %__ret+}++function w $treewalk__conflicted_into(l %handles, l %tree_id, l %depth) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t7 =l alloc8 16+ %t8 =l alloc8 8+ %t10 =l alloc8 8+ %t19 =l alloc8 8+ %t22 =l alloc8 8+ %t45 =l alloc4 1+ dbgloc 294+ storel %handles, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "handles", "list[ref store.Handle]", %t0, 8, 5, 294+ storel %tree_id, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "tree_id", "objid.Id", %t1, 8, 5, 294+ storel %depth, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "depth", "usize", %t2, 8, 5, 294+ dbgloc 299+ %t3 =l copy 4096+ %t4 =w csgtl %depth, %t3+ jnz %t4, @lbl4387, @lbl4388+@lbl4387+ dbgloc 300+ %t5 =l copy 1+ ret %t5+@lbl4388+ dbgloc 302+ %t6 =l call $treewalk__read_tree(l %t7, l %handles, l %tree_id)+ storel %t7, %t8+ call $__sx_dbg_keep(l %t8)+ dbgvar "t_opt", "option[ref tree.Tree]", %t8, 8, 5, 302+ dbgloc 303+ %t9 =l copy 0+ storel %t9, %t10+ call $__sx_dbg_keep(l %t10)+ dbgvar "t", "ref tree.Tree", %t10, 8, 7, 303+ dbgloc 304+ %t11 =l loadl %t7+ %t12 =w cnel %t11, 0+ jnz %t12, @lbl4390, @lbl4391+@lbl4390+ %t14 =l add %t7, 8+ %t13 =l loadl %t14+ dbgloc 306+ storel %t13, %t10+ jmp @lbl4392+@lbl4391+ dbgloc 309+ %t15 =l copy 1+ ret %t15+@lbl4392+ dbgloc 312+ %t16 =l copy 0+ %t17 =w copy %t16+ %t18 =w extub %t17+ storew %t18, %t19+ call $__sx_dbg_keep(l %t19)+ dbgvar "found", "bool", %t19, 1, 7, 312+ dbgloc 313+ %t20 =l loadl %t10+ %t21 =l loadl %t20+ storel 0, %t22+ %t23 =l call $sxqbe_list_len(l %t21)+@lbl4393+ %t24 =l loadl %t22+ %t25 =w csltl %t24, %t23+ jnz %t25, @lbl4394, @lbl4395+@lbl4394+ %t26 =l call $sxqbe_list_buf(l %t21)+ %t27 =l mul %t24, 8+ %t28 =l add %t26, %t27+ %t29 =l loadl %t28+ dbgloc 314+ %t31 =l add %t29, 16+ %t30 =l loadub %t31+ %t32 =l extsw %t30+ %t33 =l copy 6+ %t35 =l extsw %t32+ %t34 =w ceql %t35, %t33+ jnz %t34, @lbl4397, @lbl4398+@lbl4397+ dbgloc 315+ %t36 =l copy 1+ %t37 =w copy %t36+ %t38 =w extub %t37+ storew %t38, %t19+ dbgloc 316+ jmp @lbl4395+@lbl4398+ dbgloc 318+ %t40 =l add %t29, 16+ %t39 =l loadub %t40+ %t41 =l extsw %t39+ %t42 =l copy 4+ %t44 =l extsw %t41+ %t43 =w ceql %t44, %t42+ storew %t43, %t45+ jnz %t43, @lbl4403, @lbl4404+@lbl4403+ %t46 =l add %t29, 17+ %t47 =l copy 1+ %t48 =l add %depth, %t47+ %t49 =w call $treewalk__conflicted_into(l %handles, l %t46, l %t48)+ storew %t49, %t45+ jmp @lbl4404+@lbl4404+ %t50 =w loadw %t45+ jnz %t50, @lbl4400, @lbl4401+@lbl4400+ dbgloc 319+ %t51 =l copy 1+ %t52 =w copy %t51+ %t53 =w extub %t52+ storew %t53, %t19+ dbgloc 320+ jmp @lbl4395+@lbl4401+@lbl4396+ %t54 =l add %t24, 1+ storel %t54, %t22+ jmp @lbl4393+@lbl4395+ dbgloc 323+ %t55 =l loadl %t10+ %t56 =w call $tree__free_tree(l %t55)+ dbgloc 324+ %t58 =w loadw %t19+ %t57 =l extsw %t58+ ret %t57+}++export function w $treewalk__conflicted(l %handles, l %tree_id) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 327+ storel %handles, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "handles", "list[ref store.Handle]", %t0, 8, 5, 327+ storel %tree_id, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "tree_id", "objid.Id", %t1, 8, 5, 327+ dbgloc 328+ %t2 =l copy 0+ %t3 =w call $treewalk__conflicted_into(l %handles, l %tree_id, l %t2)+ ret %t3+}++export function w $treewalk__free_flat(l %xs) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t16 =l alloc8 8+ %t26 =l alloc8 8+ %t30 =l alloc8 8+ dbgloc 331+ storel %xs, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "xs", "list[ref FlatEntry]", %t0, 8, 5, 331+ dbgloc 332+ storel 0, %t1+ %t2 =l call $sxqbe_list_len(l %xs)+@lbl4405+ %t3 =l loadl %t1+ %t4 =w csltl %t3, %t2+ jnz %t4, @lbl4406, @lbl4407+@lbl4406+ %t5 =l call $sxqbe_list_buf(l %xs)+ %t6 =l mul %t3, 8+ %t7 =l add %t5, %t6+ %t8 =l loadl %t7+ dbgloc 333+ %t9 =l add %t8, 0+ %t10 =l loadl %t9+ %t11 =l copy 0+ %t12 =w cnel %t10, %t11+ jnz %t12, @lbl4409, @lbl4410+@lbl4409+ dbgloc 334+ %t13 =l add %t8, 0+ %t14 =l loadl %t13+ %t15 =l copy %t14+ storel %t15, %t16+ call $__sx_dbg_keep(l %t16)+ dbgvar "pp", "ref ", %t16, 8, 7, 334+ dbgloc 335+ %t18 =l loadl %t16+ call $free(l %t18)+ %t17 =l copy 0+ jmp @lbl4410+@lbl4410+ dbgloc 337+ %t19 =l add %t8, 17+ %t20 =l loadl %t19+ %t21 =l copy 0+ %t22 =w cnel %t20, %t21+ jnz %t22, @lbl4412, @lbl4413+@lbl4412+ dbgloc 338+ %t23 =l add %t8, 17+ %t24 =l loadl %t23+ %t25 =l copy %t24+ storel %t25, %t26+ call $__sx_dbg_keep(l %t26)+ dbgvar "tp", "ref ", %t26, 8, 7, 338+ dbgloc 339+ %t28 =l loadl %t26+ call $free(l %t28)+ %t27 =l copy 0+ jmp @lbl4413+@lbl4413+ dbgloc 341+ %t29 =l copy %t8+ storel %t29, %t30+ call $__sx_dbg_keep(l %t30)+ dbgvar "ep", "ref ", %t30, 8, 7, 341+ dbgloc 342+ %t32 =l loadl %t30+ call $free(l %t32)+ %t31 =l copy 0+@lbl4408+ %t33 =l add %t3, 1+ storel %t33, %t1+ jmp @lbl4405+@lbl4407+ dbgloc 344+ call $sxqbe_list_free(l %xs)+ %t34 =l copy 0+ ret 0+}++dbgfile "src/object/changeid.sx"+function l $changeid__alphabet() {+@start+ dbgloc 6+ dbgloc 7+ %t0 =l copy $__str245+ %t1 =l copy 32+ %t2 =l call $bytes__bytes(l %t0, l %t1)+ ret %t2+}++export function l $changeid__encode(l %cid) {+@start+ %t0 =l alloc8 8+ %t4 =l alloc8 8+ %t6 =l alloc8 8+ %t8 =l alloc8 8+ %t10 =l alloc8 8+ %t12 =l alloc8 8+ %t14 =l alloc8 8+ %t27 =l alloc8 8+ %t43 =l alloc8 8+ %t49 =l alloc8 8+ %t82 =l alloc8 8+ dbgloc 11+ storel %cid, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "cid", "objid.ChangeId", %t0, 8, 5, 11+ dbgloc 12+ %t2 =l copy 32+ %t1 =l call $malloc(l %t2)+ %t3 =l copy %t1+ storel %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "out", "ref u8", %t4, 8, 7, 12+ dbgloc 13+ %t5 =l call $changeid__alphabet()+ storel %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "alpha", "bytes.Bytes", %t6, 8, 5, 13+ dbgloc 14+ %t7 =l copy 0+ storel %t7, %t8+ call $__sx_dbg_keep(l %t8)+ dbgvar "bufv", "u64", %t8, 8, 7, 14+ dbgloc 15+ %t9 =l copy 0+ storel %t9, %t10+ call $__sx_dbg_keep(l %t10)+ dbgvar "bits", "usize", %t10, 8, 5, 15+ dbgloc 16+ %t11 =l copy 0+ storel %t11, %t12+ call $__sx_dbg_keep(l %t12)+ dbgvar "n", "usize", %t12, 8, 5, 16+ dbgloc 17+ %t13 =l copy 0+ storel %t13, %t14+ call $__sx_dbg_keep(l %t14)+ dbgvar "i", "usize", %t14, 8, 5, 17+ dbgloc 18+ jmp @lbl4415+@lbl4415+ %t15 =l loadl %t14+ %t16 =l copy 16+ %t17 =w csltl %t15, %t16+ jnz %t17, @lbl4416, @lbl4418+@lbl4416+ dbgloc 19+ %t20 =l loadl %cid+ %t21 =l loadl %t14+ %t22 =l copy %t21+ %t19 =l add %t20, %t22+ %t23 =w loadub %t19+ %t18 =l extsw %t23+ %t24 =w copy %t18+ %t25 =w copy %t24+ %t26 =w extub %t25+ storew %t26, %t27+ call $__sx_dbg_keep(l %t27)+ dbgvar "c", "u8", %t27, 1, 7, 19+ dbgloc 20+ %t28 =l loadl %t8+ %t29 =l copy 8+ %t30 =l shl %t28, %t29+ %t31 =l extsw %t26+ %t32 =l or %t30, %t31+ storel %t32, %t8+ dbgloc 21+ %t33 =l loadl %t10+ %t34 =l copy 8+ %t35 =l add %t33, %t34+ storel %t35, %t10+ dbgloc 22+ jmp @lbl4419+@lbl4419+ %t36 =l loadl %t10+ %t37 =l copy 5+ %t39 =w csltl %t36, %t37+ %t38 =w ceqw %t39, 0+ jnz %t38, @lbl4420, @lbl4422+@lbl4420+ dbgloc 23+ %t40 =l loadl %t10+ %t41 =l copy 5+ %t42 =l sub %t40, %t41+ storel %t42, %t43+ call $__sx_dbg_keep(l %t43)+ dbgvar "shift", "usize", %t43, 8, 5, 23+ dbgloc 24+ %t44 =l loadl %t8+ %t45 =l shr %t44, %t42+ %t46 =l copy 31+ %t47 =l and %t45, %t46+ %t48 =l copy %t47+ storel %t48, %t49+ call $__sx_dbg_keep(l %t49)+ dbgvar "idx", "usize", %t49, 8, 5, 24+ dbgloc 25+ %t52 =l loadl %t12+ %t53 =l copy %t52+ %t51 =l add %t3, %t53+ %t54 =w call $bytes__Bytes__at(l %t5, l %t48)+ storeb %t54, %t51+ %t50 =l copy 0+ dbgloc 26+ %t55 =l loadl %t12+ %t56 =l add %t55, 1+ storel %t56, %t12+ dbgloc 27+ storel %t42, %t10+ jmp @lbl4421+@lbl4421+ jmp @lbl4419+@lbl4422+ dbgloc 29+ %t57 =l loadl %t10+ %t58 =l copy 0+ %t59 =w ceql %t57, %t58+ jnz %t59, @lbl4423, @lbl4425+@lbl4423+ dbgloc 30+ %t60 =l copy 0+ storel %t60, %t8+ jmp @lbl4424+@lbl4425+ dbgloc 32+ %t61 =l loadl %t8+ %t62 =l copy 1+ %t63 =l copy %t62+ %t64 =l loadl %t10+ %t65 =l shl %t63, %t64+ %t66 =l copy 1+ %t67 =l sub %t65, %t66+ %t68 =l and %t61, %t67+ storel %t68, %t8+ jmp @lbl4424+@lbl4424+ dbgloc 34+ %t69 =l loadl %t14+ %t70 =l add %t69, 1+ storel %t70, %t14+ jmp @lbl4417+@lbl4417+ jmp @lbl4415+@lbl4418+ dbgloc 36+ %t71 =l loadl %t10+ %t72 =l copy 0+ %t73 =w csgtl %t71, %t72+ jnz %t73, @lbl4426, @lbl4427+@lbl4426+ dbgloc 37+ %t74 =l loadl %t8+ %t75 =l copy 5+ %t76 =l loadl %t10+ %t77 =l sub %t75, %t76+ %t78 =l shl %t74, %t77+ %t79 =l copy 31+ %t80 =l and %t78, %t79+ %t81 =l copy %t80+ storel %t81, %t82+ call $__sx_dbg_keep(l %t82)+ dbgvar "idx2", "usize", %t82, 8, 5, 37+ dbgloc 38+ %t85 =l loadl %t12+ %t86 =l copy %t85+ %t84 =l add %t3, %t86+ %t87 =w call $bytes__Bytes__at(l %t5, l %t81)+ storeb %t87, %t84+ %t83 =l copy 0+ dbgloc 39+ %t88 =l loadl %t12+ %t89 =l add %t88, 1+ storel %t89, %t12+ jmp @lbl4427+@lbl4427+ dbgloc 41+ %t90 =l loadl %t12+ %t91 =l call $bytes__bytes(l %t3, l %t90)+ ret %t91+}++export function w $changeid__prefix_matches(l %full, l %text) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t6 =l alloc4 1+ %t15 =l alloc8 8+ %t24 =l alloc8 8+ %t29 =l alloc8 8+ %t32 =l alloc8 8+ %t36 =l alloc4 1+ dbgloc 44+ storel %full, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "full", "bytes.Bytes", %t0, 8, 5, 44+ storel %text, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "text", "bytes.Bytes", %t1, 8, 5, 44+ dbgloc 45+ %t3 =l add %text, 8+ %t2 =l loadl %t3+ %t4 =l copy 0+ %t5 =w ceql %t2, %t4+ storew %t5, %t6+ jnz %t5, @lbl4433, @lbl4432+@lbl4432+ %t8 =l add %text, 8+ %t7 =l loadl %t8+ %t10 =l add %full, 8+ %t9 =l loadl %t10+ %t11 =w csgtl %t7, %t9+ storew %t11, %t6+ jmp @lbl4433+@lbl4433+ %t12 =w loadw %t6+ jnz %t12, @lbl4429, @lbl4430+@lbl4429+ dbgloc 46+ %t13 =l copy 0+ ret %t13+@lbl4430+ dbgloc 48+ %t14 =l copy 0+ storel %t14, %t15+ call $__sx_dbg_keep(l %t15)+ dbgvar "i", "usize", %t15, 8, 5, 48+ dbgloc 49+ jmp @lbl4434+@lbl4434+ %t16 =l loadl %t15+ %t18 =l add %text, 8+ %t17 =l loadl %t18+ %t19 =w csltl %t16, %t17+ jnz %t19, @lbl4435, @lbl4437+@lbl4435+ dbgloc 50+ %t20 =l loadl %t15+ %t21 =w call $bytes__Bytes__at(l %full, l %t20)+ %t22 =w copy %t21+ %t23 =w extub %t22+ storew %t23, %t24+ call $__sx_dbg_keep(l %t24)+ dbgvar "a", "u8", %t24, 1, 7, 50+ dbgloc 51+ %t25 =l loadl %t15+ %t26 =w call $bytes__Bytes__at(l %text, l %t25)+ %t27 =w copy %t26+ %t28 =w extub %t27+ storew %t28, %t29+ call $__sx_dbg_keep(l %t29)+ dbgvar "c", "u8", %t29, 1, 7, 51+ dbgloc 52+ %t30 =w copy %t28+ %t31 =w extub %t30+ storew %t31, %t32+ call $__sx_dbg_keep(l %t32)+ dbgvar "lower", "u8", %t32, 1, 7, 52+ dbgloc 53+ %t33 =w copy 65+ %t35 =w csltw %t28, %t33+ %t34 =w ceqw %t35, 0+ storew %t34, %t36+ jnz %t34, @lbl4441, @lbl4442+@lbl4441+ %t37 =w copy 90+ %t38 =w cslew %t28, %t37+ storew %t38, %t36+ jmp @lbl4442+@lbl4442+ %t39 =w loadw %t36+ jnz %t39, @lbl4438, @lbl4439+@lbl4438+ dbgloc 54+ %t40 =l extsw %t28+ %t41 =l copy 32+ %t43 =l extsw %t40+ %t42 =l add %t43, %t41+ %t44 =w copy %t42+ %t45 =w extub %t44+ storew %t45, %t32+ jmp @lbl4439+@lbl4439+ dbgloc 56+ %t46 =l extsw %t23+ %t48 =w loadw %t32+ %t47 =l extsw %t48+ %t49 =l extsw %t47+ %t50 =w cnew %t46, %t49+ jnz %t50, @lbl4443, @lbl4444+@lbl4443+ dbgloc 57+ %t51 =l copy 0+ ret %t51+@lbl4444+ dbgloc 59+ %t52 =l loadl %t15+ %t53 =l add %t52, 1+ storel %t53, %t15+ jmp @lbl4436+@lbl4436+ jmp @lbl4434+@lbl4437+ dbgloc 61+ %t54 =l copy 1+ ret %t54+}++export function w $changeid__free(l %cid) {+@start+ %t0 =l alloc8 8+ %t6 =l alloc8 8+ dbgloc 64+ storel %cid, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "cid", "bytes.Bytes", %t0, 8, 5, 64+ dbgloc 65+ %t1 =l loadl %cid+ %t2 =l copy 0+ %t3 =w cnel %t1, %t2+ jnz %t3, @lbl4446, @lbl4447+@lbl4446+ dbgloc 66+ %t4 =l loadl %cid+ %t5 =l copy %t4+ storel %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "p", "ref ", %t6, 8, 7, 66+ dbgloc 67+ %t8 =l loadl %t6+ call $free(l %t8)+ %t7 =l copy 0+ jmp @lbl4447+@lbl4447+ ret 0+}++dbgfile "src/store/viewops.sx"+export function l $viewops__copy_id(l %id) {+@start+ %t0 =l alloc8 8+ %t4 =l alloc8 8+ dbgloc 8+ storel %id, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "id", "objid.Id", %t0, 8, 5, 8+ dbgloc 9+ %t2 =l copy 32+ %t1 =l call $malloc(l %t2)+ %t3 =l copy %t1+ storel %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "out", "ref u8", %t4, 8, 7, 9+ dbgloc 10+ %t6 =l copy %t3+ %t7 =l loadl %id+ %t8 =l copy %t7+ %t9 =l copy 32+ call $memcpy(l %t6, l %t8, l %t9)+ %t5 =l copy 0+ dbgloc 11+ %t10 =l call $objid__id(l %t3)+ ret %t10+}++export function w $viewops__same(l %a, l %b) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 14+ storel %a, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "a", "objid.Id", %t0, 8, 5, 14+ storel %b, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "b", "objid.Id", %t1, 8, 5, 14+ dbgloc 15+ %t2 =w call $objid__Id__eql(l %a, l %b)+ ret %t2+}++export function w $viewops__contains(l %xs, l %id) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ dbgloc 18+ storel %xs, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "xs", "list[objid.Id]", %t0, 8, 5, 18+ storel %id, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "id", "objid.Id", %t1, 8, 5, 18+ dbgloc 19+ storel 0, %t2+ %t3 =l call $sxqbe_list_len(l %xs)+@lbl4449+ %t4 =l loadl %t2+ %t5 =w csltl %t4, %t3+ jnz %t5, @lbl4450, @lbl4451+@lbl4450+ %t6 =l call $sxqbe_list_buf(l %xs)+ %t7 =l mul %t4, 8+ %t8 =l add %t6, %t7+ %t9 =l loadl %t8+ dbgloc 20+ %t10 =w call $viewops__same(l %t9, l %id)+ jnz %t10, @lbl4453, @lbl4454+@lbl4453+ dbgloc 21+ %t11 =l copy 1+ ret %t11+@lbl4454+@lbl4452+ %t12 =l add %t4, 1+ storel %t12, %t2+ jmp @lbl4449+@lbl4451+ dbgloc 24+ %t13 =l copy 0+ ret %t13+}++export function w $viewops__add_unique(l %xs, l %id) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 27+ storel %xs, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "xs", "list[objid.Id]", %t0, 8, 5, 27+ storel %id, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "id", "objid.Id", %t1, 8, 5, 27+ dbgloc 28+ %t2 =l loadl %t0+ %t3 =w call $viewops__contains(l %t2, l %id)+ %t4 =w ceqw %t3, 0+ jnz %t4, @lbl4456, @lbl4457+@lbl4456+ dbgloc 29+ %t6 =l call $sxqbe_list_ensure(l %t0)+ %t7 =l call $viewops__copy_id(l %id)+ %t8 =l add %t6, 8+ %t9 =l add %t6, 16+ %t10 =l loadl %t8+ %t11 =l loadl %t9+ %t13 =l add %t10, 1+ %t12 =w call $sxqbe_list_grow(l %t6, l %t13)+ %t14 =l call $sxqbe_list_buf(l %t6)+ %t15 =l mul %t10, 8+ %t16 =l add %t14, %t15+ storel %t7, %t16+ %t17 =l add %t10, 1+ storel %t17, %t8+ %t5 =l copy 0+ jmp @lbl4457+@lbl4457+ ret 0+}++export function l $viewops__workspace_name() {+@start+ dbgloc 33+ dbgloc 34+ %t0 =l copy $__str246+ %t1 =l copy 7+ %t2 =l call $bytes__bytes(l %t0, l %t1)+ ret %t2+}++export function l $viewops__working_copy(l %__ret, l %v) {+@start+ %t0 =l alloc8 8+ %t2 =l alloc8 8+ %t5 =l alloc8 8+ %t17 =l alloc8 16+ %t20 =l alloc8 16+ dbgloc 37+ storel %v, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "v", "ref view.View", %t0, 8, 7, 37+ dbgloc 38+ %t1 =l call $viewops__workspace_name()+ storel %t1, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "name", "bytes.Bytes", %t2, 8, 5, 38+ dbgloc 39+ %t4 =l add %v, 32+ %t3 =l loadl %t4+ storel 0, %t5+ %t6 =l call $sxqbe_list_len(l %t3)+@lbl4459+ %t7 =l loadl %t5+ %t8 =w csltl %t7, %t6+ jnz %t8, @lbl4460, @lbl4461+@lbl4460+ %t9 =l call $sxqbe_list_buf(l %t3)+ %t10 =l mul %t7, 8+ %t11 =l add %t9, %t10+ %t12 =l loadl %t11+ dbgloc 40+ %t13 =l add %t12, 0+ %t14 =w call $bytes__Bytes__eql(l %t13, l %t1)+ jnz %t14, @lbl4463, @lbl4464+@lbl4463+ dbgloc 41+ %t15 =l add %t12, 16+ %t16 =l call $viewops__copy_id(l %t15)+ call $memset(l %t17, w 0, l 16)+ storel 1, %t17+ %t18 =l add %t17, 8+ storel %t16, %t18+ call $memcpy(l %__ret, l %t17, l 16)+ ret %__ret+@lbl4464+@lbl4462+ %t19 =l add %t7, 1+ storel %t19, %t5+ jmp @lbl4459+@lbl4461+ dbgloc 44+ storel 0, %t20+ call $memcpy(l %__ret, l %t20, l 16)+ ret %__ret+}++export function w $viewops__set_workspace(l %v, l %id) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t3 =l alloc8 8+ %t5 =l alloc8 8+ %t14 =l alloc8 16+ %t25 =l alloc8 8+ %t39 =l alloc8 8+ dbgloc 47+ storel %v, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "v", "ref view.View", %t0, 8, 7, 47+ storel %id, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "id", "objid.Id", %t1, 8, 5, 47+ dbgloc 48+ %t2 =l call $viewops__workspace_name()+ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "name", "bytes.Bytes", %t3, 8, 5, 48+ dbgloc 49+ %t4 =l copy 0+ storel %t4, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "i", "usize", %t5, 8, 5, 49+ dbgloc 50+ jmp @lbl4466+@lbl4466+ %t6 =l loadl %t5+ %t8 =l loadl %t0+ %t9 =l add %t8, 32+ %t10 =l loadl %t9+ %t11 =l call $sxqbe_list_len(l %t10)+ %t12 =w csltl %t6, %t11+ jnz %t12, @lbl4467, @lbl4469+@lbl4467+ dbgloc 51+ storel 0, %t14+ %t15 =l loadl %t0+ %t16 =l add %t15, 32+ %t17 =l loadl %t16+ %t18 =l loadl %t5+ %t19 =w call $sxqbe_list_valid(l %t17, l %t18)+ jnz %t19, @lbl4470, @lbl4471+@lbl4470+ %t20 =l call $sxqbe_list_buf(l %t17)+ %t21 =l mul %t18, 8+ %t22 =l add %t20, %t21+ %t23 =l loadl %t22+ %t24 =l add %t14, 8+ storel %t23, %t24+ storel 1, %t14+ jmp @lbl4472+@lbl4471+ jmp @lbl4472+@lbl4472+ storel %t14, %t25+ call $__sx_dbg_keep(l %t25)+ dbgvar "o", "option[ref WorkspaceRef]", %t25, 8, 5, 51+ dbgloc 52+ %t26 =l loadl %t14+ %t27 =w cnel %t26, 0+ jnz %t27, @lbl4473, @lbl4474+@lbl4473+ %t29 =l add %t14, 8+ %t28 =l loadl %t29+ dbgloc 53+ %t30 =l add %t28, 0+ %t31 =w call $bytes__Bytes__eql(l %t30, l %t2)+ jnz %t31, @lbl4476, @lbl4477+@lbl4476+ dbgloc 54+ %t32 =l call $viewops__copy_id(l %id)+ %t33 =l add %t28, 16+ call $memcpy(l %t33, l %t32, l 8)+ dbgloc 55+ ret 0+@lbl4477+ jmp @lbl4475+@lbl4474+ jmp @lbl4475+@lbl4475+ dbgloc 58+ %t34 =l loadl %t5+ %t35 =l add %t34, 1+ storel %t35, %t5+ jmp @lbl4468+@lbl4468+ jmp @lbl4466+@lbl4469+ dbgloc 60+ %t37 =l copy 24+ %t36 =l call $malloc(l %t37)+ %t38 =l copy %t36+ storel %t38, %t39+ call $__sx_dbg_keep(l %t39)+ dbgvar "w2", "ref view.WorkspaceRef", %t39, 8, 7, 60+ dbgloc 61+ %t40 =l call $bytes__Bytes__dup(l %t2)+ %t41 =l loadl %t39+ call $memcpy(l %t41, l %t40, l 16)+ dbgloc 62+ %t42 =l call $viewops__copy_id(l %id)+ %t43 =l loadl %t39+ %t44 =l add %t43, 16+ call $memcpy(l %t44, l %t42, l 8)+ dbgloc 63+ %t46 =l loadl %t0+ %t47 =l add %t46, 32+ %t48 =l call $sxqbe_list_ensure(l %t47)+ %t49 =l loadl %t39+ %t50 =l add %t48, 8+ %t51 =l add %t48, 16+ %t52 =l loadl %t50+ %t53 =l loadl %t51+ %t55 =l add %t52, 1+ %t54 =w call $sxqbe_list_grow(l %t48, l %t55)+ %t56 =l call $sxqbe_list_buf(l %t48)+ %t57 =l mul %t52, 8+ %t58 =l add %t56, %t57+ storel %t49, %t58+ %t59 =l add %t52, 1+ storel %t59, %t50+ %t45 =l copy 0+ dbgloc 64+ %t60 =l loadl %t0+ %t62 =l add %t60, 32+ %t61 =l loadl %t62+ %t63 =w call $viewops__sort_workspaces(l %t61)+ ret 0+}++export function w $viewops__remove_head(l %v, l %id) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t3 =l alloc8 8+ %t11 =l alloc8 16+ %t21 =l alloc8 8+ dbgloc 67+ storel %v, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "v", "ref view.View", %t0, 8, 7, 67+ storel %id, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "id", "objid.Id", %t1, 8, 5, 67+ dbgloc 68+ %t2 =l copy 0+ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "i", "usize", %t3, 8, 5, 68+ dbgloc 69+ jmp @lbl4479+@lbl4479+ %t4 =l loadl %t3+ %t6 =l loadl %t0+ %t7 =l loadl %t6+ %t8 =l call $sxqbe_list_len(l %t7)+ %t9 =w csltl %t4, %t8+ jnz %t9, @lbl4480, @lbl4482+@lbl4480+ dbgloc 70+ storel 0, %t11+ %t12 =l loadl %t0+ %t13 =l loadl %t12+ %t14 =l loadl %t3+ %t15 =w call $sxqbe_list_valid(l %t13, l %t14)+ jnz %t15, @lbl4483, @lbl4484+@lbl4483+ %t16 =l call $sxqbe_list_buf(l %t13)+ %t17 =l mul %t14, 8+ %t18 =l add %t16, %t17+ %t19 =l loadl %t18+ %t20 =l add %t11, 8+ storel %t19, %t20+ storel 1, %t11+ jmp @lbl4485+@lbl4484+ jmp @lbl4485+@lbl4485+ storel %t11, %t21+ call $__sx_dbg_keep(l %t21)+ dbgvar "o", "option[objid.Id]", %t21, 8, 5, 70+ dbgloc 71+ %t22 =l loadl %t11+ %t23 =w cnel %t22, 0+ jnz %t23, @lbl4486, @lbl4487+@lbl4486+ %t25 =l add %t11, 8+ %t24 =l loadl %t25+ dbgloc 72+ %t26 =w call $viewops__same(l %t24, l %id)+ jnz %t26, @lbl4489, @lbl4490+@lbl4489+ dbgloc 73+ %t28 =l loadl %t0+ %t29 =l call $sxqbe_list_ensure(l %t28)+ %t30 =l loadl %t3+ %t31 =l add %t29, 8+ %t32 =l loadl %t31+ %t33 =l loadl %t29+ %t34 =l mul %t30, 8+ %t35 =l add %t33, %t34+ %t36 =l loadl %t35+ %t37 =l copy %t30+ jmp @lbl4492+@lbl4492+ %t38 =l sub %t32, 1+ %t39 =w csltl %t37, %t38+ jnz %t39, @lbl4493, @lbl4494+@lbl4493+ %t40 =l add %t37, 1+ %t41 =l mul %t40, 8+ %t42 =l mul %t37, 8+ %t43 =l loadl %t29+ %t44 =l add %t43, %t41+ %t45 =l add %t43, %t42+ %t46 =l loadl %t44+ storel %t46, %t45+ %t47 =l add %t37, 1+ %t37 =l copy %t47+ jmp @lbl4492+@lbl4494+ %t48 =l sub %t32, 1+ storel %t48, %t31+ dbgloc 74+ ret 0+@lbl4490+ jmp @lbl4488+@lbl4487+ jmp @lbl4488+@lbl4488+ dbgloc 77+ %t49 =l loadl %t3+ %t50 =l add %t49, 1+ storel %t50, %t3+ jmp @lbl4481+@lbl4481+ jmp @lbl4479+@lbl4482+ ret 0+}++function w $viewops__sort_heads(l %xs) {+@start+ %t0 =l alloc8 8+ %t2 =l alloc8 8+ %t9 =l alloc8 16+ %t18 =l alloc8 8+ %t21 =l alloc8 8+ %t27 =l alloc8 8+ %t32 =l alloc8 16+ %t43 =l alloc8 8+ %t46 =l alloc8 8+ dbgloc 81+ storel %xs, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "xs", "list[objid.Id]", %t0, 8, 5, 81+ dbgloc 82+ %t1 =l copy 1+ storel %t1, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "i", "usize", %t2, 8, 5, 82+ dbgloc 83+ jmp @lbl4495+@lbl4495+ %t3 =l loadl %t2+ %t5 =l loadl %t0+ %t6 =l call $sxqbe_list_len(l %t5)+ %t7 =w csltl %t3, %t6+ jnz %t7, @lbl4496, @lbl4498+@lbl4496+ dbgloc 84+ storel 0, %t9+ %t10 =l loadl %t0+ %t11 =l loadl %t2+ %t12 =w call $sxqbe_list_valid(l %t10, l %t11)+ jnz %t12, @lbl4499, @lbl4500+@lbl4499+ %t13 =l call $sxqbe_list_buf(l %t10)+ %t14 =l mul %t11, 8+ %t15 =l add %t13, %t14+ %t16 =l loadl %t15+ %t17 =l add %t9, 8+ storel %t16, %t17+ storel 1, %t9+ jmp @lbl4501+@lbl4500+ jmp @lbl4501+@lbl4501+ storel %t9, %t18+ call $__sx_dbg_keep(l %t18)+ dbgvar "cur", "option[objid.Id]", %t18, 8, 5, 84+ dbgloc 85+ %t19 =l call $objid__id_none()+ %t20 =l call $malloc(l 8)+ call $memset(l %t20, w 0, l 8)+ call $memcpy(l %t20, l %t19, l 8)+ storel %t20, %t21+ call $__sx_dbg_keep(l %t21)+ dbgvar "c", "objid.Id", %t21, 8, 5, 85+ dbgloc 86+ %t22 =l loadl %t9+ %t23 =w cnel %t22, 0+ jnz %t23, @lbl4502, @lbl4503+@lbl4502+ %t25 =l add %t9, 8+ %t24 =l loadl %t25+ dbgloc 87+ storel %t24, %t21+ jmp @lbl4504+@lbl4503+ jmp @lbl4504+@lbl4504+ dbgloc 89+ %t26 =l loadl %t2+ storel %t26, %t27+ call $__sx_dbg_keep(l %t27)+ dbgvar "j", "usize", %t27, 8, 5, 89+ dbgloc 90+ jmp @lbl4505+@lbl4505+ %t28 =l loadl %t27+ %t29 =l copy 0+ %t30 =w csgtl %t28, %t29+ jnz %t30, @lbl4506, @lbl4508+@lbl4506+ dbgloc 91+ storel 0, %t32+ %t33 =l loadl %t0+ %t34 =l loadl %t27+ %t35 =l copy 1+ %t36 =l sub %t34, %t35+ %t37 =w call $sxqbe_list_valid(l %t33, l %t36)+ jnz %t37, @lbl4509, @lbl4510+@lbl4509+ %t38 =l call $sxqbe_list_buf(l %t33)+ %t39 =l mul %t36, 8+ %t40 =l add %t38, %t39+ %t41 =l loadl %t40+ %t42 =l add %t32, 8+ storel %t41, %t42+ storel 1, %t32+ jmp @lbl4511+@lbl4510+ jmp @lbl4511+@lbl4511+ storel %t32, %t43+ call $__sx_dbg_keep(l %t43)+ dbgvar "prev_opt", "option[objid.Id]", %t43, 8, 5, 91+ dbgloc 92+ %t44 =l call $objid__id_none()+ %t45 =l call $malloc(l 8)+ call $memset(l %t45, w 0, l 8)+ call $memcpy(l %t45, l %t44, l 8)+ storel %t45, %t46+ call $__sx_dbg_keep(l %t46)+ dbgvar "prev", "objid.Id", %t46, 8, 5, 92+ dbgloc 93+ %t47 =l loadl %t32+ %t48 =w cnel %t47, 0+ jnz %t48, @lbl4512, @lbl4513+@lbl4512+ %t50 =l add %t32, 8+ %t49 =l loadl %t50+ dbgloc 94+ storel %t49, %t46+ jmp @lbl4514+@lbl4513+ jmp @lbl4514+@lbl4514+ dbgloc 96+ %t51 =l loadl %t46+ %t52 =l loadl %t21+ %t53 =l call $objid__Id__cmp(l %t51, l %t52)+ %t54 =l copy 0+ %t55 =w cslel %t53, %t54+ jnz %t55, @lbl4515, @lbl4516+@lbl4515+ dbgloc 97+ jmp @lbl4508+@lbl4516+ dbgloc 99+ %t57 =l loadl %t0+ %t58 =l loadl %t27+ %t59 =l loadl %t46+ %t60 =l loadl %t57+ %t61 =l mul %t58, 8+ %t62 =l add %t60, %t61+ storel %t59, %t62+ %t56 =l copy 0+ dbgloc 100+ %t63 =l loadl %t27+ %t64 =l sub %t63, 1+ storel %t64, %t27+ jmp @lbl4507+@lbl4507+ jmp @lbl4505+@lbl4508+ dbgloc 102+ %t66 =l loadl %t0+ %t67 =l loadl %t27+ %t68 =l loadl %t21+ %t69 =l loadl %t66+ %t70 =l mul %t67, 8+ %t71 =l add %t69, %t70+ storel %t68, %t71+ %t65 =l copy 0+ dbgloc 103+ %t72 =l loadl %t2+ %t73 =l add %t72, 1+ storel %t73, %t2+ jmp @lbl4497+@lbl4497+ jmp @lbl4495+@lbl4498+ ret 0+}++export function w $viewops__rebuild_heads(l %v) {+@start+ %t0 =l alloc8 8+ %t9 =l alloc8 8+ %t19 =l alloc8 8+ %t35 =l alloc8 8+ %t51 =l alloc8 8+ dbgloc 110+ storel %v, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "v", "ref view.View", %t0, 8, 7, 110+ dbgloc 113+ %t2 =l loadl %t0+ %t3 =l loadl %t2+ call $sxqbe_list_free(l %t3)+ %t1 =l copy 0+ dbgloc 114+ %t4 =l call $lists__new__GENMONO__objid__Id()++ %t5 =l loadl %t0+ storel %t4, %t5+ dbgloc 115+ %t6 =l loadl %t0+ %t8 =l add %t6, 8+ %t7 =l loadl %t8+ storel 0, %t9+ %t10 =l call $sxqbe_list_len(l %t7)+@lbl4518+ %t11 =l loadl %t9+ %t12 =w csltl %t11, %t10+ jnz %t12, @lbl4519, @lbl4520+@lbl4519+ %t13 =l call $sxqbe_list_buf(l %t7)+ %t14 =l mul %t11, 8+ %t15 =l add %t13, %t14+ %t16 =l loadl %t15+ dbgloc 116+ %t17 =l add %t16, 16+ %t18 =l loadl %t17+ storel 0, %t19+ %t20 =l call $sxqbe_list_len(l %t18)+@lbl4522+ %t21 =l loadl %t19+ %t22 =w csltl %t21, %t20+ jnz %t22, @lbl4523, @lbl4524+@lbl4523+ %t23 =l call $sxqbe_list_buf(l %t18)+ %t24 =l mul %t21, 8+ %t25 =l add %t23, %t24+ %t26 =l loadl %t25+ dbgloc 117+ %t27 =l loadl %t0+ %t28 =l loadl %t27+ %t29 =w call $viewops__add_unique(l %t28, l %t26)+@lbl4525+ %t30 =l add %t21, 1+ storel %t30, %t19+ jmp @lbl4522+@lbl4524+@lbl4521+ %t31 =l add %t11, 1+ storel %t31, %t9+ jmp @lbl4518+@lbl4520+ dbgloc 120+ %t32 =l loadl %t0+ %t34 =l add %t32, 16+ %t33 =l loadl %t34+ storel 0, %t35+ %t36 =l call $sxqbe_list_len(l %t33)+@lbl4526+ %t37 =l loadl %t35+ %t38 =w csltl %t37, %t36+ jnz %t38, @lbl4527, @lbl4528+@lbl4527+ %t39 =l call $sxqbe_list_buf(l %t33)+ %t40 =l mul %t37, 8+ %t41 =l add %t39, %t40+ %t42 =l loadl %t41+ dbgloc 121+ %t43 =l loadl %t0+ %t44 =l loadl %t43+ %t45 =l add %t42, 16+ %t46 =w call $viewops__add_unique(l %t44, l %t45)+@lbl4529+ %t47 =l add %t37, 1+ storel %t47, %t35+ jmp @lbl4526+@lbl4528+ dbgloc 123+ %t48 =l loadl %t0+ %t50 =l add %t48, 32+ %t49 =l loadl %t50+ storel 0, %t51+ %t52 =l call $sxqbe_list_len(l %t49)+@lbl4530+ %t53 =l loadl %t51+ %t54 =w csltl %t53, %t52+ jnz %t54, @lbl4531, @lbl4532+@lbl4531+ %t55 =l call $sxqbe_list_buf(l %t49)+ %t56 =l mul %t53, 8+ %t57 =l add %t55, %t56+ %t58 =l loadl %t57+ dbgloc 124+ %t59 =l loadl %t0+ %t60 =l loadl %t59+ %t61 =l add %t58, 16+ %t62 =w call $viewops__add_unique(l %t60, l %t61)+@lbl4533+ %t63 =l add %t53, 1+ storel %t63, %t51+ jmp @lbl4530+@lbl4532+ dbgloc 126+ %t64 =l loadl %t0+ %t65 =l loadl %t64+ %t66 =w call $viewops__sort_heads(l %t65)+ ret 0+}++export function w $viewops__move_bookmarks(l %v, l %old_id, l %new_id) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t5 =l alloc8 8+ %t13 =l alloc8 16+ %t23 =l alloc8 8+ dbgloc 135+ storel %v, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "v", "ref view.View", %t0, 8, 7, 135+ storel %old_id, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "old_id", "objid.Id", %t1, 8, 5, 135+ storel %new_id, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "new_id", "objid.Id", %t2, 8, 5, 135+ dbgloc 136+ %t3 =w call $viewops__same(l %old_id, l %new_id)+ jnz %t3, @lbl4534, @lbl4535+@lbl4534+ dbgloc 137+ ret 0+@lbl4535+ dbgloc 139+ %t4 =l copy 0+ storel %t4, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "i", "usize", %t5, 8, 5, 139+ dbgloc 140+ jmp @lbl4537+@lbl4537+ %t6 =l loadl %t5+ %t8 =l add %v, 8+ %t9 =l loadl %t8+ %t10 =l call $sxqbe_list_len(l %t9)+ %t11 =w csltl %t6, %t10+ jnz %t11, @lbl4538, @lbl4540+@lbl4538+ dbgloc 141+ storel 0, %t13+ %t14 =l add %v, 8+ %t15 =l loadl %t14+ %t16 =l loadl %t5+ %t17 =w call $sxqbe_list_valid(l %t15, l %t16)+ jnz %t17, @lbl4541, @lbl4542+@lbl4541+ %t18 =l call $sxqbe_list_buf(l %t15)+ %t19 =l mul %t16, 8+ %t20 =l add %t18, %t19+ %t21 =l loadl %t20+ %t22 =l add %t13, 8+ storel %t21, %t22+ storel 1, %t13+ jmp @lbl4543+@lbl4542+ jmp @lbl4543+@lbl4543+ storel %t13, %t23+ call $__sx_dbg_keep(l %t23)+ dbgvar "existing", "option[ref Bookmark]", %t23, 8, 5, 141+ dbgloc 142+ %t24 =l loadl %t13+ %t25 =w cnel %t24, 0+ jnz %t25, @lbl4544, @lbl4545+@lbl4544+ %t27 =l add %t13, 8+ %t26 =l loadl %t27+ dbgloc 143+ %t28 =l add %t26, 16+ %t29 =l loadl %t28+ %t30 =w call $viewops__contains(l %t29, l %old_id)+ jnz %t30, @lbl4547, @lbl4548+@lbl4547+ dbgloc 144+ %t32 =l add %t26, 16+ %t33 =l loadl %t32+ call $sxqbe_list_free(l %t33)+ %t31 =l copy 0+ dbgloc 145+ %t35 =l add %t26, 16+ %t37 =l add %t35, 8+ %t36 =l loadl %t37+ call $sxqbe_list_free(l %t36)+ %t34 =l copy 0+ dbgloc 146+ %t38 =l call $lists__new__GENMONO__objid__Id()++ %t39 =l add %t26, 16+ storel %t38, %t39+ dbgloc 147+ %t40 =l call $lists__new__GENMONO__objid__Id()++ %t41 =l add %t26, 16+ %t42 =l add %t41, 8+ storel %t40, %t42+ dbgloc 148+ %t44 =l add %t26, 16+ %t45 =l call $sxqbe_list_ensure(l %t44)+ %t46 =l call $viewops__copy_id(l %new_id)+ %t47 =l add %t45, 8+ %t48 =l add %t45, 16+ %t49 =l loadl %t47+ %t50 =l loadl %t48+ %t52 =l add %t49, 1+ %t51 =w call $sxqbe_list_grow(l %t45, l %t52)+ %t53 =l call $sxqbe_list_buf(l %t45)+ %t54 =l mul %t49, 8+ %t55 =l add %t53, %t54+ storel %t46, %t55+ %t56 =l add %t49, 1+ storel %t56, %t47+ %t43 =l copy 0+ jmp @lbl4548+@lbl4548+ jmp @lbl4546+@lbl4545+ jmp @lbl4546+@lbl4546+ dbgloc 151+ %t57 =l loadl %t5+ %t58 =l add %t57, 1+ storel %t58, %t5+ jmp @lbl4539+@lbl4539+ jmp @lbl4537+@lbl4540+ ret 0+}++export function l $viewops__find_bookmark(l %__ret, l %v, l %name) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t3 =l alloc8 8+ %t11 =l alloc8 16+ %t21 =l alloc8 8+ %t29 =l alloc8 16+ %t33 =l alloc8 16+ dbgloc 155+ storel %v, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "v", "ref view.View", %t0, 8, 7, 155+ storel %name, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "name", "bytes.Bytes", %t1, 8, 5, 155+ dbgloc 156+ %t2 =l copy 0+ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "i", "usize", %t3, 8, 5, 156+ dbgloc 157+ jmp @lbl4550+@lbl4550+ %t4 =l loadl %t3+ %t6 =l add %v, 8+ %t7 =l loadl %t6+ %t8 =l call $sxqbe_list_len(l %t7)+ %t9 =w csltl %t4, %t8+ jnz %t9, @lbl4551, @lbl4553+@lbl4551+ dbgloc 158+ storel 0, %t11+ %t12 =l add %v, 8+ %t13 =l loadl %t12+ %t14 =l loadl %t3+ %t15 =w call $sxqbe_list_valid(l %t13, l %t14)+ jnz %t15, @lbl4554, @lbl4555+@lbl4554+ %t16 =l call $sxqbe_list_buf(l %t13)+ %t17 =l mul %t14, 8+ %t18 =l add %t16, %t17+ %t19 =l loadl %t18+ %t20 =l add %t11, 8+ storel %t19, %t20+ storel 1, %t11+ jmp @lbl4556+@lbl4555+ jmp @lbl4556+@lbl4556+ storel %t11, %t21+ call $__sx_dbg_keep(l %t21)+ dbgvar "o", "option[ref Bookmark]", %t21, 8, 5, 158+ dbgloc 159+ %t22 =l loadl %t11+ %t23 =w cnel %t22, 0+ jnz %t23, @lbl4557, @lbl4558+@lbl4557+ %t25 =l add %t11, 8+ %t24 =l loadl %t25+ dbgloc 160+ %t26 =l add %t24, 0+ %t27 =w call $bytes__Bytes__eql(l %t26, l %name)+ jnz %t27, @lbl4560, @lbl4561+@lbl4560+ dbgloc 161+ %t28 =l loadl %t3+ call $memset(l %t29, w 0, l 16)+ storel 1, %t29+ %t30 =l add %t29, 8+ storel %t28, %t30+ call $memcpy(l %__ret, l %t29, l 16)+ ret %__ret+@lbl4561+ jmp @lbl4559+@lbl4558+ jmp @lbl4559+@lbl4559+ dbgloc 164+ %t31 =l loadl %t3+ %t32 =l add %t31, 1+ storel %t32, %t3+ jmp @lbl4552+@lbl4552+ jmp @lbl4550+@lbl4553+ dbgloc 166+ storel 0, %t33+ call $memcpy(l %__ret, l %t33, l 16)+ ret %__ret+}++export function w $viewops__sort_bookmarks(l %xs) {+@start+ %t0 =l alloc8 8+ %t2 =l alloc8 8+ %t9 =l alloc8 16+ %t18 =l alloc8 8+ %t20 =l alloc8 8+ %t26 =l alloc8 8+ %t31 =l alloc8 16+ %t42 =l alloc8 8+ %t44 =l alloc8 8+ dbgloc 169+ storel %xs, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "xs", "list[ref view.Bookmark]", %t0, 8, 5, 169+ dbgloc 170+ %t1 =l copy 1+ storel %t1, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "i", "usize", %t2, 8, 5, 170+ dbgloc 171+ jmp @lbl4563+@lbl4563+ %t3 =l loadl %t2+ %t5 =l loadl %t0+ %t6 =l call $sxqbe_list_len(l %t5)+ %t7 =w csltl %t3, %t6+ jnz %t7, @lbl4564, @lbl4566+@lbl4564+ dbgloc 172+ storel 0, %t9+ %t10 =l loadl %t0+ %t11 =l loadl %t2+ %t12 =w call $sxqbe_list_valid(l %t10, l %t11)+ jnz %t12, @lbl4567, @lbl4568+@lbl4567+ %t13 =l call $sxqbe_list_buf(l %t10)+ %t14 =l mul %t11, 8+ %t15 =l add %t13, %t14+ %t16 =l loadl %t15+ %t17 =l add %t9, 8+ storel %t16, %t17+ storel 1, %t9+ jmp @lbl4569+@lbl4568+ jmp @lbl4569+@lbl4569+ storel %t9, %t18+ call $__sx_dbg_keep(l %t18)+ dbgvar "cur", "option[ref view.Bookmark]", %t18, 8, 5, 172+ dbgloc 173+ %t19 =l copy 0+ storel %t19, %t20+ call $__sx_dbg_keep(l %t20)+ dbgvar "c", "ref view.Bookmark", %t20, 8, 7, 173+ dbgloc 174+ %t21 =l loadl %t9+ %t22 =w cnel %t21, 0+ jnz %t22, @lbl4570, @lbl4571+@lbl4570+ %t24 =l add %t9, 8+ %t23 =l loadl %t24+ dbgloc 175+ storel %t23, %t20+ jmp @lbl4572+@lbl4571+ jmp @lbl4572+@lbl4572+ dbgloc 177+ %t25 =l loadl %t2+ storel %t25, %t26+ call $__sx_dbg_keep(l %t26)+ dbgvar "j", "usize", %t26, 8, 5, 177+ dbgloc 178+ jmp @lbl4573+@lbl4573+ %t27 =l loadl %t26+ %t28 =l copy 0+ %t29 =w csgtl %t27, %t28+ jnz %t29, @lbl4574, @lbl4576+@lbl4574+ dbgloc 179+ storel 0, %t31+ %t32 =l loadl %t0+ %t33 =l loadl %t26+ %t34 =l copy 1+ %t35 =l sub %t33, %t34+ %t36 =w call $sxqbe_list_valid(l %t32, l %t35)+ jnz %t36, @lbl4577, @lbl4578+@lbl4577+ %t37 =l call $sxqbe_list_buf(l %t32)+ %t38 =l mul %t35, 8+ %t39 =l add %t37, %t38+ %t40 =l loadl %t39+ %t41 =l add %t31, 8+ storel %t40, %t41+ storel 1, %t31+ jmp @lbl4579+@lbl4578+ jmp @lbl4579+@lbl4579+ storel %t31, %t42+ call $__sx_dbg_keep(l %t42)+ dbgvar "prev_opt", "option[ref view.Bookmark]", %t42, 8, 5, 179+ dbgloc 180+ %t43 =l copy 0+ storel %t43, %t44+ call $__sx_dbg_keep(l %t44)+ dbgvar "prev", "ref view.Bookmark", %t44, 8, 7, 180+ dbgloc 181+ %t45 =l loadl %t31+ %t46 =w cnel %t45, 0+ jnz %t46, @lbl4580, @lbl4581+@lbl4580+ %t48 =l add %t31, 8+ %t47 =l loadl %t48+ dbgloc 182+ storel %t47, %t44+ jmp @lbl4582+@lbl4581+ jmp @lbl4582+@lbl4582+ dbgloc 184+ %t49 =l loadl %t44+ %t50 =l add %t49, 0+ %t51 =l loadl %t20+ %t52 =l add %t51, 0+ %t53 =l call $bytes__Bytes__cmp(l %t50, l %t52)+ %t54 =l copy 0+ %t55 =w cslel %t53, %t54+ jnz %t55, @lbl4583, @lbl4584+@lbl4583+ dbgloc 185+ jmp @lbl4576+@lbl4584+ dbgloc 187+ %t57 =l loadl %t0+ %t58 =l loadl %t26+ %t59 =l loadl %t44+ %t60 =l loadl %t57+ %t61 =l mul %t58, 8+ %t62 =l add %t60, %t61+ storel %t59, %t62+ %t56 =l copy 0+ dbgloc 188+ %t63 =l loadl %t26+ %t64 =l sub %t63, 1+ storel %t64, %t26+ jmp @lbl4575+@lbl4575+ jmp @lbl4573+@lbl4576+ dbgloc 190+ %t66 =l loadl %t0+ %t67 =l loadl %t26+ %t68 =l loadl %t20+ %t69 =l loadl %t66+ %t70 =l mul %t67, 8+ %t71 =l add %t69, %t70+ storel %t68, %t71+ %t65 =l copy 0+ dbgloc 191+ %t72 =l loadl %t2+ %t73 =l add %t72, 1+ storel %t73, %t2+ jmp @lbl4565+@lbl4565+ jmp @lbl4563+@lbl4566+ ret 0+}++export function w $viewops__sort_tags(l %xs) {+@start+ %t0 =l alloc8 8+ %t2 =l alloc8 8+ %t9 =l alloc8 16+ %t18 =l alloc8 8+ %t20 =l alloc8 8+ %t26 =l alloc8 8+ %t31 =l alloc8 16+ %t42 =l alloc8 8+ %t44 =l alloc8 8+ dbgloc 195+ storel %xs, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "xs", "list[ref view.TagRef]", %t0, 8, 5, 195+ dbgloc 196+ %t1 =l copy 1+ storel %t1, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "i", "usize", %t2, 8, 5, 196+ dbgloc 197+ jmp @lbl4586+@lbl4586+ %t3 =l loadl %t2+ %t5 =l loadl %t0+ %t6 =l call $sxqbe_list_len(l %t5)+ %t7 =w csltl %t3, %t6+ jnz %t7, @lbl4587, @lbl4589+@lbl4587+ dbgloc 198+ storel 0, %t9+ %t10 =l loadl %t0+ %t11 =l loadl %t2+ %t12 =w call $sxqbe_list_valid(l %t10, l %t11)+ jnz %t12, @lbl4590, @lbl4591+@lbl4590+ %t13 =l call $sxqbe_list_buf(l %t10)+ %t14 =l mul %t11, 8+ %t15 =l add %t13, %t14+ %t16 =l loadl %t15+ %t17 =l add %t9, 8+ storel %t16, %t17+ storel 1, %t9+ jmp @lbl4592+@lbl4591+ jmp @lbl4592+@lbl4592+ storel %t9, %t18+ call $__sx_dbg_keep(l %t18)+ dbgvar "cur", "option[ref view.TagRef]", %t18, 8, 5, 198+ dbgloc 199+ %t19 =l copy 0+ storel %t19, %t20+ call $__sx_dbg_keep(l %t20)+ dbgvar "c", "ref view.TagRef", %t20, 8, 7, 199+ dbgloc 200+ %t21 =l loadl %t9+ %t22 =w cnel %t21, 0+ jnz %t22, @lbl4593, @lbl4594+@lbl4593+ %t24 =l add %t9, 8+ %t23 =l loadl %t24+ dbgloc 201+ storel %t23, %t20+ jmp @lbl4595+@lbl4594+ jmp @lbl4595+@lbl4595+ dbgloc 203+ %t25 =l loadl %t2+ storel %t25, %t26+ call $__sx_dbg_keep(l %t26)+ dbgvar "j", "usize", %t26, 8, 5, 203+ dbgloc 204+ jmp @lbl4596+@lbl4596+ %t27 =l loadl %t26+ %t28 =l copy 0+ %t29 =w csgtl %t27, %t28+ jnz %t29, @lbl4597, @lbl4599+@lbl4597+ dbgloc 205+ storel 0, %t31+ %t32 =l loadl %t0+ %t33 =l loadl %t26+ %t34 =l copy 1+ %t35 =l sub %t33, %t34+ %t36 =w call $sxqbe_list_valid(l %t32, l %t35)+ jnz %t36, @lbl4600, @lbl4601+@lbl4600+ %t37 =l call $sxqbe_list_buf(l %t32)+ %t38 =l mul %t35, 8+ %t39 =l add %t37, %t38+ %t40 =l loadl %t39+ %t41 =l add %t31, 8+ storel %t40, %t41+ storel 1, %t31+ jmp @lbl4602+@lbl4601+ jmp @lbl4602+@lbl4602+ storel %t31, %t42+ call $__sx_dbg_keep(l %t42)+ dbgvar "prev_opt", "option[ref view.TagRef]", %t42, 8, 5, 205+ dbgloc 206+ %t43 =l copy 0+ storel %t43, %t44+ call $__sx_dbg_keep(l %t44)+ dbgvar "prev", "ref view.TagRef", %t44, 8, 7, 206+ dbgloc 207+ %t45 =l loadl %t31+ %t46 =w cnel %t45, 0+ jnz %t46, @lbl4603, @lbl4604+@lbl4603+ %t48 =l add %t31, 8+ %t47 =l loadl %t48+ dbgloc 208+ storel %t47, %t44+ jmp @lbl4605+@lbl4604+ jmp @lbl4605+@lbl4605+ dbgloc 210+ %t49 =l loadl %t44+ %t50 =l add %t49, 0+ %t51 =l loadl %t20+ %t52 =l add %t51, 0+ %t53 =l call $bytes__Bytes__cmp(l %t50, l %t52)+ %t54 =l copy 0+ %t55 =w cslel %t53, %t54+ jnz %t55, @lbl4606, @lbl4607+@lbl4606+ dbgloc 211+ jmp @lbl4599+@lbl4607+ dbgloc 213+ %t57 =l loadl %t0+ %t58 =l loadl %t26+ %t59 =l loadl %t44+ %t60 =l loadl %t57+ %t61 =l mul %t58, 8+ %t62 =l add %t60, %t61+ storel %t59, %t62+ %t56 =l copy 0+ dbgloc 214+ %t63 =l loadl %t26+ %t64 =l sub %t63, 1+ storel %t64, %t26+ jmp @lbl4598+@lbl4598+ jmp @lbl4596+@lbl4599+ dbgloc 216+ %t66 =l loadl %t0+ %t67 =l loadl %t26+ %t68 =l loadl %t20+ %t69 =l loadl %t66+ %t70 =l mul %t67, 8+ %t71 =l add %t69, %t70+ storel %t68, %t71+ %t65 =l copy 0+ dbgloc 217+ %t72 =l loadl %t2+ %t73 =l add %t72, 1+ storel %t73, %t2+ jmp @lbl4588+@lbl4588+ jmp @lbl4586+@lbl4589+ ret 0+}++export function w $viewops__bookmark_points_at(l %bm, l %id) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t8 =l alloc4 1+ %t19 =l alloc8 16+ %t29 =l alloc8 8+ dbgloc 222+ storel %bm, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "bm", "ref view.Bookmark", %t0, 8, 7, 222+ storel %id, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "id", "objid.Id", %t1, 8, 5, 222+ dbgloc 223+ %t3 =l add %bm, 16+ %t4 =l loadl %t3+ %t5 =l call $sxqbe_list_len(l %t4)+ %t6 =l copy 1+ %t7 =w cnel %t5, %t6+ storew %t7, %t8+ jnz %t7, @lbl4613, @lbl4612+@lbl4612+ %t10 =l add %bm, 16+ %t11 =l add %t10, 8+ %t12 =l loadl %t11+ %t13 =l call $sxqbe_list_len(l %t12)+ %t14 =l copy 0+ %t15 =w cnel %t13, %t14+ storew %t15, %t8+ jmp @lbl4613+@lbl4613+ %t16 =w loadw %t8+ jnz %t16, @lbl4609, @lbl4610+@lbl4609+ dbgloc 224+ %t17 =l copy 0+ ret %t17+@lbl4610+ dbgloc 226+ storel 0, %t19+ %t20 =l add %bm, 16+ %t21 =l loadl %t20+ %t22 =l copy 0+ %t23 =w call $sxqbe_list_valid(l %t21, l %t22)+ jnz %t23, @lbl4614, @lbl4615+@lbl4614+ %t24 =l call $sxqbe_list_buf(l %t21)+ %t25 =l mul %t22, 8+ %t26 =l add %t24, %t25+ %t27 =l loadl %t26+ %t28 =l add %t19, 8+ storel %t27, %t28+ storel 1, %t19+ jmp @lbl4616+@lbl4615+ jmp @lbl4616+@lbl4616+ storel %t19, %t29+ call $__sx_dbg_keep(l %t29)+ dbgvar "o", "option[objid.Id]", %t29, 8, 5, 226+ dbgloc 227+ %t30 =l loadl %t19+ %t31 =w cnel %t30, 0+ jnz %t31, @lbl4617, @lbl4618+@lbl4617+ %t33 =l add %t19, 8+ %t32 =l loadl %t33+ dbgloc 228+ %t34 =w call $viewops__same(l %t32, l %id)+ ret %t34+@lbl4618+ jmp @lbl4619+@lbl4619+ dbgloc 230+ %t35 =l copy 0+ ret %t35+}++export function l $viewops__bookmark_names(l %v, l %id) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t3 =l alloc8 8+ %t6 =l alloc8 8+ dbgloc 233+ storel %v, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "v", "ref view.View", %t0, 8, 7, 233+ storel %id, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "id", "objid.Id", %t1, 8, 5, 233+ dbgloc 234+ %t2 =l call $lists__new__GENMONO__bytes__Bytes()++ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "out", "list[bytes.Bytes]", %t3, 8, 5, 234+ dbgloc 235+ %t5 =l add %v, 8+ %t4 =l loadl %t5+ storel 0, %t6+ %t7 =l call $sxqbe_list_len(l %t4)+@lbl4620+ %t8 =l loadl %t6+ %t9 =w csltl %t8, %t7+ jnz %t9, @lbl4621, @lbl4622+@lbl4621+ %t10 =l call $sxqbe_list_buf(l %t4)+ %t11 =l mul %t8, 8+ %t12 =l add %t10, %t11+ %t13 =l loadl %t12+ dbgloc 236+ %t14 =l add %t13, 16+ %t15 =l loadl %t14+ %t16 =w call $viewops__contains(l %t15, l %id)+ jnz %t16, @lbl4624, @lbl4625+@lbl4624+ dbgloc 237+ %t18 =l call $sxqbe_list_ensure(l %t3)+ %t19 =l add %t13, 0+ %t20 =l add %t18, 8+ %t21 =l add %t18, 16+ %t22 =l loadl %t20+ %t23 =l loadl %t21+ %t25 =l add %t22, 1+ %t24 =w call $sxqbe_list_grow(l %t18, l %t25)+ %t26 =l call $sxqbe_list_buf(l %t18)+ %t27 =l mul %t22, 8+ %t28 =l add %t26, %t27+ storel %t19, %t28+ %t29 =l add %t22, 1+ storel %t29, %t20+ %t17 =l copy 0+ jmp @lbl4625+@lbl4625+@lbl4623+ %t30 =l add %t8, 1+ storel %t30, %t6+ jmp @lbl4620+@lbl4622+ dbgloc 240+ %t31 =l loadl %t3+ ret %t31+}++export function l $viewops__tag_names(l %v, l %id) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t3 =l alloc8 8+ %t6 =l alloc8 8+ dbgloc 243+ storel %v, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "v", "ref view.View", %t0, 8, 7, 243+ storel %id, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "id", "objid.Id", %t1, 8, 5, 243+ dbgloc 244+ %t2 =l call $lists__new__GENMONO__bytes__Bytes()++ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "out", "list[bytes.Bytes]", %t3, 8, 5, 244+ dbgloc 245+ %t5 =l add %v, 16+ %t4 =l loadl %t5+ storel 0, %t6+ %t7 =l call $sxqbe_list_len(l %t4)+@lbl4627+ %t8 =l loadl %t6+ %t9 =w csltl %t8, %t7+ jnz %t9, @lbl4628, @lbl4629+@lbl4628+ %t10 =l call $sxqbe_list_buf(l %t4)+ %t11 =l mul %t8, 8+ %t12 =l add %t10, %t11+ %t13 =l loadl %t12+ dbgloc 246+ %t14 =l add %t13, 16+ %t15 =w call $viewops__same(l %t14, l %id)+ jnz %t15, @lbl4631, @lbl4632+@lbl4631+ dbgloc 247+ %t17 =l call $sxqbe_list_ensure(l %t3)+ %t18 =l add %t13, 0+ %t19 =l add %t17, 8+ %t20 =l add %t17, 16+ %t21 =l loadl %t19+ %t22 =l loadl %t20+ %t24 =l add %t21, 1+ %t23 =w call $sxqbe_list_grow(l %t17, l %t24)+ %t25 =l call $sxqbe_list_buf(l %t17)+ %t26 =l mul %t21, 8+ %t27 =l add %t25, %t26+ storel %t18, %t27+ %t28 =l add %t21, 1+ storel %t28, %t19+ %t16 =l copy 0+ jmp @lbl4632+@lbl4632+@lbl4630+ %t29 =l add %t8, 1+ storel %t29, %t6+ jmp @lbl4627+@lbl4629+ dbgloc 250+ %t30 =l loadl %t3+ ret %t30+}++export function w $viewops__sort_workspaces(l %xs) {+@start+ %t0 =l alloc8 8+ %t2 =l alloc8 8+ %t9 =l alloc8 16+ %t18 =l alloc8 8+ %t20 =l alloc8 8+ %t26 =l alloc8 8+ %t31 =l alloc8 16+ %t42 =l alloc8 8+ %t44 =l alloc8 8+ dbgloc 253+ storel %xs, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "xs", "list[ref view.WorkspaceRef]", %t0, 8, 5, 253+ dbgloc 254+ %t1 =l copy 1+ storel %t1, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "i", "usize", %t2, 8, 5, 254+ dbgloc 255+ jmp @lbl4634+@lbl4634+ %t3 =l loadl %t2+ %t5 =l loadl %t0+ %t6 =l call $sxqbe_list_len(l %t5)+ %t7 =w csltl %t3, %t6+ jnz %t7, @lbl4635, @lbl4637+@lbl4635+ dbgloc 256+ storel 0, %t9+ %t10 =l loadl %t0+ %t11 =l loadl %t2+ %t12 =w call $sxqbe_list_valid(l %t10, l %t11)+ jnz %t12, @lbl4638, @lbl4639+@lbl4638+ %t13 =l call $sxqbe_list_buf(l %t10)+ %t14 =l mul %t11, 8+ %t15 =l add %t13, %t14+ %t16 =l loadl %t15+ %t17 =l add %t9, 8+ storel %t16, %t17+ storel 1, %t9+ jmp @lbl4640+@lbl4639+ jmp @lbl4640+@lbl4640+ storel %t9, %t18+ call $__sx_dbg_keep(l %t18)+ dbgvar "cur", "option[ref view.WorkspaceRef]", %t18, 8, 5, 256+ dbgloc 257+ %t19 =l copy 0+ storel %t19, %t20+ call $__sx_dbg_keep(l %t20)+ dbgvar "c", "ref view.WorkspaceRef", %t20, 8, 7, 257+ dbgloc 258+ %t21 =l loadl %t9+ %t22 =w cnel %t21, 0+ jnz %t22, @lbl4641, @lbl4642+@lbl4641+ %t24 =l add %t9, 8+ %t23 =l loadl %t24+ dbgloc 259+ storel %t23, %t20+ jmp @lbl4643+@lbl4642+ jmp @lbl4643+@lbl4643+ dbgloc 261+ %t25 =l loadl %t2+ storel %t25, %t26+ call $__sx_dbg_keep(l %t26)+ dbgvar "j", "usize", %t26, 8, 5, 261+ dbgloc 262+ jmp @lbl4644+@lbl4644+ %t27 =l loadl %t26+ %t28 =l copy 0+ %t29 =w csgtl %t27, %t28+ jnz %t29, @lbl4645, @lbl4647+@lbl4645+ dbgloc 263+ storel 0, %t31+ %t32 =l loadl %t0+ %t33 =l loadl %t26+ %t34 =l copy 1+ %t35 =l sub %t33, %t34+ %t36 =w call $sxqbe_list_valid(l %t32, l %t35)+ jnz %t36, @lbl4648, @lbl4649+@lbl4648+ %t37 =l call $sxqbe_list_buf(l %t32)+ %t38 =l mul %t35, 8+ %t39 =l add %t37, %t38+ %t40 =l loadl %t39+ %t41 =l add %t31, 8+ storel %t40, %t41+ storel 1, %t31+ jmp @lbl4650+@lbl4649+ jmp @lbl4650+@lbl4650+ storel %t31, %t42+ call $__sx_dbg_keep(l %t42)+ dbgvar "prev_opt", "option[ref view.WorkspaceRef]", %t42, 8, 5, 263+ dbgloc 264+ %t43 =l copy 0+ storel %t43, %t44+ call $__sx_dbg_keep(l %t44)+ dbgvar "prev", "ref view.WorkspaceRef", %t44, 8, 7, 264+ dbgloc 265+ %t45 =l loadl %t31+ %t46 =w cnel %t45, 0+ jnz %t46, @lbl4651, @lbl4652+@lbl4651+ %t48 =l add %t31, 8+ %t47 =l loadl %t48+ dbgloc 266+ storel %t47, %t44+ jmp @lbl4653+@lbl4652+ jmp @lbl4653+@lbl4653+ dbgloc 268+ %t49 =l loadl %t44+ %t50 =l add %t49, 0+ %t51 =l loadl %t20+ %t52 =l add %t51, 0+ %t53 =l call $bytes__Bytes__cmp(l %t50, l %t52)+ %t54 =l copy 0+ %t55 =w cslel %t53, %t54+ jnz %t55, @lbl4654, @lbl4655+@lbl4654+ dbgloc 269+ jmp @lbl4647+@lbl4655+ dbgloc 271+ %t57 =l loadl %t0+ %t58 =l loadl %t26+ %t59 =l loadl %t44+ %t60 =l loadl %t57+ %t61 =l mul %t58, 8+ %t62 =l add %t60, %t61+ storel %t59, %t62+ %t56 =l copy 0+ dbgloc 272+ %t63 =l loadl %t26+ %t64 =l sub %t63, 1+ storel %t64, %t26+ jmp @lbl4646+@lbl4646+ jmp @lbl4644+@lbl4647+ dbgloc 274+ %t66 =l loadl %t0+ %t67 =l loadl %t26+ %t68 =l loadl %t20+ %t69 =l loadl %t66+ %t70 =l mul %t67, 8+ %t71 =l add %t69, %t70+ storel %t68, %t71+ %t65 =l copy 0+ dbgloc 275+ %t72 =l loadl %t2+ %t73 =l add %t72, 1+ storel %t73, %t2+ jmp @lbl4636+@lbl4636+ jmp @lbl4634+@lbl4637+ ret 0+}++dbgfile "src/object/graph.sx"+export function l $graph__copy_id(l %id) {+@start+ %t0 =l alloc8 8+ %t4 =l alloc8 8+ dbgloc 17+ storel %id, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "id", "objid.Id", %t0, 8, 5, 17+ dbgloc 18+ %t2 =l copy 32+ %t1 =l call $malloc(l %t2)+ %t3 =l copy %t1+ storel %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "out", "ref u8", %t4, 8, 7, 18+ dbgloc 19+ %t6 =l copy %t3+ %t7 =l loadl %id+ %t8 =l copy %t7+ %t9 =l copy 32+ call $memcpy(l %t6, l %t8, l %t9)+ %t5 =l copy 0+ dbgloc 20+ %t10 =l call $objid__id(l %t3)+ ret %t10+}++export function w $graph__contains(l %ids, l %id) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ dbgloc 23+ storel %ids, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "ids", "list[objid.Id]", %t0, 8, 5, 23+ storel %id, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "id", "objid.Id", %t1, 8, 5, 23+ dbgloc 24+ storel 0, %t2+ %t3 =l call $sxqbe_list_len(l %ids)+@lbl4657+ %t4 =l loadl %t2+ %t5 =w csltl %t4, %t3+ jnz %t5, @lbl4658, @lbl4659+@lbl4658+ %t6 =l call $sxqbe_list_buf(l %ids)+ %t7 =l mul %t4, 8+ %t8 =l add %t6, %t7+ %t9 =l loadl %t8+ dbgloc 25+ %t10 =w call $objid__Id__eql(l %t9, l %id)+ jnz %t10, @lbl4661, @lbl4662+@lbl4661+ dbgloc 26+ %t11 =l copy 1+ ret %t11+@lbl4662+@lbl4660+ %t12 =l add %t4, 1+ storel %t12, %t2+ jmp @lbl4657+@lbl4659+ dbgloc 29+ %t13 =l copy 0+ ret %t13+}++export function w $graph__free_ids(l %ids) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t14 =l alloc8 8+ dbgloc 32+ storel %ids, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "ids", "list[objid.Id]", %t0, 8, 5, 32+ dbgloc 33+ storel 0, %t1+ %t2 =l call $sxqbe_list_len(l %ids)+@lbl4664+ %t3 =l loadl %t1+ %t4 =w csltl %t3, %t2+ jnz %t4, @lbl4665, @lbl4666+@lbl4665+ %t5 =l call $sxqbe_list_buf(l %ids)+ %t6 =l mul %t3, 8+ %t7 =l add %t5, %t6+ %t8 =l loadl %t7+ dbgloc 34+ %t9 =l loadl %t8+ %t10 =l copy 0+ %t11 =w cnel %t9, %t10+ jnz %t11, @lbl4668, @lbl4669+@lbl4668+ dbgloc 35+ %t12 =l loadl %t8+ %t13 =l copy %t12+ storel %t13, %t14+ call $__sx_dbg_keep(l %t14)+ dbgvar "p", "ref ", %t14, 8, 7, 35+ dbgloc 36+ %t16 =l loadl %t14+ call $free(l %t16)+ %t15 =l copy 0+ jmp @lbl4669+@lbl4669+@lbl4667+ %t17 =l add %t3, 1+ storel %t17, %t1+ jmp @lbl4664+@lbl4666+ dbgloc 39+ call $sxqbe_list_free(l %ids)+ %t18 =l copy 0+ ret 0+}++export function l $graph__roots(l %v) {+@start+ %t0 =l alloc8 8+ %t2 =l alloc8 8+ %t4 =l alloc8 8+ %t31 =l alloc8 8+ %t41 =l alloc8 8+ %t69 =l alloc8 8+ %t98 =l alloc8 8+ dbgloc 42+ storel %v, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "v", "ref view.View", %t0, 8, 7, 42+ dbgloc 43+ %t1 =l call $lists__new__GENMONO__objid__Id()++ storel %t1, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "out", "list[objid.Id]", %t2, 8, 5, 43+ dbgloc 44+ %t3 =l loadl %v+ storel 0, %t4+ %t5 =l call $sxqbe_list_len(l %t3)+@lbl4671+ %t6 =l loadl %t4+ %t7 =w csltl %t6, %t5+ jnz %t7, @lbl4672, @lbl4673+@lbl4672+ %t8 =l call $sxqbe_list_buf(l %t3)+ %t9 =l mul %t6, 8+ %t10 =l add %t8, %t9+ %t11 =l loadl %t10+ dbgloc 45+ %t12 =l loadl %t2+ %t13 =w call $graph__contains(l %t12, l %t11)+ %t14 =w ceqw %t13, 0+ jnz %t14, @lbl4675, @lbl4676+@lbl4675+ dbgloc 46+ %t16 =l call $sxqbe_list_ensure(l %t2)+ %t17 =l call $graph__copy_id(l %t11)+ %t18 =l add %t16, 8+ %t19 =l add %t16, 16+ %t20 =l loadl %t18+ %t21 =l loadl %t19+ %t23 =l add %t20, 1+ %t22 =w call $sxqbe_list_grow(l %t16, l %t23)+ %t24 =l call $sxqbe_list_buf(l %t16)+ %t25 =l mul %t20, 8+ %t26 =l add %t24, %t25+ storel %t17, %t26+ %t27 =l add %t20, 1+ storel %t27, %t18+ %t15 =l copy 0+ jmp @lbl4676+@lbl4676+@lbl4674+ %t28 =l add %t6, 1+ storel %t28, %t4+ jmp @lbl4671+@lbl4673+ dbgloc 49+ %t30 =l add %v, 8+ %t29 =l loadl %t30+ storel 0, %t31+ %t32 =l call $sxqbe_list_len(l %t29)+@lbl4678+ %t33 =l loadl %t31+ %t34 =w csltl %t33, %t32+ jnz %t34, @lbl4679, @lbl4680+@lbl4679+ %t35 =l call $sxqbe_list_buf(l %t29)+ %t36 =l mul %t33, 8+ %t37 =l add %t35, %t36+ %t38 =l loadl %t37+ dbgloc 50+ %t39 =l add %t38, 16+ %t40 =l loadl %t39+ storel 0, %t41+ %t42 =l call $sxqbe_list_len(l %t40)+@lbl4682+ %t43 =l loadl %t41+ %t44 =w csltl %t43, %t42+ jnz %t44, @lbl4683, @lbl4684+@lbl4683+ %t45 =l call $sxqbe_list_buf(l %t40)+ %t46 =l mul %t43, 8+ %t47 =l add %t45, %t46+ %t48 =l loadl %t47+ dbgloc 51+ %t49 =l loadl %t2+ %t50 =w call $graph__contains(l %t49, l %t48)+ %t51 =w ceqw %t50, 0+ jnz %t51, @lbl4686, @lbl4687+@lbl4686+ dbgloc 52+ %t53 =l call $sxqbe_list_ensure(l %t2)+ %t54 =l call $graph__copy_id(l %t48)+ %t55 =l add %t53, 8+ %t56 =l add %t53, 16+ %t57 =l loadl %t55+ %t58 =l loadl %t56+ %t60 =l add %t57, 1+ %t59 =w call $sxqbe_list_grow(l %t53, l %t60)+ %t61 =l call $sxqbe_list_buf(l %t53)+ %t62 =l mul %t57, 8+ %t63 =l add %t61, %t62+ storel %t54, %t63+ %t64 =l add %t57, 1+ storel %t64, %t55+ %t52 =l copy 0+ jmp @lbl4687+@lbl4687+@lbl4685+ %t65 =l add %t43, 1+ storel %t65, %t41+ jmp @lbl4682+@lbl4684+@lbl4681+ %t66 =l add %t33, 1+ storel %t66, %t31+ jmp @lbl4678+@lbl4680+ dbgloc 56+ %t68 =l add %v, 16+ %t67 =l loadl %t68+ storel 0, %t69+ %t70 =l call $sxqbe_list_len(l %t67)+@lbl4689+ %t71 =l loadl %t69+ %t72 =w csltl %t71, %t70+ jnz %t72, @lbl4690, @lbl4691+@lbl4690+ %t73 =l call $sxqbe_list_buf(l %t67)+ %t74 =l mul %t71, 8+ %t75 =l add %t73, %t74+ %t76 =l loadl %t75+ dbgloc 57+ %t77 =l loadl %t2+ %t78 =l add %t76, 16+ %t79 =w call $graph__contains(l %t77, l %t78)+ %t80 =w ceqw %t79, 0+ jnz %t80, @lbl4693, @lbl4694+@lbl4693+ dbgloc 58+ %t82 =l call $sxqbe_list_ensure(l %t2)+ %t83 =l add %t76, 16+ %t84 =l call $graph__copy_id(l %t83)+ %t85 =l add %t82, 8+ %t86 =l add %t82, 16+ %t87 =l loadl %t85+ %t88 =l loadl %t86+ %t90 =l add %t87, 1+ %t89 =w call $sxqbe_list_grow(l %t82, l %t90)+ %t91 =l call $sxqbe_list_buf(l %t82)+ %t92 =l mul %t87, 8+ %t93 =l add %t91, %t92+ storel %t84, %t93+ %t94 =l add %t87, 1+ storel %t94, %t85+ %t81 =l copy 0+ jmp @lbl4694+@lbl4694+@lbl4692+ %t95 =l add %t71, 1+ storel %t95, %t69+ jmp @lbl4689+@lbl4691+ dbgloc 61+ %t97 =l add %v, 32+ %t96 =l loadl %t97+ storel 0, %t98+ %t99 =l call $sxqbe_list_len(l %t96)+@lbl4696+ %t100 =l loadl %t98+ %t101 =w csltl %t100, %t99+ jnz %t101, @lbl4697, @lbl4698+@lbl4697+ %t102 =l call $sxqbe_list_buf(l %t96)+ %t103 =l mul %t100, 8+ %t104 =l add %t102, %t103+ %t105 =l loadl %t104+ dbgloc 62+ %t106 =l loadl %t2+ %t107 =l add %t105, 16+ %t108 =w call $graph__contains(l %t106, l %t107)+ %t109 =w ceqw %t108, 0+ jnz %t109, @lbl4700, @lbl4701+@lbl4700+ dbgloc 63+ %t111 =l call $sxqbe_list_ensure(l %t2)+ %t112 =l add %t105, 16+ %t113 =l call $graph__copy_id(l %t112)+ %t114 =l add %t111, 8+ %t115 =l add %t111, 16+ %t116 =l loadl %t114+ %t117 =l loadl %t115+ %t119 =l add %t116, 1+ %t118 =w call $sxqbe_list_grow(l %t111, l %t119)+ %t120 =l call $sxqbe_list_buf(l %t111)+ %t121 =l mul %t116, 8+ %t122 =l add %t120, %t121+ storel %t113, %t122+ %t123 =l add %t116, 1+ storel %t123, %t114+ %t110 =l copy 0+ jmp @lbl4701+@lbl4701+@lbl4699+ %t124 =l add %t100, 1+ storel %t124, %t98+ jmp @lbl4696+@lbl4698+ dbgloc 66+ %t125 =l loadl %t2+ ret %t125+}++export function l $graph__load_commit(l %__ret, l %handles, l %id) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t4 =l alloc8 16+ %t6 =l alloc8 8+ %t9 =l alloc8 8+ %t14 =l alloc8 16+ %t17 =l alloc8 16+ %t18 =l alloc8 8+ %t26 =l alloc8 8+ %t32 =l alloc8 16+ %t36 =l alloc8 16+ dbgloc 74+ storel %handles, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "handles", "list[ref store.Handle]", %t0, 8, 5, 74+ storel %id, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "id", "objid.Id", %t1, 8, 5, 74+ dbgloc 78+ %t2 =l copy 4+ %t5 =w copy %t2+ %t3 =l call $read__read_body(l %t4, l %handles, l %id, w %t5)+ storel %t4, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "body_opt", "option[bytes.Bytes]", %t6, 8, 5, 78+ dbgloc 79+ %t7 =l call $bytes__empty()+ %t8 =l call $malloc(l 16)+ call $memset(l %t8, w 0, l 16)+ call $memcpy(l %t8, l %t7, l 16)+ storel %t8, %t9+ call $__sx_dbg_keep(l %t9)+ dbgvar "body", "bytes.Bytes", %t9, 8, 5, 79+ dbgloc 80+ %t10 =l loadl %t4+ %t11 =w cnel %t10, 0+ jnz %t11, @lbl4703, @lbl4704+@lbl4703+ %t13 =l add %t4, 8+ %t12 =l loadl %t13+ dbgloc 82+ storel %t12, %t9+ jmp @lbl4705+@lbl4704+ dbgloc 85+ storel 0, %t14+ call $memcpy(l %__ret, l %t14, l 16)+ ret %__ret+@lbl4705+ dbgloc 88+ %t15 =l loadl %t9+ %t16 =l call $commit__decode(l %t17, l %t15)+ storel %t17, %t18+ call $__sx_dbg_keep(l %t18)+ dbgvar "decoded", "result[ref Commit, derr.DecodeError]", %t18, 8, 5, 88+ dbgloc 89+ %t19 =l loadl %t17+ %t20 =w ceql %t19, 0+ jnz %t20, @lbl4706, @lbl4707+@lbl4706+ %t22 =l add %t17, 8+ %t21 =l loadl %t22+ dbgloc 91+ %t24 =l copy 24+ %t23 =l call $malloc(l %t24)+ %t25 =l copy %t23+ storel %t25, %t26+ call $__sx_dbg_keep(l %t26)+ dbgvar "lc", "ref LoadedCommit", %t26, 8, 7, 91+ dbgloc 92+ %t27 =l loadl %t26+ storel %t21, %t27+ dbgloc 93+ %t28 =l loadl %t9+ %t29 =l loadl %t26+ %t30 =l add %t29, 8+ call $memcpy(l %t30, l %t28, l 16)+ dbgloc 94+ %t31 =l loadl %t26+ call $memset(l %t32, w 0, l 16)+ storel 1, %t32+ %t33 =l add %t32, 8+ storel %t31, %t33+ call $memcpy(l %__ret, l %t32, l 16)+ ret %__ret+@lbl4707+ dbgloc 97+ %t34 =l loadl %t9+ %t35 =w call $files__free_buffer(l %t34)+ dbgloc 98+ storel 0, %t36+ call $memcpy(l %__ret, l %t36, l 16)+ ret %__ret+@lbl4708+ ret 0+}++export function w $graph__free_loaded(l %lc) {+@start+ %t0 =l alloc8 8+ dbgloc 103+ storel %lc, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "lc", "ref LoadedCommit", %t0, 8, 7, 103+ dbgloc 104+ %t1 =l loadl %lc+ %t2 =w call $commit__free_commit(l %t1)+ dbgloc 105+ %t3 =l add %lc, 8+ %t4 =w call $files__free_buffer(l %t3)+ dbgloc 106+ %t6 =l copy %lc+ call $free(l %t6)+ %t5 =l copy 0+ ret 0+}++export function w $graph__has_changes(l %handles, l %lc) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t10 =l alloc8 16+ %t21 =l alloc8 8+ %t24 =l alloc8 8+ %t31 =l alloc8 16+ %t32 =l alloc8 8+ %t36 =l alloc8 8+ %t55 =l alloc8 16+ %t56 =l alloc8 8+ %t60 =l alloc8 8+ dbgloc 110+ storel %handles, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "handles", "list[ref store.Handle]", %t0, 8, 5, 110+ storel %lc, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "lc", "ref LoadedCommit", %t1, 8, 7, 110+ dbgloc 111+ %t3 =l loadl %lc+ %t4 =l add %t3, 1+ %t5 =l loadl %t4+ %t6 =l call $sxqbe_list_len(l %t5)+ %t7 =l copy 0+ %t8 =w csgtl %t6, %t7+ jnz %t8, @lbl4709, @lbl4710+@lbl4709+ dbgloc 112+ storel 0, %t10+ %t11 =l loadl %lc+ %t12 =l add %t11, 1+ %t13 =l loadl %t12+ %t14 =l copy 0+ %t15 =w call $sxqbe_list_valid(l %t13, l %t14)+ jnz %t15, @lbl4712, @lbl4713+@lbl4712+ %t16 =l call $sxqbe_list_buf(l %t13)+ %t17 =l mul %t14, 8+ %t18 =l add %t16, %t17+ %t19 =l loadl %t18+ %t20 =l add %t10, 8+ storel %t19, %t20+ storel 1, %t10+ jmp @lbl4714+@lbl4713+ jmp @lbl4714+@lbl4714+ storel %t10, %t21+ call $__sx_dbg_keep(l %t21)+ dbgvar "p", "option[objid.Id]", %t21, 8, 5, 112+ dbgloc 113+ %t22 =l call $objid__id_none()+ %t23 =l call $malloc(l 8)+ call $memset(l %t23, w 0, l 8)+ call $memcpy(l %t23, l %t22, l 8)+ storel %t23, %t24+ call $__sx_dbg_keep(l %t24)+ dbgvar "pid", "objid.Id", %t24, 8, 5, 113+ dbgloc 114+ %t25 =l loadl %t10+ %t26 =w cnel %t25, 0+ jnz %t26, @lbl4715, @lbl4716+@lbl4715+ %t28 =l add %t10, 8+ %t27 =l loadl %t28+ dbgloc 115+ storel %t27, %t24+ jmp @lbl4717+@lbl4716+ jmp @lbl4717+@lbl4717+ dbgloc 117+ %t29 =l loadl %t24+ %t30 =l call $graph__load_commit(l %t31, l %handles, l %t29)+ storel %t31, %t32+ call $__sx_dbg_keep(l %t32)+ dbgvar "pl_opt", "option[ref LoadedCommit]", %t32, 8, 5, 117+ dbgloc 118+ %t33 =l copy 1+ %t34 =w copy %t33+ %t35 =w extub %t34+ storew %t35, %t36+ call $__sx_dbg_keep(l %t36)+ dbgvar "changed", "bool", %t36, 1, 7, 118+ dbgloc 119+ %t37 =l loadl %t31+ %t38 =w cnel %t37, 0+ jnz %t38, @lbl4718, @lbl4719+@lbl4718+ %t40 =l add %t31, 8+ %t39 =l loadl %t40+ dbgloc 120+ %t41 =l loadl %t39+ %t42 =l add %t41, 9+ %t43 =l loadl %lc+ %t44 =l add %t43, 9+ %t45 =w call $objid__Id__eql(l %t42, l %t44)+ %t46 =w ceqw %t45, 0+ %t47 =w copy %t46+ %t48 =w extub %t47+ storew %t48, %t36+ dbgloc 121+ %t49 =w call $graph__free_loaded(l %t39)+ jmp @lbl4720+@lbl4719+ jmp @lbl4720+@lbl4720+ dbgloc 123+ %t51 =w loadw %t36+ %t50 =l extsw %t51+ ret %t50+@lbl4710+ dbgloc 125+ %t52 =l loadl %lc+ %t53 =l add %t52, 9+ %t54 =l call $treewalk__read_tree(l %t55, l %handles, l %t53)+ storel %t55, %t56+ call $__sx_dbg_keep(l %t56)+ dbgvar "t_opt", "option[ref tree.Tree]", %t56, 8, 5, 125+ dbgloc 126+ %t57 =l copy 1+ %t58 =w copy %t57+ %t59 =w extub %t58+ storew %t59, %t60+ call $__sx_dbg_keep(l %t60)+ dbgvar "changed", "bool", %t60, 1, 7, 126+ dbgloc 127+ %t61 =l loadl %t55+ %t62 =w cnel %t61, 0+ jnz %t62, @lbl4721, @lbl4722+@lbl4721+ %t64 =l add %t55, 8+ %t63 =l loadl %t64+ dbgloc 128+ %t66 =l loadl %t63+ %t67 =l call $sxqbe_list_len(l %t66)+ %t68 =l copy 0+ %t69 =w csgtl %t67, %t68+ %t70 =w copy %t69+ %t71 =w extub %t70+ storew %t71, %t60+ dbgloc 129+ %t72 =w call $tree__free_tree(l %t63)+ jmp @lbl4723+@lbl4722+ jmp @lbl4723+@lbl4723+ dbgloc 131+ %t74 =w loadw %t60+ %t73 =l extsw %t74+ ret %t73+}++export function l $graph__collect(l %handles, l %start) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t3 =l alloc8 8+ %t5 =l alloc8 8+ %t6 =l alloc8 8+ %t17 =l alloc4 1+ %t66 =l alloc8 8+ %t71 =l alloc8 8+ %t87 =l alloc8 16+ %t88 =l alloc8 8+ %t96 =l alloc8 8+ %t107 =l alloc4 1+ dbgloc 135+ storel %handles, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "handles", "list[ref store.Handle]", %t0, 8, 5, 135+ storel %start, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "start", "list[objid.Id]", %t1, 8, 5, 135+ dbgloc 136+ %t2 =l call $lists__new__GENMONO__objid__Id()++ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "out", "list[objid.Id]", %t3, 8, 5, 136+ dbgloc 137+ %t4 =l call $lists__new__GENMONO__objid__Id()++ storel %t4, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "stack", "list[objid.Id]", %t5, 8, 5, 137+ dbgloc 138+ storel 0, %t6+ %t7 =l call $sxqbe_list_len(l %start)+@lbl4724+ %t8 =l loadl %t6+ %t9 =w csltl %t8, %t7+ jnz %t9, @lbl4725, @lbl4726+@lbl4725+ %t10 =l call $sxqbe_list_buf(l %start)+ %t11 =l mul %t8, 8+ %t12 =l add %t10, %t11+ %t13 =l loadl %t12+ dbgloc 139+ %t14 =l loadl %t3+ %t15 =w call $graph__contains(l %t14, l %t13)+ %t16 =w ceqw %t15, 0+ storew %t16, %t17+ jnz %t16, @lbl4731, @lbl4732+@lbl4731+ %t18 =l loadl %t5+ %t19 =w call $graph__contains(l %t18, l %t13)+ %t20 =w ceqw %t19, 0+ storew %t20, %t17+ jmp @lbl4732+@lbl4732+ %t21 =w loadw %t17+ jnz %t21, @lbl4728, @lbl4729+@lbl4728+ dbgloc 140+ %t23 =l call $sxqbe_list_ensure(l %t5)+ %t24 =l call $graph__copy_id(l %t13)+ %t25 =l add %t23, 8+ %t26 =l add %t23, 16+ %t27 =l loadl %t25+ %t28 =l loadl %t26+ %t30 =l add %t27, 1+ %t29 =w call $sxqbe_list_grow(l %t23, l %t30)+ %t31 =l call $sxqbe_list_buf(l %t23)+ %t32 =l mul %t27, 8+ %t33 =l add %t31, %t32+ storel %t24, %t33+ %t34 =l add %t27, 1+ storel %t34, %t25+ %t22 =l copy 0+ jmp @lbl4729+@lbl4729+@lbl4727+ %t35 =l add %t8, 1+ storel %t35, %t6+ jmp @lbl4724+@lbl4726+ dbgloc 143+ jmp @lbl4733+@lbl4733+ %t37 =l loadl %t5+ %t38 =l call $sxqbe_list_len(l %t37)+ %t39 =l copy 0+ %t40 =w csgtl %t38, %t39+ jnz %t40, @lbl4734, @lbl4736+@lbl4734+ dbgloc 144+ %t42 =l call $sxqbe_list_ensure(l %t5)+ %t44 =l loadl %t5+ %t45 =l call $sxqbe_list_len(l %t44)+ %t46 =l copy 1+ %t47 =l sub %t45, %t46+ %t48 =l add %t42, 8+ %t49 =l loadl %t48+ %t50 =l loadl %t42+ %t51 =l mul %t47, 8+ %t52 =l add %t50, %t51+ %t53 =l loadl %t52+ %t54 =l copy %t47+ jmp @lbl4737+@lbl4737+ %t55 =l sub %t49, 1+ %t56 =w csltl %t54, %t55+ jnz %t56, @lbl4738, @lbl4739+@lbl4738+ %t57 =l add %t54, 1+ %t58 =l mul %t57, 8+ %t59 =l mul %t54, 8+ %t60 =l loadl %t42+ %t61 =l add %t60, %t58+ %t62 =l add %t60, %t59+ %t63 =l loadl %t61+ storel %t63, %t62+ %t64 =l add %t54, 1+ %t54 =l copy %t64+ jmp @lbl4737+@lbl4739+ %t65 =l sub %t49, 1+ storel %t65, %t48+ storel %t53, %t66+ call $__sx_dbg_keep(l %t66)+ dbgvar "id", "objid.Id", %t66, 8, 5, 144+ dbgloc 145+ %t67 =l loadl %t3+ %t68 =w call $graph__contains(l %t67, l %t53)+ jnz %t68, @lbl4740, @lbl4741+@lbl4740+ dbgloc 146+ %t69 =l loadl %t53+ %t70 =l copy %t69+ storel %t70, %t71+ call $__sx_dbg_keep(l %t71)+ dbgvar "ip", "ref ", %t71, 8, 7, 146+ dbgloc 147+ %t73 =l loadl %t71+ call $free(l %t73)+ %t72 =l copy 0+ dbgloc 148+ jmp @lbl4735+@lbl4741+ dbgloc 150+ %t75 =l call $sxqbe_list_ensure(l %t3)+ %t76 =l add %t75, 8+ %t77 =l add %t75, 16+ %t78 =l loadl %t76+ %t79 =l loadl %t77+ %t81 =l add %t78, 1+ %t80 =w call $sxqbe_list_grow(l %t75, l %t81)+ %t82 =l call $sxqbe_list_buf(l %t75)+ %t83 =l mul %t78, 8+ %t84 =l add %t82, %t83+ storel %t53, %t84+ %t85 =l add %t78, 1+ storel %t85, %t76+ %t74 =l copy 0+ dbgloc 151+ %t86 =l call $graph__load_commit(l %t87, l %handles, l %t53)+ storel %t87, %t88+ call $__sx_dbg_keep(l %t88)+ dbgvar "c_opt", "option[ref LoadedCommit]", %t88, 8, 5, 151+ dbgloc 152+ %t89 =l loadl %t87+ %t90 =w cnel %t89, 0+ jnz %t90, @lbl4743, @lbl4744+@lbl4743+ %t92 =l add %t87, 8+ %t91 =l loadl %t92+ dbgloc 153+ %t93 =l loadl %t91+ %t95 =l add %t93, 1+ %t94 =l loadl %t95+ storel 0, %t96+ %t97 =l call $sxqbe_list_len(l %t94)+@lbl4746+ %t98 =l loadl %t96+ %t99 =w csltl %t98, %t97+ jnz %t99, @lbl4747, @lbl4748+@lbl4747+ %t100 =l call $sxqbe_list_buf(l %t94)+ %t101 =l mul %t98, 8+ %t102 =l add %t100, %t101+ %t103 =l loadl %t102+ dbgloc 154+ %t104 =l loadl %t3+ %t105 =w call $graph__contains(l %t104, l %t103)+ %t106 =w ceqw %t105, 0+ storew %t106, %t107+ jnz %t106, @lbl4753, @lbl4754+@lbl4753+ %t108 =l loadl %t5+ %t109 =w call $graph__contains(l %t108, l %t103)+ %t110 =w ceqw %t109, 0+ storew %t110, %t107+ jmp @lbl4754+@lbl4754+ %t111 =w loadw %t107+ jnz %t111, @lbl4750, @lbl4751+@lbl4750+ dbgloc 155+ %t113 =l call $sxqbe_list_ensure(l %t5)+ %t114 =l call $graph__copy_id(l %t103)+ %t115 =l add %t113, 8+ %t116 =l add %t113, 16+ %t117 =l loadl %t115+ %t118 =l loadl %t116+ %t120 =l add %t117, 1+ %t119 =w call $sxqbe_list_grow(l %t113, l %t120)+ %t121 =l call $sxqbe_list_buf(l %t113)+ %t122 =l mul %t117, 8+ %t123 =l add %t121, %t122+ storel %t114, %t123+ %t124 =l add %t117, 1+ storel %t124, %t115+ %t112 =l copy 0+ jmp @lbl4751+@lbl4751+@lbl4749+ %t125 =l add %t98, 1+ storel %t125, %t96+ jmp @lbl4746+@lbl4748+ dbgloc 158+ %t126 =w call $graph__free_loaded(l %t91)+ jmp @lbl4745+@lbl4744+ jmp @lbl4745+@lbl4745+ jmp @lbl4735+@lbl4735+ jmp @lbl4733+@lbl4736+ dbgloc 161+ %t128 =l loadl %t5+ call $sxqbe_list_free(l %t128)+ %t127 =l copy 0+ dbgloc 162+ %t129 =l loadl %t3+ ret %t129+}++export function l $graph__all(l %handles, l %v) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t3 =l alloc8 8+ %t5 =l alloc8 8+ dbgloc 165+ storel %handles, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "handles", "list[ref store.Handle]", %t0, 8, 5, 165+ storel %v, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "v", "ref view.View", %t1, 8, 7, 165+ dbgloc 166+ %t2 =l call $graph__roots(l %v)+ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "rs", "list[objid.Id]", %t3, 8, 5, 166+ dbgloc 167+ %t4 =l call $graph__collect(l %handles, l %t2)+ storel %t4, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "out", "list[objid.Id]", %t5, 8, 5, 167+ dbgloc 168+ %t6 =w call $graph__free_ids(l %t2)+ dbgloc 169+ ret %t4+}++function w $graph__is_hex_char(w %c) {+@start+ %t0 =l alloc8 8+ %t4 =l alloc4 1+ %t8 =l alloc4 1+ %t12 =l alloc4 1+ %t17 =l alloc4 1+ %t21 =l alloc4 1+ dbgloc 172+ storew %c, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "c", "u8", %t0, 1, 7, 172+ dbgloc 173+ %t1 =w copy 48+ %t3 =w csltw %c, %t1+ %t2 =w ceqw %t3, 0+ storew %t2, %t4+ jnz %t2, @lbl4755, @lbl4756+@lbl4755+ %t5 =w copy 57+ %t6 =w cslew %c, %t5+ storew %t6, %t4+ jmp @lbl4756+@lbl4756+ %t7 =w loadw %t4+ storew %t7, %t8+ jnz %t7, @lbl4758, @lbl4757+@lbl4757+ %t9 =w copy 97+ %t11 =w csltw %c, %t9+ %t10 =w ceqw %t11, 0+ storew %t10, %t12+ jnz %t10, @lbl4759, @lbl4760+@lbl4759+ %t13 =w copy 102+ %t14 =w cslew %c, %t13+ storew %t14, %t12+ jmp @lbl4760+@lbl4760+ %t15 =w loadw %t12+ storew %t15, %t8+ jmp @lbl4758+@lbl4758+ %t16 =w loadw %t8+ storew %t16, %t17+ jnz %t16, @lbl4762, @lbl4761+@lbl4761+ %t18 =w copy 65+ %t20 =w csltw %c, %t18+ %t19 =w ceqw %t20, 0+ storew %t19, %t21+ jnz %t19, @lbl4763, @lbl4764+@lbl4763+ %t22 =w copy 70+ %t23 =w cslew %c, %t22+ storew %t23, %t21+ jmp @lbl4764+@lbl4764+ %t24 =w loadw %t21+ storew %t24, %t17+ jmp @lbl4762+@lbl4762+ %t25 =w loadw %t17+ ret %t25+}++function w $graph__is_hex_prefix(l %b) {+@start+ %t0 =l alloc8 8+ %t5 =l alloc4 1+ %t13 =l alloc8 8+ dbgloc 176+ storel %b, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "b", "bytes.Bytes", %t0, 8, 5, 176+ dbgloc 177+ %t2 =l add %b, 8+ %t1 =l loadl %t2+ %t3 =l copy 4+ %t4 =w csltl %t1, %t3+ storew %t4, %t5+ jnz %t4, @lbl4769, @lbl4768+@lbl4768+ %t7 =l add %b, 8+ %t6 =l loadl %t7+ %t8 =l copy 64+ %t9 =w csgtl %t6, %t8+ storew %t9, %t5+ jmp @lbl4769+@lbl4769+ %t10 =w loadw %t5+ jnz %t10, @lbl4765, @lbl4766+@lbl4765+ dbgloc 178+ %t11 =l copy 0+ ret %t11+@lbl4766+ dbgloc 180+ %t12 =l copy 0+ storel %t12, %t13+ call $__sx_dbg_keep(l %t13)+ dbgvar "i", "usize", %t13, 8, 5, 180+ dbgloc 181+ jmp @lbl4770+@lbl4770+ %t14 =l loadl %t13+ %t16 =l add %b, 8+ %t15 =l loadl %t16+ %t17 =w csltl %t14, %t15+ jnz %t17, @lbl4771, @lbl4773+@lbl4771+ dbgloc 182+ %t18 =l loadl %t13+ %t19 =w call $bytes__Bytes__at(l %b, l %t18)+ %t20 =w call $graph__is_hex_char(w %t19)+ %t21 =w ceqw %t20, 0+ jnz %t21, @lbl4774, @lbl4775+@lbl4774+ dbgloc 183+ %t22 =l copy 0+ ret %t22+@lbl4775+ dbgloc 185+ %t23 =l loadl %t13+ %t24 =l add %t23, 1+ storel %t24, %t13+ jmp @lbl4772+@lbl4772+ jmp @lbl4770+@lbl4773+ dbgloc 187+ %t25 =l copy 1+ ret %t25+}++function w $graph__id_matches_hex(l %id, l %text) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t3 =l alloc8 8+ %t6 =l alloc8 8+ %t10 =l alloc8 8+ dbgloc 190+ storel %id, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "id", "objid.Id", %t0, 8, 5, 190+ storel %text, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "text", "bytes.Bytes", %t1, 8, 5, 190+ dbgloc 191+ %t2 =l call $objid__Id__hex(l %id)+ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "hex", "ref u8", %t3, 8, 7, 191+ dbgloc 192+ %t4 =l copy 64+ %t5 =l call $bytes__bytes(l %t2, l %t4)+ storel %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "full", "bytes.Bytes", %t6, 8, 5, 192+ dbgloc 193+ %t7 =w call $changeid__prefix_matches(l %t5, l %text)+ %t8 =w copy %t7+ %t9 =w extub %t8+ storew %t9, %t10+ call $__sx_dbg_keep(l %t10)+ dbgvar "matched", "bool", %t10, 1, 7, 193+ dbgloc 194+ %t12 =l copy %t2+ call $free(l %t12)+ %t11 =l copy 0+ dbgloc 195+ ret %t9+}++function l $graph__bookmark_target(l %__ret, l %v, l %name) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t4 =l alloc8 8+ %t21 =l alloc8 16+ %t31 =l alloc8 8+ %t36 =l alloc8 16+ %t38 =l alloc8 16+ %t40 =l alloc8 16+ dbgloc 198+ storel %v, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "v", "ref view.View", %t0, 8, 7, 198+ storel %name, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "name", "bytes.Bytes", %t1, 8, 5, 198+ dbgloc 199+ %t3 =l add %v, 8+ %t2 =l loadl %t3+ storel 0, %t4+ %t5 =l call $sxqbe_list_len(l %t2)+@lbl4777+ %t6 =l loadl %t4+ %t7 =w csltl %t6, %t5+ jnz %t7, @lbl4778, @lbl4779+@lbl4778+ %t8 =l call $sxqbe_list_buf(l %t2)+ %t9 =l mul %t6, 8+ %t10 =l add %t8, %t9+ %t11 =l loadl %t10+ dbgloc 200+ %t12 =l add %t11, 0+ %t13 =w call $bytes__Bytes__eql(l %t12, l %name)+ jnz %t13, @lbl4781, @lbl4782+@lbl4781+ dbgloc 201+ %t15 =l add %t11, 16+ %t16 =l loadl %t15+ %t17 =l call $sxqbe_list_len(l %t16)+ %t18 =l copy 1+ %t19 =w ceql %t17, %t18+ jnz %t19, @lbl4784, @lbl4785+@lbl4784+ dbgloc 202+ storel 0, %t21+ %t22 =l add %t11, 16+ %t23 =l loadl %t22+ %t24 =l copy 0+ %t25 =w call $sxqbe_list_valid(l %t23, l %t24)+ jnz %t25, @lbl4787, @lbl4788+@lbl4787+ %t26 =l call $sxqbe_list_buf(l %t23)+ %t27 =l mul %t24, 8+ %t28 =l add %t26, %t27+ %t29 =l loadl %t28+ %t30 =l add %t21, 8+ storel %t29, %t30+ storel 1, %t21+ jmp @lbl4789+@lbl4788+ jmp @lbl4789+@lbl4789+ storel %t21, %t31+ call $__sx_dbg_keep(l %t31)+ dbgvar "o", "option[objid.Id]", %t31, 8, 5, 202+ dbgloc 203+ %t32 =l loadl %t21+ %t33 =w cnel %t32, 0+ jnz %t33, @lbl4790, @lbl4791+@lbl4790+ %t35 =l add %t21, 8+ %t34 =l loadl %t35+ dbgloc 204+ call $memset(l %t36, w 0, l 16)+ storel 1, %t36+ %t37 =l add %t36, 8+ storel %t34, %t37+ call $memcpy(l %__ret, l %t36, l 16)+ ret %__ret+@lbl4791+ jmp @lbl4792+@lbl4792+ jmp @lbl4785+@lbl4785+ dbgloc 207+ storel 0, %t38+ call $memcpy(l %__ret, l %t38, l 16)+ ret %__ret+@lbl4782+@lbl4780+ %t39 =l add %t6, 1+ storel %t39, %t4+ jmp @lbl4777+@lbl4779+ dbgloc 210+ storel 0, %t40+ call $memcpy(l %__ret, l %t40, l 16)+ ret %__ret+}++function l $graph__tag_target(l %__ret, l %v, l %name) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t4 =l alloc8 8+ %t15 =l alloc8 16+ %t18 =l alloc8 16+ dbgloc 213+ storel %v, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "v", "ref view.View", %t0, 8, 7, 213+ storel %name, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "name", "bytes.Bytes", %t1, 8, 5, 213+ dbgloc 214+ %t3 =l add %v, 16+ %t2 =l loadl %t3+ storel 0, %t4+ %t5 =l call $sxqbe_list_len(l %t2)+@lbl4793+ %t6 =l loadl %t4+ %t7 =w csltl %t6, %t5+ jnz %t7, @lbl4794, @lbl4795+@lbl4794+ %t8 =l call $sxqbe_list_buf(l %t2)+ %t9 =l mul %t6, 8+ %t10 =l add %t8, %t9+ %t11 =l loadl %t10+ dbgloc 215+ %t12 =l add %t11, 0+ %t13 =w call $bytes__Bytes__eql(l %t12, l %name)+ jnz %t13, @lbl4797, @lbl4798+@lbl4797+ dbgloc 216+ %t14 =l add %t11, 16+ call $memset(l %t15, w 0, l 16)+ storel 1, %t15+ %t16 =l add %t15, 8+ storel %t14, %t16+ call $memcpy(l %__ret, l %t15, l 16)+ ret %__ret+@lbl4798+@lbl4796+ %t17 =l add %t6, 1+ storel %t17, %t4+ jmp @lbl4793+@lbl4795+ dbgloc 219+ storel 0, %t18+ call $memcpy(l %__ret, l %t18, l 16)+ ret %__ret+}++function l $graph__remote_target(l %__ret, l %v, l %text) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t4 =l alloc8 8+ %t21 =l alloc8 8+ %t30 =l alloc8 8+ %t33 =l alloc4 1+ %t49 =l alloc8 8+ %t53 =l alloc8 16+ %t56 =l alloc8 16+ dbgloc 222+ storel %v, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "v", "ref view.View", %t0, 8, 7, 222+ storel %text, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "text", "bytes.Bytes", %t1, 8, 5, 222+ dbgloc 223+ %t3 =l add %v, 24+ %t2 =l loadl %t3+ storel 0, %t4+ %t5 =l call $sxqbe_list_len(l %t2)+@lbl4800+ %t6 =l loadl %t4+ %t7 =w csltl %t6, %t5+ jnz %t7, @lbl4801, @lbl4802+@lbl4801+ %t8 =l call $sxqbe_list_buf(l %t2)+ %t9 =l mul %t6, 8+ %t10 =l add %t8, %t9+ %t11 =l loadl %t10+ dbgloc 224+ %t12 =l add %t11, 0+ %t14 =l add %t12, 8+ %t13 =l loadl %t14+ %t15 =l copy 1+ %t16 =l add %t13, %t15+ %t17 =l add %t11, 16+ %t19 =l add %t17, 8+ %t18 =l loadl %t19+ %t20 =l add %t16, %t18+ storel %t20, %t21+ call $__sx_dbg_keep(l %t21)+ dbgvar "joined", "usize", %t21, 8, 5, 224+ dbgloc 225+ %t23 =l add %text, 8+ %t22 =l loadl %t23+ %t24 =w ceql %t20, %t22+ jnz %t24, @lbl4804, @lbl4805+@lbl4804+ dbgloc 226+ %t25 =l copy 0+ %t26 =l add %t11, 0+ %t28 =l add %t26, 8+ %t27 =l loadl %t28+ %t29 =l call $bytes__Bytes__slice(l %text, l %t25, l %t27)+ storel %t29, %t30+ call $__sx_dbg_keep(l %t30)+ dbgvar "prefix", "bytes.Bytes", %t30, 8, 5, 226+ dbgloc 227+ %t31 =l add %t11, 0+ %t32 =w call $bytes__Bytes__eql(l %t29, l %t31)+ storew %t32, %t33+ jnz %t32, @lbl4810, @lbl4811+@lbl4810+ %t34 =l add %t11, 0+ %t36 =l add %t34, 8+ %t35 =l loadl %t36+ %t37 =w call $bytes__Bytes__at(l %text, l %t35)+ %t38 =w copy 47+ %t39 =w ceqw %t37, %t38+ storew %t39, %t33+ jmp @lbl4811+@lbl4811+ %t40 =w loadw %t33+ jnz %t40, @lbl4807, @lbl4808+@lbl4807+ dbgloc 228+ %t41 =l add %t11, 0+ %t43 =l add %t41, 8+ %t42 =l loadl %t43+ %t44 =l copy 1+ %t45 =l add %t42, %t44+ %t47 =l add %text, 8+ %t46 =l loadl %t47+ %t48 =l call $bytes__Bytes__slice(l %text, l %t45, l %t46)+ storel %t48, %t49+ call $__sx_dbg_keep(l %t49)+ dbgvar "suffix", "bytes.Bytes", %t49, 8, 5, 228+ dbgloc 233+ %t50 =l add %t11, 16+ %t51 =w call $bytes__Bytes__eql(l %t48, l %t50)+ jnz %t51, @lbl4812, @lbl4813+@lbl4812+ dbgloc 234+ %t52 =l add %t11, 32+ call $memset(l %t53, w 0, l 16)+ storel 1, %t53+ %t54 =l add %t53, 8+ storel %t52, %t54+ call $memcpy(l %__ret, l %t53, l 16)+ ret %__ret+@lbl4813+ jmp @lbl4808+@lbl4808+ jmp @lbl4805+@lbl4805+@lbl4803+ %t55 =l add %t6, 1+ storel %t55, %t4+ jmp @lbl4800+@lbl4802+ dbgloc 239+ storel 0, %t56+ call $memcpy(l %__ret, l %t56, l 16)+ ret %__ret+}++export function l $graph__resolve(l %__ret, l %handles, l %v, l %rev) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t7 =l alloc4 1+ %t14 =l alloc8 16+ %t16 =l alloc8 16+ %t17 =l alloc8 8+ %t22 =l alloc8 16+ %t25 =l alloc8 16+ %t26 =l alloc8 8+ %t31 =l alloc8 16+ %t34 =l alloc8 16+ %t35 =l alloc8 8+ %t40 =l alloc8 16+ %t43 =l alloc8 8+ %t45 =l alloc8 8+ %t48 =l alloc8 8+ %t54 =l alloc8 16+ %t62 =l alloc8 8+ %t89 =l alloc8 8+ %t95 =l alloc8 16+ %t103 =l alloc8 8+ %t109 =l alloc8 16+ %t110 =l alloc8 8+ %t123 =l alloc8 8+ %t143 =l alloc8 16+ %t144 =l alloc8 8+ %t151 =l alloc8 16+ %t160 =l alloc8 8+ %t166 =l alloc8 16+ dbgloc 242+ storel %handles, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "handles", "list[ref store.Handle]", %t0, 8, 5, 242+ storel %v, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "v", "ref view.View", %t1, 8, 7, 242+ storel %rev, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "rev", "bytes.Bytes", %t2, 8, 5, 242+ dbgloc 247+ %t4 =l add %rev, 8+ %t3 =l loadl %t4+ %t5 =l copy 0+ %t6 =w ceql %t3, %t5+ storew %t6, %t7+ jnz %t6, @lbl4819, @lbl4818+@lbl4818+ %t8 =l copy $__str247+ %t9 =l copy 1+ %t10 =l call $bytes__bytes(l %t8, l %t9)+ %t11 =w call $bytes__Bytes__eql(l %rev, l %t10)+ storew %t11, %t7+ jmp @lbl4819+@lbl4819+ %t12 =w loadw %t7+ jnz %t12, @lbl4815, @lbl4816+@lbl4815+ dbgloc 248+ %t13 =l call $viewops__working_copy(l %t14, l %v)+ call $memcpy(l %__ret, l %t14, l 16)+ ret %__ret+@lbl4816+ dbgloc 250+ %t15 =l call $graph__bookmark_target(l %t16, l %v, l %rev)+ storel %t16, %t17+ call $__sx_dbg_keep(l %t17)+ dbgvar "bm", "option[objid.Id]", %t17, 8, 5, 250+ dbgloc 251+ %t18 =l loadl %t16+ %t19 =w cnel %t18, 0+ jnz %t19, @lbl4820, @lbl4821+@lbl4820+ %t21 =l add %t16, 8+ %t20 =l loadl %t21+ dbgloc 252+ call $memset(l %t22, w 0, l 16)+ storel 1, %t22+ %t23 =l add %t22, 8+ storel %t20, %t23+ call $memcpy(l %__ret, l %t22, l 16)+ ret %__ret+@lbl4821+ jmp @lbl4822+@lbl4822+ dbgloc 254+ %t24 =l call $graph__tag_target(l %t25, l %v, l %rev)+ storel %t25, %t26+ call $__sx_dbg_keep(l %t26)+ dbgvar "tg", "option[objid.Id]", %t26, 8, 5, 254+ dbgloc 255+ %t27 =l loadl %t25+ %t28 =w cnel %t27, 0+ jnz %t28, @lbl4823, @lbl4824+@lbl4823+ %t30 =l add %t25, 8+ %t29 =l loadl %t30+ dbgloc 256+ call $memset(l %t31, w 0, l 16)+ storel 1, %t31+ %t32 =l add %t31, 8+ storel %t29, %t32+ call $memcpy(l %__ret, l %t31, l 16)+ ret %__ret+@lbl4824+ jmp @lbl4825+@lbl4825+ dbgloc 258+ %t33 =l call $graph__remote_target(l %t34, l %v, l %rev)+ storel %t34, %t35+ call $__sx_dbg_keep(l %t35)+ dbgvar "rr", "option[objid.Id]", %t35, 8, 5, 258+ dbgloc 259+ %t36 =l loadl %t34+ %t37 =w cnel %t36, 0+ jnz %t37, @lbl4826, @lbl4827+@lbl4826+ %t39 =l add %t34, 8+ %t38 =l loadl %t39+ dbgloc 260+ call $memset(l %t40, w 0, l 16)+ storel 1, %t40+ %t41 =l add %t40, 8+ storel %t38, %t41+ call $memcpy(l %__ret, l %t40, l 16)+ ret %__ret+@lbl4827+ jmp @lbl4828+@lbl4828+ dbgloc 262+ %t42 =l call $graph__all(l %handles, l %v)+ storel %t42, %t43+ call $__sx_dbg_keep(l %t43)+ dbgvar "ids", "list[objid.Id]", %t43, 8, 5, 262+ dbgloc 263+ %t44 =l call $lists__new__GENMONO__objid__Id()++ storel %t44, %t45+ call $__sx_dbg_keep(l %t45)+ dbgvar "matches", "list[objid.Id]", %t45, 8, 5, 263+ dbgloc 264+ %t46 =w call $graph__is_hex_prefix(l %rev)+ jnz %t46, @lbl4829, @lbl4830+@lbl4829+ dbgloc 265+ %t47 =l copy 0+ storel %t47, %t48+ call $__sx_dbg_keep(l %t48)+ dbgvar "i", "usize", %t48, 8, 5, 265+ dbgloc 266+ jmp @lbl4832+@lbl4832+ %t49 =l loadl %t48+ %t51 =l call $sxqbe_list_len(l %t42)+ %t52 =w csltl %t49, %t51+ jnz %t52, @lbl4833, @lbl4835+@lbl4833+ dbgloc 267+ storel 0, %t54+ %t55 =l loadl %t48+ %t56 =w call $sxqbe_list_valid(l %t42, l %t55)+ jnz %t56, @lbl4836, @lbl4837+@lbl4836+ %t57 =l call $sxqbe_list_buf(l %t42)+ %t58 =l mul %t55, 8+ %t59 =l add %t57, %t58+ %t60 =l loadl %t59+ %t61 =l add %t54, 8+ storel %t60, %t61+ storel 1, %t54+ jmp @lbl4838+@lbl4837+ jmp @lbl4838+@lbl4838+ storel %t54, %t62+ call $__sx_dbg_keep(l %t62)+ dbgvar "o", "option[objid.Id]", %t62, 8, 5, 267+ dbgloc 268+ %t63 =l loadl %t54+ %t64 =w cnel %t63, 0+ jnz %t64, @lbl4839, @lbl4840+@lbl4839+ %t66 =l add %t54, 8+ %t65 =l loadl %t66+ dbgloc 269+ %t67 =w call $graph__id_matches_hex(l %t65, l %rev)+ jnz %t67, @lbl4842, @lbl4843+@lbl4842+ dbgloc 270+ %t69 =l call $sxqbe_list_ensure(l %t45)+ %t70 =l call $graph__copy_id(l %t65)+ %t71 =l add %t69, 8+ %t72 =l add %t69, 16+ %t73 =l loadl %t71+ %t74 =l loadl %t72+ %t76 =l add %t73, 1+ %t75 =w call $sxqbe_list_grow(l %t69, l %t76)+ %t77 =l call $sxqbe_list_buf(l %t69)+ %t78 =l mul %t73, 8+ %t79 =l add %t77, %t78+ storel %t70, %t79+ %t80 =l add %t73, 1+ storel %t80, %t71+ %t68 =l copy 0+ jmp @lbl4843+@lbl4843+ jmp @lbl4841+@lbl4840+ jmp @lbl4841+@lbl4841+ dbgloc 273+ %t81 =l loadl %t48+ %t82 =l add %t81, 1+ storel %t82, %t48+ jmp @lbl4834+@lbl4834+ jmp @lbl4832+@lbl4835+ jmp @lbl4830+@lbl4830+ dbgloc 276+ %t84 =l loadl %t45+ %t85 =l call $sxqbe_list_len(l %t84)+ %t86 =l copy 0+ %t87 =w ceql %t85, %t86+ jnz %t87, @lbl4845, @lbl4846+@lbl4845+ dbgloc 277+ %t88 =l copy 0+ storel %t88, %t89+ call $__sx_dbg_keep(l %t89)+ dbgvar "i2", "usize", %t89, 8, 5, 277+ dbgloc 278+ jmp @lbl4848+@lbl4848+ %t90 =l loadl %t89+ %t92 =l call $sxqbe_list_len(l %t42)+ %t93 =w csltl %t90, %t92+ jnz %t93, @lbl4849, @lbl4851+@lbl4849+ dbgloc 279+ storel 0, %t95+ %t96 =l loadl %t89+ %t97 =w call $sxqbe_list_valid(l %t42, l %t96)+ jnz %t97, @lbl4852, @lbl4853+@lbl4852+ %t98 =l call $sxqbe_list_buf(l %t42)+ %t99 =l mul %t96, 8+ %t100 =l add %t98, %t99+ %t101 =l loadl %t100+ %t102 =l add %t95, 8+ storel %t101, %t102+ storel 1, %t95+ jmp @lbl4854+@lbl4853+ jmp @lbl4854+@lbl4854+ storel %t95, %t103+ call $__sx_dbg_keep(l %t103)+ dbgvar "o", "option[objid.Id]", %t103, 8, 5, 279+ dbgloc 280+ %t104 =l loadl %t95+ %t105 =w cnel %t104, 0+ jnz %t105, @lbl4855, @lbl4856+@lbl4855+ %t107 =l add %t95, 8+ %t106 =l loadl %t107+ dbgloc 281+ %t108 =l call $graph__load_commit(l %t109, l %handles, l %t106)+ storel %t109, %t110+ call $__sx_dbg_keep(l %t110)+ dbgvar "c_opt", "option[ref LoadedCommit]", %t110, 8, 5, 281+ dbgloc 282+ %t111 =l loadl %t109+ %t112 =w cnel %t111, 0+ jnz %t112, @lbl4858, @lbl4859+@lbl4858+ %t114 =l add %t109, 8+ %t113 =l loadl %t114+ dbgloc 283+ %t115 =l loadl %t113+ %t116 =l add %t115, 17+ %t117 =l loadl %t116+ %t118 =l copy 0+ %t119 =w cnel %t117, %t118+ jnz %t119, @lbl4861, @lbl4862+@lbl4861+ dbgloc 284+ %t120 =l loadl %t113+ %t121 =l add %t120, 17+ %t122 =l call $changeid__encode(l %t121)+ storel %t122, %t123+ call $__sx_dbg_keep(l %t123)+ dbgvar "encoded", "bytes.Bytes", %t123, 8, 5, 284+ dbgloc 285+ %t124 =w call $changeid__prefix_matches(l %t122, l %rev)+ jnz %t124, @lbl4864, @lbl4865+@lbl4864+ dbgloc 286+ %t126 =l call $sxqbe_list_ensure(l %t45)+ %t127 =l call $graph__copy_id(l %t106)+ %t128 =l add %t126, 8+ %t129 =l add %t126, 16+ %t130 =l loadl %t128+ %t131 =l loadl %t129+ %t133 =l add %t130, 1+ %t132 =w call $sxqbe_list_grow(l %t126, l %t133)+ %t134 =l call $sxqbe_list_buf(l %t126)+ %t135 =l mul %t130, 8+ %t136 =l add %t134, %t135+ storel %t127, %t136+ %t137 =l add %t130, 1+ storel %t137, %t128+ %t125 =l copy 0+ jmp @lbl4865+@lbl4865+ dbgloc 288+ %t138 =w call $changeid__free(l %t122)+ jmp @lbl4862+@lbl4862+ dbgloc 290+ %t139 =w call $graph__free_loaded(l %t113)+ jmp @lbl4860+@lbl4859+ jmp @lbl4860+@lbl4860+ jmp @lbl4857+@lbl4856+ jmp @lbl4857+@lbl4857+ dbgloc 293+ %t140 =l loadl %t89+ %t141 =l add %t140, 1+ storel %t141, %t89+ jmp @lbl4850+@lbl4850+ jmp @lbl4848+@lbl4851+ jmp @lbl4846+@lbl4846+ dbgloc 296+ %t142 =w call $graph__free_ids(l %t42)+ dbgloc 297+ storel 0, %t143+ storel %t143, %t144+ call $__sx_dbg_keep(l %t144)+ dbgvar "result", "option[objid.Id]", %t144, 8, 5, 297+ dbgloc 298+ %t146 =l loadl %t45+ %t147 =l call $sxqbe_list_len(l %t146)+ %t148 =l copy 1+ %t149 =w ceql %t147, %t148+ jnz %t149, @lbl4867, @lbl4869+@lbl4867+ dbgloc 299+ storel 0, %t151+ %t152 =l loadl %t45+ %t153 =l copy 0+ %t154 =w call $sxqbe_list_valid(l %t152, l %t153)+ jnz %t154, @lbl4870, @lbl4871+@lbl4870+ %t155 =l call $sxqbe_list_buf(l %t152)+ %t156 =l mul %t153, 8+ %t157 =l add %t155, %t156+ %t158 =l loadl %t157+ %t159 =l add %t151, 8+ storel %t158, %t159+ storel 1, %t151+ jmp @lbl4872+@lbl4871+ jmp @lbl4872+@lbl4872+ storel %t151, %t160+ call $__sx_dbg_keep(l %t160)+ dbgvar "o", "option[objid.Id]", %t160, 8, 5, 299+ dbgloc 300+ %t161 =l loadl %t151+ %t162 =w cnel %t161, 0+ jnz %t162, @lbl4873, @lbl4874+@lbl4873+ %t164 =l add %t151, 8+ %t163 =l loadl %t164+ dbgloc 301+ %t165 =l call $graph__copy_id(l %t163)+ call $memset(l %t166, w 0, l 16)+ storel 1, %t166+ %t167 =l add %t166, 8+ storel %t165, %t167+ storel %t166, %t144+ jmp @lbl4875+@lbl4874+ jmp @lbl4875+@lbl4875+ jmp @lbl4868+@lbl4869+ jmp @lbl4868+@lbl4868+ dbgloc 306+ %t168 =l loadl %t45+ %t169 =w call $graph__free_ids(l %t168)+ dbgloc 307+ %t170 =l loadl %t144+ call $memcpy(l %__ret, l %t170, l 16)+ ret %__ret+}++dbgfile "src/core/userconfig.sx"+function l $userconfig__trim(l %b) {+@start+ %t0 =l alloc8 8+ %t2 =l alloc8 8+ %t5 =l alloc8 8+ %t13 =l alloc8 8+ %t16 =l alloc4 1+ %t20 =l alloc4 1+ %t24 =l alloc4 1+ %t39 =l alloc8 8+ %t42 =l alloc4 1+ %t46 =l alloc4 1+ %t50 =l alloc4 1+ dbgloc 19+ storel %b, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "b", "bytes.Bytes", %t0, 8, 5, 19+ dbgloc 20+ %t1 =l copy 0+ storel %t1, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "start", "usize", %t2, 8, 5, 20+ dbgloc 21+ %t4 =l add %b, 8+ %t3 =l loadl %t4+ storel %t3, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "end", "usize", %t5, 8, 5, 21+ dbgloc 22+ jmp @lbl4876+@lbl4876+ %t6 =l loadl %t2+ %t7 =l loadl %t5+ %t8 =w csltl %t6, %t7+ jnz %t8, @lbl4877, @lbl4879+@lbl4877+ dbgloc 23+ %t9 =l loadl %t2+ %t10 =w call $bytes__Bytes__at(l %b, l %t9)+ %t11 =w copy %t10+ %t12 =w extub %t11+ storew %t12, %t13+ call $__sx_dbg_keep(l %t13)+ dbgvar "c", "u8", %t13, 1, 7, 23+ dbgloc 24+ %t14 =w copy 32+ %t15 =w cnew %t12, %t14+ storew %t15, %t16+ jnz %t15, @lbl4883, @lbl4884+@lbl4883+ %t17 =w copy 9+ %t18 =w cnew %t12, %t17+ storew %t18, %t16+ jmp @lbl4884+@lbl4884+ %t19 =w loadw %t16+ storew %t19, %t20+ jnz %t19, @lbl4885, @lbl4886+@lbl4885+ %t21 =w copy 13+ %t22 =w cnew %t12, %t21+ storew %t22, %t20+ jmp @lbl4886+@lbl4886+ %t23 =w loadw %t20+ storew %t23, %t24+ jnz %t23, @lbl4887, @lbl4888+@lbl4887+ %t25 =w copy 10+ %t26 =w cnew %t12, %t25+ storew %t26, %t24+ jmp @lbl4888+@lbl4888+ %t27 =w loadw %t24+ jnz %t27, @lbl4880, @lbl4881+@lbl4880+ dbgloc 25+ jmp @lbl4879+@lbl4881+ dbgloc 27+ %t28 =l loadl %t2+ %t29 =l add %t28, 1+ storel %t29, %t2+ jmp @lbl4878+@lbl4878+ jmp @lbl4876+@lbl4879+ dbgloc 29+ jmp @lbl4889+@lbl4889+ %t30 =l loadl %t5+ %t31 =l loadl %t2+ %t32 =w csgtl %t30, %t31+ jnz %t32, @lbl4890, @lbl4892+@lbl4890+ dbgloc 30+ %t33 =l loadl %t5+ %t34 =l copy 1+ %t35 =l sub %t33, %t34+ %t36 =w call $bytes__Bytes__at(l %b, l %t35)+ %t37 =w copy %t36+ %t38 =w extub %t37+ storew %t38, %t39+ call $__sx_dbg_keep(l %t39)+ dbgvar "c2", "u8", %t39, 1, 7, 30+ dbgloc 31+ %t40 =w copy 32+ %t41 =w cnew %t38, %t40+ storew %t41, %t42+ jnz %t41, @lbl4896, @lbl4897+@lbl4896+ %t43 =w copy 9+ %t44 =w cnew %t38, %t43+ storew %t44, %t42+ jmp @lbl4897+@lbl4897+ %t45 =w loadw %t42+ storew %t45, %t46+ jnz %t45, @lbl4898, @lbl4899+@lbl4898+ %t47 =w copy 13+ %t48 =w cnew %t38, %t47+ storew %t48, %t46+ jmp @lbl4899+@lbl4899+ %t49 =w loadw %t46+ storew %t49, %t50+ jnz %t49, @lbl4900, @lbl4901+@lbl4900+ %t51 =w copy 10+ %t52 =w cnew %t38, %t51+ storew %t52, %t50+ jmp @lbl4901+@lbl4901+ %t53 =w loadw %t50+ jnz %t53, @lbl4893, @lbl4894+@lbl4893+ dbgloc 32+ jmp @lbl4892+@lbl4894+ dbgloc 34+ %t54 =l loadl %t5+ %t55 =l sub %t54, 1+ storel %t55, %t5+ jmp @lbl4891+@lbl4891+ jmp @lbl4889+@lbl4892+ dbgloc 36+ %t56 =l loadl %t2+ %t57 =l loadl %t5+ %t58 =l call $bytes__Bytes__slice(l %b, l %t56, l %t57)+ ret %t58+}++function l $userconfig__config_path(l %__ret) {+@start+ %t1 =l alloc8 16+ %t2 =l alloc8 8+ %t13 =l alloc8 16+ %t15 =l alloc8 16+ dbgloc 39+ dbgloc 40+ %t0 =l call $std__fs__home_dir_cstr(l %t1)+ storel %t1, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "home", "option[ref u8]", %t2, 8, 5, 40+ dbgloc 41+ %t3 =l loadl %t1+ %t4 =w cnel %t3, 0+ jnz %t4, @lbl4902, @lbl4903+@lbl4902+ %t6 =l add %t1, 8+ %t5 =l loadl %t6+ dbgloc 43+ %t7 =l call $std__str__from_cstr(l %t5)+ %t8 =l copy $__str248+ %t9 =l call $std__str__from_cstr(l %t8)+ %t10 =l copy $__str249+ %t11 =l call $std__str__from_cstr(l %t10)+ %t12 =l call $files__join3(l %t7, l %t9, l %t11)+ call $memset(l %t13, w 0, l 16)+ storel 1, %t13+ %t14 =l add %t13, 8+ storel %t12, %t14+ call $memcpy(l %__ret, l %t13, l 16)+ ret %__ret+@lbl4903+ dbgloc 50+ storel 0, %t15+ call $memcpy(l %__ret, l %t15, l 16)+ ret %__ret+@lbl4904+ ret 0+}++function l $userconfig__strip_comment(l %v) {+@start+ %t0 =l alloc8 8+ %t2 =l alloc8 8+ %t6 =l alloc8 8+ %t10 =l alloc8 8+ %t14 =l alloc8 8+ %t23 =l alloc8 8+ dbgloc 56+ storel %v, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "v", "bytes.Bytes", %t0, 8, 5, 56+ dbgloc 57+ %t1 =l copy 0+ storel %t1, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "i", "usize", %t2, 8, 5, 57+ dbgloc 58+ %t3 =l copy 0+ %t4 =w copy %t3+ %t5 =w extub %t4+ storew %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "in_double", "bool", %t6, 1, 7, 58+ dbgloc 59+ %t7 =l copy 0+ %t8 =w copy %t7+ %t9 =w extub %t8+ storew %t9, %t10+ call $__sx_dbg_keep(l %t10)+ dbgvar "in_single", "bool", %t10, 1, 7, 59+ dbgloc 60+ %t11 =l copy 0+ %t12 =w copy %t11+ %t13 =w extub %t12+ storew %t13, %t14+ call $__sx_dbg_keep(l %t14)+ dbgvar "escaped", "bool", %t14, 1, 7, 60+ dbgloc 61+ jmp @lbl4905+@lbl4905+ %t15 =l loadl %t2+ %t17 =l add %v, 8+ %t16 =l loadl %t17+ %t18 =w csltl %t15, %t16+ jnz %t18, @lbl4906, @lbl4908+@lbl4906+ dbgloc 62+ %t19 =l loadl %t2+ %t20 =w call $bytes__Bytes__at(l %v, l %t19)+ %t21 =w copy %t20+ %t22 =w extub %t21+ storew %t22, %t23+ call $__sx_dbg_keep(l %t23)+ dbgvar "c", "u8", %t23, 1, 7, 62+ dbgloc 63+ %t25 =w loadw %t6+ %t24 =l extsw %t25+ jnz %t24, @lbl4909, @lbl4911+@lbl4909+ dbgloc 64+ %t27 =w loadw %t14+ %t26 =l extsw %t27+ jnz %t26, @lbl4920, @lbl4922+@lbl4920+ dbgloc 65+ %t28 =l copy 0+ %t29 =w copy %t28+ %t30 =w extub %t29+ storew %t30, %t14+ jmp @lbl4921+@lbl4922+ %t31 =w copy 92+ %t32 =w ceqw %t22, %t31+ jnz %t32, @lbl4923, @lbl4924+@lbl4923+ dbgloc 67+ %t33 =l copy 1+ %t34 =w copy %t33+ %t35 =w extub %t34+ storew %t35, %t14+ jmp @lbl4921+@lbl4924+ %t36 =w copy 34+ %t37 =w ceqw %t22, %t36+ jnz %t37, @lbl4925, @lbl4921+@lbl4925+ dbgloc 69+ %t38 =l copy 0+ %t39 =w copy %t38+ %t40 =w extub %t39+ storew %t40, %t6+ jmp @lbl4921+@lbl4921+ jmp @lbl4910+@lbl4911+ %t42 =w loadw %t10+ %t41 =l extsw %t42+ jnz %t41, @lbl4912, @lbl4913+@lbl4912+ dbgloc 72+ %t43 =w copy 39+ %t44 =w ceqw %t22, %t43+ jnz %t44, @lbl4927, @lbl4928+@lbl4927+ dbgloc 73+ %t45 =l copy 0+ %t46 =w copy %t45+ %t47 =w extub %t46+ storew %t47, %t10+ jmp @lbl4928+@lbl4928+ jmp @lbl4910+@lbl4913+ %t48 =w copy 34+ %t49 =w ceqw %t22, %t48+ jnz %t49, @lbl4914, @lbl4915+@lbl4914+ dbgloc 76+ %t50 =l copy 1+ %t51 =w copy %t50+ %t52 =w extub %t51+ storew %t52, %t6+ jmp @lbl4910+@lbl4915+ %t53 =w copy 39+ %t54 =w ceqw %t22, %t53+ jnz %t54, @lbl4916, @lbl4917+@lbl4916+ dbgloc 78+ %t55 =l copy 1+ %t56 =w copy %t55+ %t57 =w extub %t56+ storew %t57, %t10+ jmp @lbl4910+@lbl4917+ %t58 =w copy 35+ %t59 =w ceqw %t22, %t58+ jnz %t59, @lbl4918, @lbl4910+@lbl4918+ dbgloc 80+ %t60 =l copy 0+ %t61 =l loadl %t2+ %t62 =l call $bytes__Bytes__slice(l %v, l %t60, l %t61)+ %t63 =l call $userconfig__trim(l %t62)+ ret %t63+@lbl4910+ dbgloc 82+ %t64 =l loadl %t2+ %t65 =l add %t64, 1+ storel %t65, %t2+ jmp @lbl4907+@lbl4907+ jmp @lbl4905+@lbl4908+ dbgloc 84+ %t66 =l call $userconfig__trim(l %v)+ ret %t66+}++function l $userconfig__unquote(l %__ret, l %v) {+@start+ %t0 =l alloc8 8+ %t10 =l alloc8 8+ %t18 =l alloc8 8+ %t21 =l alloc4 1+ %t32 =l alloc8 16+ %t36 =l alloc4 1+ %t46 =l alloc8 8+ %t53 =l alloc8 8+ %t55 =l alloc8 8+ %t64 =l alloc8 8+ %t67 =l alloc4 1+ %t81 =l alloc8 8+ %t128 =l alloc8 8+ %t131 =l alloc8 16+ %t137 =l alloc8 16+ %t139 =l alloc8 16+ dbgloc 88+ storel %v, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "v", "bytes.Bytes", %t0, 8, 5, 88+ dbgloc 89+ %t2 =l add %v, 8+ %t1 =l loadl %t2+ %t3 =l copy 2+ %t5 =w csltl %t1, %t3+ %t4 =w ceqw %t5, 0+ jnz %t4, @lbl4930, @lbl4931+@lbl4930+ dbgloc 90+ %t6 =l copy 0+ %t7 =w call $bytes__Bytes__at(l %v, l %t6)+ %t8 =w copy %t7+ %t9 =w extub %t8+ storew %t9, %t10+ call $__sx_dbg_keep(l %t10)+ dbgvar "first", "u8", %t10, 1, 7, 90+ dbgloc 91+ %t12 =l add %v, 8+ %t11 =l loadl %t12+ %t13 =l copy 1+ %t14 =l sub %t11, %t13+ %t15 =w call $bytes__Bytes__at(l %v, l %t14)+ %t16 =w copy %t15+ %t17 =w extub %t16+ storew %t17, %t18+ call $__sx_dbg_keep(l %t18)+ dbgvar "last", "u8", %t18, 1, 7, 91+ dbgloc 92+ %t19 =w copy 39+ %t20 =w ceqw %t9, %t19+ storew %t20, %t21+ jnz %t20, @lbl4936, @lbl4937+@lbl4936+ %t22 =w copy 39+ %t23 =w ceqw %t17, %t22+ storew %t23, %t21+ jmp @lbl4937+@lbl4937+ %t24 =w loadw %t21+ jnz %t24, @lbl4933, @lbl4934+@lbl4933+ dbgloc 93+ %t25 =l copy 1+ %t27 =l add %v, 8+ %t26 =l loadl %t27+ %t28 =l copy 1+ %t29 =l sub %t26, %t28+ %t30 =l call $bytes__Bytes__slice(l %v, l %t25, l %t29)+ %t31 =l call $bytes__Bytes__dup(l %t30)+ call $memset(l %t32, w 0, l 16)+ storel 1, %t32+ %t33 =l add %t32, 8+ storel %t31, %t33+ call $memcpy(l %__ret, l %t32, l 16)+ ret %__ret+@lbl4934+ dbgloc 95+ %t34 =w copy 34+ %t35 =w ceqw %t9, %t34+ storew %t35, %t36+ jnz %t35, @lbl4941, @lbl4942+@lbl4941+ %t37 =w copy 34+ %t38 =w ceqw %t17, %t37+ storew %t38, %t36+ jmp @lbl4942+@lbl4942+ %t39 =w loadw %t36+ jnz %t39, @lbl4938, @lbl4939+@lbl4938+ dbgloc 96+ %t40 =l copy 1+ %t42 =l add %v, 8+ %t41 =l loadl %t42+ %t43 =l copy 1+ %t44 =l sub %t41, %t43+ %t45 =l call $bytes__Bytes__slice(l %v, l %t40, l %t44)+ storel %t45, %t46+ call $__sx_dbg_keep(l %t46)+ dbgvar "inner", "bytes.Bytes", %t46, 8, 5, 96+ dbgloc 97+ %t48 =l add %t45, 8+ %t47 =l loadl %t48+ %t49 =l copy 1+ %t50 =l add %t47, %t49+ %t51 =l call $buf__new(l %t50)+ %t52 =l call $malloc(l 24)+ call $memset(l %t52, w 0, l 24)+ call $memcpy(l %t52, l %t51, l 24)+ storel %t52, %t53+ call $__sx_dbg_keep(l %t53)+ dbgvar "out", "buf.Buf", %t53, 8, 5, 97+ dbgloc 98+ %t54 =l copy 0+ storel %t54, %t55+ call $__sx_dbg_keep(l %t55)+ dbgvar "i", "usize", %t55, 8, 5, 98+ dbgloc 99+ jmp @lbl4943+@lbl4943+ %t56 =l loadl %t55+ %t58 =l add %t45, 8+ %t57 =l loadl %t58+ %t59 =w csltl %t56, %t57+ jnz %t59, @lbl4944, @lbl4946+@lbl4944+ dbgloc 100+ %t60 =l loadl %t55+ %t61 =w call $bytes__Bytes__at(l %t45, l %t60)+ %t62 =w copy %t61+ %t63 =w extub %t62+ storew %t63, %t64+ call $__sx_dbg_keep(l %t64)+ dbgvar "c", "u8", %t64, 1, 7, 100+ dbgloc 101+ %t65 =w copy 92+ %t66 =w ceqw %t63, %t65+ storew %t66, %t67+ jnz %t66, @lbl4950, @lbl4951+@lbl4950+ %t68 =l loadl %t55+ %t69 =l copy 1+ %t70 =l add %t68, %t69+ %t72 =l add %t45, 8+ %t71 =l loadl %t72+ %t73 =w csltl %t70, %t71+ storew %t73, %t67+ jmp @lbl4951+@lbl4951+ %t74 =w loadw %t67+ jnz %t74, @lbl4947, @lbl4949+@lbl4947+ dbgloc 102+ %t75 =l loadl %t55+ %t76 =l copy 1+ %t77 =l add %t75, %t76+ %t78 =w call $bytes__Bytes__at(l %t45, l %t77)+ %t79 =w copy %t78+ %t80 =w extub %t79+ storew %t80, %t81+ call $__sx_dbg_keep(l %t81)+ dbgvar "next", "u8", %t81, 1, 7, 102+ dbgloc 103+ %t82 =w copy 34+ %t83 =w ceqw %t80, %t82+ jnz %t83, @lbl4952, @lbl4954+@lbl4952+ dbgloc 104+ %t84 =l loadl %t53+ %t85 =l copy 34+ %t87 =w copy %t85+ %t86 =w call $buf__Buf__put_u8(l %t84, w %t87)+ jmp @lbl4953+@lbl4954+ %t88 =w copy 92+ %t89 =w ceqw %t80, %t88+ jnz %t89, @lbl4955, @lbl4956+@lbl4955+ dbgloc 106+ %t90 =l loadl %t53+ %t91 =l copy 92+ %t93 =w copy %t91+ %t92 =w call $buf__Buf__put_u8(l %t90, w %t93)+ jmp @lbl4953+@lbl4956+ %t94 =w copy 110+ %t95 =w ceqw %t80, %t94+ jnz %t95, @lbl4957, @lbl4958+@lbl4957+ dbgloc 108+ %t96 =l loadl %t53+ %t97 =l copy 10+ %t99 =w copy %t97+ %t98 =w call $buf__Buf__put_u8(l %t96, w %t99)+ jmp @lbl4953+@lbl4958+ %t100 =w copy 114+ %t101 =w ceqw %t80, %t100+ jnz %t101, @lbl4959, @lbl4960+@lbl4959+ dbgloc 110+ %t102 =l loadl %t53+ %t103 =l copy 13+ %t105 =w copy %t103+ %t104 =w call $buf__Buf__put_u8(l %t102, w %t105)+ jmp @lbl4953+@lbl4960+ %t106 =w copy 116+ %t107 =w ceqw %t80, %t106+ jnz %t107, @lbl4961, @lbl4962+@lbl4961+ dbgloc 112+ %t108 =l loadl %t53+ %t109 =l copy 9+ %t111 =w copy %t109+ %t110 =w call $buf__Buf__put_u8(l %t108, w %t111)+ jmp @lbl4953+@lbl4962+ dbgloc 114+ %t112 =l loadl %t53+ %t113 =l copy 92+ %t115 =w copy %t113+ %t114 =w call $buf__Buf__put_u8(l %t112, w %t115)+ dbgloc 115+ %t116 =l loadl %t53+ %t117 =w call $buf__Buf__put_u8(l %t116, w %t80)+ jmp @lbl4953+@lbl4953+ dbgloc 117+ %t118 =l loadl %t55+ %t119 =l copy 2+ %t120 =l add %t118, %t119+ storel %t120, %t55+ jmp @lbl4948+@lbl4949+ dbgloc 119+ %t121 =l loadl %t53+ %t122 =w call $buf__Buf__put_u8(l %t121, w %t63)+ dbgloc 120+ %t123 =l loadl %t55+ %t124 =l add %t123, 1+ storel %t124, %t55+ jmp @lbl4948+@lbl4948+ jmp @lbl4945+@lbl4945+ jmp @lbl4943+@lbl4946+ dbgloc 123+ %t125 =l loadl %t53+ %t126 =l call $buf__Buf__view(l %t125)+ %t127 =l call $bytes__Bytes__dup(l %t126)+ storel %t127, %t128+ call $__sx_dbg_keep(l %t128)+ dbgvar "result", "bytes.Bytes", %t128, 8, 5, 123+ dbgloc 124+ %t129 =l loadl %t53+ %t130 =w call $buf__Buf__free(l %t129)+ dbgloc 125+ call $memset(l %t131, w 0, l 16)+ storel 1, %t131+ %t132 =l add %t131, 8+ storel %t127, %t132+ call $memcpy(l %__ret, l %t131, l 16)+ ret %__ret+@lbl4939+ jmp @lbl4931+@lbl4931+ dbgloc 128+ %t134 =l add %v, 8+ %t133 =l loadl %t134+ %t135 =l copy 0+ %t136 =w ceql %t133, %t135+ jnz %t136, @lbl4963, @lbl4964+@lbl4963+ dbgloc 129+ storel 0, %t137+ call $memcpy(l %__ret, l %t137, l 16)+ ret %__ret+@lbl4964+ dbgloc 131+ %t138 =l call $bytes__Bytes__dup(l %v)+ call $memset(l %t139, w 0, l 16)+ storel 1, %t139+ %t140 =l add %t139, 8+ storel %t138, %t140+ call $memcpy(l %__ret, l %t139, l 16)+ ret %__ret+}++function w $userconfig__key_matches(l %key, w %in_user, w %want_name) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ dbgloc 134+ storel %key, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "key", "bytes.Bytes", %t0, 8, 5, 134+ storew %in_user, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "in_user", "bool", %t1, 1, 7, 134+ storew %want_name, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "want_name", "bool", %t2, 1, 7, 134+ dbgloc 135+ jnz %in_user, @lbl4966, @lbl4967+@lbl4966+ dbgloc 136+ jnz %want_name, @lbl4969, @lbl4970+@lbl4969+ dbgloc 137+ %t3 =l copy $__str250+ %t4 =l copy 4+ %t5 =l call $bytes__bytes(l %t3, l %t4)+ %t6 =w call $bytes__Bytes__eql(l %key, l %t5)+ ret %t6+@lbl4970+ dbgloc 139+ %t7 =l copy $__str251+ %t8 =l copy 5+ %t9 =l call $bytes__bytes(l %t7, l %t8)+ %t10 =w call $bytes__Bytes__eql(l %key, l %t9)+ ret %t10+@lbl4967+ dbgloc 141+ jnz %want_name, @lbl4972, @lbl4973+@lbl4972+ dbgloc 142+ %t11 =l copy $__str252+ %t12 =l copy 9+ %t13 =l call $bytes__bytes(l %t11, l %t12)+ %t14 =w call $bytes__Bytes__eql(l %key, l %t13)+ ret %t14+@lbl4973+ dbgloc 144+ %t15 =l copy $__str253+ %t16 =l copy 10+ %t17 =l call $bytes__bytes(l %t15, l %t16)+ %t18 =w call $bytes__Bytes__eql(l %key, l %t17)+ ret %t18+}++function l $userconfig__scan(l %__ret, l %data, w %want_name) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t5 =l alloc8 8+ %t7 =l alloc8 8+ %t9 =l alloc8 8+ %t20 =l alloc8 8+ %t21 =l alloc4 1+ %t30 =l alloc8 8+ %t32 =l alloc8 8+ %t37 =l alloc4 1+ %t49 =l alloc8 8+ %t51 =l alloc8 8+ %t72 =l alloc8 8+ %t81 =l alloc8 8+ %t83 =l alloc8 8+ %t105 =l alloc8 8+ %t118 =l alloc8 8+ %t120 =l alloc8 16+ %t121 =l alloc8 8+ %t130 =l alloc8 16+ %t137 =l alloc8 16+ dbgloc 147+ storel %data, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "data", "bytes.Bytes", %t0, 8, 5, 147+ storew %want_name, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "want_name", "bool", %t1, 1, 7, 147+ dbgloc 148+ %t2 =l copy 0+ %t3 =w copy %t2+ %t4 =w extub %t3+ storew %t4, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "in_user", "bool", %t5, 1, 7, 148+ dbgloc 149+ %t6 =l copy 0+ storel %t6, %t7+ call $__sx_dbg_keep(l %t7)+ dbgvar "pos", "usize", %t7, 8, 5, 149+ dbgloc 150+ %t8 =l copy 0+ storel %t8, %t9+ call $__sx_dbg_keep(l %t9)+ dbgvar "start", "usize", %t9, 8, 5, 150+ dbgloc 151+ jmp @lbl4975+@lbl4975+ %t10 =l loadl %t7+ %t12 =l add %data, 8+ %t11 =l loadl %t12+ %t13 =w cslel %t10, %t11+ jnz %t13, @lbl4976, @lbl4978+@lbl4976+ dbgloc 152+ %t14 =l loadl %t7+ %t16 =l add %data, 8+ %t15 =l loadl %t16+ %t17 =w ceql %t14, %t15+ %t18 =w copy %t17+ %t19 =w extub %t18+ storew %t19, %t20+ call $__sx_dbg_keep(l %t20)+ dbgvar "at_end", "bool", %t20, 1, 7, 152+ dbgloc 153+ storew %t19, %t21+ jnz %t19, @lbl4983, @lbl4982+@lbl4982+ %t22 =l loadl %t7+ %t23 =w call $bytes__Bytes__at(l %data, l %t22)+ %t24 =w copy 10+ %t25 =w ceqw %t23, %t24+ storew %t25, %t21+ jmp @lbl4983+@lbl4983+ %t26 =w loadw %t21+ jnz %t26, @lbl4979, @lbl4980+@lbl4979+ dbgloc 154+ %t27 =l loadl %t9+ %t28 =l loadl %t7+ %t29 =l call $bytes__Bytes__slice(l %data, l %t27, l %t28)+ storel %t29, %t30+ call $__sx_dbg_keep(l %t30)+ dbgvar "raw", "bytes.Bytes", %t30, 8, 5, 154+ dbgloc 155+ %t31 =l call $userconfig__trim(l %t29)+ storel %t31, %t32+ call $__sx_dbg_keep(l %t32)+ dbgvar "line", "bytes.Bytes", %t32, 8, 5, 155+ dbgloc 156+ %t34 =l add %t31, 8+ %t33 =l loadl %t34+ %t35 =l copy 0+ %t36 =w csgtl %t33, %t35+ storew %t36, %t37+ jnz %t36, @lbl4987, @lbl4988+@lbl4987+ %t38 =l copy 0+ %t39 =w call $bytes__Bytes__at(l %t31, l %t38)+ %t40 =w copy 35+ %t41 =w cnew %t39, %t40+ storew %t41, %t37+ jmp @lbl4988+@lbl4988+ %t42 =w loadw %t37+ jnz %t42, @lbl4984, @lbl4985+@lbl4984+ dbgloc 157+ %t43 =l copy 0+ %t44 =w call $bytes__Bytes__at(l %t31, l %t43)+ %t45 =w copy 91+ %t46 =w ceqw %t44, %t45+ jnz %t46, @lbl4989, @lbl4991+@lbl4989+ dbgloc 158+ %t47 =l copy 1+ %t48 =l neg %t47+ storel %t48, %t49+ call $__sx_dbg_keep(l %t49)+ dbgvar "close", "i64", %t49, 8, 5, 158+ dbgloc 159+ %t50 =l copy 1+ storel %t50, %t51+ call $__sx_dbg_keep(l %t51)+ dbgvar "j", "usize", %t51, 8, 5, 159+ dbgloc 160+ jmp @lbl4992+@lbl4992+ %t52 =l loadl %t51+ %t54 =l add %t31, 8+ %t53 =l loadl %t54+ %t55 =w csltl %t52, %t53+ jnz %t55, @lbl4993, @lbl4995+@lbl4993+ dbgloc 161+ %t56 =l loadl %t51+ %t57 =w call $bytes__Bytes__at(l %t31, l %t56)+ %t58 =w copy 93+ %t59 =w ceqw %t57, %t58+ jnz %t59, @lbl4996, @lbl4997+@lbl4996+ dbgloc 162+ %t60 =l loadl %t51+ %t61 =l copy %t60+ storel %t61, %t49+ dbgloc 163+ jmp @lbl4995+@lbl4997+ dbgloc 165+ %t62 =l loadl %t51+ %t63 =l add %t62, 1+ storel %t63, %t51+ jmp @lbl4994+@lbl4994+ jmp @lbl4992+@lbl4995+ dbgloc 167+ %t64 =l loadl %t49+ %t65 =l copy 0+ %t66 =w csgtl %t64, %t65+ jnz %t66, @lbl4999, @lbl5000+@lbl4999+ dbgloc 168+ %t67 =l copy 1+ %t68 =l loadl %t49+ %t69 =l copy %t68+ %t70 =l call $bytes__Bytes__slice(l %t31, l %t67, l %t69)+ %t71 =l call $userconfig__trim(l %t70)+ storel %t71, %t72+ call $__sx_dbg_keep(l %t72)+ dbgvar "table", "bytes.Bytes", %t72, 8, 5, 168+ dbgloc 171+ %t73 =l copy $__str254+ %t74 =l copy 4+ %t75 =l call $bytes__bytes(l %t73, l %t74)+ %t76 =w call $bytes__Bytes__eql(l %t71, l %t75)+ %t77 =w copy %t76+ %t78 =w extub %t77+ storew %t78, %t5+ jmp @lbl5000+@lbl5000+ jmp @lbl4990+@lbl4991+ dbgloc 174+ %t79 =l copy 1+ %t80 =l neg %t79+ storel %t80, %t81+ call $__sx_dbg_keep(l %t81)+ dbgvar "eq", "i64", %t81, 8, 5, 174+ dbgloc 175+ %t82 =l copy 0+ storel %t82, %t83+ call $__sx_dbg_keep(l %t83)+ dbgvar "k", "usize", %t83, 8, 5, 175+ dbgloc 176+ jmp @lbl5002+@lbl5002+ %t84 =l loadl %t83+ %t86 =l add %t31, 8+ %t85 =l loadl %t86+ %t87 =w csltl %t84, %t85+ jnz %t87, @lbl5003, @lbl5005+@lbl5003+ dbgloc 177+ %t88 =l loadl %t83+ %t89 =w call $bytes__Bytes__at(l %t31, l %t88)+ %t90 =w copy 61+ %t91 =w ceqw %t89, %t90+ jnz %t91, @lbl5006, @lbl5007+@lbl5006+ dbgloc 178+ %t92 =l loadl %t83+ %t93 =l copy %t92+ storel %t93, %t81+ dbgloc 179+ jmp @lbl5005+@lbl5007+ dbgloc 181+ %t94 =l loadl %t83+ %t95 =l add %t94, 1+ storel %t95, %t83+ jmp @lbl5004+@lbl5004+ jmp @lbl5002+@lbl5005+ dbgloc 183+ %t96 =l loadl %t81+ %t97 =l copy 0+ %t99 =w csltl %t96, %t97+ %t98 =w ceqw %t99, 0+ jnz %t98, @lbl5009, @lbl5010+@lbl5009+ dbgloc 184+ %t100 =l copy 0+ %t101 =l loadl %t81+ %t102 =l copy %t101+ %t103 =l call $bytes__Bytes__slice(l %t31, l %t100, l %t102)+ %t104 =l call $userconfig__trim(l %t103)+ storel %t104, %t105+ call $__sx_dbg_keep(l %t105)+ dbgvar "key", "bytes.Bytes", %t105, 8, 5, 184+ dbgloc 187+ %t107 =w loadw %t5+ %t106 =l extsw %t107+ %t108 =w call $userconfig__key_matches(l %t104, w %t106, w %want_name)+ jnz %t108, @lbl5012, @lbl5013+@lbl5012+ dbgloc 188+ %t109 =l loadl %t81+ %t110 =l copy %t109+ %t111 =l copy 1+ %t112 =l add %t110, %t111+ %t114 =l add %t31, 8+ %t113 =l loadl %t114+ %t115 =l call $bytes__Bytes__slice(l %t31, l %t112, l %t113)+ %t116 =l call $userconfig__trim(l %t115)+ %t117 =l call $userconfig__strip_comment(l %t116)+ storel %t117, %t118+ call $__sx_dbg_keep(l %t118)+ dbgvar "raw_value", "bytes.Bytes", %t118, 8, 5, 188+ dbgloc 191+ %t119 =l call $userconfig__unquote(l %t120, l %t117)+ storel %t120, %t121+ call $__sx_dbg_keep(l %t121)+ dbgvar "decoded", "option[bytes.Bytes]", %t121, 8, 5, 191+ dbgloc 192+ %t122 =l loadl %t120+ %t123 =w cnel %t122, 0+ jnz %t123, @lbl5015, @lbl5016+@lbl5015+ %t125 =l add %t120, 8+ %t124 =l loadl %t125+ dbgloc 193+ %t127 =l add %t124, 8+ %t126 =l loadl %t127+ %t128 =l copy 0+ %t129 =w csgtl %t126, %t128+ jnz %t129, @lbl5018, @lbl5019+@lbl5018+ dbgloc 194+ call $memset(l %t130, w 0, l 16)+ storel 1, %t130+ %t131 =l add %t130, 8+ storel %t124, %t131+ call $memcpy(l %__ret, l %t130, l 16)+ ret %__ret+@lbl5019+ jmp @lbl5017+@lbl5016+ jmp @lbl5017+@lbl5017+ jmp @lbl5013+@lbl5013+ jmp @lbl5010+@lbl5010+ jmp @lbl4990+@lbl4990+ jmp @lbl4985+@lbl4985+ dbgloc 201+ %t132 =l loadl %t7+ %t133 =l copy 1+ %t134 =l add %t132, %t133+ storel %t134, %t9+ jmp @lbl4980+@lbl4980+ dbgloc 203+ %t135 =l loadl %t7+ %t136 =l add %t135, 1+ storel %t136, %t7+ jmp @lbl4977+@lbl4977+ jmp @lbl4975+@lbl4978+ dbgloc 205+ storel 0, %t137+ call $memcpy(l %__ret, l %t137, l 16)+ ret %__ret+}++function l $userconfig__read_value(l %__ret, w %want_name) {+@start+ %t0 =l alloc8 8+ %t2 =l alloc8 16+ %t3 =l alloc8 8+ %t8 =l alloc8 8+ %t13 =l alloc8 16+ %t16 =l alloc8 16+ %t17 =l alloc8 8+ %t22 =l alloc8 8+ %t27 =l alloc8 16+ %t30 =l alloc8 16+ %t31 =l alloc8 8+ dbgloc 208+ storew %want_name, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "want_name", "bool", %t0, 1, 7, 208+ dbgloc 209+ %t1 =l call $userconfig__config_path(l %t2)+ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "path_opt", "option[str.StringView]", %t3, 8, 5, 209+ dbgloc 210+ %t4 =l copy 0+ %t5 =l copy 0+ %t6 =l call $std__str__view(l %t4, l %t5)+ %t7 =l call $malloc(l 16)+ call $memset(l %t7, w 0, l 16)+ call $memcpy(l %t7, l %t6, l 16)+ storel %t7, %t8+ call $__sx_dbg_keep(l %t8)+ dbgvar "path", "str.StringView", %t8, 8, 5, 210+ dbgloc 211+ %t9 =l loadl %t2+ %t10 =w cnel %t9, 0+ jnz %t10, @lbl5021, @lbl5022+@lbl5021+ %t12 =l add %t2, 8+ %t11 =l loadl %t12+ dbgloc 213+ storel %t11, %t8+ jmp @lbl5023+@lbl5022+ dbgloc 216+ storel 0, %t13+ call $memcpy(l %__ret, l %t13, l 16)+ ret %__ret+@lbl5023+ dbgloc 219+ %t14 =l loadl %t8+ %t15 =l call $files__read_all(l %t16, l %t14)+ storel %t16, %t17+ call $__sx_dbg_keep(l %t17)+ dbgvar "data_opt", "option[bytes.Bytes]", %t17, 8, 5, 219+ dbgloc 220+ %t18 =l loadl %t8+ %t19 =w call $files__free_path(l %t18)+ dbgloc 221+ %t20 =l call $bytes__empty()+ %t21 =l call $malloc(l 16)+ call $memset(l %t21, w 0, l 16)+ call $memcpy(l %t21, l %t20, l 16)+ storel %t21, %t22+ call $__sx_dbg_keep(l %t22)+ dbgvar "data", "bytes.Bytes", %t22, 8, 5, 221+ dbgloc 222+ %t23 =l loadl %t16+ %t24 =w cnel %t23, 0+ jnz %t24, @lbl5024, @lbl5025+@lbl5024+ %t26 =l add %t16, 8+ %t25 =l loadl %t26+ dbgloc 224+ storel %t25, %t22+ jmp @lbl5026+@lbl5025+ dbgloc 227+ storel 0, %t27+ call $memcpy(l %__ret, l %t27, l 16)+ ret %__ret+@lbl5026+ dbgloc 230+ %t28 =l loadl %t22+ %t29 =l call $userconfig__scan(l %t30, l %t28, w %want_name)+ storel %t30, %t31+ call $__sx_dbg_keep(l %t31)+ dbgvar "out", "option[bytes.Bytes]", %t31, 8, 5, 230+ dbgloc 231+ %t32 =l loadl %t22+ %t33 =w call $files__free_buffer(l %t32)+ dbgloc 232+ call $memcpy(l %__ret, l %t30, l 16)+ ret %__ret+}++export function l $userconfig__author_name(l %__ret) {+@start+ %t2 =l alloc8 16+ dbgloc 236+ dbgloc 237+ %t0 =l copy 1+ %t1 =l call $userconfig__read_value(l %t2, w %t0)+ call $memcpy(l %__ret, l %t2, l 16)+ ret %__ret+}++export function l $userconfig__author_email(l %__ret) {+@start+ %t2 =l alloc8 16+ dbgloc 241+ dbgloc 242+ %t0 =l copy 0+ %t1 =l call $userconfig__read_value(l %t2, w %t0)+ call $memcpy(l %__ret, l %t2, l 16)+ ret %__ret+}++dbgfile "src/core/identity.sx"+function l $identity__trim(l %b) {+@start+ %t0 =l alloc8 8+ %t2 =l alloc8 8+ %t5 =l alloc8 8+ %t13 =l alloc8 8+ %t16 =l alloc4 1+ %t20 =l alloc4 1+ %t24 =l alloc4 1+ %t39 =l alloc8 8+ %t42 =l alloc4 1+ %t46 =l alloc4 1+ %t50 =l alloc4 1+ dbgloc 13+ storel %b, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "b", "bytes.Bytes", %t0, 8, 5, 13+ dbgloc 14+ %t1 =l copy 0+ storel %t1, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "start", "usize", %t2, 8, 5, 14+ dbgloc 15+ %t4 =l add %b, 8+ %t3 =l loadl %t4+ storel %t3, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "end", "usize", %t5, 8, 5, 15+ dbgloc 16+ jmp @lbl5027+@lbl5027+ %t6 =l loadl %t2+ %t7 =l loadl %t5+ %t8 =w csltl %t6, %t7+ jnz %t8, @lbl5028, @lbl5030+@lbl5028+ dbgloc 17+ %t9 =l loadl %t2+ %t10 =w call $bytes__Bytes__at(l %b, l %t9)+ %t11 =w copy %t10+ %t12 =w extub %t11+ storew %t12, %t13+ call $__sx_dbg_keep(l %t13)+ dbgvar "c", "u8", %t13, 1, 7, 17+ dbgloc 18+ %t14 =w copy 32+ %t15 =w cnew %t12, %t14+ storew %t15, %t16+ jnz %t15, @lbl5034, @lbl5035+@lbl5034+ %t17 =w copy 9+ %t18 =w cnew %t12, %t17+ storew %t18, %t16+ jmp @lbl5035+@lbl5035+ %t19 =w loadw %t16+ storew %t19, %t20+ jnz %t19, @lbl5036, @lbl5037+@lbl5036+ %t21 =w copy 13+ %t22 =w cnew %t12, %t21+ storew %t22, %t20+ jmp @lbl5037+@lbl5037+ %t23 =w loadw %t20+ storew %t23, %t24+ jnz %t23, @lbl5038, @lbl5039+@lbl5038+ %t25 =w copy 10+ %t26 =w cnew %t12, %t25+ storew %t26, %t24+ jmp @lbl5039+@lbl5039+ %t27 =w loadw %t24+ jnz %t27, @lbl5031, @lbl5032+@lbl5031+ dbgloc 19+ jmp @lbl5030+@lbl5032+ dbgloc 21+ %t28 =l loadl %t2+ %t29 =l add %t28, 1+ storel %t29, %t2+ jmp @lbl5029+@lbl5029+ jmp @lbl5027+@lbl5030+ dbgloc 23+ jmp @lbl5040+@lbl5040+ %t30 =l loadl %t5+ %t31 =l loadl %t2+ %t32 =w csgtl %t30, %t31+ jnz %t32, @lbl5041, @lbl5043+@lbl5041+ dbgloc 24+ %t33 =l loadl %t5+ %t34 =l copy 1+ %t35 =l sub %t33, %t34+ %t36 =w call $bytes__Bytes__at(l %b, l %t35)+ %t37 =w copy %t36+ %t38 =w extub %t37+ storew %t38, %t39+ call $__sx_dbg_keep(l %t39)+ dbgvar "c2", "u8", %t39, 1, 7, 24+ dbgloc 25+ %t40 =w copy 32+ %t41 =w cnew %t38, %t40+ storew %t41, %t42+ jnz %t41, @lbl5047, @lbl5048+@lbl5047+ %t43 =w copy 9+ %t44 =w cnew %t38, %t43+ storew %t44, %t42+ jmp @lbl5048+@lbl5048+ %t45 =w loadw %t42+ storew %t45, %t46+ jnz %t45, @lbl5049, @lbl5050+@lbl5049+ %t47 =w copy 13+ %t48 =w cnew %t38, %t47+ storew %t48, %t46+ jmp @lbl5050+@lbl5050+ %t49 =w loadw %t46+ storew %t49, %t50+ jnz %t49, @lbl5051, @lbl5052+@lbl5051+ %t51 =w copy 10+ %t52 =w cnew %t38, %t51+ storew %t52, %t50+ jmp @lbl5052+@lbl5052+ %t53 =w loadw %t50+ jnz %t53, @lbl5044, @lbl5045+@lbl5044+ dbgloc 26+ jmp @lbl5043+@lbl5045+ dbgloc 28+ %t54 =l loadl %t5+ %t55 =l sub %t54, 1+ storel %t55, %t5+ jmp @lbl5042+@lbl5042+ jmp @lbl5040+@lbl5043+ dbgloc 30+ %t56 =l loadl %t2+ %t57 =l loadl %t5+ %t58 =l call $bytes__Bytes__slice(l %b, l %t56, l %t57)+ ret %t58+}++function l $identity__config_value(l %__ret, l %repo, l %key) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t3 =l alloc8 8+ %t5 =l alloc8 16+ %t6 =l alloc8 8+ %t13 =l alloc8 8+ %t15 =l alloc8 8+ %t26 =l alloc8 8+ %t27 =l alloc4 1+ %t37 =l alloc8 8+ %t42 =l alloc4 1+ %t50 =l alloc8 8+ %t52 =l alloc8 8+ %t77 =l alloc8 8+ %t87 =l alloc8 8+ %t89 =l alloc8 8+ %t91 =l alloc8 16+ %t99 =l alloc8 16+ dbgloc 33+ storel %repo, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "repo", "layout.Repo", %t0, 8, 5, 33+ storel %key, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "key", "bytes.Bytes", %t1, 8, 5, 33+ dbgloc 34+ %t2 =l call $layout__config_path(l %repo)+ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "path", "str.StringView", %t3, 8, 5, 34+ dbgloc 35+ %t4 =l call $files__read_all(l %t5, l %t2)+ storel %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "data_opt", "option[bytes.Bytes]", %t6, 8, 5, 35+ dbgloc 36+ %t7 =w call $files__free_path(l %t2)+ dbgloc 37+ %t8 =l loadl %t5+ %t9 =w cnel %t8, 0+ jnz %t9, @lbl5053, @lbl5054+@lbl5053+ %t11 =l add %t5, 8+ %t10 =l loadl %t11+ dbgloc 38+ %t12 =l copy 0+ storel %t12, %t13+ call $__sx_dbg_keep(l %t13)+ dbgvar "pos", "usize", %t13, 8, 5, 38+ dbgloc 39+ %t14 =l copy 0+ storel %t14, %t15+ call $__sx_dbg_keep(l %t15)+ dbgvar "start", "usize", %t15, 8, 5, 39+ dbgloc 40+ jmp @lbl5056+@lbl5056+ %t16 =l loadl %t13+ %t18 =l add %t10, 8+ %t17 =l loadl %t18+ %t19 =w cslel %t16, %t17+ jnz %t19, @lbl5057, @lbl5059+@lbl5057+ dbgloc 41+ %t20 =l loadl %t13+ %t22 =l add %t10, 8+ %t21 =l loadl %t22+ %t23 =w ceql %t20, %t21+ %t24 =w copy %t23+ %t25 =w extub %t24+ storew %t25, %t26+ call $__sx_dbg_keep(l %t26)+ dbgvar "at_end", "bool", %t26, 1, 7, 41+ dbgloc 42+ storew %t25, %t27+ jnz %t25, @lbl5064, @lbl5063+@lbl5063+ %t28 =l loadl %t13+ %t29 =w call $bytes__Bytes__at(l %t10, l %t28)+ %t30 =w copy 10+ %t31 =w ceqw %t29, %t30+ storew %t31, %t27+ jmp @lbl5064+@lbl5064+ %t32 =w loadw %t27+ jnz %t32, @lbl5060, @lbl5061+@lbl5060+ dbgloc 43+ %t33 =l loadl %t15+ %t34 =l loadl %t13+ %t35 =l call $bytes__Bytes__slice(l %t10, l %t33, l %t34)+ %t36 =l call $identity__trim(l %t35)+ storel %t36, %t37+ call $__sx_dbg_keep(l %t37)+ dbgvar "line", "bytes.Bytes", %t37, 8, 5, 43+ dbgloc 44+ %t39 =l add %t36, 8+ %t38 =l loadl %t39+ %t40 =l copy 0+ %t41 =w csgtl %t38, %t40+ storew %t41, %t42+ jnz %t41, @lbl5068, @lbl5069+@lbl5068+ %t43 =l copy 0+ %t44 =w call $bytes__Bytes__at(l %t36, l %t43)+ %t45 =w copy 35+ %t46 =w cnew %t44, %t45+ storew %t46, %t42+ jmp @lbl5069+@lbl5069+ %t47 =w loadw %t42+ jnz %t47, @lbl5065, @lbl5066+@lbl5065+ dbgloc 45+ %t48 =l copy 1+ %t49 =l neg %t48+ storel %t49, %t50+ call $__sx_dbg_keep(l %t50)+ dbgvar "eq", "i64", %t50, 8, 5, 45+ dbgloc 46+ %t51 =l copy 0+ storel %t51, %t52+ call $__sx_dbg_keep(l %t52)+ dbgvar "i", "usize", %t52, 8, 5, 46+ dbgloc 47+ jmp @lbl5070+@lbl5070+ %t53 =l loadl %t52+ %t55 =l add %t36, 8+ %t54 =l loadl %t55+ %t56 =w csltl %t53, %t54+ jnz %t56, @lbl5071, @lbl5073+@lbl5071+ dbgloc 48+ %t57 =l loadl %t52+ %t58 =w call $bytes__Bytes__at(l %t36, l %t57)+ %t59 =w copy 61+ %t60 =w ceqw %t58, %t59+ jnz %t60, @lbl5074, @lbl5075+@lbl5074+ dbgloc 49+ %t61 =l loadl %t50+ %t62 =l copy 0+ %t63 =w csltl %t61, %t62+ jnz %t63, @lbl5077, @lbl5078+@lbl5077+ dbgloc 50+ %t64 =l loadl %t52+ %t65 =l copy %t64+ storel %t65, %t50+ jmp @lbl5078+@lbl5078+ jmp @lbl5075+@lbl5075+ dbgloc 53+ %t66 =l loadl %t52+ %t67 =l add %t66, 1+ storel %t67, %t52+ jmp @lbl5072+@lbl5072+ jmp @lbl5070+@lbl5073+ dbgloc 55+ %t68 =l loadl %t50+ %t69 =l copy 0+ %t71 =w csltl %t68, %t69+ %t70 =w ceqw %t71, 0+ jnz %t70, @lbl5080, @lbl5081+@lbl5080+ dbgloc 56+ %t72 =l copy 0+ %t73 =l loadl %t50+ %t74 =l copy %t73+ %t75 =l call $bytes__Bytes__slice(l %t36, l %t72, l %t74)+ %t76 =l call $identity__trim(l %t75)+ storel %t76, %t77+ call $__sx_dbg_keep(l %t77)+ dbgvar "k", "bytes.Bytes", %t77, 8, 5, 56+ dbgloc 57+ %t78 =w call $bytes__Bytes__eql(l %t76, l %key)+ jnz %t78, @lbl5083, @lbl5084+@lbl5083+ dbgloc 58+ %t79 =l loadl %t50+ %t80 =l copy %t79+ %t81 =l copy 1+ %t82 =l add %t80, %t81+ %t84 =l add %t36, 8+ %t83 =l loadl %t84+ %t85 =l call $bytes__Bytes__slice(l %t36, l %t82, l %t83)+ %t86 =l call $identity__trim(l %t85)+ storel %t86, %t87+ call $__sx_dbg_keep(l %t87)+ dbgvar "v", "bytes.Bytes", %t87, 8, 5, 58+ dbgloc 61+ %t88 =l call $bytes__Bytes__dup(l %t86)+ storel %t88, %t89+ call $__sx_dbg_keep(l %t89)+ dbgvar "out", "bytes.Bytes", %t89, 8, 5, 61+ dbgloc 62+ %t90 =w call $files__free_buffer(l %t10)+ dbgloc 63+ call $memset(l %t91, w 0, l 16)+ storel 1, %t91+ %t92 =l add %t91, 8+ storel %t88, %t92+ call $memcpy(l %__ret, l %t91, l 16)+ ret %__ret+@lbl5084+ jmp @lbl5081+@lbl5081+ jmp @lbl5066+@lbl5066+ dbgloc 67+ %t93 =l loadl %t13+ %t94 =l copy 1+ %t95 =l add %t93, %t94+ storel %t95, %t15+ jmp @lbl5061+@lbl5061+ dbgloc 69+ %t96 =l loadl %t13+ %t97 =l add %t96, 1+ storel %t97, %t13+ jmp @lbl5058+@lbl5058+ jmp @lbl5056+@lbl5059+ dbgloc 71+ %t98 =w call $files__free_buffer(l %t10)+ jmp @lbl5055+@lbl5054+ jmp @lbl5055+@lbl5055+ dbgloc 73+ storel 0, %t99+ call $memcpy(l %__ret, l %t99, l 16)+ ret %__ret+}++function l $identity__env_dup(l %__ret, l %name) {+@start+ %t0 =l alloc8 8+ %t2 =l alloc8 16+ %t3 =l alloc8 8+ %t10 =l alloc8 16+ %t12 =l alloc8 16+ dbgloc 76+ storel %name, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "name", "ref u8", %t0, 8, 7, 76+ dbgloc 77+ %t1 =l call $std__os__env(l %t2, l %name)+ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "v", "option[ref u8]", %t3, 8, 5, 77+ dbgloc 78+ %t4 =l loadl %t2+ %t5 =w cnel %t4, 0+ jnz %t5, @lbl5086, @lbl5087+@lbl5086+ %t7 =l add %t2, 8+ %t6 =l loadl %t7+ dbgloc 80+ %t8 =l call $bytes__from_cstr(l %t6)+ %t9 =l call $bytes__Bytes__dup(l %t8)+ call $memset(l %t10, w 0, l 16)+ storel 1, %t10+ %t11 =l add %t10, 8+ storel %t9, %t11+ call $memcpy(l %__ret, l %t10, l 16)+ ret %__ret+@lbl5087+ dbgloc 83+ storel 0, %t12+ call $memcpy(l %__ret, l %t12, l 16)+ ret %__ret+@lbl5088+ ret 0+}++function l $identity__first_config(l %repo, l %key, w %want_name, l %env1, l %env2) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t3 =l alloc8 8+ %t4 =l alloc8 8+ %t6 =l alloc8 16+ %t7 =l alloc8 8+ %t12 =l alloc8 16+ %t13 =l alloc8 8+ %t15 =l alloc8 16+ %t17 =l alloc8 16+ %t24 =l alloc8 16+ %t25 =l alloc8 8+ %t31 =l alloc8 16+ %t32 =l alloc8 8+ dbgloc 88+ storel %repo, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "repo", "layout.Repo", %t0, 8, 5, 88+ storel %key, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "key", "bytes.Bytes", %t1, 8, 5, 88+ storew %want_name, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "want_name", "bool", %t2, 1, 7, 88+ storel %env1, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "env1", "ref u8", %t3, 8, 7, 88+ storel %env2, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "env2", "ref u8", %t4, 8, 7, 88+ dbgloc 95+ %t5 =l call $identity__config_value(l %t6, l %repo, l %key)+ storel %t6, %t7+ call $__sx_dbg_keep(l %t7)+ dbgvar "c", "option[bytes.Bytes]", %t7, 8, 5, 95+ dbgloc 96+ %t8 =l loadl %t6+ %t9 =w cnel %t8, 0+ jnz %t9, @lbl5089, @lbl5090+@lbl5089+ %t11 =l add %t6, 8+ %t10 =l loadl %t11+ dbgloc 97+ ret %t10+@lbl5090+ jmp @lbl5091+@lbl5091+ dbgloc 99+ storel 0, %t12+ storel %t12, %t13+ call $__sx_dbg_keep(l %t13)+ dbgvar "u", "option[bytes.Bytes]", %t13, 8, 5, 99+ dbgloc 100+ jnz %want_name, @lbl5092, @lbl5094+@lbl5092+ dbgloc 101+ %t14 =l call $userconfig__author_name(l %t15)+ storel %t15, %t13+ jmp @lbl5093+@lbl5094+ dbgloc 103+ %t16 =l call $userconfig__author_email(l %t17)+ storel %t17, %t13+ jmp @lbl5093+@lbl5093+ dbgloc 105+ %t18 =l loadl %t13+ %t19 =l loadl %t18+ %t20 =w cnel %t19, 0+ jnz %t20, @lbl5095, @lbl5096+@lbl5095+ %t22 =l add %t18, 8+ %t21 =l loadl %t22+ dbgloc 106+ ret %t21+@lbl5096+ jmp @lbl5097+@lbl5097+ dbgloc 108+ %t23 =l call $identity__env_dup(l %t24, l %env1)+ storel %t24, %t25+ call $__sx_dbg_keep(l %t25)+ dbgvar "e1", "option[bytes.Bytes]", %t25, 8, 5, 108+ dbgloc 109+ %t26 =l loadl %t24+ %t27 =w cnel %t26, 0+ jnz %t27, @lbl5098, @lbl5099+@lbl5098+ %t29 =l add %t24, 8+ %t28 =l loadl %t29+ dbgloc 110+ ret %t28+@lbl5099+ jmp @lbl5100+@lbl5100+ dbgloc 112+ %t30 =l call $identity__env_dup(l %t31, l %env2)+ storel %t31, %t32+ call $__sx_dbg_keep(l %t32)+ dbgvar "e2", "option[bytes.Bytes]", %t32, 8, 5, 112+ dbgloc 113+ %t33 =l loadl %t31+ %t34 =w cnel %t33, 0+ jnz %t34, @lbl5101, @lbl5102+@lbl5101+ %t36 =l add %t31, 8+ %t35 =l loadl %t36+ dbgloc 114+ ret %t35+@lbl5102+ jmp @lbl5103+@lbl5103+ dbgloc 116+ %t37 =l copy $__str187+ %t38 =l copy 7+ %t39 =l call $bytes__bytes(l %t37, l %t38)+ %t40 =l call $bytes__Bytes__dup(l %t39)+ ret %t40+}++export function l $identity__signature(l %repo) {+@start+ %t0 =l alloc8 8+ %t8 =l alloc8 8+ %t16 =l alloc8 8+ %t17 =l alloc8 42+ dbgloc 119+ storel %repo, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "repo", "layout.Repo", %t0, 8, 5, 119+ dbgloc 120+ %t1 =l copy $__str252+ %t2 =l copy 9+ %t3 =l call $bytes__bytes(l %t1, l %t2)+ %t4 =l copy 1+ %t5 =l copy $__str255+ %t6 =l copy $__str241+ %t7 =l call $identity__first_config(l %repo, l %t3, w %t4, l %t5, l %t6)+ storel %t7, %t8+ call $__sx_dbg_keep(l %t8)+ dbgvar "name", "bytes.Bytes", %t8, 8, 5, 120+ dbgloc 127+ %t9 =l copy $__str253+ %t10 =l copy 10+ %t11 =l call $bytes__bytes(l %t9, l %t10)+ %t12 =l copy 0+ %t13 =l copy $__str256+ %t14 =l copy $__str257+ %t15 =l call $identity__first_config(l %repo, l %t11, w %t12, l %t13, l %t14)+ storel %t15, %t16+ call $__sx_dbg_keep(l %t16)+ dbgvar "email", "bytes.Bytes", %t16, 8, 5, 127+ dbgloc 134+ %t18 =l add %t17, 0+ call $memcpy(l %t18, l %t7, l 16)+ %t19 =l add %t17, 16+ call $memcpy(l %t19, l %t15, l 16)+ %t20 =l call $std__time__unix_now()+ %t21 =l add %t17, 32+ storel %t20, %t21+ %t22 =l copy 0+ %t23 =l add %t17, 40+ storeh %t22, %t23+ %t24 =l call $malloc(l 42)+ call $memcpy(l %t24, l %t17, l 42)+ ret %t24+}++export function w $identity__free_sig(l %s) {+@start+ %t0 =l alloc8 8+ %t8 =l alloc8 8+ %t18 =l alloc8 8+ dbgloc 142+ storel %s, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "s", "prim.Sig", %t0, 8, 5, 142+ dbgloc 143+ %t1 =l add %s, 0+ %t2 =l loadl %t1+ %t3 =l copy 0+ %t4 =w cnel %t2, %t3+ jnz %t4, @lbl5104, @lbl5105+@lbl5104+ dbgloc 144+ %t5 =l add %s, 0+ %t6 =l loadl %t5+ %t7 =l copy %t6+ storel %t7, %t8+ call $__sx_dbg_keep(l %t8)+ dbgvar "np", "ref ", %t8, 8, 7, 144+ dbgloc 145+ %t10 =l loadl %t8+ call $free(l %t10)+ %t9 =l copy 0+ jmp @lbl5105+@lbl5105+ dbgloc 147+ %t11 =l add %s, 16+ %t12 =l loadl %t11+ %t13 =l copy 0+ %t14 =w cnel %t12, %t13+ jnz %t14, @lbl5107, @lbl5108+@lbl5107+ dbgloc 148+ %t15 =l add %s, 16+ %t16 =l loadl %t15+ %t17 =l copy %t16+ storel %t17, %t18+ call $__sx_dbg_keep(l %t18)+ dbgvar "ep", "ref ", %t18, 8, 7, 148+ dbgloc 149+ %t20 =l loadl %t18+ call $free(l %t20)+ %t19 =l copy 0+ jmp @lbl5108+@lbl5108+ ret 0+}++dbgfile "src/git/object.sx"+export function l $object__error_name(l %e) {+@start+ %t0 =l alloc8 8+ dbgloc 23+ storel %e, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "e", "GitError", %t0, 8, 5, 23+ dbgloc 24+ %t1 =w ceql %e, 0+ jnz %t1, @lbl5111, @lbl5112+@lbl5111+ dbgloc 26+ ret $__sv89+@lbl5112+ %t2 =w ceql %e, 1+ jnz %t2, @lbl5113, @lbl5114+@lbl5113+ dbgloc 29+ ret $__sv97+@lbl5114+ %t3 =w ceql %e, 2+ jnz %t3, @lbl5115, @lbl5116+@lbl5115+ dbgloc 32+ ret $__sv98+@lbl5116+ %t4 =w ceql %e, 3+ jnz %t4, @lbl5117, @lbl5118+@lbl5117+ dbgloc 35+ ret $__sv99+@lbl5118+ %t5 =w ceql %e, 4+ jnz %t5, @lbl5119, @lbl5120+@lbl5119+ dbgloc 38+ ret $__sv100+@lbl5120+ %t6 =w ceql %e, 5+ jnz %t6, @lbl5121, @lbl5122+@lbl5121+ dbgloc 41+ ret $__sv101+@lbl5122+@lbl5110+ dbgloc 44+ ret $__sv102+}++data $object__KIND_COMMIT = { l 1 }+data $object__KIND_TREE = { l 2 }+data $object__KIND_BLOB = { l 3 }+data $object__KIND_TAG = { l 4 }+data $object__KIND_OFS_DELTA = { l 6 }+data $object__KIND_REF_DELTA = { l 7 }+export function w $object__free_object(l %o) {+@start+ %t0 =l alloc8 8+ %t8 =l alloc8 8+ dbgloc 60+ storel %o, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "o", "Object", %t0, 8, 5, 60+ dbgloc 61+ %t1 =l add %o, 17+ %t2 =l loadl %t1+ %t3 =l copy 0+ %t4 =w cnel %t2, %t3+ jnz %t4, @lbl5123, @lbl5124+@lbl5123+ dbgloc 62+ %t5 =l add %o, 17+ %t6 =l loadl %t5+ %t7 =l copy %t6+ storel %t7, %t8+ call $__sx_dbg_keep(l %t8)+ dbgvar "p", "ref ", %t8, 8, 7, 62+ dbgloc 63+ %t10 =l loadl %t8+ call $free(l %t10)+ %t9 =l copy 0+ jmp @lbl5124+@lbl5124+ ret 0+}++data $object__CACHE_MIN = { l 0 }+data $object__CACHE_MAX_BYTES = { l 536870912 }+data $object__CACHE_MAX_ENTRIES = { l 32768 }+data $object__CACHE_MAP_CAP = { l 262144 }+function w $object__be32_at(l %data, l %off) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t5 =l alloc8 8+ dbgloc 104+ storel %data, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "data", "bytes.Bytes", %t0, 8, 5, 104+ storel %off, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "off", "usize", %t1, 8, 5, 104+ dbgloc 105+ %t3 =l loadl %data+ %t4 =l copy %off+ %t2 =l add %t3, %t4+ storel %t2, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "p", "ref u8", %t5, 8, 7, 105+ dbgloc 106+ %t7 =w loadub %t2+ %t6 =l extsw %t7+ %t8 =l extsw %t6+ %t9 =l copy 24+ %t11 =l extsw %t8+ %t10 =l shl %t11, %t9+ %t14 =l copy 1+ %t13 =l add %t2, %t14+ %t15 =w loadub %t13+ %t12 =l extsw %t15+ %t16 =l extsw %t12+ %t17 =l copy 16+ %t19 =l extsw %t16+ %t18 =l shl %t19, %t17+ %t20 =l or %t10, %t18+ %t23 =l copy 2+ %t22 =l add %t2, %t23+ %t24 =w loadub %t22+ %t21 =l extsw %t24+ %t25 =l extsw %t21+ %t26 =l copy 8+ %t28 =l extsw %t25+ %t27 =l shl %t28, %t26+ %t29 =l or %t20, %t27+ %t32 =l copy 3+ %t31 =l add %t2, %t32+ %t33 =w loadub %t31+ %t30 =l extsw %t33+ %t34 =l extsw %t30+ %t36 =l extsw %t34+ %t35 =l or %t29, %t36+ %t37 =w copy %t35+ ret %t37+}++function l $object__be64_at(l %data, l %off) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t5 =l alloc8 8+ %t35 =l alloc8 8+ %t65 =l alloc8 8+ dbgloc 110+ storel %data, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "data", "bytes.Bytes", %t0, 8, 5, 110+ storel %off, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "off", "usize", %t1, 8, 5, 110+ dbgloc 111+ %t3 =l loadl %data+ %t4 =l copy %off+ %t2 =l add %t3, %t4+ storel %t2, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "p", "ref u8", %t5, 8, 7, 111+ dbgloc 112+ %t7 =w loadub %t2+ %t6 =l extsw %t7+ %t8 =l copy %t6+ %t9 =l copy 56+ %t10 =l shl %t8, %t9+ %t13 =l copy 1+ %t12 =l add %t2, %t13+ %t14 =w loadub %t12+ %t11 =l extsw %t14+ %t15 =l copy %t11+ %t16 =l copy 48+ %t17 =l shl %t15, %t16+ %t18 =l or %t10, %t17+ %t21 =l copy 2+ %t20 =l add %t2, %t21+ %t22 =w loadub %t20+ %t19 =l extsw %t22+ %t23 =l copy %t19+ %t24 =l copy 40+ %t25 =l shl %t23, %t24+ %t26 =l or %t18, %t25+ %t29 =l copy 3+ %t28 =l add %t2, %t29+ %t30 =w loadub %t28+ %t27 =l extsw %t30+ %t31 =l copy %t27+ %t32 =l copy 32+ %t33 =l shl %t31, %t32+ %t34 =l or %t26, %t33+ storel %t34, %t35+ call $__sx_dbg_keep(l %t35)+ dbgvar "hi", "u64", %t35, 8, 7, 112+ dbgloc 114+ %t38 =l copy 4+ %t37 =l add %t2, %t38+ %t39 =w loadub %t37+ %t36 =l extsw %t39+ %t40 =l copy %t36+ %t41 =l copy 24+ %t42 =l shl %t40, %t41+ %t45 =l copy 5+ %t44 =l add %t2, %t45+ %t46 =w loadub %t44+ %t43 =l extsw %t46+ %t47 =l copy %t43+ %t48 =l copy 16+ %t49 =l shl %t47, %t48+ %t50 =l or %t42, %t49+ %t53 =l copy 6+ %t52 =l add %t2, %t53+ %t54 =w loadub %t52+ %t51 =l extsw %t54+ %t55 =l copy %t51+ %t56 =l copy 8+ %t57 =l shl %t55, %t56+ %t58 =l or %t50, %t57+ %t61 =l copy 7+ %t60 =l add %t2, %t61+ %t62 =w loadub %t60+ %t59 =l extsw %t62+ %t63 =l copy %t59+ %t64 =l or %t58, %t63+ storel %t64, %t65+ call $__sx_dbg_keep(l %t65)+ dbgvar "lo", "u64", %t65, 8, 7, 114+ dbgloc 116+ %t66 =l or %t34, %t64+ ret %t66+}++function l $object__sha1_of(l %__ret, l %data) {+@start+ %t0 =l alloc8 8+ %t4 =l alloc8 8+ %t9 =l alloc8 8+ %t14 =l alloc8 16+ %t17 =l alloc8 16+ dbgloc 121+ storel %data, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "data", "bytes.Bytes", %t0, 8, 5, 121+ dbgloc 122+ %t2 =l copy 20+ %t1 =l call $malloc(l %t2)+ %t3 =l copy %t1+ storel %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "out", "ref u8", %t4, 8, 7, 122+ dbgloc 123+ %t5 =l loadl %data+ %t7 =l add %data, 8+ %t6 =l loadl %t7+ %t8 =l call $SHA1(l %t5, l %t6, l %t3)+ storel %t8, %t9+ call $__sx_dbg_keep(l %t9)+ dbgvar "r", "ref u8", %t9, 8, 7, 123+ dbgloc 124+ %t10 =l copy 0+ %t11 =w ceql %t8, %t10+ jnz %t11, @lbl5126, @lbl5127+@lbl5126+ dbgloc 125+ %t13 =l copy %t3+ call $free(l %t13)+ %t12 =l copy 0+ dbgloc 126+ storel 0, %t14+ call $memcpy(l %__ret, l %t14, l 16)+ ret %__ret+@lbl5127+ dbgloc 128+ %t15 =l copy 20+ %t16 =l call $bytes__bytes(l %t3, l %t15)+ call $memset(l %t17, w 0, l 16)+ storel 1, %t17+ %t18 =l add %t17, 8+ storel %t16, %t18+ call $memcpy(l %__ret, l %t17, l 16)+ ret %__ret+}++export function w $object__free_digest(l %d) {+@start+ %t0 =l alloc8 8+ %t6 =l alloc8 8+ dbgloc 131+ storel %d, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "d", "bytes.Bytes", %t0, 8, 5, 131+ dbgloc 132+ %t1 =l loadl %d+ %t2 =l copy 0+ %t3 =w cnel %t1, %t2+ jnz %t3, @lbl5129, @lbl5130+@lbl5129+ dbgloc 133+ %t4 =l loadl %d+ %t5 =l copy %t4+ storel %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "p", "ref ", %t6, 8, 7, 133+ dbgloc 134+ %t8 =l loadl %t6+ call $free(l %t8)+ %t7 =l copy 0+ jmp @lbl5130+@lbl5130+ ret 0+}++function w $object__put_decimal(l %b, l %v) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t11 =l alloc8 8+ %t13 =l alloc8 8+ %t14 =l alloc8 8+ %t33 =l alloc8 8+ dbgloc 138+ storel %b, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "b", "buf.Buf", %t0, 8, 5, 138+ storel %v, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "v", "u64", %t1, 8, 7, 138+ dbgloc 139+ %t2 =l copy 0+ %t3 =w ceql %v, %t2+ jnz %t3, @lbl5132, @lbl5133+@lbl5132+ dbgloc 140+ %t4 =l loadl %t0+ %t5 =l copy 48+ %t7 =w copy %t5+ %t6 =w call $buf__Buf__put_u8(l %t4, w %t7)+ dbgloc 141+ ret 0+@lbl5133+ dbgloc 143+ %t9 =l copy 24+ %t8 =l call $malloc(l %t9)+ %t10 =l copy %t8+ storel %t10, %t11+ call $__sx_dbg_keep(l %t11)+ dbgvar "tmp", "ref u8", %t11, 8, 7, 143+ dbgloc 144+ %t12 =l copy 0+ storel %t12, %t13+ call $__sx_dbg_keep(l %t13)+ dbgvar "n", "usize", %t13, 8, 5, 144+ dbgloc 145+ storel %v, %t14+ call $__sx_dbg_keep(l %t14)+ dbgvar "x", "u64", %t14, 8, 7, 145+ dbgloc 146+ jmp @lbl5135+@lbl5135+ %t15 =l loadl %t14+ %t16 =l copy 0+ %t17 =w csgtl %t15, %t16+ jnz %t17, @lbl5136, @lbl5138+@lbl5136+ dbgloc 147+ %t20 =l loadl %t13+ %t21 =l copy %t20+ %t19 =l add %t10, %t21+ %t22 =l copy 48+ %t23 =l loadl %t14+ %t24 =l copy 10+ %t25 =l rem %t23, %t24+ %t26 =l add %t22, %t25+ storeb %t26, %t19+ %t18 =l copy 0+ dbgloc 148+ %t27 =l loadl %t14+ %t28 =l copy 10+ %t29 =l div %t27, %t28+ storel %t29, %t14+ dbgloc 149+ %t30 =l loadl %t13+ %t31 =l add %t30, 1+ storel %t31, %t13+ jmp @lbl5137+@lbl5137+ jmp @lbl5135+@lbl5138+ dbgloc 151+ %t32 =l loadl %t13+ storel %t32, %t33+ call $__sx_dbg_keep(l %t33)+ dbgvar "i", "usize", %t33, 8, 5, 151+ dbgloc 152+ jmp @lbl5139+@lbl5139+ %t34 =l loadl %t33+ %t35 =l copy 0+ %t36 =w csgtl %t34, %t35+ jnz %t36, @lbl5140, @lbl5142+@lbl5140+ dbgloc 153+ %t37 =l loadl %t33+ %t38 =l sub %t37, 1+ storel %t38, %t33+ dbgloc 154+ %t39 =l loadl %t0+ %t42 =l loadl %t33+ %t43 =l copy %t42+ %t41 =l add %t10, %t43+ %t44 =w loadub %t41+ %t40 =l extsw %t44+ %t46 =w copy %t40+ %t45 =w call $buf__Buf__put_u8(l %t39, w %t46)+ jmp @lbl5141+@lbl5141+ jmp @lbl5139+@lbl5142+ dbgloc 156+ %t48 =l copy %t10+ call $free(l %t48)+ %t47 =l copy 0+ ret 0+}++function l $object__kind_name(w %kind) {+@start+ %t0 =l alloc8 8+ dbgloc 159+ storew %kind, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "kind", "u8", %t0, 1, 7, 159+ dbgloc 160+ %t1 =w copy 1+ %t2 =w ceqw %kind, %t1+ jnz %t2, @lbl5143, @lbl5144+@lbl5143+ dbgloc 161+ ret $__sv72+@lbl5144+ dbgloc 163+ %t3 =w copy 2+ %t4 =w ceqw %kind, %t3+ jnz %t4, @lbl5146, @lbl5147+@lbl5146+ dbgloc 164+ ret $__sv71+@lbl5147+ dbgloc 166+ %t5 =w copy 3+ %t6 =w ceqw %kind, %t5+ jnz %t6, @lbl5149, @lbl5150+@lbl5149+ dbgloc 167+ ret $__sv70+@lbl5150+ dbgloc 169+ %t7 =w copy 4+ %t8 =w ceqw %kind, %t7+ jnz %t8, @lbl5152, @lbl5153+@lbl5152+ dbgloc 170+ ret $__sv103+@lbl5153+ dbgloc 172+ ret $__sv76+}++function w $object__kind_from_name(l %name) {+@start+ %t0 =l alloc8 8+ dbgloc 175+ storel %name, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "name", "bytes.Bytes", %t0, 8, 5, 175+ dbgloc 176+ %t1 =l copy $__str183+ %t2 =l copy 6+ %t3 =l call $bytes__bytes(l %t1, l %t2)+ %t4 =w call $bytes__Bytes__eql(l %name, l %t3)+ jnz %t4, @lbl5155, @lbl5156+@lbl5155+ dbgloc 177+ %t5 =l copy 1+ %t6 =w copy %t5+ ret %t6+@lbl5156+ dbgloc 179+ %t7 =l copy $__str182+ %t8 =l copy 4+ %t9 =l call $bytes__bytes(l %t7, l %t8)+ %t10 =w call $bytes__Bytes__eql(l %name, l %t9)+ jnz %t10, @lbl5158, @lbl5159+@lbl5158+ dbgloc 180+ %t11 =l copy 2+ %t12 =w copy %t11+ ret %t12+@lbl5159+ dbgloc 182+ %t13 =l copy $__str181+ %t14 =l copy 4+ %t15 =l call $bytes__bytes(l %t13, l %t14)+ %t16 =w call $bytes__Bytes__eql(l %name, l %t15)+ jnz %t16, @lbl5161, @lbl5162+@lbl5161+ dbgloc 183+ %t17 =l copy 3+ %t18 =w copy %t17+ ret %t18+@lbl5162+ dbgloc 185+ %t19 =l copy $__str264+ %t20 =l copy 3+ %t21 =l call $bytes__bytes(l %t19, l %t20)+ %t22 =w call $bytes__Bytes__eql(l %name, l %t21)+ jnz %t22, @lbl5164, @lbl5165+@lbl5164+ dbgloc 186+ %t23 =l copy 4+ %t24 =w copy %t23+ ret %t24+@lbl5165+ dbgloc 188+ %t25 =l copy 0+ %t26 =w copy %t25+ ret %t26+}++export function l $object__object_hash(l %__ret, w %kind, l %body) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t8 =l alloc8 8+ %t32 =l alloc8 16+ %t33 =l alloc8 8+ dbgloc 192+ storew %kind, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "kind", "u8", %t0, 1, 7, 192+ storel %body, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "body", "bytes.Bytes", %t1, 8, 5, 192+ dbgloc 193+ %t3 =l add %body, 8+ %t2 =l loadl %t3+ %t4 =l copy 32+ %t5 =l add %t2, %t4+ %t6 =l call $buf__new(l %t5)+ %t7 =l call $malloc(l 24)+ call $memset(l %t7, w 0, l 24)+ call $memcpy(l %t7, l %t6, l 24)+ storel %t7, %t8+ call $__sx_dbg_keep(l %t8)+ dbgvar "b", "buf.Buf", %t8, 8, 5, 193+ dbgloc 194+ %t9 =l loadl %t8+ %t10 =l call $object__kind_name(w %kind)+ %t11 =l loadl %t10+ %t12 =l call $bytes__from_cstr(l %t11)+ %t13 =w call $buf__Buf__put_bytes(l %t9, l %t12)+ dbgloc 195+ %t14 =l loadl %t8+ %t15 =l copy 32+ %t17 =w copy %t15+ %t16 =w call $buf__Buf__put_u8(l %t14, w %t17)+ dbgloc 196+ %t18 =l loadl %t8+ %t20 =l add %body, 8+ %t19 =l loadl %t20+ %t21 =l copy %t19+ %t22 =w call $object__put_decimal(l %t18, l %t21)+ dbgloc 197+ %t23 =l loadl %t8+ %t24 =l copy 0+ %t26 =w copy %t24+ %t25 =w call $buf__Buf__put_u8(l %t23, w %t26)+ dbgloc 198+ %t27 =l loadl %t8+ %t28 =w call $buf__Buf__put_bytes(l %t27, l %body)+ dbgloc 199+ %t29 =l loadl %t8+ %t30 =l call $buf__Buf__view(l %t29)+ %t31 =l call $object__sha1_of(l %t32, l %t30)+ storel %t32, %t33+ call $__sx_dbg_keep(l %t33)+ dbgvar "out", "option[bytes.Bytes]", %t33, 8, 5, 199+ dbgloc 200+ %t34 =l loadl %t8+ %t35 =w call $buf__Buf__free(l %t34)+ dbgloc 201+ call $memcpy(l %__ret, l %t32, l 16)+ ret %__ret+}++function w $object__verify_hash(l %oid, w %kind, l %body) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t4 =l alloc8 16+ %t5 =l alloc8 8+ %t13 =l alloc8 8+ dbgloc 204+ storel %oid, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "oid", "bytes.Bytes", %t0, 8, 5, 204+ storew %kind, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "kind", "u8", %t1, 1, 7, 204+ storel %body, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "body", "bytes.Bytes", %t2, 8, 5, 204+ dbgloc 205+ %t3 =l call $object__object_hash(l %t4, w %kind, l %body)+ storel %t4, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "got", "option[bytes.Bytes]", %t5, 8, 5, 205+ dbgloc 206+ %t6 =l loadl %t4+ %t7 =w cnel %t6, 0+ jnz %t7, @lbl5167, @lbl5168+@lbl5167+ %t9 =l add %t4, 8+ %t8 =l loadl %t9+ dbgloc 208+ %t10 =w call $bytes__Bytes__eql(l %t8, l %oid)+ %t11 =w copy %t10+ %t12 =w extub %t11+ storew %t12, %t13+ call $__sx_dbg_keep(l %t13)+ dbgvar "same", "bool", %t13, 1, 7, 208+ dbgloc 209+ %t14 =w call $object__free_digest(l %t8)+ dbgloc 210+ ret %t12+@lbl5168+ dbgloc 213+ %t15 =l copy 0+ ret %t15+@lbl5169+ ret 0+}++function l $object__inflate_exact(l %__ret, l %input, l %expected) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t4 =l alloc8 8+ %t7 =l alloc8 8+ %t11 =l alloc8 8+ %t21 =l alloc8 8+ %t25 =l alloc8 8+ %t30 =l alloc4 1+ %t36 =l alloc8 16+ %t38 =l alloc8 16+ dbgloc 218+ storel %input, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "input", "bytes.Bytes", %t0, 8, 5, 218+ storel %expected, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "expected", "usize", %t1, 8, 5, 218+ dbgloc 219+ %t2 =l copy 1+ %t3 =l add %expected, %t2+ storel %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "cap", "usize", %t4, 8, 5, 219+ dbgloc 220+ %t5 =l call $malloc(l %t3)+ %t6 =l copy %t5+ storel %t6, %t7+ call $__sx_dbg_keep(l %t7)+ dbgvar "dst", "ref u8", %t7, 8, 7, 220+ dbgloc 221+ %t9 =l copy 8+ %t8 =l call $malloc(l %t9)+ %t10 =l copy %t8+ storel %t10, %t11+ call $__sx_dbg_keep(l %t11)+ dbgvar "dest_len", "ref u64", %t11, 8, 7, 221+ dbgloc 222+ %t13 =l copy %t10+ %t14 =l copy %expected+ storel %t14, %t13+ %t12 =l copy 0+ dbgloc 223+ %t15 =l loadl %input+ %t17 =l add %input, 8+ %t16 =l loadl %t17+ %t18 =l copy %t16+ %t19 =w call $uncompress(l %t6, l %t10, l %t15, l %t18)+ %t20 =w copy %t19+ storew %t20, %t21+ call $__sx_dbg_keep(l %t21)+ dbgvar "rc", "i32", %t21, 4, 5, 223+ dbgloc 229+ %t23 =l copy %t10+ %t22 =l loadl %t23+ %t24 =l copy %t22+ storel %t24, %t25+ call $__sx_dbg_keep(l %t25)+ dbgvar "got", "u64", %t25, 8, 7, 229+ dbgloc 230+ %t27 =l copy %t10+ call $free(l %t27)+ %t26 =l copy 0+ dbgloc 231+ %t28 =w copy 0+ %t29 =w cnew %t20, %t28+ storew %t29, %t30+ jnz %t29, @lbl5174, @lbl5173+@lbl5173+ %t31 =l copy %expected+ %t32 =w cnel %t24, %t31+ storew %t32, %t30+ jmp @lbl5174+@lbl5174+ %t33 =w loadw %t30+ jnz %t33, @lbl5170, @lbl5171+@lbl5170+ dbgloc 232+ %t35 =l copy %t6+ call $free(l %t35)+ %t34 =l copy 0+ dbgloc 233+ storel 0, %t36+ call $memcpy(l %__ret, l %t36, l 16)+ ret %__ret+@lbl5171+ dbgloc 235+ %t37 =l call $bytes__bytes(l %t6, l %expected)+ call $memset(l %t38, w 0, l 16)+ storel 1, %t38+ %t39 =l add %t38, 8+ storel %t37, %t39+ call $memcpy(l %__ret, l %t38, l 16)+ ret %__ret+}++function l $object__inflate_unknown(l %__ret, l %input) {+@start+ %t0 =l alloc8 8+ %t7 =l alloc8 8+ %t16 =l alloc8 8+ %t20 =l alloc8 8+ %t31 =l alloc8 8+ %t35 =l alloc8 8+ %t42 =l alloc8 16+ %t51 =l alloc8 16+ %t55 =l alloc8 16+ dbgloc 238+ storel %input, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "input", "bytes.Bytes", %t0, 8, 5, 238+ dbgloc 239+ %t2 =l add %input, 8+ %t1 =l loadl %t2+ %t3 =l copy 3+ %t4 =l mul %t1, %t3+ %t5 =l copy 4096+ %t6 =l add %t4, %t5+ storel %t6, %t7+ call $__sx_dbg_keep(l %t7)+ dbgvar "base", "usize", %t7, 8, 5, 239+ dbgloc 240+ jmp @lbl5175+@lbl5175+ %t8 =l loadl %t7+ %t9 =l copy 1073741824+ %t10 =w cslel %t8, %t9+ jnz %t10, @lbl5176, @lbl5178+@lbl5176+ dbgloc 241+ %t12 =l loadl %t7+ %t13 =l copy 1+ %t14 =l add %t12, %t13+ %t11 =l call $malloc(l %t14)+ %t15 =l copy %t11+ storel %t15, %t16+ call $__sx_dbg_keep(l %t16)+ dbgvar "dst", "ref u8", %t16, 8, 7, 241+ dbgloc 242+ %t18 =l copy 8+ %t17 =l call $malloc(l %t18)+ %t19 =l copy %t17+ storel %t19, %t20+ call $__sx_dbg_keep(l %t20)+ dbgvar "dest_len", "ref u64", %t20, 8, 7, 242+ dbgloc 243+ %t22 =l copy %t19+ %t23 =l loadl %t7+ %t24 =l copy %t23+ storel %t24, %t22+ %t21 =l copy 0+ dbgloc 244+ %t25 =l loadl %input+ %t27 =l add %input, 8+ %t26 =l loadl %t27+ %t28 =l copy %t26+ %t29 =w call $uncompress(l %t15, l %t19, l %t25, l %t28)+ %t30 =w copy %t29+ storew %t30, %t31+ call $__sx_dbg_keep(l %t31)+ dbgvar "rc", "i32", %t31, 4, 5, 244+ dbgloc 245+ %t33 =l copy %t19+ %t32 =l loadl %t33+ %t34 =l copy %t32+ storel %t34, %t35+ call $__sx_dbg_keep(l %t35)+ dbgvar "got", "u64", %t35, 8, 7, 245+ dbgloc 246+ %t37 =l copy %t19+ call $free(l %t37)+ %t36 =l copy 0+ dbgloc 247+ %t38 =w copy 0+ %t39 =w ceqw %t30, %t38+ jnz %t39, @lbl5179, @lbl5180+@lbl5179+ dbgloc 248+ %t40 =l copy %t34+ %t41 =l call $bytes__bytes(l %t15, l %t40)+ call $memset(l %t42, w 0, l 16)+ storel 1, %t42+ %t43 =l add %t42, 8+ storel %t41, %t43+ call $memcpy(l %__ret, l %t42, l 16)+ ret %__ret+@lbl5180+ dbgloc 250+ %t45 =l copy %t15+ call $free(l %t45)+ %t44 =l copy 0+ dbgloc 251+ %t46 =l extsw %t30+ %t47 =l copy 5+ %t48 =l neg %t47+ %t50 =l extsw %t46+ %t49 =w cnel %t50, %t48+ jnz %t49, @lbl5182, @lbl5183+@lbl5182+ dbgloc 252+ storel 0, %t51+ call $memcpy(l %__ret, l %t51, l 16)+ ret %__ret+@lbl5183+ dbgloc 254+ %t52 =l loadl %t7+ %t53 =l copy 2+ %t54 =l mul %t52, %t53+ storel %t54, %t7+ jmp @lbl5177+@lbl5177+ jmp @lbl5175+@lbl5178+ dbgloc 256+ storel 0, %t55+ call $memcpy(l %__ret, l %t55, l 16)+ ret %__ret+}++function w $object__hex_digit(w %n) {+@start+ %t0 =l alloc8 8+ dbgloc 259+ storew %n, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "n", "u8", %t0, 1, 7, 259+ dbgloc 260+ %t1 =w copy 10+ %t2 =w csltw %n, %t1+ jnz %t2, @lbl5185, @lbl5186+@lbl5185+ dbgloc 261+ %t3 =l copy 48+ %t4 =l extsw %n+ %t6 =l extsw %t4+ %t5 =l add %t3, %t6+ ret %t5+@lbl5186+ dbgloc 263+ %t7 =l copy 87+ %t8 =l extsw %n+ %t10 =l extsw %t8+ %t9 =l add %t7, %t10+ ret %t9+}++function l $object__oid_hex(l %oid) {+@start+ %t0 =l alloc8 8+ %t4 =l alloc8 8+ %t6 =l alloc8 8+ %t14 =l alloc8 8+ dbgloc 266+ storel %oid, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "oid", "bytes.Bytes", %t0, 8, 5, 266+ dbgloc 267+ %t2 =l copy 41+ %t1 =l call $malloc(l %t2)+ %t3 =l copy %t1+ storel %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "out", "ref u8", %t4, 8, 7, 267+ dbgloc 268+ %t5 =l copy 0+ storel %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "i", "usize", %t6, 8, 5, 268+ dbgloc 269+ jmp @lbl5188+@lbl5188+ %t7 =l loadl %t6+ %t8 =l copy 20+ %t9 =w csltl %t7, %t8+ jnz %t9, @lbl5189, @lbl5191+@lbl5189+ dbgloc 270+ %t10 =l loadl %t6+ %t11 =w call $bytes__Bytes__at(l %oid, l %t10)+ %t12 =w copy %t11+ %t13 =w extub %t12+ storew %t13, %t14+ call $__sx_dbg_keep(l %t14)+ dbgvar "v", "u8", %t14, 1, 7, 270+ dbgloc 271+ %t17 =l loadl %t6+ %t18 =l copy 2+ %t19 =l mul %t17, %t18+ %t20 =l copy %t19+ %t16 =l add %t3, %t20+ %t21 =l extsw %t13+ %t22 =l copy 4+ %t24 =l extuw %t21+ %t23 =l shr %t24, %t22+ %t26 =w copy %t23+ %t25 =w call $object__hex_digit(w %t26)+ storeb %t25, %t16+ %t15 =l copy 0+ dbgloc 272+ %t29 =l loadl %t6+ %t30 =l copy 2+ %t31 =l mul %t29, %t30+ %t32 =l copy 1+ %t33 =l add %t31, %t32+ %t34 =l copy %t33+ %t28 =l add %t3, %t34+ %t35 =l extsw %t13+ %t36 =l copy 15+ %t38 =l extsw %t35+ %t37 =l and %t38, %t36+ %t40 =w copy %t37+ %t39 =w call $object__hex_digit(w %t40)+ storeb %t39, %t28+ %t27 =l copy 0+ dbgloc 273+ %t41 =l loadl %t6+ %t42 =l add %t41, 1+ storel %t42, %t6+ jmp @lbl5190+@lbl5190+ jmp @lbl5188+@lbl5191+ dbgloc 275+ %t45 =l copy 40+ %t44 =l add %t3, %t45+ %t46 =l copy 0+ storeb %t46, %t44+ %t43 =l copy 0+ dbgloc 276+ ret %t3+}++function l $object__read_be_varint(l %__ret, l %data, l %start) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t6 =l alloc8 16+ %t10 =l alloc8 8+ %t16 =l alloc8 8+ %t18 =l alloc8 8+ %t21 =l alloc8 8+ %t30 =l alloc8 8+ %t38 =l alloc8 16+ %t43 =l alloc8 8+ %t71 =l alloc8 16+ dbgloc 284+ storel %data, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "data", "bytes.Bytes", %t0, 8, 5, 284+ storel %start, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "start", "usize", %t1, 8, 5, 284+ dbgloc 285+ %t3 =l add %data, 8+ %t2 =l loadl %t3+ %t5 =w csltl %start, %t2+ %t4 =w ceqw %t5, 0+ jnz %t4, @lbl5192, @lbl5193+@lbl5192+ dbgloc 286+ storel 0, %t6+ call $memcpy(l %__ret, l %t6, l 16)+ ret %__ret+@lbl5193+ dbgloc 288+ %t7 =w call $bytes__Bytes__at(l %data, l %start)+ %t8 =w copy %t7+ %t9 =w extub %t8+ storew %t9, %t10+ call $__sx_dbg_keep(l %t10)+ dbgvar "c0", "u8", %t10, 1, 7, 288+ dbgloc 289+ %t11 =l extsw %t9+ %t12 =l copy 15+ %t14 =l extsw %t11+ %t13 =l and %t14, %t12+ %t15 =l copy %t13+ storel %t15, %t16+ call $__sx_dbg_keep(l %t16)+ dbgvar "size", "u64", %t16, 8, 7, 289+ dbgloc 290+ %t17 =l copy 4+ storel %t17, %t18+ call $__sx_dbg_keep(l %t18)+ dbgvar "shift", "u64", %t18, 8, 7, 290+ dbgloc 291+ %t19 =l copy 1+ %t20 =l add %start, %t19+ storel %t20, %t21+ call $__sx_dbg_keep(l %t21)+ dbgvar "i", "usize", %t21, 8, 5, 291+ dbgloc 292+ %t22 =l extsw %t9+ %t23 =l copy 128+ %t25 =l extsw %t22+ %t24 =l and %t25, %t23+ %t26 =l copy 0+ %t27 =w cnel %t24, %t26+ %t28 =w copy %t27+ %t29 =w extub %t28+ storew %t29, %t30+ call $__sx_dbg_keep(l %t30)+ dbgvar "more", "bool", %t30, 1, 7, 292+ dbgloc 293+ jmp @lbl5195+@lbl5195+ %t32 =w loadw %t30+ %t31 =l extsw %t32+ jnz %t31, @lbl5196, @lbl5198+@lbl5196+ dbgloc 294+ %t33 =l loadl %t21+ %t35 =l add %data, 8+ %t34 =l loadl %t35+ %t37 =w csltl %t33, %t34+ %t36 =w ceqw %t37, 0+ jnz %t36, @lbl5199, @lbl5200+@lbl5199+ dbgloc 295+ storel 0, %t38+ call $memcpy(l %__ret, l %t38, l 16)+ ret %__ret+@lbl5200+ dbgloc 297+ %t39 =l loadl %t21+ %t40 =w call $bytes__Bytes__at(l %data, l %t39)+ %t41 =w copy %t40+ %t42 =w extub %t41+ storew %t42, %t43+ call $__sx_dbg_keep(l %t43)+ dbgvar "c", "u8", %t43, 1, 7, 297+ dbgloc 298+ %t44 =l loadl %t21+ %t45 =l add %t44, 1+ storel %t45, %t21+ dbgloc 299+ %t46 =l loadl %t16+ %t47 =l extsw %t42+ %t48 =l copy 127+ %t50 =l extsw %t47+ %t49 =l and %t50, %t48+ %t51 =l copy %t49+ %t52 =l loadl %t18+ %t53 =l shl %t51, %t52+ %t54 =l or %t46, %t53+ storel %t54, %t16+ dbgloc 300+ %t55 =l loadl %t18+ %t56 =l copy 7+ %t57 =l add %t55, %t56+ storel %t57, %t18+ dbgloc 301+ %t58 =l extsw %t42+ %t59 =l copy 128+ %t61 =l extsw %t58+ %t60 =l and %t61, %t59+ %t62 =l copy 0+ %t63 =w cnel %t60, %t62+ %t64 =w copy %t63+ %t65 =w extub %t64+ storew %t65, %t30+ jmp @lbl5197+@lbl5197+ jmp @lbl5195+@lbl5198+ dbgloc 303+ %t66 =l call $malloc(l 16)+ %t67 =l loadl %t16+ storel %t67, %t66+ %t69 =l loadl %t21+ %t70 =l add %t66, 8+ storel %t69, %t70+ call $memset(l %t71, w 0, l 16)+ storel 1, %t71+ %t72 =l add %t71, 8+ storel %t66, %t72+ call $memcpy(l %__ret, l %t71, l 16)+ ret %__ret+}++function l $object__read_delta_varint(l %__ret, l %data, l %start) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t3 =l alloc8 8+ %t5 =l alloc8 8+ %t6 =l alloc8 8+ %t12 =l alloc4 1+ %t17 =l alloc8 16+ %t22 =l alloc8 8+ %t48 =l alloc8 16+ %t50 =l alloc8 16+ dbgloc 306+ storel %data, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "data", "bytes.Bytes", %t0, 8, 5, 306+ storel %start, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "start", "usize", %t1, 8, 5, 306+ dbgloc 307+ %t2 =l copy 0+ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "v", "u64", %t3, 8, 7, 307+ dbgloc 308+ %t4 =l copy 0+ storel %t4, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "shift", "u64", %t5, 8, 7, 308+ dbgloc 309+ storel %start, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "i", "usize", %t6, 8, 5, 309+ dbgloc 310+ jmp @lbl5202+@lbl5202+ jmp @lbl5203+@lbl5203+ dbgloc 311+ %t7 =l loadl %t6+ %t9 =l add %data, 8+ %t8 =l loadl %t9+ %t11 =w csltl %t7, %t8+ %t10 =w ceqw %t11, 0+ storew %t10, %t12+ jnz %t10, @lbl5210, @lbl5209+@lbl5209+ %t13 =l loadl %t5+ %t14 =l copy 63+ %t15 =w csgtl %t13, %t14+ storew %t15, %t12+ jmp @lbl5210+@lbl5210+ %t16 =w loadw %t12+ jnz %t16, @lbl5206, @lbl5207+@lbl5206+ dbgloc 312+ storel 0, %t17+ call $memcpy(l %__ret, l %t17, l 16)+ ret %__ret+@lbl5207+ dbgloc 314+ %t18 =l loadl %t6+ %t19 =w call $bytes__Bytes__at(l %data, l %t18)+ %t20 =w copy %t19+ %t21 =w extub %t20+ storew %t21, %t22+ call $__sx_dbg_keep(l %t22)+ dbgvar "c", "u8", %t22, 1, 7, 314+ dbgloc 315+ %t23 =l loadl %t6+ %t24 =l add %t23, 1+ storel %t24, %t6+ dbgloc 316+ %t25 =l loadl %t3+ %t26 =l extsw %t21+ %t27 =l copy 127+ %t29 =l extsw %t26+ %t28 =l and %t29, %t27+ %t30 =l copy %t28+ %t31 =l loadl %t5+ %t32 =l shl %t30, %t31+ %t33 =l or %t25, %t32+ storel %t33, %t3+ dbgloc 317+ %t34 =l loadl %t5+ %t35 =l copy 7+ %t36 =l add %t34, %t35+ storel %t36, %t5+ dbgloc 318+ %t37 =l extsw %t21+ %t38 =l copy 128+ %t40 =l extsw %t37+ %t39 =l and %t40, %t38+ %t41 =l copy 0+ %t42 =w ceql %t39, %t41+ jnz %t42, @lbl5211, @lbl5212+@lbl5211+ dbgloc 319+ %t43 =l call $malloc(l 16)+ %t44 =l loadl %t3+ storel %t44, %t43+ %t46 =l loadl %t6+ %t47 =l add %t43, 8+ storel %t46, %t47+ call $memset(l %t48, w 0, l 16)+ storel 1, %t48+ %t49 =l add %t48, 8+ storel %t43, %t49+ call $memcpy(l %__ret, l %t48, l 16)+ ret %__ret+@lbl5212+ jmp @lbl5204+@lbl5204+ jmp @lbl5202+@lbl5205+ dbgloc 322+ storel 0, %t50+ call $memcpy(l %__ret, l %t50, l 16)+ ret %__ret+}++function l $object__apply_delta(l %__ret, l %base, l %delta) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t4 =l alloc8 16+ %t5 =l alloc8 8+ %t7 =l alloc8 8+ %t9 =l alloc8 8+ %t17 =l alloc8 16+ %t23 =l alloc8 16+ %t26 =l alloc8 16+ %t27 =l alloc8 8+ %t29 =l alloc8 8+ %t37 =l alloc8 16+ %t41 =l alloc8 16+ %t44 =l alloc8 8+ %t49 =l alloc8 8+ %t51 =l alloc8 8+ %t60 =l alloc8 8+ %t70 =l alloc8 8+ %t72 =l alloc8 8+ %t86 =l alloc8 16+ %t107 =l alloc8 16+ %t130 =l alloc8 16+ %t153 =l alloc8 16+ %t176 =l alloc8 16+ %t197 =l alloc8 16+ %t220 =l alloc8 16+ %t239 =l alloc4 1+ %t250 =l alloc8 16+ %t259 =l alloc8 16+ %t283 =l alloc8 16+ %t285 =l alloc8 8+ %t291 =l alloc4 1+ %t298 =l alloc8 16+ %t317 =l alloc8 16+ %t319 =l alloc8 16+ dbgloc 325+ storel %base, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "base", "bytes.Bytes", %t0, 8, 5, 325+ storel %delta, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "delta", "bytes.Bytes", %t1, 8, 5, 325+ dbgloc 326+ %t2 =l copy 0+ %t3 =l call $object__read_delta_varint(l %t4, l %delta, l %t2)+ storel %t4, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "src_opt", "option[GitVarint]", %t5, 8, 5, 326+ dbgloc 327+ %t6 =l copy 0+ storel %t6, %t7+ call $__sx_dbg_keep(l %t7)+ dbgvar "src_size", "u64", %t7, 8, 7, 327+ dbgloc 328+ %t8 =l copy 0+ storel %t8, %t9+ call $__sx_dbg_keep(l %t9)+ dbgvar "p", "usize", %t9, 8, 5, 328+ dbgloc 329+ %t10 =l loadl %t4+ %t11 =w cnel %t10, 0+ jnz %t11, @lbl5214, @lbl5215+@lbl5214+ %t13 =l add %t4, 8+ %t12 =l loadl %t13+ dbgloc 331+ %t14 =l loadl %t12+ storel %t14, %t7+ dbgloc 332+ %t16 =l add %t12, 8+ %t15 =l loadl %t16+ storel %t15, %t9+ jmp @lbl5216+@lbl5215+ dbgloc 335+ storel 0, %t17+ call $memcpy(l %__ret, l %t17, l 16)+ ret %__ret+@lbl5216+ dbgloc 338+ %t18 =l loadl %t7+ %t20 =l add %base, 8+ %t19 =l loadl %t20+ %t21 =l copy %t19+ %t22 =w cnel %t18, %t21+ jnz %t22, @lbl5217, @lbl5218+@lbl5217+ dbgloc 339+ storel 0, %t23+ call $memcpy(l %__ret, l %t23, l 16)+ ret %__ret+@lbl5218+ dbgloc 341+ %t24 =l loadl %t9+ %t25 =l call $object__read_delta_varint(l %t26, l %delta, l %t24)+ storel %t26, %t27+ call $__sx_dbg_keep(l %t27)+ dbgvar "dst_opt", "option[GitVarint]", %t27, 8, 5, 341+ dbgloc 342+ %t28 =l copy 0+ storel %t28, %t29+ call $__sx_dbg_keep(l %t29)+ dbgvar "dst_size", "u64", %t29, 8, 7, 342+ dbgloc 343+ %t30 =l loadl %t26+ %t31 =w cnel %t30, 0+ jnz %t31, @lbl5220, @lbl5221+@lbl5220+ %t33 =l add %t26, 8+ %t32 =l loadl %t33+ dbgloc 345+ %t34 =l loadl %t32+ storel %t34, %t29+ dbgloc 346+ %t36 =l add %t32, 8+ %t35 =l loadl %t36+ storel %t35, %t9+ jmp @lbl5222+@lbl5221+ dbgloc 349+ storel 0, %t37+ call $memcpy(l %__ret, l %t37, l 16)+ ret %__ret+@lbl5222+ dbgloc 352+ %t38 =l loadl %t29+ %t39 =l copy 2147483648+ %t40 =w csgtl %t38, %t39+ jnz %t40, @lbl5223, @lbl5224+@lbl5223+ dbgloc 353+ storel 0, %t41+ call $memcpy(l %__ret, l %t41, l 16)+ ret %__ret+@lbl5224+ dbgloc 355+ %t42 =l loadl %t29+ %t43 =l copy %t42+ storel %t43, %t44+ call $__sx_dbg_keep(l %t44)+ dbgvar "cap", "usize", %t44, 8, 5, 355+ dbgloc 356+ %t46 =l copy 1+ %t47 =l add %t43, %t46+ %t45 =l call $malloc(l %t47)+ %t48 =l copy %t45+ storel %t48, %t49+ call $__sx_dbg_keep(l %t49)+ dbgvar "out", "ref u8", %t49, 8, 7, 356+ dbgloc 357+ %t50 =l copy 0+ storel %t50, %t51+ call $__sx_dbg_keep(l %t51)+ dbgvar "written", "usize", %t51, 8, 5, 357+ dbgloc 358+ jmp @lbl5226+@lbl5226+ %t52 =l loadl %t9+ %t54 =l add %delta, 8+ %t53 =l loadl %t54+ %t55 =w csltl %t52, %t53+ jnz %t55, @lbl5227, @lbl5229+@lbl5227+ dbgloc 359+ %t56 =l loadl %t9+ %t57 =w call $bytes__Bytes__at(l %delta, l %t56)+ %t58 =w copy %t57+ %t59 =w extub %t58+ storew %t59, %t60+ call $__sx_dbg_keep(l %t60)+ dbgvar "op", "u8", %t60, 1, 7, 359+ dbgloc 360+ %t61 =l loadl %t9+ %t62 =l add %t61, 1+ storel %t62, %t9+ dbgloc 361+ %t63 =l extsw %t59+ %t64 =l copy 128+ %t66 =l extsw %t63+ %t65 =l and %t66, %t64+ %t67 =l copy 0+ %t68 =w cnel %t65, %t67+ jnz %t68, @lbl5230, @lbl5232+@lbl5230+ dbgloc 362+ %t69 =l copy 0+ storel %t69, %t70+ call $__sx_dbg_keep(l %t70)+ dbgvar "off", "u64", %t70, 8, 7, 362+ dbgloc 363+ %t71 =l copy 0+ storel %t71, %t72+ call $__sx_dbg_keep(l %t72)+ dbgvar "size", "u64", %t72, 8, 7, 363+ dbgloc 364+ %t73 =l extsw %t59+ %t74 =l copy 1+ %t76 =l extsw %t73+ %t75 =l and %t76, %t74+ %t77 =l copy 0+ %t78 =w cnel %t75, %t77+ jnz %t78, @lbl5233, @lbl5234+@lbl5233+ dbgloc 365+ %t79 =l loadl %t9+ %t81 =l add %delta, 8+ %t80 =l loadl %t81+ %t83 =w csltl %t79, %t80+ %t82 =w ceqw %t83, 0+ jnz %t82, @lbl5236, @lbl5237+@lbl5236+ dbgloc 366+ %t85 =l copy %t48+ call $free(l %t85)+ %t84 =l copy 0+ dbgloc 367+ storel 0, %t86+ call $memcpy(l %__ret, l %t86, l 16)+ ret %__ret+@lbl5237+ dbgloc 369+ %t87 =l loadl %t70+ %t88 =l loadl %t9+ %t89 =w call $bytes__Bytes__at(l %delta, l %t88)+ %t90 =l extsw %t89+ %t91 =l or %t87, %t90+ storel %t91, %t70+ dbgloc 370+ %t92 =l loadl %t9+ %t93 =l add %t92, 1+ storel %t93, %t9+ jmp @lbl5234+@lbl5234+ dbgloc 372+ %t94 =l extsw %t59+ %t95 =l copy 2+ %t97 =l extsw %t94+ %t96 =l and %t97, %t95+ %t98 =l copy 0+ %t99 =w cnel %t96, %t98+ jnz %t99, @lbl5239, @lbl5240+@lbl5239+ dbgloc 373+ %t100 =l loadl %t9+ %t102 =l add %delta, 8+ %t101 =l loadl %t102+ %t104 =w csltl %t100, %t101+ %t103 =w ceqw %t104, 0+ jnz %t103, @lbl5242, @lbl5243+@lbl5242+ dbgloc 374+ %t106 =l copy %t48+ call $free(l %t106)+ %t105 =l copy 0+ dbgloc 375+ storel 0, %t107+ call $memcpy(l %__ret, l %t107, l 16)+ ret %__ret+@lbl5243+ dbgloc 377+ %t108 =l loadl %t70+ %t109 =l loadl %t9+ %t110 =w call $bytes__Bytes__at(l %delta, l %t109)+ %t111 =l extsw %t110+ %t112 =l copy 8+ %t113 =l shl %t111, %t112+ %t114 =l or %t108, %t113+ storel %t114, %t70+ dbgloc 378+ %t115 =l loadl %t9+ %t116 =l add %t115, 1+ storel %t116, %t9+ jmp @lbl5240+@lbl5240+ dbgloc 380+ %t117 =l extsw %t59+ %t118 =l copy 4+ %t120 =l extsw %t117+ %t119 =l and %t120, %t118+ %t121 =l copy 0+ %t122 =w cnel %t119, %t121+ jnz %t122, @lbl5245, @lbl5246+@lbl5245+ dbgloc 381+ %t123 =l loadl %t9+ %t125 =l add %delta, 8+ %t124 =l loadl %t125+ %t127 =w csltl %t123, %t124+ %t126 =w ceqw %t127, 0+ jnz %t126, @lbl5248, @lbl5249+@lbl5248+ dbgloc 382+ %t129 =l copy %t48+ call $free(l %t129)+ %t128 =l copy 0+ dbgloc 383+ storel 0, %t130+ call $memcpy(l %__ret, l %t130, l 16)+ ret %__ret+@lbl5249+ dbgloc 385+ %t131 =l loadl %t70+ %t132 =l loadl %t9+ %t133 =w call $bytes__Bytes__at(l %delta, l %t132)+ %t134 =l extsw %t133+ %t135 =l copy 16+ %t136 =l shl %t134, %t135+ %t137 =l or %t131, %t136+ storel %t137, %t70+ dbgloc 386+ %t138 =l loadl %t9+ %t139 =l add %t138, 1+ storel %t139, %t9+ jmp @lbl5246+@lbl5246+ dbgloc 388+ %t140 =l extsw %t59+ %t141 =l copy 8+ %t143 =l extsw %t140+ %t142 =l and %t143, %t141+ %t144 =l copy 0+ %t145 =w cnel %t142, %t144+ jnz %t145, @lbl5251, @lbl5252+@lbl5251+ dbgloc 389+ %t146 =l loadl %t9+ %t148 =l add %delta, 8+ %t147 =l loadl %t148+ %t150 =w csltl %t146, %t147+ %t149 =w ceqw %t150, 0+ jnz %t149, @lbl5254, @lbl5255+@lbl5254+ dbgloc 390+ %t152 =l copy %t48+ call $free(l %t152)+ %t151 =l copy 0+ dbgloc 391+ storel 0, %t153+ call $memcpy(l %__ret, l %t153, l 16)+ ret %__ret+@lbl5255+ dbgloc 393+ %t154 =l loadl %t70+ %t155 =l loadl %t9+ %t156 =w call $bytes__Bytes__at(l %delta, l %t155)+ %t157 =l extsw %t156+ %t158 =l copy 24+ %t159 =l shl %t157, %t158+ %t160 =l or %t154, %t159+ storel %t160, %t70+ dbgloc 394+ %t161 =l loadl %t9+ %t162 =l add %t161, 1+ storel %t162, %t9+ jmp @lbl5252+@lbl5252+ dbgloc 396+ %t163 =l extsw %t59+ %t164 =l copy 16+ %t166 =l extsw %t163+ %t165 =l and %t166, %t164+ %t167 =l copy 0+ %t168 =w cnel %t165, %t167+ jnz %t168, @lbl5257, @lbl5258+@lbl5257+ dbgloc 397+ %t169 =l loadl %t9+ %t171 =l add %delta, 8+ %t170 =l loadl %t171+ %t173 =w csltl %t169, %t170+ %t172 =w ceqw %t173, 0+ jnz %t172, @lbl5260, @lbl5261+@lbl5260+ dbgloc 398+ %t175 =l copy %t48+ call $free(l %t175)+ %t174 =l copy 0+ dbgloc 399+ storel 0, %t176+ call $memcpy(l %__ret, l %t176, l 16)+ ret %__ret+@lbl5261+ dbgloc 401+ %t177 =l loadl %t72+ %t178 =l loadl %t9+ %t179 =w call $bytes__Bytes__at(l %delta, l %t178)+ %t180 =l extsw %t179+ %t181 =l or %t177, %t180+ storel %t181, %t72+ dbgloc 402+ %t182 =l loadl %t9+ %t183 =l add %t182, 1+ storel %t183, %t9+ jmp @lbl5258+@lbl5258+ dbgloc 404+ %t184 =l extsw %t59+ %t185 =l copy 32+ %t187 =l extsw %t184+ %t186 =l and %t187, %t185+ %t188 =l copy 0+ %t189 =w cnel %t186, %t188+ jnz %t189, @lbl5263, @lbl5264+@lbl5263+ dbgloc 405+ %t190 =l loadl %t9+ %t192 =l add %delta, 8+ %t191 =l loadl %t192+ %t194 =w csltl %t190, %t191+ %t193 =w ceqw %t194, 0+ jnz %t193, @lbl5266, @lbl5267+@lbl5266+ dbgloc 406+ %t196 =l copy %t48+ call $free(l %t196)+ %t195 =l copy 0+ dbgloc 407+ storel 0, %t197+ call $memcpy(l %__ret, l %t197, l 16)+ ret %__ret+@lbl5267+ dbgloc 409+ %t198 =l loadl %t72+ %t199 =l loadl %t9+ %t200 =w call $bytes__Bytes__at(l %delta, l %t199)+ %t201 =l extsw %t200+ %t202 =l copy 8+ %t203 =l shl %t201, %t202+ %t204 =l or %t198, %t203+ storel %t204, %t72+ dbgloc 410+ %t205 =l loadl %t9+ %t206 =l add %t205, 1+ storel %t206, %t9+ jmp @lbl5264+@lbl5264+ dbgloc 412+ %t207 =l extsw %t59+ %t208 =l copy 64+ %t210 =l extsw %t207+ %t209 =l and %t210, %t208+ %t211 =l copy 0+ %t212 =w cnel %t209, %t211+ jnz %t212, @lbl5269, @lbl5270+@lbl5269+ dbgloc 413+ %t213 =l loadl %t9+ %t215 =l add %delta, 8+ %t214 =l loadl %t215+ %t217 =w csltl %t213, %t214+ %t216 =w ceqw %t217, 0+ jnz %t216, @lbl5272, @lbl5273+@lbl5272+ dbgloc 414+ %t219 =l copy %t48+ call $free(l %t219)+ %t218 =l copy 0+ dbgloc 415+ storel 0, %t220+ call $memcpy(l %__ret, l %t220, l 16)+ ret %__ret+@lbl5273+ dbgloc 417+ %t221 =l loadl %t72+ %t222 =l loadl %t9+ %t223 =w call $bytes__Bytes__at(l %delta, l %t222)+ %t224 =l extsw %t223+ %t225 =l copy 16+ %t226 =l shl %t224, %t225+ %t227 =l or %t221, %t226+ storel %t227, %t72+ dbgloc 418+ %t228 =l loadl %t9+ %t229 =l add %t228, 1+ storel %t229, %t9+ jmp @lbl5270+@lbl5270+ dbgloc 420+ %t230 =l loadl %t72+ %t231 =l copy 0+ %t232 =w ceql %t230, %t231+ jnz %t232, @lbl5275, @lbl5276+@lbl5275+ dbgloc 421+ %t233 =l copy 65536+ storel %t233, %t72+ jmp @lbl5276+@lbl5276+ dbgloc 423+ %t234 =l loadl %t70+ %t236 =l add %base, 8+ %t235 =l loadl %t236+ %t237 =l copy %t235+ %t238 =w csgtl %t234, %t237+ storew %t238, %t239+ jnz %t238, @lbl5282, @lbl5281+@lbl5281+ %t240 =l loadl %t72+ %t242 =l add %base, 8+ %t241 =l loadl %t242+ %t243 =l copy %t241+ %t244 =l loadl %t70+ %t245 =l sub %t243, %t244+ %t246 =w csgtl %t240, %t245+ storew %t246, %t239+ jmp @lbl5282+@lbl5282+ %t247 =w loadw %t239+ jnz %t247, @lbl5278, @lbl5279+@lbl5278+ dbgloc 424+ %t249 =l copy %t48+ call $free(l %t249)+ %t248 =l copy 0+ dbgloc 425+ storel 0, %t250+ call $memcpy(l %__ret, l %t250, l 16)+ ret %__ret+@lbl5279+ dbgloc 427+ %t251 =l loadl %t72+ %t252 =l copy %t43+ %t253 =l loadl %t51+ %t254 =l copy %t253+ %t255 =l sub %t252, %t254+ %t256 =w csgtl %t251, %t255+ jnz %t256, @lbl5283, @lbl5284+@lbl5283+ dbgloc 428+ %t258 =l copy %t48+ call $free(l %t258)+ %t257 =l copy 0+ dbgloc 429+ storel 0, %t259+ call $memcpy(l %__ret, l %t259, l 16)+ ret %__ret+@lbl5284+ dbgloc 431+ %t260 =l loadl %t72+ %t261 =l copy 0+ %t262 =w csgtl %t260, %t261+ jnz %t262, @lbl5286, @lbl5287+@lbl5286+ dbgloc 432+ %t265 =l loadl %t51+ %t266 =l copy %t265+ %t264 =l add %t48, %t266+ %t267 =l copy %t264+ %t269 =l loadl %base+ %t270 =l loadl %t70+ %t271 =l copy %t270+ %t268 =l add %t269, %t271+ %t272 =l copy %t268+ %t273 =l loadl %t72+ %t274 =l copy %t273+ call $memcpy(l %t267, l %t272, l %t274)+ %t263 =l copy 0+ jmp @lbl5287+@lbl5287+ dbgloc 438+ %t275 =l loadl %t51+ %t276 =l loadl %t72+ %t277 =l copy %t276+ %t278 =l add %t275, %t277+ storel %t278, %t51+ jmp @lbl5231+@lbl5232+ dbgloc 440+ %t279 =w copy 0+ %t280 =w ceqw %t59, %t279+ jnz %t280, @lbl5289, @lbl5290+@lbl5289+ dbgloc 441+ %t282 =l copy %t48+ call $free(l %t282)+ %t281 =l copy 0+ dbgloc 442+ storel 0, %t283+ call $memcpy(l %__ret, l %t283, l 16)+ ret %__ret+@lbl5290+ dbgloc 444+ %t284 =l extsw %t59+ storel %t284, %t285+ call $__sx_dbg_keep(l %t285)+ dbgvar "n", "usize", %t285, 8, 5, 444+ dbgloc 445+ %t286 =l loadl %t9+ %t287 =l add %t286, %t284+ %t289 =l add %delta, 8+ %t288 =l loadl %t289+ %t290 =w csgtl %t287, %t288+ storew %t290, %t291+ jnz %t290, @lbl5296, @lbl5295+@lbl5295+ %t292 =l loadl %t51+ %t293 =l sub %t43, %t292+ %t294 =w csgtl %t284, %t293+ storew %t294, %t291+ jmp @lbl5296+@lbl5296+ %t295 =w loadw %t291+ jnz %t295, @lbl5292, @lbl5293+@lbl5292+ dbgloc 446+ %t297 =l copy %t48+ call $free(l %t297)+ %t296 =l copy 0+ dbgloc 447+ storel 0, %t298+ call $memcpy(l %__ret, l %t298, l 16)+ ret %__ret+@lbl5293+ dbgloc 449+ %t301 =l loadl %t51+ %t302 =l copy %t301+ %t300 =l add %t48, %t302+ %t303 =l copy %t300+ %t305 =l loadl %delta+ %t306 =l loadl %t9+ %t307 =l copy %t306+ %t304 =l add %t305, %t307+ %t308 =l copy %t304+ call $memcpy(l %t303, l %t308, l %t284)+ %t299 =l copy 0+ dbgloc 454+ %t309 =l loadl %t9+ %t310 =l add %t309, %t284+ storel %t310, %t9+ dbgloc 455+ %t311 =l loadl %t51+ %t312 =l add %t311, %t284+ storel %t312, %t51+ jmp @lbl5231+@lbl5231+ jmp @lbl5228+@lbl5228+ jmp @lbl5226+@lbl5229+ dbgloc 458+ %t313 =l loadl %t51+ %t314 =w cnel %t313, %t43+ jnz %t314, @lbl5297, @lbl5298+@lbl5297+ dbgloc 459+ %t316 =l copy %t48+ call $free(l %t316)+ %t315 =l copy 0+ dbgloc 460+ storel 0, %t317+ call $memcpy(l %__ret, l %t317, l 16)+ ret %__ret+@lbl5298+ dbgloc 462+ %t318 =l call $bytes__bytes(l %t48, l %t43)+ call $memset(l %t319, w 0, l 16)+ storel 1, %t319+ %t320 =l add %t319, 8+ storel %t318, %t320+ call $memcpy(l %__ret, l %t319, l 16)+ ret %__ret+}++function l $object__find_oid(l %__ret, l %pack, l %oid) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t8 =l alloc8 8+ %t11 =l alloc8 8+ %t22 =l alloc8 8+ %t31 =l alloc8 8+ %t33 =l alloc8 8+ %t36 =l alloc8 16+ %t42 =l alloc8 16+ dbgloc 465+ storel %pack, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "pack", "ref GitPack", %t0, 8, 7, 465+ storel %oid, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "oid", "bytes.Bytes", %t1, 8, 5, 465+ dbgloc 466+ %t3 =l add %oid, 8+ %t2 =l loadl %t3+ %t4 =l copy 20+ %t5 =w ceql %t2, %t4+ jnz %t5, @lbl5300, @lbl5301+@lbl5301+ %t6 =l copy $__str265+ call $dprintf(w 2, l %t6)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl5300+ dbgloc 469+ %t7 =l copy 0+ storel %t7, %t8+ call $__sx_dbg_keep(l %t8)+ dbgvar "lo", "usize", %t8, 8, 5, 469+ dbgloc 470+ %t10 =l add %pack, 32+ %t9 =l loadl %t10+ storel %t9, %t11+ call $__sx_dbg_keep(l %t11)+ dbgvar "hi", "usize", %t11, 8, 5, 470+ dbgloc 471+ jmp @lbl5302+@lbl5302+ %t12 =l loadl %t8+ %t13 =l loadl %t11+ %t14 =w csltl %t12, %t13+ jnz %t14, @lbl5303, @lbl5305+@lbl5303+ dbgloc 472+ %t15 =l loadl %t8+ %t16 =l loadl %t11+ %t17 =l loadl %t8+ %t18 =l sub %t16, %t17+ %t19 =l copy 2+ %t20 =l div %t18, %t19+ %t21 =l add %t15, %t20+ storel %t21, %t22+ call $__sx_dbg_keep(l %t22)+ dbgvar "mid", "usize", %t22, 8, 5, 472+ dbgloc 473+ %t25 =l add %pack, 40+ %t24 =l loadl %t25+ %t26 =l copy 20+ %t27 =l mul %t21, %t26+ %t28 =l copy %t27+ %t23 =l add %t24, %t28+ %t29 =l copy 20+ %t30 =l call $bytes__bytes(l %t23, l %t29)+ storel %t30, %t31+ call $__sx_dbg_keep(l %t31)+ dbgvar "cur", "bytes.Bytes", %t31, 8, 5, 473+ dbgloc 474+ %t32 =l call $bytes__Bytes__cmp(l %t30, l %oid)+ storel %t32, %t33+ call $__sx_dbg_keep(l %t33)+ dbgvar "c", "i64", %t33, 8, 5, 474+ dbgloc 475+ %t34 =l copy 0+ %t35 =w ceql %t32, %t34+ jnz %t35, @lbl5306, @lbl5307+@lbl5306+ dbgloc 476+ call $memset(l %t36, w 0, l 16)+ storel 1, %t36+ %t37 =l add %t36, 8+ storel %t21, %t37+ call $memcpy(l %__ret, l %t36, l 16)+ ret %__ret+@lbl5307+ dbgloc 478+ %t38 =l copy 0+ %t39 =w csltl %t32, %t38+ jnz %t39, @lbl5309, @lbl5311+@lbl5309+ dbgloc 479+ %t40 =l copy 1+ %t41 =l add %t21, %t40+ storel %t41, %t8+ jmp @lbl5310+@lbl5311+ dbgloc 481+ storel %t21, %t11+ jmp @lbl5310+@lbl5310+ jmp @lbl5304+@lbl5304+ jmp @lbl5302+@lbl5305+ dbgloc 484+ storel 0, %t42+ call $memcpy(l %__ret, l %t42, l 16)+ ret %__ret+}++function l $object__offset_at(l %pack, l %i) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 487+ storel %pack, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "pack", "ref GitPack", %t0, 8, 7, 487+ storel %i, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "i", "usize", %t1, 8, 5, 487+ dbgloc 488+ %t5 =l add %pack, 48+ %t4 =l loadl %t5+ %t6 =l copy 8+ %t7 =l mul %i, %t6+ %t8 =l copy %t7+ %t3 =l add %t4, %t8+ %t2 =l loadl %t3+ %t9 =l copy %t2+ ret %t9+}++function l $object__cache_hash(l %offset) {+@start+ %t0 =l alloc8 8+ %t3 =l alloc8 8+ dbgloc 491+ storel %offset, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "offset", "u64", %t0, 8, 7, 491+ dbgloc 492+ %t1 =l copy 11400714819323198485+ %t2 =l mul %offset, %t1+ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "h", "u64", %t3, 8, 7, 492+ dbgloc 493+ %t4 =l copy 32+ %t5 =l shr %t2, %t4+ %t6 =l copy %t5+ ret %t6+}++function l $object__cache_slot(l %pack, l %offset) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t12 =l alloc8 8+ %t15 =l alloc8 8+ %t16 =l alloc8 8+ %t26 =l alloc8 8+ %t30 =l alloc8 8+ %t42 =l alloc8 8+ %t44 =l alloc8 16+ %t53 =l alloc8 8+ %t62 =l alloc4 1+ dbgloc 496+ storel %pack, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "pack", "ref GitPack", %t0, 8, 7, 496+ storel %offset, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "offset", "u64", %t1, 8, 7, 496+ dbgloc 497+ %t3 =l add %pack, 72+ %t2 =l loadl %t3+ %t4 =l copy 0+ %t5 =w ceql %t2, %t4+ jnz %t5, @lbl5312, @lbl5313+@lbl5312+ dbgloc 498+ %t6 =l copy 1+ %t7 =l neg %t6+ ret %t7+@lbl5313+ dbgloc 500+ %t9 =l add %pack, 72+ %t8 =l loadl %t9+ %t10 =l copy 1+ %t11 =l sub %t8, %t10+ storel %t11, %t12+ call $__sx_dbg_keep(l %t12)+ dbgvar "mask", "usize", %t12, 8, 5, 500+ dbgloc 501+ %t13 =l call $object__cache_hash(l %offset)+ %t14 =l and %t13, %t11+ storel %t14, %t15+ call $__sx_dbg_keep(l %t15)+ dbgvar "start", "usize", %t15, 8, 5, 501+ dbgloc 502+ storel %t14, %t16+ call $__sx_dbg_keep(l %t16)+ dbgvar "idx", "usize", %t16, 8, 5, 502+ dbgloc 503+ jmp @lbl5315+@lbl5315+ jmp @lbl5316+@lbl5316+ dbgloc 504+ %t19 =l add %pack, 64+ %t18 =l loadl %t19+ %t20 =l copy %t18+ %t21 =l loadl %t16+ %t22 =l copy 4+ %t23 =l mul %t21, %t22+ %t24 =l copy %t23+ %t17 =l add %t20, %t24+ %t25 =l copy %t17+ storel %t25, %t26+ call $__sx_dbg_keep(l %t26)+ dbgvar "slot", "ref u32", %t26, 8, 7, 504+ dbgloc 505+ %t28 =w loadsw %t25+ %t27 =l extsw %t28+ %t29 =w copy %t27+ storew %t29, %t30+ call $__sx_dbg_keep(l %t30)+ dbgvar "v", "u32", %t30, 4, 7, 505+ dbgloc 506+ %t31 =w copy 0+ %t32 =w ceqw %t29, %t31+ jnz %t32, @lbl5319, @lbl5320+@lbl5319+ dbgloc 507+ %t33 =l copy 1+ %t34 =l neg %t33+ ret %t34+@lbl5320+ dbgloc 509+ %t35 =w copy 4294967295+ %t36 =w cnew %t29, %t35+ jnz %t36, @lbl5322, @lbl5323+@lbl5322+ dbgloc 510+ %t37 =l extsw %t29+ %t38 =l copy 1+ %t40 =l extsw %t37+ %t39 =l sub %t40, %t38+ %t41 =l copy %t39+ storel %t41, %t42+ call $__sx_dbg_keep(l %t42)+ dbgvar "ei", "usize", %t42, 8, 5, 510+ dbgloc 511+ storel 0, %t44+ %t45 =l add %pack, 56+ %t46 =l loadl %t45+ %t47 =w call $sxqbe_list_valid(l %t46, l %t41)+ jnz %t47, @lbl5325, @lbl5326+@lbl5325+ %t48 =l call $sxqbe_list_buf(l %t46)+ %t49 =l mul %t41, 8+ %t50 =l add %t48, %t49+ %t51 =l loadl %t50+ %t52 =l add %t44, 8+ storel %t51, %t52+ storel 1, %t44+ jmp @lbl5327+@lbl5326+ jmp @lbl5327+@lbl5327+ storel %t44, %t53+ call $__sx_dbg_keep(l %t53)+ dbgvar "o", "option[ref GitCacheEntry]", %t53, 8, 5, 511+ dbgloc 512+ %t54 =l loadl %t44+ %t55 =w cnel %t54, 0+ jnz %t55, @lbl5328, @lbl5329+@lbl5328+ %t57 =l add %t44, 8+ %t56 =l loadl %t57+ dbgloc 513+ %t58 =l add %t56, 9+ %t59 =l loadl %t58+ %t60 =l copy 0+ %t61 =w cnel %t59, %t60+ storew %t61, %t62+ jnz %t61, @lbl5334, @lbl5335+@lbl5334+ %t63 =l loadl %t56+ %t64 =w ceql %t63, %offset+ storew %t64, %t62+ jmp @lbl5335+@lbl5335+ %t65 =w loadw %t62+ jnz %t65, @lbl5331, @lbl5332+@lbl5331+ dbgloc 514+ %t66 =l copy %t41+ ret %t66+@lbl5332+ jmp @lbl5330+@lbl5329+ jmp @lbl5330+@lbl5330+ jmp @lbl5323+@lbl5323+ dbgloc 518+ %t67 =l loadl %t16+ %t68 =l copy 1+ %t69 =l add %t67, %t68+ %t70 =l and %t69, %t11+ storel %t70, %t16+ dbgloc 519+ %t71 =l loadl %t16+ %t72 =w ceql %t71, %t14+ jnz %t72, @lbl5336, @lbl5337+@lbl5336+ dbgloc 520+ %t73 =l copy 1+ %t74 =l neg %t73+ ret %t74+@lbl5337+ jmp @lbl5317+@lbl5317+ jmp @lbl5315+@lbl5318+ dbgloc 523+ %t75 =l copy 1+ %t76 =l neg %t75+ ret %t76+}++function w $object__cache_map_put(l %pack, l %offset, l %entry) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t11 =l alloc8 8+ %t14 =l alloc8 8+ %t15 =l alloc8 8+ %t18 =l alloc8 8+ %t28 =l alloc8 8+ %t32 =l alloc8 8+ %t36 =l alloc8 8+ %t52 =l alloc8 8+ %t59 =l alloc4 1+ %t86 =l alloc8 8+ dbgloc 526+ storel %pack, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "pack", "ref GitPack", %t0, 8, 7, 526+ storel %offset, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "offset", "u64", %t1, 8, 7, 526+ storel %entry, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "entry", "usize", %t2, 8, 5, 526+ dbgloc 527+ %t4 =l add %pack, 72+ %t3 =l loadl %t4+ %t5 =l copy 0+ %t6 =w ceql %t3, %t5+ jnz %t6, @lbl5339, @lbl5340+@lbl5339+ dbgloc 528+ ret 0+@lbl5340+ dbgloc 530+ %t8 =l add %pack, 72+ %t7 =l loadl %t8+ %t9 =l copy 1+ %t10 =l sub %t7, %t9+ storel %t10, %t11+ call $__sx_dbg_keep(l %t11)+ dbgvar "mask", "usize", %t11, 8, 5, 530+ dbgloc 531+ %t12 =l call $object__cache_hash(l %offset)+ %t13 =l and %t12, %t10+ storel %t13, %t14+ call $__sx_dbg_keep(l %t14)+ dbgvar "start", "usize", %t14, 8, 5, 531+ dbgloc 532+ storel %t13, %t15+ call $__sx_dbg_keep(l %t15)+ dbgvar "idx", "usize", %t15, 8, 5, 532+ dbgloc 533+ %t16 =l copy 1+ %t17 =l neg %t16+ storel %t17, %t18+ call $__sx_dbg_keep(l %t18)+ dbgvar "tomb", "i64", %t18, 8, 5, 533+ dbgloc 534+ jmp @lbl5342+@lbl5342+ jmp @lbl5343+@lbl5343+ dbgloc 535+ %t21 =l add %pack, 64+ %t20 =l loadl %t21+ %t22 =l copy %t20+ %t23 =l loadl %t15+ %t24 =l copy 4+ %t25 =l mul %t23, %t24+ %t26 =l copy %t25+ %t19 =l add %t22, %t26+ %t27 =l copy %t19+ storel %t27, %t28+ call $__sx_dbg_keep(l %t28)+ dbgvar "slot", "ref u32", %t28, 8, 7, 535+ dbgloc 536+ %t30 =w loadsw %t27+ %t29 =l extsw %t30+ %t31 =w copy %t29+ storew %t31, %t32+ call $__sx_dbg_keep(l %t32)+ dbgvar "v", "u32", %t32, 4, 7, 536+ dbgloc 537+ %t33 =w copy 0+ %t34 =w ceqw %t31, %t33+ jnz %t34, @lbl5346, @lbl5347+@lbl5346+ dbgloc 538+ %t35 =l loadl %t15+ storel %t35, %t36+ call $__sx_dbg_keep(l %t36)+ dbgvar "at", "usize", %t36, 8, 5, 538+ dbgloc 539+ %t37 =l loadl %t18+ %t38 =l copy 0+ %t40 =w csltl %t37, %t38+ %t39 =w ceqw %t40, 0+ jnz %t39, @lbl5349, @lbl5350+@lbl5349+ dbgloc 540+ %t41 =l loadl %t18+ %t42 =l copy %t41+ storel %t42, %t36+ jmp @lbl5350+@lbl5350+ dbgloc 542+ %t45 =l add %pack, 64+ %t44 =l loadl %t45+ %t46 =l copy %t44+ %t47 =l loadl %t36+ %t48 =l copy 4+ %t49 =l mul %t47, %t48+ %t50 =l copy %t49+ %t43 =l add %t46, %t50+ %t51 =l copy %t43+ storel %t51, %t52+ call $__sx_dbg_keep(l %t52)+ dbgvar "at_slot", "ref u32", %t52, 8, 7, 542+ dbgloc 543+ %t54 =l copy %t51+ %t55 =l copy 1+ %t56 =l add %entry, %t55+ storew %t56, %t54+ %t53 =l copy 0+ dbgloc 544+ ret 0+@lbl5347+ dbgloc 546+ %t57 =w copy 4294967295+ %t58 =w ceqw %t31, %t57+ storew %t58, %t59+ jnz %t58, @lbl5355, @lbl5356+@lbl5355+ %t60 =l loadl %t18+ %t61 =l copy 0+ %t62 =w csltl %t60, %t61+ storew %t62, %t59+ jmp @lbl5356+@lbl5356+ %t63 =w loadw %t59+ jnz %t63, @lbl5352, @lbl5353+@lbl5352+ dbgloc 547+ %t64 =l loadl %t15+ %t65 =l copy %t64+ storel %t65, %t18+ jmp @lbl5353+@lbl5353+ dbgloc 549+ %t66 =l loadl %t15+ %t67 =l copy 1+ %t68 =l add %t66, %t67+ %t69 =l and %t68, %t10+ storel %t69, %t15+ dbgloc 550+ %t70 =l loadl %t15+ %t71 =w ceql %t70, %t13+ jnz %t71, @lbl5357, @lbl5358+@lbl5357+ dbgloc 551+ %t72 =l loadl %t18+ %t73 =l copy 0+ %t75 =w csltl %t72, %t73+ %t74 =w ceqw %t75, 0+ jnz %t74, @lbl5360, @lbl5361+@lbl5360+ dbgloc 552+ %t78 =l add %pack, 64+ %t77 =l loadl %t78+ %t79 =l copy %t77+ %t80 =l loadl %t18+ %t81 =l copy %t80+ %t82 =l copy 4+ %t83 =l mul %t81, %t82+ %t84 =l copy %t83+ %t76 =l add %t79, %t84+ %t85 =l copy %t76+ storel %t85, %t86+ call $__sx_dbg_keep(l %t86)+ dbgvar "tslot", "ref u32", %t86, 8, 7, 552+ dbgloc 556+ %t88 =l copy %t85+ %t89 =l copy 1+ %t90 =l add %entry, %t89+ storew %t90, %t88+ %t87 =l copy 0+ jmp @lbl5361+@lbl5361+ dbgloc 558+ ret 0+@lbl5358+ jmp @lbl5344+@lbl5344+ jmp @lbl5342+@lbl5345+ ret 0+}++function w $object__cache_map_remove(l %pack, l %offset) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t10 =l alloc8 8+ %t13 =l alloc8 8+ %t14 =l alloc8 8+ %t24 =l alloc8 8+ %t28 =l alloc8 8+ %t38 =l alloc8 8+ %t40 =l alloc8 16+ %t49 =l alloc8 8+ dbgloc 563+ storel %pack, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "pack", "ref GitPack", %t0, 8, 7, 563+ storel %offset, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "offset", "u64", %t1, 8, 7, 563+ dbgloc 564+ %t3 =l add %pack, 72+ %t2 =l loadl %t3+ %t4 =l copy 0+ %t5 =w ceql %t2, %t4+ jnz %t5, @lbl5363, @lbl5364+@lbl5363+ dbgloc 565+ ret 0+@lbl5364+ dbgloc 567+ %t7 =l add %pack, 72+ %t6 =l loadl %t7+ %t8 =l copy 1+ %t9 =l sub %t6, %t8+ storel %t9, %t10+ call $__sx_dbg_keep(l %t10)+ dbgvar "mask", "usize", %t10, 8, 5, 567+ dbgloc 568+ %t11 =l call $object__cache_hash(l %offset)+ %t12 =l and %t11, %t9+ storel %t12, %t13+ call $__sx_dbg_keep(l %t13)+ dbgvar "start", "usize", %t13, 8, 5, 568+ dbgloc 569+ storel %t12, %t14+ call $__sx_dbg_keep(l %t14)+ dbgvar "idx", "usize", %t14, 8, 5, 569+ dbgloc 570+ jmp @lbl5366+@lbl5366+ jmp @lbl5367+@lbl5367+ dbgloc 571+ %t17 =l add %pack, 64+ %t16 =l loadl %t17+ %t18 =l copy %t16+ %t19 =l loadl %t14+ %t20 =l copy 4+ %t21 =l mul %t19, %t20+ %t22 =l copy %t21+ %t15 =l add %t18, %t22+ %t23 =l copy %t15+ storel %t23, %t24+ call $__sx_dbg_keep(l %t24)+ dbgvar "slot", "ref u32", %t24, 8, 7, 571+ dbgloc 572+ %t26 =w loadsw %t23+ %t25 =l extsw %t26+ %t27 =w copy %t25+ storew %t27, %t28+ call $__sx_dbg_keep(l %t28)+ dbgvar "v", "u32", %t28, 4, 7, 572+ dbgloc 573+ %t29 =w copy 0+ %t30 =w ceqw %t27, %t29+ jnz %t30, @lbl5370, @lbl5371+@lbl5370+ dbgloc 574+ ret 0+@lbl5371+ dbgloc 576+ %t31 =w copy 4294967295+ %t32 =w cnew %t27, %t31+ jnz %t32, @lbl5373, @lbl5374+@lbl5373+ dbgloc 577+ %t33 =l extsw %t27+ %t34 =l copy 1+ %t36 =l extsw %t33+ %t35 =l sub %t36, %t34+ %t37 =l copy %t35+ storel %t37, %t38+ call $__sx_dbg_keep(l %t38)+ dbgvar "ei", "usize", %t38, 8, 5, 577+ dbgloc 578+ storel 0, %t40+ %t41 =l add %pack, 56+ %t42 =l loadl %t41+ %t43 =w call $sxqbe_list_valid(l %t42, l %t37)+ jnz %t43, @lbl5376, @lbl5377+@lbl5376+ %t44 =l call $sxqbe_list_buf(l %t42)+ %t45 =l mul %t37, 8+ %t46 =l add %t44, %t45+ %t47 =l loadl %t46+ %t48 =l add %t40, 8+ storel %t47, %t48+ storel 1, %t40+ jmp @lbl5378+@lbl5377+ jmp @lbl5378+@lbl5378+ storel %t40, %t49+ call $__sx_dbg_keep(l %t49)+ dbgvar "o", "option[ref GitCacheEntry]", %t49, 8, 5, 578+ dbgloc 579+ %t50 =l loadl %t40+ %t51 =w cnel %t50, 0+ jnz %t51, @lbl5379, @lbl5380+@lbl5379+ %t53 =l add %t40, 8+ %t52 =l loadl %t53+ dbgloc 580+ %t54 =l loadl %t52+ %t55 =w ceql %t54, %offset+ jnz %t55, @lbl5382, @lbl5383+@lbl5382+ dbgloc 581+ %t57 =l copy %t23+ %t58 =l copy 1+ %t59 =l neg %t58+ %t60 =w copy %t59+ storew %t60, %t57+ %t56 =l copy 0+ dbgloc 582+ ret 0+@lbl5383+ jmp @lbl5381+@lbl5380+ jmp @lbl5381+@lbl5381+ jmp @lbl5374+@lbl5374+ dbgloc 586+ %t61 =l loadl %t14+ %t62 =l copy 1+ %t63 =l add %t61, %t62+ %t64 =l and %t63, %t9+ storel %t64, %t14+ dbgloc 587+ %t65 =l loadl %t14+ %t66 =w ceql %t65, %t12+ jnz %t66, @lbl5385, @lbl5386+@lbl5385+ dbgloc 588+ ret 0+@lbl5386+ jmp @lbl5368+@lbl5368+ jmp @lbl5366+@lbl5369+ ret 0+}++function l $object__cache_lookup(l %__ret, l %pack, l %offset) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t3 =l alloc8 8+ %t6 =l alloc8 16+ %t8 =l alloc8 16+ %t18 =l alloc8 8+ %t31 =l alloc8 16+ %t33 =l alloc8 16+ dbgloc 593+ storel %pack, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "pack", "ref GitPack", %t0, 8, 7, 593+ storel %offset, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "offset", "u64", %t1, 8, 7, 593+ dbgloc 594+ %t2 =l call $object__cache_slot(l %pack, l %offset)+ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "slot", "i64", %t3, 8, 5, 594+ dbgloc 595+ %t4 =l copy 0+ %t5 =w csltl %t2, %t4+ jnz %t5, @lbl5388, @lbl5389+@lbl5388+ dbgloc 596+ storel 0, %t6+ call $memcpy(l %__ret, l %t6, l 16)+ ret %__ret+@lbl5389+ dbgloc 598+ storel 0, %t8+ %t9 =l add %pack, 56+ %t10 =l loadl %t9+ %t11 =l copy %t2+ %t12 =w call $sxqbe_list_valid(l %t10, l %t11)+ jnz %t12, @lbl5391, @lbl5392+@lbl5391+ %t13 =l call $sxqbe_list_buf(l %t10)+ %t14 =l mul %t11, 8+ %t15 =l add %t13, %t14+ %t16 =l loadl %t15+ %t17 =l add %t8, 8+ storel %t16, %t17+ storel 1, %t8+ jmp @lbl5393+@lbl5392+ jmp @lbl5393+@lbl5393+ storel %t8, %t18+ call $__sx_dbg_keep(l %t18)+ dbgvar "o", "option[ref GitCacheEntry]", %t18, 8, 5, 598+ dbgloc 599+ %t19 =l loadl %t8+ %t20 =w cnel %t19, 0+ jnz %t20, @lbl5394, @lbl5395+@lbl5394+ %t22 =l add %t8, 8+ %t21 =l loadl %t22+ dbgloc 600+ %t23 =l call $malloc(l 33)+ %t25 =l add %t21, 8+ %t24 =l loadub %t25+ storeb %t24, %t23+ %t27 =l add %t23, 1+ %t28 =l add %t21, 9+ call $memcpy(l %t27, l %t28, l 16)+ %t29 =l add %t23, 17+ %t30 =l call $bytes__empty()+ call $memcpy(l %t29, l %t30, l 16)+ call $memset(l %t31, w 0, l 16)+ storel 1, %t31+ %t32 =l add %t31, 8+ storel %t23, %t32+ call $memcpy(l %__ret, l %t31, l 16)+ ret %__ret+@lbl5395+ jmp @lbl5396+@lbl5396+ dbgloc 602+ storel 0, %t33+ call $memcpy(l %__ret, l %t33, l 16)+ ret %__ret+}++function w $object__cache_evict_one(l %pack) {+@start+ %t0 =l alloc8 8+ %t3 =l alloc8 8+ %t5 =l alloc8 8+ %t7 =l alloc8 8+ %t16 =l alloc8 16+ %t27 =l alloc8 8+ %t36 =l alloc4 1+ %t50 =l alloc8 16+ %t62 =l alloc8 8+ %t93 =l alloc8 8+ dbgloc 605+ storel %pack, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "pack", "ref GitPack", %t0, 8, 7, 605+ dbgloc 606+ %t1 =l copy 1+ %t2 =l neg %t1+ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "victim", "i64", %t3, 8, 5, 606+ dbgloc 607+ %t4 =l copy 18446744073709551615+ storel %t4, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "oldest_off", "u64", %t5, 8, 7, 607+ dbgloc 608+ %t6 =l copy 0+ storel %t6, %t7+ call $__sx_dbg_keep(l %t7)+ dbgvar "i", "usize", %t7, 8, 5, 608+ dbgloc 609+ jmp @lbl5397+@lbl5397+ %t8 =l loadl %t7+ %t10 =l loadl %t0+ %t11 =l add %t10, 56+ %t12 =l loadl %t11+ %t13 =l call $sxqbe_list_len(l %t12)+ %t14 =w csltl %t8, %t13+ jnz %t14, @lbl5398, @lbl5400+@lbl5398+ dbgloc 610+ storel 0, %t16+ %t17 =l loadl %t0+ %t18 =l add %t17, 56+ %t19 =l loadl %t18+ %t20 =l loadl %t7+ %t21 =w call $sxqbe_list_valid(l %t19, l %t20)+ jnz %t21, @lbl5401, @lbl5402+@lbl5401+ %t22 =l call $sxqbe_list_buf(l %t19)+ %t23 =l mul %t20, 8+ %t24 =l add %t22, %t23+ %t25 =l loadl %t24+ %t26 =l add %t16, 8+ storel %t25, %t26+ storel 1, %t16+ jmp @lbl5403+@lbl5402+ jmp @lbl5403+@lbl5403+ storel %t16, %t27+ call $__sx_dbg_keep(l %t27)+ dbgvar "o", "option[ref GitCacheEntry]", %t27, 8, 5, 610+ dbgloc 611+ %t28 =l loadl %t16+ %t29 =w cnel %t28, 0+ jnz %t29, @lbl5404, @lbl5405+@lbl5404+ %t31 =l add %t16, 8+ %t30 =l loadl %t31+ dbgloc 612+ %t32 =l add %t30, 9+ %t33 =l loadl %t32+ %t34 =l copy 0+ %t35 =w cnel %t33, %t34+ storew %t35, %t36+ jnz %t35, @lbl5410, @lbl5411+@lbl5410+ %t37 =l loadl %t30+ %t38 =l loadl %t5+ %t39 =w csltl %t37, %t38+ storew %t39, %t36+ jmp @lbl5411+@lbl5411+ %t40 =w loadw %t36+ jnz %t40, @lbl5407, @lbl5408+@lbl5407+ dbgloc 613+ %t41 =l loadl %t30+ storel %t41, %t5+ dbgloc 614+ %t42 =l loadl %t7+ %t43 =l copy %t42+ storel %t43, %t3+ jmp @lbl5408+@lbl5408+ jmp @lbl5406+@lbl5405+ jmp @lbl5406+@lbl5406+ dbgloc 617+ %t44 =l loadl %t7+ %t45 =l add %t44, 1+ storel %t45, %t7+ jmp @lbl5399+@lbl5399+ jmp @lbl5397+@lbl5400+ dbgloc 619+ %t46 =l loadl %t3+ %t47 =l copy 0+ %t48 =w csltl %t46, %t47+ jnz %t48, @lbl5412, @lbl5413+@lbl5412+ dbgloc 620+ ret 0+@lbl5413+ dbgloc 622+ storel 0, %t50+ %t51 =l loadl %t0+ %t52 =l add %t51, 56+ %t53 =l loadl %t52+ %t54 =l loadl %t3+ %t55 =l copy %t54+ %t56 =w call $sxqbe_list_valid(l %t53, l %t55)+ jnz %t56, @lbl5415, @lbl5416+@lbl5415+ %t57 =l call $sxqbe_list_buf(l %t53)+ %t58 =l mul %t55, 8+ %t59 =l add %t57, %t58+ %t60 =l loadl %t59+ %t61 =l add %t50, 8+ storel %t60, %t61+ storel 1, %t50+ jmp @lbl5417+@lbl5416+ jmp @lbl5417+@lbl5417+ storel %t50, %t62+ call $__sx_dbg_keep(l %t62)+ dbgvar "vo", "option[ref GitCacheEntry]", %t62, 8, 5, 622+ dbgloc 623+ %t63 =l loadl %t50+ %t64 =w cnel %t63, 0+ jnz %t64, @lbl5418, @lbl5419+@lbl5418+ %t66 =l add %t50, 8+ %t65 =l loadl %t66+ dbgloc 624+ %t67 =l add %t65, 9+ %t68 =l loadl %t67+ %t69 =l copy 0+ %t70 =w cnel %t68, %t69+ jnz %t70, @lbl5421, @lbl5422+@lbl5421+ dbgloc 625+ %t71 =l loadl %t0+ %t73 =l add %t71, 80+ %t72 =l loadl %t73+ %t74 =l add %t65, 9+ %t76 =l add %t74, 8+ %t75 =l loadl %t76+ %t77 =l sub %t72, %t75+ %t78 =l loadl %t0+ %t79 =l add %t78, 80+ storel %t77, %t79+ dbgloc 626+ %t80 =l loadl %t0+ %t82 =l add %t80, 88+ %t81 =l loadl %t82+ %t83 =l copy 1+ %t84 =l sub %t81, %t83+ %t85 =l loadl %t0+ %t86 =l add %t85, 88+ storel %t84, %t86+ dbgloc 627+ %t87 =l loadl %t0+ %t88 =l loadl %t65+ %t89 =w call $object__cache_map_remove(l %t87, l %t88)+ dbgloc 628+ %t90 =l add %t65, 9+ %t91 =l loadl %t90+ %t92 =l copy %t91+ storel %t92, %t93+ call $__sx_dbg_keep(l %t93)+ dbgvar "bp", "ref ", %t93, 8, 7, 628+ dbgloc 629+ %t95 =l loadl %t93+ call $free(l %t95)+ %t94 =l copy 0+ dbgloc 630+ %t96 =l call $bytes__empty()+ %t97 =l add %t65, 9+ call $memcpy(l %t97, l %t96, l 16)+ jmp @lbl5422+@lbl5422+ jmp @lbl5420+@lbl5419+ jmp @lbl5420+@lbl5420+ ret 0+}++function w $object__cache_store(l %pack, l %offset, w %kind, l %body) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t3 =l alloc8 8+ %t8 =l alloc4 1+ %t34 =l alloc4 1+ %t55 =l alloc8 8+ %t63 =l alloc8 8+ %t65 =l alloc8 8+ %t74 =l alloc8 16+ %t85 =l alloc8 8+ %t149 =l alloc8 8+ dbgloc 635+ storel %pack, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "pack", "ref GitPack", %t0, 8, 7, 635+ storel %offset, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "offset", "u64", %t1, 8, 7, 635+ storew %kind, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "kind", "u8", %t2, 1, 7, 635+ storel %body, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "body", "bytes.Bytes", %t3, 8, 5, 635+ dbgloc 636+ %t5 =l add %body, 8+ %t4 =l loadl %t5+ %t6 =l copy 0+ %t7 =w csltl %t4, %t6+ storew %t7, %t8+ jnz %t7, @lbl5428, @lbl5427+@lbl5427+ %t10 =l add %body, 8+ %t9 =l loadl %t10+ %t11 =l copy 536870912+ %t12 =w csgtl %t9, %t11+ storew %t12, %t8+ jmp @lbl5428+@lbl5428+ %t13 =w loadw %t8+ jnz %t13, @lbl5424, @lbl5425+@lbl5424+ dbgloc 637+ %t14 =l copy 0+ ret %t14+@lbl5425+ dbgloc 639+ %t15 =l loadl %t0+ %t16 =l call $object__cache_slot(l %t15, l %offset)+ %t17 =l copy 0+ %t19 =w csltl %t16, %t17+ %t18 =w ceqw %t19, 0+ jnz %t18, @lbl5429, @lbl5430+@lbl5429+ dbgloc 640+ %t20 =l copy 0+ ret %t20+@lbl5430+ dbgloc 642+ jmp @lbl5432+@lbl5432+ %t21 =l loadl %t0+ %t23 =l add %t21, 88+ %t22 =l loadl %t23+ %t24 =l copy 0+ %t25 =w csgtl %t22, %t24+ jnz %t25, @lbl5433, @lbl5435+@lbl5433+ dbgloc 643+ %t26 =l loadl %t0+ %t28 =l add %t26, 80+ %t27 =l loadl %t28+ %t30 =l add %body, 8+ %t29 =l loadl %t30+ %t31 =l add %t27, %t29+ %t32 =l copy 536870912+ %t33 =w cslel %t31, %t32+ storew %t33, %t34+ jnz %t33, @lbl5439, @lbl5440+@lbl5439+ %t35 =l loadl %t0+ %t37 =l add %t35, 88+ %t36 =l loadl %t37+ %t38 =l copy 32768+ %t39 =w csltl %t36, %t38+ storew %t39, %t34+ jmp @lbl5440+@lbl5440+ %t40 =w loadw %t34+ jnz %t40, @lbl5436, @lbl5437+@lbl5436+ dbgloc 645+ jmp @lbl5435+@lbl5437+ dbgloc 647+ %t41 =l loadl %t0+ %t42 =w call $object__cache_evict_one(l %t41)+ jmp @lbl5434+@lbl5434+ jmp @lbl5432+@lbl5435+ dbgloc 649+ %t43 =l loadl %t0+ %t45 =l add %t43, 80+ %t44 =l loadl %t45+ %t47 =l add %body, 8+ %t46 =l loadl %t47+ %t48 =l add %t44, %t46+ %t49 =l copy 536870912+ %t50 =w csgtl %t48, %t49+ jnz %t50, @lbl5441, @lbl5442+@lbl5441+ dbgloc 650+ %t51 =l copy 0+ ret %t51+@lbl5442+ dbgloc 652+ %t53 =l copy 25+ %t52 =l call $malloc(l %t53)+ %t54 =l copy %t52+ storel %t54, %t55+ call $__sx_dbg_keep(l %t55)+ dbgvar "e", "ref GitCacheEntry", %t55, 8, 7, 652+ dbgloc 653+ %t56 =l loadl %t55+ storel %offset, %t56+ dbgloc 654+ %t57 =l loadl %t55+ %t58 =l add %t57, 8+ storeb %kind, %t58+ dbgloc 655+ %t59 =l loadl %t55+ %t60 =l add %t59, 9+ call $memcpy(l %t60, l %body, l 16)+ dbgloc 656+ %t61 =l copy 1+ %t62 =l neg %t61+ storel %t62, %t63+ call $__sx_dbg_keep(l %t63)+ dbgvar "slot", "i64", %t63, 8, 5, 656+ dbgloc 657+ %t64 =l copy 0+ storel %t64, %t65+ call $__sx_dbg_keep(l %t65)+ dbgvar "i", "usize", %t65, 8, 5, 657+ dbgloc 658+ jmp @lbl5444+@lbl5444+ %t66 =l loadl %t65+ %t68 =l loadl %t0+ %t69 =l add %t68, 56+ %t70 =l loadl %t69+ %t71 =l call $sxqbe_list_len(l %t70)+ %t72 =w csltl %t66, %t71+ jnz %t72, @lbl5445, @lbl5447+@lbl5445+ dbgloc 659+ storel 0, %t74+ %t75 =l loadl %t0+ %t76 =l add %t75, 56+ %t77 =l loadl %t76+ %t78 =l loadl %t65+ %t79 =w call $sxqbe_list_valid(l %t77, l %t78)+ jnz %t79, @lbl5448, @lbl5449+@lbl5448+ %t80 =l call $sxqbe_list_buf(l %t77)+ %t81 =l mul %t78, 8+ %t82 =l add %t80, %t81+ %t83 =l loadl %t82+ %t84 =l add %t74, 8+ storel %t83, %t84+ storel 1, %t74+ jmp @lbl5450+@lbl5449+ jmp @lbl5450+@lbl5450+ storel %t74, %t85+ call $__sx_dbg_keep(l %t85)+ dbgvar "o", "option[ref GitCacheEntry]", %t85, 8, 5, 659+ dbgloc 660+ %t86 =l loadl %t74+ %t87 =w cnel %t86, 0+ jnz %t87, @lbl5451, @lbl5452+@lbl5451+ %t89 =l add %t74, 8+ %t88 =l loadl %t89+ dbgloc 661+ %t90 =l add %t88, 9+ %t91 =l loadl %t90+ %t92 =l copy 0+ %t93 =w ceql %t91, %t92+ jnz %t93, @lbl5454, @lbl5455+@lbl5454+ dbgloc 662+ %t94 =l loadl %t65+ %t95 =l copy %t94+ storel %t95, %t63+ dbgloc 663+ jmp @lbl5447+@lbl5455+ jmp @lbl5453+@lbl5452+ jmp @lbl5453+@lbl5453+ dbgloc 666+ %t96 =l loadl %t65+ %t97 =l add %t96, 1+ storel %t97, %t65+ jmp @lbl5446+@lbl5446+ jmp @lbl5444+@lbl5447+ dbgloc 668+ %t98 =l loadl %t63+ %t99 =l copy 0+ %t101 =w csltl %t98, %t99+ %t100 =w ceqw %t101, 0+ jnz %t100, @lbl5457, @lbl5459+@lbl5457+ dbgloc 669+ %t103 =l loadl %t0+ %t104 =l add %t103, 56+ %t105 =l loadl %t104+ %t106 =l loadl %t63+ %t107 =l copy %t106+ %t108 =l loadl %t55+ %t109 =l loadl %t105+ %t110 =l mul %t107, 8+ %t111 =l add %t109, %t110+ storel %t108, %t111+ %t102 =l copy 0+ jmp @lbl5458+@lbl5459+ dbgloc 671+ %t113 =l loadl %t0+ %t114 =l add %t113, 56+ %t115 =l call $sxqbe_list_ensure(l %t114)+ %t116 =l loadl %t55+ %t117 =l add %t115, 8+ %t118 =l add %t115, 16+ %t119 =l loadl %t117+ %t120 =l loadl %t118+ %t122 =l add %t119, 1+ %t121 =w call $sxqbe_list_grow(l %t115, l %t122)+ %t123 =l call $sxqbe_list_buf(l %t115)+ %t124 =l mul %t119, 8+ %t125 =l add %t123, %t124+ storel %t116, %t125+ %t126 =l add %t119, 1+ storel %t126, %t117+ %t112 =l copy 0+ jmp @lbl5458+@lbl5458+ dbgloc 673+ %t127 =l loadl %t0+ %t129 =l add %t127, 80+ %t128 =l loadl %t129+ %t131 =l add %body, 8+ %t130 =l loadl %t131+ %t132 =l add %t128, %t130+ %t133 =l loadl %t0+ %t134 =l add %t133, 80+ storel %t132, %t134+ dbgloc 674+ %t135 =l loadl %t0+ %t137 =l add %t135, 88+ %t136 =l loadl %t137+ %t138 =l copy 1+ %t139 =l add %t136, %t138+ %t140 =l loadl %t0+ %t141 =l add %t140, 88+ storel %t139, %t141+ dbgloc 675+ %t143 =l loadl %t0+ %t144 =l add %t143, 56+ %t145 =l loadl %t144+ %t146 =l call $sxqbe_list_len(l %t145)+ %t147 =l copy 1+ %t148 =l sub %t146, %t147+ storel %t148, %t149+ call $__sx_dbg_keep(l %t149)+ dbgvar "map_slot", "usize", %t149, 8, 5, 675+ dbgloc 676+ %t150 =l loadl %t63+ %t151 =l copy 0+ %t153 =w csltl %t150, %t151+ %t152 =w ceqw %t153, 0+ jnz %t152, @lbl5460, @lbl5462+@lbl5460+ dbgloc 677+ %t154 =l loadl %t0+ %t155 =l loadl %t63+ %t156 =l copy %t155+ %t157 =w call $object__cache_map_put(l %t154, l %offset, l %t156)+ jmp @lbl5461+@lbl5462+ dbgloc 679+ %t158 =l loadl %t0+ %t159 =w call $object__cache_map_put(l %t158, l %offset, l %t148)+ jmp @lbl5461+@lbl5461+ dbgloc 681+ %t160 =l copy 1+ ret %t160+}++function w $object__cache_free(l %pack) {+@start+ %t0 =l alloc8 8+ %t11 =l alloc8 8+ %t26 =l alloc8 8+ %t30 =l alloc8 8+ dbgloc 684+ storel %pack, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "pack", "ref GitPack", %t0, 8, 7, 684+ dbgloc 685+ %t2 =l add %pack, 64+ %t1 =l loadl %t2+ %t3 =l copy 0+ %t4 =w cnel %t1, %t3+ jnz %t4, @lbl5463, @lbl5464+@lbl5463+ dbgloc 686+ %t7 =l add %pack, 64+ %t6 =l loadl %t7+ %t8 =l copy %t6+ call $free(l %t8)+ %t5 =l copy 0+ jmp @lbl5464+@lbl5464+ dbgloc 688+ %t10 =l add %pack, 56+ %t9 =l loadl %t10+ storel 0, %t11+ %t12 =l call $sxqbe_list_len(l %t9)+@lbl5466+ %t13 =l loadl %t11+ %t14 =w csltl %t13, %t12+ jnz %t14, @lbl5467, @lbl5468+@lbl5467+ %t15 =l call $sxqbe_list_buf(l %t9)+ %t16 =l mul %t13, 8+ %t17 =l add %t15, %t16+ %t18 =l loadl %t17+ dbgloc 689+ %t19 =l add %t18, 9+ %t20 =l loadl %t19+ %t21 =l copy 0+ %t22 =w cnel %t20, %t21+ jnz %t22, @lbl5470, @lbl5471+@lbl5470+ dbgloc 690+ %t23 =l add %t18, 9+ %t24 =l loadl %t23+ %t25 =l copy %t24+ storel %t25, %t26+ call $__sx_dbg_keep(l %t26)+ dbgvar "bp", "ref ", %t26, 8, 7, 690+ dbgloc 691+ %t28 =l loadl %t26+ call $free(l %t28)+ %t27 =l copy 0+ jmp @lbl5471+@lbl5471+ dbgloc 693+ %t29 =l copy %t18+ storel %t29, %t30+ call $__sx_dbg_keep(l %t30)+ dbgvar "ep", "ref ", %t30, 8, 7, 693+ dbgloc 694+ %t32 =l loadl %t30+ call $free(l %t32)+ %t31 =l copy 0+@lbl5469+ %t33 =l add %t13, 1+ storel %t33, %t11+ jmp @lbl5466+@lbl5468+ dbgloc 696+ %t36 =l add %pack, 56+ %t35 =l loadl %t36+ call $sxqbe_list_free(l %t35)+ %t34 =l copy 0+ ret 0+}++function l $object__read_at(l %__ret, l %repo, l %pack, l %start, w %verify, w %use_cache) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t3 =l alloc8 8+ %t4 =l alloc8 8+ %t7 =l alloc8 16+ %t8 =l alloc8 8+ %t13 =l alloc8 16+ %t17 =l alloc8 8+ %t19 =l alloc8 8+ %t25 =l alloc8 16+ %t32 =l alloc8 8+ %t42 =l alloc8 8+ %t45 =l alloc8 16+ %t46 =l alloc8 8+ %t48 =l alloc8 8+ %t56 =l alloc8 16+ %t62 =l alloc8 16+ %t67 =l alloc8 8+ %t69 =l alloc8 8+ %t73 =l alloc8 8+ %t81 =l alloc8 16+ %t88 =l alloc8 8+ %t96 =l alloc8 8+ %t105 =l alloc8 8+ %t113 =l alloc8 16+ %t120 =l alloc8 8+ %t155 =l alloc8 16+ %t170 =l alloc8 8+ %t174 =l alloc8 16+ %t175 =l alloc8 8+ %t178 =l alloc8 8+ %t183 =l alloc8 16+ %t189 =l alloc4 1+ %t193 =l alloc4 1+ %t198 =l alloc8 16+ %t206 =l alloc8 16+ %t216 =l alloc4 1+ %t224 =l alloc8 16+ %t227 =l alloc8 33+ %t235 =l alloc8 8+ %t245 =l alloc8 16+ %t251 =l alloc8 16+ %t252 =l alloc8 8+ %t263 =l alloc8 16+ %t267 =l alloc8 16+ %t268 =l alloc8 8+ %t279 =l alloc8 16+ %t285 =l alloc8 16+ %t286 =l alloc8 8+ %t289 =l alloc8 8+ %t300 =l alloc8 16+ %t307 =l alloc8 8+ %t314 =l alloc4 1+ %t319 =l alloc8 16+ %t327 =l alloc8 16+ dbgloc 699+ storel %repo, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "repo", "GitRepo", %t0, 8, 5, 699+ storel %pack, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "pack", "ref GitPack", %t1, 8, 7, 699+ storel %start, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "start", "u64", %t2, 8, 7, 699+ storew %verify, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "verify", "bool", %t3, 1, 7, 699+ storew %use_cache, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "use_cache", "bool", %t4, 1, 7, 699+ dbgloc 706+ jnz %use_cache, @lbl5473, @lbl5474+@lbl5473+ dbgloc 707+ %t5 =l loadl %t1+ %t6 =l call $object__cache_lookup(l %t7, l %t5, l %start)+ storel %t7, %t8+ call $__sx_dbg_keep(l %t8)+ dbgvar "cached", "option[Object]", %t8, 8, 5, 707+ dbgloc 708+ %t9 =l loadl %t7+ %t10 =w cnel %t9, 0+ jnz %t10, @lbl5476, @lbl5477+@lbl5476+ %t12 =l add %t7, 8+ %t11 =l loadl %t12+ dbgloc 709+ call $memset(l %t13, w 0, l 16)+ storel 0, %t13+ %t14 =l add %t13, 8+ storel %t11, %t14+ call $memcpy(l %__ret, l %t13, l 16)+ ret %__ret+@lbl5477+ jmp @lbl5478+@lbl5478+ jmp @lbl5474+@lbl5474+ dbgloc 712+ %t15 =l loadl %t1+ %t16 =l add %t15, 16+ storel %t16, %t17+ call $__sx_dbg_keep(l %t17)+ dbgvar "data", "bytes.Bytes", %t17, 8, 5, 712+ dbgloc 713+ %t18 =l copy %start+ storel %t18, %t19+ call $__sx_dbg_keep(l %t19)+ dbgvar "pos", "usize", %t19, 8, 5, 713+ dbgloc 714+ %t20 =l loadl %t19+ %t22 =l add %t16, 8+ %t21 =l loadl %t22+ %t24 =w csltl %t20, %t21+ %t23 =w ceqw %t24, 0+ jnz %t23, @lbl5479, @lbl5480+@lbl5479+ dbgloc 715+ call $memset(l %t25, w 0, l 16)+ storel 1, %t25+ %t26 =l copy 1+ %t27 =l add %t25, 8+ storel %t26, %t27+ call $memcpy(l %__ret, l %t25, l 16)+ ret %__ret+@lbl5480+ dbgloc 717+ %t28 =l loadl %t19+ %t29 =w call $bytes__Bytes__at(l %t16, l %t28)+ %t30 =w copy %t29+ %t31 =w extub %t30+ storew %t31, %t32+ call $__sx_dbg_keep(l %t32)+ dbgvar "c0", "u8", %t32, 1, 7, 717+ dbgloc 718+ %t33 =l extsw %t31+ %t34 =l copy 4+ %t36 =l extuw %t33+ %t35 =l shr %t36, %t34+ %t37 =l copy 7+ %t38 =l and %t35, %t37+ %t39 =w copy %t38+ %t40 =w copy %t39+ %t41 =w extub %t40+ storew %t41, %t42+ call $__sx_dbg_keep(l %t42)+ dbgvar "kind", "u8", %t42, 1, 7, 718+ dbgloc 719+ %t43 =l copy %start+ %t44 =l call $object__read_be_varint(l %t45, l %t16, l %t43)+ storel %t45, %t46+ call $__sx_dbg_keep(l %t46)+ dbgvar "size_opt", "option[GitVarint]", %t46, 8, 5, 719+ dbgloc 720+ %t47 =l copy 0+ storel %t47, %t48+ call $__sx_dbg_keep(l %t48)+ dbgvar "size", "u64", %t48, 8, 7, 720+ dbgloc 721+ %t49 =l loadl %t45+ %t50 =w cnel %t49, 0+ jnz %t50, @lbl5482, @lbl5483+@lbl5482+ %t52 =l add %t45, 8+ %t51 =l loadl %t52+ dbgloc 723+ %t53 =l loadl %t51+ storel %t53, %t48+ dbgloc 724+ %t55 =l add %t51, 8+ %t54 =l loadl %t55+ storel %t54, %t19+ jmp @lbl5484+@lbl5483+ dbgloc 727+ call $memset(l %t56, w 0, l 16)+ storel 1, %t56+ %t57 =l copy 1+ %t58 =l add %t56, 8+ storel %t57, %t58+ call $memcpy(l %__ret, l %t56, l 16)+ ret %__ret+@lbl5484+ dbgloc 730+ %t59 =l loadl %t48+ %t60 =l copy 2147483648+ %t61 =w csgtl %t59, %t60+ jnz %t61, @lbl5485, @lbl5486+@lbl5485+ dbgloc 731+ call $memset(l %t62, w 0, l 16)+ storel 1, %t62+ %t63 =l copy 2+ %t64 =l add %t62, 8+ storel %t63, %t64+ call $memcpy(l %__ret, l %t62, l 16)+ ret %__ret+@lbl5486+ dbgloc 734+ %t65 =l call $bytes__empty()+ %t66 =l call $malloc(l 16)+ call $memset(l %t66, w 0, l 16)+ call $memcpy(l %t66, l %t65, l 16)+ storel %t66, %t67+ call $__sx_dbg_keep(l %t67)+ dbgvar "base_oid", "bytes.Bytes", %t67, 8, 5, 734+ dbgloc 735+ %t68 =l copy 0+ storel %t68, %t69+ call $__sx_dbg_keep(l %t69)+ dbgvar "base_off", "u64", %t69, 8, 7, 735+ dbgloc 736+ %t70 =l copy 0+ %t71 =w copy %t70+ %t72 =w extub %t71+ storew %t72, %t73+ call $__sx_dbg_keep(l %t73)+ dbgvar "has_base_off", "bool", %t73, 1, 7, 736+ dbgloc 737+ %t74 =w copy 6+ %t75 =w ceqw %t41, %t74+ jnz %t75, @lbl5488, @lbl5490+@lbl5488+ dbgloc 738+ %t76 =l loadl %t19+ %t78 =l add %t16, 8+ %t77 =l loadl %t78+ %t80 =w csltl %t76, %t77+ %t79 =w ceqw %t80, 0+ jnz %t79, @lbl5493, @lbl5494+@lbl5493+ dbgloc 739+ call $memset(l %t81, w 0, l 16)+ storel 1, %t81+ %t82 =l copy 1+ %t83 =l add %t81, 8+ storel %t82, %t83+ call $memcpy(l %__ret, l %t81, l 16)+ ret %__ret+@lbl5494+ dbgloc 741+ %t84 =l loadl %t19+ %t85 =w call $bytes__Bytes__at(l %t16, l %t84)+ %t86 =w copy %t85+ %t87 =w extub %t86+ storew %t87, %t88+ call $__sx_dbg_keep(l %t88)+ dbgvar "c", "u8", %t88, 1, 7, 741+ dbgloc 742+ %t89 =l loadl %t19+ %t90 =l add %t89, 1+ storel %t90, %t19+ dbgloc 743+ %t91 =l extsw %t87+ %t92 =l copy 127+ %t94 =l extsw %t91+ %t93 =l and %t94, %t92+ %t95 =l copy %t93+ storel %t95, %t96+ call $__sx_dbg_keep(l %t96)+ dbgvar "acc", "u64", %t96, 8, 7, 743+ dbgloc 744+ %t97 =l extsw %t87+ %t98 =l copy 128+ %t100 =l extsw %t97+ %t99 =l and %t100, %t98+ %t101 =l copy 0+ %t102 =w cnel %t99, %t101+ %t103 =w copy %t102+ %t104 =w extub %t103+ storew %t104, %t105+ call $__sx_dbg_keep(l %t105)+ dbgvar "more", "bool", %t105, 1, 7, 744+ dbgloc 745+ jmp @lbl5496+@lbl5496+ %t107 =w loadw %t105+ %t106 =l extsw %t107+ jnz %t106, @lbl5497, @lbl5499+@lbl5497+ dbgloc 746+ %t108 =l loadl %t19+ %t110 =l add %t16, 8+ %t109 =l loadl %t110+ %t112 =w csltl %t108, %t109+ %t111 =w ceqw %t112, 0+ jnz %t111, @lbl5500, @lbl5501+@lbl5500+ dbgloc 747+ call $memset(l %t113, w 0, l 16)+ storel 1, %t113+ %t114 =l copy 1+ %t115 =l add %t113, 8+ storel %t114, %t115+ call $memcpy(l %__ret, l %t113, l 16)+ ret %__ret+@lbl5501+ dbgloc 749+ %t116 =l loadl %t19+ %t117 =w call $bytes__Bytes__at(l %t16, l %t116)+ %t118 =w copy %t117+ %t119 =w extub %t118+ storew %t119, %t120+ call $__sx_dbg_keep(l %t120)+ dbgvar "c2", "u8", %t120, 1, 7, 749+ dbgloc 750+ %t121 =l loadl %t19+ %t122 =l add %t121, 1+ storel %t122, %t19+ dbgloc 751+ %t123 =l loadl %t96+ %t124 =l copy 1+ %t125 =l add %t123, %t124+ %t126 =l copy 7+ %t127 =l shl %t125, %t126+ %t128 =l extsw %t119+ %t129 =l copy 127+ %t131 =l extsw %t128+ %t130 =l and %t131, %t129+ %t132 =l copy %t130+ %t133 =l or %t127, %t132+ storel %t133, %t96+ dbgloc 752+ %t134 =l extsw %t119+ %t135 =l copy 128+ %t137 =l extsw %t134+ %t136 =l and %t137, %t135+ %t138 =l copy 0+ %t139 =w cnel %t136, %t138+ %t140 =w copy %t139+ %t141 =w extub %t140+ storew %t141, %t105+ jmp @lbl5498+@lbl5498+ jmp @lbl5496+@lbl5499+ dbgloc 754+ %t142 =l copy 1+ %t143 =w copy %t142+ %t144 =w extub %t143+ storew %t144, %t73+ dbgloc 755+ %t145 =l loadl %t96+ %t146 =l sub %start, %t145+ storel %t146, %t69+ jmp @lbl5489+@lbl5490+ %t147 =w copy 7+ %t148 =w ceqw %t41, %t147+ jnz %t148, @lbl5491, @lbl5489+@lbl5491+ dbgloc 757+ %t149 =l loadl %t19+ %t150 =l copy 20+ %t151 =l add %t149, %t150+ %t153 =l add %t16, 8+ %t152 =l loadl %t153+ %t154 =w csgtl %t151, %t152+ jnz %t154, @lbl5503, @lbl5504+@lbl5503+ dbgloc 758+ call $memset(l %t155, w 0, l 16)+ storel 1, %t155+ %t156 =l copy 1+ %t157 =l add %t155, 8+ storel %t156, %t157+ call $memcpy(l %__ret, l %t155, l 16)+ ret %__ret+@lbl5504+ dbgloc 760+ %t158 =l loadl %t19+ %t159 =l loadl %t19+ %t160 =l copy 20+ %t161 =l add %t159, %t160+ %t162 =l call $bytes__Bytes__slice(l %t16, l %t158, l %t161)+ storel %t162, %t67+ dbgloc 761+ %t163 =l loadl %t19+ %t164 =l copy 20+ %t165 =l add %t163, %t164+ storel %t165, %t19+ jmp @lbl5489+@lbl5489+ dbgloc 764+ %t166 =l loadl %t19+ %t168 =l add %t16, 8+ %t167 =l loadl %t168+ %t169 =l call $bytes__Bytes__slice(l %t16, l %t166, l %t167)+ storel %t169, %t170+ call $__sx_dbg_keep(l %t170)+ dbgvar "comp", "bytes.Bytes", %t170, 8, 5, 764+ dbgloc 765+ %t171 =l loadl %t48+ %t172 =l copy %t171+ %t173 =l call $object__inflate_exact(l %t174, l %t169, l %t172)+ storel %t174, %t175+ call $__sx_dbg_keep(l %t175)+ dbgvar "inflated_opt", "option[bytes.Bytes]", %t175, 8, 5, 765+ dbgloc 766+ %t176 =l call $bytes__empty()+ %t177 =l call $malloc(l 16)+ call $memset(l %t177, w 0, l 16)+ call $memcpy(l %t177, l %t176, l 16)+ storel %t177, %t178+ call $__sx_dbg_keep(l %t178)+ dbgvar "inflated", "bytes.Bytes", %t178, 8, 5, 766+ dbgloc 767+ %t179 =l loadl %t174+ %t180 =w cnel %t179, 0+ jnz %t180, @lbl5506, @lbl5507+@lbl5506+ %t182 =l add %t174, 8+ %t181 =l loadl %t182+ dbgloc 769+ storel %t181, %t178+ jmp @lbl5508+@lbl5507+ dbgloc 772+ call $memset(l %t183, w 0, l 16)+ storel 1, %t183+ %t184 =l copy 1+ %t185 =l add %t183, 8+ storel %t184, %t185+ call $memcpy(l %__ret, l %t183, l 16)+ ret %__ret+@lbl5508+ dbgloc 776+ %t186 =w copy 1+ %t188 =w csltw %t41, %t186+ %t187 =w ceqw %t188, 0+ storew %t187, %t189+ jnz %t187, @lbl5512, @lbl5513+@lbl5512+ %t190 =w copy 4+ %t191 =w cslew %t41, %t190+ storew %t191, %t189+ jmp @lbl5513+@lbl5513+ %t192 =w loadw %t189+ jnz %t192, @lbl5509, @lbl5510+@lbl5509+ dbgloc 777+ storew %use_cache, %t193+ jnz %use_cache, @lbl5517, @lbl5518+@lbl5517+ %t194 =l loadl %t1+ %t195 =l loadl %t178+ %t196 =w call $object__cache_store(l %t194, l %start, w %t41, l %t195)+ storew %t196, %t193+ jmp @lbl5518+@lbl5518+ %t197 =w loadw %t193+ jnz %t197, @lbl5514, @lbl5515+@lbl5514+ dbgloc 778+ call $memset(l %t198, w 0, l 16)+ storel 0, %t198+ %t199 =l call $malloc(l 33)+ storeb %t41, %t199+ %t201 =l add %t199, 1+ %t202 =l loadl %t178+ call $memcpy(l %t201, l %t202, l 16)+ %t203 =l add %t199, 17+ %t204 =l call $bytes__empty()+ call $memcpy(l %t203, l %t204, l 16)+ %t205 =l add %t198, 8+ storel %t199, %t205+ call $memcpy(l %__ret, l %t198, l 16)+ ret %__ret+@lbl5515+ dbgloc 780+ call $memset(l %t206, w 0, l 16)+ storel 0, %t206+ %t207 =l call $malloc(l 33)+ storeb %t41, %t207+ %t209 =l add %t207, 1+ %t210 =l loadl %t178+ call $memcpy(l %t209, l %t210, l 16)+ %t211 =l add %t207, 17+ %t212 =l loadl %t178+ call $memcpy(l %t211, l %t212, l 16)+ %t213 =l add %t206, 8+ storel %t207, %t213+ call $memcpy(l %__ret, l %t206, l 16)+ ret %__ret+@lbl5510+ dbgloc 782+ %t214 =w copy 6+ %t215 =w cnew %t41, %t214+ storew %t215, %t216+ jnz %t215, @lbl5522, @lbl5523+@lbl5522+ %t217 =w copy 7+ %t218 =w cnew %t41, %t217+ storew %t218, %t216+ jmp @lbl5523+@lbl5523+ %t219 =w loadw %t216+ jnz %t219, @lbl5519, @lbl5520+@lbl5519+ dbgloc 783+ %t221 =l loadl %t178+ %t222 =l loadl %t221+ %t223 =l copy %t222+ call $free(l %t223)+ %t220 =l copy 0+ dbgloc 784+ call $memset(l %t224, w 0, l 16)+ storel 1, %t224+ %t225 =l copy 1+ %t226 =l add %t224, 8+ storel %t225, %t226+ call $memcpy(l %__ret, l %t224, l 16)+ ret %__ret+@lbl5520+ dbgloc 787+ %t228 =l copy 0+ storeb %t228, %t227+ %t230 =l add %t227, 1+ %t231 =l call $bytes__empty()+ call $memcpy(l %t230, l %t231, l 16)+ %t232 =l add %t227, 17+ %t233 =l call $bytes__empty()+ call $memcpy(l %t232, l %t233, l 16)+ %t234 =l call $malloc(l 33)+ call $memset(l %t234, w 0, l 33)+ call $memcpy(l %t234, l %t227, l 33)+ storel %t234, %t235+ call $__sx_dbg_keep(l %t235)+ dbgvar "base", "Object", %t235, 8, 5, 787+ dbgloc 788+ %t237 =w loadw %t73+ %t236 =l extsw %t237+ jnz %t236, @lbl5524, @lbl5526+@lbl5524+ dbgloc 789+ %t238 =l loadl %t69+ %t240 =w csltl %t238, %start+ %t239 =w ceqw %t240, 0+ jnz %t239, @lbl5527, @lbl5528+@lbl5527+ dbgloc 790+ %t242 =l loadl %t178+ %t243 =l loadl %t242+ %t244 =l copy %t243+ call $free(l %t244)+ %t241 =l copy 0+ dbgloc 791+ call $memset(l %t245, w 0, l 16)+ storel 1, %t245+ %t246 =l copy 1+ %t247 =l add %t245, 8+ storel %t246, %t247+ call $memcpy(l %__ret, l %t245, l 16)+ ret %__ret+@lbl5528+ dbgloc 793+ %t248 =l loadl %t1+ %t249 =l loadl %t69+ %t250 =l call $object__read_at(l %t251, l %repo, l %t248, l %t249, w %verify, w %use_cache)+ storel %t251, %t252+ call $__sx_dbg_keep(l %t252)+ dbgvar "br", "result[Object, GitError]", %t252, 8, 5, 793+ dbgloc 794+ %t253 =l loadl %t251+ %t254 =w ceql %t253, 0+ jnz %t254, @lbl5530, @lbl5531+@lbl5530+ %t256 =l add %t251, 8+ %t255 =l loadl %t256+ dbgloc 796+ storel %t255, %t235+ jmp @lbl5532+@lbl5531+ %t258 =l add %t251, 8+ %t257 =l loadl %t258+ dbgloc 799+ %t260 =l loadl %t178+ %t261 =l loadl %t260+ %t262 =l copy %t261+ call $free(l %t262)+ %t259 =l copy 0+ dbgloc 800+ call $memset(l %t263, w 0, l 16)+ storel 1, %t263+ %t264 =l add %t263, 8+ storel %t257, %t264+ call $memcpy(l %__ret, l %t263, l 16)+ ret %__ret+@lbl5532+ jmp @lbl5525+@lbl5526+ dbgloc 804+ %t265 =l loadl %t67+ %t266 =l call $object__read_impl(l %t267, l %repo, l %t265, w %verify, w %use_cache)+ storel %t267, %t268+ call $__sx_dbg_keep(l %t268)+ dbgvar "br2", "result[Object, GitError]", %t268, 8, 5, 804+ dbgloc 805+ %t269 =l loadl %t267+ %t270 =w ceql %t269, 0+ jnz %t270, @lbl5533, @lbl5534+@lbl5533+ %t272 =l add %t267, 8+ %t271 =l loadl %t272+ dbgloc 807+ storel %t271, %t235+ jmp @lbl5535+@lbl5534+ %t274 =l add %t267, 8+ %t273 =l loadl %t274+ dbgloc 810+ %t276 =l loadl %t178+ %t277 =l loadl %t276+ %t278 =l copy %t277+ call $free(l %t278)+ %t275 =l copy 0+ dbgloc 811+ call $memset(l %t279, w 0, l 16)+ storel 1, %t279+ %t280 =l add %t279, 8+ storel %t273, %t280+ call $memcpy(l %__ret, l %t279, l 16)+ ret %__ret+@lbl5535+ jmp @lbl5525+@lbl5525+ dbgloc 816+ %t281 =l loadl %t235+ %t282 =l add %t281, 1+ %t283 =l loadl %t178+ %t284 =l call $object__apply_delta(l %t285, l %t282, l %t283)+ storel %t285, %t286+ call $__sx_dbg_keep(l %t286)+ dbgvar "merged_opt", "option[bytes.Bytes]", %t286, 8, 5, 816+ dbgloc 817+ %t287 =l call $bytes__empty()+ %t288 =l call $malloc(l 16)+ call $memset(l %t288, w 0, l 16)+ call $memcpy(l %t288, l %t287, l 16)+ storel %t288, %t289+ call $__sx_dbg_keep(l %t289)+ dbgvar "merged", "bytes.Bytes", %t289, 8, 5, 817+ dbgloc 818+ %t290 =l loadl %t285+ %t291 =w cnel %t290, 0+ jnz %t291, @lbl5536, @lbl5537+@lbl5536+ %t293 =l add %t285, 8+ %t292 =l loadl %t293+ dbgloc 820+ storel %t292, %t289+ jmp @lbl5538+@lbl5537+ dbgloc 823+ %t294 =l loadl %t235+ %t295 =w call $object__free_object(l %t294)+ dbgloc 824+ %t297 =l loadl %t178+ %t298 =l loadl %t297+ %t299 =l copy %t298+ call $free(l %t299)+ %t296 =l copy 0+ dbgloc 825+ call $memset(l %t300, w 0, l 16)+ storel 1, %t300+ %t301 =l copy 1+ %t302 =l add %t300, 8+ storel %t301, %t302+ call $memcpy(l %__ret, l %t300, l 16)+ ret %__ret+@lbl5538+ dbgloc 828+ %t303 =l loadl %t235+ %t304 =l loadub %t303+ %t305 =w copy %t304+ %t306 =w extub %t305+ storew %t306, %t307+ call $__sx_dbg_keep(l %t307)+ dbgvar "base_kind", "u8", %t307, 1, 7, 828+ dbgloc 829+ %t308 =l loadl %t235+ %t309 =w call $object__free_object(l %t308)+ dbgloc 830+ %t311 =l loadl %t178+ %t312 =l loadl %t311+ %t313 =l copy %t312+ call $free(l %t313)+ %t310 =l copy 0+ dbgloc 831+ storew %use_cache, %t314+ jnz %use_cache, @lbl5542, @lbl5543+@lbl5542+ %t315 =l loadl %t1+ %t316 =l loadl %t289+ %t317 =w call $object__cache_store(l %t315, l %start, w %t306, l %t316)+ storew %t317, %t314+ jmp @lbl5543+@lbl5543+ %t318 =w loadw %t314+ jnz %t318, @lbl5539, @lbl5540+@lbl5539+ dbgloc 832+ call $memset(l %t319, w 0, l 16)+ storel 0, %t319+ %t320 =l call $malloc(l 33)+ storeb %t306, %t320+ %t322 =l add %t320, 1+ %t323 =l loadl %t289+ call $memcpy(l %t322, l %t323, l 16)+ %t324 =l add %t320, 17+ %t325 =l call $bytes__empty()+ call $memcpy(l %t324, l %t325, l 16)+ %t326 =l add %t319, 8+ storel %t320, %t326+ call $memcpy(l %__ret, l %t319, l 16)+ ret %__ret+@lbl5540+ dbgloc 834+ call $memset(l %t327, w 0, l 16)+ storel 0, %t327+ %t328 =l call $malloc(l 33)+ storeb %t306, %t328+ %t330 =l add %t328, 1+ %t331 =l loadl %t289+ call $memcpy(l %t330, l %t331, l 16)+ %t332 =l add %t328, 17+ %t333 =l loadl %t289+ call $memcpy(l %t332, l %t333, l 16)+ %t334 =l add %t327, 8+ storel %t328, %t334+ call $memcpy(l %__ret, l %t327, l 16)+ ret %__ret+}++function l $object__read_loose(l %__ret, l %repo, l %oid, w %verify) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t4 =l alloc8 8+ %t9 =l alloc8 8+ %t12 =l alloc8 8+ %t17 =l alloc8 8+ %t19 =l alloc8 8+ %t21 =l alloc8 8+ %t29 =l alloc8 8+ %t32 =l alloc8 16+ %t34 =l alloc8 16+ %t35 =l alloc8 8+ %t39 =l alloc8 8+ %t44 =l alloc8 16+ %t47 =l alloc8 16+ %t48 =l alloc8 8+ %t53 =l alloc8 8+ %t58 =l alloc8 16+ %t60 =l alloc8 8+ %t66 =l alloc4 1+ %t76 =l alloc8 8+ %t82 =l alloc4 1+ %t94 =l alloc4 1+ %t106 =l alloc8 16+ %t114 =l alloc8 8+ %t121 =l alloc8 16+ %t128 =l alloc8 8+ %t130 =l alloc8 8+ %t132 =l alloc8 8+ %t141 =l alloc8 8+ %t144 =l alloc4 1+ %t152 =l alloc8 16+ %t172 =l alloc8 8+ %t182 =l alloc8 16+ %t183 =l alloc8 33+ %t191 =l alloc8 8+ %t192 =l alloc4 1+ %t197 =l alloc8 16+ %t198 =l alloc8 16+ dbgloc 837+ storel %repo, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "repo", "GitRepo", %t0, 8, 5, 837+ storel %oid, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "oid", "bytes.Bytes", %t1, 8, 5, 837+ storew %verify, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "verify", "bool", %t2, 1, 7, 837+ dbgloc 838+ %t3 =l call $object__oid_hex(l %oid)+ storel %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "hex", "ref u8", %t4, 8, 7, 838+ dbgloc 839+ %t5 =l add %repo, 0+ %t6 =l copy $__str164+ %t7 =l call $std__str__from_cstr(l %t6)+ %t8 =l call $files__join(l %t5, l %t7)+ storel %t8, %t9+ call $__sx_dbg_keep(l %t9)+ dbgvar "objroot", "str.StringView", %t9, 8, 5, 839+ dbgloc 840+ %t10 =l copy 2+ %t11 =l call $std__str__view(l %t3, l %t10)+ storel %t11, %t12+ call $__sx_dbg_keep(l %t12)+ dbgvar "dirname", "str.StringView", %t12, 8, 5, 840+ dbgloc 841+ %t14 =l copy 2+ %t13 =l add %t3, %t14+ %t15 =l copy 38+ %t16 =l call $std__str__view(l %t13, l %t15)+ storel %t16, %t17+ call $__sx_dbg_keep(l %t17)+ dbgvar "rest", "str.StringView", %t17, 8, 5, 841+ dbgloc 842+ %t18 =l call $files__join(l %t8, l %t11)+ storel %t18, %t19+ call $__sx_dbg_keep(l %t19)+ dbgvar "dir", "str.StringView", %t19, 8, 5, 842+ dbgloc 843+ %t20 =l call $files__join(l %t18, l %t16)+ storel %t20, %t21+ call $__sx_dbg_keep(l %t21)+ dbgvar "path", "str.StringView", %t21, 8, 5, 843+ dbgloc 844+ %t22 =w call $files__free_path(l %t8)+ dbgloc 845+ %t23 =w call $files__free_path(l %t18)+ dbgloc 846+ %t25 =l copy %t3+ call $free(l %t25)+ %t24 =l copy 0+ dbgloc 847+ %t26 =w call $files__exists_file(l %t20)+ %t27 =w copy %t26+ %t28 =w extub %t27+ storew %t28, %t29+ call $__sx_dbg_keep(l %t29)+ dbgvar "exists", "bool", %t29, 1, 7, 847+ dbgloc 848+ %t30 =w ceqw %t28, 0+ jnz %t30, @lbl5544, @lbl5545+@lbl5544+ dbgloc 849+ %t31 =w call $files__free_path(l %t20)+ dbgloc 850+ storel 0, %t32+ call $memcpy(l %__ret, l %t32, l 16)+ ret %__ret+@lbl5545+ dbgloc 852+ %t33 =l call $files__read_all(l %t34, l %t20)+ storel %t34, %t35+ call $__sx_dbg_keep(l %t35)+ dbgvar "data_opt", "option[bytes.Bytes]", %t35, 8, 5, 852+ dbgloc 853+ %t36 =w call $files__free_path(l %t20)+ dbgloc 854+ %t37 =l call $bytes__empty()+ %t38 =l call $malloc(l 16)+ call $memset(l %t38, w 0, l 16)+ call $memcpy(l %t38, l %t37, l 16)+ storel %t38, %t39+ call $__sx_dbg_keep(l %t39)+ dbgvar "compressed", "bytes.Bytes", %t39, 8, 5, 854+ dbgloc 855+ %t40 =l loadl %t34+ %t41 =w cnel %t40, 0+ jnz %t41, @lbl5547, @lbl5548+@lbl5547+ %t43 =l add %t34, 8+ %t42 =l loadl %t43+ dbgloc 857+ storel %t42, %t39+ jmp @lbl5549+@lbl5548+ dbgloc 860+ storel 0, %t44+ call $memcpy(l %__ret, l %t44, l 16)+ ret %__ret+@lbl5549+ dbgloc 863+ %t45 =l loadl %t39+ %t46 =l call $object__inflate_unknown(l %t47, l %t45)+ storel %t47, %t48+ call $__sx_dbg_keep(l %t48)+ dbgvar "inflated_opt", "option[bytes.Bytes]", %t48, 8, 5, 863+ dbgloc 864+ %t49 =l loadl %t39+ %t50 =w call $files__free_buffer(l %t49)+ dbgloc 865+ %t51 =l call $bytes__empty()+ %t52 =l call $malloc(l 16)+ call $memset(l %t52, w 0, l 16)+ call $memcpy(l %t52, l %t51, l 16)+ storel %t52, %t53+ call $__sx_dbg_keep(l %t53)+ dbgvar "inflated", "bytes.Bytes", %t53, 8, 5, 865+ dbgloc 866+ %t54 =l loadl %t47+ %t55 =w cnel %t54, 0+ jnz %t55, @lbl5550, @lbl5551+@lbl5550+ %t57 =l add %t47, 8+ %t56 =l loadl %t57+ dbgloc 868+ storel %t56, %t53+ jmp @lbl5552+@lbl5551+ dbgloc 871+ storel 0, %t58+ call $memcpy(l %__ret, l %t58, l 16)+ ret %__ret+@lbl5552+ dbgloc 874+ %t59 =l copy 0+ storel %t59, %t60+ call $__sx_dbg_keep(l %t60)+ dbgvar "space", "usize", %t60, 8, 5, 874+ dbgloc 875+ jmp @lbl5553+@lbl5553+ %t61 =l loadl %t60+ %t62 =l loadl %t53+ %t64 =l add %t62, 8+ %t63 =l loadl %t64+ %t65 =w csltl %t61, %t63+ storew %t65, %t66+ jnz %t65, @lbl5557, @lbl5558+@lbl5557+ %t67 =l loadl %t53+ %t68 =l loadl %t60+ %t69 =w call $bytes__Bytes__at(l %t67, l %t68)+ %t70 =w copy 32+ %t71 =w cnew %t69, %t70+ storew %t71, %t66+ jmp @lbl5558+@lbl5558+ %t72 =w loadw %t66+ jnz %t72, @lbl5554, @lbl5556+@lbl5554+ dbgloc 876+ %t73 =l loadl %t60+ %t74 =l add %t73, 1+ storel %t74, %t60+ jmp @lbl5555+@lbl5555+ jmp @lbl5553+@lbl5556+ dbgloc 878+ %t75 =l loadl %t60+ storel %t75, %t76+ call $__sx_dbg_keep(l %t76)+ dbgvar "nul", "usize", %t76, 8, 5, 878+ dbgloc 879+ jmp @lbl5559+@lbl5559+ %t77 =l loadl %t76+ %t78 =l loadl %t53+ %t80 =l add %t78, 8+ %t79 =l loadl %t80+ %t81 =w csltl %t77, %t79+ storew %t81, %t82+ jnz %t81, @lbl5563, @lbl5564+@lbl5563+ %t83 =l loadl %t53+ %t84 =l loadl %t76+ %t85 =w call $bytes__Bytes__at(l %t83, l %t84)+ %t86 =w copy 0+ %t87 =w cnew %t85, %t86+ storew %t87, %t82+ jmp @lbl5564+@lbl5564+ %t88 =w loadw %t82+ jnz %t88, @lbl5560, @lbl5562+@lbl5560+ dbgloc 880+ %t89 =l loadl %t76+ %t90 =l add %t89, 1+ storel %t90, %t76+ jmp @lbl5561+@lbl5561+ jmp @lbl5559+@lbl5562+ dbgloc 882+ %t91 =l loadl %t60+ %t92 =l copy 0+ %t93 =w ceql %t91, %t92+ storew %t93, %t94+ jnz %t93, @lbl5569, @lbl5568+@lbl5568+ %t95 =l loadl %t76+ %t96 =l loadl %t53+ %t98 =l add %t96, 8+ %t97 =l loadl %t98+ %t100 =w csltl %t95, %t97+ %t99 =w ceqw %t100, 0+ storew %t99, %t94+ jmp @lbl5569+@lbl5569+ %t101 =w loadw %t94+ jnz %t101, @lbl5565, @lbl5566+@lbl5565+ dbgloc 883+ %t103 =l loadl %t53+ %t104 =l loadl %t103+ %t105 =l copy %t104+ call $free(l %t105)+ %t102 =l copy 0+ dbgloc 884+ storel 0, %t106+ call $memcpy(l %__ret, l %t106, l 16)+ ret %__ret+@lbl5566+ dbgloc 886+ %t107 =l loadl %t53+ %t108 =l copy 0+ %t109 =l loadl %t60+ %t110 =l call $bytes__Bytes__slice(l %t107, l %t108, l %t109)+ %t111 =w call $object__kind_from_name(l %t110)+ %t112 =w copy %t111+ %t113 =w extub %t112+ storew %t113, %t114+ call $__sx_dbg_keep(l %t114)+ dbgvar "kind", "u8", %t114, 1, 7, 886+ dbgloc 887+ %t115 =w copy 0+ %t116 =w ceqw %t113, %t115+ jnz %t116, @lbl5570, @lbl5571+@lbl5570+ dbgloc 888+ %t118 =l loadl %t53+ %t119 =l loadl %t118+ %t120 =l copy %t119+ call $free(l %t120)+ %t117 =l copy 0+ dbgloc 889+ storel 0, %t121+ call $memcpy(l %__ret, l %t121, l 16)+ ret %__ret+@lbl5571+ dbgloc 891+ %t122 =l loadl %t53+ %t123 =l loadl %t60+ %t124 =l copy 1+ %t125 =l add %t123, %t124+ %t126 =l loadl %t76+ %t127 =l call $bytes__Bytes__slice(l %t122, l %t125, l %t126)+ storel %t127, %t128+ call $__sx_dbg_keep(l %t128)+ dbgvar "size_text", "bytes.Bytes", %t128, 8, 5, 891+ dbgloc 892+ %t129 =l copy 0+ storel %t129, %t130+ call $__sx_dbg_keep(l %t130)+ dbgvar "declared", "u64", %t130, 8, 7, 892+ dbgloc 893+ %t131 =l copy 0+ storel %t131, %t132+ call $__sx_dbg_keep(l %t132)+ dbgvar "i", "usize", %t132, 8, 5, 893+ dbgloc 894+ jmp @lbl5573+@lbl5573+ %t133 =l loadl %t132+ %t135 =l add %t127, 8+ %t134 =l loadl %t135+ %t136 =w csltl %t133, %t134+ jnz %t136, @lbl5574, @lbl5576+@lbl5574+ dbgloc 895+ %t137 =l loadl %t132+ %t138 =w call $bytes__Bytes__at(l %t127, l %t137)+ %t139 =w copy %t138+ %t140 =w extub %t139+ storew %t140, %t141+ call $__sx_dbg_keep(l %t141)+ dbgvar "c", "u8", %t141, 1, 7, 895+ dbgloc 896+ %t142 =w copy 48+ %t143 =w csltw %t140, %t142+ storew %t143, %t144+ jnz %t143, @lbl5581, @lbl5580+@lbl5580+ %t145 =w copy 57+ %t146 =w csgtw %t140, %t145+ storew %t146, %t144+ jmp @lbl5581+@lbl5581+ %t147 =w loadw %t144+ jnz %t147, @lbl5577, @lbl5578+@lbl5577+ dbgloc 897+ %t149 =l loadl %t53+ %t150 =l loadl %t149+ %t151 =l copy %t150+ call $free(l %t151)+ %t148 =l copy 0+ dbgloc 898+ storel 0, %t152+ call $memcpy(l %__ret, l %t152, l 16)+ ret %__ret+@lbl5578+ dbgloc 900+ %t153 =l loadl %t130+ %t154 =l copy 10+ %t155 =l mul %t153, %t154+ %t156 =l extsw %t140+ %t157 =l copy 48+ %t159 =l extsw %t156+ %t158 =l sub %t159, %t157+ %t160 =l copy %t158+ %t161 =l add %t155, %t160+ storel %t161, %t130+ dbgloc 901+ %t162 =l loadl %t132+ %t163 =l add %t162, 1+ storel %t163, %t132+ jmp @lbl5575+@lbl5575+ jmp @lbl5573+@lbl5576+ dbgloc 903+ %t164 =l loadl %t53+ %t165 =l loadl %t76+ %t166 =l copy 1+ %t167 =l add %t165, %t166+ %t168 =l loadl %t53+ %t170 =l add %t168, 8+ %t169 =l loadl %t170+ %t171 =l call $bytes__Bytes__slice(l %t164, l %t167, l %t169)+ storel %t171, %t172+ call $__sx_dbg_keep(l %t172)+ dbgvar "body", "bytes.Bytes", %t172, 8, 5, 903+ dbgloc 904+ %t174 =l add %t171, 8+ %t173 =l loadl %t174+ %t175 =l copy %t173+ %t176 =l loadl %t130+ %t177 =w cnel %t175, %t176+ jnz %t177, @lbl5582, @lbl5583+@lbl5582+ dbgloc 905+ %t179 =l loadl %t53+ %t180 =l loadl %t179+ %t181 =l copy %t180+ call $free(l %t181)+ %t178 =l copy 0+ dbgloc 906+ storel 0, %t182+ call $memcpy(l %__ret, l %t182, l 16)+ ret %__ret+@lbl5583+ dbgloc 908+ storeb %t113, %t183+ %t185 =l add %t183, 1+ call $memcpy(l %t185, l %t171, l 16)+ %t186 =l add %t183, 17+ %t187 =l loadl %t53+ call $memcpy(l %t186, l %t187, l 16)+ %t189 =l copy 0+ %t190 =w cnel %t183, 0+ jnz %t190, @lbl5585, @lbl5586+@lbl5585+ %t188 =l call $malloc(l 33)+ call $memset(l %t188, w 0, l 33)+ call $memcpy(l %t188, l %t183, l 33)+ %t189 =l copy %t188+@lbl5586+ storel %t189, %t191+ call $__sx_dbg_keep(l %t191)+ dbgvar "o", "Object", %t191, 8, 5, 908+ dbgloc 909+ storew %verify, %t192+ jnz %verify, @lbl5590, @lbl5591+@lbl5590+ %t193 =w call $object__verify_hash(l %oid, w %t113, l %t171)+ %t194 =w ceqw %t193, 0+ storew %t194, %t192+ jmp @lbl5591+@lbl5591+ %t195 =w loadw %t192+ jnz %t195, @lbl5587, @lbl5588+@lbl5587+ dbgloc 910+ %t196 =w call $object__free_object(l %t189)+ dbgloc 911+ storel 0, %t197+ call $memcpy(l %__ret, l %t197, l 16)+ ret %__ret+@lbl5588+ dbgloc 913+ call $memset(l %t198, w 0, l 16)+ storel 1, %t198+ %t199 =l add %t198, 8+ storel %t189, %t199+ call $memcpy(l %__ret, l %t198, l 16)+ ret %__ret+}++function l $object__read_impl(l %__ret, l %repo, l %oid, w %verify, w %use_cache) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t3 =l alloc8 8+ %t10 =l alloc8 8+ %t21 =l alloc8 8+ %t24 =l alloc8 16+ %t25 =l alloc8 8+ %t34 =l alloc8 16+ %t35 =l alloc8 8+ %t40 =l alloc4 1+ %t47 =l alloc8 16+ %t50 =l alloc8 16+ %t54 =l alloc8 16+ %t59 =l alloc8 16+ %t60 =l alloc8 8+ %t65 =l alloc8 16+ %t67 =l alloc8 16+ dbgloc 916+ storel %repo, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "repo", "GitRepo", %t0, 8, 5, 916+ storel %oid, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "oid", "bytes.Bytes", %t1, 8, 5, 916+ storew %verify, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "verify", "bool", %t2, 1, 7, 916+ storew %use_cache, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "use_cache", "bool", %t3, 1, 7, 916+ dbgloc 922+ %t5 =l add %oid, 8+ %t4 =l loadl %t5+ %t6 =l copy 20+ %t7 =w ceql %t4, %t6+ jnz %t7, @lbl5592, @lbl5593+@lbl5593+ %t8 =l copy $__str266+ call $dprintf(w 2, l %t8)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl5592+ dbgloc 925+ %t9 =l copy 0+ storel %t9, %t10+ call $__sx_dbg_keep(l %t10)+ dbgvar "i", "usize", %t10, 8, 5, 925+ dbgloc 926+ jmp @lbl5594+@lbl5594+ %t11 =l loadl %t10+ %t13 =l add %repo, 16+ %t14 =l loadl %t13+ %t15 =l call $sxqbe_list_len(l %t14)+ %t16 =w csltl %t11, %t15+ jnz %t16, @lbl5595, @lbl5597+@lbl5595+ dbgloc 927+ %t18 =l add %repo, 16+ %t17 =l loadl %t18+ %t19 =l loadl %t10+ %t20 =l call $object__pack_at(l %t17, l %t19)+ storel %t20, %t21+ call $__sx_dbg_keep(l %t21)+ dbgvar "p", "ref GitPack", %t21, 8, 7, 927+ dbgloc 928+ %t22 =l loadl %t21+ %t23 =l call $object__find_oid(l %t24, l %t22, l %oid)+ storel %t24, %t25+ call $__sx_dbg_keep(l %t25)+ dbgvar "found", "option[usize]", %t25, 8, 5, 928+ dbgloc 929+ %t26 =l loadl %t24+ %t27 =w cnel %t26, 0+ jnz %t27, @lbl5598, @lbl5599+@lbl5598+ %t29 =l add %t24, 8+ %t28 =l loadl %t29+ dbgloc 930+ %t30 =l loadl %t21+ %t31 =l loadl %t21+ %t32 =l call $object__offset_at(l %t31, l %t28)+ %t33 =l call $object__read_at(l %t34, l %repo, l %t30, l %t32, w %verify, w %use_cache)+ storel %t34, %t35+ call $__sx_dbg_keep(l %t35)+ dbgvar "r", "result[Object, GitError]", %t35, 8, 5, 930+ dbgloc 931+ %t36 =l loadl %t34+ %t37 =w ceql %t36, 0+ jnz %t37, @lbl5601, @lbl5602+@lbl5601+ %t39 =l add %t34, 8+ %t38 =l loadl %t39+ dbgloc 933+ storew %verify, %t40+ jnz %verify, @lbl5607, @lbl5608+@lbl5607+ %t41 =l loadub %t38+ %t42 =l add %t38, 1+ %t43 =w call $object__verify_hash(l %oid, w %t41, l %t42)+ %t44 =w ceqw %t43, 0+ storew %t44, %t40+ jmp @lbl5608+@lbl5608+ %t45 =w loadw %t40+ jnz %t45, @lbl5604, @lbl5605+@lbl5604+ dbgloc 934+ %t46 =w call $object__free_object(l %t38)+ dbgloc 935+ call $memset(l %t47, w 0, l 16)+ storel 1, %t47+ %t48 =l copy 4+ %t49 =l add %t47, 8+ storel %t48, %t49+ call $memcpy(l %__ret, l %t47, l 16)+ ret %__ret+@lbl5605+ dbgloc 937+ call $memset(l %t50, w 0, l 16)+ storel 0, %t50+ %t51 =l add %t50, 8+ storel %t38, %t51+ call $memcpy(l %__ret, l %t50, l 16)+ ret %__ret+@lbl5602+ %t53 =l add %t34, 8+ %t52 =l loadl %t53+ dbgloc 940+ call $memset(l %t54, w 0, l 16)+ storel 1, %t54+ %t55 =l add %t54, 8+ storel %t52, %t55+ call $memcpy(l %__ret, l %t54, l 16)+ ret %__ret+@lbl5603+ jmp @lbl5600+@lbl5599+ jmp @lbl5600+@lbl5600+ dbgloc 944+ %t56 =l loadl %t10+ %t57 =l add %t56, 1+ storel %t57, %t10+ jmp @lbl5596+@lbl5596+ jmp @lbl5594+@lbl5597+ dbgloc 946+ %t58 =l call $object__read_loose(l %t59, l %repo, l %oid, w %verify)+ storel %t59, %t60+ call $__sx_dbg_keep(l %t60)+ dbgvar "loose", "option[Object]", %t60, 8, 5, 946+ dbgloc 947+ %t61 =l loadl %t59+ %t62 =w cnel %t61, 0+ jnz %t62, @lbl5609, @lbl5610+@lbl5609+ %t64 =l add %t59, 8+ %t63 =l loadl %t64+ dbgloc 948+ call $memset(l %t65, w 0, l 16)+ storel 0, %t65+ %t66 =l add %t65, 8+ storel %t63, %t66+ call $memcpy(l %__ret, l %t65, l 16)+ ret %__ret+@lbl5610+ jmp @lbl5611+@lbl5611+ dbgloc 950+ call $memset(l %t67, w 0, l 16)+ storel 1, %t67+ %t68 =l copy 0+ %t69 =l add %t67, 8+ storel %t68, %t69+ call $memcpy(l %__ret, l %t67, l 16)+ ret %__ret+}++export function l $object__read(l %__ret, l %repo, l %oid) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t5 =l alloc8 16+ dbgloc 953+ storel %repo, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "repo", "GitRepo", %t0, 8, 5, 953+ storel %oid, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "oid", "bytes.Bytes", %t1, 8, 5, 953+ dbgloc 954+ %t2 =l copy 1+ %t3 =l copy 0+ %t4 =l call $object__read_impl(l %t5, l %repo, l %oid, w %t2, w %t3)+ call $memcpy(l %__ret, l %t5, l 16)+ ret %__ret+}++export function l $object__read_fast(l %__ret, l %repo, l %oid) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t5 =l alloc8 16+ dbgloc 959+ storel %repo, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "repo", "GitRepo", %t0, 8, 5, 959+ storel %oid, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "oid", "bytes.Bytes", %t1, 8, 5, 959+ dbgloc 960+ %t2 =l copy 0+ %t3 =l copy 1+ %t4 =l call $object__read_impl(l %t5, l %repo, l %oid, w %t2, w %t3)+ call $memcpy(l %__ret, l %t5, l 16)+ ret %__ret+}++function l $object__pack_at(l %packs, l %i) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t3 =l alloc8 16+ %t10 =l alloc8 8+ dbgloc 963+ storel %packs, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "packs", "list[ref GitPack]", %t0, 8, 5, 963+ storel %i, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "i", "usize", %t1, 8, 5, 963+ dbgloc 964+ storel 0, %t3+ %t4 =w call $sxqbe_list_valid(l %packs, l %i)+ jnz %t4, @lbl5612, @lbl5613+@lbl5612+ %t5 =l call $sxqbe_list_buf(l %packs)+ %t6 =l mul %i, 8+ %t7 =l add %t5, %t6+ %t8 =l loadl %t7+ %t9 =l add %t3, 8+ storel %t8, %t9+ storel 1, %t3+ jmp @lbl5614+@lbl5613+ jmp @lbl5614+@lbl5614+ storel %t3, %t10+ call $__sx_dbg_keep(l %t10)+ dbgvar "o", "option[ref GitPack]", %t10, 8, 5, 964+ dbgloc 965+ %t11 =l loadl %t3+ %t12 =w cnel %t11, 0+ jnz %t12, @lbl5615, @lbl5616+@lbl5615+ %t14 =l add %t3, 8+ %t13 =l loadl %t14+ dbgloc 966+ ret %t13+@lbl5616+ jmp @lbl5617+@lbl5617+ dbgloc 968+ %t15 =l copy 0+ jnz %t15, @lbl5618, @lbl5619+@lbl5619+ %t16 =l copy $__str267+ call $dprintf(w 2, l %t16)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl5618+ dbgloc 969+ %t17 =l copy 0+ ret %t17+}++function l $object__parse_idx(l %__ret, l %data, l %pack_count, l %pack_trailer) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t7 =l alloc8 16+ %t14 =l alloc8 8+ %t18 =l alloc8 16+ %t19 =l alloc8 8+ %t22 =l alloc8 8+ %t27 =l alloc8 16+ %t37 =l alloc8 8+ %t41 =l alloc8 16+ %t55 =l alloc8 16+ %t63 =l alloc4 1+ %t69 =l alloc4 1+ %t75 =l alloc4 1+ %t81 =l alloc4 1+ %t89 =l alloc8 8+ %t91 =l alloc8 8+ %t96 =l alloc8 8+ %t99 =l alloc8 16+ %t110 =l alloc8 16+ %t120 =l alloc8 8+ %t122 =l alloc8 16+ %t131 =l alloc8 8+ %t138 =l alloc8 8+ %t142 =l alloc8 8+ %t146 =l alloc8 8+ %t150 =l alloc8 8+ %t154 =l alloc8 8+ %t164 =l alloc8 16+ %t172 =l alloc8 8+ %t181 =l alloc8 16+ %t185 =l alloc8 8+ %t210 =l alloc8 8+ %t212 =l alloc8 8+ %t224 =l alloc8 8+ %t234 =l alloc8 16+ %t252 =l alloc8 8+ %t265 =l alloc8 16+ %t269 =l alloc8 8+ %t276 =l alloc8 8+ %t279 =l alloc8 8+ %t306 =l alloc8 8+ %t348 =l alloc8 16+ dbgloc 972+ storel %data, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "data", "bytes.Bytes", %t0, 8, 5, 972+ storel %pack_count, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "pack_count", "usize", %t1, 8, 5, 972+ storel %pack_trailer, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "pack_trailer", "bytes.Bytes", %t2, 8, 5, 972+ dbgloc 977+ %t4 =l add %data, 8+ %t3 =l loadl %t4+ %t5 =l copy 40+ %t6 =w csltl %t3, %t5+ jnz %t6, @lbl5620, @lbl5621+@lbl5620+ dbgloc 978+ call $memset(l %t7, w 0, l 16)+ storel 1, %t7+ %t8 =l copy 1+ %t9 =l add %t7, 8+ storel %t8, %t9+ call $memcpy(l %__ret, l %t7, l 16)+ ret %__ret+@lbl5621+ dbgloc 980+ %t11 =l add %data, 8+ %t10 =l loadl %t11+ %t12 =l copy 20+ %t13 =l sub %t10, %t12+ storel %t13, %t14+ call $__sx_dbg_keep(l %t14)+ dbgvar "trailer_off", "usize", %t14, 8, 5, 980+ dbgloc 981+ %t15 =l copy 0+ %t16 =l call $bytes__Bytes__slice(l %data, l %t15, l %t13)+ %t17 =l call $object__sha1_of(l %t18, l %t16)+ storel %t18, %t19+ call $__sx_dbg_keep(l %t19)+ dbgvar "check_opt", "option[bytes.Bytes]", %t19, 8, 5, 981+ dbgloc 982+ %t20 =l call $bytes__empty()+ %t21 =l call $malloc(l 16)+ call $memset(l %t21, w 0, l 16)+ call $memcpy(l %t21, l %t20, l 16)+ storel %t21, %t22+ call $__sx_dbg_keep(l %t22)+ dbgvar "check", "bytes.Bytes", %t22, 8, 5, 982+ dbgloc 983+ %t23 =l loadl %t18+ %t24 =w cnel %t23, 0+ jnz %t24, @lbl5623, @lbl5624+@lbl5623+ %t26 =l add %t18, 8+ %t25 =l loadl %t26+ dbgloc 985+ storel %t25, %t22+ jmp @lbl5625+@lbl5624+ dbgloc 988+ call $memset(l %t27, w 0, l 16)+ storel 1, %t27+ %t28 =l copy 5+ %t29 =l add %t27, 8+ storel %t28, %t29+ call $memcpy(l %__ret, l %t27, l 16)+ ret %__ret+@lbl5625+ dbgloc 991+ %t30 =l loadl %t22+ %t32 =l add %data, 8+ %t31 =l loadl %t32+ %t33 =l call $bytes__Bytes__slice(l %data, l %t13, l %t31)+ %t34 =w call $bytes__Bytes__eql(l %t30, l %t33)+ %t35 =w copy %t34+ %t36 =w extub %t35+ storew %t36, %t37+ call $__sx_dbg_keep(l %t37)+ dbgvar "check_ok", "bool", %t37, 1, 7, 991+ dbgloc 992+ %t38 =l loadl %t22+ %t39 =w call $object__free_digest(l %t38)+ dbgloc 993+ %t40 =w ceqw %t36, 0+ jnz %t40, @lbl5626, @lbl5627+@lbl5626+ dbgloc 994+ call $memset(l %t41, w 0, l 16)+ storel 1, %t41+ %t42 =l copy 1+ %t43 =l add %t41, 8+ storel %t42, %t43+ call $memcpy(l %__ret, l %t41, l 16)+ ret %__ret+@lbl5627+ dbgloc 996+ %t45 =l add %data, 8+ %t44 =l loadl %t45+ %t46 =l copy 40+ %t47 =l sub %t44, %t46+ %t49 =l add %data, 8+ %t48 =l loadl %t49+ %t50 =l copy 20+ %t51 =l sub %t48, %t50+ %t52 =l call $bytes__Bytes__slice(l %data, l %t47, l %t51)+ %t53 =w call $bytes__Bytes__eql(l %t52, l %pack_trailer)+ %t54 =w ceqw %t53, 0+ jnz %t54, @lbl5629, @lbl5630+@lbl5629+ dbgloc 1000+ call $memset(l %t55, w 0, l 16)+ storel 1, %t55+ %t56 =l copy 1+ %t57 =l add %t55, 8+ storel %t56, %t57+ call $memcpy(l %__ret, l %t55, l 16)+ ret %__ret+@lbl5630+ dbgloc 1003+ %t59 =l add %data, 8+ %t58 =l loadl %t59+ %t60 =l copy 8+ %t62 =w csltl %t58, %t60+ %t61 =w ceqw %t62, 0+ storew %t61, %t63+ jnz %t61, @lbl5632, @lbl5633+@lbl5632+ %t64 =l copy 0+ %t65 =w call $bytes__Bytes__at(l %data, l %t64)+ %t66 =w copy 255+ %t67 =w ceqw %t65, %t66+ storew %t67, %t63+ jmp @lbl5633+@lbl5633+ %t68 =w loadw %t63+ storew %t68, %t69+ jnz %t68, @lbl5634, @lbl5635+@lbl5634+ %t70 =l copy 1+ %t71 =w call $bytes__Bytes__at(l %data, l %t70)+ %t72 =w copy 116+ %t73 =w ceqw %t71, %t72+ storew %t73, %t69+ jmp @lbl5635+@lbl5635+ %t74 =w loadw %t69+ storew %t74, %t75+ jnz %t74, @lbl5636, @lbl5637+@lbl5636+ %t76 =l copy 2+ %t77 =w call $bytes__Bytes__at(l %data, l %t76)+ %t78 =w copy 79+ %t79 =w ceqw %t77, %t78+ storew %t79, %t75+ jmp @lbl5637+@lbl5637+ %t80 =w loadw %t75+ storew %t80, %t81+ jnz %t80, @lbl5638, @lbl5639+@lbl5638+ %t82 =l copy 3+ %t83 =w call $bytes__Bytes__at(l %data, l %t82)+ %t84 =w copy 99+ %t85 =w ceqw %t83, %t84+ storew %t85, %t81+ jmp @lbl5639+@lbl5639+ %t86 =w loadw %t81+ %t87 =w copy %t86+ %t88 =w extub %t87+ storew %t88, %t89+ call $__sx_dbg_keep(l %t89)+ dbgvar "is_v2", "bool", %t89, 1, 7, 1003+ dbgloc 1008+ %t90 =l copy 0+ storel %t90, %t91+ call $__sx_dbg_keep(l %t91)+ dbgvar "fanout_off", "usize", %t91, 8, 5, 1008+ dbgloc 1009+ jnz %t88, @lbl5640, @lbl5641+@lbl5640+ dbgloc 1010+ %t92 =l copy 8+ storel %t92, %t91+ jmp @lbl5641+@lbl5641+ dbgloc 1012+ jnz %t88, @lbl5643, @lbl5644+@lbl5643+ dbgloc 1013+ %t93 =l copy 4+ %t94 =w call $object__be32_at(l %data, l %t93)+ %t95 =w copy %t94+ storew %t95, %t96+ call $__sx_dbg_keep(l %t96)+ dbgvar "version", "u32", %t96, 4, 7, 1013+ dbgloc 1014+ %t97 =w copy 2+ %t98 =w cnew %t95, %t97+ jnz %t98, @lbl5646, @lbl5647+@lbl5646+ dbgloc 1015+ call $memset(l %t99, w 0, l 16)+ storel 1, %t99+ %t100 =l copy 2+ %t101 =l add %t99, 8+ storel %t100, %t101+ call $memcpy(l %__ret, l %t99, l 16)+ ret %__ret+@lbl5647+ jmp @lbl5644+@lbl5644+ dbgloc 1018+ %t103 =l add %data, 8+ %t102 =l loadl %t103+ %t104 =l loadl %t91+ %t105 =l copy 1024+ %t106 =l add %t104, %t105+ %t107 =l copy 40+ %t108 =l add %t106, %t107+ %t109 =w csltl %t102, %t108+ jnz %t109, @lbl5649, @lbl5650+@lbl5649+ dbgloc 1019+ call $memset(l %t110, w 0, l 16)+ storel 1, %t110+ %t111 =l copy 1+ %t112 =l add %t110, 8+ storel %t111, %t112+ call $memcpy(l %__ret, l %t110, l 16)+ ret %__ret+@lbl5650+ dbgloc 1021+ %t113 =l loadl %t91+ %t114 =l copy 255+ %t115 =l copy 4+ %t116 =l mul %t114, %t115+ %t117 =l add %t113, %t116+ %t118 =w call $object__be32_at(l %data, l %t117)+ %t119 =l extsw %t118+ storel %t119, %t120+ call $__sx_dbg_keep(l %t120)+ dbgvar "n", "usize", %t120, 8, 5, 1021+ dbgloc 1022+ %t121 =w cnel %t119, %pack_count+ jnz %t121, @lbl5652, @lbl5653+@lbl5652+ dbgloc 1023+ call $memset(l %t122, w 0, l 16)+ storel 1, %t122+ %t123 =l copy 1+ %t124 =l add %t122, 8+ storel %t123, %t124+ call $memcpy(l %__ret, l %t122, l 16)+ ret %__ret+@lbl5653+ dbgloc 1025+ %t126 =l copy 20+ %t127 =l mul %t119, %t126+ %t128 =l copy 1+ %t129 =l add %t127, %t128+ %t125 =l call $malloc(l %t129)+ %t130 =l copy %t125+ storel %t130, %t131+ call $__sx_dbg_keep(l %t131)+ dbgvar "oids", "ref u8", %t131, 8, 7, 1025+ dbgloc 1026+ %t133 =l copy 8+ %t134 =l mul %t119, %t133+ %t135 =l copy 1+ %t136 =l add %t134, %t135+ %t132 =l call $malloc(l %t136)+ %t137 =l copy %t132+ storel %t137, %t138+ call $__sx_dbg_keep(l %t138)+ dbgvar "offsets", "ref u8", %t138, 8, 7, 1026+ dbgloc 1027+ jnz %t88, @lbl5655, @lbl5657+@lbl5655+ dbgloc 1028+ %t139 =l loadl %t91+ %t140 =l copy 1024+ %t141 =l add %t139, %t140+ storel %t141, %t142+ call $__sx_dbg_keep(l %t142)+ dbgvar "names_off", "usize", %t142, 8, 5, 1028+ dbgloc 1029+ %t143 =l copy 20+ %t144 =l mul %t119, %t143+ %t145 =l add %t141, %t144+ storel %t145, %t146+ call $__sx_dbg_keep(l %t146)+ dbgvar "crcs_off", "usize", %t146, 8, 5, 1029+ dbgloc 1030+ %t147 =l copy 4+ %t148 =l mul %t119, %t147+ %t149 =l add %t145, %t148+ storel %t149, %t150+ call $__sx_dbg_keep(l %t150)+ dbgvar "offs_off", "usize", %t150, 8, 5, 1030+ dbgloc 1031+ %t151 =l copy 4+ %t152 =l mul %t119, %t151+ %t153 =l add %t149, %t152+ storel %t153, %t154+ call $__sx_dbg_keep(l %t154)+ dbgvar "large_off", "usize", %t154, 8, 5, 1031+ dbgloc 1032+ %t155 =l copy 40+ %t156 =l add %t153, %t155+ %t158 =l add %data, 8+ %t157 =l loadl %t158+ %t159 =w csgtl %t156, %t157+ jnz %t159, @lbl5658, @lbl5659+@lbl5658+ dbgloc 1033+ %t161 =l copy %t130+ call $free(l %t161)+ %t160 =l copy 0+ dbgloc 1034+ %t163 =l copy %t137+ call $free(l %t163)+ %t162 =l copy 0+ dbgloc 1035+ call $memset(l %t164, w 0, l 16)+ storel 1, %t164+ %t165 =l copy 1+ %t166 =l add %t164, 8+ storel %t165, %t166+ call $memcpy(l %__ret, l %t164, l 16)+ ret %__ret+@lbl5659+ dbgloc 1037+ %t168 =l add %data, 8+ %t167 =l loadl %t168+ %t169 =l copy 40+ %t170 =l sub %t167, %t169+ %t171 =l sub %t170, %t153+ storel %t171, %t172+ call $__sx_dbg_keep(l %t172)+ dbgvar "large_bytes", "usize", %t172, 8, 5, 1037+ dbgloc 1038+ %t173 =l copy 8+ %t174 =l rem %t171, %t173+ %t175 =l copy 0+ %t176 =w cnel %t174, %t175+ jnz %t176, @lbl5661, @lbl5662+@lbl5661+ dbgloc 1039+ %t178 =l copy %t130+ call $free(l %t178)+ %t177 =l copy 0+ dbgloc 1040+ %t180 =l copy %t137+ call $free(l %t180)+ %t179 =l copy 0+ dbgloc 1041+ call $memset(l %t181, w 0, l 16)+ storel 1, %t181+ %t182 =l copy 1+ %t183 =l add %t181, 8+ storel %t182, %t183+ call $memcpy(l %__ret, l %t181, l 16)+ ret %__ret+@lbl5662+ dbgloc 1043+ %t184 =l copy 0+ storel %t184, %t185+ call $__sx_dbg_keep(l %t185)+ dbgvar "i", "usize", %t185, 8, 5, 1043+ dbgloc 1044+ jmp @lbl5664+@lbl5664+ %t186 =l loadl %t185+ %t187 =w csltl %t186, %t119+ jnz %t187, @lbl5665, @lbl5667+@lbl5665+ dbgloc 1045+ %t190 =l loadl %t185+ %t191 =l copy 20+ %t192 =l mul %t190, %t191+ %t193 =l copy %t192+ %t189 =l add %t130, %t193+ %t194 =l copy %t189+ %t196 =l loadl %data+ %t197 =l loadl %t185+ %t198 =l copy 20+ %t199 =l mul %t197, %t198+ %t200 =l add %t141, %t199+ %t201 =l copy %t200+ %t195 =l add %t196, %t201+ %t202 =l copy %t195+ %t203 =l copy 20+ call $memcpy(l %t194, l %t202, l %t203)+ %t188 =l copy 0+ dbgloc 1050+ %t204 =l loadl %t185+ %t205 =l copy 4+ %t206 =l mul %t204, %t205+ %t207 =l add %t149, %t206+ %t208 =w call $object__be32_at(l %data, l %t207)+ %t209 =w copy %t208+ storew %t209, %t210+ call $__sx_dbg_keep(l %t210)+ dbgvar "raw_off", "u32", %t210, 4, 7, 1050+ dbgloc 1051+ %t211 =l extsw %t209+ storel %t211, %t212+ call $__sx_dbg_keep(l %t212)+ dbgvar "resolved", "u64", %t212, 8, 7, 1051+ dbgloc 1052+ %t213 =l extsw %t209+ %t214 =l copy 2147483648+ %t216 =l extsw %t213+ %t215 =l and %t216, %t214+ %t217 =l copy 0+ %t218 =w cnel %t215, %t217+ jnz %t218, @lbl5668, @lbl5669+@lbl5668+ dbgloc 1053+ %t219 =l extsw %t209+ %t220 =l copy 2147483647+ %t222 =l extsw %t219+ %t221 =l and %t222, %t220+ %t223 =l copy %t221+ storel %t223, %t224+ call $__sx_dbg_keep(l %t224)+ dbgvar "idx", "usize", %t224, 8, 5, 1053+ dbgloc 1054+ %t225 =l copy 8+ %t226 =l mul %t223, %t225+ %t227 =l copy 8+ %t228 =l add %t226, %t227+ %t229 =w csgtl %t228, %t171+ jnz %t229, @lbl5671, @lbl5672+@lbl5671+ dbgloc 1055+ %t231 =l copy %t130+ call $free(l %t231)+ %t230 =l copy 0+ dbgloc 1056+ %t233 =l copy %t137+ call $free(l %t233)+ %t232 =l copy 0+ dbgloc 1057+ call $memset(l %t234, w 0, l 16)+ storel 1, %t234+ %t235 =l copy 1+ %t236 =l add %t234, 8+ storel %t235, %t236+ call $memcpy(l %__ret, l %t234, l 16)+ ret %__ret+@lbl5672+ dbgloc 1059+ %t237 =l copy 8+ %t238 =l mul %t223, %t237+ %t239 =l add %t153, %t238+ %t240 =l call $object__be64_at(l %data, l %t239)+ storel %t240, %t212+ jmp @lbl5669+@lbl5669+ dbgloc 1061+ %t243 =l loadl %t185+ %t244 =l copy 8+ %t245 =l mul %t243, %t244+ %t246 =l copy %t245+ %t242 =l add %t137, %t246+ %t247 =l loadl %t212+ %t248 =l copy %t247+ storel %t248, %t242+ %t241 =l copy 0+ dbgloc 1062+ %t249 =l loadl %t185+ %t250 =l add %t249, 1+ storel %t250, %t185+ jmp @lbl5666+@lbl5666+ jmp @lbl5664+@lbl5667+ jmp @lbl5656+@lbl5657+ dbgloc 1065+ %t251 =l copy 1024+ storel %t251, %t252+ call $__sx_dbg_keep(l %t252)+ dbgvar "records_off", "usize", %t252, 8, 5, 1065+ dbgloc 1066+ %t253 =l copy 24+ %t254 =l mul %t119, %t253+ %t255 =l add %t251, %t254+ %t256 =l copy 40+ %t257 =l add %t255, %t256+ %t259 =l add %data, 8+ %t258 =l loadl %t259+ %t260 =w csgtl %t257, %t258+ jnz %t260, @lbl5674, @lbl5675+@lbl5674+ dbgloc 1067+ %t262 =l copy %t130+ call $free(l %t262)+ %t261 =l copy 0+ dbgloc 1068+ %t264 =l copy %t137+ call $free(l %t264)+ %t263 =l copy 0+ dbgloc 1069+ call $memset(l %t265, w 0, l 16)+ storel 1, %t265+ %t266 =l copy 1+ %t267 =l add %t265, 8+ storel %t266, %t267+ call $memcpy(l %__ret, l %t265, l 16)+ ret %__ret+@lbl5675+ dbgloc 1071+ %t268 =l copy 0+ storel %t268, %t269+ call $__sx_dbg_keep(l %t269)+ dbgvar "j", "usize", %t269, 8, 5, 1071+ dbgloc 1072+ jmp @lbl5677+@lbl5677+ %t270 =l loadl %t269+ %t271 =w csltl %t270, %t119+ jnz %t271, @lbl5678, @lbl5680+@lbl5678+ dbgloc 1073+ %t272 =l loadl %t269+ %t273 =l copy 24+ %t274 =l mul %t272, %t273+ %t275 =l add %t251, %t274+ storel %t275, %t276+ call $__sx_dbg_keep(l %t276)+ dbgvar "rec", "usize", %t276, 8, 5, 1073+ dbgloc 1074+ %t277 =w call $object__be32_at(l %data, l %t275)+ %t278 =l extsw %t277+ storel %t278, %t279+ call $__sx_dbg_keep(l %t279)+ dbgvar "off", "u64", %t279, 8, 7, 1074+ dbgloc 1075+ %t282 =l loadl %t269+ %t283 =l copy 8+ %t284 =l mul %t282, %t283+ %t285 =l copy %t284+ %t281 =l add %t137, %t285+ %t286 =l copy %t278+ storel %t286, %t281+ %t280 =l copy 0+ dbgloc 1076+ %t289 =l loadl %t269+ %t290 =l copy 20+ %t291 =l mul %t289, %t290+ %t292 =l copy %t291+ %t288 =l add %t130, %t292+ %t293 =l copy %t288+ %t295 =l loadl %data+ %t296 =l copy 4+ %t297 =l add %t275, %t296+ %t298 =l copy %t297+ %t294 =l add %t295, %t298+ %t299 =l copy %t294+ %t300 =l copy 20+ call $memcpy(l %t293, l %t299, l %t300)+ %t287 =l copy 0+ dbgloc 1081+ %t301 =l loadl %t269+ %t302 =l add %t301, 1+ storel %t302, %t269+ jmp @lbl5679+@lbl5679+ jmp @lbl5677+@lbl5680+ jmp @lbl5656+@lbl5656+ dbgloc 1085+ %t304 =l copy 96+ %t303 =l call $malloc(l %t304)+ %t305 =l copy %t303+ storel %t305, %t306+ call $__sx_dbg_keep(l %t306)+ dbgvar "p", "ref GitPack", %t306, 8, 7, 1085+ dbgloc 1086+ %t307 =l copy 0+ %t308 =l copy 0+ %t309 =l call $std__str__view(l %t307, l %t308)+ %t310 =l loadl %t306+ call $memcpy(l %t310, l %t309, l 16)+ dbgloc 1087+ %t311 =l call $bytes__empty()+ %t312 =l loadl %t306+ %t313 =l add %t312, 16+ call $memcpy(l %t313, l %t311, l 16)+ dbgloc 1088+ %t314 =l loadl %t306+ %t315 =l add %t314, 32+ storel %t119, %t315+ dbgloc 1089+ %t316 =l loadl %t306+ %t317 =l add %t316, 40+ storel %t130, %t317+ dbgloc 1090+ %t318 =l loadl %t306+ %t319 =l add %t318, 48+ storel %t137, %t319+ dbgloc 1091+ %t320 =l call $lists__new__GENMONO__ref_GitCacheEntry()++ %t321 =l loadl %t306+ %t322 =l add %t321, 56+ storel %t320, %t322+ dbgloc 1092+ %t323 =l copy 262144+ %t324 =l loadl %t306+ %t325 =l add %t324, 72+ storel %t323, %t325+ dbgloc 1093+ %t327 =l copy 262144+ %t328 =l copy 4+ %t329 =l mul %t327, %t328+ %t326 =l call $malloc(l %t329)+ %t330 =l copy %t326+ %t331 =l loadl %t306+ %t332 =l add %t331, 64+ storel %t330, %t332+ dbgloc 1094+ %t334 =l loadl %t306+ %t336 =l add %t334, 64+ %t335 =l loadl %t336+ %t337 =l copy %t335+ %t338 =l copy 0+ %t339 =l copy 262144+ %t340 =l copy 4+ %t341 =l mul %t339, %t340+ call $memset(l %t337, w %t338, l %t341)+ %t333 =l copy 0+ dbgloc 1095+ %t342 =l copy 0+ %t343 =l loadl %t306+ %t344 =l add %t343, 80+ storel %t342, %t344+ dbgloc 1096+ %t345 =l copy 0+ %t346 =l loadl %t306+ %t347 =l add %t346, 88+ storel %t345, %t347+ dbgloc 1097+ call $memset(l %t348, w 0, l 16)+ storel 0, %t348+ %t349 =l loadl %t306+ %t350 =l add %t348, 8+ storel %t349, %t350+ call $memcpy(l %__ret, l %t348, l 16)+ ret %__ret+}++function l $object__open_pack(l %__ret, l %pack_path, l %idx_path) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t3 =l alloc8 16+ %t4 =l alloc8 8+ %t7 =l alloc8 8+ %t12 =l alloc8 16+ %t20 =l alloc4 1+ %t33 =l alloc8 16+ %t40 =l alloc8 8+ %t43 =l alloc4 1+ %t49 =l alloc8 16+ %t56 =l alloc8 8+ %t62 =l alloc8 8+ %t68 =l alloc8 8+ %t73 =l alloc8 16+ %t74 =l alloc8 8+ %t77 =l alloc8 8+ %t84 =l alloc8 16+ %t91 =l alloc8 8+ %t97 =l alloc8 16+ %t101 =l alloc8 16+ %t102 =l alloc8 8+ %t105 =l alloc8 8+ %t112 =l alloc8 16+ %t117 =l alloc8 16+ %t118 =l alloc8 8+ %t122 =l alloc8 8+ %t131 =l alloc8 16+ %t137 =l alloc8 16+ dbgloc 1100+ storel %pack_path, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "pack_path", "str.StringView", %t0, 8, 5, 1100+ storel %idx_path, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "idx_path", "str.StringView", %t1, 8, 5, 1100+ dbgloc 1104+ %t2 =l call $files__read_all(l %t3, l %pack_path)+ storel %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "pdata_opt", "option[bytes.Bytes]", %t4, 8, 5, 1104+ dbgloc 1105+ %t5 =l call $bytes__empty()+ %t6 =l call $malloc(l 16)+ call $memset(l %t6, w 0, l 16)+ call $memcpy(l %t6, l %t5, l 16)+ storel %t6, %t7+ call $__sx_dbg_keep(l %t7)+ dbgvar "pdata", "bytes.Bytes", %t7, 8, 5, 1105+ dbgloc 1106+ %t8 =l loadl %t3+ %t9 =w cnel %t8, 0+ jnz %t9, @lbl5681, @lbl5682+@lbl5681+ %t11 =l add %t3, 8+ %t10 =l loadl %t11+ dbgloc 1108+ storel %t10, %t7+ jmp @lbl5683+@lbl5682+ dbgloc 1111+ call $memset(l %t12, w 0, l 16)+ storel 1, %t12+ %t13 =l copy 3+ %t14 =l add %t12, 8+ storel %t13, %t14+ call $memcpy(l %__ret, l %t12, l 16)+ ret %__ret+@lbl5683+ dbgloc 1114+ %t15 =l loadl %t7+ %t17 =l add %t15, 8+ %t16 =l loadl %t17+ %t18 =l copy 32+ %t19 =w csltl %t16, %t18+ storew %t19, %t20+ jnz %t19, @lbl5688, @lbl5687+@lbl5687+ %t21 =l loadl %t7+ %t22 =l copy 0+ %t23 =l copy 4+ %t24 =l call $bytes__Bytes__slice(l %t21, l %t22, l %t23)+ %t25 =l copy $__str268+ %t26 =l copy 4+ %t27 =l call $bytes__bytes(l %t25, l %t26)+ %t28 =w call $bytes__Bytes__eql(l %t24, l %t27)+ %t29 =w ceqw %t28, 0+ storew %t29, %t20+ jmp @lbl5688+@lbl5688+ %t30 =w loadw %t20+ jnz %t30, @lbl5684, @lbl5685+@lbl5684+ dbgloc 1115+ %t31 =l loadl %t7+ %t32 =w call $files__free_buffer(l %t31)+ dbgloc 1116+ call $memset(l %t33, w 0, l 16)+ storel 1, %t33+ %t34 =l copy 1+ %t35 =l add %t33, 8+ storel %t34, %t35+ call $memcpy(l %__ret, l %t33, l 16)+ ret %__ret+@lbl5685+ dbgloc 1118+ %t36 =l loadl %t7+ %t37 =l copy 4+ %t38 =w call $object__be32_at(l %t36, l %t37)+ %t39 =w copy %t38+ storew %t39, %t40+ call $__sx_dbg_keep(l %t40)+ dbgvar "version", "u32", %t40, 4, 7, 1118+ dbgloc 1119+ %t41 =w copy 2+ %t42 =w cnew %t39, %t41+ storew %t42, %t43+ jnz %t42, @lbl5692, @lbl5693+@lbl5692+ %t44 =w copy 3+ %t45 =w cnew %t39, %t44+ storew %t45, %t43+ jmp @lbl5693+@lbl5693+ %t46 =w loadw %t43+ jnz %t46, @lbl5689, @lbl5690+@lbl5689+ dbgloc 1120+ %t47 =l loadl %t7+ %t48 =w call $files__free_buffer(l %t47)+ dbgloc 1121+ call $memset(l %t49, w 0, l 16)+ storel 1, %t49+ %t50 =l copy 2+ %t51 =l add %t49, 8+ storel %t50, %t51+ call $memcpy(l %__ret, l %t49, l 16)+ ret %__ret+@lbl5690+ dbgloc 1123+ %t52 =l loadl %t7+ %t53 =l copy 8+ %t54 =w call $object__be32_at(l %t52, l %t53)+ %t55 =l extsw %t54+ storel %t55, %t56+ call $__sx_dbg_keep(l %t56)+ dbgvar "count", "usize", %t56, 8, 5, 1123+ dbgloc 1124+ %t57 =l loadl %t7+ %t59 =l add %t57, 8+ %t58 =l loadl %t59+ %t60 =l copy 20+ %t61 =l sub %t58, %t60+ storel %t61, %t62+ call $__sx_dbg_keep(l %t62)+ dbgvar "trailer_off", "usize", %t62, 8, 5, 1124+ dbgloc 1125+ %t63 =l loadl %t7+ %t64 =l loadl %t7+ %t66 =l add %t64, 8+ %t65 =l loadl %t66+ %t67 =l call $bytes__Bytes__slice(l %t63, l %t61, l %t65)+ storel %t67, %t68+ call $__sx_dbg_keep(l %t68)+ dbgvar "pack_trailer", "bytes.Bytes", %t68, 8, 5, 1125+ dbgloc 1126+ %t69 =l loadl %t7+ %t70 =l copy 0+ %t71 =l call $bytes__Bytes__slice(l %t69, l %t70, l %t61)+ %t72 =l call $object__sha1_of(l %t73, l %t71)+ storel %t73, %t74+ call $__sx_dbg_keep(l %t74)+ dbgvar "hash_opt", "option[bytes.Bytes]", %t74, 8, 5, 1126+ dbgloc 1127+ %t75 =l call $bytes__empty()+ %t76 =l call $malloc(l 16)+ call $memset(l %t76, w 0, l 16)+ call $memcpy(l %t76, l %t75, l 16)+ storel %t76, %t77+ call $__sx_dbg_keep(l %t77)+ dbgvar "hash", "bytes.Bytes", %t77, 8, 5, 1127+ dbgloc 1128+ %t78 =l loadl %t73+ %t79 =w cnel %t78, 0+ jnz %t79, @lbl5694, @lbl5695+@lbl5694+ %t81 =l add %t73, 8+ %t80 =l loadl %t81+ dbgloc 1130+ storel %t80, %t77+ jmp @lbl5696+@lbl5695+ dbgloc 1133+ %t82 =l loadl %t7+ %t83 =w call $files__free_buffer(l %t82)+ dbgloc 1134+ call $memset(l %t84, w 0, l 16)+ storel 1, %t84+ %t85 =l copy 5+ %t86 =l add %t84, 8+ storel %t85, %t86+ call $memcpy(l %__ret, l %t84, l 16)+ ret %__ret+@lbl5696+ dbgloc 1137+ %t87 =l loadl %t77+ %t88 =w call $bytes__Bytes__eql(l %t87, l %t67)+ %t89 =w copy %t88+ %t90 =w extub %t89+ storew %t90, %t91+ call $__sx_dbg_keep(l %t91)+ dbgvar "hash_ok", "bool", %t91, 1, 7, 1137+ dbgloc 1138+ %t92 =l loadl %t77+ %t93 =w call $object__free_digest(l %t92)+ dbgloc 1139+ %t94 =w ceqw %t90, 0+ jnz %t94, @lbl5697, @lbl5698+@lbl5697+ dbgloc 1140+ %t95 =l loadl %t7+ %t96 =w call $files__free_buffer(l %t95)+ dbgloc 1141+ call $memset(l %t97, w 0, l 16)+ storel 1, %t97+ %t98 =l copy 1+ %t99 =l add %t97, 8+ storel %t98, %t99+ call $memcpy(l %__ret, l %t97, l 16)+ ret %__ret+@lbl5698+ dbgloc 1144+ %t100 =l call $files__read_all(l %t101, l %idx_path)+ storel %t101, %t102+ call $__sx_dbg_keep(l %t102)+ dbgvar "idata_opt", "option[bytes.Bytes]", %t102, 8, 5, 1144+ dbgloc 1145+ %t103 =l call $bytes__empty()+ %t104 =l call $malloc(l 16)+ call $memset(l %t104, w 0, l 16)+ call $memcpy(l %t104, l %t103, l 16)+ storel %t104, %t105+ call $__sx_dbg_keep(l %t105)+ dbgvar "idata", "bytes.Bytes", %t105, 8, 5, 1145+ dbgloc 1146+ %t106 =l loadl %t101+ %t107 =w cnel %t106, 0+ jnz %t107, @lbl5700, @lbl5701+@lbl5700+ %t109 =l add %t101, 8+ %t108 =l loadl %t109+ dbgloc 1148+ storel %t108, %t105+ jmp @lbl5702+@lbl5701+ dbgloc 1151+ %t110 =l loadl %t7+ %t111 =w call $files__free_buffer(l %t110)+ dbgloc 1152+ call $memset(l %t112, w 0, l 16)+ storel 1, %t112+ %t113 =l copy 3+ %t114 =l add %t112, 8+ storel %t113, %t114+ call $memcpy(l %__ret, l %t112, l 16)+ ret %__ret+@lbl5702+ dbgloc 1155+ %t115 =l loadl %t105+ %t116 =l call $object__parse_idx(l %t117, l %t115, l %t55, l %t67)+ storel %t117, %t118+ call $__sx_dbg_keep(l %t118)+ dbgvar "pr", "result[ref GitPack, GitError]", %t118, 8, 5, 1155+ dbgloc 1156+ %t119 =l loadl %t105+ %t120 =w call $files__free_buffer(l %t119)+ dbgloc 1157+ %t121 =l copy 0+ storel %t121, %t122+ call $__sx_dbg_keep(l %t122)+ dbgvar "p", "ref GitPack", %t122, 8, 7, 1157+ dbgloc 1158+ %t123 =l loadl %t117+ %t124 =w ceql %t123, 0+ jnz %t124, @lbl5703, @lbl5704+@lbl5703+ %t126 =l add %t117, 8+ %t125 =l loadl %t126+ dbgloc 1160+ storel %t125, %t122+ jmp @lbl5705+@lbl5704+ %t128 =l add %t117, 8+ %t127 =l loadl %t128+ dbgloc 1163+ %t129 =l loadl %t7+ %t130 =w call $files__free_buffer(l %t129)+ dbgloc 1164+ call $memset(l %t131, w 0, l 16)+ storel 1, %t131+ %t132 =l add %t131, 8+ storel %t127, %t132+ call $memcpy(l %__ret, l %t131, l 16)+ ret %__ret+@lbl5705+ dbgloc 1167+ %t133 =l loadl %t122+ call $memcpy(l %t133, l %pack_path, l 16)+ dbgloc 1168+ %t134 =l loadl %t7+ %t135 =l loadl %t122+ %t136 =l add %t135, 16+ call $memcpy(l %t136, l %t134, l 16)+ dbgloc 1169+ call $memset(l %t137, w 0, l 16)+ storel 0, %t137+ %t138 =l loadl %t122+ %t139 =l add %t137, 8+ storel %t138, %t139+ call $memcpy(l %__ret, l %t137, l 16)+ ret %__ret+}++export function l $object__open(l %__ret, l %git_dir) {+@start+ %t0 =l alloc8 8+ %t2 =l alloc8 8+ %t6 =l alloc8 8+ %t9 =l alloc8 8+ %t10 =l alloc8 8+ %t21 =l alloc8 8+ %t28 =l alloc8 8+ %t30 =l alloc8 8+ %t32 =l alloc8 8+ %t34 =l alloc8 8+ %t38 =l alloc8 16+ %t39 =l alloc8 8+ %t64 =l alloc8 8+ %t76 =l alloc8 16+ %t83 =l alloc8 16+ dbgloc 1174+ storel %git_dir, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "git_dir", "str.StringView", %t0, 8, 5, 1174+ dbgloc 1175+ %t1 =l call $lists__new__GENMONO__ref_GitPack()++ storel %t1, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "packs", "list[ref GitPack]", %t2, 8, 5, 1175+ dbgloc 1176+ %t3 =l copy $__str269+ %t4 =l call $std__str__from_cstr(l %t3)+ %t5 =l call $files__join(l %git_dir, l %t4)+ storel %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "pack_dir", "str.StringView", %t6, 8, 5, 1176+ dbgloc 1177+ %t7 =w call $files__exists_dir(l %t5)+ jnz %t7, @lbl5706, @lbl5707+@lbl5706+ dbgloc 1178+ %t8 =l call $files__list_dir(l %t5)+ storel %t8, %t9+ call $__sx_dbg_keep(l %t9)+ dbgvar "names", "list[ref u8]", %t9, 8, 5, 1178+ dbgloc 1179+ storel 0, %t10+ %t11 =l call $sxqbe_list_len(l %t8)+@lbl5709+ %t12 =l loadl %t10+ %t13 =w csltl %t12, %t11+ jnz %t13, @lbl5710, @lbl5711+@lbl5710+ %t14 =l call $sxqbe_list_buf(l %t8)+ %t15 =l mul %t12, 8+ %t16 =l add %t14, %t15+ %t17 =l loadl %t16+ dbgloc 1180+ %t18 =l copy $__str270+ %t19 =w call $files__name_ends_with(l %t17, l %t18)+ jnz %t19, @lbl5713, @lbl5714+@lbl5713+ dbgloc 1181+ %t20 =l call $std__str__from_cstr(l %t17)+ storel %t20, %t21+ call $__sx_dbg_keep(l %t21)+ dbgvar "iv", "str.StringView", %t21, 8, 5, 1181+ dbgloc 1182+ %t22 =l loadl %t20+ %t24 =l add %t20, 8+ %t23 =l loadl %t24+ %t25 =l copy 4+ %t26 =l sub %t23, %t25+ %t27 =l call $std__str__view(l %t22, l %t26)+ storel %t27, %t28+ call $__sx_dbg_keep(l %t28)+ dbgvar "base", "str.StringView", %t28, 8, 5, 1182+ dbgloc 1183+ %t29 =l call $files__with_suffix(l %t27, l $__sv104)+ storel %t29, %t30+ call $__sx_dbg_keep(l %t30)+ dbgvar "pack_name", "str.StringView", %t30, 8, 5, 1183+ dbgloc 1184+ %t31 =l call $files__join(l %t5, l %t29)+ storel %t31, %t32+ call $__sx_dbg_keep(l %t32)+ dbgvar "pack_path", "str.StringView", %t32, 8, 5, 1184+ dbgloc 1185+ %t33 =l call $files__join(l %t5, l %t20)+ storel %t33, %t34+ call $__sx_dbg_keep(l %t34)+ dbgvar "idx_path", "str.StringView", %t34, 8, 5, 1185+ dbgloc 1186+ %t35 =w call $files__free_path(l %t29)+ dbgloc 1187+ %t36 =w call $files__exists_file(l %t31)+ jnz %t36, @lbl5716, @lbl5718+@lbl5716+ dbgloc 1188+ %t37 =l call $object__open_pack(l %t38, l %t31, l %t33)+ storel %t38, %t39+ call $__sx_dbg_keep(l %t39)+ dbgvar "r", "result[ref GitPack, GitError]", %t39, 8, 5, 1188+ dbgloc 1189+ %t40 =l loadl %t38+ %t41 =w ceql %t40, 0+ jnz %t41, @lbl5719, @lbl5720+@lbl5719+ %t43 =l add %t38, 8+ %t42 =l loadl %t43+ dbgloc 1191+ %t45 =l call $sxqbe_list_ensure(l %t2)+ %t46 =l add %t45, 8+ %t47 =l add %t45, 16+ %t48 =l loadl %t46+ %t49 =l loadl %t47+ %t51 =l add %t48, 1+ %t50 =w call $sxqbe_list_grow(l %t45, l %t51)+ %t52 =l call $sxqbe_list_buf(l %t45)+ %t53 =l mul %t48, 8+ %t54 =l add %t52, %t53+ storel %t42, %t54+ %t55 =l add %t48, 1+ storel %t55, %t46+ %t44 =l copy 0+ dbgloc 1192+ %t56 =w call $files__free_path(l %t33)+ jmp @lbl5721+@lbl5720+ %t58 =l add %t38, 8+ %t57 =l loadl %t58+ dbgloc 1195+ %t59 =w call $files__free_path(l %t31)+ dbgloc 1196+ %t60 =w call $files__free_path(l %t33)+ dbgloc 1197+ %t61 =w call $files__free_names(l %t8)+ dbgloc 1198+ %t62 =w call $files__free_path(l %t5)+ dbgloc 1199+ %t63 =l loadl %t2+ storel 0, %t64+ %t65 =l call $sxqbe_list_len(l %t63)+@lbl5722+ %t66 =l loadl %t64+ %t67 =w csltl %t66, %t65+ jnz %t67, @lbl5723, @lbl5724+@lbl5723+ %t68 =l call $sxqbe_list_buf(l %t63)+ %t69 =l mul %t66, 8+ %t70 =l add %t68, %t69+ %t71 =l loadl %t70+ dbgloc 1200+ %t72 =w call $object__free_pack(l %t71)+@lbl5725+ %t73 =l add %t66, 1+ storel %t73, %t64+ jmp @lbl5722+@lbl5724+ dbgloc 1202+ %t75 =l loadl %t2+ call $sxqbe_list_free(l %t75)+ %t74 =l copy 0+ dbgloc 1203+ call $memset(l %t76, w 0, l 16)+ storel 1, %t76+ %t77 =l add %t76, 8+ storel %t57, %t77+ call $memcpy(l %__ret, l %t76, l 16)+ ret %__ret+@lbl5721+ jmp @lbl5717+@lbl5718+ dbgloc 1207+ %t78 =w call $files__free_path(l %t31)+ dbgloc 1208+ %t79 =w call $files__free_path(l %t33)+ jmp @lbl5717+@lbl5717+ jmp @lbl5714+@lbl5714+@lbl5712+ %t80 =l add %t12, 1+ storel %t80, %t10+ jmp @lbl5709+@lbl5711+ dbgloc 1212+ %t81 =w call $files__free_names(l %t8)+ jmp @lbl5707+@lbl5707+ dbgloc 1214+ %t82 =w call $files__free_path(l %t5)+ dbgloc 1215+ call $memset(l %t83, w 0, l 16)+ storel 0, %t83+ %t84 =l call $malloc(l 24)+ %t85 =l add %t84, 0+ call $memcpy(l %t85, l %git_dir, l 16)+ %t86 =l loadl %t2+ %t87 =l add %t84, 16+ storel %t86, %t87+ %t88 =l add %t83, 8+ storel %t84, %t88+ call $memcpy(l %__ret, l %t83, l 16)+ ret %__ret+}++export function w $object__free_pack(l %p) {+@start+ %t0 =l alloc8 8+ dbgloc 1218+ storel %p, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "p", "ref GitPack", %t0, 8, 7, 1218+ dbgloc 1219+ %t1 =l add %p, 16+ %t2 =w call $files__free_buffer(l %t1)+ dbgloc 1220+ %t3 =w call $object__cache_free(l %p)+ dbgloc 1221+ %t5 =l add %p, 40+ %t4 =l loadl %t5+ %t6 =l copy 0+ %t7 =w cnel %t4, %t6+ jnz %t7, @lbl5726, @lbl5727+@lbl5726+ dbgloc 1222+ %t10 =l add %p, 40+ %t9 =l loadl %t10+ %t11 =l copy %t9+ call $free(l %t11)+ %t8 =l copy 0+ jmp @lbl5727+@lbl5727+ dbgloc 1224+ %t13 =l add %p, 48+ %t12 =l loadl %t13+ %t14 =l copy 0+ %t15 =w cnel %t12, %t14+ jnz %t15, @lbl5729, @lbl5730+@lbl5729+ dbgloc 1225+ %t18 =l add %p, 48+ %t17 =l loadl %t18+ %t19 =l copy %t17+ call $free(l %t19)+ %t16 =l copy 0+ jmp @lbl5730+@lbl5730+ dbgloc 1227+ %t20 =l add %p, 0+ %t21 =l loadl %t20+ %t22 =l copy 0+ %t23 =w cnel %t21, %t22+ jnz %t23, @lbl5732, @lbl5733+@lbl5732+ dbgloc 1228+ %t24 =l add %p, 0+ %t25 =w call $files__free_path(l %t24)+ jmp @lbl5733+@lbl5733+ dbgloc 1230+ %t27 =l copy %p+ call $free(l %t27)+ %t26 =l copy 0+ ret 0+}++export function w $object__free(l %repo) {+@start+ %t0 =l alloc8 8+ %t4 =l alloc8 8+ dbgloc 1233+ storel %repo, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "repo", "GitRepo", %t0, 8, 5, 1233+ dbgloc 1234+ %t1 =l loadl %t0+ %t3 =l add %t1, 16+ %t2 =l loadl %t3+ storel 0, %t4+ %t5 =l call $sxqbe_list_len(l %t2)+@lbl5735+ %t6 =l loadl %t4+ %t7 =w csltl %t6, %t5+ jnz %t7, @lbl5736, @lbl5737+@lbl5736+ %t8 =l call $sxqbe_list_buf(l %t2)+ %t9 =l mul %t6, 8+ %t10 =l add %t8, %t9+ %t11 =l loadl %t10+ dbgloc 1235+ %t12 =w call $object__free_pack(l %t11)+@lbl5738+ %t13 =l add %t6, 1+ storel %t13, %t4+ jmp @lbl5735+@lbl5737+ dbgloc 1237+ %t15 =l loadl %t0+ %t17 =l add %t15, 16+ %t16 =l loadl %t17+ call $sxqbe_list_free(l %t16)+ %t14 =l copy 0+ dbgloc 1238+ %t18 =l loadl %t0+ %t19 =l add %t18, 0+ %t20 =l loadl %t19+ %t21 =l copy 0+ %t22 =w cnel %t20, %t21+ jnz %t22, @lbl5739, @lbl5740+@lbl5739+ dbgloc 1239+ %t23 =l loadl %t0+ %t24 =l add %t23, 0+ %t25 =w call $files__free_path(l %t24)+ jmp @lbl5740+@lbl5740+ dbgloc 1241+ %t26 =l copy 0+ %t27 =l copy 0+ %t28 =l call $std__str__view(l %t26, l %t27)+ %t29 =l loadl %t0+ call $memcpy(l %t29, l %t28, l 16)+ ret 0+}++dbgfile "src/git/lazy.sx"+data $lazy__PREFIX_LEN = { l 12 }+data $lazy__GIT_OID_LEN = { l 20 }+data $lazy__ID_LEN = { l 32 }+function l $lazy__prefix() {+@start+ dbgloc 14+ dbgloc 15+ %t0 =l copy $__str272+ %t1 =l copy 12+ %t2 =l call $bytes__bytes(l %t0, l %t1)+ ret %t2+}++export function l $lazy__blob_id(l %oid) {+@start+ %t0 =l alloc8 8+ %t9 =l alloc8 8+ dbgloc 19+ storel %oid, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "oid", "bytes.Bytes", %t0, 8, 5, 19+ dbgloc 20+ %t2 =l add %oid, 8+ %t1 =l loadl %t2+ %t3 =l copy 20+ %t4 =w ceql %t1, %t3+ jnz %t4, @lbl5742, @lbl5743+@lbl5743+ %t5 =l copy $__str273+ call $dprintf(w 2, l %t5)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl5742+ dbgloc 23+ %t7 =l copy 32+ %t6 =l call $malloc(l %t7)+ %t8 =l copy %t6+ storel %t8, %t9+ call $__sx_dbg_keep(l %t9)+ dbgvar "out", "ref u8", %t9, 8, 7, 23+ dbgloc 24+ %t11 =l copy %t8+ %t12 =l call $lazy__prefix()+ %t13 =l loadl %t12+ %t14 =l copy %t13+ %t15 =l copy 12+ call $memcpy(l %t11, l %t14, l %t15)+ %t10 =l copy 0+ dbgloc 25+ %t18 =l copy 12+ %t19 =l copy %t18+ %t17 =l add %t8, %t19+ %t20 =l copy %t17+ %t21 =l loadl %oid+ %t22 =l copy %t21+ %t23 =l copy 20+ call $memcpy(l %t20, l %t22, l %t23)+ %t16 =l copy 0+ dbgloc 30+ %t24 =l call $objid__id(l %t8)+ ret %t24+}++export function w $lazy__is_lazy(l %id) {+@start+ %t0 =l alloc8 8+ dbgloc 34+ storel %id, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "id", "objid.Id", %t0, 8, 5, 34+ dbgloc 35+ %t1 =l loadl %id+ %t2 =l copy 0+ %t3 =w ceql %t1, %t2+ jnz %t3, @lbl5744, @lbl5745+@lbl5744+ dbgloc 36+ %t4 =l copy 0+ ret %t4+@lbl5745+ dbgloc 38+ %t5 =l loadl %id+ %t6 =l copy 12+ %t7 =l call $bytes__bytes(l %t5, l %t6)+ %t8 =l call $lazy__prefix()+ %t9 =w call $bytes__Bytes__eql(l %t7, l %t8)+ ret %t9+}++export function l $lazy__git_oid(l %id) {+@start+ %t0 =l alloc8 8+ dbgloc 45+ storel %id, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "id", "objid.Id", %t0, 8, 5, 45+ dbgloc 46+ %t1 =l loadl %id+ %t2 =l copy 0+ %t3 =w cnel %t1, %t2+ jnz %t3, @lbl5747, @lbl5748+@lbl5748+ %t4 =l copy $__str274+ call $dprintf(w 2, l %t4)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl5747+ dbgloc 49+ %t6 =l loadl %id+ %t7 =l copy 12+ %t8 =l copy %t7+ %t5 =l add %t6, %t8+ %t9 =l copy 20+ %t10 =l call $bytes__bytes(l %t5, l %t9)+ ret %t10+}++dbgfile "src/git/format.sx"+function w $format__hex_digit(w %n) {+@start+ %t0 =l alloc8 8+ dbgloc 38+ storew %n, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "n", "u8", %t0, 1, 7, 38+ dbgloc 39+ %t1 =w copy 10+ %t2 =w csltw %n, %t1+ jnz %t2, @lbl5749, @lbl5750+@lbl5749+ dbgloc 40+ %t3 =l copy 48+ %t4 =l extsw %n+ %t6 =l extsw %t4+ %t5 =l add %t3, %t6+ ret %t5+@lbl5750+ dbgloc 42+ %t7 =l copy 87+ %t8 =l extsw %n+ %t10 =l extsw %t8+ %t9 =l add %t7, %t10+ ret %t9+}++function w $format__hex_value(w %c) {+@start+ %t0 =l alloc8 8+ %t4 =l alloc4 1+ %t15 =l alloc4 1+ %t26 =l alloc4 1+ dbgloc 45+ storew %c, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "c", "u8", %t0, 1, 7, 45+ dbgloc 46+ %t1 =w copy 48+ %t3 =w csltw %c, %t1+ %t2 =w ceqw %t3, 0+ storew %t2, %t4+ jnz %t2, @lbl5755, @lbl5756+@lbl5755+ %t5 =w copy 57+ %t6 =w cslew %c, %t5+ storew %t6, %t4+ jmp @lbl5756+@lbl5756+ %t7 =w loadw %t4+ jnz %t7, @lbl5752, @lbl5753+@lbl5752+ dbgloc 47+ %t8 =l extsw %c+ %t9 =l copy 48+ %t11 =l extsw %t8+ %t10 =l sub %t11, %t9+ ret %t10+@lbl5753+ dbgloc 49+ %t12 =w copy 97+ %t14 =w csltw %c, %t12+ %t13 =w ceqw %t14, 0+ storew %t13, %t15+ jnz %t13, @lbl5760, @lbl5761+@lbl5760+ %t16 =w copy 102+ %t17 =w cslew %c, %t16+ storew %t17, %t15+ jmp @lbl5761+@lbl5761+ %t18 =w loadw %t15+ jnz %t18, @lbl5757, @lbl5758+@lbl5757+ dbgloc 50+ %t19 =l extsw %c+ %t20 =l copy 87+ %t22 =l extsw %t19+ %t21 =l sub %t22, %t20+ ret %t21+@lbl5758+ dbgloc 52+ %t23 =w copy 65+ %t25 =w csltw %c, %t23+ %t24 =w ceqw %t25, 0+ storew %t24, %t26+ jnz %t24, @lbl5765, @lbl5766+@lbl5765+ %t27 =w copy 70+ %t28 =w cslew %c, %t27+ storew %t28, %t26+ jmp @lbl5766+@lbl5766+ %t29 =w loadw %t26+ jnz %t29, @lbl5762, @lbl5763+@lbl5762+ dbgloc 53+ %t30 =l extsw %c+ %t31 =l copy 55+ %t33 =l extsw %t30+ %t32 =l sub %t33, %t31+ ret %t32+@lbl5763+ dbgloc 55+ %t34 =l copy 1+ %t35 =l neg %t34+ %t36 =w copy %t35+ ret %t36+}++export function l $format__oid_from_hex(l %__ret, l %hex) {+@start+ %t0 =l alloc8 8+ %t5 =l alloc8 16+ %t9 =l alloc8 8+ %t11 =l alloc8 8+ %t21 =l alloc8 8+ %t30 =l alloc8 8+ %t33 =l alloc4 1+ %t39 =l alloc8 16+ %t55 =l alloc8 16+ dbgloc 58+ storel %hex, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "hex", "bytes.Bytes", %t0, 8, 5, 58+ dbgloc 59+ %t2 =l add %hex, 8+ %t1 =l loadl %t2+ %t3 =l copy 40+ %t4 =w cnel %t1, %t3+ jnz %t4, @lbl5767, @lbl5768+@lbl5767+ dbgloc 60+ storel 0, %t5+ call $memcpy(l %__ret, l %t5, l 16)+ ret %__ret+@lbl5768+ dbgloc 62+ %t7 =l copy 20+ %t6 =l call $malloc(l %t7)+ %t8 =l copy %t6+ storel %t8, %t9+ call $__sx_dbg_keep(l %t9)+ dbgvar "out", "ref u8", %t9, 8, 7, 62+ dbgloc 63+ %t10 =l copy 0+ storel %t10, %t11+ call $__sx_dbg_keep(l %t11)+ dbgvar "i", "usize", %t11, 8, 5, 63+ dbgloc 64+ jmp @lbl5770+@lbl5770+ %t12 =l loadl %t11+ %t13 =l copy 20+ %t14 =w csltl %t12, %t13+ jnz %t14, @lbl5771, @lbl5773+@lbl5771+ dbgloc 65+ %t15 =l loadl %t11+ %t16 =l copy 2+ %t17 =l mul %t15, %t16+ %t18 =w call $bytes__Bytes__at(l %hex, l %t17)+ %t19 =w call $format__hex_value(w %t18)+ %t20 =w copy %t19+ storew %t20, %t21+ call $__sx_dbg_keep(l %t21)+ dbgvar "hi", "i32", %t21, 4, 5, 65+ dbgloc 66+ %t22 =l loadl %t11+ %t23 =l copy 2+ %t24 =l mul %t22, %t23+ %t25 =l copy 1+ %t26 =l add %t24, %t25+ %t27 =w call $bytes__Bytes__at(l %hex, l %t26)+ %t28 =w call $format__hex_value(w %t27)+ %t29 =w copy %t28+ storew %t29, %t30+ call $__sx_dbg_keep(l %t30)+ dbgvar "lo", "i32", %t30, 4, 5, 66+ dbgloc 67+ %t31 =w copy 0+ %t32 =w csltw %t20, %t31+ storew %t32, %t33+ jnz %t32, @lbl5778, @lbl5777+@lbl5777+ %t34 =w copy 0+ %t35 =w csltw %t29, %t34+ storew %t35, %t33+ jmp @lbl5778+@lbl5778+ %t36 =w loadw %t33+ jnz %t36, @lbl5774, @lbl5775+@lbl5774+ dbgloc 68+ %t38 =l copy %t8+ call $free(l %t38)+ %t37 =l copy 0+ dbgloc 69+ storel 0, %t39+ call $memcpy(l %__ret, l %t39, l 16)+ ret %__ret+@lbl5775+ dbgloc 71+ %t42 =l loadl %t11+ %t43 =l copy %t42+ %t41 =l add %t8, %t43+ %t44 =l extsw %t20+ %t45 =l copy 16+ %t47 =l extsw %t44+ %t46 =l mul %t47, %t45+ %t48 =l extsw %t29+ %t50 =l extsw %t48+ %t49 =l add %t46, %t50+ storeb %t49, %t41+ %t40 =l copy 0+ dbgloc 72+ %t51 =l loadl %t11+ %t52 =l add %t51, 1+ storel %t52, %t11+ jmp @lbl5772+@lbl5772+ jmp @lbl5770+@lbl5773+ dbgloc 74+ %t53 =l copy 20+ %t54 =l call $bytes__bytes(l %t8, l %t53)+ call $memset(l %t55, w 0, l 16)+ storel 1, %t55+ %t56 =l add %t55, 8+ storel %t54, %t56+ call $memcpy(l %__ret, l %t55, l 16)+ ret %__ret+}++function w $format__put_hex_id(l %b, l %oid) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t3 =l alloc8 8+ %t11 =l alloc8 8+ dbgloc 77+ storel %b, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "b", "buf.Buf", %t0, 8, 5, 77+ storel %oid, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "oid", "bytes.Bytes", %t1, 8, 5, 77+ dbgloc 78+ %t2 =l copy 0+ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "i", "usize", %t3, 8, 5, 78+ dbgloc 79+ jmp @lbl5779+@lbl5779+ %t4 =l loadl %t3+ %t5 =l copy 20+ %t6 =w csltl %t4, %t5+ jnz %t6, @lbl5780, @lbl5782+@lbl5780+ dbgloc 80+ %t7 =l loadl %t3+ %t8 =w call $bytes__Bytes__at(l %oid, l %t7)+ %t9 =w copy %t8+ %t10 =w extub %t9+ storew %t10, %t11+ call $__sx_dbg_keep(l %t11)+ dbgvar "v", "u8", %t11, 1, 7, 80+ dbgloc 81+ %t12 =l loadl %t0+ %t13 =l extsw %t10+ %t14 =l copy 4+ %t16 =l extuw %t13+ %t15 =l shr %t16, %t14+ %t18 =w copy %t15+ %t17 =w call $format__hex_digit(w %t18)+ %t19 =w call $buf__Buf__put_u8(l %t12, w %t17)+ dbgloc 82+ %t20 =l loadl %t0+ %t21 =l extsw %t10+ %t22 =l copy 15+ %t24 =l extsw %t21+ %t23 =l and %t24, %t22+ %t26 =w copy %t23+ %t25 =w call $format__hex_digit(w %t26)+ %t27 =w call $buf__Buf__put_u8(l %t20, w %t25)+ dbgloc 83+ %t28 =l loadl %t3+ %t29 =l add %t28, 1+ storel %t29, %t3+ jmp @lbl5781+@lbl5781+ jmp @lbl5779+@lbl5782+ ret 0+}++function l $format__parse_u64(l %__ret, l %text) {+@start+ %t0 =l alloc8 8+ %t5 =l alloc8 16+ %t7 =l alloc8 8+ %t9 =l alloc8 8+ %t18 =l alloc8 8+ %t21 =l alloc4 1+ %t25 =l alloc8 16+ %t38 =l alloc8 16+ dbgloc 87+ storel %text, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "text", "bytes.Bytes", %t0, 8, 5, 87+ dbgloc 88+ %t2 =l add %text, 8+ %t1 =l loadl %t2+ %t3 =l copy 0+ %t4 =w ceql %t1, %t3+ jnz %t4, @lbl5783, @lbl5784+@lbl5783+ dbgloc 89+ storel 0, %t5+ call $memcpy(l %__ret, l %t5, l 16)+ ret %__ret+@lbl5784+ dbgloc 91+ %t6 =l copy 0+ storel %t6, %t7+ call $__sx_dbg_keep(l %t7)+ dbgvar "v", "u64", %t7, 8, 7, 91+ dbgloc 92+ %t8 =l copy 0+ storel %t8, %t9+ call $__sx_dbg_keep(l %t9)+ dbgvar "i", "usize", %t9, 8, 5, 92+ dbgloc 93+ jmp @lbl5786+@lbl5786+ %t10 =l loadl %t9+ %t12 =l add %text, 8+ %t11 =l loadl %t12+ %t13 =w csltl %t10, %t11+ jnz %t13, @lbl5787, @lbl5789+@lbl5787+ dbgloc 94+ %t14 =l loadl %t9+ %t15 =w call $bytes__Bytes__at(l %text, l %t14)+ %t16 =w copy %t15+ %t17 =w extub %t16+ storew %t17, %t18+ call $__sx_dbg_keep(l %t18)+ dbgvar "c", "u8", %t18, 1, 7, 94+ dbgloc 95+ %t19 =w copy 48+ %t20 =w csltw %t17, %t19+ storew %t20, %t21+ jnz %t20, @lbl5794, @lbl5793+@lbl5793+ %t22 =w copy 57+ %t23 =w csgtw %t17, %t22+ storew %t23, %t21+ jmp @lbl5794+@lbl5794+ %t24 =w loadw %t21+ jnz %t24, @lbl5790, @lbl5791+@lbl5790+ dbgloc 96+ storel 0, %t25+ call $memcpy(l %__ret, l %t25, l 16)+ ret %__ret+@lbl5791+ dbgloc 98+ %t26 =l loadl %t7+ %t27 =l copy 10+ %t28 =l mul %t26, %t27+ %t29 =l extsw %t17+ %t30 =l copy 48+ %t32 =l extsw %t29+ %t31 =l sub %t32, %t30+ %t33 =l copy %t31+ %t34 =l add %t28, %t33+ storel %t34, %t7+ dbgloc 99+ %t35 =l loadl %t9+ %t36 =l add %t35, 1+ storel %t36, %t9+ jmp @lbl5788+@lbl5788+ jmp @lbl5786+@lbl5789+ dbgloc 101+ %t37 =l loadl %t7+ call $memset(l %t38, w 0, l 16)+ storel 1, %t38+ %t39 =l add %t38, 8+ storel %t37, %t39+ call $memcpy(l %__ret, l %t38, l 16)+ ret %__ret+}++function l $format__parse_i64(l %__ret, l %text) {+@start+ %t0 =l alloc8 8+ %t5 =l alloc8 16+ %t12 =l alloc8 8+ %t14 =l alloc8 8+ %t21 =l alloc8 16+ %t22 =l alloc8 8+ %t24 =l alloc8 8+ %t29 =l alloc8 16+ %t33 =l alloc8 16+ %t36 =l alloc8 8+ %t41 =l alloc8 16+ dbgloc 104+ storel %text, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "text", "bytes.Bytes", %t0, 8, 5, 104+ dbgloc 105+ %t2 =l add %text, 8+ %t1 =l loadl %t2+ %t3 =l copy 0+ %t4 =w ceql %t1, %t3+ jnz %t4, @lbl5795, @lbl5796+@lbl5795+ dbgloc 106+ storel 0, %t5+ call $memcpy(l %__ret, l %t5, l 16)+ ret %__ret+@lbl5796+ dbgloc 108+ %t6 =l copy 0+ %t7 =w call $bytes__Bytes__at(l %text, l %t6)+ %t8 =w copy 45+ %t9 =w ceqw %t7, %t8+ %t10 =w copy %t9+ %t11 =w extub %t10+ storew %t11, %t12+ call $__sx_dbg_keep(l %t12)+ dbgvar "negative", "bool", %t12, 1, 7, 108+ dbgloc 109+ %t13 =l copy 0+ storel %t13, %t14+ call $__sx_dbg_keep(l %t14)+ dbgvar "start", "usize", %t14, 8, 5, 109+ dbgloc 110+ jnz %t11, @lbl5798, @lbl5799+@lbl5798+ dbgloc 111+ %t15 =l copy 1+ storel %t15, %t14+ jmp @lbl5799+@lbl5799+ dbgloc 113+ %t16 =l loadl %t14+ %t18 =l add %text, 8+ %t17 =l loadl %t18+ %t19 =l call $bytes__Bytes__slice(l %text, l %t16, l %t17)+ %t20 =l call $format__parse_u64(l %t21, l %t19)+ storel %t21, %t22+ call $__sx_dbg_keep(l %t22)+ dbgvar "mag_opt", "option[u64]", %t22, 8, 5, 113+ dbgloc 114+ %t23 =l copy 0+ storel %t23, %t24+ call $__sx_dbg_keep(l %t24)+ dbgvar "mag", "u64", %t24, 8, 7, 114+ dbgloc 115+ %t25 =l loadl %t21+ %t26 =w cnel %t25, 0+ jnz %t26, @lbl5801, @lbl5802+@lbl5801+ %t28 =l add %t21, 8+ %t27 =l loadl %t28+ dbgloc 117+ storel %t27, %t24+ jmp @lbl5803+@lbl5802+ dbgloc 120+ storel 0, %t29+ call $memcpy(l %__ret, l %t29, l 16)+ ret %__ret+@lbl5803+ dbgloc 123+ %t30 =l loadl %t24+ %t31 =l copy 9223372036854775807+ %t32 =w csgtl %t30, %t31+ jnz %t32, @lbl5804, @lbl5805+@lbl5804+ dbgloc 124+ storel 0, %t33+ call $memcpy(l %__ret, l %t33, l 16)+ ret %__ret+@lbl5805+ dbgloc 126+ %t34 =l loadl %t24+ %t35 =l copy %t34+ storel %t35, %t36+ call $__sx_dbg_keep(l %t36)+ dbgvar "signed", "i64", %t36, 8, 5, 126+ dbgloc 127+ jnz %t11, @lbl5807, @lbl5808+@lbl5807+ dbgloc 128+ %t37 =l copy 0+ %t38 =l loadl %t36+ %t39 =l sub %t37, %t38+ storel %t39, %t36+ jmp @lbl5808+@lbl5808+ dbgloc 130+ %t40 =l loadl %t36+ call $memset(l %t41, w 0, l 16)+ storel 1, %t41+ %t42 =l add %t41, 8+ storel %t40, %t42+ call $memcpy(l %__ret, l %t41, l 16)+ ret %__ret+}++function l $format__parse_tz(l %__ret, l %text) {+@start+ %t0 =l alloc8 8+ %t5 =l alloc8 16+ %t10 =l alloc8 8+ %t13 =l alloc4 1+ %t17 =l alloc8 16+ %t22 =l alloc8 16+ %t23 =l alloc8 8+ %t28 =l alloc8 16+ %t29 =l alloc8 8+ %t31 =l alloc8 8+ %t33 =l alloc8 8+ %t38 =l alloc8 16+ %t43 =l alloc8 16+ %t50 =l alloc8 8+ %t53 =l alloc8 16+ %t56 =l alloc8 8+ %t70 =l alloc8 16+ dbgloc 133+ storel %text, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "text", "bytes.Bytes", %t0, 8, 5, 133+ dbgloc 134+ %t2 =l add %text, 8+ %t1 =l loadl %t2+ %t3 =l copy 5+ %t4 =w cnel %t1, %t3+ jnz %t4, @lbl5810, @lbl5811+@lbl5810+ dbgloc 135+ storel 0, %t5+ call $memcpy(l %__ret, l %t5, l 16)+ ret %__ret+@lbl5811+ dbgloc 137+ %t6 =l copy 0+ %t7 =w call $bytes__Bytes__at(l %text, l %t6)+ %t8 =w copy %t7+ %t9 =w extub %t8+ storew %t9, %t10+ call $__sx_dbg_keep(l %t10)+ dbgvar "sign", "u8", %t10, 1, 7, 137+ dbgloc 138+ %t11 =w copy 43+ %t12 =w cnew %t9, %t11+ storew %t12, %t13+ jnz %t12, @lbl5816, @lbl5817+@lbl5816+ %t14 =w copy 45+ %t15 =w cnew %t9, %t14+ storew %t15, %t13+ jmp @lbl5817+@lbl5817+ %t16 =w loadw %t13+ jnz %t16, @lbl5813, @lbl5814+@lbl5813+ dbgloc 139+ storel 0, %t17+ call $memcpy(l %__ret, l %t17, l 16)+ ret %__ret+@lbl5814+ dbgloc 141+ %t18 =l copy 1+ %t19 =l copy 3+ %t20 =l call $bytes__Bytes__slice(l %text, l %t18, l %t19)+ %t21 =l call $format__parse_u64(l %t22, l %t20)+ storel %t22, %t23+ call $__sx_dbg_keep(l %t23)+ dbgvar "hours_opt", "option[u64]", %t23, 8, 5, 141+ dbgloc 142+ %t24 =l copy 3+ %t25 =l copy 5+ %t26 =l call $bytes__Bytes__slice(l %text, l %t24, l %t25)+ %t27 =l call $format__parse_u64(l %t28, l %t26)+ storel %t28, %t29+ call $__sx_dbg_keep(l %t29)+ dbgvar "mins_opt", "option[u64]", %t29, 8, 5, 142+ dbgloc 143+ %t30 =l copy 0+ storel %t30, %t31+ call $__sx_dbg_keep(l %t31)+ dbgvar "hours", "u64", %t31, 8, 7, 143+ dbgloc 144+ %t32 =l copy 0+ storel %t32, %t33+ call $__sx_dbg_keep(l %t33)+ dbgvar "mins", "u64", %t33, 8, 7, 144+ dbgloc 145+ %t34 =l loadl %t22+ %t35 =w cnel %t34, 0+ jnz %t35, @lbl5818, @lbl5819+@lbl5818+ %t37 =l add %t22, 8+ %t36 =l loadl %t37+ dbgloc 147+ storel %t36, %t31+ jmp @lbl5820+@lbl5819+ dbgloc 150+ storel 0, %t38+ call $memcpy(l %__ret, l %t38, l 16)+ ret %__ret+@lbl5820+ dbgloc 153+ %t39 =l loadl %t28+ %t40 =w cnel %t39, 0+ jnz %t40, @lbl5821, @lbl5822+@lbl5821+ %t42 =l add %t28, 8+ %t41 =l loadl %t42+ dbgloc 155+ storel %t41, %t33+ jmp @lbl5823+@lbl5822+ dbgloc 158+ storel 0, %t43+ call $memcpy(l %__ret, l %t43, l 16)+ ret %__ret+@lbl5823+ dbgloc 161+ %t44 =l loadl %t31+ %t45 =l copy 60+ %t46 =l mul %t44, %t45+ %t47 =l loadl %t33+ %t48 =l add %t46, %t47+ %t49 =l copy %t48+ storel %t49, %t50+ call $__sx_dbg_keep(l %t50)+ dbgvar "total", "i64", %t50, 8, 5, 161+ dbgloc 162+ %t51 =l copy 32767+ %t52 =w csgtl %t49, %t51+ jnz %t52, @lbl5824, @lbl5825+@lbl5824+ dbgloc 163+ storel 0, %t53+ call $memcpy(l %__ret, l %t53, l 16)+ ret %__ret+@lbl5825+ dbgloc 165+ %t54 =w copy %t49+ %t55 =w extsh %t54+ storew %t55, %t56+ call $__sx_dbg_keep(l %t56)+ dbgvar "tz", "i16", %t56, 2, 5, 165+ dbgloc 166+ %t57 =w copy 45+ %t58 =w ceqw %t9, %t57+ jnz %t58, @lbl5827, @lbl5828+@lbl5827+ dbgloc 167+ %t59 =l copy 0+ %t61 =w loadw %t56+ %t60 =l extsw %t61+ %t62 =l extsw %t60+ %t64 =l extsw %t62+ %t63 =l sub %t59, %t64+ %t65 =w copy %t63+ %t66 =w copy %t65+ %t67 =w extsh %t66+ storew %t67, %t56+ jmp @lbl5828+@lbl5828+ dbgloc 169+ %t69 =w loadw %t56+ %t68 =l extsw %t69+ call $memset(l %t70, w 0, l 16)+ storel 1, %t70+ %t71 =l add %t70, 8+ storew %t68, %t71+ call $memcpy(l %__ret, l %t70, l 16)+ ret %__ret+}++function l $format__last_index_of(l %value, w %needle, l %end) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t6 =l alloc8 8+ dbgloc 172+ storel %value, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "value", "bytes.Bytes", %t0, 8, 5, 172+ storew %needle, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "needle", "u8", %t1, 1, 7, 172+ storel %end, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "end", "usize", %t2, 8, 5, 172+ dbgloc 173+ %t3 =l copy %end+ %t4 =l copy 1+ %t5 =l sub %t3, %t4+ storel %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "i", "i64", %t6, 8, 5, 173+ dbgloc 174+ jmp @lbl5830+@lbl5830+ %t7 =l loadl %t6+ %t8 =l copy 0+ %t10 =w csltl %t7, %t8+ %t9 =w ceqw %t10, 0+ jnz %t9, @lbl5831, @lbl5833+@lbl5831+ dbgloc 175+ %t11 =l loadl %t6+ %t12 =l copy %t11+ %t13 =w call $bytes__Bytes__at(l %value, l %t12)+ %t14 =l extsw %t13+ %t15 =l extsw %needle+ %t16 =w ceqw %t14, %t15+ jnz %t16, @lbl5834, @lbl5835+@lbl5834+ dbgloc 176+ %t17 =l loadl %t6+ ret %t17+@lbl5835+ dbgloc 178+ %t18 =l loadl %t6+ %t19 =l sub %t18, 1+ storel %t19, %t6+ jmp @lbl5832+@lbl5832+ jmp @lbl5830+@lbl5833+ dbgloc 180+ %t20 =l copy 1+ %t21 =l neg %t20+ ret %t21+}++export function l $format__parse_sig(l %__ret, l %value) {+@start+ %t0 =l alloc8 8+ %t6 =l alloc8 8+ %t9 =l alloc8 16+ %t14 =l alloc8 8+ %t17 =l alloc8 16+ %t24 =l alloc8 16+ %t25 =l alloc8 8+ %t33 =l alloc8 16+ %t34 =l alloc8 8+ %t36 =l alloc8 8+ %t41 =l alloc8 8+ %t46 =l alloc8 16+ %t53 =l alloc8 16+ %t57 =l alloc8 8+ %t63 =l alloc8 8+ %t66 =l alloc8 16+ %t72 =l alloc8 8+ %t74 =l alloc8 16+ %t76 =l alloc8 8+ %t80 =l alloc8 8+ %t82 =l alloc8 8+ %t85 =l alloc8 8+ %t87 =l alloc8 8+ %t92 =l alloc4 1+ %t117 =l alloc8 16+ dbgloc 184+ storel %value, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "value", "bytes.Bytes", %t0, 8, 5, 184+ dbgloc 185+ %t1 =l copy 32+ %t3 =l add %value, 8+ %t2 =l loadl %t3+ %t5 =w copy %t1+ %t4 =l call $format__last_index_of(l %value, w %t5, l %t2)+ storel %t4, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "tz_space", "i64", %t6, 8, 5, 185+ dbgloc 186+ %t7 =l copy 0+ %t8 =w csltl %t4, %t7+ jnz %t8, @lbl5837, @lbl5838+@lbl5837+ dbgloc 187+ storel 0, %t9+ call $memcpy(l %__ret, l %t9, l 16)+ ret %__ret+@lbl5838+ dbgloc 189+ %t10 =l copy 32+ %t11 =l copy %t4+ %t13 =w copy %t10+ %t12 =l call $format__last_index_of(l %value, w %t13, l %t11)+ storel %t12, %t14+ call $__sx_dbg_keep(l %t14)+ dbgvar "sec_space", "i64", %t14, 8, 5, 189+ dbgloc 190+ %t15 =l copy 0+ %t16 =w csltl %t12, %t15+ jnz %t16, @lbl5840, @lbl5841+@lbl5840+ dbgloc 191+ storel 0, %t17+ call $memcpy(l %__ret, l %t17, l 16)+ ret %__ret+@lbl5841+ dbgloc 193+ %t18 =l copy %t12+ %t19 =l copy 1+ %t20 =l add %t18, %t19+ %t21 =l copy %t4+ %t22 =l call $bytes__Bytes__slice(l %value, l %t20, l %t21)+ %t23 =l call $format__parse_i64(l %t24, l %t22)+ storel %t24, %t25+ call $__sx_dbg_keep(l %t25)+ dbgvar "sec_opt", "option[i64]", %t25, 8, 5, 193+ dbgloc 194+ %t26 =l copy %t4+ %t27 =l copy 1+ %t28 =l add %t26, %t27+ %t30 =l add %value, 8+ %t29 =l loadl %t30+ %t31 =l call $bytes__Bytes__slice(l %value, l %t28, l %t29)+ %t32 =l call $format__parse_tz(l %t33, l %t31)+ storel %t33, %t34+ call $__sx_dbg_keep(l %t34)+ dbgvar "tz_opt", "option[i16]", %t34, 8, 5, 194+ dbgloc 195+ %t35 =l copy 0+ storel %t35, %t36+ call $__sx_dbg_keep(l %t36)+ dbgvar "seconds", "i64", %t36, 8, 5, 195+ dbgloc 196+ %t37 =l copy 0+ %t38 =w copy %t37+ %t39 =w copy %t38+ %t40 =w extsh %t39+ storew %t40, %t41+ call $__sx_dbg_keep(l %t41)+ dbgvar "tz", "i16", %t41, 2, 5, 196+ dbgloc 197+ %t42 =l loadl %t24+ %t43 =w cnel %t42, 0+ jnz %t43, @lbl5843, @lbl5844+@lbl5843+ %t45 =l add %t24, 8+ %t44 =l loadl %t45+ dbgloc 199+ storel %t44, %t36+ jmp @lbl5845+@lbl5844+ dbgloc 202+ storel 0, %t46+ call $memcpy(l %__ret, l %t46, l 16)+ ret %__ret+@lbl5845+ dbgloc 205+ %t47 =l loadl %t33+ %t48 =w cnel %t47, 0+ jnz %t48, @lbl5846, @lbl5847+@lbl5846+ %t50 =l add %t33, 8+ %t49 =w loadw %t50+ dbgloc 207+ %t51 =w copy %t49+ %t52 =w extsh %t51+ storew %t52, %t41+ jmp @lbl5848+@lbl5847+ dbgloc 210+ storel 0, %t53+ call $memcpy(l %__ret, l %t53, l 16)+ ret %__ret+@lbl5848+ dbgloc 213+ %t54 =l copy 0+ %t55 =l copy %t12+ %t56 =l call $bytes__Bytes__slice(l %value, l %t54, l %t55)+ storel %t56, %t57+ call $__sx_dbg_keep(l %t57)+ dbgvar "ident", "bytes.Bytes", %t57, 8, 5, 213+ dbgloc 214+ %t58 =l copy 60+ %t60 =l add %t56, 8+ %t59 =l loadl %t60+ %t62 =w copy %t58+ %t61 =l call $format__last_index_of(l %t56, w %t62, l %t59)+ storel %t61, %t63+ call $__sx_dbg_keep(l %t63)+ dbgvar "lt", "i64", %t63, 8, 5, 214+ dbgloc 215+ %t64 =l copy 0+ %t65 =w csltl %t61, %t64+ jnz %t65, @lbl5849, @lbl5850+@lbl5849+ dbgloc 216+ storel 0, %t66+ call $memcpy(l %__ret, l %t66, l 16)+ ret %__ret+@lbl5850+ dbgloc 218+ %t67 =l copy 62+ %t69 =l add %t56, 8+ %t68 =l loadl %t69+ %t71 =w copy %t67+ %t70 =l call $format__last_index_of(l %t56, w %t71, l %t68)+ storel %t70, %t72+ call $__sx_dbg_keep(l %t72)+ dbgvar "gt", "i64", %t72, 8, 5, 218+ dbgloc 219+ %t73 =w cslel %t70, %t61+ jnz %t73, @lbl5852, @lbl5853+@lbl5852+ dbgloc 220+ storel 0, %t74+ call $memcpy(l %__ret, l %t74, l 16)+ ret %__ret+@lbl5853+ dbgloc 222+ %t75 =l copy %t61+ storel %t75, %t76+ call $__sx_dbg_keep(l %t76)+ dbgvar "name_end", "usize", %t76, 8, 5, 222+ dbgloc 223+ %t77 =l copy %t61+ %t78 =l copy 1+ %t79 =l add %t77, %t78+ storel %t79, %t80+ call $__sx_dbg_keep(l %t80)+ dbgvar "email_start", "usize", %t80, 8, 5, 223+ dbgloc 224+ %t81 =l copy %t70+ storel %t81, %t82+ call $__sx_dbg_keep(l %t82)+ dbgvar "email_end", "usize", %t82, 8, 5, 224+ dbgloc 225+ %t83 =l copy 0+ %t84 =l call $bytes__Bytes__slice(l %t56, l %t83, l %t75)+ storel %t84, %t85+ call $__sx_dbg_keep(l %t85)+ dbgvar "raw_name", "bytes.Bytes", %t85, 8, 5, 225+ dbgloc 226+ %t86 =l call $malloc(l 16)+ call $memset(l %t86, w 0, l 16)+ call $memcpy(l %t86, l %t84, l 16)+ storel %t86, %t87+ call $__sx_dbg_keep(l %t87)+ dbgvar "name", "bytes.Bytes", %t87, 8, 5, 226+ dbgloc 227+ %t89 =l add %t84, 8+ %t88 =l loadl %t89+ %t90 =l copy 0+ %t91 =w csgtl %t88, %t90+ storew %t91, %t92+ jnz %t91, @lbl5858, @lbl5859+@lbl5858+ %t94 =l add %t84, 8+ %t93 =l loadl %t94+ %t95 =l copy 1+ %t96 =l sub %t93, %t95+ %t97 =w call $bytes__Bytes__at(l %t84, l %t96)+ %t98 =w copy 32+ %t99 =w ceqw %t97, %t98+ storew %t99, %t92+ jmp @lbl5859+@lbl5859+ %t100 =w loadw %t92+ jnz %t100, @lbl5855, @lbl5856+@lbl5855+ dbgloc 228+ %t101 =l copy 0+ %t103 =l add %t84, 8+ %t102 =l loadl %t103+ %t104 =l copy 1+ %t105 =l sub %t102, %t104+ %t106 =l call $bytes__Bytes__slice(l %t84, l %t101, l %t105)+ storel %t106, %t87+ jmp @lbl5856+@lbl5856+ dbgloc 230+ %t107 =l call $malloc(l 42)+ %t108 =l add %t107, 0+ %t109 =l loadl %t87+ call $memcpy(l %t108, l %t109, l 16)+ %t110 =l add %t107, 16+ %t111 =l call $bytes__Bytes__slice(l %t56, l %t79, l %t81)+ call $memcpy(l %t110, l %t111, l 16)+ %t112 =l loadl %t36+ %t113 =l add %t107, 32+ storel %t112, %t113+ %t115 =w loadw %t41+ %t114 =l extsw %t115+ %t116 =l add %t107, 40+ storeh %t114, %t116+ call $memset(l %t117, w 0, l 16)+ storel 1, %t117+ %t118 =l add %t117, 8+ storel %t107, %t118+ call $memcpy(l %__ret, l %t117, l 16)+ ret %__ret+}++function w $format__put_sig(l %b, l %sig) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t34 =l alloc8 8+ %t47 =l alloc8 8+ %t48 =l alloc8 8+ %t63 =l alloc8 8+ %t67 =l alloc8 8+ dbgloc 238+ storel %b, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "b", "buf.Buf", %t0, 8, 5, 238+ storel %sig, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "sig", "prim.Sig", %t1, 8, 5, 238+ dbgloc 239+ %t2 =l loadl %t0+ %t3 =l add %sig, 0+ %t4 =w call $buf__Buf__put_bytes(l %t2, l %t3)+ dbgloc 240+ %t5 =l loadl %t0+ %t6 =l copy 32+ %t8 =w copy %t6+ %t7 =w call $buf__Buf__put_u8(l %t5, w %t8)+ dbgloc 241+ %t9 =l loadl %t0+ %t10 =l copy 60+ %t12 =w copy %t10+ %t11 =w call $buf__Buf__put_u8(l %t9, w %t12)+ dbgloc 242+ %t13 =l loadl %t0+ %t14 =l add %sig, 16+ %t15 =w call $buf__Buf__put_bytes(l %t13, l %t14)+ dbgloc 243+ %t16 =l loadl %t0+ %t17 =l copy 62+ %t19 =w copy %t17+ %t18 =w call $buf__Buf__put_u8(l %t16, w %t19)+ dbgloc 244+ %t20 =l loadl %t0+ %t21 =l copy 32+ %t23 =w copy %t21+ %t22 =w call $buf__Buf__put_u8(l %t20, w %t23)+ dbgloc 245+ %t25 =l copy $__str275+ %t26 =l call $malloc(l 4096)+ %t33 =l add %sig, 32+ %t32 =l loadl %t33+ %t27 =w call $snprintf(l %t26, l 4096, l %t25, ..., l %t32)+ %t28 =l extsw %t27+ %t29 =l add %t28, 1+ %t30 =l call $malloc(l %t29)+ call $memcpy(l %t30, l %t26, l %t28)+ %t31 =l add %t30, %t28+ storeb 0, %t31+ call $free(l %t26)+ %t24 =l copy %t30+ storel %t24, %t34+ call $__sx_dbg_keep(l %t34)+ dbgvar "sec_text", "ref u8", %t34, 8, 7, 245+ dbgloc 246+ %t35 =l loadl %t0+ %t36 =l call $bytes__from_cstr(l %t24)+ %t37 =w call $buf__Buf__put_bytes(l %t35, l %t36)+ dbgloc 247+ %t39 =l copy %t24+ call $free(l %t39)+ %t38 =l copy 0+ dbgloc 248+ %t40 =l loadl %t0+ %t41 =l copy 32+ %t43 =w copy %t41+ %t42 =w call $buf__Buf__put_u8(l %t40, w %t43)+ dbgloc 249+ %t45 =l add %sig, 40+ %t44 =l loadsh %t45+ %t46 =l extsw %t44+ storel %t46, %t47+ call $__sx_dbg_keep(l %t47)+ dbgvar "minutes", "i64", %t47, 8, 5, 249+ dbgloc 250+ storel %t46, %t48+ call $__sx_dbg_keep(l %t48)+ dbgvar "abs_min", "i64", %t48, 8, 5, 250+ dbgloc 251+ %t49 =l copy 0+ %t50 =w csltl %t46, %t49+ jnz %t50, @lbl5860, @lbl5862+@lbl5860+ dbgloc 252+ %t51 =l loadl %t0+ %t52 =l copy 45+ %t54 =w copy %t52+ %t53 =w call $buf__Buf__put_u8(l %t51, w %t54)+ dbgloc 253+ %t55 =l neg %t46+ storel %t55, %t48+ jmp @lbl5861+@lbl5862+ dbgloc 255+ %t56 =l loadl %t0+ %t57 =l copy 43+ %t59 =w copy %t57+ %t58 =w call $buf__Buf__put_u8(l %t56, w %t59)+ jmp @lbl5861+@lbl5861+ dbgloc 257+ %t60 =l loadl %t48+ %t61 =l copy 60+ %t62 =l div %t60, %t61+ storel %t62, %t63+ call $__sx_dbg_keep(l %t63)+ dbgvar "hh", "i64", %t63, 8, 5, 257+ dbgloc 258+ %t64 =l loadl %t48+ %t65 =l copy 60+ %t66 =l rem %t64, %t65+ storel %t66, %t67+ call $__sx_dbg_keep(l %t67)+ dbgvar "mm", "i64", %t67, 8, 5, 258+ dbgloc 259+ %t68 =l loadl %t0+ %t69 =l copy 48+ %t70 =l copy 10+ %t71 =l div %t62, %t70+ %t72 =l add %t69, %t71+ %t73 =w call $buf__Buf__put_u8(l %t68, w %t72)+ dbgloc 260+ %t74 =l loadl %t0+ %t75 =l copy 48+ %t76 =l copy 10+ %t77 =l rem %t62, %t76+ %t78 =l add %t75, %t77+ %t79 =w call $buf__Buf__put_u8(l %t74, w %t78)+ dbgloc 261+ %t80 =l loadl %t0+ %t81 =l copy 48+ %t82 =l copy 10+ %t83 =l div %t66, %t82+ %t84 =l add %t81, %t83+ %t85 =w call $buf__Buf__put_u8(l %t80, w %t84)+ dbgloc 262+ %t86 =l loadl %t0+ %t87 =l copy 48+ %t88 =l copy 10+ %t89 =l rem %t66, %t88+ %t90 =l add %t87, %t89+ %t91 =w call $buf__Buf__put_u8(l %t86, w %t90)+ ret 0+}++function l $format__find_blank_line(l %data) {+@start+ %t0 =l alloc8 8+ %t8 =l alloc8 8+ %t19 =l alloc4 1+ dbgloc 265+ storel %data, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "data", "bytes.Bytes", %t0, 8, 5, 265+ dbgloc 266+ %t2 =l add %data, 8+ %t1 =l loadl %t2+ %t3 =l copy 2+ %t4 =w csltl %t1, %t3+ jnz %t4, @lbl5863, @lbl5864+@lbl5863+ dbgloc 267+ %t5 =l copy 1+ %t6 =l neg %t5+ ret %t6+@lbl5864+ dbgloc 269+ %t7 =l copy 0+ storel %t7, %t8+ call $__sx_dbg_keep(l %t8)+ dbgvar "i", "usize", %t8, 8, 5, 269+ dbgloc 270+ jmp @lbl5866+@lbl5866+ %t9 =l loadl %t8+ %t10 =l copy 1+ %t11 =l add %t9, %t10+ %t13 =l add %data, 8+ %t12 =l loadl %t13+ %t14 =w csltl %t11, %t12+ jnz %t14, @lbl5867, @lbl5869+@lbl5867+ dbgloc 271+ %t15 =l loadl %t8+ %t16 =w call $bytes__Bytes__at(l %data, l %t15)+ %t17 =w copy 10+ %t18 =w ceqw %t16, %t17+ storew %t18, %t19+ jnz %t18, @lbl5873, @lbl5874+@lbl5873+ %t20 =l loadl %t8+ %t21 =l copy 1+ %t22 =l add %t20, %t21+ %t23 =w call $bytes__Bytes__at(l %data, l %t22)+ %t24 =w copy 10+ %t25 =w ceqw %t23, %t24+ storew %t25, %t19+ jmp @lbl5874+@lbl5874+ %t26 =w loadw %t19+ jnz %t26, @lbl5870, @lbl5871+@lbl5870+ dbgloc 272+ %t27 =l loadl %t8+ %t28 =l copy %t27+ ret %t28+@lbl5871+ dbgloc 274+ %t29 =l loadl %t8+ %t30 =l add %t29, 1+ storel %t30, %t8+ jmp @lbl5868+@lbl5868+ jmp @lbl5866+@lbl5869+ dbgloc 276+ %t31 =l copy 1+ %t32 =l neg %t31+ ret %t32+}++function w $format__starts_with_space(l %line) {+@start+ %t0 =l alloc8 8+ %t5 =l alloc4 1+ dbgloc 279+ storel %line, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "line", "bytes.Bytes", %t0, 8, 5, 279+ dbgloc 280+ %t2 =l add %line, 8+ %t1 =l loadl %t2+ %t3 =l copy 0+ %t4 =w csgtl %t1, %t3+ storew %t4, %t5+ jnz %t4, @lbl5875, @lbl5876+@lbl5875+ %t6 =l copy 0+ %t7 =w call $bytes__Bytes__at(l %line, l %t6)+ %t8 =w copy 32+ %t9 =w ceqw %t7, %t8+ storew %t9, %t5+ jmp @lbl5876+@lbl5876+ %t10 =w loadw %t5+ ret %t10+}++function l $format__parse_header_line(l %__ret, l %line) {+@start+ %t0 =l alloc8 8+ %t2 =l alloc8 8+ %t7 =l alloc4 1+ %t18 =l alloc4 1+ %t25 =l alloc8 16+ %t29 =l alloc8 8+ %t36 =l alloc8 8+ %t40 =l alloc8 16+ dbgloc 283+ storel %line, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "line", "bytes.Bytes", %t0, 8, 5, 283+ dbgloc 284+ %t1 =l copy 0+ storel %t1, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "space", "usize", %t2, 8, 5, 284+ dbgloc 285+ jmp @lbl5877+@lbl5877+ %t3 =l loadl %t2+ %t5 =l add %line, 8+ %t4 =l loadl %t5+ %t6 =w csltl %t3, %t4+ storew %t6, %t7+ jnz %t6, @lbl5881, @lbl5882+@lbl5881+ %t8 =l loadl %t2+ %t9 =w call $bytes__Bytes__at(l %line, l %t8)+ %t10 =w copy 32+ %t11 =w cnew %t9, %t10+ storew %t11, %t7+ jmp @lbl5882+@lbl5882+ %t12 =w loadw %t7+ jnz %t12, @lbl5878, @lbl5880+@lbl5878+ dbgloc 286+ %t13 =l loadl %t2+ %t14 =l add %t13, 1+ storel %t14, %t2+ jmp @lbl5879+@lbl5879+ jmp @lbl5877+@lbl5880+ dbgloc 288+ %t15 =l loadl %t2+ %t16 =l copy 0+ %t17 =w ceql %t15, %t16+ storew %t17, %t18+ jnz %t17, @lbl5887, @lbl5886+@lbl5886+ %t19 =l loadl %t2+ %t21 =l add %line, 8+ %t20 =l loadl %t21+ %t23 =w csltl %t19, %t20+ %t22 =w ceqw %t23, 0+ storew %t22, %t18+ jmp @lbl5887+@lbl5887+ %t24 =w loadw %t18+ jnz %t24, @lbl5883, @lbl5884+@lbl5883+ dbgloc 289+ storel 0, %t25+ call $memcpy(l %__ret, l %t25, l 16)+ ret %__ret+@lbl5884+ dbgloc 291+ %t26 =l copy 0+ %t27 =l loadl %t2+ %t28 =l call $bytes__Bytes__slice(l %line, l %t26, l %t27)+ storel %t28, %t29+ call $__sx_dbg_keep(l %t29)+ dbgvar "key", "bytes.Bytes", %t29, 8, 5, 291+ dbgloc 292+ %t30 =l loadl %t2+ %t31 =l copy 1+ %t32 =l add %t30, %t31+ %t34 =l add %line, 8+ %t33 =l loadl %t34+ %t35 =l call $bytes__Bytes__slice(l %line, l %t32, l %t33)+ storel %t35, %t36+ call $__sx_dbg_keep(l %t36)+ dbgvar "value", "bytes.Bytes", %t36, 8, 5, 292+ dbgloc 293+ %t37 =l call $malloc(l 32)+ %t38 =l add %t37, 0+ call $memcpy(l %t38, l %t28, l 16)+ %t39 =l add %t37, 16+ call $memcpy(l %t39, l %t35, l 16)+ call $memset(l %t40, w 0, l 16)+ storel 1, %t40+ %t41 =l add %t40, 8+ storel %t37, %t41+ call $memcpy(l %__ret, l %t40, l 16)+ ret %__ret+}++function l $format__new_kv(l %key, l %value) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t5 =l alloc8 8+ dbgloc 296+ storel %key, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "key", "bytes.Bytes", %t0, 8, 5, 296+ storel %value, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "value", "bytes.Bytes", %t1, 8, 5, 296+ dbgloc 297+ %t3 =l copy 32+ %t2 =l call $malloc(l %t3)+ %t4 =l copy %t2+ storel %t4, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "kv", "ref prim.KeyValue", %t5, 8, 7, 297+ dbgloc 298+ %t6 =l loadl %t5+ call $memcpy(l %t6, l %key, l 16)+ dbgloc 299+ %t7 =l loadl %t5+ %t8 =l add %t7, 16+ call $memcpy(l %t8, l %value, l 16)+ dbgloc 300+ %t9 =l loadl %t5+ ret %t9+}++function l $format__find_line_end(l %data, l %start, l %end) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t3 =l alloc8 8+ %t6 =l alloc4 1+ dbgloc 303+ storel %data, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "data", "bytes.Bytes", %t0, 8, 5, 303+ storel %start, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "start", "usize", %t1, 8, 5, 303+ storel %end, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "end", "usize", %t2, 8, 5, 303+ dbgloc 304+ storel %start, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "i", "usize", %t3, 8, 5, 304+ dbgloc 305+ jmp @lbl5888+@lbl5888+ %t4 =l loadl %t3+ %t5 =w csltl %t4, %end+ storew %t5, %t6+ jnz %t5, @lbl5892, @lbl5893+@lbl5892+ %t7 =l loadl %t3+ %t8 =w call $bytes__Bytes__at(l %data, l %t7)+ %t9 =w copy 10+ %t10 =w cnew %t8, %t9+ storew %t10, %t6+ jmp @lbl5893+@lbl5893+ %t11 =w loadw %t6+ jnz %t11, @lbl5889, @lbl5891+@lbl5889+ dbgloc 306+ %t12 =l loadl %t3+ %t13 =l add %t12, 1+ storel %t13, %t3+ jmp @lbl5890+@lbl5890+ jmp @lbl5888+@lbl5891+ dbgloc 308+ %t14 =l loadl %t3+ ret %t14+}++export function l $format__parse_commit(l %__ret, l %body) {+@start+ %t0 =l alloc8 8+ %t2 =l alloc8 8+ %t5 =l alloc8 16+ %t7 =l alloc8 8+ %t13 =l alloc8 8+ %t17 =l alloc8 8+ %t23 =l alloc8 42+ %t34 =l alloc8 42+ %t57 =l alloc8 8+ %t59 =l alloc8 8+ %t61 =l alloc8 8+ %t66 =l alloc8 8+ %t69 =l alloc8 8+ %t83 =l alloc8 16+ %t84 =l alloc8 8+ %t96 =l alloc8 16+ %t97 =l alloc8 8+ %t113 =l alloc8 16+ %t114 =l alloc8 8+ %t143 =l alloc8 16+ %t144 =l alloc8 8+ %t161 =l alloc8 16+ %t162 =l alloc8 8+ %t185 =l alloc8 8+ %t187 =l alloc8 8+ %t198 =l alloc8 8+ %t208 =l alloc8 8+ %t211 =l alloc4 1+ %t246 =l alloc8 8+ %t274 =l alloc8 16+ dbgloc 311+ storel %body, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "body", "bytes.Bytes", %t0, 8, 5, 311+ dbgloc 312+ %t1 =l call $format__find_blank_line(l %body)+ storel %t1, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "blank", "i64", %t2, 8, 5, 312+ dbgloc 313+ %t3 =l copy 0+ %t4 =w csltl %t1, %t3+ jnz %t4, @lbl5894, @lbl5895+@lbl5894+ dbgloc 314+ storel 0, %t5+ call $memcpy(l %__ret, l %t5, l 16)+ ret %__ret+@lbl5895+ dbgloc 316+ %t6 =l copy %t1+ storel %t6, %t7+ call $__sx_dbg_keep(l %t7)+ dbgvar "header_end", "usize", %t7, 8, 5, 316+ dbgloc 317+ %t8 =l copy 2+ %t9 =l add %t6, %t8+ %t11 =l add %body, 8+ %t10 =l loadl %t11+ %t12 =l call $bytes__Bytes__slice(l %body, l %t9, l %t10)+ storel %t12, %t13+ call $__sx_dbg_keep(l %t13)+ dbgvar "message", "bytes.Bytes", %t13, 8, 5, 317+ dbgloc 318+ %t15 =l copy 152+ %t14 =l call $malloc(l %t15)+ %t16 =l copy %t14+ storel %t16, %t17+ call $__sx_dbg_keep(l %t17)+ dbgvar "out", "ref ParsedCommit", %t17, 8, 7, 318+ dbgloc 319+ %t18 =l call $bytes__empty()+ %t19 =l loadl %t17+ call $memcpy(l %t19, l %t18, l 16)+ dbgloc 320+ %t20 =l call $lists__new__GENMONO__bytes__Bytes()++ %t21 =l loadl %t17+ %t22 =l add %t21, 16+ storel %t20, %t22+ dbgloc 321+ %t24 =l add %t23, 0+ %t25 =l call $bytes__empty()+ call $memcpy(l %t24, l %t25, l 16)+ %t26 =l add %t23, 16+ %t27 =l call $bytes__empty()+ call $memcpy(l %t26, l %t27, l 16)+ %t28 =l copy 0+ %t29 =l add %t23, 32+ storel %t28, %t29+ %t30 =l copy 0+ %t31 =l add %t23, 40+ storeh %t30, %t31+ %t32 =l loadl %t17+ %t33 =l add %t32, 24+ call $memcpy(l %t33, l %t23, l 42)+ dbgloc 322+ %t35 =l add %t34, 0+ %t36 =l call $bytes__empty()+ call $memcpy(l %t35, l %t36, l 16)+ %t37 =l add %t34, 16+ %t38 =l call $bytes__empty()+ call $memcpy(l %t37, l %t38, l 16)+ %t39 =l copy 0+ %t40 =l add %t34, 32+ storel %t39, %t40+ %t41 =l copy 0+ %t42 =l add %t34, 40+ storeh %t41, %t42+ %t43 =l loadl %t17+ %t44 =l add %t43, 66+ call $memcpy(l %t44, l %t34, l 42)+ dbgloc 323+ %t45 =l loadl %t17+ %t46 =l add %t45, 108+ call $memcpy(l %t46, l %t12, l 16)+ dbgloc 324+ %t47 =l call $lists__new__GENMONO__ref_prim__KeyValue()++ %t48 =l loadl %t17+ %t49 =l add %t48, 124+ storel %t47, %t49+ dbgloc 325+ %t50 =l call $bytes__empty()+ %t51 =l loadl %t17+ %t52 =l add %t51, 132+ call $memcpy(l %t52, l %t50, l 16)+ dbgloc 326+ %t53 =l copy 1+ %t54 =l loadl %t17+ %t55 =l add %t54, 148+ storew %t53, %t55+ dbgloc 328+ %t56 =l copy 0+ storel %t56, %t57+ call $__sx_dbg_keep(l %t57)+ dbgvar "last_extra", "ref prim.KeyValue", %t57, 8, 7, 328+ dbgloc 329+ %t58 =l copy 0+ storel %t58, %t59+ call $__sx_dbg_keep(l %t59)+ dbgvar "last_extra_start", "usize", %t59, 8, 5, 329+ dbgloc 330+ %t60 =l copy 0+ storel %t60, %t61+ call $__sx_dbg_keep(l %t61)+ dbgvar "pos", "usize", %t61, 8, 5, 330+ dbgloc 331+ jmp @lbl5897+@lbl5897+ %t62 =l loadl %t61+ %t63 =w csltl %t62, %t6+ jnz %t63, @lbl5898, @lbl5900+@lbl5898+ dbgloc 332+ %t64 =l loadl %t61+ %t65 =l call $format__find_line_end(l %body, l %t64, l %t6)+ storel %t65, %t66+ call $__sx_dbg_keep(l %t66)+ dbgvar "line_end", "usize", %t66, 8, 5, 332+ dbgloc 333+ %t67 =l loadl %t61+ %t68 =l call $bytes__Bytes__slice(l %body, l %t67, l %t65)+ storel %t68, %t69+ call $__sx_dbg_keep(l %t69)+ dbgvar "line", "bytes.Bytes", %t69, 8, 5, 333+ dbgloc 334+ %t70 =w call $format__starts_with_space(l %t68)+ jnz %t70, @lbl5901, @lbl5903+@lbl5901+ dbgloc 335+ %t71 =l loadl %t57+ %t72 =l copy 0+ %t73 =w ceql %t71, %t72+ jnz %t73, @lbl5904, @lbl5906+@lbl5904+ dbgloc 336+ %t74 =l copy 0+ %t75 =l loadl %t17+ %t76 =l add %t75, 148+ storew %t74, %t76+ jmp @lbl5905+@lbl5906+ dbgloc 338+ %t77 =l loadl %t59+ %t78 =l call $bytes__Bytes__slice(l %body, l %t77, l %t65)+ %t79 =l loadl %t57+ %t80 =l add %t79, 16+ call $memcpy(l %t80, l %t78, l 16)+ jmp @lbl5905+@lbl5905+ jmp @lbl5902+@lbl5903+ dbgloc 341+ %t81 =l copy 0+ storel %t81, %t57+ dbgloc 342+ %t82 =l call $format__parse_header_line(l %t83, l %t68)+ storel %t83, %t84+ call $__sx_dbg_keep(l %t84)+ dbgvar "kv_opt", "option[prim.KeyValue]", %t84, 8, 5, 342+ dbgloc 343+ %t85 =l loadl %t83+ %t86 =w cnel %t85, 0+ jnz %t86, @lbl5907, @lbl5908+@lbl5907+ %t88 =l add %t83, 8+ %t87 =l loadl %t88+ dbgloc 345+ %t89 =l add %t87, 0+ %t90 =l copy $__str182+ %t91 =l copy 4+ %t92 =l call $bytes__bytes(l %t90, l %t91)+ %t93 =w call $bytes__Bytes__eql(l %t89, l %t92)+ jnz %t93, @lbl5910, @lbl5912+@lbl5910+ dbgloc 346+ %t94 =l add %t87, 16+ %t95 =l call $format__oid_from_hex(l %t96, l %t94)+ storel %t96, %t97+ call $__sx_dbg_keep(l %t97)+ dbgvar "oid_opt", "option[bytes.Bytes]", %t97, 8, 5, 346+ dbgloc 347+ %t98 =l loadl %t96+ %t99 =w cnel %t98, 0+ jnz %t99, @lbl5921, @lbl5922+@lbl5921+ %t101 =l add %t96, 8+ %t100 =l loadl %t101+ dbgloc 349+ %t102 =l loadl %t17+ call $memcpy(l %t102, l %t100, l 16)+ jmp @lbl5923+@lbl5922+ dbgloc 352+ %t103 =l copy 0+ %t104 =l loadl %t17+ %t105 =l add %t104, 148+ storew %t103, %t105+ jmp @lbl5923+@lbl5923+ jmp @lbl5911+@lbl5912+ %t106 =l add %t87, 0+ %t107 =l copy $__str276+ %t108 =l copy 6+ %t109 =l call $bytes__bytes(l %t107, l %t108)+ %t110 =w call $bytes__Bytes__eql(l %t106, l %t109)+ jnz %t110, @lbl5913, @lbl5914+@lbl5913+ dbgloc 356+ %t111 =l add %t87, 16+ %t112 =l call $format__oid_from_hex(l %t113, l %t111)+ storel %t113, %t114+ call $__sx_dbg_keep(l %t114)+ dbgvar "oid_opt2", "option[bytes.Bytes]", %t114, 8, 5, 356+ dbgloc 357+ %t115 =l loadl %t113+ %t116 =w cnel %t115, 0+ jnz %t116, @lbl5924, @lbl5925+@lbl5924+ %t118 =l add %t113, 8+ %t117 =l loadl %t118+ dbgloc 359+ %t120 =l loadl %t17+ %t121 =l add %t120, 16+ %t122 =l call $sxqbe_list_ensure(l %t121)+ %t123 =l add %t122, 8+ %t124 =l add %t122, 16+ %t125 =l loadl %t123+ %t126 =l loadl %t124+ %t128 =l add %t125, 1+ %t127 =w call $sxqbe_list_grow(l %t122, l %t128)+ %t129 =l call $sxqbe_list_buf(l %t122)+ %t130 =l mul %t125, 8+ %t131 =l add %t129, %t130+ storel %t117, %t131+ %t132 =l add %t125, 1+ storel %t132, %t123+ %t119 =l copy 0+ jmp @lbl5926+@lbl5925+ dbgloc 362+ %t133 =l copy 0+ %t134 =l loadl %t17+ %t135 =l add %t134, 148+ storew %t133, %t135+ jmp @lbl5926+@lbl5926+ jmp @lbl5911+@lbl5914+ %t136 =l add %t87, 0+ %t137 =l copy $__str277+ %t138 =l copy 6+ %t139 =l call $bytes__bytes(l %t137, l %t138)+ %t140 =w call $bytes__Bytes__eql(l %t136, l %t139)+ jnz %t140, @lbl5915, @lbl5916+@lbl5915+ dbgloc 366+ %t141 =l add %t87, 16+ %t142 =l call $format__parse_sig(l %t143, l %t141)+ storel %t143, %t144+ call $__sx_dbg_keep(l %t144)+ dbgvar "sig_opt", "option[prim.Sig]", %t144, 8, 5, 366+ dbgloc 367+ %t145 =l loadl %t143+ %t146 =w cnel %t145, 0+ jnz %t146, @lbl5927, @lbl5928+@lbl5927+ %t148 =l add %t143, 8+ %t147 =l loadl %t148+ dbgloc 369+ %t149 =l loadl %t17+ %t150 =l add %t149, 24+ call $memcpy(l %t150, l %t147, l 42)+ jmp @lbl5929+@lbl5928+ dbgloc 372+ %t151 =l copy 0+ %t152 =l loadl %t17+ %t153 =l add %t152, 148+ storew %t151, %t153+ jmp @lbl5929+@lbl5929+ jmp @lbl5911+@lbl5916+ %t154 =l add %t87, 0+ %t155 =l copy $__str278+ %t156 =l copy 9+ %t157 =l call $bytes__bytes(l %t155, l %t156)+ %t158 =w call $bytes__Bytes__eql(l %t154, l %t157)+ jnz %t158, @lbl5917, @lbl5918+@lbl5917+ dbgloc 376+ %t159 =l add %t87, 16+ %t160 =l call $format__parse_sig(l %t161, l %t159)+ storel %t161, %t162+ call $__sx_dbg_keep(l %t162)+ dbgvar "sig_opt2", "option[prim.Sig]", %t162, 8, 5, 376+ dbgloc 377+ %t163 =l loadl %t161+ %t164 =w cnel %t163, 0+ jnz %t164, @lbl5930, @lbl5931+@lbl5930+ %t166 =l add %t161, 8+ %t165 =l loadl %t166+ dbgloc 379+ %t167 =l loadl %t17+ %t168 =l add %t167, 66+ call $memcpy(l %t168, l %t165, l 42)+ jmp @lbl5932+@lbl5931+ dbgloc 382+ %t169 =l copy 0+ %t170 =l loadl %t17+ %t171 =l add %t170, 148+ storew %t169, %t171+ jmp @lbl5932+@lbl5932+ jmp @lbl5911+@lbl5918+ %t172 =l add %t87, 0+ %t173 =l copy $__str279+ %t174 =l copy 15+ %t175 =l call $bytes__bytes(l %t173, l %t174)+ %t176 =w call $bytes__Bytes__eql(l %t172, l %t175)+ jnz %t176, @lbl5919, @lbl5920+@lbl5919+ dbgloc 386+ %t177 =l add %t87, 16+ %t179 =l add %t177, 8+ %t178 =l loadl %t179+ %t180 =l copy 32+ %t181 =w ceql %t178, %t180+ jnz %t181, @lbl5933, @lbl5935+@lbl5933+ dbgloc 387+ %t183 =l copy 16+ %t182 =l call $malloc(l %t183)+ %t184 =l copy %t182+ storel %t184, %t185+ call $__sx_dbg_keep(l %t185)+ dbgvar "cid", "ref u8", %t185, 8, 7, 387+ dbgloc 388+ %t186 =l copy 0+ storel %t186, %t187+ call $__sx_dbg_keep(l %t187)+ dbgvar "j", "usize", %t187, 8, 5, 388+ dbgloc 389+ jmp @lbl5936+@lbl5936+ %t188 =l loadl %t187+ %t189 =l copy 16+ %t190 =w csltl %t188, %t189+ jnz %t190, @lbl5937, @lbl5939+@lbl5937+ dbgloc 390+ %t191 =l add %t87, 16+ %t192 =l loadl %t187+ %t193 =l copy 2+ %t194 =l mul %t192, %t193+ %t195 =w call $bytes__Bytes__at(l %t191, l %t194)+ %t196 =w call $format__hex_value(w %t195)+ %t197 =w copy %t196+ storew %t197, %t198+ call $__sx_dbg_keep(l %t198)+ dbgvar "hi", "i32", %t198, 4, 5, 390+ dbgloc 391+ %t199 =l add %t87, 16+ %t200 =l loadl %t187+ %t201 =l copy 2+ %t202 =l mul %t200, %t201+ %t203 =l copy 1+ %t204 =l add %t202, %t203+ %t205 =w call $bytes__Bytes__at(l %t199, l %t204)+ %t206 =w call $format__hex_value(w %t205)+ %t207 =w copy %t206+ storew %t207, %t208+ call $__sx_dbg_keep(l %t208)+ dbgvar "lo", "i32", %t208, 4, 5, 391+ dbgloc 392+ %t209 =w copy 0+ %t210 =w csltw %t197, %t209+ storew %t210, %t211+ jnz %t210, @lbl5944, @lbl5943+@lbl5943+ %t212 =w copy 0+ %t213 =w csltw %t207, %t212+ storew %t213, %t211+ jmp @lbl5944+@lbl5944+ %t214 =w loadw %t211+ jnz %t214, @lbl5940, @lbl5941+@lbl5940+ dbgloc 393+ %t216 =l copy %t184+ call $free(l %t216)+ %t215 =l copy 0+ dbgloc 394+ %t217 =l copy 0+ %t218 =l loadl %t17+ %t219 =l add %t218, 148+ storew %t217, %t219+ dbgloc 395+ jmp @lbl5939+@lbl5941+ dbgloc 397+ %t222 =l loadl %t187+ %t223 =l copy %t222+ %t221 =l add %t184, %t223+ %t224 =l extsw %t197+ %t225 =l copy 16+ %t227 =l extsw %t224+ %t226 =l mul %t227, %t225+ %t228 =l extsw %t207+ %t230 =l extsw %t228+ %t229 =l add %t226, %t230+ storeb %t229, %t221+ %t220 =l copy 0+ dbgloc 398+ %t231 =l loadl %t187+ %t232 =l add %t231, 1+ storel %t232, %t187+ jmp @lbl5938+@lbl5938+ jmp @lbl5936+@lbl5939+ dbgloc 400+ %t233 =l loadl %t187+ %t234 =l copy 16+ %t235 =w ceql %t233, %t234+ jnz %t235, @lbl5945, @lbl5946+@lbl5945+ dbgloc 401+ %t236 =l copy 16+ %t237 =l call $bytes__bytes(l %t184, l %t236)+ %t238 =l loadl %t17+ %t239 =l add %t238, 132+ call $memcpy(l %t239, l %t237, l 16)+ jmp @lbl5946+@lbl5946+ jmp @lbl5934+@lbl5935+ dbgloc 404+ %t240 =l copy 0+ %t241 =l loadl %t17+ %t242 =l add %t241, 148+ storew %t240, %t242+ jmp @lbl5934+@lbl5934+ jmp @lbl5911+@lbl5920+ dbgloc 407+ %t243 =l add %t87, 0+ %t244 =l add %t87, 16+ %t245 =l call $format__new_kv(l %t243, l %t244)+ storel %t245, %t246+ call $__sx_dbg_keep(l %t246)+ dbgvar "extra", "ref prim.KeyValue", %t246, 8, 7, 407+ dbgloc 408+ %t248 =l loadl %t17+ %t249 =l add %t248, 124+ %t250 =l call $sxqbe_list_ensure(l %t249)+ %t251 =l add %t250, 8+ %t252 =l add %t250, 16+ %t253 =l loadl %t251+ %t254 =l loadl %t252+ %t256 =l add %t253, 1+ %t255 =w call $sxqbe_list_grow(l %t250, l %t256)+ %t257 =l call $sxqbe_list_buf(l %t250)+ %t258 =l mul %t253, 8+ %t259 =l add %t257, %t258+ storel %t245, %t259+ %t260 =l add %t253, 1+ storel %t260, %t251+ %t247 =l copy 0+ dbgloc 409+ storel %t245, %t57+ dbgloc 410+ %t261 =l loadl %t61+ %t262 =l add %t87, 0+ %t264 =l add %t262, 8+ %t263 =l loadl %t264+ %t265 =l add %t261, %t263+ %t266 =l copy 1+ %t267 =l add %t265, %t266+ storel %t267, %t59+ jmp @lbl5911+@lbl5911+ jmp @lbl5909+@lbl5908+ dbgloc 414+ %t268 =l copy 0+ %t269 =l loadl %t17+ %t270 =l add %t269, 148+ storew %t268, %t270+ jmp @lbl5909+@lbl5909+ jmp @lbl5902+@lbl5902+ dbgloc 418+ %t271 =l copy 1+ %t272 =l add %t65, %t271+ storel %t272, %t61+ jmp @lbl5899+@lbl5899+ jmp @lbl5897+@lbl5900+ dbgloc 420+ %t273 =l loadl %t17+ call $memset(l %t274, w 0, l 16)+ storel 1, %t274+ %t275 =l add %t274, 8+ storel %t273, %t275+ call $memcpy(l %__ret, l %t274, l 16)+ ret %__ret+}++export function w $format__free_parsed_commit(l %c) {+@start+ %t0 =l alloc8 8+ %t8 =l alloc8 8+ %t13 =l alloc8 8+ %t26 =l alloc8 8+ %t43 =l alloc8 8+ %t52 =l alloc8 8+ dbgloc 423+ storel %c, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "c", "ref ParsedCommit", %t0, 8, 7, 423+ dbgloc 424+ %t1 =l add %c, 0+ %t2 =l loadl %t1+ %t3 =l copy 0+ %t4 =w cnel %t2, %t3+ jnz %t4, @lbl5948, @lbl5949+@lbl5948+ dbgloc 425+ %t5 =l add %c, 0+ %t6 =l loadl %t5+ %t7 =l copy %t6+ storel %t7, %t8+ call $__sx_dbg_keep(l %t8)+ dbgvar "tp", "ref ", %t8, 8, 7, 425+ dbgloc 426+ %t10 =l loadl %t8+ call $free(l %t10)+ %t9 =l copy 0+ jmp @lbl5949+@lbl5949+ dbgloc 428+ %t12 =l add %c, 16+ %t11 =l loadl %t12+ storel 0, %t13+ %t14 =l call $sxqbe_list_len(l %t11)+@lbl5951+ %t15 =l loadl %t13+ %t16 =w csltl %t15, %t14+ jnz %t16, @lbl5952, @lbl5953+@lbl5952+ %t17 =l call $sxqbe_list_buf(l %t11)+ %t18 =l mul %t15, 8+ %t19 =l add %t17, %t18+ %t20 =l loadl %t19+ dbgloc 429+ %t21 =l loadl %t20+ %t22 =l copy 0+ %t23 =w cnel %t21, %t22+ jnz %t23, @lbl5955, @lbl5956+@lbl5955+ dbgloc 430+ %t24 =l loadl %t20+ %t25 =l copy %t24+ storel %t25, %t26+ call $__sx_dbg_keep(l %t26)+ dbgvar "pp", "ref ", %t26, 8, 7, 430+ dbgloc 431+ %t28 =l loadl %t26+ call $free(l %t28)+ %t27 =l copy 0+ jmp @lbl5956+@lbl5956+@lbl5954+ %t29 =l add %t15, 1+ storel %t29, %t13+ jmp @lbl5951+@lbl5953+ dbgloc 434+ %t32 =l add %c, 16+ %t31 =l loadl %t32+ call $sxqbe_list_free(l %t31)+ %t30 =l copy 0+ dbgloc 435+ %t33 =l add %c, 132+ %t34 =l loadl %t33+ %t35 =l copy 0+ %t36 =w cnel %t34, %t35+ jnz %t36, @lbl5958, @lbl5959+@lbl5958+ dbgloc 436+ %t38 =l add %c, 132+ %t39 =l loadl %t38+ %t40 =l copy %t39+ call $free(l %t40)+ %t37 =l copy 0+ jmp @lbl5959+@lbl5959+ dbgloc 438+ %t42 =l add %c, 124+ %t41 =l loadl %t42+ storel 0, %t43+ %t44 =l call $sxqbe_list_len(l %t41)+@lbl5961+ %t45 =l loadl %t43+ %t46 =w csltl %t45, %t44+ jnz %t46, @lbl5962, @lbl5963+@lbl5962+ %t47 =l call $sxqbe_list_buf(l %t41)+ %t48 =l mul %t45, 8+ %t49 =l add %t47, %t48+ %t50 =l loadl %t49+ dbgloc 439+ %t51 =l copy %t50+ storel %t51, %t52+ call $__sx_dbg_keep(l %t52)+ dbgvar "kp", "ref ", %t52, 8, 7, 439+ dbgloc 440+ %t54 =l loadl %t52+ call $free(l %t54)+ %t53 =l copy 0+@lbl5964+ %t55 =l add %t45, 1+ storel %t55, %t43+ jmp @lbl5961+@lbl5963+ dbgloc 442+ %t58 =l add %c, 124+ %t57 =l loadl %t58+ call $sxqbe_list_free(l %t57)+ %t56 =l copy 0+ dbgloc 443+ %t60 =l copy %c+ call $free(l %t60)+ %t59 =l copy 0+ ret 0+}++export function l $format__serialize_commit(l %c) {+@start+ %t0 =l alloc8 8+ %t8 =l alloc8 8+ %t23 =l alloc8 8+ %t69 =l alloc8 8+ %t102 =l alloc8 8+ dbgloc 446+ storel %c, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "c", "ref ParsedCommit", %t0, 8, 7, 446+ dbgloc 447+ %t1 =l add %c, 108+ %t3 =l add %t1, 8+ %t2 =l loadl %t3+ %t4 =l copy 256+ %t5 =l add %t2, %t4+ %t6 =l call $buf__new(l %t5)+ %t7 =l call $malloc(l 24)+ call $memset(l %t7, w 0, l 24)+ call $memcpy(l %t7, l %t6, l 24)+ storel %t7, %t8+ call $__sx_dbg_keep(l %t8)+ dbgvar "b", "buf.Buf", %t8, 8, 5, 447+ dbgloc 448+ %t9 =l loadl %t8+ %t10 =l copy $__str280+ %t11 =l copy 5+ %t12 =l call $bytes__bytes(l %t10, l %t11)+ %t13 =w call $buf__Buf__put_bytes(l %t9, l %t12)+ dbgloc 449+ %t14 =l loadl %t8+ %t15 =l add %c, 0+ %t16 =w call $format__put_hex_id(l %t14, l %t15)+ dbgloc 450+ %t17 =l loadl %t8+ %t18 =l copy 10+ %t20 =w copy %t18+ %t19 =w call $buf__Buf__put_u8(l %t17, w %t20)+ dbgloc 451+ %t22 =l add %c, 16+ %t21 =l loadl %t22+ storel 0, %t23+ %t24 =l call $sxqbe_list_len(l %t21)+@lbl5965+ %t25 =l loadl %t23+ %t26 =w csltl %t25, %t24+ jnz %t26, @lbl5966, @lbl5967+@lbl5966+ %t27 =l call $sxqbe_list_buf(l %t21)+ %t28 =l mul %t25, 8+ %t29 =l add %t27, %t28+ %t30 =l loadl %t29+ dbgloc 452+ %t31 =l loadl %t8+ %t32 =l copy $__str281+ %t33 =l copy 7+ %t34 =l call $bytes__bytes(l %t32, l %t33)+ %t35 =w call $buf__Buf__put_bytes(l %t31, l %t34)+ dbgloc 453+ %t36 =l loadl %t8+ %t37 =w call $format__put_hex_id(l %t36, l %t30)+ dbgloc 454+ %t38 =l loadl %t8+ %t39 =l copy 10+ %t41 =w copy %t39+ %t40 =w call $buf__Buf__put_u8(l %t38, w %t41)+@lbl5968+ %t42 =l add %t25, 1+ storel %t42, %t23+ jmp @lbl5965+@lbl5967+ dbgloc 456+ %t43 =l loadl %t8+ %t44 =l copy $__str282+ %t45 =l copy 7+ %t46 =l call $bytes__bytes(l %t44, l %t45)+ %t47 =w call $buf__Buf__put_bytes(l %t43, l %t46)+ dbgloc 457+ %t48 =l loadl %t8+ %t49 =l add %c, 24+ %t50 =w call $format__put_sig(l %t48, l %t49)+ dbgloc 458+ %t51 =l loadl %t8+ %t52 =l copy 10+ %t54 =w copy %t52+ %t53 =w call $buf__Buf__put_u8(l %t51, w %t54)+ dbgloc 459+ %t55 =l loadl %t8+ %t56 =l copy $__str283+ %t57 =l copy 10+ %t58 =l call $bytes__bytes(l %t56, l %t57)+ %t59 =w call $buf__Buf__put_bytes(l %t55, l %t58)+ dbgloc 460+ %t60 =l loadl %t8+ %t61 =l add %c, 66+ %t62 =w call $format__put_sig(l %t60, l %t61)+ dbgloc 461+ %t63 =l loadl %t8+ %t64 =l copy 10+ %t66 =w copy %t64+ %t65 =w call $buf__Buf__put_u8(l %t63, w %t66)+ dbgloc 462+ %t68 =l add %c, 124+ %t67 =l loadl %t68+ storel 0, %t69+ %t70 =l call $sxqbe_list_len(l %t67)+@lbl5969+ %t71 =l loadl %t69+ %t72 =w csltl %t71, %t70+ jnz %t72, @lbl5970, @lbl5971+@lbl5970+ %t73 =l call $sxqbe_list_buf(l %t67)+ %t74 =l mul %t71, 8+ %t75 =l add %t73, %t74+ %t76 =l loadl %t75+ dbgloc 463+ %t77 =l loadl %t8+ %t78 =l add %t76, 0+ %t79 =w call $buf__Buf__put_bytes(l %t77, l %t78)+ dbgloc 464+ %t80 =l loadl %t8+ %t81 =l copy 32+ %t83 =w copy %t81+ %t82 =w call $buf__Buf__put_u8(l %t80, w %t83)+ dbgloc 465+ %t84 =l loadl %t8+ %t85 =l add %t76, 16+ %t86 =w call $buf__Buf__put_bytes(l %t84, l %t85)+ dbgloc 466+ %t87 =l loadl %t8+ %t88 =l copy 10+ %t90 =w copy %t88+ %t89 =w call $buf__Buf__put_u8(l %t87, w %t90)+@lbl5972+ %t91 =l add %t71, 1+ storel %t91, %t69+ jmp @lbl5969+@lbl5971+ dbgloc 468+ %t92 =l loadl %t8+ %t93 =l copy 10+ %t95 =w copy %t93+ %t94 =w call $buf__Buf__put_u8(l %t92, w %t95)+ dbgloc 469+ %t96 =l loadl %t8+ %t97 =l add %c, 108+ %t98 =w call $buf__Buf__put_bytes(l %t96, l %t97)+ dbgloc 470+ %t99 =l loadl %t8+ %t100 =l call $buf__Buf__view(l %t99)+ %t101 =l call $bytes__Bytes__dup(l %t100)+ storel %t101, %t102+ call $__sx_dbg_keep(l %t102)+ dbgvar "out", "bytes.Bytes", %t102, 8, 5, 470+ dbgloc 471+ %t103 =l loadl %t8+ %t104 =w call $buf__Buf__free(l %t103)+ dbgloc 472+ ret %t101+}++export function l $format__canonical_commit_bytes(l %__ret, l %body) {+@start+ %t0 =l alloc8 8+ %t2 =l alloc8 16+ %t3 =l alloc8 8+ %t9 =l alloc8 8+ %t13 =l alloc8 8+ %t18 =l alloc8 8+ %t21 =l alloc8 16+ %t22 =l alloc8 16+ %t24 =l alloc8 16+ dbgloc 475+ storel %body, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "body", "bytes.Bytes", %t0, 8, 5, 475+ dbgloc 476+ %t1 =l call $format__parse_commit(l %t2, l %body)+ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "parsed_opt", "option[ref ParsedCommit]", %t3, 8, 5, 476+ dbgloc 477+ %t4 =l loadl %t2+ %t5 =w cnel %t4, 0+ jnz %t5, @lbl5973, @lbl5974+@lbl5973+ %t7 =l add %t2, 8+ %t6 =l loadl %t7+ dbgloc 479+ %t8 =l call $format__serialize_commit(l %t6)+ storel %t8, %t9+ call $__sx_dbg_keep(l %t9)+ dbgvar "out", "bytes.Bytes", %t9, 8, 5, 479+ dbgloc 480+ %t10 =w call $bytes__Bytes__eql(l %t8, l %body)+ %t11 =w copy %t10+ %t12 =w extub %t11+ storew %t12, %t13+ call $__sx_dbg_keep(l %t13)+ dbgvar "same", "bool", %t13, 1, 7, 480+ dbgloc 481+ %t14 =w call $format__free_parsed_commit(l %t6)+ dbgloc 482+ %t15 =w ceqw %t12, 0+ jnz %t15, @lbl5976, @lbl5977+@lbl5976+ dbgloc 483+ %t16 =l loadl %t8+ %t17 =l copy %t16+ storel %t17, %t18+ call $__sx_dbg_keep(l %t18)+ dbgvar "op", "ref ", %t18, 8, 7, 483+ dbgloc 484+ %t20 =l loadl %t18+ call $free(l %t20)+ %t19 =l copy 0+ dbgloc 485+ storel 0, %t21+ call $memcpy(l %__ret, l %t21, l 16)+ ret %__ret+@lbl5977+ dbgloc 487+ call $memset(l %t22, w 0, l 16)+ storel 1, %t22+ %t23 =l add %t22, 8+ storel %t8, %t23+ call $memcpy(l %__ret, l %t22, l 16)+ ret %__ret+@lbl5974+ dbgloc 490+ storel 0, %t24+ call $memcpy(l %__ret, l %t24, l 16)+ ret %__ret+@lbl5975+ ret 0+}++export function l $format__parse_tree(l %__ret, l %body) {+@start+ %t0 =l alloc8 8+ %t4 =l alloc8 8+ %t11 =l alloc8 8+ %t17 =l alloc8 8+ %t22 =l alloc4 1+ %t40 =l alloc8 8+ %t44 =l alloc8 8+ %t49 =l alloc4 1+ %t67 =l alloc8 8+ %t84 =l alloc8 8+ %t91 =l alloc8 8+ %t129 =l alloc8 16+ dbgloc 495+ storel %body, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "body", "bytes.Bytes", %t0, 8, 5, 495+ dbgloc 496+ %t2 =l copy 12+ %t1 =l call $malloc(l %t2)+ %t3 =l copy %t1+ storel %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "out", "ref ParsedTree", %t4, 8, 7, 496+ dbgloc 497+ %t5 =l call $lists__new__GENMONO__ref_RawTreeEntry()++ %t6 =l loadl %t4+ storel %t5, %t6+ dbgloc 498+ %t7 =l copy 1+ %t8 =l loadl %t4+ %t9 =l add %t8, 8+ storew %t7, %t9+ dbgloc 499+ %t10 =l copy 0+ storel %t10, %t11+ call $__sx_dbg_keep(l %t11)+ dbgvar "pos", "usize", %t11, 8, 5, 499+ dbgloc 500+ jmp @lbl5979+@lbl5979+ %t12 =l loadl %t11+ %t14 =l add %body, 8+ %t13 =l loadl %t14+ %t15 =w csltl %t12, %t13+ jnz %t15, @lbl5980, @lbl5982+@lbl5980+ dbgloc 501+ %t16 =l loadl %t11+ storel %t16, %t17+ call $__sx_dbg_keep(l %t17)+ dbgvar "mode_start", "usize", %t17, 8, 5, 501+ dbgloc 502+ jmp @lbl5983+@lbl5983+ %t18 =l loadl %t11+ %t20 =l add %body, 8+ %t19 =l loadl %t20+ %t21 =w csltl %t18, %t19+ storew %t21, %t22+ jnz %t21, @lbl5987, @lbl5988+@lbl5987+ %t23 =l loadl %t11+ %t24 =w call $bytes__Bytes__at(l %body, l %t23)+ %t25 =w copy 32+ %t26 =w cnew %t24, %t25+ storew %t26, %t22+ jmp @lbl5988+@lbl5988+ %t27 =w loadw %t22+ jnz %t27, @lbl5984, @lbl5986+@lbl5984+ dbgloc 503+ %t28 =l loadl %t11+ %t29 =l add %t28, 1+ storel %t29, %t11+ jmp @lbl5985+@lbl5985+ jmp @lbl5983+@lbl5986+ dbgloc 505+ %t30 =l loadl %t11+ %t32 =l add %body, 8+ %t31 =l loadl %t32+ %t34 =w csltl %t30, %t31+ %t33 =w ceqw %t34, 0+ jnz %t33, @lbl5989, @lbl5990+@lbl5989+ dbgloc 506+ %t35 =l copy 0+ %t36 =l loadl %t4+ %t37 =l add %t36, 8+ storew %t35, %t37+ dbgloc 507+ jmp @lbl5982+@lbl5990+ dbgloc 509+ %t38 =l loadl %t11+ %t39 =l call $bytes__Bytes__slice(l %body, l %t16, l %t38)+ storel %t39, %t40+ call $__sx_dbg_keep(l %t40)+ dbgvar "mode", "bytes.Bytes", %t40, 8, 5, 509+ dbgloc 510+ %t41 =l loadl %t11+ %t42 =l add %t41, 1+ storel %t42, %t11+ dbgloc 511+ %t43 =l loadl %t11+ storel %t43, %t44+ call $__sx_dbg_keep(l %t44)+ dbgvar "name_start", "usize", %t44, 8, 5, 511+ dbgloc 512+ jmp @lbl5992+@lbl5992+ %t45 =l loadl %t11+ %t47 =l add %body, 8+ %t46 =l loadl %t47+ %t48 =w csltl %t45, %t46+ storew %t48, %t49+ jnz %t48, @lbl5996, @lbl5997+@lbl5996+ %t50 =l loadl %t11+ %t51 =w call $bytes__Bytes__at(l %body, l %t50)+ %t52 =w copy 0+ %t53 =w cnew %t51, %t52+ storew %t53, %t49+ jmp @lbl5997+@lbl5997+ %t54 =w loadw %t49+ jnz %t54, @lbl5993, @lbl5995+@lbl5993+ dbgloc 513+ %t55 =l loadl %t11+ %t56 =l add %t55, 1+ storel %t56, %t11+ jmp @lbl5994+@lbl5994+ jmp @lbl5992+@lbl5995+ dbgloc 515+ %t57 =l loadl %t11+ %t59 =l add %body, 8+ %t58 =l loadl %t59+ %t61 =w csltl %t57, %t58+ %t60 =w ceqw %t61, 0+ jnz %t60, @lbl5998, @lbl5999+@lbl5998+ dbgloc 516+ %t62 =l copy 0+ %t63 =l loadl %t4+ %t64 =l add %t63, 8+ storew %t62, %t64+ dbgloc 517+ jmp @lbl5982+@lbl5999+ dbgloc 519+ %t65 =l loadl %t11+ %t66 =l call $bytes__Bytes__slice(l %body, l %t43, l %t65)+ storel %t66, %t67+ call $__sx_dbg_keep(l %t67)+ dbgvar "name", "bytes.Bytes", %t67, 8, 5, 519+ dbgloc 520+ %t68 =l loadl %t11+ %t69 =l add %t68, 1+ storel %t69, %t11+ dbgloc 521+ %t70 =l loadl %t11+ %t71 =l copy 20+ %t72 =l add %t70, %t71+ %t74 =l add %body, 8+ %t73 =l loadl %t74+ %t75 =w csgtl %t72, %t73+ jnz %t75, @lbl6001, @lbl6002+@lbl6001+ dbgloc 522+ %t76 =l copy 0+ %t77 =l loadl %t4+ %t78 =l add %t77, 8+ storew %t76, %t78+ dbgloc 523+ jmp @lbl5982+@lbl6002+ dbgloc 525+ %t79 =l loadl %t11+ %t80 =l loadl %t11+ %t81 =l copy 20+ %t82 =l add %t80, %t81+ %t83 =l call $bytes__Bytes__slice(l %body, l %t79, l %t82)+ storel %t83, %t84+ call $__sx_dbg_keep(l %t84)+ dbgvar "oid", "bytes.Bytes", %t84, 8, 5, 525+ dbgloc 526+ %t85 =l loadl %t11+ %t86 =l copy 20+ %t87 =l add %t85, %t86+ storel %t87, %t11+ dbgloc 527+ %t89 =l copy 52+ %t88 =l call $malloc(l %t89)+ %t90 =l copy %t88+ storel %t90, %t91+ call $__sx_dbg_keep(l %t91)+ dbgvar "e", "ref RawTreeEntry", %t91, 8, 7, 527+ dbgloc 528+ %t92 =l loadl %t91+ call $memcpy(l %t92, l %t39, l 16)+ dbgloc 529+ %t93 =l loadl %t91+ %t94 =l add %t93, 16+ call $memcpy(l %t94, l %t66, l 16)+ dbgloc 530+ %t95 =l loadl %t91+ %t96 =l add %t95, 32+ call $memcpy(l %t96, l %t83, l 16)+ dbgloc 531+ %t97 =w call $format__canonical_mode(l %t39)+ %t98 =l loadl %t91+ %t99 =l add %t98, 48+ storew %t97, %t99+ dbgloc 532+ %t100 =l loadl %t91+ %t102 =l add %t100, 48+ %t101 =l loadub %t102+ %t103 =w ceqw %t101, 0+ jnz %t103, @lbl6004, @lbl6005+@lbl6004+ dbgloc 533+ %t104 =l copy 0+ %t105 =l loadl %t4+ %t106 =l add %t105, 8+ storew %t104, %t106+ jmp @lbl6005+@lbl6005+ dbgloc 535+ %t108 =l loadl %t4+ %t109 =l call $sxqbe_list_ensure(l %t108)+ %t110 =l loadl %t91+ %t111 =l add %t109, 8+ %t112 =l add %t109, 16+ %t113 =l loadl %t111+ %t114 =l loadl %t112+ %t116 =l add %t113, 1+ %t115 =w call $sxqbe_list_grow(l %t109, l %t116)+ %t117 =l call $sxqbe_list_buf(l %t109)+ %t118 =l mul %t113, 8+ %t119 =l add %t117, %t118+ storel %t110, %t119+ %t120 =l add %t113, 1+ storel %t120, %t111+ %t107 =l copy 0+ jmp @lbl5981+@lbl5981+ jmp @lbl5979+@lbl5982+ dbgloc 537+ %t121 =l loadl %t11+ %t123 =l add %body, 8+ %t122 =l loadl %t123+ %t124 =w cnel %t121, %t122+ jnz %t124, @lbl6007, @lbl6008+@lbl6007+ dbgloc 538+ %t125 =l copy 0+ %t126 =l loadl %t4+ %t127 =l add %t126, 8+ storew %t125, %t127+ jmp @lbl6008+@lbl6008+ dbgloc 540+ %t128 =l loadl %t4+ call $memset(l %t129, w 0, l 16)+ storel 1, %t129+ %t130 =l add %t129, 8+ storel %t128, %t130+ call $memcpy(l %__ret, l %t129, l 16)+ ret %__ret+}++function w $format__canonical_mode(l %mode) {+@start+ %t0 =l alloc8 8+ dbgloc 543+ storel %mode, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "mode", "bytes.Bytes", %t0, 8, 5, 543+ dbgloc 544+ %t1 =l copy $__str284+ %t2 =l copy 6+ %t3 =l call $bytes__bytes(l %t1, l %t2)+ %t4 =w call $bytes__Bytes__eql(l %mode, l %t3)+ jnz %t4, @lbl6010, @lbl6011+@lbl6010+ dbgloc 545+ %t5 =l copy 1+ ret %t5+@lbl6011+ dbgloc 547+ %t6 =l copy $__str285+ %t7 =l copy 6+ %t8 =l call $bytes__bytes(l %t6, l %t7)+ %t9 =w call $bytes__Bytes__eql(l %mode, l %t8)+ jnz %t9, @lbl6013, @lbl6014+@lbl6013+ dbgloc 548+ %t10 =l copy 1+ ret %t10+@lbl6014+ dbgloc 550+ %t11 =l copy $__str286+ %t12 =l copy 6+ %t13 =l call $bytes__bytes(l %t11, l %t12)+ %t14 =w call $bytes__Bytes__eql(l %mode, l %t13)+ jnz %t14, @lbl6016, @lbl6017+@lbl6016+ dbgloc 551+ %t15 =l copy 1+ ret %t15+@lbl6017+ dbgloc 553+ %t16 =l copy $__str287+ %t17 =l copy 5+ %t18 =l call $bytes__bytes(l %t16, l %t17)+ %t19 =w call $bytes__Bytes__eql(l %mode, l %t18)+ jnz %t19, @lbl6019, @lbl6020+@lbl6019+ dbgloc 554+ %t20 =l copy 1+ ret %t20+@lbl6020+ dbgloc 556+ %t21 =l copy $__str288+ %t22 =l copy 6+ %t23 =l call $bytes__bytes(l %t21, l %t22)+ %t24 =w call $bytes__Bytes__eql(l %mode, l %t23)+ jnz %t24, @lbl6022, @lbl6023+@lbl6022+ dbgloc 557+ %t25 =l copy 1+ ret %t25+@lbl6023+ dbgloc 559+ %t26 =l copy 0+ ret %t26+}++export function w $format__mode_kind(l %mode) {+@start+ %t0 =l alloc8 8+ %t5 =l alloc4 1+ dbgloc 562+ storel %mode, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "mode", "bytes.Bytes", %t0, 8, 5, 562+ dbgloc 563+ %t1 =l copy $__str287+ %t2 =l copy 5+ %t3 =l call $bytes__bytes(l %t1, l %t2)+ %t4 =w call $bytes__Bytes__eql(l %mode, l %t3)+ storew %t4, %t5+ jnz %t4, @lbl6029, @lbl6028+@lbl6028+ %t6 =l copy $__str289+ %t7 =l copy 6+ %t8 =l call $bytes__bytes(l %t6, l %t7)+ %t9 =w call $bytes__Bytes__eql(l %mode, l %t8)+ storew %t9, %t5+ jmp @lbl6029+@lbl6029+ %t10 =w loadw %t5+ jnz %t10, @lbl6025, @lbl6026+@lbl6025+ dbgloc 565+ %t11 =l copy 4+ %t12 =w copy %t11+ ret %t12+@lbl6026+ dbgloc 567+ %t13 =l copy $__str286+ %t14 =l copy 6+ %t15 =l call $bytes__bytes(l %t13, l %t14)+ %t16 =w call $bytes__Bytes__eql(l %mode, l %t15)+ jnz %t16, @lbl6030, @lbl6031+@lbl6030+ dbgloc 568+ %t17 =l copy 3+ %t18 =w copy %t17+ ret %t18+@lbl6031+ dbgloc 570+ %t19 =l copy $__str288+ %t20 =l copy 6+ %t21 =l call $bytes__bytes(l %t19, l %t20)+ %t22 =w call $bytes__Bytes__eql(l %mode, l %t21)+ jnz %t22, @lbl6033, @lbl6034+@lbl6033+ dbgloc 571+ %t23 =l copy 5+ %t24 =w copy %t23+ ret %t24+@lbl6034+ dbgloc 573+ %t25 =l copy $__str285+ %t26 =l copy 6+ %t27 =l call $bytes__bytes(l %t25, l %t26)+ %t28 =w call $bytes__Bytes__eql(l %mode, l %t27)+ jnz %t28, @lbl6036, @lbl6037+@lbl6036+ dbgloc 574+ %t29 =l copy 2+ %t30 =w copy %t29+ ret %t30+@lbl6037+ dbgloc 576+ %t31 =l copy 1+ %t32 =w copy %t31+ ret %t32+}++function l $format__entry_at(l %entries, l %i) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t3 =l alloc8 16+ %t10 =l alloc8 8+ dbgloc 579+ storel %entries, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "entries", "list[ref RawTreeEntry]", %t0, 8, 5, 579+ storel %i, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "i", "usize", %t1, 8, 5, 579+ dbgloc 580+ storel 0, %t3+ %t4 =w call $sxqbe_list_valid(l %entries, l %i)+ jnz %t4, @lbl6039, @lbl6040+@lbl6039+ %t5 =l call $sxqbe_list_buf(l %entries)+ %t6 =l mul %i, 8+ %t7 =l add %t5, %t6+ %t8 =l loadl %t7+ %t9 =l add %t3, 8+ storel %t8, %t9+ storel 1, %t3+ jmp @lbl6041+@lbl6040+ jmp @lbl6041+@lbl6041+ storel %t3, %t10+ call $__sx_dbg_keep(l %t10)+ dbgvar "o", "option[ref RawTreeEntry]", %t10, 8, 5, 580+ dbgloc 581+ %t11 =l loadl %t3+ %t12 =w cnel %t11, 0+ jnz %t12, @lbl6042, @lbl6043+@lbl6042+ %t14 =l add %t3, 8+ %t13 =l loadl %t14+ dbgloc 582+ ret %t13+@lbl6043+ jmp @lbl6044+@lbl6044+ dbgloc 584+ %t15 =l copy 0+ jnz %t15, @lbl6045, @lbl6046+@lbl6046+ %t16 =l copy $__str290+ call $dprintf(w 2, l %t16)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl6045+ dbgloc 585+ %t17 =l copy 0+ ret %t17+}++export function w $format__sort_raw_entries(l %entries) {+@start+ %t0 =l alloc8 8+ %t4 =l alloc8 8+ %t6 =l alloc8 8+ %t12 =l alloc8 8+ %t14 =l alloc8 8+ %t23 =l alloc8 8+ dbgloc 590+ storel %entries, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "entries", "list[ref RawTreeEntry]", %t0, 8, 5, 590+ dbgloc 591+ %t2 =l loadl %t0+ %t3 =l call $sxqbe_list_len(l %t2)+ storel %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "n", "usize", %t4, 8, 5, 591+ dbgloc 592+ %t5 =l copy 1+ storel %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "i", "usize", %t6, 8, 5, 592+ dbgloc 593+ jmp @lbl6047+@lbl6047+ %t7 =l loadl %t6+ %t8 =w csltl %t7, %t3+ jnz %t8, @lbl6048, @lbl6050+@lbl6048+ dbgloc 594+ %t9 =l loadl %t0+ %t10 =l loadl %t6+ %t11 =l call $format__entry_at(l %t9, l %t10)+ storel %t11, %t12+ call $__sx_dbg_keep(l %t12)+ dbgvar "cur", "ref RawTreeEntry", %t12, 8, 7, 594+ dbgloc 595+ %t13 =l loadl %t6+ storel %t13, %t14+ call $__sx_dbg_keep(l %t14)+ dbgvar "j", "usize", %t14, 8, 5, 595+ dbgloc 596+ jmp @lbl6051+@lbl6051+ %t15 =l loadl %t14+ %t16 =l copy 0+ %t17 =w csgtl %t15, %t16+ jnz %t17, @lbl6052, @lbl6054+@lbl6052+ dbgloc 597+ %t18 =l loadl %t0+ %t19 =l loadl %t14+ %t20 =l copy 1+ %t21 =l sub %t19, %t20+ %t22 =l call $format__entry_at(l %t18, l %t21)+ storel %t22, %t23+ call $__sx_dbg_keep(l %t23)+ dbgvar "prev", "ref RawTreeEntry", %t23, 8, 7, 597+ dbgloc 598+ %t24 =l add %t22, 16+ %t25 =l add %t11, 16+ %t26 =l call $bytes__Bytes__cmp(l %t24, l %t25)+ %t27 =l copy 0+ %t28 =w cslel %t26, %t27+ jnz %t28, @lbl6055, @lbl6056+@lbl6055+ dbgloc 599+ jmp @lbl6054+@lbl6056+ dbgloc 601+ %t30 =l loadl %t0+ %t31 =l loadl %t14+ %t32 =l loadl %t30+ %t33 =l mul %t31, 8+ %t34 =l add %t32, %t33+ storel %t22, %t34+ %t29 =l copy 0+ dbgloc 602+ %t35 =l loadl %t14+ %t36 =l sub %t35, 1+ storel %t36, %t14+ jmp @lbl6053+@lbl6053+ jmp @lbl6051+@lbl6054+ dbgloc 604+ %t38 =l loadl %t0+ %t39 =l loadl %t14+ %t40 =l loadl %t38+ %t41 =l mul %t39, 8+ %t42 =l add %t40, %t41+ storel %t11, %t42+ %t37 =l copy 0+ dbgloc 605+ %t43 =l loadl %t6+ %t44 =l add %t43, 1+ storel %t44, %t6+ jmp @lbl6049+@lbl6049+ jmp @lbl6047+@lbl6050+ ret 0+}++export function w $format__free_parsed_tree(l %t) {+@start+ %t0 =l alloc8 8+ %t2 =l alloc8 8+ %t11 =l alloc8 8+ dbgloc 609+ storel %t, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "t", "ref ParsedTree", %t0, 8, 7, 609+ dbgloc 610+ %t1 =l loadl %t+ storel 0, %t2+ %t3 =l call $sxqbe_list_len(l %t1)+@lbl6058+ %t4 =l loadl %t2+ %t5 =w csltl %t4, %t3+ jnz %t5, @lbl6059, @lbl6060+@lbl6059+ %t6 =l call $sxqbe_list_buf(l %t1)+ %t7 =l mul %t4, 8+ %t8 =l add %t6, %t7+ %t9 =l loadl %t8+ dbgloc 611+ %t10 =l copy %t9+ storel %t10, %t11+ call $__sx_dbg_keep(l %t11)+ dbgvar "ep", "ref ", %t11, 8, 7, 611+ dbgloc 612+ %t13 =l loadl %t11+ call $free(l %t13)+ %t12 =l copy 0+@lbl6061+ %t14 =l add %t4, 1+ storel %t14, %t2+ jmp @lbl6058+@lbl6060+ dbgloc 614+ %t16 =l loadl %t+ call $sxqbe_list_free(l %t16)+ %t15 =l copy 0+ dbgloc 615+ %t18 =l copy %t+ call $free(l %t18)+ %t17 =l copy 0+ ret 0+}++export function l $format__parse_tag(l %__ret, l %body) {+@start+ %t0 =l alloc8 8+ %t4 =l alloc8 8+ %t12 =l alloc8 8+ %t21 =l alloc8 8+ %t24 =l alloc8 8+ %t30 =l alloc8 16+ %t31 =l alloc8 8+ %t43 =l alloc8 16+ %t44 =l alloc8 8+ %t94 =l alloc8 16+ dbgloc 618+ storel %body, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "body", "bytes.Bytes", %t0, 8, 5, 618+ dbgloc 619+ %t2 =l copy 17+ %t1 =l call $malloc(l %t2)+ %t3 =l copy %t1+ storel %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "out", "ref ParsedTag", %t4, 8, 7, 619+ dbgloc 620+ %t5 =l call $bytes__empty()+ %t6 =l loadl %t4+ call $memcpy(l %t6, l %t5, l 16)+ dbgloc 621+ %t7 =l copy 0+ %t8 =w copy %t7+ %t9 =l loadl %t4+ %t10 =l add %t9, 16+ storeb %t8, %t10+ dbgloc 622+ %t11 =l copy 0+ storel %t11, %t12+ call $__sx_dbg_keep(l %t12)+ dbgvar "pos", "usize", %t12, 8, 5, 622+ dbgloc 623+ jmp @lbl6062+@lbl6062+ %t13 =l loadl %t12+ %t15 =l add %body, 8+ %t14 =l loadl %t15+ %t16 =w csltl %t13, %t14+ jnz %t16, @lbl6063, @lbl6065+@lbl6063+ dbgloc 624+ %t17 =l loadl %t12+ %t19 =l add %body, 8+ %t18 =l loadl %t19+ %t20 =l call $format__find_line_end(l %body, l %t17, l %t18)+ storel %t20, %t21+ call $__sx_dbg_keep(l %t21)+ dbgvar "line_end", "usize", %t21, 8, 5, 624+ dbgloc 625+ %t22 =l loadl %t12+ %t23 =l call $bytes__Bytes__slice(l %body, l %t22, l %t20)+ storel %t23, %t24+ call $__sx_dbg_keep(l %t24)+ dbgvar "line", "bytes.Bytes", %t24, 8, 5, 625+ dbgloc 626+ %t26 =l add %t23, 8+ %t25 =l loadl %t26+ %t27 =l copy 0+ %t28 =w ceql %t25, %t27+ jnz %t28, @lbl6066, @lbl6067+@lbl6066+ dbgloc 627+ jmp @lbl6065+@lbl6067+ dbgloc 629+ %t29 =l call $format__parse_header_line(l %t30, l %t23)+ storel %t30, %t31+ call $__sx_dbg_keep(l %t31)+ dbgvar "kv_opt", "option[prim.KeyValue]", %t31, 8, 5, 629+ dbgloc 630+ %t32 =l loadl %t30+ %t33 =w cnel %t32, 0+ jnz %t33, @lbl6069, @lbl6070+@lbl6069+ %t35 =l add %t30, 8+ %t34 =l loadl %t35+ dbgloc 631+ %t36 =l add %t34, 0+ %t37 =l copy $__str291+ %t38 =l copy 6+ %t39 =l call $bytes__bytes(l %t37, l %t38)+ %t40 =w call $bytes__Bytes__eql(l %t36, l %t39)+ jnz %t40, @lbl6072, @lbl6074+@lbl6072+ dbgloc 632+ %t41 =l add %t34, 16+ %t42 =l call $format__oid_from_hex(l %t43, l %t41)+ storel %t43, %t44+ call $__sx_dbg_keep(l %t44)+ dbgvar "oid_opt", "option[bytes.Bytes]", %t44, 8, 5, 632+ dbgloc 633+ %t45 =l loadl %t43+ %t46 =w cnel %t45, 0+ jnz %t46, @lbl6077, @lbl6078+@lbl6077+ %t48 =l add %t43, 8+ %t47 =l loadl %t48+ dbgloc 634+ %t49 =l loadl %t4+ call $memcpy(l %t49, l %t47, l 16)+ jmp @lbl6079+@lbl6078+ jmp @lbl6079+@lbl6079+ jmp @lbl6073+@lbl6074+ %t50 =l add %t34, 0+ %t51 =l copy $__str292+ %t52 =l copy 4+ %t53 =l call $bytes__bytes(l %t51, l %t52)+ %t54 =w call $bytes__Bytes__eql(l %t50, l %t53)+ jnz %t54, @lbl6075, @lbl6073+@lbl6075+ dbgloc 637+ %t55 =l add %t34, 16+ %t56 =l copy $__str183+ %t57 =l copy 6+ %t58 =l call $bytes__bytes(l %t56, l %t57)+ %t59 =w call $bytes__Bytes__eql(l %t55, l %t58)+ jnz %t59, @lbl6080, @lbl6082+@lbl6080+ dbgloc 638+ %t60 =l copy 1+ %t61 =w copy %t60+ %t62 =l loadl %t4+ %t63 =l add %t62, 16+ storeb %t61, %t63+ jmp @lbl6081+@lbl6082+ %t64 =l add %t34, 16+ %t65 =l copy $__str182+ %t66 =l copy 4+ %t67 =l call $bytes__bytes(l %t65, l %t66)+ %t68 =w call $bytes__Bytes__eql(l %t64, l %t67)+ jnz %t68, @lbl6083, @lbl6084+@lbl6083+ dbgloc 640+ %t69 =l copy 2+ %t70 =w copy %t69+ %t71 =l loadl %t4+ %t72 =l add %t71, 16+ storeb %t70, %t72+ jmp @lbl6081+@lbl6084+ %t73 =l add %t34, 16+ %t74 =l copy $__str181+ %t75 =l copy 4+ %t76 =l call $bytes__bytes(l %t74, l %t75)+ %t77 =w call $bytes__Bytes__eql(l %t73, l %t76)+ jnz %t77, @lbl6085, @lbl6086+@lbl6085+ dbgloc 642+ %t78 =l copy 3+ %t79 =w copy %t78+ %t80 =l loadl %t4+ %t81 =l add %t80, 16+ storeb %t79, %t81+ jmp @lbl6081+@lbl6086+ %t82 =l add %t34, 16+ %t83 =l copy $__str264+ %t84 =l copy 3+ %t85 =l call $bytes__bytes(l %t83, l %t84)+ %t86 =w call $bytes__Bytes__eql(l %t82, l %t85)+ jnz %t86, @lbl6087, @lbl6081+@lbl6087+ dbgloc 644+ %t87 =l copy 4+ %t88 =w copy %t87+ %t89 =l loadl %t4+ %t90 =l add %t89, 16+ storeb %t88, %t90+ jmp @lbl6081+@lbl6081+ jmp @lbl6073+@lbl6073+ jmp @lbl6071+@lbl6070+ jmp @lbl6071+@lbl6071+ dbgloc 648+ %t91 =l copy 1+ %t92 =l add %t20, %t91+ storel %t92, %t12+ jmp @lbl6064+@lbl6064+ jmp @lbl6062+@lbl6065+ dbgloc 650+ %t93 =l loadl %t4+ call $memset(l %t94, w 0, l 16)+ storel 1, %t94+ %t95 =l add %t94, 8+ storel %t93, %t95+ call $memcpy(l %__ret, l %t94, l 16)+ ret %__ret+}++export function w $format__free_parsed_tag(l %t) {+@start+ %t0 =l alloc8 8+ %t8 =l alloc8 8+ %t12 =l alloc8 8+ dbgloc 653+ storel %t, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "t", "ref ParsedTag", %t0, 8, 7, 653+ dbgloc 654+ %t1 =l add %t, 0+ %t2 =l loadl %t1+ %t3 =l copy 0+ %t4 =w cnel %t2, %t3+ jnz %t4, @lbl6089, @lbl6090+@lbl6089+ dbgloc 655+ %t5 =l add %t, 0+ %t6 =l loadl %t5+ %t7 =l copy %t6+ storel %t7, %t8+ call $__sx_dbg_keep(l %t8)+ dbgvar "tp", "ref ", %t8, 8, 7, 655+ dbgloc 656+ %t10 =l loadl %t8+ call $free(l %t10)+ %t9 =l copy 0+ jmp @lbl6090+@lbl6090+ dbgloc 658+ %t11 =l copy %t+ storel %t11, %t12+ call $__sx_dbg_keep(l %t12)+ dbgvar "tq", "ref ", %t12, 8, 7, 658+ dbgloc 659+ %t14 =l loadl %t12+ call $free(l %t14)+ %t13 =l copy 0+ ret 0+}++dbgfile "src/git/refs.sx"+function l $refs__new_ref(l %name, l %oid) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t5 =l alloc8 8+ dbgloc 20+ storel %name, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "name", "bytes.Bytes", %t0, 8, 5, 20+ storel %oid, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "oid", "bytes.Bytes", %t1, 8, 5, 20+ dbgloc 21+ %t3 =l copy 32+ %t2 =l call $malloc(l %t3)+ %t4 =l copy %t2+ storel %t4, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "r", "ref Ref", %t5, 8, 7, 21+ dbgloc 22+ %t6 =l loadl %t5+ call $memcpy(l %t6, l %name, l 16)+ dbgloc 23+ %t7 =l loadl %t5+ %t8 =l add %t7, 16+ call $memcpy(l %t8, l %oid, l 16)+ dbgloc 24+ %t9 =l loadl %t5+ ret %t9+}++function w $refs__hex_value(w %c) {+@start+ %t0 =l alloc8 8+ %t4 =l alloc4 1+ %t15 =l alloc4 1+ %t26 =l alloc4 1+ dbgloc 27+ storew %c, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "c", "u8", %t0, 1, 7, 27+ dbgloc 28+ %t1 =w copy 48+ %t3 =w csltw %c, %t1+ %t2 =w ceqw %t3, 0+ storew %t2, %t4+ jnz %t2, @lbl6095, @lbl6096+@lbl6095+ %t5 =w copy 57+ %t6 =w cslew %c, %t5+ storew %t6, %t4+ jmp @lbl6096+@lbl6096+ %t7 =w loadw %t4+ jnz %t7, @lbl6092, @lbl6093+@lbl6092+ dbgloc 29+ %t8 =l extsw %c+ %t9 =l copy 48+ %t11 =l extsw %t8+ %t10 =l sub %t11, %t9+ ret %t10+@lbl6093+ dbgloc 31+ %t12 =w copy 97+ %t14 =w csltw %c, %t12+ %t13 =w ceqw %t14, 0+ storew %t13, %t15+ jnz %t13, @lbl6100, @lbl6101+@lbl6100+ %t16 =w copy 102+ %t17 =w cslew %c, %t16+ storew %t17, %t15+ jmp @lbl6101+@lbl6101+ %t18 =w loadw %t15+ jnz %t18, @lbl6097, @lbl6098+@lbl6097+ dbgloc 32+ %t19 =l extsw %c+ %t20 =l copy 87+ %t22 =l extsw %t19+ %t21 =l sub %t22, %t20+ ret %t21+@lbl6098+ dbgloc 34+ %t23 =w copy 65+ %t25 =w csltw %c, %t23+ %t24 =w ceqw %t25, 0+ storew %t24, %t26+ jnz %t24, @lbl6105, @lbl6106+@lbl6105+ %t27 =w copy 70+ %t28 =w cslew %c, %t27+ storew %t28, %t26+ jmp @lbl6106+@lbl6106+ %t29 =w loadw %t26+ jnz %t29, @lbl6102, @lbl6103+@lbl6102+ dbgloc 35+ %t30 =l extsw %c+ %t31 =l copy 55+ %t33 =l extsw %t30+ %t32 =l sub %t33, %t31+ ret %t32+@lbl6103+ dbgloc 37+ %t34 =l copy 1+ %t35 =l neg %t34+ %t36 =w copy %t35+ ret %t36+}++export function l $refs__parse_hex_oid(l %__ret, l %text) {+@start+ %t0 =l alloc8 8+ %t5 =l alloc8 16+ %t9 =l alloc8 8+ %t11 =l alloc8 8+ %t21 =l alloc8 8+ %t30 =l alloc8 8+ %t33 =l alloc4 1+ %t39 =l alloc8 16+ %t55 =l alloc8 16+ dbgloc 40+ storel %text, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "text", "bytes.Bytes", %t0, 8, 5, 40+ dbgloc 41+ %t2 =l add %text, 8+ %t1 =l loadl %t2+ %t3 =l copy 40+ %t4 =w cnel %t1, %t3+ jnz %t4, @lbl6107, @lbl6108+@lbl6107+ dbgloc 42+ storel 0, %t5+ call $memcpy(l %__ret, l %t5, l 16)+ ret %__ret+@lbl6108+ dbgloc 44+ %t7 =l copy 20+ %t6 =l call $malloc(l %t7)+ %t8 =l copy %t6+ storel %t8, %t9+ call $__sx_dbg_keep(l %t9)+ dbgvar "out", "ref u8", %t9, 8, 7, 44+ dbgloc 45+ %t10 =l copy 0+ storel %t10, %t11+ call $__sx_dbg_keep(l %t11)+ dbgvar "i", "usize", %t11, 8, 5, 45+ dbgloc 46+ jmp @lbl6110+@lbl6110+ %t12 =l loadl %t11+ %t13 =l copy 20+ %t14 =w csltl %t12, %t13+ jnz %t14, @lbl6111, @lbl6113+@lbl6111+ dbgloc 47+ %t15 =l loadl %t11+ %t16 =l copy 2+ %t17 =l mul %t15, %t16+ %t18 =w call $bytes__Bytes__at(l %text, l %t17)+ %t19 =w call $refs__hex_value(w %t18)+ %t20 =w copy %t19+ storew %t20, %t21+ call $__sx_dbg_keep(l %t21)+ dbgvar "hi", "i32", %t21, 4, 5, 47+ dbgloc 48+ %t22 =l loadl %t11+ %t23 =l copy 2+ %t24 =l mul %t22, %t23+ %t25 =l copy 1+ %t26 =l add %t24, %t25+ %t27 =w call $bytes__Bytes__at(l %text, l %t26)+ %t28 =w call $refs__hex_value(w %t27)+ %t29 =w copy %t28+ storew %t29, %t30+ call $__sx_dbg_keep(l %t30)+ dbgvar "lo", "i32", %t30, 4, 5, 48+ dbgloc 49+ %t31 =w copy 0+ %t32 =w csltw %t20, %t31+ storew %t32, %t33+ jnz %t32, @lbl6118, @lbl6117+@lbl6117+ %t34 =w copy 0+ %t35 =w csltw %t29, %t34+ storew %t35, %t33+ jmp @lbl6118+@lbl6118+ %t36 =w loadw %t33+ jnz %t36, @lbl6114, @lbl6115+@lbl6114+ dbgloc 50+ %t38 =l copy %t8+ call $free(l %t38)+ %t37 =l copy 0+ dbgloc 51+ storel 0, %t39+ call $memcpy(l %__ret, l %t39, l 16)+ ret %__ret+@lbl6115+ dbgloc 53+ %t42 =l loadl %t11+ %t43 =l copy %t42+ %t41 =l add %t8, %t43+ %t44 =l extsw %t20+ %t45 =l copy 16+ %t47 =l extsw %t44+ %t46 =l mul %t47, %t45+ %t48 =l extsw %t29+ %t50 =l extsw %t48+ %t49 =l add %t46, %t50+ storeb %t49, %t41+ %t40 =l copy 0+ dbgloc 54+ %t51 =l loadl %t11+ %t52 =l add %t51, 1+ storel %t52, %t11+ jmp @lbl6112+@lbl6112+ jmp @lbl6110+@lbl6113+ dbgloc 56+ %t53 =l copy 20+ %t54 =l call $bytes__bytes(l %t8, l %t53)+ call $memset(l %t55, w 0, l 16)+ storel 1, %t55+ %t56 =l add %t55, 8+ storel %t54, %t56+ call $memcpy(l %__ret, l %t55, l 16)+ ret %__ret+}++function l $refs__trim_eol(l %data) {+@start+ %t0 =l alloc8 8+ %t3 =l alloc8 8+ %t7 =l alloc4 1+ %t14 =l alloc4 1+ dbgloc 59+ storel %data, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "data", "bytes.Bytes", %t0, 8, 5, 59+ dbgloc 60+ %t2 =l add %data, 8+ %t1 =l loadl %t2+ storel %t1, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "end", "usize", %t3, 8, 5, 60+ dbgloc 61+ jmp @lbl6119+@lbl6119+ %t4 =l loadl %t3+ %t5 =l copy 0+ %t6 =w csgtl %t4, %t5+ storew %t6, %t7+ jnz %t6, @lbl6123, @lbl6124+@lbl6123+ %t8 =l loadl %t3+ %t9 =l copy 1+ %t10 =l sub %t8, %t9+ %t11 =w call $bytes__Bytes__at(l %data, l %t10)+ %t12 =w copy 10+ %t13 =w ceqw %t11, %t12+ storew %t13, %t14+ jnz %t13, @lbl6126, @lbl6125+@lbl6125+ %t15 =l loadl %t3+ %t16 =l copy 1+ %t17 =l sub %t15, %t16+ %t18 =w call $bytes__Bytes__at(l %data, l %t17)+ %t19 =w copy 13+ %t20 =w ceqw %t18, %t19+ storew %t20, %t14+ jmp @lbl6126+@lbl6126+ %t21 =w loadw %t14+ storew %t21, %t7+ jmp @lbl6124+@lbl6124+ %t22 =w loadw %t7+ jnz %t22, @lbl6120, @lbl6122+@lbl6120+ dbgloc 62+ %t23 =l loadl %t3+ %t24 =l sub %t23, 1+ storel %t24, %t3+ jmp @lbl6121+@lbl6121+ jmp @lbl6119+@lbl6122+ dbgloc 64+ %t25 =l copy 0+ %t26 =l loadl %t3+ %t27 =l call $bytes__Bytes__slice(l %data, l %t25, l %t26)+ ret %t27+}++function l $refs__read_line_file(l %__ret, l %path) {+@start+ %t0 =l alloc8 8+ %t2 =l alloc8 16+ %t3 =l alloc8 8+ %t9 =l alloc8 16+ %t11 =l alloc8 16+ dbgloc 67+ storel %path, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "path", "str.StringView", %t0, 8, 5, 67+ dbgloc 68+ %t1 =l call $files__read_all(l %t2, l %path)+ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "data_opt", "option[bytes.Bytes]", %t3, 8, 5, 68+ dbgloc 69+ %t4 =l loadl %t2+ %t5 =w cnel %t4, 0+ jnz %t5, @lbl6127, @lbl6128+@lbl6127+ %t7 =l add %t2, 8+ %t6 =l loadl %t7+ dbgloc 71+ %t8 =l call $refs__trim_eol(l %t6)+ call $memset(l %t9, w 0, l 16)+ storel 1, %t9+ %t10 =l add %t9, 8+ storel %t8, %t10+ call $memcpy(l %__ret, l %t9, l 16)+ ret %__ret+@lbl6128+ dbgloc 74+ storel 0, %t11+ call $memcpy(l %__ret, l %t11, l 16)+ ret %__ret+@lbl6129+ ret 0+}++function w $refs__starts_with(l %data, l %prefix) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 79+ storel %data, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "data", "bytes.Bytes", %t0, 8, 5, 79+ storel %prefix, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "prefix", "bytes.Bytes", %t1, 8, 5, 79+ dbgloc 80+ %t2 =w call $bytes__Bytes__starts_with(l %data, l %prefix)+ ret %t2+}++function l $refs__find_ref(l %__ret, l %refs, l %name) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t13 =l alloc8 16+ %t16 =l alloc8 16+ dbgloc 83+ storel %refs, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "refs", "list[ref Ref]", %t0, 8, 5, 83+ storel %name, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "name", "bytes.Bytes", %t1, 8, 5, 83+ dbgloc 84+ storel 0, %t2+ %t3 =l call $sxqbe_list_len(l %refs)+@lbl6130+ %t4 =l loadl %t2+ %t5 =w csltl %t4, %t3+ jnz %t5, @lbl6131, @lbl6132+@lbl6131+ %t6 =l call $sxqbe_list_buf(l %refs)+ %t7 =l mul %t4, 8+ %t8 =l add %t6, %t7+ %t9 =l loadl %t8+ dbgloc 85+ %t10 =l add %t9, 0+ %t11 =w call $bytes__Bytes__eql(l %t10, l %name)+ jnz %t11, @lbl6134, @lbl6135+@lbl6134+ dbgloc 86+ %t12 =l add %t9, 16+ call $memset(l %t13, w 0, l 16)+ storel 1, %t13+ %t14 =l add %t13, 8+ storel %t12, %t14+ call $memcpy(l %__ret, l %t13, l 16)+ ret %__ret+@lbl6135+@lbl6133+ %t15 =l add %t4, 1+ storel %t15, %t2+ jmp @lbl6130+@lbl6132+ dbgloc 89+ storel 0, %t16+ call $memcpy(l %__ret, l %t16, l 16)+ ret %__ret+}++function w $refs__replace_ref(l %refs, l %name, l %oid) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t4 =l alloc8 8+ %t11 =l alloc8 16+ %t20 =l alloc8 8+ %t34 =l alloc8 8+ dbgloc 92+ storel %refs, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "refs", "list[ref Ref]", %t0, 8, 5, 92+ storel %name, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "name", "bytes.Bytes", %t1, 8, 5, 92+ storel %oid, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "oid", "bytes.Bytes", %t2, 8, 5, 92+ dbgloc 93+ %t3 =l copy 0+ storel %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "i", "usize", %t4, 8, 5, 93+ dbgloc 94+ jmp @lbl6137+@lbl6137+ %t5 =l loadl %t4+ %t7 =l loadl %t0+ %t8 =l call $sxqbe_list_len(l %t7)+ %t9 =w csltl %t5, %t8+ jnz %t9, @lbl6138, @lbl6140+@lbl6138+ dbgloc 95+ storel 0, %t11+ %t12 =l loadl %t0+ %t13 =l loadl %t4+ %t14 =w call $sxqbe_list_valid(l %t12, l %t13)+ jnz %t14, @lbl6141, @lbl6142+@lbl6141+ %t15 =l call $sxqbe_list_buf(l %t12)+ %t16 =l mul %t13, 8+ %t17 =l add %t15, %t16+ %t18 =l loadl %t17+ %t19 =l add %t11, 8+ storel %t18, %t19+ storel 1, %t11+ jmp @lbl6143+@lbl6142+ jmp @lbl6143+@lbl6143+ storel %t11, %t20+ call $__sx_dbg_keep(l %t20)+ dbgvar "o", "option[ref Ref]", %t20, 8, 5, 95+ dbgloc 96+ %t21 =l loadl %t11+ %t22 =w cnel %t21, 0+ jnz %t22, @lbl6144, @lbl6145+@lbl6144+ %t24 =l add %t11, 8+ %t23 =l loadl %t24+ dbgloc 97+ %t25 =l add %t23, 0+ %t26 =w call $bytes__Bytes__eql(l %t25, l %name)+ jnz %t26, @lbl6147, @lbl6148+@lbl6147+ dbgloc 98+ %t27 =l add %t23, 16+ %t28 =l loadl %t27+ %t29 =l copy 0+ %t30 =w cnel %t28, %t29+ jnz %t30, @lbl6150, @lbl6151+@lbl6150+ dbgloc 99+ %t31 =l add %t23, 16+ %t32 =l loadl %t31+ %t33 =l copy %t32+ storel %t33, %t34+ call $__sx_dbg_keep(l %t34)+ dbgvar "old", "ref ", %t34, 8, 7, 99+ dbgloc 100+ %t36 =l loadl %t34+ call $free(l %t36)+ %t35 =l copy 0+ jmp @lbl6151+@lbl6151+ dbgloc 102+ %t37 =l add %t23, 16+ call $memcpy(l %t37, l %oid, l 16)+ dbgloc 103+ ret 0+@lbl6148+ jmp @lbl6146+@lbl6145+ jmp @lbl6146+@lbl6146+ dbgloc 106+ %t38 =l loadl %t4+ %t39 =l add %t38, 1+ storel %t39, %t4+ jmp @lbl6139+@lbl6139+ jmp @lbl6137+@lbl6140+ dbgloc 108+ %t41 =l call $sxqbe_list_ensure(l %t0)+ %t42 =l call $bytes__Bytes__dup(l %name)+ %t43 =l call $refs__new_ref(l %t42, l %oid)+ %t44 =l add %t41, 8+ %t45 =l add %t41, 16+ %t46 =l loadl %t44+ %t47 =l loadl %t45+ %t49 =l add %t46, 1+ %t48 =w call $sxqbe_list_grow(l %t41, l %t49)+ %t50 =l call $sxqbe_list_buf(l %t41)+ %t51 =l mul %t46, 8+ %t52 =l add %t50, %t51+ storel %t43, %t52+ %t53 =l add %t46, 1+ storel %t53, %t44+ %t40 =l copy 0+ ret 0+}++function l $refs__short_name(l %full, l %prefix_len) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 111+ storel %full, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "full", "bytes.Bytes", %t0, 8, 5, 111+ storel %prefix_len, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "prefix_len", "usize", %t1, 8, 5, 111+ dbgloc 112+ %t3 =l add %full, 8+ %t2 =l loadl %t3+ %t4 =l call $bytes__Bytes__slice(l %full, l %prefix_len, l %t2)+ ret %t4+}++function w $refs__read_packed_refs(l %git_dir, l %branches, l %tags) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t6 =l alloc8 8+ %t8 =l alloc8 16+ %t9 =l alloc8 8+ %t13 =l alloc8 8+ %t19 =l alloc8 8+ %t26 =l alloc8 8+ %t32 =l alloc4 1+ %t45 =l alloc8 8+ %t53 =l alloc4 1+ %t59 =l alloc4 1+ %t66 =l alloc8 8+ %t71 =l alloc4 1+ %t82 =l alloc4 1+ %t92 =l alloc8 8+ %t99 =l alloc8 8+ %t101 =l alloc8 16+ %t102 =l alloc8 8+ dbgloc 115+ storel %git_dir, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "git_dir", "str.StringView", %t0, 8, 5, 115+ storel %branches, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "branches", "list[ref Ref]", %t1, 8, 5, 115+ storel %tags, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "tags", "list[ref Ref]", %t2, 8, 5, 115+ dbgloc 120+ %t3 =l copy $__str293+ %t4 =l call $std__str__from_cstr(l %t3)+ %t5 =l call $files__join(l %git_dir, l %t4)+ storel %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "path", "str.StringView", %t6, 8, 5, 120+ dbgloc 121+ %t7 =l call $files__read_all(l %t8, l %t5)+ storel %t8, %t9+ call $__sx_dbg_keep(l %t9)+ dbgvar "data_opt", "option[bytes.Bytes]", %t9, 8, 5, 121+ dbgloc 122+ %t10 =w call $files__free_path(l %t5)+ dbgloc 123+ %t11 =l call $bytes__empty()+ %t12 =l call $malloc(l 16)+ call $memset(l %t12, w 0, l 16)+ call $memcpy(l %t12, l %t11, l 16)+ storel %t12, %t13+ call $__sx_dbg_keep(l %t13)+ dbgvar "data", "bytes.Bytes", %t13, 8, 5, 123+ dbgloc 124+ %t14 =l loadl %t8+ %t15 =w cnel %t14, 0+ jnz %t15, @lbl6153, @lbl6154+@lbl6153+ %t17 =l add %t8, 8+ %t16 =l loadl %t17+ dbgloc 126+ storel %t16, %t13+ jmp @lbl6155+@lbl6154+ dbgloc 129+ ret 0+@lbl6155+ dbgloc 132+ %t18 =l copy 0+ storel %t18, %t19+ call $__sx_dbg_keep(l %t19)+ dbgvar "pos", "usize", %t19, 8, 5, 132+ dbgloc 133+ jmp @lbl6156+@lbl6156+ %t20 =l loadl %t19+ %t21 =l loadl %t13+ %t23 =l add %t21, 8+ %t22 =l loadl %t23+ %t24 =w csltl %t20, %t22+ jnz %t24, @lbl6157, @lbl6159+@lbl6157+ dbgloc 134+ %t25 =l loadl %t19+ storel %t25, %t26+ call $__sx_dbg_keep(l %t26)+ dbgvar "end", "usize", %t26, 8, 5, 134+ dbgloc 135+ jmp @lbl6160+@lbl6160+ %t27 =l loadl %t26+ %t28 =l loadl %t13+ %t30 =l add %t28, 8+ %t29 =l loadl %t30+ %t31 =w csltl %t27, %t29+ storew %t31, %t32+ jnz %t31, @lbl6164, @lbl6165+@lbl6164+ %t33 =l loadl %t13+ %t34 =l loadl %t26+ %t35 =w call $bytes__Bytes__at(l %t33, l %t34)+ %t36 =w copy 10+ %t37 =w cnew %t35, %t36+ storew %t37, %t32+ jmp @lbl6165+@lbl6165+ %t38 =w loadw %t32+ jnz %t38, @lbl6161, @lbl6163+@lbl6161+ dbgloc 136+ %t39 =l loadl %t26+ %t40 =l add %t39, 1+ storel %t40, %t26+ jmp @lbl6162+@lbl6162+ jmp @lbl6160+@lbl6163+ dbgloc 138+ %t41 =l loadl %t13+ %t42 =l loadl %t19+ %t43 =l loadl %t26+ %t44 =l call $bytes__Bytes__slice(l %t41, l %t42, l %t43)+ storel %t44, %t45+ call $__sx_dbg_keep(l %t45)+ dbgvar "line", "bytes.Bytes", %t45, 8, 5, 138+ dbgloc 139+ %t46 =l loadl %t26+ %t47 =l copy 1+ %t48 =l add %t46, %t47+ storel %t48, %t19+ dbgloc 140+ %t50 =l add %t44, 8+ %t49 =l loadl %t50+ %t51 =l copy 0+ %t52 =w ceql %t49, %t51+ storew %t52, %t53+ jnz %t52, @lbl6170, @lbl6169+@lbl6169+ %t54 =l copy 0+ %t55 =w call $bytes__Bytes__at(l %t44, l %t54)+ %t56 =w copy 35+ %t57 =w ceqw %t55, %t56+ storew %t57, %t53+ jmp @lbl6170+@lbl6170+ %t58 =w loadw %t53+ storew %t58, %t59+ jnz %t58, @lbl6172, @lbl6171+@lbl6171+ %t60 =l copy 0+ %t61 =w call $bytes__Bytes__at(l %t44, l %t60)+ %t62 =w copy 94+ %t63 =w ceqw %t61, %t62+ storew %t63, %t59+ jmp @lbl6172+@lbl6172+ %t64 =w loadw %t59+ jnz %t64, @lbl6166, @lbl6167+@lbl6166+ dbgloc 141+ jmp @lbl6158+@lbl6167+ dbgloc 143+ %t65 =l copy 0+ storel %t65, %t66+ call $__sx_dbg_keep(l %t66)+ dbgvar "space", "usize", %t66, 8, 5, 143+ dbgloc 144+ jmp @lbl6173+@lbl6173+ %t67 =l loadl %t66+ %t69 =l add %t44, 8+ %t68 =l loadl %t69+ %t70 =w csltl %t67, %t68+ storew %t70, %t71+ jnz %t70, @lbl6177, @lbl6178+@lbl6177+ %t72 =l loadl %t66+ %t73 =w call $bytes__Bytes__at(l %t44, l %t72)+ %t74 =w copy 32+ %t75 =w cnew %t73, %t74+ storew %t75, %t71+ jmp @lbl6178+@lbl6178+ %t76 =w loadw %t71+ jnz %t76, @lbl6174, @lbl6176+@lbl6174+ dbgloc 145+ %t77 =l loadl %t66+ %t78 =l add %t77, 1+ storel %t78, %t66+ jmp @lbl6175+@lbl6175+ jmp @lbl6173+@lbl6176+ dbgloc 147+ %t79 =l loadl %t66+ %t80 =l copy 0+ %t81 =w ceql %t79, %t80+ storew %t81, %t82+ jnz %t81, @lbl6183, @lbl6182+@lbl6182+ %t83 =l loadl %t66+ %t85 =l add %t44, 8+ %t84 =l loadl %t85+ %t87 =w csltl %t83, %t84+ %t86 =w ceqw %t87, 0+ storew %t86, %t82+ jmp @lbl6183+@lbl6183+ %t88 =w loadw %t82+ jnz %t88, @lbl6179, @lbl6180+@lbl6179+ dbgloc 148+ jmp @lbl6158+@lbl6180+ dbgloc 150+ %t89 =l copy 0+ %t90 =l loadl %t66+ %t91 =l call $bytes__Bytes__slice(l %t44, l %t89, l %t90)+ storel %t91, %t92+ call $__sx_dbg_keep(l %t92)+ dbgvar "hex", "bytes.Bytes", %t92, 8, 5, 150+ dbgloc 151+ %t93 =l loadl %t66+ %t94 =l copy 1+ %t95 =l add %t93, %t94+ %t97 =l add %t44, 8+ %t96 =l loadl %t97+ %t98 =l call $bytes__Bytes__slice(l %t44, l %t95, l %t96)+ storel %t98, %t99+ call $__sx_dbg_keep(l %t99)+ dbgvar "name", "bytes.Bytes", %t99, 8, 5, 151+ dbgloc 152+ %t100 =l call $refs__parse_hex_oid(l %t101, l %t91)+ storel %t101, %t102+ call $__sx_dbg_keep(l %t102)+ dbgvar "oid_opt", "option[bytes.Bytes]", %t102, 8, 5, 152+ dbgloc 153+ %t103 =l loadl %t101+ %t104 =w cnel %t103, 0+ jnz %t104, @lbl6184, @lbl6185+@lbl6184+ %t106 =l add %t101, 8+ %t105 =l loadl %t106+ dbgloc 154+ %t107 =l copy $__str294+ %t108 =l copy 11+ %t109 =l call $bytes__bytes(l %t107, l %t108)+ %t110 =w call $refs__starts_with(l %t98, l %t109)+ jnz %t110, @lbl6187, @lbl6189+@lbl6187+ dbgloc 155+ %t111 =l loadl %t1+ %t112 =l copy 11+ %t113 =l call $refs__short_name(l %t98, l %t112)+ %t114 =w call $refs__replace_ref(l %t111, l %t113, l %t105)+ jmp @lbl6188+@lbl6189+ %t115 =l copy $__str295+ %t116 =l copy 10+ %t117 =l call $bytes__bytes(l %t115, l %t116)+ %t118 =w call $refs__starts_with(l %t98, l %t117)+ jnz %t118, @lbl6190, @lbl6188+@lbl6190+ dbgloc 157+ %t119 =l loadl %t2+ %t120 =l copy 10+ %t121 =l call $refs__short_name(l %t98, l %t120)+ %t122 =w call $refs__replace_ref(l %t119, l %t121, l %t105)+ jmp @lbl6188+@lbl6188+ jmp @lbl6186+@lbl6185+ jmp @lbl6186+@lbl6186+ jmp @lbl6158+@lbl6158+ jmp @lbl6156+@lbl6159+ dbgloc 161+ %t123 =l loadl %t13+ %t124 =w call $files__free_buffer(l %t123)+ ret 0+}++function w $refs__read_ref_dir(l %base, l %rel, l %refs) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t4 =l alloc8 8+ %t12 =l alloc8 8+ %t13 =l alloc8 8+ %t22 =l alloc8 8+ %t28 =l alloc8 8+ %t40 =l alloc8 8+ %t46 =l alloc8 16+ %t47 =l alloc8 8+ %t53 =l alloc8 16+ %t54 =l alloc8 8+ dbgloc 164+ storel %base, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "base", "str.StringView", %t0, 8, 5, 164+ storel %rel, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "rel", "str.StringView", %t1, 8, 5, 164+ storel %refs, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "refs", "list[ref Ref]", %t2, 8, 5, 164+ dbgloc 169+ %t3 =l call $malloc(l 16)+ call $memset(l %t3, w 0, l 16)+ call $memcpy(l %t3, l %base, l 16)+ storel %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "dir", "str.StringView", %t4, 8, 5, 169+ dbgloc 170+ %t6 =l add %rel, 8+ %t5 =l loadl %t6+ %t7 =l copy 0+ %t8 =w cnel %t5, %t7+ jnz %t8, @lbl6192, @lbl6193+@lbl6192+ dbgloc 171+ %t9 =l call $files__join(l %base, l %rel)+ storel %t9, %t4+ jmp @lbl6193+@lbl6193+ dbgloc 173+ %t10 =l loadl %t4+ %t11 =l call $files__list_dir(l %t10)+ storel %t11, %t12+ call $__sx_dbg_keep(l %t12)+ dbgvar "names", "list[ref u8]", %t12, 8, 5, 173+ dbgloc 174+ storel 0, %t13+ %t14 =l call $sxqbe_list_len(l %t11)+@lbl6195+ %t15 =l loadl %t13+ %t16 =w csltl %t15, %t14+ jnz %t16, @lbl6196, @lbl6197+@lbl6196+ %t17 =l call $sxqbe_list_buf(l %t11)+ %t18 =l mul %t15, 8+ %t19 =l add %t17, %t18+ %t20 =l loadl %t19+ dbgloc 175+ %t21 =l call $std__str__from_cstr(l %t20)+ storel %t21, %t22+ call $__sx_dbg_keep(l %t22)+ dbgvar "nv", "str.StringView", %t22, 8, 5, 175+ dbgloc 176+ %t23 =l copy 0+ %t24 =l copy 0+ %t25 =l call $std__str__view(l %t23, l %t24)+ %t26 =l call $files__with_suffix(l %t21, l %t25)+ %t27 =l call $malloc(l 16)+ call $memset(l %t27, w 0, l 16)+ call $memcpy(l %t27, l %t26, l 16)+ storel %t27, %t28+ call $__sx_dbg_keep(l %t28)+ dbgvar "child_rel", "str.StringView", %t28, 8, 5, 176+ dbgloc 177+ %t30 =l add %rel, 8+ %t29 =l loadl %t30+ %t31 =l copy 0+ %t32 =w cnel %t29, %t31+ jnz %t32, @lbl6199, @lbl6200+@lbl6199+ dbgloc 178+ %t33 =l loadl %t28+ %t34 =w call $files__free_path(l %t33)+ dbgloc 179+ %t35 =l copy $__str296+ %t36 =l call $std__str__from_cstr(l %t35)+ %t37 =l call $files__join3(l %rel, l %t36, l %t21)+ storel %t37, %t28+ jmp @lbl6200+@lbl6200+ dbgloc 181+ %t38 =l loadl %t28+ %t39 =l call $files__join(l %base, l %t38)+ storel %t39, %t40+ call $__sx_dbg_keep(l %t40)+ dbgvar "child_path", "str.StringView", %t40, 8, 5, 181+ dbgloc 182+ %t41 =w call $files__exists_dir(l %t39)+ jnz %t41, @lbl6202, @lbl6204+@lbl6202+ dbgloc 183+ %t42 =l loadl %t28+ %t43 =l loadl %t2+ %t44 =w call $refs__read_ref_dir(l %base, l %t42, l %t43)+ jmp @lbl6203+@lbl6204+ dbgloc 185+ %t45 =l call $refs__read_line_file(l %t46, l %t39)+ storel %t46, %t47+ call $__sx_dbg_keep(l %t47)+ dbgvar "content_opt", "option[bytes.Bytes]", %t47, 8, 5, 185+ dbgloc 186+ %t48 =l loadl %t46+ %t49 =w cnel %t48, 0+ jnz %t49, @lbl6205, @lbl6206+@lbl6205+ %t51 =l add %t46, 8+ %t50 =l loadl %t51+ dbgloc 187+ %t52 =l call $refs__parse_hex_oid(l %t53, l %t50)+ storel %t53, %t54+ call $__sx_dbg_keep(l %t54)+ dbgvar "oid_opt", "option[bytes.Bytes]", %t54, 8, 5, 187+ dbgloc 188+ %t55 =l loadl %t53+ %t56 =w cnel %t55, 0+ jnz %t56, @lbl6208, @lbl6209+@lbl6208+ %t58 =l add %t53, 8+ %t57 =l loadl %t58+ dbgloc 189+ %t59 =l loadl %t2+ %t60 =l loadl %t28+ %t61 =l loadl %t60+ %t62 =l call $bytes__from_cstr(l %t61)+ %t63 =w call $refs__replace_ref(l %t59, l %t62, l %t57)+ jmp @lbl6210+@lbl6209+ jmp @lbl6210+@lbl6210+ dbgloc 191+ %t64 =w call $files__free_buffer(l %t50)+ jmp @lbl6207+@lbl6206+ jmp @lbl6207+@lbl6207+ jmp @lbl6203+@lbl6203+ dbgloc 194+ %t65 =l loadl %t28+ %t66 =w call $files__free_path(l %t65)+ dbgloc 195+ %t67 =w call $files__free_path(l %t39)+@lbl6198+ %t68 =l add %t15, 1+ storel %t68, %t13+ jmp @lbl6195+@lbl6197+ dbgloc 197+ %t69 =w call $files__free_names(l %t11)+ dbgloc 198+ %t71 =l add %rel, 8+ %t70 =l loadl %t71+ %t72 =l copy 0+ %t73 =w cnel %t70, %t72+ jnz %t73, @lbl6211, @lbl6212+@lbl6211+ dbgloc 199+ %t74 =l loadl %t4+ %t75 =w call $files__free_path(l %t74)+ jmp @lbl6212+@lbl6212+ ret 0+}++function l $refs__resolve_head(l %git_dir, l %branches, l %tags) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t6 =l alloc8 8+ %t8 =l alloc8 16+ %t9 =l alloc8 8+ %t13 =l alloc8 8+ %t30 =l alloc8 8+ %t37 =l alloc8 8+ %t39 =l alloc8 16+ %t40 =l alloc8 8+ %t54 =l alloc8 8+ %t56 =l alloc8 16+ %t57 =l alloc8 8+ %t70 =l alloc8 16+ %t71 =l alloc8 8+ dbgloc 203+ storel %git_dir, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "git_dir", "str.StringView", %t0, 8, 5, 203+ storel %branches, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "branches", "list[ref Ref]", %t1, 8, 5, 203+ storel %tags, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "tags", "list[ref Ref]", %t2, 8, 5, 203+ dbgloc 208+ %t3 =l copy $__str163+ %t4 =l call $std__str__from_cstr(l %t3)+ %t5 =l call $files__join(l %git_dir, l %t4)+ storel %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "path", "str.StringView", %t6, 8, 5, 208+ dbgloc 209+ %t7 =l call $refs__read_line_file(l %t8, l %t5)+ storel %t8, %t9+ call $__sx_dbg_keep(l %t9)+ dbgvar "data_opt", "option[bytes.Bytes]", %t9, 8, 5, 209+ dbgloc 210+ %t10 =w call $files__free_path(l %t5)+ dbgloc 211+ %t11 =l call $bytes__empty()+ %t12 =l call $malloc(l 16)+ call $memset(l %t12, w 0, l 16)+ call $memcpy(l %t12, l %t11, l 16)+ storel %t12, %t13+ call $__sx_dbg_keep(l %t13)+ dbgvar "data", "bytes.Bytes", %t13, 8, 5, 211+ dbgloc 212+ %t14 =l loadl %t8+ %t15 =w cnel %t14, 0+ jnz %t15, @lbl6214, @lbl6215+@lbl6214+ %t17 =l add %t8, 8+ %t16 =l loadl %t17+ dbgloc 214+ storel %t16, %t13+ jmp @lbl6216+@lbl6215+ dbgloc 217+ %t18 =l call $bytes__empty()+ ret %t18+@lbl6216+ dbgloc 220+ %t19 =l loadl %t13+ %t20 =l copy $__str297+ %t21 =l copy 5+ %t22 =l call $bytes__bytes(l %t20, l %t21)+ %t23 =w call $refs__starts_with(l %t19, l %t22)+ jnz %t23, @lbl6217, @lbl6218+@lbl6217+ dbgloc 221+ %t24 =l loadl %t13+ %t25 =l copy 5+ %t26 =l loadl %t13+ %t28 =l add %t26, 8+ %t27 =l loadl %t28+ %t29 =l call $bytes__Bytes__slice(l %t24, l %t25, l %t27)+ storel %t29, %t30+ call $__sx_dbg_keep(l %t30)+ dbgvar "name", "bytes.Bytes", %t30, 8, 5, 221+ dbgloc 222+ %t31 =l copy $__str294+ %t32 =l copy 11+ %t33 =l call $bytes__bytes(l %t31, l %t32)+ %t34 =w call $refs__starts_with(l %t29, l %t33)+ jnz %t34, @lbl6220, @lbl6221+@lbl6220+ dbgloc 223+ %t35 =l copy 11+ %t36 =l call $refs__short_name(l %t29, l %t35)+ storel %t36, %t37+ call $__sx_dbg_keep(l %t37)+ dbgvar "short", "bytes.Bytes", %t37, 8, 5, 223+ dbgloc 224+ %t38 =l call $refs__find_ref(l %t39, l %branches, l %t36)+ storel %t39, %t40+ call $__sx_dbg_keep(l %t40)+ dbgvar "found", "option[bytes.Bytes]", %t40, 8, 5, 224+ dbgloc 225+ %t41 =l loadl %t39+ %t42 =w cnel %t41, 0+ jnz %t42, @lbl6223, @lbl6224+@lbl6223+ %t44 =l add %t39, 8+ %t43 =l loadl %t44+ dbgloc 226+ %t45 =l loadl %t13+ %t46 =w call $files__free_buffer(l %t45)+ dbgloc 227+ %t47 =l call $bytes__Bytes__dup(l %t43)+ ret %t47+@lbl6224+ jmp @lbl6225+@lbl6225+ jmp @lbl6221+@lbl6221+ dbgloc 230+ %t48 =l copy $__str295+ %t49 =l copy 10+ %t50 =l call $bytes__bytes(l %t48, l %t49)+ %t51 =w call $refs__starts_with(l %t29, l %t50)+ jnz %t51, @lbl6226, @lbl6227+@lbl6226+ dbgloc 231+ %t52 =l copy 10+ %t53 =l call $refs__short_name(l %t29, l %t52)+ storel %t53, %t54+ call $__sx_dbg_keep(l %t54)+ dbgvar "short2", "bytes.Bytes", %t54, 8, 5, 231+ dbgloc 232+ %t55 =l call $refs__find_ref(l %t56, l %tags, l %t53)+ storel %t56, %t57+ call $__sx_dbg_keep(l %t57)+ dbgvar "found2", "option[bytes.Bytes]", %t57, 8, 5, 232+ dbgloc 233+ %t58 =l loadl %t56+ %t59 =w cnel %t58, 0+ jnz %t59, @lbl6229, @lbl6230+@lbl6229+ %t61 =l add %t56, 8+ %t60 =l loadl %t61+ dbgloc 234+ %t62 =l loadl %t13+ %t63 =w call $files__free_buffer(l %t62)+ dbgloc 235+ %t64 =l call $bytes__Bytes__dup(l %t60)+ ret %t64+@lbl6230+ jmp @lbl6231+@lbl6231+ jmp @lbl6227+@lbl6227+ dbgloc 238+ %t65 =l loadl %t13+ %t66 =w call $files__free_buffer(l %t65)+ dbgloc 239+ %t67 =l call $bytes__empty()+ ret %t67+@lbl6218+ dbgloc 241+ %t68 =l loadl %t13+ %t69 =l call $refs__parse_hex_oid(l %t70, l %t68)+ storel %t70, %t71+ call $__sx_dbg_keep(l %t71)+ dbgvar "oid_opt", "option[bytes.Bytes]", %t71, 8, 5, 241+ dbgloc 242+ %t72 =l loadl %t13+ %t73 =w call $files__free_buffer(l %t72)+ dbgloc 243+ %t74 =l loadl %t70+ %t75 =w cnel %t74, 0+ jnz %t75, @lbl6232, @lbl6233+@lbl6232+ %t77 =l add %t70, 8+ %t76 =l loadl %t77+ dbgloc 245+ ret %t76+@lbl6233+ dbgloc 248+ %t78 =l call $bytes__empty()+ ret %t78+@lbl6234+ ret 0+}++export function l $refs__read(l %git_dir) {+@start+ %t0 =l alloc8 8+ %t2 =l alloc8 8+ %t4 =l alloc8 8+ %t11 =l alloc8 8+ %t21 =l alloc8 8+ %t29 =l alloc8 8+ %t33 =l alloc8 8+ %t43 =l alloc8 8+ %t44 =l alloc8 40+ dbgloc 253+ storel %git_dir, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "git_dir", "str.StringView", %t0, 8, 5, 253+ dbgloc 254+ %t1 =l call $lists__new__GENMONO__ref_Ref()++ storel %t1, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "branches", "list[ref Ref]", %t2, 8, 5, 254+ dbgloc 255+ %t3 =l call $lists__new__GENMONO__ref_Ref()++ storel %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "tags", "list[ref Ref]", %t4, 8, 5, 255+ dbgloc 256+ %t5 =l loadl %t2+ %t6 =l loadl %t4+ %t7 =w call $refs__read_packed_refs(l %git_dir, l %t5, l %t6)+ dbgloc 257+ %t8 =l copy $__str298+ %t9 =l call $std__str__from_cstr(l %t8)+ %t10 =l call $files__join(l %git_dir, l %t9)+ storel %t10, %t11+ call $__sx_dbg_keep(l %t11)+ dbgvar "heads_base", "str.StringView", %t11, 8, 5, 257+ dbgloc 258+ %t12 =l copy 0+ %t13 =l copy 0+ %t14 =l call $std__str__view(l %t12, l %t13)+ %t15 =l loadl %t2+ %t16 =w call $refs__read_ref_dir(l %t10, l %t14, l %t15)+ dbgloc 259+ %t17 =w call $files__free_path(l %t10)+ dbgloc 260+ %t18 =l copy $__str299+ %t19 =l call $std__str__from_cstr(l %t18)+ %t20 =l call $files__join(l %git_dir, l %t19)+ storel %t20, %t21+ call $__sx_dbg_keep(l %t21)+ dbgvar "tags_base", "str.StringView", %t21, 8, 5, 260+ dbgloc 261+ %t22 =l copy 0+ %t23 =l copy 0+ %t24 =l call $std__str__view(l %t22, l %t23)+ %t25 =l loadl %t4+ %t26 =w call $refs__read_ref_dir(l %t20, l %t24, l %t25)+ dbgloc 262+ %t27 =w call $files__free_path(l %t20)+ dbgloc 263+ %t28 =l call $lists__new__GENMONO__ref_Ref()++ storel %t28, %t29+ call $__sx_dbg_keep(l %t29)+ dbgvar "remotes", "list[ref Ref]", %t29, 8, 5, 263+ dbgloc 264+ %t30 =l copy $__str300+ %t31 =l call $std__str__from_cstr(l %t30)+ %t32 =l call $files__join(l %git_dir, l %t31)+ storel %t32, %t33+ call $__sx_dbg_keep(l %t33)+ dbgvar "remotes_base", "str.StringView", %t33, 8, 5, 264+ dbgloc 265+ %t34 =l copy 0+ %t35 =l copy 0+ %t36 =l call $std__str__view(l %t34, l %t35)+ %t37 =l loadl %t29+ %t38 =w call $refs__read_ref_dir(l %t32, l %t36, l %t37)+ dbgloc 266+ %t39 =w call $files__free_path(l %t32)+ dbgloc 267+ %t40 =l loadl %t2+ %t41 =l loadl %t4+ %t42 =l call $refs__resolve_head(l %git_dir, l %t40, l %t41)+ storel %t42, %t43+ call $__sx_dbg_keep(l %t43)+ dbgvar "head", "bytes.Bytes", %t43, 8, 5, 267+ dbgloc 268+ %t45 =l loadl %t2+ storel %t45, %t44+ %t47 =l loadl %t4+ %t48 =l add %t44, 8+ storel %t47, %t48+ %t49 =l loadl %t29+ %t50 =l add %t44, 16+ storel %t49, %t50+ %t51 =l add %t44, 24+ call $memcpy(l %t51, l %t42, l 16)+ %t52 =l call $malloc(l 40)+ call $memcpy(l %t52, l %t44, l 40)+ ret %t52+}++function w $refs__free_refs(l %refs) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t16 =l alloc8 8+ %t26 =l alloc8 8+ %t30 =l alloc8 8+ dbgloc 271+ storel %refs, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "refs", "list[ref Ref]", %t0, 8, 5, 271+ dbgloc 272+ storel 0, %t1+ %t2 =l call $sxqbe_list_len(l %refs)+@lbl6235+ %t3 =l loadl %t1+ %t4 =w csltl %t3, %t2+ jnz %t4, @lbl6236, @lbl6237+@lbl6236+ %t5 =l call $sxqbe_list_buf(l %refs)+ %t6 =l mul %t3, 8+ %t7 =l add %t5, %t6+ %t8 =l loadl %t7+ dbgloc 273+ %t9 =l add %t8, 0+ %t10 =l loadl %t9+ %t11 =l copy 0+ %t12 =w cnel %t10, %t11+ jnz %t12, @lbl6239, @lbl6240+@lbl6239+ dbgloc 274+ %t13 =l add %t8, 0+ %t14 =l loadl %t13+ %t15 =l copy %t14+ storel %t15, %t16+ call $__sx_dbg_keep(l %t16)+ dbgvar "np", "ref ", %t16, 8, 7, 274+ dbgloc 275+ %t18 =l loadl %t16+ call $free(l %t18)+ %t17 =l copy 0+ jmp @lbl6240+@lbl6240+ dbgloc 277+ %t19 =l add %t8, 16+ %t20 =l loadl %t19+ %t21 =l copy 0+ %t22 =w cnel %t20, %t21+ jnz %t22, @lbl6242, @lbl6243+@lbl6242+ dbgloc 278+ %t23 =l add %t8, 16+ %t24 =l loadl %t23+ %t25 =l copy %t24+ storel %t25, %t26+ call $__sx_dbg_keep(l %t26)+ dbgvar "op", "ref ", %t26, 8, 7, 278+ dbgloc 279+ %t28 =l loadl %t26+ call $free(l %t28)+ %t27 =l copy 0+ jmp @lbl6243+@lbl6243+ dbgloc 281+ %t29 =l copy %t8+ storel %t29, %t30+ call $__sx_dbg_keep(l %t30)+ dbgvar "rp", "ref ", %t30, 8, 7, 281+ dbgloc 282+ %t32 =l loadl %t30+ call $free(l %t32)+ %t31 =l copy 0+@lbl6238+ %t33 =l add %t3, 1+ storel %t33, %t1+ jmp @lbl6235+@lbl6237+ dbgloc 284+ call $sxqbe_list_free(l %refs)+ %t34 =l copy 0+ ret 0+}++export function w $refs__free(l %set) {+@start+ %t0 =l alloc8 8+ %t16 =l alloc8 8+ dbgloc 287+ storel %set, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "set", "RefSet", %t0, 8, 5, 287+ dbgloc 288+ %t1 =l loadl %set+ %t2 =w call $refs__free_refs(l %t1)+ dbgloc 289+ %t4 =l add %set, 8+ %t3 =l loadl %t4+ %t5 =w call $refs__free_refs(l %t3)+ dbgloc 290+ %t7 =l add %set, 16+ %t6 =l loadl %t7+ %t8 =w call $refs__free_refs(l %t6)+ dbgloc 291+ %t9 =l add %set, 24+ %t10 =l loadl %t9+ %t11 =l copy 0+ %t12 =w cnel %t10, %t11+ jnz %t12, @lbl6245, @lbl6246+@lbl6245+ dbgloc 292+ %t13 =l add %set, 24+ %t14 =l loadl %t13+ %t15 =l copy %t14+ storel %t15, %t16+ call $__sx_dbg_keep(l %t16)+ dbgvar "hp", "ref ", %t16, 8, 7, 292+ dbgloc 293+ %t18 =l loadl %t16+ call $free(l %t18)+ %t17 =l copy 0+ jmp @lbl6246+@lbl6246+ ret 0+}++dbgfile "src/git/oidmap.sx"+data $oidmap__OID_LEN = { l 20 }+data $oidmap__VALUE_LEN = { l 32 }+data $oidmap__SLOT_LEN = { l 56 }+function l $oidmap__round_cap(l %n) {+@start+ %t0 =l alloc8 8+ %t2 =l alloc8 8+ dbgloc 18+ storel %n, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "n", "usize", %t0, 8, 5, 18+ dbgloc 19+ %t1 =l copy 16+ storel %t1, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "c", "usize", %t2, 8, 5, 19+ dbgloc 20+ jmp @lbl6248+@lbl6248+ %t3 =l loadl %t2+ %t4 =w csltl %t3, %n+ jnz %t4, @lbl6249, @lbl6251+@lbl6249+ dbgloc 21+ %t5 =l loadl %t2+ %t6 =l copy 2+ %t7 =l mul %t5, %t6+ storel %t7, %t2+ jmp @lbl6250+@lbl6250+ jmp @lbl6248+@lbl6251+ dbgloc 23+ %t8 =l loadl %t2+ ret %t8+}++function l $oidmap__oid_ptr(l %map, l %i) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 26+ storel %map, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "map", "OidMap", %t0, 8, 5, 26+ storel %i, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "i", "usize", %t1, 8, 5, 26+ dbgloc 27+ %t3 =l loadl %map+ %t4 =l copy 56+ %t5 =l mul %i, %t4+ %t6 =l copy 1+ %t7 =l add %t5, %t6+ %t8 =l copy %t7+ %t2 =l add %t3, %t8+ ret %t2+}++function l $oidmap__value_ptr(l %map, l %i) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 30+ storel %map, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "map", "OidMap", %t0, 8, 5, 30+ storel %i, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "i", "usize", %t1, 8, 5, 30+ dbgloc 31+ %t3 =l loadl %map+ %t4 =l copy 56+ %t5 =l mul %i, %t4+ %t6 =l copy 1+ %t7 =l add %t5, %t6+ %t8 =l copy 20+ %t9 =l add %t7, %t8+ %t10 =l copy %t9+ %t2 =l add %t3, %t10+ ret %t2+}++function w $oidmap__used_at(l %map, l %i) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 34+ storel %map, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "map", "OidMap", %t0, 8, 5, 34+ storel %i, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "i", "usize", %t1, 8, 5, 34+ dbgloc 35+ %t4 =l loadl %map+ %t5 =l copy 56+ %t6 =l mul %i, %t5+ %t7 =l copy %t6+ %t3 =l add %t4, %t7+ %t8 =w loadub %t3+ %t2 =l extsw %t8+ %t9 =l copy 0+ %t10 =w cnel %t2, %t9+ ret %t10+}++function w $oidmap__set_used(l %map, l %i) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 38+ storel %map, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "map", "OidMap", %t0, 8, 5, 38+ storel %i, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "i", "usize", %t1, 8, 5, 38+ dbgloc 39+ %t4 =l loadl %map+ %t5 =l copy 56+ %t6 =l mul %i, %t5+ %t7 =l copy %t6+ %t3 =l add %t4, %t7+ %t8 =l copy 1+ storeb %t8, %t3+ %t2 =l copy 0+ ret 0+}++function l $oidmap__hash_oid(l %oid) {+@start+ %t0 =l alloc8 8+ %t2 =l alloc8 8+ %t4 =l alloc8 8+ dbgloc 42+ storel %oid, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "oid", "bytes.Bytes", %t0, 8, 5, 42+ dbgloc 43+ %t1 =l copy 1469598103934665603+ storel %t1, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "h", "u64", %t2, 8, 7, 43+ dbgloc 44+ %t3 =l copy 0+ storel %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "k", "usize", %t4, 8, 5, 44+ dbgloc 45+ jmp @lbl6252+@lbl6252+ %t5 =l loadl %t4+ %t6 =l copy 20+ %t7 =w csltl %t5, %t6+ jnz %t7, @lbl6253, @lbl6255+@lbl6253+ dbgloc 46+ %t8 =l loadl %t2+ %t9 =l loadl %t4+ %t10 =w call $bytes__Bytes__at(l %oid, l %t9)+ %t11 =l extsw %t10+ %t12 =l xor %t8, %t11+ %t13 =l copy 1099511628211+ %t14 =l mul %t12, %t13+ storel %t14, %t2+ dbgloc 47+ %t15 =l loadl %t4+ %t16 =l add %t15, 1+ storel %t16, %t4+ jmp @lbl6254+@lbl6254+ jmp @lbl6252+@lbl6255+ dbgloc 49+ %t17 =l loadl %t2+ ret %t17+}++function w $oidmap__slot_eql(l %map, l %i, l %oid) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ dbgloc 52+ storel %map, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "map", "OidMap", %t0, 8, 5, 52+ storel %i, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "i", "usize", %t1, 8, 5, 52+ storel %oid, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "oid", "bytes.Bytes", %t2, 8, 5, 52+ dbgloc 53+ %t3 =l call $oidmap__oid_ptr(l %map, l %i)+ %t4 =l copy 20+ %t5 =l call $bytes__bytes(l %t3, l %t4)+ %t6 =w call $bytes__Bytes__eql(l %t5, l %oid)+ ret %t6+}++function w $oidmap__copy_key(l %map, l %i, l %oid) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ dbgloc 56+ storel %map, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "map", "OidMap", %t0, 8, 5, 56+ storel %i, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "i", "usize", %t1, 8, 5, 56+ storel %oid, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "oid", "bytes.Bytes", %t2, 8, 5, 56+ dbgloc 57+ %t4 =l call $oidmap__oid_ptr(l %map, l %i)+ %t5 =l copy %t4+ %t6 =l loadl %oid+ %t7 =l copy %t6+ %t8 =l copy 20+ call $memcpy(l %t5, l %t7, l %t8)+ %t3 =l copy 0+ ret 0+}++function w $oidmap__copy_value(l %map, l %i, l %value) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t14 =l alloc8 8+ dbgloc 60+ storel %map, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "map", "OidMap", %t0, 8, 5, 60+ storel %i, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "i", "usize", %t1, 8, 5, 60+ storel %value, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "value", "bytes.Bytes", %t2, 8, 5, 60+ dbgloc 61+ %t4 =l call $oidmap__value_ptr(l %map, l %i)+ %t5 =l copy %t4+ %t6 =l copy 0+ %t7 =l copy 32+ call $memset(l %t5, w %t6, l %t7)+ %t3 =l copy 0+ dbgloc 62+ %t9 =l add %value, 8+ %t8 =l loadl %t9+ %t10 =l copy 0+ %t11 =w csgtl %t8, %t10+ jnz %t11, @lbl6256, @lbl6257+@lbl6256+ dbgloc 63+ %t13 =l add %value, 8+ %t12 =l loadl %t13+ storel %t12, %t14+ call $__sx_dbg_keep(l %t14)+ dbgvar "n", "usize", %t14, 8, 5, 63+ dbgloc 64+ %t15 =l loadl %t14+ %t16 =l copy 32+ %t17 =w csgtl %t15, %t16+ jnz %t17, @lbl6259, @lbl6260+@lbl6259+ dbgloc 65+ %t18 =l copy 32+ storel %t18, %t14+ jmp @lbl6260+@lbl6260+ dbgloc 67+ %t20 =l call $oidmap__value_ptr(l %map, l %i)+ %t21 =l copy %t20+ %t22 =l loadl %value+ %t23 =l copy %t22+ %t24 =l loadl %t14+ call $memcpy(l %t21, l %t23, l %t24)+ %t19 =l copy 0+ jmp @lbl6257+@lbl6257+ ret 0+}++export function l $oidmap__new(l %initial) {+@start+ %t0 =l alloc8 8+ %t2 =l alloc8 8+ %t7 =l alloc8 8+ %t13 =l alloc8 24+ dbgloc 71+ storel %initial, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "initial", "usize", %t0, 8, 5, 71+ dbgloc 72+ %t1 =l call $oidmap__round_cap(l %initial)+ storel %t1, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "cap", "usize", %t2, 8, 5, 72+ dbgloc 73+ %t4 =l copy 56+ %t5 =l mul %t1, %t4+ %t3 =l call $malloc(l %t5)+ %t6 =l copy %t3+ storel %t6, %t7+ call $__sx_dbg_keep(l %t7)+ dbgvar "p", "ref u8", %t7, 8, 7, 73+ dbgloc 74+ %t9 =l copy %t6+ %t10 =l copy 0+ %t11 =l copy 56+ %t12 =l mul %t1, %t11+ call $memset(l %t9, w %t10, l %t12)+ %t8 =l copy 0+ dbgloc 75+ storel %t6, %t13+ %t15 =l add %t13, 8+ storel %t1, %t15+ %t16 =l copy 0+ %t17 =l add %t13, 16+ storel %t16, %t17+ %t18 =l call $malloc(l 24)+ call $memcpy(l %t18, l %t13, l 24)+ ret %t18+}++export function w $oidmap__free(l %map) {+@start+ %t0 =l alloc8 8+ dbgloc 78+ storel %map, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "map", "OidMap", %t0, 8, 5, 78+ dbgloc 79+ %t1 =l loadl %t0+ %t2 =l loadl %t1+ %t3 =l copy 0+ %t4 =w cnel %t2, %t3+ jnz %t4, @lbl6262, @lbl6263+@lbl6262+ dbgloc 80+ %t6 =l loadl %t0+ %t7 =l loadl %t6+ %t8 =l copy %t7+ call $free(l %t8)+ %t5 =l copy 0+ jmp @lbl6263+@lbl6263+ dbgloc 82+ %t9 =l copy 0+ %t10 =l loadl %t0+ storel %t9, %t10+ dbgloc 83+ %t11 =l copy 0+ %t12 =l loadl %t0+ %t13 =l add %t12, 8+ storel %t11, %t13+ dbgloc 84+ %t14 =l copy 0+ %t15 =l loadl %t0+ %t16 =l add %t15, 16+ storel %t14, %t16+ ret 0+}++export function l $oidmap__count(l %map) {+@start+ %t0 =l alloc8 8+ dbgloc 87+ storel %map, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "map", "OidMap", %t0, 8, 5, 87+ dbgloc 88+ %t2 =l add %map, 16+ %t1 =l loadl %t2+ ret %t1+}++function w $oidmap__insert_slot(l %map, l %oid, l %value) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t8 =l alloc8 8+ %t10 =l alloc8 8+ %t13 =l alloc8 8+ dbgloc 91+ storel %map, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "map", "OidMap", %t0, 8, 5, 91+ storel %oid, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "oid", "bytes.Bytes", %t1, 8, 5, 91+ storel %value, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "value", "bytes.Bytes", %t2, 8, 5, 91+ dbgloc 92+ %t3 =l loadl %t0+ %t5 =l add %t3, 8+ %t4 =l loadl %t5+ %t6 =l copy 1+ %t7 =l sub %t4, %t6+ storel %t7, %t8+ call $__sx_dbg_keep(l %t8)+ dbgvar "mask", "usize", %t8, 8, 5, 92+ dbgloc 93+ %t9 =l call $oidmap__hash_oid(l %oid)+ storel %t9, %t10+ call $__sx_dbg_keep(l %t10)+ dbgvar "h", "u64", %t10, 8, 7, 93+ dbgloc 94+ %t11 =l copy %t9+ %t12 =l and %t11, %t7+ storel %t12, %t13+ call $__sx_dbg_keep(l %t13)+ dbgvar "idx", "usize", %t13, 8, 5, 94+ dbgloc 95+ jmp @lbl6265+@lbl6265+ jmp @lbl6266+@lbl6266+ dbgloc 96+ %t14 =l loadl %t0+ %t15 =l loadl %t13+ %t16 =w call $oidmap__used_at(l %t14, l %t15)+ %t17 =w ceqw %t16, 0+ jnz %t17, @lbl6269, @lbl6270+@lbl6269+ dbgloc 97+ %t18 =l loadl %t0+ %t19 =l loadl %t13+ %t20 =w call $oidmap__set_used(l %t18, l %t19)+ dbgloc 98+ %t21 =l loadl %t0+ %t22 =l loadl %t13+ %t23 =w call $oidmap__copy_key(l %t21, l %t22, l %oid)+ dbgloc 99+ %t24 =l loadl %t0+ %t25 =l loadl %t13+ %t26 =w call $oidmap__copy_value(l %t24, l %t25, l %value)+ dbgloc 100+ %t27 =l loadl %t0+ %t29 =l add %t27, 16+ %t28 =l loadl %t29+ %t30 =l add %t28, 1+ %t31 =l loadl %t0+ %t32 =l add %t31, 16+ storel %t30, %t32+ dbgloc 101+ ret 0+@lbl6270+ dbgloc 103+ %t33 =l loadl %t0+ %t34 =l loadl %t13+ %t35 =w call $oidmap__slot_eql(l %t33, l %t34, l %oid)+ jnz %t35, @lbl6272, @lbl6273+@lbl6272+ dbgloc 104+ %t36 =l loadl %t0+ %t37 =l loadl %t13+ %t38 =w call $oidmap__copy_value(l %t36, l %t37, l %value)+ dbgloc 105+ ret 0+@lbl6273+ dbgloc 107+ %t39 =l loadl %t13+ %t40 =l copy 1+ %t41 =l add %t39, %t40+ %t42 =l and %t41, %t7+ storel %t42, %t13+ jmp @lbl6267+@lbl6267+ jmp @lbl6265+@lbl6268+ ret 0+}++function w $oidmap__grow(l %map) {+@start+ %t0 =l alloc8 8+ %t3 =l alloc8 8+ %t7 =l alloc8 8+ %t10 =l alloc8 8+ %t15 =l alloc8 8+ %t28 =l alloc8 8+ %t51 =l alloc8 8+ %t64 =l alloc8 8+ dbgloc 111+ storel %map, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "map", "OidMap", %t0, 8, 5, 111+ dbgloc 112+ %t1 =l loadl %t0+ %t2 =l loadl %t1+ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "old_slots", "ref u8", %t3, 8, 7, 112+ dbgloc 113+ %t4 =l loadl %t0+ %t6 =l add %t4, 8+ %t5 =l loadl %t6+ storel %t5, %t7+ call $__sx_dbg_keep(l %t7)+ dbgvar "old_cap", "usize", %t7, 8, 5, 113+ dbgloc 114+ %t8 =l copy 2+ %t9 =l mul %t5, %t8+ storel %t9, %t10+ call $__sx_dbg_keep(l %t10)+ dbgvar "new_cap", "usize", %t10, 8, 5, 114+ dbgloc 115+ %t12 =l copy 56+ %t13 =l mul %t9, %t12+ %t11 =l call $malloc(l %t13)+ %t14 =l copy %t11+ storel %t14, %t15+ call $__sx_dbg_keep(l %t15)+ dbgvar "p", "ref u8", %t15, 8, 7, 115+ dbgloc 116+ %t17 =l copy %t14+ %t18 =l copy 0+ %t19 =l copy 56+ %t20 =l mul %t9, %t19+ call $memset(l %t17, w %t18, l %t20)+ %t16 =l copy 0+ dbgloc 117+ %t21 =l loadl %t0+ storel %t14, %t21+ dbgloc 118+ %t22 =l loadl %t0+ %t23 =l add %t22, 8+ storel %t9, %t23+ dbgloc 119+ %t24 =l copy 0+ %t25 =l loadl %t0+ %t26 =l add %t25, 16+ storel %t24, %t26+ dbgloc 120+ %t27 =l copy 0+ storel %t27, %t28+ call $__sx_dbg_keep(l %t28)+ dbgvar "i", "usize", %t28, 8, 5, 120+ dbgloc 121+ jmp @lbl6275+@lbl6275+ %t29 =l loadl %t28+ %t30 =w csltl %t29, %t5+ jnz %t30, @lbl6276, @lbl6278+@lbl6276+ dbgloc 122+ %t33 =l loadl %t3+ %t34 =l loadl %t28+ %t35 =l copy 56+ %t36 =l mul %t34, %t35+ %t37 =l copy %t36+ %t32 =l add %t33, %t37+ %t38 =w loadub %t32+ %t31 =l extsw %t38+ %t39 =l copy 0+ %t40 =w cnel %t31, %t39+ jnz %t40, @lbl6279, @lbl6280+@lbl6279+ dbgloc 123+ %t42 =l loadl %t3+ %t43 =l loadl %t28+ %t44 =l copy 56+ %t45 =l mul %t43, %t44+ %t46 =l copy 1+ %t47 =l add %t45, %t46+ %t48 =l copy %t47+ %t41 =l add %t42, %t48+ %t49 =l copy 20+ %t50 =l call $bytes__bytes(l %t41, l %t49)+ storel %t50, %t51+ call $__sx_dbg_keep(l %t51)+ dbgvar "op", "bytes.Bytes", %t51, 8, 5, 123+ dbgloc 127+ %t53 =l loadl %t3+ %t54 =l loadl %t28+ %t55 =l copy 56+ %t56 =l mul %t54, %t55+ %t57 =l copy 1+ %t58 =l add %t56, %t57+ %t59 =l copy 20+ %t60 =l add %t58, %t59+ %t61 =l copy %t60+ %t52 =l add %t53, %t61+ %t62 =l copy 32+ %t63 =l call $bytes__bytes(l %t52, l %t62)+ storel %t63, %t64+ call $__sx_dbg_keep(l %t64)+ dbgvar "vp", "bytes.Bytes", %t64, 8, 5, 127+ dbgloc 131+ %t65 =l loadl %t0+ %t66 =w call $oidmap__insert_slot(l %t65, l %t50, l %t63)+ jmp @lbl6280+@lbl6280+ dbgloc 133+ %t67 =l loadl %t28+ %t68 =l add %t67, 1+ storel %t68, %t28+ jmp @lbl6277+@lbl6277+ jmp @lbl6275+@lbl6278+ dbgloc 135+ %t70 =l loadl %t3+ %t71 =l copy %t70+ call $free(l %t71)+ %t69 =l copy 0+ ret 0+}++export function w $oidmap__put(l %map, l %oid, l %value) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t12 =l alloc4 1+ dbgloc 139+ storel %map, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "map", "OidMap", %t0, 8, 5, 139+ storel %oid, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "oid", "bytes.Bytes", %t1, 8, 5, 139+ storel %value, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "value", "bytes.Bytes", %t2, 8, 5, 139+ dbgloc 140+ %t4 =l add %oid, 8+ %t3 =l loadl %t4+ %t5 =l copy 20+ %t6 =w ceql %t3, %t5+ jnz %t6, @lbl6282, @lbl6283+@lbl6283+ %t7 =l copy $__str301+ call $dprintf(w 2, l %t7)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl6282+ %t9 =l add %value, 8+ %t8 =l loadl %t9+ %t10 =l copy 0+ %t11 =w ceql %t8, %t10+ storew %t11, %t12+ jnz %t11, @lbl6285, @lbl6284+@lbl6284+ %t14 =l add %value, 8+ %t13 =l loadl %t14+ %t15 =l copy 32+ %t16 =w cslel %t13, %t15+ storew %t16, %t12+ jmp @lbl6285+@lbl6285+ %t17 =w loadw %t12+ jnz %t17, @lbl6286, @lbl6287+@lbl6287+ %t18 =l copy $__str302+ call $dprintf(w 2, l %t18)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl6286+ dbgloc 144+ %t19 =l loadl %t0+ %t21 =l add %t19, 16+ %t20 =l loadl %t21+ %t22 =l copy 1+ %t23 =l add %t20, %t22+ %t24 =l copy 10+ %t25 =l mul %t23, %t24+ %t26 =l loadl %t0+ %t28 =l add %t26, 8+ %t27 =l loadl %t28+ %t29 =l copy 7+ %t30 =l mul %t27, %t29+ %t32 =w csltl %t25, %t30+ %t31 =w ceqw %t32, 0+ jnz %t31, @lbl6288, @lbl6289+@lbl6288+ dbgloc 145+ %t33 =l loadl %t0+ %t34 =w call $oidmap__grow(l %t33)+ jmp @lbl6289+@lbl6289+ dbgloc 147+ %t35 =l loadl %t0+ %t36 =w call $oidmap__insert_slot(l %t35, l %oid, l %value)+ ret 0+}++export function l $oidmap__get(l %__ret, l %map, l %oid) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t11 =l alloc8 16+ %t16 =l alloc8 8+ %t18 =l alloc8 8+ %t21 =l alloc8 8+ %t25 =l alloc8 16+ %t32 =l alloc8 16+ %t38 =l alloc8 16+ dbgloc 150+ storel %map, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "map", "OidMap", %t0, 8, 5, 150+ storel %oid, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "oid", "bytes.Bytes", %t1, 8, 5, 150+ dbgloc 151+ %t3 =l add %oid, 8+ %t2 =l loadl %t3+ %t4 =l copy 20+ %t5 =w ceql %t2, %t4+ jnz %t5, @lbl6291, @lbl6292+@lbl6292+ %t6 =l copy $__str303+ call $dprintf(w 2, l %t6)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl6291+ dbgloc 154+ %t8 =l add %map, 8+ %t7 =l loadl %t8+ %t9 =l copy 0+ %t10 =w ceql %t7, %t9+ jnz %t10, @lbl6293, @lbl6294+@lbl6293+ dbgloc 155+ storel 0, %t11+ call $memcpy(l %__ret, l %t11, l 16)+ ret %__ret+@lbl6294+ dbgloc 157+ %t13 =l add %map, 8+ %t12 =l loadl %t13+ %t14 =l copy 1+ %t15 =l sub %t12, %t14+ storel %t15, %t16+ call $__sx_dbg_keep(l %t16)+ dbgvar "mask", "usize", %t16, 8, 5, 157+ dbgloc 158+ %t17 =l call $oidmap__hash_oid(l %oid)+ storel %t17, %t18+ call $__sx_dbg_keep(l %t18)+ dbgvar "h", "u64", %t18, 8, 7, 158+ dbgloc 159+ %t19 =l copy %t17+ %t20 =l and %t19, %t15+ storel %t20, %t21+ call $__sx_dbg_keep(l %t21)+ dbgvar "idx", "usize", %t21, 8, 5, 159+ dbgloc 160+ jmp @lbl6296+@lbl6296+ jmp @lbl6297+@lbl6297+ dbgloc 161+ %t22 =l loadl %t21+ %t23 =w call $oidmap__used_at(l %map, l %t22)+ %t24 =w ceqw %t23, 0+ jnz %t24, @lbl6300, @lbl6301+@lbl6300+ dbgloc 162+ storel 0, %t25+ call $memcpy(l %__ret, l %t25, l 16)+ ret %__ret+@lbl6301+ dbgloc 164+ %t26 =l loadl %t21+ %t27 =w call $oidmap__slot_eql(l %map, l %t26, l %oid)+ jnz %t27, @lbl6303, @lbl6304+@lbl6303+ dbgloc 165+ %t28 =l loadl %t21+ %t29 =l call $oidmap__value_ptr(l %map, l %t28)+ %t30 =l copy 32+ %t31 =l call $bytes__bytes(l %t29, l %t30)+ call $memset(l %t32, w 0, l 16)+ storel 1, %t32+ %t33 =l add %t32, 8+ storel %t31, %t33+ call $memcpy(l %__ret, l %t32, l 16)+ ret %__ret+@lbl6304+ dbgloc 167+ %t34 =l loadl %t21+ %t35 =l copy 1+ %t36 =l add %t34, %t35+ %t37 =l and %t36, %t15+ storel %t37, %t21+ jmp @lbl6298+@lbl6298+ jmp @lbl6296+@lbl6299+ dbgloc 169+ storel 0, %t38+ call $memcpy(l %__ret, l %t38, l 16)+ ret %__ret+}++export function w $oidmap__contains(l %map, l %oid) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t3 =l alloc8 16+ dbgloc 172+ storel %map, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "map", "OidMap", %t0, 8, 5, 172+ storel %oid, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "oid", "bytes.Bytes", %t1, 8, 5, 172+ dbgloc 173+ %t2 =l call $oidmap__get(l %t3, l %map, l %oid)+ %t4 =l loadl %t3+ %t5 =w cnel %t4, 0+ jnz %t5, @lbl6306, @lbl6307+@lbl6306+ dbgloc 174+ %t6 =l copy 1+ ret %t6+@lbl6307+ jmp @lbl6308+@lbl6308+ dbgloc 176+ %t7 =l copy 0+ ret %t7+}++export function w $oidmap__slot_used(l %map, l %i) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 179+ storel %map, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "map", "OidMap", %t0, 8, 5, 179+ storel %i, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "i", "usize", %t1, 8, 5, 179+ dbgloc 180+ %t3 =l add %map, 8+ %t2 =l loadl %t3+ %t4 =w csltl %i, %t2+ jnz %t4, @lbl6309, @lbl6310+@lbl6310+ %t5 =l copy $__str304+ call $dprintf(w 2, l %t5)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl6309+ dbgloc 183+ %t6 =w call $oidmap__used_at(l %map, l %i)+ ret %t6+}++export function l $oidmap__slot_oid(l %map, l %i) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 186+ storel %map, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "map", "OidMap", %t0, 8, 5, 186+ storel %i, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "i", "usize", %t1, 8, 5, 186+ dbgloc 187+ %t3 =l add %map, 8+ %t2 =l loadl %t3+ %t4 =w csltl %i, %t2+ jnz %t4, @lbl6311, @lbl6312+@lbl6312+ %t5 =l copy $__str305+ call $dprintf(w 2, l %t5)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl6311+ dbgloc 190+ %t6 =l call $oidmap__oid_ptr(l %map, l %i)+ %t7 =l copy 20+ %t8 =l call $bytes__bytes(l %t6, l %t7)+ ret %t8+}++export function l $oidmap__slot_value(l %map, l %i) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 193+ storel %map, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "map", "OidMap", %t0, 8, 5, 193+ storel %i, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "i", "usize", %t1, 8, 5, 193+ dbgloc 194+ %t3 =l add %map, 8+ %t2 =l loadl %t3+ %t4 =w csltl %i, %t2+ jnz %t4, @lbl6313, @lbl6314+@lbl6314+ %t5 =l copy $__str306+ call $dprintf(w 2, l %t5)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl6313+ dbgloc 197+ %t6 =l call $oidmap__value_ptr(l %map, l %i)+ %t7 =l copy 32+ %t8 =l call $bytes__bytes(l %t6, l %t7)+ ret %t8+}++dbgfile "src/git/map.sx"+export function l $gitmap__map_path(l %repo, l %name) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t3 =l alloc8 8+ %t5 =l alloc8 8+ dbgloc 14+ storel %repo, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "repo", "layout.Repo", %t0, 8, 5, 14+ storel %name, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "name", "str.StringView", %t1, 8, 5, 14+ dbgloc 15+ %t2 =l call $layout__git_map_dir(l %repo)+ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "dir", "str.StringView", %t3, 8, 5, 15+ dbgloc 16+ %t4 =l call $files__join(l %t2, l %name)+ storel %t4, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "p", "str.StringView", %t5, 8, 5, 16+ dbgloc 17+ %t6 =w call $files__free_path(l %t2)+ dbgloc 18+ ret %t4+}++function l $gitmap__map_name(l %base, l %suffix) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 21+ storel %base, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "base", "str.StringView", %t0, 8, 5, 21+ storel %suffix, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "suffix", "str.StringView", %t1, 8, 5, 21+ dbgloc 22+ %t2 =l call $files__with_suffix(l %base, l %suffix)+ ret %t2+}++export function l $gitmap__load_map(l %__ret, l %repo, l %name) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t3 =l alloc8 8+ %t6 =l alloc8 8+ %t8 =l alloc8 8+ %t10 =l alloc8 8+ %t14 =l alloc8 16+ %t15 =l alloc8 8+ %t20 =l alloc8 8+ %t23 =l alloc8 8+ %t28 =l alloc8 16+ %t36 =l alloc4 1+ %t51 =l alloc8 16+ %t85 =l alloc8 8+ %t93 =l alloc8 8+ %t103 =l alloc8 16+ %t107 =l alloc8 8+ %t116 =l alloc8 8+ %t133 =l alloc8 16+ dbgloc 25+ storel %repo, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "repo", "layout.Repo", %t0, 8, 5, 25+ storel %name, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "name", "str.StringView", %t1, 8, 5, 25+ dbgloc 29+ %t2 =l call $layout__git_map_dir(l %repo)+ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "base", "str.StringView", %t3, 8, 5, 29+ dbgloc 30+ %t4 =l copy $__str307+ %t5 =l call $std__str__from_cstr(l %t4)+ storel %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "suffix", "str.StringView", %t6, 8, 5, 30+ dbgloc 31+ %t7 =l call $files__with_suffix(l %name, l %t5)+ storel %t7, %t8+ call $__sx_dbg_keep(l %t8)+ dbgvar "fname", "str.StringView", %t8, 8, 5, 31+ dbgloc 32+ %t9 =l call $files__join(l %t2, l %t7)+ storel %t9, %t10+ call $__sx_dbg_keep(l %t10)+ dbgvar "path", "str.StringView", %t10, 8, 5, 32+ dbgloc 33+ %t11 =w call $files__free_path(l %t2)+ dbgloc 34+ %t12 =w call $files__free_path(l %t7)+ dbgloc 35+ %t13 =l call $files__read_all(l %t14, l %t9)+ storel %t14, %t15+ call $__sx_dbg_keep(l %t15)+ dbgvar "data_opt", "option[bytes.Bytes]", %t15, 8, 5, 35+ dbgloc 36+ %t16 =w call $files__free_path(l %t9)+ dbgloc 37+ %t17 =l copy 64+ %t18 =l call $oidmap__new(l %t17)+ %t19 =l call $malloc(l 24)+ call $memset(l %t19, w 0, l 24)+ call $memcpy(l %t19, l %t18, l 24)+ storel %t19, %t20+ call $__sx_dbg_keep(l %t20)+ dbgvar "map", "oidmap.OidMap", %t20, 8, 5, 37+ dbgloc 38+ %t21 =l call $bytes__empty()+ %t22 =l call $malloc(l 16)+ call $memset(l %t22, w 0, l 16)+ call $memcpy(l %t22, l %t21, l 16)+ storel %t22, %t23+ call $__sx_dbg_keep(l %t23)+ dbgvar "data", "bytes.Bytes", %t23, 8, 5, 38+ dbgloc 39+ %t24 =l loadl %t14+ %t25 =w cnel %t24, 0+ jnz %t25, @lbl6315, @lbl6316+@lbl6315+ %t27 =l add %t14, 8+ %t26 =l loadl %t27+ dbgloc 41+ storel %t26, %t23+ jmp @lbl6317+@lbl6316+ dbgloc 44+ call $memset(l %t28, w 0, l 16)+ storel 0, %t28+ %t29 =l loadl %t20+ %t30 =l add %t28, 8+ storel %t29, %t30+ call $memcpy(l %__ret, l %t28, l 16)+ ret %__ret+@lbl6317+ dbgloc 47+ %t31 =l loadl %t23+ %t33 =l add %t31, 8+ %t32 =l loadl %t33+ %t34 =l copy 9+ %t35 =w csltl %t32, %t34+ storew %t35, %t36+ jnz %t35, @lbl6322, @lbl6321+@lbl6321+ %t37 =l loadl %t23+ %t38 =l copy 0+ %t39 =l copy 5+ %t40 =l call $bytes__Bytes__slice(l %t37, l %t38, l %t39)+ %t41 =l copy $__str308+ %t42 =l copy 5+ %t43 =l call $bytes__bytes(l %t41, l %t42)+ %t44 =w call $bytes__Bytes__eql(l %t40, l %t43)+ %t45 =w ceqw %t44, 0+ storew %t45, %t36+ jmp @lbl6322+@lbl6322+ %t46 =w loadw %t36+ jnz %t46, @lbl6318, @lbl6319+@lbl6318+ dbgloc 48+ %t47 =l loadl %t23+ %t48 =w call $files__free_buffer(l %t47)+ dbgloc 49+ %t49 =l loadl %t20+ %t50 =w call $oidmap__free(l %t49)+ dbgloc 50+ call $memset(l %t51, w 0, l 16)+ storel 1, %t51+ %t52 =l copy 1+ %t53 =l add %t51, 8+ storel %t52, %t53+ call $memcpy(l %__ret, l %t51, l 16)+ ret %__ret+@lbl6319+ dbgloc 52+ %t54 =l loadl %t23+ %t55 =l copy 5+ %t56 =w call $bytes__Bytes__at(l %t54, l %t55)+ %t57 =l extsw %t56+ %t58 =l loadl %t23+ %t59 =l copy 6+ %t60 =w call $bytes__Bytes__at(l %t58, l %t59)+ %t61 =l extsw %t60+ %t62 =l copy 8+ %t64 =l extsw %t61+ %t63 =l shl %t64, %t62+ %t66 =l extsw %t57+ %t65 =l or %t66, %t63+ %t67 =l loadl %t23+ %t68 =l copy 7+ %t69 =w call $bytes__Bytes__at(l %t67, l %t68)+ %t70 =l extsw %t69+ %t71 =l copy 16+ %t73 =l extsw %t70+ %t72 =l shl %t73, %t71+ %t74 =l or %t65, %t72+ %t75 =l loadl %t23+ %t76 =l copy 8+ %t77 =w call $bytes__Bytes__at(l %t75, l %t76)+ %t78 =l extsw %t77+ %t79 =l copy 24+ %t81 =l extsw %t78+ %t80 =l shl %t81, %t79+ %t82 =l or %t74, %t80+ %t83 =w copy %t82+ %t84 =w copy %t83+ storew %t84, %t85+ call $__sx_dbg_keep(l %t85)+ dbgvar "count", "u32", %t85, 4, 7, 52+ dbgloc 56+ %t86 =l copy 9+ %t87 =l copy %t86+ %t88 =l extsw %t84+ %t89 =l copy 52+ %t90 =l copy %t89+ %t91 =l mul %t88, %t90+ %t92 =l add %t87, %t91+ storel %t92, %t93+ call $__sx_dbg_keep(l %t93)+ dbgvar "need", "u64", %t93, 8, 7, 56+ dbgloc 57+ %t94 =l loadl %t23+ %t96 =l add %t94, 8+ %t95 =l loadl %t96+ %t97 =l copy %t95+ %t98 =w cnel %t92, %t97+ jnz %t98, @lbl6323, @lbl6324+@lbl6323+ dbgloc 58+ %t99 =l loadl %t23+ %t100 =w call $files__free_buffer(l %t99)+ dbgloc 59+ %t101 =l loadl %t20+ %t102 =w call $oidmap__free(l %t101)+ dbgloc 60+ call $memset(l %t103, w 0, l 16)+ storel 1, %t103+ %t104 =l copy 1+ %t105 =l add %t103, 8+ storel %t104, %t105+ call $memcpy(l %__ret, l %t103, l 16)+ ret %__ret+@lbl6324+ dbgloc 62+ %t106 =l copy 0+ storel %t106, %t107+ call $__sx_dbg_keep(l %t107)+ dbgvar "i", "usize", %t107, 8, 5, 62+ dbgloc 63+ jmp @lbl6326+@lbl6326+ %t108 =l loadl %t107+ %t109 =l extsw %t84+ %t110 =w csltl %t108, %t109+ jnz %t110, @lbl6327, @lbl6329+@lbl6327+ dbgloc 64+ %t111 =l copy 9+ %t112 =l loadl %t107+ %t113 =l copy 52+ %t114 =l mul %t112, %t113+ %t115 =l add %t111, %t114+ storel %t115, %t116+ call $__sx_dbg_keep(l %t116)+ dbgvar "off", "usize", %t116, 8, 5, 64+ dbgloc 65+ %t117 =l loadl %t20+ %t118 =l loadl %t23+ %t119 =l copy 20+ %t120 =l add %t115, %t119+ %t121 =l call $bytes__Bytes__slice(l %t118, l %t115, l %t120)+ %t122 =l loadl %t23+ %t123 =l copy 20+ %t124 =l add %t115, %t123+ %t125 =l copy 52+ %t126 =l add %t115, %t125+ %t127 =l call $bytes__Bytes__slice(l %t122, l %t124, l %t126)+ %t128 =w call $oidmap__put(l %t117, l %t121, l %t127)+ dbgloc 70+ %t129 =l loadl %t107+ %t130 =l add %t129, 1+ storel %t130, %t107+ jmp @lbl6328+@lbl6328+ jmp @lbl6326+@lbl6329+ dbgloc 72+ %t131 =l loadl %t23+ %t132 =w call $files__free_buffer(l %t131)+ dbgloc 73+ call $memset(l %t133, w 0, l 16)+ storel 0, %t133+ %t134 =l loadl %t20+ %t135 =l add %t133, 8+ storel %t134, %t135+ call $memcpy(l %__ret, l %t133, l 16)+ ret %__ret+}++export function w $gitmap__save_map(l %repo, l %name, l %map) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t11 =l alloc8 8+ %t21 =l alloc8 8+ %t39 =l alloc8 8+ %t42 =l alloc8 8+ %t44 =l alloc8 8+ %t46 =l alloc8 8+ %t48 =l alloc8 8+ %t52 =l alloc8 8+ %t54 =l alloc8 8+ %t60 =l alloc8 8+ dbgloc 76+ storel %repo, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "repo", "layout.Repo", %t0, 8, 5, 76+ storel %name, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "name", "str.StringView", %t1, 8, 5, 76+ storel %map, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "map", "oidmap.OidMap", %t2, 8, 5, 76+ dbgloc 77+ %t4 =l add %map, 16+ %t3 =l loadl %t4+ %t5 =l copy 52+ %t6 =l mul %t3, %t5+ %t7 =l copy 16+ %t8 =l add %t6, %t7+ %t9 =l call $buf__new(l %t8)+ %t10 =l call $malloc(l 24)+ call $memset(l %t10, w 0, l 24)+ call $memcpy(l %t10, l %t9, l 24)+ storel %t10, %t11+ call $__sx_dbg_keep(l %t11)+ dbgvar "b", "buf.Buf", %t11, 8, 5, 77+ dbgloc 78+ %t12 =l loadl %t11+ %t13 =l copy $__str308+ %t14 =l copy 5+ %t15 =w call $buf__Buf__put_raw(l %t12, l %t13, l %t14)+ dbgloc 79+ %t16 =l loadl %t11+ %t18 =l add %map, 16+ %t17 =l loadl %t18+ %t19 =w call $buf__Buf__put_u32_le(l %t16, w %t17)+ dbgloc 80+ %t20 =l copy 0+ storel %t20, %t21+ call $__sx_dbg_keep(l %t21)+ dbgvar "i", "usize", %t21, 8, 5, 80+ dbgloc 81+ jmp @lbl6330+@lbl6330+ %t22 =l loadl %t21+ %t24 =l add %map, 8+ %t23 =l loadl %t24+ %t25 =w csltl %t22, %t23+ jnz %t25, @lbl6331, @lbl6333+@lbl6331+ dbgloc 82+ %t26 =l loadl %t21+ %t27 =w call $oidmap__slot_used(l %map, l %t26)+ jnz %t27, @lbl6334, @lbl6335+@lbl6334+ dbgloc 83+ %t28 =l loadl %t11+ %t29 =l loadl %t21+ %t30 =l call $oidmap__slot_oid(l %map, l %t29)+ %t31 =w call $buf__Buf__put_bytes(l %t28, l %t30)+ dbgloc 84+ %t32 =l loadl %t11+ %t33 =l loadl %t21+ %t34 =l call $oidmap__slot_value(l %map, l %t33)+ %t35 =w call $buf__Buf__put_bytes(l %t32, l %t34)+ jmp @lbl6335+@lbl6335+ dbgloc 86+ %t36 =l loadl %t21+ %t37 =l add %t36, 1+ storel %t37, %t21+ jmp @lbl6332+@lbl6332+ jmp @lbl6330+@lbl6333+ dbgloc 88+ %t38 =l call $layout__git_map_dir(l %repo)+ storel %t38, %t39+ call $__sx_dbg_keep(l %t39)+ dbgvar "base", "str.StringView", %t39, 8, 5, 88+ dbgloc 89+ %t40 =l copy $__str307+ %t41 =l call $std__str__from_cstr(l %t40)+ storel %t41, %t42+ call $__sx_dbg_keep(l %t42)+ dbgvar "suffix", "str.StringView", %t42, 8, 5, 89+ dbgloc 90+ %t43 =l call $files__with_suffix(l %name, l %t41)+ storel %t43, %t44+ call $__sx_dbg_keep(l %t44)+ dbgvar "fname", "str.StringView", %t44, 8, 5, 90+ dbgloc 91+ %t45 =l call $files__join(l %t38, l %t43)+ storel %t45, %t46+ call $__sx_dbg_keep(l %t46)+ dbgvar "final", "str.StringView", %t46, 8, 5, 91+ dbgloc 92+ %t47 =l call $layout__tmp_dir(l %repo)+ storel %t47, %t48+ call $__sx_dbg_keep(l %t48)+ dbgvar "tmpd", "str.StringView", %t48, 8, 5, 92+ dbgloc 93+ %t49 =l copy $__str234+ %t50 =l call $std__str__from_cstr(l %t49)+ %t51 =l call $gitmap__map_name(l %t43, l %t50)+ storel %t51, %t52+ call $__sx_dbg_keep(l %t52)+ dbgvar "tmpname", "str.StringView", %t52, 8, 5, 93+ dbgloc 94+ %t53 =l call $files__join(l %t47, l %t51)+ storel %t53, %t54+ call $__sx_dbg_keep(l %t54)+ dbgvar "tmp", "str.StringView", %t54, 8, 5, 94+ dbgloc 95+ %t55 =l loadl %t11+ %t56 =l call $buf__Buf__view(l %t55)+ %t57 =w call $native__write_atomic(l %t53, l %t45, l %t47, l %t38, l %t56)+ %t58 =w copy %t57+ %t59 =w extub %t58+ storew %t59, %t60+ call $__sx_dbg_keep(l %t60)+ dbgvar "success", "bool", %t60, 1, 7, 95+ dbgloc 96+ %t61 =w call $files__free_path(l %t38)+ dbgloc 97+ %t62 =w call $files__free_path(l %t47)+ dbgloc 98+ %t63 =w call $files__free_path(l %t43)+ dbgloc 99+ %t64 =w call $files__free_path(l %t45)+ dbgloc 100+ %t65 =w call $files__free_path(l %t51)+ dbgloc 101+ %t66 =w call $files__free_path(l %t53)+ dbgloc 102+ %t67 =l loadl %t11+ %t68 =w call $buf__Buf__free(l %t67)+ dbgloc 103+ ret %t59+}++function l $gitmap__veins_hex(l %id) {+@start+ %t0 =l alloc8 8+ dbgloc 106+ storel %id, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "id", "objid.Id", %t0, 8, 5, 106+ dbgloc 107+ %t1 =l call $objid__Id__hex(l %id)+ ret %t1+}++export function w $gitmap__save_raw(l %repo, l %id, l %body) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t4 =l alloc8 8+ %t6 =l alloc8 8+ %t8 =l alloc8 8+ %t10 =l alloc8 8+ %t12 =l alloc8 8+ %t16 =l alloc8 8+ %t18 =l alloc8 8+ %t22 =l alloc8 8+ dbgloc 110+ storel %repo, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "repo", "layout.Repo", %t0, 8, 5, 110+ storel %id, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "id", "objid.Id", %t1, 8, 5, 110+ storel %body, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "body", "bytes.Bytes", %t2, 8, 5, 110+ dbgloc 111+ %t3 =l call $gitmap__veins_hex(l %id)+ storel %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "hex", "ref u8", %t4, 8, 7, 111+ dbgloc 112+ %t5 =l call $layout__raw_dir(l %repo)+ storel %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "base", "str.StringView", %t6, 8, 5, 112+ dbgloc 113+ %t7 =l call $std__str__from_cstr(l %t3)+ storel %t7, %t8+ call $__sx_dbg_keep(l %t8)+ dbgvar "name", "str.StringView", %t8, 8, 5, 113+ dbgloc 114+ %t9 =l call $files__join(l %t5, l %t7)+ storel %t9, %t10+ call $__sx_dbg_keep(l %t10)+ dbgvar "final", "str.StringView", %t10, 8, 5, 114+ dbgloc 115+ %t11 =l call $layout__tmp_dir(l %repo)+ storel %t11, %t12+ call $__sx_dbg_keep(l %t12)+ dbgvar "tmpd", "str.StringView", %t12, 8, 5, 115+ dbgloc 116+ %t13 =l copy $__str234+ %t14 =l call $std__str__from_cstr(l %t13)+ %t15 =l call $files__with_suffix(l %t7, l %t14)+ storel %t15, %t16+ call $__sx_dbg_keep(l %t16)+ dbgvar "tmpname", "str.StringView", %t16, 8, 5, 116+ dbgloc 117+ %t17 =l call $files__join(l %t11, l %t15)+ storel %t17, %t18+ call $__sx_dbg_keep(l %t18)+ dbgvar "tmp", "str.StringView", %t18, 8, 5, 117+ dbgloc 118+ %t19 =w call $native__write_atomic(l %t17, l %t9, l %t11, l %t5, l %body)+ %t20 =w copy %t19+ %t21 =w extub %t20+ storew %t21, %t22+ call $__sx_dbg_keep(l %t22)+ dbgvar "success", "bool", %t22, 1, 7, 118+ dbgloc 119+ %t23 =w call $files__free_path(l %t5)+ dbgloc 120+ %t24 =w call $files__free_path(l %t11)+ dbgloc 121+ %t25 =w call $files__free_path(l %t9)+ dbgloc 122+ %t26 =w call $files__free_path(l %t15)+ dbgloc 123+ %t27 =w call $files__free_path(l %t17)+ dbgloc 124+ %t29 =l copy %t3+ call $free(l %t29)+ %t28 =l copy 0+ dbgloc 125+ ret %t21+}++export function w $gitmap__has_raw(l %repo, l %id) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t3 =l alloc8 8+ %t5 =l alloc8 8+ %t7 =l alloc8 8+ %t9 =l alloc8 8+ %t13 =l alloc8 8+ dbgloc 128+ storel %repo, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "repo", "layout.Repo", %t0, 8, 5, 128+ storel %id, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "id", "objid.Id", %t1, 8, 5, 128+ dbgloc 129+ %t2 =l call $gitmap__veins_hex(l %id)+ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "hex", "ref u8", %t3, 8, 7, 129+ dbgloc 130+ %t4 =l call $layout__raw_dir(l %repo)+ storel %t4, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "base", "str.StringView", %t5, 8, 5, 130+ dbgloc 131+ %t6 =l call $std__str__from_cstr(l %t2)+ storel %t6, %t7+ call $__sx_dbg_keep(l %t7)+ dbgvar "name", "str.StringView", %t7, 8, 5, 131+ dbgloc 132+ %t8 =l call $files__join(l %t4, l %t6)+ storel %t8, %t9+ call $__sx_dbg_keep(l %t9)+ dbgvar "path", "str.StringView", %t9, 8, 5, 132+ dbgloc 133+ %t10 =w call $files__exists_file(l %t8)+ %t11 =w copy %t10+ %t12 =w extub %t11+ storew %t12, %t13+ call $__sx_dbg_keep(l %t13)+ dbgvar "found", "bool", %t13, 1, 7, 133+ dbgloc 134+ %t14 =w call $files__free_path(l %t4)+ dbgloc 135+ %t15 =w call $files__free_path(l %t8)+ dbgloc 136+ %t17 =l copy %t2+ call $free(l %t17)+ %t16 =l copy 0+ dbgloc 137+ ret %t12+}++export function l $gitmap__load_raw(l %__ret, l %repo, l %id) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t3 =l alloc8 8+ %t5 =l alloc8 8+ %t7 =l alloc8 8+ %t9 =l alloc8 8+ %t11 =l alloc8 16+ %t12 =l alloc8 8+ dbgloc 140+ storel %repo, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "repo", "layout.Repo", %t0, 8, 5, 140+ storel %id, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "id", "objid.Id", %t1, 8, 5, 140+ dbgloc 141+ %t2 =l call $gitmap__veins_hex(l %id)+ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "hex", "ref u8", %t3, 8, 7, 141+ dbgloc 142+ %t4 =l call $layout__raw_dir(l %repo)+ storel %t4, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "base", "str.StringView", %t5, 8, 5, 142+ dbgloc 143+ %t6 =l call $std__str__from_cstr(l %t2)+ storel %t6, %t7+ call $__sx_dbg_keep(l %t7)+ dbgvar "name", "str.StringView", %t7, 8, 5, 143+ dbgloc 144+ %t8 =l call $files__join(l %t4, l %t6)+ storel %t8, %t9+ call $__sx_dbg_keep(l %t9)+ dbgvar "path", "str.StringView", %t9, 8, 5, 144+ dbgloc 145+ %t10 =l call $files__read_all(l %t11, l %t8)+ storel %t11, %t12+ call $__sx_dbg_keep(l %t12)+ dbgvar "data", "option[bytes.Bytes]", %t12, 8, 5, 145+ dbgloc 146+ %t13 =w call $files__free_path(l %t4)+ dbgloc 147+ %t14 =w call $files__free_path(l %t8)+ dbgloc 148+ %t16 =l copy %t2+ call $free(l %t16)+ %t15 =l copy 0+ dbgloc 149+ call $memcpy(l %__ret, l %t11, l 16)+ ret %__ret+}++function l $gitmap__native_path(l %repo) {+@start+ %t0 =l alloc8 8+ %t2 =l alloc8 8+ %t6 =l alloc8 8+ dbgloc 152+ storel %repo, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "repo", "layout.Repo", %t0, 8, 5, 152+ dbgloc 153+ %t1 =l call $layout__git_map_dir(l %repo)+ storel %t1, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "base", "str.StringView", %t2, 8, 5, 153+ dbgloc 154+ %t3 =l copy $__str309+ %t4 =l call $std__str__from_cstr(l %t3)+ %t5 =l call $files__join(l %t1, l %t4)+ storel %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "p", "str.StringView", %t6, 8, 5, 154+ dbgloc 155+ %t7 =w call $files__free_path(l %t1)+ dbgloc 156+ ret %t5+}++export function w $gitmap__mark_native(l %repo, l %id) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t3 =l alloc8 8+ %t16 =l alloc8 8+ %t18 =l alloc8 8+ %t23 =l alloc8 8+ dbgloc 161+ storel %repo, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "repo", "layout.Repo", %t0, 8, 5, 161+ storel %id, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "id", "objid.Id", %t1, 8, 5, 161+ dbgloc 162+ %t2 =l call $objid__Id__hex(l %id)+ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "hex", "ref u8", %t3, 8, 7, 162+ dbgloc 163+ %t5 =l copy $__str310+ %t6 =l call $malloc(l 4096)+ %t12 =l call $std__str__from_cstr(l %t2)+ %t14 =l add %t12, 8+ %t13 =l loadl %t14+ %t15 =l loadl %t12+ %t7 =w call $snprintf(l %t6, l 4096, l %t5, ..., l %t13, l %t15)+ %t8 =l extsw %t7+ %t9 =l add %t8, 1+ %t10 =l call $malloc(l %t9)+ call $memcpy(l %t10, l %t6, l %t8)+ %t11 =l add %t10, %t8+ storeb 0, %t11+ call $free(l %t6)+ %t4 =l copy %t10+ storel %t4, %t16+ call $__sx_dbg_keep(l %t16)+ dbgvar "line", "ref u8", %t16, 8, 7, 163+ dbgloc 164+ %t17 =l call $gitmap__native_path(l %repo)+ storel %t17, %t18+ call $__sx_dbg_keep(l %t18)+ dbgvar "p", "str.StringView", %t18, 8, 5, 164+ dbgloc 165+ %t19 =l call $bytes__from_cstr(l %t4)+ %t20 =w call $files__append_all(l %t17, l %t19)+ %t21 =w copy %t20+ %t22 =w extub %t21+ storew %t22, %t23+ call $__sx_dbg_keep(l %t23)+ dbgvar "appended", "bool", %t23, 1, 7, 165+ dbgloc 166+ %t24 =w call $files__free_path(l %t17)+ dbgloc 167+ %t26 =l copy %t2+ call $free(l %t26)+ %t25 =l copy 0+ dbgloc 168+ %t28 =l copy %t4+ call $free(l %t28)+ %t27 =l copy 0+ dbgloc 169+ ret %t22+}++export function l $gitmap__load_native(l %repo) {+@start+ %t0 =l alloc8 8+ %t2 =l alloc8 8+ %t4 =l alloc8 8+ %t6 =l alloc8 16+ %t7 =l alloc8 8+ %t14 =l alloc8 8+ %t16 =l alloc8 8+ %t25 =l alloc4 1+ %t34 =l alloc8 8+ %t43 =l alloc8 8+ dbgloc 172+ storel %repo, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "repo", "layout.Repo", %t0, 8, 5, 172+ dbgloc 173+ %t1 =l call $lists__new__GENMONO__objid__Id()++ storel %t1, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "out", "list[objid.Id]", %t2, 8, 5, 173+ dbgloc 174+ %t3 =l call $gitmap__native_path(l %repo)+ storel %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "p", "str.StringView", %t4, 8, 5, 174+ dbgloc 175+ %t5 =l call $files__read_all(l %t6, l %t3)+ storel %t6, %t7+ call $__sx_dbg_keep(l %t7)+ dbgvar "data_opt", "option[bytes.Bytes]", %t7, 8, 5, 175+ dbgloc 176+ %t8 =w call $files__free_path(l %t3)+ dbgloc 177+ %t9 =l loadl %t6+ %t10 =w cnel %t9, 0+ jnz %t10, @lbl6337, @lbl6338+@lbl6337+ %t12 =l add %t6, 8+ %t11 =l loadl %t12+ dbgloc 178+ %t13 =l copy 0+ storel %t13, %t14+ call $__sx_dbg_keep(l %t14)+ dbgvar "start", "usize", %t14, 8, 5, 178+ dbgloc 179+ %t15 =l copy 0+ storel %t15, %t16+ call $__sx_dbg_keep(l %t16)+ dbgvar "i", "usize", %t16, 8, 5, 179+ dbgloc 180+ jmp @lbl6340+@lbl6340+ %t17 =l loadl %t16+ %t19 =l add %t11, 8+ %t18 =l loadl %t19+ %t20 =w cslel %t17, %t18+ jnz %t20, @lbl6341, @lbl6343+@lbl6341+ dbgloc 181+ %t21 =l loadl %t16+ %t23 =l add %t11, 8+ %t22 =l loadl %t23+ %t24 =w ceql %t21, %t22+ storew %t24, %t25+ jnz %t24, @lbl6348, @lbl6347+@lbl6347+ %t26 =l loadl %t16+ %t27 =w call $bytes__Bytes__at(l %t11, l %t26)+ %t28 =w copy 10+ %t29 =w ceqw %t27, %t28+ storew %t29, %t25+ jmp @lbl6348+@lbl6348+ %t30 =w loadw %t25+ jnz %t30, @lbl6344, @lbl6345+@lbl6344+ dbgloc 182+ %t31 =l loadl %t14+ %t32 =l loadl %t16+ %t33 =l call $bytes__Bytes__slice(l %t11, l %t31, l %t32)+ storel %t33, %t34+ call $__sx_dbg_keep(l %t34)+ dbgvar "line", "bytes.Bytes", %t34, 8, 5, 182+ dbgloc 183+ %t36 =l add %t33, 8+ %t35 =l loadl %t36+ %t37 =l copy 64+ %t39 =w csltl %t35, %t37+ %t38 =w ceqw %t39, 0+ jnz %t38, @lbl6349, @lbl6350+@lbl6349+ dbgloc 184+ %t41 =l copy 32+ %t40 =l call $malloc(l %t41)+ %t42 =l copy %t40+ storel %t42, %t43+ call $__sx_dbg_keep(l %t43)+ dbgvar "raw", "ref u8", %t43, 8, 7, 184+ dbgloc 185+ %t44 =l loadl %t33+ %t45 =l copy 32+ %t46 =w call $objid__hex_decode(l %t44, l %t45, l %t42)+ jnz %t46, @lbl6352, @lbl6354+@lbl6352+ dbgloc 186+ %t48 =l call $sxqbe_list_ensure(l %t2)+ %t49 =l call $objid__id(l %t42)+ %t50 =l add %t48, 8+ %t51 =l add %t48, 16+ %t52 =l loadl %t50+ %t53 =l loadl %t51+ %t55 =l add %t52, 1+ %t54 =w call $sxqbe_list_grow(l %t48, l %t55)+ %t56 =l call $sxqbe_list_buf(l %t48)+ %t57 =l mul %t52, 8+ %t58 =l add %t56, %t57+ storel %t49, %t58+ %t59 =l add %t52, 1+ storel %t59, %t50+ %t47 =l copy 0+ jmp @lbl6353+@lbl6354+ dbgloc 188+ %t61 =l copy %t42+ call $free(l %t61)+ %t60 =l copy 0+ jmp @lbl6353+@lbl6353+ jmp @lbl6350+@lbl6350+ dbgloc 191+ %t62 =l loadl %t16+ %t63 =l copy 1+ %t64 =l add %t62, %t63+ storel %t64, %t14+ jmp @lbl6345+@lbl6345+ dbgloc 193+ %t65 =l loadl %t16+ %t66 =l add %t65, 1+ storel %t66, %t16+ jmp @lbl6342+@lbl6342+ jmp @lbl6340+@lbl6343+ dbgloc 195+ %t67 =w call $files__free_buffer(l %t11)+ jmp @lbl6339+@lbl6338+ jmp @lbl6339+@lbl6339+ dbgloc 197+ %t68 =l loadl %t2+ ret %t68+}++export function w $gitmap__is_native(l %native, l %id) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ dbgloc 200+ storel %native, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "native", "list[objid.Id]", %t0, 8, 5, 200+ storel %id, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "id", "objid.Id", %t1, 8, 5, 200+ dbgloc 201+ storel 0, %t2+ %t3 =l call $sxqbe_list_len(l %native)+@lbl6355+ %t4 =l loadl %t2+ %t5 =w csltl %t4, %t3+ jnz %t5, @lbl6356, @lbl6357+@lbl6356+ %t6 =l call $sxqbe_list_buf(l %native)+ %t7 =l mul %t4, 8+ %t8 =l add %t6, %t7+ %t9 =l loadl %t8+ dbgloc 202+ %t10 =w call $objid__Id__eql(l %t9, l %id)+ jnz %t10, @lbl6359, @lbl6360+@lbl6359+ dbgloc 203+ %t11 =l copy 1+ ret %t11+@lbl6360+@lbl6358+ %t12 =l add %t4, 1+ storel %t12, %t2+ jmp @lbl6355+@lbl6357+ dbgloc 206+ %t13 =l copy 0+ ret %t13+}++dbgfile "src/chunking/gear.sx"+data $gear__GEAR__data = { l -557184975102092075, l -4727705224032499091, l 1206110344221343443, l 3128778970904051227, l 1466948694453915638, l 3701310854150104389, l -5802123361397367665, l 304063214974136682, l 6065291898330129124, l -9005304196434552474, l 7254149186014563506, l -3039214896741496570, l -6410324832497157756, l 728107352304495235, l 3450847232630477936, l -8145540388678030578, l -1805729164935831376, l -898507266408995587, l -3089415202995507444, l 4225748026208767520, l -105278213896103130, l -3046665811769445630, l -2974161205167848110, l -8314220046504431685, l -8224140801379933195, l 1008054869879835255, l -3658660678505338105, l -2786624240621700369, l -187124099377133959, l 1617656942685368067, l -9150358867623425985, l 3324109617209412838, l -3662034016873444553, l 3575946215226178247, l -6536224140483134897, l 6060941144876867728, l 1581426164078110614, l 7676177978516160731, l 1550753896214504027, l -7866740657984844117, l -2630429530767574275, l 7648081929421821963, l 4526904676673328468, l 2749780829197231554, l -3484545409972229252, l 1209407391871251339, l 906287013153101664, l -2528998748462652500, l -7741865808789655303, l 6591954296369453779, l 229168790229315264, l -3817761599369275807, l 1729409175773014970, l -8286990665261278373, l -4564197160750236558, l 8152035975496388695, l 7066757439990542543, l 711506632747975785, l 9066562725417489868, l 2164009260681240469, l -6890294994013740678, l -306516913812132467, l 197872181115998112, l -713052882795496277, l -3314173736877600908, l 419277028220188995, l 6304108933133209564, l 3850933306394534420, l -7023542413259338487, l 6345063590916071889, l -8727076867896080281, l 8185524422534475260, l -3326168966900418737, l 5300374703992252448, l 99248534642900198, l -4159894470816062706, l 8987152983036555732, l -6065075426134731003, l -9176277431573996745, l -2437136147755272231, l 7374789578962927812, l -7998662733213565532, l -7186413637084535113, l -7811001552088434812, l -7471765395208452903, l 3713790256948359876, l 6248257943612071937, l 7627839875260595223, l -1538859821572228058, l -3115255757378108217, l -723391089276277400, l -3067954295839441363, l 688644958556019313, l -3063155829576758463, l -3070654359129944876, l -4631348046477020832, l 1177872584268215901, l 8405396316156709436, l -4831666557216619044, l 1398767007059269231, l -6277173535661322414, l -3931339000338480527, l -8945526644088813580, l -89746599945956240, l 7962792622847025660, l -3097405485728762120, l 6809683287426122634, l 3251589803649233017, l -760269298363404461, l 5775594672126554764, l 6480826769703949230, l -73441315031531233, l -4846772295043009171, l -6933646454429912280, l -8515262536578127236, l 5639894843142408870, l -3700172963588953891, l -4811604240866703119, l 6961988836644086479, l -7562613815602372715, l 3979570523720151883, l -215669123172516767, l 3566286588669674630, l 7294618157789831096, l 667785731124470913, l 3741982247242523492, l -3205881071113554868, l -3377820315584665940, l 8766288501685839407, l -7605753249324887532, l 821997118441194818, l 2507240917307317537, l -682269205473435234, l 2283947253595917164, l 8791089721165669336, l -3041340133298697687, l -572508723789125546, l 4655844295505373460, l -3390688807162963391, l 3377303724543898747, l 7649345711092906345, l -7510762438109398250, l 6837786607124323858, l 8354212646424727277, l 6116529617560650738, l -1578688648666242023, l -6620092538905077962, l -756478604240043705, l -4256226388632050377, l -1159307396997489551, l 2356843579898031197, l -6823096601257019715, l -8532010225312465884, l 8272728141166582624, l -6759590755645012211, l 6911699505359105680, l -4673373228169749876, l -5906435891575487398, l 3687579466247944159, l -4269196007362916878, l 3160889883067660101, l 5997545897588168306, l 1385639006729505280, l -9005578450410853885, l 2406174026742495042, l -8969525106561084406, l -5138568259469759417, l -3075018042640716143, l -7851100439002867313, l -3687667635049547578, l 6397164582053126056, l -7448068933231519965, l 3080159714190243324, l 7213002536383572246, l -2744578826470130222, l -2209540477429555144, l -4283000063113153604, l 514155846544243452, l 8685362529829148172, l -2676794901295572010, l 5266945197611263436, l -7100341491881236182, l 6370884530017200012, l 3508233951327437698, l 6093038846902362735, l 6947896819742141971, l -6150614418706835633, l 3912768484179519556, l -7297504294705622884, l 1788467486312473644, l 1987345192678698294, l 9151656287159962520, l -7327791351907848260, l -5098029446006985770, l -6789677201649269900, l -8241459139488899190, l -1244576388323263412, l 3603534444561220229, l -4319255700877786540, l -2648669517064743029, l -1203219134725961682, l -3596623016619320051, l 825232994557898138, l -5697954300835098456, l 5136552711613676624, l 8484464690806690071, l 4796545908218827306, l 1103064162257740647, l -6951038808455880465, l 188689046824093434, l -5404484978653015892, l 7003692566171478969, l -7387299717170050178, l 7394366874055328553, l -4075503997220871199, l 4893660505420047610, l 8109199033729414761, l 8517985521566037560, l 9149958476552821530, l 6456925612736064190, l 692908020596231943, l -6338068163748910622, l -8830089438161455476, l 1095982677190783106, l 3013418871393613593, l 2733900008416365587, l -380614399357409680, l 6322966008102354597, l -989797386641308471, l 3220928866375585685, l -8790118628917909969, l -5348169791649895638, l 100022313473583975, l -845992931835952719, l 2238048928810619912, l -6766946518619764780, l -2346387527393875122, l -2434341543514099440, l -6719483218586815857, l 5048229739508739716, l -630880127354830941, l 417508088581529916, l 8580410802417564990, l 7883435665583737762, l -8319596499012899248, l 5938698771509958019, l -1531878090526506976, l 2021522810785465727, l -6024320654701061845, l 2766602973337982564, l 6682950515622382675, l 2071751037497287132, l -8602379091487329233, l -2257640127549963316, l 76887579111669264, l -327428184541014805 }+data $gear__GEAR__hdr = { l $gear__GEAR__data, l 256, l 256 }+data $gear__GEAR = { l $gear__GEAR__hdr }+dbgfile "src/chunking/fastcdc.sx"+data $fastcdc__MIN_SIZE = { l 16384 }+data $fastcdc__AVG_SIZE = { l 65536 }+data $fastcdc__MAX_SIZE = { l 262144 }+data $fastcdc__NORMALIZATION = { l 2 }+export function l $fastcdc__next_len(l %data, l %len) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 24+ storel %data, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "data", "ref u8", %t0, 8, 7, 24+ storel %len, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "len", "usize", %t1, 8, 5, 24+ dbgloc 25+ %t2 =l copy 0+ %t3 =w csgtl %len, %t2+ jnz %t3, @lbl6362, @lbl6363+@lbl6363+ %t4 =l copy $__str311+ call $dprintf(w 2, l %t4)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl6362+ dbgloc 28+ %t5 =l copy $sx__embed_0+ %t6 =l call $vn_fastcdc_next(l %data, l %len, l %t5)+ ret %t6+}++export function l $fastcdc__split(l %data, l %len) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t3 =l alloc8 8+ %t5 =l alloc8 8+ %t14 =l alloc8 8+ dbgloc 32+ storel %data, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "data", "ref u8", %t0, 8, 7, 32+ storel %len, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "len", "usize", %t1, 8, 5, 32+ dbgloc 33+ %t2 =l call $lists__new__GENMONO__usize()++ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "out", "list[usize]", %t3, 8, 5, 33+ dbgloc 34+ %t4 =l copy 0+ storel %t4, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "off", "usize", %t5, 8, 5, 34+ dbgloc 35+ jmp @lbl6364+@lbl6364+ %t6 =l loadl %t5+ %t7 =w csltl %t6, %len+ jnz %t7, @lbl6365, @lbl6367+@lbl6365+ dbgloc 36+ %t9 =l loadl %t5+ %t10 =l copy %t9+ %t8 =l add %data, %t10+ %t11 =l loadl %t5+ %t12 =l sub %len, %t11+ %t13 =l call $fastcdc__next_len(l %t8, l %t12)+ storel %t13, %t14+ call $__sx_dbg_keep(l %t14)+ dbgvar "n", "usize", %t14, 8, 5, 36+ dbgloc 37+ %t16 =l call $sxqbe_list_ensure(l %t3)+ %t17 =l add %t16, 8+ %t18 =l add %t16, 16+ %t19 =l loadl %t17+ %t20 =l loadl %t18+ %t22 =l add %t19, 1+ %t21 =w call $sxqbe_list_grow(l %t16, l %t22)+ %t23 =l call $sxqbe_list_buf(l %t16)+ %t24 =l mul %t19, 8+ %t25 =l add %t23, %t24+ storel %t13, %t25+ %t26 =l add %t19, 1+ storel %t26, %t17+ %t15 =l copy 0+ dbgloc 38+ %t27 =l loadl %t5+ %t28 =l add %t27, %t13+ storel %t28, %t5+ jmp @lbl6366+@lbl6366+ jmp @lbl6364+@lbl6367+ dbgloc 40+ %t29 =l loadl %t3+ ret %t29+}++dbgfile "src/object/blob.sx"+data $blob__FORM_INLINE = { l 0 }+data $blob__FORM_LEAF = { l 1 }+data $blob__FORM_INTERIOR = { l 2 }+export function l $blob__root_id(l %b) {+@start+ %t0 =l alloc8 8+ dbgloc 46+ storel %b, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "b", "ref BlobBuild", %t0, 8, 7, 46+ dbgloc 47+ %t1 =l loadl %b+ %t2 =l call $objid__id(l %t1)+ ret %t2+}++function l $blob__new_build(l %root, l %root_body, l %objects) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t6 =l alloc8 8+ dbgloc 50+ storel %root, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "root", "ref u8", %t0, 8, 7, 50+ storel %root_body, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "root_body", "bytes.Bytes", %t1, 8, 5, 50+ storel %objects, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "objects", "list[ref raw.RawObject]", %t2, 8, 5, 50+ dbgloc 55+ %t4 =l copy 32+ %t3 =l call $malloc(l %t4)+ %t5 =l copy %t3+ storel %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "b", "ref BlobBuild", %t6, 8, 7, 55+ dbgloc 56+ %t7 =l loadl %t6+ storel %root, %t7+ dbgloc 57+ %t8 =l loadl %t6+ %t9 =l add %t8, 8+ call $memcpy(l %t9, l %root_body, l 16)+ dbgloc 58+ %t10 =l loadl %t6+ %t11 =l add %t10, 24+ storel %objects, %t11+ dbgloc 59+ %t12 =l loadl %t6+ ret %t12+}++export function w $blob__free_build(l %b) {+@start+ %t0 =l alloc8 8+ %t5 =l alloc8 8+ dbgloc 62+ storel %b, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "b", "ref BlobBuild", %t0, 8, 7, 62+ dbgloc 63+ %t2 =l add %b, 24+ %t1 =l loadl %t2+ %t3 =w call $raw__free_objects(l %t1)+ dbgloc 64+ %t4 =l copy %b+ storel %t4, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "p", "ref ", %t5, 8, 7, 64+ dbgloc 65+ %t7 =l loadl %t5+ call $free(l %t7)+ %t6 =l copy 0+ ret 0+}++function l $blob__new_entry(l %id, l %length) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t5 =l alloc8 8+ dbgloc 68+ storel %id, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "id", "objid.Id", %t0, 8, 5, 68+ storel %length, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "length", "u64", %t1, 8, 7, 68+ dbgloc 69+ %t3 =l copy 16+ %t2 =l call $malloc(l %t3)+ %t4 =l copy %t2+ storel %t4, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "e", "ref BlobEntry", %t5, 8, 7, 69+ dbgloc 70+ %t6 =l loadl %t5+ call $memcpy(l %t6, l %id, l 8)+ dbgloc 71+ %t7 =l loadl %t5+ %t8 =l add %t7, 8+ storel %length, %t8+ dbgloc 72+ %t9 =l loadl %t5+ ret %t9+}++function l $blob__new_node(l %id, l %length) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t5 =l alloc8 8+ dbgloc 75+ storel %id, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "id", "objid.Id", %t0, 8, 5, 75+ storel %length, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "length", "u64", %t1, 8, 7, 75+ dbgloc 76+ %t3 =l copy 16+ %t2 =l call $malloc(l %t3)+ %t4 =l copy %t2+ storel %t4, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "n", "ref NodeRef", %t5, 8, 7, 76+ dbgloc 77+ %t6 =l loadl %id+ %t7 =l loadl %t5+ storel %t6, %t7+ dbgloc 78+ %t8 =l loadl %t5+ %t9 =l add %t8, 8+ storel %length, %t9+ dbgloc 79+ %t10 =l loadl %t5+ ret %t10+}++function l $blob__node_at(l %nodes, l %i) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t3 =l alloc8 16+ %t10 =l alloc8 8+ dbgloc 82+ storel %nodes, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "nodes", "list[ref NodeRef]", %t0, 8, 5, 82+ storel %i, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "i", "usize", %t1, 8, 5, 82+ dbgloc 83+ storel 0, %t3+ %t4 =w call $sxqbe_list_valid(l %nodes, l %i)+ jnz %t4, @lbl6368, @lbl6369+@lbl6368+ %t5 =l call $sxqbe_list_buf(l %nodes)+ %t6 =l mul %i, 8+ %t7 =l add %t5, %t6+ %t8 =l loadl %t7+ %t9 =l add %t3, 8+ storel %t8, %t9+ storel 1, %t3+ jmp @lbl6370+@lbl6369+ jmp @lbl6370+@lbl6370+ storel %t3, %t10+ call $__sx_dbg_keep(l %t10)+ dbgvar "o", "option[ref NodeRef]", %t10, 8, 5, 83+ dbgloc 84+ %t11 =l loadl %t3+ %t12 =w cnel %t11, 0+ jnz %t12, @lbl6371, @lbl6372+@lbl6371+ %t14 =l add %t3, 8+ %t13 =l loadl %t14+ dbgloc 85+ ret %t13+@lbl6372+ jmp @lbl6373+@lbl6373+ dbgloc 87+ %t15 =l copy 0+ jnz %t15, @lbl6374, @lbl6375+@lbl6375+ %t16 =l copy $__str312+ call $dprintf(w 2, l %t16)+ call $fflush(l 0)+ call $exit(l 1)+ hlt+@lbl6374+ dbgloc 88+ %t17 =l copy 0+ ret %t17+}++export function w $blob__free_blob(l %b) {+@start+ %t0 =l alloc8 8+ %t3 =l alloc8 8+ %t12 =l alloc8 8+ dbgloc 91+ storel %b, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "b", "ref Blob", %t0, 8, 7, 91+ dbgloc 92+ %t2 =l add %b, 17+ %t1 =l loadl %t2+ storel 0, %t3+ %t4 =l call $sxqbe_list_len(l %t1)+@lbl6376+ %t5 =l loadl %t3+ %t6 =w csltl %t5, %t4+ jnz %t6, @lbl6377, @lbl6378+@lbl6377+ %t7 =l call $sxqbe_list_buf(l %t1)+ %t8 =l mul %t5, 8+ %t9 =l add %t7, %t8+ %t10 =l loadl %t9+ dbgloc 93+ %t11 =l copy %t10+ storel %t11, %t12+ call $__sx_dbg_keep(l %t12)+ dbgvar "p", "ref ", %t12, 8, 7, 93+ dbgloc 94+ %t14 =l loadl %t12+ call $free(l %t14)+ %t13 =l copy 0+@lbl6379+ %t15 =l add %t5, 1+ storel %t15, %t3+ jmp @lbl6376+@lbl6378+ dbgloc 96+ %t18 =l add %b, 17+ %t17 =l loadl %t18+ call $sxqbe_list_free(l %t17)+ %t16 =l copy 0+ dbgloc 97+ %t20 =l copy %b+ call $free(l %t20)+ %t19 =l copy 0+ ret 0+}++export function l $blob__decode(l %__ret, l %body) {+@start+ %t0 =l alloc8 8+ %t6 =l alloc8 8+ %t9 =l alloc8 16+ %t17 =l alloc8 8+ %t20 =l alloc8 16+ %t28 =l alloc8 8+ %t41 =l alloc8 16+ %t50 =l alloc8 16+ %t55 =l alloc8 16+ %t61 =l alloc8 16+ %t66 =l alloc8 8+ %t69 =l alloc8 16+ %t75 =l alloc8 8+ %t77 =l alloc8 8+ %t82 =l alloc8 8+ %t85 =l alloc8 16+ %t90 =l alloc8 8+ %t93 =l alloc8 16+ %t98 =l alloc8 8+ %t101 =l alloc8 16+ %t110 =l alloc8 16+ %t116 =l alloc8 8+ %t119 =l alloc8 16+ %t143 =l alloc8 16+ %t148 =l alloc8 16+ dbgloc 101+ storel %body, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "body", "bytes.Bytes", %t0, 8, 5, 101+ dbgloc 102+ %t1 =l loadl %body+ %t3 =l add %body, 8+ %t2 =l loadl %t3+ %t4 =l call $reader__new(l %t1, l %t2)+ %t5 =l call $malloc(l 24)+ call $memset(l %t5, w 0, l 24)+ call $memcpy(l %t5, l %t4, l 24)+ storel %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "r", "reader.Reader", %t6, 8, 5, 102+ dbgloc 103+ %t7 =l loadl %t6+ %t8 =l call $reader__Reader__read_u8(l %t9, l %t7)+ %t10 =l loadl %t9+ %t11 =w ceql %t10, 0+ jnz %t11, @lbl6380, @lbl6381+@lbl6381+ call $memcpy(l %__ret, l %t9, l 16)+ ret %__ret+@lbl6380+ %t13 =l add %t9, 8+ %t12 =w loadw %t13+ %t14 =w copy %t12+ %t15 =w copy %t14+ %t16 =w extub %t15+ storew %t16, %t17+ call $__sx_dbg_keep(l %t17)+ dbgvar "form", "u8", %t17, 1, 7, 103+ dbgloc 104+ %t18 =w copy 2+ %t19 =w csgtw %t16, %t18+ jnz %t19, @lbl6382, @lbl6383+@lbl6382+ dbgloc 105+ call $memset(l %t20, w 0, l 16)+ storel 1, %t20+ %t21 =l copy 3+ %t22 =l copy 0+ %t23 =l call $derr__fail(l %t21, l %t22)+ %t24 =l add %t20, 8+ storel %t23, %t24+ call $memcpy(l %__ret, l %t20, l 16)+ ret %__ret+@lbl6383+ dbgloc 107+ %t26 =l copy 25+ %t25 =l call $malloc(l %t26)+ %t27 =l copy %t25+ storel %t27, %t28+ call $__sx_dbg_keep(l %t28)+ dbgvar "b", "ref Blob", %t28, 8, 7, 107+ dbgloc 108+ %t29 =l loadl %t28+ storeb %t16, %t29+ dbgloc 109+ %t30 =l call $bytes__empty()+ %t31 =l loadl %t28+ %t32 =l add %t31, 1+ call $memcpy(l %t32, l %t30, l 16)+ dbgloc 110+ %t33 =l call $lists__new__GENMONO__ref_BlobEntry()++ %t34 =l loadl %t28+ %t35 =l add %t34, 17+ storel %t33, %t35+ dbgloc 112+ %t36 =w copy 0+ %t37 =w ceqw %t16, %t36+ jnz %t37, @lbl6385, @lbl6386+@lbl6385+ dbgloc 113+ %t38 =l loadl %t6+ %t39 =l copy 16384+ %t40 =l call $reader__Reader__read_bytes(l %t41, l %t38, l %t39)+ %t42 =l loadl %t41+ %t43 =w ceql %t42, 0+ jnz %t43, @lbl6388, @lbl6389+@lbl6389+ call $memcpy(l %__ret, l %t41, l 16)+ ret %__ret+@lbl6388+ %t45 =l add %t41, 8+ %t44 =l loadl %t45+ %t46 =l loadl %t28+ %t47 =l add %t46, 1+ call $memcpy(l %t47, l %t44, l 16)+ dbgloc 114+ %t48 =l loadl %t6+ %t49 =l call $reader__Reader__finish(l %t50, l %t48)+ %t51 =l loadl %t50+ %t52 =w ceql %t51, 0+ jnz %t52, @lbl6390, @lbl6391+@lbl6391+ call $memcpy(l %__ret, l %t50, l 16)+ ret %__ret+@lbl6390+ %t54 =l add %t50, 8+ %t53 =l loadl %t54+ dbgloc 115+ call $memset(l %t55, w 0, l 16)+ storel 0, %t55+ %t56 =l loadl %t28+ %t57 =l add %t55, 8+ storel %t56, %t57+ call $memcpy(l %__ret, l %t55, l 16)+ ret %__ret+@lbl6386+ dbgloc 118+ %t58 =l loadl %t6+ %t59 =l copy 1024+ %t60 =l call $reader__Reader__read_list_len(l %t61, l %t58, l %t59)+ %t62 =l loadl %t61+ %t63 =w ceql %t62, 0+ jnz %t63, @lbl6392, @lbl6393+@lbl6393+ call $memcpy(l %__ret, l %t61, l 16)+ ret %__ret+@lbl6392+ %t65 =l add %t61, 8+ %t64 =l loadl %t65+ storel %t64, %t66+ call $__sx_dbg_keep(l %t66)+ dbgvar "count", "usize", %t66, 8, 5, 118+ dbgloc 119+ %t67 =l copy 0+ %t68 =w ceql %t64, %t67+ jnz %t68, @lbl6394, @lbl6395+@lbl6394+ dbgloc 120+ call $memset(l %t69, w 0, l 16)+ storel 1, %t69+ %t70 =l copy 3+ %t71 =l copy 1+ %t72 =l call $derr__fail(l %t70, l %t71)+ %t73 =l add %t69, 8+ storel %t72, %t73+ call $memcpy(l %__ret, l %t69, l 16)+ ret %__ret+@lbl6395+ dbgloc 122+ %t74 =l copy 0+ storel %t74, %t75+ call $__sx_dbg_keep(l %t75)+ dbgvar "total", "u64", %t75, 8, 7, 122+ dbgloc 123+ %t76 =l copy 0+ storel %t76, %t77+ call $__sx_dbg_keep(l %t77)+ dbgvar "i", "usize", %t77, 8, 5, 123+ dbgloc 124+ jmp @lbl6397+@lbl6397+ %t78 =l loadl %t77+ %t79 =w csltl %t78, %t64+ jnz %t79, @lbl6398, @lbl6400+@lbl6398+ dbgloc 125+ %t80 =l loadl %t6+ %t81 =l call $reader__Reader__offset(l %t80)+ storel %t81, %t82+ call $__sx_dbg_keep(l %t82)+ dbgvar "at", "usize", %t82, 8, 5, 125+ dbgloc 126+ %t83 =l loadl %t6+ %t84 =l call $reader__Reader__read_id(l %t85, l %t83)+ %t86 =l loadl %t85+ %t87 =w ceql %t86, 0+ jnz %t87, @lbl6401, @lbl6402+@lbl6402+ call $memcpy(l %__ret, l %t85, l 16)+ ret %__ret+@lbl6401+ %t89 =l add %t85, 8+ %t88 =l loadl %t89+ storel %t88, %t90+ call $__sx_dbg_keep(l %t90)+ dbgvar "cid", "ref u8", %t90, 8, 7, 126+ dbgloc 127+ %t91 =l loadl %t6+ %t92 =l call $reader__Reader__read_varint(l %t93, l %t91)+ %t94 =l loadl %t93+ %t95 =w ceql %t94, 0+ jnz %t95, @lbl6403, @lbl6404+@lbl6404+ call $memcpy(l %__ret, l %t93, l 16)+ ret %__ret+@lbl6403+ %t97 =l add %t93, 8+ %t96 =l loadl %t97+ storel %t96, %t98+ call $__sx_dbg_keep(l %t98)+ dbgvar "length", "u64", %t98, 8, 7, 127+ dbgloc 128+ %t99 =l copy 0+ %t100 =w ceql %t96, %t99+ jnz %t100, @lbl6405, @lbl6406+@lbl6405+ dbgloc 129+ call $memset(l %t101, w 0, l 16)+ storel 1, %t101+ %t102 =l copy 3+ %t103 =l call $derr__fail(l %t102, l %t81)+ %t104 =l add %t101, 8+ storel %t103, %t104+ call $memcpy(l %__ret, l %t101, l 16)+ ret %__ret+@lbl6406+ dbgloc 131+ %t105 =w copy 1+ %t106 =w ceqw %t16, %t105+ jnz %t106, @lbl6408, @lbl6409+@lbl6408+ dbgloc 132+ %t107 =l copy 262144+ %t108 =l copy %t107+ %t109 =w csgtl %t96, %t108+ jnz %t109, @lbl6411, @lbl6412+@lbl6411+ dbgloc 133+ call $memset(l %t110, w 0, l 16)+ storel 1, %t110+ %t111 =l copy 6+ %t112 =l call $derr__fail(l %t111, l %t81)+ %t113 =l add %t110, 8+ storel %t112, %t113+ call $memcpy(l %__ret, l %t110, l 16)+ ret %__ret+@lbl6412+ jmp @lbl6409+@lbl6409+ dbgloc 136+ %t114 =l loadl %t75+ %t115 =l add %t114, %t96+ storel %t115, %t116+ call $__sx_dbg_keep(l %t116)+ dbgvar "next_total", "u64", %t116, 8, 7, 136+ dbgloc 137+ %t117 =l loadl %t75+ %t118 =w csltl %t115, %t117+ jnz %t118, @lbl6414, @lbl6415+@lbl6414+ dbgloc 138+ call $memset(l %t119, w 0, l 16)+ storel 1, %t119+ %t120 =l copy 3+ %t121 =l call $derr__fail(l %t120, l %t81)+ %t122 =l add %t119, 8+ storel %t121, %t122+ call $memcpy(l %__ret, l %t119, l 16)+ ret %__ret+@lbl6415+ dbgloc 140+ storel %t115, %t75+ dbgloc 141+ %t124 =l loadl %t28+ %t125 =l add %t124, 17+ %t126 =l call $sxqbe_list_ensure(l %t125)+ %t127 =l call $objid__id(l %t88)+ %t128 =l call $blob__new_entry(l %t127, l %t96)+ %t129 =l add %t126, 8+ %t130 =l add %t126, 16+ %t131 =l loadl %t129+ %t132 =l loadl %t130+ %t134 =l add %t131, 1+ %t133 =w call $sxqbe_list_grow(l %t126, l %t134)+ %t135 =l call $sxqbe_list_buf(l %t126)+ %t136 =l mul %t131, 8+ %t137 =l add %t135, %t136+ storel %t128, %t137+ %t138 =l add %t131, 1+ storel %t138, %t129+ %t123 =l copy 0+ dbgloc 142+ %t139 =l loadl %t77+ %t140 =l add %t139, 1+ storel %t140, %t77+ jmp @lbl6399+@lbl6399+ jmp @lbl6397+@lbl6400+ dbgloc 144+ %t141 =l loadl %t6+ %t142 =l call $reader__Reader__finish(l %t143, l %t141)+ %t144 =l loadl %t143+ %t145 =w ceql %t144, 0+ jnz %t145, @lbl6417, @lbl6418+@lbl6418+ call $memcpy(l %__ret, l %t143, l 16)+ ret %__ret+@lbl6417+ %t147 =l add %t143, 8+ %t146 =l loadl %t147+ dbgloc 145+ call $memset(l %t148, w 0, l 16)+ storel 0, %t148+ %t149 =l loadl %t28+ %t150 =l add %t148, 8+ storel %t149, %t150+ call $memcpy(l %__ret, l %t148, l 16)+ ret %__ret+}++function w $blob__cut_after(l %entry_id, l %current_len) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t14 =l alloc8 8+ dbgloc 149+ storel %entry_id, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "entry_id", "ref u8", %t0, 8, 7, 149+ storel %current_len, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "current_len", "usize", %t1, 8, 5, 149+ dbgloc 150+ %t2 =l copy 1024+ %t4 =w csltl %current_len, %t2+ %t3 =w ceqw %t4, 0+ jnz %t3, @lbl6419, @lbl6420+@lbl6419+ dbgloc 151+ %t5 =l copy 1+ ret %t5+@lbl6420+ dbgloc 153+ %t6 =l copy 16+ %t7 =w csltl %current_len, %t6+ jnz %t7, @lbl6422, @lbl6423+@lbl6422+ dbgloc 154+ %t8 =l copy 0+ ret %t8+@lbl6423+ dbgloc 156+ %t10 =w loadub %entry_id+ %t9 =l extsw %t10+ %t11 =w copy %t9+ %t12 =w copy %t11+ %t13 =w extub %t12+ storew %t13, %t14+ call $__sx_dbg_keep(l %t14)+ dbgvar "first", "u8", %t14, 1, 7, 156+ dbgloc 157+ %t15 =w copy 0+ %t16 =w ceqw %t13, %t15+ ret %t16+}++function l $blob__new_group(l %start, l %count) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t5 =l alloc8 8+ dbgloc 165+ storel %start, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "start", "usize", %t0, 8, 5, 165+ storel %count, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "count", "usize", %t1, 8, 5, 165+ dbgloc 166+ %t3 =l copy 16+ %t2 =l call $malloc(l %t3)+ %t4 =l copy %t2+ storel %t4, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "g", "ref Group", %t5, 8, 7, 166+ dbgloc 167+ %t6 =l loadl %t5+ storel %start, %t6+ dbgloc 168+ %t7 =l loadl %t5+ %t8 =l add %t7, 8+ storel %count, %t8+ dbgloc 169+ %t9 =l loadl %t5+ ret %t9+}++function l $blob__group_nodes(l %nodes) {+@start+ %t0 =l alloc8 8+ %t2 =l alloc8 8+ %t5 =l alloc8 8+ %t10 =l alloc8 8+ %t12 =l alloc8 8+ %t17 =l alloc8 8+ %t23 =l alloc8 8+ %t26 =l alloc4 1+ dbgloc 172+ storel %nodes, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "nodes", "list[ref NodeRef]", %t0, 8, 5, 172+ dbgloc 173+ %t1 =l call $lists__new__GENMONO__ref_Group()++ storel %t1, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "out", "list[ref Group]", %t2, 8, 5, 173+ dbgloc 174+ %t4 =l call $sxqbe_list_len(l %nodes)+ storel %t4, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "n", "usize", %t5, 8, 5, 174+ dbgloc 175+ %t6 =l copy 0+ %t7 =w ceql %t4, %t6+ jnz %t7, @lbl6425, @lbl6426+@lbl6425+ dbgloc 176+ %t8 =l loadl %t2+ ret %t8+@lbl6426+ dbgloc 178+ %t9 =l copy 0+ storel %t9, %t10+ call $__sx_dbg_keep(l %t10)+ dbgvar "start", "usize", %t10, 8, 5, 178+ dbgloc 179+ %t11 =l copy 0+ storel %t11, %t12+ call $__sx_dbg_keep(l %t12)+ dbgvar "i", "usize", %t12, 8, 5, 179+ dbgloc 180+ jmp @lbl6428+@lbl6428+ %t13 =l loadl %t12+ %t14 =w csltl %t13, %t4+ jnz %t14, @lbl6429, @lbl6431+@lbl6429+ dbgloc 181+ %t15 =l loadl %t12+ %t16 =l call $blob__node_at(l %nodes, l %t15)+ storel %t16, %t17+ call $__sx_dbg_keep(l %t17)+ dbgvar "node", "ref NodeRef", %t17, 8, 7, 181+ dbgloc 182+ %t18 =l loadl %t12+ %t19 =l loadl %t10+ %t20 =l sub %t18, %t19+ %t21 =l copy 1+ %t22 =l add %t20, %t21+ storel %t22, %t23+ call $__sx_dbg_keep(l %t23)+ dbgvar "current", "usize", %t23, 8, 5, 182+ dbgloc 183+ %t24 =l loadl %t16+ %t25 =w call $blob__cut_after(l %t24, l %t22)+ storew %t25, %t26+ jnz %t25, @lbl6436, @lbl6435+@lbl6435+ %t27 =l loadl %t12+ %t28 =l copy 1+ %t29 =l add %t27, %t28+ %t30 =w ceql %t29, %t4+ storew %t30, %t26+ jmp @lbl6436+@lbl6436+ %t31 =w loadw %t26+ jnz %t31, @lbl6432, @lbl6433+@lbl6432+ dbgloc 184+ %t33 =l call $sxqbe_list_ensure(l %t2)+ %t34 =l loadl %t10+ %t35 =l call $blob__new_group(l %t34, l %t22)+ %t36 =l add %t33, 8+ %t37 =l add %t33, 16+ %t38 =l loadl %t36+ %t39 =l loadl %t37+ %t41 =l add %t38, 1+ %t40 =w call $sxqbe_list_grow(l %t33, l %t41)+ %t42 =l call $sxqbe_list_buf(l %t33)+ %t43 =l mul %t38, 8+ %t44 =l add %t42, %t43+ storel %t35, %t44+ %t45 =l add %t38, 1+ storel %t45, %t36+ %t32 =l copy 0+ dbgloc 185+ %t46 =l loadl %t12+ %t47 =l copy 1+ %t48 =l add %t46, %t47+ storel %t48, %t10+ jmp @lbl6433+@lbl6433+ dbgloc 187+ %t49 =l loadl %t12+ %t50 =l add %t49, 1+ storel %t50, %t12+ jmp @lbl6430+@lbl6430+ jmp @lbl6428+@lbl6431+ dbgloc 189+ %t51 =l loadl %t2+ ret %t51+}++function l $blob__build_node_body(l %nodes, l %group, w %form) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t11 =l alloc8 8+ %t20 =l alloc8 8+ %t29 =l alloc8 8+ dbgloc 192+ storel %nodes, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "nodes", "list[ref NodeRef]", %t0, 8, 5, 192+ storel %group, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "group", "ref Group", %t1, 8, 7, 192+ storew %form, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "form", "u8", %t2, 1, 7, 192+ dbgloc 193+ %t4 =l add %group, 8+ %t3 =l loadl %t4+ %t5 =l copy 40+ %t6 =l mul %t3, %t5+ %t7 =l copy 8+ %t8 =l add %t6, %t7+ %t9 =l call $buf__new(l %t8)+ %t10 =l call $malloc(l 24)+ call $memset(l %t10, w 0, l 24)+ call $memcpy(l %t10, l %t9, l 24)+ storel %t10, %t11+ call $__sx_dbg_keep(l %t11)+ dbgvar "b", "buf.Buf", %t11, 8, 5, 193+ dbgloc 194+ %t12 =l loadl %t11+ %t13 =w call $buf__Buf__put_u8(l %t12, w %form)+ dbgloc 195+ %t14 =l loadl %t11+ %t16 =l add %group, 8+ %t15 =l loadl %t16+ %t17 =l copy %t15+ %t18 =w call $buf__Buf__put_varint(l %t14, l %t17)+ dbgloc 196+ %t19 =l copy 0+ storel %t19, %t20+ call $__sx_dbg_keep(l %t20)+ dbgvar "i", "usize", %t20, 8, 5, 196+ dbgloc 197+ jmp @lbl6437+@lbl6437+ %t21 =l loadl %t20+ %t23 =l add %group, 8+ %t22 =l loadl %t23+ %t24 =w csltl %t21, %t22+ jnz %t24, @lbl6438, @lbl6440+@lbl6438+ dbgloc 198+ %t25 =l loadl %group+ %t26 =l loadl %t20+ %t27 =l add %t25, %t26+ %t28 =l call $blob__node_at(l %nodes, l %t27)+ storel %t28, %t29+ call $__sx_dbg_keep(l %t29)+ dbgvar "node", "ref NodeRef", %t29, 8, 7, 198+ dbgloc 199+ %t30 =l loadl %t11+ %t31 =l loadl %t28+ %t32 =w call $buf__Buf__put_id(l %t30, l %t31)+ dbgloc 200+ %t33 =l loadl %t11+ %t35 =l add %t28, 8+ %t34 =l loadl %t35+ %t36 =w call $buf__Buf__put_varint(l %t33, l %t34)+ dbgloc 201+ %t37 =l loadl %t20+ %t38 =l add %t37, 1+ storel %t38, %t20+ jmp @lbl6439+@lbl6439+ jmp @lbl6437+@lbl6440+ dbgloc 203+ %t39 =l loadl %t11+ ret %t39+}++function l $blob__sum_group(l %nodes, l %group) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t3 =l alloc8 8+ %t5 =l alloc8 8+ dbgloc 206+ storel %nodes, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "nodes", "list[ref NodeRef]", %t0, 8, 5, 206+ storel %group, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "group", "ref Group", %t1, 8, 7, 206+ dbgloc 207+ %t2 =l copy 0+ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "total", "u64", %t3, 8, 7, 207+ dbgloc 208+ %t4 =l copy 0+ storel %t4, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "i", "usize", %t5, 8, 5, 208+ dbgloc 209+ jmp @lbl6441+@lbl6441+ %t6 =l loadl %t5+ %t8 =l add %group, 8+ %t7 =l loadl %t8+ %t9 =w csltl %t6, %t7+ jnz %t9, @lbl6442, @lbl6444+@lbl6442+ dbgloc 210+ %t10 =l loadl %t3+ %t11 =l loadl %group+ %t12 =l loadl %t5+ %t13 =l add %t11, %t12+ %t14 =l call $blob__node_at(l %nodes, l %t13)+ %t16 =l add %t14, 8+ %t15 =l loadl %t16+ %t17 =l add %t10, %t15+ storel %t17, %t3+ dbgloc 211+ %t18 =l loadl %t5+ %t19 =l add %t18, 1+ storel %t19, %t5+ jmp @lbl6443+@lbl6443+ jmp @lbl6441+@lbl6444+ dbgloc 213+ %t20 =l loadl %t3+ ret %t20+}++function w $blob__free_groups(l %groups) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t10 =l alloc8 8+ dbgloc 216+ storel %groups, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "groups", "list[ref Group]", %t0, 8, 5, 216+ dbgloc 217+ storel 0, %t1+ %t2 =l call $sxqbe_list_len(l %groups)+@lbl6445+ %t3 =l loadl %t1+ %t4 =w csltl %t3, %t2+ jnz %t4, @lbl6446, @lbl6447+@lbl6446+ %t5 =l call $sxqbe_list_buf(l %groups)+ %t6 =l mul %t3, 8+ %t7 =l add %t5, %t6+ %t8 =l loadl %t7+ dbgloc 218+ %t9 =l copy %t8+ storel %t9, %t10+ call $__sx_dbg_keep(l %t10)+ dbgvar "p", "ref ", %t10, 8, 7, 218+ dbgloc 219+ %t12 =l loadl %t10+ call $free(l %t12)+ %t11 =l copy 0+@lbl6448+ %t13 =l add %t3, 1+ storel %t13, %t1+ jmp @lbl6445+@lbl6447+ dbgloc 221+ call $sxqbe_list_free(l %groups)+ %t14 =l copy 0+ ret 0+}++function w $blob__free_nodes(l %nodes) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t10 =l alloc8 8+ dbgloc 224+ storel %nodes, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "nodes", "list[ref NodeRef]", %t0, 8, 5, 224+ dbgloc 225+ storel 0, %t1+ %t2 =l call $sxqbe_list_len(l %nodes)+@lbl6449+ %t3 =l loadl %t1+ %t4 =w csltl %t3, %t2+ jnz %t4, @lbl6450, @lbl6451+@lbl6450+ %t5 =l call $sxqbe_list_buf(l %nodes)+ %t6 =l mul %t3, 8+ %t7 =l add %t5, %t6+ %t8 =l loadl %t7+ dbgloc 226+ %t9 =l copy %t8+ storel %t9, %t10+ call $__sx_dbg_keep(l %t10)+ dbgvar "p", "ref ", %t10, 8, 7, 226+ dbgloc 227+ %t12 =l loadl %t10+ call $free(l %t12)+ %t11 =l copy 0+@lbl6452+ %t13 =l add %t3, 1+ storel %t13, %t1+ jmp @lbl6449+@lbl6451+ dbgloc 229+ call $sxqbe_list_free(l %nodes)+ %t14 =l copy 0+ ret 0+}++export function l $blob__build(l %data, l %len) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t3 =l alloc8 8+ %t10 =l alloc8 8+ %t20 =l alloc8 8+ %t24 =l alloc8 8+ %t26 =l alloc8 8+ %t30 =l alloc8 8+ %t53 =l alloc8 8+ %t55 =l alloc8 8+ %t64 =l alloc8 8+ %t70 =l alloc8 8+ %t74 =l alloc8 8+ %t79 =l alloc8 8+ %t114 =l alloc8 8+ %t117 =l alloc8 8+ %t121 =l alloc8 8+ %t124 =l alloc8 8+ %t126 =l alloc8 8+ %t129 =l alloc8 8+ %t130 =l alloc8 8+ %t142 =l alloc8 8+ %t153 =l alloc8 8+ %t156 =l alloc8 8+ %t160 =l alloc8 8+ %t162 =l alloc8 8+ %t166 =l alloc8 8+ %t212 =l alloc8 8+ dbgloc 234+ storel %data, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "data", "ref u8", %t0, 8, 7, 234+ storel %len, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "len", "usize", %t1, 8, 5, 234+ dbgloc 235+ %t2 =l call $raw__empty_list()+ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "objects", "list[ref raw.RawObject]", %t3, 8, 5, 235+ dbgloc 236+ %t4 =l copy 16384+ %t5 =w cslel %len, %t4+ jnz %t5, @lbl6453, @lbl6454+@lbl6453+ dbgloc 237+ %t6 =l copy 16+ %t7 =l add %len, %t6+ %t8 =l call $buf__new(l %t7)+ %t9 =l call $malloc(l 24)+ call $memset(l %t9, w 0, l 24)+ call $memcpy(l %t9, l %t8, l 24)+ storel %t9, %t10+ call $__sx_dbg_keep(l %t10)+ dbgvar "b", "buf.Buf", %t10, 8, 5, 237+ dbgloc 238+ %t11 =l loadl %t10+ %t12 =l copy 0+ %t14 =w copy %t12+ %t13 =w call $buf__Buf__put_u8(l %t11, w %t14)+ dbgloc 239+ %t15 =l loadl %t10+ %t16 =l call $bytes__bytes(l %data, l %len)+ %t17 =w call $buf__Buf__put_length_prefixed(l %t15, l %t16)+ dbgloc 240+ %t18 =l loadl %t10+ %t19 =l call $buf__Buf__view(l %t18)+ storel %t19, %t20+ call $__sx_dbg_keep(l %t20)+ dbgvar "body", "bytes.Bytes", %t20, 8, 5, 240+ dbgloc 241+ %t21 =l copy 2+ %t23 =w copy %t21+ %t22 =l call $objid__object_id(w %t23, l %t19)+ storel %t22, %t24+ call $__sx_dbg_keep(l %t24)+ dbgvar "root", "objid.Id", %t24, 8, 5, 241+ dbgloc 242+ %t25 =l call $bytes__Bytes__dup(l %t19)+ storel %t25, %t26+ call $__sx_dbg_keep(l %t26)+ dbgvar "owned", "bytes.Bytes", %t26, 8, 5, 242+ dbgloc 243+ %t27 =l copy 2+ %t29 =w copy %t27+ %t28 =l call $raw__raw(w %t29, l %t25)+ storel %t28, %t30+ call $__sx_dbg_keep(l %t30)+ dbgvar "ro", "ref raw.RawObject", %t30, 8, 7, 243+ dbgloc 244+ %t31 =l loadl %t22+ %t32 =l loadl %t30+ %t33 =l add %t32, 17+ storel %t31, %t33+ dbgloc 245+ %t35 =l call $sxqbe_list_ensure(l %t3)+ %t36 =l loadl %t30+ %t37 =l add %t35, 8+ %t38 =l add %t35, 16+ %t39 =l loadl %t37+ %t40 =l loadl %t38+ %t42 =l add %t39, 1+ %t41 =w call $sxqbe_list_grow(l %t35, l %t42)+ %t43 =l call $sxqbe_list_buf(l %t35)+ %t44 =l mul %t39, 8+ %t45 =l add %t43, %t44+ storel %t36, %t45+ %t46 =l add %t39, 1+ storel %t46, %t37+ %t34 =l copy 0+ dbgloc 246+ %t47 =l loadl %t10+ %t48 =w call $buf__Buf__free(l %t47)+ dbgloc 247+ %t49 =l loadl %t22+ %t50 =l loadl %t3+ %t51 =l call $blob__new_build(l %t49, l %t25, l %t50)+ ret %t51+@lbl6454+ dbgloc 250+ %t52 =l call $lists__new__GENMONO__ref_NodeRef()++ storel %t52, %t53+ call $__sx_dbg_keep(l %t53)+ dbgvar "level", "list[ref NodeRef]", %t53, 8, 5, 250+ dbgloc 251+ %t54 =l copy 0+ storel %t54, %t55+ call $__sx_dbg_keep(l %t55)+ dbgvar "off", "usize", %t55, 8, 5, 251+ dbgloc 252+ jmp @lbl6456+@lbl6456+ %t56 =l loadl %t55+ %t57 =w csltl %t56, %len+ jnz %t57, @lbl6457, @lbl6459+@lbl6457+ dbgloc 253+ %t59 =l loadl %t55+ %t60 =l copy %t59+ %t58 =l add %data, %t60+ %t61 =l loadl %t55+ %t62 =l sub %len, %t61+ %t63 =l call $fastcdc__next_len(l %t58, l %t62)+ storel %t63, %t64+ call $__sx_dbg_keep(l %t64)+ dbgvar "n", "usize", %t64, 8, 5, 253+ dbgloc 254+ %t65 =l call $bytes__bytes(l %data, l %len)+ %t66 =l loadl %t55+ %t67 =l loadl %t55+ %t68 =l add %t67, %t63+ %t69 =l call $bytes__Bytes__slice(l %t65, l %t66, l %t68)+ storel %t69, %t70+ call $__sx_dbg_keep(l %t70)+ dbgvar "chunk", "bytes.Bytes", %t70, 8, 5, 254+ dbgloc 255+ %t71 =l copy 1+ %t73 =w copy %t71+ %t72 =l call $objid__object_id(w %t73, l %t69)+ storel %t72, %t74+ call $__sx_dbg_keep(l %t74)+ dbgvar "cid", "objid.Id", %t74, 8, 5, 255+ dbgloc 256+ %t75 =l copy 1+ %t76 =l call $bytes__Bytes__dup(l %t69)+ %t78 =w copy %t75+ %t77 =l call $raw__raw(w %t78, l %t76)+ storel %t77, %t79+ call $__sx_dbg_keep(l %t79)+ dbgvar "ro", "ref raw.RawObject", %t79, 8, 7, 256+ dbgloc 257+ %t80 =l loadl %t72+ %t81 =l loadl %t79+ %t82 =l add %t81, 17+ storel %t80, %t82+ dbgloc 258+ %t84 =l call $sxqbe_list_ensure(l %t3)+ %t85 =l loadl %t79+ %t86 =l add %t84, 8+ %t87 =l add %t84, 16+ %t88 =l loadl %t86+ %t89 =l loadl %t87+ %t91 =l add %t88, 1+ %t90 =w call $sxqbe_list_grow(l %t84, l %t91)+ %t92 =l call $sxqbe_list_buf(l %t84)+ %t93 =l mul %t88, 8+ %t94 =l add %t92, %t93+ storel %t85, %t94+ %t95 =l add %t88, 1+ storel %t95, %t86+ %t83 =l copy 0+ dbgloc 259+ %t97 =l call $sxqbe_list_ensure(l %t53)+ %t98 =l copy %t63+ %t99 =l call $blob__new_node(l %t72, l %t98)+ %t100 =l add %t97, 8+ %t101 =l add %t97, 16+ %t102 =l loadl %t100+ %t103 =l loadl %t101+ %t105 =l add %t102, 1+ %t104 =w call $sxqbe_list_grow(l %t97, l %t105)+ %t106 =l call $sxqbe_list_buf(l %t97)+ %t107 =l mul %t102, 8+ %t108 =l add %t106, %t107+ storel %t99, %t108+ %t109 =l add %t102, 1+ storel %t109, %t100+ %t96 =l copy 0+ dbgloc 260+ %t110 =l loadl %t55+ %t111 =l add %t110, %t63+ storel %t111, %t55+ jmp @lbl6458+@lbl6458+ jmp @lbl6456+@lbl6459+ dbgloc 263+ %t112 =l call $objid__id_none()+ %t113 =l call $malloc(l 8)+ call $memset(l %t113, w 0, l 8)+ call $memcpy(l %t113, l %t112, l 8)+ storel %t113, %t114+ call $__sx_dbg_keep(l %t114)+ dbgvar "root_id", "objid.Id", %t114, 8, 5, 263+ dbgloc 264+ %t115 =l call $bytes__empty()+ %t116 =l call $malloc(l 16)+ call $memset(l %t116, w 0, l 16)+ call $memcpy(l %t116, l %t115, l 16)+ storel %t116, %t117+ call $__sx_dbg_keep(l %t117)+ dbgvar "root_body", "bytes.Bytes", %t117, 8, 5, 264+ dbgloc 265+ %t118 =l copy 1+ %t119 =w copy %t118+ %t120 =w extub %t119+ storew %t120, %t121+ call $__sx_dbg_keep(l %t121)+ dbgvar "leaf_level", "bool", %t121, 1, 7, 265+ dbgloc 266+ jmp @lbl6460+@lbl6460+ jmp @lbl6461+@lbl6461+ dbgloc 267+ %t122 =l loadl %t53+ %t123 =l call $blob__group_nodes(l %t122)+ storel %t123, %t124+ call $__sx_dbg_keep(l %t124)+ dbgvar "groups", "list[ref Group]", %t124, 8, 5, 267+ dbgloc 268+ %t125 =l call $lists__new__GENMONO__ref_NodeRef()++ storel %t125, %t126+ call $__sx_dbg_keep(l %t126)+ dbgvar "next", "list[ref NodeRef]", %t126, 8, 5, 268+ dbgloc 269+ %t127 =l call $bytes__empty()+ %t128 =l call $malloc(l 16)+ call $memset(l %t128, w 0, l 16)+ call $memcpy(l %t128, l %t127, l 16)+ storel %t128, %t129+ call $__sx_dbg_keep(l %t129)+ dbgvar "last_body", "bytes.Bytes", %t129, 8, 5, 269+ dbgloc 270+ storel 0, %t130+ %t131 =l call $sxqbe_list_len(l %t123)+@lbl6464+ %t132 =l loadl %t130+ %t133 =w csltl %t132, %t131+ jnz %t133, @lbl6465, @lbl6466+@lbl6465+ %t134 =l call $sxqbe_list_buf(l %t123)+ %t135 =l mul %t132, 8+ %t136 =l add %t134, %t135+ %t137 =l loadl %t136+ dbgloc 271+ %t138 =l copy 2+ %t139 =w copy %t138+ %t140 =w copy %t139+ %t141 =w extub %t140+ storew %t141, %t142+ call $__sx_dbg_keep(l %t142)+ dbgvar "node_form", "u8", %t142, 1, 7, 271+ dbgloc 272+ %t144 =w loadw %t121+ %t143 =l extsw %t144+ jnz %t143, @lbl6468, @lbl6469+@lbl6468+ dbgloc 273+ %t145 =w copy 1+ %t146 =w copy %t145+ %t147 =w extub %t146+ storew %t147, %t142+ jmp @lbl6469+@lbl6469+ dbgloc 275+ %t148 =l loadl %t53+ %t150 =w loadw %t142+ %t149 =l extsw %t150+ %t151 =l call $blob__build_node_body(l %t148, l %t137, w %t149)+ %t152 =l call $malloc(l 24)+ call $memset(l %t152, w 0, l 24)+ call $memcpy(l %t152, l %t151, l 24)+ storel %t152, %t153+ call $__sx_dbg_keep(l %t153)+ dbgvar "b", "buf.Buf", %t153, 8, 5, 275+ dbgloc 276+ %t154 =l loadl %t153+ %t155 =l call $buf__Buf__view(l %t154)+ storel %t155, %t156+ call $__sx_dbg_keep(l %t156)+ dbgvar "body", "bytes.Bytes", %t156, 8, 5, 276+ dbgloc 277+ %t157 =l copy 2+ %t159 =w copy %t157+ %t158 =l call $objid__object_id(w %t159, l %t155)+ storel %t158, %t160+ call $__sx_dbg_keep(l %t160)+ dbgvar "nid", "objid.Id", %t160, 8, 5, 277+ dbgloc 278+ %t161 =l call $bytes__Bytes__dup(l %t155)+ storel %t161, %t162+ call $__sx_dbg_keep(l %t162)+ dbgvar "owned", "bytes.Bytes", %t162, 8, 5, 278+ dbgloc 279+ %t163 =l copy 2+ %t165 =w copy %t163+ %t164 =l call $raw__raw(w %t165, l %t161)+ storel %t164, %t166+ call $__sx_dbg_keep(l %t166)+ dbgvar "ro", "ref raw.RawObject", %t166, 8, 7, 279+ dbgloc 280+ %t167 =l loadl %t158+ %t168 =l loadl %t166+ %t169 =l add %t168, 17+ storel %t167, %t169+ dbgloc 281+ %t171 =l call $sxqbe_list_ensure(l %t3)+ %t172 =l loadl %t166+ %t173 =l add %t171, 8+ %t174 =l add %t171, 16+ %t175 =l loadl %t173+ %t176 =l loadl %t174+ %t178 =l add %t175, 1+ %t177 =w call $sxqbe_list_grow(l %t171, l %t178)+ %t179 =l call $sxqbe_list_buf(l %t171)+ %t180 =l mul %t175, 8+ %t181 =l add %t179, %t180+ storel %t172, %t181+ %t182 =l add %t175, 1+ storel %t182, %t173+ %t170 =l copy 0+ dbgloc 282+ %t184 =l call $sxqbe_list_ensure(l %t126)+ %t185 =l loadl %t53+ %t186 =l call $blob__sum_group(l %t185, l %t137)+ %t187 =l call $blob__new_node(l %t158, l %t186)+ %t188 =l add %t184, 8+ %t189 =l add %t184, 16+ %t190 =l loadl %t188+ %t191 =l loadl %t189+ %t193 =l add %t190, 1+ %t192 =w call $sxqbe_list_grow(l %t184, l %t193)+ %t194 =l call $sxqbe_list_buf(l %t184)+ %t195 =l mul %t190, 8+ %t196 =l add %t194, %t195+ storel %t187, %t196+ %t197 =l add %t190, 1+ storel %t197, %t188+ %t183 =l copy 0+ dbgloc 283+ storel %t161, %t129+ dbgloc 284+ %t198 =l loadl %t153+ %t199 =w call $buf__Buf__free(l %t198)+@lbl6467+ %t200 =l add %t132, 1+ storel %t200, %t130+ jmp @lbl6464+@lbl6466+ dbgloc 286+ %t201 =w call $blob__free_groups(l %t123)+ dbgloc 287+ %t202 =l loadl %t53+ %t203 =w call $blob__free_nodes(l %t202)+ dbgloc 288+ %t205 =l loadl %t126+ %t206 =l call $sxqbe_list_len(l %t205)+ %t207 =l copy 1+ %t208 =w ceql %t206, %t207+ jnz %t208, @lbl6471, @lbl6472+@lbl6471+ dbgloc 289+ %t209 =l loadl %t126+ %t210 =l copy 0+ %t211 =l call $blob__node_at(l %t209, l %t210)+ storel %t211, %t212+ call $__sx_dbg_keep(l %t212)+ dbgvar "only", "ref NodeRef", %t212, 8, 7, 289+ dbgloc 290+ %t213 =l loadl %t211+ %t214 =l call $objid__id(l %t213)+ storel %t214, %t114+ dbgloc 291+ %t215 =l loadl %t129+ storel %t215, %t117+ dbgloc 292+ %t216 =l loadl %t126+ %t217 =w call $blob__free_nodes(l %t216)+ dbgloc 293+ jmp @lbl6463+@lbl6472+ dbgloc 295+ %t218 =l loadl %t126+ storel %t218, %t53+ dbgloc 296+ %t219 =l copy 0+ %t220 =w copy %t219+ %t221 =w extub %t220+ storew %t221, %t121+ jmp @lbl6462+@lbl6462+ jmp @lbl6460+@lbl6463+ dbgloc 299+ %t222 =l loadl %t114+ %t223 =l loadl %t222+ %t224 =l loadl %t117+ %t225 =l loadl %t3+ %t226 =l call $blob__new_build(l %t223, l %t224, l %t225)+ ret %t226+}++dbgfile "src/object/conflict.sx"+data $conflict__VALUE_ABSENT = { l 0 }+export function l $conflict__value_absent() {+@start+ %t3 =l alloc8 8+ dbgloc 23+ dbgloc 24+ %t1 =l copy 9+ %t0 =l call $malloc(l %t1)+ %t2 =l copy %t0+ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "v", "ref ConflictValue", %t3, 8, 7, 24+ dbgloc 25+ %t4 =l copy 0+ %t5 =w copy %t4+ %t6 =l loadl %t3+ storeb %t5, %t6+ dbgloc 26+ %t7 =l call $objid__id_none()+ %t8 =l loadl %t3+ %t9 =l add %t8, 1+ call $memcpy(l %t9, l %t7, l 8)+ dbgloc 27+ %t10 =l loadl %t3+ ret %t10+}++export function l $conflict__value(w %kind, l %target) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t5 =l alloc8 8+ dbgloc 30+ storew %kind, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "kind", "u8", %t0, 1, 7, 30+ storel %target, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "target", "objid.Id", %t1, 8, 5, 30+ dbgloc 31+ %t3 =l copy 9+ %t2 =l call $malloc(l %t3)+ %t4 =l copy %t2+ storel %t4, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "v", "ref ConflictValue", %t5, 8, 7, 31+ dbgloc 32+ %t6 =l loadl %t5+ storeb %kind, %t6+ dbgloc 33+ %t7 =l loadl %t5+ %t8 =l add %t7, 1+ call $memcpy(l %t8, l %target, l 8)+ dbgloc 34+ %t9 =l loadl %t5+ ret %t9+}++export function w $conflict__ConflictValue__eql(l %a, l %b) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 37+ storel %a, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "a", "ConflictValue", %t0, 8, 5, 37+ storel %b, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "b", "ref ConflictValue", %t1, 8, 7, 37+ dbgloc 38+ %t2 =l loadub %a+ %t3 =l extsw %t2+ %t4 =l loadub %b+ %t5 =l extsw %t4+ %t6 =w cnew %t3, %t5+ jnz %t6, @lbl6474, @lbl6475+@lbl6474+ dbgloc 39+ %t7 =l copy 0+ ret %t7+@lbl6475+ dbgloc 41+ %t8 =l loadub %a+ %t9 =w copy 0+ %t10 =w ceqw %t8, %t9+ jnz %t10, @lbl6477, @lbl6478+@lbl6477+ dbgloc 42+ %t11 =l copy 1+ ret %t11+@lbl6478+ dbgloc 44+ %t12 =l add %a, 1+ %t13 =l add %b, 1+ %t14 =w call $objid__Id__eql(l %t12, l %t13)+ ret %t14+}++function w $conflict__value_kind_valid(w %k) {+@start+ %t0 =l alloc8 8+ %t3 =l alloc4 1+ %t7 =l alloc4 1+ dbgloc 47+ storew %k, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "k", "u8", %t0, 1, 7, 47+ dbgloc 48+ %t1 =w copy 0+ %t2 =w ceqw %k, %t1+ storew %t2, %t3+ jnz %t2, @lbl6481, @lbl6480+@lbl6480+ %t4 =w copy 1+ %t6 =w csltw %k, %t4+ %t5 =w ceqw %t6, 0+ storew %t5, %t7+ jnz %t5, @lbl6482, @lbl6483+@lbl6482+ %t8 =w copy 6+ %t9 =w cslew %k, %t8+ storew %t9, %t7+ jmp @lbl6483+@lbl6483+ %t10 =w loadw %t7+ storew %t10, %t3+ jmp @lbl6481+@lbl6481+ %t11 =w loadw %t3+ ret %t11+}++function l $conflict__read_value(l %__ret, l %r) {+@start+ %t0 =l alloc8 8+ %t3 =l alloc8 8+ %t6 =l alloc8 16+ %t14 =l alloc8 8+ %t17 =l alloc8 16+ %t23 =l alloc8 16+ %t28 =l alloc8 16+ %t33 =l alloc8 8+ %t34 =l alloc8 16+ dbgloc 51+ storel %r, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "r", "reader.Reader", %t0, 8, 5, 51+ dbgloc 52+ %t1 =l loadl %t0+ %t2 =l call $reader__Reader__offset(l %t1)+ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "at", "usize", %t3, 8, 5, 52+ dbgloc 53+ %t4 =l loadl %t0+ %t5 =l call $reader__Reader__read_u8(l %t6, l %t4)+ %t7 =l loadl %t6+ %t8 =w ceql %t7, 0+ jnz %t8, @lbl6484, @lbl6485+@lbl6485+ call $memcpy(l %__ret, l %t6, l 16)+ ret %__ret+@lbl6484+ %t10 =l add %t6, 8+ %t9 =w loadw %t10+ %t11 =w copy %t9+ %t12 =w copy %t11+ %t13 =w extub %t12+ storew %t13, %t14+ call $__sx_dbg_keep(l %t14)+ dbgvar "kind", "u8", %t14, 1, 7, 53+ dbgloc 54+ %t15 =w call $conflict__value_kind_valid(w %t13)+ %t16 =w ceqw %t15, 0+ jnz %t16, @lbl6486, @lbl6487+@lbl6486+ dbgloc 55+ call $memset(l %t17, w 0, l 16)+ storel 1, %t17+ %t18 =l copy 3+ %t19 =l call $derr__fail(l %t18, l %t2)+ %t20 =l add %t17, 8+ storel %t19, %t20+ call $memcpy(l %__ret, l %t17, l 16)+ ret %__ret+@lbl6487+ dbgloc 57+ %t21 =w copy 0+ %t22 =w ceqw %t13, %t21+ jnz %t22, @lbl6489, @lbl6490+@lbl6489+ dbgloc 58+ call $memset(l %t23, w 0, l 16)+ storel 0, %t23+ %t24 =l call $conflict__value_absent()+ %t25 =l add %t23, 8+ storel %t24, %t25+ call $memcpy(l %__ret, l %t23, l 16)+ ret %__ret+@lbl6490+ dbgloc 60+ %t26 =l loadl %t0+ %t27 =l call $reader__Reader__read_id(l %t28, l %t26)+ %t29 =l loadl %t28+ %t30 =w ceql %t29, 0+ jnz %t30, @lbl6492, @lbl6493+@lbl6493+ call $memcpy(l %__ret, l %t28, l 16)+ ret %__ret+@lbl6492+ %t32 =l add %t28, 8+ %t31 =l loadl %t32+ storel %t31, %t33+ call $__sx_dbg_keep(l %t33)+ dbgvar "target", "ref u8", %t33, 8, 7, 60+ dbgloc 61+ call $memset(l %t34, w 0, l 16)+ storel 0, %t34+ %t35 =l call $objid__id(l %t31)+ %t36 =l call $conflict__value(w %t13, l %t35)+ %t37 =l add %t34, 8+ storel %t36, %t37+ call $memcpy(l %__ret, l %t34, l 16)+ ret %__ret+}++function l $conflict__read_values(l %__ret, l %r, l %max) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t4 =l alloc8 16+ %t9 =l alloc8 8+ %t11 =l alloc8 8+ %t13 =l alloc8 8+ %t20 =l alloc8 16+ %t37 =l alloc8 16+ dbgloc 64+ storel %r, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "r", "reader.Reader", %t0, 8, 5, 64+ storel %max, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "max", "usize", %t1, 8, 5, 64+ dbgloc 68+ %t2 =l loadl %t0+ %t3 =l call $reader__Reader__read_list_len(l %t4, l %t2, l %max)+ %t5 =l loadl %t4+ %t6 =w ceql %t5, 0+ jnz %t6, @lbl6494, @lbl6495+@lbl6495+ call $memcpy(l %__ret, l %t4, l 16)+ ret %__ret+@lbl6494+ %t8 =l add %t4, 8+ %t7 =l loadl %t8+ storel %t7, %t9+ call $__sx_dbg_keep(l %t9)+ dbgvar "n", "usize", %t9, 8, 5, 68+ dbgloc 69+ %t10 =l call $lists__new__GENMONO__ref_ConflictValue()++ storel %t10, %t11+ call $__sx_dbg_keep(l %t11)+ dbgvar "out", "list[ref ConflictValue]", %t11, 8, 5, 69+ dbgloc 70+ %t12 =l copy 0+ storel %t12, %t13+ call $__sx_dbg_keep(l %t13)+ dbgvar "i", "usize", %t13, 8, 5, 70+ dbgloc 71+ jmp @lbl6496+@lbl6496+ %t14 =l loadl %t13+ %t15 =w csltl %t14, %t7+ jnz %t15, @lbl6497, @lbl6499+@lbl6497+ dbgloc 72+ %t17 =l call $sxqbe_list_ensure(l %t11)+ %t18 =l loadl %t0+ %t19 =l call $conflict__read_value(l %t20, l %t18)+ %t21 =l loadl %t20+ %t22 =w ceql %t21, 0+ jnz %t22, @lbl6500, @lbl6501+@lbl6501+ call $memcpy(l %__ret, l %t20, l 16)+ ret %__ret+@lbl6500+ %t24 =l add %t20, 8+ %t23 =l loadl %t24+ %t25 =l add %t17, 8+ %t26 =l add %t17, 16+ %t27 =l loadl %t25+ %t28 =l loadl %t26+ %t30 =l add %t27, 1+ %t29 =w call $sxqbe_list_grow(l %t17, l %t30)+ %t31 =l call $sxqbe_list_buf(l %t17)+ %t32 =l mul %t27, 8+ %t33 =l add %t31, %t32+ storel %t23, %t33+ %t34 =l add %t27, 1+ storel %t34, %t25+ %t16 =l copy 0+ dbgloc 73+ %t35 =l loadl %t13+ %t36 =l add %t35, 1+ storel %t36, %t13+ jmp @lbl6498+@lbl6498+ jmp @lbl6496+@lbl6499+ dbgloc 75+ call $memset(l %t37, w 0, l 16)+ storel 0, %t37+ %t38 =l loadl %t11+ %t39 =l add %t37, 8+ storel %t38, %t39+ call $memcpy(l %__ret, l %t37, l 16)+ ret %__ret+}++function w $conflict__contains(l %vals, l %v) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ dbgloc 78+ storel %vals, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "vals", "list[ref ConflictValue]", %t0, 8, 5, 78+ storel %v, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "v", "ref ConflictValue", %t1, 8, 7, 78+ dbgloc 79+ storel 0, %t2+ %t3 =l call $sxqbe_list_len(l %vals)+@lbl6502+ %t4 =l loadl %t2+ %t5 =w csltl %t4, %t3+ jnz %t5, @lbl6503, @lbl6504+@lbl6503+ %t6 =l call $sxqbe_list_buf(l %vals)+ %t7 =l mul %t4, 8+ %t8 =l add %t6, %t7+ %t9 =l loadl %t8+ dbgloc 80+ %t10 =w call $conflict__ConflictValue__eql(l %t9, l %v)+ jnz %t10, @lbl6506, @lbl6507+@lbl6506+ dbgloc 81+ %t11 =l copy 1+ ret %t11+@lbl6507+@lbl6505+ %t12 =l add %t4, 1+ storel %t12, %t2+ jmp @lbl6502+@lbl6504+ dbgloc 84+ %t13 =l copy 0+ ret %t13+}++function w $conflict__all_same(l %vals) {+@start+ %t0 =l alloc8 8+ %t7 =l alloc8 16+ %t15 =l alloc8 8+ %t20 =l alloc8 8+ dbgloc 87+ storel %vals, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "vals", "list[ref ConflictValue]", %t0, 8, 5, 87+ dbgloc 88+ %t2 =l call $sxqbe_list_len(l %vals)+ %t3 =l copy 1+ %t4 =w cslel %t2, %t3+ jnz %t4, @lbl6509, @lbl6510+@lbl6509+ dbgloc 89+ %t5 =l copy 1+ ret %t5+@lbl6510+ dbgloc 91+ storel 0, %t7+ %t8 =l copy 0+ %t9 =w call $sxqbe_list_valid(l %vals, l %t8)+ jnz %t9, @lbl6512, @lbl6513+@lbl6512+ %t10 =l call $sxqbe_list_buf(l %vals)+ %t11 =l mul %t8, 8+ %t12 =l add %t10, %t11+ %t13 =l loadl %t12+ %t14 =l add %t7, 8+ storel %t13, %t14+ storel 1, %t7+ jmp @lbl6514+@lbl6513+ jmp @lbl6514+@lbl6514+ storel %t7, %t15+ call $__sx_dbg_keep(l %t15)+ dbgvar "first", "option[ref ConflictValue]", %t15, 8, 5, 91+ dbgloc 92+ %t16 =l loadl %t7+ %t17 =w cnel %t16, 0+ jnz %t17, @lbl6515, @lbl6516+@lbl6515+ %t19 =l add %t7, 8+ %t18 =l loadl %t19+ dbgloc 93+ storel 0, %t20+ %t21 =l call $sxqbe_list_len(l %vals)+@lbl6518+ %t22 =l loadl %t20+ %t23 =w csltl %t22, %t21+ jnz %t23, @lbl6519, @lbl6520+@lbl6519+ %t24 =l call $sxqbe_list_buf(l %vals)+ %t25 =l mul %t22, 8+ %t26 =l add %t24, %t25+ %t27 =l loadl %t26+ dbgloc 94+ %t28 =w call $conflict__ConflictValue__eql(l %t18, l %t27)+ %t29 =w ceqw %t28, 0+ jnz %t29, @lbl6522, @lbl6523+@lbl6522+ dbgloc 95+ %t30 =l copy 0+ ret %t30+@lbl6523+@lbl6521+ %t31 =l add %t22, 1+ storel %t31, %t20+ jmp @lbl6518+@lbl6520+ dbgloc 98+ %t32 =l copy 1+ ret %t32+@lbl6516+ jmp @lbl6517+@lbl6517+ dbgloc 100+ %t33 =l copy 1+ ret %t33+}++export function l $conflict__decode(l %__ret, l %body) {+@start+ %t0 =l alloc8 8+ %t6 =l alloc8 8+ %t10 =l alloc8 8+ %t14 =l alloc8 16+ %t23 =l alloc8 16+ %t32 =l alloc8 8+ %t35 =l alloc8 16+ %t47 =l alloc8 16+ %t63 =l alloc8 16+ %t79 =l alloc8 16+ %t85 =l alloc8 8+ %t97 =l alloc8 16+ %t105 =l alloc8 16+ %t109 =l alloc8 16+ dbgloc 103+ storel %body, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "body", "bytes.Bytes", %t0, 8, 5, 103+ dbgloc 104+ %t1 =l loadl %body+ %t3 =l add %body, 8+ %t2 =l loadl %t3+ %t4 =l call $reader__new(l %t1, l %t2)+ %t5 =l call $malloc(l 24)+ call $memset(l %t5, w 0, l 24)+ call $memcpy(l %t5, l %t4, l 24)+ storel %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "r", "reader.Reader", %t6, 8, 5, 104+ dbgloc 105+ %t8 =l copy 16+ %t7 =l call $malloc(l %t8)+ %t9 =l copy %t7+ storel %t9, %t10+ call $__sx_dbg_keep(l %t10)+ dbgvar "c", "ref Conflict", %t10, 8, 7, 105+ dbgloc 106+ %t11 =l loadl %t6+ %t12 =l copy 64+ %t13 =l call $conflict__read_values(l %t14, l %t11, l %t12)+ %t15 =l loadl %t14+ %t16 =w ceql %t15, 0+ jnz %t16, @lbl6525, @lbl6526+@lbl6526+ call $memcpy(l %__ret, l %t14, l 16)+ ret %__ret+@lbl6525+ %t18 =l add %t14, 8+ %t17 =l loadl %t18+ %t19 =l loadl %t10+ storel %t17, %t19+ dbgloc 107+ %t20 =l loadl %t6+ %t21 =l copy 64+ %t22 =l call $conflict__read_values(l %t23, l %t20, l %t21)+ %t24 =l loadl %t23+ %t25 =w ceql %t24, 0+ jnz %t25, @lbl6527, @lbl6528+@lbl6528+ call $memcpy(l %__ret, l %t23, l 16)+ ret %__ret+@lbl6527+ %t27 =l add %t23, 8+ %t26 =l loadl %t27+ %t28 =l loadl %t10+ %t29 =l add %t28, 8+ storel %t26, %t29+ dbgloc 108+ %t30 =l loadl %t6+ %t31 =l call $reader__Reader__offset(l %t30)+ storel %t31, %t32+ call $__sx_dbg_keep(l %t32)+ dbgvar "at", "usize", %t32, 8, 5, 108+ dbgloc 109+ %t33 =l loadl %t6+ %t34 =l call $reader__Reader__finish(l %t35, l %t33)+ %t36 =l loadl %t35+ %t37 =w ceql %t36, 0+ jnz %t37, @lbl6529, @lbl6530+@lbl6530+ call $memcpy(l %__ret, l %t35, l 16)+ ret %__ret+@lbl6529+ %t39 =l add %t35, 8+ %t38 =l loadl %t39+ dbgloc 111+ %t41 =l loadl %t10+ %t42 =l add %t41, 8+ %t43 =l loadl %t42+ %t44 =l call $sxqbe_list_len(l %t43)+ %t45 =l copy 0+ %t46 =w ceql %t44, %t45+ jnz %t46, @lbl6531, @lbl6532+@lbl6531+ dbgloc 112+ call $memset(l %t47, w 0, l 16)+ storel 1, %t47+ %t48 =l copy 3+ %t49 =l call $derr__fail(l %t48, l %t31)+ %t50 =l add %t47, 8+ storel %t49, %t50+ call $memcpy(l %__ret, l %t47, l 16)+ ret %__ret+@lbl6532+ dbgloc 114+ %t52 =l loadl %t10+ %t53 =l loadl %t52+ %t54 =l call $sxqbe_list_len(l %t53)+ %t56 =l loadl %t10+ %t57 =l add %t56, 8+ %t58 =l loadl %t57+ %t59 =l call $sxqbe_list_len(l %t58)+ %t60 =l copy 1+ %t61 =l add %t59, %t60+ %t62 =w cnel %t54, %t61+ jnz %t62, @lbl6534, @lbl6535+@lbl6534+ dbgloc 115+ call $memset(l %t63, w 0, l 16)+ storel 1, %t63+ %t64 =l copy 3+ %t65 =l call $derr__fail(l %t64, l %t31)+ %t66 =l add %t63, 8+ storel %t65, %t66+ call $memcpy(l %__ret, l %t63, l 16)+ ret %__ret+@lbl6535+ dbgloc 117+ %t68 =l loadl %t10+ %t69 =l loadl %t68+ %t70 =l call $sxqbe_list_len(l %t69)+ %t72 =l loadl %t10+ %t73 =l add %t72, 8+ %t74 =l loadl %t73+ %t75 =l call $sxqbe_list_len(l %t74)+ %t76 =l add %t70, %t75+ %t77 =l copy 64+ %t78 =w csgtl %t76, %t77+ jnz %t78, @lbl6537, @lbl6538+@lbl6537+ dbgloc 118+ call $memset(l %t79, w 0, l 16)+ storel 1, %t79+ %t80 =l copy 6+ %t81 =l call $derr__fail(l %t80, l %t31)+ %t82 =l add %t79, 8+ storel %t81, %t82+ call $memcpy(l %__ret, l %t79, l 16)+ ret %__ret+@lbl6538+ dbgloc 120+ %t83 =l loadl %t10+ %t84 =l loadl %t83+ storel 0, %t85+ %t86 =l call $sxqbe_list_len(l %t84)+@lbl6540+ %t87 =l loadl %t85+ %t88 =w csltl %t87, %t86+ jnz %t88, @lbl6541, @lbl6542+@lbl6541+ %t89 =l call $sxqbe_list_buf(l %t84)+ %t90 =l mul %t87, 8+ %t91 =l add %t89, %t90+ %t92 =l loadl %t91+ dbgloc 121+ %t93 =l loadl %t10+ %t95 =l add %t93, 8+ %t94 =l loadl %t95+ %t96 =w call $conflict__contains(l %t94, l %t92)+ jnz %t96, @lbl6544, @lbl6545+@lbl6544+ dbgloc 122+ call $memset(l %t97, w 0, l 16)+ storel 1, %t97+ %t98 =l copy 3+ %t99 =l call $derr__fail(l %t98, l %t31)+ %t100 =l add %t97, 8+ storel %t99, %t100+ call $memcpy(l %__ret, l %t97, l 16)+ ret %__ret+@lbl6545+@lbl6543+ %t101 =l add %t87, 1+ storel %t101, %t85+ jmp @lbl6540+@lbl6542+ dbgloc 125+ %t102 =l loadl %t10+ %t103 =l loadl %t102+ %t104 =w call $conflict__all_same(l %t103)+ jnz %t104, @lbl6547, @lbl6548+@lbl6547+ dbgloc 126+ call $memset(l %t105, w 0, l 16)+ storel 1, %t105+ %t106 =l copy 3+ %t107 =l call $derr__fail(l %t106, l %t31)+ %t108 =l add %t105, 8+ storel %t107, %t108+ call $memcpy(l %__ret, l %t105, l 16)+ ret %__ret+@lbl6548+ dbgloc 128+ call $memset(l %t109, w 0, l 16)+ storel 0, %t109+ %t110 =l loadl %t10+ %t111 =l add %t109, 8+ storel %t110, %t111+ call $memcpy(l %__ret, l %t109, l 16)+ ret %__ret+}++export function l $conflict__encode(l %adds, l %removes) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t13 =l alloc8 8+ %t19 =l alloc8 8+ %t43 =l alloc8 8+ %t65 =l alloc8 8+ dbgloc 131+ storel %adds, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "adds", "list[ref ConflictValue]", %t0, 8, 5, 131+ storel %removes, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "removes", "list[ref ConflictValue]", %t1, 8, 5, 131+ dbgloc 135+ %t3 =l call $sxqbe_list_len(l %adds)+ %t5 =l call $sxqbe_list_len(l %removes)+ %t6 =l add %t3, %t5+ %t7 =l copy 40+ %t8 =l mul %t6, %t7+ %t9 =l copy 16+ %t10 =l add %t8, %t9+ %t11 =l call $buf__new(l %t10)+ %t12 =l call $malloc(l 24)+ call $memset(l %t12, w 0, l 24)+ call $memcpy(l %t12, l %t11, l 24)+ storel %t12, %t13+ call $__sx_dbg_keep(l %t13)+ dbgvar "b", "buf.Buf", %t13, 8, 5, 135+ dbgloc 136+ %t14 =l loadl %t13+ %t16 =l call $sxqbe_list_len(l %adds)+ %t17 =l copy %t16+ %t18 =w call $buf__Buf__put_varint(l %t14, l %t17)+ dbgloc 137+ storel 0, %t19+ %t20 =l call $sxqbe_list_len(l %adds)+@lbl6550+ %t21 =l loadl %t19+ %t22 =w csltl %t21, %t20+ jnz %t22, @lbl6551, @lbl6552+@lbl6551+ %t23 =l call $sxqbe_list_buf(l %adds)+ %t24 =l mul %t21, 8+ %t25 =l add %t23, %t24+ %t26 =l loadl %t25+ dbgloc 138+ %t27 =l loadl %t13+ %t28 =l loadub %t26+ %t29 =w call $buf__Buf__put_u8(l %t27, w %t28)+ dbgloc 139+ %t30 =l loadub %t26+ %t31 =w copy 0+ %t32 =w cnew %t30, %t31+ jnz %t32, @lbl6554, @lbl6555+@lbl6554+ dbgloc 140+ %t33 =l loadl %t13+ %t34 =l add %t26, 1+ %t35 =l loadl %t34+ %t36 =w call $buf__Buf__put_id(l %t33, l %t35)+ jmp @lbl6555+@lbl6555+@lbl6553+ %t37 =l add %t21, 1+ storel %t37, %t19+ jmp @lbl6550+@lbl6552+ dbgloc 143+ %t38 =l loadl %t13+ %t40 =l call $sxqbe_list_len(l %removes)+ %t41 =l copy %t40+ %t42 =w call $buf__Buf__put_varint(l %t38, l %t41)+ dbgloc 144+ storel 0, %t43+ %t44 =l call $sxqbe_list_len(l %removes)+@lbl6557+ %t45 =l loadl %t43+ %t46 =w csltl %t45, %t44+ jnz %t46, @lbl6558, @lbl6559+@lbl6558+ %t47 =l call $sxqbe_list_buf(l %removes)+ %t48 =l mul %t45, 8+ %t49 =l add %t47, %t48+ %t50 =l loadl %t49+ dbgloc 145+ %t51 =l loadl %t13+ %t52 =l loadub %t50+ %t53 =w call $buf__Buf__put_u8(l %t51, w %t52)+ dbgloc 146+ %t54 =l loadub %t50+ %t55 =w copy 0+ %t56 =w cnew %t54, %t55+ jnz %t56, @lbl6561, @lbl6562+@lbl6561+ dbgloc 147+ %t57 =l loadl %t13+ %t58 =l add %t50, 1+ %t59 =l loadl %t58+ %t60 =w call $buf__Buf__put_id(l %t57, l %t59)+ jmp @lbl6562+@lbl6562+@lbl6560+ %t61 =l add %t45, 1+ storel %t61, %t43+ jmp @lbl6557+@lbl6559+ dbgloc 150+ %t62 =l loadl %t13+ %t63 =l call $buf__Buf__view(l %t62)+ %t64 =l call $bytes__Bytes__dup(l %t63)+ storel %t64, %t65+ call $__sx_dbg_keep(l %t65)+ dbgvar "out", "bytes.Bytes", %t65, 8, 5, 150+ dbgloc 151+ %t66 =l loadl %t13+ %t67 =w call $buf__Buf__free(l %t66)+ dbgloc 152+ ret %t64+}++export function w $conflict__free_conflict(l %c) {+@start+ %t0 =l alloc8 8+ %t2 =l alloc8 8+ %t11 =l alloc8 8+ %t17 =l alloc8 8+ %t26 =l alloc8 8+ %t36 =l alloc8 8+ dbgloc 155+ storel %c, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "c", "ref Conflict", %t0, 8, 7, 155+ dbgloc 156+ %t1 =l loadl %c+ storel 0, %t2+ %t3 =l call $sxqbe_list_len(l %t1)+@lbl6564+ %t4 =l loadl %t2+ %t5 =w csltl %t4, %t3+ jnz %t5, @lbl6565, @lbl6566+@lbl6565+ %t6 =l call $sxqbe_list_buf(l %t1)+ %t7 =l mul %t4, 8+ %t8 =l add %t6, %t7+ %t9 =l loadl %t8+ dbgloc 157+ %t10 =l copy %t9+ storel %t10, %t11+ call $__sx_dbg_keep(l %t11)+ dbgvar "p", "ref ", %t11, 8, 7, 157+ dbgloc 158+ %t13 =l loadl %t11+ call $free(l %t13)+ %t12 =l copy 0+@lbl6567+ %t14 =l add %t4, 1+ storel %t14, %t2+ jmp @lbl6564+@lbl6566+ dbgloc 160+ %t16 =l add %c, 8+ %t15 =l loadl %t16+ storel 0, %t17+ %t18 =l call $sxqbe_list_len(l %t15)+@lbl6568+ %t19 =l loadl %t17+ %t20 =w csltl %t19, %t18+ jnz %t20, @lbl6569, @lbl6570+@lbl6569+ %t21 =l call $sxqbe_list_buf(l %t15)+ %t22 =l mul %t19, 8+ %t23 =l add %t21, %t22+ %t24 =l loadl %t23+ dbgloc 161+ %t25 =l copy %t24+ storel %t25, %t26+ call $__sx_dbg_keep(l %t26)+ dbgvar "p", "ref ", %t26, 8, 7, 161+ dbgloc 162+ %t28 =l loadl %t26+ call $free(l %t28)+ %t27 =l copy 0+@lbl6571+ %t29 =l add %t19, 1+ storel %t29, %t17+ jmp @lbl6568+@lbl6570+ dbgloc 164+ %t31 =l loadl %c+ call $sxqbe_list_free(l %t31)+ %t30 =l copy 0+ dbgloc 165+ %t34 =l add %c, 8+ %t33 =l loadl %t34+ call $sxqbe_list_free(l %t33)+ %t32 =l copy 0+ dbgloc 166+ %t35 =l copy %c+ storel %t35, %t36+ call $__sx_dbg_keep(l %t36)+ dbgvar "p2", "ref ", %t36, 8, 7, 166+ dbgloc 167+ %t38 =l loadl %t36+ call $free(l %t38)+ %t37 =l copy 0+ ret 0+}++dbgfile "src/core/repoconfig.sx"+function l $repoconfig__trim(l %b) {+@start+ %t0 =l alloc8 8+ %t2 =l alloc8 8+ %t5 =l alloc8 8+ %t13 =l alloc8 8+ %t16 =l alloc4 1+ %t20 =l alloc4 1+ %t24 =l alloc4 1+ %t39 =l alloc8 8+ %t42 =l alloc4 1+ %t46 =l alloc4 1+ %t50 =l alloc4 1+ dbgloc 13+ storel %b, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "b", "bytes.Bytes", %t0, 8, 5, 13+ dbgloc 14+ %t1 =l copy 0+ storel %t1, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "start", "usize", %t2, 8, 5, 14+ dbgloc 15+ %t4 =l add %b, 8+ %t3 =l loadl %t4+ storel %t3, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "end", "usize", %t5, 8, 5, 15+ dbgloc 16+ jmp @lbl6572+@lbl6572+ %t6 =l loadl %t2+ %t7 =l loadl %t5+ %t8 =w csltl %t6, %t7+ jnz %t8, @lbl6573, @lbl6575+@lbl6573+ dbgloc 17+ %t9 =l loadl %t2+ %t10 =w call $bytes__Bytes__at(l %b, l %t9)+ %t11 =w copy %t10+ %t12 =w extub %t11+ storew %t12, %t13+ call $__sx_dbg_keep(l %t13)+ dbgvar "c", "u8", %t13, 1, 7, 17+ dbgloc 18+ %t14 =w copy 32+ %t15 =w cnew %t12, %t14+ storew %t15, %t16+ jnz %t15, @lbl6579, @lbl6580+@lbl6579+ %t17 =w copy 9+ %t18 =w cnew %t12, %t17+ storew %t18, %t16+ jmp @lbl6580+@lbl6580+ %t19 =w loadw %t16+ storew %t19, %t20+ jnz %t19, @lbl6581, @lbl6582+@lbl6581+ %t21 =w copy 13+ %t22 =w cnew %t12, %t21+ storew %t22, %t20+ jmp @lbl6582+@lbl6582+ %t23 =w loadw %t20+ storew %t23, %t24+ jnz %t23, @lbl6583, @lbl6584+@lbl6583+ %t25 =w copy 10+ %t26 =w cnew %t12, %t25+ storew %t26, %t24+ jmp @lbl6584+@lbl6584+ %t27 =w loadw %t24+ jnz %t27, @lbl6576, @lbl6577+@lbl6576+ dbgloc 19+ jmp @lbl6575+@lbl6577+ dbgloc 21+ %t28 =l loadl %t2+ %t29 =l add %t28, 1+ storel %t29, %t2+ jmp @lbl6574+@lbl6574+ jmp @lbl6572+@lbl6575+ dbgloc 23+ jmp @lbl6585+@lbl6585+ %t30 =l loadl %t5+ %t31 =l loadl %t2+ %t32 =w csgtl %t30, %t31+ jnz %t32, @lbl6586, @lbl6588+@lbl6586+ dbgloc 24+ %t33 =l loadl %t5+ %t34 =l copy 1+ %t35 =l sub %t33, %t34+ %t36 =w call $bytes__Bytes__at(l %b, l %t35)+ %t37 =w copy %t36+ %t38 =w extub %t37+ storew %t38, %t39+ call $__sx_dbg_keep(l %t39)+ dbgvar "c2", "u8", %t39, 1, 7, 24+ dbgloc 25+ %t40 =w copy 32+ %t41 =w cnew %t38, %t40+ storew %t41, %t42+ jnz %t41, @lbl6592, @lbl6593+@lbl6592+ %t43 =w copy 9+ %t44 =w cnew %t38, %t43+ storew %t44, %t42+ jmp @lbl6593+@lbl6593+ %t45 =w loadw %t42+ storew %t45, %t46+ jnz %t45, @lbl6594, @lbl6595+@lbl6594+ %t47 =w copy 13+ %t48 =w cnew %t38, %t47+ storew %t48, %t46+ jmp @lbl6595+@lbl6595+ %t49 =w loadw %t46+ storew %t49, %t50+ jnz %t49, @lbl6596, @lbl6597+@lbl6596+ %t51 =w copy 10+ %t52 =w cnew %t38, %t51+ storew %t52, %t50+ jmp @lbl6597+@lbl6597+ %t53 =w loadw %t50+ jnz %t53, @lbl6589, @lbl6590+@lbl6589+ dbgloc 26+ jmp @lbl6588+@lbl6590+ dbgloc 28+ %t54 =l loadl %t5+ %t55 =l sub %t54, 1+ storel %t55, %t5+ jmp @lbl6587+@lbl6587+ jmp @lbl6585+@lbl6588+ dbgloc 30+ %t56 =l loadl %t2+ %t57 =l loadl %t5+ %t58 =l call $bytes__Bytes__slice(l %b, l %t56, l %t57)+ ret %t58+}++function l $repoconfig__strip_comment(l %b) {+@start+ %t0 =l alloc8 8+ %t2 =l alloc8 8+ dbgloc 33+ storel %b, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "b", "bytes.Bytes", %t0, 8, 5, 33+ dbgloc 34+ %t1 =l copy 0+ storel %t1, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "i", "usize", %t2, 8, 5, 34+ dbgloc 35+ jmp @lbl6598+@lbl6598+ %t3 =l loadl %t2+ %t5 =l add %b, 8+ %t4 =l loadl %t5+ %t6 =w csltl %t3, %t4+ jnz %t6, @lbl6599, @lbl6601+@lbl6599+ dbgloc 36+ %t7 =l loadl %t2+ %t8 =w call $bytes__Bytes__at(l %b, l %t7)+ %t9 =w copy 35+ %t10 =w ceqw %t8, %t9+ jnz %t10, @lbl6602, @lbl6603+@lbl6602+ dbgloc 37+ %t11 =l copy 0+ %t12 =l loadl %t2+ %t13 =l call $bytes__Bytes__slice(l %b, l %t11, l %t12)+ %t14 =l call $repoconfig__trim(l %t13)+ ret %t14+@lbl6603+ dbgloc 39+ %t15 =l loadl %t2+ %t16 =l add %t15, 1+ storel %t16, %t2+ jmp @lbl6600+@lbl6600+ jmp @lbl6598+@lbl6601+ dbgloc 41+ %t17 =l call $repoconfig__trim(l %b)+ ret %t17+}++export function l $repoconfig__get(l %__ret, l %repo, l %key) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t3 =l alloc8 8+ %t5 =l alloc8 16+ %t6 =l alloc8 8+ %t10 =l alloc8 8+ %t15 =l alloc8 16+ %t17 =l alloc8 8+ %t19 =l alloc8 8+ %t32 =l alloc8 8+ %t33 =l alloc4 1+ %t45 =l alloc8 8+ %t50 =l alloc4 1+ %t58 =l alloc8 8+ %t60 =l alloc8 8+ %t69 =l alloc4 1+ %t87 =l alloc8 8+ %t97 =l alloc8 8+ %t99 =l alloc8 8+ %t102 =l alloc8 16+ %t111 =l alloc8 16+ dbgloc 45+ storel %repo, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "repo", "layout.Repo", %t0, 8, 5, 45+ storel %key, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "key", "bytes.Bytes", %t1, 8, 5, 45+ dbgloc 46+ %t2 =l call $layout__config_path(l %repo)+ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "path", "str.StringView", %t3, 8, 5, 46+ dbgloc 47+ %t4 =l call $files__read_all(l %t5, l %t2)+ storel %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "data_opt", "option[bytes.Bytes]", %t6, 8, 5, 47+ dbgloc 48+ %t7 =w call $files__free_path(l %t2)+ dbgloc 49+ %t8 =l call $bytes__empty()+ %t9 =l call $malloc(l 16)+ call $memset(l %t9, w 0, l 16)+ call $memcpy(l %t9, l %t8, l 16)+ storel %t9, %t10+ call $__sx_dbg_keep(l %t10)+ dbgvar "data", "bytes.Bytes", %t10, 8, 5, 49+ dbgloc 50+ %t11 =l loadl %t5+ %t12 =w cnel %t11, 0+ jnz %t12, @lbl6605, @lbl6606+@lbl6605+ %t14 =l add %t5, 8+ %t13 =l loadl %t14+ dbgloc 52+ storel %t13, %t10+ jmp @lbl6607+@lbl6606+ dbgloc 55+ storel 0, %t15+ call $memcpy(l %__ret, l %t15, l 16)+ ret %__ret+@lbl6607+ dbgloc 58+ %t16 =l copy 0+ storel %t16, %t17+ call $__sx_dbg_keep(l %t17)+ dbgvar "pos", "usize", %t17, 8, 5, 58+ dbgloc 59+ %t18 =l copy 0+ storel %t18, %t19+ call $__sx_dbg_keep(l %t19)+ dbgvar "start", "usize", %t19, 8, 5, 59+ dbgloc 60+ jmp @lbl6608+@lbl6608+ %t20 =l loadl %t17+ %t21 =l loadl %t10+ %t23 =l add %t21, 8+ %t22 =l loadl %t23+ %t24 =w cslel %t20, %t22+ jnz %t24, @lbl6609, @lbl6611+@lbl6609+ dbgloc 61+ %t25 =l loadl %t17+ %t26 =l loadl %t10+ %t28 =l add %t26, 8+ %t27 =l loadl %t28+ %t29 =w ceql %t25, %t27+ %t30 =w copy %t29+ %t31 =w extub %t30+ storew %t31, %t32+ call $__sx_dbg_keep(l %t32)+ dbgvar "at_end", "bool", %t32, 1, 7, 61+ dbgloc 62+ storew %t31, %t33+ jnz %t31, @lbl6616, @lbl6615+@lbl6615+ %t34 =l loadl %t10+ %t35 =l loadl %t17+ %t36 =w call $bytes__Bytes__at(l %t34, l %t35)+ %t37 =w copy 10+ %t38 =w ceqw %t36, %t37+ storew %t38, %t33+ jmp @lbl6616+@lbl6616+ %t39 =w loadw %t33+ jnz %t39, @lbl6612, @lbl6613+@lbl6612+ dbgloc 63+ %t40 =l loadl %t10+ %t41 =l loadl %t19+ %t42 =l loadl %t17+ %t43 =l call $bytes__Bytes__slice(l %t40, l %t41, l %t42)+ %t44 =l call $repoconfig__trim(l %t43)+ storel %t44, %t45+ call $__sx_dbg_keep(l %t45)+ dbgvar "line", "bytes.Bytes", %t45, 8, 5, 63+ dbgloc 64+ %t47 =l add %t44, 8+ %t46 =l loadl %t47+ %t48 =l copy 0+ %t49 =w csgtl %t46, %t48+ storew %t49, %t50+ jnz %t49, @lbl6620, @lbl6621+@lbl6620+ %t51 =l copy 0+ %t52 =w call $bytes__Bytes__at(l %t44, l %t51)+ %t53 =w copy 35+ %t54 =w cnew %t52, %t53+ storew %t54, %t50+ jmp @lbl6621+@lbl6621+ %t55 =w loadw %t50+ jnz %t55, @lbl6617, @lbl6618+@lbl6617+ dbgloc 65+ %t56 =l copy 1+ %t57 =l neg %t56+ storel %t57, %t58+ call $__sx_dbg_keep(l %t58)+ dbgvar "eq", "i64", %t58, 8, 5, 65+ dbgloc 66+ %t59 =l copy 0+ storel %t59, %t60+ call $__sx_dbg_keep(l %t60)+ dbgvar "i", "usize", %t60, 8, 5, 66+ dbgloc 67+ jmp @lbl6622+@lbl6622+ %t61 =l loadl %t60+ %t63 =l add %t44, 8+ %t62 =l loadl %t63+ %t64 =w csltl %t61, %t62+ jnz %t64, @lbl6623, @lbl6625+@lbl6623+ dbgloc 68+ %t65 =l loadl %t60+ %t66 =w call $bytes__Bytes__at(l %t44, l %t65)+ %t67 =w copy 61+ %t68 =w ceqw %t66, %t67+ storew %t68, %t69+ jnz %t68, @lbl6629, @lbl6630+@lbl6629+ %t70 =l loadl %t58+ %t71 =l copy 0+ %t72 =w csltl %t70, %t71+ storew %t72, %t69+ jmp @lbl6630+@lbl6630+ %t73 =w loadw %t69+ jnz %t73, @lbl6626, @lbl6627+@lbl6626+ dbgloc 69+ %t74 =l loadl %t60+ %t75 =l copy %t74+ storel %t75, %t58+ jmp @lbl6627+@lbl6627+ dbgloc 71+ %t76 =l loadl %t60+ %t77 =l add %t76, 1+ storel %t77, %t60+ jmp @lbl6624+@lbl6624+ jmp @lbl6622+@lbl6625+ dbgloc 73+ %t78 =l loadl %t58+ %t79 =l copy 0+ %t81 =w csltl %t78, %t79+ %t80 =w ceqw %t81, 0+ jnz %t80, @lbl6631, @lbl6632+@lbl6631+ dbgloc 74+ %t82 =l copy 0+ %t83 =l loadl %t58+ %t84 =l copy %t83+ %t85 =l call $bytes__Bytes__slice(l %t44, l %t82, l %t84)+ %t86 =l call $repoconfig__trim(l %t85)+ storel %t86, %t87+ call $__sx_dbg_keep(l %t87)+ dbgvar "k", "bytes.Bytes", %t87, 8, 5, 74+ dbgloc 75+ %t88 =w call $bytes__Bytes__eql(l %t86, l %key)+ jnz %t88, @lbl6634, @lbl6635+@lbl6634+ dbgloc 76+ %t89 =l loadl %t58+ %t90 =l copy %t89+ %t91 =l copy 1+ %t92 =l add %t90, %t91+ %t94 =l add %t44, 8+ %t93 =l loadl %t94+ %t95 =l call $bytes__Bytes__slice(l %t44, l %t92, l %t93)+ %t96 =l call $repoconfig__strip_comment(l %t95)+ storel %t96, %t97+ call $__sx_dbg_keep(l %t97)+ dbgvar "v", "bytes.Bytes", %t97, 8, 5, 76+ dbgloc 79+ %t98 =l call $bytes__Bytes__dup(l %t96)+ storel %t98, %t99+ call $__sx_dbg_keep(l %t99)+ dbgvar "out", "bytes.Bytes", %t99, 8, 5, 79+ dbgloc 80+ %t100 =l loadl %t10+ %t101 =w call $files__free_buffer(l %t100)+ dbgloc 81+ call $memset(l %t102, w 0, l 16)+ storel 1, %t102+ %t103 =l add %t102, 8+ storel %t98, %t103+ call $memcpy(l %__ret, l %t102, l 16)+ ret %__ret+@lbl6635+ jmp @lbl6632+@lbl6632+ jmp @lbl6618+@lbl6618+ dbgloc 85+ %t104 =l loadl %t17+ %t105 =l copy 1+ %t106 =l add %t104, %t105+ storel %t106, %t19+ jmp @lbl6613+@lbl6613+ dbgloc 87+ %t107 =l loadl %t17+ %t108 =l add %t107, 1+ storel %t108, %t17+ jmp @lbl6610+@lbl6610+ jmp @lbl6608+@lbl6611+ dbgloc 89+ %t109 =l loadl %t10+ %t110 =w call $files__free_buffer(l %t109)+ dbgloc 90+ storel 0, %t111+ call $memcpy(l %__ret, l %t111, l 16)+ ret %__ret+}++export function w $repoconfig__free_value(l %v) {+@start+ %t0 =l alloc8 8+ dbgloc 93+ storel %v, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "v", "bytes.Bytes", %t0, 8, 5, 93+ dbgloc 94+ %t1 =w call $files__free_buffer(l %v)+ ret 0+}++function w $repoconfig__is_true(l %v) {+@start+ %t0 =l alloc8 8+ %t5 =l alloc4 1+ %t11 =l alloc4 1+ %t17 =l alloc4 1+ dbgloc 97+ storel %v, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "v", "bytes.Bytes", %t0, 8, 5, 97+ dbgloc 98+ %t1 =l copy $__str313+ %t2 =l copy 4+ %t3 =l call $bytes__bytes(l %t1, l %t2)+ %t4 =w call $bytes__Bytes__eql(l %v, l %t3)+ storew %t4, %t5+ jnz %t4, @lbl6638, @lbl6637+@lbl6637+ %t6 =l copy $__str314+ %t7 =l copy 1+ %t8 =l call $bytes__bytes(l %t6, l %t7)+ %t9 =w call $bytes__Bytes__eql(l %v, l %t8)+ storew %t9, %t5+ jmp @lbl6638+@lbl6638+ %t10 =w loadw %t5+ storew %t10, %t11+ jnz %t10, @lbl6640, @lbl6639+@lbl6639+ %t12 =l copy $__str315+ %t13 =l copy 3+ %t14 =l call $bytes__bytes(l %t12, l %t13)+ %t15 =w call $bytes__Bytes__eql(l %v, l %t14)+ storew %t15, %t11+ jmp @lbl6640+@lbl6640+ %t16 =w loadw %t11+ storew %t16, %t17+ jnz %t16, @lbl6642, @lbl6641+@lbl6641+ %t18 =l copy $__str316+ %t19 =l copy 2+ %t20 =l call $bytes__bytes(l %t18, l %t19)+ %t21 =w call $bytes__Bytes__eql(l %v, l %t20)+ storew %t21, %t17+ jmp @lbl6642+@lbl6642+ %t22 =w loadw %t17+ ret %t22+}++export function w $repoconfig__get_bool(l %repo, l %key, w %default) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t4 =l alloc8 16+ %t5 =l alloc8 8+ %t13 =l alloc8 8+ dbgloc 105+ storel %repo, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "repo", "layout.Repo", %t0, 8, 5, 105+ storel %key, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "key", "bytes.Bytes", %t1, 8, 5, 105+ storew %default, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "default", "bool", %t2, 1, 7, 105+ dbgloc 106+ %t3 =l call $repoconfig__get(l %t4, l %repo, l %key)+ storel %t4, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "v", "option[bytes.Bytes]", %t5, 8, 5, 106+ dbgloc 107+ %t6 =l loadl %t4+ %t7 =w cnel %t6, 0+ jnz %t7, @lbl6643, @lbl6644+@lbl6643+ %t9 =l add %t4, 8+ %t8 =l loadl %t9+ dbgloc 109+ %t10 =w call $repoconfig__is_true(l %t8)+ %t11 =w copy %t10+ %t12 =w extub %t11+ storew %t12, %t13+ call $__sx_dbg_keep(l %t13)+ dbgvar "out", "bool", %t13, 1, 7, 109+ dbgloc 110+ %t14 =w call $files__free_buffer(l %t8)+ dbgloc 111+ ret %t12+@lbl6644+ dbgloc 114+ ret %default+@lbl6645+ ret 0+}++export function l $repoconfig__get_text(l %__ret, l %repo, l %key) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t3 =l alloc8 16+ dbgloc 120+ storel %repo, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "repo", "layout.Repo", %t0, 8, 5, 120+ storel %key, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "key", "bytes.Bytes", %t1, 8, 5, 120+ dbgloc 121+ %t2 =l call $repoconfig__get(l %t3, l %repo, l %key)+ call $memcpy(l %__ret, l %t3, l 16)+ ret %__ret+}++export function w $repoconfig__set(l %repo, l %key, l %value) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t4 =l alloc8 8+ %t6 =l alloc8 16+ %t7 =l alloc8 8+ %t11 =l alloc8 8+ %t17 =l alloc8 8+ %t19 =l alloc8 8+ %t28 =l alloc4 1+ %t37 =l alloc8 8+ %t39 =l alloc8 8+ %t43 =l alloc8 8+ %t47 =l alloc4 1+ %t56 =l alloc8 8+ %t90 =l alloc8 8+ %t96 =l alloc8 8+ dbgloc 125+ storel %repo, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "repo", "layout.Repo", %t0, 8, 5, 125+ storel %key, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "key", "bytes.Bytes", %t1, 8, 5, 125+ storel %value, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "value", "bytes.Bytes", %t2, 8, 5, 125+ dbgloc 126+ %t3 =l call $layout__config_path(l %repo)+ storel %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "path", "str.StringView", %t4, 8, 5, 126+ dbgloc 127+ %t5 =l call $files__read_all(l %t6, l %t3)+ storel %t6, %t7+ call $__sx_dbg_keep(l %t7)+ dbgvar "data_opt", "option[bytes.Bytes]", %t7, 8, 5, 127+ dbgloc 128+ %t8 =l copy 256+ %t9 =l call $buf__new(l %t8)+ %t10 =l call $malloc(l 24)+ call $memset(l %t10, w 0, l 24)+ call $memcpy(l %t10, l %t9, l 24)+ storel %t10, %t11+ call $__sx_dbg_keep(l %t11)+ dbgvar "b", "buf.Buf", %t11, 8, 5, 128+ dbgloc 129+ %t12 =l loadl %t6+ %t13 =w cnel %t12, 0+ jnz %t13, @lbl6646, @lbl6647+@lbl6646+ %t15 =l add %t6, 8+ %t14 =l loadl %t15+ dbgloc 130+ %t16 =l copy 0+ storel %t16, %t17+ call $__sx_dbg_keep(l %t17)+ dbgvar "pos", "usize", %t17, 8, 5, 130+ dbgloc 131+ %t18 =l copy 0+ storel %t18, %t19+ call $__sx_dbg_keep(l %t19)+ dbgvar "start", "usize", %t19, 8, 5, 131+ dbgloc 132+ jmp @lbl6649+@lbl6649+ %t20 =l loadl %t17+ %t22 =l add %t14, 8+ %t21 =l loadl %t22+ %t23 =w cslel %t20, %t21+ jnz %t23, @lbl6650, @lbl6652+@lbl6650+ dbgloc 133+ %t24 =l loadl %t17+ %t26 =l add %t14, 8+ %t25 =l loadl %t26+ %t27 =w ceql %t24, %t25+ storew %t27, %t28+ jnz %t27, @lbl6657, @lbl6656+@lbl6656+ %t29 =l loadl %t17+ %t30 =w call $bytes__Bytes__at(l %t14, l %t29)+ %t31 =w copy 10+ %t32 =w ceqw %t30, %t31+ storew %t32, %t28+ jmp @lbl6657+@lbl6657+ %t33 =w loadw %t28+ jnz %t33, @lbl6653, @lbl6654+@lbl6653+ dbgloc 134+ %t34 =l loadl %t19+ %t35 =l loadl %t17+ %t36 =l call $bytes__Bytes__slice(l %t14, l %t34, l %t35)+ storel %t36, %t37+ call $__sx_dbg_keep(l %t37)+ dbgvar "line", "bytes.Bytes", %t37, 8, 5, 134+ dbgloc 135+ %t38 =l call $repoconfig__trim(l %t36)+ storel %t38, %t39+ call $__sx_dbg_keep(l %t39)+ dbgvar "t", "bytes.Bytes", %t39, 8, 5, 135+ dbgloc 136+ %t40 =l copy 61+ %t42 =w copy %t40+ %t41 =l call $repoconfig__index_of(l %t38, w %t42)+ storel %t41, %t43+ call $__sx_dbg_keep(l %t43)+ dbgvar "eq", "i64", %t43, 8, 5, 136+ dbgloc 137+ %t44 =l copy 0+ %t46 =w csltl %t41, %t44+ %t45 =w ceqw %t46, 0+ storew %t45, %t47+ jnz %t45, @lbl6658, @lbl6659+@lbl6658+ %t48 =l copy 0+ %t49 =l copy %t41+ %t50 =l call $bytes__Bytes__slice(l %t38, l %t48, l %t49)+ %t51 =l call $repoconfig__trim(l %t50)+ %t52 =w call $bytes__Bytes__eql(l %t51, l %key)+ storew %t52, %t47+ jmp @lbl6659+@lbl6659+ %t53 =w loadw %t47+ %t54 =w copy %t53+ %t55 =w extub %t54+ storew %t55, %t56+ call $__sx_dbg_keep(l %t56)+ dbgvar "is_key", "bool", %t56, 1, 7, 137+ dbgloc 141+ %t57 =w ceqw %t55, 0+ jnz %t57, @lbl6660, @lbl6661+@lbl6660+ dbgloc 142+ %t58 =l loadl %t11+ %t59 =w call $buf__Buf__put_bytes(l %t58, l %t36)+ dbgloc 143+ %t60 =l loadl %t17+ %t62 =l add %t14, 8+ %t61 =l loadl %t62+ %t63 =w csltl %t60, %t61+ jnz %t63, @lbl6663, @lbl6664+@lbl6663+ dbgloc 144+ %t64 =l loadl %t11+ %t65 =l copy 10+ %t67 =w copy %t65+ %t66 =w call $buf__Buf__put_u8(l %t64, w %t67)+ jmp @lbl6664+@lbl6664+ jmp @lbl6661+@lbl6661+ dbgloc 147+ %t68 =l loadl %t17+ %t69 =l copy 1+ %t70 =l add %t68, %t69+ storel %t70, %t19+ jmp @lbl6654+@lbl6654+ dbgloc 149+ %t71 =l loadl %t17+ %t72 =l add %t71, 1+ storel %t72, %t17+ jmp @lbl6651+@lbl6651+ jmp @lbl6649+@lbl6652+ dbgloc 151+ %t73 =w call $files__free_buffer(l %t14)+ jmp @lbl6648+@lbl6647+ jmp @lbl6648+@lbl6648+ dbgloc 153+ %t74 =l loadl %t11+ %t75 =w call $buf__Buf__put_bytes(l %t74, l %key)+ dbgloc 154+ %t76 =l loadl %t11+ %t77 =l copy $__str317+ %t78 =l copy %t77+ %t79 =l copy 3+ %t80 =w call $buf__Buf__put_raw(l %t76, l %t78, l %t79)+ dbgloc 155+ %t81 =l loadl %t11+ %t82 =w call $buf__Buf__put_bytes(l %t81, l %value)+ dbgloc 156+ %t83 =l loadl %t11+ %t84 =l copy 10+ %t86 =w copy %t84+ %t85 =w call $buf__Buf__put_u8(l %t83, w %t86)+ dbgloc 157+ %t87 =l loadl %t11+ %t88 =l call $buf__Buf__view(l %t87)+ %t89 =l call $bytes__Bytes__dup(l %t88)+ storel %t89, %t90+ call $__sx_dbg_keep(l %t90)+ dbgvar "out", "bytes.Bytes", %t90, 8, 5, 157+ dbgloc 158+ %t91 =l loadl %t11+ %t92 =w call $buf__Buf__free(l %t91)+ dbgloc 159+ %t93 =w call $files__write_all(l %t3, l %t89)+ %t94 =w copy %t93+ %t95 =w extub %t94+ storew %t95, %t96+ call $__sx_dbg_keep(l %t96)+ dbgvar "passed", "bool", %t96, 1, 7, 159+ dbgloc 160+ %t97 =w call $files__free_buffer(l %t89)+ dbgloc 161+ %t98 =w call $files__free_path(l %t3)+ dbgloc 162+ ret %t95+}++function l $repoconfig__index_of(l %b, w %needle) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t3 =l alloc8 8+ dbgloc 165+ storel %b, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "b", "bytes.Bytes", %t0, 8, 5, 165+ storew %needle, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "needle", "u8", %t1, 1, 7, 165+ dbgloc 166+ %t2 =l copy 0+ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "i", "usize", %t3, 8, 5, 166+ dbgloc 167+ jmp @lbl6666+@lbl6666+ %t4 =l loadl %t3+ %t6 =l add %b, 8+ %t5 =l loadl %t6+ %t7 =w csltl %t4, %t5+ jnz %t7, @lbl6667, @lbl6669+@lbl6667+ dbgloc 168+ %t8 =l loadl %t3+ %t9 =w call $bytes__Bytes__at(l %b, l %t8)+ %t10 =l extsw %t9+ %t11 =l extsw %needle+ %t12 =w ceqw %t10, %t11+ jnz %t12, @lbl6670, @lbl6671+@lbl6670+ dbgloc 169+ %t13 =l loadl %t3+ %t14 =l copy %t13+ ret %t14+@lbl6671+ dbgloc 171+ %t15 =l loadl %t3+ %t16 =l add %t15, 1+ storel %t16, %t3+ jmp @lbl6668+@lbl6668+ jmp @lbl6666+@lbl6669+ dbgloc 173+ %t17 =l copy 1+ %t18 =l neg %t17+ ret %t18+}++export function w $repoconfig__remove(l %repo, l %key) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t3 =l alloc8 8+ %t5 =l alloc8 16+ %t6 =l alloc8 8+ %t10 =l alloc8 8+ %t16 =l alloc8 8+ %t18 =l alloc8 8+ %t27 =l alloc4 1+ %t36 =l alloc8 8+ %t38 =l alloc8 8+ %t42 =l alloc8 8+ %t46 =l alloc4 1+ %t55 =l alloc8 8+ %t76 =l alloc8 8+ %t82 =l alloc8 8+ dbgloc 177+ storel %repo, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "repo", "layout.Repo", %t0, 8, 5, 177+ storel %key, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "key", "bytes.Bytes", %t1, 8, 5, 177+ dbgloc 178+ %t2 =l call $layout__config_path(l %repo)+ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "path", "str.StringView", %t3, 8, 5, 178+ dbgloc 179+ %t4 =l call $files__read_all(l %t5, l %t2)+ storel %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "data_opt", "option[bytes.Bytes]", %t6, 8, 5, 179+ dbgloc 180+ %t7 =l copy 256+ %t8 =l call $buf__new(l %t7)+ %t9 =l call $malloc(l 24)+ call $memset(l %t9, w 0, l 24)+ call $memcpy(l %t9, l %t8, l 24)+ storel %t9, %t10+ call $__sx_dbg_keep(l %t10)+ dbgvar "b", "buf.Buf", %t10, 8, 5, 180+ dbgloc 181+ %t11 =l loadl %t5+ %t12 =w cnel %t11, 0+ jnz %t12, @lbl6673, @lbl6674+@lbl6673+ %t14 =l add %t5, 8+ %t13 =l loadl %t14+ dbgloc 182+ %t15 =l copy 0+ storel %t15, %t16+ call $__sx_dbg_keep(l %t16)+ dbgvar "pos", "usize", %t16, 8, 5, 182+ dbgloc 183+ %t17 =l copy 0+ storel %t17, %t18+ call $__sx_dbg_keep(l %t18)+ dbgvar "start", "usize", %t18, 8, 5, 183+ dbgloc 184+ jmp @lbl6676+@lbl6676+ %t19 =l loadl %t16+ %t21 =l add %t13, 8+ %t20 =l loadl %t21+ %t22 =w cslel %t19, %t20+ jnz %t22, @lbl6677, @lbl6679+@lbl6677+ dbgloc 185+ %t23 =l loadl %t16+ %t25 =l add %t13, 8+ %t24 =l loadl %t25+ %t26 =w ceql %t23, %t24+ storew %t26, %t27+ jnz %t26, @lbl6684, @lbl6683+@lbl6683+ %t28 =l loadl %t16+ %t29 =w call $bytes__Bytes__at(l %t13, l %t28)+ %t30 =w copy 10+ %t31 =w ceqw %t29, %t30+ storew %t31, %t27+ jmp @lbl6684+@lbl6684+ %t32 =w loadw %t27+ jnz %t32, @lbl6680, @lbl6681+@lbl6680+ dbgloc 186+ %t33 =l loadl %t18+ %t34 =l loadl %t16+ %t35 =l call $bytes__Bytes__slice(l %t13, l %t33, l %t34)+ storel %t35, %t36+ call $__sx_dbg_keep(l %t36)+ dbgvar "line", "bytes.Bytes", %t36, 8, 5, 186+ dbgloc 187+ %t37 =l call $repoconfig__trim(l %t35)+ storel %t37, %t38+ call $__sx_dbg_keep(l %t38)+ dbgvar "t", "bytes.Bytes", %t38, 8, 5, 187+ dbgloc 188+ %t39 =l copy 61+ %t41 =w copy %t39+ %t40 =l call $repoconfig__index_of(l %t37, w %t41)+ storel %t40, %t42+ call $__sx_dbg_keep(l %t42)+ dbgvar "eq", "i64", %t42, 8, 5, 188+ dbgloc 189+ %t43 =l copy 0+ %t45 =w csltl %t40, %t43+ %t44 =w ceqw %t45, 0+ storew %t44, %t46+ jnz %t44, @lbl6685, @lbl6686+@lbl6685+ %t47 =l copy 0+ %t48 =l copy %t40+ %t49 =l call $bytes__Bytes__slice(l %t37, l %t47, l %t48)+ %t50 =l call $repoconfig__trim(l %t49)+ %t51 =w call $bytes__Bytes__eql(l %t50, l %key)+ storew %t51, %t46+ jmp @lbl6686+@lbl6686+ %t52 =w loadw %t46+ %t53 =w copy %t52+ %t54 =w extub %t53+ storew %t54, %t55+ call $__sx_dbg_keep(l %t55)+ dbgvar "is_key", "bool", %t55, 1, 7, 189+ dbgloc 193+ %t56 =w ceqw %t54, 0+ jnz %t56, @lbl6687, @lbl6688+@lbl6687+ dbgloc 194+ %t57 =l loadl %t10+ %t58 =w call $buf__Buf__put_bytes(l %t57, l %t35)+ dbgloc 195+ %t59 =l loadl %t16+ %t61 =l add %t13, 8+ %t60 =l loadl %t61+ %t62 =w csltl %t59, %t60+ jnz %t62, @lbl6690, @lbl6691+@lbl6690+ dbgloc 196+ %t63 =l loadl %t10+ %t64 =l copy 10+ %t66 =w copy %t64+ %t65 =w call $buf__Buf__put_u8(l %t63, w %t66)+ jmp @lbl6691+@lbl6691+ jmp @lbl6688+@lbl6688+ dbgloc 199+ %t67 =l loadl %t16+ %t68 =l copy 1+ %t69 =l add %t67, %t68+ storel %t69, %t18+ jmp @lbl6681+@lbl6681+ dbgloc 201+ %t70 =l loadl %t16+ %t71 =l add %t70, 1+ storel %t71, %t16+ jmp @lbl6678+@lbl6678+ jmp @lbl6676+@lbl6679+ dbgloc 203+ %t72 =w call $files__free_buffer(l %t13)+ jmp @lbl6675+@lbl6674+ jmp @lbl6675+@lbl6675+ dbgloc 205+ %t73 =l loadl %t10+ %t74 =l call $buf__Buf__view(l %t73)+ %t75 =l call $bytes__Bytes__dup(l %t74)+ storel %t75, %t76+ call $__sx_dbg_keep(l %t76)+ dbgvar "out", "bytes.Bytes", %t76, 8, 5, 205+ dbgloc 206+ %t77 =l loadl %t10+ %t78 =w call $buf__Buf__free(l %t77)+ dbgloc 207+ %t79 =w call $files__write_all(l %t2, l %t75)+ %t80 =w copy %t79+ %t81 =w extub %t80+ storew %t81, %t82+ call $__sx_dbg_keep(l %t82)+ dbgvar "passed", "bool", %t82, 1, 7, 207+ dbgloc 208+ %t83 =w call $files__free_buffer(l %t75)+ dbgloc 209+ %t84 =w call $files__free_path(l %t2)+ dbgloc 210+ ret %t81+}++dbgfile "src/crypto/tls.sx"+data $tls__ERR_CAP = { l 256 }+export function l $tls__server_ctx(l %cert, l %key) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 40+ storel %cert, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "cert", "ref u8", %t0, 8, 7, 40+ storel %key, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "key", "ref u8", %t1, 8, 7, 40+ dbgloc 41+ %t2 =l call $vn_tls_server_ctx(l %cert, l %key)+ ret %t2+}++export function l $tls__client_ctx() {+@start+ dbgloc 44+ dbgloc 45+ %t0 =l call $vn_tls_client_ctx()+ ret %t0+}++export function l $tls__client_ctx_pinned() {+@start+ dbgloc 48+ dbgloc 49+ %t0 =l call $vn_tls_client_ctx_pinned()+ ret %t0+}++export function l $tls__accept(l %ctx, w %fd) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 52+ storel %ctx, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "ctx", "ref ", %t0, 8, 7, 52+ storew %fd, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "fd", "i32", %t1, 4, 5, 52+ dbgloc 53+ %t2 =l copy 0+ %t3 =l copy 0+ %t4 =l call $vn_tls_accept(l %ctx, w %fd, l %t2, l %t3)+ ret %t4+}++export function l $tls__connect(l %ctx, w %fd, l %host) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ dbgloc 56+ storel %ctx, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "ctx", "ref ", %t0, 8, 7, 56+ storew %fd, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "fd", "i32", %t1, 4, 5, 56+ storel %host, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "host", "ref u8", %t2, 8, 7, 56+ dbgloc 57+ %t3 =l copy 0+ %t4 =l copy 0+ %t5 =l call $vn_tls_connect(l %ctx, w %fd, l %host, l %t3, l %t4)+ ret %t5+}++export function l $tls__read(l %ssl, l %buf, l %n) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ dbgloc 60+ storel %ssl, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "ssl", "ref ", %t0, 8, 7, 60+ storel %buf, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "buf", "ref u8", %t1, 8, 7, 60+ storel %n, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "n", "usize", %t2, 8, 5, 60+ dbgloc 61+ %t3 =l copy %buf+ %t4 =l call $vn_tls_read(l %ssl, l %t3, l %n)+ ret %t4+}++export function l $tls__write(l %ssl, l %buf, l %n) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ dbgloc 64+ storel %ssl, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "ssl", "ref ", %t0, 8, 7, 64+ storel %buf, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "buf", "ref u8", %t1, 8, 7, 64+ storel %n, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "n", "usize", %t2, 8, 5, 64+ dbgloc 65+ %t3 =l copy %buf+ %t4 =l call $vn_tls_write(l %ssl, l %t3, l %n)+ ret %t4+}++export function w $tls__exporter(l %ssl, l %out, l %n) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ dbgloc 68+ storel %ssl, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "ssl", "ref ", %t0, 8, 7, 68+ storel %out, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "out", "ref u8", %t1, 8, 7, 68+ storel %n, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "n", "usize", %t2, 8, 5, 68+ dbgloc 69+ %t3 =w call $vn_tls_exporter(l %ssl, l %out, l %n)+ %t4 =w copy 1+ %t5 =w ceqw %t3, %t4+ ret %t5+}++export function w $tls__peer_sha256(l %ssl, l %out) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 72+ storel %ssl, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "ssl", "ref ", %t0, 8, 7, 72+ storel %out, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "out", "ref u8", %t1, 8, 7, 72+ dbgloc 73+ %t2 =w call $vn_tls_peer_sha256(l %ssl, l %out)+ %t3 =w copy 1+ %t4 =w ceqw %t2, %t3+ ret %t4+}++export function w $tls__free(l %ssl) {+@start+ %t0 =l alloc8 8+ dbgloc 76+ storel %ssl, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "ssl", "ref ", %t0, 8, 7, 76+ dbgloc 77+ %t1 =w call $vn_tls_free(l %ssl)+ ret 0+}++export function w $tls__free_ctx(l %ctx) {+@start+ %t0 =l alloc8 8+ dbgloc 80+ storel %ctx, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "ctx", "ref ", %t0, 8, 7, 80+ dbgloc 81+ %t1 =w call $vn_tls_ctx_free(l %ctx)+ ret 0+}++export function w $tls__tcp_connect(l %host, w %port) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 84+ storel %host, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "host", "ref u8", %t0, 8, 7, 84+ storew %port, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "port", "i32", %t1, 4, 5, 84+ dbgloc 85+ %t2 =w call $vn_tcp_connect(l %host, w %port)+ ret %t2+}++export function w $tls__file_mode(l %path) {+@start+ %t0 =l alloc8 8+ dbgloc 88+ storel %path, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "path", "ref u8", %t0, 8, 7, 88+ dbgloc 89+ %t1 =w call $vn_file_mode(l %path)+ ret %t1+}++export function w $tls__chmod(l %path, w %mode) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 92+ storel %path, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "path", "ref u8", %t0, 8, 7, 92+ storew %mode, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "mode", "i32", %t1, 4, 5, 92+ dbgloc 93+ %t2 =w call $vn_chmod(l %path, w %mode)+ ret %t2+}++export function l $tls__to_hex(l %data) {+@start+ %t0 =l alloc8 8+ %t9 =l alloc8 8+ %t11 =l alloc8 8+ %t13 =l alloc8 8+ %t22 =l alloc8 8+ dbgloc 96+ storel %data, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "data", "bytes.Bytes", %t0, 8, 5, 96+ dbgloc 97+ %t3 =l add %data, 8+ %t2 =l loadl %t3+ %t4 =l copy 2+ %t5 =l mul %t2, %t4+ %t6 =l copy 1+ %t7 =l add %t5, %t6+ %t1 =l call $malloc(l %t7)+ %t8 =l copy %t1+ storel %t8, %t9+ call $__sx_dbg_keep(l %t9)+ dbgvar "out", "ref u8", %t9, 8, 7, 97+ dbgloc 98+ %t10 =l copy $__str318+ storel %t10, %t11+ call $__sx_dbg_keep(l %t11)+ dbgvar "hex", "ref u8", %t11, 8, 7, 98+ dbgloc 99+ %t12 =l copy 0+ storel %t12, %t13+ call $__sx_dbg_keep(l %t13)+ dbgvar "i", "usize", %t13, 8, 5, 99+ dbgloc 100+ jmp @lbl6693+@lbl6693+ %t14 =l loadl %t13+ %t16 =l add %data, 8+ %t15 =l loadl %t16+ %t17 =w csltl %t14, %t15+ jnz %t17, @lbl6694, @lbl6696+@lbl6694+ dbgloc 101+ %t18 =l loadl %t13+ %t19 =w call $bytes__Bytes__at(l %data, l %t18)+ %t20 =w copy %t19+ %t21 =w extub %t20+ storew %t21, %t22+ call $__sx_dbg_keep(l %t22)+ dbgvar "v", "u8", %t22, 1, 7, 101+ dbgloc 102+ %t25 =l loadl %t13+ %t26 =l copy 2+ %t27 =l mul %t25, %t26+ %t28 =l copy %t27+ %t24 =l add %t8, %t28+ %t31 =l extsw %t21+ %t32 =l copy 4+ %t34 =l extuw %t31+ %t33 =l shr %t34, %t32+ %t35 =l copy %t33+ %t30 =l add %t10, %t35+ %t36 =w loadub %t30+ %t29 =l extsw %t36+ storeb %t29, %t24+ %t23 =l copy 0+ dbgloc 103+ %t39 =l loadl %t13+ %t40 =l copy 2+ %t41 =l mul %t39, %t40+ %t42 =l copy 1+ %t43 =l add %t41, %t42+ %t44 =l copy %t43+ %t38 =l add %t8, %t44+ %t47 =l extsw %t21+ %t48 =l copy 15+ %t50 =l extsw %t47+ %t49 =l and %t50, %t48+ %t51 =l copy %t49+ %t46 =l add %t10, %t51+ %t52 =w loadub %t46+ %t45 =l extsw %t52+ storeb %t45, %t38+ %t37 =l copy 0+ dbgloc 104+ %t53 =l loadl %t13+ %t54 =l add %t53, 1+ storel %t54, %t13+ jmp @lbl6695+@lbl6695+ jmp @lbl6693+@lbl6696+ dbgloc 106+ %t58 =l add %data, 8+ %t57 =l loadl %t58+ %t59 =l copy 2+ %t60 =l mul %t57, %t59+ %t61 =l copy %t60+ %t56 =l add %t8, %t61+ %t62 =l copy 0+ storeb %t62, %t56+ %t55 =l copy 0+ dbgloc 107+ %t64 =l add %data, 8+ %t63 =l loadl %t64+ %t65 =l copy 2+ %t66 =l mul %t63, %t65+ %t67 =l call $bytes__bytes(l %t8, l %t66)+ ret %t67+}++export function w $tls__hex_equal(l %a, l %b) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t3 =l alloc8 8+ %t5 =l alloc8 8+ %t10 =l alloc4 1+ %t22 =l alloc4 1+ %t35 =l alloc4 1+ %t47 =l alloc4 1+ %t59 =l alloc8 8+ %t65 =l alloc8 8+ dbgloc 111+ storel %a, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "a", "bytes.Bytes", %t0, 8, 5, 111+ storel %b, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "b", "bytes.Bytes", %t1, 8, 5, 111+ dbgloc 112+ %t2 =l copy 0+ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "ai", "usize", %t3, 8, 5, 112+ dbgloc 113+ %t4 =l copy 0+ storel %t4, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "bi", "usize", %t5, 8, 5, 113+ dbgloc 114+ jmp @lbl6697+@lbl6697+ jmp @lbl6698+@lbl6698+ dbgloc 115+ jmp @lbl6701+@lbl6701+ %t6 =l loadl %t3+ %t8 =l add %a, 8+ %t7 =l loadl %t8+ %t9 =w csltl %t6, %t7+ storew %t9, %t10+ jnz %t9, @lbl6705, @lbl6706+@lbl6705+ %t11 =l loadl %t3+ %t12 =w call $bytes__Bytes__at(l %a, l %t11)+ %t13 =w copy 58+ %t14 =w ceqw %t12, %t13+ storew %t14, %t10+ jmp @lbl6706+@lbl6706+ %t15 =w loadw %t10+ jnz %t15, @lbl6702, @lbl6704+@lbl6702+ dbgloc 116+ %t16 =l loadl %t3+ %t17 =l add %t16, 1+ storel %t17, %t3+ jmp @lbl6703+@lbl6703+ jmp @lbl6701+@lbl6704+ dbgloc 118+ jmp @lbl6707+@lbl6707+ %t18 =l loadl %t5+ %t20 =l add %b, 8+ %t19 =l loadl %t20+ %t21 =w csltl %t18, %t19+ storew %t21, %t22+ jnz %t21, @lbl6711, @lbl6712+@lbl6711+ %t23 =l loadl %t5+ %t24 =w call $bytes__Bytes__at(l %b, l %t23)+ %t25 =w copy 58+ %t26 =w ceqw %t24, %t25+ storew %t26, %t22+ jmp @lbl6712+@lbl6712+ %t27 =w loadw %t22+ jnz %t27, @lbl6708, @lbl6710+@lbl6708+ dbgloc 119+ %t28 =l loadl %t5+ %t29 =l add %t28, 1+ storel %t29, %t5+ jmp @lbl6709+@lbl6709+ jmp @lbl6707+@lbl6710+ dbgloc 121+ %t30 =l loadl %t3+ %t32 =l add %a, 8+ %t31 =l loadl %t32+ %t34 =w csltl %t30, %t31+ %t33 =w ceqw %t34, 0+ storew %t33, %t35+ jnz %t33, @lbl6717, @lbl6716+@lbl6716+ %t36 =l loadl %t5+ %t38 =l add %b, 8+ %t37 =l loadl %t38+ %t40 =w csltl %t36, %t37+ %t39 =w ceqw %t40, 0+ storew %t39, %t35+ jmp @lbl6717+@lbl6717+ %t41 =w loadw %t35+ jnz %t41, @lbl6713, @lbl6714+@lbl6713+ dbgloc 122+ %t42 =l loadl %t3+ %t44 =l add %a, 8+ %t43 =l loadl %t44+ %t46 =w csltl %t42, %t43+ %t45 =w ceqw %t46, 0+ storew %t45, %t47+ jnz %t45, @lbl6718, @lbl6719+@lbl6718+ %t48 =l loadl %t5+ %t50 =l add %b, 8+ %t49 =l loadl %t50+ %t52 =w csltl %t48, %t49+ %t51 =w ceqw %t52, 0+ storew %t51, %t47+ jmp @lbl6719+@lbl6719+ %t53 =w loadw %t47+ ret %t53+@lbl6714+ dbgloc 124+ %t54 =l loadl %t3+ %t55 =w call $bytes__Bytes__at(l %a, l %t54)+ %t56 =w call $tls__lower(w %t55)+ %t57 =w copy %t56+ %t58 =w extub %t57+ storew %t58, %t59+ call $__sx_dbg_keep(l %t59)+ dbgvar "ca", "u8", %t59, 1, 7, 124+ dbgloc 125+ %t60 =l loadl %t5+ %t61 =w call $bytes__Bytes__at(l %b, l %t60)+ %t62 =w call $tls__lower(w %t61)+ %t63 =w copy %t62+ %t64 =w extub %t63+ storew %t64, %t65+ call $__sx_dbg_keep(l %t65)+ dbgvar "cb", "u8", %t65, 1, 7, 125+ dbgloc 126+ %t66 =l extsw %t58+ %t67 =l extsw %t64+ %t68 =w cnew %t66, %t67+ jnz %t68, @lbl6720, @lbl6721+@lbl6720+ dbgloc 127+ %t69 =l copy 0+ ret %t69+@lbl6721+ dbgloc 129+ %t70 =l loadl %t3+ %t71 =l add %t70, 1+ storel %t71, %t3+ dbgloc 130+ %t72 =l loadl %t5+ %t73 =l add %t72, 1+ storel %t73, %t5+ jmp @lbl6699+@lbl6699+ jmp @lbl6697+@lbl6700+ dbgloc 132+ %t74 =l copy 1+ ret %t74+}++function w $tls__lower(w %c) {+@start+ %t0 =l alloc8 8+ %t4 =l alloc4 1+ dbgloc 135+ storew %c, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "c", "u8", %t0, 1, 7, 135+ dbgloc 136+ %t1 =w copy 65+ %t3 =w csltw %c, %t1+ %t2 =w ceqw %t3, 0+ storew %t2, %t4+ jnz %t2, @lbl6726, @lbl6727+@lbl6726+ %t5 =w copy 90+ %t6 =w cslew %c, %t5+ storew %t6, %t4+ jmp @lbl6727+@lbl6727+ %t7 =w loadw %t4+ jnz %t7, @lbl6723, @lbl6724+@lbl6723+ dbgloc 137+ %t8 =l extsw %c+ %t9 =l copy 32+ %t11 =l extsw %t8+ %t10 =l add %t11, %t9+ ret %t10+@lbl6724+ dbgloc 139+ ret %c+}++dbgfile "src/net/stream.sx"+data $stream__K_FD = { l 0 }+data $stream__K_TLS = { l 1 }+data $stream__K_STDIO = { l 2 }+data $stream__K_PROC = { l 3 }+export function l $stream__stdio_stream() {+@start+ %t0 =l alloc8 21+ dbgloc 29+ dbgloc 30+ %t1 =l copy 2+ storeb %t1, %t0+ %t3 =l copy 0+ %t4 =l add %t0, 1+ storew %t3, %t4+ %t5 =l copy 1+ %t6 =l add %t0, 5+ storew %t5, %t6+ %t7 =l copy 0+ %t8 =l add %t0, 9+ storel %t7, %t8+ %t9 =l copy 0+ %t10 =l add %t0, 17+ storew %t9, %t10+ %t11 =l call $malloc(l 21)+ call $memcpy(l %t11, l %t0, l 21)+ ret %t11+}++export function l $stream__fd_stream(w %fd) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 21+ dbgloc 33+ storew %fd, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "fd", "i32", %t0, 4, 5, 33+ dbgloc 34+ %t2 =l copy 0+ storeb %t2, %t1+ %t4 =l add %t1, 1+ storew %fd, %t4+ %t5 =l add %t1, 5+ storew %fd, %t5+ %t6 =l copy 0+ %t7 =l add %t1, 9+ storel %t6, %t7+ %t8 =l copy 0+ %t9 =l add %t1, 17+ storew %t8, %t9+ %t10 =l call $malloc(l 21)+ call $memcpy(l %t10, l %t1, l 21)+ ret %t10+}++export function l $stream__tls_stream(w %fd, l %ssl) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 21+ dbgloc 37+ storew %fd, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "fd", "i32", %t0, 4, 5, 37+ storel %ssl, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "ssl", "ref ", %t1, 8, 7, 37+ dbgloc 38+ %t3 =l copy 1+ storeb %t3, %t2+ %t5 =l add %t2, 1+ storew %fd, %t5+ %t6 =l add %t2, 5+ storew %fd, %t6+ %t7 =l add %t2, 9+ storel %ssl, %t7+ %t8 =l copy 0+ %t9 =l add %t2, 17+ storew %t8, %t9+ %t10 =l call $malloc(l 21)+ call $memcpy(l %t10, l %t2, l 21)+ ret %t10+}++function w $stream__close_fd(w %fd) {+@start+ %t0 =l alloc8 8+ dbgloc 41+ storew %fd, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "fd", "i32", %t0, 4, 5, 41+ dbgloc 42+ %t1 =w copy 2+ %t2 =w csgtw %fd, %t1+ jnz %t2, @lbl6728, @lbl6729+@lbl6728+ dbgloc 43+ %t3 =w call $close(w %fd)+ jmp @lbl6729+@lbl6729+ ret 0+}++export function w $stream__close(l %s) {+@start+ %t0 =l alloc8 8+ %t4 =l alloc4 1+ %t29 =l alloc8 8+ dbgloc 47+ storel %s, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "s", "Stream", %t0, 8, 5, 47+ dbgloc 48+ %t1 =l loadub %s+ %t2 =w copy 1+ %t3 =w ceqw %t1, %t2+ storew %t3, %t4+ jnz %t3, @lbl6734, @lbl6735+@lbl6734+ %t6 =l add %s, 9+ %t5 =l loadl %t6+ %t7 =l copy 0+ %t8 =w cnel %t5, %t7+ storew %t8, %t4+ jmp @lbl6735+@lbl6735+ %t9 =w loadw %t4+ jnz %t9, @lbl6731, @lbl6732+@lbl6731+ dbgloc 49+ %t11 =l add %s, 9+ %t10 =l loadl %t11+ %t12 =w call $tls__free(l %t10)+ jmp @lbl6732+@lbl6732+ dbgloc 51+ %t13 =l loadub %s+ %t14 =w copy 3+ %t15 =w ceqw %t13, %t14+ jnz %t15, @lbl6736, @lbl6738+@lbl6736+ dbgloc 52+ %t17 =l add %s, 1+ %t16 =l loadsw %t17+ %t18 =w call $stream__close_fd(w %t16)+ dbgloc 53+ %t20 =l add %s, 5+ %t19 =l loadsw %t20+ %t21 =w call $stream__close_fd(w %t19)+ dbgloc 54+ %t23 =l add %s, 17+ %t22 =l loadsw %t23+ %t24 =w copy 0+ %t25 =w csgtw %t22, %t24+ jnz %t25, @lbl6741, @lbl6742+@lbl6741+ dbgloc 55+ %t26 =l copy 0+ %t27 =w copy %t26+ %t28 =w copy %t27+ storew %t28, %t29+ call $__sx_dbg_keep(l %t29)+ dbgvar "status", "i32", %t29, 4, 5, 55+ dbgloc 56+ %t31 =l add %s, 17+ %t30 =l loadsw %t31+ %t32 =l copy 0+ %t34 =w copy %t32+ %t33 =w call $waitpid(w %t30, l %t29, w %t34)+ jmp @lbl6742+@lbl6742+ jmp @lbl6737+@lbl6738+ %t35 =l loadub %s+ %t36 =w copy 0+ %t37 =w ceqw %t35, %t36+ jnz %t37, @lbl6739, @lbl6737+@lbl6739+ dbgloc 59+ %t39 =l add %s, 1+ %t38 =l loadsw %t39+ %t40 =w call $stream__close_fd(w %t38)+ jmp @lbl6737+@lbl6737+ ret 0+}++export function l $stream__read(l %s, l %buf, l %n) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t15 =l alloc8 8+ dbgloc 64+ storel %s, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "s", "Stream", %t0, 8, 5, 64+ storel %buf, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "buf", "ref u8", %t1, 8, 7, 64+ storel %n, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "n", "usize", %t2, 8, 5, 64+ dbgloc 65+ %t3 =l copy 0+ %t4 =w ceql %n, %t3+ jnz %t4, @lbl6744, @lbl6745+@lbl6744+ dbgloc 66+ %t5 =l copy 0+ ret %t5+@lbl6745+ dbgloc 68+ %t6 =l loadub %s+ %t7 =w copy 1+ %t8 =w ceqw %t6, %t7+ jnz %t8, @lbl6747, @lbl6748+@lbl6747+ dbgloc 69+ %t10 =l add %s, 9+ %t9 =l loadl %t10+ %t11 =l call $tls__read(l %t9, l %buf, l %n)+ ret %t11+@lbl6748+ dbgloc 71+ %t13 =l add %s, 1+ %t12 =l loadsw %t13+ %t14 =w copy %t12+ storew %t14, %t15+ call $__sx_dbg_keep(l %t15)+ dbgvar "fd", "i32", %t15, 4, 5, 71+ dbgloc 72+ %t16 =l loadub %s+ %t17 =w copy 2+ %t18 =w ceqw %t16, %t17+ jnz %t18, @lbl6750, @lbl6751+@lbl6750+ dbgloc 73+ %t19 =w copy 0+ %t20 =w copy %t19+ storew %t20, %t15+ jmp @lbl6751+@lbl6751+ dbgloc 75+ %t22 =w loadw %t15+ %t21 =l extsw %t22+ %t23 =l call $native__read_fd(w %t21, l %buf, l %n)+ ret %t23+}++export function w $stream__write_all(l %s, l %data) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t12 =l alloc8 8+ %t29 =l alloc8 8+ dbgloc 78+ storel %s, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "s", "Stream", %t0, 8, 5, 78+ storel %data, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "data", "bytes.Bytes", %t1, 8, 5, 78+ dbgloc 79+ %t2 =l loadub %s+ %t3 =w copy 2+ %t4 =w ceqw %t2, %t3+ jnz %t4, @lbl6753, @lbl6754+@lbl6753+ dbgloc 80+ %t5 =l copy 1+ %t7 =w copy %t5+ %t6 =w call $native__write_fd_all(w %t7, l %data)+ ret %t6+@lbl6754+ dbgloc 82+ %t8 =l loadub %s+ %t9 =w copy 1+ %t10 =w ceqw %t8, %t9+ jnz %t10, @lbl6756, @lbl6757+@lbl6756+ dbgloc 83+ %t11 =l copy 0+ storel %t11, %t12+ call $__sx_dbg_keep(l %t12)+ dbgvar "off", "usize", %t12, 8, 5, 83+ dbgloc 84+ jmp @lbl6759+@lbl6759+ %t13 =l loadl %t12+ %t15 =l add %data, 8+ %t14 =l loadl %t15+ %t16 =w csltl %t13, %t14+ jnz %t16, @lbl6760, @lbl6762+@lbl6760+ dbgloc 85+ %t18 =l add %s, 9+ %t17 =l loadl %t18+ %t20 =l loadl %data+ %t21 =l loadl %t12+ %t22 =l copy %t21+ %t19 =l add %t20, %t22+ %t23 =l copy %t19+ %t25 =l add %data, 8+ %t24 =l loadl %t25+ %t26 =l loadl %t12+ %t27 =l sub %t24, %t26+ %t28 =l call $tls__write(l %t17, l %t23, l %t27)+ storel %t28, %t29+ call $__sx_dbg_keep(l %t29)+ dbgvar "n", "i64", %t29, 8, 5, 85+ dbgloc 90+ %t30 =l copy 0+ %t31 =w cslel %t28, %t30+ jnz %t31, @lbl6763, @lbl6764+@lbl6763+ dbgloc 91+ %t32 =l copy 0+ ret %t32+@lbl6764+ dbgloc 93+ %t33 =l loadl %t12+ %t34 =l copy %t28+ %t35 =l add %t33, %t34+ storel %t35, %t12+ jmp @lbl6761+@lbl6761+ jmp @lbl6759+@lbl6762+ dbgloc 95+ %t36 =l copy 1+ ret %t36+@lbl6757+ dbgloc 97+ %t38 =l add %s, 5+ %t37 =l loadsw %t38+ %t39 =w call $native__write_fd_all(w %t37, l %data)+ ret %t39+}++export function w $stream__write_bytes(l %s, l %ptr, l %n) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ dbgloc 100+ storel %s, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "s", "Stream", %t0, 8, 5, 100+ storel %ptr, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "ptr", "ref u8", %t1, 8, 7, 100+ storel %n, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "n", "usize", %t2, 8, 5, 100+ dbgloc 101+ %t3 =l call $bytes__bytes(l %ptr, l %n)+ %t4 =w call $stream__write_all(l %s, l %t3)+ ret %t4+}++function l $stream__pipe_pair() {+@start+ %t3 =l alloc8 8+ %t6 =l alloc8 8+ %t11 =l alloc8 12+ %t25 =l alloc8 8+ %t33 =l alloc8 8+ %t36 =l alloc8 12+ dbgloc 110+ dbgloc 111+ %t1 =l copy 8+ %t0 =l call $malloc(l %t1)+ %t2 =l copy %t0+ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "fds", "ref i32", %t3, 8, 7, 111+ dbgloc 112+ %t4 =w call $pipe(l %t2)+ %t5 =w copy %t4+ storew %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "rc", "i32", %t6, 4, 5, 112+ dbgloc 113+ %t7 =w copy 0+ %t8 =w cnew %t5, %t7+ jnz %t8, @lbl6766, @lbl6767+@lbl6766+ dbgloc 114+ %t10 =l copy %t2+ call $free(l %t10)+ %t9 =l copy 0+ dbgloc 115+ %t12 =l copy 1+ %t13 =l neg %t12+ storew %t13, %t11+ %t15 =l copy 1+ %t16 =l neg %t15+ %t17 =l add %t11, 4+ storew %t16, %t17+ %t18 =l copy 0+ %t19 =l add %t11, 8+ storew %t18, %t19+ %t20 =l call $malloc(l 12)+ call $memcpy(l %t20, l %t11, l 12)+ ret %t20+@lbl6767+ dbgloc 117+ %t22 =w loadsw %t2+ %t21 =l extsw %t22+ %t23 =w copy %t21+ %t24 =w copy %t23+ storew %t24, %t25+ call $__sx_dbg_keep(l %t25)+ dbgvar "a", "i32", %t25, 4, 5, 117+ dbgloc 118+ %t28 =l copy 4+ %t27 =l add %t2, %t28+ %t29 =l copy %t27+ %t30 =w loadsw %t29+ %t26 =l extsw %t30+ %t31 =w copy %t26+ %t32 =w copy %t31+ storew %t32, %t33+ call $__sx_dbg_keep(l %t33)+ dbgvar "b", "i32", %t33, 4, 5, 118+ dbgloc 119+ %t35 =l copy %t2+ call $free(l %t35)+ %t34 =l copy 0+ dbgloc 120+ storew %t24, %t36+ %t38 =l add %t36, 4+ storew %t32, %t38+ %t39 =l copy 1+ %t40 =l add %t36, 8+ storew %t39, %t40+ %t41 =l call $malloc(l 12)+ call $memcpy(l %t41, l %t36, l 12)+ ret %t41+}++export function l $stream__spawn(l %__ret, l %command) {+@start+ %t0 =l alloc8 8+ %t2 =l alloc8 8+ %t4 =l alloc8 8+ %t8 =l alloc4 1+ %t13 =l alloc8 16+ %t15 =l alloc8 8+ %t18 =l alloc8 8+ %t26 =l alloc8 8+ %t33 =l alloc8 8+ %t50 =l alloc8 8+ %t53 =l alloc4 1+ %t57 =l alloc4 1+ %t81 =l alloc8 16+ %t82 =l alloc8 21+ %t96 =l alloc8 8+ %t97 =l alloc8 16+ dbgloc 124+ storel %command, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "command", "bytes.Bytes", %t0, 8, 5, 124+ dbgloc 125+ %t1 =l call $stream__pipe_pair()+ storel %t1, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "ip", "PipePair", %t2, 8, 5, 125+ dbgloc 126+ %t3 =l call $stream__pipe_pair()+ storel %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "op", "PipePair", %t4, 8, 5, 126+ dbgloc 127+ %t6 =l add %t1, 8+ %t5 =l loadub %t6+ %t7 =w ceqw %t5, 0+ storew %t7, %t8+ jnz %t7, @lbl6773, @lbl6772+@lbl6772+ %t10 =l add %t3, 8+ %t9 =l loadub %t10+ %t11 =w ceqw %t9, 0+ storew %t11, %t8+ jmp @lbl6773+@lbl6773+ %t12 =w loadw %t8+ jnz %t12, @lbl6769, @lbl6770+@lbl6769+ dbgloc 128+ storel 0, %t13+ call $memcpy(l %__ret, l %t13, l 16)+ ret %__ret+@lbl6770+ dbgloc 130+ %t14 =l call $bytes__Bytes__to_cstr(l %command)+ storel %t14, %t15+ call $__sx_dbg_keep(l %t15)+ dbgvar "cmd_z", "ref u8", %t15, 8, 7, 130+ dbgloc 131+ %t16 =w call $fork()+ %t17 =w copy %t16+ storew %t17, %t18+ call $__sx_dbg_keep(l %t18)+ dbgvar "pid", "i32", %t18, 4, 5, 131+ dbgloc 132+ %t19 =w copy 0+ %t20 =w ceqw %t17, %t19+ jnz %t20, @lbl6774, @lbl6775+@lbl6774+ dbgloc 133+ %t21 =l loadsw %t1+ %t22 =l copy 0+ %t24 =w copy %t22+ %t23 =w call $dup2(w %t21, w %t24)+ %t25 =w copy %t23+ storew %t25, %t26+ call $__sx_dbg_keep(l %t26)+ dbgvar "rc1", "i32", %t26, 4, 5, 133+ dbgloc 134+ %t28 =l add %t3, 4+ %t27 =l loadsw %t28+ %t29 =l copy 1+ %t31 =w copy %t29+ %t30 =w call $dup2(w %t27, w %t31)+ %t32 =w copy %t30+ storew %t32, %t33+ call $__sx_dbg_keep(l %t33)+ dbgvar "rc2", "i32", %t33, 4, 5, 134+ dbgloc 135+ %t34 =l loadsw %t1+ %t35 =w call $stream__close_fd(w %t34)+ dbgloc 136+ %t37 =l add %t1, 4+ %t36 =l loadsw %t37+ %t38 =w call $stream__close_fd(w %t36)+ dbgloc 137+ %t39 =l loadsw %t3+ %t40 =w call $stream__close_fd(w %t39)+ dbgloc 138+ %t42 =l add %t3, 4+ %t41 =l loadsw %t42+ %t43 =w call $stream__close_fd(w %t41)+ dbgloc 139+ %t44 =l copy $__str63+ %t45 =l copy $__str64+ %t46 =l copy $__str65+ %t47 =l copy 0+ %t48 =w call $execl(l %t44, l %t45, ..., l %t46, l %t14, l %t47)+ %t49 =w copy %t48+ storew %t49, %t50+ call $__sx_dbg_keep(l %t50)+ dbgvar "rc3", "i32", %t50, 4, 5, 139+ dbgloc 140+ %t51 =w copy 0+ %t52 =w ceqw %t25, %t51+ storew %t52, %t53+ jnz %t52, @lbl6780, @lbl6781+@lbl6780+ %t54 =w copy 0+ %t55 =w ceqw %t32, %t54+ storew %t55, %t53+ jmp @lbl6781+@lbl6781+ %t56 =w loadw %t53+ storew %t56, %t57+ jnz %t56, @lbl6782, @lbl6783+@lbl6782+ %t58 =w copy 0+ %t59 =w ceqw %t49, %t58+ storew %t59, %t57+ jmp @lbl6783+@lbl6783+ %t60 =w loadw %t57+ jnz %t60, @lbl6777, @lbl6778+@lbl6777+ dbgloc 141+ %t61 =l copy 0+ %t63 =w copy %t61+ %t62 =w call $_exit(w %t63)+ jmp @lbl6778+@lbl6778+ dbgloc 143+ %t64 =l copy 127+ %t66 =w copy %t64+ %t65 =w call $_exit(w %t66)+ jmp @lbl6775+@lbl6775+ dbgloc 145+ %t68 =l copy %t14+ call $free(l %t68)+ %t67 =l copy 0+ dbgloc 146+ %t69 =l loadsw %t1+ %t70 =w call $stream__close_fd(w %t69)+ dbgloc 147+ %t72 =l add %t3, 4+ %t71 =l loadsw %t72+ %t73 =w call $stream__close_fd(w %t71)+ dbgloc 148+ %t74 =w copy 0+ %t75 =w csltw %t17, %t74+ jnz %t75, @lbl6784, @lbl6785+@lbl6784+ dbgloc 149+ %t76 =l loadsw %t3+ %t77 =w call $stream__close_fd(w %t76)+ dbgloc 150+ %t79 =l add %t1, 4+ %t78 =l loadsw %t79+ %t80 =w call $stream__close_fd(w %t78)+ dbgloc 151+ storel 0, %t81+ call $memcpy(l %__ret, l %t81, l 16)+ ret %__ret+@lbl6785+ dbgloc 153+ %t83 =l copy 3+ storeb %t83, %t82+ %t85 =l loadsw %t3+ %t86 =l add %t82, 1+ storew %t85, %t86+ %t88 =l add %t1, 4+ %t87 =l loadsw %t88+ %t89 =l add %t82, 5+ storew %t87, %t89+ %t90 =l copy 0+ %t91 =l add %t82, 9+ storel %t90, %t91+ %t92 =l add %t82, 17+ storew %t17, %t92+ %t94 =l copy 0+ %t95 =w cnel %t82, 0+ jnz %t95, @lbl6787, @lbl6788+@lbl6787+ %t93 =l call $malloc(l 21)+ call $memset(l %t93, w 0, l 21)+ call $memcpy(l %t93, l %t82, l 21)+ %t94 =l copy %t93+@lbl6788+ storel %t94, %t96+ call $__sx_dbg_keep(l %t96)+ dbgvar "s", "Stream", %t96, 8, 5, 153+ dbgloc 160+ call $memset(l %t97, w 0, l 16)+ storel 1, %t97+ %t98 =l add %t97, 8+ storel %t94, %t98+ call $memcpy(l %__ret, l %t97, l 16)+ ret %__ret+}++export function l $stream__quote(l %word) {+@start+ %t0 =l alloc8 8+ %t5 =l alloc8 8+ %t14 =l alloc8 8+ %t16 =l alloc8 8+ %t24 =l alloc8 8+ %t33 =l alloc8 8+ dbgloc 164+ storel %word, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "word", "bytes.Bytes", %t0, 8, 5, 164+ dbgloc 165+ %t1 =l copy 39+ %t2 =w copy %t1+ %t3 =w copy %t2+ %t4 =w extub %t3+ storew %t4, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "quote", "u8", %t5, 1, 7, 165+ dbgloc 166+ %t8 =l add %word, 8+ %t7 =l loadl %t8+ %t9 =l copy 4+ %t10 =l mul %t7, %t9+ %t11 =l copy 4+ %t12 =l add %t10, %t11+ %t6 =l call $malloc(l %t12)+ %t13 =l copy %t6+ storel %t13, %t14+ call $__sx_dbg_keep(l %t14)+ dbgvar "joined", "ref u8", %t14, 8, 7, 166+ dbgloc 167+ %t15 =l copy 0+ storel %t15, %t16+ call $__sx_dbg_keep(l %t16)+ dbgvar "mut_len", "usize", %t16, 8, 5, 167+ dbgloc 168+ %t19 =l loadl %t16+ %t20 =l copy %t19+ %t18 =l add %t13, %t20+ storeb %t4, %t18+ %t17 =l copy 0+ dbgloc 169+ %t21 =l loadl %t16+ %t22 =l add %t21, 1+ storel %t22, %t16+ dbgloc 170+ %t23 =l copy 0+ storel %t23, %t24+ call $__sx_dbg_keep(l %t24)+ dbgvar "i", "usize", %t24, 8, 5, 170+ dbgloc 171+ jmp @lbl6789+@lbl6789+ %t25 =l loadl %t24+ %t27 =l add %word, 8+ %t26 =l loadl %t27+ %t28 =w csltl %t25, %t26+ jnz %t28, @lbl6790, @lbl6792+@lbl6790+ dbgloc 172+ %t29 =l loadl %t24+ %t30 =w call $bytes__Bytes__at(l %word, l %t29)+ %t31 =w copy %t30+ %t32 =w extub %t31+ storew %t32, %t33+ call $__sx_dbg_keep(l %t33)+ dbgvar "c", "u8", %t33, 1, 7, 172+ dbgloc 173+ %t34 =l extsw %t32+ %t35 =l extsw %t4+ %t36 =w ceqw %t34, %t35+ jnz %t36, @lbl6793, @lbl6795+@lbl6793+ dbgloc 174+ %t39 =l loadl %t16+ %t40 =l copy %t39+ %t38 =l add %t13, %t40+ storeb %t4, %t38+ %t37 =l copy 0+ dbgloc 175+ %t41 =l loadl %t16+ %t42 =l add %t41, 1+ storel %t42, %t16+ dbgloc 176+ %t45 =l loadl %t16+ %t46 =l copy %t45+ %t44 =l add %t13, %t46+ %t47 =l copy 92+ storeb %t47, %t44+ %t43 =l copy 0+ dbgloc 177+ %t48 =l loadl %t16+ %t49 =l add %t48, 1+ storel %t49, %t16+ dbgloc 178+ %t52 =l loadl %t16+ %t53 =l copy %t52+ %t51 =l add %t13, %t53+ storeb %t4, %t51+ %t50 =l copy 0+ dbgloc 179+ %t54 =l loadl %t16+ %t55 =l add %t54, 1+ storel %t55, %t16+ dbgloc 180+ %t58 =l loadl %t16+ %t59 =l copy %t58+ %t57 =l add %t13, %t59+ storeb %t4, %t57+ %t56 =l copy 0+ dbgloc 181+ %t60 =l loadl %t16+ %t61 =l add %t60, 1+ storel %t61, %t16+ jmp @lbl6794+@lbl6795+ dbgloc 183+ %t64 =l loadl %t16+ %t65 =l copy %t64+ %t63 =l add %t13, %t65+ storeb %t32, %t63+ %t62 =l copy 0+ dbgloc 184+ %t66 =l loadl %t16+ %t67 =l add %t66, 1+ storel %t67, %t16+ jmp @lbl6794+@lbl6794+ dbgloc 186+ %t68 =l loadl %t24+ %t69 =l add %t68, 1+ storel %t69, %t24+ jmp @lbl6791+@lbl6791+ jmp @lbl6789+@lbl6792+ dbgloc 188+ %t72 =l loadl %t16+ %t73 =l copy %t72+ %t71 =l add %t13, %t73+ storeb %t4, %t71+ %t70 =l copy 0+ dbgloc 189+ %t74 =l loadl %t16+ %t75 =l add %t74, 1+ storel %t75, %t16+ dbgloc 190+ %t76 =l loadl %t16+ %t77 =l call $bytes__bytes(l %t13, l %t76)+ ret %t77+}++export function l $stream__self_exe() {+@start+ %t3 =l alloc8 8+ %t7 =l alloc8 8+ dbgloc 194+ dbgloc 195+ %t1 =l copy 4096+ %t0 =l call $malloc(l %t1)+ %t2 =l copy %t0+ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "buf", "ref u8", %t3, 8, 7, 195+ dbgloc 196+ %t4 =l copy $__str319+ %t5 =l copy 4095+ %t6 =l call $readlink(l %t4, l %t2, l %t5)+ storel %t6, %t7+ call $__sx_dbg_keep(l %t7)+ dbgvar "n", "i64", %t7, 8, 5, 196+ dbgloc 197+ %t8 =l copy 0+ %t9 =w csgtl %t6, %t8+ jnz %t9, @lbl6796, @lbl6797+@lbl6796+ dbgloc 198+ %t11 =l add %t2, %t6+ %t12 =l copy 0+ storeb %t12, %t11+ %t10 =l copy 0+ dbgloc 199+ %t13 =l copy %t6+ %t14 =l call $bytes__bytes(l %t2, l %t13)+ ret %t14+@lbl6797+ dbgloc 201+ %t16 =l copy %t2+ call $free(l %t16)+ %t15 =l copy 0+ dbgloc 202+ %t17 =l copy $__str320+ %t18 =l copy 2+ %t19 =l call $bytes__bytes(l %t17, l %t18)+ %t20 =l call $bytes__Bytes__dup(l %t19)+ ret %t20+}++dbgfile "src/protocol/wire.sx"+data $wire__MAX_FRAME = { l 16777216 }+data $wire__HELLO = { l 1 }+data $wire__HELLO_OK = { l 2 }+data $wire__AUTH = { l 3 }+data $wire__AUTH_OK = { l 4 }+data $wire__WHOAMI = { l 5 }+data $wire__WHOAMI_OK = { l 6 }+data $wire__LIST_REFS = { l 7 }+data $wire__REFS = { l 8 }+data $wire__NEGOTIATE = { l 9 }+data $wire__NEGOTIATE_OK = { l 10 }+data $wire__FETCH_SKELETON = { l 11 }+data $wire__GET_CHUNKS = { l 12 }+data $wire__HAVE_QUERY = { l 13 }+data $wire__HAVE_BITMAP = { l 14 }+data $wire__PUT_RECORDS = { l 15 }+data $wire__UPDATE_REFS = { l 16 }+data $wire__UPDATE_REFS_OK = { l 17 }+data $wire__RECORDS = { l 18 }+data $wire__END = { l 19 }+data $wire__ERROR = { l 20 }+data $wire__ERR_UNSUPPORTED_VERSION = { l 1 }+data $wire__ERR_BAD_FRAME = { l 2 }+data $wire__ERR_NOT_FOUND = { l 3 }+data $wire__ERR_HASH_MISMATCH = { l 4 }+data $wire__ERR_NON_CANONICAL = { l 5 }+data $wire__ERR_MISSING_CLOSURE = { l 6 }+data $wire__ERR_REF_CONFLICT = { l 7 }+data $wire__ERR_REJECTED = { l 8 }+data $wire__ERR_INTERNAL = { l 9 }+data $wire__ERR_UNAUTHENTICATED = { l 10 }+data $wire__ERR_FORBIDDEN = { l 11 }+data $wire__ERR_AUTH_FAILED = { l 12 }+export function w $wire__free_frame(l %f) {+@start+ %t0 =l alloc8 8+ dbgloc 53+ storel %f, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "f", "Frame", %t0, 8, 5, 53+ dbgloc 54+ %t1 =l add %f, 21+ %t2 =l loadl %t1+ %t3 =l copy 0+ %t4 =w cnel %t2, %t3+ jnz %t4, @lbl6799, @lbl6800+@lbl6799+ dbgloc 55+ %t5 =l add %f, 21+ %t6 =l loadl %t5+ %t7 =w call $bytes__free_ptr(l %t6)+ jmp @lbl6800+@lbl6800+ ret 0+}++function w $wire__read_exact(l %s, l %out, l %n) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t4 =l alloc8 8+ %t14 =l alloc8 8+ dbgloc 59+ storel %s, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "s", "stream.Stream", %t0, 8, 5, 59+ storel %out, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "out", "ref u8", %t1, 8, 7, 59+ storel %n, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "n", "usize", %t2, 8, 5, 59+ dbgloc 60+ %t3 =l copy 0+ storel %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "got", "usize", %t4, 8, 5, 60+ dbgloc 61+ jmp @lbl6802+@lbl6802+ %t5 =l loadl %t4+ %t6 =w csltl %t5, %n+ jnz %t6, @lbl6803, @lbl6805+@lbl6803+ dbgloc 62+ %t8 =l loadl %t4+ %t9 =l copy %t8+ %t7 =l add %out, %t9+ %t10 =l copy %t7+ %t11 =l loadl %t4+ %t12 =l sub %n, %t11+ %t13 =l call $stream__read(l %s, l %t10, l %t12)+ storel %t13, %t14+ call $__sx_dbg_keep(l %t14)+ dbgvar "r", "i64", %t14, 8, 5, 62+ dbgloc 63+ %t15 =l copy 0+ %t16 =w cslel %t13, %t15+ jnz %t16, @lbl6806, @lbl6807+@lbl6806+ dbgloc 64+ %t17 =l copy 0+ ret %t17+@lbl6807+ dbgloc 66+ %t18 =l loadl %t4+ %t19 =l copy %t13+ %t20 =l add %t18, %t19+ storel %t20, %t4+ jmp @lbl6804+@lbl6804+ jmp @lbl6802+@lbl6805+ dbgloc 68+ %t21 =l copy 1+ ret %t21+}++function l $wire__read_u32_be(l %__ret, l %s) {+@start+ %t0 =l alloc8 8+ %t4 =l alloc8 8+ %t10 =l alloc8 16+ %t44 =l alloc8 8+ %t47 =l alloc8 16+ dbgloc 71+ storel %s, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "s", "stream.Stream", %t0, 8, 5, 71+ dbgloc 72+ %t2 =l copy 4+ %t1 =l call $malloc(l %t2)+ %t3 =l copy %t1+ storel %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "b", "ref u8", %t4, 8, 7, 72+ dbgloc 73+ %t5 =l copy 4+ %t6 =w call $wire__read_exact(l %s, l %t3, l %t5)+ %t7 =w ceqw %t6, 0+ jnz %t7, @lbl6809, @lbl6810+@lbl6809+ dbgloc 74+ %t9 =l copy %t3+ call $free(l %t9)+ %t8 =l copy 0+ dbgloc 75+ storel 0, %t10+ call $memcpy(l %__ret, l %t10, l 16)+ ret %__ret+@lbl6810+ dbgloc 77+ %t12 =w loadub %t3+ %t11 =l extsw %t12+ %t13 =l extsw %t11+ %t14 =l copy 24+ %t16 =l extsw %t13+ %t15 =l shl %t16, %t14+ %t19 =l copy 1+ %t18 =l add %t3, %t19+ %t20 =w loadub %t18+ %t17 =l extsw %t20+ %t21 =l extsw %t17+ %t22 =l copy 16+ %t24 =l extsw %t21+ %t23 =l shl %t24, %t22+ %t25 =l or %t15, %t23+ %t28 =l copy 2+ %t27 =l add %t3, %t28+ %t29 =w loadub %t27+ %t26 =l extsw %t29+ %t30 =l extsw %t26+ %t31 =l copy 8+ %t33 =l extsw %t30+ %t32 =l shl %t33, %t31+ %t34 =l or %t25, %t32+ %t37 =l copy 3+ %t36 =l add %t3, %t37+ %t38 =w loadub %t36+ %t35 =l extsw %t38+ %t39 =l extsw %t35+ %t41 =l extsw %t39+ %t40 =l or %t34, %t41+ %t42 =w copy %t40+ %t43 =w copy %t42+ storew %t43, %t44+ call $__sx_dbg_keep(l %t44)+ dbgvar "v", "u32", %t44, 4, 7, 77+ dbgloc 81+ %t46 =l copy %t3+ call $free(l %t46)+ %t45 =l copy 0+ dbgloc 82+ call $memset(l %t47, w 0, l 16)+ storel 1, %t47+ %t48 =l add %t47, 8+ storew %t43, %t48+ call $memcpy(l %__ret, l %t47, l 16)+ ret %__ret+}++function w $wire__put_u32_be(l %out, w %v) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 85+ storel %out, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "out", "ref u8", %t0, 8, 7, 85+ storew %v, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "v", "u32", %t1, 4, 7, 85+ dbgloc 86+ %t3 =l extsw %v+ %t4 =l copy 24+ %t6 =l extuw %t3+ %t5 =l shr %t6, %t4+ %t7 =l copy 255+ %t8 =l and %t5, %t7+ storeb %t8, %out+ %t2 =l copy 0+ dbgloc 87+ %t11 =l copy 1+ %t10 =l add %out, %t11+ %t12 =l extsw %v+ %t13 =l copy 16+ %t15 =l extuw %t12+ %t14 =l shr %t15, %t13+ %t16 =l copy 255+ %t17 =l and %t14, %t16+ storeb %t17, %t10+ %t9 =l copy 0+ dbgloc 88+ %t20 =l copy 2+ %t19 =l add %out, %t20+ %t21 =l extsw %v+ %t22 =l copy 8+ %t24 =l extuw %t21+ %t23 =l shr %t24, %t22+ %t25 =l copy 255+ %t26 =l and %t23, %t25+ storeb %t26, %t19+ %t18 =l copy 0+ dbgloc 89+ %t29 =l copy 3+ %t28 =l add %out, %t29+ %t30 =l extsw %v+ %t31 =l copy 255+ %t33 =l extsw %t30+ %t32 =l and %t33, %t31+ storeb %t32, %t28+ %t27 =l copy 0+ ret 0+}++export function l $wire__read_frame(l %__ret, l %s) {+@start+ %t0 =l alloc8 8+ %t2 =l alloc8 16+ %t3 =l alloc8 8+ %t7 =l alloc8 8+ %t13 =l alloc8 16+ %t18 =l alloc4 1+ %t25 =l alloc8 16+ %t31 =l alloc8 8+ %t39 =l alloc8 16+ %t45 =l alloc8 8+ %t81 =l alloc8 8+ %t84 =l alloc8 8+ %t99 =l alloc8 16+ %t121 =l alloc8 16+ dbgloc 93+ storel %s, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "s", "stream.Stream", %t0, 8, 5, 93+ dbgloc 94+ %t1 =l call $wire__read_u32_be(l %t2, l %s)+ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "len_opt", "option[u32]", %t3, 8, 5, 94+ dbgloc 95+ %t4 =l copy 0+ %t5 =w copy %t4+ %t6 =w copy %t5+ storew %t6, %t7+ call $__sx_dbg_keep(l %t7)+ dbgvar "len", "u32", %t7, 4, 7, 95+ dbgloc 96+ %t8 =l loadl %t2+ %t9 =w cnel %t8, 0+ jnz %t9, @lbl6812, @lbl6813+@lbl6812+ %t11 =l add %t2, 8+ %t10 =w loadw %t11+ dbgloc 98+ %t12 =w copy %t10+ storew %t12, %t7+ jmp @lbl6814+@lbl6813+ dbgloc 101+ storel 0, %t13+ call $memcpy(l %__ret, l %t13, l 16)+ ret %__ret+@lbl6814+ dbgloc 104+ %t15 =w loadw %t7+ %t14 =l extsw %t15+ %t16 =w copy 5+ %t17 =w csltw %t14, %t16+ storew %t17, %t18+ jnz %t17, @lbl6819, @lbl6818+@lbl6818+ %t20 =w loadw %t7+ %t19 =l extsw %t20+ %t21 =l extsw %t19+ %t22 =l copy 16777216+ %t23 =w csgtl %t21, %t22+ storew %t23, %t18+ jmp @lbl6819+@lbl6819+ %t24 =w loadw %t18+ jnz %t24, @lbl6815, @lbl6816+@lbl6815+ dbgloc 105+ storel 0, %t25+ call $memcpy(l %__ret, l %t25, l 16)+ ret %__ret+@lbl6816+ dbgloc 107+ %t28 =w loadw %t7+ %t27 =l extsw %t28+ %t29 =l extsw %t27+ %t26 =l call $malloc(l %t29)+ %t30 =l copy %t26+ storel %t30, %t31+ call $__sx_dbg_keep(l %t31)+ dbgvar "body", "ref u8", %t31, 8, 7, 107+ dbgloc 108+ %t33 =w loadw %t7+ %t32 =l extsw %t33+ %t34 =l extsw %t32+ %t35 =w call $wire__read_exact(l %s, l %t30, l %t34)+ %t36 =w ceqw %t35, 0+ jnz %t36, @lbl6820, @lbl6821+@lbl6820+ dbgloc 109+ %t38 =l copy %t30+ call $free(l %t38)+ %t37 =l copy 0+ dbgloc 110+ storel 0, %t39+ call $memcpy(l %__ret, l %t39, l 16)+ ret %__ret+@lbl6821+ dbgloc 112+ %t41 =w loadub %t30+ %t40 =l extsw %t41+ %t42 =w copy %t40+ %t43 =w copy %t42+ %t44 =w extub %t43+ storew %t44, %t45+ call $__sx_dbg_keep(l %t45)+ dbgvar "kind", "u8", %t45, 1, 7, 112+ dbgloc 113+ %t48 =l copy 1+ %t47 =l add %t30, %t48+ %t49 =w loadub %t47+ %t46 =l extsw %t49+ %t50 =l extsw %t46+ %t51 =l copy 24+ %t53 =l extsw %t50+ %t52 =l shl %t53, %t51+ %t56 =l copy 2+ %t55 =l add %t30, %t56+ %t57 =w loadub %t55+ %t54 =l extsw %t57+ %t58 =l extsw %t54+ %t59 =l copy 16+ %t61 =l extsw %t58+ %t60 =l shl %t61, %t59+ %t62 =l or %t52, %t60+ %t65 =l copy 3+ %t64 =l add %t30, %t65+ %t66 =w loadub %t64+ %t63 =l extsw %t66+ %t67 =l extsw %t63+ %t68 =l copy 8+ %t70 =l extsw %t67+ %t69 =l shl %t70, %t68+ %t71 =l or %t62, %t69+ %t74 =l copy 4+ %t73 =l add %t30, %t74+ %t75 =w loadub %t73+ %t72 =l extsw %t75+ %t76 =l extsw %t72+ %t78 =l extsw %t76+ %t77 =l or %t71, %t78+ %t79 =w copy %t77+ %t80 =w copy %t79+ storew %t80, %t81+ call $__sx_dbg_keep(l %t81)+ dbgvar "rid", "u32", %t81, 4, 7, 113+ dbgloc 117+ %t82 =l call $bytes__empty()+ %t83 =l call $malloc(l 16)+ call $memset(l %t83, w 0, l 16)+ call $memcpy(l %t83, l %t82, l 16)+ storel %t83, %t84+ call $__sx_dbg_keep(l %t84)+ dbgvar "payload", "bytes.Bytes", %t84, 8, 5, 117+ dbgloc 118+ %t86 =w loadw %t7+ %t85 =l extsw %t86+ %t87 =w copy 5+ %t88 =w ceqw %t85, %t87+ jnz %t88, @lbl6823, @lbl6824+@lbl6823+ dbgloc 119+ %t89 =l call $malloc(l 37)+ storeb %t44, %t89+ %t91 =l add %t89, 1+ storew %t80, %t91+ %t92 =l add %t89, 5+ %t93 =l call $bytes__empty()+ call $memcpy(l %t92, l %t93, l 16)+ %t94 =l add %t89, 21+ %t96 =w loadw %t7+ %t95 =l extsw %t96+ %t97 =l extsw %t95+ %t98 =l call $bytes__bytes(l %t30, l %t97)+ call $memcpy(l %t94, l %t98, l 16)+ call $memset(l %t99, w 0, l 16)+ storel 1, %t99+ %t100 =l add %t99, 8+ storel %t89, %t100+ call $memcpy(l %__ret, l %t99, l 16)+ ret %__ret+@lbl6824+ dbgloc 126+ %t102 =l copy 5+ %t101 =l add %t30, %t102+ %t104 =w loadw %t7+ %t103 =l extsw %t104+ %t105 =l extsw %t103+ %t106 =l copy 5+ %t108 =l extsw %t105+ %t107 =l sub %t108, %t106+ %t109 =l copy %t107+ %t110 =l call $bytes__bytes(l %t101, l %t109)+ storel %t110, %t84+ dbgloc 127+ %t111 =l call $malloc(l 37)+ storeb %t44, %t111+ %t113 =l add %t111, 1+ storew %t80, %t113+ %t114 =l add %t111, 5+ %t115 =l loadl %t84+ call $memcpy(l %t114, l %t115, l 16)+ %t116 =l add %t111, 21+ %t118 =w loadw %t7+ %t117 =l extsw %t118+ %t119 =l extsw %t117+ %t120 =l call $bytes__bytes(l %t30, l %t119)+ call $memcpy(l %t116, l %t120, l 16)+ call $memset(l %t121, w 0, l 16)+ storel 1, %t121+ %t122 =l add %t121, 8+ storel %t111, %t122+ call $memcpy(l %__ret, l %t121, l 16)+ ret %__ret+}++export function w $wire__write_frame(l %s, w %kind, w %request_id, l %payload) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t3 =l alloc8 8+ %t13 =l alloc8 8+ %t17 =l alloc8 8+ %t24 =l alloc8 8+ %t28 =l alloc8 8+ %t31 =l alloc4 1+ %t36 =l alloc4 1+ %t41 =l alloc8 8+ dbgloc 136+ storel %s, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "s", "stream.Stream", %t0, 8, 5, 136+ storew %kind, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "kind", "u8", %t1, 1, 7, 136+ storew %request_id, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "request_id", "u32", %t2, 4, 7, 136+ storel %payload, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "payload", "bytes.Bytes", %t3, 8, 5, 136+ dbgloc 142+ %t4 =l copy 5+ %t5 =l extsw %t4+ %t7 =l add %payload, 8+ %t6 =l loadl %t7+ %t8 =l extsw %t6+ %t10 =l extsw %t5+ %t11 =l extsw %t8+ %t9 =l add %t10, %t11+ %t12 =w copy %t9+ storew %t12, %t13+ call $__sx_dbg_keep(l %t13)+ dbgvar "total", "u32", %t13, 4, 7, 142+ dbgloc 143+ %t15 =l copy 5+ %t14 =l call $malloc(l %t15)+ %t16 =l copy %t14+ storel %t16, %t17+ call $__sx_dbg_keep(l %t17)+ dbgvar "head", "ref u8", %t17, 8, 7, 143+ dbgloc 144+ %t18 =w call $wire__put_u32_be(l %t16, w %t12)+ dbgloc 145+ %t21 =l copy 4+ %t20 =l add %t16, %t21+ storeb %kind, %t20+ %t19 =l copy 0+ dbgloc 146+ %t22 =l copy 5+ %t23 =l call $bytes__bytes(l %t16, l %t22)+ storel %t23, %t24+ call $__sx_dbg_keep(l %t24)+ dbgvar "header_bytes", "bytes.Bytes", %t24, 8, 5, 146+ dbgloc 147+ %t26 =l copy 4+ %t25 =l call $malloc(l %t26)+ %t27 =l copy %t25+ storel %t27, %t28+ call $__sx_dbg_keep(l %t28)+ dbgvar "rid", "ref u8", %t28, 8, 7, 147+ dbgloc 148+ %t29 =w call $wire__put_u32_be(l %t27, w %request_id)+ dbgloc 149+ %t30 =w call $stream__write_all(l %s, l %t23)+ storew %t30, %t31+ jnz %t30, @lbl6826, @lbl6827+@lbl6826+ %t32 =l copy 4+ %t33 =l call $bytes__bytes(l %t27, l %t32)+ %t34 =w call $stream__write_all(l %s, l %t33)+ storew %t34, %t31+ jmp @lbl6827+@lbl6827+ %t35 =w loadw %t31+ storew %t35, %t36+ jnz %t35, @lbl6828, @lbl6829+@lbl6828+ %t37 =w call $stream__write_all(l %s, l %payload)+ storew %t37, %t36+ jmp @lbl6829+@lbl6829+ %t38 =w loadw %t36+ %t39 =w copy %t38+ %t40 =w extub %t39+ storew %t40, %t41+ call $__sx_dbg_keep(l %t41)+ dbgvar "passed", "bool", %t41, 1, 7, 149+ dbgloc 152+ %t43 =l copy %t16+ call $free(l %t43)+ %t42 =l copy 0+ dbgloc 153+ %t45 =l copy %t27+ call $free(l %t45)+ %t44 =l copy 0+ dbgloc 154+ %t46 =l loadl %payload+ %t47 =l copy 0+ %t48 =w cnel %t46, %t47+ jnz %t48, @lbl6830, @lbl6831+@lbl6830+ dbgloc 155+ %t49 =w call $bytes__free_owned(l %payload)+ jmp @lbl6831+@lbl6831+ dbgloc 157+ ret %t40+}++export function w $wire__write_simple(l %s, w %kind, w %request_id) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ dbgloc 160+ storel %s, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "s", "stream.Stream", %t0, 8, 5, 160+ storew %kind, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "kind", "u8", %t1, 1, 7, 160+ storew %request_id, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "request_id", "u32", %t2, 4, 7, 160+ dbgloc 161+ %t3 =l call $bytes__empty()+ %t4 =w call $wire__write_frame(l %s, w %kind, w %request_id, l %t3)+ ret %t4+}++export function w $wire__write_error(l %s, w %request_id, w %code, l %message) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t3 =l alloc8 8+ %t7 =l alloc8 8+ %t15 =l alloc8 8+ dbgloc 164+ storel %s, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "s", "stream.Stream", %t0, 8, 5, 164+ storew %request_id, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "request_id", "u32", %t1, 4, 7, 164+ storew %code, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "code", "u8", %t2, 1, 7, 164+ storel %message, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "message", "bytes.Bytes", %t3, 8, 5, 164+ dbgloc 170+ %t4 =l copy 64+ %t5 =l call $buf__new(l %t4)+ %t6 =l call $malloc(l 24)+ call $memset(l %t6, w 0, l 24)+ call $memcpy(l %t6, l %t5, l 24)+ storel %t6, %t7+ call $__sx_dbg_keep(l %t7)+ dbgvar "b", "buf.Buf", %t7, 8, 5, 170+ dbgloc 171+ %t8 =l loadl %t7+ %t9 =w call $buf__Buf__put_u8(l %t8, w %code)+ dbgloc 172+ %t10 =l loadl %t7+ %t11 =w call $buf__Buf__put_length_prefixed(l %t10, l %message)+ dbgloc 173+ %t12 =l loadl %t7+ %t13 =l call $buf__Buf__view(l %t12)+ %t14 =l call $bytes__Bytes__dup(l %t13)+ storel %t14, %t15+ call $__sx_dbg_keep(l %t15)+ dbgvar "out", "bytes.Bytes", %t15, 8, 5, 173+ dbgloc 174+ %t16 =l loadl %t7+ %t17 =w call $buf__Buf__free(l %t16)+ dbgloc 175+ %t18 =l copy 20+ %t20 =w copy %t18+ %t19 =w call $wire__write_frame(l %s, w %t20, w %request_id, l %t14)+ ret %t19+}++export function w $wire__read_error(l %payload) {+@start+ %t0 =l alloc8 8+ dbgloc 178+ storel %payload, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "payload", "bytes.Bytes", %t0, 8, 5, 178+ dbgloc 179+ %t2 =l add %payload, 8+ %t1 =l loadl %t2+ %t3 =l copy 0+ %t4 =w ceql %t1, %t3+ jnz %t4, @lbl6833, @lbl6834+@lbl6833+ dbgloc 180+ %t5 =l copy 9+ %t6 =w copy %t5+ ret %t6+@lbl6834+ dbgloc 182+ %t7 =l copy 0+ %t8 =w call $bytes__Bytes__at(l %payload, l %t7)+ ret %t8+}++export function l $wire__error_message(l %payload) {+@start+ %t0 =l alloc8 8+ %t16 =l alloc8 8+ %t20 =l alloc8 16+ %t21 =l alloc8 8+ dbgloc 187+ storel %payload, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "payload", "bytes.Bytes", %t0, 8, 5, 187+ dbgloc 188+ %t2 =l add %payload, 8+ %t1 =l loadl %t2+ %t3 =l copy 2+ %t4 =w csltl %t1, %t3+ jnz %t4, @lbl6836, @lbl6837+@lbl6836+ dbgloc 189+ %t5 =l call $bytes__empty()+ ret %t5+@lbl6837+ dbgloc 191+ %t7 =l loadl %payload+ %t8 =l copy 1+ %t6 =l add %t7, %t8+ %t9 =l copy %t6+ %t11 =l add %payload, 8+ %t10 =l loadl %t11+ %t12 =l copy 1+ %t13 =l sub %t10, %t12+ %t14 =l call $reader__new(l %t9, l %t13)+ %t15 =l call $malloc(l 24)+ call $memset(l %t15, w 0, l 24)+ call $memcpy(l %t15, l %t14, l 24)+ storel %t15, %t16+ call $__sx_dbg_keep(l %t16)+ dbgvar "r", "reader.Reader", %t16, 8, 5, 191+ dbgloc 195+ %t17 =l loadl %t16+ %t18 =l copy 4096+ %t19 =l call $reader__Reader__read_bytes(l %t20, l %t17, l %t18)+ storel %t20, %t21+ call $__sx_dbg_keep(l %t21)+ dbgvar "decoded", "result[bytes.Bytes, derr.DecodeError]", %t21, 8, 5, 195+ dbgloc 196+ %t22 =l loadl %t20+ %t23 =w ceql %t22, 0+ jnz %t23, @lbl6839, @lbl6840+@lbl6839+ %t25 =l add %t20, 8+ %t24 =l loadl %t25+ dbgloc 198+ %t26 =l call $bytes__Bytes__dup(l %t24)+ ret %t26+@lbl6840+ dbgloc 201+ %t27 =l call $bytes__empty()+ ret %t27+@lbl6841+ ret 0+}++export function w $wire__put_bytes_list(l %b, l %xs) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t7 =l alloc8 8+ dbgloc 206+ storel %b, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "b", "buf.Buf", %t0, 8, 5, 206+ storel %xs, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "xs", "list[bytes.Bytes]", %t1, 8, 5, 206+ dbgloc 207+ %t2 =l loadl %t0+ %t4 =l call $sxqbe_list_len(l %xs)+ %t5 =l copy %t4+ %t6 =w call $buf__Buf__put_varint(l %t2, l %t5)+ dbgloc 208+ storel 0, %t7+ %t8 =l call $sxqbe_list_len(l %xs)+@lbl6842+ %t9 =l loadl %t7+ %t10 =w csltl %t9, %t8+ jnz %t10, @lbl6843, @lbl6844+@lbl6843+ %t11 =l call $sxqbe_list_buf(l %xs)+ %t12 =l mul %t9, 8+ %t13 =l add %t11, %t12+ %t14 =l loadl %t13+ dbgloc 209+ %t15 =l loadl %t0+ %t16 =w call $buf__Buf__put_length_prefixed(l %t15, l %t14)+@lbl6845+ %t17 =l add %t9, 1+ storel %t17, %t7+ jmp @lbl6842+@lbl6844+ ret 0+}++export function w $wire__put_id_list(l %b, l %xs) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t7 =l alloc8 8+ dbgloc 213+ storel %b, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "b", "buf.Buf", %t0, 8, 5, 213+ storel %xs, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "xs", "list[bytes.Bytes]", %t1, 8, 5, 213+ dbgloc 214+ %t2 =l loadl %t0+ %t4 =l call $sxqbe_list_len(l %xs)+ %t5 =l copy %t4+ %t6 =w call $buf__Buf__put_varint(l %t2, l %t5)+ dbgloc 215+ storel 0, %t7+ %t8 =l call $sxqbe_list_len(l %xs)+@lbl6846+ %t9 =l loadl %t7+ %t10 =w csltl %t9, %t8+ jnz %t10, @lbl6847, @lbl6848+@lbl6847+ %t11 =l call $sxqbe_list_buf(l %xs)+ %t12 =l mul %t9, 8+ %t13 =l add %t11, %t12+ %t14 =l loadl %t13+ dbgloc 216+ %t15 =l loadl %t0+ %t16 =l loadl %t14+ %t17 =l copy 32+ %t18 =w call $buf__Buf__put_raw(l %t15, l %t16, l %t17)+@lbl6849+ %t19 =l add %t9, 1+ storel %t19, %t7+ jmp @lbl6846+@lbl6848+ ret 0+}++export function l $wire__read_bytes_list(l %__ret, l %data, l %max) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t7 =l alloc8 8+ %t10 =l alloc8 16+ %t15 =l alloc8 8+ %t17 =l alloc8 8+ %t19 =l alloc8 8+ %t25 =l alloc8 16+ %t30 =l alloc8 8+ %t48 =l alloc8 16+ %t53 =l alloc8 16+ dbgloc 220+ storel %data, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "data", "bytes.Bytes", %t0, 8, 5, 220+ storel %max, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "max", "usize", %t1, 8, 5, 220+ dbgloc 224+ %t2 =l loadl %data+ %t4 =l add %data, 8+ %t3 =l loadl %t4+ %t5 =l call $reader__new(l %t2, l %t3)+ %t6 =l call $malloc(l 24)+ call $memset(l %t6, w 0, l 24)+ call $memcpy(l %t6, l %t5, l 24)+ storel %t6, %t7+ call $__sx_dbg_keep(l %t7)+ dbgvar "r", "reader.Reader", %t7, 8, 5, 224+ dbgloc 225+ %t8 =l loadl %t7+ %t9 =l call $reader__Reader__read_list_len(l %t10, l %t8, l %max)+ %t11 =l loadl %t10+ %t12 =w ceql %t11, 0+ jnz %t12, @lbl6850, @lbl6851+@lbl6851+ call $memcpy(l %__ret, l %t10, l 16)+ ret %__ret+@lbl6850+ %t14 =l add %t10, 8+ %t13 =l loadl %t14+ storel %t13, %t15+ call $__sx_dbg_keep(l %t15)+ dbgvar "n", "usize", %t15, 8, 5, 225+ dbgloc 226+ %t16 =l call $lists__new__GENMONO__bytes__Bytes()++ storel %t16, %t17+ call $__sx_dbg_keep(l %t17)+ dbgvar "out", "list[bytes.Bytes]", %t17, 8, 5, 226+ dbgloc 227+ %t18 =l copy 0+ storel %t18, %t19+ call $__sx_dbg_keep(l %t19)+ dbgvar "i", "usize", %t19, 8, 5, 227+ dbgloc 228+ jmp @lbl6852+@lbl6852+ %t20 =l loadl %t19+ %t21 =w csltl %t20, %t13+ jnz %t21, @lbl6853, @lbl6855+@lbl6853+ dbgloc 229+ %t22 =l loadl %t7+ %t23 =l copy 16777216+ %t24 =l call $reader__Reader__read_bytes(l %t25, l %t22, l %t23)+ %t26 =l loadl %t25+ %t27 =w ceql %t26, 0+ jnz %t27, @lbl6856, @lbl6857+@lbl6857+ call $memcpy(l %__ret, l %t25, l 16)+ ret %__ret+@lbl6856+ %t29 =l add %t25, 8+ %t28 =l loadl %t29+ storel %t28, %t30+ call $__sx_dbg_keep(l %t30)+ dbgvar "v", "bytes.Bytes", %t30, 8, 5, 229+ dbgloc 230+ %t32 =l call $sxqbe_list_ensure(l %t17)+ %t33 =l call $bytes__Bytes__dup(l %t28)+ %t34 =l add %t32, 8+ %t35 =l add %t32, 16+ %t36 =l loadl %t34+ %t37 =l loadl %t35+ %t39 =l add %t36, 1+ %t38 =w call $sxqbe_list_grow(l %t32, l %t39)+ %t40 =l call $sxqbe_list_buf(l %t32)+ %t41 =l mul %t36, 8+ %t42 =l add %t40, %t41+ storel %t33, %t42+ %t43 =l add %t36, 1+ storel %t43, %t34+ %t31 =l copy 0+ dbgloc 231+ %t44 =l loadl %t19+ %t45 =l add %t44, 1+ storel %t45, %t19+ jmp @lbl6854+@lbl6854+ jmp @lbl6852+@lbl6855+ dbgloc 233+ %t46 =l loadl %t7+ %t47 =l call $reader__Reader__finish(l %t48, l %t46)+ %t49 =l loadl %t48+ %t50 =w ceql %t49, 0+ jnz %t50, @lbl6858, @lbl6859+@lbl6859+ call $memcpy(l %__ret, l %t48, l 16)+ ret %__ret+@lbl6858+ %t52 =l add %t48, 8+ %t51 =l loadl %t52+ dbgloc 234+ call $memset(l %t53, w 0, l 16)+ storel 0, %t53+ %t54 =l loadl %t17+ %t55 =l add %t53, 8+ storel %t54, %t55+ call $memcpy(l %__ret, l %t53, l 16)+ ret %__ret+}++export function l $wire__read_id_list(l %__ret, l %data, l %max) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t7 =l alloc8 8+ %t10 =l alloc8 16+ %t15 =l alloc8 8+ %t17 =l alloc8 8+ %t19 =l alloc8 8+ %t24 =l alloc8 16+ %t29 =l alloc8 8+ %t33 =l alloc8 8+ %t56 =l alloc8 16+ %t61 =l alloc8 16+ dbgloc 237+ storel %data, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "data", "bytes.Bytes", %t0, 8, 5, 237+ storel %max, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "max", "usize", %t1, 8, 5, 237+ dbgloc 241+ %t2 =l loadl %data+ %t4 =l add %data, 8+ %t3 =l loadl %t4+ %t5 =l call $reader__new(l %t2, l %t3)+ %t6 =l call $malloc(l 24)+ call $memset(l %t6, w 0, l 24)+ call $memcpy(l %t6, l %t5, l 24)+ storel %t6, %t7+ call $__sx_dbg_keep(l %t7)+ dbgvar "r", "reader.Reader", %t7, 8, 5, 241+ dbgloc 242+ %t8 =l loadl %t7+ %t9 =l call $reader__Reader__read_list_len(l %t10, l %t8, l %max)+ %t11 =l loadl %t10+ %t12 =w ceql %t11, 0+ jnz %t12, @lbl6860, @lbl6861+@lbl6861+ call $memcpy(l %__ret, l %t10, l 16)+ ret %__ret+@lbl6860+ %t14 =l add %t10, 8+ %t13 =l loadl %t14+ storel %t13, %t15+ call $__sx_dbg_keep(l %t15)+ dbgvar "n", "usize", %t15, 8, 5, 242+ dbgloc 243+ %t16 =l call $lists__new__GENMONO__bytes__Bytes()++ storel %t16, %t17+ call $__sx_dbg_keep(l %t17)+ dbgvar "out", "list[bytes.Bytes]", %t17, 8, 5, 243+ dbgloc 244+ %t18 =l copy 0+ storel %t18, %t19+ call $__sx_dbg_keep(l %t19)+ dbgvar "i", "usize", %t19, 8, 5, 244+ dbgloc 245+ jmp @lbl6862+@lbl6862+ %t20 =l loadl %t19+ %t21 =w csltl %t20, %t13+ jnz %t21, @lbl6863, @lbl6865+@lbl6863+ dbgloc 246+ %t22 =l loadl %t7+ %t23 =l call $reader__Reader__read_id(l %t24, l %t22)+ %t25 =l loadl %t24+ %t26 =w ceql %t25, 0+ jnz %t26, @lbl6866, @lbl6867+@lbl6867+ call $memcpy(l %__ret, l %t24, l 16)+ ret %__ret+@lbl6866+ %t28 =l add %t24, 8+ %t27 =l loadl %t28+ storel %t27, %t29+ call $__sx_dbg_keep(l %t29)+ dbgvar "p", "ref u8", %t29, 8, 7, 246+ dbgloc 247+ %t31 =l copy 32+ %t30 =l call $malloc(l %t31)+ %t32 =l copy %t30+ storel %t32, %t33+ call $__sx_dbg_keep(l %t33)+ dbgvar "copy", "ref u8", %t33, 8, 7, 247+ dbgloc 248+ %t35 =l copy %t32+ %t36 =l copy %t27+ %t37 =l copy 32+ call $memcpy(l %t35, l %t36, l %t37)+ %t34 =l copy 0+ dbgloc 249+ %t39 =l call $sxqbe_list_ensure(l %t17)+ %t40 =l copy 32+ %t41 =l call $bytes__bytes(l %t32, l %t40)+ %t42 =l add %t39, 8+ %t43 =l add %t39, 16+ %t44 =l loadl %t42+ %t45 =l loadl %t43+ %t47 =l add %t44, 1+ %t46 =w call $sxqbe_list_grow(l %t39, l %t47)+ %t48 =l call $sxqbe_list_buf(l %t39)+ %t49 =l mul %t44, 8+ %t50 =l add %t48, %t49+ storel %t41, %t50+ %t51 =l add %t44, 1+ storel %t51, %t42+ %t38 =l copy 0+ dbgloc 250+ %t52 =l loadl %t19+ %t53 =l add %t52, 1+ storel %t53, %t19+ jmp @lbl6864+@lbl6864+ jmp @lbl6862+@lbl6865+ dbgloc 252+ %t54 =l loadl %t7+ %t55 =l call $reader__Reader__finish(l %t56, l %t54)+ %t57 =l loadl %t56+ %t58 =w ceql %t57, 0+ jnz %t58, @lbl6868, @lbl6869+@lbl6869+ call $memcpy(l %__ret, l %t56, l 16)+ ret %__ret+@lbl6868+ %t60 =l add %t56, 8+ %t59 =l loadl %t60+ dbgloc 253+ call $memset(l %t61, w 0, l 16)+ storel 0, %t61+ %t62 =l loadl %t17+ %t63 =l add %t61, 8+ storel %t62, %t63+ call $memcpy(l %__ret, l %t61, l 16)+ ret %__ret+}++export function w $wire__free_bytes_list(l %xs) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 256+ storel %xs, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "xs", "list[bytes.Bytes]", %t0, 8, 5, 256+ dbgloc 257+ storel 0, %t1+ %t2 =l call $sxqbe_list_len(l %xs)+@lbl6870+ %t3 =l loadl %t1+ %t4 =w csltl %t3, %t2+ jnz %t4, @lbl6871, @lbl6872+@lbl6871+ %t5 =l call $sxqbe_list_buf(l %xs)+ %t6 =l mul %t3, 8+ %t7 =l add %t5, %t6+ %t8 =l loadl %t7+ dbgloc 258+ %t9 =l loadl %t8+ %t10 =l copy 0+ %t11 =w cnel %t9, %t10+ jnz %t11, @lbl6874, @lbl6875+@lbl6874+ dbgloc 259+ %t12 =w call $bytes__free_owned(l %t8)+ jmp @lbl6875+@lbl6875+@lbl6873+ %t13 =l add %t3, 1+ storel %t13, %t1+ jmp @lbl6870+@lbl6872+ dbgloc 262+ call $sxqbe_list_free(l %xs)+ %t14 =l copy 0+ ret 0+}++dbgfile "src/protocol/messages.sx"+data $msg__PROTOCOL_VERSION = { l 1 }+function w $msg__put_u16_be(l %b, w %v) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 54+ storel %b, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "b", "buf.Buf", %t0, 8, 5, 54+ storew %v, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "v", "u16", %t1, 2, 7, 54+ dbgloc 55+ %t2 =l loadl %t0+ %t3 =l extsw %v+ %t4 =l copy 8+ %t6 =l extuw %t3+ %t5 =l shr %t6, %t4+ %t7 =l copy 255+ %t8 =l and %t5, %t7+ %t9 =w call $buf__Buf__put_u8(l %t2, w %t8)+ dbgloc 56+ %t10 =l loadl %t0+ %t11 =l extsw %v+ %t12 =l copy 255+ %t14 =l extsw %t11+ %t13 =l and %t14, %t12+ %t15 =w call $buf__Buf__put_u8(l %t10, w %t13)+ ret 0+}++function l $msg__read_u16_be(l %__ret, l %r) {+@start+ %t0 =l alloc8 8+ %t3 =l alloc8 16+ %t11 =l alloc8 8+ %t14 =l alloc8 16+ %t22 =l alloc8 8+ %t23 =l alloc8 16+ dbgloc 59+ storel %r, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "r", "reader.Reader", %t0, 8, 5, 59+ dbgloc 60+ %t1 =l loadl %t0+ %t2 =l call $reader__Reader__read_u8(l %t3, l %t1)+ %t4 =l loadl %t3+ %t5 =w ceql %t4, 0+ jnz %t5, @lbl6877, @lbl6878+@lbl6878+ call $memcpy(l %__ret, l %t3, l 16)+ ret %__ret+@lbl6877+ %t7 =l add %t3, 8+ %t6 =w loadw %t7+ %t8 =w copy %t6+ %t9 =w copy %t8+ %t10 =w extub %t9+ storew %t10, %t11+ call $__sx_dbg_keep(l %t11)+ dbgvar "a", "u8", %t11, 1, 7, 60+ dbgloc 61+ %t12 =l loadl %t0+ %t13 =l call $reader__Reader__read_u8(l %t14, l %t12)+ %t15 =l loadl %t14+ %t16 =w ceql %t15, 0+ jnz %t16, @lbl6879, @lbl6880+@lbl6880+ call $memcpy(l %__ret, l %t14, l 16)+ ret %__ret+@lbl6879+ %t18 =l add %t14, 8+ %t17 =w loadw %t18+ %t19 =w copy %t17+ %t20 =w copy %t19+ %t21 =w extub %t20+ storew %t21, %t22+ call $__sx_dbg_keep(l %t22)+ dbgvar "c", "u8", %t22, 1, 7, 61+ dbgloc 62+ call $memset(l %t23, w 0, l 16)+ storel 0, %t23+ %t24 =l extsw %t10+ %t25 =l copy 8+ %t27 =l extsw %t24+ %t26 =l shl %t27, %t25+ %t28 =l extsw %t21+ %t30 =l extsw %t28+ %t29 =l or %t26, %t30+ %t31 =l add %t23, 8+ storew %t29, %t31+ call $memcpy(l %__ret, l %t23, l 16)+ ret %__ret+}++function w $msg__put_list(l %b, l %xs) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t7 =l alloc8 8+ dbgloc 65+ storel %b, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "b", "buf.Buf", %t0, 8, 5, 65+ storel %xs, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "xs", "list[bytes.Bytes]", %t1, 8, 5, 65+ dbgloc 66+ %t2 =l loadl %t0+ %t4 =l call $sxqbe_list_len(l %xs)+ %t5 =l copy %t4+ %t6 =w call $buf__Buf__put_varint(l %t2, l %t5)+ dbgloc 67+ storel 0, %t7+ %t8 =l call $sxqbe_list_len(l %xs)+@lbl6881+ %t9 =l loadl %t7+ %t10 =w csltl %t9, %t8+ jnz %t10, @lbl6882, @lbl6883+@lbl6882+ %t11 =l call $sxqbe_list_buf(l %xs)+ %t12 =l mul %t9, 8+ %t13 =l add %t11, %t12+ %t14 =l loadl %t13+ dbgloc 68+ %t15 =l loadl %t0+ %t16 =w call $buf__Buf__put_length_prefixed(l %t15, l %t14)+@lbl6884+ %t17 =l add %t9, 1+ storel %t17, %t7+ jmp @lbl6881+@lbl6883+ ret 0+}++function l $msg__read_list(l %__ret, l %r, l %max) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t4 =l alloc8 16+ %t9 =l alloc8 8+ %t11 =l alloc8 8+ %t13 =l alloc8 8+ %t19 =l alloc8 16+ %t24 =l alloc8 8+ %t40 =l alloc8 16+ dbgloc 72+ storel %r, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "r", "reader.Reader", %t0, 8, 5, 72+ storel %max, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "max", "usize", %t1, 8, 5, 72+ dbgloc 73+ %t2 =l loadl %t0+ %t3 =l call $reader__Reader__read_list_len(l %t4, l %t2, l %max)+ %t5 =l loadl %t4+ %t6 =w ceql %t5, 0+ jnz %t6, @lbl6885, @lbl6886+@lbl6886+ call $memcpy(l %__ret, l %t4, l 16)+ ret %__ret+@lbl6885+ %t8 =l add %t4, 8+ %t7 =l loadl %t8+ storel %t7, %t9+ call $__sx_dbg_keep(l %t9)+ dbgvar "n", "usize", %t9, 8, 5, 73+ dbgloc 74+ %t10 =l call $lists__new__GENMONO__bytes__Bytes()++ storel %t10, %t11+ call $__sx_dbg_keep(l %t11)+ dbgvar "out", "list[bytes.Bytes]", %t11, 8, 5, 74+ dbgloc 75+ %t12 =l copy 0+ storel %t12, %t13+ call $__sx_dbg_keep(l %t13)+ dbgvar "i", "usize", %t13, 8, 5, 75+ dbgloc 76+ jmp @lbl6887+@lbl6887+ %t14 =l loadl %t13+ %t15 =w csltl %t14, %t7+ jnz %t15, @lbl6888, @lbl6890+@lbl6888+ dbgloc 77+ %t16 =l loadl %t0+ %t17 =l copy 4096+ %t18 =l call $reader__Reader__read_bytes(l %t19, l %t16, l %t17)+ %t20 =l loadl %t19+ %t21 =w ceql %t20, 0+ jnz %t21, @lbl6891, @lbl6892+@lbl6892+ call $memcpy(l %__ret, l %t19, l 16)+ ret %__ret+@lbl6891+ %t23 =l add %t19, 8+ %t22 =l loadl %t23+ storel %t22, %t24+ call $__sx_dbg_keep(l %t24)+ dbgvar "v", "bytes.Bytes", %t24, 8, 5, 77+ dbgloc 78+ %t26 =l call $sxqbe_list_ensure(l %t11)+ %t27 =l call $bytes__Bytes__dup(l %t22)+ %t28 =l add %t26, 8+ %t29 =l add %t26, 16+ %t30 =l loadl %t28+ %t31 =l loadl %t29+ %t33 =l add %t30, 1+ %t32 =w call $sxqbe_list_grow(l %t26, l %t33)+ %t34 =l call $sxqbe_list_buf(l %t26)+ %t35 =l mul %t30, 8+ %t36 =l add %t34, %t35+ storel %t27, %t36+ %t37 =l add %t30, 1+ storel %t37, %t28+ %t25 =l copy 0+ dbgloc 79+ %t38 =l loadl %t13+ %t39 =l add %t38, 1+ storel %t39, %t13+ jmp @lbl6889+@lbl6889+ jmp @lbl6887+@lbl6890+ dbgloc 81+ call $memset(l %t40, w 0, l 16)+ storel 0, %t40+ %t41 =l loadl %t11+ %t42 =l add %t40, 8+ storel %t41, %t42+ call $memcpy(l %__ret, l %t40, l 16)+ ret %__ret+}++function w $msg__optional_id(l %b, l %id) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t5 =l alloc4 1+ dbgloc 84+ storel %b, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "b", "buf.Buf", %t0, 8, 5, 84+ storel %id, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "id", "bytes.Bytes", %t1, 8, 5, 84+ dbgloc 85+ %t2 =l loadl %id+ %t3 =l copy 0+ %t4 =w ceql %t2, %t3+ storew %t4, %t5+ jnz %t4, @lbl6897, @lbl6896+@lbl6896+ %t7 =l add %id, 8+ %t6 =l loadl %t7+ %t8 =l copy 32+ %t9 =w cnel %t6, %t8+ storew %t9, %t5+ jmp @lbl6897+@lbl6897+ %t10 =w loadw %t5+ jnz %t10, @lbl6893, @lbl6895+@lbl6893+ dbgloc 86+ %t11 =l loadl %t0+ %t12 =l copy 0+ %t14 =w copy %t12+ %t13 =w call $buf__Buf__put_u8(l %t11, w %t14)+ jmp @lbl6894+@lbl6895+ dbgloc 88+ %t15 =l loadl %t0+ %t16 =l copy 1+ %t18 =w copy %t16+ %t17 =w call $buf__Buf__put_u8(l %t15, w %t18)+ dbgloc 89+ %t19 =l loadl %t0+ %t20 =l loadl %id+ %t21 =l copy 32+ %t22 =w call $buf__Buf__put_raw(l %t19, l %t20, l %t21)+ jmp @lbl6894+@lbl6894+ ret 0+}++function l $msg__read_optional_id(l %__ret, l %r) {+@start+ %t0 =l alloc8 8+ %t3 =l alloc8 16+ %t11 =l alloc8 8+ %t14 =l alloc8 16+ %t19 =l alloc8 16+ %t29 =l alloc8 16+ %t34 =l alloc8 8+ %t35 =l alloc8 16+ dbgloc 93+ storel %r, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "r", "reader.Reader", %t0, 8, 5, 93+ dbgloc 94+ %t1 =l loadl %t0+ %t2 =l call $reader__Reader__read_u8(l %t3, l %t1)+ %t4 =l loadl %t3+ %t5 =w ceql %t4, 0+ jnz %t5, @lbl6898, @lbl6899+@lbl6899+ call $memcpy(l %__ret, l %t3, l 16)+ ret %__ret+@lbl6898+ %t7 =l add %t3, 8+ %t6 =w loadw %t7+ %t8 =w copy %t6+ %t9 =w copy %t8+ %t10 =w extub %t9+ storew %t10, %t11+ call $__sx_dbg_keep(l %t11)+ dbgvar "tag", "u8", %t11, 1, 7, 94+ dbgloc 95+ %t12 =w copy 0+ %t13 =w ceqw %t10, %t12+ jnz %t13, @lbl6900, @lbl6901+@lbl6900+ dbgloc 96+ call $memset(l %t14, w 0, l 16)+ storel 0, %t14+ %t15 =l call $bytes__empty()+ %t16 =l add %t14, 8+ storel %t15, %t16+ call $memcpy(l %__ret, l %t14, l 16)+ ret %__ret+@lbl6901+ dbgloc 98+ %t17 =w copy 1+ %t18 =w cnew %t10, %t17+ jnz %t18, @lbl6903, @lbl6904+@lbl6903+ dbgloc 99+ call $memset(l %t19, w 0, l 16)+ storel 1, %t19+ %t20 =l copy 3+ %t21 =l loadl %t0+ %t22 =l call $reader__Reader__offset(l %t21)+ %t23 =l copy 1+ %t24 =l sub %t22, %t23+ %t25 =l call $derr__fail(l %t20, l %t24)+ %t26 =l add %t19, 8+ storel %t25, %t26+ call $memcpy(l %__ret, l %t19, l 16)+ ret %__ret+@lbl6904+ dbgloc 101+ %t27 =l loadl %t0+ %t28 =l call $reader__Reader__read_id(l %t29, l %t27)+ %t30 =l loadl %t29+ %t31 =w ceql %t30, 0+ jnz %t31, @lbl6906, @lbl6907+@lbl6907+ call $memcpy(l %__ret, l %t29, l 16)+ ret %__ret+@lbl6906+ %t33 =l add %t29, 8+ %t32 =l loadl %t33+ storel %t32, %t34+ call $__sx_dbg_keep(l %t34)+ dbgvar "p", "ref u8", %t34, 8, 7, 101+ dbgloc 102+ call $memset(l %t35, w 0, l 16)+ storel 0, %t35+ %t36 =l copy 32+ %t37 =l call $bytes__bytes(l %t32, l %t36)+ %t38 =l copy 0+ %t39 =l copy 32+ %t40 =l call $bytes__Bytes__slice(l %t37, l %t38, l %t39)+ %t41 =l add %t35, 8+ storel %t40, %t41+ call $memcpy(l %__ret, l %t35, l 16)+ ret %__ret+}++export function l $msg__encode_hello(l %h) {+@start+ %t0 =l alloc8 8+ %t4 =l alloc8 8+ %t25 =l alloc8 8+ dbgloc 105+ storel %h, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "h", "Hello", %t0, 8, 5, 105+ dbgloc 106+ %t1 =l copy 128+ %t2 =l call $buf__new(l %t1)+ %t3 =l call $malloc(l 24)+ call $memset(l %t3, w 0, l 24)+ call $memcpy(l %t3, l %t2, l 24)+ storel %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "b", "buf.Buf", %t4, 8, 5, 106+ dbgloc 107+ %t5 =l loadl %t4+ %t6 =l loaduh %h+ %t7 =w call $msg__put_u16_be(l %t5, w %t6)+ dbgloc 108+ %t8 =l loadl %t4+ %t10 =l add %h, 2+ %t9 =l loaduh %t10+ %t11 =w call $msg__put_u16_be(l %t8, w %t9)+ dbgloc 109+ %t12 =l loadl %t4+ %t14 =l add %h, 4+ %t13 =l loadl %t14+ %t15 =w call $msg__put_list(l %t12, l %t13)+ dbgloc 110+ %t16 =l loadl %t4+ %t17 =l add %h, 12+ %t18 =w call $buf__Buf__put_length_prefixed(l %t16, l %t17)+ dbgloc 111+ %t19 =l loadl %t4+ %t20 =l add %h, 28+ %t21 =w call $buf__Buf__put_length_prefixed(l %t19, l %t20)+ dbgloc 112+ %t22 =l loadl %t4+ %t23 =l call $buf__Buf__view(l %t22)+ %t24 =l call $bytes__Bytes__dup(l %t23)+ storel %t24, %t25+ call $__sx_dbg_keep(l %t25)+ dbgvar "out", "bytes.Bytes", %t25, 8, 5, 112+ dbgloc 113+ %t26 =l loadl %t4+ %t27 =w call $buf__Buf__free(l %t26)+ dbgloc 114+ ret %t24+}++export function l $msg__decode_hello(l %__ret, l %data) {+@start+ %t0 =l alloc8 8+ %t6 =l alloc8 8+ %t9 =l alloc8 16+ %t17 =l alloc8 8+ %t20 =l alloc8 16+ %t28 =l alloc8 8+ %t32 =l alloc8 16+ %t37 =l alloc8 8+ %t41 =l alloc8 16+ %t46 =l alloc8 8+ %t50 =l alloc8 16+ %t55 =l alloc8 8+ %t58 =l alloc8 16+ %t63 =l alloc8 16+ dbgloc 117+ storel %data, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "data", "bytes.Bytes", %t0, 8, 5, 117+ dbgloc 118+ %t1 =l loadl %data+ %t3 =l add %data, 8+ %t2 =l loadl %t3+ %t4 =l call $reader__new(l %t1, l %t2)+ %t5 =l call $malloc(l 24)+ call $memset(l %t5, w 0, l 24)+ call $memcpy(l %t5, l %t4, l 24)+ storel %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "r", "reader.Reader", %t6, 8, 5, 118+ dbgloc 119+ %t7 =l loadl %t6+ %t8 =l call $msg__read_u16_be(l %t9, l %t7)+ %t10 =l loadl %t9+ %t11 =w ceql %t10, 0+ jnz %t11, @lbl6908, @lbl6909+@lbl6909+ call $memcpy(l %__ret, l %t9, l 16)+ ret %__ret+@lbl6908+ %t13 =l add %t9, 8+ %t12 =w loadw %t13+ %t14 =w copy %t12+ %t15 =w copy %t14+ %t16 =w extuh %t15+ storew %t16, %t17+ call $__sx_dbg_keep(l %t17)+ dbgvar "mn", "u16", %t17, 2, 7, 119+ dbgloc 120+ %t18 =l loadl %t6+ %t19 =l call $msg__read_u16_be(l %t20, l %t18)+ %t21 =l loadl %t20+ %t22 =w ceql %t21, 0+ jnz %t22, @lbl6910, @lbl6911+@lbl6911+ call $memcpy(l %__ret, l %t20, l 16)+ ret %__ret+@lbl6910+ %t24 =l add %t20, 8+ %t23 =w loadw %t24+ %t25 =w copy %t23+ %t26 =w copy %t25+ %t27 =w extuh %t26+ storew %t27, %t28+ call $__sx_dbg_keep(l %t28)+ dbgvar "mx", "u16", %t28, 2, 7, 120+ dbgloc 121+ %t29 =l loadl %t6+ %t30 =l copy 64+ %t31 =l call $msg__read_list(l %t32, l %t29, l %t30)+ %t33 =l loadl %t32+ %t34 =w ceql %t33, 0+ jnz %t34, @lbl6912, @lbl6913+@lbl6913+ call $memcpy(l %__ret, l %t32, l 16)+ ret %__ret+@lbl6912+ %t36 =l add %t32, 8+ %t35 =l loadl %t36+ storel %t35, %t37+ call $__sx_dbg_keep(l %t37)+ dbgvar "caps", "list[bytes.Bytes]", %t37, 8, 5, 121+ dbgloc 122+ %t38 =l loadl %t6+ %t39 =l copy 4096+ %t40 =l call $reader__Reader__read_bytes(l %t41, l %t38, l %t39)+ %t42 =l loadl %t41+ %t43 =w ceql %t42, 0+ jnz %t43, @lbl6914, @lbl6915+@lbl6915+ call $memcpy(l %__ret, l %t41, l 16)+ ret %__ret+@lbl6914+ %t45 =l add %t41, 8+ %t44 =l loadl %t45+ storel %t44, %t46+ call $__sx_dbg_keep(l %t46)+ dbgvar "repo_raw", "bytes.Bytes", %t46, 8, 5, 122+ dbgloc 123+ %t47 =l loadl %t6+ %t48 =l copy 64+ %t49 =l call $reader__Reader__read_bytes(l %t50, l %t47, l %t48)+ %t51 =l loadl %t50+ %t52 =w ceql %t51, 0+ jnz %t52, @lbl6916, @lbl6917+@lbl6917+ call $memcpy(l %__ret, l %t50, l 16)+ ret %__ret+@lbl6916+ %t54 =l add %t50, 8+ %t53 =l loadl %t54+ storel %t53, %t55+ call $__sx_dbg_keep(l %t55)+ dbgvar "nonce_raw", "bytes.Bytes", %t55, 8, 5, 123+ dbgloc 124+ %t56 =l loadl %t6+ %t57 =l call $reader__Reader__finish(l %t58, l %t56)+ %t59 =l loadl %t58+ %t60 =w ceql %t59, 0+ jnz %t60, @lbl6918, @lbl6919+@lbl6919+ call $memcpy(l %__ret, l %t58, l 16)+ ret %__ret+@lbl6918+ %t62 =l add %t58, 8+ %t61 =l loadl %t62+ dbgloc 125+ call $memset(l %t63, w 0, l 16)+ storel 0, %t63+ %t64 =l call $malloc(l 44)+ storeh %t16, %t64+ %t66 =l add %t64, 2+ storeh %t27, %t66+ %t67 =l add %t64, 4+ storel %t35, %t67+ %t68 =l add %t64, 12+ %t69 =l call $bytes__Bytes__dup(l %t44)+ call $memcpy(l %t68, l %t69, l 16)+ %t70 =l add %t64, 28+ %t71 =l call $bytes__Bytes__dup(l %t53)+ call $memcpy(l %t70, l %t71, l 16)+ %t72 =l add %t63, 8+ storel %t64, %t72+ call $memcpy(l %__ret, l %t63, l 16)+ ret %__ret+}++export function l $msg__encode_hello_ok(l %h) {+@start+ %t0 =l alloc8 8+ %t4 =l alloc8 8+ %t22 =l alloc8 8+ dbgloc 134+ storel %h, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "h", "HelloOk", %t0, 8, 5, 134+ dbgloc 135+ %t1 =l copy 128+ %t2 =l call $buf__new(l %t1)+ %t3 =l call $malloc(l 24)+ call $memset(l %t3, w 0, l 24)+ call $memcpy(l %t3, l %t2, l 24)+ storel %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "b", "buf.Buf", %t4, 8, 5, 135+ dbgloc 136+ %t5 =l loadl %t4+ %t6 =l loaduh %h+ %t7 =w call $msg__put_u16_be(l %t5, w %t6)+ dbgloc 137+ %t8 =l loadl %t4+ %t10 =l add %h, 2+ %t9 =l loadl %t10+ %t11 =w call $msg__put_list(l %t8, l %t9)+ dbgloc 138+ %t12 =l loadl %t4+ %t13 =l add %h, 10+ %t14 =w call $buf__Buf__put_length_prefixed(l %t12, l %t13)+ dbgloc 139+ %t15 =l loadl %t4+ %t17 =l add %h, 26+ %t16 =l loadub %t17+ %t18 =w call $buf__Buf__put_u8(l %t15, w %t16)+ dbgloc 140+ %t19 =l loadl %t4+ %t20 =l call $buf__Buf__view(l %t19)+ %t21 =l call $bytes__Bytes__dup(l %t20)+ storel %t21, %t22+ call $__sx_dbg_keep(l %t22)+ dbgvar "out", "bytes.Bytes", %t22, 8, 5, 140+ dbgloc 141+ %t23 =l loadl %t4+ %t24 =w call $buf__Buf__free(l %t23)+ dbgloc 142+ ret %t21+}++export function l $msg__decode_hello_ok(l %__ret, l %data) {+@start+ %t0 =l alloc8 8+ %t6 =l alloc8 8+ %t9 =l alloc8 16+ %t17 =l alloc8 8+ %t21 =l alloc8 16+ %t26 =l alloc8 8+ %t30 =l alloc8 16+ %t35 =l alloc8 8+ %t38 =l alloc8 16+ %t46 =l alloc8 8+ %t49 =l alloc8 16+ %t54 =l alloc8 16+ dbgloc 145+ storel %data, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "data", "bytes.Bytes", %t0, 8, 5, 145+ dbgloc 146+ %t1 =l loadl %data+ %t3 =l add %data, 8+ %t2 =l loadl %t3+ %t4 =l call $reader__new(l %t1, l %t2)+ %t5 =l call $malloc(l 24)+ call $memset(l %t5, w 0, l 24)+ call $memcpy(l %t5, l %t4, l 24)+ storel %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "r", "reader.Reader", %t6, 8, 5, 146+ dbgloc 147+ %t7 =l loadl %t6+ %t8 =l call $msg__read_u16_be(l %t9, l %t7)+ %t10 =l loadl %t9+ %t11 =w ceql %t10, 0+ jnz %t11, @lbl6920, @lbl6921+@lbl6921+ call $memcpy(l %__ret, l %t9, l 16)+ ret %__ret+@lbl6920+ %t13 =l add %t9, 8+ %t12 =w loadw %t13+ %t14 =w copy %t12+ %t15 =w copy %t14+ %t16 =w extuh %t15+ storew %t16, %t17+ call $__sx_dbg_keep(l %t17)+ dbgvar "v", "u16", %t17, 2, 7, 147+ dbgloc 148+ %t18 =l loadl %t6+ %t19 =l copy 64+ %t20 =l call $msg__read_list(l %t21, l %t18, l %t19)+ %t22 =l loadl %t21+ %t23 =w ceql %t22, 0+ jnz %t23, @lbl6922, @lbl6923+@lbl6923+ call $memcpy(l %__ret, l %t21, l 16)+ ret %__ret+@lbl6922+ %t25 =l add %t21, 8+ %t24 =l loadl %t25+ storel %t24, %t26+ call $__sx_dbg_keep(l %t26)+ dbgvar "caps", "list[bytes.Bytes]", %t26, 8, 5, 148+ dbgloc 149+ %t27 =l loadl %t6+ %t28 =l copy 64+ %t29 =l call $reader__Reader__read_bytes(l %t30, l %t27, l %t28)+ %t31 =l loadl %t30+ %t32 =w ceql %t31, 0+ jnz %t32, @lbl6924, @lbl6925+@lbl6925+ call $memcpy(l %__ret, l %t30, l 16)+ ret %__ret+@lbl6924+ %t34 =l add %t30, 8+ %t33 =l loadl %t34+ storel %t33, %t35+ call $__sx_dbg_keep(l %t35)+ dbgvar "nonce", "bytes.Bytes", %t35, 8, 5, 149+ dbgloc 150+ %t36 =l loadl %t6+ %t37 =l call $reader__Reader__read_u8(l %t38, l %t36)+ %t39 =l loadl %t38+ %t40 =w ceql %t39, 0+ jnz %t40, @lbl6926, @lbl6927+@lbl6927+ call $memcpy(l %__ret, l %t38, l 16)+ ret %__ret+@lbl6926+ %t42 =l add %t38, 8+ %t41 =w loadw %t42+ %t43 =w copy %t41+ %t44 =w copy %t43+ %t45 =w extub %t44+ storew %t45, %t46+ call $__sx_dbg_keep(l %t46)+ dbgvar "auth", "u8", %t46, 1, 7, 150+ dbgloc 151+ %t47 =l loadl %t6+ %t48 =l call $reader__Reader__finish(l %t49, l %t47)+ %t50 =l loadl %t49+ %t51 =w ceql %t50, 0+ jnz %t51, @lbl6928, @lbl6929+@lbl6929+ call $memcpy(l %__ret, l %t49, l 16)+ ret %__ret+@lbl6928+ %t53 =l add %t49, 8+ %t52 =l loadl %t53+ dbgloc 152+ call $memset(l %t54, w 0, l 16)+ storel 0, %t54+ %t55 =l call $malloc(l 27)+ storeh %t16, %t55+ %t57 =l add %t55, 2+ storel %t24, %t57+ %t58 =l add %t55, 10+ %t59 =l call $bytes__Bytes__dup(l %t33)+ call $memcpy(l %t58, l %t59, l 16)+ %t60 =l add %t55, 26+ storeb %t45, %t60+ %t61 =l add %t54, 8+ storel %t55, %t61+ call $memcpy(l %__ret, l %t54, l 16)+ ret %__ret+}++export function l $msg__encode_auth(l %a) {+@start+ %t0 =l alloc8 8+ %t4 =l alloc8 8+ %t14 =l alloc8 8+ dbgloc 160+ storel %a, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "a", "Auth", %t0, 8, 5, 160+ dbgloc 161+ %t1 =l copy 128+ %t2 =l call $buf__new(l %t1)+ %t3 =l call $malloc(l 24)+ call $memset(l %t3, w 0, l 24)+ call $memcpy(l %t3, l %t2, l 24)+ storel %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "b", "buf.Buf", %t4, 8, 5, 161+ dbgloc 162+ %t5 =l loadl %t4+ %t6 =l add %a, 0+ %t7 =w call $buf__Buf__put_length_prefixed(l %t5, l %t6)+ dbgloc 163+ %t8 =l loadl %t4+ %t9 =l add %a, 16+ %t10 =w call $buf__Buf__put_length_prefixed(l %t8, l %t9)+ dbgloc 164+ %t11 =l loadl %t4+ %t12 =l call $buf__Buf__view(l %t11)+ %t13 =l call $bytes__Bytes__dup(l %t12)+ storel %t13, %t14+ call $__sx_dbg_keep(l %t14)+ dbgvar "out", "bytes.Bytes", %t14, 8, 5, 164+ dbgloc 165+ %t15 =l loadl %t4+ %t16 =w call $buf__Buf__free(l %t15)+ dbgloc 166+ ret %t13+}++export function l $msg__decode_auth(l %__ret, l %data) {+@start+ %t0 =l alloc8 8+ %t6 =l alloc8 8+ %t10 =l alloc8 16+ %t15 =l alloc8 8+ %t19 =l alloc8 16+ %t24 =l alloc8 8+ %t27 =l alloc8 16+ %t32 =l alloc8 16+ dbgloc 169+ storel %data, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "data", "bytes.Bytes", %t0, 8, 5, 169+ dbgloc 170+ %t1 =l loadl %data+ %t3 =l add %data, 8+ %t2 =l loadl %t3+ %t4 =l call $reader__new(l %t1, l %t2)+ %t5 =l call $malloc(l 24)+ call $memset(l %t5, w 0, l 24)+ call $memcpy(l %t5, l %t4, l 24)+ storel %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "r", "reader.Reader", %t6, 8, 5, 170+ dbgloc 171+ %t7 =l loadl %t6+ %t8 =l copy 64+ %t9 =l call $reader__Reader__read_bytes(l %t10, l %t7, l %t8)+ %t11 =l loadl %t10+ %t12 =w ceql %t11, 0+ jnz %t12, @lbl6930, @lbl6931+@lbl6931+ call $memcpy(l %__ret, l %t10, l 16)+ ret %__ret+@lbl6930+ %t14 =l add %t10, 8+ %t13 =l loadl %t14+ storel %t13, %t15+ call $__sx_dbg_keep(l %t15)+ dbgvar "pub_raw", "bytes.Bytes", %t15, 8, 5, 171+ dbgloc 172+ %t16 =l loadl %t6+ %t17 =l copy 128+ %t18 =l call $reader__Reader__read_bytes(l %t19, l %t16, l %t17)+ %t20 =l loadl %t19+ %t21 =w ceql %t20, 0+ jnz %t21, @lbl6932, @lbl6933+@lbl6933+ call $memcpy(l %__ret, l %t19, l 16)+ ret %__ret+@lbl6932+ %t23 =l add %t19, 8+ %t22 =l loadl %t23+ storel %t22, %t24+ call $__sx_dbg_keep(l %t24)+ dbgvar "sig", "bytes.Bytes", %t24, 8, 5, 172+ dbgloc 173+ %t25 =l loadl %t6+ %t26 =l call $reader__Reader__finish(l %t27, l %t25)+ %t28 =l loadl %t27+ %t29 =w ceql %t28, 0+ jnz %t29, @lbl6934, @lbl6935+@lbl6935+ call $memcpy(l %__ret, l %t27, l 16)+ ret %__ret+@lbl6934+ %t31 =l add %t27, 8+ %t30 =l loadl %t31+ dbgloc 174+ call $memset(l %t32, w 0, l 16)+ storel 0, %t32+ %t33 =l call $malloc(l 32)+ %t34 =l add %t33, 0+ %t35 =l call $bytes__Bytes__dup(l %t13)+ call $memcpy(l %t34, l %t35, l 16)+ %t36 =l add %t33, 16+ %t37 =l call $bytes__Bytes__dup(l %t22)+ call $memcpy(l %t36, l %t37, l 16)+ %t38 =l add %t32, 8+ storel %t33, %t38+ call $memcpy(l %__ret, l %t32, l 16)+ ret %__ret+}++export function l $msg__encode_auth_ok(l %a) {+@start+ %t0 =l alloc8 8+ %t4 =l alloc8 8+ %t14 =l alloc8 8+ dbgloc 180+ storel %a, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "a", "AuthOk", %t0, 8, 5, 180+ dbgloc 181+ %t1 =l copy 64+ %t2 =l call $buf__new(l %t1)+ %t3 =l call $malloc(l 24)+ call $memset(l %t3, w 0, l 24)+ call $memcpy(l %t3, l %t2, l 24)+ storel %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "b", "buf.Buf", %t4, 8, 5, 181+ dbgloc 182+ %t5 =l loadl %t4+ %t6 =l loadub %a+ %t7 =w call $buf__Buf__put_u8(l %t5, w %t6)+ dbgloc 183+ %t8 =l loadl %t4+ %t9 =l add %a, 1+ %t10 =w call $buf__Buf__put_length_prefixed(l %t8, l %t9)+ dbgloc 184+ %t11 =l loadl %t4+ %t12 =l call $buf__Buf__view(l %t11)+ %t13 =l call $bytes__Bytes__dup(l %t12)+ storel %t13, %t14+ call $__sx_dbg_keep(l %t14)+ dbgvar "out", "bytes.Bytes", %t14, 8, 5, 184+ dbgloc 185+ %t15 =l loadl %t4+ %t16 =w call $buf__Buf__free(l %t15)+ dbgloc 186+ ret %t13+}++export function l $msg__decode_auth_ok(l %__ret, l %data) {+@start+ %t0 =l alloc8 8+ %t6 =l alloc8 8+ %t9 =l alloc8 16+ %t17 =l alloc8 8+ %t21 =l alloc8 16+ %t26 =l alloc8 8+ %t29 =l alloc8 16+ %t34 =l alloc8 16+ dbgloc 189+ storel %data, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "data", "bytes.Bytes", %t0, 8, 5, 189+ dbgloc 190+ %t1 =l loadl %data+ %t3 =l add %data, 8+ %t2 =l loadl %t3+ %t4 =l call $reader__new(l %t1, l %t2)+ %t5 =l call $malloc(l 24)+ call $memset(l %t5, w 0, l 24)+ call $memcpy(l %t5, l %t4, l 24)+ storel %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "r", "reader.Reader", %t6, 8, 5, 190+ dbgloc 191+ %t7 =l loadl %t6+ %t8 =l call $reader__Reader__read_u8(l %t9, l %t7)+ %t10 =l loadl %t9+ %t11 =w ceql %t10, 0+ jnz %t11, @lbl6936, @lbl6937+@lbl6937+ call $memcpy(l %__ret, l %t9, l 16)+ ret %__ret+@lbl6936+ %t13 =l add %t9, 8+ %t12 =w loadw %t13+ %t14 =w copy %t12+ %t15 =w copy %t14+ %t16 =w extub %t15+ storew %t16, %t17+ call $__sx_dbg_keep(l %t17)+ dbgvar "role", "u8", %t17, 1, 7, 191+ dbgloc 192+ %t18 =l loadl %t6+ %t19 =l copy 64+ %t20 =l call $reader__Reader__read_bytes(l %t21, l %t18, l %t19)+ %t22 =l loadl %t21+ %t23 =w ceql %t22, 0+ jnz %t23, @lbl6938, @lbl6939+@lbl6939+ call $memcpy(l %__ret, l %t21, l 16)+ ret %__ret+@lbl6938+ %t25 =l add %t21, 8+ %t24 =l loadl %t25+ storel %t24, %t26+ call $__sx_dbg_keep(l %t26)+ dbgvar "fp", "bytes.Bytes", %t26, 8, 5, 192+ dbgloc 193+ %t27 =l loadl %t6+ %t28 =l call $reader__Reader__finish(l %t29, l %t27)+ %t30 =l loadl %t29+ %t31 =w ceql %t30, 0+ jnz %t31, @lbl6940, @lbl6941+@lbl6941+ call $memcpy(l %__ret, l %t29, l 16)+ ret %__ret+@lbl6940+ %t33 =l add %t29, 8+ %t32 =l loadl %t33+ dbgloc 194+ call $memset(l %t34, w 0, l 16)+ storel 0, %t34+ %t35 =l call $malloc(l 17)+ storeb %t16, %t35+ %t37 =l add %t35, 1+ %t38 =l call $bytes__Bytes__dup(l %t24)+ call $memcpy(l %t37, l %t38, l 16)+ %t39 =l add %t34, 8+ storel %t35, %t39+ call $memcpy(l %__ret, l %t34, l 16)+ ret %__ret+}++export function l $msg__encode_refs(l %refs) {+@start+ %t0 =l alloc8 8+ %t4 =l alloc8 8+ %t10 =l alloc8 8+ %t37 =l alloc8 8+ dbgloc 197+ storel %refs, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "refs", "list[RefInfo]", %t0, 8, 5, 197+ dbgloc 198+ %t1 =l copy 256+ %t2 =l call $buf__new(l %t1)+ %t3 =l call $malloc(l 24)+ call $memset(l %t3, w 0, l 24)+ call $memcpy(l %t3, l %t2, l 24)+ storel %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "b", "buf.Buf", %t4, 8, 5, 198+ dbgloc 199+ %t5 =l loadl %t4+ %t7 =l call $sxqbe_list_len(l %refs)+ %t8 =l copy %t7+ %t9 =w call $buf__Buf__put_varint(l %t5, l %t8)+ dbgloc 200+ storel 0, %t10+ %t11 =l call $sxqbe_list_len(l %refs)+@lbl6942+ %t12 =l loadl %t10+ %t13 =w csltl %t12, %t11+ jnz %t13, @lbl6943, @lbl6944+@lbl6943+ %t14 =l call $sxqbe_list_buf(l %refs)+ %t15 =l mul %t12, 8+ %t16 =l add %t14, %t15+ %t17 =l loadl %t16+ dbgloc 201+ %t18 =l loadl %t4+ %t19 =l add %t17, 0+ %t20 =w call $buf__Buf__put_length_prefixed(l %t18, l %t19)+ dbgloc 202+ %t21 =l loadl %t4+ %t22 =l add %t17, 16+ %t23 =l loadl %t22+ %t24 =l copy 32+ %t25 =w call $buf__Buf__put_raw(l %t21, l %t23, l %t24)+ dbgloc 203+ %t26 =l loadl %t4+ %t27 =l add %t17, 32+ %t28 =w call $buf__Buf__put_length_prefixed(l %t26, l %t27)+ dbgloc 204+ %t29 =l loadl %t4+ %t31 =l add %t17, 48+ %t30 =l loadub %t31+ %t32 =w call $buf__Buf__put_u8(l %t29, w %t30)+@lbl6945+ %t33 =l add %t12, 1+ storel %t33, %t10+ jmp @lbl6942+@lbl6944+ dbgloc 206+ %t34 =l loadl %t4+ %t35 =l call $buf__Buf__view(l %t34)+ %t36 =l call $bytes__Bytes__dup(l %t35)+ storel %t36, %t37+ call $__sx_dbg_keep(l %t37)+ dbgvar "out", "bytes.Bytes", %t37, 8, 5, 206+ dbgloc 207+ %t38 =l loadl %t4+ %t39 =w call $buf__Buf__free(l %t38)+ dbgloc 208+ ret %t36+}++export function l $msg__decode_refs(l %__ret, l %data) {+@start+ %t0 =l alloc8 8+ %t6 =l alloc8 8+ %t10 =l alloc8 16+ %t15 =l alloc8 8+ %t17 =l alloc8 8+ %t19 =l alloc8 8+ %t25 =l alloc8 16+ %t30 =l alloc8 8+ %t33 =l alloc8 16+ %t38 =l alloc8 8+ %t42 =l alloc8 16+ %t47 =l alloc8 8+ %t50 =l alloc8 16+ %t58 =l alloc8 8+ %t62 =l alloc8 8+ %t92 =l alloc8 16+ %t97 =l alloc8 16+ dbgloc 211+ storel %data, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "data", "bytes.Bytes", %t0, 8, 5, 211+ dbgloc 212+ %t1 =l loadl %data+ %t3 =l add %data, 8+ %t2 =l loadl %t3+ %t4 =l call $reader__new(l %t1, l %t2)+ %t5 =l call $malloc(l 24)+ call $memset(l %t5, w 0, l 24)+ call $memcpy(l %t5, l %t4, l 24)+ storel %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "r", "reader.Reader", %t6, 8, 5, 212+ dbgloc 213+ %t7 =l loadl %t6+ %t8 =l copy 1000000+ %t9 =l call $reader__Reader__read_list_len(l %t10, l %t7, l %t8)+ %t11 =l loadl %t10+ %t12 =w ceql %t11, 0+ jnz %t12, @lbl6946, @lbl6947+@lbl6947+ call $memcpy(l %__ret, l %t10, l 16)+ ret %__ret+@lbl6946+ %t14 =l add %t10, 8+ %t13 =l loadl %t14+ storel %t13, %t15+ call $__sx_dbg_keep(l %t15)+ dbgvar "n", "usize", %t15, 8, 5, 213+ dbgloc 214+ %t16 =l call $lists__new__GENMONO__RefInfo()++ storel %t16, %t17+ call $__sx_dbg_keep(l %t17)+ dbgvar "out", "list[RefInfo]", %t17, 8, 5, 214+ dbgloc 215+ %t18 =l copy 0+ storel %t18, %t19+ call $__sx_dbg_keep(l %t19)+ dbgvar "i", "usize", %t19, 8, 5, 215+ dbgloc 216+ jmp @lbl6948+@lbl6948+ %t20 =l loadl %t19+ %t21 =w csltl %t20, %t13+ jnz %t21, @lbl6949, @lbl6951+@lbl6949+ dbgloc 217+ %t22 =l loadl %t6+ %t23 =l copy 4096+ %t24 =l call $reader__Reader__read_bytes(l %t25, l %t22, l %t23)+ %t26 =l loadl %t25+ %t27 =w ceql %t26, 0+ jnz %t27, @lbl6952, @lbl6953+@lbl6953+ call $memcpy(l %__ret, l %t25, l 16)+ ret %__ret+@lbl6952+ %t29 =l add %t25, 8+ %t28 =l loadl %t29+ storel %t28, %t30+ call $__sx_dbg_keep(l %t30)+ dbgvar "name", "bytes.Bytes", %t30, 8, 5, 217+ dbgloc 218+ %t31 =l loadl %t6+ %t32 =l call $reader__Reader__read_id(l %t33, l %t31)+ %t34 =l loadl %t33+ %t35 =w ceql %t34, 0+ jnz %t35, @lbl6954, @lbl6955+@lbl6955+ call $memcpy(l %__ret, l %t33, l 16)+ ret %__ret+@lbl6954+ %t37 =l add %t33, 8+ %t36 =l loadl %t37+ storel %t36, %t38+ call $__sx_dbg_keep(l %t38)+ dbgvar "p", "ref u8", %t38, 8, 7, 218+ dbgloc 219+ %t39 =l loadl %t6+ %t40 =l copy 64+ %t41 =l call $reader__Reader__read_bytes(l %t42, l %t39, l %t40)+ %t43 =l loadl %t42+ %t44 =w ceql %t43, 0+ jnz %t44, @lbl6956, @lbl6957+@lbl6957+ call $memcpy(l %__ret, l %t42, l 16)+ ret %__ret+@lbl6956+ %t46 =l add %t42, 8+ %t45 =l loadl %t46+ storel %t45, %t47+ call $__sx_dbg_keep(l %t47)+ dbgvar "cid", "bytes.Bytes", %t47, 8, 5, 219+ dbgloc 220+ %t48 =l loadl %t6+ %t49 =l call $reader__Reader__read_u8(l %t50, l %t48)+ %t51 =l loadl %t50+ %t52 =w ceql %t51, 0+ jnz %t52, @lbl6958, @lbl6959+@lbl6959+ call $memcpy(l %__ret, l %t50, l 16)+ ret %__ret+@lbl6958+ %t54 =l add %t50, 8+ %t53 =w loadw %t54+ %t55 =w copy %t53+ %t56 =w copy %t55+ %t57 =w extub %t56+ storew %t57, %t58+ call $__sx_dbg_keep(l %t58)+ dbgvar "rkind", "u8", %t58, 1, 7, 220+ dbgloc 221+ %t60 =l copy 32+ %t59 =l call $malloc(l %t60)+ %t61 =l copy %t59+ storel %t61, %t62+ call $__sx_dbg_keep(l %t62)+ dbgvar "target", "ref u8", %t62, 8, 7, 221+ dbgloc 222+ dbgloc 223+ %t64 =l copy %t61+ %t65 =l copy %t36+ %t66 =l copy 32+ call $memcpy(l %t64, l %t65, l %t66)+ %t63 =l copy 0+ dbgloc 225+ %t68 =l call $sxqbe_list_ensure(l %t17)+ %t69 =l call $malloc(l 49)+ %t70 =l add %t69, 0+ %t71 =l call $bytes__Bytes__dup(l %t28)+ call $memcpy(l %t70, l %t71, l 16)+ %t72 =l add %t69, 16+ %t73 =l copy 32+ %t74 =l call $bytes__bytes(l %t61, l %t73)+ call $memcpy(l %t72, l %t74, l 16)+ %t75 =l add %t69, 32+ %t76 =l call $bytes__Bytes__dup(l %t45)+ call $memcpy(l %t75, l %t76, l 16)+ %t77 =l add %t69, 48+ storeb %t57, %t77+ %t78 =l add %t68, 8+ %t79 =l add %t68, 16+ %t80 =l loadl %t78+ %t81 =l loadl %t79+ %t83 =l add %t80, 1+ %t82 =w call $sxqbe_list_grow(l %t68, l %t83)+ %t84 =l call $sxqbe_list_buf(l %t68)+ %t85 =l mul %t80, 8+ %t86 =l add %t84, %t85+ storel %t69, %t86+ %t87 =l add %t80, 1+ storel %t87, %t78+ %t67 =l copy 0+ dbgloc 234+ %t88 =l loadl %t19+ %t89 =l add %t88, 1+ storel %t89, %t19+ jmp @lbl6950+@lbl6950+ jmp @lbl6948+@lbl6951+ dbgloc 236+ %t90 =l loadl %t6+ %t91 =l call $reader__Reader__finish(l %t92, l %t90)+ %t93 =l loadl %t92+ %t94 =w ceql %t93, 0+ jnz %t94, @lbl6960, @lbl6961+@lbl6961+ call $memcpy(l %__ret, l %t92, l 16)+ ret %__ret+@lbl6960+ %t96 =l add %t92, 8+ %t95 =l loadl %t96+ dbgloc 237+ call $memset(l %t97, w 0, l 16)+ storel 0, %t97+ %t98 =l loadl %t17+ %t99 =l add %t97, 8+ storel %t98, %t99+ call $memcpy(l %__ret, l %t97, l 16)+ ret %__ret+}++export function l $msg__encode_ids(l %ids) {+@start+ %t0 =l alloc8 8+ %t8 =l alloc8 8+ %t14 =l alloc8 8+ %t30 =l alloc8 8+ dbgloc 240+ storel %ids, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "ids", "list[bytes.Bytes]", %t0, 8, 5, 240+ dbgloc 241+ %t1 =l loadl %ids+ %t2 =l copy 32+ %t3 =l mul %t1, %t2+ %t4 =l copy 8+ %t5 =l add %t3, %t4+ %t6 =l call $buf__new(l %t5)+ %t7 =l call $malloc(l 24)+ call $memset(l %t7, w 0, l 24)+ call $memcpy(l %t7, l %t6, l 24)+ storel %t7, %t8+ call $__sx_dbg_keep(l %t8)+ dbgvar "b", "buf.Buf", %t8, 8, 5, 241+ dbgloc 242+ %t9 =l loadl %t8+ %t11 =l call $sxqbe_list_len(l %ids)+ %t12 =l copy %t11+ %t13 =w call $buf__Buf__put_varint(l %t9, l %t12)+ dbgloc 243+ storel 0, %t14+ %t15 =l call $sxqbe_list_len(l %ids)+@lbl6962+ %t16 =l loadl %t14+ %t17 =w csltl %t16, %t15+ jnz %t17, @lbl6963, @lbl6964+@lbl6963+ %t18 =l call $sxqbe_list_buf(l %ids)+ %t19 =l mul %t16, 8+ %t20 =l add %t18, %t19+ %t21 =l loadl %t20+ dbgloc 244+ %t22 =l loadl %t8+ %t23 =l loadl %t21+ %t24 =l copy 32+ %t25 =w call $buf__Buf__put_raw(l %t22, l %t23, l %t24)+@lbl6965+ %t26 =l add %t16, 1+ storel %t26, %t14+ jmp @lbl6962+@lbl6964+ dbgloc 246+ %t27 =l loadl %t8+ %t28 =l call $buf__Buf__view(l %t27)+ %t29 =l call $bytes__Bytes__dup(l %t28)+ storel %t29, %t30+ call $__sx_dbg_keep(l %t30)+ dbgvar "out", "bytes.Bytes", %t30, 8, 5, 246+ dbgloc 247+ %t31 =l loadl %t8+ %t32 =w call $buf__Buf__free(l %t31)+ dbgloc 248+ ret %t29+}++export function l $msg__decode_ids(l %__ret, l %data, l %max) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t7 =l alloc8 8+ %t10 =l alloc8 16+ %t15 =l alloc8 8+ %t17 =l alloc8 8+ %t19 =l alloc8 8+ %t24 =l alloc8 16+ %t29 =l alloc8 8+ %t33 =l alloc8 8+ %t56 =l alloc8 16+ %t61 =l alloc8 16+ dbgloc 251+ storel %data, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "data", "bytes.Bytes", %t0, 8, 5, 251+ storel %max, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "max", "usize", %t1, 8, 5, 251+ dbgloc 252+ %t2 =l loadl %data+ %t4 =l add %data, 8+ %t3 =l loadl %t4+ %t5 =l call $reader__new(l %t2, l %t3)+ %t6 =l call $malloc(l 24)+ call $memset(l %t6, w 0, l 24)+ call $memcpy(l %t6, l %t5, l 24)+ storel %t6, %t7+ call $__sx_dbg_keep(l %t7)+ dbgvar "r", "reader.Reader", %t7, 8, 5, 252+ dbgloc 253+ %t8 =l loadl %t7+ %t9 =l call $reader__Reader__read_list_len(l %t10, l %t8, l %max)+ %t11 =l loadl %t10+ %t12 =w ceql %t11, 0+ jnz %t12, @lbl6966, @lbl6967+@lbl6967+ call $memcpy(l %__ret, l %t10, l 16)+ ret %__ret+@lbl6966+ %t14 =l add %t10, 8+ %t13 =l loadl %t14+ storel %t13, %t15+ call $__sx_dbg_keep(l %t15)+ dbgvar "n", "usize", %t15, 8, 5, 253+ dbgloc 254+ %t16 =l call $lists__new__GENMONO__bytes__Bytes()++ storel %t16, %t17+ call $__sx_dbg_keep(l %t17)+ dbgvar "out", "list[bytes.Bytes]", %t17, 8, 5, 254+ dbgloc 255+ %t18 =l copy 0+ storel %t18, %t19+ call $__sx_dbg_keep(l %t19)+ dbgvar "i", "usize", %t19, 8, 5, 255+ dbgloc 256+ jmp @lbl6968+@lbl6968+ %t20 =l loadl %t19+ %t21 =w csltl %t20, %t13+ jnz %t21, @lbl6969, @lbl6971+@lbl6969+ dbgloc 257+ %t22 =l loadl %t7+ %t23 =l call $reader__Reader__read_id(l %t24, l %t22)+ %t25 =l loadl %t24+ %t26 =w ceql %t25, 0+ jnz %t26, @lbl6972, @lbl6973+@lbl6973+ call $memcpy(l %__ret, l %t24, l 16)+ ret %__ret+@lbl6972+ %t28 =l add %t24, 8+ %t27 =l loadl %t28+ storel %t27, %t29+ call $__sx_dbg_keep(l %t29)+ dbgvar "p", "ref u8", %t29, 8, 7, 257+ dbgloc 258+ %t31 =l copy 32+ %t30 =l call $malloc(l %t31)+ %t32 =l copy %t30+ storel %t32, %t33+ call $__sx_dbg_keep(l %t33)+ dbgvar "copy", "ref u8", %t33, 8, 7, 258+ dbgloc 259+ dbgloc 260+ %t35 =l copy %t32+ %t36 =l copy %t27+ %t37 =l copy 32+ call $memcpy(l %t35, l %t36, l %t37)+ %t34 =l copy 0+ dbgloc 262+ %t39 =l call $sxqbe_list_ensure(l %t17)+ %t40 =l copy 32+ %t41 =l call $bytes__bytes(l %t32, l %t40)+ %t42 =l add %t39, 8+ %t43 =l add %t39, 16+ %t44 =l loadl %t42+ %t45 =l loadl %t43+ %t47 =l add %t44, 1+ %t46 =w call $sxqbe_list_grow(l %t39, l %t47)+ %t48 =l call $sxqbe_list_buf(l %t39)+ %t49 =l mul %t44, 8+ %t50 =l add %t48, %t49+ storel %t41, %t50+ %t51 =l add %t44, 1+ storel %t51, %t42+ %t38 =l copy 0+ dbgloc 263+ %t52 =l loadl %t19+ %t53 =l add %t52, 1+ storel %t53, %t19+ jmp @lbl6970+@lbl6970+ jmp @lbl6968+@lbl6971+ dbgloc 265+ %t54 =l loadl %t7+ %t55 =l call $reader__Reader__finish(l %t56, l %t54)+ %t57 =l loadl %t56+ %t58 =w ceql %t57, 0+ jnz %t58, @lbl6974, @lbl6975+@lbl6975+ call $memcpy(l %__ret, l %t56, l 16)+ ret %__ret+@lbl6974+ %t60 =l add %t56, 8+ %t59 =l loadl %t60+ dbgloc 266+ call $memset(l %t61, w 0, l 16)+ storel 0, %t61+ %t62 =l loadl %t17+ %t63 =l add %t61, 8+ storel %t62, %t63+ call $memcpy(l %__ret, l %t61, l 16)+ ret %__ret+}++export function l $msg__encode_negotiate(l %wants, l %haves) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t5 =l alloc8 8+ %t11 =l alloc8 8+ %t29 =l alloc8 8+ %t45 =l alloc8 8+ dbgloc 269+ storel %wants, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "wants", "list[bytes.Bytes]", %t0, 8, 5, 269+ storel %haves, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "haves", "list[bytes.Bytes]", %t1, 8, 5, 269+ dbgloc 270+ %t2 =l copy 256+ %t3 =l call $buf__new(l %t2)+ %t4 =l call $malloc(l 24)+ call $memset(l %t4, w 0, l 24)+ call $memcpy(l %t4, l %t3, l 24)+ storel %t4, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "b", "buf.Buf", %t5, 8, 5, 270+ dbgloc 271+ %t6 =l loadl %t5+ %t8 =l call $sxqbe_list_len(l %wants)+ %t9 =l copy %t8+ %t10 =w call $buf__Buf__put_varint(l %t6, l %t9)+ dbgloc 272+ storel 0, %t11+ %t12 =l call $sxqbe_list_len(l %wants)+@lbl6976+ %t13 =l loadl %t11+ %t14 =w csltl %t13, %t12+ jnz %t14, @lbl6977, @lbl6978+@lbl6977+ %t15 =l call $sxqbe_list_buf(l %wants)+ %t16 =l mul %t13, 8+ %t17 =l add %t15, %t16+ %t18 =l loadl %t17+ dbgloc 273+ %t19 =l loadl %t5+ %t20 =l loadl %t18+ %t21 =l copy 32+ %t22 =w call $buf__Buf__put_raw(l %t19, l %t20, l %t21)+@lbl6979+ %t23 =l add %t13, 1+ storel %t23, %t11+ jmp @lbl6976+@lbl6978+ dbgloc 275+ %t24 =l loadl %t5+ %t26 =l call $sxqbe_list_len(l %haves)+ %t27 =l copy %t26+ %t28 =w call $buf__Buf__put_varint(l %t24, l %t27)+ dbgloc 276+ storel 0, %t29+ %t30 =l call $sxqbe_list_len(l %haves)+@lbl6980+ %t31 =l loadl %t29+ %t32 =w csltl %t31, %t30+ jnz %t32, @lbl6981, @lbl6982+@lbl6981+ %t33 =l call $sxqbe_list_buf(l %haves)+ %t34 =l mul %t31, 8+ %t35 =l add %t33, %t34+ %t36 =l loadl %t35+ dbgloc 277+ %t37 =l loadl %t5+ %t38 =l loadl %t36+ %t39 =l copy 32+ %t40 =w call $buf__Buf__put_raw(l %t37, l %t38, l %t39)+@lbl6983+ %t41 =l add %t31, 1+ storel %t41, %t29+ jmp @lbl6980+@lbl6982+ dbgloc 279+ %t42 =l loadl %t5+ %t43 =l call $buf__Buf__view(l %t42)+ %t44 =l call $bytes__Bytes__dup(l %t43)+ storel %t44, %t45+ call $__sx_dbg_keep(l %t45)+ dbgvar "out", "bytes.Bytes", %t45, 8, 5, 279+ dbgloc 280+ %t46 =l loadl %t5+ %t47 =w call $buf__Buf__free(l %t46)+ dbgloc 281+ ret %t44+}++export function l $msg__decode_negotiate(l %__ret, l %data) {+@start+ %t0 =l alloc8 8+ %t6 =l alloc8 8+ %t10 =l alloc8 16+ %t15 =l alloc8 8+ %t17 =l alloc8 8+ %t19 =l alloc8 8+ %t24 =l alloc8 16+ %t29 =l alloc8 8+ %t33 =l alloc8 8+ %t57 =l alloc8 16+ %t62 =l alloc8 8+ %t64 =l alloc8 8+ %t66 =l alloc8 8+ %t71 =l alloc8 16+ %t76 =l alloc8 8+ %t80 =l alloc8 8+ %t103 =l alloc8 16+ %t108 =l alloc8 16+ dbgloc 284+ storel %data, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "data", "bytes.Bytes", %t0, 8, 5, 284+ dbgloc 287+ %t1 =l loadl %data+ %t3 =l add %data, 8+ %t2 =l loadl %t3+ %t4 =l call $reader__new(l %t1, l %t2)+ %t5 =l call $malloc(l 24)+ call $memset(l %t5, w 0, l 24)+ call $memcpy(l %t5, l %t4, l 24)+ storel %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "r", "reader.Reader", %t6, 8, 5, 287+ dbgloc 288+ %t7 =l loadl %t6+ %t8 =l copy 1000000+ %t9 =l call $reader__Reader__read_list_len(l %t10, l %t7, l %t8)+ %t11 =l loadl %t10+ %t12 =w ceql %t11, 0+ jnz %t12, @lbl6984, @lbl6985+@lbl6985+ call $memcpy(l %__ret, l %t10, l 16)+ ret %__ret+@lbl6984+ %t14 =l add %t10, 8+ %t13 =l loadl %t14+ storel %t13, %t15+ call $__sx_dbg_keep(l %t15)+ dbgvar "nw", "usize", %t15, 8, 5, 288+ dbgloc 289+ %t16 =l call $lists__new__GENMONO__bytes__Bytes()++ storel %t16, %t17+ call $__sx_dbg_keep(l %t17)+ dbgvar "wants", "list[bytes.Bytes]", %t17, 8, 5, 289+ dbgloc 290+ %t18 =l copy 0+ storel %t18, %t19+ call $__sx_dbg_keep(l %t19)+ dbgvar "i", "usize", %t19, 8, 5, 290+ dbgloc 291+ jmp @lbl6986+@lbl6986+ %t20 =l loadl %t19+ %t21 =w csltl %t20, %t13+ jnz %t21, @lbl6987, @lbl6989+@lbl6987+ dbgloc 292+ %t22 =l loadl %t6+ %t23 =l call $reader__Reader__read_id(l %t24, l %t22)+ %t25 =l loadl %t24+ %t26 =w ceql %t25, 0+ jnz %t26, @lbl6990, @lbl6991+@lbl6991+ call $memcpy(l %__ret, l %t24, l 16)+ ret %__ret+@lbl6990+ %t28 =l add %t24, 8+ %t27 =l loadl %t28+ storel %t27, %t29+ call $__sx_dbg_keep(l %t29)+ dbgvar "p", "ref u8", %t29, 8, 7, 292+ dbgloc 293+ %t31 =l copy 32+ %t30 =l call $malloc(l %t31)+ %t32 =l copy %t30+ storel %t32, %t33+ call $__sx_dbg_keep(l %t33)+ dbgvar "copy", "ref u8", %t33, 8, 7, 293+ dbgloc 294+ dbgloc 295+ %t35 =l copy %t32+ %t36 =l copy %t27+ %t37 =l copy 32+ call $memcpy(l %t35, l %t36, l %t37)+ %t34 =l copy 0+ dbgloc 297+ %t39 =l call $sxqbe_list_ensure(l %t17)+ %t40 =l copy 32+ %t41 =l call $bytes__bytes(l %t32, l %t40)+ %t42 =l add %t39, 8+ %t43 =l add %t39, 16+ %t44 =l loadl %t42+ %t45 =l loadl %t43+ %t47 =l add %t44, 1+ %t46 =w call $sxqbe_list_grow(l %t39, l %t47)+ %t48 =l call $sxqbe_list_buf(l %t39)+ %t49 =l mul %t44, 8+ %t50 =l add %t48, %t49+ storel %t41, %t50+ %t51 =l add %t44, 1+ storel %t51, %t42+ %t38 =l copy 0+ dbgloc 298+ %t52 =l loadl %t19+ %t53 =l add %t52, 1+ storel %t53, %t19+ jmp @lbl6988+@lbl6988+ jmp @lbl6986+@lbl6989+ dbgloc 300+ %t54 =l loadl %t6+ %t55 =l copy 1000000+ %t56 =l call $reader__Reader__read_list_len(l %t57, l %t54, l %t55)+ %t58 =l loadl %t57+ %t59 =w ceql %t58, 0+ jnz %t59, @lbl6992, @lbl6993+@lbl6993+ call $memcpy(l %__ret, l %t57, l 16)+ ret %__ret+@lbl6992+ %t61 =l add %t57, 8+ %t60 =l loadl %t61+ storel %t60, %t62+ call $__sx_dbg_keep(l %t62)+ dbgvar "nh", "usize", %t62, 8, 5, 300+ dbgloc 301+ %t63 =l call $lists__new__GENMONO__bytes__Bytes()++ storel %t63, %t64+ call $__sx_dbg_keep(l %t64)+ dbgvar "haves", "list[bytes.Bytes]", %t64, 8, 5, 301+ dbgloc 302+ %t65 =l copy 0+ storel %t65, %t66+ call $__sx_dbg_keep(l %t66)+ dbgvar "j", "usize", %t66, 8, 5, 302+ dbgloc 303+ jmp @lbl6994+@lbl6994+ %t67 =l loadl %t66+ %t68 =w csltl %t67, %t60+ jnz %t68, @lbl6995, @lbl6997+@lbl6995+ dbgloc 304+ %t69 =l loadl %t6+ %t70 =l call $reader__Reader__read_id(l %t71, l %t69)+ %t72 =l loadl %t71+ %t73 =w ceql %t72, 0+ jnz %t73, @lbl6998, @lbl6999+@lbl6999+ call $memcpy(l %__ret, l %t71, l 16)+ ret %__ret+@lbl6998+ %t75 =l add %t71, 8+ %t74 =l loadl %t75+ storel %t74, %t76+ call $__sx_dbg_keep(l %t76)+ dbgvar "p2", "ref u8", %t76, 8, 7, 304+ dbgloc 305+ %t78 =l copy 32+ %t77 =l call $malloc(l %t78)+ %t79 =l copy %t77+ storel %t79, %t80+ call $__sx_dbg_keep(l %t80)+ dbgvar "copy2", "ref u8", %t80, 8, 7, 305+ dbgloc 306+ dbgloc 307+ %t82 =l copy %t79+ %t83 =l copy %t74+ %t84 =l copy 32+ call $memcpy(l %t82, l %t83, l %t84)+ %t81 =l copy 0+ dbgloc 309+ %t86 =l call $sxqbe_list_ensure(l %t64)+ %t87 =l copy 32+ %t88 =l call $bytes__bytes(l %t79, l %t87)+ %t89 =l add %t86, 8+ %t90 =l add %t86, 16+ %t91 =l loadl %t89+ %t92 =l loadl %t90+ %t94 =l add %t91, 1+ %t93 =w call $sxqbe_list_grow(l %t86, l %t94)+ %t95 =l call $sxqbe_list_buf(l %t86)+ %t96 =l mul %t91, 8+ %t97 =l add %t95, %t96+ storel %t88, %t97+ %t98 =l add %t91, 1+ storel %t98, %t89+ %t85 =l copy 0+ dbgloc 310+ %t99 =l loadl %t66+ %t100 =l add %t99, 1+ storel %t100, %t66+ jmp @lbl6996+@lbl6996+ jmp @lbl6994+@lbl6997+ dbgloc 312+ %t101 =l loadl %t6+ %t102 =l call $reader__Reader__finish(l %t103, l %t101)+ %t104 =l loadl %t103+ %t105 =w ceql %t104, 0+ jnz %t105, @lbl7000, @lbl7001+@lbl7001+ call $memcpy(l %__ret, l %t103, l 16)+ ret %__ret+@lbl7000+ %t107 =l add %t103, 8+ %t106 =l loadl %t107+ dbgloc 313+ call $memset(l %t108, w 0, l 16)+ storel 0, %t108+ %t109 =l call $malloc(l 16)+ %t110 =l loadl %t17+ storel %t110, %t109+ %t112 =l loadl %t64+ %t113 =l add %t109, 8+ storel %t112, %t113+ %t114 =l add %t108, 8+ storel %t109, %t114+ call $memcpy(l %__ret, l %t108, l 16)+ ret %__ret+}++export function l $msg__encode_negotiate_ok(l %known, w %enough) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t5 =l alloc8 8+ %t13 =l alloc8 8+ %t28 =l alloc8 8+ dbgloc 316+ storel %known, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "known", "list[u64]", %t0, 8, 5, 316+ storew %enough, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "enough", "u8", %t1, 1, 7, 316+ dbgloc 317+ %t2 =l copy 64+ %t3 =l call $buf__new(l %t2)+ %t4 =l call $malloc(l 24)+ call $memset(l %t4, w 0, l 24)+ call $memcpy(l %t4, l %t3, l 24)+ storel %t4, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "b", "buf.Buf", %t5, 8, 5, 317+ dbgloc 318+ %t6 =l loadl %t5+ %t7 =w call $buf__Buf__put_u8(l %t6, w %enough)+ dbgloc 319+ %t8 =l loadl %t5+ %t10 =l call $sxqbe_list_len(l %known)+ %t11 =l copy %t10+ %t12 =w call $buf__Buf__put_varint(l %t8, l %t11)+ dbgloc 320+ storel 0, %t13+ %t14 =l call $sxqbe_list_len(l %known)+@lbl7002+ %t15 =l loadl %t13+ %t16 =w csltl %t15, %t14+ jnz %t16, @lbl7003, @lbl7004+@lbl7003+ %t17 =l call $sxqbe_list_buf(l %known)+ %t18 =l mul %t15, 8+ %t19 =l add %t17, %t18+ %t20 =l loadl %t19+ dbgloc 321+ %t21 =l loadl %t5+ %t23 =w copy %t20+ %t22 =w call $buf__Buf__put_u8(l %t21, w %t23)+@lbl7005+ %t24 =l add %t15, 1+ storel %t24, %t13+ jmp @lbl7002+@lbl7004+ dbgloc 323+ %t25 =l loadl %t5+ %t26 =l call $buf__Buf__view(l %t25)+ %t27 =l call $bytes__Bytes__dup(l %t26)+ storel %t27, %t28+ call $__sx_dbg_keep(l %t28)+ dbgvar "out", "bytes.Bytes", %t28, 8, 5, 323+ dbgloc 324+ %t29 =l loadl %t5+ %t30 =w call $buf__Buf__free(l %t29)+ dbgloc 325+ ret %t27+}++export function l $msg__encode_bitmap(l %bits) {+@start+ %t0 =l alloc8 8+ %t6 =l alloc8 8+ %t12 =l alloc8 8+ %t26 =l alloc8 8+ dbgloc 328+ storel %bits, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "bits", "list[u64]", %t0, 8, 5, 328+ dbgloc 329+ %t1 =l loadl %bits+ %t2 =l copy 8+ %t3 =l add %t1, %t2+ %t4 =l call $buf__new(l %t3)+ %t5 =l call $malloc(l 24)+ call $memset(l %t5, w 0, l 24)+ call $memcpy(l %t5, l %t4, l 24)+ storel %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "b", "buf.Buf", %t6, 8, 5, 329+ dbgloc 330+ %t7 =l loadl %t6+ %t9 =l call $sxqbe_list_len(l %bits)+ %t10 =l copy %t9+ %t11 =w call $buf__Buf__put_varint(l %t7, l %t10)+ dbgloc 331+ storel 0, %t12+ %t13 =l call $sxqbe_list_len(l %bits)+@lbl7006+ %t14 =l loadl %t12+ %t15 =w csltl %t14, %t13+ jnz %t15, @lbl7007, @lbl7008+@lbl7007+ %t16 =l call $sxqbe_list_buf(l %bits)+ %t17 =l mul %t14, 8+ %t18 =l add %t16, %t17+ %t19 =l loadl %t18+ dbgloc 332+ %t20 =l loadl %t6+ %t21 =w call $buf__Buf__put_u8(l %t20, w %t19)+@lbl7009+ %t22 =l add %t14, 1+ storel %t22, %t12+ jmp @lbl7006+@lbl7008+ dbgloc 334+ %t23 =l loadl %t6+ %t24 =l call $buf__Buf__view(l %t23)+ %t25 =l call $bytes__Bytes__dup(l %t24)+ storel %t25, %t26+ call $__sx_dbg_keep(l %t26)+ dbgvar "out", "bytes.Bytes", %t26, 8, 5, 334+ dbgloc 335+ %t27 =l loadl %t6+ %t28 =w call $buf__Buf__free(l %t27)+ dbgloc 336+ ret %t25+}++export function l $msg__decode_bitmap(l %__ret, l %data) {+@start+ %t0 =l alloc8 8+ %t6 =l alloc8 8+ %t10 =l alloc8 16+ %t15 =l alloc8 8+ %t17 =l alloc8 8+ %t19 =l alloc8 8+ %t24 =l alloc8 16+ %t32 =l alloc8 8+ %t50 =l alloc8 16+ %t55 =l alloc8 16+ dbgloc 339+ storel %data, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "data", "bytes.Bytes", %t0, 8, 5, 339+ dbgloc 340+ %t1 =l loadl %data+ %t3 =l add %data, 8+ %t2 =l loadl %t3+ %t4 =l call $reader__new(l %t1, l %t2)+ %t5 =l call $malloc(l 24)+ call $memset(l %t5, w 0, l 24)+ call $memcpy(l %t5, l %t4, l 24)+ storel %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "r", "reader.Reader", %t6, 8, 5, 340+ dbgloc 341+ %t7 =l loadl %t6+ %t8 =l copy 1000000+ %t9 =l call $reader__Reader__read_list_len(l %t10, l %t7, l %t8)+ %t11 =l loadl %t10+ %t12 =w ceql %t11, 0+ jnz %t12, @lbl7010, @lbl7011+@lbl7011+ call $memcpy(l %__ret, l %t10, l 16)+ ret %__ret+@lbl7010+ %t14 =l add %t10, 8+ %t13 =l loadl %t14+ storel %t13, %t15+ call $__sx_dbg_keep(l %t15)+ dbgvar "n", "usize", %t15, 8, 5, 341+ dbgloc 342+ %t16 =l call $lists__new__GENMONO__u8()++ storel %t16, %t17+ call $__sx_dbg_keep(l %t17)+ dbgvar "out", "list[u64]", %t17, 8, 5, 342+ dbgloc 343+ %t18 =l copy 0+ storel %t18, %t19+ call $__sx_dbg_keep(l %t19)+ dbgvar "i", "usize", %t19, 8, 5, 343+ dbgloc 344+ jmp @lbl7012+@lbl7012+ %t20 =l loadl %t19+ %t21 =w csltl %t20, %t13+ jnz %t21, @lbl7013, @lbl7015+@lbl7013+ dbgloc 345+ %t22 =l loadl %t6+ %t23 =l call $reader__Reader__read_u8(l %t24, l %t22)+ %t25 =l loadl %t24+ %t26 =w ceql %t25, 0+ jnz %t26, @lbl7016, @lbl7017+@lbl7017+ call $memcpy(l %__ret, l %t24, l 16)+ ret %__ret+@lbl7016+ %t28 =l add %t24, 8+ %t27 =w loadw %t28+ %t29 =w copy %t27+ %t30 =w copy %t29+ %t31 =w extub %t30+ storew %t31, %t32+ call $__sx_dbg_keep(l %t32)+ dbgvar "bv", "u8", %t32, 1, 7, 345+ dbgloc 346+ %t34 =l call $sxqbe_list_ensure(l %t17)+ %t35 =l extsw %t31+ %t36 =l add %t34, 8+ %t37 =l add %t34, 16+ %t38 =l loadl %t36+ %t39 =l loadl %t37+ %t41 =l add %t38, 1+ %t40 =w call $sxqbe_list_grow(l %t34, l %t41)+ %t42 =l call $sxqbe_list_buf(l %t34)+ %t43 =l mul %t38, 8+ %t44 =l add %t42, %t43+ storel %t35, %t44+ %t45 =l add %t38, 1+ storel %t45, %t36+ %t33 =l copy 0+ dbgloc 347+ %t46 =l loadl %t19+ %t47 =l add %t46, 1+ storel %t47, %t19+ jmp @lbl7014+@lbl7014+ jmp @lbl7012+@lbl7015+ dbgloc 349+ %t48 =l loadl %t6+ %t49 =l call $reader__Reader__finish(l %t50, l %t48)+ %t51 =l loadl %t50+ %t52 =w ceql %t51, 0+ jnz %t52, @lbl7018, @lbl7019+@lbl7019+ call $memcpy(l %__ret, l %t50, l 16)+ ret %__ret+@lbl7018+ %t54 =l add %t50, 8+ %t53 =l loadl %t54+ dbgloc 350+ call $memset(l %t55, w 0, l 16)+ storel 0, %t55+ %t56 =l loadl %t17+ %t57 =l add %t55, 8+ storel %t56, %t57+ call $memcpy(l %__ret, l %t55, l 16)+ ret %__ret+}++export function l $msg__encode_update_refs(l %updates) {+@start+ %t0 =l alloc8 8+ %t4 =l alloc8 8+ %t10 =l alloc8 8+ %t31 =l alloc8 8+ dbgloc 353+ storel %updates, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "updates", "list[UpdateRef]", %t0, 8, 5, 353+ dbgloc 354+ %t1 =l copy 256+ %t2 =l call $buf__new(l %t1)+ %t3 =l call $malloc(l 24)+ call $memset(l %t3, w 0, l 24)+ call $memcpy(l %t3, l %t2, l 24)+ storel %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "b", "buf.Buf", %t4, 8, 5, 354+ dbgloc 355+ %t5 =l loadl %t4+ %t7 =l call $sxqbe_list_len(l %updates)+ %t8 =l copy %t7+ %t9 =w call $buf__Buf__put_varint(l %t5, l %t8)+ dbgloc 356+ storel 0, %t10+ %t11 =l call $sxqbe_list_len(l %updates)+@lbl7020+ %t12 =l loadl %t10+ %t13 =w csltl %t12, %t11+ jnz %t13, @lbl7021, @lbl7022+@lbl7021+ %t14 =l call $sxqbe_list_buf(l %updates)+ %t15 =l mul %t12, 8+ %t16 =l add %t14, %t15+ %t17 =l loadl %t16+ dbgloc 357+ %t18 =l loadl %t4+ %t19 =l add %t17, 0+ %t20 =w call $buf__Buf__put_length_prefixed(l %t18, l %t19)+ dbgloc 358+ %t21 =l loadl %t4+ %t22 =l add %t17, 16+ %t23 =w call $msg__optional_id(l %t21, l %t22)+ dbgloc 359+ %t24 =l loadl %t4+ %t25 =l add %t17, 32+ %t26 =w call $msg__optional_id(l %t24, l %t25)+@lbl7023+ %t27 =l add %t12, 1+ storel %t27, %t10+ jmp @lbl7020+@lbl7022+ dbgloc 361+ %t28 =l loadl %t4+ %t29 =l call $buf__Buf__view(l %t28)+ %t30 =l call $bytes__Bytes__dup(l %t29)+ storel %t30, %t31+ call $__sx_dbg_keep(l %t31)+ dbgvar "out", "bytes.Bytes", %t31, 8, 5, 361+ dbgloc 362+ %t32 =l loadl %t4+ %t33 =w call $buf__Buf__free(l %t32)+ dbgloc 363+ ret %t30+}++export function l $msg__decode_update_refs(l %__ret, l %data) {+@start+ %t0 =l alloc8 8+ %t6 =l alloc8 8+ %t10 =l alloc8 16+ %t15 =l alloc8 8+ %t17 =l alloc8 8+ %t19 =l alloc8 8+ %t25 =l alloc8 16+ %t30 =l alloc8 8+ %t33 =l alloc8 16+ %t38 =l alloc8 8+ %t41 =l alloc8 16+ %t46 =l alloc8 8+ %t70 =l alloc8 16+ %t75 =l alloc8 16+ dbgloc 366+ storel %data, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "data", "bytes.Bytes", %t0, 8, 5, 366+ dbgloc 367+ %t1 =l loadl %data+ %t3 =l add %data, 8+ %t2 =l loadl %t3+ %t4 =l call $reader__new(l %t1, l %t2)+ %t5 =l call $malloc(l 24)+ call $memset(l %t5, w 0, l 24)+ call $memcpy(l %t5, l %t4, l 24)+ storel %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "r", "reader.Reader", %t6, 8, 5, 367+ dbgloc 368+ %t7 =l loadl %t6+ %t8 =l copy 1000000+ %t9 =l call $reader__Reader__read_list_len(l %t10, l %t7, l %t8)+ %t11 =l loadl %t10+ %t12 =w ceql %t11, 0+ jnz %t12, @lbl7024, @lbl7025+@lbl7025+ call $memcpy(l %__ret, l %t10, l 16)+ ret %__ret+@lbl7024+ %t14 =l add %t10, 8+ %t13 =l loadl %t14+ storel %t13, %t15+ call $__sx_dbg_keep(l %t15)+ dbgvar "n", "usize", %t15, 8, 5, 368+ dbgloc 369+ %t16 =l call $lists__new__GENMONO__UpdateRef()++ storel %t16, %t17+ call $__sx_dbg_keep(l %t17)+ dbgvar "out", "list[UpdateRef]", %t17, 8, 5, 369+ dbgloc 370+ %t18 =l copy 0+ storel %t18, %t19+ call $__sx_dbg_keep(l %t19)+ dbgvar "i", "usize", %t19, 8, 5, 370+ dbgloc 371+ jmp @lbl7026+@lbl7026+ %t20 =l loadl %t19+ %t21 =w csltl %t20, %t13+ jnz %t21, @lbl7027, @lbl7029+@lbl7027+ dbgloc 372+ %t22 =l loadl %t6+ %t23 =l copy 4096+ %t24 =l call $reader__Reader__read_bytes(l %t25, l %t22, l %t23)+ %t26 =l loadl %t25+ %t27 =w ceql %t26, 0+ jnz %t27, @lbl7030, @lbl7031+@lbl7031+ call $memcpy(l %__ret, l %t25, l 16)+ ret %__ret+@lbl7030+ %t29 =l add %t25, 8+ %t28 =l loadl %t29+ storel %t28, %t30+ call $__sx_dbg_keep(l %t30)+ dbgvar "name", "bytes.Bytes", %t30, 8, 5, 372+ dbgloc 373+ %t31 =l loadl %t6+ %t32 =l call $msg__read_optional_id(l %t33, l %t31)+ %t34 =l loadl %t33+ %t35 =w ceql %t34, 0+ jnz %t35, @lbl7032, @lbl7033+@lbl7033+ call $memcpy(l %__ret, l %t33, l 16)+ ret %__ret+@lbl7032+ %t37 =l add %t33, 8+ %t36 =l loadl %t37+ storel %t36, %t38+ call $__sx_dbg_keep(l %t38)+ dbgvar "expected", "bytes.Bytes", %t38, 8, 5, 373+ dbgloc 374+ %t39 =l loadl %t6+ %t40 =l call $msg__read_optional_id(l %t41, l %t39)+ %t42 =l loadl %t41+ %t43 =w ceql %t42, 0+ jnz %t43, @lbl7034, @lbl7035+@lbl7035+ call $memcpy(l %__ret, l %t41, l 16)+ ret %__ret+@lbl7034+ %t45 =l add %t41, 8+ %t44 =l loadl %t45+ storel %t44, %t46+ call $__sx_dbg_keep(l %t46)+ dbgvar "target", "bytes.Bytes", %t46, 8, 5, 374+ dbgloc 375+ %t48 =l call $sxqbe_list_ensure(l %t17)+ %t49 =l call $malloc(l 48)+ %t50 =l add %t49, 0+ %t51 =l call $bytes__Bytes__dup(l %t28)+ call $memcpy(l %t50, l %t51, l 16)+ %t52 =l add %t49, 16+ %t53 =l call $bytes__Bytes__dup(l %t36)+ call $memcpy(l %t52, l %t53, l 16)+ %t54 =l add %t49, 32+ %t55 =l call $bytes__Bytes__dup(l %t44)+ call $memcpy(l %t54, l %t55, l 16)+ %t56 =l add %t48, 8+ %t57 =l add %t48, 16+ %t58 =l loadl %t56+ %t59 =l loadl %t57+ %t61 =l add %t58, 1+ %t60 =w call $sxqbe_list_grow(l %t48, l %t61)+ %t62 =l call $sxqbe_list_buf(l %t48)+ %t63 =l mul %t58, 8+ %t64 =l add %t62, %t63+ storel %t49, %t64+ %t65 =l add %t58, 1+ storel %t65, %t56+ %t47 =l copy 0+ dbgloc 383+ %t66 =l loadl %t19+ %t67 =l add %t66, 1+ storel %t67, %t19+ jmp @lbl7028+@lbl7028+ jmp @lbl7026+@lbl7029+ dbgloc 385+ %t68 =l loadl %t6+ %t69 =l call $reader__Reader__finish(l %t70, l %t68)+ %t71 =l loadl %t70+ %t72 =w ceql %t71, 0+ jnz %t72, @lbl7036, @lbl7037+@lbl7037+ call $memcpy(l %__ret, l %t70, l 16)+ ret %__ret+@lbl7036+ %t74 =l add %t70, 8+ %t73 =l loadl %t74+ dbgloc 386+ call $memset(l %t75, w 0, l 16)+ storel 0, %t75+ %t76 =l loadl %t17+ %t77 =l add %t75, 8+ storel %t76, %t77+ call $memcpy(l %__ret, l %t75, l 16)+ ret %__ret+}++export function w $msg__free_hello(l %h) {+@start+ %t0 =l alloc8 8+ dbgloc 389+ storel %h, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "h", "Hello", %t0, 8, 5, 389+ dbgloc 390+ %t2 =l add %h, 4+ %t1 =l loadl %t2+ %t3 =w call $msg__free_list(l %t1)+ dbgloc 391+ %t4 =l add %h, 12+ %t5 =l loadl %t4+ %t6 =l copy 0+ %t7 =w cnel %t5, %t6+ jnz %t7, @lbl7038, @lbl7039+@lbl7038+ dbgloc 392+ %t8 =l add %h, 12+ %t9 =l loadl %t8+ %t10 =w call $bytes__free_ptr(l %t9)+ jmp @lbl7039+@lbl7039+ dbgloc 394+ %t11 =l add %h, 28+ %t12 =l loadl %t11+ %t13 =l copy 0+ %t14 =w cnel %t12, %t13+ jnz %t14, @lbl7041, @lbl7042+@lbl7041+ dbgloc 395+ %t15 =l add %h, 28+ %t16 =l loadl %t15+ %t17 =w call $bytes__free_ptr(l %t16)+ jmp @lbl7042+@lbl7042+ ret 0+}++export function w $msg__free_hello_ok(l %h) {+@start+ %t0 =l alloc8 8+ dbgloc 399+ storel %h, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "h", "HelloOk", %t0, 8, 5, 399+ dbgloc 400+ %t2 =l add %h, 2+ %t1 =l loadl %t2+ %t3 =w call $msg__free_list(l %t1)+ dbgloc 401+ %t4 =l add %h, 10+ %t5 =l loadl %t4+ %t6 =l copy 0+ %t7 =w cnel %t5, %t6+ jnz %t7, @lbl7044, @lbl7045+@lbl7044+ dbgloc 402+ %t8 =l add %h, 10+ %t9 =l loadl %t8+ %t10 =w call $bytes__free_ptr(l %t9)+ jmp @lbl7045+@lbl7045+ ret 0+}++export function w $msg__free_refs(l %rs) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 406+ storel %rs, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "rs", "list[RefInfo]", %t0, 8, 5, 406+ dbgloc 407+ storel 0, %t1+ %t2 =l call $sxqbe_list_len(l %rs)+@lbl7047+ %t3 =l loadl %t1+ %t4 =w csltl %t3, %t2+ jnz %t4, @lbl7048, @lbl7049+@lbl7048+ %t5 =l call $sxqbe_list_buf(l %rs)+ %t6 =l mul %t3, 8+ %t7 =l add %t5, %t6+ %t8 =l loadl %t7+ dbgloc 408+ %t9 =l add %t8, 0+ %t10 =l loadl %t9+ %t11 =l copy 0+ %t12 =w cnel %t10, %t11+ jnz %t12, @lbl7051, @lbl7052+@lbl7051+ dbgloc 409+ %t13 =l add %t8, 0+ %t14 =l loadl %t13+ %t15 =w call $bytes__free_ptr(l %t14)+ jmp @lbl7052+@lbl7052+ dbgloc 411+ %t16 =l add %t8, 16+ %t17 =l loadl %t16+ %t18 =l copy 0+ %t19 =w cnel %t17, %t18+ jnz %t19, @lbl7054, @lbl7055+@lbl7054+ dbgloc 412+ %t20 =l add %t8, 16+ %t21 =l loadl %t20+ %t22 =w call $bytes__free_ptr(l %t21)+ jmp @lbl7055+@lbl7055+ dbgloc 414+ %t23 =l add %t8, 32+ %t24 =l loadl %t23+ %t25 =l copy 0+ %t26 =w cnel %t24, %t25+ jnz %t26, @lbl7057, @lbl7058+@lbl7057+ dbgloc 415+ %t27 =l add %t8, 32+ %t28 =l loadl %t27+ %t29 =w call $bytes__free_ptr(l %t28)+ jmp @lbl7058+@lbl7058+@lbl7050+ %t30 =l add %t3, 1+ storel %t30, %t1+ jmp @lbl7047+@lbl7049+ dbgloc 418+ call $sxqbe_list_free(l %rs)+ %t31 =l copy 0+ ret 0+}++export function w $msg__free_updates(l %us) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 421+ storel %us, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "us", "list[UpdateRef]", %t0, 8, 5, 421+ dbgloc 422+ storel 0, %t1+ %t2 =l call $sxqbe_list_len(l %us)+@lbl7060+ %t3 =l loadl %t1+ %t4 =w csltl %t3, %t2+ jnz %t4, @lbl7061, @lbl7062+@lbl7061+ %t5 =l call $sxqbe_list_buf(l %us)+ %t6 =l mul %t3, 8+ %t7 =l add %t5, %t6+ %t8 =l loadl %t7+ dbgloc 423+ %t9 =l add %t8, 0+ %t10 =l loadl %t9+ %t11 =l copy 0+ %t12 =w cnel %t10, %t11+ jnz %t12, @lbl7064, @lbl7065+@lbl7064+ dbgloc 424+ %t13 =l add %t8, 0+ %t14 =l loadl %t13+ %t15 =w call $bytes__free_ptr(l %t14)+ jmp @lbl7065+@lbl7065+ dbgloc 426+ %t16 =l add %t8, 16+ %t17 =l loadl %t16+ %t18 =l copy 0+ %t19 =w cnel %t17, %t18+ jnz %t19, @lbl7067, @lbl7068+@lbl7067+ dbgloc 427+ %t20 =l add %t8, 16+ %t21 =l loadl %t20+ %t22 =w call $bytes__free_ptr(l %t21)+ jmp @lbl7068+@lbl7068+ dbgloc 429+ %t23 =l add %t8, 32+ %t24 =l loadl %t23+ %t25 =l copy 0+ %t26 =w cnel %t24, %t25+ jnz %t26, @lbl7070, @lbl7071+@lbl7070+ dbgloc 430+ %t27 =l add %t8, 32+ %t28 =l loadl %t27+ %t29 =w call $bytes__free_ptr(l %t28)+ jmp @lbl7071+@lbl7071+@lbl7063+ %t30 =l add %t3, 1+ storel %t30, %t1+ jmp @lbl7060+@lbl7062+ dbgloc 433+ call $sxqbe_list_free(l %us)+ %t31 =l copy 0+ ret 0+}++function w $msg__free_list(l %xs) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 436+ storel %xs, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "xs", "list[bytes.Bytes]", %t0, 8, 5, 436+ dbgloc 437+ storel 0, %t1+ %t2 =l call $sxqbe_list_len(l %xs)+@lbl7073+ %t3 =l loadl %t1+ %t4 =w csltl %t3, %t2+ jnz %t4, @lbl7074, @lbl7075+@lbl7074+ %t5 =l call $sxqbe_list_buf(l %xs)+ %t6 =l mul %t3, 8+ %t7 =l add %t5, %t6+ %t8 =l loadl %t7+ dbgloc 438+ %t9 =l loadl %t8+ %t10 =l copy 0+ %t11 =w cnel %t9, %t10+ jnz %t11, @lbl7077, @lbl7078+@lbl7077+ dbgloc 439+ %t12 =w call $bytes__free_owned(l %t8)+ jmp @lbl7078+@lbl7078+@lbl7076+ %t13 =l add %t3, 1+ storel %t13, %t1+ jmp @lbl7073+@lbl7075+ dbgloc 442+ call $sxqbe_list_free(l %xs)+ %t14 =l copy 0+ ret 0+}++dbgfile "src/crypto/ed25519.sx"+data $ed__SEED_LEN = { l 32 }+data $ed__PUBLIC_LEN = { l 32 }+data $ed__SIGNATURE_LEN = { l 64 }+data $ed__FINGERPRINT_LEN = { l 16 }+export function l $ed__public_from_seed(l %__ret, l %seed) {+@start+ %t0 =l alloc8 8+ %t5 =l alloc8 16+ %t9 =l alloc8 8+ %t16 =l alloc8 16+ %t19 =l alloc8 16+ dbgloc 28+ storel %seed, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "seed", "bytes.Bytes", %t0, 8, 5, 28+ dbgloc 29+ %t2 =l add %seed, 8+ %t1 =l loadl %t2+ %t3 =l copy 32+ %t4 =w cnel %t1, %t3+ jnz %t4, @lbl7080, @lbl7081+@lbl7080+ dbgloc 30+ storel 0, %t5+ call $memcpy(l %__ret, l %t5, l 16)+ ret %__ret+@lbl7081+ dbgloc 32+ %t7 =l copy 32+ %t6 =l call $malloc(l %t7)+ %t8 =l copy %t6+ storel %t8, %t9+ call $__sx_dbg_keep(l %t9)+ dbgvar "out", "ref u8", %t9, 8, 7, 32+ dbgloc 33+ %t10 =l loadl %seed+ %t11 =w call $vn_ed25519_public_from_seed(l %t10, l %t8)+ %t12 =w copy 1+ %t13 =w cnew %t11, %t12+ jnz %t13, @lbl7083, @lbl7084+@lbl7083+ dbgloc 34+ %t15 =l copy %t8+ call $free(l %t15)+ %t14 =l copy 0+ dbgloc 35+ storel 0, %t16+ call $memcpy(l %__ret, l %t16, l 16)+ ret %__ret+@lbl7084+ dbgloc 37+ %t17 =l copy 32+ %t18 =l call $bytes__bytes(l %t8, l %t17)+ call $memset(l %t19, w 0, l 16)+ storel 1, %t19+ %t20 =l add %t19, 8+ storel %t18, %t20+ call $memcpy(l %__ret, l %t19, l 16)+ ret %__ret+}++export function l $ed__sign(l %__ret, l %seed, l %msg) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t6 =l alloc8 16+ %t10 =l alloc8 8+ %t20 =l alloc8 16+ %t23 =l alloc8 16+ dbgloc 40+ storel %seed, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "seed", "bytes.Bytes", %t0, 8, 5, 40+ storel %msg, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "msg", "bytes.Bytes", %t1, 8, 5, 40+ dbgloc 41+ %t3 =l add %seed, 8+ %t2 =l loadl %t3+ %t4 =l copy 32+ %t5 =w cnel %t2, %t4+ jnz %t5, @lbl7086, @lbl7087+@lbl7086+ dbgloc 42+ storel 0, %t6+ call $memcpy(l %__ret, l %t6, l 16)+ ret %__ret+@lbl7087+ dbgloc 44+ %t8 =l copy 64+ %t7 =l call $malloc(l %t8)+ %t9 =l copy %t7+ storel %t9, %t10+ call $__sx_dbg_keep(l %t10)+ dbgvar "out", "ref u8", %t10, 8, 7, 44+ dbgloc 45+ %t11 =l loadl %seed+ %t12 =l loadl %msg+ %t14 =l add %msg, 8+ %t13 =l loadl %t14+ %t15 =w call $vn_ed25519_sign(l %t11, l %t12, l %t13, l %t9)+ %t16 =w copy 1+ %t17 =w cnew %t15, %t16+ jnz %t17, @lbl7089, @lbl7090+@lbl7089+ dbgloc 46+ %t19 =l copy %t9+ call $free(l %t19)+ %t18 =l copy 0+ dbgloc 47+ storel 0, %t20+ call $memcpy(l %__ret, l %t20, l 16)+ ret %__ret+@lbl7090+ dbgloc 49+ %t21 =l copy 64+ %t22 =l call $bytes__bytes(l %t9, l %t21)+ call $memset(l %t23, w 0, l 16)+ storel 1, %t23+ %t24 =l add %t23, 8+ storel %t22, %t24+ call $memcpy(l %__ret, l %t23, l 16)+ ret %__ret+}++export function w $ed__verify(l %public_key, l %msg, l %sig) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t7 =l alloc4 1+ dbgloc 52+ storel %public_key, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "public_key", "bytes.Bytes", %t0, 8, 5, 52+ storel %msg, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "msg", "bytes.Bytes", %t1, 8, 5, 52+ storel %sig, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "sig", "bytes.Bytes", %t2, 8, 5, 52+ dbgloc 53+ %t4 =l add %public_key, 8+ %t3 =l loadl %t4+ %t5 =l copy 32+ %t6 =w cnel %t3, %t5+ storew %t6, %t7+ jnz %t6, @lbl7096, @lbl7095+@lbl7095+ %t9 =l add %sig, 8+ %t8 =l loadl %t9+ %t10 =l copy 64+ %t11 =w cnel %t8, %t10+ storew %t11, %t7+ jmp @lbl7096+@lbl7096+ %t12 =w loadw %t7+ jnz %t12, @lbl7092, @lbl7093+@lbl7092+ dbgloc 54+ %t13 =l copy 0+ ret %t13+@lbl7093+ dbgloc 56+ %t14 =l loadl %public_key+ %t15 =l loadl %msg+ %t17 =l add %msg, 8+ %t16 =l loadl %t17+ %t18 =l loadl %sig+ %t19 =w call $vn_ed25519_verify(l %t14, l %t15, l %t16, l %t18)+ %t20 =w copy 1+ %t21 =w ceqw %t19, %t20+ ret %t21+}++function l $ed__alphabet() {+@start+ dbgloc 59+ dbgloc 60+ %t0 =l copy $__str321+ ret %t0+}++export function l $ed__fingerprint_bytes(l %__ret, l %public_key) {+@start+ %t0 =l alloc8 8+ %t5 =l alloc8 16+ %t11 =l alloc8 8+ %t26 =l alloc8 8+ %t36 =l alloc8 8+ %t45 =l alloc8 16+ dbgloc 64+ storel %public_key, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "public_key", "bytes.Bytes", %t0, 8, 5, 64+ dbgloc 65+ %t2 =l add %public_key, 8+ %t1 =l loadl %t2+ %t3 =l copy 32+ %t4 =w cnel %t1, %t3+ jnz %t4, @lbl7097, @lbl7098+@lbl7097+ dbgloc 66+ storel 0, %t5+ call $memcpy(l %__ret, l %t5, l 16)+ ret %__ret+@lbl7098+ dbgloc 68+ %t7 =l copy 12+ %t8 =l copy 32+ %t9 =l add %t7, %t8+ %t6 =l call $malloc(l %t9)+ %t10 =l copy %t6+ storel %t10, %t11+ call $__sx_dbg_keep(l %t11)+ dbgvar "input", "ref u8", %t11, 8, 7, 68+ dbgloc 69+ %t13 =l copy %t10+ %t14 =l copy $__str322+ %t15 =l copy 12+ call $memcpy(l %t13, l %t14, l %t15)+ %t12 =l copy 0+ dbgloc 70+ %t18 =l copy 12+ %t17 =l add %t10, %t18+ %t19 =l copy %t17+ %t20 =l loadl %public_key+ %t21 =l copy %t20+ %t22 =l copy 32+ call $memcpy(l %t19, l %t21, l %t22)+ %t16 =l copy 0+ dbgloc 71+ %t24 =l copy 32+ %t23 =l call $malloc(l %t24)+ %t25 =l copy %t23+ storel %t25, %t26+ call $__sx_dbg_keep(l %t26)+ dbgvar "digest", "ref u8", %t26, 8, 7, 71+ dbgloc 72+ %t27 =l copy 12+ %t28 =l copy 32+ %t29 =l add %t27, %t28+ %t30 =w call $b3__hash(l %t10, l %t29, l %t25)+ dbgloc 73+ %t32 =l copy %t10+ call $free(l %t32)+ %t31 =l copy 0+ dbgloc 74+ %t34 =l copy 16+ %t33 =l call $malloc(l %t34)+ %t35 =l copy %t33+ storel %t35, %t36+ call $__sx_dbg_keep(l %t36)+ dbgvar "out", "ref u8", %t36, 8, 7, 74+ dbgloc 75+ %t38 =l copy %t35+ %t39 =l copy %t25+ %t40 =l copy 16+ call $memcpy(l %t38, l %t39, l %t40)+ %t37 =l copy 0+ dbgloc 76+ %t42 =l copy %t25+ call $free(l %t42)+ %t41 =l copy 0+ dbgloc 77+ %t43 =l copy 16+ %t44 =l call $bytes__bytes(l %t35, l %t43)+ call $memset(l %t45, w 0, l 16)+ storel 1, %t45+ %t46 =l add %t45, 8+ storel %t44, %t46+ call $memcpy(l %__ret, l %t45, l 16)+ ret %__ret+}++export function l $ed__fingerprint(l %__ret, l %public_key) {+@start+ %t0 =l alloc8 8+ %t2 =l alloc8 16+ %t3 =l alloc8 8+ %t6 =l alloc8 8+ %t11 =l alloc8 16+ %t15 =l alloc8 8+ %t17 =l alloc8 8+ %t19 =l alloc8 8+ %t21 =l alloc8 8+ %t23 =l alloc8 8+ %t34 =l alloc8 8+ %t57 =l alloc8 8+ %t82 =l alloc8 8+ %t103 =l alloc8 16+ dbgloc 81+ storel %public_key, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "public_key", "bytes.Bytes", %t0, 8, 5, 81+ dbgloc 82+ %t1 =l call $ed__fingerprint_bytes(l %t2, l %public_key)+ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "raw_opt", "option[bytes.Bytes]", %t3, 8, 5, 82+ dbgloc 83+ %t4 =l call $bytes__empty()+ %t5 =l call $malloc(l 16)+ call $memset(l %t5, w 0, l 16)+ call $memcpy(l %t5, l %t4, l 16)+ storel %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "raw", "bytes.Bytes", %t6, 8, 5, 83+ dbgloc 84+ %t7 =l loadl %t2+ %t8 =w cnel %t7, 0+ jnz %t8, @lbl7100, @lbl7101+@lbl7100+ %t10 =l add %t2, 8+ %t9 =l loadl %t10+ dbgloc 86+ storel %t9, %t6+ jmp @lbl7102+@lbl7101+ dbgloc 89+ storel 0, %t11+ call $memcpy(l %__ret, l %t11, l 16)+ ret %__ret+@lbl7102+ dbgloc 92+ %t13 =l copy 27+ %t12 =l call $malloc(l %t13)+ %t14 =l copy %t12+ storel %t14, %t15+ call $__sx_dbg_keep(l %t15)+ dbgvar "out", "ref u8", %t15, 8, 7, 92+ dbgloc 93+ %t16 =l copy 0+ storel %t16, %t17+ call $__sx_dbg_keep(l %t17)+ dbgvar "bits", "u64", %t17, 8, 7, 93+ dbgloc 94+ %t18 =l copy 0+ storel %t18, %t19+ call $__sx_dbg_keep(l %t19)+ dbgvar "nbits", "usize", %t19, 8, 5, 94+ dbgloc 95+ %t20 =l copy 0+ storel %t20, %t21+ call $__sx_dbg_keep(l %t21)+ dbgvar "oi", "usize", %t21, 8, 5, 95+ dbgloc 96+ %t22 =l copy 0+ storel %t22, %t23+ call $__sx_dbg_keep(l %t23)+ dbgvar "ri", "usize", %t23, 8, 5, 96+ dbgloc 97+ jmp @lbl7103+@lbl7103+ %t24 =l loadl %t23+ %t25 =l loadl %t6+ %t27 =l add %t25, 8+ %t26 =l loadl %t27+ %t28 =w csltl %t24, %t26+ jnz %t28, @lbl7104, @lbl7106+@lbl7104+ dbgloc 98+ %t29 =l loadl %t6+ %t30 =l loadl %t23+ %t31 =w call $bytes__Bytes__at(l %t29, l %t30)+ %t32 =w copy %t31+ %t33 =w extub %t32+ storew %t33, %t34+ call $__sx_dbg_keep(l %t34)+ dbgvar "b", "u8", %t34, 1, 7, 98+ dbgloc 99+ %t35 =l loadl %t17+ %t36 =l copy 8+ %t37 =l shl %t35, %t36+ %t38 =l extsw %t33+ %t39 =l or %t37, %t38+ storel %t39, %t17+ dbgloc 100+ %t40 =l loadl %t19+ %t41 =l copy 8+ %t42 =l add %t40, %t41+ storel %t42, %t19+ dbgloc 101+ jmp @lbl7107+@lbl7107+ %t43 =l loadl %t19+ %t44 =l copy 5+ %t46 =w csltl %t43, %t44+ %t45 =w ceqw %t46, 0+ jnz %t45, @lbl7108, @lbl7110+@lbl7108+ dbgloc 102+ %t47 =l loadl %t19+ %t48 =l copy 5+ %t49 =l sub %t47, %t48+ storel %t49, %t19+ dbgloc 103+ %t50 =l loadl %t17+ %t51 =l loadl %t19+ %t52 =l copy %t51+ %t53 =l shr %t50, %t52+ %t54 =l copy 31+ %t55 =l and %t53, %t54+ %t56 =l copy %t55+ storel %t56, %t57+ call $__sx_dbg_keep(l %t57)+ dbgvar "idx", "usize", %t57, 8, 5, 103+ dbgloc 104+ %t60 =l loadl %t21+ %t61 =l copy %t60+ %t59 =l add %t14, %t61+ %t64 =l copy $__str321+ %t65 =l copy %t56+ %t63 =l add %t64, %t65+ %t66 =w loadub %t63+ %t62 =l extsw %t66+ storeb %t62, %t59+ %t58 =l copy 0+ dbgloc 105+ %t67 =l loadl %t21+ %t68 =l add %t67, 1+ storel %t68, %t21+ jmp @lbl7109+@lbl7109+ jmp @lbl7107+@lbl7110+ dbgloc 107+ %t69 =l loadl %t23+ %t70 =l add %t69, 1+ storel %t70, %t23+ jmp @lbl7105+@lbl7105+ jmp @lbl7103+@lbl7106+ dbgloc 109+ %t71 =l loadl %t19+ %t72 =l copy 0+ %t73 =w csgtl %t71, %t72+ jnz %t73, @lbl7111, @lbl7112+@lbl7111+ dbgloc 110+ %t74 =l loadl %t17+ %t75 =l copy 5+ %t76 =l loadl %t19+ %t77 =l sub %t75, %t76+ %t78 =l shl %t74, %t77+ %t79 =l copy 31+ %t80 =l and %t78, %t79+ %t81 =l copy %t80+ storel %t81, %t82+ call $__sx_dbg_keep(l %t82)+ dbgvar "idx2", "usize", %t82, 8, 5, 110+ dbgloc 111+ %t85 =l loadl %t21+ %t86 =l copy %t85+ %t84 =l add %t14, %t86+ %t89 =l copy $__str321+ %t90 =l copy %t81+ %t88 =l add %t89, %t90+ %t91 =w loadub %t88+ %t87 =l extsw %t91+ storeb %t87, %t84+ %t83 =l copy 0+ dbgloc 112+ %t92 =l loadl %t21+ %t93 =l add %t92, 1+ storel %t93, %t21+ jmp @lbl7112+@lbl7112+ dbgloc 114+ %t96 =l loadl %t21+ %t97 =l copy %t96+ %t95 =l add %t14, %t97+ %t98 =l copy 0+ storeb %t98, %t95+ %t94 =l copy 0+ dbgloc 115+ %t99 =l loadl %t6+ %t100 =w call $bytes__free_owned(l %t99)+ dbgloc 116+ %t101 =l loadl %t21+ %t102 =l call $bytes__bytes(l %t14, l %t101)+ call $memset(l %t103, w 0, l 16)+ storel 1, %t103+ %t104 =l add %t103, 8+ storel %t102, %t104+ call $memcpy(l %__ret, l %t103, l 16)+ ret %__ret+}++function w $ed__b64_value(w %c) {+@start+ %t0 =l alloc8 8+ %t4 =l alloc4 1+ %t15 =l alloc4 1+ %t26 =l alloc4 1+ dbgloc 119+ storew %c, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "c", "u8", %t0, 1, 7, 119+ dbgloc 120+ %t1 =w copy 65+ %t3 =w csltw %c, %t1+ %t2 =w ceqw %t3, 0+ storew %t2, %t4+ jnz %t2, @lbl7117, @lbl7118+@lbl7117+ %t5 =w copy 90+ %t6 =w cslew %c, %t5+ storew %t6, %t4+ jmp @lbl7118+@lbl7118+ %t7 =w loadw %t4+ jnz %t7, @lbl7114, @lbl7115+@lbl7114+ dbgloc 121+ %t8 =l extsw %c+ %t9 =l copy 65+ %t11 =l extsw %t8+ %t10 =l sub %t11, %t9+ ret %t10+@lbl7115+ dbgloc 123+ %t12 =w copy 97+ %t14 =w csltw %c, %t12+ %t13 =w ceqw %t14, 0+ storew %t13, %t15+ jnz %t13, @lbl7122, @lbl7123+@lbl7122+ %t16 =w copy 122+ %t17 =w cslew %c, %t16+ storew %t17, %t15+ jmp @lbl7123+@lbl7123+ %t18 =w loadw %t15+ jnz %t18, @lbl7119, @lbl7120+@lbl7119+ dbgloc 124+ %t19 =l extsw %c+ %t20 =l copy 71+ %t22 =l extsw %t19+ %t21 =l sub %t22, %t20+ ret %t21+@lbl7120+ dbgloc 126+ %t23 =w copy 48+ %t25 =w csltw %c, %t23+ %t24 =w ceqw %t25, 0+ storew %t24, %t26+ jnz %t24, @lbl7127, @lbl7128+@lbl7127+ %t27 =w copy 57+ %t28 =w cslew %c, %t27+ storew %t28, %t26+ jmp @lbl7128+@lbl7128+ %t29 =w loadw %t26+ jnz %t29, @lbl7124, @lbl7125+@lbl7124+ dbgloc 127+ %t30 =l extsw %c+ %t31 =l copy 4+ %t33 =l extsw %t30+ %t32 =l add %t33, %t31+ ret %t32+@lbl7125+ dbgloc 129+ %t34 =w copy 45+ %t35 =w ceqw %c, %t34+ jnz %t35, @lbl7129, @lbl7130+@lbl7129+ dbgloc 130+ %t36 =l copy 62+ %t37 =w copy %t36+ ret %t37+@lbl7130+ dbgloc 132+ %t38 =w copy 95+ %t39 =w ceqw %c, %t38+ jnz %t39, @lbl7132, @lbl7133+@lbl7132+ dbgloc 133+ %t40 =l copy 63+ %t41 =w copy %t40+ ret %t41+@lbl7133+ dbgloc 135+ %t42 =l copy 1+ %t43 =l neg %t42+ %t44 =w copy %t43+ ret %t44+}++function w $ed__b64_char(w %v) {+@start+ %t0 =l alloc8 8+ dbgloc 138+ storew %v, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "v", "u8", %t0, 1, 7, 138+ dbgloc 139+ %t1 =w copy 26+ %t2 =w csltw %v, %t1+ jnz %t2, @lbl7135, @lbl7136+@lbl7135+ dbgloc 140+ %t3 =l copy 65+ %t4 =l extsw %v+ %t6 =l extsw %t4+ %t5 =l add %t3, %t6+ ret %t5+@lbl7136+ dbgloc 142+ %t7 =w copy 52+ %t8 =w csltw %v, %t7+ jnz %t8, @lbl7138, @lbl7139+@lbl7138+ dbgloc 143+ %t9 =l copy 97+ %t10 =l extsw %v+ %t12 =l extsw %t10+ %t11 =l add %t9, %t12+ %t13 =l copy 26+ %t14 =l sub %t11, %t13+ ret %t14+@lbl7139+ dbgloc 145+ %t15 =w copy 62+ %t16 =w csltw %v, %t15+ jnz %t16, @lbl7141, @lbl7142+@lbl7141+ dbgloc 146+ %t17 =l copy 48+ %t18 =l extsw %v+ %t20 =l extsw %t18+ %t19 =l add %t17, %t20+ %t21 =l copy 52+ %t22 =l sub %t19, %t21+ ret %t22+@lbl7142+ dbgloc 148+ %t23 =w copy 62+ %t24 =w ceqw %v, %t23+ jnz %t24, @lbl7144, @lbl7145+@lbl7144+ dbgloc 149+ %t25 =l copy 45+ %t26 =w copy %t25+ ret %t26+@lbl7145+ dbgloc 151+ %t27 =l copy 95+ %t28 =w copy %t27+ ret %t28+}++export function l $ed__base64url_decode(l %__ret, l %text) {+@start+ %t0 =l alloc8 8+ %t5 =l alloc8 16+ %t12 =l alloc8 8+ %t16 =l alloc8 8+ %t18 =l alloc8 8+ %t20 =l alloc8 8+ %t22 =l alloc8 8+ %t31 =l alloc8 8+ %t36 =l alloc8 16+ %t80 =l alloc8 16+ dbgloc 155+ storel %text, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "text", "bytes.Bytes", %t0, 8, 5, 155+ dbgloc 156+ %t2 =l add %text, 8+ %t1 =l loadl %t2+ %t3 =l copy 0+ %t4 =w ceql %t1, %t3+ jnz %t4, @lbl7147, @lbl7148+@lbl7147+ dbgloc 157+ storel 0, %t5+ call $memcpy(l %__ret, l %t5, l 16)+ ret %__ret+@lbl7148+ dbgloc 159+ %t8 =l add %text, 8+ %t7 =l loadl %t8+ %t9 =l copy 1+ %t10 =l add %t7, %t9+ %t6 =l call $malloc(l %t10)+ %t11 =l copy %t6+ storel %t11, %t12+ call $__sx_dbg_keep(l %t12)+ dbgvar "out", "ref u8", %t12, 8, 7, 159+ dbgloc 160+ %t13 =l copy 0+ %t14 =w copy %t13+ %t15 =w copy %t14+ storew %t15, %t16+ call $__sx_dbg_keep(l %t16)+ dbgvar "acc", "u32", %t16, 4, 7, 160+ dbgloc 161+ %t17 =l copy 0+ storel %t17, %t18+ call $__sx_dbg_keep(l %t18)+ dbgvar "bits", "usize", %t18, 8, 5, 161+ dbgloc 162+ %t19 =l copy 0+ storel %t19, %t20+ call $__sx_dbg_keep(l %t20)+ dbgvar "oi", "usize", %t20, 8, 5, 162+ dbgloc 163+ %t21 =l copy 0+ storel %t21, %t22+ call $__sx_dbg_keep(l %t22)+ dbgvar "i", "usize", %t22, 8, 5, 163+ dbgloc 164+ jmp @lbl7150+@lbl7150+ %t23 =l loadl %t22+ %t25 =l add %text, 8+ %t24 =l loadl %t25+ %t26 =w csltl %t23, %t24+ jnz %t26, @lbl7151, @lbl7153+@lbl7151+ dbgloc 165+ %t27 =l loadl %t22+ %t28 =w call $bytes__Bytes__at(l %text, l %t27)+ %t29 =w call $ed__b64_value(w %t28)+ %t30 =w copy %t29+ storew %t30, %t31+ call $__sx_dbg_keep(l %t31)+ dbgvar "v", "i32", %t31, 4, 5, 165+ dbgloc 166+ %t32 =w copy 0+ %t33 =w csltw %t30, %t32+ jnz %t33, @lbl7154, @lbl7155+@lbl7154+ dbgloc 167+ %t35 =l copy %t11+ call $free(l %t35)+ %t34 =l copy 0+ dbgloc 168+ storel 0, %t36+ call $memcpy(l %__ret, l %t36, l 16)+ ret %__ret+@lbl7155+ dbgloc 170+ %t38 =w loadw %t16+ %t37 =l extsw %t38+ %t39 =l extsw %t37+ %t40 =l copy 6+ %t42 =l extsw %t39+ %t41 =l shl %t42, %t40+ %t43 =l extsw %t30+ %t45 =l extsw %t43+ %t44 =l or %t41, %t45+ %t46 =w copy %t44+ %t47 =w copy %t46+ storew %t47, %t16+ dbgloc 171+ %t48 =l loadl %t18+ %t49 =l copy 6+ %t50 =l add %t48, %t49+ storel %t50, %t18+ dbgloc 172+ %t51 =l loadl %t18+ %t52 =l copy 8+ %t54 =w csltl %t51, %t52+ %t53 =w ceqw %t54, 0+ jnz %t53, @lbl7157, @lbl7158+@lbl7157+ dbgloc 173+ %t55 =l loadl %t18+ %t56 =l copy 8+ %t57 =l sub %t55, %t56+ storel %t57, %t18+ dbgloc 174+ %t60 =l loadl %t20+ %t61 =l copy %t60+ %t59 =l add %t11, %t61+ %t63 =w loadw %t16+ %t62 =l extsw %t63+ %t64 =l extsw %t62+ %t65 =l loadl %t18+ %t66 =l extsw %t65+ %t68 =l extuw %t64+ %t69 =l extsw %t66+ %t67 =l shr %t68, %t69+ %t70 =l extsw %t67+ %t71 =l copy 255+ %t73 =l extsw %t70+ %t72 =l and %t73, %t71+ storeb %t72, %t59+ %t58 =l copy 0+ dbgloc 175+ %t74 =l loadl %t20+ %t75 =l add %t74, 1+ storel %t75, %t20+ jmp @lbl7158+@lbl7158+ dbgloc 177+ %t76 =l loadl %t22+ %t77 =l add %t76, 1+ storel %t77, %t22+ jmp @lbl7152+@lbl7152+ jmp @lbl7150+@lbl7153+ dbgloc 179+ %t78 =l loadl %t20+ %t79 =l call $bytes__bytes(l %t11, l %t78)+ call $memset(l %t80, w 0, l 16)+ storel 1, %t80+ %t81 =l add %t80, 8+ storel %t79, %t81+ call $memcpy(l %__ret, l %t80, l 16)+ ret %__ret+}++export function l $ed__base64url_encode(l %data) {+@start+ %t0 =l alloc8 8+ %t11 =l alloc8 8+ %t15 =l alloc8 8+ %t17 =l alloc8 8+ %t19 =l alloc8 8+ %t21 =l alloc8 8+ %t30 =l alloc8 8+ dbgloc 183+ storel %data, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "data", "bytes.Bytes", %t0, 8, 5, 183+ dbgloc 184+ %t3 =l add %data, 8+ %t2 =l loadl %t3+ %t4 =l copy 4+ %t5 =l mul %t2, %t4+ %t6 =l copy 3+ %t7 =l div %t5, %t6+ %t8 =l copy 5+ %t9 =l add %t7, %t8+ %t1 =l call $malloc(l %t9)+ %t10 =l copy %t1+ storel %t10, %t11+ call $__sx_dbg_keep(l %t11)+ dbgvar "out", "ref u8", %t11, 8, 7, 184+ dbgloc 185+ %t12 =l copy 0+ %t13 =w copy %t12+ %t14 =w copy %t13+ storew %t14, %t15+ call $__sx_dbg_keep(l %t15)+ dbgvar "acc", "u32", %t15, 4, 7, 185+ dbgloc 186+ %t16 =l copy 0+ storel %t16, %t17+ call $__sx_dbg_keep(l %t17)+ dbgvar "bits", "usize", %t17, 8, 5, 186+ dbgloc 187+ %t18 =l copy 0+ storel %t18, %t19+ call $__sx_dbg_keep(l %t19)+ dbgvar "oi", "usize", %t19, 8, 5, 187+ dbgloc 188+ %t20 =l copy 0+ storel %t20, %t21+ call $__sx_dbg_keep(l %t21)+ dbgvar "di", "usize", %t21, 8, 5, 188+ dbgloc 189+ jmp @lbl7160+@lbl7160+ %t22 =l loadl %t21+ %t24 =l add %data, 8+ %t23 =l loadl %t24+ %t25 =w csltl %t22, %t23+ jnz %t25, @lbl7161, @lbl7163+@lbl7161+ dbgloc 190+ %t26 =l loadl %t21+ %t27 =w call $bytes__Bytes__at(l %data, l %t26)+ %t28 =w copy %t27+ %t29 =w extub %t28+ storew %t29, %t30+ call $__sx_dbg_keep(l %t30)+ dbgvar "b", "u8", %t30, 1, 7, 190+ dbgloc 191+ %t32 =w loadw %t15+ %t31 =l extsw %t32+ %t33 =l extsw %t31+ %t34 =l copy 8+ %t36 =l extsw %t33+ %t35 =l shl %t36, %t34+ %t37 =l extsw %t29+ %t39 =l extsw %t37+ %t38 =l or %t35, %t39+ %t40 =w copy %t38+ %t41 =w copy %t40+ storew %t41, %t15+ dbgloc 192+ %t42 =l loadl %t17+ %t43 =l copy 8+ %t44 =l add %t42, %t43+ storel %t44, %t17+ dbgloc 193+ jmp @lbl7164+@lbl7164+ %t45 =l loadl %t17+ %t46 =l copy 6+ %t48 =w csltl %t45, %t46+ %t47 =w ceqw %t48, 0+ jnz %t47, @lbl7165, @lbl7167+@lbl7165+ dbgloc 194+ %t49 =l loadl %t17+ %t50 =l copy 6+ %t51 =l sub %t49, %t50+ storel %t51, %t17+ dbgloc 195+ %t54 =l loadl %t19+ %t55 =l copy %t54+ %t53 =l add %t10, %t55+ %t57 =w loadw %t15+ %t56 =l extsw %t57+ %t58 =l extsw %t56+ %t59 =l loadl %t17+ %t60 =l extsw %t59+ %t62 =l extuw %t58+ %t63 =l extsw %t60+ %t61 =l shr %t62, %t63+ %t64 =l extsw %t61+ %t65 =l copy 63+ %t67 =l extsw %t64+ %t66 =l and %t67, %t65+ %t68 =w call $ed__b64_char(w %t66)+ storeb %t68, %t53+ %t52 =l copy 0+ dbgloc 196+ %t69 =l loadl %t19+ %t70 =l add %t69, 1+ storel %t70, %t19+ jmp @lbl7166+@lbl7166+ jmp @lbl7164+@lbl7167+ dbgloc 198+ %t71 =l loadl %t21+ %t72 =l add %t71, 1+ storel %t72, %t21+ jmp @lbl7162+@lbl7162+ jmp @lbl7160+@lbl7163+ dbgloc 200+ %t73 =l loadl %t17+ %t74 =l copy 0+ %t75 =w csgtl %t73, %t74+ jnz %t75, @lbl7168, @lbl7169+@lbl7168+ dbgloc 201+ %t78 =l loadl %t19+ %t79 =l copy %t78+ %t77 =l add %t10, %t79+ %t81 =w loadw %t15+ %t80 =l extsw %t81+ %t82 =l extsw %t80+ %t83 =l copy 6+ %t84 =l loadl %t17+ %t85 =l sub %t83, %t84+ %t87 =l extsw %t82+ %t86 =l shl %t87, %t85+ %t88 =l copy 63+ %t89 =l and %t86, %t88+ %t90 =w call $ed__b64_char(w %t89)+ storeb %t90, %t77+ %t76 =l copy 0+ dbgloc 202+ %t91 =l loadl %t19+ %t92 =l add %t91, 1+ storel %t92, %t19+ jmp @lbl7169+@lbl7169+ dbgloc 204+ %t95 =l loadl %t19+ %t96 =l copy %t95+ %t94 =l add %t10, %t96+ %t97 =l copy 0+ storeb %t97, %t94+ %t93 =l copy 0+ dbgloc 205+ %t98 =l loadl %t19+ %t99 =l call $bytes__bytes(l %t10, l %t98)+ ret %t99+}++export function l $ed__parse_public(l %__ret, l %text) {+@start+ %t0 =l alloc8 8+ %t4 =l alloc8 8+ %t7 =l alloc8 16+ %t12 =l alloc8 8+ %t14 =l alloc8 16+ %t15 =l alloc8 8+ %t25 =l alloc8 16+ %t26 =l alloc8 16+ %t28 =l alloc8 16+ dbgloc 209+ storel %text, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "text", "bytes.Bytes", %t0, 8, 5, 209+ dbgloc 210+ %t1 =l copy $__str323+ %t2 =l copy 8+ %t3 =l call $bytes__bytes(l %t1, l %t2)+ storel %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "prefix", "bytes.Bytes", %t4, 8, 5, 210+ dbgloc 211+ %t5 =w call $bytes__Bytes__starts_with(l %text, l %t3)+ %t6 =w ceqw %t5, 0+ jnz %t6, @lbl7171, @lbl7172+@lbl7171+ dbgloc 212+ storel 0, %t7+ call $memcpy(l %__ret, l %t7, l 16)+ ret %__ret+@lbl7172+ dbgloc 214+ %t8 =l copy 8+ %t10 =l add %text, 8+ %t9 =l loadl %t10+ %t11 =l call $bytes__Bytes__slice(l %text, l %t8, l %t9)+ storel %t11, %t12+ call $__sx_dbg_keep(l %t12)+ dbgvar "encoded", "bytes.Bytes", %t12, 8, 5, 214+ dbgloc 215+ %t13 =l call $ed__base64url_decode(l %t14, l %t11)+ storel %t14, %t15+ call $__sx_dbg_keep(l %t15)+ dbgvar "decoded", "option[bytes.Bytes]", %t15, 8, 5, 215+ dbgloc 216+ %t16 =l loadl %t14+ %t17 =w cnel %t16, 0+ jnz %t17, @lbl7174, @lbl7175+@lbl7174+ %t19 =l add %t14, 8+ %t18 =l loadl %t19+ dbgloc 218+ %t21 =l add %t18, 8+ %t20 =l loadl %t21+ %t22 =l copy 32+ %t23 =w cnel %t20, %t22+ jnz %t23, @lbl7177, @lbl7178+@lbl7177+ dbgloc 219+ %t24 =w call $bytes__free_owned(l %t18)+ dbgloc 220+ storel 0, %t25+ call $memcpy(l %__ret, l %t25, l 16)+ ret %__ret+@lbl7178+ dbgloc 222+ call $memset(l %t26, w 0, l 16)+ storel 1, %t26+ %t27 =l add %t26, 8+ storel %t18, %t27+ call $memcpy(l %__ret, l %t26, l 16)+ ret %__ret+@lbl7175+ dbgloc 225+ storel 0, %t28+ call $memcpy(l %__ret, l %t28, l 16)+ ret %__ret+@lbl7176+ ret 0+}++export function l $ed__format_public(l %public_key) {+@start+ %t0 =l alloc8 8+ %t2 =l alloc8 8+ %t9 =l alloc8 8+ dbgloc 231+ storel %public_key, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "public_key", "bytes.Bytes", %t0, 8, 5, 231+ dbgloc 232+ %t1 =l call $ed__base64url_encode(l %public_key)+ storel %t1, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "enc", "bytes.Bytes", %t2, 8, 5, 232+ dbgloc 233+ %t4 =l copy 8+ %t6 =l add %t1, 8+ %t5 =l loadl %t6+ %t7 =l add %t4, %t5+ %t3 =l call $malloc(l %t7)+ %t8 =l copy %t3+ storel %t8, %t9+ call $__sx_dbg_keep(l %t9)+ dbgvar "out", "ref u8", %t9, 8, 7, 233+ dbgloc 234+ %t11 =l copy %t8+ %t12 =l copy $__str323+ %t13 =l copy 8+ call $memcpy(l %t11, l %t12, l %t13)+ %t10 =l copy 0+ dbgloc 235+ %t16 =l copy 8+ %t15 =l add %t8, %t16+ %t17 =l copy %t15+ %t18 =l loadl %t1+ %t19 =l copy %t18+ %t21 =l add %t1, 8+ %t20 =l loadl %t21+ call $memcpy(l %t17, l %t19, l %t20)+ %t14 =l copy 0+ dbgloc 236+ %t22 =w call $bytes__free_owned(l %t1)+ dbgloc 237+ %t23 =l copy 8+ %t25 =l add %t1, 8+ %t24 =l loadl %t25+ %t26 =l add %t23, %t24+ %t27 =l call $bytes__bytes(l %t8, l %t26)+ ret %t27+}++export function l $ed__base32_text(l %raw) {+@start+ %t0 =l alloc8 8+ %t11 =l alloc8 8+ %t13 =l alloc8 8+ %t15 =l alloc8 8+ %t17 =l alloc8 8+ %t19 =l alloc8 8+ %t28 =l alloc8 8+ %t51 =l alloc8 8+ %t76 =l alloc8 8+ dbgloc 241+ storel %raw, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "raw", "bytes.Bytes", %t0, 8, 5, 241+ dbgloc 242+ %t3 =l add %raw, 8+ %t2 =l loadl %t3+ %t4 =l copy 8+ %t5 =l mul %t2, %t4+ %t6 =l copy 5+ %t7 =l div %t5, %t6+ %t8 =l copy 4+ %t9 =l add %t7, %t8+ %t1 =l call $malloc(l %t9)+ %t10 =l copy %t1+ storel %t10, %t11+ call $__sx_dbg_keep(l %t11)+ dbgvar "out", "ref u8", %t11, 8, 7, 242+ dbgloc 243+ %t12 =l copy 0+ storel %t12, %t13+ call $__sx_dbg_keep(l %t13)+ dbgvar "bits", "u64", %t13, 8, 7, 243+ dbgloc 244+ %t14 =l copy 0+ storel %t14, %t15+ call $__sx_dbg_keep(l %t15)+ dbgvar "nbits", "usize", %t15, 8, 5, 244+ dbgloc 245+ %t16 =l copy 0+ storel %t16, %t17+ call $__sx_dbg_keep(l %t17)+ dbgvar "oi", "usize", %t17, 8, 5, 245+ dbgloc 246+ %t18 =l copy 0+ storel %t18, %t19+ call $__sx_dbg_keep(l %t19)+ dbgvar "ri", "usize", %t19, 8, 5, 246+ dbgloc 247+ jmp @lbl7180+@lbl7180+ %t20 =l loadl %t19+ %t22 =l add %raw, 8+ %t21 =l loadl %t22+ %t23 =w csltl %t20, %t21+ jnz %t23, @lbl7181, @lbl7183+@lbl7181+ dbgloc 248+ %t24 =l loadl %t19+ %t25 =w call $bytes__Bytes__at(l %raw, l %t24)+ %t26 =w copy %t25+ %t27 =w extub %t26+ storew %t27, %t28+ call $__sx_dbg_keep(l %t28)+ dbgvar "b", "u8", %t28, 1, 7, 248+ dbgloc 249+ %t29 =l loadl %t13+ %t30 =l copy 8+ %t31 =l shl %t29, %t30+ %t32 =l extsw %t27+ %t33 =l or %t31, %t32+ storel %t33, %t13+ dbgloc 250+ %t34 =l loadl %t15+ %t35 =l copy 8+ %t36 =l add %t34, %t35+ storel %t36, %t15+ dbgloc 251+ jmp @lbl7184+@lbl7184+ %t37 =l loadl %t15+ %t38 =l copy 5+ %t40 =w csltl %t37, %t38+ %t39 =w ceqw %t40, 0+ jnz %t39, @lbl7185, @lbl7187+@lbl7185+ dbgloc 252+ %t41 =l loadl %t15+ %t42 =l copy 5+ %t43 =l sub %t41, %t42+ storel %t43, %t15+ dbgloc 253+ %t44 =l loadl %t13+ %t45 =l loadl %t15+ %t46 =l copy %t45+ %t47 =l shr %t44, %t46+ %t48 =l copy 31+ %t49 =l and %t47, %t48+ %t50 =l copy %t49+ storel %t50, %t51+ call $__sx_dbg_keep(l %t51)+ dbgvar "idx", "usize", %t51, 8, 5, 253+ dbgloc 254+ %t54 =l loadl %t17+ %t55 =l copy %t54+ %t53 =l add %t10, %t55+ %t58 =l copy $__str321+ %t59 =l copy %t50+ %t57 =l add %t58, %t59+ %t60 =w loadub %t57+ %t56 =l extsw %t60+ storeb %t56, %t53+ %t52 =l copy 0+ dbgloc 255+ %t61 =l loadl %t17+ %t62 =l add %t61, 1+ storel %t62, %t17+ jmp @lbl7186+@lbl7186+ jmp @lbl7184+@lbl7187+ dbgloc 257+ %t63 =l loadl %t19+ %t64 =l add %t63, 1+ storel %t64, %t19+ jmp @lbl7182+@lbl7182+ jmp @lbl7180+@lbl7183+ dbgloc 259+ %t65 =l loadl %t15+ %t66 =l copy 0+ %t67 =w csgtl %t65, %t66+ jnz %t67, @lbl7188, @lbl7189+@lbl7188+ dbgloc 260+ %t68 =l loadl %t13+ %t69 =l copy 5+ %t70 =l loadl %t15+ %t71 =l sub %t69, %t70+ %t72 =l shl %t68, %t71+ %t73 =l copy 31+ %t74 =l and %t72, %t73+ %t75 =l copy %t74+ storel %t75, %t76+ call $__sx_dbg_keep(l %t76)+ dbgvar "idx2", "usize", %t76, 8, 5, 260+ dbgloc 261+ %t79 =l loadl %t17+ %t80 =l copy %t79+ %t78 =l add %t10, %t80+ %t83 =l copy $__str321+ %t84 =l copy %t75+ %t82 =l add %t83, %t84+ %t85 =w loadub %t82+ %t81 =l extsw %t85+ storeb %t81, %t78+ %t77 =l copy 0+ dbgloc 262+ %t86 =l loadl %t17+ %t87 =l add %t86, 1+ storel %t87, %t17+ jmp @lbl7189+@lbl7189+ dbgloc 264+ %t90 =l loadl %t17+ %t91 =l copy %t90+ %t89 =l add %t10, %t91+ %t92 =l copy 0+ storeb %t92, %t89+ %t88 =l copy 0+ dbgloc 265+ %t93 =l loadl %t17+ %t94 =l call $bytes__bytes(l %t10, l %t93)+ ret %t94+}++dbgfile "src/auth/keys.sx"+function l $keys__env_dup(l %__ret, l %name) {+@start+ %t0 =l alloc8 8+ %t2 =l alloc8 16+ %t3 =l alloc8 8+ %t10 =l alloc8 16+ %t12 =l alloc8 16+ dbgloc 19+ storel %name, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "name", "ref u8", %t0, 8, 7, 19+ dbgloc 20+ %t1 =l call $std__os__env(l %t2, l %name)+ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "v", "option[ref u8]", %t3, 8, 5, 20+ dbgloc 21+ %t4 =l loadl %t2+ %t5 =w cnel %t4, 0+ jnz %t5, @lbl7191, @lbl7192+@lbl7191+ %t7 =l add %t2, 8+ %t6 =l loadl %t7+ dbgloc 23+ %t8 =l call $bytes__from_cstr(l %t6)+ %t9 =l call $bytes__Bytes__dup(l %t8)+ call $memset(l %t10, w 0, l 16)+ storel 1, %t10+ %t11 =l add %t10, 8+ storel %t9, %t11+ call $memcpy(l %__ret, l %t10, l 16)+ ret %__ret+@lbl7192+ dbgloc 26+ storel 0, %t12+ call $memcpy(l %__ret, l %t12, l 16)+ ret %__ret+@lbl7193+ ret 0+}++export function l $keys__key_dir() {+@start+ %t2 =l alloc8 16+ %t3 =l alloc8 8+ %t12 =l alloc8 8+ %t20 =l alloc8 16+ %t21 =l alloc8 8+ %t30 =l alloc8 8+ dbgloc 31+ dbgloc 32+ %t0 =l copy $__str143+ %t1 =l call $keys__env_dup(l %t2, l %t0)+ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "xdg", "option[bytes.Bytes]", %t3, 8, 5, 32+ dbgloc 33+ %t4 =l loadl %t2+ %t5 =w cnel %t4, 0+ jnz %t5, @lbl7194, @lbl7195+@lbl7194+ %t7 =l add %t2, 8+ %t6 =l loadl %t7+ dbgloc 34+ %t8 =l call $files__to_view(l %t6)+ %t9 =l copy $__str324+ %t10 =l call $std__str__from_cstr(l %t9)+ %t11 =l call $files__join(l %t8, l %t10)+ storel %t11, %t12+ call $__sx_dbg_keep(l %t12)+ dbgvar "out", "str.StringView", %t12, 8, 5, 34+ dbgloc 38+ %t13 =w call $files__free_buffer(l %t6)+ dbgloc 39+ %t14 =l loadl %t11+ %t16 =l add %t11, 8+ %t15 =l loadl %t16+ %t17 =l call $bytes__bytes(l %t14, l %t15)+ ret %t17+@lbl7195+ jmp @lbl7196+@lbl7196+ dbgloc 41+ %t18 =l copy $__str142+ %t19 =l call $keys__env_dup(l %t20, l %t18)+ storel %t20, %t21+ call $__sx_dbg_keep(l %t21)+ dbgvar "home", "option[bytes.Bytes]", %t21, 8, 5, 41+ dbgloc 42+ %t22 =l loadl %t20+ %t23 =w cnel %t22, 0+ jnz %t23, @lbl7197, @lbl7198+@lbl7197+ %t25 =l add %t20, 8+ %t24 =l loadl %t25+ dbgloc 43+ %t26 =l call $files__to_view(l %t24)+ %t27 =l copy $__str325+ %t28 =l call $std__str__from_cstr(l %t27)+ %t29 =l call $files__join(l %t26, l %t28)+ storel %t29, %t30+ call $__sx_dbg_keep(l %t30)+ dbgvar "out2", "str.StringView", %t30, 8, 5, 43+ dbgloc 47+ %t31 =w call $files__free_buffer(l %t24)+ dbgloc 48+ %t32 =l loadl %t29+ %t34 =l add %t29, 8+ %t33 =l loadl %t34+ %t35 =l call $bytes__bytes(l %t32, l %t33)+ ret %t35+@lbl7198+ jmp @lbl7199+@lbl7199+ dbgloc 50+ %t36 =l copy $__str326+ %t37 =l copy 11+ %t38 =l call $bytes__bytes(l %t36, l %t37)+ %t39 =l call $bytes__Bytes__dup(l %t38)+ ret %t39+}++export function l $keys__key_path(l %name) {+@start+ %t0 =l alloc8 8+ %t2 =l alloc8 8+ %t9 =l alloc8 8+ %t41 =l alloc8 8+ dbgloc 53+ storel %name, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "name", "bytes.Bytes", %t0, 8, 5, 53+ dbgloc 54+ %t1 =l call $keys__key_dir()+ storel %t1, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "dir", "bytes.Bytes", %t2, 8, 5, 54+ dbgloc 55+ %t5 =l add %name, 8+ %t4 =l loadl %t5+ %t6 =l copy 5+ %t7 =l add %t4, %t6+ %t3 =l call $malloc(l %t7)+ %t8 =l copy %t3+ storel %t8, %t9+ call $__sx_dbg_keep(l %t9)+ dbgvar "fname", "ref u8", %t9, 8, 7, 55+ dbgloc 56+ %t11 =l copy %t8+ %t12 =l loadl %name+ %t13 =l copy %t12+ %t15 =l add %name, 8+ %t14 =l loadl %t15+ call $memcpy(l %t11, l %t13, l %t14)+ %t10 =l copy 0+ dbgloc 57+ %t19 =l add %name, 8+ %t18 =l loadl %t19+ %t20 =l copy %t18+ %t17 =l add %t8, %t20+ %t21 =l copy %t17+ %t22 =l copy $__str327+ %t23 =l copy %t22+ %t24 =l copy 4+ call $memcpy(l %t21, l %t23, l %t24)+ %t16 =l copy 0+ dbgloc 58+ %t28 =l add %name, 8+ %t27 =l loadl %t28+ %t29 =l copy 4+ %t30 =l add %t27, %t29+ %t31 =l copy %t30+ %t26 =l add %t8, %t31+ %t32 =l copy 0+ storeb %t32, %t26+ %t25 =l copy 0+ dbgloc 59+ %t33 =l call $files__to_view(l %t1)+ %t35 =l add %name, 8+ %t34 =l loadl %t35+ %t36 =l copy 4+ %t37 =l add %t34, %t36+ %t38 =l copy %t37+ %t39 =l call $std__str__view(l %t8, l %t38)+ %t40 =l call $files__join(l %t33, l %t39)+ storel %t40, %t41+ call $__sx_dbg_keep(l %t41)+ dbgvar "joined", "str.StringView", %t41, 8, 5, 59+ dbgloc 63+ %t42 =w call $bytes__free_owned(l %t1)+ dbgloc 64+ %t44 =l copy %t8+ call $free(l %t44)+ %t43 =l copy 0+ dbgloc 65+ %t45 =l loadl %t40+ %t47 =l add %t40, 8+ %t46 =l loadl %t47+ %t48 =l call $bytes__bytes(l %t45, l %t46)+ ret %t48+}++function w $keys__mkdirs(l %path) {+@start+ %t0 =l alloc8 8+ %t5 =l alloc8 8+ %t18 =l alloc8 8+ dbgloc 68+ storel %path, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "path", "bytes.Bytes", %t0, 8, 5, 68+ dbgloc 69+ %t1 =l call $files__to_view(l %path)+ %t2 =w call $files__exists_dir(l %t1)+ jnz %t2, @lbl7200, @lbl7201+@lbl7200+ dbgloc 70+ %t3 =l copy 1+ ret %t3+@lbl7201+ dbgloc 72+ %t4 =l copy 1+ storel %t4, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "i", "usize", %t5, 8, 5, 72+ dbgloc 73+ jmp @lbl7203+@lbl7203+ %t6 =l loadl %t5+ %t8 =l add %path, 8+ %t7 =l loadl %t8+ %t9 =w csltl %t6, %t7+ jnz %t9, @lbl7204, @lbl7206+@lbl7204+ dbgloc 74+ %t10 =l loadl %t5+ %t11 =w call $bytes__Bytes__at(l %path, l %t10)+ %t12 =w copy 47+ %t13 =w ceqw %t11, %t12+ jnz %t13, @lbl7207, @lbl7208+@lbl7207+ dbgloc 75+ %t14 =l loadl %path+ %t15 =l loadl %t5+ %t16 =l copy %t15+ %t17 =l call $std__str__view(l %t14, l %t16)+ storel %t17, %t18+ call $__sx_dbg_keep(l %t18)+ dbgvar "part", "str.StringView", %t18, 8, 5, 75+ dbgloc 76+ %t19 =w call $files__mkdir_all(l %t17)+ jmp @lbl7208+@lbl7208+ dbgloc 78+ %t20 =l loadl %t5+ %t21 =l add %t20, 1+ storel %t21, %t5+ jmp @lbl7205+@lbl7205+ jmp @lbl7203+@lbl7206+ dbgloc 80+ %t22 =l call $files__to_view(l %path)+ %t23 =w call $files__mkdir_all(l %t22)+ ret %t23+}++function w $keys__valid_name(l %name) {+@start+ %t0 =l alloc8 8+ %t5 =l alloc4 1+ %t13 =l alloc8 8+ %t22 =l alloc8 8+ %t25 =l alloc4 1+ %t29 =l alloc4 1+ dbgloc 83+ storel %name, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "name", "bytes.Bytes", %t0, 8, 5, 83+ dbgloc 84+ %t2 =l add %name, 8+ %t1 =l loadl %t2+ %t3 =l copy 0+ %t4 =w ceql %t1, %t3+ storew %t4, %t5+ jnz %t4, @lbl7214, @lbl7213+@lbl7213+ %t7 =l add %name, 8+ %t6 =l loadl %t7+ %t8 =l copy 128+ %t9 =w csgtl %t6, %t8+ storew %t9, %t5+ jmp @lbl7214+@lbl7214+ %t10 =w loadw %t5+ jnz %t10, @lbl7210, @lbl7211+@lbl7210+ dbgloc 85+ %t11 =l copy 0+ ret %t11+@lbl7211+ dbgloc 87+ %t12 =l copy 0+ storel %t12, %t13+ call $__sx_dbg_keep(l %t13)+ dbgvar "i", "usize", %t13, 8, 5, 87+ dbgloc 88+ jmp @lbl7215+@lbl7215+ %t14 =l loadl %t13+ %t16 =l add %name, 8+ %t15 =l loadl %t16+ %t17 =w csltl %t14, %t15+ jnz %t17, @lbl7216, @lbl7218+@lbl7216+ dbgloc 89+ %t18 =l loadl %t13+ %t19 =w call $bytes__Bytes__at(l %name, l %t18)+ %t20 =w copy %t19+ %t21 =w extub %t20+ storew %t21, %t22+ call $__sx_dbg_keep(l %t22)+ dbgvar "c", "u8", %t22, 1, 7, 89+ dbgloc 90+ %t23 =w copy 47+ %t24 =w ceqw %t21, %t23+ storew %t24, %t25+ jnz %t24, @lbl7223, @lbl7222+@lbl7222+ %t26 =w copy 92+ %t27 =w ceqw %t21, %t26+ storew %t27, %t25+ jmp @lbl7223+@lbl7223+ %t28 =w loadw %t25+ storew %t28, %t29+ jnz %t28, @lbl7225, @lbl7224+@lbl7224+ %t30 =w copy 0+ %t31 =w ceqw %t21, %t30+ storew %t31, %t29+ jmp @lbl7225+@lbl7225+ %t32 =w loadw %t29+ jnz %t32, @lbl7219, @lbl7220+@lbl7219+ dbgloc 91+ %t33 =l copy 0+ ret %t33+@lbl7220+ dbgloc 93+ %t34 =l loadl %t13+ %t35 =l add %t34, 1+ storel %t35, %t13+ jmp @lbl7217+@lbl7217+ jmp @lbl7215+@lbl7218+ dbgloc 95+ %t36 =l copy 1+ ret %t36+}++export function l $keys__load(l %__ret, l %name) {+@start+ %t0 =l alloc8 8+ %t2 =l alloc8 8+ %t4 =l alloc8 8+ %t7 =l alloc8 8+ %t10 =l alloc4 1+ %t21 =l alloc8 16+ %t24 =l alloc8 16+ %t25 =l alloc8 8+ %t31 =l alloc8 8+ %t36 =l alloc8 16+ %t42 =l alloc4 1+ %t51 =l alloc8 16+ %t57 =l alloc8 8+ %t61 =l alloc8 16+ %t62 =l alloc8 8+ %t65 =l alloc8 8+ %t71 =l alloc8 16+ %t74 =l alloc8 16+ %t75 =l alloc8 8+ %t78 =l alloc8 8+ %t86 =l alloc8 16+ %t95 =l alloc8 16+ dbgloc 98+ storel %name, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "name", "bytes.Bytes", %t0, 8, 5, 98+ dbgloc 99+ %t1 =l call $keys__key_path(l %name)+ storel %t1, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "p", "bytes.Bytes", %t2, 8, 5, 99+ dbgloc 100+ %t3 =l call $bytes__Bytes__to_cstr(l %t1)+ storel %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "z", "ref u8", %t4, 8, 7, 100+ dbgloc 101+ %t5 =w call $tls__file_mode(l %t3)+ %t6 =w copy %t5+ storew %t6, %t7+ call $__sx_dbg_keep(l %t7)+ dbgvar "mode", "i32", %t7, 4, 5, 101+ dbgloc 102+ %t8 =w copy 0+ %t9 =w csltw %t6, %t8+ storew %t9, %t10+ jnz %t9, @lbl7230, @lbl7229+@lbl7229+ %t11 =l extsw %t6+ %t12 =l copy 63+ %t14 =l extsw %t11+ %t13 =l and %t14, %t12+ %t15 =l copy 0+ %t16 =w cnel %t13, %t15+ storew %t16, %t10+ jmp @lbl7230+@lbl7230+ %t17 =w loadw %t10+ jnz %t17, @lbl7226, @lbl7227+@lbl7226+ dbgloc 103+ %t18 =w call $bytes__free_owned(l %t1)+ dbgloc 104+ %t20 =l copy %t3+ call $free(l %t20)+ %t19 =l copy 0+ dbgloc 105+ storel 0, %t21+ call $memcpy(l %__ret, l %t21, l 16)+ ret %__ret+@lbl7227+ dbgloc 107+ %t22 =l call $files__to_view(l %t1)+ %t23 =l call $files__read_all(l %t24, l %t22)+ storel %t24, %t25+ call $__sx_dbg_keep(l %t25)+ dbgvar "data_opt", "option[bytes.Bytes]", %t25, 8, 5, 107+ dbgloc 108+ %t26 =w call $bytes__free_owned(l %t1)+ dbgloc 109+ %t28 =l copy %t3+ call $free(l %t28)+ %t27 =l copy 0+ dbgloc 110+ %t29 =l call $bytes__empty()+ %t30 =l call $malloc(l 16)+ call $memset(l %t30, w 0, l 16)+ call $memcpy(l %t30, l %t29, l 16)+ storel %t30, %t31+ call $__sx_dbg_keep(l %t31)+ dbgvar "data", "bytes.Bytes", %t31, 8, 5, 110+ dbgloc 111+ %t32 =l loadl %t24+ %t33 =w cnel %t32, 0+ jnz %t33, @lbl7231, @lbl7232+@lbl7231+ %t35 =l add %t24, 8+ %t34 =l loadl %t35+ dbgloc 113+ storel %t34, %t31+ jmp @lbl7233+@lbl7232+ dbgloc 116+ storel 0, %t36+ call $memcpy(l %__ret, l %t36, l 16)+ ret %__ret+@lbl7233+ dbgloc 119+ %t37 =l loadl %t31+ %t39 =l add %t37, 8+ %t38 =l loadl %t39+ %t40 =l copy 33+ %t41 =w cnel %t38, %t40+ storew %t41, %t42+ jnz %t41, @lbl7238, @lbl7237+@lbl7237+ %t43 =l loadl %t31+ %t44 =l copy 0+ %t45 =w call $bytes__Bytes__at(l %t43, l %t44)+ %t46 =w copy 1+ %t47 =w cnew %t45, %t46+ storew %t47, %t42+ jmp @lbl7238+@lbl7238+ %t48 =w loadw %t42+ jnz %t48, @lbl7234, @lbl7235+@lbl7234+ dbgloc 120+ %t49 =l loadl %t31+ %t50 =w call $files__free_buffer(l %t49)+ dbgloc 121+ storel 0, %t51+ call $memcpy(l %__ret, l %t51, l 16)+ ret %__ret+@lbl7235+ dbgloc 123+ %t52 =l loadl %t31+ %t53 =l copy 1+ %t54 =l copy 33+ %t55 =l call $bytes__Bytes__slice(l %t52, l %t53, l %t54)+ %t56 =l call $bytes__Bytes__dup(l %t55)+ storel %t56, %t57+ call $__sx_dbg_keep(l %t57)+ dbgvar "seed", "bytes.Bytes", %t57, 8, 5, 123+ dbgloc 124+ %t58 =l loadl %t31+ %t59 =w call $files__free_buffer(l %t58)+ dbgloc 125+ %t60 =l call $ed__public_from_seed(l %t61, l %t56)+ storel %t61, %t62+ call $__sx_dbg_keep(l %t62)+ dbgvar "pub_opt", "option[bytes.Bytes]", %t62, 8, 5, 125+ dbgloc 126+ %t63 =l call $bytes__empty()+ %t64 =l call $malloc(l 16)+ call $memset(l %t64, w 0, l 16)+ call $memcpy(l %t64, l %t63, l 16)+ storel %t64, %t65+ call $__sx_dbg_keep(l %t65)+ dbgvar "public_key", "bytes.Bytes", %t65, 8, 5, 126+ dbgloc 127+ %t66 =l loadl %t61+ %t67 =w cnel %t66, 0+ jnz %t67, @lbl7239, @lbl7240+@lbl7239+ %t69 =l add %t61, 8+ %t68 =l loadl %t69+ dbgloc 129+ storel %t68, %t65+ jmp @lbl7241+@lbl7240+ dbgloc 132+ %t70 =w call $bytes__free_owned(l %t56)+ dbgloc 133+ storel 0, %t71+ call $memcpy(l %__ret, l %t71, l 16)+ ret %__ret+@lbl7241+ dbgloc 136+ %t72 =l loadl %t65+ %t73 =l call $ed__fingerprint(l %t74, l %t72)+ storel %t74, %t75+ call $__sx_dbg_keep(l %t75)+ dbgvar "fp_opt", "option[bytes.Bytes]", %t75, 8, 5, 136+ dbgloc 137+ %t76 =l call $bytes__empty()+ %t77 =l call $malloc(l 16)+ call $memset(l %t77, w 0, l 16)+ call $memcpy(l %t77, l %t76, l 16)+ storel %t77, %t78+ call $__sx_dbg_keep(l %t78)+ dbgvar "fp", "bytes.Bytes", %t78, 8, 5, 137+ dbgloc 138+ %t79 =l loadl %t74+ %t80 =w cnel %t79, 0+ jnz %t80, @lbl7242, @lbl7243+@lbl7242+ %t82 =l add %t74, 8+ %t81 =l loadl %t82+ dbgloc 140+ storel %t81, %t78+ jmp @lbl7244+@lbl7243+ dbgloc 143+ %t83 =w call $bytes__free_owned(l %t56)+ dbgloc 144+ %t84 =l loadl %t65+ %t85 =w call $bytes__free_owned(l %t84)+ dbgloc 145+ storel 0, %t86+ call $memcpy(l %__ret, l %t86, l 16)+ ret %__ret+@lbl7244+ dbgloc 148+ %t87 =l call $malloc(l 64)+ %t88 =l add %t87, 0+ %t89 =l call $bytes__Bytes__dup(l %name)+ call $memcpy(l %t88, l %t89, l 16)+ %t90 =l add %t87, 16+ call $memcpy(l %t90, l %t56, l 16)+ %t91 =l add %t87, 32+ %t92 =l loadl %t65+ call $memcpy(l %t91, l %t92, l 16)+ %t93 =l add %t87, 48+ %t94 =l loadl %t78+ call $memcpy(l %t93, l %t94, l 16)+ call $memset(l %t95, w 0, l 16)+ storel 1, %t95+ %t96 =l add %t95, 8+ storel %t87, %t96+ call $memcpy(l %__ret, l %t95, l 16)+ ret %__ret+}++export function w $keys__free_key(l %k) {+@start+ %t0 =l alloc8 8+ dbgloc 156+ storel %k, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "k", "Key", %t0, 8, 5, 156+ dbgloc 157+ %t1 =l add %k, 0+ %t2 =l loadl %t1+ %t3 =l copy 0+ %t4 =w cnel %t2, %t3+ jnz %t4, @lbl7245, @lbl7246+@lbl7245+ dbgloc 158+ %t5 =l add %k, 0+ %t6 =l loadl %t5+ %t7 =w call $bytes__free_ptr(l %t6)+ jmp @lbl7246+@lbl7246+ dbgloc 160+ %t8 =l add %k, 16+ %t9 =l loadl %t8+ %t10 =l copy 0+ %t11 =w cnel %t9, %t10+ jnz %t11, @lbl7248, @lbl7249+@lbl7248+ dbgloc 161+ %t12 =l add %k, 16+ %t13 =l loadl %t12+ %t14 =w call $bytes__free_ptr(l %t13)+ jmp @lbl7249+@lbl7249+ dbgloc 163+ %t15 =l add %k, 32+ %t16 =l loadl %t15+ %t17 =l copy 0+ %t18 =w cnel %t16, %t17+ jnz %t18, @lbl7251, @lbl7252+@lbl7251+ dbgloc 164+ %t19 =l add %k, 32+ %t20 =l loadl %t19+ %t21 =w call $bytes__free_ptr(l %t20)+ jmp @lbl7252+@lbl7252+ dbgloc 166+ %t22 =l add %k, 48+ %t23 =l loadl %t22+ %t24 =l copy 0+ %t25 =w cnel %t23, %t24+ jnz %t25, @lbl7254, @lbl7255+@lbl7254+ dbgloc 167+ %t26 =l add %k, 48+ %t27 =l loadl %t26+ %t28 =w call $bytes__free_ptr(l %t27)+ jmp @lbl7255+@lbl7255+ ret 0+}++export function l $keys__generate(l %__ret, l %name) {+@start+ %t0 =l alloc8 8+ %t3 =l alloc8 16+ %t5 =l alloc8 8+ %t9 =l alloc8 16+ %t11 =l alloc8 8+ %t21 =l alloc8 8+ %t27 =l alloc8 8+ %t29 =l alloc8 16+ %t30 =l alloc8 8+ %t33 =l alloc8 8+ %t40 =l alloc8 16+ %t43 =l alloc8 16+ %t44 =l alloc8 8+ %t47 =l alloc8 8+ %t56 =l alloc8 16+ %t58 =l alloc8 8+ %t62 =l alloc8 8+ %t77 =l alloc8 8+ %t81 =l alloc8 8+ %t95 =l alloc8 16+ %t104 =l alloc8 16+ dbgloc 171+ storel %name, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "name", "bytes.Bytes", %t0, 8, 5, 171+ dbgloc 172+ %t1 =w call $keys__valid_name(l %name)+ %t2 =w ceqw %t1, 0+ jnz %t2, @lbl7257, @lbl7258+@lbl7257+ dbgloc 173+ storel 0, %t3+ call $memcpy(l %__ret, l %t3, l 16)+ ret %__ret+@lbl7258+ dbgloc 175+ %t4 =l call $keys__key_dir()+ storel %t4, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "dir", "bytes.Bytes", %t5, 8, 5, 175+ dbgloc 176+ %t6 =w call $keys__mkdirs(l %t4)+ %t7 =w ceqw %t6, 0+ jnz %t7, @lbl7260, @lbl7261+@lbl7260+ dbgloc 177+ %t8 =w call $bytes__free_owned(l %t4)+ dbgloc 178+ storel 0, %t9+ call $memcpy(l %__ret, l %t9, l 16)+ ret %__ret+@lbl7261+ dbgloc 180+ %t10 =l call $bytes__Bytes__to_cstr(l %t4)+ storel %t10, %t11+ call $__sx_dbg_keep(l %t11)+ dbgvar "zdir", "ref u8", %t11, 8, 7, 180+ dbgloc 181+ %t12 =l copy 448+ %t14 =w copy %t12+ %t13 =w call $tls__chmod(l %t10, w %t14)+ dbgloc 182+ %t16 =l copy %t10+ call $free(l %t16)+ %t15 =l copy 0+ dbgloc 183+ %t17 =w call $bytes__free_owned(l %t4)+ dbgloc 184+ %t19 =l copy 32+ %t18 =l call $malloc(l %t19)+ %t20 =l copy %t18+ storel %t20, %t21+ call $__sx_dbg_keep(l %t21)+ dbgvar "seed", "ref u8", %t21, 8, 7, 184+ dbgloc 185+ %t22 =l copy %t20+ %t23 =l copy 32+ %t24 =w call $std__random__random_bytes(l %t22, l %t23)+ dbgloc 186+ %t25 =l copy 32+ %t26 =l call $bytes__bytes(l %t20, l %t25)+ storel %t26, %t27+ call $__sx_dbg_keep(l %t27)+ dbgvar "seed_b", "bytes.Bytes", %t27, 8, 5, 186+ dbgloc 187+ %t28 =l call $ed__public_from_seed(l %t29, l %t26)+ storel %t29, %t30+ call $__sx_dbg_keep(l %t30)+ dbgvar "pub_opt", "option[bytes.Bytes]", %t30, 8, 5, 187+ dbgloc 188+ %t31 =l call $bytes__empty()+ %t32 =l call $malloc(l 16)+ call $memset(l %t32, w 0, l 16)+ call $memcpy(l %t32, l %t31, l 16)+ storel %t32, %t33+ call $__sx_dbg_keep(l %t33)+ dbgvar "public_key", "bytes.Bytes", %t33, 8, 5, 188+ dbgloc 189+ %t34 =l loadl %t29+ %t35 =w cnel %t34, 0+ jnz %t35, @lbl7263, @lbl7264+@lbl7263+ %t37 =l add %t29, 8+ %t36 =l loadl %t37+ dbgloc 191+ storel %t36, %t33+ jmp @lbl7265+@lbl7264+ dbgloc 194+ %t39 =l copy %t20+ call $free(l %t39)+ %t38 =l copy 0+ dbgloc 195+ storel 0, %t40+ call $memcpy(l %__ret, l %t40, l 16)+ ret %__ret+@lbl7265+ dbgloc 198+ %t41 =l loadl %t33+ %t42 =l call $ed__fingerprint(l %t43, l %t41)+ storel %t43, %t44+ call $__sx_dbg_keep(l %t44)+ dbgvar "fp_opt", "option[bytes.Bytes]", %t44, 8, 5, 198+ dbgloc 199+ %t45 =l call $bytes__empty()+ %t46 =l call $malloc(l 16)+ call $memset(l %t46, w 0, l 16)+ call $memcpy(l %t46, l %t45, l 16)+ storel %t46, %t47+ call $__sx_dbg_keep(l %t47)+ dbgvar "fp", "bytes.Bytes", %t47, 8, 5, 199+ dbgloc 200+ %t48 =l loadl %t43+ %t49 =w cnel %t48, 0+ jnz %t49, @lbl7266, @lbl7267+@lbl7266+ %t51 =l add %t43, 8+ %t50 =l loadl %t51+ dbgloc 202+ storel %t50, %t47+ jmp @lbl7268+@lbl7267+ dbgloc 205+ %t53 =l copy %t20+ call $free(l %t53)+ %t52 =l copy 0+ dbgloc 206+ %t54 =l loadl %t33+ %t55 =w call $bytes__free_owned(l %t54)+ dbgloc 207+ storel 0, %t56+ call $memcpy(l %__ret, l %t56, l 16)+ ret %__ret+@lbl7268+ dbgloc 210+ %t57 =l call $keys__key_path(l %name)+ storel %t57, %t58+ call $__sx_dbg_keep(l %t58)+ dbgvar "p", "bytes.Bytes", %t58, 8, 5, 210+ dbgloc 211+ %t60 =l copy 33+ %t59 =l call $malloc(l %t60)+ %t61 =l copy %t59+ storel %t61, %t62+ call $__sx_dbg_keep(l %t62)+ dbgvar "body", "ref u8", %t62, 8, 7, 211+ dbgloc 212+ %t64 =l copy 1+ storeb %t64, %t61+ %t63 =l copy 0+ dbgloc 213+ %t67 =l copy 1+ %t66 =l add %t61, %t67+ %t68 =l copy %t66+ %t69 =l copy %t20+ %t70 =l copy 32+ call $memcpy(l %t68, l %t69, l %t70)+ %t65 =l copy 0+ dbgloc 214+ %t71 =l call $files__to_view(l %t57)+ %t72 =l copy 33+ %t73 =l call $bytes__bytes(l %t61, l %t72)+ %t74 =w call $files__write_all(l %t71, l %t73)+ %t75 =w copy %t74+ %t76 =w extub %t75+ storew %t76, %t77+ call $__sx_dbg_keep(l %t77)+ dbgvar "wrote", "bool", %t77, 1, 7, 214+ dbgloc 215+ %t79 =l copy %t61+ call $free(l %t79)+ %t78 =l copy 0+ dbgloc 216+ %t80 =l call $bytes__Bytes__to_cstr(l %t57)+ storel %t80, %t81+ call $__sx_dbg_keep(l %t81)+ dbgvar "z", "ref u8", %t81, 8, 7, 216+ dbgloc 217+ %t82 =l copy 384+ %t84 =w copy %t82+ %t83 =w call $tls__chmod(l %t80, w %t84)+ dbgloc 218+ %t86 =l copy %t80+ call $free(l %t86)+ %t85 =l copy 0+ dbgloc 219+ %t87 =w call $bytes__free_owned(l %t57)+ dbgloc 220+ %t88 =w ceqw %t76, 0+ jnz %t88, @lbl7269, @lbl7270+@lbl7269+ dbgloc 221+ %t90 =l copy %t20+ call $free(l %t90)+ %t89 =l copy 0+ dbgloc 222+ %t91 =l loadl %t33+ %t92 =w call $bytes__free_owned(l %t91)+ dbgloc 223+ %t93 =l loadl %t47+ %t94 =w call $bytes__free_owned(l %t93)+ dbgloc 224+ storel 0, %t95+ call $memcpy(l %__ret, l %t95, l 16)+ ret %__ret+@lbl7270+ dbgloc 226+ %t96 =l call $malloc(l 64)+ %t97 =l add %t96, 0+ %t98 =l call $bytes__Bytes__dup(l %name)+ call $memcpy(l %t97, l %t98, l 16)+ %t99 =l add %t96, 16+ call $memcpy(l %t99, l %t26, l 16)+ %t100 =l add %t96, 32+ %t101 =l loadl %t33+ call $memcpy(l %t100, l %t101, l 16)+ %t102 =l add %t96, 48+ %t103 =l loadl %t47+ call $memcpy(l %t102, l %t103, l 16)+ call $memset(l %t104, w 0, l 16)+ storel 1, %t104+ %t105 =l add %t104, 8+ storel %t96, %t105+ call $memcpy(l %__ret, l %t104, l 16)+ ret %__ret+}++export function l $keys__list_names() {+@start+ %t1 =l alloc8 8+ %t3 =l alloc8 8+ %t5 =l alloc8 8+ %t8 =l alloc8 8+ %t9 =l alloc8 8+ %t18 =l alloc8 8+ %t21 =l alloc4 1+ dbgloc 234+ dbgloc 235+ %t0 =l call $lists__new__GENMONO__bytes__Bytes()++ storel %t0, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "out", "list[bytes.Bytes]", %t1, 8, 5, 235+ dbgloc 236+ %t2 =l call $keys__key_dir()+ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "dir", "bytes.Bytes", %t3, 8, 5, 236+ dbgloc 237+ %t4 =l call $files__to_view(l %t2)+ storel %t4, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "dview", "str.StringView", %t5, 8, 5, 237+ dbgloc 238+ %t6 =w call $files__exists_dir(l %t4)+ jnz %t6, @lbl7272, @lbl7273+@lbl7272+ dbgloc 239+ %t7 =l call $files__list_dir(l %t4)+ storel %t7, %t8+ call $__sx_dbg_keep(l %t8)+ dbgvar "names", "list[ref u8]", %t8, 8, 5, 239+ dbgloc 240+ storel 0, %t9+ %t10 =l call $sxqbe_list_len(l %t7)+@lbl7275+ %t11 =l loadl %t9+ %t12 =w csltl %t11, %t10+ jnz %t12, @lbl7276, @lbl7277+@lbl7276+ %t13 =l call $sxqbe_list_buf(l %t7)+ %t14 =l mul %t11, 8+ %t15 =l add %t13, %t14+ %t16 =l loadl %t15+ dbgloc 241+ %t17 =l call $sxqbe_strlen(l %t16)+ storel %t17, %t18+ call $__sx_dbg_keep(l %t18)+ dbgvar "len", "i64", %t18, 8, 5, 241+ dbgloc 242+ %t19 =l copy 4+ %t20 =w csgtl %t17, %t19+ storew %t20, %t21+ jnz %t20, @lbl7282, @lbl7283+@lbl7282+ %t22 =l copy $__str327+ %t23 =w call $files__name_ends_with(l %t16, l %t22)+ storew %t23, %t21+ jmp @lbl7283+@lbl7283+ %t24 =w loadw %t21+ jnz %t24, @lbl7279, @lbl7280+@lbl7279+ dbgloc 243+ %t26 =l call $sxqbe_list_ensure(l %t1)+ %t27 =l copy 4+ %t28 =l sub %t17, %t27+ %t29 =l copy %t28+ %t30 =l call $bytes__bytes(l %t16, l %t29)+ %t31 =l call $bytes__Bytes__dup(l %t30)+ %t32 =l add %t26, 8+ %t33 =l add %t26, 16+ %t34 =l loadl %t32+ %t35 =l loadl %t33+ %t37 =l add %t34, 1+ %t36 =w call $sxqbe_list_grow(l %t26, l %t37)+ %t38 =l call $sxqbe_list_buf(l %t26)+ %t39 =l mul %t34, 8+ %t40 =l add %t38, %t39+ storel %t31, %t40+ %t41 =l add %t34, 1+ storel %t41, %t32+ %t25 =l copy 0+ jmp @lbl7280+@lbl7280+@lbl7278+ %t42 =l add %t11, 1+ storel %t42, %t9+ jmp @lbl7275+@lbl7277+ dbgloc 246+ %t43 =w call $files__free_names(l %t7)+ jmp @lbl7273+@lbl7273+ dbgloc 248+ %t44 =w call $bytes__free_owned(l %t2)+ dbgloc 249+ %t45 =l loadl %t1+ ret %t45+}++export function w $keys__free_names(l %names) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 252+ storel %names, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "names", "list[bytes.Bytes]", %t0, 8, 5, 252+ dbgloc 253+ storel 0, %t1+ %t2 =l call $sxqbe_list_len(l %names)+@lbl7284+ %t3 =l loadl %t1+ %t4 =w csltl %t3, %t2+ jnz %t4, @lbl7285, @lbl7286+@lbl7285+ %t5 =l call $sxqbe_list_buf(l %names)+ %t6 =l mul %t3, 8+ %t7 =l add %t5, %t6+ %t8 =l loadl %t7+ dbgloc 254+ %t9 =l loadl %t8+ %t10 =l copy 0+ %t11 =w cnel %t9, %t10+ jnz %t11, @lbl7288, @lbl7289+@lbl7288+ dbgloc 255+ %t12 =w call $bytes__free_owned(l %t8)+ jmp @lbl7289+@lbl7289+@lbl7287+ %t13 =l add %t3, 1+ storel %t13, %t1+ jmp @lbl7284+@lbl7286+ dbgloc 258+ call $sxqbe_list_free(l %names)+ %t14 =l copy 0+ ret 0+}++dbgfile "src/auth/handshake.sx"+export function l $handshake__auth_message(w %version, l %repo, l %server_nonce, l %client_nonce, l %binding) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t3 =l alloc8 8+ %t4 =l alloc8 8+ %t8 =l alloc8 8+ %t43 =l alloc8 8+ dbgloc 6+ storew %version, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "version", "u16", %t0, 2, 7, 6+ storel %repo, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "repo", "bytes.Bytes", %t1, 8, 5, 6+ storel %server_nonce, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "server_nonce", "bytes.Bytes", %t2, 8, 5, 6+ storel %client_nonce, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "client_nonce", "bytes.Bytes", %t3, 8, 5, 6+ storel %binding, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "binding", "bytes.Bytes", %t4, 8, 5, 6+ dbgloc 13+ %t5 =l copy 128+ %t6 =l call $buf__new(l %t5)+ %t7 =l call $malloc(l 24)+ call $memset(l %t7, w 0, l 24)+ call $memcpy(l %t7, l %t6, l 24)+ storel %t7, %t8+ call $__sx_dbg_keep(l %t8)+ dbgvar "b", "buf.Buf", %t8, 8, 5, 13+ dbgloc 14+ %t9 =l loadl %t8+ %t10 =l copy $__str328+ %t11 =l copy %t10+ %t12 =l copy 12+ %t13 =w call $buf__Buf__put_raw(l %t9, l %t11, l %t12)+ dbgloc 15+ %t14 =l loadl %t8+ %t15 =l copy 0+ %t17 =w copy %t15+ %t16 =w call $buf__Buf__put_u8(l %t14, w %t17)+ dbgloc 16+ %t18 =l loadl %t8+ %t19 =l extsw %version+ %t20 =l copy 8+ %t22 =l extuw %t19+ %t21 =l shr %t22, %t20+ %t23 =l copy 255+ %t24 =l and %t21, %t23+ %t25 =w call $buf__Buf__put_u8(l %t18, w %t24)+ dbgloc 17+ %t26 =l loadl %t8+ %t27 =l extsw %version+ %t28 =l copy 255+ %t30 =l extsw %t27+ %t29 =l and %t30, %t28+ %t31 =w call $buf__Buf__put_u8(l %t26, w %t29)+ dbgloc 18+ %t32 =l loadl %t8+ %t33 =w call $buf__Buf__put_length_prefixed(l %t32, l %repo)+ dbgloc 19+ %t34 =l loadl %t8+ %t35 =w call $buf__Buf__put_bytes(l %t34, l %server_nonce)+ dbgloc 20+ %t36 =l loadl %t8+ %t37 =w call $buf__Buf__put_bytes(l %t36, l %client_nonce)+ dbgloc 21+ %t38 =l loadl %t8+ %t39 =w call $buf__Buf__put_bytes(l %t38, l %binding)+ dbgloc 22+ %t40 =l loadl %t8+ %t41 =l call $buf__Buf__view(l %t40)+ %t42 =l call $bytes__Bytes__dup(l %t41)+ storel %t42, %t43+ call $__sx_dbg_keep(l %t43)+ dbgvar "out", "bytes.Bytes", %t43, 8, 5, 22+ dbgloc 23+ %t44 =l loadl %t8+ %t45 =w call $buf__Buf__free(l %t44)+ dbgloc 24+ ret %t42+}++export function l $handshake__role_name(w %role) {+@start+ %t0 =l alloc8 8+ dbgloc 27+ storew %role, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "role", "u8", %t0, 1, 7, 27+ dbgloc 28+ %t1 =w copy 2+ %t2 =w ceqw %role, %t1+ jnz %t2, @lbl7291, @lbl7292+@lbl7291+ dbgloc 29+ %t3 =l copy $__str329+ %t4 =l copy 5+ %t5 =l call $bytes__bytes(l %t3, l %t4)+ ret %t5+@lbl7292+ dbgloc 31+ %t6 =w copy 1+ %t7 =w ceqw %role, %t6+ jnz %t7, @lbl7294, @lbl7295+@lbl7294+ dbgloc 32+ %t8 =l copy $__str330+ %t9 =l copy 4+ %t10 =l call $bytes__bytes(l %t8, l %t9)+ ret %t10+@lbl7295+ dbgloc 34+ %t11 =l copy $__str331+ %t12 =l copy 9+ %t13 =l call $bytes__bytes(l %t11, l %t12)+ ret %t13+}++dbgfile "src/protocol/client.sx"+function l $client__copy_bytes(l %b) {+@start+ %t0 =l alloc8 8+ dbgloc 57+ storel %b, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "b", "bytes.Bytes", %t0, 8, 5, 57+ dbgloc 58+ %t1 =l call $bytes__Bytes__dup(l %b)+ ret %t1+}++function l $client__parse_port(l %__ret, l %text) {+@start+ %t0 =l alloc8 8+ %t5 =l alloc8 16+ %t9 =l alloc8 8+ %t11 =l alloc8 8+ %t20 =l alloc8 8+ %t23 =l alloc4 1+ %t27 =l alloc8 16+ %t47 =l alloc8 16+ dbgloc 61+ storel %text, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "text", "bytes.Bytes", %t0, 8, 5, 61+ dbgloc 62+ %t2 =l add %text, 8+ %t1 =l loadl %t2+ %t3 =l copy 0+ %t4 =w ceql %t1, %t3+ jnz %t4, @lbl7297, @lbl7298+@lbl7297+ dbgloc 63+ storel 0, %t5+ call $memcpy(l %__ret, l %t5, l 16)+ ret %__ret+@lbl7298+ dbgloc 65+ %t6 =l copy 0+ %t7 =w copy %t6+ %t8 =w copy %t7+ storew %t8, %t9+ call $__sx_dbg_keep(l %t9)+ dbgvar "port", "i32", %t9, 4, 5, 65+ dbgloc 66+ %t10 =l copy 0+ storel %t10, %t11+ call $__sx_dbg_keep(l %t11)+ dbgvar "i", "usize", %t11, 8, 5, 66+ dbgloc 67+ jmp @lbl7300+@lbl7300+ %t12 =l loadl %t11+ %t14 =l add %text, 8+ %t13 =l loadl %t14+ %t15 =w csltl %t12, %t13+ jnz %t15, @lbl7301, @lbl7303+@lbl7301+ dbgloc 68+ %t16 =l loadl %t11+ %t17 =w call $bytes__Bytes__at(l %text, l %t16)+ %t18 =w copy %t17+ %t19 =w extub %t18+ storew %t19, %t20+ call $__sx_dbg_keep(l %t20)+ dbgvar "c", "u8", %t20, 1, 7, 68+ dbgloc 69+ %t21 =w copy 48+ %t22 =w csltw %t19, %t21+ storew %t22, %t23+ jnz %t22, @lbl7308, @lbl7307+@lbl7307+ %t24 =w copy 57+ %t25 =w csgtw %t19, %t24+ storew %t25, %t23+ jmp @lbl7308+@lbl7308+ %t26 =w loadw %t23+ jnz %t26, @lbl7304, @lbl7305+@lbl7304+ dbgloc 70+ storel 0, %t27+ call $memcpy(l %__ret, l %t27, l 16)+ ret %__ret+@lbl7305+ dbgloc 72+ %t29 =w loadw %t9+ %t28 =l extsw %t29+ %t30 =l extsw %t28+ %t31 =l copy 10+ %t33 =l extsw %t30+ %t32 =l mul %t33, %t31+ %t34 =l extsw %t19+ %t35 =l copy 48+ %t37 =l extsw %t34+ %t36 =l sub %t37, %t35+ %t38 =l extsw %t36+ %t40 =l extsw %t38+ %t39 =l add %t32, %t40+ %t41 =w copy %t39+ %t42 =w copy %t41+ storew %t42, %t9+ dbgloc 73+ %t43 =l loadl %t11+ %t44 =l add %t43, 1+ storel %t44, %t11+ jmp @lbl7302+@lbl7302+ jmp @lbl7300+@lbl7303+ dbgloc 75+ %t46 =w loadw %t9+ %t45 =l extsw %t46+ call $memset(l %t47, w 0, l 16)+ storel 1, %t47+ %t48 =l add %t47, 8+ storew %t45, %t48+ call $memcpy(l %__ret, l %t47, l 16)+ ret %__ret+}++function l $client__find_char(l %b, w %needle) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t3 =l alloc8 8+ dbgloc 78+ storel %b, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "b", "bytes.Bytes", %t0, 8, 5, 78+ storew %needle, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "needle", "u8", %t1, 1, 7, 78+ dbgloc 79+ %t2 =l copy 0+ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "i", "usize", %t3, 8, 5, 79+ dbgloc 80+ jmp @lbl7309+@lbl7309+ %t4 =l loadl %t3+ %t6 =l add %b, 8+ %t5 =l loadl %t6+ %t7 =w csltl %t4, %t5+ jnz %t7, @lbl7310, @lbl7312+@lbl7310+ dbgloc 81+ %t8 =l loadl %t3+ %t9 =w call $bytes__Bytes__at(l %b, l %t8)+ %t10 =l extsw %t9+ %t11 =l extsw %needle+ %t12 =w ceqw %t10, %t11+ jnz %t12, @lbl7313, @lbl7314+@lbl7313+ dbgloc 82+ %t13 =l loadl %t3+ %t14 =l copy %t13+ ret %t14+@lbl7314+ dbgloc 84+ %t15 =l loadl %t3+ %t16 =l add %t15, 1+ storel %t16, %t3+ jmp @lbl7311+@lbl7311+ jmp @lbl7309+@lbl7312+ dbgloc 86+ %t17 =l copy 1+ %t18 =l neg %t17+ ret %t18+}++function l $client__parse_authority(l %authority, w %default_port, w %strip_user) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t4 =l alloc8 8+ %t8 =l alloc8 8+ %t22 =l alloc8 8+ %t25 =l alloc8 8+ %t27 =l alloc8 8+ %t44 =l alloc8 16+ %t45 =l alloc8 8+ %t51 =l alloc8 20+ dbgloc 89+ storel %authority, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "authority", "bytes.Bytes", %t0, 8, 5, 89+ storew %default_port, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "default_port", "i32", %t1, 4, 5, 89+ storew %strip_user, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "strip_user", "bool", %t2, 1, 7, 89+ dbgloc 94+ %t3 =l call $malloc(l 16)+ call $memset(l %t3, w 0, l 16)+ call $memcpy(l %t3, l %authority, l 16)+ storel %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "hp", "bytes.Bytes", %t4, 8, 5, 94+ dbgloc 95+ jnz %strip_user, @lbl7316, @lbl7317+@lbl7316+ dbgloc 96+ %t5 =l copy 64+ %t7 =w copy %t5+ %t6 =l call $client__find_char(l %authority, w %t7)+ storel %t6, %t8+ call $__sx_dbg_keep(l %t8)+ dbgvar "at", "i64", %t8, 8, 5, 96+ dbgloc 97+ %t9 =l copy 0+ %t11 =w csltl %t6, %t9+ %t10 =w ceqw %t11, 0+ jnz %t10, @lbl7319, @lbl7320+@lbl7319+ dbgloc 98+ %t12 =l copy %t6+ %t13 =l copy 1+ %t14 =l add %t12, %t13+ %t16 =l add %authority, 8+ %t15 =l loadl %t16+ %t17 =l call $bytes__Bytes__slice(l %authority, l %t14, l %t15)+ storel %t17, %t4+ jmp @lbl7320+@lbl7320+ jmp @lbl7317+@lbl7317+ dbgloc 101+ %t18 =l loadl %t4+ %t19 =l copy 58+ %t21 =w copy %t19+ %t20 =l call $client__find_char(l %t18, w %t21)+ storel %t20, %t22+ call $__sx_dbg_keep(l %t22)+ dbgvar "colon", "i64", %t22, 8, 5, 101+ dbgloc 102+ %t23 =l loadl %t4+ %t24 =l call $malloc(l 16)+ call $memset(l %t24, w 0, l 16)+ call $memcpy(l %t24, l %t23, l 16)+ storel %t24, %t25+ call $__sx_dbg_keep(l %t25)+ dbgvar "host", "bytes.Bytes", %t25, 8, 5, 102+ dbgloc 103+ %t26 =w copy %default_port+ storew %t26, %t27+ call $__sx_dbg_keep(l %t27)+ dbgvar "port", "i32", %t27, 4, 5, 103+ dbgloc 104+ %t28 =l copy 0+ %t30 =w csltl %t20, %t28+ %t29 =w ceqw %t30, 0+ jnz %t29, @lbl7322, @lbl7323+@lbl7322+ dbgloc 105+ %t31 =l loadl %t4+ %t32 =l copy 0+ %t33 =l copy %t20+ %t34 =l call $bytes__Bytes__slice(l %t31, l %t32, l %t33)+ storel %t34, %t25+ dbgloc 106+ %t35 =l loadl %t4+ %t36 =l copy %t20+ %t37 =l copy 1+ %t38 =l add %t36, %t37+ %t39 =l loadl %t4+ %t41 =l add %t39, 8+ %t40 =l loadl %t41+ %t42 =l call $bytes__Bytes__slice(l %t35, l %t38, l %t40)+ %t43 =l call $client__parse_port(l %t44, l %t42)+ storel %t44, %t45+ call $__sx_dbg_keep(l %t45)+ dbgvar "po", "option[i32]", %t45, 8, 5, 106+ dbgloc 107+ %t46 =l loadl %t44+ %t47 =w cnel %t46, 0+ jnz %t47, @lbl7325, @lbl7326+@lbl7325+ %t49 =l add %t44, 8+ %t48 =w loadw %t49+ dbgloc 108+ %t50 =w copy %t48+ storew %t50, %t27+ jmp @lbl7327+@lbl7326+ jmp @lbl7327+@lbl7327+ jmp @lbl7323+@lbl7323+ dbgloc 111+ %t52 =l add %t51, 0+ %t53 =l loadl %t25+ %t54 =l call $bytes__Bytes__dup(l %t53)+ call $memcpy(l %t52, l %t54, l 16)+ %t56 =w loadw %t27+ %t55 =l extsw %t56+ %t57 =l add %t51, 16+ storew %t55, %t57+ %t58 =l call $malloc(l 20)+ call $memcpy(l %t58, l %t51, l 20)+ ret %t58+}++export function l $client__parse_url(l %__ret, l %url) {+@start+ %t0 =l alloc8 8+ %t20 =l alloc8 16+ %t30 =l alloc8 8+ %t34 =l alloc8 8+ %t37 =l alloc8 16+ %t41 =l alloc8 8+ %t48 =l alloc8 8+ %t53 =l alloc8 8+ %t66 =l alloc8 16+ %t76 =l alloc8 8+ %t80 =l alloc8 8+ %t83 =l alloc8 16+ %t87 =l alloc8 8+ %t94 =l alloc8 8+ %t99 =l alloc8 8+ %t112 =l alloc8 16+ %t114 =l alloc8 16+ dbgloc 114+ storel %url, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "url", "bytes.Bytes", %t0, 8, 5, 114+ dbgloc 115+ %t1 =l copy $__str332+ %t2 =l copy 7+ %t3 =l call $bytes__bytes(l %t1, l %t2)+ %t4 =w call $bytes__Bytes__starts_with(l %url, l %t3)+ jnz %t4, @lbl7328, @lbl7329+@lbl7328+ dbgloc 116+ %t5 =l call $malloc(l 44)+ %t6 =l copy 0+ storew %t6, %t5+ %t8 =l add %t5, 4+ %t9 =l call $bytes__empty()+ call $memcpy(l %t8, l %t9, l 16)+ %t10 =l copy 0+ %t11 =l add %t5, 20+ storew %t10, %t11+ %t12 =l add %t5, 24+ %t13 =l copy 7+ %t15 =l add %url, 8+ %t14 =l loadl %t15+ %t16 =l call $bytes__Bytes__slice(l %url, l %t13, l %t14)+ %t17 =l call $bytes__Bytes__dup(l %t16)+ call $memcpy(l %t12, l %t17, l 16)+ %t18 =l copy 0+ %t19 =l add %t5, 40+ storew %t18, %t19+ call $memset(l %t20, w 0, l 16)+ storel 1, %t20+ %t21 =l add %t20, 8+ storel %t5, %t21+ call $memcpy(l %__ret, l %t20, l 16)+ ret %__ret+@lbl7329+ dbgloc 124+ %t22 =l copy $__str333+ %t23 =l copy 6+ %t24 =l call $bytes__bytes(l %t22, l %t23)+ %t25 =w call $bytes__Bytes__starts_with(l %url, l %t24)+ jnz %t25, @lbl7331, @lbl7332+@lbl7331+ dbgloc 125+ %t26 =l copy 6+ %t28 =l add %url, 8+ %t27 =l loadl %t28+ %t29 =l call $bytes__Bytes__slice(l %url, l %t26, l %t27)+ storel %t29, %t30+ call $__sx_dbg_keep(l %t30)+ dbgvar "rest", "bytes.Bytes", %t30, 8, 5, 125+ dbgloc 126+ %t31 =l copy 47+ %t33 =w copy %t31+ %t32 =l call $client__find_char(l %t29, w %t33)+ storel %t32, %t34+ call $__sx_dbg_keep(l %t34)+ dbgvar "slash", "i64", %t34, 8, 5, 126+ dbgloc 127+ %t35 =l copy 0+ %t36 =w csltl %t32, %t35+ jnz %t36, @lbl7334, @lbl7335+@lbl7334+ dbgloc 128+ storel 0, %t37+ call $memcpy(l %__ret, l %t37, l 16)+ ret %__ret+@lbl7335+ dbgloc 130+ %t38 =l copy 0+ %t39 =l copy %t32+ %t40 =l call $bytes__Bytes__slice(l %t29, l %t38, l %t39)+ storel %t40, %t41+ call $__sx_dbg_keep(l %t41)+ dbgvar "auth", "bytes.Bytes", %t41, 8, 5, 130+ dbgloc 131+ %t42 =l copy %t32+ %t43 =l copy 1+ %t44 =l add %t42, %t43+ %t46 =l add %t29, 8+ %t45 =l loadl %t46+ %t47 =l call $bytes__Bytes__slice(l %t29, l %t44, l %t45)+ storel %t47, %t48+ call $__sx_dbg_keep(l %t48)+ dbgvar "path", "bytes.Bytes", %t48, 8, 5, 131+ dbgloc 132+ %t49 =l copy 22+ %t50 =l copy 1+ %t52 =w copy %t49+ %t51 =l call $client__parse_authority(l %t40, w %t52, w %t50)+ storel %t51, %t53+ call $__sx_dbg_keep(l %t53)+ dbgvar "parsed", "Authority", %t53, 8, 5, 132+ dbgloc 133+ %t54 =l call $malloc(l 44)+ %t55 =l copy 0+ storew %t55, %t54+ %t57 =l add %t54, 4+ %t58 =l add %t51, 0+ call $memcpy(l %t57, l %t58, l 16)+ %t60 =l add %t51, 16+ %t59 =l loadsw %t60+ %t61 =l add %t54, 20+ storew %t59, %t61+ %t62 =l add %t54, 24+ %t63 =l call $bytes__Bytes__dup(l %t47)+ call $memcpy(l %t62, l %t63, l 16)+ %t64 =l copy 1+ %t65 =l add %t54, 40+ storew %t64, %t65+ call $memset(l %t66, w 0, l 16)+ storel 1, %t66+ %t67 =l add %t66, 8+ storel %t54, %t67+ call $memcpy(l %__ret, l %t66, l 16)+ ret %__ret+@lbl7332+ dbgloc 141+ %t68 =l copy $__str334+ %t69 =l copy 8+ %t70 =l call $bytes__bytes(l %t68, l %t69)+ %t71 =w call $bytes__Bytes__starts_with(l %url, l %t70)+ jnz %t71, @lbl7337, @lbl7338+@lbl7337+ dbgloc 142+ %t72 =l copy 8+ %t74 =l add %url, 8+ %t73 =l loadl %t74+ %t75 =l call $bytes__Bytes__slice(l %url, l %t72, l %t73)+ storel %t75, %t76+ call $__sx_dbg_keep(l %t76)+ dbgvar "rest", "bytes.Bytes", %t76, 8, 5, 142+ dbgloc 143+ %t77 =l copy 47+ %t79 =w copy %t77+ %t78 =l call $client__find_char(l %t75, w %t79)+ storel %t78, %t80+ call $__sx_dbg_keep(l %t80)+ dbgvar "slash", "i64", %t80, 8, 5, 143+ dbgloc 144+ %t81 =l copy 0+ %t82 =w csltl %t78, %t81+ jnz %t82, @lbl7340, @lbl7341+@lbl7340+ dbgloc 145+ storel 0, %t83+ call $memcpy(l %__ret, l %t83, l 16)+ ret %__ret+@lbl7341+ dbgloc 147+ %t84 =l copy 0+ %t85 =l copy %t78+ %t86 =l call $bytes__Bytes__slice(l %t75, l %t84, l %t85)+ storel %t86, %t87+ call $__sx_dbg_keep(l %t87)+ dbgvar "auth", "bytes.Bytes", %t87, 8, 5, 147+ dbgloc 148+ %t88 =l copy %t78+ %t89 =l copy 1+ %t90 =l add %t88, %t89+ %t92 =l add %t75, 8+ %t91 =l loadl %t92+ %t93 =l call $bytes__Bytes__slice(l %t75, l %t90, l %t91)+ storel %t93, %t94+ call $__sx_dbg_keep(l %t94)+ dbgvar "path", "bytes.Bytes", %t94, 8, 5, 148+ dbgloc 149+ %t95 =l copy 7419+ %t96 =l copy 0+ %t98 =w copy %t95+ %t97 =l call $client__parse_authority(l %t86, w %t98, w %t96)+ storel %t97, %t99+ call $__sx_dbg_keep(l %t99)+ dbgvar "parsed", "Authority", %t99, 8, 5, 149+ dbgloc 150+ %t100 =l call $malloc(l 44)+ %t101 =l copy 1+ storew %t101, %t100+ %t103 =l add %t100, 4+ %t104 =l add %t97, 0+ call $memcpy(l %t103, l %t104, l 16)+ %t106 =l add %t97, 16+ %t105 =l loadsw %t106+ %t107 =l add %t100, 20+ storew %t105, %t107+ %t108 =l add %t100, 24+ %t109 =l call $bytes__Bytes__dup(l %t93)+ call $memcpy(l %t108, l %t109, l 16)+ %t110 =l copy 0+ %t111 =l add %t100, 40+ storew %t110, %t111+ call $memset(l %t112, w 0, l 16)+ storel 1, %t112+ %t113 =l add %t112, 8+ storel %t100, %t113+ call $memcpy(l %__ret, l %t112, l 16)+ ret %__ret+@lbl7338+ dbgloc 158+ storel 0, %t114+ call $memcpy(l %__ret, l %t114, l 16)+ ret %__ret+}++function l $client__build_command(l %parts) {+@start+ %t0 =l alloc8 8+ %t4 =l alloc8 8+ %t5 =l alloc8 8+ %t23 =l alloc8 8+ %t31 =l alloc8 8+ dbgloc 161+ storel %parts, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "parts", "list[bytes.Bytes]", %t0, 8, 5, 161+ dbgloc 162+ %t1 =l copy 128+ %t2 =l call $buf__new(l %t1)+ %t3 =l call $malloc(l 24)+ call $memset(l %t3, w 0, l 24)+ call $memcpy(l %t3, l %t2, l 24)+ storel %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "out", "buf.Buf", %t4, 8, 5, 162+ dbgloc 163+ storel 0, %t5+ %t6 =l call $sxqbe_list_len(l %parts)+@lbl7343+ %t7 =l loadl %t5+ %t8 =w csltl %t7, %t6+ jnz %t8, @lbl7344, @lbl7345+@lbl7344+ %t9 =l call $sxqbe_list_buf(l %parts)+ %t10 =l mul %t7, 8+ %t11 =l add %t9, %t10+ %t12 =l loadl %t11+ dbgloc 164+ %t13 =l loadl %t4+ %t15 =l add %t13, 8+ %t14 =l loadl %t15+ %t16 =l copy 0+ %t17 =w csgtl %t14, %t16+ jnz %t17, @lbl7347, @lbl7348+@lbl7347+ dbgloc 165+ %t18 =l loadl %t4+ %t19 =l copy 32+ %t21 =w copy %t19+ %t20 =w call $buf__Buf__put_u8(l %t18, w %t21)+ jmp @lbl7348+@lbl7348+ dbgloc 167+ %t22 =l call $stream__quote(l %t12)+ storel %t22, %t23+ call $__sx_dbg_keep(l %t23)+ dbgvar "q", "bytes.Bytes", %t23, 8, 5, 167+ dbgloc 168+ %t24 =l loadl %t4+ %t25 =w call $buf__Buf__put_bytes(l %t24, l %t22)+ dbgloc 169+ %t26 =w call $bytes__free_owned(l %t22)+@lbl7346+ %t27 =l add %t7, 1+ storel %t27, %t5+ jmp @lbl7343+@lbl7345+ dbgloc 171+ %t28 =l loadl %t4+ %t29 =l call $buf__Buf__view(l %t28)+ %t30 =l call $bytes__Bytes__dup(l %t29)+ storel %t30, %t31+ call $__sx_dbg_keep(l %t31)+ dbgvar "r", "bytes.Bytes", %t31, 8, 5, 171+ dbgloc 172+ %t32 =l loadl %t4+ %t33 =w call $buf__Buf__free(l %t32)+ dbgloc 173+ ret %t30+}++function l $client__connect_stream(l %__ret, l %u, l %tls_pin) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t5 =l alloc8 8+ %t53 =l alloc8 8+ %t71 =l alloc8 8+ %t152 =l alloc8 8+ %t156 =l alloc8 16+ %t157 =l alloc8 8+ %t162 =l alloc8 8+ %t167 =l alloc8 8+ %t172 =l alloc8 16+ %t174 =l alloc8 8+ %t186 =l alloc8 16+ %t189 =l alloc8 8+ %t197 =l alloc8 16+ %t199 =l alloc8 16+ %t202 =l alloc8 8+ %t204 =l alloc8 8+ %t265 =l alloc8 8+ %t269 =l alloc8 16+ %t270 =l alloc8 8+ dbgloc 176+ storel %u, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "u", "Url", %t0, 8, 5, 176+ storel %tls_pin, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "tls_pin", "bytes.Bytes", %t1, 8, 5, 176+ dbgloc 177+ %t3 =l add %u, 40+ %t2 =l loadub %t3+ jnz %t2, @lbl7350, @lbl7351+@lbl7350+ dbgloc 178+ %t4 =l call $lists__new__GENMONO__bytes__Bytes()++ storel %t4, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "parts", "list[bytes.Bytes]", %t5, 8, 5, 178+ dbgloc 179+ %t7 =l call $sxqbe_list_ensure(l %t5)+ %t8 =l copy $__str335+ %t9 =l copy 3+ %t10 =l call $bytes__bytes(l %t8, l %t9)+ %t11 =l call $client__copy_bytes(l %t10)+ %t12 =l add %t7, 8+ %t13 =l add %t7, 16+ %t14 =l loadl %t12+ %t15 =l loadl %t13+ %t17 =l add %t14, 1+ %t16 =w call $sxqbe_list_grow(l %t7, l %t17)+ %t18 =l call $sxqbe_list_buf(l %t7)+ %t19 =l mul %t14, 8+ %t20 =l add %t18, %t19+ storel %t11, %t20+ %t21 =l add %t14, 1+ storel %t21, %t12+ %t6 =l copy 0+ dbgloc 180+ %t23 =l add %u, 20+ %t22 =l loadsw %t23+ %t24 =w copy 22+ %t25 =w cnew %t22, %t24+ jnz %t25, @lbl7353, @lbl7354+@lbl7353+ dbgloc 181+ %t27 =l call $sxqbe_list_ensure(l %t5)+ %t28 =l copy $__str336+ %t29 =l copy 2+ %t30 =l call $bytes__bytes(l %t28, l %t29)+ %t31 =l call $client__copy_bytes(l %t30)+ %t32 =l add %t27, 8+ %t33 =l add %t27, 16+ %t34 =l loadl %t32+ %t35 =l loadl %t33+ %t37 =l add %t34, 1+ %t36 =w call $sxqbe_list_grow(l %t27, l %t37)+ %t38 =l call $sxqbe_list_buf(l %t27)+ %t39 =l mul %t34, 8+ %t40 =l add %t38, %t39+ storel %t31, %t40+ %t41 =l add %t34, 1+ storel %t41, %t32+ %t26 =l copy 0+ dbgloc 182+ %t43 =l copy $__str275+ %t44 =l call $malloc(l 4096)+ %t51 =l add %u, 20+ %t50 =l loadsw %t51+ %t52 =l extsw %t50+ %t45 =w call $snprintf(l %t44, l 4096, l %t43, ..., l %t52)+ %t46 =l extsw %t45+ %t47 =l add %t46, 1+ %t48 =l call $malloc(l %t47)+ call $memcpy(l %t48, l %t44, l %t46)+ %t49 =l add %t48, %t46+ storeb 0, %t49+ call $free(l %t44)+ %t42 =l copy %t48+ storel %t42, %t53+ call $__sx_dbg_keep(l %t53)+ dbgvar "ps", "ref u8", %t53, 8, 7, 182+ dbgloc 183+ %t55 =l call $sxqbe_list_ensure(l %t5)+ %t56 =l call $bytes__from_cstr(l %t42)+ %t57 =l add %t55, 8+ %t58 =l add %t55, 16+ %t59 =l loadl %t57+ %t60 =l loadl %t58+ %t62 =l add %t59, 1+ %t61 =w call $sxqbe_list_grow(l %t55, l %t62)+ %t63 =l call $sxqbe_list_buf(l %t55)+ %t64 =l mul %t59, 8+ %t65 =l add %t63, %t64+ storel %t56, %t65+ %t66 =l add %t59, 1+ storel %t66, %t57+ %t54 =l copy 0+ dbgloc 184+ %t68 =l copy %t42+ call $free(l %t68)+ %t67 =l copy 0+ jmp @lbl7354+@lbl7354+ dbgloc 186+ %t69 =l add %u, 4+ %t70 =l call $bytes__Bytes__to_cstr(l %t69)+ storel %t70, %t71+ call $__sx_dbg_keep(l %t71)+ dbgvar "host_z", "ref u8", %t71, 8, 7, 186+ dbgloc 187+ %t73 =l call $sxqbe_list_ensure(l %t5)+ %t74 =l call $bytes__from_cstr(l %t70)+ %t75 =l call $client__copy_bytes(l %t74)+ %t76 =l add %t73, 8+ %t77 =l add %t73, 16+ %t78 =l loadl %t76+ %t79 =l loadl %t77+ %t81 =l add %t78, 1+ %t80 =w call $sxqbe_list_grow(l %t73, l %t81)+ %t82 =l call $sxqbe_list_buf(l %t73)+ %t83 =l mul %t78, 8+ %t84 =l add %t82, %t83+ storel %t75, %t84+ %t85 =l add %t78, 1+ storel %t85, %t76+ %t72 =l copy 0+ dbgloc 188+ %t87 =l copy %t70+ call $free(l %t87)+ %t86 =l copy 0+ dbgloc 189+ %t89 =l call $sxqbe_list_ensure(l %t5)+ %t90 =l copy $__str320+ %t91 =l copy 2+ %t92 =l call $bytes__bytes(l %t90, l %t91)+ %t93 =l call $client__copy_bytes(l %t92)+ %t94 =l add %t89, 8+ %t95 =l add %t89, 16+ %t96 =l loadl %t94+ %t97 =l loadl %t95+ %t99 =l add %t96, 1+ %t98 =w call $sxqbe_list_grow(l %t89, l %t99)+ %t100 =l call $sxqbe_list_buf(l %t89)+ %t101 =l mul %t96, 8+ %t102 =l add %t100, %t101+ storel %t93, %t102+ %t103 =l add %t96, 1+ storel %t103, %t94+ %t88 =l copy 0+ dbgloc 190+ %t105 =l call $sxqbe_list_ensure(l %t5)+ %t106 =l copy $__str337+ %t107 =l copy 5+ %t108 =l call $bytes__bytes(l %t106, l %t107)+ %t109 =l call $client__copy_bytes(l %t108)+ %t110 =l add %t105, 8+ %t111 =l add %t105, 16+ %t112 =l loadl %t110+ %t113 =l loadl %t111+ %t115 =l add %t112, 1+ %t114 =w call $sxqbe_list_grow(l %t105, l %t115)+ %t116 =l call $sxqbe_list_buf(l %t105)+ %t117 =l mul %t112, 8+ %t118 =l add %t116, %t117+ storel %t109, %t118+ %t119 =l add %t112, 1+ storel %t119, %t110+ %t104 =l copy 0+ dbgloc 191+ %t121 =l call $sxqbe_list_ensure(l %t5)+ %t122 =l copy $__str338+ %t123 =l copy 6+ %t124 =l call $bytes__bytes(l %t122, l %t123)+ %t125 =l call $client__copy_bytes(l %t124)+ %t126 =l add %t121, 8+ %t127 =l add %t121, 16+ %t128 =l loadl %t126+ %t129 =l loadl %t127+ %t131 =l add %t128, 1+ %t130 =w call $sxqbe_list_grow(l %t121, l %t131)+ %t132 =l call $sxqbe_list_buf(l %t121)+ %t133 =l mul %t128, 8+ %t134 =l add %t132, %t133+ storel %t125, %t134+ %t135 =l add %t128, 1+ storel %t135, %t126+ %t120 =l copy 0+ dbgloc 192+ %t137 =l call $sxqbe_list_ensure(l %t5)+ %t138 =l add %u, 24+ %t139 =l call $client__copy_bytes(l %t138)+ %t140 =l add %t137, 8+ %t141 =l add %t137, 16+ %t142 =l loadl %t140+ %t143 =l loadl %t141+ %t145 =l add %t142, 1+ %t144 =w call $sxqbe_list_grow(l %t137, l %t145)+ %t146 =l call $sxqbe_list_buf(l %t137)+ %t147 =l mul %t142, 8+ %t148 =l add %t146, %t147+ storel %t139, %t148+ %t149 =l add %t142, 1+ storel %t149, %t140+ %t136 =l copy 0+ dbgloc 193+ %t150 =l loadl %t5+ %t151 =l call $client__build_command(l %t150)+ storel %t151, %t152+ call $__sx_dbg_keep(l %t152)+ dbgvar "cmd", "bytes.Bytes", %t152, 8, 5, 193+ dbgloc 194+ %t153 =l loadl %t5+ %t154 =w call $client__free_parts(l %t153)+ dbgloc 195+ %t155 =l call $stream__spawn(l %t156, l %t151)+ storel %t156, %t157+ call $__sx_dbg_keep(l %t157)+ dbgvar "res", "option[Stream]", %t157, 8, 5, 195+ dbgloc 196+ %t158 =w call $bytes__free_owned(l %t151)+ dbgloc 197+ call $memcpy(l %__ret, l %t156, l 16)+ ret %__ret+@lbl7351+ dbgloc 199+ %t159 =l loadub %u+ jnz %t159, @lbl7356, @lbl7357+@lbl7356+ dbgloc 200+ %t160 =l add %u, 4+ %t161 =l call $bytes__Bytes__to_cstr(l %t160)+ storel %t161, %t162+ call $__sx_dbg_keep(l %t162)+ dbgvar "host_z2", "ref u8", %t162, 8, 7, 200+ dbgloc 201+ %t164 =l add %u, 20+ %t163 =l loadsw %t164+ %t165 =w call $tls__tcp_connect(l %t161, w %t163)+ %t166 =w copy %t165+ storew %t166, %t167+ call $__sx_dbg_keep(l %t167)+ dbgvar "fd", "i32", %t167, 4, 5, 201+ dbgloc 202+ %t168 =w copy 0+ %t169 =w csltw %t166, %t168+ jnz %t169, @lbl7359, @lbl7360+@lbl7359+ dbgloc 203+ %t171 =l copy %t161+ call $free(l %t171)+ %t170 =l copy 0+ dbgloc 204+ storel 0, %t172+ call $memcpy(l %__ret, l %t172, l 16)+ ret %__ret+@lbl7360+ dbgloc 206+ %t173 =l call $tls__client_ctx()+ storel %t173, %t174+ call $__sx_dbg_keep(l %t174)+ dbgvar "ctx", "ref ", %t174, 8, 7, 206+ dbgloc 207+ %t176 =l add %tls_pin, 8+ %t175 =l loadl %t176+ %t177 =l copy 0+ %t178 =w csgtl %t175, %t177+ jnz %t178, @lbl7362, @lbl7363+@lbl7362+ dbgloc 208+ %t179 =l call $tls__client_ctx_pinned()+ storel %t179, %t174+ jmp @lbl7363+@lbl7363+ dbgloc 210+ %t180 =l loadl %t174+ %t181 =l copy 0+ %t182 =w ceql %t180, %t181+ jnz %t182, @lbl7365, @lbl7366+@lbl7365+ dbgloc 211+ %t184 =l copy %t161+ call $free(l %t184)+ %t183 =l copy 0+ dbgloc 212+ %t185 =w call $client__native_close(w %t166)+ dbgloc 213+ storel 0, %t186+ call $memcpy(l %__ret, l %t186, l 16)+ ret %__ret+@lbl7366+ dbgloc 215+ %t187 =l loadl %t174+ %t188 =l call $tls__connect(l %t187, w %t166, l %t161)+ storel %t188, %t189+ call $__sx_dbg_keep(l %t189)+ dbgvar "ssl", "ref ", %t189, 8, 7, 215+ dbgloc 216+ %t190 =l loadl %t174+ %t191 =w call $tls__free_ctx(l %t190)+ dbgloc 217+ %t193 =l copy %t161+ call $free(l %t193)+ %t192 =l copy 0+ dbgloc 218+ %t194 =l copy 0+ %t195 =w ceql %t188, %t194+ jnz %t195, @lbl7368, @lbl7369+@lbl7368+ dbgloc 219+ %t196 =w call $client__native_close(w %t166)+ dbgloc 220+ storel 0, %t197+ call $memcpy(l %__ret, l %t197, l 16)+ ret %__ret+@lbl7369+ dbgloc 222+ %t198 =l call $stream__tls_stream(w %t166, l %t188)+ call $memset(l %t199, w 0, l 16)+ storel 1, %t199+ %t200 =l add %t199, 8+ storel %t198, %t200+ call $memcpy(l %__ret, l %t199, l 16)+ ret %__ret+@lbl7357+ dbgloc 224+ %t201 =l call $stream__self_exe()+ storel %t201, %t202+ call $__sx_dbg_keep(l %t202)+ dbgvar "exe", "bytes.Bytes", %t202, 8, 5, 224+ dbgloc 225+ %t203 =l call $lists__new__GENMONO__bytes__Bytes()++ storel %t203, %t204+ call $__sx_dbg_keep(l %t204)+ dbgvar "parts2", "list[bytes.Bytes]", %t204, 8, 5, 225+ dbgloc 226+ %t206 =l call $sxqbe_list_ensure(l %t204)+ %t207 =l add %t206, 8+ %t208 =l add %t206, 16+ %t209 =l loadl %t207+ %t210 =l loadl %t208+ %t212 =l add %t209, 1+ %t211 =w call $sxqbe_list_grow(l %t206, l %t212)+ %t213 =l call $sxqbe_list_buf(l %t206)+ %t214 =l mul %t209, 8+ %t215 =l add %t213, %t214+ storel %t201, %t215+ %t216 =l add %t209, 1+ storel %t216, %t207+ %t205 =l copy 0+ dbgloc 227+ %t218 =l call $sxqbe_list_ensure(l %t204)+ %t219 =l copy $__str337+ %t220 =l copy 5+ %t221 =l call $bytes__bytes(l %t219, l %t220)+ %t222 =l call $client__copy_bytes(l %t221)+ %t223 =l add %t218, 8+ %t224 =l add %t218, 16+ %t225 =l loadl %t223+ %t226 =l loadl %t224+ %t228 =l add %t225, 1+ %t227 =w call $sxqbe_list_grow(l %t218, l %t228)+ %t229 =l call $sxqbe_list_buf(l %t218)+ %t230 =l mul %t225, 8+ %t231 =l add %t229, %t230+ storel %t222, %t231+ %t232 =l add %t225, 1+ storel %t232, %t223+ %t217 =l copy 0+ dbgloc 228+ %t234 =l call $sxqbe_list_ensure(l %t204)+ %t235 =l copy $__str338+ %t236 =l copy 6+ %t237 =l call $bytes__bytes(l %t235, l %t236)+ %t238 =l call $client__copy_bytes(l %t237)+ %t239 =l add %t234, 8+ %t240 =l add %t234, 16+ %t241 =l loadl %t239+ %t242 =l loadl %t240+ %t244 =l add %t241, 1+ %t243 =w call $sxqbe_list_grow(l %t234, l %t244)+ %t245 =l call $sxqbe_list_buf(l %t234)+ %t246 =l mul %t241, 8+ %t247 =l add %t245, %t246+ storel %t238, %t247+ %t248 =l add %t241, 1+ storel %t248, %t239+ %t233 =l copy 0+ dbgloc 229+ %t250 =l call $sxqbe_list_ensure(l %t204)+ %t251 =l add %u, 24+ %t252 =l call $client__copy_bytes(l %t251)+ %t253 =l add %t250, 8+ %t254 =l add %t250, 16+ %t255 =l loadl %t253+ %t256 =l loadl %t254+ %t258 =l add %t255, 1+ %t257 =w call $sxqbe_list_grow(l %t250, l %t258)+ %t259 =l call $sxqbe_list_buf(l %t250)+ %t260 =l mul %t255, 8+ %t261 =l add %t259, %t260+ storel %t252, %t261+ %t262 =l add %t255, 1+ storel %t262, %t253+ %t249 =l copy 0+ dbgloc 230+ %t263 =l loadl %t204+ %t264 =l call $client__build_command(l %t263)+ storel %t264, %t265+ call $__sx_dbg_keep(l %t265)+ dbgvar "cmd2", "bytes.Bytes", %t265, 8, 5, 230+ dbgloc 231+ %t266 =l loadl %t204+ %t267 =w call $client__free_parts(l %t266)+ dbgloc 232+ %t268 =l call $stream__spawn(l %t269, l %t264)+ storel %t269, %t270+ call $__sx_dbg_keep(l %t270)+ dbgvar "res2", "option[Stream]", %t270, 8, 5, 232+ dbgloc 233+ %t271 =w call $bytes__free_owned(l %t264)+ dbgloc 234+ call $memcpy(l %__ret, l %t269, l 16)+ ret %__ret+}++function w $client__free_parts(l %parts) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 237+ storel %parts, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "parts", "list[bytes.Bytes]", %t0, 8, 5, 237+ dbgloc 238+ storel 0, %t1+ %t2 =l call $sxqbe_list_len(l %parts)+@lbl7371+ %t3 =l loadl %t1+ %t4 =w csltl %t3, %t2+ jnz %t4, @lbl7372, @lbl7373+@lbl7372+ %t5 =l call $sxqbe_list_buf(l %parts)+ %t6 =l mul %t3, 8+ %t7 =l add %t5, %t6+ %t8 =l loadl %t7+ dbgloc 239+ %t9 =l loadl %t8+ %t10 =l copy 0+ %t11 =w cnel %t9, %t10+ jnz %t11, @lbl7375, @lbl7376+@lbl7375+ dbgloc 240+ %t12 =w call $bytes__free_owned(l %t8)+ jmp @lbl7376+@lbl7376+@lbl7374+ %t13 =l add %t3, 1+ storel %t13, %t1+ jmp @lbl7371+@lbl7373+ dbgloc 243+ call $sxqbe_list_free(l %parts)+ %t14 =l copy 0+ ret 0+}++function w $client__native_close(w %fd) {+@start+ %t0 =l alloc8 8+ dbgloc 248+ storew %fd, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "fd", "i32", %t0, 4, 5, 248+ dbgloc 249+ %t1 =w call $close(w %fd)+ ret 0+}++function w $client__free_hello_fields(l %h) {+@start+ %t0 =l alloc8 8+ dbgloc 252+ storel %h, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "h", "msg.Hello", %t0, 8, 5, 252+ dbgloc 253+ %t1 =w call $msg__free_hello(l %h)+ ret 0+}++export function l $client__connect(l %__ret, l %url, l %key_name, l %repo_name) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t5 =l alloc8 16+ dbgloc 257+ storel %url, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "url", "bytes.Bytes", %t0, 8, 5, 257+ storel %key_name, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "key_name", "bytes.Bytes", %t1, 8, 5, 257+ storel %repo_name, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "repo_name", "bytes.Bytes", %t2, 8, 5, 257+ dbgloc 262+ %t3 =l call $bytes__empty()+ %t4 =l call $client__connect_pinned(l %t5, l %url, l %key_name, l %repo_name, l %t3)+ call $memcpy(l %__ret, l %t5, l 16)+ ret %__ret+}++export function l $client__connect_pinned(l %__ret, l %url, l %key_name, l %repo_name, l %tls_pin) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t3 =l alloc8 8+ %t5 =l alloc8 16+ %t6 =l alloc8 8+ %t7 =l alloc8 44+ %t19 =l alloc8 8+ %t24 =l alloc8 16+ %t27 =l alloc8 16+ %t28 =l alloc8 8+ %t49 =l alloc8 8+ %t54 =l alloc8 16+ %t57 =l alloc8 8+ %t67 =l alloc8 8+ %t84 =l alloc8 8+ %t91 =l alloc8 8+ %t95 =l alloc8 8+ %t96 =l alloc4 1+ %t101 =l alloc8 8+ %t116 =l alloc8 16+ %t120 =l alloc8 8+ %t127 =l alloc8 8+ %t131 =l alloc8 8+ %t196 =l alloc8 44+ %t210 =l alloc8 8+ %t212 =l alloc8 8+ %t230 =l alloc8 16+ %t233 =l alloc8 16+ %t234 =l alloc8 8+ %t235 =l alloc8 37+ %t245 =l alloc8 8+ %t259 =l alloc8 16+ %t277 =l alloc8 16+ %t281 =l alloc8 16+ %t282 =l alloc8 8+ %t283 =l alloc8 27+ %t293 =l alloc8 8+ %t297 =l alloc8 8+ %t319 =l alloc8 16+ %t321 =l alloc8 8+ %t327 =l alloc4 1+ %t340 =l alloc8 8+ %t373 =l alloc8 16+ %t374 =l alloc8 8+ %t385 =l alloc8 8+ %t388 =l alloc8 16+ %t389 =l alloc8 8+ %t395 =l alloc8 32+ %t404 =l alloc8 8+ %t406 =l alloc8 8+ %t422 =l alloc8 16+ %t423 =l alloc8 8+ %t435 =l alloc8 16+ %t436 =l alloc8 8+ %t467 =l alloc8 8+ %t471 =l alloc4 1+ %t479 =l alloc8 16+ %t481 =l alloc8 16+ dbgloc 265+ storel %url, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "url", "bytes.Bytes", %t0, 8, 5, 265+ storel %key_name, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "key_name", "bytes.Bytes", %t1, 8, 5, 265+ storel %repo_name, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "repo_name", "bytes.Bytes", %t2, 8, 5, 265+ storel %tls_pin, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "tls_pin", "bytes.Bytes", %t3, 8, 5, 265+ dbgloc 271+ %t4 =l call $client__parse_url(l %t5, l %url)+ storel %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "u_opt", "option[Url]", %t6, 8, 5, 271+ dbgloc 272+ %t8 =l copy 0+ storew %t8, %t7+ %t10 =l add %t7, 4+ %t11 =l call $bytes__empty()+ call $memcpy(l %t10, l %t11, l 16)+ %t12 =l copy 0+ %t13 =l add %t7, 20+ storew %t12, %t13+ %t14 =l add %t7, 24+ %t15 =l call $bytes__empty()+ call $memcpy(l %t14, l %t15, l 16)+ %t16 =l copy 0+ %t17 =l add %t7, 40+ storew %t16, %t17+ %t18 =l call $malloc(l 44)+ call $memset(l %t18, w 0, l 44)+ call $memcpy(l %t18, l %t7, l 44)+ storel %t18, %t19+ call $__sx_dbg_keep(l %t19)+ dbgvar "u", "Url", %t19, 8, 5, 272+ dbgloc 279+ %t20 =l loadl %t5+ %t21 =w cnel %t20, 0+ jnz %t21, @lbl7378, @lbl7379+@lbl7378+ %t23 =l add %t5, 8+ %t22 =l loadl %t23+ dbgloc 281+ storel %t22, %t19+ jmp @lbl7380+@lbl7379+ dbgloc 284+ storel 0, %t24+ call $memcpy(l %__ret, l %t24, l 16)+ ret %__ret+@lbl7380+ dbgloc 287+ %t25 =l loadl %t19+ %t26 =l call $client__connect_stream(l %t27, l %t25, l %tls_pin)+ storel %t27, %t28+ call $__sx_dbg_keep(l %t28)+ dbgvar "st_opt", "option[stream.Stream]", %t28, 8, 5, 287+ dbgloc 288+ %t29 =l loadl %t19+ %t30 =l add %t29, 4+ %t31 =l loadl %t30+ %t32 =l copy 0+ %t33 =w cnel %t31, %t32+ jnz %t33, @lbl7381, @lbl7382+@lbl7381+ dbgloc 289+ %t34 =l loadl %t19+ %t35 =l add %t34, 4+ %t36 =l loadl %t35+ %t37 =w call $bytes__free_ptr(l %t36)+ jmp @lbl7382+@lbl7382+ dbgloc 291+ %t38 =l loadl %t19+ %t39 =l add %t38, 24+ %t40 =l loadl %t39+ %t41 =l copy 0+ %t42 =w cnel %t40, %t41+ jnz %t42, @lbl7384, @lbl7385+@lbl7384+ dbgloc 292+ %t43 =l loadl %t19+ %t44 =l add %t43, 24+ %t45 =l loadl %t44+ %t46 =w call $bytes__free_ptr(l %t45)+ jmp @lbl7385+@lbl7385+ dbgloc 294+ %t47 =l call $stream__stdio_stream()+ %t48 =l call $malloc(l 21)+ call $memset(l %t48, w 0, l 21)+ call $memcpy(l %t48, l %t47, l 21)+ storel %t48, %t49+ call $__sx_dbg_keep(l %t49)+ dbgvar "st", "stream.Stream", %t49, 8, 5, 294+ dbgloc 295+ %t50 =l loadl %t27+ %t51 =w cnel %t50, 0+ jnz %t51, @lbl7387, @lbl7388+@lbl7387+ %t53 =l add %t27, 8+ %t52 =l loadl %t53+ dbgloc 297+ storel %t52, %t49+ jmp @lbl7389+@lbl7388+ dbgloc 300+ storel 0, %t54+ call $memcpy(l %__ret, l %t54, l 16)+ ret %__ret+@lbl7389+ dbgloc 303+ %t55 =l call $bytes__empty()+ %t56 =l call $malloc(l 16)+ call $memset(l %t56, w 0, l 16)+ call $memcpy(l %t56, l %t55, l 16)+ storel %t56, %t57+ call $__sx_dbg_keep(l %t57)+ dbgvar "binding", "bytes.Bytes", %t57, 8, 5, 303+ dbgloc 304+ %t58 =l loadl %t49+ %t59 =l loadub %t58+ %t60 =l extsw %t59+ %t61 =l copy 1+ %t63 =l extsw %t60+ %t62 =w ceql %t63, %t61+ jnz %t62, @lbl7390, @lbl7391+@lbl7390+ dbgloc 305+ %t65 =l copy 32+ %t64 =l call $malloc(l %t65)+ %t66 =l copy %t64+ storel %t66, %t67+ call $__sx_dbg_keep(l %t67)+ dbgvar "b", "ref u8", %t67, 8, 7, 305+ dbgloc 306+ %t68 =l loadl %t49+ %t70 =l add %t68, 9+ %t69 =l loadl %t70+ %t71 =l copy 32+ %t72 =w call $tls__exporter(l %t69, l %t66, l %t71)+ jnz %t72, @lbl7393, @lbl7395+@lbl7393+ dbgloc 307+ %t73 =l copy 32+ %t74 =l call $bytes__bytes(l %t66, l %t73)+ storel %t74, %t57+ jmp @lbl7394+@lbl7395+ dbgloc 309+ %t76 =l copy %t66+ call $free(l %t76)+ %t75 =l copy 0+ jmp @lbl7394+@lbl7394+ dbgloc 311+ %t78 =l add %tls_pin, 8+ %t77 =l loadl %t78+ %t79 =l copy 0+ %t80 =w csgtl %t77, %t79+ jnz %t80, @lbl7396, @lbl7397+@lbl7396+ dbgloc 312+ %t82 =l copy 32+ %t81 =l call $malloc(l %t82)+ %t83 =l copy %t81+ storel %t83, %t84+ call $__sx_dbg_keep(l %t84)+ dbgvar "digest", "ref u8", %t84, 8, 7, 312+ dbgloc 313+ %t85 =l loadl %t49+ %t87 =l add %t85, 9+ %t86 =l loadl %t87+ %t88 =w call $tls__peer_sha256(l %t86, l %t83)+ %t89 =w copy %t88+ %t90 =w extub %t89+ storew %t90, %t91+ call $__sx_dbg_keep(l %t91)+ dbgvar "got", "bool", %t91, 1, 7, 313+ dbgloc 314+ %t92 =l copy 32+ %t93 =l call $bytes__bytes(l %t83, l %t92)+ %t94 =l call $tls__to_hex(l %t93)+ storel %t94, %t95+ call $__sx_dbg_keep(l %t95)+ dbgvar "hex", "bytes.Bytes", %t95, 8, 5, 314+ dbgloc 315+ storew %t90, %t96+ jnz %t90, @lbl7399, @lbl7400+@lbl7399+ %t97 =w call $tls__hex_equal(l %t94, l %tls_pin)+ storew %t97, %t96+ jmp @lbl7400+@lbl7400+ %t98 =w loadw %t96+ %t99 =w copy %t98+ %t100 =w extub %t99+ storew %t100, %t101+ call $__sx_dbg_keep(l %t101)+ dbgvar "matched", "bool", %t101, 1, 7, 315+ dbgloc 316+ %t102 =l loadl %t94+ %t103 =w call $bytes__free_ptr(l %t102)+ dbgloc 317+ %t104 =w call $bytes__free_ptr(l %t83)+ dbgloc 318+ %t105 =w ceqw %t100, 0+ jnz %t105, @lbl7401, @lbl7402+@lbl7401+ dbgloc 319+ %t106 =l loadl %t49+ %t107 =w call $stream__close(l %t106)+ dbgloc 320+ %t108 =l loadl %t57+ %t109 =l loadl %t108+ %t110 =l copy 0+ %t111 =w cnel %t109, %t110+ jnz %t111, @lbl7404, @lbl7405+@lbl7404+ dbgloc 321+ %t113 =l loadl %t57+ %t114 =l loadl %t113+ %t115 =l copy %t114+ call $free(l %t115)+ %t112 =l copy 0+ jmp @lbl7405+@lbl7405+ dbgloc 323+ storel 0, %t116+ call $memcpy(l %__ret, l %t116, l 16)+ ret %__ret+@lbl7402+ jmp @lbl7397+@lbl7397+ jmp @lbl7391+@lbl7391+ dbgloc 327+ %t118 =l copy 32+ %t117 =l call $malloc(l %t118)+ %t119 =l copy %t117+ storel %t119, %t120+ call $__sx_dbg_keep(l %t120)+ dbgvar "cn", "ref u8", %t120, 8, 7, 327+ dbgloc 328+ %t121 =l copy %t119+ %t122 =l copy 32+ %t123 =w call $std__random__random_bytes(l %t121, l %t122)+ dbgloc 329+ %t124 =l copy 32+ %t125 =l call $bytes__bytes(l %t119, l %t124)+ %t126 =l call $bytes__Bytes__dup(l %t125)+ storel %t126, %t127+ call $__sx_dbg_keep(l %t127)+ dbgvar "client_nonce", "bytes.Bytes", %t127, 8, 5, 329+ dbgloc 330+ %t129 =l copy %t119+ call $free(l %t129)+ %t128 =l copy 0+ dbgloc 331+ %t130 =l call $lists__new__GENMONO__bytes__Bytes()++ storel %t130, %t131+ call $__sx_dbg_keep(l %t131)+ dbgvar "caps", "list[bytes.Bytes]", %t131, 8, 5, 331+ dbgloc 332+ %t133 =l call $sxqbe_list_ensure(l %t131)+ %t134 =l copy $__str339+ %t135 =l copy 12+ %t136 =l call $bytes__bytes(l %t134, l %t135)+ %t137 =l call $client__copy_bytes(l %t136)+ %t138 =l add %t133, 8+ %t139 =l add %t133, 16+ %t140 =l loadl %t138+ %t141 =l loadl %t139+ %t143 =l add %t140, 1+ %t142 =w call $sxqbe_list_grow(l %t133, l %t143)+ %t144 =l call $sxqbe_list_buf(l %t133)+ %t145 =l mul %t140, 8+ %t146 =l add %t144, %t145+ storel %t137, %t146+ %t147 =l add %t140, 1+ storel %t147, %t138+ %t132 =l copy 0+ dbgloc 333+ %t149 =l call $sxqbe_list_ensure(l %t131)+ %t150 =l copy $__str340+ %t151 =l copy 11+ %t152 =l call $bytes__bytes(l %t150, l %t151)+ %t153 =l call $client__copy_bytes(l %t152)+ %t154 =l add %t149, 8+ %t155 =l add %t149, 16+ %t156 =l loadl %t154+ %t157 =l loadl %t155+ %t159 =l add %t156, 1+ %t158 =w call $sxqbe_list_grow(l %t149, l %t159)+ %t160 =l call $sxqbe_list_buf(l %t149)+ %t161 =l mul %t156, 8+ %t162 =l add %t160, %t161+ storel %t153, %t162+ %t163 =l add %t156, 1+ storel %t163, %t154+ %t148 =l copy 0+ dbgloc 334+ %t165 =l call $sxqbe_list_ensure(l %t131)+ %t166 =l copy $__str341+ %t167 =l copy 4+ %t168 =l call $bytes__bytes(l %t166, l %t167)+ %t169 =l call $client__copy_bytes(l %t168)+ %t170 =l add %t165, 8+ %t171 =l add %t165, 16+ %t172 =l loadl %t170+ %t173 =l loadl %t171+ %t175 =l add %t172, 1+ %t174 =w call $sxqbe_list_grow(l %t165, l %t175)+ %t176 =l call $sxqbe_list_buf(l %t165)+ %t177 =l mul %t172, 8+ %t178 =l add %t176, %t177+ storel %t169, %t178+ %t179 =l add %t172, 1+ storel %t179, %t170+ %t164 =l copy 0+ dbgloc 335+ %t181 =l call $sxqbe_list_ensure(l %t131)+ %t182 =l copy $__str342+ %t183 =l copy 12+ %t184 =l call $bytes__bytes(l %t182, l %t183)+ %t185 =l call $client__copy_bytes(l %t184)+ %t186 =l add %t181, 8+ %t187 =l add %t181, 16+ %t188 =l loadl %t186+ %t189 =l loadl %t187+ %t191 =l add %t188, 1+ %t190 =w call $sxqbe_list_grow(l %t181, l %t191)+ %t192 =l call $sxqbe_list_buf(l %t181)+ %t193 =l mul %t188, 8+ %t194 =l add %t192, %t193+ storel %t185, %t194+ %t195 =l add %t188, 1+ storel %t195, %t186+ %t180 =l copy 0+ dbgloc 336+ %t197 =l copy 1+ storeh %t197, %t196+ %t199 =l copy 1+ %t200 =l add %t196, 2+ storeh %t199, %t200+ %t201 =l loadl %t131+ %t202 =l add %t196, 4+ storel %t201, %t202+ %t203 =l add %t196, 12+ %t204 =l call $bytes__Bytes__dup(l %repo_name)+ call $memcpy(l %t203, l %t204, l 16)+ %t205 =l add %t196, 28+ %t206 =l call $bytes__Bytes__dup(l %t126)+ call $memcpy(l %t205, l %t206, l 16)+ %t208 =l copy 0+ %t209 =w cnel %t196, 0+ jnz %t209, @lbl7407, @lbl7408+@lbl7407+ %t207 =l call $malloc(l 44)+ call $memset(l %t207, w 0, l 44)+ call $memcpy(l %t207, l %t196, l 44)+ %t208 =l copy %t207+@lbl7408+ storel %t208, %t210+ call $__sx_dbg_keep(l %t210)+ dbgvar "hello", "msg.Hello", %t210, 8, 5, 336+ dbgloc 343+ %t211 =l call $msg__encode_hello(l %t208)+ storel %t211, %t212+ call $__sx_dbg_keep(l %t212)+ dbgvar "hello_body", "bytes.Bytes", %t212, 8, 5, 343+ dbgloc 344+ %t213 =w call $client__free_hello_fields(l %t208)+ dbgloc 345+ %t214 =l loadl %t49+ %t215 =l copy 1+ %t216 =l copy 1+ %t218 =w copy %t215+ %t219 =w copy %t216+ %t217 =w call $wire__write_frame(l %t214, w %t218, w %t219, l %t211)+ %t220 =w ceqw %t217, 0+ jnz %t220, @lbl7409, @lbl7410+@lbl7409+ dbgloc 346+ %t221 =l loadl %t49+ %t222 =w call $stream__close(l %t221)+ dbgloc 347+ %t223 =w call $bytes__free_owned(l %t126)+ dbgloc 348+ %t224 =l loadl %t57+ %t225 =l loadl %t224+ %t226 =l copy 0+ %t227 =w cnel %t225, %t226+ jnz %t227, @lbl7412, @lbl7413+@lbl7412+ dbgloc 349+ %t228 =l loadl %t57+ %t229 =w call $bytes__free_owned(l %t228)+ jmp @lbl7413+@lbl7413+ dbgloc 351+ storel 0, %t230+ call $memcpy(l %__ret, l %t230, l 16)+ ret %__ret+@lbl7410+ dbgloc 353+ %t231 =l loadl %t49+ %t232 =l call $wire__read_frame(l %t233, l %t231)+ storel %t233, %t234+ call $__sx_dbg_keep(l %t234)+ dbgvar "f_opt", "option[Frame]", %t234, 8, 5, 353+ dbgloc 354+ %t236 =l copy 0+ storeb %t236, %t235+ %t238 =l copy 0+ %t239 =l add %t235, 1+ storew %t238, %t239+ %t240 =l add %t235, 5+ %t241 =l call $bytes__empty()+ call $memcpy(l %t240, l %t241, l 16)+ %t242 =l add %t235, 21+ %t243 =l call $bytes__empty()+ call $memcpy(l %t242, l %t243, l 16)+ %t244 =l call $malloc(l 37)+ call $memset(l %t244, w 0, l 37)+ call $memcpy(l %t244, l %t235, l 37)+ storel %t244, %t245+ call $__sx_dbg_keep(l %t245)+ dbgvar "f", "wire.Frame", %t245, 8, 5, 354+ dbgloc 360+ %t246 =l loadl %t233+ %t247 =w cnel %t246, 0+ jnz %t247, @lbl7415, @lbl7416+@lbl7415+ %t249 =l add %t233, 8+ %t248 =l loadl %t249+ dbgloc 362+ storel %t248, %t245+ jmp @lbl7417+@lbl7416+ dbgloc 365+ %t250 =l loadl %t49+ %t251 =w call $stream__close(l %t250)+ dbgloc 366+ %t252 =w call $bytes__free_owned(l %t126)+ dbgloc 367+ %t253 =l loadl %t57+ %t254 =l loadl %t253+ %t255 =l copy 0+ %t256 =w cnel %t254, %t255+ jnz %t256, @lbl7418, @lbl7419+@lbl7418+ dbgloc 368+ %t257 =l loadl %t57+ %t258 =w call $bytes__free_owned(l %t257)+ jmp @lbl7419+@lbl7419+ dbgloc 370+ storel 0, %t259+ call $memcpy(l %__ret, l %t259, l 16)+ ret %__ret+@lbl7417+ dbgloc 373+ %t260 =l loadl %t245+ %t261 =l loadub %t260+ %t262 =l extsw %t261+ %t263 =l copy 2+ %t265 =l extsw %t262+ %t264 =w cnel %t265, %t263+ jnz %t264, @lbl7421, @lbl7422+@lbl7421+ dbgloc 374+ %t266 =l loadl %t245+ %t267 =w call $wire__free_frame(l %t266)+ dbgloc 375+ %t268 =l loadl %t49+ %t269 =w call $stream__close(l %t268)+ dbgloc 376+ %t270 =w call $bytes__free_owned(l %t126)+ dbgloc 377+ %t271 =l loadl %t57+ %t272 =l loadl %t271+ %t273 =l copy 0+ %t274 =w cnel %t272, %t273+ jnz %t274, @lbl7424, @lbl7425+@lbl7424+ dbgloc 378+ %t275 =l loadl %t57+ %t276 =w call $bytes__free_owned(l %t275)+ jmp @lbl7425+@lbl7425+ dbgloc 380+ storel 0, %t277+ call $memcpy(l %__ret, l %t277, l 16)+ ret %__ret+@lbl7422+ dbgloc 382+ %t278 =l loadl %t245+ %t279 =l add %t278, 5+ %t280 =l call $msg__decode_hello_ok(l %t281, l %t279)+ storel %t281, %t282+ call $__sx_dbg_keep(l %t282)+ dbgvar "hd", "result[HelloOk, derr.DecodeError]", %t282, 8, 5, 382+ dbgloc 383+ %t284 =l copy 0+ storeh %t284, %t283+ %t286 =l call $lists__new__GENMONO__bytes__Bytes()++ %t287 =l add %t283, 2+ storel %t286, %t287+ %t288 =l add %t283, 10+ %t289 =l call $bytes__empty()+ call $memcpy(l %t288, l %t289, l 16)+ %t290 =l copy 0+ %t291 =l add %t283, 26+ storeb %t290, %t291+ %t292 =l call $malloc(l 27)+ call $memset(l %t292, w 0, l 27)+ call $memcpy(l %t292, l %t283, l 27)+ storel %t292, %t293+ call $__sx_dbg_keep(l %t293)+ dbgvar "hok", "msg.HelloOk", %t293, 8, 5, 383+ dbgloc 389+ %t294 =l copy 0+ %t295 =w copy %t294+ %t296 =w extub %t295+ storew %t296, %t297+ call $__sx_dbg_keep(l %t297)+ dbgvar "parsed_ok", "bool", %t297, 1, 7, 389+ dbgloc 390+ %t298 =l loadl %t281+ %t299 =w ceql %t298, 0+ jnz %t299, @lbl7427, @lbl7428+@lbl7427+ %t301 =l add %t281, 8+ %t300 =l loadl %t301+ dbgloc 392+ storel %t300, %t293+ dbgloc 393+ %t302 =l copy 1+ %t303 =w copy %t302+ %t304 =w extub %t303+ storew %t304, %t297+ jmp @lbl7429+@lbl7428+ jmp @lbl7429+@lbl7429+ dbgloc 398+ %t305 =l loadl %t245+ %t306 =w call $wire__free_frame(l %t305)+ dbgloc 399+ %t308 =w loadw %t297+ %t307 =l extsw %t308+ %t309 =w ceqw %t307, 0+ jnz %t309, @lbl7430, @lbl7431+@lbl7430+ dbgloc 400+ %t310 =l loadl %t49+ %t311 =w call $stream__close(l %t310)+ dbgloc 401+ %t312 =w call $bytes__free_owned(l %t126)+ dbgloc 402+ %t313 =l loadl %t57+ %t314 =l loadl %t313+ %t315 =l copy 0+ %t316 =w cnel %t314, %t315+ jnz %t316, @lbl7433, @lbl7434+@lbl7433+ dbgloc 403+ %t317 =l loadl %t57+ %t318 =w call $bytes__free_owned(l %t317)+ jmp @lbl7434+@lbl7434+ dbgloc 405+ storel 0, %t319+ call $memcpy(l %__ret, l %t319, l 16)+ ret %__ret+@lbl7431+ dbgloc 407+ %t320 =l call $malloc(l 16)+ call $memset(l %t320, w 0, l 16)+ call $memcpy(l %t320, l %key_name, l 16)+ storel %t320, %t321+ call $__sx_dbg_keep(l %t321)+ dbgvar "key_sel", "bytes.Bytes", %t321, 8, 5, 407+ dbgloc 408+ %t322 =l loadl %t321+ %t324 =l add %t322, 8+ %t323 =l loadl %t324+ %t325 =l copy 0+ %t326 =w ceql %t323, %t325+ storew %t326, %t327+ jnz %t326, @lbl7439, @lbl7440+@lbl7439+ %t328 =l loadl %t293+ %t330 =l add %t328, 26+ %t329 =l loadub %t330+ %t331 =w copy 0+ %t332 =w cnew %t329, %t331+ storew %t332, %t327+ jmp @lbl7440+@lbl7440+ %t333 =w loadw %t327+ jnz %t333, @lbl7436, @lbl7437+@lbl7436+ dbgloc 409+ %t334 =l copy $__str246+ %t335 =l copy 7+ %t336 =l call $bytes__bytes(l %t334, l %t335)+ storel %t336, %t321+ jmp @lbl7437+@lbl7437+ dbgloc 411+ %t338 =l copy 92+ %t337 =l call $malloc(l %t338)+ %t339 =l copy %t337+ storel %t339, %t340+ call $__sx_dbg_keep(l %t340)+ dbgvar "c", "ref Client", %t340, 8, 7, 411+ dbgloc 412+ %t341 =l loadl %t49+ %t342 =l loadl %t340+ call $memcpy(l %t342, l %t341, l 21)+ dbgloc 413+ %t343 =l loadl %t57+ %t344 =l loadl %t340+ %t345 =l add %t344, 21+ call $memcpy(l %t345, l %t343, l 16)+ dbgloc 414+ %t346 =l loadl %t293+ %t347 =l loaduh %t346+ %t348 =l loadl %t340+ %t349 =l add %t348, 37+ storeh %t347, %t349+ dbgloc 415+ %t350 =l copy 0+ %t351 =w copy %t350+ %t352 =l loadl %t340+ %t353 =l add %t352, 39+ storeb %t351, %t353+ dbgloc 416+ %t354 =l copy 0+ %t355 =l loadl %t340+ %t356 =l add %t355, 40+ storew %t354, %t356+ dbgloc 417+ %t357 =l call $bytes__empty()+ %t358 =l loadl %t340+ %t359 =l add %t358, 44+ call $memcpy(l %t359, l %t357, l 16)+ dbgloc 418+ %t360 =l call $bytes__Bytes__dup(l %repo_name)+ %t361 =l loadl %t340+ %t362 =l add %t361, 60+ call $memcpy(l %t362, l %t360, l 16)+ dbgloc 419+ %t363 =l call $bytes__empty()+ %t364 =l loadl %t340+ %t365 =l add %t364, 76+ call $memcpy(l %t365, l %t363, l 16)+ dbgloc 420+ %t366 =l loadl %t321+ %t368 =l add %t366, 8+ %t367 =l loadl %t368+ %t369 =l copy 0+ %t370 =w csgtl %t367, %t369+ jnz %t370, @lbl7441, @lbl7442+@lbl7441+ dbgloc 421+ %t371 =l loadl %t321+ %t372 =l call $keys__load(l %t373, l %t371)+ storel %t373, %t374+ call $__sx_dbg_keep(l %t374)+ dbgvar "key_opt", "option[Key]", %t374, 8, 5, 421+ dbgloc 422+ %t375 =l loadl %t373+ %t376 =w cnel %t375, 0+ jnz %t376, @lbl7444, @lbl7445+@lbl7444+ %t378 =l add %t373, 8+ %t377 =l loadl %t378+ dbgloc 423+ %t379 =l loadl %t293+ %t380 =l loaduh %t379+ %t381 =l loadl %t293+ %t382 =l add %t381, 10+ %t383 =l loadl %t57+ %t384 =l call $handshake__auth_message(w %t380, l %repo_name, l %t382, l %t126, l %t383)+ storel %t384, %t385+ call $__sx_dbg_keep(l %t385)+ dbgvar "message", "bytes.Bytes", %t385, 8, 5, 423+ dbgloc 430+ %t386 =l add %t377, 16+ %t387 =l call $ed__sign(l %t388, l %t386, l %t384)+ storel %t388, %t389+ call $__sx_dbg_keep(l %t389)+ dbgvar "sig_opt", "option[bytes.Bytes]", %t389, 8, 5, 430+ dbgloc 431+ %t390 =w call $bytes__free_owned(l %t384)+ dbgloc 432+ %t391 =l loadl %t388+ %t392 =w cnel %t391, 0+ jnz %t392, @lbl7447, @lbl7448+@lbl7447+ %t394 =l add %t388, 8+ %t393 =l loadl %t394+ dbgloc 433+ %t396 =l add %t395, 0+ %t397 =l add %t377, 32+ %t398 =l call $bytes__Bytes__dup(l %t397)+ call $memcpy(l %t396, l %t398, l 16)+ %t399 =l add %t395, 16+ %t400 =l call $bytes__Bytes__dup(l %t393)+ call $memcpy(l %t399, l %t400, l 16)+ %t402 =l copy 0+ %t403 =w cnel %t395, 0+ jnz %t403, @lbl7450, @lbl7451+@lbl7450+ %t401 =l call $malloc(l 32)+ call $memset(l %t401, w 0, l 32)+ call $memcpy(l %t401, l %t395, l 32)+ %t402 =l copy %t401+@lbl7451+ storel %t402, %t404+ call $__sx_dbg_keep(l %t404)+ dbgvar "a", "msg.Auth", %t404, 8, 5, 433+ dbgloc 437+ %t405 =l call $msg__encode_auth(l %t402)+ storel %t405, %t406+ call $__sx_dbg_keep(l %t406)+ dbgvar "ab", "bytes.Bytes", %t406, 8, 5, 437+ dbgloc 438+ %t407 =l add %t402, 0+ %t408 =l loadl %t407+ %t409 =w call $bytes__free_ptr(l %t408)+ dbgloc 439+ %t410 =l add %t402, 16+ %t411 =l loadl %t410+ %t412 =w call $bytes__free_ptr(l %t411)+ dbgloc 440+ %t413 =w call $bytes__free_owned(l %t393)+ dbgloc 441+ %t414 =l loadl %t49+ %t415 =l copy 3+ %t416 =l copy 2+ %t418 =w copy %t415+ %t419 =w copy %t416+ %t417 =w call $wire__write_frame(l %t414, w %t418, w %t419, l %t405)+ dbgloc 442+ %t420 =l loadl %t49+ %t421 =l call $wire__read_frame(l %t422, l %t420)+ storel %t422, %t423+ call $__sx_dbg_keep(l %t423)+ dbgvar "af", "option[Frame]", %t423, 8, 5, 442+ dbgloc 443+ %t424 =l loadl %t422+ %t425 =w cnel %t424, 0+ jnz %t425, @lbl7452, @lbl7453+@lbl7452+ %t427 =l add %t422, 8+ %t426 =l loadl %t427+ dbgloc 444+ %t428 =l loadub %t426+ %t429 =l extsw %t428+ %t430 =l copy 4+ %t432 =l extsw %t429+ %t431 =w ceql %t432, %t430+ jnz %t431, @lbl7455, @lbl7456+@lbl7455+ dbgloc 445+ %t433 =l add %t426, 5+ %t434 =l call $msg__decode_auth_ok(l %t435, l %t433)+ storel %t435, %t436+ call $__sx_dbg_keep(l %t436)+ dbgvar "ad", "result[AuthOk, derr.DecodeError]", %t436, 8, 5, 445+ dbgloc 446+ %t437 =l loadl %t435+ %t438 =w ceql %t437, 0+ jnz %t438, @lbl7458, @lbl7459+@lbl7458+ %t440 =l add %t435, 8+ %t439 =l loadl %t440+ dbgloc 447+ %t441 =l loadub %t439+ %t442 =l loadl %t340+ %t443 =l add %t442, 39+ storeb %t441, %t443+ dbgloc 448+ %t444 =l copy 1+ %t445 =l loadl %t340+ %t446 =l add %t445, 40+ storew %t444, %t446+ dbgloc 449+ %t447 =l add %t439, 1+ %t448 =l call $bytes__Bytes__dup(l %t447)+ %t449 =l loadl %t340+ %t450 =l add %t449, 44+ call $memcpy(l %t450, l %t448, l 16)+ dbgloc 450+ %t451 =l add %t439, 1+ %t452 =l loadl %t451+ %t453 =l copy 0+ %t454 =w cnel %t452, %t453+ jnz %t454, @lbl7461, @lbl7462+@lbl7461+ dbgloc 451+ %t455 =l add %t439, 1+ %t456 =l loadl %t455+ %t457 =w call $bytes__free_ptr(l %t456)+ jmp @lbl7462+@lbl7462+ jmp @lbl7460+@lbl7459+ jmp @lbl7460+@lbl7460+ jmp @lbl7456+@lbl7456+ dbgloc 455+ %t458 =w call $wire__free_frame(l %t426)+ jmp @lbl7454+@lbl7453+ jmp @lbl7454+@lbl7454+ jmp @lbl7449+@lbl7448+ jmp @lbl7449+@lbl7449+ dbgloc 458+ %t459 =w call $keys__free_key(l %t377)+ jmp @lbl7446+@lbl7445+ jmp @lbl7446+@lbl7446+ jmp @lbl7442+@lbl7442+ dbgloc 461+ %t460 =l loadl %t293+ %t462 =l add %t460, 26+ %t461 =l loadub %t462+ %t463 =w copy 0+ %t464 =w cnew %t461, %t463+ %t465 =w copy %t464+ %t466 =w extub %t465+ storew %t466, %t467+ call $__sx_dbg_keep(l %t467)+ dbgvar "auth_req", "bool", %t467, 1, 7, 461+ dbgloc 462+ %t468 =l loadl %t293+ %t469 =w call $msg__free_hello_ok(l %t468)+ dbgloc 463+ %t470 =w call $bytes__free_owned(l %t126)+ dbgloc 464+ storew %t466, %t471+ jnz %t466, @lbl7467, @lbl7468+@lbl7467+ %t472 =l loadl %t340+ %t474 =l add %t472, 40+ %t473 =l loadub %t474+ %t475 =w ceqw %t473, 0+ storew %t475, %t471+ jmp @lbl7468+@lbl7468+ %t476 =w loadw %t471+ jnz %t476, @lbl7464, @lbl7465+@lbl7464+ dbgloc 465+ %t477 =l loadl %t340+ %t478 =w call $client__free_client(l %t477)+ dbgloc 466+ storel 0, %t479+ call $memcpy(l %__ret, l %t479, l 16)+ ret %__ret+@lbl7465+ dbgloc 468+ %t480 =l loadl %t340+ call $memset(l %t481, w 0, l 16)+ storel 1, %t481+ %t482 =l add %t481, 8+ storel %t480, %t482+ call $memcpy(l %__ret, l %t481, l 16)+ ret %__ret+}++export function w $client__free_client(l %c) {+@start+ %t0 =l alloc8 8+ dbgloc 471+ storel %c, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "c", "ref Client", %t0, 8, 7, 471+ dbgloc 472+ %t1 =l loadl %t0+ %t2 =l add %t1, 0+ %t3 =w call $stream__close(l %t2)+ dbgloc 473+ %t4 =l loadl %t0+ %t5 =l add %t4, 21+ %t6 =l loadl %t5+ %t7 =l copy 0+ %t8 =w cnel %t6, %t7+ jnz %t8, @lbl7469, @lbl7470+@lbl7469+ dbgloc 474+ %t9 =l loadl %t0+ %t10 =l add %t9, 21+ %t11 =l loadl %t10+ %t12 =w call $bytes__free_ptr(l %t11)+ jmp @lbl7470+@lbl7470+ dbgloc 476+ %t13 =l loadl %t0+ %t14 =l add %t13, 44+ %t15 =l loadl %t14+ %t16 =l copy 0+ %t17 =w cnel %t15, %t16+ jnz %t17, @lbl7472, @lbl7473+@lbl7472+ dbgloc 477+ %t18 =l loadl %t0+ %t19 =l add %t18, 44+ %t20 =l loadl %t19+ %t21 =w call $bytes__free_ptr(l %t20)+ jmp @lbl7473+@lbl7473+ dbgloc 479+ %t22 =l loadl %t0+ %t23 =l add %t22, 60+ %t24 =l loadl %t23+ %t25 =l copy 0+ %t26 =w cnel %t24, %t25+ jnz %t26, @lbl7475, @lbl7476+@lbl7475+ dbgloc 480+ %t27 =l loadl %t0+ %t28 =l add %t27, 60+ %t29 =l loadl %t28+ %t30 =w call $bytes__free_ptr(l %t29)+ jmp @lbl7476+@lbl7476+ dbgloc 482+ %t31 =l loadl %t0+ %t32 =l add %t31, 76+ %t33 =l loadl %t32+ %t34 =l copy 0+ %t35 =w cnel %t33, %t34+ jnz %t35, @lbl7478, @lbl7479+@lbl7478+ dbgloc 483+ %t36 =l loadl %t0+ %t37 =l add %t36, 76+ %t38 =l loadl %t37+ %t39 =w call $bytes__free_ptr(l %t38)+ jmp @lbl7479+@lbl7479+ dbgloc 485+ %t41 =l loadl %t0+ %t42 =l copy %t41+ call $free(l %t42)+ %t40 =l copy 0+ ret 0+}++function w $client__clear_error(l %c) {+@start+ %t0 =l alloc8 8+ dbgloc 488+ storel %c, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "c", "ref Client", %t0, 8, 7, 488+ dbgloc 489+ %t1 =l loadl %t0+ %t2 =l add %t1, 76+ %t3 =l loadl %t2+ %t4 =l copy 0+ %t5 =w cnel %t3, %t4+ jnz %t5, @lbl7481, @lbl7482+@lbl7481+ dbgloc 490+ %t6 =l loadl %t0+ %t7 =l add %t6, 76+ %t8 =l loadl %t7+ %t9 =w call $bytes__free_ptr(l %t8)+ dbgloc 491+ %t10 =l call $bytes__empty()+ %t11 =l loadl %t0+ %t12 =l add %t11, 76+ call $memcpy(l %t12, l %t10, l 16)+ jmp @lbl7482+@lbl7482+ ret 0+}++function w $client__set_error(l %c, l %text) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 495+ storel %c, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "c", "ref Client", %t0, 8, 7, 495+ storel %text, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "text", "bytes.Bytes", %t1, 8, 5, 495+ dbgloc 496+ %t2 =l loadl %t0+ %t3 =w call $client__clear_error(l %t2)+ dbgloc 497+ %t4 =l call $bytes__Bytes__dup(l %text)+ %t5 =l loadl %t0+ %t6 =l add %t5, 76+ call $memcpy(l %t6, l %t4, l 16)+ ret 0+}++export function l $client__error_text(l %c) {+@start+ %t0 =l alloc8 8+ dbgloc 501+ storel %c, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "c", "ref Client", %t0, 8, 7, 501+ dbgloc 502+ %t1 =l add %c, 76+ %t2 =l loadl %t1+ %t3 =l copy 0+ %t4 =w ceql %t2, %t3+ jnz %t4, @lbl7484, @lbl7485+@lbl7484+ dbgloc 503+ %t5 =l call $bytes__empty()+ ret %t5+@lbl7485+ dbgloc 505+ %t6 =l add %c, 76+ %t7 =l call $bytes__Bytes__dup(l %t6)+ ret %t7+}++function l $client__error_code_name(w %code) {+@start+ %t0 =l alloc8 8+ dbgloc 508+ storew %code, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "code", "u8", %t0, 1, 7, 508+ dbgloc 509+ %t1 =l extsw %code+ %t2 =l copy 1+ %t4 =l extsw %t1+ %t3 =w ceql %t4, %t2+ jnz %t3, @lbl7487, @lbl7488+@lbl7487+ dbgloc 510+ %t5 =l copy $__str343+ %t6 =l copy 28+ %t7 =l call $bytes__bytes(l %t5, l %t6)+ ret %t7+@lbl7488+ dbgloc 512+ %t8 =l extsw %code+ %t9 =l copy 2+ %t11 =l extsw %t8+ %t10 =w ceql %t11, %t9+ jnz %t10, @lbl7490, @lbl7491+@lbl7490+ dbgloc 513+ %t12 =l copy $__str344+ %t13 =l copy 9+ %t14 =l call $bytes__bytes(l %t12, l %t13)+ ret %t14+@lbl7491+ dbgloc 515+ %t15 =l extsw %code+ %t16 =l copy 3+ %t18 =l extsw %t15+ %t17 =w ceql %t18, %t16+ jnz %t17, @lbl7493, @lbl7494+@lbl7493+ dbgloc 516+ %t19 =l copy $__str200+ %t20 =l copy 16+ %t21 =l call $bytes__bytes(l %t19, l %t20)+ ret %t21+@lbl7494+ dbgloc 518+ %t22 =l extsw %code+ %t23 =l copy 4+ %t25 =l extsw %t22+ %t24 =w ceql %t25, %t23+ jnz %t24, @lbl7496, @lbl7497+@lbl7496+ dbgloc 519+ %t26 =l copy $__str199+ %t27 =l copy 13+ %t28 =l call $bytes__bytes(l %t26, l %t27)+ ret %t28+@lbl7497+ dbgloc 521+ %t29 =l extsw %code+ %t30 =l copy 5+ %t32 =l extsw %t29+ %t31 =w ceql %t32, %t30+ jnz %t31, @lbl7499, @lbl7500+@lbl7499+ dbgloc 522+ %t33 =l copy $__str345+ %t34 =l copy 20+ %t35 =l call $bytes__bytes(l %t33, l %t34)+ ret %t35+@lbl7500+ dbgloc 524+ %t36 =l extsw %code+ %t37 =l copy 6+ %t39 =l extsw %t36+ %t38 =w ceql %t39, %t37+ jnz %t38, @lbl7502, @lbl7503+@lbl7502+ dbgloc 525+ %t40 =l copy $__str346+ %t41 =l copy 22+ %t42 =l call $bytes__bytes(l %t40, l %t41)+ ret %t42+@lbl7503+ dbgloc 527+ %t43 =l extsw %code+ %t44 =l copy 7+ %t46 =l extsw %t43+ %t45 =w ceql %t46, %t44+ jnz %t45, @lbl7505, @lbl7506+@lbl7505+ dbgloc 528+ %t47 =l copy $__str347+ %t48 =l copy 12+ %t49 =l call $bytes__bytes(l %t47, l %t48)+ ret %t49+@lbl7506+ dbgloc 530+ %t50 =l extsw %code+ %t51 =l copy 8+ %t53 =l extsw %t50+ %t52 =w ceql %t53, %t51+ jnz %t52, @lbl7508, @lbl7509+@lbl7508+ dbgloc 531+ %t54 =l copy $__str348+ %t55 =l copy 16+ %t56 =l call $bytes__bytes(l %t54, l %t55)+ ret %t56+@lbl7509+ dbgloc 533+ %t57 =l extsw %code+ %t58 =l copy 9+ %t60 =l extsw %t57+ %t59 =w ceql %t60, %t58+ jnz %t59, @lbl7511, @lbl7512+@lbl7511+ dbgloc 534+ %t61 =l copy $__str349+ %t62 =l copy 21+ %t63 =l call $bytes__bytes(l %t61, l %t62)+ ret %t63+@lbl7512+ dbgloc 536+ %t64 =l extsw %code+ %t65 =l copy 10+ %t67 =l extsw %t64+ %t66 =w ceql %t67, %t65+ jnz %t66, @lbl7514, @lbl7515+@lbl7514+ dbgloc 537+ %t68 =l copy $__str350+ %t69 =l copy 23+ %t70 =l call $bytes__bytes(l %t68, l %t69)+ ret %t70+@lbl7515+ dbgloc 539+ %t71 =l extsw %code+ %t72 =l copy 11+ %t74 =l extsw %t71+ %t73 =w ceql %t74, %t72+ jnz %t73, @lbl7517, @lbl7518+@lbl7517+ dbgloc 540+ %t75 =l copy $__str351+ %t76 =l copy 17+ %t77 =l call $bytes__bytes(l %t75, l %t76)+ ret %t77+@lbl7518+ dbgloc 542+ %t78 =l extsw %code+ %t79 =l copy 12+ %t81 =l extsw %t78+ %t80 =w ceql %t81, %t79+ jnz %t80, @lbl7520, @lbl7521+@lbl7520+ dbgloc 543+ %t82 =l copy $__str352+ %t83 =l copy 21+ %t84 =l call $bytes__bytes(l %t82, l %t83)+ ret %t84+@lbl7521+ dbgloc 545+ %t85 =l copy $__str353+ %t86 =l copy 20+ %t87 =l call $bytes__bytes(l %t85, l %t86)+ ret %t87+}++function w $client__set_error_frame(l %c, l %f) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t6 =l alloc8 8+ %t8 =l alloc8 8+ %t11 =l alloc8 8+ %t21 =l alloc8 8+ dbgloc 548+ storel %c, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "c", "ref Client", %t0, 8, 7, 548+ storel %f, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "f", "wire.Frame", %t1, 8, 5, 548+ dbgloc 549+ %t2 =l add %f, 5+ %t3 =w call $wire__read_error(l %t2)+ %t4 =w copy %t3+ %t5 =w extub %t4+ storew %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "code", "u8", %t6, 1, 7, 549+ dbgloc 550+ %t7 =l call $client__error_code_name(w %t5)+ storel %t7, %t8+ call $__sx_dbg_keep(l %t8)+ dbgvar "name", "bytes.Bytes", %t8, 8, 5, 550+ dbgloc 551+ %t9 =l add %f, 5+ %t10 =l call $wire__error_message(l %t9)+ storel %t10, %t11+ call $__sx_dbg_keep(l %t11)+ dbgvar "message", "bytes.Bytes", %t11, 8, 5, 551+ dbgloc 552+ %t13 =l add %t7, 8+ %t12 =l loadl %t13+ %t15 =l add %t10, 8+ %t14 =l loadl %t15+ %t16 =l add %t12, %t14+ %t17 =l copy 32+ %t18 =l add %t16, %t17+ %t19 =l call $buf__new(l %t18)+ %t20 =l call $malloc(l 24)+ call $memset(l %t20, w 0, l 24)+ call $memcpy(l %t20, l %t19, l 24)+ storel %t20, %t21+ call $__sx_dbg_keep(l %t21)+ dbgvar "b", "buf.Buf", %t21, 8, 5, 552+ dbgloc 553+ %t22 =l loadl %t21+ %t23 =l copy $__str354+ %t24 =l copy 14+ %t25 =l call $bytes__bytes(l %t23, l %t24)+ %t26 =w call $buf__Buf__put_bytes(l %t22, l %t25)+ dbgloc 554+ %t27 =l loadl %t21+ %t28 =w call $buf__Buf__put_bytes(l %t27, l %t7)+ dbgloc 555+ %t30 =l add %t10, 8+ %t29 =l loadl %t30+ %t31 =l copy 0+ %t32 =w csgtl %t29, %t31+ jnz %t32, @lbl7523, @lbl7524+@lbl7523+ dbgloc 556+ %t33 =l loadl %t21+ %t34 =l copy $__str127+ %t35 =l copy 2+ %t36 =l call $bytes__bytes(l %t34, l %t35)+ %t37 =w call $buf__Buf__put_bytes(l %t33, l %t36)+ dbgloc 557+ %t38 =l loadl %t21+ %t39 =w call $buf__Buf__put_bytes(l %t38, l %t10)+ jmp @lbl7524+@lbl7524+ dbgloc 559+ %t40 =l loadl %t0+ %t41 =l loadl %t21+ %t42 =l call $buf__Buf__view(l %t41)+ %t43 =w call $client__set_error(l %t40, l %t42)+ dbgloc 560+ %t44 =l loadl %t21+ %t45 =w call $buf__Buf__free(l %t44)+ dbgloc 561+ %t46 =l loadl %t10+ %t47 =l copy 0+ %t48 =w cnel %t46, %t47+ jnz %t48, @lbl7526, @lbl7527+@lbl7526+ dbgloc 562+ %t49 =w call $bytes__free_owned(l %t10)+ jmp @lbl7527+@lbl7527+ ret 0+}++function w $client__set_error_kind(l %c, l %context, w %kind) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t9 =l alloc8 8+ dbgloc 566+ storel %c, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "c", "ref Client", %t0, 8, 7, 566+ storel %context, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "context", "bytes.Bytes", %t1, 8, 5, 566+ storew %kind, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "kind", "u8", %t2, 1, 7, 566+ dbgloc 567+ %t4 =l add %context, 8+ %t3 =l loadl %t4+ %t5 =l copy 32+ %t6 =l add %t3, %t5+ %t7 =l call $buf__new(l %t6)+ %t8 =l call $malloc(l 24)+ call $memset(l %t8, w 0, l 24)+ call $memcpy(l %t8, l %t7, l 24)+ storel %t8, %t9+ call $__sx_dbg_keep(l %t9)+ dbgvar "b", "buf.Buf", %t9, 8, 5, 567+ dbgloc 568+ %t10 =l loadl %t9+ %t11 =w call $buf__Buf__put_bytes(l %t10, l %context)+ dbgloc 569+ %t12 =l loadl %t9+ %t13 =l copy $__str355+ %t14 =l copy 15+ %t15 =l call $bytes__bytes(l %t13, l %t14)+ %t16 =w call $buf__Buf__put_bytes(l %t12, l %t15)+ dbgloc 570+ %t17 =l loadl %t9+ %t18 =w call $buf__Buf__put_u8(l %t17, w %kind)+ dbgloc 571+ %t19 =l loadl %t9+ %t20 =l copy 41+ %t22 =w copy %t20+ %t21 =w call $buf__Buf__put_u8(l %t19, w %t22)+ dbgloc 572+ %t23 =l loadl %t0+ %t24 =l loadl %t9+ %t25 =l call $buf__Buf__view(l %t24)+ %t26 =w call $client__set_error(l %t23, l %t25)+ dbgloc 573+ %t27 =l loadl %t9+ %t28 =w call $buf__Buf__free(l %t27)+ ret 0+}++function l $client__id_text(l %id) {+@start+ %t0 =l alloc8 8+ %t2 =l alloc8 8+ %t5 =l alloc8 8+ dbgloc 576+ storel %id, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "id", "objid.Id", %t0, 8, 5, 576+ dbgloc 577+ %t1 =l call $objid__Id__hex(l %id)+ storel %t1, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "hex", "ref u8", %t2, 8, 7, 577+ dbgloc 578+ %t3 =l call $bytes__from_cstr(l %t1)+ %t4 =l call $bytes__Bytes__dup(l %t3)+ storel %t4, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "out", "bytes.Bytes", %t5, 8, 5, 578+ dbgloc 579+ %t7 =l copy %t1+ call $free(l %t7)+ %t6 =l copy 0+ dbgloc 580+ ret %t4+}++function w $client__set_error_object(l %c, l %context, l %id) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t4 =l alloc8 8+ %t14 =l alloc8 8+ dbgloc 583+ storel %c, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "c", "ref Client", %t0, 8, 7, 583+ storel %context, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "context", "bytes.Bytes", %t1, 8, 5, 583+ storel %id, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "id", "objid.Id", %t2, 8, 5, 583+ dbgloc 584+ %t3 =l call $client__id_text(l %id)+ storel %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "hex", "bytes.Bytes", %t4, 8, 5, 584+ dbgloc 585+ %t6 =l add %context, 8+ %t5 =l loadl %t6+ %t8 =l add %t3, 8+ %t7 =l loadl %t8+ %t9 =l add %t5, %t7+ %t10 =l copy 8+ %t11 =l add %t9, %t10+ %t12 =l call $buf__new(l %t11)+ %t13 =l call $malloc(l 24)+ call $memset(l %t13, w 0, l 24)+ call $memcpy(l %t13, l %t12, l 24)+ storel %t13, %t14+ call $__sx_dbg_keep(l %t14)+ dbgvar "b", "buf.Buf", %t14, 8, 5, 585+ dbgloc 586+ %t15 =l loadl %t14+ %t16 =w call $buf__Buf__put_bytes(l %t15, l %context)+ dbgloc 587+ %t17 =l loadl %t14+ %t18 =l copy 32+ %t20 =w copy %t18+ %t19 =w call $buf__Buf__put_u8(l %t17, w %t20)+ dbgloc 588+ %t21 =l loadl %t14+ %t22 =w call $buf__Buf__put_bytes(l %t21, l %t3)+ dbgloc 589+ %t23 =l loadl %t0+ %t24 =l loadl %t14+ %t25 =l call $buf__Buf__view(l %t24)+ %t26 =w call $client__set_error(l %t23, l %t25)+ dbgloc 590+ %t27 =l loadl %t14+ %t28 =w call $buf__Buf__free(l %t27)+ dbgloc 591+ %t29 =w call $bytes__free_owned(l %t3)+ ret 0+}++function l $client__request(l %__ret, l %c, w %kind, l %payload) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t7 =l alloc8 8+ %t17 =l alloc8 16+ %t21 =l alloc8 16+ %t22 =l alloc8 8+ %t35 =l alloc8 16+ %t36 =l alloc8 16+ %t43 =l alloc8 16+ dbgloc 594+ storel %c, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "c", "ref Client", %t0, 8, 7, 594+ storew %kind, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "kind", "u8", %t1, 1, 7, 594+ storel %payload, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "payload", "bytes.Bytes", %t2, 8, 5, 594+ dbgloc 595+ %t3 =l call $std__time__unix_now_millis()+ %t4 =l copy 2147483647+ %t5 =l and %t3, %t4+ %t6 =w copy %t5+ storew %t6, %t7+ call $__sx_dbg_keep(l %t7)+ dbgvar "rid", "u32", %t7, 4, 7, 595+ dbgloc 596+ %t8 =l loadl %t0+ %t9 =l add %t8, 0+ %t10 =w call $wire__write_frame(l %t9, w %kind, w %t6, l %payload)+ %t11 =w ceqw %t10, 0+ jnz %t11, @lbl7529, @lbl7530+@lbl7529+ dbgloc 597+ %t12 =l loadl %t0+ %t13 =l copy $__str356+ %t14 =l copy 39+ %t15 =l call $bytes__bytes(l %t13, l %t14)+ %t16 =w call $client__set_error(l %t12, l %t15)+ dbgloc 598+ storel 0, %t17+ call $memcpy(l %__ret, l %t17, l 16)+ ret %__ret+@lbl7530+ dbgloc 600+ %t18 =l loadl %t0+ %t19 =l add %t18, 0+ %t20 =l call $wire__read_frame(l %t21, l %t19)+ storel %t21, %t22+ call $__sx_dbg_keep(l %t22)+ dbgvar "f_opt", "option[Frame]", %t22, 8, 5, 600+ dbgloc 601+ %t23 =l loadl %t21+ %t24 =w cnel %t23, 0+ jnz %t24, @lbl7532, @lbl7533+@lbl7532+ %t26 =l add %t21, 8+ %t25 =l loadl %t26+ dbgloc 603+ %t27 =l loadub %t25+ %t28 =l extsw %t27+ %t29 =l copy 20+ %t31 =l extsw %t28+ %t30 =w ceql %t31, %t29+ jnz %t30, @lbl7535, @lbl7536+@lbl7535+ dbgloc 604+ %t32 =l loadl %t0+ %t33 =w call $client__set_error_frame(l %t32, l %t25)+ dbgloc 605+ %t34 =w call $wire__free_frame(l %t25)+ dbgloc 606+ storel 0, %t35+ call $memcpy(l %__ret, l %t35, l 16)+ ret %__ret+@lbl7536+ dbgloc 608+ call $memset(l %t36, w 0, l 16)+ storel 1, %t36+ %t37 =l add %t36, 8+ storel %t25, %t37+ call $memcpy(l %__ret, l %t36, l 16)+ ret %__ret+@lbl7533+ dbgloc 611+ %t38 =l loadl %t0+ %t39 =l copy $__str357+ %t40 =l copy 45+ %t41 =l call $bytes__bytes(l %t39, l %t40)+ %t42 =w call $client__set_error(l %t38, l %t41)+ dbgloc 612+ storel 0, %t43+ call $memcpy(l %__ret, l %t43, l 16)+ ret %__ret+@lbl7534+ ret 0+}++export function l $client__list_refs(l %__ret, l %c) {+@start+ %t0 =l alloc8 8+ %t5 =l alloc8 16+ %t7 =l alloc8 8+ %t24 =l alloc8 16+ %t27 =l alloc8 16+ %t28 =l alloc8 8+ %t34 =l alloc8 16+ %t36 =l alloc8 16+ dbgloc 617+ storel %c, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "c", "ref Client", %t0, 8, 7, 617+ dbgloc 618+ %t1 =l loadl %t0+ %t2 =l copy 7+ %t3 =l call $bytes__empty()+ %t6 =w copy %t2+ %t4 =l call $client__request(l %t5, l %t1, w %t6, l %t3)+ storel %t5, %t7+ call $__sx_dbg_keep(l %t7)+ dbgvar "f_opt", "option[wire.Frame]", %t7, 8, 5, 618+ dbgloc 619+ %t8 =l loadl %t5+ %t9 =w cnel %t8, 0+ jnz %t9, @lbl7538, @lbl7539+@lbl7538+ %t11 =l add %t5, 8+ %t10 =l loadl %t11+ dbgloc 620+ %t12 =l loadub %t10+ %t13 =l extsw %t12+ %t14 =l copy 8+ %t16 =l extsw %t13+ %t15 =w cnel %t16, %t14+ jnz %t15, @lbl7541, @lbl7542+@lbl7541+ dbgloc 621+ %t17 =l loadl %t0+ %t18 =l copy $__str358+ %t19 =l copy 34+ %t20 =l call $bytes__bytes(l %t18, l %t19)+ %t21 =l loadub %t10+ %t22 =w call $client__set_error_kind(l %t17, l %t20, w %t21)+ dbgloc 622+ %t23 =w call $wire__free_frame(l %t10)+ dbgloc 623+ storel 0, %t24+ call $memcpy(l %__ret, l %t24, l 16)+ ret %__ret+@lbl7542+ dbgloc 625+ %t25 =l add %t10, 5+ %t26 =l call $msg__decode_refs(l %t27, l %t25)+ storel %t27, %t28+ call $__sx_dbg_keep(l %t28)+ dbgvar "dec", "result[list[RefInfo], derr.DecodeError]", %t28, 8, 5, 625+ dbgloc 626+ %t29 =w call $wire__free_frame(l %t10)+ dbgloc 627+ %t30 =l loadl %t27+ %t31 =w ceql %t30, 0+ jnz %t31, @lbl7544, @lbl7545+@lbl7544+ %t33 =l add %t27, 8+ %t32 =l loadl %t33+ dbgloc 628+ call $memset(l %t34, w 0, l 16)+ storel 1, %t34+ %t35 =l add %t34, 8+ storel %t32, %t35+ call $memcpy(l %__ret, l %t34, l 16)+ ret %__ret+@lbl7545+ jmp @lbl7546+@lbl7546+ jmp @lbl7540+@lbl7539+ jmp @lbl7540+@lbl7540+ dbgloc 631+ storel 0, %t36+ call $memcpy(l %__ret, l %t36, l 16)+ ret %__ret+}++export function w $client__negotiate(l %c, l %wants, l %haves) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t4 =l alloc8 8+ %t8 =l alloc8 16+ %t10 =l alloc8 8+ dbgloc 634+ storel %c, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "c", "ref Client", %t0, 8, 7, 634+ storel %wants, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "wants", "list[bytes.Bytes]", %t1, 8, 5, 634+ storel %haves, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "haves", "list[bytes.Bytes]", %t2, 8, 5, 634+ dbgloc 639+ %t3 =l call $msg__encode_negotiate(l %wants, l %haves)+ storel %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "body", "bytes.Bytes", %t4, 8, 5, 639+ dbgloc 640+ %t5 =l loadl %t0+ %t6 =l copy 9+ %t9 =w copy %t6+ %t7 =l call $client__request(l %t8, l %t5, w %t9, l %t3)+ storel %t8, %t10+ call $__sx_dbg_keep(l %t10)+ dbgvar "f_opt", "option[wire.Frame]", %t10, 8, 5, 640+ dbgloc 641+ %t11 =l loadl %t8+ %t12 =w cnel %t11, 0+ jnz %t12, @lbl7547, @lbl7548+@lbl7547+ %t14 =l add %t8, 8+ %t13 =l loadl %t14+ dbgloc 642+ %t15 =l loadub %t13+ %t16 =l extsw %t15+ %t17 =l copy 10+ %t19 =l extsw %t16+ %t18 =w ceql %t19, %t17+ jnz %t18, @lbl7550, @lbl7551+@lbl7550+ dbgloc 643+ %t20 =w call $wire__free_frame(l %t13)+ dbgloc 644+ %t21 =l copy 1+ ret %t21+@lbl7551+ dbgloc 646+ %t22 =l loadl %t0+ %t23 =l copy $__str359+ %t24 =l copy 34+ %t25 =l call $bytes__bytes(l %t23, l %t24)+ %t26 =l loadub %t13+ %t27 =w call $client__set_error_kind(l %t22, l %t25, w %t26)+ dbgloc 647+ %t28 =w call $wire__free_frame(l %t13)+ dbgloc 648+ %t29 =l copy 0+ ret %t29+@lbl7548+ jmp @lbl7549+@lbl7549+ dbgloc 650+ %t30 =l copy 0+ ret %t30+}++function l $client__parse_record(l %__ret, l %data) {+@start+ %t0 =l alloc8 8+ %t5 =l alloc8 16+ %t11 =l alloc8 8+ %t14 =l alloc8 16+ %t19 =l alloc8 8+ %t22 =l alloc8 16+ %t30 =l alloc8 8+ %t33 =l alloc8 16+ %t41 =l alloc8 8+ %t44 =l alloc8 16+ %t49 =l alloc8 8+ %t52 =l alloc8 16+ %t57 =l alloc8 8+ %t60 =l alloc4 1+ %t64 =l alloc8 16+ %t68 =l alloc8 16+ %t73 =l alloc8 8+ %t77 =l alloc8 16+ %t81 =l alloc8 8+ %t94 =l alloc8 16+ %t102 =l alloc8 16+ %t106 =l alloc8 16+ %t107 =l alloc8 8+ %t118 =l alloc8 16+ %t122 =l alloc8 16+ dbgloc 653+ storel %data, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "data", "bytes.Bytes", %t0, 8, 5, 653+ dbgloc 654+ %t2 =l add %data, 8+ %t1 =l loadl %t2+ %t3 =l copy 35+ %t4 =w csltl %t1, %t3+ jnz %t4, @lbl7553, @lbl7554+@lbl7553+ dbgloc 655+ storel 0, %t5+ call $memcpy(l %__ret, l %t5, l 16)+ ret %__ret+@lbl7554+ dbgloc 657+ %t6 =l loadl %data+ %t8 =l add %data, 8+ %t7 =l loadl %t8+ %t9 =l call $reader__new(l %t6, l %t7)+ %t10 =l call $malloc(l 24)+ call $memset(l %t10, w 0, l 24)+ call $memcpy(l %t10, l %t9, l 24)+ storel %t10, %t11+ call $__sx_dbg_keep(l %t11)+ dbgvar "r", "reader.Reader", %t11, 8, 5, 657+ dbgloc 658+ %t12 =l loadl %t11+ %t13 =l call $reader__Reader__read_id(l %t14, l %t12)+ %t15 =l loadl %t14+ %t16 =w ceql %t15, 0+ jnz %t16, @lbl7556, @lbl7557+@lbl7557+ call $memcpy(l %__ret, l %t14, l 16)+ ret %__ret+@lbl7556+ %t18 =l add %t14, 8+ %t17 =l loadl %t18+ storel %t17, %t19+ call $__sx_dbg_keep(l %t19)+ dbgvar "idp", "ref u8", %t19, 8, 7, 658+ dbgloc 659+ %t20 =l loadl %t11+ %t21 =l call $reader__Reader__read_u8(l %t22, l %t20)+ %t23 =l loadl %t22+ %t24 =w ceql %t23, 0+ jnz %t24, @lbl7558, @lbl7559+@lbl7559+ call $memcpy(l %__ret, l %t22, l 16)+ ret %__ret+@lbl7558+ %t26 =l add %t22, 8+ %t25 =w loadw %t26+ %t27 =w copy %t25+ %t28 =w copy %t27+ %t29 =w extub %t28+ storew %t29, %t30+ call $__sx_dbg_keep(l %t30)+ dbgvar "kind", "u8", %t30, 1, 7, 659+ dbgloc 660+ %t31 =l loadl %t11+ %t32 =l call $reader__Reader__read_u8(l %t33, l %t31)+ %t34 =l loadl %t33+ %t35 =w ceql %t34, 0+ jnz %t35, @lbl7560, @lbl7561+@lbl7561+ call $memcpy(l %__ret, l %t33, l 16)+ ret %__ret+@lbl7560+ %t37 =l add %t33, 8+ %t36 =w loadw %t37+ %t38 =w copy %t36+ %t39 =w copy %t38+ %t40 =w extub %t39+ storew %t40, %t41+ call $__sx_dbg_keep(l %t41)+ dbgvar "comp", "u8", %t41, 1, 7, 660+ dbgloc 661+ %t42 =l loadl %t11+ %t43 =l call $reader__Reader__read_varint(l %t44, l %t42)+ %t45 =l loadl %t44+ %t46 =w ceql %t45, 0+ jnz %t46, @lbl7562, @lbl7563+@lbl7563+ call $memcpy(l %__ret, l %t44, l 16)+ ret %__ret+@lbl7562+ %t48 =l add %t44, 8+ %t47 =l loadl %t48+ storel %t47, %t49+ call $__sx_dbg_keep(l %t49)+ dbgvar "raw_len", "u64", %t49, 8, 7, 661+ dbgloc 662+ %t50 =l loadl %t11+ %t51 =l call $reader__Reader__read_varint(l %t52, l %t50)+ %t53 =l loadl %t52+ %t54 =w ceql %t53, 0+ jnz %t54, @lbl7564, @lbl7565+@lbl7565+ call $memcpy(l %__ret, l %t52, l 16)+ ret %__ret+@lbl7564+ %t56 =l add %t52, 8+ %t55 =l loadl %t56+ storel %t55, %t57+ call $__sx_dbg_keep(l %t57)+ dbgvar "stored_len", "u64", %t57, 8, 7, 662+ dbgloc 663+ %t58 =l copy 0+ %t59 =w ceql %t47, %t58+ storew %t59, %t60+ jnz %t59, @lbl7570, @lbl7569+@lbl7569+ %t61 =l copy 67108864+ %t62 =w csgtl %t47, %t61+ storew %t62, %t60+ jmp @lbl7570+@lbl7570+ %t63 =w loadw %t60+ jnz %t63, @lbl7566, @lbl7567+@lbl7566+ dbgloc 664+ storel 0, %t64+ call $memcpy(l %__ret, l %t64, l 16)+ ret %__ret+@lbl7567+ dbgloc 666+ %t65 =l loadl %t11+ %t66 =l copy %t55+ %t67 =l call $reader__Reader__read_raw(l %t68, l %t65, l %t66)+ %t69 =l loadl %t68+ %t70 =w ceql %t69, 0+ jnz %t70, @lbl7571, @lbl7572+@lbl7572+ call $memcpy(l %__ret, l %t68, l 16)+ ret %__ret+@lbl7571+ %t72 =l add %t68, 8+ %t71 =l loadl %t72+ storel %t71, %t73+ call $__sx_dbg_keep(l %t73)+ dbgvar "stored", "bytes.Bytes", %t73, 8, 5, 666+ dbgloc 667+ %t74 =l loadl %t11+ %t75 =w call $reader__Reader__at_end(l %t74)+ %t76 =w ceqw %t75, 0+ jnz %t76, @lbl7573, @lbl7574+@lbl7573+ dbgloc 668+ storel 0, %t77+ call $memcpy(l %__ret, l %t77, l 16)+ ret %__ret+@lbl7574+ dbgloc 670+ %t79 =l copy 32+ %t78 =l call $malloc(l %t79)+ %t80 =l copy %t78+ storel %t80, %t81+ call $__sx_dbg_keep(l %t81)+ dbgvar "idcopy", "ref u8", %t81, 8, 7, 670+ dbgloc 671+ %t83 =l copy %t80+ %t84 =l copy %t17+ %t85 =l copy 32+ call $memcpy(l %t83, l %t84, l %t85)+ %t82 =l copy 0+ dbgloc 672+ %t86 =w copy 0+ %t87 =w ceqw %t40, %t86+ jnz %t87, @lbl7576, @lbl7577+@lbl7576+ dbgloc 673+ %t89 =l add %t71, 8+ %t88 =l loadl %t89+ %t90 =l copy %t47+ %t91 =w cnel %t88, %t90+ jnz %t91, @lbl7579, @lbl7580+@lbl7579+ dbgloc 674+ %t93 =l copy %t80+ call $free(l %t93)+ %t92 =l copy 0+ dbgloc 675+ storel 0, %t94+ call $memcpy(l %__ret, l %t94, l 16)+ ret %__ret+@lbl7580+ dbgloc 677+ %t95 =l call $malloc(l 33)+ %t96 =l add %t95, 0+ %t97 =l copy 32+ %t98 =l call $bytes__bytes(l %t80, l %t97)+ call $memcpy(l %t96, l %t98, l 16)+ %t99 =l add %t95, 16+ storeb %t29, %t99+ %t100 =l add %t95, 17+ %t101 =l call $bytes__Bytes__dup(l %t71)+ call $memcpy(l %t100, l %t101, l 16)+ call $memset(l %t102, w 0, l 16)+ storel 1, %t102+ %t103 =l add %t102, 8+ storel %t95, %t103+ call $memcpy(l %__ret, l %t102, l 16)+ ret %__ret+@lbl7577+ dbgloc 683+ %t104 =l copy %t47+ %t105 =l call $zstd__decompress(l %t106, l %t71, l %t104)+ storel %t106, %t107+ call $__sx_dbg_keep(l %t107)+ dbgvar "dec", "option[bytes.Bytes]", %t107, 8, 5, 683+ dbgloc 684+ %t108 =l loadl %t106+ %t109 =w cnel %t108, 0+ jnz %t109, @lbl7582, @lbl7583+@lbl7582+ %t111 =l add %t106, 8+ %t110 =l loadl %t111+ dbgloc 685+ %t112 =l call $malloc(l 33)+ %t113 =l add %t112, 0+ %t114 =l copy 32+ %t115 =l call $bytes__bytes(l %t80, l %t114)+ call $memcpy(l %t113, l %t115, l 16)+ %t116 =l add %t112, 16+ storeb %t29, %t116+ %t117 =l add %t112, 17+ call $memcpy(l %t117, l %t110, l 16)+ call $memset(l %t118, w 0, l 16)+ storel 1, %t118+ %t119 =l add %t118, 8+ storel %t112, %t119+ call $memcpy(l %__ret, l %t118, l 16)+ ret %__ret+@lbl7583+ jmp @lbl7584+@lbl7584+ dbgloc 691+ %t121 =l copy %t80+ call $free(l %t121)+ %t120 =l copy 0+ dbgloc 692+ storel 0, %t122+ call $memcpy(l %__ret, l %t122, l 16)+ ret %__ret+}++function w $client__receive_stream(l %c, l %w) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t5 =l alloc8 8+ %t10 =l alloc8 8+ %t14 =l alloc8 16+ %t15 =l alloc8 8+ %t16 =l alloc8 37+ %t26 =l alloc8 8+ %t48 =l alloc8 8+ %t56 =l alloc4 1+ %t118 =l alloc8 16+ %t119 =l alloc8 8+ %t130 =l alloc8 8+ dbgloc 695+ storel %c, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "c", "ref Client", %t0, 8, 7, 695+ storel %w, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "w", "ref writer.Writer", %t1, 8, 7, 695+ dbgloc 696+ %t3 =l call $b3__hasher_state_size()+ %t2 =l call $malloc(l %t3)+ %t4 =l copy %t2+ storel %t4, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "hash", "ref ", %t5, 8, 7, 696+ dbgloc 697+ %t6 =w call $b3__hasher_init(l %t4)+ dbgloc 698+ %t7 =l copy 1+ %t8 =w copy %t7+ %t9 =w extub %t8+ storew %t9, %t10+ call $__sx_dbg_keep(l %t10)+ dbgvar "good", "bool", %t10, 1, 7, 698+ dbgloc 699+ jmp @lbl7585+@lbl7585+ jmp @lbl7586+@lbl7586+ dbgloc 700+ %t11 =l loadl %t0+ %t12 =l add %t11, 0+ %t13 =l call $wire__read_frame(l %t14, l %t12)+ storel %t14, %t15+ call $__sx_dbg_keep(l %t15)+ dbgvar "f_opt", "option[Frame]", %t15, 8, 5, 700+ dbgloc 701+ %t17 =l copy 0+ storeb %t17, %t16+ %t19 =l copy 0+ %t20 =l add %t16, 1+ storew %t19, %t20+ %t21 =l add %t16, 5+ %t22 =l call $bytes__empty()+ call $memcpy(l %t21, l %t22, l 16)+ %t23 =l add %t16, 21+ %t24 =l call $bytes__empty()+ call $memcpy(l %t23, l %t24, l 16)+ %t25 =l call $malloc(l 37)+ call $memset(l %t25, w 0, l 37)+ call $memcpy(l %t25, l %t16, l 37)+ storel %t25, %t26+ call $__sx_dbg_keep(l %t26)+ dbgvar "f", "wire.Frame", %t26, 8, 5, 701+ dbgloc 707+ %t27 =l loadl %t14+ %t28 =w cnel %t27, 0+ jnz %t28, @lbl7589, @lbl7590+@lbl7589+ %t30 =l add %t14, 8+ %t29 =l loadl %t30+ dbgloc 709+ storel %t29, %t26+ jmp @lbl7591+@lbl7590+ dbgloc 712+ %t31 =l loadl %t0+ %t32 =l copy $__str360+ %t33 =l copy 38+ %t34 =l call $bytes__bytes(l %t32, l %t33)+ %t35 =w call $client__set_error(l %t31, l %t34)+ dbgloc 713+ %t36 =l copy 0+ %t37 =w copy %t36+ %t38 =w extub %t37+ storew %t38, %t10+ dbgloc 714+ jmp @lbl7588+@lbl7591+ dbgloc 717+ %t39 =l loadl %t26+ %t40 =l loadub %t39+ %t41 =l extsw %t40+ %t42 =l copy 19+ %t44 =l extsw %t41+ %t43 =w ceql %t44, %t42+ jnz %t43, @lbl7592, @lbl7593+@lbl7592+ dbgloc 718+ %t46 =l copy 32+ %t45 =l call $malloc(l %t46)+ %t47 =l copy %t45+ storel %t47, %t48+ call $__sx_dbg_keep(l %t48)+ dbgvar "digest", "ref u8", %t48, 8, 7, 718+ dbgloc 719+ %t49 =w call $b3__hasher_final(l %t4, l %t47)+ dbgloc 720+ %t50 =l loadl %t26+ %t51 =l add %t50, 5+ %t53 =l add %t51, 8+ %t52 =l loadl %t53+ %t54 =l copy 32+ %t55 =w cnel %t52, %t54+ storew %t55, %t56+ jnz %t55, @lbl7599, @lbl7598+@lbl7598+ %t57 =l copy 32+ %t58 =l call $bytes__bytes(l %t47, l %t57)+ %t59 =l loadl %t26+ %t60 =l add %t59, 5+ %t61 =w call $bytes__Bytes__eql(l %t58, l %t60)+ %t62 =w ceqw %t61, 0+ storew %t62, %t56+ jmp @lbl7599+@lbl7599+ %t63 =w loadw %t56+ jnz %t63, @lbl7595, @lbl7596+@lbl7595+ dbgloc 721+ %t64 =l loadl %t0+ %t65 =l copy $__str361+ %t66 =l copy 39+ %t67 =l call $bytes__bytes(l %t65, l %t66)+ %t68 =w call $client__set_error(l %t64, l %t67)+ dbgloc 722+ %t69 =l copy 0+ %t70 =w copy %t69+ %t71 =w extub %t70+ storew %t71, %t10+ jmp @lbl7596+@lbl7596+ dbgloc 724+ %t72 =w call $bytes__free_ptr(l %t47)+ dbgloc 725+ %t73 =l loadl %t26+ %t74 =w call $wire__free_frame(l %t73)+ dbgloc 726+ jmp @lbl7588+@lbl7593+ dbgloc 728+ %t75 =l loadl %t26+ %t76 =l loadub %t75+ %t77 =l extsw %t76+ %t78 =l copy 20+ %t80 =l extsw %t77+ %t79 =w ceql %t80, %t78+ jnz %t79, @lbl7600, @lbl7601+@lbl7600+ dbgloc 729+ %t81 =l loadl %t0+ %t82 =l loadl %t26+ %t83 =w call $client__set_error_frame(l %t81, l %t82)+ dbgloc 730+ %t84 =l loadl %t26+ %t85 =w call $wire__free_frame(l %t84)+ dbgloc 731+ %t86 =l copy 0+ %t87 =w copy %t86+ %t88 =w extub %t87+ storew %t88, %t10+ dbgloc 732+ jmp @lbl7588+@lbl7601+ dbgloc 734+ %t89 =l loadl %t26+ %t90 =l loadub %t89+ %t91 =l extsw %t90+ %t92 =l copy 18+ %t94 =l extsw %t91+ %t93 =w cnel %t94, %t92+ jnz %t93, @lbl7603, @lbl7604+@lbl7603+ dbgloc 735+ %t95 =l loadl %t0+ %t96 =l copy $__str362+ %t97 =l copy 39+ %t98 =l call $bytes__bytes(l %t96, l %t97)+ %t99 =l loadl %t26+ %t100 =l loadub %t99+ %t101 =w call $client__set_error_kind(l %t95, l %t98, w %t100)+ dbgloc 736+ %t102 =l loadl %t26+ %t103 =w call $wire__free_frame(l %t102)+ dbgloc 737+ %t104 =l copy 0+ %t105 =w copy %t104+ %t106 =w extub %t105+ storew %t106, %t10+ dbgloc 738+ jmp @lbl7588+@lbl7604+ dbgloc 740+ %t107 =l loadl %t26+ %t108 =l add %t107, 5+ %t109 =l loadl %t108+ %t110 =l loadl %t26+ %t111 =l add %t110, 5+ %t113 =l add %t111, 8+ %t112 =l loadl %t113+ %t114 =w call $b3__hasher_update(l %t4, l %t109, l %t112)+ dbgloc 741+ %t115 =l loadl %t26+ %t116 =l add %t115, 5+ %t117 =l call $client__parse_record(l %t118, l %t116)+ storel %t118, %t119+ call $__sx_dbg_keep(l %t119)+ dbgvar "pr", "option[IncomingRecord]", %t119, 8, 5, 741+ dbgloc 742+ %t120 =l loadl %t118+ %t121 =w cnel %t120, 0+ jnz %t121, @lbl7606, @lbl7607+@lbl7606+ jmp @lbl7608+@lbl7607+ jmp @lbl7608+@lbl7608+ dbgloc 744+ %t122 =l loadl %t118+ %t123 =w cnel %t122, 0+ jnz %t123, @lbl7609, @lbl7610+@lbl7609+ %t125 =l add %t118, 8+ %t124 =l loadl %t125+ dbgloc 745+ %t127 =l add %t124, 16+ %t126 =l loadub %t127+ %t128 =l add %t124, 17+ %t129 =l call $objid__object_id(w %t126, l %t128)+ storel %t129, %t130+ call $__sx_dbg_keep(l %t130)+ dbgvar "computed", "objid.Id", %t130, 8, 5, 745+ dbgloc 746+ %t131 =l add %t124, 0+ %t132 =l loadl %t131+ %t133 =l call $objid__id(l %t132)+ %t134 =w call $objid__Id__eql(l %t129, l %t133)+ %t135 =w ceqw %t134, 0+ jnz %t135, @lbl7612, @lbl7614+@lbl7612+ dbgloc 747+ %t136 =l copy 0+ %t137 =w copy %t136+ %t138 =w extub %t137+ storew %t138, %t10+ jmp @lbl7613+@lbl7614+ dbgloc 749+ %t139 =l loadl %t1+ %t141 =l add %t124, 16+ %t140 =l loadub %t141+ %t142 =l add %t124, 0+ %t143 =l loadl %t142+ %t144 =l call $objid__id(l %t143)+ %t145 =l add %t124, 17+ %t146 =l call $writer__add_known(l %t139, w %t140, l %t144, l %t145)+ jmp @lbl7613+@lbl7613+ dbgloc 751+ %t147 =l loadl %t129+ %t148 =w call $bytes__free_ptr(l %t147)+ dbgloc 752+ %t149 =l add %t124, 0+ %t150 =l loadl %t149+ %t151 =w call $bytes__free_ptr(l %t150)+ jmp @lbl7611+@lbl7610+ dbgloc 754+ %t152 =l copy 0+ %t153 =w copy %t152+ %t154 =w extub %t153+ storew %t154, %t10+ jmp @lbl7611+@lbl7611+ dbgloc 756+ %t155 =l loadl %t26+ %t156 =w call $wire__free_frame(l %t155)+ dbgloc 757+ %t158 =w loadw %t10+ %t157 =l extsw %t158+ %t159 =w ceqw %t157, 0+ jnz %t159, @lbl7615, @lbl7616+@lbl7615+ dbgloc 758+ jmp @lbl7588+@lbl7616+ jmp @lbl7587+@lbl7587+ jmp @lbl7585+@lbl7588+ dbgloc 761+ %t161 =l copy %t4+ call $free(l %t161)+ %t160 =l copy 0+ dbgloc 762+ %t163 =w loadw %t10+ %t162 =l extsw %t163+ ret %t162+}++function l $client__open_writer(l %__ret, l %repo) {+@start+ %t0 =l alloc8 8+ %t2 =l alloc8 16+ dbgloc 765+ storel %repo, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "repo", "layout.Repo", %t0, 8, 5, 765+ dbgloc 766+ %t1 =l call $writer__open(l %t2, l %repo)+ call $memcpy(l %__ret, l %t2, l 16)+ ret %__ret+}++export function w $client__fetch_skeleton(l %c, l %repo, l %wants) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t4 =l alloc8 8+ %t9 =l alloc8 8+ %t23 =l alloc8 16+ %t24 =l alloc8 8+ %t26 =l alloc8 8+ %t42 =l alloc8 8+ dbgloc 769+ storel %c, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "c", "ref Client", %t0, 8, 7, 769+ storel %repo, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "repo", "layout.Repo", %t1, 8, 5, 769+ storel %wants, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "wants", "list[bytes.Bytes]", %t2, 8, 5, 769+ dbgloc 770+ %t3 =l call $msg__encode_ids(l %wants)+ storel %t3, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "body", "bytes.Bytes", %t4, 8, 5, 770+ dbgloc 771+ %t5 =l call $std__time__unix_now_millis()+ %t6 =l copy 2147483647+ %t7 =l and %t5, %t6+ %t8 =w copy %t7+ storew %t8, %t9+ call $__sx_dbg_keep(l %t9)+ dbgvar "rid", "u32", %t9, 4, 7, 771+ dbgloc 772+ %t10 =l loadl %t0+ %t11 =l add %t10, 0+ %t12 =l copy 11+ %t14 =w copy %t12+ %t13 =w call $wire__write_frame(l %t11, w %t14, w %t8, l %t3)+ %t15 =w ceqw %t13, 0+ jnz %t15, @lbl7618, @lbl7619+@lbl7618+ dbgloc 773+ %t16 =l loadl %t0+ %t17 =l copy $__str363+ %t18 =l copy 42+ %t19 =l call $bytes__bytes(l %t17, l %t18)+ %t20 =w call $client__set_error(l %t16, l %t19)+ dbgloc 774+ %t21 =l copy 0+ ret %t21+@lbl7619+ dbgloc 776+ %t22 =l call $client__open_writer(l %t23, l %repo)+ storel %t23, %t24+ call $__sx_dbg_keep(l %t24)+ dbgvar "w_opt", "option[ref writer.Writer]", %t24, 8, 5, 776+ dbgloc 777+ %t25 =l copy 0+ storel %t25, %t26+ call $__sx_dbg_keep(l %t26)+ dbgvar "w", "ref writer.Writer", %t26, 8, 7, 777+ dbgloc 778+ %t27 =l loadl %t23+ %t28 =w cnel %t27, 0+ jnz %t28, @lbl7621, @lbl7622+@lbl7621+ %t30 =l add %t23, 8+ %t29 =l loadl %t30+ dbgloc 780+ storel %t29, %t26+ jmp @lbl7623+@lbl7622+ dbgloc 783+ %t31 =l loadl %t0+ %t32 =l copy $__str364+ %t33 =l copy 45+ %t34 =l call $bytes__bytes(l %t32, l %t33)+ %t35 =w call $client__set_error(l %t31, l %t34)+ dbgloc 784+ %t36 =l copy 0+ ret %t36+@lbl7623+ dbgloc 787+ %t37 =l loadl %t0+ %t38 =l loadl %t26+ %t39 =w call $client__receive_stream(l %t37, l %t38)+ %t40 =w copy %t39+ %t41 =w extub %t40+ storew %t41, %t42+ call $__sx_dbg_keep(l %t42)+ dbgvar "passed", "bool", %t42, 1, 7, 787+ dbgloc 788+ %t43 =w ceqw %t41, 0+ jnz %t43, @lbl7624, @lbl7625+@lbl7624+ dbgloc 789+ %t44 =l loadl %t26+ %t45 =w call $writer__abort(l %t44)+ dbgloc 790+ %t46 =l copy 0+ ret %t46+@lbl7625+ dbgloc 792+ %t47 =l loadl %t26+ %t48 =w call $writer__finish(l %t47)+ ret %t48+}++export function w $client__get_chunks(l %c, l %repo, l %ids) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t9 =l alloc8 8+ %t14 =l alloc8 8+ %t28 =l alloc8 16+ %t29 =l alloc8 8+ %t31 =l alloc8 8+ %t47 =l alloc8 8+ dbgloc 795+ storel %c, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "c", "ref Client", %t0, 8, 7, 795+ storel %repo, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "repo", "layout.Repo", %t1, 8, 5, 795+ storel %ids, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "ids", "list[bytes.Bytes]", %t2, 8, 5, 795+ dbgloc 796+ %t4 =l call $sxqbe_list_len(l %ids)+ %t5 =l copy 0+ %t6 =w ceql %t4, %t5+ jnz %t6, @lbl7627, @lbl7628+@lbl7627+ dbgloc 797+ %t7 =l copy 1+ ret %t7+@lbl7628+ dbgloc 799+ %t8 =l call $msg__encode_ids(l %ids)+ storel %t8, %t9+ call $__sx_dbg_keep(l %t9)+ dbgvar "body", "bytes.Bytes", %t9, 8, 5, 799+ dbgloc 800+ %t10 =l call $std__time__unix_now_millis()+ %t11 =l copy 2147483647+ %t12 =l and %t10, %t11+ %t13 =w copy %t12+ storew %t13, %t14+ call $__sx_dbg_keep(l %t14)+ dbgvar "rid", "u32", %t14, 4, 7, 800+ dbgloc 801+ %t15 =l loadl %t0+ %t16 =l add %t15, 0+ %t17 =l copy 12+ %t19 =w copy %t17+ %t18 =w call $wire__write_frame(l %t16, w %t19, w %t13, l %t8)+ %t20 =w ceqw %t18, 0+ jnz %t20, @lbl7630, @lbl7631+@lbl7630+ dbgloc 802+ %t21 =l loadl %t0+ %t22 =l copy $__str365+ %t23 =l copy 41+ %t24 =l call $bytes__bytes(l %t22, l %t23)+ %t25 =w call $client__set_error(l %t21, l %t24)+ dbgloc 803+ %t26 =l copy 0+ ret %t26+@lbl7631+ dbgloc 805+ %t27 =l call $client__open_writer(l %t28, l %repo)+ storel %t28, %t29+ call $__sx_dbg_keep(l %t29)+ dbgvar "w_opt", "option[ref writer.Writer]", %t29, 8, 5, 805+ dbgloc 806+ %t30 =l copy 0+ storel %t30, %t31+ call $__sx_dbg_keep(l %t31)+ dbgvar "w", "ref writer.Writer", %t31, 8, 7, 806+ dbgloc 807+ %t32 =l loadl %t28+ %t33 =w cnel %t32, 0+ jnz %t33, @lbl7633, @lbl7634+@lbl7633+ %t35 =l add %t28, 8+ %t34 =l loadl %t35+ dbgloc 809+ storel %t34, %t31+ jmp @lbl7635+@lbl7634+ dbgloc 812+ %t36 =l loadl %t0+ %t37 =l copy $__str366+ %t38 =l copy 44+ %t39 =l call $bytes__bytes(l %t37, l %t38)+ %t40 =w call $client__set_error(l %t36, l %t39)+ dbgloc 813+ %t41 =l copy 0+ ret %t41+@lbl7635+ dbgloc 816+ %t42 =l loadl %t0+ %t43 =l loadl %t31+ %t44 =w call $client__receive_stream(l %t42, l %t43)+ %t45 =w copy %t44+ %t46 =w extub %t45+ storew %t46, %t47+ call $__sx_dbg_keep(l %t47)+ dbgvar "passed", "bool", %t47, 1, 7, 816+ dbgloc 817+ %t48 =w ceqw %t46, 0+ jnz %t48, @lbl7636, @lbl7637+@lbl7636+ dbgloc 818+ %t49 =l loadl %t31+ %t50 =w call $writer__abort(l %t49)+ dbgloc 819+ %t51 =l copy 0+ ret %t51+@lbl7637+ dbgloc 821+ %t52 =l loadl %t31+ %t53 =w call $writer__finish(l %t52)+ ret %t53+}++export function l $client__have_query(l %__ret, l %c, l %ids) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t3 =l alloc8 8+ %t7 =l alloc8 16+ %t9 =l alloc8 8+ %t21 =l alloc8 16+ %t22 =l alloc8 8+ %t28 =l alloc8 16+ %t31 =l alloc8 16+ dbgloc 824+ storel %c, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "c", "ref Client", %t0, 8, 7, 824+ storel %ids, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "ids", "list[bytes.Bytes]", %t1, 8, 5, 824+ dbgloc 825+ %t2 =l call $msg__encode_ids(l %ids)+ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "body", "bytes.Bytes", %t3, 8, 5, 825+ dbgloc 826+ %t4 =l loadl %t0+ %t5 =l copy 13+ %t8 =w copy %t5+ %t6 =l call $client__request(l %t7, l %t4, w %t8, l %t2)+ storel %t7, %t9+ call $__sx_dbg_keep(l %t9)+ dbgvar "f_opt", "option[wire.Frame]", %t9, 8, 5, 826+ dbgloc 827+ %t10 =l loadl %t7+ %t11 =w cnel %t10, 0+ jnz %t11, @lbl7639, @lbl7640+@lbl7639+ %t13 =l add %t7, 8+ %t12 =l loadl %t13+ dbgloc 828+ %t14 =l loadub %t12+ %t15 =l extsw %t14+ %t16 =l copy 14+ %t18 =l extsw %t15+ %t17 =w ceql %t18, %t16+ jnz %t17, @lbl7642, @lbl7644+@lbl7642+ dbgloc 829+ %t19 =l add %t12, 5+ %t20 =l call $msg__decode_bitmap(l %t21, l %t19)+ storel %t21, %t22+ call $__sx_dbg_keep(l %t22)+ dbgvar "dec", "result[list[u64], derr.DecodeError]", %t22, 8, 5, 829+ dbgloc 830+ %t23 =w call $wire__free_frame(l %t12)+ dbgloc 831+ %t24 =l loadl %t21+ %t25 =w ceql %t24, 0+ jnz %t25, @lbl7645, @lbl7646+@lbl7645+ %t27 =l add %t21, 8+ %t26 =l loadl %t27+ dbgloc 832+ call $memset(l %t28, w 0, l 16)+ storel 1, %t28+ %t29 =l add %t28, 8+ storel %t26, %t29+ call $memcpy(l %__ret, l %t28, l 16)+ ret %__ret+@lbl7646+ jmp @lbl7647+@lbl7647+ jmp @lbl7643+@lbl7644+ dbgloc 835+ %t30 =w call $wire__free_frame(l %t12)+ jmp @lbl7643+@lbl7643+ jmp @lbl7641+@lbl7640+ jmp @lbl7641+@lbl7641+ dbgloc 838+ storel 0, %t31+ call $memcpy(l %__ret, l %t31, l 16)+ ret %__ret+}++function w $client__type_of(l %handles, l %id) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 17+ %t10 =l alloc8 8+ dbgloc 841+ storel %handles, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "handles", "list[ref store.Handle]", %t0, 8, 5, 841+ storel %id, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "id", "objid.Id", %t1, 8, 5, 841+ dbgloc 842+ %t3 =l copy 0+ storel %t3, %t2+ %t5 =l copy 0+ %t6 =l add %t2, 8+ storel %t5, %t6+ %t7 =l copy 0+ %t8 =l add %t2, 16+ storeb %t7, %t8+ %t9 =l call $malloc(l 17)+ call $memset(l %t9, w 0, l 17)+ call $memcpy(l %t9, l %t2, l 17)+ storel %t9, %t10+ call $__sx_dbg_keep(l %t10)+ dbgvar "loc", "store.Loc", %t10, 8, 5, 842+ dbgloc 843+ %t11 =l loadl %t10+ %t12 =w call $store__find_handles(l %handles, l %id, l %t11)+ jnz %t12, @lbl7648, @lbl7649+@lbl7648+ dbgloc 844+ %t13 =l loadl %t10+ %t15 =l add %t13, 16+ %t14 =l loadub %t15+ ret %t14+@lbl7649+ dbgloc 846+ %t16 =l copy 0+ %t17 =w copy %t16+ ret %t17+}++function l $client__make_record(l %id, w %kind, l %body) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t9 =l alloc8 8+ %t35 =l alloc8 8+ dbgloc 849+ storel %id, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "id", "objid.Id", %t0, 8, 5, 849+ storew %kind, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "kind", "u8", %t1, 1, 7, 849+ storel %body, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "body", "bytes.Bytes", %t2, 8, 5, 849+ dbgloc 850+ %t4 =l add %body, 8+ %t3 =l loadl %t4+ %t5 =l copy 64+ %t6 =l add %t3, %t5+ %t7 =l call $buf__new(l %t6)+ %t8 =l call $malloc(l 24)+ call $memset(l %t8, w 0, l 24)+ call $memcpy(l %t8, l %t7, l 24)+ storel %t8, %t9+ call $__sx_dbg_keep(l %t9)+ dbgvar "b", "buf.Buf", %t9, 8, 5, 850+ dbgloc 851+ %t10 =l loadl %t9+ %t11 =l loadl %id+ %t12 =l copy 32+ %t13 =w call $buf__Buf__put_raw(l %t10, l %t11, l %t12)+ dbgloc 852+ %t14 =l loadl %t9+ %t15 =w call $buf__Buf__put_u8(l %t14, w %kind)+ dbgloc 853+ %t16 =l loadl %t9+ %t17 =l copy 0+ %t19 =w copy %t17+ %t18 =w call $buf__Buf__put_u8(l %t16, w %t19)+ dbgloc 854+ %t20 =l loadl %t9+ %t22 =l add %body, 8+ %t21 =l loadl %t22+ %t23 =l copy %t21+ %t24 =w call $buf__Buf__put_varint(l %t20, l %t23)+ dbgloc 855+ %t25 =l loadl %t9+ %t27 =l add %body, 8+ %t26 =l loadl %t27+ %t28 =l copy %t26+ %t29 =w call $buf__Buf__put_varint(l %t25, l %t28)+ dbgloc 856+ %t30 =l loadl %t9+ %t31 =w call $buf__Buf__put_bytes(l %t30, l %body)+ dbgloc 857+ %t32 =l loadl %t9+ %t33 =l call $buf__Buf__view(l %t32)+ %t34 =l call $bytes__Bytes__dup(l %t33)+ storel %t34, %t35+ call $__sx_dbg_keep(l %t35)+ dbgvar "out", "bytes.Bytes", %t35, 8, 5, 857+ dbgloc 858+ %t36 =l loadl %t9+ %t37 =w call $buf__Buf__free(l %t36)+ dbgloc 859+ ret %t34+}++export function w $client__push_objects(l %c, l %repo, l %ids) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t7 =l alloc8 8+ %t22 =l alloc8 8+ %t26 =l alloc8 8+ %t31 =l alloc8 8+ %t32 =l alloc8 8+ %t44 =l alloc8 8+ %t57 =l alloc8 16+ %t58 =l alloc8 8+ %t61 =l alloc8 8+ %t76 =l alloc8 8+ %t103 =l alloc8 8+ %t134 =l alloc8 16+ %t135 =l alloc8 8+ %t144 =l alloc8 37+ %t154 =l alloc8 8+ dbgloc 862+ storel %c, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "c", "ref Client", %t0, 8, 7, 862+ storel %repo, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "repo", "layout.Repo", %t1, 8, 5, 862+ storel %ids, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "ids", "list[objid.Id]", %t2, 8, 5, 862+ dbgloc 863+ %t3 =l call $std__time__unix_now_millis()+ %t4 =l copy 2147483647+ %t5 =l and %t3, %t4+ %t6 =w copy %t5+ storew %t6, %t7+ call $__sx_dbg_keep(l %t7)+ dbgvar "rid", "u32", %t7, 4, 7, 863+ dbgloc 864+ %t8 =l loadl %t0+ %t9 =l add %t8, 0+ %t10 =l copy 15+ %t11 =l call $bytes__empty()+ %t13 =w copy %t10+ %t12 =w call $wire__write_frame(l %t9, w %t13, w %t6, l %t11)+ %t14 =w ceqw %t12, 0+ jnz %t14, @lbl7651, @lbl7652+@lbl7651+ dbgloc 865+ %t15 =l loadl %t0+ %t16 =l copy $__str367+ %t17 =l copy 37+ %t18 =l call $bytes__bytes(l %t16, l %t17)+ %t19 =w call $client__set_error(l %t15, l %t18)+ dbgloc 866+ %t20 =l copy 0+ ret %t20+@lbl7652+ dbgloc 868+ %t21 =l call $store__open_all(l %repo)+ storel %t21, %t22+ call $__sx_dbg_keep(l %t22)+ dbgvar "st", "store.Store", %t22, 8, 5, 868+ dbgloc 869+ %t24 =l call $b3__hasher_state_size()+ %t23 =l call $malloc(l %t24)+ %t25 =l copy %t23+ storel %t25, %t26+ call $__sx_dbg_keep(l %t26)+ dbgvar "hash", "ref ", %t26, 8, 7, 869+ dbgloc 870+ %t27 =w call $b3__hasher_init(l %t25)+ dbgloc 871+ %t28 =l copy 1+ %t29 =w copy %t28+ %t30 =w extub %t29+ storew %t30, %t31+ call $__sx_dbg_keep(l %t31)+ dbgvar "good", "bool", %t31, 1, 7, 871+ dbgloc 872+ storel 0, %t32+ %t33 =l call $sxqbe_list_len(l %ids)+@lbl7654+ %t34 =l loadl %t32+ %t35 =w csltl %t34, %t33+ jnz %t35, @lbl7655, @lbl7656+@lbl7655+ %t36 =l call $sxqbe_list_buf(l %ids)+ %t37 =l mul %t34, 8+ %t38 =l add %t36, %t37+ %t39 =l loadl %t38+ dbgloc 873+ %t40 =l loadl %t21+ %t41 =w call $client__type_of(l %t40, l %t39)+ %t42 =w copy %t41+ %t43 =w extub %t42+ storew %t43, %t44+ call $__sx_dbg_keep(l %t44)+ dbgvar "kind", "u8", %t44, 1, 7, 873+ dbgloc 874+ %t45 =w copy 0+ %t46 =w ceqw %t43, %t45+ jnz %t46, @lbl7658, @lbl7659+@lbl7658+ dbgloc 875+ %t47 =l loadl %t0+ %t48 =l copy $__str368+ %t49 =l copy 39+ %t50 =l call $bytes__bytes(l %t48, l %t49)+ %t51 =w call $client__set_error_object(l %t47, l %t50, l %t39)+ dbgloc 876+ %t52 =l copy 0+ %t53 =w copy %t52+ %t54 =w extub %t53+ storew %t54, %t31+ dbgloc 877+ jmp @lbl7656+@lbl7659+ dbgloc 879+ %t55 =l loadl %t21+ %t56 =l call $read__read_body(l %t57, l %t55, l %t39, w %t43)+ storel %t57, %t58+ call $__sx_dbg_keep(l %t58)+ dbgvar "body_opt", "option[bytes.Bytes]", %t58, 8, 5, 879+ dbgloc 880+ %t59 =l call $bytes__empty()+ %t60 =l call $malloc(l 16)+ call $memset(l %t60, w 0, l 16)+ call $memcpy(l %t60, l %t59, l 16)+ storel %t60, %t61+ call $__sx_dbg_keep(l %t61)+ dbgvar "body", "bytes.Bytes", %t61, 8, 5, 880+ dbgloc 881+ %t62 =l loadl %t57+ %t63 =w cnel %t62, 0+ jnz %t63, @lbl7661, @lbl7662+@lbl7661+ %t65 =l add %t57, 8+ %t64 =l loadl %t65+ dbgloc 882+ storel %t64, %t61+ jmp @lbl7663+@lbl7662+ dbgloc 884+ %t66 =l loadl %t0+ %t67 =l copy $__str369+ %t68 =l copy 40+ %t69 =l call $bytes__bytes(l %t67, l %t68)+ %t70 =w call $client__set_error_object(l %t66, l %t69, l %t39)+ dbgloc 885+ %t71 =l copy 0+ %t72 =w copy %t71+ %t73 =w extub %t72+ storew %t73, %t31+ dbgloc 886+ jmp @lbl7656+@lbl7663+ dbgloc 888+ %t74 =l loadl %t61+ %t75 =l call $client__make_record(l %t39, w %t43, l %t74)+ storel %t75, %t76+ call $__sx_dbg_keep(l %t76)+ dbgvar "rec", "bytes.Bytes", %t76, 8, 5, 888+ dbgloc 889+ %t77 =l loadl %t75+ %t79 =l add %t75, 8+ %t78 =l loadl %t79+ %t80 =w call $b3__hasher_update(l %t25, l %t77, l %t78)+ dbgloc 890+ %t81 =l loadl %t0+ %t82 =l add %t81, 0+ %t83 =l copy 18+ %t85 =w copy %t83+ %t84 =w call $wire__write_frame(l %t82, w %t85, w %t6, l %t75)+ %t86 =w ceqw %t84, 0+ jnz %t86, @lbl7664, @lbl7665+@lbl7664+ dbgloc 891+ %t87 =l loadl %t0+ %t88 =l copy $__str370+ %t89 =l copy 39+ %t90 =l call $bytes__bytes(l %t88, l %t89)+ %t91 =w call $client__set_error_object(l %t87, l %t90, l %t39)+ dbgloc 892+ %t92 =l loadl %t61+ %t93 =w call $client__files_free(l %t92)+ dbgloc 893+ %t94 =l copy 0+ %t95 =w copy %t94+ %t96 =w extub %t95+ storew %t96, %t31+ dbgloc 894+ jmp @lbl7656+@lbl7665+ dbgloc 896+ %t97 =l loadl %t61+ %t98 =w call $client__files_free(l %t97)+@lbl7657+ %t99 =l add %t34, 1+ storel %t99, %t32+ jmp @lbl7654+@lbl7656+ dbgloc 898+ %t101 =l copy 32+ %t100 =l call $malloc(l %t101)+ %t102 =l copy %t100+ storel %t102, %t103+ call $__sx_dbg_keep(l %t103)+ dbgvar "digest", "ref u8", %t103, 8, 7, 898+ dbgloc 899+ %t104 =w call $b3__hasher_final(l %t25, l %t102)+ dbgloc 900+ %t106 =w loadw %t31+ %t105 =l extsw %t106+ jnz %t105, @lbl7667, @lbl7669+@lbl7667+ dbgloc 901+ %t107 =l loadl %t0+ %t108 =l add %t107, 0+ %t109 =l copy 19+ %t110 =l copy 32+ %t111 =l call $bytes__bytes(l %t102, l %t110)+ %t113 =w copy %t109+ %t112 =w call $wire__write_frame(l %t108, w %t113, w %t6, l %t111)+ %t114 =w ceqw %t112, 0+ jnz %t114, @lbl7670, @lbl7671+@lbl7670+ dbgloc 902+ %t115 =l loadl %t0+ %t116 =l copy $__str371+ %t117 =l copy 39+ %t118 =l call $bytes__bytes(l %t116, l %t117)+ %t119 =w call $client__set_error(l %t115, l %t118)+ dbgloc 903+ %t120 =l copy 0+ %t121 =w copy %t120+ %t122 =w extub %t121+ storew %t122, %t31+ jmp @lbl7671+@lbl7671+ jmp @lbl7668+@lbl7669+ dbgloc 906+ %t123 =w call $bytes__free_ptr(l %t102)+ jmp @lbl7668+@lbl7668+ dbgloc 908+ %t125 =l copy %t25+ call $free(l %t125)+ %t124 =l copy 0+ dbgloc 909+ %t126 =w call $store__close(l %t21)+ dbgloc 910+ %t128 =w loadw %t31+ %t127 =l extsw %t128+ %t129 =w ceqw %t127, 0+ jnz %t129, @lbl7673, @lbl7674+@lbl7673+ dbgloc 911+ %t130 =l copy 0+ ret %t130+@lbl7674+ dbgloc 913+ %t131 =l loadl %t0+ %t132 =l add %t131, 0+ %t133 =l call $wire__read_frame(l %t134, l %t132)+ storel %t134, %t135+ call $__sx_dbg_keep(l %t135)+ dbgvar "ack", "option[Frame]", %t135, 8, 5, 913+ dbgloc 914+ %t136 =l loadl %t134+ %t137 =w cnel %t136, 0+ jnz %t137, @lbl7676, @lbl7677+@lbl7676+ jmp @lbl7678+@lbl7677+ dbgloc 915+ %t138 =l loadl %t0+ %t139 =l copy $__str372+ %t140 =l copy 58+ %t141 =l call $bytes__bytes(l %t139, l %t140)+ %t142 =w call $client__set_error(l %t138, l %t141)+ dbgloc 916+ %t143 =l copy 0+ ret %t143+@lbl7678+ dbgloc 918+ %t145 =l copy 0+ storeb %t145, %t144+ %t147 =l copy 0+ %t148 =l add %t144, 1+ storew %t147, %t148+ %t149 =l add %t144, 5+ %t150 =l call $bytes__empty()+ call $memcpy(l %t149, l %t150, l 16)+ %t151 =l add %t144, 21+ %t152 =l call $bytes__empty()+ call $memcpy(l %t151, l %t152, l 16)+ %t153 =l call $malloc(l 37)+ call $memset(l %t153, w 0, l 37)+ call $memcpy(l %t153, l %t144, l 37)+ storel %t153, %t154+ call $__sx_dbg_keep(l %t154)+ dbgvar "f", "wire.Frame", %t154, 8, 5, 918+ dbgloc 924+ %t155 =l loadl %t134+ %t156 =w cnel %t155, 0+ jnz %t156, @lbl7679, @lbl7680+@lbl7679+ %t158 =l add %t134, 8+ %t157 =l loadl %t158+ dbgloc 926+ storel %t157, %t154+ jmp @lbl7681+@lbl7680+ dbgloc 929+ %t159 =l copy 0+ ret %t159+@lbl7681+ dbgloc 932+ %t160 =l loadl %t154+ %t161 =l loadub %t160+ %t162 =l extsw %t161+ %t163 =l copy 19+ %t165 =l extsw %t162+ %t164 =w ceql %t165, %t163+ jnz %t164, @lbl7682, @lbl7683+@lbl7682+ dbgloc 933+ %t166 =l loadl %t154+ %t167 =w call $wire__free_frame(l %t166)+ dbgloc 934+ %t168 =l copy 1+ ret %t168+@lbl7683+ dbgloc 936+ %t169 =l loadl %t154+ %t170 =l loadub %t169+ %t171 =l extsw %t170+ %t172 =l copy 20+ %t174 =l extsw %t171+ %t173 =w ceql %t174, %t172+ jnz %t173, @lbl7685, @lbl7686+@lbl7685+ dbgloc 937+ %t175 =l loadl %t0+ %t176 =l loadl %t154+ %t177 =w call $client__set_error_frame(l %t175, l %t176)+ dbgloc 938+ %t178 =l loadl %t154+ %t179 =w call $wire__free_frame(l %t178)+ dbgloc 939+ %t180 =l copy 0+ ret %t180+@lbl7686+ dbgloc 941+ %t181 =l loadl %t0+ %t182 =l copy $__str373+ %t183 =l copy 34+ %t184 =l call $bytes__bytes(l %t182, l %t183)+ %t185 =l loadl %t154+ %t186 =l loadub %t185+ %t187 =w call $client__set_error_kind(l %t181, l %t184, w %t186)+ dbgloc 942+ %t188 =l loadl %t154+ %t189 =w call $wire__free_frame(l %t188)+ dbgloc 943+ %t190 =l copy 0+ ret %t190+}++function w $client__files_free(l %b) {+@start+ %t0 =l alloc8 8+ dbgloc 946+ storel %b, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "b", "bytes.Bytes", %t0, 8, 5, 946+ dbgloc 947+ %t1 =l loadl %b+ %t2 =l copy 0+ %t3 =w cnel %t1, %t2+ jnz %t3, @lbl7688, @lbl7689+@lbl7688+ dbgloc 948+ %t4 =w call $bytes__free_owned(l %b)+ jmp @lbl7689+@lbl7689+ ret 0+}++export function w $client__update_refs(l %c, l %updates) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t3 =l alloc8 8+ %t7 =l alloc8 16+ %t9 =l alloc8 8+ dbgloc 952+ storel %c, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "c", "ref Client", %t0, 8, 7, 952+ storel %updates, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "updates", "list[msg.UpdateRef]", %t1, 8, 5, 952+ dbgloc 953+ %t2 =l call $msg__encode_update_refs(l %updates)+ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "body", "bytes.Bytes", %t3, 8, 5, 953+ dbgloc 954+ %t4 =l loadl %t0+ %t5 =l copy 16+ %t8 =w copy %t5+ %t6 =l call $client__request(l %t7, l %t4, w %t8, l %t2)+ storel %t7, %t9+ call $__sx_dbg_keep(l %t9)+ dbgvar "f_opt", "option[wire.Frame]", %t9, 8, 5, 954+ dbgloc 955+ %t10 =l loadl %t7+ %t11 =w cnel %t10, 0+ jnz %t11, @lbl7691, @lbl7692+@lbl7691+ %t13 =l add %t7, 8+ %t12 =l loadl %t13+ dbgloc 956+ %t14 =l loadub %t12+ %t15 =l extsw %t14+ %t16 =l copy 17+ %t18 =l extsw %t15+ %t17 =w ceql %t18, %t16+ jnz %t17, @lbl7694, @lbl7695+@lbl7694+ dbgloc 957+ %t19 =w call $wire__free_frame(l %t12)+ dbgloc 958+ %t20 =l copy 1+ ret %t20+@lbl7695+ dbgloc 960+ %t21 =l loadl %t0+ %t22 =l copy $__str374+ %t23 =l copy 33+ %t24 =l call $bytes__bytes(l %t22, l %t23)+ %t25 =l loadub %t12+ %t26 =w call $client__set_error_kind(l %t21, l %t24, w %t25)+ dbgloc 961+ %t27 =w call $wire__free_frame(l %t12)+ dbgloc 962+ %t28 =l copy 0+ ret %t28+@lbl7692+ jmp @lbl7693+@lbl7693+ dbgloc 964+ %t29 =l copy 0+ ret %t29+}++export function l $client__whoami(l %__ret, l %url, l %key_name, l %repo_name) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t5 =l alloc8 16+ dbgloc 967+ storel %url, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "url", "bytes.Bytes", %t0, 8, 5, 967+ storel %key_name, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "key_name", "bytes.Bytes", %t1, 8, 5, 967+ storel %repo_name, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "repo_name", "bytes.Bytes", %t2, 8, 5, 967+ dbgloc 972+ %t3 =l call $bytes__empty()+ %t4 =l call $client__whoami_pinned(l %t5, l %url, l %key_name, l %repo_name, l %t3)+ call $memcpy(l %__ret, l %t5, l 16)+ ret %__ret+}++export function l $client__whoami_pinned(l %__ret, l %url, l %key_name, l %repo_name, l %tls_pin) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t3 =l alloc8 8+ %t5 =l alloc8 16+ %t6 =l alloc8 8+ %t8 =l alloc8 8+ %t13 =l alloc8 16+ %t18 =l alloc8 16+ %t20 =l alloc8 8+ %t37 =l alloc8 8+ %t40 =l alloc8 16+ %t48 =l alloc8 8+ %t52 =l alloc8 16+ %t57 =l alloc8 8+ %t58 =l alloc8 17+ %t65 =l alloc8 8+ %t69 =l alloc8 16+ %t74 =l alloc8 16+ dbgloc 975+ storel %url, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "url", "bytes.Bytes", %t0, 8, 5, 975+ storel %key_name, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "key_name", "bytes.Bytes", %t1, 8, 5, 975+ storel %repo_name, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "repo_name", "bytes.Bytes", %t2, 8, 5, 975+ storel %tls_pin, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "tls_pin", "bytes.Bytes", %t3, 8, 5, 975+ dbgloc 981+ %t4 =l call $client__connect_pinned(l %t5, l %url, l %key_name, l %repo_name, l %tls_pin)+ storel %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "c_opt", "option[Client]", %t6, 8, 5, 981+ dbgloc 982+ %t7 =l copy 0+ storel %t7, %t8+ call $__sx_dbg_keep(l %t8)+ dbgvar "c", "ref Client", %t8, 8, 7, 982+ dbgloc 983+ %t9 =l loadl %t5+ %t10 =w cnel %t9, 0+ jnz %t10, @lbl7697, @lbl7698+@lbl7697+ %t12 =l add %t5, 8+ %t11 =l loadl %t12+ dbgloc 985+ storel %t11, %t8+ jmp @lbl7699+@lbl7698+ dbgloc 988+ storel 0, %t13+ call $memcpy(l %__ret, l %t13, l 16)+ ret %__ret+@lbl7699+ dbgloc 991+ %t14 =l loadl %t8+ %t15 =l copy 5+ %t16 =l call $bytes__empty()+ %t19 =w copy %t15+ %t17 =l call $client__request(l %t18, l %t14, w %t19, l %t16)+ storel %t18, %t20+ call $__sx_dbg_keep(l %t20)+ dbgvar "f_opt", "option[wire.Frame]", %t20, 8, 5, 991+ dbgloc 992+ %t21 =l loadl %t18+ %t22 =w cnel %t21, 0+ jnz %t22, @lbl7700, @lbl7701+@lbl7700+ %t24 =l add %t18, 8+ %t23 =l loadl %t24+ dbgloc 993+ %t25 =l loadub %t23+ %t26 =l extsw %t25+ %t27 =l copy 6+ %t29 =l extsw %t26+ %t28 =w ceql %t29, %t27+ jnz %t28, @lbl7703, @lbl7704+@lbl7703+ dbgloc 994+ %t30 =l add %t23, 5+ %t31 =l loadl %t30+ %t32 =l add %t23, 5+ %t34 =l add %t32, 8+ %t33 =l loadl %t34+ %t35 =l call $reader__new(l %t31, l %t33)+ %t36 =l call $malloc(l 24)+ call $memset(l %t36, w 0, l 24)+ call $memcpy(l %t36, l %t35, l 24)+ storel %t36, %t37+ call $__sx_dbg_keep(l %t37)+ dbgvar "r", "reader.Reader", %t37, 8, 5, 994+ dbgloc 995+ %t38 =l loadl %t37+ %t39 =l call $reader__Reader__read_u8(l %t40, l %t38)+ %t41 =l loadl %t40+ %t42 =w ceql %t41, 0+ jnz %t42, @lbl7706, @lbl7707+@lbl7707+ call $memcpy(l %__ret, l %t40, l 16)+ ret %__ret+@lbl7706+ %t44 =l add %t40, 8+ %t43 =w loadw %t44+ %t45 =w copy %t43+ %t46 =w copy %t45+ %t47 =w extub %t46+ storew %t47, %t48+ call $__sx_dbg_keep(l %t48)+ dbgvar "role", "u8", %t48, 1, 7, 995+ dbgloc 996+ %t49 =l loadl %t37+ %t50 =l copy 64+ %t51 =l call $reader__Reader__read_bytes(l %t52, l %t49, l %t50)+ %t53 =l loadl %t52+ %t54 =w ceql %t53, 0+ jnz %t54, @lbl7708, @lbl7709+@lbl7709+ call $memcpy(l %__ret, l %t52, l 16)+ ret %__ret+@lbl7708+ %t56 =l add %t52, 8+ %t55 =l loadl %t56+ storel %t55, %t57+ call $__sx_dbg_keep(l %t57)+ dbgvar "fp", "bytes.Bytes", %t57, 8, 5, 996+ dbgloc 997+ storeb %t47, %t58+ %t60 =l add %t58, 1+ %t61 =l call $bytes__Bytes__dup(l %t55)+ call $memcpy(l %t60, l %t61, l 16)+ %t63 =l copy 0+ %t64 =w cnel %t58, 0+ jnz %t64, @lbl7710, @lbl7711+@lbl7710+ %t62 =l call $malloc(l 17)+ call $memset(l %t62, w 0, l 17)+ call $memcpy(l %t62, l %t58, l 17)+ %t63 =l copy %t62+@lbl7711+ storel %t63, %t65+ call $__sx_dbg_keep(l %t65)+ dbgvar "out", "WhoAmI", %t65, 8, 5, 997+ dbgloc 1001+ %t66 =w call $wire__free_frame(l %t23)+ dbgloc 1002+ %t67 =l loadl %t8+ %t68 =w call $client__free_client(l %t67)+ dbgloc 1003+ call $memset(l %t69, w 0, l 16)+ storel 1, %t69+ %t70 =l add %t69, 8+ storel %t63, %t70+ call $memcpy(l %__ret, l %t69, l 16)+ ret %__ret+@lbl7704+ dbgloc 1005+ %t71 =w call $wire__free_frame(l %t23)+ jmp @lbl7702+@lbl7701+ jmp @lbl7702+@lbl7702+ dbgloc 1007+ %t72 =l loadl %t8+ %t73 =w call $client__free_client(l %t72)+ dbgloc 1008+ storel 0, %t74+ call $memcpy(l %__ret, l %t74, l 16)+ ret %__ret+}++export function l $client__url_repo_name(l %url) {+@start+ %t0 =l alloc8 8+ %t2 =l alloc8 16+ %t3 =l alloc8 8+ %t4 =l alloc8 44+ %t16 =l alloc8 8+ %t24 =l alloc8 8+ dbgloc 1012+ storel %url, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "url", "bytes.Bytes", %t0, 8, 5, 1012+ dbgloc 1013+ %t1 =l call $client__parse_url(l %t2, l %url)+ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "u_opt", "option[Url]", %t3, 8, 5, 1013+ dbgloc 1014+ %t5 =l copy 0+ storew %t5, %t4+ %t7 =l add %t4, 4+ %t8 =l call $bytes__empty()+ call $memcpy(l %t7, l %t8, l 16)+ %t9 =l copy 0+ %t10 =l add %t4, 20+ storew %t9, %t10+ %t11 =l add %t4, 24+ %t12 =l call $bytes__empty()+ call $memcpy(l %t11, l %t12, l 16)+ %t13 =l copy 0+ %t14 =l add %t4, 40+ storew %t13, %t14+ %t15 =l call $malloc(l 44)+ call $memset(l %t15, w 0, l 44)+ call $memcpy(l %t15, l %t4, l 44)+ storel %t15, %t16+ call $__sx_dbg_keep(l %t16)+ dbgvar "u", "Url", %t16, 8, 5, 1014+ dbgloc 1015+ %t17 =l loadl %t2+ %t18 =w cnel %t17, 0+ jnz %t18, @lbl7712, @lbl7713+@lbl7712+ %t20 =l add %t2, 8+ %t19 =l loadl %t20+ dbgloc 1017+ storel %t19, %t16+ jmp @lbl7714+@lbl7713+ dbgloc 1020+ %t21 =l call $bytes__empty()+ ret %t21+@lbl7714+ dbgloc 1023+ %t22 =l call $bytes__empty()+ %t23 =l call $malloc(l 16)+ call $memset(l %t23, w 0, l 16)+ call $memcpy(l %t23, l %t22, l 16)+ storel %t23, %t24+ call $__sx_dbg_keep(l %t24)+ dbgvar "out", "bytes.Bytes", %t24, 8, 5, 1023+ dbgloc 1024+ %t25 =l loadl %t16+ %t26 =l loadub %t25+ jnz %t26, @lbl7715, @lbl7716+@lbl7715+ dbgloc 1025+ %t27 =l loadl %t16+ %t28 =l add %t27, 24+ %t29 =l call $bytes__Bytes__dup(l %t28)+ storel %t29, %t24+ jmp @lbl7716+@lbl7716+ dbgloc 1027+ %t30 =l loadl %t16+ %t31 =l add %t30, 4+ %t32 =l loadl %t31+ %t33 =l copy 0+ %t34 =w cnel %t32, %t33+ jnz %t34, @lbl7718, @lbl7719+@lbl7718+ dbgloc 1028+ %t35 =l loadl %t16+ %t36 =l add %t35, 4+ %t37 =l loadl %t36+ %t38 =w call $bytes__free_ptr(l %t37)+ jmp @lbl7719+@lbl7719+ dbgloc 1030+ %t39 =l loadl %t16+ %t40 =l add %t39, 24+ %t41 =l loadl %t40+ %t42 =l copy 0+ %t43 =w cnel %t41, %t42+ jnz %t43, @lbl7721, @lbl7722+@lbl7721+ dbgloc 1031+ %t44 =l loadl %t16+ %t45 =l add %t44, 24+ %t46 =l loadl %t45+ %t47 =w call $bytes__free_ptr(l %t46)+ jmp @lbl7722+@lbl7722+ dbgloc 1033+ %t48 =l loadl %t24+ ret %t48+}++dbgfile "src/protocol/promisor.sx"+function l $promisor__key_for(l %remote, l %field) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t13 =l alloc8 8+ dbgloc 11+ storel %remote, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "remote", "bytes.Bytes", %t0, 8, 5, 11+ storel %field, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "field", "bytes.Bytes", %t1, 8, 5, 11+ dbgloc 12+ %t3 =l copy 7+ %t5 =l add %remote, 8+ %t4 =l loadl %t5+ %t6 =l add %t3, %t4+ %t7 =l copy 1+ %t8 =l add %t6, %t7+ %t10 =l add %field, 8+ %t9 =l loadl %t10+ %t11 =l add %t8, %t9+ %t2 =l call $malloc(l %t11)+ %t12 =l copy %t2+ storel %t12, %t13+ call $__sx_dbg_keep(l %t13)+ dbgvar "out", "ref u8", %t13, 8, 7, 12+ dbgloc 13+ %t15 =l copy %t12+ %t16 =l copy $__str375+ %t17 =l copy %t16+ %t18 =l copy 7+ call $memcpy(l %t15, l %t17, l %t18)+ %t14 =l copy 0+ dbgloc 14+ %t21 =l copy 7+ %t20 =l add %t12, %t21+ %t22 =l copy %t20+ %t23 =l loadl %remote+ %t24 =l copy %t23+ %t26 =l add %remote, 8+ %t25 =l loadl %t26+ call $memcpy(l %t22, l %t24, l %t25)+ %t19 =l copy 0+ dbgloc 15+ %t29 =l copy 7+ %t31 =l add %remote, 8+ %t30 =l loadl %t31+ %t32 =l add %t29, %t30+ %t33 =l copy %t32+ %t28 =l add %t12, %t33+ %t34 =l copy 46+ storeb %t34, %t28+ %t27 =l copy 0+ dbgloc 16+ %t37 =l copy 8+ %t39 =l add %remote, 8+ %t38 =l loadl %t39+ %t40 =l add %t37, %t38+ %t41 =l copy %t40+ %t36 =l add %t12, %t41+ %t42 =l copy %t36+ %t43 =l loadl %field+ %t44 =l copy %t43+ %t46 =l add %field, 8+ %t45 =l loadl %t46+ call $memcpy(l %t42, l %t44, l %t45)+ %t35 =l copy 0+ dbgloc 17+ %t47 =l copy 7+ %t49 =l add %remote, 8+ %t48 =l loadl %t49+ %t50 =l add %t47, %t48+ %t51 =l copy 1+ %t52 =l add %t50, %t51+ %t54 =l add %field, 8+ %t53 =l loadl %t54+ %t55 =l add %t52, %t53+ %t56 =l call $bytes__bytes(l %t12, l %t55)+ ret %t56+}++data $promisor__active = { w 0 }+data $promisor__repo_ref = { l 0 }+data $promisor__remote_ref = { l 0 }+export function w $promisor__configure(l %repo, l %remote) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ dbgloc 24+ storel %repo, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "repo", "layout.Repo", %t0, 8, 5, 24+ storel %remote, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "remote", "bytes.Bytes", %t1, 8, 5, 24+ dbgloc 25+ %t3 =w loadw $promisor__active+ %t2 =l extsw %t3+ jnz %t2, @lbl7724, @lbl7725+@lbl7724+ dbgloc 26+ %t4 =l loadl $promisor__repo_ref+ %t5 =w call $layout__free_repo(l %t4)+ dbgloc 27+ %t6 =l loadl $promisor__remote_ref+ %t7 =w call $bytes__free_owned(l %t6)+ jmp @lbl7725+@lbl7725+ dbgloc 29+ %t8 =l add %repo, 0+ %t9 =l call $bytes__Bytes__dup(l %t8)+ %t10 =l loadl $promisor__repo_ref+ call $memcpy(l %t10, l %t9, l 16)+ dbgloc 30+ %t11 =l call $bytes__Bytes__dup(l %remote)+ storel %t11, $promisor__remote_ref+ dbgloc 31+ %t12 =l copy 1+ %t13 =w copy %t12+ %t14 =w extub %t13+ storew %t14, $promisor__active+ ret 0+}++export function w $promisor__is_active() {+@start+ dbgloc 34+ dbgloc 35+ %t1 =w loadw $promisor__active+ %t0 =l extsw %t1+ ret %t0+}++function l $promisor__find_sub(l %hay, l %needle) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t10 =l alloc8 8+ dbgloc 38+ storel %hay, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "hay", "bytes.Bytes", %t0, 8, 5, 38+ storel %needle, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "needle", "bytes.Bytes", %t1, 8, 5, 38+ dbgloc 39+ %t3 =l add %needle, 8+ %t2 =l loadl %t3+ %t5 =l add %hay, 8+ %t4 =l loadl %t5+ %t6 =w csgtl %t2, %t4+ jnz %t6, @lbl7727, @lbl7728+@lbl7727+ dbgloc 40+ %t7 =l copy 1+ %t8 =l neg %t7+ ret %t8+@lbl7728+ dbgloc 42+ %t9 =l copy 0+ storel %t9, %t10+ call $__sx_dbg_keep(l %t10)+ dbgvar "i", "usize", %t10, 8, 5, 42+ dbgloc 43+ jmp @lbl7730+@lbl7730+ %t11 =l loadl %t10+ %t13 =l add %hay, 8+ %t12 =l loadl %t13+ %t15 =l add %needle, 8+ %t14 =l loadl %t15+ %t16 =l sub %t12, %t14+ %t17 =w cslel %t11, %t16+ jnz %t17, @lbl7731, @lbl7733+@lbl7731+ dbgloc 44+ %t18 =l loadl %t10+ %t19 =l loadl %t10+ %t21 =l add %needle, 8+ %t20 =l loadl %t21+ %t22 =l add %t19, %t20+ %t23 =l call $bytes__Bytes__slice(l %hay, l %t18, l %t22)+ %t24 =w call $bytes__Bytes__eql(l %t23, l %needle)+ jnz %t24, @lbl7734, @lbl7735+@lbl7734+ dbgloc 45+ %t25 =l loadl %t10+ %t26 =l copy %t25+ ret %t26+@lbl7735+ dbgloc 47+ %t27 =l loadl %t10+ %t28 =l add %t27, 1+ storel %t28, %t10+ jmp @lbl7732+@lbl7732+ jmp @lbl7730+@lbl7733+ dbgloc 49+ %t29 =l copy 1+ %t30 =l neg %t29+ ret %t30+}++export function w $promisor__ensure(l %handles) {+@start+ %t0 =l alloc8 8+ %t3 =l alloc4 1+ %t11 =l alloc8 8+ %t18 =l alloc8 8+ %t22 =l alloc8 8+ %t24 =l alloc8 8+ %t30 =l alloc8 8+ %t31 =l alloc8 16+ %t37 =l alloc8 8+ %t41 =l alloc8 8+ %t43 =l alloc8 16+ %t44 =l alloc8 8+ dbgloc 53+ storel %handles, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "handles", "list[ref store.Handle]", %t0, 8, 5, 53+ dbgloc 54+ %t2 =w loadw $promisor__active+ %t1 =l extsw %t2+ storew %t1, %t3+ jnz %t1, @lbl7741, @lbl7740+@lbl7740+ %t5 =l call $sxqbe_list_len(l %handles)+ %t6 =l copy 0+ %t7 =w ceql %t5, %t6+ storew %t7, %t3+ jmp @lbl7741+@lbl7741+ %t8 =w loadw %t3+ jnz %t8, @lbl7737, @lbl7738+@lbl7737+ dbgloc 55+ ret 0+@lbl7738+ dbgloc 57+ %t9 =l copy 0+ %t10 =l call $store__handle_list_at(l %handles, l %t9)+ storel %t10, %t11+ call $__sx_dbg_keep(l %t11)+ dbgvar "h", "ref Handle", %t11, 8, 7, 57+ dbgloc 58+ %t12 =l add %t10, 0+ %t13 =l loadl %t12+ %t14 =l add %t10, 0+ %t16 =l add %t14, 8+ %t15 =l loadl %t16+ %t17 =l call $bytes__bytes(l %t13, l %t15)+ storel %t17, %t18+ call $__sx_dbg_keep(l %t18)+ dbgvar "path_b", "bytes.Bytes", %t18, 8, 5, 58+ dbgloc 59+ %t19 =l copy $__str376+ %t20 =l copy 20+ %t21 =l call $bytes__bytes(l %t19, l %t20)+ storel %t21, %t22+ call $__sx_dbg_keep(l %t22)+ dbgvar "marker", "bytes.Bytes", %t22, 8, 5, 59+ dbgloc 60+ %t23 =l call $promisor__find_sub(l %t17, l %t21)+ storel %t23, %t24+ call $__sx_dbg_keep(l %t24)+ dbgvar "at", "i64", %t24, 8, 5, 60+ dbgloc 61+ %t25 =l copy 0+ %t26 =w cslel %t23, %t25+ jnz %t26, @lbl7742, @lbl7743+@lbl7742+ dbgloc 62+ ret 0+@lbl7743+ dbgloc 64+ %t27 =l copy 0+ %t28 =l copy %t23+ %t29 =l call $bytes__Bytes__slice(l %t17, l %t27, l %t28)+ storel %t29, %t30+ call $__sx_dbg_keep(l %t30)+ dbgvar "root_b", "bytes.Bytes", %t30, 8, 5, 64+ dbgloc 65+ %t32 =l add %t31, 0+ %t33 =l call $bytes__Bytes__dup(l %t29)+ call $memcpy(l %t32, l %t33, l 16)+ %t35 =l copy 0+ %t36 =w cnel %t31, 0+ jnz %t36, @lbl7745, @lbl7746+@lbl7745+ %t34 =l call $malloc(l 16)+ call $memset(l %t34, w 0, l 16)+ call $memcpy(l %t34, l %t31, l 16)+ %t35 =l copy %t34+@lbl7746+ storel %t35, %t37+ call $__sx_dbg_keep(l %t37)+ dbgvar "r", "layout.Repo", %t37, 8, 5, 65+ dbgloc 66+ %t38 =l copy $__str233+ %t39 =l copy 8+ %t40 =l call $bytes__bytes(l %t38, l %t39)+ storel %t40, %t41+ call $__sx_dbg_keep(l %t41)+ dbgvar "pk", "bytes.Bytes", %t41, 8, 5, 66+ dbgloc 67+ %t42 =l call $repoconfig__get(l %t43, l %t35, l %t40)+ storel %t43, %t44+ call $__sx_dbg_keep(l %t44)+ dbgvar "pv", "option[bytes.Bytes]", %t44, 8, 5, 67+ dbgloc 68+ %t45 =l loadl %t43+ %t46 =w cnel %t45, 0+ jnz %t46, @lbl7747, @lbl7748+@lbl7747+ %t48 =l add %t43, 8+ %t47 =l loadl %t48+ dbgloc 69+ %t49 =w call $promisor__configure(l %t35, l %t47)+ dbgloc 70+ %t50 =w call $bytes__free_owned(l %t47)+ jmp @lbl7749+@lbl7748+ jmp @lbl7749+@lbl7749+ dbgloc 72+ %t51 =w call $layout__free_repo(l %t35)+ ret 0+}++function l $promisor__load_chunk(l %__ret, l %id) {+@start+ %t0 =l alloc8 8+ %t3 =l alloc8 8+ %t4 =l alloc8 17+ %t12 =l alloc8 8+ %t18 =l alloc8 8+ %t19 =l alloc8 16+ %t20 =l alloc8 8+ %t24 =l alloc8 16+ %t25 =l alloc8 8+ %t31 =l alloc8 16+ dbgloc 75+ storel %id, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "id", "objid.Id", %t0, 8, 5, 75+ dbgloc 76+ %t1 =l loadl $promisor__repo_ref+ %t2 =l call $store__open_all(l %t1)+ storel %t2, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "st", "store.Store", %t3, 8, 5, 76+ dbgloc 77+ %t5 =l copy 0+ storel %t5, %t4+ %t7 =l copy 0+ %t8 =l add %t4, 8+ storel %t7, %t8+ %t9 =l copy 0+ %t10 =l add %t4, 16+ storeb %t9, %t10+ %t11 =l call $malloc(l 17)+ call $memset(l %t11, w 0, l 17)+ call $memcpy(l %t11, l %t4, l 17)+ storel %t11, %t12+ call $__sx_dbg_keep(l %t12)+ dbgvar "loc", "store.Loc", %t12, 8, 5, 77+ dbgloc 78+ %t13 =l loadl %t2+ %t14 =l loadl %t12+ %t15 =w call $store__find_handles(l %t13, l %id, l %t14)+ %t16 =w copy %t15+ %t17 =w extub %t16+ storew %t17, %t18+ call $__sx_dbg_keep(l %t18)+ dbgvar "found", "bool", %t18, 1, 7, 78+ dbgloc 79+ storel 0, %t19+ storel %t19, %t20+ call $__sx_dbg_keep(l %t20)+ dbgvar "out", "option[bytes.Bytes]", %t20, 8, 5, 79+ dbgloc 80+ jnz %t17, @lbl7750, @lbl7751+@lbl7750+ dbgloc 81+ %t21 =l loadl %t2+ %t22 =l loadl %t12+ %t23 =l call $store__get_handles(l %t24, l %t21, l %t22)+ storel %t24, %t25+ call $__sx_dbg_keep(l %t25)+ dbgvar "body", "result[bytes.Bytes, derr.DecodeError]", %t25, 8, 5, 81+ dbgloc 82+ %t26 =l loadl %t24+ %t27 =w ceql %t26, 0+ jnz %t27, @lbl7753, @lbl7754+@lbl7753+ %t29 =l add %t24, 8+ %t28 =l loadl %t29+ dbgloc 83+ %t30 =l call $bytes__Bytes__dup(l %t28)+ call $memset(l %t31, w 0, l 16)+ storel 1, %t31+ %t32 =l add %t31, 8+ storel %t30, %t32+ storel %t31, %t20+ dbgloc 84+ %t33 =w call $bytes__free_owned(l %t28)+ jmp @lbl7755+@lbl7754+ jmp @lbl7755+@lbl7755+ jmp @lbl7751+@lbl7751+ dbgloc 87+ %t34 =w call $store__close(l %t2)+ dbgloc 88+ %t35 =l loadl %t20+ call $memcpy(l %__ret, l %t35, l 16)+ ret %__ret+}++export function l $promisor__fetch_chunk(l %__ret, l %id) {+@start+ %t0 =l alloc8 8+ %t4 =l alloc8 16+ %t6 =l alloc8 16+ %t7 =l alloc8 8+ %t12 =l alloc8 16+ %t19 =l alloc8 8+ %t22 =l alloc8 16+ %t23 =l alloc8 8+ %t27 =l alloc8 16+ %t30 =l alloc8 8+ %t35 =l alloc8 16+ %t41 =l alloc8 8+ %t44 =l alloc8 16+ %t45 =l alloc8 8+ %t49 =l alloc8 8+ %t59 =l alloc8 8+ %t62 =l alloc8 16+ %t63 =l alloc8 8+ %t67 =l alloc8 8+ %t74 =l alloc8 8+ %t79 =l alloc8 16+ %t80 =l alloc8 8+ %t89 =l alloc8 8+ %t94 =l alloc8 16+ %t96 =l alloc8 8+ %t118 =l alloc8 8+ %t124 =l alloc8 16+ %t126 =l alloc8 16+ dbgloc 92+ storel %id, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "id", "objid.Id", %t0, 8, 5, 92+ dbgloc 93+ %t2 =w loadw $promisor__active+ %t1 =l extsw %t2+ %t3 =w ceqw %t1, 0+ jnz %t3, @lbl7756, @lbl7757+@lbl7756+ dbgloc 94+ storel 0, %t4+ call $memcpy(l %__ret, l %t4, l 16)+ ret %__ret+@lbl7757+ dbgloc 96+ %t5 =l call $promisor__load_chunk(l %t6, l %id)+ storel %t6, %t7+ call $__sx_dbg_keep(l %t7)+ dbgvar "cached", "option[bytes.Bytes]", %t7, 8, 5, 96+ dbgloc 97+ %t8 =l loadl %t6+ %t9 =w cnel %t8, 0+ jnz %t9, @lbl7759, @lbl7760+@lbl7759+ %t11 =l add %t6, 8+ %t10 =l loadl %t11+ dbgloc 98+ call $memset(l %t12, w 0, l 16)+ storel 1, %t12+ %t13 =l add %t12, 8+ storel %t10, %t13+ call $memcpy(l %__ret, l %t12, l 16)+ ret %__ret+@lbl7760+ jmp @lbl7761+@lbl7761+ dbgloc 100+ %t14 =l loadl $promisor__remote_ref+ %t15 =l copy $__str377+ %t16 =l copy 3+ %t17 =l call $bytes__bytes(l %t15, l %t16)+ %t18 =l call $promisor__key_for(l %t14, l %t17)+ storel %t18, %t19+ call $__sx_dbg_keep(l %t19)+ dbgvar "uk", "bytes.Bytes", %t19, 8, 5, 100+ dbgloc 101+ %t20 =l loadl $promisor__repo_ref+ %t21 =l call $repoconfig__get(l %t22, l %t20, l %t18)+ storel %t22, %t23+ call $__sx_dbg_keep(l %t23)+ dbgvar "url_opt", "option[bytes.Bytes]", %t23, 8, 5, 101+ dbgloc 102+ %t24 =w call $bytes__free_owned(l %t18)+ dbgloc 103+ %t25 =l loadl %t22+ %t26 =w cnel %t25, 0+ jnz %t26, @lbl7762, @lbl7763+@lbl7762+ jmp @lbl7764+@lbl7763+ dbgloc 104+ storel 0, %t27+ call $memcpy(l %__ret, l %t27, l 16)+ ret %__ret+@lbl7764+ dbgloc 106+ %t28 =l call $bytes__empty()+ %t29 =l call $malloc(l 16)+ call $memset(l %t29, w 0, l 16)+ call $memcpy(l %t29, l %t28, l 16)+ storel %t29, %t30+ call $__sx_dbg_keep(l %t30)+ dbgvar "url", "bytes.Bytes", %t30, 8, 5, 106+ dbgloc 107+ %t31 =l loadl %t22+ %t32 =w cnel %t31, 0+ jnz %t32, @lbl7765, @lbl7766+@lbl7765+ %t34 =l add %t22, 8+ %t33 =l loadl %t34+ dbgloc 109+ storel %t33, %t30+ jmp @lbl7767+@lbl7766+ dbgloc 112+ storel 0, %t35+ call $memcpy(l %__ret, l %t35, l 16)+ ret %__ret+@lbl7767+ dbgloc 115+ %t36 =l loadl $promisor__remote_ref+ %t37 =l copy $__str378+ %t38 =l copy 3+ %t39 =l call $bytes__bytes(l %t37, l %t38)+ %t40 =l call $promisor__key_for(l %t36, l %t39)+ storel %t40, %t41+ call $__sx_dbg_keep(l %t41)+ dbgvar "kk", "bytes.Bytes", %t41, 8, 5, 115+ dbgloc 116+ %t42 =l loadl $promisor__repo_ref+ %t43 =l call $repoconfig__get(l %t44, l %t42, l %t40)+ storel %t44, %t45+ call $__sx_dbg_keep(l %t45)+ dbgvar "key_opt", "option[bytes.Bytes]", %t45, 8, 5, 116+ dbgloc 117+ %t46 =w call $bytes__free_owned(l %t40)+ dbgloc 118+ %t47 =l call $bytes__empty()+ %t48 =l call $malloc(l 16)+ call $memset(l %t48, w 0, l 16)+ call $memcpy(l %t48, l %t47, l 16)+ storel %t48, %t49+ call $__sx_dbg_keep(l %t49)+ dbgvar "key", "bytes.Bytes", %t49, 8, 5, 118+ dbgloc 119+ %t50 =l loadl %t44+ %t51 =w cnel %t50, 0+ jnz %t51, @lbl7768, @lbl7769+@lbl7768+ %t53 =l add %t44, 8+ %t52 =l loadl %t53+ dbgloc 120+ storel %t52, %t49+ jmp @lbl7770+@lbl7769+ jmp @lbl7770+@lbl7770+ dbgloc 122+ %t54 =l loadl $promisor__remote_ref+ %t55 =l copy $__str379+ %t56 =l copy 7+ %t57 =l call $bytes__bytes(l %t55, l %t56)+ %t58 =l call $promisor__key_for(l %t54, l %t57)+ storel %t58, %t59+ call $__sx_dbg_keep(l %t59)+ dbgvar "pk", "bytes.Bytes", %t59, 8, 5, 122+ dbgloc 123+ %t60 =l loadl $promisor__repo_ref+ %t61 =l call $repoconfig__get(l %t62, l %t60, l %t58)+ storel %t62, %t63+ call $__sx_dbg_keep(l %t63)+ dbgvar "pin_opt", "option[bytes.Bytes]", %t63, 8, 5, 123+ dbgloc 124+ %t64 =w call $bytes__free_owned(l %t58)+ dbgloc 125+ %t65 =l call $bytes__empty()+ %t66 =l call $malloc(l 16)+ call $memset(l %t66, w 0, l 16)+ call $memcpy(l %t66, l %t65, l 16)+ storel %t66, %t67+ call $__sx_dbg_keep(l %t67)+ dbgvar "pin", "bytes.Bytes", %t67, 8, 5, 125+ dbgloc 126+ %t68 =l loadl %t62+ %t69 =w cnel %t68, 0+ jnz %t69, @lbl7771, @lbl7772+@lbl7771+ %t71 =l add %t62, 8+ %t70 =l loadl %t71+ dbgloc 127+ storel %t70, %t67+ jmp @lbl7773+@lbl7772+ jmp @lbl7773+@lbl7773+ dbgloc 129+ %t72 =l loadl %t30+ %t73 =l call $client__url_repo_name(l %t72)+ storel %t73, %t74+ call $__sx_dbg_keep(l %t74)+ dbgvar "repo_name", "bytes.Bytes", %t74, 8, 5, 129+ dbgloc 130+ %t75 =l loadl %t30+ %t76 =l loadl %t49+ %t77 =l loadl %t67+ %t78 =l call $client__connect_pinned(l %t79, l %t75, l %t76, l %t73, l %t77)+ storel %t79, %t80+ call $__sx_dbg_keep(l %t80)+ dbgvar "c_opt", "option[Client]", %t80, 8, 5, 130+ dbgloc 131+ %t81 =l loadl %t30+ %t82 =w call $bytes__free_owned(l %t81)+ dbgloc 132+ %t83 =l loadl %t49+ %t84 =w call $bytes__free_owned(l %t83)+ dbgloc 133+ %t85 =l loadl %t67+ %t86 =w call $bytes__free_owned(l %t85)+ dbgloc 134+ %t87 =w call $bytes__free_owned(l %t73)+ dbgloc 135+ %t88 =l copy 0+ storel %t88, %t89+ call $__sx_dbg_keep(l %t89)+ dbgvar "c", "ref client.Client", %t89, 8, 7, 135+ dbgloc 136+ %t90 =l loadl %t79+ %t91 =w cnel %t90, 0+ jnz %t91, @lbl7774, @lbl7775+@lbl7774+ %t93 =l add %t79, 8+ %t92 =l loadl %t93+ dbgloc 138+ storel %t92, %t89+ jmp @lbl7776+@lbl7775+ dbgloc 141+ storel 0, %t94+ call $memcpy(l %__ret, l %t94, l 16)+ ret %__ret+@lbl7776+ dbgloc 144+ %t95 =l call $lists__new__GENMONO__bytes__Bytes()++ storel %t95, %t96+ call $__sx_dbg_keep(l %t96)+ dbgvar "ids", "list[bytes.Bytes]", %t96, 8, 5, 144+ dbgloc 145+ %t98 =l call $sxqbe_list_ensure(l %t96)+ %t99 =l loadl %id+ %t100 =l copy 32+ %t101 =l call $bytes__bytes(l %t99, l %t100)+ %t102 =l add %t98, 8+ %t103 =l add %t98, 16+ %t104 =l loadl %t102+ %t105 =l loadl %t103+ %t107 =l add %t104, 1+ %t106 =w call $sxqbe_list_grow(l %t98, l %t107)+ %t108 =l call $sxqbe_list_buf(l %t98)+ %t109 =l mul %t104, 8+ %t110 =l add %t108, %t109+ storel %t101, %t110+ %t111 =l add %t104, 1+ storel %t111, %t102+ %t97 =l copy 0+ dbgloc 146+ %t112 =l loadl %t89+ %t113 =l loadl $promisor__repo_ref+ %t114 =l loadl %t96+ %t115 =w call $client__get_chunks(l %t112, l %t113, l %t114)+ %t116 =w copy %t115+ %t117 =w extub %t116+ storew %t117, %t118+ call $__sx_dbg_keep(l %t118)+ dbgvar "fetched", "bool", %t118, 1, 7, 146+ dbgloc 147+ %t120 =l loadl %t96+ call $sxqbe_list_free(l %t120)+ %t119 =l copy 0+ dbgloc 148+ %t121 =l loadl %t89+ %t122 =w call $client__free_client(l %t121)+ dbgloc 149+ %t123 =w ceqw %t117, 0+ jnz %t123, @lbl7777, @lbl7778+@lbl7777+ dbgloc 150+ storel 0, %t124+ call $memcpy(l %__ret, l %t124, l 16)+ ret %__ret+@lbl7778+ dbgloc 152+ %t125 =l call $promisor__load_chunk(l %t126, l %id)+ call $memcpy(l %__ret, l %t126, l 16)+ ret %__ret+}++dbgfile "src/object/content.sx"+function l $content__read_body_any(l %__ret, l %handles, l %id, w %expected, w %use_cache, l %tx) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t3 =l alloc8 8+ %t4 =l alloc8 8+ %t6 =l alloc8 16+ %t7 =l alloc8 8+ %t13 =l alloc8 16+ %t16 =l alloc8 16+ dbgloc 16+ storel %handles, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "handles", "list[ref store.Handle]", %t0, 8, 5, 16+ storel %id, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "id", "objid.Id", %t1, 8, 5, 16+ storew %expected, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "expected", "u8", %t2, 1, 7, 16+ storew %use_cache, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "use_cache", "bool", %t3, 1, 7, 16+ storel %tx, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "tx", "ref txnmod.Txn", %t4, 8, 7, 16+ dbgloc 23+ jnz %use_cache, @lbl7780, @lbl7781+@lbl7780+ dbgloc 24+ %t5 =l call $txnmod__find_cached(l %t6, l %tx, w %expected, l %id)+ storel %t6, %t7+ call $__sx_dbg_keep(l %t7)+ dbgvar "cached", "option[bytes.Bytes]", %t7, 8, 5, 24+ dbgloc 25+ %t8 =l loadl %t6+ %t9 =w cnel %t8, 0+ jnz %t9, @lbl7783, @lbl7784+@lbl7783+ %t11 =l add %t6, 8+ %t10 =l loadl %t11+ dbgloc 26+ %t12 =l call $bytes__Bytes__dup(l %t10)+ call $memset(l %t13, w 0, l 16)+ storel 1, %t13+ %t14 =l add %t13, 8+ storel %t12, %t14+ call $memcpy(l %__ret, l %t13, l 16)+ ret %__ret+@lbl7784+ jmp @lbl7785+@lbl7785+ jmp @lbl7781+@lbl7781+ dbgloc 29+ %t15 =l call $read__read_body(l %t16, l %handles, l %id, w %expected)+ call $memcpy(l %__ret, l %t16, l 16)+ ret %__ret+}++function w $content__append_blob(l %handles, l %out, l %id, l %depth, l %git, w %has_git, w %use_cache, l %tx) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t3 =l alloc8 8+ %t4 =l alloc8 8+ %t5 =l alloc8 8+ %t6 =l alloc8 8+ %t7 =l alloc8 8+ %t16 =l alloc8 16+ %t17 =l alloc8 8+ %t25 =l alloc8 8+ %t43 =l alloc8 16+ %t45 =l alloc8 8+ %t48 =l alloc8 8+ %t56 =l alloc8 16+ %t57 =l alloc8 8+ %t59 =l alloc8 8+ %t70 =l alloc8 8+ %t90 =l alloc8 8+ %t101 =l alloc8 16+ %t103 =l alloc8 8+ %t104 =l alloc8 8+ %t112 =l alloc8 16+ %t131 =l alloc8 8+ dbgloc 32+ storel %handles, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "handles", "list[ref store.Handle]", %t0, 8, 5, 32+ storel %out, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "out", "buf.Buf", %t1, 8, 5, 32+ storel %id, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "id", "objid.Id", %t2, 8, 5, 32+ storel %depth, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "depth", "usize", %t3, 8, 5, 32+ storel %git, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "git", "object.GitRepo", %t4, 8, 5, 32+ storew %has_git, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "has_git", "bool", %t5, 1, 7, 32+ storew %use_cache, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "use_cache", "bool", %t6, 1, 7, 32+ storel %tx, %t7+ call $__sx_dbg_keep(l %t7)+ dbgvar "tx", "ref txnmod.Txn", %t7, 8, 7, 32+ dbgloc 42+ %t8 =l copy 64+ %t9 =w csgtl %depth, %t8+ jnz %t9, @lbl7786, @lbl7787+@lbl7786+ dbgloc 43+ %t10 =l copy 0+ ret %t10+@lbl7787+ dbgloc 45+ %t11 =w call $lazy__is_lazy(l %id)+ jnz %t11, @lbl7789, @lbl7790+@lbl7789+ dbgloc 46+ %t12 =w ceqw %has_git, 0+ jnz %t12, @lbl7792, @lbl7793+@lbl7792+ dbgloc 47+ %t13 =l copy 0+ ret %t13+@lbl7793+ dbgloc 49+ %t14 =l call $lazy__git_oid(l %id)+ %t15 =l call $object__read_fast(l %t16, l %git, l %t14)+ storel %t16, %t17+ call $__sx_dbg_keep(l %t17)+ dbgvar "read", "result[Object, GitError]", %t17, 8, 5, 49+ dbgloc 50+ %t18 =l loadl %t16+ %t19 =w ceql %t18, 0+ jnz %t19, @lbl7795, @lbl7796+@lbl7795+ %t21 =l add %t16, 8+ %t20 =l loadl %t21+ dbgloc 52+ %t22 =l copy 0+ %t23 =w copy %t22+ %t24 =w extub %t23+ storew %t24, %t25+ call $__sx_dbg_keep(l %t25)+ dbgvar "read_ok", "bool", %t25, 1, 7, 52+ dbgloc 53+ %t26 =l loadub %t20+ %t27 =l extsw %t26+ %t28 =l copy 3+ %t30 =l extsw %t27+ %t29 =w ceql %t30, %t28+ jnz %t29, @lbl7798, @lbl7799+@lbl7798+ dbgloc 54+ %t31 =l loadl %t1+ %t32 =l add %t20, 1+ %t33 =w call $buf__Buf__put_bytes(l %t31, l %t32)+ dbgloc 55+ %t34 =l copy 1+ %t35 =w copy %t34+ %t36 =w extub %t35+ storew %t36, %t25+ jmp @lbl7799+@lbl7799+ dbgloc 57+ %t37 =w call $object__free_object(l %t20)+ dbgloc 58+ %t39 =w loadw %t25+ %t38 =l extsw %t39+ ret %t38+@lbl7796+ dbgloc 61+ %t40 =l copy 0+ ret %t40+@lbl7797+ jmp @lbl7790+@lbl7790+ dbgloc 65+ %t41 =l copy 2+ %t44 =w copy %t41+ %t42 =l call $content__read_body_any(l %t43, l %handles, l %id, w %t44, w %use_cache, l %tx)+ storel %t43, %t45+ call $__sx_dbg_keep(l %t45)+ dbgvar "body_opt", "option[bytes.Bytes]", %t45, 8, 5, 65+ dbgloc 66+ %t46 =l call $bytes__empty()+ %t47 =l call $malloc(l 16)+ call $memset(l %t47, w 0, l 16)+ call $memcpy(l %t47, l %t46, l 16)+ storel %t47, %t48+ call $__sx_dbg_keep(l %t48)+ dbgvar "body", "bytes.Bytes", %t48, 8, 5, 66+ dbgloc 67+ %t49 =l loadl %t43+ %t50 =w cnel %t49, 0+ jnz %t50, @lbl7801, @lbl7802+@lbl7801+ %t52 =l add %t43, 8+ %t51 =l loadl %t52+ dbgloc 69+ storel %t51, %t48+ jmp @lbl7803+@lbl7802+ dbgloc 72+ %t53 =l copy 0+ ret %t53+@lbl7803+ dbgloc 75+ %t54 =l loadl %t48+ %t55 =l call $blob__decode(l %t56, l %t54)+ storel %t56, %t57+ call $__sx_dbg_keep(l %t57)+ dbgvar "decoded", "result[ref Blob, derr.DecodeError]", %t57, 8, 5, 75+ dbgloc 76+ %t58 =l copy 0+ storel %t58, %t59+ call $__sx_dbg_keep(l %t59)+ dbgvar "b", "ref blob.Blob", %t59, 8, 7, 76+ dbgloc 77+ %t60 =l loadl %t56+ %t61 =w ceql %t60, 0+ jnz %t61, @lbl7804, @lbl7805+@lbl7804+ %t63 =l add %t56, 8+ %t62 =l loadl %t63+ dbgloc 79+ storel %t62, %t59+ jmp @lbl7806+@lbl7805+ dbgloc 82+ %t64 =l loadl %t48+ %t65 =w call $files__free_buffer(l %t64)+ dbgloc 83+ %t66 =l copy 0+ ret %t66+@lbl7806+ dbgloc 86+ %t67 =l copy 1+ %t68 =w copy %t67+ %t69 =w extub %t68+ storew %t69, %t70+ call $__sx_dbg_keep(l %t70)+ dbgvar "good", "bool", %t70, 1, 7, 86+ dbgloc 87+ %t71 =l loadl %t59+ %t72 =l loadub %t71+ %t73 =l extsw %t72+ %t74 =l copy 0+ %t76 =l extsw %t73+ %t75 =w ceql %t76, %t74+ jnz %t75, @lbl7807, @lbl7809+@lbl7807+ dbgloc 88+ %t77 =l loadl %t1+ %t78 =l loadl %t59+ %t79 =l add %t78, 1+ %t80 =w call $buf__Buf__put_bytes(l %t77, l %t79)+ jmp @lbl7808+@lbl7809+ %t81 =l loadl %t59+ %t82 =l loadub %t81+ %t83 =l extsw %t82+ %t84 =l copy 1+ %t86 =l extsw %t83+ %t85 =w ceql %t86, %t84+ jnz %t85, @lbl7810, @lbl7811+@lbl7810+ dbgloc 90+ %t87 =l loadl %t59+ %t89 =l add %t87, 17+ %t88 =l loadl %t89+ storel 0, %t90+ %t91 =l call $sxqbe_list_len(l %t88)+@lbl7812+ %t92 =l loadl %t90+ %t93 =w csltl %t92, %t91+ jnz %t93, @lbl7813, @lbl7814+@lbl7813+ %t94 =l call $sxqbe_list_buf(l %t88)+ %t95 =l mul %t92, 8+ %t96 =l add %t94, %t95+ %t97 =l loadl %t96+ dbgloc 91+ %t98 =l add %t97, 0+ %t99 =l copy 1+ %t102 =w copy %t99+ %t100 =l call $content__read_body_any(l %t101, l %handles, l %t98, w %t102, w %use_cache, l %tx)+ storel %t101, %t103+ call $__sx_dbg_keep(l %t103)+ dbgvar "chunk_opt", "option[bytes.Bytes]", %t103, 8, 5, 91+ dbgloc 92+ storel %t101, %t104+ call $__sx_dbg_keep(l %t104)+ dbgvar "chunk2", "option[bytes.Bytes]", %t104, 8, 5, 92+ dbgloc 93+ %t105 =l loadl %t104+ %t106 =l loadl %t105+ %t107 =w cnel %t106, 0+ jnz %t107, @lbl7816, @lbl7817+@lbl7816+ jmp @lbl7818+@lbl7817+ dbgloc 94+ %t108 =w call $promisor__ensure(l %handles)+ dbgloc 95+ %t109 =w call $promisor__is_active()+ jnz %t109, @lbl7819, @lbl7820+@lbl7819+ dbgloc 96+ %t110 =l add %t97, 0+ %t111 =l call $promisor__fetch_chunk(l %t112, l %t110)+ storel %t112, %t104+ jmp @lbl7820+@lbl7820+ jmp @lbl7818+@lbl7818+ dbgloc 99+ %t113 =l loadl %t104+ %t114 =l loadl %t113+ %t115 =w cnel %t114, 0+ jnz %t115, @lbl7822, @lbl7823+@lbl7822+ %t117 =l add %t113, 8+ %t116 =l loadl %t117+ dbgloc 101+ %t118 =l loadl %t1+ %t119 =w call $buf__Buf__put_bytes(l %t118, l %t116)+ dbgloc 102+ %t120 =w call $files__free_buffer(l %t116)+ jmp @lbl7824+@lbl7823+ dbgloc 105+ %t121 =l copy 0+ %t122 =w copy %t121+ %t123 =w extub %t122+ storew %t123, %t70+ jmp @lbl7824+@lbl7824+ dbgloc 108+ %t125 =w loadw %t70+ %t124 =l extsw %t125+ %t126 =w ceqw %t124, 0+ jnz %t126, @lbl7825, @lbl7826+@lbl7825+ dbgloc 109+ jmp @lbl7814+@lbl7826+@lbl7815+ %t127 =l add %t92, 1+ storel %t127, %t90+ jmp @lbl7812+@lbl7814+ jmp @lbl7808+@lbl7811+ dbgloc 113+ %t128 =l loadl %t59+ %t130 =l add %t128, 17+ %t129 =l loadl %t130+ storel 0, %t131+ %t132 =l call $sxqbe_list_len(l %t129)+@lbl7828+ %t133 =l loadl %t131+ %t134 =w csltl %t133, %t132+ jnz %t134, @lbl7829, @lbl7830+@lbl7829+ %t135 =l call $sxqbe_list_buf(l %t129)+ %t136 =l mul %t133, 8+ %t137 =l add %t135, %t136+ %t138 =l loadl %t137+ dbgloc 114+ %t139 =l loadl %t1+ %t140 =l add %t138, 0+ %t141 =l copy 1+ %t142 =l add %depth, %t141+ %t143 =w call $content__append_blob(l %handles, l %t139, l %t140, l %t142, l %git, w %has_git, w %use_cache, l %tx)+ %t144 =w ceqw %t143, 0+ jnz %t144, @lbl7832, @lbl7833+@lbl7832+ dbgloc 115+ %t145 =l copy 0+ %t146 =w copy %t145+ %t147 =w extub %t146+ storew %t147, %t70+ dbgloc 116+ jmp @lbl7830+@lbl7833+@lbl7831+ %t148 =l add %t133, 1+ storel %t148, %t131+ jmp @lbl7828+@lbl7830+ jmp @lbl7808+@lbl7808+ dbgloc 120+ %t149 =l loadl %t59+ %t150 =w call $blob__free_blob(l %t149)+ dbgloc 121+ %t151 =l loadl %t48+ %t152 =w call $files__free_buffer(l %t151)+ dbgloc 122+ %t154 =w loadw %t70+ %t153 =l extsw %t154+ ret %t153+}++function l $content__read_blob_inner(l %__ret, l %handles, l %id, l %git, w %has_git, w %use_cache, l %tx) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t3 =l alloc8 8+ %t4 =l alloc8 8+ %t5 =l alloc8 8+ %t9 =l alloc8 8+ %t15 =l alloc8 8+ %t16 =l alloc8 16+ %t17 =l alloc8 8+ %t21 =l alloc8 16+ dbgloc 126+ storel %handles, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "handles", "list[ref store.Handle]", %t0, 8, 5, 126+ storel %id, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "id", "objid.Id", %t1, 8, 5, 126+ storel %git, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "git", "object.GitRepo", %t2, 8, 5, 126+ storew %has_git, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "has_git", "bool", %t3, 1, 7, 126+ storew %use_cache, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "use_cache", "bool", %t4, 1, 7, 126+ storel %tx, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "tx", "ref txnmod.Txn", %t5, 8, 7, 126+ dbgloc 134+ %t6 =l copy 4096+ %t7 =l call $buf__new(l %t6)+ %t8 =l call $malloc(l 24)+ call $memset(l %t8, w 0, l 24)+ call $memcpy(l %t8, l %t7, l 24)+ storel %t8, %t9+ call $__sx_dbg_keep(l %t9)+ dbgvar "out", "buf.Buf", %t9, 8, 5, 134+ dbgloc 135+ %t10 =l loadl %t9+ %t11 =l copy 0+ %t12 =w call $content__append_blob(l %handles, l %t10, l %id, l %t11, l %git, w %has_git, w %use_cache, l %tx)+ %t13 =w copy %t12+ %t14 =w extub %t13+ storew %t14, %t15+ call $__sx_dbg_keep(l %t15)+ dbgvar "good", "bool", %t15, 1, 7, 135+ dbgloc 136+ storel 0, %t16+ storel %t16, %t17+ call $__sx_dbg_keep(l %t17)+ dbgvar "result", "option[bytes.Bytes]", %t17, 8, 5, 136+ dbgloc 137+ jnz %t14, @lbl7835, @lbl7836+@lbl7835+ dbgloc 138+ %t18 =l loadl %t9+ %t19 =l call $buf__Buf__view(l %t18)+ %t20 =l call $bytes__Bytes__dup(l %t19)+ call $memset(l %t21, w 0, l 16)+ storel 1, %t21+ %t22 =l add %t21, 8+ storel %t20, %t22+ storel %t21, %t17+ jmp @lbl7836+@lbl7836+ dbgloc 140+ %t23 =l loadl %t9+ %t24 =w call $buf__Buf__free(l %t23)+ dbgloc 141+ %t25 =l loadl %t17+ call $memcpy(l %__ret, l %t25, l 16)+ ret %__ret+}++export function l $content__read_blob(l %__ret, l %handles, l %id, l %git, w %has_git) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t3 =l alloc8 8+ %t5 =l alloc8 16+ %t7 =l alloc8 16+ dbgloc 144+ storel %handles, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "handles", "list[ref store.Handle]", %t0, 8, 5, 144+ storel %id, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "id", "objid.Id", %t1, 8, 5, 144+ storel %git, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "git", "object.GitRepo", %t2, 8, 5, 144+ storew %has_git, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "has_git", "bool", %t3, 1, 7, 144+ dbgloc 150+ %t4 =l copy 0+ storel 0, %t5+ %t6 =l call $content__read_blob_inner(l %t7, l %handles, l %id, l %git, w %has_git, w %t4, l %t5)+ call $memcpy(l %__ret, l %t7, l 16)+ ret %__ret+}++export function l $content__read_blob_tx(l %__ret, l %handles, l %id, l %git, w %has_git, l %tx) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t3 =l alloc8 8+ %t4 =l alloc8 8+ %t7 =l alloc8 16+ dbgloc 153+ storel %handles, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "handles", "list[ref store.Handle]", %t0, 8, 5, 153+ storel %id, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "id", "objid.Id", %t1, 8, 5, 153+ storel %git, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "git", "object.GitRepo", %t2, 8, 5, 153+ storew %has_git, %t3+ call $__sx_dbg_keep(l %t3)+ dbgvar "has_git", "bool", %t3, 1, 7, 153+ storel %tx, %t4+ call $__sx_dbg_keep(l %t4)+ dbgvar "tx", "ref txnmod.Txn", %t4, 8, 7, 153+ dbgloc 160+ %t5 =l copy 1+ %t6 =l call $content__read_blob_inner(l %t7, l %handles, l %id, l %git, w %has_git, w %t5, l %tx)+ call $memcpy(l %__ret, l %t7, l 16)+ ret %__ret+}++dbgfile "src/merge/rename.sx"+export function l $renamemod__empty() {+@start+ %t0 =l alloc8 8+ dbgloc 32+ dbgloc 33+ %t1 =l call $lists__new__GENMONO__ref_Entry()++ storel %t1, %t0+ %t3 =l call $malloc(l 8)+ call $memcpy(l %t3, l %t0, l 8)+ ret %t3+}++function l $renamemod__new_entry(l %from, l %to) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t5 =l alloc8 8+ dbgloc 36+ storel %from, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "from", "bytes.Bytes", %t0, 8, 5, 36+ storel %to, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "to", "bytes.Bytes", %t1, 8, 5, 36+ dbgloc 37+ %t3 =l copy 32+ %t2 =l call $malloc(l %t3)+ %t4 =l copy %t2+ storel %t4, %t5+ call $__sx_dbg_keep(l %t5)+ dbgvar "e", "ref Entry", %t5, 8, 7, 37+ dbgloc 38+ %t6 =l call $bytes__Bytes__dup(l %from)+ %t7 =l loadl %t5+ call $memcpy(l %t7, l %t6, l 16)+ dbgloc 39+ %t8 =l call $bytes__Bytes__dup(l %to)+ %t9 =l loadl %t5+ %t10 =l add %t9, 16+ call $memcpy(l %t10, l %t8, l 16)+ dbgloc 40+ %t11 =l loadl %t5+ ret %t11+}++export function w $renamemod__free_map(l %m) {+@start+ %t0 =l alloc8 8+ %t2 =l alloc8 8+ %t17 =l alloc8 8+ %t27 =l alloc8 8+ %t31 =l alloc8 8+ dbgloc 43+ storel %m, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "m", "RenameMap", %t0, 8, 5, 43+ dbgloc 44+ %t1 =l loadl %m+ storel 0, %t2+ %t3 =l call $sxqbe_list_len(l %t1)+@lbl7838+ %t4 =l loadl %t2+ %t5 =w csltl %t4, %t3+ jnz %t5, @lbl7839, @lbl7840+@lbl7839+ %t6 =l call $sxqbe_list_buf(l %t1)+ %t7 =l mul %t4, 8+ %t8 =l add %t6, %t7+ %t9 =l loadl %t8+ dbgloc 45+ %t10 =l add %t9, 0+ %t11 =l loadl %t10+ %t12 =l copy 0+ %t13 =w cnel %t11, %t12+ jnz %t13, @lbl7842, @lbl7843+@lbl7842+ dbgloc 46+ %t14 =l add %t9, 0+ %t15 =l loadl %t14+ %t16 =l copy %t15+ storel %t16, %t17+ call $__sx_dbg_keep(l %t17)+ dbgvar "fp", "ref ", %t17, 8, 7, 46+ dbgloc 47+ %t19 =l loadl %t17+ call $free(l %t19)+ %t18 =l copy 0+ jmp @lbl7843+@lbl7843+ dbgloc 49+ %t20 =l add %t9, 16+ %t21 =l loadl %t20+ %t22 =l copy 0+ %t23 =w cnel %t21, %t22+ jnz %t23, @lbl7845, @lbl7846+@lbl7845+ dbgloc 50+ %t24 =l add %t9, 16+ %t25 =l loadl %t24+ %t26 =l copy %t25+ storel %t26, %t27+ call $__sx_dbg_keep(l %t27)+ dbgvar "tp", "ref ", %t27, 8, 7, 50+ dbgloc 51+ %t29 =l loadl %t27+ call $free(l %t29)+ %t28 =l copy 0+ jmp @lbl7846+@lbl7846+ dbgloc 53+ %t30 =l copy %t9+ storel %t30, %t31+ call $__sx_dbg_keep(l %t31)+ dbgvar "ep", "ref ", %t31, 8, 7, 53+ dbgloc 54+ %t33 =l loadl %t31+ call $free(l %t33)+ %t32 =l copy 0+@lbl7841+ %t34 =l add %t4, 1+ storel %t34, %t2+ jmp @lbl7838+@lbl7840+ dbgloc 56+ %t36 =l loadl %m+ call $sxqbe_list_free(l %t36)+ %t35 =l copy 0+ ret 0+}++export function l $renamemod__lookup(l %__ret, l %m, l %path) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t3 =l alloc8 8+ %t14 =l alloc8 16+ %t17 =l alloc8 16+ dbgloc 60+ storel %m, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "m", "RenameMap", %t0, 8, 5, 60+ storel %path, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "path", "bytes.Bytes", %t1, 8, 5, 60+ dbgloc 61+ %t2 =l loadl %m+ storel 0, %t3+ %t4 =l call $sxqbe_list_len(l %t2)+@lbl7848+ %t5 =l loadl %t3+ %t6 =w csltl %t5, %t4+ jnz %t6, @lbl7849, @lbl7850+@lbl7849+ %t7 =l call $sxqbe_list_buf(l %t2)+ %t8 =l mul %t5, 8+ %t9 =l add %t7, %t8+ %t10 =l loadl %t9+ dbgloc 62+ %t11 =l add %t10, 0+ %t12 =w call $bytes__Bytes__eql(l %t11, l %path)+ jnz %t12, @lbl7852, @lbl7853+@lbl7852+ dbgloc 63+ %t13 =l add %t10, 16+ call $memset(l %t14, w 0, l 16)+ storel 1, %t14+ %t15 =l add %t14, 8+ storel %t13, %t15+ call $memcpy(l %__ret, l %t14, l 16)+ ret %__ret+@lbl7853+@lbl7851+ %t16 =l add %t5, 1+ storel %t16, %t3+ jmp @lbl7848+@lbl7850+ dbgloc 66+ storel 0, %t17+ call $memcpy(l %__ret, l %t17, l 16)+ ret %__ret+}++function w $renamemod__apply(l %m, l %from, l %to) {+@start+ %t0 =l alloc8 8+ %t1 =l alloc8 8+ %t2 =l alloc8 8+ %t6 =l alloc8 8+ %t9 =l alloc8 8+ %t17 =l alloc8 8+ %t30 =l alloc8 8+ %t44 =l alloc8 8+ %t52 =l alloc8 8+ %t65 =l alloc8 8+ dbgloc 69+ storel %m, %t0+ call $__sx_dbg_keep(l %t0)+ dbgvar "m", "RenameMap", %t0, 8, 5, 69+ storel %from, %t1+ call $__sx_dbg_keep(l %t1)+ dbgvar "from", "bytes.Bytes", %t1, 8, 5, 69+ storel %to, %t2+ call $__sx_dbg_keep(l %t2)+ dbgvar "to", "bytes.Bytes", %t2, 8, 5, 69+ dbgloc 71+ %t3 =l copy 0+ %t4 =w copy %t3+ %t5 =w extub %t4+ storew %t5, %t6+ call $__sx_dbg_keep(l %t6)+ dbgvar "composed", "bool", %t6, 1, 7, 71+ dbgloc 72+ %t7 =l loadl %t0+ %t8 =l loadl %t7+ storel 0, %t9+ %t10 =l call $sxqbe_list_len(l %t8)+@lbl7855+ %t11 =l loadl %t9+ %t12 =w csltl %t11, %t10+ jnz %t12, @lbl7856, @lbl7857+@lbl7856+ %t13 =l call $sxqbe_list_buf(l %t8)+ %t14 =l mul %t11, 8+ %t15 =l add %t13, %t14+ %t16 =l loadl %t15+ dbgloc 73+ storel %t16, %t17+ call $__sx_dbg_keep(l %t17)+ dbgvar "em", "ref Entry", %t17, 8, 7, 73+ dbgloc 74+ %t18 =l loadl %t17+ %t19 =l add %t18, 16+ %t20 =w call $bytes__Bytes__eql(l %t19, l %from)+ jnz %t20, @lbl7859, @lbl7860+@lbl7859+ dbgloc 75+ %t21 =l loadl %t17+ %t22 =l add %t21, 16+ %t23 =l loadl %t22+ %t24 =l copy 0+ %t25 =w cnel %t23, %t24+ jnz %t25, @lbl7862, @lbl7863+@lbl7862+ dbgloc 76+ %t26 =l loadl %t17+ %t27 =l add %t26, 16+ %t28 =l loadl %t27+ %t29 =l copy %t28+ storel %t29, %t30+ call $__sx_dbg_keep(l %t30)+ dbgvar "tp", "ref ", %t30, 8, 7, 76+ dbgloc 77+ %t32 =l loadl %t30+ call $free(l %t32)+ %t31 =l copy 0+ jmp @lbl7863+@lbl7863+ dbgloc 79+ %t33 =l call $bytes__Bytes__dup(l %to)+ %t34 =l loadl %t17+ %t35 =l add %t34, 16+ call $memcpy(l %t35, l %t33, l 16)+ dbgloc 80+ %t36 =l copy 1+ %t37 =w copy %t36+ %t38 =w extub %t37+ storew %t38, %t6+ jmp @lbl7860+@lbl7860+@lbl7858+ %t39 =l add %t11, 1+ storel %t39, %t9+ jmp @lbl7855+@lbl7857+ dbgloc 83+ %t41 =w loadw %t6+ %t40 =l extsw %t41+ jnz %t40, @lbl7865, @lbl7866+@lbl7865+ dbgloc 84+ ret 0+@lbl7866+ dbgloc 86+ %t42 =l loadl %t0+ %t43 =l loadl %t42+ storel 0, %t44+ %t45 =l call $sxqbe_list_len(l %t43)+@lbl7868+ %t46 =l loadl %t44+ %t47 =w csltl %t46, %t45+ jnz %t47, @lbl7869, @lbl7870+@lbl7869+ %t48 =l call $sxqbe_list_buf(l %t43)+ %t49 =l mul %t46, 8+ %t50 =l add %t48, %t49+ %t51 =l loadl %t50+ dbgloc 87+ storel %t51, %t52+ call $__sx_dbg_keep(l %t52)+ dbgvar "em", "ref Entry", %t52, 8, 7, 87+ dbgloc 88+ %t53 =l loadl %t52+ %t54 =l add %t53, 0+ %t55 =w call $bytes__Bytes__eql(l %t54, l %from)+ jnz %t55, @lbl7872, @lbl7873+@lbl7872+ dbgloc 89+ %t56 =l loadl %t52+ %t57 =l add %t56, 16+ %t58 =l loadl %t57+ %t59 =l copy 0+ %t60 =w cnel %t58, %t59+ jnz %t60, @lbl7875, @lbl7876+@lbl7875+ dbgloc 90+ %t61 =l loadl %t52+ %t62 =l add %t61, 16+ %t63 =l loadl %t62+ %t64 =l copy %t63+ storel %t64, %t65+ call $__sx_dbg_keep(l %t65)+ dbgvar "tp", "ref ", %t65, 8, 7, 90+ dbgloc 91+ %t67 =l loadl %t65+ call $free(l %t67)+ %t66 =l copy 0+ jmp @lbl7876+@lbl7876+ dbgloc 93+ %t68 =l call $bytes__Bytes__dup(l %to)+ %t69 =l loadl %t52+ %t70 =l add %t69, 16+ call $memcpy(l %t70, l %t68, l 16)+ dbgloc 94+ ret 0+@lbl7873+@lbl7871+ %t71 =l add %t46, 1+ storel %t71, %t44+ jmp @lbl7868+@lbl7870+ dbgloc 97+ %t73 =l loadl %t0+ %t74 =l call $sxqbe_list_ensure(l %t73)+ %t75 =l call $renamemod__new_entry(l %from, l %to)+ %t76 =l add %t74, 8+ %t77 =l add %t74, 16+ %t78 =l loadl %t76+ %t79 =l loadl %t77+ %t81 =l add %t78, 1+ %t80 =w call $sxqbe_list_grow(l %t74, l %t81)+ %t82 =l call $sxqbe_list_buf(l %t74)+ %t83 =l mul %t78, 8+ %t84 =l add %t82, %t83+ storel %t75, %t84+ %t85 =l add %t78, 1+ storel %t85, %t76+ %t72 =l copy 0+ ret 0+}++function l $renamemod__first_parent(l %__re
Diff truncated at 2 MiB.