#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 sinf(float);
float EaseElasticIn(float t, float b, float c, float d) {
  if (t == 0.0f)
    return b;
  if ((t /= d) == 1.0f)
    return (b + c);
  float p = d * 0.3f;
  float a = c;
  float s = p / 4.0f;
  float postFix = a * powf(2.0f, 10.0f * (t -= 1.0f));
  return (
      -(postFix * sinf((t * d - s) * (2.0f * 3.14159265358979323846f) / p)) +
      b);
}


x86 assembly (clang, -O0):
<EaseElasticIn>:
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  -0x8(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    1162 <EaseElasticIn+0x42>
jp     1162 <EaseElasticIn+0x42>
movss  -0xc(%rbp),%xmm0
movss  %xmm0,-0x4(%rbp)
jmp    1283 <EaseElasticIn+0x163>
movss  -0x14(%rbp),%xmm1
movss  -0x8(%rbp),%xmm0
divss  %xmm1,%xmm0
movss  %xmm0,-0x8(%rbp)
movss  0xe83(%rip),%xmm1
ucomiss %xmm1,%xmm0
jne    11a0 <EaseElasticIn+0x80>
jp     11a0 <EaseElasticIn+0x80>
movss  -0xc(%rbp),%xmm0
addss  -0x10(%rbp),%xmm0
movss  %xmm0,-0x4(%rbp)
jmp    1283 <EaseElasticIn+0x163>
movss  0xe6c(%rip),%xmm0
mulss  -0x14(%rbp),%xmm0
movss  %xmm0,-0x18(%rbp)
movss  -0x10(%rbp),%xmm0
movss  %xmm0,-0x1c(%rbp)
movss  -0x18(%rbp),%xmm0
movss  0xe47(%rip),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x20(%rbp)
movss  -0x1c(%rbp),%xmm0
movss  %xmm0,-0x2c(%rbp)
movss  -0x8(%rbp),%xmm0
movss  0xe17(%rip),%xmm1
subss  %xmm1,%xmm0
movss  %xmm0,-0x8(%rbp)
movss  0xe12(%rip),%xmm1
mulss  %xmm0,%xmm1
movss  0xe02(%rip),%xmm0
call   1040 <powf@plt>
movaps %xmm0,%xmm1
movss  -0x2c(%rbp),%xmm0
mulss  %xmm1,%xmm0
movss  %xmm0,-0x24(%rbp)
movss  -0x24(%rbp),%xmm0
movss  %xmm0,-0x28(%rbp)
movss  -0x8(%rbp),%xmm0
movss  -0x14(%rbp),%xmm2
movss  -0x20(%rbp),%xmm1
movd   %xmm1,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  0xdb2(%rip),%xmm1
mulss  %xmm1,%xmm0
divss  -0x18(%rbp),%xmm0
call   1030 <sinf@plt>
movaps %xmm0,%xmm1
movss  -0x28(%rbp),%xmm0
mulss  %xmm1,%xmm0
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
addss  -0xc(%rbp),%xmm0
movss  %xmm0,-0x4(%rbp)
movss  -0x4(%rbp),%xmm0
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<EaseElasticIn>:
sub    $0x18,%rsp
movaps %xmm0,%xmm4
xorps  %xmm0,%xmm0
ucomiss %xmm0,%xmm4
jne    1135 <EaseElasticIn+0x15>
jnp    11e4 <EaseElasticIn+0xc4>
divss  %xmm3,%xmm4
ucomiss 0xec0(%rip),%xmm4
jne    114d <EaseElasticIn+0x2d>
jp     114d <EaseElasticIn+0x2d>
addss  %xmm2,%xmm1
jmp    11e4 <EaseElasticIn+0xc4>
movss  0xeaf(%rip),%xmm0
mulss  %xmm3,%xmm0
movss  %xmm0,0x8(%rsp)
addss  0xea1(%rip),%xmm4
movss  %xmm4,(%rsp)
movss  0xe98(%rip),%xmm0
mulss  %xmm4,%xmm0
movss  %xmm1,0x14(%rsp)
movss  %xmm2,0x10(%rsp)
movss  %xmm3,0x4(%rsp)
call   1040 <exp2f@plt>
movss  %xmm0,0xc(%rsp)
movss  0xe73(%rip),%xmm0
movss  0x8(%rsp),%xmm1
mulss  %xmm1,%xmm0
movss  (%rsp),%xmm2
mulss  0x4(%rsp),%xmm2
addss  %xmm0,%xmm2
mulss  0xe56(%rip),%xmm2
divss  %xmm1,%xmm2
movaps %xmm2,%xmm0
call   1030 <sinf@plt>
movss  0x14(%rsp),%xmm1
movss  0xc(%rsp),%xmm2
mulss  0x10(%rsp),%xmm2
mulss  %xmm0,%xmm2
subss  %xmm2,%xmm1
movaps %xmm1,%xmm0
add    $0x18,%rsp
ret

LLVM IR (-O0):
define float @EaseElasticIn(float %0, float %1, float %2, float %3) {
%5 = alloca float
%6 = alloca float
%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* %6
store float %1, float* %7
store float %2, float* %8
store float %3, float* %9
%14 = load float, float* %6
%15 = fcmp oeq float %14, 0.000000e+00
br i1 %15, label %16, label %18
16: ; preds = %4
%17 = load float, float* %7
store float %17, float* %5
br label %53
18: ; preds = %4
%19 = load float, float* %9
%20 = load float, float* %6
%21 = fdiv float %20, %19
store float %21, float* %6
%22 = fcmp oeq float %21, 1.000000e+00
br i1 %22, label %23, label %27
23: ; preds = %18
%24 = load float, float* %7
%25 = load float, float* %8
%26 = fadd float %24, %25
store float %26, float* %5
br label %53
27: ; preds = %18
%28 = load float, float* %9
%29 = fmul float %28, 0x3FD3333340000000
store float %29, float* %10
%30 = load float, float* %8
store float %30, float* %11
%31 = load float, float* %10
%32 = fdiv float %31, 4.000000e+00
store float %32, float* %12
%33 = load float, float* %11
%34 = load float, float* %6
%35 = fsub float %34, 1.000000e+00
store float %35, float* %6
%36 = fmul float 1.000000e+01, %35
%37 = call float @powf(float 2.000000e+00, float %36)
%38 = fmul float %33, %37
store float %38, float* %13
%39 = load float, float* %13
%40 = load float, float* %6
%41 = load float, float* %9
%42 = load float, float* %12
%43 = fneg float %42
%44 = call float @llvm.fmuladd.f32(float %40, float %41, float %43)
%45 = fmul float %44, 0x401921FB60000000
%46 = load float, float* %10
%47 = fdiv float %45, %46
%48 = call float @sinf(float %47)
%49 = fmul float %39, %48
%50 = fneg float %49
%51 = load float, float* %7
%52 = fadd float %50, %51
store float %52, float* %5
br label %53
53: ; preds = %27, %23, %16
%54 = load float, float* %5
ret float %54
}

LLVM IR (-O2):
define float @EaseElasticIn(float %0, float %1, float %2, float %3) {
%5 = fcmp oeq float %0, 0.000000e+00
br i1 %5, label %25, label %6
6: ; preds = %4
%7 = fdiv float %0, %3
%8 = fcmp oeq float %7, 1.000000e+00
br i1 %8, label %9, label %11
9: ; preds = %6
%10 = fadd float %1, %2
br label %25
11: ; preds = %6
%12 = fmul float %3, 0x3FD3333340000000
%13 = fadd float %7, -1.000000e+00
%14 = fmul float %13, 1.000000e+01
%15 = tail call float @exp2f(float %14)
%16 = fmul float %12, -2.500000e-01
%17 = tail call float @llvm.fmuladd.f32(float %13, float %3, float %16)
%18 = fmul float %17, 0x401921FB60000000
%19 = fdiv float %18, %12
%20 = tail call float @sinf(float %19)
%21 = fneg float %15
%22 = fmul float %21, %2
%23 = fmul float %22, %20
%24 = fadd float %23, %1
br label %25
25: ; preds = %4, %11, %9
%26 = phi float [ %10, %9 ], [ %24, %11 ], [ %1, %4 ]
ret float %26
}