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

```asm
<CompressUsingRLE>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    %rdi,%rbp
  mov    %esi,%ebx
  mov    %rdx,%r13
  mov    %rcx,%r10
  cmp    $0xfa,%esi
  jg     L86
  lea    0x7e(%rsi),%edx
  movslq %edx,%rax
  imul   $0xffffffff81020409,%rax,%rax
  shr    $0x20,%rax
  add    %edx,%eax
  sar    $0x6,%eax
  sar    $0x1f,%edx
  sub    %edx,%eax
  lea    0x1(%rsi,%rax,1),%r11d
  movslq %r11d,%r11
  test   %r13,%r13
  sete   %al
  test   %rcx,%rcx
  sete   %dl
  or     %dl,%al
  jne    L164
  test   %rdi,%rdi
  je     L164
  test   %esi,%esi
  jle    L54
  movl   $0x1,0xc(%rsp)
  jmp    L122
L184:
  mov    %edx,%eax
  mov    $0x1,%edi
  jmp    L120
L80:
  mov    %ecx,%r14d
  movslq %ecx,%rax
  cmp    %r10,%rax
  ja     L6
  movq   $0x0,(%r9)
  movslq %r8d,%rax
  mov    %rsi,0x0(%r13,%rax,8)
  mov    %edi,%eax
L149:
  add    $0x2,%ecx
  add    $0x10,%r9
  add    $0x2,%r8d
  cmp    %ebx,%eax
  jge    L151
L63:
  lea    0x1(%rax),%edi
  movslq %eax,%rdx
  lea    0x0(,%rdx,8),%r12
  mov    0x0(%rbp,%rdx,8),%rsi
  cmp    %edi,%ebx
  jle    L80
  cmp    0x8(%rbp,%r12,1),%rsi
  jne    L80
  lea    0x2(%rax),%edx
  cmp    %edx,%ebx
  jle    L184
  lea    0x3(%rax),%edx
  movslq %edx,%rdx
  mov    $0x1,%edi
L163:
  lea    -0x1(%rdx),%eax
  cmp    %rsi,-0x8(%rbp,%rdx,8)
  jne    L120
  add    $0x1,%edi
  mov    %edx,%eax
  cmp    $0x7e,%edi
  setle  %r14b
  cmp    %edx,%ebx
  setg   %r12b
  add    $0x1,%rdx
  test   %r12b,%r14b
  jne    L163
L120:
  mov    %ecx,%r14d
  movslq %ecx,%rdx
  cmp    %r10,%rdx
  ja     L6
  neg    %edi
  movslq %edi,%rdi
  mov    %rdi,(%r9)
  movslq %r8d,%rdx
  mov    %rsi,0x0(%r13,%rdx,8)
  jmp    L149
L24:
  mov    %eax,%edx
  sar    $0x8,%edx
  movslq %edx,%rdx
  mov    %rdx,0x0(%r13)
  movzbl %al,%eax
  mov    %rax,0x8(%r13)
  jmp    L142
L81:
  mov    $0xffffffffffffffff,%r11
  jmp    L164
L6:
  cmp    %r10,%r11
  ja     L81
  mov    0xc(%rsp),%r14d
  mov    $0x0,%r15d
L195:
  mov    %ebx,%r12d
  sub    %r15d,%r12d
  mov    $0x80,%eax
  cmp    %eax,%r12d
  cmovg  %eax,%r12d
  movslq %r12d,%rdx
  movslq %r14d,%rax
  lea    -0x1(%rdx),%rcx
  mov    %rcx,0x0(%r13,%rax,8)
  movslq %r15d,%rcx
  lea    0x0(%rbp,%rcx,8),%rsi
  lea    0x8(%r13,%rax,8),%rdi
  call   <memcpy@plt>
  lea    0x1(%r14,%r12,1),%r14d
  add    %r15d,%r12d
  mov    %r12d,%r15d
  cmp    %r12d,%ebx
  jg     L195
L151:
  mov    %r14d,%eax
  mov    0xc(%rsp),%ebx
  sub    %ebx,%eax
  cmp    $0x2,%ebx
  je     L24
  cltq
  mov    %rax,0x0(%r13)
L142:
  movslq %r14d,%r11
L164:
  mov    %r11,%rax
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L54:
  movl   $0x1,0xc(%rsp)
  mov    $0x1,%r14d
  jmp    L151
L86:
  lea    0x7e(%rsi),%edx
  movslq %edx,%rax
  imul   $0xffffffff81020409,%rax,%rax
  shr    $0x20,%rax
  add    %edx,%eax
  sar    $0x6,%eax
  sar    $0x1f,%edx
  sub    %edx,%eax
  lea    0x2(%rsi,%rax,1),%r11d
  movslq %r11d,%r11
  test   %r13,%r13
  sete   %al
  test   %rcx,%rcx
  sete   %dl
  or     %dl,%al
  jne    L164
  test   %rdi,%rdi
  je     L164
  movl   $0x2,0xc(%rsp)
L122:
  mov    0xc(%rsp),%esi
  lea    0x2(%rsi),%ecx
  movslq %esi,%rax
  lea    0x0(%r13,%rax,8),%r9
  lea    0x1(%rsi),%r8d
  mov    $0x0,%eax
  jmp    L63
```

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