// File: /workspace/github_cpp_makefile_star2_O1/XxAdi101xX[P]ChamberCrawler/Character/Character.cc
// Function: Character::addGold(int)
void Character::addGold(int amount) {
	this->wallet += amount;
	this->score += amount;

	this->addAction(makeMsg(this->name, WORD_GAIN_PAST_TENSE, to_string(amount)
		+ " " + WORD_GOLD_NOUN));
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movl %esi, %r14d
movq %rdi, %rbx
addl %esi, 0x60(%rdi)
addl %esi, 0x64(%rdi)
leaq 0x18(%rsp), %rax
movq %rax, -0x10(%rax)
movq 0x88(%rdi), %rsi
movq 0x90(%rdi), %rdx
addq %rsi, %rdx
leaq 0x8(%rsp), %rdi
callq 0x193f0
leaq 0x98(%rsp), %r13
movq %r13, -0x10(%r13)
movq 0x13ae0(%rip), %rsi     # 0x2b240
movq 0x13ae1(%rip), %rdx     # 0x2b248
addq %rsi, %rdx
leaq 0x88(%rsp), %rdi
callq 0x193f0
movl %r14d, %ebp
negl %ebp
cmovsl %r14d, %ebp
movl $0x1, %r15d
cmpl $0xa, %ebp
jb 0x177d4
movl $0x4, %r15d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %ebp, %ecx
cmpl $0x63, %ecx
jbe 0x177cb
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x177d1
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x177d4
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r15d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x17798
addl $-0x3, %r15d
jmp 0x177d4
addl $-0x2, %r15d
jmp 0x177d4
decl %r15d
shrl $0x1f, %r14d
leal (%r15,%r14), %esi
leaq 0x78(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x68(%rsp), %rdi
movl $0x2d, %edx
callq 0x52d0
movl %r14d, %edi
leaq 0x68(%rsp), %r14
addq (%r14), %rdi
movl %r15d, %esi
movl %ebp, %edx
callq 0x19383
leaq 0x8306(%rip), %rsi      # 0x1fb17
movq %r14, %rdi
callq 0x5420
leaq 0x38(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x17840
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x17847
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rdx
leaq 0x28(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x139f6(%rip), %rsi     # 0x2b260
movq 0x139f7(%rip), %rdx     # 0x2b268
callq 0x5100
leaq 0x58(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rcx
movq %rax, %rdx
addq $0x10, %rdx
cmpq %rdx, %rcx
je 0x1789d
movq %rcx, 0x48(%rsp)
movq (%rdx), %rcx
movq %rcx, 0x58(%rsp)
jmp 0x178a4
movups (%rdx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rsi
leaq 0x48(%rsp), %rcx
movq %rsi, 0x8(%rcx)
movq %rdx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0xa8(%rsp), %rdi
leaq 0x8(%rsp), %rsi
leaq 0x88(%rsp), %rdx
callq 0x1a5f0
addq $0x68, %rbx
movq 0xa8(%rsp), %rsi
movq 0xb0(%rsp), %rdx
movq %rbx, %rdi
callq 0x5100
leaq 0xb8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x17917
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x5280
movq 0x48(%rsp), %rdi
cmpq %r15, %rdi
je 0x1792e
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x5280
movq 0x28(%rsp), %rdi
cmpq %r14, %rdi
je 0x17945
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x5280
movq 0x68(%rsp), %rdi
cmpq %r12, %rdi
je 0x1795c
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x5280
movq 0x88(%rsp), %rdi
cmpq %r13, %rdi
je 0x17979
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x5280
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x17995
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5280
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0xb8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x179d0
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x5280
jmp 0x179d0
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r15, %rdi
je 0x179ec
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x5280
jmp 0x179ec
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r14, %rdi
je 0x17a08
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x5280
jmp 0x17a08
movq %rax, %rbx
movq 0x68(%rsp), %rdi
cmpq %r12, %rdi
je 0x17a24
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x5280
jmp 0x17a24
movq %rax, %rbx
movq 0x88(%rsp), %rdi
cmpq %r13, %rdi
je 0x17a46
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x5280
jmp 0x17a46
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x17a62
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5280
movq %rbx, %rdi
callq 0x53e0