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

```asm
<stripped_core>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    %rdx,(%rsp)
  mov    %rcx,0x8(%rsp)
  mov    %r8d,%r15d
  cmp    %rsi,%rdi
  jae    L354
  mov    %rdi,%rbp
  mov    %rsi,%r12
  mov    $0x0,%eax
  mov    $0x0,%ecx
  mov    $0x0,%esi
  mov    $0x0,%r13d
  mov    $0x0,%r14d
  mov    $0x1,%edi
  mov    %r8d,%edx
  shr    $0x5,%edx
  xor    $0x1,%edx
  and    $0x1,%edx
  mov    %edx,0x14(%rsp)
  jmp    L13
L394:
  cmp    $0x22,%bl
  je     L411
L505:
  add    $0x1,%rbp
  cmp    %rbp,%r12
  jbe    L256
L13:
  movzbl 0x0(%rbp),%ebx
  test   %eax,%eax
  je     L476
  cmp    $0x27,%bl
  je     L411
  cmp    $0x3e,%bl
  jne    L394
  test   %r13b,%r13b
  setne  %al
  movzbl %al,%eax
  jmp    L505
L411:
  test   %r13b,%r13b
  je     L469
  movzbl %bl,%ebx
  movsbl %r13b,%edx
  cmp    %edx,%ebx
  mov    $0x0,%edx
  cmove  %edx,%r13d
  jmp    L505
L476:
  test   %r14d,%r14d
  je     L340
  cmp    $0x27,%bl
  je     L70
  cmp    $0x7d,%bl
  je     L492
  cmp    $0x22,%bl
  jne    L505
L70:
  test   %r13b,%r13b
  je     L447
  movzbl %bl,%ebx
  movsbl %r13b,%edx
  cmp    %edx,%ebx
  mov    $0x0,%edx
  cmove  %edx,%r13d
  jmp    L505
L492:
  test   %r13b,%r13b
  jne    L505
  lea    0x1(%rbp),%rdx
  cmp    %r12,%rdx
  jae    L256
  cmpb   $0x3b,0x1(%rbp)
  je     L17
  mov    %rdx,%rbp
  mov    %eax,%r14d
  jmp    L13
L340:
  cmp    $0x3c,%bl
  je     L442
  cmp    $0x26,%bl
  je     L47
  cmp    $0x6,%bl
  ja     L390
  test   $0x1,%r15b
  jne    L227
L9:
  test   %edi,%edi
  je     L123
  test   $0x4,%r15b
  cmove  %r14d,%esi
L217:
  mov    (%rsp),%rax
  mov    (%rax),%rdi
  movslq %esi,%rax
  mov    %rax,0x18(%rsp)
  add    %rdi,%rax
  cmp    %rax,0x8(%rsp)
  jns    L125
L410:
  mov    (%rsp),%rax
  mov    0x18(%rsp),%rdx
  add    (%rax),%rdx
  mov    %rdx,(%rax)
  lea    0x1(%rdx),%rax
  cmp    %rax,0x8(%rsp)
  js     L336
  mov    %bl,(%rdx)
L336:
  mov    (%rsp),%rax
  addq   $0x1,(%rax)
  mov    %r14d,%eax
  mov    %r14d,%ecx
  mov    %r14d,%esi
  mov    %r14d,%edi
  jmp    L505
L47:
  lea    0x1(%rbp),%rdx
  cmp    %r12,%rdx
  jae    L9
  cmpb   $0x7b,0x1(%rbp)
  jne    L9
  mov    %r14d,%eax
  mov    %rdx,%rbp
  mov    $0x1,%ecx
  mov    $0x1,%r14d
  jmp    L505
L390:
  test   %bl,%bl
  js     L248
L39:
  cmp    $0x22,%bl
  je     L120
  cmp    $0x27,%bl
  je     L48
  cmp    $0x5c,%bl
  je     L245
  cmp    $0x3e,%bl
  jne    L472
  mov    %r14d,%eax
  mov    $0x1,%ecx
  jmp    L505
L248:
  test   $0x2,%r15b
  je     L39
  mov    %r14d,%eax
  mov    $0x1,%ecx
  jmp    L505
L120:
  test   $0x8,%r15b
  jne    L9
  mov    %r14d,%eax
  mov    $0x1,%ecx
  jmp    L505
L48:
  test   $0x8,%r15b
  jne    L9
  mov    %r14d,%eax
  mov    $0x1,%ecx
  jmp    L505
L245:
  test   $0x10,%r15b
  jne    L9
  mov    %r14d,%eax
  mov    $0x1,%ecx
  jmp    L505
L472:
  cmp    $0x20,%bl
  jne    L9
  add    $0x1,%esi
  mov    %r14d,%eax
  jmp    L505
L123:
  test   %esi,%esi
  jne    L217
  test   %ecx,%ecx
  cmovne 0x14(%rsp),%esi
  jmp    L217
L125:
  mov    %esi,%edx
  mov    $0x20,%esi
  call   <memset@plt>
  jmp    L410
L469:
  mov    %ebx,%r13d
  jmp    L505
L17:
  mov    %eax,%r14d
  mov    %rdx,%rbp
  jmp    L505
L447:
  mov    %ebx,%r13d
  jmp    L505
L442:
  mov    $0x1,%eax
  mov    $0x1,%ecx
  jmp    L505
L227:
  mov    %r14d,%eax
  mov    $0x1,%ecx
  jmp    L505
L354:
  mov    $0x0,%esi
L256:
  test   $0x4,%r15b
  je     L478
  mov    (%rsp),%rax
  mov    (%rax),%rdi
  movslq %esi,%rbx
  lea    (%rdi,%rbx,1),%rax
  cmp    %rax,0x8(%rsp)
  jns    L577
L375:
  mov    (%rsp),%rax
  add    %rbx,(%rax)
L478:
  mov    $0x0,%eax
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L577:
  mov    %esi,%edx
  mov    $0x20,%esi
  call   <memset@plt>
  jmp    L375
```

assistant: ```c
int stripped_core(const char *r, const char *in_end, char **w, const char *out_end, unsigned int flags) {
  int leading = 1;
  int in_js_entity = 0;
  char in_quote_char = '\0';
  int space = 0;
  int stripped = 0;
  int in_tag = 0;
  for (; r < in_end; r++) {
    unsigned char c = *r;
    if (in_tag) {
      switch (c) {
      case '>':
        if (!in_quote_char) {
          in_tag = 0;
        }
        break;
      case '"':
      case '\'':
        if (!in_quote_char) {
          in_quote_char = c;
        } else if (in_quote_char == c) {
          in_quote_char = '\0';
        }
        break;
      default:
        break;
      }
    } else if (in_js_entity) {
      switch (c) {
      case '}':
        if (!in_quote_char) {
          in_js_entity = 0;
          if (r + 1 < in_end && *(r + 1) == ';') {
            r++;
          }
        }
        break;
      case '"':
      case '\'':
        if (!in_quote_char) {
          in_quote_char = c;
        } else if (in_quote_char == c) {
          in_quote_char = '\0';
        }
        break;
      default:
        break;
      }
    } else {
      if (c == '<') {
        in_tag = 1;
        stripped = 1;
      } else if (c == '&' && r + 1 < in_end && *(r + 1) == '{') {
        in_js_entity = 1;
        stripped = 1;
        r++;
      } else if ((c < 0x07 && (flags & 0x1)) || (c >= 0x80 && (flags & 0x2)) || (c == '"' && !(flags & 0x8)) || (c == '\'' && !(flags & 0x8)) || (c == '\\' && !(flags & 0x10)) || c == '>') {
        stripped = 1;
      } else if (c == ' ') {
        space++;
      } else {
        if (leading) {
          leading = 0;
          stripped = 0;
          if (!(flags & 0x4)) {
            space = 0;
          }
        }
        if (!space && stripped && !(flags & 0x20)) {
          space = 1;
        }
        stripped = 0;
        do {
          if (((((out_end)) - ((*(w)) + ((space)))) >= 0))
            memset(*(w), ' ', (space));
          *(w) += (space);
          (space) = 0;
        } while (0);
        do {
          if (((((out_end)) - ((*(w)) + (1))) >= 0))
            **(w) = (c);
          (*(w))++;
        } while (0);
      }
    }
  }
  if (flags & 0x4)
    do {
      if (((((out_end)) - ((*(w)) + ((space)))) >= 0))
        memset(*(w), ' ', (space));
      *(w) += (space);
      (space) = 0;
    } while (0);
  return 0;
}
```