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

```asm
<find>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x68,%rsp
  mov    %rdi,0x8(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x58(%rsp)
  xor    %eax,%eax
  movsbl (%rdi),%eax
  test   %al,%al
  je     L25
  lea    0x1(%rdi),%rdx
  xor    %ecx,%ecx
  nopl   0x0(%rax,%rax,1)
L99:
  add    $0x1,%rdx
  add    %eax,%ecx
  movsbl -0x1(%rdx),%eax
  test   %al,%al
  jne    L99
  movslq %ecx,%rbp
  mov    %ecx,%eax
  lea    D59(%rip),%rsi
  imul   $0x66666667,%rbp,%rbp
  sar    $0x1f,%eax
  lea    D27(%rip),%rdi
  sar    $0x22,%rbp
  sub    %eax,%ebp
  lea    0x0(%rbp,%rbp,4),%eax
  add    %eax,%eax
  sub    %eax,%ecx
  movslq %ecx,%rbx
  call   <fopen@plt>
  imul   $0x2e,%rbx,%rsi
  xor    %edx,%edx
  mov    %rax,%rdi
  mov    %rax,%r12
  call   <fseek@plt>
  cmp    $0xffffffff,%ebx
  je     L18
L88:
  lea    0x30(%rsp),%rax
  mov    %rax,0x10(%rsp)
  lea    0x24(%rsp),%rax
  mov    %rax,0x18(%rsp)
L33:
  lea    (%rbx,%rbx,8),%rax
  xor    %edx,%edx
  mov    %r12,%rdi
  lea    (%rbx,%rax,4),%rsi
  shl    $0x2,%rsi
  call   <fseek@plt>
  mov    0x18(%rsp),%rdx
  mov    %r12,%rdi
  xor    %eax,%eax
  mov    0x10(%rsp),%rcx
  lea    D9(%rip),%rsi
  call   <fscanf@plt>
  mov    0x24(%rsp),%edx
  test   %edx,%edx
  jle    L42
  xor    %ebx,%ebx
  lea    0x2c(%rsp),%r15
  lea    0x40(%rsp),%r14
  lea    0x36(%rsp),%rbp
  lea    0x28(%rsp),%r13
  jmp    L19
  nopl   0x0(%rax)
L119:
  add    $0x1,%ebx
  cmp    %ebx,0x24(%rsp)
  jle    L42
L19:
  mov    %r12,%rdi
  call   <ftell@plt>
  mov    %r15,%r9
  mov    %r14,%r8
  mov    %rbp,%rcx
  mov    %eax,0x4(%rsp)
  mov    %r13,%rdx
  lea    D52(%rip),%rsi
  mov    %r12,%rdi
  xor    %eax,%eax
  call   <fscanf@plt>
  mov    0x28(%rsp),%eax
  test   %eax,%eax
  jne    L119
  mov    0x8(%rsp),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L119
  mov    0x4(%rsp),%esi
  xor    %edx,%edx
  mov    %r12,%rdi
  add    $0x2,%esi
  movslq %esi,%rsi
  call   <fseek@plt>
L78:
  mov    0x58(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L43
  add    $0x68,%rsp
  mov    %r12,%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopw   0x0(%rax,%rax,1)
L42:
  movslq 0x30(%rsp),%rbx
  cmp    $0xffffffff,%ebx
  jne    L33
L18:
  mov    %r12,%rdi
  xor    %r12d,%r12d
  call   <fclose@plt>
  jmp    L78
L25:
  lea    D59(%rip),%rsi
  lea    D27(%rip),%rdi
  xor    %ebx,%ebx
  call   <fopen@plt>
  xor    %edx,%edx
  xor    %esi,%esi
  mov    %rax,%rdi
  mov    %rax,%r12
  call   <fseek@plt>
  jmp    L88
L43:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: tag: D59
type: string
name: unpack_data
arguments: tag: D27
type: string
name: unpack_data
arguments: tag: D9
type: string
name: unpack_data
arguments: tag: D52
type: string

tool: D59: r+

tool: D27: ../create/emp

tool: D9: %d%d

tool: D52: %d%s%s%f

assistant: ```c
FILE *find(char *key) {
  FILE *fp;
  int x, h, nrec, i, j;
  long off, offr;
  int del;
  char ssn[10], name[21];
  float sal;
  int ovptr;
  for (i = x = 0; key[i] != 0; i++) {
    x = x + key[i];
  }
  h = x % 10;
  off = h * (44 + 2L);
  fp = fopen("../create/emp", "r+");
  fseek(fp, off, 0);
  for (i = h; i != -1; i = ovptr) {
    off = i * (10L + 3 * (3 + 10 + 21 + 10 + 2));
    fseek(fp, off, 0);
    fscanf(fp, "%d%d", &nrec, &ovptr);
    for (j = 0; j < nrec; j++) {
      offr = ftell(fp) + 2;
      fscanf(fp, "%d%s%s%f", &del, ssn, name, &sal);
      if ((del == 0) && (strcmp(ssn, key) == 0)) {
        fseek(fp, offr, 0);
        return fp;
      }
    }
  }
  fclose(fp);
  return 0;
}
```