#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 */
uint32_t _PWMFaultIntNumberGet(uint32_t ui32Base) {
  if ((((*((volatile uint32_t *)(0x400FE000))) & (0x70000000 | 0x00FF0000)) ==
       (0x10000000 | 0x00050000))) {
    return ((ui32Base == 0x40028000) ? 25 : 154);
  } else if ((((*((volatile uint32_t *)(0x400FE000))) &
               (0x70000000 | 0x00FF0000)) == (0x10000000 | 0x000A0000))) {
    return ((ui32Base == 0x40028000) ? 25 : 0);
  } else {
    return (0);
  }
}


x86 assembly (clang, -O0):
<_PWMFaultIntNumberGet>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
mov    $0x400fe000,%eax
mov    (%rax),%eax
and    $0x70ff0000,%eax
cmp    $0x10050000,%eax
jne    113c <_PWMFaultIntNumberGet+0x3c>
mov    -0x8(%rbp),%edx
mov    $0x9a,%eax
mov    $0x19,%ecx
cmp    $0x40028000,%edx
cmove  %ecx,%eax
mov    %eax,-0x4(%rbp)
jmp    1175 <_PWMFaultIntNumberGet+0x75>
mov    $0x400fe000,%eax
mov    (%rax),%eax
and    $0x70ff0000,%eax
cmp    $0x100a0000,%eax
jne    116e <_PWMFaultIntNumberGet+0x6e>
mov    -0x8(%rbp),%edx
xor    %eax,%eax
mov    $0x19,%ecx
cmp    $0x40028000,%edx
cmove  %ecx,%eax
mov    %eax,-0x4(%rbp)
jmp    1175 <_PWMFaultIntNumberGet+0x75>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<_PWMFaultIntNumberGet>:
mov    $0x70ff0000,%ecx
mov    0x400fe000,%eax
and    %ecx,%eax
cmp    $0x10050000,%eax
jne    1129 <_PWMFaultIntNumberGet+0x29>
cmp    $0x40028000,%edi
mov    $0x19,%ecx
mov    $0x9a,%eax
cmove  %ecx,%eax
ret
and    0x400fe000,%ecx
xor    %eax,%eax
cmp    $0x100a0000,%ecx
jne    114a <_PWMFaultIntNumberGet+0x4a>
xor    %ecx,%ecx
cmp    $0x40028000,%edi
mov    $0x19,%eax
cmovne %ecx,%eax
ret

LLVM IR (-O0):
define i32 @_PWMFaultIntNumberGet(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %3
%4 = load volatile i32, i32* inttoptr (i64 1074782208 to i32*)
%5 = and i32 %4, 1895759872
%6 = icmp eq i32 %5, 268763136
br i1 %6, label %7, label %12
7: ; preds = %1
%8 = load i32, i32* %3
%9 = icmp eq i32 %8, 1073905664
%10 = zext i1 %9 to i64
%11 = select i1 %9, i32 25, i32 154
store i32 %11, i32* %2
br label %22
12: ; preds = %1
%13 = load volatile i32, i32* inttoptr (i64 1074782208 to i32*)
%14 = and i32 %13, 1895759872
%15 = icmp eq i32 %14, 269090816
br i1 %15, label %16, label %21
16: ; preds = %12
%17 = load i32, i32* %3
%18 = icmp eq i32 %17, 1073905664
%19 = zext i1 %18 to i64
%20 = select i1 %18, i32 25, i32 0
store i32 %20, i32* %2
br label %22
21: ; preds = %12
store i32 0, i32* %2
br label %22
22: ; preds = %21, %16, %7
%23 = load i32, i32* %2
ret i32 %23
}

LLVM IR (-O2):
define i32 @_PWMFaultIntNumberGet(i32 %0) {
%2 = load volatile i32, i32* inttoptr (i64 1074782208 to i32*)
%3 = and i32 %2, 1895759872
%4 = icmp eq i32 %3, 268763136
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = icmp eq i32 %0, 1073905664
%7 = select i1 %6, i32 25, i32 154
br label %15
8: ; preds = %1
%9 = load volatile i32, i32* inttoptr (i64 1074782208 to i32*)
%10 = and i32 %9, 1895759872
%11 = icmp eq i32 %10, 269090816
br i1 %11, label %12, label %15
12: ; preds = %8
%13 = icmp eq i32 %0, 1073905664
%14 = select i1 %13, i32 25, i32 0
br label %15
15: ; preds = %8, %12, %5
%16 = phi i32 [ %7, %5 ], [ %14, %12 ], [ 0, %8 ]
ret i32 %16
}