user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<cli_int_wrap_help_line>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %rdi,%r13
  mov    %rsi,%rbx
  mov    %rdx,(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  movb   $0x0,0x27(%rsp)
  lea    0x27(%rsp),%rax
  test   %rsi,%rsi
  cmove  %rax,%rbx
  mov    %rax,%r15
  jmp    L178
L94:
  lea    0x18(%rsp),%rdi
  mov    %r13,%rdx
  lea    D7(%rip),%rsi
  mov    $0x0,%eax
  call   <asprintf@plt>
  test   %rax,%rax
  js     L192
  mov    0x18(%rsp),%rsi
  mov    (%rsp),%rdi
  call   <cli_add_comphelp_entry@plt>
  mov    0x18(%rsp),%rdi
  mov    %r15,%r13
  test   %rdi,%rdi
  je     L119
  call   <free@plt>
  movq   $0x0,0x18(%rsp)
  jmp    L119
L205:
  mov    %r15,%r13
  jmp    L119
L168:
  mov    %r13,%rdi
  call   <strlen@plt>
  mov    %eax,%r14d
  mov    $0x4f,%eax
  sub    %r14d,%eax
  mov    %eax,%r12d
  mov    %eax,0xc(%rsp)
  mov    %rbx,%rdi
  call   <strlen@plt>
  mov    %eax,%ebp
  cmp    %eax,%r12d
  jge    L38
  cmpl   $0x0,0xc(%rsp)
  jns    L35
  jmp    L139
L43:
  movl   $0x39,0xc(%rsp)
  mov    $0x16,%r14d
L35:
  movslq 0xc(%rsp),%r12
L22:
  mov    %r12d,%ebp
  movsbl (%rbx,%r12,1),%edi
  call   <isspace@plt>
  test   %rax,%rax
  jne    L102
  sub    $0x1,%r12
  test   %r12d,%r12d
  jns    L22
L139:
  mov    0xc(%rsp),%ebp
  jmp    L38
L102:
  test   %r12d,%r12d
  jns    L38
  mov    0xc(%rsp),%ebp
  jmp    L38
L46:
  mov    %r15,%r13
  cmpb   $0x0,(%rbx)
  je     L192
L178:
  cmp    %r15,%r13
  je     L205
  mov    %r13,%rdi
  call   <strlen@plt>
  cmp    $0x16,%eax
  jg     L94
L119:
  mov    %r13,%rdi
  call   <strlen@plt>
  cmp    $0x15,%eax
  jg     L168
  mov    %rbx,%rdi
  call   <strlen@plt>
  mov    %eax,%ebp
  mov    $0x16,%r14d
  cmp    $0x39,%eax
  jg     L43
L38:
  lea    D14(%rip),%rsi
  mov    %rbx,%rdi
  call   <strpbrk@plt>
  test   %rax,%rax
  je     L123
  sub    %rbx,%rax
  movslq %ebp,%rdx
  cmp    %rdx,%rax
  cmovl  %eax,%ebp
L123:
  lea    0x18(%rsp),%rdi
  sub    $0x8,%rsp
  push   %rbx
  mov    %ebp,%r9d
  mov    %r13,%r8
  mov    %r14d,%ecx
  mov    %r14d,%edx
  lea    D19(%rip),%rsi
  mov    $0x0,%eax
  call   <asprintf@plt>
  add    $0x10,%rsp
  test   %rax,%rax
  js     L192
  mov    0x18(%rsp),%rsi
  mov    (%rsp),%rdi
  call   <cli_add_comphelp_entry@plt>
  mov    0x18(%rsp),%rdi
  test   %rdi,%rdi
  je     L106
  call   <free@plt>
  movq   $0x0,0x18(%rsp)
L106:
  movslq %ebp,%rbp
  add    %rbp,%rbx
L9:
  movsbl (%rbx),%edi
  call   <isspace@plt>
  test   %rax,%rax
  je     L46
  add    $0x1,%rbx
  jmp    L9
L192:
  mov    0x28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L15
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L15:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_label: D7
data_type: string
name: parse_data
arguments: data_label: D14
data_type: string
name: parse_data
arguments: data_label: D19
data_type: string

tool: D7: %s

tool: D14: 


tool: D19: %-*.*s %.*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);
}
```