// File: /workspace/github_cpp_makefile_star2_O3/malcolmyeh[P]CC3K/phoenix.cc
// Function: Phoenix::dealDamage[abi:cxx11](Character*)
std::string Phoenix::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 (rand() % 2 == 0)
    {
        combatMsg = attacker + "'s attack missed. ";
        return combatMsg;
    }
    amount = ceil((100.0 / (100.0 + defense)) * attack);

    if (rand() % 5 == 0)
    {
        //rebirth
        opponent->takeDamage((int)amount);
        combatMsg = attacker + " deals " + std::to_string((int)amount) + " damage to you (HP: " + std::to_string(opponent->getHP()) + "). ";
        combatMsg += "Phoenix consumes itself in fire and is reborn (HP: 50). ";
        this->HP = 50;
    }
    else if (rand() % 5 == 1 || rand() % 5 == 2)
    {
        //critical strike
        amount *= 1.25;
        opponent->takeDamage((int)amount);
        combatMsg = attacker + " unleashes its fire energy, 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 $0x118, %rsp            # imm = 0x118
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x10(%rdi), %rax
movq %rax, -0x140(%rbp)
movq %rax, (%rdi)
movq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
leaq -0x120(%rbp), %r13
movq %r13, -0x10(%r13)
movq 0x18(%rsi), %rsi
movq 0x20(%r15), %rdx
addq %rsi, %rdx
leaq -0x130(%rbp), %rdi
callq 0xa4be
movl 0x8(%r15), %r12d
movq (%r14), %rax
movq %r14, -0xf0(%rbp)
movq %r14, %rdi
callq *0x10(%rax)
cmpb $0x1, 0x39(%r15)
jne 0x11878
movb $0x0, 0x39(%r15)
leaq -0x100(%rbp), %r15
movq %r15, -0x10(%r15)
movq -0x130(%rbp), %rsi
movq -0x128(%rbp), %rdx
addq %rsi, %rdx
leaq -0x110(%rbp), %rdi
callq 0xa4be
leaq 0xc0ec(%rip), %rsi      # 0x1d956
leaq -0x110(%rbp), %rdi
callq 0x4280
jmp 0x118bf
movl %eax, %r14d
callq 0x4060
testb $0x1, %al
jne 0x118f1
leaq -0x100(%rbp), %r15
movq %r15, -0x10(%r15)
movq -0x130(%rbp), %rsi
movq -0x128(%rbp), %rdx
addq %rsi, %rdx
leaq -0x110(%rbp), %rdi
callq 0xa4be
leaq 0xc0b1(%rip), %rsi      # 0x1d964
leaq -0x110(%rbp), %rdi
callq 0x4280
leaq -0x110(%rbp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x41c0
movq (%r14), %rdi
cmpq %r15, %rdi
je 0x1268a
movq -0x100(%rbp), %rsi
incq %rsi
callq 0x4170
jmp 0x1268a
cvtsi2sd %r14d, %xmm0
movsd 0xc01a(%rip), %xmm1     # 0x1d918
addsd %xmm1, %xmm0
divsd %xmm0, %xmm1
xorps %xmm0, %xmm0
cvtsi2sd %r12d, %xmm0
mulsd %xmm1, %xmm0
callq 0x4040
movsd %xmm0, -0x138(%rbp)
callq 0x4060
imull $0xcccccccd, %eax, %eax # imm = 0xCCCCCCCD
addl $0x19999999, %eax       # imm = 0x19999999
cmpl $0x33333332, %eax       # imm = 0x33333332
jbe 0x11a4c
callq 0x4060
cltq
imulq $0x66666667, %rax, %rcx # imm = 0x66666667
movq %rcx, %rdx
shrq $0x3f, %rdx
sarq $0x21, %rcx
addl %edx, %ecx
leal (%rcx,%rcx,4), %ecx
subl %ecx, %eax
cmpl $0x1, %eax
movq -0xf0(%rbp), %r14
je 0x1198f
callq 0x4060
cltq
imulq $0x66666667, %rax, %rcx # imm = 0x66666667
movq %rcx, %rdx
shrq $0x3f, %rdx
sarq $0x21, %rcx
addl %edx, %ecx
leal (%rcx,%rcx,4), %ecx
subl %ecx, %eax
cmpl $0x2, %eax
jne 0x11b01
movsd -0x138(%rbp), %xmm0
mulsd 0xc211(%rip), %xmm0     # 0x1dbb0
cvttsd2si %xmm0, %r15d
movq (%r14), %rax
movq %r14, %rdi
movl %r15d, %esi
callq *0x48(%rax)
leaq -0x38(%rbp), %r13
movq %r13, -0x10(%r13)
movq -0x130(%rbp), %rsi
movq -0x128(%rbp), %rdx
addq %rsi, %rdx
leaq -0x48(%rbp), %rdi
callq 0xa4be
leaq 0xc220(%rip), %rsi      # 0x1dbf9
leaq -0x48(%rbp), %rdi
callq 0x4280
movl %r15d, %r12d
negl %r12d
cmovsl %r15d, %r12d
movl $0x1, %r14d
cmpl $0xa, %r12d
jb 0x11bbb
movl $0x4, %r14d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %r12d, %ecx
cmpl $0x63, %ecx
jbe 0x11bb2
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x11bb8
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x11bbb
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r14d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x11a0a
addl $-0x3, %r14d
jmp 0x11bbb
cvttsd2si -0x138(%rbp), %r12d
movq -0xf0(%rbp), %rdi
movq (%rdi), %rax
movl %r12d, %esi
callq *0x48(%rax)
leaq -0x38(%rbp), %rax
movq %rax, -0x10(%rax)
movq -0x130(%rbp), %rsi
movq -0x128(%rbp), %rdx
addq %rsi, %rdx
leaq -0x48(%rbp), %rdi
callq 0xa4be
leaq 0xbee9(%rip), %rsi      # 0x1d977
leaq -0x48(%rbp), %rdi
callq 0x4280
movl %r12d, %r13d
negl %r13d
cmovsl %r12d, %r13d
movl $0x1, %r14d
cmpl $0xa, %r13d
jb 0x11e7d
movl $0x4, %r14d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %r13d, %ecx
cmpl $0x63, %ecx
jbe 0x11e74
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x11e7a
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x11e7d
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r14d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x11abf
addl $-0x3, %r14d
jmp 0x11e7d
cvttsd2si -0x138(%rbp), %r15d
movq (%r14), %rax
movq %r14, %rdi
movl %r15d, %esi
callq *0x48(%rax)
leaq -0x38(%rbp), %r13
movq %r13, -0x10(%r13)
movq -0x130(%rbp), %rsi
movq -0x128(%rbp), %rdx
addq %rsi, %rdx
leaq -0x48(%rbp), %rdi
callq 0xa4be
leaq 0xbe38(%rip), %rsi      # 0x1d977
leaq -0x48(%rbp), %rdi
callq 0x4280
movl %r15d, %r12d
negl %r12d
cmovsl %r15d, %r12d
movl $0x1, %r14d
cmpl $0xa, %r12d
jb 0x1228f
movl $0x4, %r14d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %r12d, %ecx
cmpl $0x63, %ecx
jbe 0x12286
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x1228c
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x1228f
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r14d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x11b70
addl $-0x3, %r14d
jmp 0x1228f
addl $-0x2, %r14d
jmp 0x11bbb
decl %r14d
shrl $0x1f, %r15d
leal (%r14,%r15), %esi
leaq -0x78(%rbp), %rax
movq %rax, -0x10(%rax)
leaq -0x88(%rbp), %rdi
movl $0x2d, %edx
callq 0x41b0
movl %r15d, %edi
addq -0x88(%rbp), %rdi
movl %r14d, %esi
movl %r12d, %edx
callq 0xa44c
movq -0x48(%rbp), %rcx
movq -0x40(%rbp), %r8
movq -0x80(%rbp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
cmpq %r13, %rcx
je 0x11c0f
movq -0x38(%rbp), %rdi
movq -0x88(%rbp), %rsi
cmpq %rdi, %rax
movq -0xf0(%rbp), %r14
jbe 0x11c39
movl $0xf, %edi
leaq -0x78(%rbp), %r9
cmpq %r9, %rsi
je 0x11c34
movq -0x78(%rbp), %rdi
cmpq %rdi, %rax
jbe 0x11c44
leaq -0x48(%rbp), %rdi
callq 0x4080
jmp 0x11c54
leaq -0x88(%rbp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x4190
leaq -0x98(%rbp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x11c7e
movq %rsi, -0xa8(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x98(%rbp)
jmp 0x11c86
movupd (%rcx), %xmm0
movupd %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, -0xa0(%rbp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0xbcd3(%rip), %rsi      # 0x1d97f
leaq -0xa8(%rbp), %rdi
callq 0x4280
leaq -0xb8(%rbp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x11ce8
movq %rsi, %r13
movq %rdx, -0xc8(%rbp)
movq (%rcx), %rdx
movq %rdx, -0xb8(%rbp)
jmp 0x11cf3
movupd (%rcx), %xmm0
movq %rsi, %r13
movupd %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, -0xc0(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq (%r14), %rax
movq %r14, %rdi
callq *0x18(%rax)
movl %eax, %r12d
movl %eax, %r15d
negl %r15d
cmovsl %eax, %r15d
movl $0x1, %r14d
cmpl $0xa, %r15d
jb 0x11d79
movl $0x4, %r14d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %r15d, %ecx
cmpl $0x63, %ecx
jbe 0x11d70
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x11d76
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x11d79
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r14d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x11d3d
addl $-0x3, %r14d
jmp 0x11d79
addl $-0x2, %r14d
jmp 0x11d79
decl %r14d
shrl $0x1f, %r12d
leal (%r14,%r12), %esi
leaq -0x58(%rbp), %rax
movq %rax, -0x10(%rax)
leaq -0x68(%rbp), %rdi
movl $0x2d, %edx
callq 0x41b0
movl %r12d, %edi
addq -0x68(%rbp), %rdi
movl %r14d, %esi
movl %r15d, %edx
callq 0xa44c
movq -0xc8(%rbp), %rcx
movq -0xc0(%rbp), %r8
movq -0x60(%rbp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
cmpq %r13, %rcx
je 0x11dd0
movq -0xb8(%rbp), %rdi
movq -0x68(%rbp), %rsi
cmpq %rdi, %rax
jbe 0x11df0
movl $0xf, %edi
leaq -0x58(%rbp), %r9
cmpq %r9, %rsi
je 0x11deb
movq -0x58(%rbp), %rdi
cmpq %rdi, %rax
jbe 0x11dfe
leaq -0xc8(%rbp), %rdi
callq 0x4080
jmp 0x11e0b
leaq -0x68(%rbp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x4190
leaq -0xd8(%rbp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x11e35
movq %rsi, -0xe8(%rbp)
movq (%rcx), %rdx
movq %rdx, -0xd8(%rbp)
jmp 0x11e3d
movupd (%rcx), %xmm0
movupd %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, -0xe0(%rbp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0xbd92(%rip), %rsi      # 0x1dbf5
leaq -0xe8(%rbp), %rdi
callq 0x4280
jmp 0x12543
addl $-0x2, %r14d
jmp 0x11e7d
decl %r14d
shrl $0x1f, %r12d
leal (%r14,%r12), %esi
leaq -0x78(%rbp), %rax
movq %rax, -0x10(%rax)
leaq -0x88(%rbp), %rdi
movl $0x2d, %edx
callq 0x41b0
movl %r12d, %edi
addq -0x88(%rbp), %rdi
movl %r14d, %esi
movl %r13d, %edx
callq 0xa44c
movq -0x48(%rbp), %rcx
movq -0x40(%rbp), %r8
movq -0x80(%rbp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
leaq -0x38(%rbp), %rsi
cmpq %rsi, %rcx
je 0x11ed5
movq -0x38(%rbp), %rdi
movq -0x88(%rbp), %rsi
cmpq %rdi, %rax
movq -0xf0(%rbp), %r14
jbe 0x11eff
movl $0xf, %edi
leaq -0x78(%rbp), %r9
cmpq %r9, %rsi
je 0x11efa
movq -0x78(%rbp), %rdi
cmpq %rdi, %rax
jbe 0x11f0a
leaq -0x48(%rbp), %rdi
callq 0x4080
jmp 0x11f1a
leaq -0x88(%rbp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x4190
leaq -0x98(%rbp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x11f44
movq %rsi, -0xa8(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x98(%rbp)
jmp 0x11f4c
movupd (%rcx), %xmm0
movupd %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, -0xa0(%rbp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0xba0d(%rip), %rsi      # 0x1d97f
leaq -0xa8(%rbp), %rdi
callq 0x4280
leaq -0xb8(%rbp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x11fab
movq %rdx, -0xc8(%rbp)
movq (%rcx), %rdx
movq %rdx, -0xb8(%rbp)
jmp 0x11fb3
movupd (%rcx), %xmm0
movupd %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, -0xc0(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq (%r14), %rax
movq %r14, %rdi
callq *0x18(%rax)
movl %eax, %r13d
movl %eax, %r12d
negl %r12d
cmovsl %eax, %r12d
movl $0x1, %r14d
cmpl $0xa, %r12d
jb 0x12039
movl $0x4, %r14d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %r12d, %ecx
cmpl $0x63, %ecx
jbe 0x12030
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x12036
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x12039
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r14d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x11ffd
addl $-0x3, %r14d
jmp 0x12039
addl $-0x2, %r14d
jmp 0x12039
decl %r14d
shrl $0x1f, %r13d
leal (%r14,%r13), %esi
leaq -0x58(%rbp), %rax
movq %rax, -0x10(%rax)
leaq -0x68(%rbp), %rdi
movl $0x2d, %edx
callq 0x41b0
movl %r13d, %edi
addq -0x68(%rbp), %rdi
movl %r14d, %esi
movl %r12d, %edx
callq 0xa44c
movq -0xc8(%rbp), %rcx
movq -0xc0(%rbp), %r8
movq -0x60(%rbp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
leaq -0xb8(%rbp), %rsi
cmpq %rsi, %rcx
je 0x12097
movq -0xb8(%rbp), %rdi
movq -0x68(%rbp), %rsi
cmpq %rdi, %rax
leaq -0x120(%rbp), %r13
jbe 0x120be
movl $0xf, %edi
leaq -0x58(%rbp), %r9
cmpq %r9, %rsi
je 0x120b9
movq -0x58(%rbp), %rdi
cmpq %rdi, %rax
jbe 0x120cc
leaq -0xc8(%rbp), %rdi
callq 0x4080
jmp 0x120d9
leaq -0x68(%rbp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x4190
leaq -0xd8(%rbp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x12103
movq %rsi, -0xe8(%rbp)
movq (%rcx), %rdx
movq %rdx, -0xd8(%rbp)
jmp 0x1210b
movupd (%rcx), %xmm0
movupd %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, -0xe0(%rbp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0xbac4(%rip), %rsi      # 0x1dbf5
leaq -0xe8(%rbp), %rdi
callq 0x4280
leaq -0x100(%rbp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1216b
movq %rdx, -0x110(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x100(%rbp)
jmp 0x12175
movupd (%rcx), %xmm0
movupd %xmm0, (%r12)
movq 0x8(%rax), %rdx
leaq -0x110(%rbp), %r14
movq %rdx, 0x8(%r14)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x41c0
movq (%r14), %rdi
cmpq %r12, %rdi
je 0x121b5
movq -0x100(%rbp), %rsi
incq %rsi
callq 0x4170
leaq -0xd8(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x121d4
movq -0xd8(%rbp), %rsi
incq %rsi
callq 0x4170
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x121ed
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x4170
movq -0xc8(%rbp), %rdi
leaq -0xb8(%rbp), %rax
cmpq %rax, %rdi
je 0x1220f
movq -0xb8(%rbp), %rsi
incq %rsi
callq 0x4170
leaq -0x98(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1222e
movq -0x98(%rbp), %rsi
incq %rsi
callq 0x4170
movq -0x88(%rbp), %rdi
leaq -0x78(%rbp), %rax
cmpq %rax, %rdi
je 0x1224a
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x4170
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x12263
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x4170
leaq 0xb956(%rip), %rsi      # 0x1dbc0
movq %rbx, %rdi
callq 0x4280
movl $0x32, 0x10(%r15)
movq -0xf0(%rbp), %r14
jmp 0x1266e
addl $-0x2, %r14d
jmp 0x1228f
decl %r14d
shrl $0x1f, %r15d
leal (%r14,%r15), %esi
leaq -0x78(%rbp), %rax
movq %rax, -0x10(%rax)
leaq -0x88(%rbp), %rdi
movl $0x2d, %edx
callq 0x41b0
movl %r15d, %edi
addq -0x88(%rbp), %rdi
movl %r14d, %esi
movl %r12d, %edx
callq 0xa44c
movq -0x48(%rbp), %rcx
movq -0x40(%rbp), %r8
movq -0x80(%rbp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
cmpq %r13, %rcx
je 0x122e3
movq -0x38(%rbp), %rdi
movq -0x88(%rbp), %rsi
cmpq %rdi, %rax
movq -0xf0(%rbp), %r14
jbe 0x1230d
movl $0xf, %edi
leaq -0x78(%rbp), %r9
cmpq %r9, %rsi
je 0x12308
movq -0x78(%rbp), %rdi
cmpq %rdi, %rax
jbe 0x12318
leaq -0x48(%rbp), %rdi
callq 0x4080
jmp 0x12328
leaq -0x88(%rbp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x4190
leaq -0x98(%rbp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x12352
movq %rsi, -0xa8(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x98(%rbp)
jmp 0x1235a
movupd (%rcx), %xmm0
movupd %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, -0xa0(%rbp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0xb5ff(%rip), %rsi      # 0x1d97f
leaq -0xa8(%rbp), %rdi
callq 0x4280
leaq -0xb8(%rbp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x123bc
movq %rsi, %r13
movq %rdx, -0xc8(%rbp)
movq (%rcx), %rdx
movq %rdx, -0xb8(%rbp)
jmp 0x123c7
movupd (%rcx), %xmm0
movq %rsi, %r13
movupd %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, -0xc0(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq (%r14), %rax
movq %r14, %rdi
callq *0x18(%rax)
movl %eax, %r12d
movl %eax, %r15d
negl %r15d
cmovsl %eax, %r15d
movl $0x1, %r14d
cmpl $0xa, %r15d
jb 0x1244d
movl $0x4, %r14d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %r15d, %ecx
cmpl $0x63, %ecx
jbe 0x12444
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x1244a
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x1244d
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r14d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x12411
addl $-0x3, %r14d
jmp 0x1244d
addl $-0x2, %r14d
jmp 0x1244d
decl %r14d
shrl $0x1f, %r12d
leal (%r14,%r12), %esi
leaq -0x58(%rbp), %rax
movq %rax, -0x10(%rax)
leaq -0x68(%rbp), %rdi
movl $0x2d, %edx
callq 0x41b0
movl %r12d, %edi
addq -0x68(%rbp), %rdi
movl %r14d, %esi
movl %r15d, %edx
callq 0xa44c
movq -0xc8(%rbp), %rcx
movq -0xc0(%rbp), %r8
movq -0x60(%rbp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
cmpq %r13, %rcx
je 0x124a4
movq -0xb8(%rbp), %rdi
movq -0x68(%rbp), %rsi
cmpq %rdi, %rax
jbe 0x124c4
movl $0xf, %edi
leaq -0x58(%rbp), %r9
cmpq %r9, %rsi
je 0x124bf
movq -0x58(%rbp), %rdi
cmpq %rdi, %rax
jbe 0x124d2
leaq -0xc8(%rbp), %rdi
callq 0x4080
jmp 0x124df
leaq -0x68(%rbp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x4190
leaq -0xd8(%rbp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x12509
movq %rsi, -0xe8(%rbp)
movq (%rcx), %rdx
movq %rdx, -0xd8(%rbp)
jmp 0x12511
movupd (%rcx), %xmm0
movupd %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, -0xe0(%rbp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0xb6be(%rip), %rsi      # 0x1dbf5
leaq -0xe8(%rbp), %rdi
callq 0x4280
leaq -0x100(%rbp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x12570
movq %rdx, -0x110(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x100(%rbp)
jmp 0x12579
movupd (%rcx), %xmm0
movupd %xmm0, (%r15)
movq 0x8(%rax), %rdx
leaq -0x110(%rbp), %r14
movq %rdx, 0x8(%r14)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x41c0
movq (%r14), %rdi
cmpq %r15, %rdi
je 0x125b9
movq -0x100(%rbp), %rsi
incq %rsi
callq 0x4170
leaq -0xd8(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
movq -0xf0(%rbp), %r14
je 0x125df
movq -0xd8(%rbp), %rsi
incq %rsi
callq 0x4170
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x125f8
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x4170
movq -0xc8(%rbp), %rdi
cmpq %r13, %rdi
leaq -0x120(%rbp), %r13
je 0x1261a
movq -0xb8(%rbp), %rsi
incq %rsi
callq 0x4170
leaq -0x98(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x12639
movq -0x98(%rbp), %rsi
incq %rsi
callq 0x4170
movq -0x88(%rbp), %rdi
leaq -0x78(%rbp), %rax
cmpq %rax, %rdi
je 0x12655
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x4170
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x1266e
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x4170
movq (%r14), %rax
movq %r14, %rdi
callq *0x18(%rax)
testl %eax, %eax
jne 0x1268a
leaq 0xb312(%rip), %rsi      # 0x1d994
movq %rbx, %rdi
callq 0x4280
movq -0x130(%rbp), %rdi
cmpq %r13, %rdi
je 0x126a5
movq -0x120(%rbp), %rsi
incq %rsi
callq 0x4170
movq %rbx, %rax
addq $0x118, %rsp            # imm = 0x118
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x12732
jmp 0x12756
jmp 0x12774
jmp 0x12779
jmp 0x1277e
jmp 0x12786
jmp 0x1284f
jmp 0x127b8
movq %rax, %r14
leaq -0xd8(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x12706
movq -0xd8(%rbp), %rsi
incq %rsi
callq 0x4170
jmp 0x12706
movq %rax, %r14
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x127a3
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x4170
jmp 0x127a3
jmp 0x12774
jmp 0x12779
jmp 0x1277e
jmp 0x1277e
jmp 0x1284f
movq %rax, %r14
leaq -0xd8(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x12759
movq -0xd8(%rbp), %rsi
incq %rsi
callq 0x4170
jmp 0x12759
movq %rax, %r14
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x127bb
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x4170
jmp 0x127bb
movq %rax, %r14
jmp 0x127d6
movq %rax, %r14
jmp 0x127f5
movq %rax, %r14
jmp 0x12811
movq %rax, %r14
movq -0x48(%rbp), %rdi
cmpq %r13, %rdi
jne 0x1281e
jmp 0x12852
jmp 0x1284f
movq %rax, %r14
movq -0xc8(%rbp), %rdi
leaq -0xb8(%rbp), %rax
cmpq %rax, %rdi
jne 0x127c7
jmp 0x127d6
movq %rax, %r14
movq -0xc8(%rbp), %rdi
cmpq %r13, %rdi
je 0x127d6
movq -0xb8(%rbp), %rsi
incq %rsi
callq 0x4170
leaq -0x98(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x127f5
movq -0x98(%rbp), %rsi
incq %rsi
callq 0x4170
movq -0x88(%rbp), %rdi
leaq -0x78(%rbp), %rax
cmpq %rax, %rdi
je 0x12811
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x4170
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x12852
movq -0x38(%rbp), %rsi
jmp 0x1283e
jmp 0x12828
jmp 0x1284f
movq %rax, %r14
movq -0x110(%rbp), %rdi
cmpq %r15, %rdi
je 0x12852
movq -0x100(%rbp), %rsi
incq %rsi
callq 0x4170
jmp 0x12852
jmp 0x1284f
movq %rax, %r14
jmp 0x12874
movq %rax, %r14
movq -0x130(%rbp), %rdi
leaq -0x120(%rbp), %rax
cmpq %rax, %rdi
je 0x12874
movq -0x120(%rbp), %rsi
incq %rsi
callq 0x4170
movq (%rbx), %rdi
cmpq -0x140(%rbp), %rdi
je 0x12892
movq -0x140(%rbp), %rax
movq (%rax), %rsi
incq %rsi
callq 0x4170
movq %r14, %rdi
callq 0x4250
nop