#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__ strcasecmp(char const *, char *);
char IsTextInfoID3FrameID(char *frameid) {
  const char *tags[38] = {
      "TALB", "TBPM", "TCOM", "TCON", "TCOP", "TDAT", "TDLY", "TENC",
      "TEXT", "TFLT", "TIME", "TIT1", "TIT2", "TIT3", "TKEY", "TLAN",
      "TLEN", "TMED", "TOAL", "TOFN", "TOLY", "TOPE", "TORY", "TOWN",
      "TPE1", "TPE2", "TPE3", "TPE4", "TPOS", "TPUB", "TRCK", "TRDA",
      "TRSN", "TRSO", "TSIZ", "TSRC", "TSSE", "TYER"};
  unsigned long ctr = 0;
  char found = 0;
  if (frameid == NULL)
    return 0;
  for (ctr = 0; ctr < 38; ctr++) {
    if (strcasecmp(tags[ctr], frameid) == 0) {
      found = 1;
      break;
    }
  }
  return found;
}


x86 assembly (clang, -O0):
<IsTextInfoID3FrameID>:
push   %rbp
mov    %rsp,%rbp
sub    $0x150,%rsp
mov    %rdi,-0x10(%rbp)
lea    -0x140(%rbp),%rdi
lea    0x2bb3(%rip),%rsi
mov    $0x130,%edx
call   1040 <memcpy@plt>
movq   $0x0,-0x148(%rbp)
movb   $0x0,-0x149(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    116d <IsTextInfoID3FrameID+0x4d>
movb   $0x0,-0x1(%rbp)
jmp    11d9 <IsTextInfoID3FrameID+0xb9>
movq   $0x0,-0x148(%rbp)
cmpq   $0x26,-0x148(%rbp)
26
jae    11d0 <IsTextInfoID3FrameID+0xb0>
mov    -0x148(%rbp),%rax
mov    -0x140(%rbp,%rax,8),%rdi
ff
mov    -0x10(%rbp),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%rax
jne    11b4 <IsTextInfoID3FrameID+0x94>
movb   $0x1,-0x149(%rbp)
jmp    11d0 <IsTextInfoID3FrameID+0xb0>
jmp    11b9 <IsTextInfoID3FrameID+0x99>
mov    -0x148(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x148(%rbp)
jmp    1178 <IsTextInfoID3FrameID+0x58>
mov    -0x149(%rbp),%al
mov    %al,-0x1(%rbp)
movsbl -0x1(%rbp),%eax
add    $0x150,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<IsTextInfoID3FrameID>:
push   %r15
push   %r14
push   %rbx
test   %rdi,%rdi
je     1151 <IsTextInfoID3FrameID+0x41>
mov    %rdi,%r14
xor    %ebx,%ebx
lea    0xf9a(%rip),%r15
cs nopw 0x0(%rax,%rax,1)
movslq (%rbx,%r15,1),%rdi
add    %r15,%rdi
mov    %r14,%rsi
call   1030 <strcasecmp@plt>
test   %rax,%rax
je     1155 <IsTextInfoID3FrameID+0x45>
add    $0x4,%rbx
cmp    $0x98,%rbx
jne    1130 <IsTextInfoID3FrameID+0x20>
xor    %eax,%eax
jmp    1157 <IsTextInfoID3FrameID+0x47>
mov    $0x1,%al
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [5 x i8] c"TALB\00"
@.str.1 = [5 x i8] c"TBPM\00"
@.str.2 = [5 x i8] c"TCOM\00"
@.str.3 = [5 x i8] c"TCON\00"
@.str.4 = [5 x i8] c"TCOP\00"
@.str.5 = [5 x i8] c"TDAT\00"
@.str.6 = [5 x i8] c"TDLY\00"
@.str.7 = [5 x i8] c"TENC\00"
@.str.8 = [5 x i8] c"TEXT\00"
@.str.9 = [5 x i8] c"TFLT\00"
@.str.10 = [5 x i8] c"TIME\00"
@.str.11 = [5 x i8] c"TIT1\00"
@.str.12 = [5 x i8] c"TIT2\00"
@.str.13 = [5 x i8] c"TIT3\00"
@.str.14 = [5 x i8] c"TKEY\00"
@.str.15 = [5 x i8] c"TLAN\00"
@.str.16 = [5 x i8] c"TLEN\00"
@.str.17 = [5 x i8] c"TMED\00"
@.str.18 = [5 x i8] c"TOAL\00"
@.str.19 = [5 x i8] c"TOFN\00"
@.str.20 = [5 x i8] c"TOLY\00"
@.str.21 = [5 x i8] c"TOPE\00"
@.str.22 = [5 x i8] c"TORY\00"
@.str.23 = [5 x i8] c"TOWN\00"
@.str.24 = [5 x i8] c"TPE1\00"
@.str.25 = [5 x i8] c"TPE2\00"
@.str.26 = [5 x i8] c"TPE3\00"
@.str.27 = [5 x i8] c"TPE4\00"
@.str.28 = [5 x i8] c"TPOS\00"
@.str.29 = [5 x i8] c"TPUB\00"
@.str.30 = [5 x i8] c"TRCK\00"
@.str.31 = [5 x i8] c"TRDA\00"
@.str.32 = [5 x i8] c"TRSN\00"
@.str.33 = [5 x i8] c"TRSO\00"
@.str.34 = [5 x i8] c"TSIZ\00"
@.str.35 = [5 x i8] c"TSRC\00"
@.str.36 = [5 x i8] c"TSSE\00"
@.str.37 = [5 x i8] c"TYER\00"
@__const.IsTextInfoID3FrameID.tags = [38 x i8*] [i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.12, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.14, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.15, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.16, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.17, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.18, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.19, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.20, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.21, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.22, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.23, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.24, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.25, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.26, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.27, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.28, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.29, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.30, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.31, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.32, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.33, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.34, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.35, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.36, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.37, i32 0, i32 0)]
define signext i8 @IsTextInfoID3FrameID(i8* %0) {
%2 = alloca i8
%3 = alloca i8*
%4 = alloca [38 x i8*]
%5 = alloca i64
%6 = alloca i8
store i8* %0, i8** %3
%7 = bitcast [38 x i8*]* %4 to i8*
store i64 0, i64* %5
store i8 0, i8* %6
%8 = load i8*, i8** %3
%9 = icmp eq i8* %8, null
br i1 %9, label %10, label %11
10: ; preds = %1
store i8 0, i8* %2
br label %29
11: ; preds = %1
store i64 0, i64* %5
br label %12
12: ; preds = %24, %11
%13 = load i64, i64* %5
%14 = icmp ult i64 %13, 38
br i1 %14, label %15, label %27
15: ; preds = %12
%16 = load i64, i64* %5
%17 = getelementptr inbounds [38 x i8*], [38 x i8*]* %4, i64 0, i64 %16
%18 = load i8*, i8** %17
%19 = load i8*, i8** %3
%20 = call i64 @strcasecmp(i8* %18, i8* %19)
%21 = icmp eq i64 %20, 0
br i1 %21, label %22, label %23
22: ; preds = %15
store i8 1, i8* %6
br label %27
23: ; preds = %15
br label %24
24: ; preds = %23
%25 = load i64, i64* %5
%26 = add i64 %25, 1
store i64 %26, i64* %5
br label %12
27: ; preds = %22, %12
%28 = load i8, i8* %6
store i8 %28, i8* %2
br label %29
29: ; preds = %27, %10
%30 = load i8, i8* %2
ret i8 %30
}

LLVM IR (-O2):
@.str = [5 x i8] c"TALB\00"
@.str.1 = [5 x i8] c"TBPM\00"
@.str.2 = [5 x i8] c"TCOM\00"
@.str.3 = [5 x i8] c"TCON\00"
@.str.4 = [5 x i8] c"TCOP\00"
@.str.5 = [5 x i8] c"TDAT\00"
@.str.6 = [5 x i8] c"TDLY\00"
@.str.7 = [5 x i8] c"TENC\00"
@.str.8 = [5 x i8] c"TEXT\00"
@.str.9 = [5 x i8] c"TFLT\00"
@.str.10 = [5 x i8] c"TIME\00"
@.str.11 = [5 x i8] c"TIT1\00"
@.str.12 = [5 x i8] c"TIT2\00"
@.str.13 = [5 x i8] c"TIT3\00"
@.str.14 = [5 x i8] c"TKEY\00"
@.str.15 = [5 x i8] c"TLAN\00"
@.str.16 = [5 x i8] c"TLEN\00"
@.str.17 = [5 x i8] c"TMED\00"
@.str.18 = [5 x i8] c"TOAL\00"
@.str.19 = [5 x i8] c"TOFN\00"
@.str.20 = [5 x i8] c"TOLY\00"
@.str.21 = [5 x i8] c"TOPE\00"
@.str.22 = [5 x i8] c"TORY\00"
@.str.23 = [5 x i8] c"TOWN\00"
@.str.24 = [5 x i8] c"TPE1\00"
@.str.25 = [5 x i8] c"TPE2\00"
@.str.26 = [5 x i8] c"TPE3\00"
@.str.27 = [5 x i8] c"TPE4\00"
@.str.28 = [5 x i8] c"TPOS\00"
@.str.29 = [5 x i8] c"TPUB\00"
@.str.30 = [5 x i8] c"TRCK\00"
@.str.31 = [5 x i8] c"TRDA\00"
@.str.32 = [5 x i8] c"TRSN\00"
@.str.33 = [5 x i8] c"TRSO\00"
@.str.34 = [5 x i8] c"TSIZ\00"
@.str.35 = [5 x i8] c"TSRC\00"
@.str.36 = [5 x i8] c"TSSE\00"
@.str.37 = [5 x i8] c"TYER\00"
@reltable.IsTextInfoID3FrameID = [38 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str to i64), i64 ptrtoint ([38 x i32]* @reltable.IsTextInfoID3FrameID to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.1 to i64), i64 ptrtoint ([38 x i32]* @reltable.IsTextInfoID3FrameID to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.2 to i64), i64 ptrtoint ([38 x i32]* @reltable.IsTextInfoID3FrameID to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.3 to i64), i64 ptrtoint ([38 x i32]* @reltable.IsTextInfoID3FrameID to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.4 to i64), i64 ptrtoint ([38 x i32]* @reltable.IsTextInfoID3FrameID to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.5 to i64), i64 ptrtoint ([38 x i32]* @reltable.IsTextInfoID3FrameID to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.6 to i64), i64 ptrtoint ([38 x i32]* @reltable.IsTextInfoID3FrameID to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.7 to i64), i64 ptrtoint ([38 x i32]* @reltable.IsTextInfoID3FrameID to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.8 to i64), i64 ptrtoint ([38 x i32]* @reltable.IsTextInfoID3FrameID to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.9 to i64), i64 ptrtoint ([38 x i32]* @reltable.IsTextInfoID3FrameID to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.10 to i64), i64 ptrtoint ([38 x i32]* @reltable.IsTextInfoID3FrameID to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.11 to i64), i64 ptrtoint ([38 x i32]* @reltable.IsTextInfoID3FrameID to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.12 to i64), i64 ptrtoint ([38 x i32]* @reltable.IsTextInfoID3FrameID to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.13 to i64), i64 ptrtoint ([38 x i32]* @reltable.IsTextInfoID3FrameID to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.14 to i64), i64 ptrtoint ([38 x i32]* @reltable.IsTextInfoID3FrameID to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.15 to i64), i64 ptrtoint ([38 x i32]* @reltable.IsTextInfoID3FrameID to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.16 to i64), i64 ptrtoint ([38 x i32]* @reltable.IsTextInfoID3FrameID to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.17 to i64), i64 ptrtoint ([38 x i32]* @reltable.IsTextInfoID3FrameID to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.18 to i64), i64 ptrtoint ([38 x i32]* @reltable.IsTextInfoID3FrameID to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.19 to i64), i64 ptrtoint ([38 x i32]* @reltable.IsTextInfoID3FrameID to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.20 to i64), i64 ptrtoint ([38 x i32]* @reltable.IsTextInfoID3FrameID to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.21 to i64), i64 ptrtoint ([38 x i32]* @reltable.IsTextInfoID3FrameID to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.22 to i64), i64 ptrtoint ([38 x i32]* @reltable.IsTextInfoID3FrameID to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.23 to i64), i64 ptrtoint ([38 x i32]* @reltable.IsTextInfoID3FrameID to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.24 to i64), i64 ptrtoint ([38 x i32]* @reltable.IsTextInfoID3FrameID to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.25 to i64), i64 ptrtoint ([38 x i32]* @reltable.IsTextInfoID3FrameID to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.26 to i64), i64 ptrtoint ([38 x i32]* @reltable.IsTextInfoID3FrameID to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.27 to i64), i64 ptrtoint ([38 x i32]* @reltable.IsTextInfoID3FrameID to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.28 to i64), i64 ptrtoint ([38 x i32]* @reltable.IsTextInfoID3FrameID to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.29 to i64), i64 ptrtoint ([38 x i32]* @reltable.IsTextInfoID3FrameID to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.30 to i64), i64 ptrtoint ([38 x i32]* @reltable.IsTextInfoID3FrameID to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.31 to i64), i64 ptrtoint ([38 x i32]* @reltable.IsTextInfoID3FrameID to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.32 to i64), i64 ptrtoint ([38 x i32]* @reltable.IsTextInfoID3FrameID to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.33 to i64), i64 ptrtoint ([38 x i32]* @reltable.IsTextInfoID3FrameID to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.34 to i64), i64 ptrtoint ([38 x i32]* @reltable.IsTextInfoID3FrameID to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.35 to i64), i64 ptrtoint ([38 x i32]* @reltable.IsTextInfoID3FrameID to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.36 to i64), i64 ptrtoint ([38 x i32]* @reltable.IsTextInfoID3FrameID to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.37 to i64), i64 ptrtoint ([38 x i32]* @reltable.IsTextInfoID3FrameID to i64)) to i32)]
define signext i8 @IsTextInfoID3FrameID(i8* %0) {
%2 = icmp eq i8* %0, null
br i1 %2, label %12, label %6
3: ; preds = %6
%4 = add nuw nsw i64 %7, 1
%5 = icmp eq i64 %4, 38
br i1 %5, label %12, label %6
6: ; preds = %1, %3
%7 = phi i64 [ %4, %3 ], [ 0, %1 ]
%8 = shl i64 %7, 2
%9 = call i8* @llvm.load.relative.i64(i8* bitcast ([38 x i32]* @reltable.IsTextInfoID3FrameID to i8*), i64 %8)
%10 = tail call i64 @strcasecmp(i8* %9, i8* %0)
%11 = icmp eq i64 %10, 0
br i1 %11, label %12, label %3
12: ; preds = %3, %6, %1
%13 = phi i8 [ 0, %1 ], [ 1, %6 ], [ 0, %3 ]
ret i8 %13
}