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

```asm
<DoMatch>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x8,%rsp
  mov    %rdi,%r12
  mov    %rsi,%rbx
  jmp    L25
L148:
  movzbl (%r12),%eax
  test   %al,%al
  jne    L245
  movzbl (%rbx),%eax
  cmp    $0x2a,%al
  je     L245
  mov    $0xffffffff,%eax
  jmp    L345
L245:
  movzbl (%rbx),%eax
  movsbl %al,%eax
  cmp    $0x5c,%eax
  je     L180
  cmp    $0x5c,%eax
  jg     L226
  cmp    $0x5b,%eax
  je     L18
  cmp    $0x5b,%eax
  jg     L226
  cmp    $0x2a,%eax
  je     L74
  cmp    $0x3f,%eax
  je     L327
  jmp    L226
L180:
  add    $0x1,%rbx
L226:
  movzbl (%r12),%edx
  movzbl (%rbx),%eax
  cmp    %al,%dl
  je     L239
  mov    $0x0,%eax
  jmp    L345
L250:
  nop
L74:
  add    $0x1,%rbx
  movzbl (%rbx),%eax
  cmp    $0x2a,%al
  je     L250
  movzbl (%rbx),%eax
  test   %al,%al
  jne    L370
  mov    $0x1,%eax
  jmp    L345
L62:
  mov    %r12,%rax
  lea    0x1(%rax),%r12
  mov    %rbx,%rsi
  mov    %rax,%rdi
  call   <DoMatch>
  mov    %eax,%r13d
  test   %r13d,%r13d
  je     L370
  mov    %r13d,%eax
  jmp    L345
L370:
  movzbl (%r12),%eax
  test   %al,%al
  jne    L62
  mov    $0xffffffff,%eax
  jmp    L345
L18:
  lea    0x1(%rbx),%rax
  movzbl (%rax),%eax
  cmp    $0x5e,%al
  sete   %al
  movzbl %al,%r14d
  test   %r14d,%r14d
  je     L378
  add    $0x1,%rbx
L378:
  mov    $0x0,%r13d
  lea    0x1(%rbx),%rax
  movzbl (%rax),%eax
  cmp    $0x5d,%al
  je     L160
  lea    0x1(%rbx),%rax
  movzbl (%rax),%eax
  cmp    $0x2d,%al
  jne    L76
L160:
  add    $0x1,%rbx
  movzbl (%rbx),%edx
  movzbl (%r12),%eax
  cmp    %al,%dl
  jne    L76
  mov    $0x1,%r13d
L76:
  movzbl (%rbx),%eax
  movsbl %al,%r15d
  jmp    L262
L363:
  movzbl (%rbx),%eax
  cmp    $0x2d,%al
  jne    L257
  lea    0x1(%rbx),%rax
  movzbl (%rax),%eax
  cmp    $0x5d,%al
  je     L257
  movzbl (%r12),%edx
  add    $0x1,%rbx
  movzbl (%rbx),%eax
  cmp    %al,%dl
  jg     L356
  movzbl (%r12),%eax
  movsbl %al,%eax
  cmp    %eax,%r15d
  jg     L356
  mov    $0x1,%eax
  jmp    L277
L356:
  mov    $0x0,%eax
L277:
  and    $0x1,%eax
  jmp    L236
L257:
  movzbl (%r12),%edx
  movzbl (%rbx),%eax
  cmp    %al,%dl
  sete   %al
L236:
  test   %al,%al
  je     L337
  mov    $0x1,%r13d
L337:
  movzbl (%rbx),%eax
  movsbl %al,%r15d
L262:
  add    $0x1,%rbx
  movzbl (%rbx),%eax
  test   %al,%al
  je     L197
  movzbl (%rbx),%eax
  cmp    $0x5d,%al
  jne    L363
L197:
  cmp    %r14d,%r13d
  jne    L132
  mov    $0x0,%eax
  jmp    L345
L327:
  nop
  jmp    L376
L239:
  nop
  jmp    L376
L132:
  nop
L376:
  add    $0x1,%r12
  add    $0x1,%rbx
L25:
  movzbl (%rbx),%eax
  test   %al,%al
  jne    L148
  movzbl (%r12),%eax
  test   %al,%al
  sete   %al
  movzbl %al,%eax
L345:
  add    $0x8,%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
```

assistant: ```c
int DoMatch(register const char *text, register const char *p) {
  register int last;
  register int matched;
  register int reverse;
  for (; *p; text++, p++) {
    if (*text == '\0' && *p != '*')
      return -1;
    switch (*p) {
    case '\\':
      p++;
    default:
      if (*text != *p)
        return 0;
      continue;
    case '?':
      continue;
    case '*':
      while (*++p == '*')
        continue;
      if (*p == '\0')
        return 1;
      while (*text)
        if ((matched = DoMatch(text++, p)) != 0)
          return matched;
      return -1;
    case '[':
      reverse = p[1] == '^' ? 1 : 0;
      if (reverse)
        p++;
      matched = 0;
      if (p[1] == ']' || p[1] == '-')
        if (*++p == *text)
          matched = 1;
      for (last = *p; *++p && *p != ']'; last = *p)
        if (*p == '-' && p[1] != ']' ? *text <= *++p && *text >= last : *text == *p)
          matched = 1;
      if (matched == reverse)
        return 0;
      continue;
    }
  }
  return *text == '\0';
}
```