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

```asm
<main>:
  endbr64
  push   %r14
  lea    D61(%rip),%rdi
  lea    D17(%rip),%r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x10,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  movl   $0x0,(%rsp)
  call   <printf@plt>
  mov    %rsp,%rsi
  mov    %r14,%rdi
  call   <scanf@plt>
  mov    (%rsp),%esi
  lea    D13(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    D10(%rip),%rsi
  lea    D8(%rip),%rdi
  movl   $0x0,0x4(%rsp)
  call   <fopen@plt>
  lea    0x4(%rsp),%rdx
  mov    %r14,%rsi
  mov    %rax,%rdi
  mov    %rax,%r13
  call   <fscanf@plt>
  mov    0x4(%rsp),%eax
  lea    0x0(,%rax,4),%edi
  call   <malloc@plt>
  mov    0x4(%rsp),%edx
  mov    %rax,%rbx
  test   %edx,%edx
  jle    L28
  mov    %rax,%r12
  xor    %ebp,%ebp
  nopl   0x0(%rax)
L46:
  mov    %r12,%rdx
  mov    %r14,%rsi
  mov    %r13,%rdi
  add    $0x1,%ebp
  call   <fscanf@plt>
  add    $0x4,%r12
  cmp    %ebp,0x4(%rsp)
  jg     L46
L28:
  mov    %r13,%rdi
  call   <fclose@plt>
  mov    0x4(%rsp),%eax
  test   %eax,%eax
  jle    L37
  xor    %ebp,%ebp
  xor    %r12d,%r12d
  lea    D52(%rip),%r13
  jmp    L48
  nopl   0x0(%rax)
L70:
  add    $0x1,%ebp
  add    $0x4,%rbx
  cmp    %ebp,0x4(%rsp)
  jle    L85
L48:
  mov    (%rsp),%esi
  cmp    %esi,(%rbx)
  jne    L70
  mov    %ebp,%edx
  mov    %r13,%rdi
  xor    %eax,%eax
  add    $0x1,%r12d
  call   <printf@plt>
  add    $0x1,%ebp
  add    $0x4,%rbx
  cmp    %ebp,0x4(%rsp)
  jg     L48
L85:
  test   %r12d,%r12d
  je     L37
L12:
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L45
  add    $0x10,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L37:
  lea    D7(%rip),%rdi
  call   <puts@plt>
  jmp    L12
L45:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: label: D61
type_infered: string
name: retrieve_data
arguments: label: D17
type_infered: string
name: retrieve_data
arguments: label: D13
type_infered: string
name: retrieve_data
arguments: label: D10
type_infered: string
name: retrieve_data
arguments: label: D8
type_infered: string
name: retrieve_data
arguments: label: D52
type_infered: string
name: retrieve_data
arguments: label: D7
type_infered: string

tool: D61: Please enter a positive integer: 

tool: D17: %d

tool: D13: You entered positive integer: %d


tool: D10: r

tool: D8: ./Data1.txt

tool: D52: Number %d found at index %d.


tool: D7: Integer NOT FOUND.

assistant: ```c
int main(int argc, char *argv[]) {
  int userInt = 0;
  printf("Please enter a positive integer: ");
  scanf("%d", &userInt);
  printf("You entered positive integer: %d\n", userInt);
  int *intData = NULL;
  int intSize = 0;
  int foundUserInt = 0;
  FILE *fileHandle = fopen("./Data1.txt", "r");
  {
    fscanf(fileHandle, "%d", &intSize);
    intData = (int *)(malloc(sizeof(int) * intSize));
    for (int intFor1 = 0; intFor1 < intSize; intFor1++) {
      fscanf(fileHandle, "%d", &intData[intFor1]);
    }
  }
  fclose(fileHandle);
  for (int intFor1 = 0; intFor1 < intSize; intFor1++) {
    if (userInt == intData[intFor1]) {
      printf("Number %d found at index %d.\n", userInt, intFor1);
      foundUserInt++;
    }
  }
  if (!foundUserInt) {
    printf("Integer NOT FOUND.\n");
  }
}
```