#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*/ GPIODirModeSet(unsigned long, unsigned char, int);
int /*<<< orphan*/ GPIOPadConfigSet(unsigned long, unsigned char, int, int);
void GPIOPinTypeI2CSCL(unsigned long ulPort, unsigned char ucPins) {
  ;
  GPIODirModeSet(ulPort, ucPins, 0x00000002);
  if (((((*((volatile unsigned long *)(0x400FE000))) & 0x70000000) ==
        0x00000000) ||
       (((*((volatile unsigned long *)(0x400FE000))) &
         (0x70000000 | 0x00FF0000)) == (0x10000000 | 0x00000000))) ||
      (((*((volatile unsigned long *)(0x400FE000))) &
        (0x70000000 | 0x00FF0000)) == (0x10000000 | 0x00010000)) ||
      (((*((volatile unsigned long *)(0x400FE000))) &
        (0x70000000 | 0x00FF0000)) == (0x10000000 | 0x00030000)) ||
      (((*((volatile unsigned long *)(0x400FE000))) &
        (0x70000000 | 0x00FF0000)) == (0x10000000 | 0x00040000)) ||
      (((*((volatile unsigned long *)(0x400FE000))) &
        (0x70000000 | 0x00FF0000)) == (0x10000000 | 0x00060000))) {
    GPIOPadConfigSet(ulPort, ucPins, 0x00000001, 0x00000009);
  } else {
    GPIOPadConfigSet(ulPort, ucPins, 0x00000001, 0x00000008);
  }
}


x86 assembly (clang, -O0):
<GPIOPinTypeI2CSCL>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %sil,%al
mov    %rdi,-0x8(%rbp)
mov    %al,-0x9(%rbp)
mov    -0x8(%rbp),%rdi
mov    $0x2,%edx
movzbl -0x9(%rbp),%esi
call   1040 <GPIODirModeSet@plt>
mov    $0x400fe000,%eax
mov    (%rax),%rax
and    $0x70000000,%rax
cmp    $0x0,%rax
je     11de <GPIOPinTypeI2CSCL+0xbe>
mov    $0x400fe000,%eax
mov    (%rax),%rax
and    $0x70ff0000,%rax
cmp    $0x10000000,%rax
je     11de <GPIOPinTypeI2CSCL+0xbe>
mov    $0x400fe000,%eax
mov    (%rax),%rax
and    $0x70ff0000,%rax
cmp    $0x10010000,%rax
je     11de <GPIOPinTypeI2CSCL+0xbe>
mov    $0x400fe000,%eax
mov    (%rax),%rax
and    $0x70ff0000,%rax
cmp    $0x10030000,%rax
je     11de <GPIOPinTypeI2CSCL+0xbe>
mov    $0x400fe000,%eax
mov    (%rax),%rax
and    $0x70ff0000,%rax
cmp    $0x10040000,%rax
je     11de <GPIOPinTypeI2CSCL+0xbe>
mov    $0x400fe000,%eax
mov    (%rax),%rax
and    $0x70ff0000,%rax
cmp    $0x10060000,%rax
jne    11fa <GPIOPinTypeI2CSCL+0xda>
mov    -0x8(%rbp),%rdi
mov    $0x1,%edx
mov    $0x9,%ecx
movzbl -0x9(%rbp),%esi
call   1030 <GPIOPadConfigSet@plt>
jmp    1211 <GPIOPinTypeI2CSCL+0xf1>
mov    -0x8(%rbp),%rdi
mov    $0x1,%edx
mov    $0x8,%ecx
movzbl -0x9(%rbp),%esi
call   1030 <GPIOPadConfigSet@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<GPIOPinTypeI2CSCL>:
push   %rbp
push   %rbx
push   %rax
mov    %esi,%ebp
mov    %rdi,%rbx
mov    $0x2,%edx
call   1040 <GPIODirModeSet@plt>
mov    $0x9,%ecx
testq  $0x70000000,0x400fe000
je     11af <GPIOPinTypeI2CSCL+0x8f>
mov    0x400fe000,%rax
40
and    $0x70ff0000,%eax
cmp    $0x10000000,%eax
je     11af <GPIOPinTypeI2CSCL+0x8f>
mov    0x400fe000,%rax
40
and    $0x70ff0000,%eax
cmp    $0x10010000,%eax
je     11af <GPIOPinTypeI2CSCL+0x8f>
mov    0x400fe000,%rax
40
and    $0x70ff0000,%eax
cmp    $0x10030000,%eax
je     11af <GPIOPinTypeI2CSCL+0x8f>
mov    0x400fe000,%rax
40
and    $0x70ff0000,%eax
cmp    $0x10040000,%eax
je     11af <GPIOPinTypeI2CSCL+0x8f>
mov    0x400fe000,%rax
40
and    $0x70ff0000,%eax
xor    %ecx,%ecx
cmp    $0x10060000,%eax
sete   %cl
or     $0x8,%ecx
movzbl %bpl,%esi
mov    %rbx,%rdi
mov    $0x1,%edx
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1030 <GPIOPadConfigSet@plt>

LLVM IR (-O0):
define void @GPIOPinTypeI2CSCL(i64 %0, i8 zeroext %1) {
%3 = alloca i64
%4 = alloca i8
store i64 %0, i64* %3
store i8 %1, i8* %4
%5 = load i64, i64* %3
%6 = load i8, i8* %4
%7 = call i32 @GPIODirModeSet(i64 %5, i8 zeroext %6, i32 2)
%8 = load volatile i64, i64* inttoptr (i64 1074782208 to i64*)
%9 = and i64 %8, 1879048192
%10 = icmp eq i64 %9, 0
br i1 %10, label %31, label %11
11: ; preds = %2
%12 = load volatile i64, i64* inttoptr (i64 1074782208 to i64*)
%13 = and i64 %12, 1895759872
%14 = icmp eq i64 %13, 268435456
br i1 %14, label %31, label %15
15: ; preds = %11
%16 = load volatile i64, i64* inttoptr (i64 1074782208 to i64*)
%17 = and i64 %16, 1895759872
%18 = icmp eq i64 %17, 268500992
br i1 %18, label %31, label %19
19: ; preds = %15
%20 = load volatile i64, i64* inttoptr (i64 1074782208 to i64*)
%21 = and i64 %20, 1895759872
%22 = icmp eq i64 %21, 268632064
br i1 %22, label %31, label %23
23: ; preds = %19
%24 = load volatile i64, i64* inttoptr (i64 1074782208 to i64*)
%25 = and i64 %24, 1895759872
%26 = icmp eq i64 %25, 268697600
br i1 %26, label %31, label %27
27: ; preds = %23
%28 = load volatile i64, i64* inttoptr (i64 1074782208 to i64*)
%29 = and i64 %28, 1895759872
%30 = icmp eq i64 %29, 268828672
br i1 %30, label %31, label %35
31: ; preds = %27, %23, %19, %15, %11, %2
%32 = load i64, i64* %3
%33 = load i8, i8* %4
%34 = call i32 @GPIOPadConfigSet(i64 %32, i8 zeroext %33, i32 1, i32 9)
br label %39
35: ; preds = %27
%36 = load i64, i64* %3
%37 = load i8, i8* %4
%38 = call i32 @GPIOPadConfigSet(i64 %36, i8 zeroext %37, i32 1, i32 8)
br label %39
39: ; preds = %35, %31
ret void
}

LLVM IR (-O2):
define void @GPIOPinTypeI2CSCL(i64 %0, i8 zeroext %1) {
%3 = tail call i32 @GPIODirModeSet(i64 %0, i8 zeroext %1, i32 2)
%4 = load volatile i64, i64* inttoptr (i64 1074782208 to i64*)
%5 = and i64 %4, 1879048192
%6 = icmp eq i64 %5, 0
br i1 %6, label %28, label %7
7: ; preds = %2
%8 = load volatile i64, i64* inttoptr (i64 1074782208 to i64*)
%9 = and i64 %8, 1895759872
%10 = icmp eq i64 %9, 268435456
br i1 %10, label %28, label %11
11: ; preds = %7
%12 = load volatile i64, i64* inttoptr (i64 1074782208 to i64*)
%13 = and i64 %12, 1895759872
%14 = icmp eq i64 %13, 268500992
br i1 %14, label %28, label %15
15: ; preds = %11
%16 = load volatile i64, i64* inttoptr (i64 1074782208 to i64*)
%17 = and i64 %16, 1895759872
%18 = icmp eq i64 %17, 268632064
br i1 %18, label %28, label %19
19: ; preds = %15
%20 = load volatile i64, i64* inttoptr (i64 1074782208 to i64*)
%21 = and i64 %20, 1895759872
%22 = icmp eq i64 %21, 268697600
br i1 %22, label %28, label %23
23: ; preds = %19
%24 = load volatile i64, i64* inttoptr (i64 1074782208 to i64*)
%25 = and i64 %24, 1895759872
%26 = icmp eq i64 %25, 268828672
%27 = select i1 %26, i32 9, i32 8
br label %28
28: ; preds = %23, %2, %7, %11, %15, %19
%29 = phi i32 [ 9, %19 ], [ 9, %15 ], [ 9, %11 ], [ 9, %7 ], [ 9, %2 ], [ %27, %23 ]
%30 = tail call i32 @GPIOPadConfigSet(i64 %0, i8 zeroext %1, i32 1, i32 %29)
ret void
}