// File: /workspace/github_cpp_makefile_star2_O3/m-wiesner[P]Jotto/ScoreKeeper.cpp
// Function: ScoreKeeper::submit_score(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, Guesser*)
bool ScoreKeeper::submit_score (const string& guess, Guesser *g)// submit score of string to guesser
{
    if (codewords[g->get_player()] == guess)
    {
        cout << endl;
        cout << "!!! " << g->get_player() << " GUESSED " << guess;
        cout << " AND WON !!!" << endl;
        return false;
    }
     
    int s = score(guess, codewords[g->get_player()]); 
    g->add_guess(guess, s);
    g->print_guesses();
    return true;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %r12
leaq -0x48(%rbp), %rbx
movq %rbx, %rdi
movq %rdx, %rsi
callq 0x4346
movq %r12, %rdi
movq %rbx, %rsi
callq 0x5840
movq 0x8(%rax), %rdx
cmpq 0x8(%r14), %rdx
jne 0x5495
testq %rdx, %rdx
je 0x5499
movq (%r14), %rsi
movq (%rax), %rdi
callq 0x2230
testl %eax, %eax
sete %bl
jmp 0x549b
xorl %ebx, %ebx
jmp 0x549b
movb $0x1, %bl
leaq -0x38(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x54b4
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2220
testb %bl, %bl
je 0x559e
movq 0x3b0d(%rip), %r12      # 0x8fd0
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x21f0
movsbl %al, %esi
movq %r12, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2150
leaq 0x112e(%rip), %rsi      # 0x6620
movl $0x4, %edx
movq %r12, %rdi
callq 0x2260
leaq -0x48(%rbp), %r13
movq %r13, %rdi
movq %r15, %rsi
callq 0x4346
movq (%r13), %rsi
movq 0x8(%r13), %rdx
movq %r12, %rdi
callq 0x2260
movq %rax, %r15
leaq 0x10fd(%rip), %rsi      # 0x6625
movl $0x9, %edx
movq %rax, %rdi
callq 0x2260
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq %r15, %rdi
callq 0x2260
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x555d
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2220
leaq 0x10cb(%rip), %rsi      # 0x662f
movl $0xc, %edx
movq %r12, %rdi
callq 0x2260
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x21f0
movsbl %al, %esi
movq %r12, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2150
jmp 0x5666
leaq -0x58(%rbp), %rax
movq %rax, -0x10(%rax)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq -0x68(%rbp), %rdi
callq 0x390c
leaq -0x48(%rbp), %rdi
movq %r15, %rsi
callq 0x4346
leaq -0x48(%rbp), %rsi
movq %r12, %rdi
callq 0x5840
leaq -0x80(%rbp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq -0x90(%rbp), %rdi
callq 0x390c
leaq -0x68(%rbp), %rdi
leaq -0x90(%rbp), %rsi
callq 0x3bf2
movl %eax, %r12d
movq -0x90(%rbp), %rdi
cmpq %r13, %rdi
je 0x561a
movq -0x80(%rbp), %rsi
incq %rsi
callq 0x2220
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x5633
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2220
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x564c
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x2220
leaq -0x6c(%rbp), %rdx
movl %r12d, (%rdx)
movq %r15, %rdi
movq %r14, %rsi
callq 0x42b8
movq %r15, %rdi
callq 0x45ac
xorb $0x1, %bl
movl %ebx, %eax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x90(%rbp), %rdi
cmpq %r13, %rdi
je 0x569f
movq -0x80(%rbp), %rsi
incq %rsi
callq 0x2220
jmp 0x569f
movq %rax, %rbx
jmp 0x56b8
movq %rax, %rbx
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x56b8
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2220
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x56f4
movq -0x58(%rbp), %rsi
jmp 0x56ec
movq %rax, %rbx
leaq -0x38(%rbp), %rax
movq -0x10(%rax), %rdi
jmp 0x56e3
movq %rax, %rbx
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x56f4
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2220
movq %rbx, %rdi
callq 0x2320