user: What would the C source look like for the assembly code provided here?

```asm
<format_table_change>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %edi,%ebx
  mov    %esi,%r14d
  mov    %rdx,%r11
  test   %esi,%esi
  jle    L202
  mov    %esi,%r15d
  shl    $0x2,%r15
  mov    $0x0,%edx
  lea    -0x2(%rdi),%ebp
  add    $0x2,%rbp
  lea    -0x1(%rdi),%r13d
  lea    0x10(%r11),%r12
  jmp    L84
L189:
  add    $0x8,%rax
  cmp    %r9,%rax
  je     L169
L57:
  mov    %rdx,%rsi
  add    -0x8(%r8),%rsi
  mov    (%rsi),%ecx
  mov    (%rax),%rdi
  mov    (%rdi,%rdx,1),%edi
  cmp    %edi,%ecx
  jle    L189
  mov    %edi,(%rsi)
  mov    (%rax),%rsi
  mov    %ecx,(%rsi,%rdx,1)
  jmp    L189
L169:
  add    $0x1,%r10
  add    $0x8,%r8
  cmp    %rbp,%r10
  je     L52
L143:
  cmp    %r10d,%ebx
  jle    L169
  mov    %r13d,%eax
  sub    %r10d,%eax
  lea    -0x1(%r10,%rax,1),%rax
  lea    (%r12,%rax,8),%r9
  mov    %r8,%rax
  jmp    L57
L52:
  add    $0x4,%rdx
  cmp    %r15,%rdx
  je     L202
L84:
  lea    0x8(%r11),%r8
  mov    $0x1,%r10d
  cmp    $0x1,%ebx
  jg     L143
  jmp    L52
L202:
  cmp    $0x1,%r14d
  jle    L207
  lea    -0x1(%r14),%r15d
  lea    -0x1(%rbx),%eax
  lea    0x8(%r11,%rax,8),%r9
  mov    $0x4,%r13d
  mov    $0x0,%r12d
  mov    $0x0,%ebp
  jmp    L144
L33:
  test   %ebx,%ebx
  jle    L173
  mov    %r11,%rdx
L221:
  mov    (%rdx),%rsi
  lea    (%rsi,%rdi,1),%rcx
  mov    (%rcx),%r8d
  mov    (%rsi,%rax,1),%esi
  mov    %esi,(%rcx)
  mov    (%rdx),%rcx
  mov    %r8d,(%rcx,%rax,1)
  add    $0x8,%rdx
  cmp    %r9,%rdx
  jne    L221
  jmp    L129
L173:
  add    $0x4,%rax
  cmp    %r10,%rax
  je     L203
L21:
  mov    (%r11),%rdx
  mov    (%rdx,%rax,1),%ecx
  cmp    %ecx,(%rdx,%rdi,1)
  jg     L33
L129:
  mov    (%r11),%rdx
  mov    (%rdx,%rax,1),%ecx
  cmp    %ecx,(%rdx,%rdi,1)
  jne    L173
  mov    0x8(%r11),%rdx
  mov    (%rdx,%rax,1),%ecx
  cmp    %ecx,(%rdx,%rdi,1)
  jle    L173
  test   %ebx,%ebx
  jle    L173
  mov    %r11,%rdx
L187:
  mov    (%rdx),%rsi
  lea    (%rsi,%rdi,1),%rcx
  mov    (%rcx),%r8d
  mov    (%rsi,%rax,1),%esi
  mov    %esi,(%rcx)
  mov    (%rdx),%rcx
  mov    %r8d,(%rcx,%rax,1)
  add    $0x8,%rdx
  cmp    %r9,%rdx
  jne    L187
  jmp    L173
L203:
  add    $0x1,%r12
  add    $0x4,%r13
  cmp    %r15d,%ebp
  je     L207
L144:
  add    $0x1,%ebp
  cmp    %ebp,%r14d
  jle    L203
  lea    0x0(,%r12,4),%rdi
  mov    %r15d,%eax
  sub    %ebp,%eax
  lea    0x2(%r12,%rax,1),%r10
  shl    $0x2,%r10
  mov    %r13,%rax
  jmp    L21
L207:
  mov    %r11,%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
*format_table_change(int n, int p, int **tab) {
  int i, j, k, tmp;
  for (j = 0; j < p; j++) {
    for (i = 0; i < n - 1; i++) {
      for (k = i + 1; k < n; k++) {
        if (tab[i][j] > tab[k][j]) {
          tmp = tab[i][j];
          tab[i][j] = tab[k][j];
          tab[k][j] = tmp;
        }
      }
    }
  }
  for (j = 0; j < p - 1; j++) {
    for (k = j + 1; k < p; k++) {
      if (tab[0][j] > tab[0][k]) {
        for (i = 0; i < n; i++) {
          tmp = tab[i][j];
          tab[i][j] = tab[i][k];
          tab[i][k] = tmp;
        }
      }
      if (tab[0][j] == tab[0][k]) {
        if (tab[1][j] > tab[1][k]) {
          for (i = 0; i < n; i++) {
            tmp = tab[i][j];
            tab[i][j] = tab[i][k];
            tab[i][k] = tmp;
          }
        }
      }
    }
  }
  return tab;
}
```