// File: chhylp123[P]hifiasm/anchor.cpp
// Function: ha_get_ul_candidates_interface(ha_abufl_s*, long, char*, unsigned long, unsigned long, unsigned long, ul_idx_t const*, overlap_region_alloc*, overlap_region_alloc*, Candidates_list*, double, int, int, kvec_t_u8_warp*, kvec_t_u64_warp*, overlap_region*, kvec_t_u64_warp*, st_mt_t*, unsigned int, void*)
void ha_get_ul_candidates_interface(ha_abufl_t *ab, int64_t rid, char* rs, uint64_t rl, uint64_t mz_w, uint64_t mz_k, const ul_idx_t *uref, overlap_region_alloc *overlap_list, overlap_region_alloc *overlap_list_hp, Candidates_list *cl, double bw_thres, 
								 int max_n_chain, int keep_whole_chain, kvec_t_u8_warp* k_flag, kvec_t_u64_warp* chain_idx, overlap_region* f_cigar, kvec_t_u64_warp* dbg_ct, st_mt_t *sp, uint32_t high_occ, void *km)
{
	extern void *ha_flt_tab;
	extern ha_pt_t *ha_idx;

	ha_get_new_ul_candidates(ab, rid, rs, rl, mz_w, mz_k, uref, overlap_list, cl, bw_thres, max_n_chain, keep_whole_chain, k_flag, chain_idx, ha_flt_tab, ha_idx, f_cigar, dbg_ct, sp, high_occ, km);
	if(km) {
		ha_abufl_free_buf(km, ab, 1); 
		destory_Candidates_list_buf(km, cl, 1); 
	}
	ks_introsort_or_xs(overlap_list->length, overlap_list->list);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd8, %rsp
movq 0x70(%rbp), %rax
movl 0x68(%rbp), %eax
movq 0x60(%rbp), %rax
movq 0x58(%rbp), %rax
movq 0x50(%rbp), %rax
movq 0x48(%rbp), %rax
movq 0x40(%rbp), %rax
movl 0x38(%rbp), %eax
movl 0x30(%rbp), %eax
movq 0x28(%rbp), %rax
movq 0x20(%rbp), %rax
movq 0x18(%rbp), %rax
movq 0x10(%rbp), %rax
movq %rdi, -0x30(%rbp)
movq %rsi, -0x38(%rbp)
movq %rdx, -0x40(%rbp)
movq %rcx, -0x48(%rbp)
movq %r8, -0x50(%rbp)
movq %r9, -0x58(%rbp)
movsd %xmm0, -0x60(%rbp)
movq -0x30(%rbp), %rdi
movq -0x38(%rbp), %rsi
movq -0x40(%rbp), %rdx
movq -0x48(%rbp), %rcx
movq -0x50(%rbp), %r8
movq -0x58(%rbp), %r9
movq 0x10(%rbp), %rax
movq %rax, -0x90(%rbp)
movq 0x18(%rbp), %rax
movq %rax, -0x88(%rbp)
movq 0x28(%rbp), %rax
movq %rax, -0x80(%rbp)
movsd -0x60(%rbp), %xmm0
movl 0x30(%rbp), %eax
movl %eax, -0x78(%rbp)
movl 0x38(%rbp), %eax
movl %eax, -0x74(%rbp)
movq 0x40(%rbp), %rax
movq %rax, -0x70(%rbp)
movq 0x48(%rbp), %r13
leaq 0x221954(%rip), %rax    # 0x3c54d0
movq (%rax), %r12
leaq 0x221952(%rip), %rax    # 0x3c54d8
movq (%rax), %r15
movq 0x50(%rbp), %r14
movq 0x58(%rbp), %rbx
movq 0x60(%rbp), %r11
movl 0x68(%rbp), %r10d
movq 0x70(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x90(%rbp), %rax
movq %rax, (%rsp)
movq -0x88(%rbp), %rax
movq %rax, 0x8(%rsp)
movq -0x80(%rbp), %rax
movq %rax, 0x10(%rsp)
movl -0x78(%rbp), %eax
movl %eax, 0x18(%rsp)
movl -0x74(%rbp), %eax
movl %eax, 0x20(%rsp)
movq -0x70(%rbp), %rax
movq %rax, 0x28(%rsp)
movq -0x68(%rbp), %rax
movq %r13, 0x30(%rsp)
movq %r12, 0x38(%rsp)
movq %r15, 0x40(%rsp)
movq %r14, 0x48(%rsp)
movq %rbx, 0x50(%rsp)
movq %r11, 0x58(%rsp)
movl %r10d, 0x60(%rsp)
movq %rax, 0x68(%rsp)
callq 0x1a1440
cmpq $0x0, 0x70(%rbp)
je 0x1a3c34
movq 0x70(%rbp), %rdi
movq -0x30(%rbp), %rsi
movl $0x1, %edx
callq 0x1a0760
movq 0x70(%rbp), %rdi
movq 0x28(%rbp), %rsi
movl $0x1, %edx
callq 0x230f0
movq 0x18(%rbp), %rax
movq 0x10(%rax), %rdi
movq 0x18(%rbp), %rax
movq (%rax), %rsi
callq 0x19d6c0
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nopw (%rax,%rax)