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

```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    L97
  movl   $0x40,-0x14(%rbp)
  movl   $0x40,-0x10(%rbp)
  movl   $0x40,-0xc(%rbp)
  movl   $0x6,-0x4(%rbp)
  jmp    L107
L97:
  cmpb   $0x57,-0x2c(%rbp)
  jne    L112
  movl   $0x80,-0x14(%rbp)
  movl   $0x80,-0x10(%rbp)
  movl   $0x20,-0xc(%rbp)
  movl   $0x6,-0x4(%rbp)
  jmp    L107
L112:
  cmpb   $0x41,-0x2c(%rbp)
  jne    L47
  movl   $0x100,-0x14(%rbp)
  movl   $0x100,-0x10(%rbp)
  movl   $0x80,-0xc(%rbp)
  movl   $0x6,-0x4(%rbp)
  jmp    L107
L47:
  cmpb   $0x42,-0x2c(%rbp)
  jne    L53
  movl   $0x200,-0x14(%rbp)
  movl   $0x100,-0x10(%rbp)
  movl   $0x100,-0xc(%rbp)
  movl   $0x14,-0x4(%rbp)
  jmp    L107
L53:
  cmpb   $0x43,-0x2c(%rbp)
  jne    L10
  movl   $0x200,-0x14(%rbp)
  movl   $0x200,-0x10(%rbp)
  movl   $0x200,-0xc(%rbp)
  movl   $0x14,-0x4(%rbp)
  jmp    L107
L10:
  movsbl -0x2c(%rbp),%eax
  mov    %eax,%esi
  lea    D11(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    $0x1,%edi
  call   <exit@plt>
L107:
  mov    -0x14(%rbp),%eax
  mov    %eax,-0x8(%rbp)
  mov    -0x10(%rbp),%eax
  cmp    -0x8(%rbp),%eax
  jle    L66
  mov    -0x10(%rbp),%eax
  mov    %eax,-0x8(%rbp)
L66:
  mov    -0xc(%rbp),%eax
  cmp    -0x8(%rbp),%eax
  jle    L56
  mov    -0xc(%rbp),%eax
  mov    %eax,-0x8(%rbp)
L56:
  mov    -0x14(%rbp),%edx
  mov    -0x28(%rbp),%rax
  lea    D31(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <fprintf@plt>
  mov    -0x10(%rbp),%edx
  mov    -0x28(%rbp),%rax
  lea    D27(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <fprintf@plt>
  mov    -0xc(%rbp),%edx
  mov    -0x28(%rbp),%rax
  lea    D63(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <fprintf@plt>
  mov    -0x8(%rbp),%edx
  mov    -0x28(%rbp),%rax
  lea    D30(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <fprintf@plt>
  mov    -0x4(%rbp),%edx
  mov    -0x28(%rbp),%rax
  lea    D22(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <fprintf@plt>
  mov    -0x14(%rbp),%eax
  imul   -0x10(%rbp),%eax
  imul   -0xc(%rbp),%eax
  mov    %eax,%edx
  mov    -0x28(%rbp),%rax
  lea    D49(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <fprintf@plt>
  nop
  leave
  ret
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D11
type_infered: string
name: extract_symbolic_data
arguments: data_label: D31
type_infered: string
name: extract_symbolic_data
arguments: data_label: D27
type_infered: string
name: extract_symbolic_data
arguments: data_label: D63
type_infered: string
name: extract_symbolic_data
arguments: data_label: D30
type_infered: string
name: extract_symbolic_data
arguments: data_label: D22
type_infered: string
name: extract_symbolic_data
arguments: data_label: D49
type_infered: string

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


tool: D31: #define	NX	%d


tool: D27: #define	NY	%d


tool: D63: #define	NZ	%d


tool: D30: #define	MAXDIM	%d


tool: D22: #define	NITER_DEFAULT	%d


tool: D49: #define	NTOTAL	%d


assistant: ```c
void write_ft_info(FILE *fp, char class) {
  int nx, ny, nz, maxdim, niter, np_min;
  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, "#define\tNX\t%d\n", nx);
  fprintf(fp, "#define\tNY\t%d\n", ny);
  fprintf(fp, "#define\tNZ\t%d\n", nz);
  fprintf(fp, "#define\tMAXDIM\t%d\n", maxdim);
  fprintf(fp, "#define\tNITER_DEFAULT\t%d\n", niter);
  fprintf(fp, "#define\tNTOTAL\t%d\n", nx * ny * nz);
}
```