user: Please show me the C implementation that matches the assembly code listed below:

```asm
<config_file_search_with_string>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x70,%rsp
  mov    %rdi,-0x48(%rbp)
  mov    %rsi,-0x50(%rbp)
  mov    %rdx,-0x58(%rbp)
  mov    %rcx,-0x60(%rbp)
  mov    %r8,-0x68(%rbp)
  cmpq   $0x0,-0x50(%rbp)
  je     L172
  mov    -0x50(%rbp),%rax
  movq   $0x0,(%rax)
L172:
  cmpq   $0x0,-0x58(%rbp)
  je     L56
  mov    -0x58(%rbp),%rax
  movq   $0x0,(%rax)
L56:
  cmpq   $0x0,-0x60(%rbp)
  je     L139
  mov    -0x60(%rbp),%rax
  movq   $0x0,(%rax)
L139:
  cmpq   $0x0,-0x68(%rbp)
  je     L19
  mov    -0x68(%rbp),%rax
  movq   $0x0,(%rax)
L19:
  movq   $0x0,-0x38(%rbp)
  movq   $0x0,-0x30(%rbp)
  movq   $0x0,-0x28(%rbp)
  movq   $0x0,-0x20(%rbp)
  movq   $0x0,-0x18(%rbp)
  movq   $0x0,-0x10(%rbp)
  mov    -0x48(%rbp),%rax
  mov    $0x2e,%esi
  mov    %rax,%rdi
  call   <strchr@plt>
  mov    %rax,-0x8(%rbp)
  cmpq   $0x0,-0x8(%rbp)
  je     L58
  mov    -0x8(%rbp),%rax
  add    $0x1,%rax
  mov    $0x2e,%esi
  mov    %rax,%rdi
  call   <strchr@plt>
  jmp    L35
L58:
  mov    $0x0,%eax
L35:
  mov    %rax,-0x10(%rbp)
  cmpq   $0x0,-0x8(%rbp)
  je     L31
  cmpq   $0x0,-0x10(%rbp)
  je     L31
  mov    -0x8(%rbp),%rax
  sub    -0x48(%rbp),%rax
  mov    %eax,%edx
  mov    -0x48(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <string_strndup@plt>
  mov    %rax,-0x20(%rbp)
  mov    -0x10(%rbp),%rax
  sub    -0x8(%rbp),%rax
  sub    $0x1,%eax
  mov    %eax,%edx
  mov    -0x8(%rbp),%rax
  add    $0x1,%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <string_strndup@plt>
  mov    %rax,-0x18(%rbp)
  addq   $0x1,-0x10(%rbp)
L31:
  cmpq   $0x0,-0x20(%rbp)
  je     L79
  cmpq   $0x0,-0x18(%rbp)
  je     L79
  cmpq   $0x0,-0x10(%rbp)
  je     L79
  cmpq   $0x0,-0x68(%rbp)
  je     L40
  mov    -0x68(%rbp),%rax
  mov    -0x10(%rbp),%rdx
  mov    %rdx,(%rax)
L40:
  mov    -0x20(%rbp),%rax
  mov    %rax,%rdi
  call   <config_file_search@plt>
  mov    %rax,-0x38(%rbp)
  cmpq   $0x0,-0x38(%rbp)
  je     L79
  mov    -0x18(%rbp),%rdx
  mov    -0x38(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <config_file_search_section@plt>
  mov    %rax,-0x30(%rbp)
  cmpq   $0x0,-0x30(%rbp)
  je     L79
  mov    -0x10(%rbp),%rdx
  mov    -0x30(%rbp),%rcx
  mov    -0x38(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <config_file_search_option@plt>
  mov    %rax,-0x28(%rbp)
L79:
  cmpq   $0x0,-0x20(%rbp)
  je     L5
  mov    -0x20(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
L5:
  cmpq   $0x0,-0x18(%rbp)
  je     L68
  mov    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
L68:
  cmpq   $0x0,-0x50(%rbp)
  je     L171
  mov    -0x50(%rbp),%rax
  mov    -0x38(%rbp),%rdx
  mov    %rdx,(%rax)
L171:
  cmpq   $0x0,-0x58(%rbp)
  je     L165
  mov    -0x58(%rbp),%rax
  mov    -0x30(%rbp),%rdx
  mov    %rdx,(%rax)
L165:
  cmpq   $0x0,-0x60(%rbp)
  je     L107
  mov    -0x60(%rbp),%rax
  mov    -0x28(%rbp),%rdx
  mov    %rdx,(%rax)
L107:
  nop
  leave
  ret
```

assistant: ```c
void config_file_search_with_string(const char *option_name, struct t_config_file **config_file, struct t_config_section **section, struct t_config_option **option, char **pos_option_name) {
  struct t_config_file *ptr_config;
  struct t_config_section *ptr_section;
  struct t_config_option *ptr_option;
  char *file_name, *pos_section, *section_name, *pos_option;
  if (config_file)
    *config_file = NULL;
  if (section)
    *section = NULL;
  if (option)
    *option = NULL;
  if (pos_option_name)
    *pos_option_name = NULL;
  ptr_config = NULL;
  ptr_section = NULL;
  ptr_option = NULL;
  file_name = NULL;
  section_name = NULL;
  pos_option = NULL;
  pos_section = strchr(option_name, '.');
  pos_option = (pos_section) ? strchr(pos_section + 1, '.') : NULL;
  if (pos_section && pos_option) {
    file_name = string_strndup(option_name, pos_section - option_name);
    section_name = string_strndup(pos_section + 1, pos_option - pos_section - 1);
    pos_option++;
  }
  if (file_name && section_name && pos_option) {
    if (pos_option_name)
      *pos_option_name = pos_option;
    ptr_config = config_file_search(file_name);
    if (ptr_config) {
      ptr_section = config_file_search_section(ptr_config, section_name);
      if (ptr_section) {
        ptr_option = config_file_search_option(ptr_config, ptr_section, pos_option);
      }
    }
  }
  if (file_name)
    free(file_name);
  if (section_name)
    free(section_name);
  if (config_file)
    *config_file = ptr_config;
  if (section)
    *section = ptr_section;
  if (option)
    *option = ptr_option;
}
```