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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  lea    D65(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    -0x20(%rbp),%rax
  mov    %rax,%rsi
  lea    D107(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  lea    D90(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    -0x1c(%rbp),%rax
  mov    %rax,%rsi
  lea    D107(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  lea    D113(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    -0x18(%rbp),%rax
  mov    %rax,%rsi
  lea    D107(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  lea    D18(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    -0x14(%rbp),%rax
  mov    %rax,%rsi
  lea    D107(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  lea    D66(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    D13(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    D25(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    -0x10(%rbp),%rax
  mov    %rax,%rsi
  lea    D107(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  movl   $0x1,-0xc(%rbp)
  jmp    L12
L5:
  mov    -0xc(%rbp),%eax
  mov    %eax,%esi
  lea    D80(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x10(%rbp),%eax
  cmp    $0x1,%eax
  jne    L41
  mov    -0x14(%rbp),%edx
  mov    -0x18(%rbp),%ecx
  mov    -0x1c(%rbp),%eax
  mov    %ecx,%esi
  mov    %eax,%edi
  call   <random_test@plt>
L41:
  mov    -0x10(%rbp),%eax
  cmp    $0x2,%eax
  jne    L31
  mov    -0x14(%rbp),%edx
  mov    -0x18(%rbp),%ecx
  mov    -0x1c(%rbp),%eax
  mov    %ecx,%esi
  mov    %eax,%edi
  call   <manual_test@plt>
L31:
  addl   $0x1,-0xc(%rbp)
L12:
  mov    -0x20(%rbp),%eax
  cmp    %eax,-0xc(%rbp)
  jle    L5
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L36
  call   <__stack_chk_fail@plt>
L36:
  leave
  ret
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D65
type_infered: string
name: extract_symbolic_data
arguments: data_tag: D107
type_infered: string
name: extract_symbolic_data
arguments: data_tag: D90
type_infered: string
name: extract_symbolic_data
arguments: data_tag: D113
type_infered: string
name: extract_symbolic_data
arguments: data_tag: D18
type_infered: string
name: extract_symbolic_data
arguments: data_tag: D66
type_infered: string
name: extract_symbolic_data
arguments: data_tag: D13
type_infered: string
name: extract_symbolic_data
arguments: data_tag: D25
type_infered: string
name: extract_symbolic_data
arguments: data_tag: D80
type_infered: string

tool: D65: How many tests you want: 

tool: D107: %d

tool: D90: Please give the degree of the first polynomial:

tool: D113: Please give the degree of the second polynomial:

tool: D18: How many common divisors you want in the test: 

tool: D66: Please choose what kind of test you want:

tool: D13: 1. random test

tool: D25: 2. interactive test

tool: D80: 
******* The No. %d test *********


assistant: ```c
int main(void) {
  int k, n, m, l, i, t;
  printf("How many tests you want: \n");
  scanf("%d", &k);
  printf("Please give the degree of the first polynomial:\n");
  scanf("%d", &n);
  printf("Please give the degree of the second polynomial:\n");
  scanf("%d", &m);
  printf("How many common divisors you want in the test: \n");
  scanf("%d", &l);
  printf("Please choose what kind of test you want:\n");
  printf("1. random test\n");
  printf("2. interactive test\n");
  scanf("%d", &t);
  for (i = 1; i <= k; i++) {
    printf("\n******* The No. %d test *********\n", i);
    if (t == 1)
      random_test(n, m, l);
    if (t == 2)
      manual_test(n, m, l);
  }
  return (0);
}
```