// File: /workspace/github_c_makefile_star2_O2/kieselsteini[P]PiXL-old/lz4.c
// Function: LZ4_decompress_fast_continue
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;

    if (lz4sd->prefixEnd == (BYTE*)dest) {
        result = LZ4_decompress_generic(source, dest, 0, originalSize,
                                        endOnOutputSize, full, 0,
                                        usingExtDict, lz4sd->prefixEnd - lz4sd->prefixSize, lz4sd->externalDict, lz4sd->extDictSize);
        if (result <= 0) return result;
        lz4sd->prefixSize += originalSize;
        lz4sd->prefixEnd  += originalSize;
    } else {
        lz4sd->extDictSize = lz4sd->prefixSize;
        lz4sd->externalDict = lz4sd->prefixEnd - lz4sd->extDictSize;
        result = LZ4_decompress_generic(source, dest, 0, originalSize,
                                        endOnOutputSize, full, 0,
                                        usingExtDict, (BYTE*)dest, lz4sd->externalDict, lz4sd->extDictSize);
        if (result <= 0) return result;
        lz4sd->prefixSize = originalSize;
        lz4sd->prefixEnd  = (BYTE*)dest + originalSize;
    }

    return result;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdx, %r13
movq %rsi, %r14
movq 0x10(%rdi), %rsi
movq 0x18(%rdi), %rax
movslq %ecx, %r8
leaq (%rdx,%r8), %r15
cmpq %rdx, %rsi
movq %rdi, 0x8(%rsp)
movq %r8, 0x40(%rsp)
movq %r14, 0x10(%rsp)
movq %r15, 0x28(%rsp)
je 0x23a6f
movq %rax, 0x8(%rdi)
movq %rsi, %rdx
subq %rax, %rdx
movq %rdx, (%rdi)
testl %ecx, %ecx
je 0x23d6e
pushq $0xf
popq %r9
leaq -0xc(%r15), %rax
movq %rax, 0x38(%rsp)
leaq -0x8(%r15), %r10
leaq -0x7(%r15), %rax
movq %rax, 0x30(%rsp)
leaq -0x5(%r15), %rax
movq %rax, 0x20(%rsp)
movq %r13, %rbp
movq %rsi, 0x18(%rsp)
movq %r10, (%rsp)
movzbl (%r14), %eax
incq %r14
movl %eax, %ebx
shrl $0x4, %ebx
cmpl $0xf, %ebx
jne 0x2385d
movq %r9, %rbx
movzbl (%r14), %ecx
incq %r14
addq %rcx, %rbx
cmpq $0xff, %rcx
je 0x2384a
leaq (%rbx,%rbp), %r15
cmpq %r10, %r15
ja 0x23a4e
movq %r14, %rcx
movq (%rcx), %rdx
movq %rdx, (%rbp)
addq $0x8, %rbp
addq $0x8, %rcx
cmpq %r15, %rbp
jb 0x2386d
addq %rbx, %r14
addq $0x2, %r14
movzwl -0x2(%r14), %ecx
movl %ecx, (%r15)
andl $0xf, %eax
cmpq $0xf, %rax
jne 0x238af
movq %r9, %rax
movzbl (%r14), %edx
incq %r14
addq %rdx, %rax
cmpq $0xff, %rdx
je 0x2389c
movq %r15, %r8
subq %rcx, %r8
leaq 0x4(%rax), %rdx
leaq (%r15,%rax), %rbp
addq $0x4, %rbp
cmpq %r13, %r8
jae 0x23929
cmpq 0x20(%rsp), %rbp
ja 0x23d5f
movq %r13, %r12
subq %r8, %r12
movq %rdx, %rbx
subq %r12, %rbx
jbe 0x2397f
subq %r12, %rsi
movq %r15, %rdi
movq %r12, %rdx
callq 0x63f0
addq %r12, %r15
movq %r15, %rax
subq %r13, %rax
cmpq %rax, %rbx
jbe 0x2398c
movq %r13, %rax
movq 0x18(%rsp), %rsi
pushq $0xf
popq %r9
movq (%rsp), %r10
cmpq %rbp, %r15
jae 0x239ac
movb (%rax), %cl
incq %rax
movb %cl, (%r15)
incq %r15
jmp 0x23913
cmpw $0x7, %cx
jbe 0x239b4
movq (%r8), %rax
movq %rax, (%r15)
addq $0x8, %r8
movq %r8, %rax
leaq 0x8(%r15), %rcx
cmpq 0x38(%rsp), %rbp
ja 0x239fe
movq (%rax), %rdi
movq %rdi, (%rcx)
cmpq $0x11, %rdx
jb 0x23836
addq $0x10, %r15
addq $0x8, %rax
movq (%rax), %rcx
movq %rcx, (%r15)
addq $0x8, %r15
addq $0x8, %rax
cmpq %rbp, %r15
jb 0x23967
jmp 0x23836
subq %r12, %rsi
movq %r15, %rdi
callq 0x6720
jmp 0x2399a
movq %r15, %rdi
movq %r13, %rsi
movq %rbx, %rdx
callq 0x63f0
movq 0x18(%rsp), %rsi
pushq $0xf
popq %r9
movq (%rsp), %r10
jmp 0x23836
movq %r15, %rbp
jmp 0x23836
shll $0x2, %ecx
leaq 0x83e2(%rip), %rax      # 0x2bda0
movslq (%rcx,%rax), %rdi
movb (%r8), %al
movb %al, (%r15)
movb 0x1(%r8), %al
movb %al, 0x1(%r15)
movb 0x2(%r8), %al
movb %al, 0x2(%r15)
movb 0x3(%r8), %al
movb %al, 0x3(%r15)
leaq 0x8399(%rip), %rax      # 0x2bd80
movl (%rcx,%rax), %ecx
leaq (%r8,%rcx), %rax
subq %rdi, %rax
movl (%r8,%rcx), %ecx
movl %ecx, 0x4(%r15)
jmp 0x23940
cmpq 0x20(%rsp), %rbp
ja 0x23d5f
movq 0x30(%rsp), %r11
cmpq %r11, %rcx
jae 0x23a44
movq %rax, %rdx
movq %rcx, %r8
movq (%rdx), %rdi
movq %rdi, (%r8)
addq $0x8, %r8
addq $0x8, %rdx
cmpq %r11, %r8
jb 0x23a19
movq %r11, %rdx
subq %rcx, %rdx
addq %rdx, %rax
movq %r11, %rcx
jmp 0x23a44
movb (%rax), %dl
incq %rax
movb %dl, (%rcx)
incq %rcx
cmpq %rbp, %rcx
jb 0x23a3a
jmp 0x23836
movq 0x28(%rsp), %rax
cmpq %rax, %r15
movq %rax, %r15
je 0x23ce4
movq 0x10(%rsp), %rax
notl %r14d
addl %eax, %r14d
jmp 0x23cfa
testl %ecx, %ecx
je 0x23d7a
subq %rax, %rsi
movq (%rdi), %rax
addq 0x8(%rdi), %rax
movq %rax, 0x18(%rsp)
leaq -0xc(%r15), %rax
movq %rax, 0x38(%rsp)
leaq -0x8(%r15), %r9
leaq -0x7(%r15), %rax
movq %rax, 0x30(%rsp)
leaq -0x5(%r15), %rax
movq %rax, 0x20(%rsp)
pushq $0xf
popq %r11
movq %r9, (%rsp)
movzbl (%r14), %eax
incq %r14
movl %eax, %r15d
shrl $0x4, %r15d
cmpl $0xf, %r15d
jne 0x23ad7
movq %r11, %r15
movzbl (%r14), %ecx
incq %r14
addq %rcx, %r15
cmpq $0xff, %rcx
je 0x23ac4
leaq (%r15,%r13), %rbp
cmpq %r9, %rbp
ja 0x23cce
movq %r14, %rcx
movq (%rcx), %rdx
movq %rdx, (%r13)
addq $0x8, %r13
addq $0x8, %rcx
cmpq %rbp, %r13
jb 0x23ae7
addq %r15, %r14
addq $0x2, %r14
movzwl -0x2(%r14), %ecx
movl %ecx, (%rbp)
andl $0xf, %eax
cmpq $0xf, %rax
jne 0x23b29
movq %r11, %rax
movzbl (%r14), %edx
incq %r14
addq %rdx, %rax
cmpq $0xff, %rdx
je 0x23b16
movq %rbp, %r8
subq %rcx, %r8
leaq 0x4(%rax), %rdx
leaq (%rax,%rbp), %r13
addq $0x4, %r13
cmpq %rsi, %r8
jae 0x23ba9
cmpq 0x20(%rsp), %r13
ja 0x23cd5
movq %rsi, %r15
subq %r8, %r15
movq %rdx, %rbx
subq %r15, %rbx
movq %rsi, %r12
jbe 0x23c01
movq 0x18(%rsp), %rsi
subq %r15, %rsi
movq %rbp, %rdi
movq %r15, %rdx
callq 0x63f0
addq %r15, %rbp
movq %rbp, %rax
subq %r12, %rax
cmpq %rax, %rbx
movq %r12, %rsi
jbe 0x23c16
movq %rsi, %rax
movq (%rsp), %r9
pushq $0xf
popq %r11
cmpq %r13, %rbp
jae 0x23c34
movb (%rax), %cl
incq %rax
movb %cl, (%rbp)
incq %rbp
jmp 0x23b93
cmpw $0x7, %cx
jbe 0x23c3c
movq (%r8), %rax
movq %rax, (%rbp)
addq $0x8, %r8
movq %r8, %rax
leaq 0x8(%rbp), %rcx
cmpq 0x38(%rsp), %r13
ja 0x23c82
movq (%rax), %rdi
movq %rdi, (%rcx)
cmpq $0x11, %rdx
jb 0x23aad
addq $0x10, %rbp
addq $0x8, %rax
movq (%rax), %rcx
movq %rcx, (%rbp)
addq $0x8, %rbp
addq $0x8, %rax
cmpq %r13, %rbp
jb 0x23be8
jmp 0x23aad
movq 0x18(%rsp), %rsi
subq %r15, %rsi
movq %rbp, %rdi
callq 0x6720
movq %r12, %rsi
jmp 0x23c27
movq %rbp, %rdi
movq %rbx, %rdx
movq %rsi, %rbx
callq 0x63f0
movq %rbx, %rsi
movq (%rsp), %r9
pushq $0xf
popq %r11
jmp 0x23aad
movq %rbp, %r13
jmp 0x23aad
shll $0x2, %ecx
leaq 0x815a(%rip), %rax      # 0x2bda0
movslq (%rcx,%rax), %rdi
movb (%r8), %al
movb %al, (%rbp)
movb 0x1(%r8), %al
movb %al, 0x1(%rbp)
movb 0x2(%r8), %al
movb %al, 0x2(%rbp)
movb 0x3(%r8), %al
movb %al, 0x3(%rbp)
leaq 0x8114(%rip), %rax      # 0x2bd80
movl (%rcx,%rax), %ecx
leaq (%r8,%rcx), %rax
subq %rdi, %rax
movl (%r8,%rcx), %ecx
movl %ecx, 0x4(%rbp)
jmp 0x23bc1
cmpq 0x20(%rsp), %r13
ja 0x23cd5
movq 0x30(%rsp), %r10
cmpq %r10, %rcx
jae 0x23cc4
movq %rax, %rdx
movq %rcx, %r8
movq (%rdx), %rdi
movq %rdi, (%r8)
addq $0x8, %r8
addq $0x8, %rdx
cmpq %r10, %r8
jb 0x23c99
movq %r10, %rdx
subq %rcx, %rdx
addq %rdx, %rax
movq %r10, %rcx
jmp 0x23cc4
movb (%rax), %dl
incq %rax
movb %dl, (%rcx)
incq %rcx
cmpq %r13, %rcx
jb 0x23cba
jmp 0x23aad
cmpq 0x28(%rsp), %rbp
je 0x23d0f
movq 0x8(%rsp), %rdi
notl %r14d
addl 0x10(%rsp), %r14d
jmp 0x23d2a
movq %rbp, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x63f0
addl %ebx, %r14d
subl 0x10(%rsp), %r14d
movq 0x8(%rsp), %rdi
testl %r14d, %r14d
jle 0x23d4d
movq 0x40(%rsp), %rax
movq %rax, 0x18(%rdi)
jmp 0x23d49
movq %r13, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x63f0
addl %r15d, %r14d
subl 0x10(%rsp), %r14d
movq 0x8(%rsp), %rdi
testl %r14d, %r14d
jle 0x23d4d
movq 0x10(%rdi), %rsi
movq 0x18(%rdi), %rax
movq 0x40(%rsp), %rcx
addq %rcx, %rax
movq %rax, 0x18(%rdi)
addq %rcx, %rsi
movq %rsi, %r15
movq %r15, 0x10(%rdi)
movl %r14d, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x10(%rsp), %rax
movq 0x28(%rsp), %r15
jmp 0x23a64
cmpb $0x0, (%r14)
jne 0x23d80
pushq $0x1
popq %r14
jmp 0x23d04
cmpb $0x0, (%r14)
je 0x23d86
pushq $-0x1
popq %r14
jmp 0x23d4d
pushq $0x1
popq %r14
jmp 0x23d37