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    -0x40(%rbp),%rsi
  lea    D14(%rip),%rdi
  call   <scanf@plt>
  mov    -0x40(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    %edx,-0x40(%rbp)
  test   %eax,%eax
  je     L33
  lea    -0x3c(%rbp),%rax
  mov    %rax,-0x50(%rbp)
  lea    D14(%rip),%r13
L91:
  mov    %rsp,-0x48(%rbp)
  mov    -0x50(%rbp),%rsi
  mov    %r13,%rdi
  call   <scanf@plt>
  mov    -0x3c(%rbp),%eax
  lea    -0x1(%rax),%edx
  cmp    $0x3e7,%edx
  ja     L147
  cltq
  lea    0x0(,%rax,4),%rcx
  lea    0xf(%rcx),%rax
  mov    $0x10,%edi
  mov    $0x0,%edx
  div    %rdi
  shl    $0x4,%rax
  mov    %rax,%rsi
  and    $0xfffffffffffff000,%rsi
  mov    %rsp,%rdx
  sub    %rsi,%rdx
L77:
  cmp    %rdx,%rsp
  je     L105
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L77
L105:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  je     L15
  orq    $0x0,-0x8(%rsp,%rdx,1)
L15:
  mov    %rsp,%r15
  lea    0xf(%rcx),%rax
  mov    $0x10,%ecx
  mov    $0x0,%edx
  div    %rcx
  shl    $0x4,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L163:
  cmp    %rdx,%rsp
  je     L74
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L163
L74:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  je     L92
  orq    $0x0,-0x8(%rsp,%rdx,1)
L92:
  mov    %rsp,%r14
  mov    %r15,%rbx
  mov    $0x0,%r12d
L51:
  mov    %rbx,%rsi
  mov    %r13,%rdi
  call   <scanf@plt>
  cmpl   $0xa,(%rbx)
  ja     L147
  add    $0x1,%r12d
  mov    -0x3c(%rbp),%edx
  add    $0x4,%rbx
  cmp    %r12d,%edx
  jg     L51
  test   %edx,%edx
  jle    L188
  mov    %r14,%rbx
  mov    $0x0,%r12d
L96:
  mov    %rbx,%rsi
  mov    %r13,%rdi
  call   <scanf@plt>
  cmpl   $0xa,(%rbx)
  ja     L147
  add    $0x1,%r12d
  mov    -0x3c(%rbp),%edx
  add    $0x4,%rbx
  cmp    %r12d,%edx
  jg     L96
L188:
  sub    $0x1,%edx
  mov    $0x0,%esi
  mov    %r15,%rdi
  call   <mergesort@plt>
  mov    -0x3c(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    $0x0,%esi
  mov    %r14,%rdi
  call   <mergesort@plt>
  mov    -0x3c(%rbp),%ecx
  test   %ecx,%ecx
  jle    L21
  mov    %ecx,%ecx
  mov    $0x0,%eax
  mov    $0x0,%esi
L180:
  mov    (%r15,%rax,4),%edx
  imul   (%r14,%rax,4),%edx
  add    %edx,%esi
  add    $0x1,%rax
  cmp    %rax,%rcx
  jne    L180
L153:
  lea    D4(%rip),%rdi
  call   <printf@plt>
  mov    -0x48(%rbp),%rsp
  mov    -0x40(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    %edx,-0x40(%rbp)
  test   %eax,%eax
  jne    L91
  jmp    L33
L21:
  mov    $0x0,%esi
  jmp    L153
L147:
  mov    -0x48(%rbp),%rsp
L33:
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L136
  mov    $0x0,%eax
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
L136:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: tag: D14
data_type: string
name: disassemble_data
arguments: tag: D4
data_type: string

tool: D14: %d

tool: D4: %d


assistant: ```c
int main() {
  int t, n, i, s = 0;
  scanf("%d", &t);
  while (t--) {
    scanf("%d", &n);
    if ((n < 1) || (n > 1000))
      return 0;
    int men[n], women[n];
    for (i = 0; i < n; i++) {
      scanf("%d", &men[i]);
      if ((men[i] > 10) || (men[i] < 0))
        return 0;
    }
    for (i = 0; i < n; i++) {
      scanf("%d", &women[i]);
      if ((women[i] > 10) || (women[i] < 0))
        return 0;
    }
    mergesort(men, 0, n - 1);
    mergesort(women, 0, n - 1);
    for (i = 0; i < n; i++)
      s += men[i] * women[i];
    printf("%d\n", s);
    s = 0;
  }
  return 0;
}
```