#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 */
void AONRTCChannelEnable(uint32_t ui32Channel) {

  ;
  if (ui32Channel & 0x1) {
    (*((volatile unsigned long
            *)(((unsigned long)(0x40092000 + 0x00000014) & 0xF0000000) |
               0x02000000 |
               (((unsigned long)(0x40092000 + 0x00000014) & 0x000FFFFF) << 5) |
               ((0) << 2)))) = 1;
  }
  if (ui32Channel & 0x2) {
    (*((volatile unsigned long
            *)(((unsigned long)(0x40092000 + 0x00000014) & 0xF0000000) |
               0x02000000 |
               (((unsigned long)(0x40092000 + 0x00000014) & 0x000FFFFF) << 5) |
               ((8) << 2)))) = 1;
  }
  if (ui32Channel & 0x4) {
    (*((volatile unsigned long
            *)(((unsigned long)(0x40092000 + 0x00000014) & 0xF0000000) |
               0x02000000 |
               (((unsigned long)(0x40092000 + 0x00000014) & 0x000FFFFF) << 5) |
               ((16) << 2)))) = 1;
  }
}


x86 assembly (clang, -O0):
<AONRTCChannelEnable>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
and    $0x1,%eax
cmp    $0x0,%eax
je     1122 <AONRTCChannelEnable+0x22>
mov    $0x43240280,%eax
movq   $0x1,(%rax)
mov    -0x4(%rbp),%eax
and    $0x2,%eax
cmp    $0x0,%eax
je     113d <AONRTCChannelEnable+0x3d>
mov    $0x432402a0,%eax
movq   $0x1,(%rax)
mov    -0x4(%rbp),%eax
and    $0x4,%eax
cmp    $0x0,%eax
je     1158 <AONRTCChannelEnable+0x58>
mov    $0x432402c0,%eax
movq   $0x1,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<AONRTCChannelEnable>:
test   $0x1,%dil
jne    1113 <AONRTCChannelEnable+0x13>
test   $0x2,%dil
jne    1125 <AONRTCChannelEnable+0x25>
test   $0x4,%dil
jne    1137 <AONRTCChannelEnable+0x37>
ret
movq   $0x1,0x43240280
test   $0x2,%dil
je     110c <AONRTCChannelEnable+0xc>
movq   $0x1,0x432402a0
test   $0x4,%dil
je     1112 <AONRTCChannelEnable+0x12>
movq   $0x1,0x432402c0
ret

LLVM IR (-O0):
define void @AONRTCChannelEnable(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = and i32 %3, 1
%5 = icmp ne i32 %4, 0
br i1 %5, label %6, label %7
6: ; preds = %1
store volatile i64 1, i64* inttoptr (i64 1126433408 to i64*)
br label %7
7: ; preds = %6, %1
%8 = load i32, i32* %2
%9 = and i32 %8, 2
%10 = icmp ne i32 %9, 0
br i1 %10, label %11, label %12
11: ; preds = %7
store volatile i64 1, i64* inttoptr (i64 1126433440 to i64*)
br label %12
12: ; preds = %11, %7
%13 = load i32, i32* %2
%14 = and i32 %13, 4
%15 = icmp ne i32 %14, 0
br i1 %15, label %16, label %17
16: ; preds = %12
store volatile i64 1, i64* inttoptr (i64 1126433472 to i64*)
br label %17
17: ; preds = %16, %12
ret void
}

LLVM IR (-O2):
define void @AONRTCChannelEnable(i32 %0) {
%2 = and i32 %0, 1
%3 = icmp eq i32 %2, 0
br i1 %3, label %5, label %4
4: ; preds = %1
store volatile i64 1, i64* inttoptr (i64 1126433408 to i64*)
br label %5
5: ; preds = %4, %1
%6 = and i32 %0, 2
%7 = icmp eq i32 %6, 0
br i1 %7, label %9, label %8
8: ; preds = %5
store volatile i64 1, i64* inttoptr (i64 1126433440 to i64*)
br label %9
9: ; preds = %8, %5
%10 = and i32 %0, 4
%11 = icmp eq i32 %10, 0
br i1 %11, label %13, label %12
12: ; preds = %9
store volatile i64 1, i64* inttoptr (i64 1126433472 to i64*)
br label %13
13: ; preds = %12, %9
ret void
}