user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<write_ft_info>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %esi,%eax
  mov    %al,-0x2c(%rbp)
  cmpb   $0x53,-0x2c(%rbp)
  jne    L59
  movl   $0x40,-0x14(%rbp)
  movl   $0x40,-0x10(%rbp)
  movl   $0x40,-0xc(%rbp)
  movl   $0x6,-0x4(%rbp)
  jmp    L76
L59:
  cmpb   $0x57,-0x2c(%rbp)
  jne    L107
  movl   $0x80,-0x14(%rbp)
  movl   $0x80,-0x10(%rbp)
  movl   $0x20,-0xc(%rbp)
  movl   $0x6,-0x4(%rbp)
  jmp    L76
L107:
  cmpb   $0x41,-0x2c(%rbp)
  jne    L31
  movl   $0x100,-0x14(%rbp)
  movl   $0x100,-0x10(%rbp)
  movl   $0x80,-0xc(%rbp)
  movl   $0x6,-0x4(%rbp)
  jmp    L76
L31:
  cmpb   $0x42,-0x2c(%rbp)
  jne    L12
  movl   $0x200,-0x14(%rbp)
  movl   $0x100,-0x10(%rbp)
  movl   $0x100,-0xc(%rbp)
  movl   $0x14,-0x4(%rbp)
  jmp    L76
L12:
  cmpb   $0x43,-0x2c(%rbp)
  jne    L40
  movl   $0x200,-0x14(%rbp)
  movl   $0x200,-0x10(%rbp)
  movl   $0x200,-0xc(%rbp)
  movl   $0x14,-0x4(%rbp)
  jmp    L76
L40:
  movsbl -0x2c(%rbp),%eax
  mov    %eax,%esi
  lea    D48(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    $0x1,%edi
  call   <exit@plt>
L76:
  mov    -0x14(%rbp),%eax
  mov    %eax,-0x8(%rbp)
  mov    -0x10(%rbp),%eax
  cmp    -0x8(%rbp),%eax
  jle    L47
  mov    -0x10(%rbp),%eax
  mov    %eax,-0x8(%rbp)
L47:
  mov    -0xc(%rbp),%eax
  cmp    -0x8(%rbp),%eax
  jle    L94
  mov    -0xc(%rbp),%eax
  mov    %eax,-0x8(%rbp)
L94:
  mov    -0x28(%rbp),%rax
  lea    D14(%rip),%rdx
  lea    D7(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  mov    -0xc(%rbp),%edi
  mov    -0x10(%rbp),%esi
  mov    -0x14(%rbp),%edx
  mov    -0x28(%rbp),%rax
  sub    $0x8,%rsp
  mov    -0x8(%rbp),%ecx
  push   %rcx
  mov    %edi,%r9d
  mov    %esi,%r8d
  mov    %edx,%ecx
  lea    D14(%rip),%rdx
  lea    D71(%rip),%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  add    $0x10,%rsp
  mov    -0x4(%rbp),%edx
  mov    -0x28(%rbp),%rax
  mov    %edx,%ecx
  lea    D14(%rip),%rdx
  lea    D37(%rip),%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  mov    -0x28(%rbp),%rax
  lea    D14(%rip),%rdx
  lea    D78(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  nop
  leave
  ret
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D48
datatype: string
name: extract_symbolic_data
arguments: data_label: D14
datatype: string
name: extract_symbolic_data
arguments: data_label: D7
datatype: string
name: extract_symbolic_data
arguments: data_label: D71
datatype: string
name: extract_symbolic_data
arguments: data_label: D37
datatype: string
name: extract_symbolic_data
arguments: data_label: D78
datatype: string

tool: D48: setparams: Internal error: invalid class type %c


tool: D14:         

tool: D7: %sinteger nx, ny, nz, maxdim, niter_default, ntotal


tool: D71: %sparameter (nx=%d, ny=%d, nz=%d, maxdim=%d)


tool: D37: %sparameter (niter_default=%d)


tool: D78: %sparameter (ntotal=nx*ny*nz)


assistant: ```c
void write_ft_info(FILE *fp, char class) {
  int nx, ny, nz, maxdim, niter;
  if (class == 'S') {
    nx = 64;
    ny = 64;
    nz = 64;
    niter = 6;
  } else if (class == 'W') {
    nx = 128;
    ny = 128;
    nz = 32;
    niter = 6;
  } else if (class == 'A') {
    nx = 256;
    ny = 256;
    nz = 128;
    niter = 6;
  } else if (class == 'B') {
    nx = 512;
    ny = 256;
    nz = 256;
    niter = 20;
  } else if (class == 'C') {
    nx = 512;
    ny = 512;
    nz = 512;
    niter = 20;
  } else {
    printf("setparams: Internal error: invalid class type %c\n", class);
    exit(1);
  }
  maxdim = nx;
  if (ny > maxdim)
    maxdim = ny;
  if (nz > maxdim)
    maxdim = nz;
  fprintf(fp, "%sinteger nx, ny, nz, maxdim, niter_default, ntotal\n", "        ");
  fprintf(fp, "%sparameter (nx=%d, ny=%d, nz=%d, maxdim=%d)\n", "        ", nx, ny, nz, maxdim);
  fprintf(fp, "%sparameter (niter_default=%d)\n", "        ", niter);
  fprintf(fp, "%sparameter (ntotal=nx*ny*nz)\n", "        ");
}
```