user: 请从给定的汇编指令推导出C源代码:

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  sub    $0x70,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x68(%rsp)
  xor    %eax,%eax
  mov    %rsp,%r15
  lea    0x8(%rsp),%r13
  lea    0x10(%rsp),%r14
  mov    D46(%rip),%rax
  mov    %r15,%rdi
  mov    %rax,(%rsp)
  mov    D47(%rip),%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>
  movdqa D19(%rip),%xmm0
  mov    %r14,%rdi
  movaps %xmm0,0x20(%rsp)
  movdqa D21(%rip),%xmm0
  movaps %xmm0,0x30(%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    D0(%rip),%rdi
  call   <puts@plt>
  mov    0x68(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L1
  add    $0x70,%rsp
  xor    %eax,%eax
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L1:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: data_tag: D46
type_infered: byte[8]
name: unpack_data
arguments: data_tag: D47
type_infered: byte[8]
name: unpack_data
arguments: data_tag: D19
type_infered: byte[16]
name: unpack_data
arguments: data_tag: D21
type_infered: byte[16]
name: unpack_data
arguments: data_tag: D0
type_infered: string

tool: {"D46": [0xcd,0x00,0x00,0x00,0xab,0x00,0x00,0x00]}

tool: {"D47": [0xab,0x00,0x00,0x00,0xcd,0x00,0x00,0x00]}

tool: {"D19": [0xd2,0x00,0x00,0x00,0x02,0x00,0x00,0x00,0x96,0x00,0x00,0x00,0x49,0x00,0x00,0x00]}

tool: {"D21": [0x49,0x00,0x00,0x00,0x96,0x00,0x00,0x00,0x02,0x00,0x00,0x00,0xd2,0x00,0x00,0x00]}

tool: D0: 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;
}
```