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:
  %edi.global-to-local = alloca i32, align 4
  %esi.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
  %tmp245 = 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
  %v3_4e = fmul x86_fp80 %v8_4b, %v8_4b
  %v5_50 = fpext double %tmp245 to x86_fp80
  %v6_50 = add i3 %v0_4b, -2
  %v3_54 = fmul x86_fp80 %v5_50, %v5_50
  store x86_fp80 %v3_54, x86_fp80* %st6.global-to-local, align 4
  %v4_56 = fadd x86_fp80 %v3_54, %v3_4e
  %v1_58 = load i32, i32* %edi.global-to-local, align 4
  %v2_58 = add i32 %v1_58, -84
  %v3_58 = inttoptr i32 %v2_58 to double*
  %v4_58 = load double, double* %v3_58, align 4
  store i3 %v6_50, i3* %fpu_stat_TOP.global-to-local, align 1
  %v2_5d = call x86_fp80 @llvm.fabs.f80(x86_fp80 %v4_56)
  store x86_fp80 %v2_5d, x86_fp80* %st6.global-to-local, align 4
  %v3_5f = call i32 @__asm_fyl2x(i32 %v1_45)
  %v0_61 = load i32, i32* %edi.global-to-local, align 4
  %v1_61 = add i32 %v0_61, -88
  %v2_61 = inttoptr i32 %v1_61 to i32*
  %v3_61 = load i32, i32* %v2_61, align 4
  %v10_61 = icmp eq i32 %v3_61, 0
  %v1_65 = icmp eq i1 %v10_61, false
  %v0_77.pre = load i3, i3* %fpu_stat_TOP.global-to-local, align 1
  br i1 %v1_65, label %dec_label_pc_77, label %dec_label_pc_67

dec_label_pc_67:                                  ; preds = %dec_label_pc_40
  store x86_fp80 0xK3FFF8000000000000000, x86_fp80* %st5.global-to-local, align 4
  %v2_69 = load x86_fp80, x86_fp80* %st6.global-to-local, align 4
  %v3_69 = add i3 %v0_77.pre, -2
  store i3 %v3_69, i3* %fpu_stat_TOP.global-to-local, align 1
  %v0_6b = call i32 @__asm_fprem()
  %v0_6d = call i32 @__asm_f2xm1()
  %v4_6f = fadd x86_fp80 %v2_69, 0xK3FFF8000000000000000
  store x86_fp80 %v4_6f, x86_fp80* %st5.global-to-local, align 4
  %v7_6f = add i3 %v0_77.pre, -1
  store i3 %v7_6f, i3* %fpu_stat_TOP.global-to-local, align 1
  %v0_71 = call i32 @__asm_fscale()
  %v3_73 = load x86_fp80, x86_fp80* %st6.global-to-local, align 4
  store x86_fp80 %v4_6f, x86_fp80* %st6.global-to-local, align 4
  store x86_fp80 %v3_73, x86_fp80* %st5.global-to-local, align 4
  store i3 %v0_77.pre, i3* %fpu_stat_TOP.global-to-local, align 1
  br label %dec_label_pc_77

dec_label_pc_77:                                  ; preds = %dec_label_pc_40, %dec_label_pc_67
  store x86_fp80 %v5_50, x86_fp80* %st5.global-to-local, align 4
  %v3_7b = load double, double* %stack_var_-28, align 8
  %v8_7b = fpext double %v3_7b to x86_fp80
  %v9_7b = add i3 %v0_77.pre, -2
  store i3 %v9_7b, i3* %fpu_stat_TOP.global-to-local, align 1
  %v0_7e = call i32 @__asm_fpatan()
  %v2_80 = load i32, i32* %edi.global-to-local, align 4
  %v3_80 = add i32 %v2_80, -16
  %v4_80 = inttoptr i32 %v3_80 to double*
  %v5_80 = load double, double* %v4_80, align 4
  %v6_80 = fpext double %v5_80 to x86_fp80
  %v7_80 = fmul x86_fp80 %v8_7b, %v6_80
  %v0_83 = load i3, i3* %fpu_stat_TOP.global-to-local, align 1
  %v3_83 = load x86_fp80, x86_fp80* %st5.global-to-local, align 4
  %v4_83 = fadd x86_fp80 %v7_80, %v3_83
  store x86_fp80 %v4_83, x86_fp80* %st5.global-to-local, align 4
  %v7_83 = add i3 %v0_83, 1
  store i3 %v7_83, i3* %fpu_stat_TOP.global-to-local, align 1
  %v2_85 = call x86_fp80 @llvm.fabs.f80(x86_fp80 %v4_83)
  %v3_85 = fcmp olt x86_fp80 %v2_85, 0xK403E8000000000000000
  br i1 %v3_85, label %bb, label %bb250

bb:                                               ; preds = %dec_label_pc_77
  %v4_85 = call x86_fp80 @llvm.sin.f80(x86_fp80 %v4_83)
  store x86_fp80 %v4_85, x86_fp80* %st5.global-to-local, align 4
  br label %bb250

bb250:                                            ; preds = %dec_label_pc_77, %bb
  %tmp251 = call double @llvm.fabs.f64(double %v4_58)
  %v2_87 = fpext double %tmp251 to x86_fp80
  %v3_89 = add i32 %v2_80, -72
  %v4_89 = inttoptr i32 %v3_89 to double*
  %v5_89 = load double, double* %v4_89, align 4
  %v6_89 = fpext double %v5_89 to x86_fp80
  %v7_89 = fmul x86_fp80 %v2_87, %v6_89
  %v8_8c = fpext double %v6_45 to x86_fp80
  %v9_8c = fadd x86_fp80 %v7_89, %v8_8c
  %v2_90 = fsub x86_fp80 0xK80000000000000000000, %v9_8c
  %v1_92 = add i32 %v2_80, -76
  %v2_92 = inttoptr i32 %v1_92 to i32*
  %v3_92 = load i32, i32* %v2_92, align 4
  %v10_92 = icmp eq i32 %v3_92, 0
  %v1_96 = icmp eq i1 %v10_92, false
  br i1 %v1_96, label %dec_label_pc_9b, label %dec_label_pc_98

dec_label_pc_98:                                  ; preds = %bb250
  %v3_98 = add i32 %v2_80, -32
  %v4_98 = inttoptr i32 %v3_98 to double*
  %v5_98 = load double, double* %v4_98, align 4
  %v6_98 = fpext double %v5_98 to x86_fp80
  %v7_98 = fdiv x86_fp80 %v2_90, %v6_98
  br label %dec_label_pc_9b

dec_label_pc_9b:                                  ; preds = %dec_label_pc_98, %bb250
  %v1_9b = phi x86_fp80 [ %v7_98, %dec_label_pc_98 ], [ %v2_90, %bb250 ]
  %v2_9b = load i32, i32* %esi.global-to-local, align 4
  %v3_9b = add i32 %v2_9b, -32
  %v4_9b = fptrunc x86_fp80 %v1_9b to double
  %v5_9b = inttoptr i32 %v3_9b to double*
  store double %v4_9b, double* %v5_9b, align 4
  %v6_9b = add i3 %v0_83, 2
  store i3 %v6_9b, i3* %fpu_stat_TOP.global-to-local, align 1
  ret i32 %v0_7e
}

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

declare i32 @__asm_fyl2x(i32) local_unnamed_addr

declare i32 @__asm_fprem() local_unnamed_addr

declare i32 @__asm_f2xm1() local_unnamed_addr

declare i32 @__asm_fscale() local_unnamed_addr

declare i32 @__asm_fpatan() local_unnamed_addr

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

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 }
