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    L80
  movl   $0xc,-0x14(%rbp)
  lea    D28(%rip),%rax
  mov    %rax,-0x8(%rbp)
  movl   $0x64,-0x10(%rbp)
  jmp    L4
L80:
  cmpb   $0x57,-0x30(%rbp)
  jne    L32
  movl   $0x24,-0x14(%rbp)
  lea    D141(%rip),%rax
  mov    %rax,-0x8(%rbp)
  movl   $0x190,-0x10(%rbp)
  jmp    L4
L32:
  cmpb   $0x41,-0x30(%rbp)
  jne    L65
  movl   $0x40,-0x14(%rbp)
  lea    D141(%rip),%rax
  mov    %rax,-0x8(%rbp)
  movl   $0x190,-0x10(%rbp)
  jmp    L4
L65:
  cmpb   $0x42,-0x30(%rbp)
  jne    L1
  movl   $0x66,-0x14(%rbp)
  lea    D34(%rip),%rax
  mov    %rax,-0x8(%rbp)
  movl   $0x190,-0x10(%rbp)
  jmp    L4
L1:
  cmpb   $0x43,-0x30(%rbp)
  jne    L31
  movl   $0xa2,-0x14(%rbp)
  lea    D92(%rip),%rax
  mov    %rax,-0x8(%rbp)
  movl   $0x190,-0x10(%rbp)
  jmp    L4
L31:
  cmpb   $0x44,-0x30(%rbp)
  jne    L36
  movl   $0x198,-0x14(%rbp)
  lea    D7(%rip),%rax
  mov    %rax,-0x8(%rbp)
  movl   $0x1f4,-0x10(%rbp)
  jmp    L4
L36:
  cmpb   $0x45,-0x30(%rbp)
  jne    L121
  movl   $0x3fc,-0x14(%rbp)
  lea    D63(%rip),%rax
  mov    %rax,-0x8(%rbp)
  movl   $0x1f4,-0x10(%rbp)
  jmp    L4
L121:
  movsbl -0x30(%rbp),%eax
  mov    %eax,%esi
  lea    D84(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    $0x1,%edi
  call   <exit@plt>
L4:
  mov    -0x28(%rbp),%rax
  lea    D98(%rip),%rdx
  lea    D115(%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    D98(%rip),%rdx
  lea    D35(%rip),%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  mov    -0x28(%rbp),%rax
  lea    D98(%rip),%rdx
  lea    D22(%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    D98(%rip),%rdx
  lea    D13(%rip),%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  nop
  leave
  ret
```

tool_calls: name: unpack_data
arguments: label: D28
type: string
name: unpack_data
arguments: label: D141
type: string
name: unpack_data
arguments: label: D34
type: string
name: unpack_data
arguments: label: D92
type: string
name: unpack_data
arguments: label: D7
type: string
name: unpack_data
arguments: label: D63
type: string
name: unpack_data
arguments: label: D84
type: string
name: unpack_data
arguments: label: D98
type: string
name: unpack_data
arguments: label: D115
type: string
name: unpack_data
arguments: label: D35
type: string
name: unpack_data
arguments: label: D22
type: string
name: unpack_data
arguments: label: D13
type: string

tool: D28: 0.015d0

tool: D141: 0.0015d0

tool: D34: 0.001d0

tool: D92: 0.00067d0

tool: D7: 0.00030d0

tool: D63: 0.0001d0

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


tool: D98:         

tool: D115: %sinteger maxcells, problem_size, niter_default


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


tool: D22: %sdouble precision dt_default


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