user: 请将以下的汇编代码转换成C语言代码：

```asm
<glob>:
  endbr64
  push   %r14
  push   %r13
  mov    %rsi,%r13
  push   %r12
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  lea    0x1(%rbp),%r14
  sub    $0x20,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  movzbl 0x0(%rbp),%eax
  mov    %rsp,%r12
  cmp    $0x3f,%al
  je     L125
L86:
  jg     L159
  test   %al,%al
  je     L233
  cmp    $0x2a,%al
  jne    L258
  cmpb   $0x0,0x0(%r13)
  mov    %r13,%rbx
  je     L156
  nopl   (%rax)
L139:
  add    $0x1,%rbx
  cmpb   $0x0,(%rbx)
  jne    L139
  cmp    %rbx,%r13
  je     L156
  cs nopw 0x0(%rax,%rax,1)
L209:
  cmpb   $0x0,0x1(%rbp)
  jne    L17
  xor    %eax,%eax
  cmpb   $0x0,(%rbx)
  setne  %al
L190:
  mov    0x18(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L217
  add    $0x20,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
  nopl   0x0(%rax,%rax,1)
L159:
  cmp    $0x5b,%al
  je     L142
  cmp    $0x5c,%al
  jne    L258
  movzbl 0x1(%rbp),%eax
  test   %al,%al
  je     L195
  lea    0x1(%r13),%rdx
  lea    0x2(%rbp),%r14
  cmp    0x0(%r13),%al
  jne    L195
L244:
  mov    %rdx,%r13
L156:
  mov    %r14,%rbp
L137:
  movzbl 0x0(%rbp),%eax
  lea    0x1(%rbp),%r14
  cmp    $0x3f,%al
  jne    L86
L125:
  cmpb   $0x0,0x0(%r13)
  lea    0x1(%r13),%rax
  je     L195
  mov    %rax,%r13
  mov    %r14,%rbp
  jmp    L137
  nopl   0x0(%rax,%rax,1)
L142:
  cmpb   $0x0,0x1(%rbp)
  lea    0x2(%rbp),%rax
  je     L195
  nopw   0x0(%rax,%rax,1)
L278:
  cmp    %rax,%r14
  je     L78
  cmpb   $0x5d,(%rax)
  je     L54
L78:
  add    $0x1,%rax
  cmpb   $0x0,-0x1(%rax)
  jne    L278
L195:
  mov    $0x1,%eax
  jmp    L190
  cs nopw 0x0(%rax,%rax,1)
L17:
  mov    %rbx,%rsi
  mov    %r14,%rdi
  call   <glob>
  test   %eax,%eax
  je     L190
  js     L195
  sub    $0x1,%rbx
  cmp    %rbx,%r13
  jne    L209
  mov    %r14,%rbp
  jmp    L137
L258:
  lea    0x1(%r13),%rdx
  cmp    0x0(%r13),%al
  je     L244
  jmp    L195
  nopw   0x0(%rax,%rax,1)
L233:
  movzbl 0x0(%r13),%eax
  neg    %al
  sbb    %eax,%eax
  jmp    L190
  xchg   %ax,%ax
L54:
  lea    0x1(%rax),%rbx
  mov    %r12,%rdx
  mov    %r14,%rdi
  mov    %rbx,%rsi
  call   <globchars@plt>
  movzbl 0x0(%r13),%eax
  mov    %eax,%edx
  and    $0x7,%eax
  shr    $0x3,%dl
  and    $0x1f,%edx
  movsbl (%rsp,%rdx,1),%edx
  bt     %eax,%edx
  jae    L195
  mov    %rbx,%r14
  add    $0x1,%r13
  mov    %r14,%rbp
  jmp    L137
L217:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int glob(const char *c, const char *s) {
  char bitlist[16];
  const char *here;
  for (;;)
    switch (*c++) {
    case '\0':
      return *s ? -1 : 0;
    case '?':
      if (!*s++)
        return 1;
      break;
    case '[':
      here = c;
      do
        if (!*c++)
          return 1;
      while ((here == c) || (*c != ']'));
      ++c;
      globchars(here, c, bitlist);
      if (!(bitlist[(*(const unsigned char *)s) / 8] & (1 << ((*(const unsigned char *)s) % 8))))
        return 1;
      ++s;
      break;
    case '*':
      here = s;
      while (*s)
        ++s;
      while (s != here) {
        int r;
        r = *c ? glob(c, s) : *s ? -1 : 0;
        if (!r)
          return 0;
        if (r < 0)
          return 1;
        --s;
      }
      break;
    case '\\':
      if (!*c || (*s++ != *c++))
        return 1;
      break;
    default:
      if (*s++ != c[-1])
        return 1;
      break;
    }
}
```