user: Converte this assembly snippet into its equivalent C code:

```asm
<input_output_on_files>:
  endbr64
  push   %rbp
  push   %rbx
  sub    $0x438,%rsp
  mov    %fs:0x28,%rdx
  mov    %rdx,0x428(%rsp)
  xor    %edx,%edx
  test   %edi,%edi
  je     L127
  cmp    $0x1,%edi
  je     L109
  cmp    $0x2,%edi
  je     L64
L107:
  mov    0x428(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L27
  add    $0x438,%rsp
  pop    %rbx
  pop    %rbp
  ret
  nopw   0x0(%rax,%rax,1)
L127:
  xor    %eax,%eax
  lea    D112(%rip),%rbp
  call   <syscon_read_standard_system@plt>
  lea    D202(%rip),%rdi
  call   <puts@plt>
  xor    %eax,%eax
  call   <syscon_write_standard_system@plt>
  lea    D8(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    0x14(%rsp),%rsi
  mov    %rbp,%rdi
  call   <scanf@plt>
  lea    D80(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    0x1c(%rsp),%rsi
  mov    %rbp,%rdi
  call   <scanf@plt>
  lea    D125(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    0x18(%rsp),%rsi
  mov    %rbp,%rdi
  lea    0x20(%rsp),%rbp
  call   <scanf@plt>
  lea    0x10(%rsp),%rdx
  mov    %rbp,%rcx
  xor    %esi,%esi
  lea    0xc(%rsp),%rdi
  sub    $0x8,%rsp
  mov    0x20(%rsp),%eax
  push   %rax
  mov    0x2c(%rsp),%r9d
  mov    0x24(%rsp),%r8d
  call   <solve_standard_system@plt>
  lea    D82(%rip),%rdi
  call   <puts@plt>
  pop    %rcx
  pop    %rsi
  mov    0x10(%rsp),%edi
  test   %edi,%edi
  jle    L50
  xor    %ebx,%ebx
  cs nopw 0x0(%rax,%rax,1)
L57:
  movsbl 0x0(%rbp,%rbx,1),%edi
  add    $0x1,%rbx
  call   <putchar@plt>
  cmp    %ebx,0x10(%rsp)
  jg     L57
L50:
  mov    0xc(%rsp),%esi
  lea    D55(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    D205(%rip),%rdi
  call   <puts@plt>
  xor    %eax,%eax
  call   <solcon_write_standard_solutions@plt>
  jmp    L107
  xchg   %ax,%ax
L64:
  xor    %eax,%eax
  lea    D112(%rip),%rbp
  call   <syscon_read_quaddobl_system@plt>
  lea    D202(%rip),%rdi
  call   <puts@plt>
  xor    %eax,%eax
  call   <syscon_write_quaddobl_system@plt>
  lea    D8(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    0x14(%rsp),%rsi
  mov    %rbp,%rdi
  call   <scanf@plt>
  lea    D125(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %rbp,%rdi
  lea    0x18(%rsp),%rsi
  lea    0x20(%rsp),%rbp
  call   <scanf@plt>
  mov    0x18(%rsp),%r9d
  mov    %rbp,%rcx
  xor    %esi,%esi
  mov    0x14(%rsp),%r8d
  lea    0x10(%rsp),%rdx
  lea    0xc(%rsp),%rdi
  call   <solve_quaddobl_system@plt>
  lea    D82(%rip),%rdi
  call   <puts@plt>
  mov    0x10(%rsp),%eax
  test   %eax,%eax
  jle    L88
  xor    %ebx,%ebx
L97:
  movsbl 0x0(%rbp,%rbx,1),%edi
  add    $0x1,%rbx
  call   <putchar@plt>
  cmp    %ebx,0x10(%rsp)
  jg     L97
L88:
  mov    0xc(%rsp),%esi
  lea    D55(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    D205(%rip),%rdi
  call   <puts@plt>
  xor    %eax,%eax
  call   <solcon_write_quaddobl_solutions@plt>
  jmp    L107
  xchg   %ax,%ax
L109:
  xor    %eax,%eax
  lea    D112(%rip),%rbp
  call   <syscon_read_dobldobl_system@plt>
  lea    D202(%rip),%rdi
  call   <puts@plt>
  xor    %eax,%eax
  call   <syscon_write_dobldobl_system@plt>
  lea    D8(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    0x14(%rsp),%rsi
  mov    %rbp,%rdi
  call   <scanf@plt>
  lea    D125(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %rbp,%rdi
  lea    0x18(%rsp),%rsi
  lea    0x20(%rsp),%rbp
  call   <scanf@plt>
  mov    0x18(%rsp),%r9d
  mov    %rbp,%rcx
  xor    %esi,%esi
  mov    0x14(%rsp),%r8d
  lea    0x10(%rsp),%rdx
  lea    0xc(%rsp),%rdi
  call   <solve_dobldobl_system@plt>
  lea    D82(%rip),%rdi
  call   <puts@plt>
  mov    0x10(%rsp),%edx
  test   %edx,%edx
  jle    L120
  xor    %ebx,%ebx
L121:
  movsbl 0x0(%rbp,%rbx,1),%edi
  add    $0x1,%rbx
  call   <putchar@plt>
  cmp    %ebx,0x10(%rsp)
  jg     L121
L120:
  mov    0xc(%rsp),%esi
  lea    D55(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    D205(%rip),%rdi
  call   <puts@plt>
  xor    %eax,%eax
  call   <solcon_write_dobldobl_solutions@plt>
  jmp    L107
L27:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: tag: D112
type_guessed: string
name: unpack_data
arguments: tag: D202
type_guessed: string
name: unpack_data
arguments: tag: D8
type_guessed: string
name: unpack_data
arguments: tag: D80
type_guessed: string
name: unpack_data
arguments: tag: D125
type_guessed: string
name: unpack_data
arguments: tag: D82
type_guessed: string
name: unpack_data
arguments: tag: D55
type_guessed: string
name: unpack_data
arguments: tag: D205
type_guessed: string

tool: D112: %d

tool: D202: 
The system in the container : 

tool: D8: 
Give the number of tasks : 

tool: D80: 
Focus on mixed volumes (1 = yes, 0 = no) : 

tool: D125: 
Give the verbose level : 

tool: D82: 
ROOT COUNTS :

tool: D55: 
The root count : %d


tool: D205: 
The solutions :

assistant: ```c
int input_output_on_files(int precision) {
  int fail, rc, nrc, nbtasks, vrb, i, focusmv;
  char rocos[1024];
  if (precision == 0) {
    fail = syscon_read_standard_system();
    printf("\nThe system in the container : \n");
    fail = syscon_write_standard_system();
    printf("\nGive the number of tasks : ");
    scanf("%d", &nbtasks);
    printf("\nFocus on mixed volumes (1 = yes, 0 = no) : ");
    scanf("%d", &focusmv);
    printf("\nGive the verbose level : ");
    scanf("%d", &vrb);
    fail = solve_standard_system(&rc, 0, &nrc, rocos, nbtasks, focusmv, vrb);
    printf("\nROOT COUNTS :\n");
    for (i = 0; i < nrc; i++)
      printf("%c", rocos[i]);
    printf("\nThe root count : %d\n", rc);
    printf("\nThe solutions :\n");
    fail = solcon_write_standard_solutions();
  } else if (precision == 1) {
    fail = syscon_read_dobldobl_system();
    printf("\nThe system in the container : \n");
    fail = syscon_write_dobldobl_system();
    printf("\nGive the number of tasks : ");
    scanf("%d", &nbtasks);
    printf("\nGive the verbose level : ");
    scanf("%d", &vrb);
    fail = solve_dobldobl_system(&rc, 0, &nrc, rocos, nbtasks, vrb);
    printf("\nROOT COUNTS :\n");
    for (i = 0; i < nrc; i++)
      printf("%c", rocos[i]);
    printf("\nThe root count : %d\n", rc);
    printf("\nThe solutions :\n");
    fail = solcon_write_dobldobl_solutions();
  } else if (precision == 2) {
    fail = syscon_read_quaddobl_system();
    printf("\nThe system in the container : \n");
    fail = syscon_write_quaddobl_system();
    printf("\nGive the number of tasks : ");
    scanf("%d", &nbtasks);
    printf("\nGive the verbose level : ");
    scanf("%d", &vrb);
    fail = solve_quaddobl_system(&rc, 0, &nrc, rocos, nbtasks, vrb);
    printf("\nROOT COUNTS :\n");
    for (i = 0; i < nrc; i++)
      printf("%c", rocos[i]);
    printf("\nThe root count : %d\n", rc);
    printf("\nThe solutions :\n");
    fail = solcon_write_quaddobl_solutions();
  }
  return fail;
}
```