// File: /workspace/github_cpp_makefile_star2_O3/MichaelXanth[P]RPG_Game/Grid/Grid.cpp
// Function: Grid::DisplayGrid(std::vector<Hero*, std::allocator<Hero*>>&)
void Grid::DisplayGrid(vector<Hero *>& heroes)/*displays non-accessible blocks with red , the market with yellow and the heroes with green*/
{
    cout << "\033[2J\033[1;1H";
    cout << "\033[s";
    cout << "\033[1;33m+\033[0;34m====================================================================================================\033[1;33m+\033[34m" << endl;
    
    for(int i = 0; i < verticalSize; i++) {
        cout << "\033[0;34m|\033[0m";
        for(int j = 0; j < horizontalSize; j++) {
            if(grid[i][j] == ' ')
                cout << "  ";
            else if(grid[i][j] == 'X')
                cout << "\033[48;5;9m  \033[0m";
            else if(grid[i][j] == 'M')
                cout << "\033[48;5;11m  \033[0m";
            else
                cout << "\033[48;5;70m  \033[0m";
        }
        cout << "\033[34m|\033[0m" << endl;
    }
    
    cout << "\033[1;33m+\033[0;34m====================================================================================================\033[1;33m+\033[34m" << endl;
    cout << "\033[0;34m|\033[0m \033[48;5;9m  \033[0m -> Non-accessible, \033[48;5;11m  \033[0m -> Market, \033[48;5;70m  \033[0m -> Heroes \033[34m|\033[0m";
    cout << "       Press: \033[1;33mi\033[0m for inventory or \033[1;33mq\033[0m to quit       \033[34m|\033[0m" << endl;
    cout << "\033[1;33m+\033[0;34m--------------------------------------------------\033[1;33m+\033[0;34m-------------------------------------------------\033[1;33m+\033[0m" << endl;

    cout << "\033[u";

    for(int  i = 0; i < heroes.size(); i++)
    {
        cout << "\033[104C\033[1;33m+\033[0;34m==============================\033[1;33m+\033[0m" << endl;

        cout << "\033[104C\033[34m|\033[0m";
        cout << "Name:          \033[38;5;220m";
        cout.width(15);
        cout << left << heroes[i]->GetName() << "\033[34m|\033[0m" << endl;

        cout << "\033[104C\033[34m|\033[0m";
        cout << "Level:         ";
        cout.width(15);
        cout << left << heroes[i]->GetLevel() << "\033[34m|\033[0m" << endl;

        cout << "\033[104C\033[34m|\033[0m";
        string str = to_string(heroes[i]->GetHP()) + "/" + to_string(heroes[i]->GetMaxHP());

        if(heroes[i]->GetHP() >= 2.0 / 3.0 * heroes[i]->GetMaxHP())
            cout << "HP:            \033[38;5;2m";
        else if(heroes[i]->GetHP() >= 1.0 / 3.0 * heroes[i]->GetMaxHP())
            cout << "HP:            \033[38;5;202m";
        else
            cout << "HP:            \033[38;5;9m";

        cout.width(15);
        cout << left << str << "\033[34m|\033[0m" << endl;

        cout << "\033[104C\033[34m|\033[0m";
        cout << "Magic Power:   ";
        cout.width(15);
        cout << left << heroes[i]->GetMagicPower() << "\033[34m|\033[0m" << endl;

        cout << "\033[104C\033[34m|\033[0m";
        cout << "Money:         ";
        cout.width(15);
        cout << left << heroes[i]->GetMoney() << "\033[34m|\033[0m" << endl;

        cout << "\033[104C\033[34m|\033[0m";
        cout << "Strength:      ";
        cout.width(15);
        cout << left << heroes[i]->GetStrength() << "\033[34m|\033[0m" << endl;

        cout << "\033[104C\033[34m|\033[0m";
        cout << "Dexterity:     ";
        cout.width(15);
        cout << left << heroes[i]->GetDexterity() << "\033[34m|\033[0m" << endl;

        cout << "\033[104C\033[34m|\033[0m";
        cout << "Agility:       ";
        cout.width(15);
        cout << left << heroes[i]->GetAgility() << "\033[34m|\033[0m" << endl;

        cout << "\033[104C\033[34m|\033[0m";
        cout << "Armor Defence: ";
        cout.width(15);
        cout << left << heroes[i]->GetArmorDefence() << "\033[34m|\033[0m" << endl;

        cout << "\033[104C\033[34m|\033[0m";
        cout << "Weapon Damage: ";
        cout.width(15);
        cout << left << heroes[i]->GetWeaponDamage() << "\033[34m|\033[0m" << endl;

    }
    cout << "\033[104C\033[1;33m+\033[0;34m==============================\033[1;33m+\033[0m" << endl;

    cout << "\033[" << 33 - 11 * heroes.size() << "B";

    if(heroes.size() == 3)
        cout << "\033[1A";
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rsi, (%rsp)
movq %rdi, %r15
movq 0x1fc9b(%rip), %r14     # 0x2efc8
leaq 0x1509c(%rip), %rsi     # 0x243d0
movl $0xa, %edx
movq %r14, %rdi
callq 0x31e0
leaq 0x15536(%rip), %rsi     # 0x2487e
movl $0x3, %edx
movq %r14, %rdi
callq 0x31e0
leaq 0x1562c(%rip), %rsi     # 0x24988
movl $0x80, %edx
movq %r14, %rdi
callq 0x31e0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x3190
movsbl %al, %esi
movq %r14, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3100
cmpl $0x0, 0x4(%r15)
jle 0xf478
xorl %r13d, %r13d
leaq 0x15463(%rip), %r12     # 0x24808
leaq 0x1568b(%rip), %rbx     # 0x24a37
movl $0xc, %edx
movq %r14, %rdi
leaq 0x1564e(%rip), %rsi     # 0x24a09
callq 0x31e0
cmpl $0x0, (%r15)
jle 0xf42d
xorl %ebp, %ebp
movq 0x10(%r15), %rax
movq (%rax,%r13,8), %rax
movzbl (%rax,%rbp), %eax
cmpl $0x58, %eax
je 0xf401
cmpl $0x4d, %eax
je 0xf3f0
cmpl $0x20, %eax
jne 0xf412
movl $0x2, %edx
movq %r14, %rdi
movq %r12, %rsi
jmp 0xf41d
movl $0x10, %edx
movq %r14, %rdi
leaq 0x15627(%rip), %rsi     # 0x24a26
jmp 0xf41d
movl $0xf, %edx
movq %r14, %rdi
leaq 0x15606(%rip), %rsi     # 0x24a16
jmp 0xf41d
movl $0x10, %edx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x31e0
incq %rbp
movslq (%r15), %rax
cmpq %rax, %rbp
jl 0xf3c8
movl $0xa, %edx
movq %r14, %rdi
leaq 0x16157(%rip), %rsi     # 0x25593
callq 0x31e0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x3190
movsbl %al, %esi
movq %r14, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3100
incq %r13
movslq 0x4(%r15), %rax
cmpq %rax, %r13
jl 0xf3ac
leaq 0x15509(%rip), %rsi     # 0x24988
movl $0x80, %edx
movq %r14, %rdi
callq 0x31e0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x3190
movsbl %al, %esi
movq %r14, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3100
leaq 0x1558e(%rip), %rsi     # 0x24a48
movl $0x71, %edx
movq %r14, %rdi
callq 0x31e0
leaq 0x155ec(%rip), %rsi     # 0x24aba
movl $0x51, %edx
movq %r14, %rdi
callq 0x31e0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x3190
movsbl %al, %esi
movq %r14, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3100
leaq 0x15603(%rip), %rsi     # 0x24b0c
movl $0x8d, %edx
movq %r14, %rdi
callq 0x31e0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x3190
movsbl %al, %esi
movq %r14, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3100
leaq 0x15364(%rip), %rsi     # 0x248a8
movl $0x3, %edx
movq %r14, %rdi
callq 0x31e0
movq (%rsp), %rbx
movq 0x8(%rbx), %rax
cmpq (%rbx), %rax
je 0xff76
leaq 0x78(%rsp), %rbp
xorl %r13d, %r13d
movl $0xffffff4f, %r15d      # imm = 0xFFFFFF4F
movl $0x3f, %edx
movq %r14, %rdi
leaq 0x1561b(%rip), %rsi     # 0x24b9a
callq 0x31e0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x3190
movsbl %al, %esi
movq %r14, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3100
movl $0x10, %edx
movq %r14, %rdi
leaq 0x15620(%rip), %rsi     # 0x24bda
callq 0x31e0
movl $0x1a, %edx
movq %r14, %rdi
leaq 0x14f82(%rip), %rsi     # 0x24550
callq 0x31e0
movq (%r14), %rax
movq -0x18(%rax), %rcx
movq $0xf, 0x10(%r14,%rcx)
movq -0x18(%rax), %rax
movl 0x18(%r14,%rax), %ecx
andl %r15d, %ecx
orl $0x20, %ecx
movl %ecx, 0x18(%r14,%rax)
movq (%rbx), %rax
movq (%rax,%r13,8), %rsi
leaq 0x8(%rsp), %rdi
callq 0x10812
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %r14, %rdi
callq 0x31e0
movq %rax, %rbx
movl $0xa, %edx
movq %rax, %rdi
leaq 0x15f67(%rip), %rsi     # 0x25593
callq 0x31e0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3190
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3100
movl $0xffffff4f, %ebx       # imm = 0xFFFFFF4F
movq %rbp, %r12
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0xf67c
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x31b0
movl $0x10, %edx
movq %r14, %rdi
leaq 0x1554f(%rip), %r15     # 0x24bda
movq %r15, %rsi
callq 0x31e0
movl $0xf, %edx
movq %r14, %rdi
leaq 0x14ec9(%rip), %rsi     # 0x2456b
callq 0x31e0
movq (%r14), %rax
movq -0x18(%rax), %rcx
movq $0xf, 0x10(%r14,%rcx)
movq -0x18(%rax), %rax
movl 0x18(%r14,%rax), %ecx
andl %ebx, %ecx
orl $0x20, %ecx
movl %ecx, 0x18(%r14,%rax)
movq (%rsp), %rbp
movq (%rbp), %rax
movq (%rax,%r13,8), %rdi
callq 0x10840
movl %eax, %esi
movq %r14, %rdi
callq 0x30f0
movq %rax, %rbx
movl $0xa, %edx
movq %rax, %rdi
leaq 0x15e9c(%rip), %rsi     # 0x25593
callq 0x31e0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3190
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3100
movl $0x10, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x31e0
movq (%rbp), %rax
movq (%rax,%r13,8), %rdi
callq 0x10854
movl %eax, %ebx
movl $0x1, %eax
cmpl $0xa, %ebx
movq %r12, %rbp
jb 0xf793
movl $0x4, %eax
movl %ebx, %ecx
movl $0xd1b71759, %esi       # imm = 0xD1B71759
cmpl $0x63, %ecx
jbe 0xf78c
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0xf791
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0xf793
movl %ecx, %edx
imulq %rsi, %rdx
shrq $0x2d, %rdx
addl $0x4, %eax
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0xf75b
addl $-0x3, %eax
jmp 0xf793
addl $-0x2, %eax
jmp 0xf793
decl %eax
movl %eax, %esi
movq %rbp, 0x68(%rsp)
leaq 0x68(%rsp), %r15
movq %r15, %rdi
xorl %edx, %edx
callq 0x31f0
movq 0x68(%rsp), %rdi
movl 0x70(%rsp), %esi
movl %ebx, %edx
callq 0xeebe
movq %r15, %rdi
leaq 0x14d11(%rip), %rsi     # 0x244d4
callq 0x3310
leaq 0x58(%rsp), %rdi
movq %rdi, 0x48(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
movq (%rsp), %rsi
movl $0xffffff4f, %r15d      # imm = 0xFFFFFF4F
je 0xf7fa
movq %rdx, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
jmp 0xf800
movups (%rcx), %xmm0
movups %xmm0, (%rdi)
movq 0x8(%rax), %rdx
movq %rdx, 0x50(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq (%rsi), %rax
movq (%rax,%r13,8), %rdi
callq 0x1084a
movl %eax, %ebx
movl $0x1, %eax
cmpl $0xa, %ebx
jb 0xf874
movl $0x4, %eax
movl %ebx, %ecx
movl $0xd1b71759, %esi       # imm = 0xD1B71759
cmpl $0x63, %ecx
jbe 0xf86d
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0xf872
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0xf874
movl %ecx, %edx
imulq %rsi, %rdx
shrq $0x2d, %rdx
addl $0x4, %eax
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0xf83c
addl $-0x3, %eax
jmp 0xf874
addl $-0x2, %eax
jmp 0xf874
decl %eax
movl %eax, %esi
leaq 0x38(%rsp), %rax
movq %rax, 0x28(%rsp)
leaq 0x28(%rsp), %rdi
xorl %edx, %edx
callq 0x31f0
movq 0x28(%rsp), %rdi
movl 0x30(%rsp), %esi
movl %ebx, %edx
callq 0xeebe
movq 0x48(%rsp), %rcx
movl $0xf, %edi
leaq 0x58(%rsp), %rax
cmpq %rax, %rcx
je 0xf8b5
movq 0x58(%rsp), %rdi
movq 0x50(%rsp), %r8
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
leaq (%rdx,%r8), %rax
cmpq %rdi, %rax
movq (%rsp), %rbx
jbe 0xf8ea
movl $0xf, %edi
leaq 0x38(%rsp), %r9
cmpq %r9, %rsi
je 0xf8e5
movq 0x38(%rsp), %rdi
cmpq %rdi, %rax
jbe 0xf8f6
leaq 0x48(%rsp), %rdi
callq 0x3080
jmp 0xf904
leaq 0x28(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x31d0
leaq 0x18(%rsp), %rsi
movq %rsi, 0x8(%rsp)
movq (%rax), %rdx
leaq 0x10(%rax), %rcx
cmpq %rcx, %rdx
je 0xf929
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0xf92f
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0xf968
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x31b0
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0xf984
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x31b0
movq 0x68(%rsp), %rdi
cmpq %rbp, %rdi
je 0xf99b
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x31b0
movq (%rbx), %rax
movq (%rax,%r13,8), %rdi
callq 0x10854
movl %eax, %ebx
movq (%rsp), %rax
movq (%rax), %rax
movq (%rax,%r13,8), %rdi
callq 0x1084a
movl %ebx, %ecx
xorps %xmm0, %xmm0
cvtsi2sd %rcx, %xmm0
movl %eax, %eax
cvtsi2sd %rax, %xmm1
mulsd 0x14926(%rip), %xmm1    # 0x242f8
movl $0x18, %edx
ucomisd %xmm1, %xmm0
leaq 0x14b99(%rip), %rsi     # 0x2457b
jae 0xfa45
movq (%rsp), %rax
movq (%rax), %rax
movq (%rax,%r13,8), %rdi
callq 0x10854
movl %eax, %ebx
movq (%rsp), %rax
movq (%rax), %rax
movq (%rax,%r13,8), %rdi
callq 0x1084a
movl %ebx, %ecx
xorps %xmm0, %xmm0
cvtsi2sd %rcx, %xmm0
movl %eax, %eax
xorps %xmm1, %xmm1
cvtsi2sd %rax, %xmm1
mulsd 0x148de(%rip), %xmm1    # 0x24300
xorl %eax, %eax
ucomisd %xmm1, %xmm0
setae %al
leaq 0x14b62(%rip), %rsi     # 0x24594
leaq 0x14b76(%rip), %rcx     # 0x245af
cmovbq %rcx, %rsi
leaq 0x18(,%rax,2), %rdx
movq %r14, %rdi
callq 0x31e0
movq (%r14), %rax
movq -0x18(%rax), %rcx
movq $0xf, 0x10(%r14,%rcx)
movq -0x18(%rax), %rax
movl 0x18(%r14,%rax), %ecx
andl %r15d, %ecx
orl $0x20, %ecx
movl %ecx, 0x18(%r14,%rax)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %r14, %rdi
callq 0x31e0
movq %rax, %rbx
movl $0xa, %edx
movq %rax, %rdi
leaq 0x15afe(%rip), %rsi     # 0x25593
callq 0x31e0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3190
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3100
movl $0x10, %edx
movq %r14, %rdi
leaq 0x1510a(%rip), %rsi     # 0x24bda
callq 0x31e0
movl $0xf, %edx
movq %r14, %rdi
leaq 0x14ae4(%rip), %rsi     # 0x245c8
callq 0x31e0
movq (%r14), %rax
movq -0x18(%rax), %rcx
movq $0xf, 0x10(%r14,%rcx)
movq -0x18(%rax), %rax
movl 0x18(%r14,%rax), %ecx
andl %r15d, %ecx
orl $0x20, %ecx
movl %ecx, 0x18(%r14,%rax)
movq (%rsp), %rax
movq (%rax), %rax
movq (%rax,%r13,8), %rdi
callq 0x10a46
movl %eax, %esi
movq %r14, %rdi
callq 0x30f0
movq %rax, %rbx
movl $0xa, %edx
movq %rax, %rdi
leaq 0x15a5a(%rip), %rsi     # 0x25593
callq 0x31e0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3190
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3100
movl $0x10, %edx
movq %r14, %rdi
leaq 0x15066(%rip), %rsi     # 0x24bda
callq 0x31e0
movl $0xf, %edx
movq %r14, %rdi
leaq 0x15063(%rip), %rsi     # 0x24beb
callq 0x31e0
movq (%r14), %rax
movq -0x18(%rax), %rcx
movq $0xf, 0x10(%r14,%rcx)
movq -0x18(%rax), %rax
movl 0x18(%r14,%rax), %ecx
andl %r15d, %ecx
orl $0x20, %ecx
movl %ecx, 0x18(%r14,%rax)
movq (%rsp), %rax
movq (%rax), %rax
movq (%rax,%r13,8), %rdi
callq 0x10a4e
movl %eax, %esi
movq %r14, %rdi
callq 0x30f0
movq %rax, %rbx
movl $0xa, %edx
movq %rax, %rdi
leaq 0x159b6(%rip), %rsi     # 0x25593
callq 0x31e0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3190
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3100
movl $0x10, %edx
movq %r14, %rdi
leaq 0x14fc2(%rip), %rsi     # 0x24bda
callq 0x31e0
movl $0xf, %edx
movq %r14, %rdi
leaq 0x149ac(%rip), %rsi     # 0x245d8
callq 0x31e0
movq (%r14), %rax
movq -0x18(%rax), %rcx
movq $0xf, 0x10(%r14,%rcx)
movq -0x18(%rax), %rax
movl 0x18(%r14,%rax), %ecx
andl %r15d, %ecx
orl $0x20, %ecx
movl %ecx, 0x18(%r14,%rax)
movq (%rsp), %rax
movq (%rax), %rax
movq (%rax,%r13,8), %rdi
callq 0x10a0c
movl %eax, %esi
movq %r14, %rdi
callq 0x30f0
movq %rax, %rbx
movl $0xa, %edx
movq %rax, %rdi
leaq 0x15912(%rip), %rsi     # 0x25593
callq 0x31e0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3190
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3100
movl $0x10, %edx
movq %r14, %rdi
leaq 0x14f1e(%rip), %rsi     # 0x24bda
callq 0x31e0
movl $0xf, %edx
movq %r14, %rdi
leaq 0x14918(%rip), %rsi     # 0x245e8
callq 0x31e0
movq (%r14), %rax
movq -0x18(%rax), %rcx
movq $0xf, 0x10(%r14,%rcx)
movq -0x18(%rax), %rax
movl 0x18(%r14,%rax), %ecx
andl %r15d, %ecx
orl $0x20, %ecx
movl %ecx, 0x18(%r14,%rax)
movq (%rsp), %rax
movq (%rax), %rax
movq (%rax,%r13,8), %rdi
callq 0x10a14
movl %eax, %esi
movq %r14, %rdi
callq 0x30f0
movq %rax, %rbx
movl $0xa, %edx
movq %rax, %rdi
leaq 0x1586e(%rip), %rsi     # 0x25593
callq 0x31e0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3190
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3100
movl $0x10, %edx
movq %r14, %rdi
leaq 0x14e7a(%rip), %rsi     # 0x24bda
callq 0x31e0
movl $0xf, %edx
movq %r14, %rdi
leaq 0x14884(%rip), %rsi     # 0x245f8
callq 0x31e0
movq (%r14), %rax
movq -0x18(%rax), %rcx
movq $0xf, 0x10(%r14,%rcx)
movq -0x18(%rax), %rax
movl 0x18(%r14,%rax), %ecx
andl %r15d, %ecx
orl $0x20, %ecx
movl %ecx, 0x18(%r14,%rax)
movq (%rsp), %rax
movq (%rax), %rax
movq (%rax,%r13,8), %rdi
callq 0x10a1c
cvtss2sd %xmm0, %xmm0
movq %r14, %rdi
callq 0x32a0
movq %rax, %rbx
movl $0xa, %edx
movq %rax, %rdi
leaq 0x157c8(%rip), %rsi     # 0x25593
callq 0x31e0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3190
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3100
movl $0x10, %edx
movq %r14, %rdi
leaq 0x14dd4(%rip), %rsi     # 0x24bda
callq 0x31e0
movl $0xf, %edx
movq %r14, %rdi
leaq 0x147ee(%rip), %rsi     # 0x24608
callq 0x31e0
movq (%r14), %rax
movq -0x18(%rax), %rcx
movq $0xf, 0x10(%r14,%rcx)
movq -0x18(%rax), %rax
movl 0x18(%r14,%rax), %ecx
andl %r15d, %ecx
orl $0x20, %ecx
movl %ecx, 0x18(%r14,%rax)
movq (%rsp), %rax
movq (%rax), %rax
movq (%rax,%r13,8), %rdi
callq 0x11806
movl %eax, %esi
movq %r14, %rdi
callq 0x30f0
movq %rax, %rbx
movl $0xa, %edx
movq %rax, %rdi
leaq 0x15724(%rip), %rsi     # 0x25593
callq 0x31e0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3190
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3100
movl $0x10, %edx
movq %r14, %rdi
leaq 0x14d30(%rip), %rsi     # 0x24bda
callq 0x31e0
movl $0xf, %edx
movq %r14, %rdi
leaq 0x1475a(%rip), %rsi     # 0x24618
callq 0x31e0
movq (%r14), %rax
movq -0x18(%rax), %rcx
movq $0xf, 0x10(%r14,%rcx)
movq -0x18(%rax), %rax
movl 0x18(%r14,%rax), %ecx
andl %r15d, %ecx
orl $0x20, %ecx
movl %ecx, 0x18(%r14,%rax)
movq (%rsp), %rax
movq (%rax), %rax
movq (%rax,%r13,8), %rdi
callq 0x117ea
movl %eax, %esi
movq %r14, %rdi
callq 0x30f0
movq %rax, %rbx
movl $0xa, %edx
movq %rax, %rdi
leaq 0x15680(%rip), %rsi     # 0x25593
callq 0x31e0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3190
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3100
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0xff5b
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x31b0
incq %r13
movq (%rsp), %rbx
movq 0x8(%rbx), %rax
subq (%rbx), %rax
sarq $0x3, %rax
cmpq %r13, %rax
ja 0xf570
leaq 0x14c1d(%rip), %rsi     # 0x24b9a
movl $0x3f, %edx
movq %r14, %rdi
callq 0x31e0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x3190
movsbl %al, %esi
movq %r14, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3100
leaq 0x14423(%rip), %rsi     # 0x243db
movl $0x2, %edx
movq %r14, %rdi
callq 0x31e0
movq 0x8(%rbx), %rax
subq (%rbx), %rax
sarq $0x3, %rax
imulq $-0xb, %rax, %rsi
addq $0x21, %rsi
movq %r14, %rdi
callq 0x30f0
leaq 0x16fd3(%rip), %rsi     # 0x26fba
movl $0x1, %edx
movq %rax, %rdi
callq 0x31e0
movq 0x8(%rbx), %rax
subq (%rbx), %rax
cmpq $0x18, %rax
jne 0x10019
movq 0x1efc0(%rip), %rdi     # 0x2efc8
leaq 0x14bec(%rip), %rsi     # 0x24bfb
movl $0x4, %edx
callq 0x31e0
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x10070
movq %rax, %rbx
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x10054
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x31b0
jmp 0x10054
movq %rax, %rbx
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x10070
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x31b0
movq 0x68(%rsp), %rdi
cmpq %r12, %rdi
je 0x100a2
movq 0x78(%rsp), %rsi
jmp 0x1009a
jmp 0x10083
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x100a2
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x31b0
movq %rbx, %rdi
callq 0x32f0