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

/* Variables and functions */
uint_fast8_t _CANIntNumberGet(uint32_t ui32Base) {
  uint_fast8_t ui8Int;
  ;
  ui8Int = 0;
  if ((((*((volatile uint32_t *)(0x400FE000))) & (0x70000000 | 0x00FF0000)) ==
       (0x10000000 | 0x00050000))) {
    if (ui32Base == 0x40040000) {
      ui8Int = 55;
    } else if (ui32Base == 0x40041000) {
      ui8Int = 56;
    }
  } else if ((((*((volatile uint32_t *)(0x400FE000))) &
               (0x70000000 | 0x00FF0000)) == (0x10000000 | 0x000A0000))) {
    if (ui32Base == 0x40040000) {
      ui8Int = 54;
    } else if (ui32Base == 0x40041000) {
      ui8Int = 55;
    }
  }
  return (ui8Int);
}


x86 assembly (clang, -O0):
<_CANIntNumberGet>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
mov    $0x400fe000,%eax
mov    (%rax),%eax
and    $0x70ff0000,%eax
cmp    $0x10050000,%eax
jne    115c <_CANIntNumberGet+0x5c>
cmpl   $0x40040000,-0x4(%rbp)
jne    113e <_CANIntNumberGet+0x3e>
movl   $0x37,-0x8(%rbp)
jmp    1157 <_CANIntNumberGet+0x57>
cmpl   $0x40041000,-0x4(%rbp)
jne    1152 <_CANIntNumberGet+0x52>
movl   $0x38,-0x8(%rbp)
jmp    1157 <_CANIntNumberGet+0x57>
jmp    11af <_CANIntNumberGet+0xaf>
mov    $0x400fe000,%eax
mov    (%rax),%eax
and    $0x70ff0000,%eax
cmp    $0x100a0000,%eax
jne    11aa <_CANIntNumberGet+0xaa>
cmpl   $0x40040000,-0x4(%rbp)
jne    118c <_CANIntNumberGet+0x8c>
movl   $0x36,-0x8(%rbp)
jmp    11a5 <_CANIntNumberGet+0xa5>
cmpl   $0x40041000,-0x4(%rbp)
jne    11a0 <_CANIntNumberGet+0xa0>
movl   $0x37,-0x8(%rbp)
jmp    11a5 <_CANIntNumberGet+0xa5>
jmp    11aa <_CANIntNumberGet+0xaa>
jmp    11af <_CANIntNumberGet+0xaf>
mov    -0x8(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<_CANIntNumberGet>:
mov    $0x70ff0000,%ecx
mov    0x400fe000,%eax
and    %ecx,%eax
cmp    $0x10050000,%eax
jne    1132 <_CANIntNumberGet+0x32>
xor    %eax,%eax
cmp    $0x40041000,%edi
mov    $0x38,%ecx
cmovne %eax,%ecx
cmp    $0x40040000,%edi
mov    $0x37,%eax
jmp    115e <_CANIntNumberGet+0x5e>
and    0x400fe000,%ecx
xor    %eax,%eax
cmp    $0x100a0000,%ecx
jne    1161 <_CANIntNumberGet+0x61>
xor    %eax,%eax
cmp    $0x40041000,%edi
mov    $0x37,%ecx
cmovne %eax,%ecx
cmp    $0x40040000,%edi
mov    $0x36,%eax
cmovne %ecx,%eax
ret

LLVM IR (-O0):
define i32 @_CANIntNumberGet(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %2
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 %17
7: ; preds = %1
%8 = load i32, i32* %2
%9 = icmp eq i32 %8, 1074003968
br i1 %9, label %10, label %11
10: ; preds = %7
store i32 55, i32* %3
br label %16
11: ; preds = %7
%12 = load i32, i32* %2
%13 = icmp eq i32 %12, 1074008064
br i1 %13, label %14, label %15
14: ; preds = %11
store i32 56, i32* %3
br label %15
15: ; preds = %14, %11
br label %16
16: ; preds = %15, %10
br label %32
17: ; preds = %1
%18 = load volatile i32, i32* inttoptr (i64 1074782208 to i32*)
%19 = and i32 %18, 1895759872
%20 = icmp eq i32 %19, 269090816
br i1 %20, label %21, label %31
21: ; preds = %17
%22 = load i32, i32* %2
%23 = icmp eq i32 %22, 1074003968
br i1 %23, label %24, label %25
24: ; preds = %21
store i32 54, i32* %3
br label %30
25: ; preds = %21
%26 = load i32, i32* %2
%27 = icmp eq i32 %26, 1074008064
br i1 %27, label %28, label %29
28: ; preds = %25
store i32 55, i32* %3
br label %29
29: ; preds = %28, %25
br label %30
30: ; preds = %29, %24
br label %31
31: ; preds = %30, %17
br label %32
32: ; preds = %31, %16
%33 = load i32, i32* %3
ret i32 %33
}

LLVM IR (-O2):
define i32 @_CANIntNumberGet(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 %10
5: ; preds = %1
%6 = icmp eq i32 %0, 1074008064
%7 = select i1 %6, i32 56, i32 0
%8 = icmp eq i32 %0, 1074003968
%9 = select i1 %8, i32 55, i32 %7
br label %19
10: ; preds = %1
%11 = load volatile i32, i32* inttoptr (i64 1074782208 to i32*)
%12 = and i32 %11, 1895759872
%13 = icmp eq i32 %12, 269090816
br i1 %13, label %14, label %19
14: ; preds = %10
%15 = icmp eq i32 %0, 1074008064
%16 = select i1 %15, i32 55, i32 0
%17 = icmp eq i32 %0, 1074003968
%18 = select i1 %17, i32 54, i32 %16
br label %19
19: ; preds = %14, %5, %10
%20 = phi i32 [ 0, %10 ], [ %9, %5 ], [ %18, %14 ]
ret i32 %20
}