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    D94(%rip),%rax
  mov    %rax,-0x80(%rbp)
  movq   $0x0,-0x78(%rbp)
  movq   $0x0,-0x68(%rbp)
  mov    -0x98(%rbp),%rax
  lea    D123(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <fopen@plt>
  mov    %rax,-0x70(%rbp)
  cmpq   $0x0,-0x70(%rbp)
  jne    L14
  mov    -0xa0(%rbp),%rcx
  mov    -0x98(%rbp),%rdx
  lea    -0x60(%rbp),%rax
  mov    %rcx,%r8
  mov    %rdx,%rcx
  lea    D173(%rip),%rdx
  lea    D119(%rip),%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  lea    -0x60(%rbp),%rax
  mov    %rax,%rdx
  lea    D153(%rip),%rax
  mov    %rax,%rsi
  mov    $0x77,%edi
  call   <errhandler@plt>
  jmp    L14
L103:
  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    L169
L21:
  mov    -0x84(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x80(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x23,%al
  jne    L146
  mov    -0x84(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x80(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
  jmp    L166
L146:
  addl   $0x1,-0x84(%rbp)
L169:
  mov    -0x80(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  cmp    %eax,-0x84(%rbp)
  jl     L21
L166:
  jmp    L5
L259:
  addq   $0x1,-0x80(%rbp)
L5:
  mov    -0x80(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isspace@plt>
  test   %rax,%rax
  je     L102
  mov    -0x80(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L259
L102:
  mov    -0x80(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  test   %eax,%eax
  jne    L220
  jmp    L14
L220:
  mov    -0x80(%rbp),%rax
  mov    %rax,-0x68(%rbp)
  mov    -0x80(%rbp),%rax
  mov    %rax,-0x78(%rbp)
  jmp    L252
L292:
  addq   $0x1,-0x78(%rbp)
L252:
  mov    -0x78(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isalnum@plt>
  test   %rax,%rax
  jne    L286
  mov    -0x78(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x5f,%al
  jne    L173
L286:
  mov    -0x78(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L292
L173:
  mov    -0x78(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0xa,%al
  je     L4
  mov    -0x78(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  test   %eax,%eax
  jne    L298
L4:
  cmpl   $0x0,-0x88(%rbp)
  je     L105
  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    D80(%rip),%rdx
  lea    D190(%rip),%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  jmp    L290
L105:
  mov    -0x68(%rbp),%rcx
  mov    -0x98(%rbp),%rdx
  lea    -0x60(%rbp),%rax
  mov    %rcx,%r8
  mov    %rdx,%rcx
  lea    D80(%rip),%rdx
  lea    D119(%rip),%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
L290:
  lea    -0x60(%rbp),%rax
  mov    %rax,%rdx
  lea    D153(%rip),%rax
  mov    %rax,%rsi
  mov    $0x92,%edi
  call   <errhandler@plt>
L298:
  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     L185
  jmp    L14
L58:
  addq   $0x1,-0x78(%rbp)
L185:
  mov    -0x78(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isspace@plt>
  test   %rax,%rax
  jne    L58
  mov    -0x78(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0xa,%al
  je     L167
  mov    -0x78(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  test   %eax,%eax
  jne    L24
L167:
  cmpl   $0x0,-0x88(%rbp)
  je     L11
  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    D80(%rip),%rdx
  lea    D190(%rip),%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  jmp    L267
L11:
  mov    -0x68(%rbp),%rcx
  mov    -0x98(%rbp),%rdx
  lea    -0x60(%rbp),%rax
  mov    %rcx,%r8
  mov    %rdx,%rcx
  lea    D80(%rip),%rdx
  lea    D119(%rip),%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
L267:
  lea    -0x60(%rbp),%rax
  mov    %rax,%rdx
  lea    D153(%rip),%rax
  mov    %rax,%rsi
  mov    $0x9d,%edi
  call   <errhandler@plt>
L24:
  mov    -0x70(%rbp),%rax
  mov    %rax,%rdi
  call   <fclose@plt>
  mov    -0x78(%rbp),%rax
  jmp    L107
L14:
  mov    -0x70(%rbp),%rax
  mov    %rax,%rdi
  call   <feof@plt>
  test   %eax,%eax
  je     L103
  cmpl   $0x0,-0x88(%rbp)
  je     L141
  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    D7(%rip),%rdx
  lea    D190(%rip),%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  jmp    L218
L141:
  mov    -0xa0(%rbp),%rcx
  mov    -0x98(%rbp),%rdx
  lea    -0x60(%rbp),%rax
  mov    %rcx,%r8
  mov    %rdx,%rcx
  lea    D7(%rip),%rdx
  lea    D119(%rip),%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
L218:
  lea    -0x60(%rbp),%rax
  mov    %rax,%rdx
  lea    D153(%rip),%rax
  mov    %rax,%rsi
  mov    $0xa3,%edi
  call   <errhandler@plt>
  mov    $0x0,%eax
L107:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L37
  call   <__stack_chk_fail@plt>
L37:
  leave
  ret
```

tool_calls: name: parse_data
arguments: data_tag: D123
type: string
name: parse_data
arguments: data_tag: D173
type: string
name: parse_data
arguments: data_tag: D119
type: string
name: parse_data
arguments: data_tag: D153
type: string
name: parse_data
arguments: data_tag: D80
type: string
name: parse_data
arguments: data_tag: D190
type: string
name: parse_data
arguments: data_tag: D7
type: string

tool: D123: rt

tool: D173: Could not open file

tool: D119:  %s  File: %s   Variable: %s 

tool: D153: /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: D80: wrong format

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

tool: D7: 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(119, "/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);
  };
  while (!feof(fh)) {
    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(146, "/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);
    };
    *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(157, "/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);
    };
    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(163, "/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);
  };
  return NULL;
}
```