user: Translate the below assembly code into C programming language:

```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     L152
  nopw   0x0(%rax,%rax,1)
L129:
  movzbl (%rbx),%ebp
  test   %bpl,%bpl
  jne    L22
L38:
  mov    0x28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L42
  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)
L22:
  movsbl %bpl,%edi
  call   <isalpha@plt>
  test   %eax,%eax
  jne    L9
  cmp    $0x2e,%bpl
  je     L30
L190:
  add    $0x1,%rbx
  jmp    L129
L30:
  cmp    %rbx,0x18(%rsp)
  je     L9
  movsbl -0x1(%rbx),%edi
  call   <isspace@plt>
  test   %rax,%rax
  je     L190
  cmpb   $0x0,(%rbx)
  je     L38
L9:
  mov    $0x1,%edi
  call   <malloc@plt>
  movb   $0x0,(%rax)
  movsbl (%rbx),%edi
  mov    %rax,%rbp
  mov    %rax,%r12
  test   %dil,%dil
  jne    L165
  jmp    L11
  nopw   0x0(%rax,%rax,1)
L24:
  movsbl (%rbx),%edi
  test   %dil,%dil
  je     L142
  call   <isspace@plt>
  test   %rax,%rax
  jne    L142
  movzbl (%rbx),%eax
  movsbl 0x1(%rbx),%edi
  lea    0x1(%rbx),%r12
  mov    %al,0x25(%rsp)
  test   %dil,%dil
  je     L191
  call   <isspace@plt>
  test   %rax,%rax
  jne    L191
  movzbl 0x1(%rbx),%eax
  add    $0x2,%rbx
  mov    %al,0x26(%rsp)
  mov    $0x2,%eax
L216:
  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     L11
  mov    %r15,%rbp
L165:
  call   <isspace@plt>
  test   %rax,%rax
  je     L24
  mov    0x10(%rsp),%rdi
  mov    %rbp,%rsi
  call   <hostlist_name_push@plt>
  mov    %rax,%r12
  jmp    L129
  nopl   (%rax)
L142:
  xor    %eax,%eax
  jmp    L216
  nop
L191:
  mov    %r12,%rbx
  mov    $0x1,%eax
  jmp    L216
  nopl   (%rax)
L11:
  mov    0x10(%rsp),%rdi
  mov    %r12,%rsi
  call   <hostlist_name_push@plt>
  mov    %rax,%r12
  jmp    L129
L152:
  movq   $0x0,(%rdi)
  jmp    L38
L42:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: data_label: D2
type_guessed: 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;
}
```