#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 */
scalar_t__ strcmp(char const *, char const *const);
int strlen(char const *const);
int /*<<< orphan*/ strncmp(char const *, char const *const, int);
scalar_t__ strstr(char const *, char const *const);
char toupper(char);
bool is_ignored_symbol(const char *name, char type) {
  static const char *const ignored_symbols[] = {"kallsyms_addresses",
                                                "kallsyms_offsets",
                                                "kallsyms_relative_base",
                                                "kallsyms_num_syms",
                                                "kallsyms_names",
                                                "kallsyms_markers",
                                                "kallsyms_token_table",
                                                "kallsyms_token_index",
                                                "_SDA_BASE_",
                                                "_SDA2_BASE_",
                                                NULL};
  static const char *const ignored_prefixes[] = {"$",
                                                 ".LASANPC",
                                                 "__crc_",
                                                 "__efistub_",
                                                 "__kvm_nvhe_",
                                                 "__AArch64ADRPThunk_",
                                                 "__ARMV5PILongThunk_",
                                                 "__ARMV7PILongThunk_",
                                                 "__ThumbV7PILongThunk_",
                                                 "__LA25Thunk_",
                                                 "__microLA25Thunk_",
                                                 NULL};
  static const char *const ignored_suffixes[] = {"_from_arm", "_from_thumb",
                                                 "_veneer", NULL};
  static const char *const ignored_matches[] = {".long_branch.", ".plt_branch.",
                                                NULL};
  const char *const *p;
  for (p = ignored_symbols; *p; p++)
    if (!strcmp(name, *p))
      return true;
  for (p = ignored_prefixes; *p; p++)
    if (!strncmp(name, *p, strlen(*p)))
      return true;
  for (p = ignored_suffixes; *p; p++) {
    int l = strlen(name) - strlen(*p);
    if (l >= 0 && !strcmp(name + l, *p))
      return true;
  }
  for (p = ignored_matches; *p; p++) {
    if (strstr(name, *p))
      return true;
  }
  if (type == 'U' || type == 'u')
    return true;
  if (type == 'N' || type == 'n')
    return true;
  if (toupper(type) == 'A') {
    if (strcmp(name, "__kernel_syscall_via_break") &&
        strcmp(name, "__kernel_syscall_via_epc") &&
        strcmp(name, "__kernel_sigtramp") && strcmp(name, "__gp"))
      return true;
  }
  return false;
}


x86 assembly (clang, -O0):
<is_ignored_symbol>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %sil,%al
mov    %rdi,-0x10(%rbp)
mov    %al,-0x11(%rbp)
lea    0x2bb7(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rax
cmpq   $0x0,(%rax)
je     11b7 <is_ignored_symbol+0x67>
mov    -0x10(%rbp),%rdi
mov    -0x20(%rbp),%rax
mov    (%rax),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    11a1 <is_ignored_symbol+0x51>
movl   $0x1,-0x4(%rbp)
jmp    13e7 <is_ignored_symbol+0x297>
jmp    11a6 <is_ignored_symbol+0x56>
mov    -0x20(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x20(%rbp)
jmp    116d <is_ignored_symbol+0x1d>
lea    0x2bc2(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rax
cmpq   $0x0,(%rax)
je     1229 <is_ignored_symbol+0xd9>
mov    -0x10(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    -0x20(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x30(%rbp)
mov    -0x20(%rbp),%rax
mov    (%rax),%rdi
call   1050 <strlen@plt>
mov    -0x38(%rbp),%rdi
mov    -0x30(%rbp),%rsi
mov    %eax,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    1213 <is_ignored_symbol+0xc3>
movl   $0x1,-0x4(%rbp)
jmp    13e7 <is_ignored_symbol+0x297>
jmp    1218 <is_ignored_symbol+0xc8>
mov    -0x20(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x20(%rbp)
jmp    11c2 <is_ignored_symbol+0x72>
lea    0x2bb0(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rax
cmpq   $0x0,(%rax)
je     12b1 <is_ignored_symbol+0x161>
mov    -0x10(%rbp),%rdi
call   1050 <strlen@plt>
mov    %eax,-0x3c(%rbp)
mov    -0x20(%rbp),%rax
mov    (%rax),%rdi
call   1050 <strlen@plt>
mov    %eax,%ecx
mov    -0x3c(%rbp),%eax
sub    %ecx,%eax
mov    %eax,-0x24(%rbp)
cmpl   $0x0,-0x24(%rbp)
jl     129b <is_ignored_symbol+0x14b>
mov    -0x10(%rbp),%rdi
movslq -0x24(%rbp),%rax
add    %rax,%rdi
mov    -0x20(%rbp),%rax
mov    (%rax),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    129b <is_ignored_symbol+0x14b>
movl   $0x1,-0x4(%rbp)
jmp    13e7 <is_ignored_symbol+0x297>
jmp    12a0 <is_ignored_symbol+0x150>
mov    -0x20(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x20(%rbp)
jmp    1234 <is_ignored_symbol+0xe4>
lea    0x2b48(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rax
cmpq   $0x0,(%rax)
je     1306 <is_ignored_symbol+0x1b6>
mov    -0x10(%rbp),%rdi
mov    -0x20(%rbp),%rax
mov    (%rax),%rsi
call   1070 <strstr@plt>
cmp    $0x0,%rax
je     12f0 <is_ignored_symbol+0x1a0>
movl   $0x1,-0x4(%rbp)
jmp    13e7 <is_ignored_symbol+0x297>
jmp    12f5 <is_ignored_symbol+0x1a5>
mov    -0x20(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x20(%rbp)
jmp    12bc <is_ignored_symbol+0x16c>
movsbl -0x11(%rbp),%eax
cmp    $0x55,%eax
je     1320 <is_ignored_symbol+0x1d0>
movsbl -0x11(%rbp),%eax
cmp    $0x75,%eax
jne    132c <is_ignored_symbol+0x1dc>
movl   $0x1,-0x4(%rbp)
jmp    13e7 <is_ignored_symbol+0x297>
movsbl -0x11(%rbp),%eax
cmp    $0x4e,%eax
je     1346 <is_ignored_symbol+0x1f6>
movsbl -0x11(%rbp),%eax
cmp    $0x6e,%eax
jne    1352 <is_ignored_symbol+0x202>
movl   $0x1,-0x4(%rbp)
jmp    13e7 <is_ignored_symbol+0x297>
movsbl -0x11(%rbp),%edi
call   1040 <toupper@plt>
movsbl %al,%eax
cmp    $0x41,%eax
jne    13e0 <is_ignored_symbol+0x290>
mov    -0x10(%rbp),%rdi
lea    0xe0f(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     13db <is_ignored_symbol+0x28b>
mov    -0x10(%rbp),%rdi
lea    0xe10(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     13db <is_ignored_symbol+0x28b>
mov    -0x10(%rbp),%rdi
lea    0xe0f(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     13db <is_ignored_symbol+0x28b>
mov    -0x10(%rbp),%rdi
lea    0xe07(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     13db <is_ignored_symbol+0x28b>
movl   $0x1,-0x4(%rbp)
jmp    13e7 <is_ignored_symbol+0x297>
jmp    13e0 <is_ignored_symbol+0x290>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<is_ignored_symbol>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %esi,%r14d
mov    %rdi,%rbx
lea    0xe9c(%rip),%rsi
call   1060 <strcmp@plt>
mov    $0x1,%ebp
test   %rax,%rax
je     14bb <is_ignored_symbol+0x36b>
lea    0xe95(%rip),%rsi
mov    %rbx,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
je     14bb <is_ignored_symbol+0x36b>
lea    0xe8e(%rip),%rsi
mov    %rbx,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
je     14bb <is_ignored_symbol+0x36b>
lea    0xe8d(%rip),%rsi
mov    %rbx,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
je     14bb <is_ignored_symbol+0x36b>
lea    0xe87(%rip),%rsi
mov    %rbx,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
je     14bb <is_ignored_symbol+0x36b>
lea    0xe7e(%rip),%rsi
mov    %rbx,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
je     14bb <is_ignored_symbol+0x36b>
lea    0xe77(%rip),%rsi
mov    %rbx,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
je     14bb <is_ignored_symbol+0x36b>
lea    0xe74(%rip),%rsi
mov    %rbx,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
je     14bb <is_ignored_symbol+0x36b>
lea    0xe71(%rip),%rsi
mov    %rbx,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
je     14bb <is_ignored_symbol+0x36b>
lea    0xe64(%rip),%rsi
mov    %rbx,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
je     14bb <is_ignored_symbol+0x36b>
lea    0xe58(%rip),%r15
mov    %r15,%rdi
call   1050 <strlen@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %eax,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     14bb <is_ignored_symbol+0x36b>
lea    0xe36(%rip),%r15
mov    %r15,%rdi
call   1050 <strlen@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %eax,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     14bb <is_ignored_symbol+0x36b>
lea    0xe1b(%rip),%r15
mov    %r15,%rdi
call   1050 <strlen@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %eax,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     14bb <is_ignored_symbol+0x36b>
lea    0xdfe(%rip),%r15
mov    %r15,%rdi
call   1050 <strlen@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %eax,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     14bb <is_ignored_symbol+0x36b>
lea    0xde5(%rip),%r15
mov    %r15,%rdi
call   1050 <strlen@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %eax,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     14bb <is_ignored_symbol+0x36b>
lea    0xdcd(%rip),%r15
mov    %r15,%rdi
call   1050 <strlen@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %eax,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     14bb <is_ignored_symbol+0x36b>
lea    0xdbd(%rip),%r15
mov    %r15,%rdi
call   1050 <strlen@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %eax,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     14bb <is_ignored_symbol+0x36b>
lea    0xdad(%rip),%r15
mov    %r15,%rdi
call   1050 <strlen@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %eax,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     14bb <is_ignored_symbol+0x36b>
lea    0xd9d(%rip),%r15
mov    %r15,%rdi
call   1050 <strlen@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %eax,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     14bb <is_ignored_symbol+0x36b>
lea    0xd8f(%rip),%r15
mov    %r15,%rdi
call   1050 <strlen@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %eax,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     14bb <is_ignored_symbol+0x36b>
lea    0xd78(%rip),%r15
mov    %r15,%rdi
call   1050 <strlen@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %eax,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     14bb <is_ignored_symbol+0x36b>
mov    %rbx,%rdi
call   1050 <strlen@plt>
mov    %eax,%r15d
lea    0xd5b(%rip),%rdi
call   1050 <strlen@plt>
sub    %eax,%r15d
js     1412 <is_ignored_symbol+0x2c2>
mov    %r15d,%edi
add    %rbx,%rdi
lea    0xd44(%rip),%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
je     14bb <is_ignored_symbol+0x36b>
mov    %rbx,%rdi
call   1050 <strlen@plt>
mov    %eax,%r15d
lea    0xd2e(%rip),%rdi
call   1050 <strlen@plt>
sub    %eax,%r15d
js     1445 <is_ignored_symbol+0x2f5>
mov    %r15d,%edi
add    %rbx,%rdi
lea    0xd17(%rip),%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
je     14bb <is_ignored_symbol+0x36b>
mov    %rbx,%rdi
call   1050 <strlen@plt>
mov    %eax,%r15d
lea    0xd07(%rip),%rdi
call   1050 <strlen@plt>
sub    %eax,%r15d
js     1478 <is_ignored_symbol+0x328>
mov    %r15d,%edi
add    %rbx,%rdi
lea    0xcf0(%rip),%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
je     14bb <is_ignored_symbol+0x36b>
lea    0xce7(%rip),%rsi
mov    %rbx,%rdi
call   1070 <strstr@plt>
test   %rax,%rax
jne    14bb <is_ignored_symbol+0x36b>
lea    0xce1(%rip),%rsi
mov    %rbx,%rdi
call   1070 <strstr@plt>
test   %rax,%rax
jne    14bb <is_ignored_symbol+0x36b>
lea    -0x4e(%r14),%eax
cmp    $0x27,%al
ja     14c8 <is_ignored_symbol+0x378>
movzbl %al,%eax
movabs $0x8100000081,%rcx
bt     %rax,%rcx
jae    14c8 <is_ignored_symbol+0x378>
mov    %ebp,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret
movsbl %r14b,%edi
call   1040 <toupper@plt>
cmp    $0x41,%al
jne    1525 <is_ignored_symbol+0x3d5>
lea    0xca5(%rip),%rsi
mov    %rbx,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
je     1525 <is_ignored_symbol+0x3d5>
lea    0xcac(%rip),%rsi
mov    %rbx,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
je     1525 <is_ignored_symbol+0x3d5>
lea    0xcb1(%rip),%rsi
mov    %rbx,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
je     1525 <is_ignored_symbol+0x3d5>
lea    0xcaf(%rip),%rsi
mov    %rbx,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
jne    14bb <is_ignored_symbol+0x36b>
xor    %ebp,%ebp
jmp    14bb <is_ignored_symbol+0x36b>

LLVM IR (-O0):
@is_ignored_symbol.ignored_symbols = internal constant [11 x i8*] [i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.7, i32 0, i32 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.8, i32 0, i32 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.9, i32 0, i32 0), i8* null]
@.str = [19 x i8] c"kallsyms_addresses\00"
@.str.1 = [17 x i8] c"kallsyms_offsets\00"
@.str.2 = [23 x i8] c"kallsyms_relative_base\00"
@.str.3 = [18 x i8] c"kallsyms_num_syms\00"
@.str.4 = [15 x i8] c"kallsyms_names\00"
@.str.5 = [17 x i8] c"kallsyms_markers\00"
@.str.6 = [21 x i8] c"kallsyms_token_table\00"
@.str.7 = [21 x i8] c"kallsyms_token_index\00"
@.str.8 = [11 x i8] c"_SDA_BASE_\00"
@.str.9 = [12 x i8] c"_SDA2_BASE_\00"
@is_ignored_symbol.ignored_prefixes = internal constant [12 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.11, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.12, i32 0, i32 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.13, i32 0, i32 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.14, i32 0, i32 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.15, i32 0, i32 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.16, i32 0, i32 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.17, i32 0, i32 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.18, i32 0, i32 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.19, i32 0, i32 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.20, i32 0, i32 0), i8* null]
@.str.10 = [2 x i8] c"$\00"
@.str.11 = [9 x i8] c".LASANPC\00"
@.str.12 = [7 x i8] c"__crc_\00"
@.str.13 = [11 x i8] c"__efistub_\00"
@.str.14 = [12 x i8] c"__kvm_nvhe_\00"
@.str.15 = [20 x i8] c"__AArch64ADRPThunk_\00"
@.str.16 = [20 x i8] c"__ARMV5PILongThunk_\00"
@.str.17 = [20 x i8] c"__ARMV7PILongThunk_\00"
@.str.18 = [22 x i8] c"__ThumbV7PILongThunk_\00"
@.str.19 = [13 x i8] c"__LA25Thunk_\00"
@.str.20 = [18 x i8] c"__microLA25Thunk_\00"
@is_ignored_symbol.ignored_suffixes = internal constant [4 x i8*] [i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.21, i32 0, i32 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.22, i32 0, i32 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.23, i32 0, i32 0), i8* null]
@.str.21 = [10 x i8] c"_from_arm\00"
@.str.22 = [12 x i8] c"_from_thumb\00"
@.str.23 = [8 x i8] c"_veneer\00"
@is_ignored_symbol.ignored_matches = internal constant [3 x i8*] [i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.24, i32 0, i32 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.25, i32 0, i32 0), i8* null]
@.str.24 = [14 x i8] c".long_branch.\00"
@.str.25 = [13 x i8] c".plt_branch.\00"
@.str.26 = [27 x i8] c"__kernel_syscall_via_break\00"
@.str.27 = [25 x i8] c"__kernel_syscall_via_epc\00"
@.str.28 = [18 x i8] c"__kernel_sigtramp\00"
@.str.29 = [5 x i8] c"__gp\00"
define i32 @is_ignored_symbol(i8* %0, i8 signext %1) {
%3 = alloca i32
%4 = alloca i8*
%5 = alloca i8
%6 = alloca i8**
%7 = alloca i32
store i8* %0, i8** %4
store i8 %1, i8* %5
store i8** getelementptr inbounds ([11 x i8*], [11 x i8*]* @is_ignored_symbol.ignored_symbols, i64 0, i64 0), i8*** %6
br label %8
8: ; preds = %20, %2
%9 = load i8**, i8*** %6
%10 = load i8*, i8** %9
%11 = icmp ne i8* %10, null
br i1 %11, label %12, label %23
12: ; preds = %8
%13 = load i8*, i8** %4
%14 = load i8**, i8*** %6
%15 = load i8*, i8** %14
%16 = call i64 @strcmp(i8* %13, i8* %15)
%17 = icmp ne i64 %16, 0
br i1 %17, label %19, label %18
18: ; preds = %12
store i32 1, i32* %3
br label %128
19: ; preds = %12
br label %20
20: ; preds = %19
%21 = load i8**, i8*** %6
%22 = getelementptr inbounds i8*, i8** %21, i32 1
store i8** %22, i8*** %6
br label %8
23: ; preds = %8
store i8** getelementptr inbounds ([12 x i8*], [12 x i8*]* @is_ignored_symbol.ignored_prefixes, i64 0, i64 0), i8*** %6
br label %24
24: ; preds = %39, %23
%25 = load i8**, i8*** %6
%26 = load i8*, i8** %25
%27 = icmp ne i8* %26, null
br i1 %27, label %28, label %42
28: ; preds = %24
%29 = load i8*, i8** %4
%30 = load i8**, i8*** %6
%31 = load i8*, i8** %30
%32 = load i8**, i8*** %6
%33 = load i8*, i8** %32
%34 = call i32 @strlen(i8* %33)
%35 = call i32 @strncmp(i8* %29, i8* %31, i32 %34)
%36 = icmp ne i32 %35, 0
br i1 %36, label %38, label %37
37: ; preds = %28
store i32 1, i32* %3
br label %128
38: ; preds = %28
br label %39
39: ; preds = %38
%40 = load i8**, i8*** %6
%41 = getelementptr inbounds i8*, i8** %40, i32 1
store i8** %41, i8*** %6
br label %24
42: ; preds = %24
store i8** getelementptr inbounds ([4 x i8*], [4 x i8*]* @is_ignored_symbol.ignored_suffixes, i64 0, i64 0), i8*** %6
br label %43
43: ; preds = %67, %42
%44 = load i8**, i8*** %6
%45 = load i8*, i8** %44
%46 = icmp ne i8* %45, null
br i1 %46, label %47, label %70
47: ; preds = %43
%48 = load i8*, i8** %4
%49 = call i32 @strlen(i8* %48)
%50 = load i8**, i8*** %6
%51 = load i8*, i8** %50
%52 = call i32 @strlen(i8* %51)
%53 = sub nsw i32 %49, %52
store i32 %53, i32* %7
%54 = load i32, i32* %7
%55 = icmp sge i32 %54, 0
br i1 %55, label %56, label %66
56: ; preds = %47
%57 = load i8*, i8** %4
%58 = load i32, i32* %7
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds i8, i8* %57, i64 %59
%61 = load i8**, i8*** %6
%62 = load i8*, i8** %61
%63 = call i64 @strcmp(i8* %60, i8* %62)
%64 = icmp ne i64 %63, 0
br i1 %64, label %66, label %65
65: ; preds = %56
store i32 1, i32* %3
br label %128
66: ; preds = %56, %47
br label %67
67: ; preds = %66
%68 = load i8**, i8*** %6
%69 = getelementptr inbounds i8*, i8** %68, i32 1
store i8** %69, i8*** %6
br label %43
70: ; preds = %43
store i8** getelementptr inbounds ([3 x i8*], [3 x i8*]* @is_ignored_symbol.ignored_matches, i64 0, i64 0), i8*** %6
br label %71
71: ; preds = %83, %70
%72 = load i8**, i8*** %6
%73 = load i8*, i8** %72
%74 = icmp ne i8* %73, null
br i1 %74, label %75, label %86
75: ; preds = %71
%76 = load i8*, i8** %4
%77 = load i8**, i8*** %6
%78 = load i8*, i8** %77
%79 = call i64 @strstr(i8* %76, i8* %78)
%80 = icmp ne i64 %79, 0
br i1 %80, label %81, label %82
81: ; preds = %75
store i32 1, i32* %3
br label %128
82: ; preds = %75
br label %83
83: ; preds = %82
%84 = load i8**, i8*** %6
%85 = getelementptr inbounds i8*, i8** %84, i32 1
store i8** %85, i8*** %6
br label %71
86: ; preds = %71
%87 = load i8, i8* %5
%88 = sext i8 %87 to i32
%89 = icmp eq i32 %88, 85
br i1 %89, label %94, label %90
90: ; preds = %86
%91 = load i8, i8* %5
%92 = sext i8 %91 to i32
%93 = icmp eq i32 %92, 117
br i1 %93, label %94, label %95
94: ; preds = %90, %86
store i32 1, i32* %3
br label %128
95: ; preds = %90
%96 = load i8, i8* %5
%97 = sext i8 %96 to i32
%98 = icmp eq i32 %97, 78
br i1 %98, label %103, label %99
99: ; preds = %95
%100 = load i8, i8* %5
%101 = sext i8 %100 to i32
%102 = icmp eq i32 %101, 110
br i1 %102, label %103, label %104
103: ; preds = %99, %95
store i32 1, i32* %3
br label %128
104: ; preds = %99
%105 = load i8, i8* %5
%106 = call signext i8 @toupper(i8 signext %105)
%107 = sext i8 %106 to i32
%108 = icmp eq i32 %107, 65
br i1 %108, label %109, label %127
109: ; preds = %104
%110 = load i8*, i8** %4
%111 = call i64 @strcmp(i8* %110, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.26, i64 0, i64 0))
%112 = icmp ne i64 %111, 0
br i1 %112, label %113, label %126
113: ; preds = %109
%114 = load i8*, i8** %4
%115 = call i64 @strcmp(i8* %114, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.27, i64 0, i64 0))
%116 = icmp ne i64 %115, 0
br i1 %116, label %117, label %126
117: ; preds = %113
%118 = load i8*, i8** %4
%119 = call i64 @strcmp(i8* %118, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.28, i64 0, i64 0))
%120 = icmp ne i64 %119, 0
br i1 %120, label %121, label %126
121: ; preds = %117
%122 = load i8*, i8** %4
%123 = call i64 @strcmp(i8* %122, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.29, i64 0, i64 0))
%124 = icmp ne i64 %123, 0
br i1 %124, label %125, label %126
125: ; preds = %121
store i32 1, i32* %3
br label %128
126: ; preds = %121, %117, %113, %109
br label %127
127: ; preds = %126, %104
store i32 0, i32* %3
br label %128
128: ; preds = %127, %125, %103, %94, %81, %65, %37, %18
%129 = load i32, i32* %3
ret i32 %129
}

LLVM IR (-O2):
@.str = [19 x i8] c"kallsyms_addresses\00"
@.str.1 = [17 x i8] c"kallsyms_offsets\00"
@.str.2 = [23 x i8] c"kallsyms_relative_base\00"
@.str.3 = [18 x i8] c"kallsyms_num_syms\00"
@.str.4 = [15 x i8] c"kallsyms_names\00"
@.str.5 = [17 x i8] c"kallsyms_markers\00"
@.str.6 = [21 x i8] c"kallsyms_token_table\00"
@.str.7 = [21 x i8] c"kallsyms_token_index\00"
@.str.8 = [11 x i8] c"_SDA_BASE_\00"
@.str.9 = [12 x i8] c"_SDA2_BASE_\00"
@.str.10 = [2 x i8] c"$\00"
@.str.11 = [9 x i8] c".LASANPC\00"
@.str.12 = [7 x i8] c"__crc_\00"
@.str.13 = [11 x i8] c"__efistub_\00"
@.str.14 = [12 x i8] c"__kvm_nvhe_\00"
@.str.15 = [20 x i8] c"__AArch64ADRPThunk_\00"
@.str.16 = [20 x i8] c"__ARMV5PILongThunk_\00"
@.str.17 = [20 x i8] c"__ARMV7PILongThunk_\00"
@.str.18 = [22 x i8] c"__ThumbV7PILongThunk_\00"
@.str.19 = [13 x i8] c"__LA25Thunk_\00"
@.str.20 = [18 x i8] c"__microLA25Thunk_\00"
@.str.21 = [10 x i8] c"_from_arm\00"
@.str.22 = [12 x i8] c"_from_thumb\00"
@.str.23 = [8 x i8] c"_veneer\00"
@.str.24 = [14 x i8] c".long_branch.\00"
@.str.25 = [13 x i8] c".plt_branch.\00"
@.str.26 = [27 x i8] c"__kernel_syscall_via_break\00"
@.str.27 = [25 x i8] c"__kernel_syscall_via_epc\00"
@.str.28 = [18 x i8] c"__kernel_sigtramp\00"
@.str.29 = [5 x i8] c"__gp\00"
define i32 @is_ignored_symbol(i8* %0, i8 signext %1) {
%3 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0))
%4 = icmp eq i64 %3, 0
br i1 %4, label %129, label %5
5: ; preds = %2
%6 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0))
%7 = icmp eq i64 %6, 0
br i1 %7, label %129, label %8
8: ; preds = %5
%9 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0))
%10 = icmp eq i64 %9, 0
br i1 %10, label %129, label %11
11: ; preds = %8
%12 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0))
%13 = icmp eq i64 %12, 0
br i1 %13, label %129, label %14
14: ; preds = %11
%15 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0))
%16 = icmp eq i64 %15, 0
br i1 %16, label %129, label %17
17: ; preds = %14
%18 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.5, i64 0, i64 0))
%19 = icmp eq i64 %18, 0
br i1 %19, label %129, label %20
20: ; preds = %17
%21 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.6, i64 0, i64 0))
%22 = icmp eq i64 %21, 0
br i1 %22, label %129, label %23
23: ; preds = %20
%24 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.7, i64 0, i64 0))
%25 = icmp eq i64 %24, 0
br i1 %25, label %129, label %26
26: ; preds = %23
%27 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.8, i64 0, i64 0))
%28 = icmp eq i64 %27, 0
br i1 %28, label %129, label %29
29: ; preds = %26
%30 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.9, i64 0, i64 0))
%31 = icmp eq i64 %30, 0
br i1 %31, label %129, label %32
32: ; preds = %29
%33 = tail call i32 @strlen(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0))
%34 = tail call i32 @strncmp(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0), i32 %33)
%35 = icmp eq i32 %34, 0
br i1 %35, label %129, label %36
36: ; preds = %32
%37 = tail call i32 @strlen(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.11, i64 0, i64 0))
%38 = tail call i32 @strncmp(i8* %0, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.11, i64 0, i64 0), i32 %37)
%39 = icmp eq i32 %38, 0
br i1 %39, label %129, label %40
40: ; preds = %36
%41 = tail call i32 @strlen(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.12, i64 0, i64 0))
%42 = tail call i32 @strncmp(i8* %0, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.12, i64 0, i64 0), i32 %41)
%43 = icmp eq i32 %42, 0
br i1 %43, label %129, label %44
44: ; preds = %40
%45 = tail call i32 @strlen(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.13, i64 0, i64 0))
%46 = tail call i32 @strncmp(i8* %0, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.13, i64 0, i64 0), i32 %45)
%47 = icmp eq i32 %46, 0
br i1 %47, label %129, label %48
48: ; preds = %44
%49 = tail call i32 @strlen(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.14, i64 0, i64 0))
%50 = tail call i32 @strncmp(i8* %0, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.14, i64 0, i64 0), i32 %49)
%51 = icmp eq i32 %50, 0
br i1 %51, label %129, label %52
52: ; preds = %48
%53 = tail call i32 @strlen(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.15, i64 0, i64 0))
%54 = tail call i32 @strncmp(i8* %0, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.15, i64 0, i64 0), i32 %53)
%55 = icmp eq i32 %54, 0
br i1 %55, label %129, label %56
56: ; preds = %52
%57 = tail call i32 @strlen(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.16, i64 0, i64 0))
%58 = tail call i32 @strncmp(i8* %0, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.16, i64 0, i64 0), i32 %57)
%59 = icmp eq i32 %58, 0
br i1 %59, label %129, label %60
60: ; preds = %56
%61 = tail call i32 @strlen(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.17, i64 0, i64 0))
%62 = tail call i32 @strncmp(i8* %0, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.17, i64 0, i64 0), i32 %61)
%63 = icmp eq i32 %62, 0
br i1 %63, label %129, label %64
64: ; preds = %60
%65 = tail call i32 @strlen(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.18, i64 0, i64 0))
%66 = tail call i32 @strncmp(i8* %0, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.18, i64 0, i64 0), i32 %65)
%67 = icmp eq i32 %66, 0
br i1 %67, label %129, label %68
68: ; preds = %64
%69 = tail call i32 @strlen(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.19, i64 0, i64 0))
%70 = tail call i32 @strncmp(i8* %0, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.19, i64 0, i64 0), i32 %69)
%71 = icmp eq i32 %70, 0
br i1 %71, label %129, label %72
72: ; preds = %68
%73 = tail call i32 @strlen(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.20, i64 0, i64 0))
%74 = tail call i32 @strncmp(i8* %0, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.20, i64 0, i64 0), i32 %73)
%75 = icmp eq i32 %74, 0
br i1 %75, label %129, label %76
76: ; preds = %72
%77 = tail call i32 @strlen(i8* %0)
%78 = tail call i32 @strlen(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.21, i64 0, i64 0))
%79 = sub nsw i32 %77, %78
%80 = icmp sgt i32 %79, -1
br i1 %80, label %81, label %86
81: ; preds = %76
%82 = zext i32 %79 to i64
%83 = getelementptr inbounds i8, i8* %0, i64 %82
%84 = tail call i64 @strcmp(i8* %83, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.21, i64 0, i64 0))
%85 = icmp eq i64 %84, 0
br i1 %85, label %129, label %86
86: ; preds = %76, %81
%87 = tail call i32 @strlen(i8* %0)
%88 = tail call i32 @strlen(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.22, i64 0, i64 0))
%89 = sub nsw i32 %87, %88
%90 = icmp sgt i32 %89, -1
br i1 %90, label %91, label %96
91: ; preds = %86
%92 = zext i32 %89 to i64
%93 = getelementptr inbounds i8, i8* %0, i64 %92
%94 = tail call i64 @strcmp(i8* %93, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.22, i64 0, i64 0))
%95 = icmp eq i64 %94, 0
br i1 %95, label %129, label %96
96: ; preds = %91, %86
%97 = tail call i32 @strlen(i8* %0)
%98 = tail call i32 @strlen(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.23, i64 0, i64 0))
%99 = sub nsw i32 %97, %98
%100 = icmp sgt i32 %99, -1
br i1 %100, label %101, label %106
101: ; preds = %96
%102 = zext i32 %99 to i64
%103 = getelementptr inbounds i8, i8* %0, i64 %102
%104 = tail call i64 @strcmp(i8* %103, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.23, i64 0, i64 0))
%105 = icmp eq i64 %104, 0
br i1 %105, label %129, label %106
106: ; preds = %101, %96
%107 = tail call i64 @strstr(i8* %0, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.24, i64 0, i64 0))
%108 = icmp eq i64 %107, 0
br i1 %108, label %109, label %129
109: ; preds = %106
%110 = tail call i64 @strstr(i8* %0, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.25, i64 0, i64 0))
%111 = icmp eq i64 %110, 0
br i1 %111, label %112, label %129
112: ; preds = %109
switch i8 %1, label %113 [
i8 117, label %129
i8 110, label %129
i8 85, label %129
i8 78, label %129
]
113: ; preds = %112
%114 = tail call signext i8 @toupper(i8 signext %1)
%115 = icmp eq i8 %114, 65
br i1 %115, label %116, label %128
116: ; preds = %113
%117 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.26, i64 0, i64 0))
%118 = icmp eq i64 %117, 0
br i1 %118, label %128, label %119
119: ; preds = %116
%120 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.27, i64 0, i64 0))
%121 = icmp eq i64 %120, 0
br i1 %121, label %128, label %122
122: ; preds = %119
%123 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.28, i64 0, i64 0))
%124 = icmp eq i64 %123, 0
br i1 %124, label %128, label %125
125: ; preds = %122
%126 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.29, i64 0, i64 0))
%127 = icmp eq i64 %126, 0
br i1 %127, label %128, label %129
128: ; preds = %116, %119, %122, %125, %113
br label %129
129: ; preds = %2, %5, %8, %11, %14, %17, %20, %23, %26, %29, %32, %36, %40, %44, %48, %52, %56, %60, %64, %68, %72, %81, %91, %101, %106, %109, %112, %112, %112, %112, %125, %128
%130 = phi i32 [ 0, %128 ], [ 1, %112 ], [ 1, %125 ], [ 1, %112 ], [ 1, %112 ], [ 1, %112 ], [ 1, %109 ], [ 1, %106 ], [ 1, %101 ], [ 1, %91 ], [ 1, %81 ], [ 1, %72 ], [ 1, %68 ], [ 1, %64 ], [ 1, %60 ], [ 1, %56 ], [ 1, %52 ], [ 1, %48 ], [ 1, %44 ], [ 1, %40 ], [ 1, %36 ], [ 1, %32 ], [ 1, %29 ], [ 1, %26 ], [ 1, %23 ], [ 1, %20 ], [ 1, %17 ], [ 1, %14 ], [ 1, %11 ], [ 1, %8 ], [ 1, %5 ], [ 1, %2 ]
ret i32 %130
}