#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 _PWMGenIntNumberGet(uint32_t ui32Base, uint32_t ui32Gen) {
  switch (ui32Base + ui32Gen) {
  case 0x40028000 + 0x00000040: {
    if ((((*((volatile uint32_t *)(0x400FE000))) & (0x70000000 | 0x00FF0000)) ==
         (0x10000000 | 0x00050000))) {
      return (26);
    } else if ((((*((volatile uint32_t *)(0x400FE000))) &
                 (0x70000000 | 0x00FF0000)) == (0x10000000 | 0x000A0000))) {
      return (26);
    } else {
      return (0);
    }
  }
  case 0x40028000 + 0x00000080: {
    if ((((*((volatile uint32_t *)(0x400FE000))) & (0x70000000 | 0x00FF0000)) ==
         (0x10000000 | 0x000A0000))) {
      return (27);
    } else {
      return (0);
    }
  }
  case 0x40028000 + 0x000000C0: {
    if ((((*((volatile uint32_t *)(0x400FE000))) & (0x70000000 | 0x00FF0000)) ==
         (0x10000000 | 0x000A0000))) {
      return (28);
    } else {
      return (0);
    }
  }
  case 0x40028000 + 0x00000100: {
    if ((((*((volatile uint32_t *)(0x400FE000))) & (0x70000000 | 0x00FF0000)) ==
         (0x10000000 | 0x000A0000))) {
      return (59);
    } else {
      return (0);
    }
  }
  case 0x40029000 + 0x00000040: {
    if ((((*((volatile uint32_t *)(0x400FE000))) & (0x70000000 | 0x00FF0000)) ==
         (0x10000000 | 0x00050000))) {
      return (150);
    } else {
      return (0);
    }
  }
  case 0x40029000 + 0x00000080: {
    if ((((*((volatile uint32_t *)(0x400FE000))) & (0x70000000 | 0x00FF0000)) ==
         (0x10000000 | 0x00050000))) {
      return (151);
    } else {
      return (0);
    }
  }
  case 0x40029000 + 0x000000C0: {
    if ((((*((volatile uint32_t *)(0x400FE000))) & (0x70000000 | 0x00FF0000)) ==
         (0x10000000 | 0x00050000))) {
      return (152);
    } else {
      return (0);
    }
  }
  case 0x40029000 + 0x00000100: {
    if ((((*((volatile uint32_t *)(0x400FE000))) & (0x70000000 | 0x00FF0000)) ==
         (0x10000000 | 0x00050000))) {
      return (153);
    } else {
      return (0);
    }
  }
  default: {
    return (0);
  }
  }
}


x86 assembly (clang, -O0):
<_PWMGenIntNumberGet>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0x8(%rbp),%eax
mov    -0xc(%rbp),%ecx
add    %ecx,%eax
mov    %eax,-0x10(%rbp)
sub    $0x40028040,%eax
je     11aa <_PWMGenIntNumberGet+0xaa>
jmp    1125 <_PWMGenIntNumberGet+0x25>
mov    -0x10(%rbp),%eax
sub    $0x40028080,%eax
je     11fc <_PWMGenIntNumberGet+0xfc>
jmp    1138 <_PWMGenIntNumberGet+0x38>
mov    -0x10(%rbp),%eax
sub    $0x400280c0,%eax
je     122b <_PWMGenIntNumberGet+0x12b>
jmp    114b <_PWMGenIntNumberGet+0x4b>
mov    -0x10(%rbp),%eax
sub    $0x40028100,%eax
je     125a <_PWMGenIntNumberGet+0x15a>
jmp    115e <_PWMGenIntNumberGet+0x5e>
mov    -0x10(%rbp),%eax
sub    $0x40029040,%eax
je     1289 <_PWMGenIntNumberGet+0x189>
jmp    1171 <_PWMGenIntNumberGet+0x71>
mov    -0x10(%rbp),%eax
sub    $0x40029080,%eax
je     12b8 <_PWMGenIntNumberGet+0x1b8>
jmp    1184 <_PWMGenIntNumberGet+0x84>
mov    -0x10(%rbp),%eax
sub    $0x400290c0,%eax
je     12e7 <_PWMGenIntNumberGet+0x1e7>
jmp    1197 <_PWMGenIntNumberGet+0x97>
mov    -0x10(%rbp),%eax
sub    $0x40029100,%eax
je     1316 <_PWMGenIntNumberGet+0x216>
jmp    1345 <_PWMGenIntNumberGet+0x245>
mov    $0x400fe000,%eax
mov    (%rax),%eax
and    $0x70ff0000,%eax
cmp    $0x10050000,%eax
jne    11cd <_PWMGenIntNumberGet+0xcd>
movl   $0x1a,-0x4(%rbp)
jmp    134c <_PWMGenIntNumberGet+0x24c>
mov    $0x400fe000,%eax
mov    (%rax),%eax
and    $0x70ff0000,%eax
cmp    $0x100a0000,%eax
jne    11f0 <_PWMGenIntNumberGet+0xf0>
movl   $0x1a,-0x4(%rbp)
jmp    134c <_PWMGenIntNumberGet+0x24c>
movl   $0x0,-0x4(%rbp)
jmp    134c <_PWMGenIntNumberGet+0x24c>
mov    $0x400fe000,%eax
mov    (%rax),%eax
and    $0x70ff0000,%eax
cmp    $0x100a0000,%eax
jne    121f <_PWMGenIntNumberGet+0x11f>
movl   $0x1b,-0x4(%rbp)
jmp    134c <_PWMGenIntNumberGet+0x24c>
movl   $0x0,-0x4(%rbp)
jmp    134c <_PWMGenIntNumberGet+0x24c>
mov    $0x400fe000,%eax
mov    (%rax),%eax
and    $0x70ff0000,%eax
cmp    $0x100a0000,%eax
jne    124e <_PWMGenIntNumberGet+0x14e>
movl   $0x1c,-0x4(%rbp)
jmp    134c <_PWMGenIntNumberGet+0x24c>
movl   $0x0,-0x4(%rbp)
jmp    134c <_PWMGenIntNumberGet+0x24c>
mov    $0x400fe000,%eax
mov    (%rax),%eax
and    $0x70ff0000,%eax
cmp    $0x100a0000,%eax
jne    127d <_PWMGenIntNumberGet+0x17d>
movl   $0x3b,-0x4(%rbp)
jmp    134c <_PWMGenIntNumberGet+0x24c>
movl   $0x0,-0x4(%rbp)
jmp    134c <_PWMGenIntNumberGet+0x24c>
mov    $0x400fe000,%eax
mov    (%rax),%eax
and    $0x70ff0000,%eax
cmp    $0x10050000,%eax
jne    12ac <_PWMGenIntNumberGet+0x1ac>
movl   $0x96,-0x4(%rbp)
jmp    134c <_PWMGenIntNumberGet+0x24c>
movl   $0x0,-0x4(%rbp)
jmp    134c <_PWMGenIntNumberGet+0x24c>
mov    $0x400fe000,%eax
mov    (%rax),%eax
and    $0x70ff0000,%eax
cmp    $0x10050000,%eax
jne    12db <_PWMGenIntNumberGet+0x1db>
movl   $0x97,-0x4(%rbp)
jmp    134c <_PWMGenIntNumberGet+0x24c>
movl   $0x0,-0x4(%rbp)
jmp    134c <_PWMGenIntNumberGet+0x24c>
mov    $0x400fe000,%eax
mov    (%rax),%eax
and    $0x70ff0000,%eax
cmp    $0x10050000,%eax
jne    130a <_PWMGenIntNumberGet+0x20a>
movl   $0x98,-0x4(%rbp)
jmp    134c <_PWMGenIntNumberGet+0x24c>
movl   $0x0,-0x4(%rbp)
jmp    134c <_PWMGenIntNumberGet+0x24c>
mov    $0x400fe000,%eax
mov    (%rax),%eax
and    $0x70ff0000,%eax
cmp    $0x10050000,%eax
jne    1339 <_PWMGenIntNumberGet+0x239>
movl   $0x99,-0x4(%rbp)
jmp    134c <_PWMGenIntNumberGet+0x24c>
movl   $0x0,-0x4(%rbp)
jmp    134c <_PWMGenIntNumberGet+0x24c>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<_PWMGenIntNumberGet>:
add    %esi,%edi
xor    %eax,%eax
cmp    $0x4002903f,%edi
jg     1134 <_PWMGenIntNumberGet+0x34>
mov    $0x100a0000,%ecx
cmp    $0x400280bf,%edi
jg     1153 <_PWMGenIntNumberGet+0x53>
cmp    $0x40028040,%edi
je     1181 <_PWMGenIntNumberGet+0x81>
mov    $0x1b,%edx
cmp    $0x40028080,%edi
je     11b8 <_PWMGenIntNumberGet+0xb8>
jmp    119f <_PWMGenIntNumberGet+0x9f>
cmp    $0x400290bf,%edi
jg     116a <_PWMGenIntNumberGet+0x6a>
cmp    $0x40029040,%edi
je     11a0 <_PWMGenIntNumberGet+0xa0>
cmp    $0x40029080,%edi
jne    119f <_PWMGenIntNumberGet+0x9f>
mov    $0x97,%edx
jmp    11b3 <_PWMGenIntNumberGet+0xb3>
cmp    $0x400280c0,%edi
je     11a7 <_PWMGenIntNumberGet+0xa7>
cmp    $0x40028100,%edi
jne    119f <_PWMGenIntNumberGet+0x9f>
mov    $0x3b,%edx
jmp    11b8 <_PWMGenIntNumberGet+0xb8>
cmp    $0x400290c0,%edi
je     11ae <_PWMGenIntNumberGet+0xae>
cmp    $0x40029100,%edi
jne    119f <_PWMGenIntNumberGet+0x9f>
mov    $0x99,%edx
jmp    11b3 <_PWMGenIntNumberGet+0xb3>
mov    $0x70ff0000,%esi
and    0x400fe000,%esi
mov    $0x1a,%edx
mov    $0x1a,%eax
cmp    $0x10050000,%esi
jne    11b8 <_PWMGenIntNumberGet+0xb8>
ret
mov    $0x96,%edx
jmp    11b3 <_PWMGenIntNumberGet+0xb3>
mov    $0x1c,%edx
jmp    11b8 <_PWMGenIntNumberGet+0xb8>
mov    $0x98,%edx
mov    $0x10050000,%ecx
mov    $0x70ff0000,%esi
and    0x400fe000,%esi
xor    %eax,%eax
cmp    %ecx,%esi
cmove  %edx,%eax
ret

LLVM IR (-O0):
define i32 @_PWMGenIntNumberGet(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 %0, i32* %4
store i32 %1, i32* %5
%6 = load i32, i32* %4
%7 = load i32, i32* %5
%8 = add nsw i32 %6, %7
switch i32 %8, label %62 [
i32 1073905728, label %9
i32 1073905792, label %20
i32 1073905856, label %26
i32 1073905920, label %32
i32 1073909824, label %38
i32 1073909888, label %44
i32 1073909952, label %50
i32 1073910016, label %56
]
9: ; preds = %2
%10 = load volatile i32, i32* inttoptr (i64 1074782208 to i32*)
%11 = and i32 %10, 1895759872
%12 = icmp eq i32 %11, 268763136
br i1 %12, label %13, label %14
13: ; preds = %9
store i32 26, i32* %3
br label %63
14: ; preds = %9
%15 = load volatile i32, i32* inttoptr (i64 1074782208 to i32*)
%16 = and i32 %15, 1895759872
%17 = icmp eq i32 %16, 269090816
br i1 %17, label %18, label %19
18: ; preds = %14
store i32 26, i32* %3
br label %63
19: ; preds = %14
store i32 0, i32* %3
br label %63
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 %25
24: ; preds = %20
store i32 27, i32* %3
br label %63
25: ; preds = %20
store i32 0, i32* %3
br label %63
26: ; preds = %2
%27 = load volatile i32, i32* inttoptr (i64 1074782208 to i32*)
%28 = and i32 %27, 1895759872
%29 = icmp eq i32 %28, 269090816
br i1 %29, label %30, label %31
30: ; preds = %26
store i32 28, i32* %3
br label %63
31: ; preds = %26
store i32 0, i32* %3
br label %63
32: ; preds = %2
%33 = load volatile i32, i32* inttoptr (i64 1074782208 to i32*)
%34 = and i32 %33, 1895759872
%35 = icmp eq i32 %34, 269090816
br i1 %35, label %36, label %37
36: ; preds = %32
store i32 59, i32* %3
br label %63
37: ; preds = %32
store i32 0, i32* %3
br label %63
38: ; preds = %2
%39 = load volatile i32, i32* inttoptr (i64 1074782208 to i32*)
%40 = and i32 %39, 1895759872
%41 = icmp eq i32 %40, 268763136
br i1 %41, label %42, label %43
42: ; preds = %38
store i32 150, i32* %3
br label %63
43: ; preds = %38
store i32 0, i32* %3
br label %63
44: ; preds = %2
%45 = load volatile i32, i32* inttoptr (i64 1074782208 to i32*)
%46 = and i32 %45, 1895759872
%47 = icmp eq i32 %46, 268763136
br i1 %47, label %48, label %49
48: ; preds = %44
store i32 151, i32* %3
br label %63
49: ; preds = %44
store i32 0, i32* %3
br label %63
50: ; preds = %2
%51 = load volatile i32, i32* inttoptr (i64 1074782208 to i32*)
%52 = and i32 %51, 1895759872
%53 = icmp eq i32 %52, 268763136
br i1 %53, label %54, label %55
54: ; preds = %50
store i32 152, i32* %3
br label %63
55: ; preds = %50
store i32 0, i32* %3
br label %63
56: ; preds = %2
%57 = load volatile i32, i32* inttoptr (i64 1074782208 to i32*)
%58 = and i32 %57, 1895759872
%59 = icmp eq i32 %58, 268763136
br i1 %59, label %60, label %61
60: ; preds = %56
store i32 153, i32* %3
br label %63
61: ; preds = %56
store i32 0, i32* %3
br label %63
62: ; preds = %2
store i32 0, i32* %3
br label %63
63: ; preds = %62, %61, %60, %55, %54, %49, %48, %43, %42, %37, %36, %31, %30, %25, %24, %19, %18, %13
%64 = load i32, i32* %3
ret i32 %64
}

LLVM IR (-O2):
define i32 @_PWMGenIntNumberGet(i32 %0, i32 %1) {
%3 = add nsw i32 %1, %0
switch i32 %3, label %21 [
i32 1073905728, label %4
i32 1073905792, label %14
i32 1073905856, label %8
i32 1073905920, label %9
i32 1073909824, label %10
i32 1073909888, label %11
i32 1073909952, label %12
i32 1073910016, label %13
]
4: ; preds = %2
%5 = load volatile i32, i32* inttoptr (i64 1074782208 to i32*)
%6 = and i32 %5, 1895759872
%7 = icmp eq i32 %6, 268763136
br i1 %7, label %21, label %14
8: ; preds = %2
br label %14
9: ; preds = %2
br label %14
10: ; preds = %2
br label %14
11: ; preds = %2
br label %14
12: ; preds = %2
br label %14
13: ; preds = %2
br label %14
14: ; preds = %2, %4, %8, %9, %10, %11, %12, %13
%15 = phi i32 [ 268763136, %13 ], [ 268763136, %12 ], [ 268763136, %11 ], [ 268763136, %10 ], [ 269090816, %9 ], [ 269090816, %8 ], [ 269090816, %4 ], [ 269090816, %2 ]
%16 = phi i32 [ 153, %13 ], [ 152, %12 ], [ 151, %11 ], [ 150, %10 ], [ 59, %9 ], [ 28, %8 ], [ 26, %4 ], [ 27, %2 ]
%17 = load volatile i32, i32* inttoptr (i64 1074782208 to i32*)
%18 = and i32 %17, 1895759872
%19 = icmp eq i32 %18, %15
%20 = select i1 %19, i32 %16, i32 0
br label %21
21: ; preds = %14, %2, %4
%22 = phi i32 [ 26, %4 ], [ 0, %2 ], [ %20, %14 ]
ret i32 %22
}