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

```asm
<main>:
  endbr64
  push   %r12
  lea    D24(%rip),%rdi
  push   %rbp
  lea    D74(%rip),%rbp
  push   %rbx
  sub    $0x30,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  movabs $0xc800000064,%rax
  movl   $0x1f4,0x20(%rsp)
  mov    %rsp,%r12
  mov    %rax,0x10(%rsp)
  movabs $0x1900000012c,%rax
  mov    %rax,0x18(%rsp)
  lea    0x10(%rsp),%rax
  mov    %rax,(%rsp)
  lea    0x18(%rsp),%rax
  mov    %rax,0x8(%rsp)
  call   <puts@plt>
  mov    (%rsp),%rsi
  mov    %r12,%rcx
  mov    %rbp,%rdi
  xor    %eax,%eax
  mov    (%rsi),%edx
  call   <printf@plt>
  lea    D58(%rip),%rdi
  mov    (%rsp),%rbx
  call   <puts@plt>
  mov    (%rsp),%rsi
  lea    D3(%rip),%rdi
  xor    %eax,%eax
  mov    0xc(%rsi),%edx
  add    $0x10,%rsi
  call   <printf@plt>
  lea    D106(%rip),%rdi
  addq   $0x4,(%rsp)
  call   <puts@plt>
  mov    (%rsp),%rsi
  mov    %r12,%rcx
  mov    %rbp,%rdi
  xor    %eax,%eax
  mov    (%rsi),%edx
  call   <printf@plt>
  lea    D22(%rip),%rdi
  subq   $0x4,0x8(%rsp)
  call   <puts@plt>
  mov    0x8(%rsp),%rsi
  lea    0x8(%rsp),%rcx
  xor    %eax,%eax
  lea    D93(%rip),%rdi
  mov    (%rsi),%edx
  call   <printf@plt>
  lea    D8(%rip),%rdi
  subq   $0x4,(%rsp)
  addq   $0x4,0x8(%rsp)
  call   <puts@plt>
  mov    0x8(%rsp),%rdx
  mov    (%rsp),%rsi
  xor    %eax,%eax
  lea    D84(%rip),%rdi
  call   <printf@plt>
  lea    D72(%rip),%rdi
  call   <puts@plt>
  mov    0x8(%rsp),%rsi
  mov    (%rsp),%rdx
  xor    %eax,%eax
  lea    D12(%rip),%rdi
  mov    %rsi,%rcx
  sub    %rdx,%rcx
  sar    $0x2,%rcx
  call   <printf@plt>
  lea    D1(%rip),%rdi
  call   <puts@plt>
  xor    %eax,%eax
  lea    0x8(%rbx),%rdx
  lea    0x10(%rbx),%rsi
  lea    D5(%rip),%rdi
  call   <printf@plt>
  mov    0x28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L5
  add    $0x30,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
L5:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: data_label: D24
datatype: string
name: unpack_data
arguments: data_label: D74
datatype: string
name: unpack_data
arguments: data_label: D58
datatype: string
name: unpack_data
arguments: data_label: D3
datatype: string
name: unpack_data
arguments: data_label: D106
datatype: string
name: unpack_data
arguments: data_label: D22
datatype: string
name: unpack_data
arguments: data_label: D93
datatype: string
name: unpack_data
arguments: data_label: D8
datatype: string
name: unpack_data
arguments: data_label: D84
datatype: string
name: unpack_data
arguments: data_label: D72
datatype: string
name: unpack_data
arguments: data_label: D12
datatype: string
name: unpack_data
arguments: data_label: D1
datatype: string
name: unpack_data
arguments: data_label: D5
datatype: string

tool: D24: pointer value, deferenced pointer, pointer address:

tool: D74: ptr1 = %p, *ptr1 = %d, &ptr1 = %p


tool: D58: 
adding an int to a pointer:

tool: D3: ptr1 + 4 = %p, *(ptr4 + 3) = %d


tool: D106: 
values after ptr1++:

tool: D22: 
values after --ptr2:

tool: D93: ptr2 = %p, *ptr2 = %d, &ptr2 = %p


tool: D8: 
Pointers reset to original values:

tool: D84: ptr1 = %p, ptr2 = %p


tool: D72: 
subtracting one pointer from another:

tool: D12: ptr2 = %p, ptr1 = %p, ptr2 - ptr1 = %td


tool: D1: 
subtracting an int from a pointer:

tool: D5: ptr3 = %p, ptr3 - 2 = %p


assistant: ```c
int main(void) {
  int urn[5] = {100, 200, 300, 400, 500};
  int *ptr1, *ptr2, *ptr3;
  ptr1 = urn;
  ptr2 = &urn[2];
  printf("pointer value, deferenced pointer, pointer address:\n");
  printf("ptr1 = %p, *ptr1 = %d, &ptr1 = %p\n", ptr1, *ptr1, &ptr1);
  ptr3 = ptr1 + 4;
  printf("\nadding an int to a pointer:\n");
  printf("ptr1 + 4 = %p, *(ptr4 + 3) = %d\n", ptr1 + 4, *(ptr1 + 3));
  ptr1++;
  printf("\nvalues after ptr1++:\n");
  printf("ptr1 = %p, *ptr1 = %d, &ptr1 = %p\n", ptr1, *ptr1, &ptr1);
  ptr2--;
  printf("\nvalues after --ptr2:\n");
  printf("ptr2 = %p, *ptr2 = %d, &ptr2 = %p\n", ptr2, *ptr2, &ptr2);
  --ptr1;
  ++ptr2;
  printf("\nPointers reset to original values:\n");
  printf("ptr1 = %p, ptr2 = %p\n", ptr1, ptr2);
  printf("\nsubtracting one pointer from another:\n");
  printf("ptr2 = %p, ptr1 = %p, ptr2 - ptr1 = %td\n", ptr2, ptr1, ptr2 - ptr1);
  printf("\nsubtracting an int from a pointer:\n");
  printf("ptr3 = %p, ptr3 - 2 = %p\n", ptr3, ptr3 - 2);
  return 0;
}
```