// File: /workspace/github_c_makefile_star2_O1/enzo1982[P]smooth/libraries/libwebp/src/dec/vp8_dec.c
// Function: GetCoeffsFast
static int GetCoeffsFast(VP8BitReader* const br,
                         const VP8BandProbas* const prob[],
                         int ctx, const quant_t dq, int n, int16_t* out) {
  const uint8_t* p = prob[n]->probas_[ctx];
  for (; n < 16; ++n) {
    if (!VP8GetBit(br, p[0], "coeffs")) {
      return n;  // previous coeff was last non-zero coeff
    }
    while (!VP8GetBit(br, p[1], "coeffs")) {       // sequence of zero coeffs
      p = prob[++n]->probas_[0];
      if (n == 16) return 16;
    }
    {        // non zero coeff
      const VP8ProbaArray* const p_ctx = &prob[n + 1]->probas_[0];
      int v;
      if (!VP8GetBit(br, p[2], "coeffs")) {
        v = 1;
        p = p_ctx[1];
      } else {
        v = GetLargeValue(br, p);
        p = p_ctx[2];
      }
      out[kZigzag[n]] = VP8GetSigned(br, v, "coeffs") * dq[n > 0];
    }
  }
  return 16;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl $0x10, %eax
cmpl $0xf, %r8d
jg 0xd3d96
movq %r9, %r15
movl %r8d, %ebp
movq %rcx, %r12
movq %rdi, %r13
movslq %r8d, %rax
movslq %edx, %rcx
leaq (%rcx,%rcx,4), %rdx
leaq (%rcx,%rdx,2), %r9
addq (%rsi,%rax,8), %r9
movabsq $0x100000000, %r10      # imm = 0x100000000
movq %rsi, (%rsp)
movq %r15, 0x20(%rsp)
movq %r12, 0x18(%rsp)
movzbl (%r9), %ebx
movl 0x8(%r13), %r14d
movl 0xc(%r13), %eax
testl %eax, %eax
jns 0xd3a76
testq %r13, %r13
je 0xd3da9
movq 0x10(%r13), %rcx
testq %rcx, %rcx
je 0xd3da9
cmpq 0x20(%r13), %rcx
jae 0xd3a56
movq (%rcx), %rdx
addq $0x7, %rcx
movq %rcx, 0x10(%r13)
bswapq %rdx
shldq $0x38, %rdx, (%r13)
addl $0x38, %eax
movl %eax, 0xc(%r13)
jmp 0xd3a76
movq %r13, %rdi
movq %r9, 0x10(%rsp)
callq 0xf096e
movq 0x10(%rsp), %r9
movabsq $0x100000000, %r10      # imm = 0x100000000
movq (%rsp), %rsi
movl 0xc(%r13), %eax
imull %r14d, %ebx
shrl $0x8, %ebx
movq (%r13), %r8
movq %r8, %rdx
movl %eax, %ecx
shrq %cl, %rdx
cmpl %edx, %ebx
jae 0xd3aa7
movl %ebx, %edi
incq %rdi
movl %eax, %ecx
shlq %cl, %rdi
subl %ebx, %r14d
subq %rdi, %r8
movq %r8, (%r13)
jmp 0xd3aab
leal 0x1(%rbx), %r14d
bsrl %r14d, %ecx
xorl $0x7, %ecx
shll %cl, %r14d
subl %ecx, %eax
decl %r14d
movl %eax, 0xc(%r13)
movl %r14d, 0x8(%r13)
cmpl %edx, %ebx
jae 0xd3da5
movslq %ebp, %rbx
movq %rbx, %r15
shlq $0x20, %r15
leal 0x1(%rbx), %ebp
movzbl 0x1(%r9), %r14d
movl 0x8(%r13), %r12d
movl 0xc(%r13), %eax
testl %eax, %eax
jns 0xd3b45
testq %r13, %r13
je 0xd3da9
movq 0x10(%r13), %rcx
testq %rcx, %rcx
je 0xd3da9
cmpq 0x20(%r13), %rcx
jae 0xd3b21
movq (%rcx), %rdx
addq $0x7, %rcx
movq %rcx, 0x10(%r13)
bswapq %rdx
shldq $0x38, %rdx, (%r13)
addl $0x38, %eax
movl %eax, 0xc(%r13)
jmp 0xd3b45
movq %r13, %rdi
movl %ebp, 0x8(%rsp)
movq %r9, %rbp
callq 0xf096e
movq %rbp, %r9
movl 0x8(%rsp), %ebp
movabsq $0x100000000, %r10      # imm = 0x100000000
movq (%rsp), %rsi
movl 0xc(%r13), %eax
imull %r12d, %r14d
shrl $0x8, %r14d
movq (%r13), %r8
movq %r8, %rdx
movl %eax, %ecx
shrq %cl, %rdx
cmpl %edx, %r14d
jae 0xd3b79
movl %r14d, %edi
incq %rdi
movl %eax, %ecx
shlq %cl, %rdi
subl %r14d, %r12d
subq %rdi, %r8
movq %r8, (%r13)
jmp 0xd3b7d
leal 0x1(%r14), %r12d
bsrl %r12d, %ecx
xorl $0x7, %ecx
shll %cl, %r12d
subl %ecx, %eax
decl %r12d
movl %eax, 0xc(%r13)
movl %r12d, 0x8(%r13)
cmpl %edx, %r14d
jb 0xd3bb5
movq 0x8(%rsi,%rbx,8), %r9
incq %rbx
addq %r10, %r15
incl %ebp
cmpq $0x10, %rbx
jne 0xd3ad7
jmp 0xd3d91
movslq %ebp, %rcx
movq (%rsi,%rcx,8), %r11
movzbl 0x2(%r9), %r14d
testl %eax, %eax
jns 0xd3c2c
testq %r13, %r13
je 0xd3da9
movq 0x10(%r13), %rcx
testq %rcx, %rcx
je 0xd3da9
cmpq 0x20(%r13), %rcx
jae 0xd3bfe
movq (%rcx), %rdx
addq $0x7, %rcx
movq %rcx, 0x10(%r13)
bswapq %rdx
shldq $0x38, %rdx, (%r13)
addl $0x38, %eax
movl %eax, 0xc(%r13)
jmp 0xd3c2c
movq %r13, %rdi
movl %ebp, 0x8(%rsp)
movq %r9, 0x10(%rsp)
movq %r11, %rbp
callq 0xf096e
movq %rbp, %r11
movq 0x10(%rsp), %r9
movl 0x8(%rsp), %ebp
movabsq $0x100000000, %r10      # imm = 0x100000000
movq (%rsp), %rsi
movl 0xc(%r13), %eax
imull %r12d, %r14d
shrl $0x8, %r14d
movq (%r13), %r8
movq %r8, %rdx
movl %eax, %ecx
shrq %cl, %rdx
cmpl %edx, %r14d
jae 0xd3c60
movl %r14d, %edi
incq %rdi
movl %eax, %ecx
shlq %cl, %rdi
subl %r14d, %r12d
subq %rdi, %r8
movq %r8, (%r13)
jmp 0xd3c64
leal 0x1(%r14), %r12d
bsrl %r12d, %ecx
xorl $0x7, %ecx
shll %cl, %r12d
subl %ecx, %eax
decl %r12d
movl %eax, 0xc(%r13)
movl %r12d, 0x8(%r13)
cmpl %edx, %r14d
jae 0xd3caa
movq %r13, %rdi
movq %r9, %rsi
movq %r11, %r14
callq 0xd3dc8
movq %r14, %r11
movabsq $0x100000000, %r10      # imm = 0x100000000
movq (%rsp), %rsi
movl %eax, %r14d
movl $0x16, %r12d
jmp 0xd3cb6
movl $0x1, %r14d
movl $0xb, %r12d
movl 0xc(%r13), %eax
testl %eax, %eax
jns 0xd3d0e
movq 0x10(%r13), %rcx
testq %rcx, %rcx
je 0xd3da9
cmpq 0x20(%r13), %rcx
jae 0xd3cee
movq (%rcx), %rdx
addq $0x7, %rcx
movq %rcx, 0x10(%r13)
bswapq %rdx
shldq $0x38, %rdx, (%r13)
addl $0x38, %eax
movl %eax, 0xc(%r13)
jmp 0xd3d0e
movq %r13, %rdi
movq %r11, 0x8(%rsp)
callq 0xf096e
movq 0x8(%rsp), %r11
movabsq $0x100000000, %r10      # imm = 0x100000000
movq (%rsp), %rsi
addq %r12, %r11
movl 0xc(%r13), %ecx
movl 0x8(%r13), %edx
movl %edx, %eax
shrl %eax
movq (%r13), %r9
movq %r9, %rdi
shrq %cl, %rdi
movl %eax, %r8d
subl %edi, %r8d
sarl $0x1f, %r8d
movl %ecx, %edi
decl %edi
movl %edi, 0xc(%r13)
addl %r8d, %edx
incl %eax
andl %r8d, %eax
shlq %cl, %rax
orl $0x1, %edx
movl %edx, 0x8(%r13)
subq %rax, %r9
movq %r9, (%r13)
xorl %r8d, %r14d
subl %r8d, %r14d
xorl %eax, %eax
testq %rbx, %rbx
setg %al
movq 0x18(%rsp), %r12
imull (%r12,%rax,4), %r14d
sarq $0x20, %r15
leaq 0x5651b(%rip), %rax     # 0x12a290
movzbl (%r15,%rax), %eax
movq 0x20(%rsp), %r15
movw %r14w, (%r15,%rax,2)
movq %r11, %r9
cmpq $0xf, %rbx
jl 0xd3a0d
movl $0x10, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl %ebp, %eax
jmp 0xd3d96
leaq 0x566f0(%rip), %rdi     # 0x12a4a0
leaq 0x56708(%rip), %rsi     # 0x12a4bf
leaq 0x5676c(%rip), %rcx     # 0x12a52a
movl $0x3b, %edx
callq 0x55710