#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 */
struct SVGParser {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ cubicBezRec(struct SVGParser *, float, float, float, float,
                               float, float, float, float, int /*<<< orphan*/);
int /*<<< orphan*/ svgPathPoint(struct SVGParser *, float, float);
void cubicBez(struct SVGParser *p, float x1, float y1, float cx1, float cy1,
              float cx2, float cy2, float x2, float y2) {
  cubicBezRec(p, x1, y1, cx1, cy1, cx2, cy2, x2, y2, 0);
  svgPathPoint(p, x2, y2);
}


x86 assembly (clang, -O0):
<cubicBez>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
movss  %xmm0,-0xc(%rbp)
movss  %xmm1,-0x10(%rbp)
movss  %xmm2,-0x14(%rbp)
movss  %xmm3,-0x18(%rbp)
movss  %xmm4,-0x1c(%rbp)
movss  %xmm5,-0x20(%rbp)
movss  %xmm6,-0x24(%rbp)
movss  %xmm7,-0x28(%rbp)
mov    -0x8(%rbp),%rdi
movss  -0xc(%rbp),%xmm0
movss  -0x10(%rbp),%xmm1
movss  -0x14(%rbp),%xmm2
movss  -0x18(%rbp),%xmm3
movss  -0x1c(%rbp),%xmm4
movss  -0x20(%rbp),%xmm5
movss  -0x24(%rbp),%xmm6
movss  -0x28(%rbp),%xmm7
xor    %esi,%esi
call   1040 <cubicBezRec@plt>
mov    -0x8(%rbp),%rdi
movss  -0x24(%rbp),%xmm0
movss  -0x28(%rbp),%xmm1
call   1030 <svgPathPoint@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cubicBez>:
push   %rbx
sub    $0x10,%rsp
movss  %xmm7,0xc(%rsp)
movss  %xmm6,0x8(%rsp)
mov    %rdi,%rbx
xor    %esi,%esi
call   1040 <cubicBezRec@plt>
mov    %rbx,%rdi
movss  0x8(%rsp),%xmm0
movss  0xc(%rsp),%xmm1
add    $0x10,%rsp
pop    %rbx
jmp    1030 <svgPathPoint@plt>

LLVM IR (-O0):
%struct.SVGParser = type { i32 }
define void @cubicBez(%struct.SVGParser* %0, float %1, float %2, float %3, float %4, float %5, float %6, float %7, float %8) {
%10 = alloca %struct.SVGParser*
%11 = alloca float
%12 = alloca float
%13 = alloca float
%14 = alloca float
%15 = alloca float
%16 = alloca float
%17 = alloca float
%18 = alloca float
store %struct.SVGParser* %0, %struct.SVGParser** %10
store float %1, float* %11
store float %2, float* %12
store float %3, float* %13
store float %4, float* %14
store float %5, float* %15
store float %6, float* %16
store float %7, float* %17
store float %8, float* %18
%19 = load %struct.SVGParser*, %struct.SVGParser** %10
%20 = load float, float* %11
%21 = load float, float* %12
%22 = load float, float* %13
%23 = load float, float* %14
%24 = load float, float* %15
%25 = load float, float* %16
%26 = load float, float* %17
%27 = load float, float* %18
%28 = call i32 @cubicBezRec(%struct.SVGParser* %19, float %20, float %21, float %22, float %23, float %24, float %25, float %26, float %27, i32 0)
%29 = load %struct.SVGParser*, %struct.SVGParser** %10
%30 = load float, float* %17
%31 = load float, float* %18
%32 = call i32 @svgPathPoint(%struct.SVGParser* %29, float %30, float %31)
ret void
}

LLVM IR (-O2):
%struct.SVGParser = type { i32 }
define void @cubicBez(%struct.SVGParser* %0, float %1, float %2, float %3, float %4, float %5, float %6, float %7, float %8) {
%10 = tail call i32 @cubicBezRec(%struct.SVGParser* %0, float %1, float %2, float %3, float %4, float %5, float %6, float %7, float %8, i32 0)
%11 = tail call i32 @svgPathPoint(%struct.SVGParser* %0, float %7, float %8)
ret void
}