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

```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)
L29:
  cmp    %r14,%r12
  je     L94
  mov    %r12,%rdi
  call   <strlen@plt>
  cmp    $0x16,%eax
  jg     L189
  mov    %r12,%rdi
  call   <strlen@plt>
  cmp    $0x15,%eax
  jg     L109
L17:
  mov    %rbx,%rdi
  mov    $0x16,%r13d
  call   <strlen@plt>
  mov    %eax,%ebp
  cmp    $0x39,%eax
  jg     L183
L130:
  lea    D17(%rip),%rsi
  mov    %rbx,%rdi
  call   <strpbrk@plt>
  test   %rax,%rax
  je     L176
  sub    %rbx,%rax
  movslq %ebp,%rdx
  cmp    %rdx,%rax
  cmovl  %eax,%ebp
L176:
  sub    $0x8,%rsp
  mov    %r13d,%ecx
  mov    %r13d,%edx
  push   %rbx
  mov    0x18(%rsp),%rdi
  mov    %ebp,%r9d
  mov    %r12,%r8
  lea    D12(%rip),%rsi
  xor    %eax,%eax
  call   <asprintf@plt>
  pop    %rdx
  pop    %rcx
  test   %rax,%rax
  js     L26
  mov    0x10(%rsp),%rdi
  mov    0x28(%rsp),%rsi
  call   <cli_add_comphelp_entry@plt>
  mov    0x28(%rsp),%rdi
  test   %rdi,%rdi
  je     L86
  call   <free@plt>
  movq   $0x0,0x28(%rsp)
L86:
  movslq %ebp,%rbp
  add    %rbp,%rbx
  jmp    L55
  xchg   %ax,%ax
L44:
  add    $0x1,%rbx
L55:
  movsbl (%rbx),%edi
  call   <isspace@plt>
  test   %rax,%rax
  jne    L44
  cmpb   $0x0,(%rbx)
  mov    %r14,%r12
  jne    L29
L26:
  mov    0x38(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L122
  add    $0x48,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L189:
  mov    0x8(%rsp),%rdi
  xor    %eax,%eax
  mov    %r12,%rdx
  lea    D9(%rip),%rsi
  call   <asprintf@plt>
  test   %rax,%rax
  js     L26
  mov    0x10(%rsp),%rdi
  mov    0x28(%rsp),%rsi
  call   <cli_add_comphelp_entry@plt>
  mov    0x28(%rsp),%rdi
  test   %rdi,%rdi
  je     L94
  call   <free@plt>
  movq   $0x0,0x28(%rsp)
L94:
  mov    %r14,%r12
  mov    %r12,%rdi
  call   <strlen@plt>
  cmp    $0x15,%eax
  jle    L17
L109:
  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    L130
  mov    0x1c(%rsp),%esi
  test   %esi,%esi
  js     L164
L151:
  movslq 0x1c(%rsp),%r15
L21:
  movsbl (%rbx,%r15,1),%edi
  mov    %r15d,%ebp
  call   <isspace@plt>
  test   %rax,%rax
  jne    L130
  sub    $0x1,%r15
  test   %r15d,%r15d
  jns    L21
L164:
  mov    0x1c(%rsp),%ebp
  jmp    L130
  nopl   0x0(%rax,%rax,1)
L183:
  movl   $0x39,0x1c(%rsp)
  jmp    L151
L122:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: tag: D17
type_infered: string
name: parse_data
arguments: tag: D12
type_infered: string
name: parse_data
arguments: tag: D9
type_infered: string

tool: D17: 


tool: D12: %-*.*s %.*s

tool: D9: %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);
}
```