// File: /workspace/github_c_makefile_star2_O1/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 $0x58, %rsp
movl %ecx, %ebp
movq %rdx, %r13
movq %rdi, %rbx
movq 0x18(%rdi), %r8
testq %r8, %r8
je 0xf6b6
movq 0x10(%rbx), %rcx
cmpq %r13, %rcx
je 0xf6e1
movq %r8, 0x8(%rbx)
subq %r8, %rcx
movq %rcx, (%rbx)
movq %rsi, %rdi
movq %r13, %rsi
movl %ebp, %edx
callq 0xfd23
jmp 0xf6c3
movq %rsi, %rdi
movq %r13, %rsi
movl %ebp, %edx
callq 0xe8e4
movl %eax, %r12d
testl %eax, %eax
jle 0xf786
movslq %ebp, %rax
movq %rax, 0x18(%rbx)
addq %rax, %r13
movq %r13, 0x10(%rbx)
jmp 0xf786
cmpq $0xfffe, %r8            # imm = 0xFFFE
movl %ebp, 0x34(%rsp)
ja 0xf764
movq 0x8(%rbx), %rax
testq %rax, %rax
je 0xf764
testq %rsi, %rsi
je 0xf798
movq %rax, %rcx
movq (%rbx), %rax
addq %rax, %rcx
testq %rax, %rax
cmoveq %rax, %rcx
movq %rcx, 0x20(%rsp)
testl %ebp, %ebp
je 0xfa09
movq %rbx, 0x18(%rsp)
movq %r13, %r9
subq %r8, %r9
movslq %ebp, %rax
leaq (%rax,%r13), %r8
leaq (%rax,%r13), %rcx
addq $-0x8, %rcx
movq %rcx, 0x40(%rsp)
leaq (%rax,%r13), %r10
addq $-0x1a, %r10
cmpl $0x40, %ebp
movq %r9, 0x10(%rsp)
movq %r8, (%rsp)
movq %r10, 0x8(%rsp)
movq %rsi, 0x38(%rsp)
jge 0xf7a0
movq %rsi, %r12
jmp 0xfc20
movq %rsi, %rdi
movq %r13, %rsi
movl %ebp, %edx
callq 0xe8e4
movl %eax, %r12d
testl %r12d, %r12d
jle 0xf786
movslq 0x34(%rsp), %rax
addq %rax, 0x18(%rbx)
addq %rax, 0x10(%rbx)
movl %r12d, %eax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0xffffffff, %r12d      # imm = 0xFFFFFFFF
jmp 0xf774
leaq -0x40(%r8), %r15
leaq -0x5(%r8), %rax
movq %rax, 0x48(%rsp)
movq %rsi, %r12
movq %r15, 0x28(%rsp)
movzbl (%r12), %ebx
movl %ebx, %eax
shrl $0x4, %eax
cmpl $0xf, %eax
jne 0xf822
addq $0x10, %r12
xorl %ecx, %ecx
movq %r12, %rax
movzbl -0xf(%rax), %edx
addl %edx, %ecx
incq %rax
cmpl $0xff, %edx
je 0xf7cd
movl %ecx, %r14d
leaq (%r14,%r13), %rbp
addq $0xf, %rbp
leaq -0xf(%rax), %r12
movl $0x6, %ecx
cmpq 0x40(%rsp), %rbp
ja 0xf819
movq (%r12), %rcx
movq %rcx, (%r13)
addq $0x8, %r13
addq $0x8, %r12
cmpq %rbp, %r13
jb 0xf7f9
addq %r14, %rax
xorl %ecx, %ecx
movq %rax, %r12
movq %rbp, %r13
testl %ecx, %ecx
je 0xf845
jmp 0xf9f6
leaq 0x1(%r12), %rcx
movq (%rcx), %rdx
movq %rdx, (%r13)
cmpb $-0x70, %bl
jb 0xf83c
movq 0x9(%r12), %rdx
movq %rdx, 0x8(%r13)
addq %rax, %r13
addq %rax, %rcx
movq %rcx, %r12
movzwl (%r12), %ecx
addq $0x2, %r12
movq %r13, %rsi
subq %rcx, %rsi
andl $0xf, %ebx
cmpq $0xf, %rbx
jne 0xf910
xorl %eax, %eax
movzbl (%r12), %edx
incq %r12
addl %edx, %eax
cmpl $0xff, %edx
je 0xf863
movl %eax, %ebx
leaq (%rbx,%r13), %rax
addq $0x13, %rax
addq $0x13, %rbx
cmpq %r15, %rax
jae 0xf9ee
leaq (%rbx,%r13), %r14
cmpq %r9, %rsi
jae 0xf958
cmpq 0x48(%rsp), %r14
ja 0xfa1b
movq %r9, %rbp
subq %rsi, %rbp
movq %rbx, %r15
subq %rbp, %r15
jbe 0xf98d
movq 0x20(%rsp), %rsi
subq %rbp, %rsi
movq %r13, %rdi
movq %rbp, %rdx
callq 0x1140
addq %rbp, %r13
movq %r13, %rax
movq 0x10(%rsp), %r9
subq %r9, %rax
cmpq %rax, %r15
jbe 0xf9aa
cmpq %rbp, %rbx
movq (%rsp), %r8
movq 0x8(%rsp), %r10
movq 0x28(%rsp), %r15
jle 0xf7b5
movq %r9, %rax
movb (%rax), %cl
incq %rax
movb %cl, (%r13)
incq %r13
cmpq %r14, %r13
jb 0xf8fa
jmp 0xf7b5
leaq (%rbx,%r13), %rax
addq $0x4, %rax
addq $0x4, %rbx
cmpq %r15, %rax
jae 0xf9ee
cmpq %r9, %rsi
jb 0xf88c
cmpw $0x8, %cx
jb 0xf88c
movq (%rsi), %rcx
movq %rcx, (%r13)
movq 0x8(%rsi), %rcx
movq %rcx, 0x8(%r13)
movzwl 0x10(%rsi), %ecx
movw %cx, 0x10(%r13)
movq %rax, %r13
jmp 0xf7b5
cmpw $0x10, %cx
jb 0xf9d3
movl $0x10, %eax
subq %rcx, %rax
movups -0x10(%r13,%rax), %xmm0
movups %xmm0, (%r13)
movups (%r13,%rax), %xmm0
movups %xmm0, 0x10(%r13)
addq $0x20, %r13
cmpq %r14, %r13
jb 0xf966
movq %r14, %r13
jmp 0xf7b5
movq 0x20(%rsp), %rsi
subq %rbp, %rsi
movq %r13, %rdi
movq %rbx, %rdx
callq 0x1190
movq %r14, %r13
movq 0x10(%rsp), %r9
jmp 0xf9c0
movq %r13, %rdi
movq %r9, %rsi
movq %r15, %rdx
callq 0x1140
movq 0x10(%rsp), %r9
movq %r14, %r13
movq (%rsp), %r8
movq 0x8(%rsp), %r10
movq 0x28(%rsp), %r15
jmp 0xf7b5
movq %r13, %rdi
movq %r14, %rdx
callq 0x104a4
movq 0x8(%rsp), %r10
movq (%rsp), %r8
movq 0x10(%rsp), %r9
jmp 0xf985
movq %r13, %rbp
jmp 0xfb2c
cmpl $0x6, %ecx
jne 0xfa04
addq $0xf, %r14
jmp 0xfad1
jmp 0xfc6e
xorl %r12d, %r12d
cmpb (%rsi), %r12b
sbbl %r12d, %r12d
orl $0x1, %r12d
jmp 0xf774
movq 0x18(%rsp), %rbx
notl %r12d
addl 0x38(%rsp), %r12d
jmp 0xf774
movq (%r12), %rax
movq %rax, (%r13)
addq %r14, %r13
andl $0xf, %ebx
leaq (%r12,%r14), %rax
addq $0x2, %rax
movzwl -0x2(%rax), %edx
movzwl %dx, %ecx
movq %r13, %rsi
subq %rcx, %rsi
cmpl $0xf, %ebx
je 0xfc78
cmpw $0x8, %dx
jb 0xfc78
cmpq %r9, %rsi
jb 0xfc78
addq %r14, %r12
movq (%rsi), %rax
movq %rax, (%r13)
movq 0x8(%rsi), %rax
movq %rax, 0x8(%r13)
movzwl 0x10(%rsi), %eax
movw %ax, 0x10(%r13)
addq %rbx, %r13
addq $0x4, %r13
movzbl 0x2(%r12), %ebx
addq $0x3, %r12
movl %ebx, %r14d
shrl $0x4, %r14d
cmpl $0x8f, %ebx
ja 0xfaac
cmpq %r10, %r13
jbe 0xfa2d
cmpl $0xf, %r14d
jne 0xfacd
xorl %eax, %eax
movzbl (%r12), %ecx
incq %r12
addl %ecx, %eax
cmpl $0xff, %ecx
je 0xfab4
movl %eax, %r14d
addq $0xf, %r14
leaq (%r14,%r13), %rbp
cmpq 0x40(%rsp), %rbp
ja 0xfc4f
movq %r12, %rax
movq (%rax), %rcx
movq %rcx, (%r13)
addq $0x8, %r13
addq $0x8, %rax
cmpq %rbp, %r13
jb 0xfadf
leaq (%r12,%r14), %rax
addq $0x2, %rax
movzwl -0x2(%rax), %ecx
movq %rbp, %rsi
subq %rcx, %rsi
andl $0xf, %ebx
cmpl $0xf, %ebx
jne 0xfb25
xorl %edx, %edx
movzbl (%rax), %edi
incq %rax
addl %edi, %edx
cmpl $0xff, %edi
je 0xfb0f
movl %edx, %ebx
addq $0xf, %rbx
addq $0x4, %rbx
movq %rax, %r12
leaq (%rbx,%rbp), %r13
cmpq %r9, %rsi
jae 0xfba8
leaq -0x5(%r8), %rax
cmpq %rax, %r13
ja 0xfa1b
movq %r9, %r14
subq %rsi, %r14
movq %rbx, %r15
subq %r14, %r15
jbe 0xfbf7
movq 0x20(%rsp), %rsi
subq %r14, %rsi
movq %rbp, %rdi
movq %r14, %rdx
callq 0x1140
addq %r14, %rbp
movq %rbp, %rax
movq 0x10(%rsp), %rsi
subq %rsi, %rax
cmpq %rax, %r15
jbe 0xfc0c
cmpq %r14, %rbx
movq 0x8(%rsp), %r10
jle 0xfc46
movq %rsi, %rax
movq (%rsp), %r8
movb (%rax), %cl
incq %rax
movb %cl, (%rbp)
incq %rbp
cmpq %r13, %rbp
jb 0xfb93
movq %rbp, %r13
jmp 0xfc20
leaq -0xc(%r8), %r15
cmpl $0x7, %ecx
jbe 0xfc8a
movq (%rsi), %rax
movq %rax, (%rbp)
addq $0x8, %rsi
leaq 0x8(%rbp), %rcx
cmpq %r15, %r13
ja 0xfcae
movq (%rsi), %rax
movq %rax, (%rcx)
cmpq $0x11, %rbx
jb 0xfc20
addq $0x10, %rbp
addq $0x8, %rsi
movq (%rsi), %rax
movq %rax, (%rbp)
addq $0x8, %rbp
addq $0x8, %rsi
cmpq %r13, %rbp
jb 0xfbe1
jmp 0xfc20
movq 0x20(%rsp), %rsi
subq %r14, %rsi
movq %rbp, %rdi
movq %rbx, %rdx
callq 0x1190
jmp 0xfc17
movq %rbp, %rdi
movq %r15, %rdx
callq 0x1140
movq (%rsp), %r8
movq 0x8(%rsp), %r10
movzbl (%r12), %ebx
incq %r12
movl %ebx, %r14d
shrl $0x4, %r14d
cmpl $0x8f, %ebx
ja 0xfc80
cmpq %r10, %r13
ja 0xfc80
movq 0x10(%rsp), %r9
jmp 0xfa2d
movq %rbp, %r13
movq (%rsp), %r8
jmp 0xfc20
cmpq %r8, %rbp
jne 0xfa1b
movq %r13, %rdi
movq %r12, %rsi
movq %r14, %rdx
callq 0x1190
addl %r14d, %r12d
subl 0x38(%rsp), %r12d
movq 0x18(%rsp), %rbx
jmp 0xf774
movq %r13, %rbp
jmp 0xfb08
movq 0x10(%rsp), %r9
jmp 0xfaac
leaq 0x50(%rsp), %r14
movq %rbp, %rdi
movq %rcx, %rdx
movq %r14, %rcx
callq 0x372b
movq 0x8(%rsp), %r10
movq (%rsp), %r8
movq (%r14), %rsi
jmp 0xfbc0
leaq -0x5(%r8), %rax
movl $0x5, %edx
cmpq %rax, %r13
ja 0xfd08
leaq -0x7(%r8), %rax
cmpq %rax, %rcx
jae 0xfce9
movq %rsi, %rdx
movq %rcx, %rdi
movq (%rdx), %r8
movq %r8, (%rdi)
addq $0x8, %rdi
addq $0x8, %rdx
cmpq %rax, %rdi
jb 0xfccb
movq %rax, %rdx
subq %rcx, %rdx
addq %rdx, %rsi
jmp 0xfcec
movq %rcx, %rax
xorl %edx, %edx
cmpq %r13, %rax
jae 0xfcff
movb (%rsi), %cl
incq %rsi
movb %cl, (%rax)
incq %rax
jmp 0xfcee
movq (%rsp), %r8
movq 0x8(%rsp), %r10
testl %edx, %edx
je 0xfc20
cmpl $0x5, %edx
movq 0x18(%rsp), %rbx
jne 0xf774
jmp 0xfa20