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

```asm
<ns_format_ttl>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x50,%rsp
  mov    %edi,-0x34(%rbp)
  mov    %rsi,-0x40(%rbp)
  mov    %rdx,-0x48(%rbp)
  mov    -0x40(%rbp),%rax
  mov    %rax,-0x8(%rbp)
  mov    -0x34(%rbp),%eax
  movslq %eax,%rdx
  imul   $0xffffffff88888889,%rdx,%rdx
  shr    $0x20,%rdx
  add    %eax,%edx
  sar    $0x5,%edx
  mov    %eax,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%edx
  imul   $0x3c,%edx,%edx
  sub    %edx,%eax
  mov    %eax,-0x28(%rbp)
  mov    -0x34(%rbp),%eax
  movslq %eax,%rdx
  imul   $0xffffffff88888889,%rdx,%rdx
  shr    $0x20,%rdx
  add    %eax,%edx
  sar    $0x5,%edx
  sar    $0x1f,%eax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  mov    %eax,-0x34(%rbp)
  mov    -0x34(%rbp),%eax
  movslq %eax,%rdx
  imul   $0xffffffff88888889,%rdx,%rdx
  shr    $0x20,%rdx
  add    %eax,%edx
  sar    $0x5,%edx
  mov    %eax,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%edx
  imul   $0x3c,%edx,%edx
  sub    %edx,%eax
  mov    %eax,-0x24(%rbp)
  mov    -0x34(%rbp),%eax
  movslq %eax,%rdx
  imul   $0xffffffff88888889,%rdx,%rdx
  shr    $0x20,%rdx
  add    %eax,%edx
  sar    $0x5,%edx
  sar    $0x1f,%eax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  mov    %eax,-0x34(%rbp)
  mov    -0x34(%rbp),%edx
  movslq %edx,%rax
  imul   $0x2aaaaaab,%rax,%rax
  shr    $0x20,%rax
  sar    $0x2,%eax
  mov    %edx,%esi
  sar    $0x1f,%esi
  sub    %esi,%eax
  mov    %eax,%ecx
  mov    %ecx,%eax
  add    %eax,%eax
  add    %ecx,%eax
  shl    $0x3,%eax
  sub    %eax,%edx
  mov    %edx,-0x20(%rbp)
  mov    -0x34(%rbp),%eax
  movslq %eax,%rdx
  imul   $0x2aaaaaab,%rdx,%rdx
  shr    $0x20,%rdx
  sar    $0x2,%edx
  sar    $0x1f,%eax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  mov    %eax,-0x34(%rbp)
  mov    -0x34(%rbp),%eax
  movslq %eax,%rdx
  imul   $0xffffffff92492493,%rdx,%rdx
  shr    $0x20,%rdx
  add    %eax,%edx
  sar    $0x2,%edx
  mov    %eax,%esi
  sar    $0x1f,%esi
  mov    %edx,%ecx
  sub    %esi,%ecx
  mov    %ecx,%edx
  shl    $0x3,%edx
  sub    %ecx,%edx
  sub    %edx,%eax
  mov    %eax,-0x1c(%rbp)
  mov    -0x34(%rbp),%eax
  movslq %eax,%rdx
  imul   $0xffffffff92492493,%rdx,%rdx
  shr    $0x20,%rdx
  add    %eax,%edx
  sar    $0x2,%edx
  sar    $0x1f,%eax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  mov    %eax,-0x34(%rbp)
  mov    -0x34(%rbp),%eax
  mov    %eax,-0x18(%rbp)
  movl   $0x0,-0x34(%rbp)
  movl   $0x0,-0x2c(%rbp)
  cmpl   $0x0,-0x18(%rbp)
  je     L89
  lea    -0x48(%rbp),%rcx
  lea    -0x40(%rbp),%rdx
  mov    -0x18(%rbp),%eax
  mov    $0x57,%esi
  mov    %eax,%edi
  call   <fmt1@plt>
  test   %rax,%rax
  jns    L62
  mov    $0xffffffff,%eax
  jmp    L100
L62:
  addl   $0x1,-0x2c(%rbp)
L89:
  cmpl   $0x0,-0x1c(%rbp)
  je     L147
  lea    -0x48(%rbp),%rcx
  lea    -0x40(%rbp),%rdx
  mov    -0x1c(%rbp),%eax
  mov    $0x44,%esi
  mov    %eax,%edi
  call   <fmt1@plt>
  test   %rax,%rax
  jns    L55
  mov    $0xffffffff,%eax
  jmp    L100
L55:
  addl   $0x1,-0x2c(%rbp)
L147:
  cmpl   $0x0,-0x20(%rbp)
  je     L6
  lea    -0x48(%rbp),%rcx
  lea    -0x40(%rbp),%rdx
  mov    -0x20(%rbp),%eax
  mov    $0x48,%esi
  mov    %eax,%edi
  call   <fmt1@plt>
  test   %rax,%rax
  jns    L94
  mov    $0xffffffff,%eax
  jmp    L100
L94:
  addl   $0x1,-0x2c(%rbp)
L6:
  cmpl   $0x0,-0x24(%rbp)
  je     L117
  lea    -0x48(%rbp),%rcx
  lea    -0x40(%rbp),%rdx
  mov    -0x24(%rbp),%eax
  mov    $0x4d,%esi
  mov    %eax,%edi
  call   <fmt1@plt>
  test   %rax,%rax
  jns    L2
  mov    $0xffffffff,%eax
  jmp    L100
L2:
  addl   $0x1,-0x2c(%rbp)
L117:
  cmpl   $0x0,-0x28(%rbp)
  jne    L77
  cmpl   $0x0,-0x18(%rbp)
  jne    L19
  cmpl   $0x0,-0x1c(%rbp)
  jne    L19
  cmpl   $0x0,-0x20(%rbp)
  jne    L19
  cmpl   $0x0,-0x24(%rbp)
  jne    L19
L77:
  lea    -0x48(%rbp),%rcx
  lea    -0x40(%rbp),%rdx
  mov    -0x28(%rbp),%eax
  mov    $0x53,%esi
  mov    %eax,%edi
  call   <fmt1@plt>
  test   %rax,%rax
  jns    L152
  mov    $0xffffffff,%eax
  jmp    L100
L152:
  addl   $0x1,-0x2c(%rbp)
L19:
  cmpl   $0x1,-0x2c(%rbp)
  jle    L171
  mov    -0x8(%rbp),%rax
  mov    %rax,-0x10(%rbp)
  jmp    L186
L106:
  mov    -0x14(%rbp),%eax
  mov    %eax,%edi
  call   <isascii@plt>
  test   %rax,%rax
  je     L108
  mov    -0x14(%rbp),%eax
  mov    %eax,%edi
  call   <isupper@plt>
  test   %rax,%rax
  je     L108
  mov    -0x14(%rbp),%eax
  mov    %eax,%edi
  call   <tolower@plt>
  mov    %eax,%edx
  mov    -0x10(%rbp),%rax
  mov    %dl,(%rax)
L108:
  addq   $0x1,-0x10(%rbp)
L186:
  mov    -0x10(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,-0x14(%rbp)
  cmpl   $0x0,-0x14(%rbp)
  jne    L106
L171:
  mov    -0x40(%rbp),%rax
  sub    -0x8(%rbp),%rax
L100:
  leave
  ret
```

assistant: ```c
int ns_format_ttl(u_long src, char *dst, size_t dstlen) {
  char *odst = dst;
  int secs, mins, hours, days, weeks, x;
  char *p;
  secs = (int)(src % 60);
  src /= 60;
  mins = (int)(src % 60);
  src /= 60;
  hours = (int)(src % 24);
  src /= 24;
  days = (int)(src % 7);
  src /= 7;
  weeks = (int)src;
  src = 0;
  x = 0;
  if (weeks) {
    if ((fmt1(weeks, 'W', &dst, &dstlen)) < 0)
      return (-1);
    else
      (void)NULL;
    x++;
  }
  if (days) {
    if ((fmt1(days, 'D', &dst, &dstlen)) < 0)
      return (-1);
    else
      (void)NULL;
    x++;
  }
  if (hours) {
    if ((fmt1(hours, 'H', &dst, &dstlen)) < 0)
      return (-1);
    else
      (void)NULL;
    x++;
  }
  if (mins) {
    if ((fmt1(mins, 'M', &dst, &dstlen)) < 0)
      return (-1);
    else
      (void)NULL;
    x++;
  }
  if (secs || !(weeks || days || hours || mins)) {
    if ((fmt1(secs, 'S', &dst, &dstlen)) < 0)
      return (-1);
    else
      (void)NULL;
    x++;
  }
  if (x > 1) {
    int ch;
    for (p = odst; (ch = *p) != '\0'; p++)
      if (isascii(ch) && isupper(ch))
        *p = (char)(tolower(ch));
  }
  return ((int)(dst - odst));
}
```