user: 请将以下的汇编代码转换成C语言代码：

```asm
<match>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x48,%rsp
  mov    %rdi,-0x48(%rbp)
  mov    %rsi,-0x50(%rbp)
  mov    -0x48(%rbp),%rax
  mov    %rax,-0x30(%rbp)
  mov    -0x50(%rbp),%rax
  mov    %rax,-0x28(%rbp)
  mov    -0x48(%rbp),%rax
  mov    %rax,-0x20(%rbp)
  mov    -0x50(%rbp),%rax
  mov    %rax,-0x18(%rbp)
  movl   $0x0,-0x34(%rbp)
L197:
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2a,%al
  jne    L76
  jmp    L244
L135:
  addq   $0x1,-0x30(%rbp)
L244:
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2a,%al
  je     L135
  movl   $0x1,-0x34(%rbp)
  mov    -0x30(%rbp),%rax
  mov    %rax,-0x20(%rbp)
  mov    -0x28(%rbp),%rax
  mov    %rax,-0x18(%rbp)
L76:
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L228
  mov    -0x28(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L199
  mov    $0x1,%eax
  jmp    L87
L199:
  subq   $0x1,-0x30(%rbp)
  jmp    L186
L262:
  subq   $0x1,-0x30(%rbp)
L186:
  mov    -0x30(%rbp),%rax
  cmp    -0x48(%rbp),%rax
  jbe    L91
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x3f,%al
  je     L262
L91:
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2a,%al
  jne    L82
  mov    -0x30(%rbp),%rax
  cmp    -0x48(%rbp),%rax
  jbe    L82
  mov    $0x1,%eax
  jmp    L87
L82:
  cmpl   $0x0,-0x34(%rbp)
  jne    L259
  mov    $0x0,%eax
  jmp    L87
L259:
  mov    -0x20(%rbp),%rax
  mov    %rax,-0x30(%rbp)
  addq   $0x1,-0x18(%rbp)
  mov    -0x18(%rbp),%rax
  mov    %rax,-0x28(%rbp)
  jmp    L85
L228:
  mov    -0x28(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L85
  jmp    L152
L0:
  addq   $0x1,-0x30(%rbp)
L152:
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2a,%al
  je     L0
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  sete   %al
  movzbl %al,%eax
  jmp    L87
L85:
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %eax,%edi
  call   <tolower@plt>
  mov    %rax,%rbx
  mov    -0x28(%rbp),%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %eax,%edi
  call   <tolower@plt>
  cmp    %rax,%rbx
  je     L139
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x3f,%al
  je     L139
  cmpl   $0x0,-0x34(%rbp)
  jne    L69
  mov    $0x0,%eax
  jmp    L87
L69:
  mov    -0x20(%rbp),%rax
  mov    %rax,-0x30(%rbp)
  addq   $0x1,-0x18(%rbp)
  mov    -0x18(%rbp),%rax
  mov    %rax,-0x28(%rbp)
  jmp    L153
L139:
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L176
  addq   $0x1,-0x30(%rbp)
L176:
  mov    -0x28(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L197
  addq   $0x1,-0x28(%rbp)
L153:
  jmp    L197
L87:
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

assistant: ```c
int match(const char *mask, const char *name) {
  const unsigned char *m = (const unsigned char *)mask;
  const unsigned char *n = (const unsigned char *)name;
  const unsigned char *ma = (const unsigned char *)mask;
  const unsigned char *na = (const unsigned char *)name;
  int wild = 0;
loop:
  if (*m == '*') {
    while (*m == '*')
      m++;
    wild = 1;
    ma = m;
    na = n;
  }
  if (!*m) {
    if (!*n)
      return 1;
    for (m--; (m > (const unsigned char *)mask) && (*m == '?'); m--)
      ;
    if (*m == '*' && (m > (const unsigned char *)mask))
      return 1;
    if (!wild)
      return 0;
    m = ma;
    n = ++na;
  } else if (!*n) {
    while (*m == '*')
      m++;
    return (*m == 0);
  }
  if (tolower(*m) != tolower(*n) && *m != '?') {
    if (!wild)
      return 0;
    m = ma;
    n = ++na;
  } else {
    if (*m)
      m++;
    if (*n)
      n++;
  }
  goto loop;
}
```