// File: /workspace/github_c_makefile_star2_O1/samtools[P]htslib/htscodecs/htscodecs/rANS_static.c
// Function: rans_compress_O0
static
unsigned char *rans_compress_O0(unsigned char *in, unsigned int in_size,
                                unsigned int *out_size) {
    unsigned char *out_buf = malloc(1.05*in_size + 257*257*3 + 9);
    unsigned char *cp, *out_end;
    RansEncSymbol syms[256];
    RansState rans0;
    RansState rans2;
    RansState rans1;
    RansState rans3;
    uint8_t* ptr;
    int F[256+MAGIC] = {0}, i, j, tab_size, rle, x, fsum = 0;
    int m = 0, M = 0;
    uint64_t tr;

    if (!out_buf)
        return NULL;

    ptr = out_end = out_buf + (uint32_t)(1.05*in_size) + 257*257*3 + 9;

    // Compute statistics
    if (hist8(in, in_size, (uint32_t *)F) < 0) {
        free(out_buf);
        return NULL;
    }
    tr = in_size ? ((uint64_t)TOTFREQ<<31)/in_size + (1<<30)/in_size : 0;

 normalise_harder:
    // Normalise so T[i] == TOTFREQ
    for (fsum = m = M = j = 0; j < 256; j++) {
        if (!F[j])
            continue;

        if (m < F[j])
            m = F[j], M = j;

        if ((F[j] = (F[j]*tr)>>31) == 0)
            F[j] = 1;
        fsum += F[j];
    }

    fsum++;
    if (fsum < TOTFREQ) {
        F[M] += TOTFREQ-fsum;
    } else if (fsum-TOTFREQ > F[M]/2) {
        // Corner case to avoid excessive frequency reduction
        tr = 2104533975; goto normalise_harder; // equiv to *0.98.
    } else {
        F[M] -= fsum-TOTFREQ;
    }

    //printf("F[%d]=%d\n", M, F[M]);
    assert(F[M]>0);

    // Encode statistics.
    cp = out_buf+9;

    for (x = rle = j = 0; j < 256; j++) {
        if (F[j]) {
            // j
            if (rle) {
                rle--;
            } else {
                *cp++ = j;
                if (!rle && j && F[j-1])  {
                    for(rle=j+1; rle<256 && F[rle]; rle++)
                        ;
                    rle -= j+1;
                    *cp++ = rle;
                }
                //fprintf(stderr, "%d: %d %d\n", j, rle, N[j]);
            }
            
            // F[j]
            if (F[j]<128) {
                *cp++ = F[j];
            } else {
                *cp++ = 128 | (F[j]>>8);
                *cp++ = F[j]&0xff;
            }
            RansEncSymbolInit(&syms[j], x, F[j], TF_SHIFT);
            x += F[j];
        }
    }
    *cp++ = 0;

    //write(2, out_buf+4, cp-(out_buf+4));
    tab_size = cp-out_buf;

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

    switch (i=(in_size&3)) {
    case 3: RansEncPutSymbol(&rans2, &ptr, &syms[in[in_size-(i-2)]]);
        // fall-through
    case 2: RansEncPutSymbol(&rans1, &ptr, &syms[in[in_size-(i-1)]]);
        // fall-through
    case 1: RansEncPutSymbol(&rans0, &ptr, &syms[in[in_size-(i-0)]]);
        // fall-through
    case 0:
        break;
    }
    for (i=(in_size &~3); likely(i>0); i-=4) {
        RansEncSymbol *s3 = &syms[in[i-1]];
        RansEncSymbol *s2 = &syms[in[i-2]];
        RansEncSymbol *s1 = &syms[in[i-3]];
        RansEncSymbol *s0 = &syms[in[i-4]];

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

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

    // Finalise block size and return it
    *out_size = (out_end - ptr) + tab_size;

    cp = out_buf;

    *cp++ = 0; // order
    *cp++ = ((*out_size-9)>> 0) & 0xff;
    *cp++ = ((*out_size-9)>> 8) & 0xff;
    *cp++ = ((*out_size-9)>>16) & 0xff;
    *cp++ = ((*out_size-9)>>24) & 0xff;

    *cp++ = (in_size>> 0) & 0xff;
    *cp++ = (in_size>> 8) & 0xff;
    *cp++ = (in_size>>16) & 0xff;
    *cp++ = (in_size>>24) & 0xff;

    memmove(out_buf + tab_size, ptr, out_end-ptr);

    return out_buf;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1c98, %rsp           # imm = 0x1C98
movq %rdx, %rbp
movl %esi, %ebx
movq %rdi, %r12
cvtsi2sd %esi, %xmm1
mulsd 0x228e6(%rip), %xmm1    # 0x9dbb0
movsd 0x2353e(%rip), %xmm0    # 0x9e810
movsd %xmm1, 0x8(%rsp)
addsd %xmm1, %xmm0
addsd 0x27bac(%rip), %xmm0    # 0xa2e90
cvttsd2si %xmm0, %rax
movq %rax, %rcx
sarq $0x3f, %rcx
subsd 0x1d3d8(%rip), %xmm0    # 0x986d0
cvttsd2si %xmm0, %rdi
andq %rcx, %rdi
orq %rax, %rdi
callq 0x4680
movq %rax, %r15
leaq 0x30(%rsp), %rdi
movl $0x420, %edx            # imm = 0x420
xorl %esi, %esi
callq 0x4260
testq %r15, %r15
je 0x7b4d7
cmpl $0x7a121, %ebx          # imm = 0x7A121
movq %rbx, (%rsp)
jb 0x7b3c9
movl $0x3006f, %edi          # imm = 0x3006F
movl $0x4, %esi
callq 0x8070d
testq %rax, %rax
je 0x7b4cf
movl %ebx, %ecx
andl $-0x10, %ecx
je 0x7b4de
movl %ecx, %edx
xorl %ecx, %ecx
movzwl (%r12,%rcx), %esi
movzwl 0x2(%r12,%rcx), %edi
movzwl 0x4(%r12,%rcx), %r8d
movzwl 0x6(%r12,%rcx), %r9d
incl (%rax,%rsi,4)
incl 0x40094(%rax,%rdi,4)
incl 0x80128(%rax,%r8,4)
incl (%rax,%r9,4)
movzwl 0x8(%r12,%rcx), %esi
movzwl 0xa(%r12,%rcx), %edi
movzwl 0xc(%r12,%rcx), %r8d
movzwl 0xe(%r12,%rcx), %r9d
incl 0x40094(%rax,%rsi,4)
incl (%rax,%rdi,4)
incl 0x40094(%rax,%r8,4)
incl 0x80128(%rax,%r9,4)
addq $0x10, %rcx
cmpq %rdx, %rcx
jb 0x7b35c
jmp 0x7b4e0
leaq 0x450(%rsp), %rdi
movq %rbx, %r14
xorl %ebx, %ebx
movl $0x420, %edx            # imm = 0x420
xorl %esi, %esi
callq 0x4260
leaq 0x1870(%rsp), %rdi
movl $0x420, %edx            # imm = 0x420
xorl %esi, %esi
callq 0x4260
leaq 0x1450(%rsp), %rdi
movl $0x420, %edx            # imm = 0x420
xorl %esi, %esi
callq 0x4260
movl %r14d, %eax
andl $0x7fff8, %eax          # imm = 0x7FFF8
movsd 0x8(%rsp), %xmm0
je 0x7b488
movl %eax, %eax
xorl %ebx, %ebx
movzbl (%r12,%rbx), %ecx
incl 0x30(%rsp,%rcx,4)
movzbl 0x1(%r12,%rbx), %ecx
incl 0x450(%rsp,%rcx,4)
movzbl 0x2(%r12,%rbx), %ecx
incl 0x1870(%rsp,%rcx,4)
movzbl 0x3(%r12,%rbx), %ecx
incl 0x1450(%rsp,%rcx,4)
movzbl 0x4(%r12,%rbx), %ecx
incl 0x30(%rsp,%rcx,4)
movzbl 0x5(%r12,%rbx), %ecx
incl 0x450(%rsp,%rcx,4)
movzbl 0x6(%r12,%rbx), %ecx
incl 0x1870(%rsp,%rcx,4)
movzbl 0x7(%r12,%rbx), %ecx
incl 0x1450(%rsp,%rcx,4)
addq $0x8, %rbx
cmpq %rax, %rbx
jb 0x7b41e
cmpl (%rsp), %ebx
jae 0x7b4a3
movl %ebx, %eax
movl (%rsp), %ecx
movzbl (%r12,%rax), %edx
incq %rax
incl 0x30(%rsp,%rdx,4)
cmpq %rax, %rcx
jne 0x7b492
xorl %eax, %eax
movl 0x1870(%rsp,%rax,4), %ecx
addl 0x450(%rsp,%rax,4), %ecx
addl 0x1450(%rsp,%rax,4), %ecx
addl %ecx, 0x30(%rsp,%rax,4)
incq %rax
cmpq $0x100, %rax            # imm = 0x100
jne 0x7b4a5
movq (%rsp), %rbx
jmp 0x7b536
movq %r15, %rdi
callq 0x45c0
xorl %ebp, %ebp
jmp 0x7bbdf
xorl %ecx, %ecx
cmpl %ebx, %ecx
jae 0x7b4f9
movl %ecx, %ecx
movl %ebx, %edx
movzbl (%r12,%rcx), %esi
incq %rcx
incl 0x30(%rsp,%rsi,4)
cmpq %rcx, %rdx
jne 0x7b4e8
xorl %ecx, %ecx
movl 0x40094(%rax,%rcx,4), %edx
addl (%rax,%rcx,4), %edx
addl 0x80128(%rax,%rcx,4), %edx
movzbl %cl, %esi
addl %edx, 0x30(%rsp,%rsi,4)
movl %ecx, %esi
shrl $0x8, %esi
addl %edx, 0x30(%rsp,%rsi,4)
incq %rcx
cmpq $0x10000, %rcx          # imm = 0x10000
jne 0x7b4fb
movq %rax, %rdi
callq 0x80732
movsd 0x8(%rsp), %xmm0
cvttsd2si %xmm0, %rax
movl %eax, %esi
testl %ebx, %ebx
je 0x7b563
movl %ebx, %ecx
movabsq $0x80000000000, %rax    # imm = 0x80000000000
xorl %edx, %edx
divq %rcx
movq %rax, %rcx
movl $0x40000000, %eax       # imm = 0x40000000
xorl %edx, %edx
divl %ebx
addq %rcx, %rax
jmp 0x7b565
xorl %eax, %eax
leaq (%r15,%rsi), %r9
leaq (%r15,%rsi), %rcx
addq $0x3060c, %rcx          # imm = 0x3060C
movq %rcx, 0x10(%rsp)
movl $0x1, %ecx
xorl %esi, %esi
xorl %edi, %edi
xorl %r8d, %r8d
xorl %edx, %edx
movslq 0x30(%rsp,%rsi,4), %r10
testq %r10, %r10
je 0x7b5b6
cmpl %r10d, %r8d
cmovlel %r10d, %r8d
cmovll %esi, %edi
imulq %rax, %r10
shrq $0x1f, %r10
cmpl $0x2, %r10d
cmovbl %ecx, %r10d
movl %r10d, 0x30(%rsp,%rsi,4)
addl %edx, %r10d
movl %r10d, %edx
incq %rsi
cmpq $0x100, %rsi            # imm = 0x100
jne 0x7b587
movslq %edi, %rsi
cmpl $0xffe, %edx            # imm = 0xFFE
jle 0x7b5f6
addl $0xfffff001, %edx       # imm = 0xFFFFF001
movl 0x30(%rsp,%rsi,4), %edi
movl %edi, %r8d
shrl $0x1f, %r8d
addl %edi, %r8d
sarl %r8d
movl $0x7d70a3d7, %eax       # imm = 0x7D70A3D7
cmpl %r8d, %edx
jg 0x7b57e
subl %edx, %edi
movl %edi, 0x30(%rsp,%rsi,4)
jmp 0x7b605
movl 0x30(%rsp,%rsi,4), %eax
subl %edx, %eax
addl $0xfff, %eax            # imm = 0xFFF
movl %eax, 0x30(%rsp,%rsi,4)
movq %r12, 0x8(%rsp)
cmpl $0x0, 0x30(%rsp,%rsi,4)
jle 0x7bc83
leaq 0x9(%r15), %rcx
xorl %edi, %edi
movl $0x1, %r11d
xorl %ebx, %ebx
xorl %r12d, %r12d
cmpl $0x0, 0x30(%rsp,%rdi,4)
je 0x7b724
testl %r12d, %r12d
je 0x7b739
decl %r12d
movq %rcx, %r14
movl 0x30(%rsp,%rdi,4), %eax
movl $0x1, %r8d
cmpl $0x80, %eax
jge 0x7b656
movq %r14, %rcx
jmp 0x7b66c
shrl $0x8, %eax
orb $-0x80, %al
leaq 0x1(%r14), %rcx
movb %al, (%r14)
movl 0x30(%rsp,%rdi,4), %eax
movl $0x2, %r8d
movb %al, (%rcx)
cmpl $0x1001, %ebx           # imm = 0x1001
jae 0x7bc64
movl 0x30(%rsp,%rdi,4), %r10d
movl $0x1000, %eax           # imm = 0x1000
subl %ebx, %eax
cmpl %r10d, %eax
jb 0x7bc45
movq %rdi, %rax
shlq $0x4, %rax
leaq (%rsp,%rax), %r13
addq $0x450, %r13            # imm = 0x450
movl %r10d, %eax
shll $0x13, %eax
movl %eax, (%r13)
movl $0x1000, %eax           # imm = 0x1000
subl %r10d, %eax
movw %ax, 0xc(%r13)
cmpl $0x2, %r10d
jae 0x7b6d5
movl $0xffffffff, 0x4(%r13)  # imm = 0xFFFFFFFF
movw $0x0, 0xe(%r13)
leal 0xfff(%rbx), %eax
jmp 0x7b70e
movl $0x1e, %esi
leal -0x1e(%rsi), %ecx
movl $0x1, %eax
shll %cl, %eax
incl %esi
cmpl %r10d, %eax
jb 0x7b6da
movl $0x1, %eax
movl %esi, %ecx
shlq %cl, %rax
addq %r10, %rax
decq %rax
xorl %edx, %edx
divq %r10
movl %eax, 0x4(%r13)
addl $-0x20, %esi
movw %si, 0xe(%r13)
movl %ebx, %eax
movl %eax, 0x8(%r13)
addw $0x20, 0xe(%r13)
addq %r8, %r14
addl %ebx, %r10d
movl %r10d, %ebx
movq %r14, %rcx
incq %rdi
incq %r11
cmpq $0x100, %rdi            # imm = 0x100
jne 0x7b626
jmp 0x7b794
leaq 0x1(%rcx), %r14
movb %dil, (%rcx)
xorl %r12d, %r12d
testq %rdi, %rdi
je 0x7b640
cmpl $0x0, 0x2c(%rsp,%rdi,4)
je 0x7b640
leaq 0x1(%rdi), %rax
movl %eax, %r12d
cmpq $0xff, %rdi
je 0x7b784
movq %r11, %r12
cmpl $0x0, 0x30(%rsp,%r12,4)
je 0x7b784
incq %r12
cmpq $0x100, %r12            # imm = 0x100
jne 0x7b76a
movl $0x100, %r12d           # imm = 0x100
subl %eax, %r12d
movb %r12b, 0x1(%rcx)
addq $0x2, %rcx
jmp 0x7b63d
movq %rbp, 0x20(%rsp)
movq %r15, 0x28(%rsp)
movq %rcx, 0x18(%rsp)
movb $0x0, (%rcx)
movq (%rsp), %r10
movl %r10d, %r14d
andl $0x3, %r14d
movl $0x800000, %esi         # imm = 0x800000
leaq 0x276e3(%rip), %rax     # 0xa2ea0
movslq (%rax,%r14,4), %rcx
addq %rax, %rcx
movl $0x800000, %r8d         # imm = 0x800000
movq 0x10(%rsp), %rdi
movq %rdi, %r12
movl $0x800000, %ebp         # imm = 0x800000
movl $0x800000, %r11d        # imm = 0x800000
movq %rdi, %r13
movl $0x800000, %ebx         # imm = 0x800000
movl $0x800000, %edx         # imm = 0x800000
movl $0x800000, %eax         # imm = 0x800000
jmpq *%rcx
leal -0x1(%r10), %eax
movq 0x8(%rsp), %rcx
movzbl (%rcx,%rax), %eax
shll $0x4, %eax
movl 0x450(%rsp,%rax), %ecx
testl %ecx, %ecx
je 0x7bbf4
cmpl $0x800001, %ecx         # imm = 0x800001
movq 0x10(%rsp), %r12
sbbq $0x0, %r12
addq %rsp, %rax
addq $0x450, %rax            # imm = 0x450
cmpl $0x800001, %ecx         # imm = 0x800001
movb $0x0, 0x3060b(%r9)
movl $0x8000, %edx           # imm = 0x8000
cmovbl %edx, %r8d
cmpl %ecx, %r8d
jae 0x7bc33
movl %r8d, %ecx
movl 0x4(%rax), %edx
imulq %rcx, %rdx
movb 0xe(%rax), %cl
shrq %cl, %rdx
movzwl 0xc(%rax), %ecx
imull %edx, %ecx
addl 0x8(%rax), %r8d
addl %ecx, %r8d
movq (%rsp), %r10
movl %r10d, %eax
subl %r14d, %eax
incl %eax
movq 0x8(%rsp), %rcx
movzbl (%rcx,%rax), %eax
shll $0x4, %eax
movl 0x450(%rsp,%rax), %ecx
testl %ecx, %ecx
je 0x7bbf4
cmpl $0x800001, %ecx         # imm = 0x800001
movq %r12, %r13
sbbq $0x0, %r13
addq %rsp, %rax
addq $0x450, %rax            # imm = 0x450
cmpl $0x800001, %ecx         # imm = 0x800001
movb $0x0, -0x1(%r12)
movl $0x8000, %edx           # imm = 0x8000
cmovbl %edx, %r11d
cmpl %ecx, %r11d
jae 0x7bc22
movl %r11d, %ecx
movl 0x4(%rax), %edx
imulq %rcx, %rdx
movb 0xe(%rax), %cl
shrq %cl, %rdx
movzwl 0xc(%rax), %ecx
imull %edx, %ecx
addl 0x8(%rax), %r11d
addl %ecx, %r11d
movl %r8d, %ebp
movq (%rsp), %r10
movl %r10d, %eax
andl $-0x4, %eax
movq 0x8(%rsp), %rcx
movzbl (%rcx,%rax), %eax
shll $0x4, %eax
movl 0x450(%rsp,%rax), %ecx
testl %ecx, %ecx
je 0x7bbf4
cmpl $0x800001, %ecx         # imm = 0x800001
movq %r13, %rdi
sbbq $0x0, %rdi
addq %rsp, %rax
addq $0x450, %rax            # imm = 0x450
cmpl $0x800001, %ecx         # imm = 0x800001
movb $0x0, -0x1(%r13)
movl $0x8000, %edx           # imm = 0x8000
cmovbl %edx, %ebx
cmpl %ecx, %ebx
jae 0x7bc13
movl %ebx, %ecx
movl 0x4(%rax), %edx
imulq %rcx, %rdx
movb 0xe(%rax), %cl
shrq %cl, %rdx
movzwl 0xc(%rax), %ecx
addl 0x8(%rax), %ebx
imull %edx, %ecx
addl %ecx, %ebx
movl %ebp, %edx
movl %r11d, %eax
movq (%rsp), %r10
movl %r10d, %ecx
andl $-0x4, %ecx
jle 0x7bb2e
movl %ecx, %r9d
addq $0x4, %r9
movq 0x8(%rsp), %rcx
movzbl -0x5(%rcx,%r9), %r11d
shll $0x4, %r11d
movl 0x450(%rsp,%r11), %ebp
testl %ebp, %ebp
je 0x7bbf4
movzbl -0x6(%rcx,%r9), %r10d
movzbl -0x7(%rcx,%r9), %r8d
movzbl -0x8(%rcx,%r9), %r13d
xorl %ecx, %ecx
cmpl %ebp, %esi
setae %cl
movb %sil, -0x1(%rdi)
subq %rcx, %rdi
shlb $0x3, %cl
shrl %cl, %esi
cmpl %ebp, %esi
jae 0x7baf8
leaq (%rsp,%r11), %r14
addq $0x450, %r14            # imm = 0x450
movl %esi, %ecx
movl 0x4(%r14), %r11d
imulq %rcx, %r11
movb 0xe(%r14), %cl
shrq %cl, %r11
shll $0x4, %r10d
leaq (%rsp,%r10), %rbp
addq $0x450, %rbp            # imm = 0x450
movl (%rbp), %r10d
testl %r10d, %r10d
je 0x7bbf4
addl 0x8(%r14), %esi
movzwl 0xc(%r14), %r12d
xorl %ecx, %ecx
cmpl %r10d, %edx
setae %cl
movb %dl, -0x1(%rdi)
subq %rcx, %rdi
shlb $0x3, %cl
shrl %cl, %edx
cmpl %r10d, %edx
jae 0x7bb07
movl %edx, %ecx
movl 0x4(%rbp), %r14d
imulq %rcx, %r14
movb 0xe(%rbp), %cl
shrq %cl, %r14
shll $0x4, %r8d
leaq (%rsp,%r8), %r10
addq $0x450, %r10            # imm = 0x450
movl (%r10), %r15d
testl %r15d, %r15d
je 0x7bbf4
addl 0x8(%rbp), %edx
movzwl 0xc(%rbp), %r8d
xorl %ecx, %ecx
cmpl %r15d, %eax
setae %cl
movb %al, -0x1(%rdi)
subq %rcx, %rdi
shlb $0x3, %cl
shrl %cl, %eax
cmpl %r15d, %eax
jae 0x7bb15
movl %eax, %ecx
movl 0x4(%r10), %ebp
imulq %rcx, %rbp
movb 0xe(%r10), %cl
shrq %cl, %rbp
shll $0x4, %r13d
addq %rsp, %r13
addq $0x450, %r13            # imm = 0x450
movl (%r13), %r15d
testl %r15d, %r15d
je 0x7bbf4
addl 0x8(%r10), %eax
movzwl 0xc(%r10), %r10d
xorl %ecx, %ecx
cmpl %r15d, %ebx
setae %cl
movb %bl, -0x1(%rdi)
subq %rcx, %rdi
shlb $0x3, %cl
shrl %cl, %ebx
cmpl %r15d, %ebx
jae 0x7bb23
movl %ebx, %ecx
movl 0x4(%r13), %r15d
imulq %rcx, %r15
movb 0xe(%r13), %cl
shrq %cl, %r15
imull %r12d, %r11d
addl %r11d, %esi
imull %r8d, %r14d
addl %r14d, %edx
imull %r10d, %ebp
addl %ebp, %eax
movzwl 0xc(%r13), %ecx
addl 0x8(%r13), %ebx
imull %r15d, %ecx
addl %ecx, %ebx
addq $-0x4, %r9
cmpq $0x4, %r9
jg 0x7b96f
jmp 0x7bb2e
movb %sil, -0x1(%rdi)
decq %rdi
shrl $0x8, %esi
jmp 0x7b9bb
movb %dl, -0x1(%rdi)
decq %rdi
shrl $0x8, %edx
jmp 0x7ba18
movb %al, -0x1(%rdi)
decq %rdi
shrl $0x8, %eax
jmp 0x7ba67
movb %bl, -0x1(%rdi)
decq %rdi
shrl $0x8, %ebx
jmp 0x7bab4
movl %esi, -0x4(%rdi)
movb %dl, -0x8(%rdi)
movb %dh, -0x7(%rdi)
movl %edx, %ecx
shrl $0x10, %ecx
movb %cl, -0x6(%rdi)
shrl $0x18, %edx
movb %dl, -0x5(%rdi)
movb %al, -0xc(%rdi)
movb %ah, -0xb(%rdi)
movl %eax, %ecx
shrl $0x10, %ecx
movb %cl, -0xa(%rdi)
shrl $0x18, %eax
movb %al, -0x9(%rdi)
movq 0x28(%rsp), %rbp
movq 0x18(%rsp), %rcx
subq %rbp, %rcx
incq %rcx
leaq -0x10(%rdi), %rsi
movb %bl, -0x10(%rdi)
movb %bh, -0xf(%rdi)
movl %ebx, %eax
shrl $0x10, %eax
movb %al, -0xe(%rdi)
shrl $0x18, %ebx
movb %bl, -0xd(%rdi)
movq 0x10(%rsp), %rdx
subq %rsi, %rdx
movslq %ecx, %rdi
addq %rdx, %rcx
movq 0x20(%rsp), %rax
movl %ecx, (%rax)
movb $0x0, (%rbp)
movl %ecx, %eax
addb $-0x9, %al
movb %al, 0x1(%rbp)
leal 0xfff7(%rcx), %eax
movb %ah, 0x2(%rbp)
leal 0xfffff7(%rcx), %eax
shrl $0x10, %eax
movb %al, 0x3(%rbp)
leal -0x9(%rcx), %eax
shrl $0x18, %eax
movb %al, 0x4(%rbp)
movq (%rsp), %rcx
movb %cl, 0x5(%rbp)
movb %ch, 0x6(%rbp)
movl %ecx, %eax
shrl $0x10, %eax
movb %al, 0x7(%rbp)
shrl $0x18, %ecx
movb %cl, 0x8(%rbp)
addq %rbp, %rdi
callq 0x4830
movq %rbp, %rax
addq $0x1c98, %rsp           # imm = 0x1C98
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2736b(%rip), %rdi     # 0xa2f66
leaq 0x27344(%rip), %rsi     # 0xa2f46
leaq 0x2736d(%rip), %rcx     # 0xa2f76
movl $0x11d, %edx            # imm = 0x11D
callq 0x42f0
movb $0x0, -0x1(%rdi)
decq %rdi
shrl $0x8, %ebx
jmp 0x7b938
movb $0x0, -0x1(%r13)
decq %r13
shrl $0x8, %r11d
jmp 0x7b8c1
movb $0x0, -0x1(%r12)
decq %r12
shrl $0x8, %r8d
jmp 0x7b848
leaq 0x22fe6(%rip), %rdi     # 0x9ec32
leaq 0x272f3(%rip), %rsi     # 0xa2f46
leaq 0x22f76(%rip), %rcx     # 0x9ebd0
movl $0xc9, %edx
callq 0x42f0
leaq 0x22fab(%rip), %rdi     # 0x9ec16
leaq 0x272d4(%rip), %rsi     # 0xa2f46
leaq 0x22f57(%rip), %rcx     # 0x9ebd0
movl $0xc8, %edx
callq 0x42f0
leaq 0x27429(%rip), %rdi     # 0xa30b3
leaq 0x27244(%rip), %rsi     # 0xa2ed5
leaq 0x27422(%rip), %rcx     # 0xa30ba
movl $0x7e, %edx
callq 0x42f0