user: Please show me the C implementation that matches the assembly code listed below:

```asm
<runabc2>:
  endbr64
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x410,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x408(%rsp)
  xor    %eax,%eax
  mov    $0xff,%esi
  lea    D56(%rip),%rdi
  call   <printf@plt>
  lea    0x100(%rsp),%rsi
  lea    D46(%rip),%rbx
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  mov    $0xff,%esi
  lea    D50(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0x200(%rsp),%rsi
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  mov    $0xff,%esi
  lea    D3(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0x300(%rsp),%rsi
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  mov    $0xa,%edi
  call   <putchar@plt>
  lea    D9(%rip),%r12
  mov    %rsp,%rbx
  lea    D46(%rip),%rbp
L10:
  mov    %r12,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %rbx,%rsi
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <atof@plt>
  test   %eax,%eax
  jle    L10
  mov    $0xa,%edi
  call   <putchar@plt>
  lea    D34(%rip),%r12
  mov    %rsp,%rbx
  lea    D46(%rip),%rbp
L26:
  mov    %r12,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %rbx,%rsi
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <atof@plt>
  test   %eax,%eax
  jle    L26
  mov    $0xa,%edi
  call   <putchar@plt>
  lea    D92(%rip),%r12
  mov    %rsp,%rbx
  lea    D46(%rip),%rbp
L5:
  mov    %r12,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %rbx,%rsi
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <atof@plt>
  jmp    L5
```

tool_calls: name: read_data
arguments: data_tag: D56
datatype: string
name: read_data
arguments: data_tag: D46
datatype: string
name: read_data
arguments: data_tag: D50
datatype: string
name: read_data
arguments: data_tag: D3
datatype: string
name: read_data
arguments: data_tag: D9
datatype: string
name: read_data
arguments: data_tag: D34
datatype: string
name: read_data
arguments: data_tag: D92
datatype: string

tool: D56: 
  choose data file (.dat) (max %d character): 

tool: D46: %s

tool: D50: 
  choose target file (.trg) (max %d character): 

tool: D3: 
  insert name for rejection file (no extension) (max %d character): 

tool: D9:   specify the number of parameters used (>0): 

tool: D34:   specify the number of summary statistics used (>0): 

tool: D92:   choose tolerance for rejection step (0 < tol < 1): 

assistant: ```c
int runabc2() {
  int nparam, nstats;
  double tol;
  char str[256], input_dat[256], input_trg[256], input_rej[256];
  printf("\n  choose data file (.dat) (max %d character): ", 256 - 1);
  scanf("%s", input_dat);
  printf("\n  choose target file (.trg) (max %d character): ", 256 - 1);
  scanf("%s", input_trg);
  printf("\n  insert name for rejection file (no extension) (max %d character): ", 256 - 1);
  scanf("%s", input_rej);
  printf("\n");
  do {
    printf("  specify the number of parameters used (>0): ");
    scanf("%s", &str);
    nparam = atof(str);
  } while (nparam <= 0);
  printf("\n");
  do {
    printf("  specify the number of summary statistics used (>0): ");
    scanf("%s", &str);
    nstats = atof(str);
  } while (nstats <= 0);
  printf("\n");
  do {
    printf("  choose tolerance for rejection step (0 < tol < 1): ");
    scanf("%s", &str);
    tol = atof(str);
  } while (tol <= 0 || tol >= 1);
  return firstpass(input_dat, input_trg, input_rej, nparam, nstats, tol);
}
```