LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/zhiyb[P]png2tlg/./stb_image.h
// Function: stbi__pnm_load(stbi__context*, int*, int*, int*, int, stbi__result_info*)
static void *stbi__pnm_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri)
{
   stbi_uc *out;
   STBI_NOTUSED(ri);

   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;
   if (comp) *comp = s->img_n;

   if (!stbi__mad3sizes_valid(s->img_n, s->img_x, s->img_y, 0))
      return stbi__errpuc("too large", "PNM too large");

   out = (stbi_uc *) stbi__malloc_mad3(s->img_n, s->img_x, s->img_y, 0);
   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, 0x4(%rsp)
movq %rcx, %rbx
movq %rdx, %r13
movq %rsi, %rbp
movq %rdi, %r14
leaq 0x4(%rdi), %r12
leaq 0x8(%rdi), %r15
movq %rdi, %rsi
movq %r12, %rdx
movq %r15, %rcx
callq 0x150c4
testl %eax, %eax
je 0xc847
movl (%r14), %eax
movl %eax, (%rbp)
movl 0x4(%r14), %ebp
movl %ebp, (%r13)
movl 0x8(%r14), %r13d
testq %rbx, %rbx
je 0xc7c5
movl %r13d, (%rbx)
movl (%r12), %ebp
movl (%r14), %ebx
movl %r13d, %edi
movl %ebx, %esi
movl %ebp, %edx
xorl %ecx, %ecx
callq 0xfeae
testl %eax, %eax
je 0xc830
movl %r13d, %edi
movl %ebx, %esi
movl %ebp, %edx
xorl %ecx, %ecx
callq 0xffc2
testq %rax, %rax
je 0xc839
movq %rax, %r12
imull %r13d, %ebx
imull %ebp, %ebx
movq %r14, %rdi
movq %rax, %rsi
movl %ebx, %edx
callq 0x126e2
movl 0x4(%rsp), %edx
testl %edx, %edx
je 0xc84a
movl (%r15), %esi
cmpl %edx, %esi
je 0xc84a
movl (%r14), %ecx
movl 0x4(%r14), %r8d
movq %r12, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x11e4d
leaq 0xc368(%rip), %rax      # 0x18b9f
jmp 0xc840
leaq 0xc369(%rip), %rax      # 0x18ba9
movq %rax, 0x109b1(%rip)     # 0x1d1f8
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_c_makefile_star2_O3/zhiyb[P]png2tlg/./stb_image.h
// 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;
   if (!data) return NULL;
   output = (stbi_uc *) stbi__malloc_mad3(x, y, comp, 0);
   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
movq %rdi, 0x8(%rsp)
testq %rdi, %rdi
je 0xd223
movl %ecx, %r13d
movl %edx, %ebp
movl %esi, %r12d
movl %esi, %edi
movl %edx, %esi
movl %ecx, %edx
xorl %ecx, %ecx
callq 0xffc2
testq %rax, %rax
je 0xd20b
movq %rax, 0x10(%rsp)
imull %r12d, %ebp
testl %ebp, %ebp
jle 0xd1fa
movl %r13d, %eax
andl $0x1, %eax
leal (%rax,%r13), %r12d
decl %r12d
movslq %r13d, %rdi
movl %ebp, %eax
movq %rax, 0x30(%rsp)
movl %r12d, %r14d
leaq (,%rdi,4), %rax
movq %rax, 0x28(%rsp)
xorl %ebp, %ebp
movss 0xaee4(%rip), %xmm2     # 0x18004
movss 0xaee8(%rip), %xmm3     # 0x18010
movq 0x10(%rsp), %r15
movq 0x8(%rsp), %rbx
movq %r13, 0x20(%rsp)
movq %rdi, 0x18(%rsp)
movl $0x0, %eax
testl %r12d, %r12d
jle 0xd1a7
xorl %r13d, %r13d
movss (%rbx,%r13,4), %xmm0
mulss 0x10055(%rip), %xmm0    # 0x1d1ac
movss 0x10049(%rip), %xmm1    # 0x1d1a8
callq 0x2280
movss 0xaea4(%rip), %xmm3     # 0x18010
movss 0xae90(%rip), %xmm2     # 0x18004
mulss %xmm2, %xmm0
addss %xmm3, %xmm0
xorps %xmm1, %xmm1
maxss %xmm0, %xmm1
movaps %xmm2, %xmm0
minss %xmm1, %xmm0
cvttss2si %xmm0, %eax
movb %al, (%r15,%r13)
incq %r13
cmpq %r13, %r14
jne 0xd149
movl %r12d, %eax
movq 0x20(%rsp), %r13
movq 0x18(%rsp), %rdi
cmpl %r13d, %eax
jge 0xd1e4
movq %rbp, %rcx
imulq %rdi, %rcx
movl %eax, %eax
addq %rcx, %rax
movq 0x8(%rsp), %rcx
movss (%rcx,%rax,4), %xmm0
mulss %xmm2, %xmm0
addss %xmm3, %xmm0
xorps %xmm1, %xmm1
maxss %xmm0, %xmm1
movaps %xmm2, %xmm0
minss %xmm1, %xmm0
cvttss2si %xmm0, %ecx
movq 0x10(%rsp), %rdx
movb %cl, (%rdx,%rax)
incq %rbp
addq 0x28(%rsp), %rbx
addq %rdi, %r15
cmpq 0x30(%rsp), %rbp
jne 0xd13c
movq 0x8(%rsp), %rdi
callq 0x21d0
movq 0x10(%rsp), %rax
jmp 0xd225
movq 0x8(%rsp), %rdi
callq 0x21d0
leaq 0xb98d(%rip), %rax      # 0x18ba9
movq %rax, 0xffd5(%rip)      # 0x1d1f8
xorl %eax, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/zhiyb[P]png2tlg/./stb_image.h
// Function: stbi__decode_jpeg_header(stbi__jpeg*, int)
static int stbi__decode_jpeg_header(stbi__jpeg *z, int scan)
{
   int m;
   z->jfif = 0;
   z->app14_color_transform = -1; // valid values are 0,1,2
   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
movabsq $-0x100000000, %rax     # imm = 0xFFFFFFFF00000000
movq %rax, 0x4848(%rdi)
movb $-0x1, 0x4828(%rdi)
callq 0xec59
cmpb $-0x28, %al
jne 0xe12a
movl $0x1, %ebp
cmpl $0x1, %ebx
je 0xe13a
movq %r14, %rdi
callq 0xec59
movzbl %al, %esi
movl %esi, %ecx
andl $-0x2, %ecx
cmpl $0xc0, %ecx
sete %cl
cmpb $-0x3e, %sil
sete %dl
orb %cl, %dl
jne 0xe108
xorl %ebp, %ebp
movq %r14, %rdi
callq 0xed72
testl %eax, %eax
je 0xe13a
movq %r14, %rdi
callq 0xec59
cmpb $-0x1, %al
jne 0xe0f4
movq (%r14), %r15
cmpq $0x0, 0x10(%r15)
je 0xe0e2
movq 0x28(%r15), %rdi
callq *0x20(%r15)
testl %eax, %eax
je 0xe0b9
cmpl $0x0, 0x30(%r15)
je 0xe147
movq 0xb8(%r15), %rax
cmpq 0xc0(%r15), %rax
jb 0xe0b9
jmp 0xe147
cmpb $-0x3e, %al
je 0xe108
movzbl %al, %esi
movl %esi, %ecx
andl $-0x2, %ecx
cmpl $0xc0, %ecx
jne 0xe0a9
xorl %ecx, %ecx
cmpb $-0x3e, %al
sete %cl
movl %ecx, 0x4830(%r14)
movq %r14, %rdi
movl %ebx, %esi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0xf55f
leaq 0xa980(%rip), %rax      # 0x18ab1
movq %rax, 0xf0c0(%rip)      # 0x1d1f8
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0xa96a(%rip), %rax      # 0x18ab8
movq %rax, 0xf0a3(%rip)      # 0x1d1f8
jmp 0xe13a
// File: /workspace/github_c_makefile_star2_O3/zhiyb[P]png2tlg/./stb_image.h
// 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); // consume repeated 0xff fill bytes
   return x;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movb 0x4828(%rdi), %al
cmpb $-0x1, %al
je 0xec77
movb $-0x1, 0x4828(%rbx)
jmp 0xed6c
movq (%rbx), %r15
movq 0xb8(%r15), %rax
cmpq 0xc0(%r15), %rax
jae 0xec99
leaq 0x1(%rax), %rcx
movq %rcx, 0xb8(%r15)
movb (%rax), %cl
jmp 0xeced
cmpl $0x0, 0x30(%r15)
je 0xecc1
movq 0x28(%r15), %rdi
leaq 0x38(%r15), %r14
movl 0x34(%r15), %edx
movq %r14, %rsi
callq *0x10(%r15)
testl %eax, %eax
je 0xecc8
cltq
addq %r14, %rax
movb (%r14), %cl
jmp 0xecdb
movb $-0x1, %al
jmp 0xed6c
movl $0x0, 0x30(%r15)
leaq 0x39(%r15), %rax
movb $0x0, 0x38(%r15)
xorl %ecx, %ecx
movq %rax, 0xc0(%r15)
leaq 0x39(%r15), %rax
movq %rax, 0xb8(%r15)
movb $-0x1, %al
cmpb $-0x1, %cl
jne 0xed6c
movq (%rbx), %r15
movq 0xb8(%r15), %rax
cmpq 0xc0(%r15), %rax
jae 0xed16
leaq 0x1(%rax), %rcx
movq %rcx, 0xb8(%r15)
movb (%rax), %al
jmp 0xed64
cmpl $0x0, 0x30(%r15)
je 0xed6a
movq 0x28(%r15), %rdi
leaq 0x38(%r15), %r14
movl 0x34(%r15), %edx
movq %r14, %rsi
callq *0x10(%r15)
testl %eax, %eax
je 0xed3f
movslq %eax, %rcx
addq %r14, %rcx
movb (%r14), %al
jmp 0xed52
movl $0x0, 0x30(%r15)
leaq 0x39(%r15), %rcx
movb $0x0, 0x38(%r15)
xorl %eax, %eax
movq %rcx, 0xc0(%r15)
leaq 0x39(%r15), %rcx
movq %rcx, 0xb8(%r15)
cmpb $-0x1, %al
je 0xecf4
jmp 0xed6c
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/zhiyb[P]png2tlg/./stb_image.h
// 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
jae 0xfbcc
leaq 0x1(%rax), %rcx
movq %rcx, 0xb8(%rbx)
movb (%rax), %al
jmp 0xfc19
cmpl $0x0, 0x30(%rbx)
je 0xfbf2
movq 0x28(%rbx), %rdi
leaq 0x38(%rbx), %r14
movl 0x34(%rbx), %edx
movq %r14, %rsi
callq *0x10(%rbx)
testl %eax, %eax
je 0xfbf6
movslq %eax, %rcx
addq %r14, %rcx
movb (%r14), %al
jmp 0xfc07
xorl %eax, %eax
jmp 0xfc19
movl $0x0, 0x30(%rbx)
leaq 0x39(%rbx), %rcx
movb $0x0, 0x38(%rbx)
xorl %eax, %eax
movq %rcx, 0xc0(%rbx)
leaq 0x39(%rbx), %rcx
movq %rcx, 0xb8(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/zhiyb[P]png2tlg/./stb_image.h
// Function: stbi__build_huffman(stbi__huffman*, int*)
static int stbi__build_huffman(stbi__huffman *h, int *count)
{
   int i,j,k=0;
   unsigned int 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 >= (1u << 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 0xfd3f
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 0xfd2f
addl %r9d, %edx
incq %rcx
cmpq $0x10, %rcx
jne 0xfd1d
movslq %edx, %rax
movb $0x0, 0x500(%rbx,%rax)
leaq 0x200(%rbx), %rdx
leaq 0x501(%rbx), %rsi
xorl %edi, %edi
movl $0x1, %eax
xorl %ebp, %ebp
movl %ebp, %ecx
subl %edi, %ecx
movl %ecx, 0x64c(%rbx,%rax,4)
movslq %ebp, %rcx
movzbl 0x500(%rbx,%rcx), %r8d
cmpq %r8, %rax
jne 0xfdb7
leaq (%rdx,%rcx,2), %r8
addq %rsi, %rcx
movw %di, (%r8)
incl %edi
movzbl (%rcx), %r9d
addq $0x2, %r8
incl %ebp
incq %rcx
cmpq %r9, %rax
je 0xfd8d
leal -0x1(%rdi), %r8d
movl %eax, %ecx
shrl %cl, %r8d
testl %r8d, %r8d
jne 0xfe41
movb $0x10, %cl
subb %al, %cl
movl %edi, %r8d
shll %cl, %r8d
movl %r8d, 0x604(%rbx,%rax,4)
addl %edi, %edi
incq %rax
cmpq $0x11, %rax
jne 0xfd6a
movl $0xffffffff, 0x648(%rbx) # imm = 0xFFFFFFFF
movl $0x200, %edx            # imm = 0x200
movq %rbx, %rdi
movl $0xff, %esi
callq 0x20e0
movl $0x1, %eax
testl %ebp, %ebp
jle 0xfe51
movl %ebp, %edx
xorl %esi, %esi
movzbl 0x500(%rbx,%rsi), %r8d
cmpq $0x9, %r8
ja 0xfe37
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 0xfe25
incq %rsi
cmpq %rdx, %rsi
jne 0xfdfd
jmp 0xfe51
leaq 0x8cef(%rip), %rax      # 0x18b37
movq %rax, 0xd3a9(%rip)      # 0x1d1f8
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/zhiyb[P]png2tlg/./stb_image.h
// 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 0xfe91
cmpq $0x0, 0x10(%rdi)
je 0xfe9a
movq 0xb8(%rdi), %rcx
movq 0xc0(%rdi), %rdx
movl %edx, %r8d
subl %ecx, %r8d
movl %esi, %eax
subl %r8d, %eax
jle 0xfea1
movq %rdx, 0xb8(%rdi)
movq 0x18(%rdi), %rcx
movq 0x28(%rdi), %rdi
movl %eax, %esi
jmpq *%rcx
movq 0xc0(%rdi), %rax
jmp 0xfea6
movq 0xb8(%rdi), %rcx
movl %esi, %eax
addq %rcx, %rax
movq %rax, 0xb8(%rdi)
retq
// File: /workspace/github_c_makefile_star2_O3/zhiyb[P]png2tlg/./stb_image.h
// Function: stbi__mad4sizes_valid(int, int, int, int, int)
static int stbi__mul2sizes_valid(int a, int b)
{
   if (a < 0 || b < 0) return 0;
   if (b == 0) return 1; // mul-by-0 is always safe
   // portable way to check for no overflows in a*b
   return a <= INT_MAX/b;
}

// Assembly:
movl %esi, %eax
orl %edi, %eax
js 0x1580e
movl %edx, %ecx
testl %esi, %esi
je 0x157d5
xorl %r8d, %r8d
movl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
xorl %edx, %edx
divl %esi
cmpl %edi, %eax
jl 0x15811
imull %edi, %esi
movl %esi, %eax
orl %ecx, %eax
js 0x1580e
testl %ecx, %ecx
je 0x157f2
xorl %r8d, %r8d
movl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
xorl %edx, %edx
divl %ecx
cmpl %esi, %eax
jl 0x15811
imull %ecx, %esi
movl $0x0, %r8d
testl %esi, %esi
js 0x15811
xorl %r8d, %r8d
cmpl $0x20000000, %esi       # imm = 0x20000000
setb %r8b
jmp 0x15811
xorl %r8d, %r8d
movl %r8d, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/zhiyb[P]png2tlg/./stb_image.h
// Function: stbi__free_jpeg_components(stbi__jpeg*, int, int)
static int stbi__free_jpeg_components(stbi__jpeg *z, int ncomp, int why)
{
   int i;
   for (i=0; i < ncomp; ++i) {
      if (z->img_comp[i].raw_data) {
         STBI_FREE(z->img_comp[i].raw_data);
         z->img_comp[i].raw_data = NULL;
         z->img_comp[i].data = NULL;
      }
      if (z->img_comp[i].raw_coeff) {
         STBI_FREE(z->img_comp[i].raw_coeff);
         z->img_comp[i].raw_coeff = 0;
         z->img_comp[i].coeff = 0;
      }
      if (z->img_comp[i].linebuf) {
         STBI_FREE(z->img_comp[i].linebuf);
         z->img_comp[i].linebuf = NULL;
      }
   }
   return why;
}

// Assembly:
testl %esi, %esi
jle 0xffc1
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl %esi, %eax
addq $0x46f0, %rbx           # imm = 0x46F0
shlq $0x5, %rax
leaq (%rax,%rax,2), %r14
xorl %r15d, %r15d
xorl %r12d, %r12d
movq -0x18(%rbx,%r12), %rdi
testq %rdi, %rdi
je 0xff7d
callq 0x21d0
xorps %xmm0, %xmm0
movups %xmm0, -0x20(%rbx,%r12)
movq -0x10(%rbx,%r12), %rdi
testq %rdi, %rdi
je 0xff95
callq 0x21d0
movq %r15, -0x10(%rbx,%r12)
movq %r15, (%rbx,%r12)
movq -0x8(%rbx,%r12), %rdi
testq %rdi, %rdi
je 0xffad
callq 0x21d0
movq $0x0, -0x8(%rbx,%r12)
addq $0x60, %r12
cmpq %r12, %r14
jne 0xff65
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/zhiyb[P]png2tlg/./stb_image.h
// 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 0x10039
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 0x10014
retq
// File: /workspace/github_c_makefile_star2_O3/zhiyb[P]png2tlg/./stb_image.h
// 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 0x1004a
movb %dl, 0x1(%rax)
movb %dl, (%rax)
retq
movzbl %dl, %edx
movb %dl, (%rax)
movzwl %dx, %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), %edx
movl $0x2, %edi
cmpl $0x3, %ecx
jl 0x100b9
movl %edx, %edi
decq %rdi
xorl %r8d, %r8d
movzbl 0x1(%rsi,%r8), %r9d
leal (%r9,%r9,2), %r9d
movzbl (%rsi,%r8), %r10d
addl %r9d, %r10d
addl $0x2, %r10d
shrl $0x2, %r10d
movb %r10b, 0x2(%rax,%r8,2)
movzbl 0x2(%rsi,%r8), %r10d
addl %r10d, %r9d
addl $0x2, %r9d
shrl $0x2, %r9d
movb %r9b, 0x3(%rax,%r8,2)
incq %r8
cmpq %r8, %rdi
jne 0x10079
leal (%rdx,%rdx), %edi
movslq %ecx, %rcx
movzbl -0x2(%rsi,%rcx), %ecx
leal (%rcx,%rcx,2), %ecx
movslq %edx, %rdx
movzbl (%rsi,%rdx), %r8d
addl %r8d, %ecx
addl $0x2, %ecx
shrl $0x2, %ecx
movl %edi, %edi
movb %cl, (%rax,%rdi)
movb (%rsi,%rdx), %cl
movb %cl, 0x1(%rax,%rdi)
retq
// File: /workspace/github_c_makefile_star2_O3/zhiyb[P]png2tlg/./stb_image.h
// Function: stbi__grow_buffer_unsafe(stbi__jpeg*)
static void stbi__grow_buffer_unsafe(stbi__jpeg *j)
{
   do {
      unsigned int b = j->nomore ? 0 : stbi__get8(j->s);
      if (b == 0xff) {
         int c = stbi__get8(j->s);
         while (c == 0xff) c = stbi__get8(j->s); // consume fill bytes
         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 %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
cmpl $0x0, 0x482c(%rbx)
je 0x10acd
xorl %eax, %eax
jmp 0x10be2
movq (%rbx), %r15
movq 0xb8(%r15), %rax
cmpq 0xc0(%r15), %rax
jae 0x10aef
leaq 0x1(%rax), %rcx
movq %rcx, 0xb8(%r15)
movb (%rax), %al
jmp 0x10b3d
cmpl $0x0, 0x30(%r15)
je 0x10ac6
movq 0x28(%r15), %rdi
leaq 0x38(%r15), %r14
movl 0x34(%r15), %edx
movq %r14, %rsi
callq *0x10(%r15)
testl %eax, %eax
je 0x10b18
movslq %eax, %rcx
addq %r14, %rcx
movb (%r14), %al
jmp 0x10b2b
movl $0x0, 0x30(%r15)
leaq 0x39(%r15), %rcx
movb $0x0, 0x38(%r15)
xorl %eax, %eax
movq %rcx, 0xc0(%r15)
leaq 0x39(%r15), %rcx
movq %rcx, 0xb8(%r15)
cmpb $-0x1, %al
jne 0x10be2
movq (%rbx), %r15
movq 0xb8(%r15), %rax
cmpq 0xc0(%r15), %rax
jae 0x10b67
leaq 0x1(%rax), %rcx
movq %rcx, 0xb8(%r15)
movb (%rax), %al
jmp 0x10b70
cmpl $0x0, 0x30(%r15)
jne 0x10b90
xorl %eax, %eax
cmpb $-0x1, %al
jne 0x10bd9
movq (%rbx), %r15
movq 0xb8(%r15), %rax
cmpq 0xc0(%r15), %rax
jb 0x10b58
xorl %eax, %eax
cmpl $0x0, 0x30(%r15)
je 0x10b70
movq 0x28(%r15), %rdi
leaq 0x38(%r15), %r14
movl 0x34(%r15), %edx
movq %r14, %rsi
callq *0x10(%r15)
testl %eax, %eax
je 0x10bb2
movslq %eax, %rcx
addq %r14, %rcx
movb (%r14), %al
jmp 0x10bc5
movl $0x0, 0x30(%r15)
leaq 0x39(%r15), %rcx
movb $0x0, 0x38(%r15)
xorl %eax, %eax
movq %rcx, 0xc0(%r15)
leaq 0x39(%r15), %rcx
movq %rcx, 0xb8(%r15)
jmp 0x10b70
movzbl %al, %ecx
testl %ecx, %ecx
jne 0x10c0b
movb $-0x1, %al
movzbl %al, %eax
movl 0x4824(%rbx), %edx
movb $0x18, %cl
subb %dl, %cl
shll %cl, %eax
orl %eax, 0x4820(%rbx)
leal 0x8(%rdx), %eax
movl %eax, 0x4824(%rbx)
cmpl $0x11, %edx
jl 0x10abd
jmp 0x10c1b
movb %al, 0x4828(%rbx)
movl $0x1, 0x482c(%rbx)
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/zhiyb[P]png2tlg/./stb_image.h
// Function: stbi__check_png_header(stbi__context*)
static int stbi__check_png_header(stbi__context *s)
{
   static const 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
movq 0xb8(%rdi), %rcx
movq 0xc0(%rdi), %rax
xorl %r12d, %r12d
leaq 0x8687(%rip), %r13      # 0x19586
cmpq %rax, %rcx
jae 0x10f16
leaq 0x1(%rcx), %rsi
movq %rsi, 0xb8(%rbx)
movb (%rcx), %dl
movq %rsi, %rcx
jmp 0x10f5c
cmpl $0x0, 0x30(%rbx)
je 0x10f37
movq 0x28(%rbx), %rdi
movl 0x34(%rbx), %edx
movq %r14, %rsi
callq *0x10(%rbx)
testl %eax, %eax
je 0x10f3b
cltq
addq %r14, %rax
movb (%r14), %dl
jmp 0x10f4b
xorl %edx, %edx
jmp 0x10f5c
movl $0x0, 0x30(%rbx)
movb $0x0, 0x38(%rbx)
xorl %edx, %edx
movq %r15, %rax
movq %rax, 0xc0(%rbx)
movq %r15, 0xb8(%rbx)
movq %r15, %rcx
cmpb (%r12,%r13), %dl
jne 0x10f72
incq %r12
cmpq $0x8, %r12
jne 0x10eff
movl $0x1, %eax
jmp 0x10f82
leaq 0x7dc3(%rip), %rax      # 0x18d3c
movq %rax, 0xc278(%rip)      # 0x1d1f8
xorl %eax, %eax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/zhiyb[P]png2tlg/./stb_image.h
// 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 %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
cmpq $0x0, 0x10(%rdi)
je 0x12746
movq 0xb8(%rbx), %rsi
movq 0xc0(%rbx), %rcx
movq %rcx, %rax
subq %rsi, %rax
movl %edx, %ebp
subl %eax, %ebp
jle 0x12754
movslq %eax, %r15
movq %r14, %rdi
movq %r15, %rdx
callq 0x2140
movq 0x28(%rbx), %rdi
addq %r15, %r14
movq %r14, %rsi
movl %ebp, %edx
callq *0x10(%rbx)
movl %eax, %ecx
xorl %eax, %eax
cmpl %ebp, %ecx
sete %al
movq 0xc0(%rbx), %rcx
movq %rcx, 0xb8(%rbx)
jmp 0x12779
movq 0xb8(%rbx), %rsi
movq 0xc0(%rbx), %rcx
movslq %edx, %r15
leaq (%rsi,%r15), %rdx
xorl %eax, %eax
cmpq %rcx, %rdx
ja 0x12779
movq %r14, %rdi
movq %r15, %rdx
callq 0x2140
addq %r15, 0xb8(%rbx)
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/zhiyb[P]png2tlg/./stb_image.h
// Function: stbi__compute_transparency16(stbi__png*, unsigned short*, int)
static int stbi__compute_transparency16(stbi__png *z, stbi__uint16 tc[3], int out_n)
{
   stbi__context *s = z->s;
   stbi__uint32 i, pixel_count = s->img_x * s->img_y;
   stbi__uint16 *p = (stbi__uint16*) z->out;

   // compute color-based transparency, assuming we've
   // already got 65535 as the alpha value in the output
   STBI_ASSERT(out_n == 2 || out_n == 4);

   if (out_n == 2) {
      for (i = 0; i < pixel_count; ++i) {
         p[1] = (p[0] == tc[0] ? 0 : 65535);
         p += 2;
      }
   } else {
      for (i = 0; i < pixel_count; ++i) {
         if (p[0] == tc[0] && p[1] == tc[1] && p[2] == tc[2])
            p[3] = 0;
         p += 4;
      }
   }
   return 1;
}

// Assembly:
imull %esi, %edi
cmpl $0x2, %r8d
je 0x127ca
cmpl $0x4, %r8d
jne 0x127f1
testl %edi, %edi
je 0x127f0
movl %edi, %eax
xorl %esi, %esi
movzwl (%rdx,%rsi,8), %edi
cmpw (%rcx), %di
jne 0x127c1
movzwl 0x2(%rdx,%rsi,8), %edi
cmpw 0x2(%rcx), %di
jne 0x127c1
movzwl 0x4(%rdx,%rsi,8), %edi
cmpw 0x4(%rcx), %di
jne 0x127c1
movw $0x0, 0x6(%rdx,%rsi,8)
incq %rsi
cmpl %esi, %eax
jne 0x1279b
jmp 0x127f0
testl %edi, %edi
je 0x127f0
movl %edi, %eax
xorl %esi, %esi
movzwl (%rdx,%rsi,4), %edi
xorl %r8d, %r8d
cmpw (%rcx), %di
setne %r8b
negl %r8d
movw %r8w, 0x2(%rdx,%rsi,4)
incq %rsi
cmpl %esi, %eax
jne 0x127d2
retq
pushq %rax
leaq 0x672c(%rip), %rdi      # 0x18f25
leaq 0x6236(%rip), %rsi      # 0x18a36
leaq 0x6737(%rip), %rcx      # 0x18f3e
movl $0x124d, %edx           # imm = 0x124D
callq 0x20f0
// File: /workspace/github_c_makefile_star2_O3/zhiyb[P]png2tlg/./stb_image.h
// Function: stbi__compute_transparency(stbi__png*, unsigned char*, int)
static int stbi__compute_transparency(stbi__png *z, stbi_uc tc[3], int out_n)
{
   stbi__context *s = z->s;
   stbi__uint32 i, pixel_count = s->img_x * s->img_y;
   stbi_uc *p = z->out;

   // compute color-based transparency, assuming we've
   // already got 255 as the alpha value in the output
   STBI_ASSERT(out_n == 2 || out_n == 4);

   if (out_n == 2) {
      for (i=0; i < pixel_count; ++i) {
         p[1] = (p[0] == tc[0] ? 0 : 255);
         p += 2;
      }
   } else {
      for (i=0; i < pixel_count; ++i) {
         if (p[0] == tc[0] && p[1] == tc[1] && p[2] == tc[2])
            p[3] = 0;
         p += 4;
      }
   }
   return 1;
}

// Assembly:
imull %esi, %edi
cmpl $0x2, %r8d
je 0x12855
cmpl $0x4, %r8d
jne 0x12878
testl %edi, %edi
je 0x12877
movl %edi, %eax
xorl %esi, %esi
movb (%rdx,%rsi,4), %dil
cmpb (%rcx), %dil
jne 0x1284c
movb 0x1(%rdx,%rsi,4), %dil
cmpb 0x1(%rcx), %dil
jne 0x1284c
movb 0x2(%rdx,%rsi,4), %dil
cmpb 0x2(%rcx), %dil
jne 0x1284c
movb $0x0, 0x3(%rdx,%rsi,4)
incq %rsi
cmpl %esi, %eax
jne 0x12828
jmp 0x12877
testl %edi, %edi
je 0x12877
movl %edi, %eax
xorl %esi, %esi
movb (%rdx,%rsi,2), %dil
cmpb (%rcx), %dil
setne %dil
negb %dil
movb %dil, 0x1(%rdx,%rsi,2)
incq %rsi
cmpl %esi, %eax
jne 0x1285d
retq
pushq %rax
leaq 0x66a5(%rip), %rdi      # 0x18f25
leaq 0x61af(%rip), %rsi      # 0x18a36
leaq 0x66f3(%rip), %rcx      # 0x18f81
movl $0x1234, %edx           # imm = 0x1234
callq 0x20f0
// File: /workspace/github_c_makefile_star2_O3/zhiyb[P]png2tlg/./stb_image.h
// 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) {
               stbi_uc half = a / 2;
               p[0] = (p[2] * 255 + half) / a;
               p[1] = (p[1] * 255 + half) / a;
               p[2] = ( t   * 255 + half) / 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
movl 0x4(%rdi), %eax
movl 0xc(%rdi), %ecx
imull (%rdi), %eax
cmpl $0x4, %ecx
je 0x128cf
cmpl $0x3, %ecx
jne 0x1297e
testl %eax, %eax
je 0x1297c
movb (%rsi), %cl
movb 0x2(%rsi), %dl
movb %dl, (%rsi)
movb %cl, 0x2(%rsi)
addq $0x3, %rsi
decl %eax
jne 0x128b8
jmp 0x1297c
cmpl $0x0, 0xa92e(%rip)      # 0x1d204
je 0x1295d
testl %eax, %eax
je 0x1297c
movl %eax, %ecx
xorl %edi, %edi
movzbl 0x3(%rsi,%rdi,4), %r8d
movb (%rsi,%rdi,4), %al
testl %r8d, %r8d
je 0x12949
movzbl %al, %r10d
movl %r8d, %r9d
shrl %r9d
movzbl 0x2(%rsi,%rdi,4), %edx
movl %edx, %eax
shll $0x8, %eax
subl %edx, %eax
addl %r9d, %eax
xorl %edx, %edx
divw %r8w
movb %al, (%rsi,%rdi,4)
movzbl 0x1(%rsi,%rdi,4), %edx
movl %edx, %eax
shll $0x8, %eax
subl %edx, %eax
addl %r9d, %eax
xorl %edx, %edx
divw %r8w
movb %al, 0x1(%rsi,%rdi,4)
movl %r10d, %eax
shll $0x8, %eax
subl %r10d, %eax
addl %r9d, %eax
xorl %edx, %edx
divw %r8w
movb %al, 0x2(%rsi,%rdi,4)
jmp 0x12954
movb 0x2(%rsi,%rdi,4), %dl
movb %dl, (%rsi,%rdi,4)
movb %al, 0x2(%rsi,%rdi,4)
incq %rdi
cmpl %edi, %ecx
jne 0x128e8
jmp 0x1297c
testl %eax, %eax
je 0x1297c
movl %eax, %eax
xorl %ecx, %ecx
movb (%rsi,%rcx,4), %dl
movb 0x2(%rsi,%rcx,4), %dil
movb %dil, (%rsi,%rcx,4)
movb %dl, 0x2(%rsi,%rcx,4)
incq %rcx
cmpl %ecx, %eax
jne 0x12965
popq %rax
retq
leaq 0x6638(%rip), %rdi      # 0x18fbd
leaq 0x60aa(%rip), %rsi      # 0x18a36
leaq 0x663c(%rip), %rcx      # 0x18fcf
movl $0x129e, %edx           # imm = 0x129E
callq 0x20f0
// File: /workspace/github_c_makefile_star2_O3/zhiyb[P]png2tlg/./stb_image.h
// Function: stbi__shiftsigned(unsigned int, int, int)
static int stbi__shiftsigned(unsigned int v, int shift, int bits)
{
   static unsigned int mul_table[9] = {
      0,
      0xff/*0b11111111*/, 0x55/*0b01010101*/, 0x49/*0b01001001*/, 0x11/*0b00010001*/,
      0x21/*0b00100001*/, 0x41/*0b01000001*/, 0x81/*0b10000001*/, 0x01/*0b00000001*/,
   };
   static unsigned int shift_table[9] = {
      0, 0,0,1,0,2,4,6,0,
   };
   if (shift < 0)
      v <<= -shift;
   else
      v >>= shift;
   STBI_ASSERT(v >= 0 && v < 256);
   v >>= (8-bits);
   STBI_ASSERT(bits >= 0 && bits <= 8);
   return (int) ((unsigned) v * mul_table[bits]) >> shift_table[bits];
}

// Assembly:
pushq %rax
movl %esi, %ecx
negb %cl
movl %edi, %eax
shll %cl, %eax
movl %esi, %ecx
shrl %cl, %edi
testl %esi, %esi
cmovsl %eax, %edi
cmpl $0x100, %edi            # imm = 0x100
jae 0x13c7e
cmpl $0x9, %edx
jge 0x13c9d
movb $0x8, %cl
subb %dl, %cl
shrl %cl, %edi
movl %edx, %eax
leaq 0x49a6(%rip), %rcx      # 0x18610
imull (%rcx,%rax,4), %edi
leaq 0x49cb(%rip), %rcx      # 0x18640
movb (%rcx,%rax,4), %cl
sarl %cl, %edi
movl %edi, %eax
popq %rcx
retq
leaq 0x547f(%rip), %rdi      # 0x19104
leaq 0x4daa(%rip), %rsi      # 0x18a36
leaq 0x5483(%rip), %rcx      # 0x19116
movl $0x13f9, %edx           # imm = 0x13F9
callq 0x20f0
leaq 0x54a0(%rip), %rdi      # 0x19144
leaq 0x4d8b(%rip), %rsi      # 0x18a36
leaq 0x5464(%rip), %rcx      # 0x19116
movl $0x13fb, %edx           # imm = 0x13FB
callq 0x20f0
// File: /workspace/github_c_makefile_star2_O3/zhiyb[P]png2tlg/./stb_image.h
// 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 0x14df7
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), %r12
movl %ecx, %eax
movq %rax, (%rsp)
movl %edx, %ebp
xorl %r13d, %r13d
movq 0xb8(%r14), %rax
cmpq 0xc0(%r14), %rax
jae 0x14ca8
leaq 0x1(%rax), %rcx
movq %rcx, 0xb8(%r14)
movb (%rax), %al
jmp 0x14cf1
cmpl $0x0, 0x30(%r14)
je 0x14ccd
movq 0x28(%r14), %rdi
movl 0x34(%r14), %edx
movq %r15, %rsi
callq *0x10(%r14)
testl %eax, %eax
je 0x14cd1
movslq %eax, %rcx
addq %r15, %rcx
movb (%r15), %al
jmp 0x14ce3
xorl %eax, %eax
jmp 0x14cf1
movl $0x0, 0x30(%r14)
movb $0x0, 0x38(%r14)
xorl %eax, %eax
movq %r12, %rcx
movq %rcx, 0xc0(%r14)
movq %r12, 0xb8(%r14)
movb %al, 0x2(%rbx,%r13,4)
movq 0xb8(%r14), %rax
cmpq 0xc0(%r14), %rax
jae 0x14d15
leaq 0x1(%rax), %rcx
movq %rcx, 0xb8(%r14)
movb (%rax), %al
jmp 0x14d5e
cmpl $0x0, 0x30(%r14)
je 0x14d3a
movq 0x28(%r14), %rdi
movl 0x34(%r14), %edx
movq %r15, %rsi
callq *0x10(%r14)
testl %eax, %eax
je 0x14d3e
movslq %eax, %rcx
addq %r15, %rcx
movb (%r15), %al
jmp 0x14d50
xorl %eax, %eax
jmp 0x14d5e
movl $0x0, 0x30(%r14)
movb $0x0, 0x38(%r14)
xorl %eax, %eax
movq %r12, %rcx
movq %rcx, 0xc0(%r14)
movq %r12, 0xb8(%r14)
movb %al, 0x1(%rbx,%r13,4)
movq 0xb8(%r14), %rax
cmpq 0xc0(%r14), %rax
jae 0x14d82
leaq 0x1(%rax), %rcx
movq %rcx, 0xb8(%r14)
movb (%rax), %al
jmp 0x14dcb
cmpl $0x0, 0x30(%r14)
je 0x14da7
movq 0x28(%r14), %rdi
movl 0x34(%r14), %edx
movq %r15, %rsi
callq *0x10(%r14)
testl %eax, %eax
je 0x14dab
movslq %eax, %rcx
addq %r15, %rcx
movb (%r15), %al
jmp 0x14dbd
xorl %eax, %eax
jmp 0x14dcb
movl $0x0, 0x30(%r14)
movb $0x0, 0x38(%r14)
xorl %eax, %eax
movq %r12, %rcx
movq %rcx, 0xc0(%r14)
movq %r12, 0xb8(%r14)
movb %al, (%rbx,%r13,4)
cmpq %r13, (%rsp)
setne %al
negb %al
movb %al, 0x3(%rbx,%r13,4)
incq %r13
cmpq %r13, %rbp
jne 0x14c89
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/zhiyb[P]png2tlg/./stb_image.h
// 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;
   int idx; 

   // 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;

   idx = g->cur_x + g->cur_y; 
   p = &g->out[idx];
   g->history[idx / 4] = 1;  

   c = &g->color_table[g->codes[code].suffix * 4];
   if (c[3] > 128) { // don't render transparent pixels; 
      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 0x834(%rdi,%r14,4), %eax
testw %ax, %ax
js 0x14e1b
movzwl %ax, %esi
movq %rbx, %rdi
callq 0x14df8
movslq 0x8860(%rbx), %rcx
cmpl 0x8858(%rbx), %ecx
jge 0x14efe
movslq 0x885c(%rbx), %rax
addq %rcx, %rax
movq 0x8(%rbx), %rcx
leal 0x3(%rax), %edx
testl %eax, %eax
cmovnsl %eax, %edx
movq 0x18(%rbx), %rsi
sarl $0x2, %edx
movslq %edx, %rdx
movb $0x1, (%rsi,%rdx)
movq 0x8838(%rbx), %rdx
movzbl 0x837(%rbx,%r14,4), %esi
cmpb $-0x7f, 0x3(%rdx,%rsi,4)
jb 0x14e8d
movb 0x2(%rdx,%rsi,4), %dil
movb %dil, (%rcx,%rax)
movb 0x1(%rdx,%rsi,4), %dil
movb %dil, 0x1(%rcx,%rax)
movb (%rdx,%rsi,4), %dil
movb %dil, 0x2(%rcx,%rax)
movb 0x3(%rdx,%rsi,4), %dl
movb %dl, 0x3(%rcx,%rax)
movl 0x885c(%rbx), %eax
addl $0x4, %eax
movl %eax, 0x885c(%rbx)
cmpl 0x8854(%rbx), %eax
jl 0x14efe
movl 0x884c(%rbx), %ecx
movl 0x8858(%rbx), %eax
movl %ecx, 0x885c(%rbx)
movl 0x8860(%rbx), %ecx
addl 0x8844(%rbx), %ecx
movl %ecx, 0x8860(%rbx)
cmpl %eax, %ecx
jl 0x14efe
movl 0x8840(%rbx), %ecx
testl %ecx, %ecx
jle 0x14efe
movl 0x8864(%rbx), %edx
shll %cl, %edx
movl %edx, 0x8844(%rbx)
sarl %edx
addl 0x8850(%rbx), %edx
movl %edx, 0x8860(%rbx)
decl %ecx
movl %ecx, 0x8840(%rbx)
cmpl %eax, %edx
jge 0x14ed2
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/zhiyb[P]png2tlg/./stb_image.h
// 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
movq 0xb8(%rdi), %rcx
movq 0xc0(%rdi), %rax
xorl %r13d, %r13d
cmpq %rax, %rcx
jae 0x14f45
leaq 0x1(%rcx), %rsi
movq %rsi, 0xb8(%r14)
movb (%rcx), %dl
movq %rsi, %rcx
jmp 0x14f90
cmpl $0x0, 0x30(%r14)
je 0x14f69
movq 0x28(%r14), %rdi
movl 0x34(%r14), %edx
movq %r15, %rsi
callq *0x10(%r14)
testl %eax, %eax
je 0x14f6d
cltq
addq %r15, %rax
movb (%r15), %dl
jmp 0x14f7f
xorl %edx, %edx
jmp 0x14f90
movl $0x0, 0x30(%r14)
movb $0x0, 0x38(%r14)
xorl %edx, %edx
movq %r12, %rax
movq %rax, 0xc0(%r14)
movq %r12, 0xb8(%r14)
movq %r12, %rcx
cmpb (%rbx,%r13), %dl
jne 0x14fa6
incq %r13
cmpq $0x4, %r13
jne 0x14f2e
movl $0x1, %eax
jmp 0x14fa8
xorl %eax, %eax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/zhiyb[P]png2tlg/./stb_image.h
// 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 0x15090
cmpq $0x0, 0x10(%r14)
je 0x15001
movq 0x28(%r14), %rdi
callq *0x20(%r14)
testl %eax, %eax
je 0x15019
cmpl $0x0, 0x30(%r14)
je 0x150a2
movq 0xb8(%r14), %rax
movq 0xc0(%r14), %rcx
cmpq %rcx, %rax
jb 0x15027
jmp 0x150a2
movq 0xb8(%r14), %rax
movq 0xc0(%r14), %rcx
cmpq %rcx, %rax
jae 0x1503b
leaq 0x1(%rax), %rcx
movq %rcx, 0xb8(%r14)
movb (%rax), %al
jmp 0x1508c
cmpl $0x0, 0x30(%r14)
je 0x15064
movq 0x28(%r14), %rdi
movl 0x34(%r14), %edx
movq %r15, %rsi
callq *0x10(%r14)
testl %eax, %eax
je 0x15068
movslq %eax, %rcx
addq %r15, %rcx
movb (%r15), %al
movq (%rsp), %rdx
jmp 0x1507e
xorl %eax, %eax
jmp 0x1508c
movl $0x0, 0x30(%r14)
movb $0x0, 0x38(%r14)
xorl %eax, %eax
movq (%rsp), %rdx
movq %rdx, %rcx
movq %rcx, 0xc0(%r14)
movq %rdx, 0xb8(%r14)
movb %al, (%rbx,%r12)
incq %r12
shrl %r13d
cmpq $0x4, %r12
jne 0x14fda
jmp 0x150b2
leaq 0x4191(%rip), %rax      # 0x1923a
movq %rax, 0x8148(%rip)      # 0x1d1f8
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_c_makefile_star2_O3/zhiyb[P]png2tlg/./stb_image.h
// 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 0x15319
movq 0x28(%r14), %rdi
callq *0x20(%r14)
testl %eax, %eax
je 0x15329
cmpl $0x0, 0x30(%r14)
je 0x1538b
movq 0xb8(%r14), %rax
cmpq 0xc0(%r14), %rax
jae 0x1538b
movzbl (%rbx), %eax
leal -0x9(%rax), %ecx
cmpl $0x5, %ecx
jae 0x15386
movq 0xb8(%r14), %rax
cmpq 0xc0(%r14), %rax
jae 0x15356
leaq 0x1(%rax), %rcx
movq %rcx, 0xb8(%r14)
movb (%rax), %al
jmp 0x154a0
cmpl $0x0, 0x30(%r14)
je 0x1547c
movq 0x28(%r14), %rdi
movl 0x34(%r14), %edx
movq %r15, %rsi
callq *0x10(%r14)
testl %eax, %eax
je 0x15480
movslq %eax, %rcx
addq %r15, %rcx
movb (%r15), %al
jmp 0x15492
cmpl $0x20, %eax
je 0x15334
cmpq $0x0, 0x10(%r14)
je 0x153a9
movq 0x28(%r14), %rdi
callq *0x20(%r14)
testl %eax, %eax
je 0x153bd
cmpl $0x0, 0x30(%r14)
je 0x154a7
movq 0xb8(%r14), %rax
cmpq 0xc0(%r14), %rax
jae 0x154a7
cmpb $0x23, (%rbx)
jne 0x154a7
cmpq $0x0, 0x10(%r14)
je 0x153e4
movq 0x28(%r14), %rdi
callq *0x20(%r14)
testl %eax, %eax
je 0x153f8
cmpl $0x0, 0x30(%r14)
je 0x152ff
movq 0xb8(%r14), %rax
cmpq 0xc0(%r14), %rax
jae 0x152ff
movzbl (%rbx), %eax
cmpl $0xa, %eax
je 0x152ff
cmpl $0xd, %eax
je 0x152ff
movq 0xb8(%r14), %rax
cmpq 0xc0(%r14), %rax
jae 0x1542c
leaq 0x1(%rax), %rcx
movq %rcx, 0xb8(%r14)
movb (%rax), %al
jmp 0x15475
cmpl $0x0, 0x30(%r14)
je 0x15451
movq 0x28(%r14), %rdi
movl 0x34(%r14), %edx
movq %r15, %rsi
callq *0x10(%r14)
testl %eax, %eax
je 0x15455
movslq %eax, %rcx
addq %r15, %rcx
movb (%r15), %al
jmp 0x15467
xorl %eax, %eax
jmp 0x15475
movl $0x0, 0x30(%r14)
movb $0x0, 0x38(%r14)
xorl %eax, %eax
movq %r12, %rcx
movq %rcx, 0xc0(%r14)
movq %r12, 0xb8(%r14)
movb %al, (%rbx)
jmp 0x153c6
xorl %eax, %eax
jmp 0x154a0
movl $0x0, 0x30(%r14)
movb $0x0, 0x38(%r14)
xorl %eax, %eax
movq %r12, %rcx
movq %rcx, 0xc0(%r14)
movq %r12, 0xb8(%r14)
movb %al, (%rbx)
jmp 0x152ff
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/zhiyb[P]png2tlg/./stb_image.h
// 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 0x154ed
movq 0x28(%r14), %rdi
callq *0x20(%r14)
testl %eax, %eax
je 0x15501
cmpl $0x0, 0x30(%r14)
je 0x15583
movq 0xb8(%r14), %rax
cmpq 0xc0(%r14), %rax
jae 0x15583
movzbl (%rbx), %ebp
leal -0x3a(%rbp), %eax
cmpb $-0xa, %al
jb 0x15583
movq 0xb8(%r14), %rax
cmpq 0xc0(%r14), %rax
jae 0x1552a
leaq 0x1(%rax), %rcx
movq %rcx, 0xb8(%r14)
movb (%rax), %al
jmp 0x15573
cmpl $0x0, 0x30(%r14)
je 0x1554f
movq 0x28(%r14), %rdi
movl 0x34(%r14), %edx
movq %r15, %rsi
callq *0x10(%r14)
testl %eax, %eax
je 0x15553
movslq %eax, %rcx
addq %r15, %rcx
movb (%r15), %al
jmp 0x15565
xorl %eax, %eax
jmp 0x15573
movl $0x0, 0x30(%r14)
movb $0x0, 0x38(%r14)
xorl %eax, %eax
movq %r13, %rcx
movq %rcx, 0xc0(%r14)
movq %r13, 0xb8(%r14)
leal (%r12,%r12,4), %ecx
leal -0x30(%rbp,%rcx,2), %r12d
movb %al, (%rbx)
jmp 0x154cf
movl %r12d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/zhiyb[P]png2tlg/./stb_image.h
// Function: stbi__hdr_gettoken(stbi__context*, char*)
static char *stbi__hdr_gettoken(stbi__context *z, char *buffer)
{
   int len=0;
   char c = '\0';

   c = (char) stbi__get8(z);

   while (!stbi__at_eof(z) && c != '\n') {
      buffer[len++] = c;
      if (len == STBI__HDR_BUFLEN-1) {
         // flush to end of line
         while (!stbi__at_eof(z) && stbi__get8(z) != '\n')
            ;
         break;
      }
      c = (char) stbi__get8(z);
   }

   buffer[len] = 0;
   return buffer;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq 0xb8(%rdi), %rcx
movq 0xc0(%rdi), %rax
cmpq %rax, %rcx
jae 0x155cc
leaq 0x1(%rcx), %rdx
movq %rdx, 0xb8(%r14)
movb (%rcx), %bpl
movq %rdx, %rcx
jmp 0x1561d
cmpl $0x0, 0x30(%r14)
je 0x155f4
movq 0x28(%r14), %rdi
leaq 0x38(%r14), %r15
movl 0x34(%r14), %edx
movq %r15, %rsi
callq *0x10(%r14)
testl %eax, %eax
je 0x155f8
cltq
addq %r15, %rax
movb (%r15), %bpl
jmp 0x1560b
xorl %ebp, %ebp
jmp 0x1561d
movl $0x0, 0x30(%r14)
leaq 0x39(%r14), %rax
movb $0x0, 0x38(%r14)
xorl %ebp, %ebp
movq %rax, 0xc0(%r14)
leaq 0x39(%r14), %rcx
movq %rcx, 0xb8(%r14)
leaq 0x38(%r14), %r15
leaq 0x39(%r14), %r12
xorl %r13d, %r13d
cmpq $0x0, 0x10(%r14)
je 0x15654
movq 0x28(%r14), %rdi
callq *0x20(%r14)
testl %eax, %eax
je 0x1565c
cmpl $0x0, 0x30(%r14)
je 0x157a2
movq 0xb8(%r14), %rcx
movq 0xc0(%r14), %rax
cmpq %rax, %rcx
setb %al
jmp 0x1565e
movb $0x1, %al
cmpb $0xa, %bpl
je 0x157a2
testb %al, %al
je 0x157a2
movb %bpl, (%rbx,%r13)
cmpq $0x3fe, %r13            # imm = 0x3FE
je 0x156f6
movq 0xb8(%r14), %rcx
movq 0xc0(%r14), %rax
cmpq %rax, %rcx
jae 0x156a3
leaq 0x1(%rcx), %rdx
movq %rdx, 0xb8(%r14)
movb (%rcx), %bpl
movq %rdx, %rcx
jmp 0x156ee
cmpl $0x0, 0x30(%r14)
je 0x156c7
movq 0x28(%r14), %rdi
movl 0x34(%r14), %edx
movq %r15, %rsi
callq *0x10(%r14)
testl %eax, %eax
je 0x156cb
cltq
addq %r15, %rax
movb (%r15), %bpl
jmp 0x156dd
xorl %ebp, %ebp
jmp 0x156ee
movl $0x0, 0x30(%r14)
movb $0x0, 0x38(%r14)
xorl %ebp, %ebp
movq %r12, %rax
movq %rax, 0xc0(%r14)
movq %r12, 0xb8(%r14)
movq %r12, %rcx
incq %r13
jmp 0x15628
cmpq $0x0, 0x10(%r14)
je 0x15714
movq 0x28(%r14), %rdi
callq *0x20(%r14)
testl %eax, %eax
je 0x15729
cmpl $0x0, 0x30(%r14)
je 0x1579c
movq 0xb8(%r14), %rax
movq 0xc0(%r14), %rcx
cmpq %rcx, %rax
jb 0x15737
jmp 0x1579c
movq 0xb8(%r14), %rax
movq 0xc0(%r14), %rcx
cmpq %rcx, %rax
jae 0x1574b
leaq 0x1(%rax), %rcx
movq %rcx, 0xb8(%r14)
movb (%rax), %al
jmp 0x15794
cmpl $0x0, 0x30(%r14)
je 0x15770
movq 0x28(%r14), %rdi
movl 0x34(%r14), %edx
movq %r15, %rsi
callq *0x10(%r14)
testl %eax, %eax
je 0x15774
movslq %eax, %rcx
addq %r15, %rcx
movb (%r15), %al
jmp 0x15786
xorl %eax, %eax
jmp 0x15794
movl $0x0, 0x30(%r14)
movb $0x0, 0x38(%r14)
xorl %eax, %eax
movq %r12, %rcx
movq %rcx, 0xc0(%r14)
movq %r12, 0xb8(%r14)
cmpb $0xa, %al
jne 0x156f6
movl $0x3ff, %r13d           # imm = 0x3FF
movb $0x0, (%rbx,%r13)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/zhiyb[P]png2tlg/./stb_image.h
// Function: stbi__hdr_convert(float*, unsigned char*, int)
static void stbi__hdr_convert(float *output, stbi_uc *input, int req_comp)
{
   if ( input[3] != 0 ) {
      float f1;
      // Exponent
      f1 = (float) ldexp(1.0f, input[3] - (int)(128 + 8));
      if (req_comp <= 2)
         output[0] = (input[0] + input[1] + input[2]) * f1 / 3;
      else {
         output[0] = input[0] * f1;
         output[1] = input[1] * f1;
         output[2] = input[2] * f1;
      }
      if (req_comp == 2) output[1] = 1;
      if (req_comp == 4) output[3] = 1;
   } else {
      switch (req_comp) {
         case 4: output[3] = 1; /* fallthrough */
         case 3: output[0] = output[1] = output[2] = 0;
                 break;
         case 2: output[1] = 1; /* fallthrough */
         case 1: output[0] = 0;
                 break;
      }
   }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movl %edx, %r14d
movq %rdi, %rbx
movzbl 0x3(%rsi), %edi
testl %edi, %edi
je 0x1589d
movq %rsi, %r15
addl $0xffffff78, %edi       # imm = 0xFFFFFF78
movss 0x279e(%rip), %xmm0     # 0x18008
callq 0x2220
movzbl (%r15), %eax
cmpl $0x2, %r14d
jg 0x158c9
movzbl 0x1(%r15), %ecx
addl %eax, %ecx
movzbl 0x2(%r15), %eax
addl %ecx, %eax
cvtsi2ss %eax, %xmm1
mulss %xmm1, %xmm0
divss 0x277d(%rip), %xmm0     # 0x18014
movss %xmm0, (%rbx)
jmp 0x158ff
decl %r14d
cmpl $0x3, %r14d
ja 0x15932
leaq 0x2b47(%rip), %rax      # 0x183f8
movslq (%rax,%r14,4), %rcx
addq %rax, %rcx
jmpq *%rcx
movl $0x3f800000, 0x4(%rbx)  # imm = 0x3F800000
movl $0x0, (%rbx)
jmp 0x15932
cvtsi2ss %eax, %xmm1
mulss %xmm0, %xmm1
movss %xmm1, (%rbx)
movzbl 0x1(%r15), %eax
xorps %xmm1, %xmm1
cvtsi2ss %eax, %xmm1
mulss %xmm0, %xmm1
movss %xmm1, 0x4(%rbx)
movzbl 0x2(%r15), %eax
xorps %xmm1, %xmm1
cvtsi2ss %eax, %xmm1
mulss %xmm0, %xmm1
movss %xmm1, 0x8(%rbx)
cmpl $0x4, %r14d
je 0x15914
cmpl $0x2, %r14d
jne 0x15932
movl $0x3f800000, 0x4(%rbx)  # imm = 0x3F800000
jmp 0x15932
movl $0x3f800000, 0xc(%rbx)  # imm = 0x3F800000
jmp 0x15932
movl $0x3f800000, 0xc(%rbx)  # imm = 0x3F800000
movl $0x0, 0x8(%rbx)
movq $0x0, (%rbx)
popq %rbx
popq %r14
popq %r15
retq