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

```asm
<get_last_path_component_tests>:
  endbr64
  push   %r12
  lea    D10(%rip),%r12
  push   %rbp
  lea    D62(%rip),%rbp
  mov    %rbp,%rdi
  sub    $0x8,%rsp
  call   <seatest_test_fixture_start@plt>
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <seatest_should_run@plt>
  test   %rax,%rax
  jne    L57
L43:
  lea    D3(%rip),%r12
  mov    %rbp,%rdi
  mov    %r12,%rsi
  call   <seatest_should_run@plt>
  test   %rax,%rax
  jne    L71
L114:
  lea    D51(%rip),%r12
  mov    %rbp,%rdi
  mov    %r12,%rsi
  call   <seatest_should_run@plt>
  test   %rax,%rax
  jne    L46
L91:
  lea    D66(%rip),%r12
  mov    %rbp,%rdi
  mov    %r12,%rsi
  call   <seatest_should_run@plt>
  test   %rax,%rax
  jne    L13
L6:
  lea    D12(%rip),%r12
  mov    %rbp,%rdi
  mov    %r12,%rsi
  call   <seatest_should_run@plt>
  test   %rax,%rax
  jne    L95
L40:
  lea    D19(%rip),%r12
  mov    %rbp,%rdi
  mov    %r12,%rsi
  call   <seatest_should_run@plt>
  test   %rax,%rax
  jne    L47
L64:
  lea    D25(%rip),%r12
  mov    %rbp,%rdi
  mov    %r12,%rsi
  call   <seatest_should_run@plt>
  test   %rax,%rax
  jne    L123
L109:
  lea    D42(%rip),%r12
  mov    %rbp,%rdi
  mov    %r12,%rsi
  call   <seatest_should_run@plt>
  test   %rax,%rax
  jne    L70
  add    $0x8,%rsp
  xor    %eax,%eax
  pop    %rbp
  pop    %r12
  jmp    11f0 <seatest_test_fixture_end@plt>
  nopl   0x0(%rax)
L57:
  xor    %eax,%eax
  call   <seatest_suite_setup@plt>
  xor    %eax,%eax
  call   <seatest_setup@plt>
  xor    %eax,%eax
  call   <test_empty_path_ok@plt>
  xor    %eax,%eax
  call   <seatest_teardown@plt>
  xor    %eax,%eax
  call   <seatest_suite_teardown@plt>
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <seatest_run_test@plt>
  jmp    L43
  nopl   0x0(%rax,%rax,1)
L70:
  xor    %eax,%eax
  call   <seatest_suite_setup@plt>
  xor    %eax,%eax
  call   <seatest_setup@plt>
  xor    %eax,%eax
  call   <test_root_ok@plt>
  xor    %eax,%eax
  call   <seatest_teardown@plt>
  xor    %eax,%eax
  call   <seatest_suite_teardown@plt>
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <seatest_run_test@plt>
  add    $0x8,%rsp
  xor    %eax,%eax
  pop    %rbp
  pop    %r12
  jmp    11f0 <seatest_test_fixture_end@plt>
  nopl   0x0(%rax)
L123:
  xor    %eax,%eax
  call   <seatest_suite_setup@plt>
  xor    %eax,%eax
  call   <seatest_setup@plt>
  xor    %eax,%eax
  call   <test_one_element_ok@plt>
  xor    %eax,%eax
  call   <seatest_teardown@plt>
  xor    %eax,%eax
  call   <seatest_suite_teardown@plt>
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <seatest_run_test@plt>
  jmp    L109
  nopl   0x0(%rax,%rax,1)
L47:
  xor    %eax,%eax
  call   <seatest_suite_setup@plt>
  xor    %eax,%eax
  call   <seatest_setup@plt>
  xor    %eax,%eax
  call   <test_path_has_separators_of_multiple_slashes_ok@plt>
  xor    %eax,%eax
  call   <seatest_teardown@plt>
  xor    %eax,%eax
  call   <seatest_suite_teardown@plt>
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <seatest_run_test@plt>
  jmp    L64
  nopl   0x0(%rax,%rax,1)
L95:
  xor    %eax,%eax
  call   <seatest_suite_setup@plt>
  xor    %eax,%eax
  call   <seatest_setup@plt>
  xor    %eax,%eax
  call   <test_path_ends_with_multiple_slashes_ok@plt>
  xor    %eax,%eax
  call   <seatest_teardown@plt>
  xor    %eax,%eax
  call   <seatest_suite_teardown@plt>
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <seatest_run_test@plt>
  jmp    L40
  nopl   0x0(%rax,%rax,1)
L13:
  xor    %eax,%eax
  call   <seatest_suite_setup@plt>
  xor    %eax,%eax
  call   <seatest_setup@plt>
  xor    %eax,%eax
  call   <test_path_ends_with_slash_ok@plt>
  xor    %eax,%eax
  call   <seatest_teardown@plt>
  xor    %eax,%eax
  call   <seatest_suite_teardown@plt>
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <seatest_run_test@plt>
  jmp    L6
  nopl   0x0(%rax,%rax,1)
L46:
  xor    %eax,%eax
  call   <seatest_suite_setup@plt>
  xor    %eax,%eax
  call   <seatest_setup@plt>
  xor    %eax,%eax
  call   <test_path_does_not_end_with_slash_ok@plt>
  xor    %eax,%eax
  call   <seatest_teardown@plt>
  xor    %eax,%eax
  call   <seatest_suite_teardown@plt>
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <seatest_run_test@plt>
  jmp    L91
  nopl   0x0(%rax,%rax,1)
L71:
  xor    %eax,%eax
  call   <seatest_suite_setup@plt>
  xor    %eax,%eax
  call   <seatest_setup@plt>
  xor    %eax,%eax
  call   <test_no_slashes_ok@plt>
  xor    %eax,%eax
  call   <seatest_teardown@plt>
  xor    %eax,%eax
  call   <seatest_suite_teardown@plt>
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <seatest_run_test@plt>
  jmp    L114
```

tool_calls: name: extract_symbolic_data
arguments: tag: D10
type_guessed: string
name: extract_symbolic_data
arguments: tag: D62
type_guessed: string
name: extract_symbolic_data
arguments: tag: D3
type_guessed: string
name: extract_symbolic_data
arguments: tag: D51
type_guessed: string
name: extract_symbolic_data
arguments: tag: D66
type_guessed: string
name: extract_symbolic_data
arguments: tag: D12
type_guessed: string
name: extract_symbolic_data
arguments: tag: D19
type_guessed: string
name: extract_symbolic_data
arguments: tag: D25
type_guessed: string
name: extract_symbolic_data
arguments: tag: D42
type_guessed: string

tool: D10: test_empty_path_ok

tool: D62: /scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/sshilovsky/vifm/refs/heads/master/tests/misc/get_last_path_component.c

tool: D3: test_no_slashes_ok

tool: D51: test_path_does_not_end_with_slash_ok

tool: D66: test_path_ends_with_slash_ok

tool: D12: test_path_ends_with_multiple_slashes_ok

tool: D19: test_path_has_separators_of_multiple_slashes_ok

tool: D25: test_one_element_ok

tool: D42: test_root_ok

assistant: ```c
void get_last_path_component_tests(void) {
  do {
    seatest_test_fixture_start("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/sshilovsky/vifm/refs/heads/master/tests/misc/get_last_path_component.c");
  } while (0);
  do {
    if (seatest_should_run("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/sshilovsky/vifm/refs/heads/master/tests/misc/get_last_path_component.c", "test_empty_path_ok")) {
      seatest_suite_setup();
      seatest_setup();
      test_empty_path_ok();
      seatest_teardown();
      seatest_suite_teardown();
      seatest_run_test("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/sshilovsky/vifm/refs/heads/master/tests/misc/get_last_path_component.c", "test_empty_path_ok");
    }
  } while (0);
  do {
    if (seatest_should_run("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/sshilovsky/vifm/refs/heads/master/tests/misc/get_last_path_component.c", "test_no_slashes_ok")) {
      seatest_suite_setup();
      seatest_setup();
      test_no_slashes_ok();
      seatest_teardown();
      seatest_suite_teardown();
      seatest_run_test("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/sshilovsky/vifm/refs/heads/master/tests/misc/get_last_path_component.c", "test_no_slashes_ok");
    }
  } while (0);
  do {
    if (seatest_should_run("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/sshilovsky/vifm/refs/heads/master/tests/misc/get_last_path_component.c", "test_path_does_not_end_with_slash_ok")) {
      seatest_suite_setup();
      seatest_setup();
      test_path_does_not_end_with_slash_ok();
      seatest_teardown();
      seatest_suite_teardown();
      seatest_run_test("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/sshilovsky/vifm/refs/heads/master/tests/misc/get_last_path_component.c", "test_path_does_not_end_with_slash_ok");
    }
  } while (0);
  do {
    if (seatest_should_run("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/sshilovsky/vifm/refs/heads/master/tests/misc/get_last_path_component.c", "test_path_ends_with_slash_ok")) {
      seatest_suite_setup();
      seatest_setup();
      test_path_ends_with_slash_ok();
      seatest_teardown();
      seatest_suite_teardown();
      seatest_run_test("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/sshilovsky/vifm/refs/heads/master/tests/misc/get_last_path_component.c", "test_path_ends_with_slash_ok");
    }
  } while (0);
  do {
    if (seatest_should_run("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/sshilovsky/vifm/refs/heads/master/tests/misc/get_last_path_component.c", "test_path_ends_with_multiple_slashes_ok")) {
      seatest_suite_setup();
      seatest_setup();
      test_path_ends_with_multiple_slashes_ok();
      seatest_teardown();
      seatest_suite_teardown();
      seatest_run_test("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/sshilovsky/vifm/refs/heads/master/tests/misc/get_last_path_component.c", "test_path_ends_with_multiple_slashes_ok");
    }
  } while (0);
  do {
    if (seatest_should_run("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/sshilovsky/vifm/refs/heads/master/tests/misc/get_last_path_component.c", "test_path_has_separators_of_multiple_slashes_ok")) {
      seatest_suite_setup();
      seatest_setup();
      test_path_has_separators_of_multiple_slashes_ok();
      seatest_teardown();
      seatest_suite_teardown();
      seatest_run_test("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/sshilovsky/vifm/refs/heads/master/tests/misc/get_last_path_component.c", "test_path_has_separators_of_multiple_slashes_ok");
    }
  } while (0);
  do {
    if (seatest_should_run("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/sshilovsky/vifm/refs/heads/master/tests/misc/get_last_path_component.c", "test_one_element_ok")) {
      seatest_suite_setup();
      seatest_setup();
      test_one_element_ok();
      seatest_teardown();
      seatest_suite_teardown();
      seatest_run_test("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/sshilovsky/vifm/refs/heads/master/tests/misc/get_last_path_component.c", "test_one_element_ok");
    }
  } while (0);
  do {
    if (seatest_should_run("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/sshilovsky/vifm/refs/heads/master/tests/misc/get_last_path_component.c", "test_root_ok")) {
      seatest_suite_setup();
      seatest_setup();
      test_root_ok();
      seatest_teardown();
      seatest_suite_teardown();
      seatest_run_test("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/sshilovsky/vifm/refs/heads/master/tests/misc/get_last_path_component.c", "test_root_ok");
    }
  } while (0);
  do {
    seatest_test_fixture_end();
  } while (0);
}
```