// File: /workspace/github_c_makefile_star2_O1/Cyan4973[P]FiniteStateEntropy/programs/../lib/fse_decompress.c
// Function: FSE_decompress_usingDTable
size_t FSE_decompress_usingDTable(void* dst, size_t originalSize,
                            const void* cSrc, size_t cSrcSize,
                            const FSE_DTable* dt)
{
    const void* ptr = dt;
    const FSE_DTableHeader* DTableH = (const FSE_DTableHeader*)ptr;
    const U32 fastMode = DTableH->fastMode;

    /* select fast mode (static) */
    if (fastMode) return FSE_decompress_usingDTable_generic(dst, originalSize, cSrc, cSrcSize, dt, 1);
    return FSE_decompress_usingDTable_generic(dst, originalSize, cSrc, cSrcSize, dt, 0);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rcx, %rax
movq %rdi, -0x18(%rsp)
leaq (%rdi,%rsi), %rcx
movq %rcx, -0x10(%rsp)
cmpw $0x0, 0x2(%r8)
leaq -0x3(%rdi,%rsi), %rcx
movq %rcx, -0x8(%rsp)
je 0x7bb4
testq %rax, %rax
je 0x7c02
leaq 0x8(%rdx), %rcx
movq %rcx, -0x20(%rsp)
cmpq $0x8, %rax
movq %rdx, -0x28(%rsp)
jb 0x7c27
leaq (%rdx,%rax), %rbx
addq $-0x8, %rbx
movq (%rbx), %r11
movzbl 0x7(%rbx), %ecx
bsrl %ecx, %esi
notl %esi
addl $0x9, %esi
testl %ecx, %ecx
cmovel %ecx, %esi
xorl %edx, %edx
cmpl $0x1, %ecx
sbbq %rdx, %rdx
orq %rdx, %rax
jmp 0x7d66
testq %rax, %rax
je 0x7cad
leaq 0x8(%rdx), %rcx
movq %rcx, -0x20(%rsp)
cmpq $0x8, %rax
movq %rdx, -0x28(%rsp)
jb 0x7cd3
leaq (%rdx,%rax), %r11
addq $-0x8, %r11
movq (%r11), %r14
movzbl 0x7(%r11), %ecx
bsrl %ecx, %ebx
notl %ebx
addl $0x9, %ebx
testl %ecx, %ecx
cmovel %ecx, %ebx
xorl %edx, %edx
cmpl $0x1, %ecx
sbbq %rdx, %rdx
orq %rdx, %rax
jmp 0x80d6
movq $-0x3, %rax
movq $0x0, -0x20(%rsp)
movq $0x0, -0x28(%rsp)
xorl %ebx, %ebx
xorl %esi, %esi
xorl %r11d, %r11d
jmp 0x7d66
movzbl (%rdx), %r11d
leaq -0x2(%rax), %rcx
cmpq $0x5, %rcx
ja 0x7c84
leaq 0xc244(%rip), %rsi      # 0x13e80
movslq (%rsi,%rcx,4), %rcx
addq %rsi, %rcx
jmpq *%rcx
movzbl 0x6(%rdx), %ecx
shlq $0x30, %rcx
orq %rcx, %r11
movzbl 0x5(%rdx), %ecx
shlq $0x28, %rcx
addq %rcx, %r11
movzbl 0x4(%rdx), %ecx
shlq $0x20, %rcx
addq %rcx, %r11
movzbl 0x3(%rdx), %ecx
shll $0x18, %ecx
addq %rcx, %r11
movzbl 0x2(%rdx), %ecx
shll $0x10, %ecx
addq %rcx, %r11
movzbl 0x1(%rdx), %ecx
shll $0x8, %ecx
addq %rcx, %r11
movzbl -0x1(%rdx,%rax), %ecx
bsrl %ecx, %esi
notl %esi
addl $0x9, %esi
testl %ecx, %ecx
cmovel %ecx, %esi
je 0x7d5c
leal (,%rax,8), %ecx
subl %ecx, %esi
addl $0x40, %esi
jmp 0x7d63
movq $-0x3, %rax
xorl %r14d, %r14d
xorl %ebx, %ebx
xorl %r11d, %r11d
movq $0x0, -0x28(%rsp)
movq $0x0, -0x20(%rsp)
jmp 0x80d6
movzbl (%rdx), %r14d
leaq -0x2(%rax), %rcx
cmpq $0x5, %rcx
ja 0x7d30
leaq 0xc1b0(%rip), %rsi      # 0x13e98
movslq (%rsi,%rcx,4), %rcx
addq %rsi, %rcx
jmpq *%rcx
movzbl 0x6(%rdx), %ecx
shlq $0x30, %rcx
orq %rcx, %r14
movzbl 0x5(%rdx), %ecx
shlq $0x28, %rcx
addq %rcx, %r14
movzbl 0x4(%rdx), %ecx
shlq $0x20, %rcx
addq %rcx, %r14
movzbl 0x3(%rdx), %ecx
shll $0x18, %ecx
addq %rcx, %r14
movzbl 0x2(%rdx), %ecx
shll $0x10, %ecx
addq %rcx, %r14
movzbl 0x1(%rdx), %ecx
shll $0x8, %ecx
addq %rcx, %r14
movzbl -0x1(%rdx,%rax), %ecx
movq %rdx, %r11
bsrl %ecx, %ebx
notl %ebx
addl $0x9, %ebx
testl %ecx, %ecx
cmovel %ecx, %ebx
je 0x80cf
leal (,%rax,8), %ecx
subl %ecx, %ebx
addl $0x40, %ebx
jmp 0x80d6
movq $-0x4, %rax
movq %rdx, %rbx
cmpq $-0x9, %rax
ja 0x8427
movzwl (%r8), %eax
addl %eax, %esi
movl %esi, %ecx
negb %cl
movq %r11, %r12
shrq %cl, %r12
leaq 0xc129(%rip), %rcx      # 0x13eb0
movl (%rcx,%rax,4), %r15d
cmpl $0x40, %esi
ja 0x7dd1
cmpq -0x20(%rsp), %rbx
jae 0x7dc1
movq -0x28(%rsp), %rdi
cmpq %rdi, %rbx
je 0x7dd1
movl %esi, %edx
shrl $0x3, %edx
movq %rbx, %r10
subq %rdx, %r10
movl %ebx, %ecx
subl %edi, %ecx
cmpq %rdi, %r10
cmovael %edx, %ecx
leal (,%rcx,8), %edx
subl %edx, %esi
jmp 0x7dc9
movl %esi, %ecx
shrl $0x3, %ecx
andl $0x7, %esi
movl %ecx, %ecx
subq %rcx, %rbx
movq (%rbx), %r11
addl %eax, %esi
movl %esi, %ecx
negb %cl
movq %r11, %rax
shrq %cl, %rax
andl %r15d, %r12d
andl %eax, %r15d
cmpl $0x40, %esi
jbe 0x7def
movq -0x18(%rsp), %rdi
jmp 0x7e3b
cmpq -0x20(%rsp), %rbx
jae 0x7e26
movq -0x28(%rsp), %r9
cmpq %r9, %rbx
movq -0x18(%rsp), %rdi
je 0x7e3b
movl %esi, %ecx
shrl $0x3, %ecx
movq %rbx, %rdx
subq %rcx, %rdx
movl %ebx, %eax
subl %r9d, %eax
cmpq %r9, %rdx
cmovael %ecx, %eax
leal (,%rax,8), %ecx
subl %ecx, %esi
jmp 0x7e33
movl %esi, %eax
shrl $0x3, %eax
andl $0x7, %esi
movq -0x18(%rsp), %rdi
movl %eax, %eax
subq %rax, %rbx
movq (%rbx), %r11
addq $0x4, %r8
xorl %eax, %eax
movq -0x28(%rsp), %r9
cmpl $0x40, %esi
jbe 0x7e4f
xorl %ecx, %ecx
jmp 0x7e96
cmpq -0x20(%rsp), %rbx
jae 0x7e84
cmpq %r9, %rbx
je 0x7e4b
movl %esi, %r10d
shrl $0x3, %r10d
movq %rbx, %rcx
subq %r10, %rcx
movl %ebx, %edx
subl %r9d, %edx
cmpq %r9, %rcx
setae %cl
cmovael %r10d, %edx
leal (,%rdx,8), %r10d
subl %r10d, %esi
jmp 0x7e8e
movl %esi, %edx
shrl $0x3, %edx
andl $0x7, %esi
movb $0x1, %cl
movl %edx, %edx
subq %rdx, %rbx
movq (%rbx), %r11
leaq (%rdi,%rax), %r10
cmpq -0x8(%rsp), %r10
jae 0x7f50
testb %cl, %cl
je 0x7f50
movq %r11, %r14
movl %esi, %ecx
shlq %cl, %r14
movzbl 0x3(%r8,%r12,4), %ecx
addl %ecx, %esi
negb %cl
shrq %cl, %r14
movzwl (%r8,%r12,4), %edx
movb 0x2(%r8,%r12,4), %cl
movb %cl, (%r10)
movq %r11, %rbp
movl %esi, %ecx
shlq %cl, %rbp
movzbl 0x3(%r8,%r15,4), %ecx
addl %ecx, %esi
negb %cl
shrq %cl, %rbp
movzwl (%r8,%r15,4), %r13d
movb 0x2(%r8,%r15,4), %cl
movb %cl, 0x1(%r10)
leaq (%r8,%r14,4), %rcx
movzwl (%rcx,%rdx,4), %r14d
movb 0x2(%rcx,%rdx,4), %r15b
movzbl 0x3(%rcx,%rdx,4), %edx
movq %r11, %r12
movl %esi, %ecx
shlq %cl, %r12
addl %edx, %esi
movl %edx, %ecx
negb %cl
shrq %cl, %r12
addq %r14, %r12
movb %r15b, 0x2(%r10)
leaq (%r8,%rbp,4), %rdx
movzwl (%rdx,%r13,4), %r14d
movq %r11, %r15
movl %esi, %ecx
shlq %cl, %r15
movzbl 0x3(%rdx,%r13,4), %ecx
addl %ecx, %esi
negb %cl
shrq %cl, %r15
movb 0x2(%rdx,%r13,4), %cl
addq %r14, %r15
movb %cl, 0x3(%r10)
addq $0x4, %rax
jmp 0x7e46
addq $-0x2, -0x10(%rsp)
movq %rax, %r13
leaq (%rdi,%rax), %rcx
movq $-0x2, %rax
cmpq -0x10(%rsp), %rcx
ja 0x8427
movzwl (%r8,%r12,4), %ebp
movb 0x2(%r8,%r12,4), %dl
movzbl 0x3(%r8,%r12,4), %r9d
movq %r11, %r12
movl %esi, %ecx
shlq %cl, %r12
movl %r9d, %ecx
negb %cl
shrq %cl, %r12
addl %r9d, %esi
movb %dl, (%rdi,%r13)
cmpl $0x40, %esi
jbe 0x7fa0
movl %esi, %r9d
jmp 0x7fea
cmpq -0x20(%rsp), %rbx
jae 0x7fd6
movq -0x28(%rsp), %r10
cmpq %r10, %rbx
je 0x7f9b
movl %esi, %edx
shrl $0x3, %edx
movq %rbx, %r9
subq %rdx, %r9
movl %ebx, %ecx
subl %r10d, %ecx
cmpq %r10, %r9
cmovael %edx, %ecx
leal (,%rcx,8), %edx
movl %esi, %r9d
subl %edx, %r9d
jmp 0x7fe2
movl %esi, %ecx
shrl $0x3, %ecx
movl %esi, %r9d
andl $0x7, %r9d
movl %ecx, %ecx
subq %rcx, %rbx
movq (%rbx), %r11
leaq (%rdi,%r13), %r10
incq %r10
cmpl $0x40, %esi
ja 0x80aa
cmpq -0x10(%rsp), %r10
ja 0x8427
movzwl (%r8,%r15,4), %eax
movb 0x2(%r8,%r15,4), %dl
movzbl 0x3(%r8,%r15,4), %esi
movq %r11, %r15
movl %r9d, %ecx
shlq %cl, %r15
movl %esi, %ecx
negb %cl
shrq %cl, %r15
addl %esi, %r9d
movb %dl, (%r10)
cmpl $0x40, %r9d
jbe 0x803b
movl %r9d, %esi
movq -0x18(%rsp), %rdi
jmp 0x808f
cmpq -0x20(%rsp), %rbx
jae 0x8076
movq -0x28(%rsp), %r10
cmpq %r10, %rbx
movq -0x18(%rsp), %rdi
je 0x80a5
movl %r9d, %edx
shrl $0x3, %edx
movq %rbx, %rsi
subq %rdx, %rsi
movl %ebx, %ecx
subl %r10d, %ecx
cmpq %r10, %rsi
cmovael %edx, %ecx
leal (,%rcx,8), %edx
movl %r9d, %esi
subl %edx, %esi
jmp 0x8087
movl %r9d, %ecx
shrl $0x3, %ecx
movl %r9d, %esi
andl $0x7, %esi
movq -0x18(%rsp), %rdi
movl %ecx, %ecx
subq %rcx, %rbx
movq (%rbx), %r11
addq %rbp, %r12
addq %rax, %r15
leaq 0x2(%r13), %rax
cmpl $0x40, %r9d
jbe 0x7f56
jmp 0x80b1
movl %r9d, %esi
jmp 0x808f
movl $0x2, %eax
jmp 0x80bf
addq %rax, %rdi
movl $0x3, %eax
movq %r12, %r15
movq %rdi, %r10
movb 0x2(%r8,%r15,4), %cl
movb %cl, (%r10)
addq %r13, %rax
jmp 0x8427
movq $-0x4, %rax
cmpq $-0x9, %rax
ja 0x8427
movzwl (%r8), %eax
addl %eax, %ebx
movl %ebx, %ecx
negb %cl
movq %r14, %r13
shrq %cl, %r13
leaq 0xbdb9(%rip), %rdi      # 0x13eb0
movl (%rdi,%rax,4), %r12d
cmpl $0x40, %ebx
ja 0x8142
cmpq -0x20(%rsp), %r11
jae 0x8132
movq -0x28(%rsp), %rdx
cmpq %rdx, %r11
je 0x8142
movl %ebx, %esi
shrl $0x3, %esi
movq %r11, %r10
subq %rsi, %r10
movl %r11d, %ecx
subl %edx, %ecx
cmpq %rdx, %r10
cmovael %esi, %ecx
leal (,%rcx,8), %esi
subl %esi, %ebx
jmp 0x813a
movl %ebx, %ecx
shrl $0x3, %ecx
andl $0x7, %ebx
movl %ecx, %ecx
subq %rcx, %r11
movq (%r11), %r14
addl %eax, %ebx
movl %ebx, %ecx
negb %cl
movq %r14, %rax
shrq %cl, %rax
andl %r12d, %r13d
andl %eax, %r12d
cmpl $0x40, %ebx
ja 0x819b
cmpq -0x20(%rsp), %r11
jae 0x818b
movq -0x28(%rsp), %rdx
cmpq %rdx, %r11
je 0x819b
movl %ebx, %ecx
shrl $0x3, %ecx
movq %r11, %rsi
subq %rcx, %rsi
movl %r11d, %eax
subl %edx, %eax
cmpq %rdx, %rsi
cmovael %ecx, %eax
leal (,%rax,8), %ecx
subl %ecx, %ebx
jmp 0x8193
movl %ebx, %eax
shrl $0x3, %eax
andl $0x7, %ebx
movl %eax, %eax
subq %rax, %r11
movq (%r11), %r14
addq $0x4, %r8
xorl %eax, %eax
cmpl $0x40, %ebx
jbe 0x81aa
xorl %ecx, %ecx
jmp 0x81f6
cmpq -0x20(%rsp), %r11
jae 0x81e4
movq -0x28(%rsp), %rdx
cmpq %rdx, %r11
je 0x81a6
movl %ebx, %r10d
shrl $0x3, %r10d
movq %r11, %rcx
subq %r10, %rcx
movl %r11d, %esi
subl %edx, %esi
cmpq %rdx, %rcx
setae %cl
cmovael %r10d, %esi
leal (,%rsi,8), %r10d
subl %r10d, %ebx
jmp 0x81ee
movl %ebx, %esi
shrl $0x3, %esi
andl $0x7, %ebx
movb $0x1, %cl
movl %esi, %esi
subq %rsi, %r11
movq (%r11), %r14
movq -0x18(%rsp), %rdx
leaq (%rdx,%rax), %r10
cmpq -0x8(%rsp), %r10
jae 0x82bc
testb %cl, %cl
je 0x82bc
movzwl (%r8,%r13,4), %ebp
movb 0x2(%r8,%r13,4), %sil
movzbl 0x3(%r8,%r13,4), %r15d
addl %r15d, %ebx
movl %ebx, %ecx
negb %cl
movq %r14, %r13
shrq %cl, %r13
andl (%rdi,%r15,4), %r13d
movb %sil, (%r10)
movzbl 0x3(%r8,%r12,4), %r9d
addl %r9d, %ebx
movl %ebx, %ecx
negb %cl
movq %r14, %r15
shrq %cl, %r15
movzwl (%r8,%r12,4), %esi
andl (%rdi,%r9,4), %r15d
movb 0x2(%r8,%r12,4), %cl
movb %cl, 0x1(%r10)
leaq (%r8,%r13,4), %r9
movzbl 0x3(%r9,%rbp,4), %r12d
addl %r12d, %ebx
movl %ebx, %ecx
negb %cl
movq %r14, %r13
shrq %cl, %r13
andl (%rdi,%r12,4), %r13d
movzwl (%r9,%rbp,4), %edx
movb 0x2(%r9,%rbp,4), %cl
movb %cl, 0x2(%r10)
leaq (%r8,%r15,4), %r9
movzbl 0x3(%r9,%rsi,4), %r15d
addl %r15d, %ebx
movl %ebx, %ecx
negb %cl
movq %r14, %r12
shrq %cl, %r12
addq %rdx, %r13
movzwl (%r9,%rsi,4), %ecx
andl (%rdi,%r15,4), %r12d
movb 0x2(%r9,%rsi,4), %dl
addq %rcx, %r12
movb %dl, 0x3(%r10)
addq $0x4, %rax
jmp 0x81a1
addq $-0x2, -0x10(%rsp)
movq %rax, %r9
movq -0x18(%rsp), %r10
leaq (%r10,%rax), %rcx
movq $-0x2, %rax
cmpq -0x10(%rsp), %rcx
ja 0x8427
movzwl (%r8,%r13,4), %ebp
movb 0x2(%r8,%r13,4), %dl
movzbl 0x3(%r8,%r13,4), %esi
addl %esi, %ebx
movl %ebx, %ecx
negb %cl
movq %r14, %r13
shrq %cl, %r13
andl (%rdi,%rsi,4), %r13d
movb %dl, (%r10,%r9)
cmpl $0x40, %ebx
jbe 0x830e
movl %ebx, %r10d
jmp 0x8359
cmpq -0x20(%rsp), %r11
jae 0x8345
movq -0x28(%rsp), %r10
cmpq %r10, %r11
je 0x8309
movl %ebx, %edx
shrl $0x3, %edx
movq %r11, %rsi
subq %rdx, %rsi
movl %r11d, %ecx
subl %r10d, %ecx
cmpq %r10, %rsi
cmovael %edx, %ecx
leal (,%rcx,8), %edx
movl %ebx, %r10d
subl %edx, %r10d
jmp 0x8351
movl %ebx, %ecx
shrl $0x3, %ecx
movl %ebx, %r10d
andl $0x7, %r10d
movl %ecx, %ecx
subq %rcx, %r11
movq (%r11), %r14
movq -0x18(%rsp), %rcx
leaq (%rcx,%r9), %rsi
incq %rsi
cmpl $0x40, %ebx
ja 0x8418
cmpq -0x10(%rsp), %rsi
ja 0x8427
movzwl (%r8,%r12,4), %eax
movb 0x2(%r8,%r12,4), %dl
movzbl 0x3(%r8,%r12,4), %ebx
addl %ebx, %r10d
movl %r10d, %ecx
negb %cl
movq %r14, %r12
shrq %cl, %r12
andl (%rdi,%rbx,4), %r12d
movb %dl, (%rsi)
cmpl $0x40, %r10d
jbe 0x83a8
movl %r10d, %ebx
jmp 0x83f2
cmpq -0x20(%rsp), %r11
jae 0x83de
movq -0x28(%rsp), %rbx
cmpq %rbx, %r11
je 0x83a3
movl %r10d, %edx
shrl $0x3, %edx
movq %r11, %rsi
subq %rdx, %rsi
movl %r11d, %ecx
subl %ebx, %ecx
cmpq %rbx, %rsi
cmovael %edx, %ecx
leal (,%rcx,8), %edx
movl %r10d, %ebx
subl %edx, %ebx
jmp 0x83ea
movl %r10d, %ecx
shrl $0x3, %ecx
movl %r10d, %ebx
andl $0x7, %ebx
movl %ecx, %ecx
subq %rcx, %r11
movq (%r11), %r14
addq %rbp, %r13
addq %rax, %r12
leaq 0x2(%r9), %rax
cmpl $0x40, %r10d
jbe 0x82c2
movq -0x18(%rsp), %rsi
addq %rax, %rsi
movl $0x3, %eax
movq %r13, %r12
jmp 0x841d
movl $0x2, %eax
movb 0x2(%r8,%r12,4), %cl
movb %cl, (%rsi)
addq %r9, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq