user: 这段汇编代码用C语言表示是什么样的：

```asm
<wordwrap>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %esi,-0x2c(%rbp)
  movl   $0x0,-0x14(%rbp)
  mov    -0x2c(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x8(%rbp)
  mov    -0x2c(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    -0x8(%rbp),%rax
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <memset@plt>
L23:
  mov    -0x14(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0x2c(%rbp),%edx
  mov    -0x8(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncpy@plt>
  mov    -0x8(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  cmp    %eax,-0x2c(%rbp)
  jle    L16
  mov    -0x8(%rbp),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    $0x20,%edi
  call   <putchar@plt>
  jmp    L8
L16:
  mov    -0x14(%rbp),%edx
  mov    -0x2c(%rbp),%eax
  add    %edx,%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x20,%al
  jne    L9
  mov    -0x8(%rbp),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    -0x2c(%rbp),%eax
  add    %eax,-0x14(%rbp)
  jmp    L1
L9:
  mov    -0x8(%rbp),%rax
  mov    %rax,%rdi
  call   <lastSpace@plt>
  mov    %eax,-0xc(%rbp)
  cmpl   $0x0,-0xc(%rbp)
  jle    L31
  movl   $0x0,-0x10(%rbp)
  jmp    L35
L55:
  mov    -0x10(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <putchar@plt>
  addl   $0x1,-0x14(%rbp)
  addl   $0x1,-0x10(%rbp)
L35:
  mov    -0x10(%rbp),%eax
  cmp    -0xc(%rbp),%eax
  jl     L55
  mov    $0xa,%edi
  call   <putchar@plt>
  jmp    L1
L31:
  movl   $0x0,-0x10(%rbp)
  jmp    L32
L98:
  mov    -0x10(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <putchar@plt>
  addl   $0x1,-0x10(%rbp)
L32:
  mov    -0x2c(%rbp),%eax
  sub    $0x1,%eax
  cmp    %eax,-0x10(%rbp)
  jl     L98
  lea    D0(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    -0x14(%rbp),%edx
  mov    -0x2c(%rbp),%eax
  add    %edx,%eax
  sub    $0x1,%eax
  mov    %eax,-0x14(%rbp)
L1:
  mov    -0x8(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  cmp    %eax,-0x2c(%rbp)
  je     L23
  nop
L8:
  nop
  leave
  ret
```

tool_calls: name: disassemble_data
arguments: label: D0
type_guessed: string

tool: D0: - 

assistant: ```c
void wordwrap(char *towrap, int width) {
  int idx = 0;
  int i, lastSpc;
  char *buffer = (char *)malloc(width + 1);
  memset(buffer, 0, width + 1);
  do {
    strncpy(buffer, towrap + idx, width);
    if (strlen(buffer) < width) {
      printf(buffer);
      putchar(' ');
      break;
    }
    if (towrap[idx + width] == ' ') {
      printf(buffer);
      idx = idx + width;
    } else {
      lastSpc = lastSpace(buffer);
      if (lastSpc > 0) {
        for (i = 0; i < lastSpc; i++) {
          putchar(buffer[i]);
          idx++;
        }
        putchar('\n');
      } else {
        for (i = 0; i < width - 1; i++) {
          putchar(buffer[i]);
        }
        printf("- ");
        idx = idx + width - 1;
      }
    }
  } while (strlen(buffer) == width);
}
```