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
  mov    %rcx,%r12
  push   %rbp
  push   %rbx
  sub    $0x58,%rsp
  mov    %rdi,0x8(%rsp)
  mov    %edx,0x14(%rsp)
  test   %esi,%esi
  jle    L179
  lea    -0x1(%rsi),%eax
  mov    %rdi,%r15
  mov    %esi,%ebx
  mov    %rdi,%r14
  lea    0x8(%rdi,%rax,8),%r13
  xor    %ebp,%ebp
  nopl   0x0(%rax,%rax,1)
L158:
  mov    (%r14),%rdi
  call   <strlen@plt>
  test   %eax,%eax
  je     L154
  mov    (%r14),%rdx
  movslq %ebp,%rax
  add    $0x1,%ebp
  mov    %rdx,(%r15,%rax,8)
L154:
  add    $0x8,%r14
  cmp    %r14,%r13
  jne    L158
  mov    $0x8,%edi
  call   <malloc@plt>
  mov    0x14(%rsp),%ebp
  movl   $0x1,(%r12)
  mov    %rax,%r15
  lea    0x1(%rbp),%eax
  mov    %eax,%edi
  mov    %eax,0x34(%rsp)
  call   <malloc@plt>
  mov    0x8(%rsp),%r14
  mov    %rax,(%r15)
  mov    %rax,%rdi
  mov    (%r14),%rsi
  call   <strcpy@plt>
  mov    (%r14),%rdi
  call   <strlen@plt>
  mov    %eax,%r14d
  movslq %ebp,%rax
  mov    %rax,0x20(%rsp)
  cmp    $0x1,%ebx
  je     L117
  sub    $0x1,%rax
  movslq %ebx,%rcx
  xor    %ebp,%ebp
  mov    %r15,(%rsp)
  mov    %rax,0x48(%rsp)
  mov    %r14d,%eax
  mov    $0x1,%ebx
  mov    %ebp,%r14d
  mov    %rcx,0x28(%rsp)
  mov    %eax,%ebp
  jmp    L46
  nopl   0x0(%rax)
L87:
  mov    (%rsp),%rax
  mov    0x14(%rsp),%edx
  add    -0x8(%rax,%rsi,8),%rcx
  sub    %ebp,%edx
  mov    $0x20,%esi
  mov    %rcx,%rdi
  call   <memset@plt>
L113:
  movslq (%r12),%rax
  mov    (%rsp),%rdi
  mov    0x20(%rsp),%rcx
  mov    -0x8(%rdi,%rax,8),%rax
  movb   $0x0,(%rax,%rcx,1)
  mov    (%r12),%eax
  lea    0x8(,%rax,8),%esi
  call   <realloc@plt>
  mov    0x34(%rsp),%edi
  mov    %rax,%r15
  mov    %rax,(%rsp)
  call   <malloc@plt>
  movslq (%r12),%rdx
  mov    0x8(%rsp),%rcx
  mov    %rax,%rdi
  mov    %rdx,%rax
  mov    %rdi,(%r15,%rdx,8)
  mov    (%rcx,%rbx,8),%rsi
  add    $0x1,%rbx
  add    $0x1,%eax
  mov    %eax,(%r12)
  call   <strcpy@plt>
  mov    0x1c(%rsp),%ebp
  mov    0x30(%rsp),%r14d
  cmp    0x28(%rsp),%rbx
  je     L17
L46:
  mov    0x8(%rsp),%rax
  mov    %ebx,0x30(%rsp)
  mov    (%rax,%rbx,8),%rdi
  call   <strlen@plt>
  movslq %ebp,%rcx
  mov    %eax,0x1c(%rsp)
  lea    0x1(%rax,%rbp,1),%r13d
  cmp    0x14(%rsp),%r13d
  jle    L137
  mov    %ebx,%r8d
  movslq (%r12),%rsi
  sub    %r14d,%r8d
  cmp    $0x1,%r8d
  jle    L87
  mov    0x14(%rsp),%eax
  lea    -0x1(%r8),%r10d
  mov    (%rsp),%rdi
  lea    -0x2(%r8),%r13d
  mov    %rbx,0x38(%rsp)
  mov    %r13d,%ebx
  sub    %ebp,%eax
  mov    %r12,0x40(%rsp)
  cltd
  idiv   %r10d
  sub    %edx,%r10d
  mov    -0x8(%rdi,%rsi,8),%rdx
  mov    0x48(%rsp),%rsi
  mov    %eax,0x18(%rsp)
  mov    %r10d,%r12d
  lea    -0x1(%rdx,%rcx,1),%r14
  lea    (%rdx,%rsi,1),%rax
  mov    0x18(%rsp),%ecx
  mov    0x20(%rsp),%rsi
  movb   $0x0,(%rdx,%rsi,1)
  lea    0x1(%rcx),%esi
  mov    %ecx,%ebp
  mov    %esi,0x18(%rsp)
  jmp    L135
  nopw   0x0(%rax,%rax,1)
L98:
  mov    %dl,(%rax)
  sub    $0x1,%rax
L135:
  movzbl (%r14),%edx
  sub    $0x1,%r14
  cmp    $0x20,%dl
  jne    L98
  movb   $0x20,(%rax)
  lea    -0x1(%rax),%r13
  test   %r12d,%r12d
  je     L112
  mov    %ebp,%eax
  sub    $0x1,%r12d
  lea    -0x1(%rbp),%r15d
  test   %eax,%eax
  je     L30
L160:
  mov    %r13,%rdi
  lea    0x1(%r15),%rdx
  mov    $0x20,%esi
  sub    %r15,%rdi
  not    %r15
  call   <memset@plt>
  lea    0x0(%r13,%r15,1),%rax
L31:
  sub    $0x1,%ebx
  jae    L135
  mov    0x38(%rsp),%rbx
  mov    0x40(%rsp),%r12
  jmp    L113
  nopl   (%rax)
L112:
  mov    0x18(%rsp),%eax
  mov    %ebp,%r15d
  test   %eax,%eax
  jne    L160
L30:
  mov    %r13,%rax
  jmp    L31
L137:
  mov    (%rsp),%rdi
  movslq (%r12),%rax
  mov    %r13d,%ebp
  mov    -0x8(%rdi,%rax,8),%rax
  movb   $0x20,(%rax,%rcx,1)
  mov    0x8(%rsp),%rax
  mov    (%rax,%rbx,8),%rsi
  movslq (%r12),%rax
  add    $0x1,%rbx
  mov    -0x8(%rdi,%rax,8),%rax
  lea    0x1(%rax,%rcx,1),%rdi
  call   <strcpy@plt>
  cmp    0x28(%rsp),%rbx
  jne    L46
L17:
  mov    (%rsp),%r15
  mov    %ebp,%r14d
L117:
  mov    0x14(%rsp),%edx
  movslq (%r12),%rax
  movslq %r14d,%rdi
  mov    $0x20,%esi
  sub    %r14d,%edx
  add    -0x8(%r15,%rax,8),%rdi
  call   <memset@plt>
  movslq (%r12),%rax
  mov    0x20(%rsp),%rcx
  mov    -0x8(%r15,%rax,8),%rax
  movb   $0x0,(%rax,%rcx,1)
  add    $0x58,%rsp
  mov    %r15,%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L179:
  jne    L120
  movl   $0x0,(%rcx)
  add    $0x58,%rsp
  xor    %edi,%edi
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    10c0 <malloc@plt>
L120:
  mov    $0x8,%edi
  call   <malloc@plt>
  mov    0x14(%rsp),%ebx
  movl   $0x1,(%r12)
  mov    %rax,%r15
  lea    0x1(%rbx),%edi
  call   <malloc@plt>
  mov    0x8(%rsp),%r14
  mov    %rax,(%r15)
  mov    %rax,%rdi
  mov    (%r14),%rsi
  call   <strcpy@plt>
  mov    (%r14),%rdi
  call   <strlen@plt>
  mov    %eax,%r14d
  movslq %ebx,%rax
  mov    %rax,0x20(%rsp)
  jmp    L117
```

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