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
  sub    $0x38,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  lea    D182(%rip),%rdi
  call   <puts@plt>
  lea    D31(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0x14(%rsp),%rsi
  lea    D135(%rip),%rbx
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  lea    D172(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0x18(%rsp),%rsi
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  lea    D168(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0x1c(%rsp),%rsi
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  mov    0x14(%rsp),%ecx
  mov    0x18(%rsp),%edx
  mov    0x1c(%rsp),%esi
  lea    D90(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    0x1c(%rsp),%edi
  imul   0x18(%rsp),%edi
  mov    $0x4,%esi
  call   <calloc@plt>
  mov    %rax,%rbp
  cmpl   $0x0,0x1c(%rsp)
  jle    L79
  mov    $0x0,%r14d
  lea    D159(%rip),%r15
  mov    %rbx,%r13
L37:
  mov    %r14d,%r12d
  add    $0x1,%r14d
  mov    %r14d,%edx
  mov    0x18(%rsp),%esi
  mov    %r15,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    0x18(%rsp),%eax
  test   %eax,%eax
  jle    L16
  mov    $0x0,%ebx
L159:
  imul   %r12d,%eax
  add    %ebx,%eax
  cltq
  lea    0x0(%rbp,%rax,4),%rsi
  mov    %r13,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  add    $0x1,%ebx
  mov    0x18(%rsp),%eax
  cmp    %ebx,%eax
  jg     L159
L16:
  cmp    0x1c(%rsp),%r14d
  jl     L37
L79:
  lea    D41(%rip),%rdi
  call   <puts@plt>
  cmpl   $0x0,0x1c(%rsp)
  jle    L7
  mov    $0x0,%r12d
  lea    D119(%rip),%r14
  lea    D22(%rip),%r13
L155:
  mov    %r12d,%eax
  imul   0x18(%rsp),%eax
  cltq
  mov    0x0(%rbp,%rax,4),%esi
  mov    %r14,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    0x18(%rsp),%eax
  cmp    $0x1,%eax
  jle    L92
  mov    $0x1,%ebx
L108:
  imul   %r12d,%eax
  add    %ebx,%eax
  cltq
  mov    0x0(%rbp,%rax,4),%esi
  mov    %r13,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  add    $0x1,%ebx
  mov    0x18(%rsp),%eax
  cmp    %ebx,%eax
  jg     L108
L92:
  mov    $0x5d,%edi
  call   <putchar@plt>
  add    $0x1,%r12d
  cmp    %r12d,0x1c(%rsp)
  jg     L155
L7:
  mov    $0xa,%edi
  call   <putchar@plt>
  lea    0x13(%rsp),%r12
  mov    %r12,%rsi
  lea    D67(%rip),%rbx
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  lea    D118(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %r12,%rsi
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  mov    $0x0,%eax
  call   <adainit@plt>
  cmpb   $0x79,0x13(%rsp)
  je     L107
  lea    0x20(%rsp),%r9
  mov    $0x0,%r8d
  mov    %rbp,%rcx
  mov    0x1c(%rsp),%edx
  mov    0x18(%rsp),%esi
  mov    0x14(%rsp),%edi
  call   <resolve_Schubert_conditions@plt>
L106:
  mov    0x20(%rsp),%esi
  lea    D140(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%eax
  call   <adafinal@plt>
  mov    0x28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L90
  mov    $0x0,%eax
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L107:
  lea    D56(%rip),%rdi
  call   <puts@plt>
  lea    D109(%rip),%rdi
  call   <puts@plt>
  lea    D184(%rip),%rdi
  call   <puts@plt>
  lea    D187(%rip),%rdi
  call   <puts@plt>
  lea    D105(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0x24(%rsp),%rsi
  lea    D135(%rip),%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  mov    0x24(%rsp),%eax
  test   %eax,%eax
  jne    L40
  mov    0x14(%rsp),%edx
  mov    0x1c(%rsp),%eax
  sub    $0x2,%eax
  imul   %edx,%eax
  imul   %edx,%eax
  add    %eax,%eax
  mov    %eax,0xc(%rsp)
L43:
  lea    0x20(%rsp),%rax
  push   %rax
  mov    0x14(%rsp),%eax
  push   %rax
  mov    $0x0,%r9d
  mov    $0x0,%r8d
  mov    %rbp,%rcx
  mov    0x2c(%rsp),%edx
  mov    0x28(%rsp),%esi
  mov    0x24(%rsp),%edi
  call   <call_Littlewood_Richardson_homotopies@plt>
  add    $0x10,%rsp
  jmp    L106
L40:
  cmp    $0x1,%eax
  jne    L115
  mov    0x14(%rsp),%edx
  mov    0x1c(%rsp),%eax
  sub    $0x2,%eax
  imul   %edx,%eax
  imul   %edx,%eax
  shl    $0x2,%eax
  mov    %eax,0xc(%rsp)
  jmp    L43
L115:
  cmp    $0x2,%eax
  jne    L43
  mov    0x14(%rsp),%edx
  mov    0x1c(%rsp),%eax
  sub    $0x2,%eax
  imul   %edx,%eax
  imul   %edx,%eax
  shl    $0x3,%eax
  mov    %eax,0xc(%rsp)
  jmp    L43
L90:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: tag: D182
type_infered: string
name: parse_data
arguments: tag: D31
type_infered: string
name: parse_data
arguments: tag: D135
type_infered: string
name: parse_data
arguments: tag: D172
type_infered: string
name: parse_data
arguments: tag: D168
type_infered: string
name: parse_data
arguments: tag: D90
type_infered: string
name: parse_data
arguments: tag: D159
type_infered: string
name: parse_data
arguments: tag: D41
type_infered: string
name: parse_data
arguments: tag: D119
type_infered: string
name: parse_data
arguments: tag: D22
type_infered: string
name: parse_data
arguments: tag: D67
type_infered: string
name: parse_data
arguments: tag: D118
type_infered: string
name: parse_data
arguments: tag: D140
type_infered: string
name: parse_data
arguments: tag: D56
type_infered: string
name: parse_data
arguments: tag: D109
type_infered: string
name: parse_data
arguments: tag: D184
type_infered: string
name: parse_data
arguments: tag: D187
type_infered: string
name: parse_data
arguments: tag: D105
type_infered: string

tool: D182: 
resolving a general Schubert intersection condition ...

tool: D31:   give the ambient dimension of the space : 

tool: D135: %d

tool: D172:   give the dimension of the solution planes : 

tool: D168:   give the number of intersection conditions : 

tool: D90: 
reading %d conditions on %d-planes in %d-space ...


tool: D159:   give %d integers for condition %d : 

tool: D41: 
the intersection conditions :

tool: D119: [%d

tool: D22:  %d

tool: D67: %c

tool: D118: Run the Littlewood-Richardson homotopies ? (y/n) 

tool: D140: The formal root count : %d


tool: D56: 
MENU for the precision : 

tool: D109:   0. standard double precision; 

tool: D184:   1. double double precision; 

tool: D187:   2. quad double precision; 

tool: D105: Type 0, 1, or 2 to select the precision : 

assistant: ```c
int main(int argc, char *argv[]) {
  int fail, n, k, c, i, j, r;
  int *brackets;
  int verbose = 0;
  int verify = 0;
  char ans;
  int precision, size;
  printf("\nresolving a general Schubert intersection condition ...\n");
  printf("  give the ambient dimension of the space : ");
  scanf("%d", &n);
  printf("  give the dimension of the solution planes : ");
  scanf("%d", &k);
  printf("  give the number of intersection conditions : ");
  scanf("%d", &c);
  printf("\nreading %d conditions on %d-planes in %d-space ...\n", c, k, n);
  brackets = (int *)calloc(c * k, sizeof(int));
  for (i = 0; i < c; i++) {
    printf("  give %d integers for condition %d : ", k, i + 1);
    for (j = 0; j < k; j++)
      scanf("%d", &brackets[i * k + j]);
  }
  printf("\nthe intersection conditions :\n");
  for (i = 0; i < c; i++) {
    printf("[%d", brackets[i * k]);
    for (j = 1; j < k; j++)
      printf(" %d", brackets[i * k + j]);
    printf("]");
  }
  printf("\n");
  scanf("%c", &ans);
  printf("Run the Littlewood-Richardson homotopies ? (y/n) ");
  scanf("%c", &ans);
  adainit();
  if (ans != 'y')
    fail = resolve_Schubert_conditions(n, k, c, brackets, verbose, &r);
  else {
    printf("\nMENU for the precision : \n");
    printf("  0. standard double precision; \n");
    printf("  1. double double precision; \n");
    printf("  2. quad double precision; \n");
    printf("Type 0, 1, or 2 to select the precision : ");
    scanf("%d", &precision);
    if (precision == 0)
      size = 2 * (c - 2) * n * n;
    if (precision == 1)
      size = 4 * (c - 2) * n * n;
    if (precision == 2)
      size = 8 * (c - 2) * n * n;
    fail = call_Littlewood_Richardson_homotopies(n, k, c, brackets, verbose, verify, size, &r);
  }
  printf("The formal root count : %d\n", r);
  adafinal();
  return 0;
}
```