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

```asm
<string_match>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    %edx,0xc(%rsp)
  test   %rdi,%rdi
  je     L143
  mov    %rsi,%rbx
  test   %rsi,%rsi
  je     L143
  movzbl (%rsi),%eax
  test   %al,%al
  je     L143
  mov    %rdi,%r14
  mov    %rdi,%r12
  jmp    L19
  xchg   %ax,%ax
L62:
  mov    0xc(%rsp),%edx
  mov    %rax,%rsi
  mov    %r12,%rdi
  test   %edx,%edx
  je     L147
  call   <strstr@plt>
L12:
  test   %rax,%rax
  je     L185
  movslq %r15d,%rcx
  mov    %rbp,%rdi
  lea    (%rax,%rcx,1),%r12
  call   <free@plt>
  movzbl (%rbx),%eax
  test   %al,%al
  je     L110
L19:
  mov    %rbx,%rbp
  xor    %r13d,%r13d
  cmp    $0x2a,%al
  je     L103
L104:
  cmpb   $0x0,(%r14)
  je     L143
  mov    $0x2a,%esi
  mov    %rbp,%rdi
  call   <strchr@plt>
  mov    %rax,%rbx
  test   %rax,%rax
  je     L58
  mov    %eax,%r15d
  sub    %ebp,%r15d
L121:
  mov    %rbp,%rdi
  mov    %r15d,%esi
  call   <string_strndup@plt>
  mov    %rax,%rbp
  test   %rax,%rax
  je     L143
  test   %r13d,%r13d
  jne    L62
  mov    0xc(%rsp),%eax
  test   %eax,%eax
  jne    L167
  mov    %rbp,%rdi
  call   <utf8_strlen@plt>
  mov    %rbp,%rsi
  mov    %r12,%rdi
  mov    %eax,%edx
  call   <string_strncasecmp@plt>
  test   %rax,%rax
  jne    L129
L224:
  movslq %r15d,%rcx
  mov    %rbp,%rdi
  add    %rcx,%r12
  call   <free@plt>
  movzbl (%rbx),%eax
  test   %al,%al
  jne    L19
L110:
  xor    %r13d,%r13d
  cmpb   $0x0,(%r12)
  sete   %r13b
  jmp    L184
L185:
  mov    %rbp,%rdi
  call   <free@plt>
  cs nopw 0x0(%rax,%rax,1)
L143:
  xor    %r13d,%r13d
L184:
  add    $0x18,%rsp
  mov    %r13d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   (%rax)
L58:
  mov    %rbp,%rdi
  call   <strlen@plt>
  movslq %eax,%rbx
  mov    %rbx,%r15
  add    %rbp,%rbx
  jmp    L121
  xchg   %ax,%ax
L103:
  movzbl 0x1(%rbx),%eax
  add    $0x1,%rbp
  cmp    $0x2a,%al
  jne    L70
  nopl   0x0(%rax)
L125:
  movzbl 0x1(%rbp),%eax
  add    $0x1,%rbp
  cmp    $0x2a,%al
  je     L125
L70:
  mov    $0x1,%r13d
  test   %al,%al
  jne    L104
  jmp    L184
  nopl   0x0(%rax)
L167:
  mov    %r15d,%edx
  mov    %rbp,%rsi
  mov    %r12,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L224
L129:
  mov    %rbp,%rdi
  call   <free@plt>
  jmp    L184
  nopl   0x0(%rax)
L147:
  call   <string_strcasestr@plt>
  jmp    L12
```

assistant: ```c
int string_match(const char *string, const char *mask, int case_sensitive) {
  const char *ptr_string, *ptr_mask, *pos_word, *pos_end;
  char *word;
  int wildcard, length_word;
  if (!string || !mask || !mask[0])
    return 0;
  ptr_string = string;
  ptr_mask = mask;
  while (ptr_mask[0]) {
    wildcard = 0;
    if (ptr_mask[0] == '*') {
      wildcard = 1;
      ptr_mask++;
      while (ptr_mask[0] == '*') {
        ptr_mask++;
      }
      if (!ptr_mask[0])
        return 1;
    }
    if (!string[0])
      return 0;
    pos_end = strchr(ptr_mask, '*');
    if (pos_end) {
      length_word = pos_end - ptr_mask;
    } else {
      length_word = strlen(ptr_mask);
      pos_end = ptr_mask + length_word;
    }
    word = string_strndup(ptr_mask, length_word);
    if (!word)
      return 0;
    if (wildcard) {
      pos_word = (case_sensitive) ? strstr(ptr_string, word) : string_strcasestr(ptr_string, word);
      if (!pos_word) {
        free(word);
        return 0;
      }
      ptr_string = pos_word + length_word;
    } else {
      if ((case_sensitive && (strncmp(ptr_string, word, length_word) != 0)) || (!case_sensitive && (string_strncasecmp(ptr_string, word, utf8_strlen(word)) != 0))) {
        free(word);
        return 0;
      }
      ptr_string += length_word;
    }
    free(word);
    ptr_mask = pos_end;
  }
  if (!ptr_string[0] && !ptr_mask[0])
    return 1;
  return 0;
}
```