user: Please show me the C implementation that matches the assembly code listed below:

```asm
<fullJustify>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %rdi,%r14
  mov    %edx,(%rsp)
  mov    %rcx,%r13
  test   %esi,%esi
  jle    L20
  mov    %esi,%ebp
  mov    %rdi,%rbx
  lea    -0x1(%rsi),%eax
  lea    0x8(%rdi,%rax,8),%r15
  mov    $0x0,%r12d
  jmp    L210
L10:
  add    $0x8,%rbx
  cmp    %rbx,%r15
  je     L2
L210:
  mov    (%rbx),%rdi
  call   <strlen@plt>
  test   %eax,%eax
  je     L10
  mov    (%rbx),%rdx
  movslq %r12d,%rax
  mov    %rdx,(%r14,%rax,8)
  lea    0x1(%r12),%r12d
  jmp    L10
L20:
  jne    L88
  movl   $0x0,(%rcx)
  mov    $0x0,%edi
  call   <malloc@plt>
  mov    %rax,%r15
  jmp    L185
L2:
  mov    $0x8,%edi
  call   <malloc@plt>
  mov    %rax,%r15
  movl   $0x1,0x0(%r13)
  mov    (%rsp),%r12d
  lea    0x1(%r12),%eax
  mov    %eax,0x24(%rsp)
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,%rdi
  mov    %rax,(%r15)
  mov    (%r14),%rsi
  call   <strcpy@plt>
  mov    (%r14),%rdi
  call   <strlen@plt>
  mov    %eax,%ebx
  cmp    $0x1,%ebp
  jle    L114
  mov    %ebp,%eax
  mov    %rax,0x10(%rsp)
  mov    $0x1,%ebp
  movl   $0x0,0xc(%rsp)
  movslq %r12d,%rax
  mov    %rax,0x18(%rsp)
  sub    $0x1,%rax
  mov    %rax,0x28(%rsp)
  mov    $0xfffffffffffffffe,%r12
  jmp    L123
L177:
  movslq %ebx,%rbx
  movslq 0x0(%r13),%rax
  mov    -0x8(%r15,%rax,8),%rax
  movb   $0x20,(%rax,%rbx,1)
  mov    (%r14,%rbp,8),%rsi
  movslq 0x0(%r13),%rax
  mov    -0x8(%r15,%rax,8),%rax
  lea    0x1(%rax,%rbx,1),%rdi
  call   <strcpy@plt>
  mov    0x20(%rsp),%ebx
  jmp    L7
L6:
  mov    (%rsp),%edx
  sub    %ebx,%edx
  movslq 0x0(%r13),%rax
  movslq %ebx,%rdi
  add    -0x8(%r15,%rax,8),%rdi
  mov    $0x20,%esi
  call   <memset@plt>
L199:
  movslq 0x0(%r13),%rax
  mov    -0x8(%r15,%rax,8),%rax
  mov    0x18(%rsp),%rbx
  movb   $0x0,(%rax,%rbx,1)
  mov    0x0(%r13),%eax
  lea    0x8(,%rax,8),%esi
  mov    %r15,%rdi
  call   <realloc@plt>
  mov    %rax,%r15
  mov    0x24(%rsp),%edi
  call   <malloc@plt>
  mov    %rax,%rdx
  movslq 0x0(%r13),%rax
  mov    %rdx,(%r15,%rax,8)
  mov    (%r14,%rbp,8),%rsi
  mov    0x0(%r13),%eax
  lea    0x1(%rax),%edx
  mov    %edx,0x0(%r13)
  cltq
  mov    (%r15,%rax,8),%rdi
  call   <strcpy@plt>
  mov    0x4(%rsp),%ebx
  mov    0x8(%rsp),%eax
  mov    %eax,0xc(%rsp)
L7:
  add    $0x1,%rbp
  cmp    %rbp,0x10(%rsp)
  je     L114
L123:
  mov    %ebp,0x8(%rsp)
  mov    (%r14,%rbp,8),%rdi
  call   <strlen@plt>
  mov    %eax,0x4(%rsp)
  lea    0x1(%rax,%rbx,1),%eax
  mov    %eax,0x20(%rsp)
  cmp    (%rsp),%eax
  jle    L177
  mov    %ebp,%edi
  sub    0xc(%rsp),%edi
  cmp    $0x1,%edi
  jle    L6
  mov    (%rsp),%eax
  sub    %ebx,%eax
  lea    -0x1(%rdi),%r9d
  cltd
  idiv   %r9d
  sub    %edx,%r9d
  movslq 0x0(%r13),%rdx
  mov    -0x8(%r15,%rdx,8),%rcx
  movslq %ebx,%rbx
  lea    -0x1(%rcx,%rbx,1),%rsi
  mov    0x28(%rsp),%rbx
  lea    (%rcx,%rbx,1),%rdx
  mov    0x18(%rsp),%rbx
  movb   $0x0,(%rcx,%rbx,1)
  sub    $0x2,%edi
  lea    0x1(%rax),%ebx
  jmp    L87
L130:
  lea    -0x1(%rcx),%r10d
  test   %ecx,%ecx
  je     L78
  lea    -0x1(%rcx),%r11d
  mov    %r12,%rcx
  sub    %r11,%rcx
  add    %rdx,%rcx
  mov    %r8,%rdx
L190:
  sub    $0x1,%rdx
  movb   $0x20,0x1(%rdx)
  cmp    %rdx,%rcx
  jne    L190
  mov    %r10d,%edx
  not    %rdx
  add    %r8,%rdx
L30:
  sub    $0x1,%edi
  cmp    $0xffffffff,%edi
  je     L199
L87:
  movzbl (%rsi),%ecx
  cmp    $0x20,%cl
  je     L200
L8:
  sub    $0x1,%rsi
  sub    $0x1,%rdx
  mov    %cl,0x1(%rdx)
  movzbl (%rsi),%ecx
  cmp    $0x20,%cl
  jne    L8
L200:
  sub    $0x1,%rsi
  lea    -0x1(%rdx),%r8
  movb   $0x20,(%rdx)
  mov    %ebx,%ecx
  test   %r9d,%r9d
  je     L130
  sub    $0x1,%r9d
  mov    %eax,%ecx
  jmp    L130
L78:
  mov    %r8,%rdx
  jmp    L30
L88:
  mov    $0x8,%edi
  call   <malloc@plt>
  mov    %rax,%r15
  movl   $0x1,0x0(%r13)
  mov    (%rsp),%eax
  lea    0x1(%rax),%edi
  call   <malloc@plt>
  mov    %rax,%rdi
  mov    %rax,(%r15)
  mov    (%r14),%rsi
  call   <strcpy@plt>
  mov    (%r14),%rdi
  call   <strlen@plt>
  mov    %eax,%ebx
L114:
  mov    (%rsp),%r14d
  mov    %r14d,%edx
  sub    %ebx,%edx
  movslq 0x0(%r13),%rax
  movslq %ebx,%rdi
  add    -0x8(%r15,%rax,8),%rdi
  mov    $0x20,%esi
  call   <memset@plt>
  movslq 0x0(%r13),%rdx
  movslq %r14d,%rax
  mov    -0x8(%r15,%rdx,8),%rdx
  movb   $0x0,(%rdx,%rax,1)
L185:
  mov    %r15,%rax
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
char **fullJustify(char **words, int wordsSize, int maxWidth, int *returnSize) {
  int i, j, lastLength;
  char **ret;
  for (i = 0, j = 0; i < wordsSize; ++i)
    if (strlen(words[i]))
      words[j++] = words[i];
  if (!wordsSize) {
    *returnSize = 0;
    return (char **)malloc(0);
  }
  ret = (char **)malloc(sizeof(char *));
  *returnSize = 1;
  *ret = (char *)malloc((maxWidth + 1) * sizeof(char));
  strcpy(*ret, words[0]);
  lastLength = strlen(words[0]);
  for (i = 1, j = 0; i < wordsSize; ++i) {
    int curLength = strlen(words[i]) + 1;
    if (lastLength + curLength <= maxWidth) {
      ret[*returnSize - 1][lastLength] = ' ';
      strcpy(ret[*returnSize - 1] + lastLength + 1, words[i]);
      lastLength += curLength;
    } else {
      if (i - j <= 1)
        memset(ret[*returnSize - 1] + lastLength, ' ', maxWidth - lastLength);
      else {
        int p = (maxWidth - lastLength) % (i - j - 1), q = i - j - 1 - p, all = i - j - 1;
        int lessSpace = (maxWidth - lastLength) / (i - j - 1);
        char *l = ret[*returnSize - 1] + lastLength - 1, *r = ret[*returnSize - 1] + maxWidth - 1;
        ret[*returnSize - 1][maxWidth] = 0;
        while (all--) {
          int t;
          while (*l != ' ')
            *r-- = *l--;
          *r-- = *l--;
          if (q) {
            --q;
            t = lessSpace;
          } else {
            --p;
            t = lessSpace + 1;
          }
          while (t--)
            *r-- = ' ';
        }
      }
      ret[*returnSize - 1][maxWidth] = 0;
      j = i;
      ret = (char **)realloc(ret, sizeof(char *) * (*returnSize + 1));
      ret[*returnSize] = (char *)malloc((maxWidth + 1) * sizeof(char));
      strcpy(ret[(*returnSize)++], words[i]);
      lastLength = curLength - 1;
    }
  }
  memset(ret[*returnSize - 1] + lastLength, ' ', maxWidth - lastLength);
  ret[*returnSize - 1][maxWidth] = 0;
  return ret;
}
```