user: 这段汇编代码用C语言表示是什么样的:

```asm
<read_double>:
  endbr64
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x60,%rsp
  mov    %rdi,%rbp
  mov    %rsi,%rbx
  mov    %rdx,%r12
  mov    %fs:0x28,%rax
  mov    %rax,0x58(%rsp)
  xor    %eax,%eax
  test   %rsi,%rsi
  je     L3
L5:
  test   %rbp,%rbp
  je     L48
L21:
  test   %r12,%r12
  je     L28
L33:
  cmpb   $0x2a,(%rbx)
  je     L100
  mov    %rbx,%rsi
  mov    %rbp,%rdi
  call   <find_string@plt>
  mov    %rax,%rdi
L36:
  mov    %r12,%rdx
  lea    D2(%rip),%rsi
  call   <sscanf@plt>
  test   %rax,%rax
  je     L62
L78:
  mov    0x58(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L67
  add    $0x60,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
L3:
  lea    D25(%rip),%rdx
  lea    D95(%rip),%rsi
  mov    $0xcb,%edi
  call   <errhandler@plt>
  jmp    L5
L48:
  lea    D40(%rip),%rdx
  lea    D95(%rip),%rsi
  mov    $0xcc,%edi
  call   <errhandler@plt>
  jmp    L21
L28:
  lea    D1(%rip),%rdx
  lea    D95(%rip),%rsi
  mov    $0xcd,%edi
  call   <errhandler@plt>
  jmp    L33
L100:
  lea    0x1(%rbx),%rsi
  mov    %rbp,%rdi
  call   <find_string@plt>
  mov    %rax,%rdi
  jmp    L36
L62:
  mov    %rsp,%r12
  mov    %rbx,%r8
  mov    %rbp,%rcx
  lea    D88(%rip),%rdx
  lea    D60(%rip),%rsi
  mov    %r12,%rdi
  call   <sprintf@plt>
  mov    %r12,%rdx
  lea    D95(%rip),%rsi
  mov    $0xd5,%edi
  call   <errhandler@plt>
  jmp    L78
L67:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: tag: D2
datatype: string
name: unpack_data
arguments: tag: D25
datatype: string
name: unpack_data
arguments: tag: D95
datatype: string
name: unpack_data
arguments: tag: D40
datatype: string
name: unpack_data
arguments: tag: D1
datatype: string
name: unpack_data
arguments: tag: D88
datatype: string
name: unpack_data
arguments: tag: D60
datatype: string

tool: D2: %lf

tool: D25: null pointer given as varable name

tool: D95: /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: D40: null pointer given as filename

tool: D1: null pointer given as variable

tool: D88: wrong format

tool: D60:  %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);
  };
}
```