// File: /workspace/github_cpp_makefile_star2_O3/srajangarg[P]raytracer/src/core/stb_image.hpp
// Function: stbi__info_main(stbi__context*, int*, int*, int*)
static int stbi__info_main(stbi__context *s, int *x, int *y, int *comp)
{
   #ifndef STBI_NO_JPEG
   if (stbi__jpeg_info(s, x, y, comp)) return 1;
   #endif

   #ifndef STBI_NO_PNG
   if (stbi__png_info(s, x, y, comp))  return 1;
   #endif

   #ifndef STBI_NO_GIF
   if (stbi__gif_info(s, x, y, comp))  return 1;
   #endif

   #ifndef STBI_NO_BMP
   if (stbi__bmp_info(s, x, y, comp))  return 1;
   #endif

   #ifndef STBI_NO_PSD
   if (stbi__psd_info(s, x, y, comp))  return 1;
   #endif

   #ifndef STBI_NO_PIC
   if (stbi__pic_info(s, x, y, comp))  return 1;
   #endif

   #ifndef STBI_NO_PNM
   if (stbi__pnm_info(s, x, y, comp))  return 1;
   #endif

   #ifndef STBI_NO_HDR
   if (stbi__hdr_info(s, x, y, comp))  return 1;
   #endif

   // test tga last because it's a crappy test!
   #ifndef STBI_NO_TGA
   if (stbi__tga_info(s, x, y, comp))
       return 1;
   #endif
   return stbi__err("unknown image type", "Image not of any known type, or corrupt");
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x4860, %rsp           # imm = 0x4860
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
movq %rsp, %rdi
movq %r12, (%rdi)
movl $0x2, %esi
callq 0x1d10a
testl %eax, %eax
jne 0x15ad0
movq %rsp, %rdi
movq (%rdi), %rax
movups 0xc8(%rax), %xmm0
movups %xmm0, 0xb8(%rax)
movq %r12, (%rdi)
movl $0x2, %esi
xorl %edx, %edx
callq 0x1f795
testl %eax, %eax
je 0x15b12
testq %r15, %r15
je 0x15ade
movq (%rsp), %rax
movl (%rax), %eax
movl %eax, (%r15)
testq %r14, %r14
je 0x15aed
movq (%rsp), %rax
movl 0x4(%rax), %eax
movl %eax, (%r14)
testq %rbx, %rbx
je 0x15afb
movq (%rsp), %rax
movl 0x8(%rax), %eax
movl %eax, (%rbx)
movl $0x1, %ebp
movl %ebp, %eax
addq $0x4860, %rsp           # imm = 0x4860
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rsp, %rsi
movq (%rsi), %rax
movups 0xc8(%rax), %xmm0
movups %xmm0, 0xb8(%rax)
movq %r12, %rdi
movq %rbx, %rdx
movl $0x1, %ecx
callq 0x21c33
testl %eax, %eax
je 0x15b53
testq %r15, %r15
je 0x15b45
movl (%rsp), %eax
movl %eax, (%r15)
testq %r14, %r14
je 0x15afb
movl 0x4(%rsp), %eax
movl %eax, (%r14)
jmp 0x15afb
movups 0xc8(%r12), %xmm0
movups %xmm0, 0xb8(%r12)
movq %rsp, %rsi
movl $0xff, 0x1c(%rsi)
movq %r12, %rdi
callq 0x217d6
movups 0xc8(%r12), %xmm0
movups %xmm0, 0xb8(%r12)
testq %rax, %rax
je 0x15baf
movl (%r12), %eax
movl %eax, (%r15)
movl 0x4(%r12), %eax
movl %eax, (%r14)
cmpl $0x1, 0x18(%rsp)
movl $0x4, %eax
sbbl $0x0, %eax
jmp 0x15af9
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x23362
movl $0x1, %ebp
testl %eax, %eax
jne 0x15b00
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x23470
testl %eax, %eax
jne 0x15b00
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x2258a
testl %eax, %eax
jne 0x15b00
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x237cd
testl %eax, %eax
jne 0x15b00
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x2391d
testl %eax, %eax
jne 0x15b00
leaq 0x165a7(%rip), %rax     # 0x2c1df
movq %rax, 0x21751(%rip)     # 0x37390
xorl %ebp, %ebp
jmp 0x15b00