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

```asm
<read_double>:
  endbr64
  push   %r13
  mov    %rdx,%r13
  push   %r12
  mov    %rdi,%r12
  push   %rbx
  mov    %rsi,%rbx
  sub    $0x60,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x58(%rsp)
  xor    %eax,%eax
  test   %rsi,%rsi
  je     L1
  test   %r12,%r12
  je     L39
L103:
  test   %r13,%r13
  je     L66
L45:
  cmpb   $0x2a,(%rbx)
  je     L8
  mov    %r12,%rdi
  mov    %rbx,%rsi
  call   <find_string@plt>
  mov    %rax,%rdi
L40:
  mov    %r13,%rdx
  lea    D44(%rip),%rsi
  call   <sscanf@plt>
  test   %rax,%rax
  je     L102
L30:
  mov    0x58(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L70
  add    $0x60,%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  ret
  cs nopw 0x0(%rax,%rax,1)
L8:
  mov    %r12,%rdi
  lea    0x1(%rbx),%rsi
  call   <find_string@plt>
  mov    %rax,%rdi
  jmp    L40
  nopl   0x0(%rax)
L102:
  mov    %rsp,%r13
  mov    %rbx,%r8
  lea    D65(%rip),%rdx
  mov    %r12,%rcx
  mov    %r13,%rdi
  lea    D28(%rip),%rsi
  call   <sprintf@plt>
  mov    %r13,%rdx
  mov    $0xd5,%edi
  lea    D25(%rip),%rsi
  call   <errhandler@plt>
  jmp    L30
  nopl   (%rax)
L66:
  lea    D16(%rip),%rdx
  lea    D25(%rip),%rsi
  mov    $0xcd,%edi
  call   <errhandler@plt>
  jmp    L45
  nopl   (%rax)
L1:
  lea    D72(%rip),%rdx
  lea    D25(%rip),%rsi
  mov    $0xcb,%edi
  call   <errhandler@plt>
  test   %r12,%r12
  jne    L103
  nopl   0x0(%rax)
L39:
  lea    D94(%rip),%rdx
  lea    D25(%rip),%rsi
  mov    $0xcc,%edi
  call   <errhandler@plt>
  jmp    L103
L70:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: data_tag: D44
type: string
name: disassemble_data
arguments: data_tag: D65
type: string
name: disassemble_data
arguments: data_tag: D28
type: string
name: disassemble_data
arguments: data_tag: D25
type: string
name: disassemble_data
arguments: data_tag: D16
type: string
name: disassemble_data
arguments: data_tag: D72
type: string
name: disassemble_data
arguments: data_tag: D94
type: string

tool: D44: %lf

tool: D65: wrong format

tool: D28:  %s  File: %s   Variable: %s 

tool: D25: /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: D16: null pointer given as variable

tool: D72: null pointer given as varable name

tool: D94: null pointer given as filename

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);
  };
}
```