user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<ft_putnbr>:
  endbr64
  push   %r15
  mov    %edi,%r15d
  push   %r14
  push   %r13
  mov    $0xcccccccd,%r13d
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x68,%rsp
  test   %r15d,%r15d
  js     L83
L3:
  cmp    $0x9,%r15d
  jle    L108
L55:
  mov    %r15d,%eax
  mov    %rax,0x48(%rsp)
  imul   %r13,%rax
  shr    $0x23,%rax
  mov    %eax,0x20(%rsp)
  cmp    $0x63,%r15d
  jle    L19
  mov    %eax,%eax
  mov    %rax,0x28(%rsp)
  imul   %r13,%rax
  shr    $0x23,%rax
  mov    %eax,0x24(%rsp)
  cmp    $0x3e7,%r15d
  jle    L79
  mov    %eax,%eax
  mov    %rax,0x30(%rsp)
  imul   %r13,%rax
  shr    $0x23,%rax
  mov    %eax,0x50(%rsp)
  cmp    $0x270f,%r15d
  jle    L32
  mov    %eax,%eax
  mov    %rax,0x38(%rsp)
  imul   %r13,%rax
  mov    %rax,%r12
  shr    $0x23,%r12
  cmp    $0x1869f,%r15d
  jle    L17
  mov    %r12d,%ebp
  mov    %rbp,%rbx
  imul   %r13,%rbx
  shr    $0x23,%rbx
  cmp    $0xf423f,%r15d
  jle    L39
  mov    %ebx,%eax
  mov    %rax,%r14
  mov    %rax,0x18(%rsp)
  imul   %r13,%r14
  shr    $0x23,%r14
  mov    %r14d,0x14(%rsp)
  cmp    $0x98967f,%r15d
  jle    L105
  mov    %r14d,%eax
  mov    %rax,0x40(%rsp)
  imul   %r13,%rax
  mov    %rax,%rcx
  shr    $0x23,%rcx
  mov    %rcx,%r14
  cmp    $0x5f5e0ff,%r15d
  jle    L99
  mov    %ecx,%edx
  mov    %rdx,%rax
  imul   %r13,%rax
  shr    $0x23,%rax
  cmp    $0x3b9ac9ff,%r15d
  jle    L115
  mov    %eax,%esi
  mov    %rdx,0x58(%rsp)
  imul   %r13,%rsi
  mov    %eax,0x54(%rsp)
  shr    $0x23,%rsi
  mov    %esi,%edi
  mov    %esi,0x8(%rsp)
  call   <ft_putnbr>
  mov    0x8(%rsp),%esi
  mov    0x54(%rsp),%eax
  mov    0x58(%rsp),%rdx
  lea    (%rsi,%rsi,4),%esi
  add    %esi,%esi
  sub    %esi,%eax
L115:
  add    $0x30,%eax
  mov    %rdx,0x8(%rsp)
  movzbl %al,%edi
  call   <ft_putchar@plt>
  mov    0x8(%rsp),%rdx
  imul   %r13,%rdx
  shr    $0x23,%rdx
  lea    (%rdx,%rdx,4),%eax
  add    %eax,%eax
  sub    %eax,%r14d
L99:
  lea    0x30(%r14),%ecx
  movzbl %cl,%edi
  call   <ft_putchar@plt>
  mov    0x40(%rsp),%rax
  imul   %r13,%rax
  shr    $0x23,%rax
  lea    (%rax,%rax,4),%eax
  add    %eax,%eax
  sub    %eax,0x14(%rsp)
L105:
  movzbl 0x14(%rsp),%edi
  add    $0x30,%edi
  movzbl %dil,%edi
  call   <ft_putchar@plt>
  mov    0x18(%rsp),%rax
  imul   %r13,%rax
  shr    $0x23,%rax
  lea    (%rax,%rax,4),%eax
  add    %eax,%eax
  sub    %eax,%ebx
L39:
  imul   %r13,%rbp
  lea    0x30(%rbx),%edi
  movzbl %dil,%edi
  call   <ft_putchar@plt>
  shr    $0x23,%rbp
  lea    0x0(%rbp,%rbp,4),%eax
  add    %eax,%eax
  sub    %eax,%r12d
L17:
  lea    0x30(%r12),%edi
  movzbl %dil,%edi
  call   <ft_putchar@plt>
  mov    0x38(%rsp),%rax
  imul   %r13,%rax
  shr    $0x23,%rax
  lea    (%rax,%rax,4),%eax
  add    %eax,%eax
  sub    %eax,0x50(%rsp)
L32:
  movzbl 0x50(%rsp),%edi
  add    $0x30,%edi
  movzbl %dil,%edi
  call   <ft_putchar@plt>
  mov    0x30(%rsp),%rax
  imul   %r13,%rax
  shr    $0x23,%rax
  lea    (%rax,%rax,4),%eax
  add    %eax,%eax
  sub    %eax,0x24(%rsp)
L79:
  movzbl 0x24(%rsp),%edi
  add    $0x30,%edi
  movzbl %dil,%edi
  call   <ft_putchar@plt>
  mov    0x28(%rsp),%rax
  imul   %r13,%rax
  shr    $0x23,%rax
  lea    (%rax,%rax,4),%eax
  add    %eax,%eax
  sub    %eax,0x20(%rsp)
L19:
  movzbl 0x20(%rsp),%edi
  add    $0x30,%edi
  movzbl %dil,%edi
  call   <ft_putchar@plt>
  mov    0x48(%rsp),%rax
  imul   %r13,%rax
  shr    $0x23,%rax
  lea    (%rax,%rax,4),%eax
  add    %eax,%eax
  sub    %eax,%r15d
  test   %r15d,%r15d
  jns    L3
L83:
  neg    %r15d
  mov    $0x2d,%edi
  call   <ft_putchar@plt>
  cmp    $0x9,%r15d
  jg     L55
L108:
  add    $0x68,%rsp
  lea    0x30(%r15),%edi
  pop    %rbx
  movzbl %dil,%edi
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    1050 <ft_putchar@plt>
```

assistant: ```c
void ft_putnbr(int n) {
  char val;
  int add_minus;
  add_minus = -1;
  if (n < 0) {
    add_minus = 1;
    n *= -1;
    ft_putchar('-');
  }
  if (n >= 10) {
    ft_putnbr(n / 10);
    ft_putnbr(n % 10);
  } else {
    val = n + 48;
    ft_putchar(val);
  }
}
```