user: What is the c source code of the assembly code below:

```asm
<CompressUsingRLE>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x70,%rsp
  mov    %rdi,-0x58(%rbp)
  mov    %esi,-0x5c(%rbp)
  mov    %rdx,-0x68(%rbp)
  mov    %rcx,-0x70(%rbp)
  cmpl   $0xfa,-0x5c(%rbp)
  jle    L212
  mov    $0x2,%eax
  jmp    L51
L212:
  mov    $0x1,%eax
L51:
  mov    %eax,-0x38(%rbp)
  mov    -0x38(%rbp),%eax
  mov    %eax,-0x48(%rbp)
  movl   $0x0,-0x44(%rbp)
  mov    -0x38(%rbp),%edx
  mov    -0x5c(%rbp),%eax
  lea    (%rdx,%rax,1),%ecx
  mov    -0x5c(%rbp),%eax
  add    $0x7e,%eax
  movslq %eax,%rdx
  imul   $0xffffffff81020409,%rdx,%rdx
  shr    $0x20,%rdx
  add    %eax,%edx
  sar    $0x6,%edx
  sar    $0x1f,%eax
  mov    %eax,%esi
  mov    %edx,%eax
  sub    %esi,%eax
  add    %ecx,%eax
  cltq
  mov    %rax,-0x28(%rbp)
  movl   $0x0,-0x40(%rbp)
  cmpq   $0x0,-0x58(%rbp)
  je     L31
  cmpq   $0x0,-0x68(%rbp)
  je     L31
  cmpq   $0x0,-0x70(%rbp)
  jne    L200
L31:
  mov    -0x28(%rbp),%rax
  jmp    L44
L211:
  mov    -0x44(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x44(%rbp)
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  mov    %rax,-0x20(%rbp)
  mov    -0x44(%rbp),%eax
  cmp    -0x5c(%rbp),%eax
  jge    L36
  mov    -0x44(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  mov    %rax,-0x18(%rbp)
  mov    -0x18(%rbp),%rax
  cmp    -0x20(%rbp),%rax
  jne    L36
  movl   $0x1,-0x3c(%rbp)
  jmp    L216
L103:
  addl   $0x1,-0x3c(%rbp)
L216:
  addl   $0x1,-0x44(%rbp)
  mov    -0x44(%rbp),%eax
  cmp    -0x5c(%rbp),%eax
  jge    L177
  cmpl   $0x7e,-0x3c(%rbp)
  jg     L177
  mov    -0x44(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  cmp    %rax,-0x20(%rbp)
  je     L103
L177:
  mov    -0x48(%rbp),%eax
  add    $0x2,%eax
  cltq
  cmp    %rax,-0x70(%rbp)
  jae    L169
  movl   $0x1,-0x40(%rbp)
  jmp    L111
L169:
  mov    -0x3c(%rbp),%eax
  neg    %eax
  mov    %eax,%ecx
  mov    -0x48(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x48(%rbp)
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x68(%rbp),%rax
  add    %rax,%rdx
  movslq %ecx,%rax
  mov    %rax,(%rdx)
  mov    -0x48(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x48(%rbp)
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x68(%rbp),%rax
  add    %rax,%rdx
  mov    -0x20(%rbp),%rax
  mov    %rax,(%rdx)
  jmp    L200
L36:
  movq   $0x0,-0x10(%rbp)
  nop
  mov    -0x44(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  lea    0x1(%rax),%rdx
  mov    -0x5c(%rbp),%eax
  cltq
  cmp    %rax,%rdx
  jge    L257
  cmpq   $0x7e,-0x10(%rbp)
  jg     L257
  mov    -0x44(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  add    $0x1,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  mov    %rax,-0x18(%rbp)
L257:
  mov    -0x48(%rbp),%eax
  add    $0x2,%eax
  movslq %eax,%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  cmp    %rax,-0x70(%rbp)
  jae    L274
  movl   $0x1,-0x40(%rbp)
  jmp    L111
L274:
  mov    -0x48(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x48(%rbp)
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x68(%rbp),%rax
  add    %rax,%rdx
  mov    -0x10(%rbp),%rax
  mov    %rax,(%rdx)
  mov    -0x48(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x48(%rbp)
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x68(%rbp),%rax
  add    %rax,%rdx
  mov    -0x20(%rbp),%rax
  mov    %rax,(%rdx)
  movq   $0x0,-0x30(%rbp)
  jmp    L92
L287:
  mov    -0x44(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x44(%rbp)
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x58(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0x48(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x48(%rbp)
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x68(%rbp),%rax
  add    %rax,%rdx
  mov    (%rcx),%rax
  mov    %rax,(%rdx)
  addq   $0x1,-0x30(%rbp)
L92:
  mov    -0x30(%rbp),%rax
  cmp    -0x10(%rbp),%rax
  jl     L287
L200:
  mov    -0x44(%rbp),%eax
  cmp    -0x5c(%rbp),%eax
  jl     L211
L111:
  cmpl   $0x0,-0x40(%rbp)
  je     L164
  mov    -0x70(%rbp),%rax
  cmp    -0x28(%rbp),%rax
  jae    L152
  mov    $0xffffffffffffffff,%rax
  jmp    L44
L152:
  movl   $0x0,-0x44(%rbp)
  mov    -0x38(%rbp),%eax
  mov    %eax,-0x48(%rbp)
  jmp    L252
L260:
  mov    -0x5c(%rbp),%eax
  sub    -0x44(%rbp),%eax
  mov    $0x80,%edx
  cmp    %edx,%eax
  cmovg  %edx,%eax
  cltq
  mov    %rax,-0x8(%rbp)
  mov    -0x48(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x48(%rbp)
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  mov    -0x8(%rbp),%rdx
  sub    $0x1,%rdx
  mov    %rdx,(%rax)
  mov    -0x44(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x58(%rbp),%rax
  lea    (%rdx,%rax,1),%rsi
  mov    -0x48(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x68(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0x8(%rbp),%rax
  mov    %rax,%rdx
  mov    %rcx,%rdi
  call   <memcpy@plt>
  mov    -0x8(%rbp),%rax
  mov    %eax,%edx
  mov    -0x48(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0x48(%rbp)
  mov    -0x8(%rbp),%rax
  mov    %eax,%edx
  mov    -0x44(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0x44(%rbp)
L252:
  mov    -0x44(%rbp),%eax
  cmp    -0x5c(%rbp),%eax
  jl     L260
  mov    -0x48(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,-0x34(%rbp)
L164:
  mov    -0x48(%rbp),%eax
  sub    -0x38(%rbp),%eax
  mov    %eax,-0x34(%rbp)
  cmpl   $0x2,-0x38(%rbp)
  jne    L229
  mov    -0x34(%rbp),%eax
  sar    $0x8,%eax
  movslq %eax,%rdx
  mov    -0x68(%rbp),%rax
  mov    %rdx,(%rax)
  mov    -0x34(%rbp),%eax
  cltq
  mov    -0x68(%rbp),%rdx
  add    $0x8,%rdx
  movzbl %al,%eax
  mov    %rax,(%rdx)
  jmp    L183
L229:
  mov    -0x34(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x68(%rbp),%rax
  mov    %rdx,(%rax)
L183:
  mov    -0x48(%rbp),%eax
  cltq
L44:
  leave
  ret
```

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