// File: chhylp123[P]hifiasm/gfa_ut.cpp
// Function: update_dual_junction(usg_t*, unsigned int, unsigned int, unsigned int, unsigned int, asg64_v*)
void update_dual_junction(usg_t *g, uint32_t v, uint32_t v_id, uint32_t w, uint32_t w_id, asg64_v *buf)
{
    usg_arc_t *av, *aw, *z; uint32_t k, nv, nw, kv, kw, nid, pnid; usg_seq_t *s; 
    av = usg_arc_a(g, v); nv = usg_arc_n(g, v);
    for (k = kv = 0; k < nv; k++) {
        if(av[k].del) continue;
        kv++;
    }

    aw = usg_arc_a(g, w); nw = usg_arc_n(g, w);
    for (k = kw = 0; k < nw; k++) {
        if(aw[k].del) continue;
        kw++;
    }
    assert(kv && kw); 
    assert((!av[v_id].del) && (!aw[w_id].del));
    assert(av[v_id].ou && aw[w_id].ou);
    if(kv == 1 && kw == 1) return;///no need to 
    
    buf->n = 0; pnid = g->n;
    get_usg_unitig(g, v^1, NULL, NULL, NULL, NULL, buf); 
    // if(!(buf->n > 0 && buf->a[buf->n-1] == w)) {
    //     fprintf(stderr, "[M::%s::] buf->n::%u, v>>1::%u, v&1::%u, kv::%u, w>>1::%u, w&1::%u, kw::%u\n", __func__, 
    //             (uint32_t)buf->n, v>>1, v&1, kv, w>>1, w&1, kw);
    // }
    assert(buf->n > 0 && buf->a[buf->n-1] == w);

    for (k = 0; k < buf->n; k++) {
        nid = buf->a[k]>>1; 
        kv_push(uint32_t, g->mp.a[g->a[nid].mm], g->n); s = push_usg_t_node(g, g->n); 
        s->mm = g->a[nid].mm; s->occ = g->a[nid].occ; s->len = g->a[nid].len; s->telo = g->a[nid].telo; s->del = 0;
        s->arc[0].n = s->arc[1].n = 0; s->arc_mm[0].n = s->arc_mm[1].n = 0;
    }
    
    for (k = 0; k + 1 < buf->n; k++) {
        remap_gen_arcs(g, buf->a[k], buf->a[k+1], (((pnid+k)<<1)|(buf->a[k]&1)), (((pnid+k+1)<<1)|(buf->a[k+1]&1)));
        remap_gen_arcs(g, buf->a[k+1]^1, buf->a[k]^1, (((pnid+k+1)<<1)|(buf->a[k+1]&1))^1, (((pnid+k)<<1)|(buf->a[k]&1))^1);
    }

    //av might be changed
    av = usg_arc_a(g, v); 
    remap_gen_arcs(g, av[v_id].ul>>32, av[v_id].v, (pnid<<1)|((av[v_id].ul>>32)&1), av[v_id].v);
    av = usg_arc_a(g, v); 
    remap_gen_arcs(g, av[v_id].v^1, (av[v_id].ul>>32)^1, av[v_id].v^1, ((pnid<<1)|((av[v_id].ul>>32)&1))^1);

    pnid = pnid + buf->n - 1;
    //aw might be changed
    aw = usg_arc_a(g, w); 
    remap_gen_arcs(g, aw[w_id].ul>>32, aw[w_id].v, (pnid<<1)|((aw[w_id].ul>>32)&1), aw[w_id].v);
    aw = usg_arc_a(g, w);
    remap_gen_arcs(g, aw[w_id].v^1, (aw[w_id].ul>>32)^1, aw[w_id].v^1, ((pnid<<1)|((aw[w_id].ul>>32)&1))^1);

    ///drop edges from the current node
    av[v_id].del = 1; z = get_usg_arc(g, av[v_id].v^1, (av[v_id].ul>>32)^1); z->del = 1;
    aw[w_id].del = 1; z = get_usg_arc(g, aw[w_id].v^1, (aw[w_id].ul>>32)^1); z->del = 1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl %edx, -0x10(%rbp)
movl %ecx, -0x14(%rbp)
movl %r8d, -0x18(%rbp)
movq %r9, -0x20(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rax
movl -0xc(%rbp), %ecx
shrl %ecx
movl %ecx, %ecx
imulq $0x78, %rcx, %rcx
addq %rcx, %rax
addq $0x10, %rax
movl -0xc(%rbp), %ecx
andl $0x1, %ecx
movl %ecx, %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq 0x10(%rax), %rax
movq %rax, -0x28(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rax
movl -0xc(%rbp), %ecx
shrl %ecx
movl %ecx, %ecx
imulq $0x78, %rcx, %rcx
addq %rcx, %rax
addq $0x10, %rax
movl -0xc(%rbp), %ecx
andl $0x1, %ecx
movl %ecx, %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rax
movl %eax, -0x40(%rbp)
movl $0x0, -0x48(%rbp)
movl $0x0, -0x3c(%rbp)
movl -0x3c(%rbp), %eax
cmpl -0x40(%rbp), %eax
jae 0x353743
movq -0x28(%rbp), %rax
movl -0x3c(%rbp), %ecx
shlq $0x5, %rcx
addq %rcx, %rax
movl 0xc(%rax), %eax
shrl $0x1f, %eax
cmpl $0x0, %eax
je 0x35372f
jmp 0x353738
movl -0x48(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x48(%rbp)
movl -0x3c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x3c(%rbp)
jmp 0x35370c
movq -0x8(%rbp), %rax
movq (%rax), %rax
movl -0x14(%rbp), %ecx
shrl %ecx
movl %ecx, %ecx
imulq $0x78, %rcx, %rcx
addq %rcx, %rax
addq $0x10, %rax
movl -0x14(%rbp), %ecx
andl $0x1, %ecx
movl %ecx, %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq 0x10(%rax), %rax
movq %rax, -0x30(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rax
movl -0x14(%rbp), %ecx
shrl %ecx
movl %ecx, %ecx
imulq $0x78, %rcx, %rcx
addq %rcx, %rax
addq $0x10, %rax
movl -0x14(%rbp), %ecx
andl $0x1, %ecx
movl %ecx, %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rax
movl %eax, -0x44(%rbp)
movl $0x0, -0x4c(%rbp)
movl $0x0, -0x3c(%rbp)
movl -0x3c(%rbp), %eax
cmpl -0x44(%rbp), %eax
jae 0x3537e6
movq -0x30(%rbp), %rax
movl -0x3c(%rbp), %ecx
shlq $0x5, %rcx
addq %rcx, %rax
movl 0xc(%rax), %eax
shrl $0x1f, %eax
cmpl $0x0, %eax
je 0x3537d2
jmp 0x3537db
movl -0x4c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4c(%rbp)
movl -0x3c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x3c(%rbp)
jmp 0x3537af
xorl %eax, %eax
cmpl $0x0, -0x48(%rbp)
movb %al, -0x61(%rbp)
je 0x3537fb
cmpl $0x0, -0x4c(%rbp)
setne %al
movb %al, -0x61(%rbp)
movb -0x61(%rbp), %al
testb $0x1, %al
jne 0x353804
jmp 0x353806
jmp 0x353825
leaq 0x45b06(%rip), %rdi     # 0x399313
leaq 0x429a5(%rip), %rsi     # 0x3961b9
movl $0x2d93, %edx           # imm = 0x2D93
leaq 0x45afc(%rip), %rcx     # 0x39931c
callq 0x2130
movq -0x28(%rbp), %rax
movl -0x10(%rbp), %ecx
shlq $0x5, %rcx
addq %rcx, %rax
movl 0xc(%rax), %ecx
shrl $0x1f, %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0x62(%rbp)
jne 0x353862
movq -0x30(%rbp), %rax
movl -0x18(%rbp), %ecx
shlq $0x5, %rcx
addq %rcx, %rax
movl 0xc(%rax), %eax
shrl $0x1f, %eax
cmpl $0x0, %eax
setne %al
xorb $-0x1, %al
movb %al, -0x62(%rbp)
movb -0x62(%rbp), %al
testb $0x1, %al
jne 0x35386b
jmp 0x35386d
jmp 0x35388c
leaq 0x45afe(%rip), %rdi     # 0x399372
leaq 0x4293e(%rip), %rsi     # 0x3961b9
movl $0x2d94, %edx           # imm = 0x2D94
leaq 0x45a95(%rip), %rcx     # 0x39931c
callq 0x2130
movq -0x28(%rbp), %rcx
movl -0x10(%rbp), %eax
shlq $0x5, %rax
addq %rax, %rcx
xorl %eax, %eax
cmpl $0x0, 0x10(%rcx)
movb %al, -0x63(%rbp)
je 0x3538bd
movq -0x30(%rbp), %rax
movl -0x18(%rbp), %ecx
shlq $0x5, %rcx
addq %rcx, %rax
cmpl $0x0, 0x10(%rax)
setne %al
movb %al, -0x63(%rbp)
movb -0x63(%rbp), %al
testb $0x1, %al
jne 0x3538c6
jmp 0x3538c8
jmp 0x3538e7
leaq 0x45ac6(%rip), %rdi     # 0x399395
leaq 0x428e3(%rip), %rsi     # 0x3961b9
movl $0x2d95, %edx           # imm = 0x2D95
leaq 0x45a3a(%rip), %rcx     # 0x39931c
callq 0x2130
cmpl $0x1, -0x48(%rbp)
jne 0x3538f8
cmpl $0x1, -0x4c(%rbp)
jne 0x3538f8
jmp 0x3540f1
movq -0x20(%rbp), %rax
movq $0x0, (%rax)
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movl %eax, -0x54(%rbp)
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
xorl $0x1, %esi
movq -0x20(%rbp), %rax
xorl %ecx, %ecx
movl %ecx, %r9d
movq %r9, %rdx
movq %r9, %rcx
movq %r9, %r8
movq %rax, (%rsp)
callq 0x37d4d0
movq -0x20(%rbp), %rcx
xorl %eax, %eax
cmpq $0x0, (%rcx)
movb %al, -0x64(%rbp)
jbe 0x353965
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x20(%rbp), %rcx
movq (%rcx), %rcx
subq $0x1, %rcx
movq (%rax,%rcx,8), %rax
movl -0x14(%rbp), %ecx
cmpq %rcx, %rax
sete %al
movb %al, -0x64(%rbp)
movb -0x64(%rbp), %al
testb $0x1, %al
jne 0x35396e
jmp 0x353970
jmp 0x35398f
leaq 0x45a39(%rip), %rdi     # 0x3993b0
leaq 0x4283b(%rip), %rsi     # 0x3961b9
movl $0x2d9e, %edx           # imm = 0x2D9E
leaq 0x45992(%rip), %rcx     # 0x39931c
callq 0x2130
movl $0x0, -0x3c(%rbp)
movl -0x3c(%rbp), %eax
movq -0x20(%rbp), %rcx
cmpq (%rcx), %rax
jae 0x353c3e
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rax
movl -0x3c(%rbp), %ecx
movq (%rax,%rcx,8), %rax
shrq %rax
movl %eax, -0x50(%rbp)
movq -0x8(%rbp), %rax
movq 0x28(%rax), %rax
movq -0x8(%rbp), %rcx
movq (%rcx), %rcx
movl -0x50(%rbp), %edx
imulq $0x78, %rdx, %rdx
addq %rdx, %rcx
movl (%rcx), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq 0x8(%rax), %rax
movq -0x8(%rbp), %rcx
movq 0x28(%rcx), %rcx
movq -0x8(%rbp), %rdx
movq (%rdx), %rdx
movl -0x50(%rbp), %esi
imulq $0x78, %rsi, %rsi
addq %rsi, %rdx
movl (%rdx), %edx
imulq $0x18, %rdx, %rdx
addq %rdx, %rcx
cmpq 0x10(%rcx), %rax
jne 0x353b16
movq -0x8(%rbp), %rax
movq 0x28(%rax), %rax
movq -0x8(%rbp), %rcx
movq (%rcx), %rcx
movl -0x50(%rbp), %edx
imulq $0x78, %rdx, %rdx
addq %rdx, %rcx
movl (%rcx), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
cmpq $0x0, 0x10(%rax)
je 0x353a65
movq -0x8(%rbp), %rax
movq 0x28(%rax), %rax
movq -0x8(%rbp), %rcx
movq (%rcx), %rcx
movl -0x50(%rbp), %edx
imulq $0x78, %rdx, %rdx
addq %rdx, %rcx
movl (%rcx), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq 0x10(%rax), %rax
shlq %rax
movq %rax, -0x70(%rbp)
jmp 0x353a70
movl $0x2, %eax
movq %rax, -0x70(%rbp)
jmp 0x353a70
movq -0x70(%rbp), %rcx
movq -0x8(%rbp), %rax
movq 0x28(%rax), %rax
movq -0x8(%rbp), %rdx
movq (%rdx), %rdx
movl -0x50(%rbp), %esi
imulq $0x78, %rsi, %rsi
addq %rsi, %rdx
movl (%rdx), %edx
imulq $0x18, %rdx, %rdx
addq %rdx, %rax
movq %rcx, 0x10(%rax)
movq -0x8(%rbp), %rax
movq 0x28(%rax), %rax
movq -0x8(%rbp), %rcx
movq (%rcx), %rcx
movl -0x50(%rbp), %edx
imulq $0x78, %rdx, %rdx
addq %rdx, %rcx
movl (%rcx), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rdi
movq -0x8(%rbp), %rax
movq 0x28(%rax), %rax
movq -0x8(%rbp), %rcx
movq (%rcx), %rcx
movl -0x50(%rbp), %edx
imulq $0x78, %rdx, %rdx
addq %rdx, %rcx
movl (%rcx), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq 0x10(%rax), %rsi
shlq $0x2, %rsi
callq 0x2360
movq %rax, %rcx
movq -0x8(%rbp), %rax
movq 0x28(%rax), %rax
movq -0x8(%rbp), %rdx
movq (%rdx), %rdx
movl -0x50(%rbp), %esi
imulq $0x78, %rsi, %rsi
addq %rsi, %rdx
movl (%rdx), %edx
imulq $0x18, %rdx, %rdx
addq %rdx, %rax
movq %rcx, (%rax)
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movl %eax, %edx
movq -0x8(%rbp), %rax
movq 0x28(%rax), %rax
movq -0x8(%rbp), %rcx
movq (%rcx), %rcx
movl -0x50(%rbp), %esi
imulq $0x78, %rsi, %rsi
addq %rsi, %rcx
movl (%rcx), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rax
movq -0x8(%rbp), %rcx
movq 0x28(%rcx), %rsi
movq -0x8(%rbp), %rcx
movq (%rcx), %rcx
movl -0x50(%rbp), %edi
imulq $0x78, %rdi, %rdi
addq %rdi, %rcx
movl (%rcx), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rsi
movq 0x8(%rsi), %rcx
movq %rcx, %rdi
addq $0x1, %rdi
movq %rdi, 0x8(%rsi)
movl %edx, (%rax,%rcx,4)
movq -0x8(%rbp), %rdi
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rsi
callq 0x34d480
movq %rax, -0x60(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rax
movl -0x50(%rbp), %ecx
imulq $0x78, %rcx, %rcx
addq %rcx, %rax
movl (%rax), %ecx
movq -0x60(%rbp), %rax
movl %ecx, (%rax)
movq -0x8(%rbp), %rax
movq (%rax), %rax
movl -0x50(%rbp), %ecx
imulq $0x78, %rcx, %rcx
addq %rcx, %rax
movl 0x4(%rax), %ecx
movq -0x60(%rbp), %rax
movl %ecx, 0x4(%rax)
movq -0x8(%rbp), %rax
movq (%rax), %rax
movl -0x50(%rbp), %ecx
imulq $0x78, %rcx, %rcx
addq %rcx, %rax
movl 0x8(%rax), %ecx
movq -0x60(%rbp), %rax
movl %ecx, 0x8(%rax)
movq -0x8(%rbp), %rax
movq (%rax), %rax
movl -0x50(%rbp), %ecx
imulq $0x78, %rcx, %rcx
addq %rcx, %rax
movb 0x71(%rax), %cl
movq -0x60(%rbp), %rax
movb %cl, 0x71(%rax)
movq -0x60(%rbp), %rax
movb $0x0, 0x70(%rax)
movq -0x60(%rbp), %rax
movq $0x0, 0x28(%rax)
movq -0x60(%rbp), %rax
movq $0x0, 0x10(%rax)
movq -0x60(%rbp), %rax
movq $0x0, 0x58(%rax)
movq -0x60(%rbp), %rax
movq $0x0, 0x40(%rax)
movl -0x3c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x3c(%rbp)
jmp 0x353996
movl $0x0, -0x3c(%rbp)
movl -0x3c(%rbp), %eax
addl $0x1, %eax
movl %eax, %eax
movq -0x20(%rbp), %rcx
cmpq (%rcx), %rax
jae 0x353d7a
movq -0x8(%rbp), %rdi
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rax
movl -0x3c(%rbp), %ecx
movq (%rax,%rcx,8), %rax
movl %eax, %esi
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rax
movl -0x3c(%rbp), %ecx
addl $0x1, %ecx
movl %ecx, %ecx
movq (%rax,%rcx,8), %rax
movl %eax, %edx
movl -0x54(%rbp), %eax
addl -0x3c(%rbp), %eax
shll %eax
movl %eax, %eax
movq -0x20(%rbp), %rcx
movq 0x10(%rcx), %rcx
movl -0x3c(%rbp), %r8d
movq (%rcx,%r8,8), %rcx
andq $0x1, %rcx
orq %rcx, %rax
movl %eax, %ecx
movl -0x54(%rbp), %eax
addl -0x3c(%rbp), %eax
addl $0x1, %eax
shll %eax
movl %eax, %eax
movq -0x20(%rbp), %r8
movq 0x10(%r8), %r8
movl -0x3c(%rbp), %r9d
addl $0x1, %r9d
movl %r9d, %r9d
movq (%r8,%r9,8), %r8
andq $0x1, %r8
orq %r8, %rax
movl %eax, %r8d
callq 0x3531e0
movq -0x8(%rbp), %rdi
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rax
movl -0x3c(%rbp), %ecx
addl $0x1, %ecx
movl %ecx, %ecx
movq (%rax,%rcx,8), %rax
xorq $0x1, %rax
movl %eax, %esi
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rax
movl -0x3c(%rbp), %ecx
movq (%rax,%rcx,8), %rax
xorq $0x1, %rax
movl %eax, %edx
movl -0x54(%rbp), %eax
addl -0x3c(%rbp), %eax
addl $0x1, %eax
shll %eax
movl %eax, %eax
movq -0x20(%rbp), %rcx
movq 0x10(%rcx), %rcx
movl -0x3c(%rbp), %r8d
addl $0x1, %r8d
movl %r8d, %r8d
movq (%rcx,%r8,8), %rcx
andq $0x1, %rcx
orq %rcx, %rax
xorq $0x1, %rax
movl %eax, %ecx
movl -0x54(%rbp), %eax
addl -0x3c(%rbp), %eax
shll %eax
movl %eax, %eax
movq -0x20(%rbp), %r8
movq 0x10(%r8), %r8
movl -0x3c(%rbp), %r9d
movq (%r8,%r9,8), %r8
andq $0x1, %r8
orq %r8, %rax
xorq $0x1, %rax
movl %eax, %r8d
callq 0x3531e0
movl -0x3c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x3c(%rbp)
jmp 0x353c45
movq -0x8(%rbp), %rax
movq (%rax), %rax
movl -0xc(%rbp), %ecx
shrl %ecx
movl %ecx, %ecx
imulq $0x78, %rcx, %rcx
addq %rcx, %rax
addq $0x10, %rax
movl -0xc(%rbp), %ecx
andl $0x1, %ecx
movl %ecx, %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq 0x10(%rax), %rax
movq %rax, -0x28(%rbp)
movq -0x8(%rbp), %rdi
movq -0x28(%rbp), %rax
movl -0x10(%rbp), %ecx
shlq $0x5, %rcx
addq %rcx, %rax
movq (%rax), %rax
shrq $0x20, %rax
movl %eax, %esi
movq -0x28(%rbp), %rax
movl -0x10(%rbp), %ecx
shlq $0x5, %rcx
addq %rcx, %rax
movl 0x8(%rax), %edx
movl -0x54(%rbp), %eax
shll %eax
movl %eax, %eax
movq -0x28(%rbp), %rcx
movl -0x10(%rbp), %r8d
shlq $0x5, %r8
addq %r8, %rcx
movq (%rcx), %rcx
shrq $0x20, %rcx
andq $0x1, %rcx
orq %rcx, %rax
movl %eax, %ecx
movq -0x28(%rbp), %rax
movl -0x10(%rbp), %r8d
shlq $0x5, %r8
addq %r8, %rax
movl 0x8(%rax), %r8d
callq 0x3531e0
movq -0x8(%rbp), %rax
movq (%rax), %rax
movl -0xc(%rbp), %ecx
shrl %ecx
movl %ecx, %ecx
imulq $0x78, %rcx, %rcx
addq %rcx, %rax
addq $0x10, %rax
movl -0xc(%rbp), %ecx
andl $0x1, %ecx
movl %ecx, %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq 0x10(%rax), %rax
movq %rax, -0x28(%rbp)
movq -0x8(%rbp), %rdi
movq -0x28(%rbp), %rax
movl -0x10(%rbp), %ecx
shlq $0x5, %rcx
addq %rcx, %rax
movl 0x8(%rax), %esi
xorl $0x1, %esi
movq -0x28(%rbp), %rax
movl -0x10(%rbp), %ecx
shlq $0x5, %rcx
addq %rcx, %rax
movq (%rax), %rax
shrq $0x20, %rax
xorq $0x1, %rax
movl %eax, %edx
movq -0x28(%rbp), %rax
movl -0x10(%rbp), %ecx
shlq $0x5, %rcx
addq %rcx, %rax
movl 0x8(%rax), %ecx
xorl $0x1, %ecx
movl -0x54(%rbp), %eax
shll %eax
movl %eax, %eax
movq -0x28(%rbp), %r8
movl -0x10(%rbp), %r9d
shlq $0x5, %r9
addq %r9, %r8
movq (%r8), %r8
shrq $0x20, %r8
andq $0x1, %r8
orq %r8, %rax
xorq $0x1, %rax
movl %eax, %r8d
callq 0x3531e0
movl -0x54(%rbp), %eax
movq -0x20(%rbp), %rcx
addq (%rcx), %rax
subq $0x1, %rax
movl %eax, -0x54(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rax
movl -0x14(%rbp), %ecx
shrl %ecx
movl %ecx, %ecx
imulq $0x78, %rcx, %rcx
addq %rcx, %rax
addq $0x10, %rax
movl -0x14(%rbp), %ecx
andl $0x1, %ecx
movl %ecx, %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq 0x10(%rax), %rax
movq %rax, -0x30(%rbp)
movq -0x8(%rbp), %rdi
movq -0x30(%rbp), %rax
movl -0x18(%rbp), %ecx
shlq $0x5, %rcx
addq %rcx, %rax
movq (%rax), %rax
shrq $0x20, %rax
movl %eax, %esi
movq -0x30(%rbp), %rax
movl -0x18(%rbp), %ecx
shlq $0x5, %rcx
addq %rcx, %rax
movl 0x8(%rax), %edx
movl -0x54(%rbp), %eax
shll %eax
movl %eax, %eax
movq -0x30(%rbp), %rcx
movl -0x18(%rbp), %r8d
shlq $0x5, %r8
addq %r8, %rcx
movq (%rcx), %rcx
shrq $0x20, %rcx
andq $0x1, %rcx
orq %rcx, %rax
movl %eax, %ecx
movq -0x30(%rbp), %rax
movl -0x18(%rbp), %r8d
shlq $0x5, %r8
addq %r8, %rax
movl 0x8(%rax), %r8d
callq 0x3531e0
movq -0x8(%rbp), %rax
movq (%rax), %rax
movl -0x14(%rbp), %ecx
shrl %ecx
movl %ecx, %ecx
imulq $0x78, %rcx, %rcx
addq %rcx, %rax
addq $0x10, %rax
movl -0x14(%rbp), %ecx
andl $0x1, %ecx
movl %ecx, %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq 0x10(%rax), %rax
movq %rax, -0x30(%rbp)
movq -0x8(%rbp), %rdi
movq -0x30(%rbp), %rax
movl -0x18(%rbp), %ecx
shlq $0x5, %rcx
addq %rcx, %rax
movl 0x8(%rax), %esi
xorl $0x1, %esi
movq -0x30(%rbp), %rax
movl -0x18(%rbp), %ecx
shlq $0x5, %rcx
addq %rcx, %rax
movq (%rax), %rax
shrq $0x20, %rax
xorq $0x1, %rax
movl %eax, %edx
movq -0x30(%rbp), %rax
movl -0x18(%rbp), %ecx
shlq $0x5, %rcx
addq %rcx, %rax
movl 0x8(%rax), %ecx
xorl $0x1, %ecx
movl -0x54(%rbp), %eax
shll %eax
movl %eax, %eax
movq -0x30(%rbp), %r8
movl -0x18(%rbp), %r9d
shlq $0x5, %r9
addq %r9, %r8
movq (%r8), %r8
shrq $0x20, %r8
andq $0x1, %r8
orq %r8, %rax
xorq $0x1, %rax
movl %eax, %r8d
callq 0x3531e0
movq -0x28(%rbp), %rax
movl -0x10(%rbp), %ecx
shlq $0x5, %rcx
addq %rcx, %rax
movl 0xc(%rax), %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
orl $0x80000000, %ecx       # imm = 0x80000000
movl %ecx, 0xc(%rax)
movq -0x8(%rbp), %rdi
movq -0x28(%rbp), %rax
movl -0x10(%rbp), %ecx
shlq $0x5, %rcx
addq %rcx, %rax
movl 0x8(%rax), %esi
xorl $0x1, %esi
movq -0x28(%rbp), %rax
movl -0x10(%rbp), %ecx
shlq $0x5, %rcx
addq %rcx, %rax
movq (%rax), %rax
shrq $0x20, %rax
xorq $0x1, %rax
movl %eax, %edx
callq 0x37d400
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
movl 0xc(%rax), %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
orl $0x80000000, %ecx       # imm = 0x80000000
movl %ecx, 0xc(%rax)
movq -0x30(%rbp), %rax
movl -0x18(%rbp), %ecx
shlq $0x5, %rcx
addq %rcx, %rax
movl 0xc(%rax), %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
orl $0x80000000, %ecx       # imm = 0x80000000
movl %ecx, 0xc(%rax)
movq -0x8(%rbp), %rdi
movq -0x30(%rbp), %rax
movl -0x18(%rbp), %ecx
shlq $0x5, %rcx
addq %rcx, %rax
movl 0x8(%rax), %esi
xorl $0x1, %esi
movq -0x30(%rbp), %rax
movl -0x18(%rbp), %ecx
shlq $0x5, %rcx
addq %rcx, %rax
movq (%rax), %rax
shrq $0x20, %rax
xorq $0x1, %rax
movl %eax, %edx
callq 0x37d400
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
movl 0xc(%rax), %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
orl $0x80000000, %ecx       # imm = 0x80000000
movl %ecx, 0xc(%rax)
addq $0x80, %rsp
popq %rbp
retq
nopw (%rax,%rax)