#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 */
short eval_6hand_fast(int *);
short eval_6cards_fast(int c1, int c2, int c3, int c4, int c5, int c6) {
  int hand[] = {c1, c2, c3, c4, c5, c6};
  return eval_6hand_fast(hand);
}


x86 assembly (clang, -O0):
<eval_6cards_fast>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %ecx,-0x10(%rbp)
mov    %r8d,-0x14(%rbp)
mov    %r9d,-0x18(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0x30(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0x2c(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x28(%rbp)
mov    -0x10(%rbp),%eax
mov    %eax,-0x24(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x20(%rbp)
mov    -0x18(%rbp),%eax
mov    %eax,-0x1c(%rbp)
lea    -0x30(%rbp),%rdi
call   1030 <eval_6hand_fast@plt>
cwtl
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<eval_6cards_fast>:
sub    $0x18,%rsp
mov    %edi,(%rsp)
mov    %esi,0x4(%rsp)
mov    %edx,0x8(%rsp)
mov    %ecx,0xc(%rsp)
mov    %r8d,0x10(%rsp)
mov    %r9d,0x14(%rsp)
mov    %rsp,%rdi
call   1030 <eval_6hand_fast@plt>
add    $0x18,%rsp
ret

LLVM IR (-O0):
define signext i16 @eval_6cards_fast(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5) {
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca [6 x i32]
store i32 %0, i32* %7
store i32 %1, i32* %8
store i32 %2, i32* %9
store i32 %3, i32* %10
store i32 %4, i32* %11
store i32 %5, i32* %12
%14 = getelementptr inbounds [6 x i32], [6 x i32]* %13, i64 0, i64 0
%15 = load i32, i32* %7
store i32 %15, i32* %14
%16 = getelementptr inbounds i32, i32* %14, i64 1
%17 = load i32, i32* %8
store i32 %17, i32* %16
%18 = getelementptr inbounds i32, i32* %16, i64 1
%19 = load i32, i32* %9
store i32 %19, i32* %18
%20 = getelementptr inbounds i32, i32* %18, i64 1
%21 = load i32, i32* %10
store i32 %21, i32* %20
%22 = getelementptr inbounds i32, i32* %20, i64 1
%23 = load i32, i32* %11
store i32 %23, i32* %22
%24 = getelementptr inbounds i32, i32* %22, i64 1
%25 = load i32, i32* %12
store i32 %25, i32* %24
%26 = getelementptr inbounds [6 x i32], [6 x i32]* %13, i64 0, i64 0
%27 = call signext i16 @eval_6hand_fast(i32* %26)
ret i16 %27
}

LLVM IR (-O2):
define signext i16 @eval_6cards_fast(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5) {
%7 = alloca [6 x i32]
%8 = bitcast [6 x i32]* %7 to i8*
%9 = getelementptr inbounds [6 x i32], [6 x i32]* %7, i64 0, i64 0
store i32 %0, i32* %9
%10 = getelementptr inbounds [6 x i32], [6 x i32]* %7, i64 0, i64 1
store i32 %1, i32* %10
%11 = getelementptr inbounds [6 x i32], [6 x i32]* %7, i64 0, i64 2
store i32 %2, i32* %11
%12 = getelementptr inbounds [6 x i32], [6 x i32]* %7, i64 0, i64 3
store i32 %3, i32* %12
%13 = getelementptr inbounds [6 x i32], [6 x i32]* %7, i64 0, i64 4
store i32 %4, i32* %13
%14 = getelementptr inbounds [6 x i32], [6 x i32]* %7, i64 0, i64 5
store i32 %5, i32* %14
%15 = call signext i16 @eval_6hand_fast(i32* %9)
ret i16 %15
}