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

```asm
<searchwhatis>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x150,%rsp
  mov    %rdi,-0x138(%rbp)
  mov    %rsi,-0x140(%rbp)
  mov    %rdx,-0x148(%rbp)
  mov    %rcx,-0x150(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0x12c(%rbp)
L32:
  movl   $0x1,-0x124(%rbp)
  lea    D1(%rip),%rax
  mov    %rax,-0x120(%rbp)
  mov    -0x138(%rbp),%rax
  mov    %rax,%rdi
  call   <fgetc@plt>
  mov    %eax,-0x128(%rbp)
L289:
  lea    -0x110(%rbp),%rax
  mov    %rax,-0x118(%rbp)
  jmp    L137
L226:
  mov    -0x138(%rbp),%rax
  mov    %rax,%rdi
  call   <fgetc@plt>
  mov    %eax,-0x128(%rbp)
L137:
  cmpl   $0x20,-0x128(%rbp)
  je     L226
  cmpl   $0x9,-0x128(%rbp)
  je     L226
  cmpl   $0x2c,-0x128(%rbp)
  je     L226
  jmp    L100
L105:
  lea    -0x110(%rbp),%rax
  add    $0xff,%rax
  cmp    %rax,-0x118(%rbp)
  jae    L10
  mov    -0x118(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x118(%rbp)
  mov    -0x128(%rbp),%edx
  mov    %dl,(%rax)
L10:
  mov    -0x138(%rbp),%rax
  mov    %rax,%rdi
  call   <getc@plt>
  mov    %eax,-0x128(%rbp)
L100:
  cmpl   $0x20,-0x128(%rbp)
  je     L302
  cmpl   $0x9,-0x128(%rbp)
  je     L302
  cmpl   $0x2c,-0x128(%rbp)
  je     L302
  cmpl   $0x28,-0x128(%rbp)
  je     L302
  cmpl   $0xa,-0x128(%rbp)
  je     L302
  mov    D51(%rip),%rax
  mov    (%rax),%eax
  cmp    %eax,-0x128(%rbp)
  jne    L105
L302:
  mov    -0x118(%rbp),%rax
  movb   $0x0,(%rax)
  cmpl   $0x0,-0x124(%rbp)
  je     L317
  lea    -0x110(%rbp),%rax
  mov    %rax,%rsi
  lea    D113(%rip),%rax
  mov    %rax,%rdi
  call   <strcpy@plt>
  movl   $0x0,-0x124(%rbp)
L317:
  mov    -0x140(%rbp),%rdx
  lea    -0x110(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L194
  movl   $0x1,-0x12c(%rbp)
L194:
  cmpl   $0x28,-0x128(%rbp)
  je     L26
  cmpl   $0xa,-0x128(%rbp)
  je     L26
  mov    D51(%rip),%rax
  mov    (%rax),%eax
  cmp    %eax,-0x128(%rbp)
  jne    L289
L26:
  cmpl   $0x28,-0x128(%rbp)
  je     L250
  movl   $0x0,-0x12c(%rbp)
  jmp    L206
L141:
  cmpl   $0x40,-0x128(%rbp)
  jle    L186
  cmpl   $0x5a,-0x128(%rbp)
  jg     L186
  addl   $0x20,-0x128(%rbp)
L186:
  lea    D77(%rip),%rax
  cmp    %rax,-0x120(%rbp)
  jae    L250
  mov    -0x120(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x120(%rbp)
  mov    -0x128(%rbp),%edx
  mov    %dl,(%rax)
L250:
  mov    -0x138(%rbp),%rax
  mov    %rax,%rdi
  call   <fgetc@plt>
  mov    %eax,-0x128(%rbp)
  cmpl   $0x29,-0x128(%rbp)
  je     L281
  cmpl   $0xa,-0x128(%rbp)
  je     L281
  mov    D51(%rip),%rax
  mov    (%rax),%eax
  cmp    %eax,-0x128(%rbp)
  jne    L141
L281:
  mov    -0x120(%rbp),%rax
  movb   $0x0,(%rax)
  cmpl   $0x29,-0x128(%rbp)
  jne    L76
  lea    D1(%rip),%rax
  cmp    %rax,-0x120(%rbp)
  jne    L206
L76:
  movl   $0x0,-0x12c(%rbp)
  jmp    L206
L251:
  mov    -0x138(%rbp),%rax
  mov    %rax,%rdi
  call   <getc@plt>
  mov    %eax,-0x128(%rbp)
L206:
  mov    D51(%rip),%rax
  mov    (%rax),%eax
  cmp    %eax,-0x128(%rbp)
  je     L124
  cmpl   $0xa,-0x128(%rbp)
  jne    L251
L124:
  cmpl   $0x0,-0x12c(%rbp)
  jne    L166
  mov    D51(%rip),%rax
  mov    (%rax),%eax
  cmp    %eax,-0x128(%rbp)
  jne    L32
L166:
  cmpl   $0x0,-0x12c(%rbp)
  je     L282
  mov    -0x148(%rbp),%rax
  lea    D113(%rip),%rdx
  mov    %rdx,(%rax)
  mov    -0x150(%rbp),%rax
  lea    D1(%rip),%rdx
  mov    %rdx,(%rax)
L282:
  mov    D51(%rip),%rax
  mov    (%rax),%eax
  cmp    %eax,-0x128(%rbp)
  je     L275
  mov    -0x12c(%rbp),%eax
  jmp    L311
L275:
  mov    $0xffffffff,%eax
L311:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L38
  call   <__stack_chk_fail@plt>
L38:
  leave
  ret
```

assistant: ```c
int searchwhatis(FILE *wf, char *title, char **ppage, char **psection) {
  static char page[256], section[32];
  char alias[256];
  int found = 0;
  int c;
  do {
    int first = 1;
    char *pc = section;
    c = fgetc(wf);
    do {
      char *pa = alias;
      while (c == ' ' || c == '\t' || c == ',')
        c = fgetc(wf);
      while (c != ' ' && c != '\t' && c != ',' && c != '(' && c != '\n' && c != EOF) {
        if (pa < ((alias) + (sizeof(alias) / sizeof((alias)[0]))) - 1)
          *pa++ = c;
        c = getc(wf);
      }
      *pa = 0;
      if (first) {
        strcpy(page, alias);
        first = 0;
      }
      if (strcmp(alias, title) == 0)
        found = 1;
    } while (c != '(' && c != '\n' && c != EOF);
    if (c != '(') {
      found = 0;
    } else {
      while ((c = fgetc(wf)) != ')' && c != '\n' && c != EOF) {
        if ('A' <= c && c <= 'Z')
          c = c - 'A' + 'a';
        if (pc < ((section) + (sizeof(section) / sizeof((section)[0]))) - 1)
          *pc++ = c;
      }
      *pc = 0;
      if (c != ')' || pc == section)
        found = 0;
    }
    while (c != EOF && c != '\n')
      c = getc(wf);
  } while (!found && c != EOF);
  if (found) {
    *ppage = page;
    *psection = section;
  }
  return c == EOF ? -1 : found;
}
```