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

```asm
<read_double>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x90,%rsp
  mov    %rdi,-0x78(%rbp)
  mov    %rsi,-0x80(%rbp)
  mov    %rdx,-0x88(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movq   $0x0,-0x68(%rbp)
  cmpq   $0x0,-0x80(%rbp)
  jne    L0
  lea    D17(%rip),%rax
  mov    %rax,%rdx
  lea    D83(%rip),%rax
  mov    %rax,%rsi
  mov    $0xcb,%edi
  call   <errhandler@plt>
L0:
  cmpq   $0x0,-0x78(%rbp)
  jne    L31
  lea    D49(%rip),%rax
  mov    %rax,%rdx
  lea    D83(%rip),%rax
  mov    %rax,%rsi
  mov    $0xcc,%edi
  call   <errhandler@plt>
L31:
  cmpq   $0x0,-0x88(%rbp)
  jne    L53
  lea    D93(%rip),%rax
  mov    %rax,%rdx
  lea    D83(%rip),%rax
  mov    %rax,%rsi
  mov    $0xcd,%edi
  call   <errhandler@plt>
L53:
  mov    -0x80(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2a,%al
  jne    L4
  mov    -0x80(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    -0x78(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <find_string@plt>
  mov    %rax,-0x68(%rbp)
  jmp    L24
L4:
  mov    -0x80(%rbp),%rdx
  mov    -0x78(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <find_string@plt>
  mov    %rax,-0x68(%rbp)
L24:
  mov    -0x88(%rbp),%rdx
  mov    -0x68(%rbp),%rax
  lea    D13(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <sscanf@plt>
  test   %rax,%rax
  jne    L28
  mov    -0x80(%rbp),%rcx
  mov    -0x78(%rbp),%rdx
  lea    -0x60(%rbp),%rax
  mov    %rcx,%r8
  mov    %rdx,%rcx
  lea    D23(%rip),%rdx
  lea    D89(%rip),%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  lea    -0x60(%rbp),%rax
  mov    %rax,%rdx
  lea    D83(%rip),%rax
  mov    %rax,%rsi
  mov    $0xd5,%edi
  call   <errhandler@plt>
L28:
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L54
  call   <__stack_chk_fail@plt>
L54:
  leave
  ret
```

tool_calls: name: extract_symbolic_data
arguments: tag: D17
type_guessed: string
name: extract_symbolic_data
arguments: tag: D83
type_guessed: string
name: extract_symbolic_data
arguments: tag: D49
type_guessed: string
name: extract_symbolic_data
arguments: tag: D93
type_guessed: string
name: extract_symbolic_data
arguments: tag: D13
type_guessed: string
name: extract_symbolic_data
arguments: tag: D23
type_guessed: string
name: extract_symbolic_data
arguments: tag: D89
type_guessed: string

tool: D17: null pointer given as varable name

tool: D83: /scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/grantathon/computational_fluid_dynamics/refs/heads/master/03_assignment/helper.c

tool: D49: null pointer given as filename

tool: D93: null pointer given as variable

tool: D13: %lf

tool: D23: wrong format

tool: D89:  %s  File: %s   Variable: %s 

assistant: ```c
void read_double(const char *szFileName, const char *szVarName, double *pVariable) {
  char *szValue = NULL;
  if (szVarName == 0)
    errhandler(203, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/grantathon/computational_fluid_dynamics/refs/heads/master/03_assignment/helper.c", "null pointer given as varable name");
  if (szFileName == 0)
    errhandler(204, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/grantathon/computational_fluid_dynamics/refs/heads/master/03_assignment/helper.c", "null pointer given as filename");
  if (pVariable == 0)
    errhandler(205, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/grantathon/computational_fluid_dynamics/refs/heads/master/03_assignment/helper.c", "null pointer given as variable");
  if (szVarName[0] == '*')
    szValue = find_string(szFileName, szVarName + 1);
  else
    szValue = find_string(szFileName, szVarName);
  if (sscanf(szValue, "%lf", pVariable) == 0) {
    char szTmp[80];
    if (0)
      sprintf(szTmp, " %s  File: %s   Variable: %s  Line: %d", "wrong format", szFileName, szVarName, 0);
    else
      sprintf(szTmp, " %s  File: %s   Variable: %s ", "wrong format", szFileName, szVarName);
    errhandler(213, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/grantathon/computational_fluid_dynamics/refs/heads/master/03_assignment/helper.c", szTmp);
  };
}
```