user: What is the c source code of the assembly code below?

```asm
<main>:
  endbr64
  push   %r14
  lea    D49(%rip),%rdi
  push   %r13
  push   %r12
  lea    D8(%rip),%r12
  push   %rbp
  push   %rbx
  sub    $0x10,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  call   <printf@plt>
  lea    0x4(%rsp),%rsi
  mov    %r12,%rdi
  call   <scanf@plt>
  mov    0x4(%rsp),%edi
  mov    $0x4,%esi
  call   <calloc@plt>
  mov    %rax,%r13
  test   %rax,%rax
  je     L76
L95:
  mov    0x4(%rsp),%edx
  test   %edx,%edx
  jle    L20
  mov    %r13,%rbp
  xor    %ebx,%ebx
  lea    D64(%rip),%r14
  xchg   %ax,%ax
L46:
  add    $0x1,%ebx
  mov    %r14,%rdi
  xor    %eax,%eax
  mov    %ebx,%esi
  call   <printf@plt>
  mov    %rbp,%rsi
  mov    %r12,%rdi
  add    $0x4,%rbp
  call   <scanf@plt>
  cmp    0x4(%rsp),%ebx
  jl     L46
L20:
  lea    D68(%rip),%rdi
  call   <puts@plt>
  mov    0x4(%rsp),%eax
  test   %eax,%eax
  jle    L32
  mov    %r13,%r12
  xor    %ebx,%ebx
  lea    D14(%rip),%rbp
  nopl   0x0(%rax)
L73:
  mov    (%r12),%esi
  mov    %rbp,%rdi
  xor    %eax,%eax
  add    $0x1,%ebx
  add    $0x4,%r12
  call   <printf@plt>
  cmp    %ebx,0x4(%rsp)
  jg     L73
L32:
  mov    $0xa,%edi
  call   <putchar@plt>
  mov    0x4(%rsp),%eax
  mov    %r13,%rdi
  mov    %eax,%esi
  shr    $0x1f,%esi
  add    %eax,%esi
  sar    %esi
  shl    $0x2,%esi
  call   <realloc@plt>
  mov    %rax,%r12
  test   %r13,%r13
  je     L43
L37:
  lea    D67(%rip),%rdi
  call   <puts@plt>
  cmpl   $0x1,0x4(%rsp)
  jle    L29
  xor    %ebx,%ebx
  lea    D14(%rip),%rbp
  nopl   (%rax)
L26:
  mov    (%r12,%rbx,4),%esi
  mov    %rbp,%rdi
  xor    %eax,%eax
  add    $0x1,%rbx
  call   <printf@plt>
  mov    0x4(%rsp),%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %eax,%edx
  sar    %edx
  cmp    %ebx,%edx
  jg     L26
L29:
  mov    $0xa,%edi
  call   <putchar@plt>
  mov    %r12,%rdi
  call   <free@plt>
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L36
  add    $0x10,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L76:
  mov    $0x1,%edi
  call   <exit@plt>
  jmp    L95
L43:
  xor    %edi,%edi
  xor    %r12d,%r12d
  call   <free@plt>
  lea    D39(%rip),%rdi
  call   <puts@plt>
  mov    $0x1,%edi
  call   <exit@plt>
  jmp    L37
L36:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: label: D49
type: string
name: unpack_data
arguments: label: D8
type: string
name: unpack_data
arguments: label: D64
type: string
name: unpack_data
arguments: label: D68
type: string
name: unpack_data
arguments: label: D14
type: string
name: unpack_data
arguments: label: D67
type: string
name: unpack_data
arguments: label: D39
type: string

tool: D49: Enter size of array: 

tool: D8: %d

tool: D64: Enter number #%d: 

tool: D68: Original Array Contents: 

tool: D14: %d 

tool: D67: Resized Array Contents: 

tool: D39: Error reallocating memory

assistant: ```c
int main() {
  int arraySize, n;
  int *dataPtr;
  int *resizedArray = NULL;
  printf("Enter size of array: ");
  scanf("%d", &arraySize);
  dataPtr = (int *)calloc(arraySize, sizeof(int));
  if (dataPtr == NULL)
    exit(1);
  for (n = 0; n < arraySize; n++) {
    printf("Enter number #%d: ", n + 1);
    scanf("%d", &dataPtr[n]);
  }
  printf("Original Array Contents: \n");
  for (n = 0; n < arraySize; n++)
    printf("%d ", dataPtr[n]);
  printf("\n");
  resizedArray = (int *)realloc(dataPtr, (arraySize / 2) * sizeof(int));
  if (dataPtr != NULL) {
    dataPtr = resizedArray;
    resizedArray = NULL;
  } else {
    free(dataPtr);
    puts("Error reallocating memory");
    exit(1);
  }
  printf("Resized Array Contents: \n");
  for (n = 0; n < (arraySize / 2); n++)
    printf("%d ", dataPtr[n]);
  printf("\n");
  free(dataPtr);
  return 0;
}
```