user: What is the c source code of the assembly code below:

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x28,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  lea    D40(%rip),%rdi
  call   <printf@plt>
  lea    -0x3c(%rbp),%rsi
  lea    D27(%rip),%rdi
  call   <scanf@plt>
  mov    -0x3c(%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
L62:
  cmp    %rdx,%rsp
  je     L92
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L62
L92:
  mov    %rcx,%rax
  and    $0xfff,%eax
  sub    %rax,%rsp
  test   %rax,%rax
  je     L49
  orq    $0x0,-0x8(%rsp,%rax,1)
L49:
  lea    0x3(%rsp),%r14
  mov    %r14,%rax
  shr    $0x2,%rax
  mov    %rax,-0x48(%rbp)
  and    $0xfffffffffffffffc,%r14
  lea    D6(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  cmpl   $0x0,-0x3c(%rbp)
  jle    L77
  mov    %r14,%rbx
  mov    %r14,%r13
  mov    $0x0,%r12d
  lea    D27(%rip),%r15
L68:
  mov    %r13,%rsi
  mov    %r15,%rdi
  call   <scanf@plt>
  add    $0x1,%r12d
  mov    -0x3c(%rbp),%eax
  add    $0x4,%r13
  cmp    %r12d,%eax
  jg     L68
  mov    -0x48(%rbp),%rdi
  mov    0x0(,%rdi,4),%r12d
  test   %eax,%eax
  jle    L119
  mov    %eax,%eax
  lea    (%r14,%rax,4),%rsi
  mov    %r14,%rdx
  mov    %r12d,%eax
L76:
  mov    (%rdx),%ecx
  cmp    %ecx,%eax
  cmovl  %ecx,%eax
  add    $0x4,%rdx
  cmp    %rsi,%rdx
  jne    L76
L30:
  mov    (%rbx),%edx
  mov    %r12d,%ecx
  cmp    %r12d,%edx
  cmovge %edx,%r12d
  cmp    %edx,%eax
  cmovle %ecx,%r12d
  add    $0x4,%rbx
  cmp    %rsi,%rbx
  jne    L30
L119:
  lea    D31(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  cmpl   $0x0,-0x3c(%rbp)
  jle    L13
  mov    $0x0,%ebx
  lea    D3(%rip),%r13
L79:
  mov    (%r14,%rbx,4),%esi
  mov    %r13,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  add    $0x1,%rbx
  cmp    %ebx,-0x3c(%rbp)
  jg     L79
L13:
  lea    D63(%rip),%rdi
  call   <puts@plt>
  mov    %r12d,%esi
  lea    D56(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L37
  mov    $0x0,%eax
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
L77:
  mov    -0x48(%rbp),%rax
  mov    0x0(,%rax,4),%r12d
  jmp    L119
L37:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_label: D40
type_infered: string
name: parse_data
arguments: data_label: D27
type_infered: string
name: parse_data
arguments: data_label: D6
type_infered: string
name: parse_data
arguments: data_label: D31
type_infered: string
name: parse_data
arguments: data_label: D3
type_infered: string
name: parse_data
arguments: data_label: D63
type_infered: string
name: parse_data
arguments: data_label: D56
type_infered: string

tool: D40: Enter the length of the array: 

tool: D27: %d

tool: D6: Enter %d elements of the array: 


tool: D31: The Array: 
{

tool: D3:   %d

tool: D63: }

tool: D56: Second largest element: %d


assistant: ```c
int main() {
  int i, length, largest, secLargest;
  printf("Enter the length of the array: ");
  scanf("%d", &length);
  int arr[length];
  printf("Enter %d elements of the array: \n", length);
  for (i = 0; i < length; i++)
    scanf("%d", &arr[i]);
  secLargest = largest = arr[0];
  for (i = 0; i < length; i++)
    if (largest <= arr[i])
      largest = arr[i];
  for (i = 0; i < length; i++)
    if (secLargest <= arr[i] && arr[i] < largest)
      secLargest = arr[i];
  printf("The Array: \n{");
  for (i = 0; i < length; i++)
    printf("  %d", arr[i]);
  printf("}\n");
  printf("Second largest element: %d\n", secLargest);
}
```