user: 下面的汇编指令对应的C源代码是什么：

```asm
<DateFmt>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %rdi,%r12
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  test   %rsi,%rsi
  jle    L123
  mov    %rsi,%r13
  mov    %rdx,%rbp
  lea    0xc(%rsp),%rcx
  lea    0x8(%rsp),%rdx
  lea    0x4(%rsp),%rsi
  mov    %r13,%rdi
  call   <Date_ymd@plt>
  movzbl 0x0(%rbp),%eax
  test   %al,%al
  je     L108
  mov    %r12,%rbx
  lea    D43(%rip),%r14
  lea    D10(%rip),%r15
  jmp    L266
L123:
  movb   $0x0,(%rdi)
  jmp    L217
L147:
  movzbl 0x1(%rbp),%eax
  test   %al,%al
  je     L227
  lea    -0x44(%rax),%edx
  cmp    $0x35,%dl
  ja     L265
  ja     L265
  movzbl %dl,%edx
  movslq (%r14,%rdx,4),%rdx
  add    %r14,%rdx
  notrack jmp *%rdx
L227:
  add    $0x1,%rbp
L39:
  movzbl 0x0(%rbp),%eax
  test   %al,%al
  je     L7
L266:
  cmp    $0x25,%al
  je     L147
  add    $0x1,%rbp
  mov    %al,(%rbx)
  lea    0x1(%rbx),%rbx
  jmp    L39
L265:
  add    $0x2,%rbp
  mov    %al,(%rbx)
  lea    0x1(%rbx),%rbx
  jmp    L39
  mov    $0x0,%esi
  mov    %r13,%rdi
  call   <Dyofwk@plt>
  mov    %eax,%esi
  mov    %rbx,%rdi
  call   <strcpy@plt>
  mov    %rbx,%rdi
  call   <strlen@plt>
  cltq
  add    %rax,%rbx
  add    $0x2,%rbp
  jmp    L39
  mov    $0x0,%esi
  mov    0x8(%rsp),%edi
  call   <Mmofyr@plt>
  mov    %eax,%esi
  mov    %rbx,%rdi
  call   <strcpy@plt>
  mov    %rbx,%rdi
  call   <strlen@plt>
  cltq
  add    %rax,%rbx
  add    $0x2,%rbp
  jmp    L39
  mov    $0x0,%esi
  mov    0x8(%rsp),%edi
  call   <Mmofyr@plt>
  mov    %eax,%esi
  mov    %rbx,%rdi
  call   <strcpy@plt>
  add    $0x3,%rbx
  add    $0x2,%rbp
  jmp    L39
  mov    0xc(%rsp),%edx
  lea    D29(%rip),%rsi
  mov    %rbx,%rdi
  call   <sprintf@plt>
  mov    %rbx,%rdi
  call   <strlen@plt>
  cltq
  add    %rax,%rbx
  add    $0x2,%rbp
  jmp    L39
  mov    0xc(%rsp),%edx
  mov    %r15,%rsi
  mov    %rbx,%rdi
  call   <sprintf@plt>
  movzbl (%rbx),%eax
  test   %al,%al
  jne    L280
L233:
  add    $0x2,%rbp
  jmp    L39
L219:
  add    $0x1,%rbx
  movzbl (%rbx),%eax
  test   %al,%al
  je     L233
L280:
  cmp    $0x20,%al
  jne    L219
  movb   $0x30,(%rbx)
  jmp    L219
  mov    0x4(%rsp),%edx
  movslq %edx,%rax
  imul   $0x51eb851f,%rax,%rax
  sar    $0x25,%rax
  mov    %edx,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%eax
  imul   $0x64,%eax,%eax
  sub    %eax,%edx
  mov    %r15,%rsi
  mov    %rbx,%rdi
  call   <sprintf@plt>
  movzbl (%rbx),%eax
  test   %al,%al
  jne    L256
L136:
  add    $0x2,%rbp
  jmp    L39
L258:
  add    $0x1,%rbx
  movzbl (%rbx),%eax
  test   %al,%al
  je     L136
L256:
  cmp    $0x20,%al
  jne    L258
  movb   $0x30,(%rbx)
  jmp    L258
  mov    0x4(%rsp),%edx
  lea    D3(%rip),%rsi
  mov    %rbx,%rdi
  call   <sprintf@plt>
  mov    %rbx,%rdi
  call   <strlen@plt>
  cltq
  add    %rax,%rbx
  add    $0x2,%rbp
  jmp    L39
  mov    0xc(%rsp),%edi
  call   <Num_sufx@plt>
  mov    %eax,%esi
  mov    %rbx,%rdi
  call   <strcpy@plt>
  mov    %rbx,%rdi
  call   <strlen@plt>
  cltq
  add    %rax,%rbx
  add    $0x2,%rbp
  jmp    L39
  mov    0x8(%rsp),%edx
  lea    D29(%rip),%rsi
  mov    %rbx,%rdi
  call   <sprintf@plt>
  mov    %rbx,%rdi
  call   <strlen@plt>
  cltq
  add    %rax,%rbx
  add    $0x2,%rbp
  jmp    L39
  mov    0x8(%rsp),%edx
  mov    %r15,%rsi
  mov    %rbx,%rdi
  call   <sprintf@plt>
  mov    %rbx,%rdi
  call   <strlen@plt>
  cltq
  add    %rax,%rbx
  add    $0x2,%rbp
  jmp    L39
  lea    0x10(%rsp),%rdi
  call   <Time2@plt>
  mov    %eax,%esi
  mov    %rbx,%rdi
  call   <strcpy@plt>
  mov    %rbx,%rdi
  call   <strlen@plt>
  cltq
  add    %rax,%rbx
  add    $0x2,%rbp
  jmp    L39
L108:
  mov    %r12,%rbx
L7:
  movb   $0x0,(%rbx)
L217:
  mov    0x28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L305
  mov    %r12,%rax
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L305:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: label: D10
type_infered: string
name: disassemble_data
arguments: label: D29
type_infered: string
name: disassemble_data
arguments: label: D3
type_infered: string

tool: D10: %02d

tool: D29: %d

tool: D3: %4d

assistant: ```c
char *DateFmt(char *buf, long dt, char *msk) {
  int y, m, d;
  char tmp[20], *bp = buf;
  if (dt <= 0L) {
    *buf = '\0';
    return (buf);
  }
  Date_ymd(dt, &y, &m, &d);
  while (*msk)
    if (*msk != '%')
      *bp++ = *msk++;
    else
      switch (*++msk) {
      case '\0':
        break;
      case '%':
      default:
        *bp++ = *msk++;
        break;
      case 'W':
      case 'w':
        strcpy(bp, Dyofwk(dt, NULL));
        bp += strlen(bp);
        msk++;
        break;
      case 'M':
        strcpy(bp, Mmofyr(m, NULL));
        bp += strlen(bp);
        msk++;
        break;
      case 'm':
        strcpy(bp, Mmofyr(m, NULL));
        bp += 3;
        msk++;
        break;
      case 'd':
        sprintf(bp, "%d", d);
        bp += strlen(bp);
        msk++;
        break;
      case 'D':
        sprintf(bp, "%02d", d);
        for (; *bp; ++bp)
          if (*bp == ' ')
            *bp = '0';
        msk++;
        break;
      case 'y':
        sprintf(bp, "%02d", y % 100);
        for (; *bp; ++bp)
          if (*bp == ' ')
            *bp = '0';
        msk++;
        break;
      case 'Y':
        sprintf(bp, "%4d", y);
        bp += strlen(bp);
        msk++;
        break;
      case 'S':
      case 's':
        strcpy(bp, Num_sufx(d));
        bp += strlen(bp);
        msk++;
        break;
      case 'n':
        sprintf(bp, "%d", m);
        bp += strlen(bp);
        msk++;
        break;
      case 'N':
        sprintf(bp, "%02d", m);
        bp += strlen(bp);
        msk++;
        break;
      case 'T':
      case 't':
        strcpy(bp, Time2(tmp));
        bp += strlen(bp);
        msk++;
        break;
      }
  *bp = '\0';
  return (buf);
}
```