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
@edx = internal unnamed_addr global i32 0, align 8

define i32 @function_0(i32 %arg1) local_unnamed_addr {
dec_label_pc_0:
  %ebx.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
  %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* %ebx.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 i32, i32* @eax, align 8
  store i32 %v0_c, i32* %ebx.global-to-local, align 4
  %v0_e = load i3, i3* %fpu_stat_TOP.global-to-local, align 1
  %v3_e = load double, double* bitcast (i32* @eax to double*), align 8
  %v4_e = fpext double %v3_e to x86_fp80
  %v4_10 = load double, double* bitcast (i32* @ecx to double*), align 8
  %v5_10 = fpext double %v4_10 to x86_fp80
  %v6_10 = fmul x86_fp80 %v4_e, %v5_10
  store x86_fp80 %v6_10, x86_fp80* %st7.global-to-local, align 4
  %v3_12 = load double, double* bitcast (i32* @edx to double*), align 8
  %v4_12 = fpext double %v3_12 to x86_fp80
  %tmp241 = bitcast double %v4_10 to i64
  %tmp242 = trunc i64 %tmp241 to i32
  %v3_14 = add i32 %tmp242, 8
  %v4_14 = inttoptr i32 %v3_14 to double*
  %v5_14 = load double, double* %v4_14, align 4
  %v6_14 = fpext double %v5_14 to x86_fp80
  %v7_14 = fmul x86_fp80 %v4_12, %v6_14
  %v4_17 = fsub x86_fp80 %v6_10, %v7_14
  %v3_19 = fadd x86_fp80 %v4_17, %v4_17
  store x86_fp80 %v3_19, x86_fp80* %st7.global-to-local, align 4
  %v3_2c = fmul x86_fp80 %v4_e, %v4_e
  %v5_2e = xor i3 %v0_e, -4
  %v3_30 = fmul x86_fp80 %v4_12, %v4_12
  %v4_32 = fadd x86_fp80 %v3_2c, %v3_30
  store x86_fp80 %v4_32, x86_fp80* %st5.global-to-local, align 4
  %v3_36 = fmul x86_fp80 %v5_10, %v5_10
  store x86_fp80 %v3_36, x86_fp80* %st4.global-to-local, align 4
  %v4_38 = load double, double* %v4_14, align 4
  %v5_38 = fpext double %v4_38 to x86_fp80
  %v3_3b = fmul x86_fp80 %v5_38, %v5_38
  %v4_3d = fadd x86_fp80 %v3_36, %v3_3b
  store x86_fp80 %v4_3d, x86_fp80* %st4.global-to-local, align 4
  store i3 %v5_2e, i3* %fpu_stat_TOP.global-to-local, align 1
  %v0_41 = load i32, i32* %fpsw.global-to-local, align 4
  %v1_41 = call i16 @__asm_fnstsw(i32 %v0_41)
  %v2_41 = sext i16 %v1_41 to i32
  %v3_41 = load i32, i32* @eax, align 8
  %v4_41 = and i32 %v3_41, -65536
  %tmp243 = udiv i32 %v2_41, 2
  %v12_43 = and i32 %tmp243, 32512
  %v2_41.masked = and i32 %v2_41, -65281
  %v13_43 = or i32 %v4_41, %v2_41.masked
  %v14_43 = or i32 %v13_43, %v12_43
  store i32 %v14_43, i32* @eax, align 8
  %v15_436 = and i32 %v2_41, 256
  %v16_43 = icmp ne i32 %v15_436, 0
  %v1_45 = icmp eq i1 %v16_43, false
  %v0_6c = load i3, i3* %fpu_stat_TOP.global-to-local, align 1
  %v2_6c = load x86_fp80, x86_fp80* %st4.global-to-local, align 4
  %v3_6c = load x86_fp80, x86_fp80* %st5.global-to-local, align 4
  br i1 %v1_45, label %dec_label_pc_6c, label %dec_label_pc_47

dec_label_pc_47:                                  ; preds = %dec_label_pc_0
  %v4_47 = fdiv x86_fp80 %v2_6c, %v3_6c
  %v4_4d = fsub x86_fp80 0xK3FFF8000000000000000, %v4_47
  store x86_fp80 %v4_4d, x86_fp80* %st5.global-to-local, align 4
  %v3_4f = load double, double* bitcast (i32* @eax to double*), align 8
  %v4_4f = fpext double %v3_4f to x86_fp80
  %v3_51 = fmul x86_fp80 %v4_4f, %v4_4f
  %v3_53 = load double, double* bitcast (i32* @edx to double*), align 8
  %v4_53 = fpext double %v3_53 to x86_fp80
  %v5_53 = add i3 %v0_6c, -1
  %v3_55 = fmul x86_fp80 %v4_53, %v4_53
  %v4_57 = fsub x86_fp80 %v3_51, %v3_55
  %v4_59 = fmul x86_fp80 %v4_4d, %v4_57
  store x86_fp80 %v4_59, x86_fp80* %st4.global-to-local, align 4
  store i3 %v5_53, i3* %fpu_stat_TOP.global-to-local, align 1
  %v6_5e = fmul x86_fp80 %v4_4f, %v4_53
  %tmp244 = bitcast double %v3_53 to i64
  %tmp245 = trunc i64 %tmp244 to i32
  br label %dec_label_pc_60

dec_label_pc_60:                                  ; preds = %dec_label_pc_6c, %dec_label_pc_47
  %v2_64 = phi i32 [ %tmp245, %dec_label_pc_47 ], [ %v2_64.pre, %dec_label_pc_6c ]
  %v0_64 = phi i3 [ %v5_53, %dec_label_pc_47 ], [ %v6_78, %dec_label_pc_6c ]
  %v3_62 = phi x86_fp80 [ %v4_4d, %dec_label_pc_47 ], [ %v4_72, %dec_label_pc_6c ]
  %storemerge5.in.in = phi x86_fp80 [ %v6_5e, %dec_label_pc_47 ], [ %v7_83, %dec_label_pc_6c ]
  %v3_60 = fadd x86_fp80 %storemerge5.in.in, %storemerge5.in.in
  %v4_62 = fmul x86_fp80 %v3_62, %v3_60
  %v3_64 = fptrunc x86_fp80 %v4_62 to double
  %v4_64 = inttoptr i32 %v2_64 to double*
  store double %v3_64, double* %v4_64, align 4
  %v1_66 = load x86_fp80, x86_fp80* %st4.global-to-local, align 4
  %v2_66 = load i32, i32* %ebx.global-to-local, align 4
  %v3_66 = fptrunc x86_fp80 %v1_66 to double
  %v4_66 = inttoptr i32 %v2_66 to double*
  store double %v3_66, double* %v4_66, align 4
  %v1_88 = load x86_fp80, x86_fp80* %st7.global-to-local, align 4
  %v2_88 = load i32, i32* @ecx, align 8
  %v3_88 = add i32 %v2_88, 8
  %v4_88 = fptrunc x86_fp80 %v1_88 to double
  %v5_88 = inttoptr i32 %v3_88 to double*
  store double %v4_88, double* %v5_88, align 4
  %v1_8b = load x86_fp80, x86_fp80* %st7.global-to-local, align 4
  %v2_8b = load i32, i32* @ecx, align 8
  %v3_8b = fptrunc x86_fp80 %v1_8b to double
  %v4_8b = inttoptr i32 %v2_8b to double*
  store double %v3_8b, double* %v4_8b, align 4
  %v1_8d = load i32, i32* %esi.global-to-local, align 4
  %v2_8d = add i32 %v1_8d, 24
  %v3_8d = inttoptr i32 %v2_8d to double*
  %v4_8d = load double, double* %v3_8d, align 4
  %v5_8d = fpext double %v4_8d to x86_fp80
  %v4_90 = load double, double* bitcast (i32* @eax to double*), align 8
  %v5_90 = fpext double %v4_90 to x86_fp80
  %v6_90 = fadd x86_fp80 %v5_8d, %v5_90
  store x86_fp80 %v6_90, x86_fp80* %st7.global-to-local, align 4
  %v3_92 = fptrunc x86_fp80 %v6_90 to double
  store double %v3_92, double* %v4_66, align 4
  %v2_94 = add i32 %v1_8d, 32
  %v3_94 = inttoptr i32 %v2_94 to double*
  %v4_94 = load double, double* %v3_94, align 4
  %v5_94 = fpext double %v4_94 to x86_fp80
  %v4_97 = load double, double* bitcast (i32* @edx to double*), align 8
  %v5_97 = fpext double %v4_97 to x86_fp80
  %v6_97 = fadd x86_fp80 %v5_94, %v5_97
  store x86_fp80 %v6_97, x86_fp80* %st7.global-to-local, align 4
  %tmp246 = bitcast double %v4_97 to i64
  %tmp247 = trunc i64 %tmp246 to i32
  %v3_99 = fptrunc x86_fp80 %v6_97 to double
  %v4_99 = inttoptr i32 %tmp247 to double*
  store double %v3_99, double* %v4_99, align 4
  %v2_9b = add i32 %v1_8d, 40
  %v3_9b = inttoptr i32 %v2_9b to double*
  %v4_9b = load double, double* %v3_9b, align 4
  %v5_9b = fpext double %v4_9b to x86_fp80
  %v4_9e = load double, double* bitcast (i32* @ecx to double*), align 8
  %v5_9e = fpext double %v4_9e to x86_fp80
  %v6_9e = fadd x86_fp80 %v5_9b, %v5_9e
  store x86_fp80 %v6_9e, x86_fp80* %st7.global-to-local, align 4
  %tmp248 = bitcast double %v4_9e to i64
  %tmp249 = trunc i64 %tmp248 to i32
  %v3_a0 = fptrunc x86_fp80 %v6_9e to double
  %v4_a0 = inttoptr i32 %tmp249 to double*
  store double %v3_a0, double* %v4_a0, align 4
  %v2_a2 = add i32 %v1_8d, -56
  %v3_a2 = inttoptr i32 %v2_a2 to double*
  %v4_a2 = load double, double* %v3_a2, align 4
  %v5_a2 = fpext double %v4_a2 to x86_fp80
  store x86_fp80 %v5_a2, x86_fp80* %st7.global-to-local, align 4
  %v2_a5 = load i32, i32* %edi.global-to-local, align 4
  %v3_a5 = add i32 %v2_a5, -16
  %v4_a5 = inttoptr i32 %v3_a5 to double*
  %v5_a5 = load double, double* %v4_a5, align 4
  %v6_a5 = fpext double %v5_a5 to x86_fp80
  %v7_a5 = fadd x86_fp80 %v5_a2, %v6_a5
  store x86_fp80 %v7_a5, x86_fp80* %st7.global-to-local, align 4
  %v2_a8 = load i32, i32* @ecx, align 8
  %v3_a8 = add i32 %v2_a8, 8
  %v4_a8 = inttoptr i32 %v3_a8 to double*
  %v5_a8 = load double, double* %v4_a8, align 4
  %v6_a8 = fpext double %v5_a8 to x86_fp80
  %v7_a8 = fadd x86_fp80 %v7_a5, %v6_a8
  store x86_fp80 %v7_a8, x86_fp80* %st7.global-to-local, align 4
  %v4_ab = fptrunc x86_fp80 %v7_a8 to double
  store double %v4_ab, double* %v4_a8, align 4
  %v6_ab = add i3 %v0_64, -3
  store i3 %v6_ab, i3* %fpu_stat_TOP.global-to-local, align 1
  store i32 %v2_66, i32* @eax, align 8
  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* %ebx.global-to-local, align 4
  ret i32 %v2_66

dec_label_pc_6c:                                  ; preds = %dec_label_pc_0
  %v4_6c = fdiv x86_fp80 %v3_6c, %v2_6c
  %v4_72 = fadd x86_fp80 %v4_6c, 0xKBFFF8000000000000000
  store x86_fp80 %v4_72, x86_fp80* %st5.global-to-local, align 4
  %v3_74 = load double, double* bitcast (i32* @ecx to double*), align 8
  %v4_74 = fpext double %v3_74 to x86_fp80
  %v3_76 = fmul x86_fp80 %v4_74, %v4_74
  store x86_fp80 %v3_76, x86_fp80* %st4.global-to-local, align 4
  %tmp250 = bitcast double %v3_74 to i64
  %tmp251 = trunc i64 %tmp250 to i32
  %v2_78 = add i32 %tmp251, 8
  %v3_78 = inttoptr i32 %v2_78 to double*
  %v4_78 = load double, double* %v3_78, align 4
  %v5_78 = fpext double %v4_78 to x86_fp80
  %v6_78 = add i3 %v0_6c, -1
  %v3_7b = fmul x86_fp80 %v5_78, %v5_78
  %v4_7d = fsub x86_fp80 %v3_76, %v3_7b
  %v4_7f = fmul x86_fp80 %v4_72, %v4_7d
  store x86_fp80 %v4_7f, x86_fp80* %st4.global-to-local, align 4
  store i3 %v6_78, i3* %fpu_stat_TOP.global-to-local, align 1
  %v5_83 = load double, double* %v3_78, align 4
  %v6_83 = fpext double %v5_83 to x86_fp80
  %v7_83 = fmul x86_fp80 %v4_74, %v6_83
  %v2_64.pre = load i32, i32* @edx, align 8
  br label %dec_label_pc_60
}

declare i16 @__asm_fnstsw(i32) local_unnamed_addr
