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

```asm
<CompressUsingRLE>:
  endbr64
  push   %r15
  mov    %rcx,%r10
  push   %r14
  push   %r13
  mov    %rdx,%r13
  lea    0x7e(%rsi),%edx
  movslq %edx,%rax
  push   %r12
  mov    %rdi,%r12
  imul   $0xffffffff81020409,%rax,%rax
  push   %rbp
  mov    %esi,%ebp
  push   %rbx
  shr    $0x20,%rax
  add    %edx,%eax
  sar    $0x1f,%edx
  sub    $0x18,%rsp
  sar    $0x6,%eax
  sub    %edx,%eax
  test   %r13,%r13
  sete   %dl
  test   %rcx,%rcx
  sete   %cl
  or     %ecx,%edx
  test   %rdi,%rdi
  sete   %cl
  or     %ecx,%edx
  cmp    $0xfa,%esi
  jg     L171
  lea    0x1(%rax,%rsi,1),%r11d
  movslq %r11d,%r11
  test   %dl,%dl
  je     L19
L60:
  add    $0x18,%rsp
  mov    %r11,%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L171:
  lea    0x2(%rax,%rsi,1),%r11d
  movslq %r11d,%r11
  test   %dl,%dl
  jne    L60
  movl   $0x2,0xc(%rsp)
L179:
  movslq 0xc(%rsp),%rax
  lea    -0x1(%rbp),%r14d
  lea    0x2(%rax),%esi
  lea    0x0(%r13,%rax,8),%r9
  lea    0x1(%rax),%r8d
  xor    %eax,%eax
  jmp    L100
  nopl   (%rax)
L86:
  movslq %esi,%rax
  mov    %esi,%edx
  cmp    %r10,%rax
  ja     L238
  movslq %r8d,%rax
  add    $0x2,%esi
  add    $0x10,%r9
  add    $0x2,%r8d
  movq   $0x0,-0x10(%r9)
  mov    %rdi,0x0(%r13,%rax,8)
  mov    %ecx,%eax
  cmp    %ebp,%eax
  jge    L72
L100:
  movslq %eax,%rdx
  lea    0x1(%rax),%ecx
  mov    (%r12,%rdx,8),%rdi
  lea    0x0(,%rdx,8),%r15
  cmp    %ecx,%ebp
  jle    L86
  cmp    0x8(%r12,%r15,1),%rdi
  jne    L86
  lea    0x2(%rax),%edx
  cmp    %edx,%ebp
  jle    L144
  lea    0x3(%rax),%edx
  mov    %r14d,%r15d
  mov    $0x1,%ecx
  movslq %edx,%rdx
  sub    %eax,%r15d
  jmp    L259
  xchg   %ax,%ax
L163:
  add    $0x1,%ecx
  mov    %edx,%eax
  cmp    %r15d,%ecx
  je     L119
  add    $0x1,%rdx
  cmp    $0x7f,%ecx
  je     L119
L259:
  lea    -0x1(%rdx),%eax
  cmp    %rdi,-0x8(%r12,%rdx,8)
  je     L163
L119:
  movslq %esi,%r15
  mov    %esi,%edx
  cmp    %r10,%r15
  ja     L238
  neg    %ecx
  add    $0x2,%esi
  add    $0x10,%r9
  movslq %ecx,%rcx
  mov    %rcx,-0x10(%r9)
  movslq %r8d,%rcx
  add    $0x2,%r8d
  mov    %rdi,0x0(%r13,%rcx,8)
  cmp    %ebp,%eax
  jl     L100
  nopl   0x0(%rax,%rax,1)
L72:
  mov    %edx,%eax
  sub    0xc(%rsp),%eax
  cmpl   $0x2,0xc(%rsp)
  movslq %edx,%r11
  je     L124
L183:
  cltq
  mov    %rax,0x0(%r13)
  jmp    L60
  nop
L19:
  test   %esi,%esi
  jle    L62
  movl   $0x1,0xc(%rsp)
  jmp    L179
  nopl   (%rax)
L238:
  cmp    %r11,%r10
  jb     L68
  mov    0xc(%rsp),%ebx
  xor    %r15d,%r15d
  nopl   0x0(%rax)
L14:
  mov    %ebp,%r14d
  mov    $0x80,%eax
  sub    %r15d,%r14d
  cmp    %eax,%r14d
  cmovg  %eax,%r14d
  movslq %ebx,%rax
  lea    0x8(%r13,%rax,8),%rdi
  movslq %r14d,%rdx
  lea    0x1(%r14,%rbx,1),%ebx
  lea    -0x1(%rdx),%rcx
  mov    %rcx,0x0(%r13,%rax,8)
  movslq %r15d,%rcx
  add    %r14d,%r15d
  lea    (%r12,%rcx,8),%rsi
  call   <memcpy@plt>
  cmp    %r15d,%ebp
  jg     L14
  mov    %ebx,%eax
  sub    0xc(%rsp),%eax
  cmpl   $0x2,0xc(%rsp)
  movslq %ebx,%r11
  jne    L183
L124:
  mov    %eax,%edx
  movzbl %al,%eax
  sar    $0x8,%edx
  mov    %rax,0x8(%r13)
  movslq %edx,%rdx
  mov    %rdx,0x0(%r13)
  jmp    L60
L68:
  mov    $0xffffffffffffffff,%r11
  jmp    L60
L144:
  mov    %edx,%eax
  mov    $0x1,%ecx
  jmp    L119
L62:
  mov    $0x1,%r11d
  xor    %eax,%eax
  jmp    L183
```

assistant: ```c
ssize_t CompressUsingRLE(uint8_t *row, uint16_t uncmpLength, uint8_t *outBuf, size_t bufSize) {
  int byteCountLength = 1 + (uncmpLength > 250);
  uint16_t cmpCursor = byteCountLength;
  uint16_t cursor = 0;
  size_t maxSize = byteCountLength + uncmpLength + (uncmpLength + 126) / 127;
  int outOfRoom = 0;
  uint16_t cmpLength;
  if (row == NULL || outBuf == NULL || bufSize == 0)
    return maxSize;
  while (cursor < uncmpLength) {
    uint8_t byte = row[cursor++];
    uint8_t nextByte;
    if (cursor < uncmpLength && (nextByte = row[cursor]) == byte) {
      int8_t matches = 1;
      while (++cursor < uncmpLength && matches < 127 && row[cursor] == byte) {
        matches++;
      }
      if (cmpCursor + 2 > bufSize) {
        outOfRoom = 1;
        break;
      }
      outBuf[cmpCursor++] = -matches;
      outBuf[cmpCursor++] = byte;
    } else {
      uint8_t literals = 0;
      uint8_t i;
      while (cursor + literals + 1 < uncmpLength && literals < 127 && nextByte != (nextByte = row[cursor + literals + 1])) {
        literals++;
      }
      if (cmpCursor + 2 + literals > bufSize) {
        outOfRoom = 1;
        break;
      }
      outBuf[cmpCursor++] = literals;
      outBuf[cmpCursor++] = byte;
      for (i = 0; i < literals; i++) {
        outBuf[cmpCursor++] = row[cursor++];
      }
    }
  }
  if (outOfRoom) {
    if (bufSize < maxSize) {
      return -1;
    }
    cursor = 0;
    cmpCursor = byteCountLength;
    while (cursor < uncmpLength) {
      uint8_t bytesToCopy = uncmpLength - cursor > 128 ? 128 : uncmpLength - cursor;
      outBuf[cmpCursor++] = bytesToCopy - 1;
      memcpy(outBuf + cmpCursor, row + cursor, bytesToCopy);
      cmpCursor += bytesToCopy;
      cursor += bytesToCopy;
    }
    cmpLength = cmpCursor - 1;
  }
  cmpLength = cmpCursor - byteCountLength;
  if (byteCountLength == 2) {
    outBuf[0] = cmpLength >> 8;
    outBuf[1] = cmpLength & 0xff;
  } else {
    outBuf[0] = cmpLength;
  }
  return cmpCursor;
}
```