user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<DoMatch>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x18,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %rsi,-0x30(%rbp)
  jmp    L179
L193:
  mov    -0x28(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L265
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2a,%al
  je     L265
  mov    $0xffffffff,%eax
  jmp    L311
L265:
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  cmp    $0x5c,%eax
  je     L226
  cmp    $0x5c,%eax
  jg     L154
  cmp    $0x5b,%eax
  je     L333
  cmp    $0x5b,%eax
  jg     L154
  cmp    $0x2a,%eax
  je     L102
  cmp    $0x3f,%eax
  je     L139
  jmp    L154
L226:
  addq   $0x1,-0x30(%rbp)
L154:
  mov    -0x28(%rbp),%rax
  movzbl (%rax),%edx
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  cmp    %al,%dl
  je     L69
  mov    $0x0,%eax
  jmp    L311
L98:
  nop
L102:
  addq   $0x1,-0x30(%rbp)
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2a,%al
  je     L98
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L306
  mov    $0x1,%eax
  jmp    L311
L292:
  mov    -0x28(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x28(%rbp)
  mov    -0x30(%rbp),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <DoMatch>
  mov    %eax,%ebx
  test   %ebx,%ebx
  je     L306
  mov    %ebx,%eax
  jmp    L311
L306:
  mov    -0x28(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L292
  mov    $0xffffffff,%eax
  jmp    L311
L333:
  mov    -0x30(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  cmp    $0x5e,%al
  sete   %al
  movzbl %al,%r12d
  test   %r12d,%r12d
  je     L45
  addq   $0x1,-0x30(%rbp)
L45:
  mov    $0x100,%r13d
  mov    $0x0,%ebx
  jmp    L222
L336:
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2d,%al
  jne    L105
  mov    -0x28(%rbp),%rax
  movzbl (%rax),%edx
  addq   $0x1,-0x30(%rbp)
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  cmp    %al,%dl
  jg     L298
  mov    -0x28(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  cmp    %eax,%r13d
  jg     L298
  mov    $0x1,%eax
  jmp    L286
L298:
  mov    $0x0,%eax
L286:
  and    $0x1,%eax
  jmp    L117
L105:
  mov    -0x28(%rbp),%rax
  movzbl (%rax),%edx
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  cmp    %al,%dl
  sete   %al
L117:
  test   %al,%al
  je     L53
  mov    $0x1,%ebx
L53:
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%r13d
L222:
  addq   $0x1,-0x30(%rbp)
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L82
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x5d,%al
  jne    L336
L82:
  cmp    %r12d,%ebx
  jne    L187
  mov    $0x0,%eax
  jmp    L311
L139:
  nop
  jmp    L2
L69:
  nop
  jmp    L2
L187:
  nop
L2:
  addq   $0x1,-0x28(%rbp)
  addq   $0x1,-0x30(%rbp)
L179:
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L193
  mov    -0x28(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  sete   %al
  movzbl %al,%eax
L311:
  add    $0x18,%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %rbp
  ret
```

assistant: ```c
int DoMatch(const char *text, 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++;
      for (last = 0400, matched = 0; *++p && *p != ']'; last = *p)
        if (*p == '-' ? *text <= *++p && *text >= last : *text == *p)
          matched = 1;
      if (matched == reverse)
        return 0;
      continue;
    }
  }
  return *text == '\0';
}
```