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

```asm
<stringmatchlen>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x48,%rsp
  mov    %rdi,-0x38(%rbp)
  mov    %esi,-0x3c(%rbp)
  mov    %rdx,-0x48(%rbp)
  mov    %ecx,-0x40(%rbp)
  mov    %r8d,-0x4c(%rbp)
  jmp    L474
L283:
  mov    -0x38(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  cmp    $0x5c,%eax
  je     L428
  cmp    $0x5c,%eax
  jg     L341
  cmp    $0x5b,%eax
  je     L92
  cmp    $0x5b,%eax
  jg     L341
  cmp    $0x2a,%eax
  je     L427
  cmp    $0x3f,%eax
  je     L441
  jmp    L341
L189:
  addq   $0x1,-0x38(%rbp)
  subl   $0x1,-0x3c(%rbp)
L427:
  mov    -0x38(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  cmp    $0x2a,%al
  je     L189
  cmpl   $0x1,-0x3c(%rbp)
  jne    L101
  mov    $0x1,%eax
  jmp    L77
L444:
  mov    -0x3c(%rbp),%eax
  lea    -0x1(%rax),%esi
  mov    -0x38(%rbp),%rax
  lea    0x1(%rax),%rdi
  mov    -0x4c(%rbp),%ecx
  mov    -0x40(%rbp),%edx
  mov    -0x48(%rbp),%rax
  mov    %ecx,%r8d
  mov    %edx,%ecx
  mov    %rax,%rdx
  call   <stringmatchlen>
  test   %eax,%eax
  je     L546
  mov    $0x1,%eax
  jmp    L77
L546:
  addq   $0x1,-0x48(%rbp)
  subl   $0x1,-0x40(%rbp)
L101:
  cmpl   $0x0,-0x40(%rbp)
  jne    L444
  mov    $0x0,%eax
  jmp    L77
L441:
  cmpl   $0x0,-0x40(%rbp)
  jne    L507
  mov    $0x0,%eax
  jmp    L77
L507:
  addq   $0x1,-0x48(%rbp)
  subl   $0x1,-0x40(%rbp)
  jmp    L273
L92:
  addq   $0x1,-0x38(%rbp)
  subl   $0x1,-0x3c(%rbp)
  mov    -0x38(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x5e,%al
  sete   %al
  movzbl %al,%eax
  mov    %eax,-0x18(%rbp)
  cmpl   $0x0,-0x18(%rbp)
  je     L209
  addq   $0x1,-0x38(%rbp)
  subl   $0x1,-0x3c(%rbp)
L209:
  movl   $0x0,-0x28(%rbp)
L210:
  mov    -0x38(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x5c,%al
  jne    L499
  addq   $0x1,-0x38(%rbp)
  subl   $0x1,-0x3c(%rbp)
  mov    -0x38(%rbp),%rax
  movzbl (%rax),%edx
  mov    -0x48(%rbp),%rax
  movzbl (%rax),%eax
  cmp    %al,%dl
  jne    L314
  movl   $0x1,-0x28(%rbp)
  jmp    L314
L499:
  mov    -0x38(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x5d,%al
  je     L137
  cmpl   $0x0,-0x3c(%rbp)
  jne    L532
  subq   $0x1,-0x38(%rbp)
  addl   $0x1,-0x3c(%rbp)
  jmp    L479
L532:
  mov    -0x38(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  cmp    $0x2d,%al
  jne    L265
  cmpl   $0x2,-0x3c(%rbp)
  jle    L265
  mov    -0x38(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,-0x24(%rbp)
  mov    -0x38(%rbp),%rax
  add    $0x2,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,-0x20(%rbp)
  mov    -0x48(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,-0x1c(%rbp)
  mov    -0x24(%rbp),%eax
  cmp    -0x20(%rbp),%eax
  jle    L433
  mov    -0x24(%rbp),%eax
  mov    %eax,-0x14(%rbp)
  mov    -0x20(%rbp),%eax
  mov    %eax,-0x24(%rbp)
  mov    -0x14(%rbp),%eax
  mov    %eax,-0x20(%rbp)
L433:
  cmpl   $0x0,-0x4c(%rbp)
  je     L422
  mov    -0x24(%rbp),%eax
  mov    %eax,%edi
  call   <tolower@plt>
  mov    %eax,-0x24(%rbp)
  mov    -0x20(%rbp),%eax
  mov    %eax,%edi
  call   <tolower@plt>
  mov    %eax,-0x20(%rbp)
  mov    -0x1c(%rbp),%eax
  mov    %eax,%edi
  call   <tolower@plt>
  mov    %eax,-0x1c(%rbp)
L422:
  addq   $0x2,-0x38(%rbp)
  subl   $0x2,-0x3c(%rbp)
  mov    -0x1c(%rbp),%eax
  cmp    -0x24(%rbp),%eax
  jl     L252
  mov    -0x1c(%rbp),%eax
  cmp    -0x20(%rbp),%eax
  jg     L252
  movl   $0x1,-0x28(%rbp)
  jmp    L252
L265:
  cmpl   $0x0,-0x4c(%rbp)
  jne    L145
  mov    -0x38(%rbp),%rax
  movzbl (%rax),%edx
  mov    -0x48(%rbp),%rax
  movzbl (%rax),%eax
  cmp    %al,%dl
  jne    L314
  movl   $0x1,-0x28(%rbp)
  jmp    L314
L145:
  mov    -0x38(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <tolower@plt>
  mov    %eax,%ebx
  mov    -0x48(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <tolower@plt>
  cmp    %eax,%ebx
  jne    L314
  movl   $0x1,-0x28(%rbp)
  jmp    L314
L252:
  nop
L314:
  addq   $0x1,-0x38(%rbp)
  subl   $0x1,-0x3c(%rbp)
  jmp    L210
L137:
  nop
L479:
  cmpl   $0x0,-0x18(%rbp)
  je     L437
  cmpl   $0x0,-0x28(%rbp)
  sete   %al
  movzbl %al,%eax
  mov    %eax,-0x28(%rbp)
L437:
  cmpl   $0x0,-0x28(%rbp)
  jne    L496
  mov    $0x0,%eax
  jmp    L77
L496:
  addq   $0x1,-0x48(%rbp)
  subl   $0x1,-0x40(%rbp)
  jmp    L273
L428:
  cmpl   $0x1,-0x3c(%rbp)
  jle    L341
  addq   $0x1,-0x38(%rbp)
  subl   $0x1,-0x3c(%rbp)
L341:
  cmpl   $0x0,-0x4c(%rbp)
  jne    L555
  mov    -0x38(%rbp),%rax
  movzbl (%rax),%edx
  mov    -0x48(%rbp),%rax
  movzbl (%rax),%eax
  cmp    %al,%dl
  je     L279
  mov    $0x0,%eax
  jmp    L77
L555:
  mov    -0x38(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <tolower@plt>
  mov    %eax,%ebx
  mov    -0x48(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <tolower@plt>
  cmp    %eax,%ebx
  je     L279
  mov    $0x0,%eax
  jmp    L77
L279:
  addq   $0x1,-0x48(%rbp)
  subl   $0x1,-0x40(%rbp)
  nop
L273:
  addq   $0x1,-0x38(%rbp)
  subl   $0x1,-0x3c(%rbp)
  cmpl   $0x0,-0x40(%rbp)
  jne    L474
  jmp    L434
L30:
  addq   $0x1,-0x38(%rbp)
  subl   $0x1,-0x3c(%rbp)
L434:
  mov    -0x38(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2a,%al
  je     L30
  jmp    L526
L474:
  cmpl   $0x0,-0x3c(%rbp)
  jne    L283
L526:
  cmpl   $0x0,-0x3c(%rbp)
  jne    L343
  cmpl   $0x0,-0x40(%rbp)
  jne    L343
  mov    $0x1,%eax
  jmp    L77
L343:
  mov    $0x0,%eax
L77:
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

assistant: ```c
int stringmatchlen(const char *pattern, int patternLen, const char *string, int stringLen, int nocase) {
  while (patternLen) {
    switch (pattern[0]) {
    case '*':
      while (pattern[1] == '*') {
        pattern++;
        patternLen--;
      }
      if (patternLen == 1)
        return 1;
      while (stringLen) {
        if (stringmatchlen(pattern + 1, patternLen - 1, string, stringLen, nocase))
          return 1;
        string++;
        stringLen--;
      }
      return 0;
      break;
    case '?':
      if (stringLen == 0)
        return 0;
      string++;
      stringLen--;
      break;
    case '[': {
      int not, match;
      pattern++;
      patternLen--;
      not = pattern[0] == '^';
      if (not ) {
        pattern++;
        patternLen--;
      }
      match = 0;
      while (1) {
        if (pattern[0] == '\\') {
          pattern++;
          patternLen--;
          if (pattern[0] == string[0])
            match = 1;
        } else if (pattern[0] == ']') {
          break;
        } else if (patternLen == 0) {
          pattern--;
          patternLen++;
          break;
        } else if (pattern[1] == '-' && patternLen >= 3) {
          int start = pattern[0];
          int end = pattern[2];
          int c = string[0];
          if (start > end) {
            int t = start;
            start = end;
            end = t;
          }
          if (nocase) {
            start = tolower(start);
            end = tolower(end);
            c = tolower(c);
          }
          pattern += 2;
          patternLen -= 2;
          if (c >= start && c <= end)
            match = 1;
        } else {
          if (!nocase) {
            if (pattern[0] == string[0])
              match = 1;
          } else {
            if (tolower((int)pattern[0]) == tolower((int)string[0]))
              match = 1;
          }
        }
        pattern++;
        patternLen--;
      }
      if (not )
        match = !match;
      if (!match)
        return 0;
      string++;
      stringLen--;
      break;
    }
    case '\\':
      if (patternLen >= 2) {
        pattern++;
        patternLen--;
      }
    default:
      if (!nocase) {
        if (pattern[0] != string[0])
          return 0;
      } else {
        if (tolower((int)pattern[0]) != tolower((int)string[0]))
          return 0;
      }
      string++;
      stringLen--;
      break;
    }
    pattern++;
    patternLen--;
    if (stringLen == 0) {
      while (*pattern == '*') {
        pattern++;
        patternLen--;
      }
      break;
    }
  }
  if (patternLen == 0 && stringLen == 0)
    return 1;
  return 0;
}
```