user: 下面的汇编指令对应的C源代码是什么:

```asm
<osc_match>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  mov    %rdi,%r13
  mov    %rsi,%r12
  mov    %rdx,%r15
  mov    %rcx,%r14
  call   <strcmp@plt>
  test   %eax,%eax
  je     L15
  movl   $0x0,(%r15)
  movl   $0x0,(%r14)
  movzbl (%r12),%edx
  mov    %r12,%rbp
  mov    %r13,%rbx
  test   %dl,%dl
  jne    L302
L22:
  mov    %rbx,%rax
  sub    %r13,%rax
  mov    %eax,(%r15)
  mov    %rbp,%rax
  sub    %r12,%rax
  mov    %eax,(%r14)
  cmpb   $0x0,0x0(%rbp)
  sete   %al
  movzbl %al,%eax
  mov    %eax,%edx
  or     $0x2,%edx
  cmpb   $0x0,(%rbx)
  cmove  %edx,%eax
L218:
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L15:
  mov    %r13,%rdi
  call   <strlen@plt>
  mov    %eax,(%r15)
  mov    %r12,%rdi
  call   <strlen@plt>
  mov    %eax,(%r14)
  mov    $0x3,%eax
  jmp    L218
L279:
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  call   <osc_match_star@plt>
  test   %eax,%eax
  je     L218
  movzbl (%rbx),%eax
  cmp    $0x2f,%al
  je     L42
  test   %al,%al
  je     L42
L268:
  add    $0x1,%rbx
  movzbl (%rbx),%eax
  cmp    $0x2f,%al
  je     L42
  test   %al,%al
  jne    L268
L42:
  movzbl 0x0(%rbp),%eax
  cmp    $0x2f,%al
  je     L146
  test   %al,%al
  je     L146
L303:
  add    $0x1,%rbp
  movzbl 0x0(%rbp),%eax
  cmp    $0x2f,%al
  je     L146
  test   %al,%al
  jne    L303
  jmp    L146
L186:
  cmp    $0x2f,%al
  je     L7
L220:
  add    $0x1,%rbx
  movzbl (%rbx),%eax
  cmp    $0x2f,%al
  je     L7
  test   %al,%al
  jne    L220
L7:
  movzbl 0x0(%rbp),%eax
  cmp    $0x2f,%al
  je     L146
  test   %al,%al
  je     L146
L236:
  add    $0x1,%rbp
  movzbl 0x0(%rbp),%eax
  cmp    $0x2f,%al
  je     L146
  test   %al,%al
  jne    L236
L146:
  movzbl 0x0(%rbp),%edx
  test   %dl,%dl
  je     L22
L302:
  movzbl (%rbx),%eax
  test   %al,%al
  je     L22
  cmp    $0x2a,%al
  je     L279
  cmp    $0x2a,%dl
  je     L186
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  call   <osc_match_single_char@plt>
  test   %eax,%eax
  je     L218
  movzbl (%rbx),%edx
  cmp    $0x5b,%dl
  je     L123
  cmp    $0x7b,%dl
  je     L235
  add    $0x1,%rbx
  add    $0x1,%rbp
  jmp    L146
L123:
  mov    %rbx,%rax
  add    $0x1,%rbx
  cmpb   $0x5d,(%rbx)
  jne    L123
  lea    0x2(%rax),%rbx
  add    $0x1,%rbp
  jmp    L146
L235:
  mov    %rbx,%rdx
  add    $0x1,%rbx
  cmpb   $0x7d,(%rbx)
  jne    L235
  lea    0x2(%rdx),%rbx
  cltq
  add    %rax,%rbp
  jmp    L146
```

assistant: ```c
int osc_match(const char *pattern, const char *address, int *pattern_offset, int *address_offset) {
  if (!strcmp(pattern, address)) {
    *pattern_offset = strlen(pattern);
    *address_offset = strlen(address);
    return 1 | 2;
  }
  const char *pattern_start;
  const char *address_start;
  pattern_start = pattern;
  address_start = address;
  *pattern_offset = 0;
  *address_offset = 0;
  while (*address != '\0' && *pattern != '\0') {
    if (*pattern == '*') {
      if (!osc_match_star(pattern, address)) {
        return 0;
      }
      while (*pattern != '/' && *pattern != '\0') {
        pattern++;
      }
      while (*address != '/' && *address != '\0') {
        address++;
      }
    } else if (*address == '*') {
      while (*pattern != '/' && *pattern != '\0') {
        pattern++;
      }
      while (*address != '/' && *address != '\0') {
        address++;
      }
    } else {
      int n = 0;
      if (!(n = osc_match_single_char(pattern, address))) {
        return 0;
      }
      if (*pattern == '[') {
        while (*pattern != ']') {
          pattern++;
        }
        pattern++;
        address++;
      } else if (*pattern == '{') {
        while (*pattern != '}') {
          pattern++;
        }
        pattern++;
        address += n;
      } else {
        pattern++;
        address++;
      }
    }
  }
  *pattern_offset = pattern - pattern_start;
  *address_offset = address - address_start;
  int r = 0;
  if (*address == '\0') {
    r |= 1;
  }
  if (*pattern == '\0') {
    r |= 2;
  }
  return r;
}
```