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

```asm
<DoMatch>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x20,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %rsi,-0x30(%rbp)
  mov    %edx,-0x34(%rbp)
  mov    -0x30(%rbp),%r14
  jmp    L53
L65:
  mov    -0x28(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L329
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2a,%al
  je     L329
  mov    $0xffffffff,%eax
  jmp    L297
L329:
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  cmp    $0x5c,%eax
  je     L96
  cmp    $0x5c,%eax
  jg     L69
  cmp    $0x5b,%eax
  je     L271
  cmp    $0x5b,%eax
  jg     L69
  cmp    $0x2a,%eax
  je     L46
  cmp    $0x3f,%eax
  je     L132
  jmp    L69
L96:
  addq   $0x1,-0x30(%rbp)
L69:
  mov    -0x28(%rbp),%rax
  movzbl (%rax),%edx
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  cmp    %al,%dl
  je     L339
  mov    $0x0,%eax
  jmp    L297
L303:
  nop
L46:
  addq   $0x1,-0x30(%rbp)
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2a,%al
  jne    L59
  mov    -0x30(%rbp),%rax
  sub    %r14,%rax
  mov    %rax,%rdx
  mov    -0x34(%rbp),%eax
  cltq
  cmp    %rax,%rdx
  jl     L303
L59:
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L141
  mov    $0x1,%eax
  jmp    L297
L11:
  mov    -0x34(%rbp),%eax
  mov    -0x30(%rbp),%rdx
  sub    %r14,%rdx
  sub    %edx,%eax
  mov    %eax,%esi
  mov    -0x28(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x28(%rbp)
  mov    -0x30(%rbp),%rcx
  mov    %esi,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <DoMatch>
  mov    %eax,%ebx
  test   %ebx,%ebx
  je     L141
  mov    %ebx,%eax
  jmp    L297
L141:
  mov    -0x28(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L11
  mov    $0xffffffff,%eax
  jmp    L297
L271:
  mov    -0x30(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  cmp    $0x5e,%al
  sete   %al
  movzbl %al,%r12d
  test   %r12d,%r12d
  je     L54
  addq   $0x1,-0x30(%rbp)
L54:
  mov    $0x0,%ebx
  mov    -0x30(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  cmp    $0x5d,%al
  je     L50
  mov    -0x30(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  cmp    $0x2d,%al
  jne    L282
L50:
  addq   $0x1,-0x30(%rbp)
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%edx
  mov    -0x28(%rbp),%rax
  movzbl (%rax),%eax
  cmp    %al,%dl
  jne    L282
  mov    $0x1,%ebx
L282:
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%r13d
  jmp    L390
L140:
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2d,%al
  jne    L127
  mov    -0x30(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  cmp    $0x5d,%al
  je     L127
  mov    -0x28(%rbp),%rax
  movzbl (%rax),%edx
  addq   $0x1,-0x30(%rbp)
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  cmp    %al,%dl
  jg     L286
  mov    -0x28(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  cmp    %eax,%r13d
  jg     L286
  mov    $0x1,%eax
  jmp    L218
L286:
  mov    $0x0,%eax
L218:
  and    $0x1,%eax
  jmp    L351
L127:
  mov    -0x28(%rbp),%rax
  movzbl (%rax),%edx
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  cmp    %al,%dl
  sete   %al
L351:
  test   %al,%al
  je     L293
  mov    $0x1,%ebx
L293:
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%r13d
L390:
  addq   $0x1,-0x30(%rbp)
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L373
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x5d,%al
  je     L373
  mov    -0x30(%rbp),%rax
  sub    %r14,%rax
  mov    %rax,%rdx
  mov    -0x34(%rbp),%eax
  cltq
  cmp    %rax,%rdx
  jl     L140
L373:
  cmp    %r12d,%ebx
  jne    L234
  mov    $0x0,%eax
  jmp    L297
L132:
  nop
  jmp    L246
L339:
  nop
  jmp    L246
L234:
  nop
L246:
  addq   $0x1,-0x28(%rbp)
  addq   $0x1,-0x30(%rbp)
L53:
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L379
  mov    -0x30(%rbp),%rax
  sub    %r14,%rax
  mov    %rax,%rdx
  mov    -0x34(%rbp),%eax
  cltq
  cmp    %rax,%rdx
  jl     L65
L379:
  mov    -0x28(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  sete   %al
  movzbl %al,%eax
L297:
  add    $0x20,%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %rbp
  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';
}
```