// File: sundale[P]gcode/rs274ngc/interp_read.cc
// Function: Interp::read_named_parameter_setting(char*, int*, char**, double*)
int Interp::read_named_parameter_setting(
    char *line,   //!< string: line of RS274/NGC code being processed
    int *counter, //!< pointer to a counter for position on the line 
    char **param,  //!< pointer to the char * to be returned 
    double *parameters)   //!< array of system parameters
{
  static char name[] = "read_named_parameter_setting";
  int status;
  static char paramNameBuf[LINELEN+1];

  *param = paramNameBuf;

  logDebug("entered %s", name);
  CHKS(((line[*counter] != '<') && !isalpha(line[*(counter)])),
      NCE_BUG_FUNCTION_SHOULD_NOT_HAVE_BEEN_CALLED);

  status=read_name(line, counter, paramNameBuf);
  CHP(status);

  logDebug("%s: returned(%d) from read_name:|%s|", name, status, paramNameBuf);

  status = add_named_param(paramNameBuf);
  CHP(status);
  logDebug("%s: returned(%d) from add_named_param:|%s|", name, status, paramNameBuf);

  // the rest of the work is done in read_parameter_setting

  return INTERP_OK;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %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 -0x28(%rbp), %rax
leaq 0x3fbe1(%rip), %rcx     # 0xa6a30
movq %rcx, (%rax)
xorl %eax, %eax
movq 0x20105(%rip), %rcx     # 0x86f60
cmpl 0x1b6b4(%rcx), %eax
jge 0x66e96
callq 0x11950
movq -0x48(%rbp), %rdi
movl %eax, %ecx
leaq 0x17686(%rip), %rsi     # 0x7e4fb
xorl %edx, %edx
leaq 0x16f4b(%rip), %r8      # 0x7ddc9
movl $0x912, %r9d            # imm = 0x912
leaq 0x213d5(%rip), %rax     # 0x88260
movq %rax, (%rsp)
movb $0x0, %al
callq 0x12050
jmp 0x66e98
jmp 0x66e9a
movq -0x18(%rbp), %rax
movq -0x20(%rbp), %rcx
movslq (%rcx), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x3c, %eax
je 0x66fa4
movq -0x18(%rbp), %rax
movq -0x20(%rbp), %rcx
movslq (%rcx), %rcx
movsbl (%rax,%rcx), %edi
callq 0x11c30
cmpl $0x0, %eax
jne 0x66fa4
jmp 0x66ed1
leaq 0x1550d(%rip), %rdi     # 0x7c3e5
callq 0x10380
movq -0x48(%rbp), %rdi
movq %rax, %rsi
movb $0x0, %al
callq 0x10df0
movq 0x2006e(%rip), %rax     # 0x86f60
movl $0x0, 0xd670(%rax)
movq 0x2005d(%rip), %rax     # 0x86f60
movslq 0xd670(%rax), %rax
movq 0x2004f(%rip), %rdi     # 0x86f60
addq $0xc6d0, %rdi           # imm = 0xC6D0
imulq $0x50, %rax, %rax
addq %rax, %rdi
leaq 0x175f3(%rip), %rsi     # 0x7e519
movl $0x50, %edx
callq 0x10840
movq 0x20029(%rip), %rax     # 0x86f60
movslq 0xd670(%rax), %rcx
movq 0x2001b(%rip), %rax     # 0x86f60
addq $0xc6d0, %rax           # imm = 0xC6D0
imulq $0x50, %rcx, %rcx
addq %rcx, %rax
movb $0x0, 0x4f(%rax)
movq 0x20003(%rip), %rax     # 0x86f60
movl 0xd670(%rax), %ecx
addl $0x1, %ecx
movq 0x1fff3(%rip), %rax     # 0x86f60
movl %ecx, 0xd670(%rax)
movq 0x1ffe6(%rip), %rax     # 0x86f60
movslq 0xd670(%rax), %rcx
movq 0x1ffd8(%rip), %rax     # 0x86f60
addq $0xc6d0, %rax           # imm = 0xC6D0
imulq $0x50, %rcx, %rcx
addq %rcx, %rax
movb $0x0, (%rax)
movl $0x5, -0x4(%rbp)
jmp 0x67230
jmp 0x66fa6
movq -0x48(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
leaq 0x3fa77(%rip), %rcx     # 0xa6a30
callq 0x11040
movl %eax, -0x34(%rbp)
movl -0x34(%rbp), %eax
movl %eax, -0x38(%rbp)
cmpl $0x0, -0x38(%rbp)
je 0x6708e
jmp 0x66fd3
movq 0x1ff86(%rip), %rax     # 0x86f60
cmpl $0x31, 0xd670(%rax)
jge 0x67083
movq 0x1ff72(%rip), %rax     # 0x86f60
movslq 0xd670(%rax), %rax
movq 0x1ff64(%rip), %rdi     # 0x86f60
addq $0xc6d0, %rdi           # imm = 0xC6D0
imulq $0x50, %rax, %rax
addq %rax, %rdi
leaq 0x17508(%rip), %rsi     # 0x7e519
movl $0x50, %edx
callq 0x10840
movq 0x1ff3e(%rip), %rax     # 0x86f60
movslq 0xd670(%rax), %rcx
movq 0x1ff30(%rip), %rax     # 0x86f60
addq $0xc6d0, %rax           # imm = 0xC6D0
imulq $0x50, %rcx, %rcx
addq %rcx, %rax
movb $0x0, 0x4f(%rax)
movq 0x1ff18(%rip), %rax     # 0x86f60
movl 0xd670(%rax), %ecx
addl $0x1, %ecx
movq 0x1ff08(%rip), %rax     # 0x86f60
movl %ecx, 0xd670(%rax)
movq 0x1fefb(%rip), %rax     # 0x86f60
movslq 0xd670(%rax), %rcx
movq 0x1feed(%rip), %rax     # 0x86f60
addq $0xc6d0, %rax           # imm = 0xC6D0
imulq $0x50, %rcx, %rcx
addq %rcx, %rax
movb $0x0, (%rax)
movl -0x38(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x67230
jmp 0x67090
jmp 0x67092
xorl %eax, %eax
movq 0x1fec5(%rip), %rcx     # 0x86f60
cmpl 0x1b6b4(%rcx), %eax
jge 0x670eb
callq 0x11950
movq -0x48(%rbp), %rdi
movl %eax, %ecx
movl -0x34(%rbp), %r10d
leaq 0x174ab(%rip), %rsi     # 0x7e564
xorl %edx, %edx
leaq 0x16d07(%rip), %r8      # 0x7ddc9
movl $0x919, %r9d            # imm = 0x919
leaq 0x21191(%rip), %r11     # 0x88260
leaq 0x3f95a(%rip), %rax     # 0xa6a30
movq %r11, (%rsp)
movl %r10d, 0x8(%rsp)
movq %rax, 0x10(%rsp)
movb $0x0, %al
callq 0x12050
jmp 0x670ed
movq -0x48(%rbp), %rdi
leaq 0x3f938(%rip), %rsi     # 0xa6a30
callq 0x10510
movl %eax, -0x34(%rbp)
movl -0x34(%rbp), %eax
movl %eax, -0x3c(%rbp)
cmpl $0x0, -0x3c(%rbp)
je 0x671ca
jmp 0x67112
movq 0x1fe47(%rip), %rax     # 0x86f60
cmpl $0x31, 0xd670(%rax)
jge 0x671c2
movq 0x1fe33(%rip), %rax     # 0x86f60
movslq 0xd670(%rax), %rax
movq 0x1fe25(%rip), %rdi     # 0x86f60
addq $0xc6d0, %rdi           # imm = 0xC6D0
imulq $0x50, %rax, %rax
addq %rax, %rdi
leaq 0x173c9(%rip), %rsi     # 0x7e519
movl $0x50, %edx
callq 0x10840
movq 0x1fdff(%rip), %rax     # 0x86f60
movslq 0xd670(%rax), %rcx
movq 0x1fdf1(%rip), %rax     # 0x86f60
addq $0xc6d0, %rax           # imm = 0xC6D0
imulq $0x50, %rcx, %rcx
addq %rcx, %rax
movb $0x0, 0x4f(%rax)
movq 0x1fdd9(%rip), %rax     # 0x86f60
movl 0xd670(%rax), %ecx
addl $0x1, %ecx
movq 0x1fdc9(%rip), %rax     # 0x86f60
movl %ecx, 0xd670(%rax)
movq 0x1fdbc(%rip), %rax     # 0x86f60
movslq 0xd670(%rax), %rcx
movq 0x1fdae(%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 0x67230
jmp 0x671cc
jmp 0x671ce
xorl %eax, %eax
movq 0x1fd89(%rip), %rcx     # 0x86f60
cmpl 0x1b6b4(%rcx), %eax
jge 0x67227
callq 0x11950
movq -0x48(%rbp), %rdi
movl %eax, %ecx
movl -0x34(%rbp), %r10d
leaq 0x173a7(%rip), %rsi     # 0x7e59c
xorl %edx, %edx
leaq 0x16bcb(%rip), %r8      # 0x7ddc9
movl $0x91d, %r9d            # imm = 0x91D
leaq 0x21055(%rip), %r11     # 0x88260
leaq 0x3f81e(%rip), %rax     # 0xa6a30
movq %r11, (%rsp)
movl %r10d, 0x8(%rsp)
movq %rax, 0x10(%rsp)
movb $0x0, %al
callq 0x12050
jmp 0x67229
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x60, %rsp
popq %rbp
retq
nopl (%rax)