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

```asm
<secs2hms_mask>:
  endbr64
  movslq %edi,%rdx
  push   %r15
  mov    %esi,%r15d
  push   %r14
  imul   $0xffffffff91a2b3c5,%rdx,%rdx
  and    $0x2,%r15d
  push   %r13
  push   %r12
  push   %rbp
  shr    $0x20,%rdx
  push   %rbx
  add    %edi,%edx
  mov    %esi,%ebx
  sar    $0xb,%edx
  sub    $0x28,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  mov    %edi,%eax
  sar    $0x1f,%eax
  sub    %eax,%edx
  imul   $0xe10,%edx,%eax
  sub    %eax,%edi
  movslq %edi,%rax
  mov    %edi,%ecx
  imul   $0xffffffff88888889,%rax,%rax
  sar    $0x1f,%ecx
  shr    $0x20,%rax
  add    %edi,%eax
  sar    $0x5,%eax
  sub    %ecx,%eax
  mov    %eax,%r13d
  imul   $0x3c,%eax,%eax
  sub    %eax,%edi
  mov    %edi,%r12d
  test   %edx,%edx
  je     L101
  test   $0x4,%sil
  je     L101
  mov    %rsp,%rbp
  test   $0x8,%sil
  je     L151
  lea    D29(%rip),%rsi
  mov    %rbp,%rdi
  call   <sprintf@plt>
  mov    %rax,%r14
  movslq %eax,%rsi
  test   %r15d,%r15d
  je     L180
  movslq %eax,%rdi
  add    %rbp,%rdi
L116:
  lea    D56(%rip),%rsi
  mov    %r13d,%edx
  call   <sprintf@plt>
  add    %eax,%r14d
  and    $0x1,%ebx
  movslq %r14d,%rsi
  jne    L71
  nopl   0x0(%rax,%rax,1)
L27:
  xor    %eax,%eax
  test   %esi,%esi
  mov    %rbp,%rdi
  cmovs  %eax,%esi
  call   <statstr_dup@plt>
  mov    0x18(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L113
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopw   0x0(%rax,%rax,1)
L101:
  test   %r15d,%r15d
  je     L14
  mov    %rsp,%rbp
  xor    %r14d,%r14d
  mov    %rbp,%rdi
  test   $0x8,%bl
  jne    L116
L31:
  lea    D1(%rip),%rsi
  mov    %r13d,%edx
  call   <sprintf@plt>
  add    %eax,%r14d
  and    $0x1,%ebx
  movslq %r14d,%rsi
  je     L27
L18:
  lea    0x0(%rbp,%rsi,1),%rdi
  mov    %r12d,%edx
  lea    D28(%rip),%rsi
  call   <sprintf@plt>
  lea    (%r14,%rax,1),%esi
  jmp    L27
  nopw   0x0(%rax,%rax,1)
L14:
  mov    %ebx,%esi
  mov    %rsp,%rbp
  and    $0x1,%esi
  je     L27
  and    $0x8,%ebx
  movslq %ebx,%rsi
  je     L191
  xor    %esi,%esi
  xor    %r14d,%r14d
L71:
  lea    0x0(%rbp,%rsi,1),%rdi
  mov    %r12d,%edx
  lea    D43(%rip),%rsi
  call   <sprintf@plt>
  lea    (%r14,%rax,1),%esi
  jmp    L27
  nopl   0x0(%rax,%rax,1)
L151:
  lea    D31(%rip),%rsi
  mov    %rbp,%rdi
  call   <sprintf@plt>
  mov    %rax,%r14
  movslq %eax,%rsi
  test   %r15d,%r15d
  je     L139
  movslq %eax,%rdi
  add    %rbp,%rdi
  jmp    L31
  nopl   (%rax)
L191:
  xor    %r14d,%r14d
  jmp    L18
L139:
  and    $0x1,%ebx
  jne    L18
  jmp    L27
  xchg   %ax,%ax
L180:
  and    $0x1,%ebx
  jne    L71
  jmp    L27
L113:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: tag: D29
type: string
name: disassemble_data
arguments: tag: D56
type: string
name: disassemble_data
arguments: tag: D1
type: string
name: disassemble_data
arguments: tag: D28
type: string
name: disassemble_data
arguments: tag: D43
type: string
name: disassemble_data
arguments: tag: D31
type: string

tool: D29: %d :

tool: D56:  %d

tool: D1: %02d

tool: D28: :%02d

tool: D43:  : %02d

tool: D31: %d:

assistant: ```c
char *secs2hms_mask(int t, int mask) {
  char tstr[20], *this;
  int h, m, s;
  int pos = 0;
  h = t / 3600;
  t = t % 3600;
  m = t / 60;
  s = t % 60;
  if (h && (mask & 4)) {
    if (mask & 8)
      pos += sprintf(tstr + pos, "%d :", h);
    else
      pos += sprintf(tstr + pos, "%d:", h);
  }
  if (mask & 2) {
    if (mask & 8)
      pos += sprintf(tstr + pos, " %d", m);
    else
      pos += sprintf(tstr + pos, "%02d", m);
  }
  if (mask & 1) {
    if (mask & 8)
      pos += sprintf(tstr + pos, " : %02d", s);
    else
      pos += sprintf(tstr + pos, ":%02d", s);
  }
  if (pos < 0)
    pos = 0;
  this = statstr_dup(tstr, pos);
  return this;
}
```