// File: /workspace/github_cpp_makefile_star2_O2/sagardoshi[P]NegotiationsEncounter/src/Encounter.cpp
// Function: Encounter::printScore()
void Encounter::printScore() {
    string startedWith = player->toPreciseString(startInvValue);
    string gaveAway = player->toPreciseString(offerInvValue);
    string endedWith = player->toPreciseString(endInvValue);

    string border = "***** ENCOUNTER SCORE *****\n";
    string scoreText  = "You began with an inventory of market value: ";
           scoreText += (startInvValue >= 10 ? "" : " ");
           scoreText += "£" + startedWith + "\n";
           scoreText += "You gave away a total market value of:       ";
           scoreText += (offerInvValue >= 10 ? "" : " ");
           scoreText += "£" + gaveAway + "\n";
           scoreText += "You ended with an inventory of market value: ";
           scoreText += (endInvValue >= 10 ? "" : " ");
           scoreText += "£" + endedWith + "\n";

    cout << border << scoreText << border << endl;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0xe0, %rsp
movq %rdi, %rbx
movq 0x10(%rdi), %rsi
movss 0x28(%rdi), %xmm0
leaq 0xc0(%rsp), %rdi
xorl %edx, %edx
callq 0x87f8
movq 0x10(%rbx), %rsi
movss 0x2c(%rbx), %xmm0
leaq 0xa0(%rsp), %rdi
xorl %edx, %edx
callq 0x87f8
movq 0x10(%rbx), %rsi
movss 0x30(%rbx), %xmm0
leaq 0x80(%rsp), %rdi
xorl %edx, %edx
callq 0x87f8
leaq 0x4fa9(%rip), %rsi      # 0xca47
leaq 0x60(%rsp), %rdi
leaq 0x20(%rsp), %rdx
callq 0x3860
leaq 0x4fb0(%rip), %rsi      # 0xca64
leaq 0x20(%rsp), %rdi
movq %rsp, %rdx
callq 0x3860
movss 0x28(%rbx), %xmm0
ucomiss 0x4acf(%rip), %xmm0     # 0xc59c
leaq 0x48e4(%rip), %r15      # 0xc3b8
leaq 0x4fe3(%rip), %r14      # 0xcabe
movq %r14, %rsi
cmovaeq %r15, %rsi
leaq 0x20(%rsp), %rdi
callq 0x33b0
leaq 0x52f5(%rip), %rsi      # 0xcde8
leaq 0x40(%rsp), %rdi
leaq 0xc0(%rsp), %rdx
callq 0x5c1a
leaq 0x48ab(%rip), %rdx      # 0xc3b7
movq %rsp, %rdi
leaq 0x40(%rsp), %rsi
callq 0x5a9a
leaq 0x20(%rsp), %rdi
movq %rsp, %rsi
callq 0x33d0
movq %rsp, %rdi
callq 0x3130
leaq 0x40(%rsp), %rdi
callq 0x3130
leaq 0x4f53(%rip), %rsi      # 0xca92
leaq 0x20(%rsp), %rdi
callq 0x33b0
movss 0x2c(%rbx), %xmm0
ucomiss 0x4a47(%rip), %xmm0     # 0xc59c
movq %r14, %rsi
cmovaeq %r15, %rsi
leaq 0x20(%rsp), %rdi
callq 0x33b0
leaq 0x527b(%rip), %rsi      # 0xcde8
leaq 0x40(%rsp), %rdi
leaq 0xa0(%rsp), %rdx
callq 0x5c1a
leaq 0x4831(%rip), %rdx      # 0xc3b7
movq %rsp, %rdi
leaq 0x40(%rsp), %rsi
callq 0x5a9a
leaq 0x20(%rsp), %rdi
movq %rsp, %rsi
callq 0x33d0
movq %rsp, %rdi
callq 0x3130
leaq 0x40(%rsp), %rdi
callq 0x3130
leaq 0x4f07(%rip), %rsi      # 0xcac0
leaq 0x20(%rsp), %rdi
callq 0x33b0
movss 0x30(%rbx), %xmm0
ucomiss 0x49cd(%rip), %xmm0     # 0xc59c
cmovaeq %r15, %r14
leaq 0x20(%rsp), %rdi
movq %r14, %rsi
callq 0x33b0
leaq 0x5201(%rip), %rsi      # 0xcde8
leaq 0x40(%rsp), %rdi
leaq 0x80(%rsp), %rdx
callq 0x5c1a
leaq 0x47b7(%rip), %rdx      # 0xc3b7
movq %rsp, %rdi
leaq 0x40(%rsp), %rsi
callq 0x5a9a
leaq 0x20(%rsp), %rdi
movq %rsp, %rsi
callq 0x33d0
movq %rsp, %rdi
callq 0x3130
leaq 0x40(%rsp), %rdi
callq 0x3130
movq 0xb395(%rip), %rdi      # 0x12fc8
leaq 0x60(%rsp), %rsi
callq 0x3200
leaq 0x20(%rsp), %rsi
movq %rax, %rdi
callq 0x3200
leaq 0x60(%rsp), %rsi
movq %rax, %rdi
callq 0x3200
movq %rax, %rdi
callq 0x3150
leaq 0x20(%rsp), %rdi
callq 0x3130
leaq 0x60(%rsp), %rdi
callq 0x3130
leaq 0x80(%rsp), %rdi
callq 0x3130
leaq 0xa0(%rsp), %rdi
callq 0x3130
leaq 0xc0(%rsp), %rdi
callq 0x3130
addq $0xe0, %rsp
popq %rbx
popq %r14
popq %r15
retq
jmp 0x7cb3
jmp 0x7cc0
jmp 0x7ce5
jmp 0x7cb3
jmp 0x7cc0
jmp 0x7ce5
movq %rax, %rbx
movq %rsp, %rdi
callq 0x3130
jmp 0x7cc3
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0x3130
jmp 0x7ce8
jmp 0x7ce5
movq %rax, %rbx
jmp 0x7cf2
movq %rax, %rbx
jmp 0x7cfc
movq %rax, %rbx
jmp 0x7d09
movq %rax, %rbx
jmp 0x7d16
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x3130
leaq 0x60(%rsp), %rdi
callq 0x3130
leaq 0x80(%rsp), %rdi
callq 0x3130
leaq 0xa0(%rsp), %rdi
callq 0x3130
leaq 0xc0(%rsp), %rdi
callq 0x3130
movq %rbx, %rdi
callq 0x3380
nop