// File: fjamour[P]icentral/src/main.cc
// Function: do_paper_exp(int, int, double, int, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>, bool, bool, bool, bool)
void do_paper_exp(int num_edges,
        int num_iter,
        double max_time,
        int rand_seed,
        vector<string> path_vec,
        bool do_inc_brandes,
        bool do_qube,
        bool do_inc_qube,
        bool do_fuad) 
{     
    //to make sure the exact same edges are used for my system and QUBE
    //I pass the same edges to both systems
    
    vector<double>  brandes_time_vec;
    
    vector<vector<edge_t> > edge_vec2;
    printf("Reading graphs and generating edges...\n");
    printf("========================================\n");
    for(int i = 0; i < path_vec.size(); ++i) {
        graph_t graph;
        string path = path_vec[i].c_str();
        graph.read_graph(path);
        graph.graph_name = extract_graph_name(path_vec[i]);
        vector<edge_t> edge_vec;
        gen_rand_edges(num_edges, graph, edge_vec);
        edge_vec2.push_back(edge_vec);
    }
    
    printf("\n\n\n");
    printf("Starting Brandes...\n");
    printf("========================================\n");
    for(int i = 0; i < path_vec.size(); ++i) {
        graph_t graph;
        string path = path_vec[i].c_str();
        graph.read_graph(path);
        graph.graph_name = extract_graph_name(path_vec[i]);
        double brandes_time;
        brandes_time = exp_brandes_p(graph, num_iter, edge_vec2[i], max_time);
        brandes_time_vec.push_back(brandes_time);
    }
    
    if(do_inc_brandes) {
        printf("\n\n\n");
        printf("Starting Incremental-Brandes...\n");
        printf("========================================\n");
        for(int i = 0; i < path_vec.size(); ++i) {
            graph_t graph;
            string path = path_vec[i].c_str();
            graph.read_graph(path);
            graph.graph_name = extract_graph_name(path_vec[i]);
            double brandes_time = brandes_time_vec[i];
            exp_inc_brandes_p(graph, num_iter, edge_vec2[i], brandes_time);
        }
    }
    
    if(do_qube) {
        printf("\n\n\n");
        printf("Starting QUBE...\n");
        printf("========================================\n");
        for(int i = 0; i < path_vec.size(); ++i) {
            graph_t graph;
            string path = path_vec[i].c_str();
            graph.read_graph(path);
            graph.graph_name = extract_graph_name(path_vec[i]);
            double brandes_time = brandes_time_vec[i];
            int loc_num_iter = num_iter;
            if(num_iter != -1 && brandes_time < max_time)
                loc_num_iter = -1;
            exp_qube_p(graph, loc_num_iter, edge_vec2[i], brandes_time);
        }
    }
    
    if(do_inc_qube) {
        printf("\n\n\n");
        printf("Starting Incremental-QUBE...\n");
        printf("========================================\n");
        for(int i = 0; i < path_vec.size(); ++i) {
            graph_t graph;
            string path = path_vec[i].c_str();
            graph.read_graph(path);
            graph.graph_name = extract_graph_name(path_vec[i]);
            double brandes_time = brandes_time_vec[i];
            int loc_num_iter = num_iter;
            if(num_iter != -1 && brandes_time < max_time)
                loc_num_iter = -1;
            exp_inc_qube_p(graph, loc_num_iter, edge_vec2[i], brandes_time);
        }
    }
    
    if(do_fuad) {
        printf("\n\n\n");
        printf("Starting FUAD...\n");
        printf("========================================\n");
        for(int i = 0; i < path_vec.size(); ++i) {
            graph_t graph;
            string path = path_vec[i].c_str();
            graph.read_graph(path);
            graph.graph_name = extract_graph_name(path_vec[i]);
            double brandes_time = brandes_time_vec[i];
            int loc_num_iter = num_iter;
            if(num_iter != -1 && brandes_time < max_time)
                loc_num_iter = -1;
            exp_fuad_p(graph, loc_num_iter, edge_vec2[i], brandes_time);
        }
    }
}

// Assembly:
subq $0xc78, %rsp            # imm = 0xC78
movl %r9d, 0xec(%rsp)
movl %r8d, %eax
movq %rcx, %r8
movl 0xec(%rsp), %ecx
movq %r8, 0xf0(%rsp)
movl %edx, %r8d
movl %esi, %r9d
movl %edi, %r10d
movq 0xf0(%rsp), %rdi
movb %cl, %dl
movb %al, %sil
movb 0xc88(%rsp), %al
movb 0xc80(%rsp), %cl
movl %r10d, 0xc74(%rsp)
movl %r9d, 0xc70(%rsp)
movsd %xmm0, 0xc68(%rsp)
movl %r8d, 0xc64(%rsp)
movq %rdi, 0xc58(%rsp)
andb $0x1, %sil
movb %sil, 0xc57(%rsp)
andb $0x1, %dl
movb %dl, 0xc56(%rsp)
andb $0x1, %cl
movb %cl, 0xc55(%rsp)
andb $0x1, %al
movb %al, 0xc54(%rsp)
leaq 0xc38(%rsp), %rdi
callq 0xfa00
leaq 0xc20(%rsp), %rdi
callq 0x5f0e0
leaq 0x1fb0d(%rip), %rdi     # 0x7bdf8
xorl %eax, %eax
callq 0x9040
jmp 0x5c2f4
leaq 0x1eff7(%rip), %rdi     # 0x7b2f2
xorl %eax, %eax
callq 0x9040
jmp 0x5c304
movl $0x0, 0xc10(%rsp)
movq 0xf0(%rsp), %rdi
movslq 0xc10(%rsp), %rax
movq %rax, 0xe0(%rsp)
callq 0x5f0f0
movq %rax, %rcx
movq 0xe0(%rsp), %rax
cmpq %rcx, %rax
jae 0x5c5c7
leaq 0xae8(%rsp), %rdi
callq 0x5eda0
jmp 0x5c34f
movq 0xf0(%rsp), %rdi
movslq 0xc10(%rsp), %rsi
callq 0x5f110
movq %rax, %rdi
callq 0x9250
movq %rax, 0xd0(%rsp)
leaq 0xac7(%rsp), %rdi
movq %rdi, 0xd8(%rsp)
callq 0x9d00
movq 0xd0(%rsp), %rsi
movq 0xd8(%rsp), %rdx
leaq 0xac8(%rsp), %rdi
callq 0x5ef00
jmp 0x5c3a8
leaq 0xac7(%rsp), %rdi
callq 0x97d0
leaq 0xaa0(%rsp), %rdi
leaq 0xac8(%rsp), %rsi
callq 0x9270
jmp 0x5c3cc
leaq 0xae8(%rsp), %rdi
leaq 0xaa0(%rsp), %rsi
callq 0x56b50
jmp 0x5c3e3
leaq 0xaa0(%rsp), %rdi
callq 0x9410
movq 0xf0(%rsp), %rdi
movslq 0xc10(%rsp), %rsi
callq 0x5f110
movq %rax, %rsi
leaq 0xa60(%rsp), %rdi
callq 0x9270
jmp 0x5c417
leaq 0xa80(%rsp), %rdi
leaq 0xa60(%rsp), %rsi
callq 0x789e0
jmp 0x5c42e
leaq 0xbf0(%rsp), %rdi
leaq 0xa80(%rsp), %rsi
movq %rsi, 0xc0(%rsp)
callq 0x98e0
movq 0xc0(%rsp), %rdi
callq 0x9410
leaq 0xa60(%rsp), %rdi
callq 0x9410
leaq 0xa48(%rsp), %rdi
movq %rdi, 0xc8(%rsp)
callq 0x4db80
movq 0xc8(%rsp), %rdx
movl 0xc74(%rsp), %edi
leaq 0xae8(%rsp), %rsi
callq 0x47910
jmp 0x5c498
leaq 0xc20(%rsp), %rdi
leaq 0xa48(%rsp), %rsi
callq 0x5f130
jmp 0x5c4af
leaq 0xa48(%rsp), %rdi
callq 0x4dc40
leaq 0xac8(%rsp), %rdi
callq 0x9410
leaq 0xae8(%rsp), %rdi
callq 0x5efc0
movl 0xc10(%rsp), %eax
addl $0x1, %eax
movl %eax, 0xc10(%rsp)
jmp 0x5c30f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc18(%rsp)
movl %eax, 0xc14(%rsp)
jmp 0x5d612
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc18(%rsp)
movl %eax, 0xc14(%rsp)
leaq 0xac7(%rsp), %rdi
callq 0x97d0
jmp 0x5c5b5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc18(%rsp)
movl %eax, 0xc14(%rsp)
jmp 0x5c5a8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc18(%rsp)
movl %eax, 0xc14(%rsp)
leaq 0xaa0(%rsp), %rdi
callq 0x9410
jmp 0x5c5a8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc18(%rsp)
movl %eax, 0xc14(%rsp)
leaq 0xa60(%rsp), %rdi
callq 0x9410
jmp 0x5c5a8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc18(%rsp)
movl %eax, 0xc14(%rsp)
leaq 0xa48(%rsp), %rdi
callq 0x4dc40
leaq 0xac8(%rsp), %rdi
callq 0x9410
leaq 0xae8(%rsp), %rdi
callq 0x5efc0
jmp 0x5d612
leaq 0x1f852(%rip), %rdi     # 0x7be20
xorl %eax, %eax
callq 0x9040
jmp 0x5c5d7
leaq 0x1f846(%rip), %rdi     # 0x7be24
xorl %eax, %eax
callq 0x9040
jmp 0x5c5e7
leaq 0x1ed04(%rip), %rdi     # 0x7b2f2
xorl %eax, %eax
callq 0x9040
jmp 0x5c5f7
movl $0x0, 0xa44(%rsp)
movq 0xf0(%rsp), %rdi
movslq 0xa44(%rsp), %rax
movq %rax, 0xb8(%rsp)
callq 0x5f0f0
movq %rax, %rcx
movq 0xb8(%rsp), %rax
cmpq %rcx, %rax
jae 0x5c8e5
leaq 0x918(%rsp), %rdi
callq 0x5eda0
jmp 0x5c642
movq 0xf0(%rsp), %rdi
movslq 0xa44(%rsp), %rsi
callq 0x5f110
movq %rax, %rdi
callq 0x9250
movq %rax, 0xa8(%rsp)
leaq 0x8f7(%rsp), %rdi
movq %rdi, 0xb0(%rsp)
callq 0x9d00
movq 0xa8(%rsp), %rsi
movq 0xb0(%rsp), %rdx
leaq 0x8f8(%rsp), %rdi
callq 0x5ef00
jmp 0x5c69b
leaq 0x8f7(%rsp), %rdi
callq 0x97d0
leaq 0x8d0(%rsp), %rdi
leaq 0x8f8(%rsp), %rsi
callq 0x9270
jmp 0x5c6bf
leaq 0x918(%rsp), %rdi
leaq 0x8d0(%rsp), %rsi
callq 0x56b50
jmp 0x5c6d6
leaq 0x8d0(%rsp), %rdi
callq 0x9410
movq 0xf0(%rsp), %rdi
movslq 0xa44(%rsp), %rsi
callq 0x5f110
movq %rax, %rsi
leaq 0x890(%rsp), %rdi
callq 0x9270
jmp 0x5c70a
leaq 0x8b0(%rsp), %rdi
leaq 0x890(%rsp), %rsi
callq 0x789e0
jmp 0x5c721
leaq 0xa20(%rsp), %rdi
leaq 0x8b0(%rsp), %rsi
movq %rsi, 0x98(%rsp)
callq 0x98e0
movq 0x98(%rsp), %rdi
callq 0x9410
leaq 0x890(%rsp), %rdi
callq 0x9410
movl 0xc70(%rsp), %eax
movl %eax, 0xa4(%rsp)
movslq 0xa44(%rsp), %rsi
leaq 0xc20(%rsp), %rdi
callq 0x58990
movq %rax, %rsi
leaq 0x870(%rsp), %rdi
callq 0x5f2f0
jmp 0x5c78d
movl 0xa4(%rsp), %esi
movsd 0xc68(%rsp), %xmm0
leaq 0x918(%rsp), %rdi
leaq 0x870(%rsp), %rdx
callq 0x64130
movsd %xmm0, 0x90(%rsp)
jmp 0x5c7bd
movsd 0x90(%rsp), %xmm0
movsd %xmm0, 0x888(%rsp)
leaq 0x870(%rsp), %rdi
callq 0x4dc40
leaq 0xc38(%rsp), %rdi
leaq 0x888(%rsp), %rsi
callq 0x4de20
jmp 0x5c7f3
leaq 0x8f8(%rsp), %rdi
callq 0x9410
leaq 0x918(%rsp), %rdi
callq 0x5efc0
movl 0xa44(%rsp), %eax
addl $0x1, %eax
movl %eax, 0xa44(%rsp)
jmp 0x5c602
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc18(%rsp)
movl %eax, 0xc14(%rsp)
leaq 0x8f7(%rsp), %rdi
callq 0x97d0
jmp 0x5c8d3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc18(%rsp)
movl %eax, 0xc14(%rsp)
jmp 0x5c8c6
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc18(%rsp)
movl %eax, 0xc14(%rsp)
leaq 0x8d0(%rsp), %rdi
callq 0x9410
jmp 0x5c8c6
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc18(%rsp)
movl %eax, 0xc14(%rsp)
leaq 0x890(%rsp), %rdi
callq 0x9410
jmp 0x5c8c6
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc18(%rsp)
movl %eax, 0xc14(%rsp)
leaq 0x870(%rsp), %rdi
callq 0x4dc40
leaq 0x8f8(%rsp), %rdi
callq 0x9410
leaq 0x918(%rsp), %rdi
callq 0x5efc0
jmp 0x5d612
testb $0x1, 0xc57(%rsp)
je 0x5cbf1
leaq 0x1f526(%rip), %rdi     # 0x7be20
xorl %eax, %eax
callq 0x9040
jmp 0x5c903
leaq 0x1f52f(%rip), %rdi     # 0x7be39
xorl %eax, %eax
callq 0x9040
jmp 0x5c913
leaq 0x1e9d8(%rip), %rdi     # 0x7b2f2
xorl %eax, %eax
callq 0x9040
jmp 0x5c923
movl $0x0, 0x86c(%rsp)
movq 0xf0(%rsp), %rdi
movslq 0x86c(%rsp), %rax
movq %rax, 0x88(%rsp)
callq 0x5f0f0
movq %rax, %rcx
movq 0x88(%rsp), %rax
cmpq %rcx, %rax
jae 0x5cbef
leaq 0x740(%rsp), %rdi
callq 0x5eda0
jmp 0x5c96e
movq 0xf0(%rsp), %rdi
movslq 0x86c(%rsp), %rsi
callq 0x5f110
movq %rax, %rdi
callq 0x9250
movq %rax, 0x78(%rsp)
leaq 0x71f(%rsp), %rdi
movq %rdi, 0x80(%rsp)
callq 0x9d00
movq 0x78(%rsp), %rsi
movq 0x80(%rsp), %rdx
leaq 0x720(%rsp), %rdi
callq 0x5ef00
jmp 0x5c9c1
leaq 0x71f(%rsp), %rdi
callq 0x97d0
leaq 0x6f8(%rsp), %rdi
leaq 0x720(%rsp), %rsi
callq 0x9270
jmp 0x5c9e5
leaq 0x740(%rsp), %rdi
leaq 0x6f8(%rsp), %rsi
callq 0x56b50
jmp 0x5c9fc
leaq 0x6f8(%rsp), %rdi
callq 0x9410
movq 0xf0(%rsp), %rdi
movslq 0x86c(%rsp), %rsi
callq 0x5f110
movq %rax, %rsi
leaq 0x6b8(%rsp), %rdi
callq 0x9270
jmp 0x5ca30
leaq 0x6d8(%rsp), %rdi
leaq 0x6b8(%rsp), %rsi
callq 0x789e0
jmp 0x5ca47
leaq 0x848(%rsp), %rdi
leaq 0x6d8(%rsp), %rsi
movq %rsi, 0x68(%rsp)
callq 0x98e0
movq 0x68(%rsp), %rdi
callq 0x9410
leaq 0x6b8(%rsp), %rdi
callq 0x9410
movslq 0x86c(%rsp), %rsi
leaq 0xc38(%rsp), %rdi
callq 0xfa30
movsd (%rax), %xmm0
movsd %xmm0, 0x6b0(%rsp)
movl 0xc70(%rsp), %eax
movl %eax, 0x74(%rsp)
movslq 0x86c(%rsp), %rsi
leaq 0xc20(%rsp), %rdi
callq 0x58990
movq %rax, %rsi
leaq 0x698(%rsp), %rdi
callq 0x5f2f0
jmp 0x5cacc
movl 0x74(%rsp), %esi
movsd 0x6b0(%rsp), %xmm0
leaq 0x740(%rsp), %rdi
leaq 0x698(%rsp), %rdx
callq 0x64490
jmp 0x5caf0
leaq 0x698(%rsp), %rdi
callq 0x4dc40
leaq 0x720(%rsp), %rdi
callq 0x9410
leaq 0x740(%rsp), %rdi
callq 0x5efc0
movl 0x86c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x86c(%rsp)
jmp 0x5c92e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc18(%rsp)
movl %eax, 0xc14(%rsp)
leaq 0x71f(%rsp), %rdi
callq 0x97d0
jmp 0x5cbdd
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc18(%rsp)
movl %eax, 0xc14(%rsp)
jmp 0x5cbd0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc18(%rsp)
movl %eax, 0xc14(%rsp)
leaq 0x6f8(%rsp), %rdi
callq 0x9410
jmp 0x5cbd0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc18(%rsp)
movl %eax, 0xc14(%rsp)
leaq 0x6b8(%rsp), %rdi
callq 0x9410
jmp 0x5cbd0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc18(%rsp)
movl %eax, 0xc14(%rsp)
leaq 0x698(%rsp), %rdi
callq 0x4dc40
leaq 0x720(%rsp), %rdi
callq 0x9410
leaq 0x740(%rsp), %rdi
callq 0x5efc0
jmp 0x5d612
jmp 0x5cbf1
testb $0x1, 0xc56(%rsp)
je 0x5cf47
leaq 0x1f21a(%rip), %rdi     # 0x7be20
xorl %eax, %eax
callq 0x9040
jmp 0x5cc0f
leaq 0x1f244(%rip), %rdi     # 0x7be5a
xorl %eax, %eax
callq 0x9040
jmp 0x5cc1f
leaq 0x1e6cc(%rip), %rdi     # 0x7b2f2
xorl %eax, %eax
callq 0x9040
jmp 0x5cc2f
movl $0x0, 0x694(%rsp)
movq 0xf0(%rsp), %rdi
movslq 0x694(%rsp), %rax
movq %rax, 0x60(%rsp)
callq 0x5f0f0
movq %rax, %rcx
movq 0x60(%rsp), %rax
cmpq %rcx, %rax
jae 0x5cf45
leaq 0x568(%rsp), %rdi
callq 0x5eda0
jmp 0x5cc74
movq 0xf0(%rsp), %rdi
movslq 0x694(%rsp), %rsi
callq 0x5f110
movq %rax, %rdi
callq 0x9250
movq %rax, 0x50(%rsp)
leaq 0x547(%rsp), %rdi
movq %rdi, 0x58(%rsp)
callq 0x9d00
movq 0x50(%rsp), %rsi
movq 0x58(%rsp), %rdx
leaq 0x548(%rsp), %rdi
callq 0x5ef00
jmp 0x5ccc1
leaq 0x547(%rsp), %rdi
callq 0x97d0
leaq 0x520(%rsp), %rdi
leaq 0x548(%rsp), %rsi
callq 0x9270
jmp 0x5cce5
leaq 0x568(%rsp), %rdi
leaq 0x520(%rsp), %rsi
callq 0x56b50
jmp 0x5ccfc
leaq 0x520(%rsp), %rdi
callq 0x9410
movq 0xf0(%rsp), %rdi
movslq 0x694(%rsp), %rsi
callq 0x5f110
movq %rax, %rsi
leaq 0x4e0(%rsp), %rdi
callq 0x9270
jmp 0x5cd30
leaq 0x500(%rsp), %rdi
leaq 0x4e0(%rsp), %rsi
callq 0x789e0
jmp 0x5cd47
leaq 0x568(%rsp), %rdi
addq $0x108, %rdi            # imm = 0x108
leaq 0x500(%rsp), %rsi
callq 0x98e0
leaq 0x500(%rsp), %rdi
callq 0x9410
leaq 0x4e0(%rsp), %rdi
callq 0x9410
movslq 0x694(%rsp), %rsi
leaq 0xc38(%rsp), %rdi
callq 0xfa30
movsd (%rax), %xmm0
movsd %xmm0, 0x4d8(%rsp)
movl 0xc70(%rsp), %eax
movl %eax, 0x4d4(%rsp)
cmpl $-0x1, 0xc70(%rsp)
je 0x5ce72
movsd 0x4d8(%rsp), %xmm1
movsd 0xc68(%rsp), %xmm0
ucomisd %xmm1, %xmm0
jbe 0x5ce72
movl $0xffffffff, 0x4d4(%rsp) # imm = 0xFFFFFFFF
jmp 0x5ce72
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc18(%rsp)
movl %eax, 0xc14(%rsp)
leaq 0x547(%rsp), %rdi
callq 0x97d0
jmp 0x5cf33
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc18(%rsp)
movl %eax, 0xc14(%rsp)
jmp 0x5cf26
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc18(%rsp)
movl %eax, 0xc14(%rsp)
leaq 0x520(%rsp), %rdi
callq 0x9410
jmp 0x5cf26
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc18(%rsp)
movl %eax, 0xc14(%rsp)
leaq 0x4e0(%rsp), %rdi
callq 0x9410
jmp 0x5cf26
movl 0x4d4(%rsp), %eax
movl %eax, 0x4c(%rsp)
movslq 0x694(%rsp), %rsi
leaq 0xc20(%rsp), %rdi
callq 0x58990
movq %rax, %rsi
leaq 0x4b8(%rsp), %rdi
callq 0x5f2f0
jmp 0x5cea4
movl 0x4c(%rsp), %esi
movsd 0x4d8(%rsp), %xmm0
leaq 0x568(%rsp), %rdi
leaq 0x4b8(%rsp), %rdx
callq 0x64c50
jmp 0x5cec8
leaq 0x4b8(%rsp), %rdi
callq 0x4dc40
leaq 0x548(%rsp), %rdi
callq 0x9410
leaq 0x568(%rsp), %rdi
callq 0x5efc0
movl 0x694(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x694(%rsp)
jmp 0x5cc3a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc18(%rsp)
movl %eax, 0xc14(%rsp)
leaq 0x4b8(%rsp), %rdi
callq 0x4dc40
leaq 0x548(%rsp), %rdi
callq 0x9410
leaq 0x568(%rsp), %rdi
callq 0x5efc0
jmp 0x5d612
jmp 0x5cf47
testb $0x1, 0xc55(%rsp)
je 0x5d29d
leaq 0x1eec4(%rip), %rdi     # 0x7be20
xorl %eax, %eax
callq 0x9040
jmp 0x5cf65
leaq 0x1ef00(%rip), %rdi     # 0x7be6c
xorl %eax, %eax
callq 0x9040
jmp 0x5cf75
leaq 0x1e376(%rip), %rdi     # 0x7b2f2
xorl %eax, %eax
callq 0x9040
jmp 0x5cf85
movl $0x0, 0x4b4(%rsp)
movq 0xf0(%rsp), %rdi
movslq 0x4b4(%rsp), %rax
movq %rax, 0x40(%rsp)
callq 0x5f0f0
movq %rax, %rcx
movq 0x40(%rsp), %rax
cmpq %rcx, %rax
jae 0x5d29b
leaq 0x388(%rsp), %rdi
callq 0x5eda0
jmp 0x5cfca
movq 0xf0(%rsp), %rdi
movslq 0x4b4(%rsp), %rsi
callq 0x5f110
movq %rax, %rdi
callq 0x9250
movq %rax, 0x30(%rsp)
leaq 0x367(%rsp), %rdi
movq %rdi, 0x38(%rsp)
callq 0x9d00
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
leaq 0x368(%rsp), %rdi
callq 0x5ef00
jmp 0x5d017
leaq 0x367(%rsp), %rdi
callq 0x97d0
leaq 0x340(%rsp), %rdi
leaq 0x368(%rsp), %rsi
callq 0x9270
jmp 0x5d03b
leaq 0x388(%rsp), %rdi
leaq 0x340(%rsp), %rsi
callq 0x56b50
jmp 0x5d052
leaq 0x340(%rsp), %rdi
callq 0x9410
movq 0xf0(%rsp), %rdi
movslq 0x4b4(%rsp), %rsi
callq 0x5f110
movq %rax, %rsi
leaq 0x300(%rsp), %rdi
callq 0x9270
jmp 0x5d086
leaq 0x320(%rsp), %rdi
leaq 0x300(%rsp), %rsi
callq 0x789e0
jmp 0x5d09d
leaq 0x388(%rsp), %rdi
addq $0x108, %rdi            # imm = 0x108
leaq 0x320(%rsp), %rsi
callq 0x98e0
leaq 0x320(%rsp), %rdi
callq 0x9410
leaq 0x300(%rsp), %rdi
callq 0x9410
movslq 0x4b4(%rsp), %rsi
leaq 0xc38(%rsp), %rdi
callq 0xfa30
movsd (%rax), %xmm0
movsd %xmm0, 0x2f8(%rsp)
movl 0xc70(%rsp), %eax
movl %eax, 0x2f4(%rsp)
cmpl $-0x1, 0xc70(%rsp)
je 0x5d1c8
movsd 0x2f8(%rsp), %xmm1
movsd 0xc68(%rsp), %xmm0
ucomisd %xmm1, %xmm0
jbe 0x5d1c8
movl $0xffffffff, 0x2f4(%rsp) # imm = 0xFFFFFFFF
jmp 0x5d1c8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc18(%rsp)
movl %eax, 0xc14(%rsp)
leaq 0x367(%rsp), %rdi
callq 0x97d0
jmp 0x5d289
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc18(%rsp)
movl %eax, 0xc14(%rsp)
jmp 0x5d27c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc18(%rsp)
movl %eax, 0xc14(%rsp)
leaq 0x340(%rsp), %rdi
callq 0x9410
jmp 0x5d27c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc18(%rsp)
movl %eax, 0xc14(%rsp)
leaq 0x300(%rsp), %rdi
callq 0x9410
jmp 0x5d27c
movl 0x2f4(%rsp), %eax
movl %eax, 0x2c(%rsp)
movslq 0x4b4(%rsp), %rsi
leaq 0xc20(%rsp), %rdi
callq 0x58990
movq %rax, %rsi
leaq 0x2d8(%rsp), %rdi
callq 0x5f2f0
jmp 0x5d1fa
movl 0x2c(%rsp), %esi
movsd 0x2f8(%rsp), %xmm0
leaq 0x388(%rsp), %rdi
leaq 0x2d8(%rsp), %rdx
callq 0x652d0
jmp 0x5d21e
leaq 0x2d8(%rsp), %rdi
callq 0x4dc40
leaq 0x368(%rsp), %rdi
callq 0x9410
leaq 0x388(%rsp), %rdi
callq 0x5efc0
movl 0x4b4(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x4b4(%rsp)
jmp 0x5cf90
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc18(%rsp)
movl %eax, 0xc14(%rsp)
leaq 0x2d8(%rsp), %rdi
callq 0x4dc40
leaq 0x368(%rsp), %rdi
callq 0x9410
leaq 0x388(%rsp), %rdi
callq 0x5efc0
jmp 0x5d612
jmp 0x5d29d
testb $0x1, 0xc54(%rsp)
je 0x5d5f0
leaq 0x1eb6e(%rip), %rdi     # 0x7be20
xorl %eax, %eax
callq 0x9040
jmp 0x5d2bb
leaq 0x1ebc8(%rip), %rdi     # 0x7be8a
xorl %eax, %eax
callq 0x9040
jmp 0x5d2cb
leaq 0x1e020(%rip), %rdi     # 0x7b2f2
xorl %eax, %eax
callq 0x9040
jmp 0x5d2db
movl $0x0, 0x2d4(%rsp)
movq 0xf0(%rsp), %rdi
movslq 0x2d4(%rsp), %rax
movq %rax, 0x20(%rsp)
callq 0x5f0f0
movq %rax, %rcx
movq 0x20(%rsp), %rax
cmpq %rcx, %rax
jae 0x5d5ee
leaq 0x1a8(%rsp), %rdi
callq 0x5eda0
jmp 0x5d320
movq 0xf0(%rsp), %rdi
movslq 0x2d4(%rsp), %rsi
callq 0x5f110
movq %rax, %rdi
callq 0x9250
movq %rax, 0x10(%rsp)
leaq 0x187(%rsp), %rdi
movq %rdi, 0x18(%rsp)
callq 0x9d00
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
leaq 0x188(%rsp), %rdi
callq 0x5ef00
jmp 0x5d36d
leaq 0x187(%rsp), %rdi
callq 0x97d0
leaq 0x160(%rsp), %rdi
leaq 0x188(%rsp), %rsi
callq 0x9270
jmp 0x5d391
leaq 0x1a8(%rsp), %rdi
leaq 0x160(%rsp), %rsi
callq 0x56b50
jmp 0x5d3a8
leaq 0x160(%rsp), %rdi
callq 0x9410
movq 0xf0(%rsp), %rdi
movslq 0x2d4(%rsp), %rsi
callq 0x5f110
movq %rax, %rsi
leaq 0x120(%rsp), %rdi
callq 0x9270
jmp 0x5d3dc
leaq 0x140(%rsp), %rdi
leaq 0x120(%rsp), %rsi
callq 0x789e0
jmp 0x5d3f3
leaq 0x1a8(%rsp), %rdi
addq $0x108, %rdi            # imm = 0x108
leaq 0x140(%rsp), %rsi
callq 0x98e0
leaq 0x140(%rsp), %rdi
callq 0x9410
leaq 0x120(%rsp), %rdi
callq 0x9410
movslq 0x2d4(%rsp), %rsi
leaq 0xc38(%rsp), %rdi
callq 0xfa30
movsd (%rax), %xmm0
movsd %xmm0, 0x118(%rsp)
movl 0xc70(%rsp), %eax
movl %eax, 0x114(%rsp)
cmpl $-0x1, 0xc70(%rsp)
je 0x5d51e
movsd 0x118(%rsp), %xmm1
movsd 0xc68(%rsp), %xmm0
ucomisd %xmm1, %xmm0
jbe 0x5d51e
movl $0xffffffff, 0x114(%rsp) # imm = 0xFFFFFFFF
jmp 0x5d51e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc18(%rsp)
movl %eax, 0xc14(%rsp)
leaq 0x187(%rsp), %rdi
callq 0x97d0
jmp 0x5d5df
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc18(%rsp)
movl %eax, 0xc14(%rsp)
jmp 0x5d5d2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc18(%rsp)
movl %eax, 0xc14(%rsp)
leaq 0x160(%rsp), %rdi
callq 0x9410
jmp 0x5d5d2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc18(%rsp)
movl %eax, 0xc14(%rsp)
leaq 0x120(%rsp), %rdi
callq 0x9410
jmp 0x5d5d2
movl 0x114(%rsp), %eax
movl %eax, 0xc(%rsp)
movslq 0x2d4(%rsp), %rsi
leaq 0xc20(%rsp), %rdi
callq 0x58990
movq %rax, %rsi
leaq 0xf8(%rsp), %rdi
callq 0x5f2f0
jmp 0x5d550
movl 0xc(%rsp), %esi
movsd 0x118(%rsp), %xmm0
leaq 0x1a8(%rsp), %rdi
leaq 0xf8(%rsp), %rdx
callq 0x65960
jmp 0x5d574
leaq 0xf8(%rsp), %rdi
callq 0x4dc40
leaq 0x188(%rsp), %rdi
callq 0x9410
leaq 0x1a8(%rsp), %rdi
callq 0x5efc0
movl 0x2d4(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x2d4(%rsp)
jmp 0x5d2e6
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc18(%rsp)
movl %eax, 0xc14(%rsp)
leaq 0xf8(%rsp), %rdi
callq 0x4dc40
leaq 0x188(%rsp), %rdi
callq 0x9410
leaq 0x1a8(%rsp), %rdi
callq 0x5efc0
jmp 0x5d612
jmp 0x5d5f0
leaq 0xc20(%rsp), %rdi
callq 0x5f1a0
leaq 0xc38(%rsp), %rdi
callq 0xfa50
addq $0xc78, %rsp            # imm = 0xC78
retq
leaq 0xc20(%rsp), %rdi
callq 0x5f1a0
leaq 0xc38(%rsp), %rdi
callq 0xfa50
movq 0xc18(%rsp), %rdi
callq 0x9cf0
nopl (%rax)