// File: sisong[P]ApkDiffPatch/zlib1.3.1/inffast.c
// Function: inflate_fast
void ZLIB_INTERNAL inflate_fast(z_streamp strm, unsigned start) {
    struct inflate_state FAR *state;
    z_const unsigned char FAR *in;      /* local strm->next_in */
    z_const unsigned char FAR *last;    /* have enough input while in < last */
    unsigned char FAR *out;     /* local strm->next_out */
    unsigned char FAR *beg;     /* inflate()'s initial strm->next_out */
    unsigned char FAR *end;     /* while out < end, enough space available */
#ifdef INFLATE_STRICT
    unsigned dmax;              /* maximum distance from zlib header */
#endif
    unsigned wsize;             /* window size or zero if not using window */
    unsigned whave;             /* valid bytes in the window */
    unsigned wnext;             /* window write index */
    unsigned char FAR *window;  /* allocated sliding window, if wsize != 0 */
    unsigned long hold;         /* local strm->hold */
    unsigned bits;              /* local strm->bits */
    code const FAR *lcode;      /* local strm->lencode */
    code const FAR *dcode;      /* local strm->distcode */
    unsigned lmask;             /* mask for first level of length codes */
    unsigned dmask;             /* mask for first level of distance codes */
    code const *here;           /* retrieved table entry */
    unsigned op;                /* code bits, operation, extra bits, or */
                                /*  window position, window bytes to copy */
    unsigned len;               /* match length, unused bytes */
    unsigned dist;              /* match distance */
    unsigned char FAR *from;    /* where to copy match from */

    /* copy state to local variables */
    state = (struct inflate_state FAR *)strm->state;
    in = strm->next_in;
    last = in + (strm->avail_in - 5);
    out = strm->next_out;
    beg = out - (start - strm->avail_out);
    end = out + (strm->avail_out - 257);
#ifdef INFLATE_STRICT
    dmax = state->dmax;
#endif
    wsize = state->wsize;
    whave = state->whave;
    wnext = state->wnext;
    window = state->window;
    hold = state->hold;
    bits = state->bits;
    lcode = state->lencode;
    dcode = state->distcode;
    lmask = (1U << state->lenbits) - 1;
    dmask = (1U << state->distbits) - 1;

    /* decode literals and length/distances until end-of-block or not enough
       input data or output space */
    do {
        if (bits < 15) {
            hold += (unsigned long)(*in++) << bits;
            bits += 8;
            hold += (unsigned long)(*in++) << bits;
            bits += 8;
        }
        here = lcode + (hold & lmask);
      dolen:
        op = (unsigned)(here->bits);
        hold >>= op;
        bits -= op;
        op = (unsigned)(here->op);
        if (op == 0) {                          /* literal */
            Tracevv((stderr, here->val >= 0x20 && here->val < 0x7f ?
                    "inflate:         literal '%c'\n" :
                    "inflate:         literal 0x%02x\n", here->val));
            *out++ = (unsigned char)(here->val);
        }
        else if (op & 16) {                     /* length base */
            len = (unsigned)(here->val);
            op &= 15;                           /* number of extra bits */
            if (op) {
                if (bits < op) {
                    hold += (unsigned long)(*in++) << bits;
                    bits += 8;
                }
                len += (unsigned)hold & ((1U << op) - 1);
                hold >>= op;
                bits -= op;
            }
            Tracevv((stderr, "inflate:         length %u\n", len));
            if (bits < 15) {
                hold += (unsigned long)(*in++) << bits;
                bits += 8;
                hold += (unsigned long)(*in++) << bits;
                bits += 8;
            }
            here = dcode + (hold & dmask);
          dodist:
            op = (unsigned)(here->bits);
            hold >>= op;
            bits -= op;
            op = (unsigned)(here->op);
            if (op & 16) {                      /* distance base */
                dist = (unsigned)(here->val);
                op &= 15;                       /* number of extra bits */
                if (bits < op) {
                    hold += (unsigned long)(*in++) << bits;
                    bits += 8;
                    if (bits < op) {
                        hold += (unsigned long)(*in++) << bits;
                        bits += 8;
                    }
                }
                dist += (unsigned)hold & ((1U << op) - 1);
#ifdef INFLATE_STRICT
                if (dist > dmax) {
                    strm->msg = (char *)"invalid distance too far back";
                    state->mode = BAD;
                    break;
                }
#endif
                hold >>= op;
                bits -= op;
                Tracevv((stderr, "inflate:         distance %u\n", dist));
                op = (unsigned)(out - beg);     /* max distance in output */
                if (dist > op) {                /* see if copy from window */
                    op = dist - op;             /* distance back in window */
                    if (op > whave) {
                        if (state->sane) {
                            strm->msg =
                                (char *)"invalid distance too far back";
                            state->mode = BAD;
                            break;
                        }
#ifdef INFLATE_ALLOW_INVALID_DISTANCE_TOOFAR_ARRR
                        if (len <= op - whave) {
                            do {
                                *out++ = 0;
                            } while (--len);
                            continue;
                        }
                        len -= op - whave;
                        do {
                            *out++ = 0;
                        } while (--op > whave);
                        if (op == 0) {
                            from = out - dist;
                            do {
                                *out++ = *from++;
                            } while (--len);
                            continue;
                        }
#endif
                    }
                    from = window;
                    if (wnext == 0) {           /* very common case */
                        from += wsize - op;
                        if (op < len) {         /* some from window */
                            len -= op;
                            do {
                                *out++ = *from++;
                            } while (--op);
                            from = out - dist;  /* rest from output */
                        }
                    }
                    else if (wnext < op) {      /* wrap around window */
                        from += wsize + wnext - op;
                        op -= wnext;
                        if (op < len) {         /* some from end of window */
                            len -= op;
                            do {
                                *out++ = *from++;
                            } while (--op);
                            from = window;
                            if (wnext < len) {  /* some from start of window */
                                op = wnext;
                                len -= op;
                                do {
                                    *out++ = *from++;
                                } while (--op);
                                from = out - dist;      /* rest from output */
                            }
                        }
                    }
                    else {                      /* contiguous in window */
                        from += wnext - op;
                        if (op < len) {         /* some from window */
                            len -= op;
                            do {
                                *out++ = *from++;
                            } while (--op);
                            from = out - dist;  /* rest from output */
                        }
                    }
                    while (len > 2) {
                        *out++ = *from++;
                        *out++ = *from++;
                        *out++ = *from++;
                        len -= 3;
                    }
                    if (len) {
                        *out++ = *from++;
                        if (len > 1)
                            *out++ = *from++;
                    }
                }
                else {
                    from = out - dist;          /* copy direct from output */
                    do {                        /* minimum length is three */
                        *out++ = *from++;
                        *out++ = *from++;
                        *out++ = *from++;
                        len -= 3;
                    } while (len > 2);
                    if (len) {
                        *out++ = *from++;
                        if (len > 1)
                            *out++ = *from++;
                    }
                }
            }
            else if ((op & 64) == 0) {          /* 2nd level distance code */
                here = dcode + here->val + (hold & ((1U << op) - 1));
                goto dodist;
            }
            else {
                strm->msg = (char *)"invalid distance code";
                state->mode = BAD;
                break;
            }
        }
        else if ((op & 64) == 0) {              /* 2nd level length code */
            here = lcode + here->val + (hold & ((1U << op) - 1));
            goto dolen;
        }
        else if (op & 32) {                     /* end-of-block */
            Tracevv((stderr, "inflate:         end of block\n"));
            state->mode = TYPE;
            break;
        }
        else {
            strm->msg = (char *)"invalid literal/length code";
            state->mode = BAD;
            break;
        }
    } while (in < last && out < end);

    /* return unused bytes (on entry, bits < 8, so in won't go too far back) */
    len = bits >> 3;
    in -= len;
    bits -= len << 3;
    hold &= (1U << bits) - 1;

    /* update state and return */
    strm->next_in = in;
    strm->next_out = out;
    strm->avail_in = (unsigned)(in < last ? 5 + (last - in) : 5 - (in - last));
    strm->avail_out = (unsigned)(out < end ?
                                 257 + (end - out) : 257 - (out - end));
    state->hold = hold;
    state->bits = bits;
    return;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x48, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq -0x8(%rbp), %rax
movq 0x38(%rax), %rax
movq %rax, -0x18(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
movq -0x8(%rbp), %rcx
movl 0x8(%rcx), %ecx
subl $0x5, %ecx
movl %ecx, %ecx
addq %rcx, %rax
movq %rax, -0x28(%rbp)
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rax
movl -0xc(%rbp), %ecx
movq -0x8(%rbp), %rdx
subl 0x20(%rdx), %ecx
movl %ecx, %ecx
movl %ecx, %edx
xorl %ecx, %ecx
subq %rdx, %rcx
addq %rcx, %rax
movq %rax, -0x38(%rbp)
movq -0x30(%rbp), %rax
movq -0x8(%rbp), %rcx
movl 0x20(%rcx), %ecx
subl $0x101, %ecx            # imm = 0x101
movl %ecx, %ecx
addq %rcx, %rax
movq %rax, -0x40(%rbp)
movq -0x18(%rbp), %rax
movl 0x3c(%rax), %eax
movl %eax, -0x44(%rbp)
movq -0x18(%rbp), %rax
movl 0x40(%rax), %eax
movl %eax, -0x48(%rbp)
movq -0x18(%rbp), %rax
movl 0x44(%rax), %eax
movl %eax, -0x4c(%rbp)
movq -0x18(%rbp), %rax
movq 0x48(%rax), %rax
movq %rax, -0x58(%rbp)
movq -0x18(%rbp), %rax
movq 0x50(%rax), %rax
movq %rax, -0x60(%rbp)
movq -0x18(%rbp), %rax
movl 0x58(%rax), %eax
movl %eax, -0x64(%rbp)
movq -0x18(%rbp), %rax
movq 0x68(%rax), %rax
movq %rax, -0x70(%rbp)
movq -0x18(%rbp), %rax
movq 0x70(%rax), %rax
movq %rax, -0x78(%rbp)
movq -0x18(%rbp), %rax
movl 0x78(%rax), %ecx
movl $0x1, %eax
shll %cl, %eax
subl $0x1, %eax
movl %eax, -0x7c(%rbp)
movq -0x18(%rbp), %rax
movl 0x7c(%rax), %ecx
movl $0x1, %eax
shll %cl, %eax
subl $0x1, %eax
movl %eax, -0x80(%rbp)
cmpl $0xf, -0x64(%rbp)
jae 0x9a219
movq -0x20(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x20(%rbp)
movzbl (%rax), %eax
movl -0x64(%rbp), %ecx
shlq %cl, %rax
addq -0x60(%rbp), %rax
movq %rax, -0x60(%rbp)
movl -0x64(%rbp), %eax
addl $0x8, %eax
movl %eax, -0x64(%rbp)
movq -0x20(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x20(%rbp)
movzbl (%rax), %eax
movl -0x64(%rbp), %ecx
shlq %cl, %rax
addq -0x60(%rbp), %rax
movq %rax, -0x60(%rbp)
movl -0x64(%rbp), %eax
addl $0x8, %eax
movl %eax, -0x64(%rbp)
movq -0x70(%rbp), %rax
movq -0x60(%rbp), %rcx
movl -0x7c(%rbp), %edx
andq %rdx, %rcx
shlq $0x2, %rcx
addq %rcx, %rax
movq %rax, -0x88(%rbp)
movq -0x88(%rbp), %rax
movzbl 0x1(%rax), %eax
movl %eax, -0x8c(%rbp)
movl -0x8c(%rbp), %ecx
movq -0x60(%rbp), %rax
movl %ecx, %ecx
shrq %cl, %rax
movq %rax, -0x60(%rbp)
movl -0x8c(%rbp), %ecx
movl -0x64(%rbp), %eax
subl %ecx, %eax
movl %eax, -0x64(%rbp)
movq -0x88(%rbp), %rax
movzbl (%rax), %eax
movl %eax, -0x8c(%rbp)
cmpl $0x0, -0x8c(%rbp)
jne 0x9a2a3
movq -0x88(%rbp), %rax
movw 0x2(%rax), %ax
movb %al, %cl
movq -0x30(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x30(%rbp)
movb %cl, (%rax)
jmp 0x9ab13
movl -0x8c(%rbp), %eax
andl $0x10, %eax
cmpl $0x0, %eax
je 0x9aa79
movq -0x88(%rbp), %rax
movzwl 0x2(%rax), %eax
movl %eax, -0x90(%rbp)
movl -0x8c(%rbp), %eax
andl $0xf, %eax
movl %eax, -0x8c(%rbp)
cmpl $0x0, -0x8c(%rbp)
je 0x9a357
movl -0x64(%rbp), %eax
cmpl -0x8c(%rbp), %eax
jae 0x9a312
movq -0x20(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x20(%rbp)
movzbl (%rax), %eax
movl -0x64(%rbp), %ecx
shlq %cl, %rax
addq -0x60(%rbp), %rax
movq %rax, -0x60(%rbp)
movl -0x64(%rbp), %eax
addl $0x8, %eax
movl %eax, -0x64(%rbp)
movq -0x60(%rbp), %rax
movl -0x8c(%rbp), %ecx
movl $0x1, %edx
shll %cl, %edx
movl %edx, %ecx
subl $0x1, %ecx
andl %ecx, %eax
addl -0x90(%rbp), %eax
movl %eax, -0x90(%rbp)
movl -0x8c(%rbp), %ecx
movq -0x60(%rbp), %rax
movl %ecx, %ecx
shrq %cl, %rax
movq %rax, -0x60(%rbp)
movl -0x8c(%rbp), %ecx
movl -0x64(%rbp), %eax
subl %ecx, %eax
movl %eax, -0x64(%rbp)
cmpl $0xf, -0x64(%rbp)
jae 0x9a3af
movq -0x20(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x20(%rbp)
movzbl (%rax), %eax
movl -0x64(%rbp), %ecx
shlq %cl, %rax
addq -0x60(%rbp), %rax
movq %rax, -0x60(%rbp)
movl -0x64(%rbp), %eax
addl $0x8, %eax
movl %eax, -0x64(%rbp)
movq -0x20(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x20(%rbp)
movzbl (%rax), %eax
movl -0x64(%rbp), %ecx
shlq %cl, %rax
addq -0x60(%rbp), %rax
movq %rax, -0x60(%rbp)
movl -0x64(%rbp), %eax
addl $0x8, %eax
movl %eax, -0x64(%rbp)
movq -0x78(%rbp), %rax
movq -0x60(%rbp), %rcx
movl -0x80(%rbp), %edx
andq %rdx, %rcx
shlq $0x2, %rcx
addq %rcx, %rax
movq %rax, -0x88(%rbp)
movq -0x88(%rbp), %rax
movzbl 0x1(%rax), %eax
movl %eax, -0x8c(%rbp)
movl -0x8c(%rbp), %ecx
movq -0x60(%rbp), %rax
movl %ecx, %ecx
shrq %cl, %rax
movq %rax, -0x60(%rbp)
movl -0x8c(%rbp), %ecx
movl -0x64(%rbp), %eax
subl %ecx, %eax
movl %eax, -0x64(%rbp)
movq -0x88(%rbp), %rax
movzbl (%rax), %eax
movl %eax, -0x8c(%rbp)
movl -0x8c(%rbp), %eax
andl $0x10, %eax
cmpl $0x0, %eax
je 0x9a9f4
movq -0x88(%rbp), %rax
movzwl 0x2(%rax), %eax
movl %eax, -0x94(%rbp)
movl -0x8c(%rbp), %eax
andl $0xf, %eax
movl %eax, -0x8c(%rbp)
movl -0x64(%rbp), %eax
cmpl -0x8c(%rbp), %eax
jae 0x9a4a9
movq -0x20(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x20(%rbp)
movzbl (%rax), %eax
movl -0x64(%rbp), %ecx
shlq %cl, %rax
addq -0x60(%rbp), %rax
movq %rax, -0x60(%rbp)
movl -0x64(%rbp), %eax
addl $0x8, %eax
movl %eax, -0x64(%rbp)
movl -0x64(%rbp), %eax
cmpl -0x8c(%rbp), %eax
jae 0x9a4a7
movq -0x20(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x20(%rbp)
movzbl (%rax), %eax
movl -0x64(%rbp), %ecx
shlq %cl, %rax
addq -0x60(%rbp), %rax
movq %rax, -0x60(%rbp)
movl -0x64(%rbp), %eax
addl $0x8, %eax
movl %eax, -0x64(%rbp)
jmp 0x9a4a9
movq -0x60(%rbp), %rax
movl -0x8c(%rbp), %ecx
movl $0x1, %edx
shll %cl, %edx
movl %edx, %ecx
subl $0x1, %ecx
andl %ecx, %eax
addl -0x94(%rbp), %eax
movl %eax, -0x94(%rbp)
movl -0x8c(%rbp), %ecx
movq -0x60(%rbp), %rax
movl %ecx, %ecx
shrq %cl, %rax
movq %rax, -0x60(%rbp)
movl -0x8c(%rbp), %ecx
movl -0x64(%rbp), %eax
subl %ecx, %eax
movl %eax, -0x64(%rbp)
movq -0x30(%rbp), %rax
movq -0x38(%rbp), %rcx
subq %rcx, %rax
movl %eax, -0x8c(%rbp)
movl -0x94(%rbp), %eax
cmpl -0x8c(%rbp), %eax
jbe 0x9a8da
movl -0x94(%rbp), %eax
subl -0x8c(%rbp), %eax
movl %eax, -0x8c(%rbp)
movl -0x8c(%rbp), %eax
cmpl -0x48(%rbp), %eax
jbe 0x9a55c
movq -0x18(%rbp), %rax
cmpl $0x0, 0x1be8(%rax)
je 0x9a55a
movq -0x8(%rbp), %rax
leaq 0x2306a(%rip), %rcx     # 0xbd5b0
movq %rcx, 0x30(%rax)
movq -0x18(%rbp), %rax
movl $0x3f51, 0x8(%rax)      # imm = 0x3F51
jmp 0x9ab46
jmp 0x9a55c
movq -0x58(%rbp), %rax
movq %rax, -0xa0(%rbp)
cmpl $0x0, -0x4c(%rbp)
jne 0x9a60b
movl -0x44(%rbp), %ecx
subl -0x8c(%rbp), %ecx
movq -0xa0(%rbp), %rax
movl %ecx, %ecx
addq %rcx, %rax
movq %rax, -0xa0(%rbp)
movl -0x8c(%rbp), %eax
cmpl -0x90(%rbp), %eax
jae 0x9a606
movl -0x8c(%rbp), %ecx
movl -0x90(%rbp), %eax
subl %ecx, %eax
movl %eax, -0x90(%rbp)
movq -0xa0(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0xa0(%rbp)
movb (%rax), %cl
movq -0x30(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x30(%rbp)
movb %cl, (%rax)
movl -0x8c(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x8c(%rbp)
cmpl $0x0, %eax
jne 0x9a5af
movq -0x30(%rbp), %rax
movl -0x94(%rbp), %ecx
movl %ecx, %edx
xorl %ecx, %ecx
subq %rdx, %rcx
addq %rcx, %rax
movq %rax, -0xa0(%rbp)
jmp 0x9a7d6
movl -0x4c(%rbp), %eax
cmpl -0x8c(%rbp), %eax
jae 0x9a73d
movl -0x44(%rbp), %ecx
addl -0x4c(%rbp), %ecx
subl -0x8c(%rbp), %ecx
movq -0xa0(%rbp), %rax
movl %ecx, %ecx
addq %rcx, %rax
movq %rax, -0xa0(%rbp)
movl -0x4c(%rbp), %ecx
movl -0x8c(%rbp), %eax
subl %ecx, %eax
movl %eax, -0x8c(%rbp)
movl -0x8c(%rbp), %eax
cmpl -0x90(%rbp), %eax
jae 0x9a738
movl -0x8c(%rbp), %ecx
movl -0x90(%rbp), %eax
subl %ecx, %eax
movl %eax, -0x90(%rbp)
movq -0xa0(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0xa0(%rbp)
movb (%rax), %cl
movq -0x30(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x30(%rbp)
movb %cl, (%rax)
movl -0x8c(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x8c(%rbp)
cmpl $0x0, %eax
jne 0x9a670
movq -0x58(%rbp), %rax
movq %rax, -0xa0(%rbp)
movl -0x4c(%rbp), %eax
cmpl -0x90(%rbp), %eax
jae 0x9a736
movl -0x4c(%rbp), %eax
movl %eax, -0x8c(%rbp)
movl -0x8c(%rbp), %ecx
movl -0x90(%rbp), %eax
subl %ecx, %eax
movl %eax, -0x90(%rbp)
movq -0xa0(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0xa0(%rbp)
movb (%rax), %cl
movq -0x30(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x30(%rbp)
movb %cl, (%rax)
movl -0x8c(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x8c(%rbp)
cmpl $0x0, %eax
jne 0x9a6df
movq -0x30(%rbp), %rax
movl -0x94(%rbp), %ecx
movl %ecx, %edx
xorl %ecx, %ecx
subq %rdx, %rcx
addq %rcx, %rax
movq %rax, -0xa0(%rbp)
jmp 0x9a738
jmp 0x9a7d4
movl -0x4c(%rbp), %ecx
subl -0x8c(%rbp), %ecx
movq -0xa0(%rbp), %rax
movl %ecx, %ecx
addq %rcx, %rax
movq %rax, -0xa0(%rbp)
movl -0x8c(%rbp), %eax
cmpl -0x90(%rbp), %eax
jae 0x9a7d2
movl -0x8c(%rbp), %ecx
movl -0x90(%rbp), %eax
subl %ecx, %eax
movl %eax, -0x90(%rbp)
movq -0xa0(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0xa0(%rbp)
movb (%rax), %cl
movq -0x30(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x30(%rbp)
movb %cl, (%rax)
movl -0x8c(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x8c(%rbp)
cmpl $0x0, %eax
jne 0x9a77b
movq -0x30(%rbp), %rax
movl -0x94(%rbp), %ecx
movl %ecx, %edx
xorl %ecx, %ecx
subq %rdx, %rcx
addq %rcx, %rax
movq %rax, -0xa0(%rbp)
jmp 0x9a7d4
jmp 0x9a7d6
jmp 0x9a7d8
cmpl $0x2, -0x90(%rbp)
jbe 0x9a871
movq -0xa0(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0xa0(%rbp)
movb (%rax), %cl
movq -0x30(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x30(%rbp)
movb %cl, (%rax)
movq -0xa0(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0xa0(%rbp)
movb (%rax), %cl
movq -0x30(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x30(%rbp)
movb %cl, (%rax)
movq -0xa0(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0xa0(%rbp)
movb (%rax), %cl
movq -0x30(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x30(%rbp)
movb %cl, (%rax)
movl -0x90(%rbp), %eax
subl $0x3, %eax
movl %eax, -0x90(%rbp)
jmp 0x9a7d8
cmpl $0x0, -0x90(%rbp)
je 0x9a8d5
movq -0xa0(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0xa0(%rbp)
movb (%rax), %cl
movq -0x30(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x30(%rbp)
movb %cl, (%rax)
cmpl $0x1, -0x90(%rbp)
jbe 0x9a8d3
movq -0xa0(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0xa0(%rbp)
movb (%rax), %cl
movq -0x30(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x30(%rbp)
movb %cl, (%rax)
jmp 0x9a8d5
jmp 0x9a9ef
movq -0x30(%rbp), %rax
movl -0x94(%rbp), %ecx
movl %ecx, %edx
xorl %ecx, %ecx
subq %rdx, %rcx
addq %rcx, %rax
movq %rax, -0xa0(%rbp)
movq -0xa0(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0xa0(%rbp)
movb (%rax), %cl
movq -0x30(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x30(%rbp)
movb %cl, (%rax)
movq -0xa0(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0xa0(%rbp)
movb (%rax), %cl
movq -0x30(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x30(%rbp)
movb %cl, (%rax)
movq -0xa0(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0xa0(%rbp)
movb (%rax), %cl
movq -0x30(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x30(%rbp)
movb %cl, (%rax)
movl -0x90(%rbp), %eax
subl $0x3, %eax
movl %eax, -0x90(%rbp)
cmpl $0x2, -0x90(%rbp)
ja 0x9a8f5
cmpl $0x0, -0x90(%rbp)
je 0x9a9ed
movq -0xa0(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0xa0(%rbp)
movb (%rax), %cl
movq -0x30(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x30(%rbp)
movb %cl, (%rax)
cmpl $0x1, -0x90(%rbp)
jbe 0x9a9eb
movq -0xa0(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0xa0(%rbp)
movb (%rax), %cl
movq -0x30(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x30(%rbp)
movb %cl, (%rax)
jmp 0x9a9ed
jmp 0x9a9ef
jmp 0x9aa74
movl -0x8c(%rbp), %eax
andl $0x40, %eax
cmpl $0x0, %eax
jne 0x9aa55
movq -0x78(%rbp), %rax
movq -0x88(%rbp), %rcx
movzwl 0x2(%rcx), %ecx
movslq %ecx, %rcx
shlq $0x2, %rcx
addq %rcx, %rax
movq -0x60(%rbp), %rcx
movq %rcx, -0xa8(%rbp)
movl -0x8c(%rbp), %ecx
movl $0x1, %edx
shll %cl, %edx
movq -0xa8(%rbp), %rcx
subl $0x1, %edx
movl %edx, %edx
andq %rdx, %rcx
shlq $0x2, %rcx
addq %rcx, %rax
movq %rax, -0x88(%rbp)
jmp 0x9a3cb
movq -0x8(%rbp), %rax
leaq 0x22b3a(%rip), %rcx     # 0xbd59a
movq %rcx, 0x30(%rax)
movq -0x18(%rbp), %rax
movl $0x3f51, 0x8(%rax)      # imm = 0x3F51
jmp 0x9ab46
jmp 0x9ab11
movl -0x8c(%rbp), %eax
andl $0x40, %eax
cmpl $0x0, %eax
jne 0x9aada
movq -0x70(%rbp), %rax
movq -0x88(%rbp), %rcx
movzwl 0x2(%rcx), %ecx
movslq %ecx, %rcx
shlq $0x2, %rcx
addq %rcx, %rax
movq -0x60(%rbp), %rcx
movq %rcx, -0xb0(%rbp)
movl -0x8c(%rbp), %ecx
movl $0x1, %edx
shll %cl, %edx
movq -0xb0(%rbp), %rcx
subl $0x1, %edx
movl %edx, %edx
andq %rdx, %rcx
shlq $0x2, %rcx
addq %rcx, %rax
movq %rax, -0x88(%rbp)
jmp 0x9a235
movl -0x8c(%rbp), %eax
andl $0x20, %eax
cmpl $0x0, %eax
je 0x9aaf5
movq -0x18(%rbp), %rax
movl $0x3f3f, 0x8(%rax)      # imm = 0x3F3F
jmp 0x9ab46
movq -0x8(%rbp), %rax
leaq 0x22a7e(%rip), %rcx     # 0xbd57e
movq %rcx, 0x30(%rax)
movq -0x18(%rbp), %rax
movl $0x3f51, 0x8(%rax)      # imm = 0x3F51
jmp 0x9ab46
jmp 0x9ab13
jmp 0x9ab15
movq -0x20(%rbp), %rcx
xorl %eax, %eax
cmpq -0x28(%rbp), %rcx
movb %al, -0xb1(%rbp)
jae 0x9ab38
movq -0x30(%rbp), %rax
cmpq -0x40(%rbp), %rax
setb %al
movb %al, -0xb1(%rbp)
movb -0xb1(%rbp), %al
testb $0x1, %al
jne 0x9a1c1
movl -0x64(%rbp), %eax
shrl $0x3, %eax
movl %eax, -0x90(%rbp)
movl -0x90(%rbp), %ecx
movq -0x20(%rbp), %rax
movl %ecx, %ecx
movl %ecx, %edx
xorl %ecx, %ecx
subq %rdx, %rcx
addq %rcx, %rax
movq %rax, -0x20(%rbp)
movl -0x90(%rbp), %ecx
shll $0x3, %ecx
movl -0x64(%rbp), %eax
subl %ecx, %eax
movl %eax, -0x64(%rbp)
movl -0x64(%rbp), %ecx
movl $0x1, %eax
shll %cl, %eax
subl $0x1, %eax
movl %eax, %eax
andq -0x60(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x20(%rbp), %rcx
movq -0x8(%rbp), %rax
movq %rcx, (%rax)
movq -0x30(%rbp), %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x18(%rax)
movq -0x20(%rbp), %rax
cmpq -0x28(%rbp), %rax
jae 0x9abcd
movq -0x28(%rbp), %rax
movq -0x20(%rbp), %rcx
subq %rcx, %rax
addq $0x5, %rax
movq %rax, -0xc0(%rbp)
jmp 0x9abe7
movq -0x20(%rbp), %rcx
movq -0x28(%rbp), %rax
subq %rax, %rcx
movl $0x5, %eax
subq %rcx, %rax
movq %rax, -0xc0(%rbp)
movq -0xc0(%rbp), %rax
movl %eax, %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x8(%rax)
movq -0x30(%rbp), %rax
cmpq -0x40(%rbp), %rax
jae 0x9ac1b
movq -0x40(%rbp), %rax
movq -0x30(%rbp), %rcx
subq %rcx, %rax
addq $0x101, %rax            # imm = 0x101
movq %rax, -0xc8(%rbp)
jmp 0x9ac35
movq -0x30(%rbp), %rcx
movq -0x40(%rbp), %rax
subq %rax, %rcx
movl $0x101, %eax            # imm = 0x101
subq %rcx, %rax
movq %rax, -0xc8(%rbp)
movq -0xc8(%rbp), %rax
movl %eax, %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x20(%rax)
movq -0x60(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x50(%rax)
movl -0x64(%rbp), %ecx
movq -0x18(%rbp), %rax
movl %ecx, 0x58(%rax)
addq $0x48, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nopl (%rax,%rax)