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

```asm
<main>:
  endbr64
  push   %rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  movl   $0x64,0x10(%rsp)
  movl   $0xc8,0x14(%rsp)
  movl   $0x12c,0x18(%rsp)
  movl   $0x190,0x1c(%rsp)
  movl   $0x1f4,0x20(%rsp)
  lea    0x10(%rsp),%rax
  mov    %rax,(%rsp)
  lea    0x18(%rsp),%rax
  mov    %rax,0x8(%rsp)
  lea    D87(%rip),%rdi
  call   <puts@plt>
  mov    (%rsp),%rsi
  mov    %rsp,%rbp
  mov    %rbp,%rcx
  mov    (%rsi),%edx
  lea    D7(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    (%rsp),%rbx
  lea    D129(%rip),%rdi
  call   <puts@plt>
  mov    (%rsp),%rsi
  mov    0x10(%rsi),%edx
  add    $0x10,%rsi
  lea    D112(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  addq   $0x4,(%rsp)
  lea    D70(%rip),%rdi
  call   <puts@plt>
  mov    (%rsp),%rsi
  mov    %rbp,%rcx
  mov    (%rsi),%edx
  lea    D16(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  subq   $0x4,0x8(%rsp)
  lea    D135(%rip),%rdi
  call   <puts@plt>
  mov    0x8(%rsp),%rsi
  lea    0x8(%rsp),%rcx
  mov    (%rsi),%edx
  lea    D98(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  subq   $0x4,(%rsp)
  addq   $0x4,0x8(%rsp)
  lea    D108(%rip),%rdi
  call   <puts@plt>
  mov    0x8(%rsp),%rdx
  mov    (%rsp),%rsi
  lea    D28(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D35(%rip),%rdi
  call   <puts@plt>
  mov    0x8(%rsp),%rsi
  mov    (%rsp),%rdx
  mov    %rsi,%rcx
  sub    %rdx,%rcx
  sar    $0x2,%rcx
  lea    D136(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D26(%rip),%rdi
  call   <puts@plt>
  lea    0x8(%rbx),%rdx
  lea    0x10(%rbx),%rsi
  lea    D95(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    0x28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L3
  mov    $0x0,%eax
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  ret
L3:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: label: D87
data_type: string
name: disassemble_data
arguments: label: D7
data_type: string
name: disassemble_data
arguments: label: D129
data_type: string
name: disassemble_data
arguments: label: D112
data_type: string
name: disassemble_data
arguments: label: D70
data_type: string
name: disassemble_data
arguments: label: D16
data_type: string
name: disassemble_data
arguments: label: D135
data_type: string
name: disassemble_data
arguments: label: D98
data_type: string
name: disassemble_data
arguments: label: D108
data_type: string
name: disassemble_data
arguments: label: D28
data_type: string
name: disassemble_data
arguments: label: D35
data_type: string
name: disassemble_data
arguments: label: D136
data_type: string
name: disassemble_data
arguments: label: D26
data_type: string
name: disassemble_data
arguments: label: D95
data_type: string

tool: D87: pointer value, dereferenced pointer, pointer address:

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


tool: D129: 
adding an int to a pointer:

tool: D112: ptr1 + 4 = %p, *(ptr1 + 4) = %d


tool: D70: 
values after ptr1++:

tool: D16: ptr1 + 4 = %p, *ptr1 = %d, &ptr1 = %p


tool: D135: 
values after ptr2--:

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


tool: D108: 
Pointers reset to original values:

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


tool: D35: 
subtracting one pointer from another:

tool: D136: ptr2 = %p, ptr1 = %p, ptr2 - ptr1 = %ld


tool: D26: 
subtracting an int from a pointer:

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


assistant: ```c
int main() {
  int urn[5] = {100, 200, 300, 400, 500};
  int *ptr1, *ptr2, *ptr3;
  ptr1 = urn;
  ptr2 = &urn[2];
  printf("pointer value, dereferenced 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, *(ptr1 + 4) = %d\n", ptr1 + 4, *(ptr1 + 4));
  ptr1++;
  printf("\nvalues after ptr1++:\n");
  printf("ptr1 + 4 = %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 = %ld\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;
}
```