// File: /workspace/github_c_makefile_star2_O3/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, %ebp
movq %rdx, %rbx
movq %rsi, %r13
movl 0x4018(%rdi), %esi
addq 0x4008(%rdi), %rsi
cmpq %r13, %rsi
cmovaq %r13, %rsi
movq %rdi, 0x20(%rsp)
callq 0x2ad10
xorl %eax, %eax
cmpl $0x7e000000, %ebp       # imm = 0x7E000000
ja 0x2b303
movslq %ebp, %rax
leaq (%rax,%r13), %rcx
movq %rcx, 0x68(%rsp)
movq %rbx, %r8
movq %r13, %r14
movl %ebp, 0x1c(%rsp)
cmpl $0xd, %ebp
movq 0x20(%rsp), %r10
jb 0x2b25d
movl 0x4018(%r10), %edx
movq 0x4008(%r10), %r11
movl 0x4000(%r10), %edi
movabsq $-0x30e4432345000000, %rsi # imm = 0xCF1BBCDCBB000000
movq (%r13), %rcx
imulq %rsi, %rcx
shrq $0x34, %rcx
movl %edi, (%r10,%rcx,4)
movq %rbx, %r8
movq %r13, %r14
cmpl $0xd, 0x1c(%rsp)
je 0x2b25d
movq %rdi, %rsi
addq %r11, %rdx
movq %rdx, 0x70(%rsp)
subq %r13, %rdx
movq %rdx, 0x48(%rsp)
leaq (%rax,%r13), %rcx
addq $-0xc, %rcx
movq %rcx, 0x38(%rsp)
addq %r13, %rax
addq $-0x5, %rax
movq %rax, (%rsp)
movq %rdi, %rcx
negq %rcx
movq %r13, %r15
subq %rdi, %r15
leaq 0x2(%r13), %rax
addq %r13, %rcx
movq %rcx, 0x40(%rsp)
notq %rsi
addq %r13, %rsi
movq %rsi, 0x60(%rsp)
movq %r13, %r14
movq %rbx, %r8
movq %r13, 0x10(%rsp)
movq %rbx, 0x28(%rsp)
movq %r11, 0x30(%rsp)
movq %r8, 0x8(%rsp)
leaq 0x1(%r14), %rbp
movq 0x1(%r14), %rdx
movl $0x41, %ecx
movl $0x1, %esi
movq %rax, %rdi
movabsq $-0x30e4432345000000, %rax # imm = 0xCF1BBCDCBB000000
imulq %rax, %rdx
movq %rdx, %r8
shrq $0x34, %r8
movl (%r10,%r8,4), %eax
movq (%rdi), %rdx
movl %ebp, %r9d
subl %r15d, %r9d
movl %r9d, (%r10,%r8,4)
leaq (%r15,%rax), %r8
addq $0xffff, %r8            # imm = 0xFFFF
cmpq %rbp, %r8
jb 0x2af35
leaq (%r15,%rax), %rbx
cmpq %r13, %rbx
movl $0x0, %r12d
cmovbq 0x48(%rsp), %r12
movl (%rbx,%r12), %r8d
cmpl (%rbp), %r8d
je 0x2af55
movl %esi, %eax
addq %rdi, %rax
leal 0x1(%rcx), %r8d
shrl $0x6, %ecx
movl %ecx, %esi
movl %r8d, %ecx
movq %rdi, %rbp
cmpq 0x38(%rsp), %rax
jbe 0x2aedf
jmp 0x2b32a
cmpq %r13, %rbx
cmovbq %r11, %r13
cmpq %r14, %rbp
movq 0x8(%rsp), %r8
jbe 0x2afad
leaq (%rbx,%r12), %rcx
cmpq %r13, %rcx
jbe 0x2afad
leaq (%r12,%rax), %rdx
addq 0x60(%rsp), %rdx
xorl %ecx, %ecx
movb -0x1(%rbp,%rcx), %sil
cmpb (%rdx,%rcx), %sil
jne 0x2afb3
leaq (%rcx,%rbp), %rdi
decq %rdi
leaq -0x1(%rcx), %rsi
cmpq %r14, %rdi
jbe 0x2afa0
addq %rdx, %rcx
cmpq %r13, %rcx
movq %rsi, %rcx
ja 0x2af7a
addq %rsi, %rbp
addq 0x40(%rsp), %rax
addq %rsi, %rax
jmp 0x2afbe
movq (%rsp), %rcx
jmp 0x2afc5
addq %rcx, %rbp
addq 0x40(%rsp), %rax
addq %rcx, %rax
movq (%rsp), %rcx
movq %rax, %rbx
movq %rbp, %rdx
subq %r14, %rdx
leaq 0x1(%r8), %rdi
cmpl $0xf, %edx
jb 0x2b05f
leal -0xf(%rdx), %eax
movb $-0x10, (%r8)
cmpl $0xff, %eax
jl 0x2b058
movl $0x1fd, %ecx            # imm = 0x1FD
cmpl %ecx, %eax
cmovael %ecx, %eax
addl %r14d, %eax
negl %eax
leal (%rax,%rbp), %ecx
addl $0xef, %ecx
movl $0x80808081, %eax       # imm = 0x80808081
imulq %rax, %rcx
shrq $0x27, %rcx
movq %rcx, 0x50(%rsp)
movq %rdx, 0x58(%rsp)
leaq 0x1(%rcx), %rdx
movl $0xff, %esi
callq 0x62d0
movq 0x58(%rsp), %rdx
movq 0x8(%rsp), %r8
movq 0x30(%rsp), %r11
movq 0x50(%rsp), %rsi
movl %esi, %eax
shll $0x8, %eax
movl %esi, %ecx
subl %eax, %ecx
leaq (%r8,%rsi), %rdi
addq $0x2, %rdi
movl %ebp, %eax
subl %r14d, %eax
addl %ecx, %eax
addl $0xfffffef2, %eax       # imm = 0xFFFFFEF2
movq (%rsp), %rcx
movb %al, (%rdi)
incq %rdi
jmp 0x2b067
movl %edx, %eax
shlb $0x4, %al
movb %al, (%r8)
movl %edx, %edx
addq %rdi, %rdx
movq (%r14), %rax
movq %rax, (%rdi)
addq $0x8, %rdi
addq $0x8, %r14
cmpq %rdx, %rdi
jb 0x2b06c
movq %r8, 0x8(%rsp)
movq %rbp, %r14
movl %r14d, %eax
subl %ebx, %eax
movq %rdx, %rbp
movw %ax, (%rdx)
cmpq %r11, %r13
je 0x2b0b4
leaq 0x4(%r14), %rdi
addq $0x4, %rbx
movq %rbx, %rsi
movq %rcx, %rdx
callq 0x2e3a5
movl %eax, %ebx
addl $0x4, %eax
addq %rax, %r14
jmp 0x2b0f2
leaq (%rbx,%r12), %rax
movq 0x70(%rsp), %r13
subq %rax, %r13
addq %r14, %r13
cmpq %rcx, %r13
cmovaq %rcx, %r13
leaq 0x4(%r14), %rdi
leaq (%rbx,%r12), %rsi
addq $0x4, %rsi
movq %r13, %rdx
movq %rcx, %r12
callq 0x2e3a5
movl %eax, %ebx
leal 0x4(%rbx), %eax
addq %rax, %r14
cmpq %r13, %r14
je 0x2b21e
movq 0x10(%rsp), %r13
leaq 0x2(%rbp), %r8
movq 0x8(%rsp), %rcx
movb (%rcx), %al
cmpl $0xf, %ebx
movq 0x20(%rsp), %r10
jb 0x2b18b
addb $0xf, %al
movb %al, (%rcx)
leal -0xf(%rbx), %eax
movl $0xffffffff, (%r8)      # imm = 0xFFFFFFFF
cmpl $0x3fc, %eax            # imm = 0x3FC
jb 0x2b171
leaq 0x6(%rbp), %rdi
addl $0xfffffbf5, %ebx       # imm = 0xFFFFFBF5
movq %rbx, %r12
movl $0x80808081, %eax       # imm = 0x80808081
imulq %rax, %r12
shrq $0x29, %r12
leal (,%r12,4), %r13d
leaq 0x4(%r13), %rdx
movl $0xff, %esi
callq 0x62d0
movq 0x20(%rsp), %r10
imull $0x3fc, %r12d, %eax     # imm = 0x3FC
subl %eax, %ebx
leaq 0x6(,%r13), %r8
addq %rbp, %r8
movq 0x10(%rsp), %r13
movl %ebx, %eax
movzwl %ax, %ecx
imull $0x8081, %ecx, %ecx     # imm = 0x8081
shrl $0x17, %ecx
addq %rcx, %r8
incq %r8
addl %eax, %ecx
movb %cl, -0x1(%r8)
jmp 0x2b18f
addb %bl, %al
movb %al, (%rcx)
movq 0x30(%rsp), %r11
cmpq 0x38(%rsp), %r14
ja 0x2b258
leaq -0x2(%r14), %rax
movq -0x2(%r14), %rcx
movabsq $-0x30e4432345000000, %rdx # imm = 0xCF1BBCDCBB000000
imulq %rdx, %rcx
shrq $0x34, %rcx
subl %r15d, %eax
movl %eax, (%r10,%rcx,4)
movq (%r14), %rax
imulq %rdx, %rax
shrq $0x34, %rax
movl (%r10,%rax,4), %ecx
leaq (%r15,%rcx), %rbx
cmpq %r13, %rbx
movl $0x0, %r12d
cmovbq 0x48(%rsp), %r12
cmovbq %r11, %r13
movl %r14d, %edx
subl %r15d, %edx
movl %edx, (%r10,%rax,4)
leaq (%r15,%rcx), %rax
addq $0xffff, %rax           # imm = 0xFFFF
cmpq %r14, %rax
jb 0x2b23d
movl (%rbx,%r12), %eax
cmpl (%r14), %eax
jne 0x2b23d
leaq 0x1(%r8), %rdx
movb $0x0, (%r8)
movq %r8, 0x8(%rsp)
movq (%rsp), %rcx
jmp 0x2b087
movq %r14, %rdi
movq 0x10(%rsp), %r13
movq %r13, %rsi
movq %r12, %rdx
callq 0x2e3a5
addl %eax, %ebx
movl %eax, %eax
addq %rax, %r14
jmp 0x2b0f7
leaq 0x2(%r14), %rax
cmpq 0x38(%rsp), %rax
movq 0x10(%rsp), %r13
movq 0x28(%rsp), %rbx
jbe 0x2aec8
jmp 0x2b25d
movq 0x28(%rsp), %rbx
movq 0x68(%rsp), %r15
subq %r14, %r15
cmpq $0xf, %r15
jb 0x2b2da
leaq -0xf(%r15), %rax
movb $-0x10, (%r8)
leaq 0x1(%r8), %rdi
cmpq $0xff, %rax
jb 0x2b2d3
leaq -0x10e(%r15), %rax
movabsq $-0x7f7f7f7f7f7f7f7f, %rcx # imm = 0x8080808080808081
mulq %rcx
movq %r15, %r12
movq %rbx, %r15
movq %rdx, %rbx
shrq $0x7, %rbx
leaq 0x1(%rbx), %rdx
movl $0xff, %esi
movq %r8, %rbp
callq 0x62d0
movq %rbx, %rax
shlq $0x8, %rax
leaq (%rbx,%rbp), %rdi
addq $0x2, %rdi
subq %rax, %rbx
leaq (%r12,%rbx), %rax
addq $-0x10e, %rax           # imm = 0xFEF2
movq %r15, %rbx
movq %r12, %r15
movb %al, (%rdi)
movq %rdi, %r8
jmp 0x2b2e3
movl %r15d, %eax
shlb $0x4, %al
movb %al, (%r8)
incq %r8
movq %r8, %rdi
movq %r14, %rsi
movq %r15, %rdx
movq %r8, %r14
callq 0x63f0
movq %r14, %rax
addl %r15d, %eax
subl %ebx, %eax
movl 0x1c(%rsp), %ebp
movq 0x20(%rsp), %rcx
movq %r13, 0x4008(%rcx)
movl %ebp, 0x4018(%rcx)
addl %ebp, 0x4000(%rcx)
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x28(%rsp), %rbx
movq 0x8(%rsp), %r8
jmp 0x2b25d