// File: /workspace/github_cpp_makefile_star2_O2/Baobaobear[P]sort/sorttest.cpp
// Function: main
int main(void)
{
    time_point t;

    std::map<int, gen_data_func_t> gen_data_fun_map;
    std::map<int, arrar_function_t> gen_data_shuffle;
    std::map<std::string, arrar_function_t> test_func_map;
    std::map<int, int> split_size_map;
    const size_t out_bound_check_size = 128;
    const int out_bound_check_head_value = 0xf0f0f0f;
    const int out_bound_check_tail_value = -0xf0f0f0f;

    init_gen_data_fun_map(gen_data_fun_map, gen_data_shuffle, split_size_map);
    init_test_func_map(test_func_map);

    int base_size = 1000;
    if (TEST_TYPE_SIMPLE)
    {
        base_size += base_size / 2;
    }
    int arr_size = base_size * base_size * 2;
    std::vector<sort_element_t> arr(arr_size + out_bound_check_size * 2);
    baobao::util::rand_seed((uint32_t)time(NULL));

#if CONSOLE_OUTPUT == 1
    printf("Begin %d\n", arr_size);

    printf(" -|");
    for (std::map<std::string, arrar_function_t>::iterator it = test_func_map.begin();
         it != test_func_map.end();
         ++it)
    {
        printf("%12s|", it->first.c_str());
    }
    puts("");
    printf("-:|");
    for (std::map<std::string, arrar_function_t>::iterator it = test_func_map.begin();
         it != test_func_map.end();
         ++it)
    {
        printf("%12s|", "-----------:");
    }
    puts("");
#endif
    std::map<std::string, std::map<int, int> > result_map;
    std::map<std::string, int > unstable_map;
    for (std::map<int, gen_data_func_t>::iterator it_test = gen_data_fun_map.begin();
         it_test != gen_data_fun_map.end();
         ++it_test)
    {
        if (CONSOLE_OUTPUT)
            printf("%2d|", it_test->first);
        for (size_t i = 0; i < out_bound_check_size; ++i)
        {
            arr[i] = out_bound_check_head_value;
            arr[arr.size() - out_bound_check_size + i] = out_bound_check_tail_value;
        }
        for (int i = 0; i < (int)arr_size; ++i)
        {
            arr[i + out_bound_check_size] = it_test->second(i, arr_size);
        }
        if (gen_data_shuffle.find(it_test->first) != gen_data_shuffle.end())
        {
            gen_data_shuffle[it_test->first](&*(arr.begin() + out_bound_check_size), arr_size);
        }
#if TEST_TYPE_SIMPLE == 0
        for (int i = 0; i < (int)arr_size; ++i)
        {
            arr[i + out_bound_check_size].index = i;
        }
#endif
        for (std::map<std::string, arrar_function_t>::iterator it = test_func_map.begin();
             it != test_func_map.end();
             ++it)
        {
            std::vector<sort_element_t> arr_c = arr;
            int res_ms = 0;
            bool correct = true;
            if (split_size_map.find(it_test->first) != split_size_map.end())
            {
                int split_cnt = split_size_map[it_test->first];
                int last_size = arr_size - split_cnt;
                std::vector<sort_element_t> arr_c2 = arr;
                t = get_time();
                for (int i = 0; i < last_size; i += split_cnt)
                {
                    it->second(&*arr_c.begin() + out_bound_check_size + i, split_cnt);
                }
                for (int i = 0; i < last_size; i += split_cnt)
                {
                    it->second(&*arr_c2.begin() + out_bound_check_size + i, split_cnt);
                }
                res_ms = (int)get_time_diff(t, get_time());

                //for (size_t i = 0; i < arr_size; i++) // avoid optimize arr_c2
                //{
                //    if (arr_c[i] < arr_c2[i] || arr_c2[i] < arr_c[i])
                //    {
                //        correct = false;
                //    }
                //}
            }
            else
            {
                t = get_time();
                it->second(&*(arr_c.begin() + out_bound_check_size), arr_size);
                res_ms = (int)get_time_diff(t, get_time());
            }
            if (CONSOLE_OUTPUT)
                printf("%12d|", (int)res_ms);

            if (split_size_map.find(it_test->first) == split_size_map.end())
            {
                for (size_t i = 0; i < out_bound_check_size; ++i)
                {
                    if (!(arr[i] == out_bound_check_head_value))
                    {
                        correct = false;
                        break;
                    }
                    if (!(arr[arr.size() - out_bound_check_size + i] == out_bound_check_tail_value))
                    {
                        correct = false;
                        break;
                    }
                }
                if (correct)
                {
                    if (!baobao::check_sorted(arr_c.begin() + out_bound_check_size, arr_c.end() - out_bound_check_size, std::less<sort_element_t>()))
                    {
                        correct = false;
                    }
#if TEST_TYPE_SIMPLE == 0
                    else
                    {
                        if (!baobao::check_sorted_stable(arr_c.begin() + out_bound_check_size, arr_c.end() - out_bound_check_size, std::less<sort_element_t>()))
                        {
                            unstable_map[it->first] = 1;
                        }
                    }
#endif
                }
            }
            if (correct)
            {
                result_map[it->first][it_test->first] = res_ms;
            }
            else
            {
                result_map[it->first][it_test->first] = -1;
            }
            fflush(stdout);
        }
        if (CONSOLE_OUTPUT)
            printf("\n");
    }

    std::vector<std::string> index_name;
    std::vector<algo_score> final_score;

    for (std::map<std::string, arrar_function_t>::iterator it_test = test_func_map.begin();
         it_test != test_func_map.end();
         ++it_test)
    {
        index_name.push_back(it_test->first);
        final_score.push_back(algo_score(0, (int)index_name.size() - 1, it_test->first));
        for (std::map<int, gen_data_func_t>::iterator it = gen_data_fun_map.begin();
             it != gen_data_fun_map.end();
             ++it)
        {
            int v = result_map[it_test->first][it->first];
            if (v >= 0)
            {
                final_score.back().score += v;
            }
            else if (v == -1)
            {
                final_score.back().score += 1000 * 1000;
            }
        }
    }

#if TEST_TYPE_SIMPLE == 0
    printf("\n%-12s||\n------------|---\n", "stable test");
    for (std::map<std::string, arrar_function_t>::iterator it_test = test_func_map.begin();
        it_test != test_func_map.end();
        ++it_test)
    {
        printf("%-12s|%s\n", it_test->first.c_str(), (unstable_map.find(it_test->first) != unstable_map.end() ? "no" : "yes"));
    }
#endif

    char test_title[16] = "";
    if (TEST_TYPE_SIMPLE == 0)
    {
        sprintf(test_title, "TestClass %d", TEST_CLASS_SIZE);
    }
    else if (TEST_TYPE_SIMPLE == 1)
    {
        sprintf(test_title, "int");
    }
    else if (TEST_TYPE_SIMPLE == 2)
    {
        sprintf(test_title, "double");
    }
    else
    {
    }
    printf("\n%-12s|", test_title);
    for (std::map<int, gen_data_func_t>::iterator it = gen_data_fun_map.begin();
         it != gen_data_fun_map.end();
         ++it)
    {
        printf("  %-3d|", it->first);
    }
    puts(" Avg |");
    printf("------------|");
    for (std::map<int, gen_data_func_t>::iterator it = gen_data_fun_map.begin();
         it != gen_data_fun_map.end();
         ++it)
    {
        printf("%5s|", "----:");
    }
    puts("----:|");
    std::sort(final_score.begin(), final_score.end());
    for (std::vector<algo_score>::iterator it_test = final_score.begin();
         it_test != final_score.end();
         ++it_test)
    {
        std::string name = it_test->name;
        printf("%-12s|", name.c_str());
        for (std::map<int, gen_data_func_t>::iterator it = gen_data_fun_map.begin();
             it != gen_data_fun_map.end();
             ++it)
        {
            int v = result_map[name][it->first];
            if (v >= 0)
            {
                printf("%5d|", v);
            }
            else if (v == -1)
            {
                printf("%5s|", "Wrong");
            }
            else if (v == -2)
            {
                printf("%5s|", "Error");
            }
            else if (v == -3)
            {
                printf("%5s|", "Time");
            }
        }
        printf("%5d|\n", (int)(it_test->score / gen_data_fun_map.size()));
    }
    printf("\n%d END\n", arr_size);
    fflush(stdout);

    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1f8, %rsp            # imm = 0x1F8
leaq 0x48(%rsp), %rax
andl $0x0, (%rax)
andq $0x0, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
andq $0x0, 0x20(%rax)
leaq 0x108(%rsp), %rax
andl $0x0, (%rax)
andq $0x0, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
andq $0x0, 0x20(%rax)
leaq 0x138(%rsp), %rax
andl $0x0, (%rax)
andq $0x0, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
andq $0x0, 0x20(%rax)
leaq 0x168(%rsp), %r12
andl $0x0, (%r12)
andq $0x0, 0x8(%r12)
movq %r12, 0x10(%r12)
movq %r12, 0x18(%r12)
andq $0x0, 0x20(%r12)
leaq 0x10(%rsp), %rsi
movl $0x1, (%rsi)
leaq 0x40(%rsp), %rdi
callq 0x3e40
leaq 0xb67(%rip), %rcx       # 0x366e
movq %rcx, (%rax)
leaq 0x10(%rsp), %rsi
movl $0x2, (%rsi)
leaq 0x40(%rsp), %rdi
callq 0x3e40
leaq 0xb4c(%rip), %rcx       # 0x3672
movq %rcx, (%rax)
leaq 0x10(%rsp), %rsi
movl $0x3, (%rsi)
leaq 0x40(%rsp), %rdi
callq 0x3e40
leaq 0xb33(%rip), %rcx       # 0x3678
movq %rcx, (%rax)
leaq 0x10(%rsp), %rsi
movl $0x4, (%rsi)
leaq 0x40(%rsp), %rdi
callq 0x3e40
leaq 0xb1f(%rip), %rbx       # 0x3683
movq %rbx, (%rax)
leaq 0x10(%rsp), %rsi
movl $0x4, (%rsi)
leaq 0x100(%rsp), %rdi
callq 0x3a48
leaq 0xb00(%rip), %r14       # 0x3686
movq %r14, (%rax)
leaq 0x10(%rsp), %rsi
movl $0x5, (%rsi)
leaq 0x40(%rsp), %rdi
callq 0x3e40
leaq 0xaed(%rip), %rcx       # 0x3692
movq %rcx, (%rax)
leaq 0x10(%rsp), %rsi
movl $0x5, (%rsi)
leaq 0x100(%rsp), %rdi
callq 0x3a48
movq %r14, (%rax)
leaq 0x10(%rsp), %rsi
movl $0x6, (%rsi)
leaq 0x40(%rsp), %rdi
callq 0x3e40
leaq 0xac5(%rip), %r15       # 0x36a4
movq %r15, (%rax)
leaq 0x10(%rsp), %rsi
movl $0x6, (%rsi)
leaq 0x100(%rsp), %rdi
callq 0x3a48
movq %r14, (%rax)
leaq 0x10(%rsp), %rsi
movl $0x7, (%rsi)
leaq 0x40(%rsp), %rdi
callq 0x3e40
movq %r15, (%rax)
leaq 0x10(%rsp), %rsi
movl $0x8, (%rsi)
leaq 0x40(%rsp), %rdi
callq 0x3e40
leaq 0xa7e(%rip), %rcx       # 0x36af
movq %rcx, (%rax)
leaq 0x10(%rsp), %rsi
movl $0x9, (%rsi)
leaq 0x40(%rsp), %rdi
callq 0x3e40
movq %rbx, (%rax)
leaq 0x10(%rsp), %rsi
movl $0x9, (%rsi)
leaq 0x100(%rsp), %rdi
callq 0x3a48
leaq 0xa4a(%rip), %rcx       # 0x36b5
movq %rcx, (%rax)
leaq 0x10(%rsp), %rsi
movl $0xa, (%rsi)
leaq 0x40(%rsp), %rdi
callq 0x3e40
movq %rbx, (%rax)
leaq 0x10(%rsp), %rsi
movl $0xa, (%rsi)
leaq 0x100(%rsp), %rdi
callq 0x3a48
leaq 0xae4(%rip), %rcx       # 0x3789
movq %rcx, (%rax)
leaq 0x10(%rsp), %rsi
movl $0xb, (%rsi)
leaq 0x40(%rsp), %rdi
callq 0x3e40
movq %rbx, (%rax)
leaq 0x10(%rsp), %rsi
movl $0xb, (%rsi)
leaq 0x100(%rsp), %rdi
callq 0x3a48
movq %r14, (%rax)
leaq 0x10(%rsp), %rsi
movl $0xb, (%rsi)
leaq 0x160(%rsp), %rdi
callq 0x3aea
movl $0x104, (%rax)          # imm = 0x104
leaq 0x130(%rsp), %rdi
callq 0x25a9
leaq 0x10(%rsp), %rbx
movq %rbx, %rdi
callq 0x39d2
leaq 0x70(%rsp), %rdi
leaq 0x190(%rsp), %rcx
movl $0x1e8580, %esi         # imm = 0x1E8580
movq %rbx, %rdx
callq 0x39ea
xorl %edi, %edi
callq 0x2160
movl %eax, %edi
callq 0x239b
leaq 0x18(%rsp), %rax
andl $0x0, (%rax)
andq $0x0, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
andq $0x0, 0x20(%rax)
leaq 0x198(%rsp), %rax
andl $0x0, (%rax)
andq $0x0, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
andq $0x0, 0x20(%rax)
movq 0x58(%rsp), %r15
leaq 0x88(%rsp), %r13
leaq 0x70(%rsp), %rbp
leaq 0x48(%rsp), %rax
cmpq %rax, %r15
je 0x3105
movq 0x70(%rsp), %rax
movq 0x78(%rsp), %rcx
movq $-0x1000, %rdx          # imm = 0xF000
addq %rdx, %rcx
xorl %edx, %edx
cmpq $0x1000, %rdx           # imm = 0x1000
je 0x2dc5
movl $0xf0f0f0f, (%rax,%rdx) # imm = 0xF0F0F0F
movl $0xf0f0f0f1, (%rcx,%rdx) # imm = 0xF0F0F0F1
addq $0x20, %rdx
jmp 0x2da8
xorl %ebx, %ebx
xorl %r14d, %r14d
cmpq $0x1e8480, %r14         # imm = 0x1E8480
je 0x2df4
movl %r14d, %edi
movl $0x1e8480, %esi         # imm = 0x1E8480
callq *0x28(%r15)
movq 0x70(%rsp), %rcx
movl %eax, 0x1000(%rcx,%rbx)
incq %r14
addq $0x20, %rbx
jmp 0x2dca
leaq 0x20(%r15), %rbx
leaq 0x100(%rsp), %rdi
movq %rbx, %rsi
callq 0xd4be
leaq 0x108(%rsp), %rcx
cmpq %rcx, %rax
je 0x2e39
leaq 0x100(%rsp), %rdi
movq %rbx, %rsi
callq 0x3a48
movq 0x70(%rsp), %rdi
movl $0x1000, %ecx           # imm = 0x1000
addq %rcx, %rdi
movl $0x1e8480, %esi         # imm = 0x1E8480
callq *(%rax)
movq 0x70(%rsp), %rax
movl $0x1004, %ecx           # imm = 0x1004
addq %rcx, %rax
xorl %ecx, %ecx
cmpq $0x1e8480, %rcx         # imm = 0x1E8480
je 0x2e5c
movl %ecx, (%rax)
incq %rcx
addq $0x20, %rax
jmp 0x2e48
movq 0x148(%rsp), %r14
movq %r15, 0xf0(%rsp)
movq %rbx, 0xe8(%rsp)
leaq 0x138(%rsp), %rax
cmpq %rax, %r14
je 0x30f5
movq %r13, %rdi
movq %rbp, %rsi
callq 0x3a8e
leaq 0x160(%rsp), %rdi
movq %rbx, %rsi
callq 0xd524
cmpq %r12, %rax
je 0x2f8e
leaq 0x160(%rsp), %rdi
movq %rbx, %rsi
callq 0x3aea
movslq (%rax), %r12
leaq 0xb0(%rsp), %rdi
movq %rbp, %rsi
callq 0x3a8e
movl $0x1e8480, %ebx         # imm = 0x1E8480
subl %r12d, %ebx
callq 0x256b
movsd %xmm0, 0xf8(%rsp)
movslq %ebx, %r15
movq %r12, %rbx
shlq $0x5, %rbx
movl $0x1000, %r13d          # imm = 0x1000
xorl %ebp, %ebp
cmpq %r15, %rbp
jge 0x2f13
movq 0x88(%rsp), %rdi
addq %r13, %rdi
movq %r12, %rsi
callq *0x40(%r14)
addq %r12, %rbp
addq %rbx, %r13
jmp 0x2ef4
movl $0x1000, %r13d          # imm = 0x1000
xorl %ebp, %ebp
cmpq %r15, %rbp
jge 0x2f3a
movq 0xb0(%rsp), %rdi
addq %r13, %rdi
movq %r12, %rsi
callq *0x40(%r14)
addq %r12, %rbp
addq %rbx, %r13
jmp 0x2f1b
callq 0x256b
movsd %xmm0, 0x8(%rsp)
leaq 0xb0(%rsp), %rdi
callq 0xd41c
movsd 0x8(%rsp), %xmm0
subsd 0xf8(%rsp), %xmm0
movsd %xmm0, 0x8(%rsp)
leaq 0x168(%rsp), %r12
movq 0xf0(%rsp), %r15
leaq 0x88(%rsp), %r13
leaq 0x70(%rsp), %rbp
movq 0xe8(%rsp), %rbx
jmp 0x2fc3
callq 0x256b
movsd %xmm0, 0x8(%rsp)
movq 0x88(%rsp), %rdi
movl $0x1000, %eax           # imm = 0x1000
addq %rax, %rdi
movl $0x1e8480, %esi         # imm = 0x1E8480
callq *0x40(%r14)
callq 0x256b
subsd 0x8(%rsp), %xmm0
movsd %xmm0, 0x8(%rsp)
leaq 0x160(%rsp), %rdi
movq %rbx, %rsi
callq 0xd524
cmpq %r12, %rax
je 0x2ffe
leaq 0x20(%r14), %rsi
leaq 0x10(%rsp), %rdi
callq 0x3bfc
movq %rax, %rdi
movq %rbx, %rsi
callq 0x3aea
cvttsd2si 0x8(%rsp), %ecx
movl %ecx, (%rax)
jmp 0x30ce
movq 0x70(%rsp), %rax
movq 0x78(%rsp), %rcx
movq $-0x1000, %rdx          # imm = 0xF000
addq %rdx, %rcx
xorl %edx, %edx
leaq 0x20(%rdx), %rsi
cmpq $0x1020, %rsi           # imm = 0x1020
je 0x303c
cmpl $0xf0f0f0f, (%rax,%rdx) # imm = 0xF0F0F0F
jne 0x30b2
cmpl $0xf0f0f0f1, (%rcx,%rdx) # imm = 0xF0F0F0F1
movq %rsi, %rdx
je 0x3014
jmp 0x30b2
movq 0x88(%rsp), %rdi
movl $0x1000, %eax           # imm = 0x1000
addq %rax, %rdi
movq 0x90(%rsp), %rsi
movq $-0x1000, %rax          # imm = 0xF000
addq %rax, %rsi
callq 0x3b2a
testb %al, %al
je 0x30b2
movq 0x88(%rsp), %rdi
movl $0x1000, %eax           # imm = 0x1000
addq %rax, %rdi
movq 0x90(%rsp), %rsi
movq $-0x1000, %rax          # imm = 0xF000
addq %rax, %rsi
callq 0x3b48
testb %al, %al
jne 0x2fd8
leaq 0x20(%r14), %rsi
leaq 0x190(%rsp), %rdi
callq 0x3b6c
movl $0x1, (%rax)
jmp 0x2fd8
leaq 0x20(%r14), %rsi
leaq 0x10(%rsp), %rdi
callq 0x3bfc
movq %rax, %rdi
movq %rbx, %rsi
callq 0x3aea
orl $-0x1, (%rax)
movq 0x13ef3(%rip), %rax     # 0x16fc8
movq (%rax), %rdi
callq 0x21a0
movq %r13, %rdi
callq 0xd41c
movq %r14, %rdi
callq 0x2120
movq %rax, %r14
jmp 0x2e74
movq %r15, %rdi
callq 0x2120
movq %rax, %r15
jmp 0x2d84
leaq 0xb0(%rsp), %rax
andq $0x0, 0x10(%rax)
xorpd %xmm0, %xmm0
movapd %xmm0, (%rax)
leaq 0xd0(%rsp), %rax
movapd %xmm0, (%rax)
andq $0x0, 0x10(%rax)
movq 0x148(%rsp), %r13
leaq 0x1d8(%rsp), %r12
leaq 0x10(%rsp), %rbx
leaq 0x138(%rsp), %rax
cmpq %rax, %r13
je 0x3236
leaq 0x20(%r13), %rbp
leaq 0xb0(%rsp), %rdi
movq %rbp, %rsi
callq 0x3cc0
movq 0xb0(%rsp), %r14
movq 0xb8(%rsp), %r15
movq %r12, %rdi
movq %rbp, %rsi
callq 0x21f0
subq %r14, %r15
shrq $0x5, %r15
decl %r15d
andl $0x0, 0x88(%rsp)
movl %r15d, 0x8c(%rsp)
leaq 0x90(%rsp), %rdi
movq %r12, %rsi
callq 0x21f0
leaq 0xd0(%rsp), %rdi
leaq 0x88(%rsp), %rsi
callq 0x3cec
leaq 0x90(%rsp), %rdi
callq 0x21c0
movq %r12, %rdi
callq 0x21c0
movq 0x58(%rsp), %r15
leaq 0x48(%rsp), %rax
cmpq %rax, %r15
je 0x3226
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x3bfc
leaq 0x20(%r15), %rsi
movq %rax, %rdi
callq 0x3aea
movl (%rax), %eax
testl %eax, %eax
js 0x320d
movq 0xd8(%rsp), %rcx
addl %eax, -0x28(%rcx)
jmp 0x3212
cmpl $-0x1, %eax
je 0x321f
movq %r15, %rdi
callq 0x2120
movq %rax, %r15
jmp 0x31d9
movl $0xf4240, %eax          # imm = 0xF4240
jmp 0x3200
movq %r13, %rdi
callq 0x2120
movq %rax, %r13
jmp 0x3140
leaq 0xbeef(%rip), %rdi      # 0xf12c
leaq 0xbf03(%rip), %rsi      # 0xf147
xorl %eax, %eax
callq 0x2050
movq 0x148(%rsp), %r14
leaq 0x190(%rsp), %rbx
leaq 0xbefe(%rip), %r13      # 0xf160
leaq 0xbef4(%rip), %rbp      # 0xf15d
leaq 0xbee3(%rip), %r15      # 0xf153
leaq 0x138(%rsp), %rax
cmpq %rax, %r14
je 0x32b9
leaq 0x20(%r14), %rsi
movq 0x20(%r14), %r12
movq %rbx, %rdi
callq 0xe29a
leaq 0x198(%rsp), %rcx
cmpq %rcx, %rax
movq %rbp, %rdx
cmoveq %r13, %rdx
movq %r15, %rdi
movq %r12, %rsi
xorl %eax, %eax
callq 0x2050
movq %r14, %rdi
callq 0x2120
movq %rax, %r14
jmp 0x3270
xorpd %xmm0, %xmm0
leaq 0x1c0(%rsp), %rbx
movapd %xmm0, (%rbx)
leaq 0xbe94(%rip), %rsi      # 0xf164
pushq $0x8
popq %rdx
movq %rbx, %rdi
xorl %eax, %eax
callq 0x2070
leaq 0xbe8d(%rip), %rdi      # 0xf171
movq %rbx, %rsi
xorl %eax, %eax
callq 0x2050
movq 0x58(%rsp), %r14
leaq 0xbe7f(%rip), %rbx      # 0xf179
leaq 0x48(%rsp), %rax
cmpq %rax, %r14
je 0x331f
movl 0x20(%r14), %esi
movq %rbx, %rdi
xorl %eax, %eax
callq 0x2050
movq %r14, %rdi
callq 0x2120
movq %rax, %r14
jmp 0x32fa
leaq 0xbe5b(%rip), %rdi      # 0xf181
callq 0x2210
leaq 0xbe56(%rip), %rdi      # 0xf188
xorl %eax, %eax
callq 0x2050
movq 0x58(%rsp), %r15
leaq 0xbe51(%rip), %rbx      # 0xf196
leaq 0xbe4f(%rip), %r14      # 0xf19b
leaq 0x48(%rsp), %rax
cmpq %rax, %r15
je 0x3370
movq %rbx, %rdi
movq %r14, %rsi
xorl %eax, %eax
callq 0x2050
movq %r15, %rdi
callq 0x2120
movq %rax, %r15
jmp 0x334c
leaq 0xbe2a(%rip), %rdi      # 0xf1a1
callq 0x2210
movq 0xd0(%rsp), %rdi
movq 0xd8(%rsp), %rsi
callq 0xe2d8
movq 0xd0(%rsp), %r14
leaq 0x88(%rsp), %rbx
leaq 0x10(%rsp), %r12
leaq 0xbdfb(%rip), %r13      # 0xf1a8
leaq 0xbde2(%rip), %rbp      # 0xf196
cmpq 0xd8(%rsp), %r14
je 0x348c
leaq 0x8(%r14), %rsi
movq %rbx, %rdi
callq 0x21f0
movq 0x88(%rsp), %rsi
leaq 0xbd95(%rip), %rdi      # 0xf172
xorl %eax, %eax
callq 0x2050
movq 0x58(%rsp), %r15
leaq 0x48(%rsp), %rax
cmpq %rax, %r15
je 0x3461
movq %r12, %rdi
movq %rbx, %rsi
callq 0x3bfc
leaq 0x20(%r15), %rsi
movq %rax, %rdi
callq 0x3aea
movl (%rax), %esi
testl %esi, %esi
js 0x341c
movq %r13, %rdi
xorl %eax, %eax
callq 0x2050
jmp 0x3454
cmpl $-0x3, %esi
je 0x3443
cmpl $-0x2, %esi
je 0x3437
cmpl $-0x1, %esi
jne 0x3454
movq %rbp, %rdi
leaq 0xbd78(%rip), %rsi      # 0xf1ad
jmp 0x344d
movq %rbp, %rdi
leaq 0xbd72(%rip), %rsi      # 0xf1b3
jmp 0x344d
movq %rbp, %rdi
leaq 0xbd6c(%rip), %rsi      # 0xf1b9
xorl %eax, %eax
callq 0x2050
movq %r15, %rdi
callq 0x2120
movq %rax, %r15
jmp 0x33e9
movslq (%r14), %rax
xorl %edx, %edx
divq 0x68(%rsp)
leaq 0xbd4c(%rip), %rdi      # 0xf1be
movl %eax, %esi
xorl %eax, %eax
callq 0x2050
movq %rbx, %rdi
callq 0x21c0
addq $0x28, %r14
jmp 0x33b4
leaq 0xbd31(%rip), %rdi      # 0xf1c4
movl $0x1e8480, %esi         # imm = 0x1E8480
xorl %eax, %eax
callq 0x2050
movq 0x13b22(%rip), %rax     # 0x16fc8
movq (%rax), %rdi
callq 0x21a0
leaq 0xd0(%rsp), %rdi
callq 0x3d18
leaq 0xb0(%rsp), %rdi
callq 0x3d56
leaq 0x190(%rsp), %rdi
callq 0x4364
leaq 0x10(%rsp), %rdi
callq 0x43ba
leaq 0x70(%rsp), %rdi
callq 0xd41c
leaq 0x160(%rsp), %rdi
callq 0x444a
leaq 0x130(%rsp), %rdi
callq 0x4488
leaq 0x100(%rsp), %rdi
callq 0x44de
leaq 0x40(%rsp), %rdi
callq 0x451c
xorl %eax, %eax
addq $0x1f8, %rsp            # imm = 0x1F8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x3654
movq %rax, %rbx
jmp 0x3647
movq %rax, %rbx
jmp 0x363a
jmp 0x356c
jmp 0x355e
movq %rax, %rbx
jmp 0x3619
jmp 0x35e3
movq %rax, %rbx
jmp 0x35d4
jmp 0x35c4
movq %rax, %rbx
jmp 0x3623
jmp 0x356c
jmp 0x35e3
jmp 0x35e3
movq %rax, %rbx
jmp 0x362d
jmp 0x35c4
jmp 0x35c4
movq %rax, %rbx
leaq 0x90(%rsp), %rdi
callq 0x21c0
jmp 0x3593
jmp 0x35e3
jmp 0x35c4
jmp 0x35c4
movq %rax, %rbx
leaq 0x1d8(%rsp), %rdi
callq 0x21c0
jmp 0x35c7
jmp 0x35e8
jmp 0x35e8
jmp 0x35e8
jmp 0x35e8
jmp 0x35e8
jmp 0x35e8
jmp 0x35e3
jmp 0x35e8
movq %rax, %rbx
leaq 0x88(%rsp), %rdi
callq 0x21c0
jmp 0x35c7
movq %rax, %rbx
leaq 0xd0(%rsp), %rdi
callq 0x3d18
leaq 0xb0(%rsp), %rdi
callq 0x3d56
jmp 0x360c
movq %rax, %rbx
jmp 0x360c
movq %rax, %rbx
jmp 0x35ff
jmp 0x35ef
movq %rax, %rbx
leaq 0xb0(%rsp), %rdi
callq 0xd41c
leaq 0x88(%rsp), %rdi
callq 0xd41c
leaq 0x190(%rsp), %rdi
callq 0x4364
leaq 0x10(%rsp), %rdi
callq 0x43ba
leaq 0x70(%rsp), %rdi
callq 0xd41c
leaq 0x160(%rsp), %rdi
callq 0x444a
leaq 0x130(%rsp), %rdi
callq 0x4488
leaq 0x100(%rsp), %rdi
callq 0x44de
leaq 0x40(%rsp), %rdi
callq 0x451c
movq %rbx, %rdi
callq 0x2250
movq %rax, %rdi
callq 0x39c6