// File: /workspace/github_c_makefile_star2_O2/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 $0x58, %rsp
movl %ecx, %ebx
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r14
movl 0x4018(%rdi), %esi
addq 0x4008(%rdi), %rsi
cmpq %r12, %rsi
cmovaq %r12, %rsi
callq 0x223f2
xorl %eax, %eax
cmpl $0x7e000000, %ebx       # imm = 0x7E000000
ja 0x228bf
movslq %ebx, %rax
leaq (%r12,%rax), %r13
movq %r15, %rdi
movq %r12, %rsi
cmpl $0xd, %ebx
jb 0x22876
movl %ebx, 0xc(%rsp)
movl 0x4018(%r14), %ecx
movq 0x4008(%r14), %rdx
movq %rdx, 0x30(%rsp)
addq %rdx, %rcx
movq %rcx, 0x50(%rsp)
movq %rcx, %rbx
subq %r12, %rbx
leaq (%r12,%rax), %rbp
addq $-0xc, %rbp
leaq -0x5(%r12,%rax), %rax
movq %rax, 0x28(%rsp)
movl 0x4000(%r14), %eax
movq %r15, %rdx
movq %r12, %r15
subq %rax, %r15
movabsq $-0x30e4432345000000, %rsi # imm = 0xCF1BBCDCBB000000
movq (%r12), %rcx
imulq %rsi, %rcx
shrq $0x34, %rcx
movl %eax, (%r14,%rcx,4)
negq %rax
addq %r12, %rax
movq %rax, 0x40(%rsp)
pushq $0x40
popq %r8
pushq $0x1
popq %rax
movq %rdx, 0x38(%rsp)
movq %rdx, (%rsp)
movq %r12, %rsi
movq %r12, 0x48(%rsp)
movq %r13, 0x10(%rsp)
movq %rbx, 0x18(%rsp)
movq %rbp, 0x20(%rsp)
leaq 0x1(%rsi), %rdi
movq 0x1(%rsi), %rdx
movl %eax, %r9d
addq %rdi, %r9
cmpq %rbp, %r9
ja 0x228e3
movabsq $-0x30e4432345000000, %rax # imm = 0xCF1BBCDCBB000000
imulq %rax, %rdx
movq %rdx, %rcx
shrq $0x34, %rcx
movl (%r14,%rcx,4), %eax
movq (%r9), %rdx
movl %edi, %r10d
subl %r15d, %r10d
movl %r10d, (%r14,%rcx,4)
leaq (%r15,%rax), %rcx
addq $0xffff, %rcx           # imm = 0xFFFF
cmpq %rdi, %rcx
jb 0x225c8
leaq (%r15,%rax), %r10
cmpq %r12, %r10
movl $0x0, %ecx
cmovbq %rbx, %rcx
movl (%r10,%rcx), %r11d
cmpl (%rdi), %r11d
je 0x225d6
movl %r8d, %eax
shrl $0x6, %eax
incl %r8d
movq %r9, %rdi
jmp 0x2256a
cmpq %r12, %r10
movq %r12, %rdx
cmovbq 0x30(%rsp), %rdx
leaq (%rcx,%rax), %r11
addq 0x40(%rsp), %r11
movl %edi, %r10d
shlb $0x4, %r10b
movl %esi, %r8d
shlb $0x4, %r8b
subb %r8b, %r10b
xorl %r8d, %r8d
leaq (%rdi,%r8), %rbp
movq %rbp, %r9
subq %rsi, %r9
jbe 0x22629
leaq (%r11,%r8), %rbx
cmpq %rdx, %rbx
jbe 0x22629
movb -0x1(%rdi,%r8), %bl
cmpb -0x1(%r11,%r8), %bl
jne 0x22629
decq %r8
addb $-0x10, %r10b
jmp 0x225ff
movl %edi, %r11d
subl %esi, %r11d
addl %r8d, %r11d
cmpl $0xf, %r11d
jb 0x22666
subl %esi, %edi
leal (%rdi,%r8), %r10d
addl $-0xf, %r10d
movq (%rsp), %rdi
movb $-0x10, (%rdi)
addq $0x2, %rdi
cmpl $0xff, %r10d
jl 0x22673
movb $-0x1, -0x1(%rdi)
addl $0xffffff01, %r10d      # imm = 0xFFFFFF01
incq %rdi
jmp 0x2264d
movq (%rsp), %r11
leaq 0x1(%r11), %rdi
movb %r10b, (%r11)
jmp 0x22677
movb %r10b, -0x1(%rdi)
addq 0x40(%rsp), %rax
addq %r8, %rax
movl %r9d, %r12d
addq %rdi, %r12
movq (%rsi), %r8
movq %r8, (%rdi)
addq $0x8, %rdi
addq $0x8, %rsi
cmpq %r12, %rdi
jb 0x22685
jmp 0x226a5
leaq 0x1(%rsi), %r12
movb $0x0, (%rsi)
movq %rsi, (%rsp)
movl %ebp, %esi
subl %eax, %esi
movw %si, (%r12)
cmpq 0x30(%rsp), %rdx
je 0x226d5
leaq 0x4(%rbp), %rdi
addq $0x4, %rax
movq %rax, %rsi
movq 0x28(%rsp), %rdx
callq 0x25985
movl %eax, %r13d
addl $0x4, %eax
addq %rax, %rbp
jmp 0x2272d
leaq (%rax,%rcx), %rdx
movq 0x50(%rsp), %rbx
subq %rdx, %rbx
addq %rbp, %rbx
movq 0x28(%rsp), %rdx
cmpq %rdx, %rbx
cmovaq %rdx, %rbx
leaq 0x4(%rbp), %rdi
leaq (%rax,%rcx), %rsi
addq $0x4, %rsi
movq %rbx, %rdx
callq 0x25985
movl %eax, %r13d
leal 0x4(%r13), %eax
addq %rax, %rbp
cmpq %rbx, %rbp
jne 0x2272d
movq %rbx, %rdi
movq 0x48(%rsp), %rsi
movq 0x28(%rsp), %rdx
callq 0x25985
addl %eax, %r13d
movl %eax, %ebp
addq %rbx, %rbp
leaq 0x2(%r12), %rsi
movq (%rsp), %rcx
movb (%rcx), %al
cmpl $0xf, %r13d
jb 0x22797
addb $0xf, %al
movb %al, (%rcx)
leal -0xf(%r13), %eax
orl $-0x1, (%rsi)
xorl %esi, %esi
cmpl $0x3fc, %eax            # imm = 0x3FC
jb 0x22763
orl $-0x1, 0x6(%r12,%rsi)
addl $0xfffffc04, %eax       # imm = 0xFFFFFC04
addq $0x4, %rsi
jmp 0x2274b
movzwl %ax, %ecx
movq %rcx, %rax
xorl %edx, %edx
movl $0xff, %edi
divq %rdi
addq %rax, %r12
movl %ecx, %eax
xorl %edx, %edx
movw $0xff, %cx
divw %cx
addb %r13b, %al
addb $-0xf, %al
movzbl %al, %eax
addl %esi, %eax
addq %r12, %rsi
addq $0x3, %rsi
movb %al, -0x1(%rsi)
jmp 0x2279c
addb %r13b, %al
movb %al, (%rcx)
cmpq 0x20(%rsp), %rbp
movq 0x48(%rsp), %r12
ja 0x22862
leaq -0x2(%rbp), %rax
movq -0x2(%rbp), %rcx
movabsq $-0x30e4432345000000, %rdx # imm = 0xCF1BBCDCBB000000
imulq %rdx, %rcx
shrq $0x34, %rcx
subl %r15d, %eax
movl %eax, (%r14,%rcx,4)
movq (%rbp), %rdi
imulq %rdx, %rdi
shrq $0x34, %rdi
movl (%r14,%rdi,4), %r8d
leaq (%r15,%r8), %rax
cmpq %r12, %rax
movl $0x0, %ecx
cmovbq 0x18(%rsp), %rcx
movq %r12, %rdx
cmovbq 0x30(%rsp), %rdx
movl %ebp, %r9d
subl %r15d, %r9d
movl %r9d, (%r14,%rdi,4)
leaq (%r15,%r8), %rdi
addq $0xffff, %rdi           # imm = 0xFFFF
cmpq %rbp, %rdi
jb 0x22840
movl (%rax,%rcx), %edi
cmpl (%rbp), %edi
pushq $0x40
popq %r8
je 0x2269a
movq %rsi, (%rsp)
movq %rbp, %rsi
movq 0x10(%rsp), %r13
movq 0x18(%rsp), %rbx
movq 0x20(%rsp), %rbp
pushq $0x1
popq %rax
jmp 0x22562
movq %rsi, (%rsp)
movq %rbp, %rsi
movq 0x10(%rsp), %r13
movq 0x18(%rsp), %rbx
movq 0x20(%rsp), %rbp
pushq $0x40
popq %r8
pushq $0x1
popq %rax
jmp 0x22562
movq %rsi, %rdi
movq %rbp, %rsi
movl 0xc(%rsp), %ebx
movq 0x38(%rsp), %r15
movq 0x10(%rsp), %r13
subq %rsi, %r13
cmpq $0xf, %r13
jb 0x2289c
leaq -0xf(%r13), %rax
movb $-0x10, (%rdi)
incq %rdi
cmpq $0xff, %rax
jb 0x228a6
movb $-0x1, (%rdi)
addq $-0xff, %rax
jmp 0x22886
movl %r13d, %eax
shlb $0x4, %al
movb %al, (%rdi)
jmp 0x228a8
movb %al, (%rdi)
incq %rdi
movq %rdi, %rbp
movq %r13, %rdx
callq 0x63f0
movq %rbp, %rax
addl %r13d, %eax
subl %r15d, %eax
movq %r12, 0x4008(%r14)
movl %ebx, 0x4018(%r14)
addl %ebx, 0x4000(%r14)
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl 0xc(%rsp), %ebx
movq 0x38(%rsp), %r15
movq (%rsp), %rdi
jmp 0x22876