// File: /workspace/github_cpp_makefile_star2_O2/alan0201tw[P]RayTracer/include/stb_image_write.h
// Function: stbi_write_jpg_core(stbi__write_context*, int, int, int, void const*, int)
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;
   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;
   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,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};
      const unsigned char *imageData = (const unsigned char *)data;
      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;
      int x, y, pos;
      for(y = 0; y < height; y += 8) {
         for(x = 0; x < width; x += 8) {
            float YDU[64], UDU[64], VDU[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) {
                  float r, g, b;
                  // if col >= width => use pixel from last input column
                  int p = base_p + ((col < width) ? col : (width-1))*comp;

                  r = imageData[p+0];
                  g = imageData[p+ofsG];
                  b = imageData[p+ofsB];
                  YDU[pos]=+0.29900f*r+0.58700f*g+0.11400f*b-128;
                  UDU[pos]=-0.16874f*r-0.33126f*g+0.50000f*b;
                  VDU[pos]=+0.50000f*r-0.41869f*g-0.08131f*b;
               }
            }

            DCY = stbiw__jpg_processDU(s, &bitBuf, &bitCnt, YDU, fdtbl_Y, DCY, YDC_HT, YAC_HT);
            DCU = stbiw__jpg_processDU(s, &bitBuf, &bitCnt, UDU, fdtbl_UV, DCU, UVDC_HT, UVAC_HT);
            DCV = stbiw__jpg_processDU(s, &bitBuf, &bitCnt, VDU, 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 $0x5c8, %rsp            # imm = 0x5C8
movq %rdi, 0x8(%rsp)
movq %rcx, 0x38(%rsp)
leal -0x5(%rcx), %eax
xorl %ebp, %ebp
cmpl $-0x4, %eax
jb 0x237de
testl %edx, %edx
je 0x237de
movl %esi, %ebx
testl %esi, %esi
je 0x237de
movq %r8, %r14
testq %r8, %r8
je 0x237de
cmpl $0x64, %r9d
pushq $0x64
popq %rcx
movl %ecx, %eax
cmovll %r9d, %eax
cmpl $0x2, %eax
pushq $0x1
popq %rsi
cmovll %esi, %eax
testl %r9d, %r9d
pushq $0x5a
popq %r8
cmovnel %eax, %r8d
cmpl $0x31, %r8d
movq %rdx, 0x18(%rsp)
ja 0x231d0
movw $0x1388, %ax            # imm = 0x1388
xorl %edx, %edx
divw %r8w
movzwl %ax, %edi
jmp 0x231db
addl %r8d, %r8d
movl $0xc8, %edi
subl %r8d, %edi
leaq 0x1036e(%rip), %r8      # 0x33550
xorl %r9d, %r9d
leaq 0x10164(%rip), %r10     # 0x33350
leaq 0x1025d(%rip), %r11     # 0x33450
movl $0xff, %ebp
cmpq $0x100, %r9             # imm = 0x100
je 0x23255
movl (%r9,%r10), %eax
imull %edi, %eax
addl $0x32, %eax
cltd
idivl %ecx
cmpl %ebp, %eax
jl 0x23217
movl $0xff, %eax
cmpl $0x2, %eax
jge 0x2321e
movl %esi, %eax
movzbl (%r8), %r15d
movb %al, 0x80(%rsp,%r15)
movl (%r9,%r11), %eax
imull %edi, %eax
addl $0x32, %eax
cltd
idivl %ecx
cmpl %ebp, %eax
jl 0x23240
movl $0xff, %eax
cmpl $0x2, %eax
jge 0x23247
movl %esi, %eax
movb %al, 0x40(%rsp,%r15)
addq $0x4, %r9
incq %r8
jmp 0x231f8
xorl %eax, %eax
leaq 0x11142(%rip), %rcx     # 0x343a0
leaq 0x102eb(%rip), %rdx     # 0x33550
movss 0xcf97(%rip), %xmm0     # 0x30204
xorl %esi, %esi
cmpq $0x8, %rax
je 0x23306
movss (%rcx,%rax,4), %xmm1
movslq %esi, %rsi
leaq (%rsp,%rsi,4), %r8
addq $0x4c0, %r8             # imm = 0x4C0
leaq (%rsp,%rsi,4), %r9
addq $0x2c0, %r9             # imm = 0x2C0
movq %rcx, %r10
xorl %edi, %edi
cmpq $0x8, %rdi
je 0x232fb
leaq (%rsi,%rdi), %r11
movzbl (%rdx,%r11), %r11d
movzbl 0x80(%rsp,%r11), %ebp
cvtsi2ss %ebp, %xmm2
mulss %xmm1, %xmm2
movss (%r10), %xmm3
mulss %xmm3, %xmm2
movaps %xmm0, %xmm4
divss %xmm2, %xmm4
movzbl 0x40(%rsp,%r11), %r11d
cvtsi2ss %r11d, %xmm2
movss %xmm4, (%r8,%rdi,4)
mulss %xmm1, %xmm2
mulss %xmm3, %xmm2
movaps %xmm0, %xmm3
divss %xmm2, %xmm3
movss %xmm3, (%r9,%rdi,4)
incq %rdi
addq $0x4, %r10
jmp 0x2329c
incq %rax
addq %rdi, %rsi
jmp 0x2326f
leaq 0xc0(%rsp), %r13
movl $0x1100c0ff, (%r13)     # imm = 0x1100C0FF
movb $0x8, 0x4(%r13)
movq 0x18(%rsp), %rax
movb %ah, 0xc5(%rsp)
movb %al, 0x6(%r13)
movb %bh, 0xc7(%rsp)
movb %bl, 0x8(%r13)
movabsq $0x301110200110103, %rax # imm = 0x301110200110103
movq %rax, 0x9(%r13)
movl $0xc4ff0111, 0x11(%r13) # imm = 0xC4FF0111
movw $0xa201, 0x15(%r13)     # imm = 0xA201
movb $0x0, 0x17(%r13)
movq 0x8(%rsp), %r15
movq 0x8(%r15), %rdi
leaq 0x10228(%rip), %rsi     # 0x33590
pushq $0x19
popq %rdx
callq *(%r15)
movq 0x8(%r15), %rdi
leaq 0x80(%rsp), %rsi
pushq $0x40
popq %rbp
movl %ebp, %edx
callq *(%r15)
movb $0x1, %al
leaq 0x1c0(%rsp), %r12
movb %al, (%r12)
movq 0x8(%r15), %rdi
pushq $0x1
popq %rdx
movq %r12, %rsi
callq *(%r15)
movq 0x8(%r15), %rdi
leaq 0x40(%rsp), %rsi
movl %ebp, %edx
callq *(%r15)
movq 0x8(%r15), %rdi
pushq $0x18
popq %rdx
movq %r13, %rsi
callq *(%r15)
movq 0x8(%r15), %rdi
leaq 0xedae(%rip), %rsi      # 0x32171
pushq $0x10
popq %rbp
movl %ebp, %edx
callq *(%r15)
movq 0x8(%r15), %rdi
leaq 0xedab(%rip), %rsi      # 0x32181
pushq $0xc
popq %rdx
callq *(%r15)
movb $0x10, (%r12)
movq 0x8(%r15), %rdi
leaq 0x1c0(%rsp), %r13
movq %r13, %rsi
pushq $0x1
popq %r12
movl %r12d, %edx
callq *(%r15)
movq 0x8(%r15), %rdi
leaq 0xed8c(%rip), %rsi      # 0x32191
movl %ebp, %edx
callq *(%r15)
movq 0x8(%r15), %rdi
leaq 0xed9b(%rip), %rsi      # 0x321b0
movl $0xa2, %edx
callq *(%r15)
movb $0x1, %al
movb %al, (%r13)
movq 0x8(%r15), %rdi
leaq 0x1c0(%rsp), %r13
movq %r13, %rsi
movl %r12d, %edx
callq *(%r15)
movq 0x8(%r15), %rdi
leaq 0xee1e(%rip), %rsi      # 0x32261
movl %ebp, %edx
callq *(%r15)
movq 0x8(%r15), %rdi
leaq 0xee1e(%rip), %rsi      # 0x32271
pushq $0xc
popq %rdx
callq *(%r15)
movb $0x11, (%r13)
movq 0x8(%r15), %rdi
leaq 0x1c0(%rsp), %rsi
movl %r12d, %edx
callq *(%r15)
movq 0x8(%r15), %rdi
leaq 0xee06(%rip), %rsi      # 0x32281
movl %ebp, %edx
callq *(%r15)
movq 0x8(%r15), %rdi
leaq 0xee15(%rip), %rsi      # 0x322a0
movl $0xa2, %edx
callq *(%r15)
movq 0x8(%r15), %rdi
leaq 0x1010b(%rip), %rsi     # 0x335a9
pushq $0xe
popq %rdx
callq *(%r15)
movq 0x18(%rsp), %rdx
leaq 0x4(%rsp), %rcx
andl $0x0, (%rcx)
movq %rsp, %rcx
andl $0x0, (%rcx)
xorl %r12d, %r12d
cmpl $0x3, 0x38(%rsp)
setge %r12b
leal (%r12,%r12), %r13d
leal -0x1(%rdx), %ecx
movl %ecx, 0x2c(%rsp)
leal -0x1(%rbx), %ebp
movq $0x0, 0x30(%rsp)
pushq $0x8
popq %rcx
movl %ecx, 0x14(%rsp)
movss 0xdf03(%rip), %xmm5     # 0x313ec
movss 0xdeff(%rip), %xmm6     # 0x313f0
movss 0xdefb(%rip), %xmm7     # 0x313f4
movss 0xdef6(%rip), %xmm8     # 0x313f8
movss 0xdef1(%rip), %xmm9     # 0x313fc
movss 0xdeec(%rip), %xmm10    # 0x31400
movss 0xcd27(%rip), %xmm11    # 0x30244
movss 0xdede(%rip), %xmm12    # 0x31404
movss 0xded9(%rip), %xmm13    # 0x31408
xorl %eax, %eax
movl $0x0, 0x10(%rsp)
xorl %edi, %edi
cmpl %edx, %edi
jge 0x23794
xorl %r15d, %r15d
movl %edi, 0x24(%rsp)
cmpl %ebx, %r15d
jge 0x23787
movl %eax, 0x28(%rsp)
movl 0x24fcf(%rip), %eax     # 0x4852c
leaq 0x3c0(%rsp), %rcx
leaq 0x1c0(%rsp), %rdx
leaq 0xc0(%rsp), %rsi
cmpl 0x14(%rsp), %edi
je 0x23671
cmpl 0x18(%rsp), %edi
movl 0x2c(%rsp), %r8d
movl %r8d, %r9d
cmovll %edi, %r9d
subl %r9d, %r8d
testl %eax, %eax
cmovel %r9d, %r8d
imull %ebx, %r8d
xorl %r9d, %r9d
cmpq $0x8, %r9
je 0x2365e
leaq (%r15,%r9), %r10
cmpl %ebx, %r10d
cmovgel %ebp, %r10d
addl %r8d, %r10d
imull 0x38(%rsp), %r10d
movslq %r10d, %r10
movzbl (%r14,%r10), %r11d
cvtsi2ss %r11d, %xmm0
leal (%r10,%r12), %r11d
movslq %r11d, %r11
movzbl (%r14,%r11), %r11d
cvtsi2ss %r11d, %xmm1
addl %r13d, %r10d
movslq %r10d, %r10
movzbl (%r14,%r10), %r10d
cvtsi2ss %r10d, %xmm2
movaps %xmm1, %xmm3
mulss %xmm5, %xmm3
movaps %xmm0, %xmm4
mulss %xmm6, %xmm4
addss %xmm3, %xmm4
movaps %xmm2, %xmm3
mulss %xmm7, %xmm3
addss %xmm4, %xmm3
addss %xmm8, %xmm3
movss %xmm3, (%rsi,%r9,4)
movaps %xmm1, %xmm3
mulss %xmm9, %xmm3
movaps %xmm0, %xmm4
mulss %xmm10, %xmm4
addss %xmm3, %xmm4
movaps %xmm2, %xmm3
mulss %xmm11, %xmm3
addss %xmm4, %xmm3
movss %xmm3, (%rdx,%r9,4)
mulss %xmm12, %xmm1
mulss %xmm11, %xmm0
addss %xmm1, %xmm0
mulss %xmm13, %xmm2
addss %xmm0, %xmm2
movss %xmm2, (%rcx,%r9,4)
incq %r9
jmp 0x2359f
incl %edi
addq $0x20, %rsi
addq $0x20, %rdx
addq $0x20, %rcx
jmp 0x23575
movq 0x8(%rsp), %rdi
leaq 0x4(%rsp), %rsi
movq %rsp, %rdx
leaq 0xc0(%rsp), %rcx
leaq 0x4c0(%rsp), %r8
movl 0x10(%rsp), %r9d
leaq 0xf4b6(%rip), %rax      # 0x32b50
pushq %rax
leaq 0xecae(%rip), %rax      # 0x32350
pushq %rax
callq 0x2d2d9
popq %rcx
popq %rdx
movl %eax, 0x10(%rsp)
movq 0x8(%rsp), %rdi
leaq 0x4(%rsp), %rsi
movq %rsp, %rdx
leaq 0x1c0(%rsp), %rcx
leaq 0x2c0(%rsp), %r8
movq 0x30(%rsp), %r9
leaq 0xf879(%rip), %rax      # 0x32f50
pushq %rax
leaq 0xf071(%rip), %rax      # 0x32750
pushq %rax
callq 0x2d2d9
popq %rcx
popq %rdx
movq %rax, 0x30(%rsp)
movq 0x8(%rsp), %rdi
leaq 0x4(%rsp), %rsi
movq %rsp, %rdx
leaq 0x3c0(%rsp), %rcx
leaq 0x2c0(%rsp), %r8
movl 0x28(%rsp), %r9d
leaq 0xf83b(%rip), %rax      # 0x32f50
pushq %rax
leaq 0xf033(%rip), %rax      # 0x32750
pushq %rax
callq 0x2d2d9
movss 0xdcdc(%rip), %xmm13    # 0x31408
movss 0xdccf(%rip), %xmm12    # 0x31404
movss 0xcb06(%rip), %xmm11    # 0x30244
movss 0xdcb9(%rip), %xmm10    # 0x31400
movss 0xdcac(%rip), %xmm9     # 0x313fc
movss 0xdc9f(%rip), %xmm8     # 0x313f8
movss 0xdc93(%rip), %xmm7     # 0x313f4
movss 0xdc87(%rip), %xmm6     # 0x313f0
movss 0xdc7b(%rip), %xmm5     # 0x313ec
addq $0x10, %rsp
addq $0x8, %r15
movq 0x18(%rsp), %rdx
movl 0x24(%rsp), %edi
jmp 0x2354a
addl $0x8, %edi
addl $0x8, 0x14(%rsp)
jmp 0x2353b
leaq 0xfe1d(%rip), %rcx      # 0x335b8
leaq 0x4(%rsp), %rsi
movq %rsp, %rdx
movq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x2d58c
leaq 0xc0(%rsp), %rbx
movb $-0x1, (%rbx)
movq 0x8(%r14), %rdi
movq %rbx, %rsi
pushq $0x1
popq %rbp
movl %ebp, %edx
callq *(%r14)
movb $-0x27, (%rbx)
movq 0x8(%r14), %rdi
leaq 0xc0(%rsp), %rsi
movl %ebp, %edx
callq *(%r14)
movl %ebp, %eax
addq $0x5c8, %rsp            # imm = 0x5C8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq