// File: /workspace/github_cpp_makefile_star2_O1/bobverity[P]MavericK/writeOut.cpp
// Function: printQmatrix_pop(globals&, int)
void printQmatrix_pop(globals &globals, int Kindex) {
    int K = globals.Kmin+Kindex;
    
    if (globals.outputQmatrix_structureFormat_on) {
        
        // open outputQmatrix_pop filestream for this K
        string s = globals.outputQmatrix_pop_filePath;
        s.erase(end(s)-4,end(s));
        s = s + "_K" + to_string((long long)K) + ".txt";
        globals.outputQmatrix_pop_fileStream = safe_ofstream(s,globals.outputLog_on, globals.outputLog_fileStream);
        
        // write headers
        /*
        globals.outputQmatrix_pop_fileStream << "Given    Inferred Clusters       Number of\n";
        globals.outputQmatrix_pop_fileStream << " Pop       1";
        for (int k=1; k<K; k++) {
            if ((k+1)<10)
                globals.outputQmatrix_pop_fileStream << " ";
            globals.outputQmatrix_pop_fileStream << "     " << k+1;
        }
        globals.outputQmatrix_pop_fileStream << "      Individuals\n\n";
        */
        
        // write results
        for (int i=0; i<int(globals.uniquePops.size()); i++) {
            
            // given pop
            if (globals.uniquePops[i].length()<3)
                globals.outputQmatrix_pop_fileStream << " ";
            if (globals.uniquePops[i].length()<2)
                globals.outputQmatrix_pop_fileStream << " ";
            globals.outputQmatrix_pop_fileStream << globals.uniquePops[i] << ":     ";
            
            // probabilities
            for (int k=0; k<K; k++) {
                char * buffer = new char[256];
                sprintf(buffer, "%.3f", my_round(globals.Qmatrix_pop[Kindex][i][k]*1000)/1000.0);
                string s = buffer;
                delete [] buffer;
                globals.outputQmatrix_pop_fileStream << s << " ";
            }
            
            // number of individuals in each population
            globals.outputQmatrix_pop_fileStream << "     ";
            if (globals.uniquePop_counts[i]<100)
                globals.outputQmatrix_pop_fileStream << " ";
            if (globals.uniquePop_counts[i]<10)
                globals.outputQmatrix_pop_fileStream << " ";
            globals.outputQmatrix_pop_fileStream << globals.uniquePop_counts[i];
            
            globals.outputQmatrix_pop_fileStream << "\n";
        }
        
    } // end of if outputQmatrix_structureFormat_on=true
        
    // open outputQmatrix_pop filestream for this K
    string s = globals.outputQmatrix_pop_filePath;
    s.erase(end(s)-4,end(s));
    s = s + "_K" + to_string((long long)K) + ".csv";
    globals.outputQmatrix_pop_fileStream = safe_ofstream(s,globals.outputLog_on, globals.outputLog_fileStream);
    
    // write headers
    globals.outputQmatrix_pop_fileStream << "given_population,members";
    for (int k=0; k<K; k++)
        globals.outputQmatrix_pop_fileStream << ",deme" << k+1;
    globals.outputQmatrix_pop_fileStream << "\n";
    
    // write results
    for (int i=0; i<int(globals.uniquePops.size()); i++) {
        
        // given population and number of individuals
        globals.outputQmatrix_pop_fileStream << globals.uniquePops[i] << "," << globals.uniquePop_counts[i];
        
        // probabilities
        for (int k=0; k<K; k++) {
            char * buffer = new char[256];
            sprintf(buffer, "%.3f", my_round(globals.Qmatrix_pop[Kindex][i][k]*1000)/1000.0);
            string s = buffer;
            delete [] buffer;
            globals.outputQmatrix_pop_fileStream << "," << s;
        }
        
        globals.outputQmatrix_pop_fileStream << "\n";
        
    }
    
    globals.outputQmatrix_pop_fileStream.flush();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2e8, %rsp            # imm = 0x2E8
movl 0x2bc8(%rdi), %ecx
movl %esi, 0x1c(%rsp)
addl %esi, %ecx
cmpb $0x1, 0x2c4d(%rdi)
leaq 0x90(%rsp), %rax
movl %ecx, 0xc(%rsp)
movslq %ecx, %rbx
movq %rdi, (%rsp)
jne 0x35476
movq %rbx, 0xa0(%rsp)
leaq 0x80(%rsp), %r14
movq %rax, (%r14)
movq 0x380(%rdi), %rsi
movq 0x388(%rdi), %rdx
addq %rsi, %rdx
movq %r14, %rdi
callq 0xbe10
movq (%r14), %rax
movq 0x8(%r14), %rcx
leaq -0x4(%rcx), %rdx
movq %rdx, 0x8(%r14)
movb $0x0, -0x4(%rax,%rcx)
movq (%r14), %rsi
leaq 0x70(%rsp), %rbx
movq %rbx, -0x10(%rbx)
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq 0x60(%rsp), %rdi
callq 0xbe10
leaq 0x498a(%rip), %rsi      # 0x3987e
leaq 0x60(%rsp), %rdi
callq 0x35e0
movq 0xa0(%rsp), %rax
movq %rax, %r14
negq %r14
cmovsq %rax, %r14
movl $0x1, %r15d
cmpq $0xa, %r14
jb 0x34f70
movl $0x4, %r15d
movabsq $0x346dc5d63886594b, %rsi # imm = 0x346DC5D63886594B
movq %r14, %rcx
cmpq $0x63, %rcx
jbe 0x34f67
cmpq $0x3e7, %rcx            # imm = 0x3E7
jbe 0x34f6d
cmpq $0x2710, %rcx           # imm = 0x2710
jb 0x34f70
movq %rcx, %rax
mulq %rsi
shrq $0xb, %rdx
addl $0x4, %r15d
cmpq $0x1869f, %rcx          # imm = 0x1869F
movq %rdx, %rcx
ja 0x34f2f
addl $-0x3, %r15d
jmp 0x34f70
addl $-0x2, %r15d
jmp 0x34f70
decl %r15d
movq 0xa0(%rsp), %r12
shrq $0x3f, %r12
leal (%r12,%r15), %esi
leaq 0x50(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x40(%rsp), %rdi
movl $0x2d, %edx
callq 0x33a0
addq 0x40(%rsp), %r12
movq %r12, %rdi
movl %r15d, %esi
movq %r14, %rdx
callq 0x6dda
movq 0x60(%rsp), %rcx
movq 0x68(%rsp), %r8
movq 0x48(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %esi
cmpq %rbx, %rcx
je 0x34fcd
movq 0x70(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x34fe8
movl $0xf, %esi
cmpq %r13, 0x40(%rsp)
je 0x34fe3
movq 0x50(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x34ff9
movq 0x40(%rsp), %rsi
leaq 0x60(%rsp), %rdi
callq 0x30e0
jmp 0x35007
leaq 0x40(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x3370
leaq 0x30(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x3502b
movq %rsi, 0x20(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x30(%rsp)
jmp 0x35033
movupd (%rcx), %xmm0
movupd %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x28(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x2297(%rip), %rsi      # 0x372ee
leaq 0x20(%rsp), %rdi
callq 0x35e0
leaq 0xf8(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x35091
movq %rdx, 0xe8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xf8(%rsp)
jmp 0x3509a
movupd (%rcx), %xmm0
movupd %xmm0, (%r15)
movq 0x8(%rax), %rdx
leaq 0xe8(%rsp), %r14
movq %rdx, 0x8(%r14)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x80(%rsp), %rdi
movq %r14, %rsi
callq 0x33e0
movq (%r14), %rdi
cmpq %r15, %rdi
je 0x350d6
callq 0x3310
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
movq (%rsp), %r14
je 0x350ed
callq 0x3310
movq 0x40(%rsp), %rdi
cmpq %r13, %rdi
je 0x350fc
callq 0x3310
movq 0x60(%rsp), %rdi
cmpq %rbx, %rdi
je 0x3510b
callq 0x3310
leaq 0xd8(%rsp), %rbx
movq %rbx, -0x10(%rbx)
movq 0x80(%rsp), %rsi
movq 0x88(%rsp), %rdx
addq %rsi, %rdx
leaq 0xc8(%rsp), %rdi
callq 0xbe10
movzbl 0x2c3c(%r14), %edx
leaq 0x970(%r14), %rcx
leaq 0xe8(%rsp), %r12
leaq 0xc8(%rsp), %rsi
movq %r12, %rdi
callq 0x2f394
leaq 0xf70(%r14), %r15
movq 0xf70(%r14), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movq %r14, %r13
leaq 0xf0(%rsp), %r14
movq -0x8(%r14), %rax
addq -0x18(%rax), %r12
movq %r12, %rsi
callq 0x35d0
leaq 0xf78(%r13), %rdi
movq %r14, %rsi
callq 0x3340
movq 0xcdfc(%rip), %rax      # 0x41fa0
movq (%rax), %rcx
movq 0x18(%rax), %rax
leaq 0x1e0(%rsp), %r12
movq %rcx, -0xf8(%r12)
movq -0x18(%rcx), %rcx
movq %rax, 0xe8(%rsp,%rcx)
movq %r14, %rdi
callq 0x32b0
movq %r12, %rdi
callq 0x30f0
movq 0xc8(%rsp), %rdi
cmpq %rbx, %rdi
je 0x351e9
callq 0x3310
movq (%rsp), %r14
movq 0x2c88(%r14), %rax
movq 0x2c90(%r14), %rcx
subq %rax, %rcx
shrq $0x5, %rcx
testl %ecx, %ecx
jle 0x35449
movslq 0x1c(%rsp), %rcx
movl 0xc(%rsp), %ebx
xorl %r13d, %r13d
leaq (%rcx,%rcx,2), %r12
movq %r13, %r14
shlq $0x5, %r14
cmpq $0x2, 0x8(%rax,%r14)
ja 0x3523d
movl $0x1, %edx
movq %r15, %rdi
leaq 0x484b(%rip), %rsi      # 0x39a83
callq 0x3390
movq (%rsp), %rax
movq 0x2c88(%rax), %rax
cmpq $0x1, 0x8(%rax,%r14)
ja 0x35264
movl $0x1, %edx
movq %r15, %rdi
leaq 0x4824(%rip), %rsi      # 0x39a83
callq 0x3390
movq (%rsp), %rax
movq 0x2c88(%rax), %rax
movq (%rax,%r14), %rsi
movq 0x8(%rax,%r14), %rdx
movq %r15, %rdi
callq 0x3390
movl $0x6, %edx
movq %rax, %rdi
leaq 0x47ef(%rip), %rsi      # 0x39a7e
callq 0x3390
movq %r13, 0x10(%rsp)
cmpl $0x0, 0xc(%rsp)
jle 0x35391
movq 0x10(%rsp), %rax
leaq (%rax,%rax,2), %r14
xorl %ebp, %ebp
movl $0x100, %edi            # imm = 0x100
callq 0x3030
movsd 0x4447(%rip), %xmm1     # 0x39708
movq %rax, %r13
movq (%rsp), %rax
movq 0x2dd0(%rax), %rax
movq (%rax,%r12,8), %rax
movq (%rax,%r14,8), %rax
movsd (%rax,%rbp,8), %xmm0
mulsd %xmm1, %xmm0
callq 0x1aa2c
movsd 0x441b(%rip), %xmm1     # 0x39708
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
divsd %xmm1, %xmm0
movq %r13, %rdi
leaq 0x4769(%rip), %rsi      # 0x39a6b
movb $0x1, %al
callq 0x3080
leaq 0xf8(%rsp), %rax
movq %rax, 0xe8(%rsp)
movq %r13, %rdi
callq 0x3140
movq %r13, %rdx
addq %rax, %rdx
leaq 0xe8(%rsp), %rdi
movq %r13, %rsi
callq 0x6e56
movq %r13, %rdi
callq 0x33f0
movq 0xe8(%rsp), %rsi
movq 0xf0(%rsp), %rdx
movq %r15, %rdi
callq 0x3390
movl $0x1, %edx
movq %rax, %rdi
leaq 0x471d(%rip), %rsi      # 0x39a83
callq 0x3390
movq 0xe8(%rsp), %rdi
leaq 0xf8(%rsp), %rax
cmpq %rax, %rdi
je 0x35385
callq 0x3310
incq %rbp
cmpq %rbp, %rbx
jne 0x352af
movl $0x5, %edx
movq %r15, %rdi
leaq 0x46df(%rip), %rsi      # 0x39a7f
callq 0x3390
movq 0x10(%rsp), %r13
movq (%rsp), %rax
movq 0x2ca0(%rax), %rax
cmpl $0x63, (%rax,%r13,4)
jg 0x353d0
movl $0x1, %edx
movq %r15, %rdi
leaq 0x46b8(%rip), %rsi      # 0x39a83
callq 0x3390
movq (%rsp), %rax
movq 0x2ca0(%rax), %rax
cmpl $0x9, (%rax,%r13,4)
jg 0x353f6
movl $0x1, %edx
movq %r15, %rdi
leaq 0x4692(%rip), %rsi      # 0x39a83
callq 0x3390
movq (%rsp), %rax
movq 0x2ca0(%rax), %rax
movl (%rax,%r13,4), %esi
movq %r15, %rdi
callq 0x3550
movl $0x1, %edx
movq %r15, %rdi
leaq 0x2506(%rip), %rsi      # 0x37922
callq 0x3390
incq %r13
movq (%rsp), %r14
movq 0x2c88(%r14), %rax
movq 0x2c90(%r14), %rcx
subq %rax, %rcx
shrq $0x5, %rcx
movslq %ecx, %rcx
cmpq %rcx, %r13
jl 0x3521a
movq 0x80(%rsp), %rdi
leaq 0x90(%rsp), %rax
cmpq %rax, %rdi
je 0x35463
callq 0x3310
leaq 0x90(%rsp), %rax
movq %r14, %rdi
movq 0xa0(%rsp), %rbx
leaq 0x80(%rsp), %r14
movq %rax, (%r14)
movq 0x380(%rdi), %rsi
movq 0x388(%rdi), %rdx
addq %rsi, %rdx
movq %r14, %rdi
callq 0xbe10
movq (%r14), %rax
movq 0x8(%r14), %rcx
leaq -0x4(%rcx), %rdx
movq %rdx, 0x8(%r14)
movb $0x0, -0x4(%rax,%rcx)
movq (%r14), %rsi
leaq 0x70(%rsp), %r12
movq %r12, -0x10(%r12)
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq 0x60(%rsp), %rdi
callq 0xbe10
leaq 0x43ab(%rip), %rsi      # 0x3987e
leaq 0x60(%rsp), %rdi
callq 0x35e0
movq %rbx, %r14
negq %r14
cmovsq %rbx, %r14
movl $0x1, %r15d
cmpq $0xa, %r14
jb 0x35547
movl $0x4, %r15d
movabsq $0x346dc5d63886594b, %rsi # imm = 0x346DC5D63886594B
movq %r14, %rcx
cmpq $0x63, %rcx
jbe 0x3553e
cmpq $0x3e7, %rcx            # imm = 0x3E7
jbe 0x35544
cmpq $0x2710, %rcx           # imm = 0x2710
jb 0x35547
movq %rcx, %rax
mulq %rsi
shrq $0xb, %rdx
addl $0x4, %r15d
cmpq $0x1869f, %rcx          # imm = 0x1869F
movq %rdx, %rcx
ja 0x35506
addl $-0x3, %r15d
jmp 0x35547
addl $-0x2, %r15d
jmp 0x35547
decl %r15d
shrq $0x3f, %rbx
leal (%rbx,%r15), %esi
leaq 0x50(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x40(%rsp), %rdi
movl $0x2d, %edx
callq 0x33a0
addq 0x40(%rsp), %rbx
movq %rbx, %rdi
movl %r15d, %esi
movq %r14, %rdx
callq 0x6dda
movq 0x60(%rsp), %rcx
movq 0x68(%rsp), %r8
movq 0x48(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %esi
cmpq %r12, %rcx
je 0x3559c
movq 0x70(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x355b7
movl $0xf, %esi
cmpq %r13, 0x40(%rsp)
je 0x355b2
movq 0x50(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x355c8
movq 0x40(%rsp), %rsi
leaq 0x60(%rsp), %rdi
callq 0x30e0
jmp 0x355d6
leaq 0x40(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x3370
leaq 0x30(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x355fa
movq %rsi, 0x20(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x30(%rsp)
jmp 0x35602
movupd (%rcx), %xmm0
movupd %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x28(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x1dbf(%rip), %rsi      # 0x373e5
leaq 0x20(%rsp), %rdi
callq 0x35e0
leaq 0xf8(%rsp), %rbx
movq %rbx, -0x10(%rbx)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x35660
movq %rdx, 0xe8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xf8(%rsp)
jmp 0x35668
movupd (%rcx), %xmm0
movupd %xmm0, (%rbx)
movq 0x8(%rax), %rdx
leaq 0xe8(%rsp), %r14
movq %rdx, 0x8(%r14)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x80(%rsp), %rdi
movq %r14, %rsi
callq 0x33e0
movq (%r14), %rdi
cmpq %rbx, %rdi
je 0x356a4
callq 0x3310
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
movq (%rsp), %r14
je 0x356bb
callq 0x3310
movq 0x40(%rsp), %rdi
cmpq %r13, %rdi
je 0x356ca
callq 0x3310
movq 0x60(%rsp), %rdi
cmpq %r12, %rdi
je 0x356d9
callq 0x3310
leaq 0xb8(%rsp), %rbx
movq %rbx, -0x10(%rbx)
movq 0x80(%rsp), %rsi
movq 0x88(%rsp), %rdx
addq %rsi, %rdx
leaq 0xa8(%rsp), %rdi
callq 0xbe10
movzbl 0x2c3c(%r14), %edx
leaq 0x970(%r14), %rcx
leaq 0xe8(%rsp), %r12
leaq 0xa8(%rsp), %rsi
movq %r12, %rdi
callq 0x2f394
movq %r14, %r13
addq $0xf70, %r14            # imm = 0xF70
movq 0xf70(%r13), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
leaq 0xf0(%rsp), %r15
movq -0x8(%r15), %rax
addq -0x18(%rax), %r12
movq %r12, %rsi
callq 0x35d0
leaq 0xf78(%r13), %rdi
movq %r15, %rsi
callq 0x3340
movq 0xc82e(%rip), %rax      # 0x41fa0
movq (%rax), %rcx
movq 0x18(%rax), %rax
leaq 0x1e0(%rsp), %r12
movq %rcx, -0xf8(%r12)
movq -0x18(%rcx), %rcx
movq %rax, 0xe8(%rsp,%rcx)
movq %r15, %rdi
callq 0x32b0
movq %r12, %rdi
callq 0x30f0
movq 0xa8(%rsp), %rdi
cmpq %rbx, %rdi
je 0x357b7
callq 0x3310
leaq 0x42c7(%rip), %rsi      # 0x39a85
movl $0x18, %edx
movq %r14, %rdi
callq 0x3390
xorl %ebx, %ebx
movl 0xc(%rsp), %eax
testl %eax, %eax
cmovgl %eax, %ebx
negl %ebx
movl $0x1, %r12d
leaq 0x4280(%rip), %r15      # 0x39a65
leal (%rbx,%r12), %eax
cmpl $0x1, %eax
je 0x35813
movl $0x5, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x3390
leal 0x1(%r12), %ebp
movq %r14, %rdi
movl %r12d, %esi
callq 0x3550
movl %ebp, %r12d
jmp 0x357e5
leaq 0x2108(%rip), %rsi      # 0x37922
movl $0x1, %edx
movq %r14, %rdi
callq 0x3390
movq (%rsp), %rcx
movq 0x2c88(%rcx), %rax
movq 0x2c90(%rcx), %rcx
subq %rax, %rcx
shrq $0x5, %rcx
testl %ecx, %ecx
jle 0x359de
movslq 0x1c(%rsp), %rcx
movl 0xc(%rsp), %ebx
xorl %r15d, %r15d
leaq (%rcx,%rcx,2), %r12
movq %r15, %rcx
shlq $0x5, %rcx
movq (%rax,%rcx), %rsi
movq 0x8(%rax,%rcx), %rdx
movq %r14, %rdi
callq 0x3390
movq %rax, %rbp
movl $0x1, %edx
movq %rax, %rdi
leaq 0x1a0e(%rip), %rsi      # 0x37290
callq 0x3390
movq (%rsp), %rax
movq 0x2ca0(%rax), %rax
movl (%rax,%r15,4), %esi
movq %rbp, %rdi
callq 0x3550
movq %r15, 0x10(%rsp)
cmpl $0x0, 0xc(%rsp)
jle 0x3599d
movq 0x10(%rsp), %rax
leaq (%rax,%rax,2), %r13
xorl %r15d, %r15d
movl $0x100, %edi            # imm = 0x100
callq 0x3030
movsd 0x3e3c(%rip), %xmm1     # 0x39708
movq %rax, %rbp
movq (%rsp), %rax
movq 0x2dd0(%rax), %rax
movq (%rax,%r12,8), %rax
movq (%rax,%r13,8), %rax
movsd (%rax,%r15,8), %xmm0
mulsd %xmm1, %xmm0
callq 0x1aa2c
movsd 0x3e0f(%rip), %xmm1     # 0x39708
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
divsd %xmm1, %xmm0
movq %rbp, %rdi
leaq 0x415d(%rip), %rsi      # 0x39a6b
movb $0x1, %al
callq 0x3080
leaq 0xf8(%rsp), %rax
movq %rax, 0xe8(%rsp)
movq %rbp, %rdi
callq 0x3140
movq %rbp, %rdx
addq %rax, %rdx
leaq 0xe8(%rsp), %rdi
movq %rbp, %rsi
callq 0x6e56
movq %rbp, %rdi
callq 0x33f0
movl $0x1, %edx
movq %r14, %rdi
leaq 0x1936(%rip), %rsi      # 0x37290
callq 0x3390
movq 0xe8(%rsp), %rsi
movq 0xf0(%rsp), %rdx
movq %r14, %rdi
callq 0x3390
movq 0xe8(%rsp), %rdi
leaq 0xf8(%rsp), %rax
cmpq %rax, %rdi
je 0x35991
callq 0x3310
incq %r15
cmpq %r15, %rbx
jne 0x358ba
movl $0x1, %edx
movq %r14, %rdi
leaq 0x1f76(%rip), %rsi      # 0x37922
callq 0x3390
movq 0x10(%rsp), %r15
incq %r15
movq (%rsp), %rcx
movq 0x2c88(%rcx), %rax
movq 0x2c90(%rcx), %rcx
subq %rax, %rcx
shrq $0x5, %rcx
movslq %ecx, %rcx
cmpq %rcx, %r15
jl 0x35858
movq %r14, %rdi
callq 0x31f0
movq 0x80(%rsp), %rdi
leaq 0x90(%rsp), %rax
cmpq %rax, %rdi
je 0x35a00
callq 0x3310
addq $0x2e8, %rsp            # imm = 0x2E8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
leaq 0xe8(%rsp), %rdi
callq 0x3440
jmp 0x35a27
movq %rax, %r14
movq 0xc8(%rsp), %rdi
jmp 0x35a8d
jmp 0x35ae5
movq %rax, %r14
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x35a51
callq 0x3310
jmp 0x35a51
movq %rax, %r14
movq 0x40(%rsp), %rdi
cmpq %r13, %rdi
je 0x35a67
callq 0x3310
jmp 0x35a67
jmp 0x35a64
movq %rax, %r14
movq 0x60(%rsp), %rdi
jmp 0x35a8d
jmp 0x35ae5
movq %rax, %r14
leaq 0xe8(%rsp), %rdi
callq 0x3440
jmp 0x35a85
movq %rax, %r14
movq 0xa8(%rsp), %rdi
cmpq %rbx, %rdi
jne 0x35b02
jmp 0x35b07
jmp 0x35ae5
movq %rax, %r14
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x35ab1
callq 0x3310
jmp 0x35ab1
movq %rax, %r14
movq 0x40(%rsp), %rdi
cmpq %r13, %rdi
je 0x35ac7
callq 0x3310
jmp 0x35ac7
jmp 0x35ac4
movq %rax, %r14
movq 0x60(%rsp), %rdi
cmpq %r12, %rdi
jne 0x35b02
jmp 0x35b07
jmp 0x35ae5
jmp 0x35ae5
jmp 0x35ae5
jmp 0x35ae5
jmp 0x35ae5
jmp 0x35ae5
jmp 0x35ae5
jmp 0x35aea
jmp 0x35ae5
movq %rax, %r14
jmp 0x35b07
movq %rax, %r14
movq 0xe8(%rsp), %rdi
leaq 0xf8(%rsp), %rax
cmpq %rax, %rdi
je 0x35b07
callq 0x3310
movq 0x80(%rsp), %rdi
leaq 0x90(%rsp), %rax
cmpq %rax, %rdi
je 0x35b21
callq 0x3310
movq %r14, %rdi
callq 0x3580