void RasterSoftWareResetControlEnable(unsigned int baseAddr,
                                      unsigned int flag) {
  if ((0x00000001u) == flag) {
    (*((volatile unsigned int *)(baseAddr + (0x70)))) |= (0x00000001u);
  } else if ((0x00000004u) == flag) {
    (*((volatile unsigned int *)(baseAddr + (0x70)))) |= (0x00000004u);
  } else if ((0x00000008u) == flag) {
    (*((volatile unsigned int *)(baseAddr + (0x70)))) |= (0x00000008u);
  } else {
    ;
  }
}


x86 assembly (clang, -O0):
<RasterSoftWareResetControlEnable>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    $0x1,%eax
cmp    -0x8(%rbp),%eax
jne    112c <RasterSoftWareResetControlEnable+0x2c>
mov    -0x4(%rbp),%eax
add    $0x70,%eax
mov    %eax,%eax
mov    (%rax),%ecx
or     $0x1,%ecx
mov    %ecx,(%rax)
jmp    117f <RasterSoftWareResetControlEnable+0x7f>
mov    $0x4,%eax
cmp    -0x8(%rbp),%eax
jne    114e <RasterSoftWareResetControlEnable+0x4e>
mov    -0x4(%rbp),%eax
add    $0x70,%eax
mov    %eax,%eax
mov    (%rax),%ecx
or     $0x4,%ecx
mov    %ecx,(%rax)
jmp    117a <RasterSoftWareResetControlEnable+0x7a>
mov    $0x8,%eax
cmp    -0x8(%rbp),%eax
jne    1170 <RasterSoftWareResetControlEnable+0x70>
mov    -0x4(%rbp),%eax
add    $0x70,%eax
mov    %eax,%eax
mov    (%rax),%ecx
or     $0x8,%ecx
mov    %ecx,(%rax)
jmp    1175 <RasterSoftWareResetControlEnable+0x75>
jmp    1175 <RasterSoftWareResetControlEnable+0x75>
jmp    117a <RasterSoftWareResetControlEnable+0x7a>
jmp    117f <RasterSoftWareResetControlEnable+0x7f>
pop    %rbp
ret

x86 assembly (clang, -O2):
<RasterSoftWareResetControlEnable>:
cmp    $0x8,%esi
ja     1114 <RasterSoftWareResetControlEnable+0x14>
mov    $0x112,%eax
bt     %esi,%eax
jae    1114 <RasterSoftWareResetControlEnable+0x14>
add    $0x70,%edi
or     %esi,(%rdi)
ret

LLVM IR (-O0):
define void @RasterSoftWareResetControlEnable(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 = icmp eq i32 1, %5
br i1 %6, label %7, label %14
7: ; preds = %2
%8 = load i32, i32* %3
%9 = add i32 %8, 112
%10 = zext i32 %9 to i64
%11 = inttoptr i64 %10 to i32*
%12 = load volatile i32, i32* %11
%13 = or i32 %12, 1
store volatile i32 %13, i32* %11
br label %37
14: ; preds = %2
%15 = load i32, i32* %4
%16 = icmp eq i32 4, %15
br i1 %16, label %17, label %24
17: ; preds = %14
%18 = load i32, i32* %3
%19 = add i32 %18, 112
%20 = zext i32 %19 to i64
%21 = inttoptr i64 %20 to i32*
%22 = load volatile i32, i32* %21
%23 = or i32 %22, 4
store volatile i32 %23, i32* %21
br label %36
24: ; preds = %14
%25 = load i32, i32* %4
%26 = icmp eq i32 8, %25
br i1 %26, label %27, label %34
27: ; preds = %24
%28 = load i32, i32* %3
%29 = add i32 %28, 112
%30 = zext i32 %29 to i64
%31 = inttoptr i64 %30 to i32*
%32 = load volatile i32, i32* %31
%33 = or i32 %32, 8
store volatile i32 %33, i32* %31
br label %35
34: ; preds = %24
br label %35
35: ; preds = %34, %27
br label %36
36: ; preds = %35, %17
br label %37
37: ; preds = %36, %7
ret void
}

LLVM IR (-O2):
define void @RasterSoftWareResetControlEnable(i32 %0, i32 %1) {
switch i32 %1, label %9 [
i32 1, label %3
i32 4, label %3
i32 8, label %3
]
3: ; preds = %2, %2, %2
%4 = add i32 %0, 112
%5 = zext i32 %4 to i64
%6 = inttoptr i64 %5 to i32*
%7 = load volatile i32, i32* %6
%8 = or i32 %7, %1
store volatile i32 %8, i32* %6
br label %9
9: ; preds = %3, %2
ret void
}