// File: /workspace/github_cpp_makefile_star2_O1/dtsaras[P]GCW/rwgraph.cpp
// Function: Graph::example(Locations*, Locations*, int)
void Graph::example(Locations* usersLocations, Locations* eventsLocations, int P)
{
    ofstream events;
    ofstream all_but_seeds;
    ofstream not_influenced;
    ofstream influenced;
    ofstream graph;
    ofstream * first = new ofstream[P];
    ofstream * second = new ofstream[P];
    vector<int> all_seeds;


    influenced.open("influenced.txt");
    graph.open("graph.txt");

    events.open("example_events.csv");
    events << "id,latitude,longitude" << endl;
    all_but_seeds.open("example_all_but_seeds.csv");
    all_but_seeds << "id,latitude,longitude" << endl;
    not_influenced.open("example_not_influenced.csv");
    not_influenced << "id,latitude,longitude" << endl;



    vector<vector<int>> influenced_ev(P);

    int eds = 0;
    graph << numNodes << " " << numEdges << endl;
    for (int i = 1; i <= numNodes; ++i){
        eds += node_deg[i];
        for (int j = 1; j < node_deg[i]; ++j){
            cout << i << " " << adjList[i][j] << " " << probabilities[i][j] << endl;
            graph << i << " " << adjList[i][j] << " " << probabilities[i][j] << endl;
        }     
    }
    cout << "Number of edges: " << eds << endl;

    for (int p = 0; p < P; ++p){
        first[p].open("example_seeds_event" + to_string(p + 1) + ".csv");
        first[p] << "id,latitude,longitude" << endl;
        second[p].open("example_inf_event" + to_string(p + 1) + ".csv");
        second[p] << "id,latitude,longitude" << endl;
        events << p + 1 << "," << setprecision(12) << eventsLocations->locations[p][0] << "," << setprecision(12) << eventsLocations->locations[p][1] << endl;
        for (int seed: seedSets[p]){
            first[p] << seed << "," << setprecision(12) << usersLocations->locations[seed][0] << "," << setprecision(12) << usersLocations->locations[seed][1] << endl;
            all_seeds.push_back(seed);
        }
    }

    float** aware_all_ev = new float*[P];
    for (int p = 0; p < P; ++p){
        aware_all_ev[p] = new float[getSize() + 1];
        for(int v = 0; v <= getSize(); v++){
            aware_all_ev[p][v] = 0;
        }
    }
                    
    for (int p = 0; p < P; p++){
        if (model == 0)
            BFS_LT(p, aware_all_ev);
        else
            BFS_IC(p, aware_all_ev);
    }


    double max_weight;
    int max_event;
    vector<int>::iterator it;
    for (int v = 1; v <= getSize(); ++v){
        it = find(all_seeds.begin(), all_seeds.end(), v);
        if (all_seeds.end() == it){
            all_but_seeds << v << "," << setprecision(12) << usersLocations->locations[v][0] << "," << setprecision(12) << usersLocations->locations[v][1] << endl;
        }
        max_weight = 0;
        max_event = -1;
        for (int p = 0; p < P; ++p){
            if (aware_all_ev[p][v] == 1 && similarities[v][p] > max_weight){
                max_weight = similarities[v][p];
                max_event = p;
            }
        }
        if (max_event == -1){
            not_influenced << v << "," << setprecision(12) << usersLocations->locations[v][0] << "," << setprecision(12) << usersLocations->locations[v][1] << endl;
        }
        else{
            influenced_ev[max_event].push_back(v);
            second[max_event] << v << "," << setprecision(12) << usersLocations->locations[v][0] << "," << setprecision(12) << usersLocations->locations[v][1] << endl;
        }
    }

    for (int p = 0; p < P; ++p){
        for (int i = 0; i < influenced_ev[p].size(); ++i)
            influenced << influenced_ev[p][i] << " ";
        influenced << endl;
    }

    for (int p = 0; p < P; ++p){
        delete [] aware_all_ev[p];
    }
    delete [] aware_all_ev;
    delete [] first;
    delete [] second;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xae8, %rsp            # imm = 0xAE8
movl %ecx, 0x4(%rsp)
movq %rdx, 0xc0(%rsp)
movq %rsi, 0x30(%rsp)
movq %rdi, %r13
leaq 0x6e8(%rsp), %rdi
callq 0x35a0
leaq 0x4e8(%rsp), %rdi
callq 0x35a0
leaq 0x2e8(%rsp), %rdi
callq 0x35a0
leaq 0xe8(%rsp), %rdi
callq 0x35a0
leaq 0x8e8(%rsp), %rdi
callq 0x35a0
movslq 0x4(%rsp), %r14
movq %r14, %r15
shlq $0x9, %r15
leaq 0x8(%r15), %rax
testl %r14d, %r14d
movq $-0x1, %rbx
cmovnsq %rax, %rbx
movq %rbx, %rdi
callq 0x3030
movq %r14, (%rax)
movq %rax, 0x70(%rsp)
addq $0x8, %rax
movq %rax, 0xb8(%rsp)
movq %r14, 0x40(%rsp)
testl %r14d, %r14d
je 0x115c0
movq %r15, %rbp
negq %rbp
xorl %r12d, %r12d
movq 0xb8(%rsp), %r14
movq %r14, %rdi
callq 0x35a0
addq $-0x200, %r12           # imm = 0xFE00
addq $0x200, %r14            # imm = 0x200
cmpq %r12, %rbp
jne 0x115a5
movq %rbx, %rdi
callq 0x3030
movq %rax, %r12
addq $0x8, %rax
movq %rax, 0x78(%rsp)
movq 0x40(%rsp), %rax
movq %rax, (%r12)
testl %eax, %eax
je 0x11607
negq %r15
xorl %r14d, %r14d
movq 0x78(%rsp), %rbx
movq %rbx, %rdi
callq 0x35a0
addq $-0x200, %r14           # imm = 0xFE00
addq $0x200, %rbx            # imm = 0x200
cmpq %r14, %r15
jne 0x115ec
xorps %xmm0, %xmm0
movaps %xmm0, 0xa0(%rsp)
movq $0x0, 0xb0(%rsp)
leaq 0x7121(%rip), %rsi      # 0x18746
leaq 0xe8(%rsp), %rdi
movl $0x10, %edx
callq 0x3070
leaq 0x7117(%rip), %rsi      # 0x18755
leaq 0x8e8(%rsp), %rdi
movl $0x10, %edx
callq 0x3070
leaq 0x7108(%rip), %rsi      # 0x1875f
leaq 0x6e8(%rsp), %rdi
movl $0x10, %edx
callq 0x3070
leaq 0x7102(%rip), %rsi      # 0x18772
leaq 0x6e8(%rsp), %rbx
movl $0x15, %edx
movq %rbx, %rdi
callq 0x33b0
movq 0x6e8(%rsp), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x3360
movsbl %al, %esi
leaq 0x6e8(%rsp), %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3240
leaq 0x70cb(%rip), %rsi      # 0x18788
leaq 0x4e8(%rsp), %rdi
movl $0x10, %edx
callq 0x3070
leaq 0x709c(%rip), %rsi      # 0x18772
leaq 0x4e8(%rsp), %rbx
movl $0x15, %edx
movq %rbx, %rdi
callq 0x33b0
movq 0x4e8(%rsp), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x3360
movsbl %al, %esi
leaq 0x4e8(%rsp), %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3240
leaq 0x707f(%rip), %rsi      # 0x187a2
leaq 0x2e8(%rsp), %rdi
movl $0x10, %edx
callq 0x3070
leaq 0x7036(%rip), %rsi      # 0x18772
leaq 0x2e8(%rsp), %rbx
movl $0x15, %edx
movq %rbx, %rdi
callq 0x33b0
movq 0x2e8(%rsp), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x3360
movsbl %al, %esi
leaq 0x2e8(%rsp), %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3240
movq %r12, 0xc8(%rsp)
leaq 0xd0(%rsp), %rdi
leaq 0x8(%rsp), %rdx
movq 0x40(%rsp), %rsi
callq 0x12ac2
movl 0x9c8(%r13), %esi
leaq 0x8e8(%rsp), %rdi
callq 0x3230
movq %rax, %rbx
leaq 0x6ee5(%rip), %rsi      # 0x186a4
movl $0x1, %edx
movq %rax, %rdi
callq 0x33b0
movl 0x9cc(%r13), %esi
movq %rbx, %rdi
callq 0x3230
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3360
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3240
cmpl $0x0, 0x9c8(%r13)
je 0x119a7
movl $0x0, 0x28(%rsp)
movl $0x1, %r15d
leaq 0x6e7c(%rip), %rbp      # 0x186a4
movq 0xa20(%r13), %rax
movl (%rax,%r15,4), %eax
movl %eax, 0x38(%rsp)
cmpl $0x2, %eax
jl 0x11986
movl $0x1, %r14d
leaq (%r15,%r15,2), %r12
movq 0xd77f(%rip), %rdi      # 0x1efd0
movl %r15d, %esi
callq 0x35b0
movq %rax, %rbx
movl $0x1, %edx
movq %rax, %rdi
movq %rbp, %rsi
callq 0x33b0
movq 0x9d8(%r13), %rax
movq (%rax,%r12,8), %rax
movl (%rax,%r14,4), %esi
movq %rbx, %rdi
callq 0x35b0
movq %rax, %rbx
movl $0x1, %edx
movq %rax, %rdi
movq %rbp, %rsi
callq 0x33b0
movq 0x9f0(%r13), %rax
movq (%rax,%r12,8), %rax
xorps %xmm0, %xmm0
cvtss2sd (%rax,%r14,4), %xmm0
movq %rbx, %rdi
callq 0x3520
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3360
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3240
leaq 0x8e8(%rsp), %rdi
movl %r15d, %esi
callq 0x35b0
movq %rax, %rbx
movl $0x1, %edx
movq %rax, %rdi
movq %rbp, %rsi
callq 0x33b0
movq 0x9d8(%r13), %rax
movq (%rax,%r12,8), %rax
movl (%rax,%r14,4), %esi
movq %rbx, %rdi
callq 0x35b0
movq %rax, %rbx
movl $0x1, %edx
movq %rax, %rdi
movq %rbp, %rsi
callq 0x33b0
movq 0x9f0(%r13), %rax
movq (%rax,%r12,8), %rax
xorps %xmm0, %xmm0
cvtss2sd (%rax,%r14,4), %xmm0
movq %rbx, %rdi
callq 0x3520
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3360
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3240
incq %r14
movq 0xa20(%r13), %rax
movslq (%rax,%r15,4), %rax
cmpq %rax, %r14
jl 0x1184a
movl 0x38(%rsp), %eax
addl %eax, 0x28(%rsp)
leaq 0x1(%r15), %rax
movl 0x9c8(%r13), %ecx
cmpq %rcx, %r15
movq %rax, %r15
jb 0x11828
jmp 0x119af
movl $0x0, 0x28(%rsp)
movq 0xd61a(%rip), %rdi      # 0x1efd0
leaq 0x6e00(%rip), %rsi      # 0x187bd
movl $0x11, %edx
callq 0x33b0
movq 0x40(%rsp), %r14
movq 0xd5fd(%rip), %rdi      # 0x1efd0
movl 0x28(%rsp), %esi
callq 0x35b0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3360
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3240
movl 0x4(%rsp), %eax
movl %eax, %ecx
movq %rcx, 0x48(%rsp)
testl %eax, %eax
jle 0x11ff7
leaq 0x60(%rsp), %r15
xorl %eax, %eax
leaq 0x6dce(%rip), %rbp      # 0x187f5
movl $0xd1b71759, %r12d      # imm = 0xD1B71759
leaq 0x1(%rax), %rdx
movl $0x1, %ebx
movq %rax, 0x38(%rsp)
cmpq $0x9, %rax
leaq 0x80(%rsp), %r14
jb 0x11a85
movl $0x4, %ebx
movl %edx, %eax
cmpl $0x63, %eax
jbe 0x11a7e
cmpl $0x3e7, %eax            # imm = 0x3E7
jbe 0x11a83
cmpl $0x2710, %eax           # imm = 0x2710
jb 0x11a85
movl %eax, %ecx
imulq %r12, %rcx
shrq $0x2d, %rcx
addl $0x4, %ebx
cmpl $0x1869f, %eax          # imm = 0x1869F
movl %ecx, %eax
ja 0x11a50
addl $-0x3, %ebx
jmp 0x11a85
addl $-0x2, %ebx
jmp 0x11a85
decl %ebx
movq %rdx, 0x28(%rsp)
movl %ebx, %esi
leaq 0x90(%rsp), %rax
movq %rax, 0x80(%rsp)
movq %r14, %rdi
movl $0x2d, %edx
callq 0x33d0
movq 0x80(%rsp), %rdi
movl %ebx, %esi
movq 0x28(%rsp), %rdx
callq 0xaf51
movl $0x13, %r8d
movq %r14, %rdi
xorl %esi, %esi
xorl %edx, %edx
leaq 0x6cfe(%rip), %rcx      # 0x187cf
callq 0x33a0
movq %r15, 0x50(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
leaq 0x18(%rsp), %rbx
je 0x11afe
movq %rdx, 0x50(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x60(%rsp)
jmp 0x11b05
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
movq %rdx, 0x58(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x50(%rsp), %rdi
leaq 0x6c8f(%rip), %rsi      # 0x187b8
callq 0x3650
movq %rbx, 0x8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x11b51
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x11b57
movups (%rcx), %xmm0
movups %xmm0, (%rbx)
movq 0x38(%rsp), %r14
shlq $0x9, %r14
movq 0xb8(%rsp), %rdx
leaq (%rdx,%r14), %rbx
movq 0x8(%rax), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq %rbx, %rdi
leaq 0x8(%rsp), %rsi
movl $0x10, %edx
callq 0x3170
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x11baa
callq 0x3340
movq 0x50(%rsp), %rdi
cmpq %r15, %rdi
je 0x11bb9
callq 0x3340
movq 0x80(%rsp), %rdi
leaq 0x90(%rsp), %rax
cmpq %rax, %rdi
je 0x11bd3
callq 0x3340
movl $0x15, %edx
movq %rbx, %rdi
leaq 0x6b90(%rip), %rsi      # 0x18772
callq 0x33b0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3360
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3240
movl $0x1, %r15d
cmpq $0x9, 0x38(%rsp)
jb 0x11c60
movl $0x4, %r15d
movq 0x28(%rsp), %rax
cmpl $0x63, %eax
jbe 0x11c57
cmpl $0x3e7, %eax            # imm = 0x3E7
jbe 0x11c5d
cmpl $0x2710, %eax           # imm = 0x2710
jb 0x11c60
movl %eax, %ecx
imulq %r12, %rcx
shrq $0x2d, %rcx
addl $0x4, %r15d
cmpl $0x1869f, %eax          # imm = 0x1869F
movl %ecx, %eax
ja 0x11c27
addl $-0x3, %r15d
jmp 0x11c60
addl $-0x2, %r15d
jmp 0x11c60
decl %r15d
movl %r15d, %esi
leaq 0x90(%rsp), %rax
movq %rax, 0x80(%rsp)
leaq 0x80(%rsp), %r12
movq %r12, %rdi
movl $0x2d, %edx
callq 0x33d0
movq 0x80(%rsp), %rdi
movl %r15d, %esi
movq 0x28(%rsp), %rdx
callq 0xaf51
movl $0x11, %r8d
movq %r12, %rdi
xorl %esi, %esi
xorl %edx, %edx
leaq 0x6b32(%rip), %rcx      # 0x187e3
callq 0x33a0
leaq 0x60(%rsp), %r15
movq %r15, 0x50(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x11cde
movq %rdx, 0x50(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x60(%rsp)
jmp 0x11ce5
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
movq %rdx, 0x58(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x50(%rsp), %rdi
leaq 0x6aaf(%rip), %rsi      # 0x187b8
callq 0x3650
leaq 0x18(%rsp), %rsi
movq %rsi, 0x8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x11d36
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x11d3c
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
addq 0x78(%rsp), %r14
movq 0x8(%rax), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq %r14, %rdi
leaq 0x8(%rsp), %rsi
movl $0x10, %edx
callq 0x3170
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x11d7f
callq 0x3340
movq 0x50(%rsp), %rdi
cmpq %r15, %rdi
je 0x11d8e
callq 0x3340
movq 0x80(%rsp), %rdi
leaq 0x90(%rsp), %rax
cmpq %rax, %rdi
je 0x11da8
callq 0x3340
movl $0x15, %edx
movq %r14, %rdi
leaq 0x69bb(%rip), %rsi      # 0x18772
callq 0x33b0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x3360
movsbl %al, %esi
movq %r14, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3240
leaq 0x6e8(%rsp), %rdi
movq 0x28(%rsp), %rsi
callq 0x35b0
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
movq %rbp, %rsi
callq 0x33b0
movq (%r14), %rax
movq -0x18(%rax), %rax
movq $0xc, 0x8(%r14,%rax)
movq 0xc0(%rsp), %rax
movq (%rax), %rax
movq 0x38(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movsd (%rax), %xmm0
movq %r14, %rdi
callq 0x3520
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
movq %rbp, %rsi
callq 0x33b0
movq (%r14), %rax
movq -0x18(%rax), %rax
movq $0xc, 0x8(%r14,%rax)
movq 0xc0(%rsp), %rax
movq (%rax), %rax
movq 0x38(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movsd 0x8(%rax), %xmm0
movq %r14, %rdi
callq 0x3520
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x3360
movsbl %al, %esi
movq %r14, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3240
movq 0xad0(%r13), %rax
movq 0x38(%rsp), %rcx
leaq (%rcx,%rcx,2), %rcx
shlq $0x4, %rcx
leaq (%rax,%rcx), %r12
addq $0x8, %r12
movq 0x10(%r12), %r14
cmpq %r12, %r14
je 0x11fd7
movl 0x20(%r14), %esi
movl %esi, 0x8(%rsp)
movq %rbx, %rdi
callq 0x35b0
movq %rax, %r15
movl $0x1, %edx
movq %rax, %rdi
movq %rbp, %rsi
callq 0x33b0
movq (%r15), %rax
movq -0x18(%rax), %rax
movq $0xc, 0x8(%r15,%rax)
movq 0x30(%rsp), %rax
movq (%rax), %rax
movslq 0x8(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movsd (%rax), %xmm0
movq %r15, %rdi
callq 0x3520
movq %rax, %r15
movl $0x1, %edx
movq %rax, %rdi
movq %rbp, %rsi
callq 0x33b0
movq (%r15), %rax
movq -0x18(%rax), %rax
movq $0xc, 0x8(%r15,%rax)
movq 0x30(%rsp), %rax
movq (%rax), %rax
movslq 0x8(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movsd 0x8(%rax), %xmm0
movq %r15, %rdi
callq 0x3520
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x3360
movsbl %al, %esi
movq %r15, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3240
movq 0xa8(%rsp), %rsi
cmpq 0xb0(%rsp), %rsi
je 0x11fb1
movl 0x8(%rsp), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0xa8(%rsp)
jmp 0x11fc3
leaq 0xa0(%rsp), %rdi
leaq 0x8(%rsp), %rdx
callq 0xd4bc
movq %r14, %rdi
callq 0x33c0
movq %rax, %r14
cmpq %r12, %rax
jne 0x11ed0
movq 0x28(%rsp), %rax
cmpq 0x48(%rsp), %rax
movq 0x40(%rsp), %r14
leaq 0x60(%rsp), %r15
movl $0xd1b71759, %r12d      # imm = 0xD1B71759
jne 0x11a2d
shlq $0x3, %r14
movl 0x4(%rsp), %ebp
testl %ebp, %ebp
movq $-0x1, %rdi
cmovnsq %r14, %rdi
callq 0x3030
movq %rax, %rbx
testl %ebp, %ebp
jle 0x12069
movslq 0x9c8(%r13), %r12
cmpq $-0x1, %r12
leaq 0x4(,%r12,4), %rax
movq $-0x1, %r14
cmovgeq %rax, %r14
leal 0x1(%r12), %r15d
shlq $0x2, %r15
xorl %ebp, %ebp
movq %r14, %rdi
callq 0x3030
movq %rax, (%rbx,%rbp,8)
testl %r12d, %r12d
js 0x1205f
movq %rax, %rdi
xorl %esi, %esi
movq %r15, %rdx
callq 0x31c0
incq %rbp
cmpq %rbp, 0x48(%rsp)
jne 0x12041
cmpl $0x0, 0x4(%rsp)
movq 0x48(%rsp), %r12
jle 0x120a5
xorl %ebp, %ebp
cmpl $0x0, 0xa60(%r13)
je 0x12090
movq %r13, %rdi
movl %ebp, %esi
movq %rbx, %rdx
callq 0x10858
jmp 0x1209d
movq %r13, %rdi
movl %ebp, %esi
movq %rbx, %rdx
callq 0x10c22
incl %ebp
cmpl %ebp, 0x4(%rsp)
jne 0x12077
movl $0x1, 0x8(%rsp)
cmpl $0x0, 0x9c8(%r13)
jle 0x123cc
leaq 0x8(%rsp), %r14
leaq 0x672e(%rip), %rbp      # 0x187f5
movq 0xa0(%rsp), %rdi
movq 0xa8(%rsp), %rsi
movq %r14, %rdx
callq 0x14730
cmpq %rax, 0xa8(%rsp)
jne 0x121a9
movl 0x8(%rsp), %esi
leaq 0x4e8(%rsp), %rdi
callq 0x35b0
movq %rax, %r15
movl $0x1, %edx
movq %rax, %rdi
movq %rbp, %rsi
callq 0x33b0
movq (%r15), %rax
movq -0x18(%rax), %rax
movq $0xc, 0x8(%r15,%rax)
movq 0x30(%rsp), %rax
movq (%rax), %rax
movslq 0x8(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movsd (%rax), %xmm0
movq %r15, %rdi
callq 0x3520
movq %rax, %r15
movl $0x1, %edx
movq %rax, %rdi
movq %rbp, %rsi
callq 0x33b0
movq (%r15), %rax
movq -0x18(%rax), %rax
movq $0xc, 0x8(%r15,%rax)
movq 0x30(%rsp), %rax
movq (%rax), %rax
movslq 0x8(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movsd 0x8(%rax), %xmm0
movq %r15, %rdi
callq 0x3520
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x3360
movsbl %al, %esi
movq %r15, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3240
cmpl $0x0, 0x4(%rsp)
jle 0x12200
movslq 0x8(%rsp), %rax
leaq (%rax,%rax,2), %rcx
shlq $0x3, %rcx
addq 0xae0(%r13), %rcx
xorps %xmm0, %xmm0
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
xorl %esi, %esi
movq (%rbx,%rsi,8), %rdi
movss (%rdi,%rax,4), %xmm1
ucomiss 0x5ede(%rip), %xmm1     # 0x180bc
jne 0x121f6
jp 0x121f6
movq (%rcx), %rdi
movsd (%rdi,%rsi,8), %xmm1
ucomisd %xmm0, %xmm1
jbe 0x121f6
movapd %xmm1, %xmm0
movl %esi, %edx
incq %rsi
cmpq %rsi, %r12
jne 0x121ce
jmp 0x12205
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
cmpl $-0x1, %edx
je 0x1223e
movslq %edx, %r15
movq 0xd0(%rsp), %rax
leaq (%r15,%r15,2), %rcx
leaq (%rax,%rcx,8), %rdi
movq 0x8(%rdi), %rsi
cmpq 0x10(%rdi), %rsi
je 0x122ec
movl 0x8(%rsp), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rdi)
jmp 0x122f4
movl 0x8(%rsp), %esi
leaq 0x2e8(%rsp), %rdi
callq 0x35b0
movq %rax, %r15
movl $0x1, %edx
movq %rax, %rdi
movq %rbp, %rsi
callq 0x33b0
movq (%r15), %rax
movq -0x18(%rax), %rax
movq $0xc, 0x8(%r15,%rax)
movq 0x30(%rsp), %rax
movq (%rax), %rax
movslq 0x8(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movsd (%rax), %xmm0
movq %r15, %rdi
callq 0x3520
movq %rax, %r15
movl $0x1, %edx
movq %rax, %rdi
movq %rbp, %rsi
callq 0x33b0
movq (%r15), %rax
movq -0x18(%rax), %rax
movq $0xc, 0x8(%r15,%rax)
movq 0x30(%rsp), %rax
movq (%rax), %rax
movslq 0x8(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movsd 0x8(%rax), %xmm0
movq %r15, %rdi
callq 0x3520
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x3360
jmp 0x123a1
movq %r14, %rdx
callq 0xd4bc
shlq $0x9, %r15
addq 0x78(%rsp), %r15
movl 0x8(%rsp), %esi
movq %r15, %rdi
callq 0x35b0
movq %rax, %r15
movl $0x1, %edx
movq %rax, %rdi
movq %rbp, %rsi
callq 0x33b0
movq (%r15), %rax
movq -0x18(%rax), %rax
movq $0xc, 0x8(%r15,%rax)
movq 0x30(%rsp), %rax
movq (%rax), %rax
movslq 0x8(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movsd (%rax), %xmm0
movq %r15, %rdi
callq 0x3520
movq %rax, %r15
movl $0x1, %edx
movq %rax, %rdi
movq %rbp, %rsi
callq 0x33b0
movq (%r15), %rax
movq -0x18(%rax), %rax
movq $0xc, 0x8(%r15,%rax)
movq 0x30(%rsp), %rax
movq (%rax), %rax
movslq 0x8(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movsd 0x8(%rax), %xmm0
movq %r15, %rdi
callq 0x3520
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x3360
movsbl %al, %esi
movq %r15, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3240
movl 0x8(%rsp), %eax
leal 0x1(%rax), %ecx
movl %ecx, 0x8(%rsp)
cmpl 0x9c8(%r13), %eax
jl 0x120c7
cmpl $0x0, 0x4(%rsp)
movq 0xc8(%rsp), %rbp
jle 0x1248e
xorl %r15d, %r15d
leaq 0x62bb(%rip), %r14      # 0x186a4
movq 0xd0(%rsp), %rcx
leaq (%r15,%r15,2), %r12
movq (%rcx,%r12,8), %rax
cmpq %rax, 0x8(%rcx,%r12,8)
je 0x12444
xorl %r13d, %r13d
movl (%rax,%r13,4), %esi
leaq 0xe8(%rsp), %rdi
callq 0x35b0
movl $0x1, %edx
movq %rax, %rdi
movq %r14, %rsi
callq 0x33b0
incq %r13
movq 0xd0(%rsp), %rcx
movq (%rcx,%r12,8), %rax
movq 0x8(%rcx,%r12,8), %rcx
subq %rax, %rcx
sarq $0x2, %rcx
cmpq %r13, %rcx
ja 0x12403
movq 0xe8(%rsp), %rax
movq -0x18(%rax), %rdi
leaq 0xe8(%rsp), %rax
addq %rax, %rdi
movl $0xa, %esi
callq 0x3360
movsbl %al, %esi
leaq 0xe8(%rsp), %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3240
incq %r15
movq 0x48(%rsp), %r12
cmpq %r12, %r15
jne 0x123e9
cmpl $0x0, 0x4(%rsp)
movq 0x70(%rsp), %r13
jle 0x124b3
xorl %r14d, %r14d
movq (%rbx,%r14,8), %rdi
testq %rdi, %rdi
je 0x124ab
callq 0x3410
incq %r14
cmpq %r14, %r12
jne 0x1249d
movq %rbx, %rdi
callq 0x3410
movq (%r13), %rbx
testq %rbx, %rbx
je 0x12517
shlq $0x9, %rbx
movq 0xcaf1(%rip), %rax      # 0x1efc0
movq (%rax), %r14
movq 0x18(%rax), %r15
leaq (%rbx,%r13), %r12
addq $-0x1f8, %r12           # imm = 0xFE08
negq %rbx
movq %r14, (%r12)
movq -0x18(%r14), %rax
movq %r15, (%r12,%rax)
leaq 0x8(%r12), %rdi
callq 0x32f0
leaq 0xf8(%r12), %rdi
callq 0x3120
addq $-0x200, %r12           # imm = 0xFE00
addq $0x200, %rbx            # imm = 0x200
jne 0x124e4
movq %r13, %rdi
callq 0x3410
movq (%rbp), %rbx
testq %rbx, %rbx
je 0x1257b
shlq $0x9, %rbx
movq 0xca8d(%rip), %rax      # 0x1efc0
movq (%rax), %r14
movq 0x18(%rax), %r15
leaq (%rbx,%rbp), %r12
addq $-0x1f8, %r12           # imm = 0xFE08
negq %rbx
movq %r14, (%r12)
movq -0x18(%r14), %rax
movq %r15, (%r12,%rax)
leaq 0x8(%r12), %rdi
callq 0x32f0
leaq 0xf8(%r12), %rdi
callq 0x3120
addq $-0x200, %r12           # imm = 0xFE00
addq $0x200, %rbx            # imm = 0x200
jne 0x12548
movq %rbp, %rdi
callq 0x3410
leaq 0xd0(%rsp), %rdi
callq 0xaf12
movq 0xa0(%rsp), %rdi
testq %rdi, %rdi
je 0x125a2
callq 0x3340
movq 0xca17(%rip), %rax      # 0x1efc0
movq (%rax), %rbx
movq 0x18(%rax), %r14
leaq 0x8f0(%rsp), %rdi
movq %rbx, -0x8(%rdi)
movq -0x18(%rbx), %rax
movq %r14, 0x8e8(%rsp,%rax)
callq 0x32f0
movl $0xf8, %r15d
leaq 0x8e8(%rsp), %rdi
addq %r15, %rdi
callq 0x3120
leaq 0xf0(%rsp), %rdi
movq %rbx, -0x8(%rdi)
movq -0x18(%rbx), %rax
movq %r14, 0xe8(%rsp,%rax)
callq 0x32f0
leaq 0xe8(%rsp), %rdi
addq %r15, %rdi
callq 0x3120
leaq 0x2f0(%rsp), %rdi
movq %rbx, -0x8(%rdi)
movq -0x18(%rbx), %rax
movq %r14, 0x2e8(%rsp,%rax)
callq 0x32f0
leaq 0x2e8(%rsp), %rdi
addq %r15, %rdi
callq 0x3120
leaq 0x4f0(%rsp), %rdi
movq %rbx, -0x8(%rdi)
movq -0x18(%rbx), %rax
movq %r14, 0x4e8(%rsp,%rax)
callq 0x32f0
leaq 0x4e8(%rsp), %rdi
addq %r15, %rdi
callq 0x3120
leaq 0x6f0(%rsp), %rdi
movq %rbx, -0x8(%rdi)
movq -0x18(%rbx), %rax
movq %r14, 0x6e8(%rsp,%rax)
callq 0x32f0
leaq 0x6e8(%rsp), %rdi
addq %r15, %rdi
callq 0x3120
addq $0xae8, %rsp            # imm = 0xAE8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x127b9
jmp 0x126df
jmp 0x126b2
movq %rax, %rbx
jmp 0x127db
movq %rax, %rbx
jmp 0x127e8
movq %rax, %rbx
jmp 0x127f5
movq %rax, %rbx
jmp 0x12802
movq %rax, %rbx
jmp 0x1280f
jmp 0x127b9
movq %rax, %rbx
jmp 0x127c9
jmp 0x127b9
jmp 0x126f7
jmp 0x126fc
jmp 0x12701
jmp 0x127b9
movq %rax, %rbx
jmp 0x1272c
movq %rax, %rbx
jmp 0x12718
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x12718
callq 0x3340
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x1272c
callq 0x3340
movq 0x80(%rsp), %rdi
leaq 0x90(%rsp), %rax
cmpq %rax, %rdi
je 0x127bc
callq 0x3340
jmp 0x127bc
jmp 0x127b9
jmp 0x127b9
jmp 0x127b9
movq %rax, %rbx
testq %r14, %r14
je 0x12775
negq %r14
movq %r12, %r15
addq $-0x1f8, %r15           # imm = 0xFE08
leaq (%r15,%r14), %rdi
callq 0x34a0
addq $-0x200, %r14           # imm = 0xFE00
jne 0x12763
movq %r12, %rdi
jmp 0x127a8
movq %rax, %rbx
testq %r12, %r12
je 0x127a3
negq %r12
movq 0x70(%rsp), %r14
addq $-0x1f8, %r14           # imm = 0xFE08
leaq (%r14,%r12), %rdi
callq 0x34a0
addq $-0x200, %r12           # imm = 0xFE00
jne 0x12791
movq 0x70(%rsp), %rdi
callq 0x3410
jmp 0x127db
jmp 0x127b9
jmp 0x127b9
jmp 0x127b9
jmp 0x127b9
jmp 0x127b9
movq %rax, %rbx
leaq 0xd0(%rsp), %rdi
callq 0xaf12
movq 0xa0(%rsp), %rdi
testq %rdi, %rdi
je 0x127db
callq 0x3340
leaq 0x8e8(%rsp), %rdi
callq 0x34a0
leaq 0xe8(%rsp), %rdi
callq 0x34a0
leaq 0x2e8(%rsp), %rdi
callq 0x34a0
leaq 0x4e8(%rsp), %rdi
callq 0x34a0
leaq 0x6e8(%rsp), %rdi
callq 0x34a0
movq %rbx, %rdi
callq 0x35c0