user: What is the c source code of the assembly code below:

```asm
<do_parse_glob>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    %rsi,%rbx
  mov    %rdx,%r13
  mov    %rcx,%r14
  mov    %r8,%rbp
  mov    %r9,%r15
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  mov    %rsp,%rcx
  mov    $0x0,%edx
  mov    D13(%rip),%rax
  mov    (%rax),%esi
  call   <glob@plt>
  mov    %eax,%r12d
  test   %eax,%eax
  jne    L98
  test   %r15,%r15
  je     L125
  cmpb   $0x0,(%r15)
  je     L23
L125:
  mov    $0x1,%edi
  call   <assert@plt>
  mov    (%rbx),%rdi
  test   %rdi,%rdi
  je     L30
  call   <free@plt>
  mov    %r14,%rsi
  mov    %r13,%rdi
  call   <w_newword@plt>
  mov    %rax,(%rbx)
L30:
  mov    $0x0,%ebx
  cmpl   $0x0,(%rsp)
  jle    L165
L27:
  mov    0x8(%rsp),%rax
  mov    (%rax,%rbx,8),%rdi
  call   <strdup@plt>
  mov    %rax,%rsi
  test   %rax,%rax
  je     L164
  mov    %rbp,%rdi
  call   <w_addword@plt>
  test   %rax,%rax
  jne    L164
  add    $0x1,%rbx
  cmp    %ebx,(%rsp)
  jg     L27
L165:
  mov    %rsp,%rdi
  call   <globfree@plt>
  jmp    L116
L98:
  mov    D24(%rip),%rax
  cmp    %r12d,(%rax)
  sete   %dil
  movzbl %dil,%edi
  call   <assert@plt>
  mov    D46(%rip),%rax
  mov    (%rax),%r12d
  jmp    L116
L23:
  mov    0x8(%rsp),%rax
  cmpq   $0x0,(%rax)
  setne  %dil
  movzbl %dil,%edi
  call   <assert@plt>
  mov    0x8(%rsp),%rax
  mov    (%rax),%rcx
  mov    %r14,%rdx
  mov    %r13,%rsi
  mov    (%rbx),%rdi
  call   <w_addstr@plt>
  mov    %rax,(%rbx)
  mov    $0x8,%r15d
  mov    $0x1,%ebp
  cmpl   $0x1,(%rsp)
  jg     L45
L67:
  mov    %rsp,%rdi
  call   <globfree@plt>
  cmpq   $0x0,(%rbx)
  jne    L116
  mov    D46(%rip),%rax
  mov    (%rax),%r12d
  jmp    L116
L109:
  add    $0x1,%ebp
  add    $0x8,%r15
  cmp    %ebp,(%rsp)
  jle    L67
L45:
  mov    (%rbx),%rdi
  test   %rdi,%rdi
  je     L67
  mov    $0x20,%ecx
  mov    %r14,%rdx
  mov    %r13,%rsi
  call   <w_addchar@plt>
  mov    %rax,(%rbx)
  test   %rax,%rax
  je     L109
  mov    0x8(%rsp),%rdx
  mov    (%rdx,%r15,1),%rcx
  mov    %r14,%rdx
  mov    %r13,%rsi
  mov    %rax,%rdi
  call   <w_addstr@plt>
  mov    %rax,(%rbx)
  jmp    L109
L164:
  mov    %rsp,%rdi
  call   <globfree@plt>
  mov    D46(%rip),%rax
  mov    (%rax),%r12d
L116:
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L119
  mov    %r12d,%eax
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L119:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int do_parse_glob(const char *glob_word, char **word, size_t *word_length, size_t *max_length, wordexp_t *pwordexp, const char *ifs) {
  int error;
  int match;
  glob_t globbuf;
  error = glob(glob_word, GLOB_NOCHECK, NULL, &globbuf);
  if (error != 0) {
    assert(error == GLOB_NOSPACE);
    return WRDE_NOSPACE;
  }
  if (ifs && !*ifs) {
    assert(globbuf.gl_pathv[0] != NULL);
    *word = w_addstr(*word, word_length, max_length, globbuf.gl_pathv[0]);
    for (match = 1; match < globbuf.gl_pathc && *word != NULL; ++match) {
      *word = w_addchar(*word, word_length, max_length, ' ');
      if (*word != NULL)
        *word = w_addstr(*word, word_length, max_length, globbuf.gl_pathv[match]);
    }
    globfree(&globbuf);
    return *word ? 0 : WRDE_NOSPACE;
  }
  assert(ifs == NULL || *ifs != '\0');
  if (*word != NULL) {
    free(*word);
    *word = w_newword(word_length, max_length);
  }
  for (match = 0; match < globbuf.gl_pathc; ++match) {
    char *matching_word = strdup(globbuf.gl_pathv[match]);
    if (matching_word == NULL || w_addword(pwordexp, matching_word)) {
      globfree(&globbuf);
      return WRDE_NOSPACE;
    }
  }
  globfree(&globbuf);
  return 0;
}
```