user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<print_strlist>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    %rsi,-0x20(%rbp)
  mov    %rdx,-0x28(%rbp)
  mov    %ecx,-0x2c(%rbp)
  mov    -0x28(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,-0x4(%rbp)
  movl   $0x0,-0x8(%rbp)
  jmp    L92
L81:
  movl   $0x0,-0xc(%rbp)
  jmp    L23
L74:
  mov    -0x20(%rbp),%rax
  mov    (%rax),%rdx
  mov    -0xc(%rbp),%eax
  cltq
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isprint@plt>
  test   %rax,%rax
  jne    L132
  mov    -0x20(%rbp),%rax
  mov    (%rax),%rdx
  mov    -0xc(%rbp),%eax
  cltq
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x20,%al
  jne    L37
L132:
  mov    -0x20(%rbp),%rax
  mov    (%rax),%rdx
  mov    -0xc(%rbp),%eax
  cltq
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    -0x18(%rbp),%rdx
  mov    %rdx,%rsi
  mov    %eax,%edi
  call   <fputc@plt>
  jmp    L130
L37:
  mov    -0x8(%rbp),%edx
  mov    -0xc(%rbp),%eax
  add    %edx,%eax
  mov    %eax,%edx
  mov    -0x2c(%rbp),%eax
  sub    %edx,%eax
  cmp    $0x3,%eax
  jbe    L4
  mov    -0x20(%rbp),%rax
  mov    (%rax),%rdx
  mov    -0xc(%rbp),%eax
  cltq
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%edx
  mov    -0x18(%rbp),%rax
  lea    D5(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <fprintf@plt>
  addl   $0x3,-0x8(%rbp)
  jmp    L130
L4:
  mov    -0x8(%rbp),%edx
  mov    -0x2c(%rbp),%eax
  sub    %edx,%eax
  jmp    L73
L130:
  addl   $0x1,-0xc(%rbp)
L23:
  mov    -0x20(%rbp),%rax
  mov    (%rax),%rdx
  mov    -0xc(%rbp),%eax
  cltq
  add    %rdx,%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L9
  mov    -0x8(%rbp),%edx
  mov    -0xc(%rbp),%eax
  add    %edx,%eax
  cmp    %eax,-0x2c(%rbp)
  ja     L74
L9:
  mov    -0xc(%rbp),%eax
  add    %eax,-0x8(%rbp)
  mov    -0x8(%rbp),%edx
  mov    -0x4(%rbp),%eax
  add    %edx,%eax
  cmp    %eax,-0x2c(%rbp)
  jbe    L95
  mov    -0x18(%rbp),%rdx
  mov    -0x28(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <fputs@plt>
  mov    -0x4(%rbp),%eax
  add    %eax,-0x8(%rbp)
  jmp    L138
L95:
  mov    -0x8(%rbp),%edx
  mov    -0x2c(%rbp),%eax
  sub    %edx,%eax
  jmp    L73
L138:
  addq   $0x8,-0x20(%rbp)
L92:
  mov    -0x20(%rbp),%rax
  mov    (%rax),%rax
  test   %rax,%rax
  je     L68
  mov    -0x8(%rbp),%eax
  cmp    %eax,-0x2c(%rbp)
  ja     L81
L68:
  mov    -0x8(%rbp),%edx
  mov    -0x2c(%rbp),%eax
  sub    %edx,%eax
L73:
  leave
  ret
```

tool_calls: name: parse_data
arguments: label: D5
type_guessed: string

tool: D5: \%03o

assistant: ```c
unsigned print_strlist(FILE *file, char **strs, char *sep, unsigned max) {
  int i, n, seplen = strlen(sep);
  for (n = 0; *strs && n < max; strs++) {
    for (i = 0; strs[0][i] && n + i < max; i++)
      if (isprint(strs[0][i]) || strs[0][i] == ' ')
        fputc(strs[0][i], file);
      else {
        if (max - (n + i) > 3) {
          fprintf(file, "\\%03o", strs[0][i]);
          n += 3;
        } else
          return max - n;
      }
    n += i;
    if (n + seplen < max) {
      fputs(sep, file);
      n += seplen;
    } else
      return max - n;
  }
  return max - n;
}
```