#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 */

/* Variables and functions */
int /*<<< orphan*/ TimerIntUnregister(unsigned long, int);
void TimerQuiesce(unsigned long ulBase) {
  ;
  (*((volatile unsigned long *)(ulBase + 0x0000000C))) = 0x00000000;
  (*((volatile unsigned long *)(ulBase + 0x00000018))) = 0x00000000;
  (*((volatile unsigned long *)(ulBase + 0x00000024))) = 0xFFFFFFFF;
  TimerIntUnregister(ulBase, 0x0000ffff);
  (*((volatile unsigned long *)(ulBase + 0x00000000))) = 0x00000000;
  (*((volatile unsigned long *)(ulBase + 0x00000004))) = 0x00000000;
  (*((volatile unsigned long *)(ulBase + 0x00000008))) = 0x00000000;
  (*((volatile unsigned long *)(ulBase + 0x0000001C))) = 0x00000000;
  (*((volatile unsigned long *)(ulBase + 0x00000020))) = 0x00000000;
  (*((volatile unsigned long *)(ulBase + 0x00000028))) = 0xFFFFFFFF;
  (*((volatile unsigned long *)(ulBase + 0x0000002C))) = 0x0000FFFF;
  (*((volatile unsigned long *)(ulBase + 0x00000030))) = 0xFFFFFFFF;
  (*((volatile unsigned long *)(ulBase + 0x00000034))) = 0x0000FFFF;
  (*((volatile unsigned long *)(ulBase + 0x00000038))) = 0x00000000;
  (*((volatile unsigned long *)(ulBase + 0x0000003C))) = 0x00000000;
  (*((volatile unsigned long *)(ulBase + 0x00000040))) = 0x00000000;
  (*((volatile unsigned long *)(ulBase + 0x00000044))) = 0x00000000;
  (*((volatile unsigned long *)(ulBase + 0x00000048))) = 0xFFFFFFFF;
  (*((volatile unsigned long *)(ulBase + 0x0000004C))) = 0x0000FFFF;
}


x86 assembly (clang, -O0):
<TimerQuiesce>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
movq   $0x0,0xc(%rax)
mov    -0x8(%rbp),%rax
movq   $0x0,0x18(%rax)
mov    -0x8(%rbp),%rax
mov    $0xffffffff,%ecx
mov    %rcx,0x24(%rax)
mov    -0x8(%rbp),%rdi
mov    $0xffff,%esi
call   1030 <TimerIntUnregister@plt>
mov    -0x8(%rbp),%rax
movq   $0x0,(%rax)
mov    -0x8(%rbp),%rax
movq   $0x0,0x4(%rax)
mov    -0x8(%rbp),%rax
movq   $0x0,0x8(%rax)
mov    -0x8(%rbp),%rax
movq   $0x0,0x1c(%rax)
mov    -0x8(%rbp),%rax
movq   $0x0,0x20(%rax)
mov    -0x8(%rbp),%rax
mov    $0xffffffff,%ecx
mov    %rcx,0x28(%rax)
mov    -0x8(%rbp),%rax
movq   $0xffff,0x2c(%rax)
mov    -0x8(%rbp),%rax
mov    $0xffffffff,%ecx
mov    %rcx,0x30(%rax)
mov    -0x8(%rbp),%rax
movq   $0xffff,0x34(%rax)
mov    -0x8(%rbp),%rax
movq   $0x0,0x38(%rax)
mov    -0x8(%rbp),%rax
movq   $0x0,0x3c(%rax)
mov    -0x8(%rbp),%rax
movq   $0x0,0x40(%rax)
mov    -0x8(%rbp),%rax
movq   $0x0,0x44(%rax)
mov    -0x8(%rbp),%rax
mov    $0xffffffff,%ecx
mov    %rcx,0x48(%rax)
mov    -0x8(%rbp),%rax
movq   $0xffff,0x4c(%rax)
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<TimerQuiesce>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%rbx
movq   $0x0,0xc(%rdi)
movq   $0x0,0x18(%rdi)
mov    $0xffffffff,%r14d
mov    %r14,0x24(%rdi)
mov    $0xffff,%esi
call   1030 <TimerIntUnregister@plt>
movq   $0x0,(%rbx)
movq   $0x0,0x4(%rbx)
movq   $0x0,0x8(%rbx)
movq   $0x0,0x1c(%rbx)
movq   $0x0,0x20(%rbx)
mov    %r14,0x28(%rbx)
movq   $0xffff,0x2c(%rbx)
mov    %r14,0x30(%rbx)
movq   $0xffff,0x34(%rbx)
movq   $0x0,0x38(%rbx)
movq   $0x0,0x3c(%rbx)
movq   $0x0,0x40(%rbx)
movq   $0x0,0x44(%rbx)
mov    %r14,0x48(%rbx)
movq   $0xffff,0x4c(%rbx)
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define void @TimerQuiesce(i64 %0) {
%2 = alloca i64
store i64 %0, i64* %2
%3 = load i64, i64* %2
%4 = add i64 %3, 12
%5 = inttoptr i64 %4 to i64*
store volatile i64 0, i64* %5
%6 = load i64, i64* %2
%7 = add i64 %6, 24
%8 = inttoptr i64 %7 to i64*
store volatile i64 0, i64* %8
%9 = load i64, i64* %2
%10 = add i64 %9, 36
%11 = inttoptr i64 %10 to i64*
store volatile i64 4294967295, i64* %11
%12 = load i64, i64* %2
%13 = call i32 @TimerIntUnregister(i64 %12, i32 65535)
%14 = load i64, i64* %2
%15 = add i64 %14, 0
%16 = inttoptr i64 %15 to i64*
store volatile i64 0, i64* %16
%17 = load i64, i64* %2
%18 = add i64 %17, 4
%19 = inttoptr i64 %18 to i64*
store volatile i64 0, i64* %19
%20 = load i64, i64* %2
%21 = add i64 %20, 8
%22 = inttoptr i64 %21 to i64*
store volatile i64 0, i64* %22
%23 = load i64, i64* %2
%24 = add i64 %23, 28
%25 = inttoptr i64 %24 to i64*
store volatile i64 0, i64* %25
%26 = load i64, i64* %2
%27 = add i64 %26, 32
%28 = inttoptr i64 %27 to i64*
store volatile i64 0, i64* %28
%29 = load i64, i64* %2
%30 = add i64 %29, 40
%31 = inttoptr i64 %30 to i64*
store volatile i64 4294967295, i64* %31
%32 = load i64, i64* %2
%33 = add i64 %32, 44
%34 = inttoptr i64 %33 to i64*
store volatile i64 65535, i64* %34
%35 = load i64, i64* %2
%36 = add i64 %35, 48
%37 = inttoptr i64 %36 to i64*
store volatile i64 4294967295, i64* %37
%38 = load i64, i64* %2
%39 = add i64 %38, 52
%40 = inttoptr i64 %39 to i64*
store volatile i64 65535, i64* %40
%41 = load i64, i64* %2
%42 = add i64 %41, 56
%43 = inttoptr i64 %42 to i64*
store volatile i64 0, i64* %43
%44 = load i64, i64* %2
%45 = add i64 %44, 60
%46 = inttoptr i64 %45 to i64*
store volatile i64 0, i64* %46
%47 = load i64, i64* %2
%48 = add i64 %47, 64
%49 = inttoptr i64 %48 to i64*
store volatile i64 0, i64* %49
%50 = load i64, i64* %2
%51 = add i64 %50, 68
%52 = inttoptr i64 %51 to i64*
store volatile i64 0, i64* %52
%53 = load i64, i64* %2
%54 = add i64 %53, 72
%55 = inttoptr i64 %54 to i64*
store volatile i64 4294967295, i64* %55
%56 = load i64, i64* %2
%57 = add i64 %56, 76
%58 = inttoptr i64 %57 to i64*
store volatile i64 65535, i64* %58
ret void
}

LLVM IR (-O2):
define void @TimerQuiesce(i64 %0) {
%2 = add i64 %0, 12
%3 = inttoptr i64 %2 to i64*
store volatile i64 0, i64* %3
%4 = add i64 %0, 24
%5 = inttoptr i64 %4 to i64*
store volatile i64 0, i64* %5
%6 = add i64 %0, 36
%7 = inttoptr i64 %6 to i64*
store volatile i64 4294967295, i64* %7
%8 = tail call i32 @TimerIntUnregister(i64 %0, i32 65535)
%9 = inttoptr i64 %0 to i64*
store volatile i64 0, i64* %9
%10 = add i64 %0, 4
%11 = inttoptr i64 %10 to i64*
store volatile i64 0, i64* %11
%12 = add i64 %0, 8
%13 = inttoptr i64 %12 to i64*
store volatile i64 0, i64* %13
%14 = add i64 %0, 28
%15 = inttoptr i64 %14 to i64*
store volatile i64 0, i64* %15
%16 = add i64 %0, 32
%17 = inttoptr i64 %16 to i64*
store volatile i64 0, i64* %17
%18 = add i64 %0, 40
%19 = inttoptr i64 %18 to i64*
store volatile i64 4294967295, i64* %19
%20 = add i64 %0, 44
%21 = inttoptr i64 %20 to i64*
store volatile i64 65535, i64* %21
%22 = add i64 %0, 48
%23 = inttoptr i64 %22 to i64*
store volatile i64 4294967295, i64* %23
%24 = add i64 %0, 52
%25 = inttoptr i64 %24 to i64*
store volatile i64 65535, i64* %25
%26 = add i64 %0, 56
%27 = inttoptr i64 %26 to i64*
store volatile i64 0, i64* %27
%28 = add i64 %0, 60
%29 = inttoptr i64 %28 to i64*
store volatile i64 0, i64* %29
%30 = add i64 %0, 64
%31 = inttoptr i64 %30 to i64*
store volatile i64 0, i64* %31
%32 = add i64 %0, 68
%33 = inttoptr i64 %32 to i64*
store volatile i64 0, i64* %33
%34 = add i64 %0, 72
%35 = inttoptr i64 %34 to i64*
store volatile i64 4294967295, i64* %35
%36 = add i64 %0, 76
%37 = inttoptr i64 %36 to i64*
store volatile i64 65535, i64* %37
ret void
}