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

```asm
<split_double_line>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x418,%rsp
  mov    %rdi,-0x418(%rbp)
  mov    %rsi,-0x420(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x18(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0x40c(%rbp)
  movl   $0x0,-0x408(%rbp)
  movl   $0x0,-0x404(%rbp)
L63:
  mov    -0x40c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x418(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x20,%al
  je     L72
  mov    -0x40c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x418(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L92
L72:
  cmpl   $0x0,-0x408(%rbp)
  jne    L77
  lea    D17(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    $0x1,%edi
  call   <exit@plt>
  jmp    L29
L77:
  mov    -0x408(%rbp),%eax
  cltq
  movb   $0x0,-0x400(%rbp,%rax,1)
  cmpq   $0x0,-0x420(%rbp)
  je     L94
  mov    -0x404(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x420(%rbp),%rax
  lea    (%rdx,%rax,1),%rbx
  lea    -0x400(%rbp),%rax
  mov    %rax,%rdi
  call   <atof@plt>
  movq   %xmm0,%rax
  mov    %rax,(%rbx)
L94:
  addl   $0x1,-0x404(%rbp)
  movl   $0x0,-0x408(%rbp)
L29:
  mov    -0x40c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x418(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L34
  jmp    L74
L92:
  mov    -0x40c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x418(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x2f,%al
  jle    L16
  mov    -0x40c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x418(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x39,%al
  jle    L105
L16:
  mov    -0x40c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x418(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x2e,%al
  je     L105
  mov    -0x40c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x418(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x2d,%al
  jne    L54
L105:
  mov    -0x40c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x418(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%edx
  mov    -0x408(%rbp),%eax
  cltq
  mov    %dl,-0x400(%rbp,%rax,1)
  addl   $0x1,-0x408(%rbp)
  jmp    L34
L54:
  lea    D8(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    -0x40c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x418(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <putchar@plt>
  mov    $0x1,%edi
  call   <exit@plt>
L34:
  addl   $0x1,-0x40c(%rbp)
  jmp    L63
L74:
  mov    -0x404(%rbp),%eax
  mov    -0x18(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L136
  call   <__stack_chk_fail@plt>
L136:
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

tool_calls: name: disassemble_data
arguments: tag: D17
datatype: string
name: disassemble_data
arguments: tag: D8
datatype: string

tool: D17: Error in reading formatted file.


tool: D8: Unexpected character found in the file.


assistant: ```c
int split_double_line(char *str, double *parray) {
  char num_str[1000];
  int i = 0;
  int j = 0;
  int num_count = 0;
  while (1) {
    if (str[i] == ' ' || str[i] == '\0') {
      if (j == 0) {
        printf("Error in reading formatted file.\n");
        exit(1);
      } else {
        num_str[j] = '\0';
        if (parray != NULL)
          parray[num_count] = atof(num_str);
        num_count++;
        j = 0;
      }
      if (str[i] == '\0')
        break;
    } else if ((str[i] >= 48 && str[i] <= 57) || (str[i] == '.') || (str[i] == '-')) {
      num_str[j] = str[i];
      j++;
    } else {
      printf("Unexpected character found in the file.\n");
      putchar(str[i]);
      exit(1);
    }
    i++;
  }
  return num_count;
}
```