#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 /*<<< orphan*/ render_tri_pts(double, double, double, double, double,
                                  double);
void render_rect_pts(double x1, double y1, double x2, double y2, double x3,
                     double y3, double x4, double y4) {
  render_tri_pts(x1, y1, x2, y2, x4, y4);
  render_tri_pts(x4, y4, x2, y2, x3, y3);
}


x86 assembly (clang, -O0):
<render_rect_pts>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
movsd  %xmm3,-0x20(%rbp)
movsd  %xmm4,-0x28(%rbp)
movsd  %xmm5,-0x30(%rbp)
movsd  %xmm6,-0x38(%rbp)
movsd  %xmm7,-0x40(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
movsd  -0x18(%rbp),%xmm2
movsd  -0x20(%rbp),%xmm3
movsd  -0x38(%rbp),%xmm4
movsd  -0x40(%rbp),%xmm5
call   1030 <render_tri_pts@plt>
movsd  -0x38(%rbp),%xmm0
movsd  -0x40(%rbp),%xmm1
movsd  -0x18(%rbp),%xmm2
movsd  -0x20(%rbp),%xmm3
movsd  -0x28(%rbp),%xmm4
movsd  -0x30(%rbp),%xmm5
call   1030 <render_tri_pts@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<render_rect_pts>:
sub    $0x38,%rsp
movsd  %xmm7,0x10(%rsp)
movsd  %xmm6,0x8(%rsp)
movsd  %xmm5,0x30(%rsp)
movsd  %xmm4,0x28(%rsp)
movsd  %xmm3,0x20(%rsp)
movsd  %xmm2,0x18(%rsp)
movaps %xmm6,%xmm4
movaps %xmm7,%xmm5
call   1030 <render_tri_pts@plt>
movsd  0x8(%rsp),%xmm0
movsd  0x10(%rsp),%xmm1
movsd  0x18(%rsp),%xmm2
movsd  0x20(%rsp),%xmm3
movsd  0x28(%rsp),%xmm4
movsd  0x30(%rsp),%xmm5
add    $0x38,%rsp
jmp    1030 <render_tri_pts@plt>

LLVM IR (-O0):
define void @render_rect_pts(double %0, double %1, double %2, double %3, double %4, double %5, double %6, double %7) {
%9 = alloca double
%10 = alloca double
%11 = alloca double
%12 = alloca double
%13 = alloca double
%14 = alloca double
%15 = alloca double
%16 = alloca double
store double %0, double* %9
store double %1, double* %10
store double %2, double* %11
store double %3, double* %12
store double %4, double* %13
store double %5, double* %14
store double %6, double* %15
store double %7, double* %16
%17 = load double, double* %9
%18 = load double, double* %10
%19 = load double, double* %11
%20 = load double, double* %12
%21 = load double, double* %15
%22 = load double, double* %16
%23 = call i32 @render_tri_pts(double %17, double %18, double %19, double %20, double %21, double %22)
%24 = load double, double* %15
%25 = load double, double* %16
%26 = load double, double* %11
%27 = load double, double* %12
%28 = load double, double* %13
%29 = load double, double* %14
%30 = call i32 @render_tri_pts(double %24, double %25, double %26, double %27, double %28, double %29)
ret void
}

LLVM IR (-O2):
define void @render_rect_pts(double %0, double %1, double %2, double %3, double %4, double %5, double %6, double %7) {
%9 = tail call i32 @render_tri_pts(double %0, double %1, double %2, double %3, double %6, double %7)
%10 = tail call i32 @render_tri_pts(double %6, double %7, double %2, double %3, double %4, double %5)
ret void
}