// File: /workspace/github_cpp_makefile_star2_O1/malcolmyeh[P]CC3K/dragon.cc
// Function: Dragon::dealDamage[abi:cxx11](Character*)
std::string Dragon::dealDamage(Character *opponent)
{
    double amount;
    std::string combatMsg;
    std::string attacker = this->race;
    int attack = this->Atk;
    int defense = opponent->getDef();
    if (this->stunned)
    {
        this->stunned = false;
        combatMsg = attacker + " is stunned. ";
        return combatMsg;
    }

    if (this->HP <= 50)
    {
        if (rand() % 2 == 0)
        {
            this->HP += 15;
            combatMsg += "Dragon's magical scales recovers 15 health (HP: " + std::to_string(this->HP) + "). ";
        }
    }

    if (rand() % 2 == 0)
    {
        combatMsg += attacker + "'s attack missed. ";
        return combatMsg;
    }


    amount = ceil((100.0 / (100.0 + defense)) * attack);

    if (rand() % 3 == 0)
    {
        amount *= 1.25;
        opponent->takeDamage((int)amount);
        combatMsg += attacker + " breathes fire, dealing " + std::to_string((int)amount) + " damage to you (HP: " + std::to_string(opponent->getHP()) + "). ";
    }
    else
    {
        opponent->takeDamage((int)amount);
        combatMsg += attacker + " deals " + std::to_string((int)amount) + " damage to you (HP: " + std::to_string(opponent->getHP()) + "). ";
    }

    if (opponent->getHP() == 0)
    {
        combatMsg += "You have been slain.";
    }

    return combatMsg;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x128, %rsp            # imm = 0x128
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r13
leaq 0x10(%rdi), %rax
movq %rax, -0x148(%rbp)
movq %rax, (%rdi)
movq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
leaq -0x128(%rbp), %r14
movq %r14, -0x10(%r14)
movq 0x18(%rsi), %rsi
movq 0x20(%r12), %rdx
addq %rsi, %rdx
leaq -0x138(%rbp), %rdi
callq 0xa582
movl 0x8(%r12), %ebx
movq (%r15), %rax
movq %r15, -0xb8(%rbp)
movq %r15, %rdi
callq *0x10(%rax)
cmpb $0x1, 0x39(%r12)
jne 0x164de
movb $0x0, 0x39(%r12)
leaq -0x40(%rbp), %rbx
movq %rbx, -0x10(%rbx)
movq -0x138(%rbp), %rsi
movq -0x130(%rbp), %rdx
addq %rsi, %rdx
leaq -0x50(%rbp), %rdi
callq 0xa582
leaq 0x74b0(%rip), %rsi      # 0x1d956
leaq -0x50(%rbp), %rdi
callq 0x4280
leaq -0x50(%rbp), %r14
movq %r13, %rdi
movq %r14, %rsi
callq 0x41c0
movq (%r14), %rdi
cmpq %rbx, %rdi
je 0x164d2
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x4170
leaq -0x128(%rbp), %r14
jmp 0x1703b
movl %eax, %r15d
cmpl $0x32, 0x10(%r12)
jg 0x166b9
callq 0x4060
testb $0x1, %al
jne 0x166b9
movq %r13, -0x30(%rbp)
movl 0x10(%r12), %r14d
addl $0xf, %r14d
movl %r14d, 0x10(%r12)
movl %r14d, %r12d
negl %r12d
cmovsl %r14d, %r12d
movl $0x1, %r13d
cmpl $0xa, %r12d
jb 0x1656c
movl $0x4, %r13d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %r12d, %ecx
cmpl $0x63, %ecx
jbe 0x16563
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x16569
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x1656c
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r13d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x16530
addl $-0x3, %r13d
jmp 0x1656c
addl $-0x2, %r13d
jmp 0x1656c
decl %r13d
shrl $0x1f, %r14d
leal (%r14,%r13), %esi
leaq -0x80(%rbp), %rax
movq %rax, -0x10(%rax)
leaq -0x90(%rbp), %rdi
movl $0x2d, %edx
callq 0x41b0
movl %r14d, %edi
leaq -0x90(%rbp), %r14
addq (%r14), %rdi
movl %r13d, %esi
movl %r12d, %edx
callq 0xa510
leaq 0x7814(%rip), %rcx      # 0x1ddc0
movl $0x30, %r8d
movq %r14, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x4190
leaq -0x60(%rbp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
movq -0x30(%rbp), %r13
je 0x165e6
movq %rdx, -0x70(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x60(%rbp)
jmp 0x165ef
movupd (%rcx), %xmm0
movupd %xmm0, (%r14)
movq 0x8(%rax), %rdx
leaq -0x70(%rbp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x75e4(%rip), %rsi      # 0x1dbf5
callq 0x4280
leaq -0x40(%rbp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1663b
movq %rdx, -0x50(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x40(%rbp)
jmp 0x16645
movupd (%rcx), %xmm0
movupd %xmm0, (%r12)
movq 0x8(%rax), %rdx
movq %rdx, -0x48(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq -0x50(%rbp), %rsi
movq -0x48(%rbp), %rdx
movq %r13, %rdi
callq 0x4080
movq -0x50(%rbp), %rdi
cmpq %r12, %rdi
je 0x16681
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x4170
movq -0x70(%rbp), %rdi
cmpq %r14, %rdi
je 0x16696
movq -0x60(%rbp), %rsi
incq %rsi
callq 0x4170
movq -0x90(%rbp), %rdi
leaq -0x80(%rbp), %rax
cmpq %rax, %rdi
leaq -0x128(%rbp), %r14
je 0x166b9
movq -0x80(%rbp), %rsi
incq %rsi
callq 0x4170
callq 0x4060
testb $0x1, %al
jne 0x16722
leaq -0x40(%rbp), %rbx
movq %rbx, -0x10(%rbx)
movq -0x138(%rbp), %rsi
movq -0x130(%rbp), %rdx
addq %rsi, %rdx
leaq -0x50(%rbp), %rdi
callq 0xa582
leaq 0x7279(%rip), %rsi      # 0x1d964
leaq -0x50(%rbp), %rdi
callq 0x4280
movq -0x50(%rbp), %rsi
movq -0x48(%rbp), %rdx
movq %r13, %rdi
callq 0x4080
movq -0x50(%rbp), %rdi
cmpq %rbx, %rdi
je 0x1703b
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x4170
jmp 0x1703b
xorps %xmm0, %xmm0
cvtsi2sd %r15d, %xmm0
movsd 0x71e6(%rip), %xmm1     # 0x1d918
addsd %xmm1, %xmm0
divsd %xmm0, %xmm1
xorps %xmm0, %xmm0
cvtsi2sd %ebx, %xmm0
mulsd %xmm1, %xmm0
callq 0x4040
movsd %xmm0, -0x140(%rbp)
callq 0x4060
imull $0xaaaaaaab, %eax, %eax # imm = 0xAAAAAAAB
addl $0x2aaaaaaa, %eax       # imm = 0x2AAAAAAA
cmpl $0x55555554, %eax       # imm = 0x55555554
movq %r13, -0x30(%rbp)
jbe 0x1682f
cvttsd2si -0x140(%rbp), %r15d
movq -0xb8(%rbp), %rdi
movq (%rdi), %rax
movl %r15d, %esi
callq *0x48(%rax)
leaq -0xa0(%rbp), %rbx
movq %rbx, -0x10(%rbx)
movq -0x138(%rbp), %rsi
movq -0x130(%rbp), %rdx
addq %rsi, %rdx
leaq -0xb0(%rbp), %rdi
callq 0xa582
leaq 0x71be(%rip), %rsi      # 0x1d977
leaq -0xb0(%rbp), %rdi
callq 0x4280
movl %r15d, %r12d
negl %r12d
cmovsl %r15d, %r12d
movl $0x1, %r13d
cmpl $0xa, %r12d
jb 0x16902
movl $0x4, %r13d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %r12d, %ecx
cmpl $0x63, %ecx
jbe 0x168f9
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x168ff
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x16902
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r13d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x167ed
addl $-0x3, %r13d
jmp 0x16902
movsd -0x140(%rbp), %xmm0
mulsd 0x7371(%rip), %xmm0     # 0x1dbb0
cvttsd2si %xmm0, %r15d
movq -0xb8(%rbp), %rdi
movq (%rdi), %rax
movl %r15d, %esi
callq *0x48(%rax)
leaq -0xa0(%rbp), %rbx
movq %rbx, -0x10(%rbx)
movq -0x138(%rbp), %rsi
movq -0x130(%rbp), %rdx
addq %rsi, %rdx
leaq -0xb0(%rbp), %rdi
callq 0xa582
leaq 0x756e(%rip), %rsi      # 0x1ddf1
leaq -0xb0(%rbp), %rdi
callq 0x4280
movl %r15d, %r12d
negl %r12d
cmovsl %r15d, %r12d
movl $0x1, %r13d
cmpl $0xa, %r12d
jb 0x16c32
movl $0x4, %r13d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %r12d, %ecx
cmpl $0x63, %ecx
jbe 0x16c29
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x16c2f
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x16c32
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r13d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x168b7
addl $-0x3, %r13d
jmp 0x16c32
addl $-0x2, %r13d
jmp 0x16902
decl %r13d
shrl $0x1f, %r15d
leal (%r15,%r13), %esi
leaq -0xc8(%rbp), %r14
movq %r14, -0x10(%r14)
leaq -0xd8(%rbp), %rdi
movl $0x2d, %edx
callq 0x41b0
movl %r15d, %edi
addq -0xd8(%rbp), %rdi
movl %r13d, %esi
movl %r12d, %edx
callq 0xa510
movq -0xb0(%rbp), %rcx
movq -0xa8(%rbp), %r8
movq -0xd0(%rbp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %esi
cmpq %rbx, %rcx
je 0x16965
movq -0xa0(%rbp), %rsi
cmpq %rsi, %rax
movq -0xb8(%rbp), %rbx
jbe 0x1698b
movl $0xf, %esi
cmpq %r14, -0xd8(%rbp)
je 0x16986
movq -0xc8(%rbp), %rsi
cmpq %rsi, %rax
jbe 0x169a0
movq -0xd8(%rbp), %rsi
leaq -0xb0(%rbp), %rdi
callq 0x4080
jmp 0x169b0
leaq -0xd8(%rbp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x4190
leaq -0xe8(%rbp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x169da
movq %rsi, -0xf8(%rbp)
movq (%rcx), %rdx
movq %rdx, -0xe8(%rbp)
jmp 0x169e2
movupd (%rcx), %xmm0
movupd %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, -0xf0(%rbp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x6f77(%rip), %rsi      # 0x1d97f
leaq -0xf8(%rbp), %rdi
callq 0x4280
leaq -0x80(%rbp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x16a3b
movq %rdx, -0x90(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x80(%rbp)
jmp 0x16a44
movupd (%rcx), %xmm0
movupd %xmm0, (%r14)
movq 0x8(%rax), %rdx
movq %rdx, -0x88(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x18(%rax)
movl %eax, %r12d
movl %eax, %r15d
negl %r15d
cmovsl %eax, %r15d
movl $0x1, %r13d
cmpl $0xa, %r15d
jb 0x16aca
movl $0x4, %r13d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %r15d, %ecx
cmpl $0x63, %ecx
jbe 0x16ac1
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x16ac7
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x16aca
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r13d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x16a8e
addl $-0x3, %r13d
jmp 0x16aca
addl $-0x2, %r13d
jmp 0x16aca
decl %r13d
shrl $0x1f, %r12d
leal (%r12,%r13), %esi
leaq -0x108(%rbp), %rbx
movq %rbx, -0x10(%rbx)
leaq -0x118(%rbp), %rdi
movl $0x2d, %edx
callq 0x41b0
movl %r12d, %edi
addq -0x118(%rbp), %rdi
movl %r13d, %esi
movl %r15d, %edx
callq 0xa510
movq -0x90(%rbp), %rcx
movq -0x88(%rbp), %r8
movq -0x110(%rbp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %esi
cmpq %r14, %rcx
je 0x16b2a
movq -0x80(%rbp), %rsi
cmpq %rsi, %rax
movq -0x30(%rbp), %r13
movq -0xb8(%rbp), %r15
jbe 0x16b54
movl $0xf, %esi
cmpq %rbx, -0x118(%rbp)
je 0x16b4f
movq -0x108(%rbp), %rsi
cmpq %rsi, %rax
jbe 0x16b69
movq -0x118(%rbp), %rsi
leaq -0x90(%rbp), %rdi
callq 0x4080
jmp 0x16b79
leaq -0x118(%rbp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x4190
leaq -0x60(%rbp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x16b9a
movq %rsi, -0x70(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x60(%rbp)
jmp 0x16ba2
movupd (%rcx), %xmm0
movupd %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, -0x68(%rbp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x7030(%rip), %rsi      # 0x1dbf5
leaq -0x70(%rbp), %rdi
callq 0x4280
leaq -0x40(%rbp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x16bf3
movq %rdx, -0x50(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x40(%rbp)
jmp 0x16bfd
movupd (%rcx), %xmm0
movupd %xmm0, (%r12)
movq 0x8(%rax), %rdx
movq %rdx, -0x48(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq -0x50(%rbp), %rsi
movq -0x48(%rbp), %rdx
movq %r13, %rdi
callq 0x4080
jmp 0x16f54
addl $-0x2, %r13d
jmp 0x16c32
decl %r13d
shrl $0x1f, %r15d
leal (%r15,%r13), %esi
leaq -0xc8(%rbp), %r14
movq %r14, -0x10(%r14)
leaq -0xd8(%rbp), %rdi
movl $0x2d, %edx
callq 0x41b0
movl %r15d, %edi
addq -0xd8(%rbp), %rdi
movl %r13d, %esi
movl %r12d, %edx
callq 0xa510
movq -0xb0(%rbp), %rcx
movq -0xa8(%rbp), %r8
movq -0xd0(%rbp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %esi
cmpq %rbx, %rcx
je 0x16c95
movq -0xa0(%rbp), %rsi
cmpq %rsi, %rax
movq -0xb8(%rbp), %rbx
jbe 0x16cbb
movl $0xf, %esi
cmpq %r14, -0xd8(%rbp)
je 0x16cb6
movq -0xc8(%rbp), %rsi
cmpq %rsi, %rax
jbe 0x16cd0
movq -0xd8(%rbp), %rsi
leaq -0xb0(%rbp), %rdi
callq 0x4080
jmp 0x16ce0
leaq -0xd8(%rbp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x4190
leaq -0xe8(%rbp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x16d0a
movq %rsi, -0xf8(%rbp)
movq (%rcx), %rdx
movq %rdx, -0xe8(%rbp)
jmp 0x16d12
movupd (%rcx), %xmm0
movupd %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, -0xf0(%rbp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x6c47(%rip), %rsi      # 0x1d97f
leaq -0xf8(%rbp), %rdi
callq 0x4280
leaq -0x80(%rbp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x16d6b
movq %rdx, -0x90(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x80(%rbp)
jmp 0x16d74
movupd (%rcx), %xmm0
movupd %xmm0, (%r14)
movq 0x8(%rax), %rdx
movq %rdx, -0x88(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x18(%rax)
movl %eax, %r12d
movl %eax, %r15d
negl %r15d
cmovsl %eax, %r15d
movl $0x1, %r13d
cmpl $0xa, %r15d
jb 0x16dfa
movl $0x4, %r13d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %r15d, %ecx
cmpl $0x63, %ecx
jbe 0x16df1
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x16df7
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x16dfa
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r13d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x16dbe
addl $-0x3, %r13d
jmp 0x16dfa
addl $-0x2, %r13d
jmp 0x16dfa
decl %r13d
shrl $0x1f, %r12d
leal (%r12,%r13), %esi
leaq -0x108(%rbp), %rbx
movq %rbx, -0x10(%rbx)
leaq -0x118(%rbp), %rdi
movl $0x2d, %edx
callq 0x41b0
movl %r12d, %edi
addq -0x118(%rbp), %rdi
movl %r13d, %esi
movl %r15d, %edx
callq 0xa510
movq -0x90(%rbp), %rcx
movq -0x88(%rbp), %r8
movq -0x110(%rbp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %esi
cmpq %r14, %rcx
je 0x16e5a
movq -0x80(%rbp), %rsi
cmpq %rsi, %rax
movq -0x30(%rbp), %r13
movq -0xb8(%rbp), %r15
jbe 0x16e84
movl $0xf, %esi
cmpq %rbx, -0x118(%rbp)
je 0x16e7f
movq -0x108(%rbp), %rsi
cmpq %rsi, %rax
jbe 0x16e99
movq -0x118(%rbp), %rsi
leaq -0x90(%rbp), %rdi
callq 0x4080
jmp 0x16ea9
leaq -0x118(%rbp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x4190
leaq -0x60(%rbp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x16eca
movq %rsi, -0x70(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x60(%rbp)
jmp 0x16ed2
movupd (%rcx), %xmm0
movupd %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, -0x68(%rbp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x6d00(%rip), %rsi      # 0x1dbf5
leaq -0x70(%rbp), %rdi
callq 0x4280
leaq -0x40(%rbp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x16f23
movq %rdx, -0x50(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x40(%rbp)
jmp 0x16f2d
movupd (%rcx), %xmm0
movupd %xmm0, (%r12)
movq 0x8(%rax), %rdx
movq %rdx, -0x48(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq -0x50(%rbp), %rsi
movq -0x48(%rbp), %rdx
movq %r13, %rdi
callq 0x4080
movq -0x50(%rbp), %rdi
cmpq %r12, %rdi
je 0x16f69
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x4170
leaq -0x60(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x16f82
movq -0x60(%rbp), %rsi
incq %rsi
callq 0x4170
movq -0x118(%rbp), %rdi
cmpq %rbx, %rdi
je 0x16f9d
movq -0x108(%rbp), %rsi
incq %rsi
callq 0x4170
movq -0x90(%rbp), %rdi
cmpq %r14, %rdi
leaq -0xa0(%rbp), %rbx
je 0x16fbc
movq -0x80(%rbp), %rsi
incq %rsi
callq 0x4170
leaq -0xe8(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
leaq -0x128(%rbp), %r14
je 0x16fe2
movq -0xe8(%rbp), %rsi
incq %rsi
callq 0x4170
movq -0xd8(%rbp), %rdi
leaq -0xc8(%rbp), %rax
cmpq %rax, %rdi
je 0x17004
movq -0xc8(%rbp), %rsi
incq %rsi
callq 0x4170
movq -0xb0(%rbp), %rdi
cmpq %rbx, %rdi
je 0x1701f
movq -0xa0(%rbp), %rsi
incq %rsi
callq 0x4170
movq (%r15), %rax
movq %r15, %rdi
callq *0x18(%rax)
testl %eax, %eax
jne 0x1703b
leaq 0x6961(%rip), %rsi      # 0x1d994
movq %r13, %rdi
callq 0x4280
movq -0x138(%rbp), %rdi
cmpq %r14, %rdi
je 0x17056
movq -0x128(%rbp), %rsi
incq %rsi
callq 0x4170
movq %r13, %rax
addq $0x128, %rsp            # imm = 0x128
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x170e9
jmp 0x17103
jmp 0x17121
jmp 0x17141
jmp 0x17146
jmp 0x1714b
jmp 0x17153
jmp 0x17220
movq %rax, %r15
movq -0x50(%rbp), %rdi
cmpq %r12, %rdi
je 0x170ad
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x4170
jmp 0x170ad
movq %rax, %r15
movq -0x70(%rbp), %rdi
cmpq %r14, %rdi
je 0x170c7
movq -0x60(%rbp), %rsi
incq %rsi
callq 0x4170
jmp 0x170c7
movq %rax, %r15
movq -0x90(%rbp), %rdi
leaq -0x80(%rbp), %rax
cmpq %rax, %rdi
je 0x17223
movq -0x80(%rbp), %rsi
jmp 0x17207
jmp 0x17220
movq %rax, %r15
movq -0x50(%rbp), %rdi
cmpq %r12, %rdi
je 0x17106
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x4170
jmp 0x17106
movq %rax, %r15
leaq -0x60(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x17124
movq -0x60(%rbp), %rsi
incq %rsi
callq 0x4170
jmp 0x17124
movq %rax, %r15
movq -0x118(%rbp), %rdi
cmpq %rbx, %rdi
je 0x1717e
movq -0x108(%rbp), %rsi
incq %rsi
callq 0x4170
jmp 0x1717e
movq %rax, %r15
jmp 0x17196
movq %rax, %r15
jmp 0x171b5
movq %rax, %r15
jmp 0x171d7
movq %rax, %r15
movq -0xb0(%rbp), %rdi
cmpq %rbx, %rdi
jne 0x171ea
jmp 0x17223
jmp 0x17220
jmp 0x1717b
jmp 0x171f3
jmp 0x171f3
jmp 0x1721c
movq %rax, %r15
movq -0x90(%rbp), %rdi
cmpq %r14, %rdi
je 0x17196
movq -0x80(%rbp), %rsi
incq %rsi
callq 0x4170
leaq -0xe8(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x171b5
movq -0xe8(%rbp), %rsi
incq %rsi
callq 0x4170
movq -0xd8(%rbp), %rdi
leaq -0xc8(%rbp), %rax
cmpq %rax, %rdi
je 0x171d7
movq -0xc8(%rbp), %rsi
incq %rsi
callq 0x4170
movq -0xb0(%rbp), %rdi
leaq -0xa0(%rbp), %rax
cmpq %rax, %rdi
je 0x17223
movq -0xa0(%rbp), %rsi
jmp 0x17207
movq %r13, -0x30(%rbp)
movq %rax, %r15
movq -0x50(%rbp), %rdi
cmpq %rbx, %rdi
je 0x17223
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x4170
jmp 0x17223
jmp 0x1721c
movq %r13, -0x30(%rbp)
movq %rax, %r15
jmp 0x17245
movq %r13, -0x30(%rbp)
movq %rax, %r15
movq -0x138(%rbp), %rdi
leaq -0x128(%rbp), %rax
cmpq %rax, %rdi
je 0x17245
movq -0x128(%rbp), %rsi
incq %rsi
callq 0x4170
movq -0x30(%rbp), %rax
movq (%rax), %rdi
cmpq -0x148(%rbp), %rdi
je 0x17267
movq -0x148(%rbp), %rax
movq (%rax), %rsi
incq %rsi
callq 0x4170
movq %r15, %rdi
callq 0x4250
nop