// File: /workspace/github_cpp_makefile_star2_O3/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 $0x208, %rsp            # imm = 0x208
movq %rdx, %rbx
movl %esi, %r14d
movq %rdi, %r15
movq 0x70(%rdi), %r12
movq 0x78(%rdi), %rax
movq %rax, -0x180(%rbp)
movq 0x50(%rdi), %rdi
movq 0x58(%r15), %rsi
movl %r14d, %edx
callq 0x8353f
movq %rax, -0x50(%rbp)
movq %rdx, -0x48(%rbp)
movq %rdx, %r9
shrq $0x20, %r9
cmpl %r9d, %edx
jge 0x8489f
movq %r12, -0x178(%rbp)
movq %r14, -0x188(%rbp)
incl %r14d
movq %r15, -0x70(%rbp)
leaq 0x68(%r15), %rcx
movq %rcx, -0x190(%rbp)
movl $0x1, -0x38(%rbp)
leaq 0x42e7d(%rip), %r12     # 0xc6a04
movq $0x0, -0x68(%rbp)
movq $0x0, -0x60(%rbp)
xorl %r15d, %r15d
movl $0x0, -0x58(%rbp)
movq %r14, -0x78(%rbp)
movq -0x50(%rbp), %rsi
movslq %edx, %rdi
leaq 0x1(%rdi), %rcx
movl %ecx, -0x48(%rbp)
movb (%rsi,%rdi), %r13b
movzbl %r13b, %edi
leal -0x1(%rdi), %r8d
cmpl $0x1e, %r8d
ja 0x83ca7
movslq (%r12,%r8,4), %rdi
addq %r12, %rdi
jmpq *%rdi
movl %r15d, %eax
shrl $0x1f, %eax
addl %r15d, %eax
sarl %eax
movq -0x68(%rbp), %rcx
addl %eax, %ecx
movq %rcx, -0x68(%rbp)
jmp 0x842b2
cmpl $0x0, -0x38(%rbp)
je 0x84281
movl %r15d, %edx
shrl $0x1f, %edx
addl %r15d, %edx
sarl %edx
movq -0x68(%rbp), %rsi
addl %edx, %esi
movq %rsi, %rdx
jmp 0x84285
cmpl $0x4, %r15d
jl 0x8489f
movl %r15d, %r12d
andl $0x1, %r12d
leal 0x3(%r12), %eax
cmpl %r15d, %eax
jae 0x83c9f
xorps %xmm1, %xmm1
testl %r12d, %r12d
je 0x83c3a
movss -0x150(%rbp), %xmm1
leal 0x3(%r12), %eax
movss -0x150(%rbp,%r12,4), %xmm7
movss -0x14c(%rbp,%r12,4), %xmm2
movss -0x148(%rbp,%r12,4), %xmm3
movss -0x150(%rbp,%rax,4), %xmm6
cmpb $0x1b, %r13b
jne 0x83c7a
xorps %xmm5, %xmm5
movq %rbx, %rdi
movaps %xmm7, %xmm0
movaps %xmm6, %xmm4
jmp 0x83c89
xorps %xmm4, %xmm4
movq %rbx, %rdi
movaps %xmm1, %xmm0
movaps %xmm7, %xmm1
movaps %xmm6, %xmm5
callq 0x8494a
addq $0x4, %r12
leal 0x3(%r12), %eax
xorps %xmm1, %xmm1
cmpl %r15d, %eax
jl 0x83c3a
xorl %r15d, %r15d
jmp 0x8407d
cmpl $0xff, %edi
je 0x83ce6
cmpb $0x20, %r13b
jb 0x8489f
cmpb $-0x1, %r13b
je 0x83ce6
testl %edx, %edx
js 0x848c2
cmpl %edx, %r9d
jl 0x848c2
movl %edx, -0x48(%rbp)
leaq -0x50(%rbp), %rdi
callq 0x83964
cwtl
xorps %xmm0, %xmm0
cvtsi2ss %eax, %xmm0
jmp 0x83d1d
xorl %edx, %edx
movl $0x4, %edi
cmpl %r9d, %ecx
jge 0x83cfe
movslq %ecx, %r8
incl %ecx
movzbl (%rsi,%r8), %r8d
jmp 0x83d01
xorl %r8d, %r8d
shll $0x8, %edx
orl %r8d, %edx
decl %edi
jne 0x83ced
movl %ecx, -0x48(%rbp)
xorps %xmm0, %xmm0
cvtsi2ss %edx, %xmm0
mulss 0x42c5f(%rip), %xmm0    # 0xc697c
cmpl $0x2f, %r15d
jg 0x8489f
movslq %r15d, %rax
incl %r15d
movss %xmm0, -0x150(%rbp,%rax,4)
jmp 0x842b5
movl -0x58(%rbp), %r11d
jmp 0x84604
movl $0x1, %r11d
cmpl $0x0, -0x58(%rbp)
jne 0x84604
movq -0x70(%rbp), %rax
movl 0x9c(%rax), %eax
testl %eax, %eax
je 0x84604
js 0x848c2
movq -0x70(%rbp), %rcx
movq 0x90(%rcx), %rcx
movzbl (%rcx), %edx
testl %edx, %edx
je 0x8459f
cmpl $0x3, %edx
jne 0x83e47
xorl %esi, %esi
movl $0x1, %edi
movl $0x2, %edx
cmpl %eax, %edi
jge 0x83da7
movslq %edi, %r8
incl %edi
movzbl (%rcx,%r8), %r8d
jmp 0x83daa
xorl %r8d, %r8d
shll $0x8, %esi
orl %r8d, %esi
decl %edx
jne 0x83d97
xorl %r8d, %r8d
movl $0x2, %edx
cmpl %eax, %edi
jge 0x83dcc
movslq %edi, %r9
incl %edi
movzbl (%rcx,%r9), %r9d
jmp 0x83dcf
xorl %r9d, %r9d
shll $0x8, %r8d
orl %r9d, %r8d
decl %edx
jne 0x83dbc
testl %esi, %esi
jle 0x83e47
xorl %r9d, %r9d
cmpl %eax, %edi
jge 0x83df0
movslq %edi, %rdx
incl %edi
movzbl (%rcx,%rdx), %edx
jmp 0x83df2
xorl %edx, %edx
xorl %r10d, %r10d
movl $0x2, %r11d
cmpl %eax, %edi
jge 0x83e0b
movslq %edi, %r14
incl %edi
movzbl (%rcx,%r14), %r14d
jmp 0x83e0e
xorl %r14d, %r14d
shll $0x8, %r10d
orl %r14d, %r10d
decl %r11d
jne 0x83dfb
movq -0x188(%rbp), %r11
cmpl %r11d, %r8d
setg %r8b
cmpl %r11d, %r10d
setle %r11b
orb %r8b, %r11b
movq -0x78(%rbp), %r14
je 0x845b4
incl %r9d
movl %r10d, %r8d
cmpl %esi, %r9d
jne 0x83de1
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
jmp 0x845b4
xorl %eax, %eax
cmpl $0x8, %r15d
jl 0x848a1
leal -0x6(%r15), %r13d
movl $0x2, %esi
xorl %r12d, %r12d
movq %rsi, %r14
movss -0x158(%rbp,%rsi,4), %xmm0
movss -0x154(%rbp,%rsi,4), %xmm1
addss 0x10(%rbx), %xmm0
movss %xmm0, 0x10(%rbx)
addss 0x14(%rbx), %xmm1
movss %xmm1, 0x14(%rbx)
cvttss2si %xmm0, %edx
cvttss2si %xmm1, %ecx
movq %rbx, %rdi
movl $0x2, %esi
xorl %r8d, %r8d
xorl %r9d, %r9d
pushq %r12
pushq %r12
callq 0x849e0
addq $0x10, %rsp
leaq 0x2(%r14), %rsi
incq %r14
cmpq %r13, %r14
jb 0x83e69
leaq 0x3(%rsi), %rcx
cmpl %r15d, %ecx
movq -0x78(%rbp), %r14
leaq 0x42b31(%rip), %r12     # 0xc6a04
movl $0x0, %eax
jge 0x848a1
movss -0x158(%rbp,%rsi,4), %xmm0
movss -0x154(%rbp,%rsi,4), %xmm1
movl %esi, %edx
andl $-0x2, %edx
movss -0x150(%rbp,%rdx,4), %xmm2
leal 0x1(%rsi), %edx
movss -0x150(%rbp,%rdx,4), %xmm3
addl $0x2, %esi
andl $-0x2, %esi
movss -0x150(%rbp,%rsi,4), %xmm4
movl %ecx, %eax
movss -0x150(%rbp,%rax,4), %xmm5
movq %rbx, %rdi
callq 0x8494a
jmp 0x842b2
xorl %eax, %eax
testl %r15d, %r15d
jg 0x847e2
jmp 0x848a1
xorl %eax, %eax
cmpl %r9d, %ecx
jge 0x848a1
addl $0x2, %edx
movl %edx, -0x48(%rbp)
movzbl (%rsi,%rcx), %edx
addl $-0x22, %edx
cmpl $0x3, %edx
ja 0x848a1
leaq 0x42b17(%rip), %rcx     # 0xc6a80
movslq (%rcx,%rdx,4), %rdx
addq %rcx, %rdx
jmpq *%rdx
cmpl $0x7, %r15d
jl 0x848a1
movss -0x150(%rbp), %xmm0
movss -0x14c(%rbp), %xmm2
movss -0x148(%rbp), %xmm3
movaps %xmm3, -0x90(%rbp)
movss -0x144(%rbp), %xmm4
movss -0x140(%rbp), %xmm1
movss %xmm1, -0x30(%rbp)
movss -0x13c(%rbp), %xmm1
movss %xmm1, -0x2c(%rbp)
movss -0x138(%rbp), %xmm1
movss %xmm1, -0x34(%rbp)
xorps %xmm1, %xmm1
xorps %xmm5, %xmm5
movq %rbx, %rdi
callq 0x8494a
movaps -0x90(%rbp), %xmm3
xorps 0x30fda(%rip), %xmm3    # 0xb4fc0
xorps %xmm1, %xmm1
xorps %xmm5, %xmm5
movq %rbx, %rdi
movss -0x30(%rbp), %xmm0
movss -0x2c(%rbp), %xmm2
movss -0x34(%rbp), %xmm4
jmp 0x83f27
xorl %eax, %eax
testl %r15d, %r15d
jg 0x8483e
jmp 0x848a1
cmpl $0x2, %r15d
jl 0x8489f
movl %r15d, %r12d
movl $0x1, %r13d
movss -0x154(%rbp,%r13,4), %xmm0
movss -0x150(%rbp,%r13,4), %xmm1
addss 0x10(%rbx), %xmm0
movss %xmm0, 0x10(%rbx)
addss 0x14(%rbx), %xmm1
movss %xmm1, 0x14(%rbx)
cvttss2si %xmm0, %edx
cvttss2si %xmm1, %ecx
xorl %r15d, %r15d
movq %rbx, %rdi
movl $0x2, %esi
xorl %r8d, %r8d
xorl %r9d, %r9d
pushq %r15
pushq %r15
callq 0x849e0
addq $0x10, %rsp
addq $0x2, %r13
cmpq %r12, %r13
jb 0x84026
leaq 0x42980(%rip), %r12     # 0xc6a04
jmp 0x842b5
testl %r15d, %r15d
jle 0x8489f
decl %r15d
movss -0x150(%rbp,%r15,4), %xmm1
xorps %xmm0, %xmm0
jmp 0x84277
movq -0x60(%rbp), %rax
testl %eax, %eax
jle 0x8489f
decl %eax
movq %rax, -0x60(%rbp)
shlq $0x4, %rax
movups -0x230(%rbp,%rax), %xmm0
movaps %xmm0, -0x50(%rbp)
jmp 0x842b5
xorl %eax, %eax
cmpl $0x8, %r15d
jl 0x848a1
movl %r15d, %r14d
addq $-0xd, %r14
movq $-0x6, %r13
movss -0x138(%rbp,%r13,4), %xmm0
movss -0x134(%rbp,%r13,4), %xmm1
movss -0x130(%rbp,%r13,4), %xmm2
movss -0x12c(%rbp,%r13,4), %xmm3
movss -0x128(%rbp,%r13,4), %xmm4
movss -0x124(%rbp,%r13,4), %xmm5
movq %rbx, %rdi
callq 0x8494a
addq $0x6, %r13
cmpq %r14, %r13
jl 0x840e8
leal 0x7(%r13), %eax
cmpl %r15d, %eax
movq -0x78(%rbp), %r14
movl $0x0, %eax
jge 0x848a1
movss -0x138(%rbp,%r13,4), %xmm0
movss -0x134(%rbp,%r13,4), %xmm1
addss 0x10(%rbx), %xmm0
movss %xmm0, 0x10(%rbx)
addss 0x14(%rbx), %xmm1
movss %xmm1, 0x14(%rbx)
cvttss2si %xmm0, %edx
cvttss2si %xmm1, %ecx
xorl %r15d, %r15d
movq %rbx, %rdi
movl $0x2, %esi
xorl %r8d, %r8d
xorl %r9d, %r9d
pushq %r15
pushq %r15
callq 0x849e0
addq $0x10, %rsp
jmp 0x842b5
cmpl $0x6, %r15d
jl 0x8489f
movl %r15d, %r14d
movl $0x5, %r15d
movss -0x164(%rbp,%r15,4), %xmm0
movss -0x160(%rbp,%r15,4), %xmm1
movss -0x15c(%rbp,%r15,4), %xmm2
movss -0x158(%rbp,%r15,4), %xmm3
movss -0x154(%rbp,%r15,4), %xmm4
movss -0x150(%rbp,%r15,4), %xmm5
movq %rbx, %rdi
callq 0x8494a
addq $0x6, %r15
cmpq %r14, %r15
jb 0x841b1
xorl %r15d, %r15d
movq -0x78(%rbp), %r14
jmp 0x842b5
cmpl $0x2, %r15d
jl 0x8489f
leal -0x2(%r15), %eax
movss -0x150(%rbp,%rax,4), %xmm0
decl %r15d
movss -0x150(%rbp,%r15,4), %xmm1
jmp 0x84277
xorl %r13d, %r13d
movl $0x0, %eax
cmpl $0x4, %r15d
jge 0x8477e
jmp 0x848a1
xorl %r13d, %r13d
movl $0x0, %eax
cmpl $0x4, %r15d
jge 0x8471f
jmp 0x848a1
testl %r15d, %r15d
jle 0x8489f
decl %r15d
movss -0x150(%rbp,%r15,4), %xmm0
xorps %xmm1, %xmm1
movq %rbx, %rdi
callq 0x848e1
jmp 0x842ab
movq -0x68(%rbp), %rdx
leal 0x7(%rdx), %esi
movq %rdx, -0x68(%rbp)
addl $0xe, %edx
testl %esi, %esi
cmovnsl %esi, %edx
sarl $0x3, %edx
addl %ecx, %edx
js 0x848c2
cmpl %edx, %r9d
jl 0x848c2
movl %edx, -0x48(%rbp)
movl $0x0, -0x38(%rbp)
xorl %r15d, %r15d
movl -0x48(%rbp), %edx
movl -0x44(%rbp), %r9d
cmpl %r9d, %edx
jl 0x83ba5
jmp 0x8489f
cmpl $0x9, %r15d
jl 0x848a1
movss -0x150(%rbp), %xmm0
movss -0x14c(%rbp), %xmm6
movaps %xmm6, -0x160(%rbp)
movss -0x148(%rbp), %xmm2
movss -0x144(%rbp), %xmm3
movss %xmm3, -0x170(%rbp)
movss -0x140(%rbp), %xmm4
movss -0x13c(%rbp), %xmm1
movss %xmm1, -0x34(%rbp)
movss -0x138(%rbp), %xmm1
movss %xmm1, -0x30(%rbp)
movss -0x134(%rbp), %xmm1
movss %xmm1, -0x90(%rbp)
movss -0x130(%rbp), %xmm1
movss %xmm1, -0x2c(%rbp)
xorps %xmm5, %xmm5
movq %rbx, %rdi
movaps %xmm6, %xmm1
callq 0x8494a
movaps -0x160(%rbp), %xmm5
addss -0x170(%rbp), %xmm5
movss -0x90(%rbp), %xmm3
addss %xmm3, %xmm5
xorps 0x30c4e(%rip), %xmm5    # 0xb4fc0
xorps %xmm1, %xmm1
movq %rbx, %rdi
movss -0x34(%rbp), %xmm0
movss -0x30(%rbp), %xmm2
movss -0x2c(%rbp), %xmm4
jmp 0x83f27
cmpl $0xb, %r15d
jl 0x848a1
movss -0x150(%rbp), %xmm0
movss -0x14c(%rbp), %xmm1
movss -0x148(%rbp), %xmm2
movss -0x144(%rbp), %xmm3
movss -0x140(%rbp), %xmm4
movss -0x13c(%rbp), %xmm5
movss -0x138(%rbp), %xmm10
movss -0x134(%rbp), %xmm11
movss -0x130(%rbp), %xmm12
movss -0x12c(%rbp), %xmm13
movss -0x128(%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 0x313a5(%rip), %xmm9    # 0xb57d0
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 0x84538
movaps %xmm6, -0x160(%rbp)
movaps 0x30b55(%rip), %xmm9    # 0xb4fc0
jmp 0x8454c
cmpl $0xd, %r15d
jl 0x848a1
movss -0x150(%rbp), %xmm0
movss -0x14c(%rbp), %xmm1
movss -0x148(%rbp), %xmm2
movss -0x144(%rbp), %xmm3
movss -0x140(%rbp), %xmm4
movss -0x13c(%rbp), %xmm5
movss -0x138(%rbp), %xmm6
movss %xmm6, -0x34(%rbp)
movss -0x134(%rbp), %xmm6
movss %xmm6, -0x30(%rbp)
movss -0x130(%rbp), %xmm6
movss %xmm6, -0x2c(%rbp)
movss -0x12c(%rbp), %xmm6
movss %xmm6, -0x90(%rbp)
movss -0x128(%rbp), %xmm6
movss %xmm6, -0x160(%rbp)
movss -0x124(%rbp), %xmm6
movss %xmm6, -0x170(%rbp)
movq %rbx, %rdi
callq 0x8494a
movq %rbx, %rdi
movss -0x34(%rbp), %xmm0
movss -0x30(%rbp), %xmm1
movss -0x2c(%rbp), %xmm2
movss -0x90(%rbp), %xmm3
movss -0x160(%rbp), %xmm4
movss -0x170(%rbp), %xmm5
jmp 0x83f27
movaps 0x30a80(%rip), %xmm9    # 0xb4fc0
xorps %xmm9, %xmm14
movaps %xmm14, -0x160(%rbp)
xorps %xmm9, %xmm7
cmpltss %xmm8, %xmm15
andps %xmm15, %xmm6
andnps %xmm7, %xmm15
orps %xmm6, %xmm15
movaps %xmm15, -0x170(%rbp)
movq %rbx, %rdi
callq 0x8494a
movq %rbx, %rdi
movss -0x34(%rbp), %xmm0
movss -0x30(%rbp), %xmm1
movss -0x2c(%rbp), %xmm2
movss -0x90(%rbp), %xmm3
movaps -0x170(%rbp), %xmm4
movaps -0x160(%rbp), %xmm5
jmp 0x83f27
cmpl %eax, %r14d
ja 0x848c2
xorl %edx, %edx
cmpl %eax, %r14d
jae 0x845b4
movzbl (%rcx,%r14), %edx
movq -0x70(%rbp), %rax
movq 0x40(%rax), %r12
movq 0x48(%rax), %rcx
movq %rcx, -0x58(%rbp)
movq 0x80(%rax), %rdi
movq 0x88(%rax), %rsi
callq 0x8353f
movq %rdx, %rcx
movq %r12, %rdi
leaq 0x42420(%rip), %r12     # 0xc6a04
movq -0x58(%rbp), %rsi
movq %rax, %rdx
callq 0x83850
movq %rax, -0x178(%rbp)
movq %rdx, -0x180(%rbp)
movl $0x1, %r11d
xorl %eax, %eax
testl %r15d, %r15d
movq -0x60(%rbp), %rcx
jle 0x848a1
cmpl $0x9, %ecx
jg 0x848a1
decl %r15d
cvttss2si -0x150(%rbp,%r15,4), %eax
movq -0x60(%rbp), %rdx
movslq %edx, %rcx
shlq $0x4, %rcx
movaps -0x50(%rbp), %xmm0
movups %xmm0, -0x230(%rbp,%rcx)
leaq -0x180(%rbp), %rcx
movq -0x178(%rbp), %rdi
cmpb $0xa, %r13b
je 0x84663
movq -0x70(%rbp), %rcx
movq 0x60(%rcx), %rdi
movq -0x190(%rbp), %rcx
movq (%rcx), %r8
testq %r8, %r8
js 0x848c2
incl %edx
movq %rdx, -0x60(%rbp)
movq %r8, %rdx
shrq $0x20, %rdx
xorl %esi, %esi
movl $0x2, %r9d
xorl %ecx, %ecx
cmpl %edx, %esi
jge 0x84696
movslq %esi, %r10
incl %esi
movzbl (%rdi,%r10), %r10d
jmp 0x84699
xorl %r10d, %r10d
shll $0x8, %ecx
orl %r10d, %ecx
decl %r9d
jne 0x84686
xorl %edx, %edx
cmpl $0x4d8, %ecx            # imm = 0x4D8
setge %dl
shll $0xa, %edx
orl $0x6b, %edx
cmpl $0x846c, %ecx           # imm = 0x846C
movl $0x8000, %r9d           # imm = 0x8000
cmovgel %r9d, %edx
addl %eax, %edx
sets %al
cmpl %ecx, %edx
setge %cl
orb %al, %cl
movl $0x0, %eax
movl $0x0, %ecx
jne 0x846fd
movabsq $0x7fffffff00000000, %rax # imm = 0x7FFFFFFF00000000
andq %rax, %r8
movl %esi, %esi
orq %r8, %rsi
movl %r11d, %r13d
callq 0x8353f
movl %r13d, %r11d
movq %rdx, %rcx
movq %rax, -0x50(%rbp)
movq %rcx, -0x48(%rbp)
shrq $0x20, %rcx
je 0x8489f
movl $0x0, -0x48(%rbp)
movl %r11d, -0x58(%rbp)
jmp 0x842b5
leal 0x3(%r13), %eax
cmpl %r15d, %eax
jge 0x842b2
movslq %r13d, %rcx
movss -0x150(%rbp,%rcx,4), %xmm1
movss -0x14c(%rbp,%rcx,4), %xmm2
movss -0x148(%rbp,%rcx,4), %xmm3
cltq
movss -0x150(%rbp,%rax,4), %xmm4
movl %r15d, %eax
subl %r13d, %eax
addl $0x4, %r13d
xorps %xmm5, %xmm5
cmpl $0x5, %eax
jne 0x84773
movslq %r13d, %rax
movss -0x150(%rbp,%rax,4), %xmm5
xorps %xmm0, %xmm0
movq %rbx, %rdi
callq 0x8494a
leal 0x3(%r13), %eax
cmpl %r15d, %eax
jge 0x842b2
movslq %r13d, %rcx
movss -0x150(%rbp,%rcx,4), %xmm0
movss -0x14c(%rbp,%rcx,4), %xmm2
movss -0x148(%rbp,%rcx,4), %xmm3
movl %r15d, %ecx
subl %r13d, %ecx
addl $0x4, %r13d
xorps %xmm4, %xmm4
cmpl $0x5, %ecx
jne 0x847c7
movslq %r13d, %rcx
movss -0x150(%rbp,%rcx,4), %xmm4
cltq
movss -0x150(%rbp,%rax,4), %xmm5
xorps %xmm1, %xmm1
movq %rbx, %rdi
callq 0x8494a
jmp 0x8471f
cmpl %r15d, %eax
jge 0x842b2
movslq %eax, %rcx
movss -0x150(%rbp,%rcx,4), %xmm0
addss 0x10(%rbx), %xmm0
movss %xmm0, 0x10(%rbx)
movss 0x14(%rbx), %xmm1
addss 0x31036(%rip), %xmm1    # 0xb5844
movss %xmm1, 0x14(%rbx)
cvttss2si %xmm0, %edx
cvttss2si %xmm1, %ecx
movl %eax, %r13d
movq %rbx, %rdi
movl $0x2, %esi
xorl %r8d, %r8d
xorl %r9d, %r9d
xorl %eax, %eax
pushq %rax
pushq %rax
callq 0x849e0
movl %r13d, %eax
addq $0x10, %rsp
incl %eax
cmpl %r15d, %eax
jge 0x842b2
movslq %eax, %rcx
movss -0x150(%rbp,%rcx,4), %xmm0
movss 0x10(%rbx), %xmm1
addss 0x30fe4(%rip), %xmm1    # 0xb5844
movss %xmm1, 0x10(%rbx)
addss 0x14(%rbx), %xmm0
movss %xmm0, 0x14(%rbx)
cvttss2si %xmm1, %edx
cvttss2si %xmm0, %ecx
movl %eax, %r13d
movq %rbx, %rdi
movl $0x2, %esi
xorl %r8d, %r8d
xorl %r9d, %r9d
xorl %eax, %eax
pushq %rax
pushq %rax
callq 0x849e0
movl %r13d, %eax
addq $0x10, %rsp
incl %eax
jmp 0x847e2
xorl %eax, %eax
addq $0x208, %rsp            # imm = 0x208
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, %rdi
callq 0x849a0
movl $0x1, %eax
jmp 0x848a1
leaq 0x49648(%rip), %rdi     # 0xcdf11
leaq 0x49622(%rip), %rsi     # 0xcdef2
leaq 0x49652(%rip), %rcx     # 0xcdf29
movl $0x46c, %edx            # imm = 0x46C
callq 0xc140