user: 这段汇编代码用C语言表示是什么样的：

```asm
<do_parse_glob>:
  endbr64
  push   %r15
  mov    %rcx,%r15
  push   %r14
  mov    %rdx,%r14
  xor    %edx,%edx
  push   %r13
  push   %r12
  push   %rbp
  mov    %r8,%rbp
  push   %rbx
  mov    %rsi,%rbx
  sub    $0x38,%rsp
  mov    %r9,0x8(%rsp)
  lea    0x10(%rsp),%r13
  mov    %r13,%rcx
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  mov    D4(%rip),%rax
  mov    (%rax),%esi
  call   <glob@plt>
  mov    0x8(%rsp),%r9
  test   %eax,%eax
  mov    %eax,%r12d
  jne    L125
  test   %r9,%r9
  je     L123
  cmpb   $0x0,(%r9)
  je     L82
L123:
  mov    $0x1,%edi
  call   <assert@plt>
  mov    (%rbx),%rdi
  test   %rdi,%rdi
  je     L68
  call   <free@plt>
  mov    %r15,%rsi
  mov    %r14,%rdi
  call   <w_newword@plt>
  mov    %rax,(%rbx)
L68:
  mov    0x10(%rsp),%eax
  xor    %ebx,%ebx
  test   %eax,%eax
  jg     L15
  jmp    L144
  nopl   0x0(%rax,%rax,1)
L180:
  mov    %rbp,%rdi
  call   <w_addword@plt>
  test   %rax,%rax
  jne    L166
  add    $0x1,%rbx
  cmp    %ebx,0x10(%rsp)
  jle    L144
L15:
  mov    0x18(%rsp),%rax
  mov    (%rax,%rbx,8),%rdi
  call   <strdup@plt>
  mov    %rax,%rsi
  test   %rax,%rax
  jne    L180
L166:
  mov    %r13,%rdi
  call   <globfree@plt>
L51:
  mov    D27(%rip),%rax
  mov    (%rax),%r12d
L81:
  mov    0x28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L122
  add    $0x38,%rsp
  mov    %r12d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   (%rax)
L144:
  mov    %r13,%rdi
  call   <globfree@plt>
  jmp    L81
  nopw   0x0(%rax,%rax,1)
L125:
  mov    D0(%rip),%rax
  xor    %edi,%edi
  cmp    %r12d,(%rax)
  sete   %dil
  call   <assert@plt>
  mov    D27(%rip),%rax
  mov    (%rax),%r12d
  jmp    L81
  nopl   0x0(%rax)
L82:
  mov    0x18(%rsp),%rax
  xor    %edi,%edi
  cmpq   $0x0,(%rax)
  setne  %dil
  xor    %ebp,%ebp
  call   <assert@plt>
  mov    0x18(%rsp),%rax
  mov    (%rbx),%rdi
  mov    %r15,%rdx
  mov    %r14,%rsi
  mov    (%rax),%rcx
  call   <w_addstr@plt>
  cmpl   $0x1,0x10(%rsp)
  mov    %rax,(%rbx)
  mov    %rax,%rdi
  jg     L1
  jmp    L102
  nopl   0x0(%rax,%rax,1)
L69:
  mov    $0x20,%ecx
  mov    %r15,%rdx
  mov    %r14,%rsi
  add    $0x1,%rbp
  call   <w_addchar@plt>
  mov    %rax,(%rbx)
  mov    %rax,%rdi
  test   %rax,%rax
  je     L90
  mov    0x18(%rsp),%rax
  mov    %r15,%rdx
  mov    %r14,%rsi
  mov    (%rax,%rbp,8),%rcx
  call   <w_addstr@plt>
  mov    %rax,(%rbx)
L90:
  lea    0x1(%rbp),%eax
  cmp    %eax,0x10(%rsp)
  jle    L102
  mov    (%rbx),%rdi
L1:
  test   %rdi,%rdi
  jne    L69
L102:
  mov    %r13,%rdi
  call   <globfree@plt>
  cmpq   $0x0,(%rbx)
  jne    L81
  jmp    L51
L122:
  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;
}
```