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
@global_var_1.1 = constant i8 -117

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
  %st6.global-to-local = alloca x86_fp80, align 4
  %st7.global-to-local = alloca x86_fp80, align 4
  %v0_9 = load i32, i32* %ebx.global-to-local, align 4
  %v0_a = load i32, i32* %esi.global-to-local, align 4
  %v0_b = load i32, i32* %edi.global-to-local, align 4
  store i32 %arg1, i32* %esi.global-to-local, align 4
  %v1_f = add i32 %arg1, 48
  %v2_f = inttoptr i32 %v1_f to i32*
  %v3_f = load i32, i32* %v2_f, align 4
  store i32 %v3_f, i32* %edi.global-to-local, align 4
  %v0_12 = load i32, i32* @eax, align 8
  store i32 %v0_12, i32* %ebx.global-to-local, align 4
  %v0_16 = load i3, i3* %fpu_stat_TOP.global-to-local, align 1
  %v2_16 = inttoptr i32 %v3_f to double*
  %v3_16 = load double, double* %v2_16, align 4
  %v4_16 = fpext double %v3_16 to x86_fp80
  store x86_fp80 %v4_16, x86_fp80* %st7.global-to-local, align 4
  %v3_18 = add i32 %v3_f, -16
  %v4_18 = inttoptr i32 %v3_18 to double*
  %v5_18 = load double, double* %v4_18, align 4
  %v6_18 = fpext double %v5_18 to x86_fp80
  %v7_18 = fdiv x86_fp80 %v4_16, %v6_18
  %v3_1e = fadd x86_fp80 %v7_18, %v7_18
  store x86_fp80 %v3_1e, x86_fp80* %st7.global-to-local, align 4
  %v3_23 = load double, double* %v2_16, align 4
  %v4_23 = fpext double %v3_23 to x86_fp80
  store x86_fp80 %v4_23, x86_fp80* %st7.global-to-local, align 4
  %v3_25 = add i32 %v3_f, -24
  %v4_25 = inttoptr i32 %v3_25 to double*
  %v5_25 = load double, double* %v4_25, align 4
  %v6_25 = fpext double %v5_25 to x86_fp80
  %v7_25 = fdiv x86_fp80 %v4_23, %v6_25
  %v3_30 = load double, double* bitcast (i32* @ecx to double*), align 8
  %v4_30 = fpext double %v3_30 to x86_fp80
  store x86_fp80 %v4_30, x86_fp80* %st7.global-to-local, align 4
  %v3_32 = load double, double* bitcast (i32* @edx to double*), align 8
  %v4_32 = fpext double %v3_32 to x86_fp80
  %v5_32 = add i3 %v0_16, add (i3 sub (i3 0, i3 ptrtoint (i8* @global_var_1.1 to i3)), i3 sub (i3 0, i3 ptrtoint (i8* @global_var_1.1 to i3)))
  store i3 %v5_32, i3* %fpu_stat_TOP.global-to-local, align 1
  store x86_fp80 %v4_32, x86_fp80* %st6.global-to-local, align 4
  %v2_34 = call i32 @__asm_fpatan(i32 %v0_b, i32 %v0_a)
  store i32 %v2_34, i32* @eax, align 8
  %v2_36 = call x86_fp80 @llvm.fabs.f80(x86_fp80 %v4_32)
  br label %dec_label_pc_38

dec_label_pc_38:                                  ; preds = %dec_label_pc_42, %dec_label_pc_0
  %storemerge = phi x86_fp80 [ %v2_36, %dec_label_pc_0 ], [ %v7_42, %dec_label_pc_42 ]
  store x86_fp80 %storemerge, x86_fp80* %st6.global-to-local, align 4
  %v0_3b = load i32, i32* %fpsw.global-to-local, align 4
  %v1_3b = call i16 @__asm_fnstsw(i32 %v0_3b)
  %v2_3b = sext i16 %v1_3b to i32
  %v3_3b = load i32, i32* @eax, align 8
  %v4_3b = and i32 %v3_3b, -65536
  %v1_3d = udiv i32 %v2_3b, 256
  %v2_3d = trunc i32 %v1_3d to i8
  %v3_3d = and i8 %v2_3d, 65
  %v4_3d = icmp eq i8 %v3_3d, 0
  %v9_3d = zext i8 %v3_3d to i32
  %v11_3d = mul i32 %v9_3d, 256
  %v2_3b.masked = and i32 %v2_3b, -65281
  %v12_3d = or i32 %v4_3b, %v2_3b.masked
  %v13_3d = or i32 %v12_3d, %v11_3d
  store i32 %v13_3d, i32* @eax, align 8
  %v4_40 = icmp eq i1 %v4_3d, false
  %v1_47 = load x86_fp80, x86_fp80* %st6.global-to-local, align 4
  br i1 %v4_40, label %dec_label_pc_47, label %dec_label_pc_42

dec_label_pc_42:                                  ; preds = %dec_label_pc_38
  %v7_42 = fsub x86_fp80 %v1_47, %v3_1e
  br label %dec_label_pc_38

dec_label_pc_47:                                  ; preds = %dec_label_pc_38
  %v3_2b = fadd x86_fp80 %v7_25, %v7_25
  %v2_47 = call x86_fp80 @llvm.fabs.f80(x86_fp80 %v1_47)
  %v3_47 = fcmp olt x86_fp80 %v2_47, 0xK403E8000000000000000
  br i1 %v3_47, label %bb, label %bb249

bb:                                               ; preds = %dec_label_pc_47
  %v4_47 = call x86_fp80 @llvm.cos.f80(x86_fp80 %v1_47)
  store x86_fp80 %v4_47, x86_fp80* %st6.global-to-local, align 4
  br label %bb249

bb249:                                            ; preds = %dec_label_pc_47, %bb
  %v1_49 = load x86_fp80, x86_fp80* %st7.global-to-local, align 4
  %v4_4c = load double, double* bitcast (i32* @edx to double*), align 8
  %v5_4c = fpext double %v4_4c to x86_fp80
  %v6_4c = fmul x86_fp80 %v1_49, %v5_4c
  %v3_51 = fmul x86_fp80 %v6_4c, %v6_4c
  %v0_53 = load i3, i3* %fpu_stat_TOP.global-to-local, align 1
  %v6_53 = sub i3 %v0_53, ptrtoint (i8* @global_var_1.1 to i3)
  %v4_56 = load double, double* bitcast (i32* @ecx to double*), align 8
  %v5_56 = fpext double %v4_56 to x86_fp80
  %v6_56 = fmul x86_fp80 %v1_49, %v5_56
  %v3_5b = fmul x86_fp80 %v6_56, %v6_56
  %v4_5d = fadd x86_fp80 %v3_51, %v3_5b
  %v2_5f = call x86_fp80 @llvm.sqrt.f80(x86_fp80 %v4_5d)
  store x86_fp80 %v2_5f, x86_fp80* %st7.global-to-local, align 4
  %v3_63 = load double, double* bitcast (i32* @eax to double*), align 8
  %v4_63 = fpext double %v3_63 to x86_fp80
  store i3 %v6_53, i3* %fpu_stat_TOP.global-to-local, align 1
  store x86_fp80 %v4_63, x86_fp80* %st6.global-to-local, align 4
  %tmp252 = fptrunc x86_fp80 %v6_56 to float
  %v2_65 = bitcast float %tmp252 to i32
  %tmp253 = fptrunc x86_fp80 %v6_4c to float
  %v5_65 = bitcast float %tmp253 to i32
  %v6_65 = call i32 @__asm_fpatan(i32 %v2_65, i32 %v5_65)
  store i32 %v6_65, i32* @eax, align 8
  %v2_67 = call x86_fp80 @llvm.fabs.f80(x86_fp80 %v4_63)
  br label %dec_label_pc_69

dec_label_pc_69:                                  ; preds = %dec_label_pc_73, %bb249
  %storemerge1 = phi x86_fp80 [ %v2_67, %bb249 ], [ %v7_73, %dec_label_pc_73 ]
  store x86_fp80 %storemerge1, x86_fp80* %st6.global-to-local, align 4
  %v0_6c = load i32, i32* %fpsw.global-to-local, align 4
  %v1_6c = call i16 @__asm_fnstsw(i32 %v0_6c)
  %v2_6c = sext i16 %v1_6c to i32
  %v3_6c = load i32, i32* @eax, align 8
  %v4_6c = and i32 %v3_6c, -65536
  %v1_6e = udiv i32 %v2_6c, 256
  %v2_6e = trunc i32 %v1_6e to i8
  %v3_6e = and i8 %v2_6e, 65
  %v4_6e = icmp eq i8 %v3_6e, 0
  %v9_6e = zext i8 %v3_6e to i32
  %v11_6e = mul i32 %v9_6e, 256
  %v2_6c.masked = and i32 %v2_6c, -65281
  %v12_6e = or i32 %v4_6c, %v2_6c.masked
  %v13_6e = or i32 %v12_6e, %v11_6e
  store i32 %v13_6e, i32* @eax, align 8
  %v4_71 = icmp eq i1 %v4_6e, false
  %v1_78 = load x86_fp80, x86_fp80* %st6.global-to-local, align 4
  br i1 %v4_71, label %dec_label_pc_78, label %dec_label_pc_73

dec_label_pc_73:                                  ; preds = %dec_label_pc_69
  %v7_73 = fsub x86_fp80 %v1_78, %v3_2b
  br label %dec_label_pc_69

dec_label_pc_78:                                  ; preds = %dec_label_pc_69
  %v2_78 = call x86_fp80 @llvm.fabs.f80(x86_fp80 %v1_78)
  %v3_78 = fcmp olt x86_fp80 %v2_78, 0xK403E8000000000000000
  br i1 %v3_78, label %bb250, label %bb251

bb250:                                            ; preds = %dec_label_pc_78
  %v4_78 = call x86_fp80 @llvm.cos.f80(x86_fp80 %v1_78)
  store x86_fp80 %v4_78, x86_fp80* %st6.global-to-local, align 4
  br label %bb251

bb251:                                            ; preds = %dec_label_pc_78, %bb250
  %v0_7a = load i3, i3* %fpu_stat_TOP.global-to-local, align 1
  %v1_7a = load x86_fp80, x86_fp80* %st7.global-to-local, align 4
  %v7_7e = fmul x86_fp80 %v1_7a, %v6_4c
  store x86_fp80 %v7_7e, x86_fp80* %st6.global-to-local, align 4
  %v2_81 = load i32, i32* @edx, align 8
  %v3_81 = fptrunc x86_fp80 %v7_7e to double
  %v4_81 = inttoptr i32 %v2_81 to double*
  store double %v3_81, double* %v4_81, align 4
  %v1_85 = load x86_fp80, x86_fp80* %st7.global-to-local, align 4
  %v7_85 = fmul x86_fp80 %v1_85, %v6_56
  store x86_fp80 %v7_85, x86_fp80* %st7.global-to-local, align 4
  %v2_88 = load i32, i32* @ecx, align 8
  %v3_88 = fptrunc x86_fp80 %v7_85 to double
  %v4_88 = inttoptr i32 %v2_88 to double*
  store double %v3_88, double* %v4_88, align 4
  %v1_8c = load x86_fp80, x86_fp80* %st7.global-to-local, align 4
  %v4_8c = load double, double* bitcast (i32* @eax to double*), align 8
  %v5_8c = fpext double %v4_8c to x86_fp80
  %v6_8c = fmul x86_fp80 %v1_8c, %v5_8c
  store x86_fp80 %v6_8c, x86_fp80* %st7.global-to-local, align 4
  %v2_8e = load i32, i32* %ebx.global-to-local, align 4
  %v3_8e = fptrunc x86_fp80 %v6_8c to double
  %v4_8e = inttoptr i32 %v2_8e to double*
  store double %v3_8e, double* %v4_8e, align 4
  %v5_8e = add i3 %v0_7a, ptrtoint (i8* @global_var_1.1 to i3)
  store i3 %v5_8e, i3* %fpu_stat_TOP.global-to-local, align 1
  store i32 %v2_8e, i32* @eax, align 8
  store i32 %v0_b, i32* %edi.global-to-local, align 4
  store i32 %v0_a, i32* %esi.global-to-local, align 4
  store i32 %v0_9, i32* %ebx.global-to-local, align 4
  ret i32 %v2_8e
}

declare i32 @__asm_fpatan(i32, i32) local_unnamed_addr

; 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.cos.f80(x86_fp80) #0

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

attributes #0 = { nounwind readnone speculatable }
