#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
long double fabsl(long double);
long double xLarge_x(long double, long double);
long double xMedium_x(long double, long double);
long double xSmall_x(long double, long double);
long double xEntire_Incomplete_Gamma_Function(long double x, long double nu) {
  if (x == 0.0L)
    return 0.0L;
  if (fabsl(x) <= 1.0L)
    return xSmall_x(x, nu);
  if (fabsl(x) < (nu + 1.0L))
    return xMedium_x(x, nu);
  return xLarge_x(x, nu);
}


x86 assembly (clang, -O0):
<xEntire_Incomplete_Gamma_Function>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
fldt   0x20(%rbp)
fldt   0x10(%rbp)
fstpt  -0x20(%rbp)
fstpt  -0x30(%rbp)
fldt   -0x20(%rbp)
fldz
fxch   %st(1)
fucomip %st(1),%st
fstp   %st(0)
jne    116a <xEntire_Incomplete_Gamma_Function+0x3a>
jp     116a <xEntire_Incomplete_Gamma_Function+0x3a>
jmp    1160 <xEntire_Incomplete_Gamma_Function+0x30>
fldz
fstpt  -0x10(%rbp)
jmp    11e7 <xEntire_Incomplete_Gamma_Function+0xb7>
fldt   -0x20(%rbp)
fabs
fld1
fucomip %st(1),%st
fstp   %st(0)
jb     119b <xEntire_Incomplete_Gamma_Function+0x6b>
jmp    1180 <xEntire_Incomplete_Gamma_Function+0x50>
fldt   -0x20(%rbp)
fldt   -0x30(%rbp)
mov    %rsp,%rax
fstpt  0x10(%rax)
fstpt  (%rax)
call   1030 <xSmall_x@plt>
fstpt  -0x10(%rbp)
jmp    11e7 <xEntire_Incomplete_Gamma_Function+0xb7>
fldt   -0x20(%rbp)
fabs
fldt   -0x30(%rbp)
fld1
faddp  %st,%st(1)
fucomip %st(1),%st
fstp   %st(0)
jbe    11d1 <xEntire_Incomplete_Gamma_Function+0xa1>
jmp    11b6 <xEntire_Incomplete_Gamma_Function+0x86>
fldt   -0x20(%rbp)
fldt   -0x30(%rbp)
mov    %rsp,%rax
fstpt  0x10(%rax)
fstpt  (%rax)
call   1040 <xMedium_x@plt>
fstpt  -0x10(%rbp)
jmp    11e7 <xEntire_Incomplete_Gamma_Function+0xb7>
fldt   -0x20(%rbp)
fldt   -0x30(%rbp)
mov    %rsp,%rax
fstpt  0x10(%rax)
fstpt  (%rax)
call   1050 <xLarge_x@plt>
fstpt  -0x10(%rbp)
fldt   -0x10(%rbp)
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<xEntire_Incomplete_Gamma_Function>:
sub    $0x28,%rsp
fldt   0x40(%rsp)
fldt   0x30(%rsp)
fldz
fxch   %st(1)
fucomi %st(1),%st
jne    114f <xEntire_Incomplete_Gamma_Function+0x1f>
jp     114f <xEntire_Incomplete_Gamma_Function+0x1f>
fstp   %st(0)
fstp   %st(1)
add    $0x28,%rsp
ret
fstp   %st(1)
fld    %st(0)
fabs
fld1
fucomi %st(1),%st
jae    1176 <xEntire_Incomplete_Gamma_Function+0x46>
fadd   %st(3),%st
fucomip %st(1),%st
fstp   %st(0)
jbe    118d <xEntire_Incomplete_Gamma_Function+0x5d>
fxch   %st(1)
fstpt  0x10(%rsp)
fstpt  (%rsp)
call   1040 <xMedium_x@plt>
add    $0x28,%rsp
ret
fstp   %st(1)
fstp   %st(0)
fxch   %st(1)
fstpt  0x10(%rsp)
fstpt  (%rsp)
call   1030 <xSmall_x@plt>
add    $0x28,%rsp
ret
fxch   %st(1)
fstpt  0x10(%rsp)
fstpt  (%rsp)
call   1050 <xLarge_x@plt>
add    $0x28,%rsp
ret

LLVM IR (-O0):
define x86_fp80 @xEntire_Incomplete_Gamma_Function(x86_fp80 %0, x86_fp80 %1) {
%3 = alloca x86_fp80
%4 = alloca x86_fp80
%5 = alloca x86_fp80
store x86_fp80 %0, x86_fp80* %4
store x86_fp80 %1, x86_fp80* %5
%6 = load x86_fp80, x86_fp80* %4
%7 = fcmp oeq x86_fp80 %6, 0xK00000000000000000000
br i1 %7, label %8, label %9
8: ; preds = %2
store x86_fp80 0xK00000000000000000000, x86_fp80* %3
br label %31
9: ; preds = %2
%10 = load x86_fp80, x86_fp80* %4
%11 = call x86_fp80 @llvm.fabs.f80(x86_fp80 %10)
%12 = fcmp ole x86_fp80 %11, 0xK3FFF8000000000000000
br i1 %12, label %13, label %17
13: ; preds = %9
%14 = load x86_fp80, x86_fp80* %4
%15 = load x86_fp80, x86_fp80* %5
%16 = call x86_fp80 @xSmall_x(x86_fp80 %14, x86_fp80 %15)
store x86_fp80 %16, x86_fp80* %3
br label %31
17: ; preds = %9
%18 = load x86_fp80, x86_fp80* %4
%19 = call x86_fp80 @llvm.fabs.f80(x86_fp80 %18)
%20 = load x86_fp80, x86_fp80* %5
%21 = fadd x86_fp80 %20, 0xK3FFF8000000000000000
%22 = fcmp olt x86_fp80 %19, %21
br i1 %22, label %23, label %27
23: ; preds = %17
%24 = load x86_fp80, x86_fp80* %4
%25 = load x86_fp80, x86_fp80* %5
%26 = call x86_fp80 @xMedium_x(x86_fp80 %24, x86_fp80 %25)
store x86_fp80 %26, x86_fp80* %3
br label %31
27: ; preds = %17
%28 = load x86_fp80, x86_fp80* %4
%29 = load x86_fp80, x86_fp80* %5
%30 = call x86_fp80 @xLarge_x(x86_fp80 %28, x86_fp80 %29)
store x86_fp80 %30, x86_fp80* %3
br label %31
31: ; preds = %27, %23, %13, %8
%32 = load x86_fp80, x86_fp80* %3
ret x86_fp80 %32
}

LLVM IR (-O2):
define x86_fp80 @xEntire_Incomplete_Gamma_Function(x86_fp80 %0, x86_fp80 %1) {
%3 = fcmp oeq x86_fp80 %0, 0xK00000000000000000000
br i1 %3, label %16, label %4
4: ; preds = %2
%5 = tail call x86_fp80 @llvm.fabs.f80(x86_fp80 %0)
%6 = fcmp ugt x86_fp80 %5, 0xK3FFF8000000000000000
br i1 %6, label %9, label %7
7: ; preds = %4
%8 = tail call x86_fp80 @xSmall_x(x86_fp80 %0, x86_fp80 %1)
br label %16
9: ; preds = %4
%10 = fadd x86_fp80 %1, 0xK3FFF8000000000000000
%11 = fcmp olt x86_fp80 %5, %10
br i1 %11, label %12, label %14
12: ; preds = %9
%13 = tail call x86_fp80 @xMedium_x(x86_fp80 %0, x86_fp80 %1)
br label %16
14: ; preds = %9
%15 = tail call x86_fp80 @xLarge_x(x86_fp80 %0, x86_fp80 %1)
br label %16
16: ; preds = %2, %14, %12, %7
%17 = phi x86_fp80 [ %8, %7 ], [ %13, %12 ], [ %15, %14 ], [ 0xK00000000000000000000, %2 ]
ret x86_fp80 %17
}