user: What would the C source look like for the assembly code provided here?

```asm
<cli_int_wrap_help_line>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  mov    %rdi,%r12
  push   %rbp
  push   %rbx
  mov    %rsi,%rbx
  sub    $0x48,%rsp
  mov    %rdx,0x10(%rsp)
  lea    0x37(%rsp),%r14
  mov    %fs:0x28,%rax
  mov    %rax,0x38(%rsp)
  xor    %eax,%eax
  lea    0x28(%rsp),%rax
  test   %rsi,%rsi
  movb   $0x0,0x37(%rsp)
  mov    %rax,0x8(%rsp)
  cmove  %r14,%rbx
  nopl   0x0(%rax,%rax,1)
L153:
  cmp    %r14,%r12
  je     L5
  mov    %r12,%rdi
  call   <strlen@plt>
  cmp    $0x16,%eax
  jg     L94
  mov    %r12,%rdi
  call   <strlen@plt>
  cmp    $0x15,%eax
  jg     L158
L85:
  mov    %rbx,%rdi
  mov    $0x16,%r13d
  call   <strlen@plt>
  mov    %eax,%ebp
  cmp    $0x39,%eax
  jg     L169
L192:
  lea    D5(%rip),%rsi
  mov    %rbx,%rdi
  call   <strpbrk@plt>
  test   %rax,%rax
  je     L6
  sub    %rbx,%rax
  movslq %ebp,%rdx
  cmp    %rdx,%rax
  cmovl  %eax,%ebp
L6:
  sub    $0x8,%rsp
  mov    %r13d,%ecx
  mov    %r13d,%edx
  push   %rbx
  mov    0x18(%rsp),%rdi
  mov    %ebp,%r9d
  mov    %r12,%r8
  lea    D10(%rip),%rsi
  xor    %eax,%eax
  call   <asprintf@plt>
  pop    %rdx
  pop    %rcx
  test   %rax,%rax
  js     L20
  mov    0x10(%rsp),%rdi
  mov    0x28(%rsp),%rsi
  call   <cli_add_comphelp_entry@plt>
  mov    0x28(%rsp),%rdi
  test   %rdi,%rdi
  je     L75
  call   <free@plt>
  movq   $0x0,0x28(%rsp)
L75:
  movslq %ebp,%rbp
  add    %rbp,%rbx
  jmp    L60
  xchg   %ax,%ax
L132:
  add    $0x1,%rbx
L60:
  movsbl (%rbx),%edi
  call   <isspace@plt>
  test   %rax,%rax
  jne    L132
  cmpb   $0x0,(%rbx)
  mov    %r14,%r12
  jne    L153
L20:
  mov    0x38(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L9
  add    $0x48,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L94:
  mov    0x8(%rsp),%rdi
  xor    %eax,%eax
  mov    %r12,%rdx
  lea    D21(%rip),%rsi
  call   <asprintf@plt>
  test   %rax,%rax
  js     L20
  mov    0x10(%rsp),%rdi
  mov    0x28(%rsp),%rsi
  call   <cli_add_comphelp_entry@plt>
  mov    0x28(%rsp),%rdi
  test   %rdi,%rdi
  je     L5
  call   <free@plt>
  movq   $0x0,0x28(%rsp)
L5:
  mov    %r14,%r12
  mov    %r12,%rdi
  call   <strlen@plt>
  cmp    $0x15,%eax
  jle    L85
L158:
  mov    %r12,%rdi
  call   <strlen@plt>
  mov    %rbx,%rdi
  mov    %eax,%r13d
  mov    $0x4f,%eax
  sub    %r13d,%eax
  mov    %eax,0x1c(%rsp)
  mov    %eax,%r15d
  call   <strlen@plt>
  mov    %eax,%ebp
  cmp    %eax,%r15d
  jge    L192
  mov    0x1c(%rsp),%esi
  test   %esi,%esi
  js     L199
L39:
  movslq 0x1c(%rsp),%r15
L62:
  movsbl (%rbx,%r15,1),%edi
  mov    %r15d,%ebp
  call   <isspace@plt>
  test   %rax,%rax
  jne    L192
  sub    $0x1,%r15
  test   %r15d,%r15d
  jns    L62
L199:
  mov    0x1c(%rsp),%ebp
  jmp    L192
  nopl   0x0(%rax,%rax,1)
L169:
  movl   $0x39,0x1c(%rsp)
  jmp    L39
L9:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: label: D5
type_guessed: string
name: disassemble_data
arguments: label: D10
type_guessed: string
name: disassemble_data
arguments: label: D21
type_guessed: string

tool: D5: 


tool: D10: %-*.*s %.*s

tool: D21: %s

assistant: ```c
void cli_int_wrap_help_line(char *nameptr, char *helpptr, struct cli_comphelp *comphelp) {
  int maxwidth = 80;
  int availwidth;
  int namewidth;
  int toprint;
  char *crlf;
  char *line;
  char emptystring[] = "";
  if (!helpptr)
    helpptr = emptystring;
  do {
    if ((nameptr != emptystring) && (strlen(nameptr) > 22)) {
      if (asprintf(&line, "%s", nameptr) < 0)
        break;
      cli_add_comphelp_entry(comphelp, line);
      do {
        if (line) {
          free(line);
          (line) = 0;
        }
      } while (0);
      nameptr = emptystring;
      namewidth = 22;
    }
    namewidth = ((22) > (strlen(nameptr)) ? (22) : (strlen(nameptr)));
    availwidth = maxwidth - namewidth - 1;
    toprint = strlen(helpptr);
    if (toprint > availwidth) {
      toprint = availwidth;
      while ((toprint >= 0) && !isspace(helpptr[toprint]))
        toprint--;
      if (toprint < 0) {
        toprint = availwidth;
      }
    }
    if ((crlf = strpbrk(helpptr, "\n\r"))) {
      if ((crlf - helpptr) < toprint) {
        toprint = (crlf - helpptr);
      }
    }
    if (asprintf(&line, "%-*.*s %.*s", namewidth, namewidth, nameptr, toprint, helpptr) < 0)
      break;
    cli_add_comphelp_entry(comphelp, line);
    do {
      if (line) {
        free(line);
        (line) = 0;
      }
    } while (0);
    nameptr = emptystring;
    helpptr += toprint;
    namewidth = 22;
    while (helpptr && isspace(*helpptr))
      helpptr++;
  } while (*helpptr);
}
```