user: 下面的汇编指令对应的C源代码是什么:

```asm
<glob>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x20,%rsp
  mov    %rdi,%rbp
  mov    %rsi,%r12
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  mov    %rsp,%r14
  jmp    L24
L247:
  test   %al,%al
  je     L110
  cmp    $0x2a,%al
  jne    L223
  mov    %r12,%rbx
  cmpb   $0x0,(%r12)
  je     L334
L304:
  add    $0x1,%rbx
  cmpb   $0x0,(%rbx)
  jne    L304
  cmp    %rbx,%r12
  jne    L321
  mov    %rbx,%r12
  jmp    L334
L306:
  lea    0x2(%rbp),%rax
  cmpb   $0x0,0x1(%rbp)
  jne    L190
  mov    $0x1,%eax
  jmp    L297
L110:
  movzbl (%r12),%eax
  neg    %al
  sbb    %eax,%eax
  jmp    L297
L330:
  lea    0x1(%r12),%rax
  cmpb   $0x0,(%r12)
  je     L84
  mov    %rax,%r12
  jmp    L334
L75:
  add    $0x1,%rax
  cmpb   $0x0,-0x1(%rax)
  je     L92
L190:
  cmp    %rax,%r13
  je     L75
  cmpb   $0x5d,(%rax)
  jne    L75
  lea    0x1(%rax),%rbx
  mov    %r14,%rdx
  mov    %rbx,%rsi
  mov    %r13,%rdi
  call   <globchars@plt>
  movzbl (%r12),%eax
  mov    %eax,%edx
  shr    $0x3,%dl
  and    $0x1f,%edx
  movsbl (%rsp,%rdx,1),%edx
  and    $0x7,%eax
  bt     %eax,%edx
  jae    L78
  add    $0x1,%r12
  mov    %rbx,%r13
  jmp    L334
L61:
  mov    %rbx,%rsi
  mov    %r13,%rdi
  call   <glob>
  test   %eax,%eax
  je     L297
  js     L341
  sub    $0x1,%rbx
  cmp    %rbx,%r12
  je     L234
L321:
  cmpb   $0x0,0x1(%rbp)
  jne    L61
  cmpb   $0x0,(%rbx)
  setne  %al
  movzbl %al,%eax
L297:
  mov    0x18(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L265
  add    $0x20,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L234:
  mov    %rbx,%r12
  jmp    L334
L223:
  lea    0x1(%r12),%rdx
  cmp    (%r12),%al
  jne    L226
  mov    %rdx,%r12
L334:
  mov    %r13,%rbp
L24:
  lea    0x1(%rbp),%r13
  movzbl 0x0(%rbp),%eax
  cmp    $0x3f,%al
  je     L330
  jle    L247
  cmp    $0x5b,%al
  je     L306
  cmp    $0x5c,%al
  jne    L223
  movzbl 0x1(%rbp),%eax
  test   %al,%al
  je     L324
  lea    0x1(%r12),%rdx
  lea    0x2(%rbp),%r13
  cmp    (%r12),%al
  jne    L275
  mov    %rdx,%r12
  jmp    L334
L226:
  mov    $0x1,%eax
  jmp    L297
L84:
  mov    $0x1,%eax
  jmp    L297
L92:
  mov    $0x1,%eax
  jmp    L297
L78:
  mov    $0x1,%eax
  jmp    L297
L341:
  mov    $0x1,%eax
  jmp    L297
L324:
  mov    $0x1,%eax
  jmp    L297
L275:
  mov    $0x1,%eax
  jmp    L297
L265:
  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;
    }
}
```