// File: 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
movq %rsp, %rbp
subq $0x1c0, %rsp            # imm = 0x1C0
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x198(%rbp)
movq 0x10(%rax), %rsi
movss 0x28(%rax), %xmm0
leaq -0x28(%rbp), %rdi
xorl %edx, %edx
movl %edx, -0x18c(%rbp)
callq 0x11f30
movq -0x198(%rbp), %rax
movl -0x18c(%rbp), %edx
movq 0x10(%rax), %rsi
movss 0x2c(%rax), %xmm0
leaq -0x48(%rbp), %rdi
callq 0x11f30
jmp 0x10105
movq -0x198(%rbp), %rax
movq 0x10(%rax), %rsi
movss 0x30(%rax), %xmm0
leaq -0x78(%rbp), %rdi
xorl %edx, %edx
callq 0x11f30
jmp 0x10122
leaq -0x99(%rbp), %rdi
movq %rdi, -0x1a0(%rbp)
callq 0x3520
movq -0x1a0(%rbp), %rdx
leaq 0xc914(%rip), %rsi      # 0x1ca57
leaq -0x98(%rbp), %rdi
callq 0x3b80
jmp 0x10151
leaq -0x99(%rbp), %rdi
callq 0x3350
leaq -0xc1(%rbp), %rdi
movq %rdi, -0x1a8(%rbp)
callq 0x3520
movq -0x1a8(%rbp), %rdx
leaq 0xc8f6(%rip), %rsi      # 0x1ca74
leaq -0xc0(%rbp), %rdi
callq 0x3b80
jmp 0x1018c
leaq -0xc1(%rbp), %rdi
callq 0x3350
movq -0x198(%rbp), %rax
movss 0x28(%rax), %xmm0
movss 0xc400(%rip), %xmm1     # 0x1c5ac
ucomiss %xmm1, %xmm0
leaq 0xc212(%rip), %rax      # 0x1c3c8
leaq 0xc911(%rip), %rsi      # 0x1cace
cmovaeq %rax, %rsi
leaq -0xc0(%rbp), %rdi
callq 0x32d0
jmp 0x101cf
leaq 0xcc22(%rip), %rsi      # 0x1cdf8
leaq -0x108(%rbp), %rdi
leaq -0x28(%rbp), %rdx
callq 0x8970
jmp 0x101e8
leaq 0xc1d8(%rip), %rdx      # 0x1c3c7
leaq -0xe8(%rbp), %rdi
leaq -0x108(%rbp), %rsi
callq 0x8440
jmp 0x10204
leaq -0xc0(%rbp), %rdi
leaq -0xe8(%rbp), %rsi
callq 0x33e0
jmp 0x10219
leaq -0xe8(%rbp), %rdi
callq 0x3200
leaq -0x108(%rbp), %rdi
callq 0x3200
leaq 0xc86a(%rip), %rsi      # 0x1caa2
leaq -0xc0(%rbp), %rdi
callq 0x32d0
jmp 0x10246
movq -0x198(%rbp), %rax
movss 0x2c(%rax), %xmm0
movss 0xc352(%rip), %xmm1     # 0x1c5ac
ucomiss %xmm1, %xmm0
leaq 0xc164(%rip), %rax      # 0x1c3c8
leaq 0xc863(%rip), %rsi      # 0x1cace
cmovaeq %rax, %rsi
leaq -0xc0(%rbp), %rdi
callq 0x32d0
jmp 0x1027d
leaq 0xcb74(%rip), %rsi      # 0x1cdf8
leaq -0x148(%rbp), %rdi
leaq -0x48(%rbp), %rdx
callq 0x8970
jmp 0x10296
leaq 0xc12a(%rip), %rdx      # 0x1c3c7
leaq -0x128(%rbp), %rdi
leaq -0x148(%rbp), %rsi
callq 0x8440
jmp 0x102b2
leaq -0xc0(%rbp), %rdi
leaq -0x128(%rbp), %rsi
callq 0x33e0
jmp 0x102c7
leaq -0x128(%rbp), %rdi
callq 0x3200
leaq -0x148(%rbp), %rdi
callq 0x3200
leaq 0xc7ea(%rip), %rsi      # 0x1cad0
leaq -0xc0(%rbp), %rdi
callq 0x32d0
jmp 0x102f4
movq -0x198(%rbp), %rax
movss 0x30(%rax), %xmm0
movss 0xc2a4(%rip), %xmm1     # 0x1c5ac
ucomiss %xmm1, %xmm0
leaq 0xc0b6(%rip), %rax      # 0x1c3c8
leaq 0xc7b5(%rip), %rsi      # 0x1cace
cmovaeq %rax, %rsi
leaq -0xc0(%rbp), %rdi
callq 0x32d0
jmp 0x1032b
leaq 0xcac6(%rip), %rsi      # 0x1cdf8
leaq -0x188(%rbp), %rdi
leaq -0x78(%rbp), %rdx
callq 0x8970
jmp 0x10344
leaq 0xc07c(%rip), %rdx      # 0x1c3c7
leaq -0x168(%rbp), %rdi
leaq -0x188(%rbp), %rsi
callq 0x8440
jmp 0x10360
leaq -0xc0(%rbp), %rdi
leaq -0x168(%rbp), %rsi
callq 0x33e0
jmp 0x10375
leaq -0x168(%rbp), %rdi
callq 0x3200
leaq -0x188(%rbp), %rdi
callq 0x3200
movq 0x16c2c(%rip), %rdi     # 0x26fc0
leaq -0x98(%rbp), %rsi
callq 0x32b0
movq %rax, -0x1b0(%rbp)
jmp 0x103a9
movq -0x1b0(%rbp), %rdi
leaq -0xc0(%rbp), %rsi
callq 0x32b0
movq %rax, -0x1b8(%rbp)
jmp 0x103c5
movq -0x1b8(%rbp), %rdi
leaq -0x98(%rbp), %rsi
callq 0x32b0
movq %rax, -0x1c0(%rbp)
jmp 0x103e1
movq -0x1c0(%rbp), %rdi
movq 0x16bb9(%rip), %rsi     # 0x26fa8
callq 0x3330
jmp 0x103f6
leaq -0xc0(%rbp), %rdi
callq 0x3200
leaq -0x98(%rbp), %rdi
callq 0x3200
leaq -0x78(%rbp), %rdi
callq 0x3200
leaq -0x48(%rbp), %rdi
callq 0x3200
leaq -0x28(%rbp), %rdi
callq 0x3200
addq $0x1c0, %rsp            # imm = 0x1C0
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
jmp 0x10563
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
jmp 0x1055a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0x99(%rbp), %rdi
callq 0x3350
jmp 0x10551
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0xc1(%rbp), %rdi
callq 0x3350
jmp 0x10545
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
jmp 0x10539
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
jmp 0x104c5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0xe8(%rbp), %rdi
callq 0x3200
leaq -0x108(%rbp), %rdi
callq 0x3200
jmp 0x10539
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
jmp 0x104f9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0x128(%rbp), %rdi
callq 0x3200
leaq -0x148(%rbp), %rdi
callq 0x3200
jmp 0x10539
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
jmp 0x1052d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0x168(%rbp), %rdi
callq 0x3200
leaq -0x188(%rbp), %rdi
callq 0x3200
leaq -0xc0(%rbp), %rdi
callq 0x3200
leaq -0x98(%rbp), %rdi
callq 0x3200
leaq -0x78(%rbp), %rdi
callq 0x3200
leaq -0x48(%rbp), %rdi
callq 0x3200
leaq -0x28(%rbp), %rdi
callq 0x3200
movq -0x50(%rbp), %rdi
callq 0x3510
nopw %cs:(%rax,%rax)