// File: /workspace/github_cpp_makefile_star2_O1/bonetblai[P]mdp-engine/ctp3/main.cc
// Function: main
int main(int argc, const char **argv) {
    int cache_capacity = (int)5e5;
    int shortcut_cost = (int)5e3;
    float dead_end_value = 0;
    unsigned num_trials = 1;

    int calculate_features = 0;
    int calculate_nsamples = 0;

    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 if( ((*argv)[1] == 'c') || (string(*argv) == "--shortcut-cost") ) {
            shortcut_cost = strtoul(argv[1], 0, 0);
            ++argv;
            --argc;
        } else if( ((*argv)[1] == 'd') || (string(*argv) == "--dead-end-value") ) {
            dead_end_value = strtod(argv[1], 0);
            ++argv;
            --argc;
        } else if( ((*argv)[1] == 'f') || (string(*argv) == "--calculate-features") ) {
            calculate_nsamples = strtoul(argv[1], 0, 0);
            calculate_features = true;
            ++argv;
            --argc;
        } else {
            usage(cout);
            exit(-1);
        }
    }

    // read problem parameters
    CTP::graph_t graph(false, shortcut_cost);
    if( argc >= 1 ) {
        ifstream is(argv[0], ifstream::in);
        if( !graph.parse(is) ) exit(-1);
        is.close();
    } else {
        usage(cout);
        exit(-1);
    }

    // build problem instances
    cout << "main: seed=" << Algorithm::g_seed << endl;
    Random::set_seed(Algorithm::g_seed);
    state_t::initialize(graph, false, cache_capacity);
    problem_t problem(graph, dead_end_value, false, cache_capacity);

    if( calculate_features ) {
        float probability = probability_bad_weather(graph, calculate_nsamples);
        cout << "P(bad weather)=" << probability << endl;
        pair<float, float> p = branching_factor(problem, calculate_nsamples);
        cout << "avg-branching=" << p.first << endl;
        cout << "max-branching=" << p.second << endl;
    }

    // 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("ctp-min-min()", new ctp_min_min_t(problem));
    dispatcher.insert_policy("ctp-optimistic()", new ctp_optimistic_policy_t(problem, graph, 1.0));
    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 $0x568, %rsp            # imm = 0x568
movq %rsi, %r15
movl %edi, %ebp
xorps %xmm0, %xmm0
movaps %xmm0, 0xd0(%rsp)
movq $0x0, 0xe0(%rsp)
leaq 0x360(%rsp), %rbx
xorl %edi, %edi
movq %rbx, %rsi
callq 0x6190
xorps %xmm0, %xmm0
cvtsi2ssq (%rbx), %xmm0
movss %xmm0, 0x6c(%rsp)
xorps %xmm0, %xmm0
cvtsi2ssq 0x8(%rbx), %xmm0
movss %xmm0, 0x64(%rsp)
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
movq %rbx, %rsi
callq 0x6190
xorps %xmm0, %xmm0
cvtsi2ssq (%rbx), %xmm0
movss %xmm0, 0x68(%rsp)
xorps %xmm0, %xmm0
cvtsi2ssq 0x8(%rbx), %xmm0
movss %xmm0, 0x4(%rsp)
movq 0x38562(%rip), %rax     # 0x3efd8
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(%r15), %r12
cmpl $0x3, %ebp
jl 0x6e8f
leaq 0x370(%rsp), %r13
movq $0x0, 0xe8(%rsp)
movl $0x1, %eax
movq %rax, 0x28(%rsp)
xorps %xmm0, %xmm0
movss %xmm0, 0x10(%rsp)
movl $0x1388, %eax           # imm = 0x1388
movq %rax, 0xf0(%rsp)
leaq 0x360(%rsp), %r14
movq $0x0, 0x58(%rsp)
movq 0x8(%r15), %rax
cmpb $0x2d, (%rax)
jne 0x6eb5
movq (%r12), %rsi
movq %r14, %rdi
leaq 0xf8(%rsp), %rdx
callq 0x6100
movq %r14, %rdi
leaq 0x266ae(%rip), %rsi     # 0x2d1b8
callq 0x60c0
movl %eax, %ebx
movq 0x360(%rsp), %rdi
cmpq %r13, %rdi
je 0x6b23
callq 0x6260
testl %ebx, %ebx
je 0x6bd9
movq (%r12), %rax
movb 0x1(%rax), %bl
movb $0x1, %r14b
cmpb $0x72, %bl
je 0x6b68
movq (%r12), %rsi
leaq 0x340(%rsp), %r14
movq %r14, %rdi
leaq 0xf(%rsp), %rdx
callq 0x6100
movq %r14, %rdi
leaq 0x26667(%rip), %rsi     # 0x2d1c4
callq 0x60c0
testl %eax, %eax
sete %r14b
cmpb $0x72, %bl
je 0x6b87
movq 0x340(%rsp), %rdi
leaq 0x350(%rsp), %rax
cmpq %rax, %rdi
je 0x6b87
callq 0x6260
testb %r14b, %r14b
je 0x6be7
movq 0x10(%r15), %rsi
leaq 0x360(%rsp), %r14
movq %r14, %rdi
leaq 0xf8(%rsp), %rdx
callq 0x6100
leaq 0xd0(%rsp), %rdi
movq %r14, %rsi
callq 0xe9ae
movq 0x360(%rsp), %rdi
cmpq %r13, %rdi
je 0x6bca
callq 0x6260
addq $0x10, %r15
addl $-0x2, %ebp
movq %r15, %r12
jmp 0x6dea
decl %ebp
movb $0x0, 0x38676(%rip)     # 0x3f258
jmp 0x6dea
movq (%r12), %rax
movb 0x1(%rax), %bl
movb $0x1, %r14b
cmpb $0x73, %bl
je 0x6c24
movq (%r12), %rsi
leaq 0x320(%rsp), %r14
movq %r14, %rdi
leaq 0xe(%rsp), %rdx
callq 0x6100
movq %r14, %rdi
leaq 0x265b5(%rip), %rsi     # 0x2d1ce
callq 0x60c0
testl %eax, %eax
sete %r14b
cmpb $0x73, %bl
je 0x6c43
movq 0x320(%rsp), %rdi
leaq 0x330(%rsp), %rax
cmpq %rax, %rdi
je 0x6c43
callq 0x6260
testb %r14b, %r14b
je 0x6c6a
movq 0x10(%r15), %rdi
addq $0x10, %r15
xorl %esi, %esi
xorl %edx, %edx
callq 0x60e0
movl %eax, 0x3865d(%rip)     # 0x3f2bc
movl %eax, 0x3865b(%rip)     # 0x3f2c0
jmp 0x6ddc
movq (%r12), %rax
movb 0x1(%rax), %bl
movb $0x1, %r14b
cmpb $0x74, %bl
je 0x6ca7
movq (%r12), %rsi
leaq 0x300(%rsp), %r14
movq %r14, %rdi
leaq 0xd(%rsp), %rdx
callq 0x6100
movq %r14, %rdi
leaq 0x26539(%rip), %rsi     # 0x2d1d5
callq 0x60c0
testl %eax, %eax
sete %r14b
cmpb $0x74, %bl
je 0x6cc6
movq 0x300(%rsp), %rdi
leaq 0x310(%rsp), %rax
cmpq %rax, %rdi
je 0x6cc6
callq 0x6260
testb %r14b, %r14b
je 0x6ce6
movq 0x10(%r15), %rdi
addq $0x10, %r15
xorl %esi, %esi
xorl %edx, %edx
callq 0x60e0
movq %rax, 0x28(%rsp)
jmp 0x6ddc
movq (%r12), %rax
movb 0x1(%rax), %bl
movb $0x1, %r14b
cmpb $0x63, %bl
je 0x6d23
movq (%r12), %rsi
leaq 0x2e0(%rsp), %r14
movq %r14, %rdi
leaq 0xc(%rsp), %rdx
callq 0x6100
movq %r14, %rdi
leaq 0x264c6(%rip), %rsi     # 0x2d1de
callq 0x60c0
testl %eax, %eax
sete %r14b
cmpb $0x63, %bl
je 0x6d42
movq 0x2e0(%rsp), %rdi
leaq 0x2f0(%rsp), %rax
cmpq %rax, %rdi
je 0x6d42
callq 0x6260
testb %r14b, %r14b
je 0x6d62
movq 0x10(%r15), %rdi
addq $0x10, %r15
xorl %esi, %esi
xorl %edx, %edx
callq 0x60e0
movq %rax, 0xf0(%rsp)
jmp 0x6ddc
movq (%r12), %rax
movb 0x1(%rax), %bl
movb $0x1, %r14b
cmpb $0x64, %bl
je 0x6d9f
movq (%r12), %rsi
leaq 0x2c0(%rsp), %r14
movq %r14, %rdi
leaq 0xb(%rsp), %rdx
callq 0x6100
movq %r14, %rdi
leaq 0x2645a(%rip), %rsi     # 0x2d1ee
callq 0x60c0
testl %eax, %eax
sete %r14b
cmpb $0x64, %bl
je 0x6dbe
movq 0x2c0(%rsp), %rdi
leaq 0x2d0(%rsp), %rax
cmpq %rax, %rdi
je 0x6dbe
callq 0x6260
testb %r14b, %r14b
je 0x6dff
movq 0x10(%r15), %rdi
addq $0x10, %r15
xorl %esi, %esi
callq 0x6210
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0x10(%rsp)
addl $-0x2, %ebp
movq %r15, %r12
leaq 0x360(%rsp), %r14
movq %r12, %r15
addq $0x8, %r12
cmpl $0x2, %ebp
jg 0x6adf
jmp 0x6eb5
movq (%r12), %rax
movb 0x1(%rax), %bl
movb $0x1, %r14b
cmpb $0x66, %bl
je 0x6e3c
movq (%r12), %rsi
leaq 0x2a0(%rsp), %r14
movq %r14, %rdi
leaq 0xa(%rsp), %rdx
callq 0x6100
movq %r14, %rdi
leaq 0x263ce(%rip), %rsi     # 0x2d1ff
callq 0x60c0
testl %eax, %eax
sete %r14b
cmpb $0x66, %bl
je 0x6e5b
movq 0x2a0(%rsp), %rdi
leaq 0x2b0(%rsp), %rax
cmpq %rax, %rdi
je 0x6e5b
callq 0x6260
testb %r14b, %r14b
je 0x7af3
movq 0x10(%r15), %rdi
addq $0x10, %r15
xorl %esi, %esi
xorl %edx, %edx
callq 0x60e0
movq %rax, 0x58(%rsp)
addl $-0x2, %ebp
movl $0x1, %eax
movq %rax, 0xe8(%rsp)
jmp 0x6ddf
movq $0x0, 0x58(%rsp)
movl $0x1388, %ecx           # imm = 0x1388
xorps %xmm0, %xmm0
movss %xmm0, 0x10(%rsp)
movl $0x1, %eax
movq %rax, 0x28(%rsp)
movb $0x1, %r13b
jmp 0x6ec9
cmpl $0x0, 0xe8(%rsp)
sete %r13b
movq 0xf0(%rsp), %rcx
xorl %eax, %eax
movq %rax, 0x1b0(%rsp)
movb $0x0, 0x1b8(%rsp)
movl %ecx, 0x1bc(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, 0x1c0(%rsp)
movups %xmm0, 0x1d0(%rsp)
movups %xmm0, 0x1e0(%rsp)
movups %xmm0, 0x1f0(%rsp)
movq %rax, 0x200(%rsp)
cmpl $0x2, %ebp
jl 0x7adb
movq (%r12), %rsi
leaq 0x360(%rsp), %rdi
movl $0x8, %edx
callq 0x6440
leaq 0x1b0(%rsp), %rdi
leaq 0x360(%rsp), %rsi
callq 0x7d4c
testb %al, %al
je 0x7ae9
leaq 0x360(%rsp), %rdi
callq 0x6080
leaq 0x360(%rsp), %rdi
callq 0x60a0
movq 0x3806e(%rip), %rdi     # 0x3efd8
leaq 0x262a3(%rip), %rsi     # 0x2d214
movl $0xb, %edx
callq 0x62e0
movl 0x3833b(%rip), %esi     # 0x3f2bc
movq 0x38050(%rip), %rdi     # 0x3efd8
callq 0x61d0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x6270
movsbl %al, %esi
movq %rbx, %rdi
callq 0x6040
movq %rax, %rdi
callq 0x61e0
movslq 0x382fe(%rip), %rdi     # 0x3f2bc
leaq 0x360(%rsp), %rbx
movw %di, 0x4(%rbx)
movw %di, 0x2(%rbx)
movw %di, (%rbx)
callq 0x63f0
movq %rbx, %rdi
callq 0x6120
leaq 0x1b0(%rsp), %rdi
xorl %esi, %esi
movl $0x7a120, %edx          # imm = 0x7A120
callq 0x835e
leaq 0x360(%rsp), %r15
leaq 0x1b0(%rsp), %r14
movq %r15, %rdi
movq %r14, %rsi
movss 0x10(%rsp), %xmm0
xorl %edx, %edx
movl $0x7a120, %ecx          # imm = 0x7A120
callq 0x84f6
testb %r13b, %r13b
jne 0x715c
leaq 0x1b0(%rsp), %rdi
movq 0x58(%rsp), %r12
movl %r12d, %esi
callq 0x85c6
movss %xmm0, 0x10(%rsp)
movq 0x37f93(%rip), %rdi     # 0x3efd8
leaq 0x261d4(%rip), %rsi     # 0x2d220
movl $0xf, %edx
callq 0x62e0
xorps %xmm0, %xmm0
cvtss2sd 0x10(%rsp), %xmm0
movq 0x37f72(%rip), %rdi     # 0x3efd8
callq 0x63b0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x6270
movsbl %al, %esi
movq %rbx, %rdi
callq 0x6040
movq %rax, %rdi
callq 0x61e0
leaq 0x360(%rsp), %rdi
movl %r12d, %esi
callq 0x876a
movaps %xmm0, 0x10(%rsp)
movq 0x37f27(%rip), %rdi     # 0x3efd8
leaq 0x26178(%rip), %rsi     # 0x2d230
movl $0xe, %edx
callq 0x62e0
xorps %xmm0, %xmm0
cvtss2sd 0x10(%rsp), %xmm0
movq 0x37f06(%rip), %rdi     # 0x3efd8
callq 0x63b0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x6270
movsbl %al, %esi
movq %rbx, %rdi
callq 0x6040
movq %rax, %rdi
callq 0x61e0
movq 0x37ed0(%rip), %rdi     # 0x3efd8
leaq 0x26130(%rip), %rsi     # 0x2d23f
movl $0xe, %edx
callq 0x62e0
movaps 0x10(%rsp), %xmm0
shufps $0x55, %xmm0, %xmm0     # xmm0 = xmm0[1,1,1,1]
cvtss2sd %xmm0, %xmm0
movq 0x37eab(%rip), %rdi     # 0x3efd8
callq 0x63b0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x6270
movsbl %al, %esi
movq %rbx, %rdi
callq 0x6040
movq %rax, %rdi
callq 0x61e0
xorps %xmm0, %xmm0
movaps %xmm0, 0xb0(%rsp)
xorl %eax, %eax
movq %rax, 0xc0(%rsp)
movq %rax, 0xa0(%rsp)
movaps %xmm0, 0x90(%rsp)
leaq 0x36d80(%rip), %rcx     # 0x3df08
leaq 0x218(%rsp), %rdx
movq %rcx, -0x10(%rdx)
movl %eax, (%rdx)
movq %rax, 0x8(%rdx)
movq %rdx, 0x10(%rdx)
movq %rdx, 0x18(%rdx)
movq %rax, 0x20(%rdx)
leaq 0x248(%rsp), %rcx
movl %eax, (%rcx)
movq %rax, 0x8(%rcx)
movq %rcx, 0x10(%rcx)
movq %rcx, 0x18(%rcx)
movq %rax, 0x20(%rcx)
leaq 0x278(%rsp), %rcx
movl %eax, (%rcx)
movq %rax, 0x8(%rcx)
movq %rcx, 0x10(%rcx)
movq %rcx, 0x18(%rcx)
movq %rax, 0x20(%rcx)
leaq 0x108(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x26061(%rip), %rsi     # 0x2d24e
leaq 0x26067(%rip), %rdx     # 0x2d25b
leaq 0xf8(%rsp), %rdi
callq 0xe5ba
movl $0x20, %edi
callq 0x6290
movq %r15, 0x8(%rax)
movq $0x0, 0x10(%rax)
movl $0x0, 0x18(%rax)
leaq 0x36b7b(%rip), %rcx     # 0x3dda0
movq %rcx, (%rax)
leaq 0x208(%rsp), %rdi
leaq 0xf8(%rsp), %rsi
movq %rax, %rdx
callq 0x8902
movq 0xf8(%rsp), %rdi
leaq 0x108(%rsp), %rax
cmpq %rax, %rdi
je 0x725a
callq 0x6260
leaq 0xf8(%rsp), %rdi
leaq 0x108(%rsp), %rax
movq %rax, (%rdi)
leaq 0x25fe8(%rip), %rsi     # 0x2d25c
leaq 0x25ff1(%rip), %rdx     # 0x2d26c
callq 0xe5ba
movl $0x38, %edi
callq 0x6290
leaq 0x36aa7(%rip), %rcx     # 0x3dd38
movq %rcx, (%rax)
movq %r15, 0x8(%rax)
movl 0x38022(%rip), %ecx     # 0x3f2c0
movl %ecx, 0x10(%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x14(%rax)
leaq 0x36bd1(%rip), %rcx     # 0x3de80
movq %rcx, (%rax)
movq %r14, 0x28(%rax)
movl $0x3f800000, 0x30(%rax) # imm = 0x3F800000
leaq 0x208(%rsp), %rdi
leaq 0xf8(%rsp), %rsi
movq %rax, %rdx
callq 0x897c
movq 0xf8(%rsp), %rdi
leaq 0x108(%rsp), %rax
cmpq %rax, %rdi
je 0x72ef
callq 0x6260
movq 0xd0(%rsp), %rax
movq 0xd8(%rsp), %rcx
subq %rax, %rcx
shrq $0x5, %rcx
testl %ecx, %ecx
jle 0x7506
leaq 0x100(%rsp), %r13
leaq 0xf8(%rsp), %r14
leaq 0x360(%rsp), %rbp
leaq 0x25f40(%rip), %rbx     # 0x2d26d
xorl %edi, %edi
movq %rdi, 0x10(%rsp)
shlq $0x5, %rdi
addq %rax, %rdi
movl $0x0, 0x100(%rsp)
xorl %eax, %eax
movq %rax, 0x108(%rsp)
movq %r13, 0x110(%rsp)
movq %r13, 0x118(%rsp)
movq %rax, 0x120(%rsp)
movq %r14, %rsi
movl $0x2c, %edx
callq 0x89f5
movq 0x110(%rsp), %r15
cmpq %r13, %r15
je 0x74cb
leaq 0x20(%r15), %r12
leaq 0x40(%r15), %r14
leaq 0x208(%rsp), %rdi
movq %rbp, %rsi
movq %r12, %rdx
movq %r14, %rcx
callq 0x8c62
movq %r12, %rdi
movq %rbx, %rsi
callq 0x60c0
testl %eax, %eax
je 0x73ed
movq %r12, %rdi
leaq 0x25eba(%rip), %rsi     # 0x2d277
callq 0x60c0
testl %eax, %eax
jne 0x74b7
leaq 0x270(%rsp), %rdi
movq %r14, %rsi
callq 0x2b068
leaq 0x278(%rsp), %rcx
cmpq %rcx, %rax
je 0x7464
movq 0x40(%rax), %r14
jmp 0x7467
leaq 0x210(%rsp), %rdi
movq %r14, %rsi
callq 0x2ad28
leaq 0x218(%rsp), %rcx
cmpq %rcx, %rax
je 0x7410
movq 0x40(%rax), %r14
jmp 0x7413
xorl %r14d, %r14d
testq %r14, %r14
je 0x74b7
leaq 0x40(%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0x40(%r15), %rsi
movq 0x48(%r15), %rdx
addq %rsi, %rdx
leaq 0x30(%rsp), %r12
movq %r12, %rdi
callq 0xe888
movq %r14, 0x50(%rsp)
leaq 0x90(%rsp), %rdi
movq %r12, %rsi
callq 0x2adb2
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x74b7
jmp 0x74b2
xorl %r14d, %r14d
testq %r14, %r14
je 0x74b7
leaq 0x40(%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0x40(%r15), %rsi
movq 0x48(%r15), %rdx
addq %rsi, %rdx
leaq 0x30(%rsp), %r12
movq %r12, %rdi
callq 0xe888
movq %r14, 0x50(%rsp)
leaq 0xb0(%rsp), %rdi
movq %r12, %rsi
callq 0x2b0f2
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x74b7
callq 0x6260
movq %r15, %rdi
callq 0x62f0
movq %rax, %r15
cmpq %r13, %rax
jne 0x7386
leaq 0xf8(%rsp), %r14
movq %r14, %rdi
callq 0xe918
movq 0x10(%rsp), %rdi
incq %rdi
movq 0xd0(%rsp), %rax
movq 0xd8(%rsp), %rcx
subq %rax, %rcx
shrq $0x5, %rcx
movslq %ecx, %rcx
cmpq %rcx, %rdi
jl 0x732f
xorps %xmm0, %xmm0
movaps %xmm0, 0x30(%rsp)
movq $0x0, 0x40(%rsp)
movq 0x90(%rsp), %rsi
movq 0x98(%rsp), %rax
subq %rsi, %rax
shrq $0x3, %rax
imull $0xcccccccd, %eax, %eax # imm = 0xCCCCCCCD
testl %eax, %eax
jle 0x764b
leaq 0xfc(%rsp), %r13
xorl %ebx, %ebx
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
leaq 0xf8(%rsp), %r15
xorl %r12d, %r12d
xorl %ebp, %ebp
movq 0x20(%rsi,%r12), %rdx
addq %r12, %rsi
movl %r14d, 0xf8(%rsp)
movq %rbx, 0x40(%r13)
xorps %xmm0, %xmm0
movups %xmm0, 0x30(%r13)
movups %xmm0, 0x20(%r13)
movups %xmm0, 0x10(%r13)
movups %xmm0, (%r13)
movb $0x1, 0x154(%rsp)
movq %rbx, 0x158(%rsp)
movl %r14d, 0x160(%rsp)
movups %xmm0, 0x48(%r13)
leaq 0x178(%rsp), %rax
movq %rax, 0x168(%rsp)
movq %rbx, 0x170(%rsp)
movb $0x0, 0x178(%rsp)
leaq 0x208(%rsp), %rdi
leaq 0x380(%rsp), %rcx
movq %r15, %r8
callq 0x9a96
leaq 0x30(%rsp), %rdi
movq %r15, %rsi
callq 0x9cbe
movq 0x168(%rsp), %rdi
leaq 0x178(%rsp), %rax
cmpq %rax, %rdi
je 0x7600
callq 0x6260
cmpb $0x0, 0x154(%rsp)
jne 0x761c
movq 0x158(%rsp), %rdi
testq %rdi, %rdi
je 0x761c
callq 0x6340
incq %rbp
movq 0x90(%rsp), %rsi
movq 0x98(%rsp), %rax
subq %rsi, %rax
shrq $0x3, %rax
imull $0xcccccccd, %eax, %eax # imm = 0xCCCCCCCD
cltq
addq $0x28, %r12
cmpq %rax, %rbp
jl 0x7559
movb 0x37c07(%rip), %al      # 0x3f258
testb %al, %al
leaq 0x26178(%rip), %rcx     # 0x2d7d2
leaq 0x26906(%rip), %rsi     # 0x2df67
cmovneq %rcx, %rsi
leaq 0x14(%rsi), %rdx
testb %al, %al
leaq 0xf8(%rsp), %rdi
leaq 0x108(%rsp), %rax
movq %rax, (%rdi)
cmoveq %rsi, %rdx
callq 0xe5ba
movq 0xf8(%rsp), %rsi
movq 0x100(%rsp), %rdx
movq 0x3793a(%rip), %rdi     # 0x3efd8
callq 0x62e0
movq %rax, %rbx
leaq 0x25bd1(%rip), %rsi     # 0x2d27e
movl $0x53, %edx
movq %rax, %rdi
callq 0x62e0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x6270
movsbl %al, %esi
movq %rbx, %rdi
callq 0x6040
movq %rax, %rdi
callq 0x61e0
movq 0xf8(%rsp), %rdi
leaq 0x108(%rsp), %rax
cmpq %rax, %rdi
je 0x76fb
callq 0x6260
movq 0x30(%rsp), %rax
cmpq 0x38(%rsp), %rax
je 0x776d
movq 0x30(%rsp), %rdx
movq 0x38(%rsp), %rax
subq %rdx, %rax
shrq $0x3, %rax
imull $0xe9bd37a7, %eax, %eax # imm = 0xE9BD37A7
testl %eax, %eax
jle 0x776d
xorl %r14d, %r14d
movq 0x378ac(%rip), %rbx     # 0x3efd8
leaq 0x208(%rsp), %r15
xorl %r12d, %r12d
addq %r14, %rdx
movq %r15, %rdi
movq %rbx, %rsi
callq 0x9d1a
incq %r12
movq 0x30(%rsp), %rdx
movq 0x38(%rsp), %rax
subq %rdx, %rax
shrq $0x3, %rax
imull $0xe9bd37a7, %eax, %eax # imm = 0xE9BD37A7
cltq
addq $0xb8, %r14
cmpq %rax, %r12
jl 0x7737
xorps %xmm0, %xmm0
movaps %xmm0, 0x70(%rsp)
movq $0x0, 0x80(%rsp)
movq 0xb0(%rsp), %rsi
movq 0xb8(%rsp), %rax
subq %rsi, %rax
shrq $0x3, %rax
imull $0xcccccccd, %eax, %eax # imm = 0xCCCCCCCD
testl %eax, %eax
jle 0x7863
leaq 0x380(%rsp), %rbx
xorl %ebp, %ebp
leaq 0x208(%rsp), %r15
leaq 0xf8(%rsp), %r12
leaq 0x70(%rsp), %r13
xorl %r14d, %r14d
movq 0x20(%rsi,%rbp), %rdx
addq %rbp, %rsi
leaq 0x108(%rsp), %rax
movq %rax, 0xf8(%rsp)
movq $0x0, 0x100(%rsp)
movb $0x0, 0x108(%rsp)
movq %r15, %rdi
movq %rbx, %rcx
movq %r12, %r8
movq 0x28(%rsp), %r9
pushq $0x1
pushq $0x64
callq 0xa634
addq $0x10, %rsp
movq %r13, %rdi
movq %r12, %rsi
callq 0xa7fe
movq 0xf8(%rsp), %rdi
leaq 0x108(%rsp), %rax
cmpq %rax, %rdi
je 0x7834
callq 0x6260
incq %r14
movq 0xb0(%rsp), %rsi
movq 0xb8(%rsp), %rax
subq %rsi, %rax
shrq $0x3, %rax
imull $0xcccccccd, %eax, %eax # imm = 0xCCCCCCCD
cltq
addq $0x28, %rbp
cmpq %rax, %r14
jl 0x77c8
movb 0x379ef(%rip), %al      # 0x3f258
testb %al, %al
leaq 0x266f5(%rip), %rsi     # 0x2df67
leaq 0x25f59(%rip), %rcx     # 0x2d7d2
cmovneq %rcx, %rsi
leaq 0x14(%rsi), %rdx
testb %al, %al
leaq 0xf8(%rsp), %rdi
leaq 0x108(%rsp), %rax
movq %rax, (%rdi)
cmoveq %rsi, %rdx
callq 0xe5ba
movq 0xf8(%rsp), %rsi
movq 0x100(%rsp), %rdx
movq 0x37722(%rip), %rdi     # 0x3efd8
callq 0x62e0
movq %rax, %rbx
leaq 0x25a0d(%rip), %rsi     # 0x2d2d2
movl $0x51, %edx
movq %rax, %rdi
callq 0x62e0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x6270
movsbl %al, %esi
movq %rbx, %rdi
callq 0x6040
movq %rax, %rdi
callq 0x61e0
movq 0xf8(%rsp), %rdi
leaq 0x108(%rsp), %rax
cmpq %rax, %rdi
je 0x7913
callq 0x6260
movq 0x70(%rsp), %rax
cmpq 0x78(%rsp), %rax
je 0x7982
movq 0x70(%rsp), %rdx
movq 0x78(%rsp), %rax
subq %rdx, %rax
shrq $0x3, %rax
imull $0x38e38e39, %eax, %eax # imm = 0x38E38E39
testl %eax, %eax
jle 0x7982
xorl %r15d, %r15d
movq 0x37694(%rip), %rbx     # 0x3efd8
leaq 0x208(%rsp), %r14
xorl %r12d, %r12d
addq %r15, %rdx
movq %r14, %rdi
movq %rbx, %rsi
callq 0xa866
incq %r12
movq 0x70(%rsp), %rdx
movq 0x78(%rsp), %rax
subq %rdx, %rax
shrq $0x3, %rax
imull $0x38e38e39, %eax, %eax # imm = 0x38E38E39
cltq
addq $0x48, %r15
cmpq %rax, %r12
jl 0x794f
movq 0x3764f(%rip), %rdi     # 0x3efd8
leaq 0x25994(%rip), %rsi     # 0x2d324
movl $0x11, %edx
callq 0x62e0
movss 0x4(%rsp), %xmm0
addss 0x64(%rsp), %xmm0
movss %xmm0, 0x4(%rsp)
leaq 0xf8(%rsp), %rbx
xorl %edi, %edi
movq %rbx, %rsi
callq 0x6190
xorps %xmm0, %xmm0
cvtsi2ssq (%rbx), %xmm0
movss %xmm0, 0x10(%rsp)
xorps %xmm0, %xmm0
cvtsi2ssq 0x8(%rbx), %xmm0
subss 0x4(%rsp), %xmm0
movss %xmm0, 0x28(%rsp)
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
movq %rbx, %rsi
callq 0x6190
xorps %xmm0, %xmm0
cvtsi2ssq (%rbx), %xmm0
cvtsi2ssq 0x8(%rbx), %xmm1
addss 0x28(%rsp), %xmm1
mulss 0x255fa(%rip), %xmm1    # 0x2d004
movss 0x6c(%rsp), %xmm2
addss 0x68(%rsp), %xmm2
movss 0x10(%rsp), %xmm3
subss %xmm2, %xmm3
addss %xmm0, %xmm3
addss %xmm1, %xmm3
xorps %xmm0, %xmm0
cvtss2sd %xmm3, %xmm0
movq 0x375a2(%rip), %rdi     # 0x3efd8
callq 0x63b0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x6270
movsbl %al, %esi
movq %rbx, %rdi
callq 0x6040
movq %rax, %rdi
callq 0x61e0
leaq 0x70(%rsp), %rdi
callq 0xac34
leaq 0x30(%rsp), %rdi
callq 0xac78
leaq 0x208(%rsp), %rdi
callq 0xaca0
leaq 0x90(%rsp), %rdi
callq 0xad60
leaq 0xb0(%rsp), %rdi
callq 0xada4
leaq 0x360(%rsp), %rdi
callq 0xade8
leaq 0x1b0(%rsp), %rdi
callq 0xae1c
leaq 0xd0(%rsp), %rdi
callq 0xae64
xorl %eax, %eax
addq $0x568, %rsp            # imm = 0x568
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x374f6(%rip), %rdi     # 0x3efd8
callq 0x69ac
jmp 0x7ae9
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0x6310
movq 0x374de(%rip), %rdi     # 0x3efd8
callq 0x69ac
jmp 0x7ae9
jmp 0x7c05
jmp 0x7c05
jmp 0x7c05
jmp 0x7c05
jmp 0x7c05
jmp 0x7c0d
jmp 0x7c12
jmp 0x7b26
movq %rax, %rbx
jmp 0x7ca3
jmp 0x7bfd
jmp 0x7bfd
jmp 0x7c05
movq %rax, %rbx
movq 0xf8(%rsp), %rdi
leaq 0x108(%rsp), %rax
cmpq %rax, %rdi
je 0x7ca3
jmp 0x7b77
movq %rax, %rbx
movq 0xf8(%rsp), %rdi
leaq 0x108(%rsp), %rax
cmpq %rax, %rdi
je 0x7ca3
callq 0x6260
jmp 0x7ca3
movq %rax, %rbx
leaq 0x360(%rsp), %rdi
callq 0x60a0
jmp 0x7cd7
movq %rax, %rbx
movq 0x360(%rsp), %rdi
cmpq %r13, %rdi
je 0x7ce4
callq 0x6260
jmp 0x7ce4
jmp 0x7c05
jmp 0x7c05
jmp 0x7bf5
jmp 0x7c0d
movq %rax, %rbx
movq 0xf8(%rsp), %rdi
leaq 0x108(%rsp), %rax
cmpq %rax, %rdi
je 0x7c36
jmp 0x7c31
movq %rax, %rbx
movq 0xf8(%rsp), %rdi
leaq 0x108(%rsp), %rax
cmpq %rax, %rdi
je 0x7c52
callq 0x6260
jmp 0x7c52
movq %rax, %rbx
jmp 0x7cca
movq %rax, %rbx
jmp 0x7cd7
movq %rax, %rbx
jmp 0x7ce4
movq %rax, %rbx
jmp 0x7c36
movq %rax, %rbx
jmp 0x7c52
jmp 0x7c93
movq %rax, %rbx
movq 0xf8(%rsp), %rdi
leaq 0x108(%rsp), %rax
cmpq %rax, %rdi
je 0x7c36
callq 0x6260
leaq 0x70(%rsp), %rdi
callq 0xac34
jmp 0x7c52
movq %rax, %rbx
leaq 0xf8(%rsp), %rdi
callq 0x9cea
leaq 0x30(%rsp), %rdi
callq 0xac78
jmp 0x7ca3
movq %rax, %rbx
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x7c96
jmp 0x7c88
jmp 0x7c93
jmp 0x7c93
movq %rax, %rbx
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x7c96
callq 0x6260
jmp 0x7c96
jmp 0x7c93
jmp 0x7c93
movq %rax, %rbx
leaq 0xf8(%rsp), %rdi
callq 0xe918
leaq 0x208(%rsp), %rdi
callq 0xaca0
leaq 0x90(%rsp), %rdi
callq 0xad60
leaq 0xb0(%rsp), %rdi
callq 0xada4
leaq 0x360(%rsp), %rdi
callq 0xade8
leaq 0x1b0(%rsp), %rdi
callq 0xae1c
leaq 0xd0(%rsp), %rdi
callq 0xae64
movq %rbx, %rdi
callq 0x6410
nop