// File: /workspace/github_cpp_makefile_star2_O1/fjamour[P]icentral/src/experiments.cc
// Function: insertion_test_qube_hash(graph_t&, int, std::vector<std::pair<unsigned int, unsigned int>, std::allocator<std::pair<unsigned int, unsigned int>>>, bool, int)
void insertion_test_qube_hash(graph_t& graph,
        int num_edges_to_insert,
        vector<edge_t> rand_edge_vec,
        bool use_incremental_algo,
        int max_iter)
{
    //1. prepare structures to store the results for each edge 
    //2. generate random edges
    //3. run Brandes and find time
    //4. run update after each edge insertion and record results
    //5. print the results progressively
    //int num_edges_to_insert = 2;
    
    printf("==========================================================\n");
    printf("Graph: \t\t\t%s\n", graph.graph_name.c_str());
    printf("Graph # nodes: \t\t%d\n", graph.size());
    printf("Graph # edges: \t\t%d\n", graph.edge_set.size());
    graph_hash_t g;
    g.fill_graph(graph);
    
    double brandes_time, muc_find_time;
    timer tm;
    
    printf("Brandes runtime: \t");
    tr1_map_t(double) bc_vec;
    tm.start();
    bc_vec = brandes_bc_hash_out(graph, max_iter);
    tm.stop();
    if(max_iter == -1)
        brandes_time = tm.interval();
    else
        brandes_time = (tm.interval()/max_iter)*graph.size();
    printf("%f\n", brandes_time);
    printf("Brandes avg iter time: \t%f\n", brandes_time/graph.size());
    
    printf("# MUCs: \t\t");
    tm.start();
    graph.find_mucs();
    tm.stop();
    muc_find_time = tm.interval();
    printf("%d\n", graph.get_num_mucs());
    printf("Time to find MUCs: \t%f\n", muc_find_time);
    
    //vector<edge_t> rand_edge_vec;
    if(rand_edge_vec.size() == 0) {
        printf("Generating edges...\n");
        gen_rand_edges(num_edges_to_insert, graph, rand_edge_vec);
    }
    vector<edge_stat_t> edge_stat_vec;
    
    double tot_speedup = 0;
    double tot_ideal_speedup = 0;
    
    vector<double> speedup_vec;
    for(int i = 0; i < rand_edge_vec.size(); ++i) {
        edge_t rand_edge = rand_edge_vec[i];
        edge_stat_t edge_stat;
        printf("Adding edge (%d, %d)\n", rand_edge.first, rand_edge.second);
        tm.start();
        graph.insert_edge_update_muc(rand_edge.first, rand_edge.second);
        tm.stop();
        edge_stat.edge_ins_time = tm.interval();

        muc_id_t muc_id = graph.node_to_muc_vec[rand_edge.first];
        edge_stat.muc_num_edges = graph.muc_vec[muc_id].muc_subgraph.edge_set.size();
        edge_stat.muc_num_nodes = graph.muc_vec[muc_id].muc_subgraph.nodes_map.size();
        tr1::unordered_map<node_id_t, double> bc_map;
        tm.start();
        if(!use_incremental_algo) {
            graph.muc_vec[muc_id].compute_bc(bc_map, max_iter);
        } else {
            graph.muc_vec[muc_id].compute_bc_inc(bc_map, rand_edge.first, rand_edge.second);
        }
        tm.stop();
        if(max_iter == -1)
            edge_stat.muc_bc_update_time = tm.interval();
        else
            edge_stat.muc_bc_update_time = (tm.interval()/max_iter)*edge_stat.muc_num_nodes;
        //TMP CODE XXX FIX THIS SHIT
        edge_stat.muc_bc_update_time += edge_stat.edge_ins_time;
        ////
        
        double speedup = brandes_time/edge_stat.muc_bc_update_time;
        tot_speedup += speedup;
        speedup_vec.push_back(speedup);
        //estimating ideal speedup using the node and edge proportions
        double ideal_speedup;
        double V  = graph.size(); double E = graph.edge_set.size();
        double Vm = edge_stat.muc_num_nodes; double Em = edge_stat.muc_num_edges;
        ideal_speedup = ((V+E)/(Vm+Em))*(V/Vm);
        tot_ideal_speedup += ideal_speedup;
        ////
        
        printf("\tMUC # nodes: \t\t%d (%f G_n)\n",
                edge_stat.muc_num_nodes,
                edge_stat.muc_num_nodes/(double)graph.size());
        printf("\tMUC # edges: \t\t%d (%f G_M)\n",
                edge_stat.muc_num_edges,
                edge_stat.muc_num_edges/(double)graph.edge_set.size());
        printf("\n");
        printf("\tTime to update BC: \t%f\n", edge_stat.muc_bc_update_time);
        printf("\tSpeedup: \t\t%f (Ideal: %f)\n", speedup, ideal_speedup);
        printf("\n");
        printf("\tQUBE avg iter time: \t%f\n",
                edge_stat.muc_bc_update_time/edge_stat.muc_num_nodes);
        printf("\tTime to update MUCs: \t%f\n", edge_stat.edge_ins_time);

        edge_stat_vec.push_back(edge_stat);
    }
    
    double avg_speedup = tot_speedup/num_edges_to_insert;
    double avg_ideal_speedup = tot_ideal_speedup/num_edges_to_insert;
    printf("[[Average speedup: %f (Ideal: %f)]]\n",
        avg_speedup,
        avg_ideal_speedup);
    
    //calculating 95% confidence interval
    double s_mean, s_median, s_stddev, s_min, s_max;
    simple_stats(speedup_vec, s_mean, s_stddev, s_median, s_min, s_max);
    double diff = 1.96*s_stddev/sqrt(num_edges_to_insert);
    double v1 = s_mean - diff;
    double v2 = s_mean + diff;
    printf("[[Speedup 95 CI: %f - %f]]\n", v1, v2);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x418, %rsp            # imm = 0x418
movl %r8d, %r14d
movl %ecx, 0x9c(%rsp)
movq %rdx, 0x68(%rsp)
movl %esi, %ebp
movq %rdi, %r12
leaq 0x1a32e(%rip), %rdi     # 0x31b40
callq 0x2350
movq 0x108(%r12), %rsi
leaq 0x19a2a(%rip), %rdi     # 0x31250
xorl %eax, %eax
callq 0x2030
movq %r12, %rdi
callq 0x1e160
leaq 0x19a22(%rip), %rdi     # 0x3125e
movq %rax, %rsi
xorl %eax, %eax
callq 0x2030
movq 0x58(%r12), %rsi
leaq 0x19a21(%rip), %rdi     # 0x31273
xorl %eax, %eax
callq 0x2030
leaq 0x170(%rsp), %rbx
movq %rbx, %rdi
callq 0x153ae
movq %rbx, %rdi
movq %r12, %rsi
callq 0x1d062
leaq 0x19a0d(%rip), %rdi     # 0x31288
xorl %eax, %eax
callq 0x2030
leaq 0xc0(%rsp), %rax
leaq 0x80(%rsp), %r10
leaq 0x140(%rsp), %rdi
leaq 0x10(%rsp), %rdx
leaq 0x100(%rsp), %rcx
leaq 0xa0(%rsp), %r8
leaq 0x8(%rsp), %r9
movl $0xa, %esi
pushq %rax
pushq %r10
callq 0xddc0
addq $0x10, %rsp
leaq 0x28(%rsp), %rdi
xorl %esi, %esi
callq 0x2360
leaq 0x100(%rsp), %rdi
movq %r12, %rsi
movl %r14d, %edx
callq 0xb150
leaq 0x140(%rsp), %rdi
leaq 0x100(%rsp), %rsi
callq 0x1b436
leaq 0x100(%rsp), %rdi
callq 0xd8b4
leaq 0x38(%rsp), %rbx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x2360
movq -0x10(%rbx), %rbx
cvtsi2sd %r14d, %xmm0
movsd %xmm0, 0xb8(%rsp)
movl %r14d, 0x4c(%rsp)
cmpl $-0x1, %r14d
je 0x179b7
movq 0x30(%rsp), %r14
movq 0x38(%rsp), %r15
movq 0x40(%rsp), %r13
movq %r12, %rdi
callq 0x1e160
xorps %xmm0, %xmm0
cvtsi2sd %r13, %xmm0
movsd 0x19843(%rip), %xmm1    # 0x311a0
divsd %xmm1, %xmm0
cvtsi2sd %r15, %xmm2
cvtsi2sd %r14, %xmm3
addsd %xmm0, %xmm2
divsd %xmm1, %xmm3
xorps %xmm0, %xmm0
cvtsi2sd %rbx, %xmm0
addsd %xmm3, %xmm0
subsd %xmm0, %xmm2
divsd 0xb8(%rsp), %xmm2
movq %rax, %xmm0
punpckldq 0x19887(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x1988f(%rip), %xmm0    # 0x31230
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
movapd %xmm1, %xmm0
mulsd %xmm2, %xmm0
jmp 0x179f4
xorps %xmm0, %xmm0
cvtsi2sd %rbx, %xmm0
cvtsi2sdq 0x30(%rsp), %xmm1
movsd 0x197d2(%rip), %xmm2    # 0x311a0
divsd %xmm2, %xmm1
cvtsi2sdq 0x38(%rsp), %xmm3
cvtsi2sdq 0x40(%rsp), %xmm4
addsd %xmm0, %xmm1
movapd %xmm4, %xmm0
divsd %xmm2, %xmm0
addsd %xmm3, %xmm0
subsd %xmm1, %xmm0
leaq 0x19a5f(%rip), %rdi     # 0x3145a
movapd %xmm0, 0xf0(%rsp)
movb $0x1, %al
callq 0x2030
movq %r12, %rdi
callq 0x1e160
movq %rax, %xmm0
punpckldq 0x19800(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x19808(%rip), %xmm0    # 0x31230
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
movapd 0xf0(%rsp), %xmm0
divsd %xmm1, %xmm0
leaq 0x19911(%rip), %rdi     # 0x31359
movb $0x1, %al
callq 0x2030
leaq 0x19845(%rip), %rdi     # 0x3129b
xorl %eax, %eax
callq 0x2030
leaq 0x28(%rsp), %rdi
xorl %esi, %esi
callq 0x2360
movq %r12, %rdi
callq 0x282ae
leaq 0x38(%rsp), %rdi
xorl %esi, %esi
callq 0x2360
movq 0x28(%rsp), %rbx
movq 0x30(%rsp), %r14
movq 0x38(%rsp), %r15
movq 0x40(%rsp), %r13
movq %r12, %rdi
callq 0x289cc
xorps %xmm0, %xmm0
cvtsi2sd %r13, %xmm0
movsd 0x196f7(%rip), %xmm1    # 0x311a0
divsd %xmm1, %xmm0
xorps %xmm2, %xmm2
cvtsi2sd %r15, %xmm2
addsd %xmm0, %xmm2
xorps %xmm0, %xmm0
cvtsi2sd %r14, %xmm0
divsd %xmm1, %xmm0
xorps %xmm1, %xmm1
cvtsi2sd %rbx, %xmm1
addsd %xmm0, %xmm1
subsd %xmm1, %xmm2
movsd %xmm2, 0x50(%rsp)
leaq 0x19846(%rip), %rdi     # 0x31328
movq %rax, %rsi
xorl %eax, %eax
callq 0x2030
leaq 0x197b3(%rip), %rdi     # 0x312a6
movsd 0x50(%rsp), %xmm0
movb $0x1, %al
callq 0x2030
movq 0x68(%rsp), %rcx
movq 0x8(%rcx), %rax
cmpq (%rcx), %rax
jne 0x17b29
leaq 0x1a017(%rip), %rdi     # 0x31b2c
callq 0x2350
movl %ebp, %edi
movq %r12, %rsi
movq 0x68(%rsp), %rdx
callq 0x16f89
movl %ebp, 0x98(%rsp)
xorpd %xmm0, %xmm0
movapd %xmm0, 0xa0(%rsp)
xorl %eax, %eax
movq %rax, 0xb0(%rsp)
movq %rax, 0x90(%rsp)
movapd %xmm0, 0x80(%rsp)
movq 0x68(%rsp), %rcx
movq (%rcx), %rax
cmpq %rax, 0x8(%rcx)
je 0x17fae
xorpd %xmm0, %xmm0
movsd %xmm0, 0x78(%rsp)
leaq 0x100(%rsp), %r14
movsd %xmm0, 0x70(%rsp)
xorl %r15d, %r15d
movl (%rax,%r15,8), %r13d
movl 0x4(%rax,%r15,8), %ebp
leaq 0x19729(%rip), %rdi     # 0x312be
movl %r13d, %esi
movl %ebp, %edx
xorl %eax, %eax
callq 0x2030
leaq 0x28(%rsp), %rdi
xorl %esi, %esi
callq 0x2360
movq %r12, %rdi
movl %r13d, %esi
movl %ebp, %edx
callq 0x287c6
leaq 0x38(%rsp), %rdi
xorl %esi, %esi
callq 0x2360
xorps %xmm0, %xmm0
cvtsi2sdq 0x28(%rsp), %xmm0
xorps %xmm1, %xmm1
cvtsi2sdq 0x30(%rsp), %xmm1
movsd 0x195be(%rip), %xmm3    # 0x311a0
divsd %xmm3, %xmm1
addsd %xmm0, %xmm1
xorps %xmm0, %xmm0
cvtsi2sdq 0x38(%rsp), %xmm0
xorps %xmm2, %xmm2
cvtsi2sdq 0x40(%rsp), %xmm2
divsd %xmm3, %xmm2
addsd %xmm0, %xmm2
subsd %xmm1, %xmm2
movsd %xmm2, 0x10(%rsp)
movq 0x18(%r12), %rax
movq 0x60(%r12), %rcx
movl (%rax,%r13,4), %eax
imulq $0x568, %rax, %rbx      # imm = 0x568
movl 0xb8(%rcx,%rbx), %eax
movl %eax, 0x24(%rsp)
movl 0x78(%rcx,%rbx), %eax
movl %eax, 0x20(%rsp)
movl $0xa, %esi
movq %r14, %rdi
leaq 0x7(%rsp), %rdx
leaq 0x8(%rsp), %rcx
leaq 0xc0(%rsp), %r8
leaq 0x6(%rsp), %r9
leaq 0x5(%rsp), %rax
pushq %rax
leaq 0xf0(%rsp), %rax
pushq %rax
callq 0xddc0
addq $0x10, %rsp
leaq 0x28(%rsp), %rdi
xorl %esi, %esi
callq 0x2360
addq 0x60(%r12), %rbx
cmpb $0x0, 0x9c(%rsp)
je 0x17ca6
movq %rbx, %rdi
movq %r14, %rsi
movl %r13d, %edx
movl %ebp, %ecx
movl $0xffffffff, %r8d       # imm = 0xFFFFFFFF
callq 0x29994
movl 0x4c(%rsp), %ebx
jmp 0x17cb7
movq %rbx, %rdi
movq %r14, %rsi
movl 0x4c(%rsp), %ebx
movl %ebx, %edx
callq 0x28a12
leaq 0x38(%rsp), %rdi
xorl %esi, %esi
callq 0x2360
xorps %xmm0, %xmm0
cvtsi2sdq 0x28(%rsp), %xmm0
xorps %xmm1, %xmm1
cvtsi2sdq 0x30(%rsp), %xmm1
movsd 0x194c1(%rip), %xmm3    # 0x311a0
divsd %xmm3, %xmm1
addsd %xmm0, %xmm1
xorps %xmm2, %xmm2
cvtsi2sdq 0x38(%rsp), %xmm2
xorps %xmm0, %xmm0
cvtsi2sdq 0x40(%rsp), %xmm0
divsd %xmm3, %xmm0
addsd %xmm2, %xmm0
subsd %xmm1, %xmm0
cmpl $-0x1, %ebx
je 0x17d2a
divsd 0xb8(%rsp), %xmm0
xorps %xmm1, %xmm1
cvtsi2sdl 0x20(%rsp), %xmm1
mulsd %xmm0, %xmm1
movsd %xmm1, 0x18(%rsp)
jmp 0x17d30
movsd %xmm0, 0x18(%rsp)
movsd 0x10(%rsp), %xmm0
addsd 0x18(%rsp), %xmm0
movsd %xmm0, 0x18(%rsp)
movapd 0xf0(%rsp), %xmm1
divsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rsp)
movq 0x88(%rsp), %rsi
cmpq 0x90(%rsp), %rsi
movsd %xmm1, 0xc8(%rsp)
je 0x17d82
movsd %xmm1, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x88(%rsp)
jmp 0x17d94
leaq 0x80(%rsp), %rdi
leaq 0x8(%rsp), %rdx
callq 0x1b82c
movq %r12, %rdi
callq 0x1e160
movq %rax, %rbx
movsd 0x58(%r12), %xmm0
movaps %xmm0, 0x130(%rsp)
movl 0x20(%rsp), %ebp
xorps %xmm0, %xmm0
cvtsi2sdl 0x24(%rsp), %xmm0
movsd %xmm0, 0x50(%rsp)
movq %r12, %rdi
callq 0x1e160
movq %rbx, %xmm0
movq 0x1944a(%rip), %xmm3    # 0x31220
punpckldq %xmm3, %xmm0    # xmm0 = xmm0[0],xmm3[0],xmm0[1],xmm3[1]
movapd 0x1944e(%rip), %xmm1    # 0x31230
subpd %xmm1, %xmm0
movapd %xmm0, %xmm2
unpckhpd %xmm0, %xmm2            # xmm2 = xmm2[1],xmm0[1]
addsd %xmm0, %xmm2
movdqa 0x130(%rsp), %xmm0
punpckldq %xmm3, %xmm0    # xmm0 = xmm0[0],xmm3[0],xmm0[1],xmm3[1]
subpd %xmm1, %xmm0
movapd %xmm1, %xmm4
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
xorps %xmm0, %xmm0
cvtsi2sd %ebp, %xmm0
addsd %xmm2, %xmm1
movsd 0x50(%rsp), %xmm5
addsd %xmm0, %xmm5
divsd %xmm5, %xmm1
divsd %xmm0, %xmm2
mulsd %xmm1, %xmm2
movapd %xmm2, 0x50(%rsp)
movq %rax, %xmm1
punpckldq %xmm3, %xmm1    # xmm1 = xmm1[0],xmm3[0],xmm1[1],xmm3[1]
subpd %xmm4, %xmm1
movapd %xmm1, %xmm2
unpckhpd %xmm1, %xmm2            # xmm2 = xmm2[1],xmm1[1]
addsd %xmm1, %xmm2
divsd %xmm2, %xmm0
leaq 0x19517(%rip), %rdi     # 0x31375
movl %ebp, %esi
movb $0x1, %al
callq 0x2030
movl 0x24(%rsp), %esi
xorps %xmm0, %xmm0
cvtsi2sd %esi, %xmm0
movsd 0x58(%r12), %xmm1
unpcklps 0x193a0(%rip), %xmm1    # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x193a8(%rip), %xmm1    # 0x31230
movapd %xmm1, %xmm2
unpckhpd %xmm1, %xmm2            # xmm2 = xmm2[1],xmm1[1]
addsd %xmm1, %xmm2
divsd %xmm2, %xmm0
leaq 0x194f3(%rip), %rdi     # 0x31392
movb $0x1, %al
callq 0x2030
movl $0xa, %edi
callq 0x22f0
movsd 0x18(%rsp), %xmm0
leaq 0x19432(%rip), %rdi     # 0x312ef
movb $0x1, %al
callq 0x2030
movsd 0x8(%rsp), %xmm0
leaq 0x194de(%rip), %rdi     # 0x313af
movaps 0x50(%rsp), %xmm1
movb $0x2, %al
callq 0x2030
movl $0xa, %edi
callq 0x22f0
movsd 0x18(%rsp), %xmm0
xorps %xmm1, %xmm1
cvtsi2sdl 0x20(%rsp), %xmm1
divsd %xmm1, %xmm0
leaq 0x194ca(%rip), %rdi     # 0x313cb
movb $0x1, %al
callq 0x2030
movsd 0x10(%rsp), %xmm0
leaq 0x193bf(%rip), %rdi     # 0x312d4
movb $0x1, %al
callq 0x2030
movq 0xa8(%rsp), %rsi
cmpq 0xb0(%rsp), %rsi
je 0x17f4c
movq 0x20(%rsp), %rax
movq %rax, 0x10(%rsi)
movupd 0x10(%rsp), %xmm0
movupd %xmm0, (%rsi)
addq $0x18, 0xa8(%rsp)
jmp 0x17f5e
leaq 0xa0(%rsp), %rdi
leaq 0x10(%rsp), %rdx
callq 0x1b6b4
movsd 0x78(%rsp), %xmm0
addsd 0xc8(%rsp), %xmm0
movsd %xmm0, 0x78(%rsp)
movsd 0x70(%rsp), %xmm0
addsd 0x50(%rsp), %xmm0
movsd %xmm0, 0x70(%rsp)
movq %r14, %rdi
callq 0xd8b4
incq %r15
movq 0x68(%rsp), %rcx
movq (%rcx), %rax
movq 0x8(%rcx), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
cmpq %r15, %rcx
ja 0x17b85
jmp 0x17fbe
xorpd %xmm0, %xmm0
movsd %xmm0, 0x70(%rsp)
movsd %xmm0, 0x78(%rsp)
xorps %xmm2, %xmm2
cvtsi2sdl 0x98(%rsp), %xmm2
movsd 0x78(%rsp), %xmm0
divsd %xmm2, %xmm0
movsd 0x70(%rsp), %xmm1
movsd %xmm2, 0x50(%rsp)
divsd %xmm2, %xmm1
leaq 0x193fa(%rip), %rdi     # 0x313e5
movb $0x2, %al
callq 0x2030
leaq 0xd0(%rsp), %rdi
leaq 0x80(%rsp), %rsi
callq 0x1b35e
leaq 0xd0(%rsp), %rdi
leaq 0x100(%rsp), %rsi
leaq 0x8(%rsp), %rdx
leaq 0x10(%rsp), %rcx
leaq 0xc0(%rsp), %r8
leaq 0xe8(%rsp), %r9
callq 0x2fae4
movq 0xd0(%rsp), %rdi
testq %rdi, %rdi
je 0x18053
movq 0xe0(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
movsd 0x8(%rsp), %xmm1
mulsd 0x1918f(%rip), %xmm1    # 0x311f0
xorpd %xmm0, %xmm0
movsd 0x50(%rsp), %xmm2
ucomisd %xmm0, %xmm2
movapd %xmm2, %xmm0
jb 0x1807b
sqrtsd %xmm0, %xmm0
jmp 0x1808c
movsd %xmm1, 0x50(%rsp)
callq 0x21d0
movsd 0x50(%rsp), %xmm1
divsd %xmm0, %xmm1
movsd 0x100(%rsp), %xmm2
movapd %xmm2, %xmm0
subsd %xmm1, %xmm0
addsd %xmm2, %xmm1
leaq 0x1935e(%rip), %rdi     # 0x3140a
movb $0x2, %al
callq 0x2030
movq 0x80(%rsp), %rdi
testq %rdi, %rdi
je 0x180d0
movq 0x90(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
movq 0xa0(%rsp), %rdi
testq %rdi, %rdi
je 0x180ed
movq 0xb0(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
leaq 0x140(%rsp), %rdi
callq 0xd8b4
leaq 0x170(%rsp), %rdi
callq 0x15750
addq $0x418, %rsp            # imm = 0x418
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0xd0(%rsp), %rdi
testq %rdi, %rdi
je 0x1817a
movq 0xe0(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
jmp 0x1817a
jmp 0x18161
movq %rax, %rbx
leaq 0x100(%rsp), %rdi
callq 0xd8b4
jmp 0x181b4
jmp 0x18158
jmp 0x18153
movq %rax, %rbx
jmp 0x181c1
movq %rax, %rbx
jmp 0x181b4
jmp 0x1816a
jmp 0x18161
movq %rax, %rbx
jmp 0x1817a
jmp 0x1816a
jmp 0x1816a
movq %rax, %rbx
leaq 0x100(%rsp), %rdi
callq 0xd8b4
movq 0x80(%rsp), %rdi
testq %rdi, %rdi
je 0x18197
movq 0x90(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
movq 0xa0(%rsp), %rdi
testq %rdi, %rdi
je 0x181b4
movq 0xb0(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
leaq 0x140(%rsp), %rdi
callq 0xd8b4
leaq 0x170(%rsp), %rdi
callq 0x15750
movq %rbx, %rdi
callq 0x23b0