// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: asg_arc_cut_length(asg_t*, asg64_v*, int, float, float, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, ma_hit_t_alloc*, R_to_U*, unsigned int*)
void asg_arc_cut_length(asg_t *g, asg64_v *in, int32_t max_ext, float len_rat, float ou_rat, uint32_t is_ou, uint32_t is_trio, 
uint32_t is_topo, uint32_t min_diff, uint32_t min_ou, ma_hit_t_alloc *rev, R_to_U* rI, uint32_t *max_drop_len)
{
    asg64_v tx = {0,0,0}, *b = NULL;
    uint32_t i, k, v, w, n_vtx = g->n_seq<<1, nv, nw, kv, kw, trioF = (uint32_t)-1, ntrioF = (uint32_t)-1, ol_max, ou_max, to_del, cnt = 0, mm_ol, mm_ou;
    asg_arc_t *av, *aw, *ve, *we, *vl_max, *wl_max;

    if(in) b = in;
    else b = &tx;
	b->n = 0;

    for (v = 0; v < n_vtx; ++v) {
        // if((v>>1)==17078) fprintf(stderr, "[M::%s::] v:%u, del:%u, seq_vis:%u\n", __func__, v, g->seq[v>>1].del, g->seq_vis[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; ++i) {
                if(av[i].del) continue;
                kv++;
            }
            if(kv < 2) continue;

            for (i = 0; i < nv; ++i) {
                if(av[i].del) continue;
                // if((av[i].ul>>33)==287) {
                //     fprintf(stderr, "++++++%.*s(%c)\t%.*s(%c)\tol:%u\tou:%u\n", 
                //     (int32_t)Get_NAME_LENGTH(R_INF, (av[i].ul>>33)), Get_NAME(R_INF, (av[i].ul>>33)), "+-"[(av[i].ul>>32)&1], 
                //     (int32_t)Get_NAME_LENGTH(R_INF, (av[i].v>>1)), Get_NAME(R_INF, (av[i].v>>1)), "+-"[av[i].v&1], av[i].ol, av[i].ou);
                // }
                if(max_drop_len && av[i].ol >= (*max_drop_len)) continue;
                kv_push(uint64_t, *b, (((uint64_t)av[i].ol)<<32) | ((uint64_t)(av-g->arc+i)));   
            }
        }
	}

    if(rev && rI) memset(g->seq_vis, 0, g->n_seq*2*sizeof(uint8_t));
    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); nw = asg_arc_n(g, w);
        av = asg_arc_a(g, v); aw = asg_arc_a(g, w);
        if(nv<=1 && nw <= 1) continue;

        if(is_trio) {
            if(get_arcs(g, v, NULL, 0)<=1 && get_arcs(g, w, NULL, 0)<=1) continue;///speedup
            trioF = get_tip_trio_infor(g, v^1);
            ntrioF = (trioF==FATHER? MOTHER : (trioF==MOTHER? FATHER : (uint32_t)-1));
        }

        ve = &(g->arc[(uint32_t)b->a[k]]);
        for (i = 0; i < nw; ++i) {
            if (aw[i].v == (v^1)) {
                we = &(aw[i]);
                break;
            }
        }
        ///mm_ol and mm_ou are used to make edge with long indel more easy to be cutted
        mm_ol = MIN(ve->ol, we->ol); mm_ou = MIN(ve->ou, we->ou);

        for (i = kv = ol_max = ou_max = 0, /**ve =**/ vl_max = NULL; i < nv; ++i) {
            if(av[i].del) continue;
            // if(av[i].v == (w^1)) ve = &(av[i]);
            // if((av[i].ul>>33)==287) {
            //     fprintf(stderr, "++++++%.*s(%c)\t%.*s(%c)\tol:%u\tou:%u\n", 
            //     (int32_t)Get_NAME_LENGTH(R_INF, (av[i].ul>>33)), Get_NAME(R_INF, (av[i].ul>>33)), "+-"[(av[i].ul>>32)&1], 
            //     (int32_t)Get_NAME_LENGTH(R_INF, (av[i].v>>1)), Get_NAME(R_INF, (av[i].v>>1)), "+-"[av[i].v&1], av[i].ol, av[i].ou);
            // }
            kv++;
            if(is_trio && get_tip_trio_infor(g, av[i].v) == ntrioF) continue;
            if(ol_max < av[i].ol) ol_max = av[i].ol, vl_max = &(av[i]);
            if(ou_max < av[i].ou) ou_max = av[i].ou;
        }
        if (kv < 1) continue;
        if (kv >= 2) {
            if (mm_ol > ol_max*len_rat) continue;
            if (is_ou && mm_ou > ou_max*ou_rat && mm_ou > min_ou) continue;
            if ((mm_ol + min_diff) > ol_max) continue;
        }
        

        for (i = kw = ol_max = ou_max = 0, wl_max = NULL; i < nw; ++i) {
            if(aw[i].del) continue;
            kw++;
            if(is_trio && get_tip_trio_infor(g, aw[i].v) == ntrioF) continue;
            if(ol_max < aw[i].ol) ol_max = aw[i].ol, wl_max = &(aw[i]);
            if(ou_max < aw[i].ou) ou_max = aw[i].ou;
        }
        if (kw < 1) continue;
        if (kw >= 2) {
            if (mm_ol > ol_max*len_rat) continue;
            if (is_ou && mm_ou > ou_max*ou_rat && mm_ou > min_ou) continue;
            if ((mm_ol + min_diff) > ol_max) continue;
        }

        if (kv <= 1 && kw <= 1) continue;

        to_del = 0;
        if(is_topo) {
            if (kv > 1 && kw > 1) {
                to_del = 1;
            } else if (kw == 1) {
                if (asg_topocut_aux(g, w^1, max_ext) < max_ext) to_del = 1;
            } else if (kv == 1) {
                if (asg_topocut_aux(g, v^1, max_ext) < max_ext) to_del = 1;
            }
        }

        if(rev && rI) {
            if((to_del == 0) && vl_max && (ve->v!=vl_max->v) && (trans_path_check(ve->v, vl_max->v, g, rev, rI, max_ext, b)==0)) {
                to_del = 1;
            }
            if((to_del == 0) && wl_max && (we->v!=wl_max->v) && (trans_path_check(we->v, wl_max->v, g, rev, rI, max_ext, b)==0)) {
                to_del = 1;
            }
            if(vl_max && wl_max) assert(ve->v!=vl_max->v||we->v!=wl_max->v);
        }
        

        if (to_del) {
            ve->del = we->del = 1, ++cnt;
        }
    }
    // stats_sysm(g);
    if(!in) free(tx.a);
    if (cnt > 0) asg_cleanup(g);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movl %r9d, 0x7c(%rsp)
movl %r8d, 0x44(%rsp)
movl %ecx, 0x64(%rsp)
movss %xmm1, 0x5c(%rsp)
movss %xmm0, 0x68(%rsp)
movl %edx, 0x3c(%rsp)
xorps %xmm0, %xmm0
leaq 0xa0(%rsp), %r8
movaps %xmm0, (%r8)
xorl %ecx, %ecx
movq %rcx, 0x10(%r8)
movl 0x14(%rdi), %eax
addl %eax, %eax
testq %rsi, %rsi
movq %rsi, 0x98(%rsp)
cmovneq %rsi, %r8
movq %rcx, (%r8)
testl %eax, %eax
movq %rdi, 0x20(%rsp)
movq %r8, 0x28(%rsp)
je 0x1e8439
movq 0x110(%rsp), %r10
movl %eax, %r9d
xorl %r12d, %r12d
movl $0x7fffffff, %r11d      # imm = 0x7FFFFFFF
movabsq $-0x5555555555555555, %r14 # imm = 0xAAAAAAAAAAAAAAAB
movq 0x20(%rdi), %rax
movl %r12d, %ecx
shrl %ecx
cmpl $0x0, (%rax,%rcx,8)
js 0x1e831b
movq 0x30(%rdi), %rax
cmpb $0x0, (%rax,%r12)
je 0x1e8328
incq %r12
cmpq %r9, %r12
jne 0x1e8301
jmp 0x1e8439
movq 0x28(%rdi), %rax
movq (%rax,%r12,8), %rax
testl $0xfffffffe, %eax       # imm = 0xFFFFFFFE
je 0x1e831b
movq 0x8(%rdi), %rcx
movq %rax, %rdx
shrq $0x20, %rdx
leaq (%rdx,%rdx,2), %rdx
leaq (%rcx,%rdx,8), %rbx
movl %eax, %r13d
leaq (%rcx,%rdx,8), %r15
addq $0xc, %r15
xorl %eax, %eax
movq %r13, %rcx
movq %r15, %rdx
movl (%rdx), %esi
notl %esi
shrl $0x1f, %esi
addl %esi, %eax
addq $0x18, %rdx
decq %rcx
jne 0x1e835d
cmpl $0x2, %eax
jb 0x1e831b
xorl %ebp, %ebp
movq %rbx, 0x30(%rsp)
movl (%r15), %eax
testl %eax, %eax
js 0x1e8424
testq %r10, %r10
je 0x1e8394
cmpl (%r10), %eax
jae 0x1e8424
movq 0x8(%r8), %rax
cmpq %rax, (%r8)
jne 0x1e83f3
leaq (%rax,%rax), %rsi
testq %rax, %rax
movl $0x2, %eax
cmoveq %rax, %rsi
movq %rsi, 0x8(%r8)
movq 0x10(%r8), %rdi
shlq $0x3, %rsi
movq %r9, %r14
movq %r13, %rbx
movq %r10, %r13
callq 0x2370
movl $0x7fffffff, %r11d      # imm = 0x7FFFFFFF
movq %r13, %r10
movq %rbx, %r13
movq %r14, %r9
movabsq $-0x5555555555555555, %r14 # imm = 0xAAAAAAAAAAAAAAAB
movq 0x30(%rsp), %rbx
movq 0x28(%rsp), %r8
movq 0x20(%rsp), %rdi
movq %rax, 0x10(%r8)
movl (%r15), %eax
andl %r11d, %eax
shlq $0x20, %rax
movq %rbx, %rcx
subq 0x8(%rdi), %rcx
sarq $0x3, %rcx
imulq %r14, %rcx
addq %rbp, %rcx
orq %rax, %rcx
movq 0x10(%r8), %rax
movq (%r8), %rdx
leaq 0x1(%rdx), %rsi
movq %rsi, (%r8)
movq %rcx, (%rax,%rdx,8)
incq %rbp
addq $0x18, %r15
cmpq %rbp, %r13
jne 0x1e837b
jmp 0x1e831b
cmpq $0x0, 0x100(%rsp)
setne %al
cmpq $0x0, 0x108(%rsp)
setne %bl
andb %al, %bl
cmpb $0x1, %bl
jne 0x1e8472
movq 0x20(%rsp), %rax
movq 0x30(%rax), %rdi
movl 0x14(%rax), %edx
addl %edx, %edx
xorl %esi, %esi
callq 0x20e0
movq 0x28(%rsp), %r8
movq 0x10(%r8), %rdi
movq (%r8), %rax
leaq (%rdi,%rax,8), %rsi
callq 0x1e3b6a
movq 0x28(%rsp), %r9
cmpq $0x0, (%r9)
je 0x1e8a6e
movb %bl, 0x17(%rsp)
movl $0xffffffff, 0x40(%rsp) # imm = 0xFFFFFFFF
xorl %esi, %esi
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
movl $0x0, 0x60(%rsp)
movq 0x20(%rsp), %r8
movq 0x8(%r8), %r12
movq 0x10(%r9), %rax
movl (%rax,%rsi,8), %eax
leaq (%rax,%rax,2), %rcx
cmpl $0x0, 0xc(%r12,%rcx,8)
js 0x1e8905
movq (%r12,%rcx,8), %rbx
movq 0x20(%r8), %rax
movq %rbx, %rdx
shrq $0x21, %rdx
cmpl $0x0, (%rax,%rdx,8)
js 0x1e8905
movl 0x8(%r12,%rcx,8), %r13d
movl %r13d, %ecx
shrl %ecx
cmpl $0x0, (%rax,%rcx,8)
js 0x1e8905
shrq $0x20, %rbx
movq %r13, %rcx
xorq $0x1, %rcx
movq 0x28(%r8), %rax
movq (%rax,%rbx,8), %r10
movq (%rax,%rcx,8), %r15
cmpl $0x1, %r10d
ja 0x1e8520
cmpl $0x2, %r15d
jb 0x1e8905
movq %r15, 0x50(%rsp)
shrq $0x20, %r15
cmpl $0x0, 0x44(%rsp)
je 0x1e85dc
movq %rsi, %r14
movq (%rax,%rbx,8), %rax
movq %rax, %rcx
andq %rbp, %rcx
je 0x1e8568
shrq $0x20, %rax
xorl %edx, %edx
movl %eax, %esi
leaq (%rsi,%rsi,2), %rsi
movl 0xc(%r12,%rsi,8), %esi
notl %esi
shrl $0x1f, %esi
addl %esi, %edx
incq %rax
decq %rcx
jne 0x1e8549
cmpl $0x1, %edx
ja 0x1e859e
movq 0x50(%rsp), %rax
andq %rbp, %rax
je 0x1e8596
xorl %ecx, %ecx
movq %r15, %rdx
movl %edx, %esi
leaq (%rsi,%rsi,2), %rsi
movl 0xc(%r12,%rsi,8), %esi
notl %esi
shrl $0x1f, %esi
addl %esi, %ecx
incq %rdx
decq %rax
jne 0x1e8577
cmpl $0x2, %ecx
jae 0x1e859e
movq %r14, %rsi
jmp 0x1e8905
movl %ebx, %esi
xorl $0x1, %esi
movq %r8, %rdi
movq %r10, %rbp
callq 0xab815
movq %rbp, %r10
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
movq 0x28(%rsp), %r9
movq 0x20(%rsp), %r8
xorl %ecx, %ecx
cmpb $0x2, %al
sete %cl
cmpb $0x1, %al
leal -0x1(%rcx,%rcx), %ecx
movl $0x2, %eax
cmovel %eax, %ecx
movl %ecx, 0x40(%rsp)
movq %r14, %rsi
leaq (%r15,%r15,2), %rax
movq 0x10(%r9), %rcx
movq %rsi, 0x18(%rsp)
movl (%rcx,%rsi,8), %ecx
leaq (%rcx,%rcx,2), %rsi
shlq $0x3, %rsi
addq 0x8(%r8), %rsi
leaq (%r12,%rax,8), %r15
movq %r15, %rax
movq 0x50(%rsp), %rdx
movl %edx, %ecx
testl %edx, %edx
je 0x1e8623
movl 0x8(%rax), %edx
xorl %ebx, %edx
cmpl $0x1, %edx
je 0x1e861e
addq $0x18, %rax
decl %ecx
jne 0x1e860a
jmp 0x1e8623
movq %rax, 0x70(%rsp)
movq %r13, 0x80(%rsp)
movq %rbx, 0x90(%rsp)
movl 0xc(%rsi), %eax
movl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
andl %ecx, %eax
movq 0x70(%rsp), %rdx
movl 0xc(%rdx), %edi
andl %ecx, %edi
cmpl %edi, %eax
cmovbl %eax, %edi
movq %rdi, 0x48(%rsp)
movq %rsi, 0x88(%rsp)
movzwl 0x10(%rsi), %eax
movl $0x3fff, %ecx           # imm = 0x3FFF
andl %ecx, %eax
movzwl 0x10(%rdx), %edx
andl %ecx, %edx
cmpw %dx, %ax
cmovbl %eax, %edx
movl %edx, 0x6c(%rsp)
testl %r10d, %r10d
je 0x1e8713
movq %r10, %rax
shrq $0x20, %rax
leaq (%rax,%rax,2), %rax
leaq (%r12,%rax,8), %rbx
movl %r10d, %r12d
movq $0x0, 0x30(%rsp)
xorl %ebp, %ebp
xorl %r13d, %r13d
xorl %esi, %esi
cmpl $0x0, 0xc(%rbx)
js 0x1e86ff
incl %esi
cmpl $0x0, 0x44(%rsp)
je 0x1e86d2
movq %rsi, %r14
movl 0x8(%rbx), %esi
movq %r8, %rdi
callq 0xab815
movq %r14, %rsi
movq 0x28(%rsp), %r9
movq 0x20(%rsp), %r8
movzbl %al, %eax
cmpl %eax, 0x40(%rsp)
je 0x1e86ff
movl 0xc(%rbx), %eax
movl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
andl %ecx, %eax
cmpl %eax, %r13d
cmovbel %eax, %r13d
movq 0x30(%rsp), %rax
cmovbq %rbx, %rax
movq %rax, 0x30(%rsp)
movzwl 0x10(%rbx), %eax
andl $0x3fff, %eax           # imm = 0x3FFF
cmpl %eax, %ebp
cmovbel %eax, %ebp
addq $0x18, %rbx
decq %r12
jne 0x1e869f
cvtsi2ss %ebp, %xmm0
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
jmp 0x1e8724
xorps %xmm0, %xmm0
xorl %esi, %esi
xorl %r13d, %r13d
movq $0x0, 0x30(%rsp)
testl %esi, %esi
je 0x1e8900
cmpl $0x1, %esi
jne 0x1e87d4
movq 0x50(%rsp), %rax
testl %eax, %eax
je 0x1e883d
movl %eax, %ebx
xorl %r14d, %r14d
xorl %r13d, %r13d
xorl %edx, %edx
xorl %edi, %edi
cmpl $0x0, 0xc(%r15)
js 0x1e87bc
incl %edi
cmpl $0x0, 0x44(%rsp)
je 0x1e8797
movq %r14, 0x50(%rsp)
movq %rsi, %r14
movl 0x8(%r15), %esi
movq %rdi, %r12
movq %r8, %rdi
movl %edx, %ebp
callq 0xab815
movl %ebp, %edx
movq %r12, %rdi
movq %r14, %rsi
movq 0x50(%rsp), %r14
movq 0x28(%rsp), %r9
movq 0x20(%rsp), %r8
movzbl %al, %eax
cmpl %eax, 0x40(%rsp)
je 0x1e87bc
movl 0xc(%r15), %eax
movl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
andl %ecx, %eax
cmpl %eax, %edx
cmovbel %eax, %edx
cmovbq %r15, %r14
movzwl 0x10(%r15), %eax
andl $0x3fff, %eax           # imm = 0x3FFF
cmpl %eax, %r13d
cmovbel %eax, %r13d
addq $0x18, %r15
decq %rbx
jne 0x1e874e
xorps %xmm0, %xmm0
cvtsi2ss %r13d, %xmm0
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
jmp 0x1e8847
cvtsi2ssl 0x48(%rsp), %xmm1
cvtsi2ss %r13d, %xmm2
mulss 0x68(%rsp), %xmm2
ucomiss %xmm2, %xmm1
ja 0x1e8900
cmpl $0x0, 0x64(%rsp)
je 0x1e8821
movl 0x6c(%rsp), %ecx
movswl %cx, %eax
xorps %xmm1, %xmm1
cvtsi2ss %eax, %xmm1
mulss 0x5c(%rsp), %xmm0
ucomiss %xmm0, %xmm1
seta %al
cmpl 0xf8(%rsp), %ecx
seta %cl
testb %cl, %al
jne 0x1e8900
movl 0xf0(%rsp), %eax
movq 0x48(%rsp), %rcx
addl %ecx, %eax
cmpl %r13d, %eax
jbe 0x1e8735
jmp 0x1e8900
xorps %xmm0, %xmm0
xorl %edi, %edi
xorl %edx, %edx
xorl %r14d, %r14d
testl %edi, %edi
je 0x1e8900
cmpl $0x1, %edi
jne 0x1e88a0
movl %esi, %eax
xorl $0x1, %eax
movl %edi, %ecx
xorl $0x1, %ecx
orl %eax, %ecx
je 0x1e8900
movb $0x1, %al
cmpl $0x0, 0x7c(%rsp)
je 0x1e8915
cmpl $0x1, %esi
setne %cl
cmpl $0x1, %edi
setne %dl
testb %dl, %cl
movq 0x88(%rsp), %r15
movq 0x30(%rsp), %r12
je 0x1e8926
movl $0x1, %ecx
xorl %eax, %eax
jmp 0x1e8971
xorps %xmm1, %xmm1
cvtsi2ssl 0x48(%rsp), %xmm1
xorps %xmm2, %xmm2
cvtsi2ss %edx, %xmm2
mulss 0x68(%rsp), %xmm2
ucomiss %xmm2, %xmm1
ja 0x1e8900
cmpl $0x0, 0x64(%rsp)
je 0x1e88ea
movl 0x6c(%rsp), %ecx
movswl %cx, %eax
xorps %xmm1, %xmm1
cvtsi2ss %eax, %xmm1
mulss 0x5c(%rsp), %xmm0
ucomiss %xmm0, %xmm1
seta %al
cmpl 0xf8(%rsp), %ecx
seta %cl
testb %cl, %al
jne 0x1e8900
movl 0xf0(%rsp), %eax
movq 0x48(%rsp), %rcx
addl %eax, %ecx
cmpl %edx, %ecx
jbe 0x1e8854
movq 0x18(%rsp), %rsi
incl %esi
cmpq %rsi, (%r9)
ja 0x1e84b1
jmp 0x1e8a64
xorl %ecx, %ecx
movq 0x88(%rsp), %r15
movq 0x30(%rsp), %r12
jmp 0x1e8971
cmpl $0x1, %edi
je 0x1e8943
cmpl $0x1, %esi
jne 0x1e896f
movq 0x90(%rsp), %rax
xorl $0x1, %eax
movq %rax, 0x80(%rsp)
movq %r8, %rdi
movq 0x80(%rsp), %rsi
movl 0x3c(%rsp), %ebx
movl %ebx, %edx
callq 0xaa77e
movq 0x28(%rsp), %r9
movq 0x20(%rsp), %r8
xorl %ecx, %ecx
cmpl %ebx, %eax
setge %al
setl %cl
jmp 0x1e8971
xorl %ecx, %ecx
cmpb $0x0, 0x17(%rsp)
je 0x1e8a40
testq %r12, %r12
setne %dl
andb %dl, %al
cmpb $0x1, %al
jne 0x1e89c9
movl 0x8(%r15), %edi
movl 0x8(%r12), %esi
xorl %ecx, %ecx
cmpl %esi, %edi
je 0x1e89c9
movq %r9, (%rsp)
movq %r8, %rdx
movq 0x100(%rsp), %rcx
movq 0x108(%rsp), %r8
movl 0x3c(%rsp), %r9d
callq 0x1e7fa4
movq 0x28(%rsp), %r9
movq 0x20(%rsp), %r8
xorl %ecx, %ecx
testl %eax, %eax
sete %cl
testl %ecx, %ecx
jne 0x1e8a16
testq %r14, %r14
je 0x1e8a16
movq 0x70(%rsp), %rax
movl 0x8(%rax), %edi
movl 0x8(%r14), %esi
xorl %ecx, %ecx
cmpl %esi, %edi
je 0x1e8a16
movq %r9, (%rsp)
movq %r8, %rdx
movq 0x100(%rsp), %rcx
movq 0x108(%rsp), %r8
movl 0x3c(%rsp), %r9d
callq 0x1e7fa4
movq 0x28(%rsp), %r9
movq 0x20(%rsp), %r8
xorl %ecx, %ecx
testl %eax, %eax
sete %cl
testq %r12, %r12
je 0x1e8a40
testq %r14, %r14
movq 0x18(%rsp), %rsi
je 0x1e8a45
movl 0x8(%r15), %eax
cmpl 0x8(%r12), %eax
jne 0x1e8a45
movq 0x70(%rsp), %rax
movl 0x8(%rax), %eax
cmpl 0x8(%r14), %eax
jne 0x1e8a45
jmp 0x1e8ab0
movq 0x18(%rsp), %rsi
testl %ecx, %ecx
je 0x1e8905
movq 0x70(%rsp), %rax
orb $-0x80, 0xf(%rax)
orb $-0x80, 0xf(%r15)
incl 0x60(%rsp)
jmp 0x1e8905
cmpl $0x0, 0x60(%rsp)
sete %bl
jmp 0x1e8a75
movb $0x1, %bl
movq 0x20(%rsp), %r8
cmpq $0x0, 0x98(%rsp)
jne 0x1e8a92
movq 0xb0(%rsp), %rdi
callq 0x2220
movq 0x20(%rsp), %r8
testb %bl, %bl
jne 0x1e8a9e
movq %r8, %rdi
callq 0xa02fa
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x50b71(%rip), %rdi     # 0x239628
leaq 0x50867(%rip), %rsi     # 0x239325
leaq 0x50b86(%rip), %rcx     # 0x23964b
movl $0x575, %edx            # imm = 0x575
callq 0x2110