// File: /workspace/github_cpp_makefile_star2_O3/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 %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xe8, %rsp
movq %rdi, %rbx
movq 0x10(%rdi), %rsi
movss 0x28(%rdi), %xmm0
leaq 0xc8(%rsp), %rdi
xorl %edx, %edx
callq 0xa1ae
movq 0x10(%rbx), %rsi
movss 0x2c(%rbx), %xmm0
leaq 0xa8(%rsp), %rdi
xorl %edx, %edx
callq 0xa1ae
movq 0x10(%rbx), %rsi
movss 0x30(%rbx), %xmm0
leaq 0x88(%rsp), %rdi
xorl %edx, %edx
callq 0xa1ae
leaq 0x78(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x6f8f(%rip), %rsi      # 0xfa87
leaq 0x6fa4(%rip), %rdx      # 0xfaa3
leaq 0x68(%rsp), %rdi
callq 0x290e
leaq 0x58(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x6f8a(%rip), %rsi      # 0xfaa4
leaq 0x6fb0(%rip), %rdx      # 0xfad1
leaq 0x48(%rsp), %rdi
callq 0x290e
movss 0x28(%rbx), %xmm0
ucomiss 0x6aa5(%rip), %xmm0     # 0xf5dc
leaq 0x68be(%rip), %r15      # 0xf3fc
leaq 0x6fb9(%rip), %r14      # 0xfafe
movq %r14, %rsi
cmovaeq %r15, %rsi
leaq 0x48(%rsp), %rdi
callq 0x23d0
leaq 0x72cb(%rip), %rsi      # 0xfe28
leaq 0x28(%rsp), %rdi
leaq 0xc8(%rsp), %rdx
callq 0x6852
leaq 0x6885(%rip), %rsi      # 0xf3fb
leaq 0x28(%rsp), %rdi
callq 0x23d0
leaq 0x18(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x8ba7
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x8bae
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
movq 0x8(%rax), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
leaq 0x48(%rsp), %rdi
callq 0x20d0
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x8bf1
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2210
leaq 0x38(%rsp), %r13
movq -0x10(%r13), %rdi
cmpq %r13, %rdi
je 0x8c0c
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x2210
leaq 0x6ebf(%rip), %rsi      # 0xfad2
leaq 0x48(%rsp), %rdi
callq 0x23d0
movss 0x2c(%rbx), %xmm0
ucomiss 0x69b3(%rip), %xmm0     # 0xf5dc
movq %r14, %rsi
cmovaeq %r15, %rsi
leaq 0x48(%rsp), %rdi
callq 0x23d0
leaq 0x71e7(%rip), %rsi      # 0xfe28
leaq 0x28(%rsp), %rdi
leaq 0xa8(%rsp), %rdx
callq 0x6852
leaq 0x67a1(%rip), %rsi      # 0xf3fb
leaq 0x28(%rsp), %rdi
callq 0x23d0
movq %rbp, 0x8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x8c87
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x8c8e
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
movq 0x8(%rax), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
leaq 0x48(%rsp), %rdi
callq 0x20d0
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x8cd1
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2210
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x8ce8
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x2210
leaq 0x6e11(%rip), %rsi      # 0xfb00
leaq 0x48(%rsp), %rdi
callq 0x23d0
movss 0x30(%rbx), %xmm0
ucomiss 0x68d7(%rip), %xmm0     # 0xf5dc
cmovaeq %r15, %r14
leaq 0x48(%rsp), %rdi
movq %r14, %rsi
callq 0x23d0
leaq 0x710b(%rip), %rsi      # 0xfe28
leaq 0x28(%rsp), %rdi
leaq 0x88(%rsp), %rdx
callq 0x6852
leaq 0x66c5(%rip), %rsi      # 0xf3fb
leaq 0x28(%rsp), %rdi
callq 0x23d0
movq %rbp, 0x8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x8d63
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x8d6a
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
movq 0x8(%rax), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
leaq 0x48(%rsp), %rdi
callq 0x20d0
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x8dad
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2210
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x8dc4
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x2210
movq 0x68(%rsp), %rsi
movq 0x70(%rsp), %rdx
movq 0xc1fb(%rip), %rdi      # 0x14fd0
callq 0x2260
movq 0x48(%rsp), %rsi
movq 0x50(%rsp), %rdx
movq %rax, %rdi
callq 0x2260
movq 0x68(%rsp), %rsi
movq 0x70(%rsp), %rdx
movq %rax, %rdi
callq 0x2260
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21f0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2170
movq 0x48(%rsp), %rdi
cmpq %r12, %rdi
je 0x8e3f
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x2210
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x8e5b
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x2210
leaq 0x98(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8e7c
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x2210
leaq 0xb8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8e9d
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x2210
leaq 0xd8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8ebe
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x2210
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x8ed6
jmp 0x8ef2
jmp 0x8f55
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x8ef5
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2210
jmp 0x8ef5
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
jne 0x8f30
jmp 0x8f58
jmp 0x8f55
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x8f22
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2210
jmp 0x8f22
movq %rax, %rbx
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8f58
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x2210
jmp 0x8f58
jmp 0x8f55
movq %rax, %rbx
jmp 0x8f6f
movq %rax, %rbx
jmp 0x8f8b
movq %rax, %rbx
jmp 0x8fac
movq %rax, %rbx
jmp 0x8fcd
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r12, %rdi
je 0x8f6f
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x2210
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x8f8b
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x2210
leaq 0x98(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8fac
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x2210
leaq 0xb8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8fcd
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x2210
leaq 0xd8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8fee
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x2210
movq %rbx, %rdi
callq 0x2390