user: Translate the below assembly code into C programming language:

```asm
<read_string>:
  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    L16
  lea    D80(%rip),%rax
  mov    %rax,%rdx
  lea    D75(%rip),%rax
  mov    %rax,%rsi
  mov    $0xac,%edi
  call   <errhandler@plt>
L16:
  cmpq   $0x0,-0x78(%rbp)
  jne    L18
  lea    D85(%rip),%rax
  mov    %rax,%rdx
  lea    D75(%rip),%rax
  mov    %rax,%rsi
  mov    $0xad,%edi
  call   <errhandler@plt>
L18:
  cmpq   $0x0,-0x88(%rbp)
  jne    L24
  lea    D102(%rip),%rax
  mov    %rax,%rdx
  lea    D75(%rip),%rax
  mov    %rax,%rsi
  mov    $0xae,%edi
  call   <errhandler@plt>
L24:
  mov    -0x80(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2a,%al
  jne    L42
  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    L45
L42:
  mov    -0x80(%rbp),%rdx
  mov    -0x78(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <find_string@plt>
  mov    %rax,-0x68(%rbp)
L45:
  mov    -0x88(%rbp),%rdx
  mov    -0x68(%rbp),%rax
  lea    D49(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <sscanf@plt>
  test   %rax,%rax
  jne    L62
  mov    -0x80(%rbp),%rcx
  mov    -0x78(%rbp),%rdx
  lea    -0x60(%rbp),%rax
  mov    %rcx,%r8
  mov    %rdx,%rcx
  lea    D45(%rip),%rdx
  lea    D23(%rip),%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  lea    -0x60(%rbp),%rax
  mov    %rax,%rdx
  lea    D75(%rip),%rax
  mov    %rax,%rsi
  mov    $0xb6,%edi
  call   <errhandler@plt>
L62:
  mov    -0x80(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    $0xf,%esi
  mov    %eax,%edi
  call   <min_int@plt>
  lea    D14(%rip),%rdx
  lea    (%rax,%rdx,1),%rcx
  mov    -0x88(%rbp),%rsi
  mov    -0x80(%rbp),%rdx
  mov    -0x78(%rbp),%rax
  mov    %rsi,%r8
  mov    %rax,%rsi
  lea    D88(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L63
  call   <__stack_chk_fail@plt>
L63:
  leave
  ret
```

tool_calls: name: unpack_data
arguments: data_tag: D80
type: string
name: unpack_data
arguments: data_tag: D75
type: string
name: unpack_data
arguments: data_tag: D85
type: string
name: unpack_data
arguments: data_tag: D102
type: string
name: unpack_data
arguments: data_tag: D49
type: string
name: unpack_data
arguments: data_tag: D45
type: string
name: unpack_data
arguments: data_tag: D23
type: string
name: unpack_data
arguments: data_tag: D14
type: string
name: unpack_data
arguments: data_tag: D88
type: string

tool: D80: null pointer given as variable name

tool: D75: /scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/nyxcalamity/classwork/refs/heads/master/tum/computational-fluid-dynamics/ws1/helper.c

tool: D85: null pointer given as filename

tool: D102: null pointer given as variable

tool: D49: %s

tool: D45: wrong format

tool: D23:  %s  File: %s   Variable: %s 

tool: D14:                

tool: D88: File: %s		%s%s= %s


assistant: ```c
void read_string(const char *szFileName, const char *szVarName, char *pVariable) {
  char *szValue = NULL;
  if (szVarName == 0)
    errhandler(172, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/nyxcalamity/classwork/refs/heads/master/tum/computational-fluid-dynamics/ws1/helper.c", "null pointer given as variable name");
  if (szFileName == 0)
    errhandler(173, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/nyxcalamity/classwork/refs/heads/master/tum/computational-fluid-dynamics/ws1/helper.c", "null pointer given as filename");
  if (pVariable == 0)
    errhandler(174, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/nyxcalamity/classwork/refs/heads/master/tum/computational-fluid-dynamics/ws1/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, "%s", 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(182, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/nyxcalamity/classwork/refs/heads/master/tum/computational-fluid-dynamics/ws1/helper.c", szTmp);
  };
  printf("File: %s\t\t%s%s= %s\n", szFileName, szVarName, &("               "[min_int(strlen(szVarName), 15)]), pVariable);
}
```