user: Translate the below assembly code into C programming language:

```asm
<validate_line>:
  endbr64
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x210,%rsp
  mov    %rdi,%rbx
  mov    %fs:0x28,%rax
  mov    %rax,0x208(%rsp)
  xor    %eax,%eax
  lea    D20(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L88
  mov    %rsp,%rbp
  mov    %rbx,%rsi
  mov    %rbp,%rdi
  call   <strcpy@plt>
  movb   $0x0,0x200(%rsp)
  mov    $0x1,%edx
  lea    D57(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L89
  mov    %rsp,%r12
  lea    D39(%rip),%rsi
  mov    %rbp,%rdi
  call   <strtok@plt>
  lea    D80(%rip),%rbp
  mov    %rbp,%rsi
  mov    %r12,%rdi
  call   <strtok@plt>
  mov    %rbp,%rsi
  mov    $0x0,%edi
  call   <strtok@plt>
  mov    %rax,%rdi
  call   <atoi@plt>
  mov    %eax,%ebp
  lea    -0x1(%rax),%eax
  cmp    $0x1,%eax
  ja     L18
  lea    D80(%rip),%rsi
  mov    $0x0,%edi
  call   <strtok@plt>
  mov    %rax,%rdi
  test   %rax,%rax
  je     L91
  call   <atof@plt>
  movq   %xmm0,%r12
  pxor   %xmm0,%xmm0
  movq   %r12,%xmm1
  comisd %xmm1,%xmm0
  jae    L115
  movq   %r12,%xmm0
  call   <isnormal@plt>
  test   %eax,%eax
  jne    L107
L115:
  lea    D10(%rip),%rsi
  mov    %rbx,%rdi
  call   <print_error@plt>
  jmp    L118
L88:
  lea    D46(%rip),%rsi
  mov    %rbx,%rdi
  call   <print_error@plt>
L118:
  mov    0x208(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L119
  add    $0x210,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
L89:
  lea    D41(%rip),%rsi
  mov    %rbx,%rdi
  call   <print_error@plt>
  jmp    L118
L18:
  lea    D65(%rip),%rsi
  mov    %rbx,%rdi
  call   <print_error@plt>
  jmp    L118
L91:
  lea    D67(%rip),%rsi
  mov    %rbx,%rdi
  call   <print_error@plt>
  jmp    L118
L107:
  movq   %r12,%xmm0
  mov    %ebp,%edi
  call   <add_float@plt>
  jmp    L118
L119:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: tag: D20
datatype: string
name: retrieve_data
arguments: tag: D57
datatype: string
name: retrieve_data
arguments: tag: D39
datatype: string
name: retrieve_data
arguments: tag: D80
datatype: string
name: retrieve_data
arguments: tag: D10
datatype: string
name: retrieve_data
arguments: tag: D46
datatype: string
name: retrieve_data
arguments: tag: D41
datatype: string
name: retrieve_data
arguments: tag: D65
datatype: string
name: retrieve_data
arguments: tag: D67
datatype: string

tool: D20: 


tool: D57: #

tool: D39: '#

tool: D80: ;

tool: D10: falseValue

tool: D46: empty

tool: D41: comment

tool: D65: falseLOC

tool: D67: noFloat

assistant: ```c
void validate_line(char *line) {
  if (strcmp(line, "\n") == 0) {
    print_error(line, "empty");
    return;
  }
  char lineTMP[512];
  strcpy(lineTMP, line);
  lineTMP[512] = '\0';
  if (strncmp(lineTMP, "#", 1) == 0) {
    print_error(line, "comment");
    return;
  }
  strtok(lineTMP, "'#");
  char *ptr = strtok(lineTMP, ";");
  char *ptrClass = strtok(NULL, ";");
  int loc = atoi(ptrClass);
  if (loc > 2 || loc < 1) {
    print_error(line, "falseLOC");
    return;
  }
  char *ptrFloat = strtok(NULL, ";");
  if (ptrFloat == NULL) {
    print_error(line, "noFloat");
    return;
  }
  double number = atof(ptrFloat);
  if (number <= 0.0 || !isnormal(number)) {
    print_error(line, "falseValue");
    return;
  }
  add_float(loc, number);
}
```