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

```asm
<main>:
  endbr64
  sub    $0x18,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  movl   $0x0,0x4(%rsp)
  lea    0x4(%rsp),%rsi
  lea    D397(%rip),%rdi
  call   <scanf@plt>
  cmpl   $0xb,0x4(%rsp)
  ja     L16
  mov    0x4(%rsp),%eax
  lea    D619(%rip),%rdx
  movslq (%rdx,%rax,4),%rax
  add    %rdx,%rax
  notrack jmp *%rax
  lea    D322(%rip),%rdi
  call   <printf@plt>
  lea    D322(%rip),%rdi
  call   <printf@plt>
  lea    D532(%rip),%rdi
  call   <printf@plt>
  lea    D322(%rip),%rdi
  call   <printf@plt>
  lea    D532(%rip),%rdi
  call   <printf@plt>
  lea    D661(%rip),%rdi
  call   <printf@plt>
  lea    D322(%rip),%rdi
  call   <printf@plt>
  lea    D532(%rip),%rdi
  call   <printf@plt>
  lea    D661(%rip),%rdi
  call   <printf@plt>
  lea    D259(%rip),%rdi
  call   <printf@plt>
  lea    D322(%rip),%rdi
  call   <printf@plt>
  lea    D532(%rip),%rdi
  call   <printf@plt>
  lea    D661(%rip),%rdi
  call   <printf@plt>
  lea    D259(%rip),%rdi
  call   <printf@plt>
  lea    D377(%rip),%rdi
  call   <printf@plt>
  lea    D322(%rip),%rdi
  call   <printf@plt>
  lea    D532(%rip),%rdi
  call   <printf@plt>
  lea    D661(%rip),%rdi
  call   <printf@plt>
  lea    D259(%rip),%rdi
  call   <printf@plt>
  lea    D377(%rip),%rdi
  call   <printf@plt>
  lea    D292(%rip),%rdi
  call   <printf@plt>
  lea    D322(%rip),%rdi
  call   <printf@plt>
  lea    D532(%rip),%rdi
  call   <printf@plt>
  lea    D661(%rip),%rdi
  call   <printf@plt>
  lea    D259(%rip),%rdi
  call   <printf@plt>
  lea    D377(%rip),%rdi
  call   <printf@plt>
  lea    D292(%rip),%rdi
  call   <printf@plt>
  lea    D416(%rip),%rdi
  call   <printf@plt>
  lea    D322(%rip),%rdi
  call   <printf@plt>
  lea    D532(%rip),%rdi
  call   <printf@plt>
  lea    D661(%rip),%rdi
  call   <printf@plt>
  lea    D259(%rip),%rdi
  call   <printf@plt>
  lea    D377(%rip),%rdi
  call   <printf@plt>
  lea    D292(%rip),%rdi
  call   <printf@plt>
  lea    D416(%rip),%rdi
  call   <printf@plt>
  lea    D668(%rip),%rdi
  call   <printf@plt>
  lea    D322(%rip),%rdi
  call   <printf@plt>
  lea    D532(%rip),%rdi
  call   <printf@plt>
  lea    D661(%rip),%rdi
  call   <printf@plt>
  lea    D259(%rip),%rdi
  call   <printf@plt>
  lea    D377(%rip),%rdi
  call   <printf@plt>
  lea    D292(%rip),%rdi
  call   <printf@plt>
  lea    D416(%rip),%rdi
  call   <printf@plt>
  lea    D668(%rip),%rdi
  call   <printf@plt>
  lea    D495(%rip),%rdi
  call   <printf@plt>
  lea    D322(%rip),%rdi
  call   <printf@plt>
  lea    D532(%rip),%rdi
  call   <printf@plt>
  lea    D661(%rip),%rdi
  call   <printf@plt>
  lea    D259(%rip),%rdi
  call   <printf@plt>
  lea    D377(%rip),%rdi
  call   <printf@plt>
  lea    D292(%rip),%rdi
  call   <printf@plt>
  lea    D416(%rip),%rdi
  call   <printf@plt>
  lea    D668(%rip),%rdi
  call   <printf@plt>
  lea    D495(%rip),%rdi
  call   <printf@plt>
  lea    D254(%rip),%rdi
  call   <printf@plt>
  lea    D322(%rip),%rdi
  call   <printf@plt>
  lea    D532(%rip),%rdi
  call   <printf@plt>
  lea    D661(%rip),%rdi
  call   <printf@plt>
  lea    D259(%rip),%rdi
  call   <printf@plt>
  lea    D377(%rip),%rdi
  call   <printf@plt>
  lea    D292(%rip),%rdi
  call   <printf@plt>
  lea    D416(%rip),%rdi
  call   <printf@plt>
  lea    D668(%rip),%rdi
  call   <printf@plt>
  lea    D495(%rip),%rdi
  call   <printf@plt>
  lea    D254(%rip),%rdi
  call   <printf@plt>
  lea    D483(%rip),%rdi
  call   <printf@plt>
L16:
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L6
  mov    $0x0,%eax
  add    $0x18,%rsp
  ret
L6:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: label: D397
data_type: string
name: extract_symbolic_data
arguments: label: D322
data_type: string
name: extract_symbolic_data
arguments: label: D532
data_type: string
name: extract_symbolic_data
arguments: label: D661
data_type: string
name: extract_symbolic_data
arguments: label: D259
data_type: string
name: extract_symbolic_data
arguments: label: D377
data_type: string
name: extract_symbolic_data
arguments: label: D292
data_type: string
name: extract_symbolic_data
arguments: label: D416
data_type: string
name: extract_symbolic_data
arguments: label: D668
data_type: string
name: extract_symbolic_data
arguments: label: D495
data_type: string
name: extract_symbolic_data
arguments: label: D254
data_type: string
name: extract_symbolic_data
arguments: label: D483
data_type: string

tool: D397: %i

tool: D322:              *


tool: D532:             ***


tool: D661:            *****


tool: D259:           *******


tool: D377:          *********


tool: D292:         ***********


tool: D416:        *************


tool: D668:       ***************


tool: D495:      *****************


tool: D254:     *******************


tool: D483:    *********************


assistant: ```c
int main() {
  int chrs = 0;
  scanf("%i", &chrs);
  switch (chrs) {
  case 1:
    printf("             *\n");
  case 2:
    printf("             *\n");
    printf("            ***\n");
  case 3:
    printf("             *\n");
    printf("            ***\n");
    printf("           *****\n");
  case 4:
    printf("             *\n");
    printf("            ***\n");
    printf("           *****\n");
    printf("          *******\n");
  case 5:
    printf("             *\n");
    printf("            ***\n");
    printf("           *****\n");
    printf("          *******\n");
    printf("         *********\n");
  case 6:
    printf("             *\n");
    printf("            ***\n");
    printf("           *****\n");
    printf("          *******\n");
    printf("         *********\n");
    printf("        ***********\n");
  case 7:
    printf("             *\n");
    printf("            ***\n");
    printf("           *****\n");
    printf("          *******\n");
    printf("         *********\n");
    printf("        ***********\n");
    printf("       *************\n");
  case 8:
    printf("             *\n");
    printf("            ***\n");
    printf("           *****\n");
    printf("          *******\n");
    printf("         *********\n");
    printf("        ***********\n");
    printf("       *************\n");
    printf("      ***************\n");
  case 9:
    printf("             *\n");
    printf("            ***\n");
    printf("           *****\n");
    printf("          *******\n");
    printf("         *********\n");
    printf("        ***********\n");
    printf("       *************\n");
    printf("      ***************\n");
    printf("     *****************\n");
  case 10:
    printf("             *\n");
    printf("            ***\n");
    printf("           *****\n");
    printf("          *******\n");
    printf("         *********\n");
    printf("        ***********\n");
    printf("       *************\n");
    printf("      ***************\n");
    printf("     *****************\n");
    printf("    *******************\n");
  case 11:
    printf("             *\n");
    printf("            ***\n");
    printf("           *****\n");
    printf("          *******\n");
    printf("         *********\n");
    printf("        ***********\n");
    printf("       *************\n");
    printf("      ***************\n");
    printf("     *****************\n");
    printf("    *******************\n");
    printf("   *********************\n");
  }
  return 0;
}
```