user: What is the c source code of the assembly code below?

```asm
<string_has_highlight>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x58,%rsp
  mov    %rdi,0x18(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x48(%rsp)
  xor    %eax,%eax
  test   %rdi,%rdi
  je     L190
  mov    %rsi,%rbx
  cmpb   $0x0,(%rdi)
  je     L201
  test   %rsi,%rsi
  je     L201
  cmpb   $0x0,(%rsi)
  je     L267
  call   <strdup@plt>
  mov    %rax,%rdi
  mov    %rax,0x38(%rsp)
  test   %rax,%rax
  je     L216
  call   <string_tolower@plt>
  mov    %rbx,%rdi
  call   <strdup@plt>
  mov    %rax,0x30(%rsp)
  test   %rax,%rax
  je     L18
  mov    0x30(%rsp),%rbx
  mov    %rbx,%rdi
  call   <string_tolower@plt>
  mov    %rbx,%rdi
  lea    0x44(%rsp),%rax
  mov    %rax,0x28(%rsp)
  jmp    L317
L18:
  mov    0x38(%rsp),%rdi
  call   <free@plt>
  mov    $0x0,%eax
  jmp    L267
L445:
  mov    $0x0,%esi
  mov    %r13,%rdi
  call   <strchr@plt>
  mov    %rax,%r12
  test   %rax,%rax
  je     L16
  movl   $0x1,0x24(%rsp)
  jmp    L20
L16:
  mov    0x38(%rsp),%rdi
  call   <free@plt>
  mov    0x30(%rsp),%rdi
  call   <free@plt>
  mov    $0x0,%eax
  jmp    L267
L59:
  cmp    %r12,%r13
  jae    L370
  mov    %r13,%rax
  jmp    L426
L88:
  add    $0x1,%rax
  cmp    %r12,%rax
  je     L14
L426:
  movzbl (%rax),%edx
  lea    -0x41(%rdx),%ecx
  cmp    $0x19,%cl
  ja     L88
  add    $0x20,%edx
  mov    %dl,(%rax)
  jmp    L88
L14:
  mov    0x38(%rsp),%r15
  jmp    L257
L370:
  mov    0x38(%rsp),%r15
  jmp    L257
L233:
  add    $0x1,%r13
  lea    -0x1(%rdx),%eax
  movl   $0x0,0x8(%rsp)
  cmpb   $0x2a,-0x1(%r12)
  jne    L121
L374:
  movb   $0x0,-0x1(%r12)
  sub    $0x1,%eax
  movl   $0x1,0x8(%rsp)
L121:
  test   %eax,%eax
  jg     L224
L136:
  cmpl   $0x0,0x24(%rsp)
  jne    L71
  lea    0x1(%r12),%rdi
L317:
  movl   $0x0,0x44(%rsp)
  mov    0x28(%rsp),%rdx
  mov    D18(%rip),%rax
  mov    (%rax),%esi
  call   <string_regex_flags@plt>
  mov    %rax,%r13
  mov    $0x2c,%esi
  mov    %rax,%rdi
  call   <strchr@plt>
  mov    %rax,%r12
  movl   $0x0,0x24(%rsp)
  test   %rax,%rax
  je     L445
L20:
  mov    D18(%rip),%rdx
  mov    0x44(%rsp),%eax
  and    (%rdx),%eax
  mov    0x18(%rsp),%r15
  jne    L59
L257:
  mov    %r12,%rdx
  sub    %r13,%rdx
  mov    %edx,%eax
  movb   $0x0,(%r12)
  test   %edx,%edx
  jle    L136
  movzbl 0x0(%r13),%ecx
  cmp    $0x2a,%cl
  je     L233
  cmpb   $0x2a,-0x1(%r12)
  je     L374
  movl   $0x0,0x8(%rsp)
L224:
  cmp    $0x2a,%cl
  sete   0xf(%rsp)
  sete   %sil
  movzbl %sil,%esi
  mov    %esi,0x20(%rsp)
  mov    %r15,%rbp
  cltq
  mov    %rax,0x10(%rsp)
  jmp    L447
L245:
  mov    %rbp,%rdi
  call   <string_is_word_char@plt>
  test   %eax,%eax
  sete   %al
  movzbl %al,%eax
  jmp    L432
L202:
  test   %eax,%eax
  je     L258
  cmpb   $0x0,0xf(%rsp)
  jne    L179
L258:
  test   %r14d,%r14d
  je     L447
  test   %dl,%dl
  jne    L179
L447:
  mov    %r13,%rsi
  mov    %rbp,%rdi
  call   <strstr@plt>
  mov    %rax,%rbx
  test   %rax,%rax
  je     L136
  mov    %rbx,%rsi
  mov    %r15,%rdi
  call   <utf8_prev_char@plt>
  mov    %rax,%rdi
  lea    -0x1(%rbx),%rax
  test   %rdi,%rdi
  cmove  %rax,%rdi
  mov    0x10(%rsp),%rax
  lea    (%rbx,%rax,1),%rbp
  mov    $0x1,%r14d
  cmp    %rbx,%r15
  je     L199
  call   <string_is_word_char@plt>
  test   %eax,%eax
  sete   %r14b
  movzbl %r14b,%r14d
L199:
  mov    $0x1,%eax
  cmpb   $0x0,0x0(%rbp)
  jne    L245
L432:
  movzbl 0x8(%rsp),%edx
  cmpb   $0x0,0xf(%rsp)
  je     L132
  test   %dl,%dl
  jne    L179
L132:
  mov    0x20(%rsp),%ecx
  or     0x8(%rsp),%ecx
  jne    L202
  test   %r14d,%r14d
  je     L447
  test   %eax,%eax
  je     L447
L179:
  mov    0x38(%rsp),%rdi
  call   <free@plt>
  mov    0x30(%rsp),%rdi
  call   <free@plt>
  mov    $0x1,%eax
  jmp    L267
L190:
  mov    $0x0,%eax
  jmp    L267
L201:
  mov    $0x0,%eax
L267:
  mov    0x48(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L294
  add    $0x58,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L216:
  mov    $0x0,%eax
  jmp    L267
L71:
  mov    0x38(%rsp),%rdi
  call   <free@plt>
  mov    0x30(%rsp),%rdi
  call   <free@plt>
  mov    $0x0,%eax
  jmp    L267
L294:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int string_has_highlight(const char *string, const char *highlight_words) {
  char *msg, *highlight, *match, *match_pre, *match_post, *msg_pos;
  char *pos, *pos_end, *ptr_str, *ptr_string_ref;
  int end, length, startswith, endswith, wildcard_start, wildcard_end, flags;
  if (!string || !string[0] || !highlight_words || !highlight_words[0])
    return 0;
  msg = strdup(string);
  if (!msg)
    return 0;
  string_tolower(msg);
  highlight = strdup(highlight_words);
  if (!highlight) {
    free(msg);
    return 0;
  }
  string_tolower(highlight);
  pos = highlight;
  end = 0;
  while (!end) {
    ptr_string_ref = (char *)string;
    flags = 0;
    pos = (char *)string_regex_flags(pos, REG_ICASE, &flags);
    pos_end = strchr(pos, ',');
    if (!pos_end) {
      pos_end = strchr(pos, '\0');
      end = 1;
    }
    if (!pos_end) {
      free(msg);
      free(highlight);
      return 0;
    }
    if (flags & REG_ICASE) {
      for (ptr_str = pos; ptr_str < pos_end; ptr_str++) {
        if ((ptr_str[0] >= 'A') && (ptr_str[0] <= 'Z'))
          ptr_str[0] += ('a' - 'A');
      }
      ptr_string_ref = msg;
    }
    length = pos_end - pos;
    pos_end[0] = '\0';
    if (length > 0) {
      if ((wildcard_start = (pos[0] == '*'))) {
        pos++;
        length--;
      }
      if ((wildcard_end = (*(pos_end - 1) == '*'))) {
        *(pos_end - 1) = '\0';
        length--;
      }
    }
    if (length > 0) {
      msg_pos = ptr_string_ref;
      while ((match = strstr(msg_pos, pos)) != NULL) {
        match_pre = utf8_prev_char(ptr_string_ref, match);
        if (!match_pre)
          match_pre = match - 1;
        match_post = match + length;
        startswith = ((match == ptr_string_ref) || (!string_is_word_char(match_pre)));
        endswith = ((!match_post[0]) || (!string_is_word_char(match_post)));
        if ((wildcard_start && wildcard_end) || (!wildcard_start && !wildcard_end && startswith && endswith) || (wildcard_start && endswith) || (wildcard_end && startswith)) {
          free(msg);
          free(highlight);
          return 1;
        }
        msg_pos = match_post;
      }
    }
    if (!end)
      pos = pos_end + 1;
  }
  free(msg);
  free(highlight);
  return 0;
}
```