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

```asm
<config_parse_names>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x58,%rsp
  mov    %rdi,-0x58(%rbp)
  mov    %rsi,-0x60(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x18(%rbp)
  xor    %eax,%eax
  mov    -0x60(%rbp),%rax
  mov    %rax,-0x48(%rbp)
  movq   $0x0,-0x38(%rbp)
  cmpq   $0x0,-0x60(%rbp)
  jne    L34
  mov    -0x58(%rbp),%rax
  movq   $0x0,(%rax)
  jmp    L34
L45:
  mov    -0x48(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2e,%al
  jne    L109
  mov    -0x48(%rbp),%rax
  cmp    -0x60(%rbp),%rax
  je     L15
  mov    -0x48(%rbp),%rax
  sub    $0x1,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isspace@plt>
  test   %rax,%rax
  jne    L163
L109:
  addq   $0x1,-0x48(%rbp)
L34:
  cmpq   $0x0,-0x48(%rbp)
  je     L87
  mov    -0x48(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L87
  mov    -0x48(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isalpha@plt>
  test   %eax,%eax
  je     L45
  jmp    L87
L15:
  nop
  jmp    L87
L163:
  nop
L87:
  cmpq   $0x0,-0x48(%rbp)
  je     L168
  mov    -0x48(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L168
  mov    $0x1,%edi
  call   <malloc@plt>
  mov    %rax,-0x40(%rbp)
  mov    -0x40(%rbp),%rax
  movb   $0x0,(%rax)
  jmp    L88
L91:
  movl   $0x0,-0x4c(%rbp)
  jmp    L197
L165:
  mov    -0x48(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x48(%rbp)
  mov    -0x4c(%rbp),%edx
  lea    0x1(%rdx),%ecx
  mov    %ecx,-0x4c(%rbp)
  movzbl (%rax),%ecx
  movslq %edx,%rax
  mov    %cl,-0x1b(%rbp,%rax,1)
L197:
  cmpl   $0x1,-0x4c(%rbp)
  jg     L199
  mov    -0x48(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L199
  mov    -0x48(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isspace@plt>
  test   %rax,%rax
  je     L165
L199:
  mov    -0x4c(%rbp),%eax
  cltq
  movb   $0x0,-0x1b(%rbp,%rax,1)
  mov    -0x40(%rbp),%rax
  mov    %rax,-0x30(%rbp)
  mov    -0x40(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,%ebx
  lea    -0x1b(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  add    %ebx,%eax
  add    $0x1,%eax
  cltq
  mov    %rax,-0x28(%rbp)
  mov    -0x28(%rbp),%rax
  mov    %rax,%rdi
  call   <malloc@plt>
  mov    %rax,-0x40(%rbp)
  lea    -0x1b(%rbp),%rcx
  mov    -0x30(%rbp),%rdx
  mov    -0x28(%rbp),%rsi
  mov    -0x40(%rbp),%rax
  mov    %rcx,%r8
  mov    %rdx,%rcx
  lea    D5(%rip),%rdx
  mov    %rax,%rdi
  call   <snprintf@plt>
  mov    -0x30(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  movq   $0x0,-0x30(%rbp)
L88:
  mov    -0x48(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L192
  mov    -0x48(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isspace@plt>
  test   %rax,%rax
  je     L91
L192:
  mov    -0x40(%rbp),%rdx
  mov    -0x58(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <hostlist_name_push@plt>
  mov    %rax,-0x38(%rbp)
  jmp    L34
L168:
  mov    -0x38(%rbp),%rax
  mov    -0x18(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L27
  call   <__stack_chk_fail@plt>
L27:
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

tool_calls: name: unpack_data
arguments: label: D5
data_type: string

tool: D5: %s%s

assistant: ```c
struct hostlist_t *config_parse_names(struct hostlist_t **hl, const char *line) {
  const char *p = line;
  char *buf, *tmp;
  char n[3];
  int i;
  size_t bufsize;
  struct hostlist_t *h_list = (struct hostlist_t *)0;
  if (!line) {
    *hl = (struct hostlist_t *)'\0';
  };
  for (;;) {
    while (p && *p && !isalpha((int)*p)) {
      if (*p == '.') {
        if (p == line) {
          break;
        }
        if (isspace((int)*(p - 1))) {
          break;
        }
      }
      p++;
    }
    if (!p || !*p) {
      break;
    }
    buf = (char *)malloc(1);
    buf[0] = '\0';
    while (*p && !isspace((int)*p)) {
      i = 0;
      while (i < 3 - 1 && *p && !isspace((int)*p)) {
        n[i++] = *p++;
      }
      n[i] = '\0';
      tmp = buf;
      bufsize = strlen(buf) + strlen(n) + 1;
      buf = (char *)malloc(bufsize);
      snprintf(buf, bufsize, "%s%s", tmp, n);
      free(tmp);
      tmp = 0;
    }
    h_list = hostlist_name_push(hl, buf);
  }
  return h_list;
}
```