// File: /workspace/github_cpp_makefile_star2_O3/fredericmarchand[P]TexasHoldem/Player.cpp
// Function: checkHand(Card**, Card**, hands*)
void checkHand(Card **combo, Card **retCombo, Hand *maxValue)
{
    sortCardArray(combo, 0, 4);
    Hand value = NOTHING;
    value = evaluateHand(combo);
    if (value > *maxValue) 
    {
        *maxValue = value;
        for (int i = 0; i < 5; ++i)
        {
            retCombo[i] = combo[i];
        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdx, -0x70(%rbp)
movq %rsi, -0x78(%rbp)
movq %rdi, %r14
xorl %ebx, %ebx
xorl %esi, %esi
movl $0x4, %edx
callq 0x34bf
movq %rbx, %r15
cmpq $0x4, %rbx
je 0x3234
movq (%r14,%r15,8), %rdi
callq 0x24ae
movl %eax, %r12d
leaq 0x1(%r15), %rbx
movq 0x8(%r14,%r15,8), %rdi
callq 0x24ae
cmpl %eax, %r12d
je 0x320c
movq %r15, -0x68(%rbp)
xorl %ebx, %ebx
movq %rbx, %r15
cmpq $0x4, %rbx
je 0x3264
movq (%r14,%r15,8), %rdi
callq 0x24b6
movl %eax, %r12d
leaq 0x1(%r15), %rbx
movq 0x8(%r14,%r15,8), %rdi
callq 0x24b6
decl %eax
cmpl %eax, %r12d
je 0x323a
movq %r15, -0x60(%rbp)
xorl %r15d, %r15d
movl $0x3, %eax
movq %rax, -0x38(%rbp)
movq $-0x1, %rbx
xorl %edx, %edx
movl %edx, -0x30(%rbp)
leal 0x3(%r15), %eax
movl %eax, -0x2c(%rbp)
movl $0x3, %r13d
movq %rbx, -0x48(%rbp)
subq $0x1, %r13
jb 0x32b8
movq 0x8(%r14,%rbx,8), %rdi
callq 0x24b6
movl %eax, %r12d
movq 0x10(%r14,%rbx,8), %rdi
callq 0x24b6
incq %rbx
cmpl %eax, %r12d
je 0x3291
jmp 0x32bc
movq -0x38(%rbp), %rbx
cmpl %ebx, -0x2c(%rbp)
movl -0x30(%rbp), %edx
movl $0x1, %eax
cmovel %eax, %edx
incq %r15
incq -0x38(%rbp)
movq -0x48(%rbp), %rbx
incq %rbx
cmpq $0x2, %r15
jne 0x327d
xorl %r9d, %r9d
testl %edx, %edx
je 0x32f1
movl $0x8, %ecx
xorl %eax, %eax
jmp 0x33f8
movq $0x0, -0x50(%rbp)
movl %edx, -0x30(%rbp)
leaq 0x20(%r14), %rax
movq %rax, -0x58(%rbp)
leaq 0x18(%r14), %rax
movq %rax, -0x88(%rbp)
leaq 0x8(%r14), %rax
movq %rax, -0x80(%rbp)
movl $0x2, %eax
movq %rax, -0x38(%rbp)
movq $-0x1, %r15
xorl %r13d, %r13d
movl $0x0, -0x3c(%rbp)
leal 0x2(%r13), %eax
movl %eax, -0x2c(%rbp)
movl $0x2, %ebx
movq %r15, -0x48(%rbp)
subq $0x1, %rbx
jb 0x3368
movq 0x8(%r14,%r15,8), %rdi
callq 0x24b6
movl %eax, %r12d
movq 0x10(%r14,%r15,8), %rdi
callq 0x24b6
incq %r15
cmpl %eax, %r12d
je 0x3341
jmp 0x336c
movq -0x38(%rbp), %r15
cmpl %r15d, -0x2c(%rbp)
jne 0x33c9
movq -0x88(%rbp), %rax
movq -0x58(%rbp), %rbx
testl %r13d, %r13d
movq -0x48(%rbp), %r15
je 0x339a
movq %r14, %rax
movq -0x58(%rbp), %rbx
cmpl $0x1, %r13d
je 0x339a
movq %r14, %rax
movq -0x80(%rbp), %rbx
movq (%rax), %rdi
callq 0x24b6
movl %eax, %r12d
movq (%rbx), %rdi
callq 0x24b6
cmpl %eax, %r12d
movl $0x1, %ecx
movq -0x50(%rbp), %rax
movl $0x1, -0x3c(%rbp)
cmovel %ecx, %eax
movq %rax, -0x50(%rbp)
jmp 0x33cd
movq -0x48(%rbp), %r15
incq %r13
incq -0x38(%rbp)
incq %r15
cmpq $0x3, %r13
jne 0x3331
cmpl $0x0, -0x50(%rbp)
setne %al
cmpl $0x0, -0x3c(%rbp)
setne %r9b
movl $0x7, %ecx
movl -0x30(%rbp), %edx
testl %edx, %edx
setne %sil
cmpq $0x4, -0x60(%rbp)
sete %dil
xorl %edx, %edx
cmpq $0x4, -0x68(%rbp)
sete %dl
movl %edx, %r8d
andb %dil, %r8b
orb %r8b, %al
orb %sil, %al
testb %r8b, %r8b
movl $0x9, %esi
cmovel %ecx, %esi
orb %dl, %dil
orb %al, %dil
addl $0x5, %edx
testb $0x1, %al
cmovnel %esi, %edx
orb %dil, %r9b
testb $0x1, %dil
movl $0x4, %eax
cmovnel %edx, %eax
testb $0x1, %r9b
jne 0x348f
xorl %r15d, %r15d
xorl %ebx, %ebx
movq (%r14,%r15,8), %rdi
callq 0x24b6
movl %eax, %r12d
movq 0x8(%r14,%r15,8), %rdi
incq %r15
callq 0x24b6
xorl %ecx, %ecx
cmpl %eax, %r12d
sete %cl
addl %ecx, %ebx
cmpq $0x4, %r15
jne 0x3450
cmpl $0x1, %ebx
movl $0x2, %ecx
sbbl $0x0, %ecx
cmpl $0x2, %ebx
movl $0x3, %eax
cmovnel %ecx, %eax
movq -0x70(%rbp), %rcx
cmpl (%rcx), %eax
movq -0x78(%rbp), %rdx
jle 0x34b0
movl %eax, (%rcx)
xorl %eax, %eax
movq (%r14,%rax,8), %rcx
movq %rcx, (%rdx,%rax,8)
incq %rax
cmpq $0x5, %rax
jne 0x349f
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq