user: 请将以下的汇编代码转换成C语言代码:

```asm
<validate_line>:
  endbr64
  push   %r13
  lea    D22(%rip),%rsi
  push   %r12
  push   %rbp
  mov    %rdi,%rbp
  sub    $0x220,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x218(%rsp)
  xor    %eax,%eax
  call   <strcmp@plt>
  test   %rax,%rax
  je     L110
  lea    0x10(%rsp),%r12
  mov    %rbp,%rsi
  mov    %r12,%rdi
  call   <strcpy@plt>
  mov    $0x1,%edx
  mov    %r12,%rdi
  lea    D65(%rip),%rsi
  movb   $0x0,0x210(%rsp)
  call   <strncmp@plt>
  test   %rax,%rax
  je     L111
  mov    %r12,%rdi
  lea    D78(%rip),%rsi
  lea    D88(%rip),%r13
  call   <strtok@plt>
  mov    %r12,%rdi
  mov    %r13,%rsi
  call   <strtok@plt>
  mov    %r13,%rsi
  xor    %edi,%edi
  call   <strtok@plt>
  mov    %rax,%rdi
  call   <atoi@plt>
  mov    %eax,%r12d
  lea    -0x1(%rax),%eax
  cmp    $0x1,%eax
  ja     L0
  xor    %edi,%edi
  mov    %r13,%rsi
  call   <strtok@plt>
  mov    %rax,%rdi
  test   %rax,%rax
  je     L73
  call   <atof@plt>
  pxor   %xmm1,%xmm1
  comisd %xmm0,%xmm1
  jae    L51
  movsd  %xmm0,0x8(%rsp)
  call   <isnormal@plt>
  test   %eax,%eax
  je     L51
  movsd  0x8(%rsp),%xmm0
  mov    %r12d,%edi
  call   <add_float@plt>
  jmp    L69
  xchg   %ax,%ax
L111:
  lea    D60(%rip),%rsi
  mov    %rbp,%rdi
  call   <print_error@plt>
L69:
  mov    0x218(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L44
  add    $0x220,%rsp
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
  nopl   0x0(%rax,%rax,1)
L110:
  mov    0x218(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L44
  add    $0x220,%rsp
  mov    %rbp,%rdi
  lea    D1(%rip),%rsi
  pop    %rbp
  pop    %r12
  pop    %r13
  jmp    1110 <print_error@plt>
  cs nopw 0x0(%rax,%rax,1)
L51:
  lea    D87(%rip),%rsi
  mov    %rbp,%rdi
  call   <print_error@plt>
  jmp    L69
  nopl   0x0(%rax)
L0:
  lea    D80(%rip),%rsi
  mov    %rbp,%rdi
  call   <print_error@plt>
  jmp    L69
  nopl   0x0(%rax)
L73:
  lea    D33(%rip),%rsi
  mov    %rbp,%rdi
  call   <print_error@plt>
  jmp    L69
L44:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: data_label: D22
datatype: string
name: disassemble_data
arguments: data_label: D65
datatype: string
name: disassemble_data
arguments: data_label: D78
datatype: string
name: disassemble_data
arguments: data_label: D88
datatype: string
name: disassemble_data
arguments: data_label: D60
datatype: string
name: disassemble_data
arguments: data_label: D1
datatype: string
name: disassemble_data
arguments: data_label: D87
datatype: string
name: disassemble_data
arguments: data_label: D80
datatype: string
name: disassemble_data
arguments: data_label: D33
datatype: string

tool: D22: 


tool: D65: #

tool: D78: '#

tool: D88: ;

tool: D60: comment

tool: D1: empty

tool: D87: falseValue

tool: D80: falseLOC

tool: D33: 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);
}
```