// File: /workspace/github_c_makefile_star2_O2/ggerganov[P]font-rasterizer/./stb_truetype.h
// Function: stbtt__run_charstring
static int stbtt__run_charstring(const stbtt_fontinfo *info, int glyph_index, stbtt__csctx *c)
{
   int in_header = 1, maskbits = 0, subr_stack_height = 0, sp = 0, v, i, b0;
   int has_subrs = 0, clear_stack;
   float s[48];
   stbtt__buf subr_stack[10], subrs = info->subrs, b;
   float f;

#define STBTT__CSERR(s) (0)

   // this currently ignores the initial width value, which isn't needed if we have hmtx
   b = stbtt__cff_index_get(info->charstrings, glyph_index);
   while (b.cursor < b.size) {
      i = 0;
      clear_stack = 1;
      b0 = stbtt__buf_get8(&b);
      switch (b0) {
      // @TODO implement hinting
      case 0x13: // hintmask
      case 0x14: // cntrmask
         if (in_header)
            maskbits += (sp / 2); // implicit "vstem"
         in_header = 0;
         stbtt__buf_skip(&b, (maskbits + 7) / 8);
         break;

      case 0x01: // hstem
      case 0x03: // vstem
      case 0x12: // hstemhm
      case 0x17: // vstemhm
         maskbits += (sp / 2);
         break;

      case 0x15: // rmoveto
         in_header = 0;
         if (sp < 2) return STBTT__CSERR("rmoveto stack");
         stbtt__csctx_rmove_to(c, s[sp-2], s[sp-1]);
         break;
      case 0x04: // vmoveto
         in_header = 0;
         if (sp < 1) return STBTT__CSERR("vmoveto stack");
         stbtt__csctx_rmove_to(c, 0, s[sp-1]);
         break;
      case 0x16: // hmoveto
         in_header = 0;
         if (sp < 1) return STBTT__CSERR("hmoveto stack");
         stbtt__csctx_rmove_to(c, s[sp-1], 0);
         break;

      case 0x05: // rlineto
         if (sp < 2) return STBTT__CSERR("rlineto stack");
         for (; i + 1 < sp; i += 2)
            stbtt__csctx_rline_to(c, s[i], s[i+1]);
         break;

      // hlineto/vlineto and vhcurveto/hvcurveto alternate horizontal and vertical
      // starting from a different place.

      case 0x07: // vlineto
         if (sp < 1) return STBTT__CSERR("vlineto stack");
         goto vlineto;
      case 0x06: // hlineto
         if (sp < 1) return STBTT__CSERR("hlineto stack");
         for (;;) {
            if (i >= sp) break;
            stbtt__csctx_rline_to(c, s[i], 0);
            i++;
      vlineto:
            if (i >= sp) break;
            stbtt__csctx_rline_to(c, 0, s[i]);
            i++;
         }
         break;

      case 0x1F: // hvcurveto
         if (sp < 4) return STBTT__CSERR("hvcurveto stack");
         goto hvcurveto;
      case 0x1E: // vhcurveto
         if (sp < 4) return STBTT__CSERR("vhcurveto stack");
         for (;;) {
            if (i + 3 >= sp) break;
            stbtt__csctx_rccurve_to(c, 0, s[i], s[i+1], s[i+2], s[i+3], (sp - i == 5) ? s[i + 4] : 0.0f);
            i += 4;
      hvcurveto:
            if (i + 3 >= sp) break;
            stbtt__csctx_rccurve_to(c, s[i], 0, s[i+1], s[i+2], (sp - i == 5) ? s[i+4] : 0.0f, s[i+3]);
            i += 4;
         }
         break;

      case 0x08: // rrcurveto
         if (sp < 6) return STBTT__CSERR("rcurveline stack");
         for (; i + 5 < sp; i += 6)
            stbtt__csctx_rccurve_to(c, s[i], s[i+1], s[i+2], s[i+3], s[i+4], s[i+5]);
         break;

      case 0x18: // rcurveline
         if (sp < 8) return STBTT__CSERR("rcurveline stack");
         for (; i + 5 < sp - 2; i += 6)
            stbtt__csctx_rccurve_to(c, s[i], s[i+1], s[i+2], s[i+3], s[i+4], s[i+5]);
         if (i + 1 >= sp) return STBTT__CSERR("rcurveline stack");
         stbtt__csctx_rline_to(c, s[i], s[i+1]);
         break;

      case 0x19: // rlinecurve
         if (sp < 8) return STBTT__CSERR("rlinecurve stack");
         for (; i + 1 < sp - 6; i += 2)
            stbtt__csctx_rline_to(c, s[i], s[i+1]);
         if (i + 5 >= sp) return STBTT__CSERR("rlinecurve stack");
         stbtt__csctx_rccurve_to(c, s[i], s[i+1], s[i+2], s[i+3], s[i+4], s[i+5]);
         break;

      case 0x1A: // vvcurveto
      case 0x1B: // hhcurveto
         if (sp < 4) return STBTT__CSERR("(vv|hh)curveto stack");
         f = 0.0;
         if (sp & 1) { f = s[i]; i++; }
         for (; i + 3 < sp; i += 4) {
            if (b0 == 0x1B)
               stbtt__csctx_rccurve_to(c, s[i], f, s[i+1], s[i+2], s[i+3], 0.0);
            else
               stbtt__csctx_rccurve_to(c, f, s[i], s[i+1], s[i+2], 0.0, s[i+3]);
            f = 0.0;
         }
         break;

      case 0x0A: // callsubr
         if (!has_subrs) {
            if (info->fdselect.size)
               subrs = stbtt__cid_get_glyph_subrs(info, glyph_index);
            has_subrs = 1;
         }
         // fallthrough
      case 0x1D: // callgsubr
         if (sp < 1) return STBTT__CSERR("call(g|)subr stack");
         v = (int) s[--sp];
         if (subr_stack_height >= 10) return STBTT__CSERR("recursion limit");
         subr_stack[subr_stack_height++] = b;
         b = stbtt__get_subr(b0 == 0x0A ? subrs : info->gsubrs, v);
         if (b.size == 0) return STBTT__CSERR("subr not found");
         b.cursor = 0;
         clear_stack = 0;
         break;

      case 0x0B: // return
         if (subr_stack_height <= 0) return STBTT__CSERR("return outside subr");
         b = subr_stack[--subr_stack_height];
         clear_stack = 0;
         break;

      case 0x0E: // endchar
         stbtt__csctx_close_shape(c);
         return 1;

      case 0x0C: { // two-byte escape
         float dx1, dx2, dx3, dx4, dx5, dx6, dy1, dy2, dy3, dy4, dy5, dy6;
         float dx, dy;
         int b1 = stbtt__buf_get8(&b);
         switch (b1) {
         // @TODO These "flex" implementations ignore the flex-depth and resolution,
         // and always draw beziers.
         case 0x22: // hflex
            if (sp < 7) return STBTT__CSERR("hflex stack");
            dx1 = s[0];
            dx2 = s[1];
            dy2 = s[2];
            dx3 = s[3];
            dx4 = s[4];
            dx5 = s[5];
            dx6 = s[6];
            stbtt__csctx_rccurve_to(c, dx1, 0, dx2, dy2, dx3, 0);
            stbtt__csctx_rccurve_to(c, dx4, 0, dx5, -dy2, dx6, 0);
            break;

         case 0x23: // flex
            if (sp < 13) return STBTT__CSERR("flex stack");
            dx1 = s[0];
            dy1 = s[1];
            dx2 = s[2];
            dy2 = s[3];
            dx3 = s[4];
            dy3 = s[5];
            dx4 = s[6];
            dy4 = s[7];
            dx5 = s[8];
            dy5 = s[9];
            dx6 = s[10];
            dy6 = s[11];
            //fd is s[12]
            stbtt__csctx_rccurve_to(c, dx1, dy1, dx2, dy2, dx3, dy3);
            stbtt__csctx_rccurve_to(c, dx4, dy4, dx5, dy5, dx6, dy6);
            break;

         case 0x24: // hflex1
            if (sp < 9) return STBTT__CSERR("hflex1 stack");
            dx1 = s[0];
            dy1 = s[1];
            dx2 = s[2];
            dy2 = s[3];
            dx3 = s[4];
            dx4 = s[5];
            dx5 = s[6];
            dy5 = s[7];
            dx6 = s[8];
            stbtt__csctx_rccurve_to(c, dx1, dy1, dx2, dy2, dx3, 0);
            stbtt__csctx_rccurve_to(c, dx4, 0, dx5, dy5, dx6, -(dy1+dy2+dy5));
            break;

         case 0x25: // flex1
            if (sp < 11) return STBTT__CSERR("flex1 stack");
            dx1 = s[0];
            dy1 = s[1];
            dx2 = s[2];
            dy2 = s[3];
            dx3 = s[4];
            dy3 = s[5];
            dx4 = s[6];
            dy4 = s[7];
            dx5 = s[8];
            dy5 = s[9];
            dx6 = dy6 = s[10];
            dx = dx1+dx2+dx3+dx4+dx5;
            dy = dy1+dy2+dy3+dy4+dy5;
            if (STBTT_fabs(dx) > STBTT_fabs(dy))
               dy6 = -dy;
            else
               dx6 = -dx;
            stbtt__csctx_rccurve_to(c, dx1, dy1, dx2, dy2, dx3, dy3);
            stbtt__csctx_rccurve_to(c, dx4, dy4, dx5, dy5, dx6, dy6);
            break;

         default:
            return STBTT__CSERR("unimplemented");
         }
      } break;

      default:
         if (b0 != 255 && b0 != 28 && (b0 < 32 || b0 > 254))
            return STBTT__CSERR("reserved operator");

         // push immediate
         if (b0 == 255) {
            f = (float)(stbtt_int32)stbtt__buf_get32(&b) / 0x10000;
         } else {
            stbtt__buf_skip(&b, -1);
            f = (float)(stbtt_int16)stbtt__cff_int(&b);
         }
         if (sp >= 48) return STBTT__CSERR("push stack overflow");
         s[sp++] = f;
         clear_stack = 0;
         break;
      }
      if (clear_stack) sp = 0;
   }
   return STBTT__CSERR("no endchar");

#undef STBTT__CSERR
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x208, %rsp            # imm = 0x208
movq %rdx, %rbx
movl %esi, %edx
movq %rdi, %r14
movq 0x70(%rdi), %rax
movq %rax, -0x80(%rbp)
movq 0x78(%rdi), %rax
movq %rax, -0x188(%rbp)
movq 0x50(%rdi), %rdi
movq 0x58(%r14), %rsi
movl %edx, -0x74(%rbp)
callq 0xa8e5
leaq -0x60(%rbp), %rcx
movq %rax, (%rcx)
movq %rdx, 0x8(%rcx)
movq %r14, -0x98(%rbp)
leaq 0x90(%r14), %rax
movq %rax, -0x190(%rbp)
movq %rdx, %rax
shrq $0x20, %rax
pushq $0x1
popq %rcx
xorl %r15d, %r15d
xorl %r13d, %r13d
movq $0x0, -0x68(%rbp)
movq $0x0, -0x70(%rbp)
movl %ecx, -0x38(%rbp)
cmpl %eax, %edx
jge 0xa8bf
movq -0x60(%rbp), %rcx
movslq %edx, %rdi
leaq 0x1(%rdi), %rsi
movl %esi, -0x58(%rbp)
movb (%rcx,%rdi), %r12b
movzbl %r12b, %edi
leal -0x1(%rdi), %r8d
cmpl $0x1e, %r8d
ja 0x9ea0
leaq 0x22b2(%rip), %r9       # 0xc08c
movslq (%r9,%r8,4), %rdi
addq %r9, %rdi
movl %r13d, %r14d
jmpq *%rdi
movl %r13d, %eax
cltd
pushq $0x2
popq %rcx
idivl %ecx
movq -0x70(%rbp), %rcx
addl %eax, %ecx
movq %rcx, -0x70(%rbp)
jmp 0xa333
cmpl $0x0, -0x38(%rbp)
je 0xa310
movl %r13d, %eax
cltd
pushq $0x2
popq %rcx
idivl %ecx
movq -0x70(%rbp), %rcx
addl %eax, %ecx
movq %rcx, %rax
jmp 0xa314
cmpl $0x4, %r13d
jl 0xa8bf
xorps %xmm1, %xmm1
andl $0x1, %r13d
je 0x9e3a
movss -0x160(%rbp), %xmm1
addq $0x3, %r13
cmpq %r14, %r13
jae 0xa333
movss -0x16c(%rbp,%r13,4), %xmm7
movss -0x168(%rbp,%r13,4), %xmm2
movss -0x164(%rbp,%r13,4), %xmm3
movss -0x160(%rbp,%r13,4), %xmm6
cmpb $0x1b, %r12b
jne 0x9e83
xorps %xmm5, %xmm5
movq %rbx, %rdi
movaps %xmm7, %xmm0
movaps %xmm6, %xmm4
jmp 0x9e92
xorps %xmm4, %xmm4
movq %rbx, %rdi
movaps %xmm1, %xmm0
movaps %xmm7, %xmm1
movaps %xmm6, %xmm5
callq 0xaab7
addq $0x4, %r13
xorps %xmm1, %xmm1
jmp 0x9e3e
cmpl $0xff, %edi
je 0x9ed6
cmpb $0x20, %r12b
jb 0xa8bf
cmpb $-0x1, %r12b
je 0x9ed6
leaq -0x60(%rbp), %r14
movq %r14, %rdi
pushq $-0x1
popq %rsi
callq 0xa9fa
movq %r14, %rdi
callq 0xab8f
cwtl
cvtsi2ss %eax, %xmm0
jmp 0x9eee
leaq -0x60(%rbp), %rdi
pushq $0x4
popq %rsi
callq 0xab50
cvtsi2ss %eax, %xmm0
mulss 0x3c32(%rip), %xmm0     # 0xdb20
cmpl $0x2f, %r13d
jg 0xa8bf
movslq %r13d, %rax
incl %r13d
movss %xmm0, -0x160(%rbp,%rax,4)
jmp 0xa336
cmpl $0x8, %r13d
jl 0xa8bf
leal -0x6(%r13), %r12d
pushq $0x2
popq %r14
leaq -0x1(%r14), %rax
cmpq %r12, %rax
jae 0xa281
movss -0x168(%rbp,%r14,4), %xmm0
movss -0x164(%rbp,%r14,4), %xmm1
movq %rbx, %rdi
callq 0xaa76
addq $0x2, %r14
jmp 0x9f1e
cmpl $0x8, %r13d
jl 0xa8bf
leal -0x2(%r13), %r12d
pushq $0x5
popq %r14
cmpq %r12, %r14
jae 0xa2e5
movss -0x174(%rbp,%r14,4), %xmm0
movss -0x170(%rbp,%r14,4), %xmm1
movss -0x16c(%rbp,%r14,4), %xmm2
movss -0x168(%rbp,%r14,4), %xmm3
movss -0x164(%rbp,%r14,4), %xmm4
movss -0x160(%rbp,%r14,4), %xmm5
movq %rbx, %rdi
callq 0xaab7
addq $0x6, %r14
jmp 0x9f5f
xorl %r14d, %r14d
testl %r13d, %r13d
jg 0xa877
jmp 0xa8c2
movq -0x68(%rbp), %rax
testl %eax, %eax
jle 0xa8bf
decl %eax
movq %rax, -0x68(%rbp)
shlq $0x4, %rax
movups -0x230(%rbp,%rax), %xmm0
movaps %xmm0, -0x60(%rbp)
jmp 0xa336
xorl %r14d, %r14d
testl %r13d, %r13d
jg 0xa89a
jmp 0xa8c2
cmpl $0x2, %r13d
jl 0xa8bf
pushq $0x1
popq %r12
cmpq %r14, %r12
jae 0xa333
movss -0x164(%rbp,%r12,4), %xmm0
movss -0x160(%rbp,%r12,4), %xmm1
movq %rbx, %rdi
callq 0xaa76
addq $0x2, %r12
jmp 0xa009
testl %r13d, %r13d
jle 0xa8bf
decl %r13d
movss -0x160(%rbp,%r13,4), %xmm1
xorps %xmm0, %xmm0
jmp 0xa274
testl %r15d, %r15d
jne 0xa6cd
movq -0x98(%rbp), %rax
cmpl $0x0, 0x9c(%rax)
pushq $0x1
popq %r15
je 0xa6d1
movq -0x190(%rbp), %rax
movups (%rax), %xmm0
movaps %xmm0, -0x50(%rbp)
leaq -0x50(%rbp), %rdi
xorl %esi, %esi
callq 0xac33
movslq -0x48(%rbp), %rax
cmpl -0x44(%rbp), %eax
jge 0xa0b8
movq -0x50(%rbp), %rcx
leal 0x1(%rax), %edx
movl %edx, -0x48(%rbp)
movzbl (%rcx,%rax), %eax
cmpl $0x3, %eax
je 0xa616
pushq $-0x1
popq %r15
testl %eax, %eax
jne 0xa692
leaq -0x50(%rbp), %rdi
movl -0x74(%rbp), %esi
callq 0xa9fa
movslq -0x48(%rbp), %rax
xorl %r15d, %r15d
cmpl -0x44(%rbp), %eax
jge 0xa692
movq -0x50(%rbp), %rcx
movzbl (%rcx,%rax), %r15d
jmp 0xa692
testl %r13d, %r13d
jle 0xa8bf
decl %r13d
movss -0x160(%rbp,%r13,4), %xmm0
xorps %xmm1, %xmm1
jmp 0xa274
cmpl $0x6, %r13d
jl 0xa8bf
pushq $0x5
popq %r12
cmpq %r14, %r12
jae 0xa333
movss -0x174(%rbp,%r12,4), %xmm0
movss -0x170(%rbp,%r12,4), %xmm1
movss -0x16c(%rbp,%r12,4), %xmm2
movss -0x168(%rbp,%r12,4), %xmm3
movss -0x164(%rbp,%r12,4), %xmm4
movss -0x160(%rbp,%r12,4), %xmm5
movq %rbx, %rdi
callq 0xaab7
addq $0x6, %r12
jmp 0xa10e
xorl %r12d, %r12d
movl $0x0, %r14d
cmpl $0x4, %r13d
jge 0xa812
jmp 0xa8c2
xorl %r12d, %r12d
movl $0x0, %r14d
cmpl $0x4, %r13d
jge 0xa7b2
jmp 0xa8c2
cmpl %eax, %esi
jge 0xa8bf
addl $0x2, %edx
movl %edx, -0x58(%rbp)
movzbl (%rcx,%rsi), %eax
addl $-0x22, %eax
cmpl $0x3, %eax
ja 0xa8bf
leaq 0x1f52(%rip), %rcx      # 0xc108
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
cmpl $0x7, %r13d
jl 0xa8bf
movss -0x160(%rbp), %xmm0
movss -0x15c(%rbp), %xmm2
movss -0x158(%rbp), %xmm3
movaps %xmm3, -0x90(%rbp)
movss -0x154(%rbp), %xmm4
movss -0x150(%rbp), %xmm1
movss %xmm1, -0x30(%rbp)
movss -0x14c(%rbp), %xmm1
movss %xmm1, -0x2c(%rbp)
movss -0x148(%rbp), %xmm1
movss %xmm1, -0x34(%rbp)
xorps %xmm1, %xmm1
xorps %xmm5, %xmm5
movq %rbx, %rdi
callq 0xaab7
movaps -0x90(%rbp), %xmm3
xorps 0x38fd(%rip), %xmm3     # 0xdb30
xorps %xmm1, %xmm1
xorps %xmm5, %xmm5
movq %rbx, %rdi
movss -0x30(%rbp), %xmm0
movss -0x2c(%rbp), %xmm2
movss -0x34(%rbp), %xmm4
jmp 0xa2de
cmpl $0x2, %r13d
jl 0xa8bf
leal -0x2(%r13), %eax
movss -0x160(%rbp,%rax,4), %xmm0
decl %r13d
movss -0x160(%rbp,%r13,4), %xmm1
movq %rbx, %rdi
callq 0xaa07
jmp 0xa32c
leaq 0x3(%r14), %rax
cmpl %r13d, %eax
jge 0xa8bf
movss -0x168(%rbp,%r14,4), %xmm0
movss -0x164(%rbp,%r14,4), %xmm1
movl %r14d, %ecx
andl $-0x2, %ecx
movss -0x160(%rbp,%rcx,4), %xmm2
leal 0x1(%r14), %ecx
movss -0x160(%rbp,%rcx,4), %xmm3
addl $0x2, %r14d
andl $-0x2, %r14d
movss -0x160(%rbp,%r14,4), %xmm4
movl %eax, %eax
movss -0x160(%rbp,%rax,4), %xmm5
movq %rbx, %rdi
callq 0xaab7
jmp 0xa333
leal -0x4(%r14), %eax
cmpl %r13d, %eax
jge 0xa8bf
movss -0x174(%rbp,%r14,4), %xmm0
movss -0x170(%rbp,%r14,4), %xmm1
movq %rbx, %rdi
callq 0xaa76
jmp 0xa333
movq -0x70(%rbp), %rax
movq %rax, -0x70(%rbp)
addl $0x7, %eax
cltd
pushq $0x8
popq %rcx
idivl %ecx
leaq -0x60(%rbp), %rdi
movl %eax, %esi
callq 0xa9fa
movl $0x0, -0x38(%rbp)
xorl %r13d, %r13d
movl -0x58(%rbp), %edx
movl -0x54(%rbp), %eax
jmp 0x9da7
cmpl $0x9, %r13d
jl 0xa8bf
movss -0x160(%rbp), %xmm0
movss -0x15c(%rbp), %xmm6
movaps %xmm6, -0x170(%rbp)
movss -0x158(%rbp), %xmm2
movss -0x154(%rbp), %xmm3
movss %xmm3, -0x180(%rbp)
movss -0x150(%rbp), %xmm4
movss -0x14c(%rbp), %xmm1
movss %xmm1, -0x34(%rbp)
movss -0x148(%rbp), %xmm1
movss %xmm1, -0x30(%rbp)
movss -0x144(%rbp), %xmm1
movss %xmm1, -0x90(%rbp)
movss -0x140(%rbp), %xmm1
movss %xmm1, -0x2c(%rbp)
xorps %xmm5, %xmm5
movq %rbx, %rdi
movaps %xmm6, %xmm1
callq 0xaab7
movaps -0x170(%rbp), %xmm5
addss -0x180(%rbp), %xmm5
movss -0x90(%rbp), %xmm3
addss %xmm3, %xmm5
xorps 0x3747(%rip), %xmm5     # 0xdb30
xorps %xmm1, %xmm1
movq %rbx, %rdi
movss -0x34(%rbp), %xmm0
movss -0x30(%rbp), %xmm2
movss -0x2c(%rbp), %xmm4
jmp 0xa2de
cmpl $0xb, %r13d
jl 0xa8bf
movss -0x160(%rbp), %xmm0
movss -0x15c(%rbp), %xmm1
movss -0x158(%rbp), %xmm2
movss -0x154(%rbp), %xmm3
movss -0x150(%rbp), %xmm4
movss -0x14c(%rbp), %xmm5
movss -0x148(%rbp), %xmm10
movss -0x144(%rbp), %xmm11
movss -0x140(%rbp), %xmm12
movss -0x13c(%rbp), %xmm13
movss -0x138(%rbp), %xmm6
movaps %xmm0, %xmm7
addss %xmm2, %xmm7
addss %xmm4, %xmm7
addss %xmm10, %xmm7
addss %xmm12, %xmm7
movaps %xmm1, %xmm14
addss %xmm3, %xmm14
addss %xmm5, %xmm14
addss %xmm11, %xmm14
addss %xmm13, %xmm14
movaps %xmm7, %xmm8
movaps 0x369e(%rip), %xmm9     # 0xdb40
andps %xmm9, %xmm8
movaps %xmm14, %xmm15
andps %xmm9, %xmm15
ucomiss %xmm15, %xmm8
movss %xmm10, -0x34(%rbp)
movss %xmm11, -0x30(%rbp)
movss %xmm12, -0x2c(%rbp)
movss %xmm13, -0x90(%rbp)
ja 0xa5af
movaps %xmm6, -0x170(%rbp)
movaps 0x364e(%rip), %xmm9     # 0xdb30
jmp 0xa5c3
cmpl $0xd, %r13d
jl 0xa8bf
movss -0x160(%rbp), %xmm0
movss -0x15c(%rbp), %xmm1
movss -0x158(%rbp), %xmm2
movss -0x154(%rbp), %xmm3
movss -0x150(%rbp), %xmm4
movss -0x14c(%rbp), %xmm5
movss -0x148(%rbp), %xmm6
movss %xmm6, -0x34(%rbp)
movss -0x144(%rbp), %xmm6
movss %xmm6, -0x30(%rbp)
movss -0x140(%rbp), %xmm6
movss %xmm6, -0x2c(%rbp)
movss -0x13c(%rbp), %xmm6
movss %xmm6, -0x90(%rbp)
movss -0x138(%rbp), %xmm6
movss %xmm6, -0x170(%rbp)
movss -0x134(%rbp), %xmm6
movss %xmm6, -0x180(%rbp)
movq %rbx, %rdi
callq 0xaab7
movq %rbx, %rdi
movss -0x34(%rbp), %xmm0
movss -0x30(%rbp), %xmm1
movss -0x2c(%rbp), %xmm2
movss -0x90(%rbp), %xmm3
movss -0x170(%rbp), %xmm4
movss -0x180(%rbp), %xmm5
jmp 0xa2de
movaps 0x3579(%rip), %xmm9     # 0xdb30
xorps %xmm9, %xmm14
movaps %xmm14, -0x170(%rbp)
xorps %xmm9, %xmm7
cmpltss %xmm8, %xmm15
andps %xmm15, %xmm6
andnps %xmm7, %xmm15
orps %xmm6, %xmm15
movaps %xmm15, -0x180(%rbp)
movq %rbx, %rdi
callq 0xaab7
movq %rbx, %rdi
movss -0x34(%rbp), %xmm0
movss -0x30(%rbp), %xmm1
movss -0x2c(%rbp), %xmm2
movss -0x90(%rbp), %xmm3
movaps -0x180(%rbp), %xmm4
movaps -0x170(%rbp), %xmm5
jmp 0xa2de
leaq -0x50(%rbp), %rdi
pushq $0x2
popq %r15
movl %r15d, %esi
callq 0xab50
movl %eax, %r14d
leaq -0x50(%rbp), %rdi
movl %r15d, %esi
callq 0xab50
movl %eax, %ecx
testl %r14d, %r14d
movl $0x0, %eax
cmovlel %eax, %r14d
incl %r14d
decl %r14d
je 0xa68e
movl %ecx, -0x80(%rbp)
movslq -0x48(%rbp), %rax
xorl %r15d, %r15d
cmpl -0x44(%rbp), %eax
jge 0xa669
movq -0x50(%rbp), %rcx
leal 0x1(%rax), %edx
movl %edx, -0x48(%rbp)
movzbl (%rcx,%rax), %r15d
leaq -0x50(%rbp), %rdi
pushq $0x2
popq %rsi
callq 0xab50
movl -0x74(%rbp), %edx
cmpl %edx, -0x80(%rbp)
setle %cl
cmpl %edx, %eax
setg %dl
andb %cl, %dl
movl %eax, %ecx
cmpb $0x1, %dl
jne 0xa646
jmp 0xa692
pushq $-0x1
popq %r15
movq -0x98(%rbp), %r14
movq 0x80(%r14), %rdi
movq 0x88(%r14), %rsi
movl %r15d, %edx
callq 0xa8e5
movq %rdx, %rcx
movq 0x40(%r14), %rdi
movq 0x48(%r14), %rsi
movq %rax, %rdx
callq 0xad7c
movq %rax, -0x80(%rbp)
movq %rdx, -0x188(%rbp)
pushq $0x1
popq %r15
testl %r13d, %r13d
jle 0xa8bf
movq -0x68(%rbp), %rax
cmpl $0x9, %eax
jg 0xa8bf
decl %r13d
cvttss2si -0x160(%rbp,%r13,4), %r14d
cltq
shlq $0x4, %rax
movaps -0x60(%rbp), %xmm0
movups %xmm0, -0x230(%rbp,%rax)
movq -0x188(%rbp), %rax
movq -0x80(%rbp), %rcx
cmpb $0xa, %r12b
je 0xa726
movq -0x98(%rbp), %rax
movq 0x60(%rax), %rcx
movq 0x68(%rax), %rax
movq %rcx, -0x50(%rbp)
movq %rax, -0x48(%rbp)
leaq -0x50(%rbp), %r12
movq %r12, %rdi
xorl %esi, %esi
callq 0xac33
movq %r12, %rdi
pushq $0x2
popq %rsi
callq 0xab50
xorl %edx, %edx
cmpl $0x4d8, %eax            # imm = 0x4D8
setge %dl
shll $0xa, %edx
orl $0x6b, %edx
cmpl $0x846c, %eax           # imm = 0x846C
movl $0x8000, %ecx           # imm = 0x8000
cmovgel %ecx, %edx
addl %r14d, %edx
sets %cl
cmpl %eax, %edx
setge %al
orb %cl, %al
movl $0x0, %eax
movl $0x0, %ecx
jne 0xa78d
movq -0x50(%rbp), %rdi
movq -0x48(%rbp), %rsi
callq 0xa8e5
movq %rdx, %rcx
movq %rax, -0x60(%rbp)
movq %rcx, -0x58(%rbp)
shrq $0x20, %rcx
je 0xa8bf
movq -0x68(%rbp), %rax
incl %eax
movq %rax, -0x68(%rbp)
andl $0x0, -0x58(%rbp)
jmp 0xa336
leal 0x3(%r12), %eax
cmpl %r13d, %eax
jge 0xa333
movslq %r12d, %rcx
movss -0x160(%rbp,%rcx,4), %xmm1
movss -0x15c(%rbp,%rcx,4), %xmm2
movss -0x158(%rbp,%rcx,4), %xmm3
cltq
movss -0x160(%rbp,%rax,4), %xmm4
movl %r13d, %eax
subl %r12d, %eax
addl $0x4, %r12d
xorps %xmm5, %xmm5
cmpl $0x5, %eax
jne 0xa807
movslq %r12d, %rax
movss -0x160(%rbp,%rax,4), %xmm5
xorps %xmm0, %xmm0
movq %rbx, %rdi
callq 0xaab7
leal 0x3(%r12), %eax
cmpl %r13d, %eax
jge 0xa333
movslq %r12d, %rcx
movss -0x160(%rbp,%rcx,4), %xmm0
movss -0x15c(%rbp,%rcx,4), %xmm2
movss -0x158(%rbp,%rcx,4), %xmm3
movl %r13d, %ecx
subl %r12d, %ecx
addl $0x4, %r12d
xorps %xmm4, %xmm4
cmpl $0x5, %ecx
jne 0xa85c
movslq %r12d, %rcx
movss -0x160(%rbp,%rcx,4), %xmm4
cltq
movss -0x160(%rbp,%rax,4), %xmm5
xorps %xmm1, %xmm1
movq %rbx, %rdi
callq 0xaab7
jmp 0xa7b2
cmpl %r13d, %r14d
jge 0xa333
movslq %r14d, %rax
movss -0x160(%rbp,%rax,4), %xmm0
xorps %xmm1, %xmm1
movq %rbx, %rdi
callq 0xaa76
incl %r14d
cmpl %r13d, %r14d
jge 0xa333
movslq %r14d, %rax
movss -0x160(%rbp,%rax,4), %xmm1
xorps %xmm0, %xmm0
movq %rbx, %rdi
callq 0xaa76
incl %r14d
jmp 0xa877
xorl %r14d, %r14d
movl %r14d, %eax
addq $0x208, %rsp            # imm = 0x208
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, %rdi
callq 0xab09
pushq $0x1
popq %r14
jmp 0xa8c2