user: 请从给定的汇编指令推导出C源代码:

```asm
<ft_putr>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    %rsi,-0x20(%rbp)
  mov    -0x20(%rbp),%rdx
  mov    -0x18(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <ft_str_zerocase@plt>
  mov    %eax,-0x8(%rbp)
  cmpl   $0x0,-0x8(%rbp)
  js     L17
  mov    -0x8(%rbp),%eax
  jmp    L136
L17:
  addl   $0x1,-0x8(%rbp)
  mov    -0x20(%rbp),%rax
  add    $0x4,%rax
  mov    (%rax),%eax
  test   %eax,%eax
  je     L159
  mov    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <ft_strlen@plt>
  jmp    L211
L159:
  mov    $0x0,%eax
L211:
  mov    %eax,-0x4(%rbp)
  mov    -0x20(%rbp),%rax
  add    $0x4,%rax
  mov    (%rax),%eax
  test   %eax,%eax
  jns    L52
  mov    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <ft_strlen@plt>
  jmp    L200
L52:
  mov    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <ft_strlen@plt>
  mov    -0x20(%rbp),%rdx
  add    $0x4,%rdx
  mov    (%rdx),%edx
  cmp    %edx,%eax
  jge    L104
  mov    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <ft_strlen@plt>
  jmp    L200
L104:
  mov    -0x20(%rbp),%rax
  mov    0x4(%rax),%eax
L200:
  mov    %eax,-0x4(%rbp)
  mov    -0x18(%rbp),%rdx
  mov    -0x4(%rbp),%ecx
  mov    -0x20(%rbp),%rax
  mov    %ecx,%esi
  mov    %rax,%rdi
  call   <ft_preformat3@plt>
  mov    %eax,%edx
  mov    -0x8(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0x8(%rbp)
  cmpl   $0x0,-0x4(%rbp)
  je     L128
  mov    -0x20(%rbp),%rax
  add    $0x4,%rax
  mov    (%rax),%eax
  cmp    $0xffffffff,%eax
  jne    L128
  mov    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <ft_putstr@plt>
  jmp    L143
L128:
  mov    $0x0,%eax
L143:
  add    %eax,-0x8(%rbp)
  cmpl   $0x0,-0x4(%rbp)
  je     L172
  mov    -0x20(%rbp),%rax
  add    $0x4,%rax
  mov    (%rax),%eax
  cmp    $0xffffffff,%eax
  je     L172
  movl   $0x0,-0xc(%rbp)
  jmp    L193
L182:
  mov    -0xc(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x1f,%al
  jle    L35
  mov    -0xc(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x7f,%al
  je     L35
  mov    -0xc(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0xc(%rbp)
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <ft_putchar@plt>
  jmp    L193
L35:
  mov    $0x2e,%edi
  call   <ft_putchar@plt>
L193:
  mov    -0xc(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L172
  mov    -0x20(%rbp),%rax
  add    $0x4,%rax
  mov    (%rax),%eax
  cmp    %eax,-0xc(%rbp)
  jge    L172
  addl   $0x1,-0x8(%rbp)
  cmpl   $0x0,-0x8(%rbp)
  jne    L182
L172:
  mov    -0x20(%rbp),%rax
  add    $0x14,%rax
  mov    (%rax),%eax
  test   %eax,%eax
  je     L213
  mov    -0x20(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%eax
  test   %eax,%eax
  jne    L213
  mov    $0x1,%ecx
  jmp    L119
L213:
  mov    $0x0,%ecx
L119:
  mov    -0x4(%rbp),%eax
  sub    %ecx,%eax
  mov    %eax,%edx
  mov    -0x20(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <ft_postformat2@plt>
  mov    %eax,%edx
  mov    -0x8(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0x8(%rbp)
  mov    -0x8(%rbp),%eax
L136:
  leave
  ret
```

assistant: ```c
int ft_putr(char *s, int fl[8]) {
  int index;
  int len;
  int ret;
  if ((ret = ft_str_zerocase(s, fl)) > -1)
    return (ret);
  ret++;
  len = (fl[1] == 0) ? 0 : ft_strlen(s);
  len = (fl[1] < 0) ? ft_strlen(s) : ((((int)ft_strlen(s)) < (fl[1])) ? ((int)ft_strlen(s)) : (fl[1]));
  ret += ft_preformat3(fl, len, (void *)s);
  ret += (len && fl[1] == -1) ? ft_putstr(s) : 0;
  if (len && fl[1] != -1) {
    index = 0;
    while (s[index] && index < fl[1] && ++ret) {
      if (s[index] >= 32 && s[index] <= 126)
        ft_putchar(s[index++]);
      else
        ft_putchar('.');
    }
  }
  ret += ft_postformat2(fl, len - (fl[5] && !fl[2]));
  return (ret);
}
```