// File: /workspace/github_cpp_makefile_star2_O1/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 0x4376
movq %r12, %rdi
movq %rbx, %rsi
callq 0x58ac
movq 0x8(%rax), %rdx
cmpq 0x8(%r14), %rdx
jne 0x5501
testq %rdx, %rdx
je 0x5505
movq (%r14), %rsi
movq (%rax), %rdi
callq 0x2230
testl %eax, %eax
sete %bl
jmp 0x5507
xorl %ebx, %ebx
jmp 0x5507
movb $0x1, %bl
leaq -0x38(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5520
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2220
testb %bl, %bl
je 0x560a
movq 0x3aa1(%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 0x10c2(%rip), %rsi      # 0x6620
movl $0x4, %edx
movq %r12, %rdi
callq 0x2260
leaq -0x48(%rbp), %r13
movq %r13, %rdi
movq %r15, %rsi
callq 0x4376
movq (%r13), %rsi
movq 0x8(%r13), %rdx
movq %r12, %rdi
callq 0x2260
movq %rax, %r15
leaq 0x1091(%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 0x55c9
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2220
leaq 0x105f(%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 0x56d2
leaq -0x58(%rbp), %rax
movq %rax, -0x10(%rax)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq -0x68(%rbp), %rdi
callq 0x3926
leaq -0x48(%rbp), %rdi
movq %r15, %rsi
callq 0x4376
leaq -0x48(%rbp), %rsi
movq %r12, %rdi
callq 0x58ac
leaq -0x80(%rbp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq -0x90(%rbp), %rdi
callq 0x3926
leaq -0x68(%rbp), %rdi
leaq -0x90(%rbp), %rsi
callq 0x3c06
movl %eax, %r12d
movq -0x90(%rbp), %rdi
cmpq %r13, %rdi
je 0x5686
movq -0x80(%rbp), %rsi
incq %rsi
callq 0x2220
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x569f
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2220
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x56b8
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x2220
leaq -0x6c(%rbp), %rdx
movl %r12d, (%rdx)
movq %r15, %rdi
movq %r14, %rsi
callq 0x42e8
movq %r15, %rdi
callq 0x45dc
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 0x570b
movq -0x80(%rbp), %rsi
incq %rsi
callq 0x2220
jmp 0x570b
movq %rax, %rbx
jmp 0x5724
movq %rax, %rbx
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x5724
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2220
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x5760
movq -0x58(%rbp), %rsi
jmp 0x5758
movq %rax, %rbx
leaq -0x38(%rbp), %rax
movq -0x10(%rax), %rdi
jmp 0x574f
movq %rax, %rbx
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x5760
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2220
movq %rbx, %rdi
callq 0x2320