// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: ulg_arc_cut_misjoin(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_misjoin(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, kw, nw, cnt = 0, n_vtx = g->n_seq<<1, mm_ul, ul_max, to_del;
    asg_arc_t *av, *aw, *ve, *we; uint32_t ul_cnt, pb;

    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, ul_max = -1; i < nv; ++i) {
                if(av[i].del) continue; kv++;
                get_ul_path_info(uidx, ug, av[i].v, NULL, NULL, &ul_cnt, NULL, NULL, NULL);
                if(ul_cnt > ul_max) ul_max = ul_cnt;
            }
            // if((v>>1) == 5958) {
            //     fprintf(stderr, "[M::%s::] v>>1::%u, v&1::%u, kv::%u, ul_max::%u\n", 
            //     __func__, v>>1, v&1, kv, ul_max);
            // }
            if(kv < 2 || ul_max == 0) continue; //note: ul_cnt/ul_max might be 0

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

    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;

        ve = &(g->arc[(uint32_t)b->a[k]]); pb = b->n; ub->n = 0;
        get_ul_path_info(uidx, ug, ve->v, NULL, NULL, &mm_ul, NULL, NULL, NULL);
        // if((v>>1) == 5958 && (w>>1) == 11105) {
        //     fprintf(stderr, ">>>[M::%s::] v>>1::%u, v&1::%u, w>>1::%u, w&1::%u, mm_ul::%u\n", 
        //     __func__, v>>1, v&1, w>>1, w&1, mm_ul);
        // }
        if(mm_ul == 0) continue;///no UL read support this path

        for (i = kv = 0; i < nv; ++i) {
            if(av[i].del) continue; 
            kv++;
            if(av[i].v == ve->v) continue;
            get_ul_path_info(uidx, ug, av[i].v, NULL, NULL, &ul_cnt, NULL, NULL, NULL);
            // if((v>>1) == 5958 && (w>>1) == 11105) {
            //     fprintf(stderr, "*[M::%s::i->%u] v>>1::%u, v&1::%u, w>>1::%u, w&1::%u, av[i].v>>1::%u, av[i].v&1::%u, ul_cnt::%u\n", 
            //     __func__, i, v>>1, v&1, w>>1, w&1, av[i].v>>1, av[i].v&1, ul_cnt);
            // }
            if (mm_ul <= ul_cnt*len_rat) {
                ul_cnt = ((uint32_t)-1) - ul_cnt;
                kv_push(uint64_t, *b, (((uint64_t)ul_cnt)<<32)|((uint64_t)(i)));
            }
        }
        if(b->n == pb) continue;
        to_del = 0; assert(kv >= 2); 

        aw = asg_arc_a(g, w); nw = asg_arc_n(g, w);
        for (i = kw = 0, we = NULL; i < nw; ++i) {
            if (aw[i].del) continue;
            if (aw[i].v == (v^1)) we = &(aw[i]);
            kw++;
        }

        if((kv > 1 && kw > 1) || (usg_bridge_topocut_aux(uidx, ug, ve->v, max_ext, max_ext_hifi, topo_level, 0, b, ub))) {
            radix_sort_srt64(b->a + pb, b->a + b->n);
            for (i = pb; i < b->n; i++) {
                // if((v>>1) == 5958 && (w>>1) == 11105) {
                //     fprintf(stderr, "#[M::%s::srt_i->%u] v>>1::%u, v&1::%u, w>>1::%u, w&1::%u, av[(uint32_t)b->a[i]].v>>1::%u, av[(uint32_t)b->a[i]].v&1::%u\n", 
                //     __func__, (uint32_t)b->a[i], v>>1, v&1, w>>1, w&1, av[(uint32_t)b->a[i]].v>>1, av[(uint32_t)b->a[i]].v&1);
                // }
                if(usg_misjoin_topocut_aux(uidx, ug, ve->v, av[(uint32_t)b->a[i]].v, v, b, ub)) {
                    to_del = 1;
                    break;
                }
            }
        }   

        b->n = pb;
        if(to_del) {
            if(kv > 1 && kw > 1) {
                ve->del = we->del = 1; ++cnt;
            } else {
                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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xf8, %rsp
movl %r9d, 0xa8(%rsp)
movss %xmm0, 0xac(%rsp)
movl %ecx, 0xa4(%rsp)
movl %edx, 0xa0(%rsp)
movq %rsi, 0x40(%rsp)
movq %rdi, 0x48(%rsp)
movq 0x140(%rsp), %rcx
movq 0x138(%rsp), %rdi
xorps %xmm0, %xmm0
leaq 0xc0(%rsp), %r8
movaps %xmm0, (%r8)
xorl %edx, %edx
movq %rdx, 0x10(%r8)
leaq 0xe0(%rsp), %r9
movq %rdx, 0x10(%r9)
movaps %xmm0, (%r9)
movq 0x18(%rsi), %rbp
movl 0x14(%rbp), %eax
addl %eax, %eax
testq %rdi, %rdi
movq %r8, 0x88(%rsp)
cmoveq %r8, %rdi
testq %rcx, %rcx
cmovneq %rcx, %r9
movq %r9, 0x98(%rsp)
movq $0x0, 0x50(%rsp)
movq %rdi, 0x30(%rsp)
movq %rdx, (%rdi)
testl %eax, %eax
movq %rbp, 0x60(%rsp)
je 0x20425e
movq 0x138(%rsp), %rbx
testq %rbx, %rbx
leaq 0xc0(%rsp), %rcx
cmoveq %rcx, %rbx
movl %eax, %eax
movq %rax, 0x90(%rsp)
xorl %r13d, %r13d
movq 0x20(%rbp), %rax
movl %r13d, %ecx
shrl %ecx
cmpl $0x0, (%rax,%rcx,8)
js 0x2040dd
movq 0x30(%rbp), %rax
cmpb $0x0, (%rax,%r13)
je 0x2040ef
incq %r13
cmpq 0x90(%rsp), %r13
jne 0x2040c3
jmp 0x20425e
movq 0x28(%rbp), %rax
movq (%rax,%r13,8), %rax
testl $0xfffffffe, %eax       # imm = 0xFFFFFFFE
je 0x2040dd
movq 0x8(%rbp), %rcx
movq %rax, %rdx
shrq $0x20, %rdx
leaq (%rdx,%rdx,2), %rdx
leaq (%rcx,%rdx,8), %rsi
movq %rsi, 0x28(%rsp)
movl %eax, %r12d
leaq (%rcx,%rdx,8), %r14
addq $0xc, %r14
xorl %r15d, %r15d
movq %r12, 0x38(%rsp)
movq %r14, %rbp
cmpl $0x0, (%rbp)
js 0x204161
incl %r15d
movl -0x4(%rbp), %edx
xorps %xmm0, %xmm0
movups %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
movq 0x48(%rsp), %rdi
movq 0x40(%rsp), %rsi
xorl %ecx, %ecx
xorl %r8d, %r8d
leaq 0x24(%rsp), %r9
callq 0x202015
addq $0x18, %rbp
decq %r12
jne 0x20412c
cmpl $0x2, %r15d
movq 0x60(%rsp), %rbp
movq 0x40(%rsp), %r12
jb 0x2040dd
xorl %r15d, %r15d
cmpl $0x0, (%r14)
js 0x204247
movl -0x4(%r14), %edx
xorps %xmm0, %xmm0
movups %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
movq 0x48(%rsp), %rdi
movq %r12, %rsi
xorl %ecx, %ecx
xorl %r8d, %r8d
leaq 0x24(%rsp), %r9
callq 0x202015
movl 0x24(%rsp), %ecx
testl %ecx, %ecx
je 0x2041cb
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
xorl %edx, %edx
divl %ecx
notl %eax
jmp 0x2041d0
movl $0x3, %eax
movl %eax, 0x24(%rsp)
movq 0x8(%rbx), %rax
movq 0x30(%rsp), %rcx
cmpq %rax, (%rcx)
jne 0x204207
leaq (%rax,%rax), %rsi
testq %rax, %rax
movl $0x2, %eax
cmoveq %rax, %rsi
movq %rsi, 0x8(%rbx)
movq 0x10(%rbx), %rdi
shlq $0x3, %rsi
callq 0x2370
movq %rax, 0x10(%rbx)
movl 0x24(%rsp), %eax
shlq $0x20, %rax
movq 0x28(%rsp), %rcx
subq 0x8(%rbp), %rcx
sarq $0x3, %rcx
movabsq $-0x5555555555555555, %rdx # imm = 0xAAAAAAAAAAAAAAAB
imulq %rdx, %rcx
addq %r15, %rcx
orq %rax, %rcx
movq 0x10(%rbx), %rax
movq 0x30(%rsp), %rdi
movq (%rdi), %rdx
leaq 0x1(%rdx), %rsi
movq %rsi, (%rdi)
movq %rcx, (%rax,%rdx,8)
incq %r15
addq $0x18, %r14
cmpq %r15, 0x38(%rsp)
jne 0x204181
jmp 0x2040dd
movq 0x138(%rsp), %rax
testq %rax, %rax
movq %rax, %rcx
leaq 0xc0(%rsp), %rax
cmoveq %rax, %rcx
movq %rcx, 0x38(%rsp)
movq 0x10(%rcx), %rdi
movq 0x30(%rsp), %r13
movq (%r13), %rax
leaq (%rdi,%rax,8), %rsi
callq 0x1e3b6a
movq (%r13), %rsi
testq %rsi, %rsi
je 0x204847
movq 0x138(%rsp), %rax
testq %rax, %rax
movq 0x88(%rsp), %rcx
cmovneq %rax, %rcx
movq %rcx, 0x88(%rsp)
movl $0xffffffff, %r12d      # imm = 0xFFFFFFFF
leaq 0x24(%rsp), %rbx
xorl %eax, %eax
movq $0x0, 0x50(%rsp)
xorl %r14d, %r14d
movq 0x8(%rbp), %r9
movq 0x38(%rsp), %rcx
movq 0x10(%rcx), %rcx
movl (%rcx,%rax,8), %eax
leaq (%rax,%rax,2), %rax
cmpl $0x0, 0xc(%r9,%rax,8)
js 0x204834
leaq (%r9,%rax,8), %rdi
movq (%rdi), %r8
movq 0x20(%rbp), %rax
movq %r8, %rcx
shrq $0x21, %rcx
cmpl $0x0, (%rax,%rcx,8)
js 0x204834
movl 0x8(%rdi), %edx
movl %edx, %ecx
shrl %ecx
cmpl $0x0, (%rax,%rcx,8)
js 0x204834
movq %r9, 0x80(%rsp)
movq %rsi, 0x58(%rsp)
shrq $0x20, %r8
movq %rdx, %rcx
xorq $0x1, %rcx
movq 0x28(%rbp), %rax
movq %r8, 0x90(%rsp)
movq (%rax,%r8,8), %r15
cmpl $0x1, %r15d
ja 0x204360
testl $0xfffffffe, (%rax,%rcx,8) # imm = 0xFFFFFFFE
je 0x204834
movq %rcx, 0xb8(%rsp)
movq %rdi, 0x28(%rsp)
movq 0x98(%rsp), %rax
xorl %ecx, %ecx
movq %rcx, (%rax)
movq %rcx, 0x10(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, (%rsp)
movq 0x48(%rsp), %rdi
movq 0x40(%rsp), %rsi
xorl %ecx, %ecx
xorl %r8d, %r8d
leaq 0x6c(%rsp), %r9
callq 0x202015
cmpl $0x0, 0x6c(%rsp)
je 0x204834
movq %r14, 0x78(%rsp)
movq %r15, %rax
shrq $0x20, %rax
leaq (%rax,%rax,2), %rcx
xorl %r14d, %r14d
testl %r15d, %r15d
movq %rcx, 0xb0(%rsp)
je 0x2044f2
movl %r15d, %ebp
movq 0x80(%rsp), %rax
leaq (%rax,%rcx,8), %r13
addq $0xc, %r13
xorl %r15d, %r15d
movq 0x28(%rsp), %rax
cmpl $0x0, (%r13)
js 0x2044d0
incl %r14d
movl -0x4(%r13), %edx
cmpl 0x8(%rax), %edx
je 0x2044d0
xorps %xmm0, %xmm0
movups %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
movq 0x48(%rsp), %rdi
movq 0x40(%rsp), %rsi
xorl %ecx, %ecx
xorl %r8d, %r8d
movq %rbx, %r9
callq 0x202015
movl 0x6c(%rsp), %eax
xorps %xmm0, %xmm0
cvtsi2ss %rax, %xmm0
movl 0x24(%rsp), %eax
xorps %xmm1, %xmm1
cvtsi2ss %rax, %xmm1
mulss 0xac(%rsp), %xmm1
ucomiss %xmm0, %xmm1
jb 0x2044cb
notl %eax
movl %eax, 0x24(%rsp)
movq 0x88(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x30(%rsp), %rcx
cmpq %rax, (%rcx)
jne 0x2044a4
leaq (%rax,%rax), %rsi
testq %rax, %rax
movl $0x2, %eax
cmoveq %rax, %rsi
movq 0x88(%rsp), %rax
movq %rsi, 0x8(%rax)
movq 0x38(%rsp), %rbx
movq 0x10(%rbx), %rdi
shlq $0x3, %rsi
callq 0x2370
movq %rax, 0x10(%rbx)
leaq 0x24(%rsp), %rbx
movl 0x24(%rsp), %eax
shlq $0x20, %rax
addq %r15, %rax
movq 0x38(%rsp), %rcx
movq 0x10(%rcx), %rcx
movq 0x30(%rsp), %rdi
movq (%rdi), %rdx
leaq 0x1(%rdx), %rsi
movq %rsi, (%rdi)
movq %rax, (%rcx,%rdx,8)
movq 0x28(%rsp), %rax
incq %r15
addq $0x18, %r13
cmpq %r15, %rbp
jne 0x2043e9
cmpl $0x2, %r14d
setae %r14b
movq 0x60(%rsp), %rbp
movq 0x30(%rsp), %r13
movl 0x58(%rsp), %edi
cmpq %rdi, (%r13)
movq 0x90(%rsp), %rsi
je 0x20482f
testb %r14b, %r14b
je 0x20489c
movq 0x28(%rbp), %rax
movl 0xb8(%rsp), %ecx
movq (%rax,%rcx,8), %rcx
movq %rbp, %rdx
xorl %ebp, %ebp
testl %ecx, %ecx
movq 0xb0(%rsp), %r13
movq %rdi, 0x70(%rsp)
je 0x204574
movq %rcx, %rax
shrq $0x20, %rax
leaq (%rax,%rax,2), %rax
shlq $0x3, %rax
addq 0x8(%rdx), %rax
movl %ecx, %ecx
xorl %r14d, %r14d
cmpl $0x0, 0xc(%rax)
js 0x204562
movl 0x8(%rax), %edx
xorl %esi, %edx
cmpl $0x1, %edx
cmoveq %rax, %r14
incl %ebp
addq $0x18, %rax
decq %rcx
jne 0x20454e
cmpl $0x2, %ebp
setae %bpl
jmp 0x204577
xorl %r14d, %r14d
testb %bpl, %bpl
movq 0x30(%rsp), %r15
jne 0x2045d0
movq 0x28(%rsp), %rax
movl 0x8(%rax), %edx
movq 0x98(%rsp), %rax
movq %rax, 0x10(%rsp)
movq %r15, 0x8(%rsp)
movl $0x0, (%rsp)
movq 0x48(%rsp), %rdi
movq 0x40(%rsp), %rsi
movl 0xa0(%rsp), %ecx
movl 0xa4(%rsp), %r8d
movl 0xa8(%rsp), %r9d
callq 0x2023c1
testl %eax, %eax
je 0x20466d
movq 0x38(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x70(%rsp), %rcx
leaq (%rax,%rcx,8), %rdi
movq (%r15), %rcx
leaq (%rax,%rcx,8), %rsi
callq 0x1e3b6a
movl 0x58(%rsp), %eax
cmpq %rax, (%r15)
jbe 0x20466d
movq 0x80(%rsp), %rcx
leaq (%rcx,%r13,8), %rcx
movq %rcx, 0x80(%rsp)
movq 0x58(%rsp), %rcx
leal 0x1(%rcx), %r13d
movq 0x28(%rsp), %rcx
movl 0x8(%rcx), %edx
movq 0x38(%rsp), %rcx
movq 0x10(%rcx), %rcx
movl (%rcx,%rax,8), %eax
leaq (%rax,%rax,2), %rax
movq 0x80(%rsp), %rcx
movl 0x8(%rcx,%rax,8), %ecx
movq 0x98(%rsp), %rax
movq %rax, (%rsp)
movq 0x48(%rsp), %rdi
movq 0x40(%rsp), %rsi
movq 0x90(%rsp), %r8
movq %r15, %r9
callq 0x203d01
testl %eax, %eax
jne 0x204682
movl %r13d, %eax
incl %r13d
cmpq %rax, (%r15)
ja 0x204614
movq 0x70(%rsp), %rax
movq %rax, (%r15)
movq 0x60(%rsp), %rbp
movq %r15, %r13
jmp 0x20482f
movq 0x70(%rsp), %rax
movq %rax, (%r15)
testb %bpl, %bpl
movq %r15, %r13
je 0x2046b1
orb $-0x80, 0xf(%r14)
movq 0x28(%rsp), %rax
orb $-0x80, 0xf(%rax)
movq 0x50(%rsp), %rax
incl %eax
movq %rax, 0x50(%rsp)
jmp 0x20482a
movq 0x28(%rsp), %rax
movl 0x8(%rax), %edx
movq %r13, 0x10(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, (%rsp)
movq 0x48(%rsp), %rdi
movq %r13, %r14
movq 0x40(%rsp), %r13
movq %r13, %rsi
xorl %ecx, %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x202015
movl 0x58(%rsp), %eax
movq (%r14), %rcx
cmpq %rax, %rcx
jbe 0x20480c
movq 0x58(%rsp), %r14
movq 0x38(%rsp), %rcx
movq 0x10(%rcx), %rcx
movq (%rcx,%rax,8), %rax
movq %rax, %rcx
shrq %rcx
movq 0x18(%r13), %rdx
movq 0x20(%rdx), %rsi
movl %ecx, %ecx
orl $0x80000000, (%rsi,%rcx,8) # imm = 0x80000000
andl $-0x2, %eax
xorl %esi, %esi
leaq (%rsi,%rax), %rdi
movq 0x28(%rdx), %r8
movq (%r8,%rdi,8), %r9
movq %r9, %r8
andq %r12, %r8
je 0x2047af
shrq $0x20, %r9
leaq (%r9,%r9,2), %r9
shlq $0x3, %r9
addq 0x8(%rdx), %r9
xorl %r10d, %r10d
leaq (%r10,%r10,2), %r11
orb $-0x80, 0xf(%r9,%r11,8)
movl 0x8(%r9,%r11,8), %r11d
xorq $0x1, %r11
movq 0x28(%rdx), %r15
movq (%r15,%r11,8), %r15
movq %r15, %r11
andq %r12, %r11
je 0x2047a7
movq 0x8(%rdx), %r13
shrq $0x20, %r15
shlq $0x3, %r11
leaq (%r11,%r11,2), %r11
leaq (%r15,%r15,2), %r15
leaq 0xc(,%r15,8), %r15
addq %r13, %r15
xorl %r13d, %r13d
movl -0x4(%r15,%r13), %ebp
xorl %edi, %ebp
cmpl $0x1, %ebp
jne 0x20479e
orb $-0x80, 0x3(%r15,%r13)
addq $0x18, %r13
cmpq %r13, %r11
jne 0x20478c
incq %r10
cmpq %r8, %r10
jne 0x204747
leaq 0x1(%rsi), %rdi
testq %rsi, %rsi
movq %rdi, %rsi
je 0x204720
movq 0x40(%rsp), %r13
movq 0x10(%r13), %rax
shlq $0x3, %rcx
leaq (%rcx,%rcx,4), %r15
movq 0x18(%rax,%r15), %rdi
callq 0x2220
movq 0x10(%r13), %rax
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax,%r15)
movups %xmm0, (%rax,%r15)
movq $0x0, 0x20(%rax,%r15)
incl %r14d
movq 0x30(%rsp), %rax
movq (%rax), %rcx
movq %r14, %rax
cmpq %r14, %rcx
ja 0x2046f7
subl 0x58(%rsp), %ecx
movq 0x50(%rsp), %rax
addl %ecx, %eax
movq %rax, 0x50(%rsp)
movq 0x30(%rsp), %r13
movq 0x70(%rsp), %rax
movq %rax, (%r13)
movq 0x60(%rsp), %rbp
movq 0x78(%rsp), %r14
incl %r14d
movq (%r13), %rsi
movq %r14, %rax
cmpq %r14, %rsi
ja 0x2042d8
cmpq $0x0, 0x138(%rsp)
jne 0x20485f
movq 0xd0(%rsp), %rdi
callq 0x2220
cmpq $0x0, 0x140(%rsp)
movq 0x50(%rsp), %rbx
jne 0x20487c
movq 0xf0(%rsp), %rdi
callq 0x2220
testl %ebx, %ebx
je 0x204888
movq %rbp, %rdi
callq 0xa02fa
movl %ebx, %eax
addq $0xf8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x37586(%rip), %rdi     # 0x23be29
leaq 0x34a7b(%rip), %rsi     # 0x239325
leaq 0x37580(%rip), %rcx     # 0x23be31
movl $0x2528, %edx           # imm = 0x2528
callq 0x2110