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

```asm
<ft_putnbr>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  mov    $0xcccccccd,%r13d
  push   %r12
  push   %rbp
  mov    %edi,%ebp
  push   %rbx
  sub    $0x38,%rsp
L121:
  test   %ebp,%ebp
  js     L3
L42:
  cmp    $0x9,%ebp
  jle    L15
  movslq %ebp,%rax
  mov    %ebp,%edx
  mov    %ebp,%ebx
  imul   $0x66666667,%rax,%rcx
  sar    $0x1f,%edx
  sar    $0x22,%rcx
  sub    %edx,%ecx
  lea    (%rcx,%rcx,4),%esi
  add    %esi,%esi
  sub    %esi,%ebx
  mov    %ebx,0x14(%rsp)
  cmp    $0x63,%ebp
  jle    L52
  mov    %ecx,%r15d
  mov    %ecx,%edi
  imul   %r13,%r15
  shr    $0x23,%r15
  lea    (%r15,%r15,4),%esi
  add    %esi,%esi
  sub    %esi,%edi
  lea    0x30(%rdi),%ebx
  mov    %ebx,0x10(%rsp)
  cmp    $0x3e7,%ebp
  jle    L87
  imul   $0x10624dd3,%rax,%rsi
  sar    $0x26,%rsi
  sub    %edx,%esi
  mov    %esi,0x8(%rsp)
  cmp    $0x270f,%ebp
  jle    L37
  imul   $0x68db8bad,%rax,%rsi
  sar    $0x2c,%rsi
  sub    %edx,%esi
  mov    %esi,0xc(%rsp)
  cmp    $0x1869f,%ebp
  jle    L86
  imul   $0x14f8b589,%rax,%rbx
  sar    $0x2d,%rbx
  sub    %edx,%ebx
  cmp    $0xf423f,%ebp
  jle    L76
L82:
  mov    %ebx,%r14d
  mov    %r14,%r12
  imul   %r13,%r12
  shr    $0x23,%r12
  cmp    $0xf423f,%ecx
  jle    L112
  mov    %r12d,%ebp
  mov    %rbp,%rdx
  imul   %r13,%rdx
  shr    $0x23,%rdx
  cmp    $0x98967f,%ecx
  jle    L75
  mov    %edx,%esi
  mov    %rsi,%rdi
  imul   %r13,%rdi
  shr    $0x23,%rdi
  mov    %rdi,%rax
  cmp    $0x5f5e0ff,%ecx
  jle    L81
  mov    %edi,%ecx
  mov    %edi,0x18(%rsp)
  imul   %r13,%rcx
  mov    %rsi,0x28(%rsp)
  mov    %edx,0x24(%rsp)
  shr    $0x23,%rcx
  mov    %ecx,%edi
  mov    %ecx,0x20(%rsp)
  call   <ft_putnbr>
  mov    0x20(%rsp),%ecx
  mov    0x18(%rsp),%eax
  mov    0x28(%rsp),%rsi
  mov    0x24(%rsp),%edx
  lea    (%rcx,%rcx,4),%ecx
  add    %ecx,%ecx
  sub    %ecx,%eax
L81:
  lea    0x30(%rax),%edi
  mov    %edx,0x20(%rsp)
  mov    %rsi,0x18(%rsp)
  call   <ft_putchar@plt>
  mov    0x18(%rsp),%rax
  mov    0x20(%rsp),%edx
  imul   %r13,%rax
  shr    $0x23,%rax
  lea    (%rax,%rax,4),%eax
  add    %eax,%eax
  sub    %eax,%edx
L75:
  imul   %r13,%rbp
  lea    0x30(%rdx),%edi
  call   <ft_putchar@plt>
  shr    $0x23,%rbp
  lea    0x0(%rbp,%rbp,4),%eax
  add    %eax,%eax
  sub    %eax,%r12d
L112:
  imul   %r13,%r14
  lea    0x30(%r12),%edi
  call   <ft_putchar@plt>
  shr    $0x23,%r14
  lea    (%r14,%r14,4),%eax
  add    %eax,%eax
  sub    %eax,%ebx
L76:
  lea    0x30(%rbx),%edi
  call   <ft_putchar@plt>
  mov    0xc(%rsp),%eax
  mov    %rax,%rbx
  imul   %r13,%rax
  shr    $0x23,%rax
  lea    (%rax,%rax,4),%eax
  add    %eax,%eax
  sub    %eax,%ebx
  mov    %ebx,0xc(%rsp)
L86:
  mov    0xc(%rsp),%edi
  add    $0x30,%edi
  call   <ft_putchar@plt>
  mov    0x8(%rsp),%eax
  mov    %rax,%rdx
  imul   %r13,%rax
  shr    $0x23,%rax
  lea    (%rax,%rax,4),%eax
  add    %eax,%eax
  sub    %eax,%edx
  mov    %edx,0x8(%rsp)
L37:
  mov    0x8(%rsp),%edi
  add    $0x30,%edi
  call   <ft_putchar@plt>
  mov    %r15d,%eax
  imul   %r13,%rax
  shr    $0x23,%rax
  lea    (%rax,%rax,4),%eax
  add    %eax,%eax
  sub    %eax,%r15d
L87:
  lea    0x30(%r15),%edi
  call   <ft_putchar@plt>
L53:
  mov    0x10(%rsp),%edi
  call   <ft_putchar@plt>
  mov    0x14(%rsp),%ebp
  test   %ebp,%ebp
  jns    L42
L3:
  mov    $0x2d,%edi
  call   <ft_putchar@plt>
  cmp    $0x80000000,%ebp
  je     L72
  neg    %ebp
  jmp    L121
L52:
  lea    0x30(%rcx),%eax
  mov    %eax,0x10(%rsp)
  jmp    L53
L15:
  add    $0x38,%rsp
  lea    0x30(%rbp),%edi
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    1050 <ft_putchar@plt>
L72:
  mov    $0x32,%edi
  mov    $0x5c2,%ebx
  mov    $0x168114,%r15d
  call   <ft_putchar@plt>
  movl   $0x2401b,0x8(%rsp)
  mov    $0xe10acc,%ecx
  movl   $0x8,0x14(%rsp)
  movl   $0x399c,0xc(%rsp)
  movl   $0x34,0x10(%rsp)
  jmp    L82
```

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