// File: Lartu[P]coraldb/source/execute.cpp
// Function: execute_command(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, unsigned int)
int execute_command(std::string &command, unsigned int socket_fd)
{
    std::vector<std::string> tokens;
    std::string current_token = "";
    bool string_open = false;
    for (unsigned int i = 0; i < command.length(); ++i)
    {
        if (command[i] == '\\' && i < command.length() - 1 && command[i + 1] == '"')
        {
            current_token += command[i + 1];
            ++i;
        }
        else if (command[i] == '"')
        {
            string_open = !string_open;
            if (!string_open)
            {
                tokens.push_back(current_token);
                current_token.clear();
            }
        }
        else if (command[i] == ' ' && !string_open)
        {
            if (!current_token.empty())
            {
                tokens.push_back(current_token);
                current_token.clear();
            }
        }
        else
        {
            current_token += command[i];
        }
    }
    if (!current_token.empty())
    {
        tokens.push_back(current_token);
        current_token.clear();
    }

    if (display_tokens)
    {
        std::cerr << "\x1B[97;42m Message Received: " << command.length() << " bytes + \\n \033[0m" << std::endl;
        std::cerr << "\x1B[97;100m" << command << "\033[0m" << std::endl;
        std::cerr << "\x1B[33mThe message contains " << tokens.size() << " tokens.\033[0m" << std::endl;
        for (unsigned int i = 0; i < tokens.size(); ++i)
        {
            std::cerr << "\x1B[32mToken Number " << (i + 1) << ":\033[0m ";
            std::cerr << "\x1B[97;100m" << tokens[i] << "\033[0m" << std::endl;
        }
    }

    // Check for authentication key
    bool authenticated = false;
    if (tokens[0] == "KEY")
    {
        if (tokens.size() < 2)
            return 1;
        std::string received_key = tokens[1];
        std::string comparing_key = database_key;
        bool is_key_equal = true;
        // Fill buffers for full-buffer comparison
        while (received_key.length() < comparing_key.length())
        {
            received_key += ' ';
        }
        while (comparing_key.length() < received_key.length())
        {
            comparing_key += ' ';
        }
        // Compare buffers
        for (size_t i = 0; i < comparing_key.length(); ++i)
        {
            if (comparing_key[i] != received_key[i])
            {
                is_key_equal = false;
            }
        }
        if (is_key_equal)
        {
            authenticated = true;
            tokens.erase(tokens.begin()); // Remove KEY command
            tokens.erase(tokens.begin()); // Remove key
        }
    }

    // If not authenticated, throw error
    if (!authenticated && !database_key.empty())
    {
        srand(time(NULL));
        sleep((rand() % (MAX_WAIT * 10)) * 0.1 + MIN_WAIT); // Wait a random number of seconds
        return 3;
    }

    // If no command was sent, throw error
    if (tokens.empty())
    {
        return 1;
    }

    // Execute command
    if (tokens[0] == "SET")
    {
        if (tokens.size() < 3)
            return 1;
        else
            set_key(tokens[1], tokens[2]);
        return 0;
    }
    else if (tokens[0] == "GET")
    {
        if (tokens.size() < 2)
            return 1;
        std::string value;
        if (read_key(tokens[1], value))
        {
            send(socket_fd, "\"", 1, 0);
            send(socket_fd, value.c_str(), value.length(), 0);
            send(socket_fd, "\"\r\n", 3, 0);
            return 2;
        }
        else
        {
            return 1;
        }
    }
    else if (tokens[0] == "PROBE")
    {
        if (tokens.size() < 2)
            return 1;
        if (probe_key(tokens[1]))
        {
            send(socket_fd, FOUND_MSG, strlen(FOUND_MSG), 0);
        }
        else
        {
            send(socket_fd, NOT_FOUND_MSG, strlen(NOT_FOUND_MSG), 0);
        }
        return 2;
    }
    else if (tokens[0] == "DROP")
    {
        if (tokens.size() < 2)
            return 1;
        drop_key(tokens[1]);
        return 0;
    }
    else if (tokens[0] == "PING")
    {
        return 0;
    }
    else if (tokens[0] == "CHECKPOINT")
    {
        save_datafile();
        return 0;
    }
    else if (tokens[0] == "DEBUG")
    {
        if (tokens.size() < 2)
            return 1;
        if (tokens[1] == "ON")
        {
            display_tokens = true;
            return 0;
        }
        else if (tokens[1] == "OFF")
        {
            display_tokens = false;
            return 0;
        }
        else
        {
            return 1;
        }
    }
    else if (tokens[0] == "SETKEY")
    {
        if (tokens.size() < 2)
            return 1;
        database_key = tokens[1];
        return 0;
    }
    else if (tokens[0] == "DELKEY")
    {
        database_key = "";
        return 0;
    }
    return 1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x2a0, %rsp            # imm = 0x2A0
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
leaq -0x30(%rbp), %rdi
callq 0x61a0
leaq -0x51(%rbp), %rdi
movq %rdi, -0x120(%rbp)
callq 0x3510
movq -0x120(%rbp), %rdx
leaq 0x74be(%rip), %rsi      # 0xb197
leaq -0x50(%rbp), %rdi
callq 0x3410
jmp 0x3ce4
leaq -0x51(%rbp), %rdi
callq 0x3330
movb $0x0, -0x65(%rbp)
movl $0x0, -0x6c(%rbp)
movl -0x6c(%rbp), %eax
movq %rax, -0x128(%rbp)
movq -0x10(%rbp), %rdi
callq 0x3490
movq %rax, %rcx
movq -0x128(%rbp), %rax
cmpq %rcx, %rax
jae 0x3ee9
movq -0x10(%rbp), %rdi
movl -0x6c(%rbp), %eax
movl %eax, %esi
callq 0x3560
movq %rax, -0x130(%rbp)
jmp 0x3d35
movq -0x130(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x5c, %eax
jne 0x3e01
movl -0x6c(%rbp), %eax
movq %rax, -0x138(%rbp)
movq -0x10(%rbp), %rdi
callq 0x3490
movq %rax, %rcx
movq -0x138(%rbp), %rax
subq $0x1, %rcx
cmpq %rcx, %rax
jae 0x3e01
movq -0x10(%rbp), %rdi
movl -0x6c(%rbp), %eax
incl %eax
movl %eax, %esi
callq 0x3560
movq %rax, -0x140(%rbp)
jmp 0x3d8b
movq -0x140(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x22, %eax
jne 0x3e01
movq -0x10(%rbp), %rdi
movl -0x6c(%rbp), %eax
incl %eax
movl %eax, %esi
callq 0x3560
movq %rax, -0x148(%rbp)
jmp 0x3db3
movq -0x148(%rbp), %rax
movsbl (%rax), %esi
leaq -0x50(%rbp), %rdi
callq 0x3220
jmp 0x3dc8
movl -0x6c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x6c(%rbp)
jmp 0x3ed9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
leaq -0x51(%rbp), %rdi
callq 0x3330
jmp 0x4b0f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
jmp 0x4b06
movq -0x10(%rbp), %rdi
movl -0x6c(%rbp), %eax
movl %eax, %esi
callq 0x3560
movq %rax, -0x150(%rbp)
jmp 0x3e18
movq -0x150(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x22, %eax
jne 0x3e54
movb -0x65(%rbp), %al
xorb $-0x1, %al
andb $0x1, %al
movb %al, -0x65(%rbp)
testb $0x1, -0x65(%rbp)
jne 0x3e4f
leaq -0x30(%rbp), %rdi
leaq -0x50(%rbp), %rsi
callq 0x61c0
jmp 0x3e46
leaq -0x50(%rbp), %rdi
callq 0x33c0
jmp 0x3ed7
movq -0x10(%rbp), %rdi
movl -0x6c(%rbp), %eax
movl %eax, %esi
callq 0x3560
movq %rax, -0x158(%rbp)
jmp 0x3e6b
movq -0x158(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x20, %eax
jne 0x3ea7
testb $0x1, -0x65(%rbp)
jne 0x3ea7
leaq -0x50(%rbp), %rdi
callq 0x34d0
testb $0x1, %al
jne 0x3ea5
leaq -0x30(%rbp), %rdi
leaq -0x50(%rbp), %rsi
callq 0x61c0
jmp 0x3e9c
leaq -0x50(%rbp), %rdi
callq 0x33c0
jmp 0x3ed5
movq -0x10(%rbp), %rdi
movl -0x6c(%rbp), %eax
movl %eax, %esi
callq 0x3560
movq %rax, -0x160(%rbp)
jmp 0x3ebe
movq -0x160(%rbp), %rax
movsbl (%rax), %esi
leaq -0x50(%rbp), %rdi
callq 0x3220
jmp 0x3ed3
jmp 0x3ed5
jmp 0x3ed7
jmp 0x3ed9
jmp 0x3edb
movl -0x6c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x6c(%rbp)
jmp 0x3cf8
leaq -0x50(%rbp), %rdi
callq 0x34d0
testb $0x1, %al
jne 0x3f0e
leaq -0x30(%rbp), %rdi
leaq -0x50(%rbp), %rsi
callq 0x61c0
jmp 0x3f05
leaq -0x50(%rbp), %rdi
callq 0x33c0
testb $0x1, 0xd473(%rip)      # 0x11388
je 0x415a
movq 0xd0ce(%rip), %rdi      # 0x10ff0
leaq 0x71ea(%rip), %rsi      # 0xb113
callq 0x3300
movq %rax, -0x168(%rbp)
jmp 0x3f37
movq -0x10(%rbp), %rdi
callq 0x3490
movq -0x168(%rbp), %rdi
movq %rax, %rsi
callq 0x30a0
movq %rax, -0x170(%rbp)
jmp 0x3f58
movq -0x170(%rbp), %rdi
leaq 0x71c9(%rip), %rsi      # 0xb12f
callq 0x3300
movq %rax, -0x178(%rbp)
jmp 0x3f74
movq -0x178(%rbp), %rdi
movq 0xd026(%rip), %rsi      # 0x10fa8
callq 0x3320
jmp 0x3f89
movq 0xd060(%rip), %rdi      # 0x10ff0
leaq 0x71a9(%rip), %rsi      # 0xb140
callq 0x3300
movq %rax, -0x180(%rbp)
jmp 0x3fa5
movq -0x180(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x32a0
movq %rax, -0x188(%rbp)
jmp 0x3fbe
movq -0x188(%rbp), %rdi
leaq 0x716f(%rip), %rsi      # 0xb13b
callq 0x3300
movq %rax, -0x190(%rbp)
jmp 0x3fda
movq -0x190(%rbp), %rdi
movq 0xcfc0(%rip), %rsi      # 0x10fa8
callq 0x3320
jmp 0x3fef
movq 0xcffa(%rip), %rdi      # 0x10ff0
leaq 0x714d(%rip), %rsi      # 0xb14a
callq 0x3300
movq %rax, -0x198(%rbp)
jmp 0x400b
leaq -0x30(%rbp), %rdi
callq 0x6230
movq -0x198(%rbp), %rdi
movq %rax, %rsi
callq 0x30a0
movq %rax, -0x1a0(%rbp)
jmp 0x402c
movq -0x1a0(%rbp), %rdi
leaq 0x712b(%rip), %rsi      # 0xb165
callq 0x3300
movq %rax, -0x1a8(%rbp)
jmp 0x4048
movq -0x1a8(%rbp), %rdi
movq 0xcf52(%rip), %rsi      # 0x10fa8
callq 0x3320
jmp 0x405d
movl $0x0, -0x70(%rbp)
movl -0x70(%rbp), %eax
movq %rax, -0x1b0(%rbp)
leaq -0x30(%rbp), %rdi
callq 0x6230
movq %rax, %rcx
movq -0x1b0(%rbp), %rax
cmpq %rcx, %rax
jae 0x4158
movq 0xcf5f(%rip), %rdi      # 0x10ff0
leaq 0x70da(%rip), %rsi      # 0xb172
callq 0x3300
movq %rax, -0x1b8(%rbp)
jmp 0x40a6
movq -0x1b8(%rbp), %rdi
movl -0x70(%rbp), %esi
incl %esi
callq 0x33f0
movq %rax, -0x1c0(%rbp)
jmp 0x40c0
movq -0x1c0(%rbp), %rdi
leaq 0x70b7(%rip), %rsi      # 0xb185
callq 0x3300
jmp 0x40d5
movq 0xcf14(%rip), %rdi      # 0x10ff0
leaq 0x705d(%rip), %rsi      # 0xb140
callq 0x3300
movq %rax, -0x1c8(%rbp)
jmp 0x40f1
movl -0x70(%rbp), %eax
movl %eax, %esi
leaq -0x30(%rbp), %rdi
callq 0x6250
movq -0x1c8(%rbp), %rdi
movq %rax, %rsi
callq 0x32a0
movq %rax, -0x1d0(%rbp)
jmp 0x4117
movq -0x1d0(%rbp), %rdi
leaq 0x7016(%rip), %rsi      # 0xb13b
callq 0x3300
movq %rax, -0x1d8(%rbp)
jmp 0x4133
movq -0x1d8(%rbp), %rdi
movq 0xce67(%rip), %rsi      # 0x10fa8
callq 0x3320
jmp 0x4148
jmp 0x414a
movl -0x70(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x70(%rbp)
jmp 0x4064
jmp 0x415a
movb $0x0, -0x71(%rbp)
xorl %eax, %eax
movl %eax, %esi
leaq -0x30(%rbp), %rdi
callq 0x6250
movq %rax, %rdi
leaq 0x7055(%rip), %rsi      # 0xb1ca
callq 0x6270
movb %al, -0x1d9(%rbp)
jmp 0x4182
movb -0x1d9(%rbp), %al
testb $0x1, %al
jne 0x4191
jmp 0x4438
leaq -0x30(%rbp), %rdi
callq 0x6230
cmpq $0x2, %rax
jae 0x41b3
movl $0x1, -0x4(%rbp)
movl $0x1, -0x78(%rbp)
jmp 0x4ae8
leaq -0x30(%rbp), %rdi
movl $0x1, %esi
callq 0x6250
movq %rax, %rsi
leaq -0x98(%rbp), %rdi
callq 0x3170
jmp 0x41d2
leaq 0xd1b7(%rip), %rsi      # 0x11390
leaq -0xb8(%rbp), %rdi
callq 0x3170
jmp 0x41e7
movb $0x1, -0xb9(%rbp)
leaq -0x98(%rbp), %rdi
callq 0x3490
movq %rax, -0x1e8(%rbp)
leaq -0xb8(%rbp), %rdi
callq 0x3490
movq %rax, %rcx
movq -0x1e8(%rbp), %rax
cmpq %rcx, %rax
jae 0x425f
leaq -0x98(%rbp), %rdi
movl $0x20, %esi
callq 0x3220
jmp 0x422f
jmp 0x41ee
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
jmp 0x4427
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
leaq -0xb8(%rbp), %rdi
callq 0x3578
jmp 0x4427
jmp 0x4261
leaq -0xb8(%rbp), %rdi
callq 0x3490
movq %rax, -0x1f0(%rbp)
leaq -0x98(%rbp), %rdi
callq 0x3490
movq %rax, %rcx
movq -0x1f0(%rbp), %rax
cmpq %rcx, %rax
jae 0x42a4
leaq -0xb8(%rbp), %rdi
movl $0x20, %esi
callq 0x3220
jmp 0x42a2
jmp 0x4261
movq $0x0, -0xc8(%rbp)
movq -0xc8(%rbp), %rax
movq %rax, -0x1f8(%rbp)
leaq -0xb8(%rbp), %rdi
callq 0x3490
movq %rax, %rcx
movq -0x1f8(%rbp), %rax
cmpq %rcx, %rax
jae 0x4354
movq -0xc8(%rbp), %rsi
leaq -0xb8(%rbp), %rdi
callq 0x3560
movq %rax, -0x200(%rbp)
jmp 0x42f4
movq -0x200(%rbp), %rax
movsbl (%rax), %eax
movl %eax, -0x20c(%rbp)
movq -0xc8(%rbp), %rsi
leaq -0x98(%rbp), %rdi
callq 0x3560
movq %rax, -0x208(%rbp)
jmp 0x4320
movl -0x20c(%rbp), %eax
movq -0x208(%rbp), %rcx
movsbl (%rcx), %ecx
cmpl %ecx, %eax
je 0x433b
movb $0x0, -0xb9(%rbp)
jmp 0x433d
movq -0xc8(%rbp), %rax
addq $0x1, %rax
movq %rax, -0xc8(%rbp)
jmp 0x42af
testb $0x1, -0xb9(%rbp)
je 0x440d
movb $0x1, -0x71(%rbp)
leaq -0x30(%rbp), %rdi
movq %rdi, -0x220(%rbp)
callq 0x6310
movq %rax, -0xd8(%rbp)
leaq -0xd0(%rbp), %rdi
leaq -0xd8(%rbp), %rsi
callq 0x6340
movq -0x220(%rbp), %rdi
movq -0xd0(%rbp), %rsi
callq 0x62a0
movq %rax, -0x218(%rbp)
jmp 0x43ab
movq -0x218(%rbp), %rax
movq %rax, -0xe0(%rbp)
leaq -0x30(%rbp), %rdi
movq %rdi, -0x230(%rbp)
callq 0x6310
movq %rax, -0xf0(%rbp)
leaq -0xe8(%rbp), %rdi
leaq -0xf0(%rbp), %rsi
callq 0x6340
movq -0x230(%rbp), %rdi
movq -0xe8(%rbp), %rsi
callq 0x62a0
movq %rax, -0x228(%rbp)
jmp 0x43ff
movq -0x228(%rbp), %rax
movq %rax, -0xf8(%rbp)
leaq -0xb8(%rbp), %rdi
callq 0x3578
leaq -0x98(%rbp), %rdi
callq 0x3578
jmp 0x4438
leaq -0x98(%rbp), %rdi
callq 0x3578
jmp 0x4b06
testb $0x1, -0x71(%rbp)
jne 0x44c5
leaq 0xcf47(%rip), %rdi      # 0x11390
callq 0x34d0
testb $0x1, %al
jne 0x44c5
xorl %eax, %eax
movl %eax, %edi
callq 0x32c0
movl %eax, %edi
callq 0x32f0
callq 0x30d0
movslq %eax, %rcx
imulq $0x66666667, %rcx, %rdx # imm = 0x66666667
movq %rdx, %rcx
shrq $0x3f, %rcx
sarq $0x24, %rdx
addl %ecx, %edx
shll $0x3, %edx
movl %edx, %ecx
leal (%rcx,%rcx,4), %ecx
subl %ecx, %eax
cvtsi2sd %eax, %xmm0
movsd 0x6b74(%rip), %xmm1     # 0xb008
mulsd %xmm1, %xmm0
movsd 0x6b70(%rip), %xmm1     # 0xb010
addsd %xmm1, %xmm0
cvttsd2si %xmm0, %rax
movl %eax, %edi
callq 0x3260
jmp 0x44b2
movl $0x3, -0x4(%rbp)
movl $0x1, -0x78(%rbp)
jmp 0x4ae8
leaq -0x30(%rbp), %rdi
callq 0x6380
testb $0x1, %al
jne 0x44d4
jmp 0x44e7
movl $0x1, -0x4(%rbp)
movl $0x1, -0x78(%rbp)
jmp 0x4ae8
xorl %eax, %eax
movl %eax, %esi
leaq -0x30(%rbp), %rdi
callq 0x6250
movq %rax, %rdi
leaq 0x6c8e(%rip), %rsi      # 0xb18c
callq 0x6270
movb %al, -0x231(%rbp)
jmp 0x450b
movb -0x231(%rbp), %al
testb $0x1, %al
jne 0x4517
jmp 0x458c
leaq -0x30(%rbp), %rdi
callq 0x6230
cmpq $0x3, %rax
jae 0x4539
movl $0x1, -0x4(%rbp)
movl $0x1, -0x78(%rbp)
jmp 0x4ae8
leaq -0x30(%rbp), %rdi
movq %rdi, -0x248(%rbp)
movl $0x1, %esi
callq 0x6250
movq -0x248(%rbp), %rdi
movq %rax, -0x240(%rbp)
movl $0x2, %esi
callq 0x6250
movq -0x240(%rbp), %rdi
movq %rax, %rsi
callq 0x3aa0
jmp 0x4577
jmp 0x4579
movl $0x0, -0x4(%rbp)
movl $0x1, -0x78(%rbp)
jmp 0x4ae8
xorl %eax, %eax
movl %eax, %esi
leaq -0x30(%rbp), %rdi
callq 0x6250
movq %rax, %rdi
leaq 0x6bed(%rip), %rsi      # 0xb190
callq 0x6270
movb %al, -0x249(%rbp)
jmp 0x45b0
movb -0x249(%rbp), %al
testb $0x1, %al
jne 0x45bf
jmp 0x46ec
leaq -0x30(%rbp), %rdi
callq 0x6230
cmpq $0x2, %rax
jae 0x45e1
movl $0x1, -0x4(%rbp)
movl $0x1, -0x78(%rbp)
jmp 0x4ae8
leaq -0x118(%rbp), %rdi
movq %rdi, -0x258(%rbp)
callq 0x3430
leaq -0x30(%rbp), %rdi
movl $0x1, %esi
callq 0x6250
movq -0x258(%rbp), %rsi
movq %rax, %rdi
callq 0x3b50
movb %al, -0x24a(%rbp)
jmp 0x4619
movb -0x24a(%rbp), %al
testb $0x1, %al
jne 0x4628
jmp 0x46cd
movl -0x14(%rbp), %edi
leaq 0x6c61(%rip), %rsi      # 0xb293
movl $0x1, %edx
xorl %ecx, %ecx
callq 0x31d0
jmp 0x4640
movl -0x14(%rbp), %eax
movl %eax, -0x264(%rbp)
leaq -0x118(%rbp), %rdi
movq %rdi, -0x270(%rbp)
callq 0x3160
movq -0x270(%rbp), %rdi
movq %rax, -0x260(%rbp)
callq 0x3490
movl -0x264(%rbp), %edi
movq -0x260(%rbp), %rsi
movq %rax, %rdx
xorl %ecx, %ecx
callq 0x31d0
jmp 0x4688
movl -0x14(%rbp), %edi
leaq 0x6b02(%rip), %rsi      # 0xb194
movl $0x3, %edx
xorl %ecx, %ecx
callq 0x31d0
jmp 0x46a0
movl $0x2, -0x4(%rbp)
movl $0x1, -0x78(%rbp)
jmp 0x46db
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
leaq -0x118(%rbp), %rdi
callq 0x3578
jmp 0x4b06
movl $0x1, -0x4(%rbp)
movl $0x1, -0x78(%rbp)
leaq -0x118(%rbp), %rdi
callq 0x3578
jmp 0x4ae8
xorl %eax, %eax
movl %eax, %esi
leaq -0x30(%rbp), %rdi
callq 0x6250
movq %rax, %rdi
leaq 0x6a95(%rip), %rsi      # 0xb198
callq 0x6270
movb %al, -0x271(%rbp)
jmp 0x4710
movb -0x271(%rbp), %al
testb $0x1, %al
jne 0x471f
jmp 0x47ec
leaq -0x30(%rbp), %rdi
callq 0x6230
cmpq $0x2, %rax
jae 0x4741
movl $0x1, -0x4(%rbp)
movl $0x1, -0x78(%rbp)
jmp 0x4ae8
leaq -0x30(%rbp), %rdi
movl $0x1, %esi
callq 0x6250
movq %rax, %rdi
callq 0x3c30
movb %al, -0x272(%rbp)
jmp 0x475f
movb -0x272(%rbp), %al
testb $0x1, %al
jne 0x476b
jmp 0x47a2
movl -0x14(%rbp), %eax
movl %eax, -0x284(%rbp)
leaq 0xcb4d(%rip), %rdi      # 0x112c8
movq %rdi, -0x280(%rbp)
callq 0x3180
movl -0x284(%rbp), %edi
movq -0x280(%rbp), %rsi
movq %rax, %rdx
xorl %ecx, %ecx
callq 0x31d0
jmp 0x47a0
jmp 0x47d9
movl -0x14(%rbp), %eax
movl %eax, -0x294(%rbp)
leaq 0xcb1f(%rip), %rdi      # 0x112d1
movq %rdi, -0x290(%rbp)
callq 0x3180
movl -0x294(%rbp), %edi
movq -0x290(%rbp), %rsi
movq %rax, %rdx
xorl %ecx, %ecx
callq 0x31d0
jmp 0x47d7
jmp 0x47d9
movl $0x2, -0x4(%rbp)
movl $0x1, -0x78(%rbp)
jmp 0x4ae8
xorl %eax, %eax
movl %eax, %esi
leaq -0x30(%rbp), %rdi
callq 0x6250
movq %rax, %rdi
leaq 0x699b(%rip), %rsi      # 0xb19e
callq 0x6270
movb %al, -0x295(%rbp)
jmp 0x4810
movb -0x295(%rbp), %al
testb $0x1, %al
jne 0x481c
jmp 0x4869
leaq -0x30(%rbp), %rdi
callq 0x6230
cmpq $0x2, %rax
jae 0x483e
movl $0x1, -0x4(%rbp)
movl $0x1, -0x78(%rbp)
jmp 0x4ae8
leaq -0x30(%rbp), %rdi
movl $0x1, %esi
callq 0x6250
movq %rax, %rdi
callq 0x3bf0
jmp 0x4856
movl $0x0, -0x4(%rbp)
movl $0x1, -0x78(%rbp)
jmp 0x4ae8
xorl %eax, %eax
movl %eax, %esi
leaq -0x30(%rbp), %rdi
callq 0x6250
movq %rax, %rdi
leaq 0x6923(%rip), %rsi      # 0xb1a3
callq 0x6270
movb %al, -0x296(%rbp)
jmp 0x488d
movb -0x296(%rbp), %al
testb $0x1, %al
jne 0x4899
jmp 0x48ac
movl $0x0, -0x4(%rbp)
movl $0x1, -0x78(%rbp)
jmp 0x4ae8
xorl %eax, %eax
movl %eax, %esi
leaq -0x30(%rbp), %rdi
callq 0x6250
movq %rax, %rdi
leaq 0x68e5(%rip), %rsi      # 0xb1a8
callq 0x6270
movb %al, -0x297(%rbp)
jmp 0x48d0
movb -0x297(%rbp), %al
testb $0x1, %al
jne 0x48dc
jmp 0x48f6
callq 0x4b30
jmp 0x48e3
movl $0x0, -0x4(%rbp)
movl $0x1, -0x78(%rbp)
jmp 0x4ae8
xorl %eax, %eax
movl %eax, %esi
leaq -0x30(%rbp), %rdi
callq 0x6250
movq %rax, %rdi
leaq 0x68a6(%rip), %rsi      # 0xb1b3
callq 0x6270
movb %al, -0x298(%rbp)
jmp 0x491a
movb -0x298(%rbp), %al
testb $0x1, %al
jne 0x4929
jmp 0x49f4
leaq -0x30(%rbp), %rdi
callq 0x6230
cmpq $0x2, %rax
jae 0x494b
movl $0x1, -0x4(%rbp)
movl $0x1, -0x78(%rbp)
jmp 0x4ae8
leaq -0x30(%rbp), %rdi
movl $0x1, %esi
callq 0x6250
movq %rax, %rdi
leaq 0x6856(%rip), %rsi      # 0xb1b9
callq 0x6270
movb %al, -0x299(%rbp)
jmp 0x4970
movb -0x299(%rbp), %al
testb $0x1, %al
jne 0x497c
jmp 0x4996
movb $0x1, 0xca05(%rip)      # 0x11388
movl $0x0, -0x4(%rbp)
movl $0x1, -0x78(%rbp)
jmp 0x4ae8
leaq -0x30(%rbp), %rdi
movl $0x1, %esi
callq 0x6250
movq %rax, %rdi
leaq 0x680e(%rip), %rsi      # 0xb1bc
callq 0x6270
movb %al, -0x29a(%rbp)
jmp 0x49bb
movb -0x29a(%rbp), %al
testb $0x1, %al
jne 0x49c7
jmp 0x49e1
movb $0x0, 0xc9ba(%rip)      # 0x11388
movl $0x0, -0x4(%rbp)
movl $0x1, -0x78(%rbp)
jmp 0x4ae8
movl $0x1, -0x4(%rbp)
movl $0x1, -0x78(%rbp)
jmp 0x4ae8
xorl %eax, %eax
movl %eax, %esi
leaq -0x30(%rbp), %rdi
callq 0x6250
movq %rax, %rdi
leaq 0x67b5(%rip), %rsi      # 0xb1c0
callq 0x6270
movb %al, -0x29b(%rbp)
jmp 0x4a18
movb -0x29b(%rbp), %al
testb $0x1, %al
jne 0x4a24
jmp 0x4a75
leaq -0x30(%rbp), %rdi
callq 0x6230
cmpq $0x2, %rax
jae 0x4a46
movl $0x1, -0x4(%rbp)
movl $0x1, -0x78(%rbp)
jmp 0x4ae8
leaq -0x30(%rbp), %rdi
movl $0x1, %esi
callq 0x6250
movq %rax, %rsi
leaq 0xc932(%rip), %rdi      # 0x11390
callq 0x3030
jmp 0x4a65
movl $0x0, -0x4(%rbp)
movl $0x1, -0x78(%rbp)
jmp 0x4ae8
xorl %eax, %eax
movl %eax, %esi
leaq -0x30(%rbp), %rdi
callq 0x6250
movq %rax, %rdi
leaq 0x673b(%rip), %rsi      # 0xb1c7
callq 0x6270
movb %al, -0x29c(%rbp)
jmp 0x4a99
movb -0x29c(%rbp), %al
testb $0x1, %al
jne 0x4aa5
jmp 0x4aca
leaq 0xc8e4(%rip), %rdi      # 0x11390
leaq 0x66e4(%rip), %rsi      # 0xb197
callq 0x3400
jmp 0x4aba
movl $0x0, -0x4(%rbp)
movl $0x1, -0x78(%rbp)
jmp 0x4ae8
jmp 0x4acc
jmp 0x4ace
jmp 0x4ad0
jmp 0x4ad2
jmp 0x4ad4
jmp 0x4ad6
jmp 0x4ad8
jmp 0x4ada
movl $0x1, -0x4(%rbp)
movl $0x1, -0x78(%rbp)
leaq -0x50(%rbp), %rdi
callq 0x3578
leaq -0x30(%rbp), %rdi
callq 0x63c0
movl -0x4(%rbp), %eax
addq $0x2a0, %rsp            # imm = 0x2A0
popq %rbp
retq
leaq -0x50(%rbp), %rdi
callq 0x3578
leaq -0x30(%rbp), %rdi
callq 0x63c0
movq -0x60(%rbp), %rdi
callq 0x3500
nopw %cs:(%rax,%rax)