// File: /workspace/github_c_makefile_star2_O0/dapogon[P]cellcoal/src/cellcoal.c
// Function: PrintSNVGenotypes
static void PrintSNVGenotypes (FILE *fp)
    {
    int		i, j, k;

    if (doPrintAncestors == YES && doNGS == NO)
        fprintf (fp, "%d %d\n", numCells+3, numSNVs);
    else
        fprintf (fp, "%d %d\n", numCells+1, numSNVs);
		
    /* site information */
	fprintf (fp, "%d", SNVsites[0]+1);
	for (i=1; i<numSNVs; i++)
		fprintf (fp, " %d", SNVsites[i]+1);
    fprintf (fp, "\n");
	k=0;
	
    if (alphabet == DNA)
        {
        for (i=0; i<numCells+1; i++)
            {
            if (i == numCells)
				fprintf (fp,"%s ", outCellName);
			else
				{
				if (doUserTree == NO)
					fprintf (fp,"%s%04d ", inCellName,i+1);
				else
					fprintf (fp,"%-*s", stringPrecision, cellNames[i]);
				}
			for (j=0; j<numSNVs; j++)
				{
				if (doNGS == NO)
					fprintf (fp, " %c%c", WhichNuc(data[MATERNAL][i][SNVsites[j]]), WhichNuc(data[PATERNAL][i][SNVsites[j]]));
				else if (cell[i].hasDoublet == NO)
					fprintf (fp, " %c%c", WhichNuc(cell[i].site[SNVsites[j]].MLmatAllele), WhichNuc(cell[i].site[SNVsites[j]].MLpatAllele));
				else
					fprintf (fp, " %c%c", WhichNuc(cell[i].site[SNVsites[j]].MLmatAlleleDoublet), WhichNuc(cell[i].site[SNVsites[j]].MLpatAlleleDoublet));
				}
           fprintf (fp,"\n");
            }
			
        if (doPrintAncestors == YES & doNGS == NO)
            {
            fprintf (fp,"%s ", outRootCellName);
			for (j=0; j<numSNVs; j++)
				fprintf (fp, " %c%c", WhichNuc(data[MATERNAL][OUTGROUP_ROOT][SNVsites[j]]),WhichNuc(data[PATERNAL][OUTGROUP_ROOT][SNVsites[j]]));
            fprintf (fp,"\n%s ", inRootCellName);
			for (j=0; j<numSNVs; j++)
				fprintf (fp, " %c%c", WhichNuc(data[MATERNAL][INGROUP_ROOT][SNVsites[j]]),WhichNuc(data[PATERNAL][INGROUP_ROOT][SNVsites[j]]));
            fprintf (fp,"\n");
            }
        }
    else // binary data
        {
        for (i=0; i<numCells+1; i++)
            {
			if (i == numCells)
				fprintf (fp,"%s ", outCellName);
			else
				{
				if (doUserTree == NO)
					fprintf (fp,"%s%04d ", inCellName,i+1);
				else
					fprintf (fp,"%-*s", stringPrecision, cellNames[i]);
				}
			for (j=0; j<numSNVs; j++)
				fprintf (fp, " %c%c", WhichMut(data[MATERNAL][i][SNVsites[j]]),WhichMut(data[PATERNAL][i][SNVsites[j]]));
			fprintf (fp,"\n");
            }
			
        if (doPrintAncestors == YES)
            {
			fprintf (fp,"%s ", outRootCellName);
			for (j=0; j<numSNVs; j++)
				fprintf (fp, " %d%d", data[MATERNAL][OUTGROUP_ROOT][SNVsites[j]],data[PATERNAL][OUTGROUP_ROOT][SNVsites[j]]);
			fprintf (fp,"\n%s ", inRootCellName);
			for (j=0; j<numSNVs; j++)
				fprintf (fp, " %d%d", data[MATERNAL][INGROUP_ROOT][SNVsites[j]],data[PATERNAL][INGROUP_ROOT][SNVsites[j]]);
			fprintf (fp,"\n");
            }
        }
     }

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdi, -0x8(%rbp)
cmpl $0x1, 0x3c6c5(%rip)     # 0x4e3e8
jne 0x11d51
cmpl $0x0, 0x3c6c0(%rip)     # 0x4e3ec
jne 0x11d51
movq -0x8(%rbp), %rdi
movl 0x3c49c(%rip), %edx     # 0x4e1d4
addl $0x3, %edx
movl 0x3dacf(%rip), %ecx     # 0x4f810
leaq 0x30470(%rip), %rsi     # 0x421b8
movb $0x0, %al
callq 0x21b0
jmp 0x11d72
movq -0x8(%rbp), %rdi
movl 0x3c479(%rip), %edx     # 0x4e1d4
addl $0x1, %edx
movl 0x3daac(%rip), %ecx     # 0x4f810
leaq 0x3044d(%rip), %rsi     # 0x421b8
movb $0x0, %al
callq 0x21b0
movq -0x8(%rbp), %rdi
movq 0x3da33(%rip), %rax     # 0x4f7b0
movl (%rax), %edx
addl $0x1, %edx
leaq 0x3044c(%rip), %rsi     # 0x421d5
movb $0x0, %al
callq 0x21b0
movl $0x1, -0xc(%rbp)
movl -0xc(%rbp), %eax
cmpl 0x3da70(%rip), %eax     # 0x4f810
jge 0x11dd0
movq -0x8(%rbp), %rdi
movq 0x3da03(%rip), %rax     # 0x4f7b0
movslq -0xc(%rbp), %rcx
movl (%rax,%rcx,4), %edx
addl $0x1, %edx
leaq 0x2db93(%rip), %rsi     # 0x3f951
movb $0x0, %al
callq 0x21b0
movl -0xc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
jmp 0x11d97
movq -0x8(%rbp), %rdi
leaq 0x3525a(%rip), %rsi     # 0x47035
movb $0x0, %al
callq 0x21b0
movl $0x0, -0x14(%rbp)
cmpl $0x1, 0x3c434(%rip)     # 0x4e224
jne 0x1224b
movl $0x0, -0xc(%rbp)
movl -0xc(%rbp), %eax
movl 0x3c3ce(%rip), %ecx     # 0x4e1d4
addl $0x1, %ecx
cmpl %ecx, %eax
jge 0x12092
movl -0xc(%rbp), %eax
cmpl 0x3c3ba(%rip), %eax     # 0x4e1d4
jne 0x11e37
movq -0x8(%rbp), %rdi
leaq 0x30f93(%rip), %rsi     # 0x42dba
leaq 0x3c982(%rip), %rdx     # 0x4e7b0
movb $0x0, %al
callq 0x21b0
jmp 0x11e8a
cmpl $0x0, 0x3c586(%rip)     # 0x4e3c4
jne 0x11e61
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %ecx
addl $0x1, %ecx
leaq 0x3036e(%rip), %rsi     # 0x421bf
leaq 0x3c8d8(%rip), %rdx     # 0x4e730
movb $0x0, %al
callq 0x21b0
jmp 0x11e88
movq -0x8(%rbp), %rdi
movl 0x3c589(%rip), %edx     # 0x4e3f4
movq 0x3da7e(%rip), %rax     # 0x4f8f0
movslq -0xc(%rbp), %rcx
movq (%rax,%rcx,8), %rcx
leaq 0x30f33(%rip), %rsi     # 0x42db4
movb $0x0, %al
callq 0x21b0
jmp 0x11e8a
movl $0x0, -0x10(%rbp)
movl -0x10(%rbp), %eax
cmpl 0x3d976(%rip), %eax     # 0x4f810
jge 0x12072
cmpl $0x0, 0x3c545(%rip)     # 0x4e3ec
jne 0x11f27
movq -0x8(%rbp), %rax
movq %rax, -0x20(%rbp)
movq 0x3d8e8(%rip), %rax     # 0x4f7a0
movq (%rax), %rax
movslq -0xc(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq 0x3d8e6(%rip), %rcx     # 0x4f7b0
movslq -0x10(%rbp), %rdx
movslq (%rcx,%rdx,4), %rcx
movl (%rax,%rcx,4), %edi
callq 0x18d80
movsbl %al, %eax
movl %eax, -0x18(%rbp)
movq 0x3d8b9(%rip), %rax     # 0x4f7a0
movq 0x8(%rax), %rax
movslq -0xc(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq 0x3d8b6(%rip), %rcx     # 0x4f7b0
movslq -0x10(%rbp), %rdx
movslq (%rcx,%rdx,4), %rcx
movl (%rax,%rcx,4), %edi
callq 0x18d80
movq -0x20(%rbp), %rdi
movl -0x18(%rbp), %edx
movsbl %al, %ecx
leaq 0x301ef(%rip), %rsi     # 0x4210a
movb $0x0, %al
callq 0x21b0
jmp 0x12062
movq 0x3d8ea(%rip), %rax     # 0x4f818
movslq -0xc(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
cmpl $0x0, 0x8(%rax)
jne 0x11fd4
movq -0x8(%rbp), %rax
movq %rax, -0x30(%rbp)
movq 0x3d8c6(%rip), %rax     # 0x4f818
movslq -0xc(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq (%rax), %rax
movq 0x3d849(%rip), %rcx     # 0x4f7b0
movslq -0x10(%rbp), %rdx
movslq (%rcx,%rdx,4), %rcx
shlq $0x7, %rcx
addq %rcx, %rax
movl 0x48(%rax), %edi
callq 0x18d80
movsbl %al, %eax
movl %eax, -0x24(%rbp)
movq 0x3d88d(%rip), %rax     # 0x4f818
movslq -0xc(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq (%rax), %rax
movq 0x3d810(%rip), %rcx     # 0x4f7b0
movslq -0x10(%rbp), %rdx
movslq (%rcx,%rdx,4), %rcx
shlq $0x7, %rcx
addq %rcx, %rax
movl 0x4c(%rax), %edi
callq 0x18d80
movq -0x30(%rbp), %rdi
movl -0x24(%rbp), %edx
movsbl %al, %ecx
leaq 0x30142(%rip), %rsi     # 0x4210a
movb $0x0, %al
callq 0x21b0
jmp 0x12060
movq -0x8(%rbp), %rax
movq %rax, -0x40(%rbp)
movq 0x3d835(%rip), %rax     # 0x4f818
movslq -0xc(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq (%rax), %rax
movq 0x3d7b8(%rip), %rcx     # 0x4f7b0
movslq -0x10(%rbp), %rdx
movslq (%rcx,%rdx,4), %rcx
shlq $0x7, %rcx
addq %rcx, %rax
movl 0x78(%rax), %edi
callq 0x18d80
movsbl %al, %eax
movl %eax, -0x34(%rbp)
movq 0x3d7fc(%rip), %rax     # 0x4f818
movslq -0xc(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq (%rax), %rax
movq 0x3d77f(%rip), %rcx     # 0x4f7b0
movslq -0x10(%rbp), %rdx
movslq (%rcx,%rdx,4), %rcx
shlq $0x7, %rcx
addq %rcx, %rax
movl 0x7c(%rax), %edi
callq 0x18d80
movq -0x40(%rbp), %rdi
movl -0x34(%rbp), %edx
movsbl %al, %ecx
leaq 0x300b1(%rip), %rsi     # 0x4210a
movb $0x0, %al
callq 0x21b0
jmp 0x12062
jmp 0x12064
movl -0x10(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x10(%rbp)
jmp 0x11e91
movq -0x8(%rbp), %rdi
leaq 0x34fb8(%rip), %rsi     # 0x47035
movb $0x0, %al
callq 0x21b0
movl -0xc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
jmp 0x11dfd
cmpl $0x1, 0x3c34f(%rip)     # 0x4e3e8
sete %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, 0x3c344(%rip)     # 0x4e3ec
sete %cl
andb $0x1, %cl
movzbl %cl, %ecx
andl %ecx, %eax
cmpl $0x0, %eax
je 0x12246
movq -0x8(%rbp), %rdi
leaq 0x30cf3(%rip), %rsi     # 0x42dba
leaq 0x3c7e2(%rip), %rdx     # 0x4e8b0
movb $0x0, %al
callq 0x21b0
movl $0x0, -0x10(%rbp)
movl -0x10(%rbp), %eax
cmpl 0x3d72b(%rip), %eax     # 0x4f810
jge 0x12178
movq -0x8(%rbp), %rax
movq %rax, -0x50(%rbp)
movq 0x3d6a6(%rip), %rax     # 0x4f7a0
movq (%rax), %rax
movslq 0x3d63c(%rip), %rcx     # 0x4f740
movq (%rax,%rcx,8), %rax
movq 0x3d6a1(%rip), %rcx     # 0x4f7b0
movslq -0x10(%rbp), %rdx
movslq (%rcx,%rdx,4), %rcx
movl (%rax,%rcx,4), %edi
callq 0x18d80
movsbl %al, %eax
movl %eax, -0x44(%rbp)
movq 0x3d674(%rip), %rax     # 0x4f7a0
movq 0x8(%rax), %rax
movslq 0x3d609(%rip), %rcx     # 0x4f740
movq (%rax,%rcx,8), %rax
movq 0x3d66e(%rip), %rcx     # 0x4f7b0
movslq -0x10(%rbp), %rdx
movslq (%rcx,%rdx,4), %rcx
movl (%rax,%rcx,4), %edi
callq 0x18d80
movq -0x50(%rbp), %rdi
movl -0x44(%rbp), %edx
movsbl %al, %ecx
leaq 0x2ffa7(%rip), %rsi     # 0x4210a
movb $0x0, %al
callq 0x21b0
movl -0x10(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x10(%rbp)
jmp 0x120dc
movq -0x8(%rbp), %rdi
leaq 0x30c36(%rip), %rsi     # 0x42db9
leaq 0x3c6a6(%rip), %rdx     # 0x4e830
movb $0x0, %al
callq 0x21b0
movl $0x0, -0x10(%rbp)
movl -0x10(%rbp), %eax
cmpl 0x3d66f(%rip), %eax     # 0x4f810
jge 0x12234
movq -0x8(%rbp), %rax
movq %rax, -0x60(%rbp)
movq 0x3d5ea(%rip), %rax     # 0x4f7a0
movq (%rax), %rax
movslq 0x3d584(%rip), %rcx     # 0x4f744
movq (%rax,%rcx,8), %rax
movq 0x3d5e5(%rip), %rcx     # 0x4f7b0
movslq -0x10(%rbp), %rdx
movslq (%rcx,%rdx,4), %rcx
movl (%rax,%rcx,4), %edi
callq 0x18d80
movsbl %al, %eax
movl %eax, -0x54(%rbp)
movq 0x3d5b8(%rip), %rax     # 0x4f7a0
movq 0x8(%rax), %rax
movslq 0x3d551(%rip), %rcx     # 0x4f744
movq (%rax,%rcx,8), %rax
movq 0x3d5b2(%rip), %rcx     # 0x4f7b0
movslq -0x10(%rbp), %rdx
movslq (%rcx,%rdx,4), %rcx
movl (%rax,%rcx,4), %edi
callq 0x18d80
movq -0x60(%rbp), %rdi
movl -0x54(%rbp), %edx
movsbl %al, %ecx
leaq 0x2feeb(%rip), %rsi     # 0x4210a
movb $0x0, %al
callq 0x21b0
movl -0x10(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x10(%rbp)
jmp 0x12198
movq -0x8(%rbp), %rdi
leaq 0x34df6(%rip), %rsi     # 0x47035
movb $0x0, %al
callq 0x21b0
jmp 0x124eb
movl $0x0, -0xc(%rbp)
movl -0xc(%rbp), %eax
movl 0x3bf79(%rip), %ecx     # 0x4e1d4
addl $0x1, %ecx
cmpl %ecx, %eax
jge 0x1239c
movl -0xc(%rbp), %eax
cmpl 0x3bf65(%rip), %eax     # 0x4e1d4
jne 0x1228c
movq -0x8(%rbp), %rdi
leaq 0x30b3e(%rip), %rsi     # 0x42dba
leaq 0x3c52d(%rip), %rdx     # 0x4e7b0
movb $0x0, %al
callq 0x21b0
jmp 0x122df
cmpl $0x0, 0x3c131(%rip)     # 0x4e3c4
jne 0x122b6
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %ecx
addl $0x1, %ecx
leaq 0x2ff19(%rip), %rsi     # 0x421bf
leaq 0x3c483(%rip), %rdx     # 0x4e730
movb $0x0, %al
callq 0x21b0
jmp 0x122dd
movq -0x8(%rbp), %rdi
movl 0x3c134(%rip), %edx     # 0x4e3f4
movq 0x3d629(%rip), %rax     # 0x4f8f0
movslq -0xc(%rbp), %rcx
movq (%rax,%rcx,8), %rcx
leaq 0x30ade(%rip), %rsi     # 0x42db4
movb $0x0, %al
callq 0x21b0
jmp 0x122df
movl $0x0, -0x10(%rbp)
movl -0x10(%rbp), %eax
cmpl 0x3d521(%rip), %eax     # 0x4f810
jge 0x1237c
movq -0x8(%rbp), %rax
movq %rax, -0x70(%rbp)
movq 0x3d49c(%rip), %rax     # 0x4f7a0
movq (%rax), %rax
movslq -0xc(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq 0x3d49a(%rip), %rcx     # 0x4f7b0
movslq -0x10(%rbp), %rdx
movslq (%rcx,%rdx,4), %rcx
movl (%rax,%rcx,4), %edi
callq 0x21ed0
movsbl %al, %eax
movl %eax, -0x64(%rbp)
movq 0x3d46d(%rip), %rax     # 0x4f7a0
movq 0x8(%rax), %rax
movslq -0xc(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq 0x3d46a(%rip), %rcx     # 0x4f7b0
movslq -0x10(%rbp), %rdx
movslq (%rcx,%rdx,4), %rcx
movl (%rax,%rcx,4), %edi
callq 0x21ed0
movq -0x70(%rbp), %rdi
movl -0x64(%rbp), %edx
movsbl %al, %ecx
leaq 0x2fda3(%rip), %rsi     # 0x4210a
movb $0x0, %al
callq 0x21b0
movl -0x10(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x10(%rbp)
jmp 0x122e6
movq -0x8(%rbp), %rdi
leaq 0x34cae(%rip), %rsi     # 0x47035
movb $0x0, %al
callq 0x21b0
movl -0xc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
jmp 0x12252
cmpl $0x1, 0x3c045(%rip)     # 0x4e3e8
jne 0x124e9
movq -0x8(%rbp), %rdi
leaq 0x30a06(%rip), %rsi     # 0x42dba
leaq 0x3c4f5(%rip), %rdx     # 0x4e8b0
movb $0x0, %al
callq 0x21b0
movl $0x0, -0x10(%rbp)
movl -0x10(%rbp), %eax
cmpl 0x3d43e(%rip), %eax     # 0x4f810
jge 0x12440
movq -0x8(%rbp), %rdi
movq 0x3d3c1(%rip), %rax     # 0x4f7a0
movq (%rax), %rax
movslq 0x3d357(%rip), %rcx     # 0x4f740
movq (%rax,%rcx,8), %rax
movq 0x3d3bc(%rip), %rcx     # 0x4f7b0
movslq -0x10(%rbp), %rdx
movslq (%rcx,%rdx,4), %rcx
movl (%rax,%rcx,4), %edx
movq 0x3d39a(%rip), %rax     # 0x4f7a0
movq 0x8(%rax), %rax
movslq 0x3d32f(%rip), %rcx     # 0x4f740
movq (%rax,%rcx,8), %rax
movq 0x3d394(%rip), %rcx     # 0x4f7b0
movslq -0x10(%rbp), %rsi
movslq (%rcx,%rsi,4), %rcx
movl (%rax,%rcx,4), %ecx
leaq 0x30990(%rip), %rsi     # 0x42dbe
movb $0x0, %al
callq 0x21b0
movl -0x10(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x10(%rbp)
jmp 0x123c9
movq -0x8(%rbp), %rdi
leaq 0x3096e(%rip), %rsi     # 0x42db9
leaq 0x3c3de(%rip), %rdx     # 0x4e830
movb $0x0, %al
callq 0x21b0
movl $0x0, -0x10(%rbp)
movl -0x10(%rbp), %eax
cmpl 0x3d3a7(%rip), %eax     # 0x4f810
jge 0x124d7
movq -0x8(%rbp), %rdi
movq 0x3d32a(%rip), %rax     # 0x4f7a0
movq (%rax), %rax
movslq 0x3d2c4(%rip), %rcx     # 0x4f744
movq (%rax,%rcx,8), %rax
movq 0x3d325(%rip), %rcx     # 0x4f7b0
movslq -0x10(%rbp), %rdx
movslq (%rcx,%rdx,4), %rcx
movl (%rax,%rcx,4), %edx
movq 0x3d303(%rip), %rax     # 0x4f7a0
movq 0x8(%rax), %rax
movslq 0x3d29c(%rip), %rcx     # 0x4f744
movq (%rax,%rcx,8), %rax
movq 0x3d2fd(%rip), %rcx     # 0x4f7b0
movslq -0x10(%rbp), %rsi
movslq (%rcx,%rsi,4), %rcx
movl (%rax,%rcx,4), %ecx
leaq 0x308f9(%rip), %rsi     # 0x42dbe
movb $0x0, %al
callq 0x21b0
movl -0x10(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x10(%rbp)
jmp 0x12460
movq -0x8(%rbp), %rdi
leaq 0x34b53(%rip), %rsi     # 0x47035
movb $0x0, %al
callq 0x21b0
jmp 0x124eb
addq $0x70, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)