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:
  %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_3 = load i32, i32* %esi.global-to-local, align 4
  %v0_4 = load i32, i32* %edi.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* %edi.global-to-local, align 4
  %v0_a = load i3, i3* %fpu_stat_TOP.global-to-local, align 1
  %v3_a = load double, double* bitcast (i32* @ecx to double*), align 8
  %tmp242 = call double @llvm.fabs.f64(double %v3_a)
  %v2_c = fpext double %tmp242 to x86_fp80
  store x86_fp80 %v2_c, x86_fp80* %st7.global-to-local, align 4
  %v3_e = load double, double* bitcast (i32* @edx to double*), align 8
  %tmp243 = call double @llvm.fabs.f64(double %v3_e)
  %v2_10 = fpext double %tmp243 to x86_fp80
  store x86_fp80 %v2_10, x86_fp80* %st6.global-to-local, align 4
  %v3_12 = load double, double* bitcast (i32* @eax to double*), align 8
  %v5_12 = add i3 %v0_a, -3
  store i3 %v5_12, i3* %fpu_stat_TOP.global-to-local, align 1
  %tmp244 = call double @llvm.fabs.f64(double %v3_12)
  %v2_14 = fpext double %tmp244 to x86_fp80
  store x86_fp80 %v2_14, x86_fp80* %st5.global-to-local, align 4
  %v0_18 = load i32, i32* %fpsw.global-to-local, align 4
  %v1_18 = call i16 @__asm_fnstsw(i32 %v0_18)
  %v2_18 = sext i16 %v1_18 to i32
  %v3_18 = load i32, i32* @eax, align 8
  %v4_18 = and i32 %v3_18, -65536
  %v1_1a = udiv i32 %v2_18, 256
  %v2_1a = trunc i32 %v1_1a to i8
  %v3_1a = and i8 %v2_1a, 65
  %v4_1a = icmp eq i8 %v3_1a, 0
  %v9_1a = zext i8 %v3_1a to i32
  %v11_1a = mul i32 %v9_1a, 256
  %v2_18.masked = and i32 %v2_18, -65281
  %v12_1a = or i32 %v4_18, %v2_18.masked
  %v13_1a = or i32 %v12_1a, %v11_1a
  store i32 %v13_1a, i32* @eax, align 8
  br i1 %v4_1a, label %dec_label_pc_21, label %dec_label_pc_1f

dec_label_pc_1f:                                  ; preds = %dec_label_pc_0
  %v2_1f = load x86_fp80, x86_fp80* %st5.global-to-local, align 4
  %v3_1f = load x86_fp80, x86_fp80* %st6.global-to-local, align 4
  store x86_fp80 %v3_1f, x86_fp80* %st5.global-to-local, align 4
  store x86_fp80 %v2_1f, x86_fp80* %st6.global-to-local, align 4
  br label %dec_label_pc_21

dec_label_pc_21:                                  ; preds = %dec_label_pc_1f, %dec_label_pc_0
  %v0_23 = load i32, i32* %fpsw.global-to-local, align 4
  %v1_23 = call i16 @__asm_fnstsw(i32 %v0_23)
  %v2_23 = sext i16 %v1_23 to i32
  %v3_23 = load i32, i32* @eax, align 8
  %v4_23 = and i32 %v3_23, -65536
  %v3_25 = and i32 %v2_23, 16640
  %v2_23.masked = and i32 %v2_23, -65281
  %v12_25 = or i32 %v4_23, %v2_23.masked
  %v13_25 = or i32 %v12_25, %v3_25
  store i32 %v13_25, i32* @eax, align 8
  %v0_30 = load i32, i32* %fpsw.global-to-local, align 4
  %v1_30 = call i16 @__asm_fnstsw(i32 %v0_30)
  %v0_39 = load i3, i3* %fpu_stat_TOP.global-to-local, align 1
  %v1_39 = load x86_fp80, x86_fp80* %st7.global-to-local, align 4
  %v2_39 = load i32, i32* @edx, align 8
  %v3_39 = fptrunc x86_fp80 %v1_39 to double
  %v4_39 = inttoptr i32 %v2_39 to double*
  store double %v3_39, double* %v4_39, align 4
  %v1_3b = load x86_fp80, x86_fp80* %st7.global-to-local, align 4
  %v2_3b = load i32, i32* %edi.global-to-local, align 4
  %v3_3b = fptrunc x86_fp80 %v1_3b to double
  %v4_3b = inttoptr i32 %v2_3b to double*
  store double %v3_3b, double* %v4_3b, align 4
  %v1_3d = load x86_fp80, x86_fp80* %st7.global-to-local, align 4
  %v2_3d = load i32, i32* @ecx, align 8
  %v3_3d = fptrunc x86_fp80 %v1_3d to double
  %v4_3d = inttoptr i32 %v2_3d to double*
  store double %v3_3d, double* %v4_3d, align 4
  %v5_3d = add i3 %v0_39, 3
  store i3 %v5_3d, i3* %fpu_stat_TOP.global-to-local, align 1
  store i32 %v2_3b, i32* @eax, align 8
  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_3b
}

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 }
