user: What is the c source code of the assembly code below?

```asm
<main>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  lea    D104(%rip),%rsi
  lea    D101(%rip),%rdi
  call   <utl_log_open@plt>
  mov    $0x23,%edx
  lea    D13(%rip),%rbx
  mov    %rbx,%rsi
  mov    $0x20,%edi
  call   <utl_malloc@plt>
  mov    %rax,%rbp
  mov    $0x24,%edx
  mov    %rbx,%rsi
  mov    %rax,%rdi
  call   <utl_check@plt>
  test   %eax,%eax
  sete   %dil
  movzbl %dil,%edi
  mov    $0x24,%ecx
  mov    %rbx,%rdx
  lea    D52(%rip),%r12
  mov    %r12,%rsi
  call   <utl_log_check@plt>
  mov    $0x0,%eax
  call   <utl_mem_used@plt>
  cmp    $0x20,%eax
  sete   %dil
  movzbl %dil,%edi
  mov    $0x25,%ecx
  mov    %rbx,%rdx
  lea    D82(%rip),%rsi
  call   <utl_log_check@plt>
  mov    $0x27,%edx
  mov    %rbx,%rsi
  mov    %rbp,%rdi
  call   <utl_free@plt>
  mov    $0x28,%edx
  mov    %rbx,%rsi
  mov    %rbp,%rdi
  call   <utl_check@plt>
  test   %eax,%eax
  setne  %dil
  movzbl %dil,%edi
  mov    $0x28,%ecx
  mov    %rbx,%rdx
  lea    D86(%rip),%r13
  mov    %r13,%rsi
  call   <utl_log_check@plt>
  mov    $0x0,%eax
  call   <utl_mem_used@plt>
  test   %eax,%eax
  sete   %dil
  movzbl %dil,%edi
  mov    $0x29,%ecx
  mov    %rbx,%rdx
  lea    D51(%rip),%rsi
  call   <utl_log_check@plt>
  mov    $0x2b,%edx
  mov    %rbx,%rsi
  mov    %rbp,%rdi
  call   <utl_free@plt>
  mov    $0x2c,%edx
  mov    %rbx,%rsi
  mov    %rbp,%rdi
  call   <utl_check@plt>
  test   %eax,%eax
  setne  %dil
  movzbl %dil,%edi
  mov    $0x2c,%ecx
  mov    %rbx,%rdx
  mov    %r13,%rsi
  call   <utl_log_check@plt>
  mov    $0x2e,%edx
  mov    %rbx,%rsi
  mov    $0x0,%edi
  call   <utl_malloc@plt>
  mov    %rax,%rbp
  mov    $0x2f,%edx
  mov    %rbx,%rsi
  mov    %rax,%rdi
  call   <utl_check@plt>
  test   %eax,%eax
  sete   %dil
  movzbl %dil,%edi
  mov    $0x2f,%ecx
  mov    %rbx,%rdx
  mov    %r12,%rsi
  call   <utl_log_check@plt>
  mov    $0x31,%edx
  mov    %rbx,%rsi
  mov    %rbp,%rdi
  call   <utl_free@plt>
  mov    $0x32,%ecx
  mov    %rbx,%rdx
  mov    $0x4,%esi
  mov    $0x8,%edi
  call   <utl_calloc@plt>
  mov    %rax,%rbp
  mov    $0x33,%edx
  mov    %rbx,%rsi
  mov    %rax,%rdi
  call   <utl_check@plt>
  test   %eax,%eax
  sete   %dil
  movzbl %dil,%edi
  mov    $0x33,%ecx
  mov    %rbx,%rdx
  mov    %r12,%rsi
  call   <utl_log_check@plt>
  mov    %rbp,%rax
  lea    0x20(%rbp),%rsi
  mov    $0x0,%edx
L5:
  movsbl (%rax),%ecx
  add    %ecx,%edx
  add    $0x1,%rax
  cmp    %rsi,%rax
  jne    L5
  test   %edx,%edx
  sete   %dil
  movzbl %dil,%edi
  mov    $0x36,%ecx
  lea    D13(%rip),%rbx
  mov    %rbx,%rdx
  lea    D17(%rip),%rsi
  call   <utl_log_check@plt>
  mov    $0x37,%edx
  mov    %rbx,%rsi
  mov    %rbp,%rdi
  call   <utl_free@plt>
  mov    $0x39,%edx
  mov    %rbx,%rsi
  mov    $0x10,%edi
  call   <utl_malloc@plt>
  mov    %rax,%rbp
  mov    $0x3a,%edx
  mov    %rbx,%rsi
  mov    %rax,%rdi
  call   <utl_check@plt>
  test   %eax,%eax
  sete   %dil
  movzbl %dil,%edi
  mov    $0x3a,%ecx
  mov    %rbx,%rdx
  lea    D52(%rip),%rsi
  call   <utl_log_check@plt>
  mov    $0x0,%eax
  call   <utl_mem_used@plt>
  cmp    $0x10,%eax
  sete   %dil
  movzbl %dil,%edi
  mov    $0x3b,%ecx
  mov    %rbx,%rdx
  lea    D27(%rip),%rsi
  call   <utl_log_check@plt>
  movb   $0x0,0x10(%rbp)
  mov    $0x3e,%edx
  mov    %rbx,%rsi
  mov    %rbp,%rdi
  call   <utl_check@plt>
  cmp    $0xffffffff,%eax
  sete   %dil
  movzbl %dil,%edi
  mov    $0x3e,%ecx
  mov    %rbx,%rdx
  lea    D47(%rip),%rsi
  call   <utl_log_check@plt>
  mov    $0x3f,%edx
  mov    %rbx,%rsi
  mov    %rbp,%rdi
  call   <utl_free@plt>
  lea    D0(%rip),%rdi
  call   <utl_log_close@plt>
  mov    $0x0,%eax
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
```

tool_calls: name: parse_data
arguments: tag: D104
data_type: string
name: parse_data
arguments: tag: D101
data_type: string
name: parse_data
arguments: tag: D13
data_type: string
name: parse_data
arguments: tag: D52
data_type: string
name: parse_data
arguments: tag: D82
data_type: string
name: parse_data
arguments: tag: D86
data_type: string
name: parse_data
arguments: tag: D51
data_type: string
name: parse_data
arguments: tag: D17
data_type: string
name: parse_data
arguments: tag: D27
data_type: string
name: parse_data
arguments: tag: D47
data_type: string
name: parse_data
arguments: tag: D0
data_type: string

tool: D104: w

tool: D101: l_mem.log

tool: D13: /scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/rdentato/clibutl/refs/heads/master/test/ut_mem.c

tool: D52: memVALID == memcheck(ptr_a)

tool: D82: 32 == memused()

tool: D86: memVALID != memcheck(ptr_a)

tool: D51: 0 == memused()

tool: D17: 0 == valid

tool: D27: 16 == memused()

tool: D47: memOVERFLOW == memcheck(ptr_a)

tool: D0: LOG STOP

assistant: ```c
int main(int argc, char *argv[]) {
  char *ptr_a;
  int valid;
  int k;
  utl_log_open("l_mem.log", "w");
  ptr_a = (char *)utl_malloc(32, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/rdentato/clibutl/refs/heads/master/test/ut_mem.c", 35);
  utl_log_check(!!(0 == utl_check(ptr_a, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/rdentato/clibutl/refs/heads/master/test/ut_mem.c", 36)), "memVALID == memcheck(ptr_a)", "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/rdentato/clibutl/refs/heads/master/test/ut_mem.c", 36);
  utl_log_check(!!(32 == utl_mem_used()), "32 == memused()", "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/rdentato/clibutl/refs/heads/master/test/ut_mem.c", 37);
  utl_free(ptr_a, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/rdentato/clibutl/refs/heads/master/test/ut_mem.c", 39);
  utl_log_check(!!(0 != utl_check(ptr_a, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/rdentato/clibutl/refs/heads/master/test/ut_mem.c", 40)), "memVALID != memcheck(ptr_a)", "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/rdentato/clibutl/refs/heads/master/test/ut_mem.c", 40);
  utl_log_check(!!(0 == utl_mem_used()), "0 == memused()", "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/rdentato/clibutl/refs/heads/master/test/ut_mem.c", 41);
  utl_free(ptr_a, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/rdentato/clibutl/refs/heads/master/test/ut_mem.c", 43);
  utl_log_check(!!(0 != utl_check(ptr_a, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/rdentato/clibutl/refs/heads/master/test/ut_mem.c", 44)), "memVALID != memcheck(ptr_a)", "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/rdentato/clibutl/refs/heads/master/test/ut_mem.c", 44);
  ptr_a = (char *)utl_malloc(0, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/rdentato/clibutl/refs/heads/master/test/ut_mem.c", 46);
  utl_log_check(!!(0 == utl_check(ptr_a, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/rdentato/clibutl/refs/heads/master/test/ut_mem.c", 47)), "memVALID == memcheck(ptr_a)", "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/rdentato/clibutl/refs/heads/master/test/ut_mem.c", 47);
  utl_free(ptr_a, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/rdentato/clibutl/refs/heads/master/test/ut_mem.c", 49);
  ptr_a = (char *)utl_calloc(8, 4, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/rdentato/clibutl/refs/heads/master/test/ut_mem.c", 50);
  utl_log_check(!!(0 == utl_check(ptr_a, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/rdentato/clibutl/refs/heads/master/test/ut_mem.c", 51)), "memVALID == memcheck(ptr_a)", "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/rdentato/clibutl/refs/heads/master/test/ut_mem.c", 51);
  for (k = 0, valid = 0; k < 32; k++)
    valid += ptr_a[k];
  utl_log_check(!!(0 == valid), "0 == valid", "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/rdentato/clibutl/refs/heads/master/test/ut_mem.c", 54);
  utl_free(ptr_a, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/rdentato/clibutl/refs/heads/master/test/ut_mem.c", 55);
  ptr_a = (char *)utl_malloc(16, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/rdentato/clibutl/refs/heads/master/test/ut_mem.c", 57);
  utl_log_check(!!(0 == utl_check(ptr_a, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/rdentato/clibutl/refs/heads/master/test/ut_mem.c", 58)), "memVALID == memcheck(ptr_a)", "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/rdentato/clibutl/refs/heads/master/test/ut_mem.c", 58);
  utl_log_check(!!(16 == utl_mem_used()), "16 == memused()", "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/rdentato/clibutl/refs/heads/master/test/ut_mem.c", 59);
  ptr_a[16] = '\0';
  utl_log_check(!!(-1 == utl_check(ptr_a, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/rdentato/clibutl/refs/heads/master/test/ut_mem.c", 62)), "memOVERFLOW == memcheck(ptr_a)", "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/rdentato/clibutl/refs/heads/master/test/ut_mem.c", 62);
  utl_free(ptr_a, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/rdentato/clibutl/refs/heads/master/test/ut_mem.c", 63);
  utl_log_close("LOG STOP");
  return 0;
}
```