user: Please show me the C implementation that matches the assembly code listed below:

```asm
<fn_cl_33_33_36_36_38_59_61_61_63_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
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0x10(%rbp)
  lea    -0x10(%rbp),%rdx
  mov    -0x18(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <next_utf8@plt>
  mov    %eax,-0xc(%rbp)
  cmpl   $0x20,-0xc(%rbp)
  jbe    L214
  cmpl   $0x21,-0xc(%rbp)
  ja     L214
  mov    -0x10(%rbp),%eax
  jmp    L316
L214:
  cmpl   $0x23,-0xc(%rbp)
  jbe    L559
  cmpl   $0x24,-0xc(%rbp)
  ja     L559
  mov    -0x10(%rbp),%eax
  jmp    L316
L559:
  cmpl   $0x25,-0xc(%rbp)
  jbe    L5
  cmpl   $0x3b,-0xc(%rbp)
  ja     L5
  mov    -0x10(%rbp),%eax
  jmp    L316
L5:
  cmpl   $0x3c,-0xc(%rbp)
  jbe    L725
  cmpl   $0x3d,-0xc(%rbp)
  ja     L725
  mov    -0x10(%rbp),%eax
  jmp    L316
L725:
  cmpl   $0x3e,-0xc(%rbp)
  jbe    L676
  cmpl   $0x5b,-0xc(%rbp)
  ja     L676
  mov    -0x10(%rbp),%eax
  jmp    L316
L676:
  cmpl   $0x5e,-0xc(%rbp)
  jbe    L387
  cmpl   $0x5f,-0xc(%rbp)
  ja     L387
  mov    -0x10(%rbp),%eax
  jmp    L316
L387:
  cmpl   $0x60,-0xc(%rbp)
  jbe    L612
  cmpl   $0x7a,-0xc(%rbp)
  ja     L612
  mov    -0x10(%rbp),%eax
  jmp    L316
L612:
  cmpl   $0x7d,-0xc(%rbp)
  jbe    L379
  cmpl   $0x7e,-0xc(%rbp)
  ja     L379
  mov    -0x10(%rbp),%eax
  jmp    L316
L379:
  cmpl   $0x9f,-0xc(%rbp)
  jbe    L165
  cmpl   $0xd7ff,-0xc(%rbp)
  ja     L165
  mov    -0x10(%rbp),%eax
  jmp    L316
L165:
  cmpl   $0xf8ff,-0xc(%rbp)
  jbe    L768
  cmpl   $0xfdcf,-0xc(%rbp)
  ja     L768
  mov    -0x10(%rbp),%eax
  jmp    L316
L768:
  cmpl   $0xfdef,-0xc(%rbp)
  jbe    L149
  cmpl   $0xffef,-0xc(%rbp)
  ja     L149
  mov    -0x10(%rbp),%eax
  jmp    L316
L149:
  cmpl   $0xfffc,-0xc(%rbp)
  jbe    L573
  cmpl   $0xfffd,-0xc(%rbp)
  ja     L573
  mov    -0x10(%rbp),%eax
  jmp    L316
L573:
  cmpl   $0xffff,-0xc(%rbp)
  jbe    L697
  cmpl   $0x1fffd,-0xc(%rbp)
  ja     L697
  mov    -0x10(%rbp),%eax
  jmp    L316
L697:
  cmpl   $0x1ffff,-0xc(%rbp)
  jbe    L786
  cmpl   $0x2fffd,-0xc(%rbp)
  ja     L786
  mov    -0x10(%rbp),%eax
  jmp    L316
L786:
  cmpl   $0x2ffff,-0xc(%rbp)
  jbe    L50
  cmpl   $0x3fffd,-0xc(%rbp)
  ja     L50
  mov    -0x10(%rbp),%eax
  jmp    L316
L50:
  cmpl   $0x3ffff,-0xc(%rbp)
  jbe    L112
  cmpl   $0x4fffd,-0xc(%rbp)
  ja     L112
  mov    -0x10(%rbp),%eax
  jmp    L316
L112:
  cmpl   $0x4ffff,-0xc(%rbp)
  jbe    L541
  cmpl   $0x5fffd,-0xc(%rbp)
  ja     L541
  mov    -0x10(%rbp),%eax
  jmp    L316
L541:
  cmpl   $0x5ffff,-0xc(%rbp)
  jbe    L138
  cmpl   $0x6fffd,-0xc(%rbp)
  ja     L138
  mov    -0x10(%rbp),%eax
  jmp    L316
L138:
  cmpl   $0x6ffff,-0xc(%rbp)
  jbe    L669
  cmpl   $0x7fffd,-0xc(%rbp)
  ja     L669
  mov    -0x10(%rbp),%eax
  jmp    L316
L669:
  cmpl   $0x7ffff,-0xc(%rbp)
  jbe    L187
  cmpl   $0x8fffd,-0xc(%rbp)
  ja     L187
  mov    -0x10(%rbp),%eax
  jmp    L316
L187:
  cmpl   $0x8ffff,-0xc(%rbp)
  jbe    L85
  cmpl   $0x9fffd,-0xc(%rbp)
  ja     L85
  mov    -0x10(%rbp),%eax
  jmp    L316
L85:
  cmpl   $0x9ffff,-0xc(%rbp)
  jbe    L596
  cmpl   $0xafffd,-0xc(%rbp)
  ja     L596
  mov    -0x10(%rbp),%eax
  jmp    L316
L596:
  cmpl   $0xaffff,-0xc(%rbp)
  jbe    L715
  cmpl   $0xbfffd,-0xc(%rbp)
  ja     L715
  mov    -0x10(%rbp),%eax
  jmp    L316
L715:
  cmpl   $0xbffff,-0xc(%rbp)
  jbe    L367
  cmpl   $0xcfffd,-0xc(%rbp)
  ja     L367
  mov    -0x10(%rbp),%eax
  jmp    L316
L367:
  cmpl   $0xcffff,-0xc(%rbp)
  jbe    L126
  cmpl   $0xdfffd,-0xc(%rbp)
  ja     L126
  mov    -0x10(%rbp),%eax
  jmp    L316
L126:
  cmpl   $0xdffff,-0xc(%rbp)
  jbe    L62
  cmpl   $0xefffd,-0xc(%rbp)
  ja     L62
  mov    -0x10(%rbp),%eax
  jmp    L316
L62:
  mov    $0xffffffff,%eax
L316:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L466
  call   <__stack_chk_fail@plt>
L466:
  leave
  ret
```

assistant: ```c
int fn_cl_33_33_36_36_38_59_61_61_63_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 <= 59)
    return pos;
  if (c >= 61 && c <= 61)
    return pos;
  if (c >= 63 && 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;
}
```