#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__easeOut(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);
  }
  return (a * pow(2, -10 * t) *
              sin((t * d - s) * (2 * 3.1415926535897932384626433832795) / p) +
          c + b);
}


x86 assembly (clang, -O0):
<Elastic__easeOut>:
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__easeOut+0x4c>
jp     118c <Elastic__easeOut+0x4c>
movss  -0xc(%rbp),%xmm0
movss  %xmm0,-0x4(%rbp)
jmp    1359 <Elastic__easeOut+0x219>
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__easeOut+0x8a>
jp     11ca <Elastic__easeOut+0x8a>
movss  -0xc(%rbp),%xmm0
addss  -0x10(%rbp),%xmm0
movss  %xmm0,-0x4(%rbp)
jmp    1359 <Elastic__easeOut+0x219>
movss  0xe32(%rip),%xmm0
ucomiss -0x1c(%rbp),%xmm0
jne    1205 <Elastic__easeOut+0xc5>
jp     1205 <Elastic__easeOut+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__easeOut+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__easeOut+0x107>
jp     1247 <Elastic__easeOut+0x107>
jmp    1269 <Elastic__easeOut+0x129>
movss  -0x18(%rbp),%xmm0
movss  %xmm0,-0x24(%rbp)
movss  -0x10(%rbp),%xmm0
call   1030 <abs@plt>
movss  -0x24(%rbp),%xmm1
ucomiss %xmm1,%xmm0
jbe    1278 <Elastic__easeOut+0x138>
movss  -0x10(%rbp),%xmm0
movss  %xmm0,-0x18(%rbp)
jmp    12ba <Elastic__easeOut+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  0xd40(%rip),%xmm0
mulss  -0x8(%rbp),%xmm0
cvttss2si %xmm0,%esi
mov    $0x2,%edi
call   1060 <pow@plt>
movaps %xmm0,%xmm1
movss  -0x38(%rbp),%xmm0
mulss  %xmm1,%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  0xcf8(%rip),%xmm1
mulsd  %xmm1,%xmm0
movss  -0x1c(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
call   1040 <sin@plt>
movaps %xmm0,%xmm2
movss  -0x34(%rbp),%xmm0
movss  -0x10(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
addss  -0xc(%rbp),%xmm0
movss  %xmm0,-0x4(%rbp)
movss  -0x4(%rbp),%xmm0
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Elastic__easeOut>:
sub    $0x48,%rsp
movaps %xmm0,%xmm6
xorps  %xmm0,%xmm0
ucomiss %xmm0,%xmm6
jne    1155 <Elastic__easeOut+0x15>
jnp    12b1 <Elastic__easeOut+0x171>
divss  %xmm3,%xmm6
ucomiss 0xea0(%rip),%xmm6
jne    116d <Elastic__easeOut+0x2d>
jp     116d <Elastic__easeOut+0x2d>
addss  %xmm2,%xmm1
jmp    12b1 <Elastic__easeOut+0x171>
movss  %xmm1,0x1c(%rsp)
xorps  %xmm0,%xmm0
cvtss2sd %xmm3,%xmm0
mulsd  0xe8e(%rip),%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm3,0x18(%rsp)
movaps %xmm3,%xmm1
mulss  %xmm5,%xmm1
movss  0xe69(%rip),%xmm7
cmpeqss %xmm7,%xmm5
movaps %xmm5,%xmm3
andnps %xmm1,%xmm3
andps  %xmm0,%xmm5
orps   %xmm3,%xmm5
movaps %xmm5,0x30(%rsp)
mulss  0xe4f(%rip),%xmm5
movaps %xmm5,0x20(%rsp)
ucomiss %xmm7,%xmm4
movss  %xmm6,0x14(%rsp)
movss  %xmm2,0x10(%rsp)
movaps %xmm2,%xmm0
jne    11d4 <Elastic__easeOut+0x94>
jnp    123b <Elastic__easeOut+0xfb>
movss  %xmm4,0xc(%rsp)
call   1030 <abs@plt>
movss  0xc(%rsp),%xmm1
movss  0x14(%rsp),%xmm6
ucomiss %xmm1,%xmm0
movss  0x10(%rsp),%xmm0
ja     123b <Elastic__easeOut+0xfb>
movaps 0x30(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
divsd  0xe11(%rip),%xmm0
movsd  %xmm0,0x20(%rsp)
movss  0x10(%rsp),%xmm0
divss  %xmm1,%xmm0
call   1050 <asin@plt>
movss  0x14(%rsp),%xmm6
cvtss2sd %xmm0,%xmm0
mulsd  0x20(%rsp),%xmm0
cvtsd2ss %xmm0,%xmm0
movaps %xmm0,0x20(%rsp)
movss  0xc(%rsp),%xmm0
movss  %xmm0,0xc(%rsp)
movss  0xdc3(%rip),%xmm0
mulss  %xmm6,%xmm0
cvttss2si %xmm0,%esi
mov    $0x2,%edi
call   1060 <pow@plt>
mulss  0xc(%rsp),%xmm0
movss  %xmm0,0xc(%rsp)
movss  0x18(%rsp),%xmm0
mulss  0x14(%rsp),%xmm0
subss  0x20(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mulsd  0xd93(%rip),%xmm0
movaps 0x30(%rsp),%xmm1
cvtss2sd %xmm1,%xmm1
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
call   1040 <sin@plt>
mulss  0xc(%rsp),%xmm0
addss  0x10(%rsp),%xmm0
movss  0x1c(%rsp),%xmm1
addss  %xmm0,%xmm1
movaps %xmm1,%xmm0
add    $0x48,%rsp
ret

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

LLVM IR (-O2):
define float @Elastic__easeOut(float %0, float %1, float %2, float %3, float %4, float %5) {
%7 = fcmp oeq float %0, 0.000000e+00
br i1 %7, label %50, 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 %50
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 = fmul float %9, -1.000000e+01
%37 = fptosi float %36 to i32
%38 = tail call float @pow(i32 2, i32 %37)
%39 = fmul float %34, %38
%40 = fneg float %35
%41 = tail call float @llvm.fmuladd.f32(float %9, 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 = tail call float @llvm.fmuladd.f32(float %39, float %47, float %2)
%49 = fadd float %48, %1
br label %50
50: ; preds = %6, %33, %11
%51 = phi float [ %12, %11 ], [ %49, %33 ], [ %1, %6 ]
ret float %51
}