#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 */
bool testMarker(int marker) {
  int mask, decrypt, temp1, temp2;
  mask = (marker & 0xff) | ((marker & 0xff) << 8) | ((marker & 0xff) << 16) |
         ((marker & 0xff) << 24);
  decrypt = marker ^ mask;
  temp1 = (int)((unsigned int)decrypt >> 24);
  temp2 = decrypt << 8;
  if (temp1 == 0)
    return false;
  temp2 = (int)((unsigned int)temp2 >> 24);
  decrypt = decrypt << 16;
  decrypt = (int)((unsigned int)decrypt >> 24);
  if ((temp1 < temp2) && (temp2 < decrypt)) {
    temp1 = temp1 & 0xf;
    temp2 = temp2 & 0xf;
    decrypt = decrypt & 0xf;
    if ((temp1 > temp2) && (temp2 > decrypt) && (decrypt != 0)) {
      return true;
    }
  }
  return false;
}


x86 assembly (clang, -O0):
<testMarker>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
mov    -0x8(%rbp),%eax
and    $0xff,%eax
mov    -0x8(%rbp),%ecx
and    $0xff,%ecx
shl    $0x8,%ecx
or     %ecx,%eax
mov    -0x8(%rbp),%ecx
and    $0xff,%ecx
shl    $0x10,%ecx
or     %ecx,%eax
mov    -0x8(%rbp),%ecx
and    $0xff,%ecx
shl    $0x18,%ecx
or     %ecx,%eax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%eax
xor    -0xc(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%eax
shr    $0x18,%eax
mov    %eax,-0x14(%rbp)
mov    -0x10(%rbp),%eax
shl    $0x8,%eax
mov    %eax,-0x18(%rbp)
cmpl   $0x0,-0x14(%rbp)
jne    116d <testMarker+0x6d>
movl   $0x0,-0x4(%rbp)
jmp    11f5 <testMarker+0xf5>
mov    -0x18(%rbp),%eax
shr    $0x18,%eax
mov    %eax,-0x18(%rbp)
mov    -0x10(%rbp),%eax
shl    $0x10,%eax
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%eax
shr    $0x18,%eax
mov    %eax,-0x10(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    11ee <testMarker+0xee>
mov    -0x18(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    11ee <testMarker+0xee>
mov    -0x14(%rbp),%eax
and    $0xf,%eax
mov    %eax,-0x14(%rbp)
mov    -0x18(%rbp),%eax
and    $0xf,%eax
mov    %eax,-0x18(%rbp)
mov    -0x10(%rbp),%eax
and    $0xf,%eax
mov    %eax,-0x10(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x18(%rbp),%eax
jle    11e9 <testMarker+0xe9>
mov    -0x18(%rbp),%eax
cmp    -0x10(%rbp),%eax
jle    11e9 <testMarker+0xe9>
cmpl   $0x0,-0x10(%rbp)
je     11e9 <testMarker+0xe9>
movl   $0x1,-0x4(%rbp)
jmp    11f5 <testMarker+0xf5>
jmp    11ee <testMarker+0xee>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<testMarker>:
movzbl %dil,%eax
imul   $0x10101,%eax,%eax
mov    %edi,%ecx
shl    $0x18,%ecx
or     %eax,%ecx
xor    %edi,%ecx
xor    %eax,%eax
cmp    $0x1000000,%ecx
jb     1152 <testMarker+0x52>
mov    %ecx,%edx
shr    $0x18,%edx
mov    %ecx,%eax
shr    $0x10,%eax
movzbl %al,%esi
cmp    %esi,%edx
jae    1153 <testMarker+0x53>
shr    $0x8,%ecx
movzbl %cl,%edi
cmp    %edi,%esi
jae    1153 <testMarker+0x53>
and    $0xf,%edx
and    $0xf,%eax
cmp    %eax,%edx
jbe    1153 <testMarker+0x53>
and    $0xf,%ecx
cmp    %ecx,%eax
jbe    1153 <testMarker+0x53>
mov    $0x1,%eax
test   %ecx,%ecx
je     1153 <testMarker+0x53>
ret
xor    %eax,%eax
ret

LLVM IR (-O0):
define i32 @testMarker(i32 %0) {
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
store i32 %0, i32* %3
%8 = load i32, i32* %3
%9 = and i32 %8, 255
%10 = load i32, i32* %3
%11 = and i32 %10, 255
%12 = shl i32 %11, 8
%13 = or i32 %9, %12
%14 = load i32, i32* %3
%15 = and i32 %14, 255
%16 = shl i32 %15, 16
%17 = or i32 %13, %16
%18 = load i32, i32* %3
%19 = and i32 %18, 255
%20 = shl i32 %19, 24
%21 = or i32 %17, %20
store i32 %21, i32* %4
%22 = load i32, i32* %3
%23 = load i32, i32* %4
%24 = xor i32 %22, %23
store i32 %24, i32* %5
%25 = load i32, i32* %5
%26 = lshr i32 %25, 24
store i32 %26, i32* %6
%27 = load i32, i32* %5
%28 = shl i32 %27, 8
store i32 %28, i32* %7
%29 = load i32, i32* %6
%30 = icmp eq i32 %29, 0
br i1 %30, label %31, label %32
31: ; preds = %1
store i32 0, i32* %2
br label %66
32: ; preds = %1
%33 = load i32, i32* %7
%34 = lshr i32 %33, 24
store i32 %34, i32* %7
%35 = load i32, i32* %5
%36 = shl i32 %35, 16
store i32 %36, i32* %5
%37 = load i32, i32* %5
%38 = lshr i32 %37, 24
store i32 %38, i32* %5
%39 = load i32, i32* %6
%40 = load i32, i32* %7
%41 = icmp slt i32 %39, %40
br i1 %41, label %42, label %65
42: ; preds = %32
%43 = load i32, i32* %7
%44 = load i32, i32* %5
%45 = icmp slt i32 %43, %44
br i1 %45, label %46, label %65
46: ; preds = %42
%47 = load i32, i32* %6
%48 = and i32 %47, 15
store i32 %48, i32* %6
%49 = load i32, i32* %7
%50 = and i32 %49, 15
store i32 %50, i32* %7
%51 = load i32, i32* %5
%52 = and i32 %51, 15
store i32 %52, i32* %5
%53 = load i32, i32* %6
%54 = load i32, i32* %7
%55 = icmp sgt i32 %53, %54
br i1 %55, label %56, label %64
56: ; preds = %46
%57 = load i32, i32* %7
%58 = load i32, i32* %5
%59 = icmp sgt i32 %57, %58
br i1 %59, label %60, label %64
60: ; preds = %56
%61 = load i32, i32* %5
%62 = icmp ne i32 %61, 0
br i1 %62, label %63, label %64
63: ; preds = %60
store i32 1, i32* %2
br label %66
64: ; preds = %60, %56, %46
br label %65
65: ; preds = %64, %42, %32
store i32 0, i32* %2
br label %66
66: ; preds = %65, %63, %31
%67 = load i32, i32* %2
ret i32 %67
}

LLVM IR (-O2):
define i32 @testMarker(i32 %0) {
%2 = and i32 %0, 255
%3 = mul nuw nsw i32 %2, 65793
%4 = shl i32 %0, 24
%5 = or i32 %3, %4
%6 = xor i32 %5, %0
%7 = lshr i32 %6, 24
%8 = icmp ult i32 %6, 16777216
br i1 %8, label %27, label %9
9: ; preds = %1
%10 = lshr i32 %6, 16
%11 = and i32 %10, 255
%12 = lshr i32 %6, 8
%13 = icmp ult i32 %7, %11
%14 = and i32 %12, 255
%15 = icmp ult i32 %11, %14
%16 = select i1 %13, i1 %15, i1 false
br i1 %16, label %17, label %26
17: ; preds = %9
%18 = and i32 %7, 15
%19 = and i32 %10, 15
%20 = and i32 %12, 15
%21 = icmp ugt i32 %18, %19
br i1 %21, label %22, label %26
22: ; preds = %17
%23 = icmp ugt i32 %19, %20
%24 = icmp ne i32 %20, 0
%25 = and i1 %23, %24
br i1 %25, label %27, label %26
26: ; preds = %17, %22, %9
br label %27
27: ; preds = %22, %1, %26
%28 = phi i32 [ 0, %26 ], [ 0, %1 ], [ 1, %22 ]
ret i32 %28
}