#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 */
double corbel_fget(double, double);
double corbel_flon(double, double);
double corbel_fhybrid(double e, double n) {
  double abn;
  double corbel_fhybrid_out = 0.0;
  abn = n;
  if (n < 0.0) {
    abn = -abn;
  }
  if (abn < 0.6360 * e - 0.60) {
    corbel_fhybrid_out = corbel_flon(e, n);
  } else {
    corbel_fhybrid_out = corbel_fget(e, n);
  }
  return corbel_fhybrid_out;
}


x86 assembly (clang, -O0):
<corbel_fhybrid>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x18(%rbp)
xorps  %xmm0,%xmm0
ucomisd -0x10(%rbp),%xmm0
jbe    1173 <corbel_fhybrid+0x53>
movsd  -0x18(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x18(%rbp),%xmm1
movsd  -0x8(%rbp),%xmm0
movsd  0xe7b(%rip),%xmm2
mulsd  %xmm2,%xmm0
movsd  0xe77(%rip),%xmm2
addsd  %xmm2,%xmm0
ucomisd %xmm1,%xmm0
jbe    11b8 <corbel_fhybrid+0x98>
movsd  -0x8(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
call   1030 <corbel_flon@plt>
movsd  %xmm0,-0x20(%rbp)
jmp    11cc <corbel_fhybrid+0xac>
movsd  -0x8(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
call   1040 <corbel_fget@plt>
movsd  %xmm0,-0x20(%rbp)
movsd  -0x20(%rbp),%xmm0
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<corbel_fhybrid>:
movapd 0xed8(%rip),%xmm2
xorpd  %xmm1,%xmm2
xorpd  %xmm3,%xmm3
movapd %xmm1,%xmm4
cmpltsd %xmm3,%xmm4
andpd  %xmm4,%xmm2
andnpd %xmm1,%xmm4
orpd   %xmm2,%xmm4
movsd  0xec3(%rip),%xmm2
mulsd  %xmm0,%xmm2
addsd  0xebf(%rip),%xmm2
ucomisd %xmm4,%xmm2
jbe    1164 <corbel_fhybrid+0x44>
jmp    1030 <corbel_flon@plt>
jmp    1040 <corbel_fget@plt>

LLVM IR (-O0):
define double @corbel_fhybrid(double %0, double %1) {
%3 = alloca double
%4 = alloca double
%5 = alloca double
%6 = alloca double
store double %0, double* %3
store double %1, double* %4
store double 0.000000e+00, double* %6
%7 = load double, double* %4
store double %7, double* %5
%8 = load double, double* %4
%9 = fcmp olt double %8, 0.000000e+00
br i1 %9, label %10, label %13
10: ; preds = %2
%11 = load double, double* %5
%12 = fneg double %11
store double %12, double* %5
br label %13
13: ; preds = %10, %2
%14 = load double, double* %5
%15 = load double, double* %3
%16 = call double @llvm.fmuladd.f64(double 6.360000e-01, double %15, double -6.000000e-01)
%17 = fcmp olt double %14, %16
br i1 %17, label %18, label %22
18: ; preds = %13
%19 = load double, double* %3
%20 = load double, double* %4
%21 = call double @corbel_flon(double %19, double %20)
store double %21, double* %6
br label %26
22: ; preds = %13
%23 = load double, double* %3
%24 = load double, double* %4
%25 = call double @corbel_fget(double %23, double %24)
store double %25, double* %6
br label %26
26: ; preds = %22, %18
%27 = load double, double* %6
ret double %27
}

LLVM IR (-O2):
define double @corbel_fhybrid(double %0, double %1) {
%3 = fcmp olt double %1, 0.000000e+00
%4 = fneg double %1
%5 = select i1 %3, double %4, double %1
%6 = tail call double @llvm.fmuladd.f64(double %0, double 6.360000e-01, double -6.000000e-01)
%7 = fcmp olt double %5, %6
br i1 %7, label %8, label %10
8: ; preds = %2
%9 = tail call double @corbel_flon(double %0, double %1)
br label %12
10: ; preds = %2
%11 = tail call double @corbel_fget(double %0, double %1)
br label %12
12: ; preds = %10, %8
%13 = phi double [ %9, %8 ], [ %11, %10 ]
ret double %13
}