// File: /workspace/github_cpp_makefile_star2_O1/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 $0x2a8, %rsp            # imm = 0x2A8
movq %rsi, %r13
movl %edi, %ebp
xorps %xmm0, %xmm0
movaps %xmm0, 0x140(%rsp)
movq $0x0, 0x150(%rsp)
xorl %r15d, %r15d
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, 0x44(%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, (%rsp)
movq 0x30820(%rip), %rax     # 0x35fd8
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)
leaq 0x8(%r13), %r14
movl $0x1, %eax
cmpl $0x3, %ebp
jl 0x5a16
movq %rax, 0x38(%rsp)
leaq 0x170(%rsp), %r15
leaq 0x70(%rsp), %r12
movq 0x8(%r13), %rax
cmpb $0x2d, (%rax)
jne 0x5a0d
movq (%r14), %rsi
movq %r15, %rdi
movq %r12, %rdx
callq 0x50c0
movq %r15, %rdi
leaq 0x2096c(%rip), %rsi     # 0x26184
callq 0x5080
movl %eax, %ebx
movq 0x170(%rsp), %rdi
leaq 0x180(%rsp), %rax
cmpq %rax, %rdi
je 0x5839
callq 0x51f0
testl %ebx, %ebx
je 0x58ed
movq (%r14), %rax
movb 0x1(%rax), %bl
movb $0x1, %r12b
cmpb $0x72, %bl
je 0x587c
movq (%r14), %rsi
leaq 0x248(%rsp), %r12
movq %r12, %rdi
leaq 0x7(%rsp), %rdx
callq 0x50c0
movq %r12, %rdi
leaq 0x2091f(%rip), %rsi     # 0x26190
callq 0x5080
testl %eax, %eax
sete %r12b
cmpb $0x72, %bl
je 0x589b
movq 0x248(%rsp), %rdi
leaq 0x258(%rsp), %rax
cmpq %rax, %rdi
je 0x589b
callq 0x51f0
testb %r12b, %r12b
je 0x58fb
movq 0x10(%r13), %rsi
movq %r15, %rdi
leaq 0x70(%rsp), %r12
movq %r12, %rdx
callq 0x50c0
leaq 0x140(%rsp), %rdi
movq %r15, %rsi
callq 0x95b0
movq 0x170(%rsp), %rdi
leaq 0x180(%rsp), %rax
cmpq %rax, %rdi
je 0x58de
callq 0x51f0
addq $0x10, %r13
addl $-0x2, %ebp
movq %r13, %r14
jmp 0x59fd
decl %ebp
movb $0x0, 0x308f2(%rip)     # 0x361e8
jmp 0x59fd
movq (%r14), %rax
movb 0x1(%rax), %bl
movb $0x1, %r12b
cmpb $0x73, %bl
je 0x5936
movq (%r14), %rsi
leaq 0x228(%rsp), %r12
movq %r12, %rdi
leaq 0x6(%rsp), %rdx
callq 0x50c0
movq %r12, %rdi
leaq 0x2086f(%rip), %rsi     # 0x2619a
callq 0x5080
testl %eax, %eax
sete %r12b
cmpb $0x73, %bl
je 0x5955
movq 0x228(%rsp), %rdi
leaq 0x238(%rsp), %rax
cmpq %rax, %rdi
je 0x5955
callq 0x51f0
testb %r12b, %r12b
je 0x5979
movq 0x10(%r13), %rdi
addq $0x10, %r13
xorl %esi, %esi
xorl %edx, %edx
callq 0x50a0
movl %eax, 0x3088f(%rip)     # 0x36200
movl %eax, 0x3088d(%rip)     # 0x36204
jmp 0x59f2
movq (%r14), %rax
movb 0x1(%rax), %bl
movb $0x1, %r12b
cmpb $0x74, %bl
je 0x59b4
movq (%r14), %rsi
leaq 0x208(%rsp), %r14
movq %r14, %rdi
leaq 0x5(%rsp), %rdx
callq 0x50c0
movq %r14, %rdi
leaq 0x207f8(%rip), %rsi     # 0x261a1
callq 0x5080
testl %eax, %eax
sete %r12b
cmpb $0x74, %bl
je 0x59d3
movq 0x208(%rsp), %rdi
leaq 0x218(%rsp), %rax
cmpq %rax, %rdi
je 0x59d3
callq 0x51f0
testb %r12b, %r12b
je 0x639d
movq 0x10(%r13), %rdi
addq $0x10, %r13
xorl %esi, %esi
xorl %edx, %edx
callq 0x50a0
movq %rax, 0x38(%rsp)
addl $-0x2, %ebp
movq %r13, %r14
leaq 0x70(%rsp), %r12
movq %r14, %r13
addq $0x8, %r14
cmpl $0x2, %ebp
jg 0x57f3
cmpl $0x4, %ebp
setge %r15b
jmp 0x5a1b
movq %rax, 0x38(%rsp)
testb %r15b, %r15b
je 0x63ab
movq (%r14), %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, 0x8(%rsp)
movq 0x3057d(%rip), %rdi     # 0x35fd8
leaq 0x20748(%rip), %rsi     # 0x261aa
movl $0xb, %edx
callq 0x5250
movl 0x3078e(%rip), %esi     # 0x36200
movq 0x3055f(%rip), %rdi     # 0x35fd8
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 0x30751(%rip), %rdi     # 0x36200
leaq 0x170(%rsp), %r14
movw %di, 0x4(%r14)
movw %di, 0x2(%r14)
movw %di, (%r14)
callq 0x5340
movq %r14, %rdi
callq 0x50e0
leaq 0x160(%rsp), %rdi
movq $0x0, (%rdi)
movl $0x0, 0x8(%rdi)
movl %ebx, %esi
movl %r15d, %edx
callq 0x653c
leaq 0x160(%rsp), %rdi
movl %ebx, %esi
movl %r15d, %edx
movl $0x1f4, %ecx            # imm = 0x1F4
callq 0x657a
xorps %xmm0, %xmm0
cvtsd2ss 0x8(%rsp), %xmm0
movsd 0x204f6(%rip), %xmm1    # 0x26010
leaq 0x298(%rsp), %rdi
movsd %xmm1, -0x28(%rdi)
xorl %r14d, %r14d
movq %r14, -0x20(%rdi)
leaq 0x2f0d3(%rip), %rax     # 0x34c08
movq %rax, -0x30(%rdi)
movl %ebx, -0x18(%rdi)
movl %r15d, -0x14(%rdi)
movss %xmm0, -0x10(%rdi)
movq 0x160(%rsp), %rax
movq %rax, -0xc(%rdi)
movl 0x168(%rsp), %eax
movl %eax, -0x4(%rdi)
movq %r14, (%rdi)
movl $0x0, 0x8(%rdi)
movl %ebx, %esi
movl %r15d, %edx
callq 0x653c
xorps %xmm0, %xmm0
movaps %xmm0, 0x120(%rsp)
movq %r14, 0x130(%rsp)
movq %r14, 0x110(%rsp)
movaps %xmm0, 0x100(%rsp)
leaq 0x2f277(%rip), %rax     # 0x34e10
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 0x80(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x205b4(%rip), %rsi     # 0x261b6
leaq 0x205b8(%rip), %rdx     # 0x261c1
leaq 0x70(%rsp), %rdi
callq 0x91fc
movl $0x20, %edi
callq 0x5210
leaq 0x268(%rsp), %rcx
movq %rcx, 0x8(%rax)
movq $0x0, 0x10(%rax)
movl $0x0, 0x18(%rax)
leaq 0x2f0f1(%rip), %rcx     # 0x34d30
movq %rcx, (%rax)
leaq 0x170(%rsp), %rdi
leaq 0x70(%rsp), %rsi
movq %rax, %rdx
callq 0x65f0
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x5c6e
callq 0x51f0
movq 0x140(%rsp), %rax
movq 0x148(%rsp), %rcx
subq %rax, %rcx
shrq $0x5, %rcx
testl %ecx, %ecx
jle 0x5e79
leaq 0x78(%rsp), %r13
leaq 0x70(%rsp), %r14
leaq 0x268(%rsp), %rbp
leaq 0x2051c(%rip), %rbx     # 0x261c2
xorl %edi, %edi
movq %rdi, 0x8(%rsp)
shlq $0x5, %rdi
addq %rax, %rdi
movl $0x0, 0x78(%rsp)
xorl %eax, %eax
movq %rax, 0x80(%rsp)
movq %r13, 0x88(%rsp)
movq %r13, 0x90(%rsp)
movq %rax, 0x98(%rsp)
movq %r14, %rsi
movl $0x2c, %edx
callq 0x6669
movq 0x88(%rsp), %r15
cmpq %r13, %r15
je 0x5e41
leaq 0x20(%r15), %r12
leaq 0x40(%r15), %r14
leaq 0x170(%rsp), %rdi
movq %rbp, %rsi
movq %r12, %rdx
movq %r14, %rcx
callq 0x68d6
movq %r12, %rdi
movq %rbx, %rsi
callq 0x5080
testl %eax, %eax
je 0x5d63
movq %r12, %rdi
leaq 0x20499(%rip), %rsi     # 0x261cc
callq 0x5080
testl %eax, %eax
jne 0x5e2d
leaq 0x1d8(%rsp), %rdi
movq %r14, %rsi
callq 0x24094
leaq 0x1e0(%rsp), %rcx
cmpq %rcx, %rax
je 0x5dda
movq 0x40(%rax), %r14
jmp 0x5ddd
leaq 0x178(%rsp), %rdi
movq %r14, %rsi
callq 0x23d54
leaq 0x180(%rsp), %rcx
cmpq %rcx, %rax
je 0x5d86
movq 0x40(%rax), %r14
jmp 0x5d89
xorl %r14d, %r14d
testq %r14, %r14
je 0x5e2d
leaq 0x20(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x40(%r15), %rsi
movq 0x48(%r15), %rdx
addq %rsi, %rdx
leaq 0x10(%rsp), %r12
movq %r12, %rdi
callq 0x94ca
movq %r14, 0x30(%rsp)
leaq 0x100(%rsp), %rdi
movq %r12, %rsi
callq 0x23dde
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x5e2d
jmp 0x5e28
xorl %r14d, %r14d
testq %r14, %r14
je 0x5e2d
leaq 0x20(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x40(%r15), %rsi
movq 0x48(%r15), %rdx
addq %rsi, %rdx
leaq 0x10(%rsp), %r12
movq %r12, %rdi
callq 0x94ca
movq %r14, 0x30(%rsp)
leaq 0x120(%rsp), %rdi
movq %r12, %rsi
callq 0x2411e
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x5e2d
callq 0x51f0
movq %r15, %rdi
callq 0x5260
movq %rax, %r15
cmpq %r13, %rax
jne 0x5cfc
leaq 0x70(%rsp), %r14
movq %r14, %rdi
callq 0x955a
movq 0x8(%rsp), %rdi
incq %rdi
movq 0x140(%rsp), %rax
movq 0x148(%rsp), %rcx
subq %rax, %rcx
shrq $0x5, %rcx
movslq %ecx, %rcx
cmpq %rcx, %rdi
jl 0x5ca8
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movq $0x0, 0x20(%rsp)
movq 0x100(%rsp), %rsi
movq 0x108(%rsp), %rax
subq %rsi, %rax
shrq $0x3, %rax
imull $0xcccccccd, %eax, %eax # imm = 0xCCCCCCCD
testl %eax, %eax
jle 0x5f59
leaq 0x90(%rsp), %r13
xorl %ebp, %ebp
leaq 0x70(%rsp), %r15
leaq 0x10(%rsp), %r12
xorl %r14d, %r14d
xorl %ebx, %ebx
movq 0x20(%rsi,%r14), %rdx
addq %r14, %rsi
movq %rbp, 0x70(%rsp)
movl $0x0, 0x78(%rsp)
movq %r13, 0x80(%rsp)
movq %rbp, 0x88(%rsp)
movb $0x0, 0x90(%rsp)
leaq 0x170(%rsp), %rdi
leaq 0x28c(%rsp), %rcx
movq %r15, %r8
callq 0x770a
movq %r12, %rdi
movq %r15, %rsi
callq 0x7924
movq 0x80(%rsp), %rdi
cmpq %r13, %rdi
je 0x5f2a
callq 0x51f0
incq %rbx
movq 0x100(%rsp), %rsi
movq 0x108(%rsp), %rax
subq %rsi, %rax
shrq $0x3, %rax
imull $0xcccccccd, %eax, %eax # imm = 0xCCCCCCCD
cltq
addq $0x28, %r14
cmpq %rax, %rbx
jl 0x5ec8
movb 0x30289(%rip), %al      # 0x361e8
testb %al, %al
leaq 0x20469(%rip), %rcx     # 0x263d1
leaq 0x20c75(%rip), %rsi     # 0x26be4
cmovneq %rcx, %rsi
leaq 0x14(%rsi), %rdx
testb %al, %al
leaq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
movq %rax, (%rdi)
cmoveq %rsi, %rdx
callq 0x91fc
movq 0x70(%rsp), %rsi
movq 0x78(%rsp), %rdx
movq 0x30035(%rip), %rdi     # 0x35fd8
callq 0x5250
movq %rax, %rbx
leaq 0x20221(%rip), %rsi     # 0x261d3
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 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x5ffd
callq 0x51f0
movq 0x10(%rsp), %rax
cmpq 0x18(%rsp), %rax
je 0x606c
movq 0x10(%rsp), %rdx
movq 0x18(%rsp), %rax
subq %rdx, %rax
shrq $0x3, %rax
imull $0xba2e8ba3, %eax, %eax # imm = 0xBA2E8BA3
testl %eax, %eax
jle 0x606c
xorl %r14d, %r14d
movq 0x2ffaa(%rip), %rbx     # 0x35fd8
leaq 0x170(%rsp), %r12
xorl %r15d, %r15d
addq %r14, %rdx
movq %r12, %rdi
movq %rbx, %rsi
callq 0x799e
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 0x6039
xorps %xmm0, %xmm0
movaps %xmm0, 0x50(%rsp)
movq $0x0, 0x60(%rsp)
movq 0x120(%rsp), %rsi
movq 0x128(%rsp), %rax
subq %rsi, %rax
shrq $0x3, %rax
imull $0xcccccccd, %eax, %eax # imm = 0xCCCCCCCD
testl %eax, %eax
movq 0x38(%rsp), %r14
jle 0x6153
xorl %ebp, %ebp
leaq 0x170(%rsp), %rbx
leaq 0x70(%rsp), %r12
leaq 0x50(%rsp), %r13
xorl %r15d, %r15d
movq 0x20(%rsi,%rbp), %rdx
addq %rbp, %rsi
leaq 0x80(%rsp), %rax
movq %rax, 0x70(%rsp)
movq $0x0, 0x78(%rsp)
movb $0x0, 0x80(%rsp)
movq %rbx, %rdi
leaq 0x28c(%rsp), %rcx
movq %r12, %r8
movl %r14d, %r9d
pushq $0x1
pushq $0x64
callq 0x82a6
addq $0x10, %rsp
movq %r13, %rdi
movq %r12, %rsi
callq 0x8470
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x6124
callq 0x51f0
incq %r15
movq 0x120(%rsp), %rsi
movq 0x128(%rsp), %rax
subq %rsi, %rax
shrq $0x3, %rax
imull $0xcccccccd, %eax, %eax # imm = 0xCCCCCCCD
cltq
addq $0x28, %rbp
cmpq %rax, %r15
jl 0x60be
movb 0x3008f(%rip), %al      # 0x361e8
testb %al, %al
leaq 0x20a82(%rip), %rsi     # 0x26be4
leaq 0x20268(%rip), %rcx     # 0x263d1
cmovneq %rcx, %rsi
leaq 0x14(%rsi), %rdx
testb %al, %al
leaq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
movq %rax, (%rdi)
cmoveq %rsi, %rdx
callq 0x91fc
movq 0x70(%rsp), %rsi
movq 0x78(%rsp), %rdx
movq 0x2fe3b(%rip), %rdi     # 0x35fd8
callq 0x5250
movq %rax, %rbx
leaq 0x2007b(%rip), %rsi     # 0x26227
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 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x61f7
callq 0x51f0
movq 0x50(%rsp), %rax
cmpq 0x58(%rsp), %rax
je 0x6266
movq 0x50(%rsp), %rdx
movq 0x58(%rsp), %rax
subq %rdx, %rax
shrq $0x3, %rax
imull $0x38e38e39, %eax, %eax # imm = 0x38E38E39
testl %eax, %eax
jle 0x6266
xorl %r15d, %r15d
movq 0x2fdb0(%rip), %rbx     # 0x35fd8
leaq 0x170(%rsp), %r14
xorl %r12d, %r12d
addq %r15, %rdx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x84d8
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 0x6233
movq 0x2fd6b(%rip), %rdi     # 0x35fd8
leaq 0x20005(%rip), %rsi     # 0x26279
movl $0x11, %edx
callq 0x5250
movss (%rsp), %xmm0
addss 0x44(%rsp), %xmm0
movss %xmm0, (%rsp)
leaq 0x70(%rsp), %rbx
xorl %edi, %edi
movq %rbx, %rsi
callq 0x5140
xorps %xmm0, %xmm0
cvtsi2ssq (%rbx), %xmm0
movss %xmm0, 0x8(%rsp)
xorps %xmm0, %xmm0
cvtsi2ssq 0x8(%rbx), %xmm0
subss (%rsp), %xmm0
movss %xmm0, (%rsp)
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
movq %rbx, %rsi
callq 0x5140
xorps %xmm0, %xmm0
cvtsi2ssq (%rbx), %xmm0
cvtsi2ssq 0x8(%rbx), %xmm1
addss (%rsp), %xmm1
mulss 0x1fdda(%rip), %xmm1    # 0x260c0
movss 0x4c(%rsp), %xmm2
addss 0x48(%rsp), %xmm2
movss 0x8(%rsp), %xmm3
subss %xmm2, %xmm3
addss %xmm0, %xmm3
addss %xmm1, %xmm3
xorps %xmm0, %xmm0
cvtss2sd %xmm3, %xmm0
movq 0x2fcc6(%rip), %rdi     # 0x35fd8
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 0x88a6
leaq 0x10(%rsp), %rdi
callq 0x88ea
leaq 0x170(%rsp), %rdi
callq 0x8938
leaq 0x100(%rsp), %rdi
callq 0x89f8
leaq 0x120(%rsp), %rdi
callq 0x8a3c
leaq 0x140(%rsp), %rdi
callq 0x8a82
xorl %eax, %eax
addq $0x2a8, %rsp            # imm = 0x2A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x2fc34(%rip), %rdi     # 0x35fd8
callq 0x56ec
jmp 0x63b7
movq 0x2fc26(%rip), %rdi     # 0x35fd8
callq 0x56ec
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0x5280
jmp 0x6463
jmp 0x646b
jmp 0x6470
movq %rax, %rbx
jmp 0x6500
jmp 0x6463
jmp 0x6463
movq %rax, %rbx
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x6500
callq 0x51f0
jmp 0x6500
jmp 0x6463
movq %rax, %rbx
movq 0x170(%rsp), %rdi
leaq 0x180(%rsp), %rax
cmpq %rax, %rdi
je 0x6527
callq 0x51f0
jmp 0x6527
jmp 0x6463
jmp 0x6463
jmp 0x646b
movq %rax, %rbx
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x6491
jmp 0x648c
movq %rax, %rbx
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x64b2
jmp 0x64ad
jmp 0x6463
movq %rax, %rbx
jmp 0x6527
movq %rax, %rbx
jmp 0x6491
movq %rax, %rbx
jmp 0x64b2
jmp 0x64f3
movq %rax, %rbx
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x6491
callq 0x51f0
leaq 0x50(%rsp), %rdi
callq 0x88a6
jmp 0x64b2
movq %rax, %rbx
movq 0x80(%rsp), %rdi
cmpq %r13, %rdi
je 0x64b2
callq 0x51f0
leaq 0x10(%rsp), %rdi
callq 0x88ea
jmp 0x6500
movq %rax, %rbx
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x64f6
jmp 0x64e8
jmp 0x64f3
jmp 0x64f3
movq %rax, %rbx
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x64f6
callq 0x51f0
jmp 0x64f6
jmp 0x64f3
jmp 0x64f3
movq %rax, %rbx
leaq 0x70(%rsp), %rdi
callq 0x955a
leaq 0x170(%rsp), %rdi
callq 0x8938
leaq 0x100(%rsp), %rdi
callq 0x89f8
leaq 0x120(%rsp), %rdi
callq 0x8a3c
leaq 0x140(%rsp), %rdi
callq 0x8a82
movq %rbx, %rdi
callq 0x5360