// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: ava_pass_unique_bridge_tips(usg_t*, asg64_v*, unsigned long, unsigned long, unsigned long*, unsigned char*, unsigned long, double, unsigned long)
uint32_t ava_pass_unique_bridge_tips(usg_t *g, asg64_v *b64, uint64_t g_s, uint64_t g_e, uint64_t *integer_seq, uint8_t *f, uint64_t max_ext, double max_ext_rate, uint64_t ext_up)
{
    uint64_t i, k, z, s, e, v, nv, bn = b64->n, kv, kv_t, n_ext = 0, nkeep = 0, ncut = 0, is_telo; usg_arc_t *av;
    for (i = g_s; i < g_e; i++) {///available intervals within the same cluster
        s = b64->a[((uint32_t)b64->a[i])]>>32; e = ((uint32_t)b64->a[((uint32_t)b64->a[i])]); assert(s < e);
        for (k = s + 1; k < e; k++) {///note: here is [s, e]
            f[integer_seq[k]] = f[integer_seq[k]^1] = 1; 
            nkeep += g->a[integer_seq[k]>>1].occ;
        }
        f[integer_seq[s]] = f[integer_seq[e]^1] = 1;
    }
    nkeep = nkeep*max_ext_rate;

    ///collect nodes within raw unitig graph that are linked by the clusters but not in the cluster
    for (i = g_s; i < g_e; i++) {
        s = b64->a[((uint32_t)b64->a[i])]>>32; e = ((uint32_t)b64->a[((uint32_t)b64->a[i])]); assert(s < e);
        for (k = s + 1; k < e; k++) {///note: here is [s, e]
            v = integer_seq[k]; av = usg_arc_a(g, v); nv = usg_arc_n(g, v);
            for (z = 0; z < nv; z++) {
                if(av[z].del || f[av[z].v^1]) continue;
                kv_push(uint64_t, *b64, av[z].v);
            }

            v = integer_seq[k]^1; av = usg_arc_a(g, v); nv = usg_arc_n(g, v);
            for (z = 0; z < nv; z++) {
                if(av[z].del || f[av[z].v^1]) continue;
                kv_push(uint64_t, *b64, av[z].v);
            }
        }

        v = integer_seq[s]; av = usg_arc_a(g, v); nv = usg_arc_n(g, v);
        for (z = 0; z < nv; z++) {
            if(av[z].del || f[av[z].v^1]) continue;
            kv_push(uint64_t, *b64, av[z].v);
        }

        v = integer_seq[e]^1; av = usg_arc_a(g, v); nv = usg_arc_n(g, v);
        for (z = 0; z < nv; z++) {
            if(av[z].del || f[av[z].v^1]) continue;
            kv_push(uint64_t, *b64, av[z].v);
        }
    }

    ncut = MAX(nkeep, max_ext); is_telo = 0;
    if(ncut > ext_up) ncut = ext_up;
    if(ncut < max_ext) ncut = max_ext;
    while ((b64->n > bn) && (n_ext < ncut) && (!is_telo)) {
        v = b64->a[--b64->n]; if(f[v]) continue;
        av = usg_arc_a(g, v^1); nv = usg_arc_n(g, v^1);
        for (i = kv = 0; i < nv && kv < 1; i++) {
            if (av[i].del || f[av[i].v^1]) continue;
            kv++; 
        }
        if(kv > 0) continue;
        n_ext += g->a[v>>1].occ; f[v] = f[v^1] = 1;

        av = usg_arc_a(g, v); nv = usg_arc_n(g, v);
        for (i = kv_t = 0; i < nv; i++) {
            if(av[i].del) continue;
            kv_t++;
            if (f[av[i].v^1]) continue;
            kv_push(uint64_t, *b64, av[i].v);
        }
        if((!kv_t) && (g->a[v>>1].telo)) is_telo = 1;     
    }

    ///reset f[] to 0
    for (i = g_s; i < g_e; i++) { 
        s = b64->a[((uint32_t)b64->a[i])]>>32; e = ((uint32_t)b64->a[((uint32_t)b64->a[i])]); assert(s < e);
        for (k = s + 1; k < e; k++) {///note: here is [s, e]
            kv_push(uint64_t, *b64, integer_seq[k]); 
            kv_push(uint64_t, *b64, (integer_seq[k]^1));
            f[integer_seq[k]] = f[integer_seq[k]^1] = 0; 
        }
        kv_push(uint64_t, *b64, integer_seq[s]); 
        kv_push(uint64_t, *b64, (integer_seq[e]^1));
        f[integer_seq[s]] = f[integer_seq[e]^1] = 0;
    }

    while (b64->n > bn) {
        v = b64->a[--b64->n]; 
        f[v] = f[v^1] = 0;

        av = usg_arc_a(g, v); nv = usg_arc_n(g, v);
        for (i = 0; i < nv; i++) {
            if (av[i].del) continue;
            if(f[av[i].v] || f[av[i].v^1]) {
                kv_push(uint64_t, *b64, av[i].v);
            }
        }

        av = usg_arc_a(g, v^1); nv = usg_arc_n(g, v^1);
        for (i = 0; i < nv; i++) {
            if (av[i].del) continue;
            if(f[av[i].v] || f[av[i].v^1]) {
                kv_push(uint64_t, *b64, av[i].v);
            }
        }
    }
    if((n_ext < ncut) && (n_ext > max_ext - 1)) n_ext = max_ext - 1;
    if(is_telo) n_ext = max_ext + 1;
    return n_ext;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movsd %xmm0, 0x38(%rsp)
movq %r9, %rbx
movq %r8, %r12
movq %rsi, %r14
movq %rdi, %rbp
movq (%rsi), %rax
movq %rax, 0x28(%rsp)
xorpd %xmm0, %xmm0
movapd %xmm0, 0x40(%rsp)
movq %rcx, 0x30(%rsp)
cmpq %rcx, %rdx
jae 0x20dda1
xorl %eax, %eax
movb $0x1, %cl
movq %rdx, %r11
movq 0x10(%r14), %rsi
movl (%rsi,%r11,8), %edi
movq (%rsi,%rdi,8), %rsi
movl %esi, %edi
shrq $0x20, %rsi
cmpq %rdi, %rsi
jae 0x20e5f3
leaq 0x1(%rsi), %r8
cmpq %rdi, %r8
jae 0x20dd5e
movq (%r12,%r8,8), %r9
xorq $0x1, %r9
movb %cl, (%rbx,%r9)
movq (%r12,%r8,8), %r9
movb %cl, (%rbx,%r9)
movq (%rbp), %r9
movq (%r12,%r8,8), %r10
shrq %r10
imulq $0x78, %r10, %r10
movl 0x4(%r9,%r10), %r9d
addq %r9, %rax
incq %r8
cmpq %r8, %rdi
jne 0x20dd2b
movq (%r12,%rdi,8), %rdi
xorq $0x1, %rdi
movb %cl, (%rbx,%rdi)
movq (%r12,%rsi,8), %rsi
movb %cl, (%rbx,%rsi)
incq %r11
cmpq 0x30(%rsp), %r11
jne 0x20dd07
movq %rax, %xmm0
punpckldq 0x174b9(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x174c1(%rip), %xmm0    # 0x225250
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
movapd %xmm1, 0x40(%rsp)
movq %rdx, 0x10(%rsp)
cmpq 0x30(%rsp), %rdx
movq %rbp, 0x18(%rsp)
jae 0x20e05d
movq 0x10(%rsp), %rdx
movq 0x10(%r14), %rax
movl (%rax,%rdx,8), %ecx
movq (%rax,%rcx,8), %rax
movl %eax, %ecx
shrq $0x20, %rax
cmpq %rcx, %rax
jae 0x20e612
movq %rdx, (%rsp)
movq %rax, 0x20(%rsp)
leaq 0x1(%rax), %r15
movq %rcx, 0x8(%rsp)
cmpq %rcx, %r15
jae 0x20df24
movq (%r12,%r15,8), %rcx
movq %rcx, %rax
shrq %rax
imulq $0x78, %rax, %rax
addq (%rbp), %rax
andl $0x1, %ecx
leaq (%rcx,%rcx,2), %rcx
movq 0x10(%rax,%rcx,8), %rbp
testq %rbp, %rbp
je 0x20de7e
movq 0x20(%rax,%rcx,8), %r13
addq $0x8, %r13
cmpl $0x0, 0x4(%r13)
js 0x20de75
movl (%r13), %eax
xorq $0x1, %rax
cmpb $0x0, (%rbx,%rax)
jne 0x20de75
movq 0x8(%r14), %rax
cmpq %rax, (%r14)
jne 0x20de5f
leaq (%rax,%rax), %rsi
testq %rax, %rax
movl $0x2, %eax
cmoveq %rax, %rsi
movq %rsi, 0x8(%r14)
movq 0x10(%r14), %rdi
shlq $0x3, %rsi
callq 0x2370
movq %rax, 0x10(%r14)
movl (%r13), %eax
movq (%r14), %rcx
movq 0x10(%r14), %rdx
leaq 0x1(%rcx), %rsi
movq %rsi, (%r14)
movq %rax, (%rdx,%rcx,8)
addq $0x20, %r13
decq %rbp
jne 0x20de1c
movq (%r12,%r15,8), %rax
movl %eax, %ecx
notl %ecx
shrq %rax
imulq $0x78, %rax, %rax
movq 0x18(%rsp), %rdx
addq (%rdx), %rax
andl $0x1, %ecx
leaq (%rcx,%rcx,2), %rcx
movq 0x10(%rax,%rcx,8), %rbp
testq %rbp, %rbp
je 0x20df11
movq 0x20(%rax,%rcx,8), %r13
addq $0x8, %r13
cmpl $0x0, 0x4(%r13)
js 0x20df08
movl (%r13), %eax
xorq $0x1, %rax
cmpb $0x0, (%rbx,%rax)
jne 0x20df08
movq 0x8(%r14), %rax
cmpq %rax, (%r14)
jne 0x20def2
leaq (%rax,%rax), %rsi
testq %rax, %rax
movl $0x2, %eax
cmoveq %rax, %rsi
movq %rsi, 0x8(%r14)
movq 0x10(%r14), %rdi
shlq $0x3, %rsi
callq 0x2370
movq %rax, 0x10(%r14)
movl (%r13), %eax
movq (%r14), %rcx
movq 0x10(%r14), %rdx
leaq 0x1(%rcx), %rsi
movq %rsi, (%r14)
movq %rax, (%rdx,%rcx,8)
addq $0x20, %r13
decq %rbp
jne 0x20deaf
incq %r15
cmpq 0x8(%rsp), %r15
movq 0x18(%rsp), %rbp
jne 0x20ddf0
movq 0x20(%rsp), %rax
movq (%r12,%rax,8), %rcx
movq %rcx, %rax
shrq %rax
imulq $0x78, %rax, %rax
addq (%rbp), %rax
andl $0x1, %ecx
leaq (%rcx,%rcx,2), %rcx
movq 0x10(%rax,%rcx,8), %r15
testq %r15, %r15
je 0x20dfb7
movq 0x20(%rax,%rcx,8), %r13
addq $0x8, %r13
cmpl $0x0, 0x4(%r13)
js 0x20dfae
movl (%r13), %eax
xorq $0x1, %rax
cmpb $0x0, (%rbx,%rax)
jne 0x20dfae
movq 0x8(%r14), %rax
cmpq %rax, (%r14)
jne 0x20df98
leaq (%rax,%rax), %rsi
testq %rax, %rax
movl $0x2, %eax
cmoveq %rax, %rsi
movq %rsi, 0x8(%r14)
movq 0x10(%r14), %rdi
shlq $0x3, %rsi
callq 0x2370
movq %rax, 0x10(%r14)
movl (%r13), %eax
movq (%r14), %rcx
movq 0x10(%r14), %rdx
leaq 0x1(%rcx), %rsi
movq %rsi, (%r14)
movq %rax, (%rdx,%rcx,8)
addq $0x20, %r13
decq %r15
jne 0x20df55
movq 0x8(%rsp), %rax
movq (%r12,%rax,8), %rax
movl %eax, %ecx
notl %ecx
shrq %rax
imulq $0x78, %rax, %rax
addq (%rbp), %rax
andl $0x1, %ecx
leaq (%rcx,%rcx,2), %rcx
movq 0x10(%rax,%rcx,8), %r15
testq %r15, %r15
je 0x20e04b
movq 0x20(%rax,%rcx,8), %r13
addq $0x8, %r13
cmpl $0x0, 0x4(%r13)
js 0x20e042
movl (%r13), %eax
xorq $0x1, %rax
cmpb $0x0, (%rbx,%rax)
jne 0x20e042
movq 0x8(%r14), %rax
cmpq %rax, (%r14)
jne 0x20e02c
leaq (%rax,%rax), %rsi
testq %rax, %rax
movl $0x2, %eax
cmoveq %rax, %rsi
movq %rsi, 0x8(%r14)
movq 0x10(%r14), %rdi
shlq $0x3, %rsi
callq 0x2370
movq %rax, 0x10(%r14)
movl (%r13), %eax
movq (%r14), %rcx
movq 0x10(%r14), %rdx
leaq 0x1(%rcx), %rsi
movq %rsi, (%r14)
movq %rax, (%rdx,%rcx,8)
addq $0x20, %r13
decq %r15
jne 0x20dfe9
movq (%rsp), %rdx
incq %rdx
cmpq 0x30(%rsp), %rdx
jne 0x20ddbb
movq 0x90(%rsp), %rdx
movapd 0x40(%rsp), %xmm0
mulsd 0x38(%rsp), %xmm0
cvttsd2si %xmm0, %rax
movq %rax, %rcx
sarq $0x3f, %rcx
subsd 0x171e3(%rip), %xmm0    # 0x225268
cvttsd2si %xmm0, %rsi
andq %rcx, %rsi
orq %rax, %rsi
cmpq %rdx, %rsi
cmovbeq %rdx, %rsi
movq 0x98(%rsp), %rax
cmpq %rax, %rsi
cmovaeq %rax, %rsi
cmpq %rdx, %rsi
cmovbeq %rdx, %rsi
testq %rsi, %rsi
setne 0x20(%rsp)
movq (%r14), %rax
movb $0x1, (%rsp)
cmpq 0x28(%rsp), %rax
jbe 0x20e2b0
testq %rsi, %rsi
movq 0x10(%rsp), %r13
je 0x20e2a5
xorl %edi, %edi
movb $0x1, (%rsp)
movq $0x0, 0x40(%rsp)
movq %rsi, 0x50(%rsp)
movq %rdi, 0x38(%rsp)
movq 0x10(%r14), %rcx
movq %rax, %rdx
decq %rax
movq %rax, (%r14)
movq -0x8(%rcx,%rdx,8), %rdx
cmpb $0x0, (%rbx,%rdx)
jne 0x20e175
movq (%rbp), %rsi
movq %rdx, %rdi
xorq $0x1, %rdi
movq %rdx, %r8
shrq %r8
movl %edi, %r10d
andl $0x1, %r10d
imulq $0x78, %r8, %r15
leaq (%rsi,%r15), %r9
leaq (%r10,%r10,2), %r10
movq 0x10(%r9,%r10,8), %r8
testq %r8, %r8
je 0x20e18f
movq 0x20(%r9,%r10,8), %r9
addq $0xc, %r9
movl $0x1, %r10d
cmpl $0x0, (%r9)
js 0x20e15c
movl -0x4(%r9), %r11d
xorq $0x1, %r11
cmpb $0x0, (%rbx,%r11)
setne %r11b
jmp 0x20e15f
movb $0x1, %r11b
cmpq %r8, %r10
jae 0x20e170
incq %r10
addq $0x20, %r9
testb %r11b, %r11b
jne 0x20e143
testb %r11b, %r11b
jne 0x20e18f
cmpq 0x28(%rsp), %rax
seta %dl
andb 0x20(%rsp), %dl
testb %dl, (%rsp)
jne 0x20e0f2
jmp 0x20e2be
movl 0x4(%rsi,%r15), %eax
movq %rax, (%rsp)
movb $0x1, %al
movb %al, (%rbx,%rdi)
movb %al, (%rbx,%rdx)
andl $0x1, %edx
movq (%rbp), %rax
addq %r15, %rax
leaq (%rdx,%rdx,2), %rcx
movq 0x10(%rax,%rcx,8), %rbp
testq %rbp, %rbp
je 0x20e24c
movq 0x20(%rax,%rcx,8), %r13
addq $0x8, %r13
xorl %edi, %edi
cmpl $0x0, 0x4(%r13)
js 0x20e22d
incq %rdi
movl (%r13), %eax
xorq $0x1, %rax
cmpb $0x0, (%rbx,%rax)
jne 0x20e22d
movq 0x8(%r14), %rax
cmpq %rax, (%r14)
jne 0x20e217
leaq (%rax,%rax), %rsi
testq %rax, %rax
movl $0x2, %eax
cmoveq %rax, %rsi
movq %rsi, 0x8(%r14)
movq %rdi, 0x8(%rsp)
movq 0x10(%r14), %rdi
shlq $0x3, %rsi
callq 0x2370
movq 0x8(%rsp), %rdi
movq %rax, 0x10(%r14)
movl (%r13), %eax
movq (%r14), %rcx
movq 0x10(%r14), %rdx
leaq 0x1(%rcx), %rsi
movq %rsi, (%r14)
movq %rax, (%rdx,%rcx,8)
addq $0x20, %r13
decq %rbp
jne 0x20e1c7
testq %rdi, %rdi
movq 0x10(%rsp), %r13
je 0x20e24c
movq 0x18(%rsp), %rbp
movq 0x38(%rsp), %rdi
jmp 0x20e269
movq 0x18(%rsp), %rbp
movq (%rbp), %rax
cmpb $0x0, 0x71(%rax,%r15)
movq 0x38(%rsp), %rdi
movl $0x1, %eax
cmovneq %rax, %rdi
movq 0x40(%rsp), %rcx
addq (%rsp), %rcx
movq 0x50(%rsp), %rsi
cmpq %rsi, %rcx
setb 0x20(%rsp)
testq %rdi, %rdi
sete (%rsp)
movq (%r14), %rax
cmpq 0x28(%rsp), %rax
movq %rcx, 0x40(%rsp)
jbe 0x20e2be
cmpq %rsi, %rcx
jae 0x20e2be
testq %rdi, %rdi
je 0x20e0e9
jmp 0x20e2be
movq $0x0, 0x40(%rsp)
jmp 0x20e2be
movq $0x0, 0x40(%rsp)
movq 0x10(%rsp), %r13
cmpq 0x30(%rsp), %r13
jae 0x20e45f
xorl %ebp, %ebp
movq 0x10(%r14), %rax
movq %r13, 0x10(%rsp)
movl (%rax,%r13,8), %ecx
movq (%rax,%rcx,8), %rax
movl %eax, %r15d
shrq $0x20, %rax
cmpq %r15, %rax
jae 0x20e631
movq %rax, 0x8(%rsp)
leaq 0x1(%rax), %r13
cmpq %r15, %r13
jae 0x20e3a6
movq 0x8(%r14), %rax
cmpq %rax, (%r14)
jne 0x20e32c
leaq (%rax,%rax), %rsi
testq %rax, %rax
movl $0x2, %eax
cmoveq %rax, %rsi
movq %rsi, 0x8(%r14)
movq 0x10(%r14), %rdi
shlq $0x3, %rsi
callq 0x2370
movq %rax, 0x10(%r14)
movq (%r12,%r13,8), %rax
movq (%r14), %rcx
movq 0x10(%r14), %rdi
leaq 0x1(%rcx), %rdx
movq %rdx, (%r14)
movq %rax, (%rdi,%rcx,8)
movq 0x8(%r14), %rax
cmpq %rax, (%r14)
jne 0x20e36c
leaq (%rax,%rax), %rsi
testq %rax, %rax
movl $0x2, %eax
cmoveq %rax, %rsi
movq %rsi, 0x8(%r14)
shlq $0x3, %rsi
callq 0x2370
movq %rax, 0x10(%r14)
movq (%r12,%r13,8), %rax
xorq $0x1, %rax
movq (%r14), %rcx
movq 0x10(%r14), %rdx
leaq 0x1(%rcx), %rsi
movq %rsi, (%r14)
movq %rax, (%rdx,%rcx,8)
movq (%r12,%r13,8), %rax
xorq $0x1, %rax
movb %bpl, (%rbx,%rax)
movq (%r12,%r13,8), %rax
movb %bpl, (%rbx,%rax)
incq %r13
cmpq %r13, %r15
jne 0x20e2fe
movq 0x8(%r14), %rax
cmpq %rax, (%r14)
jne 0x20e3d4
leaq (%rax,%rax), %rsi
testq %rax, %rax
movl $0x2, %eax
cmoveq %rax, %rsi
movq %rsi, 0x8(%r14)
movq 0x10(%r14), %rdi
shlq $0x3, %rsi
callq 0x2370
movq %rax, 0x10(%r14)
movq 0x8(%rsp), %rax
movq (%r12,%rax,8), %rax
movq (%r14), %rcx
movq 0x10(%r14), %rdi
leaq 0x1(%rcx), %rdx
movq %rdx, (%r14)
movq %rax, (%rdi,%rcx,8)
movq 0x8(%r14), %rax
cmpq %rax, (%r14)
movq 0x10(%rsp), %r13
jne 0x20e41e
leaq (%rax,%rax), %rsi
testq %rax, %rax
movl $0x2, %eax
cmoveq %rax, %rsi
movq %rsi, 0x8(%r14)
shlq $0x3, %rsi
callq 0x2370
movq %rax, 0x10(%r14)
movq (%r12,%r15,8), %rax
xorq $0x1, %rax
movq (%r14), %rcx
movq 0x10(%r14), %rdx
leaq 0x1(%rcx), %rsi
movq %rsi, (%r14)
movq %rax, (%rdx,%rcx,8)
movq (%r12,%r15,8), %rax
xorq $0x1, %rax
movb %bpl, (%rbx,%rax)
movq 0x8(%rsp), %rax
movq (%r12,%rax,8), %rax
movb %bpl, (%rbx,%rax)
incq %r13
cmpq 0x30(%rsp), %r13
jne 0x20e2cb
movq (%r14), %rax
cmpq 0x28(%rsp), %rax
movq 0x18(%rsp), %rbp
jbe 0x20e5bb
movq 0x10(%r14), %rcx
leaq -0x1(%rax), %rdx
movq %rdx, (%r14)
movq -0x8(%rcx,%rax,8), %rcx
movq %rcx, %r12
xorq $0x1, %r12
xorl %eax, %eax
movb %al, (%rbx,%r12)
movb %al, (%rbx,%rcx)
movq %rcx, %rax
shrq %rax
andl $0x1, %ecx
imulq $0x78, %rax, %r13
movq (%rbp), %rax
addq %r13, %rax
leaq (%rcx,%rcx,2), %rcx
movq 0x10(%rax,%rcx,8), %rbp
testq %rbp, %rbp
je 0x20e523
movq 0x20(%rax,%rcx,8), %r15
addq $0x8, %r15
cmpl $0x0, 0x4(%r15)
js 0x20e51a
movl (%r15), %eax
cmpb $0x0, (%rbx,%rax)
jne 0x20e4d7
xorq $0x1, %rax
cmpb $0x0, (%rbx,%rax)
je 0x20e51a
movq 0x8(%r14), %rax
cmpq %rax, (%r14)
jne 0x20e505
leaq (%rax,%rax), %rsi
testq %rax, %rax
movl $0x2, %eax
cmoveq %rax, %rsi
movq %rsi, 0x8(%r14)
movq 0x10(%r14), %rdi
shlq $0x3, %rsi
callq 0x2370
movq %rax, 0x10(%r14)
movl (%r15), %eax
movq (%r14), %rcx
movq 0x10(%r14), %rdx
leaq 0x1(%rcx), %rsi
movq %rsi, (%r14)
movq %rax, (%rdx,%rcx,8)
addq $0x20, %r15
decq %rbp
jne 0x20e4bd
movq 0x18(%rsp), %rbp
addq (%rbp), %r13
andl $0x1, %r12d
leaq (%r12,%r12,2), %rax
movq 0x10(%r13,%rax,8), %r12
testq %r12, %r12
je 0x20e5ad
movq 0x20(%r13,%rax,8), %r15
addq $0x8, %r15
cmpl $0x0, 0x4(%r15)
js 0x20e5a4
movl (%r15), %eax
cmpb $0x0, (%rbx,%rax)
jne 0x20e561
xorq $0x1, %rax
cmpb $0x0, (%rbx,%rax)
je 0x20e5a4
movq 0x8(%r14), %rax
cmpq %rax, (%r14)
jne 0x20e58f
leaq (%rax,%rax), %rsi
testq %rax, %rax
movl $0x2, %eax
cmoveq %rax, %rsi
movq %rsi, 0x8(%r14)
movq 0x10(%r14), %rdi
shlq $0x3, %rsi
callq 0x2370
movq %rax, 0x10(%r14)
movl (%r15), %eax
movq (%r14), %rcx
movq 0x10(%r14), %rdx
leaq 0x1(%rcx), %rsi
movq %rsi, (%r14)
movq %rax, (%rdx,%rcx,8)
addq $0x20, %r15
decq %r12
jne 0x20e547
movq (%r14), %rax
cmpq 0x28(%rsp), %rax
ja 0x20e472
movq 0x90(%rsp), %rcx
leaq -0x1(%rcx), %rdx
movq 0x40(%rsp), %rax
cmpq %rdx, %rax
cmovbq %rax, %rdx
incl %ecx
testb $0x1, 0x20(%rsp)
cmovnel %edx, %eax
testb $0x1, (%rsp)
cmovel %ecx, %eax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2e0aa(%rip), %rdi     # 0x23c6a4
leaq 0x2ad24(%rip), %rsi     # 0x239325
leaq 0x2e0a2(%rip), %rcx     # 0x23c6aa
movl $0x2fdd, %edx           # imm = 0x2FDD
callq 0x2110
leaq 0x2e08b(%rip), %rdi     # 0x23c6a4
leaq 0x2ad05(%rip), %rsi     # 0x239325
leaq 0x2e083(%rip), %rcx     # 0x23c6aa
movl $0x2fe8, %edx           # imm = 0x2FE8
callq 0x2110
leaq 0x2e06c(%rip), %rdi     # 0x23c6a4
leaq 0x2ace6(%rip), %rsi     # 0x239325
leaq 0x2e064(%rip), %rcx     # 0x23c6aa
movl $0x301d, %edx           # imm = 0x301D
callq 0x2110