
@OS = internal global i64 0
@ARCH = internal global i64 0
@POINTER_SIZE = internal global i64 8
@__SxFoo_state_ivar = internal global ptr null
@__SxFoo_class = internal global ptr null
@__sx_default_context = internal global { { ptr, ptr, ptr }, ptr } { { ptr, ptr, ptr } { ptr null, ptr @__thunk_CAllocator_Allocator_alloc, ptr @__thunk_CAllocator_Allocator_dealloc }, ptr null }
@__sx_objc_cstr_dealloc = internal global [8 x i8] c"dealloc\00"
@str = private unnamed_addr constant [2 x i8] c"0\00", align 1
@str.1 = private unnamed_addr constant [15 x i8] c"result := \22\22; \00", align 1
@str.2 = private unnamed_addr constant [37 x i8] c"result = concat(result, substr(fmt, \00", align 1
@str.3 = private unnamed_addr constant [3 x i8] c", \00", align 1
@str.4 = private unnamed_addr constant [5 x i8] c")); \00", align 1
@str.5 = private unnamed_addr constant [44 x i8] c"result = concat(result, any_to_string(args[\00", align 1
@str.6 = private unnamed_addr constant [6 x i8] c"])); \00", align 1
@str.7 = private unnamed_addr constant [37 x i8] c"result = concat(result, substr(fmt, \00", align 1
@str.8 = private unnamed_addr constant [3 x i8] c", \00", align 1
@str.9 = private unnamed_addr constant [5 x i8] c")); \00", align 1
@str.10 = private unnamed_addr constant [37 x i8] c"result = concat(result, substr(fmt, \00", align 1
@str.11 = private unnamed_addr constant [3 x i8] c", \00", align 1
@str.12 = private unnamed_addr constant [5 x i8] c")); \00", align 1
@str.13 = private unnamed_addr constant [37 x i8] c"result = concat(result, substr(fmt, \00", align 1
@str.14 = private unnamed_addr constant [3 x i8] c", \00", align 1
@str.15 = private unnamed_addr constant [5 x i8] c")); \00", align 1
@str.16 = private unnamed_addr constant [10 x i8] c"compiled\0A\00", align 1
@str.17 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@str.18 = private unnamed_addr constant [10 x i8] c"compiled\0A\00", align 1
@OBJC_IVAR_NAME_ = private unnamed_addr constant [11 x i8] c"__sx_state\00"
@OBJC_IVAR_TYPE_ = private unnamed_addr constant [3 x i8] c"^v\00"
@OBJC_CLASS_NAME_ = private unnamed_addr constant [9 x i8] c"NSObject\00"
@OBJC_CLASS_NAME_.19 = private unnamed_addr constant [6 x i8] c"SxFoo\00"
@OBJC_METH_VAR_NAME_ = private unnamed_addr constant [5 x i8] c"bump\00"
@OBJC_METH_VAR_TYPE_ = private unnamed_addr constant [4 x i8] c"v@:\00"
@OBJC_METH_VAR_NAME_.20 = private unnamed_addr constant [8 x i8] c"dealloc\00"
@OBJC_METH_VAR_TYPE_.21 = private unnamed_addr constant [4 x i8] c"v@:\00"
@OBJC_METH_VAR_NAME_.22 = private unnamed_addr constant [6 x i8] c"alloc\00"
@OBJC_METH_VAR_TYPE_.23 = private unnamed_addr constant [4 x i8] c"@@:\00"

; Function Attrs: nounwind
declare void @out(ptr) #0

declare ptr @malloc(i64)

declare void @free(ptr)

declare ptr @memcpy(ptr, ptr, i64)

declare ptr @memset(ptr, i32, i64)

; Function Attrs: nounwind
define internal ptr @CAllocator.alloc(ptr %0, ptr %1, i64 %2) #0 {
entry:
  %alloca = alloca ptr, align 8
  store ptr %1, ptr %alloca, align 8
  %allocaN = alloca i64, align 8
  store i64 %2, ptr %allocaN, align 8
  %load = load i64, ptr %allocaN, align 8
  %call = call ptr @malloc(i64 %load)
  ret ptr %call
}

; Function Attrs: nounwind
define internal void @CAllocator.dealloc(ptr %0, ptr %1, ptr %2) #0 {
entry:
  %alloca = alloca ptr, align 8
  store ptr %1, ptr %alloca, align 8
  %allocaN = alloca ptr, align 8
  store ptr %2, ptr %allocaN, align 8
  %load = load ptr, ptr %allocaN, align 8
  call void @free(ptr %load)
  ret void
}

; Function Attrs: nounwind
declare i64 @GPA.init(ptr) #0

; Function Attrs: nounwind
declare ptr @GPA.alloc(ptr, ptr, i64) #0

; Function Attrs: nounwind
declare void @GPA.dealloc(ptr, ptr, ptr) #0

; Function Attrs: nounwind
declare void @Arena.add_chunk(ptr, ptr, i64) #0

; Function Attrs: nounwind
declare void @Arena.init(ptr sret({ ptr, i64, { ptr, ptr, ptr } }), ptr, ptr, i64) #0

; Function Attrs: nounwind
declare void @Arena.reset(ptr, ptr) #0

; Function Attrs: nounwind
declare void @Arena.deinit(ptr, ptr) #0

; Function Attrs: nounwind
declare ptr @Arena.alloc(ptr, ptr, i64) #0

; Function Attrs: nounwind
declare void @Arena.dealloc(ptr, ptr, ptr) #0

; Function Attrs: nounwind
declare ptr @BufAlloc.init(ptr, ptr, i64) #0

; Function Attrs: nounwind
declare void @BufAlloc.reset(ptr, ptr) #0

; Function Attrs: nounwind
declare ptr @BufAlloc.alloc(ptr, ptr, i64) #0

; Function Attrs: nounwind
declare void @BufAlloc.dealloc(ptr, ptr, ptr) #0

; Function Attrs: nounwind
declare void @TrackingAllocator.init(ptr sret({ { ptr, ptr, ptr }, i64, i64, i64 }), ptr, ptr) #0

; Function Attrs: nounwind
declare i64 @TrackingAllocator.leak_count(ptr, ptr) #0

; Function Attrs: nounwind
declare void @TrackingAllocator.report(ptr, ptr) #0

; Function Attrs: nounwind
declare ptr @TrackingAllocator.alloc(ptr, ptr, i64) #0

; Function Attrs: nounwind
declare void @TrackingAllocator.dealloc(ptr, ptr, ptr) #0

; Function Attrs: nounwind
define internal { ptr, i64 } @cstring(ptr %0, i64 %1) #0 {
entry:
  %alloca = alloca i64, align 8
  store i64 %1, ptr %alloca, align 8
  %load = load i64, ptr %alloca, align 8
  %add = add i64 %load, 1
  %loadN = load { { ptr, ptr, ptr }, ptr }, ptr %0, align 8
  %sg = extractvalue { { ptr, ptr, ptr }, ptr } %loadN, 0
  %sgN = extractvalue { ptr, ptr, ptr } %sg, 0
  %sgN = extractvalue { ptr, ptr, ptr } %sg, 1
  %icall = call ptr %sgN(ptr %0, ptr %sgN, i64 %add)
  %allocaN = alloca ptr, align 8
  store ptr %icall, ptr %allocaN, align 8
  %loadN = load ptr, ptr %allocaN, align 8
  %loadN = load i64, ptr %alloca, align 8
  %addN = add i64 %loadN, 1
  %2 = call ptr @memset(ptr %loadN, i32 0, i64 %addN)
  %allocaN = alloca { ptr, i64 }, align 8
  store { ptr, i64 } undef, ptr %allocaN, align 8
  %loadN = load ptr, ptr %allocaN, align 8
  %gep = getelementptr inbounds { ptr, i64 }, ptr %allocaN, i32 0, i32 0
  %pti = ptrtoint ptr %loadN to i64
  store i64 %pti, ptr %gep, align 8
  %loadN = load i64, ptr %alloca, align 8
  %gepN = getelementptr inbounds { ptr, i64 }, ptr %allocaN, i32 0, i32 1
  store i64 %loadN, ptr %gepN, align 8
  %loadN = load { ptr, i64 }, ptr %allocaN, align 8
  ret { ptr, i64 } %loadN
}

; Function Attrs: nounwind
define internal { ptr, i64 } @int_to_string(ptr %0, i64 %1) #0 {
entry:
  %alloca = alloca i64, align 8
  store i64 %1, ptr %alloca, align 8
  %load = load i64, ptr %alloca, align 8
  %icmp = icmp eq i64 %load, 0
  br i1 %icmp, label %if.then.14, label %if.merge.15

if.then.14:                                       ; preds = %entry
  ret { ptr, i64 } { ptr @str, i64 1 }

if.merge.15:                                      ; preds = %entry
  %loadN = load i64, ptr %alloca, align 8
  %icmpN = icmp slt i64 %loadN, 0
  %allocaN = alloca i1, align 1
  store i1 %icmpN, ptr %allocaN, align 1
  %loadN = load i1, ptr %allocaN, align 1
  br i1 %loadN, label %if.then.16, label %if.else.17

if.then.16:                                       ; preds = %if.merge.15
  %loadN = load i64, ptr %alloca, align 8
  %sub = sub i64 0, %loadN
  br label %if.merge.18

if.else.17:                                       ; preds = %if.merge.15
  %loadN = load i64, ptr %alloca, align 8
  br label %if.merge.18

if.merge.18:                                      ; preds = %if.else.17, %if.then.16
  %bp = phi i64 [ %sub, %if.then.16 ], [ %loadN, %if.else.17 ]
  %allocaN = alloca i64, align 8
  store i64 %bp, ptr %allocaN, align 8
  %call = call { ptr, i64 } @cstring(ptr %0, i64 20)
  %allocaN = alloca { ptr, i64 }, align 8
  store { ptr, i64 } %call, ptr %allocaN, align 8
  %allocaN = alloca i64, align 8
  store i64 19, ptr %allocaN, align 8
  br label %while.hdr.19

while.hdr.19:                                     ; preds = %while.body.20, %if.merge.18
  %loadN = load i64, ptr %allocaN, align 8
  %icmpN = icmp sgt i64 %loadN, 0
  br i1 %icmpN, label %while.body.20, label %while.exit.21

while.body.20:                                    ; preds = %while.hdr.19
  %loadN = load i64, ptr %allocaN, align 8
  %srem = srem i64 %loadN, 10
  %add = add i64 %srem, 48
  %loadN = load i64, ptr %allocaN, align 8
  %loadN = load { ptr, i64 }, ptr %allocaN, align 8
  %igp.data = extractvalue { ptr, i64 } %loadN, 0
  %igp.ptr = getelementptr i8, ptr %igp.data, i64 %loadN
  %trunc = trunc i64 %add to i8
  store i8 %trunc, ptr %igp.ptr, align 1
  %loadN = load i64, ptr %allocaN, align 8
  %sdiv = sdiv i64 %loadN, 10
  store i64 %sdiv, ptr %allocaN, align 8
  %loadN = load i64, ptr %allocaN, align 8
  %subN = sub i64 %loadN, 1
  store i64 %subN, ptr %allocaN, align 8
  br label %while.hdr.19

while.exit.21:                                    ; preds = %while.hdr.19
  %loadN = load i1, ptr %allocaN, align 1
  br i1 %loadN, label %if.then.22, label %if.merge.23

if.then.22:                                       ; preds = %while.exit.21
  %loadN = load i64, ptr %allocaN, align 8
  %loadN = load { ptr, i64 }, ptr %allocaN, align 8
  %igp.data21 = extractvalue { ptr, i64 } %loadN, 0
  %igp.ptr22 = getelementptr i8, ptr %igp.data21, i64 %loadN
  store i8 45, ptr %igp.ptr22, align 1
  %loadN = load i64, ptr %allocaN, align 8
  %subN = sub i64 %loadN, 1
  store i64 %subN, ptr %allocaN, align 8
  br label %if.merge.23

if.merge.23:                                      ; preds = %if.then.22, %while.exit.21
  %loadN = load { ptr, i64 }, ptr %allocaN, align 8
  %loadN = load i64, ptr %allocaN, align 8
  %addN = add i64 %loadN, 1
  %loadN = load i64, ptr %allocaN, align 8
  %subN = sub i64 20, %loadN
  %subN = sub i64 %subN, 1
  %callN = call { ptr, i64 } @substr(ptr %0, { ptr, i64 } %loadN, i64 %addN, i64 %subN)
  ret { ptr, i64 } %callN
}

; Function Attrs: nounwind
declare ptr @bool_to_string(ptr, i1) #0

; Function Attrs: nounwind
declare ptr @float_to_string(ptr, double) #0

; Function Attrs: nounwind
declare void @hex_group(ptr, ptr, i64, i64) #0

; Function Attrs: nounwind
declare ptr @int_to_hex_string(ptr, i64) #0

; Function Attrs: nounwind
define internal { ptr, i64 } @concat(ptr %0, { ptr, i64 } %1, { ptr, i64 } %2) #0 {
entry:
  %alloca = alloca { ptr, i64 }, align 8
  store { ptr, i64 } %1, ptr %alloca, align 8
  %allocaN = alloca { ptr, i64 }, align 8
  store { ptr, i64 } %2, ptr %allocaN, align 8
  %load = load { ptr, i64 }, ptr %alloca, align 8
  %len = extractvalue { ptr, i64 } %load, 1
  %allocaN = alloca i64, align 8
  store i64 %len, ptr %allocaN, align 8
  %loadN = load { ptr, i64 }, ptr %allocaN, align 8
  %lenN = extractvalue { ptr, i64 } %loadN, 1
  %allocaN = alloca i64, align 8
  store i64 %lenN, ptr %allocaN, align 8
  %loadN = load i64, ptr %allocaN, align 8
  %loadN = load i64, ptr %allocaN, align 8
  %add = add i64 %loadN, %loadN
  %call = call { ptr, i64 } @cstring(ptr %0, i64 %add)
  %allocaN = alloca { ptr, i64 }, align 8
  store { ptr, i64 } %call, ptr %allocaN, align 8
  %loadN = load { ptr, i64 }, ptr %allocaN, align 8
  %dptr = extractvalue { ptr, i64 } %loadN, 0
  %loadN = load { ptr, i64 }, ptr %alloca, align 8
  %dptrN = extractvalue { ptr, i64 } %loadN, 0
  %loadN = load i64, ptr %allocaN, align 8
  %callN = call ptr @memcpy(ptr %dptr, ptr %dptrN, i64 %loadN)
  %loadN = load i64, ptr %allocaN, align 8
  %loadN = load { ptr, i64 }, ptr %allocaN, align 8
  %igp.data = extractvalue { ptr, i64 } %loadN, 0
  %igp.ptr = getelementptr i8, ptr %igp.data, i64 %loadN
  %loadN = load { ptr, i64 }, ptr %allocaN, align 8
  %dptrN = extractvalue { ptr, i64 } %loadN, 0
  %loadN = load i64, ptr %allocaN, align 8
  %callN = call ptr @memcpy(ptr %igp.ptr, ptr %dptrN, i64 %loadN)
  %loadN = load { ptr, i64 }, ptr %allocaN, align 8
  ret { ptr, i64 } %loadN
}

; Function Attrs: nounwind
define internal { ptr, i64 } @substr(ptr %0, { ptr, i64 } %1, i64 %2, i64 %3) #0 {
entry:
  %alloca = alloca { ptr, i64 }, align 8
  store { ptr, i64 } %1, ptr %alloca, align 8
  %allocaN = alloca i64, align 8
  store i64 %2, ptr %allocaN, align 8
  %allocaN = alloca i64, align 8
  store i64 %3, ptr %allocaN, align 8
  %load = load i64, ptr %allocaN, align 8
  %call = call { ptr, i64 } @cstring(ptr %0, i64 %load)
  %allocaN = alloca { ptr, i64 }, align 8
  store { ptr, i64 } %call, ptr %allocaN, align 8
  %loadN = load { ptr, i64 }, ptr %allocaN, align 8
  %dptr = extractvalue { ptr, i64 } %loadN, 0
  %loadN = load i64, ptr %allocaN, align 8
  %loadN = load { ptr, i64 }, ptr %alloca, align 8
  %igp.data = extractvalue { ptr, i64 } %loadN, 0
  %igp.ptr = getelementptr i8, ptr %igp.data, i64 %loadN
  %loadN = load i64, ptr %allocaN, align 8
  %callN = call ptr @memcpy(ptr %dptr, ptr %igp.ptr, i64 %loadN)
  %loadN = load { ptr, i64 }, ptr %allocaN, align 8
  ret { ptr, i64 } %loadN
}

; Function Attrs: nounwind
declare ptr @xml_escape(ptr, ptr) #0

; Function Attrs: nounwind
declare ptr @path_join(ptr, ptr) #0

; Function Attrs: nounwind
declare ptr @any_to_string(ptr, [2 x i64]) #0

; Function Attrs: nounwind
define internal { ptr, i64 } @build_format(ptr %0, { ptr, i64 } %1) #0 {
entry:
  %alloca = alloca { ptr, i64 }, align 8
  store { ptr, i64 } %1, ptr %alloca, align 8
  %allocaN = alloca { ptr, i64 }, align 8
  store { ptr, i64 } { ptr @str.1, i64 14 }, ptr %allocaN, align 8
  %allocaN = alloca i64, align 8
  store i64 0, ptr %allocaN, align 8
  %allocaN = alloca i64, align 8
  store i64 0, ptr %allocaN, align 8
  %allocaN = alloca i64, align 8
  store i64 0, ptr %allocaN, align 8
  br label %while.hdr.0

while.hdr.0:                                      ; preds = %if.merge.5, %entry
  %load = load i64, ptr %allocaN, align 8
  %loadN = load { ptr, i64 }, ptr %alloca, align 8
  %len = extractvalue { ptr, i64 } %loadN, 1
  %icmp = icmp slt i64 %load, %len
  br i1 %icmp, label %while.body.1, label %while.exit.2

while.body.1:                                     ; preds = %while.hdr.0
  %loadN = load { ptr, i64 }, ptr %alloca, align 8
  %loadN = load i64, ptr %allocaN, align 8
  %ig.data = extractvalue { ptr, i64 } %loadN, 0
  %ig.ptr = getelementptr i8, ptr %ig.data, i64 %loadN
  %ig.val = load i8, ptr %ig.ptr, align 1
  %cmp.ext = zext i8 %ig.val to i64
  %icmpN = icmp eq i64 %cmp.ext, 123
  br i1 %icmpN, label %if.then.3, label %if.else.4

while.exit.2:                                     ; preds = %while.hdr.0
  %loadN = load i64, ptr %allocaN, align 8
  %loadN = load { ptr, i64 }, ptr %alloca, align 8
  %lenN = extractvalue { ptr, i64 } %loadN, 1
  %icmpN = icmp slt i64 %loadN, %lenN
  br i1 %icmpN, label %if.then.36, label %if.merge.37

if.then.3:                                        ; preds = %while.body.1
  %loadN = load i64, ptr %allocaN, align 8
  %add = add i64 %loadN, 1
  %loadN = load { ptr, i64 }, ptr %alloca, align 8
  %lenN = extractvalue { ptr, i64 } %loadN, 1
  %icmpN = icmp slt i64 %add, %lenN
  br i1 %icmpN, label %if.then.6, label %if.else.7

if.else.4:                                        ; preds = %while.body.1
  %loadN = load { ptr, i64 }, ptr %alloca, align 8
  %loadN = load i64, ptr %allocaN, align 8
  %ig.data19 = extractvalue { ptr, i64 } %loadN, 0
  %ig.ptr20 = getelementptr i8, ptr %ig.data19, i64 %loadN
  %ig.val21 = load i8, ptr %ig.ptr20, align 1
  %cmp.ext22 = zext i8 %ig.val21 to i64
  %icmpN = icmp eq i64 %cmp.ext22, 125
  br i1 %icmpN, label %if.then.27, label %if.else.28

if.merge.5:                                       ; preds = %if.merge.29, %if.merge.8
  br label %while.hdr.0

if.then.6:                                        ; preds = %if.then.3
  %loadN = load { ptr, i64 }, ptr %alloca, align 8
  %loadN = load i64, ptr %allocaN, align 8
  %addN = add i64 %loadN, 1
  %ig.data27 = extractvalue { ptr, i64 } %loadN, 0
  %ig.ptr28 = getelementptr i8, ptr %ig.data27, i64 %addN
  %ig.val29 = load i8, ptr %ig.ptr28, align 1
  %cmp.ext30 = zext i8 %ig.val29 to i64
  %icmpN = icmp eq i64 %cmp.ext30, 125
  br i1 %icmpN, label %if.then.9, label %if.else.10

if.else.7:                                        ; preds = %if.then.3
  %loadN = load i64, ptr %allocaN, align 8
  %addN = add i64 %loadN, 1
  store i64 %addN, ptr %allocaN, align 8
  br label %if.merge.8

if.merge.8:                                       ; preds = %if.merge.11, %if.else.7
  br label %if.merge.5

if.then.9:                                        ; preds = %if.then.6
  %loadN = load i64, ptr %allocaN, align 8
  %loadN = load i64, ptr %allocaN, align 8
  %icmpN = icmp sgt i64 %loadN, %loadN
  br i1 %icmpN, label %if.then.12, label %if.merge.13

if.else.10:                                       ; preds = %if.then.6
  %loadN = load { ptr, i64 }, ptr %alloca, align 8
  %loadN = load i64, ptr %allocaN, align 8
  %addN = add i64 %loadN, 1
  %ig.data40 = extractvalue { ptr, i64 } %loadN, 0
  %ig.ptr41 = getelementptr i8, ptr %ig.data40, i64 %addN
  %ig.val42 = load i8, ptr %ig.ptr41, align 1
  %cmp.ext43 = zext i8 %ig.val42 to i64
  %icmpN = icmp eq i64 %cmp.ext43, 123
  br i1 %icmpN, label %if.then.24, label %if.else.25

if.merge.11:                                      ; preds = %if.merge.26, %if.merge.13
  br label %if.merge.8

if.then.12:                                       ; preds = %if.then.9
  %loadN = load { ptr, i64 }, ptr %allocaN, align 8
  %call = call { ptr, i64 } @concat(ptr %0, { ptr, i64 } %loadN, { ptr, i64 } { ptr @str.2, i64 36 })
  store { ptr, i64 } %call, ptr %allocaN, align 8
  %loadN = load { ptr, i64 }, ptr %allocaN, align 8
  %loadN = load i64, ptr %allocaN, align 8
  %callN = call { ptr, i64 } @int_to_string(ptr %0, i64 %loadN)
  %callN = call { ptr, i64 } @concat(ptr %0, { ptr, i64 } %loadN, { ptr, i64 } %callN)
  store { ptr, i64 } %callN, ptr %allocaN, align 8
  %loadN = load { ptr, i64 }, ptr %allocaN, align 8
  %callN = call { ptr, i64 } @concat(ptr %0, { ptr, i64 } %loadN, { ptr, i64 } { ptr @str.3, i64 2 })
  store { ptr, i64 } %callN, ptr %allocaN, align 8
  %loadN = load { ptr, i64 }, ptr %allocaN, align 8
  %loadN = load i64, ptr %allocaN, align 8
  %loadN = load i64, ptr %allocaN, align 8
  %sub = sub i64 %loadN, %loadN
  %callN = call { ptr, i64 } @int_to_string(ptr %0, i64 %sub)
  %callN = call { ptr, i64 } @concat(ptr %0, { ptr, i64 } %loadN, { ptr, i64 } %callN)
  store { ptr, i64 } %callN, ptr %allocaN, align 8
  %loadN = load { ptr, i64 }, ptr %allocaN, align 8
  %callN = call { ptr, i64 } @concat(ptr %0, { ptr, i64 } %loadN, { ptr, i64 } { ptr @str.4, i64 4 })
  store { ptr, i64 } %callN, ptr %allocaN, align 8
  br label %if.merge.13

if.merge.13:                                      ; preds = %if.then.12, %if.then.9
  %loadN = load { ptr, i64 }, ptr %allocaN, align 8
  %callN = call { ptr, i64 } @concat(ptr %0, { ptr, i64 } %loadN, { ptr, i64 } { ptr @str.5, i64 43 })
  store { ptr, i64 } %callN, ptr %allocaN, align 8
  %loadN = load { ptr, i64 }, ptr %allocaN, align 8
  %loadN = load i64, ptr %allocaN, align 8
  %callN = call { ptr, i64 } @int_to_string(ptr %0, i64 %loadN)
  %callN = call { ptr, i64 } @concat(ptr %0, { ptr, i64 } %loadN, { ptr, i64 } %callN)
  store { ptr, i64 } %callN, ptr %allocaN, align 8
  %loadN = load { ptr, i64 }, ptr %allocaN, align 8
  %callN = call { ptr, i64 } @concat(ptr %0, { ptr, i64 } %loadN, { ptr, i64 } { ptr @str.6, i64 5 })
  store { ptr, i64 } %callN, ptr %allocaN, align 8
  %loadN = load i64, ptr %allocaN, align 8
  %addN = add i64 %loadN, 1
  store i64 %addN, ptr %allocaN, align 8
  %loadN = load i64, ptr %allocaN, align 8
  %addN = add i64 %loadN, 2
  store i64 %addN, ptr %allocaN, align 8
  %loadN = load i64, ptr %allocaN, align 8
  store i64 %loadN, ptr %allocaN, align 8
  br label %if.merge.11

if.then.24:                                       ; preds = %if.else.10
  %loadN = load { ptr, i64 }, ptr %allocaN, align 8
  %callN = call { ptr, i64 } @concat(ptr %0, { ptr, i64 } %loadN, { ptr, i64 } { ptr @str.7, i64 36 })
  store { ptr, i64 } %callN, ptr %allocaN, align 8
  %loadN = load { ptr, i64 }, ptr %allocaN, align 8
  %loadN = load i64, ptr %allocaN, align 8
  %callN = call { ptr, i64 } @int_to_string(ptr %0, i64 %loadN)
  %callN = call { ptr, i64 } @concat(ptr %0, { ptr, i64 } %loadN, { ptr, i64 } %callN)
  store { ptr, i64 } %callN, ptr %allocaN, align 8
  %loadN = load { ptr, i64 }, ptr %allocaN, align 8
  %callN = call { ptr, i64 } @concat(ptr %0, { ptr, i64 } %loadN, { ptr, i64 } { ptr @str.8, i64 2 })
  store { ptr, i64 } %callN, ptr %allocaN, align 8
  %loadN = load { ptr, i64 }, ptr %allocaN, align 8
  %loadN = load i64, ptr %allocaN, align 8
  %loadN = load i64, ptr %allocaN, align 8
  %subN = sub i64 %loadN, %loadN
  %addN = add i64 %subN, 1
  %callN = call { ptr, i64 } @int_to_string(ptr %0, i64 %addN)
  %callN = call { ptr, i64 } @concat(ptr %0, { ptr, i64 } %loadN, { ptr, i64 } %callN)
  store { ptr, i64 } %callN, ptr %allocaN, align 8
  %loadN = load { ptr, i64 }, ptr %allocaN, align 8
  %callN = call { ptr, i64 } @concat(ptr %0, { ptr, i64 } %loadN, { ptr, i64 } { ptr @str.9, i64 4 })
  store { ptr, i64 } %callN, ptr %allocaN, align 8
  %loadN = load i64, ptr %allocaN, align 8
  %addN = add i64 %loadN, 2
  store i64 %addN, ptr %allocaN, align 8
  %loadN = load i64, ptr %allocaN, align 8
  store i64 %loadN, ptr %allocaN, align 8
  br label %if.merge.26

if.else.25:                                       ; preds = %if.else.10
  %loadN = load i64, ptr %allocaN, align 8
  %addN = add i64 %loadN, 1
  store i64 %addN, ptr %allocaN, align 8
  br label %if.merge.26

if.merge.26:                                      ; preds = %if.else.25, %if.then.24
  br label %if.merge.11

if.then.27:                                       ; preds = %if.else.4
  %loadN = load i64, ptr %allocaN, align 8
  %addN = add i64 %loadN, 1
  %loadN = load { ptr, i64 }, ptr %alloca, align 8
  %lenN = extractvalue { ptr, i64 } %loadN, 1
  %icmpN = icmp slt i64 %addN, %lenN
  br i1 %icmpN, label %if.then.30, label %if.else.31

if.else.28:                                       ; preds = %if.else.4
  %loadN = load i64, ptr %allocaN, align 8
  %addN = add i64 %loadN, 1
  store i64 %addN, ptr %allocaN, align 8
  br label %if.merge.29

if.merge.29:                                      ; preds = %if.merge.32, %if.else.28
  br label %if.merge.5

if.then.30:                                       ; preds = %if.then.27
  %loadN = load { ptr, i64 }, ptr %alloca, align 8
  %loadN = load i64, ptr %allocaN, align 8
  %addN = add i64 %loadN, 1
  %ig.data104 = extractvalue { ptr, i64 } %loadN, 0
  %ig.ptr105 = getelementptr i8, ptr %ig.data104, i64 %addN
  %ig.val106 = load i8, ptr %ig.ptr105, align 1
  %cmp.ext107 = zext i8 %ig.val106 to i64
  %icmpN = icmp eq i64 %cmp.ext107, 125
  br i1 %icmpN, label %if.then.33, label %if.else.34

if.else.31:                                       ; preds = %if.then.27
  %loadN = load i64, ptr %allocaN, align 8
  %addN = add i64 %loadN, 1
  store i64 %addN, ptr %allocaN, align 8
  br label %if.merge.32

if.merge.32:                                      ; preds = %if.merge.35, %if.else.31
  br label %if.merge.29

if.then.33:                                       ; preds = %if.then.30
  %loadN = load { ptr, i64 }, ptr %allocaN, align 8
  %callN = call { ptr, i64 } @concat(ptr %0, { ptr, i64 } %loadN, { ptr, i64 } { ptr @str.10, i64 36 })
  store { ptr, i64 } %callN, ptr %allocaN, align 8
  %loadN = load { ptr, i64 }, ptr %allocaN, align 8
  %loadN = load i64, ptr %allocaN, align 8
  %callN = call { ptr, i64 } @int_to_string(ptr %0, i64 %loadN)
  %callN = call { ptr, i64 } @concat(ptr %0, { ptr, i64 } %loadN, { ptr, i64 } %callN)
  store { ptr, i64 } %callN, ptr %allocaN, align 8
  %loadN = load { ptr, i64 }, ptr %allocaN, align 8
  %callN = call { ptr, i64 } @concat(ptr %0, { ptr, i64 } %loadN, { ptr, i64 } { ptr @str.11, i64 2 })
  store { ptr, i64 } %callN, ptr %allocaN, align 8
  %loadN = load { ptr, i64 }, ptr %allocaN, align 8
  %loadN = load i64, ptr %allocaN, align 8
  %loadN = load i64, ptr %allocaN, align 8
  %subN = sub i64 %loadN, %loadN
  %addN = add i64 %subN, 1
  %callN = call { ptr, i64 } @int_to_string(ptr %0, i64 %addN)
  %callN = call { ptr, i64 } @concat(ptr %0, { ptr, i64 } %loadN, { ptr, i64 } %callN)
  store { ptr, i64 } %callN, ptr %allocaN, align 8
  %loadN = load { ptr, i64 }, ptr %allocaN, align 8
  %callN = call { ptr, i64 } @concat(ptr %0, { ptr, i64 } %loadN, { ptr, i64 } { ptr @str.12, i64 4 })
  store { ptr, i64 } %callN, ptr %allocaN, align 8
  %loadN = load i64, ptr %allocaN, align 8
  %addN = add i64 %loadN, 2
  store i64 %addN, ptr %allocaN, align 8
  %loadN = load i64, ptr %allocaN, align 8
  store i64 %loadN, ptr %allocaN, align 8
  br label %if.merge.35

if.else.34:                                       ; preds = %if.then.30
  %loadN = load i64, ptr %allocaN, align 8
  %addN = add i64 %loadN, 1
  store i64 %addN, ptr %allocaN, align 8
  br label %if.merge.35

if.merge.35:                                      ; preds = %if.else.34, %if.then.33
  br label %if.merge.32

if.then.36:                                       ; preds = %while.exit.2
  %loadN = load { ptr, i64 }, ptr %allocaN, align 8
  %callN = call { ptr, i64 } @concat(ptr %0, { ptr, i64 } %loadN, { ptr, i64 } { ptr @str.13, i64 36 })
  store { ptr, i64 } %callN, ptr %allocaN, align 8
  %loadN = load { ptr, i64 }, ptr %allocaN, align 8
  %loadN = load i64, ptr %allocaN, align 8
  %callN = call { ptr, i64 } @int_to_string(ptr %0, i64 %loadN)
  %callN = call { ptr, i64 } @concat(ptr %0, { ptr, i64 } %loadN, { ptr, i64 } %callN)
  store { ptr, i64 } %callN, ptr %allocaN, align 8
  %loadN = load { ptr, i64 }, ptr %allocaN, align 8
  %callN = call { ptr, i64 } @concat(ptr %0, { ptr, i64 } %loadN, { ptr, i64 } { ptr @str.14, i64 2 })
  store { ptr, i64 } %callN, ptr %allocaN, align 8
  %loadN = load { ptr, i64 }, ptr %allocaN, align 8
  %loadN = load { ptr, i64 }, ptr %alloca, align 8
  %lenN = extractvalue { ptr, i64 } %loadN, 1
  %loadN = load i64, ptr %allocaN, align 8
  %subN = sub i64 %lenN, %loadN
  %callN = call { ptr, i64 } @int_to_string(ptr %0, i64 %subN)
  %callN = call { ptr, i64 } @concat(ptr %0, { ptr, i64 } %loadN, { ptr, i64 } %callN)
  store { ptr, i64 } %callN, ptr %allocaN, align 8
  %loadN = load { ptr, i64 }, ptr %allocaN, align 8
  %callN = call { ptr, i64 } @concat(ptr %0, { ptr, i64 } %loadN, { ptr, i64 } { ptr @str.15, i64 4 })
  store { ptr, i64 } %callN, ptr %allocaN, align 8
  br label %if.merge.37

if.merge.37:                                      ; preds = %if.then.36, %while.exit.2
  %loadN = load { ptr, i64 }, ptr %allocaN, align 8
  ret { ptr, i64 } %loadN
}

; Function Attrs: nounwind
declare void @BuildOptions.add_link_flag(i64, ptr) #0

; Function Attrs: nounwind
declare void @BuildOptions.add_framework(i64, ptr) #0

; Function Attrs: nounwind
declare void @BuildOptions.set_output_path(i64, ptr) #0

; Function Attrs: nounwind
declare void @BuildOptions.set_wasm_shell(i64, ptr) #0

; Function Attrs: nounwind
declare void @BuildOptions.add_asset_dir(i64, ptr, ptr) #0

; Function Attrs: nounwind
declare i64 @BuildOptions.asset_dir_count(i64) #0

; Function Attrs: nounwind
declare ptr @BuildOptions.asset_dir_src_at(i64, i64) #0

; Function Attrs: nounwind
declare ptr @BuildOptions.asset_dir_dest_at(i64, i64) #0

; Function Attrs: nounwind
declare void @BuildOptions.set_post_link_callback(i64, ptr) #0

; Function Attrs: nounwind
declare void @BuildOptions.set_post_link_module(i64, ptr) #0

; Function Attrs: nounwind
declare ptr @BuildOptions.binary_path(i64) #0

; Function Attrs: nounwind
declare void @BuildOptions.set_bundle_path(i64, ptr) #0

; Function Attrs: nounwind
declare void @BuildOptions.set_bundle_id(i64, ptr) #0

; Function Attrs: nounwind
declare void @BuildOptions.set_codesign_identity(i64, ptr) #0

; Function Attrs: nounwind
declare void @BuildOptions.set_provisioning_profile(i64, ptr) #0

; Function Attrs: nounwind
declare ptr @BuildOptions.bundle_path(i64) #0

; Function Attrs: nounwind
declare ptr @BuildOptions.bundle_id(i64) #0

; Function Attrs: nounwind
declare ptr @BuildOptions.codesign_identity(i64) #0

; Function Attrs: nounwind
declare ptr @BuildOptions.provisioning_profile(i64) #0

; Function Attrs: nounwind
declare ptr @BuildOptions.target_triple(i64) #0

; Function Attrs: nounwind
declare i1 @BuildOptions.is_macos(i64) #0

; Function Attrs: nounwind
declare i1 @BuildOptions.is_ios(i64) #0

; Function Attrs: nounwind
declare i1 @BuildOptions.is_ios_device(i64) #0

; Function Attrs: nounwind
declare i1 @BuildOptions.is_ios_simulator(i64) #0

; Function Attrs: nounwind
declare i1 @BuildOptions.is_android(i64) #0

; Function Attrs: nounwind
declare i64 @BuildOptions.framework_count(i64) #0

; Function Attrs: nounwind
declare ptr @BuildOptions.framework_at(i64, i64) #0

; Function Attrs: nounwind
declare i64 @BuildOptions.framework_path_count(i64) #0

; Function Attrs: nounwind
declare ptr @BuildOptions.framework_path_at(i64, i64) #0

; Function Attrs: nounwind
declare void @BuildOptions.set_manifest_path(i64, ptr) #0

; Function Attrs: nounwind
declare void @BuildOptions.set_keystore_path(i64, ptr) #0

; Function Attrs: nounwind
declare ptr @BuildOptions.manifest_path(i64) #0

; Function Attrs: nounwind
declare ptr @BuildOptions.keystore_path(i64) #0

; Function Attrs: nounwind
declare i64 @BuildOptions.jni_main_count(i64) #0

; Function Attrs: nounwind
declare ptr @BuildOptions.jni_main_foreign_path_at(i64, i64) #0

; Function Attrs: nounwind
declare ptr @BuildOptions.jni_main_java_source_at(i64, i64) #0

; Function Attrs: nounwind
declare i64 @build_options() #0

; Function Attrs: nounwind
define internal void @SxFoo.bump(ptr %0, ptr %1) #0 {
entry:
  %alloca = alloca ptr, align 8
  store ptr %1, ptr %alloca, align 8
  %load = load ptr, ptr %alloca, align 8
  %loadN = load ptr, ptr @__SxFoo_state_ivar, align 8
  %call = call ptr @object_getIvar(ptr %load, ptr %loadN)
  %gep = getelementptr inbounds { { ptr, ptr, ptr }, i32 }, ptr %call, i32 0, i32 1
  %loadN = load i32, ptr %gep, align 4
  %add = add i32 %loadN, 1
  store i32 %add, ptr %gep, align 4
  ret void
}

; Function Attrs: nounwind
define i32 @main() #0 {
entry:
  call void @print__ct_sfeff9eeccd48b824__pack(ptr @__sx_default_context)
  call void @__sx_objc_defined_class_init()
  ret i32 0
}

; Function Attrs: nounwind
define internal ptr @__thunk_CAllocator_Allocator_alloc(ptr %0, ptr %1, i64 %2) #0 {
entry:
  %call = call ptr @CAllocator.alloc(ptr %0, ptr %1, i64 %2)
  ret ptr %call
}

; Function Attrs: nounwind
define internal void @__thunk_CAllocator_Allocator_dealloc(ptr %0, ptr %1, ptr %2) #0 {
entry:
  call void @CAllocator.dealloc(ptr %0, ptr %1, ptr %2)
  ret void
}

; Function Attrs: nounwind
define internal void @print__ct_sfeff9eeccd48b824__pack(ptr %0) #0 {
entry:
  %alloca = alloca { ptr, i64 }, align 8
  store { ptr, i64 } { ptr @str.16, i64 9 }, ptr %alloca, align 8
  %allocaN = alloca { ptr, i64 }, align 8
  %gep = getelementptr inbounds { ptr, i64 }, ptr %allocaN, i32 0, i32 0
  store ptr null, ptr %gep, align 8
  %gepN = getelementptr inbounds { ptr, i64 }, ptr %allocaN, i32 0, i32 1
  store i64 0, ptr %gepN, align 8
  %allocaN = alloca { ptr, i64 }, align 8
  store { ptr, i64 } { ptr @str.17, i64 0 }, ptr %allocaN, align 8
  %load = load { ptr, i64 }, ptr %allocaN, align 8
  %loadN = load { ptr, i64 }, ptr %alloca, align 8
  %call = call { ptr, i64 } @substr(ptr %0, { ptr, i64 } %loadN, i64 0, i64 9)
  %callN = call { ptr, i64 } @concat(ptr %0, { ptr, i64 } %load, { ptr, i64 } %call)
  store { ptr, i64 } %callN, ptr %allocaN, align 8
  %loadN = load { ptr, i64 }, ptr %allocaN, align 8
  %str.ptr = extractvalue { ptr, i64 } %loadN, 0
  %str.len = extractvalue { ptr, i64 } %loadN, 1
  %1 = call i64 @write(i32 1, ptr %str.ptr, i64 %str.len)
  ret void
}

; Function Attrs: nounwind
define internal { ptr, i64 } @__insert_0(ptr %0) #0 {
entry:
  %call = call { ptr, i64 } @build_format(ptr %0, { ptr, i64 } { ptr @str.18, i64 9 })
  ret { ptr, i64 } %call
}

; Function Attrs: nounwind
declare ptr @object_getIvar(ptr, ptr) #0

; Function Attrs: nounwind
define ptr @__SxFoo_alloc_imp(ptr %0, ptr %1) #0 {
entry:
  %call = call ptr @class_createInstance(ptr %0, i64 0)
  %load = load { { ptr, ptr, ptr }, ptr }, ptr @__sx_default_context, align 8
  %sg = extractvalue { { ptr, ptr, ptr }, ptr } %load, 0
  %sgN = extractvalue { ptr, ptr, ptr } %sg, 0
  %sgN = extractvalue { ptr, ptr, ptr } %sg, 1
  %icall = call ptr %sgN(ptr @__sx_default_context, ptr %sgN, i64 32)
  %callN = call ptr @memset(ptr %icall, i32 0, i64 32)
  %gep = getelementptr inbounds { { ptr, ptr, ptr }, i32 }, ptr %icall, i32 0, i32 0
  store { ptr, ptr, ptr } %sg, ptr %gep, align 8
  %loadN = load ptr, ptr @__SxFoo_state_ivar, align 8
  call void @object_setIvar(ptr %call, ptr %loadN, ptr %icall)
  ret ptr %call
}

; Function Attrs: nounwind
declare ptr @class_createInstance(ptr, i64) #0

; Function Attrs: nounwind
declare void @object_setIvar(ptr, ptr, ptr) #0

; Function Attrs: nounwind
define void @__SxFoo_dealloc_imp(ptr %0, ptr %1) #0 {
entry:
  %load = load ptr, ptr @__SxFoo_state_ivar, align 8
  %call = call ptr @object_getIvar(ptr %0, ptr %load)
  %gep = getelementptr inbounds { { ptr, ptr, ptr }, i32 }, ptr %call, i32 0, i32 0
  %loadN = load { ptr, ptr, ptr }, ptr %gep, align 8
  %sg = extractvalue { ptr, ptr, ptr } %loadN, 0
  %sgN = extractvalue { ptr, ptr, ptr } %loadN, 2
  call void %sgN(ptr @__sx_default_context, ptr %sg, ptr %call)
  call void @object_setIvar(ptr %0, ptr %load, ptr null)
  %alloca = alloca { ptr, ptr }, align 8
  %gepN = getelementptr inbounds { ptr, ptr }, ptr %alloca, i32 0, i32 0
  store ptr %0, ptr %gepN, align 8
  %loadN = load ptr, ptr @__SxFoo_class, align 8
  %gepN = getelementptr inbounds { ptr, ptr }, ptr %alloca, i32 0, i32 1
  store ptr %loadN, ptr %gepN, align 8
  %callN = call ptr @sel_registerName(ptr @__sx_objc_cstr_dealloc)
  call void @objc_msgSendSuper2(ptr %alloca, ptr %callN)
  ret void
}

; Function Attrs: nounwind
declare ptr @sel_registerName(ptr) #0

; Function Attrs: nounwind
declare void @objc_msgSendSuper2(ptr, ptr) #0

; Function Attrs: nounwind
define void @__SxFoo_bump_imp(ptr %0, ptr %1) #0 {
entry:
  call void @SxFoo.bump(ptr @__sx_default_context, ptr %0)
  ret void
}

declare i64 @write(i32, ptr, i64)

declare ptr @objc_getClass(ptr)

declare ptr @objc_allocateClassPair(ptr, ptr, i64)

declare i8 @class_addIvar(ptr, ptr, i64, i8, ptr)

declare i8 @class_addMethod(ptr, ptr, ptr, ptr)

declare void @objc_registerClassPair(ptr)

declare ptr @class_getInstanceVariable(ptr, ptr)

define internal void @__sx_objc_defined_class_init() {
entry:
  %super_cls = call ptr @objc_getClass(ptr @OBJC_CLASS_NAME_)
  %cls = call ptr @objc_allocateClassPair(ptr %super_cls, ptr @OBJC_CLASS_NAME_.19, i64 0)
  %0 = call i8 @class_addIvar(ptr %cls, ptr @OBJC_IVAR_NAME_, i64 8, i8 3, ptr @OBJC_IVAR_TYPE_)
  %metacls = call ptr @object_getClass(ptr %cls)
  %sel = call ptr @sel_registerName(ptr @OBJC_METH_VAR_NAME_)
  %1 = call i8 @class_addMethod(ptr %cls, ptr %sel, ptr @__SxFoo_bump_imp, ptr @OBJC_METH_VAR_TYPE_)
  call void @objc_registerClassPair(ptr %cls)
  store ptr %cls, ptr @__SxFoo_class, align 8
  %sel_dealloc = call ptr @sel_registerName(ptr @OBJC_METH_VAR_NAME_.20)
  %2 = call i8 @class_addMethod(ptr %cls, ptr %sel_dealloc, ptr @__SxFoo_dealloc_imp, ptr @OBJC_METH_VAR_TYPE_.21)
  %sel_alloc = call ptr @sel_registerName(ptr @OBJC_METH_VAR_NAME_.22)
  %3 = call i8 @class_addMethod(ptr %metacls, ptr %sel_alloc, ptr @__SxFoo_alloc_imp, ptr @OBJC_METH_VAR_TYPE_.23)
  %iv = call ptr @class_getInstanceVariable(ptr %cls, ptr @OBJC_IVAR_NAME_)
  store ptr %iv, ptr @__SxFoo_state_ivar, align 8
  ret void
}

declare ptr @object_getClass(ptr)

declare ptr @objc_getProtocol(ptr)

declare i8 @class_addProtocol(ptr, ptr)
