// File: sundale[P]gcode/rs274ngc/interp_read.cc
// Function: Interp::read_carat(char*, int*, block_struct*, double*)
int Interp::read_carat(char *line, int *counter, block_pointer block,
                       double *parameters) {
    CHKS((line[*counter] != '^'), NCE_BUG_FUNCTION_SHOULD_NOT_HAVE_BEEN_CALLED);
    (*counter)++;
    CHP(read_real_value(line, counter, &block->theta, parameters));
    block->theta_flag = ON;
    return INTERP_OK;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %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, -0x40(%rbp)
movq -0x18(%rbp), %rax
movq -0x20(%rbp), %rcx
movslq (%rcx), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x5e, %eax
je 0x69fe1
jmp 0x69f0e
leaq 0x124d0(%rip), %rdi     # 0x7c3e5
callq 0x10380
movq -0x40(%rbp), %rdi
movq %rax, %rsi
movb $0x0, %al
callq 0x10df0
movq 0x1d031(%rip), %rax     # 0x86f60
movl $0x0, 0xd670(%rax)
movq 0x1d020(%rip), %rax     # 0x86f60
movslq 0xd670(%rax), %rax
movq 0x1d012(%rip), %rdi     # 0x86f60
addq $0xc6d0, %rdi           # imm = 0xC6D0
imulq $0x50, %rax, %rax
addq %rax, %rdi
leaq 0x14c36(%rip), %rsi     # 0x7eb99
movl $0x50, %edx
callq 0x10840
movq 0x1cfec(%rip), %rax     # 0x86f60
movslq 0xd670(%rax), %rcx
movq 0x1cfde(%rip), %rax     # 0x86f60
addq $0xc6d0, %rax           # imm = 0xC6D0
imulq $0x50, %rcx, %rcx
addq %rcx, %rax
movb $0x0, 0x4f(%rax)
movq 0x1cfc6(%rip), %rax     # 0x86f60
movl 0xd670(%rax), %ecx
addl $0x1, %ecx
movq 0x1cfb6(%rip), %rax     # 0x86f60
movl %ecx, 0xd670(%rax)
movq 0x1cfa9(%rip), %rax     # 0x86f60
movslq 0xd670(%rax), %rcx
movq 0x1cf9b(%rip), %rax     # 0x86f60
addq $0xc6d0, %rax           # imm = 0xC6D0
imulq $0x50, %rcx, %rcx
addq %rcx, %rax
movb $0x0, (%rax)
movl $0x5, -0x4(%rbp)
jmp 0x6a0ec
jmp 0x69fe3
movq -0x20(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
movq -0x40(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
movq -0x28(%rbp), %rcx
addq $0x2b8, %rcx            # imm = 0x2B8
movq -0x30(%rbp), %r8
callq 0x118a0
movl %eax, -0x34(%rbp)
cmpl $0x0, -0x34(%rbp)
je 0x6a0d5
jmp 0x6a01d
movq 0x1cf3c(%rip), %rax     # 0x86f60
cmpl $0x31, 0xd670(%rax)
jge 0x6a0cd
movq 0x1cf28(%rip), %rax     # 0x86f60
movslq 0xd670(%rax), %rax
movq 0x1cf1a(%rip), %rdi     # 0x86f60
addq $0xc6d0, %rdi           # imm = 0xC6D0
imulq $0x50, %rax, %rax
addq %rax, %rdi
leaq 0x14b3e(%rip), %rsi     # 0x7eb99
movl $0x50, %edx
callq 0x10840
movq 0x1cef4(%rip), %rax     # 0x86f60
movslq 0xd670(%rax), %rcx
movq 0x1cee6(%rip), %rax     # 0x86f60
addq $0xc6d0, %rax           # imm = 0xC6D0
imulq $0x50, %rcx, %rcx
addq %rcx, %rax
movb $0x0, 0x4f(%rax)
movq 0x1cece(%rip), %rax     # 0x86f60
movl 0xd670(%rax), %ecx
addl $0x1, %ecx
movq 0x1cebe(%rip), %rax     # 0x86f60
movl %ecx, 0xd670(%rax)
movq 0x1ceb1(%rip), %rax     # 0x86f60
movslq 0xd670(%rax), %rcx
movq 0x1cea3(%rip), %rax     # 0x86f60
addq $0xc6d0, %rax           # imm = 0xC6D0
imulq $0x50, %rcx, %rcx
addq %rcx, %rax
movb $0x0, (%rax)
movl -0x34(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x6a0ec
jmp 0x6a0d7
movq -0x28(%rbp), %rax
movl $0x1, 0x2b0(%rax)
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)