user: 请从给定的汇编指令推导出C源代码:

```asm
<Gmatch>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x18,%rsp
  mov    %rdi,%r12
  mov    %rsi,%rbx
L28:
  mov    %r12,%rax
  lea    0x1(%rax),%r12
  movzbl (%rax),%eax
  movsbl %al,%eax
  and    $0x7f,%eax
  mov    %eax,%r13d
  mov    %rbx,%rax
  lea    0x1(%rax),%rbx
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,-0x28(%rbp)
  cmpl   $0x5b,-0x28(%rbp)
  je     L254
  cmpl   $0x5b,-0x28(%rbp)
  jg     L279
  cmpl   $0x3f,-0x28(%rbp)
  je     L39
  cmpl   $0x3f,-0x28(%rbp)
  jg     L279
  cmpl   $0x0,-0x28(%rbp)
  je     L301
  cmpl   $0x2a,-0x28(%rbp)
  je     L141
  jmp    L279
L254:
  movl   $0x0,-0x30(%rbp)
  movl   $0x7fff,-0x2c(%rbp)
  jmp    L207
L171:
  cmpl   $0x5d,-0x24(%rbp)
  jne    L43
  cmpl   $0x0,-0x30(%rbp)
  jne    L12
  mov    $0x0,%eax
  jmp    L212
L43:
  cmpl   $0x2d,-0x24(%rbp)
  jne    L16
  cmp    %r13d,-0x2c(%rbp)
  jg     L207
  mov    %rbx,%rax
  lea    0x1(%rax),%rbx
  movzbl (%rax),%eax
  movsbl %al,%eax
  cmp    %eax,%r13d
  jg     L207
  addl   $0x1,-0x30(%rbp)
  jmp    L207
L16:
  mov    -0x24(%rbp),%eax
  mov    %eax,-0x2c(%rbp)
  cmp    %r13d,-0x2c(%rbp)
  jne    L207
  addl   $0x1,-0x30(%rbp)
L207:
  mov    %rbx,%rax
  lea    0x1(%rax),%rbx
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,-0x24(%rbp)
  cmpl   $0x0,-0x24(%rbp)
  jne    L171
  jmp    L86
L12:
  nop
L86:
  cmpl   $0x0,-0x24(%rbp)
  jne    L255
  cmpl   $0x0,-0x30(%rbp)
  je     L332
  sub    $0x1,%rbx
  jmp    L255
L332:
  mov    $0x0,%eax
  jmp    L212
L141:
  movzbl (%rbx),%eax
  test   %al,%al
  jne    L357
  mov    $0x1,%eax
  jmp    L212
L357:
  sub    $0x1,%r12
  jmp    L113
L147:
  mov    %rbx,%rsi
  mov    %r12,%rdi
  mov    $0x0,%eax
  call   <Gmatch>
  test   %eax,%eax
  je     L159
  mov    $0x1,%eax
  jmp    L212
L159:
  add    $0x1,%r12
L113:
  movzbl (%r12),%eax
  test   %al,%al
  jne    L147
  mov    $0x0,%eax
  jmp    L212
L301:
  test   %r13d,%r13d
  sete   %al
  movzbl %al,%eax
  jmp    L212
L279:
  mov    -0x28(%rbp),%eax
  and    $0x7f,%eax
  cmp    %eax,%r13d
  je     L343
  mov    $0x0,%eax
  jmp    L212
L39:
  test   %r13d,%r13d
  jne    L76
  mov    $0x0,%eax
  jmp    L212
L255:
  nop
  jmp    L28
L343:
  nop
  jmp    L28
L76:
  nop
  jmp    L28
L212:
  add    $0x18,%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %rbp
  ret
```

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