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

```asm
<fnmatch>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x48,%rsp
  mov    %rdi,-0x38(%rbp)
  mov    %rsi,-0x40(%rbp)
  mov    %edx,-0x44(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x18(%rbp)
  xor    %eax,%eax
  mov    -0x40(%rbp),%rax
  mov    %rax,-0x20(%rbp)
L575:
  mov    -0x38(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x38(%rbp)
  movzbl (%rax),%eax
  mov    %al,-0x2a(%rbp)
  movsbl -0x2a(%rbp),%eax
  cmp    $0x5c,%eax
  je     L782
  cmp    $0x5c,%eax
  jg     L229
  cmp    $0x5b,%eax
  je     L356
  cmp    $0x5b,%eax
  jg     L229
  cmp    $0x3f,%eax
  je     L284
  cmp    $0x3f,%eax
  jg     L229
  test   %eax,%eax
  je     L796
  cmp    $0x2a,%eax
  je     L438
  jmp    L229
L796:
  mov    -0x44(%rbp),%eax
  and    $0x8,%eax
  test   %eax,%eax
  je     L646
  mov    -0x40(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2f,%al
  jne    L646
  mov    $0x0,%eax
  jmp    L688
L646:
  mov    -0x40(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  setne  %al
  movzbl %al,%eax
  jmp    L688
L284:
  mov    -0x40(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L777
  mov    $0x1,%eax
  jmp    L688
L777:
  mov    -0x40(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2f,%al
  jne    L429
  mov    -0x44(%rbp),%eax
  and    $0x2,%eax
  test   %eax,%eax
  je     L429
  mov    $0x1,%eax
  jmp    L688
L429:
  mov    -0x40(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2e,%al
  jne    L266
  mov    -0x44(%rbp),%eax
  and    $0x4,%eax
  test   %eax,%eax
  je     L266
  mov    -0x40(%rbp),%rax
  cmp    -0x20(%rbp),%rax
  je     L675
  mov    -0x44(%rbp),%eax
  and    $0x2,%eax
  test   %eax,%eax
  je     L266
  mov    -0x40(%rbp),%rax
  sub    $0x1,%rax
  movzbl (%rax),%eax
  cmp    $0x2f,%al
  jne    L266
L675:
  mov    $0x1,%eax
  jmp    L688
L266:
  addq   $0x1,-0x40(%rbp)
  jmp    L29
L438:
  mov    -0x38(%rbp),%rax
  movzbl (%rax),%eax
  mov    %al,-0x2a(%rbp)
  jmp    L400
L55:
  addq   $0x1,-0x38(%rbp)
  mov    -0x38(%rbp),%rax
  movzbl (%rax),%eax
  mov    %al,-0x2a(%rbp)
L400:
  cmpb   $0x2a,-0x2a(%rbp)
  je     L55
  mov    -0x40(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2e,%al
  jne    L493
  mov    -0x44(%rbp),%eax
  and    $0x4,%eax
  test   %eax,%eax
  je     L493
  mov    -0x40(%rbp),%rax
  cmp    -0x20(%rbp),%rax
  je     L138
  mov    -0x44(%rbp),%eax
  and    $0x2,%eax
  test   %eax,%eax
  je     L493
  mov    -0x40(%rbp),%rax
  sub    $0x1,%rax
  movzbl (%rax),%eax
  cmp    $0x2f,%al
  jne    L493
L138:
  mov    $0x1,%eax
  jmp    L688
L493:
  cmpb   $0x0,-0x2a(%rbp)
  jne    L558
  mov    -0x44(%rbp),%eax
  and    $0x2,%eax
  test   %eax,%eax
  je     L725
  mov    -0x44(%rbp),%eax
  and    $0x8,%eax
  test   %eax,%eax
  jne    L509
  mov    -0x40(%rbp),%rax
  mov    $0x2f,%esi
  mov    %rax,%rdi
  call   <strchr@plt>
  test   %rax,%rax
  je     L509
  mov    $0x1,%eax
  jmp    L688
L509:
  mov    $0x0,%eax
  jmp    L688
L725:
  mov    $0x0,%eax
  jmp    L688
L558:
  cmpb   $0x2f,-0x2a(%rbp)
  jne    L574
  mov    -0x44(%rbp),%eax
  and    $0x2,%eax
  test   %eax,%eax
  je     L574
  mov    -0x40(%rbp),%rax
  mov    $0x2f,%esi
  mov    %rax,%rdi
  call   <strchr@plt>
  mov    %rax,-0x40(%rbp)
  cmpq   $0x0,-0x40(%rbp)
  jne    L776
  mov    $0x1,%eax
  jmp    L688
L368:
  mov    -0x44(%rbp),%eax
  and    $0xfffffffb,%eax
  mov    %eax,%edx
  mov    -0x40(%rbp),%rcx
  mov    -0x38(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <fnmatch>
  test   %eax,%eax
  jne    L526
  mov    $0x0,%eax
  jmp    L688
L526:
  cmpb   $0x2f,-0x29(%rbp)
  jne    L569
  mov    -0x44(%rbp),%eax
  and    $0x2,%eax
  test   %eax,%eax
  jne    L563
L569:
  addq   $0x1,-0x40(%rbp)
L574:
  mov    -0x40(%rbp),%rax
  movzbl (%rax),%eax
  mov    %al,-0x29(%rbp)
  cmpb   $0x0,-0x29(%rbp)
  jne    L368
  jmp    L385
L563:
  nop
L385:
  mov    $0x1,%eax
  jmp    L688
L356:
  mov    -0x40(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L355
  mov    $0x1,%eax
  jmp    L688
L355:
  mov    -0x40(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2f,%al
  jne    L484
  mov    -0x44(%rbp),%eax
  and    $0x2,%eax
  test   %eax,%eax
  je     L484
  mov    $0x1,%eax
  jmp    L688
L484:
  mov    -0x40(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2e,%al
  jne    L25
  mov    -0x44(%rbp),%eax
  and    $0x4,%eax
  test   %eax,%eax
  je     L25
  mov    -0x40(%rbp),%rax
  cmp    -0x20(%rbp),%rax
  je     L91
  mov    -0x44(%rbp),%eax
  and    $0x2,%eax
  test   %eax,%eax
  je     L25
  mov    -0x40(%rbp),%rax
  sub    $0x1,%rax
  movzbl (%rax),%eax
  cmp    $0x2f,%al
  jne    L25
L91:
  mov    $0x1,%eax
  jmp    L688
L25:
  mov    -0x40(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%esi
  lea    -0x28(%rbp),%rcx
  mov    -0x44(%rbp),%edx
  mov    -0x38(%rbp),%rax
  mov    %rax,%rdi
  call   <rangematch@plt>
  cmp    $0x1,%eax
  je     L653
  cmp    $0x1,%eax
  jg     L350
  cmp    $0xffffffff,%eax
  je     L553
  test   %eax,%eax
  je     L177
  jmp    L350
L653:
  mov    -0x28(%rbp),%rax
  mov    %rax,-0x38(%rbp)
  jmp    L350
L177:
  mov    $0x1,%eax
  jmp    L688
L350:
  addq   $0x1,-0x40(%rbp)
  jmp    L29
L782:
  mov    -0x44(%rbp),%eax
  and    $0x1,%eax
  test   %eax,%eax
  jne    L766
  mov    -0x38(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x38(%rbp)
  movzbl (%rax),%eax
  mov    %al,-0x2a(%rbp)
  cmpb   $0x0,-0x2a(%rbp)
  jne    L766
  movb   $0x5c,-0x2a(%rbp)
  subq   $0x1,-0x38(%rbp)
  jmp    L229
L553:
  nop
  jmp    L229
L766:
  nop
L229:
  mov    -0x40(%rbp),%rax
  movzbl (%rax),%eax
  cmp    %al,-0x2a(%rbp)
  je     L300
  mov    -0x44(%rbp),%eax
  and    $0x10,%eax
  test   %eax,%eax
  je     L595
  movzbl -0x2a(%rbp),%eax
  movzbl %al,%eax
  mov    %eax,%edi
  call   <tolower@plt>
  mov    %eax,%ebx
  mov    -0x40(%rbp),%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %eax,%edi
  call   <tolower@plt>
  cmp    %eax,%ebx
  je     L300
L595:
  mov    $0x1,%eax
  jmp    L688
L300:
  addq   $0x1,-0x40(%rbp)
  jmp    L29
L776:
  nop
L29:
  jmp    L575
L688:
  mov    -0x18(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L510
  call   <__stack_chk_fail@plt>
L510:
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

assistant: ```c
int fnmatch(const char *pattern, const char *string, int flags) {
  const char *stringstart;
  char *newp;
  char c, test;
  for (stringstart = string;;)
    switch (c = *pattern++) {
    case '\0':
      if ((flags & 0x08) && *string == '/')
        return (0);
      return (*string == '\0' ? 0 : 1);
    case '?':
      if (*string == '\0')
        return (1);
      if (*string == '/' && (flags & 0x02))
        return (1);
      if (*string == '.' && (flags & 0x04) && (string == stringstart || ((flags & 0x02) && *(string - 1) == '/')))
        return (1);
      ++string;
      break;
    case '*':
      c = *pattern;
      while (c == '*')
        c = *++pattern;
      if (*string == '.' && (flags & 0x04) && (string == stringstart || ((flags & 0x02) && *(string - 1) == '/')))
        return (1);
      if (c == '\0')
        if (flags & 0x02)
          return ((flags & 0x08) || strchr(string, '/') == NULL ? 0 : 1);
        else
          return (0);
      else if (c == '/' && flags & 0x02) {
        if ((string = strchr(string, '/')) == NULL)
          return (1);
        break;
      }
      while ((test = *string) != '\0') {
        if (!fnmatch(pattern, string, flags & ~0x04))
          return (0);
        if (test == '/' && flags & 0x02)
          break;
        ++string;
      }
      return (1);
    case '[':
      if (*string == '\0')
        return (1);
      if (*string == '/' && (flags & 0x02))
        return (1);
      if (*string == '.' && (flags & 0x04) && (string == stringstart || ((flags & 0x02) && *(string - 1) == '/')))
        return (1);
      switch (rangematch(pattern, *string, flags, &newp)) {
      case (-1):
        goto norm;
      case 1:
        pattern = newp;
        break;
      case 0:
        return (1);
      }
      ++string;
      break;
    case '\\':
      if (!(flags & 0x01)) {
        if ((c = *pattern++) == '\0') {
          c = '\\';
          --pattern;
        }
      }
    default:
    norm:
      if (c == *string)
        ;
      else if ((flags & 0x10) && (tolower((unsigned char)c) == tolower((unsigned char)*string)))
        ;
      else
        return (1);
      string++;
      break;
    }
}
```