#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 Bounce__easeIn(float, int /*<<< orphan*/, float, float, float, float);
float Bounce__easeOut(float, int /*<<< orphan*/, float, float, float, float);
float Bounce__easeInOut(float t, float b, float c, float d, float p0,
                        float p1) {
  if (t < d / 2)
    return Bounce__easeIn(t * 2, 0, c, d, p0, p1) * .5f + b;
  else
    return Bounce__easeOut(t * 2 - d, 0, c, d, p0, p1) * .5f + c * .5f + b;
}


x86 assembly (clang, -O0):
<Bounce__easeInOut>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%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),%xmm1
movss  -0x14(%rbp),%xmm0
movss  0xea8(%rip),%xmm2
divss  %xmm2,%xmm0
ucomiss %xmm1,%xmm0
jbe    11ac <Bounce__easeInOut+0x8c>
movss  0xe93(%rip),%xmm0
mulss  -0x8(%rbp),%xmm0
movss  -0x10(%rbp),%xmm1
movss  -0x14(%rbp),%xmm2
movss  -0x18(%rbp),%xmm3
movss  -0x1c(%rbp),%xmm4
xor    %edi,%edi
call   1040 <Bounce__easeIn@plt>
movss  -0xc(%rbp),%xmm1
movss  0xe6a(%rip),%xmm2
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x4(%rbp)
jmp    120d <Bounce__easeInOut+0xed>
movss  -0x8(%rbp),%xmm0
movss  -0x14(%rbp),%xmm1
movd   %xmm1,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm1
addss  %xmm0,%xmm0
addss  %xmm1,%xmm0
movss  -0x10(%rbp),%xmm1
movss  -0x14(%rbp),%xmm2
movss  -0x18(%rbp),%xmm3
movss  -0x1c(%rbp),%xmm4
xor    %edi,%edi
call   1030 <Bounce__easeOut@plt>
movss  0xe16(%rip),%xmm1
mulss  -0x10(%rbp),%xmm1
movss  0xe09(%rip),%xmm2
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
addss  -0xc(%rbp),%xmm0
movss  %xmm0,-0x4(%rbp)
movss  -0x4(%rbp),%xmm0
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Bounce__easeInOut>:
push   %rax
movss  %xmm1,(%rsp)
movss  0xed2(%rip),%xmm1
mulss  %xmm3,%xmm1
ucomiss %xmm0,%xmm1
jbe    1158 <Bounce__easeInOut+0x38>
addss  %xmm0,%xmm0
xor    %edi,%edi
movaps %xmm2,%xmm1
movaps %xmm3,%xmm2
movaps %xmm4,%xmm3
movaps %xmm5,%xmm4
call   1040 <Bounce__easeIn@plt>
mulss  0xeaa(%rip),%xmm0
jmp    1193 <Bounce__easeInOut+0x73>
addss  %xmm0,%xmm0
subss  %xmm3,%xmm0
xor    %edi,%edi
movaps %xmm2,%xmm1
movss  %xmm2,0x4(%rsp)
movaps %xmm3,%xmm2
movaps %xmm4,%xmm3
movaps %xmm5,%xmm4
call   1030 <Bounce__easeOut@plt>
movss  0xe7f(%rip),%xmm1
movss  0x4(%rsp),%xmm2
mulss  %xmm1,%xmm2
mulss  %xmm1,%xmm0
addss  %xmm2,%xmm0
addss  (%rsp),%xmm0
pop    %rax
ret

LLVM IR (-O0):
define float @Bounce__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 = load float, float* %11
%16 = fdiv float %15, 2.000000e+00
%17 = fcmp olt float %14, %16
br i1 %17, label %18, label %28
18: ; preds = %6
%19 = load float, float* %8
%20 = fmul float %19, 2.000000e+00
%21 = load float, float* %10
%22 = load float, float* %11
%23 = load float, float* %12
%24 = load float, float* %13
%25 = call float @Bounce__easeIn(float %20, i32 0, float %21, float %22, float %23, float %24)
%26 = load float, float* %9
%27 = call float @llvm.fmuladd.f32(float %25, float 5.000000e-01, float %26)
store float %27, float* %7
br label %43
28: ; preds = %6
%29 = load float, float* %8
%30 = load float, float* %11
%31 = fneg float %30
%32 = call float @llvm.fmuladd.f32(float %29, float 2.000000e+00, float %31)
%33 = load float, float* %10
%34 = load float, float* %11
%35 = load float, float* %12
%36 = load float, float* %13
%37 = call float @Bounce__easeOut(float %32, i32 0, float %33, float %34, float %35, float %36)
%38 = load float, float* %10
%39 = fmul float %38, 5.000000e-01
%40 = call float @llvm.fmuladd.f32(float %37, float 5.000000e-01, float %39)
%41 = load float, float* %9
%42 = fadd float %40, %41
store float %42, float* %7
br label %43
43: ; preds = %28, %18
%44 = load float, float* %7
ret float %44
}

LLVM IR (-O2):
define float @Bounce__easeInOut(float %0, float %1, float %2, float %3, float %4, float %5) {
%7 = fmul float %3, 5.000000e-01
%8 = fcmp ogt float %7, %0
br i1 %8, label %9, label %13
9: ; preds = %6
%10 = fmul float %0, 2.000000e+00
%11 = tail call float @Bounce__easeIn(float %10, i32 0, float %2, float %3, float %4, float %5)
%12 = tail call float @llvm.fmuladd.f32(float %11, float 5.000000e-01, float %1)
br label %20
13: ; preds = %6
%14 = fneg float %3
%15 = tail call float @llvm.fmuladd.f32(float %0, float 2.000000e+00, float %14)
%16 = tail call float @Bounce__easeOut(float %15, i32 0, float %2, float %3, float %4, float %5)
%17 = fmul float %2, 5.000000e-01
%18 = tail call float @llvm.fmuladd.f32(float %16, float 5.000000e-01, float %17)
%19 = fadd float %18, %1
br label %20
20: ; preds = %13, %9
%21 = phi float [ %12, %9 ], [ %19, %13 ]
ret float %21
}