user: 请从给定的汇编指令推导出C源代码:

```asm
<fftm2s>:
  endbr64
  push   %r12
  mov    %edi,%r10d
  push   %rbp
  push   %rbx
  sub    $0x60,%rsp
  mov    0x88(%rsp),%rbx
  mov    0x80(%rsp),%rdi
  mov    %fs:0x28,%rax
  mov    %rax,0x58(%rsp)
  mov    (%rbx),%eax
  test   %eax,%eax
  jg     L72
  cmp    $0x270f,%r10d
  ja     L57
  cmp    $0xc,%esi
  ja     L129
  mov    %edx,%r12d
  cmp    $0x1f,%edx
  ja     L208
  mov    %ecx,%edx
  cmp    $0x17,%ecx
  ja     L207
  mov    %r8d,%ecx
  cmp    $0x3b,%r8d
  ja     L117
  pxor   %xmm1,%xmm1
  comisd %xmm0,%xmm1
  ja     L51
  comisd D68(%rip),%xmm0
  jae    L51
  cmp    $0x19,%r9d
  jg     L75
  test   %r9d,%r9d
  je     L144
  lea    0x3(%r9),%r8d
  jns    L60
  mov    %esi,%ecx
  mov    %r12d,%r8d
  mov    %r10d,%edx
  xor    %eax,%eax
  lea    D61(%rip),%rsi
  call   <sprintf@plt>
  mov    (%rbx),%eax
  nopw   0x0(%rax,%rax,1)
L72:
  mov    0x58(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L48
  add    $0x60,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
  nopl   (%rax)
L129:
  mov    %esi,%edx
  mov    %rsp,%r12
  lea    D77(%rip),%rsi
L154:
  mov    %r12,%rdi
  xor    %eax,%eax
  call   <sprintf@plt>
  mov    %r12,%rdi
  call   <ffpmsg@plt>
  movl   $0x1a4,(%rbx)
  mov    $0x1a4,%eax
  jmp    L72
  nopl   0x0(%rax,%rax,1)
L144:
  mov    $0x2,%r8d
L60:
  mov    %esi,%eax
  or     %r12d,%eax
  or     %r10d,%eax
  jne    L170
  lea    D46(%rip),%rsi
  mov    $0x1,%eax
  call   <sprintf@plt>
  mov    (%rbx),%eax
  jmp    L72
  nopl   (%rax)
L51:
  cvttsd2si %xmm0,%edx
  mov    %rsp,%r12
  lea    D8(%rip),%rsi
  jmp    L154
  nopl   0x0(%rax,%rax,1)
L170:
  sub    $0x8,%rsp
  mov    $0x1,%eax
  push   %r9
  mov    %edx,%r9d
  mov    %r10d,%edx
  push   %r8
  mov    %r12d,%r8d
  push   %rcx
  mov    %esi,%ecx
  lea    D62(%rip),%rsi
  call   <sprintf@plt>
  mov    (%rbx),%eax
  add    $0x20,%rsp
  jmp    L72
L57:
  mov    %rsp,%r12
  mov    %r10d,%edx
  lea    D31(%rip),%rsi
  jmp    L154
  nopw   0x0(%rax,%rax,1)
L208:
  mov    %rsp,%rbp
  lea    D42(%rip),%rsi
L211:
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <sprintf@plt>
  mov    %rbp,%rdi
  call   <ffpmsg@plt>
  movl   $0x1a4,(%rbx)
  mov    $0x1a4,%eax
  jmp    L72
  nopl   0x0(%rax)
L75:
  mov    %rsp,%rbp
  mov    %r9d,%edx
  lea    D5(%rip),%rsi
  jmp    L211
  nopw   0x0(%rax,%rax,1)
L207:
  mov    %rsp,%rbp
  lea    D23(%rip),%rsi
  jmp    L211
  nopl   0x0(%rax)
L117:
  mov    %rsp,%rbp
  mov    %r8d,%edx
  lea    D26(%rip),%rsi
  jmp    L211
L48:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: data_tag: D68
type: f32
name: unpack_data
arguments: data_tag: D61
type: string
name: unpack_data
arguments: data_tag: D77
type: string
name: unpack_data
arguments: data_tag: D46
type: string
name: unpack_data
arguments: data_tag: D8
type: string
name: unpack_data
arguments: data_tag: D62
type: string
name: unpack_data
arguments: data_tag: D31
type: string
name: unpack_data
arguments: data_tag: D42
type: string
name: unpack_data
arguments: data_tag: D5
type: string
name: unpack_data
arguments: data_tag: D23
type: string
name: unpack_data
arguments: data_tag: D26
type: string

tool: D68: 0

tool: D61: %.4d-%.2d-%.2d

tool: D77: input month value is out of range 0 - 12: %d (fftm2s)

tool: D46: %.2d:%.2d:%0*.*f

tool: D8: input second value is out of range 0 - 60.999: %f (fftm2s)

tool: D62: %.4d-%.2d-%.2dT%.2d:%.2d:%0*.*f

tool: D31: input year value is out of range 0 - 9999: %d (fftm2s)

tool: D42: input day value is out of range 0 - 31: %d (fftm2s)

tool: D5: input decimals value is out of range 0 - 25: %d (fftm2s)

tool: D23: input hour value is out of range 0 - 23: %d (fftm2s)

tool: D26: input minute value is out of range 0 - 59: %d (fftm2s)

assistant: ```c
int fftm2s(int year, int month, int day, int hour, int minute, double second, int decimals, char *datestr, int *status) {
  int width;
  char errmsg[81];
  if (*status > 0)
    return (*status);
  if (year < 0 || year > 9999) {
    sprintf(errmsg, "input year value is out of range 0 - 9999: %d (fftm2s)", year);
    ffpmsg(errmsg);
    return (*status = 420);
  } else if (month < 0 || month > 12) {
    sprintf(errmsg, "input month value is out of range 0 - 12: %d (fftm2s)", month);
    ffpmsg(errmsg);
    return (*status = 420);
  } else if (day < 0 || day > 31) {
    sprintf(errmsg, "input day value is out of range 0 - 31: %d (fftm2s)", day);
    ffpmsg(errmsg);
    return (*status = 420);
  } else if (hour < 0 || hour > 23) {
    sprintf(errmsg, "input hour value is out of range 0 - 23: %d (fftm2s)", hour);
    ffpmsg(errmsg);
    return (*status = 420);
  } else if (minute < 0 || minute > 59) {
    sprintf(errmsg, "input minute value is out of range 0 - 59: %d (fftm2s)", minute);
    ffpmsg(errmsg);
    return (*status = 420);
  } else if (second < 0. || second >= 61) {
    sprintf(errmsg, "input second value is out of range 0 - 60.999: %f (fftm2s)", second);
    ffpmsg(errmsg);
    return (*status = 420);
  } else if (decimals > 25) {
    sprintf(errmsg, "input decimals value is out of range 0 - 25: %d (fftm2s)", decimals);
    ffpmsg(errmsg);
    return (*status = 420);
  }
  if (decimals == 0)
    width = 2;
  else
    width = decimals + 3;
  if (decimals < 0) {
    sprintf(datestr, "%.4d-%.2d-%.2d", year, month, day);
  } else if (year == 0 && month == 0 && day == 0) {
    sprintf(datestr, "%.2d:%.2d:%0*.*f", hour, minute, width, decimals, second);
  } else {
    sprintf(datestr, "%.4d-%.2d-%.2dT%.2d:%.2d:%0*.*f", year, month, day, hour, minute, width, decimals, second);
  }
  return (*status);
}
```