// File: /workspace/github_c_makefile_star2_O1/c-zhou[P]yahs/sdict.c
// Function: make_asm_dict_from_agp
asm_dict_t *make_asm_dict_from_agp(sdict_t *sdict, const char *f, int allow_unknown_oris)
{
    iostream_t *fp;
    char *line;
    char sname[256], type[4], cname[256], cstarts[16], cends[16], oris[64];
    char *name = NULL;
    uint64_t a, b;
    uint32_t l, cstart, cend, ctype, coris;
    uint32_t c, s, n;
    kvec_t(uint32_t) gs, gsize, gcomp, gtype, glink, gevid;

    fp = iostream_open(f);
    if (fp == NULL) {
        fprintf(stderr, "[E::%s] cannot open file %s for reading\n", __func__, f);
        exit(EXIT_FAILURE);
    }

    asm_dict_t *d;
    sd_seq_t *sd;
    d = asm_init(sdict);
    a = b = 0;
    s = n = 0;
    kv_init(gs);
    kv_init(gsize);
    kv_init(gcomp);
    kv_init(gtype);
    kv_init(glink);
    kv_init(gevid);
    while ((line = iostream_getline(fp)) != NULL) {
        if (is_empty_line(line) || !strncmp(line, "#", 1))
            // header or empty lines
            continue;
        
        sscanf(line, "%s %*s %*s %*s %s %s %s %s %s", sname, type, cname, cstarts, cends, oris);
        if (!name)
            name = strdup(sname);
        if (strcmp(sname, name)) {
            asm_put(d, name, a, b - a, n, s - n, gs.n, gs.a, gsize.a, gcomp.a, gtype.a, glink.a, gevid.a);
            a = 0;
            b = 0;
            n = 0;
            gs.n = 0;
            gsize.n = 0;
            gcomp.n = 0;
            gtype.n = 0;
            glink.n = 0;
            gevid.n = 0;
            free(name);
            name = strdup(sname);
        }

        ctype = agp_component_type_key(type);
        if (ctype == AGP_CT_N || ctype == AGP_CT_U) {
            // gap
            kv_push(uint32_t, gs, n);
            kv_push(uint32_t, gcomp, ctype);
            c = strtoul(cname, NULL, 10); kv_push(uint32_t, gsize, c);
            if (ctype == AGP_CT_U && c != DEFAULT_AGP_U_GAP_SIZE)
                fprintf(stderr, "[W::%s] type 'U' gap size is not %d\n", __func__, DEFAULT_AGP_U_GAP_SIZE);
            b += c;
            c = agp_gap_type_key(cstarts); kv_push(uint32_t, gtype, c);
            c = agp_linkage_key(cends); kv_push(uint32_t, glink, c);
            c = agp_linkage_evidence_key(oris); kv_push(uint32_t, gevid, c);
            continue;
        }

        cstart = strtoul(cstarts, NULL, 10);
        cend = strtoul(cends, NULL, 10);
        c = sd_get(sdict, cname);
        if (c == UINT32_MAX) {
            fprintf(stderr, "[E::%s] sequence %s not found\n", __func__, cname);
            return 0;
        }
        sd = &sdict->s[c];
        if (cstart < 1 || cstart > cend || cend > sd->len) {
            fprintf(stderr, "[E::%s] invalid sequence component %s:%u-%u on %s\n", __func__, cname, cstart, cend, sname);
            if (cend > sd->len)
                fprintf(stderr, "[E::%s] sequence end position (%u) greater than sequence length (%u)\n", __func__, cend, sd->len);
            exit(EXIT_FAILURE);
        }
        coris = agp_orientation_key(oris);
        if (!allow_unknown_oris && coris != AGP_OT_PLUS && coris != AGP_OT_MINUS) {
            // unknown orientation is not allowed
            fprintf(stderr, "[E::%s] unknown orientation of sequence component %s:%u-%u on %s: '%s'\n", __func__, cname, cstart, cend, sname, oris);
            if (allow_unknown_oris) {
                fprintf(stderr, "[E::%s] valid identifiers for unorientated sequence include: '?', '0' and 'na'\n", __func__);
                fprintf(stderr, "[E::%s] see %s\n", __func__, AGP_SPEC_ONLINE_DOC);
            } else {
                fprintf(stderr, "[E::%s] run program with '-u' option to include sequence components\n", __func__);
            }
            exit(EXIT_FAILURE);
        }
        c <<= 1;
        if (coris == AGP_OT_MINUS) c |= 1;
        l = cend - cstart + 1;
        seg_put(d, d->n, n, a, b, c, cstart - 1, l, ctype, coris);
        a += l;
        b += l;
        ++s;
        ++n;
    }
    asm_put(d, name, a, b - a, n, s - n, gs.n, gs.a, gsize.a, gcomp.a, gtype.a, glink.a, gevid.a);
    d->sdict = sdict;
#ifdef DEBUG_DICT
    for (int i = 0; i < s; ++i)
        fprintf(stderr, "[DEBUG_DICT::%s] %u %lu %u %u %u\n", __func__, d->seg[i].s, d->seg[i].a, d->seg[i].c, d->seg[i].x, d->seg[i].y);
    for (int i = 0; i < d->n; ++i)
        fprintf(stderr, "[DEBUG_DICT::%s] %s %lu %u %u\n", __func__, d->s[i].name, d->s[i].len, d->s[i].n, d->s[i].s);
#endif
    asm_index(d);

    if (name)
        free(name);
    iostream_close(fp);
    kv_destroy(gs);
    kv_destroy(gsize);
    kv_destroy(gcomp);
    kv_destroy(gtype);
    kv_destroy(glink);
    kv_destroy(gevid);

    return d;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x348, %rsp            # imm = 0x348
movl %edx, %ebp
movq %rsi, %rbx
movq %rdi, %r13
movq %rsi, %rdi
callq 0x2d17
testq %rax, %rax
je 0x6958
movq %rax, %r14
movq %r13, %rdi
callq 0x41f4
movq %rax, 0x68(%rsp)
movq %r14, %rdi
callq 0x2e4f
testq %rax, %rax
je 0x67bf
movq %rax, %r12
movl %ebp, 0xcc(%rsp)
movl $0x0, %ebx
movl $0x0, %eax
movq %rax, 0x80(%rsp)
movl $0x0, %eax
movq %rax, 0x110(%rsp)
movl $0x0, %eax
movq %rax, 0x50(%rsp)
movl $0x0, %eax
movq %rax, 0x88(%rsp)
movl $0x0, %eax
movq %rax, 0x130(%rsp)
movl $0x0, %eax
movq %rax, 0x58(%rsp)
movl $0x0, %eax
movq %rax, 0x90(%rsp)
movl $0x0, %eax
movq %rax, 0x138(%rsp)
xorl %eax, %eax
movq $0x0, 0xa0(%rsp)
movq $0x0, 0x120(%rsp)
xorl %r10d, %r10d
movq $0x0, 0x98(%rsp)
movq $0x0, 0x118(%rsp)
xorl %r11d, %r11d
movq $0x0, 0x20(%rsp)
movq $0x0, 0x128(%rsp)
movq $0x0, 0x28(%rsp)
xorl %r8d, %r8d
xorl %r9d, %r9d
xorl %edx, %edx
xorl %r15d, %r15d
movq %r13, 0xa8(%rsp)
movq %rdx, 0x60(%rsp)
movl %r8d, 0x8(%rsp)
movq %r9, 0x78(%rsp)
movq %r10, 0x10(%rsp)
movq %rax, 0x18(%rsp)
movq %r11, %rbp
movq %r15, %r13
movq %r12, %rdi
callq 0x2cf4
testl %eax, %eax
jne 0x58e3
cmpb $0x23, (%r12)
jne 0x58f8
movq %r14, %rdi
callq 0x2e4f
movq %rax, %r12
testq %rax, %rax
jne 0x58d0
jmp 0x6796
movq %r12, %rdi
leaq 0x4bf1(%rip), %rsi      # 0xa4f3
leaq 0x240(%rsp), %r15
movq %r15, %rdx
leaq 0x4(%rsp), %rcx
leaq 0x140(%rsp), %r8
leaq 0x30(%rsp), %r9
xorl %eax, %eax
leaq 0xd0(%rsp), %r10
pushq %r10
leaq 0xb8(%rsp), %r10
pushq %r10
callq 0x2260
addq $0x10, %rsp
testq %rbx, %rbx
jne 0x594e
movq %r15, %rdi
callq 0x23b0
movq %rax, %rbx
movq %r15, %rdi
movq %rbx, %rsi
callq 0x21e0
testl %eax, %eax
movq 0x50(%rsp), %rax
movq 0x58(%rsp), %r10
je 0x5a1d
movq 0x60(%rsp), %rdx
subq %rdx, %r13
movq 0x78(%rsp), %rcx
movl %ecx, %r9d
movl 0x8(%rsp), %r8d
subl %r8d, %r9d
subq $0x8, %rsp
movq 0x70(%rsp), %rdi
movq %rbx, %rsi
movq %r13, %rcx
pushq %rax
pushq %r10
pushq 0x30(%rsp)
pushq 0x30(%rsp)
pushq %rbp
pushq 0x58(%rsp)
pushq 0x58(%rsp)
callq 0x4f24
addq $0x40, %rsp
movq %rbx, %rdi
callq 0x2050
movq %r15, %rdi
callq 0x23b0
movq %rax, %rbx
xorl %r15d, %r15d
movq $0x0, 0x60(%rsp)
movl $0x0, 0x8(%rsp)
movq $0x0, 0x20(%rsp)
movq $0x0, 0x98(%rsp)
movq $0x0, 0xa0(%rsp)
movq $0x0, 0x90(%rsp)
movq $0x0, 0x88(%rsp)
movq $0x0, 0x80(%rsp)
jmp 0x5a20
movq %r13, %r15
callq 0x23d0
movq %rax, 0x70(%rsp)
movq (%rax), %rax
movsbq 0x4(%rsp), %rcx
movl (%rax,%rcx,4), %ecx
testl %ecx, %ecx
movq 0xa8(%rsp), %r13
movl $0x1505, %r12d          # imm = 0x1505
je 0x5a88
leaq 0x5(%rsp), %rdx
leaq 0x4f15(%rip), %r8       # 0xa969
leaq 0x4f10(%rip), %r9       # 0xa96b
leaq 0x4f0b(%rip), %r10      # 0xa96d
leaq 0x4f06(%rip), %r11      # 0xa96f
movl %r12d, %esi
shll $0x5, %esi
addl %r12d, %ecx
movl %ecx, %r12d
addl %esi, %r12d
movsbq (%rdx), %rcx
movl (%rax,%rcx,4), %ecx
incq %rdx
testl %ecx, %ecx
jne 0x5a69
jmp 0x5aa4
leaq 0x4eda(%rip), %r8       # 0xa969
leaq 0x4ed5(%rip), %r9       # 0xa96b
leaq 0x4ed0(%rip), %r10      # 0xa96d
leaq 0x4ecb(%rip), %r11      # 0xa96f
leal -0x2b609(%r12), %ecx
cmpl $0x13, %ecx
ja 0x5ae7
leaq 0x47a4(%rip), %rdx      # 0xa25c
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
xorl %edx, %edx
movzbl 0x4(%rsp,%rdx), %esi
movl (%rax,%rsi,4), %ecx
movzbl (%rdx,%r9), %edi
subl (%rax,%rdi,4), %ecx
testl %esi, %esi
je 0x5c24
incq %rdx
testl %ecx, %ecx
je 0x5ac3
jmp 0x5c24
cmpl $0x2b606, %r12d         # imm = 0x2B606
jne 0x69c8
xorl %edx, %edx
movzbl 0x4(%rsp,%rdx), %esi
movl (%rax,%rsi,4), %ecx
movzbl (%rdx,%r8), %edi
subl (%rax,%rdi,4), %ecx
testl %esi, %esi
je 0x5c24
incq %rdx
testl %ecx, %ecx
je 0x5af6
jmp 0x5c24
xorl %edx, %edx
movzbl 0x4(%rsp,%rdx), %esi
movl (%rax,%rsi,4), %ecx
leaq 0x4bf2(%rip), %rdi      # 0xa71d
movzbl (%rdx,%rdi), %edi
subl (%rax,%rdi,4), %ecx
testl %esi, %esi
je 0x5c24
incq %rdx
testl %ecx, %ecx
je 0x5b1c
jmp 0x5c24
xorl %edx, %edx
movzbl 0x4(%rsp,%rdx), %esi
movl (%rax,%rsi,4), %ecx
leaq 0x4e1e(%rip), %rdi      # 0xa975
movzbl (%rdx,%rdi), %edi
subl (%rax,%rdi,4), %ecx
testl %esi, %esi
je 0x5c24
incq %rdx
testl %ecx, %ecx
je 0x5b48
jmp 0x5c24
xorl %edx, %edx
movzbl 0x4(%rsp,%rdx), %esi
movl (%rax,%rsi,4), %ecx
movzbl (%rdx,%r10), %edi
subl (%rax,%rdi,4), %ecx
testl %esi, %esi
je 0x5c24
incq %rdx
testl %ecx, %ecx
je 0x5b74
jmp 0x5c24
xorl %edx, %edx
movzbl 0x4(%rsp,%rdx), %esi
movl (%rax,%rsi,4), %ecx
leaq 0x4b72(%rip), %rdi      # 0xa71b
movzbl (%rdx,%rdi), %edi
subl (%rax,%rdi,4), %ecx
testl %esi, %esi
je 0x5c24
incq %rdx
testl %ecx, %ecx
je 0x5b9a
jmp 0x5c24
xorl %edx, %edx
movzbl 0x4(%rsp,%rdx), %esi
movl (%rax,%rsi,4), %ecx
leaq 0x4da5(%rip), %rdi      # 0xa973
movzbl (%rdx,%rdi), %edi
subl (%rax,%rdi,4), %ecx
testl %esi, %esi
je 0x5c24
incq %rdx
testl %ecx, %ecx
je 0x5bbf
jmp 0x5c24
xorl %edx, %edx
movzbl 0x4(%rsp,%rdx), %esi
movl (%rax,%rsi,4), %ecx
leaq 0x4d7e(%rip), %rdi      # 0xa971
movzbl (%rdx,%rdi), %edi
subl (%rax,%rdi,4), %ecx
testl %esi, %esi
je 0x5c24
incq %rdx
testl %ecx, %ecx
je 0x5be4
jmp 0x5c24
xorl %edx, %edx
movzbl 0x4(%rsp,%rdx), %esi
movl (%rax,%rsi,4), %ecx
movzbl (%rdx,%r11), %edi
subl (%rax,%rdi,4), %ecx
testl %esi, %esi
je 0x5c24
incq %rdx
testl %ecx, %ecx
je 0x5c09
testl %ecx, %ecx
jne 0x6960
cmpl $0x2b61a, %r12d         # imm = 0x2B61A
movq 0x128(%rsp), %rax
je 0x5c4a
cmpl $0x2b613, %r12d         # imm = 0x2B613
jne 0x64b2
cmpq %rax, 0x20(%rsp)
jne 0x5c85
leaq (%rax,%rax), %r13
testq %rax, %rax
movl $0x2, %eax
cmoveq %rax, %r13
leaq (,%r13,4), %rsi
movq 0x28(%rsp), %rdi
callq 0x2290
movq %rax, %rcx
movq %r13, 0x128(%rsp)
movq 0x10(%rsp), %rax
jmp 0x5c8f
movq 0x10(%rsp), %rax
movq 0x28(%rsp), %rcx
movq 0x20(%rsp), %rdx
movl 0x8(%rsp), %esi
movl %esi, (%rcx,%rdx,4)
movq 0x120(%rsp), %rdx
cmpq %rdx, 0xa0(%rsp)
movq %rcx, 0x28(%rsp)
jne 0x5cda
leaq (%rdx,%rdx), %r13
testq %rdx, %rdx
movl $0x2, %ecx
cmoveq %rcx, %r13
leaq (,%r13,4), %rsi
movq %rax, %rdi
callq 0x2290
movq %r13, 0x120(%rsp)
movq %rax, 0x10(%rsp)
movq 0xa0(%rsp), %rcx
movl %r12d, (%rax,%rcx,4)
leaq 0x140(%rsp), %rdi
xorl %esi, %esi
movl $0xa, %edx
callq 0x2320
movq %rax, 0x48(%rsp)
movq 0x118(%rsp), %rax
cmpq %rax, 0x98(%rsp)
jne 0x5d41
leaq (%rax,%rax), %r13
testq %rax, %rax
movl $0x2, %eax
cmoveq %rax, %r13
leaq (,%r13,4), %rsi
movq %rbp, %rdi
callq 0x2290
movq %rax, %rbp
movq %r13, 0x118(%rsp)
leaq 0x4cbf(%rip), %r13      # 0xaa07
leaq 0x4ce2(%rip), %r8       # 0xaa31
leaq 0x4ccb(%rip), %r9       # 0xaa21
leaq 0x4e00(%rip), %r10      # 0xab5d
leaq 0x4cad(%rip), %r11      # 0xaa11
cmpl $0x2b61a, %r12d         # imm = 0x2B61A
sete %al
movq 0x98(%rsp), %rcx
movq 0x48(%rsp), %rdx
movl %edx, (%rbp,%rcx,4)
cmpl $0x64, %edx
setne %cl
andb %al, %cl
cmpb $0x1, %cl
je 0x648c
movq 0x70(%rsp), %rax
movq (%rax), %rax
movsbq 0x30(%rsp), %rcx
movl (%rax,%rcx,4), %ecx
movl $0x1505, %r12d          # imm = 0x1505
testl %ecx, %ecx
je 0x5dca
leaq 0x31(%rsp), %rdx
movl %r12d, %esi
shll $0x5, %esi
addl %ecx, %r12d
addl %esi, %r12d
movsbq (%rdx), %rcx
movl (%rax,%rcx,4), %ecx
incq %rdx
testl %ecx, %ecx
jne 0x5db0
cmpl $0x1297c4f0, %r12d      # imm = 0x1297C4F0
jg 0x5e20
cmpl $0xec44fe01, %r12d      # imm = 0xEC44FE01
jg 0x5e73
cmpl $0xb3971714, %r12d      # imm = 0xB3971714
je 0x5ef9
cmpl $0xd066abb9, %r12d      # imm = 0xD066ABB9
jne 0x69d1
xorl %edx, %edx
movzbl 0x30(%rsp,%rdx), %esi
movl (%rax,%rsi,4), %ecx
movzbl (%rdx,%r8), %edi
subl (%rax,%rdi,4), %ecx
testl %esi, %esi
je 0x5f79
incq %rdx
testl %ecx, %ecx
je 0x5dfc
jmp 0x5f79
cmpl $0x328bce38, %r12d      # imm = 0x328BCE38
jg 0x5eb3
cmpl $0x1297c4f1, %r12d      # imm = 0x1297C4F1
je 0x5f18
cmpl $0x192dec66, %r12d      # imm = 0x192DEC66
jne 0x69d1
xorl %edx, %edx
movzbl 0x30(%rsp,%rdx), %esi
movl (%rax,%rsi,4), %ecx
leaq 0x4bd2(%rip), %rdi      # 0xaa2a
movzbl (%rdx,%rdi), %edi
subl (%rax,%rdi,4), %ecx
testl %esi, %esi
je 0x5f79
incq %rdx
testl %ecx, %ecx
je 0x5e49
jmp 0x5f79
cmpl $0xec44fe02, %r12d      # imm = 0xEC44FE02
je 0x5f37
cmpl $0xf6e4a809, %r12d      # imm = 0xF6E4A809
jne 0x69d1
xorl %edx, %edx
movzbl 0x30(%rsp,%rdx), %esi
movl (%rax,%rsi,4), %ecx
movzbl (%rdx,%r10), %edi
subl (%rax,%rdi,4), %ecx
testl %esi, %esi
je 0x5f79
incq %rdx
testl %ecx, %ecx
je 0x5e8f
jmp 0x5f79
cmpl $0x328bce39, %r12d      # imm = 0x328BCE39
je 0x5f56
cmpl $0x4bbf6747, %r12d      # imm = 0x4BBF6747
jne 0x69d1
xorl %edx, %edx
movzbl 0x30(%rsp,%rdx), %esi
movl (%rax,%rsi,4), %ecx
leaq 0x4b15(%rip), %rdi      # 0xa9f3
movzbl (%rdx,%rdi), %edi
subl (%rax,%rdi,4), %ecx
testl %esi, %esi
je 0x5f79
incq %rdx
testl %ecx, %ecx
je 0x5ecf
jmp 0x5f79
xorl %edx, %edx
movzbl 0x30(%rsp,%rdx), %esi
movl (%rax,%rsi,4), %ecx
movzbl (%rdx,%r13), %edi
subl (%rax,%rdi,4), %ecx
testl %esi, %esi
je 0x5f79
incq %rdx
testl %ecx, %ecx
je 0x5efb
jmp 0x5f79
xorl %edx, %edx
movzbl 0x30(%rsp,%rdx), %esi
movl (%rax,%rsi,4), %ecx
movzbl (%rdx,%r11), %edi
subl (%rax,%rdi,4), %ecx
testl %esi, %esi
je 0x5f79
incq %rdx
testl %ecx, %ecx
je 0x5f1a
jmp 0x5f79
xorl %edx, %edx
movzbl 0x30(%rsp,%rdx), %esi
movl (%rax,%rsi,4), %ecx
movzbl (%rdx,%r9), %edi
subl (%rax,%rdi,4), %ecx
testl %esi, %esi
je 0x5f79
incq %rdx
testl %ecx, %ecx
je 0x5f39
jmp 0x5f79
xorl %edx, %edx
movzbl 0x30(%rsp,%rdx), %esi
movl (%rax,%rsi,4), %ecx
leaq 0x4a95(%rip), %rdi      # 0xa9fc
movzbl (%rdx,%rdi), %edi
subl (%rax,%rdi,4), %ecx
testl %esi, %esi
je 0x5f79
incq %rdx
testl %ecx, %ecx
je 0x5f58
testl %ecx, %ecx
jne 0x6975
movq 0x138(%rsp), %r10
cmpq %r10, 0x90(%rsp)
movq 0x18(%rsp), %rax
jne 0x5fbb
leaq (%r10,%r10), %r13
testq %r10, %r10
movl $0x2, %ecx
cmoveq %rcx, %r13
leaq (,%r13,4), %rsi
movq %rax, %rdi
callq 0x2290
movq %r13, %r10
leaq 0x4ae7(%rip), %r8       # 0xaaa9
leaq 0x4ae4(%rip), %r9       # 0xaaad
movq %rax, 0x18(%rsp)
movq 0x90(%rsp), %rcx
movl %r12d, (%rax,%rcx,4)
movq 0x70(%rsp), %rax
movq (%rax), %rax
movsbq 0xb0(%rsp), %rcx
movl (%rax,%rcx,4), %ecx
movl $0x1505, %r12d          # imm = 0x1505
testl %ecx, %ecx
je 0x601a
leaq 0xb1(%rsp), %rdx
movl %r12d, %esi
shll $0x5, %esi
addl %ecx, %r12d
addl %esi, %r12d
movsbq (%rdx), %rcx
movl (%rax,%rcx,4), %ecx
incq %rdx
testl %ecx, %ecx
jne 0x6000
cmpl $0xb88c316, %r12d       # imm = 0xB88C316
je 0x6052
cmpl $0x5978e2, %r12d        # imm = 0x5978E2
jne 0x69ab
xorl %edx, %edx
movzbl 0xb0(%rsp,%rdx), %esi
movl (%rax,%rsi,4), %ecx
movzbl (%rdx,%r9), %edi
subl (%rax,%rdi,4), %ecx
testl %esi, %esi
je 0x6072
incq %rdx
testl %ecx, %ecx
je 0x6032
jmp 0x6072
xorl %edx, %edx
movzbl 0xb0(%rsp,%rdx), %esi
movl (%rax,%rsi,4), %ecx
movzbl (%rdx,%r8), %edi
subl (%rax,%rdi,4), %ecx
testl %esi, %esi
je 0x6072
incq %rdx
testl %ecx, %ecx
je 0x6054
testl %ecx, %ecx
jne 0x698a
movq %r10, 0x138(%rsp)
movq 0x130(%rsp), %rdi
cmpq %rdi, 0x88(%rsp)
jne 0x60bb
leaq (%rdi,%rdi), %r13
testq %rdi, %rdi
movl $0x2, %eax
cmoveq %rax, %r13
leaq (,%r13,4), %rsi
movq 0x58(%rsp), %rdi
callq 0x2290
movq %r13, %rdi
jmp 0x60c0
movq 0x58(%rsp), %rax
leaq 0x4abf(%rip), %r8       # 0xab86
leaq 0x4a9e(%rip), %r9       # 0xab6c
leaq 0x4a75(%rip), %r10      # 0xab4a
leaq 0x4a53(%rip), %r11      # 0xab2f
leaq 0x4a40(%rip), %r13      # 0xab23
movq %rax, 0x58(%rsp)
movq 0x88(%rsp), %rcx
movl %r12d, (%rax,%rcx,4)
movq 0x70(%rsp), %rax
movq (%rax), %rax
movsbq 0xd0(%rsp), %rcx
movl (%rax,%rcx,4), %ecx
movl $0x1505, %r12d          # imm = 0x1505
testl %ecx, %ecx
je 0x6134
leaq 0xd1(%rsp), %rdx
movl %r12d, %esi
shll $0x5, %esi
addl %ecx, %r12d
addl %esi, %r12d
movsbq (%rdx), %rcx
movl (%rax,%rcx,4), %ecx
incq %rdx
testl %ecx, %ecx
jne 0x611a
cmpl $0xb888f82, %r12d       # imm = 0xB888F82
movq %rdi, 0x130(%rsp)
jg 0x61a2
cmpl $0xe2eecd08, %r12d      # imm = 0xE2EECD08
jg 0x6205
cmpl $0x995556b4, %r12d      # imm = 0x995556B4
je 0x62b1
cmpl $0xb57b3070, %r12d      # imm = 0xB57B3070
je 0x6361
cmpl $0xd37e4828, %r12d      # imm = 0xD37E4828
jne 0x69da
xorl %edx, %edx
movzbl 0xd0(%rsp,%rdx), %esi
movl (%rax,%rsi,4), %ecx
movzbl (%rdx,%r10), %edi
subl (%rax,%rdi,4), %ecx
testl %esi, %esi
je 0x63f3
incq %rdx
testl %ecx, %ecx
je 0x617b
jmp 0x63f3
cmpl $0x13baa0b0, %r12d      # imm = 0x13BAA0B0
jg 0x625b
cmpl $0xb888f83, %r12d       # imm = 0xB888F83
je 0x62da
cmpl $0xb889c8a, %r12d       # imm = 0xB889C8A
je 0x6383
cmpl $0xdc4ffd9, %r12d       # imm = 0xDC4FFD9
jne 0x69da
xorl %edx, %edx
movzbl 0xd0(%rsp,%rdx), %esi
movl (%rax,%rsi,4), %ecx
leaq 0x496d(%rip), %rdi      # 0xab57
movzbl (%rdx,%rdi), %edi
subl (%rax,%rdi,4), %ecx
testl %esi, %esi
je 0x63f3
incq %rdx
testl %ecx, %ecx
je 0x61d8
jmp 0x63f3
cmpl $0xe2eecd09, %r12d      # imm = 0xE2EECD09
je 0x6309
cmpl $0xf627ffb1, %r12d      # imm = 0xF627FFB1
je 0x63ab
cmpl $0x5978d4, %r12d        # imm = 0x5978D4
jne 0x69da
xorl %edx, %edx
movzbl 0xd0(%rsp,%rdx), %esi
movl (%rax,%rsi,4), %ecx
leaq 0x458f(%rip), %rdi      # 0xa7cf
movzbl (%rdx,%rdi), %edi
subl (%rax,%rdi,4), %ecx
testl %esi, %esi
je 0x63f3
incq %rdx
testl %ecx, %ecx
je 0x622e
jmp 0x63f3
cmpl $0x13baa0b1, %r12d      # imm = 0x13BAA0B1
je 0x6332
cmpl $0x1c93c7f4, %r12d      # imm = 0x1C93C7F4
je 0x63cd
cmpl $0x272d87fd, %r12d      # imm = 0x272D87FD
jne 0x69da
xorl %edx, %edx
movzbl 0xd0(%rsp,%rdx), %esi
movl (%rax,%rsi,4), %ecx
leaq 0x48a6(%rip), %rdi      # 0xab3c
movzbl (%rdx,%rdi), %edi
subl (%rax,%rdi,4), %ecx
testl %esi, %esi
je 0x63f3
incq %rdx
testl %ecx, %ecx
je 0x6284
jmp 0x63f3
xorl %edx, %edx
movzbl 0xd0(%rsp,%rdx), %esi
movl (%rax,%rsi,4), %ecx
movzbl (%rdx,%r8), %edi
subl (%rax,%rdi,4), %ecx
testl %esi, %esi
je 0x63f3
incq %rdx
testl %ecx, %ecx
je 0x62b3
jmp 0x63f3
xorl %edx, %edx
movzbl 0xd0(%rsp,%rdx), %esi
movl (%rax,%rsi,4), %ecx
leaq 0x4876(%rip), %rdi      # 0xab64
movzbl (%rdx,%rdi), %edi
subl (%rax,%rdi,4), %ecx
testl %esi, %esi
je 0x63f3
incq %rdx
testl %ecx, %ecx
je 0x62dc
jmp 0x63f3
xorl %edx, %edx
movzbl 0xd0(%rsp,%rdx), %esi
movl (%rax,%rsi,4), %ecx
movzbl (%rdx,%r11), %edi
subl (%rax,%rdi,4), %ecx
testl %esi, %esi
je 0x63f3
incq %rdx
testl %ecx, %ecx
je 0x630b
jmp 0x63f3
xorl %edx, %edx
movzbl 0xd0(%rsp,%rdx), %esi
movl (%rax,%rsi,4), %ecx
leaq 0x47d1(%rip), %rdi      # 0xab17
movzbl (%rdx,%rdi), %edi
subl (%rax,%rdi,4), %ecx
testl %esi, %esi
je 0x63f3
incq %rdx
testl %ecx, %ecx
je 0x6334
jmp 0x63f3
xorl %edx, %edx
movzbl 0xd0(%rsp,%rdx), %esi
movl (%rax,%rsi,4), %ecx
movzbl (%rdx,%r9), %edi
subl (%rax,%rdi,4), %ecx
testl %esi, %esi
je 0x63f3
incq %rdx
testl %ecx, %ecx
je 0x6363
jmp 0x63f3
xorl %edx, %edx
movzbl 0xd0(%rsp,%rdx), %esi
movl (%rax,%rsi,4), %ecx
leaq 0x47d1(%rip), %rdi      # 0xab68
movzbl (%rdx,%rdi), %edi
subl (%rax,%rdi,4), %ecx
testl %esi, %esi
je 0x63f3
incq %rdx
testl %ecx, %ecx
je 0x6385
jmp 0x63f3
xorl %edx, %edx
movzbl 0xd0(%rsp,%rdx), %esi
movl (%rax,%rsi,4), %ecx
movzbl (%rdx,%r13), %edi
subl (%rax,%rdi,4), %ecx
testl %esi, %esi
je 0x63f3
incq %rdx
testl %ecx, %ecx
je 0x63ad
jmp 0x63f3
xorl %edx, %edx
movzbl 0xd0(%rsp,%rdx), %esi
movl (%rax,%rsi,4), %ecx
leaq 0x479e(%rip), %rdi      # 0xab7f
movzbl (%rdx,%rdi), %edi
subl (%rax,%rdi,4), %ecx
testl %esi, %esi
je 0x63f3
incq %rdx
testl %ecx, %ecx
je 0x63cf
testl %ecx, %ecx
jne 0x6993
movq 0x110(%rsp), %rax
cmpq %rax, 0x80(%rsp)
jne 0x6439
leaq (%rax,%rax), %r13
testq %rax, %rax
movl $0x2, %eax
cmoveq %rax, %r13
leaq (,%r13,4), %rsi
movq 0x50(%rsp), %rdi
callq 0x2290
movq %r13, 0x110(%rsp)
jmp 0x643e
movq 0x50(%rsp), %rax
incq 0x20(%rsp)
incq 0xa0(%rsp)
incq 0x98(%rsp)
movl 0x48(%rsp), %r13d
addq %r15, %r13
incq 0x90(%rsp)
incq 0x88(%rsp)
movq %rax, 0x50(%rsp)
movq 0x80(%rsp), %rcx
movl %r12d, (%rax,%rcx,4)
incq %rcx
movq %rcx, 0x80(%rsp)
jmp 0x58e3
callq 0x268e
leaq 0x4579(%rip), %r11      # 0xaa11
leaq 0x46be(%rip), %r10      # 0xab5d
leaq 0x457b(%rip), %r9       # 0xaa21
leaq 0x4584(%rip), %r8       # 0xaa31
jmp 0x5d90
leaq 0x30(%rsp), %rdi
xorl %esi, %esi
movl $0xa, %edx
callq 0x2320
movq %rax, 0xc0(%rsp)
leaq 0xb0(%rsp), %rdi
xorl %esi, %esi
movl $0xa, %edx
callq 0x2320
movq %rax, 0x48(%rsp)
movq %r13, %rdi
leaq 0x140(%rsp), %rsi
callq 0x472d
cmpl $-0x1, %eax
je 0x6923
movq %r13, %rdx
movl %eax, %ecx
leaq (%rcx,%rcx,2), %r13
shlq $0x3, %r13
addq 0x8(%rdx), %r13
movq 0xc0(%rsp), %r8
leal -0x1(%r8), %r10d
movq 0x48(%rsp), %rcx
cmpl %ecx, %r10d
movq %rcx, %r9
jae 0x68b9
cmpl %r9d, 0x10(%r13)
jb 0x68b9
movq 0x70(%rsp), %rcx
movq (%rcx), %rcx
movsbq 0xd0(%rsp), %rdx
movl (%rcx,%rdx,4), %edx
movl $0x1505, %r11d          # imm = 0x1505
testl %edx, %edx
je 0x6588
leaq 0xd1(%rsp), %rsi
leaq 0x4269(%rip), %r9       # 0xa7cb
leaq 0x3c33(%rip), %r13      # 0xa19c
movl %r11d, %edi
shll $0x5, %edi
addl %r11d, %edx
movl %edx, %r11d
addl %edi, %r11d
movsbq (%rsi), %rdx
movl (%rcx,%rdx,4), %edx
incq %rsi
testl %edx, %edx
jne 0x6569
jmp 0x6596
leaq 0x423c(%rip), %r9       # 0xa7cb
leaq 0x3c06(%rip), %r13      # 0xa19c
cmpl $0x2b5e3, %r11d         # imm = 0x2B5E3
jg 0x65f7
cmpl $0x2b5d0, %r11d         # imm = 0x2B5D0
je 0x6698
cmpl $0x2b5d2, %r11d         # imm = 0x2B5D2
je 0x664b
cmpl $0x2b5d5, %r11d         # imm = 0x2B5D5
jne 0x6a5b
xorl %esi, %esi
movzbl 0xd0(%rsp,%rsi), %edi
movl (%rcx,%rdi,4), %edx
leaq 0x3bdb(%rip), %r8       # 0xa1b5
movzbl (%rsi,%r8), %r8d
subl (%rcx,%r8,4), %edx
testl %edi, %edi
je 0x66e3
incq %rsi
testl %edx, %edx
je 0x65c8
jmp 0x66e3
cmpl $0x2b5e4, %r11d         # imm = 0x2B5E4
je 0x66bb
cmpl $0x7ca1b285, %r11d      # imm = 0x7CA1B285
je 0x666e
cmpl $0x5978d4, %r11d        # imm = 0x5978D4
jne 0x6a5b
xorl %esi, %esi
movzbl 0xd0(%rsp,%rsi), %edi
movl (%rcx,%rdi,4), %edx
leaq 0x41a1(%rip), %r8       # 0xa7cf
movzbl (%rsi,%r8), %r8d
subl (%rcx,%r8,4), %edx
testl %edi, %edi
je 0x66e3
incq %rsi
testl %edx, %edx
je 0x661c
jmp 0x66e3
xorl %esi, %esi
movzbl 0xd0(%rsp,%rsi), %edi
movl (%rcx,%rdi,4), %edx
movzbl (%rsi,%r13), %r8d
subl (%rcx,%r8,4), %edx
testl %edi, %edi
je 0x66e3
incq %rsi
testl %edx, %edx
je 0x664d
jmp 0x66e3
xorl %esi, %esi
movzbl 0xd0(%rsp,%rsi), %edi
movl (%rcx,%rdi,4), %edx
leaq 0x4592(%rip), %r8       # 0xac14
movzbl (%rsi,%r8), %r8d
subl (%rcx,%r8,4), %edx
testl %edi, %edi
je 0x66e3
incq %rsi
testl %edx, %edx
je 0x6670
jmp 0x66e3
xorl %esi, %esi
movzbl 0xd0(%rsp,%rsi), %edi
movl (%rcx,%rdi,4), %edx
movzbl (%rsi,%r9), %r8d
subl (%rcx,%r8,4), %edx
testl %edi, %edi
je 0x66e3
incq %rsi
testl %edx, %edx
je 0x669a
jmp 0x66e3
xorl %esi, %esi
movzbl 0xd0(%rsp,%rsi), %edi
movl (%rcx,%rdi,4), %edx
leaq 0x40fe(%rip), %r8       # 0xa7cd
movzbl (%rsi,%r8), %r8d
subl (%rcx,%r8,4), %edx
testl %edi, %edi
je 0x66e3
incq %rsi
testl %edx, %edx
je 0x66bd
testl %edx, %edx
jne 0x69e3
cmpl $0x0, 0xcc(%rsp)
jne 0x6707
movl %r11d, %ecx
andl $-0x3, %ecx
cmpl $0x2b5d0, %ecx          # imm = 0x2B5D0
jne 0x69f3
xorl %ecx, %ecx
cmpl $0x2b5d2, %r11d         # imm = 0x2B5D2
sete %cl
leal (%rcx,%rax,2), %r9d
movq 0x48(%rsp), %rax
subl 0xc0(%rsp), %eax
incl %eax
movq 0x68(%rsp), %rdi
movl (%rdi), %esi
movl 0x8(%rsp), %edx
movq 0x60(%rsp), %r13
movq %r13, %rcx
movq %r15, %r8
pushq %r11
pushq %r12
movq %rax, %r12
pushq %rax
pushq %r10
callq 0x5252
addq $0x20, %rsp
addq %r12, %r13
addq %r12, %r15
movq 0x78(%rsp), %r12
incl %r12d
incl 0x8(%rsp)
movq %r14, %rdi
callq 0x2e4f
movq %r13, %rdx
movq %r12, %r9
movq %rax, %r12
testq %rax, %rax
movq 0x18(%rsp), %rax
movq 0x10(%rsp), %r10
movq %rbp, %r11
movl 0x8(%rsp), %r8d
movq 0xa8(%rsp), %r13
jne 0x58b1
jmp 0x67f8
movq %r13, %r15
movq 0xa8(%rsp), %r13
movq 0x18(%rsp), %rax
movq 0x10(%rsp), %r10
movq %rbp, %r11
movq 0x78(%rsp), %r9
movl 0x8(%rsp), %r8d
movq 0x60(%rsp), %rdx
jmp 0x67f8
xorl %r9d, %r9d
xorl %r15d, %r15d
xorl %edx, %edx
xorl %r8d, %r8d
movq $0x0, 0x28(%rsp)
movq $0x0, 0x20(%rsp)
xorl %r11d, %r11d
xorl %r10d, %r10d
xorl %eax, %eax
movq $0x0, 0x58(%rsp)
movq $0x0, 0x50(%rsp)
xorl %ebx, %ebx
movq %r14, 0x8(%rsp)
subq %rdx, %r15
subl %r8d, %r9d
subq $0x8, %rsp
movq %r13, %rbp
movq 0x70(%rsp), %r13
movq %r13, %rdi
movq %rbx, %rsi
movq %r15, %rcx
movq 0x58(%rsp), %r15
pushq %r15
movq 0x68(%rsp), %r12
pushq %r12
movq %rax, 0x30(%rsp)
pushq %rax
movq %r10, 0x30(%rsp)
pushq %r10
movq %r11, %r14
pushq %r11
pushq 0x58(%rsp)
pushq 0x58(%rsp)
callq 0x4f24
addq $0x40, %rsp
movq %rbp, 0x38(%r13)
movq %r13, %rdi
callq 0x564b
testq %rbx, %rbx
je 0x6862
movq %rbx, %rdi
callq 0x2050
movq 0x8(%rsp), %rdi
callq 0x2ded
movq 0x28(%rsp), %rdi
callq 0x2050
movq %r14, %rdi
callq 0x2050
movq 0x10(%rsp), %rdi
callq 0x2050
movq 0x18(%rsp), %rdi
callq 0x2050
movq %r12, %rdi
callq 0x2050
movq %r15, %rdi
callq 0x2050
movq 0x68(%rsp), %rax
addq $0x348, %rsp            # imm = 0x348
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x7730(%rip), %rbx      # 0xdff0
movq (%rbx), %rdi
subq $0x8, %rsp
leaq 0x3c87(%rip), %rsi      # 0xa555
leaq 0x3c07(%rip), %rdx      # 0xa4dc
leaq 0x148(%rsp), %rcx
movq %r9, %r14
xorl %eax, %eax
leaq 0x248(%rsp), %r10
pushq %r10
callq 0x2200
addq $0x10, %rsp
movl 0x10(%r13), %r8d
cmpl %r14d, %r8d
jae 0x6919
movq %r14, %rcx
movq (%rbx), %rdi
leaq 0x3c7d(%rip), %rsi      # 0xa588
leaq 0x3bca(%rip), %rdx      # 0xa4dc
xorl %eax, %eax
callq 0x2200
movl $0x1, %edi
callq 0x2360
movq 0x76c6(%rip), %rax      # 0xdff0
movq (%rax), %rdi
leaq 0x3c02(%rip), %rsi      # 0xa536
leaq 0x3ba1(%rip), %rdx      # 0xa4dc
movq $0x0, 0x68(%rsp)
leaq 0x140(%rsp), %rcx
xorl %eax, %eax
callq 0x2200
jmp 0x68a2
movq %rbx, %rdi
callq 0x26b6
leaq 0x4051(%rip), %rdi      # 0xa9b8
leaq 0x4033(%rip), %rsi      # 0xa9a1
leaq 0x4(%rsp), %rdx
jmp 0x69c1
leaq 0x40f8(%rip), %rdi      # 0xaa74
leaq 0x40e0(%rip), %rsi      # 0xaa63
leaq 0x30(%rsp), %rdx
jmp 0x69c1
leaq 0x4152(%rip), %rdi      # 0xaae3
jmp 0x69b2
leaq 0x423d(%rip), %rdi      # 0xabd7
leaq 0x421d(%rip), %rsi      # 0xabbe
leaq 0xd0(%rsp), %rdx
jmp 0x69c1
leaq 0x40fe(%rip), %rdi      # 0xaab0
leaq 0x411a(%rip), %rsi      # 0xaad3
leaq 0xb0(%rsp), %rdx
xorl %eax, %eax
callq 0x8da6
leaq 0x3fa8(%rip), %rdi      # 0xa977
jmp 0x6967
leaq 0x4067(%rip), %rdi      # 0xaa3f
jmp 0x697c
leaq 0x41b1(%rip), %rdi      # 0xab92
jmp 0x699a
leaq 0x426a(%rip), %rdi      # 0xac54
leaq 0x424f(%rip), %rsi      # 0xac40
jmp 0x69a1
movq 0x75f6(%rip), %r14      # 0xdff0
movq (%r14), %rdi
leaq 0x3bca(%rip), %rsi      # 0xa5ce
leaq 0x3ad1(%rip), %rbx      # 0xa4dc
leaq 0x140(%rsp), %rcx
movq %rbx, %rdx
movq 0xc0(%rsp), %r8
movq 0x48(%rsp), %r9
xorl %eax, %eax
leaq 0xd0(%rsp), %r10
pushq %r10
leaq 0x248(%rsp), %r10
pushq %r10
callq 0x2200
addq $0x10, %rsp
movq (%r14), %rdi
leaq 0x3c6e(%rip), %rsi      # 0xa6ba
movq %rbx, %rdx
xorl %eax, %eax
callq 0x2200
jmp 0x6919
leaq 0x41b7(%rip), %rdi      # 0xac19
jmp 0x69ea