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

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  sub    $0x70,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x68(%rsp)
  movabs $0xab000000cd,%rax
  mov    %rsp,%r15
  lea    0x8(%rsp),%r13
  lea    0x10(%rsp),%r14
  mov    %r15,%rdi
  mov    %rax,(%rsp)
  movabs $0xcd000000ab,%rax
  mov    %rax,0x8(%rsp)
  call   <ReadUint16LE@plt>
  xor    %edi,%edi
  cmp    $0xabcd,%eax
  mov    %eax,%r12d
  sete   %dil
  call   <assert@plt>
  mov    %r13,%rdi
  call   <ReadUint16BE@plt>
  xor    %edi,%edi
  cmp    $0xabcd,%eax
  mov    %eax,%ebp
  sete   %dil
  call   <assert@plt>
  mov    %r14,%rsi
  mov    %r12d,%edi
  lea    0x18(%rsp),%r12
  movq   $0x0,0x10(%rsp)
  call   <WriteUint16LE@plt>
  mov    $0x2,%edx
  mov    %r15,%rsi
  mov    %r14,%rdi
  call   <memcmp@plt>
  xor    %edi,%edi
  lea    0x20(%rsp),%r14
  test   %rax,%rax
  sete   %dil
  call   <assert@plt>
  mov    %r12,%rsi
  mov    %ebp,%edi
  movq   $0x0,0x18(%rsp)
  call   <WriteUint16BE@plt>
  mov    $0x2,%edx
  mov    %r13,%rsi
  mov    %r12,%rdi
  call   <memcmp@plt>
  xor    %edi,%edi
  test   %rax,%rax
  sete   %dil
  xor    %r12d,%r12d
  call   <assert@plt>
  mov    %r14,%rdi
  movabs $0x2000000d2,%rax
  mov    %rax,0x20(%rsp)
  movabs $0x4900000096,%rax
  mov    %rax,0x28(%rsp)
  movabs $0x9600000049,%rax
  mov    %rax,0x30(%rsp)
  movabs $0xd200000002,%rax
  mov    %rax,0x38(%rsp)
  call   <ReadUint32LE@plt>
  cmp    $0x499602d2,%eax
  mov    %eax,%ebp
  sete   %r12b
  xor    %r13d,%r13d
  mov    %r12d,%edi
  call   <assert@plt>
  mov    %r12d,%edi
  lea    0x30(%rsp),%r12
  call   <assert@plt>
  mov    %r12,%rdi
  call   <ReadUint32BE@plt>
  cmp    $0x499602d2,%eax
  sete   %r13b
  mov    %r13d,%edi
  call   <assert@plt>
  mov    %r13d,%edi
  lea    0x40(%rsp),%r13
  call   <assert@plt>
  pxor   %xmm0,%xmm0
  mov    %ebp,%edi
  mov    %r13,%rsi
  movaps %xmm0,0x40(%rsp)
  lea    0x50(%rsp),%rbp
  call   <WriteUint32LE@plt>
  mov    $0x4,%edx
  mov    %r14,%rsi
  mov    %r13,%rdi
  call   <memcmp@plt>
  xor    %edi,%edi
  test   %rax,%rax
  sete   %dil
  call   <assert@plt>
  pxor   %xmm0,%xmm0
  mov    %rbp,%rsi
  mov    $0x499602d2,%edi
  movaps %xmm0,0x50(%rsp)
  call   <WriteUint32BE@plt>
  mov    $0x4,%edx
  mov    %rbp,%rsi
  mov    %r12,%rdi
  call   <memcmp@plt>
  xor    %edi,%edi
  test   %rax,%rax
  sete   %dil
  call   <assert@plt>
  lea    D7(%rip),%rdi
  call   <puts@plt>
  mov    0x68(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L2
  add    $0x70,%rsp
  xor    %eax,%eax
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L2:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: label: D7
type: string

tool: D7: ok

assistant: ```c
int main(void) {
  const uint8_t data16_le[] = {0xcd, 0xab};
  const uint8_t data16_be[] = {0xab, 0xcd};
  uint16_t le16 = ReadUint16LE(data16_le);
  assert(0xabcd == le16);
  uint16_t be16 = ReadUint16BE(data16_be);
  assert(0xabcd == be16);
  uint8_t out16_le[2] = {0};
  WriteUint16LE(le16, out16_le);
  assert(memcmp(out16_le, data16_le, 2) == 0);
  uint8_t out16_be[2] = {0};
  WriteUint16BE(be16, out16_be);
  assert(memcmp(out16_be, data16_be, 2) == 0);
  const uint8_t data32_le[] = {0xd2, 0x02, 0x96, 0x49};
  const uint8_t data32_be[] = {0x49, 0x96, 0x02, 0xd2};
  uint32_t le32 = ReadUint32LE(data32_le);
  assert(1234567890u == le32);
  assert(0x499602d2u == le32);
  uint32_t be32 = ReadUint32BE(data32_be);
  assert(1234567890u == be32);
  assert(0x499602d2u == be32);
  uint8_t out32_le[4] = {0};
  WriteUint32LE(le32, out32_le);
  assert(memcmp(out32_le, data32_le, 4) == 0);
  uint8_t out32_be[4] = {0};
  WriteUint32BE(1234567890u, out32_be);
  assert(memcmp(data32_be, out32_be, 4) == 0);
  puts("ok");
  return 0;
}
```