user: 请从给定的汇编指令推导出C源代码:

```asm
<find_string>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0xa0,%rsp
  mov    %rdi,-0x98(%rbp)
  mov    %rsi,-0xa0(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0x88(%rbp)
  movq   $0x0,-0x70(%rbp)
  lea    D90(%rip),%rax
  mov    %rax,-0x80(%rbp)
  movq   $0x0,-0x78(%rbp)
  movq   $0x0,-0x68(%rbp)
  mov    -0x98(%rbp),%rax
  lea    D44(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <fopen@plt>
  mov    %rax,-0x70(%rbp)
  cmpq   $0x0,-0x70(%rbp)
  jne    L4
  mov    -0xa0(%rbp),%rcx
  mov    -0x98(%rbp),%rdx
  lea    -0x60(%rbp),%rax
  mov    %rcx,%r8
  mov    %rdx,%rcx
  lea    D177(%rip),%rdx
  lea    D38(%rip),%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  lea    -0x60(%rbp),%rax
  mov    %rax,%rdx
  lea    D134(%rip),%rax
  mov    %rax,%rsi
  mov    $0x6a,%edi
  call   <errhandler@plt>
  jmp    L4
L90:
  mov    -0x70(%rbp),%rdx
  mov    -0x80(%rbp),%rax
  mov    $0x400,%esi
  mov    %rax,%rdi
  call   <fgets@plt>
  addl   $0x1,-0x88(%rbp)
  movl   $0x0,-0x84(%rbp)
  jmp    L252
L232:
  mov    -0x84(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x80(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x23,%al
  jne    L203
  mov    -0x84(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x80(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
  jmp    L6
L203:
  addl   $0x1,-0x84(%rbp)
L252:
  mov    -0x80(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  cmp    %eax,-0x84(%rbp)
  jl     L232
L6:
  jmp    L79
L270:
  addq   $0x1,-0x80(%rbp)
L79:
  mov    -0x80(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isspace@plt>
  test   %rax,%rax
  je     L121
  mov    -0x80(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L270
L121:
  mov    -0x80(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  test   %eax,%eax
  jne    L233
  jmp    L4
L233:
  mov    -0x80(%rbp),%rax
  mov    %rax,-0x68(%rbp)
  mov    -0x80(%rbp),%rax
  mov    %rax,-0x78(%rbp)
  jmp    L68
L131:
  addq   $0x1,-0x78(%rbp)
L68:
  mov    -0x78(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isalnum@plt>
  test   %rax,%rax
  jne    L207
  mov    -0x78(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x5f,%al
  jne    L280
L207:
  mov    -0x78(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L131
L280:
  mov    -0x78(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0xa,%al
  je     L70
  mov    -0x78(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  test   %eax,%eax
  jne    L239
L70:
  cmpl   $0x0,-0x88(%rbp)
  je     L23
  mov    -0x88(%rbp),%esi
  mov    -0x68(%rbp),%rcx
  mov    -0x98(%rbp),%rdx
  lea    -0x60(%rbp),%rax
  mov    %esi,%r9d
  mov    %rcx,%r8
  mov    %rdx,%rcx
  lea    D5(%rip),%rdx
  lea    D116(%rip),%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  jmp    L141
L23:
  mov    -0x68(%rbp),%rcx
  mov    -0x98(%rbp),%rdx
  lea    -0x60(%rbp),%rax
  mov    %rcx,%r8
  mov    %rdx,%rcx
  lea    D5(%rip),%rdx
  lea    D38(%rip),%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
L141:
  lea    -0x60(%rbp),%rax
  mov    %rax,%rdx
  lea    D134(%rip),%rax
  mov    %rax,%rsi
  mov    $0x85,%edi
  call   <errhandler@plt>
L239:
  mov    -0x78(%rbp),%rax
  movb   $0x0,(%rax)
  addq   $0x1,-0x78(%rbp)
  mov    -0x68(%rbp),%rdx
  mov    -0xa0(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L162
  jmp    L4
L208:
  addq   $0x1,-0x78(%rbp)
L162:
  mov    -0x78(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isspace@plt>
  test   %rax,%rax
  jne    L208
  mov    -0x78(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0xa,%al
  je     L170
  mov    -0x78(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  test   %eax,%eax
  jne    L27
L170:
  cmpl   $0x0,-0x88(%rbp)
  je     L95
  mov    -0x88(%rbp),%esi
  mov    -0x68(%rbp),%rcx
  mov    -0x98(%rbp),%rdx
  lea    -0x60(%rbp),%rax
  mov    %esi,%r9d
  mov    %rcx,%r8
  mov    %rdx,%rcx
  lea    D5(%rip),%rdx
  lea    D116(%rip),%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  jmp    L94
L95:
  mov    -0x68(%rbp),%rcx
  mov    -0x98(%rbp),%rdx
  lea    -0x60(%rbp),%rax
  mov    %rcx,%r8
  mov    %rdx,%rcx
  lea    D5(%rip),%rdx
  lea    D38(%rip),%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
L94:
  lea    -0x60(%rbp),%rax
  mov    %rax,%rdx
  lea    D134(%rip),%rax
  mov    %rax,%rsi
  mov    $0x90,%edi
  call   <errhandler@plt>
L27:
  mov    -0x70(%rbp),%rax
  mov    %rax,%rdi
  call   <fclose@plt>
  mov    -0x78(%rbp),%rax
  jmp    L46
L4:
  mov    -0x70(%rbp),%rax
  mov    %rax,%rdi
  call   <feof@plt>
  test   %eax,%eax
  je     L90
  cmpl   $0x0,-0x88(%rbp)
  je     L52
  mov    -0x88(%rbp),%esi
  mov    -0xa0(%rbp),%rcx
  mov    -0x98(%rbp),%rdx
  lea    -0x60(%rbp),%rax
  mov    %esi,%r9d
  mov    %rcx,%r8
  mov    %rdx,%rcx
  lea    D113(%rip),%rdx
  lea    D116(%rip),%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  jmp    L38
L52:
  mov    -0xa0(%rbp),%rcx
  mov    -0x98(%rbp),%rdx
  lea    -0x60(%rbp),%rax
  mov    %rcx,%r8
  mov    %rdx,%rcx
  lea    D113(%rip),%rdx
  lea    D38(%rip),%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
L38:
  lea    -0x60(%rbp),%rax
  mov    %rax,%rdx
  lea    D134(%rip),%rax
  mov    %rax,%rsi
  mov    $0x96,%edi
  call   <errhandler@plt>
  mov    $0x0,%eax
L46:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L28
  call   <__stack_chk_fail@plt>
L28:
  leave
  ret
```

tool_calls: name: read_data
arguments: data_label: D44
type: string
name: read_data
arguments: data_label: D177
type: string
name: read_data
arguments: data_label: D38
type: string
name: read_data
arguments: data_label: D134
type: string
name: read_data
arguments: data_label: D5
type: string
name: read_data
arguments: data_label: D116
type: string
name: read_data
arguments: data_label: D113
type: string

tool: D44: rt

tool: D177: Could not open file

tool: D38:  %s  File: %s   Variable: %s 

tool: D134: /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/ws2/src/helper.c

tool: D5: wrong format

tool: D116:  %s  File: %s   Variable: %s  Line: %d

tool: D113: variable not found

assistant: ```c
char *find_string(const char *szFileName, const char *szVarName) {
  int nLine = 0;
  int i;
  FILE *fh = NULL;
  static char szBuffer[1024];
  char *szLine = szBuffer;
  char *szValue = NULL;
  char *szName = NULL;
  fh = fopen(szFileName, "rt");
  if (fh == 0) {
    char szTmp[80];
    if (0)
      sprintf(szTmp, " %s  File: %s   Variable: %s  Line: %d", "Could not open file", szFileName, szVarName, 0);
    else
      sprintf(szTmp, " %s  File: %s   Variable: %s ", "Could not open file", szFileName, szVarName);
    errhandler(106, "/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/ws2/src/helper.c", szTmp);
  };
  while (!feof(fh)) {
    if (fgets(szLine, 1024, fh))
      ;
    ++nLine;
    for (i = 0; i < strlen(szLine); i++)
      if (szLine[i] == '#') {
        szLine[i] = '\0';
        break;
      }
    while (isspace((int)*szLine) && *szLine)
      ++szLine;
    if (strlen(szLine) == 0)
      continue;
    szName = szLine;
    szValue = szLine;
    while ((isalnum((int)*szValue) || *szValue == '_') && *szValue)
      ++szValue;
    if (*szValue == '\n' || strlen(szValue) == 0) {
      char szTmp[80];
      if (nLine)
        sprintf(szTmp, " %s  File: %s   Variable: %s  Line: %d", "wrong format", szFileName, szName, nLine);
      else
        sprintf(szTmp, " %s  File: %s   Variable: %s ", "wrong format", szFileName, szName);
      errhandler(133, "/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/ws2/src/helper.c", szTmp);
    };
    *szValue = 0;
    ++szValue;
    if (strcmp(szVarName, szName))
      continue;
    while (isspace((int)*szValue))
      ++szValue;
    if (*szValue == '\n' || strlen(szValue) == 0) {
      char szTmp[80];
      if (nLine)
        sprintf(szTmp, " %s  File: %s   Variable: %s  Line: %d", "wrong format", szFileName, szName, nLine);
      else
        sprintf(szTmp, " %s  File: %s   Variable: %s ", "wrong format", szFileName, szName);
      errhandler(144, "/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/ws2/src/helper.c", szTmp);
    };
    fclose(fh);
    return szValue;
  }
  {
    char szTmp[80];
    if (nLine)
      sprintf(szTmp, " %s  File: %s   Variable: %s  Line: %d", "variable not found", szFileName, szVarName, nLine);
    else
      sprintf(szTmp, " %s  File: %s   Variable: %s ", "variable not found", szFileName, szVarName);
    errhandler(150, "/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/ws2/src/helper.c", szTmp);
  };
  return NULL;
}
```