// File: /workspace/github_cpp_makefile_star2_O1/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 0x1cafc
testl %eax, %eax
je 0x15e0e
testq %r15, %r15
je 0x15def
movq (%rsp), %rcx
movl (%rcx), %ecx
movl %ecx, (%r15)
testq %r14, %r14
je 0x15dfe
movq (%rsp), %rcx
movl 0x4(%rcx), %ecx
movl %ecx, (%r14)
testq %rbx, %rbx
je 0x15e20
movq (%rsp), %rcx
movl 0x8(%rcx), %ecx
movl %ecx, (%rbx)
jmp 0x15e20
movq (%rsp), %rcx
movups 0xc8(%rcx), %xmm0
movups %xmm0, 0xb8(%rcx)
movl $0x1, %ebp
testl %eax, %eax
jne 0x15f9b
movq %rsp, %rdi
movq %r12, (%rdi)
movl $0x2, %esi
xorl %edx, %edx
callq 0x1ee1b
testl %eax, %eax
je 0x15e70
testq %r15, %r15
je 0x15e51
movq (%rsp), %rcx
movl (%rcx), %ecx
movl %ecx, (%r15)
testq %r14, %r14
je 0x15e60
movq (%rsp), %rcx
movl 0x4(%rcx), %ecx
movl %ecx, (%r14)
testq %rbx, %rbx
je 0x15e82
movq (%rsp), %rcx
movl 0x8(%rcx), %ecx
movl %ecx, (%rbx)
jmp 0x15e82
movq (%rsp), %rcx
movups 0xc8(%rcx), %xmm0
movups %xmm0, 0xb8(%rcx)
testl %eax, %eax
jne 0x15f9b
movq %rsp, %rsi
movq %r12, %rdi
movq %rbx, %rdx
movl $0x1, %ecx
callq 0x21709
testl %eax, %eax
je 0x15eba
testq %r15, %r15
je 0x15eac
movl (%rsp), %ecx
movl %ecx, (%r15)
testq %r14, %r14
je 0x15ecc
movl 0x4(%rsp), %ecx
movl %ecx, (%r14)
jmp 0x15ecc
movups 0xc8(%r12), %xmm0
movups %xmm0, 0xb8(%r12)
movl $0x1, %ebp
testl %eax, %eax
jne 0x15f9b
movq %rsp, %rsi
movl $0xff, 0x1c(%rsi)
movq %r12, %rdi
callq 0x21278
movups 0xc8(%r12), %xmm0
movups %xmm0, 0xb8(%r12)
testq %rax, %rax
je 0x15f22
movl (%r12), %eax
movl %eax, (%r15)
movl 0x4(%r12), %eax
movl %eax, (%r14)
cmpl $0x1, 0x18(%rsp)
movl $0x4, %eax
sbbl $0x0, %eax
movl %eax, (%rbx)
jmp 0x15f9b
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x22c0e
testl %eax, %eax
jne 0x15f9b
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x22d11
testl %eax, %eax
jne 0x15f9b
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x2210f
testl %eax, %eax
jne 0x15f9b
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x230d6
testl %eax, %eax
jne 0x15f9b
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x2323e
testl %eax, %eax
jne 0x15f9b
leaq 0x1718d(%rip), %rax     # 0x2d11f
movq %rax, 0x22417(%rip)     # 0x383b0
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x4860, %rsp           # imm = 0x4860
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq