// File: /workspace/github_cpp_makefile_star2_O1/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), %rax
movq %rax, 0x30(%rsp)
movl $0x5c, %ebx
movq 0xb8(%r14), %rax
cmpq 0xc0(%r14), %rax
jb 0x2d806
cmpl $0x0, 0x30(%r14)
je 0x2d810
movq 0x28(%r14), %rdi
movl 0x34(%r14), %edx
movq %r15, %rsi
callq *0x10(%r14)
testl %eax, %eax
je 0x2d7df
movq %r15, 0xb8(%r14)
cltq
addq %r15, %rax
movq %rax, 0xc0(%r14)
jmp 0x2d7ff
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 0x2d7a0
movq %r14, %rdi
callq 0x31ea4
movq %rax, 0x18(%rsp)
movq %r14, %rdi
callq 0x31ea4
movl %eax, %r13d
cmpq $0x0, 0x10(%r14)
je 0x2d84a
movq 0x28(%r14), %rdi
callq *0x20(%r14)
testl %eax, %eax
je 0x2d85e
cmpl $0x0, 0x30(%r14)
je 0x2dfb5
movq 0xb8(%r14), %rax
cmpq 0xc0(%r14), %rax
jae 0x2dfb5
testl %r13d, %r13d
je 0x2dfbe
movl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
xorl %edx, %edx
divl %r13d
movq 0x18(%rsp), %rbx
cmpl %ebx, %eax
jb 0x2dfd4
movl %r13d, %eax
imull %ebx, %eax
cmpl $0x1fffffff, %eax       # imm = 0x1FFFFFFF
ja 0x2dfd4
movl %ebp, 0x14(%rsp)
movq %r12, 0x28(%rsp)
movq %r14, %rdi
callq 0x31ea4
movq %r14, %rdi
callq 0x31ea4
movq %r14, %rdi
callq 0x31ea4
movq %r14, %rdi
callq 0x31ea4
movl %ebx, %edi
movl %r13d, %esi
movl $0x4, %edx
xorl %ecx, %ecx
callq 0x32255
movl %r13d, 0x38(%rsp)
movl %r13d, %edx
imull %ebx, %edx
shll $0x2, %edx
movq %rax, 0x20(%rsp)
movq %rax, %rdi
movl $0xff, %esi
callq 0x6210
xorl %r13d, %r13d
movl $0x0, 0x10(%rsp)
cmpl $0xa, %r13d
jne 0x2d906
leaq 0x124bd(%rip), %rax     # 0x3fdbe
jmp 0x2db5f
movq 0xb8(%r14), %rax
cmpq 0xc0(%r14), %rax
jb 0x2d971
cmpl $0x0, 0x30(%r14)
je 0x2d945
movq 0x28(%r14), %rdi
movl 0x34(%r14), %edx
movq %r15, %rsi
callq *0x10(%r14)
testl %eax, %eax
je 0x2d94a
movq %r15, 0xb8(%r14)
cltq
addq %r15, %rax
movq %rax, 0xc0(%r14)
jmp 0x2d96a
xorl %r12d, %r12d
jmp 0x2d980
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 0x2d9ea
cmpl $0x0, 0x30(%r14)
je 0x2d9bf
movq 0x28(%r14), %rdi
movl 0x34(%r14), %edx
movq %r15, %rsi
callq *0x10(%r14)
testl %eax, %eax
je 0x2d9c3
movq %r15, 0xb8(%r14)
cltq
addq %r15, %rax
movq %rax, 0xc0(%r14)
jmp 0x2d9e3
xorl %ebx, %ebx
jmp 0x2d9f7
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 0x2da7a
cmpl $0x0, 0x30(%r14)
je 0x2da4f
movq 0x28(%r14), %rdi
movl 0x34(%r14), %edx
movq %r15, %rsi
callq *0x10(%r14)
testl %eax, %eax
je 0x2da53
movq %r15, 0xb8(%r14)
cltq
addq %r15, %rax
movq %rax, 0xc0(%r14)
jmp 0x2da73
xorl %eax, %eax
jmp 0x2da87
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 0x2daf5
cmpl $0x0, 0x30(%r14)
je 0x2daca
movq 0x28(%r14), %rdi
movl 0x34(%r14), %edx
movq %r15, %rsi
callq *0x10(%r14)
testl %eax, %eax
je 0x2dace
movq %r15, 0xb8(%r14)
cltq
addq %r15, %rax
movq %rax, 0xc0(%r14)
jmp 0x2daee
xorl %eax, %eax
jmp 0x2db02
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 0x2db32
movq 0x28(%r14), %rdi
callq *0x20(%r14)
testl %eax, %eax
je 0x2db42
cmpl $0x0, 0x30(%r14)
je 0x2db55
movq 0xb8(%r14), %rax
cmpq 0xc0(%r14), %rax
jae 0x2db55
movb $0x1, %cl
leaq 0x12273(%rip), %rax     # 0x3fdbe
cmpb $0x8, %bl
movl %ebp, %r13d
jne 0x2db5f
jmp 0x2db68
leaq 0x12259(%rip), %rax     # 0x3fdb5
movl %ebp, %r13d
movq %rax, 0x21982(%rip)     # 0x4f4e8
xorl %ecx, %ecx
testb %cl, %cl
je 0x2dfe6
testl %r12d, %r12d
jne 0x2d8f4
movl 0x10(%rsp), %eax
andl $0x10, %eax
cmpl $0x1, %eax
movl $0x4, %eax
sbbl $0x0, %eax
movq 0x28(%rsp), %rbx
testq %rbx, %rbx
je 0x2db97
movl %eax, (%rbx)
movl %eax, 0x54(%rsp)
movl 0x38(%rsp), %eax
testl %eax, %eax
movl 0x14(%rsp), %ebp
movq 0x18(%rsp), %r12
je 0x2e056
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 0x2df8e
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 0x2df3d
movq 0x48(%rsp), %rbx
movq 0x18(%rsp), %rcx
movl %ecx, %ebp
cmpl $0x1, %eax
je 0x2df33
movq 0x48(%rsp), %rbx
movq 0x18(%rsp), %rcx
movl %ecx, 0x10(%rsp)
cmpl $0x2, %eax
jne 0x2e060
cmpl $0x0, 0x10(%rsp)
jle 0x2df72
movq 0xb8(%r14), %rax
cmpq 0xc0(%r14), %rax
jb 0x2dcbc
cmpl $0x0, 0x30(%r14)
je 0x2dc91
movq 0x28(%r14), %rdi
movl 0x34(%r14), %edx
movq %r15, %rsi
callq *0x10(%r14)
testl %eax, %eax
je 0x2dc95
movq %r15, 0xb8(%r14)
cltq
addq %r15, %rax
movq %rax, 0xc0(%r14)
jmp 0x2dcb5
xorl %ebp, %ebp
jmp 0x2dcca
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 0x2dce4
movq 0x28(%r14), %rdi
callq *0x20(%r14)
testl %eax, %eax
je 0x2dcf4
cmpl $0x0, 0x30(%r14)
je 0x2dd34
movq 0xb8(%r14), %rax
cmpq 0xc0(%r14), %rax
jae 0x2dd34
movzbl %bpl, %r13d
testb %r13b, %r13b
js 0x2dd49
cmpl %r13d, 0x10(%rsp)
jle 0x2dd5e
leal 0x1(%r13), %ebp
incl %r13d
movzbl 0x2(%r12), %esi
movq %r14, %rdi
movq %rbx, %rdx
callq 0x37402
testq %rax, %rax
je 0x2dd6c
addq $0x4, %rbx
decl %r13d
jne 0x2dd0b
movl 0xc(%rsp), %r13d
jmp 0x2ddf5
leaq 0x1207a(%rip), %rax     # 0x3fdb5
movq %rax, 0x217a6(%rip)     # 0x4f4e8
xorl %eax, %eax
jmp 0x2ddfb
cmpl $0x80, %r13d
jne 0x2dd78
movq %r14, %rdi
callq 0x31ea4
movl %eax, %ebp
jmp 0x2dd7f
leaq 0x12050(%rip), %rax     # 0x3fdb5
movq %rax, 0x2177c(%rip)     # 0x4f4e8
xorl %eax, %eax
movl 0xc(%rsp), %r13d
jmp 0x2ddfb
addl $-0x7f, %r13d
movl %r13d, %ebp
movl 0xc(%rsp), %r13d
cmpl 0x10(%rsp), %ebp
jle 0x2dd9a
leaq 0x12024(%rip), %rax     # 0x3fdb5
movq %rax, 0x21750(%rip)     # 0x4f4e8
jmp 0x2ddeb
movzbl 0x2(%r12), %esi
movq %r14, %rdi
leaq 0x3c(%rsp), %rdx
callq 0x37402
testq %rax, %rax
je 0x2ddeb
movb $0x1, %al
testl %ebp, %ebp
jle 0x2dded
xorl %ecx, %ecx
movzbl 0x2(%r12), %edx
movl $0x80, %esi
xorl %edi, %edi
testl %edx, %esi
je 0x2ddd4
movb 0x3c(%rsp,%rdi), %r8b
movb %r8b, (%rbx,%rdi)
incq %rdi
shrl %esi
cmpq $0x4, %rdi
jne 0x2ddc7
incl %ecx
addq $0x4, %rbx
cmpl %ebp, %ecx
jne 0x2ddba
jmp 0x2dded
xorl %eax, %eax
testb %al, %al
je 0x2dd42
subl %ebp, 0x10(%rsp)
movb $0x1, %al
testb %al, %al
jne 0x2dc47
jmp 0x2dfe6
movq 0xb8(%r14), %rax
cmpq 0xc0(%r14), %rax
jb 0x2de73
cmpl $0x0, 0x30(%r14)
je 0x2de47
movq 0x28(%r14), %rdi
movl 0x34(%r14), %edx
movq %r15, %rsi
callq *0x10(%r14)
testl %eax, %eax
je 0x2de4c
movq %r15, 0xb8(%r14)
cltq
addq %r15, %rax
movq %rax, 0xc0(%r14)
jmp 0x2de6c
xorl %r13d, %r13d
jmp 0x2de81
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 0x2de9b
movq 0x28(%r14), %rdi
callq *0x20(%r14)
testl %eax, %eax
je 0x2deab
cmpl $0x0, 0x30(%r14)
je 0x2df0b
movq 0xb8(%r14), %rax
cmpq 0xc0(%r14), %rax
jae 0x2df0b
movzbl 0x2(%r12), %esi
movq %r14, %rdi
leaq 0x3c(%rsp), %rdx
callq 0x37402
testq %rax, %rax
je 0x2df19
movzbl %r13b, %eax
cmpl %eax, %ebp
cmovll %ebp, %eax
movzbl %al, %eax
testb %al, %al
je 0x2df22
xorl %ecx, %ecx
movl 0xc(%rsp), %r13d
movzbl 0x2(%r12), %edx
movl $0x80, %esi
xorl %edi, %edi
testl %edx, %esi
je 0x2def4
movb 0x3c(%rsp,%rdi), %r8b
movb %r8b, (%rbx,%rdi)
incq %rdi
shrl %esi
cmpq $0x4, %rdi
jne 0x2dee7
incl %ecx
addq $0x4, %rbx
cmpl %eax, %ecx
jne 0x2deda
jmp 0x2df27
leaq 0x11ea3(%rip), %rax     # 0x3fdb5
movq %rax, 0x215cf(%rip)     # 0x4f4e8
xorl %eax, %eax
movl 0xc(%rsp), %r13d
jmp 0x2df2b
movl 0xc(%rsp), %r13d
subl %eax, %ebp
movb $0x1, %al
testb %al, %al
je 0x2dfe6
testl %ebp, %ebp
jg 0x2de08
jmp 0x2df72
cmpl $0x0, 0x18(%rsp)
je 0x2df72
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 0x37402
testq %rax, %rax
je 0x2dfe6
addq $0x4, %rbp
decl %r12d
jne 0x2df57
movq 0x68(%rsp), %rax
incq %rax
cmpq 0x60(%rsp), %rax
movq 0x28(%rsp), %rbx
movl 0x14(%rsp), %ebp
jne 0x2dbf9
movq 0x40(%rsp), %rcx
incq %rcx
movq %rcx, 0x40(%rsp)
cmpq 0x58(%rsp), %rcx
jne 0x2dbd9
movq 0x20(%rsp), %rdi
movq %rdi, %rax
movq 0x18(%rsp), %r12
jmp 0x2dffb
leaq 0x11df9(%rip), %rax     # 0x3fdb5
jmp 0x2dfdb
movl %r13d, %eax
movq 0x18(%rsp), %rbx
imull %ebx, %eax
cmpl $0x20000000, %eax       # imm = 0x20000000
jb 0x2d88f
leaq 0x1173f(%rip), %rax     # 0x3f71a
movq %rax, 0x21506(%rip)     # 0x4f4e8
xorl %eax, %eax
jmp 0x2e044
movq 0x28(%rsp), %rbx
movl 0x14(%rsp), %ebp
movq 0x18(%rsp), %r12
movq 0x20(%rsp), %rdi
xorl %eax, %eax
testq %rax, %rax
jne 0x2e007
callq 0x6490
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 0x2e032
movl (%rbx), %edx
movl $0x4, %esi
movl %r12d, %ecx
movl 0x38(%rsp), %r8d
callq 0x33ff4
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x20(%rsp), %rdi
movq %rdi, %rax
jmp 0x2dffb
leaq 0x11d57(%rip), %rax     # 0x3fdbe
movq %rax, 0x2147a(%rip)     # 0x4f4e8
xorl %eax, %eax
movq 0x28(%rsp), %rbx
movl 0x14(%rsp), %ebp
movq 0x18(%rsp), %r12
movq 0x20(%rsp), %rdi
jmp 0x2dffb