// File: sundale[P]gcode/rs274ngc/interp_read.cc
// Function: Interp::read_f(char*, int*, block_struct*, double*)
int Interp::read_f(char *line,   //!< string: line of RS274 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] != 'f'), NCE_BUG_FUNCTION_SHOULD_NOT_HAVE_BEEN_CALLED);
  *counter = (*counter + 1);
  CHKS((block->f_number > -1.0), NCE_MULTIPLE_F_WORDS_ON_ONE_LINE);
  CHP(read_real_value(line, counter, &value, parameters));
  CHKS((value < 0.0), NCE_NEGATIVE_F_WORD_USED);
  block->f_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 $0x66, %eax
je 0x5e961
jmp 0x5e88e
leaq 0x1db50(%rip), %rdi     # 0x7c3e5
callq 0x10380
movq -0x48(%rbp), %rdi
movq %rax, %rsi
movb $0x0, %al
callq 0x10df0
movq 0x286b1(%rip), %rax     # 0x86f60
movl $0x0, 0xd670(%rax)
movq 0x286a0(%rip), %rax     # 0x86f60
movslq 0xd670(%rax), %rax
movq 0x28692(%rip), %rdi     # 0x86f60
addq $0xc6d0, %rdi           # imm = 0xC6D0
imulq $0x50, %rax, %rax
addq %rax, %rdi
leaq 0x1ec81(%rip), %rsi     # 0x7d564
movl $0x50, %edx
callq 0x10840
movq 0x2866c(%rip), %rax     # 0x86f60
movslq 0xd670(%rax), %rcx
movq 0x2865e(%rip), %rax     # 0x86f60
addq $0xc6d0, %rax           # imm = 0xC6D0
imulq $0x50, %rcx, %rcx
addq %rcx, %rax
movb $0x0, 0x4f(%rax)
movq 0x28646(%rip), %rax     # 0x86f60
movl 0xd670(%rax), %ecx
addl $0x1, %ecx
movq 0x28636(%rip), %rax     # 0x86f60
movl %ecx, 0xd670(%rax)
movq 0x28629(%rip), %rax     # 0x86f60
movslq 0xd670(%rax), %rcx
movq 0x2861b(%rip), %rax     # 0x86f60
addq $0xc6d0, %rax           # imm = 0xC6D0
imulq $0x50, %rcx, %rcx
addq %rcx, %rax
movb $0x0, (%rax)
movl $0x5, -0x4(%rbp)
jmp 0x5ec4a
jmp 0x5e963
movq -0x20(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movq -0x20(%rbp), %rax
movl %ecx, (%rax)
movq -0x28(%rbp), %rax
movsd 0x148(%rax), %xmm0
movsd 0x19eda(%rip), %xmm1    # 0x78860
ucomisd %xmm1, %xmm0
jbe 0x5ea65
jmp 0x5e992
leaq 0x1ec06(%rip), %rdi     # 0x7d59f
callq 0x10380
movq -0x48(%rbp), %rdi
movq %rax, %rsi
movb $0x0, %al
callq 0x10df0
movq 0x285ad(%rip), %rax     # 0x86f60
movl $0x0, 0xd670(%rax)
movq 0x2859c(%rip), %rax     # 0x86f60
movslq 0xd670(%rax), %rax
movq 0x2858e(%rip), %rdi     # 0x86f60
addq $0xc6d0, %rdi           # imm = 0xC6D0
imulq $0x50, %rax, %rax
addq %rax, %rdi
leaq 0x1eb7d(%rip), %rsi     # 0x7d564
movl $0x50, %edx
callq 0x10840
movq 0x28568(%rip), %rax     # 0x86f60
movslq 0xd670(%rax), %rcx
movq 0x2855a(%rip), %rax     # 0x86f60
addq $0xc6d0, %rax           # imm = 0xC6D0
imulq $0x50, %rcx, %rcx
addq %rcx, %rax
movb $0x0, 0x4f(%rax)
movq 0x28542(%rip), %rax     # 0x86f60
movl 0xd670(%rax), %ecx
addl $0x1, %ecx
movq 0x28532(%rip), %rax     # 0x86f60
movl %ecx, 0xd670(%rax)
movq 0x28525(%rip), %rax     # 0x86f60
movslq 0xd670(%rax), %rcx
movq 0x28517(%rip), %rax     # 0x86f60
addq $0xc6d0, %rax           # imm = 0xC6D0
imulq $0x50, %rcx, %rcx
addq %rcx, %rax
movb $0x0, (%rax)
movl $0x5, -0x4(%rbp)
jmp 0x5ec4a
jmp 0x5ea67
jmp 0x5ea69
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 0x5eb4c
jmp 0x5ea91
movq 0x284c8(%rip), %rax     # 0x86f60
cmpl $0x31, 0xd670(%rax)
jge 0x5eb41
movq 0x284b4(%rip), %rax     # 0x86f60
movslq 0xd670(%rax), %rax
movq 0x284a6(%rip), %rdi     # 0x86f60
addq $0xc6d0, %rdi           # imm = 0xC6D0
imulq $0x50, %rax, %rax
addq %rax, %rdi
leaq 0x1ea95(%rip), %rsi     # 0x7d564
movl $0x50, %edx
callq 0x10840
movq 0x28480(%rip), %rax     # 0x86f60
movslq 0xd670(%rax), %rcx
movq 0x28472(%rip), %rax     # 0x86f60
addq $0xc6d0, %rax           # imm = 0xC6D0
imulq $0x50, %rcx, %rcx
addq %rcx, %rax
movb $0x0, 0x4f(%rax)
movq 0x2845a(%rip), %rax     # 0x86f60
movl 0xd670(%rax), %ecx
addl $0x1, %ecx
movq 0x2844a(%rip), %rax     # 0x86f60
movl %ecx, 0xd670(%rax)
movq 0x2843d(%rip), %rax     # 0x86f60
movslq 0xd670(%rax), %rcx
movq 0x2842f(%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 0x5ec4a
jmp 0x5eb4e
jmp 0x5eb50
xorps %xmm0, %xmm0
ucomisd -0x38(%rbp), %xmm0
jbe 0x5ec30
jmp 0x5eb60
leaq 0x1ea55(%rip), %rdi     # 0x7d5bc
callq 0x10380
movq -0x48(%rbp), %rdi
movq %rax, %rsi
movb $0x0, %al
callq 0x10df0
movq 0x283df(%rip), %rax     # 0x86f60
movl $0x0, 0xd670(%rax)
movq 0x283ce(%rip), %rax     # 0x86f60
movslq 0xd670(%rax), %rax
movq 0x283c0(%rip), %rdi     # 0x86f60
addq $0xc6d0, %rdi           # imm = 0xC6D0
imulq $0x50, %rax, %rax
addq %rax, %rdi
leaq 0x1e9af(%rip), %rsi     # 0x7d564
movl $0x50, %edx
callq 0x10840
movq 0x2839a(%rip), %rax     # 0x86f60
movslq 0xd670(%rax), %rcx
movq 0x2838c(%rip), %rax     # 0x86f60
addq $0xc6d0, %rax           # imm = 0xC6D0
imulq $0x50, %rcx, %rcx
addq %rcx, %rax
movb $0x0, 0x4f(%rax)
movq 0x28374(%rip), %rax     # 0x86f60
movl 0xd670(%rax), %ecx
addl $0x1, %ecx
movq 0x28364(%rip), %rax     # 0x86f60
movl %ecx, 0xd670(%rax)
movq 0x28357(%rip), %rax     # 0x86f60
movslq 0xd670(%rax), %rcx
movq 0x28349(%rip), %rax     # 0x86f60
addq $0xc6d0, %rax           # imm = 0xC6D0
imulq $0x50, %rcx, %rcx
addq %rcx, %rax
movb $0x0, (%rax)
movl $0x5, -0x4(%rbp)
jmp 0x5ec4a
jmp 0x5ec32
movsd -0x38(%rbp), %xmm0
movq -0x28(%rbp), %rax
movsd %xmm0, 0x148(%rax)
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x50, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)