// File: /workspace/github_cpp_makefile_star2_O3/sundale[P]gcode/rs274ngc/interp_read.cc
// Function: Interp::read_o(char*, int*, block_struct*, double*)
int Interp::read_o(    /* ARGUMENTS                                     */
 char * line,         /* string: line of RS274/NGC code being processed */
 int * counter,       /* pointer to a counter for position on the line  */
 block_pointer block, /* pointer to a block being filled from the line  */
 double * parameters) /* array of system parameters                     */
{
  static char name[] = "read_o";
  double value;
  int param_cnt;
  char oNameBuf[LINELEN+1];
  char *subName;
  char fullNameBuf[2*LINELEN+1];
  int oNumber;

  CHKS((line[*counter] != 'o'), NCE_BUG_FUNCTION_SHOULD_NOT_HAVE_BEEN_CALLED);

  // changed spec so we now read an expression
  // so... we can have a parameter contain a function pointer!
  *counter += 1;

  block->o_number = 0;

  logDebug("In: %s line:%d |%s|", name, block->line_number, line);

  if(line[*counter] == '<')
  {
      read_name(line, counter, oNameBuf);
  }
  else
  {
     CHP(read_integer_value(line, counter, &oNumber,
                            parameters));
     sprintf(oNameBuf, "%d", oNumber);
     block->o_number = oNumber; //!!!KL keeps this for now
  }

  // We stash the text the offset part of setup
  // And then store the index into block->o_number
  // Just to be clean, we do not use index zero.

#define CMP(txt) (strncmp(line+*counter, txt, strlen(txt)) == 0)
  // characterize the type of o-word

  if(CMP("sub"))
    block->o_type = O_sub;
  else if(CMP("endsub"))
    block->o_type = O_endsub;
  else if(CMP("call"))
    block->o_type = O_call;
  else if(CMP("do"))
    block->o_type = O_do;
  else if(CMP("while"))
    block->o_type = O_while;
  else if(CMP("repeat"))
    block->o_type = O_repeat;
  else if(CMP("if"))
    block->o_type = O_if;
  else if(CMP("elseif"))
    block->o_type = O_elseif;
  else if(CMP("else"))
    block->o_type = O_else;
  else if(CMP("endif"))
    block->o_type = O_endif;
  else if(CMP("break"))
    block->o_type = O_break;
  else if(CMP("continue"))
    block->o_type = O_continue;
  else if(CMP("endwhile"))
    block->o_type = O_endwhile;
  else if(CMP("endrepeat"))
    block->o_type = O_endrepeat;
  else if(CMP("return"))
    block->o_type = O_return;
  else
    block->o_type = O_none;

  // we now have it characterized
  // now create the text of the oword

  switch(block->o_type)
    {
      // the global cases first
    case O_sub:
    case O_endsub:
    case O_call:
    case O_return:
      block->o_name = strdup(oNameBuf);
      logDebug("global case:|%s|", block->o_name);
      break;

      // the remainder are local cases
    default:
      if(_setup.call_level)
	{
	  subName = _setup.sub_context[_setup.call_level].subName;
	  logDebug("inside a call[%d]:|%s|", _setup.call_level, subName);
	}
      else if(_setup.defining_sub)
	{
	  subName = _setup.sub_name;
	  logDebug("defining_sub:|%s|", subName);
	}
      else
	{
	  subName = "";
	  logDebug("not defining_sub:|%s|", subName);
	}
      sprintf(fullNameBuf, "%s#%s", subName, oNameBuf);
      block->o_name = strdup(fullNameBuf);
      logDebug("local case:|%s|", block->o_name);
    }

  logDebug("o_type:%d o_name:|%s| line:%d |%s|", block->o_type, block->o_name,
	   block->line_number, line);

  if(block->o_type == O_sub)
    {
      block->o_type = O_sub;
    }
  else if(block->o_type == O_endsub)
    {
      block->o_type = O_endsub;
    }
  else if(_setup.defining_sub == 1)
    {
      // we can not evaluate expressions -- so just skip on out
      block->o_type = O_none;
    }
  else if(block->o_type == O_call)
    {
      // we need to NOT evaluate parameters if skipping
      // skipping never ends on a "call"
      if(_setup.skipping_o != 0)
      {
          block->o_type = O_none;
          return INTERP_OK;
      }

      *counter += strlen("call");
      block->o_type = O_call;

      for(param_cnt=0;(line[*counter] == '[') || (line[*counter] == '(');)
	{
	  if(line[*counter] == '(')
	    {
	      CHP(read_comment(line, counter, block, parameters));
	      continue;
	    }
	  logDebug("counter[%d] rest of line:|%s|", *counter,
		   line+*counter);
	  CHKS((param_cnt >= INTERP_SUB_PARAMS),
	      NCE_TOO_MANY_SUBROUTINE_PARAMETERS);
	  CHP(read_real_expression(line, counter, &value, parameters));
	  block->params[param_cnt] = value;
	  param_cnt++;
	}
      logDebug("set arg params:%d", param_cnt);

      // zero the remaining params
      for(;param_cnt < INTERP_SUB_PARAMS; param_cnt++)
	{
	  block->params[param_cnt] = 0.0;
	}
    }
  else if(block->o_type == O_do)
    {
      block->o_type = O_do;
    }
  else if(block->o_type == O_while)
    {
      // TESTME !!!KL -- should not eval expressions if skipping ???
      if((_setup.skipping_o != 0) &&
	 (0 != strcmp(_setup.skipping_o, block->o_name)))
      {
	    return INTERP_OK;
      }

      *counter += strlen("while");
      block->o_type = O_while;
      CHKS((line[*counter] != '['),
	    "Left bracket missing after 'while'");
      CHP(read_real_expression(line, counter, &value, parameters));
      _setup.test_value = value;
    }
  else if(block->o_type == O_repeat)
      {
          // TESTME !!!KL -- should not eval expressions if skipping ???
          if((_setup.skipping_o != 0) &&
	     (0 != strcmp(_setup.skipping_o, block->o_name)))
          {
	    return INTERP_OK;
          }

          *counter += strlen("repeat");
          block->o_type = O_repeat;
          CHKS((line[*counter] != '['),
               "Left bracket missing after 'repeat'");
          CHP(read_real_expression(line, counter, &value, parameters));
          _setup.test_value = value;
      }
  else if(block->o_type == O_if)
    {
      // TESTME !!!KL -- should not eval expressions if skipping ???
      if((_setup.skipping_o != 0) &&
	 (0 != strcmp(_setup.skipping_o, block->o_name)))
      {
	    return INTERP_OK;
      }

      *counter += strlen("if");
      block->o_type = O_if;
      CHKS((line[*counter] != '['),
	    "Left bracket missing after 'if'");
      CHP(read_real_expression(line, counter, &value, parameters));
      _setup.test_value = value;
    }
  else if(block->o_type == O_elseif)
    {
      // TESTME !!!KL -- should not eval expressions if skipping ???
      if((_setup.skipping_o != 0) &&
	 (0 != strcmp(_setup.skipping_o, block->o_name)))
      {
	    return INTERP_OK;
      }

      *counter += strlen("elseif");
      block->o_type = O_elseif;
      CHKS((line[*counter] != '['),
	    "Left bracket missing after 'elseif'");
      CHP(read_real_expression(line, counter, &value, parameters));
      _setup.test_value = value;
    }
  else if(block->o_type == O_else)
    {
      block->o_type = O_else;
    }
  else if(block->o_type == O_endif)
    {
      block->o_type = O_endif;
    }
  else if(block->o_type == O_break)
    {
      block->o_type = O_break;
    }
  else if(block->o_type == O_continue)
    {
      block->o_type = O_continue;
    }
  else if(block->o_type == O_endwhile)
    {
      block->o_type = O_endwhile;
    }
  else if(block->o_type == O_endrepeat)
      {
          block->o_type = O_endrepeat;
      }
  else if(block->o_type == O_return)
    {
      block->o_type = O_return;
    }
  else
    {
      // not legal
      block->o_type = O_none;
      ERS(NCE_UNKNOWN_COMMAND_IN_O_LINE);
    }

  return INTERP_OK;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x328, %rsp            # imm = 0x328
movq %rdi, %rbx
movslq (%rdx), %rax
cmpb $0x6f, (%rsi,%rax)
jne 0x27a09
movq %r8, %r14
movq %rcx, %r13
movq %rdx, %r15
movq %rsi, %r12
incl %eax
movl %eax, (%rdx)
movl $0x0, 0x2cc(%rcx)
movq 0x195cf(%rip), %rax     # 0x40f60
cmpl $0x0, 0x1b6b4(%rax)
jle 0x279dd
callq 0xaf80
movl 0x1d0(%r13), %r10d
subq $0x8, %rsp
leaq 0x1a1cf(%rip), %r11     # 0x41b80
leaq 0x11acf(%rip), %rsi     # 0x39487
leaq 0x11aef(%rip), %r8      # 0x394ae
movq %rbx, %rdi
xorl %edx, %edx
movl %eax, %ecx
movl $0x5a2, %r9d            # imm = 0x5A2
xorl %eax, %eax
pushq %r12
pushq %r10
pushq %r11
callq 0xb470
addq $0x20, %rsp
movslq (%r15), %rax
cmpb $0x3c, (%r12,%rax)
jne 0x27a5f
movq %r14, -0x40(%rbp)
leaq -0x150(%rbp), %rcx
movq %rbx, -0x30(%rbp)
movq %rbx, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0xa9a0
jmp 0x27b0e
leaq 0xf83f(%rip), %rdi      # 0x3724f
callq 0xa1f0
movq %rbx, %rdi
movq %rax, %rsi
xorl %eax, %eax
callq 0xa850
movq 0x19537(%rip), %rbx     # 0x40f60
leaq 0xc6d0(%rbx), %rdi
leaq 0x10b0b(%rip), %rsi     # 0x38542
movl $0x50, %edx
callq 0xa8a0
movw $0x0, 0xc71f(%rbx)
movl $0x1, 0xd670(%rbx)
movl $0x5, %r14d
jmp 0x27fde
leaq -0x4c(%rbp), %rcx
movq %rbx, %rdi
movq %r12, %rsi
movq %r15, %rdx
movq %r14, %r8
callq 0xab30
testl %eax, %eax
je 0x27ae3
movl %eax, %r14d
movq 0x194de(%rip), %rbx     # 0x40f60
movslq 0xd670(%rbx), %rax
cmpq $0x30, %rax
jg 0x27fde
leaq (%rax,%rax,4), %rax
shlq $0x4, %rax
leaq (%rbx,%rax), %rdi
addq $0xc6d0, %rdi           # imm = 0xC6D0
leaq 0x10a95(%rip), %rsi     # 0x38542
movl $0x50, %edx
callq 0xa8a0
movslq 0xd670(%rbx), %rax
leaq (%rax,%rax,4), %rcx
shlq $0x4, %rcx
xorl %edx, %edx
movb %dl, 0xc71f(%rbx,%rcx)
incl %eax
movl %eax, 0xd670(%rbx)
movb %dl, 0xc720(%rbx,%rcx)
jmp 0x27fde
movq %r14, -0x40(%rbp)
movq %rbx, -0x30(%rbp)
movl -0x4c(%rbp), %r14d
leaq 0x1215e(%rip), %rsi     # 0x39c54
leaq -0x150(%rbp), %rdi
movl %r14d, %edx
xorl %eax, %eax
callq 0xa170
movl %r14d, 0x2cc(%r13)
movslq (%r15), %rax
leaq (%r12,%rax), %r14
movb (%r12,%rax), %bl
cmpb $0x73, %bl
jne 0x27b3c
cmpb $0x75, 0x1(%r14)
jne 0x27b3c
cmpb $0x62, 0x2(%r14)
jne 0x27b3c
movl $0x1, 0x2c8(%r13)
jmp 0x27c00
leaq 0x1197a(%rip), %rsi     # 0x394bd
movl $0x6, %edx
movq %r14, %rdi
callq 0xa4e0
testl %eax, %eax
je 0x27b8c
leaq 0x11969(%rip), %rsi     # 0x394c4
movl $0x4, %edx
movq %r14, %rdi
callq 0xa4e0
testl %eax, %eax
je 0x27bf5
cmpb $0x64, %bl
jne 0x27b99
cmpb $0x6f, 0x1(%r14)
jne 0x27b99
movl $0x4, 0x2c8(%r13)
jmp 0x27dc3
movl $0x2, 0x2c8(%r13)
jmp 0x27c00
leaq 0x1194d(%rip), %rsi     # 0x394ed
movl $0x5, %edx
movq %r14, %rdi
callq 0xa4e0
testl %eax, %eax
je 0x27c60
leaq 0x1193a(%rip), %rsi     # 0x394f6
movl $0x6, %edx
movq %r14, %rdi
callq 0xa4e0
testl %eax, %eax
je 0x27d5d
cmpb $0x69, %bl
jne 0x27c70
cmpb $0x66, 0x1(%r14)
jne 0x27c70
movl $0x6, 0x2c8(%r13)
jmp 0x27dc3
movl $0x3, 0x2c8(%r13)
movq 0x19359(%rip), %r14     # 0x40f60
leaq 0x2c8(%r13), %rax
movq %rax, -0x48(%rbp)
leaq -0x150(%rbp), %rdi
callq 0xb4e0
movq %rax, 0x2d0(%r13)
cmpl $0x0, 0x1b6b4(%r14)
movq -0x30(%rbp), %rbx
jle 0x27fab
callq 0xaf80
subq $0x8, %rsp
leaq 0x118b6(%rip), %rsi     # 0x394fd
leaq 0x11860(%rip), %r8      # 0x394ae
movq %rbx, %rdi
xorl %edx, %edx
movl %eax, %ecx
movl $0x5e3, %r9d            # imm = 0x5E3
jmp 0x27f43
movl $0x5, 0x2c8(%r13)
jmp 0x27dc3
leaq 0x11852(%rip), %rsi     # 0x394c9
movl $0x6, %edx
movq %r14, %rdi
callq 0xa4e0
testl %eax, %eax
je 0x27d6a
leaq 0x1183d(%rip), %rsi     # 0x394d0
movl $0x4, %edx
movq %r14, %rdi
callq 0xa4e0
testl %eax, %eax
je 0x27d77
leaq 0x11826(%rip), %rsi     # 0x394d5
movl $0x5, %edx
movq %r14, %rdi
callq 0xa4e0
testl %eax, %eax
je 0x27d84
leaq 0x11810(%rip), %rsi     # 0x394db
movl $0x5, %edx
movq %r14, %rdi
callq 0xa4e0
testl %eax, %eax
je 0x27d91
leaq 0x117fa(%rip), %rsi     # 0x394e1
movl $0x8, %edx
movq %r14, %rdi
callq 0xa4e0
testl %eax, %eax
je 0x27d9e
leaq 0x117e7(%rip), %rsi     # 0x394ea
movl $0x8, %edx
movq %r14, %rdi
callq 0xa4e0
testl %eax, %eax
je 0x27dab
leaq 0x117d4(%rip), %rsi     # 0x394f3
movl $0x9, %edx
movq %r14, %rdi
callq 0xa4e0
testl %eax, %eax
je 0x27db8
leaq 0xdef2(%rip), %rsi      # 0x35c2d
movl $0x6, %edx
movq %r14, %rdi
callq 0xa4e0
testl %eax, %eax
je 0x28359
movl $0x0, 0x2c8(%r13)
jmp 0x27dc3
movl $0xe, 0x2c8(%r13)
jmp 0x27dc3
movl $0x7, 0x2c8(%r13)
jmp 0x27dc3
movl $0x8, 0x2c8(%r13)
jmp 0x27dc3
movl $0x9, 0x2c8(%r13)
jmp 0x27dc3
movl $0xa, 0x2c8(%r13)
jmp 0x27dc3
movl $0xb, 0x2c8(%r13)
jmp 0x27dc3
movl $0xc, 0x2c8(%r13)
jmp 0x27dc3
movl $0xf, 0x2c8(%r13)
movq 0x19196(%rip), %rbx     # 0x40f60
movslq 0xef90(%rbx), %rax
testq %rax, %rax
je 0x27e30
imulq $0x128, %rax, %rax      # imm = 0x128
movq 0xefb0(%rbx,%rax), %r14
cmpl $0x0, 0x1b6b4(%rbx)
jle 0x27e25
callq 0xaf80
movl 0xef90(%rbx), %r10d
leaq 0x11720(%rip), %rsi     # 0x39521
leaq 0x116a6(%rip), %r8      # 0x394ae
movq -0x30(%rbp), %rdi
xorl %edx, %edx
movl %eax, %ecx
movl $0x5eb, %r9d            # imm = 0x5EB
xorl %eax, %eax
pushq %r14
pushq %r10
callq 0xb470
addq $0x10, %rsp
movq %r14, %rdx
movq %rbx, %r14
jmp 0x27ed4
cmpl $0x0, 0xef50(%rbx)
je 0x27e80
movq 0xef58(%rbx), %r14
cmpl $0x0, 0x1b6b4(%rbx)
jle 0x27e7b
callq 0xaf80
subq $0x8, %rsp
leaq 0x116f2(%rip), %rsi     # 0x3954b
leaq 0x1164e(%rip), %r8      # 0x394ae
movq -0x30(%rbp), %rdi
xorl %edx, %edx
movl %eax, %ecx
movl $0x5f0, %r9d            # imm = 0x5F0
xorl %eax, %eax
pushq %r14
callq 0xb470
addq $0x10, %rsp
movq %r14, %rdx
jmp 0x27ecd
cmpl $0x0, 0x1b6b4(%rbx)
jle 0x27ec6
callq 0xaf80
subq $0x8, %rsp
leaq 0x12e74(%rip), %rbx     # 0x3ad0d
leaq 0x116d0(%rip), %rsi     # 0x39570
leaq 0x11607(%rip), %r8      # 0x394ae
movq -0x30(%rbp), %rdi
xorl %edx, %edx
movl %eax, %ecx
movl $0x5f5, %r9d            # imm = 0x5F5
xorl %eax, %eax
pushq %rbx
callq 0xb470
movq %rbx, %rdx
addq $0x10, %rsp
jmp 0x27ecd
leaq 0x12e40(%rip), %rdx     # 0x3ad0d
movq 0x1908c(%rip), %r14     # 0x40f60
leaq 0x2c8(%r13), %rax
movq %rax, -0x48(%rbp)
leaq 0x116b3(%rip), %rsi     # 0x39599
leaq -0x350(%rbp), %rbx
leaq -0x150(%rbp), %rcx
movq %rbx, %rdi
xorl %eax, %eax
callq 0xa170
movq %rbx, %rdi
callq 0xb4e0
movq %rax, 0x2d0(%r13)
cmpl $0x0, 0x1b6b4(%r14)
jle 0x27fa7
callq 0xaf80
subq $0x8, %rsp
leaq 0x11674(%rip), %rsi     # 0x3959f
leaq 0x1157c(%rip), %r8      # 0x394ae
movq -0x30(%rbp), %rbx
movq %rbx, %rdi
xorl %edx, %edx
movl %eax, %ecx
movl $0x5f9, %r9d            # imm = 0x5F9
xorl %eax, %eax
pushq 0x2d0(%r13)
callq 0xb470
addq $0x10, %rsp
cmpl $0x0, 0x1b6b4(%r14)
jle 0x27fab
callq 0xaf80
movl 0x1d0(%r13), %r10d
movl 0x2c8(%r13), %r11d
leaq 0x11649(%rip), %rsi     # 0x395c2
leaq 0x1152e(%rip), %r8      # 0x394ae
movq %rbx, %rdi
xorl %edx, %edx
movl %eax, %ecx
movl $0x5fd, %r9d            # imm = 0x5FD
xorl %eax, %eax
pushq %r12
pushq %r10
pushq 0x2d0(%r13)
pushq %r11
callq 0xb470
addq $0x20, %rsp
jmp 0x27fab
movq -0x30(%rbp), %rbx
movq -0x48(%rbp), %rdx
movl (%rdx), %eax
cmpl $0x2, %eax
je 0x27fc3
cmpl $0x1, %eax
jne 0x27fcb
movl $0x1, (%rdx)
jmp 0x27fdb
movl $0x2, (%rdx)
jmp 0x27fdb
cmpl $0x1, 0xef50(%r14)
jne 0x27ff3
movl $0x0, (%rdx)
xorl %r14d, %r14d
movl %r14d, %eax
addq $0x328, %rsp            # imm = 0x328
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
addl $-0x3, %eax
cmpl $0xc, %eax
ja 0x28271
leaq 0xfea2(%rip), %rcx      # 0x37ea8
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
cmpq $0x0, 0xef70(%r14)
jne 0x27fd5
addl $0x4, (%r15)
movl $0x3, 0x2c8(%r13)
movq $0x0, -0x30(%rbp)
movslq (%r15), %rax
movzbl (%r12,%rax), %eax
cmpl $0x28, %eax
jne 0x28057
movq %rbx, %rdi
movq %r12, %rsi
movq %r15, %rdx
movq %r13, %rcx
callq 0xaee0
testl %eax, %eax
je 0x28030
jmp 0x27a78
cmpl $0x5b, %eax
movq -0x30(%rbp), %r14
movq 0x18efb(%rip), %rax     # 0x40f60
jne 0x282ef
cmpl $0x0, 0x1b6b4(%rax)
jle 0x280ac
callq 0xaf80
movslq (%r15), %r10
movq %r10, %r11
addq %r12, %r11
movq %rbx, %rdi
leaq 0x1156c(%rip), %rsi     # 0x395f8
xorl %edx, %edx
movl %eax, %ecx
leaq 0x11417(%rip), %r8      # 0x394ae
movl $0x621, %r9d            # imm = 0x621
xorl %eax, %eax
pushq %r11
pushq %r10
callq 0xb470
addq $0x10, %rsp
cmpq $0x1e, %r14
movq -0x40(%rbp), %r8
je 0x28369
movq %rbx, %rdi
movq %r12, %rsi
movq %r15, %rdx
leaq -0x38(%rbp), %rcx
callq 0xafc0
testl %eax, %eax
jne 0x28375
movsd -0x38(%rbp), %xmm0
movq -0x30(%rbp), %rax
movsd %xmm0, 0x2d8(%r13,%rax,8)
incq %rax
movq %rax, -0x30(%rbp)
jmp 0x28030
movq 0xef70(%r14), %rdi
testq %rdi, %rdi
je 0x28117
movq 0x2d0(%r13), %rsi
callq 0xaeb0
movq -0x48(%rbp), %rdx
testl %eax, %eax
jne 0x27fdb
addl $0x6, (%r15)
movl $0xe, (%rdx)
movslq (%r15), %rax
cmpb $0x5b, (%r12,%rax)
je 0x28219
leaq 0x1155a(%rip), %rsi     # 0x39690
jmp 0x282b3
movq 0xef70(%r14), %rdi
testq %rdi, %rdi
je 0x2815f
movq 0x2d0(%r13), %rsi
callq 0xaeb0
movq -0x48(%rbp), %rdx
testl %eax, %eax
jne 0x27fdb
addl $0x6, (%r15)
movl $0x7, (%rdx)
movslq (%r15), %rax
cmpb $0x5b, (%r12,%rax)
je 0x28219
leaq 0x11556(%rip), %rsi     # 0x396d4
jmp 0x282b3
movl $0xf, (%rdx)
jmp 0x27fdb
movl $0xc, (%rdx)
jmp 0x27fdb
movq 0xef70(%r14), %rdi
testq %rdi, %rdi
je 0x281bd
movq 0x2d0(%r13), %rsi
callq 0xaeb0
movq -0x48(%rbp), %rdx
testl %eax, %eax
jne 0x27fdb
addl $0x5, (%r15)
movl $0x5, (%rdx)
movslq (%r15), %rax
cmpb $0x5b, (%r12,%rax)
je 0x28219
leaq 0x11495(%rip), %rsi     # 0x3966d
jmp 0x282b3
movq 0xef70(%r14), %rdi
testq %rdi, %rdi
je 0x28201
movq 0x2d0(%r13), %rsi
callq 0xaeb0
movq -0x48(%rbp), %rdx
testl %eax, %eax
jne 0x27fdb
addl $0x2, (%r15)
movl $0x6, (%rdx)
movslq (%r15), %rax
cmpb $0x5b, (%r12,%rax)
jne 0x282ac
leaq -0x38(%rbp), %rcx
movq %rbx, %rdi
movq %r12, %rsi
movq %r15, %rdx
movq -0x40(%rbp), %r8
callq 0xafc0
testl %eax, %eax
jne 0x27a78
movsd -0x38(%rbp), %xmm0
movq 0x18d1d(%rip), %rax     # 0x40f60
movsd %xmm0, 0xef88(%rax)
jmp 0x27fdb
movl $0xa, (%rdx)
jmp 0x27fdb
movl $0x4, (%rdx)
jmp 0x27fdb
movl $0x8, (%rdx)
jmp 0x27fdb
movl $0x0, (%rdx)
leaq 0x1147a(%rip), %rdi     # 0x396f8
callq 0xa1f0
movq %rbx, %rdi
movq %rax, %rsi
jmp 0x282b6
movl $0x9, (%rdx)
jmp 0x27fdb
movl $0xd, (%rdx)
jmp 0x27fdb
movl $0xb, (%rdx)
jmp 0x27fdb
leaq 0x11401(%rip), %rsi     # 0x396b4
movq %rbx, %rdi
xorl %eax, %eax
callq 0xa850
leaq 0xc6d0(%r14), %rdi
leaq 0x10277(%rip), %rsi     # 0x38542
movl $0x50, %edx
callq 0xa8a0
movw $0x0, 0xc71f(%r14)
movl $0x1, 0xd670(%r14)
jmp 0x27a54
cmpl $0x0, 0x1b6b4(%rax)
jle 0x28329
callq 0xaf80
subq $0x8, %rsp
leaq 0x11340(%rip), %rsi     # 0x39648
leaq 0x1119f(%rip), %r8      # 0x394ae
movq %rbx, %rdi
xorl %edx, %edx
movl %eax, %ecx
movl $0x628, %r9d            # imm = 0x628
xorl %eax, %eax
pushq %r14
callq 0xb470
addq $0x10, %rsp
cmpq $0x1d, %r14
ja 0x27fdb
leaq 0x2d8(,%r14,8), %rdi
addq %r13, %rdi
shlq $0x3, %r14
movl $0xf0, %edx
subq %r14, %rdx
xorl %r14d, %r14d
xorl %esi, %esi
callq 0xa570
jmp 0x27fde
movl $0xd, 0x2c8(%r13)
jmp 0x27c00
leaq 0x112b9(%rip), %rdi     # 0x39629
jmp 0x27a10
movl %eax, %r14d
movq 0x18be1(%rip), %rax     # 0x40f60
movslq 0xd670(%rax), %rax
cmpq $0x30, %rax
jg 0x27fde
leaq (%rax,%rax,4), %rax
shlq $0x4, %rax
movq 0x18bc1(%rip), %rbx     # 0x40f60
jmp 0x27a9b