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

```asm
<FindOption>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  mov    $0x80,%ebp
  push   %rbx
  sub    $0x18,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  cmp    %ebp,%r8d
  cmovle %r8d,%ebp
  test   %ecx,%ecx
  je     L11
  mov    $0x1,%eax
  lea    D19(%rip),%rdx
  cmp    $0x1,%r8d
  jg     L51
  nopl   0x0(%rax)
L27:
  xor    %r12d,%r12d
L61:
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L156
  add    $0x18,%rsp
  mov    %r12d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L35:
  add    $0x1,%rax
  cmp    %eax,%ebp
  jle    L27
L51:
  mov    (%rdx,%rax,4),%ecx
  mov    %eax,%r12d
  test   %ecx,%ecx
  jne    L35
  jmp    L61
  nopl   0x0(%rax)
L11:
  mov    %rdi,%r14
  mov    %r9,%r13
  test   %esi,%esi
  je     L104
  cmp    $0x1,%r8d
  jle    L27
  mov    %edx,%r12d
  mov    $0x1,%ebx
  jmp    L184
  xchg   %ax,%ax
L30:
  add    $0x1,%rbx
  cmp    %ebx,%ebp
  jle    L27
L184:
  mov    0x0(%r13,%rbx,8),%rdi
  mov    %r14,%rsi
  movslq %ebx,%r15
  call   <strcmp@plt>
  lea    0x1(%rbx),%edx
  test   %rax,%rax
  jne    L30
  lea    D19(%rip),%rax
  movslq %edx,%rdx
  mov    0x8(%r13,%rbx,8),%rdi
  movl   $0x1,(%rax,%r15,4)
  movl   $0x1,(%rax,%rdx,4)
  test   %r12d,%r12d
  jne    L3
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L156
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    10b0 <atoi@plt>
  nopw   0x0(%rax,%rax,1)
L104:
  mov    $0x1,%ebx
  cmp    $0x1,%r8d
  jg     L1
  jmp    L27
L121:
  add    $0x1,%rbx
  cmp    %ebx,%ebp
  jle    L27
L1:
  mov    0x0(%r13,%rbx,8),%rdi
  mov    %r14,%rsi
  mov    %ebx,%r12d
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L121
  movslq %ebx,%rax
  lea    D19(%rip),%rdx
  movl   $0x1,(%rdx,%rax,4)
  jmp    L61
  nopw   0x0(%rax,%rax,1)
L3:
  mov    %rsp,%rsi
  mov    $0x10,%edx
  call   <strtoul@plt>
  mov    %eax,%r12d
  jmp    L61
L156:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int FindOption(char *option, int p, int h, int u, int argc, char **argv) {
  static int t[] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
  int i;
  char *c;
  if (argc > 128)
    argc = 128;
  if (u) {
    for (i = 1; i < argc; i++) {
      if (!t[i])
        return i;
    }
    return 0;
  }
  if (p) {
    for (i = 1; i < argc; i++) {
      if (strcmp(argv[i], option) == 0) {
        if (i >= argc)
          return 0;
        t[i + 1] = t[i] = 1;
        if (!h)
          return atoi(argv[i + 1]);
        else
          return strtoul(argv[i + 1], &c, 16);
      }
    }
    return 0;
  } else {
    for (i = 1; i < argc; i++) {
      if (strcmp(argv[i], option) == 0) {
        t[i] = 1;
        return i;
      }
    }
    return 0;
  }
}
```