// File: chhylp123[P]hifiasm/inter.cpp
// Function: gen_contig_self(ug_opt_t const*, asg_t*, ma_ug_t*, scaf_res_t*, ma_ug_t*, kv_u_trans_t*, unsigned long, bubble_type*, kv_u_trans_t*, unsigned int)
void gen_contig_self(const ug_opt_t *uopt, asg_t *sg, ma_ug_t *db, scaf_res_t *db_sc, ma_ug_t *gfa, kv_u_trans_t *ta, uint64_t soff, bubble_type *bu, kv_u_trans_t *res, uint32_t is_exact)
{
	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, ((is_exact)?(0.333333):(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(db, sg, db_sc, gfa->u.n);
	init_uldat_t(&sl, NULL, NULL, &opt, CHUNK_SIZE, asm_opt.thread_num, uopt, uu); sl.rg = sg; sl.ug = db;

	work_ctg_path_trans_self(&sl, sg, db, db_sc, gfa, ta, soff, is_exact, bu, res); 

	uu->ug = NULL; destroy_ul_idx_t(uu);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
subq $0x1f8, %rsp            # imm = 0x1F8
movl 0x28(%rbp), %eax
movq 0x20(%rbp), %rax
movq 0x18(%rbp), %rax
movq 0x10(%rbp), %rax
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
movq %r9, -0x38(%rbp)
callq 0x9690
leaq 0xc4a99(%rip), %rax     # 0x3c47f8
movl 0xd0(%rax), %esi
leaq 0xc4a8c(%rip), %rdi     # 0x3c47f8
callq 0x3b60
leaq 0xc4a80(%rip), %rax     # 0x3c47f8
movl 0xe8(%rax), %eax
movl %eax, -0x1ac(%rbp)
leaq 0xc4a6d(%rip), %rax     # 0x3c47f8
movl (%rax), %eax
andl $0x1, %eax
cmpl $0x0, %eax
setne %al
xorb $-0x1, %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, -0x1cc(%rbp)
movl -0x1ac(%rbp), %eax
movl %eax, -0x1c8(%rbp)
leaq 0xc4a42(%rip), %rax     # 0x3c47f8
movl 0xe8(%rax), %eax
movl %eax, -0x1c4(%rbp)
leaq 0xc4a2f(%rip), %rax     # 0x3c47f8
movsd 0x228(%rax), %xmm0
movsd %xmm0, -0x1c0(%rbp)
cmpl $0x0, 0x28(%rbp)
je 0x2ffdf1
movsd 0x824e1(%rip), %xmm0    # 0x3822c8
movsd %xmm0, -0x1d8(%rbp)
jmp 0x2ffe08
leaq 0xc4a00(%rip), %rax     # 0x3c47f8
movsd 0x228(%rax), %xmm0
movsd %xmm0, -0x1d8(%rbp)
movsd -0x1c0(%rbp), %xmm0
movl -0x1c4(%rbp), %r9d
movl -0x1c8(%rbp), %r8d
movl -0x1cc(%rbp), %esi
movsd -0x1d8(%rbp), %xmm1
leaq 0xc49c5(%rip), %rax     # 0x3c47f8
movsd 0x230(%rax), %xmm2
leaq 0xc49b6(%rip), %rax     # 0x3c47f8
movsd 0x238(%rax), %xmm3
leaq 0xc49a7(%rip), %rax     # 0x3c47f8
movl 0x240(%rax), %eax
leaq -0xc0(%rbp), %rdi
movl $0x13, %edx
movl $0xa, %ecx
movl %eax, (%rsp)
callq 0x282cf0
movq -0x20(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x28(%rbp), %rdx
movq -0x30(%rbp), %rax
movq (%rax), %rcx
callq 0x2fc850
movq %rax, -0x1b8(%rbp)
leaq 0xc4962(%rip), %rax     # 0x3c47f8
movslq 0x7c(%rax), %r9
movq -0x10(%rbp), %r10
movq -0x1b8(%rbp), %rax
leaq -0x1a8(%rbp), %rdi
xorl %ecx, %ecx
movl %ecx, %edx
leaq -0xc0(%rbp), %rcx
movl $0x3b9aca00, %r8d       # imm = 0x3B9ACA00
movq %rdx, %rsi
movq %r10, (%rsp)
movq %rax, 0x8(%rsp)
callq 0x2fd4f0
movq -0x18(%rbp), %rax
movq %rax, -0x188(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x190(%rbp)
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
movq -0x28(%rbp), %rcx
movq -0x30(%rbp), %r8
movq -0x38(%rbp), %r9
movq 0x10(%rbp), %rbx
movl 0x28(%rbp), %eax
movl %eax, %r11d
movq 0x18(%rbp), %r10
movq 0x20(%rbp), %rax
leaq -0x1a8(%rbp), %rdi
movq %rbx, (%rsp)
movq %r11, 0x8(%rsp)
movq %r10, 0x10(%rsp)
movq %rax, 0x18(%rsp)
callq 0x2ed620
movq -0x1b8(%rbp), %rax
movq $0x0, (%rax)
movq -0x1b8(%rbp), %rdi
callq 0x2fc8d0
addq $0x1f8, %rsp            # imm = 0x1F8
popq %rbx
popq %rbp
retq
nopl (%rax)