user: 请将以下的汇编代码转换成C语言代码:

```asm
<ft_putnbr>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  mov    %edi,%r12d
  push   %rbp
  movslq %r12d,%r12
  push   %rbx
  movabs $0xcccccccccccccccd,%rbx
  sub    $0x38,%rsp
  test   %r12,%r12
  js     L73
L104:
  cmp    $0x9,%r12
  jle    L117
L0:
  mov    %r12,%rax
  mul    %rbx
  mov    %rdx,%rax
  shr    $0x3,%rax
  mov    %rax,0x8(%rsp)
  cmp    $0x63,%r12
  jle    L70
  mul    %rbx
  mov    %rdx,%rax
  shr    $0x3,%rax
  mov    %rax,0x10(%rsp)
  cmp    $0x3e7,%r12
  jle    L56
  mul    %rbx
  mov    %rdx,%rax
  shr    $0x3,%rax
  mov    %rax,0x18(%rsp)
  cmp    $0x270f,%r12
  jle    L75
  mul    %rbx
  shr    $0x3,%rdx
  mov    %rdx,%r13
  cmp    $0x1869f,%r12
  jle    L50
  mov    %rdx,%rax
  mul    %rbx
  shr    $0x3,%rdx
  mov    %rdx,%rbp
  cmp    $0xf423f,%r12
  jle    L111
  mov    %rdx,%rax
  mul    %rbx
  shr    $0x3,%rdx
  mov    %rdx,%r14
  cmp    $0x98967f,%r12
  jle    L11
  mov    %rdx,%rax
  mul    %rbx
  shr    $0x3,%rdx
  mov    %rdx,%r15
  cmp    $0x5f5e0ff,%r12
  jle    L57
  mov    %rdx,%rax
  mul    %rbx
  mov    %rdx,%rcx
  shr    $0x3,%rcx
  cmp    $0x3b9ac9ff,%r12
  jle    L26
  mov    %rcx,%rax
  mov    %rcx,0x28(%rsp)
  mul    %rbx
  shr    $0x3,%rdx
  mov    %edx,%edi
  mov    %rdx,0x20(%rsp)
  call   <ft_putnbr>
  mov    0x20(%rsp),%rdx
  mov    0x28(%rsp),%rcx
  lea    (%rdx,%rdx,4),%rax
  add    %rax,%rax
  sub    %rax,%rcx
L26:
  lea    0x30(%rcx),%rdi
  call   <ft_putchar@plt>
  mov    %r15,%rax
  mul    %rbx
  shr    $0x3,%rdx
  lea    (%rdx,%rdx,4),%rax
  add    %rax,%rax
  sub    %rax,%r15
L57:
  lea    0x30(%r15),%rdi
  call   <ft_putchar@plt>
  mov    %r14,%rax
  mul    %rbx
  mov    %rdx,%rax
  shr    $0x3,%rax
  lea    (%rax,%rax,4),%rax
  add    %rax,%rax
  sub    %rax,%r14
L11:
  lea    0x30(%r14),%rdi
  call   <ft_putchar@plt>
  mov    %rbp,%rax
  mul    %rbx
  shr    $0x3,%rdx
  lea    (%rdx,%rdx,4),%rax
  add    %rax,%rax
  sub    %rax,%rbp
L111:
  lea    0x30(%rbp),%rdi
  call   <ft_putchar@plt>
  mov    %r13,%rax
  mul    %rbx
  shr    $0x3,%rdx
  lea    (%rdx,%rdx,4),%rax
  add    %rax,%rax
  sub    %rax,%r13
L50:
  lea    0x30(%r13),%rdi
  call   <ft_putchar@plt>
  mov    0x18(%rsp),%rax
  mul    %rbx
  shr    $0x3,%rdx
  lea    (%rdx,%rdx,4),%rax
  add    %rax,%rax
  sub    %rax,0x18(%rsp)
L75:
  mov    0x18(%rsp),%rdi
  add    $0x30,%rdi
  call   <ft_putchar@plt>
  mov    0x10(%rsp),%rax
  mul    %rbx
  shr    $0x3,%rdx
  lea    (%rdx,%rdx,4),%rax
  add    %rax,%rax
  sub    %rax,0x10(%rsp)
L56:
  mov    0x10(%rsp),%rdi
  add    $0x30,%rdi
  call   <ft_putchar@plt>
  mov    0x8(%rsp),%rax
  mul    %rbx
  shr    $0x3,%rdx
  lea    (%rdx,%rdx,4),%rax
  add    %rax,%rax
  sub    %rax,0x8(%rsp)
L70:
  mov    0x8(%rsp),%rdi
  add    $0x30,%rdi
  call   <ft_putchar@plt>
  mov    %r12,%rax
  mul    %rbx
  mov    %rdx,%rax
  shr    $0x3,%rax
  lea    (%rax,%rax,4),%rax
  add    %rax,%rax
  sub    %eax,%r12d
  movslq %r12d,%r12
  test   %r12,%r12
  jns    L104
L73:
  mov    $0x2d,%edi
  neg    %r12
  call   <ft_putchar@plt>
  cmp    $0x9,%r12
  jg     L0
L117:
  add    $0x38,%rsp
  lea    0x30(%r12),%rdi
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    1050 <ft_putchar@plt>
```

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