user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<zipmapLookupRaw>:
  endbr64
  push   %r15
  lea    0x1(%rdi),%r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x28,%rsp
  cmpb   $0xff,0x1(%rdi)
  mov    %rdi,0x18(%rsp)
  mov    %rsi,0x8(%rsp)
  mov    %rcx,0x10(%rsp)
  je     L99
  test   %rsi,%rsi
  mov    %edx,%ebx
  setne  %bpl
  xor    %r12d,%r12d
  test   %rcx,%rcx
  je     L152
  nopl   0x0(%rax)
L21:
  mov    %r15,%rdi
  call   <zipmapDecodeLength@plt>
  xor    %edi,%edi
  mov    %eax,%esi
  mov    %eax,%r13d
  call   <zipmapEncodeLength@plt>
  mov    %eax,%r14d
  test   %r12,%r12
  jne    L80
  test   %bpl,%bpl
  je     L80
  cmp    %ebx,%r13d
  je     L45
L113:
  xor    %r12d,%r12d
L94:
  lea    0x0(%r13,%r14,1),%edx
  add    %rdx,%r15
  mov    %r15,%rdi
  call   <zipmapDecodeLength@plt>
  xor    %edi,%edi
  mov    %eax,%esi
  mov    %eax,%r13d
  call   <zipmapEncodeLength@plt>
  mov    %eax,%eax
  lea    (%r15,%rax,1),%rdx
  movzbl (%rdx),%eax
  lea    0x1(%r13,%rax,1),%ecx
  lea    (%rdx,%rcx,1),%r15
  cmpb   $0xff,(%r15)
  jne    L21
L7:
  mov    0x10(%rsp),%rax
  mov    %r15,%rcx
  sub    0x18(%rsp),%rcx
  add    $0x1,%ecx
  mov    %ecx,(%rax)
L25:
  add    $0x28,%rsp
  mov    %r12,%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   (%rax)
L80:
  lea    0x0(%r13,%r14,1),%ebx
L74:
  add    %r15,%rbx
  mov    %rbx,%rdi
  call   <zipmapDecodeLength@plt>
  xor    %edi,%edi
  mov    %eax,%esi
  mov    %eax,%ebp
  call   <zipmapEncodeLength@plt>
  mov    %eax,%eax
  add    %rax,%rbx
  movzbl (%rbx),%eax
  lea    0x1(%rbp,%rax,1),%ecx
  lea    (%rbx,%rcx,1),%r15
  cmpb   $0xff,(%r15)
  je     L7
  mov    %r15,%rdi
  call   <zipmapDecodeLength@plt>
  xor    %edi,%edi
  mov    %eax,%esi
  mov    %eax,%ebx
  call   <zipmapEncodeLength@plt>
  add    %eax,%ebx
  mov    %ebx,%ebx
  jmp    L74
  nopw   0x0(%rax,%rax,1)
L45:
  mov    %eax,%edi
  mov    0x8(%rsp),%rsi
  mov    %ebx,%edx
  mov    %r15,%r12
  add    %r15,%rdi
  call   <memcmp@plt>
  test   %eax,%eax
  je     L94
  jmp    L113
L99:
  xor    %r12d,%r12d
  cmpq   $0x0,0x10(%rsp)
  je     L25
  jmp    L7
  nopl   (%rax)
L152:
  mov    %r15,%r12
  nopl   0x0(%rax,%rax,1)
L44:
  mov    %r12,%rdi
  call   <zipmapDecodeLength@plt>
  xor    %edi,%edi
  mov    %eax,%esi
  mov    %eax,%ebp
  call   <zipmapEncodeLength@plt>
  cmpq   $0x0,0x8(%rsp)
  mov    %eax,%r14d
  je     L192
  cmp    %ebp,%ebx
  je     L105
L198:
  add    %r14d,%ebp
  mov    %ebp,%ebp
  add    %r12,%rbp
  mov    %rbp,%rdi
  call   <zipmapDecodeLength@plt>
  xor    %edi,%edi
  mov    %eax,%esi
  mov    %eax,%r12d
  call   <zipmapEncodeLength@plt>
  mov    %eax,%eax
  add    %rax,%rbp
  movzbl 0x0(%rbp),%eax
  lea    0x1(%r12,%rax,1),%r12d
  add    %rbp,%r12
  cmpb   $0xff,(%r12)
  jne    L44
L155:
  xor    %r12d,%r12d
  jmp    L25
  nopw   0x0(%rax,%rax,1)
L192:
  lea    0x0(%rbp,%rax,1),%ebx
  add    %r12,%rbx
L77:
  mov    %rbx,%rdi
  call   <zipmapDecodeLength@plt>
  xor    %edi,%edi
  mov    %eax,%esi
  mov    %eax,%ebp
  call   <zipmapEncodeLength@plt>
  mov    %eax,%eax
  add    %rax,%rbx
  movzbl (%rbx),%eax
  lea    0x1(%rbp,%rax,1),%eax
  add    %rax,%rbx
  cmpb   $0xff,(%rbx)
  je     L155
  mov    %rbx,%rdi
  call   <zipmapDecodeLength@plt>
  xor    %edi,%edi
  mov    %eax,%esi
  mov    %eax,%ebp
  call   <zipmapEncodeLength@plt>
  add    %ebp,%eax
  mov    %eax,%eax
  add    %rax,%rbx
  jmp    L77
L105:
  mov    %eax,%edi
  mov    0x8(%rsp),%rsi
  mov    %ebx,%edx
  add    %r12,%rdi
  call   <memcmp@plt>
  test   %eax,%eax
  je     L25
  jmp    L198
```

assistant: ```c
unsigned char *zipmapLookupRaw(unsigned char *zm, unsigned char *key, unsigned int klen, unsigned int *totlen) {
  unsigned char *p = zm + 1, *k = NULL;
  unsigned int l, llen;
  while (*p != 255) {
    unsigned char free;
    l = zipmapDecodeLength(p);
    llen = zipmapEncodeLength(NULL, l);
    if (key != NULL && k == NULL && l == klen && !memcmp(p + llen, key, l)) {
      if (totlen != NULL) {
        k = p;
      } else {
        return p;
      }
    }
    p += llen + l;
    l = zipmapDecodeLength(p);
    p += zipmapEncodeLength(NULL, l);
    free = p[0];
    p += l + 1 + free;
  }
  if (totlen != NULL)
    *totlen = (unsigned int)(p - zm) + 1;
  return k;
}
```