// File: /workspace/github_c_makefile_star2_O3/yui0[P]img2vec/./stb_image_write.h
// Function: stbi_write_jpg_core
static int stbi_write_jpg_core(stbi__write_context *s, int width, int height, int comp, const void* data, int quality) {
   // Constants that don't pollute global namespace
   static const unsigned char std_dc_luminance_nrcodes[] = {0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0};
   static const unsigned char std_dc_luminance_values[] = {0,1,2,3,4,5,6,7,8,9,10,11};
   static const unsigned char std_ac_luminance_nrcodes[] = {0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,0x7d};
   static const unsigned char std_ac_luminance_values[] = {
      0x01,0x02,0x03,0x00,0x04,0x11,0x05,0x12,0x21,0x31,0x41,0x06,0x13,0x51,0x61,0x07,0x22,0x71,0x14,0x32,0x81,0x91,0xa1,0x08,
      0x23,0x42,0xb1,0xc1,0x15,0x52,0xd1,0xf0,0x24,0x33,0x62,0x72,0x82,0x09,0x0a,0x16,0x17,0x18,0x19,0x1a,0x25,0x26,0x27,0x28,
      0x29,0x2a,0x34,0x35,0x36,0x37,0x38,0x39,0x3a,0x43,0x44,0x45,0x46,0x47,0x48,0x49,0x4a,0x53,0x54,0x55,0x56,0x57,0x58,0x59,
      0x5a,0x63,0x64,0x65,0x66,0x67,0x68,0x69,0x6a,0x73,0x74,0x75,0x76,0x77,0x78,0x79,0x7a,0x83,0x84,0x85,0x86,0x87,0x88,0x89,
      0x8a,0x92,0x93,0x94,0x95,0x96,0x97,0x98,0x99,0x9a,0xa2,0xa3,0xa4,0xa5,0xa6,0xa7,0xa8,0xa9,0xaa,0xb2,0xb3,0xb4,0xb5,0xb6,
      0xb7,0xb8,0xb9,0xba,0xc2,0xc3,0xc4,0xc5,0xc6,0xc7,0xc8,0xc9,0xca,0xd2,0xd3,0xd4,0xd5,0xd6,0xd7,0xd8,0xd9,0xda,0xe1,0xe2,
      0xe3,0xe4,0xe5,0xe6,0xe7,0xe8,0xe9,0xea,0xf1,0xf2,0xf3,0xf4,0xf5,0xf6,0xf7,0xf8,0xf9,0xfa
   };
   static const unsigned char std_dc_chrominance_nrcodes[] = {0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0};
   static const unsigned char std_dc_chrominance_values[] = {0,1,2,3,4,5,6,7,8,9,10,11};
   static const unsigned char std_ac_chrominance_nrcodes[] = {0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,0x77};
   static const unsigned char std_ac_chrominance_values[] = {
      0x00,0x01,0x02,0x03,0x11,0x04,0x05,0x21,0x31,0x06,0x12,0x41,0x51,0x07,0x61,0x71,0x13,0x22,0x32,0x81,0x08,0x14,0x42,0x91,
      0xa1,0xb1,0xc1,0x09,0x23,0x33,0x52,0xf0,0x15,0x62,0x72,0xd1,0x0a,0x16,0x24,0x34,0xe1,0x25,0xf1,0x17,0x18,0x19,0x1a,0x26,
      0x27,0x28,0x29,0x2a,0x35,0x36,0x37,0x38,0x39,0x3a,0x43,0x44,0x45,0x46,0x47,0x48,0x49,0x4a,0x53,0x54,0x55,0x56,0x57,0x58,
      0x59,0x5a,0x63,0x64,0x65,0x66,0x67,0x68,0x69,0x6a,0x73,0x74,0x75,0x76,0x77,0x78,0x79,0x7a,0x82,0x83,0x84,0x85,0x86,0x87,
      0x88,0x89,0x8a,0x92,0x93,0x94,0x95,0x96,0x97,0x98,0x99,0x9a,0xa2,0xa3,0xa4,0xa5,0xa6,0xa7,0xa8,0xa9,0xaa,0xb2,0xb3,0xb4,
      0xb5,0xb6,0xb7,0xb8,0xb9,0xba,0xc2,0xc3,0xc4,0xc5,0xc6,0xc7,0xc8,0xc9,0xca,0xd2,0xd3,0xd4,0xd5,0xd6,0xd7,0xd8,0xd9,0xda,
      0xe2,0xe3,0xe4,0xe5,0xe6,0xe7,0xe8,0xe9,0xea,0xf2,0xf3,0xf4,0xf5,0xf6,0xf7,0xf8,0xf9,0xfa
   };
   // Huffman tables
   static const unsigned short YDC_HT[256][2] = { {0,2},{2,3},{3,3},{4,3},{5,3},{6,3},{14,4},{30,5},{62,6},{126,7},{254,8},{510,9}};
   static const unsigned short UVDC_HT[256][2] = { {0,2},{1,2},{2,2},{6,3},{14,4},{30,5},{62,6},{126,7},{254,8},{510,9},{1022,10},{2046,11}};
   static const unsigned short YAC_HT[256][2] = {
      {10,4},{0,2},{1,2},{4,3},{11,4},{26,5},{120,7},{248,8},{1014,10},{65410,16},{65411,16},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},
      {12,4},{27,5},{121,7},{502,9},{2038,11},{65412,16},{65413,16},{65414,16},{65415,16},{65416,16},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},
      {28,5},{249,8},{1015,10},{4084,12},{65417,16},{65418,16},{65419,16},{65420,16},{65421,16},{65422,16},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},
      {58,6},{503,9},{4085,12},{65423,16},{65424,16},{65425,16},{65426,16},{65427,16},{65428,16},{65429,16},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},
      {59,6},{1016,10},{65430,16},{65431,16},{65432,16},{65433,16},{65434,16},{65435,16},{65436,16},{65437,16},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},
      {122,7},{2039,11},{65438,16},{65439,16},{65440,16},{65441,16},{65442,16},{65443,16},{65444,16},{65445,16},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},
      {123,7},{4086,12},{65446,16},{65447,16},{65448,16},{65449,16},{65450,16},{65451,16},{65452,16},{65453,16},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},
      {250,8},{4087,12},{65454,16},{65455,16},{65456,16},{65457,16},{65458,16},{65459,16},{65460,16},{65461,16},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},
      {504,9},{32704,15},{65462,16},{65463,16},{65464,16},{65465,16},{65466,16},{65467,16},{65468,16},{65469,16},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},
      {505,9},{65470,16},{65471,16},{65472,16},{65473,16},{65474,16},{65475,16},{65476,16},{65477,16},{65478,16},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},
      {506,9},{65479,16},{65480,16},{65481,16},{65482,16},{65483,16},{65484,16},{65485,16},{65486,16},{65487,16},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},
      {1017,10},{65488,16},{65489,16},{65490,16},{65491,16},{65492,16},{65493,16},{65494,16},{65495,16},{65496,16},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},
      {1018,10},{65497,16},{65498,16},{65499,16},{65500,16},{65501,16},{65502,16},{65503,16},{65504,16},{65505,16},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},
      {2040,11},{65506,16},{65507,16},{65508,16},{65509,16},{65510,16},{65511,16},{65512,16},{65513,16},{65514,16},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},
      {65515,16},{65516,16},{65517,16},{65518,16},{65519,16},{65520,16},{65521,16},{65522,16},{65523,16},{65524,16},{0,0},{0,0},{0,0},{0,0},{0,0},
      {2041,11},{65525,16},{65526,16},{65527,16},{65528,16},{65529,16},{65530,16},{65531,16},{65532,16},{65533,16},{65534,16},{0,0},{0,0},{0,0},{0,0},{0,0}
   };
   static const unsigned short UVAC_HT[256][2] = {
      {0,2},{1,2},{4,3},{10,4},{24,5},{25,5},{56,6},{120,7},{500,9},{1014,10},{4084,12},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},
      {11,4},{57,6},{246,8},{501,9},{2038,11},{4085,12},{65416,16},{65417,16},{65418,16},{65419,16},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},
      {26,5},{247,8},{1015,10},{4086,12},{32706,15},{65420,16},{65421,16},{65422,16},{65423,16},{65424,16},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},
      {27,5},{248,8},{1016,10},{4087,12},{65425,16},{65426,16},{65427,16},{65428,16},{65429,16},{65430,16},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},
      {58,6},{502,9},{65431,16},{65432,16},{65433,16},{65434,16},{65435,16},{65436,16},{65437,16},{65438,16},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},
      {59,6},{1017,10},{65439,16},{65440,16},{65441,16},{65442,16},{65443,16},{65444,16},{65445,16},{65446,16},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},
      {121,7},{2039,11},{65447,16},{65448,16},{65449,16},{65450,16},{65451,16},{65452,16},{65453,16},{65454,16},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},
      {122,7},{2040,11},{65455,16},{65456,16},{65457,16},{65458,16},{65459,16},{65460,16},{65461,16},{65462,16},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},
      {249,8},{65463,16},{65464,16},{65465,16},{65466,16},{65467,16},{65468,16},{65469,16},{65470,16},{65471,16},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},
      {503,9},{65472,16},{65473,16},{65474,16},{65475,16},{65476,16},{65477,16},{65478,16},{65479,16},{65480,16},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},
      {504,9},{65481,16},{65482,16},{65483,16},{65484,16},{65485,16},{65486,16},{65487,16},{65488,16},{65489,16},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},
      {505,9},{65490,16},{65491,16},{65492,16},{65493,16},{65494,16},{65495,16},{65496,16},{65497,16},{65498,16},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},
      {506,9},{65499,16},{65500,16},{65501,16},{65502,16},{65503,16},{65504,16},{65505,16},{65506,16},{65507,16},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},
      {2041,11},{65508,16},{65509,16},{65510,16},{65511,16},{65512,16},{65513,16},{65514,16},{65515,16},{65516,16},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},
      {16352,14},{65517,16},{65518,16},{65519,16},{65520,16},{65521,16},{65522,16},{65523,16},{65524,16},{65525,16},{0,0},{0,0},{0,0},{0,0},{0,0},
      {1018,10},{32707,15},{65526,16},{65527,16},{65528,16},{65529,16},{65530,16},{65531,16},{65532,16},{65533,16},{65534,16},{0,0},{0,0},{0,0},{0,0},{0,0}
   };
   static const int YQT[] = {16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,
                             37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99};
   static const int UVQT[] = {17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,
                              99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99};
   static const float aasf[] = { 1.0f * 2.828427125f, 1.387039845f * 2.828427125f, 1.306562965f * 2.828427125f, 1.175875602f * 2.828427125f,
                                 1.0f * 2.828427125f, 0.785694958f * 2.828427125f, 0.541196100f * 2.828427125f, 0.275899379f * 2.828427125f };

   int row, col, i, k, subsample;
   float fdtbl_Y[64], fdtbl_UV[64];
   unsigned char YTable[64], UVTable[64];

   if(!data || !width || !height || comp > 4 || comp < 1) {
      return 0;
   }

   quality = quality ? quality : 90;
   subsample = quality <= 90 ? 1 : 0;
   quality = quality < 1 ? 1 : quality > 100 ? 100 : quality;
   quality = quality < 50 ? 5000 / quality : 200 - quality * 2;

   for(i = 0; i < 64; ++i) {
      int uvti, yti = (YQT[i]*quality+50)/100;
      YTable[stbiw__jpg_ZigZag[i]] = (unsigned char) (yti < 1 ? 1 : yti > 255 ? 255 : yti);
      uvti = (UVQT[i]*quality+50)/100;
      UVTable[stbiw__jpg_ZigZag[i]] = (unsigned char) (uvti < 1 ? 1 : uvti > 255 ? 255 : uvti);
   }

   for(row = 0, k = 0; row < 8; ++row) {
      for(col = 0; col < 8; ++col, ++k) {
         fdtbl_Y[k]  = 1 / (YTable [stbiw__jpg_ZigZag[k]] * aasf[row] * aasf[col]);
         fdtbl_UV[k] = 1 / (UVTable[stbiw__jpg_ZigZag[k]] * aasf[row] * aasf[col]);
      }
   }

   // Write Headers
   {
      static const unsigned char head0[] = { 0xFF,0xD8,0xFF,0xE0,0,0x10,'J','F','I','F',0,1,1,0,0,1,0,1,0,0,0xFF,0xDB,0,0x84,0 };
      static const unsigned char head2[] = { 0xFF,0xDA,0,0xC,3,1,0,2,0x11,3,0x11,0,0x3F,0 };
      const unsigned char head1[] = { 0xFF,0xC0,0,0x11,8,(unsigned char)(height>>8),STBIW_UCHAR(height),(unsigned char)(width>>8),STBIW_UCHAR(width),
                                      3,1,(unsigned char)(subsample?0x22:0x11),0,2,0x11,1,3,0x11,1,0xFF,0xC4,0x01,0xA2,0 };
      s->func(s->context, (void*)head0, sizeof(head0));
      s->func(s->context, (void*)YTable, sizeof(YTable));
      stbiw__putc(s, 1);
      s->func(s->context, UVTable, sizeof(UVTable));
      s->func(s->context, (void*)head1, sizeof(head1));
      s->func(s->context, (void*)(std_dc_luminance_nrcodes+1), sizeof(std_dc_luminance_nrcodes)-1);
      s->func(s->context, (void*)std_dc_luminance_values, sizeof(std_dc_luminance_values));
      stbiw__putc(s, 0x10); // HTYACinfo
      s->func(s->context, (void*)(std_ac_luminance_nrcodes+1), sizeof(std_ac_luminance_nrcodes)-1);
      s->func(s->context, (void*)std_ac_luminance_values, sizeof(std_ac_luminance_values));
      stbiw__putc(s, 1); // HTUDCinfo
      s->func(s->context, (void*)(std_dc_chrominance_nrcodes+1), sizeof(std_dc_chrominance_nrcodes)-1);
      s->func(s->context, (void*)std_dc_chrominance_values, sizeof(std_dc_chrominance_values));
      stbiw__putc(s, 0x11); // HTUACinfo
      s->func(s->context, (void*)(std_ac_chrominance_nrcodes+1), sizeof(std_ac_chrominance_nrcodes)-1);
      s->func(s->context, (void*)std_ac_chrominance_values, sizeof(std_ac_chrominance_values));
      s->func(s->context, (void*)head2, sizeof(head2));
   }

   // Encode 8x8 macroblocks
   {
      static const unsigned short fillBits[] = {0x7F, 7};
      int DCY=0, DCU=0, DCV=0;
      int bitBuf=0, bitCnt=0;
      // comp == 2 is grey+alpha (alpha is ignored)
      int ofsG = comp > 2 ? 1 : 0, ofsB = comp > 2 ? 2 : 0;
      const unsigned char *dataR = (const unsigned char *)data;
      const unsigned char *dataG = dataR + ofsG;
      const unsigned char *dataB = dataR + ofsB;
      int x, y, pos;
      if(subsample) {
         for(y = 0; y < height; y += 16) {
            for(x = 0; x < width; x += 16) {
               float Y[256], U[256], V[256];
               for(row = y, pos = 0; row < y+16; ++row) {
                  // row >= height => use last input row
                  int clamped_row = (row < height) ? row : height - 1;
                  int base_p = (stbi__flip_vertically_on_write ? (height-1-clamped_row) : clamped_row)*width*comp;
                  for(col = x; col < x+16; ++col, ++pos) {
                     // if col >= width => use pixel from last input column
                     int p = base_p + ((col < width) ? col : (width-1))*comp;
                     float r = dataR[p], g = dataG[p], b = dataB[p];
                     Y[pos]= +0.29900f*r + 0.58700f*g + 0.11400f*b - 128;
                     U[pos]= -0.16874f*r - 0.33126f*g + 0.50000f*b;
                     V[pos]= +0.50000f*r - 0.41869f*g - 0.08131f*b;
                  }
               }
               DCY = stbiw__jpg_processDU(s, &bitBuf, &bitCnt, Y+0,   16, fdtbl_Y, DCY, YDC_HT, YAC_HT);
               DCY = stbiw__jpg_processDU(s, &bitBuf, &bitCnt, Y+8,   16, fdtbl_Y, DCY, YDC_HT, YAC_HT);
               DCY = stbiw__jpg_processDU(s, &bitBuf, &bitCnt, Y+128, 16, fdtbl_Y, DCY, YDC_HT, YAC_HT);
               DCY = stbiw__jpg_processDU(s, &bitBuf, &bitCnt, Y+136, 16, fdtbl_Y, DCY, YDC_HT, YAC_HT);

               // subsample U,V
               {
                  float subU[64], subV[64];
                  int yy, xx;
                  for(yy = 0, pos = 0; yy < 8; ++yy) {
                     for(xx = 0; xx < 8; ++xx, ++pos) {
                        int j = yy*32+xx*2;
                        subU[pos] = (U[j+0] + U[j+1] + U[j+16] + U[j+17]) * 0.25f;
                        subV[pos] = (V[j+0] + V[j+1] + V[j+16] + V[j+17]) * 0.25f;
                     }
                  }
                  DCU = stbiw__jpg_processDU(s, &bitBuf, &bitCnt, subU, 8, fdtbl_UV, DCU, UVDC_HT, UVAC_HT);
                  DCV = stbiw__jpg_processDU(s, &bitBuf, &bitCnt, subV, 8, fdtbl_UV, DCV, UVDC_HT, UVAC_HT);
               }
            }
         }
      } else {
         for(y = 0; y < height; y += 8) {
            for(x = 0; x < width; x += 8) {
               float Y[64], U[64], V[64];
               for(row = y, pos = 0; row < y+8; ++row) {
                  // row >= height => use last input row
                  int clamped_row = (row < height) ? row : height - 1;
                  int base_p = (stbi__flip_vertically_on_write ? (height-1-clamped_row) : clamped_row)*width*comp;
                  for(col = x; col < x+8; ++col, ++pos) {
                     // if col >= width => use pixel from last input column
                     int p = base_p + ((col < width) ? col : (width-1))*comp;
                     float r = dataR[p], g = dataG[p], b = dataB[p];
                     Y[pos]= +0.29900f*r + 0.58700f*g + 0.11400f*b - 128;
                     U[pos]= -0.16874f*r - 0.33126f*g + 0.50000f*b;
                     V[pos]= +0.50000f*r - 0.41869f*g - 0.08131f*b;
                  }
               }

               DCY = stbiw__jpg_processDU(s, &bitBuf, &bitCnt, Y, 8, fdtbl_Y,  DCY, YDC_HT, YAC_HT);
               DCU = stbiw__jpg_processDU(s, &bitBuf, &bitCnt, U, 8, fdtbl_UV, DCU, UVDC_HT, UVAC_HT);
               DCV = stbiw__jpg_processDU(s, &bitBuf, &bitCnt, V, 8, fdtbl_UV, DCV, UVDC_HT, UVAC_HT);
            }
         }
      }

      // Do the bit alignment of the EOI marker
      stbiw__jpg_writeBits(s, &bitBuf, &bitCnt, fillBits);
   }

   // EOI
   stbiw__putc(s, 0xFF);
   stbiw__putc(s, 0xD9);

   return 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10d8, %rsp           # imm = 0x10D8
movl %ecx, %r15d
movq %rdi, 0x10(%rsp)
leal -0x5(%r15), %eax
xorl %ebp, %ebp
cmpl $-0x4, %eax
jb 0x5a14
testl %edx, %edx
je 0x5a14
movl %esi, %ebx
testl %esi, %esi
je 0x5a14
testq %r8, %r8
je 0x5a14
movq %rdx, 0x18(%rsp)
testl %r9d, %r9d
movl $0x5a, %edx
cmovnel %r9d, %edx
cmpl $0x64, %edx
movl $0x64, %eax
cmovll %edx, %eax
cmpl $0x2, %eax
movl $0x1, %ecx
cmovgel %eax, %ecx
movl %edx, 0x8(%rsp)
cmpl $0x31, %edx
movq %r8, 0x48(%rsp)
jg 0x4dfb
movw $0x1388, %ax            # imm = 0x1388
xorl %edx, %edx
divw %cx
movzwl %ax, %eax
jmp 0x4e04
addl %ecx, %ecx
movl $0xc8, %eax
subl %ecx, %eax
leaq 0x1b655(%rip), %rcx     # 0x20460
xorl %edx, %edx
leaq 0x1b44c(%rip), %rsi     # 0x20260
leaq 0x1b545(%rip), %rdi     # 0x20360
movl (%rdx,%rsi), %r8d
imull %eax, %r8d
addl $0x32, %r8d
movslq %r8d, %r8
imulq $0x51eb851f, %r8, %r10  # imm = 0x51EB851F
movq %r10, %r8
shrq $0x3f, %r8
sarq $0x25, %r10
addl %r8d, %r10d
movl $0xff, %r8d
cmpl %r8d, %r10d
jl 0x4e50
movl $0xff, %r10d
cmpl $0x2, %r10d
jge 0x4e5c
movl $0x1, %r10d
movzbl (%rcx), %r9d
movb %r10b, 0x90(%rsp,%r9)
movl (%rdx,%rdi), %r10d
imull %eax, %r10d
addl $0x32, %r10d
movslq %r10d, %r10
imulq $0x51eb851f, %r10, %r10 # imm = 0x51EB851F
movq %r10, %r11
shrq $0x3f, %r11
sarq $0x25, %r10
addl %r11d, %r10d
cmpl %r8d, %r10d
jl 0x4e97
movl $0xff, %r10d
cmpl $0x2, %r10d
jge 0x4ea3
movl $0x1, %r10d
movb %r10b, 0x50(%rsp,%r9)
addq $0x4, %rdx
incq %rcx
cmpq $0x100, %rdx            # imm = 0x100
jne 0x4e1b
xorl %eax, %eax
leaq 0x1db0b(%rip), %rcx     # 0x229d0
pxor %xmm0, %xmm0
movaps 0x19210(%rip), %xmm1    # 0x1e0e0
xorl %edx, %edx
movslq %edx, %r9
leaq 0x8(%r9), %rdx
movq %rdx, 0x38(%rsp)
movss (%rcx,%rax,4), %xmm2
shufps $0x0, %xmm2, %xmm2      # xmm2 = xmm2[0,0,0,0]
leaq 0x1b572(%rip), %rdx     # 0x20460
leaq (%r9,%rdx), %rdi
addq $0x3, %rdi
leaq (%rsp,%r9,4), %r8
addq $0xd0, %r8
leaq (%rsp,%r9,4), %r9
addq $0x1d0, %r9             # imm = 0x1D0
xorl %r10d, %r10d
movzbl -0x3(%rdi), %r14d
movzbl -0x2(%rdi), %r12d
movzbl -0x1(%rdi), %r13d
movzbl (%rdi), %r11d
movzbl 0x90(%rsp,%r14), %ebp
movzbl 0x90(%rsp,%r12), %edx
movzbl 0x90(%rsp,%r13), %esi
shll $0x8, %edx
orl %ebp, %edx
shll $0x10, %esi
orl %edx, %esi
movzbl 0x90(%rsp,%r11), %edx
shll $0x18, %edx
orl %esi, %edx
movd %edx, %xmm3
punpcklbw %xmm0, %xmm3    # xmm3 = xmm3[0],xmm0[0],xmm3[1],xmm0[1],xmm3[2],xmm0[2],xmm3[3],xmm0[3],xmm3[4],xmm0[4],xmm3[5],xmm0[5],xmm3[6],xmm0[6],xmm3[7],xmm0[7]
punpcklwd %xmm0, %xmm3    # xmm3 = xmm3[0],xmm0[0],xmm3[1],xmm0[1],xmm3[2],xmm0[2],xmm3[3],xmm0[3]
cvtdq2ps %xmm3, %xmm3
mulps %xmm2, %xmm3
movaps (%r10,%rcx), %xmm4
mulps %xmm4, %xmm3
movaps %xmm1, %xmm5
divps %xmm3, %xmm5
movups %xmm5, (%r8,%r10)
movzbl 0x50(%rsp,%r14), %edx
movzbl 0x50(%rsp,%r12), %esi
movzbl 0x50(%rsp,%r13), %ebp
shll $0x8, %esi
orl %edx, %esi
shll $0x10, %ebp
orl %esi, %ebp
movzbl 0x50(%rsp,%r11), %edx
shll $0x18, %edx
orl %ebp, %edx
movd %edx, %xmm3
punpcklbw %xmm0, %xmm3    # xmm3 = xmm3[0],xmm0[0],xmm3[1],xmm0[1],xmm3[2],xmm0[2],xmm3[3],xmm0[3],xmm3[4],xmm0[4],xmm3[5],xmm0[5],xmm3[6],xmm0[6],xmm3[7],xmm0[7]
punpcklwd %xmm0, %xmm3    # xmm3 = xmm3[0],xmm0[0],xmm3[1],xmm0[1],xmm3[2],xmm0[2],xmm3[3],xmm0[3]
cvtdq2ps %xmm3, %xmm3
mulps %xmm2, %xmm3
mulps %xmm4, %xmm3
movaps %xmm1, %xmm4
divps %xmm3, %xmm4
movups %xmm4, (%r9,%r10)
addq $0x10, %r10
addq $0x4, %rdi
cmpq $0x20, %r10
jne 0x4f0f
incq %rax
cmpq $0x8, %rax
movq 0x38(%rsp), %rdx
jne 0x4ed2
cmpl $0x5b, 0x8(%rsp)
leaq 0x2d0(%rsp), %r13
movl $0x1100c0ff, (%r13)     # imm = 0x1100C0FF
movb $0x8, 0x4(%r13)
movq 0x18(%rsp), %rax
movb %ah, 0x2d5(%rsp)
movb %al, 0x6(%r13)
movb %bh, 0x2d7(%rsp)
movb %bl, 0x8(%r13)
movw $0x103, 0x9(%r13)       # imm = 0x103
movl $0x22, %eax
movl $0x11, %ecx
cmovll %eax, %ecx
movb %cl, 0xb(%r13)
movabsq $-0xfeeefcfeeefe00, %rax # imm = 0xFF01110301110200
movq %rax, 0xc(%r13)
movl $0xa201c4, 0x14(%r13)   # imm = 0xA201C4
movq 0x10(%rsp), %r14
movq 0x8(%r14), %rdi
leaq 0x1b448(%rip), %rsi     # 0x204a0
movl $0x19, %edx
callq *(%r14)
movq 0x8(%r14), %rdi
leaq 0x90(%rsp), %rsi
movl $0x40, %edx
callq *(%r14)
movq (%r14), %rax
movq 0x8(%r14), %rdi
movb $0x1, %bpl
leaq 0x6d0(%rsp), %r12
movb %bpl, (%r12)
movq %r12, %rsi
movl $0x1, %edx
callq *%rax
movq 0x8(%r14), %rdi
leaq 0x50(%rsp), %rsi
movl $0x40, %edx
callq *(%r14)
movq 0x8(%r14), %rdi
movq %r13, %rsi
movl $0x18, %edx
callq *(%r14)
movq 0x8(%r14), %rdi
leaq 0x19fc2(%rip), %rsi     # 0x1f081
movl $0x10, %edx
callq *(%r14)
movq 0x8(%r14), %rdi
leaq 0x19fbf(%rip), %rsi     # 0x1f091
movl $0xc, %edx
callq *(%r14)
movq (%r14), %rax
movq 0x8(%r14), %rdi
movb $0x10, (%r12)
leaq 0x6d0(%rsp), %r12
movq %r12, %rsi
movl $0x1, %edx
callq *%rax
movq 0x8(%r14), %rdi
leaq 0x19f9e(%rip), %rsi     # 0x1f0a1
movl $0x10, %edx
callq *(%r14)
movq 0x8(%r14), %rdi
leaq 0x19faa(%rip), %rsi     # 0x1f0c0
movl $0xa2, %edx
callq *(%r14)
movq (%r14), %rax
movq 0x8(%r14), %rdi
movb %bpl, (%r12)
leaq 0x6d0(%rsp), %r12
movq %r12, %rsi
movl $0x1, %edx
callq *%rax
movq 0x8(%r14), %rdi
leaq 0x1a02b(%rip), %rsi     # 0x1f171
movl $0x10, %edx
callq *(%r14)
movq 0x8(%r14), %rdi
leaq 0x1a028(%rip), %rsi     # 0x1f181
movl $0xc, %edx
callq *(%r14)
movq (%r14), %rax
movq 0x8(%r14), %rdi
movb $0x11, (%r12)
leaq 0x6d0(%rsp), %rsi
movl $0x1, %edx
callq *%rax
movq 0x8(%r14), %rdi
leaq 0x1a00a(%rip), %rsi     # 0x1f191
movl $0x10, %edx
callq *(%r14)
movq 0x8(%r14), %rdi
leaq 0x1a016(%rip), %rsi     # 0x1f1b0
movl $0xa2, %edx
callq *(%r14)
movq 0x8(%r14), %rdi
leaq 0x1b30c(%rip), %rsi     # 0x204b9
movl $0xe, %edx
callq *(%r14)
xorl %eax, %eax
cmpl $0x3, %r15d
setge %al
movq 0x48(%rsp), %rdx
leaq (%rdx,%rax), %rbp
xorl %ecx, %ecx
movl %ecx, 0x4(%rsp)
movl %ecx, (%rsp)
leaq (%rdx,%rax,2), %r13
cmpl $0x5b, 0x8(%rsp)
jge 0x5697
movq 0x18(%rsp), %rax
testl %eax, %eax
jle 0x59ba
decl %eax
movl %eax, 0x24(%rsp)
leal -0x1(%rbx), %r12d
movq $0x0, 0x28(%rsp)
movl $0x10, 0x8(%rsp)
movss 0x18dfd(%rip), %xmm5    # 0x1e00c
movss 0x18df9(%rip), %xmm6    # 0x1e010
movss 0x18df5(%rip), %xmm7    # 0x1e014
movss 0x18df0(%rip), %xmm8    # 0x1e018
movss 0x18deb(%rip), %xmm9    # 0x1e01c
movss 0x18de6(%rip), %xmm10   # 0x1e020
movss 0x18de1(%rip), %xmm11   # 0x1e024
movss 0x18ddc(%rip), %xmm12   # 0x1e028
movss 0x18dd7(%rip), %xmm13   # 0x1e02c
movq $0x0, 0x30(%rsp)
xorl %eax, %eax
movl $0x0, 0xc(%rsp)
testl %ebx, %ebx
jle 0x5678
xorl %r14d, %r14d
movq %rax, 0x40(%rsp)
movl 0x22f96(%rip), %eax     # 0x28214
movl %eax, 0x38(%rsp)
leaq 0xcd0(%rsp), %rcx
leaq 0x6d0(%rsp), %rdx
leaq 0x2d0(%rsp), %rsi
movl 0xc(%rsp), %edi
cmpl 0x18(%rsp), %edi
movl 0x24(%rsp), %r8d
movl %r8d, %r9d
cmovll %edi, %r9d
subl %r9d, %r8d
cmpl $0x0, 0x38(%rsp)
cmovel %r9d, %r8d
imull %ebx, %r8d
xorl %r9d, %r9d
movq 0x48(%rsp), %rax
leal (%r14,%r9), %r10d
cmpl %ebx, %r10d
cmovgel %r12d, %r10d
addl %r8d, %r10d
imull %r15d, %r10d
movslq %r10d, %r10
movzbl (%rax,%r10), %r11d
xorps %xmm0, %xmm0
cvtsi2ss %r11d, %xmm0
movzbl (%rbp,%r10), %r11d
xorps %xmm2, %xmm2
cvtsi2ss %r11d, %xmm2
movzbl (%r13,%r10), %r10d
xorps %xmm1, %xmm1
cvtsi2ss %r10d, %xmm1
movaps %xmm2, %xmm3
mulss %xmm5, %xmm3
movaps %xmm0, %xmm4
mulss %xmm6, %xmm4
addss %xmm3, %xmm4
movaps %xmm1, %xmm3
mulss %xmm7, %xmm3
addss %xmm4, %xmm3
addss %xmm8, %xmm3
movss %xmm3, (%rsi,%r9,4)
movaps %xmm2, %xmm3
mulss %xmm9, %xmm3
movaps %xmm0, %xmm4
mulss %xmm10, %xmm4
addss %xmm3, %xmm4
movaps %xmm1, %xmm3
mulss %xmm11, %xmm3
addss %xmm4, %xmm3
movss %xmm3, (%rdx,%r9,4)
mulss %xmm12, %xmm2
mulss %xmm11, %xmm0
addss %xmm2, %xmm0
mulss %xmm13, %xmm1
addss %xmm0, %xmm1
movss %xmm1, (%rcx,%r9,4)
incq %r9
cmpl $0x10, %r9d
jne 0x52c6
incl %edi
addq $0x40, %rsi
addq $0x40, %rdx
addq $0x40, %rcx
cmpl 0x8(%rsp), %edi
jne 0x529e
subq $0x8, %rsp
movq 0x18(%rsp), %rdi
leaq 0xc(%rsp), %rsi
leaq 0x8(%rsp), %rdx
leaq 0x2d8(%rsp), %rcx
movl $0x10, %r8d
leaq 0xd8(%rsp), %r9
leaq 0x1a69c(%rip), %rax     # 0x1fa60
pushq %rax
leaq 0x19e94(%rip), %rax     # 0x1f260
pushq %rax
pushq 0x40(%rsp)
callq 0x19fae
addq $0x20, %rsp
subq $0x8, %rsp
movq 0x18(%rsp), %rdi
leaq 0xc(%rsp), %rsi
leaq 0x8(%rsp), %rdx
leaq 0x2f8(%rsp), %rcx
movl $0x10, %r8d
leaq 0xd8(%rsp), %r9
leaq 0x1a656(%rip), %r10     # 0x1fa60
pushq %r10
leaq 0x19e4d(%rip), %r10     # 0x1f260
pushq %r10
pushq %rax
callq 0x19fae
addq $0x20, %rsp
subq $0x8, %rsp
movq 0x18(%rsp), %rdi
leaq 0xc(%rsp), %rsi
leaq 0x8(%rsp), %rdx
leaq 0x4d8(%rsp), %rcx
movl $0x10, %r8d
leaq 0xd8(%rsp), %r9
leaq 0x1a611(%rip), %r10     # 0x1fa60
pushq %r10
leaq 0x19e08(%rip), %r10     # 0x1f260
pushq %r10
pushq %rax
callq 0x19fae
addq $0x20, %rsp
subq $0x8, %rsp
movq 0x18(%rsp), %rdi
leaq 0xc(%rsp), %rsi
leaq 0x8(%rsp), %rdx
leaq 0x4f8(%rsp), %rcx
movl $0x10, %r8d
leaq 0xd8(%rsp), %r9
leaq 0x1a5cc(%rip), %r10     # 0x1fa60
pushq %r10
leaq 0x19dc3(%rip), %r10     # 0x1f260
pushq %r10
pushq %rax
callq 0x19fae
addq $0x20, %rsp
movq %rax, 0x28(%rsp)
leaq 0x710(%rsp), %rax
leaq 0xd10(%rsp), %rcx
xorl %edx, %edx
xorl %esi, %esi
movaps 0x18c27(%rip), %xmm5    # 0x1e0f0
movl $0x80, %r10d
movslq %esi, %r8
leaq 0x8(%r8), %rsi
leaq (%rsp,%r8,4), %rdi
addq $0xbd0, %rdi            # imm = 0xBD0
leaq (%rsp,%r8,4), %r8
addq $0xad0, %r8             # imm = 0xAD0
xorl %r9d, %r9d
movaps -0x40(%rax,%r9,2), %xmm0
movaps -0x30(%rax,%r9,2), %xmm1
movaps (%rax,%r9,2), %xmm2
movaps 0x10(%rax,%r9,2), %xmm3
movaps %xmm0, %xmm4
shufps $0x88, %xmm1, %xmm4     # xmm4 = xmm4[0,2],xmm1[0,2]
shufps $0xdd, %xmm1, %xmm0     # xmm0 = xmm0[1,3],xmm1[1,3]
addps %xmm4, %xmm0
movaps %xmm2, %xmm1
shufps $0x88, %xmm3, %xmm1     # xmm1 = xmm1[0,2],xmm3[0,2]
addps %xmm0, %xmm1
shufps $0xdd, %xmm3, %xmm2     # xmm2 = xmm2[1,3],xmm3[1,3]
addps %xmm1, %xmm2
mulps %xmm5, %xmm2
movups %xmm2, (%rdi,%r9)
movaps -0x40(%rcx,%r9,2), %xmm0
movaps -0x30(%rcx,%r9,2), %xmm1
movaps (%rcx,%r9,2), %xmm2
movaps 0x10(%rcx,%r9,2), %xmm3
movaps %xmm0, %xmm4
shufps $0x88, %xmm1, %xmm4     # xmm4 = xmm4[0,2],xmm1[0,2]
shufps $0xdd, %xmm1, %xmm0     # xmm0 = xmm0[1,3],xmm1[1,3]
addps %xmm4, %xmm0
movaps %xmm2, %xmm1
shufps $0x88, %xmm3, %xmm1     # xmm1 = xmm1[0,2],xmm3[0,2]
addps %xmm0, %xmm1
shufps $0xdd, %xmm3, %xmm2     # xmm2 = xmm2[1,3],xmm3[1,3]
addps %xmm1, %xmm2
mulps %xmm5, %xmm2
movups %xmm2, (%r8,%r9)
addq $0x10, %r9
cmpq $0x20, %r9
jne 0x54ef
incq %rdx
addq %r10, %rcx
addq %r10, %rax
cmpq $0x8, %rdx
jne 0x54cf
subq $0x8, %rsp
movq 0x18(%rsp), %rdi
leaq 0xc(%rsp), %rsi
leaq 0x8(%rsp), %rdx
leaq 0xbd8(%rsp), %rcx
movl $0x8, %r8d
leaq 0x1d8(%rsp), %r9
leaq 0x1a8a4(%rip), %rax     # 0x1fe60
pushq %rax
leaq 0x1a09c(%rip), %rax     # 0x1f660
pushq %rax
pushq 0x48(%rsp)
callq 0x19fae
addq $0x20, %rsp
movq %rax, 0x30(%rsp)
subq $0x8, %rsp
movq 0x18(%rsp), %rdi
leaq 0xc(%rsp), %rsi
leaq 0x8(%rsp), %rdx
leaq 0xad8(%rsp), %rcx
movl $0x8, %r8d
leaq 0x1d8(%rsp), %r9
leaq 0x1a859(%rip), %rax     # 0x1fe60
pushq %rax
leaq 0x1a051(%rip), %rax     # 0x1f660
pushq %rax
pushq 0x58(%rsp)
callq 0x19fae
addq $0x20, %rsp
addq $0x10, %r14
cmpl %ebx, %r14d
movss 0x189e0(%rip), %xmm5    # 0x1e00c
movss 0x189dc(%rip), %xmm6    # 0x1e010
movss 0x189d8(%rip), %xmm7    # 0x1e014
movss 0x189d3(%rip), %xmm8    # 0x1e018
movss 0x189ce(%rip), %xmm9    # 0x1e01c
movss 0x189c9(%rip), %xmm10   # 0x1e020
movss 0x189c4(%rip), %xmm11   # 0x1e024
movss 0x189bf(%rip), %xmm12   # 0x1e028
movss 0x189ba(%rip), %xmm13   # 0x1e02c
jl 0x5273
movl 0xc(%rsp), %ecx
addl $0x10, %ecx
addl $0x10, 0x8(%rsp)
movl %ecx, 0xc(%rsp)
cmpl 0x18(%rsp), %ecx
jl 0x5268
jmp 0x59ba
movq 0x18(%rsp), %rax
testl %eax, %eax
jle 0x59ba
decl %eax
movl %eax, 0x24(%rsp)
leal -0x1(%rbx), %r12d
movq $0x0, 0x30(%rsp)
movl $0x8, 0x8(%rsp)
leaq 0xcd0(%rsp), %rcx
movss 0x1893d(%rip), %xmm5    # 0x1e00c
movss 0x18939(%rip), %xmm6    # 0x1e010
movss 0x18935(%rip), %xmm7    # 0x1e014
movss 0x18930(%rip), %xmm8    # 0x1e018
movss 0x1892b(%rip), %xmm9    # 0x1e01c
movss 0x18926(%rip), %xmm10   # 0x1e020
movss 0x18921(%rip), %xmm11   # 0x1e024
movss 0x1891c(%rip), %xmm12   # 0x1e028
movss 0x18917(%rip), %xmm13   # 0x1e02c
movq $0x0, 0x28(%rsp)
xorl %edx, %edx
movl $0x0, 0xc(%rsp)
testl %ebx, %ebx
jle 0x59a0
xorl %r14d, %r14d
leaq 0x2d0(%rsp), %rsi
leaq 0x6d0(%rsp), %rdi
movq %rdx, 0x40(%rsp)
movl 0x22ac6(%rip), %eax     # 0x28214
movl %eax, 0x38(%rsp)
movq %rdi, %rdx
movl 0xc(%rsp), %edi
cmpl 0x18(%rsp), %edi
movl 0x24(%rsp), %r8d
movl %r8d, %r9d
cmovll %edi, %r9d
subl %r9d, %r8d
cmpl $0x0, 0x38(%rsp)
cmovel %r9d, %r8d
imull %ebx, %r8d
xorl %r9d, %r9d
movq 0x48(%rsp), %rax
leal (%r14,%r9), %r10d
cmpl %ebx, %r10d
cmovgel %r12d, %r10d
addl %r8d, %r10d
imull %r15d, %r10d
movslq %r10d, %r10
movzbl (%rax,%r10), %r11d
xorps %xmm0, %xmm0
cvtsi2ss %r11d, %xmm0
movzbl (%rbp,%r10), %r11d
xorps %xmm2, %xmm2
cvtsi2ss %r11d, %xmm2
movzbl (%r13,%r10), %r10d
xorps %xmm1, %xmm1
cvtsi2ss %r10d, %xmm1
movaps %xmm2, %xmm3
mulss %xmm5, %xmm3
movaps %xmm0, %xmm4
mulss %xmm6, %xmm4
addss %xmm3, %xmm4
movaps %xmm1, %xmm3
mulss %xmm7, %xmm3
addss %xmm4, %xmm3
addss %xmm8, %xmm3
movss %xmm3, (%rsi,%r9,4)
movaps %xmm2, %xmm3
mulss %xmm9, %xmm3
movaps %xmm0, %xmm4
mulss %xmm10, %xmm4
addss %xmm3, %xmm4
movaps %xmm1, %xmm3
mulss %xmm11, %xmm3
addss %xmm4, %xmm3
movss %xmm3, (%rdx,%r9,4)
mulss %xmm12, %xmm2
mulss %xmm11, %xmm0
addss %xmm2, %xmm0
mulss %xmm13, %xmm1
addss %xmm0, %xmm1
movss %xmm1, (%rcx,%r9,4)
incq %r9
cmpl $0x8, %r9d
jne 0x5781
incl %edi
addq $0x20, %rsi
addq $0x20, %rdx
addq $0x20, %rcx
cmpl 0x8(%rsp), %edi
jne 0x5759
subq $0x8, %rsp
movq 0x18(%rsp), %rdi
leaq 0xc(%rsp), %rsi
leaq 0x8(%rsp), %rdx
leaq 0x2d8(%rsp), %rcx
movl $0x8, %r8d
leaq 0xd8(%rsp), %r9
leaq 0x1a1e1(%rip), %rax     # 0x1fa60
pushq %rax
leaq 0x199d9(%rip), %rax     # 0x1f260
pushq %rax
pushq 0x48(%rsp)
callq 0x19fae
addq $0x20, %rsp
movq %rax, 0x30(%rsp)
subq $0x8, %rsp
movq 0x18(%rsp), %rdi
leaq 0xc(%rsp), %rsi
leaq 0x8(%rsp), %rdx
leaq 0x6d8(%rsp), %rcx
movl $0x8, %r8d
leaq 0x1d8(%rsp), %r9
leaq 0x1a596(%rip), %rax     # 0x1fe60
pushq %rax
leaq 0x19d8e(%rip), %rax     # 0x1f660
pushq %rax
pushq 0x40(%rsp)
callq 0x19fae
addq $0x20, %rsp
movq %rax, 0x28(%rsp)
subq $0x8, %rsp
movq 0x18(%rsp), %rdi
leaq 0xc(%rsp), %rsi
leaq 0x8(%rsp), %rdx
leaq 0xcd8(%rsp), %rcx
movl $0x8, %r8d
leaq 0x1d8(%rsp), %r9
leaq 0x1a54b(%rip), %rax     # 0x1fe60
pushq %rax
leaq 0x19d43(%rip), %rax     # 0x1f660
pushq %rax
pushq 0x58(%rsp)
callq 0x19fae
leaq 0x6f0(%rsp), %rdi
leaq 0x2f0(%rsp), %rsi
movss 0x186ec(%rip), %xmm13   # 0x1e02c
movss 0x186df(%rip), %xmm12   # 0x1e028
movss 0x186d2(%rip), %xmm11   # 0x1e024
movss 0x186c5(%rip), %xmm10   # 0x1e020
movss 0x186b8(%rip), %xmm9    # 0x1e01c
movss 0x186ab(%rip), %xmm8    # 0x1e018
movss 0x1869f(%rip), %xmm7    # 0x1e014
movss 0x18693(%rip), %xmm6    # 0x1e010
movss 0x18687(%rip), %xmm5    # 0x1e00c
leaq 0xcf0(%rsp), %rcx
addq $0x20, %rsp
movl %eax, %edx
addq $0x8, %r14
cmpl %ebx, %r14d
jl 0x5743
movl 0xc(%rsp), %eax
addl $0x8, %eax
addl $0x8, 0x8(%rsp)
movl %eax, 0xc(%rsp)
cmpl 0x18(%rsp), %eax
jl 0x5728
leaq 0x4(%rsp), %rsi
movq %rsp, %rdx
movq 0x10(%rsp), %r14
movq %r14, %rdi
movl $0x7f, %ecx
movl $0x7, %r8d
callq 0x1a3c7
movq (%r14), %rax
movq 0x8(%r14), %rdi
leaq 0x2d0(%rsp), %rbx
movb $-0x1, (%rbx)
movl $0x1, %ebp
movq %rbx, %rsi
movl $0x1, %edx
callq *%rax
movq (%r14), %rax
movq 0x8(%r14), %rdi
movb $-0x27, (%rbx)
leaq 0x2d0(%rsp), %rsi
movl $0x1, %edx
callq *%rax
movl %ebp, %eax
addq $0x10d8, %rsp           # imm = 0x10D8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq