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

    int chance = rand() % 40;

    if (chance == 0 || chance == 1)
    {
        //longsword
        this->increaseAtk(1);
        combatMsg += "You forged a Longsword. Atk increased by 1 (Atk: " + std::to_string(this->Atk) + "). ";
    }
    else if (chance == 2)
    {
        //broadsword
        this->increaseAtk(2);
        combatMsg += "You forged a Broadsword. Atk increased by 2 (Atk: " + std::to_string(this->Atk) + "). ";
    }
    else if (chance == 3 || chance == 4)
    {
        //light shield
        this->increaseDef(1);
        combatMsg += "You forged a Light Shield. Def increased by 1 (Def: " + std::to_string(this->Def) + "). ";
    }
    else if (chance == 5)
    {
        //heavy shield
        this->increaseDef(2);
        combatMsg += "You forged a Heavy Shield. Def increased by 2 (Def: " + std::to_string(this->Def) + "). ";
    }

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

    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, %r15
movq %rsi, %rbx
leaq 0x10(%rdi), %rax
movq %rax, -0xc0(%rbp)
movq %rax, (%rdi)
movq $0x0, 0x8(%rdi)
movq %rdi, -0x98(%rbp)
movb $0x0, 0x10(%rdi)
movq (%rdx), %rax
leaq -0x160(%rbp), %rdi
movq %rdx, %rsi
callq *0x28(%rax)
movl 0x8(%rbx), %r14d
movq (%r15), %rax
movq %r15, %rdi
callq *0x10(%rax)
movl %eax, %r12d
callq 0x4060
cltq
imulq $0x66666667, %rax, %rcx # imm = 0x66666667
movq %rcx, %rdx
shrq $0x3f, %rdx
sarq $0x24, %rcx
addl %edx, %ecx
shll $0x3, %ecx
leal (%rcx,%rcx,4), %ecx
subl %ecx, %eax
cmpl $0x1, %eax
movq %rbx, -0x168(%rbp)
movl %r14d, -0x90(%rbp)
movl %r12d, -0x8c(%rbp)
ja 0xf9e1
movl $0x1, %r13d
movq %rbx, %rdi
movl $0x1, %esi
callq 0xb56e
movl 0x8(%rbx), %r12d
movl %r12d, %r14d
negl %r14d
cmovsl %r12d, %r14d
cmpl $0xa, %r14d
jb 0xfb71
movl $0x4, %r13d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %r14d, %ecx
cmpl $0x63, %ecx
jbe 0xfb68
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0xfb6e
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0xfb71
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r13d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0xf99f
addl $-0x3, %r13d
jmp 0xfb71
cmpl $0x2, %eax
jne 0xfa61
movq %rbx, %rdi
movl $0x2, %esi
callq 0xb56e
movl 0x8(%rbx), %r13d
movl %r13d, %r12d
negl %r12d
cmovsl %r13d, %r12d
movl $0x1, %r14d
cmpl $0xa, %r12d
jb 0xfc7e
movl $0x4, %r14d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %r12d, %ecx
cmpl $0x63, %ecx
jbe 0xfc75
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0xfc7b
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0xfc7e
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r14d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0xfa1f
addl $-0x3, %r14d
jmp 0xfc7e
leal -0x3(%rax), %ecx
cmpl $0x1, %ecx
ja 0xfae4
movl $0x1, %r13d
movq %rbx, %rdi
movl $0x1, %esi
callq 0xb578
movl 0xc(%rbx), %r12d
movl %r12d, %r14d
negl %r14d
cmovsl %r12d, %r14d
cmpl $0xa, %r14d
jb 0xfd8b
movl $0x4, %r13d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %r14d, %ecx
cmpl $0x63, %ecx
jbe 0xfd82
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0xfd88
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0xfd8b
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r13d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0xfaa2
addl $-0x3, %r13d
jmp 0xfd8b
cmpl $0x5, %eax
jne 0xffeb
movq %rbx, %rdi
movl $0x2, %esi
callq 0xb578
movl 0xc(%rbx), %r13d
movl %r13d, %r12d
negl %r12d
cmovsl %r13d, %r12d
movl $0x1, %r14d
cmpl $0xa, %r12d
jb 0xfe98
movl $0x4, %r14d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %r12d, %ecx
cmpl $0x63, %ecx
jbe 0xfe8f
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0xfe95
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0xfe98
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r14d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0xfb26
addl $-0x3, %r14d
jmp 0xfe98
addl $-0x2, %r13d
jmp 0xfb71
decl %r13d
shrl $0x1f, %r12d
leal (%r12,%r13), %esi
leaq -0x38(%rbp), %rax
movq %rax, -0x10(%rax)
leaq -0x48(%rbp), %rdi
movl $0x2d, %edx
callq 0x41b0
leaq -0x48(%rbp), %rbx
addq (%rbx), %r12
movq %r12, %rdi
movl %r13d, %esi
movl %r14d, %edx
callq 0xa44c
leaq 0xdeb8(%rip), %rcx      # 0x1da63
movl $0x31, %r8d
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x4190
leaq -0x58(%rbp), %rbx
movq %rbx, -0x10(%rbx)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xfbe1
movq %rdx, -0x68(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x58(%rbp)
jmp 0xfbe9
movupd (%rcx), %xmm0
movupd %xmm0, (%rbx)
movq 0x8(%rax), %rdx
leaq -0x68(%rbp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0xdfea(%rip), %rsi      # 0x1dbf5
callq 0x4280
leaq -0x78(%rbp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xfc38
movq %rdx, -0x88(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x78(%rbp)
jmp 0xfc42
movupd (%rcx), %xmm0
movupd %xmm0, (%r12)
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 -0x98(%rbp), %rdi
callq 0x4080
jmp 0xff97
addl $-0x2, %r14d
jmp 0xfc7e
decl %r14d
shrl $0x1f, %r13d
leal (%r14,%r13), %esi
leaq -0x38(%rbp), %rax
movq %rax, -0x10(%rax)
leaq -0x48(%rbp), %rdi
movl $0x2d, %edx
callq 0x41b0
leaq -0x48(%rbp), %rbx
addq (%rbx), %r13
movq %r13, %rdi
movl %r14d, %esi
movl %r12d, %edx
callq 0xa44c
leaq 0xdddd(%rip), %rcx      # 0x1da95
movl $0x32, %r8d
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x4190
leaq -0x58(%rbp), %rbx
movq %rbx, -0x10(%rbx)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xfcee
movq %rdx, -0x68(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x58(%rbp)
jmp 0xfcf6
movupd (%rcx), %xmm0
movupd %xmm0, (%rbx)
movq 0x8(%rax), %rdx
leaq -0x68(%rbp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0xdedd(%rip), %rsi      # 0x1dbf5
callq 0x4280
leaq -0x78(%rbp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xfd45
movq %rdx, -0x88(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x78(%rbp)
jmp 0xfd4f
movupd (%rcx), %xmm0
movupd %xmm0, (%r12)
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 -0x98(%rbp), %rdi
callq 0x4080
jmp 0xff97
addl $-0x2, %r13d
jmp 0xfd8b
decl %r13d
shrl $0x1f, %r12d
leal (%r12,%r13), %esi
leaq -0x38(%rbp), %rax
movq %rax, -0x10(%rax)
leaq -0x48(%rbp), %rdi
movl $0x2d, %edx
callq 0x41b0
leaq -0x48(%rbp), %rbx
addq (%rbx), %r12
movq %r12, %rdi
movl %r13d, %esi
movl %r14d, %edx
callq 0xa44c
leaq 0xdd03(%rip), %rcx      # 0x1dac8
movl $0x34, %r8d
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x4190
leaq -0x58(%rbp), %rbx
movq %rbx, -0x10(%rbx)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xfdfb
movq %rdx, -0x68(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x58(%rbp)
jmp 0xfe03
movupd (%rcx), %xmm0
movupd %xmm0, (%rbx)
movq 0x8(%rax), %rdx
leaq -0x68(%rbp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0xddd0(%rip), %rsi      # 0x1dbf5
callq 0x4280
leaq -0x78(%rbp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xfe52
movq %rdx, -0x88(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x78(%rbp)
jmp 0xfe5c
movupd (%rcx), %xmm0
movupd %xmm0, (%r12)
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 -0x98(%rbp), %rdi
callq 0x4080
jmp 0xff97
addl $-0x2, %r14d
jmp 0xfe98
decl %r14d
shrl $0x1f, %r13d
leal (%r14,%r13), %esi
leaq -0x38(%rbp), %rax
movq %rax, -0x10(%rax)
leaq -0x48(%rbp), %rdi
movl $0x2d, %edx
callq 0x41b0
leaq -0x48(%rbp), %rbx
addq (%rbx), %r13
movq %r13, %rdi
movl %r14d, %esi
movl %r12d, %edx
callq 0xa44c
leaq 0xdc2b(%rip), %rcx      # 0x1dafd
movl $0x34, %r8d
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x4190
leaq -0x58(%rbp), %rbx
movq %rbx, -0x10(%rbx)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xff08
movq %rdx, -0x68(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x58(%rbp)
jmp 0xff10
movupd (%rcx), %xmm0
movupd %xmm0, (%rbx)
movq 0x8(%rax), %rdx
leaq -0x68(%rbp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0xdcc3(%rip), %rsi      # 0x1dbf5
callq 0x4280
leaq -0x78(%rbp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xff5f
movq %rdx, -0x88(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x78(%rbp)
jmp 0xff69
movupd (%rcx), %xmm0
movupd %xmm0, (%r12)
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 -0x98(%rbp), %rdi
callq 0x4080
movq -0x88(%rbp), %rdi
cmpq %r12, %rdi
je 0xffaf
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x4170
movq -0x68(%rbp), %rdi
cmpq %rbx, %rdi
movl -0x90(%rbp), %r14d
movl -0x8c(%rbp), %r12d
je 0xffd2
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x4170
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0xffeb
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x4170
xorps %xmm0, %xmm0
cvtsi2sd %r12d, %xmm0
movsd 0xd91d(%rip), %xmm1     # 0x1d918
addsd %xmm1, %xmm0
divsd %xmm0, %xmm1
xorps %xmm0, %xmm0
cvtsi2sd %r14d, %xmm0
mulsd %xmm1, %xmm0
callq 0x4040
cvttsd2si %xmm0, %r12d
movq (%r15), %rax
movq %r15, %rdi
movl %r12d, %esi
callq *0x48(%rax)
movl %r12d, %r13d
negl %r13d
cmovsl %r12d, %r13d
movl $0x1, %r14d
cmpl $0xa, %r13d
jb 0x10085
movl $0x4, %r14d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %r13d, %ecx
cmpl $0x63, %ecx
jbe 0x1007c
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x10082
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x10085
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r14d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x10049
addl $-0x3, %r14d
jmp 0x10085
addl $-0x2, %r14d
jmp 0x10085
decl %r14d
shrl $0x1f, %r12d
leal (%r14,%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), %rbx
addq (%rbx), %rdi
movl %r14d, %esi
movl %r13d, %edx
callq 0xa44c
leaq 0xd914(%rip), %rcx      # 0x1d9dc
movl $0x9, %r8d
movq %rbx, %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 0x10107
movq %rdx, -0x100(%rbp)
movq (%rcx), %rdx
movq %rdx, -0xf0(%rbp)
jmp 0x1010f
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 0xd7ec(%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 0x10166
movq %rdx, -0x120(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x110(%rbp)
jmp 0x1016e
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 -0x160(%rbp), %rsi
movq -0x158(%rbp), %rdx
callq 0x4080
leaq -0xa8(%rbp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x101cc
movq %rdx, -0xb8(%rbp)
movq (%rcx), %rdx
movq %rdx, -0xa8(%rbp)
jmp 0x101d4
movupd (%rcx), %xmm0
movupd %xmm0, (%rsi)
movq 0x8(%rax), %rdx
leaq -0xb8(%rbp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0xda99(%rip), %rsi      # 0x1dc92
callq 0x4280
leaq -0x38(%rbp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x10222
movq %rdx, -0x48(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x38(%rbp)
jmp 0x1022a
movupd (%rcx), %xmm0
movupd %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, -0x40(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq (%r15), %rax
movq %r15, %rdi
callq *0x18(%rax)
movl %eax, %r12d
movl %eax, %r14d
negl %r14d
cmovsl %eax, %r14d
movl $0x1, %r13d
cmpl $0xa, %r14d
jb 0x102ad
movl $0x4, %r13d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %r14d, %ecx
cmpl $0x63, %ecx
jbe 0x102a4
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x102aa
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x102ad
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r13d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x10271
addl $-0x3, %r13d
jmp 0x102ad
addl $-0x2, %r13d
jmp 0x102ad
decl %r13d
shrl $0x1f, %r12d
leal (%r12,%r13), %esi
leaq -0xd0(%rbp), %rbx
movq %rbx, -0x10(%rbx)
leaq -0xe0(%rbp), %rdi
movl $0x2d, %edx
callq 0x41b0
movl %r12d, %edi
addq -0xe0(%rbp), %rdi
movl %r13d, %esi
movl %r14d, %edx
callq 0xa44c
movq -0x48(%rbp), %rcx
movq -0x40(%rbp), %r8
movq -0xd8(%rbp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
leaq -0x38(%rbp), %r12
cmpq %r12, %rcx
je 0x1030b
movq -0x38(%rbp), %rdi
movq -0xe0(%rbp), %rsi
cmpq %rdi, %rax
leaq -0xa8(%rbp), %r14
jbe 0x10334
movl $0xf, %edi
cmpq %rbx, %rsi
je 0x1032f
movq -0xd0(%rbp), %rdi
cmpq %rdi, %rax
jbe 0x1033f
leaq -0x48(%rbp), %rdi
callq 0x4080
jmp 0x1034f
leaq -0xe0(%rbp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x4190
leaq -0x58(%rbp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x10370
movq %rsi, -0x68(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x58(%rbp)
jmp 0x10378
movupd (%rcx), %xmm0
movupd %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, -0x60(%rbp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0xd85a(%rip), %rsi      # 0x1dbf5
leaq -0x68(%rbp), %rdi
callq 0x4280
leaq -0x78(%rbp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x103cb
movq %rdx, -0x88(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x78(%rbp)
jmp 0x103d5
movupd (%rcx), %xmm0
movupd %xmm0, (%r13)
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 -0x98(%rbp), %rdi
callq 0x4080
movq -0x88(%rbp), %rdi
cmpq %r13, %rdi
je 0x1041b
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x4170
leaq -0x58(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x10434
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x4170
movq -0xe0(%rbp), %rdi
cmpq %rbx, %rdi
je 0x1044f
movq -0xd0(%rbp), %rsi
incq %rsi
callq 0x4170
movq -0x48(%rbp), %rdi
cmpq %r12, %rdi
movq -0x168(%rbp), %rbx
je 0x1046b
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x4170
movq -0xb8(%rbp), %rdi
cmpq %r14, %rdi
je 0x10486
movq -0xa8(%rbp), %rsi
incq %rsi
callq 0x4170
movq -0x120(%rbp), %rdi
leaq -0x110(%rbp), %rax
cmpq %rax, %rdi
je 0x104a8
movq -0x110(%rbp), %rsi
incq %rsi
callq 0x4170
movq -0x100(%rbp), %rdi
leaq -0xf0(%rbp), %rax
cmpq %rax, %rdi
je 0x104ca
movq -0xf0(%rbp), %rsi
incq %rsi
callq 0x4170
movq -0x140(%rbp), %rdi
leaq -0x130(%rbp), %rax
cmpq %rax, %rdi
je 0x104ec
movq -0x130(%rbp), %rsi
incq %rsi
callq 0x4170
movq (%r15), %rax
movq %r15, %rdi
callq *0x18(%rax)
testl %eax, %eax
jne 0x10762
leaq -0x48(%rbp), %rdi
movq %r12, (%rdi)
movq -0x160(%rbp), %rsi
movq -0x158(%rbp), %rdx
addq %rsi, %rdx
callq 0xa4be
leaq 0xd40b(%rip), %rsi      # 0x1d92c
leaq -0x48(%rbp), %rdi
callq 0x4280
movq (%r15), %rax
movq %r15, %rdi
callq *0x20(%rax)
movl %eax, %r12d
movl %eax, %r14d
negl %r14d
cmovsl %eax, %r14d
movl $0x1, %r13d
cmpl $0xa, %r14d
jb 0x10596
movl $0x4, %r13d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %r14d, %ecx
cmpl $0x63, %ecx
jbe 0x1058d
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x10593
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x10596
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r13d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x1055a
addl $-0x3, %r13d
jmp 0x10596
addl $-0x2, %r13d
jmp 0x10596
decl %r13d
shrl $0x1f, %r12d
leal (%r12,%r13), %esi
leaq -0xb8(%rbp), %rdi
leaq -0xa8(%rbp), %rax
movq %rax, (%rdi)
movl $0x2d, %edx
callq 0x41b0
movl %r12d, %edi
addq -0xb8(%rbp), %rdi
movl %r13d, %esi
movl %r14d, %edx
callq 0xa44c
movq -0x48(%rbp), %rcx
movq -0x40(%rbp), %r8
movq -0xb0(%rbp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
leaq -0x38(%rbp), %r12
cmpq %r12, %rcx
je 0x105f3
movq -0x38(%rbp), %rdi
movq -0xb8(%rbp), %rsi
cmpq %rdi, %rax
leaq -0xa8(%rbp), %r14
leaq -0x78(%rbp), %r13
jbe 0x10620
movl $0xf, %edi
cmpq %r14, %rsi
je 0x1061b
movq -0xa8(%rbp), %rdi
cmpq %rdi, %rax
jbe 0x1062b
leaq -0x48(%rbp), %rdi
callq 0x4080
jmp 0x1063b
leaq -0xb8(%rbp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x4190
leaq -0x58(%rbp), %rsi
movq %rsi, -0x68(%rbp)
movq (%rax), %rdx
leaq 0x10(%rax), %rcx
cmpq %rcx, %rdx
je 0x1065c
movq %rdx, -0x68(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x58(%rbp)
jmp 0x10664
movupd (%rcx), %xmm0
movupd %xmm0, (%rsi)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, -0x60(%rbp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0xccdb(%rip), %rsi      # 0x1d362
leaq -0x68(%rbp), %rdi
callq 0x4280
movq %r13, -0x88(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x106b6
movq %rdx, -0x88(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x78(%rbp)
jmp 0x106c0
movupd (%rcx), %xmm0
movupd %xmm0, (%r13)
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 -0x98(%rbp), %rdi
callq 0x4080
movq -0x88(%rbp), %rdi
cmpq %r13, %rdi
je 0x10706
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x4170
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x1071f
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x4170
movq -0xb8(%rbp), %rdi
cmpq %r14, %rdi
je 0x1073a
movq -0xa8(%rbp), %rsi
incq %rsi
callq 0x4170
movq -0x48(%rbp), %rdi
cmpq %r12, %rdi
je 0x1074f
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x4170
movq (%r15), %rax
movq %r15, %rdi
callq *0x20(%rax)
movq (%rbx), %rcx
movq %rbx, %rdi
movl %eax, %esi
callq *(%rcx)
leaq -0x150(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x10781
movq -0x150(%rbp), %rsi
incq %rsi
callq 0x4170
movq -0x98(%rbp), %rax
addq $0x148, %rsp            # imm = 0x148
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x10834
jmp 0x10851
jmp 0x10872
jmp 0x109b9
jmp 0x10834
jmp 0x10851
jmp 0x10872
jmp 0x109b9
jmp 0x10834
jmp 0x10851
jmp 0x10872
jmp 0x109b9
movq %rax, %r14
movq -0x88(%rbp), %rdi
cmpq %r13, %rdi
je 0x107f3
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x4170
jmp 0x107f3
movq %rax, %r14
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x10811
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x4170
jmp 0x10811
movq %rax, %r14
movq -0xb8(%rbp), %rdi
leaq -0xa8(%rbp), %rax
cmpq %rax, %rdi
je 0x10875
movq -0xa8(%rbp), %rsi
jmp 0x10861
jmp 0x10872
jmp 0x109b9
movq %rax, %r14
movq -0x88(%rbp), %rdi
cmpq %r12, %rdi
je 0x10854
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x4170
jmp 0x10854
movq %rax, %r14
movq -0x68(%rbp), %rdi
cmpq %rbx, %rdi
je 0x10875
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x4170
jmp 0x10875
jmp 0x10872
jmp 0x109b9
movq %rax, %r14
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x109bc
movq -0x38(%rbp), %rsi
jmp 0x109af
movq %rax, %r14
movq -0x88(%rbp), %rdi
cmpq %r13, %rdi
je 0x108af
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x4170
jmp 0x108af
movq %rax, %r14
leaq -0x58(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x108cd
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x4170
jmp 0x108cd
movq %rax, %r14
movq -0xe0(%rbp), %rdi
cmpq %rbx, %rdi
je 0x10916
movq -0xd0(%rbp), %rsi
incq %rsi
callq 0x4170
jmp 0x10916
movq %rax, %r14
jmp 0x1092f
movq %rax, %r14
jmp 0x10951
movq %rax, %r14
jmp 0x10973
movq %rax, %r14
jmp 0x10995
jmp 0x109b9
jmp 0x109b9
movq %rax, %r14
jmp 0x109db
movq %rax, %r14
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x1092f
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x4170
movq -0xb8(%rbp), %rdi
leaq -0xa8(%rbp), %rax
cmpq %rax, %rdi
je 0x10951
movq -0xa8(%rbp), %rsi
incq %rsi
callq 0x4170
movq -0x120(%rbp), %rdi
leaq -0x110(%rbp), %rax
cmpq %rax, %rdi
je 0x10973
movq -0x110(%rbp), %rsi
incq %rsi
callq 0x4170
movq -0x100(%rbp), %rdi
leaq -0xf0(%rbp), %rax
cmpq %rax, %rdi
je 0x10995
movq -0xf0(%rbp), %rsi
incq %rsi
callq 0x4170
movq -0x140(%rbp), %rdi
leaq -0x130(%rbp), %rax
cmpq %rax, %rdi
je 0x109bc
movq -0x130(%rbp), %rsi
incq %rsi
callq 0x4170
jmp 0x109bc
movq %rax, %r14
leaq -0x150(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x109db
movq -0x150(%rbp), %rsi
incq %rsi
callq 0x4170
movq -0x98(%rbp), %rax
movq (%rax), %rdi
cmpq -0xc0(%rbp), %rdi
je 0x10a00
movq -0xc0(%rbp), %rax
movq (%rax), %rsi
incq %rsi
callq 0x4170
movq %r14, %rdi
callq 0x4250