// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/Correct.cpp
// Function: debug_k_mer_hit_retrive(k_mer_hit*, hpc_t*, All_reads*, ul_idx_t const*, char*, UC_Read*, long, long)
int64_t debug_k_mer_hit_retrive(k_mer_hit *z, hpc_t *hpc_g, All_reads *rref, const ul_idx_t *uref, 
char* qstr, UC_Read *tu, int64_t id, int64_t rev)
{
    int64_t qs, qe, ts, te; char *q_string, *t_string;
    qe = z->self_offset+1; qs = qe - (z->cnt&(0xffu));
    te = z->offset+1; ts = te - (z->cnt&(0xffu));
    if(qe == qs) return 1;
    q_string = qstr + qs; 
    t_string = retrieve_str_seq_exz(tu, ts, te-ts, -1, -1, rev, uref, hpc_g, rref, id);
    fprintf(stderr, "[M::%s::] q_string::%.*s\n", __func__, (int32_t)(qe-qs), q_string);
    fprintf(stderr, "[M::%s::] t_string::%.*s\n", __func__, (int32_t)(te-ts), t_string);
    if(memcmp(q_string, t_string, qe-qs)) {
        fprintf(stderr, "[M::%s::] qsite::%u, tsite::%u\n", __func__, z->self_offset, z->offset);
        return 0;
    }
    return 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movzbl 0xc(%rdi), %r12d
movl $0x1, %ebx
testq %r12, %r12
jne 0x68220
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rdx, %rbp
movq %rdi, %r14
movq 0x58(%rsp), %rdi
movq 0x50(%rsp), %r10
movl 0x4(%r14), %edx
movl 0x8(%r14), %eax
incl %eax
subq %r12, %rax
incl %edx
subq %r12, %rdx
addq %rax, %r8
testq %rsi, %rsi
jne 0x682d1
movq %r9, %r13
movq %rcx, %r15
movq %r12, 0x8(%r9)
movq (%r9), %rax
cmpq %r12, 0x10(%r9)
movq %r8, 0x10(%rsp)
jge 0x6828d
movq %rax, %rdi
movq %r12, %rsi
movq %rdx, 0x8(%rsp)
callq 0x2370
movq 0x8(%rsp), %rdx
movq 0x50(%rsp), %r10
movq 0x58(%rsp), %rdi
movq %rax, (%r13)
movq %r12, 0x10(%r13)
xorl %r9d, %r9d
cmpq $-0x1, %rdx
sete %r9b
subq %r9, %rax
cmpq $-0x2, %rdx
movq $-0x2, %r8
cmovbq %rdx, %r8
addq %r12, %r9
testq %r15, %r15
jne 0x682ea
testq %rbp, %rbp
je 0x6830f
movzbl %dil, %ecx
movq %rax, %rdi
movq %r8, %rsi
movq %r9, %rdx
movq %rbp, %r8
movq %r10, %r9
callq 0x32ef8
jmp 0x6830f
movq (%rsi), %rax
movq 0x10(%rax), %rax
leaq (%r10,%r10,4), %rcx
movq 0x20(%rax,%rcx,8), %r15
testb %dil, %dil
jne 0x6831a
xorl %eax, %eax
jmp 0x68327
movq (%r15), %rcx
leaq (%r10,%r10,4), %rdx
shlq $0x3, %rdx
addq 0x10(%rcx), %rdx
movq $0x0, (%rsp)
movzbl %dil, %ecx
xorl %edi, %edi
movq %rax, %rsi
callq 0x36049
movq (%r13), %r15
movq 0x10(%rsp), %r8
jmp 0x6832d
leaq (%rax,%rcx,8), %rax
movl (%rax), %eax
shrl %eax
andl $0x3fffffff, %eax       # imm = 0x3FFFFFFF
addq %rdx, %rax
addq %rax, %r15
movq 0x22ccac(%rip), %r13    # 0x294fe0
movq (%r13), %rdi
leaq 0x1cae1f(%rip), %rsi    # 0x23315e
leaq 0x1cae32(%rip), %rdx    # 0x233178
movl %r12d, %ecx
movq %r8, %rbp
xorl %eax, %eax
callq 0x22b0
movq (%r13), %rdi
leaq 0x1cae32(%rip), %rsi    # 0x233190
leaq 0x1cae13(%rip), %rdx    # 0x233178
movl %r12d, %ecx
movq %r15, %r8
xorl %eax, %eax
callq 0x22b0
movq %rbp, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x21a0
testl %eax, %eax
je 0x6820e
movq 0x22cc51(%rip), %rax    # 0x294fe0
movq (%rax), %rdi
movl 0x4(%r14), %r8d
movl 0x8(%r14), %ecx
leaq 0x1cae09(%rip), %rsi    # 0x2331aa
leaq 0x1cadd0(%rip), %rdx    # 0x233178
xorl %ebx, %ebx
xorl %eax, %eax
callq 0x22b0
jmp 0x6820e