// File: chhylp123[P]hifiasm/Overlaps.cpp
// Function: copy_graph(asg_t*, int)
asg_t *copy_graph(asg_t* src, int round)
{
    asg_t *rg;
	///just calloc
	rg = asg_init();
    uint64_t i, k;
    for (i = 0; i < src->n_seq; ++i) 
    {
        ///if a read has been deleted, should we still add them?
		asg_seq_set(rg, i, src->seq[i].len, src->seq[i].del);
        rg->seq[i].c = src->seq[i].c;
	}
    asg_cleanup(rg);

    
    uint32_t v, n_vtx = src->n_seq * 2, totalL = 0;;


    for (k = 0; k < (uint32_t)round; k++)
    {
        for (i = k; i < src->n_arc; i = i + round)
        {
            if(totalL%50000==0) fprintf(stderr, "totalL: %u, n_arc: %u\n", totalL, src->n_arc);
            totalL++;
            if(src->arc[i].del) continue;
            asg_append_edges_to_srt(rg, src->arc[i].ul>>32, 
            (uint32_t)(src->arc[i].ul) + src->arc[i].ol,
            src->arc[i].v, src->arc[i].ol, src->arc[i].strong, 
            src->arc[i].el, src->arc[i].no_l_indel);
        }
    }
    
    
    totalL = 0;
    for (v = 0; v < n_vtx; ++v)
    {
        if (src->seq[v>>1].del) continue;
        uint32_t nv = asg_arc_n(src, v);
        asg_arc_t *av = asg_arc_a(src, v);
        for (i = 0; i < nv; i++)
        {
            if(totalL%50000==0) fprintf(stderr, "-totalL: %u, n_arc: %u\n", totalL, src->n_arc);
            totalL++;
            if(av[i].del) continue;
            asg_append_edges_to_srt(rg, av[i].ul>>32, (uint32_t)(av[i].ul) + av[i].ol,
            av[i].v, av[i].ol, av[i].strong, av[i].el, av[i].no_l_indel);
        }
    }
    

    

    /**
    for (v = 0; v < n_vtx; ++v)
    {
        if(src->idx[v] != rg->idx[v])
        {
            fprintf(stderr, "*****v: %u, src_i: %u, srcLen: %u, rg_i: %u, rgLen: %u\n", 
            v, src->idx[v]>>32, (uint32_t)src->idx[v], 
            rg->idx[v]>>32, (uint32_t)rg->idx[v]); 
        }
    }
    **/


    for (v = 0; v < n_vtx; ++v)
    {
        
        if(src->seq[v>>1].del != rg->seq[v>>1].del)
        {
            fprintf(stderr, "ERROR1\n");
        }

        uint32_t nv = asg_arc_n(src, v);
        asg_arc_t *av = asg_arc_a(src, v);
        ///if(nv != rnv)
        if(get_real_length(src, v, NULL) != get_real_length(rg, v, NULL))
        {
            fprintf(stderr, "ERROR2\n");
        }

        for (i = 0; i < nv; i++)
        {
            if(av[i].del) continue;
            asg_arc_t forward = av[i], backward;
            memset(&backward, 0, sizeof(backward));
            if(get_arc(rg, (forward.ul>>32), forward.v, &backward)!=1)
            {
                fprintf(stderr, "ERROR3\n");
            }

            if(forward.del != backward.del || forward.el != backward.el || 
               forward.no_l_indel != backward.no_l_indel || forward.ol != backward.ol ||
               forward.strong != backward.strong || forward.ul != backward.ul || forward.v != backward.v)
            {
                fprintf(stderr, "ERROR4\n");
                fprintf(stderr, "forward, del: %u, el: %u, no_l_indel: %u, ol: %u, strong: %u, ul: %u, v: %u\n",
                (uint32_t)forward.del, (uint32_t)forward.el, (uint32_t)forward.no_l_indel, 
                (uint32_t)forward.ol, (uint32_t)forward.strong,
                (uint32_t)forward.ul, (uint32_t)forward.v);
                fprintf(stderr, "backward, del: %u, el: %u, no_l_indel: %u, ol: %u, strong: %u, ul: %u, v: %u\n",
                (uint32_t)backward.del, (uint32_t)backward.el, (uint32_t)backward.no_l_indel, 
                (uint32_t)backward.ol, (uint32_t)backward.strong,
                (uint32_t)backward.ul, (uint32_t)backward.v);
            }
        }

        
        nv = asg_arc_n(rg, v);
        av = asg_arc_a(rg, v);
        for (i = 0; i < nv; i++)
        {
            if(av[i].del) continue;
            asg_arc_t forward = av[i], backward;
            memset(&backward, 0, sizeof(backward));
            if(get_arc(src, (forward.ul>>32), forward.v, &backward)!=1)
            {
                fprintf(stderr, "ERROR5\n");
            }

            if(forward.del != backward.del || forward.el != backward.el || 
               forward.no_l_indel != backward.no_l_indel || forward.ol != backward.ol ||
               forward.strong != backward.strong || forward.ul != backward.ul || forward.v != backward.v)
            {
                fprintf(stderr, "ERROR6\n");
            }
        }
        
        
        ///get_arc(g, forward.v^1, (forward.ul>>32)^1, &backward) 
        ///fprintf(stderr, "+v: %u\n", v);
        
    }

    
    if(src->seq_vis)
    {
        rg->seq_vis = (uint8_t*)malloc(src->n_seq*2*sizeof(uint8_t));
        memcpy(rg->seq_vis, src->seq_vis, src->n_seq*2*sizeof(uint8_t));
    }
    

    fprintf(stderr, "end_copy\n");
    return rg;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xd0, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
callq 0xcd150
movq %rax, -0x18(%rbp)
movq $0x0, -0x20(%rbp)
movq -0x20(%rbp), %rax
movq -0x8(%rbp), %rcx
movl 0x14(%rcx), %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
movl %ecx, %ecx
cmpq %rcx, %rax
jae 0x14cb9f
movq -0x18(%rbp), %rdi
movq -0x20(%rbp), %rax
movl %eax, %esi
movq -0x8(%rbp), %rax
movq 0x20(%rax), %rax
movq -0x20(%rbp), %rcx
movl (%rax,%rcx,8), %edx
andl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
movq -0x8(%rbp), %rax
movq 0x20(%rax), %rax
movq -0x20(%rbp), %rcx
movl (%rax,%rcx,8), %ecx
shrl $0x1f, %ecx
callq 0xcd8f0
movq -0x8(%rbp), %rax
movq 0x20(%rax), %rax
movq -0x20(%rbp), %rcx
movb 0x4(%rax,%rcx,8), %dl
movq -0x18(%rbp), %rax
movq 0x20(%rax), %rax
movq -0x20(%rbp), %rcx
movb %dl, 0x4(%rax,%rcx,8)
movq -0x20(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x20(%rbp)
jmp 0x14cb23
movq -0x18(%rbp), %rdi
callq 0xcdd10
movq -0x8(%rbp), %rax
movl 0x14(%rax), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
shll %eax
movl %eax, -0x30(%rbp)
movl $0x0, -0x34(%rbp)
movq $0x0, -0x28(%rbp)
movq -0x28(%rbp), %rax
movl -0xc(%rbp), %ecx
cmpq %rcx, %rax
jae 0x14cd62
movq -0x28(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
movq -0x8(%rbp), %rcx
movl 0x4(%rcx), %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
movl %ecx, %ecx
cmpq %rcx, %rax
jae 0x14cd4f
movl -0x34(%rbp), %eax
movl $0xc350, %ecx           # imm = 0xC350
xorl %edx, %edx
divl %ecx
cmpl $0x0, %edx
jne 0x14cc35
movq 0x2773cc(%rip), %rax    # 0x3c3fe0
movq (%rax), %rdi
movl -0x34(%rbp), %edx
movq -0x8(%rbp), %rax
movl 0x4(%rax), %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
leaq 0x23c86b(%rip), %rsi    # 0x389499
movb $0x0, %al
callq 0x22a0
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
imulq $0x18, -0x20(%rbp), %rcx
addq %rcx, %rax
movl 0xc(%rax), %eax
shrl $0x1f, %eax
cmpl $0x0, %eax
je 0x14cc5e
jmp 0x14cd3b
movq -0x18(%rbp), %rdi
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
imulq $0x18, -0x20(%rbp), %rcx
addq %rcx, %rax
movq (%rax), %rax
shrq $0x20, %rax
movl %eax, %esi
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
imulq $0x18, -0x20(%rbp), %rcx
addq %rcx, %rax
movq (%rax), %rax
movl %eax, %edx
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
imulq $0x18, -0x20(%rbp), %rcx
addq %rcx, %rax
movl 0xc(%rax), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
addl %eax, %edx
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
imulq $0x18, -0x20(%rbp), %rcx
addq %rcx, %rax
movl 0x8(%rax), %ecx
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
imulq $0x18, -0x20(%rbp), %r8
addq %r8, %rax
movl 0xc(%rax), %r8d
andl $0x7fffffff, %r8d       # imm = 0x7FFFFFFF
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
imulq $0x18, -0x20(%rbp), %r9
addq %r9, %rax
movw 0x10(%rax), %ax
shrw $0xe, %ax
andw $0x1, %ax
movb %al, %r9b
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
imulq $0x18, -0x20(%rbp), %r10
addq %r10, %rax
movb 0x12(%rax), %r10b
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
imulq $0x18, -0x20(%rbp), %r11
addq %r11, %rax
movw 0x10(%rax), %ax
shrw $0xf, %ax
movzbl %r9b, %r9d
movzbl %r10b, %r10d
movl %r10d, (%rsp)
movzbl %al, %eax
movl %eax, 0x8(%rsp)
callq 0x141be0
movq -0x20(%rbp), %rax
movslq -0xc(%rbp), %rcx
addq %rcx, %rax
movq %rax, -0x20(%rbp)
jmp 0x14cbe0
jmp 0x14cd51
movq -0x28(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x28(%rbp)
jmp 0x14cbc8
movl $0x0, -0x34(%rbp)
movl $0x0, -0x2c(%rbp)
movl -0x2c(%rbp), %eax
cmpl -0x30(%rbp), %eax
jae 0x14cf27
movq -0x8(%rbp), %rax
movq 0x20(%rax), %rax
movl -0x2c(%rbp), %ecx
shrl %ecx
movl %ecx, %ecx
movl (%rax,%rcx,8), %eax
shrl $0x1f, %eax
cmpl $0x0, %eax
je 0x14cd9b
jmp 0x14cf19
movq -0x8(%rbp), %rax
movq 0x28(%rax), %rax
movl -0x2c(%rbp), %ecx
movq (%rax,%rcx,8), %rax
movl %eax, -0x38(%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, -0x40(%rbp)
movq $0x0, -0x20(%rbp)
movq -0x20(%rbp), %rax
movl -0x38(%rbp), %ecx
cmpq %rcx, %rax
jae 0x14cf17
movl -0x34(%rbp), %eax
movl $0xc350, %ecx           # imm = 0xC350
xorl %edx, %edx
divl %ecx
cmpl $0x0, %edx
jne 0x14ce24
movq 0x2771dd(%rip), %rax    # 0x3c3fe0
movq (%rax), %rdi
movl -0x34(%rbp), %edx
movq -0x8(%rbp), %rax
movl 0x4(%rax), %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
leaq 0x23c67b(%rip), %rsi    # 0x389498
movb $0x0, %al
callq 0x22a0
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
movq -0x40(%rbp), %rax
imulq $0x18, -0x20(%rbp), %rcx
addq %rcx, %rax
movl 0xc(%rax), %eax
shrl $0x1f, %eax
cmpl $0x0, %eax
je 0x14ce49
jmp 0x14cf06
movq -0x18(%rbp), %rdi
movq -0x40(%rbp), %rax
imulq $0x18, -0x20(%rbp), %rcx
addq %rcx, %rax
movq (%rax), %rax
shrq $0x20, %rax
movl %eax, %esi
movq -0x40(%rbp), %rax
imulq $0x18, -0x20(%rbp), %rcx
addq %rcx, %rax
movq (%rax), %rax
movl %eax, %edx
movq -0x40(%rbp), %rax
imulq $0x18, -0x20(%rbp), %rcx
addq %rcx, %rax
movl 0xc(%rax), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
addl %eax, %edx
movq -0x40(%rbp), %rax
imulq $0x18, -0x20(%rbp), %rcx
addq %rcx, %rax
movl 0x8(%rax), %ecx
movq -0x40(%rbp), %rax
imulq $0x18, -0x20(%rbp), %r8
addq %r8, %rax
movl 0xc(%rax), %r8d
andl $0x7fffffff, %r8d       # imm = 0x7FFFFFFF
movq -0x40(%rbp), %rax
imulq $0x18, -0x20(%rbp), %r9
addq %r9, %rax
movw 0x10(%rax), %ax
shrw $0xe, %ax
andw $0x1, %ax
movb %al, %r9b
movq -0x40(%rbp), %rax
imulq $0x18, -0x20(%rbp), %r10
addq %r10, %rax
movb 0x12(%rax), %r10b
movq -0x40(%rbp), %rax
imulq $0x18, -0x20(%rbp), %r11
addq %r11, %rax
movw 0x10(%rax), %ax
shrw $0xf, %ax
movzbl %r9b, %r9d
movzbl %r10b, %r10d
movl %r10d, (%rsp)
movzbl %al, %eax
movl %eax, 0x8(%rsp)
callq 0x141be0
movq -0x20(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x20(%rbp)
jmp 0x14cddb
jmp 0x14cf19
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
jmp 0x14cd70
movl $0x0, -0x2c(%rbp)
movl -0x2c(%rbp), %eax
cmpl -0x30(%rbp), %eax
jae 0x14d3e5
movq -0x8(%rbp), %rax
movq 0x20(%rax), %rax
movl -0x2c(%rbp), %ecx
shrl %ecx
movl %ecx, %ecx
movl (%rax,%rcx,8), %eax
shrl $0x1f, %eax
movq -0x18(%rbp), %rcx
movq 0x20(%rcx), %rcx
movl -0x2c(%rbp), %edx
shrl %edx
movl %edx, %edx
movl (%rcx,%rdx,8), %ecx
shrl $0x1f, %ecx
cmpl %ecx, %eax
je 0x14cf80
movq 0x277071(%rip), %rax    # 0x3c3fe0
movq (%rax), %rdi
leaq 0x23a2e1(%rip), %rsi    # 0x38725a
movb $0x0, %al
callq 0x22a0
movq -0x8(%rbp), %rax
movq 0x28(%rax), %rax
movl -0x2c(%rbp), %ecx
movq (%rax,%rcx,8), %rax
movl %eax, -0x44(%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, -0x50(%rbp)
movq -0x8(%rbp), %rdi
movl -0x2c(%rbp), %esi
xorl %eax, %eax
movl %eax, %edx
callq 0x166b50
movl %eax, -0xb4(%rbp)
movq -0x18(%rbp), %rdi
movl -0x2c(%rbp), %esi
xorl %eax, %eax
movl %eax, %edx
callq 0x166b50
movl %eax, %ecx
movl -0xb4(%rbp), %eax
cmpl %ecx, %eax
je 0x14d002
movq 0x276fef(%rip), %rax    # 0x3c3fe0
movq (%rax), %rdi
leaq 0x23a267(%rip), %rsi    # 0x387262
movb $0x0, %al
callq 0x22a0
movq $0x0, -0x20(%rbp)
movq -0x20(%rbp), %rax
movl -0x44(%rbp), %ecx
cmpq %rcx, %rax
jae 0x14d20e
movq -0x50(%rbp), %rax
imulq $0x18, -0x20(%rbp), %rcx
addq %rcx, %rax
movl 0xc(%rax), %eax
shrl $0x1f, %eax
cmpl $0x0, %eax
je 0x14d036
jmp 0x14d1fd
movq -0x50(%rbp), %rax
imulq $0x18, -0x20(%rbp), %rcx
addq %rcx, %rax
movq (%rax), %rcx
movq %rcx, -0x68(%rbp)
movq 0x8(%rax), %rcx
movq %rcx, -0x60(%rbp)
movq 0x10(%rax), %rax
movq %rax, -0x58(%rbp)
leaq -0x80(%rbp), %rdi
xorl %esi, %esi
movl $0x18, %edx
callq 0x2100
movq -0x18(%rbp), %rdi
movq -0x68(%rbp), %rax
shrq $0x20, %rax
movl %eax, %esi
movl -0x60(%rbp), %edx
leaq -0x80(%rbp), %rcx
callq 0x141560
cmpl $0x1, %eax
je 0x14d0a0
movq 0x276f51(%rip), %rax    # 0x3c3fe0
movq (%rax), %rdi
leaq 0x23a388(%rip), %rsi    # 0x387421
movb $0x0, %al
callq 0x22a0
movl -0x5c(%rbp), %eax
shrl $0x1f, %eax
movl -0x74(%rbp), %ecx
shrl $0x1f, %ecx
cmpl %ecx, %eax
jne 0x14d123
movzbl -0x56(%rbp), %eax
movzbl -0x6e(%rbp), %ecx
cmpl %ecx, %eax
jne 0x14d123
movw -0x58(%rbp), %ax
shrw $0xf, %ax
movzwl %ax, %eax
movw -0x70(%rbp), %cx
shrw $0xf, %cx
movzwl %cx, %ecx
cmpl %ecx, %eax
jne 0x14d123
movl -0x5c(%rbp), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movl -0x74(%rbp), %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
cmpl %ecx, %eax
jne 0x14d123
movw -0x58(%rbp), %ax
shrw $0xe, %ax
andw $0x1, %ax
movzwl %ax, %eax
movw -0x70(%rbp), %cx
shrw $0xe, %cx
andw $0x1, %cx
movzwl %cx, %ecx
cmpl %ecx, %eax
jne 0x14d123
movq -0x68(%rbp), %rax
cmpq -0x80(%rbp), %rax
jne 0x14d123
movl -0x60(%rbp), %eax
cmpl -0x78(%rbp), %eax
je 0x14d1fb
movq 0x276eb6(%rip), %rax    # 0x3c3fe0
movq (%rax), %rdi
leaq 0x23a2f5(%rip), %rsi    # 0x387429
movb $0x0, %al
callq 0x22a0
movq 0x276e9e(%rip), %rax    # 0x3c3fe0
movq (%rax), %rdi
movl -0x5c(%rbp), %edx
shrl $0x1f, %edx
movzbl -0x56(%rbp), %ecx
movw -0x58(%rbp), %ax
shrw $0xf, %ax
movzwl %ax, %r8d
movl -0x5c(%rbp), %r9d
andl $0x7fffffff, %r9d       # imm = 0x7FFFFFFF
movw -0x58(%rbp), %ax
shrw $0xe, %ax
andw $0x1, %ax
movzwl %ax, %r11d
movq -0x68(%rbp), %rax
movl %eax, %r10d
movl -0x60(%rbp), %eax
leaq 0x23c329(%rip), %rsi    # 0x3894b0
movl %r11d, (%rsp)
movl %r10d, 0x8(%rsp)
movl %eax, 0x10(%rsp)
movb $0x0, %al
callq 0x22a0
movq 0x276e3e(%rip), %rax    # 0x3c3fe0
movq (%rax), %rdi
movl -0x74(%rbp), %edx
shrl $0x1f, %edx
movzbl -0x6e(%rbp), %ecx
movw -0x70(%rbp), %ax
shrw $0xf, %ax
movzwl %ax, %r8d
movl -0x74(%rbp), %r9d
andl $0x7fffffff, %r9d       # imm = 0x7FFFFFFF
movw -0x70(%rbp), %ax
shrw $0xe, %ax
andw $0x1, %ax
movzwl %ax, %r11d
movq -0x80(%rbp), %rax
movl %eax, %r10d
movl -0x78(%rbp), %eax
leaq 0x23c316(%rip), %rsi    # 0x3894fd
movl %r11d, (%rsp)
movl %r10d, 0x8(%rsp)
movl %eax, 0x10(%rsp)
movb $0x0, %al
callq 0x22a0
jmp 0x14d1fd
movq -0x20(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x20(%rbp)
jmp 0x14d00a
movq -0x18(%rbp), %rax
movq 0x28(%rax), %rax
movl -0x2c(%rbp), %ecx
movq (%rax,%rcx,8), %rax
movl %eax, -0x44(%rbp)
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x18(%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, -0x50(%rbp)
movq $0x0, -0x20(%rbp)
movq -0x20(%rbp), %rax
movl -0x44(%rbp), %ecx
cmpq %rcx, %rax
jae 0x14d3d5
movq -0x50(%rbp), %rax
imulq $0x18, -0x20(%rbp), %rcx
addq %rcx, %rax
movl 0xc(%rax), %eax
shrl $0x1f, %eax
cmpl $0x0, %eax
je 0x14d27a
jmp 0x14d3c4
movq -0x50(%rbp), %rax
imulq $0x18, -0x20(%rbp), %rcx
addq %rcx, %rax
movq (%rax), %rcx
movq %rcx, -0x98(%rbp)
movq 0x8(%rax), %rcx
movq %rcx, -0x90(%rbp)
movq 0x10(%rax), %rax
movq %rax, -0x88(%rbp)
leaq -0xb0(%rbp), %rdi
xorl %esi, %esi
movl $0x18, %edx
callq 0x2100
movq -0x8(%rbp), %rdi
movq -0x98(%rbp), %rax
shrq $0x20, %rax
movl %eax, %esi
movl -0x90(%rbp), %edx
leaq -0xb0(%rbp), %rcx
callq 0x141560
cmpl $0x1, %eax
je 0x14d2f9
movq 0x276cf8(%rip), %rax    # 0x3c3fe0
movq (%rax), %rdi
leaq 0x23a13f(%rip), %rsi    # 0x387431
movb $0x0, %al
callq 0x22a0
movl -0x8c(%rbp), %eax
shrl $0x1f, %eax
movl -0xa4(%rbp), %ecx
shrl $0x1f, %ecx
cmpl %ecx, %eax
jne 0x14d3aa
movzbl -0x86(%rbp), %eax
movzbl -0x9e(%rbp), %ecx
cmpl %ecx, %eax
jne 0x14d3aa
movw -0x88(%rbp), %ax
shrw $0xf, %ax
movzwl %ax, %eax
movw -0xa0(%rbp), %cx
shrw $0xf, %cx
movzwl %cx, %ecx
cmpl %ecx, %eax
jne 0x14d3aa
movl -0x8c(%rbp), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movl -0xa4(%rbp), %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
cmpl %ecx, %eax
jne 0x14d3aa
movw -0x88(%rbp), %ax
shrw $0xe, %ax
andw $0x1, %ax
movzwl %ax, %eax
movw -0xa0(%rbp), %cx
shrw $0xe, %cx
andw $0x1, %cx
movzwl %cx, %ecx
cmpl %ecx, %eax
jne 0x14d3aa
movq -0x98(%rbp), %rax
cmpq -0xb0(%rbp), %rax
jne 0x14d3aa
movl -0x90(%rbp), %eax
cmpl -0xa8(%rbp), %eax
je 0x14d3c2
movq 0x276c2f(%rip), %rax    # 0x3c3fe0
movq (%rax), %rdi
leaq 0x23a088(%rip), %rsi    # 0x387443
movb $0x0, %al
callq 0x22a0
jmp 0x14d3c4
movq -0x20(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x20(%rbp)
jmp 0x14d24e
jmp 0x14d3d7
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
jmp 0x14cf2e
movq -0x8(%rbp), %rax
cmpq $0x0, 0x30(%rax)
je 0x14d43f
movq -0x8(%rbp), %rax
movl 0x14(%rax), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
shll %eax
movslq %eax, %rdi
shlq $0x0, %rdi
callq 0x2270
movq %rax, %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x30(%rax)
movq -0x18(%rbp), %rax
movq 0x30(%rax), %rdi
movq -0x8(%rbp), %rax
movq 0x30(%rax), %rsi
movq -0x8(%rbp), %rax
movl 0x14(%rax), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
shll %eax
movslq %eax, %rdx
shlq $0x0, %rdx
callq 0x2180
movq 0x276b9a(%rip), %rax    # 0x3c3fe0
movq (%rax), %rdi
leaq 0x23c0fb(%rip), %rsi    # 0x38954b
movb $0x0, %al
callq 0x22a0
movq -0x18(%rbp), %rax
addq $0xd0, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)