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

```asm
<main>:
  endbr64
  push   %r14
  mov    $0x32,%ecx
  push   %r13
  push   %r12
  lea    D59(%rip),%r12
  push   %rbp
  push   %rbx
  sub    $0x340,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x338(%rsp)
  xor    %eax,%eax
  lea    0x10(%rsp),%r14
  lea    0x1a0(%rsp),%r13
  mov    %r14,%rdi
  rep stos %rax,%es:(%rdi)
  mov    $0x32,%ecx
  mov    %r13,%rdi
  rep stos %rax,%es:(%rdi)
  lea    D73(%rip),%rdi
  call   <printf@plt>
  lea    0x8(%rsp),%rsi
  mov    %r12,%rdi
  call   <scanf@plt>
  mov    $0xa,%edi
  call   <putchar@plt>
  lea    D67(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    0xc(%rsp),%rsi
  mov    %r12,%rdi
  call   <scanf@plt>
  mov    $0xa,%edi
  call   <putchar@plt>
  lea    D90(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    0x8(%rsp),%eax
  test   %eax,%eax
  jle    L88
  mov    %r14,%rbp
  xor    %ebx,%ebx
  nopl   0x0(%rax,%rax,1)
L66:
  mov    %rbp,%rsi
  mov    %r12,%rdi
  add    $0x1,%ebx
  add    $0x4,%rbp
  call   <scanf@plt>
  cmp    %ebx,0x8(%rsp)
  jg     L66
L88:
  mov    $0xa,%edi
  call   <putchar@plt>
  mov    0x8(%rsp),%ebp
  test   %ebp,%ebp
  jle    L1
  movslq %ebp,%rdx
  mov    %r14,%rsi
  mov    %r13,%rdi
  shl    $0x2,%rdx
  call   <memcpy@plt>
L1:
  mov    0xc(%rsp),%edx
  mov    %ebp,%esi
  mov    %r14,%rdi
  call   <moveArray@plt>
  test   %rax,%rax
  jne    L47
  lea    D84(%rip),%rdi
  call   <puts@plt>
  cmpl   $0x0,0x8(%rsp)
  jle    L56
  xor    %ebx,%ebx
  lea    D86(%rip),%rbp
  nopw   0x0(%rax,%rax,1)
L21:
  mov    (%r14,%rbx,4),%esi
  mov    %rbp,%rdi
  xor    %eax,%eax
  add    $0x1,%rbx
  call   <printf@plt>
  cmp    %ebx,0x8(%rsp)
  jg     L21
L56:
  mov    $0xa,%edi
  call   <putchar@plt>
L41:
  mov    0xc(%rsp),%edx
  mov    0x8(%rsp),%esi
  mov    %r13,%rdi
  call   <moveArrayWithExtraMem@plt>
  test   %rax,%rax
  jne    L54
  lea    D37(%rip),%rdi
  call   <puts@plt>
  cmpl   $0x0,0x8(%rsp)
  jle    L36
  xor    %ebx,%ebx
  lea    D86(%rip),%rbp
  nopl   0x0(%rax,%rax,1)
L90:
  mov    0x0(%r13,%rbx,4),%esi
  mov    %rbp,%rdi
  xor    %eax,%eax
  add    $0x1,%rbx
  call   <printf@plt>
  cmp    %ebx,0x8(%rsp)
  jg     L90
L36:
  mov    $0xa,%edi
  call   <putchar@plt>
L30:
  mov    0x338(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L15
  add    $0x340,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L54:
  lea    D16(%rip),%rdi
  call   <puts@plt>
  jmp    L30
L47:
  lea    D12(%rip),%rdi
  call   <puts@plt>
  jmp    L41
L15:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D59
datatype: string
name: extract_symbolic_data
arguments: data_label: D73
datatype: string
name: extract_symbolic_data
arguments: data_label: D67
datatype: string
name: extract_symbolic_data
arguments: data_label: D90
datatype: string
name: extract_symbolic_data
arguments: data_label: D84
datatype: string
name: extract_symbolic_data
arguments: data_label: D86
datatype: string
name: extract_symbolic_data
arguments: data_label: D37
datatype: string
name: extract_symbolic_data
arguments: data_label: D16
datatype: string
name: extract_symbolic_data
arguments: data_label: D12
datatype: string

tool: D59: %d

tool: D73: Input the amount of array: 

tool: D67: Input the offset to move: 

tool: D90: Input the array: 

tool: D84: Move array without extra memory: 

tool: D86: %d 

tool: D37: Move array with extra memory: 

tool: D16: Input invalid 2

tool: D12: Input invalid

assistant: ```c
int main(int argc, const char *argv[]) {
  int array[100] = {0};
  int array2[100] = {0};
  int amount, offset;
  printf("Input the amount of array: ");
  scanf("%d", &amount);
  printf("\n");
  printf("Input the offset to move: ");
  scanf("%d", &offset);
  printf("\n");
  printf("Input the array: ");
  for (int i = 0; i < amount; ++i) {
    scanf("%d", array + i);
  }
  printf("\n");
  for (int i = 0; i < amount; ++i) {
    array2[i] = array[i];
  }
  if (moveArray(array, amount, offset) == 0) {
    printf("Move array without extra memory: \n");
    for (int i = 0; i < amount; ++i) {
      printf("%d ", array[i]);
    }
    printf("\n");
  } else {
    printf("Input invalid\n");
  }
  if (moveArrayWithExtraMem(array2, amount, offset) == 0) {
    printf("Move array with extra memory: \n");
    for (int i = 0; i < amount; ++i) {
      printf("%d ", array2[i]);
    }
    printf("\n");
  } else {
    printf("Input invalid 2\n");
  }
  return 0;
}
```