#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 Expo__easeInOut(float t, float b, float c, float d, float p0, float p1) {
  if (t == 0)
    return b;
  if (t == d)
    return b + c;
  if ((t /= d / 2) < 1)
    return c / 2 * pow(2, 10 * (t - 1)) + b;
  return c / 2 * (-pow(2, -10 * --t) + 2) + b;
}


x86 assembly (clang, -O0):
<Expo__easeInOut>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movss  %xmm0,-0x8(%rbp)
movss  %xmm1,-0xc(%rbp)
movss  %xmm2,-0x10(%rbp)
movss  %xmm3,-0x14(%rbp)
movss  %xmm4,-0x18(%rbp)
movss  %xmm5,-0x1c(%rbp)
movss  -0x8(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    115c <Expo__easeInOut+0x4c>
jp     115c <Expo__easeInOut+0x4c>
movss  -0xc(%rbp),%xmm0
movss  %xmm0,-0x4(%rbp)
jmp    127c <Expo__easeInOut+0x16c>
movss  -0x8(%rbp),%xmm0
ucomiss -0x14(%rbp),%xmm0
jne    1185 <Expo__easeInOut+0x75>
jp     1185 <Expo__easeInOut+0x75>
movss  -0xc(%rbp),%xmm0
addss  -0x10(%rbp),%xmm0
movss  %xmm0,-0x4(%rbp)
jmp    127c <Expo__easeInOut+0x16c>
movss  -0x14(%rbp),%xmm0
movss  0xe72(%rip),%xmm1
divss  %xmm1,%xmm0
movss  -0x8(%rbp),%xmm1
divss  %xmm0,%xmm1
movss  %xmm1,-0x8(%rbp)
movss  0xe54(%rip),%xmm0
ucomiss %xmm1,%xmm0
jbe    1216 <Expo__easeInOut+0x106>
movss  -0x10(%rbp),%xmm0
movss  0xe42(%rip),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x20(%rbp)
movss  -0x8(%rbp),%xmm1
movss  0xe28(%rip),%xmm0
subss  %xmm0,%xmm1
movss  0xe2c(%rip),%xmm0
mulss  %xmm1,%xmm0
cvttss2si %xmm0,%esi
mov    $0x2,%edi
call   1030 <pow@plt>
movss  -0x20(%rbp),%xmm0
cvtsi2ss %eax,%xmm2
movss  -0xc(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x4(%rbp)
jmp    127c <Expo__easeInOut+0x16c>
movss  -0x10(%rbp),%xmm0
movss  0xde1(%rip),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x24(%rbp)
movss  0xdd8(%rip),%xmm1
addss  -0x8(%rbp),%xmm1
movss  %xmm1,-0x8(%rbp)
movss  0xdc2(%rip),%xmm0
mulss  %xmm1,%xmm0
cvttss2si %xmm0,%esi
mov    $0x2,%edi
call   1030 <pow@plt>
movss  -0x24(%rbp),%xmm0
mov    %eax,%ecx
xor    %eax,%eax
sub    %ecx,%eax
add    $0x2,%eax
cvtsi2ss %eax,%xmm2
movss  -0xc(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x4(%rbp)
movss  -0x4(%rbp),%xmm0
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Expo__easeInOut>:
push   %rbx
sub    $0x10,%rsp
xorps  %xmm4,%xmm4
ucomiss %xmm4,%xmm0
jne    111f <Expo__easeInOut+0xf>
jnp    112a <Expo__easeInOut+0x1a>
ucomiss %xmm3,%xmm0
jne    1133 <Expo__easeInOut+0x23>
jp     1133 <Expo__easeInOut+0x23>
addss  %xmm2,%xmm1
movaps %xmm1,%xmm0
add    $0x10,%rsp
pop    %rbx
ret
movss  %xmm1,0xc(%rsp)
movss  0xebf(%rip),%xmm1
mulss  %xmm1,%xmm3
divss  %xmm3,%xmm0
movss  0xeb3(%rip),%xmm3
ucomiss %xmm0,%xmm3
mulss  %xmm1,%xmm2
movss  %xmm2,0x8(%rsp)
addss  0xea2(%rip),%xmm0
jbe    1187 <Expo__easeInOut+0x77>
mulss  0xea0(%rip),%xmm0
cvttss2si %xmm0,%esi
mov    $0x2,%edi
call   1030 <pow@plt>
xorps  %xmm1,%xmm1
cvtsi2ss %eax,%xmm1
jmp    11ab <Expo__easeInOut+0x9b>
mulss  0xe7d(%rip),%xmm0
cvttss2si %xmm0,%esi
mov    $0x2,%ebx
mov    $0x2,%edi
call   1030 <pow@plt>
sub    %eax,%ebx
xorps  %xmm1,%xmm1
cvtsi2ss %ebx,%xmm1
movss  0x8(%rsp),%xmm0
mulss  %xmm1,%xmm0
addss  0xc(%rsp),%xmm0
jmp    112d <Expo__easeInOut+0x1d>

LLVM IR (-O0):
define float @Expo__easeInOut(float %0, float %1, float %2, float %3, float %4, float %5) {
%7 = alloca float
%8 = alloca float
%9 = alloca float
%10 = alloca float
%11 = alloca float
%12 = alloca float
%13 = alloca float
store float %0, float* %8
store float %1, float* %9
store float %2, float* %10
store float %3, float* %11
store float %4, float* %12
store float %5, float* %13
%14 = load float, float* %8
%15 = fcmp oeq float %14, 0.000000e+00
br i1 %15, label %16, label %18
16: ; preds = %6
%17 = load float, float* %9
store float %17, float* %7
br label %56
18: ; preds = %6
%19 = load float, float* %8
%20 = load float, float* %11
%21 = fcmp oeq float %19, %20
br i1 %21, label %22, label %26
22: ; preds = %18
%23 = load float, float* %9
%24 = load float, float* %10
%25 = fadd float %23, %24
store float %25, float* %7
br label %56
26: ; preds = %18
%27 = load float, float* %11
%28 = fdiv float %27, 2.000000e+00
%29 = load float, float* %8
%30 = fdiv float %29, %28
store float %30, float* %8
%31 = fcmp olt float %30, 1.000000e+00
br i1 %31, label %32, label %43
32: ; preds = %26
%33 = load float, float* %10
%34 = fdiv float %33, 2.000000e+00
%35 = load float, float* %8
%36 = fsub float %35, 1.000000e+00
%37 = fmul float 1.000000e+01, %36
%38 = fptosi float %37 to i32
%39 = call i32 @pow(i32 2, i32 %38)
%40 = sitofp i32 %39 to float
%41 = load float, float* %9
%42 = call float @llvm.fmuladd.f32(float %34, float %40, float %41)
store float %42, float* %7
br label %56
43: ; preds = %26
%44 = load float, float* %10
%45 = fdiv float %44, 2.000000e+00
%46 = load float, float* %8
%47 = fadd float %46, -1.000000e+00
store float %47, float* %8
%48 = fmul float -1.000000e+01, %47
%49 = fptosi float %48 to i32
%50 = call i32 @pow(i32 2, i32 %49)
%51 = sub nsw i32 0, %50
%52 = add nsw i32 %51, 2
%53 = sitofp i32 %52 to float
%54 = load float, float* %9
%55 = call float @llvm.fmuladd.f32(float %45, float %53, float %54)
store float %55, float* %7
br label %56
56: ; preds = %43, %32, %22, %16
%57 = load float, float* %7
ret float %57
}

LLVM IR (-O2):
define float @Expo__easeInOut(float %0, float %1, float %2, float %3, float %4, float %5) {
%7 = fcmp oeq float %0, 0.000000e+00
br i1 %7, label %31, label %8
8: ; preds = %6
%9 = fcmp oeq float %0, %3
br i1 %9, label %10, label %12
10: ; preds = %8
%11 = fadd float %1, %2
br label %31
12: ; preds = %8
%13 = fmul float %3, 5.000000e-01
%14 = fdiv float %0, %13
%15 = fcmp olt float %14, 1.000000e+00
%16 = fmul float %2, 5.000000e-01
%17 = fadd float %14, -1.000000e+00
br i1 %15, label %18, label %24
18: ; preds = %12
%19 = fmul float %17, 1.000000e+01
%20 = fptosi float %19 to i32
%21 = tail call i32 @pow(i32 2, i32 %20)
%22 = sitofp i32 %21 to float
%23 = tail call float @llvm.fmuladd.f32(float %16, float %22, float %1)
br label %31
24: ; preds = %12
%25 = fmul float %17, -1.000000e+01
%26 = fptosi float %25 to i32
%27 = tail call i32 @pow(i32 2, i32 %26)
%28 = sub i32 2, %27
%29 = sitofp i32 %28 to float
%30 = tail call float @llvm.fmuladd.f32(float %16, float %29, float %1)
br label %31
31: ; preds = %6, %24, %18, %10
%32 = phi float [ %11, %10 ], [ %23, %18 ], [ %30, %24 ], [ %1, %6 ]
ret float %32
}