#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 AONRTCChannelDisable(uint32_t ui32Channel) {

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


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

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

LLVM IR (-O0):
define void @AONRTCChannelDisable(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 0, 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 0, 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 0, i64* inttoptr (i64 1126433472 to i64*)
br label %17
17: ; preds = %16, %12
ret void
}

LLVM IR (-O2):
define void @AONRTCChannelDisable(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 0, 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 0, 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 0, i64* inttoptr (i64 1126433472 to i64*)
br label %13
13: ; preds = %12, %9
ret void
}