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

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  lea    -0x12000(%rsp),%r11
L119:
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  cmp    %r11,%rsp
  jne    L119
  sub    $0xed8,%rsp
  lea    D9(%rip),%r12
  mov    %r12,%rdi
  mov    %fs:0x28,%rax
  mov    %rax,0x12ec8(%rsp)
  xor    %eax,%eax
  lea    0x28(%rsp),%rsi
  call   <scanf@plt>
  cmpq   $0x0,0x28(%rsp)
  jle    L106
  lea    0x30(%rsp),%rax
  movq   $0x0,(%rsp)
  lea    0x1fc0(%rsp),%rbx
  mov    %rax,0x10(%rsp)
  lea    0x38(%rsp),%rax
  mov    %rax,0x18(%rsp)
  nopl   (%rax)
L169:
  mov    0x10(%rsp),%rdx
  mov    0x18(%rsp),%rsi
  xor    %eax,%eax
  lea    D26(%rip),%rdi
  call   <scanf@plt>
  cmpq   $0x0,0x38(%rsp)
  jle    L88
  xor    %r13d,%r13d
  lea    0x3f30(%rsp),%rax
  mov    %r15,0x8(%rsp)
  lea    0x7e10(%rsp),%rbp
  mov    %r13,%r15
  lea    0x50(%rsp),%r14
  mov    %rax,%r13
  nop
L45:
  lea    (%r14,%r15,8),%rsi
  mov    %r12,%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  mov    (%r14,%r15,8),%rax
  mov    %rax,(%rbx,%r15,8)
  xor    %eax,%eax
  call   <getchar@plt>
  mov    %rbp,%rdi
  add    $0x2d,%rbp
  call   <gets@plt>
  mov    0x38(%rsp),%r8
  movq   $0x0,0x0(%r13,%r15,8)
  add    $0x1,%r15
  cmp    %r15,%r8
  jg     L45
  mov    0x8(%rsp),%r15
  test   %r8,%r8
  jle    L88
  lea    (%rbx,%r8,8),%r10
  lea    -0x1(%r8),%r11
  mov    %rbx,%r9
  mov    %r10,%rdi
  nopl   0x0(%rax)
L178:
  lea    0x1fc8(%rsp),%rdx
  test   %r11,%r11
  jle    L179
  nopl   (%rax)
L47:
  movdqu -0x8(%rdx),%xmm0
  movhlps %xmm0,%xmm2
  movdqa %xmm0,%xmm1
  movq   %xmm0,%rax
  movq   %xmm2,%rcx
  shufpd $0x1,%xmm0,%xmm1
  cmp    %rax,%rcx
  jge    L182
  movups %xmm1,-0x8(%rdx)
L182:
  add    $0x8,%rdx
  cmp    %rdi,%rdx
  jne    L47
L179:
  sub    $0x8,%rdi
  sub    $0x1,%r11
  cmp    %rbx,%rdi
  jne    L178
  lea    0x5ea0(%rsp),%rsi
  nopw   0x0(%rax,%rax,1)
L162:
  mov    (%r9),%rdx
  xor    %eax,%eax
  nopl   (%rax)
L135:
  cmp    (%r14,%rax,8),%rdx
  jne    L80
  mov    %rax,(%rsi)
L80:
  add    $0x1,%rax
  cmp    %rax,%r8
  jne    L135
  add    $0x8,%r9
  add    $0x8,%rsi
  cmp    %r10,%r9
  jne    L162
L88:
  xor    %ebp,%ebp
  cmpq   $0x0,0x30(%rsp)
  lea    0x40(%rsp),%r14
  lea    0x48(%rsp),%r13
  jle    L27
  nopl   0x0(%rax,%rax,1)
L131:
  mov    %r14,%rsi
  mov    %r12,%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  mov    0x38(%rsp),%rdx
  test   %rdx,%rdx
  jle    L117
  mov    0x40(%rsp),%rcx
  xor    %eax,%eax
  cs nopw 0x0(%rax,%rax,1)
L176:
  cmp    (%rbx,%rax,8),%rcx
  cmove  %rax,%r15
  add    $0x1,%rax
  cmp    %rax,%rdx
  jne    L176
L117:
  xor    %eax,%eax
  mov    %r13,%rsi
  mov    %r12,%rdi
  call   <scanf@plt>
  mov    0x3f30(%rsp,%r15,8),%rax
  mov    0x48(%rsp),%rdx
  cmp    %rdx,%rax
  cmovl  %rdx,%rax
  add    $0x1,%rbp
  mov    %rax,0x3f30(%rsp,%r15,8)
  cmp    %rbp,0x30(%rsp)
  jg     L131
L27:
  cmpq   $0x0,0x38(%rsp)
  jle    L165
  lea    0x5ea0(%rsp),%rbp
  lea    0x3f30(%rsp),%rax
  mov    %rbx,0x8(%rsp)
  xor    %r14d,%r14d
  mov    %rbp,%rbx
  lea    0x7e10(%rsp),%r13
  mov    %rax,%rbp
  nopl   0x0(%rax,%rax,1)
L18:
  mov    (%rbx,%r14,8),%rax
  lea    D18(%rip),%rdi
  lea    (%rax,%rax,2),%rax
  mov    %rax,%rsi
  shl    $0x4,%rsi
  sub    %rax,%rsi
  xor    %eax,%eax
  add    %r13,%rsi
  call   <printf@plt>
  mov    0x0(%rbp,%r14,8),%rsi
  lea    D14(%rip),%rdi
  xor    %eax,%eax
  add    $0x1,%r14
  call   <printf@plt>
  cmp    %r14,0x38(%rsp)
  jg     L18
  mov    0x8(%rsp),%rbx
L165:
  addq   $0x1,(%rsp)
  mov    (%rsp),%rax
  cmp    %rax,0x28(%rsp)
  jg     L169
L106:
  mov    0x12ec8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L86
  add    $0x12ed8,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L86:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: label: D9
datatype: string
name: retrieve_data
arguments: label: D26
datatype: string
name: retrieve_data
arguments: label: D18
datatype: string
name: retrieve_data
arguments: label: D14
datatype: string

tool: D9: %lld

tool: D26: %lld %lld

tool: D18: %s 

tool: D14: %lld


assistant: ```c
int main() {
  long long int q, w, n, m, i, rn[1005], ron[1005], temp, mark[1005], roll, p, j, marks, name[1005];
  char nm[1005][45], x;
  scanf("%lld", &q);
  for (w = 0; w < q; w++) {
    scanf("%lld %lld", &m, &n);
    for (i = 0; i < m; i++) {
      scanf("%lld", &rn[i]);
      ron[i] = rn[i];
      x = getchar();
      gets(nm[i]);
      mark[i] = 0;
    }
    for (i = 0; i < m; i++) {
      for (j = 0; j < m - i - 1; j++) {
        if (ron[j] > ron[j + 1]) {
          temp = ron[j];
          ron[j] = ron[j + 1];
          ron[j + 1] = temp;
        }
      }
    }
    for (i = 0; i < m; i++) {
      for (j = 0; j < m; j++) {
        if (ron[i] == rn[j])
          name[i] = j;
      }
    }
    for (i = 0; i < n; i++) {
      scanf("%lld", &roll);
      for (j = 0; j < m; j++) {
        if (roll == ron[j])
          p = j;
      }
      scanf("%lld", &marks);
      if (marks > mark[p])
        mark[p] = marks;
    }
    for (i = 0; i < m; i++) {
      j = name[i];
      printf("%s ", nm[j]);
      printf("%lld\n", mark[i]);
    }
  }
  return 0;
}
```