// File: /workspace/github_cpp_makefile_star2_O1/sundale[P]gcode/rs274ngc/interp_read.cc
// Function: Interp::read_items(block_struct*, char*, double*)
int Interp::read_items(block_pointer block,      //!< pointer to a block being filled from the line 
                      char *line,       //!< string: line of RS274/NGC code being processed
                      double *parameters)   //!< array of system parameters 
{
  int counter;
  int length;

  length = strlen(line);
  counter = 0;

  if (line[counter] == '/')     /* skip the slash character if first */
    counter++;

  if (line[counter] == 'n') {
    CHP(read_n_number(line, &counter, block));
  }

  if (line[counter] == 'o')
 /* Handle 'o' explicitly here. Default is
    to read letters via pointer calls to related
    reader functions. 'o' control lines have their
    own commands and command handlers. */
    {
      CHP(read_o(line, &counter, block, parameters));
      return INTERP_OK;
    }
  else if(_setup.skipping_o != 0)
  {
      // if we are skipping, do NOT evaluate non-olines
      return INTERP_OK;
  }

  for (; counter < length;) {
    CHP(read_one_item(line, &counter, block, parameters));
  }
  return INTERP_OK;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, -0x38(%rbp)
movq %rdx, %r12
movq %rsi, %r15
movq %rdi, %r13
movq %rdx, %rdi
callq 0xa4a0
movq %rax, -0x40(%rbp)
movl $0x0, -0x2c(%rbp)
xorl %eax, %eax
cmpb $0x2f, (%r12)
sete %al
movl %eax, -0x2c(%rbp)
cmpb $0x6e, (%r12,%rax)
jne 0x2aa82
leaq -0x2c(%rbp), %rdx
movq %r13, %rdi
movq %r12, %rsi
movq %r15, %rcx
callq 0xaf30
movl %eax, %r14d
testl %eax, %eax
jne 0x2aab2
movslq -0x2c(%rbp), %rax
cmpb $0x6f, (%r12,%rax)
jne 0x2ab23
leaq -0x2c(%rbp), %rdx
movq %r13, %rdi
movq %r12, %rsi
movq %r15, %rcx
movq -0x38(%rbp), %r8
callq 0xa1b0
testl %eax, %eax
je 0x2abcf
movl %eax, %r14d
movq 0x194a7(%rip), %rax     # 0x43f60
movslq 0xd670(%rax), %rcx
cmpq $0x30, %rcx
jg 0x2abd2
leaq (%rcx,%rcx,4), %rcx
shlq $0x4, %rcx
leaq (%rax,%rcx), %rdi
addq $0xc6d0, %rdi           # imm = 0xC6D0
leaq 0x109bc(%rip), %rsi     # 0x3b4a0
movl $0x50, %edx
callq 0xa8a0
movq 0x1946b(%rip), %rax     # 0x43f60
movslq 0xd670(%rax), %rcx
leaq (%rcx,%rcx,4), %rdx
shlq $0x4, %rdx
xorl %esi, %esi
movb %sil, 0xc71f(%rax,%rdx)
incl %ecx
movl %ecx, 0xd670(%rax)
movb %sil, 0xc720(%rax,%rdx)
jmp 0x2abd2
movq 0x19436(%rip), %rax     # 0x43f60
cmpq $0x0, 0xef70(%rax)
jne 0x2abcf
jmp 0x2abc2
movq %r13, %rdi
movq %r12, %rsi
leaq -0x2c(%rbp), %rdx
movq %r15, %rcx
movq -0x38(%rbp), %r8
callq 0xa690
movl %eax, %ebx
testl %eax, %eax
je 0x2abbe
movq 0x19400(%rip), %r14     # 0x43f60
movslq 0xd670(%r14), %rax
cmpq $0x30, %rax
jg 0x2abbb
leaq (%rax,%rax,4), %rax
shlq $0x4, %rax
leaq (%r14,%rax), %rdi
addq $0xc6d0, %rdi           # imm = 0xC6D0
movl $0x50, %edx
leaq 0x10914(%rip), %rsi     # 0x3b4a0
callq 0xa8a0
movslq 0xd670(%r14), %rax
leaq (%rax,%rax,4), %rcx
shlq $0x4, %rcx
xorl %edx, %edx
movb %dl, 0xc71f(%r14,%rcx)
incl %eax
movl %eax, 0xd670(%r14)
movb %dl, 0xc720(%r14,%rcx)
movl %ebx, %r14d
testl %ebx, %ebx
jne 0x2abd2
movq -0x40(%rbp), %rax
cmpl %eax, -0x2c(%rbp)
jl 0x2ab3d
xorl %r14d, %r14d
movl %r14d, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq