#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 */
float powf(float, float);
float EaseExpoOut(float t, float b, float c, float d) {
  return (t == d) ? (b + c) : (c * (-powf(2.0f, -10.0f * t / d) + 1.0f) + b);
}


x86 assembly (clang, -O0):
<EaseExpoOut>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movss  %xmm0,-0x4(%rbp)
movss  %xmm1,-0x8(%rbp)
movss  %xmm2,-0xc(%rbp)
movss  %xmm3,-0x10(%rbp)
movss  -0x4(%rbp),%xmm0
ucomiss -0x10(%rbp),%xmm0
jne    1155 <EaseExpoOut+0x45>
jp     1155 <EaseExpoOut+0x45>
movss  -0x8(%rbp),%xmm0
addss  -0xc(%rbp),%xmm0
movss  %xmm0,-0x14(%rbp)
jmp    11b1 <EaseExpoOut+0xa1>
movss  -0xc(%rbp),%xmm0
movss  %xmm0,-0x18(%rbp)
movss  0xea1(%rip),%xmm1
mulss  -0x4(%rbp),%xmm1
divss  -0x10(%rbp),%xmm1
movss  0xe8b(%rip),%xmm0
call   1030 <powf@plt>
movaps %xmm0,%xmm1
movss  -0x18(%rbp),%xmm0
movd   %xmm1,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm2
movss  0xe65(%rip),%xmm1
addss  %xmm1,%xmm2
movss  -0x8(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x14(%rbp)
movss  -0x14(%rbp),%xmm0
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<EaseExpoOut>:
ucomiss %xmm3,%xmm0
jne    111f <EaseExpoOut+0xf>
jp     111f <EaseExpoOut+0xf>
addss  %xmm2,%xmm1
movaps %xmm1,%xmm0
ret
push   %rax
mulss  0xed8(%rip),%xmm0
divss  %xmm3,%xmm0
movss  %xmm2,(%rsp)
movss  %xmm1,0x4(%rsp)
call   1030 <exp2f@plt>
movss  0xec0(%rip),%xmm1
subss  %xmm0,%xmm1
movss  (%rsp),%xmm0
mulss  %xmm1,%xmm0
addss  0x4(%rsp),%xmm0
pop    %rax
ret

LLVM IR (-O0):
define float @EaseExpoOut(float %0, float %1, float %2, float %3) {
%5 = alloca float
%6 = alloca float
%7 = alloca float
%8 = alloca float
store float %0, float* %5
store float %1, float* %6
store float %2, float* %7
store float %3, float* %8
%9 = load float, float* %5
%10 = load float, float* %8
%11 = fcmp oeq float %9, %10
br i1 %11, label %12, label %16
12: ; preds = %4
%13 = load float, float* %6
%14 = load float, float* %7
%15 = fadd float %13, %14
br label %27
16: ; preds = %4
%17 = load float, float* %7
%18 = load float, float* %5
%19 = fmul float -1.000000e+01, %18
%20 = load float, float* %8
%21 = fdiv float %19, %20
%22 = call float @powf(float 2.000000e+00, float %21)
%23 = fneg float %22
%24 = fadd float %23, 1.000000e+00
%25 = load float, float* %6
%26 = call float @llvm.fmuladd.f32(float %17, float %24, float %25)
br label %27
27: ; preds = %16, %12
%28 = phi float [ %15, %12 ], [ %26, %16 ]
ret float %28
}

LLVM IR (-O2):
define float @EaseExpoOut(float %0, float %1, float %2, float %3) {
%5 = fcmp oeq float %0, %3
br i1 %5, label %6, label %8
6: ; preds = %4
%7 = fadd float %1, %2
br label %14
8: ; preds = %4
%9 = fmul float %0, -1.000000e+01
%10 = fdiv float %9, %3
%11 = tail call float @exp2f(float %10)
%12 = fsub float 1.000000e+00, %11
%13 = tail call float @llvm.fmuladd.f32(float %2, float %12, float %1)
br label %14
14: ; preds = %8, %6
%15 = phi float [ %7, %6 ], [ %13, %8 ]
ret float %15
}