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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  lea    D31(%rip),%r14
  push   %r13
  push   %r12
  lea    D61(%rip),%r12
  push   %rbx
  lea    -0x3c(%rbp),%rbx
  sub    $0x18,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  cs nopw 0x0(%rax,%rax,1)
L19:
  mov    %r12,%rdi
  call   <puts@plt>
  mov    %rbx,%rsi
  mov    %r14,%rdi
  call   <scanf@plt>
  movslq -0x3c(%rbp),%rax
  test   %eax,%eax
  jle    L19
  lea    0xf(,%rax,4),%rax
  mov    %rsp,%rcx
  mov    %rax,%rdx
  and    $0xfffffffffffff000,%rax
  sub    %rax,%rcx
  and    $0xfffffffffffffff0,%rdx
  cmp    %rcx,%rsp
  je     L158
L118:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rcx,%rsp
  jne    L118
L158:
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  jne    L138
L154:
  mov    %rsp,%rbx
  xor    %r12d,%r12d
  lea    D43(%rip),%r15
  mov    %rbx,%r13
  nopw   0x0(%rax,%rax,1)
L5:
  mov    %r15,%rdi
  add    $0x1,%r12d
  call   <puts@plt>
  mov    %r13,%rsi
  mov    %r14,%rdi
  add    $0x4,%r13
  call   <scanf@plt>
  cmp    %r12d,-0x3c(%rbp)
  jg     L5
  lea    D74(%rip),%rdi
  xor    %eax,%eax
  xor    %r12d,%r12d
  call   <printf@plt>
  mov    -0x3c(%rbp),%edx
  lea    D67(%rip),%r14
  test   %edx,%edx
  jle    L34
  nopl   0x0(%rax,%rax,1)
L151:
  mov    (%rbx,%r12,4),%esi
  mov    %r14,%rdi
  xor    %eax,%eax
  add    $0x1,%r12
  call   <printf@plt>
  cmp    %r12d,-0x3c(%rbp)
  jg     L151
L34:
  lea    D44(%rip),%r12
  mov    %r12,%rdi
  call   <puts@plt>
  mov    -0x3c(%rbp),%esi
  mov    $0x1,%r8d
  lea    0x1(%rsi),%r10d
  test   %esi,%esi
  jle    L6
  nopl   0x0(%rax,%rax,1)
L128:
  mov    -0x4(%rbx,%r8,4),%r9d
  lea    -0x1(%r8),%edi
  cmp    %r8d,%esi
  jle    L102
  mov    %r8,%rax
  mov    %r9d,%ecx
  nopl   0x0(%rax,%rax,1)
L73:
  mov    (%rbx,%rax,4),%edx
  cmp    %ecx,%edx
  jge    L52
  mov    %edx,%ecx
  mov    %eax,%edi
L52:
  add    $0x1,%rax
  cmp    %eax,%esi
  jg     L73
L13:
  mov    %ecx,-0x4(%rbx,%r8,4)
  movslq %edi,%rdi
  add    $0x1,%r8
  mov    %r9d,(%rbx,%rdi,4)
  cmp    %r10,%r8
  jne    L128
L6:
  lea    D72(%rip),%rdi
  xor    %eax,%eax
  xor    %r13d,%r13d
  call   <printf@plt>
  mov    -0x3c(%rbp),%eax
  lea    D67(%rip),%r14
  test   %eax,%eax
  jle    L8
  nopw   0x0(%rax,%rax,1)
L93:
  mov    (%rbx,%r13,4),%esi
  mov    %r14,%rdi
  xor    %eax,%eax
  add    $0x1,%r13
  call   <printf@plt>
  cmp    %r13d,-0x3c(%rbp)
  jg     L93
L8:
  mov    %r12,%rdi
  call   <puts@plt>
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L94
  lea    -0x28(%rbp),%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
L102:
  mov    %r9d,%ecx
  jmp    L13
L138:
  orq    $0x0,-0x8(%rsp,%rdx,1)
  jmp    L154
L94:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_tag: D31
type_guessed: string
name: parse_data
arguments: data_tag: D61
type_guessed: string
name: parse_data
arguments: data_tag: D43
type_guessed: string
name: parse_data
arguments: data_tag: D74
type_guessed: string
name: parse_data
arguments: data_tag: D67
type_guessed: string
name: parse_data
arguments: data_tag: D44
type_guessed: string
name: parse_data
arguments: data_tag: D72
type_guessed: string

tool: D31: %d

tool: D61: Enter the number of elements

tool: D43: 
Enter the element

tool: D74: 
Array is: {

tool: D67:  %d 

tool: D44: }

tool: D72: 
Array after selection-sorting is: {

assistant: ```c
main() {
  int n;
  int i, j;
  int temp, min;
  do {
    printf("Enter the number of elements\n");
    scanf("%d", &n);
  } while (n < 1);
  int arr[n];
  for (i = 0; i < n; i++) {
    printf("\nEnter the element\n");
    scanf("%d", &arr[i]);
  }
  printf("\nArray is: {");
  for (i = 0; i < n; i++)
    printf(" %d ", arr[i]);
  printf("}\n");
  for (i = 0; i < n; i++) {
    min = i;
    for (j = i + 1; j < n; j++) {
      if (arr[j] < arr[min])
        min = j;
    }
    temp = arr[i];
    arr[i] = arr[min];
    arr[min] = temp;
  }
  printf("\nArray after selection-sorting is: {");
  for (i = 0; i < n; i++)
    printf(" %d ", arr[i]);
  printf("}\n");
}
```