user: Please show me the C implementation that matches the assembly code listed below:

```asm
<match>:
  endbr64
  push   %r12
  mov    $0x1,%r12d
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  movzbl (%rsi),%eax
  cmp    $0x5e,%al
  jne    L136
  movzbl 0x1(%rsi),%eax
  xor    %r12d,%r12d
  add    $0x1,%rsi
L136:
  movzbl 0x0(%rbp),%edx
  lea    0x1(%rsi),%rbx
  cmp    $0x3f,%al
  je     L107
L255:
  jg     L132
  test   %al,%al
  je     L113
  cmp    $0x2a,%al
  jne    L238
  cmpb   $0x0,0x1(%rsi)
  je     L192
  test   %dl,%dl
  je     L205
L61:
  mov    %rbx,%rsi
  mov    %rbp,%rdi
  call   <match>
  test   %eax,%eax
  jne    L192
  add    $0x1,%rbp
  cmpb   $0x0,0x0(%rbp)
  jne    L61
  nopl   0x0(%rax,%rax,1)
L205:
  xor    $0x1,%r12d
L192:
  mov    %r12d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
  nopl   0x0(%rax)
L132:
  cmp    $0x5b,%al
  jne    L238
  movsbl 0x1(%rsi),%eax
  xor    %edi,%edi
  mov    $0x1,%r8d
  cmp    $0x5e,%al
  je     L62
L52:
  lea    0x1(%rbx),%rcx
  test   %eax,%eax
  je     L205
  mov    $0x7fff,%esi
  jmp    L127
  nopw   0x0(%rax,%rax,1)
L162:
  cmp    %eax,%edx
  mov    %eax,%esi
  mov    %rcx,%rbx
  cmove  %r8d,%edi
L53:
  movsbl (%rbx),%eax
  lea    0x1(%rbx),%rcx
  test   %eax,%eax
  je     L205
L127:
  cmp    $0x5d,%eax
  je     L47
  cmp    $0x2d,%eax
  jne    L162
  cmp    %esi,%edx
  jl     L165
  movsbl 0x1(%rbx),%eax
  cmp    %edx,%eax
  cmovge %r8d,%edi
  add    $0x2,%rbx
  jmp    L53
  nopl   0x0(%rax,%rax,1)
L165:
  mov    %rcx,%rbx
  jmp    L53
  nopl   (%rax)
L238:
  cmp    %edx,%eax
  jne    L205
L166:
  movzbl (%rbx),%eax
  mov    %rbx,%rsi
  add    $0x1,%rbp
  movzbl 0x0(%rbp),%edx
  lea    0x1(%rsi),%rbx
  cmp    $0x3f,%al
  jne    L255
L107:
  test   %edx,%edx
  jne    L166
  xor    $0x1,%r12d
  jmp    L192
  nopw   0x0(%rax,%rax,1)
L113:
  mov    %r12d,%eax
  pop    %rbx
  pop    %rbp
  xor    $0x1,%eax
  test   %edx,%edx
  cmovne %eax,%r12d
  mov    %r12d,%eax
  pop    %r12
  ret
  nopl   0x0(%rax)
L62:
  movsbl 0x2(%rsi),%eax
  lea    0x2(%rsi),%rbx
  mov    $0x1,%edi
  xor    %r8d,%r8d
  jmp    L52
  nopl   (%rax)
L47:
  test   %edi,%edi
  je     L205
  mov    %rcx,%rbx
  jmp    L166
```

assistant: ```c
int match(register char *s, register char *p) {
  register scc;
  int c, yes;
  yes = 1;
  if (*p == '^') {
    yes = 0;
    ++p;
  }
  for (;;) {
    scc = *s++ & 0377;
    switch (c = *p++) {
    default:
      if ((c & 0377) != scc)
        return (!yes);
      continue;
    case 0:
      return (scc == 0 ? yes : !yes);
    case '?':
      if (scc == 0)
        return (!yes);
      continue;
    case '*':
      if (!*p)
        return (yes);
      for (--s; *s; ++s)
        if (match(s, p))
          return (yes);
      return (!yes);
    case '[': {
      int ok, lc, good;
      lc = 077777;
      good = 1;
      if (*p == '^') {
        good = 0;
        ++p;
      }
      ok = !good;
      for (;;) {
        int cc;
        cc = *p++;
        if (cc == 0)
          return (!yes);
        if (cc == ']')
          break;
        if (cc == '-') {
          if (lc <= scc && scc <= *p++)
            ok = good;
        } else if (scc == (lc = cc))
          ok = good;
      }
      if (!ok)
        return (!yes);
      continue;
    }
    }
  }
}
```