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

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  lea    -0x24e000(%rsp),%r11
L121:
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  cmp    %r11,%rsp
  jne    L121
  sub    $0xd58,%rsp
  lea    D19(%rip),%rdi
  mov    %fs:0x28,%rax
  mov    %rax,0x24ed48(%rsp)
  xor    %eax,%eax
  lea    0x14(%rsp),%rcx
  lea    0x10(%rsp),%rdx
  lea    0xc(%rsp),%rsi
  call   <scanf@plt>
  mov    0x10(%rsp),%ebx
  test   %ebx,%ebx
  jle    L34
  movslq %ebx,%rdx
  lea    0x4e40(%rsp),%rdi
  xor    %esi,%esi
  shl    $0x2,%rdx
  call   <memset@plt>
  mov    0xc(%rsp),%r9d
  test   %r9d,%r9d
  jle    L114
L23:
  xor    %eax,%eax
  lea    0x20(%rsp),%rdx
  nop
L5:
  movl   $0x1,(%rdx,%rax,4)
  add    $0x1,%rax
  cmp    %eax,%r9d
  jg     L5
  test   %ebx,%ebx
  jle    L26
L114:
  lea    0x129dc2(%rsp),%r14
  xor    %r15d,%r15d
  lea    0x1c(%rsp),%r13
  lea    0x18(%rsp),%r12
  lea    D6(%rip),%rbp
L76:
  mov    %r13,%rdx
  xor    %eax,%eax
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <scanf@plt>
  movslq 0x18(%rsp),%rax
  movslq 0x1c(%rsp),%rdx
  mov    0x10(%rsp),%ebx
  mov    %ax,-0x2(%r14)
  mov    0x20(%rsp,%rax,4),%eax
  mov    0x20(%rsp,%rdx,4),%ecx
  mov    %dx,(%r14)
  add    $0x1,%eax
  cmp    %ecx,%eax
  cmovl  %ecx,%eax
  add    $0x1,%r15d
  add    $0x4,%r14
  mov    %eax,0x20(%rsp,%rdx,4)
  cmp    %r15d,%ebx
  jg     L76
  mov    0xc(%rsp),%r9d
L26:
  xor    %edx,%edx
  xor    %edi,%edi
  lea    0x129dc0(%rsp),%r8
  nopl   0x0(%rax)
L44:
  cmp    %ebx,%edx
  jge    L46
L64:
  movslq %edx,%rax
  lea    (%r8,%rax,4),%rcx
L185:
  movswq (%rcx),%rax
  movswq 0x2(%rcx),%rsi
  add    $0x1,%edx
  mov    0x20(%rsp,%rax,4),%eax
  add    $0x1,%eax
  cmp    0x20(%rsp,%rsi,4),%eax
  jle    L44
  mov    %eax,0x20(%rsp,%rsi,4)
  add    $0x4,%rcx
  mov    $0x1,%edi
  cmp    %edx,%ebx
  jg     L185
  xor    %edx,%edx
  xor    %edi,%edi
  cmp    %ebx,%edx
  jl     L64
  nopl   (%rax)
L46:
  test   %edi,%edi
  jne    L67
L131:
  test   %r9d,%r9d
  jle    L155
  lea    -0x1(%r9),%edx
  mov    0x14(%rsp),%r10d
  lea    0x20(%rsp),%rax
  xor    %esi,%esi
  lea    0x24(%rsp,%rdx,4),%r9
  xor    %r8d,%r8d
  nopl   0x0(%rax)
L140:
  movslq (%rax),%rdi
  mov    0x4e40(%rsp,%rdi,4),%ecx
  cmp    %r10d,%ecx
  lea    0x1(%rcx),%edx
  sete   %cl
  mov    %edx,0x4e40(%rsp,%rdi,4)
  movzbl %cl,%ecx
  add    %ecx,%r8d
  cmp    %edx,%esi
  cmovl  %edx,%esi
  add    $0x4,%rax
  cmp    %rax,%r9
  jne    L140
L107:
  mov    %r8d,%edx
  lea    D25(%rip),%rdi
  call   <printf@plt>
  mov    0x24ed48(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L100
  add    $0x24ed58,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L67:
  test   %ebx,%ebx
  jle    L131
  xor    %edx,%edx
  xor    %edi,%edi
  jmp    L64
L34:
  mov    0xc(%rsp),%r9d
  test   %r9d,%r9d
  jg     L23
  jmp    L26
L155:
  xor    %esi,%esi
  xor    %r8d,%r8d
  jmp    L107
L100:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: data_label: D19
type: string
name: unpack_data
arguments: data_label: D6
type: string
name: unpack_data
arguments: data_label: D25
type: string

tool: D19: %d %d %d

tool: D6: %d %d

tool: D25: %d %d


assistant: ```c
int main() {
  int topics, prece, days, index, no;
  int num = 0;
  int maxtopics = 0;
  int aux, temp;
  int superArray[5000];
  int dias[300000];
  int flag = 1;
  short matriz[300000][2];
  int i = 0;
  scanf("%d %d %d", &topics, &prece, &days);
  for (i = 0; i < prece; i++) {
    dias[i] = 0;
  }
  for (i = 0; i < topics; i++) {
    superArray[i] = 1;
  }
  for (i = 0; i < prece; i++) {
    scanf("%d %d", &index, &no);
    matriz[i][0] = index;
    matriz[i][1] = no;
    aux = superArray[index] + 1;
    temp = superArray[no];
    if (aux > temp) {
      superArray[no] = aux;
    }
  }
  while (flag) {
    flag = 0;
    for (i = 0; i < prece; i++) {
      aux = superArray[matriz[i][0]] + 1;
      temp = superArray[matriz[i][1]];
      if (aux > temp) {
        superArray[matriz[i][1]] = aux;
        flag = 1;
      }
    }
  }
  for (i = 0; i < topics; i++) {
    dias[superArray[i]]++;
    if (dias[superArray[i]] == days + 1) {
      num++;
    }
    if (dias[superArray[i]] > maxtopics) {
      maxtopics = dias[superArray[i]];
    }
  }
  printf("%d %d\n", maxtopics, num);
  return 0;
}
```