// File: /workspace/github_cpp_makefile_star2_O1/bonetblai[P]mdp-engine/wet/main.cc
// Function: main
int main(int argc, const char **argv) {
    size_t size = 0;
    float p = 0.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 if( ((*argv)[1] == 'x') || (string(*argv) == "--version-x") ) {
                version += 1;
        } else if( ((*argv)[1] == 'y') || (string(*argv) == "--version-y") ) {
                version += 2;
        } else if( ((*argv)[1] == 'z') || (string(*argv) == "--version-z") ) {
                version += 4;
        } else {
            usage(cout);
            exit(-1);
        }
    }

    // check version modifiers
    if( ZVER && YVER ) {
        cout << "Y and Z cannot be used simultaneously." << endl;
        exit(-1);
    }

    // read problem parameters
    if( argc == 2 ) {
        size = strtoul(argv[0], 0, 0);
        p = strtod(argv[1], 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(Random::random(size), Random::random(size));
    state_t goal(Random::random(size), Random::random(size));
    problem_t problem(size, p, init, goal);
    //problem.print(cout);

    // 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;
    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 $0x308, %rsp            # imm = 0x308
movq %rsi, %rbp
movl %edi, %r13d
xorps %xmm0, %xmm0
movaps %xmm0, 0xc0(%rsp)
movq $0x0, 0xd0(%rsp)
leaq 0x178(%rsp), %rbx
xorl %edi, %edi
movq %rbx, %rsi
callq 0x5150
xorps %xmm0, %xmm0
cvtsi2ssq (%rbx), %xmm0
movss %xmm0, 0x58(%rsp)
xorps %xmm0, %xmm0
cvtsi2ssq 0x8(%rbx), %xmm0
movss %xmm0, 0x50(%rsp)
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
movq %rbx, %rsi
callq 0x5150
xorps %xmm0, %xmm0
cvtsi2ssq (%rbx), %xmm0
movss %xmm0, 0x54(%rsp)
xorps %xmm0, %xmm0
cvtsi2ssq 0x8(%rbx), %xmm0
movss %xmm0, 0x4(%rsp)
movq 0x2e821(%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)
leaq 0x8(%rbp), %r12
leal -0x1(%r13), %r15d
movl $0x1, %eax
movq %rax, 0x10(%rsp)
cmpl $0x3, %r13d
jl 0x5b8e
movl $0x1, %eax
movq %rax, 0x10(%rsp)
leaq 0x178(%rsp), %r14
movq 0x8(%rbp), %rax
cmpb $0x2d, (%rax)
jne 0x5b8e
movq (%r12), %rsi
movq %r14, %rdi
leaq 0xe0(%rsp), %rdx
callq 0x50d0
movq %r14, %rdi
leaq 0x1f983(%rip), %rsi     # 0x251aa
callq 0x5090
movl %eax, %ebx
movq 0x178(%rsp), %rdi
leaq 0x188(%rsp), %rax
cmpq %rax, %rdi
je 0x5848
callq 0x5200
testl %ebx, %ebx
je 0x590a
movq (%r12), %rax
movb 0x1(%rax), %bl
movb $0x1, %r14b
cmpb $0x72, %bl
je 0x588d
movq (%r12), %rsi
leaq 0x2e8(%rsp), %r14
movq %r14, %rdi
leaq 0xf(%rsp), %rdx
callq 0x50d0
movq %r14, %rdi
leaq 0x1f934(%rip), %rsi     # 0x251b6
callq 0x5090
testl %eax, %eax
sete %r14b
cmpb $0x72, %bl
je 0x58ac
movq 0x2e8(%rsp), %rdi
leaq 0x2f8(%rsp), %rax
cmpq %rax, %rdi
je 0x58ac
callq 0x5200
testb %r14b, %r14b
je 0x5916
movq 0x10(%rbp), %rsi
leaq 0x178(%rsp), %r14
movq %r14, %rdi
leaq 0xe0(%rsp), %rdx
callq 0x50d0
leaq 0xc0(%rsp), %rdi
movq %r14, %rsi
callq 0x9bac
movq 0x178(%rsp), %rdi
leaq 0x188(%rsp), %rax
cmpq %rax, %rdi
je 0x58f7
callq 0x5200
addq $0x10, %rbp
addl $-0x2, %r13d
movq %rbp, %r12
movl %r13d, %r15d
jmp 0x5a1f
movb $0x0, 0x2e927(%rip)     # 0x34238
jmp 0x5a1f
movq (%r12), %rax
movb 0x1(%rax), %bl
movb $0x1, %r14b
cmpb $0x73, %bl
je 0x5953
movq (%r12), %rsi
leaq 0x2c8(%rsp), %r14
movq %r14, %rdi
leaq 0xe(%rsp), %rdx
callq 0x50d0
movq %r14, %rdi
leaq 0x1f878(%rip), %rsi     # 0x251c0
callq 0x5090
testl %eax, %eax
sete %r14b
cmpb $0x73, %bl
je 0x5972
movq 0x2c8(%rsp), %rdi
leaq 0x2d8(%rsp), %rax
cmpq %rax, %rdi
je 0x5972
callq 0x5200
testb %r14b, %r14b
je 0x5996
movq 0x10(%rbp), %rdi
addq $0x10, %rbp
xorl %esi, %esi
xorl %edx, %edx
callq 0x50b0
movl %eax, 0x2e8d2(%rip)     # 0x34260
movl %eax, 0x2e8d0(%rip)     # 0x34264
jmp 0x5a0d
movq (%r12), %rax
movb 0x1(%rax), %bl
movb $0x1, %r14b
cmpb $0x74, %bl
je 0x59d3
movq (%r12), %rsi
leaq 0x2a8(%rsp), %r14
movq %r14, %rdi
leaq 0xd(%rsp), %rdx
callq 0x50d0
movq %r14, %rdi
leaq 0x1f7ff(%rip), %rsi     # 0x251c7
callq 0x5090
testl %eax, %eax
sete %r14b
cmpb $0x74, %bl
je 0x59f2
movq 0x2a8(%rsp), %rdi
leaq 0x2b8(%rsp), %rax
cmpq %rax, %rdi
je 0x59f2
callq 0x5200
testb %r14b, %r14b
je 0x5a3c
movq 0x10(%rbp), %rdi
addq $0x10, %rbp
xorl %esi, %esi
xorl %edx, %edx
callq 0x50b0
movq %rax, 0x10(%rsp)
addl $-0x2, %r13d
movq %rbp, %r12
movl %r13d, %r15d
leaq 0x178(%rsp), %r14
movl %r15d, %r13d
movq %r12, %rbp
addq $0x8, %r12
leal -0x1(%r13), %r15d
cmpl $0x2, %r13d
jg 0x57fc
jmp 0x5b8e
movq (%r12), %rax
movb 0x1(%rax), %bl
movb $0x1, %bpl
cmpb $0x78, %bl
leaq 0x178(%rsp), %r14
je 0x5a81
movq (%r12), %rsi
leaq 0x288(%rsp), %r13
movq %r13, %rdi
leaq 0xc(%rsp), %rdx
callq 0x50d0
movq %r13, %rdi
leaq 0x1f75a(%rip), %rsi     # 0x251d0
callq 0x5090
testl %eax, %eax
sete %bpl
cmpb $0x78, %bl
je 0x5aa0
movq 0x288(%rsp), %rdi
leaq 0x298(%rsp), %rax
cmpq %rax, %rdi
je 0x5aa0
callq 0x5200
testb %bpl, %bpl
je 0x5ab0
incl 0x2e7a9(%rip)           # 0x34254
jmp 0x5a1f
movq (%r12), %rax
movb 0x1(%rax), %bl
movb $0x1, %bpl
cmpb $0x79, %bl
je 0x5aed
movq (%r12), %rsi
leaq 0x268(%rsp), %r13
movq %r13, %rdi
leaq 0xb(%rsp), %rdx
callq 0x50d0
movq %r13, %rdi
leaq 0x1f6fa(%rip), %rsi     # 0x251dc
callq 0x5090
testl %eax, %eax
sete %bpl
cmpb $0x79, %bl
je 0x5b0c
movq 0x268(%rsp), %rdi
leaq 0x278(%rsp), %rax
cmpq %rax, %rdi
je 0x5b0c
callq 0x5200
testb %bpl, %bpl
je 0x5b1d
addl $0x2, 0x2e73c(%rip)     # 0x34254
jmp 0x5a1f
movq (%r12), %rax
movb 0x1(%rax), %bl
movb $0x1, %bpl
cmpb $0x7a, %bl
je 0x5b5a
movq (%r12), %rsi
leaq 0x248(%rsp), %r13
movq %r13, %rdi
leaq 0xa(%rsp), %rdx
callq 0x50d0
movq %r13, %rdi
leaq 0x1f699(%rip), %rsi     # 0x251e8
callq 0x5090
testl %eax, %eax
sete %bpl
cmpb $0x7a, %bl
je 0x5b79
movq 0x248(%rsp), %rdi
leaq 0x258(%rsp), %rax
cmpq %rax, %rdi
je 0x5b79
callq 0x5200
testb %bpl, %bpl
je 0x6569
addl $0x4, 0x2e6cb(%rip)     # 0x34254
jmp 0x5a1f
movl 0x2e6c0(%rip), %eax     # 0x34254
notl %eax
testb $0x6, %al
je 0x6508
cmpl $0x2, %r15d
jne 0x652e
movq (%r12), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x50b0
movq %rax, %rbx
movq 0x10(%rbp), %rdi
xorl %esi, %esi
callq 0x51b0
movsd %xmm0, 0x18(%rsp)
movq 0x2e408(%rip), %rdi     # 0x33fd8
leaq 0x1f644(%rip), %rsi     # 0x2521b
movl $0xb, %edx
callq 0x5260
movl 0x2e679(%rip), %esi     # 0x34260
movq 0x2e3ea(%rip), %rdi     # 0x33fd8
callq 0x5170
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x5210
movsbl %al, %esi
movq %r14, %rdi
callq 0x5040
movq %rax, %rdi
callq 0x5180
movslq 0x2e63c(%rip), %rdi     # 0x34260
leaq 0x178(%rsp), %r14
movw %di, 0x4(%r14)
movw %di, 0x2(%r14)
movw %di, (%r14)
callq 0x5360
movq %r14, %rdi
callq 0x50f0
xorl %ebp, %ebp
movl $0x0, %r14d
cmpl $0x1, %ebx
je 0x5c68
testl %ebx, %ebx
je 0x6544
callq 0x51a0
xorl %edx, %edx
divl %ebx
movl %edx, %r14d
cmpl $0x1, %ebx
je 0x5c80
testl %ebx, %ebx
je 0x6546
callq 0x51a0
xorl %edx, %edx
divl %ebx
movl %edx, %ebp
imull 0x2e5d0(%rip), %r14d    # 0x34258
addl %ebp, %r14d
movl %r14d, 0x5c(%rsp)
xorl %r14d, %r14d
movl $0x0, %ebp
cmpl $0x1, %ebx
je 0x5cb0
testl %ebx, %ebx
je 0x6548
callq 0x51a0
xorl %edx, %edx
divl %ebx
movl %edx, %ebp
cmpl $0x1, %ebx
je 0x5cc9
testl %ebx, %ebx
je 0x654a
callq 0x51a0
xorl %edx, %edx
divl %ebx
movl %edx, %r14d
xorps %xmm0, %xmm0
cvtsd2ss 0x18(%rsp), %xmm0
imull 0x2e57f(%rip), %ebp     # 0x34258
addl %r14d, %ebp
leaq 0x174(%rsp), %rcx
movl %ebp, (%rcx)
leaq 0x210(%rsp), %rdi
leaq 0x5c(%rsp), %rdx
movq %rbx, %rsi
callq 0x66ea
xorps %xmm0, %xmm0
movaps %xmm0, 0xa0(%rsp)
xorl %eax, %eax
movq %rax, 0xb0(%rsp)
movq %rax, 0x90(%rsp)
movaps %xmm0, 0x80(%rsp)
leaq 0x2d089(%rip), %rcx     # 0x32db0
leaq 0x1b8(%rsp), %rdx
movq %rcx, -0x40(%rdx)
movl %eax, -0x30(%rdx)
movq %rax, -0x28(%rdx)
leaq 0x188(%rsp), %rcx
movq %rcx, -0x20(%rdx)
movq %rcx, -0x18(%rdx)
movq %rax, -0x10(%rdx)
movl %eax, (%rdx)
movq %rax, 0x8(%rdx)
movq %rdx, 0x10(%rdx)
movq %rdx, 0x18(%rdx)
movq %rax, 0x20(%rdx)
leaq 0x1e8(%rsp), %rcx
movl %eax, (%rcx)
movq %rax, 0x8(%rcx)
movq %rcx, 0x10(%rcx)
movq %rcx, 0x18(%rcx)
movq %rax, 0x20(%rcx)
movq 0xc0(%rsp), %rax
movq 0xc8(%rsp), %rcx
subq %rax, %rcx
shrq $0x5, %rcx
testl %ecx, %ecx
jle 0x5f91
leaq 0xe8(%rsp), %r13
leaq 0xe0(%rsp), %r14
leaq 0x210(%rsp), %rbp
leaq 0x1f46f(%rip), %rbx     # 0x25227
xorl %edi, %edi
movq %rdi, 0x18(%rsp)
shlq $0x5, %rdi
addq %rax, %rdi
movl $0x0, 0xe8(%rsp)
xorl %eax, %eax
movq %rax, 0xf0(%rsp)
movq %r13, 0xf8(%rsp)
movq %r13, 0x100(%rsp)
movq %rax, 0x108(%rsp)
movq %r14, %rsi
movl $0x2c, %edx
callq 0x679f
movq 0xf8(%rsp), %r15
cmpq %r13, %r15
je 0x5f56
leaq 0x20(%r15), %r12
leaq 0x40(%r15), %r14
leaq 0x178(%rsp), %rdi
movq %rbp, %rsi
movq %r12, %rdx
movq %r14, %rcx
callq 0x6a0c
movq %r12, %rdi
movq %rbx, %rsi
callq 0x5090
testl %eax, %eax
je 0x5e78
movq %r12, %rdi
leaq 0x1f3e9(%rip), %rsi     # 0x25231
callq 0x5090
testl %eax, %eax
jne 0x5f42
leaq 0x1e0(%rsp), %rdi
movq %r14, %rsi
callq 0x23fee
leaq 0x1e8(%rsp), %rcx
cmpq %rcx, %rax
je 0x5eef
movq 0x40(%rax), %r14
jmp 0x5ef2
leaq 0x180(%rsp), %rdi
movq %r14, %rsi
callq 0x23cae
leaq 0x188(%rsp), %rcx
cmpq %rcx, %rax
je 0x5e9b
movq 0x40(%rax), %r14
jmp 0x5e9e
xorl %r14d, %r14d
testq %r14, %r14
je 0x5f42
leaq 0x30(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x40(%r15), %rsi
movq 0x48(%r15), %rdx
addq %rsi, %rdx
leaq 0x20(%rsp), %r12
movq %r12, %rdi
callq 0x9ac6
movq %r14, 0x40(%rsp)
leaq 0x80(%rsp), %rdi
movq %r12, %rsi
callq 0x23d38
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x5f42
jmp 0x5f3d
xorl %r14d, %r14d
testq %r14, %r14
je 0x5f42
leaq 0x30(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x40(%r15), %rsi
movq 0x48(%r15), %rdx
addq %rsi, %rdx
leaq 0x20(%rsp), %r12
movq %r12, %rdi
callq 0x9ac6
movq %r14, 0x40(%rsp)
leaq 0xa0(%rsp), %rdi
movq %r12, %rsi
callq 0x24078
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x5f42
callq 0x5200
movq %r15, %rdi
callq 0x5270
movq %rax, %r15
cmpq %r13, %rax
jne 0x5e11
leaq 0xe0(%rsp), %r14
movq %r14, %rdi
callq 0x9b56
movq 0x18(%rsp), %rdi
incq %rdi
movq 0xc0(%rsp), %rax
movq 0xc8(%rsp), %rcx
subq %rax, %rcx
shrq $0x5, %rcx
movslq %ecx, %rcx
cmpq %rcx, %rdi
jl 0x5dba
xorps %xmm0, %xmm0
movaps %xmm0, 0x20(%rsp)
movq $0x0, 0x30(%rsp)
movq 0x80(%rsp), %rsi
movq 0x88(%rsp), %rax
subq %rsi, %rax
shrq $0x3, %rax
imull $0xcccccccd, %eax, %eax # imm = 0xCCCCCCCD
testl %eax, %eax
jle 0x6076
leaq 0xf8(%rsp), %r13
xorl %ebp, %ebp
leaq 0x178(%rsp), %r14
leaq 0xe0(%rsp), %r15
leaq 0x20(%rsp), %r12
xorl %ebx, %ebx
movq 0x20(%rsi,%rbp), %rdx
addq %rbp, %rsi
movl $0x0, 0xe0(%rsp)
movq %r13, 0xe8(%rsp)
movq $0x0, 0xf0(%rsp)
movb $0x0, 0xf8(%rsp)
movq %r14, %rdi
leaq 0x230(%rsp), %rcx
movq %r15, %r8
callq 0x7840
movq %r12, %rdi
movq %r15, %rsi
callq 0x7a52
movq 0xe8(%rsp), %rdi
cmpq %r13, %rdi
je 0x6047
callq 0x5200
incq %rbx
movq 0x80(%rsp), %rsi
movq 0x88(%rsp), %rax
subq %rsi, %rax
shrq $0x3, %rax
imull $0xcccccccd, %eax, %eax # imm = 0xCCCCCCCD
cltq
addq $0x28, %rbp
cmpq %rax, %rbx
jl 0x5fe8
movb 0x2e1bc(%rip), %al      # 0x34238
testb %al, %al
leaq 0x1f3da(%rip), %rcx     # 0x2545f
leaq 0x1f2f4(%rip), %rsi     # 0x25380
cmovneq %rcx, %rsi
leaq 0x14(%rsi), %rdx
testb %al, %al
leaq 0xf0(%rsp), %rax
movq %rax, -0x10(%rax)
cmoveq %rsi, %rdx
leaq 0xe0(%rsp), %rdi
callq 0x97f8
movq 0xe0(%rsp), %rsi
movq 0xe8(%rsp), %rdx
movq 0x2df0e(%rip), %rdi     # 0x33fd8
callq 0x5260
movq %rax, %rbx
leaq 0x1f15f(%rip), %rsi     # 0x25238
movl $0x53, %edx
movq %rax, %rdi
callq 0x5260
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x5210
movsbl %al, %esi
movq %rbx, %rdi
callq 0x5040
movq %rax, %rdi
callq 0x5180
movq 0xe0(%rsp), %rdi
leaq 0xf0(%rsp), %rax
cmpq %rax, %rdi
je 0x6127
callq 0x5200
movq 0x20(%rsp), %rax
cmpq 0x28(%rsp), %rax
je 0x6196
movq 0x20(%rsp), %rdx
movq 0x28(%rsp), %rax
subq %rdx, %rax
shrq $0x4, %rax
imull $0xcccccccd, %eax, %eax # imm = 0xCCCCCCCD
testl %eax, %eax
jle 0x6196
xorl %r14d, %r14d
movq 0x2de80(%rip), %rbx     # 0x33fd8
leaq 0x178(%rsp), %r15
xorl %r12d, %r12d
addq %r14, %rdx
movq %r15, %rdi
movq %rbx, %rsi
callq 0x7ac4
incq %r12
movq 0x20(%rsp), %rdx
movq 0x28(%rsp), %rax
subq %rdx, %rax
shrq $0x4, %rax
imull $0xcccccccd, %eax, %eax # imm = 0xCCCCCCCD
cltq
addq $0x50, %r14
cmpq %rax, %r12
jl 0x6163
xorps %xmm0, %xmm0
movaps %xmm0, 0x60(%rsp)
movq $0x0, 0x70(%rsp)
movq 0xa0(%rsp), %rsi
movq 0xa8(%rsp), %rax
subq %rsi, %rax
shrq $0x3, %rax
imull $0xcccccccd, %eax, %eax # imm = 0xCCCCCCCD
testl %eax, %eax
jle 0x6289
leaq 0x230(%rsp), %rbx
xorl %r14d, %r14d
leaq 0x178(%rsp), %r15
leaq 0xe0(%rsp), %r12
leaq 0x60(%rsp), %r13
xorl %ebp, %ebp
movq 0x20(%rsi,%r14), %rdx
addq %r14, %rsi
leaq 0xf0(%rsp), %rax
movq %rax, 0xe0(%rsp)
movq $0x0, 0xe8(%rsp)
movb $0x0, 0xf0(%rsp)
movq %r15, %rdi
movq %rbx, %rcx
movq %r12, %r8
movq 0x10(%rsp), %r9
pushq $0x1
pushq $0x64
callq 0x83cc
addq $0x10, %rsp
movq %r13, %rdi
movq %r12, %rsi
callq 0x8596
movq 0xe0(%rsp), %rdi
leaq 0xf0(%rsp), %rax
cmpq %rax, %rdi
je 0x625a
callq 0x5200
incq %rbp
movq 0xa0(%rsp), %rsi
movq 0xa8(%rsp), %rax
subq %rsi, %rax
shrq $0x3, %rax
imull $0xcccccccd, %eax, %eax # imm = 0xCCCCCCCD
cltq
addq $0x28, %r14
cmpq %rax, %rbp
jl 0x61ee
movb 0x2dfa9(%rip), %al      # 0x34238
testb %al, %al
leaq 0x1f0e8(%rip), %rsi     # 0x25380
leaq 0x1f1c0(%rip), %rcx     # 0x2545f
cmovneq %rcx, %rsi
leaq 0x14(%rsi), %rdx
testb %al, %al
leaq 0xe0(%rsp), %rdi
leaq 0xf0(%rsp), %rax
movq %rax, (%rdi)
cmoveq %rsi, %rdx
callq 0x97f8
movq 0xe0(%rsp), %rsi
movq 0xe8(%rsp), %rdx
movq 0x2dcfc(%rip), %rdi     # 0x33fd8
callq 0x5260
movq %rax, %rbx
leaq 0x1efa1(%rip), %rsi     # 0x2528c
movl $0x51, %edx
movq %rax, %rdi
callq 0x5260
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x5210
movsbl %al, %esi
movq %rbx, %rdi
callq 0x5040
movq %rax, %rdi
callq 0x5180
movq 0xe0(%rsp), %rdi
leaq 0xf0(%rsp), %rax
cmpq %rax, %rdi
je 0x6339
callq 0x5200
movq 0x60(%rsp), %rax
cmpq 0x68(%rsp), %rax
je 0x63a8
movq 0x60(%rsp), %rdx
movq 0x68(%rsp), %rax
subq %rdx, %rax
shrq $0x3, %rax
imull $0x38e38e39, %eax, %eax # imm = 0x38E38E39
testl %eax, %eax
jle 0x63a8
xorl %r15d, %r15d
movq 0x2dc6e(%rip), %rbx     # 0x33fd8
leaq 0x178(%rsp), %r14
xorl %r12d, %r12d
addq %r15, %rdx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x85fe
incq %r12
movq 0x60(%rsp), %rdx
movq 0x68(%rsp), %rax
subq %rdx, %rax
shrq $0x3, %rax
imull $0x38e38e39, %eax, %eax # imm = 0x38E38E39
cltq
addq $0x48, %r15
cmpq %rax, %r12
jl 0x6375
movq 0x2dc29(%rip), %rdi     # 0x33fd8
leaq 0x1ef28(%rip), %rsi     # 0x252de
movl $0x11, %edx
callq 0x5260
movss 0x4(%rsp), %xmm0
addss 0x50(%rsp), %xmm0
movss %xmm0, 0x4(%rsp)
leaq 0xe0(%rsp), %rbx
xorl %edi, %edi
movq %rbx, %rsi
callq 0x5150
xorps %xmm0, %xmm0
cvtsi2ssq (%rbx), %xmm0
movss %xmm0, 0x18(%rsp)
xorps %xmm0, %xmm0
cvtsi2ssq 0x8(%rbx), %xmm0
subss 0x4(%rsp), %xmm0
movss %xmm0, 0x10(%rsp)
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
movq %rbx, %rsi
callq 0x5150
xorps %xmm0, %xmm0
cvtsi2ssq (%rbx), %xmm0
cvtsi2ssq 0x8(%rbx), %xmm1
addss 0x10(%rsp), %xmm1
mulss 0x1ebd4(%rip), %xmm1    # 0x25004
movss 0x58(%rsp), %xmm2
addss 0x54(%rsp), %xmm2
movss 0x18(%rsp), %xmm3
subss %xmm2, %xmm3
addss %xmm0, %xmm3
addss %xmm1, %xmm3
xorps %xmm0, %xmm0
cvtss2sd %xmm3, %xmm0
movq 0x2db7c(%rip), %rdi     # 0x33fd8
callq 0x5320
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x5210
movsbl %al, %esi
movq %rbx, %rdi
callq 0x5040
movq %rax, %rdi
callq 0x5180
leaq 0x60(%rsp), %rdi
callq 0x89cc
leaq 0x20(%rsp), %rdi
callq 0x8a10
leaq 0x178(%rsp), %rdi
callq 0x8a54
leaq 0x80(%rsp), %rdi
callq 0x8b14
leaq 0xa0(%rsp), %rdi
callq 0x8b58
leaq 0x2c7bb(%rip), %rax     # 0x32c88
movq %rax, 0x210(%rsp)
movq 0x238(%rsp), %rdi
testq %rdi, %rdi
je 0x64e7
callq 0x52b0
leaq 0xc0(%rsp), %rdi
callq 0x8bb4
xorl %eax, %eax
addq $0x308, %rsp            # imm = 0x308
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x2dac9(%rip), %rdi     # 0x33fd8
leaq 0x1ecde(%rip), %rsi     # 0x251f4
movl $0x26, %edx
callq 0x5260
movq 0x2dab1(%rip), %rdi     # 0x33fd8
callq 0x5110
jmp 0x653a
movq 0x2daa3(%rip), %rdi     # 0x33fd8
callq 0x56ec
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0x5290
jmp 0x654a
jmp 0x654a
jmp 0x654a
leaq 0x1ed9f(%rip), %rdi     # 0x252f0
leaq 0x1eda0(%rip), %rsi     # 0x252f8
leaq 0x1edac(%rip), %rcx     # 0x2530b
movl $0x3a, %edx
callq 0x5160
movq 0x2da68(%rip), %rdi     # 0x33fd8
callq 0x56ec
jmp 0x653a
jmp 0x65e9
jmp 0x65e9
jmp 0x65e9
jmp 0x65e9
jmp 0x65f1
jmp 0x65f6
jmp 0x65e9
jmp 0x65e9
movq %rax, %rbx
movq 0x178(%rsp), %rdi
leaq 0x188(%rsp), %rax
cmpq %rax, %rdi
je 0x66d4
callq 0x5200
jmp 0x66d4
jmp 0x65e9
jmp 0x65e9
jmp 0x65f1
movq %rax, %rbx
movq 0xe0(%rsp), %rdi
leaq 0xf0(%rsp), %rax
cmpq %rax, %rdi
je 0x661a
jmp 0x6615
movq %rax, %rbx
movq 0xe0(%rsp), %rdi
leaq 0xf0(%rsp), %rax
cmpq %rax, %rdi
je 0x663b
jmp 0x6636
jmp 0x65e9
movq %rax, %rbx
jmp 0x66d4
movq %rax, %rbx
jmp 0x661a
movq %rax, %rbx
jmp 0x663b
jmp 0x667c
movq %rax, %rbx
movq 0xe0(%rsp), %rdi
leaq 0xf0(%rsp), %rax
cmpq %rax, %rdi
je 0x661a
callq 0x5200
leaq 0x60(%rsp), %rdi
callq 0x89cc
jmp 0x663b
movq %rax, %rbx
movq 0xe8(%rsp), %rdi
cmpq %r13, %rdi
je 0x663b
callq 0x5200
leaq 0x20(%rsp), %rdi
callq 0x8a10
jmp 0x668c
movq %rax, %rbx
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x667f
jmp 0x6671
jmp 0x667c
jmp 0x667c
movq %rax, %rbx
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x667f
callq 0x5200
jmp 0x667f
jmp 0x667c
jmp 0x667c
movq %rax, %rbx
leaq 0xe0(%rsp), %rdi
callq 0x9b56
leaq 0x178(%rsp), %rdi
callq 0x8a54
leaq 0x80(%rsp), %rdi
callq 0x8b14
leaq 0xa0(%rsp), %rdi
callq 0x8b58
leaq 0x2c5ce(%rip), %rax     # 0x32c88
movq %rax, 0x210(%rsp)
movq 0x238(%rsp), %rdi
testq %rdi, %rdi
je 0x66d4
callq 0x52b0
leaq 0xc0(%rsp), %rdi
callq 0x8bb4
movq %rbx, %rdi
callq 0x5380
nop