#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 */
int pow(int, int);
double JHKeyframeAnimationFunctionEaseOutExpo(double t, double b, double c,
                                              double d) {
  return (t == d) ? b + c : c * (-pow(2, -10 * t / d) + 1) + b;
}


x86 assembly (clang, -O0):
<JHKeyframeAnimationFunctionEaseOutExpo>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
movsd  %xmm3,-0x20(%rbp)
movsd  -0x8(%rbp),%xmm0
ucomisd -0x20(%rbp),%xmm0
jne    1156 <JHKeyframeAnimationFunctionEaseOutExpo+0x46>
jp     1156 <JHKeyframeAnimationFunctionEaseOutExpo+0x46>
movsd  -0x10(%rbp),%xmm0
addsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x28(%rbp)
jmp    11a4 <JHKeyframeAnimationFunctionEaseOutExpo+0x94>
movsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  0xe98(%rip),%xmm0
mulsd  -0x8(%rbp),%xmm0
divsd  -0x20(%rbp),%xmm0
cvttsd2si %xmm0,%esi
mov    $0x2,%edi
call   1030 <pow@plt>
movsd  -0x30(%rbp),%xmm0
mov    %eax,%ecx
xor    %eax,%eax
sub    %ecx,%eax
add    $0x1,%eax
cvtsi2sd %eax,%xmm2
movsd  -0x10(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x28(%rbp),%xmm0
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<JHKeyframeAnimationFunctionEaseOutExpo>:
ucomisd %xmm3,%xmm0
jne    1121 <JHKeyframeAnimationFunctionEaseOutExpo+0x11>
jp     1121 <JHKeyframeAnimationFunctionEaseOutExpo+0x11>
addsd  %xmm2,%xmm1
movapd %xmm1,%xmm0
ret
sub    $0x18,%rsp
mulsd  0xed3(%rip),%xmm0
divsd  %xmm3,%xmm0
cvttsd2si %xmm0,%esi
mov    $0x2,%edi
movsd  %xmm2,0x8(%rsp)
movsd  %xmm1,0x10(%rsp)
call   1030 <pow@plt>
mov    $0x1,%ecx
sub    %eax,%ecx
xorps  %xmm1,%xmm1
cvtsi2sd %ecx,%xmm1
movsd  0x8(%rsp),%xmm0
mulsd  %xmm1,%xmm0
addsd  0x10(%rsp),%xmm0
add    $0x18,%rsp
ret

LLVM IR (-O0):
define double @JHKeyframeAnimationFunctionEaseOutExpo(double %0, double %1, double %2, double %3) {
%5 = alloca double
%6 = alloca double
%7 = alloca double
%8 = alloca double
store double %0, double* %5
store double %1, double* %6
store double %2, double* %7
store double %3, double* %8
%9 = load double, double* %5
%10 = load double, double* %8
%11 = fcmp oeq double %9, %10
br i1 %11, label %12, label %16
12: ; preds = %4
%13 = load double, double* %6
%14 = load double, double* %7
%15 = fadd double %13, %14
br label %29
16: ; preds = %4
%17 = load double, double* %7
%18 = load double, double* %5
%19 = fmul double -1.000000e+01, %18
%20 = load double, double* %8
%21 = fdiv double %19, %20
%22 = fptosi double %21 to i32
%23 = call i32 @pow(i32 2, i32 %22)
%24 = sub nsw i32 0, %23
%25 = add nsw i32 %24, 1
%26 = sitofp i32 %25 to double
%27 = load double, double* %6
%28 = call double @llvm.fmuladd.f64(double %17, double %26, double %27)
br label %29
29: ; preds = %16, %12
%30 = phi double [ %15, %12 ], [ %28, %16 ]
ret double %30
}

LLVM IR (-O2):
define double @JHKeyframeAnimationFunctionEaseOutExpo(double %0, double %1, double %2, double %3) {
%5 = fcmp oeq double %0, %3
br i1 %5, label %6, label %8
6: ; preds = %4
%7 = fadd double %1, %2
br label %16
8: ; preds = %4
%9 = fmul double %0, -1.000000e+01
%10 = fdiv double %9, %3
%11 = fptosi double %10 to i32
%12 = tail call i32 @pow(i32 2, i32 %11)
%13 = sub i32 1, %12
%14 = sitofp i32 %13 to double
%15 = tail call double @llvm.fmuladd.f64(double %2, double %14, double %1)
br label %16
16: ; preds = %8, %6
%17 = phi double [ %7, %6 ], [ %15, %8 ]
ret double %17
}