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     L12
L8:
  cmp    $0x9,%r15d
  jle    L116
L5:
  mov    %r15d,%eax
  mov    %rax,0x48(%rsp)
  imul   %r13,%rax
  shr    $0x23,%rax
  mov    %eax,0x20(%rsp)
  cmp    $0x63,%r15d
  jle    L107
  mov    %eax,%eax
  mov    %rax,0x28(%rsp)
  imul   %r13,%rax
  shr    $0x23,%rax
  mov    %eax,0x24(%rsp)
  cmp    $0x3e7,%r15d
  jle    L99
  mov    %eax,%eax
  mov    %rax,0x30(%rsp)
  imul   %r13,%rax
  shr    $0x23,%rax
  mov    %eax,0x50(%rsp)
  cmp    $0x270f,%r15d
  jle    L40
  mov    %eax,%eax
  mov    %rax,0x38(%rsp)
  imul   %r13,%rax
  mov    %rax,%r12
  shr    $0x23,%r12
  cmp    $0x1869f,%r15d
  jle    L39
  mov    %r12d,%ebp
  mov    %rbp,%rbx
  imul   %r13,%rbx
  shr    $0x23,%rbx
  cmp    $0xf423f,%r15d
  jle    L57
  mov    %ebx,%eax
  mov    %rax,%r14
  mov    %rax,0x18(%rsp)
  imul   %r13,%r14
  shr    $0x23,%r14
  mov    %r14d,0x14(%rsp)
  cmp    $0x98967f,%r15d
  jle    L11
  mov    %r14d,%eax
  mov    %rax,0x40(%rsp)
  imul   %r13,%rax
  mov    %rax,%rcx
  shr    $0x23,%rcx
  mov    %rcx,%r14
  cmp    $0x5f5e0ff,%r15d
  jle    L118
  mov    %ecx,%edx
  mov    %rdx,%rax
  imul   %r13,%rax
  shr    $0x23,%rax
  cmp    $0x3b9ac9ff,%r15d
  jle    L25
  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
L25:
  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
L118:
  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)
L11:
  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
L57:
  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
L39:
  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)
L40:
  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)
L99:
  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)
L107:
  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    L8
L12:
  neg    %r15d
  mov    $0x2d,%edi
  call   <ft_putchar@plt>
  cmp    $0x9,%r15d
  jg     L5
L116:
  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);
  }
}
```