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

```asm
<main>:
  endbr64
  push   %r15
  mov    $0x8,%edi
  lea    D102(%rip),%r15
  push   %r14
  lea    D46(%rip),%r14
  push   %r13
  lea    D57(%rip),%r13
  push   %r12
  lea    D49(%rip),%r12
  push   %rbp
  push   %rbx
  lea    D30(%rip),%rbx
  sub    $0x58,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x48(%rsp)
  xor    %eax,%eax
  mov    %r15,0x8(%rsp)
  mov    %r13,(%rsp)
  mov    %r14,0x10(%rsp)
  mov    %r12,0x18(%rsp)
  mov    %r12,0x20(%rsp)
  mov    %r12,0x28(%rsp)
  mov    %r13,0x30(%rsp)
  movq   $0x0,0x38(%rsp)
  call   <ll_new_list@plt>
  mov    %r13,%rdi
  mov    %rax,%rbp
  call   <strdup@plt>
  mov    %r15,%rdi
  lea    D99(%rip),%r15
  mov    %rax,0x0(%rbp)
  call   <strdup@plt>
  mov    %r15,%rdi
  mov    %rax,0x8(%rbp)
  xor    %eax,%eax
  call   <printf@plt>
  mov    %rbp,%rdi
  call   <ll_list_print@plt>
  mov    %r13,%rsi
  mov    %rbp,%rdi
  call   <ll_list_contains@plt>
  lea    D60(%rip),%rdi
  mov    %eax,%esi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %r13,%rsi
  mov    %rbp,%rdi
  call   <ll_list_contains@plt>
  mov    %eax,%edi
  call   <assert@plt>
  mov    %r14,%rsi
  mov    %rbp,%rdi
  call   <ll_list_contains@plt>
  lea    D96(%rip),%rdi
  mov    %eax,%esi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %r14,%rsi
  mov    %rbp,%rdi
  call   <ll_list_contains@plt>
  xor    %edi,%edi
  test   %eax,%eax
  sete   %dil
  call   <assert@plt>
  mov    %rbp,%rdi
  call   <ll_list_length@plt>
  mov    %rbx,%rdi
  mov    %eax,%esi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %rbp,%rdi
  call   <ll_list_length@plt>
  xor    %edi,%edi
  cmp    $0x2,%eax
  sete   %dil
  call   <assert@plt>
  mov    %r14,%rdi
  call   <strdup@plt>
  mov    %r12,%rdi
  mov    %rax,0x10(%rbp)
  call   <strdup@plt>
  mov    %r12,%rdi
  mov    %rax,0x18(%rbp)
  call   <strdup@plt>
  mov    %r12,%rdi
  mov    %rax,0x20(%rbp)
  call   <strdup@plt>
  mov    %r13,%rdi
  mov    %rax,0x28(%rbp)
  call   <strdup@plt>
  mov    %r15,%rdi
  mov    %rax,0x30(%rbp)
  xor    %eax,%eax
  call   <printf@plt>
  mov    %rbp,%rdi
  call   <ll_list_print@plt>
  mov    %rsp,%rsi
  mov    %rbp,%rdi
  call   <ll_lists_equal@plt>
  mov    %eax,%edi
  call   <assert@plt>
  mov    %r14,%rsi
  mov    %rbp,%rdi
  call   <ll_list_index@plt>
  lea    D44(%rip),%rdi
  mov    %eax,%esi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %r14,%rsi
  mov    %rbp,%rdi
  call   <ll_list_index@plt>
  xor    %edi,%edi
  cmp    $0x2,%eax
  sete   %dil
  call   <assert@plt>
  mov    %rbp,%rdi
  call   <ll_list_length@plt>
  mov    %rbx,%rdi
  mov    %eax,%esi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %rbp,%rdi
  call   <ll_list_length@plt>
  xor    %edi,%edi
  cmp    $0x7,%eax
  sete   %dil
  call   <assert@plt>
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <ll_list_mode@plt>
  lea    D62(%rip),%rdi
  mov    %rax,%rsi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <ll_list_mode@plt>
  mov    %r13,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  xor    %edi,%edi
  test   %rax,%rax
  sete   %dil
  call   <assert@plt>
  lea    D11(%rip),%rdi
  call   <puts@plt>
  mov    %rbp,%rdi
  call   <ll_free_list@plt>
  mov    0x48(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L3
  add    $0x58,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L3:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: label: D102
type_infered: string
name: unpack_data
arguments: label: D46
type_infered: string
name: unpack_data
arguments: label: D57
type_infered: string
name: unpack_data
arguments: label: D49
type_infered: string
name: unpack_data
arguments: label: D30
type_infered: string
name: unpack_data
arguments: label: D99
type_infered: string
name: unpack_data
arguments: label: D60
type_infered: string
name: unpack_data
arguments: label: D96
type_infered: string
name: unpack_data
arguments: label: D44
type_infered: string
name: unpack_data
arguments: label: D62
type_infered: string
name: unpack_data
arguments: label: D11
type_infered: string

tool: D102: two

tool: D46: three

tool: D57: one

tool: D49: four

tool: D30: List length: %d


tool: D99: Current list: 

tool: D60: Contains 'one': %d


tool: D96: Contains 'three': %d


tool: D44: Index of 'three': %d


tool: D62: List mode: '%s'


tool: D11: List free: 

assistant: ```c
int main(int argc, char **argv) {
  char *known_good_final_list[] = {"one", "two", "three", "four", "four", "four", "one", NULL};
  char **list;
  (void)argc;
  (void)argv;
  list = ll_new_list(8);
  list[0] = strdup("one");
  list[1] = strdup("two");
  printf("Current list: ");
  ll_list_print(list);
  printf("Contains 'one': %d\n", ll_list_contains(list, "one"));
  assert(ll_list_contains(list, "one"));
  printf("Contains 'three': %d\n", ll_list_contains(list, "three"));
  assert(!ll_list_contains(list, "three"));
  printf("List length: %d\n", ll_list_length(list));
  assert(ll_list_length(list) == 2);
  list[2] = strdup("three");
  list[3] = strdup("four");
  list[4] = strdup("four");
  list[5] = strdup("four");
  list[6] = strdup("one");
  printf("Current list: ");
  ll_list_print(list);
  assert(ll_lists_equal(list, known_good_final_list));
  printf("Index of 'three': %d\n", ll_list_index(list, "three"));
  assert(ll_list_index(list, "three") == 2);
  printf("List length: %d\n", ll_list_length(list));
  assert(ll_list_length(list) == 7);
  printf("List mode: '%s'\n", ll_list_mode(list, "four"));
  assert(strcmp(ll_list_mode(list, "four"), "one") == 0);
  printf("List free: \n");
  ll_free_list(list);
  return 0;
}
```