user: 这段汇编代码用C语言表示是什么样的?

```asm
<write_sp_info>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %esi,-0x2c(%rbp)
  mov    %edx,%eax
  mov    %al,-0x30(%rbp)
  mov    -0x2c(%rbp),%eax
  mov    %eax,%edi
  call   <isqrt@plt>
  mov    %eax,-0xc(%rbp)
  cmpb   $0x53,-0x30(%rbp)
  jne    L20
  movl   $0xc,-0x14(%rbp)
  lea    D0(%rip),%rax
  mov    %rax,-0x8(%rbp)
  movl   $0x64,-0x10(%rbp)
  jmp    L105
L20:
  cmpb   $0x57,-0x30(%rbp)
  jne    L101
  movl   $0x24,-0x14(%rbp)
  lea    D60(%rip),%rax
  mov    %rax,-0x8(%rbp)
  movl   $0x190,-0x10(%rbp)
  jmp    L105
L101:
  cmpb   $0x41,-0x30(%rbp)
  jne    L27
  movl   $0x40,-0x14(%rbp)
  lea    D60(%rip),%rax
  mov    %rax,-0x8(%rbp)
  movl   $0x190,-0x10(%rbp)
  jmp    L105
L27:
  cmpb   $0x42,-0x30(%rbp)
  jne    L5
  movl   $0x66,-0x14(%rbp)
  lea    D69(%rip),%rax
  mov    %rax,-0x8(%rbp)
  movl   $0x190,-0x10(%rbp)
  jmp    L105
L5:
  cmpb   $0x43,-0x30(%rbp)
  jne    L88
  movl   $0xa2,-0x14(%rbp)
  lea    D78(%rip),%rax
  mov    %rax,-0x8(%rbp)
  movl   $0x190,-0x10(%rbp)
  jmp    L105
L88:
  cmpb   $0x44,-0x30(%rbp)
  jne    L64
  movl   $0x198,-0x14(%rbp)
  lea    D18(%rip),%rax
  mov    %rax,-0x8(%rbp)
  movl   $0x1f4,-0x10(%rbp)
  jmp    L105
L64:
  movsbl -0x30(%rbp),%eax
  mov    %eax,%esi
  lea    D96(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    $0x1,%edi
  call   <exit@plt>
L105:
  mov    -0x28(%rbp),%rax
  lea    D101(%rip),%rdx
  lea    D112(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  mov    -0x10(%rbp),%esi
  mov    -0x14(%rbp),%ecx
  mov    -0xc(%rbp),%edx
  mov    -0x28(%rbp),%rax
  mov    %esi,%r9d
  mov    %ecx,%r8d
  mov    %edx,%ecx
  lea    D101(%rip),%rdx
  lea    D115(%rip),%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  mov    -0x28(%rbp),%rax
  lea    D101(%rip),%rdx
  lea    D106(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  mov    -0x8(%rbp),%rdx
  mov    -0x28(%rbp),%rax
  mov    %rdx,%rcx
  lea    D101(%rip),%rdx
  lea    D149(%rip),%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  nop
  leave
  ret
```

tool_calls: name: unpack_data
arguments: label: D0
datatype: string
name: unpack_data
arguments: label: D60
datatype: string
name: unpack_data
arguments: label: D69
datatype: string
name: unpack_data
arguments: label: D78
datatype: string
name: unpack_data
arguments: label: D18
datatype: string
name: unpack_data
arguments: label: D96
datatype: string
name: unpack_data
arguments: label: D101
datatype: string
name: unpack_data
arguments: label: D112
datatype: string
name: unpack_data
arguments: label: D115
datatype: string
name: unpack_data
arguments: label: D106
datatype: string
name: unpack_data
arguments: label: D149
datatype: string

tool: D0: 0.015d0

tool: D60: 0.0015d0

tool: D69: 0.001d0

tool: D78: 0.00067d0

tool: D18: 0.00030d0

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


tool: D101:         

tool: D112: %sinteger maxcells, problem_size, niter_default


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


tool: D106: %sdouble precision dt_default


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