// File: /workspace/github_cpp_makefile_star2_O2/Ciaxur[P]yagb-emu/include/imgui/imstb_truetype.h
// Function: stbtt__run_charstring(stbtt_fontinfo const*, int, stbtt__csctx*)
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)) //-V560
            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 $0x228, %rsp            # imm = 0x228
movq %rdx, %rbx
movl %esi, %edx
movq %rdi, %r14
movq 0x70(%rdi), %rax
movq %rax, -0x58(%rbp)
movq 0x78(%rdi), %rax
leaq -0x198(%rbp), %rcx
movq %rax, (%rcx)
movq 0x50(%rdi), %rdi
movq 0x58(%r14), %rsi
movl %edx, -0x84(%rbp)
callq 0x6ca8c
leaq -0x70(%rbp), %rcx
movq %rax, (%rcx)
movq %rdx, 0x8(%rcx)
leaq 0x90(%r14), %rax
movq %rax, -0x1a0(%rbp)
movq %r14, -0xa8(%rbp)
leaq 0x68(%r14), %rax
movq %rax, -0x1a8(%rbp)
movq %rdx, %rax
shrq $0x20, %rax
pushq $0x1
popq %rcx
xorl %r15d, %r15d
xorl %r13d, %r13d
movq $0x0, -0x78(%rbp)
movq $0x0, -0x80(%rbp)
movl %ecx, -0x38(%rbp)
cmpl %eax, %edx
jge 0x6dae9
movq -0x70(%rbp), %rcx
movslq %edx, %rdi
leaq 0x1(%rdi), %rsi
movl %esi, -0x68(%rbp)
movb (%rcx,%rdi), %r12b
movzbl %r12b, %edi
leal -0x1(%rdi), %r8d
cmpl $0x1e, %r8d
ja 0x6d0b4
leaq 0x40d46(%rip), %r9      # 0xadd34
movslq (%r9,%r8,4), %rdi
addq %r9, %rdi
movl %r13d, %r14d
jmpq *%rdi
movl %r13d, %eax
cltd
pushq $0x2
popq %rcx
idivl %ecx
movq -0x80(%rbp), %rcx
addl %eax, %ecx
movq %rcx, -0x80(%rbp)
jmp 0x6d54f
cmpl $0x0, -0x38(%rbp)
je 0x6d52c
movl %r13d, %eax
cltd
pushq $0x2
popq %rcx
idivl %ecx
movq -0x80(%rbp), %rcx
addl %eax, %ecx
movq %rcx, %rax
jmp 0x6d530
cmpl $0x4, %r13d
jl 0x6dae9
xorps %xmm1, %xmm1
andl $0x1, %r13d
je 0x6d04e
movss -0x170(%rbp), %xmm1
addq $0x3, %r13
cmpq %r14, %r13
jae 0x6d54f
movss -0x17c(%rbp,%r13,4), %xmm7
movss -0x178(%rbp,%r13,4), %xmm2
movss -0x174(%rbp,%r13,4), %xmm3
movss -0x170(%rbp,%r13,4), %xmm6
cmpb $0x1b, %r12b
jne 0x6d097
xorps %xmm5, %xmm5
movq %rbx, %rdi
movaps %xmm7, %xmm0
movaps %xmm6, %xmm4
jmp 0x6d0a6
xorps %xmm4, %xmm4
movq %rbx, %rdi
movaps %xmm1, %xmm0
movaps %xmm7, %xmm1
movaps %xmm6, %xmm5
callq 0x6dbbf
addq $0x4, %r13
xorps %xmm1, %xmm1
jmp 0x6d052
cmpl $0xff, %edi
je 0x6d0ea
cmpb $0x20, %r12b
jb 0x6dae9
cmpb $-0x1, %r12b
je 0x6d0ea
leaq -0x70(%rbp), %r14
movq %r14, %rdi
pushq $-0x1
popq %rsi
callq 0x6c9a4
movq %r14, %rdi
callq 0x6cdd9
cwtl
cvtsi2ss %eax, %xmm0
jmp 0x6d102
leaq -0x70(%rbp), %rdi
pushq $0x4
popq %rsi
callq 0x6cd9a
cvtsi2ss %eax, %xmm0
mulss 0x40baa(%rip), %xmm0    # 0xadcac
cmpl $0x2f, %r13d
jg 0x6dae9
movslq %r13d, %rax
incl %r13d
movss %xmm0, -0x170(%rbp,%rax,4)
jmp 0x6d552
cmpl $0x8, %r13d
jl 0x6dae9
leal -0x6(%r13), %r12d
pushq $0x2
popq %r14
leaq -0x1(%r14), %rax
cmpq %r12, %rax
jae 0x6d49d
movss -0x178(%rbp,%r14,4), %xmm0
movss -0x174(%rbp,%r14,4), %xmm1
movq %rbx, %rdi
callq 0x6db7e
addq $0x2, %r14
jmp 0x6d132
cmpl $0x8, %r13d
jl 0x6dae9
leal -0x2(%r13), %r12d
pushq $0x5
popq %r14
cmpq %r12, %r14
jae 0x6d501
movss -0x184(%rbp,%r14,4), %xmm0
movss -0x180(%rbp,%r14,4), %xmm1
movss -0x17c(%rbp,%r14,4), %xmm2
movss -0x178(%rbp,%r14,4), %xmm3
movss -0x174(%rbp,%r14,4), %xmm4
movss -0x170(%rbp,%r14,4), %xmm5
movq %rbx, %rdi
callq 0x6dbbf
addq $0x6, %r14
jmp 0x6d173
xorl %r14d, %r14d
testl %r13d, %r13d
jg 0x6daa1
jmp 0x6daec
movq -0x78(%rbp), %rax
testl %eax, %eax
jle 0x6dae9
decl %eax
movq %rax, -0x78(%rbp)
shlq $0x4, %rax
movups -0x250(%rbp,%rax), %xmm0
movaps %xmm0, -0x70(%rbp)
jmp 0x6d552
xorl %r14d, %r14d
testl %r13d, %r13d
jg 0x6dac4
jmp 0x6daec
cmpl $0x2, %r13d
jl 0x6dae9
pushq $0x1
popq %r12
cmpq %r14, %r12
jae 0x6d54f
movss -0x174(%rbp,%r12,4), %xmm0
movss -0x170(%rbp,%r12,4), %xmm1
movq %rbx, %rdi
callq 0x6db7e
addq $0x2, %r12
jmp 0x6d21d
testl %r13d, %r13d
jle 0x6dae9
decl %r13d
movss -0x170(%rbp,%r13,4), %xmm1
xorps %xmm0, %xmm0
jmp 0x6d490
testl %r15d, %r15d
jne 0x6d8f1
movq -0xa8(%rbp), %rax
cmpl $0x0, 0x9c(%rax)
pushq $0x1
popq %r15
je 0x6d8f5
movq -0x1a0(%rbp), %rax
movups (%rax), %xmm0
movaps %xmm0, -0x50(%rbp)
leaq -0x50(%rbp), %rdi
xorl %esi, %esi
callq 0x6c9ae
movslq -0x48(%rbp), %rax
cmpl -0x44(%rbp), %eax
jge 0x6d2ce
movq -0x50(%rbp), %rcx
leal 0x1(%rax), %edx
movl %edx, -0x48(%rbp)
movzbl (%rcx,%rax), %eax
cmpl $0x3, %eax
je 0x6d832
pushq $-0x1
popq %rcx
movl %ecx, -0x58(%rbp)
testl %eax, %eax
jne 0x6d8b0
leaq -0x50(%rbp), %rdi
movl -0x84(%rbp), %esi
callq 0x6c9a4
movslq -0x48(%rbp), %rax
movl $0x0, -0x58(%rbp)
cmpl -0x44(%rbp), %eax
jge 0x6d8b0
movq -0x50(%rbp), %rcx
movzbl (%rcx,%rax), %eax
jmp 0x6d8ad
testl %r13d, %r13d
jle 0x6dae9
decl %r13d
movss -0x170(%rbp,%r13,4), %xmm0
xorps %xmm1, %xmm1
jmp 0x6d490
cmpl $0x6, %r13d
jl 0x6dae9
pushq $0x5
popq %r12
cmpq %r14, %r12
jae 0x6d54f
movss -0x184(%rbp,%r12,4), %xmm0
movss -0x180(%rbp,%r12,4), %xmm1
movss -0x17c(%rbp,%r12,4), %xmm2
movss -0x178(%rbp,%r12,4), %xmm3
movss -0x174(%rbp,%r12,4), %xmm4
movss -0x170(%rbp,%r12,4), %xmm5
movq %rbx, %rdi
callq 0x6dbbf
addq $0x6, %r12
jmp 0x6d32a
xorl %r12d, %r12d
movl $0x0, %r14d
cmpl $0x4, %r13d
jge 0x6da3c
jmp 0x6daec
xorl %r12d, %r12d
movl $0x0, %r14d
cmpl $0x4, %r13d
jge 0x6d9dc
jmp 0x6daec
cmpl %eax, %esi
jge 0x6dae9
addl $0x2, %edx
movl %edx, -0x68(%rbp)
movzbl (%rcx,%rsi), %eax
addl $-0x22, %eax
cmpl $0x3, %eax
ja 0x6dae9
leaq 0x409de(%rip), %rcx     # 0xaddb0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
cmpl $0x7, %r13d
jl 0x6dae9
movss -0x170(%rbp), %xmm0
movss -0x16c(%rbp), %xmm2
movss -0x168(%rbp), %xmm3
movaps %xmm3, -0xa0(%rbp)
movss -0x164(%rbp), %xmm4
movss -0x160(%rbp), %xmm1
movss %xmm1, -0x30(%rbp)
movss -0x15c(%rbp), %xmm1
movss %xmm1, -0x2c(%rbp)
movss -0x158(%rbp), %xmm1
movss %xmm1, -0x34(%rbp)
xorps %xmm1, %xmm1
xorps %xmm5, %xmm5
movq %rbx, %rdi
callq 0x6dbbf
movaps -0xa0(%rbp), %xmm3
xorps 0x2eb91(%rip), %xmm3    # 0x9bfe0
xorps %xmm1, %xmm1
xorps %xmm5, %xmm5
movq %rbx, %rdi
movss -0x30(%rbp), %xmm0
movss -0x2c(%rbp), %xmm2
movss -0x34(%rbp), %xmm4
jmp 0x6d4fa
cmpl $0x2, %r13d
jl 0x6dae9
leal -0x2(%r13), %eax
movss -0x170(%rbp,%rax,4), %xmm0
decl %r13d
movss -0x170(%rbp,%r13,4), %xmm1
movq %rbx, %rdi
callq 0x6db0f
jmp 0x6d548
leaq 0x3(%r14), %rax
cmpl %r13d, %eax
jge 0x6dae9
movss -0x178(%rbp,%r14,4), %xmm0
movss -0x174(%rbp,%r14,4), %xmm1
movl %r14d, %ecx
andl $-0x2, %ecx
movss -0x170(%rbp,%rcx,4), %xmm2
leal 0x1(%r14), %ecx
movss -0x170(%rbp,%rcx,4), %xmm3
addl $0x2, %r14d
andl $-0x2, %r14d
movss -0x170(%rbp,%r14,4), %xmm4
movl %eax, %eax
movss -0x170(%rbp,%rax,4), %xmm5
movq %rbx, %rdi
callq 0x6dbbf
jmp 0x6d54f
leal -0x4(%r14), %eax
cmpl %r13d, %eax
jge 0x6dae9
movss -0x184(%rbp,%r14,4), %xmm0
movss -0x180(%rbp,%r14,4), %xmm1
movq %rbx, %rdi
callq 0x6db7e
jmp 0x6d54f
movq -0x80(%rbp), %rax
movq %rax, -0x80(%rbp)
addl $0x7, %eax
cltd
pushq $0x8
popq %rcx
idivl %ecx
leaq -0x70(%rbp), %rdi
movl %eax, %esi
callq 0x6c9a4
movl $0x0, -0x38(%rbp)
xorl %r13d, %r13d
movl -0x68(%rbp), %edx
movl -0x64(%rbp), %eax
jmp 0x6cfbb
cmpl $0x9, %r13d
jl 0x6dae9
movss -0x170(%rbp), %xmm0
movss -0x16c(%rbp), %xmm6
movaps %xmm6, -0x180(%rbp)
movss -0x168(%rbp), %xmm2
movss -0x164(%rbp), %xmm3
movss %xmm3, -0x190(%rbp)
movss -0x160(%rbp), %xmm4
movss -0x15c(%rbp), %xmm1
movss %xmm1, -0x34(%rbp)
movss -0x158(%rbp), %xmm1
movss %xmm1, -0x30(%rbp)
movss -0x154(%rbp), %xmm1
movss %xmm1, -0xa0(%rbp)
movss -0x150(%rbp), %xmm1
movss %xmm1, -0x2c(%rbp)
xorps %xmm5, %xmm5
movq %rbx, %rdi
movaps %xmm6, %xmm1
callq 0x6dbbf
movaps -0x180(%rbp), %xmm5
addss -0x190(%rbp), %xmm5
movss -0xa0(%rbp), %xmm3
addss %xmm3, %xmm5
xorps 0x2e9db(%rip), %xmm5    # 0x9bfe0
xorps %xmm1, %xmm1
movq %rbx, %rdi
movss -0x34(%rbp), %xmm0
movss -0x30(%rbp), %xmm2
movss -0x2c(%rbp), %xmm4
jmp 0x6d4fa
cmpl $0xb, %r13d
jl 0x6dae9
movss -0x170(%rbp), %xmm0
movss -0x16c(%rbp), %xmm1
movss -0x168(%rbp), %xmm2
movss -0x164(%rbp), %xmm3
movss -0x160(%rbp), %xmm4
movss -0x15c(%rbp), %xmm5
movss -0x158(%rbp), %xmm10
movss -0x154(%rbp), %xmm11
movss -0x150(%rbp), %xmm12
movss -0x14c(%rbp), %xmm13
movss -0x148(%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 0x2f132(%rip), %xmm9    # 0x9c7f0
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, -0xa0(%rbp)
ja 0x6d7cb
movaps %xmm6, -0x180(%rbp)
movaps 0x2e8e2(%rip), %xmm9    # 0x9bfe0
jmp 0x6d7df
cmpl $0xd, %r13d
jl 0x6dae9
movss -0x170(%rbp), %xmm0
movss -0x16c(%rbp), %xmm1
movss -0x168(%rbp), %xmm2
movss -0x164(%rbp), %xmm3
movss -0x160(%rbp), %xmm4
movss -0x15c(%rbp), %xmm5
movss -0x158(%rbp), %xmm6
movss %xmm6, -0x34(%rbp)
movss -0x154(%rbp), %xmm6
movss %xmm6, -0x30(%rbp)
movss -0x150(%rbp), %xmm6
movss %xmm6, -0x2c(%rbp)
movss -0x14c(%rbp), %xmm6
movss %xmm6, -0xa0(%rbp)
movss -0x148(%rbp), %xmm6
movss %xmm6, -0x180(%rbp)
movss -0x144(%rbp), %xmm6
movss %xmm6, -0x190(%rbp)
movq %rbx, %rdi
callq 0x6dbbf
movq %rbx, %rdi
movss -0x34(%rbp), %xmm0
movss -0x30(%rbp), %xmm1
movss -0x2c(%rbp), %xmm2
movss -0xa0(%rbp), %xmm3
movss -0x180(%rbp), %xmm4
movss -0x190(%rbp), %xmm5
jmp 0x6d4fa
movaps 0x2e80d(%rip), %xmm9    # 0x9bfe0
xorps %xmm9, %xmm14
movaps %xmm14, -0x180(%rbp)
xorps %xmm9, %xmm7
cmpltss %xmm8, %xmm15
andps %xmm15, %xmm6
andnps %xmm7, %xmm15
orps %xmm6, %xmm15
movaps %xmm15, -0x190(%rbp)
movq %rbx, %rdi
callq 0x6dbbf
movq %rbx, %rdi
movss -0x34(%rbp), %xmm0
movss -0x30(%rbp), %xmm1
movss -0x2c(%rbp), %xmm2
movss -0xa0(%rbp), %xmm3
movaps -0x190(%rbp), %xmm4
movaps -0x180(%rbp), %xmm5
jmp 0x6d4fa
leaq -0x50(%rbp), %rdi
pushq $0x2
popq %r15
movl %r15d, %esi
callq 0x6cd9a
movl %eax, %r14d
leaq -0x50(%rbp), %rdi
movl %r15d, %esi
callq 0x6cd9a
movl %eax, %r15d
testl %r14d, %r14d
movl $0x0, %eax
cmovlel %eax, %r14d
incl %r14d
decl %r14d
je 0x6d8aa
movslq -0x48(%rbp), %rax
xorl %ecx, %ecx
cmpl -0x44(%rbp), %eax
jge 0x6d881
movq -0x50(%rbp), %rcx
leal 0x1(%rax), %edx
movl %edx, -0x48(%rbp)
movzbl (%rcx,%rax), %ecx
movl %ecx, -0x58(%rbp)
leaq -0x50(%rbp), %rdi
pushq $0x2
popq %rsi
callq 0x6cd9a
movl -0x84(%rbp), %edx
cmpl %edx, %r15d
setg %cl
cmpl %edx, %eax
setle %dl
orb %cl, %dl
movl %eax, %r15d
jne 0x6d863
jmp 0x6d8b0
pushq $-0x1
popq %rax
movl %eax, -0x58(%rbp)
movq -0xa8(%rbp), %rax
movq 0x40(%rax), %r14
movq 0x48(%rax), %r15
movq 0x80(%rax), %rdi
movq 0x88(%rax), %rsi
movl -0x58(%rbp), %edx
callq 0x6ca8c
movq %rdx, %rcx
movq %r14, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x6ccad
movq %rax, -0x58(%rbp)
movq %rdx, -0x198(%rbp)
pushq $0x1
popq %r15
testl %r13d, %r13d
jle 0x6dae9
movq -0x78(%rbp), %rax
cmpl $0x9, %eax
jg 0x6dae9
decl %r13d
cvttss2si -0x170(%rbp,%r13,4), %r14d
cltq
shlq $0x4, %rax
movaps -0x70(%rbp), %xmm0
movups %xmm0, -0x250(%rbp,%rax)
leaq -0x198(%rbp), %rcx
movq -0x58(%rbp), %rax
cmpb $0xa, %r12b
je 0x6d94d
movq -0xa8(%rbp), %rax
movq 0x60(%rax), %rax
movq -0x1a8(%rbp), %rcx
movq (%rcx), %rcx
movq %rax, -0x50(%rbp)
movq %rcx, -0x48(%rbp)
leaq -0x50(%rbp), %r12
movq %r12, %rdi
xorl %esi, %esi
callq 0x6c9ae
movq %r12, %rdi
pushq $0x2
popq %rsi
callq 0x6cd9a
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 0x6d9b7
movq -0x50(%rbp), %rdi
movq -0x48(%rbp), %rsi
callq 0x6ca8c
movq %rdx, %rcx
movq %rax, -0x70(%rbp)
movq %rcx, -0x68(%rbp)
shrq $0x20, %rcx
je 0x6dae9
movq -0x78(%rbp), %rax
incl %eax
movq %rax, -0x78(%rbp)
andl $0x0, -0x68(%rbp)
jmp 0x6d552
leal 0x3(%r12), %eax
cmpl %r13d, %eax
jge 0x6d54f
movslq %r12d, %rcx
movss -0x170(%rbp,%rcx,4), %xmm1
movss -0x16c(%rbp,%rcx,4), %xmm2
movss -0x168(%rbp,%rcx,4), %xmm3
cltq
movss -0x170(%rbp,%rax,4), %xmm4
movl %r13d, %eax
subl %r12d, %eax
addl $0x4, %r12d
xorps %xmm5, %xmm5
cmpl $0x5, %eax
jne 0x6da31
movslq %r12d, %rax
movss -0x170(%rbp,%rax,4), %xmm5
xorps %xmm0, %xmm0
movq %rbx, %rdi
callq 0x6dbbf
leal 0x3(%r12), %eax
cmpl %r13d, %eax
jge 0x6d54f
movslq %r12d, %rcx
movss -0x170(%rbp,%rcx,4), %xmm0
movss -0x16c(%rbp,%rcx,4), %xmm2
movss -0x168(%rbp,%rcx,4), %xmm3
movl %r13d, %ecx
subl %r12d, %ecx
addl $0x4, %r12d
xorps %xmm4, %xmm4
cmpl $0x5, %ecx
jne 0x6da86
movslq %r12d, %rcx
movss -0x170(%rbp,%rcx,4), %xmm4
cltq
movss -0x170(%rbp,%rax,4), %xmm5
xorps %xmm1, %xmm1
movq %rbx, %rdi
callq 0x6dbbf
jmp 0x6d9dc
cmpl %r13d, %r14d
jge 0x6d54f
movslq %r14d, %rax
movss -0x170(%rbp,%rax,4), %xmm0
xorps %xmm1, %xmm1
movq %rbx, %rdi
callq 0x6db7e
incl %r14d
cmpl %r13d, %r14d
jge 0x6d54f
movslq %r14d, %rax
movss -0x170(%rbp,%rax,4), %xmm1
xorps %xmm0, %xmm0
movq %rbx, %rdi
callq 0x6db7e
incl %r14d
jmp 0x6daa1
xorl %r14d, %r14d
movl %r14d, %eax
addq $0x228, %rsp            # imm = 0x228
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, %rdi
callq 0x6dc11
pushq $0x1
popq %r14
jmp 0x6daec