#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 /*<<< orphan*/ WHITESPACE_MAP;

/* Variables and functions */
scalar_t__ md_unicode_bsearch__(unsigned int, unsigned int const *, int);
int md_is_unicode_whitespace__(unsigned codepoint) {
  static const unsigned WHITESPACE_MAP[] = {(0x0020),
                                            (0x00a0),
                                            (0x1680),
                                            ((0x2000) | 0x40000000),
                                            ((0x200a) | 0x80000000),
                                            (0x202f),
                                            (0x205f),
                                            (0x3000)};
  if (codepoint <= 0x7f)
    return (((((codepoint)) == (' ') || ((codepoint)) == ('\t'))) ||
            (((codepoint)) == ('\v') || ((codepoint)) == ('\f')));
  return (md_unicode_bsearch__(
              codepoint, WHITESPACE_MAP,
              (sizeof(WHITESPACE_MAP) / sizeof(WHITESPACE_MAP[0]))) >= 0);
}


x86 assembly (clang, -O0):
<md_is_unicode_whitespace__>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
cmpl   $0x7f,-0x8(%rbp)
ja     1172 <md_is_unicode_whitespace__+0x62>
mov    $0x1,%al
cmpl   $0x20,-0x8(%rbp)
mov    %al,-0x9(%rbp)
je     1162 <md_is_unicode_whitespace__+0x52>
mov    $0x1,%al
cmpl   $0x9,-0x8(%rbp)
mov    %al,-0x9(%rbp)
je     1162 <md_is_unicode_whitespace__+0x52>
mov    $0x1,%al
cmpl   $0xb,-0x8(%rbp)
mov    %al,-0xa(%rbp)
je     115c <md_is_unicode_whitespace__+0x4c>
cmpl   $0xc,-0x8(%rbp)
sete   %al
mov    %al,-0xa(%rbp)
mov    -0xa(%rbp),%al
mov    %al,-0x9(%rbp)
mov    -0x9(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x4(%rbp)
jmp    1195 <md_is_unicode_whitespace__+0x85>
mov    -0x8(%rbp),%edi
lea    0xe84(%rip),%rsi
mov    $0x8,%edx
call   1030 <md_unicode_bsearch__@plt>
cmp    $0x0,%rax
setge  %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<md_is_unicode_whitespace__>:
cmp    $0x7f,%edi
ja     1125 <md_is_unicode_whitespace__+0x15>
mov    $0x1,%eax
cmp    $0x9,%edi
je     1124 <md_is_unicode_whitespace__+0x14>
cmp    $0x20,%edi
jne    1143 <md_is_unicode_whitespace__+0x33>
ret
push   %rax
lea    0xed3(%rip),%rsi
mov    $0x8,%edx
call   1030 <md_unicode_bsearch__@plt>
shr    $0x3f,%rax
xor    $0x1,%eax
add    $0x8,%rsp
ret
add    $0xfffffff5,%edi
xor    %eax,%eax
cmp    $0x2,%edi
setb   %al
ret

LLVM IR (-O0):
@md_is_unicode_whitespace__.WHITESPACE_MAP = internal constant [8 x i32] [i32 32, i32 160, i32 5760, i32 1073750016, i32 -2147475446, i32 8239, i32 8287, i32 12288]
define i32 @md_is_unicode_whitespace__(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
%5 = icmp ule i32 %4, 127
br i1 %5, label %6, label %23
6: ; preds = %1
%7 = load i32, i32* %3
%8 = icmp eq i32 %7, 32
br i1 %8, label %20, label %9
9: ; preds = %6
%10 = load i32, i32* %3
%11 = icmp eq i32 %10, 9
br i1 %11, label %20, label %12
12: ; preds = %9
%13 = load i32, i32* %3
%14 = icmp eq i32 %13, 11
br i1 %14, label %18, label %15
15: ; preds = %12
%16 = load i32, i32* %3
%17 = icmp eq i32 %16, 12
br label %18
18: ; preds = %15, %12
%19 = phi i1 [ true, %12 ], [ %17, %15 ]
br label %20
20: ; preds = %18, %9, %6
%21 = phi i1 [ true, %9 ], [ true, %6 ], [ %19, %18 ]
%22 = zext i1 %21 to i32
store i32 %22, i32* %2
br label %28
23: ; preds = %1
%24 = load i32, i32* %3
%25 = call i64 @md_unicode_bsearch__(i32 %24, i32* getelementptr inbounds ([8 x i32], [8 x i32]* @md_is_unicode_whitespace__.WHITESPACE_MAP, i64 0, i64 0), i32 8)
%26 = icmp sge i64 %25, 0
%27 = zext i1 %26 to i32
store i32 %27, i32* %2
br label %28
28: ; preds = %23, %20
%29 = load i32, i32* %2
ret i32 %29
}

LLVM IR (-O2):
@md_is_unicode_whitespace__.WHITESPACE_MAP = internal constant [8 x i32] [i32 32, i32 160, i32 5760, i32 1073750016, i32 -2147475446, i32 8239, i32 8287, i32 12288]
define i32 @md_is_unicode_whitespace__(i32 %0) {
%2 = icmp ult i32 %0, 128
br i1 %2, label %3, label %8
3: ; preds = %1
switch i32 %0, label %4 [
i32 32, label %13
i32 9, label %13
]
4: ; preds = %3
%5 = add nsw i32 %0, -11
%6 = icmp ult i32 %5, 2
%7 = zext i1 %6 to i32
br label %13
8: ; preds = %1
%9 = tail call i64 @md_unicode_bsearch__(i32 %0, i32* getelementptr inbounds ([8 x i32], [8 x i32]* @md_is_unicode_whitespace__.WHITESPACE_MAP, i64 0, i64 0), i32 8)
%10 = lshr i64 %9, 63
%11 = trunc i64 %10 to i32
%12 = xor i32 %11, 1
br label %13
13: ; preds = %4, %3, %3, %8
%14 = phi i32 [ %12, %8 ], [ 1, %3 ], [ %7, %4 ], [ 1, %3 ]
ret i32 %14
}