#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 */

/* Variables and functions */
int sqlite3Fts5UnicodeIsdiacritic(int c) {
  unsigned int mask0 = 0x08029FDF;
  unsigned int mask1 = 0x000361F8;
  if (c < 768 || c > 817)
    return 0;
  return (c < 768 + 32) ? (mask0 & ((unsigned int)1 << (c - 768)))
                        : (mask1 & ((unsigned int)1 << (c - 768 - 32)));
}


x86 assembly (clang, -O0):
<sqlite3Fts5UnicodeIsdiacritic>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
movl   $0x8029fdf,-0xc(%rbp)
movl   $0x361f8,-0x10(%rbp)
cmpl   $0x300,-0x8(%rbp)
jl     112f <sqlite3Fts5UnicodeIsdiacritic+0x2f>
cmpl   $0x331,-0x8(%rbp)
jle    113b <sqlite3Fts5UnicodeIsdiacritic+0x3b>
movl   $0x0,-0x4(%rbp)
jmp    118a <sqlite3Fts5UnicodeIsdiacritic+0x8a>
cmpl   $0x320,-0x8(%rbp)
jge    1167 <sqlite3Fts5UnicodeIsdiacritic+0x67>
mov    -0xc(%rbp),%eax
mov    -0x8(%rbp),%ecx
sub    $0x300,%ecx
mov    $0x1,%edx
shl    %cl,%edx
mov    %edx,%ecx
and    %ecx,%eax
mov    %eax,-0x14(%rbp)
jmp    1184 <sqlite3Fts5UnicodeIsdiacritic+0x84>
mov    -0x10(%rbp),%eax
mov    -0x8(%rbp),%ecx
sub    $0x300,%ecx
sub    $0x20,%ecx
mov    $0x1,%edx
shl    %cl,%edx
mov    %edx,%ecx
and    %ecx,%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<sqlite3Fts5UnicodeIsdiacritic>:
lea    -0x332(%rdi),%ecx
xor    %eax,%eax
cmp    $0xffffffce,%ecx
jb     1129 <sqlite3Fts5UnicodeIsdiacritic+0x29>
mov    $0x1,%eax
mov    %edi,%ecx
shl    %cl,%eax
cmp    $0x31f,%edi
ja     1124 <sqlite3Fts5UnicodeIsdiacritic+0x24>
and    $0x8029fdf,%eax
ret
and    $0x361f8,%eax
ret

LLVM IR (-O0):
define i32 @sqlite3Fts5UnicodeIsdiacritic(i32 %0) {
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 %0, i32* %3
store i32 134389727, i32* %4
store i32 221688, i32* %5
%6 = load i32, i32* %3
%7 = icmp slt i32 %6, 768
br i1 %7, label %11, label %8
8: ; preds = %1
%9 = load i32, i32* %3
%10 = icmp sgt i32 %9, 817
br i1 %10, label %11, label %12
11: ; preds = %8, %1
store i32 0, i32* %2
br label %30
12: ; preds = %8
%13 = load i32, i32* %3
%14 = icmp slt i32 %13, 800
br i1 %14, label %15, label %21
15: ; preds = %12
%16 = load i32, i32* %4
%17 = load i32, i32* %3
%18 = sub nsw i32 %17, 768
%19 = shl i32 1, %18
%20 = and i32 %16, %19
br label %28
21: ; preds = %12
%22 = load i32, i32* %5
%23 = load i32, i32* %3
%24 = sub nsw i32 %23, 768
%25 = sub nsw i32 %24, 32
%26 = shl i32 1, %25
%27 = and i32 %22, %26
br label %28
28: ; preds = %21, %15
%29 = phi i32 [ %20, %15 ], [ %27, %21 ]
store i32 %29, i32* %2
br label %30
30: ; preds = %28, %11
%31 = load i32, i32* %2
ret i32 %31
}

LLVM IR (-O2):
define i32 @sqlite3Fts5UnicodeIsdiacritic(i32 %0) {
%2 = add i32 %0, -818
%3 = icmp ult i32 %2, -50
br i1 %3, label %14, label %4
4: ; preds = %1
%5 = icmp ult i32 %0, 800
br i1 %5, label %6, label %10
6: ; preds = %4
%7 = add nsw i32 %0, -768
%8 = shl nuw i32 1, %7
%9 = and i32 %8, 134389727
br label %14
10: ; preds = %4
%11 = add nsw i32 %0, -800
%12 = shl nuw nsw i32 1, %11
%13 = and i32 %12, 221688
br label %14
14: ; preds = %6, %10, %1
%15 = phi i32 [ 0, %1 ], [ %9, %6 ], [ %13, %10 ]
ret i32 %15
}