user: 请将以下的汇编代码转换成C语言代码：

```asm
<config_file_search_with_string>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %rdi,0x8(%rsp)
  mov    %rsi,%rbx
  mov    %rdx,%rbp
  mov    %rcx,%r12
  mov    %r8,%r13
  test   %rsi,%rsi
  je     L143
  movq   $0x0,(%rsi)
L143:
  test   %rbp,%rbp
  je     L88
  movq   $0x0,0x0(%rbp)
L88:
  test   %r12,%r12
  je     L61
  movq   $0x0,(%r12)
L61:
  test   %r13,%r13
  je     L44
  movq   $0x0,0x0(%r13)
L44:
  mov    $0x2e,%esi
  mov    0x8(%rsp),%rdi
  call   <strchr@plt>
  mov    %rax,%r14
  test   %rax,%rax
  je     L111
  lea    0x1(%rax),%rcx
  mov    $0x2e,%esi
  mov    %rcx,0x18(%rsp)
  mov    %rcx,%rdi
  call   <strchr@plt>
  mov    %rax,%r15
  test   %rax,%rax
  je     L111
  mov    %r14d,%esi
  mov    0x8(%rsp),%rax
  sub    %eax,%esi
  mov    %rax,%rdi
  call   <string_strndup@plt>
  mov    %rax,0x10(%rsp)
  mov    %r15,%rsi
  sub    %r14,%rsi
  sub    $0x1,%esi
  mov    0x18(%rsp),%rdi
  call   <string_strndup@plt>
  mov    %rax,0x18(%rsp)
  lea    0x1(%r15),%rdx
  mov    %rdx,0x28(%rsp)
  test   %rax,%rax
  setne  %r14b
  cmpq   $0x0,0x10(%rsp)
  setne  %al
  and    %r14b,%al
  mov    %al,0x27(%rsp)
  je     L121
  test   %r13,%r13
  je     L77
  mov    %rdx,0x0(%r13)
L77:
  mov    0x10(%rsp),%rdi
  call   <config_file_search@plt>
  mov    %rax,%r13
  test   %rax,%rax
  je     L112
  mov    0x18(%rsp),%rsi
  mov    %rax,%rdi
  call   <config_file_search_section@plt>
  mov    %rax,%r15
  mov    %rax,0x8(%rsp)
  test   %rax,%rax
  je     L55
  mov    0x28(%rsp),%rdx
  mov    %rax,%rsi
  mov    %r13,%rdi
  call   <config_file_search_option@plt>
  mov    %rax,0x8(%rsp)
  jmp    L55
L121:
  cmpq   $0x0,0x10(%rsp)
  je     L92
  movq   $0x0,0x8(%rsp)
  mov    $0x0,%r15d
  mov    $0x0,%r13d
  jmp    L94
L92:
  mov    0x10(%rsp),%r13
  mov    %r13,0x8(%rsp)
  mov    %r13,%r15
  jmp    L187
L112:
  mov    %rax,0x8(%rsp)
  mov    %rax,%r15
L55:
  movzbl 0x27(%rsp),%r14d
L94:
  mov    0x10(%rsp),%rdi
  call   <free@plt>
  jmp    L187
L111:
  movq   $0x0,0x18(%rsp)
  movq   $0x0,0x8(%rsp)
  mov    $0x0,%r15d
  mov    $0x0,%r13d
  mov    $0x0,%r14d
L187:
  test   %r14b,%r14b
  je     L183
  mov    0x18(%rsp),%rdi
  call   <free@plt>
L183:
  test   %rbx,%rbx
  je     L49
  mov    %r13,(%rbx)
L49:
  test   %rbp,%rbp
  je     L108
  mov    %r15,0x0(%rbp)
L108:
  test   %r12,%r12
  je     L51
  mov    0x8(%rsp),%rax
  mov    %rax,(%r12)
L51:
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  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;
}
```