// File: /workspace/github_c_makefile_star2_O3/c-zhou[P]oatk/syncasm.c
// Function: scg_demultiplex
KDQ_INIT(uint64_t)

void scg_demultiplex(scg_t *g)
{
    uint64_t i, j, k, n, m, v, w, nv, pv, *a;
    int8_t *flag;
    kdq_t(uint64_t) *q;
    kvec_t(uint64_t) sub_g;
    asmg_arc_t *av;
    asmg_vtx_t *vtx;
    asmg_t *utg_g, *de_g;
    khint_t k1;
    kh_u64_t *h_scm;
    ks_u128_t *arc_s;
    int absent;

    utg_g = g->utg_asmg;
    q = kdq_init(uint64_t, 0);
    MYCALLOC(flag, utg_g->n_vtx * 2);
    MYCALLOC(de_g, 1);
    h_scm = kh_u64_init();
    arc_s = ks_u128_init();
    kv_init(sub_g);
    for (i = 0, n = utg_g->n_vtx * 2; i < n; ++i) {
        if (flag[i] || utg_g->vtx[i>>1].del)
            continue;

        // get a sub graph
        sub_g.n = 0;
        kdq_push(uint64_t, q, i);
        kdq_push(uint64_t, q, i^1);
        while (kdq_size(q) > 0) {
            v = *kdq_shift(uint64_t, q);
            if (flag[v]) continue;
            if (v & 1) kv_push(uint64_t, sub_g, v>>1);
            nv = asmg_arc_n(utg_g, v);
            av = asmg_arc_a(utg_g, v);
            for (j = 0; j < nv; ++j) {
                if (av[j].del) continue;
                if (flag[av[j].w] == 0)
                    kdq_push(uint64_t, q, av[j].w);
                if (flag[av[j].w^1] == 0)
                    kdq_push(uint64_t, q, av[j].w^1);
            }
            flag[v] = 1;
        }

#ifdef DEBUG_UTG_DEMULTIPLEX
        fprintf(stderr, "[DEBUG_UTG_DEMULTIPLEX::%s] processing subgraph:", __func__);
        for (j = 0; j < sub_g.n; ++j) fprintf(stderr, " u%lu", sub_g.a[j]);
        fprintf(stderr, "\n");
#endif
        // processing individual unitigs in sub_g
        for (j = 0; j < sub_g.n; ++j) {
#ifdef DEBUG_UTG_DEMULTIPLEX
            fprintf(stderr, "[DEBUG_UTG_DEMULTIPLEX::%s] process utg: u%lu\n", __func__, sub_g.a[j]);
#endif
            a = utg_g->vtx[sub_g.a[j]].a;
            m = utg_g->vtx[sub_g.a[j]].n;
            nv = 0;
            for (k = 0; k < m; ++k) {
                pv = nv;
                v = a[k] >> 1;
                k1 = kh_u64_put(h_scm, v, &absent);
                if (absent) {
                    // add v
                    nv = scg_add_utg_p(de_g, &vtx);
                    MYBZERO(vtx, 1);
                    MYMALLOC(vtx->a, 1);
                    vtx->n = 1;
                    vtx->a[0] = v << 1;
                    kh_val(h_scm, k1) = nv;
#ifdef DEBUG_UTG_DEMULTIPLEX
                    fprintf(stderr, "[DEBUG_UTG_DEMULTIPLEX::%s] add vtx: %lu [%lu%c]\n", 
                            __func__, nv, v, "+-"[a[k]&1]);
#endif
                } else {
                    // v has been added
                    nv = kh_val(h_scm, k1);
#ifdef DEBUG_UTG_DEMULTIPLEX
                    fprintf(stderr, "[DEBUG_UTG_DEMULTIPLEX::%s] existed vtx: %lu [%lu%c]\n", 
                            __func__, nv, v, "+-"[a[k]&1]);
#endif
                }
                if (k > 0) {
                    // add arc pv->nv
                    v = pv << 1 | (a[k-1]&1);
                    w = nv << 1 | (a[k]&1);
                    k1 = ks_u128_get(arc_s, (uint128_t) v<<64 | w);
                    if (k1 >= kh_end(arc_s)) {
                        // arc does not exist
                        asmg_arc_add2(de_g, v, w, 0, 0, 0, 0, 0);
                        ks_u128_put(arc_s, (uint128_t) v<<64 | w, &absent);
                        ks_u128_put(arc_s, (uint128_t) (w^1)<<64 | (v^1), &absent);
#ifdef DEBUG_UTG_DEMULTIPLEX
                        fprintf(stderr, "[DEBUG_UTG_DEMULTIPLEX::%s] add arc: %lu%c -> %lu%c\n", 
                                __func__, v>>1, "+-"[v&1], w>>1, "+-"[w&1]);
#endif
                    }
#ifdef DEBUG_UTG_DEMULTIPLEX
                    else {
                        fprintf(stderr, "[DEBUG_UTG_DEMULTIPLEX::%s] existed arc: %lu%c -> %lu%c\n",
                                __func__, v>>1, "+-"[v&1], w>>1, "+-"[w&1]);
                    }
#endif
                }
            }
        }
        
        // add arcs between unitigs
        m = sub_g.n * 2;
        for (j = 0; j < m; ++j) {
            v = sub_g.a[j>>1];
            a = utg_g->vtx[v].a;
            pv = (j&1)? a[0]^1 : a[utg_g->vtx[v].n-1];
            k1 = kh_u64_get(h_scm, pv>>1);
            pv = kh_val(h_scm, k1)<<1 | (pv&1);
            for (k = 0; k < m; ++k) {
                w = sub_g.a[k>>1];
                av = asmg_arc1(utg_g, v<<1|(j&1), w<<1|(k&1));
                if (av == 0 || av->ln > 0)
                    continue;
                a = utg_g->vtx[w].a;
                nv = (k&1)? a[utg_g->vtx[w].n-1]^1 : a[0];
                k1 = kh_u64_get(h_scm, nv>>1);
                nv = kh_val(h_scm, k1)<<1 | (nv&1);
                if (ks_u128_get(arc_s, (uint128_t) pv<<64 | nv) >= kh_end(arc_s)) {
                    // add vtx pv->nv
                    asmg_arc_add(de_g, pv, nv, 0, 0, 0, 0, 0);
                    ks_u128_put(arc_s, (uint128_t) pv<<64 | nv, &absent);
#ifdef DEBUG_UTG_DEMULTIPLEX
                    fprintf(stderr, "[DEBUG_UTG_DEMULTIPLEX::%s] add inter-utg arc: %lu%c -> %lu%c\n",
                            __func__, pv>>1, "+-"[pv&1], nv>>1, "+-"[nv&1]);
#endif
                }
            }
        }
        
        kh_u64_m_clear(h_scm);
        ks_u128_s_clear(arc_s);
    }
    
    kdq_destroy(uint64_t, q);
    kv_destroy(sub_g);
    kh_u64_destroy(h_scm);
    ks_u128_destroy(arc_s);
    free(flag);
    
    // sort arc and build index
    asmg_finalize(de_g, 1);
    
    // update utg graph
    asmg_destroy(utg_g);
    g->utg_asmg = de_g;

    // postprocessing for mergeable utgs after purging
    process_mergeable_unitigs(g);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movabsq $0x3ffffffffffffff, %r14 # imm = 0x3FFFFFFFFFFFFFF
movq %rdi, 0x90(%rsp)
movq 0x8(%rdi), %r12
xorl %r15d, %r15d
movl $0x1, %esi
movl $0x28, %edx
xorl %edi, %edi
callq 0x1d660
movq %rax, %rbx
movq (%rax), %rax
andq %r14, %rax
btsq $0x3b, %rax
movq %rax, (%rbx)
movq $0x3, 0x10(%rbx)
movl $0x20, %esi
xorl %edi, %edi
callq 0x1d7c1
movq %rax, 0x18(%rbx)
movq %r15, 0x20(%rbx)
movq (%r12), %rdi
addq %rdi, %rdi
movl $0x1, %esi
callq 0x2250
movq %rax, 0x48(%rsp)
movl $0x1, %edi
movl $0x40, %esi
callq 0x2250
movq %rax, %rbp
movl $0x1, %esi
movl $0x20, %edx
xorl %edi, %edi
callq 0x1d660
movq %rax, %r13
movq %r15, 0x18(%rax)
movl $0x1, %esi
movl $0x20, %edx
xorl %edi, %edi
callq 0x1d660
movq %rax, %r14
movq %r15, 0x18(%rax)
movq (%r12), %rdx
movl $0x0, %eax
movq %rax, 0x28(%rsp)
addq %rdx, %rdx
movq %r14, 0x8(%rsp)
je 0xa91b
xorl %esi, %esi
movq $0x0, 0x28(%rsp)
movq $0x0, 0x80(%rsp)
movq %r12, 0x70(%rsp)
movq %rbp, 0x18(%rsp)
movabsq $0x3ffffffffffffff, %r8 # imm = 0x3FFFFFFFFFFFFFF
movq %r13, 0x40(%rsp)
movq %rdx, 0x88(%rsp)
movq %rbx, (%rsp)
movq 0x48(%rsp), %rax
cmpb $0x0, (%rax,%rsi)
jne 0xa900
movq 0x10(%r12), %rax
movq %rsi, %rcx
shrq %rcx
leaq (%rcx,%rcx,4), %rcx
testb $0x40, 0x23(%rax,%rcx,8)
jne 0xa900
movq %rsi, 0x68(%rsp)
movq (%rbx), %rsi
movq 0x8(%rbx), %rbx
movq %rsi, %rax
shrq $0x3a, %rax
movl $0x1, %edx
movl %eax, %ecx
shlq %cl, %rdx
cmpq %rdx, %rbx
jne 0x9499
leal 0x1(%rax), %r14d
movl $0x1, %r15d
movl %r14d, %ecx
shlq %cl, %r15
cmpq %rbx, %r15
jae 0x94a2
movq $-0x1, %r14
incq %r14
movq %rbx, %rdx
movl %r14d, %ecx
shrq %cl, %rdx
cmpq $0x3f, %r14
ja 0x9476
testq %rdx, %rdx
jne 0x945f
cmpq %r14, %rax
movq (%rsp), %r13
je 0x956e
movl $0x1, %r15d
movl %r14d, %ecx
shlq %cl, %r15
cmpq %rax, %r14
ja 0x94a6
movq %rbx, %rdx
jmp 0x94d4
movq (%rsp), %r13
jmp 0x9573
movq (%rsp), %r13
movq 0x18(%r13), %rsi
movq 0x20(%r13), %rdi
movl $0x8, %edx
movl %r14d, %ecx
shlq %cl, %rdx
callq 0x1d8c9
movq %rax, 0x18(%r13)
movq (%r13), %rsi
movq 0x8(%r13), %rdx
movabsq $0x3ffffffffffffff, %r8 # imm = 0x3FFFFFFFFFFFFFF
movq %rsi, %rax
andq %r8, %rax
addq %rax, %rdx
cmpq %rbx, %rdx
jbe 0x951d
movq (%rsp), %r13
movq 0x18(%r13), %rcx
movq %rbx, %rdx
subq %rax, %rdx
movq %r15, %rsi
subq %rdx, %rsi
leaq (%rcx,%rsi,8), %rdi
leaq (%rcx,%rax,8), %rsi
shlq $0x3, %rdx
callq 0x2370
movabsq $0x3ffffffffffffff, %r8 # imm = 0x3FFFFFFFFFFFFFF
subq %rbx, %r15
addq (%r13), %r15
movq %r15, %rsi
jmp 0x9545
subq %r15, %rdx
movq (%rsp), %r13
jbe 0x9545
movq 0x18(%r13), %rdi
leaq (%rdi,%r15,8), %rsi
shlq $0x3, %rdx
callq 0x2370
movabsq $0x3ffffffffffffff, %r8 # imm = 0x3FFFFFFFFFFFFFF
movq (%r13), %rsi
movq %r14, %rax
shlq $0x3a, %rax
andq %r8, %rsi
orq %rax, %rsi
movq $-0x1, %rax
movl %r14d, %ecx
shlq %cl, %rax
movq %rsi, (%r13)
notq %rax
movq %rax, 0x10(%r13)
movq 0x8(%r13), %rbx
movq 0x8(%rsp), %r14
movq 0x18(%r13), %rax
leaq 0x1(%rbx), %rcx
movq %rcx, 0x8(%r13)
andq %r8, %rsi
addq %rbx, %rsi
andq 0x10(%r13), %rsi
movq 0x68(%rsp), %rcx
movq %rcx, (%rax,%rsi,8)
movq (%r13), %rsi
movq 0x8(%r13), %rbx
movq %rsi, %rdx
shrq $0x3a, %rdx
movl $0x1, %edi
movl %edx, %ecx
shlq %cl, %rdi
cmpq %rdi, %rbx
jne 0x95f1
leal 0x1(%rdx), %r14d
movl $0x1, %r15d
movl %r14d, %ecx
shlq %cl, %r15
cmpq %rbx, %r15
jae 0x960f
movq $-0x1, %r14
incq %r14
movq %rbx, %rdi
movl %r14d, %ecx
shrq %cl, %rdi
cmpq $0x3f, %r14
ja 0x95e3
testq %rdi, %rdi
jne 0x95cc
cmpq %r14, %rdx
jne 0x95fa
movq (%rsp), %r13
jmp 0x96d9
movq (%rsp), %r13
jmp 0x96de
movl $0x1, %r15d
movl %r14d, %ecx
shlq %cl, %r15
cmpq %rdx, %r14
jbe 0xa90e
movq (%rsp), %r13
movq 0x20(%r13), %rdi
movl $0x8, %edx
movl %r14d, %ecx
shlq %cl, %rdx
movq %rax, %rsi
callq 0x1d8c9
movq %rax, 0x18(%r13)
movq (%r13), %rsi
movq 0x8(%r13), %rdx
movabsq $0x3ffffffffffffff, %r8 # imm = 0x3FFFFFFFFFFFFFF
movq %rsi, %rcx
andq %r8, %rcx
addq %rcx, %rdx
cmpq %rbx, %rdx
jbe 0x9685
movq %rbx, %rdx
subq %rcx, %rdx
movq %r15, %rsi
subq %rdx, %rsi
leaq (%rax,%rsi,8), %rdi
leaq (%rax,%rcx,8), %rsi
shlq $0x3, %rdx
callq 0x2370
movabsq $0x3ffffffffffffff, %r8 # imm = 0x3FFFFFFFFFFFFFF
subq %rbx, %r15
movq (%rsp), %r13
addq (%r13), %r15
movq %r15, %rsi
jmp 0x96ac
subq %r15, %rdx
movq (%rsp), %r13
jbe 0x96ac
leaq (%rax,%r15,8), %rsi
shlq $0x3, %rdx
movq %rax, %rdi
callq 0x2370
movabsq $0x3ffffffffffffff, %r8 # imm = 0x3FFFFFFFFFFFFFF
movq (%r13), %rsi
movq %r14, %rax
shlq $0x3a, %rax
andq %r8, %rsi
orq %rax, %rsi
movq %rsi, (%r13)
movq $-0x1, %rax
movl %r14d, %ecx
shlq %cl, %rax
notq %rax
movq %rax, 0x10(%r13)
movq 0x8(%r13), %rbx
movq 0x18(%r13), %rax
movq 0x8(%rsp), %r14
movq 0x68(%rsp), %rcx
xorq $0x1, %rcx
leaq 0x1(%rbx), %rdx
movq %rdx, 0x8(%r13)
andq %r8, %rsi
addq %rbx, %rsi
andq 0x10(%r13), %rsi
movq %rcx, (%rax,%rsi,8)
movq $0x0, 0x38(%rsp)
movq %r13, %rdx
movq 0x40(%rsp), %r13
movq 0x8(%rdx), %rax
decq %rax
cmpq $-0x1, %rax
je 0x9bf5
movq (%rsp), %r8
movq (%r8), %rcx
movq 0x18(%r8), %rdx
movq %rcx, %rsi
movabsq $0x3ffffffffffffff, %r9 # imm = 0x3FFFFFFFFFFFFFF
andq %r9, %rsi
leaq 0x1(%rcx), %rdi
andq %r9, %rdi
andq 0x10(%r8), %rdi
movabsq $-0x400000000000000, %r9 # imm = 0xFC00000000000000
andq %r9, %rcx
orq %rcx, %rdi
movq %rdi, (%r8)
movq %rax, 0x8(%r8)
movq (%rdx,%rsi,8), %r15
decq %rax
movq 0x48(%rsp), %rcx
cmpb $0x0, (%rcx,%r15)
jne 0x9715
testb $0x1, %r15b
jne 0x9785
movq (%rsp), %rdx
movabsq $0x3ffffffffffffff, %rdi # imm = 0x3FFFFFFFFFFFFFF
jmp 0x97f8
movq 0x38(%rsp), %rbx
cmpq 0x80(%rsp), %rbx
jne 0x97ce
leaq (%rbx,%rbx), %rcx
testq %rbx, %rbx
movl $0x2, %eax
cmoveq %rax, %rcx
movq %rcx, 0x80(%rsp)
leaq (,%rcx,8), %rsi
movq 0x28(%rsp), %rdi
callq 0x2350
movq (%rsp), %rdx
movabsq $0x3ffffffffffffff, %rdi # imm = 0x3FFFFFFFFFFFFFF
jmp 0x97e1
movq (%rsp), %rdx
movabsq $0x3ffffffffffffff, %rdi # imm = 0x3FFFFFFFFFFFFFF
movq 0x28(%rsp), %rax
movq %r15, %rcx
shrq %rcx
movq %rax, 0x28(%rsp)
movq %rcx, (%rax,%rbx,8)
incq %rbx
movq %rbx, 0x38(%rsp)
movq 0x38(%r12), %rax
movq (%rax,%r15,8), %r8
testq %r8, %r8
je 0x9bdc
movq 0x70(%rsp), %rcx
movq 0x30(%rcx), %rax
movq (%rax,%r15,8), %rax
leaq (%rax,%rax,2), %r9
shlq $0x4, %r9
addq 0x28(%rcx), %r9
xorl %ebp, %ebp
movq %r8, 0x30(%rsp)
movq %r9, 0x58(%rsp)
leaq (,%rbp,2), %rbx
addq %rbp, %rbx
shlq $0x4, %rbx
testb $0x40, 0x23(%r9,%rbx)
jne 0x9b88
addq %r9, %rbx
movq 0x8(%rbx), %r12
movq 0x48(%rsp), %rax
cmpb $0x0, (%rax,%r12)
jne 0x99ed
movq (%rdx), %rsi
movq 0x8(%rdx), %r13
movq %rsi, %rax
shrq $0x3a, %rax
movl $0x1, %edx
movl %eax, %ecx
shlq %cl, %rdx
cmpq %rdx, %r13
jne 0x98c7
leal 0x1(%rax), %r14d
movl $0x1, %edx
movl %r14d, %ecx
shlq %cl, %rdx
cmpq %r13, %rdx
jae 0x98d0
movq $-0x1, %r14
incq %r14
movq %r13, %rdx
movl %r14d, %ecx
shrq %cl, %rdx
cmpq $0x3f, %r14
ja 0x98b0
testq %rdx, %rdx
jne 0x9899
cmpq %r14, %rax
movq (%rsp), %rdx
jne 0x9b96
movq 0x8(%rsp), %r14
jmp 0x99ca
movq (%rsp), %rdx
jmp 0x99ca
movq %rdx, 0x10(%rsp)
movq (%rsp), %rdx
movq 0x18(%rdx), %rsi
movq 0x20(%rdx), %rdi
movl $0x8, %edx
movl %r14d, %ecx
shlq %cl, %rdx
callq 0x1d8c9
movq (%rsp), %rcx
movq %rax, 0x18(%rcx)
movq (%rcx), %rsi
movq 0x8(%rcx), %rdx
movabsq $0x3ffffffffffffff, %rdi # imm = 0x3FFFFFFFFFFFFFF
movq 0x10(%rsp), %r8
movq %rsi, %rax
andq %rdi, %rax
addq %rax, %rdx
cmpq %r13, %rdx
jbe 0x9962
movq (%rsp), %rcx
movq 0x18(%rcx), %rcx
movq %r13, %rdx
subq %rax, %rdx
movq %r8, %rsi
subq %rdx, %rsi
leaq (%rcx,%rsi,8), %rdi
leaq (%rcx,%rax,8), %rsi
shlq $0x3, %rdx
movq %r8, 0x10(%rsp)
callq 0x2370
movq (%rsp), %r9
movabsq $0x3ffffffffffffff, %rdi # imm = 0x3FFFFFFFFFFFFFF
movq 0x10(%rsp), %rsi
subq %r13, %rsi
addq (%r9), %rsi
jmp 0x9990
subq %r8, %rdx
movq (%rsp), %r9
jbe 0x9990
movq 0x18(%r9), %rdi
leaq (%rdi,%r8,8), %rsi
shlq $0x3, %rdx
movq %r9, %r13
callq 0x2370
movq %r13, %r9
movabsq $0x3ffffffffffffff, %rdi # imm = 0x3FFFFFFFFFFFFFF
movq (%r13), %rsi
movq %r14, %rax
shlq $0x3a, %rax
andq %rdi, %rsi
orq %rax, %rsi
movq $-0x1, %rax
movl %r14d, %ecx
shlq %cl, %rax
movq %rsi, (%r9)
notq %rax
movq %rax, 0x10(%r9)
movq 0x8(%r9), %r13
movq %r9, %rdx
movq 0x8(%rsp), %r14
movq 0x30(%rsp), %r8
movq 0x58(%rsp), %r9
movq 0x18(%rdx), %rax
leaq 0x1(%r13), %rcx
movq %rcx, 0x8(%rdx)
andq %rdi, %rsi
addq %r13, %rsi
andq 0x10(%rdx), %rsi
movq %r12, (%rax,%rsi,8)
movq 0x8(%rbx), %r12
movq 0x40(%rsp), %r13
xorq $0x1, %r12
movq 0x48(%rsp), %rax
cmpb $0x0, (%rax,%r12)
jne 0x9b88
movq (%rdx), %rsi
movq 0x8(%rdx), %rbx
movq %rsi, %rax
shrq $0x3a, %rax
movl $0x1, %edx
movl %eax, %ecx
shlq %cl, %rdx
cmpq %rdx, %rbx
jne 0x9a67
leal 0x1(%rax), %r14d
movl $0x1, %edx
movl %r14d, %ecx
shlq %cl, %rdx
cmpq %rbx, %rdx
jae 0x9a70
movq $-0x1, %r14
incq %r14
movq %rbx, %rdx
movl %r14d, %ecx
shrq %cl, %rdx
cmpq $0x3f, %r14
ja 0x9a50
testq %rdx, %rdx
jne 0x9a39
cmpq %r14, %rax
movq (%rsp), %rdx
jne 0x9bb1
movq 0x8(%rsp), %r14
jmp 0x9b6e
movq (%rsp), %rdx
jmp 0x9b6e
movq %rdx, 0x10(%rsp)
movq (%rsp), %rdx
movq 0x18(%rdx), %rsi
movq 0x20(%rdx), %rdi
movq %rdx, %r13
movl $0x8, %edx
movl %r14d, %ecx
shlq %cl, %rdx
callq 0x1d8c9
movq %rax, 0x18(%r13)
movq (%r13), %rsi
movq 0x8(%r13), %rdx
movabsq $0x3ffffffffffffff, %rdi # imm = 0x3FFFFFFFFFFFFFF
movq 0x40(%rsp), %r13
movq 0x10(%rsp), %r8
movq %rsi, %rax
andq %rdi, %rax
addq %rax, %rdx
cmpq %rbx, %rdx
jbe 0x9b07
movq (%rsp), %rcx
movq 0x18(%rcx), %rcx
movq %rbx, %rdx
subq %rax, %rdx
movq %r8, %rsi
subq %rdx, %rsi
leaq (%rcx,%rsi,8), %rdi
leaq (%rcx,%rax,8), %rsi
shlq $0x3, %rdx
movq %r8, 0x10(%rsp)
callq 0x2370
movq (%rsp), %r9
movabsq $0x3ffffffffffffff, %rdi # imm = 0x3FFFFFFFFFFFFFF
movq 0x10(%rsp), %rsi
subq %rbx, %rsi
addq (%r9), %rsi
jmp 0x9b34
subq %r8, %rdx
movq (%rsp), %r9
jbe 0x9b34
movq 0x18(%r9), %rdi
leaq (%rdi,%r8,8), %rsi
shlq $0x3, %rdx
movq %r9, %rbx
callq 0x2370
movq %rbx, %r9
movabsq $0x3ffffffffffffff, %rdi # imm = 0x3FFFFFFFFFFFFFF
movq (%rbx), %rsi
movq %r14, %rax
shlq $0x3a, %rax
andq %rdi, %rsi
orq %rax, %rsi
movq $-0x1, %rax
movl %r14d, %ecx
shlq %cl, %rax
movq %rsi, (%r9)
notq %rax
movq %rax, 0x10(%r9)
movq 0x8(%r9), %rbx
movq %r9, %rdx
movq 0x8(%rsp), %r14
movq 0x30(%rsp), %r8
movq 0x58(%rsp), %r9
movq 0x18(%rdx), %rax
leaq 0x1(%rbx), %rcx
movq %rcx, 0x8(%rdx)
andq %rdi, %rsi
addq %rbx, %rsi
andq 0x10(%rdx), %rsi
movq %r12, (%rax,%rsi,8)
incq %rbp
cmpq %r8, %rbp
jne 0x982f
jmp 0x9bdc
movl $0x1, %r8d
movl %r14d, %ecx
shlq %cl, %r8
cmpq %rax, %r14
jbe 0x9bcc
movq %r8, 0x10(%rsp)
jmp 0x98d9
movl $0x1, %r8d
movl %r14d, %ecx
shlq %cl, %r8
cmpq %rax, %r14
jbe 0x9bd4
movq %r8, 0x10(%rsp)
jmp 0x9a79
movq %r13, %rdx
jmp 0x990f
movq %rbx, %rdx
jmp 0x9ab4
movq 0x48(%rsp), %rax
movb $0x1, (%rax,%r15)
movq 0x70(%rsp), %r12
movq 0x18(%rsp), %rbp
jmp 0x970e
cmpq $0x0, 0x38(%rsp)
je 0xa87e
xorl %ecx, %ecx
movq 0x10(%r12), %rax
movq %rcx, %rdx
movq 0x28(%rsp), %rcx
movq %rdx, 0x98(%rsp)
movq (%rcx,%rdx,8), %rcx
leaq (%rcx,%rcx,4), %rcx
movq (%rax,%rcx,8), %rdx
movq %rdx, 0xa0(%rsp)
testq %rdx, %rdx
je 0xa3c6
movq 0x8(%rax,%rcx,8), %rax
movq %rax, 0x58(%rsp)
xorl %edx, %edx
xorl %ebx, %ebx
movq %rbx, %r11
cmpq $0x0, 0x10(%r13)
je 0x9c5c
movb (%r13), %cl
movl $0x1, %r12d
shll %cl, %r12d
jmp 0x9c5f
xorl %r12d, %r12d
movq 0x58(%rsp), %rax
movq %rdx, 0x10(%rsp)
movq (%rax,%rdx,8), %rdi
movl $0xffffffff, 0x24(%rsp) # imm = 0xFFFFFFFF
movl 0x4(%r13), %eax
movl %r12d, %ecx
shrl %ecx
movl %r12d, %edx
shrl $0x2, %edx
addl %ecx, %edx
cmpl %edx, %eax
movq %rdi, 0x78(%rsp)
jae 0x9c9b
movl (%r13), %ecx
movl %r12d, %ebx
jmp 0x9ece
leal 0x1(%r12), %ecx
bsrl %ecx, %edx
cmpl $0x2, %ecx
movl $0x0, %esi
cmovbl %esi, %edx
andl %r12d, %ecx
cmpl $0x1, %ecx
sbbl $-0x1, %edx
cmpl $0x3, %edx
movl $0x2, %ecx
cmovael %edx, %ecx
movl $0x1, %ebx
shll %cl, %ebx
movl %ebx, %r8d
shrl %r8d
movl %ebx, %esi
shrl $0x2, %esi
addl %r8d, %esi
cmpl %esi, %eax
jbe 0x9ceb
movl (%r13), %ecx
movl $0x1, %ebx
shll %cl, %ebx
jmp 0x9ece
movl %ecx, 0x64(%rsp)
movq %r11, 0x50(%rsp)
movq 0x18(%r13), %rdi
movl %ebx, %ebp
shrl $0x3, %ebp
andl $-0x4, %ebp
cmpl $0x5, %edx
movl $0x4, %eax
cmovbl %eax, %ebp
movq %rbp, %rsi
callq 0x1d7c1
movq %rax, %r14
movq %rax, %rdi
xorl %esi, %esi
movq %rbp, %rdx
callq 0x21e0
testq %r14, %r14
je 0x9fbc
movq 0x10(%r13), %rsi
testq %rsi, %rsi
je 0x9d46
movb (%r13), %cl
movl $0x1, %ebp
shll %cl, %ebp
cmpl %ebx, %ebp
jb 0x9d48
jmp 0x9d6f
xorl %ebp, %ebp
movq 0x18(%r13), %rdi
movl %ebx, %edx
shlq $0x4, %rdx
callq 0x1d8c9
testq %rax, %rax
je 0x9fb0
movq %rax, %rsi
movq %rax, 0x10(%r13)
testl %ebp, %ebp
je 0x9ea1
leal -0x1(%rbx), %r8d
movq 0x8(%r13), %r9
movl $0x20, %eax
subl 0x64(%rsp), %eax
movl %ebp, %r10d
xorl %edx, %edx
movq %rbx, 0x30(%rsp)
movl %edx, %edi
shrl $0x5, %edi
movl (%r9,%rdi,4), %r13d
movl $0x1, %ebp
movl %edx, %ecx
shll %cl, %ebp
btl %edx, %r13d
jae 0x9e78
leaq (%r9,%rdi,4), %rcx
movq %rdx, %rdi
shlq $0x4, %rdi
movq (%rsi,%rdi), %r15
movq 0x8(%rsi,%rdi), %rbx
notl %ebp
andl %r13d, %ebp
movl %ebp, (%rcx)
movq %r15, %rcx
notq %rcx
movq %r15, %rdi
shlq $0x15, %rdi
addq %rcx, %rdi
movq %rdi, %rcx
shrq $0x18, %rcx
xorq %rdi, %rcx
imulq $0x109, %rcx, %rcx      # imm = 0x109
movq %rcx, %rdi
shrq $0xe, %rdi
xorq %rcx, %rdi
leaq (%rdi,%rdi,4), %rcx
leaq (%rdi,%rcx,4), %rcx
movq %rcx, %rdi
shrq $0x1c, %rdi
xorl %ecx, %edi
imull $0x1e3779b9, %edi, %edi # imm = 0x1E3779B9
movl %eax, %ecx
shrl %cl, %edi
movl %edi, %r12d
shrl $0x5, %r12d
movl (%r14,%r12,4), %r13d
movl $0x1, %ebp
movl %edi, %ecx
shll %cl, %ebp
btl %edi, %r13d
jae 0x9e28
incl %edi
andl %r8d, %edi
jmp 0x9e07
orl %ebp, %r13d
movl %r13d, (%r14,%r12,4)
cmpl %r10d, %edi
jae 0x9e64
movl (%r9,%r12,4), %r13d
testl %ebp, %r13d
je 0x9e64
leaq (%r9,%r12,4), %rcx
movl %edi, %edi
shlq $0x4, %rdi
movq (%rsi,%rdi), %r12
movq 0x8(%rsi,%rdi), %r11
movq %r15, (%rsi,%rdi)
movq %rbx, 0x8(%rsi,%rdi)
movq %r11, %rbx
movq %r12, %r15
jmp 0x9dba
movl %edi, %ecx
shlq $0x4, %rcx
movq %r15, (%rsi,%rcx)
movq %rbx, 0x8(%rsi,%rcx)
movq 0x30(%rsp), %rbx
incq %rdx
cmpq %r10, %rdx
jne 0x9d8a
cmpl %ebx, %r10d
movq 0x40(%rsp), %r13
jbe 0x9ea1
movq 0x18(%r13), %rdi
movl %ebx, %edx
shlq $0x4, %rdx
callq 0x1d8c9
movq %rax, 0x10(%r13)
movq 0x8(%r13), %rsi
movq 0x18(%r13), %rdi
callq 0x1d6fb
movq %r14, 0x8(%r13)
movl 0x64(%rsp), %ecx
movl %ecx, (%r13)
movq 0x18(%rsp), %rbp
movq 0x8(%rsp), %r14
movq 0x50(%rsp), %r11
movq 0x78(%rsp), %rdi
movq %rdi, %rax
shrq %rax
movq %rax, %rsi
notq %rsi
movq %rax, %rdx
shlq $0x15, %rdx
addq %rsi, %rdx
movq %rdx, %rsi
shrq $0x18, %rsi
xorq %rdx, %rsi
imulq $0x109, %rsi, %rsi      # imm = 0x109
movq %rsi, %rdx
shrq $0xe, %rdx
xorq %rsi, %rdx
leaq (%rdx,%rdx,4), %rsi
leaq (%rdx,%rsi,4), %rsi
movq %rsi, %rdx
shrq $0x1c, %rdx
xorl %esi, %edx
imull $0x1e3779b9, %edx, %r12d # imm = 0x1E3779B9
negb %cl
shrl %cl, %r12d
decl %ebx
movq 0x8(%r13), %rdx
movl %r12d, %ecx
movl %ecx, %esi
shrl $0x5, %esi
movl (%rdx,%rsi,4), %r8d
movl $0x1, %edi
shll %cl, %edi
btl %ecx, %r8d
jae 0x9f6b
movq 0x10(%r13), %r9
movl %ecx, %r10d
shlq $0x4, %r10
cmpq %rax, (%r9,%r10)
je 0x9f6b
incl %ecx
andl %ebx, %ecx
cmpl %r12d, %ecx
jne 0x9f25
movl %r12d, %esi
shrl $0x5, %esi
movl $0x1, %edi
movl %r12d, %ecx
shll %cl, %edi
movl (%rdx,%rsi,4), %r8d
jmp 0x9f6e
movl %ecx, %r12d
movl %r12d, %ecx
testl %r8d, %edi
je 0x9f90
movl $0x0, 0x24(%rsp)
movq 0x10(%r13), %rax
shlq $0x4, %rcx
movq 0x8(%rax,%rcx), %rbx
jmp 0xa0a1
movq 0x10(%r13), %r9
shlq $0x4, %rcx
movq %rax, (%r9,%rcx)
orl %r8d, %edi
movl %edi, (%rdx,%rsi,4)
incl 0x4(%r13)
movl $0x1, 0x24(%rsp)
jmp 0x9fc6
movq 0x18(%r13), %rdi
movq %r14, %rsi
callq 0x1d6fb
movq 0x18(%rsp), %rbp
movq 0x50(%rsp), %r11
movq %r11, 0x50(%rsp)
movq (%rbp), %rbx
cmpq 0x8(%rbp), %rbx
jne 0xa036
movq %rbx, %rax
shrq %rax
orq %rbx, %rax
movq %rax, %rcx
shrq $0x2, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x4, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x8, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x10, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x20, %rcx
orq %rax, %rcx
leaq 0x1(%rcx), %rax
movq %rax, 0x8(%rbp)
movq 0x10(%rbp), %rdi
leaq 0x8(,%rcx,8), %rax
leaq (%rax,%rax,4), %rsi
callq 0x2350
movq %rax, %r14
movq %rax, 0x10(%rbp)
jmp 0xa03a
movq 0x10(%rbp), %r14
leaq 0x1(%rbx), %rax
movq %rax, (%rbp)
movq %rbp, %r15
movq %rbx, %rbp
leaq (%rbx,%rbx,4), %rbx
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%r14,%rbx,8)
movq $0x0, 0x20(%r14,%rbx,8)
movl $0x8, %edi
callq 0x2310
movq %rax, 0x8(%r14,%rbx,8)
movq $0x1, (%r14,%rbx,8)
movq %rbp, %rbx
movq %r15, %rbp
movq 0x78(%rsp), %rcx
andq $-0x2, %rcx
movq %rcx, (%rax)
movq 0x10(%r13), %rax
movl %r12d, %ecx
shlq $0x4, %rcx
movq %rbx, 0x8(%rax,%rcx)
movq 0x8(%rsp), %r14
movq 0x50(%rsp), %r11
movq 0x10(%rsp), %rdx
testq %rdx, %rdx
je 0xa3b0
movq 0x58(%rsp), %rcx
movq -0x8(%rcx,%rdx,8), %rax
movq (%rcx,%rdx,8), %rcx
andl $0x1, %eax
leaq (%rax,%r11,2), %r13
andl $0x1, %ecx
leaq (%rcx,%rbx,2), %r12
movq 0x10(%r14), %rsi
testq %rsi, %rsi
je 0xa214
movl (%r14), %eax
movl $0x1, %edx
movl %eax, %ecx
shll %cl, %edx
movq %r12, %rcx
notq %rcx
movq %r12, %rdi
shlq $0x15, %rdi
addq %rcx, %rdi
movq %rdi, %rcx
shrq $0x18, %rcx
xorq %rdi, %rcx
imulq $0x109, %rcx, %rcx      # imm = 0x109
movq %rcx, %rdi
shrq $0xe, %rdi
xorq %rcx, %rdi
leaq (%rdi,%rdi,4), %rcx
leaq (%rdi,%rcx,4), %rdi
movq %rdi, %rcx
shrq $0x1c, %rcx
xorq %rdi, %rcx
movq %r13, %rdi
notq %rdi
movq %r13, %r8
shlq $0x15, %r8
addq %rdi, %r8
movq %r8, %rdi
shrq $0x18, %rdi
xorq %r8, %rdi
imulq $0x109, %rdi, %rdi      # imm = 0x109
movq %rdi, %r8
shrq $0xe, %r8
xorq %rdi, %r8
leaq (%r8,%r8,4), %rdi
leaq (%r8,%rdi,4), %rdi
movq %rdi, %r8
shrq $0x1c, %r8
xorl %edi, %r8d
movl $0x80000001, %edi       # imm = 0x80000001
imull %r8d, %edi
movabsq $-0x7fffffff00000000, %r8 # imm = 0x8000000100000000
imulq %r8, %rcx
orq %rcx, %rdi
movq %rdi, %rcx
notq %rcx
shlq $0x15, %rdi
addq %rcx, %rdi
movq %rdi, %rcx
shrq $0x18, %rcx
xorq %rdi, %rcx
imulq $0x109, %rcx, %rcx      # imm = 0x109
movq %rcx, %rdi
shrq $0xe, %rdi
xorq %rcx, %rdi
leaq (%rdi,%rdi,4), %rcx
leaq (%rdi,%rcx,4), %rcx
movq %rcx, %rdi
shrq $0x1c, %rdi
xorl %ecx, %edi
imull $0x1e3779b9, %edi, %edi # imm = 0x1E3779B9
movl %eax, %ecx
negb %cl
shrl %cl, %edi
leal -0x1(%rdx), %ecx
movq 0x8(%r14), %r8
movl %edi, %r9d
movl %r9d, %r10d
shrl $0x5, %r10d
movl (%r8,%r10,4), %r10d
btl %r9d, %r10d
jae 0xa203
movl %r9d, %r10d
shlq $0x4, %r10
movq 0x8(%rsi,%r10), %r11
xorq %r13, %r11
movq (%rsi,%r10), %r10
xorq %r12, %r10
orq %r11, %r10
je 0xa200
incl %r9d
andl %ecx, %r9d
cmpl %edi, %r9d
jne 0xa1c7
jmp 0xa203
movl %r9d, %edx
movl %eax, %ecx
shrl %cl, %edx
testl %edx, %edx
movq 0x10(%rsp), %rdx
je 0xa3b0
movq %rbx, 0x30(%rsp)
movq 0x18(%rbp), %r15
movq 0x20(%rbp), %rbx
cmpq %rbx, %r15
jne 0xa282
movq %r15, %rax
shrq %rax
orq %r15, %rax
movq %rax, %rcx
shrq $0x2, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x4, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x8, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x10, %rax
orq %rcx, %rax
movq %rax, %rbx
shrq $0x20, %rbx
orq %rax, %rbx
incq %rbx
movq %rbx, 0x20(%rbp)
movq 0x28(%rbp), %rdi
movq %rbx, %rax
shlq $0x4, %rax
leaq (%rax,%rax,2), %rsi
callq 0x2350
movq %rax, 0x28(%rbp)
jmp 0xa286
movq 0x28(%rbp), %rax
leaq 0x1(%r15), %rdx
movq %rdx, 0x18(%rbp)
leaq (%r15,%r15,2), %rcx
shlq $0x4, %rcx
movq %r13, (%rax,%rcx)
movq %r12, 0x8(%rax,%rcx)
movq $0x0, 0x28(%rax,%rcx)
movq %r12, %r14
xorq $0x1, %r14
movq %r13, %rbp
xorq $0x1, %rbp
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax,%rcx)
movl $0x0, 0x20(%rax,%rcx)
cmpq %r13, %r14
je 0xa372
cmpq %rbx, %rdx
jne 0xa33b
movq %rbx, %rcx
shrq %rcx
orq %rbx, %rcx
movq %rdx, 0x78(%rsp)
movq %rcx, %rdx
shrq $0x2, %rdx
orq %rcx, %rdx
movq %rdx, %rcx
shrq $0x4, %rcx
orq %rdx, %rcx
movq %rcx, %rdx
shrq $0x8, %rdx
orq %rcx, %rdx
movq %rdx, %rcx
shrq $0x10, %rcx
orq %rdx, %rcx
movq %rcx, %rdx
shrq $0x20, %rdx
orq %rcx, %rdx
incq %rdx
movq 0x18(%rsp), %rbx
movq %rdx, 0x20(%rbx)
shlq $0x4, %rdx
leaq (%rdx,%rdx,2), %rsi
movq %rax, %rdi
callq 0x2350
movq 0x78(%rsp), %rdx
movq %rax, 0x28(%rbx)
jmp 0xa340
movq 0x18(%rsp), %rbx
addq $0x2, %r15
movq %r15, 0x18(%rbx)
leaq (%rdx,%rdx,2), %rcx
shlq $0x4, %rcx
movq %r14, (%rax,%rcx)
movq %rbp, 0x8(%rax,%rcx)
movq $0x0, 0x28(%rax,%rcx)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax,%rcx)
movl $0x80000000, 0x20(%rax,%rcx) # imm = 0x80000000
movq 0x8(%rsp), %rbx
movq %rbx, %rdi
movq %r12, %rsi
movq %r13, %rdx
leaq 0x24(%rsp), %r15
movq %r15, %rcx
callq 0x8e28
movq %rbx, %rdi
movq %rbp, %rsi
movq %r14, %rdx
movq %rbx, %r14
movq %r15, %rcx
callq 0x8e28
movq 0x18(%rsp), %rbp
movq 0x10(%rsp), %rdx
movq 0x30(%rsp), %rbx
incq %rdx
cmpq 0xa0(%rsp), %rdx
movq 0x40(%rsp), %r13
jne 0x9c43
movq 0x98(%rsp), %rcx
incq %rcx
movq 0x38(%rsp), %rax
cmpq %rax, %rcx
movq 0x70(%rsp), %r12
jne 0x9c03
addq %rax, %rax
je 0xa87e
xorl %edx, %edx
movq %rax, 0x38(%rsp)
movq %rdx, %rax
andq $-0x2, %rax
movq 0x28(%rsp), %rcx
movq (%rcx,%rax,4), %rax
movq 0x10(%r12), %rsi
leaq (%rax,%rax,4), %rdi
movq 0x8(%rsi,%rdi,8), %rcx
movq %rdx, 0x30(%rsp)
andq $0x1, %rdx
jne 0xa42b
leaq (%rsi,%rdi,8), %rsi
movq (%rsi), %rsi
movq -0x8(%rcx,%rsi,8), %rsi
jmp 0xa432
movq (%rcx), %rsi
xorq $0x1, %rsi
movq 0x10(%r13), %rdi
testq %rdi, %rdi
je 0xa4d1
movq %rsi, %r9
movb (%r13), %cl
movl $0x1, %r8d
shll %cl, %r8d
shrq %r9
movq %r9, %r10
notq %r10
movq %r9, %r11
shlq $0x15, %r11
addq %r10, %r11
movq %r11, %r10
shrq $0x18, %r10
xorq %r11, %r10
imulq $0x109, %r10, %r10      # imm = 0x109
movq %r10, %r11
shrq $0xe, %r11
xorq %r10, %r11
leaq (%r11,%r11,4), %r10
leaq (%r11,%r10,4), %r10
movq %r10, %r11
shrq $0x1c, %r11
xorl %r10d, %r11d
imull $0x1e3779b9, %r11d, %r10d # imm = 0x1E3779B9
negb %cl
shrl %cl, %r10d
leal -0x1(%r8), %ecx
movq 0x8(%r13), %rbx
movl %r10d, %r11d
movl %r11d, %r14d
shrl $0x5, %r14d
movl (%rbx,%r14,4), %ebp
btl %r11d, %ebp
jae 0xa4d8
movl %r11d, %r14d
shlq $0x4, %r14
cmpq %r9, (%rdi,%r14)
je 0xa4d5
incl %r11d
andl %ecx, %r11d
cmpl %r10d, %r11d
jne 0xa4a6
jmp 0xa4d8
xorl %ecx, %ecx
jmp 0xa4db
movl %r11d, %r8d
movl %r8d, %ecx
shlq $0x4, %rcx
movq 0x8(%rdi,%rcx), %rcx
andl $0x1, %esi
leaq (%rsi,%rcx,2), %r13
leaq (%rdx,%rax,2), %rbx
movq %r13, %rax
notq %rax
movq %r13, %rcx
shlq $0x15, %rcx
addq %rax, %rcx
movq %rcx, %rax
shrq $0x18, %rax
xorq %rcx, %rax
imulq $0x109, %rax, %rax      # imm = 0x109
movq %rax, %rcx
shrq $0xe, %rcx
xorq %rax, %rcx
leaq (%rcx,%rcx,4), %rax
leaq (%rcx,%rax,4), %rax
movq %rax, %rcx
shrq $0x1c, %rcx
xorl %eax, %ecx
movl $0x80000001, %eax       # imm = 0x80000001
imull %ecx, %eax
movq %rax, 0x10(%rsp)
xorl %ebp, %ebp
movq 0x38(%r12), %rax
movq (%rax,%rbx,8), %rax
testq %rax, %rax
je 0xa84b
movq %rbp, %rcx
andq $-0x2, %rcx
movq 0x28(%rsp), %rdx
movq (%rdx,%rcx,4), %rcx
movl %ebp, %edx
andl $0x1, %edx
leaq (%rdx,%rcx,2), %rsi
movq 0x28(%r12), %rdi
movq 0x30(%r12), %r8
movq (%r8,%rbx,8), %r8
leaq (%r8,%r8,2), %r8
shlq $0x4, %r8
addq %r8, %rdi
addq $0x20, %rdi
cmpq %rsi, -0x18(%rdi)
jne 0xa58e
testb $0x40, 0x3(%rdi)
je 0xa59c
addq $0x30, %rdi
decq %rax
jne 0xa582
jmp 0xa84b
cmpq $0x0, -0x10(%rdi)
jne 0xa84b
movq 0x10(%r12), %rsi
leaq (%rcx,%rcx,4), %rcx
movq 0x8(%rsi,%rcx,8), %rax
testq %rdx, %rdx
jne 0xa5bf
movq (%rax), %rax
jmp 0xa5cf
leaq (%rsi,%rcx,8), %rcx
movq (%rcx), %rcx
movq -0x8(%rax,%rcx,8), %rax
xorq $0x1, %rax
movq 0x40(%rsp), %r10
movq 0x10(%r10), %rdx
testq %rdx, %rdx
je 0xa66f
movq %rax, %rdi
movb (%r10), %cl
movl $0x1, %esi
shll %cl, %esi
shrq %rdi
movq %rdi, %r8
notq %r8
movq %rdi, %r9
shlq $0x15, %r9
addq %r8, %r9
movq %r9, %r8
shrq $0x18, %r8
xorq %r9, %r8
imulq $0x109, %r8, %r8        # imm = 0x109
movq %r8, %r9
shrq $0xe, %r9
xorq %r8, %r9
leaq (%r9,%r9,4), %r8
leaq (%r9,%r8,4), %r8
movq %r8, %r9
shrq $0x1c, %r9
xorl %r8d, %r9d
imull $0x1e3779b9, %r9d, %r8d # imm = 0x1E3779B9
negb %cl
shrl %cl, %r8d
leal -0x1(%rsi), %ecx
movq 0x8(%r10), %r10
movl %r8d, %r9d
movl %r9d, %r11d
shrl $0x5, %r11d
movl (%r10,%r11,4), %r11d
btl %r9d, %r11d
jae 0xa676
movl %r9d, %r11d
shlq $0x4, %r11
cmpq %rdi, (%rdx,%r11)
je 0xa673
incl %r9d
andl %ecx, %r9d
cmpl %r8d, %r9d
jne 0xa644
jmp 0xa676
xorl %ecx, %ecx
jmp 0xa678
movl %r9d, %esi
movl %esi, %ecx
shlq $0x4, %rcx
movq 0x8(%rdx,%rcx), %rcx
andl $0x1, %eax
leaq (%rax,%rcx,2), %r14
movq 0x8(%rsp), %rax
movq 0x10(%rax), %rsi
testq %rsi, %rsi
je 0xa792
movq 0x8(%rsp), %r8
movl (%r8), %eax
movl $0x1, %edx
movl %eax, %ecx
shll %cl, %edx
movq %r14, %rcx
notq %rcx
movq %r14, %rdi
shlq $0x15, %rdi
addq %rcx, %rdi
movq %rdi, %rcx
shrq $0x18, %rcx
xorq %rdi, %rcx
imulq $0x109, %rcx, %rcx      # imm = 0x109
movq %rcx, %rdi
shrq $0xe, %rdi
xorq %rcx, %rdi
leaq (%rdi,%rdi,4), %rcx
leaq (%rdi,%rcx,4), %rcx
movq %rcx, %rdi
shrq $0x1c, %rdi
xorq %rcx, %rdi
movabsq $-0x7fffffff00000000, %rcx # imm = 0x8000000100000000
imulq %rcx, %rdi
orq 0x10(%rsp), %rdi
movq %rdi, %rcx
notq %rcx
shlq $0x15, %rdi
addq %rcx, %rdi
movq %rdi, %rcx
shrq $0x18, %rcx
xorq %rdi, %rcx
imulq $0x109, %rcx, %rcx      # imm = 0x109
movq %rcx, %rdi
shrq $0xe, %rdi
xorq %rcx, %rdi
leaq (%rdi,%rdi,4), %rcx
leaq (%rdi,%rcx,4), %rcx
movq %rcx, %rdi
shrq $0x1c, %rdi
xorl %ecx, %edi
imull $0x1e3779b9, %edi, %edi # imm = 0x1E3779B9
movl %eax, %ecx
negb %cl
shrl %cl, %edi
leal -0x1(%rdx), %ecx
movq 0x8(%r8), %r8
movl %edi, %r9d
movl %r9d, %r10d
shrl $0x5, %r10d
movl (%r8,%r10,4), %r10d
btl %r9d, %r10d
jae 0xa786
movl %r9d, %r10d
shlq $0x4, %r10
movq 0x8(%rsi,%r10), %r11
xorq %r13, %r11
movq (%rsi,%r10), %r10
xorq %r14, %r10
orq %r11, %r10
je 0xa783
incl %r9d
andl %ecx, %r9d
cmpl %edi, %r9d
jne 0xa74a
jmp 0xa786
movl %r9d, %edx
movl %eax, %ecx
shrl %cl, %edx
testl %edx, %edx
je 0xa84b
movq 0x18(%rsp), %r15
movq 0x18(%r15), %r12
cmpq 0x20(%r15), %r12
jne 0xa7fa
movq %r12, %rax
shrq %rax
orq %r12, %rax
movq %rax, %rcx
shrq $0x2, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x4, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x8, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x10, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x20, %rcx
orq %rax, %rcx
incq %rcx
movq %rcx, 0x20(%r15)
movq 0x28(%r15), %rdi
shlq $0x4, %rcx
leaq (%rcx,%rcx,2), %rsi
callq 0x2350
movq %rax, 0x28(%r15)
jmp 0xa7fe
movq 0x28(%r15), %rax
leaq 0x1(%r12), %rcx
movq %rcx, 0x18(%r15)
leaq (%r12,%r12,2), %rcx
shlq $0x4, %rcx
movq %r13, (%rax,%rcx)
movq %r14, 0x8(%rax,%rcx)
movq $0x0, 0x28(%rax,%rcx)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax,%rcx)
movl $0x0, 0x20(%rax,%rcx)
movq 0x8(%rsp), %rdi
movq %r14, %rsi
movq %r13, %rdx
leaq 0x24(%rsp), %rcx
callq 0x8e28
movq 0x70(%rsp), %r12
incq %rbp
cmpq 0x38(%rsp), %rbp
jne 0xa53a
movq 0x30(%rsp), %rdx
incq %rdx
movq 0x38(%rsp), %rax
cmpq %rax, %rdx
movq 0x18(%rsp), %rbp
movq 0x8(%rsp), %r14
movq 0x40(%rsp), %r13
jne 0xa3f4
movq 0x8(%r13), %rdi
testq %rdi, %rdi
je 0xa8b2
movl (%r13), %ecx
movl $0x1, %edx
shll %cl, %edx
shrl $0x3, %edx
andl $-0x4, %edx
cmpl $0x5, %ecx
movl $0x4, %eax
cmovbl %eax, %edx
xorl %esi, %esi
callq 0x21e0
movl $0x0, 0x4(%r13)
movq 0x8(%r14), %rdi
testq %rdi, %rdi
je 0xa8e5
movl (%r14), %ecx
movl $0x1, %edx
shll %cl, %edx
shrl $0x3, %edx
andl $-0x4, %edx
cmpl $0x5, %ecx
movl $0x4, %eax
cmovbl %eax, %edx
xorl %esi, %esi
callq 0x21e0
movl $0x0, 0x4(%r14)
movq (%rsp), %rbx
movabsq $0x3ffffffffffffff, %r8 # imm = 0x3FFFFFFFFFFFFFF
movq 0x88(%rsp), %rdx
movq 0x68(%rsp), %rsi
incq %rsi
cmpq %rdx, %rsi
jne 0x93f8
jmp 0xa916
movq %rbx, %rdx
jmp 0x9640
testq %rbx, %rbx
je 0xa934
movq 0x18(%rbx), %rsi
movq 0x20(%rbx), %rdi
callq 0x1d6fb
movq 0x20(%rbx), %rdi
movq %rbx, %rsi
callq 0x1d6fb
movq 0x28(%rsp), %rdi
callq 0x2060
testq %r13, %r13
je 0xa96f
movq 0x10(%r13), %rsi
movq 0x18(%r13), %r14
movq %r14, %rdi
callq 0x1d6fb
movq 0x8(%r13), %rsi
movq %r14, %rdi
callq 0x1d6fb
movq %r14, %rdi
movq 0x8(%rsp), %r14
movq %r13, %rsi
callq 0x1d6fb
testq %r14, %r14
je 0xa99b
movq 0x10(%r14), %rsi
movq 0x18(%r14), %rbx
movq %rbx, %rdi
callq 0x1d6fb
movq 0x8(%r14), %rsi
movq %rbx, %rdi
callq 0x1d6fb
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1d6fb
movq 0x48(%rsp), %rdi
callq 0x2060
movq %rbp, %rdi
movl $0x1, %esi
callq 0x15d06
movq %r12, %rdi
callq 0x15a20
movq 0x90(%rsp), %rdi
movq %rbp, 0x8(%rdi)
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x7356