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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %edi,-0x14(%rbp)
  mov    %rsi,-0x20(%rbp)
  movl   $0x0,-0x4(%rbp)
  mov    $0x3,%edi
  mov    $0x0,%eax
  call   <plan_tests@plt>
  mov    %eax,-0x4(%rbp)
  mov    -0x4(%rbp),%eax
  mov    %eax,%esi
  lea    D122(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <diag@plt>
  lea    D84(%rip),%r8
  mov    $0x27,%ecx
  lea    D120(%rip),%rax
  mov    %rax,%rdx
  lea    D118(%rip),%rax
  mov    %rax,%rsi
  mov    $0x1,%edi
  mov    $0x0,%eax
  call   <_gen_result@plt>
  mov    %eax,-0x4(%rbp)
  mov    -0x4(%rbp),%eax
  mov    %eax,%esi
  lea    D122(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <diag@plt>
  lea    D91(%rip),%r8
  mov    $0x2a,%ecx
  lea    D120(%rip),%rax
  mov    %rax,%rdx
  lea    D118(%rip),%rax
  mov    %rax,%rsi
  mov    $0x1,%edi
  mov    $0x0,%eax
  call   <_gen_result@plt>
  mov    %eax,-0x4(%rbp)
  mov    -0x4(%rbp),%eax
  mov    %eax,%esi
  lea    D122(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <diag@plt>
  lea    D32(%rip),%r8
  mov    $0x2d,%ecx
  lea    D120(%rip),%rax
  mov    %rax,%rdx
  lea    D118(%rip),%rax
  mov    %rax,%rsi
  mov    $0x1,%edi
  mov    $0x0,%eax
  call   <_gen_result@plt>
  mov    %eax,-0x4(%rbp)
  mov    -0x4(%rbp),%eax
  mov    %eax,%esi
  lea    D122(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <diag@plt>
  mov    $0x0,%eax
  call   <exit_status@plt>
  leave
  ret
```

tool_calls: name: read_data
arguments: tag: D122
datatype: string
name: read_data
arguments: tag: D84
datatype: string
name: read_data
arguments: tag: D120
datatype: string
name: read_data
arguments: tag: D118
datatype: string
name: read_data
arguments: tag: D91
datatype: string
name: read_data
arguments: tag: D32
datatype: string

tool: D122: Returned: %d

tool: D84: First test

tool: D120: /scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/ByteFoundryAU/monitoring-plugins/refs/heads/fedora/t/libtap-tests/ok/ok-numeric/test.c

tool: D118: main

tool: D91: 1

tool: D32: Third test

assistant: ```c
int main(int argc, char *argv[]) {
  unsigned int rc = 0;
  rc = plan_tests(3);
  diag("Returned: %d", rc);
  rc = ((1) ? _gen_result(1, __func__, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/ByteFoundryAU/monitoring-plugins/refs/heads/fedora/t/libtap-tests/ok/ok-numeric/test.c", 39, "First test") : _gen_result(0, __func__, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/ByteFoundryAU/monitoring-plugins/refs/heads/fedora/t/libtap-tests/ok/ok-numeric/test.c", 39, "First test"));
  diag("Returned: %d", rc);
  rc = ((1) ? _gen_result(1, __func__, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/ByteFoundryAU/monitoring-plugins/refs/heads/fedora/t/libtap-tests/ok/ok-numeric/test.c", 42, "1") : _gen_result(0, __func__, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/ByteFoundryAU/monitoring-plugins/refs/heads/fedora/t/libtap-tests/ok/ok-numeric/test.c", 42, "1"));
  diag("Returned: %d", rc);
  rc = ((1) ? _gen_result(1, __func__, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/ByteFoundryAU/monitoring-plugins/refs/heads/fedora/t/libtap-tests/ok/ok-numeric/test.c", 45, "Third test") : _gen_result(0, __func__, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/ByteFoundryAU/monitoring-plugins/refs/heads/fedora/t/libtap-tests/ok/ok-numeric/test.c", 45, "Third test"));
  diag("Returned: %d", rc);
  return exit_status();
}
```