#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*/ trg(float, float, float, float, float, float, float, float,
                       float);
void quad(float x1, float y1, float z1, float x2, float y2, float z2, float x3,
          float y3, float z3, float x4, float y4, float z4) {
  trg(x1, y1, z1, x2, y2, z2, x3, y3, z3);
  trg(x1, y1, z1, x3, y3, z3, x4, y4, z4);
}


x86 assembly (clang, -O0):
<quad>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movss  0x28(%rbp),%xmm8
movss  0x20(%rbp),%xmm8
movss  0x18(%rbp),%xmm8
movss  0x10(%rbp),%xmm8
movss  %xmm0,-0x4(%rbp)
movss  %xmm1,-0x8(%rbp)
movss  %xmm2,-0xc(%rbp)
movss  %xmm3,-0x10(%rbp)
movss  %xmm4,-0x14(%rbp)
movss  %xmm5,-0x18(%rbp)
movss  %xmm6,-0x1c(%rbp)
movss  %xmm7,-0x20(%rbp)
movss  -0x4(%rbp),%xmm0
movss  -0x8(%rbp),%xmm1
movss  -0xc(%rbp),%xmm2
movss  -0x10(%rbp),%xmm3
movss  -0x14(%rbp),%xmm4
movss  -0x18(%rbp),%xmm5
movss  -0x1c(%rbp),%xmm6
movss  -0x20(%rbp),%xmm7
movss  0x10(%rbp),%xmm8
movss  %xmm8,(%rsp)
call   1030 <trg@plt>
movss  -0x4(%rbp),%xmm0
movss  -0x8(%rbp),%xmm1
movss  -0xc(%rbp),%xmm2
movss  -0x1c(%rbp),%xmm3
movss  -0x20(%rbp),%xmm4
movss  0x10(%rbp),%xmm5
movss  0x18(%rbp),%xmm6
movss  0x20(%rbp),%xmm7
movss  0x28(%rbp),%xmm8
movss  %xmm8,(%rsp)
call   1030 <trg@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<quad>:
sub    $0x28,%rsp
movss  %xmm7,0x18(%rsp)
movss  %xmm6,0x14(%rsp)
movss  %xmm2,0x24(%rsp)
movss  %xmm1,0x20(%rsp)
movss  %xmm0,0x1c(%rsp)
movss  0x30(%rsp),%xmm8
movss  %xmm8,(%rsp)
call   1030 <trg@plt>
movss  0x48(%rsp),%xmm0
movss  %xmm0,(%rsp)
movss  0x1c(%rsp),%xmm0
movss  0x20(%rsp),%xmm1
movss  0x24(%rsp),%xmm2
movss  0x14(%rsp),%xmm3
movss  0x18(%rsp),%xmm4
movss  0x30(%rsp),%xmm5
movss  0x38(%rsp),%xmm6
movss  0x40(%rsp),%xmm7
call   1030 <trg@plt>
add    $0x28,%rsp
ret

LLVM IR (-O0):
define void @quad(float %0, float %1, float %2, float %3, float %4, float %5, float %6, float %7, float %8, float %9, float %10, float %11) {
%13 = alloca float
%14 = alloca float
%15 = alloca float
%16 = alloca float
%17 = alloca float
%18 = alloca float
%19 = alloca float
%20 = alloca float
%21 = alloca float
%22 = alloca float
%23 = alloca float
%24 = alloca float
store float %0, float* %13
store float %1, float* %14
store float %2, float* %15
store float %3, float* %16
store float %4, float* %17
store float %5, float* %18
store float %6, float* %19
store float %7, float* %20
store float %8, float* %21
store float %9, float* %22
store float %10, float* %23
store float %11, float* %24
%25 = load float, float* %13
%26 = load float, float* %14
%27 = load float, float* %15
%28 = load float, float* %16
%29 = load float, float* %17
%30 = load float, float* %18
%31 = load float, float* %19
%32 = load float, float* %20
%33 = load float, float* %21
%34 = call i32 @trg(float %25, float %26, float %27, float %28, float %29, float %30, float %31, float %32, float %33)
%35 = load float, float* %13
%36 = load float, float* %14
%37 = load float, float* %15
%38 = load float, float* %19
%39 = load float, float* %20
%40 = load float, float* %21
%41 = load float, float* %22
%42 = load float, float* %23
%43 = load float, float* %24
%44 = call i32 @trg(float %35, float %36, float %37, float %38, float %39, float %40, float %41, float %42, float %43)
ret void
}

LLVM IR (-O2):
define void @quad(float %0, float %1, float %2, float %3, float %4, float %5, float %6, float %7, float %8, float %9, float %10, float %11) {
%13 = tail call i32 @trg(float %0, float %1, float %2, float %3, float %4, float %5, float %6, float %7, float %8)
%14 = tail call i32 @trg(float %0, float %1, float %2, float %6, float %7, float %8, float %9, float %10, float %11)
ret void
}