#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 AESIntEnable(uint32_t ui32Base, uint32_t ui32IntFlags) {
  ;

  ;
  (*((volatile unsigned long *)(ui32Base + 0xFFFFA020))) |=
      (((ui32IntFlags & 0x00010000) >> 16) |
       ((ui32IntFlags & 0x00060000) >> 15) |
       ((ui32IntFlags & 0x00080000) >> 18));
  (*((volatile unsigned long *)(ui32Base + 0x00000090))) |=
      ui32IntFlags & 0x0000ffff;
}


x86 assembly (clang, -O0):
<AESIntEnable>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x8(%rbp),%eax
and    $0x10000,%eax
sar    $0x10,%eax
mov    -0x8(%rbp),%ecx
and    $0x60000,%ecx
sar    $0xf,%ecx
or     %ecx,%eax
mov    -0x8(%rbp),%ecx
and    $0x80000,%ecx
sar    $0x12,%ecx
or     %ecx,%eax
movslq %eax,%rdx
mov    -0x4(%rbp),%eax
add    $0xffffa020,%eax
mov    %eax,%eax
mov    (%rax),%rcx
or     %rdx,%rcx
mov    %rcx,(%rax)
mov    -0x8(%rbp),%eax
and    $0xffff,%eax
movslq %eax,%rdx
mov    -0x4(%rbp),%eax
add    $0x90,%eax
cltq
mov    (%rax),%rcx
or     %rdx,%rcx
mov    %rcx,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<AESIntEnable>:
mov    %esi,%eax
mov    %esi,%ecx
movzwl %si,%edx
shr    $0x10,%esi
and    $0x1,%esi
shr    $0xf,%eax
and    $0xc,%eax
or     %esi,%eax
shr    $0x12,%ecx
and    $0x2,%ecx
or     %eax,%ecx
lea    -0x5fe0(%rdi),%eax
or     %rcx,(%rax)
movslq %edi,%rax
or     %rdx,0x90(%rax)
ret

LLVM IR (-O0):
define void @AESIntEnable(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%5 = load i32, i32* %4
%6 = and i32 %5, 65536
%7 = ashr i32 %6, 16
%8 = load i32, i32* %4
%9 = and i32 %8, 393216
%10 = ashr i32 %9, 15
%11 = or i32 %7, %10
%12 = load i32, i32* %4
%13 = and i32 %12, 524288
%14 = ashr i32 %13, 18
%15 = or i32 %11, %14
%16 = sext i32 %15 to i64
%17 = load i32, i32* %3
%18 = add i32 %17, -24544
%19 = zext i32 %18 to i64
%20 = inttoptr i64 %19 to i64*
%21 = load volatile i64, i64* %20
%22 = or i64 %21, %16
store volatile i64 %22, i64* %20
%23 = load i32, i32* %4
%24 = and i32 %23, 65535
%25 = sext i32 %24 to i64
%26 = load i32, i32* %3
%27 = add nsw i32 %26, 144
%28 = sext i32 %27 to i64
%29 = inttoptr i64 %28 to i64*
%30 = load volatile i64, i64* %29
%31 = or i64 %30, %25
store volatile i64 %31, i64* %29
ret void
}

LLVM IR (-O2):
define void @AESIntEnable(i32 %0, i32 %1) {
%3 = lshr i32 %1, 16
%4 = and i32 %3, 1
%5 = lshr i32 %1, 15
%6 = and i32 %5, 12
%7 = or i32 %4, %6
%8 = lshr i32 %1, 18
%9 = and i32 %8, 2
%10 = or i32 %7, %9
%11 = zext i32 %10 to i64
%12 = add i32 %0, -24544
%13 = zext i32 %12 to i64
%14 = inttoptr i64 %13 to i64*
%15 = load volatile i64, i64* %14
%16 = or i64 %15, %11
store volatile i64 %16, i64* %14
%17 = and i32 %1, 65535
%18 = zext i32 %17 to i64
%19 = add nsw i32 %0, 144
%20 = sext i32 %19 to i64
%21 = inttoptr i64 %20 to i64*
%22 = load volatile i64, i64* %21
%23 = or i64 %22, %18
store volatile i64 %23, i64* %21
ret void
}