user: Converte this assembly snippet into its equivalent C code:

```asm
<write_ft_info>:
  endbr64
  push   %r15
  lea    -0x41(%rsi),%eax
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  sub    $0x18,%rsp
  cmp    $0x16,%al
  ja     L48
  lea    D68(%rip),%rdx
  movzbl %al,%eax
  movslq (%rdx,%rax,4),%rax
  add    %rdx,%rax
  notrack jmp *%rax
L48:
  movsbl %sil,%esi
  lea    D17(%rip),%rdi
  xor    %r15d,%r15d
  xor    %ebx,%ebx
  call   <printf@plt>
  mov    $0x1,%edi
  xor    %r14d,%r14d
  call   <exit@plt>
  xor    %r9d,%r9d
L42:
  lea    D18(%rip),%r12
  mov    %rbp,%rdi
  lea    D54(%rip),%rsi
  xor    %eax,%eax
  mov    %r12,%rdx
  mov    %r9d,0xc(%rsp)
  call   <fprintf@plt>
  sub    $0x8,%rsp
  mov    %r15d,%r8d
  mov    %r14d,%ecx
  push   %rbx
  mov    0x1c(%rsp),%r9d
  mov    %r12,%rdx
  mov    %rbp,%rdi
  lea    D44(%rip),%rsi
  xor    %eax,%eax
  call   <fprintf@plt>
  mov    %r12,%rdx
  mov    %rbp,%rdi
  mov    %r13d,%ecx
  lea    D21(%rip),%rsi
  xor    %eax,%eax
  call   <fprintf@plt>
  add    $0x28,%rsp
  mov    %r12,%rdx
  mov    %rbp,%rdi
  pop    %rbx
  lea    D19(%rip),%rsi
  pop    %rbp
  xor    %eax,%eax
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    1080 <fprintf@plt>
  nopw   0x0(%rax,%rax,1)
  mov    $0x100,%ebx
  mov    $0x6,%r13d
  mov    $0x80,%r9d
  mov    $0x100,%r15d
  mov    $0x100,%r14d
  jmp    L42
  nopw   0x0(%rax,%rax,1)
  mov    $0x200,%ebx
  mov    $0x14,%r13d
  mov    $0x100,%r9d
  mov    $0x100,%r15d
  mov    $0x200,%r14d
  jmp    L42
  nopw   0x0(%rax,%rax,1)
  mov    $0x200,%ebx
  mov    $0x14,%r13d
  mov    $0x200,%r9d
  mov    $0x200,%r15d
  mov    $0x200,%r14d
  jmp    L42
  nopw   0x0(%rax,%rax,1)
  mov    $0x40,%ebx
  mov    $0x6,%r13d
  mov    $0x40,%r9d
  mov    $0x40,%r15d
  mov    $0x40,%r14d
  jmp    L42
  nopw   0x0(%rax,%rax,1)
  mov    $0x80,%ebx
  mov    $0x6,%r13d
  mov    $0x20,%r9d
  mov    $0x80,%r15d
  mov    $0x80,%r14d
  jmp    L42
```

tool_calls: name: extract_symbolic_data
arguments: label: D17
data_type: string
name: extract_symbolic_data
arguments: label: D18
data_type: string
name: extract_symbolic_data
arguments: label: D54
data_type: string
name: extract_symbolic_data
arguments: label: D44
data_type: string
name: extract_symbolic_data
arguments: label: D21
data_type: string
name: extract_symbolic_data
arguments: label: D19
data_type: string

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


tool: D18:         

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


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


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


tool: D19: %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", "        ");
}
```