user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<main>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  movl   $0x1,0x4(%rsp)
  lea    D205(%rip),%r12
  lea    D141(%rip),%rbp
  lea    D150(%rip),%r13
  lea    D130(%rip),%rbx
  jmp    L36
  lea    D95(%rip),%rdi
  call   <printf@plt>
L160:
  lea    D45(%rip),%rdi
  call   <printf@plt>
  lea    0x4(%rsp),%rsi
  mov    %rbp,%rdi
  call   <scanf@plt>
  cmpl   $0x1,0x4(%rsp)
  jne    L161
L36:
  mov    %r12,%rdi
  call   <printf@plt>
  mov    %rsp,%rsi
  mov    %rbp,%rdi
  call   <scanf@plt>
  cmpl   $0x14,(%rsp)
  ja     L222
  mov    (%rsp),%eax
  movslq (%rbx,%rax,4),%rax
  add    %rbx,%rax
  notrack jmp *%rax
  lea    D155(%rip),%rdi
  call   <printf@plt>
  jmp    L160
  lea    D39(%rip),%rdi
  call   <printf@plt>
  jmp    L160
  lea    D249(%rip),%rdi
  call   <printf@plt>
  jmp    L160
  lea    D82(%rip),%rdi
  call   <printf@plt>
  jmp    L160
  lea    D18(%rip),%rdi
  call   <printf@plt>
  jmp    L160
  lea    D44(%rip),%rdi
  call   <printf@plt>
  jmp    L160
  lea    D43(%rip),%rdi
  call   <printf@plt>
  jmp    L160
  lea    D241(%rip),%rdi
  call   <printf@plt>
  jmp    L160
  lea    D73(%rip),%rdi
  call   <printf@plt>
  jmp    L160
  lea    D5(%rip),%rdi
  call   <printf@plt>
  jmp    L160
  lea    D36(%rip),%rdi
  call   <printf@plt>
  jmp    L160
  lea    D60(%rip),%rdi
  call   <printf@plt>
  jmp    L160
  lea    D50(%rip),%rdi
  call   <printf@plt>
  jmp    L160
  lea    D80(%rip),%rdi
  call   <printf@plt>
  jmp    L160
  lea    D133(%rip),%rdi
  call   <printf@plt>
  jmp    L160
  lea    D64(%rip),%rdi
  call   <printf@plt>
  jmp    L160
  lea    D182(%rip),%rdi
  call   <printf@plt>
  jmp    L160
  lea    D65(%rip),%rdi
  call   <printf@plt>
  jmp    L160
  lea    D42(%rip),%rdi
  call   <printf@plt>
  jmp    L160
L222:
  mov    %r13,%rdi
  call   <printf@plt>
  jmp    L160
L161:
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L225
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L225:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: label: D205
type_guessed: string
name: disassemble_data
arguments: label: D141
type_guessed: string
name: disassemble_data
arguments: label: D150
type_guessed: string
name: disassemble_data
arguments: label: D95
type_guessed: string
name: disassemble_data
arguments: label: D45
type_guessed: string
name: disassemble_data
arguments: label: D155
type_guessed: string
name: disassemble_data
arguments: label: D39
type_guessed: string
name: disassemble_data
arguments: label: D249
type_guessed: string
name: disassemble_data
arguments: label: D82
type_guessed: string
name: disassemble_data
arguments: label: D18
type_guessed: string
name: disassemble_data
arguments: label: D44
type_guessed: string
name: disassemble_data
arguments: label: D43
type_guessed: string
name: disassemble_data
arguments: label: D241
type_guessed: string
name: disassemble_data
arguments: label: D73
type_guessed: string
name: disassemble_data
arguments: label: D5
type_guessed: string
name: disassemble_data
arguments: label: D36
type_guessed: string
name: disassemble_data
arguments: label: D60
type_guessed: string
name: disassemble_data
arguments: label: D50
type_guessed: string
name: disassemble_data
arguments: label: D80
type_guessed: string
name: disassemble_data
arguments: label: D133
type_guessed: string
name: disassemble_data
arguments: label: D64
type_guessed: string
name: disassemble_data
arguments: label: D182
type_guessed: string
name: disassemble_data
arguments: label: D65
type_guessed: string
name: disassemble_data
arguments: label: D42
type_guessed: string

tool: D205: Please enter an integer [1,20]: 

tool: D141: %d

tool: D150: The entered number is not in the range of [1,20].


tool: D95: I


tool: D45: Would you like to continue? (1 = yes, 0 = no): 

tool: D155: II


tool: D39: III


tool: D249: IV


tool: D82: V


tool: D18: VI


tool: D44: VII


tool: D43: VIII


tool: D241: IX


tool: D73: X


tool: D5: XI


tool: D36: XII


tool: D60: XIII


tool: D50: XIV


tool: D80: XV


tool: D133: XVI


tool: D64: XVII


tool: D182: XVIII


tool: D65: XIX


tool: D42: XX


assistant: ```c
void main() {
  int num;
  int cont = 1;
  while (cont == 1) {
    printf("Please enter an integer [1,20]: ");
    scanf("%d", &num);
    switch (num) {
    case 1:
      printf("I\n");
      break;
    case 2:
      printf("II\n");
      break;
    case 3:
      printf("III\n");
      break;
    case 4:
      printf("IV\n");
      break;
    case 5:
      printf("V\n");
      break;
    case 6:
      printf("VI\n");
      break;
    case 7:
      printf("VII\n");
      break;
    case 8:
      printf("VIII\n");
      break;
    case 9:
      printf("IX\n");
      break;
    case 10:
      printf("X\n");
      break;
    case 11:
      printf("XI\n");
      break;
    case 12:
      printf("XII\n");
      break;
    case 13:
      printf("XIII\n");
      break;
    case 14:
      printf("XIV\n");
      break;
    case 15:
      printf("XV\n");
      break;
    case 16:
      printf("XVI\n");
      break;
    case 17:
      printf("XVII\n");
      break;
    case 18:
      printf("XVIII\n");
      break;
    case 19:
      printf("XIX\n");
      break;
    case 20:
      printf("XX\n");
      break;
    default:
      printf("The entered number is not in the range of [1,20].\n");
      break;
    }
    printf("Would you like to continue? (1 = yes, 0 = no): ");
    scanf("%d", &cont);
  }
}
```