// File: /workspace/github_c_makefile_star2_O2/Aethlas[P]fflz4/./lib/lz4/lz4.c
// Function: LZ4_decompress_fast_continue
LZ4_FORCE_O2_GCC_PPC64LE
int LZ4_decompress_fast_continue (LZ4_streamDecode_t* LZ4_streamDecode, const char* source, char* dest, int originalSize)
{
    LZ4_streamDecode_t_internal* lz4sd = &LZ4_streamDecode->internal_donotuse;
    int result;
    assert(originalSize >= 0);

    if (lz4sd->prefixSize == 0) {
        assert(lz4sd->extDictSize == 0);
        result = LZ4_decompress_fast(source, dest, originalSize);
        if (result <= 0) return result;
        lz4sd->prefixSize = (size_t)originalSize;
        lz4sd->prefixEnd = (BYTE*)dest + originalSize;
    } else if (lz4sd->prefixEnd == (BYTE*)dest) {
        if (lz4sd->prefixSize >= 64 KB - 1 || lz4sd->extDictSize == 0)
            result = LZ4_decompress_fast(source, dest, originalSize);
        else
            result = LZ4_decompress_fast_doubleDict(source, dest, originalSize,
                                                    lz4sd->prefixSize, lz4sd->externalDict, lz4sd->extDictSize);
        if (result <= 0) return result;
        lz4sd->prefixSize += (size_t)originalSize;
        lz4sd->prefixEnd  += originalSize;
    } else {
        lz4sd->extDictSize = lz4sd->prefixSize;
        lz4sd->externalDict = lz4sd->prefixEnd - lz4sd->extDictSize;
        result = LZ4_decompress_fast_extDict(source, dest, originalSize,
                                             lz4sd->externalDict, lz4sd->extDictSize);
        if (result <= 0) return result;
        lz4sd->prefixSize = (size_t)originalSize;
        lz4sd->prefixEnd  = (BYTE*)dest + originalSize;
    }

    return result;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movl %ecx, %ebp
movq %rdx, %r13
movq %rdi, %rbx
movq 0x18(%rdi), %r8
testq %r8, %r8
je 0xbe2d
movslq %ebp, %rax
movq %rax, 0x28(%rsp)
movq 0x10(%rbx), %rcx
cmpq %r13, %rcx
je 0xbe58
movq %r8, 0x8(%rbx)
subq %r8, %rcx
movq %rcx, (%rbx)
movq %rsi, %rdi
movq %r13, %rsi
movl %ebp, %edx
callq 0xc42b
movl %eax, %r14d
testl %eax, %eax
jle 0xbf08
movq 0x28(%rsp), %rax
jmp 0xbe48
movq %rsi, %rdi
movq %r13, %rsi
movl %ebp, %edx
callq 0x9eda
movl %eax, %r14d
testl %eax, %eax
jle 0xbf08
movslq %ebp, %rax
movq %rax, 0x18(%rbx)
addq %rax, %r13
movq %r13, 0x10(%rbx)
jmp 0xbf08
cmpq $0xfffe, %r8            # imm = 0xFFFE
ja 0xbed8
movq 0x8(%rbx), %rax
testq %rax, %rax
je 0xbed8
pushq $-0x1
popq %r14
testq %rsi, %rsi
je 0xbf08
movq %rax, %rdx
movq %rbx, 0x8(%rsp)
movq (%rbx), %rax
addq %rax, %rdx
testq %rax, %rax
cmoveq %rax, %rdx
movq %rdx, 0x20(%rsp)
testl %ebp, %ebp
je 0xc13a
movq %r13, %rbx
subq %r8, %rbx
movq 0x28(%rsp), %rax
leaq (%rax,%r13), %r12
leaq (%rax,%r13), %rcx
addq $-0x8, %rcx
movq %rcx, 0x38(%rsp)
leaq (%rax,%r13), %r9
addq $-0x1a, %r9
cmpl $0x40, %ebp
movq %r12, 0x10(%rsp)
movq %r9, (%rsp)
movq %rsi, 0x30(%rsp)
jge 0xbf1a
movq %rsi, %r14
jmp 0xc1b8
movq %rsi, %rdi
movq %r13, %rsi
movl %ebp, %edx
callq 0x9eda
movl %eax, %r14d
testl %r14d, %r14d
jle 0xbf08
movq 0x10(%rbx), %rcx
movq 0x18(%rbx), %r8
movq 0x28(%rsp), %rax
addq %rax, %r8
movq %r8, 0x18(%rbx)
addq %rax, %rcx
movq %rcx, 0x10(%rbx)
movl %r14d, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq -0x40(%r12), %rdi
leaq -0x5(%r12), %rax
movq %rax, 0x40(%rsp)
movq %rsi, %r14
movq %rdi, 0x18(%rsp)
movzbl (%r14), %edx
movl %edx, %eax
shrl $0x4, %eax
cmpl $0xf, %eax
jne 0xbf8a
addq $0x10, %r14
xorl %eax, %eax
movzbl -0xf(%r14), %ecx
addl %ecx, %eax
incq %r14
cmpl $0xff, %ecx
je 0xbf45
movl %eax, %r15d
leaq (%r15,%r13), %rbp
addq $0xf, %rbp
cmpq 0x38(%rsp), %rbp
ja 0xc12d
leaq -0xf(%r14), %rax
movq (%rax), %rcx
movq %rcx, (%r13)
addq $0x8, %r13
addq $0x8, %rax
cmpq %rbp, %r13
jb 0xbf71
addq %r15, %r14
jmp 0xbfae
leaq 0x1(%r14), %rcx
movq (%rcx), %rsi
movq %rsi, (%r13)
cmpb $-0x70, %dl
jb 0xbfa2
movq 0x9(%r14), %rsi
movq %rsi, 0x8(%r13)
addq %rax, %r13
addq %rax, %rcx
movq %rcx, %r14
movq %r13, %rbp
movzwl (%r14), %ecx
addq $0x2, %r14
movq %rbp, %rsi
subq %rcx, %rsi
andl $0xf, %edx
cmpq $0xf, %rdx
jne 0xc069
xorl %eax, %eax
movzbl (%r14), %edx
incq %r14
addl %edx, %eax
cmpl $0xff, %edx
je 0xbfcb
movl %eax, %edx
leaq (%rdx,%rbp), %rax
addq $0x13, %rax
addq $0x13, %rdx
cmpq %rdi, %rax
jae 0xc250
leaq (%rdx,%rbp), %r13
cmpq %rbx, %rsi
jae 0xc0ad
cmpq 0x40(%rsp), %r13
ja 0xc355
movq %rbx, %r12
subq %rsi, %r12
movq %rdx, %r15
subq %r12, %r15
jbe 0xc0d9
movq 0x20(%rsp), %rsi
subq %r12, %rsi
movq %rbp, %rdi
movq %r12, %rdx
callq 0x1140
addq %r12, %rbp
movq %rbp, %rax
subq %rbx, %rax
cmpq %rax, %r15
jbe 0xc0eb
movq %rbx, %rax
movq 0x10(%rsp), %r12
movq (%rsp), %r9
movq 0x18(%rsp), %rdi
cmpq %r13, %rbp
jae 0xc10c
movb (%rax), %cl
incq %rax
movb %cl, (%rbp)
incq %rbp
jmp 0xc053
leaq (%rdx,%rbp), %r13
addq $0x4, %r13
addq $0x4, %rdx
cmpq %rdi, %r13
jae 0xc250
cmpq %rbx, %rsi
jb 0xbff3
cmpw $0x8, %cx
jb 0xbff3
movq (%rsi), %rax
movq %rax, (%rbp)
movq 0x8(%rsi), %rax
movq %rax, 0x8(%rbp)
movzwl 0x10(%rsi), %eax
movw %ax, 0x10(%rbp)
jmp 0xbf31
cmpw $0x10, %cx
jb 0xc114
pushq $0x10
popq %rax
subq %rcx, %rax
movups -0x10(%rbp,%rax), %xmm0
movups %xmm0, (%rbp)
movups (%rbp,%rax), %xmm0
movups %xmm0, 0x10(%rbp)
addq $0x20, %rbp
cmpq %r13, %rbp
jb 0xc0b9
jmp 0xbf31
movq 0x20(%rsp), %rsi
subq %r12, %rsi
movq %rbp, %rdi
callq 0x1190
jmp 0xc0f9
movq %rbp, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x1140
movq 0x10(%rsp), %r12
movq (%rsp), %r9
movq 0x18(%rsp), %rdi
jmp 0xbf31
movq %rbp, %r13
jmp 0xbf31
movq %rbp, %rdi
movq %r13, %rdx
callq 0xcac1
movq 0x18(%rsp), %rdi
movq (%rsp), %r9
jmp 0xbf31
addq $0xf, %r15
addq $-0xf, %r14
jmp 0xc1f7
cmpb $0x0, (%rsi)
jne 0xbf08
pushq $0x1
popq %r14
movq $0x0, 0x28(%rsp)
movq 0x8(%rsp), %rbx
jmp 0xbef5
movq (%r14), %rax
movq %rax, (%r13)
addq %r15, %r13
andl $0xf, %edx
addq %r15, %r14
addq $0x2, %r14
movzwl -0x2(%r14), %eax
movzwl %ax, %ecx
movq %r13, %rsi
subq %rcx, %rsi
cmpq $0xf, %rdx
je 0xc367
cmpw $0x8, %ax
jb 0xc367
cmpq %rbx, %rsi
jb 0xc367
movq (%rsi), %rax
movq %rax, (%r13)
movq 0x8(%rsi), %rax
movq %rax, 0x8(%r13)
movzwl 0x10(%rsi), %eax
movw %ax, 0x10(%r13)
addq %rdx, %r13
addq $0x4, %r13
movzbl (%r14), %edx
incq %r14
movl %edx, %r15d
shrl $0x4, %r15d
cmpl $0x8f, %edx
ja 0xc1d3
cmpq %r9, %r13
jbe 0xc15a
cmpl $0xf, %r15d
jne 0xc1f3
xorl %eax, %eax
movzbl (%r14), %ecx
incq %r14
addl %ecx, %eax
cmpl $0xff, %ecx
je 0xc1db
movl %eax, %r15d
addq $0xf, %r15
leaq (%r15,%r13), %rbp
cmpq 0x38(%rsp), %rbp
ja 0xc350
movq %r14, %rax
movq (%rax), %rcx
movq %rcx, (%r13)
addq $0x8, %r13
addq $0x8, %rax
cmpq %rbp, %r13
jb 0xc205
addq %r15, %r14
addq $0x2, %r14
movzwl -0x2(%r14), %ecx
movq %rbp, %rsi
subq %rcx, %rsi
andl $0xf, %edx
cmpl $0xf, %edx
jne 0xc24c
xorl %eax, %eax
movzbl (%r14), %edx
incq %r14
addl %edx, %eax
cmpl $0xff, %edx
je 0xc235
movl %eax, %edx
addq $0xf, %rdx
addq $0x4, %rdx
leaq (%rdx,%rbp), %r13
cmpq %rbx, %rsi
jae 0xc2c0
leaq -0x5(%r12), %rax
cmpq %rax, %r13
ja 0xc355
movq %rbx, %r12
subq %rsi, %r12
movq %rdx, %r15
subq %r12, %r15
jbe 0xc31a
movq 0x20(%rsp), %rsi
subq %r12, %rsi
movq %rbp, %rdi
movq %r12, %rdx
callq 0x1140
addq %r12, %rbp
movq %rbp, %rax
subq %rbx, %rax
cmpq %rax, %r15
jbe 0xc32c
movq %rbx, %rax
movq 0x10(%rsp), %r12
movq (%rsp), %r9
cmpq %r13, %rbp
jae 0xc348
movb (%rax), %cl
incq %rax
movb %cl, (%rbp)
incq %rbp
jmp 0xc2aa
leaq -0xc(%r12), %rdi
cmpl $0x7, %ecx
jbe 0xc38f
movq (%rsi), %rax
movq %rax, (%rbp)
addq $0x8, %rsi
movq %rsi, %rax
leaq 0x8(%rbp), %rsi
cmpq %rdi, %r13
ja 0xc3d6
movq (%rax), %rcx
movq %rcx, (%rsi)
cmpq $0x11, %rdx
jb 0xc1b8
addq $0x10, %rbp
addq $0x8, %rax
movq (%rax), %rcx
movq %rcx, (%rbp)
addq $0x8, %rbp
addq $0x8, %rax
cmpq %r13, %rbp
jb 0xc301
jmp 0xc1b8
movq 0x20(%rsp), %rsi
subq %r12, %rsi
movq %rbp, %rdi
callq 0x1190
jmp 0xc33a
movq %rbp, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x1140
movq 0x10(%rsp), %r12
movq (%rsp), %r9
jmp 0xc1b8
movq %rbp, %r13
jmp 0xc1b8
cmpq %r12, %rbp
je 0xc36f
movq 0x8(%rsp), %rbx
notl %r14d
addl 0x30(%rsp), %r14d
jmp 0xbee8
movq %r13, %rbp
jmp 0xc22e
movq %r13, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x1190
addl %r15d, %r14d
subl 0x30(%rsp), %r14d
movq 0x8(%rsp), %rbx
jmp 0xbee8
andl $0x0, (%rbp)
movb (%rsi), %al
movb %al, (%rbp)
movb 0x1(%rsi), %al
movb %al, 0x1(%rbp)
movb 0x2(%rsi), %al
movb %al, 0x2(%rbp)
movb 0x3(%rsi), %al
movb %al, 0x3(%rbp)
shll $0x2, %ecx
leaq 0x2fbc(%rip), %rax      # 0xf370
movl (%rcx,%rax), %r8d
leaq (%rsi,%r8), %rax
movl (%rsi,%r8), %esi
movl %esi, 0x4(%rbp)
leaq 0x2fc6(%rip), %rsi      # 0xf390
movslq (%rcx,%rsi), %rcx
subq %rcx, %rax
jmp 0xc2dc
leaq -0x5(%r12), %rcx
cmpq %rcx, %r13
ja 0xc355
leaq -0x7(%r12), %rcx
cmpq %rcx, %rsi
jae 0xc412
movq %rax, %rdx
movq %rsi, %rdi
movq (%rdx), %r8
movq %r8, (%rdi)
addq $0x8, %rdi
addq $0x8, %rdx
cmpq %rcx, %rdi
jb 0xc3f4
movq %rcx, %rdx
subq %rsi, %rdx
addq %rdx, %rax
jmp 0xc421
movq %rsi, %rcx
jmp 0xc421
movb (%rax), %dl
incq %rax
movb %dl, (%rcx)
incq %rcx
cmpq %r13, %rcx
jb 0xc417
jmp 0xc1b8