user: Please show me the C implementation that matches the assembly code listed below:

```asm
<ft_putnbr>:
  endbr64
  push   %r15
  mov    %edi,%r15d
  push   %r14
  mov    $0xcccccccd,%r14d
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x68,%rsp
  test   %r15d,%r15d
  js     L86
L73:
  cmp    $0x9,%r15d
  jle    L65
L14:
  mov    %r15d,%eax
  mov    %rax,0x48(%rsp)
  imul   %r14,%rax
  shr    $0x23,%rax
  mov    %eax,0x20(%rsp)
  cmp    $0x63,%r15d
  jle    L31
  mov    %eax,%eax
  mov    %rax,0x28(%rsp)
  imul   %r14,%rax
  shr    $0x23,%rax
  mov    %eax,0x24(%rsp)
  cmp    $0x3e7,%r15d
  jle    L67
  mov    %eax,%eax
  mov    %rax,0x30(%rsp)
  imul   %r14,%rax
  shr    $0x23,%rax
  mov    %eax,0x50(%rsp)
  cmp    $0x270f,%r15d
  jle    L51
  mov    %eax,%eax
  mov    %rax,0x38(%rsp)
  imul   %r14,%rax
  mov    %rax,%r12
  shr    $0x23,%r12
  cmp    $0x1869f,%r15d
  jle    L110
  mov    %r12d,%ebx
  mov    %rbx,%rbp
  imul   %r14,%rbp
  shr    $0x23,%rbp
  cmp    $0xf423f,%r15d
  jle    L1
  mov    %ebp,%eax
  mov    %rax,%r13
  mov    %rax,0x18(%rsp)
  imul   %r14,%r13
  shr    $0x23,%r13
  mov    %r13d,0x14(%rsp)
  cmp    $0x98967f,%r15d
  jle    L28
  mov    %r13d,%eax
  mov    %rax,0x40(%rsp)
  imul   %r14,%rax
  mov    %rax,%rcx
  shr    $0x23,%rcx
  mov    %rcx,%r13
  cmp    $0x5f5e0ff,%r15d
  jle    L16
  mov    %ecx,%edx
  mov    %rdx,%rax
  imul   %r14,%rax
  shr    $0x23,%rax
  cmp    $0x3b9ac9ff,%r15d
  jle    L44
  mov    %eax,%esi
  mov    %rdx,0x58(%rsp)
  imul   %r14,%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
L44:
  lea    0x30(%rax),%edi
  mov    %rdx,0x8(%rsp)
  call   <ft_putchar@plt>
  mov    0x8(%rsp),%rdx
  imul   %r14,%rdx
  shr    $0x23,%rdx
  lea    (%rdx,%rdx,4),%eax
  add    %eax,%eax
  sub    %eax,%r13d
L16:
  lea    0x30(%r13),%edi
  call   <ft_putchar@plt>
  mov    0x40(%rsp),%rax
  imul   %r14,%rax
  shr    $0x23,%rax
  lea    (%rax,%rax,4),%eax
  add    %eax,%eax
  sub    %eax,0x14(%rsp)
L28:
  mov    0x14(%rsp),%edi
  add    $0x30,%edi
  call   <ft_putchar@plt>
  mov    0x18(%rsp),%rax
  imul   %r14,%rax
  shr    $0x23,%rax
  lea    (%rax,%rax,4),%eax
  add    %eax,%eax
  sub    %eax,%ebp
L1:
  imul   %r14,%rbx
  lea    0x30(%rbp),%edi
  call   <ft_putchar@plt>
  shr    $0x23,%rbx
  lea    (%rbx,%rbx,4),%eax
  add    %eax,%eax
  sub    %eax,%r12d
L110:
  lea    0x30(%r12),%edi
  call   <ft_putchar@plt>
  mov    0x38(%rsp),%rax
  imul   %r14,%rax
  shr    $0x23,%rax
  lea    (%rax,%rax,4),%eax
  add    %eax,%eax
  sub    %eax,0x50(%rsp)
L51:
  mov    0x50(%rsp),%edi
  add    $0x30,%edi
  call   <ft_putchar@plt>
  mov    0x30(%rsp),%rax
  imul   %r14,%rax
  shr    $0x23,%rax
  lea    (%rax,%rax,4),%eax
  add    %eax,%eax
  sub    %eax,0x24(%rsp)
L67:
  mov    0x24(%rsp),%edi
  add    $0x30,%edi
  call   <ft_putchar@plt>
  mov    0x28(%rsp),%rax
  imul   %r14,%rax
  shr    $0x23,%rax
  lea    (%rax,%rax,4),%eax
  add    %eax,%eax
  sub    %eax,0x20(%rsp)
L31:
  mov    0x20(%rsp),%edi
  add    $0x30,%edi
  call   <ft_putchar@plt>
  mov    0x48(%rsp),%rax
  imul   %r14,%rax
  shr    $0x23,%rax
  lea    (%rax,%rax,4),%eax
  add    %eax,%eax
  sub    %eax,%r15d
  test   %r15d,%r15d
  jns    L73
L86:
  mov    $0x2d,%edi
  neg    %r15d
  call   <ft_putchar@plt>
  cmp    $0x9,%r15d
  jg     L14
L65:
  add    $0x68,%rsp
  lea    0x30(%r15),%edi
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    1050 <ft_putchar@plt>
```

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