// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: asg_arc_cut_weak(asg_t*, asg64_v*, int, float, float, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, ma_hit_t_alloc*, R_to_U*, unsigned int*)
void asg_arc_cut_weak(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, uint32_t test_bub, 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, wz, 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, olw[2], m;
    asg_arc_t *av, *aw, *ve, *we, *vl_max, *wl_max; ma_hit_t_alloc *z = NULL;

    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((test_bub == 0) || (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 = olw[1] = 0, olw[0] = (uint32_t)-1; i < nv; ++i) {
                if(av[i].del) continue;
                if(av[i].strong) {
                    if(av[i].ol > olw[av[i].strong]) olw[av[i].strong] = av[i].ol;
                } else {
                    if(av[i].ol < olw[av[i].strong]) olw[av[i].strong] = av[i].ol;
                }
            }
            if(olw[1] <= olw[0]) continue;
            for (i = 0; i < nv; ++i) {
                if(av[i].del || av[i].strong) continue;
                if(av[i].ol >= olw[1]) continue;
                if(max_drop_len && av[i].ol >= (*max_drop_len)) continue;
                if(is_dedup_weak_arc(av, nv, i, rev)) {
                    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, vl_max = NULL; i < nv; ++i) {
            if(av[i].del) continue;
            kv++;
            if((av[i].v == ve->v) || (!av[i].strong) || (av[i].ol <= ve->ol)) continue;
            if(is_trio && get_tip_trio_infor(g, av[i].v) == ntrioF) continue;

            z = &(rev[av[i].v>>1]); wz = (ve->v^(av[i].v&1));
            for (m = 0; m < z->length; m++) {
                if((z->buffer[m].tn<<1|(z->buffer[m].rev)) == wz) break;
            }
            if(m >= z->length) 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((aw[i].v == we->v) || (!aw[i].strong) || (aw[i].ol <= we->ol)) continue;
            if(is_trio && get_tip_trio_infor(g, aw[i].v) == ntrioF) continue;

            z = &(rev[aw[i].v>>1]); wz = (we->v^(aw[i].v&1));
            for (m = 0; m < z->length; m++) {
                if((z->buffer[m].tn<<1|(z->buffer[m].rev)) == wz) break;
            }
            if(m >= z->length) 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 $0xc8, %rsp
movl %r9d, 0x94(%rsp)
movl %r8d, 0x54(%rsp)
movl %ecx, 0x78(%rsp)
movss %xmm1, 0x74(%rsp)
movss %xmm0, 0x7c(%rsp)
movl %edx, 0x4c(%rsp)
movq 0x128(%rsp), %r10
movl 0x110(%rsp), %r11d
xorps %xmm0, %xmm0
leaq 0xb0(%rsp), %r9
movaps %xmm0, (%r9)
andq $0x0, 0x10(%r9)
movl 0x14(%rdi), %ebx
addl %ebx, %ebx
testq %rsi, %rsi
movq %rsi, 0xa8(%rsp)
cmovneq %rsi, %r9
andq $0x0, (%r9)
xorl %r14d, %r14d
movq %rdi, 0x18(%rsp)
movq %r9, 0x10(%rsp)
movq %rbx, 0x58(%rsp)
cmpq %rbx, %r14
je 0x1a8c38
movq 0x20(%rdi), %rax
movl %r14d, %ecx
shrl %ecx
cmpl $0x0, (%rax,%rcx,8)
js 0x1a8c30
testl %r11d, %r11d
je 0x1a8a49
movq 0x30(%rdi), %rax
cmpb $0x0, (%rax,%r14)
jne 0x1a8c30
movq 0x28(%rdi), %rax
movq (%rax,%r14,8), %rax
movq %rax, 0x60(%rsp)
cmpl $0x2, %eax
jb 0x1a8c30
movq 0x8(%rdi), %r15
movq 0x60(%rsp), %rdx
movq %rdx, %rax
shrq $0x20, %rax
imulq $0x18, %rax, %rcx
leaq (%r15,%rcx), %rax
movq %rax, 0x20(%rsp)
movl %edx, %eax
movq %rax, 0x40(%rsp)
imulq $0x18, %rax, %rax
leaq (%r15,%rcx), %rbp
addq $0xc, %rbp
xorl %edx, %edx
xorl %esi, %esi
cmpq %rdx, %rax
je 0x1a8aad
movl (%rbp,%rdx), %r8d
notl %r8d
shrl $0x1f, %r8d
addl %r8d, %esi
addq $0x18, %rdx
jmp 0x1a8a93
movq %r15, 0x38(%rsp)
cmpl $0x2, %esi
jb 0x1a8c30
movq 0x38(%rsp), %rdx
addq %rdx, %rcx
addq $0x10, %rcx
xorl %edx, %edx
xorl %r13d, %r13d
pushq $-0x1
popq %rsi
cmpq %rdx, %rax
je 0x1a8afb
movl -0x4(%rcx,%rdx), %r8d
testl %r8d, %r8d
js 0x1a8af5
testb $0x40, 0x1(%rcx,%rdx)
jne 0x1a8aee
cmpl %esi, %r8d
cmovbl %r8d, %esi
jmp 0x1a8af5
cmpl %r13d, %r8d
cmoval %r8d, %r13d
addq $0x18, %rdx
jmp 0x1a8acf
cmpl %esi, %r13d
movq 0x40(%rsp), %rax
jbe 0x1a8c30
xorl %r12d, %r12d
cmpq %r12, %rax
je 0x1a8c30
movl (%rbp), %r15d
testl %r15d, %r15d
js 0x1a8c24
testb $0x40, 0x5(%rbp)
jne 0x1a8c24
cmpl %r13d, %r15d
jae 0x1a8c24
testq %r10, %r10
je 0x1a8b43
cmpl (%r10), %r15d
jae 0x1a8c24
movq %r10, %rbx
movq 0x20(%rsp), %rdi
movq 0x60(%rsp), %rsi
movl %r12d, %edx
movq 0x118(%rsp), %rcx
callq 0x1a88ec
testl %eax, %eax
je 0x1a8bbd
movq 0x10(%rsp), %r9
movq (%r9), %rcx
movq 0x10(%r9), %r8
cmpq 0x8(%r9), %rcx
jne 0x1a8bd4
leaq (%rcx,%rcx), %rsi
testq %rcx, %rcx
pushq $0x2
popq %rax
cmoveq %rax, %rsi
movq %rsi, 0x8(%r9)
shlq $0x3, %rsi
movq %r8, %rdi
callq 0x2370
movq 0x10(%rsp), %r9
movq %rax, %r8
movq %rax, 0x10(%r9)
movl (%rbp), %r15d
movq 0x18(%rsp), %rdi
movq 0x8(%rdi), %rdx
movq (%r9), %rcx
movq %rbx, %r10
movl 0x110(%rsp), %r11d
jmp 0x1a8be9
movq 0x18(%rsp), %rdi
movq 0x10(%rsp), %r9
movq %rbx, %r10
movl 0x110(%rsp), %r11d
jmp 0x1a8c1a
movq 0x18(%rsp), %rdi
movq %rbx, %r10
movl 0x110(%rsp), %r11d
movq 0x38(%rsp), %rdx
andl $0x7fffffff, %r15d      # imm = 0x7FFFFFFF
shlq $0x20, %r15
movq 0x20(%rsp), %rax
movq %rdx, 0x38(%rsp)
subq %rdx, %rax
cqto
pushq $0x18
popq %rsi
idivq %rsi
addq %r12, %rax
orq %r15, %rax
leaq 0x1(%rcx), %rdx
movq %rdx, (%r9)
movq %rax, (%r8,%rcx,8)
movq 0x58(%rsp), %rbx
movq 0x40(%rsp), %rax
incq %r12
addq $0x18, %rbp
jmp 0x1a8b0c
incq %r14
jmp 0x1a8a19
cmpq $0x0, 0x118(%rsp)
setne %al
cmpq $0x0, 0x120(%rsp)
setne %cl
andb %al, %cl
movb %cl, 0xf(%rsp)
cmpb $0x1, %cl
jne 0x1a8c75
movq 0x18(%rsp), %rax
movq 0x30(%rax), %rdi
movl 0x14(%rax), %edx
addl %edx, %edx
xorl %esi, %esi
callq 0x20e0
movq 0x10(%rsp), %r9
movq 0x10(%r9), %rdi
movq (%r9), %rax
leaq (%rdi,%rax,8), %rsi
callq 0x1a3def
movq 0x10(%rsp), %r11
movq $0x0, 0x80(%rsp)
pushq $-0x1
popq %rax
movl %eax, 0x58(%rsp)
movl $0x7fffffff, %edi       # imm = 0x7FFFFFFF
xorl %r14d, %r14d
movq 0x18(%rsp), %r10
movl %r14d, %r14d
cmpq %r14, (%r11)
jbe 0x1a93d0
movq 0x8(%r10), %rbp
movq 0x10(%r11), %rax
movl (%rax,%r14,8), %eax
imulq $0x18, %rax, %rdx
cmpl $0x0, 0xc(%rbp,%rdx)
js 0x1a8d1a
movq (%rbp,%rdx), %r8
movq 0x20(%r10), %rcx
movq %r8, %rsi
shrq $0x21, %rsi
cmpl $0x0, (%rcx,%rsi,8)
js 0x1a8d1a
movl 0x8(%rbp,%rdx), %esi
movl %esi, %edx
shrl %edx
cmpl $0x0, (%rcx,%rdx,8)
js 0x1a8d1a
shrq $0x20, %r8
movq %rsi, %r12
xorq $0x1, %r12
movq 0x28(%r10), %rcx
movq %r8, 0x40(%rsp)
movq (%rcx,%r8,8), %r8
movq (%rcx,%r12,8), %rbx
movl %ebx, %ecx
orl %r8d, %ecx
testl $0xfffffffe, %ecx       # imm = 0xFFFFFFFE
jne 0x1a8d25
movq %r13, %r12
incl %r14d
movq %r12, %r13
jmp 0x1a8caa
movq %rsi, 0x98(%rsp)
cmpl $0x0, 0x54(%rsp)
je 0x1a8dc5
movq %r8, 0x60(%rsp)
movq %r10, %rdi
movq 0x40(%rsp), %rsi
xorl %edx, %edx
xorl %ecx, %ecx
movq %r10, %r15
callq 0x1a5422
cmpl $0x1, %eax
ja 0x1a8d7c
movq %r15, %rdi
movl %r12d, %esi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x1a5422
cmpl $0x2, %eax
jae 0x1a8d7c
movq %r13, %r12
movq %r15, %r10
movq 0x10(%rsp), %r11
movl $0x7fffffff, %edi       # imm = 0x7FFFFFFF
jmp 0x1a8d1d
movq 0x40(%rsp), %rax
movl %eax, %esi
xorl $0x1, %esi
movq %r15, %rdi
callq 0x728c0
xorl %ecx, %ecx
cmpb $0x2, %al
sete %cl
cmpb $0x1, %al
leal -0x1(%rcx,%rcx), %ecx
pushq $0x2
popq %rax
cmovel %eax, %ecx
movl %ecx, 0x58(%rsp)
movq 0x8(%r15), %rcx
movq 0x10(%rsp), %r11
movq 0x10(%r11), %rax
movl (%rax,%r14,8), %eax
movq %r15, %r10
movl $0x7fffffff, %edi       # imm = 0x7FFFFFFF
movq 0x60(%rsp), %r8
jmp 0x1a8dc8
movq %rbp, %rcx
movq %r8, %rdx
shrq $0x20, %rdx
imulq $0x18, %rdx, %r15
addq %rbp, %r15
movq %rbx, %rdx
shrq $0x20, %rdx
imulq $0x18, %rdx, %rdx
leaq (%rdx,%rbp), %rsi
movq %rsi, 0x38(%rsp)
imulq $0x18, %rax, %rax
addq %rcx, %rax
movq %rax, 0x20(%rsp)
movl %ebx, %eax
movq %rax, 0x60(%rsp)
incq %rax
leaq (%rdx,%rbp), %r12
addq $-0x18, %r12
movq 0x40(%rsp), %rdx
decq %rax
je 0x1a8e24
movl 0x20(%r12), %ecx
xorl %edx, %ecx
addq $0x18, %r12
cmpl $0x1, %ecx
jne 0x1a8e0d
jmp 0x1a8e27
movq %r13, %r12
movq %r14, 0xa0(%rsp)
movq 0x20(%rsp), %rdx
movl 0xc(%rdx), %eax
movq %rax, 0x88(%rsp)
movl 0xc(%r12), %eax
andl %edi, %eax
movl %eax, 0x2c(%rsp)
movzwl 0x10(%rdx), %eax
movl $0x3fff, %ecx           # imm = 0x3FFF
andl %ecx, %eax
movzwl 0x10(%r12), %esi
andl %ecx, %esi
cmpw %si, %ax
cmovbl %eax, %esi
movl %esi, 0x50(%rsp)
movl %r8d, %ebx
xorl %ebp, %ebp
xorl %r14d, %r14d
movl $0x0, 0x8(%rsp)
movl $0x0, 0x30(%rsp)
movq $0x0, 0x68(%rsp)
cmpq %rbx, %rbp
je 0x1a8fa5
imulq $0x18, %rbp, %r13
movl 0xc(%r15,%r13), %ecx
testl %ecx, %ecx
js 0x1a8f9d
addq %r15, %r13
incl %r14d
movl 0x8(%r13), %esi
movl 0x8(%rdx), %eax
cmpl %eax, %esi
je 0x1a8f9d
testb $0x40, 0x11(%r13)
je 0x1a8f9d
movl 0xc(%rdx), %edx
andl %edi, %edx
cmpl %edx, %ecx
jbe 0x1a8f98
cmpl $0x0, 0x54(%rsp)
je 0x1a8f11
movq %r10, %rdi
callq 0x728c0
movzbl %al, %eax
cmpl %eax, 0x58(%rsp)
jne 0x1a8efb
movq 0x18(%rsp), %r10
movq 0x10(%rsp), %r11
movl $0x7fffffff, %edi       # imm = 0x7FFFFFFF
jmp 0x1a8f98
movl 0x8(%r13), %esi
movq 0x20(%rsp), %rax
movl 0x8(%rax), %eax
movq 0x18(%rsp), %r10
movq 0x10(%rsp), %r11
movl %esi, %ecx
shrl %ecx
imulq $0x18, %rcx, %rdx
movq 0x118(%rsp), %rdi
leaq (%rdi,%rdx), %rcx
andl $0x1, %esi
xorl %eax, %esi
movl 0xc(%rdi,%rdx), %eax
imulq $0x28, %rax, %rax
addq $0x28, %rax
xorl %edx, %edx
leaq 0x28(%rdx), %rdi
cmpq %rdi, %rax
je 0x1a8ef1
movq (%rcx), %r8
movl 0xc(%r8,%rdx), %r9d
movl 0x18(%r8,%rdx), %r8d
shrdl $0x1f, %r9d, %r8d
movq %rdi, %rdx
cmpl %esi, %r8d
jne 0x1a8f38
movl 0xc(%r13), %eax
movl $0x7fffffff, %edi       # imm = 0x7FFFFFFF
andl %edi, %eax
movl 0x8(%rsp), %ecx
cmpl %eax, %ecx
cmovbel %eax, %ecx
movl %ecx, 0x8(%rsp)
movq 0x68(%rsp), %rax
cmovbq %r13, %rax
movq %rax, 0x68(%rsp)
movzwl 0x10(%r13), %eax
andl $0x3fff, %eax           # imm = 0x3FFF
movl 0x30(%rsp), %ecx
cmpl %eax, %ecx
cmovbel %eax, %ecx
movl %ecx, 0x30(%rsp)
movq 0x20(%rsp), %rdx
incq %rbp
jmp 0x1a8e88
movq 0x88(%rsp), %rdx
andl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
movl 0x2c(%rsp), %eax
cmpl %eax, %edx
cmovael %eax, %edx
testl %r14d, %r14d
je 0x1a9158
movl %r14d, %ebp
movzwl 0x50(%rsp), %esi
cmpl $0x1, %r14d
movq 0xa0(%rsp), %r14
jne 0x1a9165
movl %esi, 0x50(%rsp)
movq %rdx, 0x88(%rsp)
xorl %ebx, %ebx
xorl %r15d, %r15d
movl $0x0, 0x8(%rsp)
movl $0x0, 0x2c(%rsp)
movq $0x0, 0x30(%rsp)
movq 0x38(%rsp), %rdx
cmpq 0x60(%rsp), %rbx
je 0x1a912e
imulq $0x18, %rbx, %r13
movl 0xc(%rdx,%r13), %ecx
testl %ecx, %ecx
js 0x1a9126
addq %rdx, %r13
incl %r15d
movl 0x8(%r13), %esi
movl 0x8(%r12), %eax
cmpl %eax, %esi
je 0x1a9126
testb $0x40, 0x11(%r13)
je 0x1a9126
movl 0xc(%r12), %edx
andl %edi, %edx
cmpl %edx, %ecx
jbe 0x1a9121
cmpl $0x0, 0x54(%rsp)
je 0x1a909a
movq %r10, %rdi
callq 0x728c0
movzbl %al, %eax
cmpl %eax, 0x58(%rsp)
jne 0x1a9087
movq 0x18(%rsp), %r10
movq 0x10(%rsp), %r11
movl $0x7fffffff, %edi       # imm = 0x7FFFFFFF
jmp 0x1a9121
movl 0x8(%r13), %esi
movl 0x8(%r12), %eax
movq 0x18(%rsp), %r10
movq 0x10(%rsp), %r11
movl %esi, %ecx
shrl %ecx
imulq $0x18, %rcx, %rdx
movq 0x118(%rsp), %rdi
leaq (%rdi,%rdx), %rcx
andl $0x1, %esi
xorl %eax, %esi
movl 0xc(%rdi,%rdx), %eax
imulq $0x28, %rax, %rax
addq $0x28, %rax
xorl %edx, %edx
leaq 0x28(%rdx), %rdi
cmpq %rdi, %rax
je 0x1a907d
movq (%rcx), %r8
movl 0xc(%r8,%rdx), %r9d
movl 0x18(%r8,%rdx), %r8d
shrdl $0x1f, %r9d, %r8d
movq %rdi, %rdx
cmpl %esi, %r8d
jne 0x1a90c1
movl 0xc(%r13), %eax
movl $0x7fffffff, %edi       # imm = 0x7FFFFFFF
andl %edi, %eax
movl 0x8(%rsp), %ecx
cmpl %eax, %ecx
cmovbel %eax, %ecx
movl %ecx, 0x8(%rsp)
movq 0x30(%rsp), %rax
cmovbq %r13, %rax
movq %rax, 0x30(%rsp)
movzwl 0x10(%r13), %eax
andl $0x3fff, %eax           # imm = 0x3FFF
movl 0x2c(%rsp), %ecx
cmpl %eax, %ecx
cmovbel %eax, %ecx
movl %ecx, 0x2c(%rsp)
movq 0x38(%rsp), %rdx
incq %rbx
jmp 0x1a900e
testl %r15d, %r15d
je 0x1a8d1d
cmpl $0x1, %r15d
jne 0x1a91c8
cmpl $0x1, %ebp
movq 0x40(%rsp), %r8
je 0x1a8d1d
movb $0x1, %dl
xorl %ecx, %ecx
jmp 0x1a923c
movq 0xa0(%rsp), %r14
jmp 0x1a8d1d
cvtsi2ss %edx, %xmm0
movl 0x8(%rsp), %r8d
cvtsi2ss %r8d, %xmm1
mulss 0x7c(%rsp), %xmm1
ucomiss %xmm1, %xmm0
ja 0x1a8d1d
cmpl $0x0, 0x78(%rsp)
je 0x1a91b1
cvtsi2ss %esi, %xmm0
cvtsi2ssl 0x30(%rsp), %xmm1
mulss 0x74(%rsp), %xmm1
ucomiss %xmm1, %xmm0
seta %al
cmpl 0x108(%rsp), %esi
seta %cl
testb %cl, %al
jne 0x1a8d1d
movl 0x100(%rsp), %eax
addl %edx, %eax
cmpl %r8d, %eax
jbe 0x1a8fdf
jmp 0x1a8d1d
movq 0x88(%rsp), %rdx
cvtsi2ss %edx, %xmm0
movl 0x8(%rsp), %esi
cvtsi2ss %esi, %xmm1
mulss 0x7c(%rsp), %xmm1
ucomiss %xmm1, %xmm0
movq 0x40(%rsp), %r8
ja 0x1a8d1d
cmpl $0x0, 0x78(%rsp)
je 0x1a9223
movl 0x50(%rsp), %ecx
cvtsi2ss %ecx, %xmm0
cvtsi2ssl 0x2c(%rsp), %xmm1
mulss 0x74(%rsp), %xmm1
ucomiss %xmm1, %xmm0
seta %al
cmpl 0x108(%rsp), %ecx
seta %cl
testb %cl, %al
jne 0x1a8d1d
movl 0x100(%rsp), %eax
addl %eax, %edx
cmpl %esi, %edx
ja 0x1a8d1d
cmpl $0x1, %ebp
sete %cl
xorl %edx, %edx
movb $0x1, %al
cmpl $0x0, 0x94(%rsp)
je 0x1a9268
cmpl $0x1, %ebp
setne %sil
cmpl $0x1, %r15d
setne %dil
testb %dil, %sil
je 0x1a9276
xorl %eax, %eax
pushq $0x1
popq %rcx
movl $0x7fffffff, %edi       # imm = 0x7FFFFFFF
jmp 0x1a926a
xorl %ecx, %ecx
movq 0x68(%rsp), %r15
movq 0x30(%rsp), %r13
jmp 0x1a92c7
testb %dl, %dl
movq 0x68(%rsp), %r15
movq 0x30(%rsp), %r13
jne 0x1a9294
testb %cl, %cl
je 0x1a92c0
xorl $0x1, %r8d
movq %r8, 0x98(%rsp)
movq %r10, %rdi
movq 0x98(%rsp), %rsi
movl 0x4c(%rsp), %ebx
movl %ebx, %edx
callq 0x71a0e
movq 0x10(%rsp), %r11
movq 0x18(%rsp), %r10
xorl %ecx, %ecx
cmpl %ebx, %eax
setge %al
setl %cl
jmp 0x1a92c2
xorl %ecx, %ecx
movl $0x7fffffff, %edi       # imm = 0x7FFFFFFF
cmpb $0x0, 0xf(%rsp)
je 0x1a939b
testq %r15, %r15
setne %dl
andb %dl, %al
cmpb $0x1, %al
movq 0x20(%rsp), %rdx
jne 0x1a9327
movl 0x8(%rdx), %edi
movl 0x8(%r15), %esi
xorl %ecx, %ecx
cmpl %esi, %edi
je 0x1a9327
movq %r11, (%rsp)
movq %r10, %rdx
movq 0x118(%rsp), %rcx
movq 0x120(%rsp), %r8
movl 0x4c(%rsp), %r9d
callq 0x1a7e3d
movq 0x20(%rsp), %rdx
movq 0x10(%rsp), %r11
movq 0x18(%rsp), %r10
xorl %ecx, %ecx
testl %eax, %eax
sete %cl
testl %ecx, %ecx
jne 0x1a9376
testq %r13, %r13
je 0x1a9376
movl 0x8(%r12), %edi
movl 0x8(%r13), %esi
xorl %ecx, %ecx
cmpl %esi, %edi
je 0x1a9376
movq %r11, (%rsp)
movq %r10, %rdx
movq 0x118(%rsp), %rcx
movq 0x120(%rsp), %r8
movl 0x4c(%rsp), %r9d
callq 0x1a7e3d
movq 0x20(%rsp), %rdx
movq 0x10(%rsp), %r11
movq 0x18(%rsp), %r10
xorl %ecx, %ecx
testl %eax, %eax
sete %cl
testq %r15, %r15
je 0x1a93c9
testq %r13, %r13
movl $0x7fffffff, %edi       # imm = 0x7FFFFFFF
je 0x1a93a0
movl 0x8(%rdx), %eax
cmpl 0x8(%r15), %eax
jne 0x1a93a0
movl 0x8(%r12), %eax
cmpl 0x8(%r13), %eax
jne 0x1a93a0
jmp 0x1a9411
movq 0x20(%rsp), %rdx
testl %ecx, %ecx
je 0x1a8d1d
orb $-0x80, 0xf(%r12)
orb $-0x80, 0xf(%rdx)
movq 0x80(%rsp), %rax
incl %eax
movq %rax, 0x80(%rsp)
jmp 0x1a8d1d
movl $0x7fffffff, %edi       # imm = 0x7FFFFFFF
jmp 0x1a93a0
cmpq $0x0, 0xa8(%rsp)
jne 0x1a93ed
movq 0xc0(%rsp), %rdi
callq 0x2220
movq 0x18(%rsp), %r10
cmpl $0x0, 0x80(%rsp)
je 0x1a93ff
movq %r10, %rdi
callq 0x694eb
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x4e3c4(%rip), %rdi     # 0x1f77dc
leaq 0x4e0ba(%rip), %rsi     # 0x1f74d9
leaq 0x4e476(%rip), %rcx     # 0x1f789c
movl $0x61b, %edx            # imm = 0x61B
callq 0x2110