// File: /workspace/github_c_makefile_star2_O1/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 $0x58, %rsp
movq %rdx, %r15
movq 0x10(%rdi), %r8
movq 0x18(%rdi), %rax
movslq %ecx, %rdx
leaq (%r15,%rdx), %r12
cmpq %r15, %r8
movq %r12, 0x10(%rsp)
movq %rdi, 0x50(%rsp)
movq %rdx, 0x48(%rsp)
movq %rsi, 0x20(%rsp)
je 0x29e74
movq %rax, 0x8(%rdi)
movq %r8, %rdx
subq %rax, %rdx
movq %rdx, (%rdi)
testl %ecx, %ecx
je 0x2a1b8
leaq -0xc(%r12), %rax
movq %rax, 0x38(%rsp)
leaq -0x8(%r12), %r9
leaq -0x7(%r12), %rax
movq %rax, 0x30(%rsp)
leaq -0x5(%r12), %rax
movq %rax, 0x18(%rsp)
leaq 0x8156(%rip), %r11      # 0x31d1c
movq %r15, %r13
movq %rsi, %r14
movq %r8, (%rsp)
movq %r9, 0x8(%rsp)
movzbl (%r14), %eax
incq %r14
movl %eax, %ebx
shrl $0x4, %ebx
cmpl $0xf, %ebx
jne 0x29bfe
movl $0xf, %ebx
movzbl (%r14), %ecx
incq %r14
addq %rcx, %rbx
cmpq $0xff, %rcx
je 0x29beb
leaq (%rbx,%r13), %rbp
cmpq %r9, %rbp
jbe 0x29c43
movl $0x6, %eax
cmpq %r12, %rbp
jne 0x29dbd
movq %r13, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x6400
leaq 0x80f2(%rip), %r11      # 0x31d1c
movq 0x8(%rsp), %r9
movq (%rsp), %r8
addq %rbx, %r14
movl $0x3, %eax
movq %rbp, %r13
jmp 0x29dbd
movq %r14, %rcx
movq (%rcx), %rdx
movq %rdx, (%r13)
addq $0x8, %r13
addq $0x8, %rcx
cmpq %rbp, %r13
jb 0x29c46
addq %rbx, %r14
addq $0x2, %r14
movzwl -0x2(%r14), %edi
movl %edi, (%rbp)
andl $0xf, %eax
cmpq $0xf, %rax
jne 0x29c8a
movl $0xf, %eax
movzbl (%r14), %ecx
incq %r14
addq %rcx, %rax
cmpq $0xff, %rcx
je 0x29c77
movq %rbp, %rsi
subq %rdi, %rsi
leaq 0x4(%rax), %rdx
leaq (%rax,%rbp), %r13
addq $0x4, %r13
cmpq %r15, %rsi
jae 0x29d27
cmpq 0x18(%rsp), %r13
ja 0x29ddf
movq %r15, %r12
subq %rsi, %r12
movq %rdx, %rbx
subq %r12, %rbx
jbe 0x29d77
movq %rdx, 0x28(%rsp)
subq %r12, %r8
movq %rbp, %rdi
movq %r8, %rsi
movq %r12, %rdx
callq 0x6400
addq %r12, %rbp
movq %rbp, %rax
subq %r15, %rax
cmpq %rax, %rbx
jbe 0x29d95
movl $0x2, %eax
cmpq %r12, 0x28(%rsp)
movq 0x8(%rsp), %r9
leaq 0x801c(%rip), %r11      # 0x31d1c
jle 0x29dd1
movq %r15, %rcx
movq 0x10(%rsp), %r12
movq (%rsp), %r8
movb (%rcx), %dl
incq %rcx
movb %dl, (%rbp)
incq %rbp
cmpq %r13, %rbp
jb 0x29d12
jmp 0x29c3b
cmpw $0x7, %di
jbe 0x29de9
movq (%rsi), %rax
movq %rax, (%rbp)
addq $0x8, %rsi
leaq 0x8(%rbp), %rcx
cmpq 0x38(%rsp), %r13
ja 0x29e16
movq (%rsi), %rax
movq %rax, (%rcx)
cmpq $0x11, %rdx
jb 0x29d73
addq $0x10, %rbp
addq $0x8, %rsi
movq (%rsi), %rax
movq %rax, (%rbp)
addq $0x8, %rbp
addq $0x8, %rsi
cmpq %r13, %rbp
jb 0x29d5f
xorl %eax, %eax
jmp 0x29dbd
subq %r12, %r8
movq %rbp, %rdi
movq %r8, %rsi
callq 0x6730
movq (%rsp), %r8
movl $0x2, %eax
movq 0x10(%rsp), %r12
jmp 0x29db1
movq %rbp, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x6400
movl $0x2, %eax
movq 0x10(%rsp), %r12
movq (%rsp), %r8
movq 0x8(%rsp), %r9
leaq 0x7f5f(%rip), %r11      # 0x31d1c
cmpl $0x6, %eax
ja 0x2a151
movl %eax, %eax
movslq (%r11,%rax,4), %rax
addq %r11, %rax
jmpq *%rax
movq %rbp, %r13
movq 0x10(%rsp), %r12
movq (%rsp), %r8
jmp 0x29dbd
movl $0x6, %eax
jmp 0x29c3b
movq %rdx, %rbx
movq %rbp, %rdx
leaq 0x40(%rsp), %rcx
callq 0x6bf3
movq %rbx, %rdx
leaq 0x7f19(%rip), %r11      # 0x31d1c
movq 0x8(%rsp), %r9
movq (%rsp), %r8
movq 0x40(%rsp), %rsi
jmp 0x29d3c
movl $0x6, %eax
cmpq 0x18(%rsp), %r13
jbe 0x29e32
cmpq 0x18(%rsp), %r13
jbe 0x29d73
movq %rcx, %r13
jmp 0x29dbd
movq 0x30(%rsp), %r10
cmpq %r10, %rcx
jae 0x29e61
movq %rsi, %rax
movq %rcx, %rdx
movq (%rax), %rdi
movq %rdi, (%rdx)
addq $0x8, %rdx
addq $0x8, %rax
cmpq %r10, %rdx
jb 0x29e42
movq %r10, %rax
subq %rcx, %rax
addq %rax, %rsi
movq %r10, %rcx
xorl %eax, %eax
cmpq %r13, %rcx
jae 0x29e22
movb (%rsi), %dl
incq %rsi
movb %dl, (%rcx)
incq %rcx
jmp 0x29e63
testl %ecx, %ecx
je 0x2a1c7
movq (%rdi), %rcx
addq 0x8(%rdi), %rcx
movq %rcx, 0x28(%rsp)
subq %rax, %r8
leaq -0xc(%r12), %rax
movq %rax, 0x38(%rsp)
leaq -0x8(%r12), %r9
leaq -0x7(%r12), %rax
movq %rax, 0x30(%rsp)
leaq -0x5(%r12), %rax
movq %rax, 0x18(%rsp)
leaq 0x7e83(%rip), %r11      # 0x31d38
movq %rsi, %r14
movq %r8, (%rsp)
movq %r9, 0x8(%rsp)
movzbl (%r14), %eax
incq %r14
movl %eax, %ebx
shrl $0x4, %ebx
cmpl $0xf, %ebx
jne 0x29eea
movl $0xf, %ebx
movzbl (%r14), %ecx
incq %r14
addq %rcx, %rbx
cmpq $0xff, %rcx
je 0x29ed7
leaq (%r15,%rbx), %rbp
cmpq %r9, %rbp
jbe 0x29f2f
movl $0x6, %eax
cmpq %r12, %rbp
jne 0x2a0a4
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x6400
leaq 0x7e22(%rip), %r11      # 0x31d38
movq 0x8(%rsp), %r9
movq (%rsp), %r8
addq %rbx, %r14
movl $0x3, %eax
movq %rbp, %r15
jmp 0x2a0a4
movq %r14, %rcx
movq (%rcx), %rdx
movq %rdx, (%r15)
addq $0x8, %r15
addq $0x8, %rcx
cmpq %rbp, %r15
jb 0x29f32
addq %rbx, %r14
addq $0x2, %r14
movzwl -0x2(%r14), %edi
movl %edi, (%rbp)
andl $0xf, %eax
cmpq $0xf, %rax
jne 0x29f75
movl $0xf, %eax
movzbl (%r14), %ecx
incq %r14
addq %rcx, %rax
cmpq $0xff, %rcx
je 0x29f62
movq %rbp, %rsi
subq %rdi, %rsi
leaq 0x4(%rax), %r13
leaq (%rax,%rbp), %r15
addq $0x4, %r15
cmpq %r8, %rsi
jae 0x2a009
cmpq 0x18(%rsp), %r15
ja 0x2a0c2
movq %r8, %rbx
subq %rsi, %rbx
movq %r13, %r12
subq %rbx, %r12
jbe 0x2a059
movq 0x28(%rsp), %rsi
subq %rbx, %rsi
movq %rbp, %rdi
movq %rbx, %rdx
callq 0x6400
addq %rbx, %rbp
movq %rbp, %rax
movq (%rsp), %r8
subq %r8, %rax
cmpq %rax, %r12
jbe 0x2a07c
movl $0x2, %eax
cmpq %rbx, %r13
movq 0x8(%rsp), %r9
leaq 0x7d52(%rip), %r11      # 0x31d38
jle 0x2a0b8
movq %r8, %rcx
movq 0x10(%rsp), %r12
movb (%rcx), %dl
incq %rcx
movb %dl, (%rbp)
incq %rbp
cmpq %r15, %rbp
jb 0x29ff4
jmp 0x29f27
cmpw $0x7, %di
jbe 0x2a0cc
movq (%rsi), %rax
movq %rax, (%rbp)
addq $0x8, %rsi
leaq 0x8(%rbp), %rcx
cmpq 0x38(%rsp), %r15
ja 0x2a0f3
movq (%rsi), %rax
movq %rax, (%rcx)
cmpq $0x11, %r13
jb 0x2a055
addq $0x10, %rbp
addq $0x8, %rsi
movq (%rsi), %rax
movq %rax, (%rbp)
addq $0x8, %rbp
addq $0x8, %rsi
cmpq %r15, %rbp
jb 0x2a041
xorl %eax, %eax
jmp 0x2a0a4
movq 0x28(%rsp), %rsi
subq %rbx, %rsi
movq %rbp, %rdi
movq %r13, %rdx
callq 0x6730
movl $0x2, %eax
movq 0x10(%rsp), %r12
movq (%rsp), %r8
jmp 0x2a098
movq %rbp, %rdi
movq %r8, %rsi
movq %r12, %rdx
callq 0x6400
movq (%rsp), %r8
movl $0x2, %eax
movq 0x10(%rsp), %r12
movq 0x8(%rsp), %r9
leaq 0x7c94(%rip), %r11      # 0x31d38
cmpl $0x6, %eax
ja 0x2a177
movl %eax, %eax
movslq (%r11,%rax,4), %rax
addq %r11, %rax
jmpq *%rax
movq %rbp, %r15
movq 0x10(%rsp), %r12
jmp 0x2a0a4
movl $0x6, %eax
jmp 0x29f27
movq %rbp, %rdx
leaq 0x40(%rsp), %rcx
callq 0x6c38
leaq 0x7c58(%rip), %r11      # 0x31d38
movq 0x8(%rsp), %r9
movq (%rsp), %r8
movq 0x40(%rsp), %rsi
jmp 0x2a01e
movl $0x6, %eax
cmpq 0x18(%rsp), %r15
jbe 0x2a10f
cmpq 0x18(%rsp), %r15
jbe 0x2a055
movq %rcx, %r15
jmp 0x2a0a4
movq 0x30(%rsp), %r10
cmpq %r10, %rcx
jae 0x2a13e
movq %rsi, %rax
movq %rcx, %rdx
movq (%rax), %rdi
movq %rdi, (%rdx)
addq $0x8, %rdx
addq $0x8, %rax
cmpq %r10, %rdx
jb 0x2a11f
movq %r10, %rax
subq %rcx, %rax
addq %rax, %rsi
movq %r10, %rcx
xorl %eax, %eax
cmpq %r15, %rcx
jae 0x2a0ff
movb (%rsi), %dl
incq %rsi
movb %dl, (%rcx)
incq %rcx
jmp 0x2a140
jmp 0x2a162
notl %r14d
addl 0x20(%rsp), %r14d
jmp 0x2a162
subl 0x20(%rsp), %r14d
testl %r14d, %r14d
jle 0x2a1a6
movq 0x50(%rsp), %rax
movq 0x48(%rsp), %rcx
movq %rcx, 0x18(%rax)
jmp 0x2a1a2
jmp 0x2a188
notl %r14d
addl 0x20(%rsp), %r14d
jmp 0x2a188
subl 0x20(%rsp), %r14d
testl %r14d, %r14d
jle 0x2a1a6
movq 0x50(%rsp), %rax
movq 0x48(%rsp), %rcx
addq %rcx, 0x18(%rax)
addq 0x10(%rax), %rcx
movq %rcx, %r12
movq %r12, 0x10(%rax)
movl %r14d, %eax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %r14d, %r14d
cmpb (%rsi), %r14b
sbbl %r14d, %r14d
orl $0x1, %r14d
jmp 0x2a162
xorl %r14d, %r14d
cmpb (%rsi), %r14b
sbbl %r14d, %r14d
orl $0x1, %r14d
jmp 0x2a188