#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*/ dtoi(float);
int /*<<< orphan*/ g2_triangle(int /*<<< orphan*/, float, float, float, float,
                               float, float);
void g2_triangle_(float *dev, float *x1, float *y1, float *x2, float *y2,
                  float *x3, float *y3) {
  g2_triangle(dtoi(*dev), *x1, *y1, *x2, *y2, *x3, *y3);
}


x86 assembly (clang, -O0):
<g2_triangle_>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    0x10(%rbp),%rax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
mov    -0x8(%rbp),%rax
movss  (%rax),%xmm0
call   1040 <dtoi@plt>
mov    %eax,%edi
mov    -0x10(%rbp),%rax
movss  (%rax),%xmm0
mov    -0x18(%rbp),%rax
movss  (%rax),%xmm1
mov    -0x20(%rbp),%rax
movss  (%rax),%xmm2
mov    -0x28(%rbp),%rax
movss  (%rax),%xmm3
mov    -0x30(%rbp),%rax
movss  (%rax),%xmm4
mov    0x10(%rbp),%rax
movss  (%rax),%xmm5
call   1030 <g2_triangle@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<g2_triangle_>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %r9,%r14
mov    %r8,%r15
mov    %rcx,%r12
mov    %rdx,%r13
mov    %rsi,%rbx
mov    0x40(%rsp),%rbp
movss  (%rdi),%xmm0
call   1040 <dtoi@plt>
movss  (%rbx),%xmm0
movss  0x0(%r13),%xmm1
movss  (%r12),%xmm2
movss  (%r15),%xmm3
movss  (%r14),%xmm4
movss  0x0(%rbp),%xmm5
mov    %eax,%edi
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <g2_triangle@plt>

LLVM IR (-O0):
define void @g2_triangle_(float* %0, float* %1, float* %2, float* %3, float* %4, float* %5, float* %6) {
%8 = alloca float*
%9 = alloca float*
%10 = alloca float*
%11 = alloca float*
%12 = alloca float*
%13 = alloca float*
%14 = 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
store float* %6, float** %14
%15 = load float*, float** %8
%16 = load float, float* %15
%17 = call i32 @dtoi(float %16)
%18 = load float*, float** %9
%19 = load float, float* %18
%20 = load float*, float** %10
%21 = load float, float* %20
%22 = load float*, float** %11
%23 = load float, float* %22
%24 = load float*, float** %12
%25 = load float, float* %24
%26 = load float*, float** %13
%27 = load float, float* %26
%28 = load float*, float** %14
%29 = load float, float* %28
%30 = call i32 @g2_triangle(i32 %17, float %19, float %21, float %23, float %25, float %27, float %29)
ret void
}

LLVM IR (-O2):
define void @g2_triangle_(float* nocapture %0, float* nocapture %1, float* nocapture %2, float* nocapture %3, float* nocapture %4, float* nocapture %5, float* nocapture %6) {
%8 = load float, float* %0
%9 = tail call i32 @dtoi(float %8)
%10 = load float, float* %1
%11 = load float, float* %2
%12 = load float, float* %3
%13 = load float, float* %4
%14 = load float, float* %5
%15 = load float, float* %6
%16 = tail call i32 @g2_triangle(i32 %9, float %10, float %11, float %12, float %13, float %14, float %15)
ret void
}