#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 log(double);
double lingot_signal_fft_bin_interpolate_quinn2_tau(double x) {
  return (0.25 * log(3 * x * x + 6 * x + 1.0) -
          0.102062072615966 * log((x + 1.0 - 0.816496580927726) /
                                  (x + 1.0 + 0.816496580927726)));
}


x86 assembly (clang, -O0):
<lingot_signal_fft_bin_interpolate_quinn2_tau>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  0xf03(%rip),%xmm0
mulsd  -0x8(%rbp),%xmm0
movsd  -0x8(%rbp),%xmm2
movsd  0xee9(%rip),%xmm1
mulsd  -0x8(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  0xecc(%rip),%xmm1
addsd  %xmm1,%xmm0
call   1030 <log@plt>
movsd  %xmm0,-0x10(%rbp)
movsd  0xeb6(%rip),%xmm0
addsd  -0x8(%rbp),%xmm0
movsd  0xea1(%rip),%xmm1
subsd  %xmm1,%xmm0
movsd  0xe9d(%rip),%xmm1
addsd  -0x8(%rbp),%xmm1
movsd  0xe88(%rip),%xmm2
addsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
call   1030 <log@plt>
movaps %xmm0,%xmm2
movsd  -0x10(%rbp),%xmm0
movsd  0xe63(%rip),%xmm1
mulsd  %xmm2,%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
movsd  0xe38(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<lingot_signal_fft_bin_interpolate_quinn2_tau>:
sub    $0x18,%rsp
movapd %xmm0,%xmm2
movsd  %xmm0,0x8(%rsp)
movsd  0xeda(%rip),%xmm0
mulsd  %xmm2,%xmm0
movsd  0xed6(%rip),%xmm1
mulsd  %xmm2,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
addsd  0xeca(%rip),%xmm0
call   1030 <log@plt>
movsd  %xmm0,0x10(%rsp)
movsd  0x8(%rsp),%xmm1
addsd  0xeb1(%rip),%xmm1
movsd  0xeb1(%rip),%xmm0
addsd  %xmm1,%xmm0
addsd  0xead(%rip),%xmm1
divsd  %xmm1,%xmm0
call   1030 <log@plt>
mulsd  0xea4(%rip),%xmm0
movsd  0x10(%rsp),%xmm1
mulsd  0xe9e(%rip),%xmm1
addsd  %xmm1,%xmm0
add    $0x18,%rsp
ret

LLVM IR (-O0):
define double @lingot_signal_fft_bin_interpolate_quinn2_tau(double %0) {
%2 = alloca double
store double %0, double* %2
%3 = load double, double* %2
%4 = fmul double 3.000000e+00, %3
%5 = load double, double* %2
%6 = load double, double* %2
%7 = fmul double 6.000000e+00, %6
%8 = call double @llvm.fmuladd.f64(double %4, double %5, double %7)
%9 = fadd double %8, 1.000000e+00
%10 = call double @log(double %9)
%11 = load double, double* %2
%12 = fadd double %11, 1.000000e+00
%13 = fsub double %12, 0x3FEA20BD700C2C3E
%14 = load double, double* %2
%15 = fadd double %14, 1.000000e+00
%16 = fadd double %15, 0x3FEA20BD700C2C3E
%17 = fdiv double %13, %16
%18 = call double @log(double %17)
%19 = fmul double 0x3FBA20BD700C2C50, %18
%20 = fneg double %19
%21 = call double @llvm.fmuladd.f64(double 2.500000e-01, double %10, double %20)
ret double %21
}

LLVM IR (-O2):
define double @lingot_signal_fft_bin_interpolate_quinn2_tau(double %0) {
%2 = fmul double %0, 3.000000e+00
%3 = fmul double %0, 6.000000e+00
%4 = tail call double @llvm.fmuladd.f64(double %2, double %0, double %3)
%5 = fadd double %4, 1.000000e+00
%6 = tail call double @log(double %5)
%7 = fadd double %0, 1.000000e+00
%8 = fadd double %7, 0xBFEA20BD700C2C3E
%9 = fadd double %7, 0x3FEA20BD700C2C3E
%10 = fdiv double %8, %9
%11 = tail call double @log(double %10)
%12 = fmul double %11, 0xBFBA20BD700C2C50
%13 = tail call double @llvm.fmuladd.f64(double %6, double 2.500000e-01, double %12)
ret double %13
}