#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 AESIntDisable(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):
<AESIntDisable>:
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
xor    $0xffffffff,%eax
movslq %eax,%rdx
mov    -0x4(%rbp),%eax
add    $0xffffa020,%eax
mov    %eax,%eax
mov    (%rax),%rcx
and    %rdx,%rcx
mov    %rcx,(%rax)
mov    -0x8(%rbp),%eax
and    $0xffff,%eax
xor    $0xffffffff,%eax
movslq %eax,%rdx
mov    -0x4(%rbp),%eax
add    $0x90,%eax
cltq
mov    (%rax),%rcx
and    %rdx,%rcx
mov    %rcx,(%rax)
pop    %rbp
ret

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

LLVM IR (-O0):
define void @AESIntDisable(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 = xor i32 %15, -1
%17 = sext i32 %16 to i64
%18 = load i32, i32* %3
%19 = add i32 %18, -24544
%20 = zext i32 %19 to i64
%21 = inttoptr i64 %20 to i64*
%22 = load volatile i64, i64* %21
%23 = and i64 %22, %17
store volatile i64 %23, i64* %21
%24 = load i32, i32* %4
%25 = and i32 %24, 65535
%26 = xor i32 %25, -1
%27 = sext i32 %26 to i64
%28 = load i32, i32* %3
%29 = add nsw i32 %28, 144
%30 = sext i32 %29 to i64
%31 = inttoptr i64 %30 to i64*
%32 = load volatile i64, i64* %31
%33 = and i64 %32, %27
store volatile i64 %33, i64* %31
ret void
}

LLVM IR (-O2):
define void @AESIntDisable(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 = xor i32 %10, -1
%12 = sext i32 %11 to i64
%13 = add i32 %0, -24544
%14 = zext i32 %13 to i64
%15 = inttoptr i64 %14 to i64*
%16 = load volatile i64, i64* %15
%17 = and i64 %16, %12
store volatile i64 %17, i64* %15
%18 = and i32 %1, 65535
%19 = xor i32 %18, -1
%20 = sext i32 %19 to i64
%21 = add nsw i32 %0, 144
%22 = sext i32 %21 to i64
%23 = inttoptr i64 %22 to i64*
%24 = load volatile i64, i64* %23
%25 = and i64 %24, %20
store volatile i64 %25, i64* %23
ret void
}