#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_", 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    0x2be7(%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    0x2bf2(%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    0xd9e(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     13db <is_ignored_symbol+0x28b>
mov    -0x10(%rbp),%rdi
lea    0xd9f(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     13db <is_ignored_symbol+0x28b>
mov    -0x10(%rbp),%rdi
lea    0xd9e(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     13db <is_ignored_symbol+0x28b>
mov    -0x10(%rbp),%rdi
lea    0xd96(%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     13e3 <is_ignored_symbol+0x293>
lea    0xe95(%rip),%rsi
mov    %rbx,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
je     13e3 <is_ignored_symbol+0x293>
lea    0xe8e(%rip),%rsi
mov    %rbx,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
je     13e3 <is_ignored_symbol+0x293>
lea    0xe8d(%rip),%rsi
mov    %rbx,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
je     13e3 <is_ignored_symbol+0x293>
lea    0xe87(%rip),%rsi
mov    %rbx,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
je     13e3 <is_ignored_symbol+0x293>
lea    0xe7e(%rip),%rsi
mov    %rbx,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
je     13e3 <is_ignored_symbol+0x293>
lea    0xe77(%rip),%rsi
mov    %rbx,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
je     13e3 <is_ignored_symbol+0x293>
lea    0xe74(%rip),%rsi
mov    %rbx,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
je     13e3 <is_ignored_symbol+0x293>
lea    0xe71(%rip),%rsi
mov    %rbx,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
je     13e3 <is_ignored_symbol+0x293>
lea    0xe64(%rip),%rsi
mov    %rbx,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
je     13e3 <is_ignored_symbol+0x293>
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     13e3 <is_ignored_symbol+0x293>
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     13e3 <is_ignored_symbol+0x293>
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     13e3 <is_ignored_symbol+0x293>
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     13e3 <is_ignored_symbol+0x293>
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     13e3 <is_ignored_symbol+0x293>
mov    %rbx,%rdi
call   1050 <strlen@plt>
mov    %eax,%r15d
lea    0xdc2(%rip),%rdi
call   1050 <strlen@plt>
sub    %eax,%r15d
js     133a <is_ignored_symbol+0x1ea>
mov    %r15d,%edi
add    %rbx,%rdi
lea    0xdab(%rip),%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
je     13e3 <is_ignored_symbol+0x293>
mov    %rbx,%rdi
call   1050 <strlen@plt>
mov    %eax,%r15d
lea    0xd95(%rip),%rdi
call   1050 <strlen@plt>
sub    %eax,%r15d
js     136d <is_ignored_symbol+0x21d>
mov    %r15d,%edi
add    %rbx,%rdi
lea    0xd7e(%rip),%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
je     13e3 <is_ignored_symbol+0x293>
mov    %rbx,%rdi
call   1050 <strlen@plt>
mov    %eax,%r15d
lea    0xd6e(%rip),%rdi
call   1050 <strlen@plt>
sub    %eax,%r15d
js     13a0 <is_ignored_symbol+0x250>
mov    %r15d,%edi
add    %rbx,%rdi
lea    0xd57(%rip),%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
je     13e3 <is_ignored_symbol+0x293>
lea    0xd4e(%rip),%rsi
mov    %rbx,%rdi
call   1070 <strstr@plt>
test   %rax,%rax
jne    13e3 <is_ignored_symbol+0x293>
lea    0xd48(%rip),%rsi
mov    %rbx,%rdi
call   1070 <strstr@plt>
test   %rax,%rax
jne    13e3 <is_ignored_symbol+0x293>
lea    -0x4e(%r14),%eax
cmp    $0x27,%al
ja     13f0 <is_ignored_symbol+0x2a0>
movzbl %al,%eax
movabs $0x8100000081,%rcx
bt     %rax,%rcx
jae    13f0 <is_ignored_symbol+0x2a0>
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    144d <is_ignored_symbol+0x2fd>
lea    0xd0c(%rip),%rsi
mov    %rbx,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
je     144d <is_ignored_symbol+0x2fd>
lea    0xd13(%rip),%rsi
mov    %rbx,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
je     144d <is_ignored_symbol+0x2fd>
lea    0xd18(%rip),%rsi
mov    %rbx,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
je     144d <is_ignored_symbol+0x2fd>
lea    0xd16(%rip),%rsi
mov    %rbx,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
jne    13e3 <is_ignored_symbol+0x293>
xor    %ebp,%ebp
jmp    13e3 <is_ignored_symbol+0x293>

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 [6 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* 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"
@is_ignored_symbol.ignored_suffixes = internal constant [4 x i8*] [i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.15, i32 0, i32 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.16, i32 0, i32 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.17, i32 0, i32 0), i8* null]
@.str.15 = [10 x i8] c"_from_arm\00"
@.str.16 = [12 x i8] c"_from_thumb\00"
@.str.17 = [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.18, i32 0, i32 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.19, i32 0, i32 0), i8* null]
@.str.18 = [14 x i8] c".long_branch.\00"
@.str.19 = [13 x i8] c".plt_branch.\00"
@.str.20 = [27 x i8] c"__kernel_syscall_via_break\00"
@.str.21 = [25 x i8] c"__kernel_syscall_via_epc\00"
@.str.22 = [18 x i8] c"__kernel_sigtramp\00"
@.str.23 = [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 ([6 x i8*], [6 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.20, 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.21, 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.22, 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.23, 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 = [10 x i8] c"_from_arm\00"
@.str.16 = [12 x i8] c"_from_thumb\00"
@.str.17 = [8 x i8] c"_veneer\00"
@.str.18 = [14 x i8] c".long_branch.\00"
@.str.19 = [13 x i8] c".plt_branch.\00"
@.str.20 = [27 x i8] c"__kernel_syscall_via_break\00"
@.str.21 = [25 x i8] c"__kernel_syscall_via_epc\00"
@.str.22 = [18 x i8] c"__kernel_sigtramp\00"
@.str.23 = [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 %105, 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 %105, 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 %105, 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 %105, 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 %105, 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 %105, 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 %105, 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 %105, 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 %105, 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 %105, 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 %105, 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 %105, 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 %105, 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 %105, 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 %105, label %52
52: ; preds = %48
%53 = tail call i32 @strlen(i8* %0)
%54 = tail call i32 @strlen(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.15, i64 0, i64 0))
%55 = sub nsw i32 %53, %54
%56 = icmp sgt i32 %55, -1
br i1 %56, label %57, label %62
57: ; preds = %52
%58 = zext i32 %55 to i64
%59 = getelementptr inbounds i8, i8* %0, i64 %58
%60 = tail call i64 @strcmp(i8* %59, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.15, i64 0, i64 0))
%61 = icmp eq i64 %60, 0
br i1 %61, label %105, label %62
62: ; preds = %52, %57
%63 = tail call i32 @strlen(i8* %0)
%64 = tail call i32 @strlen(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.16, i64 0, i64 0))
%65 = sub nsw i32 %63, %64
%66 = icmp sgt i32 %65, -1
br i1 %66, label %67, label %72
67: ; preds = %62
%68 = zext i32 %65 to i64
%69 = getelementptr inbounds i8, i8* %0, i64 %68
%70 = tail call i64 @strcmp(i8* %69, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.16, i64 0, i64 0))
%71 = icmp eq i64 %70, 0
br i1 %71, label %105, label %72
72: ; preds = %67, %62
%73 = tail call i32 @strlen(i8* %0)
%74 = tail call i32 @strlen(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.17, i64 0, i64 0))
%75 = sub nsw i32 %73, %74
%76 = icmp sgt i32 %75, -1
br i1 %76, label %77, label %82
77: ; preds = %72
%78 = zext i32 %75 to i64
%79 = getelementptr inbounds i8, i8* %0, i64 %78
%80 = tail call i64 @strcmp(i8* %79, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.17, i64 0, i64 0))
%81 = icmp eq i64 %80, 0
br i1 %81, label %105, label %82
82: ; preds = %77, %72
%83 = tail call i64 @strstr(i8* %0, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.18, i64 0, i64 0))
%84 = icmp eq i64 %83, 0
br i1 %84, label %85, label %105
85: ; preds = %82
%86 = tail call i64 @strstr(i8* %0, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.19, i64 0, i64 0))
%87 = icmp eq i64 %86, 0
br i1 %87, label %88, label %105
88: ; preds = %85
switch i8 %1, label %89 [
i8 117, label %105
i8 110, label %105
i8 85, label %105
i8 78, label %105
]
89: ; preds = %88
%90 = tail call signext i8 @toupper(i8 signext %1)
%91 = icmp eq i8 %90, 65
br i1 %91, label %92, label %104
92: ; preds = %89
%93 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.20, i64 0, i64 0))
%94 = icmp eq i64 %93, 0
br i1 %94, label %104, label %95
95: ; preds = %92
%96 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.21, i64 0, i64 0))
%97 = icmp eq i64 %96, 0
br i1 %97, label %104, label %98
98: ; preds = %95
%99 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.22, i64 0, i64 0))
%100 = icmp eq i64 %99, 0
br i1 %100, label %104, label %101
101: ; preds = %98
%102 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.23, i64 0, i64 0))
%103 = icmp eq i64 %102, 0
br i1 %103, label %104, label %105
104: ; preds = %92, %95, %98, %101, %89
br label %105
105: ; preds = %2, %5, %8, %11, %14, %17, %20, %23, %26, %29, %32, %36, %40, %44, %48, %57, %67, %77, %82, %85, %88, %88, %88, %88, %101, %104
%106 = phi i32 [ 0, %104 ], [ 1, %88 ], [ 1, %101 ], [ 1, %88 ], [ 1, %88 ], [ 1, %88 ], [ 1, %85 ], [ 1, %82 ], [ 1, %77 ], [ 1, %67 ], [ 1, %57 ], [ 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 %106
}