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

```asm
<osc_match_star>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x60,%rsp
  mov    %rdi,-0x58(%rbp)
  mov    %rsi,-0x60(%rbp)
  mov    -0x60(%rbp),%rax
  mov    %rax,-0x18(%rbp)
  mov    -0x58(%rbp),%rax
  mov    %rax,-0x10(%rbp)
  movl   $0x0,-0x48(%rbp)
  mov    -0x60(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L169
  mov    $0x0,%eax
  jmp    L403
L171:
  addq   $0x1,-0x60(%rbp)
L169:
  mov    -0x60(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2f,%al
  je     L328
  mov    -0x60(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L171
  jmp    L328
L230:
  mov    -0x58(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2a,%al
  jne    L332
  addl   $0x1,-0x48(%rbp)
L332:
  addq   $0x1,-0x58(%rbp)
L328:
  mov    -0x58(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2f,%al
  je     L108
  mov    -0x58(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L230
L108:
  subq   $0x1,-0x58(%rbp)
  subq   $0x1,-0x60(%rbp)
  cmpl   $0x1,-0x48(%rbp)
  je     L280
  cmpl   $0x2,-0x48(%rbp)
  je     L293
  jmp    L163
L280:
  mov    -0x58(%rbp),%rax
  mov    %rax,-0x40(%rbp)
  mov    -0x60(%rbp),%rax
  mov    %rax,-0x38(%rbp)
  jmp    L371
L77:
  mov    -0x38(%rbp),%rdx
  mov    -0x40(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <osc_match_single_char@plt>
  test   %eax,%eax
  jne    L61
  mov    $0x0,%eax
  jmp    L403
L61:
  mov    -0x40(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x5d,%al
  je     L133
  mov    -0x40(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x7d,%al
  jne    L34
  jmp    L133
L242:
  subq   $0x1,-0x40(%rbp)
L133:
  mov    -0x40(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x5b,%al
  je     L34
  mov    -0x40(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x7b,%al
  jne    L242
L34:
  subq   $0x1,-0x40(%rbp)
  subq   $0x1,-0x38(%rbp)
L371:
  mov    -0x40(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2a,%al
  jne    L77
  jmp    L420
L293:
  mov    -0x58(%rbp),%rax
  mov    %rax,-0x30(%rbp)
  mov    -0x60(%rbp),%rax
  mov    %rax,-0x28(%rbp)
  jmp    L447
L58:
  mov    -0x28(%rbp),%rdx
  mov    -0x30(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <osc_match_single_char@plt>
  test   %eax,%eax
  jne    L270
  mov    $0x0,%eax
  jmp    L403
L270:
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x5d,%al
  je     L410
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x7d,%al
  jne    L314
  jmp    L410
L361:
  subq   $0x1,-0x30(%rbp)
L410:
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x5b,%al
  je     L314
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x7b,%al
  jne    L361
L314:
  subq   $0x1,-0x30(%rbp)
  subq   $0x1,-0x28(%rbp)
L447:
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2a,%al
  jne    L58
  addq   $0x1,-0x28(%rbp)
  mov    -0x30(%rbp),%rax
  mov    %rax,-0x8(%rbp)
  mov    -0x28(%rbp),%rax
  mov    %rax,-0x20(%rbp)
  movl   $0x0,-0x44(%rbp)
  jmp    L333
L63:
  mov    -0x8(%rbp),%rax
  sub    $0x1,%rax
  mov    %rax,-0x30(%rbp)
  mov    -0x20(%rbp),%rax
  sub    $0x1,%rax
  mov    %rax,-0x28(%rbp)
  addl   $0x1,-0x44(%rbp)
  jmp    L127
L413:
  mov    -0x28(%rbp),%rdx
  mov    -0x30(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <osc_match_single_char@plt>
  test   %eax,%eax
  je     L322
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x5d,%al
  je     L241
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x7d,%al
  jne    L290
  jmp    L241
L430:
  subq   $0x1,-0x30(%rbp)
L241:
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x5b,%al
  je     L290
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x7b,%al
  jne    L430
L290:
  subq   $0x1,-0x30(%rbp)
  subq   $0x1,-0x28(%rbp)
L127:
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2a,%al
  jne    L413
  jmp    L251
L322:
  nop
L251:
  mov    -0x30(%rbp),%rax
  cmp    -0x10(%rbp),%rax
  jne    L338
  mov    $0x1,%eax
  jmp    L403
L338:
  subq   $0x1,-0x20(%rbp)
L333:
  mov    -0x20(%rbp),%rax
  cmp    -0x18(%rbp),%rax
  ja     L63
  mov    $0x0,%eax
  jmp    L403
L163:
  mov    -0x18(%rbp),%rdx
  mov    -0x10(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <osc_match_star_r@plt>
  jmp    L403
L420:
  mov    $0x1,%eax
L403:
  leave
  ret
```

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