// File: sundale[P]gcode/rs274ngc/interp_read.cc
// Function: Interp::read_u(char*, int*, block_struct*, double*)
int Interp::read_u(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] != 'u'), NCE_BUG_FUNCTION_SHOULD_NOT_HAVE_BEEN_CALLED);
  *counter = (*counter + 1);
  CHKS((block->u_flag != OFF), _("Multiple U words on one line"));
  CHP(read_real_value(line, counter, &value, parameters));
  block->u_flag = ON;
  block->u_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 $0x75, %eax
je 0x690d1
jmp 0x68ffe
leaq 0x133e0(%rip), %rdi     # 0x7c3e5
callq 0x10380
movq -0x48(%rbp), %rdi
movq %rax, %rsi
movb $0x0, %al
callq 0x10df0
movq 0x1df41(%rip), %rax     # 0x86f60
movl $0x0, 0xd670(%rax)
movq 0x1df30(%rip), %rax     # 0x86f60
movslq 0xd670(%rax), %rax
movq 0x1df22(%rip), %rdi     # 0x86f60
addq $0xc6d0, %rdi           # imm = 0xC6D0
imulq $0x50, %rax, %rax
addq %rax, %rdi
leaq 0x159a6(%rip), %rsi     # 0x7e9f9
movl $0x50, %edx
callq 0x10840
movq 0x1defc(%rip), %rax     # 0x86f60
movslq 0xd670(%rax), %rcx
movq 0x1deee(%rip), %rax     # 0x86f60
addq $0xc6d0, %rax           # imm = 0xC6D0
imulq $0x50, %rcx, %rcx
addq %rcx, %rax
movb $0x0, 0x4f(%rax)
movq 0x1ded6(%rip), %rax     # 0x86f60
movl 0xd670(%rax), %ecx
addl $0x1, %ecx
movq 0x1dec6(%rip), %rax     # 0x86f60
movl %ecx, 0xd670(%rax)
movq 0x1deb9(%rip), %rax     # 0x86f60
movslq 0xd670(%rax), %rcx
movq 0x1deab(%rip), %rax     # 0x86f60
addq $0xc6d0, %rax           # imm = 0xC6D0
imulq $0x50, %rcx, %rcx
addq %rcx, %rax
movb $0x0, (%rax)
movl $0x5, -0x4(%rbp)
jmp 0x692d8
jmp 0x690d3
movq -0x20(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movq -0x20(%rbp), %rax
movl %ecx, (%rax)
movq -0x28(%rbp), %rax
movb 0x244(%rax), %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
je 0x691cf
jmp 0x690fc
leaq 0x15931(%rip), %rdi     # 0x7ea34
callq 0x10380
movq -0x48(%rbp), %rdi
movq %rax, %rsi
movb $0x0, %al
callq 0x10df0
movq 0x1de43(%rip), %rax     # 0x86f60
movl $0x0, 0xd670(%rax)
movq 0x1de32(%rip), %rax     # 0x86f60
movslq 0xd670(%rax), %rax
movq 0x1de24(%rip), %rdi     # 0x86f60
addq $0xc6d0, %rdi           # imm = 0xC6D0
imulq $0x50, %rax, %rax
addq %rax, %rdi
leaq 0x158a8(%rip), %rsi     # 0x7e9f9
movl $0x50, %edx
callq 0x10840
movq 0x1ddfe(%rip), %rax     # 0x86f60
movslq 0xd670(%rax), %rcx
movq 0x1ddf0(%rip), %rax     # 0x86f60
addq $0xc6d0, %rax           # imm = 0xC6D0
imulq $0x50, %rcx, %rcx
addq %rcx, %rax
movb $0x0, 0x4f(%rax)
movq 0x1ddd8(%rip), %rax     # 0x86f60
movl 0xd670(%rax), %ecx
addl $0x1, %ecx
movq 0x1ddc8(%rip), %rax     # 0x86f60
movl %ecx, 0xd670(%rax)
movq 0x1ddbb(%rip), %rax     # 0x86f60
movslq 0xd670(%rax), %rcx
movq 0x1ddad(%rip), %rax     # 0x86f60
addq $0xc6d0, %rax           # imm = 0xC6D0
imulq $0x50, %rcx, %rcx
addq %rcx, %rax
movb $0x0, (%rax)
movl $0x5, -0x4(%rbp)
jmp 0x692d8
jmp 0x691d1
jmp 0x691d3
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 0x692b3
jmp 0x691fb
movq 0x1dd5e(%rip), %rax     # 0x86f60
cmpl $0x31, 0xd670(%rax)
jge 0x692ab
movq 0x1dd4a(%rip), %rax     # 0x86f60
movslq 0xd670(%rax), %rax
movq 0x1dd3c(%rip), %rdi     # 0x86f60
addq $0xc6d0, %rdi           # imm = 0xC6D0
imulq $0x50, %rax, %rax
addq %rax, %rdi
leaq 0x157c0(%rip), %rsi     # 0x7e9f9
movl $0x50, %edx
callq 0x10840
movq 0x1dd16(%rip), %rax     # 0x86f60
movslq 0xd670(%rax), %rcx
movq 0x1dd08(%rip), %rax     # 0x86f60
addq $0xc6d0, %rax           # imm = 0xC6D0
imulq $0x50, %rcx, %rcx
addq %rcx, %rax
movb $0x0, 0x4f(%rax)
movq 0x1dcf0(%rip), %rax     # 0x86f60
movl 0xd670(%rax), %ecx
addl $0x1, %ecx
movq 0x1dce0(%rip), %rax     # 0x86f60
movl %ecx, 0xd670(%rax)
movq 0x1dcd3(%rip), %rax     # 0x86f60
movslq 0xd670(%rax), %rcx
movq 0x1dcc5(%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 0x692d8
jmp 0x692b5
movq -0x28(%rbp), %rax
movb $0x1, 0x244(%rax)
movsd -0x38(%rbp), %xmm0
movq -0x28(%rbp), %rax
movsd %xmm0, 0x248(%rax)
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x50, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)