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

@eax = internal unnamed_addr global i32 0, align 8
@ecx = internal unnamed_addr global i32 0, align 8

define i32 @function_0(i32 %arg1) local_unnamed_addr {
dec_label_pc_0:
  %edi.global-to-local = alloca i32, align 4
  %edx.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
  %st2.global-to-local = alloca x86_fp80, align 4
  %st4.global-to-local = alloca x86_fp80, align 4
  %st5.global-to-local = alloca x86_fp80, align 4
  %st7.global-to-local = alloca x86_fp80, align 4
  %v0_3 = load i32, i32* %esi.global-to-local, align 4
  %v0_4 = load i32, i32* %edi.global-to-local, align 4
  store i32 %arg1, i32* %esi.global-to-local, align 4
  %v0_8 = load i32, i32* @eax, align 8
  store i32 %v0_8, i32* %edi.global-to-local, align 4
  %v0_a = load i3, i3* %fpu_stat_TOP.global-to-local, align 1
  %v3_a = load double, double* bitcast (i32* @ecx to double*), align 8
  %v4_a = fpext double %v3_a to x86_fp80
  store x86_fp80 %v4_a, x86_fp80* %st7.global-to-local, align 4
  %v3_e = load double, double* bitcast (i32* @eax to double*), align 8
  %v4_e = fpext double %v3_e to x86_fp80
  store x86_fp80 %v4_e, x86_fp80* %st5.global-to-local, align 4
  %v4_12 = fmul x86_fp80 %v4_a, %v4_a
  store x86_fp80 %v4_12, x86_fp80* %st4.global-to-local, align 4
  %v3_18 = add i3 %v0_a, 2
  store i3 %v3_18, i3* %fpu_stat_TOP.global-to-local, align 1
  %v4_1a = fmul x86_fp80 %v4_e, %v4_e
  store x86_fp80 %v4_1a, x86_fp80* %st2.global-to-local, align 4
  %v0_1e = load i32, i32* %fpsw.global-to-local, align 4
  %v1_1e = call i16 @__asm_fnstsw(i32 %v0_1e)
  %v2_1e = sext i16 %v1_1e to i32
  %v3_1e = load i32, i32* @eax, align 8
  %v4_1e = and i32 %v3_1e, -65536
  %v1_20 = udiv i32 %v2_1e, 256
  %v2_20 = trunc i32 %v1_20 to i8
  %v3_20 = and i8 %v2_20, 65
  %v4_20 = icmp eq i8 %v3_20, 0
  %v9_20 = zext i8 %v3_20 to i32
  %v11_20 = mul i32 %v9_20, 256
  %v2_1e.masked = and i32 %v2_1e, -65281
  %v12_20 = or i32 %v4_1e, %v2_1e.masked
  %v13_20 = or i32 %v12_20, %v11_20
  store i32 %v13_20, i32* @eax, align 8
  br i1 %v4_20, label %dec_label_pc_2d, label %dec_label_pc_25

dec_label_pc_25:                                  ; preds = %dec_label_pc_0
  %v2_25 = load x86_fp80, x86_fp80* %st2.global-to-local, align 4
  %v3_25 = load x86_fp80, x86_fp80* %st4.global-to-local, align 4
  store x86_fp80 %v2_25, x86_fp80* %st4.global-to-local, align 4
  %v3_27 = load x86_fp80, x86_fp80* %st5.global-to-local, align 4
  %v3_29 = load x86_fp80, x86_fp80* %st7.global-to-local, align 4
  store x86_fp80 %v3_27, x86_fp80* %st7.global-to-local, align 4
  store x86_fp80 %v3_25, x86_fp80* %st2.global-to-local, align 4
  store x86_fp80 %v3_29, x86_fp80* %st5.global-to-local, align 4
  br label %dec_label_pc_2d

dec_label_pc_2d:                                  ; preds = %dec_label_pc_25, %dec_label_pc_0
  %v0_2f = load i32, i32* %fpsw.global-to-local, align 4
  %v1_2f = call i16 @__asm_fnstsw(i32 %v0_2f)
  %v2_2f = sext i16 %v1_2f to i32
  %v3_2f = load i32, i32* @eax, align 8
  %v4_2f = and i32 %v3_2f, -65536
  %v3_31 = and i32 %v2_2f, 16640
  %v2_2f.masked = and i32 %v2_2f, -65281
  %v12_31 = or i32 %v4_2f, %v2_2f.masked
  %v13_31 = or i32 %v12_31, %v3_31
  store i32 %v13_31, i32* @eax, align 8
  %v0_42 = load i32, i32* %fpsw.global-to-local, align 4
  %v1_42 = call i16 @__asm_fnstsw(i32 %v0_42)
  %v2_42 = sext i16 %v1_42 to i32
  %v3_42 = load i32, i32* @eax, align 8
  %v4_42 = and i32 %v3_42, -65536
  %v3_44 = and i32 %v2_42, 16640
  %v2_42.masked = and i32 %v2_42, -65281
  %v12_44 = or i32 %v4_42, %v2_42.masked
  %v13_44 = or i32 %v12_44, %v3_44
  store i32 %v13_44, i32* @eax, align 8
  %v2_51 = load x86_fp80, x86_fp80* %st7.global-to-local, align 4
  %v0_53 = load i3, i3* %fpu_stat_TOP.global-to-local, align 1
  %v4_53 = fsub x86_fp80 %v2_51, %v2_51
  %v4_55 = fsub x86_fp80 %v4_53, %v4_53
  store x86_fp80 %v4_55, x86_fp80* %st7.global-to-local, align 4
  %v2_57 = load i32, i32* %esi.global-to-local, align 4
  %v3_57 = add i32 %v2_57, 24
  %v4_57 = inttoptr i32 %v3_57 to double*
  %v5_57 = load double, double* %v4_57, align 4
  %v6_57 = fpext double %v5_57 to x86_fp80
  %v7_57 = fadd x86_fp80 %v4_55, %v6_57
  store x86_fp80 %v7_57, x86_fp80* %st7.global-to-local, align 4
  %v2_5a = load i32, i32* %edi.global-to-local, align 4
  %v3_5a = fptrunc x86_fp80 %v7_57 to double
  %v4_5a = inttoptr i32 %v2_5a to double*
  store double %v3_5a, double* %v4_5a, align 4
  %v2_5c = load x86_fp80, x86_fp80* %st7.global-to-local, align 4
  %v4_5c = fmul x86_fp80 %v2_5c, %v2_5c
  %v4_5e = fmul x86_fp80 %v4_5c, %v4_5c
  %v3_60 = fadd x86_fp80 %v4_5e, %v4_5e
  store x86_fp80 %v3_60, x86_fp80* %st7.global-to-local, align 4
  %v3_62 = add i32 %v2_57, 32
  %v4_62 = inttoptr i32 %v3_62 to double*
  %v5_62 = load double, double* %v4_62, align 4
  %v6_62 = fpext double %v5_62 to x86_fp80
  %v7_62 = fadd x86_fp80 %v3_60, %v6_62
  store x86_fp80 %v7_62, x86_fp80* %st7.global-to-local, align 4
  %v2_65 = load i32, i32* %edx.global-to-local, align 8
  %v3_65 = fptrunc x86_fp80 %v7_62 to double
  %v4_65 = inttoptr i32 %v2_65 to double*
  store double %v3_65, double* %v4_65, align 4
  %v1_67 = load x86_fp80, x86_fp80* %st7.global-to-local, align 4
  %v3_67 = fadd x86_fp80 %v1_67, %v1_67
  store x86_fp80 %v3_67, x86_fp80* %st7.global-to-local, align 4
  %v3_69 = add i32 %v2_57, 40
  %v4_69 = inttoptr i32 %v3_69 to double*
  %v5_69 = load double, double* %v4_69, align 4
  %v6_69 = fpext double %v5_69 to x86_fp80
  %v7_69 = fadd x86_fp80 %v3_67, %v6_69
  store x86_fp80 %v7_69, x86_fp80* %st7.global-to-local, align 4
  %v2_6c = load i32, i32* @ecx, align 8
  %v3_6c = fptrunc x86_fp80 %v7_69 to double
  %v4_6c = inttoptr i32 %v2_6c to double*
  store double %v3_6c, double* %v4_6c, align 4
  %v5_6c = add i3 %v0_53, -2
  store i3 %v5_6c, i3* %fpu_stat_TOP.global-to-local, align 1
  store i32 %v2_5a, i32* @eax, align 8
  store i32 %v0_4, i32* %edi.global-to-local, align 4
  store i32 %v0_3, i32* %esi.global-to-local, align 4
  ret i32 %v2_5a
}

declare i16 @__asm_fnstsw(i32) local_unnamed_addr
