// File: /workspace/github_cpp_makefile_star2_O1/MichaelXanth[P]RPG_Game/Market/Market.cpp
// Function: Market::isAbleToBuy(Hero const*, bool const&)
int Market::isAbleToBuy(const Hero* hero, const bool& info = true)
{
    int buyState = 2;
    bool found = false;

    if (hero->GetMoney() == 0) {
        if (info) {
            if (lightingSpellsForSale || fireSpellsForSale || iceSpellsForSale || weaponsForSale || potionsForSale || armorsForSale) {
                
                DisplayMarket(false, hero, 3);
                cerr << endl;
                cerr << "-------------------------------" << endl << endl;
                cerr << "\033[35mWarning:\033[0m Hero \033[38;5;220m" << hero->Living::GetName() << "\033[0m has no money. The minimum required amount is: " << minPrice << endl;
                usleep(2500000);
            
            } else
                cerr << endl << "\033[31mError:\033[0m Hero \033[38;5;220m" << hero->Living::GetName() << "\033[0m has no money. The minimum required amount is: " << minPrice << endl;
        }
        return -1;
    }

    if (hero->GetMoney() < minPrice) {
        if (info) {
            if (lightingSpellsForSale || fireSpellsForSale || iceSpellsForSale || weaponsForSale || potionsForSale || armorsForSale) {

                DisplayMarket(false,hero,3);
                cerr << endl;
                cerr << "-------------------------------" << endl << endl;
                cerr << "\033[35mWarning:\033[0m Hero \033[38;5;220m" << hero->Living::GetName() << "\033[0m doesn't have enough money. The minimum required amount is: " << minPrice << endl;
                usleep(2500000);
            
            } else
                cerr << endl << "\033[31mError:\033[0m Hero \033[38;5;220m" << hero->Living::GetName() << "\033[0m doesn't have enough money. The minimum required amount is: " << minPrice << endl;
        }
        return -1;
    }

    if (hero->GetAvailableItemSlots() == 0 || hero->GetMoney() < minItemPrice) {
        if (hero->GetAvailableSpellSlots() == 0 || hero->GetMoney() < minSpellPrice) {
            if (info) {
                if (lightingSpellsForSale || fireSpellsForSale || iceSpellsForSale || weaponsForSale || potionsForSale || armorsForSale) {
                    
                    DisplayMarket(false,hero,3);
                    cerr << endl;
                    cerr << "-------------------------------" << endl << endl;
                    cerr << "\033[35mWarning:\033[0m Hero \033[38;5;220m" << hero->Living::GetName() << "\033[0m doesn't have any other available Item and Spell slots." << endl;
                    usleep(2500000);
                
                } else
                    cerr << endl << "\033[31mError:\033[0m Hero \033[38;5;220m" << hero->Living::GetName() << "\033[0m doesn't have enough money. The minimum required amount is: " << minPrice << endl;
            }
            return -1;
        }
        buyState = 0;   //Means that he can buy Spells only
    
    } else if (hero->GetAvailableSpellSlots() == 0 || hero->GetMoney() < minSpellPrice) {
        buyState = 1;   //Means that he can buy Items only
    }

    if (buyState != 1) {
        
        unsigned int i;

        for (i = 0; i < iceSpellsArray.size() && !canBeBought(iceSpellsArray[i],hero); i++)
            ;
        if (i < iceSpellsArray.size())
            found = true;

        for (i = 0; i < fireSpellsArray.size() && !canBeBought(fireSpellsArray[i],hero); i++)
            ;
        if (i < fireSpellsArray.size())
            found = true;

        for (i = 0; i < lightingSpellsArray.size() && !canBeBought(lightingSpellsArray[i],hero); i++)
            ;
        if (i < lightingSpellsArray.size())
            found = true;
    }

    if (buyState != 0) {

        unsigned int i;

        for (i = 0; i < weaponsArray.size() && !canBeBought(weaponsArray[i],hero); i++)
            ;
        if (i < weaponsArray.size())
            found = true;

        for (i = 0; i < armorsArray.size() && !canBeBought(armorsArray[i],hero); i++)
            ;
        if (i < armorsArray.size())
            found = true;

        for (i = 0; i < potionsArray.size() && !canBeBought(potionsArray[i],hero); i++)
            ;
        if (i < potionsArray.size())
            found = true;
    }

    if (!found) {
        if (info) {
            cerr << endl << "\033[31mError:\033[0m There are no available Items or Spells for Hero \033[38;5;220m" << hero->Living::GetName() << "\033[0m to buy." << endl;
            usleep(3000000);
        }
        return -1;
    }

    return buyState;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rdx, %r12
movq %rsi, %r14
movq %rdi, %r15
movq %rsi, %rdi
callq 0x10afe
testl %eax, %eax
je 0x1aef3
movq %r14, %rdi
callq 0x10afe
cmpl 0x1e8(%r15), %eax
jae 0x1b011
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
cmpb $0x1, (%r12)
jne 0x1b905
cmpl $0x0, 0x1c8(%r15)
jne 0x1b2e8
cmpl $0x0, 0x1cc(%r15)
jne 0x1b2e8
cmpl $0x0, 0x1d0(%r15)
jne 0x1b2e8
cmpl $0x0, 0x1d4(%r15)
jne 0x1b2e8
cmpl $0x0, 0x1d8(%r15)
jne 0x1b2e8
cmpl $0x0, 0x1dc(%r15)
jne 0x1b2e8
movq 0x141b0(%rip), %r12     # 0x2eff0
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x3190
movsbl %al, %esi
movq %r12, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3100
movq %rax, %r12
leaq 0xc404(%rip), %rsi      # 0x27276
movl $0x20, %edx
movq %rax, %rdi
callq 0x31e0
leaq -0x50(%rbp), %r13
movq %r13, %rdi
movq %r14, %rsi
callq 0x108c2
movq (%r13), %rsi
movq 0x8(%r13), %rdx
movq %r12, %rdi
callq 0x31e0
movq %rax, %r14
leaq 0xc3ef(%rip), %rsi      # 0x27297
movl $0x40, %edx
movq %rax, %rdi
callq 0x31e0
movl 0x1e8(%r15), %esi
movq %r14, %rdi
callq 0x30f0
movq %rax, %r14
movq (%rax), %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
jmp 0x1b16c
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
cmpb $0x1, (%r12)
jne 0x1b905
cmpl $0x0, 0x1c8(%r15)
jne 0x1b1b4
cmpl $0x0, 0x1cc(%r15)
jne 0x1b1b4
cmpl $0x0, 0x1d0(%r15)
jne 0x1b1b4
cmpl $0x0, 0x1d4(%r15)
jne 0x1b1b4
cmpl $0x0, 0x1d8(%r15)
jne 0x1b1b4
cmpl $0x0, 0x1dc(%r15)
jne 0x1b1b4
movq 0x14092(%rip), %r12     # 0x2eff0
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x3190
movsbl %al, %esi
movq %r12, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3100
movq %rax, %r12
leaq 0xc2e6(%rip), %rsi      # 0x27276
movl $0x20, %edx
movq %rax, %rdi
callq 0x31e0
leaq -0x50(%rbp), %r13
movq %r13, %rdi
movq %r14, %rsi
callq 0x108c2
movq (%r13), %rsi
movq 0x8(%r13), %rdx
movq %r12, %rdi
callq 0x31e0
movq %rax, %r14
leaq 0xc27c(%rip), %rsi      # 0x27242
movl $0x33, %edx
movq %rax, %rdi
callq 0x31e0
movl 0x1e8(%r15), %esi
movq %r14, %rdi
callq 0x30f0
movq %rax, %r14
movq (%rax), %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
jmp 0x1b16c
movq %r14, %rdi
callq 0x10ade
testl %eax, %eax
je 0x1b032
movq %r14, %rdi
callq 0x10afe
cmpl 0x1e4(%r15), %eax
jae 0x1b187
movq %r14, %rdi
callq 0x10ad6
testl %eax, %eax
je 0x1b053
movq %r14, %rdi
callq 0x10afe
cmpl 0x1e0(%r15), %eax
jae 0x1b41c
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
cmpb $0x1, (%r12)
jne 0x1b905
cmpl $0x0, 0x1c8(%r15)
jne 0x1b427
cmpl $0x0, 0x1cc(%r15)
jne 0x1b427
cmpl $0x0, 0x1d0(%r15)
jne 0x1b427
cmpl $0x0, 0x1d4(%r15)
jne 0x1b427
cmpl $0x0, 0x1d8(%r15)
jne 0x1b427
cmpl $0x0, 0x1dc(%r15)
jne 0x1b427
movq 0x13f32(%rip), %r12     # 0x2eff0
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x3190
movsbl %al, %esi
movq %r12, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3100
movq %rax, %r12
leaq 0xc186(%rip), %rsi      # 0x27276
movl $0x20, %edx
movq %rax, %rdi
callq 0x31e0
leaq -0x50(%rbp), %r13
movq %r13, %rdi
movq %r14, %rsi
callq 0x108c2
movq (%r13), %rsi
movq 0x8(%r13), %rdx
movq %r12, %rdi
callq 0x31e0
movq %rax, %r14
leaq 0xc171(%rip), %rsi      # 0x27297
movl $0x40, %edx
movq %rax, %rdi
callq 0x31e0
movl 0x1e8(%r15), %esi
movq %r14, %rdi
callq 0x30f0
movq %rax, %r14
movq (%rax), %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 -0x40(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1b905
callq 0x3170
jmp 0x1b905
movq %r14, %rdi
callq 0x10ad6
testl %eax, %eax
je 0x1b1a8
movq %r14, %rdi
callq 0x10afe
cmpl 0x1e0(%r15), %eax
jae 0x1b564
movl $0x1, %ebx
movb $0x1, %al
jmp 0x1b56b
leaq -0x50(%rbp), %rsi
movb $0x0, (%rsi)
movq %r15, %rdi
movq %r14, %rdx
movl $0x3, %ecx
callq 0x1b940
movq 0x13e1e(%rip), %r12     # 0x2eff0
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x3190
movsbl %al, %esi
movq %r12, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3100
leaq 0xc021(%rip), %rsi      # 0x27222
movl $0x1f, %edx
movq %r12, %rdi
callq 0x31e0
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x3190
movsbl %al, %esi
movq %r12, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3100
movq %rax, %r13
movq (%rax), %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
leaq 0x91d8(%rip), %rsi      # 0x2443f
movl $0x22, %edx
movq %r12, %rdi
callq 0x31e0
leaq -0x50(%rbp), %r13
movq %r13, %rdi
movq %r14, %rsi
callq 0x108c2
movq (%r13), %rsi
movq 0x8(%r13), %rdx
movq %r12, %rdi
callq 0x31e0
movq %rax, %r14
leaq 0xbfa5(%rip), %rsi      # 0x27242
movl $0x33, %edx
movq %rax, %rdi
callq 0x31e0
movl 0x1e8(%r15), %esi
movq %r14, %rdi
callq 0x30f0
movq %rax, %r14
movq (%rax), %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
jmp 0x1b543
leaq -0x50(%rbp), %rsi
movb $0x0, (%rsi)
movq %r15, %rdi
movq %r14, %rdx
movl $0x3, %ecx
callq 0x1b940
movq 0x13cea(%rip), %r12     # 0x2eff0
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x3190
movsbl %al, %esi
movq %r12, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3100
leaq 0xbeed(%rip), %rsi      # 0x27222
movl $0x1f, %edx
movq %r12, %rdi
callq 0x31e0
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x3190
movsbl %al, %esi
movq %r12, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3100
movq %rax, %r13
movq (%rax), %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
leaq 0x90a4(%rip), %rsi      # 0x2443f
movl $0x22, %edx
movq %r12, %rdi
callq 0x31e0
leaq -0x50(%rbp), %r13
movq %r13, %rdi
movq %r14, %rsi
callq 0x108c2
movq (%r13), %rsi
movq 0x8(%r13), %rdx
movq %r12, %rdi
callq 0x31e0
movq %rax, %r14
leaq 0xbec6(%rip), %rsi      # 0x27297
movl $0x40, %edx
movq %rax, %rdi
callq 0x31e0
movl 0x1e8(%r15), %esi
movq %r14, %rdi
callq 0x30f0
movq %rax, %r14
movq (%rax), %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
jmp 0x1b543
xorl %eax, %eax
movb $0x1, %cl
xorl %ebx, %ebx
jmp 0x1b56d
leaq -0x50(%rbp), %rsi
movb $0x0, (%rsi)
movq %r15, %rdi
movq %r14, %rdx
movl $0x3, %ecx
callq 0x1b940
movq 0x13bab(%rip), %r15     # 0x2eff0
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x3190
movsbl %al, %esi
movq %r15, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3100
leaq 0xbdaf(%rip), %rsi      # 0x27222
movl $0x1f, %edx
movq %r15, %rdi
callq 0x31e0
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x3190
movsbl %al, %esi
movq %r15, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3100
movq %rax, %r12
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x3190
movsbl %al, %esi
movq %r12, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3100
leaq 0x8f67(%rip), %rsi      # 0x2443f
movl $0x22, %edx
movq %r15, %rdi
callq 0x31e0
leaq -0x50(%rbp), %r12
movq %r12, %rdi
movq %r14, %rsi
callq 0x108c2
movq (%r12), %rsi
movq 0x8(%r12), %rdx
movq %r15, %rdi
callq 0x31e0
movq %rax, %r14
leaq 0xbdc9(%rip), %rsi      # 0x272d8
movl $0x3b, %edx
movq %rax, %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 -0x40(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1b555
callq 0x3170
movl $0x2625a0, %edi         # imm = 0x2625A0
callq 0x3260
jmp 0x1b905
movl $0x2, %ebx
xorl %eax, %eax
xorl %ecx, %ecx
testb %al, %al
movl %ebx, -0x54(%rbp)
movq %r14, -0x30(%rbp)
movq %r12, -0x78(%rbp)
je 0x1b583
xorl %edx, %edx
jmp 0x1b6d0
movl %ecx, -0x70(%rbp)
movq 0xd8(%r15), %rax
cmpq %rax, 0xe0(%r15)
je 0x1b5cf
movl $0x1, %ebx
xorl %r13d, %r13d
movq (%rax,%r13,8), %rsi
movq %r14, %rdx
callq 0x1fa50
testb %al, %al
jne 0x1b5d2
movl %ebx, %r13d
movq 0xd8(%r15), %rax
movq 0xe0(%r15), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
incl %ebx
cmpq %r13, %rcx
ja 0x1b59e
jmp 0x1b5d2
xorl %r13d, %r13d
movq 0xe0(%r15), %rax
subq 0xd8(%r15), %rax
movq %rax, -0x60(%rbp)
movq 0xc0(%r15), %rax
cmpq %rax, 0xc8(%r15)
je 0x1b62d
movl $0x1, %ebx
xorl %r12d, %r12d
movq (%rax,%r12,8), %rsi
movq %r14, %rdx
callq 0x1fa50
testb %al, %al
jne 0x1b630
movl %ebx, %r12d
movq 0xc0(%r15), %rax
movq 0xc8(%r15), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
incl %ebx
cmpq %r12, %rcx
ja 0x1b5fc
jmp 0x1b630
xorl %r12d, %r12d
sarq $0x3, -0x60(%rbp)
movq 0xc8(%r15), %rax
subq 0xc0(%r15), %rax
sarq $0x3, %rax
movq %rax, -0x68(%rbp)
movq 0xa8(%r15), %rax
cmpq %rax, 0xb0(%r15)
je 0x1b696
movl $0x1, %r14d
xorl %ebx, %ebx
movq (%rax,%rbx,8), %rsi
movq -0x30(%rbp), %rdx
callq 0x1fa50
testb %al, %al
jne 0x1b698
movl %r14d, %ebx
movq 0xa8(%r15), %rax
movq 0xb0(%r15), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
incl %r14d
cmpq %rbx, %rcx
ja 0x1b663
jmp 0x1b698
xorl %ebx, %ebx
cmpq %r12, -0x68(%rbp)
seta %al
cmpq %r13, -0x60(%rbp)
seta %dl
movq 0xb0(%r15), %rcx
subq 0xa8(%r15), %rcx
sarq $0x3, %rcx
cmpq %rbx, %rcx
seta %cl
orb %al, %dl
orb %cl, %dl
movl -0x54(%rbp), %ebx
movq -0x30(%rbp), %r14
movq -0x78(%rbp), %r12
movl -0x70(%rbp), %ecx
testb %cl, %cl
jne 0x1b82e
movl %edx, -0x60(%rbp)
movq 0xf0(%r15), %rax
cmpq %rax, 0xf8(%r15)
je 0x1b726
movl $0x1, %r14d
xorl %ebx, %ebx
movq (%rax,%rbx,8), %rsi
movq -0x30(%rbp), %rdx
callq 0x1faa2
testb %al, %al
jne 0x1b728
movl %r14d, %ebx
movq 0xf0(%r15), %rax
movq 0xf8(%r15), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
incl %r14d
cmpq %rbx, %rcx
ja 0x1b6f3
jmp 0x1b728
xorl %ebx, %ebx
movq 0xf8(%r15), %r13
movq 0x120(%r15), %rax
subq 0xf0(%r15), %r13
cmpq %rax, 0x128(%r15)
je 0x1b782
movl $0x1, %r14d
xorl %r12d, %r12d
movq (%rax,%r12,8), %rsi
movq -0x30(%rbp), %rdx
callq 0x1faa2
testb %al, %al
jne 0x1b785
movl %r14d, %r12d
movq 0x120(%r15), %rax
movq 0x128(%r15), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
incl %r14d
cmpq %r12, %rcx
ja 0x1b74f
jmp 0x1b785
xorl %r12d, %r12d
sarq $0x3, %r13
movq %r13, -0x70(%rbp)
movq 0x128(%r15), %rax
subq 0x120(%r15), %rax
sarq $0x3, %rax
movq %rax, -0x68(%rbp)
movq 0x108(%r15), %rax
cmpq %rax, 0x110(%r15)
je 0x1b7ef
movl $0x1, %r14d
xorl %r13d, %r13d
movq (%rax,%r13,8), %rsi
movq -0x30(%rbp), %rdx
callq 0x1faa2
testb %al, %al
jne 0x1b7f2
movl %r14d, %r13d
movq 0x108(%r15), %rax
movq 0x110(%r15), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
incl %r14d
cmpq %r13, %rcx
ja 0x1b7bc
jmp 0x1b7f2
xorl %r13d, %r13d
movq 0x110(%r15), %rax
subq 0x108(%r15), %rax
sarq $0x3, %rax
cmpq %rbx, -0x70(%rbp)
movl -0x60(%rbp), %edx
movzbl %dl, %edx
movl $0x1, %ecx
cmoval %ecx, %edx
cmpq %r12, -0x68(%rbp)
cmoval %ecx, %edx
cmpq %r13, %rax
cmoval %ecx, %edx
movl -0x54(%rbp), %ebx
movq -0x30(%rbp), %r14
movq -0x78(%rbp), %r12
testb %dl, %dl
jne 0x1b905
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
cmpb $0x1, (%r12)
jne 0x1b905
movq 0x137a3(%rip), %r15     # 0x2eff0
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x3190
movsbl %al, %esi
movq %r15, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3100
movq %rax, %r15
leaq 0xba96(%rip), %rsi      # 0x27314
movl $0x4b, %edx
movq %rax, %rdi
callq 0x31e0
leaq -0x50(%rbp), %r12
movq %r12, %rdi
movq %r14, %rsi
callq 0x108c2
movq (%r12), %rsi
movq 0x8(%r12), %rdx
movq %r15, %rdi
callq 0x31e0
movq %rax, %r14
leaq 0xbaab(%rip), %rsi      # 0x27360
movl $0xc, %edx
movq %rax, %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 -0x40(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1b8fb
callq 0x3170
movl $0x2dc6c0, %edi         # imm = 0x2DC6C0
jmp 0x1b55a
movl %ebx, %eax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x1b922
jmp 0x1b922
jmp 0x1b922
jmp 0x1b922
jmp 0x1b922
jmp 0x1b922
movq %rax, %rbx
leaq -0x40(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1b937
callq 0x3170
movq %rbx, %rdi
callq 0x32f0
nop