user: Demonstrate the C code that generates the assembly output below:

```asm
<ft_putnbr_fd>:
  endbr64
  push   %r15
  mov    %esi,%r15d
  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     L102
L90:
  cmp    $0x9,%r12
  jle    L103
L106:
  mov    %r12,%rax
  mul    %rbx
  mov    %rdx,%rax
  shr    $0x3,%rax
  mov    %rax,0x8(%rsp)
  cmp    $0x63,%r12
  jle    L33
  mul    %rbx
  mov    %rdx,%rax
  shr    $0x3,%rax
  mov    %rax,0x10(%rsp)
  cmp    $0x3e7,%r12
  jle    L0
  mul    %rbx
  mov    %rdx,%rax
  shr    $0x3,%rax
  mov    %rax,0x18(%rsp)
  cmp    $0x270f,%r12
  jle    L68
  mul    %rbx
  shr    $0x3,%rdx
  mov    %rdx,%r13
  cmp    $0x1869f,%r12
  jle    L85
  mov    %rdx,%rax
  mul    %rbx
  shr    $0x3,%rdx
  mov    %rdx,%rbp
  cmp    $0xf423f,%r12
  jle    L20
  mov    %rdx,%rax
  mul    %rbx
  shr    $0x3,%rdx
  mov    %rdx,(%rsp)
  cmp    $0x98967f,%r12
  jle    L69
  mov    %rdx,%rax
  mul    %rbx
  shr    $0x3,%rdx
  mov    %rdx,%r14
  cmp    $0x5f5e0ff,%r12
  jle    L71
  mov    %rdx,%rax
  mul    %rbx
  mov    %rdx,%rcx
  shr    $0x3,%rcx
  cmp    $0x3b9ac9ff,%r12
  jle    L49
  mov    %rcx,%rax
  mov    %r15d,%esi
  mov    %rcx,0x28(%rsp)
  mul    %rbx
  shr    $0x3,%rdx
  mov    %edx,%edi
  mov    %rdx,0x20(%rsp)
  call   <ft_putnbr_fd>
  mov    0x20(%rsp),%rdx
  mov    0x28(%rsp),%rcx
  lea    (%rdx,%rdx,4),%rax
  add    %rax,%rax
  sub    %rax,%rcx
L49:
  lea    0x30(%rcx),%rdi
  mov    %r15d,%esi
  call   <ft_putchar_fd@plt>
  mov    %r14,%rax
  mul    %rbx
  shr    $0x3,%rdx
  lea    (%rdx,%rdx,4),%rax
  add    %rax,%rax
  sub    %rax,%r14
L71:
  lea    0x30(%r14),%rdi
  mov    %r15d,%esi
  call   <ft_putchar_fd@plt>
  mov    (%rsp),%rax
  mul    %rbx
  shr    $0x3,%rdx
  lea    (%rdx,%rdx,4),%rax
  add    %rax,%rax
  sub    %rax,(%rsp)
L69:
  mov    (%rsp),%rdi
  mov    %r15d,%esi
  add    $0x30,%rdi
  call   <ft_putchar_fd@plt>
  mov    %rbp,%rax
  mul    %rbx
  shr    $0x3,%rdx
  lea    (%rdx,%rdx,4),%rax
  add    %rax,%rax
  sub    %rax,%rbp
L20:
  lea    0x30(%rbp),%rdi
  mov    %r15d,%esi
  call   <ft_putchar_fd@plt>
  mov    %r13,%rax
  mul    %rbx
  shr    $0x3,%rdx
  lea    (%rdx,%rdx,4),%rax
  add    %rax,%rax
  sub    %rax,%r13
L85:
  lea    0x30(%r13),%rdi
  mov    %r15d,%esi
  call   <ft_putchar_fd@plt>
  mov    0x18(%rsp),%rax
  mul    %rbx
  shr    $0x3,%rdx
  lea    (%rdx,%rdx,4),%rax
  add    %rax,%rax
  sub    %rax,0x18(%rsp)
L68:
  mov    0x18(%rsp),%rdi
  mov    %r15d,%esi
  add    $0x30,%rdi
  call   <ft_putchar_fd@plt>
  mov    0x10(%rsp),%rax
  mul    %rbx
  shr    $0x3,%rdx
  lea    (%rdx,%rdx,4),%rax
  add    %rax,%rax
  sub    %rax,0x10(%rsp)
L0:
  mov    0x10(%rsp),%rdi
  mov    %r15d,%esi
  add    $0x30,%rdi
  call   <ft_putchar_fd@plt>
  mov    0x8(%rsp),%rax
  mul    %rbx
  shr    $0x3,%rdx
  lea    (%rdx,%rdx,4),%rax
  add    %rax,%rax
  sub    %rax,0x8(%rsp)
L33:
  mov    0x8(%rsp),%rdi
  mov    %r15d,%esi
  add    $0x30,%rdi
  call   <ft_putchar_fd@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    L90
L102:
  mov    %r15d,%esi
  mov    $0x2d,%edi
  neg    %r12
  call   <ft_putchar_fd@plt>
  cmp    $0x9,%r12
  jg     L106
L103:
  add    $0x38,%rsp
  lea    0x30(%r12),%rdi
  mov    %r15d,%esi
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    1050 <ft_putchar_fd@plt>
```

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