user: Converte this assembly snippet into its equivalent C code:

```asm
<_>:
  endbr64
  push   %r12
  push   %rbx
  mov    %edi,%ebx
  sub    $0x8,%rsp
  mov    0x90218,%r12d
  cmp    $0x1,%esi
  jne    L94
  mov    0x901f0,%r12d
  add    %r12d,%ebx
  mov    %ebx,0x901f0
L22:
  add    $0x8,%rsp
  mov    %r12d,%eax
  pop    %rbx
  pop    %r12
  ret
  nopw   0x0(%rax,%rax,1)
L94:
  lea    -0x2(%rsi),%eax
  mov    %esi,%ecx
  test   %eax,%eax
  jne    L7
  lea    0x7c(%rdi),%eax
  shl    $0x3,%r12d
  add    $0x86,%ebx
  cltq
  movslq %ebx,%rbx
  mov    (%rax),%edx
  lea    0x7d(%rdi),%eax
  cltq
  mov    (%rax),%eax
  and    $0x7,%edx
  or     %r12d,%edx
  mov    (%rbx),%r12d
  shl    $0x3,%edx
  and    $0x7,%eax
  or     %edx,%eax
  lea    0x7e(%rdi),%edx
  movslq %edx,%rdx
  shl    $0x3,%eax
  mov    (%rdx),%edx
  and    $0x7,%edx
  or     %eax,%edx
  lea    0x7f(%rdi),%eax
  cltq
  shl    $0x3,%edx
  mov    (%rax),%eax
  and    $0x7,%eax
  or     %edx,%eax
  lea    0x80(%rdi),%edx
  movslq %edx,%rdx
  shl    $0x3,%eax
  mov    (%rdx),%edx
  and    $0x7,%edx
  or     %eax,%edx
  lea    0x81(%rdi),%eax
  cltq
  shl    $0x3,%edx
  mov    (%rax),%eax
  and    $0x7,%eax
  or     %edx,%eax
  lea    0x82(%rdi),%edx
  movslq %edx,%rdx
  shl    $0x3,%eax
  mov    (%rdx),%edx
  and    $0x7,%edx
  or     %eax,%edx
  lea    0x83(%rdi),%eax
  cltq
  shl    $0x3,%edx
  mov    (%rax),%eax
  and    $0x7,%eax
  or     %edx,%eax
  lea    0x84(%rdi),%edx
  movslq %edx,%rdx
  shl    $0x3,%eax
  mov    (%rdx),%edx
  and    $0x7,%edx
  or     %eax,%edx
  lea    0x85(%rdi),%eax
  cltq
  shl    $0x3,%edx
  mov    (%rax),%eax
  and    $0x7,%eax
  or     %edx,%eax
  shl    $0x3,%eax
  and    $0x7,%r12d
  add    $0x8,%rsp
  or     %eax,%r12d
  pop    %rbx
  mov    %r12d,%eax
  pop    %r12
  ret
  nopl   0x0(%rax)
L7:
  jle    L22
  movslq %r12d,%r8
  movzbl (%r8),%edx
  test   %dl,%dl
  je     L24
  lea    0x0(,%r12,8),%esi
L151:
  xor    %edi,%edi
L79:
  lea    (%rbx,%rdi,1),%eax
  cltq
  cmp    %dl,(%rax)
  jne    L103
  add    $0x1,%edi
  lea    (%r12,%rdi,1),%eax
  cltq
  movzbl (%rax),%edx
  test   %dl,%dl
  jne    L79
L24:
  cmp    $0x3,%ecx
  jne    L22
L142:
  mov    (%r8),%eax
  test   %eax,%eax
  je     L22
  xor    %edx,%edx
  mov    $0x1,%esi
  mov    $0xa4,%edi
  call   <_>
  mov    0x901f4,%edx
  mov    $0x40,%esi
  movslq %eax,%rdi
  lea    0x8(%rdi),%eax
  mov    %rdi,%r9
  cltq
  mov    %edx,(%rax)
  lea    0x4(%rdi),%eax
  lea    0x40(%rdi),%edx
  cltq
  mov    %edi,0x901f4
  mov    %edx,(%rax)
  movslq %ebx,%rax
  lea    0x60(%rax),%r8
  sub    %rax,%rsi
  nopl   0x0(%rax)
L108:
  mov    (%rax),%ecx
  lea    (%rax,%rsi,1),%rdx
  add    $0x1,%rax
  mov    %ecx,(%rdx,%rdi,1)
  cmp    %rax,%r8
  jne    L108
  lea    0x220(%r12),%eax
  lea    0x200(%r12),%edx
  cltq
  lea    0x218(%r12),%ecx
  mov    (%rax),%esi
  movslq %ecx,%rcx
  add    %edx,%esi
  mov    %esi,%eax
  mov    (%rcx),%esi
  lea    0xc(%rax),%ecx
  movslq %ecx,%rcx
  cmp    (%rcx),%esi
  jne    L152
L147:
  add    $0x10,%eax
  mov    $0x1,%esi
  cltq
  add    (%rax),%edx
  movslq %edx,%rax
  xor    %edx,%edx
  mov    %eax,(%rdi)
  mov    %r9d,%edi
  call   *%rax
  jmp    L22
  nopw   0x0(%rax,%rax,1)
L103:
  lea    0x7c(%r12),%eax
  lea    0x7d(%r12),%edx
  cltq
  movslq %edx,%rdx
  mov    (%rax),%eax
  mov    (%rdx),%edx
  and    $0x7,%eax
  and    $0x7,%edx
  or     %esi,%eax
  shl    $0x3,%eax
  or     %eax,%edx
  lea    0x7e(%r12),%eax
  cltq
  shl    $0x3,%edx
  mov    (%rax),%eax
  and    $0x7,%eax
  or     %edx,%eax
  lea    0x7f(%r12),%edx
  movslq %edx,%rdx
  shl    $0x3,%eax
  mov    (%rdx),%edx
  and    $0x7,%edx
  or     %eax,%edx
  lea    0x80(%r12),%eax
  cltq
  shl    $0x3,%edx
  mov    (%rax),%eax
  and    $0x7,%eax
  or     %edx,%eax
  lea    0x81(%r12),%edx
  movslq %edx,%rdx
  shl    $0x3,%eax
  mov    (%rdx),%edx
  and    $0x7,%edx
  or     %eax,%edx
  lea    0x82(%r12),%eax
  cltq
  shl    $0x3,%edx
  mov    (%rax),%eax
  and    $0x7,%eax
  or     %edx,%eax
  lea    0x83(%r12),%edx
  movslq %edx,%rdx
  shl    $0x3,%eax
  mov    (%rdx),%edx
  and    $0x7,%edx
  or     %eax,%edx
  lea    0x84(%r12),%eax
  cltq
  shl    $0x3,%edx
  mov    (%rax),%eax
  and    $0x7,%eax
  or     %edx,%eax
  lea    0x85(%r12),%edx
  movslq %edx,%rdx
  shl    $0x3,%eax
  mov    (%rdx),%edx
  and    $0x7,%edx
  or     %eax,%edx
  lea    0x86(%r12),%eax
  cltq
  shl    $0x3,%edx
  mov    (%rax),%eax
  and    $0x7,%eax
  or     %edx,%eax
  add    $0x3ff,%eax
  and    $0xfffffe00,%eax
  add    %eax,%r12d
  movslq %r12d,%r8
  movzbl (%r8),%edx
  test   %dl,%dl
  jne    L151
  cmp    $0x3,%ecx
  jne    L22
  jmp    L142
L152:
  add    $0x28,%eax
  movslq %eax,%rcx
L76:
  mov    0xc(%rcx),%r8d
  mov    %ecx,%eax
  add    $0x28,%rcx
  cmp    %esi,%r8d
  je     L147
  jmp    L76
```

assistant: ```c
int _(int t, int q, int d) {
  int i = 0, j = 0, n, D = *((int *)(0x90200 + 24));
  if (!--q) {
    *((int *)(0x90200 - 16)) += t;
    D = *((int *)(0x90200 - 16)) - t;
  }
  if (!--q) {
    for (i = 124; i < 135; i++)
      D = D << 3 | *((int *)(t + i)) & 7;
  }
  if (q > 0) {
    for (; n = *((signed char *)(D + i)); i++)
      if (n - *((signed char *)(t + i))) {
        D += _(D, 2, 0) + 1023 & ~511;
        i = ~0;
      }
    if (!--q) {
      if (*((int *)(D))) {
        n = _(164, 1, 0);
        *((int *)(n + 8)) = *((int *)(0x90200 - 12));
        *((int *)(0x90200 - 12)) = n;
        *((int *)(n + 4)) = i = n + 64;
        for (; j < 96; j++)
          *((int *)(i + j)) = *((int *)(t + j));
        i = D + 512;
        j = i + *((int *)(i + 32));
        for (; *((int *)(j + 12)) != *((int *)(i + 24)); j += 40)
          continue;
        ((int (*)(int t, int q, int d))(*((int *)(n)) = *((int *)(j + 16)) + i))(n, 1, 0);
      }
    }
  }
  return D;
}
```