// File: /workspace/github_c_makefile_star2_O1/zhiyb[P]png2tlg/./stb_image.h
// Function: stbi__psd_load(stbi__context*, int*, int*, int*, int, stbi__result_info*, int)
static void *stbi__psd_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri, int bpc)
{
   int pixelCount;
   int channelCount, compression;
   int channel, i;
   int bitdepth;
   int w,h;
   stbi_uc *out;
   STBI_NOTUSED(ri);

   // Check identifier
   if (stbi__get32be(s) != 0x38425053)   // "8BPS"
      return stbi__errpuc("not PSD", "Corrupt PSD image");

   // Check file type version.
   if (stbi__get16be(s) != 1)
      return stbi__errpuc("wrong version", "Unsupported version of PSD image");

   // Skip 6 reserved bytes.
   stbi__skip(s, 6 );

   // Read the number of channels (R, G, B, A, etc).
   channelCount = stbi__get16be(s);
   if (channelCount < 0 || channelCount > 16)
      return stbi__errpuc("wrong channel count", "Unsupported number of channels in PSD image");

   // Read the rows and columns of the image.
   h = stbi__get32be(s);
   w = stbi__get32be(s);

   // Make sure the depth is 8 bits.
   bitdepth = stbi__get16be(s);
   if (bitdepth != 8 && bitdepth != 16)
      return stbi__errpuc("unsupported bit depth", "PSD bit depth is not 8 or 16 bit");

   // Make sure the color mode is RGB.
   // Valid options are:
   //   0: Bitmap
   //   1: Grayscale
   //   2: Indexed color
   //   3: RGB color
   //   4: CMYK color
   //   7: Multichannel
   //   8: Duotone
   //   9: Lab color
   if (stbi__get16be(s) != 3)
      return stbi__errpuc("wrong color format", "PSD is not in RGB color format");

   // Skip the Mode Data.  (It's the palette for indexed color; other info for other modes.)
   stbi__skip(s,stbi__get32be(s) );

   // Skip the image resources.  (resolution, pen tool paths, etc)
   stbi__skip(s, stbi__get32be(s) );

   // Skip the reserved data.
   stbi__skip(s, stbi__get32be(s) );

   // Find out if the data is compressed.
   // Known values:
   //   0: no compression
   //   1: RLE compressed
   compression = stbi__get16be(s);
   if (compression > 1)
      return stbi__errpuc("bad compression", "PSD has an unknown compression format");

   // Check size
   if (!stbi__mad3sizes_valid(4, w, h, 0))
      return stbi__errpuc("too large", "Corrupt PSD");

   // Create the destination image.

   if (!compression && bitdepth == 16 && bpc == 16) {
      out = (stbi_uc *) stbi__malloc_mad3(8, w, h, 0);
      ri->bits_per_channel = 16;
   } else
      out = (stbi_uc *) stbi__malloc(4 * w*h);

   if (!out) return stbi__errpuc("outofmem", "Out of memory");
   pixelCount = w*h;

   // Initialize the data to zero.
   //memset( out, 0, pixelCount * 4 );

   // Finally, the image data.
   if (compression) {
      // RLE as used by .PSD and .TIFF
      // Loop until you get the number of unpacked bytes you are expecting:
      //     Read the next source byte into n.
      //     If n is between 0 and 127 inclusive, copy the next n+1 bytes literally.
      //     Else if n is between -127 and -1 inclusive, copy the next byte -n+1 times.
      //     Else if n is 128, noop.
      // Endloop

      // The RLE-compressed data is preceded by a 2-byte data count for each row in the data,
      // which we're going to just skip.
      stbi__skip(s, h * channelCount * 2 );

      // Read the RLE data by channel.
      for (channel = 0; channel < 4; channel++) {
         stbi_uc *p;

         p = out+channel;
         if (channel >= channelCount) {
            // Fill this channel with default data.
            for (i = 0; i < pixelCount; i++, p += 4)
               *p = (channel == 3 ? 255 : 0);
         } else {
            // Read the RLE data.
            if (!stbi__psd_decode_rle(s, p, pixelCount)) {
               STBI_FREE(out);
               return stbi__errpuc("corrupt", "bad RLE data");
            }
         }
      }

   } else {
      // We're at the raw image data.  It's each channel in order (Red, Green, Blue, Alpha, ...)
      // where each channel consists of an 8-bit (or 16-bit) value for each pixel in the image.

      // Read the data by channel.
      for (channel = 0; channel < 4; channel++) {
         if (channel >= channelCount) {
            // Fill this channel with default data.
            if (bitdepth == 16 && bpc == 16) {
               stbi__uint16 *q = ((stbi__uint16 *) out) + channel;
               stbi__uint16 val = channel == 3 ? 65535 : 0;
               for (i = 0; i < pixelCount; i++, q += 4)
                  *q = val;
            } else {
               stbi_uc *p = out+channel;
               stbi_uc val = channel == 3 ? 255 : 0;
               for (i = 0; i < pixelCount; i++, p += 4)
                  *p = val;
            }
         } else {
            if (ri->bits_per_channel == 16) {    // output bpc
               stbi__uint16 *q = ((stbi__uint16 *) out) + channel;
               for (i = 0; i < pixelCount; i++, q += 4)
                  *q = (stbi__uint16) stbi__get16be(s);
            } else {
               stbi_uc *p = out+channel;
               if (bitdepth == 16) {  // input bpc
                  for (i = 0; i < pixelCount; i++, p += 4)
                     *p = (stbi_uc) (stbi__get16be(s) >> 8);
               } else {
                  for (i = 0; i < pixelCount; i++, p += 4)
                     *p = stbi__get8(s);
               }
            }
         }
      }
   }

   // remove weird white matte from PSD
   if (channelCount >= 4) {
      if (ri->bits_per_channel == 16) {
         for (i=0; i < w*h; ++i) {
            stbi__uint16 *pixel = (stbi__uint16 *) out + 4*i;
            if (pixel[3] != 0 && pixel[3] != 65535) {
               float a = pixel[3] / 65535.0f;
               float ra = 1.0f / a;
               float inv_a = 65535.0f * (1 - ra);
               pixel[0] = (stbi__uint16) (pixel[0]*ra + inv_a);
               pixel[1] = (stbi__uint16) (pixel[1]*ra + inv_a);
               pixel[2] = (stbi__uint16) (pixel[2]*ra + inv_a);
            }
         }
      } else {
         for (i=0; i < w*h; ++i) {
            unsigned char *pixel = out + 4*i;
            if (pixel[3] != 0 && pixel[3] != 255) {
               float a = pixel[3] / 255.0f;
               float ra = 1.0f / a;
               float inv_a = 255.0f * (1 - ra);
               pixel[0] = (unsigned char) (pixel[0]*ra + inv_a);
               pixel[1] = (unsigned char) (pixel[1]*ra + inv_a);
               pixel[2] = (unsigned char) (pixel[2]*ra + inv_a);
            }
         }
      }
   }

   // convert to desired output format
   if (req_comp && req_comp != 4) {
      if (ri->bits_per_channel == 16)
         out = (stbi_uc *) stbi__convert_format16((stbi__uint16 *) out, 4, req_comp, w, h);
      else
         out = stbi__convert_format(out, 4, req_comp, w, h);
      if (out == NULL) return out; // stbi__convert_format frees input on failure
   }

   if (comp) *comp = 4;
   *y = h;
   *x = w;

   return out;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %r9, 0x70(%rsp)
movl %r8d, %ebp
movq %rcx, %r13
movq %rdx, %r12
movq %rsi, %r15
movq %rdi, %rbx
callq 0xf497
movl %eax, %r14d
shll $0x10, %r14d
movq %rbx, %rdi
callq 0xf497
orl %r14d, %eax
cmpl $0x38425053, %eax       # imm = 0x38425053
jne 0xa3ab
movq %rbx, %rdi
callq 0xf497
cmpl $0x1, %eax
jne 0xa3b7
cmpq $0x0, 0x10(%rbx)
je 0xa3c3
movq 0xc0(%rbx), %rcx
movl 0xb8(%rbx), %edx
movl %ecx, %eax
subl %edx, %eax
cmpl $0x5, %eax
jg 0xa3c3
movq %rcx, 0xb8(%rbx)
movq 0x28(%rbx), %rdi
movl $0x6, %esi
subl %eax, %esi
callq *0x18(%rbx)
jmp 0xa3cb
leaq 0xdd6b(%rip), %rax      # 0x1811d
jmp 0xa4df
leaq 0xdd67(%rip), %rax      # 0x18125
jmp 0xa4df
addq $0x6, 0xb8(%rbx)
movq %rbx, %rdi
callq 0xf497
cmpl $0x11, %eax
jb 0xa3e4
leaq 0xdd54(%rip), %rax      # 0x18133
jmp 0xa4df
movl %eax, 0x1c(%rsp)
movq %rbx, %rdi
callq 0xf497
movq %rax, 0x28(%rsp)
movq %rbx, %rdi
callq 0xf497
movl %eax, %r14d
movq %rbx, %rdi
callq 0xf497
movq %rax, 0x20(%rsp)
movq %rbx, %rdi
callq 0xf497
movq %rax, 0x50(%rsp)
movq %rbx, %rdi
callq 0xf497
cmpl $0x8, %eax
je 0xa430
cmpl $0x10, %eax
jne 0xa4d8
movl %eax, 0x60(%rsp)
movq %rbx, %rdi
callq 0xf497
cmpl $0x3, %eax
jne 0xa4cf
movq %r14, 0x38(%rsp)
movq %rbx, %rdi
callq 0xf497
movl %eax, %r14d
shll $0x10, %r14d
movq %rbx, %rdi
callq 0xf497
orl %eax, %r14d
movq %rbx, %rdi
movl %r14d, %esi
callq 0xf6d7
movq %rbx, %rdi
callq 0xf497
movl %eax, %r14d
shll $0x10, %r14d
movq %rbx, %rdi
callq 0xf497
orl %eax, %r14d
movq %rbx, %rdi
movl %r14d, %esi
callq 0xf6d7
movq %rbx, %rdi
callq 0xf497
movl %eax, %r14d
shll $0x10, %r14d
movq %rbx, %rdi
callq 0xf497
orl %eax, %r14d
movq %rbx, %rdi
movl %r14d, %esi
callq 0xf6d7
movq %rbx, %rdi
callq 0xf497
cmpl $0x2, %eax
jb 0xa4fd
leaq 0xdca3(%rip), %rax      # 0x18170
jmp 0xa4df
leaq 0xdc87(%rip), %rax      # 0x1815d
jmp 0xa4df
leaq 0xdc68(%rip), %rax      # 0x18147
movq %rax, 0x11d42(%rip)     # 0x1c228
xorl %edi, %edi
movq %rdi, %rax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl %eax, %r14d
movq 0x28(%rsp), %rdx
shll $0x10, %edx
movq 0x38(%rsp), %rax
movq %rdx, 0x28(%rsp)
addl %eax, %edx
movq 0x20(%rsp), %rsi
shll $0x10, %esi
movq 0x50(%rsp), %rax
movq %rsi, 0x20(%rsp)
addl %eax, %esi
movl $0x4, %edi
movl %esi, 0x10(%rsp)
movl %edx, 0x14(%rsp)
xorl %ecx, %ecx
callq 0xf725
testl %eax, %eax
je 0xa580
movl %ebp, 0x18(%rsp)
movl 0xd0(%rsp), %ebp
cmpl $0x10, %ebp
jne 0xa58c
cmpl $0x10, 0x60(%rsp)
jne 0xa58c
testl %r14d, %r14d
jne 0xa58c
movl $0x8, %edi
movl 0x10(%rsp), %esi
movl 0x14(%rsp), %edx
xorl %ecx, %ecx
callq 0xf848
movq %rax, %rcx
movq 0x70(%rsp), %rax
movl $0x10, (%rax)
jmp 0xa5a3
leaq 0xd568(%rip), %rax      # 0x17aef
jmp 0xa4df
movl 0x14(%rsp), %eax
imull 0x10(%rsp), %eax
shll $0x2, %eax
movslq %eax, %rdi
callq 0x2210
movq %rax, %rcx
movq %rcx, 0x30(%rsp)
testq %rcx, %rcx
je 0xa886
movq %r13, 0x80(%rsp)
movq %r12, 0x88(%rsp)
movq %r15, 0x90(%rsp)
movl 0x10(%rsp), %ecx
movl 0x14(%rsp), %eax
imull %eax, %ecx
movl %ecx, 0xc(%rsp)
testl %r14d, %r14d
je 0xa8a8
movl 0x1c(%rsp), %ebp
movl %ebp, %esi
imull %eax, %esi
addl %esi, %esi
movq %rbx, %rdi
callq 0xf6d7
leaq 0x38(%rbx), %r14
leaq 0x39(%rbx), %rax
movq %rax, 0x48(%rsp)
movl %ebp, %eax
movq %rax, 0x78(%rsp)
movq 0x50(%rsp), %rax
movq 0x20(%rsp), %rcx
addl %ecx, %eax
movq 0x38(%rsp), %rcx
movq 0x28(%rsp), %rdx
addl %edx, %ecx
imull %eax, %ecx
movq %rcx, 0x60(%rsp)
xorl %eax, %eax
movq 0x30(%rsp), %rcx
movq %rcx, 0x68(%rsp)
movl 0x18(%rsp), %ebp
movq %rax, 0x40(%rsp)
cmpq 0x78(%rsp), %rax
jae 0xa845
cmpl $0x0, 0xc(%rsp)
jle 0xa86a
movq 0x30(%rsp), %rax
movq 0x40(%rsp), %rcx
leaq (%rax,%rcx), %r12
movl $0x0, 0x58(%rsp)
movl 0xc(%rsp), %r13d
movq 0xb8(%rbx), %rax
cmpq 0xc0(%rbx), %rax
jb 0xa6d3
cmpl $0x0, 0x30(%rbx)
je 0xa6aa
movq 0x28(%rbx), %rdi
movl 0x34(%rbx), %edx
movq %r14, %rsi
callq *0x10(%rbx)
testl %eax, %eax
je 0xa6ae
movq %r14, 0xb8(%rbx)
cltq
addq %r14, %rax
movq %rax, 0xc0(%rbx)
jmp 0xa6cc
xorl %eax, %eax
jmp 0xa6e0
movl $0x0, 0x30(%rbx)
movq %r14, 0xb8(%rbx)
movq 0x48(%rsp), %rax
movq %rax, 0xc0(%rbx)
movb $0x0, 0x38(%rbx)
movq 0xb8(%rbx), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0xb8(%rbx)
movb (%rax), %al
cmpb $-0x80, %al
je 0xa833
movzbl %al, %r15d
testb %al, %al
js 0xa78f
cmpl %r15d, %r13d
jbe 0xa892
incl %r15d
movl %r15d, %ebp
movq 0x48(%rsp), %r13
movq 0xb8(%rbx), %rax
cmpq 0xc0(%rbx), %rax
jb 0xa768
cmpl $0x0, 0x30(%rbx)
je 0xa744
movq 0x28(%rbx), %rdi
movl 0x34(%rbx), %edx
movq %r14, %rsi
callq *0x10(%rbx)
testl %eax, %eax
je 0xa748
movq %r14, 0xb8(%rbx)
cltq
addq %r14, %rax
movq %rax, 0xc0(%rbx)
jmp 0xa761
xorl %eax, %eax
jmp 0xa775
movl $0x0, 0x30(%rbx)
movq %r14, 0xb8(%rbx)
movq %r13, 0xc0(%rbx)
movb $0x0, 0x38(%rbx)
movq 0xb8(%rbx), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0xb8(%rbx)
movb (%rax), %al
movb %al, (%r12)
addq $0x4, %r12
decl %ebp
jne 0xa708
addl %r15d, 0x58(%rsp)
movl 0x18(%rsp), %ebp
jmp 0xa833
movl $0x101, %ebp            # imm = 0x101
subl %r15d, %ebp
cmpl %r13d, %ebp
ja 0xa82a
movq 0xb8(%rbx), %rax
cmpq 0xc0(%rbx), %rax
jb 0xa805
cmpl $0x0, 0x30(%rbx)
je 0xa7dc
movq 0x28(%rbx), %rdi
movl 0x34(%rbx), %edx
movq %r14, %rsi
callq *0x10(%rbx)
testl %eax, %eax
je 0xa7e0
movq %r14, 0xb8(%rbx)
cltq
addq %r14, %rax
movq %rax, 0xc0(%rbx)
jmp 0xa7fe
xorl %eax, %eax
jmp 0xa812
movl $0x0, 0x30(%rbx)
movq %r14, 0xb8(%rbx)
movq 0x48(%rsp), %rax
movq %rax, 0xc0(%rbx)
movb $0x0, 0x38(%rbx)
movq 0xb8(%rbx), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0xb8(%rbx)
movb (%rax), %al
addl $0xfffffeff, %r15d      # imm = 0xFFFFFEFF
movb %al, (%r12)
addq $0x4, %r12
incl %r15d
jne 0xa819
addl %ebp, 0x58(%rsp)
cmpl %r13d, %ebp
movl 0x18(%rsp), %ebp
ja 0xa892
movl 0xc(%rsp), %r13d
subl 0x58(%rsp), %r13d
jg 0xa66e
jmp 0xa86a
cmpl $0x0, 0xc(%rsp)
jle 0xa86a
cmpq $0x3, 0x40(%rsp)
sete %al
negb %al
xorl %ecx, %ecx
movq 0x68(%rsp), %rdx
movb %al, (%rdx,%rcx,4)
incq %rcx
cmpl %ecx, 0x60(%rsp)
jne 0xa859
movq 0x40(%rsp), %rax
incq %rax
incq 0x68(%rsp)
cmpq $0x4, %rax
jne 0xa638
jmp 0xaa77
leaq 0xd26c(%rip), %rax      # 0x17af9
jmp 0xa4df
movq 0x30(%rsp), %rdi
callq 0x21e0
leaq 0xdb26(%rip), %rax      # 0x183c9
jmp 0xa4df
xorl $0x10, %ebp
movl 0x60(%rsp), %eax
xorl $0x10, %eax
orl %ebp, %eax
sete 0x40(%rsp)
leaq 0x38(%rbx), %rax
movq %rax, 0x48(%rsp)
leaq 0x39(%rbx), %rax
movq %rax, 0x78(%rsp)
movl 0x1c(%rsp), %eax
movq %rax, 0x58(%rsp)
movq 0x50(%rsp), %rax
movq 0x20(%rsp), %rcx
addl %ecx, %eax
movq 0x38(%rsp), %rcx
movq 0x28(%rsp), %rdx
leal (%rcx,%rdx), %r15d
imull %eax, %r15d
xorl %ecx, %ecx
movq 0x30(%rsp), %r12
movq %r12, %r13
cmpq 0x58(%rsp), %rcx
movq %rcx, 0x68(%rsp)
jae 0xa93b
movq 0x70(%rsp), %rax
cmpl $0x10, (%rax)
jne 0xa96f
cmpl $0x0, 0xc(%rsp)
jle 0xaa5a
xorl %r14d, %r14d
movq %rbx, %rdi
callq 0xf497
movw %ax, (%r13,%r14,8)
incq %r14
cmpl %r14d, %r15d
jne 0xa920
jmp 0xaa5a
cmpb $0x0, 0x40(%rsp)
je 0xa99e
xorl %eax, %eax
cmpq $0x3, %rcx
sete %cl
cmpl $0x0, 0xc(%rsp)
jle 0xaa5a
movb %cl, %al
negl %eax
xorl %ecx, %ecx
movw %ax, (%r13,%rcx,8)
incq %rcx
cmpl %ecx, %r15d
jne 0xa95c
jmp 0xaa5a
cmpl $0x10, 0x60(%rsp)
jne 0xa9c5
cmpl $0x0, 0xc(%rsp)
jle 0xaa5a
xorl %ebp, %ebp
movq %rbx, %rdi
callq 0xf497
movq %r12, %rcx
movb %ah, (%rcx,%rbp,4)
incq %rbp
cmpl %ebp, %r15d
jne 0xa983
jmp 0xaa5a
cmpq $0x3, %rcx
sete %al
cmpl $0x0, 0xc(%rsp)
jle 0xaa5a
negb %al
xorl %ecx, %ecx
movb %al, (%r12,%rcx,4)
incq %rcx
cmpl %ecx, %r15d
jne 0xa9b4
jmp 0xaa5a
cmpl $0x0, 0xc(%rsp)
jle 0xaa5a
xorl %r14d, %r14d
movq 0xb8(%rbx), %rax
cmpq 0xc0(%rbx), %rax
jb 0xaa3d
cmpl $0x0, 0x30(%rbx)
je 0xaa14
movq 0x28(%rbx), %rdi
movl 0x34(%rbx), %edx
movq 0x48(%rsp), %rbp
movq %rbp, %rsi
callq *0x10(%rbx)
testl %eax, %eax
je 0xaa18
movq %rbp, 0xb8(%rbx)
cltq
addq %rbp, %rax
movq %rax, 0xc0(%rbx)
jmp 0xaa36
xorl %eax, %eax
jmp 0xaa4a
movl $0x0, 0x30(%rbx)
movq %rbp, 0xb8(%rbx)
movq 0x78(%rsp), %rax
movq %rax, 0xc0(%rbx)
movb $0x0, 0x38(%rbx)
movq 0xb8(%rbx), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0xb8(%rbx)
movb (%rax), %al
movb %al, (%r12,%r14,4)
incq %r14
cmpl %r14d, %r15d
jne 0xa9d3
movq 0x68(%rsp), %rcx
incq %rcx
incq %r12
addq $0x2, %r13
cmpq $0x4, %rcx
movl 0x18(%rsp), %ebp
jne 0xa8fc
cmpl $0x4, 0x1c(%rsp)
movq 0x90(%rsp), %rbx
movq 0x88(%rsp), %r14
movq 0x80(%rsp), %r15
movq 0x30(%rsp), %rdi
jb 0xac37
movq 0x70(%rsp), %rax
cmpl $0x10, (%rax)
jne 0xab76
cmpl $0x0, 0xc(%rsp)
jle 0xac37
movq 0x50(%rsp), %rcx
addl 0x20(%rsp), %ecx
movq 0x38(%rsp), %rdx
addl 0x28(%rsp), %edx
imull %ecx, %edx
xorl %eax, %eax
movss 0xc535(%rip), %xmm0     # 0x1700c
movss 0xc529(%rip), %xmm1     # 0x17008
movzwl 0x6(%rdi,%rax,8), %ecx
testl %ecx, %ecx
je 0xab65
cmpl $0xffff, %ecx           # imm = 0xFFFF
je 0xab65
movzwl %cx, %ecx
xorps %xmm2, %xmm2
cvtsi2ss %ecx, %xmm2
divss %xmm0, %xmm2
movaps %xmm1, %xmm3
divss %xmm2, %xmm3
movaps %xmm1, %xmm2
subss %xmm3, %xmm2
mulss %xmm0, %xmm2
movzwl (%rdi,%rax,8), %ecx
xorps %xmm4, %xmm4
cvtsi2ss %ecx, %xmm4
mulss %xmm3, %xmm4
addss %xmm2, %xmm4
cvttss2si %xmm4, %ecx
movw %cx, (%rdi,%rax,8)
movzwl 0x2(%rdi,%rax,8), %ecx
xorps %xmm4, %xmm4
cvtsi2ss %ecx, %xmm4
mulss %xmm3, %xmm4
addss %xmm2, %xmm4
cvttss2si %xmm4, %ecx
movw %cx, 0x2(%rdi,%rax,8)
movzwl 0x4(%rdi,%rax,8), %ecx
xorps %xmm4, %xmm4
cvtsi2ss %ecx, %xmm4
mulss %xmm3, %xmm4
addss %xmm2, %xmm4
cvttss2si %xmm4, %ecx
movw %cx, 0x4(%rdi,%rax,8)
incq %rax
cmpq %rax, %rdx
jne 0xaadf
jmp 0xac37
cmpl $0x0, 0xc(%rsp)
jle 0xac37
movq 0x50(%rsp), %rcx
addl 0x20(%rsp), %ecx
movq 0x38(%rsp), %rdx
addl 0x28(%rsp), %edx
imull %ecx, %edx
xorl %eax, %eax
movss 0xc464(%rip), %xmm0     # 0x17004
movss 0xc460(%rip), %xmm1     # 0x17008
movzbl 0x3(%rdi,%rax,4), %ecx
testl %ecx, %ecx
je 0xac2b
cmpl $0xff, %ecx
je 0xac2b
movzbl %cl, %ecx
xorps %xmm2, %xmm2
cvtsi2ss %ecx, %xmm2
divss %xmm0, %xmm2
movaps %xmm1, %xmm3
divss %xmm2, %xmm3
movaps %xmm1, %xmm2
subss %xmm3, %xmm2
mulss %xmm0, %xmm2
movzbl (%rdi,%rax,4), %ecx
xorps %xmm4, %xmm4
cvtsi2ss %ecx, %xmm4
mulss %xmm3, %xmm4
addss %xmm2, %xmm4
cvttss2si %xmm4, %ecx
movb %cl, (%rdi,%rax,4)
movzbl 0x1(%rdi,%rax,4), %ecx
xorps %xmm4, %xmm4
cvtsi2ss %ecx, %xmm4
mulss %xmm3, %xmm4
addss %xmm2, %xmm4
cvttss2si %xmm4, %ecx
movb %cl, 0x1(%rdi,%rax,4)
movzbl 0x2(%rdi,%rax,4), %ecx
xorps %xmm4, %xmm4
cvtsi2ss %ecx, %xmm4
mulss %xmm3, %xmm4
addss %xmm2, %xmm4
cvttss2si %xmm4, %ecx
movb %cl, 0x2(%rdi,%rax,4)
incq %rax
cmpq %rax, %rdx
jne 0xaba8
testl $0xfffffffb, %ebp       # imm = 0xFFFFFFFB
je 0xac63
movq 0x70(%rsp), %rax
cmpl $0x10, (%rax)
movl 0x14(%rsp), %r12d
movl $0x4, %esi
movl %ebp, %edx
jne 0xac6a
movl 0x10(%rsp), %ecx
movl %r12d, %r8d
callq 0x11a3f
jmp 0xac76
movl 0x14(%rsp), %r12d
jmp 0xac82
movl 0x10(%rsp), %ecx
movl %r12d, %r8d
callq 0x115e7
movq %rax, %rdi
testq %rax, %rax
je 0xa4e6
testq %r15, %r15
je 0xac8e
movl $0x4, (%r15)
movl %r12d, (%r14)
movl 0x10(%rsp), %eax
movl %eax, (%rbx)
jmp 0xa4e8