// File: /workspace/github_c_makefile_star2_O1/zhiyb[P]png2tlg/./stb_image.h
// Function: stbi__jpeg_decode_block(stbi__jpeg*, short*, stbi__huffman*, stbi__huffman*, short*, int, unsigned short*)
static int stbi__jpeg_decode_block(stbi__jpeg *j, short data[64], stbi__huffman *hdc, stbi__huffman *hac, stbi__int16 *fac, int b, stbi__uint16 *dequant)
{
   int diff,dc,k;
   int t;

   if (j->code_bits < 16) stbi__grow_buffer_unsafe(j);
   t = stbi__jpeg_huff_decode(j, hdc);
   if (t < 0) return stbi__err("bad huffman code","Corrupt JPEG");

   // 0 all the ac values now so we can do it 32-bits at a time
   memset(data,0,64*sizeof(data[0]));

   diff = t ? stbi__extend_receive(j, t) : 0;
   dc = j->img_comp[b].dc_pred + diff;
   j->img_comp[b].dc_pred = dc;
   data[0] = (short) (dc * dequant[0]);

   // decode AC components, see JPEG spec
   k = 1;
   do {
      unsigned int zig;
      int c,r,s;
      if (j->code_bits < 16) stbi__grow_buffer_unsafe(j);
      c = (j->code_buffer >> (32 - FAST_BITS)) & ((1 << FAST_BITS)-1);
      r = fac[c];
      if (r) { // fast-AC path
         k += (r >> 4) & 15; // run
         s = r & 15; // combined length
         j->code_buffer <<= s;
         j->code_bits -= s;
         // decode into unzigzag'd location
         zig = stbi__jpeg_dezigzag[k++];
         data[zig] = (short) ((r >> 8) * dequant[zig]);
      } else {
         int rs = stbi__jpeg_huff_decode(j, hac);
         if (rs < 0) return stbi__err("bad huffman code","Corrupt JPEG");
         s = rs & 15;
         r = rs >> 4;
         if (s == 0) {
            if (rs != 0xf0) break; // end block
            k += 16;
         } else {
            k += r;
            // decode into unzigzag'd location
            zig = stbi__jpeg_dezigzag[k++];
            data[zig] = (short) (stbi__extend_receive(j,s) * dequant[zig]);
         }
      }
   } while (k < 64);
   return 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %r9d, 0x4(%rsp)
movq %r8, %r15
movq %rcx, %r14
movq %rdx, %r13
movq %rsi, %rbx
movq %rdi, %r12
cmpl $0xf, 0x4824(%rdi)
jg 0xf9d1
movq %r12, %rdi
callq 0xfebe
cmpl $0xf, 0x4824(%r12)
jg 0xf9e4
movq %r12, %rdi
callq 0xfebe
movl 0x4820(%r12), %edx
movl %edx, %eax
shrl $0x17, %eax
movzbl (%r13,%rax), %eax
cmpq $0xff, %rax
je 0xfa3d
movzbl 0x500(%r13,%rax), %ecx
movl 0x4824(%r12), %esi
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
subl %ecx, %esi
jl 0xfaef
shll %cl, %edx
movl %edx, 0x4820(%r12)
movl %esi, 0x4824(%r12)
movzbl 0x400(%r13,%rax), %ebp
jmp 0xfaef
movl %edx, %eax
shrl $0x10, %eax
xorl %edi, %edi
movq %rdi, %rcx
incq %rdi
cmpl 0x62c(%r13,%rcx,4), %eax
jae 0xfa44
movl 0x4824(%r12), %esi
cmpq $0x8, %rdi
jne 0xfa74
addl $-0x10, %esi
movl %esi, 0x4824(%r12)
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
jmp 0xfaef
leaq 0x9(%rdi), %rax
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
cmpl %eax, %esi
jl 0xfaef
movb $0x17, %cl
subb %dil, %cl
movl %edx, %r8d
shrl %cl, %r8d
leaq 0x799d(%rip), %r9       # 0x17430
andl 0x24(%r9,%rdi,4), %r8d
addl 0x670(%r13,%rdi,4), %r8d
movslq %r8d, %r8
movzbl 0x500(%r13,%r8), %r10d
movl %r10d, %ecx
negb %cl
movl %edx, %r11d
shrl %cl, %r11d
andl (%r9,%r10,4), %r11d
movzwl 0x200(%r13,%r8,2), %ecx
cmpl %ecx, %r11d
jne 0xfe9f
subl %edi, %esi
movl %eax, %ecx
shll %cl, %edx
addl $-0x9, %esi
movl %esi, 0x4824(%r12)
movl %edx, 0x4820(%r12)
movzbl 0x400(%r13,%r8), %ebp
testl %ebp, %ebp
js 0xfb7c
xorps %xmm0, %xmm0
movups %xmm0, 0x70(%rbx)
movups %xmm0, 0x60(%rbx)
movups %xmm0, 0x50(%rbx)
movups %xmm0, 0x40(%rbx)
movups %xmm0, 0x30(%rbx)
movups %xmm0, 0x20(%rbx)
movups %xmm0, 0x10(%rbx)
movups %xmm0, (%rbx)
je 0xfb8f
cmpl %ebp, 0x4824(%r12)
jge 0xfb2d
movq %r12, %rdi
callq 0xfebe
cmpl $0x11, %ebp
jae 0xfe80
movl 0x4820(%r12), %esi
movl %esi, %eax
movl %ebp, %ecx
roll %cl, %eax
movl %ebp, %edx
leaq 0x78e3(%rip), %rcx      # 0x17430
movl (%rcx,%rdx,4), %ecx
movl %ecx, %edi
notl %edi
andl %eax, %edi
movl %edi, 0x4820(%r12)
subl %ebp, 0x4824(%r12)
andl %ecx, %eax
xorl %ecx, %ecx
testl %esi, %esi
js 0xfb78
leaq 0x790b(%rip), %rcx      # 0x17480
movl (%rcx,%rdx,4), %ecx
addl %eax, %ecx
jmp 0xfb91
leaq 0x7feb(%rip), %rax      # 0x17b6e
movq %rax, 0xc69e(%rip)      # 0x1c228
jmp 0xfe6f
xorl %ecx, %ecx
movq 0x50(%rsp), %r13
movslq 0x4(%rsp), %rax
leaq (%rax,%rax,2), %rax
shlq $0x5, %rax
addl 0x46b8(%r12,%rax), %ecx
movl %ecx, 0x46b8(%r12,%rax)
imulw (%r13), %cx
movw %cx, (%rbx)
movl $0x1, %ebp
movq %r15, 0x10(%rsp)
movq %rbx, 0x8(%rsp)
cmpl $0xf, 0x4824(%r12)
jg 0xfbde
movq %r12, %rdi
callq 0xfebe
movl 0x4820(%r12), %eax
movl %eax, %ecx
shrl $0x17, %ecx
movzwl (%r15,%rcx,2), %ecx
testl %ecx, %ecx
je 0xfc55
movswl %cx, %edx
movl %ecx, %esi
shrl $0x4, %esi
andl $0xf, %esi
movslq %ebp, %rdi
addq %rsi, %rdi
andl $0xf, %ecx
shll %cl, %eax
movl %eax, 0x4820(%r12)
subl %ecx, 0x4824(%r12)
leal 0x1(%rdi), %ebp
leaq 0x77ac(%rip), %rax      # 0x173d0
movzbl (%rax,%rdi), %eax
shrl $0x8, %edx
addl %eax, %eax
imulw (%r13,%rax), %dx
movw %dx, (%rbx,%rax)
xorl %ecx, %ecx
movl $0x1, %eax
testl %ecx, %ecx
jne 0xfe6a
cmpl $0x40, %ebp
jl 0xfbcb
jmp 0xfe71
cmpl $0xf, 0x4824(%r12)
jg 0xfc68
movq %r12, %rdi
callq 0xfebe
movl 0x4820(%r12), %edx
movl %edx, %eax
shrl $0x17, %eax
movzbl (%r14,%rax), %eax
cmpq $0xff, %rax
je 0xfcc1
movzbl 0x500(%r14,%rax), %ecx
movl 0x4824(%r12), %esi
movl $0xffffffff, %r8d       # imm = 0xFFFFFFFF
subl %ecx, %esi
jl 0xfd75
shll %cl, %edx
movl %edx, 0x4820(%r12)
movl %esi, 0x4824(%r12)
movzbl 0x400(%r14,%rax), %r8d
jmp 0xfd75
movl %edx, %eax
shrl $0x10, %eax
xorl %edi, %edi
movq %rdi, %rcx
incq %rdi
cmpl 0x62c(%r14,%rcx,4), %eax
jae 0xfcc8
movl 0x4824(%r12), %esi
cmpq $0x8, %rdi
jne 0xfcf9
addl $-0x10, %esi
movl %esi, 0x4824(%r12)
movl $0xffffffff, %r8d       # imm = 0xFFFFFFFF
jmp 0xfd75
leaq 0x9(%rdi), %rax
movl $0xffffffff, %r8d       # imm = 0xFFFFFFFF
cmpl %eax, %esi
jl 0xfd75
movb $0x17, %cl
subb %dil, %cl
movl %edx, %r8d
shrl %cl, %r8d
leaq 0x7717(%rip), %r11      # 0x17430
andl 0x24(%r11,%rdi,4), %r8d
addl 0x670(%r14,%rdi,4), %r8d
movslq %r8d, %r8
movzbl 0x500(%r14,%r8), %r9d
movl %r9d, %ecx
negb %cl
movl %edx, %r10d
shrl %cl, %r10d
andl (%r11,%r9,4), %r10d
movzwl 0x200(%r14,%r8,2), %ecx
cmpl %ecx, %r10d
jne 0xfe9f
subl %edi, %esi
movl %eax, %ecx
shll %cl, %edx
addl $-0x9, %esi
movl %esi, 0x4824(%r12)
movl %edx, 0x4820(%r12)
movzbl 0x400(%r14,%r8), %r8d
testl %r8d, %r8d
js 0xfe31
movq %r15, %rdx
movq %r13, %r15
movl %r8d, %r13d
andl $0xf, %r13d
je 0xfe49
shrl $0x4, %r8d
movslq %ebp, %rbp
addq %r8, %rbp
leaq 0x762e(%rip), %rax      # 0x173d0
movzbl (%rax,%rbp), %ebx
cmpl %r13d, 0x4824(%r12)
jge 0xfdb8
movq %r12, %rdi
callq 0xfebe
movl 0x4820(%r12), %r8d
movl %r8d, %eax
movl %r13d, %ecx
roll %cl, %eax
leal (,%r13,4), %esi
leaq 0x7659(%rip), %rcx      # 0x17430
movl (%rsi,%rcx), %edx
movl %edx, %ecx
notl %ecx
andl %eax, %ecx
movl %ecx, 0x4820(%r12)
subl %r13d, 0x4824(%r12)
xorl %ecx, %ecx
movl $0x0, %edi
testl %r8d, %r8d
js 0xfe06
leaq 0x767d(%rip), %rdi      # 0x17480
movl (%rsi,%rdi), %edi
incl %ebp
andl %edx, %eax
addl %edi, %eax
addl %ebx, %ebx
movq %r15, %r13
imulw (%r15,%rbx), %ax
movq 0x8(%rsp), %r15
movw %ax, (%r15,%rbx)
movq 0x10(%rsp), %rax
movq %r15, %rbx
movq %rax, %r15
jmp 0xfc3a
leaq 0x7d36(%rip), %rax      # 0x17b6e
movq %rax, 0xc3e9(%rip)      # 0x1c228
movl $0x1, %ecx
jmp 0xfc3a
leal 0x10(%rbp), %eax
xorl %ecx, %ecx
cmpl $0xf0, %r8d
setne %cl
cmovnel %ebp, %eax
addl %ecx, %ecx
movl %eax, %ebp
movq %r15, %r13
movq %rdx, %r15
jmp 0xfc3a
cmpl $0x2, %ecx
je 0xfe71
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x7d84(%rip), %rdi      # 0x17c0b
leaq 0x7af8(%rip), %rsi      # 0x17986
leaq 0x7db5(%rip), %rcx      # 0x17c4a
movl $0x7b5, %edx            # imm = 0x7B5
callq 0x2100
leaq 0x7cd9(%rip), %rdi      # 0x17b7f
leaq 0x7ad9(%rip), %rsi      # 0x17986
leaq 0x7d1d(%rip), %rcx      # 0x17bd1
movl $0x7a0, %edx            # imm = 0x7A0
callq 0x2100