// File: /workspace/github_c_makefile_star2_O3/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 0xf089
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 0xf098
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 0x111f6(%rip), %rsi     # 0x202b7
movq %rbx, %rdi
movl %r10d, %ecx
xorl %eax, %eax
callq 0x2280
movq (%r15), %rdx
leaq 0x111f2(%rip), %rsi     # 0x202ca
movq %rbx, %rdi
xorl %eax, %eax
callq 0x2280
leaq 0x111eb(%rip), %rdi     # 0x202d4
movl $0x5, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x2460
testl %r12d, %r12d
jle 0xf142
movq 0x48(%r15), %rax
movq 0x8(%rsp), %rcx
movq (%rax,%rcx,8), %r14
shrq %r14
movl %r12d, %r13d
leal -0x2(,%r12,2), %ebp
leaq 0x10e2e(%rip), %r12     # 0x1ff50
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 0xf122
movl $0x9, %edi
movq %rbx, %rsi
callq 0x2210
movq 0x50(%r15), %rax
movq 0x8(%rsp), %r12
movq (%rax,%r12,8), %rdx
leaq 0x11177(%rip), %rsi     # 0x202da
xorl %r14d, %r14d
movq %rbx, %rdi
xorl %eax, %eax
callq 0x2280
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, %r13d
notl %r13d
addl %r13d, %r13d
andl $0x6, %r13d
movl %esi, %r12d
andl $0x6, %r12d
addl %edx, %eax
addl $0x2, %eax
testl %ecx, %ecx
cmovnsl %ecx, %eax
sarl $0x2, %eax
movl %esi, %edx
shrl $0x3, %edx
movq %r15, %rcx
movl %eax, 0x14(%rsp)
movl %eax, %r15d
subl %edx, %r15d
leal 0x1(%r15), %eax
movslq %eax, %rdi
movq %rdi, 0x28(%rsp)
movq 0x18(%rcx), %rax
movq %rdx, 0x20(%rsp)
addq %rdx, %rax
movq %rax, 0x30(%rsp)
callq 0x2310
movq %rax, %rbp
movq %rax, %rdi
movq 0x30(%rsp), %rsi
movq 0x28(%rsp), %rdx
callq 0x22b0
testb $0x1, 0x8(%rsp)
cmovnel %r13d, %r12d
je 0xf261
movl %r15d, %eax
testl %r15d, %r15d
jle 0xf247
movl %r15d, %eax
xorl %r14d, %r14d
leaq 0x113ea(%rip), %rcx     # 0x20600
movzbl (%rbp,%r14), %edx
movzbl (%rbp,%rax), %esi
movb (%rsi,%rcx), %sil
movb %sil, (%rbp,%r14)
movb (%rdx,%rcx), %dl
movb %dl, (%rbp,%rax)
incq %r14
decq %rax
cmpq %rax, %r14
jl 0xf216
movl 0x14(%rsp), %eax
subl 0x20(%rsp), %eax
subl %r14d, %eax
cmpl %eax, %r14d
jne 0xf261
movl %eax, %eax
movzbl (%rbp,%rax), %ecx
leaq 0x113a6(%rip), %rdx     # 0x20600
movb (%rcx,%rdx), %cl
movb %cl, (%rbp,%rax)
movq 0x18(%rsp), %r13
leal -0x1(%r13), %edi
testl %r15d, %r15d
jle 0xf29e
movl %r15d, %edx
movb (%rbp), %cl
xorl %esi, %esi
movzbl %cl, %eax
movzbl 0x1(%rbp,%rsi), %r8d
shll $0x8, %eax
orl %r8d, %eax
movl %r12d, %ecx
shll %cl, %eax
movb %ah, (%rbp,%rsi)
leaq 0x1(%rsi), %rax
movl %r8d, %ecx
movq %rax, %rsi
cmpq %rax, %rdx
jne 0xf277
movslq %r15d, %rax
movzbl (%rbp,%rax), %edx
movl %r12d, %ecx
shll %cl, %edx
movb %dl, (%rbp,%rax)
leal 0x3(%rdi), %eax
testl %edi, %edi
cmovnsl %edi, %eax
sarl $0x2, %eax
movl %r13d, %ecx
andl $0x3, %ecx
leaq 0x11439(%rip), %rdx     # 0x20700
movb (%rcx,%rdx), %cl
cltq
andb %cl, (%rbp,%rax)
testl %edi, %edi
js 0xf312
xorl %r14d, %r14d
leaq 0x10c72(%rip), %r15     # 0x1ff50
xorl %r12d, %r12d
movl %r12d, %eax
shrl $0x2, %eax
movzbl (%rbp,%rax), %eax
movl %r14d, %ecx
notb %cl
andb $0x6, %cl
shrl %cl, %eax
andl $0x3, %eax
movsbl (%rax,%r15), %edi
movq %rbx, %rsi
callq 0x2210
incl %r12d
addl $0x2, %r14d
cmpl %r12d, %r13d
jne 0xf2e1
movq %rbp, %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