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

```asm
<small_atof>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x50,%rsp
  mov    %rdi,-0x48(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  mov    -0x48(%rbp),%rcx
  lea    -0x20(%rbp),%rax
  mov    $0x17,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncpy@plt>
  lea    -0x20(%rbp),%rax
  mov    %rax,-0x38(%rbp)
  jmp    L102
L116:
  mov    -0x38(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isDigit@plt>
  test   %rax,%rax
  jne    L16
  mov    -0x38(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2d,%al
  je     L16
  addq   $0x1,-0x38(%rbp)
L102:
  mov    -0x38(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L116
L16:
  mov    -0x38(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L13
  mov    D8(%rip),%rax
  jmp    L26
L13:
  mov    -0x38(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2d,%al
  sete   %al
  movzbl %al,%eax
  mov    %eax,-0x3c(%rbp)
  cmpl   $0x0,-0x3c(%rbp)
  je     L78
  addq   $0x1,-0x38(%rbp)
L78:
  mov    -0x38(%rbp),%rax
  mov    $0x2e,%esi
  mov    %rax,%rdi
  call   <strchr@plt>
  mov    %rax,-0x30(%rbp)
  cmpq   $0x0,-0x30(%rbp)
  jne    L101
  mov    -0x38(%rbp),%rax
  mov    $0x2c,%esi
  mov    %rax,%rdi
  call   <strchr@plt>
  mov    %rax,-0x30(%rbp)
L101:
  cmpq   $0x0,-0x30(%rbp)
  jne    L87
  cmpl   $0x0,-0x3c(%rbp)
  je     L67
  mov    -0x38(%rbp),%rax
  mov    %rax,%rdi
  call   <small_atoll@plt>
  movq   %xmm0,%rax
  movq   D13(%rip),%xmm0
  movq   %rax,%xmm2
  xorpd  %xmm0,%xmm2
  movq   %xmm2,%rax
  jmp    L26
L67:
  mov    -0x38(%rbp),%rax
  mov    %rax,%rdi
  call   <small_atoll@plt>
  movq   %xmm0,%rax
  jmp    L26
L87:
  mov    -0x30(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x30(%rbp)
  movb   $0x0,(%rax)
  mov    -0x30(%rbp),%rax
  mov    %rax,%rdi
  call   <small_atoll@plt>
  movq   %xmm0,%rax
  mov    %rax,-0x28(%rbp)
  jmp    L2
L88:
  movsd  -0x28(%rbp),%xmm0
  movsd  D5(%rip),%xmm1
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x28(%rbp)
  addq   $0x1,-0x30(%rbp)
L2:
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isDigit@plt>
  test   %rax,%rax
  jne    L88
  mov    -0x38(%rbp),%rax
  mov    %rax,%rdi
  call   <small_atoll@plt>
  movsd  -0x28(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x28(%rbp)
  cmpl   $0x0,-0x3c(%rbp)
  je     L124
  movsd  -0x28(%rbp),%xmm0
  movq   D13(%rip),%xmm1
  xorpd  %xmm1,%xmm0
  movq   %xmm0,%rax
  jmp    L26
L124:
  mov    -0x28(%rbp),%rax
L26:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L5
  call   <__stack_chk_fail@plt>
L5:
  movq   %rax,%xmm0
  leave
  ret
```

tool_calls: name: parse_data
arguments: label: D8
type_guessed: byte[8]
name: parse_data
arguments: label: D13
type_guessed: byte[8]
name: parse_data
arguments: label: D5
type_guessed: byte[8]

tool: {"D8": [0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00]}

tool: {"D13": [0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80]}

tool: {"D5": [0x00,0x00,0x00,0x00,0x00,0x00,0x24,0x40]}

assistant: ```c
double small_atof(const char *s) {
  char buf[24];
  strncpy(buf, s, 23);
  char *ptr = buf;
  while (*ptr) {
    if (isDigit(*ptr) || *ptr == '-')
      break;
    ptr++;
  }
  if (!*ptr)
    return 0;
  int negative = *ptr == '-';
  if (negative)
    ++ptr;
  char *dot = strchr(ptr, '.');
  if (!dot)
    dot = strchr(ptr, ',');
  if (!dot)
    return negative ? -small_atoll(ptr) : small_atoll(ptr);
  *dot++ = 0;
  double res = small_atoll(dot);
  while (isDigit(*dot)) {
    res /= 10;
    ++dot;
  }
  res += small_atoll(ptr);
  return negative ? -res : res;
}
```