// File: /workspace/github_c_makefile_star2_O0/archer1357[P]Offline-Raytracer/stb_image.c
// Function: stbi_load_main
static unsigned char *stbi_load_main(stbi__context *s, int *x, int *y, int *comp, int req_comp)
{
   if (stbi__jpeg_test(s)) return stbi__jpeg_load(s,x,y,comp,req_comp);
   if (stbi__png_test(s))  return stbi__png_load(s,x,y,comp,req_comp);
   if (stbi__bmp_test(s))  return stbi__bmp_load(s,x,y,comp,req_comp);
   if (stbi__gif_test(s))  return stbi__gif_load(s,x,y,comp,req_comp);
   if (stbi__psd_test(s))  return stbi__psd_load(s,x,y,comp,req_comp);
   if (stbi__pic_test(s))  return stbi__pic_load(s,x,y,comp,req_comp);

   #ifndef STBI_NO_HDR
   if (stbi__hdr_test(s)) {
      float *hdr = stbi__hdr_load(s, x,y,comp,req_comp);
      return stbi__hdr_to_ldr(hdr, *x, *y, req_comp ? req_comp : *comp);
   }
   #endif

   // test tga last because it's a crappy test!
   if (stbi__tga_test(s))
      return stbi__tga_load(s,x,y,comp,req_comp);
   return stbi__errpuc("unknown image type", "Image not of any known type, or corrupt");
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movl %r8d, -0x2c(%rbp)
movq -0x10(%rbp), %rdi
callq 0x4129a0
cmpl $0x0, %eax
je 0x4111ac
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
movq -0x28(%rbp), %rcx
movl -0x2c(%rbp), %r8d
callq 0x4129f0
movq %rax, -0x8(%rbp)
jmp 0x411358
movq -0x10(%rbp), %rdi
callq 0x412a40
cmpl $0x0, %eax
je 0x4111dc
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
movq -0x28(%rbp), %rcx
movl -0x2c(%rbp), %r8d
callq 0x412a70
movq %rax, -0x8(%rbp)
jmp 0x411358
movq -0x10(%rbp), %rdi
callq 0x412ac0
cmpl $0x0, %eax
je 0x41120c
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
movq -0x28(%rbp), %rcx
movl -0x2c(%rbp), %r8d
callq 0x412af0
movq %rax, -0x8(%rbp)
jmp 0x411358
movq -0x10(%rbp), %rdi
callq 0x413a90
cmpl $0x0, %eax
je 0x41123c
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
movq -0x28(%rbp), %rcx
movl -0x2c(%rbp), %r8d
callq 0x413ac0
movq %rax, -0x8(%rbp)
jmp 0x411358
movq -0x10(%rbp), %rdi
callq 0x413b60
cmpl $0x0, %eax
je 0x41126c
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
movq -0x28(%rbp), %rcx
movl -0x2c(%rbp), %r8d
callq 0x413ba0
movq %rax, -0x8(%rbp)
jmp 0x411358
movq -0x10(%rbp), %rdi
callq 0x414050
cmpl $0x0, %eax
je 0x41129c
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
movq -0x28(%rbp), %rcx
movl -0x2c(%rbp), %r8d
callq 0x414080
movq %rax, -0x8(%rbp)
jmp 0x411358
movq -0x10(%rbp), %rdi
callq 0x4115f0
cmpl $0x0, %eax
je 0x411310
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
movq -0x28(%rbp), %rcx
movl -0x2c(%rbp), %r8d
callq 0x411620
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x18(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x40(%rbp)
movq -0x20(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x3c(%rbp)
cmpl $0x0, -0x2c(%rbp)
je 0x4112ef
movl -0x2c(%rbp), %eax
movl %eax, -0x4c(%rbp)
jmp 0x4112f8
movq -0x28(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x4c(%rbp)
movl -0x3c(%rbp), %edx
movl -0x40(%rbp), %esi
movq -0x48(%rbp), %rdi
movl -0x4c(%rbp), %ecx
callq 0x414200
movq %rax, -0x8(%rbp)
jmp 0x411358
movq -0x10(%rbp), %rdi
callq 0x414410
cmpl $0x0, %eax
je 0x41133d
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
movq -0x28(%rbp), %rcx
movl -0x2c(%rbp), %r8d
callq 0x414530
movq %rax, -0x8(%rbp)
jmp 0x411358
leaq 0xd4094(%rip), %rdi     # 0x4e53d8
callq 0x411080
movl %eax, %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
cmovneq %rax, %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x50, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)