user: 请从给定的汇编指令推导出C源代码：

```asm
<osc_match_star>:
  endbr64
  movzbl (%rsi),%eax
  test   %al,%al
  je     L143
  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    L107
  jmp    L168
  nopl   0x0(%rax)
L144:
  test   %al,%al
  je     L168
L107:
  movzbl 0x1(%rdx),%eax
  add    $0x1,%rdx
  cmp    $0x2f,%al
  jne    L144
L168:
  movzbl (%r14),%eax
  cmp    $0x2f,%al
  je     L55
  test   %al,%al
  je     L55
  mov    %r14,%rbp
  xor    %ecx,%ecx
  jmp    L241
  nopl   0x0(%rax,%rax,1)
L66:
  test   %al,%al
  je     L283
  mov    %rsi,%rbp
L241:
  cmp    $0x2a,%al
  lea    0x1(%rbp),%rsi
  sete   %al
  movzbl %al,%eax
  add    %eax,%ecx
  movzbl 0x1(%rbp),%eax
  cmp    $0x2f,%al
  jne    L66
L283:
  lea    -0x1(%rdx),%r12
  cmp    $0x1,%ecx
  je     L18
  cmp    $0x2,%ecx
  jne    L55
  cmpb   $0x2a,-0x1(%rsi)
  je     L53
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <osc_match_single_char@plt>
  test   %eax,%eax
  je     L36
  nopl   0x0(%rax)
L102:
  movzbl 0x0(%rbp),%eax
  and    $0xffffffdf,%eax
  cmp    $0x5d,%al
  jne    L109
L67:
  movzbl -0x1(%rbp),%eax
  sub    $0x1,%rbp
  and    $0xffffffdf,%eax
  cmp    $0x5b,%al
  jne    L67
L109:
  mov    %rbp,%rdx
  sub    $0x1,%rbp
  lea    -0x1(%r12),%rax
  cmpb   $0x2a,-0x1(%rdx)
  je     L225
  mov    %rax,%r12
  mov    %rbp,%rdi
  mov    %r12,%rsi
  call   <osc_match_single_char@plt>
  test   %eax,%eax
  jne    L102
L36:
  add    $0x8,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nop
L183:
  mov    %rbx,%rax
  sub    $0x1,%r15
  sub    $0x1,%rbx
  cmpb   $0x2a,-0x1(%rax)
  jne    L221
L86:
  cmp    %rbx,%r14
  je     L262
L225:
  cmp    %r13,%r12
  jbe    L36
  sub    $0x1,%r12
  cmpb   $0x2a,-0x1(%rbp)
  lea    -0x1(%rbp),%rbx
  je     L86
  mov    %r12,%r15
L221:
  mov    %r15,%rsi
  mov    %rbx,%rdi
  call   <osc_match_single_char@plt>
  test   %eax,%eax
  je     L86
  movzbl (%rbx),%eax
  and    $0xffffffdf,%eax
  cmp    $0x5d,%al
  jne    L183
L293:
  movzbl -0x1(%rbx),%eax
  sub    $0x1,%rbx
  and    $0xffffffdf,%eax
  cmp    $0x5b,%al
  jne    L293
  jmp    L183
  nopw   0x0(%rax,%rax,1)
L55:
  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)
L18:
  cmpb   $0x2a,-0x1(%rsi)
  je     L262
L128:
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <osc_match_single_char@plt>
  test   %eax,%eax
  je     L36
  movzbl 0x0(%rbp),%eax
  and    $0xffffffdf,%eax
  cmp    $0x5d,%al
  jne    L40
L257:
  movzbl -0x1(%rbp),%eax
  sub    $0x1,%rbp
  and    $0xffffffdf,%eax
  cmp    $0x5b,%al
  jne    L257
L40:
  mov    %rbp,%rax
  sub    $0x1,%r12
  sub    $0x1,%rbp
  cmpb   $0x2a,-0x1(%rax)
  jne    L128
L262:
  add    $0x8,%rsp
  mov    $0x1,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L143:
  xor    %eax,%eax
  ret
L53:
  mov    %rdx,%r12
  jmp    L225
```

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;
}
```