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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x10,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  lea    D35(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  lea    -0xc(%rbp),%rax
  mov    %rax,%rsi
  lea    D9(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  mov    -0xc(%rbp),%eax
  test   %eax,%eax
  jne    L11
  lea    D27(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
L11:
  mov    -0xc(%rbp),%eax
  cmp    $0x1,%eax
  jne    L76
  lea    D23(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
L76:
  mov    -0xc(%rbp),%eax
  cmp    $0x2,%eax
  jne    L10
  lea    D66(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
L10:
  mov    -0xc(%rbp),%eax
  cmp    $0x3,%eax
  jne    L65
  lea    D99(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
L65:
  mov    -0xc(%rbp),%eax
  cmp    $0x4,%eax
  jne    L42
  lea    D70(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
L42:
  mov    -0xc(%rbp),%eax
  cmp    $0x5,%eax
  jne    L82
  lea    D51(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
L82:
  mov    -0xc(%rbp),%eax
  cmp    $0x6,%eax
  jne    L23
  lea    D16(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
L23:
  mov    -0xc(%rbp),%eax
  cmp    $0x7,%eax
  jne    L1
  lea    D117(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
L1:
  mov    -0xc(%rbp),%eax
  cmp    $0x8,%eax
  jne    L105
  lea    D74(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
L105:
  mov    -0xc(%rbp),%eax
  cmp    $0x9,%eax
  jne    L40
  lea    D3(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
L40:
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L78
  call   <__stack_chk_fail@plt>
L78:
  leave
  ret
```

tool_calls: name: unpack_data
arguments: tag: D35
data_type: string
name: unpack_data
arguments: tag: D9
data_type: string
name: unpack_data
arguments: tag: D27
data_type: string
name: unpack_data
arguments: tag: D23
data_type: string
name: unpack_data
arguments: tag: D66
data_type: string
name: unpack_data
arguments: tag: D99
data_type: string
name: unpack_data
arguments: tag: D70
data_type: string
name: unpack_data
arguments: tag: D51
data_type: string
name: unpack_data
arguments: tag: D16
data_type: string
name: unpack_data
arguments: tag: D117
data_type: string
name: unpack_data
arguments: tag: D74
data_type: string
name: unpack_data
arguments: tag: D3
data_type: string

tool: D35: 


tool: D9: %d

tool: D27: 
 zero

tool: D23: 
 one

tool: D66: 
 two

tool: D99: 
 three

tool: D70: 
 four

tool: D51: 
 five

tool: D16: 
 six

tool: D117: 
 seven

tool: D74: 
 eight

tool: D3: 
 nine

assistant: ```c
int main() {
  int chislo;
  printf("\n");
  scanf("%d", &chislo);
  if (chislo == 0)
    printf("\n zero");
  if (chislo == 1)
    printf("\n one");
  if (chislo == 2)
    printf("\n two");
  if (chislo == 3)
    printf("\n three");
  if (chislo == 4)
    printf("\n four");
  if (chislo == 5)
    printf("\n five");
  if (chislo == 6)
    printf("\n six");
  if (chislo == 7)
    printf("\n seven");
  if (chislo == 8)
    printf("\n eight");
  if (chislo == 9)
    printf("\n nine");
  return 0;
}
```