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:
  %ebx.global-to-local = alloca i32, align 4
  %edi.global-to-local = alloca i32, align 4
  %edx.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
  %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
  %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
  %v2_e = add i32 %v3_b, -16
  %v3_e = inttoptr i32 %v2_e to double*
  %v4_e = load double, double* %v3_e, align 4
  %v5_e = fpext double %v4_e to x86_fp80
  store x86_fp80 %v5_e, x86_fp80* %st7.global-to-local, align 4
  %v5_1f = xor i3 %v0_e, -4
  store i3 %v5_1f, i3* %fpu_stat_TOP.global-to-local, align 1
  %v0_28 = load i32, i32* %fpsw.global-to-local, align 4
  %v1_28 = call i16 @__asm_fnstsw(i32 %v0_28)
  %v2_28 = sext i16 %v1_28 to i32
  %v3_28 = load i32, i32* @eax, align 8
  %v4_28 = and i32 %v3_28, -65536
  %v3_2a = and i32 %v2_28, 16640
  %v2_28.masked = and i32 %v2_28, -65281
  %v12_2a = or i32 %v4_28, %v2_28.masked
  %v13_2a = or i32 %v12_2a, %v3_2a
  store i32 %v13_2a, i32* @eax, align 8
  %v0_33 = load i3, i3* %fpu_stat_TOP.global-to-local, align 1
  %storemerge2 = add i3 %v0_33, 1
  store i3 %storemerge2, i3* %fpu_stat_TOP.global-to-local, align 1
  %v0_37 = load i32, i32* %fpsw.global-to-local, align 4
  %v1_37 = call i16 @__asm_fnstsw(i32 %v0_37)
  %v2_37 = sext i16 %v1_37 to i32
  %v3_37 = load i32, i32* @eax, align 8
  %v4_37 = and i32 %v3_37, -65536
  %v3_39 = and i32 %v2_37, 16640
  %v2_37.masked = and i32 %v2_37, -65281
  %v12_39 = or i32 %v4_37, %v2_37.masked
  %v13_39 = or i32 %v12_39, %v3_39
  store i32 %v13_39, i32* @eax, align 8
  %storemerge.in = load i3, i3* %fpu_stat_TOP.global-to-local, align 1
  %v3_4e = load double, double* bitcast (i32* @eax to double*), align 8
  %v4_4e = fpext double %v3_4e to x86_fp80
  %v4_50 = fsub x86_fp80 %v4_4e, %v4_4e
  store x86_fp80 %v4_50, x86_fp80* %st7.global-to-local, align 4
  %v3_56 = load double, double* bitcast (i32* @ecx to double*), align 8
  %tmp241 = bitcast double %v3_56 to i64
  %tmp242 = trunc i64 %tmp241 to i32
  %v3_5a = fptrunc x86_fp80 %v4_50 to double
  %v4_5a = inttoptr i32 %tmp242 to double*
  store double %v3_5a, double* %v4_5a, align 4
  %v1_5c = load x86_fp80, x86_fp80* %st7.global-to-local, align 4
  %v2_5c = load i32, i32* %edx.global-to-local, align 8
  %v3_5c = fptrunc x86_fp80 %v1_5c to double
  %v4_5c = inttoptr i32 %v2_5c to double*
  store double %v3_5c, double* %v4_5c, align 4
  %v1_5e = load x86_fp80, x86_fp80* %st7.global-to-local, align 4
  %v2_5e = load i32, i32* %ebx.global-to-local, align 4
  %v3_5e = fptrunc x86_fp80 %v1_5e to double
  %v4_5e = inttoptr i32 %v2_5e to double*
  store double %v3_5e, double* %v4_5e, align 4
  %v4_60 = add i3 %storemerge.in, 3
  store i3 %v4_60, i3* %fpu_stat_TOP.global-to-local, align 1
  store i32 %v2_5e, 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_5e
}

declare i16 @__asm_fnstsw(i32) local_unnamed_addr
