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

```asm
<find_string>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  mov    %rsi,%r13
  lea    D25(%rip),%rsi
  push   %r12
  mov    %rdi,%r12
  push   %rbp
  push   %rbx
  sub    $0x78,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x68(%rsp)
  xor    %eax,%eax
  call   <fopen@plt>
  mov    %rax,%rbp
  test   %rax,%rax
  je     L87
L108:
  lea    0x10(%rsp),%rax
  lea    D149(%rip),%r15
  xor    %ebx,%ebx
  mov    %rax,0x8(%rsp)
L187:
  mov    %rbp,%rdi
  call   <feof@plt>
  test   %eax,%eax
  jne    L207
  mov    %rbp,%rdx
  mov    $0x400,%esi
  mov    %r15,%rdi
  add    $0x1,%ebx
  call   <fgets@plt>
  xor    %r14d,%r14d
  jmp    L170
  nopl   0x0(%rax,%rax,1)
L160:
  lea    (%r15,%r14,1),%rax
  add    $0x1,%r14
  cmpb   $0x23,-0x1(%r15,%r14,1)
  je     L134
L170:
  mov    %r15,%rdi
  call   <strlen@plt>
  cmp    %r14d,%eax
  jg     L160
  jmp    L198
  nopl   0x0(%rax,%rax,1)
L33:
  cmpb   $0x0,(%r15)
  je     L267
  add    $0x1,%r15
L198:
  movsbl (%r15),%edi
  call   <isspace@plt>
  test   %rax,%rax
  jne    L33
L267:
  mov    %r15,%rdi
  mov    %r15,%r14
  call   <strlen@plt>
  test   %eax,%eax
  je     L187
  jmp    L102
  nopl   0x0(%rax)
L88:
  movzbl (%r14),%eax
  cmp    $0x5f,%al
  jne    L103
L96:
  add    $0x1,%r14
L102:
  movsbl (%r14),%edi
  call   <isalnum@plt>
  test   %rax,%rax
  je     L88
  cmpb   $0x0,(%r14)
  jne    L96
L215:
  mov    %r14,%rdi
  call   <strlen@plt>
  test   %eax,%eax
  je     L135
L159:
  movb   $0x0,(%r14)
  mov    %r15,%rsi
  mov    %r13,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L187
  lea    0x1(%r14),%r13
  jmp    L261
  nopw   0x0(%rax,%rax,1)
L18:
  add    $0x1,%r13
L261:
  movsbl 0x0(%r13),%edi
  call   <isspace@plt>
  test   %rax,%rax
  jne    L18
  cmpb   $0xa,0x0(%r13)
  je     L151
  mov    %r13,%rdi
  call   <strlen@plt>
  test   %eax,%eax
  je     L151
L48:
  mov    %rbp,%rdi
  call   <fclose@plt>
L22:
  mov    0x68(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L157
  add    $0x78,%rsp
  mov    %r13,%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L103:
  cmp    $0xa,%al
  jne    L215
L135:
  mov    0x8(%rsp),%rdi
  mov    %ebx,%r9d
  mov    %r15,%r8
  mov    %r12,%rcx
  lea    D73(%rip),%rdx
  lea    D38(%rip),%rsi
  xor    %eax,%eax
  call   <sprintf@plt>
  mov    0x8(%rsp),%rdx
  mov    $0x85,%edi
  lea    D121(%rip),%rsi
  call   <errhandler@plt>
  jmp    L159
  cs nopw 0x0(%rax,%rax,1)
L151:
  lea    0x10(%rsp),%r14
  mov    %ebx,%r9d
  mov    %r15,%r8
  mov    %r12,%rcx
  mov    %r14,%rdi
  lea    D73(%rip),%rdx
  lea    D38(%rip),%rsi
  xor    %eax,%eax
  call   <sprintf@plt>
  mov    %r14,%rdx
  mov    $0x90,%edi
  lea    D121(%rip),%rsi
  call   <errhandler@plt>
  jmp    L48
  nop
L134:
  movb   $0x0,(%rax)
  jmp    L198
L87:
  lea    0x10(%rsp),%r14
  mov    %r13,%r8
  mov    %r12,%rcx
  xor    %eax,%eax
  mov    %r14,%rdi
  lea    D141(%rip),%rdx
  lea    D33(%rip),%rsi
  call   <sprintf@plt>
  mov    %r14,%rdx
  mov    $0x6a,%edi
  lea    D121(%rip),%rsi
  call   <errhandler@plt>
  jmp    L108
L207:
  lea    0x10(%rsp),%r14
  test   %ebx,%ebx
  je     L226
  mov    %ebx,%r9d
  mov    %r13,%r8
  mov    %r12,%rcx
  mov    %r14,%rdi
  lea    D28(%rip),%rdx
  lea    D38(%rip),%rsi
  xor    %eax,%eax
  call   <sprintf@plt>
L59:
  mov    %r14,%rdx
  lea    D121(%rip),%rsi
  mov    $0x96,%edi
  xor    %r13d,%r13d
  call   <errhandler@plt>
  jmp    L22
L226:
  mov    %r13,%r8
  mov    %r12,%rcx
  lea    D28(%rip),%rdx
  mov    %r14,%rdi
  lea    D33(%rip),%rsi
  xor    %eax,%eax
  call   <sprintf@plt>
  jmp    L59
L157:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D25
type_infered: string
name: extract_symbolic_data
arguments: data_label: D73
type_infered: string
name: extract_symbolic_data
arguments: data_label: D38
type_infered: string
name: extract_symbolic_data
arguments: data_label: D121
type_infered: string
name: extract_symbolic_data
arguments: data_label: D141
type_infered: string
name: extract_symbolic_data
arguments: data_label: D33
type_infered: string
name: extract_symbolic_data
arguments: data_label: D28
type_infered: string

tool: D25: rt

tool: D73: wrong format

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

tool: D121: /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: D141: Could not open file

tool: D33:  %s  File: %s   Variable: %s 

tool: D28: 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;
}
```