// File: chhylp123[P]hifiasm/inter.cpp
// Function: gen_contig_trans(ug_opt_t const*, asg_t*, ma_ug_t*, scaf_res_t*, ma_ug_t*, scaf_res_t*, ma_ug_t*, kv_u_trans_t*, unsigned int, unsigned int, bubble_type*, kv_u_trans_t*)
void gen_contig_trans(const ug_opt_t *uopt, asg_t *sg, ma_ug_t *qry, scaf_res_t *qry_sc, ma_ug_t *ref, scaf_res_t *ref_sc, ma_ug_t *gfa, kv_u_trans_t *ta, uint32_t qoff, uint32_t toff, bubble_type *bu, kv_u_trans_t *res)
{
	mg_idxopt_t opt; uldat_t sl; int32_t cutoff; 
	init_aux_table(); ha_opt_update_cov(&asm_opt, asm_opt.hom_cov);
	cutoff = asm_opt.max_n_chain;
	init_mg_opt(&opt, !(asm_opt.flag&HA_F_NO_HPC), 19, 10, cutoff, asm_opt.max_n_chain, asm_opt.ul_error_rate, asm_opt.ul_error_rate, asm_opt.ul_error_rate_low, asm_opt.ul_error_rate_hpc, asm_opt.ul_ec_round);
	ul_idx_t *uu = gen_ul_idx_t_sc(ref, sg, ref_sc, gfa->u.n);
	init_uldat_t(&sl, NULL, NULL, &opt, CHUNK_SIZE, asm_opt.thread_num, uopt, uu); sl.rg = sg; sl.ug = qry;

	work_ctg_path_trans(&sl, sg, qry, qry_sc, ref, ref_sc, gfa, ta, qoff, toff, bu, res); uu->ug = NULL;
	destroy_ul_idx_t(uu);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x1e8, %rsp            # imm = 0x1E8
movq 0x38(%rbp), %rax
movq 0x30(%rbp), %rax
movl 0x28(%rbp), %eax
movl 0x20(%rbp), %eax
movq 0x18(%rbp), %rax
movq 0x10(%rbp), %rax
movq %rdi, -0x20(%rbp)
movq %rsi, -0x28(%rbp)
movq %rdx, -0x30(%rbp)
movq %rcx, -0x38(%rbp)
movq %r8, -0x40(%rbp)
movq %r9, -0x48(%rbp)
callq 0x9690
leaq 0xc4c7e(%rip), %rax     # 0x3c47f8
movl 0xd0(%rax), %esi
leaq 0xc4c71(%rip), %rdi     # 0x3c47f8
callq 0x3b60
leaq 0xc4c65(%rip), %rax     # 0x3c47f8
movl 0xe8(%rax), %eax
movl %eax, -0x1bc(%rbp)
leaq 0xc4c52(%rip), %rax     # 0x3c47f8
movl (%rax), %eax
andl $0x1, %eax
cmpl $0x0, %eax
setne %al
xorb $-0x1, %al
andb $0x1, %al
movzbl %al, %esi
movl -0x1bc(%rbp), %r8d
leaq 0xc4c32(%rip), %rax     # 0x3c47f8
movl 0xe8(%rax), %r9d
leaq 0xc4c24(%rip), %rax     # 0x3c47f8
movsd 0x228(%rax), %xmm0
leaq 0xc4c15(%rip), %rax     # 0x3c47f8
movsd 0x228(%rax), %xmm1
leaq 0xc4c06(%rip), %rax     # 0x3c47f8
movsd 0x230(%rax), %xmm2
leaq 0xc4bf7(%rip), %rax     # 0x3c47f8
movsd 0x238(%rax), %xmm3
leaq 0xc4be8(%rip), %rax     # 0x3c47f8
movl 0x240(%rax), %eax
leaq -0xd0(%rbp), %rdi
movl $0x13, %edx
movl $0xa, %ecx
movl %eax, (%rsp)
callq 0x282cf0
movq -0x40(%rbp), %rdi
movq -0x28(%rbp), %rsi
movq -0x48(%rbp), %rdx
movq 0x10(%rbp), %rax
movq (%rax), %rcx
callq 0x2fc850
movq %rax, -0x1c8(%rbp)
leaq 0xc4ba3(%rip), %rax     # 0x3c47f8
movslq 0x7c(%rax), %r9
movq -0x20(%rbp), %r10
movq -0x1c8(%rbp), %rax
leaq -0x1b8(%rbp), %rdi
xorl %ecx, %ecx
movl %ecx, %edx
leaq -0xd0(%rbp), %rcx
movl $0x3b9aca00, %r8d       # imm = 0x3B9ACA00
movq %rdx, %rsi
movq %r10, (%rsp)
movq %rax, 0x8(%rsp)
callq 0x2fd4f0
movq -0x28(%rbp), %rax
movq %rax, -0x198(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0x1a0(%rbp)
movq -0x28(%rbp), %rsi
movq -0x30(%rbp), %rdx
movq -0x38(%rbp), %rcx
movq -0x40(%rbp), %r8
movq -0x48(%rbp), %r9
movq 0x10(%rbp), %r15
movq 0x18(%rbp), %r14
movl 0x20(%rbp), %ebx
movl 0x28(%rbp), %r11d
movq 0x30(%rbp), %r10
movq 0x38(%rbp), %rax
leaq -0x1b8(%rbp), %rdi
movq %r15, (%rsp)
movq %r14, 0x8(%rsp)
movl %ebx, 0x10(%rsp)
movl %r11d, 0x18(%rsp)
movq %r10, 0x20(%rsp)
movq %rax, 0x28(%rsp)
callq 0x2ed000
movq -0x1c8(%rbp), %rax
movq $0x0, (%rax)
movq -0x1c8(%rbp), %rdi
callq 0x2fc8d0
addq $0x1e8, %rsp            # imm = 0x1E8
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop