// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/Overlaps.cpp
// Function: test_triangular_exact(asg_t*, unsigned int*, unsigned int, unsigned int, unsigned int, int, buf_t*)
int test_triangular_exact(asg_t *g, uint32_t* nodes, uint32_t length, 
uint32_t startNode, uint32_t endNode, int max_dist, buf_t* bub)
{
    
    uint32_t i, v, w;
    ///int flag0, flag1, node;
    int n_reduced = 0, todel;
    long long NodeLen_first[3];
    long long NodeLen_second[3];

    uint32_t Ns_first[3];
    uint32_t Ns_second[3];
    
    
    for (i = 0; i < length; ++i)
    {
        v = nodes[i];

        if((v>>1) == (startNode>>1) || (v>>1) == (endNode>>1))
        {
            continue;
        }

        uint32_t nv = asg_arc_n(g, v);
        asg_arc_t *av = asg_arc_a(g, v);
        if(nv != 2)
        {
            continue;
        }
        if(av[0].v == av[1].v)
        {
            continue;
        }
        /**********************test first node************************/
        NodeLen_first[0] = NodeLen_first[1] = NodeLen_first[2] = -1;
        if(asg_is_single_edge(g, av[0].v, v>>1) <= 2 && asg_is_single_edge(g, av[1].v, v>>1) <= 2)
        {
            NodeLen_first[asg_is_single_edge(g, av[0].v, v>>1)] = 0;
            NodeLen_first[asg_is_single_edge(g, av[1].v, v>>1)] = 1;
        }
        ///one node has one out-edge, another node has two out-edges
        if(NodeLen_first[1] == -1 || NodeLen_first[2] == -1)
        {
            continue;
        }
       /**********************test first node************************/

        ///if the potiential edge has already been removed 
        if(av[NodeLen_first[2]].del == 1)
        {
            continue;
        }

        /**********************test second node************************/
        w = av[NodeLen_first[2]].v^1;
        asg_arc_t *aw = asg_arc_a(g, w);
        uint32_t nw = asg_arc_n(g, w);
        if(nw != 2)
        {
            fprintf(stderr, "error\n");
        }
        NodeLen_second[0] = NodeLen_second[1] = NodeLen_second[2] = -1;
        if(asg_is_single_edge(g, aw[0].v, w>>1) <= 2 && asg_is_single_edge(g, aw[1].v, w>>1) <= 2)
        {
            NodeLen_second[asg_is_single_edge(g, aw[0].v, w>>1)] = 0;
            NodeLen_second[asg_is_single_edge(g, aw[1].v, w>>1)] = 1;
        }
        ///one node has one out-edge, another node has two out-edges
        if(NodeLen_second[1] == -1 || NodeLen_second[2] == -1)
        {
            continue;
        }

        /**********************test second node************************/

        if(if_node_exist(nodes, length, (w>>1)) && ((w>>1) != (endNode>>1)))
        {

               uint32_t convex1 = 0, convex2 = 0, f1, f2;
               long long l1 = 0, l2 = 0;
               todel = 0;
               f1 = detect_bubble_end_with_bubbles(g, av[0].v, av[1].v, &convex1, &l1, NULL);
               f2 = detect_bubble_end_with_bubbles(g, aw[0].v, aw[1].v, &convex2, &l2, NULL);
               if(f1 && f2)
               {
                    if(((convex1>>1) == (startNode>>1) || (convex1>>1) == (endNode>>1)) && 
                     ((convex2>>1) == (startNode>>1) || (convex2>>1) == (endNode>>1)))
                     {
                         if(l1 <= min_thres || l2 <= min_thres)
                         {
                             continue;
                         } 

                         todel = 1;
                     } 
               }
               else if(f1)
               {
                  if(((convex1>>1) == (startNode>>1) || (convex1>>1) == (endNode>>1)))
                   {
                       if(l1 <= min_thres)
                       {
                           continue;
                       }

                       todel = 1;
                   }   
               }
               else if(f2)
               {
                   if(((convex2>>1) == (startNode>>1) || (convex2>>1) == (endNode>>1)))
                   {
                       if(l2 <= min_thres)
                       {
                           continue;
                       }

                       todel = 1;
                   }   
               }

            
               if(todel == 0)
               {
                   if(!f1)
                   {
                       Ns_first[0] = av[0].v; Ns_first[1] = av[1].v;
                       f1 = asg_bub_end_finder_with_del_advance(g, Ns_first, 2, max_dist, 
                       bub, 0, (uint32_t)-1, &convex1);
                       l1 = min_thres + 10;
                   }

                   if(!f2)
                   {
                       Ns_second[0] = aw[0].v; Ns_second[1] = aw[1].v;
                       f2 = asg_bub_end_finder_with_del_advance(g, Ns_second, 2, max_dist, 
                       bub, 0, (uint32_t)-1, &convex2);
                       l2 = min_thres + 10;
                   }




                    
                    if(f1 && f2)
                    {
                        if(((convex1>>1) == (startNode>>1) || (convex1>>1) == (endNode>>1)) && 
                        ((convex2>>1) == (startNode>>1) || (convex2>>1) == (endNode>>1)))
                        {
                            if(l1 <= min_thres || l2 <= min_thres)
                            {
                                continue;
                            } 

                            todel = 1;
                        } 
                    }
                    else if(f1)
                    {
                        if(((convex1>>1) == (startNode>>1) || (convex1>>1) == (endNode>>1)))
                        {
                            if(l1 <= min_thres)
                            {
                                continue;
                            }

                            todel = 1;
                        }   
                    }
                    else if(f2)
                    {
                        if(((convex2>>1) == (startNode>>1) || (convex2>>1) == (endNode>>1)))
                        {
                            if(l2 <= min_thres)
                            {
                                continue;
                            }

                            todel = 1;
                        }   
                    }
                    
               }
               
               
               if(todel)
               {
                   av[NodeLen_first[2]].del = 1;
                    ///remove the reverse direction
                    asg_arc_del(g, av[NodeLen_first[2]].v^1, av[NodeLen_first[2]].ul>>32^1, 1);
                    n_reduced++;
               }
 
        }

    }

    return n_reduced;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
testl %edx, %edx
je 0xa4ceb
movl %ecx, %r10d
movq %rsi, %r15
movq %rdi, %r12
movl %r9d, 0x5c(%rsp)
shrl %r10d
shrl %r8d
movl %edx, %r9d
leaq -0x1(%r9), %r11
pcmpeqd %xmm0, %xmm0
movl $0x1, %r13d
xorl %ebx, %ebx
movl $0x0, 0x3c(%rsp)
movl %r8d, 0xc(%rsp)
movq %r9, 0x20(%rsp)
movq %r11, 0x18(%rsp)
movl (%r15,%rbx,4), %ecx
movl %ecx, %ebp
shrl %ebp
cmpl %r10d, %ebp
sete %al
cmpl %r8d, %ebp
sete %dl
orb %al, %dl
jne 0xa4c47
movq 0x28(%r12), %rax
movq (%rax,%rcx,8), %rcx
cmpl $0x2, %ecx
jne 0xa4c47
movq 0x8(%r12), %rdx
shrq $0x20, %rcx
leaq (%rcx,%rcx,2), %rcx
leaq (%rdx,%rcx,8), %rdi
movl 0x8(%rdi), %ecx
cmpl 0x20(%rdi), %ecx
je 0xa4c47
xorq $0x1, %rcx
movdqa %xmm0, 0x80(%rsp)
movq $-0x1, 0x90(%rsp)
movq (%rax,%rcx,8), %rax
testl %eax, %eax
movq %rdi, 0x10(%rsp)
jle 0xa43aa
movq %rax, %rsi
shrq $0x20, %rsi
movl %eax, %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
leaq (%rsi,%rsi,2), %rsi
leaq (%rdx,%rsi,8), %rsi
addq $0x8, %rsi
xorl %edx, %edx
movl (%rsi), %edi
shrl %edi
cmpl %ebp, %edi
cmovel %r13d, %edx
addq $0x18, %rsi
decq %rcx
jne 0xa4384
testl %edx, %edx
sete %cl
cmpl $0x3, %eax
setl %r14b
movq 0x10(%rsp), %rdi
jmp 0xa43af
movb $0x1, %r14b
movb $0x1, %cl
testb %cl, %cl
jne 0xa4675
testb %r14b, %r14b
je 0xa4514
movl 0x20(%rdi), %eax
movq 0x28(%r12), %rcx
xorq $0x1, %rax
movq (%rcx,%rax,8), %rax
testl %eax, %eax
jle 0xa441c
movq 0x8(%r12), %rdx
movq %rax, %rsi
shrq $0x20, %rsi
movl %eax, %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
leaq (%rsi,%rsi,2), %rsi
leaq (%rdx,%rsi,8), %rsi
addq $0x8, %rsi
xorl %edx, %edx
movl (%rsi), %edi
shrl %edi
cmpl %ebp, %edi
cmovel %r13d, %edx
addq $0x18, %rsi
decq %rcx
jne 0xa43f6
testl %edx, %edx
sete %cl
cmpl $0x3, %eax
setl %r14b
movq 0x10(%rsp), %rdi
jmp 0xa4421
movb $0x1, %r14b
movb $0x1, %cl
testb %cl, %cl
jne 0xa4714
testb %r14b, %r14b
je 0xa4514
movl 0x8(%rdi), %eax
movq 0x28(%r12), %rcx
xorq $0x1, %rax
movq (%rcx,%rax,8), %r14
testl %r14d, %r14d
jle 0xa448a
movq 0x8(%r12), %rcx
movq %r14, %rdx
shrq $0x20, %rdx
movl %r14d, %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
leaq (%rdx,%rdx,2), %rdx
leaq (%rcx,%rdx,8), %rdx
addq $0x8, %rdx
xorl %ecx, %ecx
movl (%rdx), %esi
shrl %esi
cmpl %ebp, %esi
cmovel %r13d, %ecx
addq $0x18, %rdx
decq %rax
jne 0xa4469
testl %ecx, %ecx
sete %al
andl $0x7fffffff, %r14d      # imm = 0x7FFFFFFF
jmp 0xa448f
movb $0x1, %al
xorl %r14d, %r14d
testb %al, %al
jne 0xa498e
movq $0x0, 0x80(%rsp,%r14,8)
movl 0x20(%rdi), %eax
movq 0x28(%r12), %rcx
xorq $0x1, %rax
movq (%rcx,%rax,8), %r14
testl %r14d, %r14d
jle 0xa44fb
movq 0x8(%r12), %rcx
movq %r14, %rdx
shrq $0x20, %rdx
movl %r14d, %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
leaq (%rdx,%rdx,2), %rdx
leaq (%rcx,%rdx,8), %rdx
addq $0x8, %rdx
xorl %ecx, %ecx
movl (%rdx), %esi
shrl %esi
cmpl %ebp, %esi
cmovel %r13d, %ecx
addq $0x18, %rdx
decq %rax
jne 0xa44da
testl %ecx, %ecx
sete %al
andl $0x7fffffff, %r14d      # imm = 0x7FFFFFFF
jmp 0xa4500
movb $0x1, %al
xorl %r14d, %r14d
testb %al, %al
jne 0xa49ba
movq $0x1, 0x80(%rsp,%r14,8)
movq 0x90(%rsp), %rax
cmpq $-0x1, 0x88(%rsp)
sete %cl
cmpq $-0x1, %rax
sete %dl
orb %cl, %dl
jne 0xa4c47
leaq (%rax,%rax,2), %rax
cmpl $0x0, 0xc(%rdi,%rax,8)
js 0xa4c47
movq %rax, 0x98(%rsp)
leaq (%rdi,%rax,8), %rax
movq %rax, 0x50(%rsp)
movl 0x8(%rax), %ebp
movq %rbp, %rax
xorq $0x1, %rax
movq 0x28(%r12), %rcx
movq (%rcx,%rax,8), %rax
movq %rax, %rcx
shrq $0x20, %rcx
leaq (%rcx,%rcx,2), %rsi
shlq $0x3, %rsi
addq 0x8(%r12), %rsi
cmpl $0x2, %eax
movq %rsi, 0x30(%rsp)
jne 0xa4930
movdqa %xmm0, 0x60(%rsp)
movq $-0x1, 0x70(%rsp)
movl 0x8(%rsi), %eax
shrl %ebp
movq 0x28(%r12), %rcx
xorq $0x1, %rax
movq (%rcx,%rax,8), %rax
testl %eax, %eax
jle 0xa45fe
movq 0x8(%r12), %rdx
movq %rax, %rsi
shrq $0x20, %rsi
movl %eax, %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
leaq (%rsi,%rsi,2), %rsi
leaq (%rdx,%rsi,8), %rsi
addq $0x8, %rsi
xorl %edx, %edx
movl (%rsi), %edi
shrl %edi
cmpl %ebp, %edi
cmovel %r13d, %edx
addq $0x18, %rsi
decq %rcx
jne 0xa45d3
testl %edx, %edx
sete %cl
cmpl $0x3, %eax
setl %r14b
movq 0x10(%rsp), %rdi
movq 0x30(%rsp), %rsi
jmp 0xa4603
movb $0x1, %r14b
movb $0x1, %cl
testb %cl, %cl
jne 0xa495d
testb %r14b, %r14b
je 0xa47c9
movl 0x20(%rsi), %eax
movq 0x28(%r12), %rcx
xorq $0x1, %rax
movq (%rcx,%rax,8), %rax
testl %eax, %eax
jle 0xa46a1
movq 0x8(%r12), %rdx
movq %rax, %rsi
shrq $0x20, %rsi
movl %eax, %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
leaq (%rsi,%rsi,2), %rsi
leaq (%rdx,%rsi,8), %rsi
addq $0x8, %rsi
xorl %edx, %edx
movl (%rsi), %edi
shrl %edi
cmpl %ebp, %edi
cmovel %r13d, %edx
addq $0x18, %rsi
decq %rcx
jne 0xa464a
testl %edx, %edx
sete %cl
cmpl $0x3, %eax
setl %r14b
movq 0x10(%rsp), %rdi
movq 0x30(%rsp), %rsi
jmp 0xa46a6
movl %r10d, 0x8(%rsp)
callq 0xfe88
movq 0x10(%rsp), %rdi
pcmpeqd %xmm0, %xmm0
movq 0x18(%rsp), %r11
movq 0x20(%rsp), %r9
movl 0x8(%rsp), %r10d
movl 0xc(%rsp), %r8d
jmp 0xa43b7
movb $0x1, %r14b
movb $0x1, %cl
testb %cl, %cl
jne 0xa4c58
testb %r14b, %r14b
je 0xa47c9
movl 0x8(%rsi), %eax
movq 0x28(%r12), %rcx
xorq $0x1, %rax
movq (%rcx,%rax,8), %r14
testl %r14d, %r14d
jle 0xa4740
movq 0x8(%r12), %rcx
movq %r14, %rdx
shrq $0x20, %rdx
movl %r14d, %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
leaq (%rdx,%rdx,2), %rdx
leaq (%rcx,%rdx,8), %rdx
addq $0x8, %rdx
xorl %ecx, %ecx
movl (%rdx), %esi
shrl %esi
cmpl %ebp, %esi
cmovel %r13d, %ecx
addq $0x18, %rdx
decq %rax
jne 0xa46ee
testl %ecx, %ecx
sete %al
andl $0x7fffffff, %r14d      # imm = 0x7FFFFFFF
movq 0x30(%rsp), %rsi
jmp 0xa4745
movl %r10d, 0x8(%rsp)
callq 0xfea4
movq 0x10(%rsp), %rdi
pcmpeqd %xmm0, %xmm0
movq 0x18(%rsp), %r11
movq 0x20(%rsp), %r9
movl 0x8(%rsp), %r10d
movl 0xc(%rsp), %r8d
jmp 0xa4429
movb $0x1, %al
xorl %r14d, %r14d
testb %al, %al
jne 0xa4c89
movq $0x0, 0x60(%rsp,%r14,8)
movl 0x20(%rsi), %eax
movq 0x28(%r12), %rcx
xorq $0x1, %rax
movq (%rcx,%rax,8), %r14
testl %r14d, %r14d
jle 0xa47b3
movq 0x8(%r12), %rcx
movq %r14, %rdx
shrq $0x20, %rdx
movl %r14d, %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
leaq (%rdx,%rdx,2), %rdx
leaq (%rcx,%rdx,8), %rdx
addq $0x8, %rdx
xorl %ecx, %ecx
movl (%rdx), %esi
shrl %esi
cmpl %ebp, %esi
cmovel %r13d, %ecx
addq $0x18, %rdx
decq %rax
jne 0xa478d
testl %ecx, %ecx
sete %al
andl $0x7fffffff, %r14d      # imm = 0x7FFFFFFF
movq 0x30(%rsp), %rsi
jmp 0xa47b8
movb $0x1, %al
xorl %r14d, %r14d
testb %al, %al
jne 0xa4cba
movq $0x1, 0x60(%rsp,%r14,8)
cmpq $-0x1, 0x68(%rsp)
je 0xa4c47
cmpq $-0x1, 0x70(%rsp)
je 0xa4c47
xorl %ecx, %ecx
movl (%r15,%rcx,4), %eax
shrl %eax
cmpl %ebp, %eax
je 0xa47f9
leaq 0x1(%rcx), %rdx
cmpq %rcx, %r11
movq %rdx, %rcx
jne 0xa47e3
cmpl %r8d, %ebp
je 0xa4c47
cmpl %ebp, %eax
jne 0xa4c47
movl %r10d, 0x8(%rsp)
xorl %eax, %eax
movl %eax, 0x2c(%rsp)
movl %eax, 0x28(%rsp)
movq %rax, 0x48(%rsp)
movq %rax, 0x40(%rsp)
movq %rsi, %r14
movl 0x8(%rdi), %esi
movl 0x20(%rdi), %edx
movq %r12, %rdi
leaq 0x2c(%rsp), %rcx
leaq 0x48(%rsp), %r8
xorl %r9d, %r9d
callq 0xa3e8c
movl %eax, %ebp
movl 0x8(%r14), %esi
movl 0x20(%r14), %edx
movq %r12, %rdi
leaq 0x28(%rsp), %rcx
leaq 0x40(%rsp), %r8
xorl %r9d, %r9d
callq 0xa3e8c
movl %eax, %edi
testl %ebp, %ebp
je 0xa48e2
testl %edi, %edi
je 0xa48e2
movl 0x2c(%rsp), %eax
shrl %eax
movl 0x8(%rsp), %r10d
cmpl %r10d, %eax
setne %cl
movl 0xc(%rsp), %r8d
cmpl %r8d, %eax
setne %al
testb %al, %cl
movq 0x20(%rsp), %r9
movq 0x18(%rsp), %r11
pcmpeqd %xmm0, %xmm0
movq 0x10(%rsp), %rdx
movq 0x50(%rsp), %rsi
jne 0xa4a26
movl 0x28(%rsp), %eax
shrl %eax
cmpl %r10d, %eax
setne %cl
cmpl %r8d, %eax
setne %al
testb %al, %cl
jne 0xa4a26
movq 0x1e6b59(%rip), %rax    # 0x28b420
cmpq %rax, 0x48(%rsp)
jle 0xa4c47
cmpq %rax, 0x40(%rsp)
jg 0xa4bde
jmp 0xa4c47
testl %ebp, %ebp
movl 0xc(%rsp), %r8d
movl 0x8(%rsp), %r10d
movq 0x50(%rsp), %rsi
je 0xa49e2
movl 0x2c(%rsp), %eax
shrl %eax
cmpl %r10d, %eax
setne %cl
cmpl %r8d, %eax
setne %al
testb %al, %cl
movq 0x20(%rsp), %r9
movq 0x18(%rsp), %r11
pcmpeqd %xmm0, %xmm0
movq 0x10(%rsp), %rdx
jne 0xa4a26
movq 0x48(%rsp), %rax
jmp 0xa4a14
movl %r10d, %r14d
callq 0xfef8
movq 0x30(%rsp), %rsi
movq 0x10(%rsp), %rdi
pcmpeqd %xmm0, %xmm0
movq 0x18(%rsp), %r11
movq 0x20(%rsp), %r9
movl %r14d, %r10d
movl 0xc(%rsp), %r8d
jmp 0xa458c
movl %r10d, 0x8(%rsp)
callq 0xff14
movq 0x30(%rsp), %rsi
movq 0x10(%rsp), %rdi
pcmpeqd %xmm0, %xmm0
movq 0x18(%rsp), %r11
movq 0x20(%rsp), %r9
movl 0x8(%rsp), %r10d
movl 0xc(%rsp), %r8d
jmp 0xa460b
movl %r10d, 0x8(%rsp)
callq 0xfec0
movq 0x10(%rsp), %rdi
pcmpeqd %xmm0, %xmm0
movq 0x18(%rsp), %r11
movq 0x20(%rsp), %r9
movl 0x8(%rsp), %r10d
movl 0xc(%rsp), %r8d
jmp 0xa4497
movl %r10d, %ebp
callq 0xfedc
movq 0x10(%rsp), %rdi
pcmpeqd %xmm0, %xmm0
movq 0x18(%rsp), %r11
movq 0x20(%rsp), %r9
movl %ebp, %r10d
movl 0xc(%rsp), %r8d
jmp 0xa4508
testl %edi, %edi
movq 0x20(%rsp), %r9
movq 0x18(%rsp), %r11
pcmpeqd %xmm0, %xmm0
movq 0x10(%rsp), %rdx
je 0xa4a26
movl 0x28(%rsp), %eax
shrl %eax
cmpl %r10d, %eax
setne %cl
cmpl %r8d, %eax
setne %al
testb %al, %cl
jne 0xa4a26
movq 0x40(%rsp), %rax
cmpq 0x1e6a05(%rip), %rax    # 0x28b420
jg 0xa4bde
jmp 0xa4c47
movl %ebp, %eax
movb $0x1, %bpl
movb $0x1, %r14b
testl %eax, %eax
jne 0xa4aaf
movl 0x8(%rdx), %eax
movl %eax, 0xac(%rsp)
movl 0x20(%rdx), %eax
movl %eax, 0xb0(%rsp)
movl %edi, %r14d
movq %r12, %rdi
leaq 0xac(%rsp), %rsi
movl $0x2, %edx
movl 0x5c(%rsp), %ecx
movq 0xf0(%rsp), %r8
xorl %r9d, %r9d
leaq 0x2c(%rsp), %rax
pushq %rax
pushq $-0x1
callq 0xa4d09
movl %r14d, %edi
movq 0x20(%rsp), %rdx
pcmpeqd %xmm0, %xmm0
movq 0x28(%rsp), %r11
movq 0x30(%rsp), %r9
movl 0x18(%rsp), %r10d
movl 0x1c(%rsp), %r8d
addq $0x10, %rsp
movq 0x1e6980(%rip), %rcx    # 0x28b420
addq $0xa, %rcx
movq %rcx, 0x48(%rsp)
testl %eax, %eax
setne %r14b
testl %edi, %edi
jne 0xa4b2f
movq 0x30(%rsp), %rcx
movl 0x8(%rcx), %eax
movl %eax, 0xa0(%rsp)
movl 0x20(%rcx), %eax
movl %eax, 0xa4(%rsp)
movq %r12, %rdi
leaq 0xa0(%rsp), %rsi
movl $0x2, %edx
movl 0x5c(%rsp), %ecx
movq 0xf0(%rsp), %r8
xorl %r9d, %r9d
leaq 0x28(%rsp), %rax
pushq %rax
pushq $-0x1
callq 0xa4d09
movq 0x20(%rsp), %rdx
pcmpeqd %xmm0, %xmm0
movq 0x28(%rsp), %r11
movq 0x30(%rsp), %r9
movl 0x18(%rsp), %r10d
movl 0x1c(%rsp), %r8d
addq $0x10, %rsp
movq 0x1e6900(%rip), %rcx    # 0x28b420
addq $0xa, %rcx
movq %rcx, 0x40(%rsp)
testl %eax, %eax
setne %bpl
movl %r14d, %eax
andb %bpl, %al
cmpb $0x1, %al
jne 0xa4b86
movl 0x2c(%rsp), %eax
shrl %eax
cmpl %r10d, %eax
setne %cl
cmpl %r8d, %eax
setne %al
testb %al, %cl
jne 0xa4c47
movl 0x28(%rsp), %eax
shrl %eax
cmpl %r10d, %eax
setne %cl
cmpl %r8d, %eax
setne %al
testb %al, %cl
jne 0xa4c47
movq 0x1e68ac(%rip), %rax    # 0x28b420
cmpq %rax, 0x48(%rsp)
jle 0xa4c47
cmpq %rax, 0x40(%rsp)
jmp 0xa4bd7
testb %r14b, %r14b
je 0xa4bac
movl 0x2c(%rsp), %eax
shrl %eax
cmpl %r10d, %eax
setne %cl
cmpl %r8d, %eax
setne %al
testb %al, %cl
jne 0xa4c47
movq 0x48(%rsp), %rax
jmp 0xa4bd0
testb %bpl, %bpl
je 0xa4c47
movl 0x28(%rsp), %eax
shrl %eax
cmpl %r10d, %eax
setne %cl
cmpl %r8d, %eax
setne %al
testb %al, %cl
jne 0xa4c47
movq 0x40(%rsp), %rax
cmpq 0x1e6849(%rip), %rax    # 0x28b420
movq 0x50(%rsp), %rsi
jle 0xa4c47
movq 0x98(%rsp), %rax
orb $-0x80, 0xf(%rdx,%rax,8)
movl 0x8(%rsi), %eax
xorq $0x1, %rax
movq 0x28(%r12), %rcx
movq (%rcx,%rax,8), %rdx
movq %rdx, %rcx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
andq %rax, %rcx
je 0xa4c43
movl 0x4(%rsi), %eax
movq 0x8(%r12), %rsi
shrq $0x20, %rdx
shlq $0x3, %rcx
leaq (%rcx,%rcx,2), %rcx
leaq (%rdx,%rdx,2), %rdx
leaq (%rsi,%rdx,8), %rdx
addq $0xc, %rdx
xorl %esi, %esi
movl -0x4(%rdx,%rsi), %edi
xorl %eax, %edi
cmpl $0x1, %edi
jne 0xa4c3a
orb $-0x80, 0x3(%rdx,%rsi)
addq $0x18, %rsi
cmpq %rsi, %rcx
jne 0xa4c2a
incl 0x3c(%rsp)
incq %rbx
cmpq %r9, %rbx
jne 0xa42f6
jmp 0xa4cf3
movl %r10d, 0x8(%rsp)
callq 0xff30
movq 0x30(%rsp), %rsi
movq 0x10(%rsp), %rdi
pcmpeqd %xmm0, %xmm0
movq 0x18(%rsp), %r11
movq 0x20(%rsp), %r9
movl 0x8(%rsp), %r10d
movl 0xc(%rsp), %r8d
jmp 0xa46ae
movl %r10d, 0x8(%rsp)
callq 0xff4c
movq 0x30(%rsp), %rsi
movq 0x10(%rsp), %rdi
pcmpeqd %xmm0, %xmm0
movq 0x18(%rsp), %r11
movq 0x20(%rsp), %r9
movl 0x8(%rsp), %r10d
movl 0xc(%rsp), %r8d
jmp 0xa474d
movl %r10d, 0x8(%rsp)
callq 0xff68
movq 0x30(%rsp), %rsi
movq 0x10(%rsp), %rdi
pcmpeqd %xmm0, %xmm0
movq 0x18(%rsp), %r11
movq 0x20(%rsp), %r9
movl 0x8(%rsp), %r10d
movl 0xc(%rsp), %r8d
jmp 0xa47c0
movl $0x0, 0x3c(%rsp)
movl 0x3c(%rsp), %eax
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq