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

```asm
<DoMatch>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  movzbl (%rsi),%eax
  test   %al,%al
  je     L117
  movslq %edx,%r8
  mov    %edx,%r12d
  test   %r8,%r8
  jle    L117
  movzbl 0x0(%rbp),%edx
  mov    %rsi,%rcx
  mov    %rsi,%rbx
  test   %dl,%dl
  jne    L99
L234:
  cmp    $0x2a,%al
  jne    L281
L99:
  cmp    $0x5b,%al
  je     L114
L113:
  jg     L215
  cmp    $0x2a,%al
  je     L154
  cmp    $0x3f,%al
  jne    L64
L123:
  movzbl 0x1(%rbx),%eax
  add    $0x1,%rbp
  lea    0x1(%rbx),%rdx
  test   %al,%al
  je     L117
  mov    %rdx,%rsi
  sub    %rcx,%rsi
  cmp    %r8,%rsi
  jge    L117
  mov    %rdx,%rbx
  movzbl 0x0(%rbp),%edx
  test   %dl,%dl
  je     L234
  cmp    $0x5b,%al
  jne    L113
L114:
  movzbl 0x1(%rbx),%edi
  xor    %r11d,%r11d
  cmp    $0x5e,%dil
  sete   %r11b
  jne    L82
  movzbl 0x2(%rbx),%edi
  add    $0x1,%rbx
L82:
  cmp    $0x5d,%dil
  je     L156
  cmp    $0x2d,%dil
  je     L156
  movsbl (%rbx),%r9d
  mov    %edi,%eax
  mov    %rbx,%rsi
  xor    %r10d,%r10d
L76:
  lea    0x1(%rsi),%rbx
  cmp    $0x5d,%al
  je     L333
  test   %al,%al
  je     L333
  mov    %rbx,%rdi
  sub    %rcx,%rdi
  cmp    %r8,%rdi
  jge    L333
  movsbl %dl,%r13d
  jmp    L23
  nopl   (%rax)
L330:
  movzbl (%rbx),%edi
  cmp    %al,%dl
  jne    L280
L235:
  mov    %rbx,%rsi
  mov    $0x1,%r10d
  movsbl %dil,%r9d
  add    $0x1,%rbx
  movzbl 0x1(%rsi),%eax
  test   %al,%al
  je     L333
L358:
  cmp    $0x5d,%al
  je     L333
  mov    %rbx,%rdi
  sub    %rcx,%rdi
  cmp    %r8,%rdi
  jge    L333
L23:
  cmp    $0x2d,%al
  jne    L330
  movzbl 0x2(%rsi),%edi
  cmp    $0x5d,%dil
  je     L330
  lea    0x2(%rsi),%rbx
  cmp    %dil,%dl
  jg     L280
  cmp    %r9d,%r13d
  jge    L235
  nopl   0x0(%rax,%rax,1)
L280:
  mov    %rbx,%rsi
  movsbl %dil,%r9d
  add    $0x1,%rbx
  movzbl 0x1(%rsi),%eax
  test   %al,%al
  jne    L358
  nopl   0x0(%rax,%rax,1)
L333:
  cmp    %r10d,%r11d
  jne    L123
L88:
  xor    %eax,%eax
L298:
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
  nopl   0x0(%rax)
L215:
  cmp    $0x5c,%al
  sete   %al
  movzbl %al,%eax
  add    %rax,%rbx
L64:
  cmp    (%rbx),%dl
  jne    L88
  jmp    L123
  nopl   0x0(%rax)
L154:
  movzbl 0x1(%rbx),%eax
  add    $0x1,%rbx
  cmp    $0x2a,%al
  jne    L293
  mov    %rbx,%rax
  sub    %rcx,%rax
  cmp    %r8,%rax
  jl     L154
L103:
  mov    %rbx,%r13
  sub    %rcx,%r13
  test   %dl,%dl
  je     L281
L122:
  mov    %r12d,%edx
  mov    %rbx,%rsi
  lea    0x1(%rbp),%r14
  mov    %rbp,%rdi
  sub    %r13d,%edx
  call   <DoMatch>
  test   %eax,%eax
  jne    L298
  movzbl 0x1(%rbp),%edx
  mov    %r14,%rbp
  test   %dl,%dl
  jne    L122
L281:
  pop    %rbx
  mov    $0xffffffff,%eax
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
  nopl   0x0(%rax,%rax,1)
L156:
  xor    %r10d,%r10d
  cmp    %dil,%dl
  movzbl 0x2(%rbx),%eax
  lea    0x1(%rbx),%rsi
  sete   %r10b
  movsbl %dil,%r9d
  jmp    L76
L293:
  test   %al,%al
  jne    L103
  pop    %rbx
  mov    $0x1,%eax
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
  nopl   (%rax)
L117:
  xor    %eax,%eax
  cmpb   $0x0,0x0(%rbp)
  sete   %al
  jmp    L298
```

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';
}
```