// File: /workspace/github_c_makefile_star2_O1/samtools[P]htslib/htscodecs/htscodecs/tokenise_name3.c
// Function: tok3_encode_names
uint8_t *tok3_encode_names(char *blk, int len, int level, int use_arith,
                           int *out_len, int *last_start_p) {
    int last_start = 0, i, j, nreads;

    if (len < 0) {
        *out_len = 0;
        return NULL;
    }

    // Count lines
    for (nreads = i = 0; i < len; i++)
        if (blk[i] <= '\n') // \n or \0 separated entries
            nreads++;

    name_context *ctx = create_context(nreads);
    if (!ctx)
        return NULL;

    // Construct trie
    int ctr = 0;
    for (i = j = 0; i < len; j=++i) {
        while (i < len && blk[i] > '\n')
            i++;
        if (i >= len)
            break;

        //blk[i] = '\0';
        last_start = i+1;
        if (build_trie(ctx, &blk[j], i-j, ctr++) < 0) {
            free_context(ctx);
            return NULL;
        }
    }
    if (last_start_p)
        *last_start_p = last_start;

    //fprintf(stderr, "Processed %d of %d in block, line %d\n", last_start, len, ctr);

    // Encode name
    for (i = j = 0; i < len; j=++i) {
        while (i < len && (signed char)blk[i] >= ' ') // non-ASCII check
            i++;
        if (i >= len)
            break;

        if (blk[i] != '\0' && blk[i] != '\n') {
            // Names must be 7-bit ASCII printable
            free_context(ctx);
            return NULL;
        }

        blk[i] = '\0';
        // try both 0 and 1 and pick best?
        if (encode_name(ctx, &blk[j], i-j, 1) < 0) {
            free_context(ctx);
            return NULL;
        }
    }

#if 0
    for (i = 0; i < ctx->max_tok*16; i++) {
        char fn[1024];
        if (!ctx->desc[i].buf_l) continue;
        sprintf(fn, "_tok.%02d_%02d.%d", i>>4,i&15,i);
        FILE *fp = fopen(fn, "w");
        fwrite(ctx->desc[i].buf, 1, ctx->desc[i].buf_l, fp);
        fclose(fp);
    }
#endif

    //dump_trie(t_head, 0);

    // FIXME: merge descriptors
    //
    // If we see foo7:1 foo7:12 foo7:7 etc then foo: is constant,
    // but it's encoded as alpha<foo>+dig<7>+char<:> instead of alpha<foo7:>.
    // Any time token type 0 is all match beyond the first location we have
    // a candidate for merging in string form.
    //
    // This saves around .1 to 1.3 percent on varying data sets.
    // Cruder hack is dedicated prefix/suffix matching to short-cut this.


    // Drop N_TYPE blocks if they all contain matches bar the first item,
    // as we can regenerate these from the subsequent blocks types during
    // decode.
    for (i = 0; i < ctx->max_tok*16; i+=16) {
        if (!ctx->desc[i].buf_l) continue;

        int z;
        for (z=1; z<ctx->desc[i].buf_l; z++) {
            if (ctx->desc[i].buf[z] != N_MATCH)
                break;
        }
        if (z == ctx->desc[i].buf_l) {
            int k;
            for (k=1; k<16; k++)
                if (ctx->desc[i+k].buf_l)
                    break;

            if (k < 16) {
                ctx->desc[i].buf_l = 0;
                free(ctx->desc[i].buf);
                ctx->desc[i].buf = NULL;
            }
        }
    }

    // Serialise descriptors
    uint32_t tot_size = 9;
    for (i = 0; i < ctx->max_tok*16; i++) {
        if (!ctx->desc[i].buf_l) continue;

        int tnum = i>>4;
        int ttype = i&15;

        uint64_t out_len = 1.5 * arith_compress_bound(ctx->desc[i].buf_l, 1); // guesswork
        uint8_t *out = malloc(out_len);
        if (!out) {
            free_context(ctx);
            return NULL;
        }

        if (compress(ctx->desc[i].buf, ctx->desc[i].buf_l, i&0xf, level,
                     use_arith, out, &out_len) < 0) {
            free_context(ctx);
            free(out);
            return NULL;
        }

        free(ctx->desc[i].buf);
        ctx->desc[i].buf = out;
        ctx->desc[i].buf_l = out_len;
        ctx->desc[i].tnum = tnum;
        ctx->desc[i].ttype = ttype;

        // Find dups
        int j;
        for (j = 0; j < i; j++) {
            if (!ctx->desc[j].buf)
                continue;
            if (ctx->desc[i].buf_l != ctx->desc[j].buf_l || ctx->desc[i].buf_l <= 4)
                continue;
            if (memcmp(ctx->desc[i].buf, ctx->desc[j].buf, ctx->desc[i].buf_l) == 0)
                break;
        }
        if (j < i) {
            ctx->desc[i].dup_from = j;
            tot_size += 3; // flag, dup_from, ttype
        } else {
            ctx->desc[i].dup_from = -1;
            tot_size += out_len + 1; // ttype
        }
    }

#if 0
    for (i = 0; i < ctx->max_tok*16; i++) {
        char fn[1024];
        if (!ctx->desc[i].buf_l && ctx->desc[i].dup_from == -1) continue;
        sprintf(fn, "_tok.%02d_%02d.%d.comp", i>>4,i&15,i);
        FILE *fp = fopen(fn, "w");
        fwrite(ctx->desc[i].buf, 1, ctx->desc[i].buf_l, fp);
        fclose(fp);
    }
#endif

    // Write
    uint8_t *out = malloc(tot_size+13);
    if (!out) {
        free_context(ctx);
        return NULL;
    }

    uint8_t *cp = out;

    *out_len = tot_size;
//    *(uint32_t *)cp = last_start; cp += 4;
//    *(uint32_t *)cp = nreads;     cp += 4;
    *cp++ = (last_start >>  0) & 0xff;
    *cp++ = (last_start >>  8) & 0xff;
    *cp++ = (last_start >> 16) & 0xff;
    *cp++ = (last_start >> 24) & 0xff;
    *cp++ = (nreads     >>  0) & 0xff;
    *cp++ = (nreads     >>  8) & 0xff;
    *cp++ = (nreads     >> 16) & 0xff;
    *cp++ = (nreads     >> 24) & 0xff;
    *cp++ = use_arith;
    //write(1, &nreads, 4);
    int last_tnum = -1;
    for (i = 0; i < ctx->max_tok*16; i++) {
        if (!ctx->desc[i].buf_l) continue;
        uint8_t ttype8 = ctx->desc[i].ttype;
        if (ctx->desc[i].tnum != last_tnum) {
            ttype8 |= 128;
            last_tnum = ctx->desc[i].tnum;
        }
        if (ctx->desc[i].dup_from >= 0) {
            //fprintf(stderr, "Dup %d from %d, sz %d\n", i, ctx->desc[i].dup_from, ctx->desc[i].buf_l);
            *cp++ = ttype8 | 64;
            *cp++ = ctx->desc[i].dup_from >> 4;
            *cp++ = ctx->desc[i].dup_from & 15;
        } else {
            *cp++ = ttype8;
            memcpy(cp, ctx->desc[i].buf, ctx->desc[i].buf_l);
            cp += ctx->desc[i].buf_l;
        }
    }

    //assert(cp-out == tot_size);

    free_context(ctx);

    return out;
}

// Assembly:
testl %esi, %esi
js 0x7d0dc
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
leaq -0x27f8(%rsp), %rsp
movl %ecx, %ebx
movl %edx, %r14d
movl %esi, %r13d
movq %rdi, %rbp
movl %esi, %edx
movq %r8, 0xc8(%rsp)
movq %r9, 0x70(%rsp)
je 0x7d0e6
xorl %eax, %eax
xorl %edi, %edi
xorl %ecx, %ecx
cmpb $0xb, (%rbp,%rax)
setl %cl
addl %ecx, %edi
incq %rax
cmpq %rax, %rdx
jne 0x7d0c6
jmp 0x7d0e8
movl $0x0, (%r8)
xorl %eax, %eax
retq
xorl %edi, %edi
movq %rdx, 0x68(%rsp)
movl %edi, 0x9c(%rsp)
callq 0x7ec51
movq $0x0, 0x80(%rsp)
testq %rax, %rax
je 0x7ec3d
movq %rax, %r12
movq %r14, 0x88(%rsp)
testl %r13d, %r13d
movq %rax, 0x18(%rsp)
movl %ebx, 0x44(%rsp)
movq %rbp, 0x60(%rsp)
movq 0x68(%rsp), %rdx
movl %r13d, 0x50(%rsp)
je 0x7d428
xorl %r15d, %r15d
movl $0x0, 0x38(%rsp)
movslq %r15d, %r14
movb $0x1, %al
cmpb $0xb, (%rbp,%r14)
movl %r15d, %ebx
jl 0x7d175
leaq 0x1(%r14), %rcx
movl %r15d, %ebx
cmpq %rdx, %rcx
setl %al
jge 0x7d41d
incl %ebx
cmpb $0xb, (%rbp,%rcx)
leaq 0x1(%rcx), %rcx
jge 0x7d15c
testb %al, %al
je 0x7d41d
cmpq $0x0, 0x10(%r12)
jne 0x7d1a7
movl $0x1, %edi
movl $0x18, %esi
callq 0x4300
movq 0x68(%rsp), %rdx
movq %rax, 0x10(%r12)
testq %rax, %rax
je 0x7ec35
movq %rbx, %rax
cmpl %r15d, %eax
jne 0x7d1d3
incl 0x38(%rsp)
incl %ebx
movl %ebx, %r15d
movq %rbx, 0x80(%rsp)
movl 0x50(%rsp), %r13d
cmpl %r13d, %ebx
jl 0x7d145
jmp 0x7d428
leaq (%r14,%rbp), %r8
movq %rbx, %rax
subl %r14d, %eax
movslq %eax, %r9
movl 0x38(%rsp), %eax
shll $0x8, %eax
movl %eax, 0x10(%rsp)
xorl %r14d, %r14d
movq %r8, 0x30(%rsp)
movq %r9, 0x8(%rsp)
movq 0x10(%r12), %r10
incl 0x10(%r10)
cmpq %r9, %r14
jae 0x7d40c
movzbl (%r8,%r14), %r13d
cmpl $0xb, %r13d
jb 0x7d40c
testb %r13b, %r13b
js 0x7d3fa
movq (%r10), %rax
testq %rax, %rax
je 0x7d23e
movq %rax, %r15
cmpb 0x14(%rax), %r13b
je 0x7d277
movq 0x8(%r15), %rax
testq %rax, %rax
jne 0x7d22a
jmp 0x7d241
xorl %r15d, %r15d
cmpq $0x0, 0x18(%r12)
jne 0x7d29a
movq %r10, 0x28(%rsp)
movl $0x20, %edi
callq 0x4680
testq %rax, %rax
je 0x7d27f
movq $0x18, (%rax)
xorpd %xmm0, %xmm0
movupd %xmm0, 0x8(%rax)
movq $0x0, 0x18(%rax)
jmp 0x7d281
movq %r15, %rax
jmp 0x7d3ec
xorl %eax, %eax
movq %rax, 0x18(%r12)
movq 0x68(%rsp), %rdx
movq 0x30(%rsp), %r8
movq 0x8(%rsp), %r9
movq 0x28(%rsp), %r10
movq 0x18(%r12), %r12
movq 0x18(%r12), %rax
testq %rax, %rax
je 0x7d2b6
movq (%rax), %rcx
movq %rcx, 0x18(%r12)
jmp 0x7d3ba
movq 0x8(%r12), %rsi
testq %rsi, %rsi
je 0x7d2f6
movq 0x10(%r12), %rcx
movq %rsi, %rdi
shlq $0x4, %rdi
movq -0x8(%rcx,%rdi), %rax
movq (%r12), %rdx
addq %rax, %rdx
cmpq $0xfffff, %rdx          # imm = 0xFFFFF
ja 0x7d2f6
addq %rdi, %rcx
addq -0x10(%rcx), %rax
movq %rdx, -0x8(%rcx)
movq 0x68(%rsp), %rdx
jmp 0x7d3ba
movq %r10, 0x28(%rsp)
movq (%r12), %rax
movq %rax, 0x20(%rsp)
movq 0x10(%r12), %rdi
shlq $0x4, %rsi
addq $0x10, %rsi
callq 0x4840
testq %rax, %rax
je 0x7d38b
movq %rax, %rbp
movl $0x100000, %eax         # imm = 0x100000
xorl %edx, %edx
divq 0x20(%rsp)
movq %rbp, 0x10(%r12)
movq 0x8(%r12), %rcx
movq %rcx, 0x80(%rsp)
shlq $0x4, %rcx
movq %rcx, 0x20(%rsp)
imulq (%r12), %rax
movq %rax, %rdi
callq 0x4680
movq 0x20(%rsp), %rsi
movq %rax, (%rbp,%rsi)
movl $0x0, %ecx
testq %rax, %rax
movq 0x68(%rsp), %rdx
je 0x7d392
addq %rsi, %rbp
movq $0x0, 0x8(%rbp)
movq 0x80(%rsp), %rax
incq %rax
movq %rax, 0x8(%r12)
movq %rbp, %rcx
jmp 0x7d392
xorl %ecx, %ecx
movq 0x68(%rsp), %rdx
testq %rcx, %rcx
movq 0x30(%rsp), %r8
movq 0x8(%rsp), %r9
movq 0x28(%rsp), %r10
je 0x7d3b3
movq (%r12), %rax
movq %rax, 0x8(%rcx)
movq (%rcx), %rax
jmp 0x7d3b5
xorl %eax, %eax
movq 0x60(%rsp), %rbp
testq %rax, %rax
movq 0x18(%rsp), %r12
je 0x7d3fa
xorpd %xmm0, %xmm0
movupd %xmm0, (%rax)
movq $0x0, 0x10(%rax)
leaq 0x8(%r15), %rcx
testq %r15, %r15
cmoveq %r10, %rcx
movq %rax, (%rcx)
movl 0x10(%rsp), %ecx
orl %r13d, %ecx
movl %ecx, 0x14(%rax)
movb %r13b, 0x14(%rax)
incl 0x10(%rax)
movb $0x1, %cl
movq %rax, %r10
jmp 0x7d3fc
xorl %ecx, %ecx
incq %r14
testb %cl, %cl
jne 0x7d201
jmp 0x7ec35
incq %r14
cmpq %r9, %r14
jb 0x7d1f8
jmp 0x7d1af
movl %r15d, %ebx
movq %rbx, 0x80(%rsp)
movq 0x70(%rsp), %rcx
testq %rcx, %rcx
je 0x7d43c
movq 0x80(%rsp), %rax
movl %eax, (%rcx)
testl %r13d, %r13d
je 0x7e44c
leaq 0x20(%r12), %rax
movq %rax, 0x38(%rsp)
leaq 0x2a0(%r12), %rax
movq %rax, 0xb8(%rsp)
leaq 0x14020(%r12), %rax
movq %rax, 0xa0(%rsp)
leaq 0x14220(%r12), %rax
movq %rax, 0xa8(%rsp)
leaq -0x1(%rbp), %rax
movq %rax, 0xc0(%rsp)
xorl %r15d, %r15d
xorl %eax, %eax
movslq %eax, %rbx
movb $0x1, %al
cmpb $0x20, (%rbp,%rbx)
movq %rbx, %rsi
jl 0x7d4b9
leaq 0x1(%rsi), %rcx
cmpq %rdx, %rcx
setl %al
jge 0x7e44c
cmpb $0x20, 0x1(%rbp,%rsi)
movq %rcx, %rsi
jge 0x7d49f
testb %al, %al
je 0x7e44c
movslq %esi, %rax
movzbl (%rbp,%rax), %ecx
testl %ecx, %ecx
je 0x7d4d6
cmpl $0xa, %ecx
jne 0x7ec35
movb $0x0, (%rbp,%rax)
leaq (%rbx,%rbp), %r9
movl %esi, %edx
subl %ebx, %edx
movslq 0x8(%r12), %r10
leal 0x1(%r10), %eax
movl %eax, 0x8(%r12)
movslq %edx, %r11
movb (%rbp,%rbx), %bpl
xorl %ecx, %ecx
cmpb $0x40, %bpl
sete %cl
leaq (%rcx,%r9), %r12
movl %r11d, %eax
subl %ecx, %eax
cmpl $0x47, %eax
movq %r9, 0x8(%rsp)
movq %r10, 0x10(%rsp)
movl %edx, 0x20(%rsp)
movq %r11, 0x70(%rsp)
movq %rsi, 0x90(%rsp)
jl 0x7d576
xorl %ecx, %ecx
cmpb $0x3e, %bpl
sete %cl
cmpb $0x6d, (%r12,%rcx)
jne 0x7d576
cmpb $0x5f, 0x7(%r12)
jne 0x7d576
xorl %ecx, %ecx
cmpb $0x3e, %bpl
sete %cl
cmpb $0x5f, 0xe(%r12,%rcx)
jne 0x7d576
xorl %ecx, %ecx
cmpb $0x3e, %bpl
sete %cl
cmpb $0x2f, 0x3d(%rcx,%r12)
jne 0x7d576
movl $0x3c, %eax
movq %rax, 0x28(%rsp)
xorl %ecx, %ecx
movb $0x1, %bpl
jmp 0x7d5ae
cmpl $0x11, %eax
jne 0x7d5b8
xorl %ecx, %ecx
cmpb $0x3e, %bpl
sete %cl
cmpb $0x3a, 0x5(%rcx,%r12)
jne 0x7d5b8
xorl %ecx, %ecx
cmpb $0x3e, %bpl
sete %cl
cmpb $0x3a, 0xb(%rcx,%r12)
jne 0x7d5b8
movl $0x6, %eax
movq %rax, 0x28(%rsp)
movl $0x6, %ecx
xorl %ebp, %ebp
movq 0x18(%rsp), %r14
jmp 0x7d79d
cmpl $0x24, %eax
jl 0x7d721
xorl %eax, %eax
cmpb $0x3e, %bpl
sete %al
cmpb $0x2d, 0x8(%r12,%rax)
jne 0x7d721
xorl %eax, %eax
cmpb $0x3e, %bpl
sete %al
cmpb $0x2d, 0xd(%rax,%r12)
jne 0x7d721
xorl %eax, %eax
cmpb $0x3e, %bpl
sete %al
cmpb $0x2d, 0x12(%r12,%rax)
jne 0x7d721
xorl %eax, %eax
cmpb $0x3e, %bpl
sete %al
cmpb $0x2d, 0x17(%rax,%r12)
jne 0x7d721
xorl %r14d, %r14d
cmpb $0x3e, %bpl
sete %r14b
callq 0x4510
movq 0x70(%rsp), %r11
movq 0x10(%rsp), %r10
movq 0x8(%rsp), %r9
movq (%rax), %rax
movzbl (%r12,%r14), %ecx
movl 0x20(%rsp), %edx
testb $0x10, 0x1(%rax,%rcx,2)
je 0x7d721
xorl %ecx, %ecx
cmpb $0x3e, %bpl
sete %cl
movzbl 0x7(%rcx,%r12), %ecx
testb $0x10, 0x1(%rax,%rcx,2)
je 0x7d721
xorl %ecx, %ecx
cmpb $0x3e, %bpl
sete %cl
movzbl 0x9(%rcx,%r12), %ecx
testb $0x10, 0x1(%rax,%rcx,2)
je 0x7d721
xorl %ecx, %ecx
cmpb $0x3e, %bpl
sete %cl
movzbl 0xc(%r12,%rcx), %ecx
testb $0x10, 0x1(%rax,%rcx,2)
je 0x7d721
xorl %ecx, %ecx
cmpb $0x3e, %bpl
sete %cl
movzbl 0xe(%r12,%rcx), %ecx
testb $0x10, 0x1(%rax,%rcx,2)
je 0x7d721
xorl %ecx, %ecx
cmpb $0x3e, %bpl
sete %cl
movzbl 0x11(%rcx,%r12), %ecx
testb $0x10, 0x1(%rax,%rcx,2)
je 0x7d721
xorl %ecx, %ecx
cmpb $0x3e, %bpl
sete %cl
movzbl 0x13(%rcx,%r12), %ecx
testb $0x10, 0x1(%rax,%rcx,2)
je 0x7d721
xorl %ecx, %ecx
cmpb $0x3e, %bpl
sete %cl
movzbl 0x16(%r12,%rcx), %ecx
testb $0x10, 0x1(%rax,%rcx,2)
je 0x7d721
xorl %ecx, %ecx
cmpb $0x3e, %bpl
sete %cl
movzbl 0x18(%r12,%rcx), %ecx
testb $0x10, 0x1(%rax,%rcx,2)
je 0x7d721
xorl %ecx, %ecx
cmpb $0x3e, %bpl
sete %cl
movzbl 0x23(%rcx,%r12), %ecx
testb $0x10, 0x1(%rax,%rcx,2)
jne 0x7e438
xorl %eax, %eax
testl %edx, %edx
je 0x7d740
movq 0x18(%rsp), %r14
cmpb $0x21, (%r9,%rax)
jl 0x7d745
incq %rax
cmpq %rax, %r11
jne 0x7d72c
movq %r11, %rax
jmp 0x7d745
movq 0x18(%rsp), %r14
xorl %ebp, %ebp
testq %rax, %rax
je 0x7d77b
addq 0xc0(%rsp), %rbx
movq %rax, %rcx
movl %ebp, %edx
xorl %ebp, %ebp
cmpb $0x3a, (%rbx,%rax)
leaq -0x1(%rax), %rax
sete %bpl
addl %edx, %ebp
cmpq $0x1, %rcx
je 0x7d774
cmpl $0x4, %ebp
jb 0x7d754
cmpl $0x4, %ebp
sete %bpl
incl %eax
movslq %eax, %rdx
testb %bpl, %bpl
movl $0x0, %ecx
cmovnel %edx, %ecx
movl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
cmoveq %rax, %rdx
movq %rdx, 0x28(%rsp)
xorb $0x1, %bpl
movl %ecx, 0x48(%rsp)
cmpq $0x0, 0x10(%r14)
movl %ebp, 0x78(%rsp)
jne 0x7d7d7
movl $0x1, %edi
movl $0x18, %esi
callq 0x4300
movq 0x70(%rsp), %r11
movq 0x10(%rsp), %r10
movq 0x8(%rsp), %r9
movq %rax, 0x10(%r14)
testq %rax, %rax
je 0x7e3e7
cmpl $0x0, 0x20(%rsp)
je 0x7d8aa
movl %r10d, %eax
shll $0x8, %eax
movl %eax, 0x30(%rsp)
movl $0xffffffff, %r12d      # imm = 0xFFFFFFFF
xorl %r14d, %r14d
movl $0xffffffff, %r13d      # imm = 0xFFFFFFFF
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
leaq 0x1(%r14), %rbx
cmpq %rbx, %r11
cmovaq %r11, %rbx
movb (%r9,%r14), %r15b
cmpb $0xb, %r15b
jl 0x7d89c
movq 0x18(%rsp), %rax
movq 0x10(%rax), %rbp
callq 0x4510
movq 0x70(%rsp), %r11
movq 0x10(%rsp), %r10
movq 0x8(%rsp), %r9
movq (%rbp), %rbp
testq %rbp, %rbp
je 0x7d84b
cmpb 0x14(%rbp), %r15b
je 0x7d84b
movq 0x8(%rbp), %rbp
jmp 0x7d83a
incq %r14
movl 0x14(%rbp), %edx
movl %edx, %ecx
shrl $0x8, %ecx
movq (%rax), %rsi
movzbl %r15b, %edi
cmpl %r10d, %ecx
movl %ecx, %r8d
cmovel %r12d, %r8d
movzwl (%rsi,%rdi,2), %esi
testl $0x2004, %esi           # imm = 0x2004
cmovnel %r8d, %r12d
cmpq 0x28(%rsp), %r14
cmovel %ecx, %r13d
movzbl %dl, %edx
orl 0x30(%rsp), %edx
movl %edx, 0x14(%rbp)
cmpq %rbx, %r14
je 0x7d899
movb (%r9,%r14), %r15b
cmpb $0xb, %r15b
jge 0x7d836
jmp 0x7d89c
movq %rbx, %r14
incq %r14
cmpq %r11, %r14
jb 0x7d800
jmp 0x7d8bb
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
movl $0xffffffff, %r13d      # imm = 0xFFFFFFFF
movl $0xffffffff, %r12d      # imm = 0xFFFFFFFF
movl 0x20(%rsp), %r14d
testl %r14d, %r14d
sete %dl
cmpl %r10d, %ecx
sete %al
orb %dl, %al
cmpl $-0x1, %r13d
cmovnel %r13d, %r12d
testb %al, %al
cmovel %ecx, %r12d
movl 0x50(%rsp), %r13d
xorl %r15d, %r15d
movl %r10d, %ebp
subl $0x1, %ebp
cmovbl %r15d, %ebp
testl %r12d, %r12d
cmovnsl %r12d, %ebp
testb %al, %al
movq 0x18(%rsp), %r12
jne 0x7d9a2
movq (%r12), %rax
movslq %ebp, %rcx
leaq (%rcx,%rcx,2), %rbx
movq (%rax,%rbx,8), %rdi
callq 0x41d0
cmpq 0x70(%rsp), %rax
jne 0x7d9a2
movq 0x10(%rsp), %r15
movl %r15d, %ecx
subl %ebp, %ecx
movq %r12, %rdi
xorl %esi, %esi
movl $0x5, %edx
callq 0x8013a
movq (%r12), %r14
leaq (%r15,%r15,2), %r15
movq 0x8(%rsp), %rax
movq %rax, (%r14,%r15,8)
movslq 0x8(%r14,%rbx,8), %rax
leaq (,%rax,4), %rcx
testq %rax, %rax
movl %eax, 0x8(%r14,%r15,8)
leaq (%rcx,%rcx,2), %rdi
movl $0x600, %eax            # imm = 0x600
cmoveq %rax, %rdi
callq 0x4680
movq %rax, 0x10(%r14,%r15,8)
testq %rax, %rax
je 0x7ec35
leaq (%r14,%r15,8), %rcx
movq 0x10(%r14,%rbx,8), %rsi
movslq 0x8(%rcx), %rcx
shlq $0x2, %rcx
leaq (%rcx,%rcx,2), %rdx
movq %rax, %rdi
callq 0x43c0
jmp 0x7e3c2
movl %ebp, 0x28(%rsp)
movl $0x600, %edi            # imm = 0x600
callq 0x4680
movq (%r12), %rcx
movq 0x10(%rsp), %rdx
leaq (%rdx,%rdx,2), %rsi
movq %rsi, 0x30(%rsp)
movq %rax, 0x10(%rcx,%rsi,8)
testq %rax, %rax
movl 0x48(%rsp), %ebx
je 0x7ec35
movl %edx, %ecx
subl 0x28(%rsp), %ecx
movq %r12, %rdi
xorl %esi, %esi
movl $0x6, %edx
callq 0x8013a
cmpl $0x24, %ebx
jne 0x7dad2
movq 0x30(%rsp), %r13
cmpl $0x25, 0x14420(%r12)
movq 0x38(%rsp), %rbp
movl $0x0, %ebx
jg 0x7da6c
movl 0x14420(%r12), %eax
shll $0x4, %eax
cltq
leaq (%rax,%rax,4), %rax
leaq (,%rax,8), %rdi
addq %rbp, %rdi
movl $0x280, %edx            # imm = 0x280
xorl %esi, %esi
callq 0x4260
movslq 0x14420(%r12), %rax
movl %ebx, 0x14020(%r12,%rax,4)
movslq 0x14420(%r12), %rax
movl %ebx, 0x14220(%r12,%rax,4)
movl 0x14420(%r12), %eax
leal 0x1(%rax), %ecx
movl %ecx, 0x14420(%r12)
cmpl $0x25, %eax
jl 0x7da0c
xorl %r14d, %r14d
xorl %r15d, %r15d
movq 0x8(%rsp), %rdx
movsbl (%rdx,%r15), %edx
leaq 0x1(%r15), %rbx
movq %r12, %rdi
movl %ebx, %esi
callq 0x7ff16
movq 0x8(%rsp), %rdx
movsbl (%rdx,%r15), %eax
movq (%r12), %rcx
movq 0x10(%rcx,%r13,8), %rcx
movl %eax, 0x10(%rcx,%r14)
movl $0x2, 0xc(%rcx,%r14)
addq $0xc, %r14
movq %rbx, %r15
cmpq $0x24, %rbx
jne 0x7da77
movl $0x25, %r15d
movl $0x24, %ebx
movl 0x20(%rsp), %r14d
movl 0x50(%rsp), %r13d
jmp 0x7dbeb
cmpb $0x0, 0x78(%rsp)
je 0x7daeb
movl $0x1, %r15d
xorl %ebx, %ebx
movq 0x38(%rsp), %rbp
jmp 0x7dbeb
movl 0x14420(%r12), %eax
cmpl $0x1, %eax
movq 0x38(%rsp), %rbp
movl $0x0, %ebx
jg 0x7db4e
shll $0x4, %eax
cltq
leaq (%rax,%rax,4), %rax
leaq (,%rax,8), %rdi
addq %rbp, %rdi
movl $0x280, %edx            # imm = 0x280
xorl %esi, %esi
callq 0x4260
movslq 0x14420(%r12), %rax
movl %ebx, 0x14020(%r12,%rax,4)
movslq 0x14420(%r12), %rax
movl %ebx, 0x14220(%r12,%rax,4)
movl $0x2, 0x14420(%r12)
movl 0x28(%rsp), %eax
cmpl %eax, 0x10(%rsp)
movq 0x8(%rsp), %r8
jle 0x7dbb0
movq (%r12), %rax
movslq 0x28(%rsp), %rcx
leaq (%rcx,%rcx,2), %rcx
cmpl $0x2, 0x8(%rax,%rcx,8)
jl 0x7dbb0
leaq (%rax,%rcx,8), %rax
movq 0x10(%rax), %rcx
cmpl $0x1, 0xc(%rcx)
jne 0x7dbb0
movl 0x48(%rsp), %ebx
cmpl %ebx, 0x10(%rcx)
jne 0x7dba3
movq (%rax), %rsi
movslq %ebx, %rdx
movq %r8, %rdi
callq 0x44d0
movq 0x8(%rsp), %r8
testl %eax, %eax
je 0x7e3f9
movq %r12, %rdi
movl $0x1, %esi
movq %r8, %rdx
jmp 0x7dbbf
movq %r12, %rdi
movl $0x1, %esi
movq %r8, %rdx
movl 0x48(%rsp), %ebx
movl %ebx, %ecx
callq 0x7ffea
movq (%r12), %rax
movq 0x30(%rsp), %rcx
movq 0x10(%rax,%rcx,8), %rax
movl %ebx, 0x10(%rax)
movl $0x0, 0x14(%rax)
movl $0x1, 0xc(%rax)
movl $0x2, %r15d
cmpl %r14d, %ebx
jge 0x7e2cc
movslq 0x28(%rsp), %rax
movq %rax, 0x78(%rsp)
movl %r15d, %r15d
movl %r14d, %eax
movq %rax, 0xb0(%rsp)
movslq 0x14420(%r12), %rax
cmpq %rax, %r15
jl 0x7dc6e
cmpl $0x7f, %eax
jg 0x7ec35
shll $0x4, %eax
cltq
leaq (%rax,%rax,4), %rax
movq 0x38(%rsp), %rcx
leaq (%rcx,%rax,8), %rdi
movl $0x280, %edx            # imm = 0x280
xorl %esi, %esi
callq 0x4260
movslq 0x14420(%r12), %rax
xorl %ecx, %ecx
movl %ecx, 0x14020(%r12,%rax,4)
movslq 0x14420(%r12), %rax
movl %ecx, 0x14220(%r12,%rax,4)
leal 0x1(%r15), %eax
movl %eax, 0x14420(%r12)
callq 0x4510
movq 0x8(%rsp), %r9
movq %rax, %rbp
movq (%rax), %rax
movslq %ebx, %rcx
movzbl (%r9,%rcx), %esi
movzwl (%rax,%rsi,2), %edx
btl $0xa, %edx
jb 0x7dd86
cmpb $0x30, %sil
jne 0x7de86
movq 0x10(%rsp), %r10
movq %r15, %r11
movl %ebx, %eax
xorl %ebx, %ebx
movl %eax, %r12d
movl %eax, %r13d
cmpl %r14d, %eax
jae 0x7dd07
movq (%rbp), %rax
movl %r13d, %r12d
movl %r13d, %esi
leaq (%r9,%rsi), %rcx
movq 0xb0(%rsp), %rdx
subq %rsi, %rdx
xorl %esi, %esi
xorl %ebx, %ebx
cmpq $0x8, %rsi
ja 0x7dd07
movzbl (%rcx,%rsi), %edi
movzwl (%rax,%rdi,2), %r8d
andl $0x800, %r8d            # imm = 0x800
je 0x7dd07
movsbl %dil, %edi
leal (%rbx,%rbx,4), %r8d
leal (%rdi,%r8,2), %ebx
addl $-0x30, %ebx
incl %r12d
incq %rsi
cmpq %rsi, %rdx
jne 0x7dcd2
movl %r14d, %r12d
cmpl 0x28(%rsp), %r10d
movq %r11, %r15
jle 0x7ddd2
movq 0x18(%rsp), %rax
movq (%rax), %rax
movq 0x78(%rsp), %rcx
leaq (%rcx,%rcx,2), %rdx
movslq 0x8(%rax,%rdx,8), %rcx
cmpq %rcx, %r15
jge 0x7ddd2
leaq (%rax,%rdx,8), %rcx
movq 0x10(%rcx), %rcx
leaq (%r15,%r15,2), %rsi
cmpl $0x3, (%rcx,%rsi,4)
jne 0x7ddd2
leaq (%rcx,%rsi,4), %rdi
movl %ebx, %ecx
subl 0x4(%rdi), %ecx
movq 0x38(%rsp), %r9
jne 0x7e1b0
movl %r12d, %r8d
subl %r13d, %r8d
cmpl %r8d, 0x8(%rdi)
jne 0x7e1b0
movq 0x18(%rsp), %r14
movq %r14, %rdi
movq %r11, %r15
movl %r15d, %esi
callq 0x7ffa8
jmp 0x7de2f
movl %r14d, %esi
movq %r15, %r14
leal 0x1(%rcx), %edx
cmpl %edx, %esi
cmovgl %esi, %edx
leaq (%r9,%rcx), %r8
leal -0x1(%rdx), %ebp
incq %rcx
movl %ebx, %r15d
movq 0x10(%rsp), %r10
movq 0x70(%rsp), %rdi
cmpq %rdi, %rcx
jge 0x7de6f
movzbl (%r9,%rcx), %esi
movzwl (%rax,%rsi,2), %esi
incl %ebx
incq %rcx
testl $0x404, %esi            # imm = 0x404
jne 0x7ddab
leal -0x1(%rbx), %ebp
jmp 0x7de71
movl %r15d, %eax
shll $0x4, %eax
orl $0x4, %eax
cltq
leaq (%rax,%rax,4), %rax
movq 0x38(%rsp), %rcx
leaq (%rcx,%rax,8), %rbp
movq %rbp, %rdi
movl $0x1, %esi
callq 0x801d2
testl %eax, %eax
js 0x7e024
movl %r12d, %eax
subl %r13d, %eax
movq (%rbp), %rcx
movq 0x10(%rbp), %rdx
leaq 0x1(%rdx), %rsi
movq %rsi, 0x10(%rbp)
movb %al, (%rcx,%rdx)
movq 0x18(%rsp), %r14
movq %r14, %rdi
movl %r15d, %esi
movl $0x3, %edx
movl %ebx, %ecx
callq 0x8013a
testl %eax, %eax
js 0x7e151
movl %r12d, %eax
subl %r13d, %eax
movq (%r14), %rcx
movq 0x30(%rsp), %rdx
movq 0x10(%rcx,%rdx,8), %rcx
leaq (%r15,%r15,2), %rdx
movl %eax, 0x8(%rcx,%rdx,4)
movl %ebx, 0x4(%rcx,%rdx,4)
movl $0x3, (%rcx,%rdx,4)
decl %r12d
movb $0x1, %al
movl %r12d, %ebp
movl 0x20(%rsp), %r14d
jmp 0x7e15b
movl %edx, %ebx
subl %r15d, %ebx
movl $0xc, %eax
cmpl $0x1, %ebx
jne 0x7de9c
movl %r15d, %ebp
jmp 0x7e099
btl $0xb, %edx
movq 0x10(%rsp), %r10
jb 0x7df4f
movl %ebx, %ebp
jmp 0x7e0b2
cmpl 0x28(%rsp), %r10d
movq %r14, %r13
jle 0x7df07
movq (%r12), %rax
movq 0x78(%rsp), %rcx
leaq (%rcx,%rcx,2), %rcx
movslq 0x8(%rax,%rcx,8), %rdx
cmpq %rdx, %r13
jge 0x7df07
leaq (%rax,%rcx,8), %rax
movq 0x10(%rax), %rcx
leaq (,%r13,2), %rdx
addq %r13, %rdx
cmpl $0x1, (%rcx,%rdx,4)
jne 0x7df07
leaq (%rcx,%rdx,4), %rcx
cmpl 0x4(%rcx), %ebx
jne 0x7deff
movslq 0x8(%rcx), %rsi
addq (%rax), %rsi
movslq %ebx, %rdx
movq %r8, %rdi
movq %r8, %r13
callq 0x44d0
movq %r13, %r8
testl %eax, %eax
je 0x7e266
movq %r12, %rdi
movq %r14, %r13
jmp 0x7df0a
movq %r12, %rdi
movl %r13d, %esi
movq %r8, %rdx
movl %ebx, %ecx
callq 0x7ffea
testl %eax, %eax
js 0x7e082
movq (%r12), %rax
movq 0x30(%rsp), %rcx
movq 0x10(%rax,%rcx,8), %rax
leaq (,%r13,2), %rcx
addq %r13, %rcx
movl %ebx, 0x4(%rax,%rcx,4)
movl %r15d, 0x8(%rax,%rcx,4)
movl $0x1, (%rax,%rcx,4)
xorl %eax, %eax
jmp 0x7e08a
movl %ebx, %ecx
xorl %ebx, %ebx
movl %ecx, %r12d
movl %ecx, 0x48(%rsp)
cmpl %r14d, %ecx
jae 0x7dfaf
movl 0x48(%rsp), %r12d
movl %r12d, %esi
leaq (%r9,%rsi), %rcx
movq 0xb0(%rsp), %rdx
subq %rsi, %rdx
xorl %esi, %esi
xorl %ebx, %ebx
cmpq $0x8, %rsi
ja 0x7dfaf
movzbl (%rcx,%rsi), %edi
movzwl (%rax,%rdi,2), %r8d
andl $0x800, %r8d            # imm = 0x800
je 0x7dfaf
movsbl %dil, %edi
leal (%rbx,%rbx,4), %r8d
leal (%rdi,%r8,2), %ebx
addl $-0x30, %ebx
incl %r12d
incq %rsi
cmpq %rsi, %rdx
jne 0x7df7a
movl %r14d, %r12d
cmpl 0x28(%rsp), %r10d
jle 0x7e02b
movq 0x18(%rsp), %rax
movq (%rax), %rax
movq 0x78(%rsp), %rcx
leaq (%rcx,%rcx,2), %rcx
movslq 0x8(%rax,%rcx,8), %rdx
cmpq %rdx, %r15
jge 0x7e02b
leaq (%rax,%rcx,8), %rax
movq 0x10(%rax), %rax
leaq (%r15,%r15,2), %rcx
leaq (%rax,%rcx,4), %rdx
movl (%rdx), %ecx
cmpl $0x7, %ecx
je 0x7e007
cmpl $0x3, %ecx
jne 0x7e02b
movl %r12d, %esi
subl 0x48(%rsp), %esi
movl $0xd, %eax
cmpl %esi, 0x8(%rdx)
je 0x7e18c
cmpl $0x7, %ecx
jne 0x7e02b
movl %ebx, %ecx
subl 0x4(%rdx), %ecx
jne 0x7e221
movq 0x18(%rsp), %r14
movq %r14, %rdi
movl %r15d, %esi
callq 0x7ffa8
jmp 0x7e042
xorl %eax, %eax
jmp 0x7e158
movq 0x18(%rsp), %r14
movq %r14, %rdi
movl %r15d, %esi
movl $0x7, %edx
movl %ebx, %ecx
callq 0x8013a
movq 0x10(%rsp), %r10
movq 0x8(%rsp), %r9
testl %eax, %eax
js 0x7e182
movq (%r14), %rax
movq 0x30(%rsp), %rcx
movq 0x10(%rax,%rcx,8), %rax
leaq (%r15,%r15,2), %rcx
movl %ebx, 0x4(%rax,%rcx,4)
movl $0x7, (%rax,%rcx,4)
decl %r12d
xorl %eax, %eax
movl %r12d, %ebx
movl 0x20(%rsp), %r14d
jmp 0x7e190
movl $0x1, %eax
movl %r15d, %ebp
movq 0x8(%rsp), %r9
movq 0x10(%rsp), %r10
movl 0x50(%rsp), %r13d
testl %eax, %eax
je 0x7e147
cmpl $0xc, %eax
movq %r14, %r15
movl 0x20(%rsp), %r14d
jne 0x7ec35
movslq %ebp, %rbx
cmpl 0x28(%rsp), %r10d
jle 0x7e107
movq (%r12), %rax
movq 0x78(%rsp), %rcx
leaq (%rcx,%rcx,2), %rcx
movslq 0x8(%rax,%rcx,8), %rdx
cmpq %rdx, %r15
jge 0x7e107
leaq (%rax,%rcx,8), %rax
movq 0x10(%rax), %rax
leaq (%r15,%r15,2), %rcx
cmpl $0x2, (%rax,%rcx,4)
jne 0x7e107
leaq (%rax,%rcx,4), %rcx
movsbl (%r9,%rbx), %eax
cmpl %eax, 0x4(%rcx)
jne 0x7e1e6
movq %r12, %rdi
movl %r15d, %esi
callq 0x7ffa8
jmp 0x7e1f4
movsbl (%r9,%rbx), %edx
movq %r12, %rdi
movl %r15d, %esi
callq 0x7ff16
movq 0x8(%rsp), %rcx
testl %eax, %eax
js 0x7ec35
movsbl (%rcx,%rbx), %eax
movq (%r12), %rcx
movq 0x30(%rsp), %rdx
movq 0x10(%rcx,%rdx,8), %rcx
leaq (%r15,%r15,2), %rdx
movl %eax, 0x4(%rcx,%rdx,4)
movl $0x2, (%rcx,%rdx,4)
jmp 0x7e16d
movq %r14, %r15
movl 0x20(%rsp), %r14d
jmp 0x7e16d
xorl %eax, %eax
movl 0x20(%rsp), %r14d
movl %r13d, %ebp
testb %al, %al
movq 0x18(%rsp), %r12
movl 0x50(%rsp), %r13d
je 0x7ec35
incq %r15
incl %ebp
movl %ebp, %ebx
cmpl %r14d, %ebp
jl 0x7dc0c
jmp 0x7e2c7
movl $0x1, %eax
movl 0x20(%rsp), %r14d
movl 0x48(%rsp), %ebx
testl %eax, %eax
je 0x7e1a7
cmpl $0xd, %eax
movq 0x18(%rsp), %r12
je 0x7dca3
jmp 0x7ec35
movl %ebx, %ebp
movq 0x18(%rsp), %r12
jmp 0x7e16d
cmpl $0xff, %ecx
ja 0x7e206
movq 0x10(%rax,%rdx,8), %rax
movl %r12d, %edx
subl %r13d, %edx
cmpl %edx, 0x8(%rax,%rsi,4)
jne 0x7e206
movq 0x18(%rsp), %r14
movq %r14, %rdi
movq %r11, %r15
movl %r15d, %esi
movl $0x9, %edx
callq 0x8009f
jmp 0x7de2f
movsbl %al, %edx
movq %r12, %rdi
movl %r15d, %esi
callq 0x7ff16
testl %eax, %eax
movq 0x8(%rsp), %rcx
jns 0x7e124
jmp 0x7ec35
movq %r11, %r15
movl %r15d, %eax
shll $0x4, %eax
orl $0x4, %eax
cltq
leaq (%rax,%rax,4), %rax
leaq (%r9,%rax,8), %rbp
jmp 0x7ddea
cmpl $0xff, %ecx
ja 0x7e279
movq 0xa0(%rsp), %rax
movl (%rax,%r15,4), %eax
addl $0x5, %eax
movq 0xa8(%rsp), %rdx
cmpl (%rdx,%r15,4), %eax
jle 0x7e279
movq 0x18(%rsp), %rdi
movl %r15d, %esi
movl $0x8, %edx
callq 0x8009f
testl %eax, %eax
js 0x7e2b3
movq 0xa0(%rsp), %rax
jmp 0x7e299
movq %r12, %rdi
movq %r14, %r13
movl %r13d, %esi
callq 0x7ffa8
jmp 0x7df17
movq 0x18(%rsp), %rdi
movl %r15d, %esi
movl $0x7, %edx
movl %ebx, %ecx
callq 0x8013a
testl %eax, %eax
js 0x7e2b3
movq 0xa8(%rsp), %rax
leaq (%rax,%r15,4), %rax
movq 0x8(%rsp), %r9
movq 0x10(%rsp), %r10
incl (%rax)
movq 0x18(%rsp), %r14
jmp 0x7e054
movl $0x1, %eax
movq 0x8(%rsp), %r9
movq 0x10(%rsp), %r10
jmp 0x7e18c
movq 0x38(%rsp), %rbp
movl 0x14420(%r12), %eax
cmpl %eax, %r15d
jl 0x7e335
cmpl $0x7f, %eax
jg 0x7ec35
shll $0x4, %eax
cltq
leaq (%rax,%rax,4), %rax
movq 0x38(%rsp), %rbp
leaq (,%rax,8), %rdi
addq %rbp, %rdi
movl $0x280, %edx            # imm = 0x280
xorl %esi, %esi
callq 0x4260
movslq 0x14420(%r12), %rax
xorl %ecx, %ecx
movl %ecx, 0x14020(%r12,%rax,4)
movslq 0x14420(%r12), %rax
movl %ecx, 0x14220(%r12,%rax,4)
leal 0x1(%r15), %eax
movl %eax, 0x14420(%r12)
movl %r15d, %eax
shll $0x4, %eax
cltq
leaq (%rax,%rax,4), %rax
leaq (,%rax,8), %rbx
addq %rbp, %rbx
movq %rbx, %rdi
movl $0x1, %esi
callq 0x801d2
movq 0x8(%rsp), %rsi
testl %eax, %eax
js 0x7ec35
movq (%rbx), %rax
movq 0x10(%rbx), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x10(%rbx)
movb $0xc, (%rax,%rcx)
movq (%r12), %rax
movq 0x30(%rsp), %rbx
movq %rsi, (%rax,%rbx,8)
movl %r15d, 0x8(%rax,%rbx,8)
movq 0x10(%rax,%rbx,8), %rdi
movl %r15d, %eax
shlq $0x2, %rax
leaq (%rax,%rax,2), %rsi
addq $0xc, %rsi
callq 0x4840
testq %rax, %rax
je 0x7e3b2
movq (%r12), %rcx
movq %rax, 0x10(%rcx,%rbx,8)
movq (%r12), %rax
cmpq $0x0, 0x10(%rax,%rbx,8)
je 0x7ec35
movq 0x90(%rsp), %rax
incl %eax
cmpl %r13d, %eax
movq 0x60(%rsp), %rbp
movq 0x68(%rsp), %rdx
movl $0x0, %r15d
jl 0x7d490
jmp 0x7e44c
movl $0xffffffff, %r12d      # imm = 0xFFFFFFFF
movb $0x1, %al
movl 0x20(%rsp), %r14d
jmp 0x7d8e4
movq 0xb8(%rsp), %rdi
movl $0x1, %esi
callq 0x801d2
testl %eax, %eax
js 0x7dbc6
movq 0x2a0(%r12), %rax
movq 0x2b0(%r12), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x2b0(%r12)
movb $0xa, (%rax,%rcx)
jmp 0x7dbc6
movl $0x24, %eax
movq %rax, 0x28(%rsp)
movl $0x24, %ecx
jmp 0x7d5ac
cmpl $0x0, 0x14420(%r12)
jle 0x7e4f3
movq 0x18(%rsp), %r15
leaq 0x20(%r15), %rbx
xorl %r14d, %r14d
xorl %r12d, %r12d
leaq (%r12,%r12,4), %rcx
movq 0x10(%rbx,%rcx,8), %rax
testq %rax, %rax
je 0x7e4cf
leaq (%rbx,%rcx,8), %r13
movq %rax, %rcx
cmpq $0x1, %rax
je 0x7e49f
movq (%r13), %rdx
movl $0x1, %ecx
cmpb $0xa, (%rdx,%rcx)
jne 0x7e49f
incq %rcx
cmpq %rcx, %rax
jne 0x7e48e
movq %rax, %rcx
cmpq %rcx, %rax
jne 0x7e4cf
movl $0x58, %eax
cmpq $0x0, (%r15,%rax)
jne 0x7e4be
addq $0x28, %rax
cmpq $0x2b0, %rax            # imm = 0x2B0
jne 0x7e4a9
jmp 0x7e4cf
movq %r14, 0x10(%r13)
movq (%r13), %rdi
callq 0x45c0
movq %r14, (%r13)
addq $0x10, %r12
movq 0x18(%rsp), %rax
movslq 0x14420(%rax), %rax
shlq $0x4, %rax
addq $0x280, %r15            # imm = 0x280
cmpq %rax, %r12
jl 0x7e46a
movq 0x18(%rsp), %r12
cmpl $0x0, 0x14420(%r12)
jle 0x7eb20
leaq 0x20(%r12), %rbp
movq 0x88(%rsp), %rcx
movl %ecx, %eax
decl %eax
shrl $0x1f, %eax
addl %ecx, %eax
decl %eax
sarl %eax
xorl %ecx, %ecx
testl %eax, %eax
cmovlel %ecx, %eax
cmpl $0x4, %eax
movl $0x4, %ecx
cmovll %eax, %ecx
leaq 0x30(%r12), %rax
movq %rax, 0x90(%rsp)
movl $0x9, %eax
movq %rax, 0x60(%rsp)
imulq $0x16c, %rcx, %rax      # imm = 0x16C
addq %rsp, %rax
addq $0xd0, %rax
movq %rax, 0x78(%rsp)
xorl %ecx, %ecx
movl 0x44(%rsp), %r14d
movq %rbp, 0x48(%rsp)
leaq (%rcx,%rcx,4), %rbx
movq 0x10(%rbp,%rbx,8), %rdi
testq %rdi, %rdi
je 0x7eae4
movq %rcx, 0x8(%rsp)
movl $0x1, %esi
callq 0x5aaf0
movl %eax, %eax
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
mulsd 0x1e032(%rip), %xmm0    # 0x9c5d0
cvttsd2si %xmm0, %rax
movq %rax, %rcx
sarq $0x3f, %rcx
subsd 0x1a11e(%rip), %xmm0    # 0x986d0
cvttsd2si %xmm0, %r15
andq %rcx, %r15
orq %rax, %r15
movq %r15, %rdi
callq 0x4680
testq %rax, %rax
je 0x7e991
movq %rax, %r13
leaq (,%rbx,8), %rax
addq %rbp, %rax
movq (%rax), %rcx
movq %rcx, 0x70(%rsp)
movq %rax, 0x38(%rsp)
movq 0x10(%rax), %rax
movq %rax, 0x28(%rsp)
movl $0x71c, %edx            # imm = 0x71C
leaq 0xd0(%rsp), %rdi
leaq 0x24b7a(%rip), %rsi     # 0xa3180
callq 0x43c0
testl %r14d, %r14d
je 0x7e61b
movl $0xc9, 0x304(%rsp)
movq 0x8(%rsp), %rax
andl $0xf, %eax
leaq (%rax,%rax,8), %rcx
leaq (%rcx,%rcx,2), %r12
addq %rax, %r12
movq 0x78(%rsp), %rax
cmpl $0x0, (%rax,%r12)
jle 0x7e9a5
addq %rax, %r12
leal -0x6(%r15), %eax
movl %eax, 0x68(%rsp)
leaq 0x6(%r13), %rax
movq %rax, 0x30(%rsp)
testq %r13, %r13
setne %al
cmpq $0x5, %r15
setl %cl
andb %al, %cl
movb %cl, 0x20(%rsp)
leaq (,%r15,8), %rax
movq %r15, 0x88(%rsp)
subq %r15, %rax
movq %rax, 0x50(%rsp)
movq $-0x1, %rbp
xorl %eax, %eax
movl $0x1, %r15d
leaq 0x7f0(%rsp), %rcx
movq %rcx, 0x10(%rsp)
testl %r14d, %r14d
jne 0x7e6ae
movl (%r12,%r15,4), %ecx
testb $0x4, %cl
je 0x7e6ae
andl $-0x5, %ecx
movl %ecx, (%r12,%r15,4)
testb $0x3, 0x28(%rsp)
je 0x7e6c0
testb $0x8, (%r12,%r15,4)
jne 0x7e772
movl (%r12,%r15,4), %r8d
testl %r14d, %r14d
je 0x7e77a
movl 0x68(%rsp), %eax
movl %eax, 0x5c(%rsp)
movq 0x70(%rsp), %rdi
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
leaq 0x5c(%rsp), %rcx
callq 0x5ab80
testq %rax, %rax
je 0x7e9bd
movl 0x5c(%rsp), %ebx
cmpb $0x0, 0x20(%rsp)
je 0x7e81b
xorl %edi, %edi
xorl %edx, %edx
movl %ebx, %r8d
movl %ebx, %esi
movq %rdx, %rcx
movq %rdi, %rax
shrl $0x7, %esi
addq $0x7, %rdx
incq %rdi
cmpl $0x7f, %r8d
movl %esi, %r8d
ja 0x7e70f
xorl %r14d, %r14d
cmpq %rdx, 0x50(%rsp)
jl 0x7e8f0
cmpq $0x4, %rax
movl $0x4, %edx
cmovaeq %rdx, %rax
incq %rax
xorl %r14d, %r14d
movl %ebx, %edx
shrl %cl, %edx
xorl %esi, %esi
testl %ecx, %ecx
setne %sil
andl $0x7f, %edx
shll $0x7, %esi
orl %edx, %esi
movb %sil, (%r13,%r14)
incq %r14
addl $-0x7, %ecx
cmpl %r14d, %eax
jne 0x7e749
jmp 0x7e8f0
movq %rbp, %rbx
jmp 0x7e978
movl 0x68(%rsp), %eax
movl %eax, 0x5c(%rsp)
movq 0x70(%rsp), %rdi
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
leaq 0x5c(%rsp), %rcx
callq 0x65bff
testq %rax, %rax
je 0x7e9bd
movl 0x5c(%rsp), %ebx
cmpb $0x0, 0x20(%rsp)
je 0x7e81b
xorl %edi, %edi
xorl %edx, %edx
movl %ebx, %r8d
movl %ebx, %esi
movq %rdx, %rcx
movq %rdi, %rax
shrl $0x7, %esi
addq $0x7, %rdx
incq %rdi
cmpl $0x7f, %r8d
movl %esi, %r8d
ja 0x7e7b8
xorl %r14d, %r14d
cmpq %rdx, 0x50(%rsp)
jl 0x7e8f0
cmpq $0x4, %rax
movl $0x4, %edx
cmovaeq %rdx, %rax
incq %rax
xorl %r14d, %r14d
movl %ebx, %edx
shrl %cl, %edx
xorl %esi, %esi
testl %ecx, %ecx
setne %sil
andl $0x7f, %edx
shll $0x7, %esi
orl %edx, %esi
movb %sil, (%r13,%r14)
incq %r14
addl $-0x7, %ecx
cmpl %r14d, %eax
jne 0x7e7f2
jmp 0x7e8f0
cmpl $0x7f, %ebx
ja 0x7e82f
movb %bl, (%r13)
movl $0x1, %r14d
jmp 0x7e8f0
movl %ebx, %eax
cmpl $0x3fff, %ebx           # imm = 0x3FFF
ja 0x7e855
shrl $0x7, %eax
orb $-0x80, %al
movb %al, (%r13)
movl %ebx, %eax
andb $0x7f, %al
movb %al, 0x1(%r13)
movl $0x2, %r14d
jmp 0x7e8f0
cmpl $0x1fffff, %ebx         # imm = 0x1FFFFF
ja 0x7e881
shrl $0xe, %eax
orb $-0x80, %al
movb %al, (%r13)
movl %ebx, %eax
shrl $0x7, %eax
orb $-0x80, %al
movb %al, 0x1(%r13)
movl %ebx, %eax
andb $0x7f, %al
movb %al, 0x2(%r13)
movl $0x3, %r14d
jmp 0x7e8f0
cmpl $0xfffffff, %ebx        # imm = 0xFFFFFFF
ja 0x7e8b8
shrl $0x15, %eax
orb $-0x80, %al
movb %al, (%r13)
movl %ebx, %eax
shrl $0xe, %eax
orb $-0x80, %al
movb %al, 0x1(%r13)
movl %ebx, %eax
shrl $0x7, %eax
orb $-0x80, %al
movb %al, 0x2(%r13)
movl %ebx, %eax
andb $0x7f, %al
movb %al, 0x3(%r13)
movl $0x4, %r14d
jmp 0x7e8f0
shrl $0x1c, %eax
orb $-0x80, %al
movb %al, (%r13)
movl %ebx, %eax
shrl $0x15, %eax
orb $-0x80, %al
movb %al, 0x1(%r13)
movl %ebx, %eax
shrl $0xe, %eax
orb $-0x80, %al
movb %al, 0x2(%r13)
movl %ebx, %eax
shrl $0x7, %eax
orb $-0x80, %al
movb %al, 0x3(%r13)
movl %ebx, %eax
andb $0x7f, %al
movb %al, 0x4(%r13)
movl $0x5, %r14d
movl %r14d, %edi
addq %r13, %rdi
movq 0x30(%rsp), %rsi
movq %rbx, %rdx
callq 0x4830
addl %ebx, %r14d
movl %r14d, %ebx
xorl %eax, %eax
cmpq %rbx, %rbp
jbe 0x7e970
movslq (%r12), %rax
cmpq %rax, %r15
movl 0x44(%rsp), %r14d
jge 0x7e9d1
cmpl $0x2001, %ebx           # imm = 0x2001
setae %al
leaq 0x7f0(%rsp), %rcx
movq 0x10(%rsp), %rdi
cmpq %rcx, %rdi
sete %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x7e959
movq %rbx, %rdi
callq 0x4680
movq %rax, %rdi
testq %rax, %rax
je 0x7eb11
movq %rdi, 0x10(%rsp)
movq %r13, %rsi
movq %rbx, %rdx
callq 0x43c0
movl $0x1, %eax
jmp 0x7e978
movq %rbp, %rbx
movl 0x44(%rsp), %r14d
leaq 0x1(%r15), %rcx
movslq (%r12), %rdx
movq %rbx, %rbp
cmpq %rdx, %r15
movq %rcx, %r15
jl 0x7e699
jmp 0x7e9d6
movq %r12, %rdi
callq 0x7ed0a
xorl %eax, %eax
movq 0x8(%rsp), %rcx
jmp 0x7eadc
movb $0x1, %al
movq $-0x1, %rbx
leaq 0x7f0(%rsp), %rcx
movq %rcx, 0x10(%rsp)
jmp 0x7e9db
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
movq 0x18(%rsp), %r12
movq 0x88(%rsp), %rbx
jmp 0x7e9fb
movl $0x1, %eax
testl %eax, %eax
sete %al
xorl %ebp, %ebp
testb %al, %al
movq 0x18(%rsp), %r12
je 0x7e9fb
movq %r13, %rdi
movq 0x10(%rsp), %r14
movq %r14, %rsi
movq %rbx, %rdx
callq 0x43c0
jmp 0x7ea00
movq 0x10(%rsp), %r14
leaq 0x7f0(%rsp), %rax
cmpq %rax, %r14
je 0x7ea15
movq %r14, %rdi
callq 0x45c0
testl %ebp, %ebp
movq 0x8(%rsp), %rax
js 0x7eabb
movl %eax, %ebp
shrl $0x4, %ebp
movl %eax, %r14d
andl $0xf, %r14d
movq 0x38(%rsp), %r15
movq (%r15), %rdi
callq 0x45c0
movq 0x8(%rsp), %rcx
movq %r13, (%r15)
movq %rbx, 0x10(%r15)
movl %ebp, 0x18(%r15)
movl %r14d, 0x1c(%r15)
testq %rcx, %rcx
movq 0x48(%rsp), %rbp
je 0x7ea98
movq 0x90(%rsp), %r15
xorl %r14d, %r14d
movq -0x10(%r15), %rsi
testq %rsi, %rsi
je 0x7ea8c
cmpq $0x5, %rbx
jb 0x7ea8c
cmpq (%r15), %rbx
jne 0x7ea8c
movq %r13, %rdi
movq %rbx, %rdx
callq 0x44d0
movq 0x8(%rsp), %rcx
testl %eax, %eax
je 0x7eafe
incq %r14
addq $0x28, %r15
cmpq %r14, %rcx
jne 0x7ea64
movq 0x38(%rsp), %rax
movl $0xffffffff, 0x20(%rax) # imm = 0xFFFFFFFF
movq 0x60(%rsp), %rax
addl %ebx, %eax
incl %eax
movq %rax, 0x60(%rsp)
movb $0x1, %al
movl 0x44(%rsp), %r14d
jmp 0x7eadc
movq %r12, %rdi
callq 0x7ed0a
movq %r13, %rdi
callq 0x45c0
movq 0x8(%rsp), %rcx
xorl %eax, %eax
movl 0x44(%rsp), %r14d
movq 0x48(%rsp), %rbp
testb %al, %al
je 0x7ec3d
incq %rcx
movslq 0x14420(%r12), %rax
shlq $0x4, %rax
cmpq %rax, %rcx
jl 0x7e56b
jmp 0x7eb2f
movq 0x38(%rsp), %rax
movl %r14d, 0x20(%rax)
movq 0x60(%rsp), %rax
addl $0x3, %eax
jmp 0x7eaad
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
movq 0x18(%rsp), %r12
jmp 0x7ea15
movl $0x9, %eax
movq %rax, 0x60(%rsp)
movl 0x44(%rsp), %r14d
movq 0x60(%rsp), %rbx
leal 0xd(%rbx), %edi
callq 0x4680
testq %rax, %rax
je 0x7ec35
movq %rax, %rdx
movq 0xc8(%rsp), %rax
movl %ebx, (%rax)
movq 0x80(%rsp), %rcx
movb %cl, (%rdx)
movb %ch, 0x1(%rdx)
movl %ecx, %eax
shrl $0x10, %eax
movb %al, 0x2(%rdx)
shrl $0x18, %ecx
movb %cl, 0x3(%rdx)
movl 0x9c(%rsp), %ecx
movb %cl, 0x4(%rdx)
movb %ch, 0x5(%rdx)
movl %ecx, %eax
shrl $0x10, %eax
movb %al, 0x6(%rdx)
shrl $0x18, %ecx
movb %cl, 0x7(%rdx)
movq %rdx, %r13
movb %r14b, 0x8(%rdx)
cmpl $0x0, 0x14420(%r12)
jle 0x7ec28
movq %r13, %rbx
addq $0x9, %rbx
movq %r12, %r14
addq $0x40, %r14
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
xorl %r15d, %r15d
cmpq $0x0, -0x10(%r14)
je 0x7ebf1
movl -0x8(%r14), %ebp
movl -0x4(%r14), %ecx
movl %ecx, %edx
orb $-0x80, %dl
cmpl %eax, %ebp
movzbl %dl, %eax
cmovel %ecx, %eax
cmpl $0x0, (%r14)
js 0x7ebf5
orb $0x40, %al
movb %al, (%rbx)
movl (%r14), %eax
shrl $0x4, %eax
movb %al, 0x1(%rbx)
movb (%r14), %al
andb $0xf, %al
movb %al, 0x2(%rbx)
addq $0x3, %rbx
jmp 0x7ec0e
movl %eax, %ebp
jmp 0x7ec0e
movb %al, (%rbx)
incq %rbx
movq -0x20(%r14), %rsi
movq -0x10(%r14), %rdx
movq %rbx, %rdi
callq 0x43c0
addq -0x10(%r14), %rbx
incq %r15
movslq 0x14420(%r12), %rcx
shlq $0x4, %rcx
addq $0x28, %r14
movl %ebp, %eax
cmpq %rcx, %r15
jl 0x7ebb4
movq %r12, %rdi
callq 0x7ed0a
movq %r13, %rax
jmp 0x7ec3f
movq %r12, %rdi
callq 0x7ed0a
xorl %eax, %eax
addq $0x27f8, %rsp           # imm = 0x27F8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq