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

```asm
<string_has_highlight>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x90,%rsp
  mov    %rdi,-0x88(%rbp)
  mov    %rsi,-0x90(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  cmpq   $0x0,-0x88(%rbp)
  je     L442
  mov    -0x88(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L442
  cmpq   $0x0,-0x90(%rbp)
  je     L442
  mov    -0x90(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L276
L442:
  mov    $0x0,%eax
  jmp    L118
L276:
  mov    -0x88(%rbp),%rax
  mov    %rax,%rdi
  call   <strdup@plt>
  mov    %rax,-0x28(%rbp)
  cmpq   $0x0,-0x28(%rbp)
  jne    L160
  mov    $0x0,%eax
  jmp    L118
L160:
  mov    -0x28(%rbp),%rax
  mov    %rax,%rdi
  call   <string_tolower@plt>
  mov    -0x90(%rbp),%rax
  mov    %rax,%rdi
  call   <strdup@plt>
  mov    %rax,-0x20(%rbp)
  cmpq   $0x0,-0x20(%rbp)
  jne    L158
  mov    -0x28(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    $0x0,%eax
  jmp    L118
L158:
  mov    -0x20(%rbp),%rax
  mov    %rax,%rdi
  call   <string_tolower@plt>
  mov    -0x20(%rbp),%rax
  mov    %rax,-0x48(%rbp)
  movl   $0x0,-0x70(%rbp)
  jmp    L224
L255:
  mov    -0x88(%rbp),%rax
  mov    %rax,-0x30(%rbp)
  movl   $0x0,-0x74(%rbp)
  mov    D14(%rip),%rax
  mov    (%rax),%ecx
  lea    -0x74(%rbp),%rdx
  mov    -0x48(%rbp),%rax
  mov    %ecx,%esi
  mov    %rax,%rdi
  call   <string_regex_flags@plt>
  mov    %rax,-0x48(%rbp)
  mov    -0x48(%rbp),%rax
  mov    $0x2c,%esi
  mov    %rax,%rdi
  call   <strchr@plt>
  mov    %rax,-0x40(%rbp)
  cmpq   $0x0,-0x40(%rbp)
  jne    L321
  mov    -0x48(%rbp),%rax
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <strchr@plt>
  mov    %rax,-0x40(%rbp)
  movl   $0x1,-0x70(%rbp)
L321:
  cmpq   $0x0,-0x40(%rbp)
  jne    L449
  mov    -0x28(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    -0x20(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    $0x0,%eax
  jmp    L118
L449:
  mov    -0x74(%rbp),%edx
  mov    D14(%rip),%rax
  mov    (%rax),%eax
  and    %edx,%eax
  test   %eax,%eax
  je     L187
  mov    -0x48(%rbp),%rax
  mov    %rax,-0x38(%rbp)
  jmp    L290
L19:
  mov    -0x38(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x40,%al
  jle    L298
  mov    -0x38(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x5a,%al
  jg     L298
  mov    -0x38(%rbp),%rax
  movzbl (%rax),%eax
  add    $0x20,%eax
  mov    %eax,%edx
  mov    -0x38(%rbp),%rax
  mov    %dl,(%rax)
L298:
  addq   $0x1,-0x38(%rbp)
L290:
  mov    -0x38(%rbp),%rax
  cmp    -0x40(%rbp),%rax
  jb     L19
  mov    -0x28(%rbp),%rax
  mov    %rax,-0x30(%rbp)
L187:
  mov    -0x40(%rbp),%rax
  sub    -0x48(%rbp),%rax
  mov    %eax,-0x6c(%rbp)
  mov    -0x40(%rbp),%rax
  movb   $0x0,(%rax)
  cmpl   $0x0,-0x6c(%rbp)
  jle    L366
  mov    -0x48(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2a,%al
  sete   %al
  movzbl %al,%eax
  mov    %eax,-0x68(%rbp)
  cmpl   $0x0,-0x68(%rbp)
  je     L147
  addq   $0x1,-0x48(%rbp)
  subl   $0x1,-0x6c(%rbp)
L147:
  mov    -0x40(%rbp),%rax
  sub    $0x1,%rax
  movzbl (%rax),%eax
  cmp    $0x2a,%al
  sete   %al
  movzbl %al,%eax
  mov    %eax,-0x64(%rbp)
  cmpl   $0x0,-0x64(%rbp)
  je     L366
  mov    -0x40(%rbp),%rax
  sub    $0x1,%rax
  movb   $0x0,(%rax)
  subl   $0x1,-0x6c(%rbp)
L366:
  cmpl   $0x0,-0x6c(%rbp)
  jle    L191
  mov    -0x30(%rbp),%rax
  mov    %rax,-0x50(%rbp)
  jmp    L165
L418:
  mov    -0x18(%rbp),%rdx
  mov    -0x30(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <utf8_prev_char@plt>
  mov    %rax,-0x58(%rbp)
  cmpq   $0x0,-0x58(%rbp)
  jne    L196
  mov    -0x18(%rbp),%rax
  sub    $0x1,%rax
  mov    %rax,-0x58(%rbp)
L196:
  mov    -0x6c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x10(%rbp)
  mov    -0x18(%rbp),%rax
  cmp    -0x30(%rbp),%rax
  je     L346
  mov    -0x58(%rbp),%rax
  mov    %rax,%rdi
  call   <string_is_word_char@plt>
  test   %eax,%eax
  jne    L209
L346:
  mov    $0x1,%eax
  jmp    L39
L209:
  mov    $0x0,%eax
L39:
  mov    %eax,-0x60(%rbp)
  mov    -0x10(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L261
  mov    -0x10(%rbp),%rax
  mov    %rax,%rdi
  call   <string_is_word_char@plt>
  test   %eax,%eax
  jne    L407
L261:
  mov    $0x1,%eax
  jmp    L71
L407:
  mov    $0x0,%eax
L71:
  mov    %eax,-0x5c(%rbp)
  cmpl   $0x0,-0x68(%rbp)
  je     L343
  cmpl   $0x0,-0x64(%rbp)
  jne    L226
L343:
  cmpl   $0x0,-0x68(%rbp)
  jne    L170
  cmpl   $0x0,-0x64(%rbp)
  jne    L170
  cmpl   $0x0,-0x60(%rbp)
  je     L170
  cmpl   $0x0,-0x5c(%rbp)
  jne    L226
L170:
  cmpl   $0x0,-0x68(%rbp)
  je     L21
  cmpl   $0x0,-0x5c(%rbp)
  jne    L226
L21:
  cmpl   $0x0,-0x64(%rbp)
  je     L194
  cmpl   $0x0,-0x60(%rbp)
  je     L194
L226:
  mov    -0x28(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    -0x20(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    $0x1,%eax
  jmp    L118
L194:
  mov    -0x10(%rbp),%rax
  mov    %rax,-0x50(%rbp)
L165:
  mov    -0x48(%rbp),%rdx
  mov    -0x50(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strstr@plt>
  mov    %rax,-0x18(%rbp)
  cmpq   $0x0,-0x18(%rbp)
  jne    L418
L191:
  cmpl   $0x0,-0x70(%rbp)
  jne    L224
  mov    -0x40(%rbp),%rax
  add    $0x1,%rax
  mov    %rax,-0x48(%rbp)
L224:
  cmpl   $0x0,-0x70(%rbp)
  je     L255
  mov    -0x28(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    -0x20(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    $0x0,%eax
L118:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L117
  call   <__stack_chk_fail@plt>
L117:
  leave
  ret
```

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