user: What is the c source code of the assembly code below?

```asm
<get_conf_value>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x60,%rsp
  mov    %rdi,-0x48(%rbp)
  mov    %rsi,-0x50(%rbp)
  mov    %rdx,-0x58(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movq   $0x0,-0x18(%rbp)
  movq   $0x0,-0x30(%rbp)
  movq   $0x0,-0x20(%rbp)
  movq   $0x0,-0x28(%rbp)
  movq   $0x0,-0x10(%rbp)
  movl   $0x0,-0x34(%rbp)
  cmpq   $0x0,-0x48(%rbp)
  je     L78
  cmpq   $0x0,-0x50(%rbp)
  je     L78
  cmpq   $0x0,-0x58(%rbp)
  jne    L17
L78:
  lea    D58(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    $0xffffffff,%eax
  jmp    L99
L17:
  mov    -0x48(%rbp),%rax
  lea    D22(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <fopen@plt>
  mov    %rax,-0x18(%rbp)
  cmpq   $0x0,-0x18(%rbp)
  jne    L54
  lea    D69(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    $0xffffffff,%eax
  jmp    L99
L139:
  mov    -0x30(%rbp),%rax
  mov    -0x50(%rbp),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strstr@plt>
  mov    %rax,-0x20(%rbp)
  cmpq   $0x0,-0x20(%rbp)
  jne    L23
  jmp    L54
L23:
  mov    -0x50(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %rax,-0x10(%rbp)
  mov    -0x30(%rbp),%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x3d,%al
  jne    L35
  mov    -0x28(%rbp),%rax
  sub    -0x10(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    -0x30(%rbp),%rcx
  mov    -0x10(%rbp),%rax
  add    $0x1,%rax
  add    %rax,%rcx
  mov    -0x58(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncpy@plt>
  mov    -0x28(%rbp),%rdx
  mov    -0x10(%rbp),%rax
  mov    %rax,%rsi
  lea    D17(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x58(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %rax,-0x10(%rbp)
  mov    -0x10(%rbp),%rdx
  mov    -0x58(%rbp),%rax
  mov    %rax,%rsi
  lea    D64(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x10(%rbp),%rax
  lea    -0x1(%rax),%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
  jmp    L77
L35:
  mov    -0x28(%rbp),%rdx
  mov    -0x10(%rbp),%rax
  mov    %rax,%rsi
  lea    D17(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <fclose@plt>
  mov    $0xfffffffe,%eax
  jmp    L99
L54:
  mov    -0x18(%rbp),%rdx
  lea    -0x28(%rbp),%rcx
  lea    -0x30(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <getline@plt>
  mov    %eax,-0x34(%rbp)
  cmpl   $0xffffffff,-0x34(%rbp)
  jne    L139
L77:
  cmpq   $0x0,-0x20(%rbp)
  jne    L27
  mov    -0x50(%rbp),%rax
  mov    %rax,%rsi
  lea    D29(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <fclose@plt>
  mov    $0xffffffff,%eax
  jmp    L99
L27:
  mov    -0x30(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <fclose@plt>
  mov    $0x0,%eax
L99:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L42
  call   <__stack_chk_fail@plt>
L42:
  leave
  ret
```

tool_calls: name: read_data
arguments: tag: D58
type: string
name: read_data
arguments: tag: D22
type: string
name: read_data
arguments: tag: D69
type: string
name: read_data
arguments: tag: D17
type: string
name: read_data
arguments: tag: D64
type: string
name: read_data
arguments: tag: D29
type: string

tool: D58: paramer is invaild!

tool: D22: r

tool: D69: open config file is error!

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


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


tool: D29: 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;
}
```