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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x10,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x28(%rbp)
  xor    %eax,%eax
  lea    D54(%rip),%rdi
  call   <printf@plt>
  lea    -0x2c(%rbp),%rsi
  lea    D37(%rip),%rdi
  call   <scanf@plt>
  mov    -0x2c(%rbp),%esi
  movslq %esi,%rax
  lea    0xf(,%rax,4),%rax
  mov    %rax,%rcx
  and    $0xfffffffffffffff0,%rcx
  and    $0xfffffffffffff000,%rax
  mov    %rsp,%rdx
  sub    %rax,%rdx
L97:
  cmp    %rdx,%rsp
  je     L143
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L97
L143:
  mov    %rcx,%rax
  and    $0xfff,%eax
  sub    %rax,%rsp
  test   %rax,%rax
  je     L40
  orq    $0x0,-0x8(%rsp,%rax,1)
L40:
  mov    %rsp,%rbx
  lea    D47(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x2c(%rbp),%esi
  test   %esi,%esi
  jle    L18
  mov    %rbx,%r13
  mov    $0x0,%r12d
  lea    D37(%rip),%r14
L74:
  mov    %r13,%rsi
  mov    %r14,%rdi
  call   <scanf@plt>
  add    $0x1,%r12d
  mov    -0x2c(%rbp),%esi
  add    $0x4,%r13
  cmp    %r12d,%esi
  jg     L74
L18:
  cmp    $0x1,%esi
  jle    L95
  lea    -0x2(%rsi),%r9d
  add    $0x2,%r9
  mov    $0x1,%r8d
  mov    $0x0,%edi
  jmp    L102
L50:
  add    $0x1,%rdi
  add    $0x1,%r8
  cmp    %r9,%r8
  je     L95
L102:
  mov    %edi,%edx
  cmp    %r8d,%esi
  jle    L50
  mov    %r8,%rax
L44:
  movslq %edx,%rcx
  mov    (%rbx,%rax,4),%r10d
  cmp    %r10d,(%rbx,%rcx,4)
  cmovg  %eax,%edx
  add    $0x1,%rax
  cmp    %eax,%esi
  jg     L44
  cmp    %edi,%edx
  je     L50
  mov    (%rbx,%rdi,4),%eax
  movslq %edx,%rdx
  mov    (%rbx,%rdx,4),%ecx
  mov    %ecx,(%rbx,%rdi,4)
  mov    %eax,(%rbx,%rdx,4)
  jmp    L50
L95:
  lea    D39(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  cmpl   $0x0,-0x2c(%rbp)
  jle    L19
  mov    $0x0,%r12d
  lea    D38(%rip),%r13
L34:
  mov    (%rbx,%r12,4),%esi
  mov    %r13,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  add    $0x1,%r12
  cmp    %r12d,-0x2c(%rbp)
  jg     L34
L19:
  mov    -0x28(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L122
  mov    $0x0,%eax
  lea    -0x20(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %rbp
  ret
L122:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: data_label: D54
datatype: string
name: disassemble_data
arguments: data_label: D37
datatype: string
name: disassemble_data
arguments: data_label: D47
datatype: string
name: disassemble_data
arguments: data_label: D39
datatype: string
name: disassemble_data
arguments: data_label: D38
datatype: string

tool: D54: 
 Enter the number of Elements: 

tool: D37: %d

tool: D47: 
 Enter thr %d Elements: 

tool: D39: 
 The Sorted array is : 

tool: D38: %d 

assistant: ```c
int main() {
  int n, i, j, min, temp;
  printf("\n Enter the number of Elements: ");
  scanf("%d", &n);
  int a[n];
  printf("\n Enter thr %d Elements: ", n);
  for (i = 0; i < n; i++) {
    scanf("%d", &a[i]);
  }
  for (i = 0; i < n - 1; i++) {
    min = i;
    for (j = i + 1; j < n; j++) {
      if (a[min] > a[j])
        min = j;
    }
    if (min != i) {
      temp = a[i];
      a[i] = a[min];
      a[min] = temp;
    }
  }
  printf("\n The Sorted array is : ");
  for (i = 0; i < n; i++) {
    printf("%d ", a[i]);
  }
  return 0;
}
```