user: 请从给定的汇编指令推导出C源代码:

```asm
<DoMatch>:
  endbr64
  movzbl (%rsi),%eax
  test   %al,%al
  je     L141
  push   %r13
  movslq %edx,%r8
  push   %r12
  push   %rbp
  mov    %edx,%ebp
  push   %rbx
  sub    $0x8,%rsp
  test   %r8,%r8
  jle    L232
  mov    %rsi,%rcx
  mov    %rsi,%rbx
  movzbl (%rdi),%esi
  test   %sil,%sil
  jne    L352
L320:
  cmp    $0x2a,%al
  jne    L345
L352:
  cmp    $0x5b,%al
  je     L340
L111:
  jg     L57
  cmp    $0x2a,%al
  je     L363
  cmp    $0x3f,%al
  jne    L369
L286:
  movzbl 0x1(%rbx),%eax
  add    $0x1,%rdi
  lea    0x1(%rbx),%rdx
  test   %al,%al
  je     L232
  mov    %rdx,%rsi
  sub    %rcx,%rsi
  cmp    %r8,%rsi
  jge    L232
  movzbl (%rdi),%esi
  mov    %rdx,%rbx
  test   %sil,%sil
  je     L320
  cmp    $0x5b,%al
  jne    L111
L340:
  movzbl 0x1(%rbx),%r9d
  xor    %r12d,%r12d
  cmp    $0x5e,%r9b
  sete   %r12b
  jne    L249
  movzbl 0x2(%rbx),%r9d
  add    $0x1,%rbx
L249:
  cmp    $0x5d,%r9b
  je     L38
  cmp    $0x2d,%r9b
  je     L38
  movsbl (%rbx),%r10d
  mov    %r9d,%eax
  mov    %rbx,%rdx
  xor    %r11d,%r11d
L277:
  lea    0x1(%rdx),%rbx
  cmp    $0x5d,%al
  je     L187
  test   %al,%al
  je     L187
  mov    %rbx,%r9
  sub    %rcx,%r9
  cmp    %r8,%r9
  jge    L187
  movsbl %sil,%r13d
  jmp    L247
  nopw   0x0(%rax,%rax,1)
L162:
  cmp    %al,%sil
  jne    L234
L156:
  mov    %rbx,%rdx
  movsbl %al,%r10d
  mov    $0x1,%r11d
  add    $0x1,%rbx
  movzbl 0x1(%rdx),%eax
  test   %al,%al
  je     L187
L22:
  cmp    $0x5d,%al
  je     L187
  mov    %rbx,%r9
  sub    %rcx,%r9
  cmp    %r8,%r9
  jge    L187
L247:
  cmp    $0x2d,%al
  jne    L162
  movzbl 0x2(%rdx),%r9d
  cmp    $0x5d,%r9b
  je     L162
  lea    0x2(%rdx),%rbx
  mov    %r9d,%eax
  cmp    %r9b,%sil
  jg     L234
  cmp    %r10d,%r13d
  jge    L156
  nopl   (%rax)
L234:
  mov    %rbx,%rdx
  movsbl %al,%r10d
  add    $0x1,%rbx
  movzbl 0x1(%rdx),%eax
  test   %al,%al
  jne    L22
  nopl   0x0(%rax,%rax,1)
L187:
  cmp    %r11d,%r12d
  jne    L286
L281:
  xor    %eax,%eax
L266:
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
  xchg   %ax,%ax
L57:
  cmp    $0x5c,%al
  sete   %al
  movzbl %al,%eax
  add    %rax,%rbx
L369:
  cmp    (%rbx),%sil
  jne    L281
  jmp    L286
  nopl   (%rax)
L363:
  movzbl 0x1(%rbx),%eax
  add    $0x1,%rbx
  cmp    $0x2a,%al
  jne    L159
  mov    %rbx,%rax
  sub    %rcx,%rax
  cmp    %r8,%rax
  jl     L363
L302:
  mov    %rbx,%r12
  sub    %rcx,%r12
  cmpb   $0x0,(%rdi)
  je     L345
L370:
  mov    %ebp,%edx
  mov    %rbx,%rsi
  lea    0x1(%rdi),%r13
  sub    %r12d,%edx
  call   <DoMatch>
  test   %eax,%eax
  jne    L266
  mov    %r13,%rdi
  cmpb   $0x0,(%rdi)
  jne    L370
L345:
  add    $0x8,%rsp
  mov    $0xffffffff,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
  nopw   0x0(%rax,%rax,1)
L38:
  xor    %r11d,%r11d
  cmp    %r9b,%sil
  movzbl 0x2(%rbx),%eax
  lea    0x1(%rbx),%rdx
  sete   %r11b
  movsbl %r9b,%r10d
  jmp    L277
L159:
  test   %al,%al
  jne    L302
  add    $0x8,%rsp
  mov    $0x1,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
  nop
L232:
  xor    %eax,%eax
  cmpb   $0x0,(%rdi)
  sete   %al
  jmp    L266
L141:
  xor    %eax,%eax
  cmpb   $0x0,(%rdi)
  sete   %al
  ret
```

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