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

```asm
<write_bt_info>:
  endbr64
  lea    -0x41(%rsi),%eax
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  cmp    $0x16,%al
  ja     L42
  lea    D43(%rip),%rdx
  movzbl %al,%eax
  movslq (%rdx,%rax,4),%rax
  add    %rdx,%rax
  notrack jmp *%rax
  nopw   0x0(%rax,%rax,1)
L42:
  lea    D88(%rip),%rdi
  movsbl %sil,%esi
  call   <printf@plt>
  mov    $0x1,%edi
  call   <exit@plt>
L24:
  lea    D59(%rip),%r12
  mov    %rbp,%rdi
  lea    D80(%rip),%rsi
  xor    %eax,%eax
  mov    %r12,%rdx
  call   <fprintf@plt>
  mov    %r14d,%ecx
  mov    %ebx,%r8d
  mov    %r12,%rdx
  mov    %rbp,%rdi
  lea    D63(%rip),%rsi
  xor    %eax,%eax
  call   <fprintf@plt>
  mov    %r12,%rdx
  mov    %rbp,%rdi
  xor    %eax,%eax
  lea    D24(%rip),%rsi
  call   <fprintf@plt>
  pop    %rbx
  mov    %r13,%rcx
  mov    %r12,%rdx
  mov    %rbp,%rdi
  lea    D110(%rip),%rsi
  pop    %rbp
  xor    %eax,%eax
  pop    %r12
  pop    %r13
  pop    %r14
  jmp    1080 <fprintf@plt>
  nopw   0x0(%rax,%rax,1)
  lea    D10(%rip),%r13
  mov    $0xc8,%ebx
  mov    $0x40,%r14d
  jmp    L24
  nop
  lea    D53(%rip),%r13
  mov    $0xc8,%ebx
  mov    $0x66,%r14d
  jmp    L24
  nopw   0x0(%rax,%rax,1)
  lea    D9(%rip),%r13
  mov    $0xc8,%ebx
  mov    $0xa2,%r14d
  jmp    L24
  nopw   0x0(%rax,%rax,1)
  lea    D94(%rip),%r13
  mov    $0x3c,%ebx
  mov    $0xc,%r14d
  jmp    L24
  nopw   0x0(%rax,%rax,1)
  lea    D10(%rip),%r13
  mov    $0xc8,%ebx
  mov    $0x18,%r14d
  jmp    L24
```

tool_calls: name: unpack_data
arguments: label: D88
type_guessed: string
name: unpack_data
arguments: label: D59
type_guessed: string
name: unpack_data
arguments: label: D80
type_guessed: string
name: unpack_data
arguments: label: D63
type_guessed: string
name: unpack_data
arguments: label: D24
type_guessed: string
name: unpack_data
arguments: label: D110
type_guessed: string
name: unpack_data
arguments: label: D10
type_guessed: string
name: unpack_data
arguments: label: D53
type_guessed: string
name: unpack_data
arguments: label: D9
type_guessed: string
name: unpack_data
arguments: label: D94
type_guessed: string

tool: D88: setparams: Internal error: invalid class %c


tool: D59:         

tool: D80: %sinteger problem_size, niter_default


tool: D63: %sparameter (problem_size=%d, niter_default=%d)


tool: D24: %sdouble precision dt_default


tool: D110: %sparameter (dt_default = %s)


tool: D10: 0.0008d0

tool: D53: 0.0003d0

tool: D9: 0.0001d0

tool: D94: 0.010d0

assistant: ```c
void write_bt_info(FILE *fp, char class) {
  int problem_size, niter;
  char *dt;
  if (class == 'S') {
    problem_size = 12;
    dt = "0.010d0";
    niter = 60;
  } else if (class == 'W') {
    problem_size = 24;
    dt = "0.0008d0";
    niter = 200;
  } else if (class == 'A') {
    problem_size = 64;
    dt = "0.0008d0";
    niter = 200;
  } else if (class == 'B') {
    problem_size = 102;
    dt = "0.0003d0";
    niter = 200;
  } else if (class == 'C') {
    problem_size = 162;
    dt = "0.0001d0";
    niter = 200;
  } else {
    printf("setparams: Internal error: invalid class %c\n", class);
    exit(1);
  }
  fprintf(fp, "%sinteger problem_size, niter_default\n", "        ");
  fprintf(fp, "%sparameter (problem_size=%d, niter_default=%d)\n", "        ", problem_size, niter);
  fprintf(fp, "%sdouble precision dt_default\n", "        ");
  fprintf(fp, "%sparameter (dt_default = %s)\n", "        ", dt);
}
```