// File: /workspace/github_c_makefile_star2_O1/kieselsteini[P]PiXL-old/lz4.c
// Function: LZ4_compress_forceExtDict
int LZ4_compress_forceExtDict (LZ4_stream_t* LZ4_dict, const char* source, char* dest, int inputSize)
{
    LZ4_stream_t_internal* streamPtr = &LZ4_dict->internal_donotuse;
    int result;
    const BYTE* const dictEnd = streamPtr->dictionary + streamPtr->dictSize;

    const BYTE* smallest = dictEnd;
    if (smallest > (const BYTE*) source) smallest = (const BYTE*) source;
    LZ4_renormDictT(streamPtr, smallest);

    result = LZ4_compress_generic(streamPtr, source, dest, inputSize, 0, notLimited, byU32, usingExtDict, noDictIssue, 1);

    streamPtr->dictionary = (const BYTE*)source;
    streamPtr->dictSize = (U32)inputSize;
    streamPtr->currentOffset += (U32)inputSize;

    return result;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movl %ecx, %r14d
movq %rdx, %r12
movq %rsi, %r15
movq %rdi, %rbx
movl 0x4018(%rdi), %esi
addq 0x4008(%rdi), %rsi
cmpq %r15, %rsi
cmovaq %r15, %rsi
callq 0x2841c
movq %r15, %r10
movq %rbx, %r9
xorl %r15d, %r15d
cmpl $0x7e000000, %r14d      # imm = 0x7E000000
ja 0x28a25
movslq %r14d, %rbx
movq %r12, 0x8(%rsp)
movq %r10, %rbp
cmpl $0xd, %r14d
movq %r9, 0x40(%rsp)
movq %r10, 0x28(%rsp)
jl 0x28981
movl %r14d, 0x1c(%rsp)
movl 0x4018(%r9), %eax
movq 0x4008(%r9), %r11
addq %r11, %rax
movq %rax, 0x70(%rsp)
subq %r10, %rax
movq %rax, 0x58(%rsp)
leaq (%r10,%rbx), %rax
addq $-0xc, %rax
movq %rax, 0x48(%rsp)
movq %rbx, 0x60(%rsp)
leaq -0x5(%r10,%rbx), %rax
movq %rax, 0x30(%rsp)
movl 0x4000(%r9), %eax
movq %r10, %rcx
subq %rax, %rcx
movq %rcx, 0x50(%rsp)
movabsq $-0x30e4432345000000, %rdx # imm = 0xCF1BBCDCBB000000
movq (%r10), %rcx
imulq %rdx, %rcx
shrq $0x34, %rcx
movl %eax, (%r9,%rcx,4)
leaq 0x1(%r10), %rbx
movq %r12, %r13
movq 0x1(%r10), %r12
imulq %rdx, %r12
shrq $0x34, %r12
movq %r13, 0x68(%rsp)
movq %r13, 0x8(%rsp)
movq %r10, %rbp
movq %r10, %r14
movq %r11, 0x38(%rsp)
movl $0x40, %ecx
movl $0x1, %edx
xorl %r15d, %r15d
movq %r13, %rax
movl %edx, %esi
addq %rbx, %rsi
cmpq 0x48(%rsp), %rsi
ja 0x28621
movl %r12d, %edi
movl (%r9,%rdi,4), %eax
movq 0x50(%rsp), %r13
addq %r13, %rax
xorl %edx, %edx
cmpq %r10, %rax
movl $0x0, %r15d
cmovbq 0x58(%rsp), %r15
movq %r10, %r14
cmovbq %r11, %r14
movq (%rsi), %r12
movabsq $-0x30e4432345000000, %r8 # imm = 0xCF1BBCDCBB000000
imulq %r8, %r12
shrq $0x34, %r12
movl %ebx, %r8d
subl %r13d, %r8d
movl %r8d, (%r9,%rdi,4)
cmpq 0x48(%rsp), %rsi
ja 0x2862a
leaq 0xffff(%rax), %rdx
cmpq %rbx, %rdx
jb 0x28615
movl (%rax,%r15), %edx
cmpl (%rbx), %edx
je 0x28628
movl %ecx, %edx
shrl $0x6, %edx
incl %ecx
movq %rsi, %rbx
jmp 0x285a8
movl $0x3, %edx
jmp 0x285fa
xorl %edx, %edx
testl %edx, %edx
je 0x28636
movq %rax, %r13
jmp 0x2895e
cmpq %rbp, %rbx
jbe 0x2868c
leaq (%rax,%r15), %rcx
cmpq %r14, %rcx
movq 0x8(%rsp), %r8
jbe 0x28687
leaq -0x1(%r15), %rcx
decq %rbx
movq %rbx, %rdx
movb (%rdx), %sil
cmpb (%rax,%rcx), %sil
jne 0x2867c
leaq -0x1(%rax), %r13
leaq -0x1(%rdx), %rbx
cmpq %rbp, %rdx
jbe 0x28677
addq %rcx, %rax
movq %rbx, %rdx
cmpq %r14, %rax
movq %r13, %rax
ja 0x28653
incq %rbx
jmp 0x28694
incq %rdx
movq %rax, %r13
movq %rdx, %rbx
jmp 0x28694
movq %rax, %r13
jmp 0x28694
movq %rax, %r13
movq 0x8(%rsp), %r8
movq %rbx, %rcx
subq %rbp, %rcx
leaq 0x1(%r8), %rdi
cmpl $0xf, %ecx
movq 0x30(%rsp), %rdx
jb 0x28731
leal -0xf(%rcx), %eax
movb $-0x10, (%r8)
cmpl $0xff, %eax
jl 0x2872a
movq %rcx, 0x10(%rsp)
movl $0x1fd, %ecx            # imm = 0x1FD
cmpl %ecx, %eax
cmovgel %ecx, %eax
addl %ebp, %eax
negl %eax
leal (%rbx,%rax), %ecx
addl $0xef, %ecx
movl $0x80808081, %eax       # imm = 0x80808081
imulq %rax, %rcx
shrq $0x27, %rcx
movq %rcx, 0x20(%rsp)
leal 0x1(%rcx), %edx
movl $0xff, %esi
callq 0x62e0
movq 0x8(%rsp), %r8
movq 0x30(%rsp), %rdx
movq 0x38(%rsp), %r11
movq 0x20(%rsp), %rsi
movl %esi, %eax
shll $0x8, %eax
movl %esi, %ecx
subl %eax, %ecx
leaq (%r8,%rsi), %rdi
addq $0x2, %rdi
movl %ebx, %eax
subl %ebp, %eax
addl %ecx, %eax
addl $0xfffffef2, %eax       # imm = 0xFFFFFEF2
movq 0x10(%rsp), %rcx
movb %al, (%rdi)
incq %rdi
jmp 0x28739
movl %ecx, %eax
shlb $0x4, %al
movb %al, (%r8)
movl %ecx, %ecx
addq %rdi, %rcx
movq (%rbp), %rax
movq %rax, (%rdi)
addq $0x8, %rdi
addq $0x8, %rbp
cmpq %rcx, %rdi
jb 0x2873e
movq %r8, 0x10(%rsp)
movq %rbx, %rbp
movl %ebp, %eax
subl %r13d, %eax
movq %rcx, 0x8(%rsp)
movw %ax, (%rcx)
cmpq %r11, %r14
je 0x28788
leaq 0x4(%rbp), %rdi
leaq 0x4(%r13), %rsi
callq 0x2c1ce
movl %eax, %ebx
addl $0x4, %eax
addq %rax, %rbp
movq %r13, 0x20(%rsp)
jmp 0x287e1
leaq (%r15,%r13), %rcx
movq %r13, %rax
movq 0x70(%rsp), %r13
movq %rcx, 0x20(%rsp)
subq %rcx, %r13
addq %rbp, %r13
cmpq %rdx, %r13
cmovaq %rdx, %r13
leaq 0x4(%rbp), %rdi
leaq (%rax,%r15), %rsi
addq $0x4, %rsi
movq %rdx, %r15
movq %r13, %rdx
callq 0x2c1ce
movl %eax, %ebx
leal 0x4(%rbx), %eax
addq %rax, %rbp
cmpq %r13, %rbp
jne 0x287e1
movq %rbp, %rdi
movq 0x28(%rsp), %rsi
movq %r15, %rdx
callq 0x2c1ce
addl %eax, %ebx
movl %eax, %eax
addq %rax, %rbp
movq 0x8(%rsp), %r13
leaq 0x2(%r13), %rsi
movq 0x10(%rsp), %rdx
movb (%rdx), %al
cmpl $0xf, %ebx
movq 0x40(%rsp), %r9
jb 0x2888a
addb $0xf, %al
movb %al, (%rdx)
leal -0xf(%rbx), %eax
movl $0xffffffff, (%rsi)     # imm = 0xFFFFFFFF
cmpl $0x3fc, %eax            # imm = 0x3FC
jb 0x28869
leaq 0x6(%r13), %rdi
addl $0xfffffbf5, %ebx       # imm = 0xFFFFFBF5
movq %rbx, %r15
movl $0x80808081, %eax       # imm = 0x80808081
imulq %rax, %r15
shrq $0x29, %r15
leal (,%r15,4), %eax
movq %rax, 0x10(%rsp)
leal 0x4(,%r15,4), %edx
movl $0xff, %esi
callq 0x62e0
movq 0x40(%rsp), %r9
imull $0x3fc, %r15d, %eax     # imm = 0x3FC
subl %eax, %ebx
movq 0x10(%rsp), %rax
leaq (%rax,%r13), %rsi
addq $0x6, %rsi
movl %ebx, %eax
movl %eax, %ecx
movl $0x80808081, %edx       # imm = 0x80808081
imulq %rdx, %rcx
shrq $0x27, %rcx
addl %ecx, %eax
addq %rcx, %rsi
incq %rsi
movq %rsi, 0x8(%rsp)
movb %al, -0x1(%rsi)
jmp 0x28893
movq %rsi, 0x8(%rsp)
addb %bl, %al
movb %al, (%rdx)
movq 0x28(%rsp), %r10
movq 0x38(%rsp), %r11
cmpq 0x48(%rsp), %rbp
ja 0x28951
leaq -0x2(%rbp), %rax
movq -0x2(%rbp), %rcx
movabsq $-0x30e4432345000000, %rdx # imm = 0xCF1BBCDCBB000000
imulq %rdx, %rcx
shrq $0x34, %rcx
movq 0x50(%rsp), %rsi
subl %esi, %eax
movl %eax, (%r9,%rcx,4)
movq (%rbp), %rax
imulq %rdx, %rax
shrq $0x34, %rax
movl (%r9,%rax,4), %ecx
leaq (%rsi,%rcx), %r13
cmpq %r10, %r13
movl $0x0, %r15d
cmovbq 0x58(%rsp), %r15
movq %r10, %r14
cmovbq %r11, %r14
movl %ebp, %edx
subl %esi, %edx
movl %edx, (%r9,%rax,4)
leaq (%rsi,%rcx), %rax
addq $0xffff, %rax           # imm = 0xFFFF
cmpq %rbp, %rax
jb 0x28933
movl (%r13,%r15), %eax
cmpl (%rbp), %eax
jne 0x28933
movq 0x8(%rsp), %rax
leaq 0x1(%rax), %rcx
movb $0x0, (%rax)
movq %rax, 0x10(%rsp)
movq 0x30(%rsp), %rdx
jmp 0x2875a
leaq 0x1(%rbp), %rbx
movq 0x1(%rbp), %r12
movabsq $-0x30e4432345000000, %rax # imm = 0xCF1BBCDCBB000000
imulq %rax, %r12
shrq $0x34, %r12
xorl %edx, %edx
jmp 0x2895e
movl $0x4, %edx
movq 0x20(%rsp), %r13
movq %rbp, %rbx
testl %edx, %edx
je 0x28598
addl $-0x3, %edx
cmpl $0x1, %edx
ja 0x28a4c
movl 0x1c(%rsp), %r14d
movq 0x68(%rsp), %r12
movq 0x60(%rsp), %rbx
addq %r10, %rbx
subq %rbp, %rbx
cmpq $0xf, %rbx
jb 0x289f8
leaq -0xf(%rbx), %rax
movq 0x8(%rsp), %r8
movb $-0x10, (%r8)
leaq 0x1(%r8), %rdi
cmpq $0xff, %rax
jb 0x289f4
leaq -0x10e(%rbx), %rax
movabsq $-0x7f7f7f7f7f7f7f7f, %rcx # imm = 0x8080808080808081
mulq %rcx
movq %rbx, %r15
movq %rdx, %rbx
shrq $0x7, %rbx
leaq 0x1(%rbx), %rdx
movl $0xff, %esi
movq %r8, %r13
callq 0x62e0
movq %rbx, %rax
shlq $0x8, %rax
leaq (%rbx,%r13), %rdi
addq $0x2, %rdi
subq %rax, %rbx
leaq (%r15,%rbx), %rax
addq $-0x10e, %rax           # imm = 0xFEF2
movq %r15, %rbx
movb %al, (%rdi)
jmp 0x28a04
movl %ebx, %eax
shlb $0x4, %al
movq 0x8(%rsp), %rdi
movb %al, (%rdi)
incq %rdi
movq %rbp, %rsi
movq %rbx, %rdx
movq %rdi, %r15
callq 0x6400
addl %ebx, %r15d
subl %r12d, %r15d
movq 0x40(%rsp), %r9
movq 0x28(%rsp), %r10
movq %r10, 0x4008(%r9)
movl %r14d, 0x4018(%r9)
addl %r14d, 0x4000(%r9)
movl %r15d, %eax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %r15d, %r15d
movl 0x1c(%rsp), %r14d
jmp 0x28a25