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

```asm
<get_conf_value>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x20,%rsp
  mov    %rdx,%rbx
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  movq   $0x0,0x8(%rsp)
  movq   $0x0,0x10(%rsp)
  test   %rsi,%rsi
  sete   %al
  test   %rdx,%rdx
  sete   %dl
  or     %dl,%al
  jne    L61
  mov    %rsi,%r13
  test   %rdi,%rdi
  je     L61
  lea    D10(%rip),%rsi
  call   <fopen@plt>
  mov    %rax,%r12
  test   %rax,%rax
  je     L26
  lea    0x10(%rsp),%r14
L56:
  lea    0x8(%rsp),%rdi
  mov    %r12,%rdx
  mov    %r14,%rsi
  call   <getline@plt>
  mov    %eax,%ebp
  cmp    $0xffffffff,%eax
  je     L109
  mov    0x8(%rsp),%rbp
  mov    %r13,%rsi
  mov    %rbp,%rdi
  call   <strstr@plt>
  test   %rax,%rax
  je     L56
  mov    %r13,%rdi
  call   <strlen@plt>
  mov    %rax,%r13
  cmpb   $0x3d,0x0(%rbp,%rax,1)
  jne    L66
  mov    0x10(%rsp),%rax
  lea    0x1(%rax),%rdx
  sub    %r13,%rdx
  lea    0x1(%rbp,%r13,1),%rsi
  mov    %rbx,%rdi
  call   <strncpy@plt>
  mov    0x10(%rsp),%rdx
  mov    %r13,%rsi
  lea    D57(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %rbx,%rdi
  call   <strlen@plt>
  mov    %rax,%rbp
  mov    %rax,%rdx
  mov    %rbx,%rsi
  lea    D9(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  movb   $0x0,-0x1(%rbx,%rbp,1)
  mov    0x8(%rsp),%rdi
  call   <free@plt>
  mov    %r12,%rdi
  call   <fclose@plt>
  mov    $0x0,%ebp
L97:
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L14
  mov    %ebp,%eax
  add    $0x20,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L61:
  lea    D5(%rip),%rdi
  call   <puts@plt>
  mov    $0xffffffff,%ebp
  jmp    L97
L26:
  lea    D11(%rip),%rdi
  call   <puts@plt>
  mov    $0xffffffff,%ebp
  jmp    L97
L66:
  mov    0x10(%rsp),%rdx
  mov    %rax,%rsi
  lea    D57(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %r12,%rdi
  call   <fclose@plt>
  mov    $0xfffffffe,%ebp
  jmp    L97
L109:
  mov    %r13,%rsi
  lea    D22(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %r12,%rdi
  call   <fclose@plt>
  jmp    L97
L14:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D10
type: string
name: extract_symbolic_data
arguments: data_label: D57
type: string
name: extract_symbolic_data
arguments: data_label: D9
type: string
name: extract_symbolic_data
arguments: data_label: D5
type: string
name: extract_symbolic_data
arguments: data_label: D11
type: string
name: extract_symbolic_data
arguments: data_label: D22
type: string

tool: D10: r

tool: D57: config file format is invaild tlen is %d len is %d


tool: D9: get value is %s tlen is %d


tool: D5: paramer is invaild!

tool: D11: open config file is error!

tool: D22: key: %s is not in config file!


assistant: ```c
int get_conf_value(char *file_path, char *key_name, char *value) {
  FILE *fp = NULL;
  char *line = NULL, *substr = NULL;
  size_t len = 0, tlen = 0;
  ssize_t read = 0;
  if (file_path == NULL || key_name == NULL || value == NULL) {
    printf("paramer is invaild!\n");
    return -1;
  }
  fp = fopen(file_path, "r");
  if (fp == NULL) {
    printf("open config file is error!\n");
    return -1;
  }
  while ((read = getline(&line, &len, fp)) != -1) {
    substr = strstr(line, key_name);
    if (substr == NULL) {
      continue;
    } else {
      tlen = strlen(key_name);
      if (line[tlen] == '=') {
        strncpy(value, &line[tlen + 1], len - tlen + 1);
        printf("config file format is invaild tlen is %d len is %d\n", tlen, len);
        tlen = strlen(value);
        printf("get value is %s tlen is %d\n", value, tlen);
        *(value + tlen - 1) = '\0';
        break;
      } else {
        printf("config file format is invaild tlen is %d len is %d\n", tlen, len);
        fclose(fp);
        return -2;
      }
    }
  }
  if (substr == NULL) {
    printf("key: %s is not in config file!\n", key_name);
    fclose(fp);
    return -1;
  }
  free(line);
  fclose(fp);
  return 0;
}
```