// File: /workspace/github_c_makefile_star2_O3/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 0xde20
movq 0x10(%rbx), %rcx
cmpq %r13, %rcx
je 0xde4b
movq %r8, 0x8(%rbx)
subq %r8, %rcx
movq %rcx, (%rbx)
movq %rsi, %rdi
movq %r13, %rsi
movl %ebp, %edx
callq 0xe460
jmp 0xde2d
movq %rsi, %rdi
movq %r13, %rsi
movl %ebp, %edx
callq 0xd9a9
movl %eax, %r15d
testl %eax, %eax
jle 0xe168
movslq %ebp, %rax
movq %rax, 0x18(%rbx)
addq %rax, %r13
movq %r13, 0x10(%rbx)
jmp 0xe168
cmpq $0xfffe, %r8            # imm = 0xFFFE
ja 0xded8
movq 0x8(%rbx), %rax
testq %rax, %rax
je 0xded8
movl $0xffffffff, %r15d      # imm = 0xFFFFFFFF
testq %rsi, %rsi
je 0xe168
movq %rax, %rdx
movq (%rbx), %rax
addq %rax, %rdx
testq %rax, %rax
cmoveq %rax, %rdx
movq %rdx, 0x28(%rsp)
testl %ebp, %ebp
je 0xe13b
movq %rbx, 0x18(%rsp)
movq %r13, %r9
subq %r8, %r9
movslq %ebp, %rax
leaq (%rax,%r13), %r10
leaq (%rax,%r13), %rcx
addq $-0x8, %rcx
movq %rcx, 0x40(%rsp)
leaq (%rax,%r13), %r11
addq $-0x1a, %r11
movl %ebp, 0x24(%rsp)
cmpl $0x40, %ebp
movq %r9, 0x10(%rsp)
movq %r10, (%rsp)
movq %r11, 0x8(%rsp)
movq %rsi, 0x38(%rsp)
jge 0xdeed
movq %rsi, %r15
jmp 0xe37c
movq %rsi, %rdi
movq %r13, %rsi
movl %ebp, %edx
callq 0xd9a9
movl %eax, %r15d
jmp 0xe14a
leaq -0x40(%r10), %r12
leaq -0x5(%r10), %rax
movq %rax, 0x48(%rsp)
movq %rsi, %r15
movq %r12, 0x30(%rsp)
movzbl (%r15), %ebx
movl %ebx, %eax
shrl $0x4, %eax
cmpl $0xf, %eax
jne 0xdf5e
addq $0x10, %r15
xorl %eax, %eax
movzbl -0xf(%r15), %ecx
addl %ecx, %eax
incq %r15
cmpl $0xff, %ecx
je 0xdf16
movl %eax, %r14d
leaq (%r14,%r13), %rbp
addq $0xf, %rbp
cmpq 0x40(%rsp), %rbp
ja 0xe12e
leaq -0xf(%r15), %rax
movq (%rax), %rcx
movq %rcx, (%r13)
addq $0x8, %r13
addq $0x8, %rax
cmpq %rbp, %r13
jb 0xdf42
addq %r14, %r15
movq %rbp, %r13
jmp 0xdf7f
leaq 0x1(%r15), %rcx
movq (%rcx), %rdx
movq %rdx, (%r13)
cmpb $-0x70, %bl
jb 0xdf76
movq 0x9(%r15), %rdx
movq %rdx, 0x8(%r13)
addq %rax, %r13
addq %rax, %rcx
movq %rcx, %r15
movzwl (%r15), %ecx
addq $0x2, %r15
movq %r13, %rsi
subq %rcx, %rsi
andl $0xf, %ebx
cmpq $0xf, %rbx
jne 0xe048
xorl %eax, %eax
movzbl (%r15), %edx
incq %r15
addl %edx, %eax
cmpl $0xff, %edx
je 0xdf9c
movl %eax, %ebx
leaq (%rbx,%r13), %rax
addq $0x13, %rax
addq $0x13, %rbx
cmpq %r12, %rax
jae 0xe126
leaq (%rbx,%r13), %r14
cmpq %r9, %rsi
jae 0xe090
cmpq 0x48(%rsp), %r14
ja 0xe17a
movq %r9, %rbp
subq %rsi, %rbp
movq %rbx, %r12
subq %rbp, %r12
jbe 0xe0c5
movq 0x28(%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, %r12
jbe 0xe0e2
cmpq %rbp, %rbx
movq (%rsp), %r10
movq 0x8(%rsp), %r11
movq 0x30(%rsp), %r12
jbe 0xdf02
movq %r9, %rax
movb (%rax), %cl
incq %rax
movb %cl, (%r13)
incq %r13
cmpq %r14, %r13
jb 0xe032
jmp 0xdf02
leaq (%rbx,%r13), %rax
addq $0x4, %rax
addq $0x4, %rbx
cmpq %r12, %rax
jae 0xe126
cmpq %r9, %rsi
jb 0xdfc4
cmpw $0x8, %cx
jb 0xdfc4
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 0xdf02
cmpw $0x10, %cx
jb 0xe10b
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 0xe09e
movq %r14, %r13
jmp 0xdf02
movq 0x28(%rsp), %rsi
subq %rbp, %rsi
movq %r13, %rdi
movq %rbx, %rdx
callq 0x1190
movq %r14, %r13
movq 0x10(%rsp), %r9
jmp 0xe0f8
movq %r13, %rdi
movq %r9, %rsi
movq %r12, %rdx
callq 0x1140
movq 0x10(%rsp), %r9
movq %r14, %r13
movq (%rsp), %r10
movq 0x8(%rsp), %r11
movq 0x30(%rsp), %r12
jmp 0xdf02
movq %r13, %rdi
movq %r14, %rdx
callq 0xeae5
movq 0x8(%rsp), %r11
movq (%rsp), %r10
movq 0x10(%rsp), %r9
jmp 0xe0bd
movq %r13, %rbp
jmp 0xe288
addq $0xf, %r14
addq $-0xf, %r15
jmp 0xe22d
cmpb $0x0, (%rsi)
jne 0xe168
movl $0x1, %r15d
xorl %eax, %eax
jmp 0xe15a
testl %r15d, %r15d
jle 0xe168
movq 0x10(%rbx), %rcx
movq 0x18(%rbx), %r8
movslq %ebp, %rax
addq %rax, %r8
movq %r8, 0x18(%rbx)
addq %rax, %rcx
movq %rcx, 0x10(%rbx)
movl %r15d, %eax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x18(%rsp), %rbx
notl %r15d
addl 0x38(%rsp), %r15d
jmp 0xe3ce
movq (%r15), %rax
movq %rax, (%r13)
addq %r14, %r13
andl $0xf, %ebx
leaq (%r15,%r14), %rax
addq $0x2, %rax
movzwl -0x2(%rax), %edx
movzwl %dx, %ecx
movq %r13, %rsi
subq %rcx, %rsi
cmpl $0xf, %ebx
je 0xe3d7
cmpw $0x8, %dx
jb 0xe3d7
cmpq %r9, %rsi
jb 0xe3d7
addq %r14, %r15
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(%r15), %ebx
addq $0x3, %r15
movl %ebx, %r14d
shrl $0x4, %r14d
cmpl $0x8f, %ebx
ja 0xe209
cmpq %r11, %r13
jbe 0xe18c
cmpl $0xf, %r14d
jne 0xe229
xorl %eax, %eax
movzbl (%r15), %ecx
incq %r15
addl %ecx, %eax
cmpl $0xff, %ecx
je 0xe211
movl %eax, %r14d
addq $0xf, %r14
leaq (%r14,%r13), %rbp
cmpq 0x40(%rsp), %rbp
ja 0xe3aa
movq %r15, %rax
movq (%rax), %rcx
movq %rcx, (%r13)
addq $0x8, %r13
addq $0x8, %rax
cmpq %rbp, %r13
jb 0xe23b
leaq (%r15,%r14), %rax
addq $0x2, %rax
movzwl -0x2(%rax), %ecx
movq %rbp, %rsi
subq %rcx, %rsi
andl $0xf, %ebx
cmpl $0xf, %ebx
jne 0xe281
xorl %edx, %edx
movzbl (%rax), %edi
incq %rax
addl %edi, %edx
cmpl $0xff, %edi
je 0xe26b
movl %edx, %ebx
addq $0xf, %rbx
addq $0x4, %rbx
movq %rax, %r15
leaq (%rbx,%rbp), %r13
cmpq %r9, %rsi
jae 0xe304
leaq -0x5(%r10), %rax
cmpq %rax, %r13
ja 0xe17a
movq %r9, %r14
subq %rsi, %r14
movq %rbx, %r12
subq %r14, %r12
jbe 0xe353
movq 0x28(%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, %r12
jbe 0xe368
cmpq %r14, %rbx
movq 0x8(%rsp), %r11
jbe 0xe3a1
movq %rsi, %rax
movq (%rsp), %r10
movb (%rax), %cl
incq %rax
movb %cl, (%rbp)
incq %rbp
cmpq %r13, %rbp
jb 0xe2ef
movq %rbp, %r13
jmp 0xe37c
leaq -0xc(%r10), %r12
cmpl $0x7, %ecx
jbe 0xe3e9
movq (%rsi), %rax
movq %rax, (%rbp)
addq $0x8, %rsi
leaq 0x8(%rbp), %rcx
cmpq %r12, %r13
ja 0xe40d
movq (%rsi), %rax
movq %rax, (%rcx)
cmpq $0x11, %rbx
jb 0xe37c
addq $0x10, %rbp
addq $0x8, %rsi
movq (%rsi), %rax
movq %rax, (%rbp)
addq $0x8, %rbp
addq $0x8, %rsi
cmpq %r13, %rbp
jb 0xe33d
jmp 0xe37c
movq 0x28(%rsp), %rsi
subq %r14, %rsi
movq %rbp, %rdi
movq %rbx, %rdx
callq 0x1190
jmp 0xe373
movq %rbp, %rdi
movq %r12, %rdx
callq 0x1140
movq (%rsp), %r10
movq 0x8(%rsp), %r11
movzbl (%r15), %ebx
incq %r15
movl %ebx, %r14d
shrl $0x4, %r14d
cmpl $0x8f, %ebx
ja 0xe3df
cmpq %r11, %r13
ja 0xe3df
movq 0x10(%rsp), %r9
jmp 0xe18c
movq %rbp, %r13
movq (%rsp), %r10
jmp 0xe37c
cmpq %r10, %rbp
jne 0xe17a
movq %r13, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x1190
addl %r14d, %r15d
subl 0x38(%rsp), %r15d
movq 0x18(%rsp), %rbx
movl 0x24(%rsp), %ebp
jmp 0xe14a
movq %r13, %rbp
jmp 0xe264
movq 0x10(%rsp), %r9
jmp 0xe209
leaq 0x50(%rsp), %r14
movq %rbp, %rdi
movq %rcx, %rdx
movq %r14, %rcx
callq 0xacf1
movq 0x8(%rsp), %r11
movq (%rsp), %r10
movq (%r14), %rsi
jmp 0xe31c
leaq -0x5(%r10), %rax
cmpq %rax, %r13
ja 0xe17a
leaq -0x7(%r10), %rax
cmpq %rax, %rcx
jae 0xe447
movq %rsi, %rdx
movq %rcx, %rdi
movq (%rdx), %r8
movq %r8, (%rdi)
addq $0x8, %rdi
addq $0x8, %rdx
cmpq %rax, %rdi
jb 0xe429
movq %rax, %rdx
subq %rcx, %rdx
addq %rdx, %rsi
jmp 0xe456
movq %rcx, %rax
jmp 0xe456
movb (%rsi), %cl
incq %rsi
movb %cl, (%rax)
incq %rax
cmpq %r13, %rax
jb 0xe44c
jmp 0xe37c