// File: /workspace/github_cpp_makefile_star2_O2/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
pushq $0x4
popq %rdx
xorl %esi, %esi
callq 0x2fdb
movq %rbx, %r15
cmpq $0x4, %rbx
je 0x2d45
movq (%r14,%r15,8), %rdi
callq 0x246e
movl %eax, %r13d
leaq 0x1(%r15), %rbx
movq 0x8(%r14,%r15,8), %rdi
callq 0x246e
cmpl %eax, %r13d
je 0x2d1d
movq %r15, -0x58(%rbp)
xorl %ebx, %ebx
movq %rbx, %r15
cmpq $0x4, %rbx
je 0x2d75
movq (%r14,%r15,8), %rdi
callq 0x2476
movl %eax, %r13d
leaq 0x1(%r15), %rbx
movq 0x8(%r14,%r15,8), %rdi
callq 0x2476
decl %eax
cmpl %eax, %r13d
je 0x2d4b
movq %r15, -0x50(%rbp)
leaq 0x8(%r14), %rbx
xorl %r15d, %r15d
pushq $0x3
popq %rdx
pushq $-0x1
popq %rsi
movl $0x0, -0x2c(%rbp)
cmpq $0x2, %r15
je 0x2e00
movq %rsi, -0x48(%rbp)
movq %rdx, -0x38(%rbp)
leal 0x3(%r15), %eax
movl %eax, -0x40(%rbp)
xorl %r12d, %r12d
cmpq $0x3, %r12
je 0x2dd6
movq -0x8(%rbx,%r12,8), %rdi
callq 0x2476
movl %eax, %r13d
movq (%rbx,%r12,8), %rdi
callq 0x2476
incq %r12
cmpl %eax, %r13d
je 0x2da5
movq -0x48(%rbp), %rsi
addq %rsi, %r12
movq -0x38(%rbp), %rdx
jmp 0x2de1
movq -0x38(%rbp), %rdx
movq %rdx, %r12
movq -0x48(%rbp), %rsi
cmpl %r12d, -0x40(%rbp)
movl -0x2c(%rbp), %eax
pushq $0x1
popq %rcx
cmovel %ecx, %eax
movl %eax, -0x2c(%rbp)
incq %r15
incq %rdx
incq %rsi
addq $0x8, %rbx
jmp 0x2d8d
xorl %r9d, %r9d
movl -0x2c(%rbp), %edx
testl %edx, %edx
je 0x2e1c
pushq $0x8
popq %rax
xorl %ecx, %ecx
movq -0x58(%rbp), %r8
movq -0x50(%rbp), %rsi
jmp 0x2f1a
movq $0x0, -0x60(%rbp)
leaq 0x20(%r14), %rax
movq %rax, -0x68(%rbp)
leaq 0x18(%r14), %rax
movq %rax, -0x88(%rbp)
leaq 0x8(%r14), %rax
movq %rax, -0x80(%rbp)
pushq $0x2
popq %rax
pushq $-0x1
popq %r12
movq %rax, -0x40(%rbp)
xorl %ebx, %ebx
movl $0x0, -0x30(%rbp)
movq -0x58(%rbp), %r8
movq -0x50(%rbp), %rsi
cmpq $0x3, %rbx
je 0x2f05
leal 0x2(%rbx), %eax
movl %eax, -0x48(%rbp)
pushq $0x2
popq %r15
movq %r12, -0x38(%rbp)
subq $0x1, %r15
jb 0x2e9a
movq 0x8(%r14,%r12,8), %rdi
callq 0x2476
movl %eax, %r13d
movq 0x10(%r14,%r12,8), %rdi
callq 0x2476
incq %r12
cmpl %eax, %r13d
je 0x2e73
jmp 0x2e9e
movq -0x40(%rbp), %r12
cmpl %r12d, -0x48(%rbp)
jne 0x2ef2
movq -0x88(%rbp), %rax
movq -0x68(%rbp), %r15
testl %ebx, %ebx
movq -0x38(%rbp), %r12
je 0x2eca
movq %r14, %rax
movq -0x68(%rbp), %r15
cmpl $0x1, %ebx
je 0x2eca
movq %r14, %rax
movq -0x80(%rbp), %r15
movq (%rax), %rdi
callq 0x2476
movl %eax, %r13d
movq (%r15), %rdi
callq 0x2476
cmpl %eax, %r13d
pushq $0x1
popq %rax
movl -0x30(%rbp), %ecx
cmovel %eax, %ecx
movl %ecx, -0x30(%rbp)
movq %rax, -0x60(%rbp)
jmp 0x2ef6
movq -0x38(%rbp), %r12
incq %rbx
incq -0x40(%rbp)
incq %r12
jmp 0x2e53
cmpl $0x0, -0x30(%rbp)
setne %cl
cmpl $0x0, -0x60(%rbp)
setne %r9b
pushq $0x7
popq %rax
movl -0x2c(%rbp), %edx
testl %edx, %edx
setne %dl
cmpq $0x4, %rsi
sete %sil
xorl %edi, %edi
cmpq $0x4, %r8
sete %dil
movl %edi, %r8d
andb %sil, %r8b
orb %cl, %dl
orb %r8b, %dl
testb %r8b, %r8b
pushq $0x9
popq %rcx
cmovel %eax, %ecx
orb %dil, %sil
orb %dl, %sil
addl $0x5, %edi
testb $0x1, %dl
cmovnel %ecx, %edi
orb %sil, %r9b
testb $0x1, %sil
pushq $0x4
popq %rcx
cmovnel %edi, %ecx
testb $0x1, %r9b
jne 0x2fa9
xorl %r15d, %r15d
xorl %ebx, %ebx
cmpq $0x4, %r15
je 0x2f97
movq (%r14,%r15,8), %rdi
callq 0x2476
movl %eax, %r12d
movq 0x8(%r14,%r15,8), %rdi
incq %r15
callq 0x2476
xorl %ecx, %ecx
cmpl %eax, %r12d
sete %cl
addl %ecx, %ebx
jmp 0x2f6c
cmpl $0x1, %ebx
pushq $0x2
popq %rax
sbbl $0x0, %eax
cmpl $0x2, %ebx
pushq $0x3
popq %rcx
cmovnel %eax, %ecx
movq -0x70(%rbp), %rax
cmpl (%rax), %ecx
movq -0x78(%rbp), %rdx
jle 0x2fcc
movl %ecx, (%rax)
xorl %eax, %eax
cmpq $0x5, %rax
je 0x2fcc
movq (%r14,%rax,8), %rcx
movq %rcx, (%rdx,%rax,8)
incq %rax
jmp 0x2fb9
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq