user: Please show me the C implementation that matches the assembly code listed below:

```asm
<main>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  lea    D1(%rip),%rbp
  sub    $0x18,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  movq   $0x0,(%rsp)
  call   <tlinit@plt>
  mov    $0x200,%edx
  mov    %rbp,%rsi
  mov    $0x10,%edi
  call   <tlmalloc@plt>
  mov    $0x3f4,%edx
  mov    %rbp,%rsi
  mov    $0x11,%edi
  mov    %rax,%r12
  call   <tlmalloc@plt>
  mov    %rbp,%rsi
  mov    $0x12,%edi
  mov    %rax,%rdx
  call   <tlfree@plt>
  lea    D2(%rip),%rsi
  mov    %r12,%rdi
  call   <sprintf@plt>
  mov    %r12,%rdi
  call   <strlen@plt>
  mov    %rbp,%rsi
  mov    $0x14,%edi
  mov    %eax,%edx
  call   <tlmalloc@plt>
  mov    %r12,%rsi
  mov    %rax,%rdi
  mov    %rax,%r14
  call   <strcpy@plt>
  mov    $0x400,%ecx
  mov    %r12,%rdx
  mov    %rbp,%rsi
  mov    $0x17,%edi
  call   <tlrealloc@plt>
  xor    %edi,%edi
  cmp    %rax,%r12
  mov    %rax,%r13
  setne  %dil
  call   <assert@plt>
  mov    %r12,%rdx
  mov    %rbp,%rsi
  mov    $0x1a,%edi
  call   <tlfree@plt>
  mov    %r13,%rsi
  mov    %r14,%rdi
  call   <strcmp@plt>
  xor    %edi,%edi
  test   %rax,%rax
  sete   %dil
  call   <assert@plt>
  mov    %r13,%rdx
  mov    %rbp,%rsi
  mov    $0x1c,%edi
  call   <tlfree@plt>
  mov    $0x8,%ecx
  mov    $0x1,%edx
  mov    %rbp,%rsi
  mov    $0x1e,%edi
  call   <tlcalloc@plt>
  mov    $0x8,%edx
  mov    %rsp,%rsi
  mov    %rax,%rdi
  call   <memcmp@plt>
  xor    %edi,%edi
  test   %rax,%rax
  sete   %dil
  call   <assert@plt>
  xor    %eax,%eax
  call   <tlstats@plt>
  mov    0x8(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L8
  add    $0x18,%rsp
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L8:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: tag: D1
data_type: string
name: parse_data
arguments: tag: D2
data_type: string

tool: D1: /scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/lantus/openbor/refs/heads/master/source/tracelib2/tracelib2_test.c

tool: D2: hello world

assistant: ```c
int main(void) {
  char *b1;
  char *b2;
  char *b3;
  size_t null = 0;
  void *nullptr = &null;
  tlinit();
  b1 = tlmalloc(16, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/lantus/openbor/refs/heads/master/source/tracelib2/tracelib2_test.c", 512);
  b2 = tlmalloc(17, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/lantus/openbor/refs/heads/master/source/tracelib2/tracelib2_test.c", 1012);
  tlfree(18, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/lantus/openbor/refs/heads/master/source/tracelib2/tracelib2_test.c", b2);
  sprintf(b1, "hello world");
  b3 = tlmalloc(20, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/lantus/openbor/refs/heads/master/source/tracelib2/tracelib2_test.c", strlen(b1));
  strcpy(b3, b1);
  b2 = tlrealloc(23, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/lantus/openbor/refs/heads/master/source/tracelib2/tracelib2_test.c", b1, 1024);
  assert(b2 != b1);
  tlfree(26, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/lantus/openbor/refs/heads/master/source/tracelib2/tracelib2_test.c", b1);
  assert(strcmp(b3, b2) == 0);
  tlfree(28, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/lantus/openbor/refs/heads/master/source/tracelib2/tracelib2_test.c", b2);
  b2 = tlcalloc(30, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/lantus/openbor/refs/heads/master/source/tracelib2/tracelib2_test.c", 1, sizeof(void *));
  assert(memcmp(b2, nullptr, sizeof(void *)) == 0);
  return tlstats();
}
```