// File: /workspace/github_cpp_makefile_star2_O2/srajangarg[P]raytracer/src/core/stb_image.hpp
// Function: stbi__loadf_main(stbi__context*, int*, int*, int*, int)
static float *stbi__loadf_main(stbi__context *s, int *x, int *y, int *comp, int req_comp)
{
   unsigned char *data;
   #ifndef STBI_NO_HDR
   if (stbi__hdr_test(s)) {
      float *hdr_data = stbi__hdr_load(s,x,y,comp,req_comp);
      if (hdr_data)
         stbi__float_postprocess(hdr_data,x,y,comp,req_comp);
      return hdr_data;
   }
   #endif
   data = stbi__load_flip(s, x, y, comp, req_comp);
   if (data)
      return stbi__ldr_to_hdr(data, *x, *y, req_comp ? req_comp : *comp);
   return stbi__errpf("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 $0x38, %rsp
movl %r8d, %r15d
movq %rcx, %r12
movq %rdx, %r13
movq %rsi, %rbp
movq %rdi, %rbx
callq 0x1268a
movq %rbx, %rdi
movq %rbp, %rsi
movq %r13, %rdx
movq %r12, %rcx
movl %r15d, %r8d
testl %eax, %eax
je 0x123d8
callq 0x168d1
testq %rax, %rax
je 0x12528
movq %rax, %r11
cmpl $0x0, 0x1d0ad(%rip)     # 0x2f3d8
je 0x124f1
movslq (%rbp), %rbp
movl (%r13), %ecx
testl %r15d, %r15d
jne 0x12342
movl (%r12), %r15d
movl %ecx, %edx
sarl %edx
xorl %esi, %esi
testl %r15d, %r15d
movl $0x0, %edi
cmovgl %r15d, %edi
movslq %r15d, %r8
testl %ebp, %ebp
movl $0x0, %r9d
cmovgl %ebp, %r9d
testl %edx, %edx
cmovlel %esi, %edx
leaq (,%r8,4), %r10
decl %ecx
imull %ebp, %ecx
imulq %rbp, %r8
shlq $0x2, %r8
movq %r11, %rax
cmpq %rdx, %rsi
je 0x1252a
movslq %ecx, %rbx
imulq %r10, %rbx
addq %rax, %rbx
movq %r11, %r14
xorl %r15d, %r15d
cmpq %r9, %r15
je 0x123ce
xorl %r12d, %r12d
cmpq %r12, %rdi
je 0x123c3
movss (%r14,%r12,4), %xmm0
movss (%rbx,%r12,4), %xmm1
movss %xmm1, (%r14,%r12,4)
movss %xmm0, (%rbx,%r12,4)
incq %r12
jmp 0x123a1
incq %r15
addq %r10, %rbx
addq %r10, %r14
jmp 0x12399
incq %rsi
subl %ebp, %ecx
addq %r8, %r11
jmp 0x12380
callq 0x120c5
movq %rax, 0x8(%rsp)
testq %rax, %rax
je 0x12507
movl (%rbp), %eax
movl (%r13), %ebp
testl %r15d, %r15d
jne 0x123fb
movl (%r12), %r15d
imull %eax, %ebp
movl %r15d, %eax
imull %ebp, %eax
movslq %eax, %rdi
shlq $0x2, %rdi
callq 0x4420
testq %rax, %rax
je 0x12510
movl %r15d, %ecx
andl $0x1, %ecx
leal (%r15,%rcx), %r12d
decl %r12d
xorl %r14d, %r14d
testl %r12d, %r12d
cmovlel %r14d, %r12d
movslq %r15d, %rcx
testl %ebp, %ebp
cmovlel %r14d, %ebp
movq %rcx, 0x18(%rsp)
leaq (,%rcx,4), %rcx
movq %rcx, 0x20(%rsp)
movq %rax, %rbx
movq 0x8(%rsp), %r13
movq %rax, 0x10(%rsp)
movq %r15, 0x30(%rsp)
movq %rbp, 0x28(%rsp)
cmpq %rbp, %r14
je 0x124f6
movq %r14, %rbp
imulq 0x18(%rsp), %rbp
xorl %r15d, %r15d
cmpq %r15, %r12
je 0x124ae
movzbl (%r13,%r15), %eax
cvtsi2ss %eax, %xmm0
divss 0xf7a2(%rip), %xmm0     # 0x21c30
movss 0x1ceca(%rip), %xmm1    # 0x2f360
callq 0x44f0
mulss 0x1cec1(%rip), %xmm0    # 0x2f364
movss %xmm0, (%rbx,%r15,4)
incq %r15
jmp 0x12477
movq 0x30(%rsp), %r15
cmpl %r15d, %r12d
jge 0x124da
addq %r12, %rbp
movq 0x8(%rsp), %rax
movzbl (%rax,%rbp), %eax
cvtsi2ss %eax, %xmm0
divss 0xf760(%rip), %xmm0     # 0x21c30
movq 0x10(%rsp), %rax
movss %xmm0, (%rax,%rbp,4)
incq %r14
addq 0x20(%rsp), %rbx
addq 0x18(%rsp), %r13
movq 0x28(%rsp), %rbp
jmp 0x12462
movq %r11, %rax
jmp 0x1252a
movq 0x8(%rsp), %rdi
callq 0x43a0
movq 0x10(%rsp), %rax
jmp 0x1252a
leaq 0xfbd1(%rip), %rax      # 0x220df
jmp 0x12521
movq 0x8(%rsp), %rdi
callq 0x43a0
leaq 0xfca8(%rip), %rax      # 0x221c9
movq %rax, 0x1cea8(%rip)     # 0x2f3d0
xorl %eax, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq