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

```asm
<main>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0xfc8,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0xfb8(%rsp)
  xor    %eax,%eax
  lea    D99(%rip),%r13
  lea    0x8(%rsp),%r12
  lea    D89(%rip),%rbx
  lea    D91(%rip),%rbp
L15:
  mov    %r13,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %r12,%rsi
  mov    %rbx,%rdi
  call   <scanf@plt>
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0x4(%rsp),%rsi
  mov    %rbx,%rdi
  call   <scanf@plt>
  mov    0x8(%rsp),%eax
  cmp    $0x3e8,%eax
  jg     L15
  cmp    0x4(%rsp),%eax
  jl     L15
  lea    D55(%rip),%r12
  mov    %rsp,%rbp
  lea    D89(%rip),%rbx
L76:
  mov    %r12,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  call   <scanf@plt>
  mov    (%rsp),%eax
  cmp    0x4(%rsp),%eax
  jl     L76
  cmp    0x8(%rsp),%eax
  jg     L76
  test   %eax,%eax
  jle    L9
  lea    0x10(%rsp),%rbp
  mov    $0x0,%ebx
  lea    D37(%rip),%r13
  lea    D89(%rip),%r12
L1:
  mov    %r13,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %rbp,%rsi
  mov    %r12,%rdi
  call   <scanf@plt>
  add    $0x1,%ebx
  add    $0x4,%rbp
  cmp    %ebx,(%rsp)
  jg     L1
L9:
  lea    D50(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0xc(%rsp),%rsi
  lea    D89(%rip),%rdi
  call   <scanf@plt>
  cmpl   $0x0,(%rsp)
  jle    L36
  lea    0x10(%rsp),%rbx
  mov    $0x0,%ebp
  lea    D54(%rip),%r12
L13:
  mov    (%rbx),%esi
  imul   0xc(%rsp),%esi
  mov    %esi,(%rbx)
  mov    %r12,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  add    $0x1,%ebp
  add    $0x4,%rbx
  cmp    %ebp,(%rsp)
  jg     L13
L36:
  mov    0xfb8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L59
  mov    $0x0,%eax
  add    $0xfc8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L59:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: label: D99
data_type: string
name: parse_data
arguments: label: D89
data_type: string
name: parse_data
arguments: label: D91
data_type: string
name: parse_data
arguments: label: D55
data_type: string
name: parse_data
arguments: label: D37
data_type: string
name: parse_data
arguments: label: D50
data_type: string
name: parse_data
arguments: label: D54
data_type: string

tool: D99: 
 inseire n2 minore di 1000  

tool: D89: %d

tool: D91: 
 inserire n1 minore di n2  

tool: D55: 
 inserire il vettore dell'array  

tool: D37: 
 inserire un numero  

tool: D50: 
 inserire un numero intero  

tool: D54: %d  

assistant: ```c
main() {
  int vettore[1000];
  int K;
  int n1;
  int n2;
  int NUM;
  int x;
  do {
    printf("\n inseire n2 minore di 1000  ");
    scanf("%d", &n2);
    printf("\n inserire n1 minore di n2  ");
    scanf("%d", &n1);
  } while ((n2 > 1000) || (n1 > n2));
  do {
    printf("\n inserire il vettore dell'array  ");
    scanf("%d", &K);
  } while ((K < n1) || (K > n2));
  x = 0;
  while (x < K) {
    printf("\n inserire un numero  ");
    scanf("%d", &vettore[x]);
    x++;
  }
  printf("\n inserire un numero intero  ");
  scanf("%d", &NUM);
  x = 0;
  while (x < K) {
    vettore[x] = vettore[x] * NUM;
    printf("%d  ", vettore[x]);
    x++;
  }
}
```