// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/Overlaps.cpp
// Function: benchmark_hic_graph(asg_t*, ma_sub_t*, char*, ma_hit_t_alloc*, ma_hit_t_alloc*, long long, float, long long, R_to_U*, float, float, int, int, int, bub_label_t*)
void benchmark_hic_graph(asg_t *sg, ma_sub_t* coverage_cut, char* output_file_name, 
ma_hit_t_alloc* sources, ma_hit_t_alloc* reverse_sources, 
long long tipsLen, float tip_drop_ratio, long long stops_threshold, R_to_U* ruIndex, 
float chimeric_rate, float drop_ratio, int max_hang, int min_ovlp, int gap_fuzz, bub_label_t* b_mask_t)
{
    ma_ug_t *ug_1 = output_trio_unitig_graph(sg, coverage_cut, output_file_name, FATHER, sources, 
    reverse_sources, tipsLen, tip_drop_ratio, stops_threshold, ruIndex, 
    chimeric_rate, drop_ratio, max_hang, min_ovlp, gap_fuzz, 1, b_mask_t, NULL, NULL, NULL);

    ma_ug_t *ug_2 = output_trio_unitig_graph(sg, coverage_cut, output_file_name, MOTHER, sources, 
    reverse_sources, tipsLen, tip_drop_ratio, stops_threshold, ruIndex, 
    chimeric_rate, drop_ratio, max_hang, min_ovlp, gap_fuzz, 1, b_mask_t, NULL, NULL, NULL);
    fprintf(stderr, "ug_1->u.n: %u, ug_2->u.n: %u\n", (uint32_t)ug_1->u.n, (uint32_t)ug_2->u.n);
    ma_ug_t *ug = merge_utg(&ug_1, &ug_2);
    fprintf(stderr, "ug->u.n: %u\n", (uint32_t)ug->u.n);

    hic_benchmark(ug, sg);

    ma_ug_destroy(ug);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movss %xmm2, 0x6c(%rsp)
movss %xmm1, 0x68(%rsp)
movss %xmm0, 0x64(%rsp)
movq %r9, 0x88(%rsp)
movq %r8, %rax
movq %r8, 0xa0(%rsp)
movq %rcx, %r8
movq %rcx, 0x98(%rsp)
movq %rdx, 0x90(%rsp)
movq %rsi, 0x80(%rsp)
movq 0xf0(%rsp), %rcx
movq %rcx, 0x78(%rsp)
movq 0xf8(%rsp), %r10
movq %r10, 0x70(%rsp)
movl 0x100(%rsp), %r14d
movl 0x108(%rsp), %r13d
movl 0x110(%rsp), %ebp
movq 0x118(%rsp), %r15
xorps %xmm3, %xmm3
movups %xmm3, 0x40(%rsp)
movq %r15, 0x38(%rsp)
pushq $0x1
popq %r11
movl %r11d, 0x30(%rsp)
movl %ebp, 0x28(%rsp)
movl %r13d, 0x20(%rsp)
movl %r14d, 0x18(%rsp)
movq %r10, 0x10(%rsp)
movq %rcx, 0x8(%rsp)
movq %r9, (%rsp)
andq $0x0, 0x50(%rsp)
movq %rdi, %r12
movl %r11d, %ecx
movq %rax, %r9
callq 0x86cbc
movq %rax, %rbx
leaq 0xa8(%rsp), %rax
movq %rbx, (%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x40(%rsp)
movq %r15, 0x38(%rsp)
pushq $0x1
popq %rax
movl %eax, 0x30(%rsp)
movl %ebp, 0x28(%rsp)
movl %r13d, 0x20(%rsp)
movl %r14d, 0x18(%rsp)
movq 0x70(%rsp), %rax
movq %rax, 0x10(%rsp)
andq $0x0, 0x50(%rsp)
movq 0x78(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x88(%rsp), %rax
movq %rax, (%rsp)
pushq $0x2
popq %rcx
movq %r12, %rdi
movq 0x80(%rsp), %rsi
movq 0x90(%rsp), %rdx
movq 0x98(%rsp), %r8
movq 0xa0(%rsp), %r9
movss 0x64(%rsp), %xmm0
movss 0x68(%rsp), %xmm1
movss 0x6c(%rsp), %xmm2
callq 0x86cbc
leaq 0xb0(%rsp), %r14
movq %rax, (%r14)
movq 0x1c0ded(%rip), %r15    # 0x252fe0
movq (%r15), %rdi
movl (%rbx), %edx
movl (%rax), %ecx
leaq 0x156dc6(%rip), %rsi    # 0x1e8fc7
xorl %eax, %eax
callq 0x22b0
leaq 0xa8(%rsp), %rdi
movq %r14, %rsi
callq 0x91dfd
movq %rax, %rbx
movq (%r15), %rdi
movl (%rax), %edx
leaq 0x15976a(%rip), %rsi    # 0x1eb991
xorl %eax, %eax
callq 0x22b0
movq %rbx, %rdi
movq %r12, %rsi
callq 0x120292
movq %rbx, %rdi
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x6921d