// File: /workspace/github_c_makefile_star2_O1/c-zhou[P]oatk/syncmer.c
// Function: print_syncmer_on_seq
void print_syncmer_on_seq(sr_t *sr, uint32_t n, int k, int w, FILE *fo)
{
    if (n >= sr->n) return;
    if ((sr->m_pos[n]>>1) == MAX_RD_LEN) return; // this is a corrected mer
    fprintf(fo, ">%lu_%d_%u_%lu_%u\t", sr->sid, n, sr->m_pos[n] >> 1, sr->s_mer[n] & 1, sr->m_pos[n] & 1);
    fprintf(fo, "RD:Z:%lu\t", sr->sid);
    fprintf(fo, "MM:Z:");
    fputs_smer(sr->s_mer[n] >> 1, k, fo);
    fputc('\t', fo);
    fprintf(fo, "KH:Z:%lu\n", sr->k_mer[n]);
    fputs_kmer(sr->hoco_s, sr->m_pos[n], w, fo);
    fputc('\n', fo);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
cmpl %esi, 0x38(%rdi)
jbe 0xe84e
movq %r8, %rbx
movl %esi, %r10d
movq %rdi, %r15
movq 0x40(%rdi), %rax
movl %esi, %edi
movl (%rax,%rdi,4), %eax
movl %eax, %r8d
shrl %r8d
cmpl $0x7fffffff, %r8d       # imm = 0x7FFFFFFF
jne 0xe85d
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl %edx, %r12d
movq %rcx, 0x18(%rsp)
movq (%r15), %rdx
movq 0x48(%r15), %rsi
movq %rdi, 0x8(%rsp)
movq (%rsi,%rdi,8), %r9
andl $0x1, %r9d
andl $0x1, %eax
movl %eax, (%rsp)
leaq 0xf9a1(%rip), %rsi      # 0x1e227
movq %rbx, %rdi
movl %r10d, %ecx
xorl %eax, %eax
callq 0x2290
movq (%r15), %rdx
leaq 0xf99d(%rip), %rsi      # 0x1e23a
movq %rbx, %rdi
xorl %eax, %eax
callq 0x2290
leaq 0xf996(%rip), %rdi      # 0x1e244
movl $0x5, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x2470
testl %r12d, %r12d
jle 0xe907
movq 0x48(%r15), %rax
movq 0x8(%rsp), %rcx
movq (%rax,%rcx,8), %r14
shrq %r14
movl %r12d, %r13d
leal -0x2(,%r12,2), %ebp
leaq 0xf629(%rip), %r12      # 0x1df10
movq %r14, %rax
movl %ebp, %ecx
shrq %cl, %rax
andl $0x3, %eax
movsbl (%rax,%r12), %edi
movq %rbx, %rsi
callq 0x2210
addl $-0x2, %ebp
decq %r13
jne 0xe8e7
movl $0x9, %edi
movq %rbx, %rsi
callq 0x2210
movq 0x50(%r15), %rax
movq 0x8(%rsp), %r12
movq (%rax,%r12,8), %rdx
leaq 0xf922(%rip), %rsi      # 0x1e24a
xorl %r14d, %r14d
movq %rbx, %rdi
xorl %eax, %eax
callq 0x2290
movq 0x40(%r15), %rax
movl (%rax,%r12,4), %ecx
movl %ecx, %eax
movl %ecx, %esi
movl %ecx, 0x8(%rsp)
shrl %eax
movq 0x18(%rsp), %rdx
leal (%rax,%rdx), %ecx
decl %ecx
movl %ecx, %r12d
notl %r12d
addl %r12d, %r12d
andl $0x6, %r12d
movl %esi, %ebp
andl $0x6, %ebp
addl %edx, %eax
addl $0x2, %eax
testl %ecx, %ecx
cmovnsl %ecx, %eax
sarl $0x2, %eax
movl %esi, %ecx
shrl $0x3, %ecx
movl %eax, 0x14(%rsp)
movl %eax, %r13d
subl %ecx, %r13d
leal 0x1(%r13), %eax
movslq %eax, %rdi
movq %rdi, 0x28(%rsp)
movq 0x18(%r15), %rax
movq %rcx, 0x20(%rsp)
addq %rcx, %rax
movq %rax, 0x30(%rsp)
callq 0x2320
movq %rax, %r15
movq %rax, %rdi
movq 0x30(%rsp), %rsi
movq 0x28(%rsp), %rdx
callq 0x22c0
movq %r13, %r10
testb $0x1, 0x8(%rsp)
cmovnel %r12d, %ebp
je 0xea23
movl %r10d, %eax
testl %r10d, %r10d
jle 0xea08
movl %r10d, %eax
xorl %r14d, %r14d
leaq 0xfb97(%rip), %rcx      # 0x1e570
movzbl (%r15,%r14), %edx
movzbl (%r15,%rax), %esi
movb (%rsi,%rcx), %sil
movb %sil, (%r15,%r14)
movb (%rdx,%rcx), %dl
movb %dl, (%r15,%rax)
incq %r14
decq %rax
cmpq %rax, %r14
jl 0xe9d9
movl 0x14(%rsp), %eax
subl 0x20(%rsp), %eax
subl %r14d, %eax
cmpl %eax, %r14d
jne 0xea23
movl %r14d, %eax
movzbl (%r15,%rax), %ecx
leaq 0xfb54(%rip), %rdx      # 0x1e570
movb (%rcx,%rdx), %cl
movb %cl, (%r15,%rax)
movq 0x18(%rsp), %r13
leal -0x1(%r13), %edx
testl %r10d, %r10d
jle 0xea65
movl $0x8, %eax
subl %ebp, %eax
movl %r10d, %esi
xorl %edi, %edi
movzbl (%r15,%rdi), %r8d
movl %ebp, %ecx
shll %cl, %r8d
movzbl 0x1(%r15,%rdi), %r9d
movl %eax, %ecx
shrl %cl, %r9d
orl %r8d, %r9d
movb %r9b, (%r15,%rdi)
leaq 0x1(%rdi), %rcx
movq %rcx, %rdi
cmpq %rcx, %rsi
jne 0xea3d
movslq %r10d, %rax
movzbl (%r15,%rax), %esi
movl %ebp, %ecx
shll %cl, %esi
movb %sil, (%r15,%rax)
leal 0x3(%rdx), %eax
testl %edx, %edx
cmovnsl %edx, %eax
sarl $0x2, %eax
movl %r13d, %ecx
andl $0x3, %ecx
leaq 0xfbe3(%rip), %rsi      # 0x1e670
movb (%rcx,%rsi), %cl
cltq
andb %cl, (%r15,%rax)
testl %edx, %edx
js 0xead5
xorl %ebp, %ebp
leaq 0xf46d(%rip), %r14      # 0x1df10
xorl %r12d, %r12d
movl %r12d, %eax
shrl $0x2, %eax
movzbl (%r15,%rax), %eax
movl %ebp, %ecx
notb %cl
andb $0x6, %cl
shrl %cl, %eax
andl $0x3, %eax
movsbl (%rax,%r14), %edi
movq %rbx, %rsi
callq 0x2210
incl %r12d
addl $0x2, %ebp
cmpl %r12d, %r13d
jne 0xeaa6
movq %r15, %rdi
callq 0x2060
movl $0xa, %edi
movq %rbx, %rsi
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2210