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

```asm
<LookupStringInFixedSet>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x48,%rsp
  mov    %rdx,%rax
  mov    %rdx,0x8(%rsp)
  mov    %fs:0x28,%rdx
  mov    %rdx,0x38(%rsp)
  xor    %edx,%edx
  mov    %rdi,0x20(%rsp)
  lea    (%rdi,%rsi,1),%rbx
  mov    %rdi,0x28(%rsp)
  lea    (%rcx,%rax,1),%rbp
  movq   $0x0,0x30(%rsp)
  lea    0x28(%rsp),%r12
  jmp    L185
L183:
  mov    $0x1,%r13d
  jmp    L36
L146:
  mov    $0x1,%r13d
L58:
  mov    0x8(%rsp),%rdx
  cmp    %rbp,%rdx
  je     L36
  mov    0x30(%rsp),%rcx
  mov    %rbx,%rsi
  mov    0x28(%rsp),%rdi
  call   <IsEndCharMatch@plt>
  test   %eax,%eax
  jne    L150
  test   %r13d,%r13d
  jne    L200
L185:
  lea    0x20(%rsp),%rdi
  mov    %r12,%rdx
  mov    %rbx,%rsi
  call   <GetNextOffset@plt>
  test   %rax,%rax
  je     L77
  cmp    %rbp,0x8(%rsp)
  je     L52
  mov    %rbx,%rsi
  mov    0x28(%rsp),%rdi
  call   <IsEOL@plt>
  mov    $0x0,%r13d
  test   %eax,%eax
  jne    L58
  mov    0x30(%rsp),%rcx
  mov    0x8(%rsp),%rdx
  mov    %rbx,%rsi
  mov    0x28(%rsp),%rdi
  call   <IsMatch@plt>
  test   %eax,%eax
  je     L185
  lea    0x30(%rsp),%rdx
  lea    0x8(%rsp),%rsi
  mov    %r12,%rdi
  call   <NextPos@plt>
  lea    0x30(%rsp),%r13
L201:
  mov    %rbx,%rsi
  mov    0x28(%rsp),%rdi
  call   <IsEOL@plt>
  test   %eax,%eax
  jne    L146
  mov    0x8(%rsp),%rdx
  cmp    %rbp,%rdx
  je     L183
  mov    0x30(%rsp),%rcx
  mov    %rbx,%rsi
  mov    0x28(%rsp),%rdi
  call   <IsMatch@plt>
  test   %eax,%eax
  je     L50
  lea    0x8(%rsp),%rsi
  mov    %r13,%rdx
  mov    %r12,%rdi
  call   <NextPos@plt>
  jmp    L201
L57:
  mov    0x1c(%rsp),%eax
  jmp    L6
L150:
  lea    0x30(%rsp),%rdx
  lea    0x8(%rsp),%rsi
  mov    %r12,%rdi
  call   <NextPos@plt>
  mov    0x28(%rsp),%rax
  mov    %rax,0x20(%rsp)
  jmp    L185
L77:
  mov    $0xffffffff,%eax
  jmp    L6
L50:
  mov    $0xffffffff,%eax
  jmp    L6
L200:
  mov    $0xffffffff,%eax
  jmp    L6
L52:
  mov    $0x0,%r13d
L36:
  lea    0x1c(%rsp),%rcx
  mov    0x30(%rsp),%rdx
  mov    %rbx,%rsi
  mov    0x28(%rsp),%rdi
  call   <GetReturnValue@plt>
  test   %rax,%rax
  jne    L57
  test   %r13d,%r13d
  je     L185
  mov    $0xffffffff,%eax
L6:
  mov    0x38(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L98
  add    $0x48,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L98:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int LookupStringInFixedSet(const unsigned char *graph, size_t length, const char *key, size_t key_length) {
  const unsigned char *pos = graph;
  const unsigned char *end = graph + length;
  const unsigned char *offset = pos;
  const char *key_end = key + key_length;
  const char *multibyte_start = 0;
  while (GetNextOffset(&pos, end, &offset)) {
    int did_consume = 0;
    if (key != key_end && !IsEOL(offset, end)) {
      if (!IsMatch(offset, end, key, multibyte_start))
        continue;
      did_consume = 1;
      NextPos(&offset, &key, &multibyte_start);
      while (!IsEOL(offset, end) && key != key_end) {
        if (!IsMatch(offset, end, key, multibyte_start))
          return -1;
        NextPos(&offset, &key, &multibyte_start);
      }
    }
    if (key == key_end) {
      int return_value;
      if (GetReturnValue(offset, end, multibyte_start, &return_value))
        return return_value;
      if (did_consume)
        return -1;
      continue;
    }
    if (!IsEndCharMatch(offset, end, key, multibyte_start)) {
      if (did_consume)
        return -1;
      continue;
    }
    NextPos(&offset, &key, &multibyte_start);
    pos = offset;
  }
  return -1;
}
```