#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 USBIntEnableControl(uint32_t ui32Base, uint32_t ui32Flags) {
  ;
  ;
  if (ui32Flags & 0x000000FF) {
    (*((volatile unsigned char *)(ui32Base + 0x0000000B))) |= ui32Flags;
  }
  if (ui32Flags & 0x00000100) {
    (*((volatile unsigned long *)(ui32Base + 0x00000408))) = 0x00000001;
  }
  if (ui32Flags & 0x00000200) {
    (*((volatile unsigned long *)(0x40050000 + 0x00000448))) = 0x00000001;
  }
}


x86 assembly (clang, -O0):
<USBIntEnableControl>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x8(%rbp),%eax
and    $0xff,%eax
cmp    $0x0,%eax
je     112f <USBIntEnableControl+0x2f>
mov    -0x8(%rbp),%edx
mov    -0x4(%rbp),%eax
add    $0xb,%eax
cltq
mov    (%rax),%cl
movzbl %cl,%ecx
or     %edx,%ecx
mov    %cl,(%rax)
mov    -0x8(%rbp),%eax
and    $0x100,%eax
cmp    $0x0,%eax
je     1151 <USBIntEnableControl+0x51>
mov    -0x4(%rbp),%eax
add    $0x408,%eax
cltq
movq   $0x1,(%rax)
mov    -0x8(%rbp),%eax
and    $0x200,%eax
cmp    $0x0,%eax
je     116e <USBIntEnableControl+0x6e>
mov    $0x40050448,%eax
movq   $0x1,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<USBIntEnableControl>:
movslq %edi,%rax
test   %sil,%sil
je     110c <USBIntEnableControl+0xc>
or     %sil,0xb(%rax)
test   $0x100,%esi
jne    111d <USBIntEnableControl+0x1d>
test   $0x200,%esi
jne    1130 <USBIntEnableControl+0x30>
ret
movq   $0x1,0x408(%rax)
test   $0x200,%esi
je     111c <USBIntEnableControl+0x1c>
movq   $0x1,0x40050448
ret

LLVM IR (-O0):
define void @USBIntEnableControl(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, 255
%7 = icmp ne i32 %6, 0
br i1 %7, label %8, label %18
8: ; preds = %2
%9 = load i32, i32* %4
%10 = load i32, i32* %3
%11 = add nsw i32 %10, 11
%12 = sext i32 %11 to i64
%13 = inttoptr i64 %12 to i8*
%14 = load volatile i8, i8* %13
%15 = zext i8 %14 to i32
%16 = or i32 %15, %9
%17 = trunc i32 %16 to i8
store volatile i8 %17, i8* %13
br label %18
18: ; preds = %8, %2
%19 = load i32, i32* %4
%20 = and i32 %19, 256
%21 = icmp ne i32 %20, 0
br i1 %21, label %22, label %27
22: ; preds = %18
%23 = load i32, i32* %3
%24 = add nsw i32 %23, 1032
%25 = sext i32 %24 to i64
%26 = inttoptr i64 %25 to i64*
store volatile i64 1, i64* %26
br label %27
27: ; preds = %22, %18
%28 = load i32, i32* %4
%29 = and i32 %28, 512
%30 = icmp ne i32 %29, 0
br i1 %30, label %31, label %32
31: ; preds = %27
store volatile i64 1, i64* inttoptr (i64 1074070600 to i64*)
br label %32
32: ; preds = %31, %27
ret void
}

LLVM IR (-O2):
define void @USBIntEnableControl(i32 %0, i32 %1) {
%3 = and i32 %1, 255
%4 = icmp eq i32 %3, 0
br i1 %4, label %12, label %5
5: ; preds = %2
%6 = add nsw i32 %0, 11
%7 = sext i32 %6 to i64
%8 = inttoptr i64 %7 to i8*
%9 = load volatile i8, i8* %8
%10 = trunc i32 %1 to i8
%11 = or i8 %9, %10
store volatile i8 %11, i8* %8
br label %12
12: ; preds = %5, %2
%13 = and i32 %1, 256
%14 = icmp eq i32 %13, 0
br i1 %14, label %19, label %15
15: ; preds = %12
%16 = add nsw i32 %0, 1032
%17 = sext i32 %16 to i64
%18 = inttoptr i64 %17 to i64*
store volatile i64 1, i64* %18
br label %19
19: ; preds = %15, %12
%20 = and i32 %1, 512
%21 = icmp eq i32 %20, 0
br i1 %21, label %23, label %22
22: ; preds = %19
store volatile i64 1, i64* inttoptr (i64 1074070600 to i64*)
br label %23
23: ; preds = %22, %19
ret void
}