// File: /workspace/github_cpp_makefile_star2_O1/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 0x68576
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 0x68629
movq %r9, %r13
movq %rcx, %r15
movq %r8, 0x10(%rsp)
movq %r12, 0x8(%r9)
cmpq %r12, 0x10(%r9)
jge 0x685e1
movq (%r13), %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)
movq (%r13), %rsi
xorl %r9d, %r9d
cmpq $-0x1, %rdx
sete %r9b
subq %r9, %rsi
cmpq $-0x2, %rdx
movq $-0x2, %r8
cmovbq %rdx, %r8
addq %r12, %r9
testq %r15, %r15
jne 0x68642
testq %rbp, %rbp
je 0x68664
movzbl %dil, %ecx
movq %rsi, %rdi
movq %r8, %rsi
movq %r9, %rdx
movq %rbp, %r8
movq %r10, %r9
callq 0x337f7
jmp 0x68664
movq (%rsi), %rax
movq 0x10(%rax), %rax
leaq (%r10,%r10,4), %rcx
movq 0x20(%rax,%rcx,8), %r15
testb %dil, %dil
jne 0x6866f
xorl %eax, %eax
jmp 0x6867c
movq (%r15), %rax
leaq (%r10,%r10,4), %rdx
shlq $0x3, %rdx
addq 0x10(%rax), %rdx
movq $0x0, (%rsp)
movzbl %dil, %ecx
xorl %edi, %edi
callq 0x36b0d
movq (%r13), %r15
movq 0x10(%rsp), %r8
jmp 0x68682
leaq (%rax,%rcx,8), %rax
movl (%rax), %eax
shrl %eax
andl $0x3fffffff, %eax       # imm = 0x3FFFFFFF
addq %rdx, %rax
addq %rax, %r15
movq 0x221957(%rip), %r13    # 0x289fe0
movq (%r13), %rdi
leaq 0x1be9ba(%rip), %rsi    # 0x22704e
leaq 0x1be9cd(%rip), %rdx    # 0x227068
movl %r12d, %ecx
movq %r8, %rbp
xorl %eax, %eax
callq 0x22b0
movq (%r13), %rdi
leaq 0x1be9cd(%rip), %rsi    # 0x227080
leaq 0x1be9ae(%rip), %rdx    # 0x227068
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 0x68564
movq 0x2218fc(%rip), %rax    # 0x289fe0
movq (%rax), %rdi
movl 0x4(%r14), %r8d
movl 0x8(%r14), %ecx
leaq 0x1be9a4(%rip), %rsi    # 0x22709a
leaq 0x1be96b(%rip), %rdx    # 0x227068
xorl %ebx, %ebx
xorl %eax, %eax
callq 0x22b0
jmp 0x68564