#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);
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};
  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;
  }
  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    0x2c17(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rax
cmpq   $0x0,(%rax)
je     11a7 <is_ignored_symbol+0x67>
mov    -0x10(%rbp),%rdi
mov    -0x20(%rbp),%rax
mov    (%rax),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    1191 <is_ignored_symbol+0x51>
movl   $0x1,-0x4(%rbp)
jmp    1382 <is_ignored_symbol+0x242>
jmp    1196 <is_ignored_symbol+0x56>
mov    -0x20(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x20(%rbp)
jmp    115d <is_ignored_symbol+0x1d>
lea    0x2c22(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rax
cmpq   $0x0,(%rax)
je     1219 <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    1203 <is_ignored_symbol+0xc3>
movl   $0x1,-0x4(%rbp)
jmp    1382 <is_ignored_symbol+0x242>
jmp    1208 <is_ignored_symbol+0xc8>
mov    -0x20(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x20(%rbp)
jmp    11b2 <is_ignored_symbol+0x72>
lea    0x2be0(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rax
cmpq   $0x0,(%rax)
je     12a1 <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     128b <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    128b <is_ignored_symbol+0x14b>
movl   $0x1,-0x4(%rbp)
jmp    1382 <is_ignored_symbol+0x242>
jmp    1290 <is_ignored_symbol+0x150>
mov    -0x20(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x20(%rbp)
jmp    1224 <is_ignored_symbol+0xe4>
movsbl -0x11(%rbp),%eax
cmp    $0x55,%eax
je     12bb <is_ignored_symbol+0x17b>
movsbl -0x11(%rbp),%eax
cmp    $0x75,%eax
jne    12c7 <is_ignored_symbol+0x187>
movl   $0x1,-0x4(%rbp)
jmp    1382 <is_ignored_symbol+0x242>
movsbl -0x11(%rbp),%eax
cmp    $0x4e,%eax
je     12e1 <is_ignored_symbol+0x1a1>
movsbl -0x11(%rbp),%eax
cmp    $0x6e,%eax
jne    12ed <is_ignored_symbol+0x1ad>
movl   $0x1,-0x4(%rbp)
jmp    1382 <is_ignored_symbol+0x242>
movsbl -0x11(%rbp),%edi
call   1040 <toupper@plt>
movsbl %al,%eax
cmp    $0x41,%eax
jne    137b <is_ignored_symbol+0x23b>
mov    -0x10(%rbp),%rdi
lea    0xde8(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     1376 <is_ignored_symbol+0x236>
mov    -0x10(%rbp),%rdi
lea    0xde9(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     1376 <is_ignored_symbol+0x236>
mov    -0x10(%rbp),%rdi
lea    0xde8(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     1376 <is_ignored_symbol+0x236>
mov    -0x10(%rbp),%rdi
lea    0xde0(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     1376 <is_ignored_symbol+0x236>
movl   $0x1,-0x4(%rbp)
jmp    1382 <is_ignored_symbol+0x242>
jmp    137b <is_ignored_symbol+0x23b>
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    0xeac(%rip),%rsi
call   1060 <strcmp@plt>
mov    $0x1,%ebp
test   %rax,%rax
je     13ab <is_ignored_symbol+0x26b>
lea    0xea5(%rip),%rsi
mov    %rbx,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
je     13ab <is_ignored_symbol+0x26b>
lea    0xe9e(%rip),%rsi
mov    %rbx,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
je     13ab <is_ignored_symbol+0x26b>
lea    0xe9d(%rip),%rsi
mov    %rbx,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
je     13ab <is_ignored_symbol+0x26b>
lea    0xe97(%rip),%rsi
mov    %rbx,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
je     13ab <is_ignored_symbol+0x26b>
lea    0xe8e(%rip),%rsi
mov    %rbx,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
je     13ab <is_ignored_symbol+0x26b>
lea    0xe87(%rip),%rsi
mov    %rbx,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
je     13ab <is_ignored_symbol+0x26b>
lea    0xe84(%rip),%rsi
mov    %rbx,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
je     13ab <is_ignored_symbol+0x26b>
lea    0xe81(%rip),%rsi
mov    %rbx,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
je     13ab <is_ignored_symbol+0x26b>
lea    0xe74(%rip),%rsi
mov    %rbx,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
je     13ab <is_ignored_symbol+0x26b>
lea    0xe68(%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     13ab <is_ignored_symbol+0x26b>
lea    0xe46(%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     13ab <is_ignored_symbol+0x26b>
lea    0xe2b(%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     13ab <is_ignored_symbol+0x26b>
lea    0xe0e(%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     13ab <is_ignored_symbol+0x26b>
lea    0xdf5(%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     13ab <is_ignored_symbol+0x26b>
mov    %rbx,%rdi
call   1050 <strlen@plt>
mov    %eax,%r15d
lea    0xdd2(%rip),%rdi
call   1050 <strlen@plt>
sub    %eax,%r15d
js     132a <is_ignored_symbol+0x1ea>
mov    %r15d,%edi
add    %rbx,%rdi
lea    0xdbb(%rip),%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
je     13ab <is_ignored_symbol+0x26b>
mov    %rbx,%rdi
call   1050 <strlen@plt>
mov    %eax,%r15d
lea    0xda5(%rip),%rdi
call   1050 <strlen@plt>
sub    %eax,%r15d
js     135d <is_ignored_symbol+0x21d>
mov    %r15d,%edi
add    %rbx,%rdi
lea    0xd8e(%rip),%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
je     13ab <is_ignored_symbol+0x26b>
mov    %rbx,%rdi
call   1050 <strlen@plt>
mov    %eax,%r15d
lea    0xd7e(%rip),%rdi
call   1050 <strlen@plt>
sub    %eax,%r15d
js     1390 <is_ignored_symbol+0x250>
mov    %r15d,%edi
add    %rbx,%rdi
lea    0xd67(%rip),%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
je     13ab <is_ignored_symbol+0x26b>
lea    -0x4e(%r14),%eax
cmp    $0x27,%al
ja     13b8 <is_ignored_symbol+0x278>
movzbl %al,%eax
movabs $0x8100000081,%rcx
bt     %rax,%rcx
jae    13b8 <is_ignored_symbol+0x278>
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    1415 <is_ignored_symbol+0x2d5>
lea    0xd29(%rip),%rsi
mov    %rbx,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
je     1415 <is_ignored_symbol+0x2d5>
lea    0xd30(%rip),%rsi
mov    %rbx,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
je     1415 <is_ignored_symbol+0x2d5>
lea    0xd35(%rip),%rsi
mov    %rbx,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
je     1415 <is_ignored_symbol+0x2d5>
lea    0xd33(%rip),%rsi
mov    %rbx,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
jne    13ab <is_ignored_symbol+0x26b>
xor    %ebp,%ebp
jmp    13ab <is_ignored_symbol+0x26b>

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"
@.str.18 = [27 x i8] c"__kernel_syscall_via_break\00"
@.str.19 = [25 x i8] c"__kernel_syscall_via_epc\00"
@.str.20 = [18 x i8] c"__kernel_sigtramp\00"
@.str.21 = [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 %112
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 %112
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 %112
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
%71 = load i8, i8* %5
%72 = sext i8 %71 to i32
%73 = icmp eq i32 %72, 85
br i1 %73, label %78, label %74
74: ; preds = %70
%75 = load i8, i8* %5
%76 = sext i8 %75 to i32
%77 = icmp eq i32 %76, 117
br i1 %77, label %78, label %79
78: ; preds = %74, %70
store i32 1, i32* %3
br label %112
79: ; preds = %74
%80 = load i8, i8* %5
%81 = sext i8 %80 to i32
%82 = icmp eq i32 %81, 78
br i1 %82, label %87, label %83
83: ; preds = %79
%84 = load i8, i8* %5
%85 = sext i8 %84 to i32
%86 = icmp eq i32 %85, 110
br i1 %86, label %87, label %88
87: ; preds = %83, %79
store i32 1, i32* %3
br label %112
88: ; preds = %83
%89 = load i8, i8* %5
%90 = call signext i8 @toupper(i8 signext %89)
%91 = sext i8 %90 to i32
%92 = icmp eq i32 %91, 65
br i1 %92, label %93, label %111
93: ; preds = %88
%94 = load i8*, i8** %4
%95 = call i64 @strcmp(i8* %94, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.18, i64 0, i64 0))
%96 = icmp ne i64 %95, 0
br i1 %96, label %97, label %110
97: ; preds = %93
%98 = load i8*, i8** %4
%99 = call i64 @strcmp(i8* %98, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.19, i64 0, i64 0))
%100 = icmp ne i64 %99, 0
br i1 %100, label %101, label %110
101: ; preds = %97
%102 = load i8*, i8** %4
%103 = call i64 @strcmp(i8* %102, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.20, i64 0, i64 0))
%104 = icmp ne i64 %103, 0
br i1 %104, label %105, label %110
105: ; preds = %101
%106 = load i8*, i8** %4
%107 = call i64 @strcmp(i8* %106, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.21, i64 0, i64 0))
%108 = icmp ne i64 %107, 0
br i1 %108, label %109, label %110
109: ; preds = %105
store i32 1, i32* %3
br label %112
110: ; preds = %105, %101, %97, %93
br label %111
111: ; preds = %110, %88
store i32 0, i32* %3
br label %112
112: ; preds = %111, %109, %87, %78, %65, %37, %18
%113 = load i32, i32* %3
ret i32 %113
}

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 = [27 x i8] c"__kernel_syscall_via_break\00"
@.str.19 = [25 x i8] c"__kernel_syscall_via_epc\00"
@.str.20 = [18 x i8] c"__kernel_sigtramp\00"
@.str.21 = [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 %99, 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 %99, 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 %99, 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 %99, 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 %99, 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 %99, 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 %99, 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 %99, 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 %99, 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 %99, 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 %99, 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 %99, 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 %99, 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 %99, 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 %99, 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 %99, 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 %99, 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 %99, label %82
82: ; preds = %77, %72
switch i8 %1, label %83 [
i8 117, label %99
i8 110, label %99
i8 85, label %99
i8 78, label %99
]
83: ; preds = %82
%84 = tail call signext i8 @toupper(i8 signext %1)
%85 = icmp eq i8 %84, 65
br i1 %85, label %86, label %98
86: ; preds = %83
%87 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.18, i64 0, i64 0))
%88 = icmp eq i64 %87, 0
br i1 %88, label %98, label %89
89: ; preds = %86
%90 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.19, i64 0, i64 0))
%91 = icmp eq i64 %90, 0
br i1 %91, label %98, label %92
92: ; preds = %89
%93 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.20, i64 0, i64 0))
%94 = icmp eq i64 %93, 0
br i1 %94, label %98, label %95
95: ; preds = %92
%96 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.21, i64 0, i64 0))
%97 = icmp eq i64 %96, 0
br i1 %97, label %98, label %99
98: ; preds = %86, %89, %92, %95, %83
br label %99
99: ; preds = %2, %5, %8, %11, %14, %17, %20, %23, %26, %29, %32, %36, %40, %44, %48, %57, %67, %77, %82, %82, %82, %82, %95, %98
%100 = phi i32 [ 0, %98 ], [ 1, %82 ], [ 1, %95 ], [ 1, %82 ], [ 1, %82 ], [ 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 %100
}