int wcis_name_extender_char(int c) {
  if (c <= 0x0039) {
    if (c <= 0x002d) {
      return (c == 0x002d);
    } else {
      return (c >= 0x0030 && c <= 0x0039);
    }
  } else {
    if (c <= 0x00b7) {
      return (c == 0x00b7);
    } else {
      if (c <= 0x036f) {
        return (c >= 0x0300 && c <= 0x036f);
      } else {
        return (c >= 0x203f && c <= 0x2040);
      }
    }
  }
}


x86 assembly (clang, -O0):
<wcis_name_extender_char>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
cmpl   $0x39,-0x8(%rbp)
jg     1158 <wcis_name_extender_char+0x58>
cmpl   $0x2d,-0x8(%rbp)
jg     112f <wcis_name_extender_char+0x2f>
cmpl   $0x2d,-0x8(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x4(%rbp)
jmp    11e2 <wcis_name_extender_char+0xe2>
xor    %eax,%eax
cmpl   $0x30,-0x8(%rbp)
mov    %al,-0x9(%rbp)
jl     1148 <wcis_name_extender_char+0x48>
cmpl   $0x39,-0x8(%rbp)
setle  %al
mov    %al,-0x9(%rbp)
mov    -0x9(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x4(%rbp)
jmp    11e2 <wcis_name_extender_char+0xe2>
cmpl   $0xb7,-0x8(%rbp)
jg     117c <wcis_name_extender_char+0x7c>
cmpl   $0xb7,-0x8(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x4(%rbp)
jmp    11e2 <wcis_name_extender_char+0xe2>
cmpl   $0x36f,-0x8(%rbp)
jg     11b8 <wcis_name_extender_char+0xb8>
xor    %eax,%eax
cmpl   $0x300,-0x8(%rbp)
mov    %al,-0xa(%rbp)
jl     11a8 <wcis_name_extender_char+0xa8>
cmpl   $0x36f,-0x8(%rbp)
setle  %al
mov    %al,-0xa(%rbp)
mov    -0xa(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x4(%rbp)
jmp    11e2 <wcis_name_extender_char+0xe2>
xor    %eax,%eax
cmpl   $0x203f,-0x8(%rbp)
mov    %al,-0xb(%rbp)
jl     11d7 <wcis_name_extender_char+0xd7>
cmpl   $0x2040,-0x8(%rbp)
setle  %al
mov    %al,-0xb(%rbp)
mov    -0xb(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<wcis_name_extender_char>:
cmp    $0x39,%edi
jg     110f <wcis_name_extender_char+0xf>
cmp    $0x2d,%edi
jle    1117 <wcis_name_extender_char+0x17>
cmp    $0x30,%edi
jmp    112c <wcis_name_extender_char+0x2c>
cmp    $0xb7,%edi
ja     111e <wcis_name_extender_char+0x1e>
sete   %al
movzbl %al,%eax
ret
cmp    $0x36f,%edi
ja     1133 <wcis_name_extender_char+0x33>
cmp    $0x300,%edi
setae  %al
movzbl %al,%eax
ret
add    $0xffffdfc1,%edi
cmp    $0x2,%edi
setb   %al
movzbl %al,%eax
ret

LLVM IR (-O0):
define i32 @wcis_name_extender_char(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
%5 = icmp sle i32 %4, 57
br i1 %5, label %6, label %22
6: ; preds = %1
%7 = load i32, i32* %3
%8 = icmp sle i32 %7, 45
br i1 %8, label %9, label %13
9: ; preds = %6
%10 = load i32, i32* %3
%11 = icmp eq i32 %10, 45
%12 = zext i1 %11 to i32
store i32 %12, i32* %2
br label %50
13: ; preds = %6
%14 = load i32, i32* %3
%15 = icmp sge i32 %14, 48
br i1 %15, label %16, label %19
16: ; preds = %13
%17 = load i32, i32* %3
%18 = icmp sle i32 %17, 57
br label %19
19: ; preds = %16, %13
%20 = phi i1 [ false, %13 ], [ %18, %16 ]
%21 = zext i1 %20 to i32
store i32 %21, i32* %2
br label %50
22: ; preds = %1
%23 = load i32, i32* %3
%24 = icmp sle i32 %23, 183
br i1 %24, label %25, label %29
25: ; preds = %22
%26 = load i32, i32* %3
%27 = icmp eq i32 %26, 183
%28 = zext i1 %27 to i32
store i32 %28, i32* %2
br label %50
29: ; preds = %22
%30 = load i32, i32* %3
%31 = icmp sle i32 %30, 879
br i1 %31, label %32, label %41
32: ; preds = %29
%33 = load i32, i32* %3
%34 = icmp sge i32 %33, 768
br i1 %34, label %35, label %38
35: ; preds = %32
%36 = load i32, i32* %3
%37 = icmp sle i32 %36, 879
br label %38
38: ; preds = %35, %32
%39 = phi i1 [ false, %32 ], [ %37, %35 ]
%40 = zext i1 %39 to i32
store i32 %40, i32* %2
br label %50
41: ; preds = %29
%42 = load i32, i32* %3
%43 = icmp sge i32 %42, 8255
br i1 %43, label %44, label %47
44: ; preds = %41
%45 = load i32, i32* %3
%46 = icmp sle i32 %45, 8256
br label %47
47: ; preds = %44, %41
%48 = phi i1 [ false, %41 ], [ %46, %44 ]
%49 = zext i1 %48 to i32
store i32 %49, i32* %2
br label %50
50: ; preds = %47, %38, %25, %19, %9
%51 = load i32, i32* %2
ret i32 %51
}

LLVM IR (-O2):
define i32 @wcis_name_extender_char(i32 %0) {
%2 = icmp slt i32 %0, 58
br i1 %2, label %3, label %9
3: ; preds = %1
%4 = icmp slt i32 %0, 46
br i1 %4, label %5, label %7
5: ; preds = %3
%6 = icmp eq i32 %0, 45
br label %20
7: ; preds = %3
%8 = icmp ugt i32 %0, 47
br label %20
9: ; preds = %1
%10 = icmp ult i32 %0, 184
br i1 %10, label %11, label %13
11: ; preds = %9
%12 = icmp eq i32 %0, 183
br label %20
13: ; preds = %9
%14 = icmp ult i32 %0, 880
br i1 %14, label %15, label %17
15: ; preds = %13
%16 = icmp ugt i32 %0, 767
br label %20
17: ; preds = %13
%18 = add nsw i32 %0, -8255
%19 = icmp ult i32 %18, 2
br label %20
20: ; preds = %17, %15, %11, %7, %5
%21 = phi i1 [ %6, %5 ], [ %8, %7 ], [ %12, %11 ], [ %16, %15 ], [ %19, %17 ]
%22 = zext i1 %21 to i32
ret i32 %22
}