// File: /workspace/github_cpp_makefile_star2_O3/bonetblai[P]mdp-engine/puzzle/main.cc
// Function: main
int main(int argc, const char **argv) {
    unsigned rows = 0;
    unsigned cols = 0;
    float p = 1.0;
    unsigned num_trials = 1;

    vector<string> requests;

    float start_time = Utils::read_time_in_seconds();
    cout << fixed;

    // parse arguments
    for( ++argv, --argc; (argc > 1) && (**argv == '-'); ++argv, --argc ) {
        if( string(*argv) == "--no-colors" ) {
            Utils::g_use_colors = false;
        } else if( ((*argv)[1] == 'r') || (string(*argv) == "--request") ) {
            requests.push_back(argv[1]);
            ++argv;
            --argc;
        } else if( ((*argv)[1] == 's') || (string(*argv) == "--seed") ) {
            Algorithm::g_seed = strtoul(argv[1], 0, 0);
            Online::g_seed = Algorithm::g_seed;
            ++argv;
            --argc;
        } else if( ((*argv)[1] == 't') || (string(*argv) == "--trials") ) {
            num_trials = strtoul(argv[1], 0, 0);
            ++argv;
            --argc;
        } else {
            usage(cout);
            exit(-1);
        }
    }

    // read problem parameters
    if( argc >= 3 ) {
        rows = strtoul(argv[0], 0, 0);
        cols = strtoul(argv[1], 0, 0);
        p = strtod(argv[2], 0);
    } else {
        usage(cout);
        exit(-1);
    }

    // build problem instances
    cout << "main: seed=" << Algorithm::g_seed << endl;
    Random::set_seed(Algorithm::g_seed);
    state_t init;
    init.set_goal(rows, cols);
    init.random_moves(rows, cols, 500);
    problem_t problem(rows, cols, init, p);

    // build requests
    vector<pair<string, Online::Policy::policy_t<state_t>*> > policies;
    vector<pair<string, Algorithm::algorithm_t<state_t>*> > algorithms;
    Dispatcher::dispatcher_t<state_t> dispatcher;
    dispatcher.insert_heuristic("manhattan()", new manhattan_t(problem));
    for( int i = 0; i < int(requests.size()); ++i ) {
        const string &request_str = requests[i];
        std::multimap<std::string, std::string> request;
        Utils::tokenize(request_str, request);
        for( std::multimap<std::string, std::string>::const_iterator it = request.begin(); it != request.end(); ++it ) {
            dispatcher.create_request(problem, it->first, it->second);
            if( it->first == "algorithm" ) {
                Algorithm::algorithm_t<state_t> *algorithm = dispatcher.fetch_algorithm(it->second);
                if( algorithm != 0 ) algorithms.push_back(make_pair(it->second, algorithm));
            } else if( it->first == "policy" ) {
                Online::Policy::policy_t<state_t> *policy = dispatcher.fetch_policy(it->second);
                if( policy != 0 ) policies.push_back(make_pair(it->second, policy));
            }
        }
    }

    // solve problems with requested algorithms
    vector<Dispatcher::dispatcher_t<state_t>::solve_result_t> solve_results;
    for( int i = 0; i < int(algorithms.size()); ++i ) {
        const string &request = algorithms[i].first;
        const Algorithm::algorithm_t<state_t> &algorithm = *algorithms[i].second;
        Dispatcher::dispatcher_t<state_t>::solve_result_t result;
        dispatcher.solve(request, algorithm, problem.init(), result);
        solve_results.push_back(result);
    }

    cout << Utils::warning() << "the following stats may aggregate figures when elements are shared among algorithms" << endl;
    if( !solve_results.empty() ) {
        for( int i = 0; i < int(solve_results.size()); ++i ) {
            dispatcher.print_stats(cout, solve_results[i]);
        }
    }

    // evaluate requested policies
    vector<Dispatcher::dispatcher_t<state_t>::evaluate_result_t> evaluate_results;
    for( int i = 0; i < int(policies.size()); ++i ) {
        const string &request = policies[i].first;
        const Online::Policy::policy_t<state_t> &policy = *policies[i].second;
        Dispatcher::dispatcher_t<state_t>::evaluate_result_t result;
        dispatcher.evaluate(request, policy, problem.init(), result, num_trials, 100, true);
        evaluate_results.push_back(result);
    }

    cout << Utils::warning() << "the following stats may aggregate figures when elements are shared among policies" << endl;
    if( !evaluate_results.empty() ) {
        for( int i = 0; i < int(evaluate_results.size()); ++i ) {
            dispatcher.print_stats(cout, evaluate_results[i]);
        }
    }

    cout << "main: total-time=" << Utils::read_time_in_seconds() - start_time << endl;
    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x248, %rsp            # imm = 0x248
movq %rsi, %r13
movl %edi, %ebp
xorps %xmm0, %xmm0
movaps %xmm0, 0xb0(%rsp)
movq $0x0, 0xc0(%rsp)
leaq 0x170(%rsp), %rbx
xorl %edi, %edi
movq %rbx, %rsi
callq 0x5140
xorps %xmm0, %xmm0
cvtsi2ssq (%rbx), %xmm0
movss %xmm0, 0x4c(%rsp)
xorps %xmm0, %xmm0
cvtsi2ssq 0x8(%rbx), %xmm0
movss %xmm0, (%rsp)
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
movq %rbx, %rsi
callq 0x5140
xorps %xmm0, %xmm0
cvtsi2ssq (%rbx), %xmm0
movss %xmm0, 0x48(%rsp)
xorps %xmm0, %xmm0
cvtsi2ssq 0x8(%rbx), %xmm0
movss %xmm0, 0xc(%rsp)
movq 0x2e853(%rip), %rax     # 0x33fd8
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movl $0xfffffefb, %edx       # imm = 0xFFFFFEFB
andl 0x18(%rax,%rcx), %edx
orl $0x4, %edx
movl %edx, 0x18(%rax,%rcx)
cmpl $0x3, %ebp
jl 0x598d
movss 0xc(%rsp), %xmm0
addss (%rsp), %xmm0
movss %xmm0, 0xc(%rsp)
movl $0x1, %eax
movq %rax, 0x40(%rsp)
leaq 0x170(%rsp), %r15
leaq 0xe0(%rsp), %r12
movq 0x8(%r13), %rsi
cmpb $0x2d, (%rsi)
jne 0x59a3
movq %r15, %rdi
movq %r12, %rdx
callq 0x50c0
movq %r15, %rdi
leaq 0x1f99a(%rip), %rsi     # 0x2518c
callq 0x5080
movl %eax, %ebx
movq 0x170(%rsp), %rdi
leaq 0x180(%rsp), %rax
cmpq %rax, %rdi
je 0x5813
callq 0x51f0
leaq 0x8(%r13), %r14
testl %ebx, %ebx
je 0x5953
movq (%r14), %rsi
cmpb $0x72, 0x1(%rsi)
je 0x5914
movq %r15, %rdi
movq %r12, %rdx
callq 0x50c0
movq %r15, %rdi
leaq 0x1f957(%rip), %rsi     # 0x25198
callq 0x5080
movl %eax, %ebx
movq 0x170(%rsp), %rdi
leaq 0x180(%rsp), %rax
cmpq %rax, %rdi
je 0x5862
callq 0x51f0
testl %ebx, %ebx
je 0x5914
movq (%r14), %rsi
cmpb $0x73, 0x1(%rsi)
je 0x595e
movq %r15, %rdi
movq %r12, %rdx
callq 0x50c0
movq %r15, %rdi
leaq 0x1f916(%rip), %rsi     # 0x251a2
callq 0x5080
movl %eax, %ebx
movq 0x170(%rsp), %rdi
leaq 0x180(%rsp), %rax
cmpq %rax, %rdi
je 0x58ad
callq 0x51f0
testl %ebx, %ebx
je 0x595e
movq (%r14), %rsi
cmpb $0x74, 0x1(%rsi)
je 0x58fc
movq %r15, %rdi
movq %r12, %rdx
callq 0x50c0
movq %r15, %rdi
leaq 0x1f8d6(%rip), %rsi     # 0x251a9
callq 0x5080
movl %eax, %ebx
movq 0x170(%rsp), %rdi
leaq 0x180(%rsp), %rax
cmpq %rax, %rdi
je 0x58f4
callq 0x51f0
testl %ebx, %ebx
jne 0x6300
movq 0x10(%r13), %rdi
addq $0x10, %r13
xorl %esi, %esi
xorl %edx, %edx
callq 0x50a0
movq %rax, 0x40(%rsp)
jmp 0x597b
movq 0x10(%r13), %rsi
movq %r15, %rdi
movq %r12, %rdx
callq 0x50c0
leaq 0xb0(%rsp), %rdi
movq %r15, %rsi
callq 0x95e6
movq 0x170(%rsp), %rdi
leaq 0x180(%rsp), %rax
cmpq %rax, %rdi
je 0x594d
callq 0x51f0
addq $0x10, %r13
jmp 0x597b
decl %ebp
movb $0x0, 0x2e88c(%rip)     # 0x341e8
jmp 0x5981
movq 0x10(%r13), %rdi
addq $0x10, %r13
xorl %esi, %esi
xorl %edx, %edx
callq 0x50a0
movl %eax, 0x2e88b(%rip)     # 0x34200
movl %eax, 0x2e889(%rip)     # 0x34204
addl $-0x2, %ebp
movq %r13, %r14
movq %r14, %r13
cmpl $0x2, %ebp
jg 0x57d0
movq 0x2e644(%rip), %rdi     # 0x33fd8
callq 0x56bc
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0x5280
cmpl $0x3, %ebp
je 0x598d
movq %rsi, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x50a0
movq %rax, %rbx
movq 0x10(%r13), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x50a0
movq %rax, %r15
movq 0x18(%r13), %rdi
xorl %esi, %esi
callq 0x51a0
movsd %xmm0, (%rsp)
movq 0x2e5fa(%rip), %rdi     # 0x33fd8
leaq 0x1f7cd(%rip), %rsi     # 0x251b2
movl $0xb, %edx
callq 0x5250
movl 0x2e80b(%rip), %esi     # 0x34200
movq 0x2e5dc(%rip), %rdi     # 0x33fd8
callq 0x5160
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x5200
movsbl %al, %esi
movq %r14, %rdi
callq 0x5030
movq %rax, %rdi
callq 0x5170
movslq 0x2e7ce(%rip), %rdi     # 0x34200
leaq 0x170(%rsp), %r14
movw %di, 0x4(%r14)
movw %di, 0x2(%r14)
movw %di, (%r14)
callq 0x5340
movq %r14, %rdi
callq 0x50e0
leaq 0xd0(%rsp), %rdi
movq $0x0, (%rdi)
movl $0x0, 0x8(%rdi)
movl %ebx, %esi
movl %r15d, %edx
callq 0x6484
leaq 0xd0(%rsp), %rdi
movl %ebx, %esi
movl %r15d, %edx
movl $0x1f4, %ecx            # imm = 0x1F4
callq 0x64e4
xorps %xmm0, %xmm0
cvtsd2ss (%rsp), %xmm0
movsd 0x1f574(%rip), %xmm1    # 0x25010
leaq 0x238(%rsp), %rdi
movsd %xmm1, -0x28(%rdi)
xorl %r14d, %r14d
movq %r14, -0x20(%rdi)
leaq 0x2d481(%rip), %rax     # 0x32f38
movq %rax, -0x30(%rdi)
movl %ebx, -0x18(%rdi)
movl %r15d, -0x14(%rdi)
movss %xmm0, -0x10(%rdi)
movq 0xd0(%rsp), %rax
movq %rax, -0xc(%rdi)
movl 0xd8(%rsp), %eax
movl %eax, -0x4(%rdi)
movq %r14, (%rdi)
movl $0x0, 0x8(%rdi)
movl %ebx, %esi
movl %r15d, %edx
callq 0x6484
xorps %xmm0, %xmm0
movaps %xmm0, 0x90(%rsp)
movq %r14, 0xa0(%rsp)
movq %r14, 0x80(%rsp)
movaps %xmm0, 0x70(%rsp)
leaq 0x2d558(%rip), %rax     # 0x33070
leaq 0x1b0(%rsp), %rcx
movq %rax, -0x40(%rcx)
movl %r14d, -0x30(%rcx)
movq %r14, -0x28(%rcx)
leaq 0x180(%rsp), %rax
movq %rax, -0x20(%rcx)
movq %rax, -0x18(%rcx)
movq %r14, -0x10(%rcx)
movl %r14d, (%rcx)
movq %r14, 0x8(%rcx)
movq %rcx, 0x10(%rcx)
movq %rcx, 0x18(%rcx)
movq %r14, 0x20(%rcx)
leaq 0x1e0(%rsp), %rax
movl %r14d, (%rax)
movq %r14, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
movq %r14, 0x20(%rax)
leaq 0xf0(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x1f63d(%rip), %rsi     # 0x251be
leaq 0x1f641(%rip), %rdx     # 0x251c9
leaq 0xe0(%rsp), %rdi
callq 0x9224
movl $0x20, %edi
callq 0x5210
leaq 0x208(%rsp), %rcx
movq %rcx, 0x8(%rax)
movq $0x0, 0x10(%rax)
movl $0x0, 0x18(%rax)
leaq 0x2d41f(%rip), %rcx     # 0x32fe0
movq %rcx, (%rax)
leaq 0x170(%rsp), %rdi
leaq 0xe0(%rsp), %rsi
movq %rax, %rdx
callq 0x655a
movq 0xe0(%rsp), %rdi
cmpq %r14, %rdi
je 0x5bee
callq 0x51f0
movq 0xb0(%rsp), %rax
movq 0xb8(%rsp), %rcx
subq %rax, %rcx
shrq $0x5, %rcx
testl %ecx, %ecx
jle 0x5dfe
leaq 0xe8(%rsp), %r12
leaq 0xe0(%rsp), %rbx
leaq 0x208(%rsp), %r13
leaq 0x1f59e(%rip), %rbp     # 0x251ca
xorl %edi, %edi
movq %rdi, (%rsp)
shlq $0x5, %rdi
addq %rax, %rdi
movl $0x0, 0xe8(%rsp)
xorl %eax, %eax
movq %rax, 0xf0(%rsp)
movq %r12, 0xf8(%rsp)
movq %r12, 0x100(%rsp)
movq %rax, 0x108(%rsp)
movq %rbx, %rsi
movl $0x2c, %edx
callq 0x65d3
movq 0xf8(%rsp), %r14
cmpq %r12, %r14
je 0x5dc4
leaq 0x20(%r14), %rbx
leaq 0x40(%r14), %r15
leaq 0x170(%rsp), %rdi
movq %r13, %rsi
movq %rbx, %rdx
movq %r15, %rcx
callq 0x6826
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x5080
testl %eax, %eax
je 0x5d42
movq %rbx, %rdi
leaq 0x1f515(%rip), %rsi     # 0x251d4
callq 0x5080
testl %eax, %eax
jne 0x5db0
leaq 0x1d8(%rsp), %rdi
movq %r15, %rsi
callq 0x2358c
leaq 0x1e0(%rsp), %rcx
cmpq %rcx, %rax
je 0x5db0
movq 0x40(%rax), %rbx
testq %rbx, %rbx
je 0x5db0
leaq 0x20(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x40(%r14), %rsi
movq 0x48(%r14), %rdx
addq %rsi, %rdx
leaq 0x10(%rsp), %r15
movq %r15, %rdi
callq 0x94fa
movq %rbx, 0x30(%rsp)
leaq 0x90(%rsp), %rdi
movq %r15, %rsi
callq 0x23616
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x5db0
jmp 0x5dab
leaq 0x178(%rsp), %rdi
movq %r15, %rsi
callq 0x2324c
leaq 0x180(%rsp), %rcx
cmpq %rcx, %rax
je 0x5db0
movq 0x40(%rax), %rbx
testq %rbx, %rbx
je 0x5db0
leaq 0x20(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x40(%r14), %rsi
movq 0x48(%r14), %rdx
addq %rsi, %rdx
leaq 0x10(%rsp), %r15
movq %r15, %rdi
callq 0x94fa
movq %rbx, 0x30(%rsp)
leaq 0x70(%rsp), %rdi
movq %r15, %rsi
callq 0x232d6
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x5db0
callq 0x51f0
movq %r14, %rdi
callq 0x5260
movq %rax, %r14
cmpq %r12, %rax
jne 0x5c84
leaq 0xe0(%rsp), %rbx
movq %rbx, %rdi
callq 0x9590
movq (%rsp), %rdi
incq %rdi
movq 0xb0(%rsp), %rax
movq 0xb8(%rsp), %rcx
subq %rax, %rcx
shrq $0x5, %rcx
movslq %ecx, %rcx
cmpq %rcx, %rdi
jl 0x5c2e
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movq $0x0, 0x20(%rsp)
movq 0x70(%rsp), %rsi
movq 0x78(%rsp), %rax
subq %rsi, %rax
shrq $0x3, %rax
imull $0xcccccccd, %eax, %eax # imm = 0xCCCCCCCD
testl %eax, %eax
jle 0x5edb
leaq 0x100(%rsp), %r13
xorl %ebp, %ebp
leaq 0xe0(%rsp), %r15
leaq 0x10(%rsp), %r12
xorl %r14d, %r14d
xorl %ebx, %ebx
movq 0x20(%rsi,%r14), %rdx
addq %r14, %rsi
movq %rbp, 0xe0(%rsp)
movl $0x0, 0xe8(%rsp)
movq %r13, 0xf0(%rsp)
movq %rbp, 0xf8(%rsp)
movb $0x0, 0x100(%rsp)
leaq 0x170(%rsp), %rdi
leaq 0x22c(%rsp), %rcx
movq %r15, %r8
callq 0x765a
movq %r12, %rdi
movq %r15, %rsi
callq 0x7874
movq 0xf0(%rsp), %rdi
cmpq %r13, %rdi
je 0x5eb2
callq 0x51f0
incq %rbx
movq 0x70(%rsp), %rsi
movq 0x78(%rsp), %rax
subq %rsi, %rax
shrq $0x3, %rax
imull $0xcccccccd, %eax, %eax # imm = 0xCCCCCCCD
cltq
addq $0x28, %r14
cmpq %rax, %rbx
jl 0x5e4a
movb 0x2e307(%rip), %al      # 0x341e8
testb %al, %al
leaq 0x1f4ef(%rip), %rcx     # 0x253d9
leaq 0x1fcfb(%rip), %rsi     # 0x25bec
cmovneq %rcx, %rsi
leaq 0x14(%rsi), %rdx
testb %al, %al
leaq 0xe0(%rsp), %rdi
leaq 0xf0(%rsp), %r14
movq %r14, (%rdi)
cmoveq %rsi, %rdx
callq 0x9224
movq 0xe0(%rsp), %rsi
movq 0xe8(%rsp), %rdx
movq 0x2e0aa(%rip), %rdi     # 0x33fd8
callq 0x5250
movq %rax, %rbx
leaq 0x1f29e(%rip), %rsi     # 0x251db
movl $0x53, %edx
movq %rax, %rdi
callq 0x5250
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x5200
movsbl %al, %esi
movq %rbx, %rdi
callq 0x5030
movq %rax, %rdi
callq 0x5170
movq 0xe0(%rsp), %rdi
cmpq %r14, %rdi
je 0x5f83
callq 0x51f0
movq 0x10(%rsp), %rdx
movq 0x18(%rsp), %rax
cmpq %rax, %rdx
je 0x5feb
subq %rdx, %rax
shrq $0x3, %rax
imull $0xba2e8ba3, %eax, %eax # imm = 0xBA2E8BA3
testl %eax, %eax
jle 0x5feb
xorl %r14d, %r14d
movq 0x2e02b(%rip), %rbx     # 0x33fd8
leaq 0x170(%rsp), %r12
xorl %r15d, %r15d
addq %r14, %rdx
movq %r12, %rdi
movq %rbx, %rsi
callq 0x78ee
incq %r15
movq 0x10(%rsp), %rdx
movq 0x18(%rsp), %rax
subq %rdx, %rax
shrq $0x3, %rax
imull $0xba2e8ba3, %eax, %eax # imm = 0xBA2E8BA3
cltq
addq $0x58, %r14
cmpq %rax, %r15
jl 0x5fb8
xorps %xmm0, %xmm0
movaps %xmm0, 0x50(%rsp)
movq $0x0, 0x60(%rsp)
movq 0x90(%rsp), %rsi
movq 0x98(%rsp), %rax
subq %rsi, %rax
shrq $0x3, %rax
imull $0xcccccccd, %eax, %eax # imm = 0xCCCCCCCD
testl %eax, %eax
leaq 0xf0(%rsp), %r14
jle 0x60d3
xorl %ebp, %ebp
leaq 0x170(%rsp), %rbx
leaq 0xe0(%rsp), %r12
leaq 0x50(%rsp), %r13
xorl %r15d, %r15d
movq 0x20(%rsi,%rbp), %rdx
addq %rbp, %rsi
movq %r14, 0xe0(%rsp)
movq $0x0, 0xe8(%rsp)
movb $0x0, 0xf0(%rsp)
movq %rbx, %rdi
leaq 0x22c(%rsp), %rcx
movq %r12, %r8
movq 0x40(%rsp), %r9
pushq $0x1
pushq $0x64
callq 0x821e
addq $0x10, %rsp
movq %r13, %rdi
movq %r12, %rsi
callq 0x83e8
movq 0xe0(%rsp), %rdi
cmpq %r14, %rdi
je 0x60a4
callq 0x51f0
incq %r15
movq 0x90(%rsp), %rsi
movq 0x98(%rsp), %rax
subq %rsi, %rax
shrq $0x3, %rax
imull $0xcccccccd, %eax, %eax # imm = 0xCCCCCCCD
cltq
addq $0x28, %rbp
cmpq %rax, %r15
jl 0x6043
movb 0x2e10f(%rip), %al      # 0x341e8
testb %al, %al
leaq 0x1fb0a(%rip), %rsi     # 0x25bec
leaq 0x1f2f0(%rip), %rcx     # 0x253d9
cmovneq %rcx, %rsi
leaq 0x14(%rsi), %rdx
testb %al, %al
leaq 0xe0(%rsp), %rdi
movq %r14, (%rdi)
cmoveq %rsi, %rdx
callq 0x9224
movq 0xe0(%rsp), %rsi
movq 0xe8(%rsp), %rdx
movq 0x2deba(%rip), %rdi     # 0x33fd8
callq 0x5250
movq %rax, %rbx
leaq 0x1f102(%rip), %rsi     # 0x2522f
movl $0x51, %edx
movq %rax, %rdi
callq 0x5250
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x5200
movsbl %al, %esi
movq %rbx, %rdi
callq 0x5030
movq %rax, %rdi
callq 0x5170
movq 0xe0(%rsp), %rdi
cmpq %r14, %rdi
je 0x6173
callq 0x51f0
movq 0x50(%rsp), %rdx
movq 0x58(%rsp), %rax
cmpq %rax, %rdx
je 0x61db
subq %rdx, %rax
shrq $0x3, %rax
imull $0x38e38e39, %eax, %eax # imm = 0x38E38E39
testl %eax, %eax
jle 0x61db
xorl %r15d, %r15d
movq 0x2de3b(%rip), %rbx     # 0x33fd8
leaq 0x170(%rsp), %r14
xorl %r12d, %r12d
addq %r15, %rdx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x8450
incq %r12
movq 0x50(%rsp), %rdx
movq 0x58(%rsp), %rax
subq %rdx, %rax
shrq $0x3, %rax
imull $0x38e38e39, %eax, %eax # imm = 0x38E38E39
cltq
addq $0x48, %r15
cmpq %rax, %r12
jl 0x61a8
movq 0x2ddf6(%rip), %rdi     # 0x33fd8
leaq 0x1f098(%rip), %rsi     # 0x25281
movl $0x11, %edx
callq 0x5250
leaq 0xe0(%rsp), %rbx
xorl %edi, %edi
movq %rbx, %rsi
callq 0x5140
cvtsi2ssq (%rbx), %xmm0
movss %xmm0, (%rsp)
xorps %xmm0, %xmm0
cvtsi2ssq 0x8(%rbx), %xmm0
subss 0xc(%rsp), %xmm0
movss %xmm0, 0x40(%rsp)
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
movq %rbx, %rsi
callq 0x5140
xorps %xmm0, %xmm0
cvtsi2ssq (%rbx), %xmm0
cvtsi2ssq 0x8(%rbx), %xmm1
addss 0x40(%rsp), %xmm1
mulss 0x1ee73(%rip), %xmm1    # 0x250c0
movss 0x4c(%rsp), %xmm2
addss 0x48(%rsp), %xmm2
movss (%rsp), %xmm3
subss %xmm2, %xmm3
addss %xmm0, %xmm3
addss %xmm1, %xmm3
xorps %xmm0, %xmm0
cvtss2sd %xmm3, %xmm0
movq 0x2dd60(%rip), %rdi     # 0x33fd8
callq 0x5300
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x5200
movsbl %al, %esi
movq %rbx, %rdi
callq 0x5030
movq %rax, %rdi
callq 0x5170
leaq 0x50(%rsp), %rdi
callq 0x881e
leaq 0x10(%rsp), %rdi
callq 0x8868
leaq 0x170(%rsp), %rdi
callq 0x88ba
leaq 0x70(%rsp), %rdi
callq 0x897a
leaq 0x90(%rsp), %rdi
callq 0x89c4
leaq 0xb0(%rsp), %rdi
callq 0x8a10
xorl %eax, %eax
addq $0x248, %rsp            # imm = 0x248
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x2dcd1(%rip), %rdi     # 0x33fd8
callq 0x56bc
jmp 0x5999
jmp 0x63bb
jmp 0x637f
jmp 0x6384
movq %rax, %rbx
jmp 0x644a
jmp 0x63bb
movq %rax, %rbx
movq 0xe0(%rsp), %rdi
cmpq %r14, %rdi
je 0x644a
callq 0x51f0
jmp 0x644a
jmp 0x63bb
jmp 0x63bb
jmp 0x637f
movq %rax, %rbx
movq 0xe0(%rsp), %rdi
cmpq %r14, %rdi
je 0x63ee
jmp 0x63e9
movq %rax, %rbx
movq 0xe0(%rsp), %rdi
cmpq %r14, %rdi
je 0x640f
jmp 0x640a
jmp 0x63bb
movq %rax, %rbx
jmp 0x63ee
movq %rax, %rbx
jmp 0x640f
movq %rax, %rbx
movq 0x170(%rsp), %rdi
leaq 0x180(%rsp), %rax
cmpq %rax, %rdi
je 0x646e
callq 0x51f0
jmp 0x646e
jmp 0x63bb
jmp 0x643a
jmp 0x63bb
movq %rax, %rbx
jmp 0x646e
movq %rax, %rbx
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x643d
jmp 0x642d
jmp 0x643a
movq %rax, %rbx
movq 0xe0(%rsp), %rdi
cmpq %r14, %rdi
je 0x63ee
callq 0x51f0
leaq 0x50(%rsp), %rdi
callq 0x881e
jmp 0x640f
movq %rax, %rbx
movq 0xf0(%rsp), %rdi
cmpq %r13, %rdi
je 0x640f
callq 0x51f0
leaq 0x10(%rsp), %rdi
callq 0x8868
jmp 0x644a
movq %rax, %rbx
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x643d
callq 0x51f0
jmp 0x643d
jmp 0x643a
jmp 0x643a
jmp 0x643a
movq %rax, %rbx
leaq 0xe0(%rsp), %rdi
callq 0x9590
leaq 0x170(%rsp), %rdi
callq 0x88ba
leaq 0x70(%rsp), %rdi
callq 0x897a
leaq 0x90(%rsp), %rdi
callq 0x89c4
leaq 0xb0(%rsp), %rdi
callq 0x8a10
movq %rbx, %rdi
callq 0x5360
nop