user: What is the c source code of the assembly code below:

```asm
<hmsf2fsec>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %rsi,-0x30(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0x14(%rbp)
  mov    -0x28(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  test   %eax,%eax
  jne    L90
  mov    $0x0,%eax
  jmp    L183
L90:
  mov    -0x30(%rbp),%rax
  pxor   %xmm0,%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x28(%rbp),%rax
  mov    $0x3a,%esi
  mov    %rax,%rdi
  call   <strrchr@plt>
  mov    %rax,-0x10(%rbp)
  cmpq   $0x0,-0x10(%rbp)
  jne    L14
  mov    -0x28(%rbp),%rax
  mov    %rax,-0x10(%rbp)
  jmp    L202
L14:
  mov    -0x10(%rbp),%rax
  movb   $0x0,(%rax)
  addq   $0x1,-0x10(%rbp)
L202:
  mov    -0x30(%rbp),%rdx
  mov    -0x10(%rbp),%rax
  lea    D9(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <sscanf@plt>
  test   %eax,%eax
  jne    L18
  mov    $0x0,%eax
  jmp    L183
L18:
  mov    -0x10(%rbp),%rax
  cmp    -0x28(%rbp),%rax
  jne    L107
  mov    $0x1,%eax
  jmp    L183
L107:
  mov    -0x28(%rbp),%rax
  mov    $0x3a,%esi
  mov    %rax,%rdi
  call   <strrchr@plt>
  mov    %rax,-0x10(%rbp)
  cmpq   $0x0,-0x10(%rbp)
  jne    L36
  mov    -0x28(%rbp),%rax
  mov    %rax,-0x10(%rbp)
  jmp    L200
L36:
  mov    -0x10(%rbp),%rax
  movb   $0x0,(%rax)
  addq   $0x1,-0x10(%rbp)
L200:
  lea    -0x14(%rbp),%rdx
  mov    -0x10(%rbp),%rax
  lea    D14(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <sscanf@plt>
  test   %eax,%eax
  jne    L87
  mov    $0x0,%eax
  jmp    L183
L87:
  mov    -0x30(%rbp),%rax
  movsd  (%rax),%xmm1
  mov    -0x14(%rbp),%eax
  imul   $0x3c,%eax,%eax
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  addsd  %xmm1,%xmm0
  mov    -0x30(%rbp),%rax
  movsd  %xmm0,(%rax)
  mov    -0x10(%rbp),%rax
  cmp    -0x28(%rbp),%rax
  jne    L184
  mov    $0x1,%eax
  jmp    L183
L184:
  mov    -0x28(%rbp),%rax
  mov    $0x3a,%esi
  mov    %rax,%rdi
  call   <strrchr@plt>
  mov    %rax,-0x10(%rbp)
  cmpq   $0x0,-0x10(%rbp)
  jne    L171
  mov    -0x28(%rbp),%rax
  mov    %rax,-0x10(%rbp)
  jmp    L50
L171:
  mov    -0x10(%rbp),%rax
  movb   $0x0,(%rax)
  addq   $0x1,-0x10(%rbp)
L50:
  lea    -0x14(%rbp),%rdx
  mov    -0x10(%rbp),%rax
  lea    D14(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <sscanf@plt>
  test   %eax,%eax
  jne    L21
  mov    $0x0,%eax
  jmp    L183
L21:
  mov    -0x30(%rbp),%rax
  movsd  (%rax),%xmm1
  mov    -0x14(%rbp),%eax
  imul   $0xe10,%eax,%eax
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  addsd  %xmm1,%xmm0
  mov    -0x30(%rbp),%rax
  movsd  %xmm0,(%rax)
  mov    -0x10(%rbp),%rax
  cmp    -0x28(%rbp),%rax
  jne    L192
  mov    $0x1,%eax
  jmp    L183
L192:
  mov    $0x0,%eax
L183:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L127
  call   <__stack_chk_fail@plt>
L127:
  leave
  ret
```

tool_calls: name: parse_data
arguments: data_label: D9
datatype: string
name: parse_data
arguments: data_label: D14
datatype: string

tool: D9: %lf

tool: D14: %d

assistant: ```c
int hmsf2fsec(char *instring, double *seconds) {
  char *charptr;
  int i = 0;
  if (!strlen(instring))
    return 0;
  *seconds = 0;
  charptr = strrchr(instring, ':');
  if (charptr == NULL)
    charptr = instring;
  else {
    *charptr = '\0';
    charptr++;
  }
  if (!sscanf(charptr, "%lf", seconds))
    return 0;
  if (charptr == instring)
    return 1;
  charptr = strrchr(instring, ':');
  if (charptr == NULL)
    charptr = instring;
  else {
    *charptr = '\0';
    charptr++;
  }
  if (!sscanf(charptr, "%d", &i))
    return 0;
  *seconds += i * 60;
  if (charptr == instring)
    return 1;
  charptr = strrchr(instring, ':');
  if (charptr == NULL)
    charptr = instring;
  else {
    *charptr = '\0';
    charptr++;
  }
  if (!sscanf(charptr, "%d", &i))
    return 0;
  *seconds += i * 3600;
  if (charptr == instring)
    return 1;
  return 0;
}
```