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

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
  %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
  %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* %edi.global-to-local, align 4
  %v0_5 = load i32, i32* %ebx.global-to-local, align 4
  store i32 %arg1, i32* %esi.global-to-local, align 4
  %v0_9 = load i32, i32* @eax, align 8
  store i32 %v0_9, i32* %ebx.global-to-local, align 4
  %v1_b = add i32 %arg1, 48
  %v2_b = inttoptr i32 %v1_b to i32*
  %v3_b = load i32, i32* %v2_b, align 4
  store i32 %v3_b, i32* %edi.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
  %tmp248 = call double @llvm.fabs.f64(double %v3_e)
  %v2_11 = fpext double %tmp248 to x86_fp80
  store x86_fp80 %v2_11, x86_fp80* %st7.global-to-local, align 4
  %v3_13 = load double, double* bitcast (i32* @ecx to double*), align 8
  %tmp249 = call double @llvm.fabs.f64(double %v3_13)
  %v2_17 = fpext double %tmp249 to x86_fp80
  store x86_fp80 %v2_17, x86_fp80* %st6.global-to-local, align 4
  %v4_1b = fadd x86_fp80 %v2_11, %v2_17
  store x86_fp80 %v4_1b, x86_fp80* %st5.global-to-local, align 4
  %v4_1f = fsub x86_fp80 %v2_17, %v2_11
  %v3_21 = add i32 %v3_b, -24
  %v4_21 = inttoptr i32 %v3_21 to double*
  %v5_21 = load double, double* %v4_21, align 4
  %v6_21 = fpext double %v5_21 to x86_fp80
  %v7_21 = fsub x86_fp80 %v4_1f, %v6_21
  %v3_24 = fptrunc x86_fp80 %v7_21 to double
  %v4_24 = inttoptr i32 %v0_9 to double*
  store double %v3_24, double* %v4_24, align 4
  %v1_27 = load x86_fp80, x86_fp80* %st5.global-to-local, align 4
  %v3_27 = add i32 %v3_b, -32
  %v4_27 = inttoptr i32 %v3_27 to double*
  %v5_27 = load double, double* %v4_27, align 4
  %v6_27 = fpext double %v5_27 to x86_fp80
  %v7_27 = fsub x86_fp80 %v1_27, %v6_27
  %v2_2a = load i32, i32* @ecx, align 8
  %v3_2a = fptrunc x86_fp80 %v7_27 to double
  %v4_2a = inttoptr i32 %v2_2a to double*
  store double %v3_2a, double* %v4_2a, align 4
  %v3_32 = load double, double* bitcast (i32* @eax to double*), align 8
  %tmp250 = call double @llvm.fabs.f64(double %v3_32)
  %v2_35 = fpext double %tmp250 to x86_fp80
  %v2_37 = fsub x86_fp80 0xK80000000000000000000, %v2_35
  store x86_fp80 %v2_37, x86_fp80* %st7.global-to-local, align 4
  %v3_39 = load double, double* bitcast (i32* @ecx to double*), align 8
  %v4_39 = fpext double %v3_39 to x86_fp80
  %v5_39 = add i3 %v0_e, -2
  store x86_fp80 %v4_39, x86_fp80* %st6.global-to-local, align 4
  %v4_3f = fsub x86_fp80 %v2_37, %v4_39
  store x86_fp80 %v4_3f, x86_fp80* %st5.global-to-local, align 4
  %v4_43 = fsub x86_fp80 %v4_39, %v2_35
  %v2_45 = fsub x86_fp80 0xK80000000000000000000, %v4_43
  %v3_47 = add i32 %v3_b, -40
  %v4_47 = inttoptr i32 %v3_47 to double*
  %v5_47 = load double, double* %v4_47, align 4
  %v6_47 = fpext double %v5_47 to x86_fp80
  %v7_47 = fsub x86_fp80 %v2_45, %v6_47
  %v3_4a = inttoptr i32 %v3_b to double*
  %v4_4a = load double, double* %v3_4a, align 4
  %v5_4a = fpext double %v4_4a to x86_fp80
  %v6_4a = fmul x86_fp80 %v7_47, %v5_4a
  %v3_4c = fptrunc x86_fp80 %v6_4a to double
  store double %v3_4c, double* %v4_24, align 4
  %v1_4f = load x86_fp80, x86_fp80* %st5.global-to-local, align 4
  %v5_4f = load double, double* %v4_47, align 4
  %v6_4f = fpext double %v5_4f to x86_fp80
  %v7_4f = fsub x86_fp80 %v1_4f, %v6_4f
  store x86_fp80 %v7_4f, x86_fp80* %st5.global-to-local, align 4
  %v4_52 = load double, double* %v3_4a, align 4
  %v5_52 = fpext double %v4_52 to x86_fp80
  %v6_52 = fmul x86_fp80 %v7_4f, %v5_52
  store x86_fp80 %v6_52, x86_fp80* %st5.global-to-local, align 4
  %v2_54 = load i32, i32* @ecx, align 8
  %v3_54 = fptrunc x86_fp80 %v6_52 to double
  %v4_54 = inttoptr i32 %v2_54 to double*
  store double %v3_54, double* %v4_54, align 4
  %v2_5c = add i32 %v3_b, -16
  %v3_5c = inttoptr i32 %v2_5c to double*
  %v4_5c = load double, double* %v3_5c, align 4
  %v5_5c = fpext double %v4_5c to x86_fp80
  store x86_fp80 %v5_5c, x86_fp80* %st7.global-to-local, align 4
  %v3_5f = load double, double* bitcast (i32* @eax to double*), align 8
  %v4_5f = fpext double %v3_5f to x86_fp80
  store i3 %v5_39, i3* %fpu_stat_TOP.global-to-local, align 1
  store x86_fp80 %v4_5f, x86_fp80* %st6.global-to-local, align 4
  %v4_64 = call i32 @__asm_wait(i32 %v0_5, i32 %v0_4, i32 %v0_3, i32 %v0_0)
  store i32 %v4_64, i32* @eax, align 8
  %v0_65 = load i32, i32* %fpsw.global-to-local, align 4
  %v1_65 = call i16 @__asm_fnstsw(i32 %v0_65)
  %v2_65 = sext i16 %v1_65 to i32
  %v3_65 = load i32, i32* @eax, align 8
  %v4_65 = and i32 %v3_65, -65536
  %v4_671 = udiv i32 %v2_65, 512
  %tmp251 = trunc i32 %v4_671 to i8
  %tmp252 = urem i8 %tmp251, -128
  %v5_67 = icmp eq i8 %tmp252, 0
  %v10_67 = zext i8 %tmp252 to i32
  %v12_67 = mul i32 %v10_67, 256
  %v2_65.masked = and i32 %v2_65, -65281
  %v13_67 = or i32 %v4_65, %v2_65.masked
  %v14_67 = or i32 %v13_67, %v12_67
  store i32 %v14_67, i32* @eax, align 8
  %v15_674 = and i32 %v2_65, 256
  %v16_67 = icmp ne i32 %v15_674, 0
  %v2_69 = or i1 %v16_67, %v5_67
  br i1 %v2_69, label %dec_label_pc_84, label %dec_label_pc_6b

dec_label_pc_6b:                                  ; preds = %dec_label_pc_0
  %v0_6b = load i32, i32* %edi.global-to-local, align 4
  %v1_6b = add i32 %v0_6b, -44
  %v2_6b = inttoptr i32 %v1_6b to i32*
  %v3_6b = load i32, i32* %v2_6b, align 4
  %v1_6e = add i32 %v3_6b, -1
  store i32 %v1_6e, i32* @eax, align 8
  %v7_6f = icmp slt i32 %v3_6b, 2
  %v8_77 = icmp sgt i32 %v1_6e, 999
  %or.cond = or i1 %v7_6f, %v8_77
  br i1 %or.cond, label %dec_label_pc_84, label %dec_label_pc_79thread-pre-split

dec_label_pc_79thread-pre-split:                  ; preds = %dec_label_pc_6b
  %st7.promoted = load x86_fp80, x86_fp80* %st7.global-to-local, align 4
  br label %dec_label_pc_79

dec_label_pc_79:                                  ; preds = %dec_label_pc_79thread-pre-split, %dec_label_pc_79
  %v2_7f5 = phi x86_fp80 [ %st7.promoted, %dec_label_pc_79thread-pre-split ], [ %v2_7f, %dec_label_pc_79 ]
  %v0_81 = phi i32 [ %v1_6e, %dec_label_pc_79thread-pre-split ], [ %v1_81, %dec_label_pc_79 ]
  %v4_79 = fsub x86_fp80 %v2_7f5, %v2_7f5
  %v2_7b = call x86_fp80 @llvm.fabs.f80(x86_fp80 %v4_79)
  %v4_7d = fsub x86_fp80 %v2_7b, %v2_7b
  %v2_7f = call x86_fp80 @llvm.fabs.f80(x86_fp80 %v4_7d)
  %v1_81 = add i32 %v0_81, -1
  %v8_82 = icmp sgt i32 %v0_81, 1
  br i1 %v8_82, label %dec_label_pc_79, label %dec_label_pc_84.loopexit

dec_label_pc_84.loopexit:                         ; preds = %dec_label_pc_79
  store x86_fp80 %v2_7f, x86_fp80* %st7.global-to-local, align 4
  store i32 0, i32* @eax, align 8
  br label %dec_label_pc_84

dec_label_pc_84:                                  ; preds = %dec_label_pc_6b, %dec_label_pc_84.loopexit, %dec_label_pc_0
  %v0_84 = load i3, i3* %fpu_stat_TOP.global-to-local, align 1
  %v1_84 = load x86_fp80, x86_fp80* %st6.global-to-local, align 4
  store x86_fp80 %v1_84, x86_fp80* %st7.global-to-local, align 4
  %v2_86 = load i32, i32* %ebx.global-to-local, align 4
  %v3_86 = fptrunc x86_fp80 %v1_84 to double
  %v4_86 = inttoptr i32 %v2_86 to double*
  store double %v3_86, double* %v4_86, align 4
  %v5_86 = add i3 %v0_84, 2
  store i3 %v5_86, i3* %fpu_stat_TOP.global-to-local, align 1
  store i32 %v2_86, i32* @eax, align 8
  store i32 %v0_5, i32* %ebx.global-to-local, align 4
  store i32 %v0_4, i32* %edi.global-to-local, align 4
  store i32 %v0_3, i32* %esi.global-to-local, align 4
  ret i32 %v2_86
}

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

declare i32 @__asm_wait(i32, i32, i32, i32) local_unnamed_addr

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 }
