#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 */
int sqrt(int);
float Circ__easeInOut(float t, float b, float c, float d, float p0, float p1) {
  if ((t /= d / 2) < 1)
    return -c / 2 * (sqrt(1 - t * t) - 1) + b;
  return c / 2 * (sqrt(1 - t * (t -= 2)) + 1) + b;
}


x86 assembly (clang, -O0):
<Circ__easeInOut>:
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  %xmm4,-0x18(%rbp)
movss  %xmm5,-0x1c(%rbp)
movss  -0x14(%rbp),%xmm0
movss  0xec1(%rip),%xmm1
divss  %xmm1,%xmm0
movss  -0x8(%rbp),%xmm1
divss  %xmm0,%xmm1
movss  %xmm1,-0x8(%rbp)
movss  0xea3(%rip),%xmm0
ucomiss %xmm1,%xmm0
jbe    11dc <Circ__easeInOut+0xcc>
movss  -0x10(%rbp),%xmm0
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
movss  0xe84(%rip),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x20(%rbp)
movss  -0x8(%rbp),%xmm0
movss  -0x8(%rbp),%xmm1
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
mulss  %xmm1,%xmm0
movss  0xe54(%rip),%xmm1
addss  %xmm1,%xmm0
cvttss2si %xmm0,%edi
call   1030 <sqrt@plt>
movss  -0x20(%rbp),%xmm0
sub    $0x1,%eax
cvtsi2ss %eax,%xmm2
movss  -0xc(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x4(%rbp)
jmp    1251 <Circ__easeInOut+0x141>
movss  -0x10(%rbp),%xmm0
movss  0xe1b(%rip),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x24(%rbp)
movss  -0x8(%rbp),%xmm0
movss  -0x8(%rbp),%xmm1
movss  0xe00(%rip),%xmm2
subss  %xmm2,%xmm1
movss  %xmm1,-0x8(%rbp)
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
mulss  %xmm1,%xmm0
movss  0xdda(%rip),%xmm1
addss  %xmm1,%xmm0
cvttss2si %xmm0,%edi
call   1030 <sqrt@plt>
movss  -0x24(%rbp),%xmm0
add    $0x1,%eax
cvtsi2ss %eax,%xmm2
movss  -0xc(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x4(%rbp)
movss  -0x4(%rbp),%xmm0
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Circ__easeInOut>:
push   %rbx
sub    $0x10,%rsp
movss  %xmm1,0xc(%rsp)
mulss  0xedd(%rip),%xmm3
divss  %xmm3,%xmm0
movss  0xed5(%rip),%xmm1
xor    %eax,%eax
xor    %ebx,%ebx
ucomiss %xmm0,%xmm1
seta   %cl
setbe  %dl
movaps %xmm0,%xmm3
ja     114d <Circ__easeInOut+0x3d>
movss  0xebf(%rip),%xmm3
addss  %xmm0,%xmm3
mov    %dl,%bl
mov    %cl,%al
lea    0xeb4(%rip),%rcx
mulss  (%rcx,%rax,4),%xmm2
movss  %xmm2,0x8(%rsp)
mulss  %xmm3,%xmm0
subss  %xmm0,%xmm1
cvttss2si %xmm1,%edi
call   1030 <sqrt@plt>
lea    (%rax,%rbx,2),%eax
add    $0xffffffff,%eax
xorps  %xmm0,%xmm0
cvtsi2ss %eax,%xmm0
mulss  0x8(%rsp),%xmm0
addss  0xc(%rsp),%xmm0
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
define float @Circ__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* %11
%15 = fdiv float %14, 2.000000e+00
%16 = load float, float* %8
%17 = fdiv float %16, %15
store float %17, float* %8
%18 = fcmp olt float %17, 1.000000e+00
br i1 %18, label %19, label %33
19: ; preds = %6
%20 = load float, float* %10
%21 = fneg float %20
%22 = fdiv float %21, 2.000000e+00
%23 = load float, float* %8
%24 = load float, float* %8
%25 = fneg float %23
%26 = call float @llvm.fmuladd.f32(float %25, float %24, float 1.000000e+00)
%27 = fptosi float %26 to i32
%28 = call i32 @sqrt(i32 %27)
%29 = sub nsw i32 %28, 1
%30 = sitofp i32 %29 to float
%31 = load float, float* %9
%32 = call float @llvm.fmuladd.f32(float %22, float %30, float %31)
store float %32, float* %7
br label %47
33: ; preds = %6
%34 = load float, float* %10
%35 = fdiv float %34, 2.000000e+00
%36 = load float, float* %8
%37 = load float, float* %8
%38 = fsub float %37, 2.000000e+00
store float %38, float* %8
%39 = fneg float %36
%40 = call float @llvm.fmuladd.f32(float %39, float %38, float 1.000000e+00)
%41 = fptosi float %40 to i32
%42 = call i32 @sqrt(i32 %41)
%43 = add nsw i32 %42, 1
%44 = sitofp i32 %43 to float
%45 = load float, float* %9
%46 = call float @llvm.fmuladd.f32(float %35, float %44, float %45)
store float %46, float* %7
br label %47
47: ; preds = %33, %19
%48 = load float, float* %7
ret float %48
}

LLVM IR (-O2):
define float @Circ__easeInOut(float %0, float %1, float %2, float %3, float %4, float %5) {
%7 = fmul float %3, 5.000000e-01
%8 = fdiv float %0, %7
%9 = fcmp olt float %8, 1.000000e+00
%10 = fadd float %8, -2.000000e+00
%11 = select i1 %9, float %8, float %10
%12 = select i1 %9, i32 -1, i32 1
%13 = select i1 %9, float -5.000000e-01, float 5.000000e-01
%14 = fmul float %13, %2
%15 = fneg float %8
%16 = tail call float @llvm.fmuladd.f32(float %15, float %11, float 1.000000e+00)
%17 = fptosi float %16 to i32
%18 = tail call i32 @sqrt(i32 %17)
%19 = add nsw i32 %18, %12
%20 = sitofp i32 %19 to float
%21 = tail call float @llvm.fmuladd.f32(float %14, float %20, float %1)
ret float %21
}