LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/srajangarg[P]raytracer/src/core/stb_image.hpp
// Function: stbi_info
STBIDEF int stbi_info(char const *filename, int *x, int *y, int *comp)
{
    FILE *f = stbi__fopen(filename, "rb");
    int result;
    if (!f) return stbi__err("can't fopen", "Unable to open file");
    result = stbi_info_from_file(f, x, y, comp);
    fclose(f);
    return result;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, %r15
leaq 0x17414(%rip), %rsi     # 0x2d110
callq 0x4380
testq %rax, %rax
je 0x15d28
movq %rax, %r12
movq %rax, %rdi
movq %r15, %rsi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x15d44
movl %eax, %ebx
movq %r12, %rdi
callq 0x4300
movl %ebx, %eax
jmp 0x15d38
leaq 0x173e4(%rip), %rax     # 0x2d113
movq %rax, 0x2267a(%rip)     # 0x383b0
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/srajangarg[P]raytracer/src/core/stb_image.hpp
// Function: stbi_info_from_file
STBIDEF int stbi_info_from_file(FILE *f, int *x, int *y, int *comp)
{
   int r;
   stbi__context s;
   long pos = ftell(f);
   stbi__start_file(&s, f);
   r = stbi__info_main(&s,x,y,comp);
   fseek(f,pos,SEEK_SET);
   return r;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd8, %rsp
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
callq 0x4030
movq %rax, %r13
leaq 0x225e0(%rip), %rsi     # 0x38350
movq %rsp, %rbp
movq %rbp, %rdi
movq %r12, %rdx
callq 0x14877
movq %rbp, %rdi
movq %r15, %rsi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x15db2
movl %eax, %ebx
movq %r12, %rdi
movq %r13, %rsi
xorl %edx, %edx
callq 0x4360
movl %ebx, %eax
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/srajangarg[P]raytracer/src/core/stb_image.hpp
// Function: stbi__pnm_test(stbi__context*)
static int      stbi__pnm_test(stbi__context *s)
{
   char p, t;
   p = (char) stbi__get8(s);
   t = (char) stbi__get8(s);
   if (p != 'P' || (t != '5' && t != '6')) {
       stbi__rewind( s );
       return 0;
   }
   return 1;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0xb8(%rdi), %rax
cmpq 0xc0(%rdi), %rax
jb 0x1b1a2
cmpl $0x0, 0x30(%rbx)
je 0x1b179
movq 0x28(%rbx), %rdi
leaq 0x38(%rbx), %r14
movl 0x34(%rbx), %edx
movq %r14, %rsi
callq *0x10(%rbx)
testl %eax, %eax
je 0x1b17e
movq %r14, 0xb8(%rbx)
cltq
addq %r14, %rax
movq %rax, 0xc0(%rbx)
jmp 0x1b19b
movb $0x1, %bpl
jmp 0x1b1b4
movl $0x0, 0x30(%rbx)
movq %r14, 0xb8(%rbx)
leaq 0x39(%rbx), %rax
movq %rax, 0xc0(%rbx)
movb $0x0, 0x38(%rbx)
movq 0xb8(%rbx), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0xb8(%rbx)
cmpb $0x50, (%rax)
setne %bpl
movq 0xb8(%rbx), %rax
cmpq 0xc0(%rbx), %rax
jb 0x1b21c
cmpl $0x0, 0x30(%rbx)
je 0x1b1f4
movq 0x28(%rbx), %rdi
leaq 0x38(%rbx), %r14
movl 0x34(%rbx), %edx
movq %r14, %rsi
callq *0x10(%rbx)
testl %eax, %eax
je 0x1b1f8
movq %r14, 0xb8(%rbx)
cltq
addq %r14, %rax
movq %rax, 0xc0(%rbx)
jmp 0x1b215
movb $0x1, %al
jmp 0x1b230
movl $0x0, 0x30(%rbx)
movq %r14, 0xb8(%rbx)
leaq 0x39(%rbx), %rax
movq %rax, 0xc0(%rbx)
movb $0x0, 0x38(%rbx)
movq 0xb8(%rbx), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0xb8(%rbx)
movb (%rax), %al
addb $-0x37, %al
cmpb $-0x2, %al
setb %al
orb %al, %bpl
movl $0x1, %eax
cmpb $0x1, %bpl
jne 0x1b24e
movups 0xc8(%rbx), %xmm0
movups %xmm0, 0xb8(%rbx)
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/srajangarg[P]raytracer/src/core/stb_image.hpp
// Function: stbi__pnm_load(stbi__context*, int*, int*, int*, int)
static stbi_uc *stbi__pnm_load(stbi__context *s, int *x, int *y, int *comp, int req_comp)
{
   stbi_uc *out;
   if (!stbi__pnm_info(s, (int *)&s->img_x, (int *)&s->img_y, (int *)&s->img_n))
      return 0;
   *x = s->img_x;
   *y = s->img_y;
   *comp = s->img_n;

   out = (stbi_uc *) stbi__malloc(s->img_n * s->img_x * s->img_y);
   if (!out) return stbi__errpuc("outofmem", "Out of memory");
   stbi__getn(s, out, s->img_n * s->img_x * s->img_y);

   if (req_comp && req_comp != s->img_n) {
      out = stbi__convert_format(out, s->img_n, req_comp, s->img_x, s->img_y);
      if (out == NULL) return out; // stbi__convert_format frees input on failure
   }
   return out;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r8d, %ebx
movq %rcx, %r12
movq %rdx, %r13
movq %rsi, %rbp
movq %rdi, %r14
leaq 0x4(%rdi), %rdx
leaq 0x8(%rdi), %r15
movq %rdi, %rsi
movq %r15, %rcx
callq 0x2210f
testl %eax, %eax
je 0x1b2fd
movl (%r14), %eax
movl %eax, (%rbp)
movl 0x4(%r14), %eax
movl %eax, (%r13)
movl 0x8(%r14), %eax
movl %eax, (%r12)
movl (%r14), %r13d
imull 0x8(%r14), %r13d
imull 0x4(%r14), %r13d
movq %r13, %rdi
callq 0x4400
testq %rax, %rax
je 0x1b2ef
movq %rax, %r12
movq %r14, %rdi
movq %rax, %rsi
movl %r13d, %edx
callq 0x20499
testl %ebx, %ebx
je 0x1b300
movl (%r15), %esi
cmpl %ebx, %esi
je 0x1b300
movl (%r14), %ecx
movl 0x4(%r14), %r8d
movq %r12, %rdi
movl %ebx, %edx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2003d
leaq 0x11f13(%rip), %rax     # 0x2d209
movq %rax, 0x1d0b3(%rip)     # 0x383b0
xorl %r12d, %r12d
movq %r12, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/srajangarg[P]raytracer/src/core/stb_image.hpp
// Function: stbi__hdr_to_ldr(float*, int, int, int)
static stbi_uc *stbi__hdr_to_ldr(float   *data, int x, int y, int comp)
{
   int i,k,n;
   stbi_uc *output = (stbi_uc *) stbi__malloc(x * y * comp);
   if (output == NULL) { STBI_FREE(data); return stbi__errpuc("outofmem", "Out of memory"); }
   // compute number of non-alpha components
   if (comp & 1) n = comp; else n = comp-1;
   for (i=0; i < x*y; ++i) {
      for (k=0; k < n; ++k) {
         float z = (float) pow(data[i*comp+k]*stbi__h2l_scale_i, stbi__h2l_gamma_i) * 255 + 0.5f;
         if (z < 0) z = 0;
         if (z > 255) z = 255;
         output[i*comp + k] = (stbi_uc) stbi__float2int(z);
      }
      if (k < comp) {
         float z = data[i*comp+k] * 255 + 0.5f;
         if (z < 0) z = 0;
         if (z > 255) z = 255;
         output[i*comp + k] = (stbi_uc) stbi__float2int(z);
      }
   }
   STBI_FREE(data);
   return output;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movl %esi, %ebp
movq %rdi, %rbx
imull %edx, %ebp
movl %ebp, %eax
movq %rcx, 0x20(%rsp)
imull %ecx, %eax
movslq %eax, %rdi
callq 0x4400
testq %rax, %rax
je 0x1bc5f
movq %rax, 0x8(%rsp)
movq %rbx, 0x10(%rsp)
testl %ebp, %ebp
jle 0x1bc4e
movq 0x20(%rsp), %rcx
movl %ecx, %eax
andl $0x1, %eax
addl %ecx, %eax
decl %eax
movslq %ecx, %r13
movl %ebp, %ecx
movq %rcx, 0x30(%rsp)
movl %eax, 0x1c(%rsp)
movl %eax, %ebx
leaq (,%r13,4), %rax
movq %rax, 0x28(%rsp)
xorl %r14d, %r14d
movss 0x1108c(%rip), %xmm2    # 0x2cc10
movss 0x1108c(%rip), %xmm3    # 0x2cc18
movq 0x8(%rsp), %rbp
movq 0x10(%rsp), %r12
movl $0x0, %r15d
cmpl $0x0, 0x1c(%rsp)
jle 0x1bbf8
xorl %r15d, %r15d
movss (%r12,%r15,4), %xmm0
mulss 0x1c798(%rip), %xmm0    # 0x3834c
movss 0x1c78c(%rip), %xmm1    # 0x38348
callq 0x44e0
movss 0x1104f(%rip), %xmm3    # 0x2cc18
movss 0x1103f(%rip), %xmm2    # 0x2cc10
mulss %xmm2, %xmm0
addss %xmm3, %xmm0
xorps %xmm1, %xmm1
maxss %xmm0, %xmm1
movaps %xmm2, %xmm0
minss %xmm1, %xmm0
cvttss2si %xmm0, %eax
movb %al, (%rbp,%r15)
incq %r15
cmpq %r15, %rbx
jne 0x1bba6
cmpl 0x20(%rsp), %r15d
jge 0x1bc38
movq %r14, %rax
imulq %r13, %rax
movslq %r15d, %rcx
addq %rax, %rcx
movq 0x10(%rsp), %rax
movss (%rax,%rcx,4), %xmm0
mulss %xmm2, %xmm0
addss %xmm3, %xmm0
xorps %xmm1, %xmm1
maxss %xmm0, %xmm1
movaps %xmm2, %xmm0
minss %xmm1, %xmm0
cvttss2si %xmm0, %eax
movq 0x8(%rsp), %rdx
movb %al, (%rdx,%rcx)
incq %r14
addq 0x28(%rsp), %r12
addq %r13, %rbp
cmpq 0x30(%rsp), %r14
jne 0x1bb96
movq 0x10(%rsp), %rdi
callq 0x4390
movq 0x8(%rsp), %rax
jmp 0x1bc77
movq %rbx, %rdi
callq 0x4390
leaq 0x1159b(%rip), %rax     # 0x2d209
movq %rax, 0x1c73b(%rip)     # 0x383b0
xorl %eax, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/srajangarg[P]raytracer/src/core/stb_image.hpp
// Function: stbi__decode_jpeg_header(stbi__jpeg*, int)
static int stbi__decode_jpeg_header(stbi__jpeg *z, int scan)
{
   int m;
   z->marker = STBI__MARKER_none; // initialize cached marker to empty
   m = stbi__get_marker(z);
   if (!stbi__SOI(m)) return stbi__err("no SOI","Corrupt JPEG");
   if (scan == STBI__SCAN_type) return 1;
   m = stbi__get_marker(z);
   while (!stbi__SOF(m)) {
      if (!stbi__process_marker(z,m)) return 0;
      m = stbi__get_marker(z);
      while (m == STBI__MARKER_none) {
         // some files have extra padding after their blocks, so ok, we'll scan
         if (stbi__at_eof(z->s)) return stbi__err("no SOF", "Corrupt JPEG");
         m = stbi__get_marker(z);
      }
   }
   z->progressive = stbi__SOF_progressive(m);
   if (!stbi__process_frame_header(z, scan)) return 0;
   return 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebx
movq %rdi, %r14
movb $-0x1, 0x4728(%rdi)
callq 0x1d21e
cmpb $-0x28, %al
jne 0x1cbd1
movl $0x1, %ebp
cmpl $0x1, %ebx
je 0x1cbe1
movq %r14, %rdi
callq 0x1d21e
movzbl %al, %esi
movl %esi, %ecx
andl $-0x2, %ecx
cmpl $0xc0, %ecx
sete %cl
cmpb $-0x3e, %sil
sete %dl
orb %cl, %dl
jne 0x1cbaf
xorl %ebp, %ebp
movq %r14, %rdi
callq 0x1d350
testl %eax, %eax
je 0x1cbe1
movq %r14, %rdi
callq 0x1d21e
cmpb $-0x1, %al
jne 0x1cb9b
movq (%r14), %r15
cmpq $0x0, 0x10(%r15)
je 0x1cb89
movq 0x28(%r15), %rdi
callq *0x20(%r15)
testl %eax, %eax
je 0x1cb60
cmpl $0x0, 0x30(%r15)
je 0x1cbee
movq 0xb8(%r15), %rax
cmpq 0xc0(%r15), %rax
jb 0x1cb60
jmp 0x1cbee
cmpb $-0x3e, %al
je 0x1cbaf
movzbl %al, %esi
movl %esi, %ecx
andl $-0x2, %ecx
cmpl $0xc0, %ecx
jne 0x1cb50
xorl %ecx, %ecx
cmpb $-0x3e, %al
sete %cl
movl %ecx, 0x4730(%r14)
movq %r14, %rdi
movl %ebx, %esi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x1d93d
leaq 0x1055a(%rip), %rax     # 0x2d132
movq %rax, 0x1b7d1(%rip)     # 0x383b0
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x10544(%rip), %rax     # 0x2d139
movq %rax, 0x1b7b4(%rip)     # 0x383b0
jmp 0x1cbe1
// File: /workspace/github_cpp_makefile_star2_O1/srajangarg[P]raytracer/src/core/stb_image.hpp
// Function: stbi__YCbCr_to_RGB_row(unsigned char*, unsigned char const*, unsigned char const*, unsigned char const*, int, int)
static void stbi__YCbCr_to_RGB_row(stbi_uc *out, const stbi_uc *y, const stbi_uc *pcb, const stbi_uc *pcr, int count, int step)
{
   int i;
   for (i=0; i < count; ++i) {
      int y_fixed = (y[i] << 20) + (1<<19); // rounding
      int r,g,b;
      int cr = pcr[i] - 128;
      int cb = pcb[i] - 128;
      r = y_fixed +  cr* float2fixed(1.40200f);
      g = y_fixed + (cr*-float2fixed(0.71414f)) + ((cb*-float2fixed(0.34414f)) & 0xffff0000);
      b = y_fixed                               +   cb* float2fixed(1.77200f);
      r >>= 20;
      g >>= 20;
      b >>= 20;
      if ((unsigned) r > 255) { if (r < 0) r = 0; else r = 255; }
      if ((unsigned) g > 255) { if (g < 0) g = 0; else g = 255; }
      if ((unsigned) b > 255) { if (b < 0) b = 0; else b = 255; }
      out[0] = (stbi_uc)r;
      out[1] = (stbi_uc)g;
      out[2] = (stbi_uc)b;
      out[3] = 255;
      out += step;
   }
}

// Assembly:
testl %r8d, %r8d
jle 0x1d173
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movslq %r9d, %rax
movl %r8d, %r8d
addq $0x3, %rdi
xorl %r9d, %r9d
xorl %r10d, %r10d
movl $0xff, %ebp
movzbl (%rsi,%r10), %ebx
shll $0x14, %ebx
movzbl (%rcx,%r10), %r14d
addl $-0x80, %r14d
imull $0x166f00, %r14d, %r11d # imm = 0x166F00
addl %ebx, %r11d
addl $0x80000, %r11d         # imm = 0x80000
sarl $0x14, %r11d
testl %r11d, %r11d
cmovlel %r9d, %r11d
cmpl %ebp, %r11d
jl 0x1d0e9
movl $0xff, %r11d
movzbl (%rdx,%r10), %r15d
addl $-0x80, %r15d
imull $0xfff49300, %r14d, %r14d # imm = 0xFFF49300
leal (%r14,%rbx), %r12d
addl $0x80000, %r12d         # imm = 0x80000
imull $0xfffa7e00, %r15d, %r14d # imm = 0xFFFA7E00
andl $0xffff0000, %r14d      # imm = 0xFFFF0000
addl %r12d, %r14d
sarl $0x14, %r14d
testl %r14d, %r14d
jg 0x1d121
xorl %r14d, %r14d
cmpl %ebp, %r14d
jl 0x1d12c
movl $0xff, %r14d
imull $0x1c5a00, %r15d, %r15d # imm = 0x1C5A00
addl %r15d, %ebx
addl $0x80000, %ebx          # imm = 0x80000
sarl $0x14, %ebx
testl %ebx, %ebx
cmovlel %r9d, %ebx
cmpl %ebp, %ebx
jl 0x1d14e
movl $0xff, %ebx
movb %r11b, -0x3(%rdi)
movb %r14b, -0x2(%rdi)
movb %bl, -0x1(%rdi)
movb $-0x1, (%rdi)
incq %r10
addq %rax, %rdi
cmpq %r10, %r8
jne 0x1d0b1
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/srajangarg[P]raytracer/src/core/stb_image.hpp
// Function: stbi__resample_row_hv_2(unsigned char*, unsigned char*, unsigned char*, int, int)
static stbi_uc *stbi__resample_row_hv_2(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs)
{
   // need to generate 2x2 samples for every one in input
   int i,t0,t1;
   if (w == 1) {
      out[0] = out[1] = stbi__div4(3*in_near[0] + in_far[0] + 2);
      return out;
   }

   t1 = 3*in_near[0] + in_far[0];
   out[0] = stbi__div4(t1+2);
   for (i=1; i < w; ++i) {
      t0 = t1;
      t1 = 3*in_near[i]+in_far[i];
      out[i*2-1] = stbi__div16(3*t0 + t1 + 8);
      out[i*2  ] = stbi__div16(3*t1 + t0 + 8);
   }
   out[w*2-1] = stbi__div4(t1+2);

   STBI_NOTUSED(hs);

   return out;
}

// Assembly:
movq %rdi, %rax
movzbl (%rsi), %r8d
movzbl (%rdx), %edi
cmpl $0x1, %ecx
jne 0x1d19b
movzwl %r8w, %ecx
leal (%rcx,%rcx,2), %ecx
movzwl %di, %edx
addl %edx, %ecx
addl $0x2, %ecx
shrl $0x2, %ecx
movb %cl, 0x1(%rax)
movb %cl, (%rax)
retq
movzwl %r8w, %r8d
leal (%r8,%r8,2), %r8d
movzwl %di, %r9d
leal (%r8,%r9), %edi
addl %r9d, %r8d
addl $0x2, %r8d
shrl $0x2, %r8d
movb %r8b, (%rax)
cmpl $0x2, %ecx
jl 0x1d20a
movl %ecx, %r8d
movl $0x1, %r10d
movzbl (%rsi,%r10), %r9d
leal (%r9,%r9,2), %r11d
movzbl (%rdx,%r10), %r9d
addl %r11d, %r9d
leal (%rdi,%rdi,2), %r11d
addl %r9d, %r11d
addl $0x8, %r11d
shrl $0x4, %r11d
movb %r11b, -0x1(%rax,%r10,2)
leal (%r9,%r9,2), %r11d
addl %r11d, %edi
addl $0x8, %edi
shrl $0x4, %edi
movb %dil, (%rax,%r10,2)
incq %r10
movl %r9d, %edi
cmpq %r10, %r8
jne 0x1d1c7
jmp 0x1d20d
movl %edi, %r9d
addl $0x2, %r9d
shrl $0x2, %r9d
movslq %ecx, %rcx
movb %r9b, -0x1(%rax,%rcx,2)
retq
// File: /workspace/github_cpp_makefile_star2_O1/srajangarg[P]raytracer/src/core/stb_image.hpp
// Function: stbi__get_marker(stbi__jpeg*)
static stbi_uc stbi__get_marker(stbi__jpeg *j)
{
   stbi_uc x;
   if (j->marker != STBI__MARKER_none) { x = j->marker; j->marker = STBI__MARKER_none; return x; }
   x = stbi__get8(j->s);
   if (x != 0xff) return STBI__MARKER_none;
   while (x == 0xff)
      x = stbi__get8(j->s);
   return x;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movb 0x4728(%rdi), %al
cmpb $-0x1, %al
je 0x1d23c
movb $-0x1, 0x4728(%rbx)
jmp 0x1d34a
movq (%rbx), %r15
movq 0xb8(%r15), %rcx
cmpq 0xc0(%r15), %rcx
jb 0x1d2af
cmpl $0x0, 0x30(%r15)
je 0x1d282
movq 0x28(%r15), %rdi
leaq 0x38(%r15), %r14
movl 0x34(%r15), %edx
movq %r14, %rsi
callq *0x10(%r15)
testl %eax, %eax
je 0x1d289
movq %r14, 0xb8(%r15)
cltq
addq %r14, %rax
movq %rax, 0xc0(%r15)
jmp 0x1d2a8
movb $-0x1, %al
jmp 0x1d34a
movl $0x0, 0x30(%r15)
movq %r14, 0xb8(%r15)
leaq 0x39(%r15), %rax
movq %rax, 0xc0(%r15)
movb $0x0, 0x38(%r15)
movq 0xb8(%r15), %rcx
leaq 0x1(%rcx), %rax
movq %rax, 0xb8(%r15)
movb $-0x1, %al
cmpb $-0x1, (%rcx)
jne 0x1d34a
movq (%rbx), %r15
movq 0xb8(%r15), %rax
cmpq 0xc0(%r15), %rax
jb 0x1d335
cmpl $0x0, 0x30(%r15)
je 0x1d30b
movq 0x28(%r15), %rdi
leaq 0x38(%r15), %r14
movl 0x34(%r15), %edx
movq %r14, %rsi
callq *0x10(%r15)
testl %eax, %eax
je 0x1d30f
movq %r14, 0xb8(%r15)
cltq
addq %r14, %rax
movq %rax, 0xc0(%r15)
jmp 0x1d32e
xorl %eax, %eax
jmp 0x1d342
movl $0x0, 0x30(%r15)
movq %r14, 0xb8(%r15)
leaq 0x39(%r15), %rax
movq %rax, 0xc0(%r15)
movb $0x0, 0x38(%r15)
movq 0xb8(%r15), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0xb8(%r15)
movb (%rax), %al
cmpb $-0x1, %al
je 0x1d2c5
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/srajangarg[P]raytracer/src/core/stb_image.hpp
// Function: stbi__get8(stbi__context*)
stbi_inline static stbi_uc stbi__get8(stbi__context *s)
{
   if (s->img_buffer < s->img_buffer_end)
      return *s->img_buffer++;
   if (s->read_from_callbacks) {
      stbi__refill_buffer(s);
      return *s->img_buffer++;
   }
   return 0;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0xb8(%rdi), %rax
cmpq 0xc0(%rdi), %rax
jb 0x1e007
cmpl $0x0, 0x30(%rbx)
je 0x1dfdf
movq 0x28(%rbx), %rdi
leaq 0x38(%rbx), %r14
movl 0x34(%rbx), %edx
movq %r14, %rsi
callq *0x10(%rbx)
testl %eax, %eax
je 0x1dfe3
movq %r14, 0xb8(%rbx)
cltq
addq %r14, %rax
movq %rax, 0xc0(%rbx)
jmp 0x1e000
xorl %eax, %eax
jmp 0x1e014
movl $0x0, 0x30(%rbx)
movq %r14, 0xb8(%rbx)
leaq 0x39(%rbx), %rax
movq %rax, 0xc0(%rbx)
movb $0x0, 0x38(%rbx)
movq 0xb8(%rbx), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0xb8(%rbx)
movb (%rax), %al
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/srajangarg[P]raytracer/src/core/stb_image.hpp
// Function: stbi__build_huffman(stbi__huffman*, int*)
static int stbi__build_huffman(stbi__huffman *h, int *count)
{
   int i,j,k=0,code;
   // build size list for each symbol (from JPEG spec)
   for (i=0; i < 16; ++i)
      for (j=0; j < count[i]; ++j)
         h->size[k++] = (stbi_uc) (i+1);
   h->size[k] = 0;

   // compute actual symbols (from jpeg spec)
   code = 0;
   k = 0;
   for(j=1; j <= 16; ++j) {
      // compute delta to add to code to compute symbol id
      h->delta[j] = k - code;
      if (h->size[k] == j) {
         while (h->size[k] == j)
            h->code[k++] = (stbi__uint16) (code++);
         if (code-1 >= (1 << j)) return stbi__err("bad code lengths","Corrupt JPEG");
      }
      // compute largest code + 1 for this size, preshifted as needed later
      h->maxcode[j] = code << (16-j);
      code <<= 1;
   }
   h->maxcode[j] = 0xffffffff;

   // build non-spec acceleration table; 255 is flag for not-accelerated
   memset(h->fast, 255, 1 << FAST_BITS);
   for (i=0; i < k; ++i) {
      int s = h->size[i];
      if (s <= FAST_BITS) {
         int c = h->code[i] << (FAST_BITS-s);
         int m = 1 << (FAST_BITS-s);
         for (j=0; j < m; ++j) {
            h->fast[c+j] = (stbi_uc) i;
         }
      }
   }
   return 1;
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x500(%rdi), %rax
xorl %ecx, %ecx
xorl %edx, %edx
cmpl $0x0, (%rsi,%rcx,4)
jle 0x1e14e
leal 0x1(%rcx), %edi
movslq %edx, %r8
addq %rax, %r8
xorl %r9d, %r9d
movb %dil, (%r8,%r9)
incq %r9
cmpl (%rsi,%rcx,4), %r9d
jl 0x1e13e
addl %r9d, %edx
incq %rcx
cmpq $0x10, %rcx
jne 0x1e12c
movslq %edx, %rax
movb $0x0, 0x500(%rbx,%rax)
xorl %edx, %edx
movl $0x1, %eax
xorl %ebp, %ebp
movl %ebp, %ecx
subl %edx, %ecx
movl %ecx, 0x64c(%rbx,%rax,4)
movslq %ebp, %rcx
movzbl 0x500(%rbx,%rcx), %esi
cmpq %rsi, %rax
jne 0x1e1c0
movzbl 0x500(%rbx,%rcx), %esi
cmpq %rsi, %rax
jne 0x1e1af
movw %dx, 0x200(%rbx,%rcx,2)
incl %edx
movzbl 0x501(%rbx,%rcx), %esi
incq %rcx
cmpq %rsi, %rax
je 0x1e193
movl %ecx, %ebp
movl $0x1, %esi
movl %eax, %ecx
shll %cl, %esi
cmpl %esi, %edx
jg 0x1e247
movb $0x10, %cl
subb %al, %cl
movl %edx, %esi
shll %cl, %esi
movl %esi, 0x604(%rbx,%rax,4)
addl %edx, %edx
incq %rax
cmpq $0x11, %rax
jne 0x1e16b
movl $0xffffffff, 0x648(%rbx) # imm = 0xFFFFFFFF
movl $0x200, %edx            # imm = 0x200
movq %rbx, %rdi
movl $0xff, %esi
callq 0x41d0
movl $0x1, %eax
testl %ebp, %ebp
jle 0x1e257
movl %ebp, %edx
xorl %esi, %esi
movzbl 0x500(%rbx,%rsi), %r8d
cmpq $0x9, %r8
ja 0x1e23d
movzwl 0x200(%rbx,%rsi,2), %edi
movl $0x9, %ecx
subq %r8, %rcx
shlq %cl, %rdi
addq %rbx, %rdi
xorl %r8d, %r8d
movb %sil, (%rdi,%r8)
incq %r8
movl %r8d, %r9d
shrl %cl, %r9d
testl %r9d, %r9d
je 0x1e22b
incq %rsi
cmpq %rdx, %rsi
jne 0x1e203
jmp 0x1e257
leaq 0xef38(%rip), %rax      # 0x2d186
movq %rax, 0x1a15b(%rip)     # 0x383b0
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/srajangarg[P]raytracer/src/core/stb_image.hpp
// Function: stbi__skip(stbi__context*, int)
static void stbi__skip(stbi__context *s, int n)
{
   if (n < 0) {
      s->img_buffer = s->img_buffer_end;
      return;
   }
   if (s->io.read) {
      int blen = (int) (s->img_buffer_end - s->img_buffer);
      if (blen < n) {
         s->img_buffer = s->img_buffer_end;
         (s->io.skip)(s->io_user_data, n - blen);
         return;
      }
   }
   s->img_buffer += n;
}

// Assembly:
testl %esi, %esi
js 0x1e29d
cmpq $0x0, 0x10(%rdi)
je 0x1e293
movq 0xc0(%rdi), %rcx
movl 0xb8(%rdi), %eax
movl %ecx, %edx
subl %eax, %edx
movl %esi, %eax
subl %edx, %eax
jle 0x1e293
movq %rcx, 0xb8(%rdi)
movq 0x18(%rdi), %rcx
movq 0x28(%rdi), %rdi
movl %eax, %esi
jmpq *%rcx
movl %esi, %eax
addq %rax, 0xb8(%rdi)
retq
movq 0xc0(%rdi), %rax
movq %rax, 0xb8(%rdi)
retq
// File: /workspace/github_cpp_makefile_star2_O1/srajangarg[P]raytracer/src/core/stb_image.hpp
// Function: stbi__cleanup_jpeg(stbi__jpeg*)
static void stbi__cleanup_jpeg(stbi__jpeg *j)
{
   int i;
   for (i=0; i < j->s->img_n; ++i) {
      if (j->img_comp[i].raw_data) {
         STBI_FREE(j->img_comp[i].raw_data);
         j->img_comp[i].raw_data = NULL;
         j->img_comp[i].data = NULL;
      }
      if (j->img_comp[i].raw_coeff) {
         STBI_FREE(j->img_comp[i].raw_coeff);
         j->img_comp[i].raw_coeff = 0;
         j->img_comp[i].coeff = 0;
      }
      if (j->img_comp[i].linebuf) {
         STBI_FREE(j->img_comp[i].linebuf);
         j->img_comp[i].linebuf = NULL;
      }
   }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq (%rdi), %rax
cmpl $0x0, 0x8(%rax)
jle 0x1e321
movq %rdi, %rbx
leaq 0x45f0(%rdi), %r14
xorl %r15d, %r15d
xorl %r12d, %r12d
movq -0x18(%r14), %rdi
testq %rdi, %rdi
je 0x1e2e3
callq 0x4390
xorps %xmm0, %xmm0
movups %xmm0, -0x20(%r14)
movq -0x10(%r14), %rdi
testq %rdi, %rdi
je 0x1e2f8
callq 0x4390
movq %r15, -0x10(%r14)
movq %r15, (%r14)
movq -0x8(%r14), %rdi
testq %rdi, %rdi
je 0x1e30e
callq 0x4390
movq $0x0, -0x8(%r14)
incq %r12
movq (%rbx), %rax
movslq 0x8(%rax), %rax
addq $0x60, %r14
cmpq %rax, %r12
jl 0x1e2cd
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/srajangarg[P]raytracer/src/core/stb_image.hpp
// Function: stbi__resample_row_v_2(unsigned char*, unsigned char*, unsigned char*, int, int)
static stbi_uc* stbi__resample_row_v_2(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs)
{
   // need to generate two samples vertically for every one in input
   int i;
   STBI_NOTUSED(hs);
   for (i=0; i < w; ++i)
      out[i] = stbi__div4(3*in_near[i] + in_far[i] + 2);
   return out;
}

// Assembly:
movq %rdi, %rax
testl %ecx, %ecx
jle 0x1e361
movl %ecx, %ecx
xorl %edi, %edi
movzbl (%rsi,%rdi), %r8d
leal (%r8,%r8,2), %r8d
movzbl (%rdx,%rdi), %r9d
addl %r9d, %r8d
addl $0x2, %r8d
shrl $0x2, %r8d
movb %r8b, (%rax,%rdi)
incq %rdi
cmpq %rdi, %rcx
jne 0x1e33c
retq
// File: /workspace/github_cpp_makefile_star2_O1/srajangarg[P]raytracer/src/core/stb_image.hpp
// Function: stbi__resample_row_h_2(unsigned char*, unsigned char*, unsigned char*, int, int)
static stbi_uc*  stbi__resample_row_h_2(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs)
{
   // need to generate two samples horizontally for every one in input
   int i;
   stbi_uc *input = in_near;

   if (w == 1) {
      // if only one sample, can't do any interpolation
      out[0] = out[1] = input[0];
      return out;
   }

   out[0] = input[0];
   out[1] = stbi__div4(input[0]*3 + input[1] + 2);
   for (i=1; i < w-1; ++i) {
      int n = 3*input[i]+2;
      out[i*2+0] = stbi__div4(n+input[i-1]);
      out[i*2+1] = stbi__div4(n+input[i+1]);
   }
   out[i*2+0] = stbi__div4(input[w-2]*3 + input[w-1] + 2);
   out[i*2+1] = input[w-1];

   STBI_NOTUSED(in_far);
   STBI_NOTUSED(hs);

   return out;
}

// Assembly:
movq %rdi, %rax
movb (%rsi), %dl
cmpl $0x1, %ecx
jne 0x1e372
movb %dl, 0x1(%rax)
movb %dl, (%rax)
retq
movb %dl, (%rax)
movzbl (%rsi), %edx
leal (%rdx,%rdx,2), %edx
movzbl 0x1(%rsi), %edi
addl %edi, %edx
addl $0x2, %edx
shrl $0x2, %edx
movb %dl, 0x1(%rax)
leal -0x1(%rcx), %edi
movl $0x2, %edx
cmpl $0x3, %ecx
jl 0x1e3e2
movl %edi, %r8d
leaq 0x2(%rsi), %r9
addq %r8, %r8
movl $0x2, %edx
movzbl -0x1(%r9), %r10d
leal (%r10,%r10,2), %r10d
movzbl -0x2(%r9), %r11d
addl %r10d, %r11d
addl $0x2, %r11d
shrl $0x2, %r11d
movb %r11b, (%rax,%rdx)
movzbl (%r9), %r11d
addl %r11d, %r10d
addl $0x2, %r10d
shrl $0x2, %r10d
movb %r10b, 0x1(%rax,%rdx)
incq %r9
addq $0x2, %rdx
cmpq %rdx, %r8
jne 0x1e3a5
movslq %ecx, %rcx
movzbl -0x2(%rsi,%rcx), %ecx
leal (%rcx,%rcx,2), %ecx
movslq %edi, %rdi
movzbl (%rsi,%rdi), %r8d
addl %r8d, %ecx
addl $0x2, %ecx
shrl $0x2, %ecx
movl %edx, %edx
movb %cl, (%rax,%rdx)
movb (%rsi,%rdi), %cl
movb %cl, 0x1(%rax,%rdx)
retq
// File: /workspace/github_cpp_makefile_star2_O1/srajangarg[P]raytracer/src/core/stb_image.hpp
// Function: stbi__resample_row_generic(unsigned char*, unsigned char*, unsigned char*, int, int)
static stbi_uc *stbi__resample_row_generic(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs)
{
   // resample with nearest-neighbor
   int i,j;
   STBI_NOTUSED(in_far);
   for (i=0; i < w; ++i)
      for (j=0; j < hs; ++j)
         out[i*hs+j] = in_near[i];
   return out;
}

// Assembly:
movq %rdi, %rax
testl %ecx, %ecx
jle 0x1e43f
movl %r8d, %edx
movl %ecx, %ecx
xorl %edi, %edi
movq %rax, %r9
testl %r8d, %r8d
jle 0x1e434
xorl %r10d, %r10d
movb (%rsi,%rdi), %r11b
movb %r11b, (%r9,%r10)
incq %r10
cmpq %r10, %rdx
jne 0x1e424
incq %rdi
addq %rdx, %r9
cmpq %rcx, %rdi
jne 0x1e41c
retq
// File: /workspace/github_cpp_makefile_star2_O1/srajangarg[P]raytracer/src/core/stb_image.hpp
// Function: stbi__grow_buffer_unsafe(stbi__jpeg*)
static void stbi__grow_buffer_unsafe(stbi__jpeg *j)
{
   do {
      int b = j->nomore ? 0 : stbi__get8(j->s);
      if (b == 0xff) {
         int c = stbi__get8(j->s);
         if (c != 0) {
            j->marker = (unsigned char) c;
            j->nomore = 1;
            return;
         }
      }
      j->code_buffer |= b << (24 - j->code_bits);
      j->code_bits += 8;
   } while (j->code_bits <= 24);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
xorl %ebp, %ebp
cmpl $0x0, 0x472c(%rbx)
jne 0x1e9f1
movq (%rbx), %r15
movq 0xb8(%r15), %rax
cmpq 0xc0(%r15), %rax
jb 0x1e9e3
cmpl $0x0, 0x30(%r15)
je 0x1e9f1
movq 0x28(%r15), %rdi
leaq 0x38(%r15), %r14
movl 0x34(%r15), %edx
movq %r14, %rsi
callq *0x10(%r15)
testl %eax, %eax
je 0x1e9bd
movq %r14, 0xb8(%r15)
cltq
addq %r14, %rax
movq %rax, 0xc0(%r15)
jmp 0x1e9dc
movl $0x0, 0x30(%r15)
movq %r14, 0xb8(%r15)
leaq 0x39(%r15), %rax
movq %rax, 0xc0(%r15)
movb $0x0, 0x38(%r15)
movq 0xb8(%r15), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0xb8(%r15)
movzbl (%rax), %ebp
cmpl $0xff, %ebp
jne 0x1ea7e
movq (%rbx), %r15
movq 0xb8(%r15), %rax
cmpq 0xc0(%r15), %rax
jb 0x1ea6d
cmpl $0x0, 0x30(%r15)
je 0x1ea43
movq 0x28(%r15), %rdi
leaq 0x38(%r15), %r14
movl 0x34(%r15), %edx
movq %r14, %rsi
callq *0x10(%r15)
testl %eax, %eax
je 0x1ea47
movq %r14, 0xb8(%r15)
cltq
addq %r14, %rax
movq %rax, 0xc0(%r15)
jmp 0x1ea66
xorl %eax, %eax
jmp 0x1ea7a
movl $0x0, 0x30(%r15)
movq %r14, 0xb8(%r15)
leaq 0x39(%r15), %rax
movq %rax, 0xc0(%r15)
movb $0x0, 0x38(%r15)
movq 0xb8(%r15), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0xb8(%r15)
movb (%rax), %al
testb %al, %al
jne 0x1eaa4
movl 0x4724(%rbx), %eax
movb $0x18, %cl
subb %al, %cl
shll %cl, %ebp
orl %ebp, 0x4720(%rbx)
leal 0x8(%rax), %ecx
movl %ecx, 0x4724(%rbx)
cmpl $0x11, %eax
jl 0x1e96c
jmp 0x1eab4
movb %al, 0x4728(%rbx)
movl $0x1, 0x472c(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/srajangarg[P]raytracer/src/core/stb_image.hpp
// Function: stbi__check_png_header(stbi__context*)
static int stbi__check_png_header(stbi__context *s)
{
   static stbi_uc png_sig[8] = { 137,80,78,71,13,10,26,10 };
   int i;
   for (i=0; i < 8; ++i)
      if (stbi__get8(s) != png_sig[i]) return stbi__err("bad png sig","Not a PNG");
   return 1;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdi, %rbx
leaq 0x38(%rdi), %r14
leaq 0x39(%rdi), %r15
xorl %r12d, %r12d
leaq 0xeca0(%rip), %r13      # 0x2da1e
movq 0xb8(%rbx), %rax
cmpq 0xc0(%rbx), %rax
jb 0x1edde
cmpl $0x0, 0x30(%rbx)
je 0x1edba
movq 0x28(%rbx), %rdi
movl 0x34(%rbx), %edx
movq %r14, %rsi
callq *0x10(%rbx)
testl %eax, %eax
je 0x1edbe
movq %r14, 0xb8(%rbx)
cltq
addq %r14, %rax
movq %rax, 0xc0(%rbx)
jmp 0x1edd7
xorl %eax, %eax
jmp 0x1edeb
movl $0x0, 0x30(%rbx)
movq %r14, 0xb8(%rbx)
movq %r15, 0xc0(%rbx)
movb $0x0, 0x38(%rbx)
movq 0xb8(%rbx), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0xb8(%rbx)
movb (%rax), %al
cmpb (%r12,%r13), %al
jne 0x1ee01
incq %r12
cmpq $0x8, %r12
jne 0x1ed7e
movl $0x1, %eax
jmp 0x1ee11
leaq 0xe5a3(%rip), %rax      # 0x2d3ab
movq %rax, 0x195a1(%rip)     # 0x383b0
xorl %eax, %eax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/srajangarg[P]raytracer/src/core/stb_image.hpp
// Function: stbi__getn(stbi__context*, unsigned char*, int)
static int stbi__getn(stbi__context *s, stbi_uc *buffer, int n)
{
   if (s->io.read) {
      int blen = (int) (s->img_buffer_end - s->img_buffer);
      if (blen < n) {
         int res, count;

         memcpy(buffer, s->img_buffer, blen);

         count = (s->io.read)(s->io_user_data, (char*) buffer + blen, n - blen);
         res = (count == (n-blen));
         s->img_buffer = s->img_buffer_end;
         return res;
      }
   }

   if (s->img_buffer+n <= s->img_buffer_end) {
      memcpy(buffer, s->img_buffer, n);
      s->img_buffer += n;
      return 1;
   } else
      return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
cmpq $0x0, 0x10(%rdi)
je 0x20507
movq 0xb8(%rbx), %rsi
movq 0xc0(%rbx), %r13
subq %rsi, %r13
movl %ebp, %r15d
subl %r13d, %r15d
jle 0x20502
movslq %r13d, %r12
movq %r14, %rdi
movq %r12, %rdx
callq 0x42a0
movq 0x28(%rbx), %rdi
addq %r14, %r12
movq %r12, %rsi
movl %r15d, %edx
callq *0x10(%rbx)
movl %eax, %ecx
xorl %eax, %eax
cmpl %r15d, %ecx
sete %al
movq 0xc0(%rbx), %rcx
movq %rcx, 0xb8(%rbx)
cmpl %r13d, %ebp
jg 0x20537
movq 0xb8(%rbx), %rsi
movslq %ebp, %r15
leaq (%rsi,%r15), %rcx
xorl %eax, %eax
cmpq 0xc0(%rbx), %rcx
ja 0x20537
movq %r14, %rdi
movq %r15, %rdx
callq 0x42a0
addq %r15, 0xb8(%rbx)
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/srajangarg[P]raytracer/src/core/stb_image.hpp
// Function: stbi__de_iphone(stbi__png*)
static void stbi__de_iphone(stbi__png *z)
{
   stbi__context *s = z->s;
   stbi__uint32 i, pixel_count = s->img_x * s->img_y;
   stbi_uc *p = z->out;

   if (s->img_out_n == 3) {  // convert bgr to rgb
      for (i=0; i < pixel_count; ++i) {
         stbi_uc t = p[0];
         p[0] = p[2];
         p[2] = t;
         p += 3;
      }
   } else {
      STBI_ASSERT(s->img_out_n == 4);
      if (stbi__unpremultiply_on_load) {
         // convert bgr to rgb and unpremultiply
         for (i=0; i < pixel_count; ++i) {
            stbi_uc a = p[3];
            stbi_uc t = p[0];
            if (a) {
               p[0] = p[2] * 255 / a;
               p[1] = p[1] * 255 / a;
               p[2] =  t   * 255 / a;
            } else {
               p[0] = p[2];
               p[2] = t;
            }
            p += 4;
         }
      } else {
         // convert bgr to rgb
         for (i=0; i < pixel_count; ++i) {
            stbi_uc t = p[0];
            p[0] = p[2];
            p[2] = t;
            p += 4;
         }
      }
   }
}

// Assembly:
pushq %rax
movq (%rdi), %rsi
movq 0x18(%rdi), %rcx
movl 0x4(%rsi), %eax
movl 0xc(%rsi), %edx
imull (%rsi), %eax
cmpl $0x4, %edx
je 0x20586
cmpl $0x3, %edx
jne 0x2061b
testl %eax, %eax
je 0x20619
movb (%rcx), %dl
movb 0x2(%rcx), %sil
movb %sil, (%rcx)
movb %dl, 0x2(%rcx)
addq $0x3, %rcx
decl %eax
jne 0x2056d
jmp 0x20619
cmpl $0x0, 0x17e2f(%rip)     # 0x383bc
je 0x205f8
testl %eax, %eax
je 0x20619
movl %eax, %esi
xorl %edi, %edi
movzbl 0x3(%rcx,%rdi,4), %r8d
movb (%rcx,%rdi,4), %al
movb 0x2(%rcx,%rdi,4), %dl
testl %r8d, %r8d
je 0x205e8
movzbl %al, %r9d
movzbl %dl, %edx
movl %edx, %eax
shll $0x8, %eax
subl %edx, %eax
xorl %edx, %edx
divl %r8d
movb %al, (%rcx,%rdi,4)
movzbl 0x1(%rcx,%rdi,4), %edx
movl %edx, %eax
shll $0x8, %eax
subl %edx, %eax
xorl %edx, %edx
divl %r8d
movb %al, 0x1(%rcx,%rdi,4)
movl %r9d, %eax
shll $0x8, %eax
subl %r9d, %eax
xorl %edx, %edx
divl %r8d
jmp 0x205eb
movb %dl, (%rcx,%rdi,4)
movb %al, 0x2(%rcx,%rdi,4)
incq %rdi
cmpl %edi, %esi
jne 0x2059b
jmp 0x20619
testl %eax, %eax
je 0x20619
movl %eax, %eax
xorl %edx, %edx
movb (%rcx,%rdx,4), %sil
movb 0x2(%rcx,%rdx,4), %dil
movb %dil, (%rcx,%rdx,4)
movb %sil, 0x2(%rcx,%rdx,4)
incq %rdx
cmpl %edx, %eax
jne 0x20600
popq %rax
retq
leaq 0xcfc4(%rip), %rdi      # 0x2d5e6
leaq 0xccb0(%rip), %rsi      # 0x2d2d9
leaq 0xcfc8(%rip), %rcx      # 0x2d5f8
movl $0x10c1, %edx           # imm = 0x10C1
callq 0x4200
// File: /workspace/github_cpp_makefile_star2_O1/srajangarg[P]raytracer/src/core/stb_image.hpp
// Function: stbi__high_bit(unsigned int)
static int stbi__high_bit(unsigned int z)
{
   int n=0;
   if (z == 0) return -1;
   if (z >= 0x10000) n += 16, z >>= 16;
   if (z >= 0x00100) n +=  8, z >>=  8;
   if (z >= 0x00010) n +=  4, z >>=  4;
   if (z >= 0x00004) n +=  2, z >>=  2;
   if (z >= 0x00002) n +=  1, z >>=  1;
   return n;
}

// Assembly:
testl %edi, %edi
je 0x21703
movl %edi, %eax
shrl $0x10, %eax
xorl %ecx, %ecx
cmpl $0x10000, %edi          # imm = 0x10000
setae %cl
cmovbl %edi, %eax
shll $0x4, %ecx
leal 0x8(%rcx), %edx
movl %eax, %esi
shrl $0x8, %esi
cmpl $0x100, %eax            # imm = 0x100
cmovbl %eax, %esi
cmovbl %ecx, %edx
leal 0x4(%rdx), %ecx
movl %esi, %edi
shrl $0x4, %edi
cmpl $0x10, %esi
cmovbl %esi, %edi
cmovbl %edx, %ecx
leal 0x2(%rcx), %eax
movl %edi, %edx
shrl $0x2, %edx
cmpl $0x4, %edi
cmovbl %edi, %edx
cmovbl %ecx, %eax
cmpl $0x2, %edx
sbbl $-0x1, %eax
retq
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
retq
// File: /workspace/github_cpp_makefile_star2_O1/srajangarg[P]raytracer/src/core/stb_image.hpp
// Function: stbi__fill_gif_background(stbi__gif*, int, int, int, int)
static void stbi__fill_gif_background(stbi__gif *g, int x0, int y0, int x1, int y1)
{
   int x, y;
   stbi_uc *c = g->pal[g->bgindex];
   for (y = y0; y < y1; y += 4 * g->w) {
      for (x = x0; x < x1; x += 4) {
         stbi_uc *p  = &g->out[y + x];
         p[0] = c[2];
         p[1] = c[1];
         p[2] = c[0];
         p[3] = 0;
      }
   }
}

// Assembly:
cmpl %r8d, %edx
jge 0x21c94
pushq %rbp
pushq %r14
pushq %rbx
movslq 0x1c(%rdi), %rax
movslq %esi, %r9
movslq %ecx, %r10
cmpl %ecx, %esi
jge 0x21c84
movslq %edx, %r11
addq $0x3, %r11
movq %r9, %rbx
movq 0x8(%rdi), %r14
addq %r11, %r14
movb 0x32(%rdi,%rax,4), %bpl
movb %bpl, -0x3(%rbx,%r14)
movb 0x31(%rdi,%rax,4), %bpl
movb %bpl, -0x2(%rbx,%r14)
movb 0x30(%rdi,%rax,4), %bpl
movb %bpl, -0x1(%rbx,%r14)
movb $0x0, (%rbx,%r14)
addq $0x4, %rbx
cmpq %r10, %rbx
jl 0x21c51
movl (%rdi), %r11d
leal (%rdx,%r11,4), %edx
cmpl %r8d, %edx
jl 0x21c43
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/srajangarg[P]raytracer/src/core/stb_image.hpp
// Function: stbi__gif_parse_colortable(stbi__context*, unsigned char (*) [4], int, int)
static void stbi__gif_parse_colortable(stbi__context *s, stbi_uc pal[256][4], int num_entries, int transp)
{
   int i;
   for (i=0; i < num_entries; ++i) {
      pal[i][2] = stbi__get8(s);
      pal[i][1] = stbi__get8(s);
      pal[i][0] = stbi__get8(s);
      pal[i][3] = transp == i ? 0 : 255;
   }
}

// Assembly:
testl %edx, %edx
jle 0x21e59
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x38(%rdi), %r15
leaq 0x39(%rdi), %rax
movq %rax, (%rsp)
movl %ecx, %r13d
movl %edx, %ebp
xorl %r12d, %r12d
movq 0xb8(%r14), %rax
cmpq 0xc0(%r14), %rax
jb 0x21d2b
cmpl $0x0, 0x30(%r14)
je 0x21d01
movq 0x28(%r14), %rdi
movl 0x34(%r14), %edx
movq %r15, %rsi
callq *0x10(%r14)
testl %eax, %eax
je 0x21d05
movq %r15, 0xb8(%r14)
cltq
addq %r15, %rax
movq %rax, 0xc0(%r14)
jmp 0x21d24
xorl %eax, %eax
jmp 0x21d38
movl $0x0, 0x30(%r14)
movq %r15, 0xb8(%r14)
movq (%rsp), %rax
movq %rax, 0xc0(%r14)
movb $0x0, 0x38(%r14)
movq 0xb8(%r14), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0xb8(%r14)
movb (%rax), %al
movb %al, 0x2(%rbx,%r12,4)
movq 0xb8(%r14), %rax
cmpq 0xc0(%r14), %rax
jb 0x21da6
cmpl $0x0, 0x30(%r14)
je 0x21d7c
movq 0x28(%r14), %rdi
movl 0x34(%r14), %edx
movq %r15, %rsi
callq *0x10(%r14)
testl %eax, %eax
je 0x21d80
movq %r15, 0xb8(%r14)
cltq
addq %r15, %rax
movq %rax, 0xc0(%r14)
jmp 0x21d9f
xorl %eax, %eax
jmp 0x21db3
movl $0x0, 0x30(%r14)
movq %r15, 0xb8(%r14)
movq (%rsp), %rax
movq %rax, 0xc0(%r14)
movb $0x0, 0x38(%r14)
movq 0xb8(%r14), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0xb8(%r14)
movb (%rax), %al
movb %al, 0x1(%rbx,%r12,4)
movq 0xb8(%r14), %rax
cmpq 0xc0(%r14), %rax
jb 0x21e21
cmpl $0x0, 0x30(%r14)
je 0x21df7
movq 0x28(%r14), %rdi
movl 0x34(%r14), %edx
movq %r15, %rsi
callq *0x10(%r14)
testl %eax, %eax
je 0x21dfb
movq %r15, 0xb8(%r14)
cltq
addq %r15, %rax
movq %rax, 0xc0(%r14)
jmp 0x21e1a
xorl %eax, %eax
jmp 0x21e2e
movl $0x0, 0x30(%r14)
movq %r15, 0xb8(%r14)
movq (%rsp), %rax
movq %rax, 0xc0(%r14)
movb $0x0, 0x38(%r14)
movq 0xb8(%r14), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0xb8(%r14)
movb (%rax), %al
movb %al, (%rbx,%r12,4)
cmpq %r12, %r13
setne %al
negb %al
movb %al, 0x3(%rbx,%r12,4)
incq %r12
cmpq %r12, %rbp
jne 0x21cc2
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/srajangarg[P]raytracer/src/core/stb_image.hpp
// Function: stbi__out_gif_code(stbi__gif*, unsigned short)
static void stbi__out_gif_code(stbi__gif *g, stbi__uint16 code)
{
   stbi_uc *p, *c;

   // recurse to decode the prefixes, since the linked-list is backwards,
   // and working backwards through an interleaved image would be nasty
   if (g->codes[code].prefix >= 0)
      stbi__out_gif_code(g, g->codes[code].prefix);

   if (g->cur_y >= g->max_y) return;

   p = &g->out[g->cur_x + g->cur_y];
   c = &g->color_table[g->codes[code].suffix * 4];

   if (c[3] >= 128) {
      p[0] = c[2];
      p[1] = c[1];
      p[2] = c[0];
      p[3] = c[3];
   }
   g->cur_x += 4;

   if (g->cur_x >= g->max_x) {
      g->cur_x = g->start_x;
      g->cur_y += g->step;

      while (g->cur_y >= g->max_y && g->parse > 0) {
         g->step = (1 << g->parse) * g->line_size;
         g->cur_y = g->start_y + (g->step >> 1);
         --g->parse;
      }
   }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl %esi, %r14d
movzwl 0x830(%rdi,%r14,4), %eax
testw %ax, %ax
js 0x21e7d
movzwl %ax, %esi
movq %rbx, %rdi
callq 0x21e5a
movslq 0x4858(%rbx), %rcx
cmpl 0x4850(%rbx), %ecx
jge 0x21f44
movq 0x4830(%rbx), %rax
movzbl 0x833(%rbx,%r14,4), %edx
cmpb $0x0, 0x3(%rax,%rdx,4)
jns 0x21ed3
movq 0x8(%rbx), %rsi
movslq 0x4854(%rbx), %rdi
addq %rcx, %rdi
movb 0x2(%rax,%rdx,4), %cl
movb %cl, (%rsi,%rdi)
movb 0x1(%rax,%rdx,4), %cl
movb %cl, 0x1(%rsi,%rdi)
movb (%rax,%rdx,4), %cl
movb %cl, 0x2(%rsi,%rdi)
movb 0x3(%rax,%rdx,4), %al
movb %al, 0x3(%rsi,%rdi)
movl 0x4854(%rbx), %eax
addl $0x4, %eax
movl %eax, 0x4854(%rbx)
cmpl 0x484c(%rbx), %eax
jl 0x21f44
movl 0x4844(%rbx), %ecx
movl 0x4850(%rbx), %eax
movl %ecx, 0x4854(%rbx)
movl 0x4858(%rbx), %ecx
addl 0x483c(%rbx), %ecx
movl %ecx, 0x4858(%rbx)
cmpl %eax, %ecx
jl 0x21f44
movl 0x4838(%rbx), %ecx
testl %ecx, %ecx
jle 0x21f44
movl 0x485c(%rbx), %edx
shll %cl, %edx
movl %edx, 0x483c(%rbx)
sarl %edx
addl 0x4848(%rbx), %edx
movl %edx, 0x4858(%rbx)
decl %ecx
movl %ecx, 0x4838(%rbx)
cmpl %eax, %edx
jge 0x21f18
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/srajangarg[P]raytracer/src/core/stb_image.hpp
// Function: stbi__pic_is4(stbi__context*, char const*)
static int stbi__pic_is4(stbi__context *s,const char *str)
{
   int i;
   for (i=0; i<4; ++i)
      if (stbi__get8(s) != (stbi_uc)str[i])
         return 0;

   return 1;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x38(%rdi), %r15
leaq 0x39(%rdi), %r12
xorl %r13d, %r13d
movq 0xb8(%r14), %rax
cmpq 0xc0(%r14), %rax
jb 0x21fcb
cmpl $0x0, 0x30(%r14)
je 0x21fa5
movq 0x28(%r14), %rdi
movl 0x34(%r14), %edx
movq %r15, %rsi
callq *0x10(%r14)
testl %eax, %eax
je 0x21fa9
movq %r15, 0xb8(%r14)
cltq
addq %r15, %rax
movq %rax, 0xc0(%r14)
jmp 0x21fc4
xorl %eax, %eax
jmp 0x21fd8
movl $0x0, 0x30(%r14)
movq %r15, 0xb8(%r14)
movq %r12, 0xc0(%r14)
movb $0x0, 0x38(%r14)
movq 0xb8(%r14), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0xb8(%r14)
movb (%rax), %al
cmpb (%rbx,%r13), %al
jne 0x21ff2
incq %r13
cmpq $0x4, %r13
jne 0x21f66
movl $0x1, %eax
jmp 0x21ff4
xorl %eax, %eax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/srajangarg[P]raytracer/src/core/stb_image.hpp
// Function: stbi__readval(stbi__context*, int, unsigned char*)
static stbi_uc *stbi__readval(stbi__context *s, int channel, stbi_uc *dest)
{
   int mask=0x80, i;

   for (i=0; i<4; ++i, mask>>=1) {
      if (channel & mask) {
         if (stbi__at_eof(s)) return stbi__errpuc("bad file","PIC file too short");
         dest[i]=stbi__get8(s);
      }
   }

   return dest;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movl %esi, %ebp
movq %rdi, %r14
leaq 0x38(%rdi), %r15
leaq 0x39(%rdi), %rax
movq %rax, (%rsp)
movl $0x80, %r13d
xorl %r12d, %r12d
testl %ebp, %r13d
je 0x220db
cmpq $0x0, 0x10(%r14)
je 0x2204d
movq 0x28(%r14), %rdi
callq *0x20(%r14)
testl %eax, %eax
je 0x22061
cmpl $0x0, 0x30(%r14)
je 0x220ed
movq 0xb8(%r14), %rax
cmpq 0xc0(%r14), %rax
jae 0x220ed
movq 0xb8(%r14), %rax
cmpq 0xc0(%r14), %rax
jb 0x220ca
cmpl $0x0, 0x30(%r14)
je 0x220a0
movq 0x28(%r14), %rdi
movl 0x34(%r14), %edx
movq %r15, %rsi
callq *0x10(%r14)
testl %eax, %eax
je 0x220a4
movq %r15, 0xb8(%r14)
cltq
addq %r15, %rax
movq %rax, 0xc0(%r14)
jmp 0x220c3
xorl %eax, %eax
jmp 0x220d7
movl $0x0, 0x30(%r14)
movq %r15, 0xb8(%r14)
movq (%rsp), %rax
movq %rax, 0xc0(%r14)
movb $0x0, 0x38(%r14)
movq 0xb8(%r14), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0xb8(%r14)
movb (%rax), %al
movb %al, (%rbx,%r12)
incq %r12
shrl %r13d
cmpq $0x4, %r12
jne 0x22026
jmp 0x220fd
leaq 0xb6c8(%rip), %rax      # 0x2d7bc
movq %rax, 0x162b5(%rip)     # 0x383b0
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/srajangarg[P]raytracer/src/core/stb_image.hpp
// Function: stbi__pnm_skip_whitespace(stbi__context*, char*)
static void     stbi__pnm_skip_whitespace(stbi__context *s, char *c)
{
   for (;;) {
      while (!stbi__at_eof(s) && stbi__pnm_isspace(*c))
         *c = (char) stbi__get8(s);

      if (stbi__at_eof(s) || *c != '#')
         break;

      while (!stbi__at_eof(s) && *c != '\n' && *c != '\r' )
         *c = (char) stbi__get8(s);
   }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x38(%rdi), %r15
leaq 0x39(%rdi), %r12
cmpq $0x0, 0x10(%r14)
je 0x22381
movq 0x28(%r14), %rdi
callq *0x20(%r14)
testl %eax, %eax
je 0x22391
cmpl $0x0, 0x30(%r14)
je 0x223ef
movq 0xb8(%r14), %rax
cmpq 0xc0(%r14), %rax
jae 0x223ef
movzbl (%rbx), %eax
leal -0x9(%rax), %ecx
cmpl $0x5, %ecx
jae 0x223ea
movq 0xb8(%r14), %rax
cmpq 0xc0(%r14), %rax
jb 0x22510
cmpl $0x0, 0x30(%r14)
je 0x224ea
movq 0x28(%r14), %rdi
movl 0x34(%r14), %edx
movq %r15, %rsi
callq *0x10(%r14)
testl %eax, %eax
je 0x224ee
movq %r15, 0xb8(%r14)
cltq
addq %r15, %rax
movq %rax, 0xc0(%r14)
jmp 0x22509
cmpl $0x20, %eax
je 0x2239c
cmpq $0x0, 0x10(%r14)
je 0x2240d
movq 0x28(%r14), %rdi
callq *0x20(%r14)
testl %eax, %eax
je 0x22421
cmpl $0x0, 0x30(%r14)
je 0x22524
movq 0xb8(%r14), %rax
cmpq 0xc0(%r14), %rax
jae 0x22524
cmpb $0x23, (%rbx)
jne 0x22524
cmpq $0x0, 0x10(%r14)
je 0x22448
movq 0x28(%r14), %rdi
callq *0x20(%r14)
testl %eax, %eax
je 0x2245c
cmpl $0x0, 0x30(%r14)
je 0x22367
movq 0xb8(%r14), %rax
cmpq 0xc0(%r14), %rax
jae 0x22367
movzbl (%rbx), %eax
cmpl $0xa, %eax
je 0x22367
cmpl $0xd, %eax
je 0x22367
movq 0xb8(%r14), %rax
cmpq 0xc0(%r14), %rax
jb 0x224d6
cmpl $0x0, 0x30(%r14)
je 0x224b0
movq 0x28(%r14), %rdi
movl 0x34(%r14), %edx
movq %r15, %rsi
callq *0x10(%r14)
testl %eax, %eax
je 0x224b4
movq %r15, 0xb8(%r14)
cltq
addq %r15, %rax
movq %rax, 0xc0(%r14)
jmp 0x224cf
xorl %eax, %eax
jmp 0x224e3
movl $0x0, 0x30(%r14)
movq %r15, 0xb8(%r14)
movq %r12, 0xc0(%r14)
movb $0x0, 0x38(%r14)
movq 0xb8(%r14), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0xb8(%r14)
movb (%rax), %al
movb %al, (%rbx)
jmp 0x2242a
xorl %eax, %eax
jmp 0x2251d
movl $0x0, 0x30(%r14)
movq %r15, 0xb8(%r14)
movq %r12, 0xc0(%r14)
movb $0x0, 0x38(%r14)
movq 0xb8(%r14), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0xb8(%r14)
movb (%rax), %al
movb %al, (%rbx)
jmp 0x22367
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/srajangarg[P]raytracer/src/core/stb_image.hpp
// Function: stbi__pnm_getinteger(stbi__context*, char*)
static int      stbi__pnm_getinteger(stbi__context *s, char *c)
{
   int value = 0;

   while (!stbi__at_eof(s) && stbi__pnm_isdigit(*c)) {
      value = value*10 + (*c - '0');
      *c = (char) stbi__get8(s);
   }

   return value;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x38(%rdi), %r15
leaq 0x39(%rdi), %r13
xorl %r12d, %r12d
cmpq $0x0, 0x10(%r14)
je 0x2256a
movq 0x28(%r14), %rdi
callq *0x20(%r14)
testl %eax, %eax
je 0x2257e
cmpl $0x0, 0x30(%r14)
je 0x2260e
movq 0xb8(%r14), %rax
cmpq 0xc0(%r14), %rax
jae 0x2260e
movzbl (%rbx), %ebp
leal -0x3a(%rbp), %eax
cmpb $-0xa, %al
jb 0x2260e
movq 0xb8(%r14), %rax
cmpq 0xc0(%r14), %rax
jb 0x225f1
cmpl $0x0, 0x30(%r14)
je 0x225cb
movq 0x28(%r14), %rdi
movl 0x34(%r14), %edx
movq %r15, %rsi
callq *0x10(%r14)
testl %eax, %eax
je 0x225cf
movq %r15, 0xb8(%r14)
cltq
addq %r15, %rax
movq %rax, 0xc0(%r14)
jmp 0x225ea
xorl %eax, %eax
jmp 0x225fe
movl $0x0, 0x30(%r14)
movq %r15, 0xb8(%r14)
movq %r13, 0xc0(%r14)
movb $0x0, 0x38(%r14)
movq 0xb8(%r14), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0xb8(%r14)
movb (%rax), %al
leal (%r12,%r12,4), %ecx
leal -0x30(%rbp,%rcx,2), %r12d
movb %al, (%rbx)
jmp 0x2254c
movl %r12d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq