// File: chhylp123[P]hifiasm/Overlaps.cpp
// Function: adjust_utg_by_primary(ma_ug_t**, asg_t*, float, ma_hit_t_alloc*, ma_hit_t_alloc*, ma_sub_t*, long long, float, long long, R_to_U*, float, float, int, int, kvec_asg_arc_t_warp*, hap_cov_t**, bub_label_t*, unsigned int, unsigned int)
void adjust_utg_by_primary(ma_ug_t **ug, asg_t* read_g, float drop_rate,
ma_hit_t_alloc* sources, ma_hit_t_alloc* reverse_sources, ma_sub_t* coverage_cut, 
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,
kvec_asg_arc_t_warp* new_rtg_edges, hap_cov_t **i_cov, bub_label_t* b_mask_t, 
uint32_t collect_p_trans, uint32_t collect_p_trans_f)
{
    asg_t* nsg = (*ug)->g;
    uint32_t v, n_vtx = nsg->n_seq, k, rId, just_contain;
    ma_utg_t* u = NULL;
    hap_cov_t *cov = init_hap_cov_t(*ug, read_g, sources, ruIndex, reverse_sources, 
                            coverage_cut, max_hang, min_ovlp, (asm_opt.purge_level_primary>0||i_cov)?1:0);
    if(cov->t_ch) cov->t_ch->ir_het = cov->is_r_het;
    adjust_utg_advance(read_g, (*ug), reverse_sources, ruIndex, b_mask_t, cov->is_r_het);

    nsg = (*ug)->g;
    n_vtx = nsg->n_seq;
    for (v = 0; v < n_vtx; ++v) 
    {
        if(nsg->seq[v].del) continue;
        nsg->seq[v].c = PRIMARY_LABLE;
        EvaluateLen((*ug)->u, v) = (*ug)->u.a[v].n;
    }

    clean_primary_untig_graph(*ug, read_g, sources, reverse_sources, coverage_cut, tipsLen, tip_drop_ratio, 
    stops_threshold, ruIndex, NULL, NULL, 0, 0, 0, chimeric_rate, 0, 0, drop_ratio, cov);
    delete_useless_nodes(ug);
    renew_utg(ug, read_g, new_rtg_edges);
    if(i_cov && collect_p_trans == 0) goto skip_purge;
    if(asm_opt.purge_level_primary > 0)
    {
        // print_debug_gfa(read_g, *ug, coverage_cut, "debug_purge", sources, ruIndex, asm_opt.max_hang_Len, asm_opt.min_overlap_Len);
        just_contain = 0;
        if(asm_opt.purge_level_primary == 1) just_contain = 1;
        purge_dups(*ug, read_g, coverage_cut, sources, reverse_sources, ruIndex, new_rtg_edges, 
        asm_opt.purge_simi_thres, asm_opt.purge_overlap_len, max_hang, min_ovlp, drop_ratio, 
        just_contain, 0, cov, !!(cov->t_ch&&collect_p_trans), collect_p_trans_f);
        delete_useless_nodes(ug);
        renew_utg(ug, read_g, new_rtg_edges);
    }

    if (!(asm_opt.flag & HA_F_BAN_POST_JOIN))
    {
        rescue_missing_overlaps_aggressive(*ug, read_g, sources, coverage_cut, ruIndex, max_hang,
        min_ovlp, 0, 1, NULL, b_mask_t);
        renew_utg(ug, read_g, new_rtg_edges);
        rescue_contained_reads_aggressive(*ug, read_g, sources, coverage_cut, ruIndex, max_hang, 
        min_ovlp, 10, 0, 1, NULL, NULL, b_mask_t);
        renew_utg(ug, read_g, new_rtg_edges);
    }


    if(asm_opt.max_contig_tip > 0) {
        discard_small_ctg(ug, read_g, new_rtg_edges, asm_opt.max_contig_tip, 0, 1); 
    }


    n_vtx = read_g->n_seq;
    for (v = 0; v < n_vtx; v++)
    {
        read_g->seq[v].c = ALTER_LABLE;
    }
    
    
    nsg = (*ug)->g;
    n_vtx = nsg->n_seq;
    for (v = 0; v < n_vtx; ++v) 
    {
        if(nsg->seq[v].del) continue;
        if(nsg->seq[v].c == ALTER_LABLE) continue;
        u = &((*ug)->u.a[v]);
        if(u->m == 0) continue;
        for (k = 0; k < u->n; k++)
        {
            rId = u->a[k]>>33;
            read_g->seq[rId].c = nsg->seq[v].c;
        }
    }

    n_vtx = read_g->n_seq;
    for (v = 0; v < n_vtx; v++)
    {
        if(read_g->seq[v].c == ALTER_LABLE)
        {
            asg_seq_drop(read_g, v);
        }
    }

    if(asm_opt.recover_atg_cov_min == -1024)
    {
        asm_opt.recover_atg_cov_max = (asm_opt.hom_global_coverage_set?
            (asm_opt.hom_global_coverage):(((double)asm_opt.hom_global_coverage)/((double)HOM_PEAK_RATE)));
        asm_opt.recover_atg_cov_min = asm_opt.recover_atg_cov_max * 0.85;
        asm_opt.recover_atg_cov_max = INT32_MAX;
    }

    if(asm_opt.recover_atg_cov_max != INT32_MAX)
    {
        fprintf(stderr, "[M::%s] primary contig coverage range: [%d, %d]\n", 
        __func__, asm_opt.recover_atg_cov_min, asm_opt.recover_atg_cov_max);
    }
    else
    {
        fprintf(stderr, "[M::%s] primary contig coverage range: [%d, infinity]\n", 
        __func__, asm_opt.recover_atg_cov_min);
    }

    skip_purge:
    recover_utg_by_coverage(ug, read_g, coverage_cut, sources, ruIndex, cov->t_ch);
    if(i_cov)
    {
        (*i_cov) = cov;
    } 
    else
    {
        destory_hap_cov_t(&cov);
    }     
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x168, %rsp            # imm = 0x168
movl 0x50(%rbp), %eax
movl 0x48(%rbp), %eax
movq 0x40(%rbp), %rax
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, -0x30(%rbp)
movq %rsi, -0x38(%rbp)
movss %xmm0, -0x3c(%rbp)
movq %rdx, -0x48(%rbp)
movq %rcx, -0x50(%rbp)
movq %r8, -0x58(%rbp)
movq %r9, -0x60(%rbp)
movss %xmm1, -0x64(%rbp)
movss %xmm2, -0x68(%rbp)
movss %xmm3, -0x6c(%rbp)
movq -0x30(%rbp), %rax
movq (%rax), %rax
movq 0x18(%rax), %rax
movq %rax, -0x78(%rbp)
movq -0x78(%rbp), %rax
movl 0x14(%rax), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movl %eax, -0x80(%rbp)
movq $0x0, -0x98(%rbp)
movq -0x30(%rbp), %rax
movq (%rax), %rax
movq %rax, -0xe0(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0xd8(%rbp)
movq -0x48(%rbp), %rax
movq %rax, -0xd0(%rbp)
movq 0x18(%rbp), %rax
movq %rax, -0xc8(%rbp)
movq -0x50(%rbp), %rax
movq %rax, -0xc0(%rbp)
movq -0x58(%rbp), %rax
movq %rax, -0xb8(%rbp)
movl 0x20(%rbp), %eax
movl %eax, -0xac(%rbp)
movl 0x28(%rbp), %eax
movl %eax, -0xa8(%rbp)
movb $0x1, %al
leaq 0x2b892f(%rip), %rcx    # 0x3c47f8
cmpl $0x0, 0x130(%rcx)
movb %al, -0xa1(%rbp)
jg 0x10bee6
cmpq $0x0, 0x38(%rbp)
setne %al
movb %al, -0xa1(%rbp)
movl -0xa8(%rbp), %r10d
movl -0xac(%rbp), %r11d
movq -0xb8(%rbp), %r9
movq -0xc0(%rbp), %r8
movq -0xc8(%rbp), %rcx
movq -0xd0(%rbp), %rdx
movq -0xd8(%rbp), %rsi
movq -0xe0(%rbp), %rdi
movb -0xa1(%rbp), %r14b
xorl %eax, %eax
movl $0x1, %ebx
testb $0x1, %r14b
cmovnel %ebx, %eax
movl %r11d, (%rsp)
movl %r10d, 0x8(%rsp)
movl %eax, 0x10(%rsp)
callq 0x121100
movq %rax, -0xa0(%rbp)
movq -0xa0(%rbp), %rax
cmpq $0x0, 0xa8(%rax)
je 0x10bf7d
movq -0xa0(%rbp), %rax
movq 0xa0(%rax), %rcx
movq -0xa0(%rbp), %rax
movq 0xa8(%rax), %rax
movq %rcx, 0x10(%rax)
movq -0x38(%rbp), %rdi
movq -0x30(%rbp), %rax
movq (%rax), %rsi
movq -0x50(%rbp), %rdx
movq 0x18(%rbp), %rcx
movq 0x40(%rbp), %r8
movq -0xa0(%rbp), %rax
movq 0xa0(%rax), %r9
callq 0x10e9e0
movq -0x30(%rbp), %rax
movq (%rax), %rax
movq 0x18(%rax), %rax
movq %rax, -0x78(%rbp)
movq -0x78(%rbp), %rax
movl 0x14(%rax), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movl %eax, -0x80(%rbp)
movl $0x0, -0x7c(%rbp)
movl -0x7c(%rbp), %eax
cmpl -0x80(%rbp), %eax
jae 0x10c037
movq -0x78(%rbp), %rax
movq 0x20(%rax), %rax
movl -0x7c(%rbp), %ecx
movl (%rax,%rcx,8), %eax
shrl $0x1f, %eax
cmpl $0x0, %eax
je 0x10bfec
jmp 0x10c02c
movq -0x78(%rbp), %rax
movq 0x20(%rax), %rax
movl -0x7c(%rbp), %ecx
movb $0x0, 0x4(%rax,%rcx,8)
movq -0x30(%rbp), %rax
movq (%rax), %rax
movq 0x10(%rax), %rax
movl -0x7c(%rbp), %ecx
imulq $0x28, %rcx, %rcx
addq %rcx, %rax
movl 0x10(%rax), %ecx
movq -0x30(%rbp), %rax
movq (%rax), %rax
movq 0x10(%rax), %rax
movl -0x7c(%rbp), %edx
imulq $0x28, %rdx, %rdx
addq %rdx, %rax
movl %ecx, 0x4(%rax)
movl -0x7c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x7c(%rbp)
jmp 0x10bfcc
movq -0x30(%rbp), %rax
movq (%rax), %rdi
movq -0x38(%rbp), %rsi
movq -0x48(%rbp), %rdx
movq -0x50(%rbp), %rcx
movq -0x58(%rbp), %r8
movq -0x60(%rbp), %r9
movss -0x64(%rbp), %xmm0
movq 0x10(%rbp), %r11
movq 0x18(%rbp), %r10
movss -0x68(%rbp), %xmm2
movss -0x6c(%rbp), %xmm3
movq -0xa0(%rbp), %rax
xorl %ebx, %ebx
xorps %xmm1, %xmm1
xorl %ebx, %ebx
movq %r11, (%rsp)
movq %r10, 0x8(%rsp)
movq $0x0, 0x10(%rsp)
movq $0x0, 0x18(%rsp)
movl $0x0, 0x20(%rsp)
movl $0x0, 0x28(%rsp)
movl $0x0, 0x30(%rsp)
movl $0x0, 0x38(%rsp)
movq %rax, 0x40(%rsp)
callq 0x11e0d0
movq -0x30(%rbp), %rdi
callq 0x10ea80
movq -0x30(%rbp), %rdi
movq -0x38(%rbp), %rsi
movq 0x30(%rbp), %rdx
callq 0xf6030
cmpq $0x0, 0x38(%rbp)
je 0x10c0e8
cmpl $0x0, 0x48(%rbp)
jne 0x10c0e8
jmp 0x10c6a7
leaq 0x2b8709(%rip), %rax    # 0x3c47f8
cmpl $0x0, 0x130(%rax)
jle 0x10c2bd
movl $0x0, -0x8c(%rbp)
leaq 0x2b86eb(%rip), %rax    # 0x3c47f8
cmpl $0x1, 0x130(%rax)
jne 0x10c120
movl $0x1, -0x8c(%rbp)
movq -0x30(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x140(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x138(%rbp)
movq -0x58(%rbp), %rax
movq %rax, -0x130(%rbp)
movq -0x48(%rbp), %rax
movq %rax, -0x128(%rbp)
movq -0x50(%rbp), %rax
movq %rax, -0x120(%rbp)
movq 0x18(%rbp), %rax
movq %rax, -0x118(%rbp)
movq 0x30(%rbp), %rax
movq %rax, -0x110(%rbp)
leaq 0x2b8681(%rip), %rax    # 0x3c47f8
movss 0x16c(%rax), %xmm0
movss %xmm0, -0x108(%rbp)
leaq 0x2b866a(%rip), %rax    # 0x3c47f8
movl 0x138(%rax), %eax
movl %eax, -0x104(%rbp)
movl 0x20(%rbp), %eax
movl %eax, -0x100(%rbp)
movl 0x28(%rbp), %eax
movl %eax, -0xfc(%rbp)
movss -0x6c(%rbp), %xmm0
movss %xmm0, -0xf8(%rbp)
movl -0x8c(%rbp), %eax
movl %eax, -0xf4(%rbp)
movq -0xa0(%rbp), %rax
movq %rax, -0xf0(%rbp)
movq -0xa0(%rbp), %rcx
xorl %eax, %eax
cmpq $0x0, 0xa8(%rcx)
movb %al, -0xe1(%rbp)
je 0x10c1f9
cmpl $0x0, 0x48(%rbp)
setne %al
movb %al, -0xe1(%rbp)
movq -0xf0(%rbp), %r11
movl -0xf4(%rbp), %ebx
movss -0xf8(%rbp), %xmm1
movl -0xfc(%rbp), %r14d
movl -0x100(%rbp), %r15d
movl -0x104(%rbp), %r12d
movss -0x108(%rbp), %xmm0
movq -0x110(%rbp), %r13
movq -0x118(%rbp), %r9
movq -0x120(%rbp), %r8
movq -0x130(%rbp), %rdx
movq -0x138(%rbp), %rsi
movq -0x140(%rbp), %rdi
movb -0xe1(%rbp), %al
xorb $-0x1, %al
xorb $-0x1, %al
andb $0x1, %al
movzbl %al, %r10d
movl 0x50(%rbp), %eax
xorl %ecx, %ecx
movq -0x128(%rbp), %rcx
movq %r13, (%rsp)
movl %r12d, 0x8(%rsp)
movl %r15d, 0x10(%rsp)
movl %r14d, 0x18(%rsp)
movl %ebx, 0x20(%rsp)
movl $0x0, 0x28(%rsp)
movq %r11, 0x30(%rsp)
movl %r10d, 0x38(%rsp)
movl %eax, 0x40(%rsp)
callq 0x184ac0
movq -0x30(%rbp), %rdi
callq 0x10ea80
movq -0x30(%rbp), %rdi
movq -0x38(%rbp), %rsi
movq 0x30(%rbp), %rdx
callq 0xf6030
leaq 0x2b8534(%rip), %rax    # 0x3c47f8
movl (%rax), %eax
andl $0x100, %eax            # imm = 0x100
cmpl $0x0, %eax
jne 0x10c3a7
movq -0x30(%rbp), %rax
movq (%rax), %rdi
movq -0x38(%rbp), %rsi
movq -0x48(%rbp), %rdx
movq -0x58(%rbp), %rcx
movq 0x18(%rbp), %r8
movl 0x20(%rbp), %r9d
movl 0x28(%rbp), %r10d
movq 0x40(%rbp), %rax
xorl %r11d, %r11d
xorl %r11d, %r11d
movl %r10d, (%rsp)
movl $0x0, 0x8(%rsp)
movl $0x1, 0x10(%rsp)
movq $0x0, 0x18(%rsp)
movq %rax, 0x20(%rsp)
callq 0x121a30
movq -0x30(%rbp), %rdi
movq -0x38(%rbp), %rsi
movq 0x30(%rbp), %rdx
callq 0xf6030
movq -0x30(%rbp), %rax
movq (%rax), %rdi
movq -0x38(%rbp), %rsi
movq -0x48(%rbp), %rdx
movq -0x58(%rbp), %rcx
movq 0x18(%rbp), %r8
movl 0x20(%rbp), %r9d
movl 0x28(%rbp), %r10d
movq 0x40(%rbp), %rax
xorl %r11d, %r11d
xorl %r11d, %r11d
movl %r10d, (%rsp)
movl $0xa, 0x8(%rsp)
movl $0x0, 0x10(%rsp)
movl $0x1, 0x18(%rsp)
movq $0x0, 0x20(%rsp)
movq $0x0, 0x28(%rsp)
movq %rax, 0x30(%rsp)
callq 0x1228e0
movq -0x30(%rbp), %rdi
movq -0x38(%rbp), %rsi
movq 0x30(%rbp), %rdx
callq 0xf6030
leaq 0x2b844a(%rip), %rax    # 0x3c47f8
cmpl $0x0, 0x124(%rax)
jle 0x10c3de
movq -0x30(%rbp), %rdi
movq -0x38(%rbp), %rsi
movq 0x30(%rbp), %rdx
leaq 0x2b842e(%rip), %rax    # 0x3c47f8
movl 0x124(%rax), %ecx
xorl %r8d, %r8d
movl $0x1, %r9d
callq 0x1207f0
movq -0x38(%rbp), %rax
movl 0x14(%rax), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movl %eax, -0x80(%rbp)
movl $0x0, -0x7c(%rbp)
movl -0x7c(%rbp), %eax
cmpl -0x80(%rbp), %eax
jae 0x10c417
movq -0x38(%rbp), %rax
movq 0x20(%rax), %rax
movl -0x7c(%rbp), %ecx
movb $0x1, 0x4(%rax,%rcx,8)
movl -0x7c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x7c(%rbp)
jmp 0x10c3f4
movq -0x30(%rbp), %rax
movq (%rax), %rax
movq 0x18(%rax), %rax
movq %rax, -0x78(%rbp)
movq -0x78(%rbp), %rax
movl 0x14(%rax), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movl %eax, -0x80(%rbp)
movl $0x0, -0x7c(%rbp)
movl -0x7c(%rbp), %eax
cmpl -0x80(%rbp), %eax
jae 0x10c525
movq -0x78(%rbp), %rax
movq 0x20(%rax), %rax
movl -0x7c(%rbp), %ecx
movl (%rax,%rcx,8), %eax
shrl $0x1f, %eax
cmpl $0x0, %eax
je 0x10c463
jmp 0x10c517
movq -0x78(%rbp), %rax
movq 0x20(%rax), %rax
movl -0x7c(%rbp), %ecx
movzbl 0x4(%rax,%rcx,8), %eax
cmpl $0x1, %eax
jne 0x10c47d
jmp 0x10c517
movq -0x30(%rbp), %rax
movq (%rax), %rax
movq 0x10(%rax), %rax
movl -0x7c(%rbp), %ecx
imulq $0x28, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x98(%rbp)
movq -0x98(%rbp), %rax
cmpl $0x0, 0xc(%rax)
jne 0x10c4a8
jmp 0x10c517
movl $0x0, -0x84(%rbp)
movl -0x84(%rbp), %eax
movq -0x98(%rbp), %rcx
cmpl 0x10(%rcx), %eax
jae 0x10c515
movq -0x98(%rbp), %rax
movq 0x18(%rax), %rax
movl -0x84(%rbp), %ecx
movq (%rax,%rcx,8), %rax
shrq $0x21, %rax
movl %eax, -0x88(%rbp)
movq -0x78(%rbp), %rax
movq 0x20(%rax), %rax
movl -0x7c(%rbp), %ecx
movb 0x4(%rax,%rcx,8), %dl
movq -0x38(%rbp), %rax
movq 0x20(%rax), %rax
movl -0x88(%rbp), %ecx
movb %dl, 0x4(%rax,%rcx,8)
movl -0x84(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x84(%rbp)
jmp 0x10c4b2
jmp 0x10c517
movl -0x7c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x7c(%rbp)
jmp 0x10c43c
movq -0x38(%rbp), %rax
movl 0x14(%rax), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movl %eax, -0x80(%rbp)
movl $0x0, -0x7c(%rbp)
movl -0x7c(%rbp), %eax
cmpl -0x80(%rbp), %eax
jae 0x10c571
movq -0x38(%rbp), %rax
movq 0x20(%rax), %rax
movl -0x7c(%rbp), %ecx
movzbl 0x4(%rax,%rcx,8), %eax
cmpl $0x1, %eax
jne 0x10c564
movq -0x38(%rbp), %rdi
movl -0x7c(%rbp), %esi
callq 0xf6800
jmp 0x10c566
movl -0x7c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x7c(%rbp)
jmp 0x10c53b
leaq 0x2b8280(%rip), %rax    # 0x3c47f8
cmpl $0xfffffc00, 0x13c(%rax) # imm = 0xFFFFFC00
jne 0x10c62a
leaq 0x2b8269(%rip), %rax    # 0x3c47f8
cmpl $0x0, 0x148(%rax)
je 0x10c5b1
leaq 0x2b8259(%rip), %rax    # 0x3c47f8
cvtsi2sdl 0x144(%rax), %xmm0
movsd %xmm0, -0x148(%rbp)
jmp 0x10c5d4
leaq 0x2b8240(%rip), %rax    # 0x3c47f8
cvtsi2sdl 0x144(%rax), %xmm0
movsd 0x27a278(%rip), %xmm1   # 0x386840
divsd %xmm1, %xmm0
movsd %xmm0, -0x148(%rbp)
movsd -0x148(%rbp), %xmm0
cvttsd2si %xmm0, %ecx
leaq 0x2b8211(%rip), %rax    # 0x3c47f8
movl %ecx, 0x140(%rax)
leaq 0x2b8204(%rip), %rax    # 0x3c47f8
cvtsi2sdl 0x140(%rax), %xmm0
movsd 0x27a264(%rip), %xmm1   # 0x386868
mulsd %xmm1, %xmm0
cvttsd2si %xmm0, %ecx
leaq 0x2b81e5(%rip), %rax    # 0x3c47f8
movl %ecx, 0x13c(%rax)
leaq 0x2b81d8(%rip), %rax    # 0x3c47f8
movl $0x7fffffff, 0x140(%rax) # imm = 0x7FFFFFFF
leaq 0x2b81c7(%rip), %rax    # 0x3c47f8
cmpl $0x7fffffff, 0x140(%rax) # imm = 0x7FFFFFFF
je 0x10c679
movq 0x2b799c(%rip), %rax    # 0x3c3fe0
movq (%rax), %rdi
leaq 0x2b81aa(%rip), %rax    # 0x3c47f8
movl 0x13c(%rax), %ecx
leaq 0x2b819d(%rip), %rax    # 0x3c47f8
movl 0x140(%rax), %r8d
leaq 0x27bbff(%rip), %rsi    # 0x388268
leaq 0x27d095(%rip), %rdx    # 0x389705
movb $0x0, %al
callq 0x22a0
jmp 0x10c6a5
movq 0x2b7960(%rip), %rax    # 0x3c3fe0
movq (%rax), %rdi
leaq 0x2b816e(%rip), %rax    # 0x3c47f8
movl 0x13c(%rax), %ecx
leaq 0x27bc15(%rip), %rsi    # 0x3882ac
leaq 0x27d067(%rip), %rdx    # 0x389705
movb $0x0, %al
callq 0x22a0
jmp 0x10c6a7
movq -0x30(%rbp), %rdi
movq -0x38(%rbp), %rsi
movq -0x58(%rbp), %rdx
movq -0x48(%rbp), %rcx
movq 0x18(%rbp), %r8
movq -0xa0(%rbp), %rax
movq 0xa8(%rax), %r9
callq 0x14e850
cmpq $0x0, 0x38(%rbp)
je 0x10c6e5
movq -0xa0(%rbp), %rcx
movq 0x38(%rbp), %rax
movq %rcx, (%rax)
jmp 0x10c6f1
leaq -0xa0(%rbp), %rdi
callq 0x10c960
addq $0x168, %rsp            # imm = 0x168
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nopw %cs:(%rax,%rax)