// File: /workspace/github_cpp_makefile_star2_O2/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 %r13
pushq %r12
pushq %rbx
subq $0x4888, %rsp           # imm = 0x4888
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r13
leaq 0x20(%rsp), %rdi
movq %r13, (%rdi)
pushq $0x2
popq %rsi
callq 0x16cd2
pushq $0x1
popq %rbx
testl %eax, %eax
jne 0x1319b
leaq 0x20(%rsp), %rdi
movq (%rdi), %rax
movups 0xc8(%rax), %xmm0
movups %xmm0, 0xb8(%rax)
movq %r13, (%rdi)
pushq $0x2
popq %rsi
xorl %edx, %edx
callq 0x18335
testl %eax, %eax
je 0x131df
testq %r12, %r12
je 0x131ab
movq 0x20(%rsp), %rax
movl (%rax), %eax
movl %eax, (%r12)
testq %r15, %r15
je 0x131bb
movq 0x20(%rsp), %rax
movl 0x4(%rax), %eax
movl %eax, (%r15)
testq %r14, %r14
je 0x131cb
movq 0x20(%rsp), %rax
movl 0x8(%rax), %eax
movl %eax, (%r14)
movl %ebx, %eax
addq $0x4888, %rsp           # imm = 0x4888
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x20(%rsp), %rsi
movq (%rsi), %rax
movups 0xc8(%rax), %xmm0
movups %xmm0, 0xb8(%rax)
pushq $0x1
popq %rbx
movq %r13, %rdi
movq %r14, %rdx
movl %ebx, %ecx
callq 0x1a240
testl %eax, %eax
je 0x13224
testq %r12, %r12
je 0x13216
movl 0x20(%rsp), %eax
movl %eax, (%r12)
testq %r15, %r15
je 0x131cb
movl 0x24(%rsp), %eax
movl %eax, (%r15)
jmp 0x131cb
movups 0xc8(%r13), %xmm0
movups %xmm0, 0xb8(%r13)
leaq 0x20(%rsp), %rsi
movl $0xff, 0x1c(%rsi)
movq %r13, %rdi
callq 0x19ed4
movups 0xc8(%r13), %xmm0
movups %xmm0, 0xb8(%r13)
testq %rax, %rax
je 0x1327c
movl (%r13), %eax
movl %eax, (%r12)
movl 0x4(%r13), %eax
movl %eax, (%r15)
cmpl $0x1, 0x38(%rsp)
pushq $0x4
popq %rax
sbbl $0x0, %eax
jmp 0x131c8
movq %r13, %rdi
callq 0x1922b
cmpl $0x38425053, %eax       # imm = 0x38425053
jne 0x132ed
movq %r13, %rdi
callq 0x17ab7
cmpl $0x1, %eax
jne 0x132ed
pushq $0x6
popq %rsi
movq %r13, %rdi
callq 0x17c0d
movq %r13, %rdi
callq 0x17ab7
cmpl $0x10, %eax
ja 0x132ed
movq %r13, %rdi
callq 0x1922b
movl %eax, (%r15)
movq %r13, %rdi
callq 0x1922b
movl %eax, (%r12)
movq %r13, %rdi
callq 0x17ab7
cmpl $0x8, %eax
jne 0x132ed
movq %r13, %rdi
callq 0x17ab7
cmpl $0x3, %eax
jne 0x132ed
movl $0x4, (%r14)
jmp 0x131cb
movups 0xc8(%r13), %xmm0
movups %xmm0, 0xb8(%r13)
leaq 0xf46e(%rip), %rsi      # 0x22772
movq %r13, %rdi
callq 0x1a505
testl %eax, %eax
je 0x1333e
pushq $0x58
popq %rsi
movq %r13, %rdi
callq 0x17c0d
movq %r13, %rdi
callq 0x17ab7
movl %eax, (%r12)
movq %r13, %rdi
callq 0x17ab7
movl %eax, (%r15)
movq %r13, %rdi
callq 0x179fc
testl %eax, %eax
je 0x133af
movups 0xc8(%r13), %xmm0
movups %xmm0, 0xb8(%r13)
movq %r13, %rdi
movq %r12, %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x1a5c6
testl %eax, %eax
jne 0x131cb
movq %r13, %rdi
callq 0x1268a
testl %eax, %eax
je 0x134e1
xorl %ebp, %ebp
movq %r13, %rdi
leaq 0x20(%rsp), %rsi
callq 0x1a76d
cmpb $0x0, 0x20(%rsp)
je 0x13450
leaq 0x20(%rsp), %rdi
leaq 0xf416(%rip), %rsi      # 0x227b3
pushq $0x17
popq %rdx
callq 0x4340
testl %eax, %eax
pushq $0x1
popq %rax
cmovel %eax, %ebp
jmp 0x13379
movl (%r12), %ecx
testl %ecx, %ecx
je 0x133c9
movl $0x10000000, %eax       # imm = 0x10000000
xorl %edx, %edx
idivl %ecx
cmpl (%r15), %eax
jl 0x1333e
pushq $0x8
popq %rsi
movq %r13, %rdi
callq 0x17c0d
xorl %eax, %eax
pushq $0xb
popq %rcx
decl %ecx
je 0x1334e
movl %ecx, 0xc(%rsp)
movl %eax, 0x10(%rsp)
movq %r13, %rdi
callq 0x17a36
movb %al, 0x8(%rsp)
movq %r13, %rdi
callq 0x17a36
movb %al, 0x7(%rsp)
movq %r13, %rdi
callq 0x17a36
movq %r13, %rdi
callq 0x17a36
movl %eax, %ebp
movq %r13, %rdi
callq 0x179fc
testl %eax, %eax
jne 0x1333e
cmpb $0x8, 0x7(%rsp)
jne 0x1333e
movzbl %bpl, %eax
movl 0x10(%rsp), %ecx
orl %eax, %ecx
movl %ecx, %eax
cmpb $0x0, 0x8(%rsp)
movl 0xc(%rsp), %ecx
jne 0x133d9
andl $0x10, %eax
cmpl $0x1, %eax
jmp 0x13271
testl %ebp, %ebp
je 0x134e1
leaq 0x20(%rsp), %rbp
movq %r13, %rdi
movq %rbp, %rsi
callq 0x1a76d
leaq 0xf36e(%rip), %rsi      # 0x227dd
pushq $0x3
popq %rdx
movq %rbp, %rdi
callq 0x4340
testl %eax, %eax
jne 0x134e1
leaq 0x23(%rsp), %rdi
leaq 0x18(%rsp), %rbp
movq %rdi, (%rbp)
pushq $0xa
popq %rdx
movq %rbp, %rsi
callq 0x4480
movl %eax, (%r15)
movq (%rbp), %rdi
addq $0x2, %rdi
movzbl -0x2(%rdi), %eax
incq %rdi
cmpl $0x20, %eax
je 0x134a2
cmpl $0x2b, %eax
jne 0x134e1
cmpb $0x58, -0x2(%rdi)
jne 0x134e1
cmpb $0x20, -0x1(%rdi)
jne 0x134e1
movq %rdi, 0x18(%rsp)
pushq $0xa
popq %rdx
xorl %esi, %esi
callq 0x4480
movl %eax, (%r12)
movl $0x3, (%r14)
pushq $0x1
popq %rbx
jmp 0x131cb
movups 0xc8(%r13), %xmm0
movups %xmm0, 0xb8(%r13)
movq %r13, %rdi
callq 0x17a36
movq %r13, %rdi
callq 0x17a36
cmpb $0x1, %al
jbe 0x1352a
movups 0xc8(%r13), %xmm0
movups %xmm0, 0xb8(%r13)
leaq 0xebc3(%rip), %rax      # 0x220df
movq %rax, 0x1bead(%rip)     # 0x2f3d0
xorl %ebx, %ebx
jmp 0x131cb
movl %eax, %ebp
movq %r13, %rdi
callq 0x17a36
cmpb $0x1, %bpl
movb %al, 0x7(%rsp)
jne 0x13577
andb $-0x9, %al
cmpb $0x1, %al
jne 0x13505
pushq $0x4
popq %rbp
movq %r13, %rdi
movl %ebp, %esi
callq 0x17c0d
movq %r13, %rdi
callq 0x17a36
cmpb $0x20, %al
ja 0x13505
movzbl %al, %ecx
movabsq $0x101018100, %rax      # imm = 0x101018100
movq %rcx, 0x10(%rsp)
btq %rcx, %rax
jb 0x13589
jmp 0x13505
andb $-0xa, %al
cmpb $0x2, %al
jne 0x13505
movq $0x0, 0x10(%rsp)
pushq $0x9
popq %rbp
movq %r13, %rdi
movl %ebp, %esi
callq 0x17c0d
movq %r13, %rdi
callq 0x13054
movl %eax, 0xc(%rsp)
testl %eax, %eax
je 0x13505
movq %r13, %rdi
callq 0x13054
movl %eax, 0x8(%rsp)
testl %eax, %eax
je 0x13505
movq %r13, %rdi
callq 0x17a36
movl %eax, %ebp
movq %r13, %rdi
callq 0x17a36
cmpl $0x0, 0x10(%rsp)
je 0x135f0
cmpb $0x10, %bpl
je 0x135e7
movzbl %bpl, %eax
cmpl $0x8, %eax
jne 0x13505
movq 0x10(%rsp), %rdi
xorl %esi, %esi
jmp 0x13602
movzbl %bpl, %edi
movb 0x7(%rsp), %al
andb $-0x9, %al
xorl %esi, %esi
cmpb $0x3, %al
sete %sil
xorl %edx, %edx
callq 0x1a8b9
testl %eax, %eax
je 0x13505
testq %r12, %r12
je 0x1361e
movl 0xc(%rsp), %ecx
movl %ecx, (%r12)
testq %r15, %r15
je 0x1362a
movl 0x8(%rsp), %ecx
movl %ecx, (%r15)
testq %r14, %r14
jne 0x131c8
jmp 0x131cb