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
  %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
  %st6.global-to-local = alloca x86_fp80, align 4
  %st7.global-to-local = alloca x86_fp80, align 4
  %v0_3 = load i32, i32* %edi.global-to-local, align 4
  %v0_4 = load i32, i32* %ebx.global-to-local, align 4
  store i32 %arg1, i32* %edi.global-to-local, align 4
  %v0_8 = load i32, i32* @eax, align 8
  store i32 %v0_8, i32* %ebx.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* @eax 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_c = load double, double* bitcast (i32* @ecx to double*), align 8
  %v4_c = fpext double %v3_c to x86_fp80
  store x86_fp80 %v4_c, x86_fp80* %st6.global-to-local, align 4
  %v3_e = load double, double* bitcast (i32* @edx to double*), align 8
  %v4_e = fpext double %v3_e to x86_fp80
  %v5_e = add i3 %v0_a, -3
  store x86_fp80 %v4_e, x86_fp80* %st5.global-to-local, align 4
  %v2_12 = call x86_fp80 @llvm.fabs.f80(x86_fp80 %v4_c)
  store x86_fp80 %v2_12, x86_fp80* %st4.global-to-local, align 4
  store i3 %v5_e, i3* %fpu_stat_TOP.global-to-local, align 1
  %v0_1a = load i32, i32* %fpsw.global-to-local, align 4
  %v1_1a = call i16 @__asm_fnstsw(i32 %v0_1a)
  %v2_1a = sext i16 %v1_1a to i32
  %v3_1a = load i32, i32* @eax, align 8
  %v4_1a = and i32 %v3_1a, -65536
  %v1_1c = udiv i32 %v2_1a, 256
  %v2_1c = trunc i32 %v1_1c to i8
  %v3_1c = and i8 %v2_1c, 65
  %v4_1c = icmp eq i8 %v3_1c, 0
  %v9_1c = zext i8 %v3_1c to i32
  %v11_1c = mul i32 %v9_1c, 256
  %v2_1a.masked = and i32 %v2_1a, -65281
  %v12_1c = or i32 %v4_1a, %v2_1a.masked
  %v13_1c = or i32 %v12_1c, %v11_1c
  store i32 %v13_1c, i32* @eax, align 8
  br i1 %v4_1c, label %dec_label_pc_23, label %dec_label_pc_21

dec_label_pc_21:                                  ; preds = %dec_label_pc_0
  %v2_21 = load x86_fp80, x86_fp80* %st5.global-to-local, align 4
  %v3_21 = load x86_fp80, x86_fp80* %st6.global-to-local, align 4
  store x86_fp80 %v3_21, x86_fp80* %st5.global-to-local, align 4
  store x86_fp80 %v2_21, x86_fp80* %st6.global-to-local, align 4
  br label %dec_label_pc_23

dec_label_pc_23:                                  ; preds = %dec_label_pc_21, %dec_label_pc_0
  %v0_25 = load i32, i32* %fpsw.global-to-local, align 4
  %v1_25 = call i16 @__asm_fnstsw(i32 %v0_25)
  %v2_25 = sext i16 %v1_25 to i32
  %v3_25 = load i32, i32* @eax, align 8
  %v4_25 = and i32 %v3_25, -65536
  %tmp242 = udiv i32 %v2_25, 2
  %v12_29 = and i32 %tmp242, 32512
  %v2_25.masked = and i32 %v2_25, -65281
  %v13_29 = or i32 %v4_25, %v2_25.masked
  %v14_29 = or i32 %v13_29, %v12_29
  store i32 %v14_29, i32* @eax, align 8
  %v0_35 = load i3, i3* %fpu_stat_TOP.global-to-local, align 1
  %v2_35 = load x86_fp80, x86_fp80* %st7.global-to-local, align 4
  %v3_37 = fmul x86_fp80 %v2_35, %v2_35
  store x86_fp80 %v3_37, x86_fp80* %st6.global-to-local, align 4
  %v2_39 = load i32, i32* %edi.global-to-local, align 4
  %v3_39 = add i32 %v2_39, 56
  %v4_39 = inttoptr i32 %v3_39 to double*
  %v5_39 = load double, double* %v4_39, align 4
  %v6_39 = fpext double %v5_39 to x86_fp80
  %v7_39 = fdiv x86_fp80 %v3_37, %v6_39
  %v4_3e = fsub x86_fp80 0xK3FFF8000000000000000, %v7_39
  store x86_fp80 %v4_3e, x86_fp80* %st6.global-to-local, align 4
  store x86_fp80 %v3_37, x86_fp80* %st5.global-to-local, align 4
  store x86_fp80 %v3_37, x86_fp80* %st4.global-to-local, align 4
  %v4_4a = fsub x86_fp80 %v3_37, %v3_37
  %v4_4c = fmul x86_fp80 %v4_4a, %v4_3e
  %v3_4e = add i32 %v2_39, 24
  %v4_4e = inttoptr i32 %v3_4e to double*
  %v5_4e = load double, double* %v4_4e, align 4
  %v6_4e = fpext double %v5_4e to x86_fp80
  %v7_4e = fadd x86_fp80 %v4_4c, %v6_4e
  %v2_51 = load i32, i32* %ebx.global-to-local, align 4
  %v3_51 = fptrunc x86_fp80 %v7_4e to double
  %v4_51 = inttoptr i32 %v2_51 to double*
  store double %v3_51, double* %v4_51, align 4
  %v2_53 = load x86_fp80, x86_fp80* %st4.global-to-local, align 4
  %v3_53 = load x86_fp80, x86_fp80* %st5.global-to-local, align 4
  %v4_53 = fadd x86_fp80 %v2_53, %v3_53
  %v2_55 = call x86_fp80 @llvm.sqrt.f80(x86_fp80 %v4_53)
  store x86_fp80 %v2_55, x86_fp80* %st5.global-to-local, align 4
  %v3_57 = load x86_fp80, x86_fp80* %st7.global-to-local, align 4
  %v4_57 = fmul x86_fp80 %v2_55, %v3_57
  %v2_59 = load x86_fp80, x86_fp80* %st6.global-to-local, align 4
  %v4_59 = fmul x86_fp80 %v4_57, %v2_59
  %v4_5b = fmul x86_fp80 %v4_59, %v4_59
  %v3_5d = fadd x86_fp80 %v4_5b, %v4_5b
  store x86_fp80 %v3_5d, x86_fp80* %st7.global-to-local, align 4
  %v3_5f = add i32 %v2_39, 40
  %v4_5f = inttoptr i32 %v3_5f to double*
  %v5_5f = load double, double* %v4_5f, align 4
  %v6_5f = fpext double %v5_5f to x86_fp80
  %v7_5f = fadd x86_fp80 %v3_5d, %v6_5f
  store x86_fp80 %v7_5f, x86_fp80* %st7.global-to-local, align 4
  %v2_62 = load i32, i32* @ecx, align 8
  %v3_62 = fptrunc x86_fp80 %v7_5f to double
  %v4_62 = inttoptr i32 %v2_62 to double*
  store double %v3_62, double* %v4_62, align 4
  %v1_64 = add i32 %v2_39, 48
  %v2_64 = inttoptr i32 %v1_64 to i32*
  %v3_64 = load i32, i32* %v2_64, 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 %v3_64, -16
  %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 = fmul x86_fp80 %v3_67, %v6_69
  store x86_fp80 %v7_69, x86_fp80* %st7.global-to-local, align 4
  %v3_6c = add i32 %v2_39, 32
  %v4_6c = inttoptr i32 %v3_6c to double*
  %v5_6c = load double, double* %v4_6c, align 4
  %v6_6c = fpext double %v5_6c to x86_fp80
  %v7_6c = fadd x86_fp80 %v7_69, %v6_6c
  store x86_fp80 %v7_6c, x86_fp80* %st7.global-to-local, align 4
  %v2_6f = load i32, i32* @edx, align 8
  %v3_6f = fptrunc x86_fp80 %v7_6c to double
  %v4_6f = inttoptr i32 %v2_6f to double*
  store double %v3_6f, double* %v4_6f, align 4
  %v5_6f = add i3 %v0_35, 3
  store i3 %v5_6f, i3* %fpu_stat_TOP.global-to-local, align 1
  store i32 %v0_4, i32* %ebx.global-to-local, align 4
  store i32 %v0_3, i32* %edi.global-to-local, align 4
  %v0_74 = load i32, i32* @eax, align 8
  ret i32 %v0_74
}

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

declare i16 @__asm_fnstsw(i32) local_unnamed_addr

; Function Attrs: nounwind readnone speculatable
declare x86_fp80 @llvm.sqrt.f80(x86_fp80) #0

attributes #0 = { nounwind readnone speculatable }
