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

```asm
<main>:
  endbr64
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x60,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x58(%rsp)
  xor    %eax,%eax
  movb   $0x0,0x1(%rsp)
  movabs $0x3837367265736161,%rax
  mov    %rax,0xa(%rsp)
  movl   $0x33323139,0x12(%rsp)
  movb   $0x34,0x16(%rsp)
  lea    -0xf0000(%rax),%rax
  mov    %rax,0x17(%rsp)
  movl   $0x33323139,0x1f(%rsp)
  movb   $0x34,0x23(%rsp)
  movabs $0x3837367974736161,%rax
  mov    %rax,0x24(%rsp)
  movl   $0x33323139,0x2c(%rsp)
  movb   $0x34,0x30(%rsp)
  lea    -0xf0000(%rax),%rax
  mov    %rax,0x31(%rsp)
  movl   $0x33323139,0x39(%rsp)
  movb   $0x34,0x3d(%rsp)
  movabs $0x3837367265666161,%rax
  mov    %rax,0x3e(%rsp)
  movl   $0x33323139,0x46(%rsp)
  movb   $0x34,0x4a(%rsp)
  lea    -0x1ee00(%rax),%rax
  mov    %rax,0x4b(%rsp)
  movl   $0x33323139,0x53(%rsp)
  movb   $0x34,0x57(%rsp)
  movq   $0x0,0x2(%rsp)
  lea    D12(%rip),%rdi
  call   <puts@plt>
  lea    0x1(%rsp),%rsi
  lea    D13(%rip),%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  cmpb   $0x31,0x1(%rsp)
  je     L67
L86:
  cmpb   $0x32,0x1(%rsp)
  je     L109
L21:
  cmpb   $0x33,0x1(%rsp)
  je     L62
L40:
  cmpb   $0x34,0x1(%rsp)
  je     L93
L17:
  cmpb   $0x35,0x1(%rsp)
  je     L119
L129:
  cmpb   $0x36,0x1(%rsp)
  je     L72
L29:
  lea    0x2(%rsp),%rbx
  lea    0xa(%rsp),%r12
  lea    D29(%rip),%rbp
L60:
  movsbl (%rbx),%esi
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  add    $0x1,%rbx
  cmp    %r12,%rbx
  jne    L60
  lea    D9(%rip),%rdi
  call   <puts@plt>
  mov    0x58(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L23
  mov    $0x0,%eax
  add    $0x60,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
L67:
  lea    0x2(%rsp),%rsi
  lea    0xa(%rsp),%rdi
  mov    $0x0,%eax
  call   <integrate@plt>
  jmp    L86
L109:
  lea    0x2(%rsp),%rsi
  lea    0x17(%rsp),%rdi
  mov    $0x0,%eax
  call   <integrate@plt>
  jmp    L21
L62:
  lea    0x2(%rsp),%rsi
  lea    0x24(%rsp),%rdi
  mov    $0x0,%eax
  call   <integrate@plt>
  jmp    L40
L93:
  lea    0x2(%rsp),%rsi
  lea    0x31(%rsp),%rdi
  mov    $0x0,%eax
  call   <integrate@plt>
  jmp    L17
L119:
  lea    0x2(%rsp),%rsi
  lea    0x3e(%rsp),%rdi
  mov    $0x0,%eax
  call   <integrate@plt>
  jmp    L129
L72:
  lea    0x2(%rsp),%rsi
  lea    0x4b(%rsp),%rdi
  mov    $0x0,%eax
  call   <integrate@plt>
  jmp    L29
L23:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: data_tag: D12
type_infered: string
name: unpack_data
arguments: data_tag: D13
type_infered: string
name: unpack_data
arguments: data_tag: D29
type_infered: string
name: unpack_data
arguments: data_tag: D9
type_infered: string

tool: D12: Enter Number from 1 to 6 to select the input

tool: D13: %c

tool: D29: %d


tool: D9: Process done

assistant: ```c
int main() {
  char ch = 0;
  char b1[13] = {'a', 'a', 's', 'e', 'r', '6', '7', '8', '9', '1', '2', '3', '4'};
  char b2[13] = {'a', 'a', 'd', 'e', 'r', '6', '7', '8', '9', '1', '2', '3', '4'};
  char b3[13] = {'a', 'a', 's', 't', 'y', '6', '7', '8', '9', '1', '2', '3', '4'};
  char b4[13] = {'a', 'a', 'd', 't', 'y', '6', '7', '8', '9', '1', '2', '3', '4'};
  char b5[13] = {'a', 'a', 'f', 'e', 'r', '6', '7', '8', '9', '1', '2', '3', '4'};
  char b6[13] = {'a', 's', 'd', 'e', 'r', '6', '7', '8', '9', '1', '2', '3', '4'};
  char c[8] = {""};
  int i;
  printf("Enter Number from 1 to 6 to select the input\n");
  scanf("%c", &ch);
  if (ch == '1')
    integrate(b1, c);
  if (ch == '2')
    integrate(b2, c);
  if (ch == '3')
    integrate(b3, c);
  if (ch == '4')
    integrate(b4, c);
  if (ch == '5')
    integrate(b5, c);
  if (ch == '6')
    integrate(b6, c);
  for (i = 0; i < 8; i++) {
    printf("%d\n", c[i]);
  }
  printf("Process done\n");
  return 0;
}
```