// File: /workspace/github_cpp_makefile_star2_O1/malcolmyeh[P]CC3K/elf.cc
// Function: Elf::dealDamage[abi:cxx11](Character*)
std::string Elf::dealDamage(Character *opponent)
{
    double amount;
    std::string combatMsg;
    std::string defender = opponent->getRace();
    int attack = this->Atk;
    int defense = opponent->getDef();

    if (this->HP < 35)
    {
        if (rand() % 2 == 0)
        {
            this->heal(15); 
            combatMsg += "Elven magic restored 15 health (HP: " + std::to_string(this->HP) + "). ";
        }
    }
    amount = ceil((100.0 / (100.0 + defense)) * attack);

    if (rand() % 10 == 0)
    {
        opponent->getStunned();
        opponent->takeDamage((int)amount);
        combatMsg += "You cast Shockwave dealing " + std::to_string((int)amount) + " damage to " + defender + " (HP: " + std::to_string(opponent->getHP()) + ") and stunning them. ";
    }
    else
    {
        opponent->takeDamage((int)amount);
        combatMsg += "You deal " + std::to_string((int)amount) + " damage to " + defender + " (HP: " + std::to_string(opponent->getHP()) + "). ";
    }
    if (opponent->getHP() == 0)
    {
        combatMsg += defender + " has been slain. You have earned " + std::to_string(opponent->getGold()) + " gold. ";
        this->updateGold(opponent->getGold());
    }

    return combatMsg;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x148, %rsp            # imm = 0x148
movq %rdx, %r14
movq %rsi, %rbx
leaq 0x10(%rdi), %rax
movq %rax, -0x148(%rbp)
movq %rax, (%rdi)
movq $0x0, 0x8(%rdi)
movq %rdi, -0xb8(%rbp)
movb $0x0, 0x10(%rdi)
movq (%rdx), %rax
leaq -0x168(%rbp), %rdi
movq %rdx, %rsi
callq *0x28(%rax)
movl 0x8(%rbx), %r15d
movq (%r14), %rax
movq %r14, %rdi
callq *0x10(%rax)
movl %eax, %r12d
cmpl $0x22, 0x10(%rbx)
movq %rbx, -0x170(%rbp)
movq %r14, -0xb0(%rbp)
jg 0xe9c8
callq 0x4060
testb $0x1, %al
jne 0xe9c8
movq %rbx, %rdi
movl $0xf, %esi
callq 0xb610
movl 0x10(%rbx), %r13d
movl %r13d, %r14d
negl %r14d
cmovsl %r13d, %r14d
movl $0x1, %ebx
cmpl $0xa, %r14d
jb 0xe871
movl $0x4, %ebx
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %r14d, %ecx
cmpl $0x63, %ecx
jbe 0xe86a
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0xe86f
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0xe871
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %ebx
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0xe839
addl $-0x3, %ebx
jmp 0xe871
addl $-0x2, %ebx
jmp 0xe871
decl %ebx
movl %r15d, -0xe0(%rbp)
shrl $0x1f, %r13d
leal (%rbx,%r13), %esi
leaq -0x58(%rbp), %rax
movq %rax, -0x10(%rax)
leaq -0x68(%rbp), %rdi
movl $0x2d, %edx
callq 0x41b0
leaq -0x68(%rbp), %r15
addq (%r15), %r13
movq %r13, %rdi
movl %ebx, %esi
movl %r14d, %edx
callq 0xa510
leaq 0xf150(%rip), %rcx      # 0x1da01
movl $0x24, %r8d
movq %r15, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x4190
leaq -0x38(%rbp), %rbx
movq %rbx, -0x10(%rbx)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
movq -0xb0(%rbp), %r14
je 0xe8ee
movq %rdx, -0x48(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x38(%rbp)
jmp 0xe8f6
movupd (%rcx), %xmm0
movupd %xmm0, (%rbx)
movq 0x8(%rax), %rdx
leaq -0x48(%rbp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0xf2dd(%rip), %rsi      # 0x1dbf5
callq 0x4280
leaq -0x78(%rbp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xe944
movq %rdx, -0x88(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x78(%rbp)
jmp 0xe94d
movupd (%rcx), %xmm0
movupd %xmm0, (%r15)
movq 0x8(%rax), %rdx
movq %rdx, -0x80(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq -0x88(%rbp), %rsi
movq -0x80(%rbp), %rdx
movq -0xb8(%rbp), %rdi
callq 0x4080
movq -0x88(%rbp), %rdi
cmpq %r15, %rdi
je 0xe993
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x4170
movq -0x48(%rbp), %rdi
cmpq %rbx, %rdi
movl -0xe0(%rbp), %r15d
je 0xe9af
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x4170
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0xe9c8
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x4170
xorps %xmm0, %xmm0
cvtsi2sd %r12d, %xmm0
movsd 0xef40(%rip), %xmm1     # 0x1d918
addsd %xmm1, %xmm0
divsd %xmm0, %xmm1
xorps %xmm0, %xmm0
cvtsi2sd %r15d, %xmm0
mulsd %xmm1, %xmm0
callq 0x4040
movsd %xmm0, -0xe0(%rbp)
callq 0x4060
imull $0xcccccccd, %eax, %eax # imm = 0xCCCCCCCD
movl $0x19999998, %ecx       # imm = 0x19999998
addl %ecx, %eax
rorl %eax
cmpl %ecx, %eax
jbe 0xea8c
cvttsd2si -0xe0(%rbp), %r12d
movq (%r14), %rax
movq %r14, %rdi
movl %r12d, %esi
callq *0x48(%rax)
movl %r12d, %r14d
negl %r14d
cmovsl %r12d, %r14d
movl $0x1, %ebx
cmpl $0xa, %r14d
jb 0xeb16
movl $0x4, %ebx
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %r14d, %ecx
cmpl $0x63, %ecx
jbe 0xeb0f
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0xeb14
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0xeb16
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %ebx
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0xea4c
addl $-0x3, %ebx
jmp 0xeb16
movq %r14, %rdi
callq 0xabb0
cvttsd2si -0xe0(%rbp), %r12d
movq (%r14), %rax
movq %r14, %rdi
movl %r12d, %esi
callq *0x48(%rax)
movl %r12d, %r14d
negl %r14d
cmovsl %r12d, %r14d
movl $0x1, %ebx
cmpl $0xa, %r14d
jb 0xee95
movl $0x4, %ebx
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %r14d, %ecx
cmpl $0x63, %ecx
jbe 0xee8e
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0xee93
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0xee95
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %ebx
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0xeacf
addl $-0x3, %ebx
jmp 0xee95
addl $-0x2, %ebx
jmp 0xeb16
decl %ebx
shrl $0x1f, %r12d
leal (%rbx,%r12), %esi
leaq -0x130(%rbp), %rax
movq %rax, -0x10(%rax)
leaq -0x140(%rbp), %rdi
movl $0x2d, %edx
callq 0x41b0
movl %r12d, %edi
leaq -0x140(%rbp), %r15
addq (%r15), %rdi
movl %ebx, %esi
movl %r14d, %edx
callq 0xa510
leaq 0xee84(%rip), %rcx      # 0x1d9dc
movl $0x9, %r8d
movq %r15, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x4190
leaq -0xf0(%rbp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xeb97
movq %rdx, -0x100(%rbp)
movq (%rcx), %rdx
movq %rdx, -0xf0(%rbp)
jmp 0xeb9f
movupd (%rcx), %xmm0
movupd %xmm0, (%rsi)
movq 0x8(%rax), %rdx
leaq -0x100(%rbp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0xed5c(%rip), %rsi      # 0x1d920
callq 0x4280
leaq -0x110(%rbp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xebf6
movq %rdx, -0x120(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x110(%rbp)
jmp 0xebfe
movupd (%rcx), %xmm0
movupd %xmm0, (%rsi)
movq 0x8(%rax), %rdx
leaq -0x120(%rbp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq -0x168(%rbp), %rsi
movq -0x160(%rbp), %rdx
callq 0x4080
leaq -0x98(%rbp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xec5c
movq %rdx, -0xa8(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x98(%rbp)
jmp 0xec64
movupd (%rcx), %xmm0
movupd %xmm0, (%rsi)
movq 0x8(%rax), %rdx
leaq -0xa8(%rbp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0xf009(%rip), %rsi      # 0x1dc92
callq 0x4280
leaq -0x58(%rbp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xecb2
movq %rdx, -0x68(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x58(%rbp)
jmp 0xecbc
movupd (%rcx), %xmm0
movupd %xmm0, (%r13)
movq 0x8(%rax), %rdx
movq %rdx, -0x60(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq -0xb0(%rbp), %rdi
movq (%rdi), %rax
callq *0x18(%rax)
movl %eax, %r12d
movl %eax, %r14d
negl %r14d
cmovsl %eax, %r14d
movl $0x1, %ebx
cmpl $0xa, %r14d
jb 0xed3d
movl $0x4, %ebx
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %r14d, %ecx
cmpl $0x63, %ecx
jbe 0xed36
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0xed3b
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0xed3d
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %ebx
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0xed05
addl $-0x3, %ebx
jmp 0xed3d
addl $-0x2, %ebx
jmp 0xed3d
decl %ebx
shrl $0x1f, %r12d
leal (%rbx,%r12), %esi
leaq -0xc8(%rbp), %r15
movq %r15, -0x10(%r15)
leaq -0xd8(%rbp), %rdi
movl $0x2d, %edx
callq 0x41b0
movl %r12d, %edi
addq -0xd8(%rbp), %rdi
movl %ebx, %esi
movl %r14d, %edx
callq 0xa510
movq -0x68(%rbp), %rcx
movq -0x60(%rbp), %r8
movq -0xd0(%rbp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %esi
cmpq %r13, %rcx
je 0xed96
movq -0x58(%rbp), %rsi
cmpq %rsi, %rax
jbe 0xedb5
movl $0xf, %esi
cmpq %r15, -0xd8(%rbp)
je 0xedb0
movq -0xc8(%rbp), %rsi
cmpq %rsi, %rax
jbe 0xedc7
movq -0xd8(%rbp), %rsi
leaq -0x68(%rbp), %rdi
callq 0x4080
jmp 0xedd7
leaq -0xd8(%rbp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x4190
leaq -0x38(%rbp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0xedf8
movq %rsi, -0x48(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x38(%rbp)
jmp 0xee00
movupd (%rcx), %xmm0
movupd %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, -0x40(%rbp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0xedd2(%rip), %rsi      # 0x1dbf5
leaq -0x48(%rbp), %rdi
callq 0x4280
leaq -0x78(%rbp), %rbx
movq %rbx, -0x10(%rbx)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xee53
movq %rdx, -0x88(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x78(%rbp)
jmp 0xee5b
movupd (%rcx), %xmm0
movupd %xmm0, (%rbx)
movq 0x8(%rax), %rdx
movq %rdx, -0x80(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq -0x88(%rbp), %rsi
movq -0x80(%rbp), %rdx
movq -0xb8(%rbp), %rdi
callq 0x4080
jmp 0xf208
addl $-0x2, %ebx
jmp 0xee95
decl %ebx
shrl $0x1f, %r12d
leal (%rbx,%r12), %esi
leaq -0x130(%rbp), %rax
movq %rax, -0x10(%rax)
leaq -0x140(%rbp), %rdi
movl $0x2d, %edx
callq 0x41b0
movl %r12d, %edi
leaq -0x140(%rbp), %r15
addq (%r15), %rdi
movl %ebx, %esi
movl %r14d, %edx
callq 0xa510
leaq 0xeb4f(%rip), %rcx      # 0x1da26
movl $0x1b, %r8d
movq %r15, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x4190
leaq -0xf0(%rbp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xef16
movq %rdx, -0x100(%rbp)
movq (%rcx), %rdx
movq %rdx, -0xf0(%rbp)
jmp 0xef1e
movupd (%rcx), %xmm0
movupd %xmm0, (%rsi)
movq 0x8(%rax), %rdx
leaq -0x100(%rbp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0xe9dd(%rip), %rsi      # 0x1d920
callq 0x4280
leaq -0x110(%rbp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xef75
movq %rdx, -0x120(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x110(%rbp)
jmp 0xef7d
movupd (%rcx), %xmm0
movupd %xmm0, (%rsi)
movq 0x8(%rax), %rdx
leaq -0x120(%rbp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq -0x168(%rbp), %rsi
movq -0x160(%rbp), %rdx
callq 0x4080
leaq -0x98(%rbp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xefdb
movq %rdx, -0xa8(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x98(%rbp)
jmp 0xefe3
movupd (%rcx), %xmm0
movupd %xmm0, (%rsi)
movq 0x8(%rax), %rdx
leaq -0xa8(%rbp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0xec8a(%rip), %rsi      # 0x1dc92
callq 0x4280
leaq -0x58(%rbp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xf031
movq %rdx, -0x68(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x58(%rbp)
jmp 0xf03b
movupd (%rcx), %xmm0
movupd %xmm0, (%r13)
movq 0x8(%rax), %rdx
movq %rdx, -0x60(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq -0xb0(%rbp), %rdi
movq (%rdi), %rax
callq *0x18(%rax)
movl %eax, %r12d
movl %eax, %r14d
negl %r14d
cmovsl %eax, %r14d
movl $0x1, %ebx
cmpl $0xa, %r14d
jb 0xf0bc
movl $0x4, %ebx
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %r14d, %ecx
cmpl $0x63, %ecx
jbe 0xf0b5
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0xf0ba
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0xf0bc
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %ebx
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0xf084
addl $-0x3, %ebx
jmp 0xf0bc
addl $-0x2, %ebx
jmp 0xf0bc
decl %ebx
shrl $0x1f, %r12d
leal (%rbx,%r12), %esi
leaq -0xc8(%rbp), %r15
movq %r15, -0x10(%r15)
leaq -0xd8(%rbp), %rdi
movl $0x2d, %edx
callq 0x41b0
movl %r12d, %edi
addq -0xd8(%rbp), %rdi
movl %ebx, %esi
movl %r14d, %edx
callq 0xa510
movq -0x68(%rbp), %rcx
movq -0x60(%rbp), %r8
movq -0xd0(%rbp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %esi
cmpq %r13, %rcx
je 0xf115
movq -0x58(%rbp), %rsi
cmpq %rsi, %rax
jbe 0xf134
movl $0xf, %esi
cmpq %r15, -0xd8(%rbp)
je 0xf12f
movq -0xc8(%rbp), %rsi
cmpq %rsi, %rax
jbe 0xf146
movq -0xd8(%rbp), %rsi
leaq -0x68(%rbp), %rdi
callq 0x4080
jmp 0xf156
leaq -0xd8(%rbp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x4190
leaq -0x38(%rbp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0xf177
movq %rsi, -0x48(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x38(%rbp)
jmp 0xf17f
movupd (%rcx), %xmm0
movupd %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, -0x40(%rbp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0xe8a0(%rip), %rsi      # 0x1da42
leaq -0x48(%rbp), %rdi
callq 0x4280
leaq -0x78(%rbp), %rbx
movq %rbx, -0x10(%rbx)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xf1d2
movq %rdx, -0x88(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x78(%rbp)
jmp 0xf1da
movupd (%rcx), %xmm0
movupd %xmm0, (%rbx)
movq 0x8(%rax), %rdx
movq %rdx, -0x80(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq -0x88(%rbp), %rsi
movq -0x80(%rbp), %rdx
movq -0xb8(%rbp), %rdi
callq 0x4080
movq -0x88(%rbp), %rdi
cmpq %rbx, %rdi
je 0xf220
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x4170
leaq -0x38(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xf239
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x4170
movq -0xd8(%rbp), %rdi
cmpq %r15, %rdi
je 0xf254
movq -0xc8(%rbp), %rsi
incq %rsi
callq 0x4170
movq -0x68(%rbp), %rdi
cmpq %r13, %rdi
je 0xf269
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x4170
movq -0xa8(%rbp), %rdi
leaq -0x98(%rbp), %rax
cmpq %rax, %rdi
movq -0xb0(%rbp), %rbx
leaq -0x130(%rbp), %r14
je 0xf299
movq -0x98(%rbp), %rsi
incq %rsi
callq 0x4170
movq -0x120(%rbp), %rdi
leaq -0x110(%rbp), %rax
cmpq %rax, %rdi
je 0xf2bb
movq -0x110(%rbp), %rsi
incq %rsi
callq 0x4170
movq -0x100(%rbp), %rdi
leaq -0xf0(%rbp), %rax
cmpq %rax, %rdi
je 0xf2dd
movq -0xf0(%rbp), %rsi
incq %rsi
callq 0x4170
movq -0x140(%rbp), %rdi
cmpq %r14, %rdi
je 0xf2f8
movq -0x130(%rbp), %rsi
incq %rsi
callq 0x4170
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x18(%rax)
testl %eax, %eax
jne 0xf56f
leaq -0x58(%rbp), %r15
movq %r15, -0x10(%r15)
movq -0x168(%rbp), %rsi
movq -0x160(%rbp), %rdx
addq %rsi, %rdx
leaq -0x68(%rbp), %rdi
callq 0xa582
leaq 0xe5fa(%rip), %rsi      # 0x1d92c
leaq -0x68(%rbp), %rdi
callq 0x4280
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x20(%rax)
movl %eax, %r12d
movl %eax, %r14d
negl %r14d
cmovsl %eax, %r14d
movl $0x1, %ebx
cmpl $0xa, %r14d
jb 0xf3a1
movl $0x4, %ebx
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %r14d, %ecx
cmpl $0x63, %ecx
jbe 0xf39a
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0xf39f
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0xf3a1
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %ebx
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0xf369
addl $-0x3, %ebx
jmp 0xf3a1
addl $-0x2, %ebx
jmp 0xf3a1
decl %ebx
shrl $0x1f, %r12d
leal (%rbx,%r12), %esi
leaq -0x98(%rbp), %r13
movq %r13, -0x10(%r13)
leaq -0xa8(%rbp), %rdi
movl $0x2d, %edx
callq 0x41b0
movl %r12d, %edi
addq -0xa8(%rbp), %rdi
movl %ebx, %esi
movl %r14d, %edx
callq 0xa510
movq -0x68(%rbp), %rcx
movq -0x60(%rbp), %r8
movq -0xa0(%rbp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %esi
cmpq %r15, %rcx
je 0xf3fa
movq -0x58(%rbp), %rsi
cmpq %rsi, %rax
jbe 0xf419
movl $0xf, %esi
cmpq %r13, -0xa8(%rbp)
je 0xf414
movq -0x98(%rbp), %rsi
cmpq %rsi, %rax
jbe 0xf42b
movq -0xa8(%rbp), %rsi
leaq -0x68(%rbp), %rdi
callq 0x4080
jmp 0xf43b
leaq -0xa8(%rbp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x4190
leaq -0x38(%rbp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0xf45c
movq %rsi, -0x48(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x38(%rbp)
jmp 0xf464
movupd (%rcx), %xmm0
movupd %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, -0x40(%rbp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0xdedb(%rip), %rsi      # 0x1d362
leaq -0x48(%rbp), %rdi
callq 0x4280
leaq -0x78(%rbp), %rbx
movq %rbx, -0x10(%rbx)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xf4b7
movq %rdx, -0x88(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x78(%rbp)
jmp 0xf4bf
movupd (%rcx), %xmm0
movupd %xmm0, (%rbx)
movq 0x8(%rax), %rdx
movq %rdx, -0x80(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq -0x88(%rbp), %rsi
movq -0x80(%rbp), %rdx
movq -0xb8(%rbp), %rdi
callq 0x4080
movq -0x88(%rbp), %rdi
cmpq %rbx, %rdi
je 0xf505
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x4170
leaq -0x38(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xf51e
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x4170
movq -0xa8(%rbp), %rdi
cmpq %r13, %rdi
je 0xf539
movq -0x98(%rbp), %rsi
incq %rsi
callq 0x4170
movq -0x68(%rbp), %rdi
cmpq %r15, %rdi
movq -0x170(%rbp), %rbx
movq -0xb0(%rbp), %r14
je 0xf55c
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x4170
movq (%r14), %rax
movq %r14, %rdi
callq *0x20(%rax)
movq (%rbx), %rcx
movq %rbx, %rdi
movl %eax, %esi
callq *(%rcx)
leaq -0x158(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xf58e
movq -0x158(%rbp), %rsi
incq %rsi
callq 0x4170
movq -0xb8(%rbp), %rax
addq $0x148, %rsp            # imm = 0x148
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq -0x88(%rbp), %rdi
cmpq %r15, %rdi
je 0xf5c7
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x4170
jmp 0xf5c7
movq %rax, %r14
movq -0x48(%rbp), %rdi
cmpq %rbx, %rdi
je 0xf5e1
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x4170
jmp 0xf5e1
movq %rax, %r14
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
jne 0xf705
jmp 0xf7bd
jmp 0xf7ba
movq %rax, %r14
movq -0x88(%rbp), %rdi
cmpq %rbx, %rdi
je 0xf61c
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x4170
jmp 0xf61c
movq %rax, %r14
leaq -0x38(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xf63a
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x4170
jmp 0xf63a
movq %rax, %r14
movq -0xa8(%rbp), %rdi
cmpq %r13, %rdi
je 0xf6f8
movq -0x98(%rbp), %rsi
incq %rsi
callq 0x4170
jmp 0xf6f8
jmp 0xf6f5
jmp 0xf7ba
jmp 0xf67b
jmp 0xf698
jmp 0xf6b6
jmp 0xf6d6
jmp 0xf6db
jmp 0xf6e0
jmp 0xf6e8
jmp 0xf7ba
movq %rax, %r14
movq -0x88(%rbp), %rdi
cmpq %rbx, %rdi
je 0xf69b
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x4170
jmp 0xf69b
movq %rax, %r14
leaq -0x38(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xf6b9
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x4170
jmp 0xf6b9
movq %rax, %r14
movq -0xd8(%rbp), %rdi
cmpq %r15, %rdi
je 0xf71b
movq -0xc8(%rbp), %rsi
incq %rsi
callq 0x4170
jmp 0xf71b
movq %rax, %r14
jmp 0xf730
movq %rax, %r14
jmp 0xf752
movq %rax, %r14
jmp 0xf774
movq %rax, %r14
jmp 0xf796
jmp 0xf7ba
movq %rax, %r14
movq -0x68(%rbp), %rdi
cmpq %r15, %rdi
je 0xf7bd
movq -0x58(%rbp), %rsi
jmp 0xf7b0
jmp 0xf718
movq %rax, %r14
jmp 0xf7dc
movq %rax, %r14
movq -0x68(%rbp), %rdi
cmpq %r13, %rdi
je 0xf730
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x4170
movq -0xa8(%rbp), %rdi
leaq -0x98(%rbp), %rax
cmpq %rax, %rdi
je 0xf752
movq -0x98(%rbp), %rsi
incq %rsi
callq 0x4170
movq -0x120(%rbp), %rdi
leaq -0x110(%rbp), %rax
cmpq %rax, %rdi
je 0xf774
movq -0x110(%rbp), %rsi
incq %rsi
callq 0x4170
movq -0x100(%rbp), %rdi
leaq -0xf0(%rbp), %rax
cmpq %rax, %rdi
je 0xf796
movq -0xf0(%rbp), %rsi
incq %rsi
callq 0x4170
movq -0x140(%rbp), %rdi
leaq -0x130(%rbp), %rax
cmpq %rax, %rdi
je 0xf7bd
movq -0x130(%rbp), %rsi
incq %rsi
callq 0x4170
jmp 0xf7bd
movq %rax, %r14
leaq -0x158(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xf7dc
movq -0x158(%rbp), %rsi
incq %rsi
callq 0x4170
movq -0xb8(%rbp), %rax
movq (%rax), %rdi
cmpq -0x148(%rbp), %rdi
je 0xf801
movq -0x148(%rbp), %rax
movq (%rax), %rsi
incq %rsi
callq 0x4170
movq %r14, %rdi
callq 0x4250
nopl (%rax)