// File: /workspace/github_c_makefile_star2_O0/Cyan4973[P]FiniteStateEntropy/programs/zlibh.c
// Function: ZLIBH_compress_block
static void ZLIBH_compress_block(const unsigned char* ip, unsigned char* op, const ct_data * ltree, const ct_data * bltree, unsigned int ip_len)
{
    unsigned int bi_buf;    /* bit buffer */
    unsigned int bi_valid;  /* bits used in bit_buf */
    unsigned int lx = 0;    /* running index in l_buf */
    unsigned int value;     /* value to send */
    unsigned short length;  /* number of bits to send */

    if  (ltree != static_ltree) {  /* write dynamic Huffman header first */
        /* send_tree is merged here */
        int prevlen = -1;            /* last emitted length */
        int nextlen = ltree[0].Len;  /* length of next code */
        int count = 0;               /* repeat count of the current code */
        int max_count = 7;           /* max repeat count */
        int min_count = 4;           /* min repeat count */
        unsigned int max_code = 256;
        unsigned int blcodes;
        unsigned int n;

        bi_valid = 5;
        blcodes = op[0];
        bi_buf = (unsigned int)((blcodes-4)<<1);
        length = 3;
        for (n = 0; n < blcodes; n++) {
            value = bltree[bl_order[n]].Len;
            SENDBITS();
        }

        if (nextlen == 0) max_count = 138, min_count = 3;

        for (n = 0; n <= max_code; n++) {
            int curlen;                  /* length of current code */
            curlen = nextlen; nextlen = ltree[n+1].Len;
            if (++count < max_count && curlen == nextlen) {
                continue;
            } else if (count < min_count) {
                do {
                    value = bltree[curlen].Code;
                    length = bltree[curlen].Len;
                    SENDBITS();
                } while (--count != 0);

            } else if (curlen != 0) {
                if (curlen != prevlen) {
                    value = bltree[curlen].Code;
                    length = bltree[curlen].Len;
                    SENDBITS();
                    count--;
                }
                value = bltree[REP_3_6].Code;
                length = bltree[REP_3_6].Len;
                SENDBITS();

                length = 2;
                value = count-3;
                SENDBITS();

            } else if (count < 11) {
                value = bltree[REPZ_3_10].Code;
                length = bltree[REPZ_3_10].Len;
                SENDBITS();

                length = 3;
                value = count-3;
                SENDBITS();

            } else {
                value = bltree[REPZ_11_138].Code;
                length = bltree[REPZ_11_138].Len;
                SENDBITS();

                length = 7;
                value = count-11;
                SENDBITS();

            }
            count = 0; prevlen = curlen;
            if (nextlen == 0) {
                max_count = 138, min_count = 3;
            } else if (curlen == nextlen) {
                max_count = 6, min_count = 3;
            } else {
                max_count = 7, min_count = 4;
            }
        }
    }
    else {            /* static case only identified by a single one bit */
        bi_valid = 1;
        bi_buf = 1;
    }
    lx = 1;
    do {
        unsigned int t_index;
        t_index = *ip++;
        value = (unsigned int)ltree[t_index].Code;
        length = ltree[t_index].Len;
        if (bi_valid > (16U - length)) {
            bi_buf |= value << bi_valid;
            *op++=(unsigned char)(bi_buf & 0xff);
            *op++=(unsigned char)(bi_buf >> 8);
            bi_buf = value >> (16 - bi_valid);
            bi_valid += length - 16;
        } else {
            bi_buf |= value << bi_valid;
            bi_valid += length;
        }
    } while (lx++ < ip_len);

    value = (unsigned int)ltree[END_BLOCK].Code;   /* send End of Block */
    length = ltree[END_BLOCK].Len;
    if (bi_valid > (16U - length)) {
        bi_buf |= value << bi_valid;
        *op++=(unsigned char)(bi_buf & 0xff);
        *op++=(unsigned char)(bi_buf >> 8);
        bi_buf = value >> (16 - bi_valid);
        bi_valid += length - 16;
    } else {
        bi_buf |= value << bi_valid;
        bi_valid += length;
    }

    if (bi_valid > 8) {                             /* flush bit_buf */
        *op++=(unsigned char)(bi_buf & 0xff);
        *op++=(unsigned char)(bi_buf >> 8);
    }
    else if (bi_valid > 0) {
        *op++=(unsigned char)bi_buf;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movl %r8d, -0x24(%rbp)
movl $0x0, -0x30(%rbp)
leaq 0x199ca(%rip), %rax     # 0x25f30
cmpq %rax, -0x18(%rbp)
je 0xccc1
movl $0xffffffff, -0x3c(%rbp) # imm = 0xFFFFFFFF
movq -0x18(%rbp), %rax
movzwl 0x2(%rax), %eax
movl %eax, -0x40(%rbp)
movl $0x0, -0x44(%rbp)
movl $0x7, -0x48(%rbp)
movl $0x4, -0x4c(%rbp)
movl $0x100, -0x50(%rbp)     # imm = 0x100
movl $0x5, -0x2c(%rbp)
movq -0x10(%rbp), %rax
movzbl (%rax), %eax
movl %eax, -0x54(%rbp)
movl -0x54(%rbp), %eax
subl $0x4, %eax
shll %eax
movl %eax, -0x28(%rbp)
movw $0x3, -0x36(%rbp)
movl $0x0, -0x58(%rbp)
movl -0x58(%rbp), %eax
cmpl -0x54(%rbp), %eax
jae 0xc68c
movq -0x20(%rbp), %rax
movl -0x58(%rbp), %ecx
movl %ecx, %edx
leaq 0x1992d(%rip), %rcx     # 0x25f10
movzbl (%rcx,%rdx), %ecx
movzwl 0x2(%rax,%rcx,4), %eax
movl %eax, -0x34(%rbp)
movl -0x2c(%rbp), %eax
movzwl -0x36(%rbp), %edx
movl $0x10, %ecx
subl %edx, %ecx
cmpl %ecx, %eax
jbe 0xc662
movl -0x34(%rbp), %eax
movl -0x2c(%rbp), %ecx
shll %cl, %eax
orl -0x28(%rbp), %eax
movl %eax, -0x28(%rbp)
movl -0x28(%rbp), %eax
andl $0xff, %eax
movb %al, %cl
movq -0x10(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x10(%rbp)
movb %cl, (%rax)
movl -0x28(%rbp), %eax
shrl $0x8, %eax
movb %al, %cl
movq -0x10(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x10(%rbp)
movb %cl, (%rax)
movl -0x34(%rbp), %eax
movl $0x10, %ecx
subl -0x2c(%rbp), %ecx
shrl %cl, %eax
movl %eax, -0x28(%rbp)
movzwl -0x36(%rbp), %eax
subl $0x10, %eax
addl -0x2c(%rbp), %eax
movl %eax, -0x2c(%rbp)
jmp 0xc67a
movl -0x34(%rbp), %eax
movl -0x2c(%rbp), %ecx
shll %cl, %eax
orl -0x28(%rbp), %eax
movl %eax, -0x28(%rbp)
movzwl -0x36(%rbp), %eax
addl -0x2c(%rbp), %eax
movl %eax, -0x2c(%rbp)
jmp 0xc67c
jmp 0xc67e
movl -0x58(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x58(%rbp)
jmp 0xc5c7
cmpl $0x0, -0x40(%rbp)
jne 0xc6a0
movl $0x8a, -0x48(%rbp)
movl $0x3, -0x4c(%rbp)
movl $0x0, -0x58(%rbp)
movl -0x58(%rbp), %eax
cmpl -0x50(%rbp), %eax
ja 0xccbf
movl -0x40(%rbp), %eax
movl %eax, -0x5c(%rbp)
movq -0x18(%rbp), %rax
movl -0x58(%rbp), %ecx
addl $0x1, %ecx
movl %ecx, %ecx
movzwl 0x2(%rax,%rcx,4), %eax
movl %eax, -0x40(%rbp)
movl -0x44(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x44(%rbp)
cmpl -0x48(%rbp), %eax
jge 0xc6e8
movl -0x5c(%rbp), %eax
cmpl -0x40(%rbp), %eax
jne 0xc6e8
jmp 0xccb1
movl -0x44(%rbp), %eax
cmpl -0x4c(%rbp), %eax
jge 0xc7bc
jmp 0xc6f6
movq -0x20(%rbp), %rax
movslq -0x5c(%rbp), %rcx
movzwl (%rax,%rcx,4), %eax
movl %eax, -0x34(%rbp)
movq -0x20(%rbp), %rax
movslq -0x5c(%rbp), %rcx
movw 0x2(%rax,%rcx,4), %ax
movw %ax, -0x36(%rbp)
movl -0x2c(%rbp), %eax
movzwl -0x36(%rbp), %edx
movl $0x10, %ecx
subl %edx, %ecx
cmpl %ecx, %eax
jbe 0xc789
movl -0x34(%rbp), %eax
movl -0x2c(%rbp), %ecx
shll %cl, %eax
orl -0x28(%rbp), %eax
movl %eax, -0x28(%rbp)
movl -0x28(%rbp), %eax
andl $0xff, %eax
movb %al, %cl
movq -0x10(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x10(%rbp)
movb %cl, (%rax)
movl -0x28(%rbp), %eax
shrl $0x8, %eax
movb %al, %cl
movq -0x10(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x10(%rbp)
movb %cl, (%rax)
movl -0x34(%rbp), %eax
movl $0x10, %ecx
subl -0x2c(%rbp), %ecx
shrl %cl, %eax
movl %eax, -0x28(%rbp)
movzwl -0x36(%rbp), %eax
subl $0x10, %eax
addl -0x2c(%rbp), %eax
movl %eax, -0x2c(%rbp)
jmp 0xc7a1
movl -0x34(%rbp), %eax
movl -0x2c(%rbp), %ecx
shll %cl, %eax
orl -0x28(%rbp), %eax
movl %eax, -0x28(%rbp)
movzwl -0x36(%rbp), %eax
addl -0x2c(%rbp), %eax
movl %eax, -0x2c(%rbp)
jmp 0xc7a3
jmp 0xc7a5
movl -0x44(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x44(%rbp)
cmpl $0x0, %eax
jne 0xc6f6
jmp 0xcc62
cmpl $0x0, -0x5c(%rbp)
je 0xc9cd
movl -0x5c(%rbp), %eax
cmpl -0x3c(%rbp), %eax
je 0xc888
movq -0x20(%rbp), %rax
movslq -0x5c(%rbp), %rcx
movzwl (%rax,%rcx,4), %eax
movl %eax, -0x34(%rbp)
movq -0x20(%rbp), %rax
movslq -0x5c(%rbp), %rcx
movw 0x2(%rax,%rcx,4), %ax
movw %ax, -0x36(%rbp)
movl -0x2c(%rbp), %eax
movzwl -0x36(%rbp), %edx
movl $0x10, %ecx
subl %edx, %ecx
cmpl %ecx, %eax
jbe 0xc865
movl -0x34(%rbp), %eax
movl -0x2c(%rbp), %ecx
shll %cl, %eax
orl -0x28(%rbp), %eax
movl %eax, -0x28(%rbp)
movl -0x28(%rbp), %eax
andl $0xff, %eax
movb %al, %cl
movq -0x10(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x10(%rbp)
movb %cl, (%rax)
movl -0x28(%rbp), %eax
shrl $0x8, %eax
movb %al, %cl
movq -0x10(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x10(%rbp)
movb %cl, (%rax)
movl -0x34(%rbp), %eax
movl $0x10, %ecx
subl -0x2c(%rbp), %ecx
shrl %cl, %eax
movl %eax, -0x28(%rbp)
movzwl -0x36(%rbp), %eax
subl $0x10, %eax
addl -0x2c(%rbp), %eax
movl %eax, -0x2c(%rbp)
jmp 0xc87d
movl -0x34(%rbp), %eax
movl -0x2c(%rbp), %ecx
shll %cl, %eax
orl -0x28(%rbp), %eax
movl %eax, -0x28(%rbp)
movzwl -0x36(%rbp), %eax
addl -0x2c(%rbp), %eax
movl %eax, -0x2c(%rbp)
jmp 0xc87f
movl -0x44(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x44(%rbp)
movq -0x20(%rbp), %rax
movzwl 0x40(%rax), %eax
movl %eax, -0x34(%rbp)
movq -0x20(%rbp), %rax
movw 0x42(%rax), %ax
movw %ax, -0x36(%rbp)
movl -0x2c(%rbp), %eax
movzwl -0x36(%rbp), %edx
movl $0x10, %ecx
subl %edx, %ecx
cmpl %ecx, %eax
jbe 0xc912
movl -0x34(%rbp), %eax
movl -0x2c(%rbp), %ecx
shll %cl, %eax
orl -0x28(%rbp), %eax
movl %eax, -0x28(%rbp)
movl -0x28(%rbp), %eax
andl $0xff, %eax
movb %al, %cl
movq -0x10(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x10(%rbp)
movb %cl, (%rax)
movl -0x28(%rbp), %eax
shrl $0x8, %eax
movb %al, %cl
movq -0x10(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x10(%rbp)
movb %cl, (%rax)
movl -0x34(%rbp), %eax
movl $0x10, %ecx
subl -0x2c(%rbp), %ecx
shrl %cl, %eax
movl %eax, -0x28(%rbp)
movzwl -0x36(%rbp), %eax
subl $0x10, %eax
addl -0x2c(%rbp), %eax
movl %eax, -0x2c(%rbp)
jmp 0xc92a
movl -0x34(%rbp), %eax
movl -0x2c(%rbp), %ecx
shll %cl, %eax
orl -0x28(%rbp), %eax
movl %eax, -0x28(%rbp)
movzwl -0x36(%rbp), %eax
addl -0x2c(%rbp), %eax
movl %eax, -0x2c(%rbp)
jmp 0xc92c
movw $0x2, -0x36(%rbp)
movl -0x44(%rbp), %eax
subl $0x3, %eax
movl %eax, -0x34(%rbp)
movl -0x2c(%rbp), %eax
movzwl -0x36(%rbp), %edx
movl $0x10, %ecx
subl %edx, %ecx
cmpl %ecx, %eax
jbe 0xc9ae
movl -0x34(%rbp), %eax
movl -0x2c(%rbp), %ecx
shll %cl, %eax
orl -0x28(%rbp), %eax
movl %eax, -0x28(%rbp)
movl -0x28(%rbp), %eax
andl $0xff, %eax
movb %al, %cl
movq -0x10(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x10(%rbp)
movb %cl, (%rax)
movl -0x28(%rbp), %eax
shrl $0x8, %eax
movb %al, %cl
movq -0x10(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x10(%rbp)
movb %cl, (%rax)
movl -0x34(%rbp), %eax
movl $0x10, %ecx
subl -0x2c(%rbp), %ecx
shrl %cl, %eax
movl %eax, -0x28(%rbp)
movzwl -0x36(%rbp), %eax
subl $0x10, %eax
addl -0x2c(%rbp), %eax
movl %eax, -0x2c(%rbp)
jmp 0xc9c6
movl -0x34(%rbp), %eax
movl -0x2c(%rbp), %ecx
shll %cl, %eax
orl -0x28(%rbp), %eax
movl %eax, -0x28(%rbp)
movzwl -0x36(%rbp), %eax
addl -0x2c(%rbp), %eax
movl %eax, -0x2c(%rbp)
jmp 0xc9c8
jmp 0xcc60
cmpl $0xb, -0x44(%rbp)
jge 0xcb1c
movq -0x20(%rbp), %rax
movzwl 0x44(%rax), %eax
movl %eax, -0x34(%rbp)
movq -0x20(%rbp), %rax
movw 0x46(%rax), %ax
movw %ax, -0x36(%rbp)
movl -0x2c(%rbp), %eax
movzwl -0x36(%rbp), %edx
movl $0x10, %ecx
subl %edx, %ecx
cmpl %ecx, %eax
jbe 0xca61
movl -0x34(%rbp), %eax
movl -0x2c(%rbp), %ecx
shll %cl, %eax
orl -0x28(%rbp), %eax
movl %eax, -0x28(%rbp)
movl -0x28(%rbp), %eax
andl $0xff, %eax
movb %al, %cl
movq -0x10(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x10(%rbp)
movb %cl, (%rax)
movl -0x28(%rbp), %eax
shrl $0x8, %eax
movb %al, %cl
movq -0x10(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x10(%rbp)
movb %cl, (%rax)
movl -0x34(%rbp), %eax
movl $0x10, %ecx
subl -0x2c(%rbp), %ecx
shrl %cl, %eax
movl %eax, -0x28(%rbp)
movzwl -0x36(%rbp), %eax
subl $0x10, %eax
addl -0x2c(%rbp), %eax
movl %eax, -0x2c(%rbp)
jmp 0xca79
movl -0x34(%rbp), %eax
movl -0x2c(%rbp), %ecx
shll %cl, %eax
orl -0x28(%rbp), %eax
movl %eax, -0x28(%rbp)
movzwl -0x36(%rbp), %eax
addl -0x2c(%rbp), %eax
movl %eax, -0x2c(%rbp)
jmp 0xca7b
movw $0x3, -0x36(%rbp)
movl -0x44(%rbp), %eax
subl $0x3, %eax
movl %eax, -0x34(%rbp)
movl -0x2c(%rbp), %eax
movzwl -0x36(%rbp), %edx
movl $0x10, %ecx
subl %edx, %ecx
cmpl %ecx, %eax
jbe 0xcafd
movl -0x34(%rbp), %eax
movl -0x2c(%rbp), %ecx
shll %cl, %eax
orl -0x28(%rbp), %eax
movl %eax, -0x28(%rbp)
movl -0x28(%rbp), %eax
andl $0xff, %eax
movb %al, %cl
movq -0x10(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x10(%rbp)
movb %cl, (%rax)
movl -0x28(%rbp), %eax
shrl $0x8, %eax
movb %al, %cl
movq -0x10(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x10(%rbp)
movb %cl, (%rax)
movl -0x34(%rbp), %eax
movl $0x10, %ecx
subl -0x2c(%rbp), %ecx
shrl %cl, %eax
movl %eax, -0x28(%rbp)
movzwl -0x36(%rbp), %eax
subl $0x10, %eax
addl -0x2c(%rbp), %eax
movl %eax, -0x2c(%rbp)
jmp 0xcb15
movl -0x34(%rbp), %eax
movl -0x2c(%rbp), %ecx
shll %cl, %eax
orl -0x28(%rbp), %eax
movl %eax, -0x28(%rbp)
movzwl -0x36(%rbp), %eax
addl -0x2c(%rbp), %eax
movl %eax, -0x2c(%rbp)
jmp 0xcb17
jmp 0xcc5e
movq -0x20(%rbp), %rax
movzwl 0x48(%rax), %eax
movl %eax, -0x34(%rbp)
movq -0x20(%rbp), %rax
movw 0x4a(%rax), %ax
movw %ax, -0x36(%rbp)
movl -0x2c(%rbp), %eax
movzwl -0x36(%rbp), %edx
movl $0x10, %ecx
subl %edx, %ecx
cmpl %ecx, %eax
jbe 0xcba6
movl -0x34(%rbp), %eax
movl -0x2c(%rbp), %ecx
shll %cl, %eax
orl -0x28(%rbp), %eax
movl %eax, -0x28(%rbp)
movl -0x28(%rbp), %eax
andl $0xff, %eax
movb %al, %cl
movq -0x10(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x10(%rbp)
movb %cl, (%rax)
movl -0x28(%rbp), %eax
shrl $0x8, %eax
movb %al, %cl
movq -0x10(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x10(%rbp)
movb %cl, (%rax)
movl -0x34(%rbp), %eax
movl $0x10, %ecx
subl -0x2c(%rbp), %ecx
shrl %cl, %eax
movl %eax, -0x28(%rbp)
movzwl -0x36(%rbp), %eax
subl $0x10, %eax
addl -0x2c(%rbp), %eax
movl %eax, -0x2c(%rbp)
jmp 0xcbbe
movl -0x34(%rbp), %eax
movl -0x2c(%rbp), %ecx
shll %cl, %eax
orl -0x28(%rbp), %eax
movl %eax, -0x28(%rbp)
movzwl -0x36(%rbp), %eax
addl -0x2c(%rbp), %eax
movl %eax, -0x2c(%rbp)
jmp 0xcbc0
movw $0x7, -0x36(%rbp)
movl -0x44(%rbp), %eax
subl $0xb, %eax
movl %eax, -0x34(%rbp)
movl -0x2c(%rbp), %eax
movzwl -0x36(%rbp), %edx
movl $0x10, %ecx
subl %edx, %ecx
cmpl %ecx, %eax
jbe 0xcc42
movl -0x34(%rbp), %eax
movl -0x2c(%rbp), %ecx
shll %cl, %eax
orl -0x28(%rbp), %eax
movl %eax, -0x28(%rbp)
movl -0x28(%rbp), %eax
andl $0xff, %eax
movb %al, %cl
movq -0x10(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x10(%rbp)
movb %cl, (%rax)
movl -0x28(%rbp), %eax
shrl $0x8, %eax
movb %al, %cl
movq -0x10(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x10(%rbp)
movb %cl, (%rax)
movl -0x34(%rbp), %eax
movl $0x10, %ecx
subl -0x2c(%rbp), %ecx
shrl %cl, %eax
movl %eax, -0x28(%rbp)
movzwl -0x36(%rbp), %eax
subl $0x10, %eax
addl -0x2c(%rbp), %eax
movl %eax, -0x2c(%rbp)
jmp 0xcc5a
movl -0x34(%rbp), %eax
movl -0x2c(%rbp), %ecx
shll %cl, %eax
orl -0x28(%rbp), %eax
movl %eax, -0x28(%rbp)
movzwl -0x36(%rbp), %eax
addl -0x2c(%rbp), %eax
movl %eax, -0x2c(%rbp)
jmp 0xcc5c
jmp 0xcc5e
jmp 0xcc60
jmp 0xcc62
jmp 0xcc64
movl $0x0, -0x44(%rbp)
movl -0x5c(%rbp), %eax
movl %eax, -0x3c(%rbp)
cmpl $0x0, -0x40(%rbp)
jne 0xcc87
movl $0x8a, -0x48(%rbp)
movl $0x3, -0x4c(%rbp)
jmp 0xccaf
movl -0x5c(%rbp), %eax
cmpl -0x40(%rbp), %eax
jne 0xcc9f
movl $0x6, -0x48(%rbp)
movl $0x3, -0x4c(%rbp)
jmp 0xccad
movl $0x7, -0x48(%rbp)
movl $0x4, -0x4c(%rbp)
jmp 0xccaf
jmp 0xccb1
movl -0x58(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x58(%rbp)
jmp 0xc6a7
jmp 0xcccf
movl $0x1, -0x2c(%rbp)
movl $0x1, -0x28(%rbp)
movl $0x1, -0x30(%rbp)
movq -0x8(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x8(%rbp)
movzbl (%rax), %eax
movl %eax, -0x60(%rbp)
movq -0x18(%rbp), %rax
movl -0x60(%rbp), %ecx
movzwl (%rax,%rcx,4), %eax
movl %eax, -0x34(%rbp)
movq -0x18(%rbp), %rax
movl -0x60(%rbp), %ecx
movw 0x2(%rax,%rcx,4), %ax
movw %ax, -0x36(%rbp)
movl -0x2c(%rbp), %eax
movzwl -0x36(%rbp), %edx
movl $0x10, %ecx
subl %edx, %ecx
cmpl %ecx, %eax
jbe 0xcd7c
movl -0x34(%rbp), %eax
movl -0x2c(%rbp), %ecx
shll %cl, %eax
orl -0x28(%rbp), %eax
movl %eax, -0x28(%rbp)
movl -0x28(%rbp), %eax
andl $0xff, %eax
movb %al, %cl
movq -0x10(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x10(%rbp)
movb %cl, (%rax)
movl -0x28(%rbp), %eax
shrl $0x8, %eax
movb %al, %cl
movq -0x10(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x10(%rbp)
movb %cl, (%rax)
movl -0x34(%rbp), %eax
movl $0x10, %ecx
subl -0x2c(%rbp), %ecx
shrl %cl, %eax
movl %eax, -0x28(%rbp)
movzwl -0x36(%rbp), %eax
subl $0x10, %eax
addl -0x2c(%rbp), %eax
movl %eax, -0x2c(%rbp)
jmp 0xcd94
movl -0x34(%rbp), %eax
movl -0x2c(%rbp), %ecx
shll %cl, %eax
orl -0x28(%rbp), %eax
movl %eax, -0x28(%rbp)
movzwl -0x36(%rbp), %eax
addl -0x2c(%rbp), %eax
movl %eax, -0x2c(%rbp)
jmp 0xcd96
movl -0x30(%rbp), %eax
movl %eax, %ecx
addl $0x1, %ecx
movl %ecx, -0x30(%rbp)
cmpl -0x24(%rbp), %eax
jb 0xccd6
movq -0x18(%rbp), %rax
movzwl 0x400(%rax), %eax
movl %eax, -0x34(%rbp)
movq -0x18(%rbp), %rax
movw 0x402(%rax), %ax
movw %ax, -0x36(%rbp)
movl -0x2c(%rbp), %eax
movzwl -0x36(%rbp), %edx
movl $0x10, %ecx
subl %edx, %ecx
cmpl %ecx, %eax
jbe 0xce3a
movl -0x34(%rbp), %eax
movl -0x2c(%rbp), %ecx
shll %cl, %eax
orl -0x28(%rbp), %eax
movl %eax, -0x28(%rbp)
movl -0x28(%rbp), %eax
andl $0xff, %eax
movb %al, %cl
movq -0x10(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x10(%rbp)
movb %cl, (%rax)
movl -0x28(%rbp), %eax
shrl $0x8, %eax
movb %al, %cl
movq -0x10(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x10(%rbp)
movb %cl, (%rax)
movl -0x34(%rbp), %eax
movl $0x10, %ecx
subl -0x2c(%rbp), %ecx
shrl %cl, %eax
movl %eax, -0x28(%rbp)
movzwl -0x36(%rbp), %eax
subl $0x10, %eax
addl -0x2c(%rbp), %eax
movl %eax, -0x2c(%rbp)
jmp 0xce52
movl -0x34(%rbp), %eax
movl -0x2c(%rbp), %ecx
shll %cl, %eax
orl -0x28(%rbp), %eax
movl %eax, -0x28(%rbp)
movzwl -0x36(%rbp), %eax
addl -0x2c(%rbp), %eax
movl %eax, -0x2c(%rbp)
cmpl $0x8, -0x2c(%rbp)
jbe 0xce8e
movl -0x28(%rbp), %eax
andl $0xff, %eax
movb %al, %cl
movq -0x10(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x10(%rbp)
movb %cl, (%rax)
movl -0x28(%rbp), %eax
shrl $0x8, %eax
movb %al, %cl
movq -0x10(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x10(%rbp)
movb %cl, (%rax)
jmp 0xceac
cmpl $0x0, -0x2c(%rbp)
jbe 0xceaa
movl -0x28(%rbp), %eax
movb %al, %cl
movq -0x10(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x10(%rbp)
movb %cl, (%rax)
jmp 0xceac
popq %rbp
retq
nop