user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<standard_interactive_input_output>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x368,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  lea    D116(%rip),%rdi
  call   <printf@plt>
  lea    -0x378(%rbp),%rsi
  lea    D75(%rip),%rdi
  call   <scanf@plt>
  mov    -0x378(%rbp),%edi
  call   <syscon_initialize_number_of_standard_polynomials@plt>
  mov    -0x378(%rbp),%esi
  lea    D80(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D96(%rip),%rdi
  call   <puts@plt>
  movl   $0x1,-0x374(%rbp)
  cmpl   $0x0,-0x378(%rbp)
  jle    L51
  mov    $0x1,%esi
  lea    D59(%rip),%r12
L54:
  mov    %r12,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%eax
  call   <getchar@plt>
  lea    -0x360(%rbp),%rbx
  lea    -0x370(%rbp),%rdi
  mov    %rbx,%rsi
  call   <read_poly@plt>
  mov    %rbx,%rcx
  mov    -0x374(%rbp),%edx
  mov    -0x378(%rbp),%esi
  mov    -0x370(%rbp),%edi
  call   <syscon_store_standard_polynomial@plt>
  mov    -0x374(%rbp),%eax
  lea    0x1(%rax),%esi
  mov    %esi,-0x374(%rbp)
  cmp    -0x378(%rbp),%esi
  jle    L54
L51:
  lea    D67(%rip),%rdi
  call   <puts@plt>
  mov    $0x0,%eax
  call   <syscon_write_standard_system@plt>
  lea    D98(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    -0x364(%rbp),%rsi
  lea    D75(%rip),%rdi
  call   <scanf@plt>
  lea    -0x36c(%rbp),%rdi
  mov    -0x364(%rbp),%esi
  call   <solve_system@plt>
  mov    %eax,-0x384(%rbp)
  mov    -0x36c(%rbp),%esi
  lea    D14(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D126(%rip),%rdi
  call   <puts@plt>
  lea    D78(%rip),%r14
  lea    -0x374(%rbp),%r13
  lea    D75(%rip),%r12
  lea    D66(%rip),%r15
  jmp    L21
L40:
  mov    %rcx,%rax
  and    $0xfff,%eax
  sub    %rax,%rsp
  test   %rax,%rax
  je     L31
  orq    $0x0,-0x8(%rsp,%rax,1)
L31:
  mov    %rsp,%rdx
  mov    -0x374(%rbp),%edi
  call   <solcon_write_standard_solution_string@plt>
  mov    %eax,-0x384(%rbp)
  mov    %rsp,%rdx
  mov    -0x374(%rbp),%esi
  mov    %r15,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %rbx,%rsp
  cmpl   $0x0,-0x374(%rbp)
  js     L17
L21:
  mov    %r14,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %r13,%rsi
  mov    %r12,%rdi
  call   <scanf@plt>
  mov    -0x374(%rbp),%edi
  test   %edi,%edi
  js     L17
  lea    -0x368(%rbp),%rsi
  call   <solcon_length_standard_solution_string@plt>
  mov    %rsp,%rbx
  mov    -0x368(%rbp),%esi
  movslq %esi,%rax
  add    $0xf,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffffff0,%rcx
  and    $0xfffffffffffff000,%rax
  mov    %rsp,%rdx
  sub    %rax,%rdx
L86:
  cmp    %rdx,%rsp
  je     L40
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L86
L17:
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L3
  mov    -0x384(%rbp),%eax
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
L3:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: data_label: D116
type_guessed: string
name: retrieve_data
arguments: data_label: D75
type_guessed: string
name: retrieve_data
arguments: data_label: D80
type_guessed: string
name: retrieve_data
arguments: data_label: D96
type_guessed: string
name: retrieve_data
arguments: data_label: D59
type_guessed: string
name: retrieve_data
arguments: data_label: D67
type_guessed: string
name: retrieve_data
arguments: data_label: D98
type_guessed: string
name: retrieve_data
arguments: data_label: D14
type_guessed: string
name: retrieve_data
arguments: data_label: D126
type_guessed: string
name: retrieve_data
arguments: data_label: D78
type_guessed: string
name: retrieve_data
arguments: data_label: D66
type_guessed: string

tool: D116: 
Give the number of polynomials in the system : 

tool: D75: %d

tool: D80: 
Reading %d polynomials, 

tool: D96: terminate each with ; (semicolon)...

tool: D59: -> polynomial %d : 

tool: D67: The system in the container : 

tool: D98: 
Give the number of tasks : 

tool: D14: 
The root count : %d


tool: D126: interactive selection of solutions... 

tool: D78: 
Give an index to a solution (-1 to exit) : 

tool: D66: 
Solution %d : 
%s

assistant: ```c
int standard_interactive_input_output(void) {
  int n, fail, k, nc, i, rc, len, nbtasks;
  char ch, p[800];
  printf("\nGive the number of polynomials in the system : ");
  scanf("%d", &n);
  fail = syscon_initialize_number_of_standard_polynomials(n);
  printf("\nReading %d polynomials, ", n);
  printf("terminate each with ; (semicolon)...\n");
  for (k = 1; k <= n; k++) {
    printf("-> polynomial %d : ", k);
    ch = getchar();
    read_poly(&nc, p);
    fail = syscon_store_standard_polynomial(nc, n, k, p);
  }
  printf("The system in the container : \n");
  syscon_write_standard_system();
  printf("\nGive the number of tasks : ");
  scanf("%d", &nbtasks);
  fail = solve_system(&rc, nbtasks);
  printf("\nThe root count : %d\n", rc);
  printf("interactive selection of solutions... \n");
  do {
    printf("\nGive an index to a solution (-1 to exit) : ");
    scanf("%d", &k);
    if (k < 0)
      break;
    fail = solcon_length_standard_solution_string(k, &len);
    {
      char s[len];
      fail = solcon_write_standard_solution_string(k, len, s);
      printf("\nSolution %d : \n%s", k, s);
    }
  } while (k >= 0);
  return fail;
}
```