source_filename = "test"
target datalayout = "e-p:32:32-f64:32:64-f80:32-n8:16:32-S128"

define i32 @function_0(i32 %arg1) local_unnamed_addr {
dec_label_pc_0:
  %eax.global-to-local = alloca i32, align 4
  %edi.global-to-local = alloca i32, align 4
  %esi.global-to-local = alloca i32, align 4
  %fpsw.global-to-local = alloca i32, align 4
  %fpu_stat_TOP.global-to-local = alloca i3, align 1
  %v0_3 = load i32, i32* %eax.global-to-local, align 4
  %v0_4 = load i32, i32* %esi.global-to-local, align 4
  %v0_5 = load i32, i32* %edi.global-to-local, align 4
  store i32 %arg1, i32* %esi.global-to-local, align 4
  %v1_9 = add i32 %arg1, 48
  %v2_9 = inttoptr i32 %v1_9 to i32*
  %v3_9 = load i32, i32* %v2_9, align 4
  store i32 %v3_9, i32* %edi.global-to-local, align 4
  %v0_c = load i3, i3* %fpu_stat_TOP.global-to-local, align 1
  %v6_c = add i3 %v0_c, -1
  store i3 %v6_c, i3* %fpu_stat_TOP.global-to-local, align 1
  %v0_12 = load i32, i32* %fpsw.global-to-local, align 4
  %v1_12 = call i16 @__asm_fnstsw(i32 %v0_12)
  %v2_12 = sext i16 %v1_12 to i32
  %v3_12 = load i32, i32* %eax.global-to-local, align 4
  %v4_12 = and i32 %v3_12, -65536
  %v1_14 = udiv i32 %v2_12, 256
  %v2_14 = trunc i32 %v1_14 to i8
  %v3_14 = and i8 %v2_14, 65
  %v4_14 = icmp eq i8 %v3_14, 0
  %v9_14 = zext i8 %v3_14 to i32
  %v11_14 = mul i32 %v9_14, 256
  %v2_12.masked = and i32 %v2_12, -65281
  %v12_14 = or i32 %v4_12, %v2_12.masked
  %v13_14 = or i32 %v12_14, %v11_14
  store i32 %v13_14, i32* %eax.global-to-local, align 4
  br i1 %v4_14, label %dec_label_pc_1e, label %dec_label_pc_19

dec_label_pc_19:                                  ; preds = %dec_label_pc_0
  %v0_19 = load i32, i32* %edi.global-to-local, align 4
  %v1_19 = add i32 %v0_19, -32
  %v2_19 = inttoptr i32 %v1_19 to i32*
  %v3_19 = load i32, i32* %v2_19, align 4
  store i32 %v3_19, i32* %eax.global-to-local, align 4
  br label %dec_label_pc_30

dec_label_pc_1e:                                  ; preds = %dec_label_pc_0
  %v0_21 = load i32, i32* %fpsw.global-to-local, align 4
  %v1_21 = call i16 @__asm_fnstsw(i32 %v0_21)
  %v2_21 = sext i16 %v1_21 to i32
  %v3_21 = load i32, i32* %eax.global-to-local, align 4
  %v4_21 = and i32 %v3_21, -65536
  %v1_23 = udiv i32 %v2_21, 256
  %v2_23 = trunc i32 %v1_23 to i8
  %v3_23 = and i8 %v2_23, 65
  %v4_23 = icmp eq i8 %v3_23, 0
  %v9_23 = zext i8 %v3_23 to i32
  %v11_23 = mul i32 %v9_23, 256
  %v2_21.masked = and i32 %v2_21, -65281
  %v12_23 = or i32 %v4_21, %v2_21.masked
  %v13_23 = or i32 %v12_23, %v11_23
  store i32 %v13_23, i32* %eax.global-to-local, align 4
  %v0_2d = load i32, i32* %edi.global-to-local, align 4
  br i1 %v4_23, label %dec_label_pc_2d, label %dec_label_pc_28

dec_label_pc_28:                                  ; preds = %dec_label_pc_1e
  %v1_28 = add i32 %v0_2d, -36
  %v2_28 = inttoptr i32 %v1_28 to i32*
  %v3_28 = load i32, i32* %v2_28, align 4
  store i32 %v3_28, i32* %eax.global-to-local, align 4
  br label %dec_label_pc_30

dec_label_pc_2d:                                  ; preds = %dec_label_pc_1e
  %v1_2d = add i32 %v0_2d, -40
  %v2_2d = inttoptr i32 %v1_2d to i32*
  %v3_2d = load i32, i32* %v2_2d, align 4
  store i32 %v3_2d, i32* %eax.global-to-local, align 4
  br label %dec_label_pc_30

dec_label_pc_30:                                  ; preds = %dec_label_pc_2d, %dec_label_pc_28, %dec_label_pc_19
  %v0_46 = phi i32 [ %v0_2d, %dec_label_pc_2d ], [ %v0_2d, %dec_label_pc_28 ], [ %v0_19, %dec_label_pc_19 ]
  %v0_3a = phi i32 [ %v3_2d, %dec_label_pc_2d ], [ %v3_28, %dec_label_pc_28 ], [ %v3_19, %dec_label_pc_19 ]
  %v0_30 = load i3, i3* %fpu_stat_TOP.global-to-local, align 1
  %v4_30 = add i3 %v0_30, 1
  store i3 %v4_30, i3* %fpu_stat_TOP.global-to-local, align 1
  %v2_32 = icmp slt i32 %v0_3a, 0
  %v2_34 = icmp eq i1 %v2_32, false
  br i1 %v2_34, label %dec_label_pc_3a, label %dec_label_pc_36

dec_label_pc_36:                                  ; preds = %dec_label_pc_30
  store i32 0, i32* %eax.global-to-local, align 4
  br label %dec_label_pc_46

dec_label_pc_3a:                                  ; preds = %dec_label_pc_30
  %v7_3f = icmp sgt i32 %v0_3a, 99999
  br i1 %v7_3f, label %dec_label_pc_41, label %dec_label_pc_46

dec_label_pc_41:                                  ; preds = %dec_label_pc_3a
  store i32 99999, i32* %eax.global-to-local, align 4
  br label %dec_label_pc_46

dec_label_pc_46:                                  ; preds = %dec_label_pc_3a, %dec_label_pc_41, %dec_label_pc_36
  %v0_68 = phi i32 [ %v0_3a, %dec_label_pc_3a ], [ 99999, %dec_label_pc_41 ], [ 0, %dec_label_pc_36 ]
  %v1_46 = add i32 %v0_46, -28
  %v2_46 = inttoptr i32 %v1_46 to i32*
  %v3_46 = load i32, i32* %v2_46, align 4
  store i32 %v3_46, i32* %edi.global-to-local, align 4
  %v5_4c = icmp slt i32 %v3_46, 1
  br i1 %v5_4c, label %dec_label_pc_4e, label %dec_label_pc_55

dec_label_pc_4e:                                  ; preds = %dec_label_pc_46
  store i32 1, i32* %edi.global-to-local, align 4
  br label %dec_label_pc_5f

dec_label_pc_55:                                  ; preds = %dec_label_pc_46
  %v7_58 = icmp sgt i32 %v3_46, 6
  br i1 %v7_58, label %dec_label_pc_5a, label %dec_label_pc_5f

dec_label_pc_5a:                                  ; preds = %dec_label_pc_55
  store i32 6, i32* %edi.global-to-local, align 4
  br label %dec_label_pc_5f

dec_label_pc_5f:                                  ; preds = %dec_label_pc_55, %dec_label_pc_5a, %dec_label_pc_4e
  %v1_5f = phi i32 [ %v3_46, %dec_label_pc_55 ], [ 6, %dec_label_pc_5a ], [ 1, %dec_label_pc_4e ]
  %v0_5f = load i32, i32* %esi.global-to-local, align 4
  %v2_5f = mul i32 %v1_5f, 4
  %v3_5f = add i32 %v0_5f, 72
  %v4_5f = add i32 %v3_5f, %v2_5f
  store i32 %v4_5f, i32* %edi.global-to-local, align 4
  %v1_63 = inttoptr i32 %v4_5f to i32*
  %v2_63 = load i32, i32* %v1_63, align 4
  %v10_63 = icmp slt i32 %v2_63, 0
  %v2_66 = icmp eq i1 %v10_63, false
  br i1 %v2_66, label %dec_label_pc_6d, label %dec_label_pc_68

dec_label_pc_68:                                  ; preds = %dec_label_pc_5f
  %v1_68 = or i32 %v0_68, -2147483648
  store i32 %v1_68, i32* %eax.global-to-local, align 4
  br label %dec_label_pc_6d

dec_label_pc_6d:                                  ; preds = %dec_label_pc_68, %dec_label_pc_5f
  %v0_6d = phi i32 [ %v1_68, %dec_label_pc_68 ], [ %v0_68, %dec_label_pc_5f ]
  store i32 %v0_6d, i32* %v1_63, align 4
  store i32 %v0_5, i32* %edi.global-to-local, align 4
  store i32 %v0_4, i32* %esi.global-to-local, align 4
  store i32 %v0_3, i32* %eax.global-to-local, align 4
  ret i32 %v0_3
}

declare i16 @__asm_fnstsw(i32) local_unnamed_addr
