#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 */
typedef int uint32_t;

/* Variables and functions */
bool is_disabled_in_debug_needed(void) {
  if ((((*(uint32_t *)0xF0000FE0) & 0x000000FF) == 0x1) &&
      (((*(uint32_t *)0xF0000FE4) & 0x0000000F) == 0x0)) {
    if ((((*(uint32_t *)0xF0000FE8) & 0x000000F0) == 0x40) &&
        (((*(uint32_t *)0xF0000FEC) & 0x000000F0) == 0x0)) {
      return true;
    }
  }
  return false;
}


x86 assembly (clang, -O0):
<is_disabled_in_debug_needed>:
push   %rbp
mov    %rsp,%rbp
mov    $0xf0000fe0,%eax
mov    (%rax),%eax
and    $0xff,%eax
cmp    $0x1,%eax
jne    1167 <is_disabled_in_debug_needed+0x67>
mov    $0xf0000fe4,%eax
mov    (%rax),%eax
and    $0xf,%eax
cmp    $0x0,%eax
jne    1167 <is_disabled_in_debug_needed+0x67>
mov    $0xf0000fe8,%eax
mov    (%rax),%eax
and    $0xf0,%eax
cmp    $0x40,%eax
jne    1162 <is_disabled_in_debug_needed+0x62>
mov    $0xf0000fec,%eax
mov    (%rax),%eax
and    $0xf0,%eax
cmp    $0x0,%eax
jne    1162 <is_disabled_in_debug_needed+0x62>
movl   $0x1,-0x4(%rbp)
jmp    116e <is_disabled_in_debug_needed+0x6e>
jmp    1167 <is_disabled_in_debug_needed+0x67>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<is_disabled_in_debug_needed>:
mov    $0xf0000fe0,%eax
cmpb   $0x1,(%rax)
jne    1123 <is_disabled_in_debug_needed+0x23>
testb  $0xf,0x4(%rax)
jne    1123 <is_disabled_in_debug_needed+0x23>
mov    $0xf0,%ecx
and    0x8(%rax),%ecx
cmp    $0x40,%ecx
jne    1123 <is_disabled_in_debug_needed+0x23>
testb  $0xf0,0xc(%rax)
je     1126 <is_disabled_in_debug_needed+0x26>
xor    %eax,%eax
ret
mov    $0x1,%eax
ret

LLVM IR (-O0):
define i32 @is_disabled_in_debug_needed() {
%1 = alloca i32
%2 = load i32, i32* inttoptr (i64 4026535904 to i32*)
%3 = and i32 %2, 255
%4 = icmp eq i32 %3, 1
br i1 %4, label %5, label %19
5: ; preds = %0
%6 = load i32, i32* inttoptr (i64 4026535908 to i32*)
%7 = and i32 %6, 15
%8 = icmp eq i32 %7, 0
br i1 %8, label %9, label %19
9: ; preds = %5
%10 = load i32, i32* inttoptr (i64 4026535912 to i32*)
%11 = and i32 %10, 240
%12 = icmp eq i32 %11, 64
br i1 %12, label %13, label %18
13: ; preds = %9
%14 = load i32, i32* inttoptr (i64 4026535916 to i32*)
%15 = and i32 %14, 240
%16 = icmp eq i32 %15, 0
br i1 %16, label %17, label %18
17: ; preds = %13
store i32 1, i32* %1
br label %20
18: ; preds = %13, %9
br label %19
19: ; preds = %18, %5, %0
store i32 0, i32* %1
br label %20
20: ; preds = %19, %17
%21 = load i32, i32* %1
ret i32 %21
}

LLVM IR (-O2):
define i32 @is_disabled_in_debug_needed() {
%1 = load i32, i32* inttoptr (i64 4026535904 to i32*)
%2 = and i32 %1, 255
%3 = icmp eq i32 %2, 1
br i1 %3, label %4, label %16
4: ; preds = %0
%5 = load i32, i32* inttoptr (i64 4026535908 to i32*)
%6 = and i32 %5, 15
%7 = icmp eq i32 %6, 0
br i1 %7, label %8, label %16
8: ; preds = %4
%9 = load i32, i32* inttoptr (i64 4026535912 to i32*)
%10 = and i32 %9, 240
%11 = icmp eq i32 %10, 64
br i1 %11, label %12, label %16
12: ; preds = %8
%13 = load i32, i32* inttoptr (i64 4026535916 to i32*)
%14 = and i32 %13, 240
%15 = icmp eq i32 %14, 0
br i1 %15, label %17, label %16
16: ; preds = %8, %12, %4, %0
br label %17
17: ; preds = %12, %16
%18 = phi i32 [ 0, %16 ], [ 1, %12 ]
ret i32 %18
}