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

```asm
<mycmp>:
  endbr64
  test   %rdx,%rdx
  je     L115
  push   %r13
  mov    %ecx,%eax
  push   %r12
  and    $0x4,%eax
  push   %rbp
  push   %rbx
  mov    %rdi,%rbx
  mov    %ecx,%edi
  and    $0x8,%edi
  sub    $0x18,%rsp
  and    $0x1,%ecx
  jne    L61
  test   %eax,%eax
  jne    L198
  test   %edi,%edi
  je     L144
  mov    %rsi,%rbp
  lea    (%rbx,%rdx,1),%r12
L90:
  movsbl (%rbx),%edi
  movzbl 0x0(%rbp),%edx
  cmp    %dil,%dl
  je     L513
  cmp    $0x23,%dl
  jne    L216
  call   <isdigit@plt>
  test   %rax,%rax
  jne    L291
L216:
  add    $0x18,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
  nopl   0x0(%rax,%rax,1)
L198:
  test   %edi,%edi
  je     L469
  mov    %rsi,%rbp
  lea    (%rbx,%rdx,1),%r12
L342:
  movsbl (%rbx),%edi
  movzbl 0x0(%rbp),%eax
  cmp    %dil,%al
  je     L602
  cmp    $0x3f,%al
  je     L118
  cmp    $0x23,%al
  jne    L216
  call   <isdigit@plt>
  test   %rax,%rax
  je     L216
L336:
  add    $0x1,%rbx
  add    $0x1,%rbp
  cmp    %rbx,%r12
  jne    L342
L354:
  add    $0x18,%rsp
  mov    $0x1,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
  nopw   0x0(%rax,%rax,1)
L513:
  test   %dil,%dil
  je     L354
L291:
  add    $0x1,%rbx
  add    $0x1,%rbp
  cmp    %rbx,%r12
  jne    L90
  jmp    L354
L61:
  test   %edi,%edi
  je     L105
  mov    %rsi,%r12
  lea    (%rbx,%rdx,1),%r13
  test   %eax,%eax
  jne    L168
L389:
  movsbl (%rbx),%edi
  call   <tolower@plt>
  movsbl (%r12),%edi
  mov    %eax,%ebp
  call   <tolower@plt>
  cmp    %al,%bpl
  je     L553
  cmpb   $0x23,(%r12)
  jne    L216
  movsbl (%rbx),%edi
  call   <isdigit@plt>
  test   %rax,%rax
  je     L216
L327:
  add    $0x1,%rbx
  add    $0x1,%r12
  cmp    %rbx,%r13
  jne    L389
  jmp    L354
  nopw   0x0(%rax,%rax,1)
L6:
  movzbl (%r12),%eax
  cmp    $0x3f,%al
  je     L496
  cmp    $0x23,%al
  jne    L216
  movsbl (%rbx),%edi
  call   <isdigit@plt>
  test   %rax,%rax
  je     L216
L280:
  add    $0x1,%rbx
  add    $0x1,%r12
  cmp    %rbx,%r13
  je     L354
L168:
  movsbl (%rbx),%edi
  call   <tolower@plt>
  movsbl (%r12),%edi
  mov    %eax,%ebp
  call   <tolower@plt>
  cmp    %al,%bpl
  jne    L6
  cmpb   $0x0,(%rbx)
  je     L354
  jmp    L280
  nop
L553:
  cmpb   $0x0,(%rbx)
  je     L354
  jmp    L327
  xchg   %ax,%ax
L118:
  test   %dil,%dil
  je     L216
  jmp    L336
  xchg   %ax,%ax
L602:
  test   %al,%al
  je     L354
  jmp    L336
  nopl   (%rax)
L496:
  cmpb   $0x0,(%rbx)
  je     L216
  jmp    L280
  nopl   0x0(%rax,%rax,1)
L115:
  mov    $0x1,%eax
  ret
L469:
  xor    %eax,%eax
L514:
  movzbl (%rbx,%rax,1),%ecx
  movzbl (%rsi,%rax,1),%edi
  cmp    %dil,%cl
  je     L547
  cmp    $0x3f,%dil
  jne    L216
  test   %cl,%cl
  je     L216
L549:
  add    $0x1,%rax
  cmp    %rax,%rdx
  jne    L514
  jmp    L354
L105:
  xor    %ebp,%ebp
  test   %eax,%eax
  jne    L146
L220:
  movsbl (%rbx,%rbp,1),%edi
  mov    %rdx,0x8(%rsp)
  mov    %rsi,(%rsp)
  call   <tolower@plt>
  mov    (%rsp),%rsi
  mov    %eax,%r12d
  movsbl (%rsi,%rbp,1),%edi
  call   <tolower@plt>
  mov    (%rsp),%rsi
  mov    0x8(%rsp),%rdx
  cmp    %al,%r12b
  jne    L216
  cmpb   $0x0,(%rbx,%rbp,1)
  je     L354
  add    $0x1,%rbp
  cmp    %rbp,%rdx
  jne    L220
  jmp    L354
L144:
  xor    %eax,%eax
L319:
  movzbl (%rbx,%rax,1),%ecx
  cmp    (%rsi,%rax,1),%cl
  jne    L216
  test   %cl,%cl
  je     L354
  add    $0x1,%rax
  cmp    %rax,%rdx
  jne    L319
  jmp    L354
L547:
  test   %cl,%cl
  je     L354
  jmp    L549
L146:
  movsbl (%rbx,%rbp,1),%edi
  mov    %rdx,0x8(%rsp)
  mov    %rsi,(%rsp)
  call   <tolower@plt>
  mov    (%rsp),%rsi
  mov    %eax,%r12d
  movsbl (%rsi,%rbp,1),%edi
  call   <tolower@plt>
  mov    (%rsp),%rsi
  mov    0x8(%rsp),%rdx
  cmp    %al,%r12b
  je     L209
  cmpb   $0x3f,(%rsi,%rbp,1)
  jne    L216
  cmpb   $0x0,(%rbx,%rbp,1)
  je     L216
L225:
  add    $0x1,%rbp
  cmp    %rbp,%rdx
  jne    L146
  jmp    L354
L209:
  cmpb   $0x0,(%rbx,%rbp,1)
  je     L354
  jmp    L225
```

assistant: ```c
int mycmp(char const *str, char const *expr, size_t len, int flags) {
  size_t n;
  for (n = 0; n < len; n++) {
    if ((flags & (int)(1 << 0) ? tolower(str[n]) : str[n]) == (flags & (int)(1 << 0) ? tolower(expr[n]) : expr[n])) {
      if (str[n] == '\0') {
        return 1;
      }
      continue;
    }
    if (flags & (int)(1 << 2) && expr[n] == '?' && str[n] != '\0') {
      continue;
    }
    if (flags & (int)(1 << 3) && expr[n] == '#' && isdigit(str[n])) {
      continue;
    }
    return 0;
  }
  return 1;
}
```