// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/hic.cpp
// Function: clean_sub_tangle(bubble_type*, unsigned char*, kvec_t_u32_warp*, unsigned char*, unsigned char*, kvec_asg_arc_t_warp*, unsigned int, unsigned int, unsigned int)
void clean_sub_tangle(bubble_type* bub, uint8_t* vis_flag, kvec_t_u32_warp *res_utg, 
uint8_t *dedup, uint8_t *is_tangle, kvec_asg_arc_t_warp* edges, uint32_t flag, uint32_t s, 
uint32_t e)
{
    uint32_t i, k_i, pv, v, occ, beg, sink, p_beg, p_sink, n, *a = NULL;
    ma_utg_t *u = NULL;

    for (i = 0, pv = (uint32_t)-1; i < res_utg->a.n; i++)
    {
        if(is_tangle[res_utg->a.a[i]>>1] == 1)
        {
            if(pv == (uint32_t)-1)
            {
                pv = res_utg->a.a[i]>>1;
            }
            else if(pv != (res_utg->a.a[i]>>1))
            {
                pv = (uint32_t)-1;
                break;
            }
        }
        else if(is_tangle[res_utg->a.a[i]>>1] == (uint8_t)-1)
        {
            pv = (uint32_t)-1;
            break;
        }
    }

    if(pv == (uint32_t)-1)
    {
        for (i = 0; i < res_utg->a.n; i++)
        {
            is_tangle[res_utg->a.a[i]>>1] = (uint8_t)-1;
        }
        return;
    } 

    occ = 0;
    u = &(bub->b_ug->u.a[s]);
    for (i = 0, p_beg = p_sink = (uint32_t)-1; i < u->n; i++)
    {
        get_bubbles(bub, u->a[i]>>33, &beg, &sink, &a, &n, NULL);

        for (k_i = 0; k_i < n; k_i++)
        {
            occ += bub->ug->u.a[a[k_i]>>1].n;
        }
        if(beg != (uint32_t)-1 && (beg>>1) != (p_beg>>1) && (beg>>1) != (p_sink>>1))
        {
            occ += bub->ug->u.a[beg>>1].n; 
        } 
        if(sink != (uint32_t)-1 && (sink>>1) != (p_beg>>1) && (sink>>1) != (p_sink>>1))
        {
            occ += bub->ug->u.a[sink>>1].n; 
        } 
        p_beg = beg; p_sink = sink;
    }

    u = &(bub->b_ug->u.a[e]);
    for (i = 0, p_beg = p_sink = (uint32_t)-1; i < u->n; i++)
    {
        get_bubbles(bub, u->a[i]>>33, &beg, &sink, &a, &n, NULL);

        for (k_i = 0; k_i < n; k_i++)
        {
            occ += bub->ug->u.a[a[k_i]>>1].n;
        }
        if(beg != (uint32_t)-1 && (beg>>1) != (p_beg>>1) && (beg>>1) != (p_sink>>1))
        {
            occ += bub->ug->u.a[beg>>1].n; 
        } 
        if(sink != (uint32_t)-1 && (sink>>1) != (p_beg>>1) && (sink>>1) != (p_sink>>1))
        {
            occ += bub->ug->u.a[sink>>1].n; 
        } 
        p_beg = beg; p_sink = sink;
    }

    if(occ <= bub->ug->u.a[pv].n*200)
    {
        for (i = 0; i < res_utg->a.n; i++)
        {
            is_tangle[res_utg->a.a[i]>>1] = (uint8_t)-1;
        }
        return;
    }

    if(!edges) return;

    u = &(bub->b_ug->u.a[s]);
    for (i = 0; i < u->n; i++)
    {
        get_bubbles(bub, u->a[i]>>33, &beg, &sink, &a, &n, NULL);

        for (k_i = 0; k_i < n; k_i++)
        {
            vis_flag[a[k_i]>>1] ^= flag;
        }
        if(beg != (uint32_t)-1)
        {
            vis_flag[beg>>1] ^= flag;
        } 
        if(sink != (uint32_t)-1)
        {
            vis_flag[sink>>1] ^= flag;
        } 
    }
    u = &(bub->b_ug->u.a[e]);
    for (i = 0; i < u->n; i++)
    {
        get_bubbles(bub, u->a[i]>>33, &beg, &sink, &a, &n, NULL);

        for (k_i = 0; k_i < n; k_i++)
        {
            vis_flag[a[k_i]>>1] ^= flag;
        }
        if(beg != (uint32_t)-1)
        {
            vis_flag[beg>>1] ^= flag;
        } 
        if(sink != (uint32_t)-1)
        {
            vis_flag[sink>>1] ^= flag;
        } 
    }
    for (i = 0; i < res_utg->a.n; i++)
    {
        if(dedup[res_utg->a.a[i]>>1] == 3)
        {
            vis_flag[res_utg->a.a[i]>>1] ^= flag;
        }
    }



    asg_arc_t *av = NULL, *p = NULL;
    uint32_t nv, c[2];

    c[0] = c[1] = 0;
    while (1)
    {
        c[0] = c[1] = 0; p = NULL;
        v = pv<<1;
        av = asg_arc_a(bub->ug->g, v);
        nv = asg_arc_n(bub->ug->g, v);
        for (i = 0; i < nv; i++)
        {
            if(av[i].del) continue;
            c[(!!(vis_flag[av[i].v>>1]&flag))]++;
            if(p == NULL || p->ol > av[i].ol)
            {
                p = &(av[i]);
            }
        }
        



        v = (pv<<1) + 1;
        av = asg_arc_a(bub->ug->g, v);
        nv = asg_arc_n(bub->ug->g, v);
        for (i = 0; i < nv; i++)
        {
            if(av[i].del) continue;
            c[(!!(vis_flag[av[i].v>>1]&flag))]++;
            if(p == NULL || p->ol > av[i].ol)
            {
                p = &(av[i]);
            }
        }

        if(p)
        {
            p->del = 1;
            c[(!!(vis_flag[p->v>>1]&flag))]--;
            if((p->v>>1) == pv)
            {
                asg_arc_del(bub->ug->g, (p->v)^1, (p->ul>>32)^1, 1);
                c[0] = c[1] = 0;
                v = pv<<1;
                av = asg_arc_a(bub->ug->g, v);
                nv = asg_arc_n(bub->ug->g, v);
                for (i = 0; i < nv; i++)
                {
                    if(av[i].del) continue;
                    c[(!!(vis_flag[av[i].v>>1]&flag))]++;
                }

                v = (pv<<1) + 1;
                av = asg_arc_a(bub->ug->g, v);
                nv = asg_arc_n(bub->ug->g, v);
                for (i = 0; i < nv; i++)
                {
                    if(av[i].del) continue;
                    c[(!!(vis_flag[av[i].v>>1]&flag))]++;
                }
            }

            
        }
        if(c[0] == 0 || c[1] == 0) break;
    }
    


    
    v = pv<<1;
    av = asg_arc_a(bub->ug->g, v);
    nv = asg_arc_n(bub->ug->g, v);
    for (i = 0; i < nv; i++)
    {
        if(!av[i].del) continue;
        av[i].del = 0;
        kv_push(asg_arc_t, edges->a, av[i]);
    }
    

    v = (pv<<1) + 1;
    av = asg_arc_a(bub->ug->g, v);
    nv = asg_arc_n(bub->ug->g, v);
    for (i = 0; i < nv; i++)
    {
        if(!av[i].del) continue;
        av[i].del = 0;
        kv_push(asg_arc_t, edges->a, av[i]);
    }

    is_tangle[pv] = (uint8_t)-1;


    u = &(bub->b_ug->u.a[s]);
    for (i = 0; i < u->n; i++)
    {
        get_bubbles(bub, u->a[i]>>33, &beg, &sink, &a, &n, NULL);

        for (k_i = 0; k_i < n; k_i++)
        {
            vis_flag[a[k_i]>>1] ^= flag;
        }
        if(beg != (uint32_t)-1)
        {
            vis_flag[beg>>1] ^= flag;
        } 
        if(sink != (uint32_t)-1)
        {
            vis_flag[sink>>1] ^= flag;
        } 
    }
    u = &(bub->b_ug->u.a[e]);
    for (i = 0; i < u->n; i++)
    {
        get_bubbles(bub, u->a[i]>>33, &beg, &sink, &a, &n, NULL);

        for (k_i = 0; k_i < n; k_i++)
        {
            vis_flag[a[k_i]>>1] ^= flag;
        }
        if(beg != (uint32_t)-1)
        {
            vis_flag[beg>>1] ^= flag;
        } 
        if(sink != (uint32_t)-1)
        {
            vis_flag[sink>>1] ^= flag;
        } 
    }
    for (i = 0; i < res_utg->a.n; i++)
    {
        if(dedup[res_utg->a.a[i]>>1] == 3)
        {
            vis_flag[res_utg->a.a[i]>>1] ^= flag;
        }
    }


}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rsi, %r15
movq %rdi, %r12
movl 0xb8(%rsp), %eax
andq $0x0, 0x18(%rsp)
movq (%rdx), %rbx
pushq $-0x1
popq %r11
xorl %r10d, %r10d
movl %r10d, %r10d
cmpq %r10, %rbx
jbe 0x1134e3
movq 0x10(%rdx), %rsi
movl (%rsi,%r10,4), %edi
shrl %edi
movzbl (%r8,%rdi), %esi
cmpl $0x1, %esi
je 0x1134cb
cmpl $0xff, %esi
jne 0x1134de
jmp 0x113626
cmpl $-0x1, %r11d
je 0x1134db
cmpl %edi, %r11d
je 0x1134de
jmp 0x113626
movl %edi, %r11d
incl %r10d
jmp 0x1134a2
cmpl $-0x1, %r11d
je 0x113626
movq %rbx, 0x70(%rsp)
movq %r11, 0x30(%rsp)
movq %r9, 0x40(%rsp)
movq %r8, 0x60(%rsp)
movq %rcx, 0x58(%rsp)
movq %rdx, 0x38(%rsp)
movq 0xc0(%r12), %rcx
movl %eax, %eax
imulq $0x28, %rax, %rax
movq %rcx, 0x68(%rsp)
movq 0x10(%rcx), %rcx
movq %rax, 0x50(%rsp)
addq %rax, %rcx
pushq $-0x1
popq %r14
xorl %ebx, %ebx
xorl %r13d, %r13d
movl %r14d, %ebp
movq %rcx, 0x28(%rsp)
movl 0x10(%rcx), %eax
cmpq %rax, %rbx
jae 0x113648
movq 0x18(%rcx), %rax
movq (%rax,%rbx,8), %rsi
shrq $0x21, %rsi
andq $0x0, (%rsp)
movq %r12, %rdi
leaq 0x14(%rsp), %rdx
leaq 0x10(%rsp), %rcx
leaq 0x18(%rsp), %r8
leaq 0xc(%rsp), %r9
callq 0xf6ab5
movl $0xffffffff, %r8d       # imm = 0xFFFFFFFF
movl 0xc(%rsp), %eax
movq 0x18(%rsp), %rcx
xorl %edx, %edx
cmpq %rdx, %rax
je 0x1135a6
movq 0x10(%r12), %rsi
movq 0x10(%rsi), %rsi
movl (%rcx,%rdx,4), %edi
shrl %edi
imulq $0x28, %rdi, %rdi
addl 0x10(%rsi,%rdi), %r13d
incq %rdx
jmp 0x113585
movl 0x14(%rsp), %eax
cmpq %r8, %rax
je 0x1135de
movl %eax, %ecx
shrl %ecx
movl %r14d, %edx
shrl %edx
cmpl %edx, %ecx
sete %dl
movl %ebp, %esi
shrl %esi
cmpl %esi, %ecx
sete %sil
orb %dl, %sil
jne 0x1135de
movq 0x10(%r12), %rdx
movq 0x10(%rdx), %rdx
imulq $0x28, %rcx, %rcx
addl 0x10(%rdx,%rcx), %r13d
movl 0x10(%rsp), %ecx
cmpq %r8, %rcx
je 0x113614
movl %ecx, %edx
shrl %edx
shrl %r14d
cmpl %r14d, %edx
sete %sil
shrl %ebp
cmpl %ebp, %edx
sete %dil
orb %sil, %dil
jne 0x113614
movq 0x10(%r12), %rsi
movq 0x10(%rsi), %rsi
imulq $0x28, %rdx, %rdx
addl 0x10(%rsi,%rdx), %r13d
incq %rbx
movl %eax, %r14d
movl %ecx, %ebp
movq 0x28(%rsp), %rcx
jmp 0x11353b
xorl %eax, %eax
movl %eax, %eax
cmpq %rax, %rbx
jbe 0x113dcf
movq 0x10(%rdx), %rcx
movl (%rcx,%rax,4), %ecx
shrl %ecx
movb $-0x1, (%r8,%rcx)
incl %eax
movq (%rdx), %rbx
jmp 0x113628
movl 0xc0(%rsp), %eax
imulq $0x28, %rax, %rax
movq 0x68(%rsp), %rcx
movq 0x10(%rcx), %rcx
movq %rax, 0x48(%rsp)
addq %rax, %rcx
pushq $-0x1
popq %rbp
xorl %ebx, %ebx
movl %ebp, %r14d
movq %rcx, 0x28(%rsp)
movl 0x10(%rcx), %eax
cmpq %rax, %rbx
jae 0x11375c
movq 0x18(%rcx), %rax
movq (%rax,%rbx,8), %rsi
shrq $0x21, %rsi
andq $0x0, (%rsp)
movq %r12, %rdi
leaq 0x14(%rsp), %rdx
leaq 0x10(%rsp), %rcx
leaq 0x18(%rsp), %r8
leaq 0xc(%rsp), %r9
callq 0xf6ab5
movl $0xffffffff, %r8d       # imm = 0xFFFFFFFF
movl 0xc(%rsp), %eax
movq 0x18(%rsp), %rcx
xorl %edx, %edx
cmpq %rdx, %rax
je 0x1136dc
movq 0x10(%r12), %rsi
movq 0x10(%rsi), %rsi
movl (%rcx,%rdx,4), %edi
shrl %edi
imulq $0x28, %rdi, %rdi
addl 0x10(%rsi,%rdi), %r13d
incq %rdx
jmp 0x1136bb
movl 0x14(%rsp), %eax
cmpq %r8, %rax
je 0x113714
movl %eax, %ecx
shrl %ecx
movl %ebp, %edx
shrl %edx
cmpl %edx, %ecx
sete %dl
movl %r14d, %esi
shrl %esi
cmpl %esi, %ecx
sete %sil
orb %dl, %sil
jne 0x113714
movq 0x10(%r12), %rdx
movq 0x10(%rdx), %rdx
imulq $0x28, %rcx, %rcx
addl 0x10(%rdx,%rcx), %r13d
movl 0x10(%rsp), %ecx
cmpq %r8, %rcx
je 0x11374a
movl %ecx, %edx
shrl %edx
shrl %ebp
cmpl %ebp, %edx
sete %sil
shrl %r14d
cmpl %r14d, %edx
sete %dil
orb %sil, %dil
jne 0x11374a
movq 0x10(%r12), %rsi
movq 0x10(%rsi), %rsi
imulq $0x28, %rdx, %rdx
addl 0x10(%rsi,%rdx), %r13d
incq %rbx
movl %eax, %ebp
movl %ecx, %r14d
movq 0x28(%rsp), %rcx
jmp 0x113671
movq 0x10(%r12), %rax
movq 0x10(%rax), %rax
movl 0x30(%rsp), %edx
imulq $0x28, %rdx, %rcx
imull $0xc8, 0x10(%rax,%rcx), %eax
cmpl %eax, %r13d
jbe 0x11382a
cmpq $0x0, 0x40(%rsp)
je 0x113dcf
movq %rdx, 0x28(%rsp)
movq 0x68(%rsp), %rax
movq 0x10(%rax), %rbx
addq 0x50(%rsp), %rbx
xorl %r14d, %r14d
leaq 0xc(%rsp), %rbp
movl $0xffffffff, %r13d      # imm = 0xFFFFFFFF
movl 0x10(%rbx), %eax
cmpq %rax, %r14
jae 0x11385a
movq 0x18(%rbx), %rax
movq (%rax,%r14,8), %rsi
shrq $0x21, %rsi
andq $0x0, (%rsp)
movq %r12, %rdi
leaq 0x14(%rsp), %rdx
leaq 0x10(%rsp), %rcx
leaq 0x18(%rsp), %r8
movq %rbp, %r9
callq 0xf6ab5
movl 0xc(%rsp), %eax
movq 0x18(%rsp), %rcx
xorl %edx, %edx
movl 0xb0(%rsp), %edi
cmpq %rdx, %rax
je 0x113807
movl (%rcx,%rdx,4), %esi
shrl %esi
xorb %dil, (%r15,%rsi)
incq %rdx
jmp 0x1137f4
movl 0x14(%rsp), %eax
cmpq %r13, %rax
je 0x113816
shrl %eax
xorb %dil, (%r15,%rax)
movl 0x10(%rsp), %eax
cmpq %r13, %rax
je 0x113825
shrl %eax
xorb %dil, (%r15,%rax)
incq %r14
jmp 0x1137ab
xorl %eax, %eax
movq 0x38(%rsp), %rdx
movq 0x60(%rsp), %rsi
movq 0x70(%rsp), %rcx
movl %eax, %eax
cmpq %rax, %rcx
jbe 0x113dcf
movq 0x10(%rdx), %rcx
movl (%rcx,%rax,4), %ecx
shrl %ecx
movb $-0x1, (%rsi,%rcx)
incl %eax
movq (%rdx), %rcx
jmp 0x11383b
movq 0xc0(%r12), %rax
movq 0x10(%rax), %rbx
addq 0x48(%rsp), %rbx
xorl %r14d, %r14d
leaq 0xc(%rsp), %rbp
movl $0xffffffff, %r13d      # imm = 0xFFFFFFFF
movl 0x10(%rbx), %eax
cmpq %rax, %r14
jae 0x1138f4
movq 0x18(%rbx), %rax
movq (%rax,%r14,8), %rsi
shrq $0x21, %rsi
andq $0x0, (%rsp)
movq %r12, %rdi
leaq 0x14(%rsp), %rdx
leaq 0x10(%rsp), %rcx
leaq 0x18(%rsp), %r8
movq %rbp, %r9
callq 0xf6ab5
movl 0xc(%rsp), %eax
movq 0x18(%rsp), %rcx
xorl %edx, %edx
movl 0xb0(%rsp), %edi
cmpq %rdx, %rax
je 0x1138d1
movl (%rcx,%rdx,4), %esi
shrl %esi
xorb %dil, (%r15,%rsi)
incq %rdx
jmp 0x1138be
movl 0x14(%rsp), %eax
cmpq %r13, %rax
je 0x1138e0
shrl %eax
xorb %dil, (%r15,%rax)
movl 0x10(%rsp), %eax
cmpq %r13, %rax
je 0x1138ef
shrl %eax
xorb %dil, (%r15,%rax)
incq %r14
jmp 0x113879
xorl %eax, %eax
movq 0x38(%rsp), %rdx
movq 0x58(%rsp), %rsi
movl 0xb0(%rsp), %r11d
movq 0x30(%rsp), %rbx
movl %eax, %eax
cmpq %rax, (%rdx)
jbe 0x11392b
movq 0x10(%rdx), %rcx
movl (%rcx,%rax,4), %ecx
shrl %ecx
cmpb $0x3, (%rsi,%rcx)
jne 0x113927
xorb %r11b, (%r15,%rcx)
incl %eax
jmp 0x11390d
leal (%rbx,%rbx), %r13d
leal 0x1(,%rbx,2), %r14d
movl $0x7fffffff, %ebp       # imm = 0x7FFFFFFF
andq $0x0, 0x20(%rsp)
movq 0x10(%r12), %rax
movq 0x18(%rax), %rax
movq 0x8(%rax), %rcx
movq 0x28(%rax), %rdx
movq (%rdx,%r13,8), %rax
movl %eax, %esi
shrq $0x20, %rax
imulq $0x18, %rax, %rdi
addq %rcx, %rdi
xorl %eax, %eax
subq $0x1, %rsi
jb 0x1139aa
movl 0xc(%rdi), %r8d
testl %r8d, %r8d
js 0x1139a4
movl 0x8(%rdi), %r9d
shrl %r9d
movzbl (%r15,%r9), %r9d
xorl %r10d, %r10d
testl %r11d, %r9d
setne %r10b
incl 0x20(%rsp,%r10,4)
testq %rax, %rax
je 0x1139a1
movl 0xc(%rax), %r9d
andl %ebp, %r9d
cmpl %r8d, %r9d
jbe 0x1139a4
movq %rdi, %rax
addq $0x18, %rdi
jmp 0x113966
movq (%rdx,%r14,8), %rsi
movl %esi, %edx
shrq $0x20, %rsi
imulq $0x18, %rsi, %rsi
addq %rsi, %rcx
subq $0x1, %rdx
jb 0x1139f8
movl 0xc(%rcx), %esi
testl %esi, %esi
js 0x1139f2
movl 0x8(%rcx), %edi
shrl %edi
movzbl (%r15,%rdi), %edi
xorl %r8d, %r8d
testl %r11d, %edi
setne %r8b
incl 0x20(%rsp,%r8,4)
testq %rax, %rax
je 0x1139ef
movl 0xc(%rax), %edi
andl %ebp, %edi
cmpl %esi, %edi
jbe 0x1139f2
movq %rcx, %rax
addq $0x18, %rcx
jmp 0x1139bb
testq %rax, %rax
je 0x113af2
orb $-0x80, 0xf(%rax)
movl 0x8(%rax), %ecx
shrl %ecx
movzbl (%r15,%rcx), %ecx
xorl %edx, %edx
testl %r11d, %ecx
setne %dl
decl 0x20(%rsp,%rdx,4)
movl 0x8(%rax), %esi
movl %esi, %ecx
shrl %ecx
cmpl %ebx, %ecx
jne 0x113af2
movq 0x10(%r12), %rcx
movq 0x18(%rcx), %rdi
xorl $0x1, %esi
movl 0x4(%rax), %edx
xorl $0x1, %edx
callq 0x10433c
movl 0xb0(%rsp), %r11d
andq $0x0, 0x20(%rsp)
movq 0x10(%r12), %rax
movq 0x18(%rax), %rcx
movq 0x8(%rcx), %rax
movq 0x28(%rcx), %rcx
movq (%rcx,%r13,8), %rdx
movl %edx, %esi
movq %rdx, %rdi
shrq $0x20, %rdi
imulq $0x18, %rsi, %rdx
imulq $0x18, %rdi, %rsi
addq %rax, %rsi
addq $0xc, %rsi
xorl %edi, %edi
cmpq %rdi, %rdx
je 0x113aab
cmpl $0x0, (%rsi,%rdi)
js 0x113aa5
movl -0x4(%rsi,%rdi), %r8d
shrl %r8d
movzbl (%r15,%r8), %r8d
xorl %r9d, %r9d
testl %r11d, %r8d
setne %r9b
incl 0x20(%rsp,%r9,4)
addq $0x18, %rdi
jmp 0x113a7e
movq (%rcx,%r14,8), %rcx
movl %ecx, %edx
movq %rcx, %rsi
shrq $0x20, %rsi
imulq $0x18, %rdx, %rcx
imulq $0x18, %rsi, %rdx
addq %rdx, %rax
addq $0xc, %rax
xorl %edx, %edx
cmpq %rdx, %rcx
je 0x113af2
cmpl $0x0, (%rax,%rdx)
js 0x113aec
movl -0x4(%rax,%rdx), %esi
shrl %esi
movzbl (%r15,%rsi), %esi
xorl %edi, %edi
testl %r11d, %esi
setne %dil
incl 0x20(%rsp,%rdi,4)
addq $0x18, %rdx
jmp 0x113ac9
cmpl $0x0, 0x20(%rsp)
je 0x113b04
cmpl $0x0, 0x24(%rsp)
jne 0x11393c
movq %r14, 0x30(%rsp)
movq 0x10(%r12), %rax
movq 0x18(%rax), %rax
movq 0x8(%rax), %rcx
movq 0x28(%rax), %rax
movq (%rax,%r13,8), %rax
movl %eax, %edx
shrq $0x20, %rax
imulq $0x18, %rdx, %r14
imulq $0x18, %rax, %rax
leaq (%rax,%rcx), %r13
addq $0xc, %r13
xorl %ebp, %ebp
movq 0x40(%rsp), %rbx
cmpq %rbp, %r14
je 0x113bb1
movl (%r13,%rbp), %eax
testl %eax, %eax
jns 0x113bab
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movl %eax, (%r13,%rbp)
movq (%rbx), %rcx
movq 0x10(%rbx), %rax
cmpq 0x8(%rbx), %rcx
jne 0x113b85
leaq (%rcx,%rcx), %rdx
testq %rcx, %rcx
pushq $0x2
popq %rcx
cmoveq %rcx, %rdx
movq %rdx, 0x8(%rbx)
imulq $0x18, %rdx, %rsi
movq %rax, %rdi
callq 0x2370
movq %rax, 0x10(%rbx)
movq (%rbx), %rcx
leaq -0xc(,%rbp), %rdx
addq %r13, %rdx
leaq 0x1(%rcx), %rsi
movq %rsi, (%rbx)
imulq $0x18, %rcx, %rcx
movq 0x10(%rdx), %rsi
movq %rsi, 0x10(%rax,%rcx)
movups (%rdx), %xmm0
movups %xmm0, (%rax,%rcx)
addq $0x18, %rbp
jmp 0x113b3b
movq 0x10(%r12), %rax
movq 0x18(%rax), %rax
movq 0x8(%rax), %rcx
movq 0x28(%rax), %rax
movq 0x30(%rsp), %rdx
movq (%rax,%rdx,8), %rax
movl %eax, %edx
shrq $0x20, %rax
imulq $0x18, %rdx, %r14
imulq $0x18, %rax, %rax
leaq (%rax,%rcx), %r13
addq $0xc, %r13
xorl %ebp, %ebp
movq 0x40(%rsp), %rbx
cmpq %rbp, %r14
je 0x113c5e
movl (%r13,%rbp), %eax
testl %eax, %eax
jns 0x113c58
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movl %eax, (%r13,%rbp)
movq (%rbx), %rcx
movq 0x10(%rbx), %rax
cmpq 0x8(%rbx), %rcx
jne 0x113c32
leaq (%rcx,%rcx), %rdx
testq %rcx, %rcx
pushq $0x2
popq %rcx
cmoveq %rcx, %rdx
movq %rdx, 0x8(%rbx)
imulq $0x18, %rdx, %rsi
movq %rax, %rdi
callq 0x2370
movq %rax, 0x10(%rbx)
movq (%rbx), %rcx
leaq -0xc(,%rbp), %rdx
addq %r13, %rdx
leaq 0x1(%rcx), %rsi
movq %rsi, (%rbx)
imulq $0x18, %rcx, %rcx
movq 0x10(%rdx), %rsi
movq %rsi, 0x10(%rax,%rcx)
movups (%rdx), %xmm0
movups %xmm0, (%rax,%rcx)
addq $0x18, %rbp
jmp 0x113be8
movq 0x60(%rsp), %rax
movq 0x28(%rsp), %rcx
movb $-0x1, (%rax,%rcx)
movq 0xc0(%r12), %rax
movq 0x50(%rsp), %rbp
addq 0x10(%rax), %rbp
xorl %ebx, %ebx
leaq 0xc(%rsp), %r13
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
movl 0x10(%rbp), %eax
cmpq %rax, %rbx
jae 0x113d05
movq 0x18(%rbp), %rax
movq (%rax,%rbx,8), %rsi
shrq $0x21, %rsi
andq $0x0, (%rsp)
movq %r12, %rdi
leaq 0x14(%rsp), %rdx
leaq 0x10(%rsp), %rcx
leaq 0x18(%rsp), %r8
movq %r13, %r9
callq 0xf6ab5
movl 0xc(%rsp), %eax
movq 0x18(%rsp), %rcx
xorl %edx, %edx
movl 0xb0(%rsp), %edi
cmpq %rdx, %rax
je 0x113ce2
movl (%rcx,%rdx,4), %esi
shrl %esi
xorb %dil, (%r15,%rsi)
incq %rdx
jmp 0x113ccf
movl 0x14(%rsp), %eax
cmpq %r14, %rax
je 0x113cf1
shrl %eax
xorb %dil, (%r15,%rax)
movl 0x10(%rsp), %eax
cmpq %r14, %rax
je 0x113d00
shrl %eax
xorb %dil, (%r15,%rax)
incq %rbx
jmp 0x113c8a
movq 0xc0(%r12), %rax
movq 0x48(%rsp), %rbp
addq 0x10(%rax), %rbp
xorl %ebx, %ebx
leaq 0xc(%rsp), %r13
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
movl 0x10(%rbp), %eax
cmpq %rax, %rbx
jae 0x113d9e
movq 0x18(%rbp), %rax
movq (%rax,%rbx,8), %rsi
shrq $0x21, %rsi
andq $0x0, (%rsp)
movq %r12, %rdi
leaq 0x14(%rsp), %rdx
leaq 0x10(%rsp), %rcx
leaq 0x18(%rsp), %r8
movq %r13, %r9
callq 0xf6ab5
movl 0xc(%rsp), %eax
movq 0x18(%rsp), %rcx
xorl %edx, %edx
movl 0xb0(%rsp), %edi
cmpq %rdx, %rax
je 0x113d7b
movl (%rcx,%rdx,4), %esi
shrl %esi
xorb %dil, (%r15,%rsi)
incq %rdx
jmp 0x113d68
movl 0x14(%rsp), %eax
cmpq %r14, %rax
je 0x113d8a
shrl %eax
xorb %dil, (%r15,%rax)
movl 0x10(%rsp), %eax
cmpq %r14, %rax
je 0x113d99
shrl %eax
xorb %dil, (%r15,%rax)
incq %rbx
jmp 0x113d23
xorl %eax, %eax
movq 0x38(%rsp), %rdx
movq 0x58(%rsp), %rsi
movl 0xb0(%rsp), %edi
movl %eax, %eax
cmpq %rax, (%rdx)
jbe 0x113dcf
movq 0x10(%rdx), %rcx
movl (%rcx,%rax,4), %ecx
shrl %ecx
cmpb $0x3, (%rsi,%rcx)
jne 0x113dcb
xorb %dil, (%r15,%rcx)
incl %eax
jmp 0x113db1
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq