user: Demonstrate the C code that generates the assembly output below:

```asm
<lms_strstrip>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    (%rsi),%ebp
  test   %ebp,%ebp
  je     L236
  cmpb   $0x0,(%rdi)
  mov    %rdi,%r12
  mov    %rsi,%r13
  je     L262
  movslq %ebp,%rax
  lea    -0x1(%rdi,%rax,1),%rbx
  test   %ebp,%ebp
  jle    L219
  nopl   (%rax)
L6:
  movsbl (%rbx),%edi
  call   <isspace@plt>
  test   %rax,%rax
  jne    L96
  cmpb   $0x0,(%rbx)
  jne    L10
L96:
  movb   $0x0,(%rbx)
  sub    $0x1,%rbx
  sub    $0x1,%ebp
  jne    L6
L262:
  movl   $0x0,0x0(%r13)
L236:
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
  nop
L10:
  test   %ebp,%ebp
  jle    L219
  mov    %r12,%rbx
  xor    %r14d,%r14d
  jmp    L278
L184:
  add    $0x1,%r14d
  add    $0x1,%rbx
  cmp    %r14d,%ebp
  je     L120
L278:
  movsbl (%rbx),%edi
  call   <isspace@plt>
  test   %rax,%rax
  jne    L184
  sub    %r14d,%ebp
  je     L120
  mov    %ebp,0x0(%r13)
  mov    %ebp,%edi
  cmp    %rbx,%r12
  jae    L236
  test   %ebp,%ebp
  js     L236
  lea    0x1(%rbx),%rdx
  mov    %r12,%rax
  sub    %rdx,%rax
  cmp    $0xe,%rax
  jbe    L13
  cmp    $0x6,%ebp
  jbe    L13
  lea    0x1(%rbp),%ecx
  cmp    $0xe,%ebp
  jbe    L127
  mov    %ecx,%edx
  xor    %eax,%eax
  shr    $0x4,%edx
  shl    $0x4,%rdx
  nopw   0x0(%rax,%rax,1)
L237:
  movdqu (%rbx,%rax,1),%xmm0
  movups %xmm0,(%r12,%rax,1)
  add    $0x10,%rax
  cmp    %rdx,%rax
  jne    L237
  mov    %ecx,%r8d
  and    $0xfffffff0,%r8d
  mov    %r8d,%esi
  sub    %r8d,%ebp
  lea    (%r12,%rsi,1),%rax
  lea    (%rbx,%rsi,1),%rdx
  cmp    %r8d,%ecx
  je     L236
  sub    %r8d,%edi
  lea    0x1(%rdi),%ecx
  cmp    $0x6,%edi
  jbe    L188
L197:
  mov    (%rbx,%rsi,1),%rdi
  mov    %rdi,(%r12,%rsi,1)
  mov    %ecx,%esi
  and    $0xfffffff8,%esi
  mov    %esi,%edi
  sub    %esi,%ebp
  add    %rdi,%rax
  add    %rdi,%rdx
  cmp    %esi,%ecx
  je     L236
L188:
  movzbl (%rdx),%ecx
  mov    %cl,(%rax)
  test   %ebp,%ebp
  je     L236
  movzbl 0x1(%rdx),%ecx
  mov    %cl,0x1(%rax)
  cmp    $0x1,%ebp
  je     L236
  movzbl 0x2(%rdx),%ecx
  mov    %cl,0x2(%rax)
  cmp    $0x2,%ebp
  je     L236
  movzbl 0x3(%rdx),%ecx
  mov    %cl,0x3(%rax)
  cmp    $0x3,%ebp
  je     L236
  movzbl 0x4(%rdx),%ecx
  mov    %cl,0x4(%rax)
  cmp    $0x4,%ebp
  je     L236
  movzbl 0x5(%rdx),%ecx
  mov    %cl,0x5(%rax)
  cmp    $0x5,%ebp
  je     L236
  movzbl 0x6(%rdx),%edx
  mov    %dl,0x6(%rax)
  jmp    L236
  nopl   0x0(%rax)
L120:
  movb   $0x0,(%r12)
  jmp    L262
L13:
  mov    %ebp,%ebp
  xor    %eax,%eax
  cs nopw 0x0(%rax,%rax,1)
L248:
  movzbl (%rbx,%rax,1),%edx
  mov    %dl,(%r12,%rax,1)
  mov    %rax,%rdx
  add    $0x1,%rax
  cmp    %rbp,%rdx
  jne    L248
  jmp    L236
L219:
  mov    %ebp,0x0(%r13)
  jmp    L236
L127:
  mov    %rbx,%rdx
  mov    %r12,%rax
  xor    %esi,%esi
  jmp    L197
```

assistant: ```c
void lms_strstrip(char *str, unsigned int *p_len) {
  int i, len;
  char *p;
  len = *p_len;
  if (len == 0)
    return;
  if (*str == '\0') {
    *p_len = 0;
    return;
  }
  p = str + len - 1;
  for (i = len - 1; i >= 0; i--) {
    if (isspace(*p) || *p == '\0') {
      *p = '\0';
      len--;
      p--;
    } else
      break;
  }
  if (len == 0) {
    *p_len = 0;
    return;
  }
  p = str;
  for (i = 0; i < len; i++) {
    if (isspace(*p))
      p++;
    else
      break;
  }
  len -= i;
  if (len == 0) {
    *str = '\0';
    *p_len = 0;
    return;
  }
  *p_len = len;
  if (str < p)
    for (; len >= 0; len--, str++, p++)
      *str = *p;
}
```