// File: /workspace/github_cpp_makefile_star2_O3/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
movq 0x60(%rdi), %xmm0
movd %esi, %xmm1
pshufd $0x50, %xmm1, %xmm1     # xmm1 = xmm1[0,0,1,1]
paddd %xmm0, %xmm1
movq %xmm1, 0x60(%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 0x1942c
leaq 0x98(%rsp), %r13
movq %r13, -0x10(%r13)
movq 0x13ac5(%rip), %rsi     # 0x2b240
movq 0x13ac6(%rip), %rdx     # 0x2b248
addq %rsi, %rdx
leaq 0x88(%rsp), %rdi
callq 0x1942c
movl %r14d, %ebp
negl %ebp
cmovsl %r14d, %ebp
movl $0x1, %r15d
cmpl $0xa, %ebp
jb 0x177ef
movl $0x4, %r15d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %ebp, %ecx
cmpl $0x63, %ecx
jbe 0x177e6
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x177ec
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x177ef
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r15d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x177b3
addl $-0x3, %r15d
jmp 0x177ef
addl $-0x2, %r15d
jmp 0x177ef
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 0x193bf
leaq 0x82eb(%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 0x1785b
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x17864
movdqu (%rcx), %xmm0
movdqu %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 0x139d9(%rip), %rsi     # 0x2b260
movq 0x139da(%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 0x178ba
movq %rcx, 0x48(%rsp)
movq (%rdx), %rcx
movq %rcx, 0x58(%rsp)
jmp 0x178c3
movdqu (%rdx), %xmm0
movdqu %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 0x1a5ac
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 0x17936
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x5280
movq 0x48(%rsp), %rdi
cmpq %r15, %rdi
je 0x1794d
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x5280
movq 0x28(%rsp), %rdi
cmpq %r14, %rdi
je 0x17964
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x5280
movq 0x68(%rsp), %rdi
cmpq %r12, %rdi
je 0x1797b
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x5280
movq 0x88(%rsp), %rdi
cmpq %r13, %rdi
je 0x17998
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x5280
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x179b4
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 0x179ef
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x5280
jmp 0x179ef
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r15, %rdi
je 0x17a0b
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x5280
jmp 0x17a0b
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r14, %rdi
je 0x17a27
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x5280
jmp 0x17a27
movq %rax, %rbx
movq 0x68(%rsp), %rdi
cmpq %r12, %rdi
je 0x17a43
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x5280
jmp 0x17a43
movq %rax, %rbx
movq 0x88(%rsp), %rdi
cmpq %r13, %rdi
je 0x17a65
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x5280
jmp 0x17a65
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x17a81
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5280
movq %rbx, %rdi
callq 0x53e0
nop