user: Demonstrate the C code that generates the assembly output below:

```asm
<DoMatch>:
  endbr64
  push   %r12
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  movzbl (%rsi),%eax
  mov    %rsi,%rbx
  test   %al,%al
  je     L335
  movzbl 0x0(%rbp),%edx
  cmp    $0x2a,%al
  je     L20
L53:
  test   %dl,%dl
  je     L91
L20:
  cmp    $0x5b,%al
  je     L107
L131:
  jg     L206
  cmp    $0x2a,%al
  je     L130
  cmp    $0x3f,%al
  jne    L39
L1:
  movzbl 0x1(%rbx),%eax
  add    $0x1,%rbp
  lea    0x1(%rbx),%rdx
  test   %al,%al
  je     L335
  mov    %rdx,%rbx
  movzbl 0x0(%rbp),%edx
  cmp    $0x2a,%al
  jne    L53
  cmp    $0x5b,%al
  jne    L131
L107:
  movzbl 0x1(%rbx),%eax
  xor    %r10d,%r10d
  lea    0x1(%rbx),%rsi
  cmp    $0x5e,%al
  sete   %r10b
  je     L108
  cmp    $0x5d,%al
  je     L51
  test   %al,%al
  je     L51
L203:
  mov    %rbx,%rcx
  xor    %r8d,%r8d
  mov    %rsi,%rbx
  mov    $0x100,%edi
  movsbl %dl,%r9d
  jmp    L113
  nopl   0x0(%rax)
L172:
  movzbl (%rbx),%esi
  cmp    %al,%dl
  jne    L105
L124:
  mov    %rbx,%rcx
  mov    $0x1,%r8d
  movsbl %sil,%edi
  add    $0x1,%rbx
  movzbl 0x1(%rcx),%eax
  test   %al,%al
  je     L225
L153:
  cmp    $0x5d,%al
  je     L225
L113:
  cmp    $0x2d,%al
  jne    L172
  movzbl 0x2(%rcx),%esi
  lea    0x2(%rcx),%rbx
  cmp    %sil,%dl
  jg     L105
  cmp    %edi,%r9d
  jge    L124
  nopw   0x0(%rax,%rax,1)
L105:
  mov    %rbx,%rcx
  movsbl %sil,%edi
  add    $0x1,%rbx
  movzbl 0x1(%rcx),%eax
  test   %al,%al
  jne    L153
L225:
  cmp    %r10d,%r8d
  jne    L1
  nopl   0x0(%rax)
L51:
  xor    %eax,%eax
L215:
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
  nopw   0x0(%rax,%rax,1)
L206:
  cmp    $0x5c,%al
  sete   %al
  movzbl %al,%eax
  add    %rax,%rbx
L39:
  cmp    (%rbx),%dl
  jne    L51
  jmp    L1
  nopl   0x0(%rax)
L130:
  movzbl 0x1(%rbx),%ecx
  add    $0x1,%rbx
  cmp    $0x2a,%cl
  je     L130
  mov    $0x1,%eax
  test   %cl,%cl
  je     L215
  test   %dl,%dl
  je     L91
L64:
  mov    %rbx,%rsi
  mov    %rbp,%rdi
  lea    0x1(%rbp),%r12
  call   <DoMatch>
  test   %eax,%eax
  jne    L215
  movzbl 0x1(%rbp),%edx
  mov    %r12,%rbp
  test   %dl,%dl
  jne    L64
L91:
  pop    %rbx
  mov    $0xffffffff,%eax
  pop    %rbp
  pop    %r12
  ret
  nopw   0x0(%rax,%rax,1)
L108:
  movzbl 0x2(%rbx),%eax
  lea    0x2(%rbx),%rcx
  cmp    $0x5d,%al
  je     L330
  test   %al,%al
  je     L330
  mov    %rsi,%rbx
  mov    %rcx,%rsi
  jmp    L203
  nopl   0x0(%rax,%rax,1)
L335:
  xor    %eax,%eax
  cmpb   $0x0,0x0(%rbp)
  sete   %al
  jmp    L215
L330:
  mov    %rcx,%rbx
  jmp    L1
```

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