user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<ffs2tm>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0xb0,%rsp
  mov    %rdi,-0x78(%rbp)
  mov    %rsi,-0x80(%rbp)
  mov    %rdx,-0x88(%rbp)
  mov    %rcx,-0x90(%rbp)
  mov    %r8,-0x98(%rbp)
  mov    %r9,-0xa0(%rbp)
  mov    0x10(%rbp),%rax
  mov    %rax,-0xa8(%rbp)
  mov    0x18(%rbp),%rax
  mov    %rax,-0xb0(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  mov    -0xb0(%rbp),%rax
  mov    (%rax),%eax
  test   %eax,%eax
  jle    L630
  mov    -0xb0(%rbp),%rax
  mov    (%rax),%eax
  jmp    L318
L630:
  cmpq   $0x0,-0x80(%rbp)
  je     L147
  mov    -0x80(%rbp),%rax
  movl   $0x0,(%rax)
L147:
  cmpq   $0x0,-0x88(%rbp)
  je     L495
  mov    -0x88(%rbp),%rax
  movl   $0x0,(%rax)
L495:
  cmpq   $0x0,-0x90(%rbp)
  je     L480
  mov    -0x90(%rbp),%rax
  movl   $0x0,(%rax)
L480:
  cmpq   $0x0,-0x98(%rbp)
  je     L646
  mov    -0x98(%rbp),%rax
  movl   $0x0,(%rax)
L646:
  cmpq   $0x0,-0xa0(%rbp)
  je     L408
  mov    -0xa0(%rbp),%rax
  movl   $0x0,(%rax)
L408:
  cmpq   $0x0,-0xa8(%rbp)
  je     L244
  mov    -0xa8(%rbp),%rax
  pxor   %xmm0,%xmm0
  movsd  %xmm0,(%rax)
L244:
  cmpq   $0x0,-0x78(%rbp)
  jne    L194
  lea    D48(%rip),%rax
  mov    %rax,%rdi
  call   <ffpmsg@plt>
  mov    -0xb0(%rbp),%rax
  movl   $0x1a4,(%rax)
  mov    -0xb0(%rbp),%rax
  mov    (%rax),%eax
  jmp    L318
L194:
  mov    -0x78(%rbp),%rax
  add    $0x2,%rax
  movzbl (%rax),%eax
  cmp    $0x2f,%al
  je     L230
  mov    -0x78(%rbp),%rax
  add    $0x4,%rax
  movzbl (%rax),%eax
  cmp    $0x2d,%al
  jne    L430
L230:
  mov    -0xb0(%rbp),%rdi
  mov    -0x90(%rbp),%rcx
  mov    -0x88(%rbp),%rdx
  mov    -0x80(%rbp),%rsi
  mov    -0x78(%rbp),%rax
  mov    %rdi,%r8
  mov    %rax,%rdi
  call   <ffs2dt@plt>
  test   %rax,%rax
  jle    L239
  mov    -0xb0(%rbp),%rax
  mov    (%rax),%eax
  jmp    L318
L239:
  mov    -0x78(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,-0x64(%rbp)
  cmpl   $0x8,-0x64(%rbp)
  je     L285
  cmpl   $0xa,-0x64(%rbp)
  jne    L233
L285:
  mov    -0xb0(%rbp),%rax
  mov    (%rax),%eax
  jmp    L318
L233:
  cmpl   $0x12,-0x64(%rbp)
  jg     L174
  lea    D98(%rip),%rax
  mov    %rax,%rdi
  call   <ffpmsg@plt>
  mov    -0x78(%rbp),%rax
  mov    %rax,%rdi
  call   <ffpmsg@plt>
  mov    -0xb0(%rbp),%rax
  movl   $0x1a4,(%rax)
  mov    -0xb0(%rbp),%rax
  mov    (%rax),%eax
  jmp    L318
L174:
  mov    -0x78(%rbp),%rax
  add    $0xa,%rax
  movzbl (%rax),%eax
  cmp    $0x54,%al
  jne    L99
  mov    -0x78(%rbp),%rax
  add    $0xd,%rax
  movzbl (%rax),%eax
  cmp    $0x3a,%al
  jne    L99
  mov    -0x78(%rbp),%rax
  add    $0x10,%rax
  movzbl (%rax),%eax
  cmp    $0x3a,%al
  jne    L99
  mov    -0x78(%rbp),%rax
  add    $0xb,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isdigit@plt>
  test   %rax,%rax
  je     L189
  mov    -0x78(%rbp),%rax
  add    $0xc,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isdigit@plt>
  test   %rax,%rax
  je     L189
  mov    -0x78(%rbp),%rax
  add    $0xe,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isdigit@plt>
  test   %rax,%rax
  je     L189
  mov    -0x78(%rbp),%rax
  add    $0xf,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isdigit@plt>
  test   %rax,%rax
  je     L189
  mov    -0x78(%rbp),%rax
  add    $0x11,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isdigit@plt>
  test   %rax,%rax
  je     L189
  mov    -0x78(%rbp),%rax
  add    $0x12,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isdigit@plt>
  test   %rax,%rax
  je     L189
  cmpl   $0x13,-0x64(%rbp)
  jle    L614
  mov    -0x78(%rbp),%rax
  add    $0x13,%rax
  movzbl (%rax),%eax
  cmp    $0x2e,%al
  je     L614
  lea    D98(%rip),%rax
  mov    %rax,%rdi
  call   <ffpmsg@plt>
  mov    -0x78(%rbp),%rax
  mov    %rax,%rdi
  call   <ffpmsg@plt>
  mov    -0xb0(%rbp),%rax
  movl   $0x1a4,(%rax)
  mov    -0xb0(%rbp),%rax
  mov    (%rax),%eax
  jmp    L318
L614:
  cmpq   $0x0,-0x98(%rbp)
  je     L380
  mov    -0x78(%rbp),%rax
  add    $0xb,%rax
  mov    %rax,%rdi
  call   <atoi@plt>
  mov    -0x98(%rbp),%rdx
  mov    %eax,(%rdx)
L380:
  cmpq   $0x0,-0xa0(%rbp)
  je     L439
  mov    -0x78(%rbp),%rax
  add    $0xe,%rax
  mov    %rax,%rdi
  call   <atoi@plt>
  mov    -0xa0(%rbp),%rdx
  mov    %eax,(%rdx)
L439:
  cmpq   $0x0,-0xa8(%rbp)
  je     L400
  mov    -0x78(%rbp),%rax
  add    $0x11,%rax
  mov    %rax,%rdi
  call   <atof@plt>
  movq   %xmm0,%rax
  mov    -0xa8(%rbp),%rdx
  mov    %rax,(%rdx)
  jmp    L400
L189:
  lea    D98(%rip),%rax
  mov    %rax,%rdi
  call   <ffpmsg@plt>
  mov    -0x78(%rbp),%rax
  mov    %rax,%rdi
  call   <ffpmsg@plt>
  mov    -0xb0(%rbp),%rax
  movl   $0x1a4,(%rax)
  mov    -0xb0(%rbp),%rax
  mov    (%rax),%eax
  jmp    L318
L400:
  jmp    L99
L430:
  mov    -0x78(%rbp),%rax
  add    $0x2,%rax
  movzbl (%rax),%eax
  cmp    $0x3a,%al
  jne    L1
  mov    -0x78(%rbp),%rax
  add    $0x5,%rax
  movzbl (%rax),%eax
  cmp    $0x3a,%al
  jne    L1
  mov    -0x78(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isdigit@plt>
  test   %rax,%rax
  je     L600
  mov    -0x78(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isdigit@plt>
  test   %rax,%rax
  je     L600
  mov    -0x78(%rbp),%rax
  add    $0x3,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isdigit@plt>
  test   %rax,%rax
  je     L600
  mov    -0x78(%rbp),%rax
  add    $0x4,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isdigit@plt>
  test   %rax,%rax
  je     L600
  mov    -0x78(%rbp),%rax
  add    $0x6,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isdigit@plt>
  test   %rax,%rax
  je     L600
  mov    -0x78(%rbp),%rax
  add    $0x7,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isdigit@plt>
  test   %rax,%rax
  je     L600
  cmpq   $0x0,-0x98(%rbp)
  je     L137
  mov    -0x78(%rbp),%rax
  mov    %rax,%rdi
  call   <atoi@plt>
  mov    -0x98(%rbp),%rdx
  mov    %eax,(%rdx)
L137:
  cmpq   $0x0,-0xa0(%rbp)
  je     L643
  mov    -0x78(%rbp),%rax
  add    $0x3,%rax
  mov    %rax,%rdi
  call   <atoi@plt>
  mov    -0xa0(%rbp),%rdx
  mov    %eax,(%rdx)
L643:
  cmpq   $0x0,-0xa8(%rbp)
  je     L602
  mov    -0x78(%rbp),%rax
  add    $0x6,%rax
  mov    %rax,%rdi
  call   <atof@plt>
  movq   %xmm0,%rax
  mov    -0xa8(%rbp),%rdx
  mov    %rax,(%rdx)
  jmp    L602
L600:
  lea    D98(%rip),%rax
  mov    %rax,%rdi
  call   <ffpmsg@plt>
  mov    -0x78(%rbp),%rax
  mov    %rax,%rdi
  call   <ffpmsg@plt>
  mov    -0xb0(%rbp),%rax
  movl   $0x1a4,(%rax)
  mov    -0xb0(%rbp),%rax
  mov    (%rax),%eax
  jmp    L318
L602:
  jmp    L223
L1:
  lea    D98(%rip),%rax
  mov    %rax,%rdi
  call   <ffpmsg@plt>
  mov    -0x78(%rbp),%rax
  mov    %rax,%rdi
  call   <ffpmsg@plt>
  mov    -0xb0(%rbp),%rax
  movl   $0x1a4,(%rax)
  mov    -0xb0(%rbp),%rax
  mov    (%rax),%eax
  jmp    L318
L99:
  nop
L223:
  cmpq   $0x0,-0x98(%rbp)
  je     L279
  mov    -0x98(%rbp),%rax
  mov    (%rax),%eax
  test   %eax,%eax
  js     L104
  mov    -0x98(%rbp),%rax
  mov    (%rax),%eax
  cmp    $0x17,%eax
  jle    L279
L104:
  mov    -0x98(%rbp),%rax
  mov    (%rax),%eax
  pxor   %xmm2,%xmm2
  cvtsi2sd %eax,%xmm2
  movq   %xmm2,%rdx
  lea    -0x60(%rbp),%rax
  movq   %rdx,%xmm0
  lea    D21(%rip),%rdx
  mov    $0x51,%esi
  mov    %rax,%rdi
  call   <snprintf@plt>
  lea    -0x60(%rbp),%rax
  mov    %rax,%rdi
  call   <ffpmsg@plt>
  mov    -0xb0(%rbp),%rax
  movl   $0x1a4,(%rax)
  mov    -0xb0(%rbp),%rax
  mov    (%rax),%eax
  jmp    L318
L279:
  cmpq   $0x0,-0xa0(%rbp)
  je     L205
  mov    -0xa0(%rbp),%rax
  mov    (%rax),%eax
  test   %eax,%eax
  js     L113
  mov    -0xa0(%rbp),%rax
  mov    (%rax),%eax
  cmp    $0x3b,%eax
  jle    L205
L113:
  mov    -0xa0(%rbp),%rax
  mov    (%rax),%eax
  pxor   %xmm3,%xmm3
  cvtsi2sd %eax,%xmm3
  movq   %xmm3,%rdx
  lea    -0x60(%rbp),%rax
  movq   %rdx,%xmm0
  lea    D27(%rip),%rdx
  mov    $0x51,%esi
  mov    %rax,%rdi
  call   <snprintf@plt>
  lea    -0x60(%rbp),%rax
  mov    %rax,%rdi
  call   <ffpmsg@plt>
  mov    -0xb0(%rbp),%rax
  movl   $0x1a4,(%rax)
  mov    -0xb0(%rbp),%rax
  mov    (%rax),%eax
  jmp    L318
L205:
  cmpq   $0x0,-0xa8(%rbp)
  je     L525
  mov    -0xa8(%rbp),%rax
  movsd  (%rax),%xmm1
  pxor   %xmm0,%xmm0
  comisd %xmm1,%xmm0
  ja     L594
  mov    -0xa8(%rbp),%rax
  movsd  (%rax),%xmm0
  comisd D66(%rip),%xmm0
  jb     L525
L594:
  mov    -0xa8(%rbp),%rax
  mov    (%rax),%rdx
  lea    -0x60(%rbp),%rax
  movq   %rdx,%xmm0
  lea    D61(%rip),%rdx
  mov    $0x51,%esi
  mov    %rax,%rdi
  call   <snprintf@plt>
  lea    -0x60(%rbp),%rax
  mov    %rax,%rdi
  call   <ffpmsg@plt>
  mov    -0xb0(%rbp),%rax
  movl   $0x1a4,(%rax)
  mov    -0xb0(%rbp),%rax
  mov    (%rax),%eax
  jmp    L318
L525:
  mov    -0xb0(%rbp),%rax
  mov    (%rax),%eax
L318:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L232
  call   <__stack_chk_fail@plt>
L232:
  leave
  ret
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D48
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D98
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D21
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D27
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D66
type_guessed: f64
name: extract_symbolic_data
arguments: data_label: D61
type_guessed: string

tool: D48: error: null input date string (ffs2tm)

tool: D98: input date string has illegal format:

tool: D21: hour value is out of range 0 - 23: %d (ffs2tm)

tool: D27: minute value is out of range 0 - 59: %d (ffs2tm)

tool: D66: 61

tool: D61: second value is out of range 0 - 60.9999: %f (ffs2tm)

assistant: ```c
int ffs2tm(char *datestr, int *year, int *month, int *day, int *hour, int *minute, double *second, int *status) {
  int slen;
  char errmsg[81];
  if (*status > 0)
    return (*status);
  if (year)
    *year = 0;
  if (month)
    *month = 0;
  if (day)
    *day = 0;
  if (hour)
    *hour = 0;
  if (minute)
    *minute = 0;
  if (second)
    *second = 0.;
  if (!datestr) {
    ffpmsg("error: null input date string (ffs2tm)");
    return (*status = 420);
  }
  if (datestr[2] == '/' || datestr[4] == '-') {
    if (ffs2dt(datestr, year, month, day, status) > 0)
      return (*status);
    slen = strlen(datestr);
    if (slen == 8 || slen == 10)
      return (*status);
    else if (slen < 19) {
      ffpmsg("input date string has illegal format:");
      ffpmsg(datestr);
      return (*status = 420);
    } else if (datestr[10] == 'T' && datestr[13] == ':' && datestr[16] == ':') {
      if (isdigit((int)datestr[11]) && isdigit((int)datestr[12]) && isdigit((int)datestr[14]) && isdigit((int)datestr[15]) && isdigit((int)datestr[17]) && isdigit((int)datestr[18])) {
        if (slen > 19 && datestr[19] != '.') {
          ffpmsg("input date string has illegal format:");
          ffpmsg(datestr);
          return (*status = 420);
        }
        if (hour)
          *hour = atoi(&datestr[11]);
        if (minute)
          *minute = atoi(&datestr[14]);
        if (second)
          *second = atof(&datestr[17]);
      } else {
        ffpmsg("input date string has illegal format:");
        ffpmsg(datestr);
        return (*status = 420);
      }
    }
  } else {
    if (datestr[2] == ':' && datestr[5] == ':') {
      if (isdigit((int)datestr[0]) && isdigit((int)datestr[1]) && isdigit((int)datestr[3]) && isdigit((int)datestr[4]) && isdigit((int)datestr[6]) && isdigit((int)datestr[7])) {
        if (hour)
          *hour = atoi(&datestr[0]);
        if (minute)
          *minute = atoi(&datestr[3]);
        if (second)
          *second = atof(&datestr[6]);
      } else {
        ffpmsg("input date string has illegal format:");
        ffpmsg(datestr);
        return (*status = 420);
      }
    } else {
      ffpmsg("input date string has illegal format:");
      ffpmsg(datestr);
      return (*status = 420);
    }
  }
  if (hour)
    if (*hour < 0 || *hour > 23) {
      snprintf(errmsg, 81, "hour value is out of range 0 - 23: %d (ffs2tm)", *hour);
      ffpmsg(errmsg);
      return (*status = 420);
    }
  if (minute)
    if (*minute < 0 || *minute > 59) {
      snprintf(errmsg, 81, "minute value is out of range 0 - 59: %d (ffs2tm)", *minute);
      ffpmsg(errmsg);
      return (*status = 420);
    }
  if (second)
    if (*second < 0 || *second >= 61.) {
      snprintf(errmsg, 81, "second value is out of range 0 - 60.9999: %f (ffs2tm)", *second);
      ffpmsg(errmsg);
      return (*status = 420);
    }
  return (*status);
}
```