// File: chhylp123[P]hifiasm/gfa_ut.cpp
// Function: ulg_arc_cut_bridge(ul_resolve_t*, ma_ug_t*, int, unsigned int, float, unsigned int, unsigned int, unsigned int*, asg64_v*, asg64_v*)
uint32_t ulg_arc_cut_bridge(ul_resolve_t *uidx, ma_ug_t *ug, int32_t max_ext, uint32_t max_ext_hifi, 
float len_rat, uint32_t is_trio, uint32_t topo_level, uint32_t *max_drop_len, asg64_v *in, asg64_v *ib)
{
    asg64_v tx = {0,0,0}, tb = {0,0,0}, *b = NULL, *ub = NULL; asg_t *g = ug->g;
    uint32_t v, w, i, k, kv, nv, cnt = 0, n_vtx = g->n_seq<<1, ff, ol_max, ul_max, mm_ol;
    asg_arc_t *av, *ve, *vl_max; uint32_t ul_cnt, bridge_w, bridge_am, pb;
    // fprintf(stderr, "+++[M::%s::] idx->cc.iug_b[455]::%lu\n", __func__, uidx->uovl.cc.iug_b[455]);
    b = (in?(in):(&tx)); ub = (ib?(ib):(&tb));
    for (v = b->n = 0; v < n_vtx; ++v) {
        if (g->seq[v>>1].del) continue;
        if(g->seq_vis[v] == 0) {
            av = asg_arc_a(g, v); nv = asg_arc_n(g, v);
            if (nv < 2) continue;

            for (i = kv = 0; i < nv && kv < 2; ++i) {
                if(av[i].del) continue;
                kv++;
            }
            if(kv < 2) continue;

            for (i = 0; i < nv; ++i) {
                if(av[i].del) continue;
                get_ul_path_info(uidx, ug, av[i].v, NULL, NULL, &ul_cnt, &bridge_w, &bridge_am, NULL);
                ff = ul_path_w(ul_cnt, bridge_w, bridge_am);
                // if((v>>1) == 5) {
                //     fprintf(stderr, "+[M::%s::] v>>1::%u, v&1::%u, w>>1::%u, w&1::%u, ul_cnt::%u, bridge_w::%u, bridge_am::%u, ff::%u\n", __func__, 
                //     v>>1, v&1, av[i].v>>1, av[i].v&1, ul_cnt, bridge_w, bridge_am, ff);
                // }
                kv_push(uint64_t, *b, (((uint64_t)ff)<<32) | ((uint64_t)(av-g->arc+i)));
            }
        }
    }

    // fprintf(stderr, "---[M::%s::] idx->cc.iug_b[455]::%lu\n", __func__, uidx->uovl.cc.iug_b[455]);
    radix_sort_srt64(b->a, b->a + b->n);
    for (k = 0; k < b->n; k++) {
        if(g->arc[(uint32_t)b->a[k]].del) continue;
        v = g->arc[(uint32_t)b->a[k]].ul>>32; w = g->arc[(uint32_t)b->a[k]].v^1;
        if(g->seq[v>>1].del || g->seq[w>>1].del) continue;
        nv = asg_arc_n(g, v); av = asg_arc_a(g, v); 
        if(nv<=1 && asg_arc_n(g, w) <= 1) continue;
        if(get_arcs(ug->g, w, NULL, 0) != 1) continue;

        ve = &(g->arc[(uint32_t)b->a[k]]);
        get_ul_path_info(uidx, ug, ve->v, NULL, NULL, &ul_cnt, &bridge_w, &bridge_am, NULL);
        ff = ul_path_w(ul_cnt, bridge_w, bridge_am);
        if(ff == (uint32_t)-1) continue;
        mm_ol = ff; 

        for (i = kv = ol_max = ul_max = 0, vl_max = NULL; i < nv; ++i) {
            if(av[i].del) continue;
            kv++;
            get_ul_path_info(uidx, ug, av[i].v, NULL, NULL, &ul_cnt, &bridge_w, &bridge_am, NULL);
            ff = ul_path_w(ul_cnt, bridge_w, bridge_am);
            if((ol_max < ff) || (ol_max == ff && ul_max < ul_cnt)) {
                ol_max = ff; ul_max = ul_cnt; vl_max = &(av[i]);
            } 
        }

        // if((v>>1) == 5) {
        //     fprintf(stderr, "***[M::%s::] v>>1::%u, v&1::%u, w>>1::%u, w&1::%u, ul_cnt::%u, bridge_w::%u, bridge_am::%u, ff::%u, mm_ol::%u, ol_max::%u, kv::%u\n", __func__, 
        //     v>>1, v&1, w>>1, w&1, ul_cnt, bridge_w, bridge_am, ff, mm_ol, ol_max, kv);
        // }
        
        if (kv <= 1 || (!vl_max)) continue;
        if (kv >= 2) {
            if (mm_ol > ol_max*len_rat) continue;
        }

        // if((v>>1) == 5) {
        //     fprintf(stderr, "###[M::%s::] v>>1::%u, v&1::%u, w>>1::%u, w&1::%u, ul_cnt::%u, bridge_w::%u, bridge_am::%u, ff::%u, mm_ol::%u, ol_max::%u\n", __func__, 
        //     v>>1, v&1, w>>1, w&1, ul_cnt, bridge_w, bridge_am, ff, mm_ol, ol_max);
        // }

        
        if(usg_bridge_topocut_aux(uidx, ug, ve->v, max_ext, max_ext_hifi, topo_level, 1, b, ub)) {
            pb = b->n; 
            get_ul_path_info(uidx, ug, ve->v, NULL, NULL, NULL, NULL, NULL, b);
            for (i = pb; i < b->n; i++) ulg_seq_del(ug, (b->a[i]>>1));
            cnt += b->n - pb; b->n = pb;
        }
    }


    if(!in) free(tx.a); if(!ib) free(tb.a);
    if (cnt > 0) asg_cleanup(g);
    return cnt;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x110, %rsp            # imm = 0x110
movq 0x20(%rbp), %rax
movq 0x18(%rbp), %rax
movq 0x10(%rbp), %rax
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movl %ecx, -0x18(%rbp)
movss %xmm0, -0x1c(%rbp)
movl %r8d, -0x20(%rbp)
movl %r9d, -0x24(%rbp)
leaq -0x40(%rbp), %rdi
xorl %esi, %esi
movl $0x18, %edx
callq 0x2100
leaq -0x58(%rbp), %rdi
xorl %esi, %esi
movl $0x18, %edx
callq 0x2100
movq $0x0, -0x60(%rbp)
movq $0x0, -0x68(%rbp)
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x70(%rbp)
movl $0x0, -0x8c(%rbp)
movq -0x70(%rbp), %rax
movl 0x14(%rax), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
shll %eax
movl %eax, -0x90(%rbp)
cmpq $0x0, 0x18(%rbp)
je 0x345120
movq 0x18(%rbp), %rax
movq %rax, -0xd0(%rbp)
jmp 0x34512d
leaq -0x40(%rbp), %rax
movq %rax, -0xd0(%rbp)
jmp 0x34512d
movq -0xd0(%rbp), %rax
movq %rax, -0x60(%rbp)
cmpq $0x0, 0x20(%rbp)
je 0x34514c
movq 0x20(%rbp), %rax
movq %rax, -0xd8(%rbp)
jmp 0x345159
leaq -0x58(%rbp), %rax
movq %rax, -0xd8(%rbp)
jmp 0x345159
movq -0xd8(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x60(%rbp), %rax
movq $0x0, (%rax)
movl $0x0, -0x74(%rbp)
movl -0x74(%rbp), %eax
cmpl -0x90(%rbp), %eax
jae 0x345448
movq -0x70(%rbp), %rax
movq 0x20(%rax), %rax
movl -0x74(%rbp), %ecx
shrl %ecx
movl %ecx, %ecx
movl (%rax,%rcx,8), %eax
shrl $0x1f, %eax
cmpl $0x0, %eax
je 0x3451a4
jmp 0x34543a
movq -0x70(%rbp), %rax
movq 0x30(%rax), %rax
movl -0x74(%rbp), %ecx
movzbl (%rax,%rcx), %eax
cmpl $0x0, %eax
jne 0x345438
movq -0x70(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x70(%rbp), %rcx
movq 0x28(%rcx), %rcx
movl -0x74(%rbp), %edx
movq (%rcx,%rdx,8), %rcx
shrq $0x20, %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0xa8(%rbp)
movq -0x70(%rbp), %rax
movq 0x28(%rax), %rax
movl -0x74(%rbp), %ecx
movq (%rax,%rcx,8), %rax
movl %eax, -0x88(%rbp)
cmpl $0x2, -0x88(%rbp)
jae 0x345208
jmp 0x34543a
movl $0x0, -0x84(%rbp)
movl $0x0, -0x7c(%rbp)
movl -0x7c(%rbp), %ecx
xorl %eax, %eax
cmpl -0x88(%rbp), %ecx
movb %al, -0xd9(%rbp)
jae 0x34523c
cmpl $0x2, -0x84(%rbp)
setb %al
movb %al, -0xd9(%rbp)
movb -0xd9(%rbp), %al
testb $0x1, %al
jne 0x345248
jmp 0x345280
movq -0xa8(%rbp), %rax
movl -0x7c(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl 0xc(%rax), %eax
shrl $0x1f, %eax
cmpl $0x0, %eax
je 0x345266
jmp 0x345275
movl -0x84(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x84(%rbp)
movl -0x7c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x7c(%rbp)
jmp 0x345219
cmpl $0x2, -0x84(%rbp)
jae 0x34528e
jmp 0x34543a
movl $0x0, -0x7c(%rbp)
movl -0x7c(%rbp), %eax
cmpl -0x88(%rbp), %eax
jae 0x345436
movq -0xa8(%rbp), %rax
movl -0x7c(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl 0xc(%rax), %eax
shrl $0x1f, %eax
cmpl $0x0, %eax
je 0x3452c5
jmp 0x345428
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0xa8(%rbp), %rax
movl -0x7c(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl 0x8(%rax), %edx
xorl %eax, %eax
movl %eax, %r8d
leaq -0xbc(%rbp), %r9
leaq -0xc0(%rbp), %r10
leaq -0xc4(%rbp), %rax
movq %r8, %rcx
movq %r10, (%rsp)
movq %rax, 0x8(%rsp)
movq $0x0, 0x10(%rsp)
callq 0x344830
movl -0xc0(%rbp), %eax
addl -0xc0(%rbp), %eax
cmpl $0x0, %eax
jne 0x345333
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movl %eax, -0xe0(%rbp)
jmp 0x34534f
movl -0xbc(%rbp), %eax
movl -0xc0(%rbp), %ecx
addl -0xc0(%rbp), %ecx
xorl %edx, %edx
divl %ecx
movl %eax, -0xe0(%rbp)
movl -0xe0(%rbp), %eax
movl %eax, -0x94(%rbp)
movq -0x60(%rbp), %rax
movq (%rax), %rax
movq -0x60(%rbp), %rcx
cmpq 0x8(%rcx), %rax
jne 0x3453cc
movq -0x60(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0x34538b
movq -0x60(%rbp), %rax
movq 0x8(%rax), %rax
shlq %rax
movq %rax, -0xe8(%rbp)
jmp 0x345399
movl $0x2, %eax
movq %rax, -0xe8(%rbp)
jmp 0x345399
movq -0xe8(%rbp), %rcx
movq -0x60(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x60(%rbp), %rax
movq 0x10(%rax), %rdi
movq -0x60(%rbp), %rax
movq 0x8(%rax), %rsi
shlq $0x3, %rsi
callq 0x2360
movq %rax, %rcx
movq -0x60(%rbp), %rax
movq %rcx, 0x10(%rax)
movl -0x94(%rbp), %eax
shlq $0x20, %rax
movq %rax, -0xf0(%rbp)
movq -0xa8(%rbp), %rax
movq -0x70(%rbp), %rcx
movq 0x8(%rcx), %rcx
subq %rcx, %rax
movl $0x18, %ecx
cqto
idivq %rcx
movq -0xf0(%rbp), %rdx
movl -0x7c(%rbp), %ecx
addq %rcx, %rax
orq %rax, %rdx
movq -0x60(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x60(%rbp), %rsi
movq (%rsi), %rcx
movq %rcx, %rdi
addq $0x1, %rdi
movq %rdi, (%rsi)
movq %rdx, (%rax,%rcx,8)
jmp 0x345428
movl -0x7c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x7c(%rbp)
jmp 0x345295
jmp 0x345438
jmp 0x34543a
movl -0x74(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x74(%rbp)
jmp 0x345176
movq -0x60(%rbp), %rax
movq 0x10(%rax), %rdi
movq -0x60(%rbp), %rax
movq 0x10(%rax), %rsi
movq -0x60(%rbp), %rax
movq (%rax), %rax
shlq $0x3, %rax
addq %rax, %rsi
callq 0x30ed90
movl $0x0, -0x80(%rbp)
movl -0x80(%rbp), %eax
movq -0x60(%rbp), %rcx
cmpq (%rcx), %rax
jae 0x34594a
movq -0x70(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x60(%rbp), %rcx
movq 0x10(%rcx), %rcx
movl -0x80(%rbp), %edx
movq (%rcx,%rdx,8), %rcx
movl %ecx, %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl 0xc(%rax), %eax
shrl $0x1f, %eax
cmpl $0x0, %eax
je 0x3454b2
jmp 0x34593c
movq -0x70(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x60(%rbp), %rcx
movq 0x10(%rcx), %rcx
movl -0x80(%rbp), %edx
movq (%rcx,%rdx,8), %rcx
movl %ecx, %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rax
shrq $0x20, %rax
movl %eax, -0x74(%rbp)
movq -0x70(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x60(%rbp), %rcx
movq 0x10(%rcx), %rcx
movl -0x80(%rbp), %edx
movq (%rcx,%rdx,8), %rcx
movl %ecx, %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl 0x8(%rax), %eax
xorl $0x1, %eax
movl %eax, -0x78(%rbp)
movq -0x70(%rbp), %rax
movq 0x20(%rax), %rax
movl -0x74(%rbp), %ecx
shrl %ecx
movl %ecx, %ecx
movl (%rax,%rcx,8), %eax
shrl $0x1f, %eax
cmpl $0x0, %eax
jne 0x345539
movq -0x70(%rbp), %rax
movq 0x20(%rax), %rax
movl -0x78(%rbp), %ecx
shrl %ecx
movl %ecx, %ecx
movl (%rax,%rcx,8), %eax
shrl $0x1f, %eax
cmpl $0x0, %eax
je 0x34553e
jmp 0x34593c
movq -0x70(%rbp), %rax
movq 0x28(%rax), %rax
movl -0x74(%rbp), %ecx
movq (%rax,%rcx,8), %rax
movl %eax, -0x88(%rbp)
movq -0x70(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x70(%rbp), %rcx
movq 0x28(%rcx), %rcx
movl -0x74(%rbp), %edx
movq (%rcx,%rdx,8), %rcx
shrq $0x20, %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0xa8(%rbp)
cmpl $0x1, -0x88(%rbp)
ja 0x34559e
movq -0x70(%rbp), %rax
movq 0x28(%rax), %rax
movl -0x78(%rbp), %ecx
movq (%rax,%rcx,8), %rax
cmpl $0x1, %eax
ja 0x34559e
jmp 0x34593c
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rdi
movl -0x78(%rbp), %esi
xorl %eax, %eax
movl %eax, %edx
xorl %ecx, %ecx
callq 0x311ba0
cmpl $0x1, %eax
je 0x3455be
jmp 0x34593c
movq -0x70(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x60(%rbp), %rcx
movq 0x10(%rcx), %rcx
movl -0x80(%rbp), %edx
movq (%rcx,%rdx,8), %rcx
movl %ecx, %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0xb0(%rbp)
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0xb0(%rbp), %rax
movl 0x8(%rax), %edx
xorl %eax, %eax
movl %eax, %r8d
leaq -0xbc(%rbp), %r9
leaq -0xc0(%rbp), %r10
leaq -0xc4(%rbp), %rax
movq %r8, %rcx
movq %r10, (%rsp)
movq %rax, 0x8(%rsp)
movq $0x0, 0x10(%rsp)
callq 0x344830
movl -0xc0(%rbp), %eax
addl -0xc0(%rbp), %eax
cmpl $0x0, %eax
jne 0x345649
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movl %eax, -0xf4(%rbp)
jmp 0x345665
movl -0xbc(%rbp), %eax
movl -0xc0(%rbp), %ecx
addl -0xc0(%rbp), %ecx
xorl %edx, %edx
divl %ecx
movl %eax, -0xf4(%rbp)
movl -0xf4(%rbp), %eax
movl %eax, -0x94(%rbp)
cmpl $-0x1, -0x94(%rbp)
jne 0x34567f
jmp 0x34593c
movl -0x94(%rbp), %eax
movl %eax, -0xa0(%rbp)
movl $0x0, -0x9c(%rbp)
movl $0x0, -0x98(%rbp)
movl $0x0, -0x84(%rbp)
movl $0x0, -0x7c(%rbp)
movq $0x0, -0xb8(%rbp)
movl -0x7c(%rbp), %eax
cmpl -0x88(%rbp), %eax
jae 0x3457fa
movq -0xa8(%rbp), %rax
movl -0x7c(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl 0xc(%rax), %eax
shrl $0x1f, %eax
cmpl $0x0, %eax
je 0x3456eb
jmp 0x3457ec
movl -0x84(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x84(%rbp)
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0xa8(%rbp), %rax
movl -0x7c(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl 0x8(%rax), %edx
xorl %eax, %eax
movl %eax, %r8d
leaq -0xbc(%rbp), %r9
leaq -0xc0(%rbp), %r10
leaq -0xc4(%rbp), %rax
movq %r8, %rcx
movq %r10, (%rsp)
movq %rax, 0x8(%rsp)
movq $0x0, 0x10(%rsp)
callq 0x344830
movl -0xc0(%rbp), %eax
addl -0xc0(%rbp), %eax
cmpl $0x0, %eax
jne 0x345768
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movl %eax, -0xf8(%rbp)
jmp 0x345784
movl -0xbc(%rbp), %eax
movl -0xc0(%rbp), %ecx
addl -0xc0(%rbp), %ecx
xorl %edx, %edx
divl %ecx
movl %eax, -0xf8(%rbp)
movl -0xf8(%rbp), %eax
movl %eax, -0x94(%rbp)
movl -0x98(%rbp), %eax
cmpl -0x94(%rbp), %eax
jb 0x3457ba
movl -0x98(%rbp), %eax
cmpl -0x94(%rbp), %eax
jne 0x3457ea
movl -0x9c(%rbp), %eax
cmpl -0xbc(%rbp), %eax
jae 0x3457ea
movl -0x94(%rbp), %eax
movl %eax, -0x98(%rbp)
movl -0xbc(%rbp), %eax
movl %eax, -0x9c(%rbp)
movq -0xa8(%rbp), %rax
movl -0x7c(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0xb8(%rbp)
jmp 0x3457ec
movl -0x7c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x7c(%rbp)
jmp 0x3456bb
cmpl $0x1, -0x84(%rbp)
jbe 0x34580d
cmpq $0x0, -0xb8(%rbp)
jne 0x345812
jmp 0x34593c
cmpl $0x2, -0x84(%rbp)
jb 0x345842
movl -0xa0(%rbp), %eax
cvtsi2ss %rax, %xmm0
movl -0x98(%rbp), %eax
cvtsi2ss %rax, %xmm1
mulss -0x1c(%rbp), %xmm1
ucomiss %xmm1, %xmm0
jbe 0x345840
jmp 0x34593c
jmp 0x345842
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0xb0(%rbp), %rax
movl 0x8(%rax), %edx
movl -0x14(%rbp), %ecx
movl -0x18(%rbp), %r8d
movl -0x24(%rbp), %r9d
movq -0x60(%rbp), %r10
movq -0x68(%rbp), %rax
movl $0x1, (%rsp)
movq %r10, 0x8(%rsp)
movq %rax, 0x10(%rsp)
callq 0x344c90
cmpl $0x0, %eax
je 0x34593a
movq -0x60(%rbp), %rax
movq (%rax), %rax
movl %eax, -0xc8(%rbp)
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0xb0(%rbp), %rax
movl 0x8(%rax), %edx
movq -0x60(%rbp), %rax
xorl %ecx, %ecx
movl %ecx, %r9d
movq %r9, %rcx
movq %r9, %r8
movq $0x0, (%rsp)
movq $0x0, 0x8(%rsp)
movq %rax, 0x10(%rsp)
callq 0x344830
movl -0xc8(%rbp), %eax
movl %eax, -0x7c(%rbp)
movl -0x7c(%rbp), %eax
movq -0x60(%rbp), %rcx
cmpq (%rcx), %rax
jae 0x34590c
movq -0x10(%rbp), %rdi
movq -0x60(%rbp), %rax
movq 0x10(%rax), %rax
movl -0x7c(%rbp), %ecx
movq (%rax,%rcx,8), %rax
shrq %rax
movl %eax, %esi
callq 0x342d10
movl -0x7c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x7c(%rbp)
jmp 0x3458d8
movq -0x60(%rbp), %rax
movq (%rax), %rcx
movl -0xc8(%rbp), %eax
subq %rax, %rcx
movl -0x8c(%rbp), %eax
addq %rcx, %rax
movl %eax, -0x8c(%rbp)
movl -0xc8(%rbp), %eax
movl %eax, %ecx
movq -0x60(%rbp), %rax
movq %rcx, (%rax)
jmp 0x34593c
movl -0x80(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x80(%rbp)
jmp 0x345472
cmpq $0x0, 0x18(%rbp)
jne 0x34595a
movq -0x30(%rbp), %rdi
callq 0x2210
cmpq $0x0, 0x20(%rbp)
jne 0x34596a
movq -0x48(%rbp), %rdi
callq 0x2210
cmpl $0x0, -0x8c(%rbp)
jbe 0x34597c
movq -0x70(%rbp), %rdi
callq 0xcdd10
movl -0x8c(%rbp), %eax
addq $0x110, %rsp            # imm = 0x110
popq %rbp
retq
nopl (%rax,%rax)