#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 */

/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stderr;
int pin_to_input_group3(int pin) {
  switch (pin) {
  default:
    fprintf(stderr, "gpio: Wrong mode for this pin!\n");
    exit(-1);
    case ((('B' == 'A' ? 0x000 : 'B' == 'B' ? 0x100 : 'B' == 'C' ? 0x200 : 'B' == 'D' ? 0x300 : 'B' == 'E' ? 0x400 : 'B' == 'F' ? 0x500 : 'B' == 'G' ? 0x600 : 'B' == 'H' ? 0x700 : 'B' == 'J' ? 0x800 : 0x900) << 16) | (1 << 0)): return 5;
    case ((('B' == 'A' ? 0x000 : 'B' == 'B' ? 0x100 : 'B' == 'C' ? 0x200 : 'B' == 'D' ? 0x300 : 'B' == 'E' ? 0x400 : 'B' == 'F' ? 0x500 : 'B' == 'G' ? 0x600 : 'B' == 'H' ? 0x700 : 'B' == 'J' ? 0x800 : 0x900) << 16) | (1 << 15)): return 3;
    case ((('B' == 'A' ? 0x000 : 'B' == 'B' ? 0x100 : 'B' == 'C' ? 0x200 : 'B' == 'D' ? 0x300 : 'B' == 'E' ? 0x400 : 'B' == 'F' ? 0x500 : 'B' == 'G' ? 0x600 : 'B' == 'H' ? 0x700 : 'B' == 'J' ? 0x800 : 0x900) << 16) | (1 << 7)): return 7;
    case ((('B' == 'A' ? 0x000 : 'B' == 'B' ? 0x100 : 'B' == 'C' ? 0x200 : 'B' == 'D' ? 0x300 : 'B' == 'E' ? 0x400 : 'B' == 'F' ? 0x500 : 'B' == 'G' ? 0x600 : 'B' == 'H' ? 0x700 : 'B' == 'J' ? 0x800 : 0x900) << 16) | (1 << 8)): return 2;
    case ((('C' == 'A' ? 0x000 : 'C' == 'B' ? 0x100 : 'C' == 'C' ? 0x200 : 'C' == 'D' ? 0x300 : 'C' == 'E' ? 0x400 : 'C' == 'F' ? 0x500 : 'C' == 'G' ? 0x600 : 'C' == 'H' ? 0x700 : 'C' == 'J' ? 0x800 : 0x900) << 16) | (1 << 3)): return 12;
    case ((('D' == 'A' ? 0x000 : 'D' == 'B' ? 0x100 : 'D' == 'C' ? 0x200 : 'D' == 'D' ? 0x300 : 'D' == 'E' ? 0x400 : 'D' == 'F' ? 0x500 : 'D' == 'G' ? 0x600 : 'D' == 'H' ? 0x700 : 'D' == 'J' ? 0x800 : 0x900) << 16) | (1 << 12)): return 10;
    case ((('D' == 'A' ? 0x000 : 'D' == 'B' ? 0x100 : 'D' == 'C' ? 0x200 : 'D' == 'D' ? 0x300 : 'D' == 'E' ? 0x400 : 'D' == 'F' ? 0x500 : 'D' == 'G' ? 0x600 : 'D' == 'H' ? 0x700 : 'D' == 'J' ? 0x800 : 0x900) << 16) | (1 << 4)): return 4;
    case ((('D' == 'A' ? 0x000 : 'D' == 'B' ? 0x100 : 'D' == 'C' ? 0x200 : 'D' == 'D' ? 0x300 : 'D' == 'E' ? 0x400 : 'D' == 'F' ? 0x500 : 'D' == 'G' ? 0x600 : 'D' == 'H' ? 0x700 : 'D' == 'J' ? 0x800 : 0x900) << 16) | (1 << 9)): return 0;
    case ((('E' == 'A' ? 0x000 : 'E' == 'B' ? 0x100 : 'E' == 'C' ? 0x200 : 'E' == 'D' ? 0x300 : 'E' == 'E' ? 0x400 : 'E' == 'F' ? 0x500 : 'E' == 'G' ? 0x600 : 'E' == 'H' ? 0x700 : 'E' == 'J' ? 0x800 : 0x900) << 16) | (1 << 3)): return 6;
    case ((('E' == 'A' ? 0x000 : 'E' == 'B' ? 0x100 : 'E' == 'C' ? 0x200 : 'E' == 'D' ? 0x300 : 'E' == 'E' ? 0x400 : 'E' == 'F' ? 0x500 : 'E' == 'G' ? 0x600 : 'E' == 'H' ? 0x700 : 'E' == 'J' ? 0x800 : 0x900) << 16) | (1 << 9)): return 13;
    case ((('F' == 'A' ? 0x000 : 'F' == 'B' ? 0x100 : 'F' == 'C' ? 0x200 : 'F' == 'D' ? 0x300 : 'F' == 'E' ? 0x400 : 'F' == 'F' ? 0x500 : 'F' == 'G' ? 0x600 : 'F' == 'H' ? 0x700 : 'F' == 'J' ? 0x800 : 0x900) << 16) | (1 << 12)): return 9;
    case ((('F' == 'A' ? 0x000 : 'F' == 'B' ? 0x100 : 'F' == 'C' ? 0x200 : 'F' == 'D' ? 0x300 : 'F' == 'E' ? 0x400 : 'F' == 'F' ? 0x500 : 'F' == 'G' ? 0x600 : 'F' == 'H' ? 0x700 : 'F' == 'J' ? 0x800 : 0x900) << 16) | (1 << 8)): return 11;
    }
}


x86 assembly (clang, -O0):
<pin_to_input_group3>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
sub    $0x1000001,%eax
je     1231 <pin_to_input_group3+0x111>
jmp    1141 <pin_to_input_group3+0x21>
mov    -0xc(%rbp),%eax
sub    $0x1000080,%eax
je     1249 <pin_to_input_group3+0x129>
jmp    1154 <pin_to_input_group3+0x34>
mov    -0xc(%rbp),%eax
sub    $0x1000100,%eax
je     1255 <pin_to_input_group3+0x135>
jmp    1167 <pin_to_input_group3+0x47>
mov    -0xc(%rbp),%eax
sub    $0x1008000,%eax
je     123d <pin_to_input_group3+0x11d>
jmp    117a <pin_to_input_group3+0x5a>
mov    -0xc(%rbp),%eax
sub    $0x2000008,%eax
je     1261 <pin_to_input_group3+0x141>
jmp    118d <pin_to_input_group3+0x6d>
mov    -0xc(%rbp),%eax
sub    $0x3000010,%eax
je     1279 <pin_to_input_group3+0x159>
jmp    11a0 <pin_to_input_group3+0x80>
mov    -0xc(%rbp),%eax
sub    $0x3000200,%eax
je     1285 <pin_to_input_group3+0x165>
jmp    11b3 <pin_to_input_group3+0x93>
mov    -0xc(%rbp),%eax
sub    $0x3001000,%eax
je     126d <pin_to_input_group3+0x14d>
jmp    11c6 <pin_to_input_group3+0xa6>
mov    -0xc(%rbp),%eax
sub    $0x4000008,%eax
je     1291 <pin_to_input_group3+0x171>
jmp    11d9 <pin_to_input_group3+0xb9>
mov    -0xc(%rbp),%eax
sub    $0x4000200,%eax
je     129d <pin_to_input_group3+0x17d>
jmp    11ec <pin_to_input_group3+0xcc>
mov    -0xc(%rbp),%eax
sub    $0x5000100,%eax
je     12b5 <pin_to_input_group3+0x195>
jmp    11ff <pin_to_input_group3+0xdf>
mov    -0xc(%rbp),%eax
sub    $0x5001000,%eax
je     12a9 <pin_to_input_group3+0x189>
jmp    1212 <pin_to_input_group3+0xf2>
mov    0x2dc7(%rip),%rax
mov    (%rax),%edi
lea    0xdde(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0xffffffff,%edi
call   1040 <exit@plt>
movl   $0x5,-0x4(%rbp)
jmp    12bc <pin_to_input_group3+0x19c>
movl   $0x3,-0x4(%rbp)
jmp    12bc <pin_to_input_group3+0x19c>
movl   $0x7,-0x4(%rbp)
jmp    12bc <pin_to_input_group3+0x19c>
movl   $0x2,-0x4(%rbp)
jmp    12bc <pin_to_input_group3+0x19c>
movl   $0xc,-0x4(%rbp)
jmp    12bc <pin_to_input_group3+0x19c>
movl   $0xa,-0x4(%rbp)
jmp    12bc <pin_to_input_group3+0x19c>
movl   $0x4,-0x4(%rbp)
jmp    12bc <pin_to_input_group3+0x19c>
movl   $0x0,-0x4(%rbp)
jmp    12bc <pin_to_input_group3+0x19c>
movl   $0x6,-0x4(%rbp)
jmp    12bc <pin_to_input_group3+0x19c>
movl   $0xd,-0x4(%rbp)
jmp    12bc <pin_to_input_group3+0x19c>
movl   $0x9,-0x4(%rbp)
jmp    12bc <pin_to_input_group3+0x19c>
movl   $0xb,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<pin_to_input_group3>:
cmp    $0x30001ff,%edi
jg     1152 <pin_to_input_group3+0x32>
cmp    $0x1007fff,%edi
jg     1178 <pin_to_input_group3+0x58>
cmp    $0x1000001,%edi
je     11b4 <pin_to_input_group3+0x94>
cmp    $0x1000080,%edi
je     11ba <pin_to_input_group3+0x9a>
cmp    $0x1000100,%edi
jne    11e1 <pin_to_input_group3+0xc1>
mov    $0x2,%eax
ret
cmp    $0x40001ff,%edi
jg     1196 <pin_to_input_group3+0x76>
cmp    $0x3000200,%edi
je     11c0 <pin_to_input_group3+0xa0>
cmp    $0x3001000,%edi
je     11c3 <pin_to_input_group3+0xa3>
cmp    $0x4000008,%edi
jne    11e1 <pin_to_input_group3+0xc1>
mov    $0x6,%eax
ret
cmp    $0x1008000,%edi
je     11c9 <pin_to_input_group3+0xa9>
cmp    $0x2000008,%edi
je     11cf <pin_to_input_group3+0xaf>
cmp    $0x3000010,%edi
jne    11e1 <pin_to_input_group3+0xc1>
mov    $0x4,%eax
ret
cmp    $0x4000200,%edi
je     11d5 <pin_to_input_group3+0xb5>
cmp    $0x5000100,%edi
je     11db <pin_to_input_group3+0xbb>
cmp    $0x5001000,%edi
jne    11e1 <pin_to_input_group3+0xc1>
mov    $0x9,%eax
ret
mov    $0x5,%eax
ret
mov    $0x7,%eax
ret
xor    %eax,%eax
ret
mov    $0xa,%eax
ret
mov    $0x3,%eax
ret
mov    $0xc,%eax
ret
mov    $0xd,%eax
ret
mov    $0xb,%eax
ret
push   %rax
mov    0x2df7(%rip),%rax
mov    (%rax),%edi
lea    0xe0e(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0xffffffff,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [32 x i8] c"gpio: Wrong mode for this pin!\0A\00"
define i32 @pin_to_input_group3(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
switch i32 %4, label %5 [
i32 16777217, label %9
i32 16809984, label %10
i32 16777344, label %11
i32 16777472, label %12
i32 33554440, label %13
i32 50335744, label %14
i32 50331664, label %15
i32 50332160, label %16
i32 67108872, label %17
i32 67109376, label %18
i32 83890176, label %19
i32 83886336, label %20
]
5: ; preds = %1
%6 = load i32, i32* @stderr
%7 = call i32 @fprintf(i32 %6, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0))
%8 = call i32 @exit(i32 -1)
unreachable
9: ; preds = %1
store i32 5, i32* %2
br label %21
10: ; preds = %1
store i32 3, i32* %2
br label %21
11: ; preds = %1
store i32 7, i32* %2
br label %21
12: ; preds = %1
store i32 2, i32* %2
br label %21
13: ; preds = %1
store i32 12, i32* %2
br label %21
14: ; preds = %1
store i32 10, i32* %2
br label %21
15: ; preds = %1
store i32 4, i32* %2
br label %21
16: ; preds = %1
store i32 0, i32* %2
br label %21
17: ; preds = %1
store i32 6, i32* %2
br label %21
18: ; preds = %1
store i32 13, i32* %2
br label %21
19: ; preds = %1
store i32 9, i32* %2
br label %21
20: ; preds = %1
store i32 11, i32* %2
br label %21
21: ; preds = %20, %19, %18, %17, %16, %15, %14, %13, %12, %11, %10, %9
%22 = load i32, i32* %2
ret i32 %22
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [32 x i8] c"gpio: Wrong mode for this pin!\0A\00"
define i32 @pin_to_input_group3(i32 %0) {
switch i32 %0, label %2 [
i32 16777217, label %17
i32 16809984, label %6
i32 16777344, label %7
i32 16777472, label %8
i32 33554440, label %9
i32 50335744, label %10
i32 50331664, label %11
i32 50332160, label %12
i32 67108872, label %13
i32 67109376, label %14
i32 83890176, label %15
i32 83886336, label %16
]
2: ; preds = %1
%3 = load i32, i32* @stderr
%4 = tail call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0))
%5 = tail call i32 @exit(i32 -1)
unreachable
6: ; preds = %1
br label %17
7: ; preds = %1
br label %17
8: ; preds = %1
br label %17
9: ; preds = %1
br label %17
10: ; preds = %1
br label %17
11: ; preds = %1
br label %17
12: ; preds = %1
br label %17
13: ; preds = %1
br label %17
14: ; preds = %1
br label %17
15: ; preds = %1
br label %17
16: ; preds = %1
br label %17
17: ; preds = %1, %16, %15, %14, %13, %12, %11, %10, %9, %8, %7, %6
%18 = phi i32 [ 11, %16 ], [ 9, %15 ], [ 13, %14 ], [ 6, %13 ], [ 0, %12 ], [ 4, %11 ], [ 10, %10 ], [ 12, %9 ], [ 2, %8 ], [ 7, %7 ], [ 3, %6 ], [ 5, %1 ]
ret i32 %18
}