// File: /workspace/github_cpp_makefile_star2_O1/donfreiday[P]gb/./imgui/stb_truetype.h
// Function: stbtt_GetGlyphShape(stbtt_fontinfo const*, int, stbtt_vertex**)
STBTT_DEF int stbtt_GetGlyphShape(const stbtt_fontinfo *info, int glyph_index, stbtt_vertex **pvertices)
{
   stbtt_int16 numberOfContours;
   stbtt_uint8 *endPtsOfContours;
   stbtt_uint8 *data = info->data;
   stbtt_vertex *vertices=0;
   int num_vertices=0;
   int g = stbtt__GetGlyfOffset(info, glyph_index);

   *pvertices = NULL;

   if (g < 0) return 0;

   numberOfContours = ttSHORT(data + g);

   if (numberOfContours > 0) {
      stbtt_uint8 flags=0,flagcount;
      stbtt_int32 ins, i,j=0,m,n, next_move, was_off=0, off, start_off=0;
      stbtt_int32 x,y,cx,cy,sx,sy, scx,scy;
      stbtt_uint8 *points;
      endPtsOfContours = (data + g + 10);
      ins = ttUSHORT(data + g + 10 + numberOfContours * 2);
      points = data + g + 10 + numberOfContours * 2 + 2 + ins;

      n = 1+ttUSHORT(endPtsOfContours + numberOfContours*2-2);

      m = n + 2*numberOfContours;  // a loose bound on how many vertices we might need
      vertices = (stbtt_vertex *) STBTT_malloc(m * sizeof(vertices[0]), info->userdata);
      if (vertices == 0)
         return 0;

      next_move = 0;
      flagcount=0;

      // in first pass, we load uninterpreted data into the allocated array
      // above, shifted to the end of the array so we won't overwrite it when
      // we create our final data starting from the front

      off = m - n; // starting offset for uninterpreted data, regardless of how m ends up being calculated

      // first load flags

      for (i=0; i < n; ++i) {
         if (flagcount == 0) {
            flags = *points++;
            if (flags & 8)
               flagcount = *points++;
         } else
            --flagcount;
         vertices[off+i].type = flags;
      }

      // now load x coordinates
      x=0;
      for (i=0; i < n; ++i) {
         flags = vertices[off+i].type;
         if (flags & 2) {
            stbtt_int16 dx = *points++;
            x += (flags & 16) ? dx : -dx; // ???
         } else {
            if (!(flags & 16)) {
               x = x + (stbtt_int16) (points[0]*256 + points[1]);
               points += 2;
            }
         }
         vertices[off+i].x = (stbtt_int16) x;
      }

      // now load y coordinates
      y=0;
      for (i=0; i < n; ++i) {
         flags = vertices[off+i].type;
         if (flags & 4) {
            stbtt_int16 dy = *points++;
            y += (flags & 32) ? dy : -dy; // ???
         } else {
            if (!(flags & 32)) {
               y = y + (stbtt_int16) (points[0]*256 + points[1]);
               points += 2;
            }
         }
         vertices[off+i].y = (stbtt_int16) y;
      }

      // now convert them to our format
      num_vertices=0;
      sx = sy = cx = cy = scx = scy = 0;
      for (i=0; i < n; ++i) {
         flags = vertices[off+i].type;
         x     = (stbtt_int16) vertices[off+i].x;
         y     = (stbtt_int16) vertices[off+i].y;

         if (next_move == i) {
            if (i != 0)
               num_vertices = stbtt__close_shape(vertices, num_vertices, was_off, start_off, sx,sy,scx,scy,cx,cy);

            // now start the new one               
            start_off = !(flags & 1);
            if (start_off) {
               // if we start off with an off-curve point, then when we need to find a point on the curve
               // where we can start, and we need to save some state for when we wraparound.
               scx = x;
               scy = y;
               if (!(vertices[off+i+1].type & 1)) {
                  // next point is also a curve point, so interpolate an on-point curve
                  sx = (x + (stbtt_int32) vertices[off+i+1].x) >> 1;
                  sy = (y + (stbtt_int32) vertices[off+i+1].y) >> 1;
               } else {
                  // otherwise just use the next point as our start point
                  sx = (stbtt_int32) vertices[off+i+1].x;
                  sy = (stbtt_int32) vertices[off+i+1].y;
                  ++i; // we're using point i+1 as the starting point, so skip it
               }
            } else {
               sx = x;
               sy = y;
            }
            stbtt_setvertex(&vertices[num_vertices++], STBTT_vmove,sx,sy,0,0);
            was_off = 0;
            next_move = 1 + ttUSHORT(endPtsOfContours+j*2);
            ++j;
         } else {
            if (!(flags & 1)) { // if it's a curve
               if (was_off) // two off-curve control points in a row means interpolate an on-curve midpoint
                  stbtt_setvertex(&vertices[num_vertices++], STBTT_vcurve, (cx+x)>>1, (cy+y)>>1, cx, cy);
               cx = x;
               cy = y;
               was_off = 1;
            } else {
               if (was_off)
                  stbtt_setvertex(&vertices[num_vertices++], STBTT_vcurve, x,y, cx, cy);
               else
                  stbtt_setvertex(&vertices[num_vertices++], STBTT_vline, x,y,0,0);
               was_off = 0;
            }
         }
      }
      num_vertices = stbtt__close_shape(vertices, num_vertices, was_off, start_off, sx,sy,scx,scy,cx,cy);
   } else if (numberOfContours == -1) {
      // Compound shapes.
      int more = 1;
      stbtt_uint8 *comp = data + g + 10;
      num_vertices = 0;
      vertices = 0;
      while (more) {
         stbtt_uint16 flags, gidx;
         int comp_num_verts = 0, i;
         stbtt_vertex *comp_verts = 0, *tmp = 0;
         float mtx[6] = {1,0,0,1,0,0}, m, n;
         
         flags = ttSHORT(comp); comp+=2;
         gidx = ttSHORT(comp); comp+=2;

         if (flags & 2) { // XY values
            if (flags & 1) { // shorts
               mtx[4] = ttSHORT(comp); comp+=2;
               mtx[5] = ttSHORT(comp); comp+=2;
            } else {
               mtx[4] = ttCHAR(comp); comp+=1;
               mtx[5] = ttCHAR(comp); comp+=1;
            }
         }
         else {
            // @TODO handle matching point
            STBTT_assert(0);
         }
         if (flags & (1<<3)) { // WE_HAVE_A_SCALE
            mtx[0] = mtx[3] = ttSHORT(comp)/16384.0f; comp+=2;
            mtx[1] = mtx[2] = 0;
         } else if (flags & (1<<6)) { // WE_HAVE_AN_X_AND_YSCALE
            mtx[0] = ttSHORT(comp)/16384.0f; comp+=2;
            mtx[1] = mtx[2] = 0;
            mtx[3] = ttSHORT(comp)/16384.0f; comp+=2;
         } else if (flags & (1<<7)) { // WE_HAVE_A_TWO_BY_TWO
            mtx[0] = ttSHORT(comp)/16384.0f; comp+=2;
            mtx[1] = ttSHORT(comp)/16384.0f; comp+=2;
            mtx[2] = ttSHORT(comp)/16384.0f; comp+=2;
            mtx[3] = ttSHORT(comp)/16384.0f; comp+=2;
         }
         
         // Find transformation scales.
         m = (float) STBTT_sqrt(mtx[0]*mtx[0] + mtx[1]*mtx[1]);
         n = (float) STBTT_sqrt(mtx[2]*mtx[2] + mtx[3]*mtx[3]);

         // Get indexed glyph.
         comp_num_verts = stbtt_GetGlyphShape(info, gidx, &comp_verts);
         if (comp_num_verts > 0) {
            // Transform vertices.
            for (i = 0; i < comp_num_verts; ++i) {
               stbtt_vertex* v = &comp_verts[i];
               stbtt_vertex_type x,y;
               x=v->x; y=v->y;
               v->x = (stbtt_vertex_type)(m * (mtx[0]*x + mtx[2]*y + mtx[4]));
               v->y = (stbtt_vertex_type)(n * (mtx[1]*x + mtx[3]*y + mtx[5]));
               x=v->cx; y=v->cy;
               v->cx = (stbtt_vertex_type)(m * (mtx[0]*x + mtx[2]*y + mtx[4]));
               v->cy = (stbtt_vertex_type)(n * (mtx[1]*x + mtx[3]*y + mtx[5]));
            }
            // Append vertices.
            tmp = (stbtt_vertex*)STBTT_malloc((num_vertices+comp_num_verts)*sizeof(stbtt_vertex), info->userdata);
            if (!tmp) {
               if (vertices) STBTT_free(vertices, info->userdata);
               if (comp_verts) STBTT_free(comp_verts, info->userdata);
               return 0;
            }
            if (num_vertices > 0) STBTT_memcpy(tmp, vertices, num_vertices*sizeof(stbtt_vertex));
            STBTT_memcpy(tmp+num_vertices, comp_verts, comp_num_verts*sizeof(stbtt_vertex));
            if (vertices) STBTT_free(vertices, info->userdata);
            vertices = tmp;
            STBTT_free(comp_verts, info->userdata);
            num_vertices += comp_num_verts;
         }
         // More components ?
         more = flags & (1<<5);
      }
   } else if (numberOfContours < 0) {
      // @TODO other compound variations?
      STBTT_assert(0);
   } else {
      // numberOfCounters == 0, do nothing
   }

   *pvertices = vertices;
   return num_vertices;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rdx, %r14
movq 0x8(%rdi), %rbx
movq %rdi, -0x48(%rbp)
callq 0x3655f
movq $0x0, (%r14)
testl %eax, %eax
js 0x36e09
movl %eax, %eax
leaq (%rbx,%rax), %r13
movzbl (%rbx,%rax), %ecx
shll $0x8, %ecx
movzbl 0x1(%rbx,%rax), %eax
orl %ecx, %eax
testw %ax, %ax
jle 0x369bc
movq %r14, -0x90(%rbp)
leal (%rax,%rax), %r14d
movzbl 0xa(%r13,%r14), %r12d
movzbl 0xb(%r13,%r14), %ecx
movq %rcx, -0x30(%rbp)
movzbl 0x8(%r13,%r14), %ebx
shll $0x8, %ebx
movzbl 0x9(%r13,%r14), %r15d
leal (%rbx,%r15), %ecx
movq %rcx, -0x88(%rbp)
leal (%rcx,%rax,2), %eax
leal (%rax,%rax,4), %eax
leal 0xa(,%rax,2), %edi
callq 0x85d9
movq %rax, %r11
xorl %eax, %eax
movl $0x0, %edx
testq %r11, %r11
je 0x369ab
leaq (%r14,%r13), %rax
addq $0xa, %rax
addq $0xa, %r13
shll $0x8, %r12d
addq -0x30(%rbp), %r12
addq %r12, %rax
addq $0x2, %rax
leaq (%r14,%r14,4), %rcx
leaq (%r11,%rcx,2), %rcx
addq $0x8, %rcx
addl %r15d, %ebx
leal 0x2(,%rbx,2), %edx
leaq (%rdx,%rdx,4), %rdx
xorl %esi, %esi
xorl %edi, %edi
xorl %r8d, %r8d
testb %r8b, %r8b
je 0x366b1
decb %r8b
jmp 0x366c7
movb (%rax), %dil
testb $0x8, %dil
jne 0x366bf
incq %rax
jmp 0x366c7
movb 0x1(%rax), %r8b
addq $0x2, %rax
movb %dil, (%rcx,%rsi)
addq $0xa, %rsi
cmpq %rsi, %rdx
jne 0x366a7
leal 0x2(,%rbx,2), %edx
leaq (%rdx,%rdx,4), %rdx
xorl %esi, %esi
xorl %edi, %edi
movzbl (%rcx,%rsi), %r8d
testb $0x2, %r8b
jne 0x3670a
testb $0x10, %r8b
jne 0x36722
movzwl (%rax), %r8d
rolw $0x8, %r8w
movzwl %r8w, %r8d
addl %r8d, %edi
addq $0x2, %rax
jmp 0x36722
movzbl (%rax), %r9d
incq %rax
movl %r9d, %r10d
negl %r10d
testb $0x10, %r8b
cmovnel %r9d, %r10d
addl %r10d, %edi
movw %di, -0x8(%rcx,%rsi)
addq $0xa, %rsi
cmpq %rsi, %rdx
jne 0x366e3
movzwl %r14w, %ecx
leaq (%rcx,%rcx,4), %rcx
leaq (%r11,%rcx,2), %rcx
addq $0x8, %rcx
leal 0x2(,%rbx,2), %edx
leaq (%rdx,%rdx,4), %rdx
xorl %esi, %esi
xorl %edi, %edi
movzbl (%rcx,%rsi), %r8d
testb $0x4, %r8b
jne 0x36776
testb $0x20, %r8b
jne 0x3678e
movzwl (%rax), %r8d
rolw $0x8, %r8w
movzwl %r8w, %r8d
addl %r8d, %edi
addq $0x2, %rax
jmp 0x3678e
movzbl (%rax), %r9d
incq %rax
movl %r9d, %r10d
negl %r10d
testb $0x20, %r8b
cmovnel %r9d, %r10d
addl %r10d, %edi
movw %di, -0x6(%rcx,%rsi)
addq $0xa, %rsi
cmpq %rsi, %rdx
jne 0x3674f
movq %r13, -0x80(%rbp)
xorl %esi, %esi
xorl %ebx, %ebx
movq $0x0, -0x68(%rbp)
xorl %eax, %eax
movq $0x0, -0x50(%rbp)
movq $0x0, -0x30(%rbp)
xorl %r9d, %r9d
xorl %r8d, %r8d
movq $0x0, -0x38(%rbp)
movq $0x0, -0x40(%rbp)
xorl %ecx, %ecx
xorl %edx, %edx
movq %r11, -0x60(%rbp)
movq %r14, -0x48(%rbp)
leal (%rbx,%r14), %edi
movslq %edi, %rdi
leaq (%rdi,%rdi,4), %r12
movzbl 0x8(%r11,%r12,2), %r14d
movzwl (%r11,%r12,2), %r10d
movzwl 0x2(%r11,%r12,2), %edi
movswl %r10w, %r15d
movswl %di, %r13d
cmpl %ebx, %eax
jne 0x3684b
testl %ebx, %ebx
je 0x36826
movq %r11, %rdi
pushq -0x38(%rbp)
pushq -0x40(%rbp)
pushq -0x50(%rbp)
pushq -0x30(%rbp)
callq 0x36e58
addq $0x20, %rsp
movl %eax, %esi
movq -0x68(%rbp), %rcx
andl $0x1, %r14d
je 0x368d1
movl %r15d, %r8d
movl %r13d, %r9d
movq -0x30(%rbp), %r15
movq -0x50(%rbp), %r13
movq -0x60(%rbp), %r11
jmp 0x36928
testb $0x1, %r14b
jne 0x368a2
testl %edx, %edx
je 0x36890
movslq %esi, %rdx
incl %esi
leaq (%rdx,%rdx,4), %rdx
movq -0x40(%rbp), %r14
leal (%r14,%r15), %edi
shrl %edi
movq -0x38(%rbp), %r12
leal (%r12,%r13), %r10d
shrl %r10d
movb $0x3, 0x8(%r11,%rdx,2)
movw %di, (%r11,%rdx,2)
movw %r10w, 0x2(%r11,%rdx,2)
movw %r14w, 0x4(%r11,%rdx,2)
movw %r12w, 0x6(%r11,%rdx,2)
movl $0x1, %edx
movq %r15, -0x40(%rbp)
movq %r13, -0x38(%rbp)
jmp 0x36976
movq %r11, %r14
movslq %esi, %r11
leaq (%r11,%r11,4), %r11
leaq (%r14,%r11,2), %r11
testl %edx, %edx
je 0x368f7
movb $0x3, 0x8(%r11)
movw %r10w, (%r11)
movw %di, 0x2(%r11)
movq -0x40(%rbp), %rdx
movw %dx, 0x4(%r11)
movq -0x38(%rbp), %rdx
jmp 0x3690e
movq -0x60(%rbp), %r11
leaq (%r11,%r12,2), %rax
movswl 0xa(%rax), %r8d
testb $0x1, 0x12(%rax)
jne 0x36921
addl %r15d, %r8d
sarl %r8d
movswl 0xc(%rax), %r9d
addl %r13d, %r9d
sarl %r9d
jmp 0x36928
movb $0x2, 0x8(%r11)
movw %r10w, (%r11)
movw %di, 0x2(%r11)
movw $0x0, 0x4(%r11)
xorl %edx, %edx
movq -0x48(%rbp), %r14
movw %dx, 0x6(%r11)
incl %esi
xorl %edx, %edx
movq -0x60(%rbp), %r11
jmp 0x3697a
movswl 0xc(%rax), %r9d
incl %ebx
xorl $0x1, %r14d
movslq %esi, %rax
leaq (%rax,%rax,4), %rax
movb $0x1, 0x8(%r11,%rax,2)
movw %r8w, (%r11,%rax,2)
movw %r9w, 0x2(%r11,%rax,2)
movl $0x0, 0x4(%r11,%rax,2)
movslq %ecx, %rcx
movq -0x80(%rbp), %rax
movzwl (%rax,%rcx,2), %eax
rolw $0x8, %ax
incl %esi
movzwl %ax, %eax
incl %eax
incl %ecx
movq %rcx, -0x68(%rbp)
xorl %edx, %edx
movl %r14d, %ecx
movq %r15, -0x30(%rbp)
movq %r13, -0x50(%rbp)
movq -0x48(%rbp), %r14
leal 0x1(%rbx), %edi
cmpl -0x88(%rbp), %ebx
movl %edi, %ebx
jl 0x367e0
movq %r11, %rdi
pushq -0x38(%rbp)
pushq -0x40(%rbp)
pushq -0x50(%rbp)
pushq -0x30(%rbp)
callq 0x36e58
movq -0x60(%rbp), %r11
addq $0x20, %rsp
movl %eax, %edx
xorl %eax, %eax
testq %r11, %r11
movq -0x90(%rbp), %r14
jne 0x369d0
jmp 0x36e0b
cmpw $-0x1, %ax
je 0x369da
testw %cx, %cx
js 0x36e39
xorl %edx, %edx
xorl %r11d, %r11d
movq %r11, (%r14)
movl %edx, %eax
jmp 0x36e0b
movq %r14, -0x90(%rbp)
addq $0xa, %r13
xorl %edx, %edx
movl $0x1, %r12d
xorl %r11d, %r11d
movl %r12d, -0x54(%rbp)
testl %r12d, %r12d
je 0x36df8
movq %r13, %rax
movq $0x0, -0x70(%rbp)
movzbl 0x1(%r13), %r12d
testb $0x2, %r12b
je 0x36e1a
movzbl 0x4(%rax), %ecx
testb $0x1, %r12b
movq %rdx, -0x88(%rbp)
jne 0x36a45
movsbl %cl, %ecx
xorps %xmm2, %xmm2
cvtsi2ss %ecx, %xmm2
movsbl 0x5(%rax), %ecx
xorps %xmm3, %xmm3
cvtsi2ss %ecx, %xmm3
movl $0x6, %r14d
jmp 0x36a73
movzwl %cx, %ecx
shll $0x8, %ecx
movzbl 0x5(%rax), %edx
orl %ecx, %edx
movswl %dx, %ecx
xorps %xmm2, %xmm2
cvtsi2ss %ecx, %xmm2
movzwl 0x6(%rax), %ecx
rolw $0x8, %cx
movswl %cx, %ecx
xorps %xmm3, %xmm3
cvtsi2ss %ecx, %xmm3
movl $0x8, %r14d
addq %rax, %r14
testb $0x8, %r12b
jne 0x36aa4
testb $0x40, %r12b
jne 0x36ad0
xorps %xmm5, %xmm5
testb %r12b, %r12b
js 0x36b0e
movss 0x68ea(%rip), %xmm0     # 0x3d380
movaps %xmm0, %xmm6
xorps %xmm7, %xmm7
movaps %xmm0, %xmm4
jmp 0x36b6c
movzwl (%r14), %ecx
rolw $0x8, %cx
movswl %cx, %ecx
xorps %xmm6, %xmm6
cvtsi2ss %ecx, %xmm6
mulss 0xbd9a(%rip), %xmm6     # 0x42858
addq $0x2, %r14
xorps %xmm5, %xmm5
xorps %xmm7, %xmm7
movaps %xmm6, %xmm4
jmp 0x36b6c
movzwl (%r14), %ecx
rolw $0x8, %cx
movswl %cx, %ecx
cvtsi2ss %ecx, %xmm4
movzwl 0x2(%r14), %ecx
movss 0xbd6c(%rip), %xmm0     # 0x42858
mulss %xmm0, %xmm4
rolw $0x8, %cx
movswl %cx, %ecx
xorps %xmm6, %xmm6
cvtsi2ss %ecx, %xmm6
mulss %xmm0, %xmm6
addq $0x4, %r14
xorps %xmm5, %xmm5
xorps %xmm7, %xmm7
jmp 0x36b6c
movzwl (%r14), %ecx
rolw $0x8, %cx
movswl %cx, %ecx
cvtsi2ss %ecx, %xmm4
movzwl 0x2(%r14), %ecx
rolw $0x8, %cx
movswl %cx, %ecx
cvtsi2ss %ecx, %xmm7
movzwl 0x4(%r14), %ecx
rolw $0x8, %cx
movswl %cx, %ecx
xorps %xmm5, %xmm5
cvtsi2ss %ecx, %xmm5
movss 0xbd10(%rip), %xmm0     # 0x42858
mulss %xmm0, %xmm4
movzwl 0x6(%r14), %ecx
rolw $0x8, %cx
movswl %cx, %ecx
cvtsi2ss %ecx, %xmm6
mulss %xmm0, %xmm7
mulss %xmm0, %xmm5
mulss %xmm0, %xmm6
addq $0x8, %r14
movzwl 0x2(%rax), %ebx
movaps %xmm7, %xmm1
mulss %xmm7, %xmm1
movaps %xmm4, %xmm0
mulss %xmm4, %xmm0
addss %xmm1, %xmm0
ucomiss 0x6817(%rip), %xmm0     # 0x3d3a0
movq %r11, %r15
movss %xmm2, -0x68(%rbp)
movss %xmm3, -0x40(%rbp)
movss %xmm4, -0x38(%rbp)
movss %xmm5, -0x30(%rbp)
movss %xmm6, -0x50(%rbp)
movss %xmm7, -0x60(%rbp)
jb 0x36bb5
xorps %xmm2, %xmm2
sqrtss %xmm0, %xmm2
jmp 0x36bc7
callq 0x7740
movss -0x50(%rbp), %xmm6
movss -0x30(%rbp), %xmm5
movaps %xmm0, %xmm2
movaps %xmm6, %xmm1
mulss %xmm6, %xmm1
movaps %xmm5, %xmm0
mulss %xmm5, %xmm0
addss %xmm1, %xmm0
ucomiss 0x67c0(%rip), %xmm0     # 0x3d3a0
movq %r14, -0x80(%rbp)
movss %xmm2, -0x98(%rbp)
jb 0x36bf4
sqrtss %xmm0, %xmm0
jmp 0x36bf9
callq 0x7740
movss %xmm0, -0x74(%rbp)
rolw $0x8, %bx
movzwl %bx, %esi
movq -0x48(%rbp), %rdi
leaq -0x70(%rbp), %rdx
callq 0x365c4
testl %eax, %eax
jle 0x36da6
movl %eax, %r13d
movl %r12d, -0x94(%rbp)
movq -0x70(%rbp), %rax
movl %r13d, %r14d
leaq (%r14,%r14), %rcx
leaq (%rcx,%rcx,4), %rcx
xorl %edx, %edx
movss -0x68(%rbp), %xmm4
movss -0x40(%rbp), %xmm5
movss -0x38(%rbp), %xmm6
movss -0x30(%rbp), %xmm7
movss -0x50(%rbp), %xmm8
movss -0x60(%rbp), %xmm9
movss -0x98(%rbp), %xmm10
movss -0x74(%rbp), %xmm11
movswl (%rax,%rdx), %esi
xorps %xmm0, %xmm0
cvtsi2ss %esi, %xmm0
movswl 0x2(%rax,%rdx), %esi
xorps %xmm1, %xmm1
cvtsi2ss %esi, %xmm1
movaps %xmm7, %xmm2
mulss %xmm1, %xmm2
movaps %xmm6, %xmm3
mulss %xmm0, %xmm3
addss %xmm2, %xmm3
addss %xmm4, %xmm3
mulss %xmm10, %xmm3
cvttss2si %xmm3, %esi
movw %si, (%rax,%rdx)
mulss %xmm8, %xmm1
mulss %xmm9, %xmm0
addss %xmm1, %xmm0
addss %xmm5, %xmm0
mulss %xmm11, %xmm0
cvttss2si %xmm0, %esi
movw %si, 0x2(%rax,%rdx)
movswl 0x4(%rax,%rdx), %esi
movswl 0x6(%rax,%rdx), %edi
xorps %xmm0, %xmm0
cvtsi2ss %esi, %xmm0
xorps %xmm1, %xmm1
cvtsi2ss %edi, %xmm1
movaps %xmm7, %xmm2
mulss %xmm1, %xmm2
movaps %xmm6, %xmm3
mulss %xmm0, %xmm3
addss %xmm2, %xmm3
addss %xmm4, %xmm3
mulss %xmm10, %xmm3
cvttss2si %xmm3, %esi
mulss %xmm8, %xmm1
mulss %xmm9, %xmm0
addss %xmm1, %xmm0
addss %xmm5, %xmm0
mulss %xmm11, %xmm0
cvttss2si %xmm0, %edi
movw %si, 0x4(%rax,%rdx)
movw %di, 0x6(%rax,%rdx)
addq $0xa, %rdx
cmpq %rdx, %rcx
jne 0x36c64
movq -0x88(%rbp), %rbx
addl %ebx, %r13d
leaq (,%r13,2), %rax
leaq (%rax,%rax,4), %rdi
callq 0x85d9
testq %rax, %rax
je 0x36dbf
movq %rax, %r12
movq %r14, -0x30(%rbp)
movl %ebx, %r14d
testl %ebx, %ebx
jle 0x36d68
leaq (%r14,%r14), %rax
leaq (%rax,%rax,4), %rdx
movq %r12, %rdi
movq %r15, %rsi
callq 0x7080
leaq (%r14,%r14,4), %rax
leaq (%r12,%rax,2), %rdi
movq -0x70(%rbp), %rsi
movq -0x30(%rbp), %rax
addq %rax, %rax
leaq (%rax,%rax,4), %rdx
callq 0x7080
testq %r15, %r15
je 0x36d91
movq %r15, %rdi
callq 0x9065
movq -0x70(%rbp), %rdi
callq 0x9065
movq %r12, %r11
movl -0x94(%rbp), %r12d
jmp 0x36db0
movq -0x88(%rbp), %r13
movq %r15, %r11
andl $0x20, %r12d
movb $0x1, %al
movl %r13d, %edx
movq -0x80(%rbp), %r13
jmp 0x36df0
movq %r15, %r11
testq %r15, %r15
je 0x36dd2
movq %r11, %rdi
callq 0x9065
movq %r15, %r11
movq -0x70(%rbp), %rdi
testq %rdi, %rdi
movq -0x80(%rbp), %r13
je 0x36de7
callq 0x9065
movq %r15, %r11
xorl %eax, %eax
movl -0x54(%rbp), %r12d
movq %rbx, %rdx
testb %al, %al
jne 0x369f0
cmpl $0x0, -0x54(%rbp)
movq -0x90(%rbp), %r14
je 0x369d0
xorl %eax, %eax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x7df1(%rip), %rdi      # 0x3ec12
leaq 0xff3d(%rip), %rsi      # 0x46d65
leaq 0x10120(%rip), %rcx     # 0x46f4f
movl $0x570, %edx            # imm = 0x570
callq 0x7140
leaq 0x7dd2(%rip), %rdi      # 0x3ec12
leaq 0xff1e(%rip), %rsi      # 0x46d65
leaq 0x10101(%rip), %rcx     # 0x46f4f
movl $0x5a5, %edx            # imm = 0x5A5
callq 0x7140