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

```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     L27
L16:
  jg     L261
  test   %al,%al
  je     L140
  cmp    $0x2a,%al
  jne    L43
  cmpb   $0x0,0x0(%r13)
  mov    %r13,%rbx
  je     L109
  nopl   (%rax)
L186:
  add    $0x1,%rbx
  cmpb   $0x0,(%rbx)
  jne    L186
  cmp    %rbx,%r13
  je     L109
  cs nopw 0x0(%rax,%rax,1)
L123:
  cmpb   $0x0,0x1(%rbp)
  jne    L5
  xor    %eax,%eax
  cmpb   $0x0,(%rbx)
  setne  %al
L169:
  mov    0x18(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L165
  add    $0x20,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
  nopl   0x0(%rax,%rax,1)
L261:
  cmp    $0x5b,%al
  je     L279
  cmp    $0x5c,%al
  jne    L43
  movzbl 0x1(%rbp),%eax
  test   %al,%al
  je     L24
  lea    0x1(%r13),%rdx
  lea    0x2(%rbp),%r14
  cmp    0x0(%r13),%al
  jne    L24
L96:
  mov    %rdx,%r13
L109:
  mov    %r14,%rbp
L79:
  movzbl 0x0(%rbp),%eax
  lea    0x1(%rbp),%r14
  cmp    $0x3f,%al
  jne    L16
L27:
  cmpb   $0x0,0x0(%r13)
  lea    0x1(%r13),%rax
  je     L24
  mov    %rax,%r13
  mov    %r14,%rbp
  jmp    L79
  nopl   0x0(%rax,%rax,1)
L279:
  cmpb   $0x0,0x1(%rbp)
  lea    0x2(%rbp),%rax
  je     L24
  nopw   0x0(%rax,%rax,1)
L245:
  cmp    %rax,%r14
  je     L49
  cmpb   $0x5d,(%rax)
  je     L176
L49:
  add    $0x1,%rax
  cmpb   $0x0,-0x1(%rax)
  jne    L245
L24:
  mov    $0x1,%eax
  jmp    L169
  cs nopw 0x0(%rax,%rax,1)
L5:
  mov    %rbx,%rsi
  mov    %r14,%rdi
  call   <glob>
  test   %eax,%eax
  je     L169
  js     L24
  sub    $0x1,%rbx
  cmp    %rbx,%r13
  jne    L123
  mov    %r14,%rbp
  jmp    L79
L43:
  lea    0x1(%r13),%rdx
  cmp    0x0(%r13),%al
  je     L96
  jmp    L24
  nopw   0x0(%rax,%rax,1)
L140:
  movzbl 0x0(%r13),%eax
  neg    %al
  sbb    %eax,%eax
  jmp    L169
  xchg   %ax,%ax
L176:
  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    L24
  mov    %rbx,%r14
  add    $0x1,%r13
  mov    %r14,%rbp
  jmp    L79
L165:
  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;
    }
}
```