// File: sundale[P]gcode/rs274ngc/interp_read.cc
// Function: Interp::read_e(char*, int*, block_struct*, double*)
int Interp::read_e(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                    
{
  double value;

  CHKS((line[*counter] != 'e'), NCE_BUG_FUNCTION_SHOULD_NOT_HAVE_BEEN_CALLED);
  *counter = (*counter + 1);
  CHKS((block->e_flag != OFF), NCE_MULTIPLE_E_WORDS_ON_ONE_LINE);
  CHP(read_real_value(line, counter, &value, parameters));
  block->e_flag = ON;
  block->e_number = value;
  return INTERP_OK;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x18(%rbp), %rax
movq -0x20(%rbp), %rcx
movslq (%rcx), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x65, %eax
je 0x5e631
jmp 0x5e55e
leaq 0x1de80(%rip), %rdi     # 0x7c3e5
callq 0x10380
movq -0x48(%rbp), %rdi
movq %rax, %rsi
movb $0x0, %al
callq 0x10df0
movq 0x289e1(%rip), %rax     # 0x86f60
movl $0x0, 0xd670(%rax)
movq 0x289d0(%rip), %rax     # 0x86f60
movslq 0xd670(%rax), %rax
movq 0x289c2(%rip), %rdi     # 0x86f60
addq $0xc6d0, %rdi           # imm = 0xC6D0
imulq $0x50, %rax, %rax
addq %rax, %rdi
leaq 0x1ef59(%rip), %rsi     # 0x7d50c
movl $0x50, %edx
callq 0x10840
movq 0x2899c(%rip), %rax     # 0x86f60
movslq 0xd670(%rax), %rcx
movq 0x2898e(%rip), %rax     # 0x86f60
addq $0xc6d0, %rax           # imm = 0xC6D0
imulq $0x50, %rcx, %rcx
addq %rcx, %rax
movb $0x0, 0x4f(%rax)
movq 0x28976(%rip), %rax     # 0x86f60
movl 0xd670(%rax), %ecx
addl $0x1, %ecx
movq 0x28966(%rip), %rax     # 0x86f60
movl %ecx, 0xd670(%rax)
movq 0x28959(%rip), %rax     # 0x86f60
movslq 0xd670(%rax), %rcx
movq 0x2894b(%rip), %rax     # 0x86f60
addq $0xc6d0, %rax           # imm = 0xC6D0
imulq $0x50, %rcx, %rcx
addq %rcx, %rax
movb $0x0, (%rax)
movl $0x5, -0x4(%rbp)
jmp 0x5e838
jmp 0x5e633
movq -0x20(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movq -0x20(%rbp), %rax
movl %ecx, (%rax)
movq -0x28(%rbp), %rax
movb 0x139(%rax), %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
je 0x5e72f
jmp 0x5e65c
leaq 0x1eee4(%rip), %rdi     # 0x7d547
callq 0x10380
movq -0x48(%rbp), %rdi
movq %rax, %rsi
movb $0x0, %al
callq 0x10df0
movq 0x288e3(%rip), %rax     # 0x86f60
movl $0x0, 0xd670(%rax)
movq 0x288d2(%rip), %rax     # 0x86f60
movslq 0xd670(%rax), %rax
movq 0x288c4(%rip), %rdi     # 0x86f60
addq $0xc6d0, %rdi           # imm = 0xC6D0
imulq $0x50, %rax, %rax
addq %rax, %rdi
leaq 0x1ee5b(%rip), %rsi     # 0x7d50c
movl $0x50, %edx
callq 0x10840
movq 0x2889e(%rip), %rax     # 0x86f60
movslq 0xd670(%rax), %rcx
movq 0x28890(%rip), %rax     # 0x86f60
addq $0xc6d0, %rax           # imm = 0xC6D0
imulq $0x50, %rcx, %rcx
addq %rcx, %rax
movb $0x0, 0x4f(%rax)
movq 0x28878(%rip), %rax     # 0x86f60
movl 0xd670(%rax), %ecx
addl $0x1, %ecx
movq 0x28868(%rip), %rax     # 0x86f60
movl %ecx, 0xd670(%rax)
movq 0x2885b(%rip), %rax     # 0x86f60
movslq 0xd670(%rax), %rcx
movq 0x2884d(%rip), %rax     # 0x86f60
addq $0xc6d0, %rax           # imm = 0xC6D0
imulq $0x50, %rcx, %rcx
addq %rcx, %rax
movb $0x0, (%rax)
movl $0x5, -0x4(%rbp)
jmp 0x5e838
jmp 0x5e731
jmp 0x5e733
movq -0x48(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
movq -0x30(%rbp), %r8
leaq -0x38(%rbp), %rcx
callq 0x118a0
movl %eax, -0x3c(%rbp)
cmpl $0x0, -0x3c(%rbp)
je 0x5e813
jmp 0x5e75b
movq 0x287fe(%rip), %rax     # 0x86f60
cmpl $0x31, 0xd670(%rax)
jge 0x5e80b
movq 0x287ea(%rip), %rax     # 0x86f60
movslq 0xd670(%rax), %rax
movq 0x287dc(%rip), %rdi     # 0x86f60
addq $0xc6d0, %rdi           # imm = 0xC6D0
imulq $0x50, %rax, %rax
addq %rax, %rdi
leaq 0x1ed73(%rip), %rsi     # 0x7d50c
movl $0x50, %edx
callq 0x10840
movq 0x287b6(%rip), %rax     # 0x86f60
movslq 0xd670(%rax), %rcx
movq 0x287a8(%rip), %rax     # 0x86f60
addq $0xc6d0, %rax           # imm = 0xC6D0
imulq $0x50, %rcx, %rcx
addq %rcx, %rax
movb $0x0, 0x4f(%rax)
movq 0x28790(%rip), %rax     # 0x86f60
movl 0xd670(%rax), %ecx
addl $0x1, %ecx
movq 0x28780(%rip), %rax     # 0x86f60
movl %ecx, 0xd670(%rax)
movq 0x28773(%rip), %rax     # 0x86f60
movslq 0xd670(%rax), %rcx
movq 0x28765(%rip), %rax     # 0x86f60
addq $0xc6d0, %rax           # imm = 0xC6D0
imulq $0x50, %rcx, %rcx
addq %rcx, %rax
movb $0x0, (%rax)
movl -0x3c(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x5e838
jmp 0x5e815
movq -0x28(%rbp), %rax
movb $0x1, 0x139(%rax)
movsd -0x38(%rbp), %xmm0
movq -0x28(%rbp), %rax
movsd %xmm0, 0x140(%rax)
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x50, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)