#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 _ADCIntNumberGet(uint32_t ui32Base, uint32_t ui32SequenceNum) {
  uint_fast8_t ui8Int;
  if ((((*((volatile uint32_t *)(0x400FE000))) & (0x70000000 | 0x00FF0000)) ==
       (0x10000000 | 0x00050000))) {
    ui8Int = ((ui32Base == 0x40038000) ? (30 + ui32SequenceNum)
                                       : (30 + ui32SequenceNum));
  } else if ((((*((volatile uint32_t *)(0x400FE000))) &
               (0x70000000 | 0x00FF0000)) == (0x10000000 | 0x000A0000))) {
    ui8Int = ((ui32Base == 0x40038000) ? (30 + ui32SequenceNum)
                                       : (62 + ui32SequenceNum));
  } else {
    ui8Int = 0;
  }
  return (ui8Int);
}


x86 assembly (clang, -O0):
<_ADCIntNumberGet>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    $0x400fe000,%eax
mov    (%rax),%eax
and    $0x70ff0000,%eax
cmp    $0x10050000,%eax
jne    1150 <_ADCIntNumberGet+0x50>
cmpl   $0x40038000,-0x4(%rbp)
jne    113c <_ADCIntNumberGet+0x3c>
mov    -0x8(%rbp),%eax
add    $0x1e,%eax
mov    %eax,-0x10(%rbp)
jmp    1145 <_ADCIntNumberGet+0x45>
mov    -0x8(%rbp),%eax
add    $0x1e,%eax
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%eax
mov    %eax,-0xc(%rbp)
jmp    11a2 <_ADCIntNumberGet+0xa2>
mov    $0x400fe000,%eax
mov    (%rax),%eax
and    $0x70ff0000,%eax
cmp    $0x100a0000,%eax
jne    1196 <_ADCIntNumberGet+0x96>
cmpl   $0x40038000,-0x4(%rbp)
jne    1182 <_ADCIntNumberGet+0x82>
mov    -0x8(%rbp),%eax
add    $0x1e,%eax
mov    %eax,-0x14(%rbp)
jmp    118b <_ADCIntNumberGet+0x8b>
mov    -0x8(%rbp),%eax
add    $0x3e,%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0xc(%rbp)
jmp    119d <_ADCIntNumberGet+0x9d>
movl   $0x0,-0xc(%rbp)
jmp    11a2 <_ADCIntNumberGet+0xa2>
mov    -0xc(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<_ADCIntNumberGet>:
mov    $0x70ff0000,%ecx
mov    0x400fe000,%eax
and    %ecx,%eax
cmp    $0x10050000,%eax
jne    111b <_ADCIntNumberGet+0x1b>
add    $0x1e,%esi
mov    %esi,%eax
ret
and    0x400fe000,%ecx
xor    %eax,%eax
cmp    $0x100a0000,%ecx
jne    113f <_ADCIntNumberGet+0x3f>
xor    %eax,%eax
cmp    $0x40038000,%edi
setne  %al
shl    $0x5,%eax
add    %esi,%eax
add    $0x1e,%eax
ret

LLVM IR (-O0):
define i32 @_ADCIntNumberGet(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%6 = load volatile i32, i32* inttoptr (i64 1074782208 to i32*)
%7 = and i32 %6, 1895759872
%8 = icmp eq i32 %7, 268763136
br i1 %8, label %9, label %20
9: ; preds = %2
%10 = load i32, i32* %3
%11 = icmp eq i32 %10, 1073971200
br i1 %11, label %12, label %15
12: ; preds = %9
%13 = load i32, i32* %4
%14 = add nsw i32 30, %13
br label %18
15: ; preds = %9
%16 = load i32, i32* %4
%17 = add nsw i32 30, %16
br label %18
18: ; preds = %15, %12
%19 = phi i32 [ %14, %12 ], [ %17, %15 ]
store i32 %19, i32* %5
br label %37
20: ; preds = %2
%21 = load volatile i32, i32* inttoptr (i64 1074782208 to i32*)
%22 = and i32 %21, 1895759872
%23 = icmp eq i32 %22, 269090816
br i1 %23, label %24, label %35
24: ; preds = %20
%25 = load i32, i32* %3
%26 = icmp eq i32 %25, 1073971200
br i1 %26, label %27, label %30
27: ; preds = %24
%28 = load i32, i32* %4
%29 = add nsw i32 30, %28
br label %33
30: ; preds = %24
%31 = load i32, i32* %4
%32 = add nsw i32 62, %31
br label %33
33: ; preds = %30, %27
%34 = phi i32 [ %29, %27 ], [ %32, %30 ]
store i32 %34, i32* %5
br label %36
35: ; preds = %20
store i32 0, i32* %5
br label %36
36: ; preds = %35, %33
br label %37
37: ; preds = %36, %18
%38 = load i32, i32* %5
ret i32 %38
}

LLVM IR (-O2):
define i32 @_ADCIntNumberGet(i32 %0, i32 %1) {
%3 = load volatile i32, i32* inttoptr (i64 1074782208 to i32*)
%4 = and i32 %3, 1895759872
%5 = icmp eq i32 %4, 268763136
br i1 %5, label %6, label %8
6: ; preds = %2
%7 = add nsw i32 %1, 30
br label %16
8: ; preds = %2
%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 %16
12: ; preds = %8
%13 = icmp eq i32 %0, 1073971200
%14 = select i1 %13, i32 30, i32 62
%15 = add nsw i32 %14, %1
br label %16
16: ; preds = %8, %12, %6
%17 = phi i32 [ %7, %6 ], [ %15, %12 ], [ 0, %8 ]
ret i32 %17
}