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

```asm
<ordenDescendente>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0xfb8,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0xfa8(%rsp)
  xor    %eax,%eax
  test   %esi,%esi
  jle    L82
  mov    %rdi,%rbp
  mov    %edx,%r12d
  lea    D119(%rip),%rdi
  mov    %esi,%ebx
  call   <printf@plt>
  cmp    $0x4,%r12d
  ja     L13
  lea    D147(%rip),%rdx
  mov    %r12d,%eax
  movslq (%rdx,%rax,4),%rax
  add    %rdx,%rax
  notrack jmp *%rax
  lea    D45(%rip),%rdi
  call   <puts@plt>
L13:
  lea    D110(%rip),%r13
  xor    %eax,%eax
  mov    %rsp,%r14
  movslq %r12d,%r12
  mov    %r13,%rdi
  lea    D64(%rip),%rsi
  lea    0x0(%rbp,%r12,4),%r12
  xor    %r15d,%r15d
  call   <printf@plt>
  mov    %r13,%rdi
  lea    D51(%rip),%rsi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %r13,%rdi
  lea    D28(%rip),%rsi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %r13,%rdi
  lea    D73(%rip),%rsi
  xor    %eax,%eax
  call   <printf@plt>
  movslq %ebx,%r13
  lea    D100(%rip),%rsi
  xor    %eax,%eax
  lea    D17(%rip),%rdi
  call   <printf@plt>
  lea    0x0(,%r13,4),%rdx
  mov    $0xff,%esi
  mov    %r14,%rdi
  call   <memset@plt>
L42:
  mov    %r12,%rdx
  xor    %eax,%eax
  xor    %r8d,%r8d
  xor    %esi,%esi
  nopw   0x0(%rax,%rax,1)
L10:
  mov    (%rdx),%ecx
  cmp    %esi,%ecx
  jle    L31
  cmpl   $0xffffffff,(%r14,%rax,4)
  cmove  %eax,%r8d
  cmove  %ecx,%esi
L31:
  add    $0x1,%rax
  add    $0x14,%rdx
  cmp    %rax,%r13
  jne    L10
  movslq %r8d,%rax
  mov    %r8d,%esi
  mov    %rbp,%rdi
  add    $0x1,%r15d
  movl   $0x1,(%rsp,%rax,4)
  call   <imprimirFilaDeMatriz@plt>
  cmp    %r15d,%ebx
  jne    L42
  mov    0xfa8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L5
  add    $0xfb8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L82:
  mov    0xfa8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L5
  add    $0xfb8,%rsp
  lea    D86(%rip),%rdi
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    1090 <puts@plt>
  lea    D63(%rip),%rdi
  call   <puts@plt>
  jmp    L13
  lea    D109(%rip),%rdi
  call   <puts@plt>
  jmp    L13
  lea    D24(%rip),%rdi
  call   <puts@plt>
  jmp    L13
  lea    D42(%rip),%rdi
  call   <puts@plt>
  jmp    L13
L5:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: label: D119
type_infered: string
name: read_data
arguments: label: D45
type_infered: string
name: read_data
arguments: label: D110
type_infered: string
name: read_data
arguments: label: D64
type_infered: string
name: read_data
arguments: label: D51
type_infered: string
name: read_data
arguments: label: D28
type_infered: string
name: read_data
arguments: label: D73
type_infered: string
name: read_data
arguments: label: D100
type_infered: string
name: read_data
arguments: label: D17
type_infered: string
name: read_data
arguments: label: D86
type_infered: string
name: read_data
arguments: label: D63
type_infered: string
name: read_data
arguments: label: D109
type_infered: string
name: read_data
arguments: label: D24
type_infered: string
name: read_data
arguments: label: D42
type_infered: string

tool: D119: Orden Ascendente Por 

tool: D45: Piso:

tool: D110: %15s

tool: D64: ID

tool: D51: Edad

tool: D28: Pacientes

tool: D73: Horario

tool: D100: Piso

tool: D17: %15s


tool: D86: Matriz Vacia

tool: D63: Horario:

tool: D109: ID: 

tool: D24: Edad:

tool: D42: Pacientes:

assistant: ```c
void ordenDescendente(int control[1000][5], int registros, int columna) {
  if (registros > 0) {
    printf("Orden Ascendente Por ");
    switch (columna) {
    case 0:
      printf("ID: \n");
      break;
    case 1:
      printf("Edad:\n");
      break;
    case 2:
      printf("Pacientes:\n");
      break;
    case 3:
      printf("Horario:\n");
      break;
    case 4:
      printf("Piso:\n");
      break;
    }
    printf("%15s", "ID");
    printf("%15s", "Edad");
    printf("%15s", "Pacientes");
    printf("%15s", "Horario");
    printf("%15s\n", "Piso");
    int maxValor;
    int minPosicion = 0;
    int posicionesVisitadas[1000];
    for (int i = 0; i < registros; i++) {
      posicionesVisitadas[i] = -1;
    }
    for (int c = 0; c < registros; c++) {
      maxValor = 0;
      minPosicion = 0;
      for (int i = 0; i < registros; i++) {
        if (control[i][columna] > maxValor && posicionesVisitadas[i] == -1) {
          maxValor = control[i][columna];
          minPosicion = i;
        }
      }
      posicionesVisitadas[minPosicion] = 1;
      imprimirFilaDeMatriz(control, minPosicion);
    }
  } else {
    printf("Matriz Vacia\n");
  }
}
```