// File: /workspace/github_cpp_makefile_star2_O3/alan0201tw[P]RayTracer/include/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), %r13
movq 0xb8(%rdi), %rcx
movq 0xc0(%rdi), %rax
movl $0x5c, %ebx
cmpq %rax, %rcx
jae 0x2dd9e
incq %rcx
jmp 0x2ddd9
cmpl $0x0, 0x30(%r14)
je 0x2dde0
movq 0x28(%r14), %rdi
movl 0x34(%r14), %edx
movq %r15, %rsi
callq *0x10(%r14)
testl %eax, %eax
je 0x2ddbf
cltq
addq %r15, %rax
jmp 0x2ddcf
movl $0x0, 0x30(%r14)
movb $0x0, 0x38(%r14)
movq %r13, %rax
movq %rax, 0xc0(%r14)
movq %r13, %rcx
movq %rcx, 0xb8(%r14)
decl %ebx
jne 0x2dd94
movq %r14, %rdi
callq 0x31b23
movq %rax, 0x8(%rsp)
movq %r14, %rdi
callq 0x31b23
movl %eax, 0x14(%rsp)
cmpq $0x0, 0x10(%r14)
je 0x2de17
movq 0x28(%r14), %rdi
callq *0x20(%r14)
testl %eax, %eax
je 0x2de27
cmpl $0x0, 0x30(%r14)
je 0x2de74
movq 0xb8(%r14), %rax
cmpq 0xc0(%r14), %rax
jae 0x2de74
movl %ebp, 0x1c(%rsp)
movq %r12, 0x30(%rsp)
xorl %ebp, %ebp
movl $0x0, %ebx
movl 0x14(%rsp), %r12d
testl %r12d, %r12d
je 0x2de89
movl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
xorl %edx, %edx
divl %r12d
movq 0x8(%rsp), %rcx
cmpl %ecx, %eax
setb %al
movl %r12d, %ebx
imull %ecx, %ebx
cmpl $0x20000000, %ebx       # imm = 0x20000000
setae %cl
orb %al, %cl
cmpb $0x1, %cl
jne 0x2de89
leaq 0x11b10(%rip), %rax     # 0x3f982
jmp 0x2de7b
leaq 0x121a2(%rip), %rax     # 0x4001d
movq %rax, 0x21646(%rip)     # 0x4f4c8
xorl %eax, %eax
jmp 0x2e547
movq %r14, %rdi
callq 0x31b23
movq %r14, %rdi
callq 0x31b23
movq %r14, %rdi
callq 0x31b23
movq %r14, %rdi
callq 0x31b23
movq 0x8(%rsp), %rdi
movl %r12d, %esi
movl $0x4, %edx
xorl %ecx, %ecx
callq 0x31ec4
shll $0x2, %ebx
movq %rax, 0x28(%rsp)
movq %rax, %rdi
movl $0xff, %esi
movq %rbx, %rdx
callq 0x6210
leaq 0x82(%rsp), %rbx
xorl %r12d, %r12d
movq %r13, 0x38(%rsp)
cmpq $0xa, %r12
je 0x2e4d8
movq 0xb8(%r14), %rcx
movq 0xc0(%r14), %rax
cmpq %rax, %rcx
jae 0x2df18
leaq 0x1(%rcx), %rdx
movq %rdx, 0xb8(%r14)
movb (%rcx), %cl
movl %ecx, 0x4(%rsp)
movq %rdx, %rcx
jmp 0x2df73
cmpl $0x0, 0x30(%r14)
je 0x2df40
movq 0x28(%r14), %rdi
movl 0x34(%r14), %edx
movq %r15, %rsi
callq *0x10(%r14)
testl %eax, %eax
je 0x2df4a
cltq
addq %r15, %rax
movb (%r15), %cl
movl %ecx, 0x4(%rsp)
jmp 0x2df62
movl $0x0, 0x4(%rsp)
jmp 0x2df73
movl $0x0, 0x30(%r14)
movb $0x0, 0x38(%r14)
movl $0x0, 0x4(%rsp)
movq %r13, %rax
movq %rax, 0xc0(%r14)
movq %r13, 0xb8(%r14)
movq %r13, %rcx
cmpq %rax, %rcx
movq %r12, 0x40(%rsp)
jae 0x2df90
leaq 0x1(%rcx), %rdx
movq %rdx, 0xb8(%r14)
movb (%rcx), %r12b
movq %rdx, %rcx
jmp 0x2dfdd
cmpl $0x0, 0x30(%r14)
je 0x2dfb4
movq 0x28(%r14), %rdi
movl 0x34(%r14), %edx
movq %r15, %rsi
callq *0x10(%r14)
testl %eax, %eax
je 0x2dfb9
cltq
addq %r15, %rax
movb (%r15), %r12b
jmp 0x2dfcc
xorl %r12d, %r12d
jmp 0x2dfdd
movl $0x0, 0x30(%r14)
movb $0x0, 0x38(%r14)
xorl %r12d, %r12d
movq %r13, %rax
movq %rax, 0xc0(%r14)
movq %r13, 0xb8(%r14)
movq %r13, %rcx
movb %r12b, -0x2(%rbx)
cmpq %rax, %rcx
jae 0x2dff8
leaq 0x1(%rcx), %rsi
movq %rsi, 0xb8(%r14)
movb (%rcx), %dl
movq %rsi, %rcx
jmp 0x2e043
cmpl $0x0, 0x30(%r14)
je 0x2e01c
movq 0x28(%r14), %rdi
movl 0x34(%r14), %edx
movq %r15, %rsi
callq *0x10(%r14)
testl %eax, %eax
je 0x2e020
cltq
addq %r15, %rax
movb (%r15), %dl
jmp 0x2e032
xorl %edx, %edx
jmp 0x2e043
movl $0x0, 0x30(%r14)
movb $0x0, 0x38(%r14)
xorl %edx, %edx
movq %r13, %rax
movq %rax, 0xc0(%r14)
movq %r13, 0xb8(%r14)
movq %r13, %rcx
movb %dl, -0x1(%rbx)
cmpq %rax, %rcx
jae 0x2e05e
leaq 0x1(%rcx), %rdx
movq %rdx, 0xb8(%r14)
movb (%rcx), %r13b
movq %rdx, %rcx
jmp 0x2e0b2
cmpl $0x0, 0x30(%r14)
je 0x2e087
movq 0x28(%r14), %rdi
movl 0x34(%r14), %edx
movq %r15, %rsi
callq *0x10(%r14)
testl %eax, %eax
je 0x2e08c
cltq
addq %r15, %rax
movb (%r15), %r13b
movq 0x38(%rsp), %rcx
jmp 0x2e0a4
xorl %r13d, %r13d
jmp 0x2e0b2
movl $0x0, 0x30(%r14)
movb $0x0, 0x38(%r14)
xorl %r13d, %r13d
movq 0x38(%rsp), %rcx
movq %rcx, %rax
movq %rax, 0xc0(%r14)
movq %rcx, 0xb8(%r14)
movb %r13b, (%rbx)
cmpq $0x0, 0x10(%r14)
je 0x2e0e1
movq 0x28(%r14), %rdi
callq *0x20(%r14)
testl %eax, %eax
je 0x2e0ea
cmpl $0x0, 0x30(%r14)
je 0x2e4e1
movq 0xb8(%r14), %rcx
movq 0xc0(%r14), %rax
cmpq %rax, %rcx
jae 0x2e4e1
cmpb $0x8, %r12b
jne 0x2e4d8
movzbl %r13b, %eax
orl %eax, %ebp
addq $0x3, %rbx
movq 0x40(%rsp), %r12
incq %r12
cmpb $0x0, 0x4(%rsp)
movq 0x38(%rsp), %r13
jne 0x2dee5
andl $0x10, %ebp
cmpl $0x1, %ebp
movl $0x4, %eax
sbbl $0x0, %eax
movq 0x30(%rsp), %rbx
testq %rbx, %rbx
je 0x2e130
movl %eax, (%rbx)
movl %eax, 0x54(%rsp)
movl 0x14(%rsp), %ecx
testl %ecx, %ecx
je 0x2e4c5
movq 0x8(%rsp), %rax
leal (,%rax,4), %eax
movl %ecx, %ecx
movq %rcx, 0x58(%rsp)
xorl %edx, %edx
movq %r12, 0x40(%rsp)
movl %eax, 0x50(%rsp)
movq %rdx, 0x60(%rsp)
imull %edx, %eax
cltq
addq 0x28(%rsp), %rax
movq %rax, 0x20(%rsp)
xorl %ecx, %ecx
leaq (%rcx,%rcx,2), %rax
leaq (%rsp,%rax), %rbp
addq $0x80, %rbp
movzbl 0x1(%rbp), %eax
testl %eax, %eax
movq %rcx, 0x68(%rsp)
je 0x2e45c
cmpl $0x1, %eax
je 0x2e32b
cmpl $0x2, %eax
jne 0x2e569
movq 0x8(%rsp), %rax
movl %eax, 0x4(%rsp)
movq 0x20(%rsp), %rbx
testl %eax, %eax
je 0x2e48f
movq 0xb8(%r14), %rcx
movq 0xc0(%r14), %rax
cmpq %rax, %rcx
jae 0x2e1e2
leaq 0x1(%rcx), %rdx
movq %rdx, 0xb8(%r14)
movb (%rcx), %r12b
movq %rdx, %rcx
jmp 0x2e22f
cmpl $0x0, 0x30(%r14)
je 0x2e206
movq 0x28(%r14), %rdi
movl 0x34(%r14), %edx
movq %r15, %rsi
callq *0x10(%r14)
testl %eax, %eax
je 0x2e20b
cltq
addq %r15, %rax
movb (%r15), %r12b
jmp 0x2e21e
xorl %r12d, %r12d
jmp 0x2e22f
movl $0x0, 0x30(%r14)
movb $0x0, 0x38(%r14)
xorl %r12d, %r12d
movq %r13, %rax
movq %rax, 0xc0(%r14)
movq %r13, 0xb8(%r14)
movq %r13, %rcx
cmpq $0x0, 0x10(%r14)
je 0x2e25b
movq 0x28(%r14), %rdi
callq *0x20(%r14)
testl %eax, %eax
je 0x2e264
cmpl $0x0, 0x30(%r14)
je 0x2e559
movq 0xb8(%r14), %rcx
movq 0xc0(%r14), %rax
cmpq %rax, %rcx
jae 0x2e559
movzbl %r12b, %eax
testb %al, %al
js 0x2e2a7
leal 0x1(%rax), %r12d
movl %r12d, 0x4c(%rsp)
cmpl %eax, 0x4(%rsp)
jbe 0x2e559
movzbl 0x2(%rbp), %esi
movq %r14, %rdi
movq %rbx, %rdx
callq 0x36eb4
testq %rax, %rax
je 0x2e4ef
addq $0x4, %rbx
decl %r12d
jne 0x2e27f
movl 0x4c(%rsp), %r12d
jmp 0x2e31b
cmpl $0x80, %eax
jne 0x2e2bb
movq %r14, %rdi
callq 0x31b23
movl %eax, %r12d
jmp 0x2e2c1
addl $-0x7f, %eax
movl %eax, %r12d
cmpl 0x4(%rsp), %r12d
jg 0x2e559
movzbl 0x2(%rbp), %esi
movq %r14, %rdi
leaq 0x18(%rsp), %rdx
callq 0x36eb4
testq %rax, %rax
je 0x2e4ef
testl %r12d, %r12d
jle 0x2e31b
xorl %eax, %eax
movzbl 0x2(%rbp), %ecx
movl $0x80, %edx
xorl %esi, %esi
testl %ecx, %edx
je 0x2e305
movb 0x18(%rsp,%rsi), %dil
movb %dil, (%rbx,%rsi)
incq %rsi
shrl %edx
cmpq $0x4, %rsi
jne 0x2e2f8
incl %eax
addq $0x4, %rbx
cmpl %r12d, %eax
jne 0x2e2ed
subl %r12d, 0x4(%rsp)
jg 0x2e1bc
jmp 0x2e48f
movq 0x8(%rsp), %rax
movl %eax, %ebx
movq 0x20(%rsp), %r12
testl %eax, %eax
je 0x2e48f
movq 0xb8(%r14), %rcx
movq 0xc0(%r14), %rax
cmpq %rax, %rcx
jae 0x2e368
leaq 0x1(%rcx), %rdx
movq %rdx, 0xb8(%r14)
movb (%rcx), %cl
movl %ecx, 0x4(%rsp)
movq %rdx, %rcx
jmp 0x2e3c3
cmpl $0x0, 0x30(%r14)
je 0x2e390
movq 0x28(%r14), %rdi
movl 0x34(%r14), %edx
movq %r15, %rsi
callq *0x10(%r14)
testl %eax, %eax
je 0x2e39a
cltq
addq %r15, %rax
movb (%r15), %cl
movl %ecx, 0x4(%rsp)
jmp 0x2e3b2
movl $0x0, 0x4(%rsp)
jmp 0x2e3c3
movl $0x0, 0x30(%r14)
movb $0x0, 0x38(%r14)
movl $0x0, 0x4(%rsp)
movq %r13, %rax
movq %rax, 0xc0(%r14)
movq %r13, 0xb8(%r14)
movq %r13, %rcx
cmpq $0x0, 0x10(%r14)
je 0x2e3ef
movq 0x28(%r14), %rdi
callq *0x20(%r14)
testl %eax, %eax
je 0x2e3f8
cmpl $0x0, 0x30(%r14)
je 0x2e559
movq 0xb8(%r14), %rcx
movq 0xc0(%r14), %rax
cmpq %rax, %rcx
jae 0x2e559
movzbl 0x2(%rbp), %esi
movq %r14, %rdi
leaq 0x18(%rsp), %rdx
callq 0x36eb4
testq %rax, %rax
je 0x2e4ef
movzbl 0x4(%rsp), %eax
cmpl %eax, %ebx
cmovbl %ebx, %eax
movzbl %al, %eax
testb %al, %al
je 0x2e452
xorl %ecx, %ecx
movzbl 0x2(%rbp), %edx
movl $0x80, %esi
xorl %edi, %edi
testl %edx, %esi
je 0x2e43d
movb 0x18(%rsp,%rdi), %r8b
movb %r8b, (%r12,%rdi)
incq %rdi
shrl %esi
cmpq $0x4, %rdi
jne 0x2e430
incl %ecx
addq $0x4, %r12
cmpl %eax, %ecx
jne 0x2e425
subl %eax, %ebx
jg 0x2e33f
jmp 0x2e48f
cmpl $0x0, 0x8(%rsp)
je 0x2e48f
movzbl 0x2(%rbp), %ebx
movq 0x8(%rsp), %rax
movl %eax, %r12d
movq 0x20(%rsp), %rbp
movq %r14, %rdi
movl %ebx, %esi
movq %rbp, %rdx
callq 0x36eb4
testq %rax, %rax
je 0x2e4ef
addq $0x4, %rbp
decl %r12d
jne 0x2e474
movq 0x68(%rsp), %rcx
incq %rcx
movq 0x40(%rsp), %r12
cmpq %rcx, %r12
jne 0x2e174
movq 0x60(%rsp), %rdx
incq %rdx
cmpq 0x58(%rsp), %rdx
movq 0x30(%rsp), %rbx
movl 0x14(%rsp), %ecx
movl 0x50(%rsp), %eax
jne 0x2e15e
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
movl 0x1c(%rsp), %ebp
movl %ecx, %r14d
jne 0x2e509
jmp 0x2e502
leaq 0x11b47(%rip), %rax     # 0x40026
jmp 0x2e4e8
leaq 0x11b35(%rip), %rax     # 0x4001d
movq %rax, 0x20fd9(%rip)     # 0x4f4c8
movq 0x30(%rsp), %rbx
movl 0x1c(%rsp), %ebp
movl 0x14(%rsp), %r14d
movq 0x28(%rsp), %rdi
callq 0x6490
xorl %edi, %edi
testq %rbx, %rbx
sete %al
movq 0x70(%rsp), %rcx
movq 0x8(%rsp), %rdx
movl %edx, (%rcx)
movq 0x78(%rsp), %rcx
movl %r14d, (%rcx)
testl %ebp, %ebp
setne %cl
movl 0x54(%rsp), %edx
cmovnel %ebp, %edx
orb %al, %cl
jne 0x2e535
movl (%rbx), %edx
movl $0x4, %esi
movq 0x8(%rsp), %rcx
movl %r14d, %r8d
callq 0x33d4f
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x11abd(%rip), %rax     # 0x4001d
movq %rax, 0x20f61(%rip)     # 0x4f4c8
jmp 0x2e4ef
leaq 0x11ab6(%rip), %rax     # 0x40026
jmp 0x2e560