// File: /workspace/github_cpp_makefile_star2_O1/srajangarg[P]raytracer/src/core/stb_image.hpp
// Function: stbi__pic_load(stbi__context*, int*, int*, int*, int)
static stbi_uc *stbi__pic_load(stbi__context *s,int *px,int *py,int *comp,int req_comp)
{
   stbi_uc *result;
   int i, x,y;

   for (i=0; i<92; ++i)
      stbi__get8(s);

   x = stbi__get16be(s);
   y = stbi__get16be(s);
   if (stbi__at_eof(s))  return stbi__errpuc("bad file","file too short (pic header)");
   if ((1 << 28) / x < y) return stbi__errpuc("too large", "Image too large to decode");

   stbi__get32be(s); //skip `ratio'
   stbi__get16be(s); //skip `fields'
   stbi__get16be(s); //skip `pad'

   // intermediate buffer is RGBA
   result = (stbi_uc *) stbi__malloc(x*y*4);
   memset(result, 0xff, x*y*4);

   if (!stbi__pic_load_core(s,x,y,comp, result)) {
      STBI_FREE(result);
      result=0;
   }
   *px = x;
   *py = y;
   if (req_comp == 0) req_comp = *comp;
   result=stbi__convert_format(result,4,req_comp,x,y);

   return result;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movl %r8d, %r14d
movq %rcx, %r15
movq %rdx, %r12
movq %rsi, 0x78(%rsp)
movq %rdi, %r13
leaq 0x38(%rdi), %rbp
leaq 0x39(%rdi), %rax
movq %rax, 0x28(%rsp)
movl $0x5c, %ebx
movq 0xb8(%r13), %rax
cmpq 0xc0(%r13), %rax
jb 0x1a943
cmpl $0x0, 0x30(%r13)
je 0x1a94d
movq 0x28(%r13), %rdi
movl 0x34(%r13), %edx
movq %rbp, %rsi
callq *0x10(%r13)
testl %eax, %eax
je 0x1a91c
movq %rbp, 0xb8(%r13)
cltq
addq %rbp, %rax
movq %rax, 0xc0(%r13)
jmp 0x1a93c
movl $0x0, 0x30(%r13)
movq %rbp, 0xb8(%r13)
movq 0x28(%rsp), %rax
movq %rax, 0xc0(%r13)
movb $0x0, 0x38(%r13)
movq 0xb8(%r13), %rax
incq %rax
movq %rax, 0xb8(%r13)
decl %ebx
jne 0x1a8dd
movq %r13, %rdi
callq 0x1e01c
movl %eax, %ebx
movq %r13, %rdi
callq 0x1e01c
movl %eax, 0x4(%rsp)
cmpq $0x0, 0x10(%r13)
je 0x1a981
movq 0x28(%r13), %rdi
callq *0x20(%r13)
testl %eax, %eax
je 0x1a991
cmpl $0x0, 0x30(%r13)
je 0x1a9b0
movq 0xb8(%r13), %rax
cmpq 0xc0(%r13), %rax
jae 0x1a9b0
movl %r14d, %ecx
movl $0x10000000, %eax       # imm = 0x10000000
xorl %edx, %edx
divl %ebx
movl 0x4(%rsp), %r14d
cmpl %r14d, %eax
jae 0x1a9c5
leaq 0x12851(%rip), %rax     # 0x2d1ff
jmp 0x1a9b7
leaq 0x12e05(%rip), %rax     # 0x2d7bc
movq %rax, 0x1d9f2(%rip)     # 0x383b0
xorl %eax, %eax
jmp 0x1b120
movq $0x0, 0x38(%rsp)
movq %r12, 0x18(%rsp)
movq %r15, 0x20(%rsp)
movl %ecx, 0x44(%rsp)
movq %r13, %rdi
callq 0x1e01c
movq %r13, %rdi
callq 0x1e01c
movq %r13, %rdi
callq 0x1e01c
movq %r13, %rdi
callq 0x1e01c
movl %ebx, 0xc(%rsp)
imull %r14d, %ebx
shll $0x2, %ebx
movq %rbx, %rdi
callq 0x4400
movq %rax, 0x10(%rsp)
movq %rax, %rdi
movl $0xff, %esi
movq %rbx, %rdx
callq 0x41d0
leaq 0x12d9a(%rip), %r15     # 0x2d7c5
xorl %edx, %edx
movl $0x0, 0x8(%rsp)
cmpl $0xa, %edx
jne 0x1aa42
movq %r15, %rax
jmp 0x1acac
movq 0xb8(%r13), %rax
cmpq 0xc0(%r13), %rax
jb 0x1aab1
cmpl $0x0, 0x30(%r13)
je 0x1aa83
movl %edx, %ebx
movq 0x28(%r13), %rdi
movl 0x34(%r13), %edx
movq %rbp, %rsi
callq *0x10(%r13)
testl %eax, %eax
je 0x1aa88
movq %rbp, 0xb8(%r13)
cltq
addq %rbp, %rax
movq %rax, 0xc0(%r13)
jmp 0x1aaa8
xorl %r12d, %r12d
jmp 0x1aac0
movl $0x0, 0x30(%r13)
movq %rbp, 0xb8(%r13)
movq 0x28(%rsp), %rax
movq %rax, 0xc0(%r13)
movb $0x0, 0x38(%r13)
movl %ebx, %edx
movq 0xb8(%r13), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0xb8(%r13)
movzbl (%rax), %r12d
movq 0xb8(%r13), %rax
cmpq 0xc0(%r13), %rax
jb 0x1ab2e
cmpl $0x0, 0x30(%r13)
je 0x1ab01
movl %edx, %ebx
movq 0x28(%r13), %rdi
movl 0x34(%r13), %edx
movq %rbp, %rsi
callq *0x10(%r13)
testl %eax, %eax
je 0x1ab05
movq %rbp, 0xb8(%r13)
cltq
addq %rbp, %rax
movq %rax, 0xc0(%r13)
jmp 0x1ab25
xorl %ebx, %ebx
jmp 0x1ab3b
movl $0x0, 0x30(%r13)
movq %rbp, 0xb8(%r13)
movq 0x28(%rsp), %rax
movq %rax, 0xc0(%r13)
movb $0x0, 0x38(%r13)
movq 0xb8(%r13), %rax
movl %ebx, %edx
leaq 0x1(%rax), %rcx
movq %rcx, 0xb8(%r13)
movb (%rax), %bl
movslq %edx, %rax
leaq (%rax,%rax,2), %rax
leaq (%rsp,%rax), %r14
addq $0x80, %r14
movb %bl, (%r14)
movq 0xb8(%r13), %rax
cmpq 0xc0(%r13), %rax
jb 0x1abc7
cmpl $0x0, 0x30(%r13)
je 0x1ab92
movl %edx, %r15d
movq 0x28(%r13), %rdi
movl 0x34(%r13), %edx
movq %rbp, %rsi
callq *0x10(%r13)
testl %eax, %eax
je 0x1ab96
movq %rbp, 0xb8(%r13)
cltq
addq %rbp, %rax
movq %rax, 0xc0(%r13)
jmp 0x1abb6
xorl %eax, %eax
jmp 0x1abd4
movl $0x0, 0x30(%r13)
movq %rbp, 0xb8(%r13)
movq 0x28(%rsp), %rax
movq %rax, 0xc0(%r13)
movb $0x0, 0x38(%r13)
movl %r15d, %edx
movq 0xb8(%r13), %rax
leaq 0x12bfe(%rip), %r15     # 0x2d7c5
leaq 0x1(%rax), %rcx
movq %rcx, 0xb8(%r13)
movb (%rax), %al
movb %al, 0x1(%r14)
movq 0xb8(%r13), %rax
cmpq 0xc0(%r13), %rax
jb 0x1ac4f
cmpl $0x0, 0x30(%r13)
je 0x1ac1a
movl %edx, %r15d
movq 0x28(%r13), %rdi
movl 0x34(%r13), %edx
movq %rbp, %rsi
callq *0x10(%r13)
testl %eax, %eax
je 0x1ac1e
movq %rbp, 0xb8(%r13)
cltq
addq %rbp, %rax
movq %rax, 0xc0(%r13)
jmp 0x1ac3e
xorl %eax, %eax
jmp 0x1ac5c
movl $0x0, 0x30(%r13)
movq %rbp, 0xb8(%r13)
movq 0x28(%rsp), %rax
movq %rax, 0xc0(%r13)
movb $0x0, 0x38(%r13)
movq 0xb8(%r13), %rax
movl %r15d, %edx
leaq 0x12b76(%rip), %r15     # 0x2d7c5
leaq 0x1(%rax), %rcx
movq %rcx, 0xb8(%r13)
movb (%rax), %al
incl %edx
movb %al, 0x2(%r14)
movzbl %al, %eax
orl %eax, 0x8(%rsp)
cmpq $0x0, 0x10(%r13)
je 0x1ac89
movl %edx, %r14d
movq 0x28(%r13), %rdi
callq *0x20(%r13)
movl %r14d, %edx
testl %eax, %eax
je 0x1ac99
cmpl $0x0, 0x30(%r13)
je 0x1aca5
movq 0xb8(%r13), %rax
cmpq 0xc0(%r13), %rax
jae 0x1aca5
movb $0x1, %cl
movq %r15, %rax
cmpb $0x8, %bl
jne 0x1acac
jmp 0x1acb5
leaq 0x12b10(%rip), %rax     # 0x2d7bc
movq %rax, 0x1d6fd(%rip)     # 0x383b0
xorl %ecx, %ecx
testb %cl, %cl
je 0x1b0d8
testl %r12d, %r12d
jne 0x1aa35
movl %edx, 0x40(%rsp)
movl 0x8(%rsp), %eax
andl $0x10, %eax
cmpl $0x1, %eax
movl $0x4, %eax
sbbl $0x0, %eax
movq 0x20(%rsp), %rbx
movl %eax, (%rbx)
movq 0x10(%rsp), %rdi
movq %rdi, 0x38(%rsp)
movl 0x4(%rsp), %r15d
testl %r15d, %r15d
movq 0x18(%rsp), %r14
je 0x1b0ec
movl 0xc(%rsp), %eax
shll $0x2, %eax
movl %eax, 0x54(%rsp)
movl %r15d, %eax
movq %rax, 0x58(%rsp)
movl 0x40(%rsp), %eax
movl %eax, %ecx
movq %rcx, 0x60(%rsp)
movq $0x0, 0x38(%rsp)
xorl %ecx, %ecx
testl %eax, %eax
jle 0x1b0a8
movl 0x54(%rsp), %eax
imull %ecx, %eax
cltq
addq %rdi, %rax
movq %rax, 0x48(%rsp)
xorl %eax, %eax
movq %rcx, 0x68(%rsp)
movq %rax, 0x70(%rsp)
leaq (%rax,%rax,2), %rax
leaq (%rsp,%rax), %r15
addq $0x80, %r15
movzbl 0x1(%r15), %eax
testl %eax, %eax
je 0x1b052
movq 0x48(%rsp), %rbx
movl 0xc(%rsp), %r12d
cmpl $0x1, %eax
je 0x1b047
movq 0x48(%rsp), %r12
movl 0xc(%rsp), %ecx
movl %ecx, 0x8(%rsp)
cmpl $0x2, %eax
jne 0x1b0c1
cmpl $0x0, 0x8(%rsp)
jle 0x1b07c
movq 0xb8(%r13), %rax
cmpq 0xc0(%r13), %rax
jb 0x1ae08
cmpl $0x0, 0x30(%r13)
je 0x1addd
movq 0x28(%r13), %rdi
movl 0x34(%r13), %edx
movq %rbp, %rsi
callq *0x10(%r13)
testl %eax, %eax
je 0x1ade1
movq %rbp, 0xb8(%r13)
cltq
addq %rbp, %rax
movq %rax, 0xc0(%r13)
jmp 0x1ae01
xorl %ebx, %ebx
jmp 0x1ae15
movl $0x0, 0x30(%r13)
movq %rbp, 0xb8(%r13)
movq 0x28(%rsp), %rax
movq %rax, 0xc0(%r13)
movb $0x0, 0x38(%r13)
movq 0xb8(%r13), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0xb8(%r13)
movb (%rax), %bl
cmpq $0x0, 0x10(%r13)
je 0x1ae2f
movq 0x28(%r13), %rdi
callq *0x20(%r13)
testl %eax, %eax
je 0x1ae3f
cmpl $0x0, 0x30(%r13)
je 0x1ae79
movq 0xb8(%r13), %rax
cmpq 0xc0(%r13), %rax
jae 0x1ae79
movzbl %bl, %r14d
testb %r14b, %r14b
js 0x1ae96
cmpl %r14d, 0x8(%rsp)
jle 0x1ae79
leal 0x1(%r14), %ebx
incl %r14d
movzbl 0x2(%r15), %esi
movq %r13, %rdi
movq %r12, %rdx
callq 0x21ffe
testq %rax, %rax
je 0x1ae87
addq $0x4, %r12
decl %r14d
jne 0x1ae56
jmp 0x1af21
leaq 0x1293c(%rip), %rax     # 0x2d7bc
movq %rax, 0x1d529(%rip)     # 0x383b0
xorl %eax, %eax
testb %al, %al
jne 0x1ad93
jmp 0x1b0d8
cmpl $0x80, %r14d
jne 0x1aeab
movq %r13, %rdi
callq 0x1e01c
movl %eax, %ebx
jmp 0x1aeb2
addl $-0x7f, %r14d
movl %r14d, %ebx
cmpl 0x8(%rsp), %ebx
jle 0x1aec8
leaq 0x128fd(%rip), %rax     # 0x2d7bc
movq %rax, 0x1d4ea(%rip)     # 0x383b0
jmp 0x1af17
movzbl 0x2(%r15), %esi
movq %r13, %rdi
leaq 0x34(%rsp), %rdx
callq 0x21ffe
testq %rax, %rax
je 0x1af17
movb $0x1, %al
testl %ebx, %ebx
jle 0x1af19
xorl %ecx, %ecx
movzbl 0x2(%r15), %edx
movl $0x80, %esi
xorl %edi, %edi
testl %edx, %esi
je 0x1af00
movb 0x34(%rsp,%rdi), %r8b
movb %r8b, (%r12,%rdi)
incq %rdi
shrl %esi
cmpq $0x4, %rdi
jne 0x1aef3
incl %ecx
addq $0x4, %r12
cmpl %ebx, %ecx
jne 0x1aee7
jmp 0x1af19
xorl %eax, %eax
testb %al, %al
je 0x1ae87
subl %ebx, 0x8(%rsp)
movb $0x1, %al
jmp 0x1ae89
movq 0xb8(%r13), %rax
cmpq 0xc0(%r13), %rax
jb 0x1af97
cmpl $0x0, 0x30(%r13)
je 0x1af6b
movq 0x28(%r13), %rdi
movl 0x34(%r13), %edx
movq %rbp, %rsi
callq *0x10(%r13)
testl %eax, %eax
je 0x1af70
movq %rbp, 0xb8(%r13)
cltq
addq %rbp, %rax
movq %rax, 0xc0(%r13)
jmp 0x1af90
xorl %r14d, %r14d
jmp 0x1afa5
movl $0x0, 0x30(%r13)
movq %rbp, 0xb8(%r13)
movq 0x28(%rsp), %rax
movq %rax, 0xc0(%r13)
movb $0x0, 0x38(%r13)
movq 0xb8(%r13), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0xb8(%r13)
movb (%rax), %r14b
cmpq $0x0, 0x10(%r13)
je 0x1afbf
movq 0x28(%r13), %rdi
callq *0x20(%r13)
testl %eax, %eax
je 0x1afcf
cmpl $0x0, 0x30(%r13)
je 0x1b02f
movq 0xb8(%r13), %rax
cmpq 0xc0(%r13), %rax
jae 0x1b02f
movzbl 0x2(%r15), %esi
movq %r13, %rdi
leaq 0x34(%rsp), %rdx
callq 0x21ffe
testq %rax, %rax
je 0x1b03d
movzbl %r14b, %eax
cmpl %eax, %r12d
cmovll %r12d, %eax
movzbl %al, %eax
testb %al, %al
je 0x1b028
xorl %ecx, %ecx
movzbl 0x2(%r15), %edx
movl $0x80, %esi
xorl %edi, %edi
testl %edx, %esi
je 0x1b013
movb 0x34(%rsp,%rdi), %r8b
movb %r8b, (%rbx,%rdi)
incq %rdi
shrl %esi
cmpq $0x4, %rdi
jne 0x1b006
incl %ecx
addq $0x4, %rbx
cmpl %eax, %ecx
jne 0x1affa
subl %eax, %r12d
movb $0x1, %al
jmp 0x1b03f
leaq 0x12786(%rip), %rax     # 0x2d7bc
movq %rax, 0x1d373(%rip)     # 0x383b0
xorl %eax, %eax
testb %al, %al
je 0x1b0d8
testl %r12d, %r12d
jg 0x1af2c
jmp 0x1b07c
movzbl 0x2(%r15), %ebx
movl 0xc(%rsp), %r14d
movq 0x48(%rsp), %r12
movq %r13, %rdi
movl %ebx, %esi
movq %r12, %rdx
callq 0x21ffe
testq %rax, %rax
je 0x1b0d8
addq $0x4, %r12
decl %r14d
jne 0x1b061
movq 0x70(%rsp), %rax
incq %rax
cmpq 0x60(%rsp), %rax
movq 0x20(%rsp), %rbx
movq 0x18(%rsp), %r14
movl 0x4(%rsp), %r15d
movq 0x10(%rsp), %rdi
movq 0x68(%rsp), %rcx
jne 0x1ad49
incq %rcx
cmpq 0x58(%rsp), %rcx
movl 0x40(%rsp), %eax
jne 0x1ad29
movq %rdi, 0x38(%rsp)
jmp 0x1b0ec
leaq 0x126fd(%rip), %rax     # 0x2d7c5
movq %rax, 0x1d2e1(%rip)     # 0x383b0
movq $0x0, 0x38(%rsp)
movq 0x20(%rsp), %rbx
movq 0x18(%rsp), %r14
movl 0x4(%rsp), %r15d
movq 0x10(%rsp), %rdi
cmpq $0x0, 0x38(%rsp)
jne 0x1b0fb
callq 0x4390
xorl %edi, %edi
movl 0x44(%rsp), %edx
movq 0x78(%rsp), %rax
movl 0xc(%rsp), %ecx
movl %ecx, (%rax)
movl %r15d, (%r14)
testl %edx, %edx
jne 0x1b113
movl (%rbx), %edx
movl $0x4, %esi
movl %r15d, %r8d
callq 0x2003d
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq