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     L63
  lea    D47(%rip),%rdx
  movzbl %al,%eax
  movslq (%rdx,%rax,4),%rax
  add    %rdx,%rax
  notrack jmp *%rax
  nopw   0x0(%rax,%rax,1)
L63:
  movsbl %bl,%esi
  lea    D80(%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
L30:
  movsbq %bl,%rdx
  mov    %rbp,%rdi
  mov    %r8,0x18(%rsp)
  lea    D85(%rip),%rsi
  mov    %r9,0x10(%rsp)
  mov    %r10,0x8(%rsp)
  mov    %r11,(%rsp)
  call   <fprintf@plt>
  mov    (%rsp),%rdx
  mov    %rbp,%rdi
  lea    D24(%rip),%rsi
  call   <fprintf@plt>
  mov    %r12,%rdx
  mov    %rbp,%rdi
  lea    D19(%rip),%rsi
  call   <fprintf@plt>
  mov    0x8(%rsp),%rdx
  mov    %rbp,%rdi
  lea    D40(%rip),%rsi
  call   <fprintf@plt>
  mov    0x10(%rsp),%rdx
  mov    %rbp,%rdi
  lea    D113(%rip),%rsi
  call   <fprintf@plt>
  mov    0x18(%rsp),%rdx
  mov    %rbp,%rdi
  lea    D34(%rip),%rsi
  call   <fprintf@plt>
  mov    %r15,%rdx
  mov    %rbp,%rdi
  lea    D59(%rip),%rsi
  call   <fprintf@plt>
  mov    %r12,%rdx
  mov    %rbp,%rdi
  lea    D83(%rip),%rsi
  call   <fprintf@plt>
  mov    %r14,%rdx
  mov    %rbp,%rdi
  lea    D17(%rip),%rsi
  call   <fprintf@plt>
  add    $0x28,%rsp
  mov    %r13,%rdx
  mov    %rbp,%rdi
  pop    %rbx
  lea    D115(%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    L30
  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    L30
  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    L30
  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    L30
  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    L30
  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    L30
  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    L30
```

tool_calls: name: disassemble_data
arguments: data_label: D80
type_guessed: string
name: disassemble_data
arguments: data_label: D85
type_guessed: string
name: disassemble_data
arguments: data_label: D24
type_guessed: string
name: disassemble_data
arguments: data_label: D19
type_guessed: string
name: disassemble_data
arguments: data_label: D40
type_guessed: string
name: disassemble_data
arguments: data_label: D113
type_guessed: string
name: disassemble_data
arguments: data_label: D34
type_guessed: string
name: disassemble_data
arguments: data_label: D59
type_guessed: string
name: disassemble_data
arguments: data_label: D83
type_guessed: string
name: disassemble_data
arguments: data_label: D17
type_guessed: string
name: disassemble_data
arguments: data_label: D115
type_guessed: string

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


tool: D85: #define CLASS          '%c'


tool: D24: #define NX             %d


tool: D19: #define NY             %d


tool: D40: #define NZ             %d


tool: D113: #define MAXDIM         %d


tool: D34: #define NITER_DEFAULT  %d


tool: D59: #define NXP            %d


tool: D83: #define NYP            %d


tool: D17: #define NTOTAL         %llu


tool: D115: #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);
}
```