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

```asm
<fmtint>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x70,%rsp
  mov    %rdi,-0x48(%rbp)
  mov    %rsi,-0x50(%rbp)
  mov    %rdx,-0x58(%rbp)
  mov    %rcx,-0x60(%rbp)
  mov    %r8d,-0x64(%rbp)
  mov    %r9d,-0x68(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0x3c(%rbp)
  movl   $0x0,-0x38(%rbp)
  movl   $0x0,-0x34(%rbp)
  movl   $0x0,-0x30(%rbp)
  movl   $0x0,-0x2c(%rbp)
  cmpl   $0x0,0x10(%rbp)
  jns    L151
  movl   $0x0,0x10(%rbp)
L151:
  mov    -0x60(%rbp),%rax
  mov    %rax,-0x28(%rbp)
  mov    0x18(%rbp),%eax
  and    $0x40,%eax
  test   %eax,%eax
  jne    L123
  cmpq   $0x0,-0x60(%rbp)
  jns    L240
  movl   $0x2d,-0x3c(%rbp)
  mov    -0x60(%rbp),%rax
  neg    %rax
  mov    %rax,-0x28(%rbp)
  jmp    L123
L240:
  mov    0x18(%rbp),%eax
  and    $0x2,%eax
  test   %eax,%eax
  je     L208
  movl   $0x2b,-0x3c(%rbp)
  jmp    L123
L208:
  mov    0x18(%rbp),%eax
  and    $0x4,%eax
  test   %eax,%eax
  je     L123
  movl   $0x20,-0x3c(%rbp)
L123:
  mov    0x18(%rbp),%eax
  and    $0x20,%eax
  test   %eax,%eax
  je     L14
  movl   $0x1,-0x2c(%rbp)
L14:
  cmpl   $0x0,-0x2c(%rbp)
  je     L137
  lea    D14(%rip),%rcx
  jmp    L278
L137:
  lea    D7(%rip),%rcx
L278:
  mov    -0x64(%rbp),%eax
  mov    %eax,%esi
  mov    -0x28(%rbp),%rax
  mov    $0x0,%edx
  div    %rsi
  mov    %rdx,%rax
  add    %rax,%rcx
  mov    -0x38(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x38(%rbp)
  movzbl (%rcx),%edx
  cltq
  mov    %dl,-0x20(%rbp,%rax,1)
  mov    -0x64(%rbp),%eax
  mov    %eax,%edi
  mov    -0x28(%rbp),%rax
  mov    $0x0,%edx
  div    %rdi
  mov    %rax,-0x28(%rbp)
  cmpq   $0x0,-0x28(%rbp)
  je     L171
  cmpl   $0x13,-0x38(%rbp)
  jle    L14
L171:
  cmpl   $0x14,-0x38(%rbp)
  jne    L109
  subl   $0x1,-0x38(%rbp)
L109:
  mov    -0x38(%rbp),%eax
  cltq
  movb   $0x0,-0x20(%rbp,%rax,1)
  mov    0x10(%rbp),%eax
  sub    -0x38(%rbp),%eax
  mov    %eax,-0x30(%rbp)
  mov    0x10(%rbp),%edx
  mov    -0x38(%rbp),%eax
  cmp    %eax,%edx
  cmovl  %eax,%edx
  mov    -0x68(%rbp),%eax
  sub    %edx,%eax
  cmpl   $0x0,-0x3c(%rbp)
  setne  %dl
  movzbl %dl,%edx
  sub    %edx,%eax
  mov    %eax,-0x34(%rbp)
  cmpl   $0x0,-0x30(%rbp)
  jns    L71
  movl   $0x0,-0x30(%rbp)
L71:
  cmpl   $0x0,-0x34(%rbp)
  jns    L39
  movl   $0x0,-0x34(%rbp)
L39:
  mov    0x18(%rbp),%eax
  and    $0x10,%eax
  test   %eax,%eax
  je     L237
  mov    -0x30(%rbp),%edx
  mov    -0x34(%rbp),%eax
  cmp    %eax,%edx
  cmovge %edx,%eax
  mov    %eax,-0x30(%rbp)
  movl   $0x0,-0x34(%rbp)
L237:
  mov    0x18(%rbp),%eax
  and    $0x1,%eax
  test   %eax,%eax
  je     L242
  negl   -0x34(%rbp)
  jmp    L242
L131:
  mov    -0x58(%rbp),%rdx
  mov    -0x50(%rbp),%rsi
  mov    -0x48(%rbp),%rax
  mov    $0x20,%ecx
  mov    %rax,%rdi
  call   <dopr_outch@plt>
  subl   $0x1,-0x34(%rbp)
L242:
  cmpl   $0x0,-0x34(%rbp)
  jg     L131
  cmpl   $0x0,-0x3c(%rbp)
  je     L64
  mov    -0x3c(%rbp),%eax
  movsbl %al,%ecx
  mov    -0x58(%rbp),%rdx
  mov    -0x50(%rbp),%rsi
  mov    -0x48(%rbp),%rax
  mov    %rax,%rdi
  call   <dopr_outch@plt>
L64:
  cmpl   $0x0,-0x30(%rbp)
  jle    L228
  jmp    L234
L38:
  mov    -0x58(%rbp),%rdx
  mov    -0x50(%rbp),%rsi
  mov    -0x48(%rbp),%rax
  mov    $0x30,%ecx
  mov    %rax,%rdi
  call   <dopr_outch@plt>
  subl   $0x1,-0x30(%rbp)
L234:
  cmpl   $0x0,-0x30(%rbp)
  jg     L38
  jmp    L228
L200:
  subl   $0x1,-0x38(%rbp)
  mov    -0x38(%rbp),%eax
  cltq
  movzbl -0x20(%rbp,%rax,1),%eax
  movsbl %al,%ecx
  mov    -0x58(%rbp),%rdx
  mov    -0x50(%rbp),%rsi
  mov    -0x48(%rbp),%rax
  mov    %rax,%rdi
  call   <dopr_outch@plt>
L228:
  cmpl   $0x0,-0x38(%rbp)
  jg     L200
  jmp    L99
L189:
  mov    -0x58(%rbp),%rdx
  mov    -0x50(%rbp),%rsi
  mov    -0x48(%rbp),%rax
  mov    $0x20,%ecx
  mov    %rax,%rdi
  call   <dopr_outch@plt>
  addl   $0x1,-0x34(%rbp)
L99:
  cmpl   $0x0,-0x34(%rbp)
  js     L189
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L219
  call   <__stack_chk_fail@plt>
L219:
  leave
  ret
```

tool_calls: name: disassemble_data
arguments: data_label: D14
type_guessed: string
name: disassemble_data
arguments: data_label: D7
type_guessed: string

tool: D14: 0123456789ABCDEF

tool: D7: 0123456789abcdef

assistant: ```c
void fmtint(char *buffer, size_t *curlen, size_t maxlen, long value, int base, int min, int max, int flags) {
  int signvalue = 0;
  unsigned long uvalue;
  char convert[20];
  int place = 0;
  int spadlen = 0;
  int zpadlen = 0;
  int caps = 0;
  if (max < 0)
    max = 0;
  uvalue = value;
  if (!(flags & (1 << 6))) {
    if (value < 0) {
      signvalue = '-';
      uvalue = -value;
    } else {
      if (flags & (1 << 1))
        signvalue = '+';
      else if (flags & (1 << 2))
        signvalue = ' ';
    }
  }
  if (flags & (1 << 5))
    caps = 1;
  do {
    convert[place++] = (caps ? "0123456789ABCDEF" : "0123456789abcdef")[uvalue % (unsigned)base];
    uvalue = (uvalue / (unsigned)base);
  } while (uvalue && (place < 20));
  if (place == 20)
    place--;
  convert[place] = 0;
  zpadlen = max - place;
  spadlen = min - (((max) >= (place)) ? (max) : (place)) - (signvalue ? 1 : 0);
  if (zpadlen < 0)
    zpadlen = 0;
  if (spadlen < 0)
    spadlen = 0;
  if (flags & (1 << 4)) {
    zpadlen = (((zpadlen) >= (spadlen)) ? (zpadlen) : (spadlen));
    spadlen = 0;
  }
  if (flags & (1 << 0))
    spadlen = -spadlen;
  while (spadlen > 0) {
    dopr_outch(buffer, curlen, maxlen, ' ');
    --spadlen;
  }
  if (signvalue)
    dopr_outch(buffer, curlen, maxlen, signvalue);
  if (zpadlen > 0) {
    while (zpadlen > 0) {
      dopr_outch(buffer, curlen, maxlen, '0');
      --zpadlen;
    }
  }
  while (place > 0)
    dopr_outch(buffer, curlen, maxlen, convert[--place]);
  while (spadlen < 0) {
    dopr_outch(buffer, curlen, maxlen, ' ');
    ++spadlen;
  }
}
```