#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 volatile uint32_t;
typedef int uint16_t;

/* Variables and functions */
void UARTFIFOIntLevelSet(uint32_t ui32Base, uint32_t ui32TxLevel,
                         uint32_t ui32RxLevel) {
  ;

  ;

  ;
  (*((volatile uint16_t *)(ui32Base + 0xA))) =
      ((*((volatile uint16_t *)(ui32Base + 0xA))) & (~0x1F)) | ui32TxLevel;
  (*((volatile uint16_t *)(ui32Base + 0xB))) =
      ((*((volatile uint16_t *)(ui32Base + 0xB))) & (~0x1F)) | ui32RxLevel;
}


x86 assembly (clang, -O0):
<UARTFIFOIntLevelSet>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    -0x4(%rbp),%eax
add    $0xa,%eax
cltq
mov    (%rax),%ecx
and    $0xffffffe0,%ecx
mov    -0x8(%rbp),%eax
or     %eax,%ecx
mov    -0x4(%rbp),%eax
add    $0xa,%eax
cltq
mov    %ecx,(%rax)
mov    -0x4(%rbp),%eax
add    $0xb,%eax
cltq
mov    (%rax),%ecx
and    $0xffffffe0,%ecx
mov    -0xc(%rbp),%eax
or     %eax,%ecx
mov    -0x4(%rbp),%eax
add    $0xb,%eax
cltq
mov    %ecx,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<UARTFIFOIntLevelSet>:
mov    %edi,-0xc(%rsp)
mov    %esi,-0x4(%rsp)
mov    %edx,-0x8(%rsp)
movslq -0xc(%rsp),%rax
mov    0xa(%rax),%eax
and    $0xffffffe0,%eax
or     -0x4(%rsp),%eax
movslq -0xc(%rsp),%rcx
mov    %eax,0xa(%rcx)
movslq -0xc(%rsp),%rax
mov    0xb(%rax),%eax
and    $0xffffffe0,%eax
or     -0x8(%rsp),%eax
movslq -0xc(%rsp),%rcx
mov    %eax,0xb(%rcx)
ret

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

LLVM IR (-O2):
define void @UARTFIFOIntLevelSet(i32 %0, i32 %1, i32 %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
store volatile i32 %0, i32* %4
store volatile i32 %1, i32* %5
store volatile i32 %2, i32* %6
%7 = load volatile i32, i32* %4
%8 = add nsw i32 %7, 10
%9 = sext i32 %8 to i64
%10 = inttoptr i64 %9 to i32*
%11 = load volatile i32, i32* %10
%12 = and i32 %11, -32
%13 = load volatile i32, i32* %5
%14 = or i32 %12, %13
%15 = load volatile i32, i32* %4
%16 = add nsw i32 %15, 10
%17 = sext i32 %16 to i64
%18 = inttoptr i64 %17 to i32*
store volatile i32 %14, i32* %18
%19 = load volatile i32, i32* %4
%20 = add nsw i32 %19, 11
%21 = sext i32 %20 to i64
%22 = inttoptr i64 %21 to i32*
%23 = load volatile i32, i32* %22
%24 = and i32 %23, -32
%25 = load volatile i32, i32* %6
%26 = or i32 %24, %25
%27 = load volatile i32, i32* %4
%28 = add nsw i32 %27, 11
%29 = sext i32 %28 to i64
%30 = inttoptr i64 %29 to i32*
store volatile i32 %26, i32* %30
ret void
}