user: What is the c source code of the assembly code below:

```asm
<ft_putnbr_fd>:
  endbr64
  push   %r12
  push   %rbp
  mov    %esi,%ebp
  sub    $0x28,%rsp
  mov    %edi,0xc(%rsp)
  mov    %fs:0x28,%rdx
  mov    %rdx,0x18(%rsp)
  xor    %edx,%edx
  cmp    $0x80000000,%edi
  je     L6
  mov    %edi,%eax
  test   %edi,%edi
  js     L193
L208:
  cmp    $0x9,%eax
  jle    L3
  movslq %eax,%rcx
  mov    %eax,%esi
  imul   $0x66666667,%rcx,%rdx
  sar    $0x1f,%esi
  sar    $0x22,%rdx
  sub    %esi,%edx
  mov    %edx,0x10(%rsp)
  cmp    $0x63,%eax
  jg     L83
  add    $0x30,%edx
  lea    0x10(%rsp),%rsi
  mov    %ebp,%edi
  xor    %eax,%eax
  mov    %edx,0x10(%rsp)
  mov    $0x1,%edx
  call   <write@plt>
L128:
  movslq 0xc(%rsp),%rax
  mov    %rax,%rcx
  imul   $0x66666667,%rax,%rax
  mov    %ecx,%edx
  sar    $0x1f,%edx
  sar    $0x22,%rax
  sub    %edx,%eax
  lea    (%rax,%rax,4),%edx
  mov    %ecx,%eax
  add    %edx,%edx
  sub    %edx,%eax
  mov    %eax,0x10(%rsp)
  js     L61
L82:
  add    $0x30,%eax
  lea    0x10(%rsp),%rsi
  mov    $0x1,%edx
  mov    %ebp,%edi
  mov    %eax,0x10(%rsp)
  xor    %eax,%eax
  call   <write@plt>
  nopl   0x0(%rax,%rax,1)
L76:
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L149
  add    $0x28,%rsp
  pop    %rbp
  pop    %r12
  ret
  nopl   0x0(%rax)
L3:
  add    $0x30,%eax
  lea    0xc(%rsp),%rsi
  mov    $0x1,%edx
  mov    %ebp,%edi
  mov    %eax,0xc(%rsp)
  xor    %eax,%eax
  call   <write@plt>
  jmp    L76
  nopl   0x0(%rax)
L193:
  mov    $0x1,%edx
  lea    D6(%rip),%rsi
  mov    %ebp,%edi
  xor    %eax,%eax
  call   <write@plt>
  mov    0xc(%rsp),%eax
  neg    %eax
  mov    %eax,0xc(%rsp)
  jmp    L208
  nopl   0x0(%rax)
L6:
  mov    $0xb,%edx
  lea    D8(%rip),%rsi
  mov    %ebp,%edi
  xor    %eax,%eax
  call   <write@plt>
  jmp    L76
  nopw   0x0(%rax,%rax,1)
L83:
  imul   $0x51eb851f,%rcx,%rdx
  sar    $0x25,%rdx
  sub    %esi,%edx
  mov    %edx,0x14(%rsp)
  cmp    $0x3e7,%eax
  jg     L14
  add    $0x30,%edx
  lea    0x14(%rsp),%rsi
  mov    %ebp,%edi
  xor    %eax,%eax
  mov    %edx,0x14(%rsp)
  mov    $0x1,%edx
  call   <write@plt>
L176:
  movslq 0x10(%rsp),%rax
  mov    %rax,%rcx
  imul   $0x66666667,%rax,%rax
  mov    %ecx,%edx
  sar    $0x1f,%edx
  sar    $0x22,%rax
  sub    %edx,%eax
  lea    (%rax,%rax,4),%edx
  mov    %ecx,%eax
  add    %edx,%edx
  sub    %edx,%eax
  mov    %eax,0x14(%rsp)
  js     L104
L28:
  add    $0x30,%eax
  lea    0x14(%rsp),%rsi
  mov    $0x1,%edx
  mov    %ebp,%edi
  mov    %eax,0x14(%rsp)
  xor    %eax,%eax
  call   <write@plt>
  jmp    L128
  nopw   0x0(%rax,%rax,1)
L61:
  lea    D6(%rip),%r12
  mov    $0x1,%edx
  mov    %ebp,%edi
  xor    %eax,%eax
  mov    %r12,%rsi
  call   <write@plt>
  mov    0x10(%rsp),%esi
  mov    %esi,%eax
  neg    %eax
  mov    %eax,0x10(%rsp)
  cmp    $0xfffffff7,%esi
  jge    L82
  movslq %eax,%rcx
  sar    $0x1f,%eax
  imul   $0x66666667,%rcx,%rdx
  sar    $0x22,%rdx
  sub    %eax,%edx
  mov    %edx,0x14(%rsp)
  cmp    $0xffffff9d,%esi
  jl     L179
  add    $0x30,%edx
  lea    0x14(%rsp),%rsi
  mov    %ebp,%edi
  xor    %eax,%eax
  mov    %edx,0x14(%rsp)
  mov    $0x1,%edx
  call   <write@plt>
L163:
  movslq 0x10(%rsp),%rax
  mov    %rax,%rcx
  imul   $0x66666667,%rax,%rax
  mov    %ecx,%edx
  sar    $0x1f,%edx
  sar    $0x22,%rax
  sub    %edx,%eax
  lea    (%rax,%rax,4),%edx
  mov    %ecx,%eax
  add    %edx,%edx
  sub    %edx,%eax
  mov    %eax,0x14(%rsp)
  js     L67
L58:
  add    $0x30,%eax
  lea    0x14(%rsp),%rsi
  mov    $0x1,%edx
  mov    %ebp,%edi
  mov    %eax,0x14(%rsp)
  xor    %eax,%eax
  call   <write@plt>
  jmp    L76
  nopl   0x0(%rax,%rax,1)
L104:
  mov    $0x1,%edx
  lea    D6(%rip),%rsi
  mov    %ebp,%edi
  xor    %eax,%eax
  call   <write@plt>
  mov    0x14(%rsp),%edx
  mov    %edx,%eax
  neg    %eax
  mov    %eax,0x14(%rsp)
  cmp    $0xfffffff7,%edx
  jge    L28
  movslq %eax,%rdi
  sar    $0x1f,%eax
  mov    %ebp,%esi
  imul   $0x66666667,%rdi,%rdi
  sar    $0x22,%rdi
  sub    %eax,%edi
  call   <ft_putnbr_fd>
  movslq 0x14(%rsp),%rax
  mov    %ebp,%esi
  mov    %rax,%rdi
  imul   $0x66666667,%rax,%rax
  mov    %edi,%edx
  sar    $0x1f,%edx
  sar    $0x22,%rax
  sub    %edx,%eax
  lea    (%rax,%rax,4),%eax
  add    %eax,%eax
  sub    %eax,%edi
  call   <ft_putnbr_fd>
  jmp    L128
  nopl   0x0(%rax)
L14:
  imul   $0x10624dd3,%rcx,%rdi
  sar    $0x26,%rdi
  sub    %esi,%edi
  mov    %ebp,%esi
  call   <ft_putnbr_fd>
  movslq 0x14(%rsp),%rax
  mov    %ebp,%esi
  mov    %rax,%rdi
  imul   $0x66666667,%rax,%rax
  mov    %edi,%edx
  sar    $0x1f,%edx
  sar    $0x22,%rax
  sub    %edx,%eax
  lea    (%rax,%rax,4),%eax
  add    %eax,%eax
  sub    %eax,%edi
  call   <ft_putnbr_fd>
  jmp    L176
  nopl   0x0(%rax)
L67:
  mov    $0x1,%edx
  mov    %r12,%rsi
  mov    %ebp,%edi
  xor    %eax,%eax
  call   <write@plt>
  mov    0x14(%rsp),%edx
  mov    %edx,%eax
  neg    %eax
  mov    %eax,0x14(%rsp)
  cmp    $0xfffffff7,%edx
  jge    L58
  movslq %eax,%rdi
  sar    $0x1f,%eax
  mov    %ebp,%esi
  imul   $0x66666667,%rdi,%rdi
  sar    $0x22,%rdi
  sub    %eax,%edi
  call   <ft_putnbr_fd>
  movslq 0x14(%rsp),%rax
  mov    %ebp,%esi
  mov    %rax,%rdi
  imul   $0x66666667,%rax,%rax
  mov    %edi,%edx
  sar    $0x1f,%edx
  sar    $0x22,%rax
  sub    %edx,%eax
  lea    (%rax,%rax,4),%eax
  add    %eax,%eax
  sub    %eax,%edi
  call   <ft_putnbr_fd>
  jmp    L76
  nopl   (%rax)
L179:
  imul   $0x51eb851f,%rcx,%rdi
  mov    %ebp,%esi
  sar    $0x25,%rdi
  sub    %eax,%edi
  call   <ft_putnbr_fd>
  movslq 0x14(%rsp),%rax
  mov    %ebp,%esi
  mov    %rax,%rdi
  imul   $0x66666667,%rax,%rax
  mov    %edi,%edx
  sar    $0x1f,%edx
  sar    $0x22,%rax
  sub    %edx,%eax
  lea    (%rax,%rax,4),%eax
  add    %eax,%eax
  sub    %eax,%edi
  call   <ft_putnbr_fd>
  jmp    L163
L149:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: tag: D6
type_infered: string
name: unpack_data
arguments: tag: D8
type_infered: string

tool: D6: -

tool: D8: -2147483648

assistant: ```c
void ft_putnbr_fd(int n, int fd) {
  if (n == -2147483648)
    write(fd, "-2147483648", 11);
  else {
    if (n < 0) {
      write(fd, "-", 1);
      n = -n;
    }
    if (n < 10) {
      n = n + 48;
      write(fd, &n, 1);
    } else {
      ft_putnbr_fd(n / 10, fd);
      ft_putnbr_fd(n % 10, fd);
    }
  }
}
```