user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<osc_match_star>:
  endbr64
  movzbl (%rsi),%eax
  test   %al,%al
  je     L233
  push   %r15
  mov    %rsi,%rdx
  push   %r14
  mov    %rdi,%r14
  push   %r13
  mov    %rsi,%r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  cmp    $0x2f,%al
  jne    L64
  jmp    L58
  nopl   0x0(%rax)
L276:
  test   %al,%al
  je     L58
L64:
  movzbl 0x1(%rdx),%eax
  add    $0x1,%rdx
  cmp    $0x2f,%al
  jne    L276
L58:
  movzbl (%r14),%eax
  cmp    $0x2f,%al
  je     L148
  test   %al,%al
  je     L148
  mov    %r14,%rbp
  xor    %ecx,%ecx
  jmp    L151
  nopl   0x0(%rax,%rax,1)
L273:
  cmp    $0x2f,%al
  je     L82
  mov    %rsi,%rbp
L151:
  cmp    $0x2a,%al
  lea    0x1(%rbp),%rsi
  sete   %al
  movzbl %al,%eax
  add    %eax,%ecx
  movzbl 0x1(%rbp),%eax
  test   %al,%al
  jne    L273
L82:
  lea    -0x1(%rdx),%r12
  cmp    $0x1,%ecx
  je     L299
  cmp    $0x2,%ecx
  jne    L148
  cmpb   $0x2a,-0x1(%rsi)
  je     L147
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <osc_match_single_char@plt>
  test   %eax,%eax
  je     L186
  nopl   0x0(%rax)
L158:
  movzbl 0x0(%rbp),%eax
  and    $0xffffffdf,%eax
  cmp    $0x5d,%al
  jne    L293
L54:
  movzbl -0x1(%rbp),%eax
  sub    $0x1,%rbp
  and    $0xffffffdf,%eax
  cmp    $0x5b,%al
  jne    L54
L293:
  mov    %rbp,%rdx
  sub    $0x1,%rbp
  lea    -0x1(%r12),%rax
  cmpb   $0x2a,-0x1(%rdx)
  je     L308
  mov    %rax,%r12
  mov    %rbp,%rdi
  mov    %r12,%rsi
  call   <osc_match_single_char@plt>
  test   %eax,%eax
  jne    L158
L186:
  add    $0x8,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nop
L305:
  mov    %rbx,%rax
  sub    $0x1,%r15
  sub    $0x1,%rbx
  cmpb   $0x2a,-0x1(%rax)
  jne    L277
L180:
  cmp    %rbx,%r14
  je     L222
L308:
  cmp    %r13,%r12
  jbe    L186
  sub    $0x1,%r12
  cmpb   $0x2a,-0x1(%rbp)
  lea    -0x1(%rbp),%rbx
  je     L180
  mov    %r12,%r15
L277:
  mov    %r15,%rsi
  mov    %rbx,%rdi
  call   <osc_match_single_char@plt>
  test   %eax,%eax
  je     L180
  movzbl (%rbx),%eax
  and    $0xffffffdf,%eax
  cmp    $0x5d,%al
  jne    L305
L72:
  movzbl -0x1(%rbx),%eax
  sub    $0x1,%rbx
  and    $0xffffffdf,%eax
  cmp    $0x5b,%al
  jne    L72
  jmp    L305
  nopw   0x0(%rax,%rax,1)
L148:
  add    $0x8,%rsp
  mov    %r13,%rsi
  mov    %r14,%rdi
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    1070 <osc_match_star_r@plt>
  nopl   0x0(%rax)
L299:
  cmpb   $0x2a,-0x1(%rsi)
  je     L222
L128:
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <osc_match_single_char@plt>
  test   %eax,%eax
  je     L186
  movzbl 0x0(%rbp),%eax
  and    $0xffffffdf,%eax
  cmp    $0x5d,%al
  jne    L251
L291:
  movzbl -0x1(%rbp),%eax
  sub    $0x1,%rbp
  and    $0xffffffdf,%eax
  cmp    $0x5b,%al
  jne    L291
L251:
  mov    %rbp,%rax
  sub    $0x1,%r12
  sub    $0x1,%rbp
  cmpb   $0x2a,-0x1(%rax)
  jne    L128
L222:
  add    $0x8,%rsp
  mov    $0x1,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L233:
  xor    %eax,%eax
  ret
L147:
  mov    %rdx,%r12
  jmp    L308
```

assistant: ```c
int osc_match_star(const char *pattern, const char *address) {
  const char *address_start = address;
  const char *pattern_start = pattern;
  int num_stars = 0;
  if (*address == '\0') {
    return 0;
  }
  while (*address != '/' && *address != '\0') {
    address++;
  }
  while (*pattern != '/' && *pattern != '\0') {
    if (*pattern == '*') {
      num_stars++;
    }
    pattern++;
  }
  pattern--;
  address--;
  switch (num_stars) {
  case 1: {
    const char *pp = pattern, *aa = address;
    while (*pp != '*') {
      if (!(osc_match_single_char(pp, aa))) {
        return 0;
      }
      if (*pp == ']' || *pp == '}') {
        while (*pp != '[' && *pp != '{') {
          pp--;
        }
      }
      pp--;
      aa--;
    }
  } break;
  case 2: {
    const char *pp = pattern, *aa = address;
    while (*pp != '*') {
      if (!(osc_match_single_char(pp, aa))) {
        return 0;
      }
      if (*pp == ']' || *pp == '}') {
        while (*pp != '[' && *pp != '{') {
          pp--;
        }
      }
      pp--;
      aa--;
    }
    aa++;
    const char *star2 = pp;
    const char *test = aa;
    int i = 0;
    while (test > address_start) {
      pp = star2 - 1;
      aa = test - 1;
      i++;
      while (*pp != '*') {
        if (!osc_match_single_char(pp, aa)) {
          break;
        }
        if (*pp == ']' || *pp == '}') {
          while (*pp != '[' && *pp != '{') {
            pp--;
          }
        }
        pp--;
        aa--;
      }
      if (pp == pattern_start) {
        return 1;
      }
      test--;
    }
    return 0;
  } break;
  default:
    return osc_match_star_r(pattern_start, address_start);
    break;
  }
  return 1;
}
```