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    L82
L217:
  mov    -0x28(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L33
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2a,%al
  je     L33
  mov    $0xffffffff,%eax
  jmp    L101
L33:
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  cmp    $0x5c,%eax
  je     L3
  cmp    $0x5c,%eax
  jg     L12
  cmp    $0x5b,%eax
  je     L251
  cmp    $0x5b,%eax
  jg     L12
  cmp    $0x2a,%eax
  je     L271
  cmp    $0x3f,%eax
  je     L184
  jmp    L12
L3:
  addq   $0x1,-0x30(%rbp)
L12:
  mov    -0x28(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <toupper@plt>
  mov    %eax,%ebx
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <toupper@plt>
  cmp    %eax,%ebx
  je     L314
  mov    $0x0,%eax
  jmp    L101
L15:
  nop
L271:
  addq   $0x1,-0x30(%rbp)
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2a,%al
  je     L15
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L150
  mov    $0x1,%eax
  jmp    L101
L307:
  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     L150
  mov    %ebx,%eax
  jmp    L101
L150:
  mov    -0x28(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L307
  mov    $0xffffffff,%eax
  jmp    L101
L251:
  mov    -0x30(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  cmp    $0x5e,%al
  sete   %al
  movzbl %al,%r12d
  test   %r12d,%r12d
  je     L10
  addq   $0x1,-0x30(%rbp)
L10:
  mov    $0x0,%ebx
  mov    -0x30(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  cmp    $0x5d,%al
  je     L107
  mov    -0x30(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  cmp    $0x2d,%al
  jne    L174
L107:
  addq   $0x1,-0x30(%rbp)
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <toupper@plt>
  mov    %eax,%r13d
  mov    -0x28(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <toupper@plt>
  cmp    %eax,%r13d
  jne    L174
  mov    $0x1,%ebx
L174:
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%r13d
  jmp    L129
L130:
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2d,%al
  jne    L162
  mov    -0x30(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  cmp    $0x5d,%al
  je     L162
  mov    -0x28(%rbp),%rax
  movzbl (%rax),%edx
  addq   $0x1,-0x30(%rbp)
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  cmp    %al,%dl
  jg     L47
  mov    -0x28(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  cmp    %eax,%r13d
  jg     L47
  mov    $0x1,%eax
  jmp    L77
L47:
  mov    $0x0,%eax
L77:
  and    $0x1,%eax
  jmp    L303
L162:
  mov    -0x28(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <toupper@plt>
  mov    %eax,%r13d
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <toupper@plt>
  cmp    %eax,%r13d
  sete   %al
L303:
  test   %al,%al
  je     L144
  mov    $0x1,%ebx
L144:
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%r13d
L129:
  addq   $0x1,-0x30(%rbp)
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L234
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x5d,%al
  jne    L130
L234:
  cmp    %r12d,%ebx
  jne    L354
  mov    $0x0,%eax
  jmp    L101
L184:
  nop
  jmp    L1
L314:
  nop
  jmp    L1
L354:
  nop
L1:
  addq   $0x1,-0x28(%rbp)
  addq   $0x1,-0x30(%rbp)
L82:
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L217
  mov    -0x28(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  sete   %al
  movzbl %al,%eax
L101:
  add    $0x18,%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %rbp
  ret
```

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