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

```asm
<input_output_on_files>:
  endbr64
  sub    $0x18,%rsp
  mov    %fs:0x28,%rdx
  mov    %rdx,0x8(%rsp)
  xor    %edx,%edx
  test   %edi,%edi
  je     L25
  cmp    $0x1,%edi
  je     L2
  cmp    $0x2,%edi
  je     L3
L30:
  mov    0x8(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L37
  add    $0x18,%rsp
  ret
L25:
  mov    $0x0,%eax
  call   <syscon_read_standard_system@plt>
  lea    D45(%rip),%rdi
  call   <puts@plt>
  mov    $0x0,%eax
  call   <syscon_write_standard_system@plt>
  lea    D126(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0x4(%rsp),%rsi
  lea    D74(%rip),%rdi
  call   <scanf@plt>
  mov    %rsp,%rdi
  mov    0x4(%rsp),%esi
  call   <solve_system@plt>
  mov    (%rsp),%esi
  lea    D116(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D132(%rip),%rdi
  call   <puts@plt>
  mov    $0x0,%eax
  call   <solcon_write_standard_solutions@plt>
  jmp    L30
L2:
  mov    $0x0,%eax
  call   <syscon_read_dobldobl_system@plt>
  lea    D45(%rip),%rdi
  call   <puts@plt>
  mov    $0x0,%eax
  call   <syscon_write_dobldobl_system@plt>
  lea    D126(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0x4(%rsp),%rsi
  lea    D74(%rip),%rdi
  call   <scanf@plt>
  mov    %rsp,%rdi
  mov    0x4(%rsp),%esi
  call   <solve_dobldobl_system@plt>
  mov    (%rsp),%esi
  lea    D116(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D132(%rip),%rdi
  call   <puts@plt>
  mov    $0x0,%eax
  call   <solcon_write_dobldobl_solutions@plt>
  jmp    L30
L3:
  mov    $0x0,%eax
  call   <syscon_read_quaddobl_system@plt>
  lea    D45(%rip),%rdi
  call   <puts@plt>
  mov    $0x0,%eax
  call   <syscon_write_quaddobl_system@plt>
  lea    D126(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0x4(%rsp),%rsi
  lea    D74(%rip),%rdi
  call   <scanf@plt>
  mov    %rsp,%rdi
  mov    0x4(%rsp),%esi
  call   <solve_quaddobl_system@plt>
  mov    (%rsp),%esi
  lea    D116(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D132(%rip),%rdi
  call   <puts@plt>
  mov    $0x0,%eax
  call   <solcon_write_quaddobl_solutions@plt>
  jmp    L30
L37:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: data_label: D45
type_guessed: string
name: unpack_data
arguments: data_label: D126
type_guessed: string
name: unpack_data
arguments: data_label: D74
type_guessed: string
name: unpack_data
arguments: data_label: D116
type_guessed: string
name: unpack_data
arguments: data_label: D132
type_guessed: string

tool: D45: 
The system in the container : 

tool: D126: 
Give the number of tasks : 

tool: D74: %d

tool: D116: 
The root count : %d


tool: D132: 
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;
}
```