user: 下面的汇编指令对应的C源代码是什么：

```asm
<spiralOrder>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %esi,-0x2c(%rbp)
  mov    %edx,-0x30(%rbp)
  mov    -0x2c(%rbp),%eax
  cltq
  mov    %eax,%edx
  mov    -0x30(%rbp),%eax
  cltq
  imul   %edx,%eax
  shl    $0x2,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x8(%rbp)
  movl   $0x0,-0x14(%rbp)
  movl   $0x0,-0x10(%rbp)
  movl   $0xffffffff,-0xc(%rbp)
L65:
  movl   $0x0,-0x18(%rbp)
  jmp    L81
L32:
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  addl   $0x1,-0xc(%rbp)
  mov    -0xc(%rbp),%eax
  cltq
  shl    $0x2,%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0x14(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x14(%rbp)
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x8(%rbp),%rax
  add    %rax,%rdx
  mov    (%rcx),%eax
  mov    %eax,(%rdx)
  addl   $0x1,-0x18(%rbp)
L81:
  mov    -0x18(%rbp),%eax
  cmp    -0x30(%rbp),%eax
  jl     L32
  subl   $0x1,-0x2c(%rbp)
  cmpl   $0x0,-0x2c(%rbp)
  jle    L58
  movl   $0x0,-0x18(%rbp)
  jmp    L39
L115:
  addl   $0x1,-0x10(%rbp)
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0xc(%rbp),%eax
  cltq
  shl    $0x2,%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0x14(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x14(%rbp)
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x8(%rbp),%rax
  add    %rax,%rdx
  mov    (%rcx),%eax
  mov    %eax,(%rdx)
  addl   $0x1,-0x18(%rbp)
L39:
  mov    -0x18(%rbp),%eax
  cmp    -0x2c(%rbp),%eax
  jl     L115
  subl   $0x1,-0x30(%rbp)
  cmpl   $0x0,-0x30(%rbp)
  jle    L145
  movl   $0x0,-0x18(%rbp)
  jmp    L132
L9:
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  subl   $0x1,-0xc(%rbp)
  mov    -0xc(%rbp),%eax
  cltq
  shl    $0x2,%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0x14(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x14(%rbp)
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x8(%rbp),%rax
  add    %rax,%rdx
  mov    (%rcx),%eax
  mov    %eax,(%rdx)
  addl   $0x1,-0x18(%rbp)
L132:
  mov    -0x18(%rbp),%eax
  cmp    -0x30(%rbp),%eax
  jl     L9
  subl   $0x1,-0x2c(%rbp)
  cmpl   $0x0,-0x2c(%rbp)
  jle    L135
  movl   $0x0,-0x18(%rbp)
  jmp    L11
L28:
  subl   $0x1,-0x10(%rbp)
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0xc(%rbp),%eax
  cltq
  shl    $0x2,%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0x14(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x14(%rbp)
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x8(%rbp),%rax
  add    %rax,%rdx
  mov    (%rcx),%eax
  mov    %eax,(%rdx)
  addl   $0x1,-0x18(%rbp)
L11:
  mov    -0x18(%rbp),%eax
  cmp    -0x2c(%rbp),%eax
  jl     L28
  subl   $0x1,-0x30(%rbp)
  cmpl   $0x0,-0x30(%rbp)
  jle    L96
  jmp    L65
L58:
  nop
  jmp    L85
L145:
  nop
  jmp    L85
L135:
  nop
  jmp    L85
L96:
  nop
L85:
  mov    -0x8(%rbp),%rax
  leave
  ret
```

assistant: ```c
int *spiralOrder(int **matrix, int matrixRowSize, int matrixColSize) {
  int *ret = (int *)malloc(sizeof(int) * matrixRowSize * matrixColSize);
  int i;
  int count = 0;
  int m = 0;
  int n = -1;
  while (1) {
    for (i = 0; i < matrixColSize; i++) {
      ret[count++] = matrix[m][++n];
    }
    if (--matrixRowSize <= 0) {
      break;
    }
    for (i = 0; i < matrixRowSize; i++) {
      ret[count++] = matrix[++m][n];
    }
    if (--matrixColSize <= 0) {
      break;
    }
    for (i = 0; i < matrixColSize; i++) {
      ret[count++] = matrix[m][--n];
    }
    if (--matrixRowSize <= 0) {
      break;
    }
    for (i = 0; i < matrixRowSize; i++) {
      ret[count++] = matrix[--m][n];
    }
    if (--matrixColSize <= 0) {
      break;
    }
  }
  return ret;
}
```