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

```asm
<Tcl_StringMatch>:
  endbr64
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  sub    $0x8,%rsp
  movzbl (%rsi),%edx
  test   %dl,%dl
  je     L273
  nopl   0x0(%rax,%rax,1)
L278:
  movzbl 0x0(%rbp),%edi
  test   %dil,%dil
  jne    L90
  cmp    $0x2a,%dl
  jne    L163
L107:
  cmpb   $0x0,0x1(%rsi)
  mov    $0x1,%eax
  je     L277
  lea    0x1(%rsi),%rbx
  mov    %rbp,%rdi
  mov    %rbx,%rsi
  call   <Tcl_StringMatch>
  test   %eax,%eax
  jne    L214
L180:
  cmpb   $0x0,0x0(%rbp)
  je     L277
  add    $0x1,%rbp
  mov    %rbx,%rsi
  mov    %rbp,%rdi
  call   <Tcl_StringMatch>
  test   %eax,%eax
  je     L180
L214:
  mov    $0x1,%eax
L277:
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  ret
  nopl   (%rax)
L90:
  cmp    $0x2a,%dl
  je     L107
  cmp    $0x3f,%dl
  je     L159
  cmp    $0x5b,%dl
  je     L270
  cmp    $0x5c,%dl
  je     L200
  movzbl (%rsi),%edx
  mov    %rsi,%rax
L197:
  cmp    %dl,%dil
  jne    L163
  movzbl 0x1(%rax),%edx
L27:
  lea    0x1(%rax),%rsi
  add    $0x1,%rbp
  test   %dl,%dl
  jne    L278
L273:
  xor    %eax,%eax
  cmpb   $0x0,0x0(%rbp)
  sete   %al
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  ret
  nopl   0x0(%rax,%rax,1)
L200:
  movzbl 0x1(%rsi),%edx
  lea    0x1(%rsi),%rax
  test   %dl,%dl
  jne    L197
L163:
  add    $0x8,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  ret
  nopl   (%rax)
L159:
  movzbl 0x1(%rsi),%edx
  mov    %rsi,%rax
  jmp    L27
  nopl   0x0(%rax)
L270:
  movzbl 0x1(%rsi),%ecx
  lea    0x1(%rsi),%rax
  cmp    $0x5d,%cl
  jne    L183
  jmp    L163
  nopw   0x0(%rax,%rax,1)
L171:
  mov    %edx,%ecx
L49:
  add    $0x1,%rax
  cmp    $0x5d,%cl
  je     L163
L183:
  test   %cl,%cl
  je     L163
  movzbl 0x1(%rax),%edx
  cmp    %cl,%dil
  je     L306
  cmp    $0x2d,%dl
  jne    L171
  movzbl 0x2(%rax),%esi
  test   %sil,%sil
  je     L163
  cmp    %sil,%dil
  jg     L305
  cmp    %cl,%dil
  jge    L306
  cmp    %sil,%dil
  jge    L305
L10:
  movzbl 0x3(%rax),%ecx
  add    $0x2,%rax
  jmp    L49
  nop
L305:
  cmp    %cl,%dil
  jg     L10
  nopl   (%rax)
L306:
  movzbl (%rax),%ecx
  cmp    $0x5d,%cl
  je     L27
  test   %cl,%cl
  je     L27
  nopl   0x0(%rax)
L188:
  add    $0x1,%rax
  cmp    $0x5d,%dl
  setne  %sil
  test   %dl,%dl
  movzbl 0x1(%rax),%edx
  setne  %cl
  test   %cl,%sil
  jne    L188
  jmp    L27
```

assistant: ```c
int Tcl_StringMatch(const char *string, const char *pattern) {
  char c2;
  while (1) {
    if (*pattern == 0) {
      if (*string == 0) {
        return 1;
      } else {
        return 0;
      }
    }
    if ((*string == 0) && (*pattern != '*')) {
      return 0;
    }
    if (*pattern == '*') {
      pattern += 1;
      if (*pattern == 0) {
        return 1;
      }
      while (1) {
        if (Tcl_StringMatch(string, pattern)) {
          return 1;
        }
        if (*string == 0) {
          return 0;
        }
        string += 1;
      }
    }
    if (*pattern == '?') {
      goto thisCharOK;
    }
    if (*pattern == '[') {
      pattern += 1;
      while (1) {
        if ((*pattern == ']') || (*pattern == 0)) {
          return 0;
        }
        if (*pattern == *string) {
          break;
        }
        if (pattern[1] == '-') {
          c2 = pattern[2];
          if (c2 == 0) {
            return 0;
          }
          if ((*pattern <= *string) && (c2 >= *string)) {
            break;
          }
          if ((*pattern >= *string) && (c2 <= *string)) {
            break;
          }
          pattern += 2;
        }
        pattern += 1;
      }
      while ((*pattern != ']') && (*pattern != 0)) {
        pattern += 1;
      }
      goto thisCharOK;
    }
    if (*pattern == '\\') {
      pattern += 1;
      if (*pattern == 0) {
        return 0;
      }
    }
    if (*pattern != *string) {
      return 0;
    }
  thisCharOK:
    pattern += 1;
    string += 1;
  }
}
```