#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */
typedef int wint_t;

/* Variables and functions */
int iswprint(wint_t wc) {
  if (wc < 0xffU)
    return (wc + 1 & 0x7f) >= 0x21;
  if (wc < 0x2028U || wc - 0x202aU < 0xd800 - 0x202a ||
      wc - 0xe000U < 0xfff9 - 0xe000)
    return 1;
  if (wc - 0xfffcU > 0x10ffff - 0xfffc || (wc & 0xfffe) == 0xfffe)
    return 0;
  return 1;
}


x86 assembly (clang, -O0):
<iswprint>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
cmpl   $0xff,-0x8(%rbp)
jae    1130 <iswprint+0x30>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
and    $0x7f,%eax
cmp    $0x21,%eax
setge  %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x4(%rbp)
jmp    11a8 <iswprint+0xa8>
cmpl   $0x2028,-0x8(%rbp)
jb     1163 <iswprint+0x63>
mov    -0x8(%rbp),%eax
sub    $0x202a,%eax
cmp    $0xb7d6,%eax
jb     1163 <iswprint+0x63>
mov    -0x8(%rbp),%eax
sub    $0xe000,%eax
cmp    $0x1ff9,%eax
jae    116f <iswprint+0x6f>
movl   $0x1,-0x4(%rbp)
jmp    11a8 <iswprint+0xa8>
mov    -0x8(%rbp),%eax
sub    $0xfffc,%eax
cmp    $0x100003,%eax
ja     1195 <iswprint+0x95>
mov    -0x8(%rbp),%eax
and    $0xfffe,%eax
cmp    $0xfffe,%eax
jne    11a1 <iswprint+0xa1>
movl   $0x0,-0x4(%rbp)
jmp    11a8 <iswprint+0xa8>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<iswprint>:
cmp    $0xfe,%edi
ja     1118 <iswprint+0x18>
add    $0x1,%edi
and    $0x7f,%edi
cmp    $0x21,%edi
setae  %al
movzbl %al,%eax
ret
lea    -0xe000(%rdi),%ecx
mov    $0x1,%al
cmp    $0x1ff9,%ecx
jb     1159 <iswprint+0x59>
cmp    $0x2028,%edi
jb     1159 <iswprint+0x59>
lea    -0x202a(%rdi),%ecx
cmp    $0xb7d6,%ecx
jb     1159 <iswprint+0x59>
lea    -0xfffc(%rdi),%eax
cmp    $0x100004,%eax
setb   %cl
not    %edi
test   $0xfffe,%edi
setne  %al
and    %cl,%al
movzbl %al,%eax
ret

LLVM IR (-O0):
define i32 @iswprint(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
%5 = icmp ult i32 %4, 255
br i1 %5, label %6, label %12
6: ; preds = %1
%7 = load i32, i32* %3
%8 = add nsw i32 %7, 1
%9 = and i32 %8, 127
%10 = icmp sge i32 %9, 33
%11 = zext i1 %10 to i32
store i32 %11, i32* %2
br label %34
12: ; preds = %1
%13 = load i32, i32* %3
%14 = icmp ult i32 %13, 8232
br i1 %14, label %23, label %15
15: ; preds = %12
%16 = load i32, i32* %3
%17 = sub i32 %16, 8234
%18 = icmp ult i32 %17, 47062
br i1 %18, label %23, label %19
19: ; preds = %15
%20 = load i32, i32* %3
%21 = sub i32 %20, 57344
%22 = icmp ult i32 %21, 8185
br i1 %22, label %23, label %24
23: ; preds = %19, %15, %12
store i32 1, i32* %2
br label %34
24: ; preds = %19
%25 = load i32, i32* %3
%26 = sub i32 %25, 65532
%27 = icmp ugt i32 %26, 1048579
br i1 %27, label %32, label %28
28: ; preds = %24
%29 = load i32, i32* %3
%30 = and i32 %29, 65534
%31 = icmp eq i32 %30, 65534
br i1 %31, label %32, label %33
32: ; preds = %28, %24
store i32 0, i32* %2
br label %34
33: ; preds = %28
store i32 1, i32* %2
br label %34
34: ; preds = %33, %32, %23, %6
%35 = load i32, i32* %2
ret i32 %35
}

LLVM IR (-O2):
define i32 @iswprint(i32 %0) {
%2 = icmp ult i32 %0, 255
br i1 %2, label %3, label %7
3: ; preds = %1
%4 = add nuw nsw i32 %0, 1
%5 = and i32 %4, 127
%6 = icmp ugt i32 %5, 32
br label %21
7: ; preds = %1
%8 = icmp ult i32 %0, 8232
%9 = add i32 %0, -8234
%10 = icmp ult i32 %9, 47062
%11 = or i1 %8, %10
%12 = add i32 %0, -57344
%13 = icmp ult i32 %12, 8185
%14 = or i1 %13, %11
br i1 %14, label %21, label %15
15: ; preds = %7
%16 = add i32 %0, -65532
%17 = icmp ult i32 %16, 1048580
%18 = and i32 %0, 65534
%19 = icmp ne i32 %18, 65534
%20 = and i1 %17, %19
br label %21
21: ; preds = %15, %7, %3
%22 = phi i1 [ %6, %3 ], [ true, %7 ], [ %20, %15 ]
%23 = zext i1 %22 to i32
ret i32 %23
}