// File: /workspace/github_cpp_makefile_star2_O3/bobverity[P]MavericK/writeOut.cpp
// Function: printQmatrix_ind(globals&, int)
void printQmatrix_ind(globals &globals, int Kindex) {
    int K = globals.Kmin+Kindex;
    
    if (globals.outputQmatrix_structureFormat_on) {
        
        // open outputQmatrix_ind filestream for this K
        string s = globals.outputQmatrix_ind_filePath;
        s.erase(end(s)-4,end(s));
        s = s + "_K" + to_string((long long)K) + ".txt";
        globals.outputQmatrix_ind_fileStream = safe_ofstream(s,globals.outputLog_on, globals.outputLog_fileStream);
        
        // write headers
        /*
        globals.outputQmatrix_ind_fileStream << "        Label (%Miss) ";
        if (globals.popCol_on)
            globals.outputQmatrix_ind_fileStream << "Pop";
        globals.outputQmatrix_ind_fileStream << ":  Inferred clusters\n";
        */
        
        // write results
        for (int i=0; i<globals.n; i++) {
            
            // individual index
            if ((i+1)<100)
                globals.outputQmatrix_ind_fileStream << " ";
            if ((i+1)<10)
                globals.outputQmatrix_ind_fileStream << " ";
            globals.outputQmatrix_ind_fileStream << i+1;
            
            // individual label
            int stringLength = int(globals.indLabels_vec[i].length());
            if (stringLength<8) {
                for (int j=0; j<(8-stringLength); j++) {
                    globals.outputQmatrix_ind_fileStream << " ";
                }
            }
            globals.outputQmatrix_ind_fileStream << " ";
            string s = globals.indLabels_vec[i];
            if (stringLength>11)
                s.erase(begin(s)+11,end(s));
            globals.outputQmatrix_ind_fileStream << s;
            
            // missing data
            double missPercent = my_round(globals.missing_vec[i]/double(globals.loci)/double(globals.ploidy_vec[i])*100);
            if (missPercent<10)
                globals.outputQmatrix_ind_fileStream << " ";
            globals.outputQmatrix_ind_fileStream << "  (" << missPercent << ")   ";
            
            // population data
            if (globals.popCol_on) {
                if (globals.pop_vec[i].length()==1)
                    globals.outputQmatrix_ind_fileStream << " ";
                globals.outputQmatrix_ind_fileStream << " " << globals.pop_vec[i] << " ";
            }
            
            globals.outputQmatrix_ind_fileStream << ": ";
            
            // probabilities
            for (int k=0; k<K; k++) {
                char * buffer = new char[256];
                sprintf(buffer, "%.3f", my_round(globals.Qmatrix_ind[Kindex][i][k]*1000)/1000.0);
                string s = buffer;
                delete [] buffer;
                globals.outputQmatrix_ind_fileStream << " " << s;
            }
            globals.outputQmatrix_ind_fileStream << "\n";
            
        }
        
    } // end of if outputQmatrix_structureFormat_on=true
    
    // open outputQmatrix_ind filestream for this K
    string s = globals.outputQmatrix_ind_filePath;
    s.erase(end(s)-4,end(s));
    s = s + "_K" + to_string((long long)K) + ".csv";
    globals.outputQmatrix_ind_fileStream = safe_ofstream(s,globals.outputLog_on, globals.outputLog_fileStream);
    
    // write headers
    globals.outputQmatrix_ind_fileStream << "index,label";
    if (globals.popCol_on)
        globals.outputQmatrix_ind_fileStream << ",given_population";
    for (int k=0; k<K; k++)
        globals.outputQmatrix_ind_fileStream << ",deme" << k+1;
    globals.outputQmatrix_ind_fileStream << "\n";
    
    // write results
    for (int i=0; i<globals.n; i++) {
        
        // individual index
        globals.outputQmatrix_ind_fileStream << i+1;
        globals.outputQmatrix_ind_fileStream << ",";
        
        // individual label
        globals.outputQmatrix_ind_fileStream << globals.indLabels_vec[i];
        globals.outputQmatrix_ind_fileStream << ",";
        
        // population data
        if (globals.popCol_on) {
            globals.outputQmatrix_ind_fileStream << globals.pop_vec[i];
            globals.outputQmatrix_ind_fileStream << ",";
        }
        
        // probabilities
        for (int k=0; k<K; k++) {
            char * buffer = new char[256];
            sprintf(buffer, "%.3f", my_round(globals.Qmatrix_ind[Kindex][i][k]*1000)/1000.0);
            string s = buffer;
            delete [] buffer;
            globals.outputQmatrix_ind_fileStream << s;
            if (k<(K-1))
                globals.outputQmatrix_ind_fileStream << ",";
        }
        
        globals.outputQmatrix_ind_fileStream << "\n";
        
    }
    
    globals.outputQmatrix_ind_fileStream.flush();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2f8, %rsp            # imm = 0x2F8
movslq %esi, %rax
movq %rax, 0x38(%rsp)
addl 0x2bc8(%rdi), %esi
cmpb $0x1, 0x2c4d(%rdi)
leaq 0x90(%rsp), %rax
movslq %esi, %rbp
movq %rsi, 0x30(%rsp)
movl %esi, %ecx
movq %rcx, 0xa0(%rsp)
movq %rdi, 0x8(%rsp)
jne 0x33a5a
leaq 0x80(%rsp), %rbx
movq %rax, (%rbx)
movq 0x360(%rdi), %rsi
movq 0x368(%rdi), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0xbb9a
movq (%rbx), %rax
movq 0x8(%rbx), %rcx
leaq -0x4(%rcx), %rdx
movq %rdx, 0x8(%rbx)
movb $0x0, -0x4(%rax,%rcx)
movq (%rbx), %rsi
leaq 0x50(%rsp), %r12
movq %r12, -0x10(%r12)
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
leaq 0x40(%rsp), %rdi
callq 0xbb9a
leaq 0x5496(%rip), %rsi      # 0x3887e
leaq 0x40(%rsp), %rdi
callq 0x35e0
movq %rbp, %rbx
negq %rbx
cmovsq %rbp, %rbx
movl $0x1, %r15d
cmpq $0xa, %rbx
jb 0x3345c
movl $0x4, %r15d
movabsq $0x346dc5d63886594b, %rsi # imm = 0x346DC5D63886594B
movq %rbx, %rcx
cmpq $0x63, %rcx
jbe 0x33453
cmpq $0x3e7, %rcx            # imm = 0x3E7
jbe 0x33459
cmpq $0x2710, %rcx           # imm = 0x2710
jb 0x3345c
movq %rcx, %rax
mulq %rsi
shrq $0xb, %rdx
addl $0x4, %r15d
cmpq $0x1869f, %rcx          # imm = 0x1869F
movq %rdx, %rcx
ja 0x3341b
addl $-0x3, %r15d
jmp 0x3345c
addl $-0x2, %r15d
jmp 0x3345c
decl %r15d
movq %rbp, %r14
shrq $0x3f, %r14
leal (%r14,%r15), %esi
leaq 0x70(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x60(%rsp), %rdi
movl $0x2d, %edx
callq 0x33a0
addq 0x60(%rsp), %r14
movq %r14, %rdi
movl %r15d, %esi
movq %rbx, %rdx
callq 0x6d20
movq 0x40(%rsp), %rcx
movq 0x48(%rsp), %r8
movq 0x68(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
cmpq %r12, %rcx
je 0x334b4
movq 0x50(%rsp), %rdi
movq 0x60(%rsp), %rsi
cmpq %rdi, %rax
jbe 0x334d2
movl $0xf, %edi
cmpq %r13, %rsi
je 0x334cd
movq 0x70(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x334de
leaq 0x40(%rsp), %rdi
callq 0x30e0
jmp 0x334ec
leaq 0x60(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x3370
leaq 0x20(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x33510
movq %rsi, 0x10(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x20(%rsp)
jmp 0x33518
movupd (%rcx), %xmm0
movupd %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x18(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x2db2(%rip), %rsi      # 0x362ee
leaq 0x10(%rsp), %rdi
callq 0x35e0
leaq 0x108(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x33576
movq %rdx, 0xf8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x108(%rsp)
jmp 0x3357f
movupd (%rcx), %xmm0
movupd %xmm0, (%r14)
movq 0x8(%rax), %rdx
leaq 0xf8(%rsp), %rbx
movq %rdx, 0x8(%rbx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x80(%rsp), %rdi
movq %rbx, %rsi
callq 0x33e0
movq (%rbx), %rdi
cmpq %r14, %rdi
je 0x335bb
callq 0x3310
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
movq 0x8(%rsp), %rbx
je 0x335d3
callq 0x3310
movq 0x60(%rsp), %rdi
cmpq %r13, %rdi
je 0x335e2
callq 0x3310
movq 0x40(%rsp), %rdi
cmpq %r12, %rdi
je 0x335f1
callq 0x3310
leaq 0xe8(%rsp), %r13
movq %r13, -0x10(%r13)
movq 0x80(%rsp), %rsi
movq 0x88(%rsp), %rdx
addq %rsi, %rdx
leaq 0xd8(%rsp), %rdi
callq 0xbb9a
movzbl 0x2c3c(%rbx), %edx
leaq 0x970(%rbx), %rcx
leaq 0xf8(%rsp), %r15
leaq 0xd8(%rsp), %rsi
movq %r15, %rdi
callq 0x2eff8
movq %rbp, 0xa8(%rsp)
leaq 0xd70(%rbx), %r12
movq 0xd70(%rbx), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movq %rbx, %r14
leaq 0x100(%rsp), %rbx
movq -0x8(%rbx), %rax
addq -0x18(%rax), %r15
movq %r15, %rsi
callq 0x35d0
leaq 0xd78(%r14), %rdi
movq %rbx, %rsi
callq 0x3340
movq 0xd90f(%rip), %rax      # 0x40fa0
movq (%rax), %rcx
movq 0x18(%rax), %rax
leaq 0x1f0(%rsp), %r15
movq %rcx, -0xf8(%r15)
movq -0x18(%rcx), %rcx
movq %rax, 0xf8(%rsp,%rcx)
movq %rbx, %rdi
callq 0x32b0
movq %r15, %rdi
callq 0x30f0
movq 0xd8(%rsp), %rdi
cmpq %r13, %rdi
je 0x336d5
callq 0x3310
movq 0x8(%rsp), %rbx
cmpl $0x0, 0x2d18(%rbx)
jle 0x33a2d
xorl %ebp, %ebp
leaq 0x5393(%rip), %r13      # 0x38a83
cmpq $0x62, %rbp
ja 0x3371c
movl $0x1, %edx
movq %r12, %rdi
movq %r13, %rsi
callq 0x3390
cmpq $0x8, %rbp
ja 0x3371c
movl $0x1, %edx
movq %r12, %rdi
movq %r13, %rsi
callq 0x3390
leaq 0x1(%rbp), %rsi
movq %r12, %rdi
movq %rsi, 0xb0(%rsp)
callq 0x3550
movq 0x2c58(%rbx), %rax
movq %rbp, %r15
shlq $0x5, %r15
movl 0x8(%rax,%r15), %ebx
cmpl $0x7, %ebx
jg 0x33773
movl $0x8, %r14d
subl %ebx, %r14d
cmpl $0x2, %r14d
movl $0x1, %eax
cmovll %eax, %r14d
movl $0x1, %edx
movq %r12, %rdi
movq %r13, %rsi
callq 0x3390
decl %r14d
jne 0x3375e
movl $0x1, %edx
movq %r12, %rdi
movq %r13, %rsi
callq 0x3390
movq 0x8(%rsp), %rax
movq 0x2c58(%rax), %rax
leaq 0x108(%rsp), %rcx
movq %rcx, 0xf8(%rsp)
movq (%rax,%r15), %rsi
movq 0x8(%rax,%r15), %rdx
addq %rsi, %rdx
leaq 0xf8(%rsp), %rdi
callq 0xbb9a
movq 0xf8(%rsp), %rsi
cmpl $0xc, %ebx
jl 0x337d5
movq $0xb, 0x100(%rsp)
movb $0x0, 0xb(%rsi)
movq 0x100(%rsp), %rdx
movq %r12, %rdi
callq 0x3390
movq 0x8(%rsp), %rcx
movq 0x2ce8(%rcx), %rax
cvtsi2sdl (%rax,%rbp,4), %xmm0
movq 0x2cd0(%rcx), %rax
cvtsi2sdl 0x2d1c(%rcx), %xmm1
divsd %xmm1, %xmm0
xorps %xmm1, %xmm1
cvtsi2sdl (%rax,%rbp,4), %xmm1
divsd %xmm1, %xmm0
mulsd 0x339b(%rip), %xmm0     # 0x36bb8
callq 0x1a730
movl %eax, %ebx
cmpl $0x9, %eax
jg 0x33839
movl $0x1, %edx
movq %r12, %rdi
movq %r13, %rsi
callq 0x3390
movl $0x3, %edx
movq %r12, %rdi
leaq 0x5228(%rip), %rsi      # 0x38a70
callq 0x3390
xorps %xmm0, %xmm0
cvtsi2sd %ebx, %xmm0
movq %r12, %rdi
callq 0x34a0
movl $0x4, %edx
movq %rax, %rdi
leaq 0x5209(%rip), %rsi      # 0x38a74
callq 0x3390
movq 0x8(%rsp), %rax
cmpb $0x1, 0x2ba1(%rax)
jne 0x338df
movq 0x8(%rsp), %rax
movq 0x2c70(%rax), %rax
cmpq $0x1, 0x8(%rax,%r15)
jne 0x338a2
movl $0x1, %edx
movq %r12, %rdi
movq %r13, %rsi
callq 0x3390
movl $0x1, %edx
movq %r12, %rdi
movq %r13, %rsi
callq 0x3390
movq 0x8(%rsp), %rax
movq 0x2c70(%rax), %rax
movq (%rax,%r15), %rsi
movq 0x8(%rax,%r15), %rdx
movq %r12, %rdi
callq 0x3390
movl $0x1, %edx
movq %rax, %rdi
movq %r13, %rsi
callq 0x3390
movl $0x2, %edx
movq %r12, %rdi
leaq 0x31f5(%rip), %rsi      # 0x36ae3
callq 0x3390
cmpl $0x0, 0x30(%rsp)
jle 0x339df
xorl %r15d, %r15d
movl $0x100, %edi            # imm = 0x100
callq 0x3030
movsd 0x4df5(%rip), %xmm1     # 0x38708
movq %rax, %rbx
movq 0x8(%rsp), %rax
movq 0x2da0(%rax), %rax
movq 0x38(%rsp), %rcx
leaq (%rcx,%rcx,2), %rcx
movq (%rax,%rcx,8), %rax
leaq (%rbp,%rbp,2), %rcx
movq (%rax,%rcx,8), %rax
movsd (%rax,%r15,8), %xmm0
mulsd %xmm1, %xmm0
callq 0x1a730
movsd 0x4db9(%rip), %xmm1     # 0x38708
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
divsd %xmm1, %xmm0
movq %rbx, %rdi
leaq 0x5107(%rip), %rsi      # 0x38a6b
movb $0x1, %al
callq 0x3080
leaq 0x20(%rsp), %rax
movq %rax, 0x10(%rsp)
movq %rbx, %rdi
callq 0x3140
movq %rbx, %rdx
addq %rax, %rdx
leaq 0x10(%rsp), %rdi
movq %rbx, %rsi
callq 0x6d9c
movq %rbx, %rdi
callq 0x33f0
movl $0x1, %edx
movq %r12, %rdi
movq %r13, %rsi
callq 0x3390
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq %r12, %rdi
callq 0x3390
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x339ce
callq 0x3310
incq %r15
cmpq %r15, 0xa0(%rsp)
jne 0x33901
movl $0x1, %edx
movq %r12, %rdi
leaq 0x2f34(%rip), %rsi      # 0x36922
callq 0x3390
movq 0xf8(%rsp), %rdi
leaq 0x108(%rsp), %rax
cmpq %rax, %rdi
je 0x33a0d
callq 0x3310
movq 0x8(%rsp), %rbx
movslq 0x2d18(%rbx), %rax
movq 0xb0(%rsp), %rcx
movq %rcx, %rbp
cmpq %rax, %rcx
jl 0x336f0
movq 0x80(%rsp), %rdi
leaq 0x90(%rsp), %rax
cmpq %rax, %rdi
je 0x33a47
callq 0x3310
leaq 0x90(%rsp), %rax
movq %rbx, %rdi
movq 0xa8(%rsp), %rbp
leaq 0x80(%rsp), %rbx
movq %rax, (%rbx)
movq 0x360(%rdi), %rsi
movq 0x368(%rdi), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0xbb9a
movq (%rbx), %rax
movq 0x8(%rbx), %rcx
leaq -0x4(%rcx), %rdx
movq %rdx, 0x8(%rbx)
movb $0x0, -0x4(%rax,%rcx)
movq (%rbx), %rsi
leaq 0x50(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
leaq 0x40(%rsp), %rdi
callq 0xbb9a
leaq 0x4dc8(%rip), %rsi      # 0x3887e
leaq 0x40(%rsp), %rdi
callq 0x35e0
movq %rbp, %rbx
negq %rbx
cmovsq %rbp, %rbx
movl $0x1, %r15d
cmpq $0xa, %rbx
jb 0x33b2a
movl $0x4, %r15d
movabsq $0x346dc5d63886594b, %rsi # imm = 0x346DC5D63886594B
movq %rbx, %rcx
cmpq $0x63, %rcx
jbe 0x33b21
cmpq $0x3e7, %rcx            # imm = 0x3E7
jbe 0x33b27
cmpq $0x2710, %rcx           # imm = 0x2710
jb 0x33b2a
movq %rcx, %rax
mulq %rsi
shrq $0xb, %rdx
addl $0x4, %r15d
cmpq $0x1869f, %rcx          # imm = 0x1869F
movq %rdx, %rcx
ja 0x33ae9
addl $-0x3, %r15d
jmp 0x33b2a
addl $-0x2, %r15d
jmp 0x33b2a
decl %r15d
shrq $0x3f, %rbp
leal (%r15,%rbp), %esi
leaq 0x70(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x60(%rsp), %rdi
movl $0x2d, %edx
callq 0x33a0
addq 0x60(%rsp), %rbp
movq %rbp, %rdi
movl %r15d, %esi
movq %rbx, %rdx
callq 0x6d20
movq 0x40(%rsp), %rcx
movq 0x48(%rsp), %r8
movq 0x68(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
cmpq %r14, %rcx
je 0x33b80
movq 0x50(%rsp), %rdi
movq 0x60(%rsp), %rsi
cmpq %rdi, %rax
jbe 0x33b9e
movl $0xf, %edi
cmpq %r12, %rsi
je 0x33b99
movq 0x70(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x33baa
leaq 0x40(%rsp), %rdi
callq 0x30e0
jmp 0x33bb8
leaq 0x60(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x3370
leaq 0x20(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x33bdc
movq %rsi, 0x10(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x20(%rsp)
jmp 0x33be4
movupd (%rcx), %xmm0
movupd %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x18(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x27dd(%rip), %rsi      # 0x363e5
leaq 0x10(%rsp), %rdi
callq 0x35e0
leaq 0x108(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x33c42
movq %rdx, 0xf8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x108(%rsp)
jmp 0x33c4b
movupd (%rcx), %xmm0
movupd %xmm0, (%r15)
movq 0x8(%rax), %rdx
leaq 0xf8(%rsp), %rbx
movq %rdx, 0x8(%rbx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x80(%rsp), %rdi
movq %rbx, %rsi
callq 0x33e0
movq (%rbx), %rdi
cmpq %r15, %rdi
je 0x33c87
callq 0x3310
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
movq 0x8(%rsp), %rbx
je 0x33c9f
callq 0x3310
movq 0x60(%rsp), %rdi
cmpq %r12, %rdi
je 0x33cae
callq 0x3310
movq 0x40(%rsp), %rdi
cmpq %r14, %rdi
je 0x33cbd
callq 0x3310
leaq 0xc8(%rsp), %r12
movq %r12, -0x10(%r12)
movq 0x80(%rsp), %rsi
movq 0x88(%rsp), %rdx
addq %rsi, %rdx
leaq 0xb8(%rsp), %rdi
callq 0xbb9a
movzbl 0x2c3c(%rbx), %edx
leaq 0x970(%rbx), %rcx
leaq 0xf8(%rsp), %r15
leaq 0xb8(%rsp), %rsi
movq %r15, %rdi
callq 0x2eff8
movq %rbx, %r13
addq $0xd70, %rbx            # imm = 0xD70
movq 0xd70(%r13), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
leaq 0x100(%rsp), %r14
movq -0x8(%r14), %rax
addq -0x18(%rax), %r15
movq %r15, %rsi
callq 0x35d0
leaq 0xd78(%r13), %rdi
movq %r14, %rsi
callq 0x3340
movq 0xd24a(%rip), %rax      # 0x40fa0
movq (%rax), %rcx
movq 0x18(%rax), %rax
leaq 0x1f0(%rsp), %r15
movq %rcx, -0xf8(%r15)
movq -0x18(%rcx), %rcx
movq %rax, 0xf8(%rsp,%rcx)
movq %r14, %rdi
callq 0x32b0
movq %r15, %rdi
callq 0x30f0
movq 0xb8(%rsp), %rdi
cmpq %r12, %rdi
je 0x33d9a
callq 0x3310
leaq 0x4c95(%rip), %rsi      # 0x38a36
movl $0xb, %edx
movq %rbx, %rdi
callq 0x3390
movq 0x8(%rsp), %rax
cmpb $0x1, 0x2ba1(%rax)
jne 0x33dd0
leaq 0x4c7f(%rip), %rsi      # 0x38a42
movl $0x11, %edx
movq %rbx, %rdi
callq 0x3390
xorl %r12d, %r12d
movq 0x30(%rsp), %rax
testl %eax, %eax
cmovgl %eax, %r12d
negl %r12d
movl $0x1, %r15d
leaq 0x4c77(%rip), %r14      # 0x38a65
leal (%r12,%r15), %eax
cmpl $0x1, %eax
je 0x33e1b
movl $0x5, %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3390
leal 0x1(%r15), %ebp
movq %rbx, %rdi
movl %r15d, %esi
callq 0x3550
movl %ebp, %r15d
jmp 0x33dee
leaq 0x2b00(%rip), %rsi      # 0x36922
movl $0x1, %edx
movq %rbx, %rdi
callq 0x3390
movq 0x30(%rsp), %rax
decl %eax
movslq %eax, %r15
xorl %r14d, %r14d
movq 0x38(%rsp), %rax
leaq (%rax,%rax,2), %rbp
movq 0x8(%rsp), %rax
movslq 0x2d18(%rax), %rax
cmpq %rax, %r14
jge 0x34014
leaq 0x1(%r14), %rsi
movq %rbx, %rdi
movq %rsi, 0x38(%rsp)
callq 0x3550
movl $0x1, %edx
movq %rbx, %rdi
leaq 0x2416(%rip), %rsi      # 0x36290
callq 0x3390
movq 0x8(%rsp), %rax
movq 0x2c58(%rax), %rax
movq %r14, %r12
shlq $0x5, %r12
movq (%rax,%r12), %rsi
movq 0x8(%rax,%r12), %rdx
movq %rbx, %rdi
callq 0x3390
movl $0x1, %edx
movq %rbx, %rdi
leaq 0x23de(%rip), %rsi      # 0x36290
callq 0x3390
movq 0x8(%rsp), %rax
cmpb $0x1, 0x2ba1(%rax)
jne 0x33ef6
movq 0x8(%rsp), %rax
movq 0x2c70(%rax), %rax
movq (%rax,%r12), %rsi
movq 0x8(%rax,%r12), %rdx
movq %rbx, %rdi
callq 0x3390
movl $0x1, %edx
movq %rbx, %rdi
leaq 0x239f(%rip), %rsi      # 0x36290
callq 0x3390
cmpl $0x0, 0x30(%rsp)
jle 0x33ff6
leaq (%r14,%r14,2), %r12
xorl %r13d, %r13d
movl $0x100, %edi            # imm = 0x100
callq 0x3030
movsd 0x47ee(%rip), %xmm1     # 0x38708
movq %rax, %r14
movq 0x8(%rsp), %rax
movq 0x2da0(%rax), %rax
movq (%rax,%rbp,8), %rax
movq (%rax,%r12,8), %rax
movsd (%rax,%r13,8), %xmm0
mulsd %xmm1, %xmm0
callq 0x1a730
movsd 0x47c0(%rip), %xmm1     # 0x38708
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
divsd %xmm1, %xmm0
movq %r14, %rdi
leaq 0x4b0e(%rip), %rsi      # 0x38a6b
movb $0x1, %al
callq 0x3080
leaq 0x108(%rsp), %rax
movq %rax, 0xf8(%rsp)
movq %r14, %rdi
callq 0x3140
movq %r14, %rdx
addq %rax, %rdx
leaq 0xf8(%rsp), %rdi
movq %r14, %rsi
callq 0x6d9c
movq %r14, %rdi
callq 0x33f0
movq 0xf8(%rsp), %rsi
movq 0x100(%rsp), %rdx
movq %rbx, %rdi
callq 0x3390
cmpq %r15, %r13
jge 0x33fcb
movl $0x1, %edx
movq %rbx, %rdi
leaq 0x22ca(%rip), %rsi      # 0x36290
callq 0x3390
movq 0xf8(%rsp), %rdi
leaq 0x108(%rsp), %rax
cmpq %rax, %rdi
je 0x33fe5
callq 0x3310
incq %r13
cmpq %r13, 0xa0(%rsp)
jne 0x33f08
movl $0x1, %edx
movq %rbx, %rdi
leaq 0x291d(%rip), %rsi      # 0x36922
callq 0x3390
movq 0x38(%rsp), %r14
jmp 0x33e45
movq %rbx, %rdi
callq 0x31f0
movq 0x80(%rsp), %rdi
leaq 0x90(%rsp), %rax
cmpq %rax, %rdi
je 0x34036
callq 0x3310
addq $0x2f8, %rsp            # imm = 0x2F8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0xf8(%rsp), %rdi
callq 0x3440
jmp 0x3405d
movq %rax, %rbx
movq 0xd8(%rsp), %rdi
cmpq %r13, %rdi
jne 0x3416d
jmp 0x34177
jmp 0x34174
movq %rax, %rbx
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x34093
callq 0x3310
jmp 0x34093
movq %rax, %rbx
movq 0x60(%rsp), %rdi
cmpq %r13, %rdi
je 0x340a9
callq 0x3310
jmp 0x340a9
jmp 0x340a6
movq %rax, %rbx
movq 0x40(%rsp), %rdi
jmp 0x340d2
jmp 0x34174
movq %rax, %rbx
leaq 0xf8(%rsp), %rdi
callq 0x3440
jmp 0x340ca
movq %rax, %rbx
movq 0xb8(%rsp), %rdi
cmpq %r12, %rdi
jne 0x3416d
jmp 0x34177
jmp 0x34174
movq %rax, %rbx
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x34100
callq 0x3310
jmp 0x34100
movq %rax, %rbx
movq 0x60(%rsp), %rdi
cmpq %r12, %rdi
je 0x34116
callq 0x3310
jmp 0x34116
jmp 0x34113
movq %rax, %rbx
movq 0x40(%rsp), %rdi
cmpq %r14, %rdi
jne 0x3416d
jmp 0x34177
jmp 0x34174
jmp 0x34174
jmp 0x34174
jmp 0x34174
jmp 0x34155
jmp 0x34174
jmp 0x34174
jmp 0x34155
jmp 0x34174
jmp 0x34174
jmp 0x34155
movq %rax, %rbx
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x34158
callq 0x3310
jmp 0x34158
jmp 0x34155
jmp 0x34174
movq %rax, %rbx
movq 0xf8(%rsp), %rdi
leaq 0x108(%rsp), %rax
cmpq %rax, %rdi
je 0x34177
callq 0x3310
jmp 0x34177
movq %rax, %rbx
movq 0x80(%rsp), %rdi
leaq 0x90(%rsp), %rax
cmpq %rax, %rdi
je 0x34191
callq 0x3310
movq %rbx, %rdi
callq 0x3580