user: Converte this assembly snippet into its equivalent C code:

```asm
<main>:
  endbr64
  push   %r15
  lea    D73(%rip),%rdi
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  call   <printf@plt>
  lea    D58(%rip),%rdi
  lea    0xc(%rsp),%rdx
  xor    %eax,%eax
  lea    0x8(%rsp),%rsi
  call   <scanf@plt>
  mov    0x8(%rsp),%edi
  test   %edi,%edi
  jle    L21
  lea    D86(%rip),%r14
  xor    %r13d,%r13d
  lea    D126(%rip),%r12
  lea    D120(%rip),%rbp
  cs nopw 0x0(%rax,%rax,1)
L84:
  mov    0xc(%rsp),%esi
  mov    %r14,%rbx
  xor    %r15d,%r15d
  test   %esi,%esi
  jle    L18
  xchg   %ax,%ax
L26:
  mov    %r12,%rdi
  xor    %eax,%eax
  add    $0x1,%r15d
  call   <printf@plt>
  mov    %rbx,%rsi
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  add    $0x4,%rbx
  cmp    %r15d,0xc(%rsp)
  jg     L26
L18:
  add    $0x1,%r13
  add    $0x10,%r14
  cmp    %r13d,0x8(%rsp)
  jg     L84
L21:
  lea    D99(%rip),%rdi
  call   <puts@plt>
  mov    0x8(%rsp),%ecx
  test   %ecx,%ecx
  jle    L77
  lea    D86(%rip),%rbp
  xor    %r13d,%r13d
  lea    D33(%rip),%r12
L113:
  mov    0xc(%rsp),%edx
  xor    %ebx,%ebx
  test   %edx,%edx
  jle    L7
L123:
  mov    0x0(%rbp,%rbx,4),%esi
  mov    %r12,%rdi
  xor    %eax,%eax
  add    $0x1,%rbx
  call   <printf@plt>
  cmp    %ebx,0xc(%rsp)
  jg     L123
L7:
  mov    $0xa,%edi
  add    $0x1,%r13d
  add    $0x10,%rbp
  call   <putchar@plt>
  cmp    %r13d,0x8(%rsp)
  jg     L113
L77:
  lea    D90(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    D132(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    0x10(%rsp),%rsi
  lea    0x14(%rsp),%rdx
  xor    %eax,%eax
  lea    D58(%rip),%rdi
  call   <scanf@plt>
  lea    D101(%rip),%rdi
  call   <puts@plt>
  mov    0x8(%rsp),%esi
  test   %esi,%esi
  jle    L46
  mov    0x10(%rsp),%eax
  lea    D86(%rip),%rbp
  sub    $0x1,%esi
  lea    -0x1(%rax),%ecx
  mov    0x14(%rsp),%eax
  movslq %ecx,%rcx
  sub    $0x1,%eax
  mov    %rcx,%rdx
  lea    (%rsi,%rcx,4),%rsi
  cltq
  shl    $0x4,%rdx
  lea    0x4(%rbp),%rcx
  shl    $0x4,%rax
  add    %rbp,%rdx
  lea    (%rcx,%rsi,4),%rdi
  add    %rbp,%rax
L102:
  mov    (%rax),%esi
  mov    (%rdx),%ecx
  add    $0x4,%rdx
  add    $0x4,%rax
  mov    %esi,-0x4(%rdx)
  mov    %ecx,-0x4(%rax)
  cmp    %rdi,%rdx
  jne    L102
  xor    %r13d,%r13d
  lea    D33(%rip),%r12
L67:
  mov    0xc(%rsp),%eax
  xor    %ebx,%ebx
  test   %eax,%eax
  jle    L51
L114:
  mov    0x0(%rbp,%rbx,4),%esi
  mov    %r12,%rdi
  xor    %eax,%eax
  add    $0x1,%rbx
  call   <printf@plt>
  cmp    %ebx,0xc(%rsp)
  jg     L114
L51:
  mov    $0xa,%edi
  add    $0x1,%r13d
  add    $0x10,%rbp
  call   <putchar@plt>
  cmp    %r13d,0x8(%rsp)
  jg     L67
L46:
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L92
  add    $0x28,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L92:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: label: D73
datatype: string
name: retrieve_data
arguments: label: D58
datatype: string
name: retrieve_data
arguments: label: D126
datatype: string
name: retrieve_data
arguments: label: D120
datatype: string
name: retrieve_data
arguments: label: D99
datatype: string
name: retrieve_data
arguments: label: D33
datatype: string
name: retrieve_data
arguments: label: D90
datatype: string
name: retrieve_data
arguments: label: D132
datatype: string
name: retrieve_data
arguments: label: D101
datatype: string

tool: D73: Please enter the first two numbers, seperated by a space, specified in the pdf: 

tool: D58: %d %d

tool: D126: Please enter one number from the input: 

tool: D120: %d,

tool: D99: 
Before:

tool: D33: %d 

tool: D90: Please enter two numbers, seperated by a space, specified in the pdf, these 

tool: D132: should be the numbers immediately after where you left of before: 

tool: D101: 
After:

assistant: ```c
int main(void) {
  static int array1[4][4];
  int i, j, m, n, a, b, c, p, q, r;
  printf("Please enter the first two numbers, seperated by a space, specified in the pdf: ");
  scanf("%d %d", &m, &n);
  for (i = 0; i < m; ++i) {
    for (j = 0; j < n; ++j) {
      printf("Please enter one number from the input: ");
      scanf("%d,", &array1[i][j]);
    }
  }
  printf("\nBefore:\n");
  for (i = 0; i < m; i++) {
    for (j = 0; j < n; j++) {
      printf("%d ", array1[i][j]);
    }
    printf("\n");
  }
  printf("Please enter two numbers, seperated by a space, specified in the pdf, these ");
  printf("should be the numbers immediately after where you left of before: ");
  scanf("%d %d", &a, &b);
  printf("\nAfter:\n");
  for (i = 0; i < m; ++i) {
    c = array1[a - 1][i];
    array1[a - 1][i] = array1[b - 1][i];
    array1[b - 1][i] = c;
  }
  for (i = 0; i < m; i++) {
    for (j = 0; j < n; j++) {
      printf("%d ", array1[i][j]);
    }
    printf("\n");
  }
  return 0;
}
```