double JHKeyframeAnimationFunctionEaseInOutQuint(double t, double b, double c,
                                                 double d) {
  if ((t /= d / 2) < 1)
    return c / 2 * t * t * t * t * t + b;
  return c / 2 * ((t -= 2) * t * t * t * t + 2) + b;
}


x86 assembly (clang, -O0):
<JHKeyframeAnimationFunctionEaseInOutQuint>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x10(%rbp)
movsd  %xmm1,-0x18(%rbp)
movsd  %xmm2,-0x20(%rbp)
movsd  %xmm3,-0x28(%rbp)
movsd  -0x28(%rbp),%xmm0
movsd  0xee3(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  -0x10(%rbp),%xmm1
divsd  %xmm0,%xmm1
movsd  %xmm1,-0x10(%rbp)
movsd  0xec1(%rip),%xmm0
ucomisd %xmm1,%xmm0
jbe    118a <JHKeyframeAnimationFunctionEaseInOutQuint+0x8a>
movsd  -0x20(%rbp),%xmm0
movsd  0xeb2(%rip),%xmm1
divsd  %xmm1,%xmm0
mulsd  -0x10(%rbp),%xmm0
mulsd  -0x10(%rbp),%xmm0
mulsd  -0x10(%rbp),%xmm0
mulsd  -0x10(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm2
movsd  -0x18(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x8(%rbp)
jmp    11e7 <JHKeyframeAnimationFunctionEaseInOutQuint+0xe7>
movsd  -0x20(%rbp),%xmm0
movsd  0xe71(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  -0x10(%rbp),%xmm2
movsd  0xe60(%rip),%xmm1
subsd  %xmm1,%xmm2
movsd  %xmm2,-0x10(%rbp)
mulsd  -0x10(%rbp),%xmm2
mulsd  -0x10(%rbp),%xmm2
mulsd  -0x10(%rbp),%xmm2
movsd  -0x10(%rbp),%xmm1
mulsd  %xmm1,%xmm2
movsd  0xe37(%rip),%xmm1
addsd  %xmm1,%xmm2
movsd  -0x18(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<JHKeyframeAnimationFunctionEaseInOutQuint>:
movsd  0xef8(%rip),%xmm4
mulsd  %xmm4,%xmm3
divsd  %xmm3,%xmm0
movsd  0xef0(%rip),%xmm3
ucomisd %xmm0,%xmm3
mulsd  %xmm4,%xmm2
jbe    1138 <JHKeyframeAnimationFunctionEaseInOutQuint+0x38>
mulsd  %xmm0,%xmm2
mulsd  %xmm0,%xmm2
mulsd  %xmm0,%xmm2
mulsd  %xmm0,%xmm2
mulsd  %xmm0,%xmm2
jmp    1160 <JHKeyframeAnimationFunctionEaseInOutQuint+0x60>
addsd  0xed0(%rip),%xmm0
movapd %xmm0,%xmm3
mulsd  %xmm0,%xmm3
mulsd  %xmm0,%xmm3
mulsd  %xmm0,%xmm3
mulsd  %xmm0,%xmm3
addsd  0xebc(%rip),%xmm3
mulsd  %xmm3,%xmm2
addsd  %xmm1,%xmm2
movapd %xmm2,%xmm0
ret

LLVM IR (-O0):
define double @JHKeyframeAnimationFunctionEaseInOutQuint(double %0, double %1, double %2, double %3) {
%5 = alloca double
%6 = alloca double
%7 = alloca double
%8 = alloca double
%9 = alloca double
store double %0, double* %6
store double %1, double* %7
store double %2, double* %8
store double %3, double* %9
%10 = load double, double* %9
%11 = fdiv double %10, 2.000000e+00
%12 = load double, double* %6
%13 = fdiv double %12, %11
store double %13, double* %6
%14 = fcmp olt double %13, 1.000000e+00
br i1 %14, label %15, label %29
15: ; preds = %4
%16 = load double, double* %8
%17 = fdiv double %16, 2.000000e+00
%18 = load double, double* %6
%19 = fmul double %17, %18
%20 = load double, double* %6
%21 = fmul double %19, %20
%22 = load double, double* %6
%23 = fmul double %21, %22
%24 = load double, double* %6
%25 = fmul double %23, %24
%26 = load double, double* %6
%27 = load double, double* %7
%28 = call double @llvm.fmuladd.f64(double %25, double %26, double %27)
store double %28, double* %5
br label %44
29: ; preds = %4
%30 = load double, double* %8
%31 = fdiv double %30, 2.000000e+00
%32 = load double, double* %6
%33 = fsub double %32, 2.000000e+00
store double %33, double* %6
%34 = load double, double* %6
%35 = fmul double %33, %34
%36 = load double, double* %6
%37 = fmul double %35, %36
%38 = load double, double* %6
%39 = fmul double %37, %38
%40 = load double, double* %6
%41 = call double @llvm.fmuladd.f64(double %39, double %40, double 2.000000e+00)
%42 = load double, double* %7
%43 = call double @llvm.fmuladd.f64(double %31, double %41, double %42)
store double %43, double* %5
br label %44
44: ; preds = %29, %15
%45 = load double, double* %5
ret double %45
}

LLVM IR (-O2):
define double @JHKeyframeAnimationFunctionEaseInOutQuint(double %0, double %1, double %2, double %3) {
%5 = fmul double %3, 5.000000e-01
%6 = fdiv double %0, %5
%7 = fcmp olt double %6, 1.000000e+00
%8 = fmul double %2, 5.000000e-01
br i1 %7, label %9, label %15
9: ; preds = %4
%10 = fmul double %8, %6
%11 = fmul double %6, %10
%12 = fmul double %6, %11
%13 = fmul double %6, %12
%14 = tail call double @llvm.fmuladd.f64(double %13, double %6, double %1)
br label %22
15: ; preds = %4
%16 = fadd double %6, -2.000000e+00
%17 = fmul double %16, %16
%18 = fmul double %16, %17
%19 = fmul double %16, %18
%20 = tail call double @llvm.fmuladd.f64(double %19, double %16, double 2.000000e+00)
%21 = tail call double @llvm.fmuladd.f64(double %8, double %20, double %1)
br label %22
22: ; preds = %15, %9
%23 = phi double [ %14, %9 ], [ %21, %15 ]
ret double %23
}