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     L22
  mov    $0x1,%eax
  lea    D14(%rip),%rdx
  cmp    $0x1,%r8d
  jg     L51
  nopl   0x0(%rax)
L88:
  xor    %r12d,%r12d
L137:
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L17
  add    $0x18,%rsp
  mov    %r12d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L45:
  add    $0x1,%rax
  cmp    %eax,%ebp
  jle    L88
L51:
  mov    (%rdx,%rax,4),%ecx
  mov    %eax,%r12d
  test   %ecx,%ecx
  jne    L45
  jmp    L137
  nopl   0x0(%rax)
L22:
  mov    %rdi,%r14
  mov    %r9,%r13
  test   %esi,%esi
  je     L56
  cmp    $0x1,%r8d
  jle    L88
  mov    %edx,%r12d
  mov    $0x1,%ebx
  jmp    L14
  xchg   %ax,%ax
L165:
  add    $0x1,%rbx
  cmp    %ebx,%ebp
  jle    L88
L14:
  mov    0x0(%r13,%rbx,8),%rdi
  mov    %r14,%rsi
  movslq %ebx,%r15
  call   <strcmp@plt>
  lea    0x1(%rbx),%edx
  test   %rax,%rax
  jne    L165
  lea    D14(%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    L52
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L17
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    10b0 <atoi@plt>
  nopw   0x0(%rax,%rax,1)
L56:
  mov    $0x1,%ebx
  cmp    $0x1,%r8d
  jg     L40
  jmp    L88
L112:
  add    $0x1,%rbx
  cmp    %ebx,%ebp
  jle    L88
L40:
  mov    0x0(%r13,%rbx,8),%rdi
  mov    %r14,%rsi
  mov    %ebx,%r12d
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L112
  movslq %ebx,%rax
  lea    D14(%rip),%rdx
  movl   $0x1,(%rdx,%rax,4)
  jmp    L137
  nopw   0x0(%rax,%rax,1)
L52:
  mov    %rsp,%rsi
  mov    $0x10,%edx
  call   <strtoul@plt>
  mov    %eax,%r12d
  jmp    L137
L17:
  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;
  }
}
```