user: 请从给定的汇编指令推导出C源代码：

```asm
<write_ft_info>:
  endbr64
  push   %r15
  lea    -0x41(%rsi),%eax
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  mov    %esi,%ebx
  sub    $0x28,%rsp
  cmp    $0x16,%al
  ja     L1
  lea    D104(%rip),%rdx
  movzbl %al,%eax
  movslq (%rdx,%rax,4),%rax
  add    %rdx,%rax
  notrack jmp *%rax
  nopw   0x0(%rax,%rax,1)
L1:
  movsbl %bl,%esi
  lea    D117(%rip),%rdi
  xor    %r12d,%r12d
  xor    %r14d,%r14d
  call   <printf@plt>
  mov    $0x1,%edi
  mov    $0x1,%r15d
  xor    %r13d,%r13d
  call   <exit@plt>
  xor    %r11d,%r11d
  xor    %r10d,%r10d
  xor    %r9d,%r9d
  xor    %r8d,%r8d
L10:
  movsbq %bl,%rdx
  mov    %rbp,%rdi
  mov    %r8,0x18(%rsp)
  lea    D112(%rip),%rsi
  mov    %r9,0x10(%rsp)
  mov    %r10,0x8(%rsp)
  mov    %r11,(%rsp)
  call   <fprintf@plt>
  mov    (%rsp),%rdx
  mov    %rbp,%rdi
  lea    D99(%rip),%rsi
  call   <fprintf@plt>
  mov    %r12,%rdx
  mov    %rbp,%rdi
  lea    D63(%rip),%rsi
  call   <fprintf@plt>
  mov    0x8(%rsp),%rdx
  mov    %rbp,%rdi
  lea    D65(%rip),%rsi
  call   <fprintf@plt>
  mov    0x10(%rsp),%rdx
  mov    %rbp,%rdi
  lea    D5(%rip),%rsi
  call   <fprintf@plt>
  mov    0x18(%rsp),%rdx
  mov    %rbp,%rdi
  lea    D110(%rip),%rsi
  call   <fprintf@plt>
  mov    %r15,%rdx
  mov    %rbp,%rdi
  lea    D22(%rip),%rsi
  call   <fprintf@plt>
  mov    %r12,%rdx
  mov    %rbp,%rdi
  lea    D88(%rip),%rsi
  call   <fprintf@plt>
  mov    %r14,%rdx
  mov    %rbp,%rdi
  lea    D13(%rip),%rsi
  call   <fprintf@plt>
  add    $0x28,%rsp
  mov    %r13,%rdx
  mov    %rbp,%rdi
  pop    %rbx
  lea    D58(%rip),%rsi
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    1080 <fprintf@plt>
  nopl   0x0(%rax)
  mov    $0x808000,%r13d
  mov    $0x800000,%r14d
  mov    $0x101,%r15d
  mov    $0x6,%r8d
  mov    $0x100,%r9d
  mov    $0x80,%r10d
  mov    $0x100,%r12d
  mov    $0x100,%r11d
  jmp    L10
  nopl   (%rax)
  mov    $0x2010000,%r13d
  mov    $0x2000000,%r14d
  mov    $0x201,%r15d
  mov    $0x14,%r8d
  mov    $0x200,%r9d
  mov    $0x100,%r10d
  mov    $0x100,%r12d
  mov    $0x200,%r11d
  jmp    L10
  nopl   (%rax)
  mov    $0x8040000,%r13d
  mov    $0x8000000,%r14d
  mov    $0x201,%r15d
  mov    $0x14,%r8d
  mov    $0x200,%r9d
  mov    $0x200,%r10d
  mov    $0x200,%r12d
  mov    $0x200,%r11d
  jmp    L10
  nopl   (%rax)
  mov    $0x80100000,%r13d
  mov    $0x80000000,%r14d
  mov    $0x801,%r15d
  mov    $0x19,%r8d
  mov    $0x800,%r9d
  mov    $0x400,%r10d
  mov    $0x400,%r12d
  mov    $0x800,%r11d
  jmp    L10
  nopl   (%rax)
  movabs $0x400400000,%r13
  mov    $0x1001,%r15d
  movabs $0x400000000,%r14
  mov    $0x19,%r8d
  mov    $0x1000,%r9d
  mov    $0x800,%r10d
  mov    $0x800,%r12d
  mov    $0x1000,%r11d
  jmp    L10
  nopl   (%rax)
  mov    $0x41000,%r13d
  mov    $0x40000,%r14d
  mov    $0x41,%r15d
  mov    $0x6,%r8d
  mov    $0x40,%r9d
  mov    $0x40,%r10d
  mov    $0x40,%r12d
  mov    $0x40,%r11d
  jmp    L10
  nopl   (%rax)
  mov    $0x81000,%r13d
  mov    $0x80000,%r14d
  mov    $0x81,%r15d
  mov    $0x6,%r8d
  mov    $0x80,%r9d
  mov    $0x20,%r10d
  mov    $0x80,%r12d
  mov    $0x80,%r11d
  jmp    L10
```

tool_calls: name: extract_symbolic_data
arguments: tag: D117
type: string
name: extract_symbolic_data
arguments: tag: D112
type: string
name: extract_symbolic_data
arguments: tag: D99
type: string
name: extract_symbolic_data
arguments: tag: D63
type: string
name: extract_symbolic_data
arguments: tag: D65
type: string
name: extract_symbolic_data
arguments: tag: D5
type: string
name: extract_symbolic_data
arguments: tag: D110
type: string
name: extract_symbolic_data
arguments: tag: D22
type: string
name: extract_symbolic_data
arguments: tag: D88
type: string
name: extract_symbolic_data
arguments: tag: D13
type: string
name: extract_symbolic_data
arguments: tag: D58
type: string

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


tool: D112: #define CLASS          '%c'


tool: D99: #define NX             %d


tool: D63: #define NY             %d


tool: D65: #define NZ             %d


tool: D5: #define MAXDIM         %d


tool: D110: #define NITER_DEFAULT  %d


tool: D22: #define NXP            %d


tool: D88: #define NYP            %d


tool: D13: #define NTOTAL         %llu


tool: D58: #define NTOTALP        %llu


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 if (class == 'D') {
    nx = 2048;
    ny = 1024;
    nz = 1024;
    niter = 25;
  } else if (class == 'E') {
    nx = 4096;
    ny = 2048;
    nz = 2048;
    niter = 25;
  } 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 CLASS          \'%c\'\n", class);
  fprintf(fp, "#define NX             %d\n", nx);
  fprintf(fp, "#define NY             %d\n", ny);
  fprintf(fp, "#define NZ             %d\n", nz);
  fprintf(fp, "#define MAXDIM         %d\n", maxdim);
  fprintf(fp, "#define NITER_DEFAULT  %d\n", niter);
  fprintf(fp, "#define NXP            %d\n", nx + 1);
  fprintf(fp, "#define NYP            %d\n", ny);
  fprintf(fp, "#define NTOTAL         %llu\n", (unsigned long long)nx * ny * nz);
  fprintf(fp, "#define NTOTALP        %llu\n", (unsigned long long)(nx + 1) * ny * nz);
}
```