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

```asm
<wild_match>:
  endbr64
  test   %rsi,%rsi
  je     L99
  push   %r15
  mov    %rdi,%r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  test   %rdi,%rdi
  je     L171
  movzbl (%rsi),%ecx
  mov    %rsi,%rbx
  test   %cl,%cl
  je     L171
  movl   $0x0,0xc(%rsp)
  xor    %ebp,%ebp
  xor    %r14d,%r14d
  xor    %r13d,%r13d
  xor    %r12d,%r12d
L165:
  movzbl (%r15),%eax
  test   %al,%al
  je     L214
  cmp    $0x2a,%al
  je     L35
  cmp    $0x3f,%al
  jne    L69
  movzbl 0x1(%rbx),%ecx
  add    $0x1,%r15
  add    $0x1,%rbx
L128:
  test   %cl,%cl
  jne    L165
L214:
  mov    0xc(%rsp),%eax
  test   %eax,%eax
  jne    L159
L171:
  xor    %eax,%eax
L53:
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   (%rax)
L35:
  cmpb   $0x0,0x1(%r15)
  lea    0x1(%r15),%rax
  je     L26
  mov    %rax,%r15
  mov    $0x1,%ebp
  jmp    L165
  nopl   0x0(%rax)
L69:
  cmp    $0x5c,%al
  sete   %al
  movzbl %al,%eax
  add    %rax,%r15
  test   %ebp,%ebp
  jne    L206
  movsbl (%r15),%edi
  call   <toupper@plt>
  movsbl (%rbx),%edi
  mov    %eax,0x8(%rsp)
  call   <toupper@plt>
  cmp    %eax,0x8(%rsp)
  je     L84
  test   %r12,%r12
  je     L171
L86:
  movzbl (%rbx),%ecx
  lea    -0x1(%r12),%r15
  mov    %r14d,%r13d
  jmp    L128
  nopl   0x0(%rax,%rax,1)
L258:
  add    $0x1,%rbx
  cmpb   $0x0,(%rbx)
  je     L167
L206:
  movsbl (%r15),%edi
  call   <toupper@plt>
  movsbl (%rbx),%edi
  mov    %eax,%r12d
  call   <toupper@plt>
  cmp    %eax,%r12d
  jne    L258
  cmpb   $0x0,(%rbx)
  je     L167
  movsbl (%r15),%edi
  call   <toupper@plt>
  movsbl (%rbx),%edi
  mov    %eax,%r12d
  call   <toupper@plt>
  cmp    %eax,%r12d
  je     L203
  movl   $0x0,0xc(%rsp)
  mov    %r13d,%r14d
  mov    %r15,%r12
  jmp    L86
  nopl   0x0(%rax,%rax,1)
L167:
  xor    %ebp,%ebp
L54:
  xor    %ecx,%ecx
L33:
  or     (%r15),%cl
  lea    0x1(%rbp,%r13,1),%eax
  jne    L171
  jmp    L53
  nopw   0x0(%rax,%rax,1)
L84:
  lea    0x1(%r13),%ebp
  mov    %r14d,%r13d
L77:
  cmpb   $0x1,(%r15)
  sbb    $0xffffffffffffffff,%r15
  cmpb   $0x0,(%rbx)
  je     L54
  movzbl 0x1(%rbx),%ecx
  mov    %r13d,%r14d
  add    $0x1,%rbx
  mov    %ebp,%r13d
  movl   $0x1,0xc(%rsp)
  xor    %ebp,%ebp
  jmp    L128
  nopl   0x0(%rax)
L203:
  mov    %r15,%r12
  jmp    L77
L159:
  mov    %r13d,%ebp
  mov    %r14d,%r13d
  jmp    L33
  nopl   (%rax)
L99:
  xor    %eax,%eax
  ret
L26:
  lea    0x1(%r14,%r13,1),%eax
  jmp    L53
```

assistant: ```c
int wild_match(char *wild, char *matchtext) {
  char *fallback = 0;
  int match = 0, count = 0, saved = 0, wildcard = 0;
  if (!matchtext || !wild)
    return 0;
  while (*matchtext && *wild) {
    switch (*wild) {
    case '?':
      wild++;
      matchtext++;
      break;
      while ((*(matchtext++) == ' '))
        ;
      break;
    case '*':
      if (!*++wild)
        return (count + saved + 1);
      wildcard = 1;
      break;
    default:
      if (*wild == '\\')
        wild++;
      if (wildcard) {
        saved = count;
        match = count = 0;
        fallback = wild;
        while (*matchtext && (toupper(*wild) != toupper(*matchtext)))
          matchtext++;
        if (!*matchtext) {
          match = 1;
          break;
        }
      }
      if (toupper(*wild) != toupper(*matchtext)) {
        if (!fallback)
          return 0;
        count = saved;
        wild = fallback - 1;
        break;
      }
      wildcard = 0;
      count++;
      match = 1;
      if (*wild)
        wild++;
      if (*matchtext)
        matchtext++;
    }
  }
  return (!match || *wild || *matchtext) ? 0 : (count + saved + 1);
}
```