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

```asm
<fn_qtg_0_1_sq_qtg_1_4294967295_al_sq_cl_33_33_36_36_38_46_48_59_61_61_64_91_95_95_97_122_126_126_160_55295_63744_64975_65008_65519_65533_65533_65536_131069_131072_196605_196608_262141_262144_327677_327680_393213_393216_458749_458752_524285_524288_589821_589824_655357_655360_720893_720896_786429_786432_851965_851968_917501_917504_983037_sq_ch_37_qtg_2_2_cl_48_57_65_70_91_91_97_102_qtg_0_4294967295_sq_ch_47_qtg_0_4294967295_al_sq_cl_33_33_36_36_38_46_48_59_61_61_64_91_95_95_97_122_126_126_160_55295_63744_64975_65008_65519_65533_65533_65536_131069_131072_196605_196608_262141_262144_327677_327680_393213_393216_458749_458752_524285_524288_589821_589824_655357_655360_720893_720896_786429_786432_851965_851968_917501_917504_983037_sq_ch_37_qtg_2_2_cl_48_57_65_70_91_91_97_102>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %rdi,-0x18(%rbp)
  movl   $0x0,-0xc(%rbp)
  movl   $0x0,-0x4(%rbp)
  movl   $0x0,-0x8(%rbp)
  jmp    L1
L40:
  mov    -0x4(%rbp),%eax
  add    %eax,-0xc(%rbp)
  addl   $0x1,-0x8(%rbp)
L1:
  cmpl   $0x0,-0x8(%rbp)
  jg     L3
  mov    -0xc(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,%rdi
  call   <fn_sq_qtg_1_4294967295_al_sq_cl_33_33_36_36_38_46_48_59_61_61_64_91_95_95_97_122_126_126_160_55295_63744_64975_65008_65519_65533_65533_65536_131069_131072_196605_196608_262141_262144_327677_327680_393213_393216_458749_458752_524285_524288_589821_589824_655357_655360_720893_720896_786429_786432_851965_851968_917501_917504_983037_sq_ch_37_qtg_2_2_cl_48_57_65_70_91_91_97_102_qtg_0_4294967295_sq_ch_47_qtg_0_4294967295_al_sq_cl_33_33_36_36_38_46_48_59_61_61_64_91_95_95_97_122_126_126_160_55295_63744_64975_65008_65519_65533_65533_65536_131069_131072_196605_196608_262141_262144_327677_327680_393213_393216_458749_458752_524285_524288_589821_589824_655357_655360_720893_720896_786429_786432_851965_851968_917501_917504_983037_sq_ch_37_qtg_2_2_cl_48_57_65_70_91_91_97_102@plt>
  mov    %eax,-0x4(%rbp)
  cmpl   $0xffffffff,-0x4(%rbp)
  jne    L40
L3:
  cmpl   $0x0,-0x8(%rbp)
  js     L6
  mov    -0xc(%rbp),%eax
  jmp    L36
L6:
  mov    $0xffffffff,%eax
L36:
  leave
  ret
```

assistant: ```c
int fn_qtg_0_1_sq_qtg_1_4294967295_al_sq_cl_33_33_36_36_38_46_48_59_61_61_64_91_95_95_97_122_126_126_160_55295_63744_64975_65008_65519_65533_65533_65536_131069_131072_196605_196608_262141_262144_327677_327680_393213_393216_458749_458752_524285_524288_589821_589824_655357_655360_720893_720896_786429_786432_851965_851968_917501_917504_983037_sq_ch_37_qtg_2_2_cl_48_57_65_70_91_91_97_102_qtg_0_4294967295_sq_ch_47_qtg_0_4294967295_al_sq_cl_33_33_36_36_38_46_48_59_61_61_64_91_95_95_97_122_126_126_160_55295_63744_64975_65008_65519_65533_65533_65536_131069_131072_196605_196608_262141_262144_327677_327680_393213_393216_458749_458752_524285_524288_589821_589824_655357_655360_720893_720896_786429_786432_851965_851968_917501_917504_983037_sq_ch_37_qtg_2_2_cl_48_57_65_70_91_91_97_102(const char *text) {
  int pos = 0, p = 0, count = 0;
  while (count < 1 && (p = fn_sq_qtg_1_4294967295_al_sq_cl_33_33_36_36_38_46_48_59_61_61_64_91_95_95_97_122_126_126_160_55295_63744_64975_65008_65519_65533_65533_65536_131069_131072_196605_196608_262141_262144_327677_327680_393213_393216_458749_458752_524285_524288_589821_589824_655357_655360_720893_720896_786429_786432_851965_851968_917501_917504_983037_sq_ch_37_qtg_2_2_cl_48_57_65_70_91_91_97_102_qtg_0_4294967295_sq_ch_47_qtg_0_4294967295_al_sq_cl_33_33_36_36_38_46_48_59_61_61_64_91_95_95_97_122_126_126_160_55295_63744_64975_65008_65519_65533_65533_65536_131069_131072_196605_196608_262141_262144_327677_327680_393213_393216_458749_458752_524285_524288_589821_589824_655357_655360_720893_720896_786429_786432_851965_851968_917501_917504_983037_sq_ch_37_qtg_2_2_cl_48_57_65_70_91_91_97_102(text + pos)) != -1) {
    pos += p;
    count++;
  }
  if (count >= 0)
    return pos;
  return -1;
}
```