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

```asm
<main>:
  endbr64
  push   %r15
  mov    $0x3d0900,%edi
  push   %r14
  push   %r13
  lea    D9(%rip),%r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  movl   $0x0,0x1c(%rsp)
  call   <malloc@plt>
  lea    0x1c(%rsp),%rsi
  mov    %r13,%rdi
  mov    %rax,%r14
  call   <scanf@plt>
  mov    0x1c(%rsp),%eax
  lea    -0x1(%rax),%ecx
  mov    %ecx,0x1c(%rsp)
  test   %eax,%eax
  je     L10
  lea    0x20(%rsp),%rax
  lea    0x3d08f4(%r14),%rbp
  mov    %rax,0x8(%rsp)
  lea    0x4(%r14),%rax
  lea    D5(%rip),%r12
  mov    %rax,(%rsp)
L65:
  mov    0x8(%rsp),%rsi
  mov    %r13,%rdi
  movl   $0x0,0x20(%rsp)
  call   <scanf@plt>
  mov    0x20(%rsp),%eax
  test   %eax,%eax
  jle    L47
  xor    %r15d,%r15d
  lea    0x24(%rsp),%rbx
  nopl   0x0(%rax,%rax,1)
L70:
  mov    %rbx,%rsi
  mov    %r13,%rdi
  add    $0x1,%r15d
  call   <scanf@plt>
  movslq 0x24(%rsp),%rax
  addl   $0x1,(%r14,%rax,4)
  cmp    %r15d,0x20(%rsp)
  jg     L70
L47:
  movd   (%r14),%xmm3
  mov    (%rsp),%rax
  pshufd $0x0,%xmm3,%xmm2
  cs nopw 0x0(%rax,%rax,1)
L0:
  movdqu (%rax),%xmm0
  add    $0x10,%rax
  movdqa %xmm0,%xmm1
  pcmpgtd %xmm2,%xmm1
  pand   %xmm1,%xmm0
  pandn  %xmm2,%xmm1
  movdqa %xmm1,%xmm2
  por    %xmm0,%xmm2
  cmp    %rbp,%rax
  jne    L0
  movdqa %xmm2,%xmm0
  mov    0x3d08f8(%r14),%esi
  mov    $0xf423f,%ebx
  mov    0x3d08f4(%r14),%ecx
  psrldq $0x8,%xmm0
  movdqa %xmm0,%xmm1
  cmp    %esi,%ecx
  pcmpgtd %xmm2,%xmm1
  cmovl  %esi,%ecx
  mov    0x3d08fc(%r14),%esi
  cmp    %esi,%ecx
  pand   %xmm1,%xmm0
  pandn  %xmm2,%xmm1
  cmovl  %esi,%ecx
  por    %xmm0,%xmm1
  movdqa %xmm1,%xmm2
  psrldq $0x4,%xmm2
  movdqa %xmm2,%xmm0
  pcmpgtd %xmm1,%xmm0
  pand   %xmm0,%xmm2
  pandn  %xmm1,%xmm0
  por    %xmm2,%xmm0
  movd   %xmm0,%eax
  cmp    %eax,%ecx
  cmovge %ecx,%eax
  mov    %eax,%r15d
  nop
L66:
  mov    %ebx,%esi
  cmp    %r15d,(%r14,%rbx,4)
  je     L32
  movl   $0x0,(%r14,%rbx,4)
  sub    $0x1,%rbx
  jae    L66
L49:
  mov    $0xa,%edi
  call   <putchar@plt>
  mov    0x1c(%rsp),%eax
  lea    -0x1(%rax),%ecx
  mov    %ecx,0x1c(%rsp)
  test   %eax,%eax
  jne    L65
L10:
  mov    0x28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L12
  add    $0x38,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L32:
  mov    %r12,%rdi
  xor    %eax,%eax
  call   <printf@plt>
  movl   $0x0,(%r14,%rbx,4)
  sub    $0x1,%rbx
  jae    L66
  jmp    L49
L12:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: label: D9
datatype: string
name: parse_data
arguments: label: D5
datatype: string

tool: D9: %d

tool: D5: %d 

assistant: ```c
int main() {
  int testcase = 0;
  int *a;
  a = malloc(1000000 * sizeof(int));
  scanf("%d", &testcase);
  while (testcase--) {
    int number = 0;
    int i = 0;
    int max;
    scanf("%d", &number);
    for (i = 0; i < number; i++) {
      int temp;
      scanf("%d", &temp);
      a[temp]++;
    }
    max = a[0];
    for (i = 1; i < 1000000; i++) {
      if (a[i] > max) {
        max = a[i];
      }
    }
    for (i = 999999; i >= 0; i--) {
      if (max == a[i])
        printf("%d ", i);
      a[i] = 0;
    }
    printf("\n");
  }
}
```