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:
  %ebp.global-to-local = alloca i32, align 4
  %ebx.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_0 = load i32, i32* %ebp.global-to-local, align 4
  %v0_3 = load i32, i32* %esi.global-to-local, align 4
  %v0_4 = load i32, i32* %ebx.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* %ebx.global-to-local, align 4
  %v1_a = add i32 %arg1, 48
  %v2_a = inttoptr i32 %v1_a to i32*
  %v3_a = load i32, i32* %v2_a, align 4
  store i32 %v3_a, i32* %esi.global-to-local, align 4
  %v0_d = load i3, i3* %fpu_stat_TOP.global-to-local, align 1
  %v1_d = load i32, i32* @ecx, align 8
  %v2_d = add i32 %v1_d, 8
  %v3_d = inttoptr i32 %v2_d to double*
  %v4_d = load double, double* %v3_d, align 4
  %v5_d = fpext double %v4_d to x86_fp80
  %v3_10 = fmul x86_fp80 %v5_d, %v5_d
  %v3_12 = load double, double* bitcast (i32* @edx to double*), align 8
  %v4_12 = fpext double %v3_12 to x86_fp80
  %v5_12 = add i3 %v0_d, -2
  %v3_14 = fmul x86_fp80 %v4_12, %v4_12
  %v4_16 = fadd x86_fp80 %v3_10, %v3_14
  %v3_18 = load double, double* bitcast (i32* @ecx to double*), align 8
  %v4_18 = fpext double %v3_18 to x86_fp80
  %v3_1a = fmul x86_fp80 %v4_18, %v4_18
  %v4_1c = fadd x86_fp80 %v3_1a, %v4_16
  %v2_1e = call x86_fp80 @llvm.sqrt.f80(x86_fp80 %v4_1c)
  store x86_fp80 %v2_1e, x86_fp80* %st7.global-to-local, align 4
  store i3 %v5_12, i3* %fpu_stat_TOP.global-to-local, align 1
  store x86_fp80 %v2_1e, x86_fp80* %st6.global-to-local, align 4
  %v2_22 = call x86_fp80 @llvm.fabs.f80(x86_fp80 %v2_1e)
  %v3_22 = fcmp olt x86_fp80 %v2_22, 0xK403E8000000000000000
  br i1 %v3_22, label %bb, label %bb235

bb:                                               ; preds = %dec_label_pc_0
  %v4_22 = call x86_fp80 @llvm.sin.f80(x86_fp80 %v2_1e)
  store x86_fp80 %v4_22, x86_fp80* %st6.global-to-local, align 4
  %v7_22 = call x86_fp80 @llvm.cos.f80(x86_fp80 %v2_1e)
  %v8_22 = add i3 %v0_d, -3
  store i3 %v8_22, i3* %fpu_stat_TOP.global-to-local, align 1
  store x86_fp80 %v7_22, x86_fp80* %st5.global-to-local, align 4
  br label %bb235

bb235:                                            ; preds = %dec_label_pc_0, %bb
  %v0_26 = phi i3 [ %v5_12, %dec_label_pc_0 ], [ %v8_22, %bb ]
  %v3_26 = load double, double* bitcast (i32* @eax to double*), align 8
  %v4_26 = fpext double %v3_26 to x86_fp80
  %v4_2a = fmul x86_fp80 %v4_26, 0xK3FFFB8AA3B295C17F000
  store x86_fp80 %v4_2a, x86_fp80* %st4.global-to-local, align 4
  store x86_fp80 0xK3FFF8000000000000000, x86_fp80* %st3.global-to-local, align 4
  %v3_2e = add i3 %v0_26, -3
  store i3 %v3_2e, i3* %fpu_stat_TOP.global-to-local, align 1
  %v3_30 = call i32 @__asm_fprem(i32 %v0_4, i32 %v0_3, i32 %v0_0)
  store i32 %v3_30, i32* @eax, align 8
  %v0_32 = call i32 @__asm_f2xm1()
  store i32 %v0_32, i32* @eax, align 8
  %v3_34 = load x86_fp80, x86_fp80* %st3.global-to-local, align 4
  %v4_34 = fadd x86_fp80 %v4_2a, %v3_34
  store x86_fp80 %v4_34, x86_fp80* %st3.global-to-local, align 4
  %v7_34 = add i3 %v0_26, -2
  store i3 %v7_34, i3* %fpu_stat_TOP.global-to-local, align 1
  %v0_36 = call i32 @__asm_fscale()
  store i32 %v0_36, i32* @eax, align 8
  store x86_fp80 %v4_34, x86_fp80* %st4.global-to-local, align 4
  %v3_3e = load x86_fp80, x86_fp80* %st5.global-to-local, align 4
  %v4_3e = fmul x86_fp80 %v4_34, %v3_3e
  %v2_40 = load i32, i32* %ebx.global-to-local, align 4
  %v3_40 = fptrunc x86_fp80 %v4_3e to double
  %v4_40 = inttoptr i32 %v2_40 to double*
  store double %v3_40, double* %v4_40, align 4
  %v5_40 = add i3 %v0_26, -1
  %v2_42 = load x86_fp80, x86_fp80* %st4.global-to-local, align 4
  %v3_42 = load x86_fp80, x86_fp80* %st6.global-to-local, align 4
  %v4_42 = fmul x86_fp80 %v2_42, %v3_42
  store x86_fp80 %v4_42, x86_fp80* %st4.global-to-local, align 4
  %v2_44 = load x86_fp80, x86_fp80* %st7.global-to-local, align 4
  store x86_fp80 %v2_44, x86_fp80* %st3.global-to-local, align 4
  store i3 %v5_40, i3* %fpu_stat_TOP.global-to-local, align 1
  %v0_4a = load i32, i32* %fpsw.global-to-local, align 4
  %v1_4a = call i16 @__asm_fnstsw(i32 %v0_4a)
  %v2_4a = sext i16 %v1_4a to i32
  %v3_4a = load i32, i32* @eax, align 8
  %v4_4a = and i32 %v3_4a, -65536
  %v1_4c = udiv i32 %v2_4a, 256
  %v2_4c = trunc i32 %v1_4c to i8
  %v3_4c = and i8 %v2_4c, 65
  %v4_4c = icmp eq i8 %v3_4c, 0
  %v9_4c = zext i8 %v3_4c to i32
  %v11_4c = mul i32 %v9_4c, 256
  %v2_4a.masked = and i32 %v2_4a, -65281
  %v12_4c = or i32 %v4_4a, %v2_4a.masked
  %v13_4c = or i32 %v12_4c, %v11_4c
  store i32 %v13_4c, i32* @eax, align 8
  %v3_55.pre = load x86_fp80, x86_fp80* %st4.global-to-local, align 4
  br i1 %v4_4c, label %dec_label_pc_53, label %dec_label_pc_51

dec_label_pc_51:                                  ; preds = %bb235
  %v3_51 = load x86_fp80, x86_fp80* %st7.global-to-local, align 4
  %v4_51 = fdiv x86_fp80 %v3_55.pre, %v3_51
  store x86_fp80 %v4_51, x86_fp80* %st4.global-to-local, align 4
  br label %dec_label_pc_53

dec_label_pc_53:                                  ; preds = %bb235, %dec_label_pc_51
  %v3_55 = phi x86_fp80 [ %v4_51, %dec_label_pc_51 ], [ %v3_55.pre, %bb235 ]
  %v0_53 = load i3, i3* %fpu_stat_TOP.global-to-local, align 1
  %v3_53 = load double, double* bitcast (i32* @edx to double*), align 8
  %v4_53 = fpext double %v3_53 to x86_fp80
  %v4_55 = fmul x86_fp80 %v3_55, %v4_53
  %tmp236 = bitcast double %v3_53 to i64
  %tmp237 = trunc i64 %tmp236 to i32
  %v3_57 = fptrunc x86_fp80 %v4_55 to double
  %v4_57 = inttoptr i32 %tmp237 to double*
  store double %v3_57, double* %v4_57, align 4
  %v3_59 = load double, double* bitcast (i32* @ecx to double*), align 8
  %v4_59 = fpext double %v3_59 to x86_fp80
  %v3_5b = load x86_fp80, x86_fp80* %st4.global-to-local, align 4
  %v4_5b = fmul x86_fp80 %v3_5b, %v4_59
  store x86_fp80 %v4_5b, x86_fp80* %st3.global-to-local, align 4
  %tmp238 = bitcast double %v3_59 to i64
  %tmp239 = trunc i64 %tmp238 to i32
  %v3_5d = fptrunc x86_fp80 %v4_5b to double
  %v4_5d = inttoptr i32 %tmp239 to double*
  store double %v3_5d, double* %v4_5d, align 4
  %v1_5f = load i32, i32* @ecx, align 8
  %v2_5f = add i32 %v1_5f, 8
  %v3_5f = inttoptr i32 %v2_5f to double*
  %v4_5f = load double, double* %v3_5f, align 4
  %v5_5f = fpext double %v4_5f to x86_fp80
  %v3_62 = load x86_fp80, x86_fp80* %st4.global-to-local, align 4
  %v4_62 = fmul x86_fp80 %v3_62, %v5_5f
  store x86_fp80 %v4_62, x86_fp80* %st3.global-to-local, align 4
  %v4_64 = fptrunc x86_fp80 %v4_62 to double
  store double %v4_64, double* %v3_5f, align 4
  %v4_6d = xor i3 %v0_53, -4
  store i3 %v4_6d, i3* %fpu_stat_TOP.global-to-local, align 1
  %v0_70 = load i32, i32* %ebx.global-to-local, align 4
  store i32 %v0_70, i32* @eax, align 8
  store i32 %v0_4, i32* %ebx.global-to-local, align 4
  store i32 %v0_3, i32* %esi.global-to-local, align 4
  ret i32 %v0_70
}

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

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

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

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

declare i32 @__asm_fprem(i32, i32, i32) local_unnamed_addr

declare i32 @__asm_f2xm1() local_unnamed_addr

declare i32 @__asm_fscale() local_unnamed_addr

declare i16 @__asm_fnstsw(i32) local_unnamed_addr

attributes #0 = { nounwind readnone speculatable }
