// File: chhylp123[P]hifiasm/Overlaps.cpp
// Function: test_triangular_addition_exact(asg_t*, unsigned int*, unsigned int, unsigned int, unsigned int, int, buf_t*)
int test_triangular_addition_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, j, v, w;
    ///int flag0, flag1, node;
    int n_reduced = 0, todel;
    uint32_t Nodes1[2]={0};
    uint32_t Nodes2[2]={0};

    uint32_t Ns_first[2]={0};
    uint32_t Ns_second[2]={0};


    
    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 != 1)
        {
            continue;
        }
        if(asg_is_single_edge(g, av[0].v, v>>1) != 2)
        {
            continue;
        }


        w = v^1;
        asg_arc_t *aw = asg_arc_a(g, w);
        uint32_t nw = asg_arc_n(g, w);
        if(nw != 1)
        {
            continue;
        }
        if(asg_is_single_edge(g, aw[0].v, w>>1) != 2)
        {
            continue;
        }

        if((av[0].v>>1) == (aw[0].v>>1))
        {
            continue;
        }



        Nodes1[0] = av[0].v^1;
        Nodes2[0] = aw[0].v^1;

        
        for(j = 0; j < 2; j++)
        {
            if((asg_arc_a(g, Nodes1[0])[j].v>>1)!= (v>>1))
            {
                Nodes1[1] = asg_arc_a(g, Nodes1[0])[j].v^1;
            }
        }

        for(j = 0; j < 2; j++)
        {
            if((asg_arc_a(g, Nodes2[0])[j].v>>1)!= (v>>1))
            {
                Nodes2[1] = asg_arc_a(g, Nodes2[0])[j].v^1;
            }
        }
        
        if(asg_arc_n(g, Nodes1[1]) != 1 || asg_arc_n(g, Nodes2[1]) != 1)
        {
            continue;
        }

        if((Nodes1[1]>>1) == (Nodes2[1]>>1))
        {
            continue;
        }



        if(asg_arc_a(g, Nodes1[1])[0].el == 0 || asg_arc_a(g, Nodes2[1])[0].el == 0)
        {
            continue;
        }

        uint32_t convex1, convex2, f1, f2;
        long long l1, l2;
        todel = 0;

        if((Nodes1[0]^1) == (startNode^1) || (Nodes1[0]^1) == endNode)
        {
            continue;
        }
        if((Nodes2[1]^1) == (startNode^1) || (Nodes2[1]^1) == endNode)
        {
            continue;
        }

        f1 = detect_bubble_end_with_bubbles(g, Nodes1[0]^1, Nodes2[1]^1, &convex1, &l1, NULL);


        if((Nodes2[0]^1) == (startNode^1) || (Nodes2[0]^1) == endNode)
        {
            continue;
        }
        if((Nodes1[1]^1) == (startNode^1) || (Nodes1[1]^1) == endNode)
        {
            continue;
        }

        f2 = detect_bubble_end_with_bubbles(g, Nodes2[0]^1, Nodes1[1]^1, &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] = Nodes1[0]^1; Ns_first[1] = Nodes2[1]^1;
                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] = Nodes2[0]^1; Ns_second[1] = Nodes1[1]^1;
                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)
        {
            if(av[0].el == 0 || aw[0].el == 0)
            {
                av[0].del = 1;
                asg_arc_del(g, av[0].v^1, av[0].ul>>32^1, 1);

                aw[0].del = 1;
                asg_arc_del(g, aw[0].v^1, aw[0].ul>>32^1, 1);
                
                n_reduced++;
            }
        }
    }

    return n_reduced;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xb0, %rsp
movq 0x10(%rbp), %rax
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movl %ecx, -0x18(%rbp)
movl %r8d, -0x1c(%rbp)
movl %r9d, -0x20(%rbp)
movl $0x0, -0x34(%rbp)
leaq -0x40(%rbp), %rdi
xorl %esi, %esi
movl $0x8, %edx
callq 0x2100
leaq -0x48(%rbp), %rdi
xorl %esi, %esi
movl $0x8, %edx
callq 0x2100
leaq -0x50(%rbp), %rdi
xorl %esi, %esi
movl $0x8, %edx
callq 0x2100
leaq -0x58(%rbp), %rdi
xorl %esi, %esi
movl $0x8, %edx
callq 0x2100
movl $0x0, -0x24(%rbp)
movl -0x24(%rbp), %eax
cmpl -0x14(%rbp), %eax
jae 0xd739f
movq -0x10(%rbp), %rax
movl -0x24(%rbp), %ecx
movl (%rax,%rcx,4), %eax
movl %eax, -0x2c(%rbp)
movl -0x2c(%rbp), %eax
shrl %eax
movl -0x18(%rbp), %ecx
shrl %ecx
cmpl %ecx, %eax
je 0xd6c88
movl -0x2c(%rbp), %eax
shrl %eax
movl -0x1c(%rbp), %ecx
shrl %ecx
cmpl %ecx, %eax
jne 0xd6c8d
jmp 0xd7391
movq -0x8(%rbp), %rax
movq 0x28(%rax), %rax
movl -0x2c(%rbp), %ecx
movq (%rax,%rcx,8), %rax
movl %eax, -0x5c(%rbp)
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x8(%rbp), %rcx
movq 0x28(%rcx), %rcx
movl -0x2c(%rbp), %edx
movq (%rcx,%rdx,8), %rcx
shrq $0x20, %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x68(%rbp)
cmpl $0x1, -0x5c(%rbp)
je 0xd6cd0
jmp 0xd7391
movq -0x8(%rbp), %rdi
movq -0x68(%rbp), %rax
movl 0x8(%rax), %esi
movl -0x2c(%rbp), %edx
shrl %edx
callq 0xd4770
cmpl $0x2, %eax
je 0xd6cef
jmp 0xd7391
movl -0x2c(%rbp), %eax
xorl $0x1, %eax
movl %eax, -0x30(%rbp)
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x8(%rbp), %rcx
movq 0x28(%rcx), %rcx
movl -0x30(%rbp), %edx
movq (%rcx,%rdx,8), %rcx
shrq $0x20, %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x70(%rbp)
movq -0x8(%rbp), %rax
movq 0x28(%rax), %rax
movl -0x30(%rbp), %ecx
movq (%rax,%rcx,8), %rax
movl %eax, -0x74(%rbp)
cmpl $0x1, -0x74(%rbp)
je 0xd6d3b
jmp 0xd7391
movq -0x8(%rbp), %rdi
movq -0x70(%rbp), %rax
movl 0x8(%rax), %esi
movl -0x30(%rbp), %edx
shrl %edx
callq 0xd4770
cmpl $0x2, %eax
je 0xd6d5a
jmp 0xd7391
movq -0x68(%rbp), %rax
movl 0x8(%rax), %eax
shrl %eax
movq -0x70(%rbp), %rcx
movl 0x8(%rcx), %ecx
shrl %ecx
cmpl %ecx, %eax
jne 0xd6d75
jmp 0xd7391
movq -0x68(%rbp), %rax
movl 0x8(%rax), %eax
xorl $0x1, %eax
movl %eax, -0x40(%rbp)
movq -0x70(%rbp), %rax
movl 0x8(%rax), %eax
xorl $0x1, %eax
movl %eax, -0x48(%rbp)
movl $0x0, -0x28(%rbp)
cmpl $0x2, -0x28(%rbp)
jae 0xd6e1b
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x8(%rbp), %rcx
movq 0x28(%rcx), %rcx
movl -0x40(%rbp), %edx
movq (%rcx,%rdx,8), %rcx
shrq $0x20, %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl -0x28(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl 0x8(%rax), %eax
shrl %eax
movl -0x2c(%rbp), %ecx
shrl %ecx
cmpl %ecx, %eax
je 0xd6e0b
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x8(%rbp), %rcx
movq 0x28(%rcx), %rcx
movl -0x40(%rbp), %edx
movq (%rcx,%rdx,8), %rcx
shrq $0x20, %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl -0x28(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl 0x8(%rax), %eax
xorl $0x1, %eax
movl %eax, -0x3c(%rbp)
jmp 0xd6e0d
movl -0x28(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x28(%rbp)
jmp 0xd6d96
movl $0x0, -0x28(%rbp)
cmpl $0x2, -0x28(%rbp)
jae 0xd6ea7
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x8(%rbp), %rcx
movq 0x28(%rcx), %rcx
movl -0x48(%rbp), %edx
movq (%rcx,%rdx,8), %rcx
shrq $0x20, %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl -0x28(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl 0x8(%rax), %eax
shrl %eax
movl -0x2c(%rbp), %ecx
shrl %ecx
cmpl %ecx, %eax
je 0xd6e97
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x8(%rbp), %rcx
movq 0x28(%rcx), %rcx
movl -0x48(%rbp), %edx
movq (%rcx,%rdx,8), %rcx
shrq $0x20, %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl -0x28(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl 0x8(%rax), %eax
xorl $0x1, %eax
movl %eax, -0x44(%rbp)
jmp 0xd6e99
movl -0x28(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x28(%rbp)
jmp 0xd6e22
movq -0x8(%rbp), %rax
movq 0x28(%rax), %rax
movl -0x3c(%rbp), %ecx
movq (%rax,%rcx,8), %rax
cmpl $0x1, %eax
jne 0xd6ecf
movq -0x8(%rbp), %rax
movq 0x28(%rax), %rax
movl -0x44(%rbp), %ecx
movq (%rax,%rcx,8), %rax
cmpl $0x1, %eax
je 0xd6ed4
jmp 0xd7391
movl -0x3c(%rbp), %eax
shrl %eax
movl -0x44(%rbp), %ecx
shrl %ecx
cmpl %ecx, %eax
jne 0xd6ee7
jmp 0xd7391
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x8(%rbp), %rcx
movq 0x28(%rcx), %rcx
movl -0x3c(%rbp), %edx
movq (%rcx,%rdx,8), %rcx
shrq $0x20, %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movzbl 0x12(%rax), %eax
cmpl $0x0, %eax
je 0xd6f3d
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x8(%rbp), %rcx
movq 0x28(%rcx), %rcx
movl -0x44(%rbp), %edx
movq (%rcx,%rdx,8), %rcx
shrq $0x20, %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movzbl 0x12(%rax), %eax
cmpl $0x0, %eax
jne 0xd6f42
jmp 0xd7391
movl $0x0, -0x38(%rbp)
movl -0x40(%rbp), %eax
xorl $0x1, %eax
movl -0x18(%rbp), %ecx
xorl $0x1, %ecx
cmpl %ecx, %eax
je 0xd6f64
movl -0x40(%rbp), %eax
xorl $0x1, %eax
cmpl -0x1c(%rbp), %eax
jne 0xd6f69
jmp 0xd7391
movl -0x44(%rbp), %eax
xorl $0x1, %eax
movl -0x18(%rbp), %ecx
xorl $0x1, %ecx
cmpl %ecx, %eax
je 0xd6f84
movl -0x44(%rbp), %eax
xorl $0x1, %eax
cmpl -0x1c(%rbp), %eax
jne 0xd6f89
jmp 0xd7391
movq -0x8(%rbp), %rdi
movl -0x40(%rbp), %esi
xorl $0x1, %esi
movl -0x44(%rbp), %edx
xorl $0x1, %edx
leaq -0x78(%rbp), %rcx
leaq -0x90(%rbp), %r8
xorl %eax, %eax
movl %eax, %r9d
callq 0xd51f0
movl %eax, -0x80(%rbp)
movl -0x48(%rbp), %eax
xorl $0x1, %eax
movl -0x18(%rbp), %ecx
xorl $0x1, %ecx
cmpl %ecx, %eax
je 0xd6fcc
movl -0x48(%rbp), %eax
xorl $0x1, %eax
cmpl -0x1c(%rbp), %eax
jne 0xd6fd1
jmp 0xd7391
movl -0x3c(%rbp), %eax
xorl $0x1, %eax
movl -0x18(%rbp), %ecx
xorl $0x1, %ecx
cmpl %ecx, %eax
je 0xd6fec
movl -0x3c(%rbp), %eax
xorl $0x1, %eax
cmpl -0x1c(%rbp), %eax
jne 0xd6ff1
jmp 0xd7391
movq -0x8(%rbp), %rdi
movl -0x48(%rbp), %esi
xorl $0x1, %esi
movl -0x3c(%rbp), %edx
xorl $0x1, %edx
leaq -0x7c(%rbp), %rcx
leaq -0x98(%rbp), %r8
xorl %eax, %eax
movl %eax, %r9d
callq 0xd51f0
movl %eax, -0x84(%rbp)
cmpl $0x0, -0x80(%rbp)
je 0xd7094
cmpl $0x0, -0x84(%rbp)
je 0xd7094
movl -0x78(%rbp), %eax
shrl %eax
movl -0x18(%rbp), %ecx
shrl %ecx
cmpl %ecx, %eax
je 0xd7047
movl -0x78(%rbp), %eax
shrl %eax
movl -0x1c(%rbp), %ecx
shrl %ecx
cmpl %ecx, %eax
jne 0xd708f
movl -0x7c(%rbp), %eax
shrl %eax
movl -0x18(%rbp), %ecx
shrl %ecx
cmpl %ecx, %eax
je 0xd7063
movl -0x7c(%rbp), %eax
shrl %eax
movl -0x1c(%rbp), %ecx
shrl %ecx
cmpl %ecx, %eax
jne 0xd708f
movq -0x90(%rbp), %rax
cmpq 0x2ee44f(%rip), %rax    # 0x3c54c0
jle 0xd7083
movq -0x98(%rbp), %rax
cmpq 0x2ee43f(%rip), %rax    # 0x3c54c0
jg 0xd7088
jmp 0xd7391
movl $0x1, -0x38(%rbp)
jmp 0xd711b
cmpl $0x0, -0x80(%rbp)
je 0xd70d4
movl -0x78(%rbp), %eax
shrl %eax
movl -0x18(%rbp), %ecx
shrl %ecx
cmpl %ecx, %eax
je 0xd70b6
movl -0x78(%rbp), %eax
shrl %eax
movl -0x1c(%rbp), %ecx
shrl %ecx
cmpl %ecx, %eax
jne 0xd70d2
movq -0x90(%rbp), %rax
cmpq 0x2ee3fc(%rip), %rax    # 0x3c54c0
jg 0xd70cb
jmp 0xd7391
movl $0x1, -0x38(%rbp)
jmp 0xd7119
cmpl $0x0, -0x84(%rbp)
je 0xd7117
movl -0x7c(%rbp), %eax
shrl %eax
movl -0x18(%rbp), %ecx
shrl %ecx
cmpl %ecx, %eax
je 0xd70f9
movl -0x7c(%rbp), %eax
shrl %eax
movl -0x1c(%rbp), %ecx
shrl %ecx
cmpl %ecx, %eax
jne 0xd7115
movq -0x98(%rbp), %rax
cmpq 0x2ee3b9(%rip), %rax    # 0x3c54c0
jg 0xd710e
jmp 0xd7391
movl $0x1, -0x38(%rbp)
jmp 0xd7117
jmp 0xd7119
jmp 0xd711b
cmpl $0x0, -0x38(%rbp)
jne 0xd72de
cmpl $0x0, -0x80(%rbp)
jne 0xd717e
movl -0x40(%rbp), %eax
xorl $0x1, %eax
movl %eax, -0x50(%rbp)
movl -0x44(%rbp), %eax
xorl $0x1, %eax
movl %eax, -0x4c(%rbp)
movq -0x8(%rbp), %rdi
leaq -0x50(%rbp), %rsi
movl -0x20(%rbp), %ecx
movq 0x10(%rbp), %r8
movl $0x2, %edx
xorl %r9d, %r9d
leaq -0x78(%rbp), %rax
movl $0xffffffff, (%rsp)     # imm = 0xFFFFFFFF
movq %rax, 0x8(%rsp)
callq 0xd5db0
movl %eax, -0x80(%rbp)
movq 0x2ee34d(%rip), %rax    # 0x3c54c0
addq $0xa, %rax
movq %rax, -0x90(%rbp)
cmpl $0x0, -0x84(%rbp)
jne 0xd71dd
movl -0x48(%rbp), %eax
xorl $0x1, %eax
movl %eax, -0x58(%rbp)
movl -0x3c(%rbp), %eax
xorl $0x1, %eax
movl %eax, -0x54(%rbp)
movq -0x8(%rbp), %rdi
leaq -0x58(%rbp), %rsi
movl -0x20(%rbp), %ecx
movq 0x10(%rbp), %r8
movl $0x2, %edx
xorl %r9d, %r9d
leaq -0x7c(%rbp), %rax
movl $0xffffffff, (%rsp)     # imm = 0xFFFFFFFF
movq %rax, 0x8(%rsp)
callq 0xd5db0
movl %eax, -0x84(%rbp)
movq 0x2ee2ee(%rip), %rax    # 0x3c54c0
addq $0xa, %rax
movq %rax, -0x98(%rbp)
cmpl $0x0, -0x80(%rbp)
je 0xd7255
cmpl $0x0, -0x84(%rbp)
je 0xd7255
movl -0x78(%rbp), %eax
shrl %eax
movl -0x18(%rbp), %ecx
shrl %ecx
cmpl %ecx, %eax
je 0xd7208
movl -0x78(%rbp), %eax
shrl %eax
movl -0x1c(%rbp), %ecx
shrl %ecx
cmpl %ecx, %eax
jne 0xd7250
movl -0x7c(%rbp), %eax
shrl %eax
movl -0x18(%rbp), %ecx
shrl %ecx
cmpl %ecx, %eax
je 0xd7224
movl -0x7c(%rbp), %eax
shrl %eax
movl -0x1c(%rbp), %ecx
shrl %ecx
cmpl %ecx, %eax
jne 0xd7250
movq -0x90(%rbp), %rax
cmpq 0x2ee28e(%rip), %rax    # 0x3c54c0
jle 0xd7244
movq -0x98(%rbp), %rax
cmpq 0x2ee27e(%rip), %rax    # 0x3c54c0
jg 0xd7249
jmp 0xd7391
movl $0x1, -0x38(%rbp)
jmp 0xd72dc
cmpl $0x0, -0x80(%rbp)
je 0xd7295
movl -0x78(%rbp), %eax
shrl %eax
movl -0x18(%rbp), %ecx
shrl %ecx
cmpl %ecx, %eax
je 0xd7277
movl -0x78(%rbp), %eax
shrl %eax
movl -0x1c(%rbp), %ecx
shrl %ecx
cmpl %ecx, %eax
jne 0xd7293
movq -0x90(%rbp), %rax
cmpq 0x2ee23b(%rip), %rax    # 0x3c54c0
jg 0xd728c
jmp 0xd7391
movl $0x1, -0x38(%rbp)
jmp 0xd72da
cmpl $0x0, -0x84(%rbp)
je 0xd72d8
movl -0x7c(%rbp), %eax
shrl %eax
movl -0x18(%rbp), %ecx
shrl %ecx
cmpl %ecx, %eax
je 0xd72ba
movl -0x7c(%rbp), %eax
shrl %eax
movl -0x1c(%rbp), %ecx
shrl %ecx
cmpl %ecx, %eax
jne 0xd72d6
movq -0x98(%rbp), %rax
cmpq 0x2ee1f8(%rip), %rax    # 0x3c54c0
jg 0xd72cf
jmp 0xd7391
movl $0x1, -0x38(%rbp)
jmp 0xd72d8
jmp 0xd72da
jmp 0xd72dc
jmp 0xd72de
cmpl $0x0, -0x38(%rbp)
je 0xd738f
movq -0x68(%rbp), %rax
movzbl 0x12(%rax), %eax
cmpl $0x0, %eax
je 0xd7306
movq -0x70(%rbp), %rax
movzbl 0x12(%rax), %eax
cmpl $0x0, %eax
jne 0xd738d
movq -0x68(%rbp), %rax
movl 0xc(%rax), %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
orl $0x80000000, %ecx       # imm = 0x80000000
movl %ecx, 0xc(%rax)
movq -0x8(%rbp), %rdi
movq -0x68(%rbp), %rax
movl 0x8(%rax), %esi
xorl $0x1, %esi
movq -0x68(%rbp), %rax
movq (%rax), %rax
shrq $0x20, %rax
xorq $0x1, %rax
movl %eax, %edx
movl $0x1, %ecx
callq 0xd6530
movq -0x70(%rbp), %rax
movl 0xc(%rax), %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
orl $0x80000000, %ecx       # imm = 0x80000000
movl %ecx, 0xc(%rax)
movq -0x8(%rbp), %rdi
movq -0x70(%rbp), %rax
movl 0x8(%rax), %esi
xorl $0x1, %esi
movq -0x70(%rbp), %rax
movq (%rax), %rax
shrq $0x20, %rax
xorq $0x1, %rax
movl %eax, %edx
movl $0x1, %ecx
callq 0xd6530
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
jmp 0xd738f
jmp 0xd7391
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0xd6c53
movl -0x34(%rbp), %eax
addq $0xb0, %rsp
popq %rbp
retq
nopl (%rax,%rax)