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

```asm
<parseconf>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x50,%rsp
  mov    %rdi,-0x48(%rbp)
  mov    %rsi,-0x50(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movq   $0x0,-0x30(%rbp)
  movq   $0x0,-0x28(%rbp)
  movq   $0x0,-0x20(%rbp)
  movq   $0x0,-0x18(%rbp)
  mov    -0x50(%rbp),%rax
  lea    D9(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <fopen@plt>
  mov    %rax,-0x10(%rbp)
  jmp    L89
L177:
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x23,%al
  je     L89
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0xa,%al
  jne    L96
  jmp    L89
L96:
  mov    -0x30(%rbp),%rax
  mov    -0x48(%rbp),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strstr@plt>
  mov    %rax,-0x20(%rbp)
  cmpq   $0x0,-0x20(%rbp)
  je     L89
  mov    -0x20(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  add    $0x1,%rax
  mov    %rax,%rdi
  call   <malloc@plt>
  mov    %rax,-0x18(%rbp)
  mov    -0x20(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  lea    0x1(%rax),%rdx
  mov    -0x18(%rbp),%rax
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <memset@plt>
  movl   $0x0,-0x3c(%rbp)
  jmp    L86
L146:
  addl   $0x1,-0x3c(%rbp)
L86:
  mov    -0x3c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x3d,%al
  jne    L146
  addl   $0x1,-0x3c(%rbp)
  jmp    L95
L107:
  addl   $0x1,-0x3c(%rbp)
L95:
  mov    -0x3c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x20,%al
  je     L107
  mov    -0x3c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x22,%al
  je     L107
  movl   $0x0,-0x38(%rbp)
  jmp    L106
L25:
  mov    -0x3c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  mov    -0x38(%rbp),%edx
  movslq %edx,%rcx
  mov    -0x18(%rbp),%rdx
  add    %rcx,%rdx
  movzbl (%rax),%eax
  mov    %al,(%rdx)
  addl   $0x1,-0x3c(%rbp)
  addl   $0x1,-0x38(%rbp)
L106:
  mov    -0x3c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L16
  mov    -0x3c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0xa,%al
  jne    L25
L16:
  mov    -0x38(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
  jmp    L175
L89:
  mov    -0x10(%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    L177
L175:
  mov    -0x10(%rbp),%rax
  mov    %rax,%rdi
  call   <fclose@plt>
  cmpq   $0x0,-0x20(%rbp)
  je     L54
  mov    -0x20(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    -0x18(%rbp),%rax
  jmp    L161
L54:
  mov    $0x0,%eax
L161:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L127
  call   <__stack_chk_fail@plt>
L127:
  leave
  ret
```

tool_calls: name: parse_data
arguments: label: D9
datatype: string

tool: D9: r

assistant: ```c
char *parseconf(const char *variable, const char *filename) {
  FILE *fp;
  char *line = NULL;
  size_t len = 0;
  ssize_t read;
  char *var_temp = NULL;
  char *ret_val = NULL;
  int i, j;
  fp = fopen(filename, "r");
  while ((read = getline(&line, &len, fp)) != -1) {
    if (line[0] == '#' || line[0] == '\n')
      continue;
    var_temp = strstr(line, variable);
    if (var_temp != NULL) {
      ret_val = malloc(strlen(var_temp) + 1);
      memset(ret_val, 0, strlen(var_temp) + 1);
      for (i = 0; var_temp[i] != '='; i++)
        ;
      i++;
      while (var_temp[i] == ' ' || var_temp[i] == '"')
        i++;
      for (j = 0; var_temp[i] != '\0' && var_temp[i] != '\n'; i++, j++) {
        ret_val[j] = var_temp[i];
      }
      ret_val[j] = '\0';
      break;
    }
  }
  fclose(fp);
  if (var_temp != NULL) {
    free(var_temp);
    return (ret_val);
  } else
    return (NULL);
}
```