user: Translate the below assembly code into C programming language:

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x38,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  lea    D23(%rip),%rdi
  call   <printf@plt>
  lea    -0x3c(%rbp),%rcx
  lea    -0x40(%rbp),%rdx
  lea    -0x44(%rbp),%rsi
  lea    D15(%rip),%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  movslq -0x44(%rbp),%rax
  lea    0xf(,%rax,4),%rax
  mov    %rax,%rcx
  and    $0xfffffffffffffff0,%rcx
  and    $0xfffffffffffff000,%rax
  mov    %rsp,%rdx
  sub    %rax,%rdx
L39:
  cmp    %rdx,%rsp
  je     L120
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L39
L120:
  mov    %rcx,%rax
  and    $0xfff,%eax
  sub    %rax,%rsp
  test   %rax,%rax
  je     L131
  orq    $0x0,-0x8(%rsp,%rax,1)
L131:
  mov    %rsp,%r13
  movslq -0x40(%rbp),%rax
  lea    0xf(,%rax,4),%rax
  mov    %rax,%rcx
  and    $0xfffffffffffffff0,%rcx
  and    $0xfffffffffffff000,%rax
  mov    %rsp,%rdx
  sub    %rax,%rdx
L28:
  cmp    %rdx,%rsp
  je     L104
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L28
L104:
  mov    %rcx,%rax
  and    $0xfff,%eax
  sub    %rax,%rsp
  test   %rax,%rax
  je     L145
  orq    $0x0,-0x8(%rsp,%rax,1)
L145:
  mov    %rsp,%r14
  movslq -0x3c(%rbp),%rax
  lea    0xf(,%rax,4),%rax
  mov    %rax,%rcx
  and    $0xfffffffffffffff0,%rcx
  and    $0xfffffffffffff000,%rax
  mov    %rsp,%rdx
  sub    %rax,%rdx
L20:
  cmp    %rdx,%rsp
  je     L23
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L20
L23:
  mov    %rcx,%rax
  and    $0xfff,%eax
  sub    %rax,%rsp
  test   %rax,%rax
  je     L15
  orq    $0x0,-0x8(%rsp,%rax,1)
L15:
  mov    %rsp,-0x58(%rbp)
  lea    D13(%rip),%rdi
  call   <puts@plt>
  cmpl   $0x0,-0x44(%rbp)
  jle    L29
  mov    %r13,%r12
  mov    $0x0,%ebx
  lea    D32(%rip),%r15
L133:
  mov    %r12,%rsi
  mov    %r15,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  add    $0x1,%ebx
  add    $0x4,%r12
  cmp    %ebx,-0x44(%rbp)
  jg     L133
L29:
  lea    D6(%rip),%rdi
  call   <puts@plt>
  cmpl   $0x0,-0x40(%rbp)
  jle    L66
  mov    %r14,%r12
  mov    $0x0,%ebx
  lea    D32(%rip),%r15
L10:
  mov    %r12,%rsi
  mov    %r15,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  add    $0x1,%ebx
  add    $0x4,%r12
  cmp    %ebx,-0x40(%rbp)
  jg     L10
L66:
  lea    D28(%rip),%rdi
  call   <puts@plt>
  cmpl   $0x0,-0x3c(%rbp)
  jle    L9
  mov    -0x58(%rbp),%r12
  mov    $0x0,%ebx
  lea    D32(%rip),%r15
L123:
  mov    %r12,%rsi
  mov    %r15,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  add    $0x1,%ebx
  add    $0x4,%r12
  cmp    %ebx,-0x3c(%rbp)
  jg     L123
L9:
  mov    $0x0,%ebx
  mov    %ebx,%r8d
  mov    -0x40(%rbp),%ecx
  mov    -0x44(%rbp),%edx
  mov    %r14,%rsi
  mov    %r13,%rdi
  call   <intersection@plt>
  mov    %rax,%rdi
  mov    %ebx,%r8d
  mov    -0x3c(%rbp),%ecx
  mov    %ebx,%edx
  mov    -0x58(%rbp),%rsi
  call   <intersection@plt>
  mov    %rax,%rbx
  lea    D52(%rip),%rdi
  call   <puts@plt>
  mov    %rbx,%rdi
  call   <free@plt>
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L53
  mov    $0x0,%eax
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
L53:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: data_label: D23
data_type: string
name: disassemble_data
arguments: data_label: D15
data_type: string
name: disassemble_data
arguments: data_label: D13
data_type: string
name: disassemble_data
arguments: data_label: D32
data_type: string
name: disassemble_data
arguments: data_label: D6
data_type: string
name: disassemble_data
arguments: data_label: D28
data_type: string
name: disassemble_data
arguments: data_label: D52
data_type: string

tool: D23: Enter no. of elements in array 1, 2 and 3: 

tool: D15: %d %d %d

tool: D13: Enter the elements in array-1 in sorted order: 

tool: D32: %d

tool: D6: Enter the elements in array-2 in sorted order: 

tool: D28: Enter the elements in array-3 in sorted order: 

tool: D52: 
Common elements in all 3 arrays are: 

assistant: ```c
int main() {
  int n1, n2, n3, i;
  printf("Enter no. of elements in array 1, 2 and 3: ");
  scanf("%d %d %d", &n1, &n2, &n3);
  int arr1[n1], arr2[n2], arr3[n3];
  printf("Enter the elements in array-1 in sorted order: \n");
  for (i = 0; i < n1; i++)
    scanf("%d", &arr1[i]);
  printf("Enter the elements in array-2 in sorted order: \n");
  for (i = 0; i < n2; i++)
    scanf("%d", &arr2[i]);
  printf("Enter the elements in array-3 in sorted order: \n");
  for (i = 0; i < n3; i++)
    scanf("%d", &arr3[i]);
  int n;
  int *arr = intersection(arr1, arr2, n1, n2, n);
  arr = intersection(arr, arr3, n, n3, n);
  printf("\nCommon elements in all 3 arrays are: \n");
  for (i = 0; i < n; i++)
    printf("%d ", arr[i]);
  free(arr);
  return 0;
}
```