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

```asm
<find_index>:
  endbr64
  push   %r12
  push   %rbp
  mov    %rdi,%rbp
  lea    D145(%rip),%rdi
  push   %rbx
  xor    %ebx,%ebx
  sub    $0xa0,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x98(%rsp)
  lea    D96(%rip),%rax
  mov    %rax,0x8(%rsp)
  lea    D1(%rip),%rax
  mov    %rax,0x10(%rsp)
  lea    D33(%rip),%rax
  mov    %rax,0x18(%rsp)
  lea    D162(%rip),%rax
  mov    %rax,0x20(%rsp)
  lea    D77(%rip),%rax
  mov    %rax,0x28(%rsp)
  lea    D106(%rip),%rax
  mov    %rax,0x30(%rsp)
  lea    D152(%rip),%rax
  mov    %rax,0x38(%rsp)
  lea    D119(%rip),%rax
  mov    %rax,0x40(%rsp)
  lea    D127(%rip),%rax
  mov    %rax,0x48(%rsp)
  lea    D118(%rip),%rax
  mov    %rax,0x50(%rsp)
  lea    D43(%rip),%rax
  mov    %rax,0x58(%rsp)
  lea    D123(%rip),%rax
  mov    %rax,0x60(%rsp)
  lea    D86(%rip),%rax
  mov    %rax,0x68(%rsp)
  lea    D26(%rip),%rax
  mov    %rax,0x70(%rsp)
  lea    D136(%rip),%rax
  mov    %rax,0x78(%rsp)
  lea    D159(%rip),%rax
  mov    %rax,0x80(%rsp)
  lea    D49(%rip),%rax
  mov    %rax,0x88(%rsp)
  lea    D27(%rip),%rax
  mov    %rax,0x90(%rsp)
  jmp    L35
  nop
L44:
  add    $0x1,%rbx
  cmp    $0x13,%rbx
  je     L38
  mov    (%rsp,%rbx,8),%rdi
L35:
  mov    %rbp,%rsi
  mov    %ebx,%r12d
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L44
L49:
  mov    0x98(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L9
  add    $0xa0,%rsp
  mov    %r12d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
L38:
  mov    $0xffffffff,%r12d
  jmp    L49
L9:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: tag: D145
type: string
name: unpack_data
arguments: tag: D96
type: string
name: unpack_data
arguments: tag: D1
type: string
name: unpack_data
arguments: tag: D33
type: string
name: unpack_data
arguments: tag: D162
type: string
name: unpack_data
arguments: tag: D77
type: string
name: unpack_data
arguments: tag: D106
type: string
name: unpack_data
arguments: tag: D152
type: string
name: unpack_data
arguments: tag: D119
type: string
name: unpack_data
arguments: tag: D127
type: string
name: unpack_data
arguments: tag: D118
type: string
name: unpack_data
arguments: tag: D43
type: string
name: unpack_data
arguments: tag: D123
type: string
name: unpack_data
arguments: tag: D86
type: string
name: unpack_data
arguments: tag: D26
type: string
name: unpack_data
arguments: tag: D136
type: string
name: unpack_data
arguments: tag: D159
type: string
name: unpack_data
arguments: tag: D49
type: string
name: unpack_data
arguments: tag: D27
type: string

tool: D145: pop

tool: D96: no

tool: D1: zip

tool: D33: zotz

tool: D162: tzec

tool: D77: xul

tool: D106: yoxkin

tool: D152: mol

tool: D119: chen

tool: D127: yax

tool: D118: zac

tool: D43: ceh

tool: D123: mac

tool: D86: kankin

tool: D26: muan

tool: D136: pax

tool: D159: koyab

tool: D49: cumhu

tool: D27: uayet

assistant: ```c
int find_index(const char *str) {
  char *haab_mons[19] = {"pop", "no", "zip", "zotz", "tzec", "xul", "yoxkin", "mol", "chen", "yax", "zac", "ceh", "mac", "kankin", "muan", "pax", "koyab", "cumhu", "uayet"};
  int i = 0;
  for (; i < 19; i++)
    if (strcmp(haab_mons[i], str) == 0)
      return i;
  return -1;
}
```