user: 下面的汇编指令对应的C源代码是什么:

```asm
<rangematch>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    %esi,%eax
  mov    %edx,-0x20(%rbp)
  mov    %rcx,-0x28(%rbp)
  mov    %al,-0x1c(%rbp)
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x21,%al
  je     L1
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x5e,%al
  jne    L100
L1:
  mov    $0x1,%eax
  jmp    L150
L100:
  mov    $0x0,%eax
L150:
  mov    %eax,-0x4(%rbp)
  cmpl   $0x0,-0x4(%rbp)
  je     L21
  addq   $0x1,-0x18(%rbp)
L21:
  mov    -0x20(%rbp),%eax
  and    $0x10,%eax
  test   %eax,%eax
  je     L175
  movzbl -0x1c(%rbp),%eax
  movzbl %al,%eax
  mov    %eax,%edi
  call   <tolower@plt>
  mov    %al,-0x1c(%rbp)
L175:
  movl   $0x0,-0x8(%rbp)
  mov    -0x18(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x18(%rbp)
  movzbl (%rax),%eax
  mov    %al,-0xa(%rbp)
L163:
  cmpb   $0x5c,-0xa(%rbp)
  jne    L245
  mov    -0x20(%rbp),%eax
  and    $0x1,%eax
  test   %eax,%eax
  jne    L245
  mov    -0x18(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x18(%rbp)
  movzbl (%rax),%eax
  mov    %al,-0xa(%rbp)
L245:
  cmpb   $0x0,-0xa(%rbp)
  jne    L67
  mov    $0xffffffff,%eax
  jmp    L266
L67:
  cmpb   $0x2f,-0xa(%rbp)
  jne    L227
  mov    -0x20(%rbp),%eax
  and    $0x2,%eax
  test   %eax,%eax
  je     L227
  mov    $0x0,%eax
  jmp    L266
L227:
  mov    -0x20(%rbp),%eax
  and    $0x10,%eax
  test   %eax,%eax
  je     L174
  movzbl -0xa(%rbp),%eax
  movzbl %al,%eax
  mov    %eax,%edi
  call   <tolower@plt>
  mov    %al,-0xa(%rbp)
L174:
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2d,%al
  jne    L140
  mov    -0x18(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  mov    %al,-0x9(%rbp)
  cmpb   $0x0,-0x9(%rbp)
  je     L140
  cmpb   $0x5d,-0x9(%rbp)
  je     L140
  addq   $0x2,-0x18(%rbp)
  cmpb   $0x5c,-0x9(%rbp)
  jne    L243
  mov    -0x20(%rbp),%eax
  and    $0x1,%eax
  test   %eax,%eax
  jne    L243
  mov    -0x18(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x18(%rbp)
  movzbl (%rax),%eax
  mov    %al,-0x9(%rbp)
L243:
  cmpb   $0x0,-0x9(%rbp)
  jne    L38
  mov    $0xffffffff,%eax
  jmp    L266
L38:
  mov    -0x20(%rbp),%eax
  and    $0x10,%eax
  test   %eax,%eax
  je     L218
  movzbl -0x9(%rbp),%eax
  movzbl %al,%eax
  mov    %eax,%edi
  call   <tolower@plt>
  mov    %al,-0x9(%rbp)
L218:
  movzbl -0xa(%rbp),%eax
  cmp    -0x1c(%rbp),%al
  jg     L52
  movzbl -0x1c(%rbp),%eax
  cmp    -0x9(%rbp),%al
  jg     L52
  movl   $0x1,-0x8(%rbp)
  jmp    L52
L140:
  movzbl -0xa(%rbp),%eax
  cmp    -0x1c(%rbp),%al
  jne    L14
  movl   $0x1,-0x8(%rbp)
  jmp    L14
L52:
  nop
L14:
  mov    -0x18(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x18(%rbp)
  movzbl (%rax),%eax
  mov    %al,-0xa(%rbp)
  cmpb   $0x5d,-0xa(%rbp)
  jne    L163
  mov    -0x28(%rbp),%rax
  mov    -0x18(%rbp),%rdx
  mov    %rdx,(%rax)
  mov    -0x8(%rbp),%eax
  cmp    -0x4(%rbp),%eax
  setne  %al
  movzbl %al,%eax
L266:
  leave
  ret
```

assistant: ```c
int rangematch(const char *pattern, char test, int flags, char **newp) {
  int negate, ok;
  char c, c2;
  if ((negate = (*pattern == '!' || *pattern == '^')))
    ++pattern;
  if (flags & 0x10)
    test = tolower((unsigned char)test);
  ok = 0;
  c = *pattern++;
  do {
    if (c == '\\' && !(flags & 0x01))
      c = *pattern++;
    if (c == '\0')
      return ((-1));
    if (c == '/' && (flags & 0x02))
      return (0);
    if (flags & 0x10)
      c = tolower((unsigned char)c);
    if (*pattern == '-' && (c2 = *(pattern + 1)) != '\0' && c2 != ']') {
      pattern += 2;
      if (c2 == '\\' && !(flags & 0x01))
        c2 = *pattern++;
      if (c2 == '\0')
        return ((-1));
      if (flags & 0x10)
        c2 = tolower((unsigned char)c2);
      if (c <= test && test <= c2)
        ok = 1;
    } else if (c == test)
      ok = 1;
  } while ((c = *pattern++) != ']');
  *newp = (char *)pattern;
  return (ok == negate ? 0 : 1);
}
```