source_filename = "test"
target datalayout = "e-p:32:32-f64:32:64-f80:32-n8:16:32-S128"

define i32 @function_0() local_unnamed_addr {
dec_label_pc_0:
  %eax.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
  %tmp261 = call double @__decompiler_undefined_function_3()
  %stack_var_-28 = alloca double, align 8
  %v0_3 = load i32, i32* %esi.global-to-local, align 4
  %v1_3 = add i32 %v0_3, -120
  %v2_3 = inttoptr i32 %v1_3 to i128*
  %v3_3 = load i128, i128* %v2_3, align 4
  %v4_3 = call i128 @__asm_movupd(i128 %v3_3)
  %v1_8 = add i32 %v0_3, -104
  %v2_8 = inttoptr i32 %v1_8 to i64*
  %v3_8 = load i64, i64* %v2_8, align 4
  %v4_8 = call i128 @__asm_movsd(i64 %v3_8)
  %v1_d = load i32, i32* %edi.global-to-local, align 4
  %v2_d = add i32 %v1_d, -32
  %v3_d = inttoptr i32 %v2_d to i128*
  %v4_d = load i128, i128* %v3_d, align 4
  %v5_d = call i128 @__asm_mulpd(i128 %v4_3, i128 %v4_d)
  %v2_12 = add i32 %v1_d, -32
  %v3_12 = inttoptr i32 %v2_12 to i64*
  %v4_12 = load i64, i64* %v3_12, align 4
  %v5_12 = call i128 @__asm_mulsd(i128 %v4_8, i64 %v4_12)
  %v1_17 = load i32, i32* %edi.global-to-local, align 4
  %v2_17 = add i32 %v1_17, -64
  %v3_17 = inttoptr i32 %v2_17 to i128*
  %v4_17 = load i128, i128* %v3_17, align 4
  %v5_17 = call i128 @__asm_addpd(i128 %v5_d, i128 %v4_17)
  %v2_1c = add i32 %v1_17, -48
  %v3_1c = inttoptr i32 %v2_1c to i64*
  %v4_1c = load i64, i64* %v3_1c, align 4
  %v5_1c = call i128 @__asm_addsd(i128 %v5_12, i64 %v4_1c)
  %v0_21 = load i32, i32* %edi.global-to-local, align 4
  %v1_21 = add i32 %v0_21, -76
  %v2_21 = inttoptr i32 %v1_21 to i32*
  %v3_21 = load i32, i32* %v2_21, align 4
  %v10_21 = icmp eq i32 %v3_21, 0
  br i1 %v10_21, label %dec_label_pc_40, label %dec_label_pc_27

dec_label_pc_27:                                  ; preds = %dec_label_pc_0
  %v0_27 = load i32, i32* %esi.global-to-local, align 4
  %v1_27 = add i32 %v0_27, 112
  %v2_27 = inttoptr i32 %v1_27 to i64*
  %v3_27 = load i64, i64* %v2_27, align 4
  %v4_27 = call i128 @__asm_movsd(i64 %v3_27)
  %v1_2c = load i32, i32* %edi.global-to-local, align 4
  %v2_2c = add i32 %v1_2c, -32
  %v3_2c = inttoptr i32 %v2_2c to i64*
  %v4_2c = load i64, i64* %v3_2c, align 4
  %v5_2c = call i128 @__asm_mulsd(i128 %v4_27, i64 %v4_2c)
  %v0_31 = load i32, i32* %esi.global-to-local, align 4
  %v1_31 = add i32 %v0_31, -120
  %v2_31 = inttoptr i32 %v1_31 to i128*
  %v3_31 = load i128, i128* %v2_31, align 4
  call void @__asm_movupd.1(i128 %v3_31, i128 %v5_17)
  %v1_36 = call i32 @__asm_movsd.2(i128 %v5_1c)
  %v3_36 = add i32 %v0_31, -104
  %v4_36 = sext i32 %v1_36 to i64
  %v5_36 = inttoptr i32 %v3_36 to i64*
  store i64 %v4_36, i64* %v5_36, align 4
  %v1_3b = call i32 @__asm_movsd.2(i128 %v5_2c)
  %v2_3b = load i32, i32* %esi.global-to-local, align 4
  %v3_3b = add i32 %v2_3b, 112
  %v4_3b = sext i32 %v1_3b to i64
  %v5_3b = inttoptr i32 %v3_3b to i64*
  store i64 %v4_3b, i64* %v5_3b, align 4
  br label %dec_label_pc_40

dec_label_pc_40:                                  ; preds = %dec_label_pc_27, %dec_label_pc_0
  %v2_40 = load double, double* %stack_var_-28, align 8
  %v3_40 = fptrunc double %v2_40 to float
  %v4_40 = bitcast float %v3_40 to i32
  %v5_40 = sext i32 %v4_40 to i128
  call void @__asm_movupd.1(i128 %v5_40, i128 %v5_17)
  %v1_45 = call i32 @__asm_movsd.2(i128 %v5_1c)
  %v4_45 = sext i32 %v1_45 to i64
  %v6_45 = bitcast i64 %v4_45 to double
  %v0_4b = load i3, i3* %fpu_stat_TOP.global-to-local, align 1
  %v3_4b = load double, double* %stack_var_-28, align 8
  %v8_4b = fpext double %v3_4b to x86_fp80
  %v9_4b = add i3 %v0_4b, -1
  store x86_fp80 %v8_4b, x86_fp80* %st7.global-to-local, align 4
  %v2_4e = load i32, i32* %edi.global-to-local, align 4
  %v3_4e = add i32 %v2_4e, -92
  %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 = fmul x86_fp80 %v8_4b, %v6_4e
  store x86_fp80 %v7_4e, x86_fp80* %st7.global-to-local, align 4
  %tmp266 = fptrunc x86_fp80 %v7_4e to double
  store double %tmp266, double* %stack_var_-28, align 8
  %v1_54 = add i32 %v2_4e, -80
  %v2_54 = inttoptr i32 %v1_54 to i32*
  %v3_54 = load i32, i32* %v2_54, align 4
  %v10_54 = icmp eq i32 %v3_54, 0
  %v1_58 = icmp eq i1 %v10_54, false
  store i3 %v9_4b, i3* %fpu_stat_TOP.global-to-local, align 1
  store x86_fp80 %v7_4e, x86_fp80* %st7.global-to-local, align 4
  br i1 %v1_58, label %dec_label_pc_6b, label %dec_label_pc_5a

dec_label_pc_5a:                                  ; preds = %dec_label_pc_40
  %v3_5d = fmul x86_fp80 %v7_4e, %v7_4e
  %v5_5f = fpext double %tmp261 to x86_fp80
  %v3_63 = fmul x86_fp80 %v5_5f, %v5_5f
  store x86_fp80 %v3_63, x86_fp80* %st6.global-to-local, align 4
  %v4_65 = fadd x86_fp80 %v3_63, %v3_5d
  store i3 %v9_4b, i3* %fpu_stat_TOP.global-to-local, align 1
  %v2_67 = call x86_fp80 @llvm.sqrt.f80(x86_fp80 %v4_65)
  store x86_fp80 %v2_67, x86_fp80* %st7.global-to-local, align 4
  br label %dec_label_pc_85

dec_label_pc_6b:                                  ; preds = %dec_label_pc_40
  %v2_6e = call x86_fp80 @llvm.fabs.f80(x86_fp80 %v7_4e)
  store x86_fp80 %v2_6e, x86_fp80* %st7.global-to-local, align 4
  %v6_70 = add i3 %v0_4b, -2
  store i3 %v6_70, i3* %fpu_stat_TOP.global-to-local, align 1
  %tmp267 = call double @llvm.fabs.f64(double %tmp261)
  %v2_74 = fpext double %tmp267 to x86_fp80
  store x86_fp80 %v2_74, x86_fp80* %st6.global-to-local, align 4
  %v0_78 = call i32 @__asm_wait()
  store i32 %v0_78, i32* %eax.global-to-local, align 4
  %v0_79 = load i32, i32* %fpsw.global-to-local, align 4
  %v1_79 = call i16 @__asm_fnstsw(i32 %v0_79)
  %v2_79 = sext i16 %v1_79 to i32
  %v4_79 = and i32 %v0_78, -65536
  %tmp272 = udiv i32 %v2_79, 2
  %v12_7b = and i32 %tmp272, 32512
  %v2_79.masked = and i32 %v2_79, -65281
  %v13_7b = or i32 %v4_79, %v2_79.masked
  %v14_7b = or i32 %v13_7b, %v12_7b
  store i32 %v14_7b, i32* %eax.global-to-local, align 4
  %v0_83 = load i3, i3* %fpu_stat_TOP.global-to-local, align 1
  %v5_83 = add i3 %v0_83, 1
  store i3 %v5_83, i3* %fpu_stat_TOP.global-to-local, align 1
  %v1_85.pre = load x86_fp80, x86_fp80* %st7.global-to-local, align 4
  %v2_85.pre = load i32, i32* %edi.global-to-local, align 4
  br label %dec_label_pc_85

dec_label_pc_85:                                  ; preds = %dec_label_pc_6b, %dec_label_pc_5a
  %v0_9e = phi i3 [ %v5_83, %dec_label_pc_6b ], [ %v9_4b, %dec_label_pc_5a ]
  %v0_88 = phi i32 [ %v2_85.pre, %dec_label_pc_6b ], [ %v2_4e, %dec_label_pc_5a ]
  %v1_85 = phi x86_fp80 [ %v1_85.pre, %dec_label_pc_6b ], [ %v2_67, %dec_label_pc_5a ]
  %v3_85 = add i32 %v0_88, -16
  %v4_85 = inttoptr i32 %v3_85 to double*
  %v5_85 = load double, double* %v4_85, align 4
  %v6_85 = fpext double %v5_85 to x86_fp80
  %v7_85 = fsub x86_fp80 %v1_85, %v6_85
  store x86_fp80 %v7_85, x86_fp80* %st7.global-to-local, align 4
  %v1_88 = add i32 %v0_88, -84
  %v2_88 = inttoptr i32 %v1_88 to i32*
  %v3_88 = load i32, i32* %v2_88, align 4
  %v10_88 = icmp eq i32 %v3_88, 0
  %v1_8c = icmp eq i1 %v10_88, false
  br i1 %v1_8c, label %dec_label_pc_9c, label %dec_label_pc_8e

dec_label_pc_8e:                                  ; preds = %dec_label_pc_85
  %v3_8e = fmul x86_fp80 %v7_85, %v7_85
  %v7_90 = fpext double %v6_45 to x86_fp80
  %v3_94 = fmul x86_fp80 %v7_90, %v7_90
  store x86_fp80 %v3_94, x86_fp80* %st6.global-to-local, align 4
  %v4_96 = fadd x86_fp80 %v3_94, %v3_8e
  store i3 %v0_9e, i3* %fpu_stat_TOP.global-to-local, align 1
  %v2_98 = call x86_fp80 @llvm.sqrt.f80(x86_fp80 %v4_96)
  store x86_fp80 %v2_98, x86_fp80* %st7.global-to-local, align 4
  br label %dec_label_pc_b3

dec_label_pc_9c:                                  ; preds = %dec_label_pc_85
  %v2_9c = call x86_fp80 @llvm.fabs.f80(x86_fp80 %v7_85)
  store x86_fp80 %v2_9c, x86_fp80* %st7.global-to-local, align 4
  %v8_9e = add i3 %v0_9e, -1
  store i3 %v8_9e, i3* %fpu_stat_TOP.global-to-local, align 1
  %tmp269 = call double @llvm.fabs.f64(double %v6_45)
  %v2_a2 = fpext double %tmp269 to x86_fp80
  store x86_fp80 %v2_a2, x86_fp80* %st6.global-to-local, align 4
  %v0_a6 = call i32 @__asm_wait()
  store i32 %v0_a6, i32* %eax.global-to-local, align 4
  %v0_a7 = load i32, i32* %fpsw.global-to-local, align 4
  %v1_a7 = call i16 @__asm_fnstsw(i32 %v0_a7)
  %v2_a7 = sext i16 %v1_a7 to i32
  %v4_a7 = and i32 %v0_a6, -65536
  %tmp273 = udiv i32 %v2_a7, 2
  %v12_a9 = and i32 %tmp273, 32512
  %v2_a7.masked = and i32 %v2_a7, -65281
  %v13_a9 = or i32 %v4_a7, %v2_a7.masked
  %v14_a9 = or i32 %v13_a9, %v12_a9
  store i32 %v14_a9, i32* %eax.global-to-local, align 4
  %v15_a911 = and i32 %v2_a7, 256
  %v16_a9 = icmp ne i32 %v15_a911, 0
  %v1_ab = icmp eq i1 %v16_a9, false
  %v0_b1 = load i3, i3* %fpu_stat_TOP.global-to-local, align 1
  br i1 %v1_ab, label %dec_label_pc_b1, label %dec_label_pc_ad

dec_label_pc_ad:                                  ; preds = %dec_label_pc_9c
  %v4_ad = add i3 %v0_b1, 1
  store i3 %v4_ad, i3* %fpu_stat_TOP.global-to-local, align 1
  %v1_b3.pre = load x86_fp80, x86_fp80* %st7.global-to-local, align 4
  br label %dec_label_pc_b3

dec_label_pc_b1:                                  ; preds = %dec_label_pc_9c
  %v1_b1 = load x86_fp80, x86_fp80* %st6.global-to-local, align 4
  store x86_fp80 %v1_b1, x86_fp80* %st7.global-to-local, align 4
  %v5_b1 = add i3 %v0_b1, 1
  store i3 %v5_b1, i3* %fpu_stat_TOP.global-to-local, align 1
  br label %dec_label_pc_b3

dec_label_pc_b3:                                  ; preds = %dec_label_pc_b1, %dec_label_pc_ad, %dec_label_pc_8e
  %v0_bf = phi i3 [ %v5_b1, %dec_label_pc_b1 ], [ %v4_ad, %dec_label_pc_ad ], [ %v0_9e, %dec_label_pc_8e ]
  %v1_b3 = phi x86_fp80 [ %v1_b1, %dec_label_pc_b1 ], [ %v1_b3.pre, %dec_label_pc_ad ], [ %v2_98, %dec_label_pc_8e ]
  %v2_b3 = load i32, i32* %edi.global-to-local, align 4
  %v3_b3 = add i32 %v2_b3, -72
  %v4_b3 = inttoptr i32 %v3_b3 to double*
  %v5_b3 = load double, double* %v4_b3, align 4
  %v6_b3 = fpext double %v5_b3 to x86_fp80
  %v7_b3 = fsub x86_fp80 %v1_b3, %v6_b3
  store x86_fp80 %v7_b3, x86_fp80* %st7.global-to-local, align 4
  %v1_b6 = add i32 %v2_b3, -76
  %v2_b6 = inttoptr i32 %v1_b6 to i32*
  %v3_b6 = load i32, i32* %v2_b6, align 4
  %v10_b6 = icmp eq i32 %v3_b6, 0
  %v1_ba = icmp eq i1 %v10_b6, false
  br i1 %v1_ba, label %dec_label_pc_bf, label %dec_label_pc_bc

dec_label_pc_bc:                                  ; preds = %dec_label_pc_b3
  %v3_bc = add i32 %v2_b3, -32
  %v4_bc = inttoptr i32 %v3_bc to double*
  %v5_bc = load double, double* %v4_bc, align 4
  %v6_bc = fpext double %v5_bc to x86_fp80
  %v7_bc = fdiv x86_fp80 %v7_b3, %v6_bc
  store x86_fp80 %v7_bc, x86_fp80* %st7.global-to-local, align 4
  br label %dec_label_pc_bf

dec_label_pc_bf:                                  ; preds = %dec_label_pc_bc, %dec_label_pc_b3
  %v1_bf = phi x86_fp80 [ %v7_bc, %dec_label_pc_bc ], [ %v7_b3, %dec_label_pc_b3 ]
  %v2_bf = load i32, i32* %esi.global-to-local, align 4
  %v3_bf = add i32 %v2_bf, -32
  %v4_bf = fptrunc x86_fp80 %v1_bf to double
  %v5_bf = inttoptr i32 %v3_bf to double*
  store double %v4_bf, double* %v5_bf, align 4
  %v2_c2 = add i32 %v2_b3, -108
  %v3_c2 = inttoptr i32 %v2_c2 to double*
  %v4_c2 = load double, double* %v3_c2, align 4
  %v5_c2 = fpext double %v4_c2 to x86_fp80
  store x86_fp80 %v5_c2, x86_fp80* %st7.global-to-local, align 4
  %v2_c5 = add i32 %v2_bf, -24
  %v3_c5 = inttoptr i32 %v2_c5 to i32*
  %v4_c5 = load i32, i32* %v3_c5, align 4
  %v5_c5 = sitofp i32 %v4_c5 to x86_fp80
  store x86_fp80 %v5_c5, x86_fp80* %st6.global-to-local, align 4
  %v3_c8 = add i32 %v2_b3, -100
  %v4_c8 = inttoptr i32 %v3_c8 to double*
  %v5_c8 = load double, double* %v4_c8, align 4
  %v6_c8 = fpext double %v5_c8 to x86_fp80
  %v7_c8 = fmul x86_fp80 %v5_c5, %v6_c8
  store x86_fp80 %v7_c8, x86_fp80* %st6.global-to-local, align 4
  %v4_cb = fadd x86_fp80 %v7_c8, %v5_c2
  %v2_cd = call x86_fp80 @llvm.fabs.f80(x86_fp80 %v4_cb)
  store x86_fp80 %v2_cd, x86_fp80* %st7.global-to-local, align 4
  %v3_cf = add i32 %v2_bf, 128
  %tmp271 = fptrunc x86_fp80 %v4_cb to double
  %v4_cf = call double @llvm.fabs.f64(double %tmp271)
  %v5_cf = inttoptr i32 %v3_cf to double*
  store double %v4_cf, double* %v5_cf, align 4
  %v6_cf = add i3 %v0_bf, 1
  store i3 %v6_cf, i3* %fpu_stat_TOP.global-to-local, align 1
  %v0_d8 = load i32, i32* %eax.global-to-local, align 4
  ret i32 %v0_d8
}

declare i128 @__asm_movupd(i128) local_unnamed_addr

declare i128 @__asm_movsd(i64) local_unnamed_addr

declare i128 @__asm_mulpd(i128, i128) local_unnamed_addr

declare i128 @__asm_mulsd(i128, i64) local_unnamed_addr

declare i128 @__asm_addpd(i128, i128) local_unnamed_addr

declare i128 @__asm_addsd(i128, i64) local_unnamed_addr

declare void @__asm_movupd.1(i128, i128) local_unnamed_addr

declare i32 @__asm_movsd.2(i128) local_unnamed_addr

; 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

declare i32 @__asm_wait() local_unnamed_addr

declare i16 @__asm_fnstsw(i32) local_unnamed_addr

declare double @__decompiler_undefined_function_3() local_unnamed_addr

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

attributes #0 = { nounwind readnone speculatable }
