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

    if (lz4sd->prefixSize == 0) {
        /* The first call, no dictionary yet. */
        assert(lz4sd->extDictSize == 0);
        result = LZ4_decompress_safe(source, dest, compressedSize, maxOutputSize);
        if (result <= 0) return result;
        lz4sd->prefixSize = (size_t)result;
        lz4sd->prefixEnd = (BYTE*)dest + result;
    } else if (lz4sd->prefixEnd == (BYTE*)dest) {
        /* They're rolling the current segment. */
        if (lz4sd->prefixSize >= 64 KB - 1)
            result = LZ4_decompress_safe_withPrefix64k(source, dest, compressedSize, maxOutputSize);
        else if (lz4sd->extDictSize == 0)
            result = LZ4_decompress_safe_withSmallPrefix(source, dest, compressedSize, maxOutputSize,
                                                         lz4sd->prefixSize);
        else
            result = LZ4_decompress_safe_doubleDict(source, dest, compressedSize, maxOutputSize,
                                                    lz4sd->prefixSize, lz4sd->externalDict, lz4sd->extDictSize);
        if (result <= 0) return result;
        lz4sd->prefixSize += (size_t)result;
        lz4sd->prefixEnd  += result;
    } else {
        /* The buffer wraps around, or they're switching to another buffer. */
        lz4sd->extDictSize = lz4sd->prefixSize;
        lz4sd->externalDict = lz4sd->prefixEnd - lz4sd->extDictSize;
        result = LZ4_decompress_safe_forceExtDict(source, dest, compressedSize, maxOutputSize,
                                                  lz4sd->externalDict, lz4sd->extDictSize);
        if (result <= 0) return result;
        lz4sd->prefixSize = (size_t)result;
        lz4sd->prefixEnd  = (BYTE*)dest + result;
    }

    return result;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rdx, %r13
movq %rdi, %rbx
movq 0x18(%rdi), %r9
testq %r9, %r9
je 0xa18b
movq 0x10(%rbx), %rax
cmpq %r13, %rax
jne 0xa19d
cmpq $0xffff, %r9            # imm = 0xFFFF
jae 0xa1d4
movq 0x8(%rbx), %r10
testq %r10, %r10
je 0xa1e6
pushq $-0x1
popq %rax
testq %rsi, %rsi
je 0xa558
movq (%rbx), %rdx
leaq (%rdx,%r10), %rdi
testq %rdx, %rdx
cmoveq %rdx, %rdi
movq %rdi, 0x30(%rsp)
testl %r8d, %r8d
je 0xa243
testl %ecx, %ecx
je 0xa558
movq %rbx, 0x40(%rsp)
movq %r13, %rax
subq %r9, %rax
movq %rax, 0x20(%rsp)
movslq %ecx, %rax
leaq (%rsi,%rax), %r12
movslq %r8d, %rcx
leaq (%r13,%rcx), %r11
leaq -0x10(%rsi,%rax), %rax
movq %rax, 0x80(%rsp)
leaq -0x20(%r13,%rcx), %rax
movq %rax, 0x58(%rsp)
movq %rsi, 0x48(%rsp)
movq %rsi, %rbp
movq %r13, 0x38(%rsp)
cmpl $0x40, %r8d
movq %r10, 0x18(%rsp)
movq %r11, 0x10(%rsp)
movq %r12, 0x8(%rsp)
jl 0xa4f5
leaq -0x11(%r12), %rax
movq %rax, 0x78(%rsp)
leaq -0xf(%r12), %r8
leaq -0x20(%r12), %rax
movq %rax, 0x70(%rsp)
leaq -0x40(%r11), %rax
movq %rax, 0x50(%rsp)
leaq -0x4(%r12), %rax
movq %rax, 0x68(%rsp)
leaq -0x5(%r11), %rax
movq %rax, 0x60(%rsp)
movq 0x48(%rsp), %r12
movq 0x38(%rsp), %r13
movq 0x20(%rsp), %r9
movq %r8, 0x28(%rsp)
leaq 0x1(%r12), %rax
movzbl (%r12), %ebx
movl %ebx, %ebp
shrl $0x4, %ebp
cmpl $0xf, %ebp
jne 0x9f6d
cmpq %r8, %rax
jae 0xa53f
leaq 0x10(%r12), %rcx
addq $0x2, %r12
xorl %edx, %edx
movb -0xf(%rcx), %sil
movzbl %sil, %esi
incq %rax
leaq -0xe(%rcx), %rdi
addl %esi, %edx
cmpq %r8, %rdi
setb %dil
cmpb $-0x1, %sil
sete %sil
incq %rcx
incq %r12
testb %sil, %dil
jne 0x9edd
movl %edx, %ebp
leaq 0xf(%rbp), %r15
movq %r13, %r14
addq %r15, %r14
jb 0xa237
negq %r12
cmpq %r12, %r15
ja 0xa237
cmpq 0x58(%rsp), %r14
ja 0xa201
addq %rcx, %rbp
cmpq 0x70(%rsp), %rbp
movq 0x8(%rsp), %r12
ja 0xa20b
xorl %ecx, %ecx
movups (%rax,%rcx), %xmm0
leaq (%rcx,%r13), %rdx
addq $0x20, %rdx
movups %xmm0, -0x20(%rdx)
movups 0x10(%rax,%rcx), %xmm0
movups %xmm0, -0x10(%rdx)
addq $0x20, %rcx
cmpq %r14, %rdx
jb 0x9f46
movq %r14, %r13
jmp 0x9f91
movq %r13, %r14
addq %rbp, %r14
cmpq 0x78(%rsp), %rax
ja 0xa1fe
movups (%rax), %xmm0
movups %xmm0, (%r13)
addq %rax, %rbp
movq %r14, %r13
movq 0x8(%rsp), %r12
movzwl (%rbp), %ecx
addq $0x2, %rbp
movq %r13, %rsi
subq %rcx, %rsi
andl $0xf, %ebx
cmpq $0xf, %rbx
jne 0xa00c
cmpq $0xffff, %r10           # imm = 0xFFFF
ja 0x9fbe
leaq (%rsi,%r10), %rax
cmpq %r9, %rax
jb 0xa257
xorl %eax, %eax
movq 0x68(%rsp), %rdi
leaq 0x1(%rbp), %r12
cmpq %rdi, %r12
jae 0xa22f
movzbl (%rbp), %edx
addl %edx, %eax
movq %r12, %rbp
cmpl $0xff, %edx
je 0x9fc5
movl %eax, %ebx
pushq $-0x10
popq %rax
subq %rbx, %rax
cmpq %r13, %rax
jb 0xa22f
leaq (%rbx,%r13), %rax
addq $0x13, %rax
addq $0x13, %rbx
cmpq 0x50(%rsp), %rax
jb 0xa054
jmp 0xa21f
leaq (%rbx,%r13), %rax
addq $0x4, %rax
addq $0x4, %rbx
cmpq 0x50(%rsp), %rax
jae 0xa217
cmpq %r9, %rsi
jb 0xa051
cmpw $0x8, %cx
jb 0xa051
movq (%rsi), %rcx
movq %rcx, (%r13)
movq 0x8(%rsi), %rcx
movq %rcx, 0x8(%r13)
movzwl 0x10(%rsi), %ecx
movw %cx, 0x10(%r13)
movq %rbp, %r12
movq %rax, %r13
jmp 0x9eb1
movq %rbp, %r12
cmpq $0xffff, %r10           # imm = 0xFFFF
ja 0xa06a
leaq (%rsi,%r10), %rax
cmpq %r9, %rax
jb 0xa22f
leaq (%rbx,%r13), %r14
cmpq %r9, %rsi
jae 0xa0eb
cmpq 0x60(%rsp), %r14
ja 0xa22f
movq %r9, %r15
subq %rsi, %r15
movq %rbx, %rbp
subq %r15, %rbp
jbe 0xa11e
movq 0x30(%rsp), %rsi
subq %r15, %rsi
movq %r13, %rdi
movq %r15, %rdx
callq 0x1140
addq %r15, %r13
movq %r13, %rax
movq 0x20(%rsp), %r9
subq %r9, %rax
cmpq %rax, %rbp
jbe 0xa140
cmpq %r15, %rbx
movq 0x18(%rsp), %r10
movq 0x10(%rsp), %r11
movq 0x28(%rsp), %r8
jbe 0x9eb1
movq %r9, %rax
movb (%rax), %cl
incq %rax
movb %cl, (%r13)
incq %r13
cmpq %r14, %r13
jb 0xa0d5
jmp 0x9eb1
cmpw $0x10, %cx
jb 0xa16a
pushq $0x10
popq %rax
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 0xa0f7
movq %r14, %r13
jmp 0x9eb1
movq 0x30(%rsp), %rsi
subq %r15, %rsi
movq %r13, %rdi
movq %rbx, %rdx
callq 0x1190
movq %r14, %r13
movq 0x18(%rsp), %r10
movq 0x20(%rsp), %r9
jmp 0xa15b
movq %r13, %rdi
movq %r9, %rsi
movq %rbp, %rdx
callq 0x1140
movq 0x20(%rsp), %r9
movq %r14, %r13
movq 0x18(%rsp), %r10
movq 0x10(%rsp), %r11
movq 0x28(%rsp), %r8
jmp 0x9eb1
movq %r13, %rdi
movq %r14, %rdx
callq 0xeae5
movq 0x28(%rsp), %r8
movq 0x10(%rsp), %r11
movq 0x20(%rsp), %r9
movq 0x18(%rsp), %r10
jmp 0xa116
movq %rsi, %rdi
movq %r13, %rsi
movl %ecx, %edx
movl %r8d, %ecx
callq 0x844d
jmp 0xa1ba
movq %r9, 0x8(%rbx)
subq %r9, %rax
movq %rax, (%rbx)
movq %rsi, %rdi
movq %r13, %rsi
movl %ecx, %edx
movl %r8d, %ecx
movq %rax, %r8
callq 0x95c6
testl %eax, %eax
jle 0xa558
movl %eax, %ecx
movq %rcx, 0x18(%rbx)
addq %rcx, %r13
movq %r13, 0x10(%rbx)
jmp 0xa558
movq %rsi, %rdi
movq %r13, %rsi
movl %ecx, %edx
movl %r8d, %ecx
callq 0x8fd4
jmp 0xa1f9
movq %rsi, %rdi
movq %r13, %rsi
movl %ecx, %edx
movl %r8d, %ecx
movq %r9, %r8
callq 0xa606
jmp 0xa54a
movq %rbp, %r15
movq 0x8(%rsp), %r12
jmp 0xa351
addq $-0xf, %rcx
movq %rcx, %rax
jmp 0xa351
movq %r13, %r14
jmp 0xa3d6
movq %r12, %rbp
movq %r13, %r14
movq 0x8(%rsp), %r12
jmp 0xa3d6
movq %r12, %rax
jmp 0xa53f
addq $-0xf, %rcx
movq %rcx, %rax
jmp 0xa53f
cmpl $0x1, %ecx
jne 0xa558
xorl %eax, %eax
cmpb (%rsi), %al
sbbl %eax, %eax
jmp 0xa558
movq %rbp, %rax
jmp 0xa53f
movq 0x20(%rsp), %r9
movq 0x80(%rsp), %rdi
movq 0x58(%rsp), %r8
movl %ecx, %r15d
cmpq %rdi, %rax
jae 0xa34d
cmpq %r8, %r13
ja 0xa34d
movups (%rax), %xmm0
movups %xmm0, (%r13)
addq %r15, %r13
andl $0xf, %ebx
leaq (%rax,%r15), %rbp
addq $0x2, %rbp
movzwl -0x2(%rbp), %edx
movzwl %dx, %ecx
movq %r13, %rsi
subq %rcx, %rsi
cmpl $0xf, %ebx
je 0xa2ef
cmpw $0x8, %dx
jb 0xa2ef
cmpq %r9, %rsi
jb 0xa2ef
addq %r15, %rax
movq (%rsi), %rcx
movq %rcx, (%r13)
movq 0x8(%rsi), %rcx
movq %rcx, 0x8(%r13)
movzwl 0x10(%rsi), %ecx
movw %cx, 0x10(%r13)
addq %rbx, %r13
addq $0x4, %r13
movzbl 0x2(%rax), %ebx
addq $0x3, %rax
movl %ebx, %ecx
shrl $0x4, %ecx
cmpl $0xf, %ecx
jne 0xa271
jmp 0xa2f7
movq %r13, %r14
jmp 0xa395
leaq -0xf(%r12), %rdx
cmpq %rdx, %rax
jae 0xa53f
leaq 0x1(%rax), %rcx
xorl %esi, %esi
movb (%rax), %dil
movzbl %dil, %edi
incq %rax
addl %edi, %esi
cmpq %rdx, %rax
setb %r8b
cmpb $-0x1, %dil
sete %dil
incq %rcx
testb %dil, %r8b
jne 0xa30b
movl %esi, %r15d
addq $0xf, %r15
movq %r13, %rdx
addq %r15, %rdx
jb 0xa53f
negq %rcx
cmpq %rcx, %r15
ja 0xa53f
leaq (%r15,%r13), %r14
leaq -0xc(%r11), %rcx
leaq (%rax,%r15), %rbp
cmpq %rcx, %r14
ja 0xa517
leaq -0x8(%r12), %rcx
cmpq %rcx, %rbp
ja 0xa517
movq (%rax), %rcx
movq %rcx, (%r13)
addq $0x8, %r13
addq $0x8, %rax
cmpq %r14, %r13
jb 0xa370
movzwl (%rbp), %ecx
addq $0x2, %rbp
movq %r14, %rsi
subq %rcx, %rsi
andl $0xf, %ebx
cmpl $0xf, %ebx
jne 0xa3d2
leaq -0x4(%r12), %rdi
xorl %edx, %edx
movq %rbp, %rax
incq %rbp
cmpq %rdi, %rbp
jae 0xa53c
movzbl (%rax), %r8d
addl %r8d, %edx
cmpl $0xff, %r8d
je 0xa3a1
movl %edx, %ebx
addq $0xf, %rbx
movq %r14, %rdx
addq %rbx, %rdx
jb 0xa53c
addq $0x4, %rbx
cmpq $0xffff, %r10           # imm = 0xFFFF
ja 0xa3ec
leaq (%rsi,%r10), %rax
cmpq %r9, %rax
jb 0xa257
leaq (%r14,%rbx), %r13
cmpq %r9, %rsi
jae 0xa471
leaq -0x5(%r11), %rax
cmpq %rax, %r13
ja 0xa257
movq %r9, %r15
subq %rsi, %r15
movq %rbx, %r12
subq %r15, %r12
jbe 0xa4c1
movq 0x30(%rsp), %rsi
subq %r15, %rsi
movq %r14, %rdi
movq %r15, %rdx
callq 0x1140
addq %r15, %r14
movq %r14, %rax
movq 0x20(%rsp), %rsi
subq %rsi, %rax
cmpq %rax, %r12
jbe 0xa4d6
cmpq %r15, %rbx
jbe 0xa4e3
movq %rsi, %rax
movq 0x18(%rsp), %r10
movq 0x10(%rsp), %r11
movq 0x8(%rsp), %r12
movb (%rax), %cl
incq %rax
movb %cl, (%r14)
incq %r14
cmpq %r13, %r14
jb 0xa459
movq %r14, %r13
jmp 0xa4f5
leaq -0xc(%r11), %rdx
cmpl $0x7, %ecx
jbe 0xa56a
movq (%rsi), %rax
movq %rax, (%r14)
addq $0x8, %rsi
movq %rsi, %rax
leaq 0x8(%r14), %rsi
cmpq %rdx, %r13
ja 0xa5b3
movq (%rax), %rcx
movq %rcx, (%rsi)
cmpq $0x11, %rbx
jb 0xa4f5
addq $0x10, %r14
addq $0x8, %rax
movq (%rax), %rcx
movq %rcx, (%r14)
addq $0x8, %r14
addq $0x8, %rax
cmpq %r13, %r14
jb 0xa4ac
jmp 0xa4f5
movq 0x30(%rsp), %rsi
subq %r15, %rsi
movq %r14, %rdi
movq %rbx, %rdx
callq 0x1190
jmp 0xa4e6
movq %r14, %rdi
movq %r12, %rdx
callq 0x1140
jmp 0xa4e6
movq %r14, %r13
movq 0x18(%rsp), %r10
movq 0x10(%rsp), %r11
movq 0x8(%rsp), %r12
movzbl (%rbp), %ebx
movq %rbp, %rax
incq %rax
movl %ebx, %ecx
shrl $0x4, %ecx
cmpl $0xf, %ecx
jne 0xa25f
movq 0x20(%rsp), %r9
jmp 0xa2f7
cmpq %r12, %rbp
jne 0xa53f
cmpq %r11, %r14
ja 0xa53f
movq %r13, %rdi
movq %rax, %rsi
movq %r15, %rdx
callq 0x1190
addl %r15d, %r13d
subl 0x38(%rsp), %r13d
movl %r13d, %eax
jmp 0xa545
incq %rax
notl %eax
addl 0x48(%rsp), %eax
movq 0x40(%rsp), %rbx
testl %eax, %eax
jle 0xa558
movl %eax, %ecx
addq %rcx, 0x18(%rbx)
addq %rcx, 0x10(%rbx)
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
andl $0x0, (%r14)
movb (%rsi), %al
movb %al, (%r14)
movb 0x1(%rsi), %al
movb %al, 0x1(%r14)
movb 0x2(%rsi), %al
movb %al, 0x2(%r14)
movb 0x3(%rsi), %al
movb %al, 0x3(%r14)
shll $0x2, %ecx
leaq 0x7dfe(%rip), %rax      # 0x12390
movl (%rcx,%rax), %edi
leaq (%rsi,%rdi), %rax
movl (%rsi,%rdi), %esi
movl %esi, 0x4(%r14)
leaq 0x7e09(%rip), %rsi      # 0x123b0
movslq (%rcx,%rsi), %rcx
subq %rcx, %rax
jmp 0xa48b
leaq -0x5(%r11), %rcx
cmpq %rcx, %r13
ja 0xa257
leaq -0x7(%r11), %rcx
cmpq %rcx, %rsi
jae 0xa5ed
movq %rax, %rdx
movq %rsi, %rdi
movq (%rdx), %r8
movq %r8, (%rdi)
addq $0x8, %rdi
addq $0x8, %rdx
cmpq %rcx, %rdi
jb 0xa5cf
movq %rcx, %rdx
subq %rsi, %rdx
addq %rdx, %rax
jmp 0xa5fc
movq %rsi, %rcx
jmp 0xa5fc
movb (%rax), %dl
incq %rax
movb %dl, (%rcx)
incq %rcx
cmpq %r13, %rcx
jb 0xa5f2
jmp 0xa4f5