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:
  %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
  %st3.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
  %st6.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
  %v1_8 = add i32 %arg1, 48
  %v2_8 = inttoptr i32 %v1_8 to i32*
  %v3_8 = load i32, i32* %v2_8, align 4
  store i32 %v3_8, i32* %edi.global-to-local, align 4
  %v0_b = load i3, i3* %fpu_stat_TOP.global-to-local, align 1
  %v3_b = load double, double* bitcast (i32* @ecx to double*), align 8
  %tmp237 = call double @llvm.fabs.f64(double %v3_b)
  %v2_d = fpext double %tmp237 to x86_fp80
  store x86_fp80 %v2_d, x86_fp80* %st7.global-to-local, align 4
  %v3_f = load double, double* bitcast (i32* @edx to double*), align 8
  %tmp238 = call double @llvm.fabs.f64(double %v3_f)
  %v2_11 = fpext double %tmp238 to x86_fp80
  store x86_fp80 %v2_11, x86_fp80* %st6.global-to-local, align 4
  %v3_13 = load double, double* bitcast (i32* @eax to double*), align 8
  %tmp239 = call double @llvm.fabs.f64(double %v3_13)
  %v2_15 = fpext double %tmp239 to x86_fp80
  store x86_fp80 %v2_15, x86_fp80* %st5.global-to-local, align 4
  %v2_17 = add i32 %arg1, 56
  %v3_17 = inttoptr i32 %v2_17 to double*
  %v4_17 = load double, double* %v3_17, align 4
  %v5_17 = fpext double %v4_17 to x86_fp80
  store x86_fp80 %v5_17, x86_fp80* %st4.global-to-local, align 4
  %v2_1a = add i32 %v3_8, -24
  %v3_1a = inttoptr i32 %v2_1a to double*
  %v4_1a = load double, double* %v3_1a, align 4
  %v5_1a = fpext double %v4_1a to x86_fp80
  %v6_1a = add i3 %v0_b, 3
  store i3 %v6_1a, i3* %fpu_stat_TOP.global-to-local, align 1
  store x86_fp80 %v5_1a, x86_fp80* %st3.global-to-local, align 4
  %v0_1f = load i32, i32* %fpsw.global-to-local, align 4
  %v1_1f = call i16 @__asm_fnstsw(i32 %v0_1f)
  %v2_1f = sext i16 %v1_1f to i32
  %v3_1f = load i32, i32* @eax, align 8
  %v4_1f = and i32 %v3_1f, -65536
  %v1_21 = udiv i32 %v2_1f, 256
  %v2_21 = trunc i32 %v1_21 to i8
  %v3_21 = and i8 %v2_21, 65
  %v4_21 = icmp eq i8 %v3_21, 0
  %v9_21 = zext i8 %v3_21 to i32
  %v11_21 = mul i32 %v9_21, 256
  %v2_1f.masked = and i32 %v2_1f, -65281
  %v12_21 = or i32 %v4_1f, %v2_1f.masked
  %v13_21 = or i32 %v12_21, %v11_21
  store i32 %v13_21, i32* @eax, align 8
  br i1 %v4_21, label %dec_label_pc_2d, label %dec_label_pc_26

dec_label_pc_26:                                  ; preds = %dec_label_pc_0
  %v0_26 = load i3, i3* %fpu_stat_TOP.global-to-local, align 1
  %v4_26 = add i3 %v0_26, 1
  store i3 %v4_26, i3* %fpu_stat_TOP.global-to-local, align 1
  %v1_28 = load x86_fp80, x86_fp80* %st4.global-to-local, align 4
  %v2_28 = load i32, i32* %edi.global-to-local, align 4
  %v3_28 = add i32 %v2_28, -16
  %v4_28 = inttoptr i32 %v3_28 to double*
  %v5_28 = load double, double* %v4_28, align 4
  %v6_28 = fpext double %v5_28 to x86_fp80
  %v7_28 = fdiv x86_fp80 %v6_28, %v1_28
  store x86_fp80 %v7_28, x86_fp80* %st4.global-to-local, align 4
  br label %dec_label_pc_37

dec_label_pc_2d:                                  ; preds = %dec_label_pc_0
  %v1_2d = load x86_fp80, x86_fp80* %st3.global-to-local, align 4
  %v3_2d = fmul x86_fp80 %v1_2d, %v1_2d
  %v0_2f = load i3, i3* %fpu_stat_TOP.global-to-local, align 1
  %v4_31 = fdiv x86_fp80 0xK3FFF8000000000000000, %v3_2d
  %v3_33 = load x86_fp80, x86_fp80* %st4.global-to-local, align 4
  store x86_fp80 %v4_31, x86_fp80* %st4.global-to-local, align 4
  store x86_fp80 %v3_33, x86_fp80* %st3.global-to-local, align 4
  %v4_35 = add i3 %v0_2f, 1
  store i3 %v4_35, i3* %fpu_stat_TOP.global-to-local, align 1
  br label %dec_label_pc_37

dec_label_pc_37:                                  ; preds = %dec_label_pc_2d, %dec_label_pc_26
  %v0_3b = phi i3 [ %v4_35, %dec_label_pc_2d ], [ %v4_26, %dec_label_pc_26 ]
  %v2_3b = phi x86_fp80 [ %v4_31, %dec_label_pc_2d ], [ %v7_28, %dec_label_pc_26 ]
  %v2_37 = load x86_fp80, x86_fp80* %st6.global-to-local, align 4
  %v4_37 = fmul x86_fp80 %v2_3b, %v2_37
  store x86_fp80 %v4_37, x86_fp80* %st6.global-to-local, align 4
  %v2_39 = load x86_fp80, x86_fp80* %st7.global-to-local, align 4
  %v4_39 = fmul x86_fp80 %v2_3b, %v2_39
  store x86_fp80 %v4_39, x86_fp80* %st7.global-to-local, align 4
  %v3_3b = load x86_fp80, x86_fp80* %st5.global-to-local, align 4
  %v4_3b = fmul x86_fp80 %v2_3b, %v3_3b
  store x86_fp80 %v4_3b, x86_fp80* %st5.global-to-local, align 4
  %v0_3d = load i32, i32* @edx, align 8
  %v1_3d = add i32 %v0_3d, -8
  store i32 %v1_3d, i32* @eax, align 8
  %v2_40 = load i32, i32* %esi.global-to-local, align 4
  %v3_40 = add i32 %v2_40, 24
  %v4_40 = inttoptr i32 %v3_40 to double*
  %v5_40 = load double, double* %v4_40, align 4
  %v6_40 = fpext double %v5_40 to x86_fp80
  %v7_40 = fadd x86_fp80 %v4_3b, %v6_40
  store x86_fp80 %v7_40, x86_fp80* %st5.global-to-local, align 4
  %v3_43 = fptrunc x86_fp80 %v7_40 to double
  %v4_43 = inttoptr i32 %v1_3d to double*
  store double %v3_43, double* %v4_43, align 4
  %v1_45 = load x86_fp80, x86_fp80* %st6.global-to-local, align 4
  %v3_45 = add i32 %v2_40, 32
  %v4_45 = inttoptr i32 %v3_45 to double*
  %v5_45 = load double, double* %v4_45, align 4
  %v6_45 = fpext double %v5_45 to x86_fp80
  %v7_45 = fadd x86_fp80 %v1_45, %v6_45
  store x86_fp80 %v7_45, x86_fp80* %st6.global-to-local, align 4
  %v2_48 = load i32, i32* @edx, align 8
  %v3_48 = fptrunc x86_fp80 %v7_45 to double
  %v4_48 = inttoptr i32 %v2_48 to double*
  store double %v3_48, double* %v4_48, align 4
  %v1_4a = load x86_fp80, x86_fp80* %st7.global-to-local, align 4
  %v3_4a = add i32 %v2_40, 40
  %v4_4a = inttoptr i32 %v3_4a to double*
  %v5_4a = load double, double* %v4_4a, align 4
  %v6_4a = fpext double %v5_4a to x86_fp80
  %v7_4a = fadd x86_fp80 %v1_4a, %v6_4a
  store x86_fp80 %v7_4a, x86_fp80* %st7.global-to-local, align 4
  %v2_4d = load i32, i32* @ecx, align 8
  %v3_4d = fptrunc x86_fp80 %v7_4a to double
  %v4_4d = inttoptr i32 %v2_4d to double*
  store double %v3_4d, double* %v4_4d, align 4
  %v5_4d = xor i3 %v0_3b, -4
  store i3 %v5_4d, i3* %fpu_stat_TOP.global-to-local, align 1
  store i32 %v0_4, i32* %edi.global-to-local, align 4
  store i32 %v0_3, i32* %esi.global-to-local, align 4
  %v0_52 = load i32, i32* @eax, align 8
  ret i32 %v0_52
}

declare i16 @__asm_fnstsw(i32) local_unnamed_addr

; Function Attrs: nounwind readnone speculatable
declare double @llvm.fabs.f64(double) #0

attributes #0 = { nounwind readnone speculatable }
