user: What would the C source look like for the assembly code provided here:

```asm
<osc_match_star>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  movzbl (%rsi),%eax
  mov    $0x0,%ebx
  test   %al,%al
  je     L193
  mov    %rdi,%r15
  mov    %rsi,%r14
  cmp    $0x2f,%al
  je     L78
  mov    %rsi,%r12
L40:
  add    $0x1,%r12
  movzbl (%r12),%eax
  cmp    $0x2f,%al
  je     L376
  test   %al,%al
  jne    L40
L376:
  movzbl (%r15),%eax
  cmp    $0x2f,%al
  je     L41
  test   %al,%al
  je     L41
  mov    %r15,%rbp
  mov    $0x0,%ebx
  jmp    L202
L78:
  mov    %rsi,%r12
  jmp    L376
L150:
  mov    %rdx,%rbp
L202:
  cmp    $0x2a,%al
  sete   %al
  movzbl %al,%eax
  add    %eax,%ebx
  lea    0x1(%rbp),%rdx
  movzbl 0x1(%rbp),%eax
  cmp    $0x2f,%al
  je     L126
  test   %al,%al
  jne    L150
L126:
  sub    $0x1,%r12
  cmp    $0x1,%ebx
  je     L154
  cmp    $0x2,%ebx
  jne    L41
  cmpb   $0x2a,-0x1(%rdx)
  jne    L257
L333:
  add    $0x1,%r12
  jmp    L48
L154:
  cmpb   $0x2a,-0x1(%rdx)
  jne    L249
  jmp    L193
L268:
  lea    -0x1(%rdx),%rbp
  sub    $0x1,%r12
  cmpb   $0x2a,-0x1(%rdx)
  je     L193
L249:
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <osc_match_single_char@plt>
  test   %eax,%eax
  je     L37
  movzbl 0x0(%rbp),%eax
  and    $0xffffffdf,%eax
  mov    %rbp,%rdx
  cmp    $0x5d,%al
  jne    L268
L156:
  sub    $0x1,%rbp
  movzbl 0x0(%rbp),%eax
  and    $0xffffffdf,%eax
  cmp    $0x5b,%al
  jne    L156
  mov    %rbp,%rdx
  jmp    L268
L16:
  lea    -0x1(%rdx),%rbp
  sub    $0x1,%r12
  cmpb   $0x2a,-0x1(%rdx)
  je     L333
L257:
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <osc_match_single_char@plt>
  mov    %eax,%ebx
  test   %eax,%eax
  je     L193
  movzbl 0x0(%rbp),%eax
  and    $0xffffffdf,%eax
  mov    %rbp,%rdx
  cmp    $0x5d,%al
  jne    L16
L189:
  sub    $0x1,%rbp
  movzbl 0x0(%rbp),%eax
  and    $0xffffffdf,%eax
  cmp    $0x5b,%al
  jne    L189
  mov    %rbp,%rdx
  jmp    L16
L261:
  lea    -0x1(%rdx),%rbx
  sub    $0x1,%r13
  cmpb   $0x2a,-0x1(%rdx)
  je     L238
L304:
  mov    %r13,%rsi
  mov    %rbx,%rdi
  call   <osc_match_single_char@plt>
  test   %eax,%eax
  je     L238
  movzbl (%rbx),%eax
  and    $0xffffffdf,%eax
  mov    %rbx,%rdx
  cmp    $0x5d,%al
  jne    L261
L128:
  sub    $0x1,%rbx
  movzbl (%rbx),%eax
  and    $0xffffffdf,%eax
  cmp    $0x5b,%al
  jne    L128
  mov    %rbx,%rdx
  jmp    L261
L238:
  cmp    %rbx,%r15
  je     L210
L48:
  cmp    %r14,%r12
  jbe    L308
  lea    -0x1(%rbp),%rbx
  sub    $0x1,%r12
  cmpb   $0x2a,-0x1(%rbp)
  je     L238
  mov    %r12,%r13
  jmp    L304
L308:
  mov    $0x0,%ebx
  jmp    L193
L41:
  mov    %r14,%rsi
  mov    %r15,%rdi
  call   <osc_match_star_r@plt>
  mov    %eax,%ebx
L193:
  mov    %ebx,%eax
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L37:
  mov    %eax,%ebx
  jmp    L193
L210:
  mov    $0x1,%ebx
  jmp    L193
```

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