user: 请从给定的汇编指令推导出C源代码:

```asm
<write_sp_info>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  mov    %rdi,%rbx
  mov    %esi,%edi
  mov    %edx,%ebp
  call   <isqrt@plt>
  mov    %eax,%r12d
  cmp    $0x53,%bpl
  je     L30
  lea    -0x41(%rbp),%eax
  cmp    $0x16,%al
  ja     L86
  movzbl %al,%eax
  lea    D88(%rip),%rdx
  movslq (%rdx,%rax,4),%rax
  add    %rdx,%rax
  notrack jmp *%rax
  lea    D14(%rip),%r13
  mov    $0x190,%r15d
  mov    $0x40,%r14d
  jmp    L49
  lea    D106(%rip),%r13
  mov    $0x190,%r15d
  mov    $0x66,%r14d
  jmp    L49
  lea    D57(%rip),%r13
  mov    $0x190,%r15d
  mov    $0xa2,%r14d
  jmp    L49
  lea    D95(%rip),%r13
  mov    $0x1f4,%r15d
  mov    $0x198,%r14d
  jmp    L49
  lea    D63(%rip),%r13
  mov    $0x1f4,%r15d
  mov    $0x3fc,%r14d
  jmp    L49
L86:
  movsbl %bpl,%esi
  lea    D52(%rip),%rdi
  call   <printf@plt>
  mov    $0x1,%edi
  call   <exit@plt>
  jmp    L49
L30:
  lea    D49(%rip),%r13
  mov    $0x64,%r15d
  mov    $0xc,%r14d
L49:
  lea    D18(%rip),%rbp
  mov    %rbp,%rdx
  lea    D50(%rip),%rsi
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  mov    %r15d,%r9d
  mov    %r14d,%r8d
  mov    %r12d,%ecx
  mov    %rbp,%rdx
  lea    D110(%rip),%rsi
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  mov    %rbp,%rdx
  lea    D77(%rip),%rsi
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  mov    %r13,%rcx
  mov    %rbp,%rdx
  lea    D22(%rip),%rsi
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  lea    D14(%rip),%r13
  mov    $0x190,%r15d
  mov    $0x24,%r14d
  jmp    L49
```

tool_calls: name: extract_symbolic_data
arguments: tag: D14
datatype: string
name: extract_symbolic_data
arguments: tag: D106
datatype: string
name: extract_symbolic_data
arguments: tag: D57
datatype: string
name: extract_symbolic_data
arguments: tag: D95
datatype: string
name: extract_symbolic_data
arguments: tag: D63
datatype: string
name: extract_symbolic_data
arguments: tag: D52
datatype: string
name: extract_symbolic_data
arguments: tag: D49
datatype: string
name: extract_symbolic_data
arguments: tag: D18
datatype: string
name: extract_symbolic_data
arguments: tag: D50
datatype: string
name: extract_symbolic_data
arguments: tag: D110
datatype: string
name: extract_symbolic_data
arguments: tag: D77
datatype: string
name: extract_symbolic_data
arguments: tag: D22
datatype: string

tool: D14: 0.0015d0

tool: D106: 0.001d0

tool: D57: 0.00067d0

tool: D95: 0.00030d0

tool: D63: 0.0001d0

tool: D52: setparams: Internal error: invalid class %c


tool: D49: 0.015d0

tool: D18:         

tool: D50: %sinteger maxcells, problem_size, niter_default


tool: D110: %sparameter (maxcells=%d, problem_size=%d, niter_default=%d)


tool: D77: %sdouble precision dt_default


tool: D22: %sparameter (dt_default = %s)


assistant: ```c
void write_sp_info(FILE *fp, int nprocs, char class) {
  int maxcells, problem_size, niter;
  char *dt;
  maxcells = isqrt(nprocs);
  if (class == 'S') {
    problem_size = 12;
    dt = "0.015d0";
    niter = 100;
  } else if (class == 'W') {
    problem_size = 36;
    dt = "0.0015d0";
    niter = 400;
  } else if (class == 'A') {
    problem_size = 64;
    dt = "0.0015d0";
    niter = 400;
  } else if (class == 'B') {
    problem_size = 102;
    dt = "0.001d0";
    niter = 400;
  } else if (class == 'C') {
    problem_size = 162;
    dt = "0.00067d0";
    niter = 400;
  } else if (class == 'D') {
    problem_size = 408;
    dt = "0.00030d0";
    niter = 500;
  } else if (class == 'E') {
    problem_size = 1020;
    dt = "0.0001d0";
    niter = 500;
  } else {
    printf("setparams: Internal error: invalid class %c\n", class);
    exit(1);
  }
  fprintf(fp, "%sinteger maxcells, problem_size, niter_default\n", "        ");
  fprintf(fp, "%sparameter (maxcells=%d, problem_size=%d, niter_default=%d)\n", "        ", maxcells, problem_size, niter);
  fprintf(fp, "%sdouble precision dt_default\n", "        ");
  fprintf(fp, "%sparameter (dt_default = %s)\n", "        ", dt);
}
```