// File: /workspace/github_cpp_makefile_star2_O1/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x108, %rsp            # imm = 0x108
movss %xmm2, 0x94(%rsp)
movss %xmm1, 0x90(%rsp)
movss %xmm0, 0x8c(%rsp)
movq %r9, 0xd0(%rsp)
movq %r8, 0xd8(%rsp)
movq %rcx, %rbx
movq %rdx, %r13
movq %rsi, %r15
movq %rsi, 0xa0(%rsp)
movq %rdi, %r12
movq 0x140(%rsp), %rax
movq %rax, 0xc8(%rsp)
movq 0x150(%rsp), %rax
movq %rax, 0xc0(%rsp)
movq 0x158(%rsp), %rax
movq %rax, 0xb8(%rsp)
movq 0x148(%rsp), %rax
movq %rax, 0xb0(%rsp)
movl 0x160(%rsp), %eax
movl %eax, 0x88(%rsp)
movl 0x168(%rsp), %eax
movl %eax, 0x84(%rsp)
movq 0x170(%rsp), %rax
movq %rax, 0xa8(%rsp)
movups 0x178(%rsp), %xmm0
movaps %xmm0, 0xf0(%rsp)
movups 0x188(%rsp), %xmm0
movaps %xmm0, 0xe0(%rsp)
movq 0x198(%rsp), %rax
movq %rax, 0x98(%rsp)
movq %rcx, %rdi
callq 0xb0285
movq %rax, %rbp
movq %r12, %rdi
movq %rbx, %rsi
movq %r15, %rdx
movq %rax, %rcx
callq 0x2870e
movq %rax, %r15
movq %r12, %rdi
movq %rbx, %rsi
movq %r13, %rdx
movq %rbp, %rcx
callq 0x2870e
movq %rax, %r14
movq 0x98(%rsp), %rax
movq %rax, 0x70(%rsp)
movaps 0xe0(%rsp), %xmm0
movups %xmm0, 0x60(%rsp)
movaps 0xf0(%rsp), %xmm0
movups %xmm0, 0x50(%rsp)
movq %r12, 0x48(%rsp)
movq 0xa8(%rsp), %rax
movq %rax, 0x40(%rsp)
movl 0x84(%rsp), %eax
movl %eax, 0x38(%rsp)
movl 0x88(%rsp), %eax
movl %eax, 0x30(%rsp)
movq 0xb0(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0xb8(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0xc0(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0xc8(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0xd0(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0xd8(%rsp), %rax
movq %rax, (%rsp)
movq %rbp, %rdi
movq 0xa0(%rsp), %rsi
movq %r13, %rdx
movq %r15, %rcx
movq %rbx, %r9
movq %r14, %r8
movss 0x8c(%rsp), %xmm0
movss 0x90(%rsp), %xmm1
movss 0x94(%rsp), %xmm2
callq 0xdf959
movq %rbp, %rdi
callq 0xa0004
movq %r15, %rdi
callq 0x38876
movq %r14, %rdi
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x38876