user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<config_parse_names>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  lea    D2(%rip),%r13
  push   %r12
  xor    %r12d,%r12d
  push   %rbp
  push   %rbx
  mov    %rsi,%rbx
  sub    $0x38,%rsp
  mov    %rdi,0x10(%rsp)
  mov    %rsi,0x18(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  test   %rsi,%rsi
  je     L135
  nopw   0x0(%rax,%rax,1)
L110:
  movzbl (%rbx),%ebp
  test   %bpl,%bpl
  jne    L84
L32:
  mov    0x28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L218
  add    $0x38,%rsp
  mov    %r12,%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  cs nopw 0x0(%rax,%rax,1)
L84:
  movsbl %bpl,%edi
  call   <isalpha@plt>
  test   %eax,%eax
  jne    L6
  cmp    $0x2e,%bpl
  je     L132
L115:
  add    $0x1,%rbx
  jmp    L110
L132:
  cmp    %rbx,0x18(%rsp)
  je     L6
  movsbl -0x1(%rbx),%edi
  call   <isspace@plt>
  test   %rax,%rax
  je     L115
  cmpb   $0x0,(%rbx)
  je     L32
L6:
  mov    $0x1,%edi
  call   <malloc@plt>
  movb   $0x0,(%rax)
  movsbl (%rbx),%edi
  mov    %rax,%rbp
  mov    %rax,%r12
  test   %dil,%dil
  jne    L20
  jmp    L185
  nopw   0x0(%rax,%rax,1)
L42:
  movsbl (%rbx),%edi
  test   %dil,%dil
  je     L166
  call   <isspace@plt>
  test   %rax,%rax
  jne    L166
  movzbl (%rbx),%eax
  movsbl 0x1(%rbx),%edi
  lea    0x1(%rbx),%r12
  mov    %al,0x25(%rsp)
  test   %dil,%dil
  je     L94
  call   <isspace@plt>
  test   %rax,%rax
  jne    L94
  movzbl 0x1(%rbx),%eax
  add    $0x2,%rbx
  mov    %al,0x26(%rsp)
  mov    $0x2,%eax
L188:
  mov    %rbp,%rdi
  movb   $0x0,0x25(%rsp,%rax,1)
  call   <strlen@plt>
  lea    0x25(%rsp),%r8
  mov    %r8,%rdi
  mov    %r8,0x8(%rsp)
  mov    %eax,%r12d
  call   <strlen@plt>
  lea    0x1(%r12,%rax,1),%esi
  movslq %esi,%r14
  mov    %r14,%rdi
  call   <malloc@plt>
  mov    0x8(%rsp),%r8
  mov    %rbp,%rcx
  mov    %r13,%rdx
  mov    %r14,%rsi
  mov    %rax,%rdi
  mov    %rax,%r15
  mov    %rax,%r12
  call   <snprintf@plt>
  mov    %rbp,%rdi
  call   <free@plt>
  movsbl (%rbx),%edi
  test   %dil,%dil
  je     L185
  mov    %r15,%rbp
L20:
  call   <isspace@plt>
  test   %rax,%rax
  je     L42
  mov    0x10(%rsp),%rdi
  mov    %rbp,%rsi
  call   <hostlist_name_push@plt>
  mov    %rax,%r12
  jmp    L110
  nopl   (%rax)
L166:
  xor    %eax,%eax
  jmp    L188
  nop
L94:
  mov    %r12,%rbx
  mov    $0x1,%eax
  jmp    L188
  nopl   (%rax)
L185:
  mov    0x10(%rsp),%rdi
  mov    %r12,%rsi
  call   <hostlist_name_push@plt>
  mov    %rax,%r12
  jmp    L110
L135:
  movq   $0x0,(%rdi)
  jmp    L32
L218:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: tag: D2
type_infered: string

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