#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__ memcmp(unsigned char const *, char *, int);
int search_mute(const unsigned char *payload, const int plen, int payload_len) {
  if ((payload_len > 11) && (plen == 209 || plen == 345 || plen == 473 ||
                             plen == 609 || plen == 1121)) {
    if (memcmp(payload, "PublicKey: ", 11) == 0) {
      return ((14 * 100) + 0);
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<search_mute>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    %edx,-0x18(%rbp)
cmpl   $0xb,-0x18(%rbp)
jle    119d <search_mute+0x8d>
cmpl   $0xd1,-0x14(%rbp)
je     116d <search_mute+0x5d>
cmpl   $0x159,-0x14(%rbp)
je     116d <search_mute+0x5d>
cmpl   $0x1d9,-0x14(%rbp)
je     116d <search_mute+0x5d>
cmpl   $0x261,-0x14(%rbp)
je     116d <search_mute+0x5d>
cmpl   $0x461,-0x14(%rbp)
jne    119d <search_mute+0x8d>
mov    -0x10(%rbp),%rdi
lea    0xe88(%rip),%rsi
mov    $0xb,%edx
call   1030 <memcmp@plt>
cmp    $0x0,%rax
jne    1198 <search_mute+0x88>
movl   $0x578,-0x4(%rbp)
jmp    11a4 <search_mute+0x94>
jmp    119d <search_mute+0x8d>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<search_mute>:
cmp    $0xc,%edx
jl     1163 <search_mute+0x53>
cmp    $0x1d8,%esi
jle    1137 <search_mute+0x27>
cmp    $0x1d9,%esi
je     1147 <search_mute+0x37>
cmp    $0x461,%esi
je     1147 <search_mute+0x37>
cmp    $0x261,%esi
je     1147 <search_mute+0x37>
jmp    1163 <search_mute+0x53>
cmp    $0xd1,%esi
je     1147 <search_mute+0x37>
cmp    $0x159,%esi
jne    1163 <search_mute+0x53>
push   %rax
lea    0xeb1(%rip),%rsi
mov    $0xb,%edx
call   1030 <memcmp@plt>
test   %rax,%rax
lea    0x8(%rsp),%rsp
je     1166 <search_mute+0x56>
xor    %eax,%eax
ret
mov    $0x578,%eax
ret

LLVM IR (-O0):
@.str = [12 x i8] c"PublicKey: \00"
define i32 @search_mute(i8* %0, i32 %1, i32 %2) {
%4 = alloca i32
%5 = alloca i8*
%6 = alloca i32
%7 = alloca i32
store i8* %0, i8** %5
store i32 %1, i32* %6
store i32 %2, i32* %7
%8 = load i32, i32* %7
%9 = icmp sgt i32 %8, 11
br i1 %9, label %10, label %31
10: ; preds = %3
%11 = load i32, i32* %6
%12 = icmp eq i32 %11, 209
br i1 %12, label %25, label %13
13: ; preds = %10
%14 = load i32, i32* %6
%15 = icmp eq i32 %14, 345
br i1 %15, label %25, label %16
16: ; preds = %13
%17 = load i32, i32* %6
%18 = icmp eq i32 %17, 473
br i1 %18, label %25, label %19
19: ; preds = %16
%20 = load i32, i32* %6
%21 = icmp eq i32 %20, 609
br i1 %21, label %25, label %22
22: ; preds = %19
%23 = load i32, i32* %6
%24 = icmp eq i32 %23, 1121
br i1 %24, label %25, label %31
25: ; preds = %22, %19, %16, %13, %10
%26 = load i8*, i8** %5
%27 = call i64 @memcmp(i8* %26, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i32 11)
%28 = icmp eq i64 %27, 0
br i1 %28, label %29, label %30
29: ; preds = %25
store i32 1400, i32* %4
br label %32
30: ; preds = %25
br label %31
31: ; preds = %30, %22, %3
store i32 0, i32* %4
br label %32
32: ; preds = %31, %29
%33 = load i32, i32* %4
ret i32 %33
}

LLVM IR (-O2):
@.str = [12 x i8] c"PublicKey: \00"
define i32 @search_mute(i8* %0, i32 %1, i32 %2) {
%4 = icmp sgt i32 %2, 11
br i1 %4, label %5, label %9
5: ; preds = %3
switch i32 %1, label %9 [
i32 1121, label %6
i32 609, label %6
i32 473, label %6
i32 345, label %6
i32 209, label %6
]
6: ; preds = %5, %5, %5, %5, %5
%7 = tail call i64 @memcmp(i8* %0, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i32 11)
%8 = icmp eq i64 %7, 0
br i1 %8, label %10, label %9
9: ; preds = %5, %6, %3
br label %10
10: ; preds = %6, %9
%11 = phi i32 [ 0, %9 ], [ 1400, %6 ]
ret i32 %11
}