// File: /workspace/github_c_makefile_star2_O1/samtools[P]htslib/htscodecs/htscodecs/rANS_static4x16pr.c
// Function: rans_compress_O1_4x16
static
unsigned char *rans_compress_O1_4x16(unsigned char *in, unsigned int in_size,
                                     unsigned char *out, unsigned int *out_size) {
    unsigned char *cp, *out_end, *out_free = NULL;
    unsigned int tab_size;
    
    // -20 for order/size/meta
    uint32_t bound = rans_compress_bound_4x16(in_size,1)-20;

    if (!out) {
        *out_size = bound;
        out_free = out = malloc(*out_size);
    }
    if (!out || bound > *out_size)
        return NULL;

    if (((size_t)out)&1)
        bound--;
    out_end = out + bound;

    RansEncSymbol (*syms)[256] = htscodecs_tls_alloc(256 * (sizeof(*syms)));
    if (!syms) {
        free(out_free);
        return NULL;
    }

    cp = out;
    int shift = encode_freq1(in, in_size, 4, syms, &cp); 
    if (shift < 0) {
        htscodecs_tls_free(syms);
        return NULL;
    }
    tab_size = cp - out;

    RansState rans0, rans1, rans2, rans3;
    RansEncInit(&rans0);
    RansEncInit(&rans1);
    RansEncInit(&rans2);
    RansEncInit(&rans3);

    uint8_t* ptr = out_end;

    int isz4 = in_size>>2;
    int i0 = 1*isz4-2;
    int i1 = 2*isz4-2;
    int i2 = 3*isz4-2;
    int i3 = 4*isz4-2;

    unsigned char l0 = in[i0+1];
    unsigned char l1 = in[i1+1];
    unsigned char l2 = in[i2+1];
    unsigned char l3 = in[i3+1];

    // Deal with the remainder
    l3 = in[in_size-1];
    for (i3 = in_size-2; i3 > 4*isz4-2; i3--) {
        unsigned char c3 = in[i3];
        RansEncPutSymbol(&rans3, &ptr, &syms[c3][l3]);
        l3 = c3;
    }

    for (; i0 >= 0; i0--, i1--, i2--, i3--) {
        unsigned char c0, c1, c2, c3;
        RansEncSymbol *s3 = &syms[c3 = in[i3]][l3];
        RansEncSymbol *s2 = &syms[c2 = in[i2]][l2];
        RansEncSymbol *s1 = &syms[c1 = in[i1]][l1];
        RansEncSymbol *s0 = &syms[c0 = in[i0]][l0];

        RansEncPutSymbol(&rans3, &ptr, s3);
        RansEncPutSymbol(&rans2, &ptr, s2);
        RansEncPutSymbol(&rans1, &ptr, s1);
        RansEncPutSymbol(&rans0, &ptr, s0);

        l0 = c0;
        l1 = c1;
        l2 = c2;
        l3 = c3;
    }

    RansEncPutSymbol(&rans3, &ptr, &syms[0][l3]);
    RansEncPutSymbol(&rans2, &ptr, &syms[0][l2]);
    RansEncPutSymbol(&rans1, &ptr, &syms[0][l1]);
    RansEncPutSymbol(&rans0, &ptr, &syms[0][l0]);

    RansEncFlush(&rans3, &ptr);
    RansEncFlush(&rans2, &ptr);
    RansEncFlush(&rans1, &ptr);
    RansEncFlush(&rans0, &ptr);

    *out_size = (out_end - ptr) + tab_size;

    cp = out;
    memmove(out + tab_size, ptr, out_end-ptr);

    htscodecs_tls_free(syms);
    return out;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x8b8, %rsp            # imm = 0x8B8
movq %rsi, 0x30(%rsp)
movl %esi, %ebx
cvtsi2sd %rbx, %xmm0
mulsd 0x35e7a(%rip), %xmm0    # 0x9dbb0
movq %rdi, 0x10(%rsp)
addsd 0x36acd(%rip), %xmm0    # 0x9e810
movsd 0x35e2d(%rip), %xmm1    # 0x9db78
addsd %xmm1, %xmm0
addsd 0x36ac1(%rip), %xmm0    # 0x9e818
addsd %xmm1, %xmm0
addsd 0x36dfd(%rip), %xmm0    # 0x9eb60
cvttsd2si %xmm0, %r15
movl %r15d, %r12d
andl $0x1, %r12d
leal (%r15,%r12), %ebp
addl $-0x12, %ebp
testq %rdx, %rdx
je 0x67d83
movq %rcx, %r13
xorl %r14d, %r14d
jmp 0x67d95
movq %rcx, %r13
movl %ebp, (%rcx)
movl %ebp, %edi
callq 0x4680
movq %rax, %r14
movq %rax, %rdx
testq %rdx, %rdx
je 0x68842
cmpl (%r13), %ebp
ja 0x68842
movq %r13, 0x70(%rsp)
addl %r12d, %r15d
addl $0x2, %r15d
addl $-0x15, %r15d
movq %rdx, %r12
testb $0x1, %dl
cmovel %ebp, %r15d
movl $0x100000, %edi         # imm = 0x100000
callq 0x8060c
testq %rax, %rax
je 0x67f0e
movq %rax, 0x48(%rsp)
movl $0x100, %edi            # imm = 0x100
movl $0x400, %esi            # imm = 0x400
callq 0x8070d
testq %rax, %rax
movq %r12, 0x60(%rsp)
je 0x67f1b
movq %rax, %rbp
leaq 0x90(%rsp), %rdi
movl $0x420, %edx            # imm = 0x420
xorl %esi, %esi
callq 0x4260
movq 0x10(%rsp), %r13
addq %r13, %rbx
movq 0x30(%rsp), %r14
cmpl $0x7a120, %r14d         # imm = 0x7A120
jbe 0x67f2f
movl $0x100, %edi            # imm = 0x100
movl $0x40c, %esi            # imm = 0x40C
callq 0x8070d
testq %rax, %rax
je 0x68025
leaq -0x8(%rbx), %rsi
xorl %edx, %edx
movq %r13, %rcx
cmpq %r13, %rsi
jbe 0x67ee7
movzbl (%rcx), %r8d
movzbl 0x1(%rcx), %r9d
movzbl 0x2(%rcx), %r10d
movzbl 0x3(%rcx), %edi
movzbl %dl, %edx
shll $0xa, %edx
addq %rbp, %rdx
incl (%rdx,%r8,4)
imulq $0x40c, %r8, %rdx       # imm = 0x40C
addq %rax, %rdx
incl (%rdx,%r9,4)
shll $0xa, %r9d
addq %rbp, %r9
incl (%r9,%r10,4)
imulq $0x40c, %r10, %rdx      # imm = 0x40C
addq %rax, %rdx
incl (%rdx,%rdi,4)
movzbl 0x4(%rcx), %r8d
movzbl 0x5(%rcx), %r9d
movzbl 0x6(%rcx), %r10d
movzbl 0x7(%rcx), %edx
shll $0xa, %edi
addq %rbp, %rdi
incl (%rdi,%r8,4)
imulq $0x40c, %r8, %rdi       # imm = 0x40C
addq %rax, %rdi
incl (%rdi,%r9,4)
shll $0xa, %r9d
addq %rbp, %r9
incl (%r9,%r10,4)
addq $0x8, %rcx
imulq $0x40c, %r10, %rdi      # imm = 0x40C
addq %rax, %rdi
incl (%rdi,%rdx,4)
cmpq %rsi, %rcx
jb 0x67e52
cmpq %rbx, %rcx
jae 0x68031
movzbl (%rcx), %esi
movzbl %dl, %edx
shll $0xa, %edx
addq %rbp, %rdx
incl (%rdx,%rsi,4)
incq %rcx
movl %esi, %edx
cmpq %rbx, %rcx
jb 0x67ef0
jmp 0x68033
movq %r14, %rdi
callq 0x45c0
jmp 0x68842
movb $0x1, %bl
movq %r12, %rax
movq 0x30(%rsp), %r14
movq 0x10(%rsp), %r13
jmp 0x68834
leaq -0x8(%rbx), %rcx
xorl %edx, %edx
movq %r13, %rax
cmpq %r13, %rcx
jbe 0x67fc6
movzbl (%rax), %edi
movzbl 0x1(%rax), %r8d
movzbl 0x2(%rax), %r9d
movzbl 0x3(%rax), %esi
movzbl %dl, %edx
shll $0xa, %edx
addq %rbp, %rdx
incl (%rdx,%rdi,4)
shll $0xa, %edi
addq %rbp, %rdi
incl (%rdi,%r8,4)
shll $0xa, %r8d
addq %rbp, %r8
incl (%r8,%r9,4)
shll $0xa, %r9d
addq %rbp, %r9
incl (%r9,%rsi,4)
movzbl 0x4(%rax), %r8d
movzbl 0x5(%rax), %r9d
movzbl 0x6(%rax), %edi
movzbl 0x7(%rax), %edx
shll $0xa, %esi
addq %rbp, %rsi
incl (%rsi,%r8,4)
shll $0xa, %r8d
addq %rbp, %r8
incl (%r8,%r9,4)
shll $0xa, %r9d
addq %rbp, %r9
incl (%r9,%rdi,4)
addq $0x8, %rax
shll $0xa, %edi
addq %rbp, %rdi
incl (%rdi,%rdx,4)
cmpq %rcx, %rax
jb 0x67f41
cmpq %rbx, %rax
jae 0x67fe6
movzbl (%rax), %ecx
movzbl %dl, %edx
shll $0xa, %edx
addq %rbp, %rdx
incl (%rdx,%rcx,4)
incq %rax
movl %ecx, %edx
cmpq %rbx, %rax
jb 0x67fcb
jmp 0x67fe8
movl %edx, %ecx
movzbl %cl, %eax
incl 0x90(%rsp,%rax,4)
xorl %eax, %eax
movq %rbp, %rcx
xorl %esi, %esi
xorl %edx, %edx
addl (%rcx,%rsi,4), %edx
incq %rsi
cmpq $0x100, %rsi            # imm = 0x100
jne 0x67ffb
addl %edx, 0x90(%rsp,%rax,4)
incq %rax
addq $0x400, %rcx            # imm = 0x400
cmpq $0x100, %rax            # imm = 0x100
jne 0x67ff7
jmp 0x6808f
movb $0x1, %bl
movq %r12, 0x18(%rsp)
jmp 0x68827
movl %edx, %esi
movzbl %sil, %ecx
incl 0x90(%rsp,%rcx,4)
xorl %ecx, %ecx
movq %rax, %rdx
movq %rbp, %rsi
xorl %r8d, %r8d
xorl %edi, %edi
movl (%rsi,%r8,4), %r9d
addl (%rdx,%r8,4), %r9d
movl %r9d, (%rsi,%r8,4)
addl %r9d, %edi
incq %r8
cmpq $0x100, %r8             # imm = 0x100
jne 0x6804b
addl %edi, 0x90(%rsp,%rcx,4)
incq %rcx
addq $0x400, %rsi            # imm = 0x400
addq $0x40c, %rdx            # imm = 0x40C
cmpq $0x100, %rcx            # imm = 0x100
jne 0x68046
movq %rax, %rdi
callq 0x80732
movl %r14d, %eax
shrl $0x2, %eax
movl %eax, %eax
leaq (%rax,%r13), %rcx
movl $0x3, %edx
movzbl (%rcx), %esi
incl (%rbp,%rsi,4)
addq %rax, %rcx
decq %rdx
jne 0x680a0
movl 0x90(%rsp), %eax
movl $0x1, 0x90(%rsp)
leaq 0x1(%r12), %r9
movb $0x0, (%r12)
xorl %ecx, %ecx
movl $0x1, %edx
xorl %esi, %esi
movq %r9, %r8
movq %r8, %rdi
cmpl $0x0, 0x90(%rsp,%rcx,4)
je 0x680ea
testl %esi, %esi
je 0x680fe
decl %esi
movq %rdi, %r8
incq %rcx
incq %rdx
cmpq $0x100, %rcx            # imm = 0x100
jne 0x680d7
jmp 0x68150
leaq 0x1(%rdi), %r8
movb %cl, (%rdi)
xorl %esi, %esi
testq %rcx, %rcx
je 0x680ed
cmpl $0x0, 0x8c(%rsp,%rcx,4)
je 0x680ed
leal 0x1(%rcx), %r8d
movl %r8d, %esi
cmpq $0xfe, %rcx
ja 0x68143
movq %rdx, %rsi
cmpl $0x0, 0x90(%rsp,%rsi,4)
je 0x68143
incq %rsi
cmpq $0x100, %rsi            # imm = 0x100
jne 0x68128
movl $0x100, %esi            # imm = 0x100
subl %r8d, %esi
movb %sil, 0x1(%rdi)
addq $0x2, %rdi
jmp 0x680ea
movq %r15, 0x58(%rsp)
addl $0x3, %eax
movb $0x0, (%r8)
subl %r9d, %r8d
incl %r8d
movslq %r8d, %rcx
movq %r9, 0x40(%rsp)
addq %r9, %rcx
movq %rcx, 0x18(%rsp)
leaq 0x90(%rsp), %rbx
movl %eax, (%rbx)
leaq 0x4b0(%rsp), %r13
xorl %r15d, %r15d
movl $0x400, %edx            # imm = 0x400
movq %r13, %rdi
xorl %esi, %esi
callq 0x4260
movq %rbx, %rdi
movq %rbp, %rsi
movq %rbx, %rdx
movq %r13, %rcx
callq 0x658ea
movl %eax, %ecx
movl $0x1, %r8d
movl $0x1, %r9d
shll %cl, %r9d
movl $0x8000, %r10d          # imm = 0x8000
movl %eax, 0x20(%rsp)
shrl %cl, %r10d
shll $0x10, %r10d
leal -0x1(%r9), %eax
movq %rax, 0x28(%rsp)
movq %rbp, %r13
movq %rbp, 0x38(%rsp)
movl 0x90(%rsp,%r15,4), %eax
testl %eax, %eax
je 0x68310
movl 0x4b0(%rsp,%r15,4), %ecx
movl $0x400, %edx            # imm = 0x400
cmpl %edx, %ecx
movl $0x400, %r12d           # imm = 0x400
cmovbl %ecx, %r12d
cmpl $0xa, 0x20(%rsp)
cmovnel %ecx, %r12d
movq %r15, %rbx
shlq $0xa, %rbx
addq %rbp, %rbx
movq %r12, %rcx
shlq $0x1f, %rcx
movb $0x1, %bpl
movslq %eax, %r11
xorl %esi, %esi
movq %rcx, %rax
xorl %edx, %edx
divq %r11
movq %rax, %rdi
movl $0x40000000, %eax       # imm = 0x40000000
xorl %edx, %edx
idivl %r11d
movslq %eax, %rdx
addq %rdi, %rdx
xorl %eax, %eax
xorl %edi, %edi
xorl %r14d, %r14d
movl (%r13,%rsi,4), %r11d
testq %r11, %r11
je 0x68277
cmpl %r11d, %edi
cmovbl %esi, %r14d
cmovbel %r11d, %edi
imulq %rdx, %r11
shrq $0x1f, %r11
cmpl $0x2, %r11d
cmovbl %r8d, %r11d
movl %r11d, (%r13,%rsi,4)
addl %eax, %r11d
movl %r11d, %eax
incq %rsi
cmpq $0x100, %rsi            # imm = 0x100
jne 0x68247
movl %r12d, %edi
subl %eax, %edi
movslq %r14d, %rdx
testl %edi, %edi
jg 0x68317
jns 0x68327
movl (%rbx,%rdx,4), %esi
movl %edi, %r11d
negl %r11d
cmpl %r11d, %esi
jbe 0x682b9
movl %esi, %r14d
shrl %r14d
cmpl %r11d, %r14d
setb %r11b
testb %r11b, %bpl
je 0x6831f
testb $0x1, %bpl
movl $0x0, %ebp
jne 0x68220
addl %esi, %edi
movl $0x1, (%rbx,%rdx,4)
decl %edi
je 0x68327
xorl %eax, %eax
movl (%r13,%rax,4), %ecx
cmpl $0x2, %ecx
jb 0x682ff
movl %edi, %esi
negl %esi
movl $0x1, %r11d
subl %ecx, %r11d
cmpl %esi, %ecx
cmoval %edi, %r11d
addl %r11d, %ecx
movl %ecx, (%r13,%rax,4)
subl %r11d, %edi
cmpq $0xfe, %rax
ja 0x68327
incq %rax
testl %edi, %edi
jne 0x682d7
jmp 0x68327
xorl %eax, %eax
jmp 0x6859c
leaq (%rbx,%rdx,4), %rax
movl (%rax), %esi
jmp 0x68323
leaq (%rbx,%rdx,4), %rax
addl %edi, %esi
movl %esi, (%rax)
cmpl $0x0, (%rbx,%rdx,4)
je 0x68595
movl %r12d, 0x90(%rsp,%r15,4)
xorl %ecx, %ecx
xorl %edx, %edx
movq 0x18(%rsp), %rdi
movq %rdi, %rax
cmpl $0x0, 0x90(%rsp,%rcx,4)
je 0x68459
cmpl $0x0, (%r13,%rcx,4)
je 0x68382
testl %edx, %edx
je 0x6836c
decl %edx
movslq %edx, %rdx
subq %rdx, %rax
movb %dl, (%rax)
incq %rax
movl (%r13,%rcx,4), %edx
cmpl $0x7f, %edx
ja 0x6838f
movb %dl, (%rax)
movl $0x1, %edx
jmp 0x68454
incl %edx
movb $0x0, (%rax)
incq %rax
jmp 0x68459
movl %edx, %esi
cmpl $0x3fff, %edx           # imm = 0x3FFF
ja 0x683b3
shrl $0x7, %esi
orb $-0x80, %sil
movb %sil, (%rax)
andb $0x7f, %dl
movb %dl, 0x1(%rax)
movl $0x2, %edx
jmp 0x68454
cmpl $0x1fffff, %edx         # imm = 0x1FFFFF
ja 0x683df
shrl $0xe, %esi
orb $-0x80, %sil
movb %sil, (%rax)
movl %edx, %esi
shrl $0x7, %esi
orb $-0x80, %sil
movb %sil, 0x1(%rax)
andb $0x7f, %dl
movb %dl, 0x2(%rax)
movl $0x3, %edx
jmp 0x68454
cmpl $0xfffffff, %edx        # imm = 0xFFFFFFF
ja 0x68418
shrl $0x15, %esi
orb $-0x80, %sil
movb %sil, (%rax)
movl %edx, %esi
shrl $0xe, %esi
orb $-0x80, %sil
movb %sil, 0x1(%rax)
movl %edx, %esi
shrl $0x7, %esi
orb $-0x80, %sil
movb %sil, 0x2(%rax)
andb $0x7f, %dl
movb %dl, 0x3(%rax)
movl $0x4, %edx
jmp 0x68454
shrl $0x1c, %esi
orb $-0x80, %sil
movb %sil, (%rax)
movl %edx, %esi
shrl $0x15, %esi
orb $-0x80, %sil
movb %sil, 0x1(%rax)
movl %edx, %esi
shrl $0xe, %esi
orb $-0x80, %sil
movb %sil, 0x2(%rax)
movl %edx, %esi
shrl $0x7, %esi
orb $-0x80, %sil
movb %sil, 0x3(%rax)
andb $0x7f, %dl
movb %dl, 0x4(%rax)
movl $0x5, %edx
addq %rdx, %rax
xorl %edx, %edx
incq %rcx
cmpq $0x100, %rcx            # imm = 0x100
jne 0x68345
testl %edx, %edx
je 0x6847a
decl %edx
movslq %edx, %rcx
subq %rcx, %rax
movb %cl, (%rax)
incq %rax
movl 0x90(%rsp,%r15,4), %edx
movl %r9d, %ecx
notl %ecx
testl %ecx, %edx
je 0x684b0
xorl %ecx, %ecx
cmpl %r9d, %edx
jae 0x6849d
xorl %ecx, %ecx
addl %edx, %edx
incl %ecx
cmpl %r9d, %edx
jb 0x68494
xorl %edx, %edx
shll %cl, (%r13,%rdx,4)
incq %rdx
cmpq $0x100, %rdx            # imm = 0x100
jne 0x6849f
subl %edi, %eax
cltq
addq %rax, %rdi
movq %rdi, 0x18(%rsp)
movl %r9d, 0x90(%rsp,%r15,4)
xorl %esi, %esi
xorl %ebp, %ebp
movq 0x48(%rsp), %rcx
movl %r9d, %eax
subl %ebp, %eax
jb 0x68d43
movl (%rbx,%rsi,4), %r14d
cmpl %r14d, %eax
jb 0x68d62
movq %r15, %rax
shlq $0xc, %rax
addq %rcx, %rax
movq %rsi, %r12
shlq $0x4, %r12
addq %rax, %r12
movl %r10d, %eax
imull %r14d, %eax
decl %eax
movl %eax, (%r12)
movl %r9d, %eax
subl %r14d, %eax
movw %ax, 0xc(%r12)
cmpl $0x2, %r14d
jae 0x68532
movl $0xffffffff, 0x4(%r12)  # imm = 0xFFFFFFFF
movw $0x0, 0xe(%r12)
movq 0x28(%rsp), %rax
addl %ebp, %eax
jmp 0x68572
movl $0x1e, %edi
leal -0x1e(%rdi), %ecx
movl $0x1, %eax
shll %cl, %eax
incl %edi
cmpl %r14d, %eax
jb 0x68537
movl $0x1, %eax
movl %edi, %ecx
shlq %cl, %rax
addq %r14, %rax
decq %rax
xorl %edx, %edx
divq %r14
movl %eax, 0x4(%r12)
addl $-0x20, %edi
movw %di, 0xe(%r12)
movl %ebp, %eax
movq 0x48(%rsp), %rcx
movl %eax, 0x8(%r12)
addw $0x20, 0xe(%r12)
addl (%rbx,%rsi,4), %ebp
incq %rsi
cmpq $0x100, %rsi            # imm = 0x100
jne 0x684cd
xorl %eax, %eax
jmp 0x68597
movb $0x1, %al
movq 0x38(%rsp), %rbp
testb %al, %al
jne 0x68644
incq %r15
addq $0x400, %r13            # imm = 0x400
cmpq $0x100, %r15            # imm = 0x100
jne 0x681da
movl 0x20(%rsp), %eax
shlb $0x4, %al
movq 0x60(%rsp), %rcx
movb %al, (%rcx)
movq 0x18(%rsp), %rax
movq %rax, %rbx
movq %rcx, %r12
subq %rcx, %rbx
cmpq $0x3e9, %rbx            # imm = 0x3E9
movq 0x58(%rsp), %r15
jl 0x6865a
movq %rax, %rsi
movq 0x40(%rsp), %rdi
subq %rdi, %rsi
leaq 0x6c(%rsp), %rcx
movq %rsi, 0x28(%rsp)
xorl %edx, %edx
callq 0x64845
movq %rax, %rsi
testq %rax, %rax
je 0x6866b
movl 0x6c(%rsp), %edx
leal 0x6(%rdx), %eax
cmpq %rax, %rbx
movq 0x30(%rsp), %r14
movq 0x10(%rsp), %r13
jle 0x6881d
orb $0x1, (%r12)
movq 0x28(%rsp), %rdi
cmpl $0x7f, %edi
ja 0x6867a
movq 0x40(%rsp), %rbx
movb %dil, (%rbx)
movl $0x1, %eax
jmp 0x68735
movb $0x1, %bl
movq 0x60(%rsp), %rax
movq %rax, %r12
movq %rax, 0x18(%rsp)
movq 0x58(%rsp), %r15
jmp 0x6865c
xorl %ebx, %ebx
movq 0x30(%rsp), %r14
movq 0x10(%rsp), %r13
jmp 0x68827
movq 0x30(%rsp), %r14
movq 0x10(%rsp), %r13
jmp 0x6881d
movq %r12, %rcx
cmpl $0x3fff, %edi           # imm = 0x3FFF
movq 0x40(%rsp), %rbx
movl %edi, %eax
ja 0x686a6
shrl $0x7, %eax
orb $-0x80, %al
movb %al, 0x1(%rcx)
andb $0x7f, %dil
movb %dil, 0x2(%rcx)
movl $0x2, %eax
jmp 0x68735
cmpl $0x1fffff, %edi         # imm = 0x1FFFFF
ja 0x686cf
shrl $0xe, %eax
orb $-0x80, %al
movb %al, 0x1(%rcx)
movl %edi, %eax
shrl $0x7, %eax
orb $-0x80, %al
movb %al, 0x2(%rcx)
andb $0x7f, %dil
movb %dil, 0x3(%rcx)
movl $0x3, %eax
jmp 0x68735
cmpl $0xfffffff, %edi        # imm = 0xFFFFFFF
ja 0x68702
shrl $0x15, %eax
orb $-0x80, %al
movb %al, 0x1(%rcx)
movl %edi, %eax
shrl $0xe, %eax
orb $-0x80, %al
movb %al, 0x2(%rcx)
movl %edi, %eax
shrl $0x7, %eax
orb $-0x80, %al
movb %al, 0x3(%rcx)
andb $0x7f, %dil
movb %dil, 0x4(%rcx)
movl $0x4, %eax
jmp 0x68735
shrl $0x1c, %eax
orb $-0x80, %al
movb %al, 0x1(%rcx)
movl %edi, %eax
shrl $0x15, %eax
orb $-0x80, %al
movb %al, 0x2(%rcx)
movl %edi, %eax
shrl $0xe, %eax
orb $-0x80, %al
movb %al, 0x3(%rcx)
movl %edi, %eax
shrl $0x7, %eax
orb $-0x80, %al
movb %al, 0x4(%rcx)
andb $0x7f, %dil
movb %dil, 0x5(%rcx)
movl $0x5, %eax
addq %rax, %rbx
cmpl $0x7f, %edx
ja 0x68749
movb %dl, (%rbx)
movl $0x1, %eax
jmp 0x687f4
movl %edx, %eax
cmpl $0x3fff, %edx           # imm = 0x3FFF
ja 0x6876b
shrl $0x7, %eax
orb $-0x80, %al
movb %al, (%rbx)
movl %edx, %eax
andb $0x7f, %al
movb %al, 0x1(%rbx)
movl $0x2, %eax
jmp 0x687f4
cmpl $0x1fffff, %edx         # imm = 0x1FFFFF
ja 0x68792
shrl $0xe, %eax
orb $-0x80, %al
movb %al, (%rbx)
movl %edx, %eax
shrl $0x7, %eax
orb $-0x80, %al
movb %al, 0x1(%rbx)
movl %edx, %eax
andb $0x7f, %al
movb %al, 0x2(%rbx)
movl $0x3, %eax
jmp 0x687f4
cmpl $0xfffffff, %edx        # imm = 0xFFFFFFF
ja 0x687c3
shrl $0x15, %eax
orb $-0x80, %al
movb %al, (%rbx)
movl %edx, %eax
shrl $0xe, %eax
orb $-0x80, %al
movb %al, 0x1(%rbx)
movl %edx, %eax
shrl $0x7, %eax
orb $-0x80, %al
movb %al, 0x2(%rbx)
movl %edx, %eax
andb $0x7f, %al
movb %al, 0x3(%rbx)
movl $0x4, %eax
jmp 0x687f4
shrl $0x1c, %eax
orb $-0x80, %al
movb %al, (%rbx)
movl %edx, %eax
shrl $0x15, %eax
orb $-0x80, %al
movb %al, 0x1(%rbx)
movl %edx, %eax
shrl $0xe, %eax
orb $-0x80, %al
movb %al, 0x2(%rbx)
movl %edx, %eax
shrl $0x7, %eax
orb $-0x80, %al
movb %al, 0x3(%rbx)
movl %edx, %eax
andb $0x7f, %al
movb %al, 0x4(%rbx)
movl $0x5, %eax
addq %rax, %rbx
movq %rbx, %rdi
movq %rsi, 0x28(%rsp)
movq 0x28(%rsp), %rsi
movq %rdx, 0x20(%rsp)
callq 0x43c0
movq 0x28(%rsp), %rsi
addq 0x20(%rsp), %rbx
movq %rbx, 0x18(%rsp)
movq %rsi, %rdi
callq 0x45c0
xorl %ebx, %ebx
movq %rbp, %rdi
callq 0x80732
movq 0x18(%rsp), %rax
testb %bl, %bl
je 0x68859
movq 0x48(%rsp), %rdi
callq 0x80732
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8b8, %rsp            # imm = 0x8B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, 0x18(%rsp)
addq %r12, %r15
movl %r14d, %eax
shrl $0x2, %eax
leaq (%rax,%rax,2), %rcx
movl %r14d, %edx
andl $-0x4, %edx
addl $-0x2, %edx
movb -0x1(%r13,%rax), %r10b
movq %rax, 0x28(%rsp)
movb -0x1(%r13,%rax,2), %al
movb %al, 0x50(%rsp)
movq %rcx, 0x38(%rsp)
movb -0x1(%r13,%rcx), %r12b
leal -0x1(%r14), %ecx
movb (%r13,%rcx), %cl
leal -0x2(%r14), %esi
movl $0x8000, %eax           # imm = 0x8000
cmpl %edx, %esi
movq %r15, 0x58(%rsp)
jle 0x68930
movslq %esi, %r8
movslq %edx, %rdx
movq %rdx, 0x20(%rsp)
movl $0x8000, %r11d          # imm = 0x8000
movq %r15, %rdi
movq %r13, %r9
movzbl (%r9,%r8), %r14d
movl %r14d, %ebx
shll $0xc, %ebx
addq 0x48(%rsp), %rbx
movzbl %cl, %r15d
shll $0x4, %r15d
xorl %ecx, %ecx
cmpl (%r15,%rbx), %r11d
seta %cl
leal (%rcx,%rcx), %r13d
movw %r11w, -0x2(%rdi)
shll $0x4, %ecx
shrl %cl, %r11d
movl 0x4(%r15,%rbx), %edx
imulq %r11, %rdx
movb 0xe(%r15,%rbx), %cl
shrq %cl, %rdx
subq %r13, %rdi
addl 0x8(%r15,%rbx), %r11d
movzwl 0xc(%r15,%rbx), %ebp
imull %edx, %ebp
addl %r11d, %ebp
decq %r8
decl %esi
movl %r14d, %ecx
movl %ebp, %r11d
cmpq 0x20(%rsp), %r8
jg 0x688c7
jmp 0x6893b
movl $0x8000, %ebp           # imm = 0x8000
movq %r15, %rdi
movl %ecx, %r14d
movq 0x18(%rsp), %rcx
subq 0x60(%rsp), %rcx
movq %rcx, 0x18(%rsp)
movq 0x30(%rsp), %r13
cmpl $0x8, %r13d
jb 0x68b92
movq 0x28(%rsp), %r9
leal -0x2(%r9), %ecx
movq 0x38(%rsp), %rdx
addl $-0x2, %edx
movl %ecx, %eax
movq %rax, 0x88(%rsp)
shrl %r13d
andl $-0x2, %r13d
movslq %edx, %rax
movq %rax, 0x80(%rsp)
movslq %esi, %rax
movq %rax, 0x78(%rsp)
decl %r9d
movl $0x8000, %ebx           # imm = 0x8000
movl $0x8000, %r11d          # imm = 0x8000
movl $0x8000, %r15d          # imm = 0x8000
movq 0x10(%rsp), %rcx
movb %r10b, 0xf(%rsp)
movq %r13, 0x30(%rsp)
movq %rcx, 0x10(%rsp)
movq %r9, 0x28(%rsp)
movq 0x78(%rsp), %rax
movzbl (%rcx,%rax), %eax
movl %eax, 0x68(%rsp)
movl %eax, %r8d
shll $0xc, %r8d
movq 0x48(%rsp), %rax
addq %rax, %r8
movzbl %r14b, %r9d
shll $0x4, %r9d
movq 0x80(%rsp), %rcx
movq 0x10(%rsp), %rdx
movzbl (%rdx,%rcx), %ecx
movl %ecx, 0x40(%rsp)
movl %ecx, %edx
shll $0xc, %edx
addq %rax, %rdx
movzbl %r12b, %r12d
shll $0x4, %r12d
movq 0x10(%rsp), %rcx
movzbl -0x2(%rcx,%r13), %ecx
movl %ecx, 0x38(%rsp)
movl %ecx, %esi
shll $0xc, %esi
addq %rax, %rsi
movzbl 0x50(%rsp), %r14d
shll $0x4, %r14d
movq 0x88(%rsp), %rcx
movq 0x10(%rsp), %r10
movzbl (%r10,%rcx), %ecx
movl %ecx, 0x20(%rsp)
movl %ecx, %r10d
shll $0xc, %r10d
addq %rax, %r10
movzbl 0xf(%rsp), %r13d
shll $0x4, %r13d
xorl %ecx, %ecx
cmpl (%r9,%r8), %ebp
seta %cl
movw %bp, -0x2(%rdi)
leal (%rcx,%rcx), %eax
movq %rax, 0x50(%rsp)
shll $0x4, %ecx
shrl %cl, %ebp
movl 0x4(%r9,%r8), %eax
imulq %rbp, %rax
movb 0xe(%r9,%r8), %cl
shrq %cl, %rax
subq 0x50(%rsp), %rdi
addl 0x8(%r9,%r8), %ebp
movzwl 0xc(%r9,%r8), %r8d
imull %eax, %r8d
addl %ebp, %r8d
xorl %ecx, %ecx
cmpl (%r12,%rdx), %ebx
seta %cl
movw %bx, -0x2(%rdi)
leal (%rcx,%rcx), %eax
shll $0x4, %ecx
shrl %cl, %ebx
movl 0x4(%r12,%rdx), %r9d
imulq %rbx, %r9
movb 0xe(%r12,%rdx), %cl
shrq %cl, %r9
subq %rax, %rdi
addl 0x8(%r12,%rdx), %ebx
movzwl 0xc(%r12,%rdx), %edx
imull %r9d, %edx
addl %ebx, %edx
xorl %ecx, %ecx
cmpl (%r14,%rsi), %r11d
seta %cl
leal (%rcx,%rcx), %eax
movw %r11w, -0x2(%rdi)
shll $0x4, %ecx
shrl %cl, %r11d
movl 0x4(%r14,%rsi), %r9d
imulq %r11, %r9
movb 0xe(%r14,%rsi), %cl
shrq %cl, %r9
subq %rax, %rdi
addl 0x8(%r14,%rsi), %r11d
movzwl 0xc(%r14,%rsi), %esi
imull %r9d, %esi
addl %r11d, %esi
xorl %ecx, %ecx
cmpl (%r13,%r10), %r15d
seta %cl
leal (%rcx,%rcx), %eax
movw %r15w, -0x2(%rdi)
shll $0x4, %ecx
shrl %cl, %r15d
movl 0x4(%r13,%r10), %r9d
imulq %r15, %r9
movb 0xe(%r13,%r10), %cl
shrq %cl, %r9
movq 0x10(%rsp), %rcx
subq %rax, %rdi
addl 0x8(%r13,%r10), %r15d
movzwl 0xc(%r13,%r10), %eax
movq 0x30(%rsp), %r13
imull %r9d, %eax
movq 0x28(%rsp), %r9
addl %r15d, %eax
decq %rcx
movl 0x68(%rsp), %r14d
movl %r14d, %r10d
movl 0x40(%rsp), %r11d
movl %r11d, %r12d
movl 0x38(%rsp), %r11d
movb %r11b, 0x50(%rsp)
movl 0x20(%rsp), %r11d
movb %r11b, 0xf(%rsp)
movl %r8d, %ebp
movl %edx, %ebx
movl %esi, %r11d
movl %eax, %r15d
decl %r9d
jg 0x689b1
jmp 0x68bb8
movl $0x8000, %esi           # imm = 0x8000
movl $0x8000, %edx           # imm = 0x8000
movl %ebp, %r8d
movl %r10d, %ecx
movl %ecx, 0x20(%rsp)
movb 0x50(%rsp), %cl
movl %ecx, 0x38(%rsp)
movl %r12d, %ecx
movl %ecx, 0x40(%rsp)
movl %r14d, %r10d
movzbl %r10b, %r9d
shll $0x4, %r9d
xorl %ecx, %ecx
movq 0x48(%rsp), %r14
cmpl (%r14,%r9), %r8d
seta %cl
leal (%rcx,%rcx), %r11d
movw %r8w, -0x2(%rdi)
shll $0x4, %ecx
shrl %cl, %r8d
subq %r11, %rdi
movl 0x4(%r14,%r9), %r11d
imulq %r8, %r11
movb 0xe(%r14,%r9), %cl
shrq %cl, %r11
addl 0x8(%r14,%r9), %r8d
movzwl 0xc(%r14,%r9), %ebp
imull %r11d, %ebp
addl %r8d, %ebp
movzbl 0x40(%rsp), %r8d
shll $0x4, %r8d
xorl %ecx, %ecx
cmpl (%r14,%r8), %edx
seta %cl
leal (%rcx,%rcx), %r9d
movw %dx, -0x2(%rdi)
shll $0x4, %ecx
shrl %cl, %edx
subq %r9, %rdi
movl 0x4(%r14,%r8), %r9d
imulq %rdx, %r9
movb 0xe(%r14,%r8), %cl
shrq %cl, %r9
addl 0x8(%r14,%r8), %edx
movzwl 0xc(%r14,%r8), %ebx
imull %r9d, %ebx
addl %edx, %ebx
movzbl 0x38(%rsp), %edx
shll $0x4, %edx
xorl %ecx, %ecx
cmpl (%r14,%rdx), %esi
seta %cl
leal (%rcx,%rcx), %r8d
movw %si, -0x2(%rdi)
shll $0x4, %ecx
shrl %cl, %esi
subq %r8, %rdi
movl 0x4(%r14,%rdx), %r8d
imulq %rsi, %r8
movb 0xe(%r14,%rdx), %cl
shrq %cl, %r8
addl 0x8(%r14,%rdx), %esi
movzwl 0xc(%r14,%rdx), %edx
imull %r8d, %edx
addl %esi, %edx
movzbl 0x20(%rsp), %esi
shll $0x4, %esi
xorl %ecx, %ecx
cmpl (%r14,%rsi), %eax
seta %cl
leal (%rcx,%rcx), %r8d
movw %ax, -0x2(%rdi)
shll $0x4, %ecx
shrl %cl, %eax
movl 0x4(%r14,%rsi), %r9d
imulq %rax, %r9
movb 0xe(%r14,%rsi), %cl
shrq %cl, %r9
addl 0x8(%r14,%rsi), %eax
subq %r8, %rdi
movzwl 0xc(%r14,%rsi), %ecx
imull %r9d, %ecx
addl %eax, %ecx
movl %ebp, -0x4(%rdi)
movb %bl, -0x8(%rdi)
movb %bh, -0x7(%rdi)
movl %ebx, %eax
shrl $0x10, %eax
movb %al, -0x6(%rdi)
shrl $0x18, %ebx
movb %bl, -0x5(%rdi)
movb %dl, -0xc(%rdi)
movb %dh, -0xb(%rdi)
movl %edx, %eax
shrl $0x10, %eax
movb %al, -0xa(%rdi)
shrl $0x18, %edx
movb %dl, -0x9(%rdi)
movb %cl, -0x10(%rdi)
movb %ch, -0xf(%rdi)
movl %ecx, %eax
shrl $0x10, %eax
movb %al, -0xe(%rdi)
shrl $0x18, %ecx
movb %cl, -0xd(%rdi)
leaq -0x10(%rdi), %rsi
movq 0x58(%rsp), %rdx
subq %rsi, %rdx
movq 0x18(%rsp), %rcx
movl %ecx, %edi
addl %edx, %ecx
movq 0x70(%rsp), %rax
movl %ecx, (%rax)
movq 0x60(%rsp), %rbx
addq %rbx, %rdi
callq 0x4830
movq %r14, %rdi
callq 0x80732
jmp 0x68844
leaq 0x35ecc(%rip), %rdi     # 0x9ec16
leaq 0x35e5f(%rip), %rsi     # 0x9ebb0
leaq 0x35e78(%rip), %rcx     # 0x9ebd0
movl $0xcc, %edx
callq 0x42f0
leaq 0x35ec9(%rip), %rdi     # 0x9ec32
leaq 0x35e40(%rip), %rsi     # 0x9ebb0
leaq 0x35e59(%rip), %rcx     # 0x9ebd0
movl $0xcd, %edx
callq 0x42f0