user: 提供的汇编代码用C语言表示会是什么样子：

```asm
<rotate>:
  endbr64
  test   %edx,%edx
  jle    L148
  push   %r15
  mov    %rdi,%rax
  xor    %r10d,%r10d
  mov    $0x1,%r11d
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  movslq %edx,%rbx
  cmp    $0x1,%edx
  je     L102
  xchg   %ax,%ax
L89:
  mov    (%rax,%r10,2),%rdi
  mov    %r11,%rcx
  nopw   0x0(%rax,%rax,1)
L40:
  mov    (%rax,%rcx,8),%rsi
  mov    (%rdi,%rcx,4),%r8d
  add    %r10,%rsi
  mov    (%rsi),%r9d
  mov    %r9d,(%rdi,%rcx,4)
  add    $0x1,%rcx
  mov    %r8d,(%rsi)
  cmp    %ecx,%edx
  jg     L40
  add    $0x1,%r11
  add    $0x4,%r10
  cmp    %rbx,%r11
  jne    L89
  mov    %edx,%ebp
  lea    0x0(,%r11,4),%r8
  sar    %ebp
  mov    %r8,%rsi
  movslq %ebp,%rcx
  shl    $0x2,%rcx
  sub    %rcx,%rsi
  cmp    %rcx,%rsi
  jl     L127
  cmp    $0x1,%ebp
  je     L127
  lea    -0x1(%rdx),%ecx
  lea    -0x1(%rbp),%ebx
  mov    %ebp,%r12d
  lea    0x8(%rax,%rcx,8),%r14
  mov    %ebp,%ecx
  mov    %ebx,-0xc(%rsp)
  mov    %ebp,%ebx
  shr    $0x2,%ecx
  lea    -0x10(%r8),%r15
  and    $0xfffffffc,%ebx
  sub    $0x8,%r8
  lea    -0x1(%rcx),%r13d
  and    $0x3,%r12d
  add    $0x1,%r13
  shl    $0x4,%r13
  nopl   0x0(%rax)
L15:
  mov    (%rax),%rcx
  cmpl   $0x2,-0xc(%rsp)
  mov    %rcx,%rsi
  lea    (%rcx,%r15,1),%rdi
  lea    0x0(%r13,%rcx,1),%r9
  jbe    L47
  nopw   0x0(%rax,%rax,1)
L23:
  movdqu (%rdi),%xmm2
  movdqu (%rsi),%xmm0
  add    $0x10,%rsi
  sub    $0x10,%rdi
  pshufd $0x1b,%xmm2,%xmm1
  pshufd $0x1b,%xmm0,%xmm0
  movups %xmm1,-0x10(%rsi)
  movups %xmm0,0x10(%rdi)
  cmp    %r9,%rsi
  jne    L23
  cmp    %ebx,%ebp
  je     L110
  mov    %r12d,%r11d
  cmp    $0x1,%r12d
  je     L70
  mov    %ebx,%edi
  mov    %ebx,%esi
L119:
  shl    $0x2,%rdi
  mov    %r8,%r9
  sub    %rdi,%r9
  lea    (%rcx,%rdi,1),%r10
  mov    %r11d,%edi
  add    %rcx,%r9
  movq   (%r10),%xmm0
  and    $0xfffffffe,%edi
  movq   (%r9),%xmm1
  pshufd $0xe1,%xmm0,%xmm0
  pshufd $0xe1,%xmm1,%xmm1
  movq   %xmm1,(%r10)
  movq   %xmm0,(%r9)
  lea    (%rdi,%rsi,1),%r9d
  cmp    %edi,%r11d
  je     L110
L19:
  movslq %r9d,%rsi
  lea    (%rcx,%rsi,4),%rdi
  mov    %edx,%esi
  sub    %r9d,%esi
  mov    (%rdi),%r10d
  movslq %esi,%rsi
  lea    -0x4(%rcx,%rsi,4),%rcx
  mov    (%rcx),%esi
  mov    %esi,(%rdi)
  mov    %r10d,(%rcx)
L110:
  add    $0x8,%rax
  cmp    %r14,%rax
  jne    L15
L102:
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L47:
  mov    %ebp,%r11d
  xor    %edi,%edi
  xor    %esi,%esi
  jmp    L119
L70:
  mov    %ebx,%r9d
  jmp    L19
L127:
  sub    $0x1,%edx
  mov    %ebp,%r10d
  sub    $0x4,%r8
  lea    0x8(%rax,%rdx,8),%r11
  shl    $0x2,%r10
  nopl   0x0(%rax)
L4:
  mov    (%rax),%rdx
  lea    (%rdx,%r8,1),%rcx
  lea    (%r10,%rdx,1),%r9
  nopl   0x0(%rax,%rax,1)
L79:
  mov    (%rcx),%edi
  mov    (%rdx),%esi
  add    $0x4,%rdx
  sub    $0x4,%rcx
  mov    %edi,-0x4(%rdx)
  mov    %esi,0x4(%rcx)
  cmp    %r9,%rdx
  jne    L79
  add    $0x8,%rax
  cmp    %r11,%rax
  jne    L4
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L148:
  ret
```

assistant: ```c
void rotate(int **matrix, int matrixRowSize, int matrixColSize) {
  int i, j, tmp, n;
  n = matrixColSize;
  for (i = 0; i < n; ++i) {
    for (j = i + 1; j < n; ++j) {
      tmp = matrix[i][j];
      matrix[i][j] = matrix[j][i];
      matrix[j][i] = tmp;
    }
  }
  for (i = 0; i < n; ++i) {
    for (j = 0; j < n / 2; ++j) {
      tmp = matrix[i][j];
      matrix[i][j] = matrix[i][n - j - 1];
      matrix[i][n - j - 1] = tmp;
    }
  }
}
```