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

```asm
<main>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  call   <ZObject@plt>
  mov    %rax,%rdi
  call   <ZNew@plt>
  mov    %rax,%r12
  mov    %rax,%rdi
  call   <ZObject_getType@plt>
  mov    %rax,%rbx
  mov    %rax,%rdi
  call   <ZObject_getType@plt>
  mov    %rax,%rbp
  mov    %r12,%rdi
  call   <ZObject_getType@plt>
  mov    %rax,%r13
  mov    $0x0,%eax
  call   <ZObject@plt>
  cmp    %rax,%r13
  sete   %dil
  movzbl %dil,%edi
  call   <assert@plt>
  mov    $0x0,%eax
  call   <ZObject@plt>
  mov    %rax,%rdi
  mov    %rbx,%rsi
  call   <ZCast@plt>
  mov    %rax,%rdi
  call   <ZObject_getType@plt>
  mov    %rax,%r13
  mov    $0x0,%eax
  call   <ZType@plt>
  cmp    %rax,%r13
  sete   %dil
  movzbl %dil,%edi
  call   <assert@plt>
  mov    $0x0,%eax
  call   <ZObject@plt>
  mov    %rax,%rdi
  mov    %rbp,%rsi
  call   <ZCast@plt>
  mov    %rax,%rdi
  call   <ZObject_getType@plt>
  mov    %rax,%r13
  mov    $0x0,%eax
  call   <ZType@plt>
  cmp    %rax,%r13
  sete   %dil
  movzbl %dil,%edi
  call   <assert@plt>
  mov    %r12,%rdi
  call   <ZObject_getSuperType@plt>
  mov    %rax,%r13
  mov    $0x0,%eax
  call   <ZObject@plt>
  cmp    %rax,%r13
  sete   %dil
  movzbl %dil,%edi
  call   <assert@plt>
  mov    $0x0,%eax
  call   <ZObject@plt>
  mov    %rax,%rdi
  mov    %rbx,%rsi
  call   <ZCast@plt>
  mov    %rax,%rdi
  call   <ZObject_getSuperType@plt>
  mov    %rax,%r13
  mov    $0x0,%eax
  call   <ZObject@plt>
  cmp    %rax,%r13
  sete   %dil
  movzbl %dil,%edi
  call   <assert@plt>
  mov    $0x0,%eax
  call   <ZObject@plt>
  mov    %rax,%rdi
  mov    %rbp,%rsi
  call   <ZCast@plt>
  mov    %rax,%rdi
  call   <ZObject_getSuperType@plt>
  mov    %rax,%r13
  mov    $0x0,%eax
  call   <ZObject@plt>
  cmp    %rax,%r13
  sete   %dil
  movzbl %dil,%edi
  call   <assert@plt>
  mov    %r12,%rdi
  call   <ZDelete@plt>
  mov    %rbx,%rdi
  call   <ZType_getName@plt>
  mov    %eax,%edi
  lea    D8(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  sete   %dil
  movzbl %dil,%edi
  call   <assert@plt>
  mov    %rbp,%rdi
  call   <ZType_getName@plt>
  mov    %eax,%edi
  lea    D26(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  sete   %dil
  movzbl %dil,%edi
  call   <assert@plt>
  mov    %rbx,%rdi
  call   <ZType_getSuperType@plt>
  mov    %rax,%rbx
  mov    $0x0,%eax
  call   <ZObject@plt>
  cmp    %rax,%rbx
  sete   %dil
  movzbl %dil,%edi
  call   <assert@plt>
  mov    %rbp,%rdi
  call   <ZType_getSuperType@plt>
  mov    %rax,%rbx
  mov    $0x0,%eax
  call   <ZObject@plt>
  cmp    %rax,%rbx
  sete   %dil
  movzbl %dil,%edi
  call   <assert@plt>
  mov    $0x0,%eax
  call   <TestObj@plt>
  mov    %rax,%rbx
  movl   $0x0,0x4(%rsp)
  mov    %rax,%rdi
  call   <ZNew@plt>
  mov    %rax,%rdi
  lea    0x4(%rsp),%rsi
  call   <TestObj_init@plt>
  mov    %rax,%rbp
  mov    %rax,%rdi
  call   <ZObject_getType@plt>
  mov    %rax,%r12
  mov    $0x0,%eax
  call   <TestObj@plt>
  cmp    %rax,%r12
  sete   %dil
  movzbl %dil,%edi
  call   <assert@plt>
  mov    $0x0,%eax
  call   <TestObj@plt>
  mov    %rax,%rdi
  call   <ZType_getName@plt>
  mov    %eax,%edi
  lea    D28(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  sete   %dil
  movzbl %dil,%edi
  call   <assert@plt>
  mov    $0x0,%eax
  call   <TestObj@plt>
  mov    %rax,%rdi
  call   <ZObject_getType@plt>
  mov    %rax,%r12
  mov    $0x0,%eax
  call   <TestObjType@plt>
  cmp    %rax,%r12
  sete   %dil
  movzbl %dil,%edi
  call   <assert@plt>
  mov    $0x0,%eax
  call   <TestObj@plt>
  mov    %rax,%rdi
  call   <ZType_getSuperType@plt>
  mov    %rax,%r12
  mov    $0x0,%eax
  call   <ZObject@plt>
  cmp    %rax,%r12
  sete   %dil
  movzbl %dil,%edi
  call   <assert@plt>
  mov    %rbp,%rdi
  call   <ZDelete@plt>
  mov    0x4(%rsp),%edi
  call   <assert@plt>
  mov    %rbx,%rdi
  call   <ZDelete@plt>
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L5
  mov    $0x0,%eax
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L5:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_tag: D8
data_type: string
name: parse_data
arguments: data_tag: D26
data_type: string
name: parse_data
arguments: data_tag: D28
data_type: string

tool: D8: Object

tool: D26: Type

tool: D28: TestObj

assistant: ```c
int main(int argc, char *argv[]) {
  void *obj = ZNew(ZObject());
  void *type = ZObject_getType(obj);
  void *typeType = ZObject_getType(type);
  assert(ZObject_getType(obj) == ZObject());
  assert(ZObject_getType(ZCast(ZObject(), type)) == ZType());
  assert(ZObject_getType(ZCast(ZObject(), typeType)) == ZType());
  assert(ZObject_getSuperType(obj) == ZObject());
  assert(ZObject_getSuperType(ZCast(ZObject(), type)) == ZObject());
  assert(ZObject_getSuperType(ZCast(ZObject(), typeType)) == ZObject());
  ZDelete(obj);
  assert(strcmp(ZType_getName(type), "Object") == 0);
  assert(strcmp(ZType_getName(typeType), "Type") == 0);
  assert(ZType_getSuperType(type) == ZObject());
  assert(ZType_getSuperType(typeType) == ZObject());
  void *t = TestObj();
  bool destructorIsCalled = false;
  void *testObj = TestObj_init(ZNew(t), &destructorIsCalled);
  assert(ZObject_getType(testObj) == TestObj());
  assert(strcmp(ZType_getName(TestObj()), "TestObj") == 0);
  assert(ZObject_getType(TestObj()) == TestObjType());
  assert(ZType_getSuperType(TestObj()) == ZObject());
  ZDelete(testObj);
  assert(destructorIsCalled);
  ZDelete(t);
  return 0;
}
```