#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 abs(float);
float asin(float);
float pow(int, int);
float sin(float);
float Elastic__easeIn(float t, float b, float c, float d, float a, float p) {
  if (t == 0)
    return b;
  if ((t /= d) == 1)
    return b + c;
  if (-1 == p)
    p = d * .3;
  else
    p = d * p;
  float s = p / 4;
  if (-1 == a || a < abs(c)) {
    a = c;
  } else {
    s = p / (2 * 3.1415926535897932384626433832795) * asin(c / a);
  }
  float postFix = a * pow(2, 10 * (t -= 1));
  return -(postFix *
           sin((t * d - s) * (2 * 3.1415926535897932384626433832795) / p)) +
         b;
}


x86 assembly (clang, -O0):
<Elastic__easeIn>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%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    118c <Elastic__easeIn+0x4c>
jp     118c <Elastic__easeIn+0x4c>
movss  -0xc(%rbp),%xmm0
movss  %xmm0,-0x4(%rbp)
jmp    137c <Elastic__easeIn+0x23c>
movss  -0x14(%rbp),%xmm1
movss  -0x8(%rbp),%xmm0
divss  %xmm1,%xmm0
movss  %xmm0,-0x8(%rbp)
movss  0xe59(%rip),%xmm1
ucomiss %xmm1,%xmm0
jne    11ca <Elastic__easeIn+0x8a>
jp     11ca <Elastic__easeIn+0x8a>
movss  -0xc(%rbp),%xmm0
addss  -0x10(%rbp),%xmm0
movss  %xmm0,-0x4(%rbp)
jmp    137c <Elastic__easeIn+0x23c>
movss  0xe32(%rip),%xmm0
ucomiss -0x1c(%rbp),%xmm0
jne    1205 <Elastic__easeIn+0xc5>
jp     1205 <Elastic__easeIn+0xc5>
movss  -0x14(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xe1d(%rip),%xmm1
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x1c(%rbp)
jmp    1214 <Elastic__easeIn+0xd4>
movss  -0x14(%rbp),%xmm0
mulss  -0x1c(%rbp),%xmm0
movss  %xmm0,-0x1c(%rbp)
movss  -0x1c(%rbp),%xmm0
movss  0xde7(%rip),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x20(%rbp)
movss  0xdd2(%rip),%xmm0
ucomiss -0x18(%rbp),%xmm0
jne    1247 <Elastic__easeIn+0x107>
jp     1247 <Elastic__easeIn+0x107>
jmp    1269 <Elastic__easeIn+0x129>
movss  -0x18(%rbp),%xmm0
movss  %xmm0,-0x28(%rbp)
movss  -0x10(%rbp),%xmm0
call   1030 <abs@plt>
movss  -0x28(%rbp),%xmm1
ucomiss %xmm1,%xmm0
jbe    1278 <Elastic__easeIn+0x138>
movss  -0x10(%rbp),%xmm0
movss  %xmm0,-0x18(%rbp)
jmp    12ba <Elastic__easeIn+0x17a>
movss  -0x1c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xd8f(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
movss  -0x10(%rbp),%xmm0
divss  -0x18(%rbp),%xmm0
call   1050 <asin@plt>
movaps %xmm0,%xmm1
movsd  -0x30(%rbp),%xmm0
cvtss2sd %xmm1,%xmm1
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x20(%rbp)
movss  -0x18(%rbp),%xmm0
movss  %xmm0,-0x38(%rbp)
movss  -0x8(%rbp),%xmm1
movss  0xd2f(%rip),%xmm0
subss  %xmm0,%xmm1
movss  %xmm1,-0x8(%rbp)
movss  0xd2a(%rip),%xmm0
mulss  %xmm1,%xmm0
cvttss2si %xmm0,%esi
mov    $0x2,%edi
call   1060 <pow@plt>
movaps %xmm0,%xmm1
movss  -0x38(%rbp),%xmm0
mulss  %xmm1,%xmm0
movss  %xmm0,-0x24(%rbp)
movss  -0x24(%rbp),%xmm0
movss  %xmm0,-0x34(%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
cvtss2sd %xmm0,%xmm0
movsd  0xcd9(%rip),%xmm1
mulsd  %xmm1,%xmm0
movss  -0x1c(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
call   1040 <sin@plt>
movaps %xmm0,%xmm1
movss  -0x34(%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    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Elastic__easeIn>:
sub    $0x48,%rsp
xorps  %xmm6,%xmm6
ucomiss %xmm6,%xmm0
jne    1152 <Elastic__easeIn+0x12>
jnp    12be <Elastic__easeIn+0x17e>
divss  %xmm3,%xmm0
ucomiss 0xea3(%rip),%xmm0
jne    116a <Elastic__easeIn+0x2a>
jp     116a <Elastic__easeIn+0x2a>
addss  %xmm2,%xmm1
jmp    12be <Elastic__easeIn+0x17e>
movss  %xmm1,0x1c(%rsp)
xorps  %xmm1,%xmm1
cvtss2sd %xmm3,%xmm1
mulsd  0xe91(%rip),%xmm1
xorps  %xmm6,%xmm6
cvtsd2ss %xmm1,%xmm6
movss  %xmm3,0x18(%rsp)
movaps %xmm3,%xmm1
mulss  %xmm5,%xmm1
movss  0xe69(%rip),%xmm7
cmpeqss %xmm7,%xmm5
movaps %xmm5,%xmm3
andnps %xmm1,%xmm3
andps  %xmm6,%xmm5
orps   %xmm3,%xmm5
movaps %xmm5,0x30(%rsp)
mulss  0xe4f(%rip),%xmm5
movaps %xmm5,0x20(%rsp)
ucomiss %xmm7,%xmm4
jne    11cd <Elastic__easeIn+0x8d>
jp     11cd <Elastic__easeIn+0x8d>
movss  %xmm2,0x10(%rsp)
jmp    123f <Elastic__easeIn+0xff>
movss  %xmm0,0x14(%rsp)
movaps %xmm2,%xmm0
movss  %xmm4,0x10(%rsp)
movss  %xmm2,0xc(%rsp)
call   1030 <abs@plt>
movss  0x10(%rsp),%xmm1
ucomiss %xmm1,%xmm0
jbe    1200 <Elastic__easeIn+0xc0>
movss  0xc(%rsp),%xmm0
movss  %xmm0,0x10(%rsp)
jmp    1239 <Elastic__easeIn+0xf9>
movaps 0x30(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
divsd  0xe07(%rip),%xmm0
movsd  %xmm0,0x20(%rsp)
movss  0xc(%rsp),%xmm0
divss  %xmm1,%xmm0
call   1050 <asin@plt>
cvtss2sd %xmm0,%xmm0
mulsd  0x20(%rsp),%xmm0
cvtsd2ss %xmm0,%xmm0
movaps %xmm0,0x20(%rsp)
movss  0x14(%rsp),%xmm0
addss  0xdbd(%rip),%xmm0
movss  %xmm0,0x14(%rsp)
movss  0xdb7(%rip),%xmm1
mulss  %xmm0,%xmm1
cvttss2si %xmm1,%esi
mov    $0x2,%edi
call   1060 <pow@plt>
movss  %xmm0,0xc(%rsp)
movss  0x14(%rsp),%xmm0
mulss  0x18(%rsp),%xmm0
subss  0x20(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mulsd  0xd8d(%rip),%xmm0
movaps 0x30(%rsp),%xmm1
cvtss2sd %xmm1,%xmm1
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
call   1040 <sin@plt>
movss  0xc(%rsp),%xmm1
mulss  0x10(%rsp),%xmm1
mulss  %xmm0,%xmm1
movaps %xmm1,%xmm0
movss  0x1c(%rsp),%xmm1
subss  %xmm0,%xmm1
movaps %xmm1,%xmm0
add    $0x48,%rsp
ret

LLVM IR (-O0):
define float @Elastic__easeIn(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
%14 = alloca float
%15 = 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
%16 = load float, float* %8
%17 = fcmp oeq float %16, 0.000000e+00
br i1 %17, label %18, label %20
18: ; preds = %6
%19 = load float, float* %9
store float %19, float* %7
br label %89
20: ; preds = %6
%21 = load float, float* %11
%22 = load float, float* %8
%23 = fdiv float %22, %21
store float %23, float* %8
%24 = fcmp oeq float %23, 1.000000e+00
br i1 %24, label %25, label %29
25: ; preds = %20
%26 = load float, float* %9
%27 = load float, float* %10
%28 = fadd float %26, %27
store float %28, float* %7
br label %89
29: ; preds = %20
%30 = load float, float* %13
%31 = fcmp oeq float -1.000000e+00, %30
br i1 %31, label %32, label %37
32: ; preds = %29
%33 = load float, float* %11
%34 = fpext float %33 to double
%35 = fmul double %34, 3.000000e-01
%36 = fptrunc double %35 to float
store float %36, float* %13
br label %41
37: ; preds = %29
%38 = load float, float* %11
%39 = load float, float* %13
%40 = fmul float %38, %39
store float %40, float* %13
br label %41
41: ; preds = %37, %32
%42 = load float, float* %13
%43 = fdiv float %42, 4.000000e+00
store float %43, float* %14
%44 = load float, float* %12
%45 = fcmp oeq float -1.000000e+00, %44
br i1 %45, label %51, label %46
46: ; preds = %41
%47 = load float, float* %12
%48 = load float, float* %10
%49 = call float @abs(float %48)
%50 = fcmp olt float %47, %49
br i1 %50, label %51, label %53
51: ; preds = %46, %41
%52 = load float, float* %10
store float %52, float* %12
br label %64
53: ; preds = %46
%54 = load float, float* %13
%55 = fpext float %54 to double
%56 = fdiv double %55, 0x401921FB54442D18
%57 = load float, float* %10
%58 = load float, float* %12
%59 = fdiv float %57, %58
%60 = call float @asin(float %59)
%61 = fpext float %60 to double
%62 = fmul double %56, %61
%63 = fptrunc double %62 to float
store float %63, float* %14
br label %64
64: ; preds = %53, %51
%65 = load float, float* %12
%66 = load float, float* %8
%67 = fsub float %66, 1.000000e+00
store float %67, float* %8
%68 = fmul float 1.000000e+01, %67
%69 = fptosi float %68 to i32
%70 = call float @pow(i32 2, i32 %69)
%71 = fmul float %65, %70
store float %71, float* %15
%72 = load float, float* %15
%73 = load float, float* %8
%74 = load float, float* %11
%75 = load float, float* %14
%76 = fneg float %75
%77 = call float @llvm.fmuladd.f32(float %73, float %74, float %76)
%78 = fpext float %77 to double
%79 = fmul double %78, 0x401921FB54442D18
%80 = load float, float* %13
%81 = fpext float %80 to double
%82 = fdiv double %79, %81
%83 = fptrunc double %82 to float
%84 = call float @sin(float %83)
%85 = fmul float %72, %84
%86 = fneg float %85
%87 = load float, float* %9
%88 = fadd float %86, %87
store float %88, float* %7
br label %89
89: ; preds = %64, %25, %18
%90 = load float, float* %7
ret float %90
}

LLVM IR (-O2):
define float @Elastic__easeIn(float %0, float %1, float %2, float %3, float %4, float %5) {
%7 = fcmp oeq float %0, 0.000000e+00
br i1 %7, label %52, label %8
8: ; preds = %6
%9 = fdiv float %0, %3
%10 = fcmp oeq float %9, 1.000000e+00
br i1 %10, label %11, label %13
11: ; preds = %8
%12 = fadd float %1, %2
br label %52
13: ; preds = %8
%14 = fcmp oeq float %5, -1.000000e+00
%15 = fpext float %3 to double
%16 = fmul double %15, 3.000000e-01
%17 = fptrunc double %16 to float
%18 = fmul float %3, %5
%19 = select i1 %14, float %17, float %18
%20 = fmul float %19, 2.500000e-01
%21 = fcmp oeq float %4, -1.000000e+00
br i1 %21, label %33, label %22
22: ; preds = %13
%23 = tail call float @abs(float %2)
%24 = fcmp ogt float %23, %4
br i1 %24, label %33, label %25
25: ; preds = %22
%26 = fpext float %19 to double
%27 = fdiv double %26, 0x401921FB54442D18
%28 = fdiv float %2, %4
%29 = tail call float @asin(float %28)
%30 = fpext float %29 to double
%31 = fmul double %27, %30
%32 = fptrunc double %31 to float
br label %33
33: ; preds = %13, %22, %25
%34 = phi float [ %4, %25 ], [ %2, %22 ], [ %2, %13 ]
%35 = phi float [ %32, %25 ], [ %20, %22 ], [ %20, %13 ]
%36 = fadd float %9, -1.000000e+00
%37 = fmul float %36, 1.000000e+01
%38 = fptosi float %37 to i32
%39 = tail call float @pow(i32 2, i32 %38)
%40 = fneg float %35
%41 = tail call float @llvm.fmuladd.f32(float %36, float %3, float %40)
%42 = fpext float %41 to double
%43 = fmul double %42, 0x401921FB54442D18
%44 = fpext float %19 to double
%45 = fdiv double %43, %44
%46 = fptrunc double %45 to float
%47 = tail call float @sin(float %46)
%48 = fneg float %34
%49 = fmul float %39, %48
%50 = fmul float %49, %47
%51 = fadd float %50, %1
br label %52
52: ; preds = %6, %33, %11
%53 = phi float [ %12, %11 ], [ %51, %33 ], [ %1, %6 ]
ret float %53
}