// File: /workspace/github_c_makefile_star2_O1/Aethlas[P]fflz4/./lib/lz4/lz4.c
// Function: LZ4_decompress_safe_partial
LZ4_FORCE_O2_GCC_PPC64LE
int LZ4_decompress_safe_partial(const char* src, char* dst, int compressedSize, int targetOutputSize, int dstCapacity)
{
    dstCapacity = MIN(targetOutputSize, dstCapacity);
    return LZ4_decompress_generic(src, dst, compressedSize, dstCapacity,
                                  endOnInputSize, partial_decode,
                                  noDict, (BYTE*)dst, NULL, 0);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
cmpl %r8d, %ecx
cmovll %ecx, %r8d
pushq $-0x1
popq %rax
movq %rdi, 0x30(%rsp)
testq %rdi, %rdi
je 0x209f
testl %r8d, %r8d
je 0x1d9b
testl %edx, %edx
je 0x209f
movq %rsi, %r11
movslq %edx, %rax
movq 0x30(%rsp), %r15
leaq (%r15,%rax), %r9
movslq %r8d, %rcx
leaq (%rsi,%rcx), %r10
addq %r15, %rax
addq $-0x10, %rax
leaq (%rsi,%rcx), %rbx
addq $-0x20, %rbx
movq %rsi, %r12
cmpl $0x40, %r8d
movq %rax, %r8
movq %rsi, 0x10(%rsp)
movq %r9, 0x20(%rsp)
movq %r10, 0x28(%rsp)
movq %rax, 0x8(%rsp)
movq %rbx, 0x18(%rsp)
jl 0x207b
leaq -0x11(%r9), %rax
movq %rax, 0x60(%rsp)
leaq -0xf(%r9), %rdi
leaq -0x20(%r10), %rax
movq %rax, 0x50(%rsp)
leaq -0x20(%r9), %rax
movq %rax, 0x48(%rsp)
leaq -0x40(%r10), %rax
movq %rax, 0x40(%rsp)
leaq -0x4(%r9), %rbx
movq 0x30(%rsp), %r15
movq %r11, %r12
movq %rdi, 0x38(%rsp)
movq %rbx, 0x58(%rsp)
movzbl (%r15), %r13d
incq %r15
movl %r13d, %eax
shrl $0x4, %eax
cmpl $0xf, %eax
jne 0x1bb0
movq %r15, %rcx
pushq $0xf
popq %rbp
cmpq %rdi, %r15
jae 0x1b75
xorl %eax, %eax
movq %r15, %rcx
movb (%rcx), %dl
movzbl %dl, %edx
incq %rcx
addl %edx, %eax
cmpq %rdi, %rcx
setb %sil
cmpb $-0x1, %dl
sete %dl
testb %dl, %sil
jne 0x1b53
movl %eax, %ebp
addq $0xf, %rbp
movq %r12, %rbx
addq %rbp, %rbx
setb %dl
movq %rcx, %rax
addq %rbp, %rax
setb %sil
cmpq %rdi, %r15
jae 0x1bd0
testb %dl, %dl
jne 0x1bd0
testb %sil, %sil
jne 0x1bd0
cmpq 0x50(%rsp), %rbx
ja 0x1ba8
cmpq 0x48(%rsp), %rax
jbe 0x1d0b
movq %rcx, %rax
pushq $0x6
popq %rcx
jmp 0x1bd9
leaq (%r12,%rax), %r14
cmpq 0x60(%rsp), %r15
ja 0x1d90
movups (%r15), %xmm0
movups %xmm0, (%r12)
addq %r15, %rax
movq %r14, %rdi
jmp 0x1bec
movq %rcx, %rax
pushq $0x5
popq %rcx
movq %r14, %rbx
testl %ecx, %ecx
jne 0x1d63
movq %rbx, %r14
movq %r12, %rdi
movq 0x58(%rsp), %rbx
movzwl (%rax), %ecx
movq %rax, %r15
addq $0x2, %r15
movq %rdi, %rsi
subq %rcx, %rsi
andl $0xf, %r13d
cmpq $0xf, %r13
jne 0x1c71
cmpq %r11, %rsi
jb 0x1d57
xorl %eax, %eax
movb (%r15), %dl
movzbl %dl, %edx
incq %r15
addl %edx, %eax
cmpq %rbx, %r15
setae %r8b
cmpb $-0x1, %dl
setne %dl
orb %r8b, %dl
cmpb $0x1, %dl
jne 0x1c11
movl %eax, %eax
leaq 0xf(%rax), %r14
movq %rdi, %rdx
addq %r14, %rdx
setb %dl
cmpq %rbx, %r15
jae 0x1cbd
testb %dl, %dl
movq 0x8(%rsp), %r8
jne 0x1cb8
leaq (%rdi,%rax), %rdx
addq $0x13, %rdx
addq $0x13, %rax
cmpq 0x40(%rsp), %rdx
pushq $0x7
popq %rdx
movl $0x0, %r14d
cmovbl %r14d, %edx
movq %rax, %r14
jmp 0x1cc5
leaq (%rdi,%r13), %r12
addq $0x4, %r12
addq $0x4, %r13
cmpq 0x40(%rsp), %r12
jae 0x1fbe
cmpq %r11, %rsi
jb 0x1cb3
cmpw $0x8, %cx
jb 0x1cb3
movq (%rsi), %rax
movq %rax, (%rdi)
movq 0x8(%rsi), %rax
movq %rax, 0x8(%rdi)
movzwl 0x10(%rsi), %eax
movw %ax, 0x10(%rdi)
movq 0x38(%rsp), %rdi
jmp 0x1b31
movq %r13, %r14
jmp 0x1ccd
pushq $0x5
popq %rdx
jmp 0x1cc5
pushq $0x5
popq %rdx
movq 0x8(%rsp), %r8
testl %edx, %edx
jne 0x1d7d
cmpq %r11, %rsi
jb 0x1da2
addq %rdi, %r14
cmpw $0x10, %cx
jb 0x1d39
pushq $0x10
popq %rax
subq %rcx, %rax
movups -0x10(%rdi,%rax), %xmm0
movups %xmm0, (%rdi)
movups (%rdi,%rax), %xmm0
movups %xmm0, 0x10(%rdi)
addq $0x20, %rdi
cmpq %r14, %rdi
jb 0x1ce5
movq %r14, %r12
movq 0x38(%rsp), %rdi
jmp 0x1b31
xorl %edx, %edx
movups (%rcx,%rdx), %xmm0
leaq (%r12,%rdx), %rsi
addq $0x20, %rsi
movups %xmm0, -0x20(%rsi)
movups 0x10(%rcx,%rdx), %xmm0
movups %xmm0, -0x10(%rsi)
addq $0x20, %rdx
cmpq %rbx, %rsi
jb 0x1d0d
xorl %ecx, %ecx
movq %rbx, %r12
jmp 0x1bd9
movq %r14, %rdx
callq 0x104a4
movq 0x8(%rsp), %r8
movq 0x28(%rsp), %r10
movq 0x20(%rsp), %r9
movq 0x10(%rsp), %r11
jmp 0x1cfe
pushq $0x5
popq %rdx
pushq $0xf
popq %r14
jmp 0x1cc5
cmpl $0x5, %ecx
je 0x208c
movq %rax, %r15
cmpl $0x6, %ecx
je 0x1eaf
jmp 0x209f
cmpl $0x5, %edx
je 0x1da2
cmpl $0x7, %edx
je 0x1fc1
jmp 0x209f
movq %rax, %rbp
movq %r14, %rbx
jmp 0x1eaf
xorl %eax, %eax
jmp 0x209f
movq %r15, %rax
jmp 0x208c
movl %r13d, %eax
shrl $0x4, %eax
cmpl $0xf, %eax
je 0x1e41
movl %eax, %ebp
cmpq %r8, %r15
jae 0x20ae
cmpq %rbx, %r12
ja 0x20ae
movups (%r15), %xmm0
movups %xmm0, (%r12)
addq %rbp, %r12
andl $0xf, %r13d
leaq (%r15,%rbp), %rax
addq $0x2, %rax
movzwl -0x2(%rax), %edx
movzwl %dx, %ecx
movq %r12, %rsi
subq %rcx, %rsi
cmpl $0xf, %r13d
je 0x1f4d
cmpw $0x8, %dx
jb 0x1f4d
cmpq %r11, %rsi
jb 0x1f4d
addq %rbp, %r15
movq (%rsi), %rax
movq %rax, (%r12)
movq 0x8(%rsi), %rax
movq %rax, 0x8(%r12)
movzwl 0x10(%rsi), %eax
movw %ax, 0x10(%r12)
addq %r13, %r12
addq $0x4, %r12
movzbl 0x2(%r15), %r13d
addq $0x3, %r15
jmp 0x1daa
leaq -0xf(%r9), %rcx
pushq $0xf
popq %rbp
movq %r15, %rax
cmpq %rcx, %r15
jae 0x1e7b
xorl %edx, %edx
movq %r15, %rax
movb (%rax), %sil
movzbl %sil, %esi
incq %rax
addl %esi, %edx
cmpq %rcx, %rax
setb %dil
cmpb $-0x1, %sil
sete %sil
testb %sil, %dil
jne 0x1e55
movl %edx, %ebp
addq $0xf, %rbp
movq %r12, %rdx
addq %rbp, %rdx
setb %dl
movq %rax, %rsi
addq %rbp, %rsi
setb %sil
cmpq %rcx, %r15
jae 0x208c
testb %dl, %dl
jne 0x208c
testb %sil, %sil
jne 0x208c
leaq (%r12,%rbp), %rbx
movq %rax, %r15
leaq -0xc(%r10), %rdx
leaq (%r15,%rbp), %rax
leaq -0x8(%r9), %rcx
cmpq %rdx, %rbx
ja 0x1ede
cmpq %rcx, %rax
ja 0x1ede
movq (%r15), %rcx
movq %rcx, (%r12)
addq $0x8, %r12
addq $0x8, %r15
cmpq %rbx, %r12
jb 0x1ec5
movq %rbx, %r12
jmp 0x1f3c
cmpq %rcx, %rax
seta %cl
cmpq %r9, %rax
setne %al
testb %al, %cl
jne 0x1da2
movq %r10, %rax
subq %r12, %rax
cmpq %r10, %rbx
cmovaq %rax, %rbp
movq %r12, %rdi
movq %r15, %rsi
movq %rbp, %rdx
callq 0x1190
movq 0x28(%rsp), %r10
addq %rbp, %r12
cmpq %r10, %rbx
jae 0x2094
addq %rbp, %r15
movq %r15, %rax
movq 0x20(%rsp), %r9
cmpq %r9, %r15
movq 0x10(%rsp), %r11
movq 0x8(%rsp), %r8
je 0x2099
movzwl (%rax), %ecx
addq $0x2, %rax
movq %r12, %rsi
subq %rcx, %rsi
andl $0xf, %r13d
movq %r12, %rdi
cmpl $0xf, %r13d
jne 0x1fb7
leaq -0x4(%r9), %rdx
xorl %r8d, %r8d
movb (%rax), %r9b
movzbl %r9b, %r9d
incq %rax
addl %r9d, %r8d
cmpq %rdx, %rax
setb %r10b
cmpb $-0x1, %r9b
sete %r9b
testb %r9b, %r10b
jne 0x1f5d
movl %r8d, %r13d
addq $0xf, %r13
xorl %r8d, %r8d
movq %rdi, %r9
addq %r13, %r9
setb %r8b
cmpq %rdx, %rax
leal (%r8,%r8,4), %r8d
pushq $0x5
popq %rdx
cmovbl %r8d, %edx
testl %edx, %edx
jne 0x2087
movq 0x20(%rsp), %r9
movq 0x28(%rsp), %r10
movq 0x8(%rsp), %r8
addq $0x4, %r13
movq %rax, %r15
movq %r13, %r14
cmpq %r11, %rsi
jb 0x1da2
leaq (%rdi,%r14), %r12
leaq -0xc(%r10), %rax
cmpq %rax, %r12
jbe 0x200c
movq %r10, %rdx
subq %rdi, %rdx
cmpq %rdx, %r14
cmovbq %r14, %rdx
leaq (%rsi,%rdx), %rax
leaq (%rdi,%rdx), %r12
cmpq %rdi, %rax
jbe 0x2051
testq %rdx, %rdx
movq 0x18(%rsp), %rbx
jle 0x206f
movb (%rsi), %al
incq %rsi
movb %al, (%rdi)
incq %rdi
cmpq %r12, %rdi
jb 0x1ffb
jmp 0x206f
cmpl $0x7, %ecx
jbe 0x20b6
movq (%rsi), %rax
movq %rax, (%rdi)
addq $0x8, %rsi
movq %rsi, %rax
movq (%rax), %rcx
movq %rcx, 0x8(%rdi)
cmpq $0x11, %r14
jb 0x2076
addq $0x10, %rdi
addq $0x8, %rax
movq 0x18(%rsp), %rbx
movq (%rax), %rcx
movq %rcx, (%rdi)
addq $0x8, %rdi
addq $0x8, %rax
cmpq %r12, %rdi
jb 0x203c
jmp 0x207b
callq 0x1140
movq 0x8(%rsp), %r8
movq 0x28(%rsp), %r10
movq 0x20(%rsp), %r9
movq 0x10(%rsp), %r11
movq 0x18(%rsp), %rbx
cmpq %r10, %r12
jne 0x207b
jmp 0x2099
movq 0x18(%rsp), %rbx
movzbl (%r15), %r13d
incq %r15
jmp 0x1daa
cmpl $0x5, %edx
jne 0x209f
notl %eax
addl 0x30(%rsp), %eax
jmp 0x209f
movq 0x10(%rsp), %r11
subl %r11d, %r12d
movl %r12d, %eax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r15, %rax
jmp 0x1ea8
andl $0x0, (%rdi)
movb (%rsi), %al
movb %al, (%rdi)
movb 0x1(%rsi), %al
movb %al, 0x1(%rdi)
movb 0x2(%rsi), %al
movb %al, 0x2(%rdi)
movb 0x3(%rsi), %al
movb %al, 0x3(%rdi)
shll $0x2, %ecx
leaq 0x122b7(%rip), %rax     # 0x14390
movl (%rcx,%rax), %edx
leaq (%rsi,%rdx), %rax
movl (%rsi,%rdx), %edx
movl %edx, 0x4(%rdi)
leaq 0x122c3(%rip), %rdx     # 0x143b0
movslq (%rcx,%rdx), %rcx
subq %rcx, %rax
jmp 0x2022