#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 uint32_t *)(ui32Base + 0xFFFFA020))) &=
      ~(((ui32IntFlags & 0x00010000) >> 16) |
        ((ui32IntFlags & 0x00060000) >> 15) |
        ((ui32IntFlags & 0x00080000) >> 18));
  (*((volatile uint32_t *)(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),%edx
and    $0x10000,%edx
sar    $0x10,%edx
mov    -0x8(%rbp),%eax
and    $0x60000,%eax
sar    $0xf,%eax
or     %eax,%edx
mov    -0x8(%rbp),%eax
and    $0x80000,%eax
sar    $0x12,%eax
or     %eax,%edx
xor    $0xffffffff,%edx
mov    -0x4(%rbp),%eax
add    $0xffffa020,%eax
mov    %eax,%eax
mov    (%rax),%ecx
and    %edx,%ecx
mov    %ecx,(%rax)
mov    -0x8(%rbp),%edx
and    $0xffff,%edx
xor    $0xffffffff,%edx
mov    -0x4(%rbp),%eax
add    $0x90,%eax
cltq
mov    (%rax),%ecx
and    %edx,%ecx
mov    %ecx,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<AESIntDisable>:
mov    %esi,%eax
not    %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
lea    -0x5fe0(%rdi),%ecx
and    %esi,(%rcx)
or     $0xffff0000,%eax
movslq %edi,%rcx
and    %eax,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 = load i32, i32* %3
%18 = add i32 %17, -24544
%19 = zext i32 %18 to i64
%20 = inttoptr i64 %19 to i32*
%21 = load volatile i32, i32* %20
%22 = and i32 %21, %16
store volatile i32 %22, i32* %20
%23 = load i32, i32* %4
%24 = and i32 %23, 65535
%25 = xor i32 %24, -1
%26 = load i32, i32* %3
%27 = add nsw i32 %26, 144
%28 = sext i32 %27 to i64
%29 = inttoptr i64 %28 to i32*
%30 = load volatile i32, i32* %29
%31 = and i32 %30, %25
store volatile i32 %31, i32* %29
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 = add i32 %0, -24544
%13 = zext i32 %12 to i64
%14 = inttoptr i64 %13 to i32*
%15 = load volatile i32, i32* %14
%16 = and i32 %15, %11
store volatile i32 %16, i32* %14
%17 = and i32 %1, 65535
%18 = xor i32 %17, -1
%19 = add nsw i32 %0, 144
%20 = sext i32 %19 to i64
%21 = inttoptr i64 %20 to i32*
%22 = load volatile i32, i32* %21
%23 = and i32 %22, %18
store volatile i32 %23, i32* %21
ret void
}