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

```asm
<input_output_on_files>:
  endbr64
  sub    $0x18,%rsp
  mov    %fs:0x28,%rdx
  mov    %rdx,0x8(%rsp)
  xor    %edx,%edx
  test   %edi,%edi
  je     L7
  cmp    $0x1,%edi
  je     L62
  cmp    $0x2,%edi
  je     L28
L23:
  mov    0x8(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L51
  add    $0x18,%rsp
  ret
  nopw   0x0(%rax,%rax,1)
L7:
  xor    %eax,%eax
  call   <syscon_read_standard_system@plt>
  lea    D106(%rip),%rdi
  call   <puts@plt>
  xor    %eax,%eax
  call   <syscon_write_standard_system@plt>
  lea    D98(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    0x4(%rsp),%rsi
  lea    D128(%rip),%rdi
  call   <scanf@plt>
  mov    0x4(%rsp),%esi
  mov    %rsp,%rdi
  call   <solve_system@plt>
  mov    (%rsp),%esi
  lea    D145(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    D12(%rip),%rdi
  call   <puts@plt>
  xor    %eax,%eax
  call   <solcon_write_standard_solutions@plt>
  jmp    L23
  xchg   %ax,%ax
L28:
  xor    %eax,%eax
  call   <syscon_read_quaddobl_system@plt>
  lea    D106(%rip),%rdi
  call   <puts@plt>
  xor    %eax,%eax
  call   <syscon_write_quaddobl_system@plt>
  lea    D98(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    0x4(%rsp),%rsi
  lea    D128(%rip),%rdi
  call   <scanf@plt>
  mov    0x4(%rsp),%esi
  mov    %rsp,%rdi
  call   <solve_quaddobl_system@plt>
  mov    (%rsp),%esi
  lea    D145(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    D12(%rip),%rdi
  call   <puts@plt>
  xor    %eax,%eax
  call   <solcon_write_quaddobl_solutions@plt>
  jmp    L23
  xchg   %ax,%ax
L62:
  xor    %eax,%eax
  call   <syscon_read_dobldobl_system@plt>
  lea    D106(%rip),%rdi
  call   <puts@plt>
  xor    %eax,%eax
  call   <syscon_write_dobldobl_system@plt>
  lea    D98(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    0x4(%rsp),%rsi
  lea    D128(%rip),%rdi
  call   <scanf@plt>
  mov    0x4(%rsp),%esi
  mov    %rsp,%rdi
  call   <solve_dobldobl_system@plt>
  mov    (%rsp),%esi
  lea    D145(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    D12(%rip),%rdi
  call   <puts@plt>
  xor    %eax,%eax
  call   <solcon_write_dobldobl_solutions@plt>
  jmp    L23
L51:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: label: D106
datatype: string
name: read_data
arguments: label: D98
datatype: string
name: read_data
arguments: label: D128
datatype: string
name: read_data
arguments: label: D145
datatype: string
name: read_data
arguments: label: D12
datatype: string

tool: D106: 
The system in the container : 

tool: D98: 
Give the number of tasks : 

tool: D128: %d

tool: D145: 
The root count : %d


tool: D12: 
The solutions :

assistant: ```c
int input_output_on_files(int precision) {
  int fail, rc, nbtasks;
  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);
    fail = solve_system(&rc, nbtasks);
    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);
    fail = solve_dobldobl_system(&rc, nbtasks);
    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);
    fail = solve_quaddobl_system(&rc, nbtasks);
    printf("\nThe root count : %d\n", rc);
    printf("\nThe solutions :\n");
    fail = solcon_write_quaddobl_solutions();
  }
  return fail;
}
```