user: 请将这段汇编代码片段转换成等效的C代码:

```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,%rdi
  mov    %rax,%r13
  call   <ZObject_getType@plt>
  mov    %rax,%rdi
  mov    %rax,%rbp
  call   <ZObject_getType@plt>
  mov    %r13,%rdi
  mov    %rax,%r12
  call   <ZObject_getType@plt>
  mov    %rax,%rbx
  xor    %eax,%eax
  call   <ZObject@plt>
  xor    %edi,%edi
  cmp    %rax,%rbx
  sete   %dil
  call   <assert@plt>
  xor    %eax,%eax
  call   <ZObject@plt>
  mov    %rbp,%rsi
  mov    %rax,%rdi
  call   <ZCast@plt>
  mov    %rax,%rdi
  call   <ZObject_getType@plt>
  mov    %rax,%rbx
  xor    %eax,%eax
  call   <ZType@plt>
  xor    %edi,%edi
  cmp    %rax,%rbx
  sete   %dil
  call   <assert@plt>
  xor    %eax,%eax
  call   <ZObject@plt>
  mov    %r12,%rsi
  mov    %rax,%rdi
  call   <ZCast@plt>
  mov    %rax,%rdi
  call   <ZObject_getType@plt>
  mov    %rax,%rbx
  xor    %eax,%eax
  call   <ZType@plt>
  xor    %edi,%edi
  cmp    %rax,%rbx
  sete   %dil
  call   <assert@plt>
  mov    %r13,%rdi
  call   <ZObject_getSuperType@plt>
  mov    %rax,%rbx
  xor    %eax,%eax
  call   <ZObject@plt>
  xor    %edi,%edi
  cmp    %rax,%rbx
  sete   %dil
  call   <assert@plt>
  xor    %eax,%eax
  call   <ZObject@plt>
  mov    %rbp,%rsi
  mov    %rax,%rdi
  call   <ZCast@plt>
  mov    %rax,%rdi
  call   <ZObject_getSuperType@plt>
  mov    %rax,%rbx
  xor    %eax,%eax
  call   <ZObject@plt>
  xor    %edi,%edi
  cmp    %rax,%rbx
  sete   %dil
  call   <assert@plt>
  xor    %eax,%eax
  call   <ZObject@plt>
  mov    %r12,%rsi
  mov    %rax,%rdi
  call   <ZCast@plt>
  mov    %rax,%rdi
  call   <ZObject_getSuperType@plt>
  mov    %rax,%rbx
  xor    %eax,%eax
  call   <ZObject@plt>
  xor    %edi,%edi
  cmp    %rax,%rbx
  sete   %dil
  call   <assert@plt>
  mov    %r13,%rdi
  call   <ZDelete@plt>
  mov    %rbp,%rdi
  call   <ZType_getName@plt>
  lea    D1(%rip),%rsi
  mov    %eax,%edi
  call   <strcmp@plt>
  xor    %edi,%edi
  test   %rax,%rax
  sete   %dil
  call   <assert@plt>
  mov    %r12,%rdi
  call   <ZType_getName@plt>
  lea    D15(%rip),%rsi
  mov    %eax,%edi
  call   <strcmp@plt>
  xor    %edi,%edi
  test   %rax,%rax
  sete   %dil
  call   <assert@plt>
  mov    %rbp,%rdi
  call   <ZType_getSuperType@plt>
  mov    %rax,%rbp
  xor    %eax,%eax
  call   <ZObject@plt>
  xor    %edi,%edi
  cmp    %rax,%rbp
  sete   %dil
  call   <assert@plt>
  mov    %r12,%rdi
  call   <ZType_getSuperType@plt>
  mov    %rax,%rbp
  xor    %eax,%eax
  call   <ZObject@plt>
  xor    %edi,%edi
  cmp    %rax,%rbp
  sete   %dil
  call   <assert@plt>
  xor    %eax,%eax
  call   <TestObj@plt>
  movl   $0x0,0x4(%rsp)
  mov    %rax,%rdi
  mov    %rax,%rbp
  call   <ZNew@plt>
  lea    0x4(%rsp),%rsi
  mov    %rax,%rdi
  call   <TestObj_init@plt>
  mov    %rax,%rdi
  mov    %rax,%r12
  call   <ZObject_getType@plt>
  mov    %rax,%r13
  xor    %eax,%eax
  call   <TestObj@plt>
  xor    %edi,%edi
  cmp    %rax,%r13
  sete   %dil
  call   <assert@plt>
  xor    %eax,%eax
  call   <TestObj@plt>
  mov    %rax,%rdi
  call   <ZType_getName@plt>
  lea    D28(%rip),%rsi
  mov    %eax,%edi
  call   <strcmp@plt>
  xor    %edi,%edi
  test   %rax,%rax
  sete   %dil
  call   <assert@plt>
  xor    %eax,%eax
  call   <TestObj@plt>
  mov    %rax,%rdi
  call   <ZObject_getType@plt>
  mov    %rax,%r13
  xor    %eax,%eax
  call   <TestObjType@plt>
  xor    %edi,%edi
  cmp    %rax,%r13
  sete   %dil
  call   <assert@plt>
  xor    %eax,%eax
  call   <TestObj@plt>
  mov    %rax,%rdi
  call   <ZType_getSuperType@plt>
  mov    %rax,%r13
  xor    %eax,%eax
  call   <ZObject@plt>
  xor    %edi,%edi
  cmp    %rax,%r13
  sete   %dil
  call   <assert@plt>
  mov    %r12,%rdi
  call   <ZDelete@plt>
  mov    0x4(%rsp),%edi
  call   <assert@plt>
  mov    %rbp,%rdi
  call   <ZDelete@plt>
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L6
  add    $0x18,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L6:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_label: D1
type: string
name: parse_data
arguments: data_label: D15
type: string
name: parse_data
arguments: data_label: D28
type: string

tool: D1: Object

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