#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);
float ANTweenTimingFunctionExpoOut(float time, float begin, float change,
                                   float duration) {
  return (time == duration)
             ? begin + change
             : change * (-pow(2, -10 * time / duration) + 1) + begin;
}


x86 assembly (clang, -O0):
<ANTweenTimingFunctionExpoOut>:
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 <ANTweenTimingFunctionExpoOut+0x45>
jp     1155 <ANTweenTimingFunctionExpoOut+0x45>
movss  -0x8(%rbp),%xmm0
addss  -0xc(%rbp),%xmm0
movss  %xmm0,-0x14(%rbp)
jmp    11a3 <ANTweenTimingFunctionExpoOut+0x93>
movss  -0xc(%rbp),%xmm0
movss  %xmm0,-0x18(%rbp)
movss  0xe99(%rip),%xmm0
mulss  -0x4(%rbp),%xmm0
divss  -0x10(%rbp),%xmm0
cvttss2si %xmm0,%esi
mov    $0x2,%edi
call   1030 <pow@plt>
movss  -0x18(%rbp),%xmm0
mov    %eax,%ecx
xor    %eax,%eax
sub    %ecx,%eax
add    $0x1,%eax
cvtsi2ss %eax,%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):
<ANTweenTimingFunctionExpoOut>:
ucomiss %xmm3,%xmm0
jne    111f <ANTweenTimingFunctionExpoOut+0xf>
jp     111f <ANTweenTimingFunctionExpoOut+0xf>
addss  %xmm2,%xmm1
movaps %xmm1,%xmm0
ret
push   %rax
mulss  0xed8(%rip),%xmm0
divss  %xmm3,%xmm0
cvttss2si %xmm0,%esi
mov    $0x2,%edi
movss  %xmm2,(%rsp)
movss  %xmm1,0x4(%rsp)
call   1030 <pow@plt>
mov    $0x1,%ecx
sub    %eax,%ecx
xorps  %xmm1,%xmm1
cvtsi2ss %ecx,%xmm1
movss  (%rsp),%xmm0
mulss  %xmm1,%xmm0
addss  0x4(%rsp),%xmm0
pop    %rax
ret

LLVM IR (-O0):
define float @ANTweenTimingFunctionExpoOut(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 %29
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 = fptosi float %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 float
%27 = load float, float* %6
%28 = call float @llvm.fmuladd.f32(float %17, float %26, float %27)
br label %29
29: ; preds = %16, %12
%30 = phi float [ %15, %12 ], [ %28, %16 ]
ret float %30
}

LLVM IR (-O2):
define float @ANTweenTimingFunctionExpoOut(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 %16
8: ; preds = %4
%9 = fmul float %0, -1.000000e+01
%10 = fdiv float %9, %3
%11 = fptosi float %10 to i32
%12 = tail call i32 @pow(i32 2, i32 %11)
%13 = sub i32 1, %12
%14 = sitofp i32 %13 to float
%15 = tail call float @llvm.fmuladd.f32(float %2, float %14, float %1)
br label %16
16: ; preds = %8, %6
%17 = phi float [ %7, %6 ], [ %15, %8 ]
ret float %17
}