// File: /workspace/github_cpp_makefile_star2_O3/MichaelXanth[P]RPG_Game/Living/Heroes/Hero.cpp
// Function: Hero::DisplaySpells(Spell*&, unsigned int&, unsigned int&)
bool Hero::DisplaySpells(Spell*& chosenSpell , unsigned int& slotNum , unsigned int& type)
{
    int arrow = 0;
    int column;
    int lines;
    char selection;

    if(!iceSpellsArray.empty())
        column = 0;
    else if(!fireSpellsArray.empty())
        column = 1;
    else if(!lightingSpellsArray.empty())
        column = 2;

    if(iceSpellsArray.size() >= fireSpellsArray.size() && iceSpellsArray.size() >= lightingSpellsArray.size())
        lines = 5 * (iceSpellsArray.size() + 1) - 1;

    if(fireSpellsArray.size() >= iceSpellsArray.size() && fireSpellsArray.size() >= lightingSpellsArray.size())
        lines = 5 * (fireSpellsArray.size() + 1) - 1;

    if(lightingSpellsArray.size() >= iceSpellsArray.size() && lightingSpellsArray.size() >= fireSpellsArray.size())
        lines = 5 * (lightingSpellsArray.size() + 1) - 1;

    do{
        cout << "\033[1;33m+\033[0;34m==============================\033[1;33m+\033[0;34m==============================\033[1;33m+\033[0;34m==============================\033[1;33m+\033[0m" << endl;
        cout << "\033[34m|\033[0m          Ice Spells          \033[34m|\033[0m         Fire Spells          \033[34m|\033[0m       Lighting Spells        \033[34m|\033[0m" << endl;
        cout << "\033[1;33m+\033[0;34m------------------------------\033[1;33m+\033[0;34m------------------------------\033[1;33m+\033[0;34m------------------------------\033[1;33m+\033[0m";

        for(unsigned int i = 0; i < iceSpellsArray.size() || i < fireSpellsArray.size() || i < lightingSpellsArray.size(); i++)
        {
            if(!i)
                cout << endl;
            else
                cout << "\033[34m|                              |                              |                              |\033[0m" << endl;

            if(i < iceSpellsArray.size())
            {
                if(column == 0 && arrow == i)
                    cout << "\033[34m| \033[1;33m~> ";
                else
                    cout << "\033[34m|\033[0m    ";

                cout.width(26);
                cout << left << iceSpellsArray[i]->GetName() << "\033[0;34m|\033[0m" << endl;
                cout << "\033[34m|\033[0m    \u2022 Damage Range: ";
                cout.width(10);
                string str = to_string(iceSpellsArray[i]->GetMinDamage()) + "-" + to_string(iceSpellsArray[i]->GetMaxDamage());
                cout << left << str << "\033[34m|\033[0m" << endl;
                cout << "\033[34m|\033[0m    \u2022 Damage Reduction: ";
                cout.width(6);
                cout << left << iceSpellsArray[i]->GetDamageReduction() << "\033[34m|\033[0m" << endl;
                cout << "\033[34m|\033[0m    \u2022 Affected Rounds: ";
                cout.width(7);
                cout << left << iceSpellsArray[i]->GetRounds() << "\033[34m|\033[0m" << endl;
            }
            else
            {
                cout << "\033[34m|\033[30C|\033[0m" << endl;
                cout << "\033[34m|\033[30C|\033[0m" << endl;
                cout << "\033[34m|\033[30C|\033[0m" << endl;
                cout << "\033[34m|\033[30C|\033[0m" << endl;
            }

            cout << "\033[4A";

            if(i < fireSpellsArray.size())
            {
                if(column == 1 && arrow == i)
                    cout << "\033[32C \033[1;33m~> ";
                else
                    cout << "\033[32C    ";

                cout.width(26);
                cout << left << fireSpellsArray[i]->GetName() << "\033[0;34m|\033[0m" << endl;
                cout << "\033[32C    \u2022 Damage Range: ";
                cout.width(10);
                string str = to_string(fireSpellsArray[i]->GetMinDamage()) + "-" + to_string(fireSpellsArray[i]->GetMaxDamage());
                cout << left << str << "\033[34m|\033[0m" << endl;
                cout << "\033[32C    \u2022 Defence Reduction: ";
                cout.width(5);
                cout << left << fireSpellsArray[i]->GetDefenceReduction() << "\033[34m|\033[0m" << endl;
                cout << "\033[32C    \u2022 Affected Rounds: ";
                cout.width(7);
                cout << left << fireSpellsArray[i]->GetRounds() << "\033[34m|\033[0m" << endl;
            }
            else
            {
                cout << "\033[62C\033[34m|\033[0m" << endl;
                cout << "\033[62C\033[34m|\033[0m" << endl;
                cout << "\033[62C\033[34m|\033[0m" << endl;
                cout << "\033[62C\033[34m|\033[0m" << endl;
            }

            cout << "\033[4A";

            if(i < lightingSpellsArray.size())
            {
                if(column == 2 && arrow == i)
                    cout << "\033[63C \033[1;33m~> ";
                else
                    cout << "\033[63C    ";

                cout.width(26);
                cout << left << lightingSpellsArray[i]->GetName() << "\033[0;34m|\033[0m" << endl;
                cout << "\033[63C    \u2022 Damage Range: ";
                cout.width(10);
                string str = to_string(lightingSpellsArray[i]->GetMinDamage()) + "-" + to_string(lightingSpellsArray[i]->GetMaxDamage());
                cout << left << str << "\033[34m|\033[0m" << endl;
                cout << "\033[63C    \u2022 Avoidance Reduction: ";
                cout.width(3);
                cout << left << lightingSpellsArray[i]->GetAvoidanceReduction() << "\033[34m|\033[0m" << endl;
                cout << "\033[63C    \u2022 Affected Rounds: ";
                cout.width(7);
                cout << left << lightingSpellsArray[i]->GetRounds() << "\033[34m|\033[0m" << endl;
            }
            else
            {
                cout << "\033[93C\033[34m|\033[0m" << endl;
                cout << "\033[93C\033[34m|\033[0m" << endl;
                cout << "\033[93C\033[34m|\033[0m" << endl;
                cout << "\033[93C\033[34m|\033[0m" << endl;
            }
        }
        cout << "\033[1;33m+\033[0;34m==============================\033[1;33m+\033[0;34m==============================\033[1;33m+\033[0;34m==============================\033[1;33m+\033[0m" << endl;
        cout << "Press 'e' to cancel" << endl;

        selection = getch();

        if(selection == 'e')
        {
            cout << "\033[" << lines << "A";
            cout << "\033[J";

            //for(int i = 0; i < lines; i++)
            //    cout << "\033[1A\033[K";

            return false;
        }
        else if(selection == 'w' && arrow) //navigates the menu arrow
            arrow--;
        else if(selection == 'a' && column)
        {
            if(column == 2)
            {
                if(fireSpellsArray.size())
                {
                    column--;

                    if(arrow > fireSpellsArray.size() - 1)
                        arrow = fireSpellsArray.size() - 1;
                }
                else if(iceSpellsArray.size())
                {
                    column -= 2;

                    if(arrow > iceSpellsArray.size() - 1)
                        arrow = iceSpellsArray.size() - 1;
                }
            }
            else if(column == 1)
            {
                if(iceSpellsArray.size())
                {
                    column --;

                    if(arrow > iceSpellsArray.size() - 1)
                        arrow = iceSpellsArray.size() - 1;
                }
            }
        }
        else if(selection == 's')
        {
            if(column == 0 && arrow < iceSpellsArray.size() - 1) //navigates the menu arrow
                arrow++;
            else if(column == 1 && arrow < fireSpellsArray.size() - 1)
                arrow++;
            else if(column == 2 && arrow < lightingSpellsArray.size() - 1)
                arrow++;
        }
        else if(selection == 'd' && column < 2)
        {
            if(column == 0)
            {
                if(fireSpellsArray.size())
                {
                    column++;

                    if(arrow > fireSpellsArray.size() - 1)
                        arrow = fireSpellsArray.size() - 1;
                }
                else if(lightingSpellsArray.size())
                {
                    column += 2;

                    if(arrow > lightingSpellsArray.size() - 1)
                        arrow = lightingSpellsArray.size() - 1;
                }
            }
            else if(column == 1)
            {
                if(lightingSpellsArray.size())
                {
                    column ++;

                    if(arrow > lightingSpellsArray.size() - 1)
                        arrow = lightingSpellsArray.size() - 1;
                }
            }
        }

        if(selection != '\n')
            cout << "\033[" << lines << "A";

    }while(selection != '\n');

    switch(column)
    {
        case 0:
            chosenSpell = iceSpellsArray[arrow];
            type = 2;
            slotNum = arrow + 1;

            break;

        case 1:
            chosenSpell = fireSpellsArray[arrow];
            type = 3;
            slotNum = arrow + 1;

            break;

        case 2:
            chosenSpell = lightingSpellsArray[arrow];
            type = 1;
            slotNum = arrow + 1;

            break;
    }

    cout << "\033[" << lines + 10 << "A";
    cout << "\033[J";

    //for(int i = 0; i < lines + 10; i++)
    //    cout << "\033[1A\033[K";

    return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movq %rcx, 0xb8(%rsp)
movq %rdx, 0xc0(%rsp)
movq %rdi, %r12
movq 0x58(%rdi), %rdi
movq 0x70(%r12), %r8
xorl %eax, %eax
subq 0x50(%r12), %rdi
sete %al
incl %eax
xorl %ecx, %ecx
subq 0x68(%r12), %r8
movq %rsi, 0xb0(%rsp)
cmovel %eax, %ecx
movl %ecx, 0x4(%rsp)
movq %r8, %rax
sarq $0x3, %rax
movq %rdi, %rcx
sarq $0x3, %rcx
cmpq %rcx, %rax
jb 0x14e35
movq 0x40(%r12), %rsi
subq 0x38(%r12), %rsi
cmpq %rsi, %r8
jb 0x14e35
leal (%rax,%rax,4), %edx
addl $0x4, %edx
cmpq %rax, %rcx
jae 0x14e46
movq 0x40(%r12), %rsi
subq 0x38(%r12), %rsi
jmp 0x14e5b
movq 0x40(%r12), %rsi
subq 0x38(%r12), %rsi
cmpq %rsi, %rdi
jb 0x14e5b
leal (%rcx,%rcx,4), %edx
addl $0x4, %edx
leaq 0x68(%r12), %rdi
movq %rdi, 0x90(%rsp)
leaq 0x50(%r12), %rdi
movq %rdi, 0xa8(%rsp)
leaq 0x38(%r12), %rdi
movq %rdi, 0xa0(%rsp)
sarq $0x3, %rsi
cmpq %rcx, %rsi
leal 0x4(%rsi,%rsi,4), %ecx
cmovbl %edx, %ecx
cmpq %rax, %rsi
cmovbl %edx, %ecx
movl %ecx, 0x9c(%rsp)
movq $0x0, 0x8(%rsp)
movq 0x1a11b(%rip), %r13     # 0x2efc8
leaq 0x119c5(%rip), %rbx     # 0x26879
movl $0xffffff4f, %r14d      # imm = 0xFFFFFF4F
movl $0xd1b71759, %r15d      # imm = 0xD1B71759
movl $0x93, %edx
movq %r13, %rdi
movq %rbx, %rsi
callq 0x31e0
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x3190
movsbl %al, %esi
movq %r13, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3100
movl $0x82, %edx
movq %r13, %rdi
leaq 0x11a06(%rip), %rsi     # 0x2690d
callq 0x31e0
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x3190
movsbl %al, %esi
movq %r13, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3100
movl $0x93, %edx
movq %r13, %rdi
leaq 0x11a4d(%rip), %rsi     # 0x26990
callq 0x31e0
xorl %ebx, %ebx
movl %ebx, %ebx
movq 0x70(%r12), %rax
subq 0x68(%r12), %rax
sarq $0x3, %rax
cmpq %rbx, %rax
ja 0x14f89
movq 0x58(%r12), %rax
subq 0x50(%r12), %rax
sarq $0x3, %rax
cmpq %rbx, %rax
ja 0x14f89
movq 0x40(%r12), %rax
subq 0x38(%r12), %rax
sarq $0x3, %rax
cmpq %rbx, %rax
jbe 0x1629e
testq %rbx, %rbx
je 0x14fa2
movl $0x67, %edx
movq %r13, %rdi
leaq 0x11a87(%rip), %rsi     # 0x26a24
callq 0x31e0
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x3190
movsbl %al, %esi
movq %r13, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3100
movq 0x70(%r12), %rax
subq 0x68(%r12), %rax
sarq $0x3, %rax
cmpq %rbx, %rax
jbe 0x15006
cmpl $0x0, 0x4(%rsp)
jne 0x150f2
cmpl %ebx, 0x8(%rsp)
jne 0x150f2
movl $0x11, %edx
movq %r13, %rdi
leaq 0x11a8b(%rip), %rsi     # 0x26a8c
jmp 0x15101
movl $0x10, %edx
movq %r13, %rdi
leaq 0x11b02(%rip), %rbp     # 0x26b17
movq %rbp, %rsi
callq 0x31e0
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x3190
movsbl %al, %esi
movq %r13, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3100
movl $0x10, %edx
movq %r13, %rdi
movq %rbp, %rsi
callq 0x31e0
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x3190
movsbl %al, %esi
movq %r13, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3100
movl $0x10, %edx
movq %r13, %rdi
movq %rbp, %rsi
callq 0x31e0
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x3190
movsbl %al, %esi
movq %r13, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3100
movl $0x10, %edx
movq %r13, %rdi
movq %rbp, %rsi
callq 0x31e0
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x3190
movsbl %al, %esi
movq %r13, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3100
jmp 0x15601
movl $0xe, %edx
movq %r13, %rdi
leaq 0x1199d(%rip), %rsi     # 0x26a9e
callq 0x31e0
movq (%r13), %rax
movq -0x18(%rax), %rcx
movq $0x1a, 0x10(%r13,%rcx)
movq -0x18(%rax), %rax
movl 0x18(%r13,%rax), %ecx
andl %r14d, %ecx
orl $0x20, %ecx
movl %ecx, 0x18(%r13,%rax)
movq 0x90(%rsp), %rax
movq (%rax), %rax
movq (%rax,%rbx,8), %rsi
movq (%rsi), %rax
leaq 0x10(%rsp), %rdi
callq *0x8(%rax)
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq %r13, %rdi
callq 0x31e0
movq %rax, %rbp
movl $0xc, %edx
movq %rax, %rdi
leaq 0xf8a0(%rip), %rsi      # 0x24a09
callq 0x31e0
movq (%rbp), %rax
movq -0x18(%rax), %rdi
addq %rbp, %rdi
movl $0xa, %esi
callq 0x3190
movsbl %al, %esi
movq %rbp, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3100
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x151b2
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x31b0
movl $0x20, %edx
movq %r13, %rdi
leaq 0x118ec(%rip), %rsi     # 0x26aad
callq 0x31e0
movq (%r13), %rax
movq -0x18(%rax), %rax
movq $0xa, 0x10(%r13,%rax)
movq 0x90(%rsp), %rax
movq (%rax), %rax
movq (%rax,%rbx,8), %rdi
movq (%rdi), %rax
callq *0x20(%rax)
movl %eax, %ebp
movl $0x1, %eax
cmpl $0xa, %ebp
jb 0x15237
movl $0x4, %eax
movl %ebp, %ecx
cmpl $0x63, %ecx
jbe 0x15230
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x15235
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x15237
movl %ecx, %edx
imulq %r15, %rdx
shrq $0x2d, %rdx
addl $0x4, %eax
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x151ff
addl $-0x3, %eax
jmp 0x15237
addl $-0x2, %eax
jmp 0x15237
decl %eax
movl %eax, %esi
leaq 0x80(%rsp), %rax
movq %rax, 0x70(%rsp)
leaq 0x70(%rsp), %r14
movq %r14, %rdi
xorl %edx, %edx
callq 0x31f0
movq 0x70(%rsp), %rdi
movl 0x78(%rsp), %esi
movl %ebp, %edx
callq 0xeebe
movq %r14, %rdi
leaq 0x12001(%rip), %rsi     # 0x27270
callq 0x3310
leaq 0x40(%rsp), %rsi
movq %rsi, 0x30(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1529c
movq %rdx, 0x30(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x40(%rsp)
jmp 0x152a2
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x90(%rsp), %rsi
movl $0xffffff4f, %r14d      # imm = 0xFFFFFF4F
movq 0x8(%rax), %rdx
movq %rdx, 0x38(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq (%rsi), %rax
movq (%rax,%rbx,8), %rdi
movq (%rdi), %rax
callq *0x28(%rax)
movl %eax, %ebp
movl $0x1, %eax
cmpl $0xa, %ebp
jb 0x15320
movl $0x4, %eax
movl %ebp, %ecx
cmpl $0x63, %ecx
jbe 0x15319
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x1531e
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x15320
movl %ecx, %edx
imulq %r15, %rdx
shrq $0x2d, %rdx
addl $0x4, %eax
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x152e8
addl $-0x3, %eax
jmp 0x15320
addl $-0x2, %eax
jmp 0x15320
decl %eax
movl %eax, %esi
leaq 0x60(%rsp), %rax
movq %rax, 0x50(%rsp)
leaq 0x50(%rsp), %rdi
xorl %edx, %edx
callq 0x31f0
movq 0x50(%rsp), %rdi
movl 0x58(%rsp), %esi
movl %ebp, %edx
callq 0xeebe
movq 0x30(%rsp), %rcx
movl $0xf, %edi
leaq 0x40(%rsp), %rax
cmpq %rax, %rcx
je 0x15361
movq 0x40(%rsp), %rdi
movq 0x38(%rsp), %r8
movq 0x50(%rsp), %rsi
movq 0x58(%rsp), %rdx
leaq (%rdx,%r8), %rax
cmpq %rdi, %rax
jbe 0x15392
movl $0xf, %edi
leaq 0x60(%rsp), %r9
cmpq %r9, %rsi
je 0x1538d
movq 0x60(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x1539e
leaq 0x30(%rsp), %rdi
callq 0x3080
jmp 0x153ac
leaq 0x50(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x31d0
leaq 0x20(%rsp), %rsi
movq %rsi, 0x10(%rsp)
movq (%rax), %rdx
leaq 0x10(%rax), %rcx
cmpq %rcx, %rdx
je 0x153d1
movq %rdx, 0x10(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x20(%rsp)
jmp 0x153d7
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x18(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x15410
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x31b0
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x1542c
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x31b0
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x1544e
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x31b0
movq (%r13), %rax
movq -0x18(%rax), %rax
movl 0x18(%r13,%rax), %ecx
andl %r14d, %ecx
orl $0x20, %ecx
movl %ecx, 0x18(%r13,%rax)
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq %r13, %rdi
callq 0x31e0
movq %rax, %rbp
movl $0xa, %edx
movq %rax, %rdi
leaq 0x10109(%rip), %rsi     # 0x25593
callq 0x31e0
movq (%rbp), %rax
movq -0x18(%rax), %rdi
addq %rbp, %rdi
movl $0xa, %esi
callq 0x3190
movsbl %al, %esi
movq %rbp, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3100
movl $0x24, %edx
movq %r13, %rdi
leaq 0x11608(%rip), %rsi     # 0x26ace
callq 0x31e0
movq (%r13), %rax
movq -0x18(%rax), %rcx
movq $0x6, 0x10(%r13,%rcx)
movq -0x18(%rax), %rax
movl 0x18(%r13,%rax), %ecx
andl %r14d, %ecx
orl $0x20, %ecx
movl %ecx, 0x18(%r13,%rax)
movq 0x90(%rsp), %rax
movq (%rax), %rax
movq (%rax,%rbx,8), %rdi
movq (%rdi), %rax
callq *0x40(%rax)
movl %eax, %esi
movq %r13, %rdi
callq 0x30f0
movq %rax, %rbp
movl $0xa, %edx
movq %rax, %rdi
leaq 0x10072(%rip), %rsi     # 0x25593
callq 0x31e0
movq (%rbp), %rax
movq -0x18(%rax), %rdi
addq %rbp, %rdi
movl $0xa, %esi
callq 0x3190
movsbl %al, %esi
movq %rbp, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3100
movl $0x23, %edx
movq %r13, %rdi
leaq 0x11596(%rip), %rsi     # 0x26af3
callq 0x31e0
movq (%r13), %rax
movq -0x18(%rax), %rcx
movq $0x7, 0x10(%r13,%rcx)
movq -0x18(%rax), %rax
movl 0x18(%r13,%rax), %ecx
andl %r14d, %ecx
orl $0x20, %ecx
movl %ecx, 0x18(%r13,%rax)
movq 0x90(%rsp), %rax
movq (%rax), %rax
movq (%rax,%rbx,8), %rdi
movq (%rdi), %rax
callq *0x18(%rax)
movl %eax, %esi
movq %r13, %rdi
callq 0x30f0
movq %rax, %rbp
movl $0xa, %edx
movq %rax, %rdi
leaq 0xffdb(%rip), %rsi      # 0x25593
callq 0x31e0
movq (%rbp), %rax
movq -0x18(%rax), %rdi
addq %rbp, %rdi
movl $0xa, %esi
callq 0x3190
movsbl %al, %esi
movq %rbp, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3100
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x15601
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x31b0
movl $0x4, %edx
movq %r13, %rdi
leaq 0x11518(%rip), %rsi     # 0x26b28
callq 0x31e0
movq 0x58(%r12), %rax
subq 0x50(%r12), %rax
sarq $0x3, %rax
cmpq %rbx, %rax
jbe 0x15651
cmpl $0x1, 0x4(%rsp)
jne 0x1573d
cmpl %ebx, 0x8(%rsp)
jne 0x1573d
movl $0x10, %edx
movq %r13, %rdi
leaq 0x114e1(%rip), %rsi     # 0x26b2d
jmp 0x1574c
movl $0xf, %edx
movq %r13, %rdi
leaq 0x11544(%rip), %rbp     # 0x26ba4
movq %rbp, %rsi
callq 0x31e0
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x3190
movsbl %al, %esi
movq %r13, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3100
movl $0xf, %edx
movq %r13, %rdi
movq %rbp, %rsi
callq 0x31e0
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x3190
movsbl %al, %esi
movq %r13, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3100
movl $0xf, %edx
movq %r13, %rdi
movq %rbp, %rsi
callq 0x31e0
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x3190
movsbl %al, %esi
movq %r13, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3100
movl $0xf, %edx
movq %r13, %rdi
movq %rbp, %rsi
callq 0x31e0
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x3190
movsbl %al, %esi
movq %r13, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3100
jmp 0x15c4c
movl $0x9, %edx
movq %r13, %rdi
leaq 0x113f2(%rip), %rsi     # 0x26b3e
callq 0x31e0
movq (%r13), %rax
movq -0x18(%rax), %rcx
movq $0x1a, 0x10(%r13,%rcx)
movq -0x18(%rax), %rax
movl 0x18(%r13,%rax), %ecx
andl %r14d, %ecx
orl $0x20, %ecx
movl %ecx, 0x18(%r13,%rax)
movq 0xa8(%rsp), %rax
movq (%rax), %rax
movq (%rax,%rbx,8), %rsi
movq (%rsi), %rax
leaq 0x10(%rsp), %rdi
callq *0x8(%rax)
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq %r13, %rdi
callq 0x31e0
movq %rax, %rbp
movl $0xc, %edx
movq %rax, %rdi
leaq 0xf255(%rip), %rsi      # 0x24a09
callq 0x31e0
movq (%rbp), %rax
movq -0x18(%rax), %rdi
addq %rbp, %rdi
movl $0xa, %esi
callq 0x3190
movsbl %al, %esi
movq %rbp, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3100
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x157fd
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x31b0
movl $0x1b, %edx
movq %r13, %rdi
leaq 0x1133c(%rip), %rsi     # 0x26b48
callq 0x31e0
movq (%r13), %rax
movq -0x18(%rax), %rax
movq $0xa, 0x10(%r13,%rax)
movq 0xa8(%rsp), %rax
movq (%rax), %rax
movq (%rax,%rbx,8), %rdi
movq (%rdi), %rax
callq *0x20(%rax)
movl %eax, %ebp
movl $0x1, %eax
cmpl $0xa, %ebp
jb 0x15882
movl $0x4, %eax
movl %ebp, %ecx
cmpl $0x63, %ecx
jbe 0x1587b
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x15880
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x15882
movl %ecx, %edx
imulq %r15, %rdx
shrq $0x2d, %rdx
addl $0x4, %eax
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x1584a
addl $-0x3, %eax
jmp 0x15882
addl $-0x2, %eax
jmp 0x15882
decl %eax
movl %eax, %esi
leaq 0x80(%rsp), %rax
movq %rax, 0x70(%rsp)
leaq 0x70(%rsp), %r14
movq %r14, %rdi
xorl %edx, %edx
callq 0x31f0
movq 0x70(%rsp), %rdi
movl 0x78(%rsp), %esi
movl %ebp, %edx
callq 0xeebe
movq %r14, %rdi
leaq 0x119b6(%rip), %rsi     # 0x27270
callq 0x3310
leaq 0x40(%rsp), %rsi
movq %rsi, 0x30(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x158e7
movq %rdx, 0x30(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x40(%rsp)
jmp 0x158ed
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movl $0xffffff4f, %r14d      # imm = 0xFFFFFF4F
movq 0x8(%rax), %rdx
movq %rdx, 0x38(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0xa8(%rsp), %rax
movq (%rax), %rax
movq (%rax,%rbx,8), %rdi
movq (%rdi), %rax
callq *0x28(%rax)
movl %eax, %ebp
movl $0x1, %eax
cmpl $0xa, %ebp
jb 0x1596b
movl $0x4, %eax
movl %ebp, %ecx
cmpl $0x63, %ecx
jbe 0x15964
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x15969
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x1596b
movl %ecx, %edx
imulq %r15, %rdx
shrq $0x2d, %rdx
addl $0x4, %eax
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x15933
addl $-0x3, %eax
jmp 0x1596b
addl $-0x2, %eax
jmp 0x1596b
decl %eax
movl %eax, %esi
leaq 0x60(%rsp), %rax
movq %rax, 0x50(%rsp)
leaq 0x50(%rsp), %rdi
xorl %edx, %edx
callq 0x31f0
movq 0x50(%rsp), %rdi
movl 0x58(%rsp), %esi
movl %ebp, %edx
callq 0xeebe
movq 0x30(%rsp), %rcx
movl $0xf, %edi
leaq 0x40(%rsp), %rax
cmpq %rax, %rcx
je 0x159ac
movq 0x40(%rsp), %rdi
movq 0x38(%rsp), %r8
movq 0x50(%rsp), %rsi
movq 0x58(%rsp), %rdx
leaq (%rdx,%r8), %rax
cmpq %rdi, %rax
jbe 0x159dd
movl $0xf, %edi
leaq 0x60(%rsp), %r9
cmpq %r9, %rsi
je 0x159d8
movq 0x60(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x159e9
leaq 0x30(%rsp), %rdi
callq 0x3080
jmp 0x159f7
leaq 0x50(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x31d0
leaq 0x20(%rsp), %rsi
movq %rsi, 0x10(%rsp)
movq (%rax), %rdx
leaq 0x10(%rax), %rcx
cmpq %rcx, %rdx
je 0x15a1c
movq %rdx, 0x10(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x20(%rsp)
jmp 0x15a22
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x18(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x15a5b
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x31b0
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x15a77
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x31b0
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x15a99
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x31b0
movq (%r13), %rax
movq -0x18(%rax), %rax
movl 0x18(%r13,%rax), %ecx
andl %r14d, %ecx
orl $0x20, %ecx
movl %ecx, 0x18(%r13,%rax)
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq %r13, %rdi
callq 0x31e0
movq %rax, %rbp
movl $0xa, %edx
movq %rax, %rdi
leaq 0xfabe(%rip), %rsi      # 0x25593
callq 0x31e0
movq (%rbp), %rax
movq -0x18(%rax), %rdi
addq %rbp, %rdi
movl $0xa, %esi
callq 0x3190
movsbl %al, %esi
movq %rbp, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3100
movl $0x20, %edx
movq %r13, %rdi
leaq 0x11053(%rip), %rsi     # 0x26b64
callq 0x31e0
movq (%r13), %rax
movq -0x18(%rax), %rcx
movq $0x5, 0x10(%r13,%rcx)
movq -0x18(%rax), %rax
movl 0x18(%r13,%rax), %ecx
andl %r14d, %ecx
orl $0x20, %ecx
movl %ecx, 0x18(%r13,%rax)
movq 0xa8(%rsp), %rax
movq (%rax), %rax
movq (%rax,%rbx,8), %rdi
movq (%rdi), %rax
callq *0x48(%rax)
movl %eax, %esi
movq %r13, %rdi
callq 0x30f0
movq %rax, %rbp
movl $0xa, %edx
movq %rax, %rdi
leaq 0xfa27(%rip), %rsi      # 0x25593
callq 0x31e0
movq (%rbp), %rax
movq -0x18(%rax), %rdi
addq %rbp, %rdi
movl $0xa, %esi
callq 0x3190
movsbl %al, %esi
movq %rbp, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3100
movl $0x1e, %edx
movq %r13, %rdi
leaq 0x10fdd(%rip), %rsi     # 0x26b85
callq 0x31e0
movq (%r13), %rax
movq -0x18(%rax), %rcx
movq $0x7, 0x10(%r13,%rcx)
movq -0x18(%rax), %rax
movl 0x18(%r13,%rax), %ecx
andl %r14d, %ecx
orl $0x20, %ecx
movl %ecx, 0x18(%r13,%rax)
movq 0xa8(%rsp), %rax
movq (%rax), %rax
movq (%rax,%rbx,8), %rdi
movq (%rdi), %rax
callq *0x18(%rax)
movl %eax, %esi
movq %r13, %rdi
callq 0x30f0
movq %rax, %rbp
movl $0xa, %edx
movq %rax, %rdi
leaq 0xf990(%rip), %rsi      # 0x25593
callq 0x31e0
movq (%rbp), %rax
movq -0x18(%rax), %rdi
addq %rbp, %rdi
movl $0xa, %esi
callq 0x3190
movsbl %al, %esi
movq %rbp, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3100
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x15c4c
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x31b0
movl $0x4, %edx
movq %r13, %rdi
leaq 0x10ecd(%rip), %rsi     # 0x26b28
callq 0x31e0
movq 0x40(%r12), %rax
subq 0x38(%r12), %rax
sarq $0x3, %rax
cmpq %rbx, %rax
jbe 0x15c9c
cmpl $0x2, 0x4(%rsp)
jne 0x15d88
cmpl %ebx, 0x8(%rsp)
jne 0x15d88
movl $0x10, %edx
movq %r13, %rdi
leaq 0x10f1d(%rip), %rsi     # 0x26bb4
jmp 0x15d97
movl $0xf, %edx
movq %r13, %rdi
leaq 0x10f82(%rip), %rbp     # 0x26c2d
movq %rbp, %rsi
callq 0x31e0
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x3190
movsbl %al, %esi
movq %r13, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3100
movl $0xf, %edx
movq %r13, %rdi
movq %rbp, %rsi
callq 0x31e0
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x3190
movsbl %al, %esi
movq %r13, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3100
movl $0xf, %edx
movq %r13, %rdi
movq %rbp, %rsi
callq 0x31e0
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x3190
movsbl %al, %esi
movq %r13, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3100
movl $0xf, %edx
movq %r13, %rdi
movq %rbp, %rsi
callq 0x31e0
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x3190
movsbl %al, %esi
movq %r13, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3100
jmp 0x16297
movl $0x9, %edx
movq %r13, %rdi
leaq 0x10e2e(%rip), %rsi     # 0x26bc5
callq 0x31e0
movq (%r13), %rax
movq -0x18(%rax), %rcx
movq $0x1a, 0x10(%r13,%rcx)
movq -0x18(%rax), %rax
movl 0x18(%r13,%rax), %ecx
andl %r14d, %ecx
orl $0x20, %ecx
movl %ecx, 0x18(%r13,%rax)
movq 0xa0(%rsp), %rax
movq (%rax), %rax
movq (%rax,%rbx,8), %rsi
movq (%rsi), %rax
leaq 0x10(%rsp), %rdi
callq *0x8(%rax)
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq %r13, %rdi
callq 0x31e0
movq %rax, %rbp
movl $0xc, %edx
movq %rax, %rdi
leaq 0xec0a(%rip), %rsi      # 0x24a09
callq 0x31e0
movq (%rbp), %rax
movq -0x18(%rax), %rdi
addq %rbp, %rdi
movl $0xa, %esi
callq 0x3190
movsbl %al, %esi
movq %rbp, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3100
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x15e48
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x31b0
movl $0x1b, %edx
movq %r13, %rdi
leaq 0x10d78(%rip), %rsi     # 0x26bcf
callq 0x31e0
movq (%r13), %rax
movq -0x18(%rax), %rax
movq $0xa, 0x10(%r13,%rax)
movq 0xa0(%rsp), %rax
movq (%rax), %rax
movq (%rax,%rbx,8), %rdi
movq (%rdi), %rax
callq *0x20(%rax)
movl %eax, %ebp
movl $0x1, %eax
cmpl $0xa, %ebp
jb 0x15ecd
movl $0x4, %eax
movl %ebp, %ecx
cmpl $0x63, %ecx
jbe 0x15ec6
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x15ecb
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x15ecd
movl %ecx, %edx
imulq %r15, %rdx
shrq $0x2d, %rdx
addl $0x4, %eax
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x15e95
addl $-0x3, %eax
jmp 0x15ecd
addl $-0x2, %eax
jmp 0x15ecd
decl %eax
movl %eax, %esi
leaq 0x80(%rsp), %rax
movq %rax, 0x70(%rsp)
leaq 0x70(%rsp), %r14
movq %r14, %rdi
xorl %edx, %edx
callq 0x31f0
movq 0x70(%rsp), %rdi
movl 0x78(%rsp), %esi
movl %ebp, %edx
callq 0xeebe
movq %r14, %rdi
leaq 0x1136b(%rip), %rsi     # 0x27270
callq 0x3310
leaq 0x40(%rsp), %rsi
movq %rsi, 0x30(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x15f32
movq %rdx, 0x30(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x40(%rsp)
jmp 0x15f38
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movl $0xffffff4f, %r14d      # imm = 0xFFFFFF4F
movq 0x8(%rax), %rdx
movq %rdx, 0x38(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0xa0(%rsp), %rax
movq (%rax), %rax
movq (%rax,%rbx,8), %rdi
movq (%rdi), %rax
callq *0x28(%rax)
movl %eax, %ebp
movl $0x1, %eax
cmpl $0xa, %ebp
jb 0x15fb6
movl $0x4, %eax
movl %ebp, %ecx
cmpl $0x63, %ecx
jbe 0x15faf
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x15fb4
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x15fb6
movl %ecx, %edx
imulq %r15, %rdx
shrq $0x2d, %rdx
addl $0x4, %eax
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x15f7e
addl $-0x3, %eax
jmp 0x15fb6
addl $-0x2, %eax
jmp 0x15fb6
decl %eax
movl %eax, %esi
leaq 0x60(%rsp), %rax
movq %rax, 0x50(%rsp)
leaq 0x50(%rsp), %rdi
xorl %edx, %edx
callq 0x31f0
movq 0x50(%rsp), %rdi
movl 0x58(%rsp), %esi
movl %ebp, %edx
callq 0xeebe
movq 0x30(%rsp), %rcx
movl $0xf, %edi
leaq 0x40(%rsp), %rax
cmpq %rax, %rcx
je 0x15ff7
movq 0x40(%rsp), %rdi
movq 0x38(%rsp), %r8
movq 0x50(%rsp), %rsi
movq 0x58(%rsp), %rdx
leaq (%rdx,%r8), %rax
cmpq %rdi, %rax
jbe 0x16028
movl $0xf, %edi
leaq 0x60(%rsp), %r9
cmpq %r9, %rsi
je 0x16023
movq 0x60(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x16034
leaq 0x30(%rsp), %rdi
callq 0x3080
jmp 0x16042
leaq 0x50(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x31d0
leaq 0x20(%rsp), %rsi
movq %rsi, 0x10(%rsp)
movq (%rax), %rdx
leaq 0x10(%rax), %rcx
cmpq %rcx, %rdx
je 0x16067
movq %rdx, 0x10(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x20(%rsp)
jmp 0x1606d
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x18(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x160a6
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x31b0
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x160c2
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x31b0
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x160e4
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x31b0
movq (%r13), %rax
movq -0x18(%rax), %rax
movl 0x18(%r13,%rax), %ecx
andl %r14d, %ecx
orl $0x20, %ecx
movl %ecx, 0x18(%r13,%rax)
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq %r13, %rdi
callq 0x31e0
movq %rax, %rbp
movl $0xa, %edx
movq %rax, %rdi
leaq 0xf473(%rip), %rsi      # 0x25593
callq 0x31e0
movq (%rbp), %rax
movq -0x18(%rax), %rdi
addq %rbp, %rdi
movl $0xa, %esi
callq 0x3190
movsbl %al, %esi
movq %rbp, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3100
movl $0x22, %edx
movq %r13, %rdi
leaq 0x10a8f(%rip), %rsi     # 0x26beb
callq 0x31e0
movq (%r13), %rax
movq -0x18(%rax), %rcx
movq $0x3, 0x10(%r13,%rcx)
movq -0x18(%rax), %rax
movl 0x18(%r13,%rax), %ecx
andl %r14d, %ecx
orl $0x20, %ecx
movl %ecx, 0x18(%r13,%rax)
movq 0xa0(%rsp), %rax
movq (%rax), %rax
movq (%rax,%rbx,8), %rdi
movq (%rdi), %rax
callq *0x50(%rax)
movl %eax, %esi
movq %r13, %rdi
callq 0x30f0
movq %rax, %rbp
movl $0xa, %edx
movq %rax, %rdi
leaq 0xf3dc(%rip), %rsi      # 0x25593
callq 0x31e0
movq (%rbp), %rax
movq -0x18(%rax), %rdi
addq %rbp, %rdi
movl $0xa, %esi
callq 0x3190
movsbl %al, %esi
movq %rbp, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3100
movl $0x1e, %edx
movq %r13, %rdi
leaq 0x10a1b(%rip), %rsi     # 0x26c0e
callq 0x31e0
movq (%r13), %rax
movq -0x18(%rax), %rcx
movq $0x7, 0x10(%r13,%rcx)
movq -0x18(%rax), %rax
movl 0x18(%r13,%rax), %ecx
andl %r14d, %ecx
orl $0x20, %ecx
movl %ecx, 0x18(%r13,%rax)
movq 0xa0(%rsp), %rax
movq (%rax), %rax
movq (%rax,%rbx,8), %rdi
movq (%rdi), %rax
callq *0x18(%rax)
movl %eax, %esi
movq %r13, %rdi
callq 0x30f0
movq %rax, %rbp
movl $0xa, %edx
movq %rax, %rdi
leaq 0xf345(%rip), %rsi      # 0x25593
callq 0x31e0
movq (%rbp), %rax
movq -0x18(%rax), %rdi
addq %rbp, %rdi
movl $0xa, %esi
callq 0x3190
movsbl %al, %esi
movq %rbp, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3100
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x16297
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x31b0
incl %ebx
jmp 0x14f4a
movl $0x93, %edx
movq %r13, %rdi
leaq 0x105cc(%rip), %rbx     # 0x26879
movq %rbx, %rsi
callq 0x31e0
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x3190
movsbl %al, %esi
movq %r13, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3100
movl $0x13, %edx
movq %r13, %rdi
leaq 0x10951(%rip), %rsi     # 0x26c3d
callq 0x31e0
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x3190
movsbl %al, %esi
movq %r13, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3100
callq 0x10684
movl %eax, %ebp
cmpb $0x65, %al
je 0x1652f
cmpb $0x77, %bpl
jne 0x1637d
cmpl $0x0, 0x8(%rsp)
je 0x1637d
movq 0x8(%rsp), %rax
decl %eax
movq %rax, 0x8(%rsp)
movl $0x2, %edx
movq %r13, %rdi
leaq 0xe08b(%rip), %rsi      # 0x243db
callq 0x31e0
movq %r13, %rdi
movl 0x9c(%rsp), %esi
callq 0x32e0
movl $0x1, %edx
movq %rax, %rdi
leaq 0xe88b(%rip), %rsi      # 0x24bfe
callq 0x31e0
jmp 0x14ec0
cmpb $0x61, %bpl
movl 0x4(%rsp), %eax
jne 0x163ca
testl %eax, %eax
je 0x163ca
cmpl $0x2, %eax
jne 0x1644a
movq 0x58(%r12), %rax
movq 0x50(%r12), %rcx
subq %rcx, %rax
je 0x16475
sarq $0x3, %rax
movslq 0x8(%rsp), %rcx
leaq -0x1(%rax), %rdx
cmpq %rcx, %rdx
jae 0x16459
movl $0x1, 0x4(%rsp)
jmp 0x1649e
cmpb $0x73, %bpl
jne 0x16408
cmpl $0x2, %eax
je 0x164a5
cmpl $0x1, %eax
jne 0x164d6
movq 0x8(%rsp), %rdx
movslq %edx, %rax
movq 0x58(%r12), %rcx
subq 0x50(%r12), %rcx
sarq $0x3, %rcx
decq %rcx
cmpq %rcx, %rax
adcl $0x0, %edx
movq %rdx, 0x8(%rsp)
jmp 0x16459
cmpb $0x64, %bpl
jne 0x16466
cmpl $0x1, %eax
jg 0x16466
testl %eax, %eax
je 0x16507
movq 0x40(%r12), %rax
movq 0x38(%r12), %rcx
subq %rcx, %rax
je 0x16459
sarq $0x3, %rax
movslq 0x8(%rsp), %rcx
leaq -0x1(%rax), %rdx
cmpq %rcx, %rdx
jae 0x164c9
movl $0x2, 0x4(%rsp)
jmp 0x1649e
movq 0x70(%r12), %rax
movq 0x68(%r12), %rcx
subq %rcx, %rax
jne 0x16484
movl $0x1, 0x4(%rsp)
jmp 0x16341
cmpb $0xa, %bpl
jne 0x16341
jmp 0x165a0
movq 0x70(%r12), %rax
movq 0x68(%r12), %rcx
subq %rcx, %rax
je 0x164c9
sarq $0x3, %rax
movslq 0x8(%rsp), %rcx
leaq -0x1(%rax), %rdx
cmpq %rcx, %rdx
jae 0x164fa
movl $0x0, 0x4(%rsp)
decl %eax
jmp 0x1633c
movq 0x8(%rsp), %rdx
movslq %edx, %rax
movq 0x40(%r12), %rcx
subq 0x38(%r12), %rcx
sarq $0x3, %rcx
decq %rcx
cmpq %rcx, %rax
adcl $0x0, %edx
movq %rdx, 0x8(%rsp)
movl $0x2, 0x4(%rsp)
jmp 0x16341
movq 0x8(%rsp), %rdx
movslq %edx, %rax
movq 0x70(%r12), %rcx
subq 0x68(%r12), %rcx
sarq $0x3, %rcx
decq %rcx
cmpq %rcx, %rax
adcl $0x0, %edx
movq %rdx, 0x8(%rsp)
movl $0x0, 0x4(%rsp)
jmp 0x16341
movq 0x58(%r12), %rax
movq 0x50(%r12), %rcx
subq %rcx, %rax
jne 0x163a7
movq 0x40(%r12), %rax
movq 0x38(%r12), %rcx
subq %rcx, %rax
jne 0x1642a
jmp 0x164fa
movq 0x18a92(%rip), %rdi     # 0x2efc8
leaq 0xde9e(%rip), %rsi      # 0x243db
movl $0x2, %edx
callq 0x31e0
cmpb $0x65, %bpl
setne %bl
movq 0x18a73(%rip), %r14     # 0x2efc8
movq %r14, %rdi
movl 0x9c(%rsp), %esi
callq 0x32e0
leaq 0xe693(%rip), %rsi      # 0x24bfe
movl $0x1, %edx
movq %rax, %rdi
callq 0x31e0
leaq 0x10224(%rip), %rsi     # 0x267a3
movl $0x3, %edx
movq %r14, %rdi
callq 0x31e0
movl %ebx, %eax
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
testl %eax, %eax
je 0x165b8
cmpl $0x2, %eax
jne 0x165c7
movl $0x1, %eax
movq 0xa0(%rsp), %rdx
jmp 0x165d4
movl $0x2, %eax
movq 0x90(%rsp), %rdx
jmp 0x165d4
movl $0x3, %eax
movq 0xa8(%rsp), %rdx
movq 0x8(%rsp), %rsi
movslq %esi, %rcx
movq (%rdx), %rdx
movq (%rdx,%rcx,8), %rcx
movq 0xb0(%rsp), %rdx
movq %rcx, (%rdx)
movq 0xb8(%rsp), %rcx
movl %eax, (%rcx)
incl %esi
movq 0xc0(%rsp), %rax
movl %esi, (%rax)
movq 0x189bd(%rip), %rdi     # 0x2efc8
leaq 0xddc9(%rip), %rsi      # 0x243db
movl $0x2, %edx
callq 0x31e0
addl $0xa, 0x9c(%rsp)
jmp 0x16547
jmp 0x16636
jmp 0x16631
jmp 0x16636
jmp 0x16631
movq %rax, %r14
jmp 0x1667a
movq %rax, %r14
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x1665e
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x31b0
jmp 0x1665e
jmp 0x1665b
jmp 0x1665b
movq %rax, %r14
leaq 0x40(%rsp), %rax
movq 0x30(%rsp), %rdi
cmpq %rax, %rdi
je 0x1667a
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x31b0
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x166bf
movq 0x80(%rsp), %rsi
jmp 0x166b7
jmp 0x166a0
jmp 0x166a0
jmp 0x166a0
jmp 0x166a0
jmp 0x166a0
movq %rax, %r14
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x166bf
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x31b0
movq %r14, %rdi
callq 0x32f0
nop