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

```asm
<spiralOrder0>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %rdi,%rbx
  mov    %esi,%r14d
  mov    %esi,0x24(%rsp)
  mov    %edx,%ebp
  mov    %esi,%r15d
  imul   %edx,%r15d
  mov    %r15d,0x20(%rsp)
  lea    0x0(,%r15,4),%edi
  call   <malloc@plt>
  mov    %rax,%r13
  sub    $0x1,%ebp
  test   %r15d,%r15d
  jle    L122
  lea    -0x1(%r14),%r11d
  mov    %r11d,0xc(%rsp)
  mov    %ebp,%r12d
  neg    %rax
  add    %rax,%rax
  mov    %rax,0x18(%rsp)
  movslq %r11d,%rax
  lea    (%rbx,%rax,8),%r10
  movslq %ebp,%rax
  mov    %rax,0x10(%rsp)
  mov    $0x0,%r8d
  mov    $0x0,%esi
  mov    $0x0,%edi
  lea    0x4(%r13),%rax
  mov    %rax,0x28(%rsp)
  jmp    L66
L6:
  sub    $0x1,%ebp
  cmp    %r9d,%ebp
  jl     L83
  movslq %ebp,%rax
  shl    $0x2,%rax
  lea    -0x1(%r12),%ecx
  mov    0x10(%rsp),%r14
  mov    %r14,%rdx
  sub    %rcx,%rdx
  lea    -0x8(,%rdx,4),%r15
  movslq %edi,%rdx
  add    %r14,%rdx
  lea    -0x4(%r13,%rdx,4),%r14
L123:
  mov    (%r10),%rdx
  mov    (%rdx,%rax,1),%ecx
  mov    %r14,%rdx
  sub    %rax,%rdx
  mov    %ecx,(%rdx)
  sub    $0x4,%rax
  cmp    %r15,%rax
  jne    L123
  add    %r12d,%edi
L83:
  sub    $0x1,%r11d
  cmp    %r9d,%r11d
  jle    L103
  movslq %r11d,%rax
  movslq %edi,%rdx
  lea    0x0(%r13,%rdx,4),%rdx
L81:
  mov    (%rbx,%rax,8),%rcx
  mov    (%rcx,%r8,1),%ecx
  mov    %ecx,(%rdx)
  sub    $0x1,%rax
  add    $0x4,%rdx
  cmp    %eax,%r9d
  jl     L81
  mov    0xc(%rsp),%eax
  lea    -0x1(%rdi,%rax,1),%edi
L103:
  add    $0x1,%rsi
  subl   $0x2,0xc(%rsp)
  sub    $0x2,%r12d
  add    $0x4,%r8
  addq   $0x8,0x18(%rsp)
  sub    $0x8,%r10
  subq   $0x1,0x10(%rsp)
  cmp    %edi,0x20(%rsp)
  jle    L122
L66:
  mov    %esi,%r9d
  cmp    %esi,%ebp
  jl     L111
  mov    %r12d,%eax
  lea    0x1(%rsi,%rax,1),%r14
  shl    $0x2,%r14
  movslq %edi,%rax
  lea    0x0(%r13,%rax,4),%rcx
  sub    %r8,%rcx
  mov    %r8,%rax
L22:
  mov    (%rbx,%rsi,8),%rdx
  mov    (%rdx,%rax,1),%edx
  mov    %edx,(%rax,%rcx,1)
  add    $0x4,%rax
  cmp    %r14,%rax
  jne    L22
  lea    0x1(%rdi,%r12,1),%edi
L111:
  cmp    %edi,0x20(%rsp)
  je     L122
  mov    0x24(%rsp),%eax
  sub    %r11d,%eax
  cmp    %eax,%r11d
  jl     L6
  mov    0x10(%rsp),%rax
  lea    0x0(,%rax,4),%r15
  movslq %edi,%rdx
  lea    0x0(%r13,%rdx,4),%rax
  mov    0xc(%rsp),%ecx
  lea    -0x1(%rcx),%ecx
  add    %rdx,%rcx
  mov    0x28(%rsp),%r14
  lea    (%r14,%rcx,4),%r14
  neg    %rdx
  mov    0x18(%rsp),%rcx
  lea    (%rcx,%rdx,8),%rcx
  add    %rbx,%rcx
L61:
  mov    0x8(%rcx,%rax,2),%rdx
  mov    (%rdx,%r15,1),%edx
  mov    %edx,(%rax)
  add    $0x4,%rax
  cmp    %r14,%rax
  jne    L61
  mov    0xc(%rsp),%eax
  add    %edi,%eax
  mov    %eax,%edi
  cmp    %eax,0x20(%rsp)
  jne    L6
L122:
  mov    %r13,%rax
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
int *spiralOrder0(int **matrix, int rSize, int cSize) {
  int count = 0;
  int size = rSize * cSize;
  int *arr = (int *)malloc(sizeof(int) * size);
  int rmin = 0, rmax = rSize - 1;
  int cmin = 0, cmax = cSize - 1;
  while (count < size) {
    for (int c = cmin; c <= cmax; c++)
      arr[count++] = matrix[rmin][c];
    if (count == size)
      break;
    for (int r = rmin + 1; r <= rmax; r++)
      arr[count++] = matrix[r][cmax];
    if (count == size)
      break;
    for (int c = cmax - 1; c >= cmin; c--)
      arr[count++] = matrix[rmax][c];
    for (int r = rmax - 1; r > rmin; r--)
      arr[count++] = matrix[r][cmin];
    rmin++;
    rmax--;
    cmin++;
    cmax--;
  }
  return arr;
}
```