// File: /workspace/github_c_makefile_star2_O2/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 0xbb03
movq %r8, %r14
movl %esi, %r10d
movq %rdi, %r15
movq 0x40(%rdi), %rax
movl %esi, %r12d
movl (%rax,%r12,4), %eax
movl %eax, %r8d
shrl %r8d
cmpl $0x7fffffff, %r8d       # imm = 0x7FFFFFFF
jne 0xbb12
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl %edx, %r13d
movq %rcx, 0x18(%rsp)
movq (%r15), %rdx
movq 0x48(%r15), %rsi
movq (%rsi,%r12,8), %r9
andl $0x1, %r9d
andl $0x1, %eax
movl %eax, (%rsp)
leaq 0xe739(%rip), %rsi      # 0x1a26f
xorl %ebx, %ebx
movq %r14, %rdi
movl %r10d, %ecx
xorl %eax, %eax
callq 0x2280
movq (%r15), %rdx
leaq 0xe733(%rip), %rsi      # 0x1a282
movq %r14, %rdi
xorl %eax, %eax
callq 0x2280
leaq 0xe72c(%rip), %rdi      # 0x1a28c
pushq $0x5
popq %rsi
pushq $0x1
popq %rdx
movq %r14, %rcx
callq 0x2460
movq 0x48(%r15), %rax
movq %r12, 0x10(%rsp)
movq (%rax,%r12,8), %r12
shrq %r12
testl %r13d, %r13d
cmovgl %r13d, %ebx
leal -0x2(,%r13,2), %ebp
leaq 0xe37c(%rip), %r13      # 0x19f10
subq $0x1, %rbx
jb 0xbbb7
movq %r12, %rax
movl %ebp, %ecx
shrq %cl, %rax
andl $0x3, %eax
movsbl (%rax,%r13), %edi
movq %r14, %rsi
callq 0x2210
addl $-0x2, %ebp
jmp 0xbb94
pushq $0x9
popq %rdi
movq %r14, %rsi
callq 0x2210
movq 0x50(%r15), %rax
movq 0x10(%rsp), %r12
movq (%rax,%r12,8), %rdx
leaq 0xe6bc(%rip), %rsi      # 0x1a292
xorl %ebx, %ebx
movq %r14, %rdi
xorl %eax, %eax
callq 0x2280
movq 0x40(%r15), %rax
movl (%rax,%r12,4), %ecx
movl %ecx, %eax
movl %ecx, %edi
movl %ecx, 0x10(%rsp)
shrl %eax
movq 0x18(%rsp), %rcx
addl %ecx, %eax
decl %eax
movq %r15, %rsi
movl %eax, %r15d
notl %r15d
addl %r15d, %r15d
andl $0x6, %r15d
movl %edi, %r12d
andl $0x6, %r12d
pushq $0x4
popq %rcx
cltd
idivl %ecx
movl %edi, %edx
shrl $0x3, %edx
subl %edx, %eax
movq %rax, 0x30(%rsp)
leal 0x1(%rax), %ecx
movslq %ecx, %rdi
movq %rdi, 0x20(%rsp)
movq 0x18(%rsi), %rax
addq %rdx, %rax
movq %rax, 0x28(%rsp)
callq 0x2310
movq %rax, %rbp
movq %rax, %rdi
movq 0x28(%rsp), %rsi
movq 0x20(%rsp), %rdx
callq 0x22b0
movq 0x30(%rsp), %r8
testb $0x1, 0x10(%rsp)
cmovnel %r15d, %r12d
je 0xbcaa
movslq %r8d, %rdx
xorl %eax, %eax
leaq 0xe94d(%rip), %rcx      # 0x1a5c0
cmpq %rdx, %rax
jge 0xbc9c
movzbl (%rbp,%rax), %esi
movzbl (%rbp,%rdx), %edi
movb (%rdi,%rcx), %dil
movb %dil, (%rbp,%rax)
movb (%rsi,%rcx), %sil
movb %sil, (%rbp,%rdx)
incq %rax
decq %rdx
jmp 0xbc73
jne 0xbcaa
movzbl (%rbp,%rax), %edx
movb (%rdx,%rcx), %cl
movb %cl, (%rbp,%rax)
movq 0x18(%rsp), %rsi
leal -0x1(%rsi), %r15d
testl %r8d, %r8d
movl $0x0, %eax
cmovgl %r8d, %eax
cmpq %rbx, %rax
je 0xbce1
movzbl 0x1(%rbp,%rbx), %ecx
movzbl (%rbp,%rbx), %edx
shll $0x8, %edx
orl %ecx, %edx
movl %r12d, %ecx
shll %cl, %edx
movb %dh, (%rbp,%rbx)
incq %rbx
jmp 0xbcbf
movslq %r8d, %rax
movzbl (%rbp,%rax), %edx
movl %r12d, %ecx
shll %cl, %edx
movb %dl, (%rbp,%rax)
movl %r15d, %eax
cltd
pushq $0x4
popq %rcx
idivl %ecx
andl $0x3, %esi
leaq 0xe9bb(%rip), %rcx      # 0x1a6c0
movb (%rsi,%rcx), %cl
cltq
andb %cl, (%rbp,%rax)
xorl %ebx, %ebx
xorl %r12d, %r12d
cmpl %r15d, %r12d
jg 0xbd44
movl %r12d, %eax
shrl $0x2, %eax
movzbl (%rbp,%rax), %eax
movl %ebx, %ecx
notb %cl
andb $0x6, %cl
shrl %cl, %eax
andl $0x3, %eax
movsbl (%rax,%r13), %edi
movq %r14, %rsi
callq 0x2210
incl %r12d
addl $0x2, %ebx
jmp 0xbd13
movq %rbp, %rdi
callq 0x2060
pushq $0xa
popq %rdi
movq %r14, %rsi
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2210