user: What would the C source look like for the assembly code provided here?

```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     L77
  lea    -0x41(%rbp),%eax
  cmp    $0x16,%al
  ja     L52
  movzbl %al,%eax
  lea    D98(%rip),%rdx
  movslq (%rdx,%rax,4),%rax
  add    %rdx,%rax
  notrack jmp *%rax
  lea    D119(%rip),%r13
  mov    $0x190,%r15d
  mov    $0x40,%r14d
  jmp    L22
  lea    D19(%rip),%r13
  mov    $0x190,%r15d
  mov    $0x66,%r14d
  jmp    L22
  lea    D41(%rip),%r13
  mov    $0x190,%r15d
  mov    $0xa2,%r14d
  jmp    L22
  lea    D17(%rip),%r13
  mov    $0x1f4,%r15d
  mov    $0x198,%r14d
  jmp    L22
L52:
  movsbl %bpl,%esi
  lea    D60(%rip),%rdi
  call   <printf@plt>
  mov    $0x1,%edi
  call   <exit@plt>
  jmp    L22
L77:
  lea    D12(%rip),%r13
  mov    $0x64,%r15d
  mov    $0xc,%r14d
L22:
  lea    D45(%rip),%rbp
  mov    %rbp,%rdx
  lea    D20(%rip),%rsi
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  mov    %r15d,%r9d
  mov    %r14d,%r8d
  mov    %r12d,%ecx
  mov    %rbp,%rdx
  lea    D46(%rip),%rsi
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  mov    %rbp,%rdx
  lea    D102(%rip),%rsi
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  mov    %r13,%rcx
  mov    %rbp,%rdx
  lea    D77(%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    D119(%rip),%r13
  mov    $0x190,%r15d
  mov    $0x24,%r14d
  jmp    L22
```

tool_calls: name: parse_data
arguments: tag: D119
type: string
name: parse_data
arguments: tag: D19
type: string
name: parse_data
arguments: tag: D41
type: string
name: parse_data
arguments: tag: D17
type: string
name: parse_data
arguments: tag: D60
type: string
name: parse_data
arguments: tag: D12
type: string
name: parse_data
arguments: tag: D45
type: string
name: parse_data
arguments: tag: D20
type: string
name: parse_data
arguments: tag: D46
type: string
name: parse_data
arguments: tag: D102
type: string
name: parse_data
arguments: tag: D77
type: string

tool: D119: 0.0015d0

tool: D19: 0.001d0

tool: D41: 0.00067d0

tool: D17: 0.00030d0

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


tool: D12: 0.015d0

tool: D45:         

tool: D20: %sinteger maxcells, problem_size, niter_default


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


tool: D102: %sdouble precision dt_default


tool: D77: %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 {
    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);
}
```