user: 这段汇编代码用C语言表示是什么样的？

```asm
<cfstore_fnmatch>:
  endbr64
  push   %r15
  push   %r14
  mov    %edx,%r14d
  push   %r13
  mov    %rsi,%r13
  push   %r12
  mov    %rsi,%r12
  push   %rbp
  push   %rbx
  mov    %rdi,%rbx
  sub    $0x28,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  mov    %edx,%eax
  and    $0x4,%eax
  mov    %eax,0x4(%rsp)
L627:
  movzbl (%rbx),%ebp
  movzbl (%r12),%r15d
  lea    0x1(%rbx),%rdi
  cmp    $0x3f,%bpl
  je     L465
  jg     L132
  test   %bpl,%bpl
  je     L624
  cmp    $0x2a,%bpl
  jne    L501
  movzbl 0x1(%rbx),%eax
  mov    %rdi,%rbx
  cmp    $0x2a,%al
  jne    L613
  nopl   (%rax)
L387:
  movzbl 0x1(%rbx),%eax
  add    $0x1,%rbx
  cmp    $0x2a,%al
  je     L387
L613:
  cmp    $0x2e,%r15b
  je     L106
L126:
  test   %al,%al
  je     L571
  cmp    $0x2f,%al
  jne    L267
  test   $0x2,%r14b
  je     L267
  mov    %r12,%rdi
  mov    $0x2f,%esi
  call   <strchr@plt>
  mov    %rax,%r12
  test   %rax,%rax
  jne    L627
  nopl   (%rax)
L575:
  mov    $0x1,%eax
  jmp    L374
  nopw   0x0(%rax,%rax,1)
L132:
  cmp    $0x5b,%bpl
  je     L195
  cmp    $0x5c,%bpl
  jne    L501
  test   $0x1,%r14b
  je     L519
L501:
  mov    %rdi,%rbx
L331:
  cmp    %bpl,(%r12)
  je     L176
  test   $0x10,%r14b
  je     L575
  movzbl %bpl,%edi
  call   <tolower@plt>
  movzbl (%r12),%edi
  mov    %eax,%ebp
  call   <tolower@plt>
  cmp    %eax,%ebp
  jne    L575
L176:
  add    $0x1,%r12
  jmp    L627
  nopl   0x0(%rax,%rax,1)
L465:
  test   %r15b,%r15b
  je     L575
  cmp    $0x2f,%r15b
  je     L227
  cmp    $0x2e,%r15b
  jne    L565
  mov    0x4(%rsp),%ecx
  test   %ecx,%ecx
  je     L565
  cmp    %r13,%r12
  je     L575
  test   $0x2,%r14b
  je     L565
  cmpb   $0x2f,-0x1(%r12)
  jne    L565
  jmp    L575
  nopl   0x0(%rax)
L624:
  and    $0x8,%r14d
  jne    L383
L340:
  xor    %eax,%eax
  test   %r15b,%r15b
  setne  %al
L374:
  mov    0x18(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L250
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   (%rax)
L195:
  test   %r15b,%r15b
  je     L575
  cmp    $0x2f,%r15b
  je     L228
  cmp    $0x2e,%r15b
  jne    L111
  mov    0x4(%rsp),%eax
  test   %eax,%eax
  je     L111
  cmp    %r13,%r12
  je     L575
  test   $0x2,%r14b
  je     L111
  cmpb   $0x2f,-0x1(%r12)
  jne    L111
  jmp    L575
  nopl   (%rax)
L519:
  movzbl 0x1(%rbx),%eax
  test   %al,%al
  je     L501
  add    $0x2,%rbx
  mov    %eax,%ebp
  jmp    L331
  nopw   0x0(%rax,%rax,1)
L383:
  cmp    $0x2f,%r15b
  jne    L340
L179:
  xor    %eax,%eax
  jmp    L374
  nopl   0x0(%rax)
L106:
  mov    0x4(%rsp),%edx
  test   %edx,%edx
  je     L126
  cmp    %r13,%r12
  je     L575
  test   $0x2,%r14b
  je     L126
  cmpb   $0x2f,-0x1(%r12)
  jne    L126
  jmp    L575
  nopl   0x0(%rax,%rax,1)
L228:
  test   $0x2,%r14b
  jne    L575
L111:
  lea    0x10(%rsp),%rcx
  movsbl %r15b,%esi
  mov    %r14d,%edx
  mov    %rdi,0x8(%rsp)
  call   <rangematch@plt>
  test   %eax,%eax
  je     L575
  cmp    $0x1,%eax
  je     L476
  cmp    $0xffffffff,%eax
  mov    0x8(%rsp),%rdi
  je     L501
L565:
  add    $0x1,%r12
  mov    %rdi,%rbx
  jmp    L627
  nopw   0x0(%rax,%rax,1)
L227:
  test   $0x2,%r14b
  je     L565
  jmp    L575
  nopl   0x0(%rax,%rax,1)
L476:
  mov    0x10(%rsp),%rdi
  jmp    L565
L267:
  mov    %r14d,%r13d
  and    $0x2,%r14d
  and    $0xfffffffb,%r13d
  mov    %r14d,%ebp
  test   %r15b,%r15b
  jne    L98
  jmp    L575
  nop
L516:
  movzbl 0x1(%r12),%r15d
  add    $0x1,%r12
  test   %r15b,%r15b
  je     L575
L98:
  mov    %r13d,%edx
  mov    %r12,%rsi
  mov    %rbx,%rdi
  call   <cfstore_fnmatch>
  test   %eax,%eax
  je     L179
  cmp    $0x2f,%r15b
  jne    L516
  test   %ebp,%ebp
  je     L516
  jmp    L575
L571:
  test   $0x2,%r14b
  je     L179
  and    $0x8,%r14d
  jne    L179
  mov    $0x2f,%esi
  mov    %r12,%rdi
  call   <strchr@plt>
  test   %rax,%rax
  setne  %al
  movzbl %al,%eax
  jmp    L374
L250:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int cfstore_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 (!cfstore_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;
    }
}
```