// File: /workspace/github_cpp_makefile_star2_O1/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 0x1fbff(%rip), %r14     # 0x2efc8
leaq 0x15000(%rip), %rsi     # 0x243d0
movl $0xa, %edx
movq %r14, %rdi
callq 0x31e0
leaq 0x1549a(%rip), %rsi     # 0x2487e
movl $0x3, %edx
movq %r14, %rdi
callq 0x31e0
leaq 0x15590(%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 0xf514
xorl %r13d, %r13d
leaq 0x153c7(%rip), %r12     # 0x24808
leaq 0x155ef(%rip), %rbx     # 0x24a37
movl $0xc, %edx
movq %r14, %rdi
leaq 0x155b2(%rip), %rsi     # 0x24a09
callq 0x31e0
cmpl $0x0, (%r15)
jle 0xf4c9
xorl %ebp, %ebp
movq 0x10(%r15), %rax
movq (%rax,%r13,8), %rax
movzbl (%rax,%rbp), %eax
cmpl $0x58, %eax
je 0xf49d
cmpl $0x4d, %eax
je 0xf48c
cmpl $0x20, %eax
jne 0xf4ae
movl $0x2, %edx
movq %r14, %rdi
movq %r12, %rsi
jmp 0xf4b9
movl $0x10, %edx
movq %r14, %rdi
leaq 0x1558b(%rip), %rsi     # 0x24a26
jmp 0xf4b9
movl $0xf, %edx
movq %r14, %rdi
leaq 0x1556a(%rip), %rsi     # 0x24a16
jmp 0xf4b9
movl $0x10, %edx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x31e0
incq %rbp
movslq (%r15), %rax
cmpq %rax, %rbp
jl 0xf464
movl $0xa, %edx
movq %r14, %rdi
leaq 0x160bb(%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 0xf448
leaq 0x1546d(%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 0x154f2(%rip), %rsi     # 0x24a48
movl $0x71, %edx
movq %r14, %rdi
callq 0x31e0
leaq 0x15550(%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 0x15567(%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 0x152c8(%rip), %rsi     # 0x248a8
movl $0x3, %edx
movq %r14, %rdi
callq 0x31e0
movq (%rsp), %rbx
movq 0x8(%rbx), %rax
cmpq (%rbx), %rax
je 0x10014
leaq 0x78(%rsp), %rbp
xorl %r13d, %r13d
movl $0xffffff4f, %r15d      # imm = 0xFFFFFF4F
movl $0x3f, %edx
movq %r14, %rdi
leaq 0x1557f(%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 0x15584(%rip), %rsi     # 0x24bda
callq 0x31e0
movl $0x1a, %edx
movq %r14, %rdi
leaq 0x14ee6(%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 0x108c2
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %r14, %rdi
callq 0x31e0
movq %rax, %rbx
movl $0xa, %edx
movq %rax, %rdi
leaq 0x15ecb(%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 0xf718
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x31b0
movl $0x10, %edx
movq %r14, %rdi
leaq 0x154b3(%rip), %r15     # 0x24bda
movq %r15, %rsi
callq 0x31e0
movl $0xf, %edx
movq %r14, %rdi
leaq 0x14e2d(%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 0x108f0
movl %eax, %esi
movq %r14, %rdi
callq 0x30f0
movq %rax, %rbx
movl $0xa, %edx
movq %rax, %rdi
leaq 0x15e00(%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 0x10904
movl %eax, %ebx
movl $0x1, %eax
cmpl $0xa, %ebx
movq %r12, %rbp
jb 0xf82f
movl $0x4, %eax
movl %ebx, %ecx
movl $0xd1b71759, %esi       # imm = 0xD1B71759
cmpl $0x63, %ecx
jbe 0xf828
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0xf82d
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0xf82f
movl %ecx, %edx
imulq %rsi, %rdx
shrq $0x2d, %rdx
addl $0x4, %eax
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0xf7f7
addl $-0x3, %eax
jmp 0xf82f
addl $-0x2, %eax
jmp 0xf82f
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 0xef57
movq %r15, %rdi
leaq 0x14c75(%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 0xf896
movq %rdx, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
jmp 0xf89c
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 0x108fa
movl %eax, %ebx
movl $0x1, %eax
cmpl $0xa, %ebx
jb 0xf910
movl $0x4, %eax
movl %ebx, %ecx
movl $0xd1b71759, %esi       # imm = 0xD1B71759
cmpl $0x63, %ecx
jbe 0xf909
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0xf90e
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0xf910
movl %ecx, %edx
imulq %rsi, %rdx
shrq $0x2d, %rdx
addl $0x4, %eax
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0xf8d8
addl $-0x3, %eax
jmp 0xf910
addl $-0x2, %eax
jmp 0xf910
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 0xef57
movq 0x48(%rsp), %rcx
movl $0xf, %esi
leaq 0x58(%rsp), %rax
cmpq %rax, %rcx
je 0xf951
movq 0x58(%rsp), %rsi
movq 0x50(%rsp), %r8
movq 0x30(%rsp), %rdx
leaq (%rdx,%r8), %rax
cmpq %rsi, %rax
movq (%rsp), %rbx
jbe 0xf983
movl $0xf, %esi
leaq 0x38(%rsp), %rdi
cmpq %rdi, 0x28(%rsp)
je 0xf97e
movq 0x38(%rsp), %rsi
cmpq %rsi, %rax
jbe 0xf994
movq 0x28(%rsp), %rsi
leaq 0x48(%rsp), %rdi
callq 0x3080
jmp 0xf9a2
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 0xf9c7
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0xf9cd
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 0xfa06
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x31b0
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0xfa22
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x31b0
movq 0x68(%rsp), %rdi
cmpq %rbp, %rdi
je 0xfa39
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x31b0
movq (%rbx), %rax
movq (%rax,%r13,8), %rdi
callq 0x10904
movl %eax, %ebx
movq (%rsp), %rax
movq (%rax), %rax
movq (%rax,%r13,8), %rdi
callq 0x108fa
movl %ebx, %ecx
xorps %xmm0, %xmm0
cvtsi2sd %rcx, %xmm0
movl %eax, %eax
cvtsi2sd %rax, %xmm1
mulsd 0x14888(%rip), %xmm1    # 0x242f8
movl $0x18, %edx
ucomisd %xmm1, %xmm0
leaq 0x14afb(%rip), %rsi     # 0x2457b
jae 0xfae3
movq (%rsp), %rax
movq (%rax), %rax
movq (%rax,%r13,8), %rdi
callq 0x10904
movl %eax, %ebx
movq (%rsp), %rax
movq (%rax), %rax
movq (%rax,%r13,8), %rdi
callq 0x108fa
movl %ebx, %ecx
xorps %xmm0, %xmm0
cvtsi2sd %rcx, %xmm0
movl %eax, %eax
xorps %xmm1, %xmm1
cvtsi2sd %rax, %xmm1
mulsd 0x14840(%rip), %xmm1    # 0x24300
xorl %eax, %eax
ucomisd %xmm1, %xmm0
setae %al
leaq 0x14ac4(%rip), %rsi     # 0x24594
leaq 0x14ad8(%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 0x15a60(%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 0x1506c(%rip), %rsi     # 0x24bda
callq 0x31e0
movl $0xf, %edx
movq %r14, %rdi
leaq 0x14a46(%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 0x10af6
movl %eax, %esi
movq %r14, %rdi
callq 0x30f0
movq %rax, %rbx
movl $0xa, %edx
movq %rax, %rdi
leaq 0x159bc(%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 0x14fc8(%rip), %rsi     # 0x24bda
callq 0x31e0
movl $0xf, %edx
movq %r14, %rdi
leaq 0x14fc5(%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 0x10afe
movl %eax, %esi
movq %r14, %rdi
callq 0x30f0
movq %rax, %rbx
movl $0xa, %edx
movq %rax, %rdi
leaq 0x15918(%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 0x14f24(%rip), %rsi     # 0x24bda
callq 0x31e0
movl $0xf, %edx
movq %r14, %rdi
leaq 0x1490e(%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 0x10abc
movl %eax, %esi
movq %r14, %rdi
callq 0x30f0
movq %rax, %rbx
movl $0xa, %edx
movq %rax, %rdi
leaq 0x15874(%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 0x14e80(%rip), %rsi     # 0x24bda
callq 0x31e0
movl $0xf, %edx
movq %r14, %rdi
leaq 0x1487a(%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 0x10ac4
movl %eax, %esi
movq %r14, %rdi
callq 0x30f0
movq %rax, %rbx
movl $0xa, %edx
movq %rax, %rdi
leaq 0x157d0(%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 0x14ddc(%rip), %rsi     # 0x24bda
callq 0x31e0
movl $0xf, %edx
movq %r14, %rdi
leaq 0x147e6(%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 0x10acc
cvtss2sd %xmm0, %xmm0
movq %r14, %rdi
callq 0x32a0
movq %rax, %rbx
movl $0xa, %edx
movq %rax, %rdi
leaq 0x1572a(%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 0x14d36(%rip), %rsi     # 0x24bda
callq 0x31e0
movl $0xf, %edx
movq %r14, %rdi
leaq 0x14750(%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 0x11850
movl %eax, %esi
movq %r14, %rdi
callq 0x30f0
movq %rax, %rbx
movl $0xa, %edx
movq %rax, %rdi
leaq 0x15686(%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 0x14c92(%rip), %rsi     # 0x24bda
callq 0x31e0
movl $0xf, %edx
movq %r14, %rdi
leaq 0x146bc(%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 0x11834
movl %eax, %esi
movq %r14, %rdi
callq 0x30f0
movq %rax, %rbx
movl $0xa, %edx
movq %rax, %rdi
leaq 0x155e2(%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 0xfff9
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 0xf60c
leaq 0x14b7f(%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 0x14385(%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 0x16f35(%rip), %rsi     # 0x26fba
movl $0x1, %edx
movq %rax, %rdi
callq 0x31e0
movq 0x8(%rbx), %rax
subq (%rbx), %rax
cmpq $0x18, %rax
jne 0x100b7
movq 0x1ef22(%rip), %rdi     # 0x2efc8
leaq 0x14b4e(%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 0x1010e
movq %rax, %rbx
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x100f2
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x31b0
jmp 0x100f2
movq %rax, %rbx
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x1010e
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x31b0
movq 0x68(%rsp), %rdi
cmpq %r12, %rdi
je 0x10140
movq 0x78(%rsp), %rsi
jmp 0x10138
jmp 0x10121
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x10140
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x31b0
movq %rbx, %rdi
callq 0x32f0