// File: /workspace/github_c_makefile_star2_O2/archer1357[P]Offline-Raytracer/stb_image.c
// Function: stbi__info_main
static int stbi__info_main(stbi__context *s, int *x, int *y, int *comp)
{
   if (stbi__jpeg_info(s, x, y, comp))
       return 1;
   if (stbi__png_info(s, x, y, comp))
       return 1;
   if (stbi__gif_info(s, x, y, comp))
       return 1;
   if (stbi__bmp_info(s, x, y, comp))
       return 1;
   if (stbi__psd_info(s, x, y, comp))
       return 1;
   if (stbi__pic_info(s, x, y, comp))
       return 1;
   #ifndef STBI_NO_HDR
   if (stbi__hdr_info(s, x, y, comp))
       return 1;
   #endif
   // test tga last because it's a crappy test!
   if (stbi__tga_info(s, x, y, comp))
       return 1;
   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 $0x4878, %rsp           # imm = 0x4878
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
leaq 0x20(%rsp), %rdi
movq %r12, (%rdi)
pushq $0x2
popq %rsi
callq 0x40d6fb
testl %eax, %eax
jne 0x40d1c2
leaq 0x20(%rsp), %rdi
movq (%rdi), %rax
movq 0xc8(%rax), %rcx
movq %rcx, 0xb8(%rax)
movq %r12, (%rdi)
pushq $0x2
popq %rsi
xorl %edx, %edx
callq 0x40e930
testl %eax, %eax
je 0x40d207
testq %r15, %r15
je 0x40d1d1
movq 0x20(%rsp), %rax
movl (%rax), %eax
movl %eax, (%r15)
testq %r14, %r14
je 0x40d1e1
movq 0x20(%rsp), %rax
movl 0x4(%rax), %eax
movl %eax, (%r14)
testq %rbx, %rbx
je 0x40d1f0
movq 0x20(%rsp), %rax
movl 0x8(%rax), %eax
movl %eax, (%rbx)
pushq $0x1
popq %rbp
movl %ebp, %eax
addq $0x4878, %rsp           # imm = 0x4878
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x20(%rsp), %rsi
movq (%rsi), %rax
movq 0xc8(%rax), %rcx
movq %rcx, 0xb8(%rax)
pushq $0x1
popq %rbp
movq %r12, %rdi
movq %rbx, %rdx
movl %ebp, %ecx
callq 0x41006e
testl %eax, %eax
je 0x40d24b
testq %r15, %r15
je 0x40d23d
movl 0x20(%rsp), %eax
movl %eax, (%r15)
testq %r14, %r14
je 0x40d1f3
movl 0x24(%rsp), %eax
movl %eax, (%r14)
jmp 0x40d1f3
movq 0xc8(%r12), %rax
movq %rax, 0xb8(%r12)
movq %r12, %rdi
callq 0x40dd8f
cmpb $0x42, %al
jne 0x40d2ed
movq %r12, %rdi
callq 0x40dd8f
cmpb $0x4d, %al
jne 0x40d2ed
pushq $0xc
popq %rsi
movq %r12, %rdi
callq 0x40df66
movq %r12, %rdi
callq 0x40ff6c
cmpl $0x7c, %eax
je 0x40d2b8
cmpl $0x28, %eax
je 0x40d2b8
cmpl $0x38, %eax
je 0x40d2b8
cmpl $0x6c, %eax
je 0x40d2b8
cmpl $0xc, %eax
jne 0x40d2ed
movq %r12, %rdi
callq 0x40ff8d
movl %eax, (%r15)
movq %r12, %rdi
callq 0x40ff8d
jmp 0x40d2cb
movq %r12, %rdi
callq 0x40ff6c
movl %eax, (%r15)
movq %r12, %rdi
callq 0x40ff6c
movl %eax, (%r14)
movq %r12, %rdi
callq 0x40ff8d
cmpl $0x1, %eax
jne 0x40d2ed
movq %r12, %rdi
callq 0x40ff8d
shrl $0x3, %eax
movl %eax, (%rbx)
jmp 0x40d1f3
movq 0xc8(%r12), %rax
movq %rax, 0xb8(%r12)
movq %r12, %rdi
callq 0x40f7c7
cmpl $0x38425053, %eax       # imm = 0x38425053
jne 0x40d36c
movq %r12, %rdi
callq 0x40de10
cmpl $0x1, %eax
jne 0x40d36c
pushq $0x6
popq %rsi
movq %r12, %rdi
callq 0x40df66
movq %r12, %rdi
callq 0x40de10
cmpl $0x10, %eax
ja 0x40d36c
movq %r12, %rdi
callq 0x40f7c7
movl %eax, (%r14)
movq %r12, %rdi
callq 0x40f7c7
movl %eax, (%r15)
movq %r12, %rdi
callq 0x40de10
cmpl $0x8, %eax
jne 0x40d36c
movq %r12, %rdi
callq 0x40de10
cmpl $0x3, %eax
jne 0x40d36c
movl $0x4, (%rbx)
jmp 0x40d1f3
movq %rbx, (%rsp)
movq 0xc8(%r12), %rax
movq %rax, 0xb8(%r12)
pushq $0x5c
popq %rsi
movq %r12, %rdi
callq 0x40df66
movq %r12, %rdi
callq 0x40de10
movq %r15, 0x10(%rsp)
movl %eax, (%r15)
movq %r12, %rdi
callq 0x40de10
movq %r14, 0x8(%rsp)
movl %eax, (%r14)
movq %r12, %rdi
callq 0x40dd55
testl %eax, %eax
jne 0x40d3ec
movq 0x10(%rsp), %rax
movl (%rax), %ecx
testl %ecx, %ecx
je 0x40d559
movl $0x10000000, %eax       # imm = 0x10000000
xorl %edx, %edx
idivl %ecx
movq 0x8(%rsp), %rcx
cmpl (%rcx), %eax
jge 0x40d559
movq 0xc8(%r12), %rax
movq %rax, 0xb8(%r12)
leaq 0x20(%rsp), %rbx
movq %r12, %rdi
movq %rbx, %rsi
callq 0x410799
leaq 0xc7b7e(%rip), %rsi     # 0x4d4f81
pushq $0xb
popq %rdx
movq %rbx, %rdi
callq 0x401028
testl %eax, %eax
je 0x40d471
movq 0xc8(%r12), %rax
movq %rax, 0xb8(%r12)
movq %r12, %rdi
callq 0x40dd8f
movq %r12, %rdi
callq 0x40dd8f
cmpb $0x1, %al
jbe 0x40d448
movq 0xc8(%r12), %rax
movq %rax, 0xb8(%r12)
jmp 0x40d45c
movq %r12, %rdi
callq 0x40dd8f
andb $-0x9, %al
addb $-0x4, %al
cmpb $-0x3, %al
jae 0x40d5d4
leaq 0xc72d9(%rip), %rax     # 0x4d473c
movq %rax, 0x10c0d6(%rip)    # 0x519540
xorl %ebp, %ebp
jmp 0x40d1f3
xorl %r14d, %r14d
leaq 0x20(%rsp), %r13
leaq 0xc7b14(%rip), %rbp     # 0x4d4f94
pushq $0x17
popq %rbx
pushq $0x1
popq %r15
movq %r12, %rdi
movq %r13, %rsi
callq 0x410799
cmpb $0x0, 0x20(%rsp)
je 0x40d4af
movq %r13, %rdi
movq %rbp, %rsi
movq %rbx, %rdx
callq 0x401028
testl %eax, %eax
cmovel %r15d, %r14d
jmp 0x40d487
testl %r14d, %r14d
je 0x40d412
leaq 0x20(%rsp), %rbx
movq %r12, %rdi
movq %rbx, %rsi
callq 0x410799
leaq 0xc7aef(%rip), %rsi     # 0x4d4fbe
pushq $0x3
popq %rdx
movq %rbx, %rdi
callq 0x401028
testl %eax, %eax
jne 0x40d412
leaq 0x23(%rsp), %rdi
leaq 0x18(%rsp), %rbx
movq %rdi, (%rbx)
pushq $0xa
popq %rdx
movq %rbx, %rsi
callq 0x423cc0
movq 0x8(%rsp), %rcx
movl %eax, (%rcx)
movq (%rbx), %rdi
addq $0x2, %rdi
movzbl -0x2(%rdi), %eax
incq %rdi
cmpl $0x20, %eax
je 0x40d508
cmpl $0x2b, %eax
jne 0x40d412
cmpb $0x58, -0x2(%rdi)
jne 0x40d412
cmpb $0x20, -0x1(%rdi)
jne 0x40d412
movq %rdi, 0x18(%rsp)
pushq $0xa
popq %rdx
xorl %esi, %esi
callq 0x423cc0
movq 0x10(%rsp), %rcx
movl %eax, (%rcx)
movq (%rsp), %rax
movl $0x3, (%rax)
movl %r15d, %ebp
jmp 0x40d1f3
pushq $0x8
popq %rsi
movq %r12, %rdi
callq 0x40df66
xorl %r14d, %r14d
pushq $0xb
popq %r15
decl %r15d
je 0x40d3ec
movq %r12, %rdi
callq 0x40dd8f
movl %eax, %r13d
movq %r12, %rdi
callq 0x40dd8f
movl %eax, %ebx
movq %r12, %rdi
callq 0x40dd8f
movq %r12, %rdi
callq 0x40dd8f
movl %eax, %ebp
movq %r12, %rdi
callq 0x40dd55
testl %eax, %eax
jne 0x40d3dc
cmpb $0x8, %bl
jne 0x40d3dc
movzbl %bpl, %eax
orl %eax, %r14d
testb %r13b, %r13b
jne 0x40d56b
andl $0x10, %r14d
cmpl $0x1, %r14d
pushq $0x4
popq %rax
sbbl $0x0, %eax
movq (%rsp), %rcx
jmp 0x40d63d
pushq $0x9
popq %rsi
movq %r12, %rdi
callq 0x40df66
movq %r12, %rdi
callq 0x40ff8d
testl %eax, %eax
je 0x40d436
movl %eax, %r13d
movq %r12, %rdi
callq 0x40ff8d
testl %eax, %eax
je 0x40d436
movl %eax, %ebx
movq %r12, %rdi
callq 0x40dd8f
leal -0x8(%rax), %ecx
rolb $0x5, %cl
cmpb $0x3, %cl
ja 0x40d436
movq 0x10(%rsp), %rcx
movl %r13d, (%rcx)
movq 0x8(%rsp), %rcx
movl %ebx, (%rcx)
movq (%rsp), %rcx
testq %rcx, %rcx
je 0x40d1f0
shrb $0x3, %al
movzbl %al, %eax
movl %eax, (%rcx)
jmp 0x40d1f0