// File: /workspace/github_cpp_makefile_star2_O1/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 0xfaf1
movl $0x1, %r13d
movq %rbx, %rdi
movl $0x1, %esi
callq 0xb630
movl 0x8(%rbx), %r12d
movl %r12d, %r14d
negl %r14d
cmovsl %r12d, %r14d
cmpl $0xa, %r14d
jb 0xfc81
movl $0x4, %r13d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %r14d, %ecx
cmpl $0x63, %ecx
jbe 0xfc78
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0xfc7e
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0xfc81
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r13d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0xfaaf
addl $-0x3, %r13d
jmp 0xfc81
cmpl $0x2, %eax
jne 0xfb71
movq %rbx, %rdi
movl $0x2, %esi
callq 0xb630
movl 0x8(%rbx), %r13d
movl %r13d, %r12d
negl %r12d
cmovsl %r13d, %r12d
movl $0x1, %r14d
cmpl $0xa, %r12d
jb 0xfd8e
movl $0x4, %r14d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %r12d, %ecx
cmpl $0x63, %ecx
jbe 0xfd85
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0xfd8b
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0xfd8e
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r14d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0xfb2f
addl $-0x3, %r14d
jmp 0xfd8e
leal -0x3(%rax), %ecx
cmpl $0x1, %ecx
ja 0xfbf4
movl $0x1, %r13d
movq %rbx, %rdi
movl $0x1, %esi
callq 0xb63a
movl 0xc(%rbx), %r12d
movl %r12d, %r14d
negl %r14d
cmovsl %r12d, %r14d
cmpl $0xa, %r14d
jb 0xfe9b
movl $0x4, %r13d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %r14d, %ecx
cmpl $0x63, %ecx
jbe 0xfe92
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0xfe98
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0xfe9b
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r13d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0xfbb2
addl $-0x3, %r13d
jmp 0xfe9b
cmpl $0x5, %eax
jne 0x100fb
movq %rbx, %rdi
movl $0x2, %esi
callq 0xb63a
movl 0xc(%rbx), %r13d
movl %r13d, %r12d
negl %r12d
cmovsl %r13d, %r12d
movl $0x1, %r14d
cmpl $0xa, %r12d
jb 0xffa8
movl $0x4, %r14d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %r12d, %ecx
cmpl $0x63, %ecx
jbe 0xff9f
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0xffa5
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0xffa8
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r14d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0xfc36
addl $-0x3, %r14d
jmp 0xffa8
addl $-0x2, %r13d
jmp 0xfc81
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 0xa510
leaq 0xdda8(%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 0xfcf1
movq %rdx, -0x68(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x58(%rbp)
jmp 0xfcf9
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 0xdeda(%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 0xfd48
movq %rdx, -0x88(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x78(%rbp)
jmp 0xfd52
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 0x100a7
addl $-0x2, %r14d
jmp 0xfd8e
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 0xa510
leaq 0xdccd(%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 0xfdfe
movq %rdx, -0x68(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x58(%rbp)
jmp 0xfe06
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 0xddcd(%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 0xfe55
movq %rdx, -0x88(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x78(%rbp)
jmp 0xfe5f
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 0x100a7
addl $-0x2, %r13d
jmp 0xfe9b
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 0xa510
leaq 0xdbf3(%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 0xff0b
movq %rdx, -0x68(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x58(%rbp)
jmp 0xff13
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 0xdcc0(%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 0xff62
movq %rdx, -0x88(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x78(%rbp)
jmp 0xff6c
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 0x100a7
addl $-0x2, %r14d
jmp 0xffa8
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 0xa510
leaq 0xdb1b(%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 0x10018
movq %rdx, -0x68(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x58(%rbp)
jmp 0x10020
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 0xdbb3(%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 0x1006f
movq %rdx, -0x88(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x78(%rbp)
jmp 0x10079
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 0x100bf
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x4170
movq -0x68(%rbp), %rdi
cmpq %rbx, %rdi
movl -0x90(%rbp), %r14d
movl -0x8c(%rbp), %r12d
je 0x100e2
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x4170
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x100fb
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x4170
xorps %xmm0, %xmm0
cvtsi2sd %r12d, %xmm0
movsd 0xd80d(%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 0x10195
movl $0x4, %r14d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %r13d, %ecx
cmpl $0x63, %ecx
jbe 0x1018c
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x10192
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x10195
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r14d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x10159
addl $-0x3, %r14d
jmp 0x10195
addl $-0x2, %r14d
jmp 0x10195
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 0xa510
leaq 0xd804(%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 0x10217
movq %rdx, -0x100(%rbp)
movq (%rcx), %rdx
movq %rdx, -0xf0(%rbp)
jmp 0x1021f
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 0xd6dc(%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 0x10276
movq %rdx, -0x120(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x110(%rbp)
jmp 0x1027e
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 0x102dc
movq %rdx, -0xb8(%rbp)
movq (%rcx), %rdx
movq %rdx, -0xa8(%rbp)
jmp 0x102e4
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 0xd989(%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 0x10332
movq %rdx, -0x48(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x38(%rbp)
jmp 0x1033a
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 0x103bd
movl $0x4, %r13d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %r14d, %ecx
cmpl $0x63, %ecx
jbe 0x103b4
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x103ba
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x103bd
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r13d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x10381
addl $-0x3, %r13d
jmp 0x103bd
addl $-0x2, %r13d
jmp 0x103bd
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 0xa510
movq -0x48(%rbp), %rcx
movq -0x40(%rbp), %r8
movq -0xd8(%rbp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %esi
leaq -0x38(%rbp), %r12
cmpq %r12, %rcx
je 0x1041b
movq -0x38(%rbp), %rsi
cmpq %rsi, %rax
leaq -0xa8(%rbp), %r14
jbe 0x10441
movl $0xf, %esi
cmpq %rbx, -0xe0(%rbp)
je 0x1043c
movq -0xd0(%rbp), %rsi
cmpq %rsi, %rax
jbe 0x10453
movq -0xe0(%rbp), %rsi
leaq -0x48(%rbp), %rdi
callq 0x4080
jmp 0x10463
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 0x10484
movq %rsi, -0x68(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x58(%rbp)
jmp 0x1048c
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 0xd746(%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 0x104df
movq %rdx, -0x88(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x78(%rbp)
jmp 0x104e9
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 0x1052f
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x4170
leaq -0x58(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x10548
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x4170
movq -0xe0(%rbp), %rdi
cmpq %rbx, %rdi
je 0x10563
movq -0xd0(%rbp), %rsi
incq %rsi
callq 0x4170
movq -0x48(%rbp), %rdi
cmpq %r12, %rdi
movq -0x168(%rbp), %rbx
je 0x1057f
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x4170
movq -0xb8(%rbp), %rdi
cmpq %r14, %rdi
je 0x1059a
movq -0xa8(%rbp), %rsi
incq %rsi
callq 0x4170
movq -0x120(%rbp), %rdi
leaq -0x110(%rbp), %rax
cmpq %rax, %rdi
je 0x105bc
movq -0x110(%rbp), %rsi
incq %rsi
callq 0x4170
movq -0x100(%rbp), %rdi
leaq -0xf0(%rbp), %rax
cmpq %rax, %rdi
je 0x105de
movq -0xf0(%rbp), %rsi
incq %rsi
callq 0x4170
movq -0x140(%rbp), %rdi
leaq -0x130(%rbp), %rax
cmpq %rax, %rdi
je 0x10600
movq -0x130(%rbp), %rsi
incq %rsi
callq 0x4170
movq (%r15), %rax
movq %r15, %rdi
callq *0x18(%rax)
testl %eax, %eax
jne 0x1087a
leaq -0x48(%rbp), %rdi
movq %r12, (%rdi)
movq -0x160(%rbp), %rsi
movq -0x158(%rbp), %rdx
addq %rsi, %rdx
callq 0xa582
leaq 0xd2f7(%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 0x106aa
movl $0x4, %r13d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %r14d, %ecx
cmpl $0x63, %ecx
jbe 0x106a1
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x106a7
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x106aa
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r13d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x1066e
addl $-0x3, %r13d
jmp 0x106aa
addl $-0x2, %r13d
jmp 0x106aa
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 0xa510
movq -0x48(%rbp), %rcx
movq -0x40(%rbp), %r8
movq -0xb0(%rbp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %esi
leaq -0x38(%rbp), %r12
cmpq %r12, %rcx
je 0x10707
movq -0x38(%rbp), %rsi
cmpq %rsi, %rax
leaq -0xa8(%rbp), %r14
leaq -0x78(%rbp), %r13
jbe 0x10731
movl $0xf, %esi
cmpq %r14, -0xb8(%rbp)
je 0x1072c
movq -0xa8(%rbp), %rsi
cmpq %rsi, %rax
jbe 0x10743
movq -0xb8(%rbp), %rsi
leaq -0x48(%rbp), %rdi
callq 0x4080
jmp 0x10753
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 0x10774
movq %rdx, -0x68(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x58(%rbp)
jmp 0x1077c
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 0xcbc3(%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 0x107ce
movq %rdx, -0x88(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x78(%rbp)
jmp 0x107d8
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 0x1081e
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x4170
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x10837
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x4170
movq -0xb8(%rbp), %rdi
cmpq %r14, %rdi
je 0x10852
movq -0xa8(%rbp), %rsi
incq %rsi
callq 0x4170
movq -0x48(%rbp), %rdi
cmpq %r12, %rdi
je 0x10867
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 0x10899
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 0x1094c
jmp 0x10969
jmp 0x1098a
jmp 0x10ad1
jmp 0x1094c
jmp 0x10969
jmp 0x1098a
jmp 0x10ad1
jmp 0x1094c
jmp 0x10969
jmp 0x1098a
jmp 0x10ad1
movq %rax, %r14
movq -0x88(%rbp), %rdi
cmpq %r13, %rdi
je 0x1090b
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x4170
jmp 0x1090b
movq %rax, %r14
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x10929
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x4170
jmp 0x10929
movq %rax, %r14
movq -0xb8(%rbp), %rdi
leaq -0xa8(%rbp), %rax
cmpq %rax, %rdi
je 0x1098d
movq -0xa8(%rbp), %rsi
jmp 0x10979
jmp 0x1098a
jmp 0x10ad1
movq %rax, %r14
movq -0x88(%rbp), %rdi
cmpq %r12, %rdi
je 0x1096c
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x4170
jmp 0x1096c
movq %rax, %r14
movq -0x68(%rbp), %rdi
cmpq %rbx, %rdi
je 0x1098d
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x4170
jmp 0x1098d
jmp 0x1098a
jmp 0x10ad1
movq %rax, %r14
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x10ad4
movq -0x38(%rbp), %rsi
jmp 0x10ac7
movq %rax, %r14
movq -0x88(%rbp), %rdi
cmpq %r13, %rdi
je 0x109c7
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x4170
jmp 0x109c7
movq %rax, %r14
leaq -0x58(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x109e5
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x4170
jmp 0x109e5
movq %rax, %r14
movq -0xe0(%rbp), %rdi
cmpq %rbx, %rdi
je 0x10a2e
movq -0xd0(%rbp), %rsi
incq %rsi
callq 0x4170
jmp 0x10a2e
movq %rax, %r14
jmp 0x10a47
movq %rax, %r14
jmp 0x10a69
movq %rax, %r14
jmp 0x10a8b
movq %rax, %r14
jmp 0x10aad
jmp 0x10ad1
jmp 0x10ad1
movq %rax, %r14
jmp 0x10af3
movq %rax, %r14
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x10a47
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x4170
movq -0xb8(%rbp), %rdi
leaq -0xa8(%rbp), %rax
cmpq %rax, %rdi
je 0x10a69
movq -0xa8(%rbp), %rsi
incq %rsi
callq 0x4170
movq -0x120(%rbp), %rdi
leaq -0x110(%rbp), %rax
cmpq %rax, %rdi
je 0x10a8b
movq -0x110(%rbp), %rsi
incq %rsi
callq 0x4170
movq -0x100(%rbp), %rdi
leaq -0xf0(%rbp), %rax
cmpq %rax, %rdi
je 0x10aad
movq -0xf0(%rbp), %rsi
incq %rsi
callq 0x4170
movq -0x140(%rbp), %rdi
leaq -0x130(%rbp), %rax
cmpq %rax, %rdi
je 0x10ad4
movq -0x130(%rbp), %rsi
incq %rsi
callq 0x4170
jmp 0x10ad4
movq %rax, %r14
leaq -0x150(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x10af3
movq -0x150(%rbp), %rsi
incq %rsi
callq 0x4170
movq -0x98(%rbp), %rax
movq (%rax), %rdi
cmpq -0xc0(%rbp), %rdi
je 0x10b18
movq -0xc0(%rbp), %rax
movq (%rax), %rsi
incq %rsi
callq 0x4170
movq %r14, %rdi
callq 0x4250