user: 这段汇编代码用C语言表示是什么样的？

```asm
<string_has_highlight>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x48,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x38(%rsp)
  xor    %eax,%eax
  test   %rdi,%rdi
  je     L2
  cmpb   $0x0,(%rdi)
  je     L2
  mov    %rsi,%rbp
  test   %rsi,%rsi
  je     L2
  cmpb   $0x0,(%rsi)
  je     L2
  call   <strdup@plt>
  mov    %rax,%r12
  test   %rax,%rax
  je     L2
  mov    %rbp,%rdi
  call   <strdup@plt>
  mov    %rax,0x20(%rsp)
  test   %rax,%rax
  je     L334
  mov    %rax,%rdi
  lea    0x34(%rsp),%rax
  mov    D2(%rip),%r13
  mov    %rax,0x18(%rsp)
L388:
  mov    0x18(%rsp),%rdx
  mov    0x0(%r13),%esi
  movl   $0x0,0x34(%rsp)
  call   <string_regex_flags@plt>
  mov    $0x2c,%esi
  mov    %rax,%rdi
  mov    %rax,%rbp
  call   <strchr@plt>
  mov    %rax,%rbx
  test   %rax,%rax
  je     L318
  sub    %rbp,%rax
  movb   $0x0,(%rbx)
  movl   $0x0,0x28(%rsp)
  mov    %eax,%edx
  test   %eax,%eax
  jle    L380
L157:
  movzbl 0x0(%rbp),%eax
  movzbl -0x1(%rbx),%ecx
  cmp    $0x2a,%al
  je     L432
  cmp    $0x2a,%cl
  je     L36
  movslq %edx,%rax
  mov    %r12,%r14
  mov    %rax,(%rsp)
  jmp    L378
  nopl   0x0(%rax,%rax,1)
L97:
  call   <string_is_word_char@plt>
  xor    %r15d,%r15d
  test   %eax,%eax
  sete   %r15b
  cmpb   $0x0,(%r14)
  jne    L227
  mov    $0x1,%eax
L209:
  test   %eax,%r15d
  jne    L172
L378:
  mov    0x34(%rsp),%eax
  and    0x0(%r13),%eax
  mov    %rbp,%rsi
  mov    %r14,%rdi
  jne    L397
  call   <strstr@plt>
  mov    %rax,%r15
L424:
  test   %r15,%r15
  je     L3
  mov    %r12,%rdi
  mov    %r15,%rsi
  call   <utf8_prev_char@plt>
  mov    %rax,%rdi
  lea    -0x1(%r15),%rax
  test   %rdi,%rdi
  cmove  %rax,%rdi
  mov    (%rsp),%rax
  lea    (%r15,%rax,1),%r14
  cmp    %r15,%r12
  jne    L97
  cmpb   $0x0,(%r14)
  je     L172
  mov    $0x1,%r15d
L227:
  mov    %r14,%rdi
  call   <string_is_word_char@plt>
  test   %eax,%eax
  sete   %al
  movzbl %al,%eax
  jmp    L209
  nopl   0x0(%rax,%rax,1)
L36:
  sub    $0x1,%edx
  movb   $0x0,-0x1(%rbx)
  test   %edx,%edx
  jg     L194
L3:
  mov    0x28(%rsp),%eax
  test   %eax,%eax
  je     L380
L444:
  mov    %r12,%rdi
  call   <free@plt>
  mov    0x20(%rsp),%rdi
  call   <free@plt>
L2:
  xor    %eax,%eax
L189:
  mov    0x38(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L138
  add    $0x48,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopw   0x0(%rax,%rax,1)
L380:
  lea    0x1(%rbx),%rdi
  jmp    L388
  nopl   0x0(%rax)
L397:
  call   <string_strcasestr@plt>
  mov    %rax,%r15
  jmp    L424
  nopl   (%rax)
L194:
  cmp    $0x2a,%al
  mov    $0x1,%esi
  sete   (%rsp)
  movzbl (%rsp),%ecx
  mov    %esi,0x14(%rsp)
  test   %cl,%cl
  je     L410
  test   %sil,%sil
  je     L410
  mov    0x0(%r13),%eax
  and    0x34(%rsp),%eax
  mov    %edx,(%rsp)
  mov    %rbp,%rsi
  mov    %r12,%rdi
  jne    L221
  call   <strstr@plt>
  mov    (%rsp),%edx
  mov    %rax,%r14
L87:
  mov    %edx,(%rsp)
  test   %r14,%r14
  je     L3
  mov    %r12,%rdi
  mov    %r14,%rsi
  call   <utf8_prev_char@plt>
  movslq (%rsp),%rdx
  mov    %rax,%rdi
  lea    -0x1(%r14),%rax
  test   %rdi,%rdi
  lea    (%r14,%rdx,1),%rbp
  cmove  %rax,%rdi
  cmp    %r14,%r12
  je     L265
  call   <string_is_word_char@plt>
L265:
  cmpb   $0x0,0x0(%rbp)
  je     L172
  mov    %rbp,%rdi
  call   <string_is_word_char@plt>
  nopl   0x0(%rax,%rax,1)
L172:
  mov    %r12,%rdi
  call   <free@plt>
  mov    0x20(%rsp),%rdi
  call   <free@plt>
  mov    $0x1,%eax
  jmp    L189
  nopl   0x0(%rax)
L432:
  add    $0x1,%rbp
  sub    $0x1,%edx
  cmp    $0x2a,%cl
  je     L36
  test   %edx,%edx
  je     L3
  movl   $0x0,0x14(%rsp)
  movb   $0x1,(%rsp)
L410:
  movslq %edx,%rax
  mov    %r12,%r15
  mov    %rax,0x8(%rsp)
  jmp    L301
  nopl   0x0(%rax)
L168:
  call   <strstr@plt>
  mov    %rax,%r14
L457:
  test   %r14,%r14
  je     L3
  mov    %r12,%rdi
  mov    %r14,%rsi
  call   <utf8_prev_char@plt>
  mov    $0x1,%ecx
  mov    %rax,%rdi
  lea    -0x1(%r14),%rax
  test   %rdi,%rdi
  cmove  %rax,%rdi
  mov    0x8(%rsp),%rax
  lea    (%r14,%rax,1),%r15
  cmp    %r12,%r14
  je     L295
  call   <string_is_word_char@plt>
  xor    %ecx,%ecx
  test   %eax,%eax
  sete   %cl
L295:
  cmpb   $0x0,(%r15)
  mov    $0x1,%eax
  jne    L115
L26:
  cmpb   $0x0,(%rsp)
  je     L469
  test   %al,%al
  jne    L172
L469:
  test   %ecx,0x14(%rsp)
  jne    L172
L301:
  mov    0x34(%rsp),%eax
  and    0x0(%r13),%eax
  mov    %rbp,%rsi
  mov    %r15,%rdi
  je     L168
  call   <string_strcasestr@plt>
  mov    %rax,%r14
  jmp    L457
  cs nopw 0x0(%rax,%rax,1)
L318:
  xor    %esi,%esi
  mov    %rbp,%rdi
  call   <strchr@plt>
  mov    %rax,%rbx
  test   %rax,%rax
  je     L444
  sub    %rbp,%rax
  movb   $0x0,(%rbx)
  mov    %eax,%edx
  test   %eax,%eax
  jle    L444
  movl   $0x1,0x28(%rsp)
  jmp    L157
  nopl   0x0(%rax,%rax,1)
L115:
  mov    %r15,%rdi
  mov    %ecx,0x2c(%rsp)
  call   <string_is_word_char@plt>
  mov    0x2c(%rsp),%ecx
  test   %eax,%eax
  sete   %al
  jmp    L26
L221:
  call   <string_strcasestr@plt>
  mov    (%rsp),%edx
  mov    %rax,%r14
  jmp    L87
L138:
  call   <__stack_chk_fail@plt>
L334:
  mov    %r12,%rdi
  call   <free@plt>
  xor    %eax,%eax
  jmp    L189
```

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;
  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;
  highlight = strdup(highlight_words);
  if (!highlight) {
    free(msg);
    return 0;
  }
  pos = highlight;
  end = 0;
  while (!end) {
    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;
    }
    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 = msg;
      while (1) {
        match = (flags & REG_ICASE) ? string_strcasestr(msg_pos, pos) : strstr(msg_pos, pos);
        if (!match)
          break;
        match_pre = utf8_prev_char(msg, match);
        if (!match_pre)
          match_pre = match - 1;
        match_post = match + length;
        startswith = ((match == msg) || (!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;
}
```