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

```asm
<fn_cl_33_33_36_36_38_46_48_57_59_59_61_61_65_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>:
  endbr64
  sub    $0x18,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  lea    0x4(%rsp),%rsi
  movl   $0x0,0x4(%rsp)
  call   <next_utf8@plt>
  cmp    $0x21,%eax
  je     L379
  cmp    $0x1fffd,%eax
  ja     L322
  cmp    $0xffff,%eax
  ja     L379
  cmp    $0x7e,%eax
  ja     L195
  cmp    $0x40,%eax
  ja     L372
  lea    -0x24(%rax),%edx
  cmp    $0x19,%edx
  ja     L346
  movabs $0x2bff7fd000000000,%rdx
  bt     %rax,%rdx
  jae    L346
  nopw   0x0(%rax,%rax,1)
L379:
  mov    0x4(%rsp),%eax
L56:
  mov    0x8(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L211
  add    $0x18,%rsp
  ret
  nopl   (%rax)
L322:
  cmp    $0x8fffd,%eax
  ja     L160
  cmp    $0x7ffff,%eax
  ja     L379
  cmp    $0x5fffd,%eax
  ja     L207
  cmp    $0x4ffff,%eax
  ja     L379
  cmp    $0x3fffd,%eax
  ja     L148
  cmp    $0x2ffff,%eax
  ja     L379
  sub    $0x20000,%eax
  cmp    $0xfffd,%eax
  jbe    L379
  xchg   %ax,%ax
L346:
  mov    $0xffffffff,%eax
  jmp    L56
  nopw   0x0(%rax,%rax,1)
L160:
  cmp    $0xcfffd,%eax
  ja     L50
  cmp    $0xbffff,%eax
  ja     L379
  cmp    $0xafffd,%eax
  ja     L38
  cmp    $0x9ffff,%eax
  ja     L379
  sub    $0x90000,%eax
  cmp    $0xfffd,%eax
  jbe    L379
  jmp    L346
  xchg   %ax,%ax
L195:
  cmp    $0xffef,%eax
  ja     L186
  cmp    $0xfdef,%eax
  ja     L379
  cmp    $0xd7ff,%eax
  jbe    L66
  sub    $0xf900,%eax
  cmp    $0x4cf,%eax
  jbe    L379
  jmp    L346
  nopl   0x0(%rax,%rax,1)
L66:
  cmp    $0x9f,%eax
  ja     L379
  mov    $0xffffffff,%eax
  jmp    L56
  nopl   (%rax)
L186:
  cmp    $0xfffd,%eax
  je     L379
  jmp    L346
  nopl   0x0(%rax,%rax,1)
L372:
  movabs $0x23ffffff47ffffff,%rdx
  sub    $0x41,%eax
  bt     %rax,%rdx
  jb     L379
  jmp    L346
  nopl   0x0(%rax)
L148:
  sub    $0x40000,%eax
  cmp    $0xfffd,%eax
  jbe    L379
  jmp    L346
  nopl   (%rax)
L207:
  cmp    $0x6fffd,%eax
  jbe    L243
  sub    $0x70000,%eax
  cmp    $0xfffd,%eax
  jbe    L379
  jmp    L346
  nopl   0x0(%rax)
L243:
  cmp    $0x5ffff,%eax
  ja     L379
  mov    $0xffffffff,%eax
  jmp    L56
  nopl   (%rax)
L38:
  sub    $0xb0000,%eax
  cmp    $0xfffd,%eax
  jbe    L379
  jmp    L346
  nopl   (%rax)
L50:
  cmp    $0xdfffd,%eax
  jbe    L37
  sub    $0xe0000,%eax
  cmp    $0xfffd,%eax
  jbe    L379
  jmp    L346
  nopl   0x0(%rax)
L37:
  cmp    $0xcffff,%eax
  ja     L379
  mov    $0xffffffff,%eax
  jmp    L56
L211:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int fn_cl_33_33_36_36_38_46_48_57_59_59_61_61_65_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(const char *text) {
  int pos = 0;
  unsigned int c = next_utf8(text, &pos);
  if (c >= 33 && c <= 33)
    return pos;
  if (c >= 36 && c <= 36)
    return pos;
  if (c >= 38 && c <= 46)
    return pos;
  if (c >= 48 && c <= 57)
    return pos;
  if (c >= 59 && c <= 59)
    return pos;
  if (c >= 61 && c <= 61)
    return pos;
  if (c >= 65 && c <= 91)
    return pos;
  if (c >= 95 && c <= 95)
    return pos;
  if (c >= 97 && c <= 122)
    return pos;
  if (c >= 126 && c <= 126)
    return pos;
  if (c >= 160 && c <= 55295)
    return pos;
  if (c >= 63744 && c <= 64975)
    return pos;
  if (c >= 65008 && c <= 65519)
    return pos;
  if (c >= 65533 && c <= 65533)
    return pos;
  if (c >= 65536 && c <= 131069)
    return pos;
  if (c >= 131072 && c <= 196605)
    return pos;
  if (c >= 196608 && c <= 262141)
    return pos;
  if (c >= 262144 && c <= 327677)
    return pos;
  if (c >= 327680 && c <= 393213)
    return pos;
  if (c >= 393216 && c <= 458749)
    return pos;
  if (c >= 458752 && c <= 524285)
    return pos;
  if (c >= 524288 && c <= 589821)
    return pos;
  if (c >= 589824 && c <= 655357)
    return pos;
  if (c >= 655360 && c <= 720893)
    return pos;
  if (c >= 720896 && c <= 786429)
    return pos;
  if (c >= 786432 && c <= 851965)
    return pos;
  if (c >= 851968 && c <= 917501)
    return pos;
  if (c >= 917504 && c <= 983037)
    return pos;
  return -1;
}
```