// File: /workspace/github_c_makefile_star2_O1/zhiyb[P]png2tlg/./stb_image.h
// Function: stbi__pic_load(stbi__context*, int*, int*, int*, int, stbi__result_info*)
static void *stbi__pic_load(stbi__context *s,int *px,int *py,int *comp,int req_comp, stbi__result_info *ri)
{
   stbi_uc *result;
   int i, x,y, internal_comp;
   STBI_NOTUSED(ri);

   if (!comp) comp = &internal_comp;

   for (i=0; i<92; ++i)
      stbi__get8(s);

   x = stbi__get16be(s);
   y = stbi__get16be(s);
   if (stbi__at_eof(s))  return stbi__errpuc("bad file","file too short (pic header)");
   if (!stbi__mad3sizes_valid(x, y, 4, 0)) return stbi__errpuc("too large", "PIC image too large to decode");

   stbi__get32be(s); //skip `ratio'
   stbi__get16be(s); //skip `fields'
   stbi__get16be(s); //skip `pad'

   // intermediate buffer is RGBA
   result = (stbi_uc *) stbi__malloc_mad3(x, y, 4, 0);
   memset(result, 0xff, x*y*4);

   if (!stbi__pic_load_core(s,x,y,comp, result)) {
      STBI_FREE(result);
      result=0;
   }
   *px = x;
   *py = y;
   if (req_comp == 0) req_comp = *comp;
   result=stbi__convert_format(result,4,req_comp,x,y);

   return result;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movl %r8d, %ebp
movq %rcx, %r12
movq %rdx, 0x78(%rsp)
movq %rsi, 0x70(%rsp)
movq %rdi, %r14
leaq 0x38(%rdi), %r15
leaq 0x39(%rdi), %rax
movq %rax, 0x30(%rsp)
movl $0x5c, %ebx
movq 0xb8(%r14), %rax
cmpq 0xc0(%r14), %rax
jb 0xadf9
cmpl $0x0, 0x30(%r14)
je 0xae03
movq 0x28(%r14), %rdi
movl 0x34(%r14), %edx
movq %r15, %rsi
callq *0x10(%r14)
testl %eax, %eax
je 0xadd2
movq %r15, 0xb8(%r14)
cltq
addq %r15, %rax
movq %rax, 0xc0(%r14)
jmp 0xadf2
movl $0x0, 0x30(%r14)
movq %r15, 0xb8(%r14)
movq 0x30(%rsp), %rax
movq %rax, 0xc0(%r14)
movb $0x0, 0x38(%r14)
movq 0xb8(%r14), %rax
incq %rax
movq %rax, 0xb8(%r14)
decl %ebx
jne 0xad93
movq %r14, %rdi
callq 0xf497
movq %rax, 0x18(%rsp)
movq %r14, %rdi
callq 0xf497
movl %eax, %r13d
cmpq $0x0, 0x10(%r14)
je 0xae3d
movq 0x28(%r14), %rdi
callq *0x20(%r14)
testl %eax, %eax
je 0xae51
cmpl $0x0, 0x30(%r14)
je 0xb5a8
movq 0xb8(%r14), %rax
cmpq 0xc0(%r14), %rax
jae 0xb5a8
testl %r13d, %r13d
je 0xb5b1
movl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
xorl %edx, %edx
divl %r13d
movq 0x18(%rsp), %rbx
cmpl %ebx, %eax
jb 0xb5c7
movl %r13d, %eax
imull %ebx, %eax
cmpl $0x1fffffff, %eax       # imm = 0x1FFFFFFF
ja 0xb5c7
movl %ebp, 0x14(%rsp)
movq %r12, 0x28(%rsp)
movq %r14, %rdi
callq 0xf497
movq %r14, %rdi
callq 0xf497
movq %r14, %rdi
callq 0xf497
movq %r14, %rdi
callq 0xf497
movl %ebx, %edi
movl %r13d, %esi
movl $0x4, %edx
xorl %ecx, %ecx
callq 0xf848
movl %r13d, 0x38(%rsp)
movl %r13d, %edx
imull %ebx, %edx
shll $0x2, %edx
movq %rax, 0x20(%rsp)
movq %rax, %rdi
movl $0xff, %esi
callq 0x20f0
xorl %r13d, %r13d
movl $0x0, 0x10(%rsp)
cmpl $0xa, %r13d
jne 0xaef9
leaq 0xd29f(%rip), %rax      # 0x18193
jmp 0xb152
movq 0xb8(%r14), %rax
cmpq 0xc0(%r14), %rax
jb 0xaf64
cmpl $0x0, 0x30(%r14)
je 0xaf38
movq 0x28(%r14), %rdi
movl 0x34(%r14), %edx
movq %r15, %rsi
callq *0x10(%r14)
testl %eax, %eax
je 0xaf3d
movq %r15, 0xb8(%r14)
cltq
addq %r15, %rax
movq %rax, 0xc0(%r14)
jmp 0xaf5d
xorl %r12d, %r12d
jmp 0xaf73
movl $0x0, 0x30(%r14)
movq %r15, 0xb8(%r14)
movq 0x30(%rsp), %rax
movq %rax, 0xc0(%r14)
movb $0x0, 0x38(%r14)
movq 0xb8(%r14), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0xb8(%r14)
movzbl (%rax), %r12d
movq 0xb8(%r14), %rax
cmpq 0xc0(%r14), %rax
jb 0xafdd
cmpl $0x0, 0x30(%r14)
je 0xafb2
movq 0x28(%r14), %rdi
movl 0x34(%r14), %edx
movq %r15, %rsi
callq *0x10(%r14)
testl %eax, %eax
je 0xafb6
movq %r15, 0xb8(%r14)
cltq
addq %r15, %rax
movq %rax, 0xc0(%r14)
jmp 0xafd6
xorl %ebx, %ebx
jmp 0xafea
movl $0x0, 0x30(%r14)
movq %r15, 0xb8(%r14)
movq 0x30(%rsp), %rax
movq %rax, 0xc0(%r14)
movb $0x0, 0x38(%r14)
movq 0xb8(%r14), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0xb8(%r14)
movb (%rax), %bl
movl %r13d, %ebp
movslq %r13d, %rax
leaq (%rax,%rax,2), %rax
leaq (%rsp,%rax), %r13
addq $0x80, %r13
movb %bl, (%r13)
movq 0xb8(%r14), %rax
cmpq 0xc0(%r14), %rax
jb 0xb06d
cmpl $0x0, 0x30(%r14)
je 0xb042
movq 0x28(%r14), %rdi
movl 0x34(%r14), %edx
movq %r15, %rsi
callq *0x10(%r14)
testl %eax, %eax
je 0xb046
movq %r15, 0xb8(%r14)
cltq
addq %r15, %rax
movq %rax, 0xc0(%r14)
jmp 0xb066
xorl %eax, %eax
jmp 0xb07a
movl $0x0, 0x30(%r14)
movq %r15, 0xb8(%r14)
movq 0x30(%rsp), %rax
movq %rax, 0xc0(%r14)
movb $0x0, 0x38(%r14)
movq 0xb8(%r14), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0xb8(%r14)
movb (%rax), %al
movb %al, 0x1(%r13)
movq 0xb8(%r14), %rax
cmpq 0xc0(%r14), %rax
jb 0xb0e8
cmpl $0x0, 0x30(%r14)
je 0xb0bd
movq 0x28(%r14), %rdi
movl 0x34(%r14), %edx
movq %r15, %rsi
callq *0x10(%r14)
testl %eax, %eax
je 0xb0c1
movq %r15, 0xb8(%r14)
cltq
addq %r15, %rax
movq %rax, 0xc0(%r14)
jmp 0xb0e1
xorl %eax, %eax
jmp 0xb0f5
movl $0x0, 0x30(%r14)
movq %r15, 0xb8(%r14)
movq 0x30(%rsp), %rax
movq %rax, 0xc0(%r14)
movb $0x0, 0x38(%r14)
movq 0xb8(%r14), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0xb8(%r14)
movb (%rax), %al
incl %ebp
movb %al, 0x2(%r13)
movzbl %al, %eax
movl 0x10(%rsp), %r13d
orl %eax, %r13d
cmpq $0x0, 0x10(%r14)
movl %r13d, 0x10(%rsp)
je 0xb125
movq 0x28(%r14), %rdi
callq *0x20(%r14)
testl %eax, %eax
je 0xb135
cmpl $0x0, 0x30(%r14)
je 0xb148
movq 0xb8(%r14), %rax
cmpq 0xc0(%r14), %rax
jae 0xb148
movb $0x1, %cl
leaq 0xd055(%rip), %rax      # 0x18193
cmpb $0x8, %bl
movl %ebp, %r13d
jne 0xb152
jmp 0xb15b
leaq 0xd03b(%rip), %rax      # 0x1818a
movl %ebp, %r13d
movq %rax, 0x110cf(%rip)     # 0x1c228
xorl %ecx, %ecx
testb %cl, %cl
je 0xb5d9
testl %r12d, %r12d
jne 0xaee7
movl 0x10(%rsp), %eax
andl $0x10, %eax
cmpl $0x1, %eax
movl $0x4, %eax
sbbl $0x0, %eax
movq 0x28(%rsp), %rbx
testq %rbx, %rbx
je 0xb18a
movl %eax, (%rbx)
movl %eax, 0x54(%rsp)
movl 0x38(%rsp), %eax
testl %eax, %eax
movl 0x14(%rsp), %ebp
movq 0x18(%rsp), %r12
je 0xb649
leal (,%r12,4), %ecx
movl %ecx, 0x50(%rsp)
movl %eax, %eax
movq %rax, 0x58(%rsp)
movl %r13d, %eax
movq %rax, 0x60(%rsp)
movq $0x0, 0x40(%rsp)
movl %r13d, 0xc(%rsp)
testl %r13d, %r13d
jle 0xb581
movl 0x50(%rsp), %eax
imull 0x40(%rsp), %eax
cltq
addq 0x20(%rsp), %rax
movq %rax, 0x48(%rsp)
xorl %eax, %eax
movq %rax, 0x68(%rsp)
leaq (%rax,%rax,2), %rax
leaq (%rsp,%rax), %r12
addq $0x80, %r12
movzbl 0x1(%r12), %eax
testl %eax, %eax
je 0xb530
movq 0x48(%rsp), %rbx
movq 0x18(%rsp), %rcx
movl %ecx, %ebp
cmpl $0x1, %eax
je 0xb526
movq 0x48(%rsp), %rbx
movq 0x18(%rsp), %rcx
movl %ecx, 0x10(%rsp)
cmpl $0x2, %eax
jne 0xb653
cmpl $0x0, 0x10(%rsp)
jle 0xb565
movq 0xb8(%r14), %rax
cmpq 0xc0(%r14), %rax
jb 0xb2af
cmpl $0x0, 0x30(%r14)
je 0xb284
movq 0x28(%r14), %rdi
movl 0x34(%r14), %edx
movq %r15, %rsi
callq *0x10(%r14)
testl %eax, %eax
je 0xb288
movq %r15, 0xb8(%r14)
cltq
addq %r15, %rax
movq %rax, 0xc0(%r14)
jmp 0xb2a8
xorl %ebp, %ebp
jmp 0xb2bd
movl $0x0, 0x30(%r14)
movq %r15, 0xb8(%r14)
movq 0x30(%rsp), %rax
movq %rax, 0xc0(%r14)
movb $0x0, 0x38(%r14)
movq 0xb8(%r14), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0xb8(%r14)
movb (%rax), %bpl
cmpq $0x0, 0x10(%r14)
je 0xb2d7
movq 0x28(%r14), %rdi
callq *0x20(%r14)
testl %eax, %eax
je 0xb2e7
cmpl $0x0, 0x30(%r14)
je 0xb327
movq 0xb8(%r14), %rax
cmpq 0xc0(%r14), %rax
jae 0xb327
movzbl %bpl, %r13d
testb %r13b, %r13b
js 0xb33c
cmpl %r13d, 0x10(%rsp)
jle 0xb351
leal 0x1(%r13), %ebp
incl %r13d
movzbl 0x2(%r12), %esi
movq %r14, %rdi
movq %rbx, %rdx
callq 0x149f5
testq %rax, %rax
je 0xb35f
addq $0x4, %rbx
decl %r13d
jne 0xb2fe
movl 0xc(%rsp), %r13d
jmp 0xb3e8
leaq 0xce5c(%rip), %rax      # 0x1818a
movq %rax, 0x10ef3(%rip)     # 0x1c228
xorl %eax, %eax
jmp 0xb3ee
cmpl $0x80, %r13d
jne 0xb36b
movq %r14, %rdi
callq 0xf497
movl %eax, %ebp
jmp 0xb372
leaq 0xce32(%rip), %rax      # 0x1818a
movq %rax, 0x10ec9(%rip)     # 0x1c228
xorl %eax, %eax
movl 0xc(%rsp), %r13d
jmp 0xb3ee
addl $-0x7f, %r13d
movl %r13d, %ebp
movl 0xc(%rsp), %r13d
cmpl 0x10(%rsp), %ebp
jle 0xb38d
leaq 0xce06(%rip), %rax      # 0x1818a
movq %rax, 0x10e9d(%rip)     # 0x1c228
jmp 0xb3de
movzbl 0x2(%r12), %esi
movq %r14, %rdi
leaq 0x3c(%rsp), %rdx
callq 0x149f5
testq %rax, %rax
je 0xb3de
movb $0x1, %al
testl %ebp, %ebp
jle 0xb3e0
xorl %ecx, %ecx
movzbl 0x2(%r12), %edx
movl $0x80, %esi
xorl %edi, %edi
testl %edx, %esi
je 0xb3c7
movb 0x3c(%rsp,%rdi), %r8b
movb %r8b, (%rbx,%rdi)
incq %rdi
shrl %esi
cmpq $0x4, %rdi
jne 0xb3ba
incl %ecx
addq $0x4, %rbx
cmpl %ebp, %ecx
jne 0xb3ad
jmp 0xb3e0
xorl %eax, %eax
testb %al, %al
je 0xb335
subl %ebp, 0x10(%rsp)
movb $0x1, %al
testb %al, %al
jne 0xb23a
jmp 0xb5d9
movq 0xb8(%r14), %rax
cmpq 0xc0(%r14), %rax
jb 0xb466
cmpl $0x0, 0x30(%r14)
je 0xb43a
movq 0x28(%r14), %rdi
movl 0x34(%r14), %edx
movq %r15, %rsi
callq *0x10(%r14)
testl %eax, %eax
je 0xb43f
movq %r15, 0xb8(%r14)
cltq
addq %r15, %rax
movq %rax, 0xc0(%r14)
jmp 0xb45f
xorl %r13d, %r13d
jmp 0xb474
movl $0x0, 0x30(%r14)
movq %r15, 0xb8(%r14)
movq 0x30(%rsp), %rax
movq %rax, 0xc0(%r14)
movb $0x0, 0x38(%r14)
movq 0xb8(%r14), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0xb8(%r14)
movb (%rax), %r13b
cmpq $0x0, 0x10(%r14)
je 0xb48e
movq 0x28(%r14), %rdi
callq *0x20(%r14)
testl %eax, %eax
je 0xb49e
cmpl $0x0, 0x30(%r14)
je 0xb4fe
movq 0xb8(%r14), %rax
cmpq 0xc0(%r14), %rax
jae 0xb4fe
movzbl 0x2(%r12), %esi
movq %r14, %rdi
leaq 0x3c(%rsp), %rdx
callq 0x149f5
testq %rax, %rax
je 0xb50c
movzbl %r13b, %eax
cmpl %eax, %ebp
cmovll %ebp, %eax
movzbl %al, %eax
testb %al, %al
je 0xb515
xorl %ecx, %ecx
movl 0xc(%rsp), %r13d
movzbl 0x2(%r12), %edx
movl $0x80, %esi
xorl %edi, %edi
testl %edx, %esi
je 0xb4e7
movb 0x3c(%rsp,%rdi), %r8b
movb %r8b, (%rbx,%rdi)
incq %rdi
shrl %esi
cmpq $0x4, %rdi
jne 0xb4da
incl %ecx
addq $0x4, %rbx
cmpl %eax, %ecx
jne 0xb4cd
jmp 0xb51a
leaq 0xcc85(%rip), %rax      # 0x1818a
movq %rax, 0x10d1c(%rip)     # 0x1c228
xorl %eax, %eax
movl 0xc(%rsp), %r13d
jmp 0xb51e
movl 0xc(%rsp), %r13d
subl %eax, %ebp
movb $0x1, %al
testb %al, %al
je 0xb5d9
testl %ebp, %ebp
jg 0xb3fb
jmp 0xb565
cmpl $0x0, 0x18(%rsp)
je 0xb565
movzbl 0x2(%r12), %ebx
movq 0x18(%rsp), %rax
movl %eax, %r12d
movq 0x48(%rsp), %rbp
movq %r14, %rdi
movl %ebx, %esi
movq %rbp, %rdx
callq 0x149f5
testq %rax, %rax
je 0xb5d9
addq $0x4, %rbp
decl %r12d
jne 0xb54a
movq 0x68(%rsp), %rax
incq %rax
cmpq 0x60(%rsp), %rax
movq 0x28(%rsp), %rbx
movl 0x14(%rsp), %ebp
jne 0xb1ec
movq 0x40(%rsp), %rcx
incq %rcx
movq %rcx, 0x40(%rsp)
cmpq 0x58(%rsp), %rcx
jne 0xb1cc
movq 0x20(%rsp), %rdi
movq %rdi, %rax
movq 0x18(%rsp), %r12
jmp 0xb5ee
leaq 0xcbdb(%rip), %rax      # 0x1818a
jmp 0xb5ce
movl %r13d, %eax
movq 0x18(%rsp), %rbx
imull %ebx, %eax
cmpl $0x20000000, %eax       # imm = 0x20000000
jb 0xae82
leaq 0xc521(%rip), %rax      # 0x17aef
movq %rax, 0x10c53(%rip)     # 0x1c228
xorl %eax, %eax
jmp 0xb637
movq 0x28(%rsp), %rbx
movl 0x14(%rsp), %ebp
movq 0x18(%rsp), %r12
movq 0x20(%rsp), %rdi
xorl %eax, %eax
testq %rax, %rax
jne 0xb5fa
callq 0x21e0
xorl %edi, %edi
testq %rbx, %rbx
sete %al
movq 0x70(%rsp), %rcx
movl %r12d, (%rcx)
movq 0x78(%rsp), %rcx
movl 0x38(%rsp), %edx
movl %edx, (%rcx)
testl %ebp, %ebp
setne %cl
movl 0x54(%rsp), %edx
cmovnel %ebp, %edx
orb %al, %cl
jne 0xb625
movl (%rbx), %edx
movl $0x4, %esi
movl %r12d, %ecx
movl 0x38(%rsp), %r8d
callq 0x115e7
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x20(%rsp), %rdi
movq %rdi, %rax
jmp 0xb5ee
leaq 0xcb39(%rip), %rax      # 0x18193
movq %rax, 0x10bc7(%rip)     # 0x1c228
xorl %eax, %eax
movq 0x28(%rsp), %rbx
movl 0x14(%rsp), %ebp
movq 0x18(%rsp), %r12
movq 0x20(%rsp), %rdi
jmp 0xb5ee