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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  lea    D146(%rip),%rax
  mov    %rax,%rdi
  call   <log_set_file@plt>
  lea    D261(%rip),%rax
  mov    %rax,%rcx
  mov    $0x7,%edx
  lea    D255(%rip),%rax
  mov    %rax,%rsi
  mov    $0x0,%edi
  call   <log_print@plt>
  lea    D94(%rip),%rax
  mov    %rax,%rcx
  mov    $0x8,%edx
  lea    D255(%rip),%rax
  mov    %rax,%rsi
  mov    $0x1,%edi
  call   <log_print@plt>
  lea    D144(%rip),%rax
  mov    %rax,%rcx
  mov    $0x9,%edx
  lea    D255(%rip),%rax
  mov    %rax,%rsi
  mov    $0x2,%edi
  call   <log_print@plt>
  lea    D62(%rip),%rax
  mov    %rax,%rcx
  mov    $0xa,%edx
  lea    D255(%rip),%rax
  mov    %rax,%rsi
  mov    $0x3,%edi
  call   <log_print@plt>
  lea    D211(%rip),%rax
  mov    %rax,%rcx
  mov    $0xb,%edx
  lea    D255(%rip),%rax
  mov    %rax,%rsi
  mov    $0x4,%edi
  call   <log_print@plt>
  lea    D261(%rip),%rax
  mov    %rax,%rcx
  mov    $0xe,%edx
  lea    D255(%rip),%rax
  mov    %rax,%rsi
  mov    $0x0,%edi
  call   <log_print@plt>
  lea    D94(%rip),%rax
  mov    %rax,%rcx
  mov    $0xf,%edx
  lea    D255(%rip),%rax
  mov    %rax,%rsi
  mov    $0x1,%edi
  call   <log_print@plt>
  lea    D144(%rip),%rax
  mov    %rax,%rcx
  mov    $0x10,%edx
  lea    D255(%rip),%rax
  mov    %rax,%rsi
  mov    $0x2,%edi
  call   <log_print@plt>
  lea    D62(%rip),%rax
  mov    %rax,%rcx
  mov    $0x11,%edx
  lea    D255(%rip),%rax
  mov    %rax,%rsi
  mov    $0x3,%edi
  call   <log_print@plt>
  lea    D211(%rip),%rax
  mov    %rax,%rcx
  mov    $0x12,%edx
  lea    D255(%rip),%rax
  mov    %rax,%rsi
  mov    $0x4,%edi
  call   <log_print@plt>
  mov    $0x2,%edi
  call   <log_set_level@plt>
  lea    D261(%rip),%rax
  mov    %rax,%rcx
  mov    $0x16,%edx
  lea    D255(%rip),%rax
  mov    %rax,%rsi
  mov    $0x0,%edi
  call   <log_print@plt>
  lea    D94(%rip),%rax
  mov    %rax,%rcx
  mov    $0x17,%edx
  lea    D255(%rip),%rax
  mov    %rax,%rsi
  mov    $0x1,%edi
  call   <log_print@plt>
  lea    D144(%rip),%rax
  mov    %rax,%rcx
  mov    $0x18,%edx
  lea    D255(%rip),%rax
  mov    %rax,%rsi
  mov    $0x2,%edi
  call   <log_print@plt>
  lea    D62(%rip),%rax
  mov    %rax,%rcx
  mov    $0x19,%edx
  lea    D255(%rip),%rax
  mov    %rax,%rsi
  mov    $0x3,%edi
  call   <log_print@plt>
  lea    D211(%rip),%rax
  mov    %rax,%rcx
  mov    $0x1a,%edx
  lea    D255(%rip),%rax
  mov    %rax,%rsi
  mov    $0x4,%edi
  call   <log_print@plt>
  mov    $0x0,%eax
  call   <log_close_file@plt>
  mov    $0x0,%eax
  pop    %rbp
  ret
```

tool_calls: name: parse_data
arguments: data_label: D146
type_infered: string
name: parse_data
arguments: data_label: D261
type_infered: string
name: parse_data
arguments: data_label: D255
type_infered: string
name: parse_data
arguments: data_label: D94
type_infered: string
name: parse_data
arguments: data_label: D144
type_infered: string
name: parse_data
arguments: data_label: D62
type_infered: string
name: parse_data
arguments: data_label: D211
type_infered: string

tool: D146: /tmp/a.log

tool: D261: line1


tool: D255: /scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/kaija/clog/refs/heads/master/test.c

tool: D94: line2


tool: D144: line3


tool: D62: line4


tool: D211: line5


assistant: ```c
int main() {
  log_set_file("/tmp/a.log");
  log_print(0, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/kaija/clog/refs/heads/master/test.c", 7, "line1\n");
  log_print(1, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/kaija/clog/refs/heads/master/test.c", 8, "line2\n");
  log_print(2, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/kaija/clog/refs/heads/master/test.c", 9, "line3\n");
  log_print(3, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/kaija/clog/refs/heads/master/test.c", 10, "line4\n");
  log_print(4, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/kaija/clog/refs/heads/master/test.c", 11, "line5\n");
  log_print(0, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/kaija/clog/refs/heads/master/test.c", 14, "line1\n");
  log_print(1, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/kaija/clog/refs/heads/master/test.c", 15, "line2\n");
  log_print(2, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/kaija/clog/refs/heads/master/test.c", 16, "line3\n");
  log_print(3, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/kaija/clog/refs/heads/master/test.c", 17, "line4\n");
  log_print(4, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/kaija/clog/refs/heads/master/test.c", 18, "line5\n");
  log_set_level(2);
  log_print(0, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/kaija/clog/refs/heads/master/test.c", 22, "line1\n");
  log_print(1, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/kaija/clog/refs/heads/master/test.c", 23, "line2\n");
  log_print(2, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/kaija/clog/refs/heads/master/test.c", 24, "line3\n");
  log_print(3, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/kaija/clog/refs/heads/master/test.c", 25, "line4\n");
  log_print(4, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/kaija/clog/refs/heads/master/test.c", 26, "line5\n");
  log_close_file();
  return 0;
}
```