// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: asg_arc_cut_tips(asg_t*, unsigned int, asg64_v*, unsigned int, R_to_U*, telo_end_t*)
uint32_t asg_arc_cut_tips(asg_t *g, uint32_t max_ext, asg64_v *in, uint32_t is_ou, R_to_U *ru, telo_end_t *te)
{
    asg64_v tx = {0,0,0}, *b = NULL;
    uint32_t n_vtx = g->n_seq<<1, v, w, i, k, cnt = 0, nv, kv, pb, ou, mm_ou, rr, is_u, is_telo;
    asg_arc_t *av = NULL; uint64_t lw;
	if(in) b = in;
    else b = &tx;
    b->n = 0;
    for (v = 0; v < n_vtx; ++v) {
        if (g->seq[v>>1].del) continue;
        if(te && te->hh[v>>1]) continue;

        av = asg_arc_a(g, v^1); nv = asg_arc_n(g, v^1);
        for (i = kv = 0; i < nv; i++) {
            if (av[i].del) continue;
            kv++; break;
        }
        if(kv) continue;
        
        kv = 1; mm_ou = (uint32_t)-1; ou = 0; is_telo = 0;
        if(te && te->hh[v>>1]) is_telo = 1;
        for (i = 0, w = v; i < max_ext; i++) {
            if(asg_end(g, w^1, &lw, is_ou?&ou:NULL)!=0) break;
            w = (uint32_t)lw; kv++; mm_ou = MIN(mm_ou, ou);
            if(te && te->hh[w>>1]) is_telo = 1;
        }

		if(mm_ou == (uint32_t)-1) mm_ou = 0;
		kv += mm_ou; i += mm_ou;
        if((i < max_ext/** + (!!is_ou)**/) && (!is_telo)) kv_push(uint64_t, *b, (((uint64_t)kv)<<32)|v);  
    }

    radix_sort_srt64(b->a, b->a + b->n);

    for (k = 0; k < b->n; k++) {
        v = (uint32_t)(b->a[k]);

        if (g->seq[v>>1].del) continue;
        if(te && te->hh[v>>1]) continue;

        av = asg_arc_a(g, v^1); nv = asg_arc_n(g, v^1);
        for (i = kv = 0; i < nv; i++) {
            if (av[i].del) continue;
            kv++; break;
        }

        if(kv) continue;
        
        pb = b->n; kv_push(uint64_t, *b, v); mm_ou = (uint32_t)-1; ou = 0; is_telo = 0;
        if(te && te->hh[v>>1]) is_telo = 1;
        for (i = 0, w = v; i < max_ext; i++) {
            if(asg_end(g, w^1, &lw, is_ou?&ou:NULL)!=0) break;
            w = (uint32_t)lw; kv_push(uint64_t, *b, lw); mm_ou = MIN(mm_ou, ou);
            if(te && te->hh[w>>1]) is_telo = 1;
        }
		if(mm_ou == (uint32_t)-1) mm_ou = 0;
		i += mm_ou;

        if((i < max_ext/** + (!!is_ou)**/) && (!is_telo)) {
            for (i = pb; i < b->n; i++) asg_seq_del(g, ((uint32_t)b->a[i])>>1);
            cnt++;
        }
        b->n = pb; 
    }

    if(ru && is_ou) {
        for (v = b->n = 0; v < n_vtx; ++v) {
            if (g->seq[v>>1].del) continue;
            av = asg_arc_a(g, v^1); nv = asg_arc_n(g, v^1);
            for (i = kv = 0; i < nv; i++) {
                if (av[i].del) continue;
                kv++; break;
            }
            if(kv) continue;


            get_R_to_U(ru, v>>1, &rr, &is_u);
            if(rr == (uint32_t)-1 || is_u == 1) continue;
            if(te && te->hh[v>>1]) continue;
            kv_push(uint64_t, *b, v); 

            for (i = 0, w = v; i < max_ext; i++) {
                if(asg_end(g, w^1, &lw, NULL)!=0) break;
                w = (uint32_t)lw; 

                get_R_to_U(ru, w>>1, &rr, &is_u);
                if(rr == (uint32_t)-1 || is_u == 1) break;
                if(te && te->hh[w>>1]) break;

                kv_push(uint64_t, *b, lw);
            }

            for (i = 0; i < b->n; i++) {
                asg_seq_del(g, ((uint32_t)b->a[i])>>1);
            }
            if(b->n) cnt++;
        }
    }
    

    /**
    for (v = 0; v < n_vtx; ++v) {
        if (g->seq[v>>1].del) continue;

        av = asg_arc_a(g, v^1); nv = asg_arc_n(g, v^1);
        for (i = kv = 0; i < nv; i++) {
            if (av[i].del) continue;
            kv++;
        }

        if(kv) continue;
        pb = b->n; kv_push(uint64_t, *b, v);
        for (i = 0, w = v; i < max_ext; i++) {
            if(asg_is_utg_end(g, w^1, &lw)!=0) break;
            w = (uint32_t)lw; kv_push(uint64_t, *b, lw);
        }

        if(i < max_ext) {
            for (i = pb; i < b->n; i++) asg_seq_del(g, ((uint32_t)b->a[i])>>1);
            cnt++;
        }
        b->n = pb; 
    }
    **/
    // stats_sysm(g);
    if(!in) free(tx.a);
    if (cnt > 0) asg_cleanup(g);

    return cnt;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %r9, 0x10(%rsp)
movq %r8, 0x70(%rsp)
movq %rdx, %r12
movq %rdi, %r14
movl 0x14(%rdi), %eax
addl %eax, %eax
testq %rdx, %rdx
je 0x1a5664
andq $0x0, (%r12)
xorl %edx, %edx
movl %ecx, 0x6c(%rsp)
testl %ecx, %ecx
leaq 0x3c(%rsp), %rcx
cmoveq %rdx, %rcx
movq %rcx, 0x80(%rsp)
movq %rsi, 0x48(%rsp)
leal 0x1(%rsi), %ecx
movl %ecx, 0x78(%rsp)
movl %eax, %r15d
leaq 0x40(%rsp), %rbp
xorl %r13d, %r13d
movq $0x0, 0x18(%rsp)
movq $0x0, 0x28(%rsp)
movq $0x0, 0x8(%rsp)
movq %r14, 0x20(%rsp)
movq 0x10(%rsp), %rsi
movq %r15, 0x60(%rsp)
cmpq %r15, %r13
je 0x1a58cf
movq 0x20(%r14), %rcx
movl %r13d, %eax
shrl %eax
cmpl $0x0, (%rcx,%rax,8)
js 0x1a58c7
testq %rsi, %rsi
je 0x1a56ed
movq 0x10(%rsi), %rcx
cmpb $0x0, (%rcx,%rax)
jne 0x1a58c7
movq 0x8(%r14), %rdx
movq 0x28(%r14), %rcx
movl %r13d, %esi
xorq $0x1, %rsi
movq (%rcx,%rsi,8), %rcx
movl %ecx, %esi
movq %rcx, %rdi
shrq $0x20, %rdi
imulq $0x18, %rsi, %rcx
addq $0x18, %rcx
imulq $0x18, %rdi, %rsi
addq %rsi, %rdx
addq $0xc, %rdx
xorl %esi, %esi
leaq 0x18(%rsi), %rdi
cmpq %rdi, %rcx
je 0x1a573a
cmpl $0x0, (%rdx,%rsi)
movq %rdi, %rsi
js 0x1a571e
movq 0x10(%rsp), %rsi
jmp 0x1a58c7
andl $0x0, 0x3c(%rsp)
xorl %r14d, %r14d
movl $0x0, %r15d
movq 0x10(%rsp), %rcx
testq %rcx, %rcx
je 0x1a5761
movq 0x10(%rcx), %rcx
xorl %r15d, %r15d
cmpb $0x0, (%rcx,%rax)
setne %r15b
movq %r13, %rsi
pushq $-0x1
popq %rax
movl %eax, %ebx
cmpl %r14d, 0x48(%rsp)
je 0x1a57bc
xorl $0x1, %esi
movq 0x20(%rsp), %rdi
movq %rbp, %rdx
movq 0x80(%rsp), %rcx
callq 0x1a5f66
testl %eax, %eax
jne 0x1a57cf
movl 0x3c(%rsp), %eax
cmpl %eax, %ebx
cmovael %eax, %ebx
movq 0x40(%rsp), %rsi
movq 0x10(%rsp), %rax
testq %rax, %rax
je 0x1a57b7
movq 0x10(%rax), %rax
movl %esi, %ecx
shrl %ecx
cmpb $0x0, (%rax,%rcx)
pushq $0x1
popq %rax
cmovnel %eax, %r15d
incl %r14d
jmp 0x1a5769
movq 0x48(%rsp), %rax
movl %eax, %r14d
movl 0x78(%rsp), %edi
movq 0x10(%rsp), %rsi
jmp 0x1a57dd
leal 0x1(%r14), %edi
movq 0x10(%rsp), %rsi
movq 0x48(%rsp), %rax
cmpl $-0x1, %ebx
movl $0x0, %ecx
cmovel %ecx, %ebx
addl %ebx, %r14d
cmpl %eax, %r14d
jae 0x1a582d
testl %r15d, %r15d
movq 0x20(%rsp), %r14
jne 0x1a5832
testq %r12, %r12
movq 0x60(%rsp), %r15
je 0x1a583c
movq (%r12), %rcx
cmpq 0x8(%r12), %rcx
jne 0x1a5886
movl %edi, 0x30(%rsp)
leaq (%rcx,%rcx), %rsi
testq %rcx, %rcx
pushq $0x2
popq %rax
cmoveq %rax, %rsi
movq %rsi, 0x8(%r12)
movq 0x10(%r12), %rdi
jmp 0x1a5864
movq 0x20(%rsp), %r14
movq 0x60(%rsp), %r15
jmp 0x1a58c7
movq 0x18(%rsp), %rax
cmpq 0x28(%rsp), %rax
jne 0x1a5895
movl %edi, 0x30(%rsp)
leaq (%rax,%rax), %rsi
testq %rax, %rax
pushq $0x2
popq %rax
cmoveq %rax, %rsi
movq %rsi, 0x28(%rsp)
movq 0x8(%rsp), %rdi
shlq $0x3, %rsi
callq 0x2370
testq %r12, %r12
je 0x1a589c
movq %rax, 0x10(%r12)
movq (%r12), %rcx
movq 0x10(%rsp), %rsi
movl 0x30(%rsp), %edi
jmp 0x1a588b
movq 0x10(%r12), %rax
leaq 0x1(%rcx), %rdx
movq %rdx, (%r12)
jmp 0x1a58ba
movq 0x8(%rsp), %rax
jmp 0x1a58aa
movq %rax, 0x8(%rsp)
movq 0x10(%rsp), %rsi
movl 0x30(%rsp), %edi
movq 0x18(%rsp), %rdx
movq %rdx, %rcx
incq %rdx
movq %rdx, 0x18(%rsp)
addl %edi, %ebx
shlq $0x20, %rbx
orq %r13, %rbx
movq %rbx, (%rax,%rcx,8)
incq %r13
jmp 0x1a56be
movq 0x8(%rsp), %rdi
movq 0x18(%rsp), %rbp
movq %rbp, %rax
testq %r12, %r12
je 0x1a58ea
movq (%r12), %rax
movq 0x10(%r12), %rdi
leaq (%rdi,%rax,8), %rsi
callq 0x1a3def
xorl %r8d, %r8d
movl $0x0, 0x54(%rsp)
movq 0x10(%rsp), %rdi
movl %r8d, %r8d
testq %r12, %r12
je 0x1a591c
cmpq %r8, (%r12)
jbe 0x1a5c52
movq 0x10(%r12), %rax
jmp 0x1a592a
movq 0x8(%rsp), %rax
cmpq %r8, %rbp
jbe 0x1a5c72
movq %rbp, 0x18(%rsp)
movq (%rax,%r8,8), %rbp
movq 0x20(%r14), %rax
movl %ebp, %ebx
shrl %ebx
cmpl $0x0, (%rax,%rbx,8)
js 0x1a599b
testq %rdi, %rdi
je 0x1a5950
movq 0x10(%rdi), %rax
cmpb $0x0, (%rax,%rbx)
jne 0x1a599b
movq 0x8(%r14), %rcx
movq 0x28(%r14), %rax
movl %ebp, %r14d
movq %r14, %rdx
xorq $0x1, %rdx
movq (%rax,%rdx,8), %rax
movl %eax, %edx
movq %rax, %rsi
shrq $0x20, %rsi
imulq $0x18, %rdx, %rax
addq $0x18, %rax
imulq $0x18, %rsi, %rdx
addq %rdx, %rcx
addq $0xc, %rcx
xorl %edx, %edx
leaq 0x18(%rdx), %rsi
cmpq %rsi, %rax
je 0x1a59a8
cmpl $0x0, (%rcx,%rdx)
movq %rsi, %rdx
js 0x1a5984
movq 0x20(%rsp), %r14
movq 0x18(%rsp), %rbp
incl %r8d
jmp 0x1a5903
testq %r12, %r12
movq %r8, 0x78(%rsp)
je 0x1a59df
movq (%r12), %rcx
cmpq 0x8(%r12), %rcx
jne 0x1a5a03
leaq (%rcx,%rcx), %rsi
testq %rcx, %rcx
pushq $0x2
popq %rax
cmoveq %rax, %rsi
movq %rsi, 0x8(%r12)
movq 0x10(%r12), %rdi
movq %rcx, 0x30(%rsp)
movl %ecx, %r13d
jmp 0x1a5a3a
movq 0x18(%rsp), %rdx
cmpq 0x28(%rsp), %rdx
jne 0x1a5a12
testq %rdx, %rdx
je 0x1a5a21
leaq (%rdx,%rdx), %rsi
movq %rdx, 0x30(%rsp)
movl %edx, %r13d
movq %rsi, 0x28(%rsp)
jmp 0x1a5a35
movq 0x10(%r12), %rax
movl %ecx, %r13d
movq %rcx, 0x30(%rsp)
jmp 0x1a5a56
movl %edx, %r13d
movq %rdx, 0x30(%rsp)
movq 0x8(%rsp), %rax
jmp 0x1a5a6f
movq $0x0, 0x30(%rsp)
pushq $0x2
popq %rsi
movq %rsi, 0x28(%rsp)
xorl %r13d, %r13d
movq 0x8(%rsp), %rdi
shlq $0x3, %rsi
callq 0x2370
testq %r12, %r12
je 0x1a5a60
movq %rax, 0x10(%r12)
movq (%r12), %rcx
movq 0x10(%rsp), %rdi
leaq 0x1(%rcx), %rdx
movq %rdx, (%r12)
jmp 0x1a5a7a
movq %rax, 0x8(%rsp)
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rdx
movq %rdx, %rcx
incq %rdx
movq %rdx, 0x18(%rsp)
movq %r14, (%rax,%rcx,8)
andl $0x0, 0x3c(%rsp)
xorl %r15d, %r15d
movl $0x0, %r14d
testq %rdi, %rdi
je 0x1a5aa0
movq 0x10(%rdi), %rax
xorl %r14d, %r14d
cmpb $0x0, (%rax,%rbx)
setne %r14b
pushq $-0x1
popq %rbx
cmpl %r15d, 0x48(%rsp)
je 0x1a5bab
xorl $0x1, %ebp
movq 0x20(%rsp), %rdi
movl %ebp, %esi
leaq 0x40(%rsp), %rdx
movq 0x80(%rsp), %rcx
callq 0x1a5f66
testl %eax, %eax
jne 0x1a5bb5
movq 0x40(%rsp), %rbp
testq %r12, %r12
je 0x1a5b01
movq (%r12), %rdx
cmpq 0x8(%r12), %rdx
jne 0x1a5b43
leaq (%rdx,%rdx), %rsi
testq %rdx, %rdx
pushq $0x2
popq %rax
cmoveq %rax, %rsi
movq %rsi, 0x8(%r12)
movq 0x10(%r12), %rdi
jmp 0x1a5b25
movq 0x18(%rsp), %rax
cmpq 0x28(%rsp), %rax
jne 0x1a5b5a
leaq (%rax,%rax), %rsi
testq %rax, %rax
pushq $0x2
popq %rax
cmoveq %rax, %rsi
movq %rsi, 0x28(%rsp)
movq 0x8(%rsp), %rdi
shlq $0x3, %rsi
callq 0x2370
movq 0x40(%rsp), %rcx
testq %r12, %r12
je 0x1a5b64
movq %rax, 0x10(%r12)
movq (%r12), %rdx
jmp 0x1a5b4b
movq 0x10(%r12), %rax
movq %rbp, %rcx
movq 0x10(%rsp), %rdi
leaq 0x1(%rdx), %rsi
movq %rsi, (%r12)
jmp 0x1a5b7e
movq %rbp, %rcx
movq 0x8(%rsp), %rax
jmp 0x1a5b69
movq %rax, 0x8(%rsp)
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rsi
movq %rsi, %rdx
incq %rsi
movq %rsi, 0x18(%rsp)
movq %rcx, (%rax,%rdx,8)
movl 0x3c(%rsp), %eax
cmpl %eax, %ebx
cmovael %eax, %ebx
testq %rdi, %rdi
je 0x1a5ba3
movq 0x10(%rdi), %rax
movl %ebp, %ecx
shrl %ecx
cmpb $0x0, (%rax,%rcx)
pushq $0x1
popq %rax
cmovnel %eax, %r14d
incl %r15d
jmp 0x1a5aa3
movq 0x48(%rsp), %rax
movl %eax, %r15d
jmp 0x1a5bbf
movq 0x10(%rsp), %rdi
movq 0x48(%rsp), %rax
cmpl $-0x1, %ebx
movl $0x0, %ecx
cmovel %ecx, %ebx
addl %r15d, %ebx
cmpl %eax, %ebx
movq 0x18(%rsp), %rbp
jae 0x1a5c29
testl %r14d, %r14d
movq 0x60(%rsp), %r15
jne 0x1a5c22
movq 0x20(%rsp), %r14
movl %r13d, %ebx
testq %r12, %r12
je 0x1a5bfa
cmpq %rbx, (%r12)
jbe 0x1a5c17
movq 0x10(%r12), %rax
jmp 0x1a5c04
movq 0x8(%rsp), %rax
cmpq %rbx, %rbp
jbe 0x1a5c17
movl (%rax,%rbx,8), %esi
shrl %esi
movq %r14, %rdi
callq 0x1a606e
leal 0x1(%rbx), %r13d
jmp 0x1a5be5
incl 0x54(%rsp)
movq 0x10(%rsp), %rdi
jmp 0x1a5c33
movq 0x20(%rsp), %r14
jmp 0x1a5c33
movq 0x20(%rsp), %r14
movq 0x60(%rsp), %r15
movl 0x30(%rsp), %eax
testq %r12, %r12
movq 0x78(%rsp), %r8
je 0x1a5c4a
movq %rax, (%r12)
jmp 0x1a59a0
movq %rax, %rbp
jmp 0x1a59a0
cmpq $0x0, 0x70(%rsp)
sete %al
cmpl $0x0, 0x6c(%rsp)
sete %cl
orb %al, %cl
jne 0x1a5f42
andq $0x0, (%r12)
jmp 0x1a5c8d
cmpq $0x0, 0x70(%rsp)
setne %al
cmpl $0x0, 0x6c(%rsp)
setne %cl
testb %al, %cl
je 0x1a5f38
xorl %ebp, %ebp
xorl %ebx, %ebx
cmpq %r15, %rbx
je 0x1a5f33
movq %rbp, %r13
movq 0x20(%r14), %rax
movl %ebx, %ebp
shrl %ebp
cmpl $0x0, (%rax,%rbp,8)
js 0x1a5d25
movq 0x8(%r14), %rcx
movq 0x28(%r14), %rax
movl %ebx, %edx
xorq $0x1, %rdx
movq (%rax,%rdx,8), %rax
movl %eax, %edx
movq %rax, %rsi
shrq $0x20, %rsi
imulq $0x18, %rdx, %rax
addq $0x18, %rax
imulq $0x18, %rsi, %rdx
addq %rdx, %rcx
addq $0xc, %rcx
xorl %edx, %edx
leaq 0x18(%rdx), %rsi
cmpq %rsi, %rax
je 0x1a5ced
cmpl $0x0, (%rcx,%rdx)
movq %rsi, %rdx
js 0x1a5cd9
jmp 0x1a5d25
movq 0x70(%rsp), %rdi
movl %ebp, %esi
leaq 0x5c(%rsp), %rdx
leaq 0x58(%rsp), %rcx
callq 0x6c2a2
cmpl $-0x1, 0x5c(%rsp)
je 0x1a5d25
cmpl $0x1, 0x58(%rsp)
movq 0x10(%rsp), %rax
je 0x1a5d25
testq %rax, %rax
je 0x1a5d30
movq 0x10(%rax), %rax
cmpb $0x0, (%rax,%rbp)
je 0x1a5d30
movq %r13, %rbp
incq %rbx
jmp 0x1a5c8f
movq %rbx, 0x20(%rsp)
testq %r12, %r12
je 0x1a5d62
movq (%r12), %rcx
cmpq 0x8(%r12), %rcx
jne 0x1a5d9d
movq %r13, %rbx
leaq (%rcx,%rcx), %rsi
testq %rcx, %rcx
pushq $0x2
popq %rax
cmoveq %rax, %rsi
movq %rsi, 0x8(%r12)
movq 0x10(%r12), %rdi
jmp 0x1a5d84
movq %r13, %rbx
cmpq 0x28(%rsp), %r13
jne 0x1a5dac
leaq (%rbx,%rbx), %rsi
testq %rbx, %rbx
pushq $0x2
popq %rax
cmoveq %rax, %rsi
movq %rsi, 0x28(%rsp)
movq 0x8(%rsp), %rdi
shlq $0x3, %rsi
callq 0x2370
testq %r12, %r12
je 0x1a5db3
movq %rax, 0x10(%r12)
movq (%r12), %rcx
jmp 0x1a5da2
movq 0x10(%r12), %rax
leaq 0x1(%rcx), %rdx
movq %rdx, (%r12)
jmp 0x1a5dbf
movq 0x8(%rsp), %rax
jmp 0x1a5db8
movq %rax, 0x8(%rsp)
movq %rbx, %rcx
leaq 0x1(%rbx), %r13
movq 0x20(%rsp), %rdx
movq %rdx, (%rax,%rcx,8)
movq 0x48(%rsp), %rax
movl %eax, %ebx
movl %edx, %ebp
subl $0x1, %ebx
jb 0x1a5ee0
xorl $0x1, %ebp
movq %r14, %rdi
movl %ebp, %esi
leaq 0x40(%rsp), %rdx
xorl %ecx, %ecx
callq 0x1a5f66
testl %eax, %eax
jne 0x1a5ee0
movl 0x40(%rsp), %ebp
movl %ebp, %r15d
shrl %r15d
movq 0x70(%rsp), %rdi
movl %r15d, %esi
leaq 0x5c(%rsp), %rdx
leaq 0x58(%rsp), %rcx
callq 0x6c2a2
movq 0x10(%rsp), %rax
cmpl $-0x1, 0x5c(%rsp)
je 0x1a5ee0
cmpl $0x1, 0x58(%rsp)
je 0x1a5ee0
testq %rax, %rax
je 0x1a5e46
movq 0x10(%rax), %rax
cmpb $0x0, (%rax,%r15)
jne 0x1a5ee0
testq %r12, %r12
je 0x1a5e70
movq (%r12), %rcx
cmpq 0x8(%r12), %rcx
jne 0x1a5eac
leaq (%rcx,%rcx), %rsi
testq %rcx, %rcx
pushq $0x2
popq %rax
cmoveq %rax, %rsi
movq %rsi, 0x8(%r12)
movq 0x10(%r12), %rdi
jmp 0x1a5e93
cmpq 0x28(%rsp), %r13
jne 0x1a5ec0
leaq (,%r13,2), %rsi
testq %r13, %r13
pushq $0x2
popq %rax
cmoveq %rax, %rsi
movq %rsi, 0x28(%rsp)
movq 0x8(%rsp), %rdi
shlq $0x3, %rsi
callq 0x2370
testq %r12, %r12
je 0x1a5ec7
movq %rax, 0x10(%r12)
movq (%r12), %rcx
jmp 0x1a5eb1
movq 0x10(%r12), %rax
movq 0x40(%rsp), %rdx
leaq 0x1(%rcx), %rsi
movq %rsi, (%r12)
jmp 0x1a5ed7
movq 0x8(%rsp), %rax
jmp 0x1a5ecc
movq %rax, 0x8(%rsp)
movq 0x40(%rsp), %rdx
movq %r13, %rcx
incq %r13
movq %rdx, (%rax,%rcx,8)
jmp 0x1a5dd1
xorl %eax, %eax
movq 0x60(%rsp), %r15
movq %r13, %rbp
movl %eax, %ebx
testq %r12, %r12
je 0x1a5f01
movq (%r12), %rax
cmpq %rbx, %rax
jbe 0x1a5f20
movq 0x10(%r12), %rax
jmp 0x1a5f0b
movq 0x8(%rsp), %rax
cmpq %rbx, %rbp
jbe 0x1a5f1d
movl (%rax,%rbx,8), %esi
shrl %esi
movq %r14, %rdi
callq 0x1a606e
leal 0x1(%rbx), %eax
jmp 0x1a5eea
movq %rbp, %rax
cmpq $0x1, %rax
sbbl $-0x1, 0x54(%rsp)
movq 0x20(%rsp), %rbx
jmp 0x1a5d28
testq %r12, %r12
jne 0x1a5f42
movq 0x8(%rsp), %rdi
callq 0x2220
movl 0x54(%rsp), %ebx
testl %ebx, %ebx
je 0x1a5f52
movq %r14, %rdi
callq 0x694eb
movl %ebx, %eax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq