user: 请将以下的汇编代码转换成C语言代码:

```asm
<main>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0xcb0,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0xca8(%rsp)
  xor    %eax,%eax
  lea    D86(%rip),%rdi
  call   <printf@plt>
  lea    0x14(%rsp),%rdx
  lea    0x10(%rsp),%rsi
  lea    D20(%rip),%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  lea    D43(%rip),%rdi
  call   <printf@plt>
  cmpl   $0x0,0x10(%rsp)
  jle    L34
  lea    0x20(%rsp),%r14
  mov    $0x0,%r13d
  lea    D15(%rip),%r12
  jmp    L164
L144:
  mov    %rbp,%rsi
  mov    %r12,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  add    $0x1,%ebx
  add    $0x4,%rbp
  cmp    %ebx,0x14(%rsp)
  jg     L144
L68:
  add    $0x1,%r13
  add    $0x50,%r14
  cmp    %r13d,0x10(%rsp)
  jle    L34
L164:
  mov    %r14,%rbp
  mov    $0x0,%ebx
  cmpl   $0x0,0x14(%rsp)
  jg     L144
  jmp    L68
L34:
  lea    D56(%rip),%rdi
  call   <printf@plt>
  lea    0x1c(%rsp),%rdx
  lea    0x18(%rsp),%rsi
  lea    D20(%rip),%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  lea    D98(%rip),%rdi
  call   <printf@plt>
  cmpl   $0x0,0x18(%rsp)
  jle    L0
  lea    0x660(%rsp),%r14
  mov    $0x0,%r13d
  lea    D15(%rip),%r12
  jmp    L40
L69:
  mov    %rbp,%rsi
  mov    %r12,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  add    $0x1,%ebx
  add    $0x4,%rbp
  cmp    %ebx,0x1c(%rsp)
  jg     L69
L161:
  add    $0x1,%r13
  add    $0x50,%r14
  cmp    %r13d,0x18(%rsp)
  jle    L0
L40:
  mov    %r14,%rbp
  mov    $0x0,%ebx
  cmpl   $0x0,0x1c(%rsp)
  jg     L69
  jmp    L161
L0:
  lea    D93(%rip),%rdi
  call   <printf@plt>
  lea    D49(%rip),%rdi
  call   <printf@plt>
  lea    D10(%rip),%rdi
  call   <printf@plt>
  lea    D39(%rip),%rdi
  call   <printf@plt>
  lea    D63(%rip),%rdi
  call   <printf@plt>
  lea    0xc(%rsp),%rsi
  lea    D15(%rip),%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  mov    0xc(%rsp),%eax
  cmp    $0x3,%eax
  je     L73
  jg     L45
  cmp    $0x1,%eax
  je     L63
  cmp    $0x2,%eax
  jne    L180
  lea    0x660(%rsp),%rsi
  lea    0x20(%rsp),%rdi
  mov    0x1c(%rsp),%r9d
  mov    0x18(%rsp),%r8d
  mov    0x14(%rsp),%ecx
  mov    0x10(%rsp),%edx
  call   <subtract@plt>
  jmp    L196
L45:
  cmp    $0x4,%eax
  jne    L180
  lea    0x20(%rsp),%rdi
  mov    0x14(%rsp),%edx
  mov    0x10(%rsp),%esi
  call   <transpose@plt>
  jmp    L196
L63:
  lea    0x660(%rsp),%rsi
  lea    0x20(%rsp),%rdi
  mov    0x1c(%rsp),%r9d
  mov    0x18(%rsp),%r8d
  mov    0x14(%rsp),%ecx
  mov    0x10(%rsp),%edx
  call   <add@plt>
L196:
  mov    0xca8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L89
  mov    $0x0,%eax
  add    $0xcb0,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L73:
  lea    0x660(%rsp),%rsi
  lea    0x20(%rsp),%rdi
  mov    0x1c(%rsp),%r9d
  mov    0x18(%rsp),%r8d
  mov    0x14(%rsp),%ecx
  mov    0x10(%rsp),%edx
  call   <multiply@plt>
  jmp    L196
L180:
  lea    D58(%rip),%rdi
  call   <printf@plt>
  jmp    L196
L89:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: label: D86
type_guessed: string
name: retrieve_data
arguments: label: D20
type_guessed: string
name: retrieve_data
arguments: label: D43
type_guessed: string
name: retrieve_data
arguments: label: D15
type_guessed: string
name: retrieve_data
arguments: label: D56
type_guessed: string
name: retrieve_data
arguments: label: D98
type_guessed: string
name: retrieve_data
arguments: label: D93
type_guessed: string
name: retrieve_data
arguments: label: D49
type_guessed: string
name: retrieve_data
arguments: label: D10
type_guessed: string
name: retrieve_data
arguments: label: D39
type_guessed: string
name: retrieve_data
arguments: label: D63
type_guessed: string
name: retrieve_data
arguments: label: D58
type_guessed: string

tool: D86: 
Enter number of rows and columns for matrix 1: 

tool: D20: %d %d

tool: D43: 
Enter matrix 1:


tool: D15: %d

tool: D56: 
Enter number of rows and columns for matrix 2: 

tool: D98: 
Enter matrix 2:


tool: D93: 
1) To perform matrix addition

tool: D49: 
2) To perform matrix subtraction

tool: D10: 
3) To perform matrix multiplication

tool: D39: 
4) To find transpose

tool: D63: 
Enter 1,2,3 or 4: 

tool: D58: 
Invalid Choice

assistant: ```c
int main() {
  int choice, m, n, p, q, i, j;
  int arr1[20][20], arr2[20][20];
  printf("\nEnter number of rows and columns for matrix 1: ");
  scanf("%d %d", &m, &n);
  printf("\nEnter matrix 1:\n");
  for (i = 0; i < m; i++)
    for (j = 0; j < n; j++)
      scanf("%d", &arr1[i][j]);
  printf("\nEnter number of rows and columns for matrix 2: ");
  scanf("%d %d", &p, &q);
  printf("\nEnter matrix 2:\n");
  for (i = 0; i < p; i++)
    for (j = 0; j < q; j++)
      scanf("%d", &arr2[i][j]);
  printf("\n1) To perform matrix addition");
  printf("\n2) To perform matrix subtraction");
  printf("\n3) To perform matrix multiplication");
  printf("\n4) To find transpose");
  printf("\nEnter 1,2,3 or 4: ");
  scanf("%d", &choice);
  switch (choice) {
  case 1:
    add(arr1, arr2, m, n, p, q);
    break;
  case 2:
    subtract(arr1, arr2, m, n, p, q);
    break;
  case 3:
    multiply(arr1, arr2, m, n, p, q);
    break;
  case 4:
    transpose(arr1, m, n);
    break;
  default:
    printf("\nInvalid Choice");
  }
  return 0;
}
```