// File: /workspace/github_c_makefile_star2_O0/patriciogonzalezvivo[P]tprint/include/std/stb_image.h
// Function: stbi__process_marker(stbi__jpeg*, int)
static int stbi__process_marker(stbi__jpeg *z, int m)
{
   int L;
   switch (m) {
      case STBI__MARKER_none: // no marker found
         return stbi__err("expected marker","Corrupt JPEG");

      case 0xDD: // DRI - specify restart interval
         if (stbi__get16be(z->s) != 4) return stbi__err("bad DRI len","Corrupt JPEG");
         z->restart_interval = stbi__get16be(z->s);
         return 1;

      case 0xDB: // DQT - define quantization table
         L = stbi__get16be(z->s)-2;
         while (L > 0) {
            int q = stbi__get8(z->s);
            int p = q >> 4;
            int t = q & 15,i;
            if (p != 0) return stbi__err("bad DQT type","Corrupt JPEG");
            if (t > 3) return stbi__err("bad DQT table","Corrupt JPEG");
            for (i=0; i < 64; ++i)
               z->dequant[t][stbi__jpeg_dezigzag[i]] = stbi__get8(z->s);
            L -= 65;
         }
         return L==0;

      case 0xC4: // DHT - define huffman table
         L = stbi__get16be(z->s)-2;
         while (L > 0) {
            stbi_uc *v;
            int sizes[16],i,n=0;
            int q = stbi__get8(z->s);
            int tc = q >> 4;
            int th = q & 15;
            if (tc > 1 || th > 3) return stbi__err("bad DHT header","Corrupt JPEG");
            for (i=0; i < 16; ++i) {
               sizes[i] = stbi__get8(z->s);
               n += sizes[i];
            }
            L -= 17;
            if (tc == 0) {
               if (!stbi__build_huffman(z->huff_dc+th, sizes)) return 0;
               v = z->huff_dc[th].values;
            } else {
               if (!stbi__build_huffman(z->huff_ac+th, sizes)) return 0;
               v = z->huff_ac[th].values;
            }
            for (i=0; i < n; ++i)
               v[i] = stbi__get8(z->s);
            if (tc != 0)
               stbi__build_fast_ac(z->fast_ac[th], z->huff_ac + th);
            L -= n;
         }
         return L==0;
   }
   // check for comment block or APP blocks
   if ((m >= 0xE0 && m <= 0xEF) || m == 0xFE) {
      stbi__skip(z->s, stbi__get16be(z->s)-2);
      return 1;
   }
   return 0;
}

// Assembly:
subq $0x98, %rsp
movq %rdi, 0x88(%rsp)
movl %esi, 0x84(%rsp)
movl 0x84(%rsp), %eax
movl %eax, 0x8(%rsp)
subl $0xc4, %eax
je 0x20882
jmp 0x206be
movl 0x8(%rsp), %eax
subl $0xdb, %eax
je 0x20762
jmp 0x206cf
movl 0x8(%rsp), %eax
subl $0xdd, %eax
je 0x20705
jmp 0x206dc
movl 0x8(%rsp), %eax
subl $0xff, %eax
jne 0x20ae2
jmp 0x206ed
leaq 0xd386(%rip), %rdi      # 0x2da7a
callq 0x1a190
movl %eax, 0x94(%rsp)
jmp 0x20b4e
movq 0x88(%rsp), %rax
movq (%rax), %rdi
callq 0x21680
cmpl $0x4, %eax
je 0x20732
leaq 0xd369(%rip), %rdi      # 0x2da8a
callq 0x1a190
movl %eax, 0x94(%rsp)
jmp 0x20b4e
movq 0x88(%rsp), %rax
movq (%rax), %rdi
callq 0x21680
movl %eax, %ecx
movq 0x88(%rsp), %rax
movl %ecx, 0x475c(%rax)
movl $0x1, 0x94(%rsp)
jmp 0x20b4e
movq 0x88(%rsp), %rax
movq (%rax), %rdi
callq 0x21680
subl $0x2, %eax
movl %eax, 0x80(%rsp)
cmpl $0x0, 0x80(%rsp)
jle 0x20866
movq 0x88(%rsp), %rax
movq (%rax), %rdi
callq 0x21530
movzbl %al, %eax
movl %eax, 0x7c(%rsp)
movl 0x7c(%rsp), %eax
sarl $0x4, %eax
movl %eax, 0x78(%rsp)
movl 0x7c(%rsp), %eax
andl $0xf, %eax
movl %eax, 0x74(%rsp)
cmpl $0x0, 0x78(%rsp)
je 0x207d6
leaq 0xd2d1(%rip), %rdi      # 0x2da96
callq 0x1a190
movl %eax, 0x94(%rsp)
jmp 0x20b4e
cmpl $0x3, 0x74(%rsp)
jle 0x207f5
leaq 0xd2bf(%rip), %rdi      # 0x2daa3
callq 0x1a190
movl %eax, 0x94(%rsp)
jmp 0x20b4e
movl $0x0, 0x70(%rsp)
cmpl $0x40, 0x70(%rsp)
jge 0x20850
movq 0x88(%rsp), %rax
movq (%rax), %rdi
callq 0x21530
movb %al, %dl
movq 0x88(%rsp), %rax
addq $0x3488, %rax           # imm = 0x3488
movslq 0x74(%rsp), %rcx
shlq $0x6, %rcx
addq %rcx, %rax
movslq 0x70(%rsp), %rsi
leaq 0x15c34(%rip), %rcx     # 0x36470
movzbl (%rcx,%rsi), %ecx
movb %dl, (%rax,%rcx)
movl 0x70(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x70(%rsp)
jmp 0x207fd
movl 0x80(%rsp), %eax
subl $0x41, %eax
movl %eax, 0x80(%rsp)
jmp 0x2077c
cmpl $0x0, 0x80(%rsp)
sete %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, 0x94(%rsp)
jmp 0x20b4e
movq 0x88(%rsp), %rax
movq (%rax), %rdi
callq 0x21680
subl $0x2, %eax
movl %eax, 0x80(%rsp)
cmpl $0x0, 0x80(%rsp)
jle 0x20ac9
movl $0x0, 0x18(%rsp)
movq 0x88(%rsp), %rax
movq (%rax), %rdi
callq 0x21530
movzbl %al, %eax
movl %eax, 0x14(%rsp)
movl 0x14(%rsp), %eax
sarl $0x4, %eax
movl %eax, 0x10(%rsp)
movl 0x14(%rsp), %eax
andl $0xf, %eax
movl %eax, 0xc(%rsp)
cmpl $0x1, 0x10(%rsp)
jg 0x208ed
cmpl $0x3, 0xc(%rsp)
jle 0x20905
leaq 0xd1bd(%rip), %rdi      # 0x2dab1
callq 0x1a190
movl %eax, 0x94(%rsp)
jmp 0x20b4e
movl $0x0, 0x1c(%rsp)
cmpl $0x10, 0x1c(%rsp)
jge 0x2094e
movq 0x88(%rsp), %rax
movq (%rax), %rdi
callq 0x21530
movzbl %al, %ecx
movslq 0x1c(%rsp), %rax
movl %ecx, 0x20(%rsp,%rax,4)
movslq 0x1c(%rsp), %rax
movl 0x20(%rsp,%rax,4), %eax
addl 0x18(%rsp), %eax
movl %eax, 0x18(%rsp)
movl 0x1c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x1c(%rsp)
jmp 0x2090d
movl 0x80(%rsp), %eax
subl $0x11, %eax
movl %eax, 0x80(%rsp)
cmpl $0x0, 0x10(%rsp)
jne 0x209c8
movq 0x88(%rsp), %rdi
addq $0x8, %rdi
movslq 0xc(%rsp), %rax
imulq $0x690, %rax, %rax      # imm = 0x690
addq %rax, %rdi
leaq 0x20(%rsp), %rsi
callq 0x216c0
cmpl $0x0, %eax
jne 0x209a0
movl $0x0, 0x94(%rsp)
jmp 0x20b4e
movq 0x88(%rsp), %rax
addq $0x8, %rax
movslq 0xc(%rsp), %rcx
imulq $0x690, %rcx, %rcx      # imm = 0x690
addq %rcx, %rax
addq $0x400, %rax            # imm = 0x400
movq %rax, 0x68(%rsp)
jmp 0x20a2d
movq 0x88(%rsp), %rdi
addq $0x1a48, %rdi           # imm = 0x1A48
movslq 0xc(%rsp), %rax
imulq $0x690, %rax, %rax      # imm = 0x690
addq %rax, %rdi
leaq 0x20(%rsp), %rsi
callq 0x216c0
cmpl $0x0, %eax
jne 0x20a05
movl $0x0, 0x94(%rsp)
jmp 0x20b4e
movq 0x88(%rsp), %rax
addq $0x1a48, %rax           # imm = 0x1A48
movslq 0xc(%rsp), %rcx
imulq $0x690, %rcx, %rcx      # imm = 0x690
addq %rcx, %rax
addq $0x400, %rax            # imm = 0x400
movq %rax, 0x68(%rsp)
movl $0x0, 0x1c(%rsp)
movl 0x1c(%rsp), %eax
cmpl 0x18(%rsp), %eax
jge 0x20a6b
movq 0x88(%rsp), %rax
movq (%rax), %rdi
callq 0x21530
movb %al, %dl
movq 0x68(%rsp), %rax
movslq 0x1c(%rsp), %rcx
movb %dl, (%rax,%rcx)
movl 0x1c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x1c(%rsp)
jmp 0x20a35
cmpl $0x0, 0x10(%rsp)
je 0x20ab0
movq 0x88(%rsp), %rdi
addq $0x3588, %rdi           # imm = 0x3588
movslq 0xc(%rsp), %rax
shlq $0xa, %rax
addq %rax, %rdi
movq 0x88(%rsp), %rsi
addq $0x1a48, %rsi           # imm = 0x1A48
movslq 0xc(%rsp), %rax
imulq $0x690, %rax, %rax      # imm = 0x690
addq %rax, %rsi
callq 0x21950
movl 0x18(%rsp), %ecx
movl 0x80(%rsp), %eax
subl %ecx, %eax
movl %eax, 0x80(%rsp)
jmp 0x2089c
cmpl $0x0, 0x80(%rsp)
sete %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, 0x94(%rsp)
jmp 0x20b4e
cmpl $0xe0, 0x84(%rsp)
jl 0x20afc
cmpl $0xef, 0x84(%rsp)
jle 0x20b09
cmpl $0xfe, 0x84(%rsp)
jne 0x20b43
movq 0x88(%rsp), %rax
movq (%rax), %rax
movq %rax, (%rsp)
movq 0x88(%rsp), %rax
movq (%rax), %rdi
callq 0x21680
movq (%rsp), %rdi
movl %eax, %esi
subl $0x2, %esi
callq 0x21ab0
movl $0x1, 0x94(%rsp)
jmp 0x20b4e
movl $0x0, 0x94(%rsp)
movl 0x94(%rsp), %eax
addq $0x98, %rsp
retq
nopl (%rax)