// File: chhylp123[P]hifiasm/Overlaps.cpp
// Function: gen_self_scaf(ug_opt_t*, ma_ug_t*, ma_ug_t*, asg_t*, ma_sub_t*, ma_hit_t_alloc*, ma_hit_t_alloc*, R_to_U*, long long, float, long long, float, float, int, int, bub_label_t*, kvect_sec_t**, kvect_sec_t**, ma_ug_t**, kvec_asg_arc_t_warp*, kv_u_trans_t**)
void gen_self_scaf(ug_opt_t *opt, ma_ug_t *hu0, ma_ug_t *hu1, asg_t *sg, ma_sub_t *cov, ma_hit_t_alloc *src, ma_hit_t_alloc *rev, R_to_U *ri, 
long long tipsLen, float tip_drop_ratio, long long stops_threshold, float chimeric_rate, float drop_ratio, int max_hang, int min_ovlp, bub_label_t* b_mask_t, 
kvect_sec_t **sc0, kvect_sec_t **sc1, ma_ug_t **mug, kvec_asg_arc_t_warp *arcs, kv_u_trans_t **rs_trans)
{
   ma_ug_t *ug = NULL; 

   ug = ma_ug_gen(sg);

   ///print_debug_gfa(sg, ug, cov, "sb.utg", src, ri, opt->max_hang, opt->min_ovlp, 0, 0, 0);
   
   ///fprintf(stderr, "[M::%s] hu0\n", __func__);
   scaf_res_t *cp0 = gen_contig_path(opt, sg, hu0, ug); ///prt_scaf_res_t(cp0, ug, hu0, "h1tg");
   ///fprintf(stderr, "[M::%s] hu1\n", __func__);
   scaf_res_t *cp1 = gen_contig_path(opt, sg, hu1, ug); ///prt_scaf_res_t(cp1, ug, hu1, "h2tg");

   double_scaffold(ug, hu0, hu1, cp0, cp1, sg, cov, src, rev, tipsLen, tip_drop_ratio, stops_threshold, ri, chimeric_rate, drop_ratio, max_hang, min_ovlp, b_mask_t, opt, sc0, sc1, mug, arcs, rs_trans);

   ma_ug_destroy(ug); destroy_scaf_res_t(cp0); destroy_scaf_res_t(cp1); 

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x118, %rsp            # imm = 0x118
movq 0x68(%rbp), %rax
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)
movss %xmm0, -0x5c(%rbp)
movss %xmm1, -0x60(%rbp)
movss %xmm2, -0x64(%rbp)
movq $0x0, -0x70(%rbp)
movq -0x48(%rbp), %rdi
callq 0xe5910
movq %rax, -0x70(%rbp)
movq -0x30(%rbp), %rdi
movq -0x48(%rbp), %rsi
movq -0x38(%rbp), %rdx
movq -0x70(%rbp), %rcx
callq 0x2ff990
movq %rax, -0x78(%rbp)
movq -0x30(%rbp), %rdi
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
movq -0x70(%rbp), %rcx
callq 0x2ff990
movq %rax, -0x80(%rbp)
movq -0x70(%rbp), %rdi
movq -0x38(%rbp), %rsi
movq -0x40(%rbp), %rdx
movq -0x78(%rbp), %rcx
movq -0x80(%rbp), %r8
movq -0x48(%rbp), %r9
movq -0x50(%rbp), %rax
movq %rax, -0xc0(%rbp)
movq -0x58(%rbp), %rax
movq %rax, -0xb8(%rbp)
movq 0x10(%rbp), %rax
movq %rax, -0xb0(%rbp)
movq 0x20(%rbp), %rax
movq %rax, -0xa8(%rbp)
movss -0x5c(%rbp), %xmm0
movq 0x28(%rbp), %rax
movq %rax, -0xa0(%rbp)
movq 0x18(%rbp), %rax
movq %rax, -0x98(%rbp)
movss -0x60(%rbp), %xmm1
movss -0x64(%rbp), %xmm2
movl 0x30(%rbp), %eax
movl %eax, -0x8c(%rbp)
movl 0x38(%rbp), %r13d
movq 0x40(%rbp), %r12
movq -0x30(%rbp), %r15
movq 0x48(%rbp), %r14
movq 0x50(%rbp), %rbx
movq 0x58(%rbp), %r11
movq 0x60(%rbp), %r10
movq 0x68(%rbp), %rax
movq %rax, -0x88(%rbp)
movq -0xc0(%rbp), %rax
movq %rax, (%rsp)
movq -0xb8(%rbp), %rax
movq %rax, 0x8(%rsp)
movq -0xb0(%rbp), %rax
movq %rax, 0x10(%rsp)
movq -0xa8(%rbp), %rax
movq %rax, 0x18(%rsp)
movq -0xa0(%rbp), %rax
movq %rax, 0x20(%rsp)
movq -0x98(%rbp), %rax
movq %rax, 0x28(%rsp)
movl -0x8c(%rbp), %eax
movl %eax, 0x30(%rsp)
movq -0x88(%rbp), %rax
movl %r13d, 0x38(%rsp)
movq %r12, 0x40(%rsp)
movq %r15, 0x48(%rsp)
movq %r14, 0x50(%rsp)
movq %rbx, 0x58(%rsp)
movq %r11, 0x60(%rsp)
movq %r10, 0x68(%rsp)
movq %rax, 0x70(%rsp)
callq 0x131d50
movq -0x70(%rbp), %rdi
callq 0xcd6f0
movq -0x78(%rbp), %rdi
callq 0x13c50
movq -0x80(%rbp), %rdi
callq 0x13c50
addq $0x118, %rsp            # imm = 0x118
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax,%rax)