// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/Overlaps.cpp
// Function: renew_phase_bubble(rd_hamming_fly_simp_t*, unsigned long, buf_t*, ma_ug_t*, unsigned long, unsigned int, unsigned int, hap_cov_t*, utg_trans_t*, unsigned int)
uint64_t renew_phase_bubble(rd_hamming_fly_simp_t *pf, uint64_t v0, buf_t *b, ma_ug_t *ug, uint64_t max_dist, 
uint32_t positive_flag, uint32_t negative_flag, hap_cov_t *cov, utg_trans_t *o, uint32_t is_update_chain)
{
    uint64_t v, k, i, v1 = b->S.a[0], is_update, is_pop = 0; ma_ug_t *fg = pf->fg;
    uint8_t *s = pf->vs; asg32_v *bc = pf->srt; uint8_t sn = 1, se = 2; uint64_t max_dist0 = max_dist;
    bc->n = 0; kv_resize(uint32_t, (*bc), b->b.n);
    assert((fg->u.a[v0>>1].len == ug->u.a[v0>>1].len) && (fg->u.a[v0>>1].n == ug->u.a[v0>>1].n));
    assert((fg->u.a[v1>>1].len == ug->u.a[v1>>1].len) && (fg->u.a[v1>>1].n == ug->u.a[v1>>1].n));


    // if(((v0>>1) == 7536) && ((v1>>1) == 99223)) {
    //     print_simple_dbg_gfa(ug->g, "ug0");
    // }

    ///b->S.a[0] is the sink of this bubble
    for (i = 0; i < b->b.n; i++) {
        v = b->b.a[i];
        if((v == v0) || (v == v1)) continue;
        s[v] = sn;
        kv_push(uint32_t, *bc, v);
        assert((fg->u.a[v>>1].len == ug->u.a[v>>1].len) && (fg->u.a[v>>1].n == ug->u.a[v>>1].n));
    }
    
    asg_arc_t *av, *za, *ra; uint32_t an, zn, rn, ri;
    v = v0;
    av = asg_arc_a(fg->g, v); 
    an = asg_arc_n(fg->g, v); 
    for (k = 0; k < an; k++) {
        av[k].del = 1; asg_arc_del(fg->g, av[k].v^1, (av[k].ul>>32)^1, 1);
    }
    fg->g->seq[v>>1].c = ug->g->seq[v>>1].c;


    v = v1^1; 
    av = asg_arc_a(fg->g, v); 
    an = asg_arc_n(fg->g, v); 
    for (k = 0; k < an; k++) {
        av[k].del = 1; asg_arc_del(fg->g, av[k].v^1, (av[k].ul>>32)^1, 1);
    }
    fg->g->seq[v>>1].c = ug->g->seq[v>>1].c;


    for (i = 0; i < bc->n; i++) {
        v = bc->a[i];
        av = asg_arc_a(fg->g, v); an = asg_arc_n(fg->g, v); 
        for (k = 0; k < an; k++) {
            // av[k].del = 1;
            av[k].del = 1; asg_arc_del(fg->g, av[k].v^1, (av[k].ul>>32)^1, 1);
        }

        v ^= 1;
        av = asg_arc_a(fg->g, v); an = asg_arc_n(fg->g, v); 
        for (k = 0; k < an; k++) {
            // av[k].del = 1;
            av[k].del = 1; asg_arc_del(fg->g, av[k].v^1, (av[k].ul>>32)^1, 1);
        }

        fg->g->seq[v>>1].c = ug->g->seq[v>>1].c;
    }


    for (i = 0; i < bc->n; i++) {
        v = bc->a[i];
        za = asg_arc_a(ug->g, v); zn = asg_arc_n(ug->g, v); 
        av = asg_arc_a(fg->g, v); an = asg_arc_n(fg->g, v); 

        ///set
        for (k = 0; k < zn; k++) {
            if((za[k].del) || (!s[za[k].v])) continue;
            s[za[k].v] |= se;
        }

        
        for (k = 0; k < an; k++) {
            ///s[av[k].v]&se:: in the existing graph
            if((!s[av[k].v]) || (s[av[k].v]&se)) continue; ///in the existing graph
            // if((av[k].v) == (v>>1)) continue;///looks like a bug
            if((av[k].v>>1) == (v>>1)) continue;
            av[k].del = 0;

            ra = asg_arc_a(fg->g, (av[k].v^1)); rn = asg_arc_n(fg->g, (av[k].v^1));
            for (ri = 0; ri < rn; ri++) {
                if(ra[ri].v == ((av[k].ul>>32)^1)) {
                    ra[ri].del = 0; break;
                }
            }
            assert(ri < rn);
        }

        ///reset
        for (k = 0; k < zn; k++) {
            if((za[k].del) || (!s[za[k].v])) continue;
            if(s[za[k].v]&se) s[za[k].v] -= se;
        }
    }


    is_update = rd_hamming_symm_simple0(b, ug->g, fg->g, v0, v1^1, max_dist, &max_dist);

    // if(((v0>>1) == 7536) && ((v1>>1) == 99223)) {
    //     fprintf(stderr, "v0::utg%.6lul(%c)\tv1::utg%.6lul(%c)\n", (v0>>1) + 1, "+-"[(v0&1)], (v1>>1) + 1, "+-"[(v1&1)]);
    //     for (i = 0; i < bc->n; i++) fprintf(stderr, "w::utg%.6ul(%c)\n", (bc->a[i]>>1) + 1, "+-"[(bc->a[i]&1)]);
    //     print_simple_dbg_gfa(ug->g, "ug1");
    //     print_simple_dbg_gfa(fg->g, "fg0");
    // }

    // fprintf(stderr, "[M::%s] is_update::%lu\n", __func__, is_update);
    if(is_update) {
        for (i = 0; i < bc->n; i++) {
            append_node_arcs(fg->g, ug->g, s, se, bc->a[i]);
            append_node_arcs(fg->g, ug->g, s, se, bc->a[i]^1);
        }
        append_node_arcs(fg->g, ug->g, s, se, v0);
        append_node_arcs(fg->g, ug->g, s, se, v1^1);
        is_pop = bub_pop_merge(ug, fg, v0, v1, max_dist, b, positive_flag, negative_flag, cov, is_update_chain, o, pf->ae, pf->src, pf->cov, pf->max_hang, pf->min_ovlp, pf->gap_fuzz, &(pf->n_insert));
    } else {
        max_dist = max_dist0;
        is_pop = asg_bub_pop1_primary_trio(ug->g, ug, v0, max_dist, b, positive_flag, negative_flag, 1, NULL, NULL, cov, is_update_chain, 0, o);
    }



    for (i = 0; i < bc->n; i++) s[bc->a[i]] = 0;
    ///reset
    v = v0;
    av = asg_arc_a(fg->g, v); 
    an = asg_arc_n(fg->g, v); 
    for (k = 0; k < an; k++) {
        av[k].del = 0; asg_arc_del(fg->g, av[k].v^1, (av[k].ul>>32)^1, 0);
    }
    fg->g->seq[v>>1].c = PRIMARY_LABLE;


    v = v1^1; 
    av = asg_arc_a(fg->g, v); 
    an = asg_arc_n(fg->g, v); 
    for (k = 0; k < an; k++) {
        av[k].del = 0; asg_arc_del(fg->g, av[k].v^1, (av[k].ul>>32)^1, 0);
    }
    fg->g->seq[v>>1].c = PRIMARY_LABLE;


    for (i = 0; i < bc->n; i++) {
        v = bc->a[i];
        av = asg_arc_a(fg->g, v); 
        an = asg_arc_n(fg->g, v); 
        for (k = 0; k < an; k++) {
            av[k].del = 0; asg_arc_del(fg->g, av[k].v^1, (av[k].ul>>32)^1, 0);
        }

        v ^= 1;
        av = asg_arc_a(fg->g, v); 
        an = asg_arc_n(fg->g, v); 
        for (k = 0; k < an; k++) {
            av[k].del = 0; asg_arc_del(fg->g, av[k].v^1, (av[k].ul>>32)^1, 0);
        }

        fg->g->seq[v>>1].c = PRIMARY_LABLE;
    }
    return is_pop;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd8, %rsp
movl %r9d, %ebp
movq %r8, 0xd0(%rsp)
movq %rcx, %r12
movq %rdi, %r13
movq %r8, 0xb0(%rsp)
movq 0x18(%rdx), %rax
movl (%rax), %eax
movq %rax, 0x90(%rsp)
movq 0x30(%rdi), %rbx
movq 0x20(%rdi), %rdi
movq 0x28(%r13), %r14
andq $0x0, (%rdi)
movq %rdx, 0x88(%rsp)
movq 0x38(%rdx), %rax
cmpq %rax, 0x8(%rdi)
movq %rdi, 0x70(%rsp)
movq %rsi, 0x78(%rsp)
jae 0xa9b2f
decq %rax
movq %rax, %rcx
shrq %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x2, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x4, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x8, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x10, %rcx
orq %rax, %rcx
leaq 0x1(%rcx), %rax
movq %rax, 0x8(%rdi)
movq 0x10(%rdi), %rdi
leaq 0x4(,%rcx,4), %rsi
callq 0x2370
movq 0x78(%rsp), %rsi
movq 0x70(%rsp), %rcx
movq %rax, 0x10(%rcx)
movq 0x10(%rbx), %rax
movq %rsi, %rdx
shrq %rdx
movq %rdx, 0xc0(%rsp)
imulq $0x28, %rdx, %rdx
movq 0x10(%r12), %rcx
movl (%rcx,%rdx), %edi
xorl (%rax,%rdx), %edi
testl $0x7fffffff, %edi       # imm = 0x7FFFFFFF
jne 0xaa41f
leaq (%rax,%rdx), %rdi
addq %rcx, %rdx
movl 0x10(%rdi), %edi
cmpl 0x10(%rdx), %edi
jne 0xaa41f
movq %r13, 0xc8(%rsp)
movq %r12, 0x68(%rsp)
movl %ebp, 0x84(%rsp)
movq %r14, 0xa8(%rsp)
movq 0x90(%rsp), %rdi
shrl %edi
movq %rdi, 0xb8(%rsp)
imulq $0x28, %rdi, %rdx
movl (%rcx,%rdx), %edi
xorl (%rax,%rdx), %edi
testl $0x7fffffff, %edi       # imm = 0x7FFFFFFF
jne 0xaa43e
addq %rdx, %rax
addq %rdx, %rcx
movl 0x10(%rax), %eax
cmpl 0x10(%rcx), %eax
jne 0xaa43e
xorl %r12d, %r12d
pushq $0x2
popq %r13
movq 0x88(%rsp), %rdi
cmpq 0x38(%rdi), %r12
jae 0xa9c9a
movq 0x48(%rdi), %rax
movl (%rax,%r12,4), %ebp
cmpq %rsi, %rbp
je 0xa9c92
cmpl 0x90(%rsp), %ebp
je 0xa9c92
movq 0xa8(%rsp), %rax
movb $0x1, (%rax,%rbp)
movq 0x70(%rsp), %rdx
movq (%rdx), %rcx
movq 0x10(%rdx), %rax
cmpq 0x8(%rdx), %rcx
jne 0xa9c46
leaq (%rcx,%rcx), %rsi
testq %rcx, %rcx
cmoveq %r13, %rsi
movq %rsi, 0x8(%rdx)
shlq $0x2, %rsi
movq %rax, %rdi
movq %rdx, %r14
callq 0x2370
movq 0x78(%rsp), %rsi
movq %rax, 0x10(%r14)
movq (%r14), %rcx
jmp 0xa9c49
movq %rdx, %r14
leaq 0x1(%rcx), %rdx
movq %rdx, (%r14)
movl %ebp, (%rax,%rcx,4)
movq 0x10(%rbx), %rax
shrl %ebp
imulq $0x28, %rbp, %rdx
movq 0x68(%rsp), %rcx
movq 0x10(%rcx), %rcx
movl (%rcx,%rdx), %edi
xorl (%rax,%rdx), %edi
testl $0x7fffffff, %edi       # imm = 0x7FFFFFFF
movq 0x88(%rsp), %rdi
jne 0xaa400
addq %rdx, %rax
addq %rdx, %rcx
movl 0x10(%rax), %eax
cmpl 0x10(%rcx), %eax
jne 0xaa400
incq %r12
jmp 0xa9bd4
movq 0x18(%rbx), %rax
movq 0x8(%rax), %rcx
movq 0x28(%rax), %rax
movq (%rax,%rsi,8), %rax
movl %eax, %edx
shrq $0x20, %rax
imulq $0x18, %rdx, %r12
imulq $0x18, %rax, %rax
leaq (%rax,%rcx), %r13
addq $0xc, %r13
xorl %r14d, %r14d
pushq $0x1
popq %rbp
cmpq %r14, %r12
je 0xa9cf2
orb $-0x80, 0x3(%r13,%r14)
movq 0x18(%rbx), %rdi
movl -0x8(%r13,%r14), %edx
movl -0x4(%r13,%r14), %esi
xorl $0x1, %esi
xorl $0x1, %edx
movl %ebp, %ecx
callq 0x6db50
addq $0x18, %r14
jmp 0xa9cc6
movq 0x68(%rsp), %rax
movq 0x18(%rax), %rax
movq 0x20(%rax), %rax
movq 0xc0(%rsp), %rsi
movb 0x4(%rax,%rsi,8), %al
movq 0x18(%rbx), %rcx
movq 0x20(%rcx), %rdx
movb %al, 0x4(%rdx,%rsi,8)
movq 0x90(%rsp), %rdx
xorq $0x1, %rdx
movq 0x8(%rcx), %rax
movq 0x28(%rcx), %rcx
movq %rdx, 0x98(%rsp)
movq (%rcx,%rdx,8), %rcx
movl %ecx, %edx
shrq $0x20, %rcx
imulq $0x18, %rdx, %r12
imulq $0x18, %rcx, %rcx
leaq (%rcx,%rax), %r13
addq $0xc, %r13
xorl %r14d, %r14d
pushq $0x1
popq %rbp
cmpq %r14, %r12
je 0xa9d7f
orb $-0x80, 0x3(%r13,%r14)
movq 0x18(%rbx), %rdi
movl -0x8(%r13,%r14), %edx
movl -0x4(%r13,%r14), %esi
xorl $0x1, %esi
xorl $0x1, %edx
movl %ebp, %ecx
callq 0x6db50
addq $0x18, %r14
jmp 0xa9d53
movq 0x68(%rsp), %r13
movq 0x18(%r13), %rax
movq 0x20(%rax), %rax
movq 0xb8(%rsp), %rsi
movb 0x4(%rax,%rsi,8), %cl
movq 0x18(%rbx), %rax
movq 0x20(%rax), %rdx
movb %cl, 0x4(%rdx,%rsi,8)
xorl %esi, %esi
pushq $0x1
popq %rbp
movq 0x70(%rsp), %rdx
movq (%rdx), %rcx
cmpq %rcx, %rsi
jae 0xa9eab
movq 0x10(%rdx), %rcx
movq %rsi, 0xa0(%rsp)
movl (%rcx,%rsi,4), %edx
movq 0x8(%rax), %rcx
movq 0x28(%rax), %rax
movq %rdx, %r15
movq (%rax,%rdx,8), %rax
movl %eax, %edx
shrq $0x20, %rax
imulq $0x18, %rdx, %r14
imulq $0x18, %rax, %rax
leaq (%rcx,%rax), %r12
addq $0xc, %r12
xorl %r13d, %r13d
cmpq %r13, %r14
je 0xa9e1d
orb $-0x80, 0x3(%r12,%r13)
movq 0x18(%rbx), %rdi
movl -0x8(%r12,%r13), %edx
movl -0x4(%r12,%r13), %esi
xorl $0x1, %esi
xorl $0x1, %edx
movl %ebp, %ecx
callq 0x6db50
addq $0x18, %r13
jmp 0xa9df1
movq %r15, %rax
xorq $0x1, %rax
movq 0x18(%rbx), %rcx
movq 0x8(%rcx), %rdx
movq 0x28(%rcx), %rcx
movq (%rcx,%rax,8), %rax
movl %eax, %ecx
shrq $0x20, %rax
imulq $0x18, %rcx, %r14
imulq $0x18, %rax, %rax
leaq (%rdx,%rax), %r12
addq $0xc, %r12
xorl %r13d, %r13d
cmpq %r13, %r14
je 0xa9e79
orb $-0x80, 0x3(%r12,%r13)
movq 0x18(%rbx), %rdi
movl -0x8(%r12,%r13), %edx
movl -0x4(%r12,%r13), %esi
xorl $0x1, %esi
xorl $0x1, %edx
movl %ebp, %ecx
callq 0x6db50
addq $0x18, %r13
jmp 0xa9e4d
movq 0x68(%rsp), %r13
movq 0x18(%r13), %rax
movq 0x20(%rax), %rax
shrl %r15d
movb 0x4(%rax,%r15,8), %cl
movq 0x18(%rbx), %rax
movq 0x20(%rax), %rdx
movb %cl, 0x4(%rdx,%r15,8)
movq 0xa0(%rsp), %rsi
incq %rsi
jmp 0xa9da9
xorl %esi, %esi
movq 0xa8(%rsp), %r15
cmpq %rcx, %rsi
jae 0xaa021
movq 0x10(%rdx), %rax
movq %rsi, 0xa0(%rsp)
movl (%rax,%rsi,4), %esi
movq 0x18(%r13), %rax
movq 0x8(%rax), %rdx
movq 0x28(%rax), %rax
movq (%rax,%rsi,8), %rax
movl %eax, %ecx
shrq $0x20, %rax
movq 0x18(%rbx), %r8
movq 0x8(%r8), %rdi
movq 0x28(%r8), %r8
movq (%r8,%rsi,8), %r8
movq %r8, %r9
shrq $0x20, %r9
imulq $0x18, %rcx, %rcx
imulq $0x18, %rax, %rax
addq %rax, %rdx
addq $0xc, %rdx
xorl %r10d, %r10d
cmpq %r10, %rcx
je 0xa9f34
cmpl $0x0, (%rdx,%r10)
js 0xa9f2e
movl -0x4(%rdx,%r10), %eax
movb (%r15,%rax), %r11b
testb %r11b, %r11b
je 0xa9f2e
orb $0x2, %r11b
movb %r11b, (%r15,%rax)
addq $0x18, %r10
jmp 0xa9f0c
imulq $0x18, %r9, %rax
addq %rax, %rdi
movl %r8d, %r8d
shrl %esi
xorl %r9d, %r9d
cmpq %r8, %r9
je 0xa9fe0
imulq $0x18, %r9, %r10
movl 0x8(%rdi,%r10), %r14d
movb (%r15,%r14), %al
testb %al, %al
je 0xa9fd8
andb $0x2, %al
jne 0xa9fd8
movl %r14d, %eax
shrl %eax
cmpl %eax, %esi
je 0xa9fd8
addq %rdi, %r10
andb $0x7f, 0xf(%r10)
movq 0x18(%rbx), %rax
movq 0x8(%rax), %r11
movq 0x28(%rax), %rax
xorq $0x1, %r14
movq (%rax,%r14,8), %rax
movl %eax, %r14d
shrq $0x20, %rax
imulq $0x18, %r14, %r14
addq $0x18, %r14
imulq $0x18, %rax, %r12
leaq (%r11,%r12), %r13
addq $-0xc, %r13
xorl %ebp, %ebp
leaq 0x18(%rbp), %rax
cmpq %rax, %r14
je 0xaa3e1
movl 0x4(%r10), %r15d
xorl 0x14(%r13,%rbp), %r15d
movq %rax, %rbp
cmpl $0x1, %r15d
jne 0xa9fa3
addq %r12, %r11
andb $0x7f, -0x9(%rax,%r11)
movq 0xa8(%rsp), %r15
movq 0x68(%rsp), %r13
incq %r9
jmp 0xa9f43
xorl %esi, %esi
cmpq %rsi, %rcx
je 0xaa009
cmpl $0x0, (%rdx,%rsi)
js 0xaa003
movl -0x4(%rdx,%rsi), %eax
movb (%r15,%rax), %dil
testb $0x2, %dil
je 0xaa003
addb $-0x2, %dil
movb %dil, (%r15,%rax)
addq $0x18, %rsi
jmp 0xa9fe2
movq 0xa0(%rsp), %rsi
incq %rsi
movq 0x70(%rsp), %rdx
movq (%rdx), %rcx
jmp 0xa9eb5
movq 0x18(%r13), %rsi
movq 0x18(%rbx), %rdx
leaq 0xb0(%rsp), %rax
movq %rax, (%rsp)
movq 0x88(%rsp), %r12
movq %r12, %rdi
movq 0x78(%rsp), %r14
movl %r14d, %ecx
movq 0x98(%rsp), %r8
movq 0xd0(%rsp), %rbp
movq %rbp, %r9
callq 0xa7c6c
testl %eax, %eax
je 0xaa183
xorl %r12d, %r12d
pushq $0x2
popq %rbp
movq 0x70(%rsp), %r14
movq 0x18(%rbx), %rdi
movq 0x18(%r13), %rsi
cmpq (%r14), %r12
jae 0xaa0b5
movq 0x10(%r14), %rax
movl (%rax,%r12,4), %r8d
movq %r15, %rdx
movl %ebp, %ecx
callq 0xa9201
movq 0x18(%rbx), %rdi
movq 0x18(%r13), %rsi
movq 0x10(%r14), %rax
movl (%rax,%r12,4), %r8d
xorl $0x1, %r8d
movq %r15, %rdx
movl %ebp, %ecx
callq 0xa9201
incq %r12
jmp 0xaa073
pushq $0x2
popq %rbp
movq %r15, %rdx
movl %ebp, %ecx
movq 0x78(%rsp), %r14
movl %r14d, %r8d
callq 0xa9201
movq 0x18(%rbx), %rdi
movq 0x18(%r13), %rsi
movq %r15, %rdx
movl %ebp, %ecx
movq 0x98(%rsp), %r8
callq 0xa9201
movq 0xb0(%rsp), %r8
movq 0xc8(%rsp), %r9
movq 0x38(%r9), %rax
movq (%r9), %rcx
movq 0x8(%r9), %rdx
movl 0x10(%r9), %esi
movl 0x14(%r9), %edi
addq $0x40, %r9
movq %r9, 0x58(%rsp)
movl %edi, 0x48(%rsp)
movl %esi, 0x40(%rsp)
movq %rdx, 0x38(%rsp)
movq %rcx, 0x30(%rsp)
movq %rax, 0x28(%rsp)
movq 0x120(%rsp), %rax
movq %rax, 0x20(%rsp)
movl 0x128(%rsp), %eax
movl %eax, 0x18(%rsp)
movq 0x118(%rsp), %rax
movq %rax, 0x10(%rsp)
movl 0x110(%rsp), %eax
movl %eax, 0x8(%rsp)
movl 0x84(%rsp), %eax
movl %eax, (%rsp)
movq %r13, %rdi
movq %rbx, %rsi
movq 0x88(%rsp), %r9
movl %r14d, %edx
movq 0x90(%rsp), %rcx
callq 0xa935a
movl %eax, %eax
jmp 0xaa1ec
movq %rbp, 0xb0(%rsp)
movq 0x18(%r13), %rdi
movq 0x120(%rsp), %rax
movq %rax, 0x38(%rsp)
movl 0x128(%rsp), %eax
movl %eax, 0x28(%rsp)
movq 0x118(%rsp), %rax
movq %rax, 0x20(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rsp)
andl $0x0, 0x30(%rsp)
movl 0x110(%rsp), %eax
movl %eax, (%rsp)
movl $0x1, 0x8(%rsp)
movq %r13, %rsi
movl %r14d, %edx
movq %rbp, %rcx
movq %r12, %r8
movl 0x84(%rsp), %r9d
callq 0x84a86
movq %rax, 0x68(%rsp)
xorl %eax, %eax
movq 0x70(%rsp), %rdx
movq 0x78(%rsp), %rsi
cmpq (%rdx), %rax
jae 0xaa213
movq 0x10(%rdx), %rcx
movl (%rcx,%rax,4), %ecx
movb $0x0, (%r15,%rcx)
incq %rax
jmp 0xaa1fd
movq 0x18(%rbx), %rax
movq 0x8(%rax), %rcx
movq 0x28(%rax), %rax
movq (%rax,%rsi,8), %rax
movl %eax, %edx
shrq $0x20, %rax
imulq $0x18, %rdx, %r15
imulq $0x18, %rax, %rax
leaq (%rax,%rcx), %r14
addq $0xc, %r14
xorl %r13d, %r13d
cmpq %r13, %r15
je 0xaa268
andb $0x7f, 0x3(%r14,%r13)
movq 0x18(%rbx), %rdi
movl -0x8(%r14,%r13), %edx
movl -0x4(%r14,%r13), %esi
xorl $0x1, %esi
xorl $0x1, %edx
xorl %ecx, %ecx
callq 0x6db50
addq $0x18, %r13
jmp 0xaa23c
movq 0x18(%rbx), %rax
movq 0x20(%rax), %rcx
movq 0xc0(%rsp), %rdx
movb $0x0, 0x4(%rcx,%rdx,8)
movq 0x8(%rax), %rcx
movq 0x28(%rax), %rax
movq 0x98(%rsp), %rdx
movq (%rax,%rdx,8), %rax
movl %eax, %edx
shrq $0x20, %rax
imulq $0x18, %rdx, %r15
imulq $0x18, %rax, %rax
leaq (%rax,%rcx), %r14
addq $0xc, %r14
xorl %r13d, %r13d
cmpq %r13, %r15
je 0xaa2d6
andb $0x7f, 0x3(%r14,%r13)
movq 0x18(%rbx), %rdi
movl -0x8(%r14,%r13), %edx
movl -0x4(%r14,%r13), %esi
xorl $0x1, %esi
xorl $0x1, %edx
xorl %ecx, %ecx
callq 0x6db50
addq $0x18, %r13
jmp 0xaa2aa
movq 0x18(%rbx), %rax
movq 0x20(%rax), %rcx
movq 0xb8(%rsp), %rdx
movb $0x0, 0x4(%rcx,%rdx,8)
xorl %r15d, %r15d
movq 0x70(%rsp), %rcx
cmpq (%rcx), %r15
jae 0xaa3ca
movq 0x10(%rcx), %rcx
movl (%rcx,%r15,4), %r13d
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 (%rcx,%rax), %rbp
addq $0xc, %rbp
xorl %r12d, %r12d
cmpq %r12, %r14
je 0xaa355
andb $0x7f, 0x3(%rbp,%r12)
movq 0x18(%rbx), %rdi
movl -0x8(%rbp,%r12), %edx
movl -0x4(%rbp,%r12), %esi
xorl $0x1, %esi
xorl $0x1, %edx
xorl %ecx, %ecx
callq 0x6db50
addq $0x18, %r12
jmp 0xaa329
movq %r13, %rax
xorq $0x1, %rax
movq 0x18(%rbx), %rcx
movq 0x8(%rcx), %rdx
movq 0x28(%rcx), %rcx
movq (%rcx,%rax,8), %rax
movl %eax, %ecx
shrq $0x20, %rax
imulq $0x18, %rcx, %r14
imulq $0x18, %rax, %rax
leaq (%rdx,%rax), %rbp
addq $0xc, %rbp
xorl %r12d, %r12d
cmpq %r12, %r14
je 0xaa3b1
andb $0x7f, 0x3(%rbp,%r12)
movq 0x18(%rbx), %rdi
movl -0x8(%rbp,%r12), %edx
movl -0x4(%rbp,%r12), %esi
xorl $0x1, %esi
xorl $0x1, %edx
xorl %ecx, %ecx
callq 0x6db50
addq $0x18, %r12
jmp 0xaa385
movq 0x18(%rbx), %rax
movq 0x20(%rax), %rcx
shrl %r13d
movb $0x0, 0x4(%rcx,%r13,8)
incq %r15
jmp 0xaa2ee
movq 0x68(%rsp), %rax
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x13fe43(%rip), %rdi    # 0x1ea22b
leaq 0x13d9a2(%rip), %rsi    # 0x1e7d91
leaq 0x13fcf8(%rip), %rcx    # 0x1ea0ee
movl $0x684f, %edx           # imm = 0x684F
callq 0x2110
leaq 0x13fdd3(%rip), %rdi    # 0x1ea1da
leaq 0x13d983(%rip), %rsi    # 0x1e7d91
leaq 0x13fcd9(%rip), %rcx    # 0x1ea0ee
movl $0x680d, %edx           # imm = 0x680D
callq 0x2110
leaq 0x13fc73(%rip), %rdi    # 0x1ea099
leaq 0x13d964(%rip), %rsi    # 0x1e7d91
leaq 0x13fcba(%rip), %rcx    # 0x1ea0ee
movl $0x67ff, %edx           # imm = 0x67FF
callq 0x2110
leaq 0x13fd40(%rip), %rdi    # 0x1ea185
leaq 0x13d945(%rip), %rsi    # 0x1e7d91
leaq 0x13fc9b(%rip), %rcx    # 0x1ea0ee
movl $0x6800, %edx           # imm = 0x6800
callq 0x2110