user: What would the C source look like for the assembly code provided here?

```asm
<stripped_core>:
  endbr64
  push   %r15
  mov    %rdx,%r9
  mov    %rcx,%r10
  push   %r14
  mov    %r8d,%r14d
  and    $0x4,%r8d
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x38,%rsp
  cmp    %rsi,%rdi
  jae    L463
  mov    %r14d,%r15d
  mov    %rdi,%rax
  mov    %rsi,%r12
  xor    %edx,%edx
  shr    $0x5,%r15d
  xor    %esi,%esi
  xor    %edi,%edi
  xor    %r13d,%r13d
  xor    $0x1,%r15d
  xor    %ecx,%ecx
  mov    $0x1,%r11d
  mov    %r15d,%ebx
  and    $0x1,%r15d
  and    $0x1,%ebx
  mov    %bl,0x8(%rsp)
  jmp    L18
  nopw   0x0(%rax,%rax,1)
L138:
  cmp    $0x27,%bl
  je     L331
  cmp    $0x3e,%bl
  je     L164
L47:
  cmp    $0x22,%bl
  je     L331
L244:
  cmp    %rbp,%r12
  jbe    L195
L6:
  mov    %rbp,%rax
L18:
  movzbl (%rax),%ebx
  lea    0x1(%rax),%rbp
  test   %edx,%edx
  jne    L138
  test   %ecx,%ecx
  je     L40
  cmp    $0x27,%bl
  je     L331
  cmp    $0x7d,%bl
  jne    L47
  test   %r13b,%r13b
  jne    L244
  cmp    %rbp,%r12
  jbe    L195
  xor    %ecx,%ecx
  cmpb   $0x3b,0x1(%rax)
  jne    L6
  lea    0x2(%rax),%rbp
  jmp    L244
  nopl   0x0(%rax)
L331:
  test   %r13b,%r13b
  je     L52
  movsbl %r13b,%eax
  cmp    %eax,%ebx
  mov    $0x0,%eax
  cmove  %eax,%r13d
  cmp    %rbp,%r12
  ja     L6
  nopl   (%rax)
L195:
  test   %r8d,%r8d
  je     L42
  mov    (%r9),%r8
  movslq %edi,%rbx
  lea    (%r8,%rbx,1),%rax
  cmp    %rax,%r10
  jns    L424
L373:
  mov    %rax,(%r9)
L42:
  add    $0x38,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L40:
  cmp    $0x3c,%bl
  je     L316
  cmp    $0x26,%bl
  je     L355
  cmp    $0x6,%bl
  ja     L235
  test   $0x1,%r14b
  je     L274
L127:
  mov    $0x1,%esi
  jmp    L244
  nopl   0x0(%rax,%rax,1)
L164:
  xor    %edx,%edx
  test   %r13b,%r13b
  setne  %dl
  jmp    L244
  nopl   (%rax)
L52:
  mov    %ebx,%r13d
  jmp    L244
L316:
  mov    $0x1,%edx
  mov    $0x1,%esi
  jmp    L244
  nop
L235:
  test   %bl,%bl
  jns    L427
  test   $0x2,%r14b
  jne    L127
L427:
  cmp    $0x22,%bl
  je     L243
  cmp    $0x27,%bl
  je     L243
  cmp    $0x5c,%bl
  je     L291
  cmp    $0x3e,%bl
  jne    L303
L313:
  xor    %edx,%edx
L476:
  mov    $0x1,%esi
  jmp    L244
  nopw   0x0(%rax,%rax,1)
L243:
  test   $0x8,%r14b
  je     L313
L274:
  test   %r11d,%r11d
  jne    L381
  test   %edi,%edi
  jne    L481
  test   %esi,%esi
  je     L481
  movzbl 0x8(%rsp),%edi
  mov    %r15,%r11
L267:
  mov    (%r9),%rax
  mov    %r11,0x10(%rsp)
  lea    (%rax,%r11,1),%rdx
  cmp    %rdx,%r10
  js     L80
  mov    %edi,%edx
  mov    $0x20,%esi
  mov    %rax,%rdi
  mov    %r10,0x28(%rsp)
  mov    %r9,0x20(%rsp)
  mov    %r8d,0x1c(%rsp)
  mov    %ecx,0x18(%rsp)
  call   <memset@plt>
  mov    0x20(%rsp),%r9
  mov    0x28(%rsp),%r10
  mov    0x1c(%rsp),%r8d
  mov    0x18(%rsp),%ecx
  mov    0x10(%rsp),%rdx
  add    (%r9),%rdx
L80:
  lea    0x1(%rdx),%rax
  mov    %rdx,(%r9)
  cmp    %rax,%r10
  js     L174
  mov    %bl,(%rdx)
  mov    (%r9),%rax
  add    $0x1,%rax
L174:
  mov    %rax,(%r9)
  xor    %edx,%edx
  xor    %esi,%esi
  xor    %edi,%edi
  xor    %r11d,%r11d
  jmp    L244
  nopl   0x0(%rax,%rax,1)
L424:
  mov    %edi,%edx
  mov    $0x20,%esi
  mov    %r8,%rdi
  mov    %r9,0x8(%rsp)
  call   <memset@plt>
  mov    0x8(%rsp),%r9
  mov    %rbx,%rax
  add    (%r9),%rax
  jmp    L373
  nopl   0x0(%rax)
L355:
  cmp    %rbp,%r12
  jbe    L274
  cmpb   $0x7b,0x1(%rax)
  jne    L274
  lea    0x2(%rax),%rbp
  mov    $0x1,%esi
  mov    $0x1,%ecx
  jmp    L244
  cs nopw 0x0(%rax,%rax,1)
L303:
  cmp    $0x20,%bl
  jne    L274
  add    $0x1,%edi
  xor    %edx,%edx
  jmp    L244
  nopl   0x0(%rax,%rax,1)
L381:
  test   %r8d,%r8d
  jne    L481
  xor    %edi,%edi
  xor    %r11d,%r11d
  jmp    L267
  nopw   0x0(%rax,%rax,1)
L291:
  test   $0x10,%r14b
  jne    L274
  xor    %edx,%edx
  jmp    L476
  nopl   0x0(%rax)
L463:
  xor    %edi,%edi
  jmp    L195
L481:
  movslq %edi,%r11
  jmp    L267
```

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