#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*/ DEBUG_ASSERT(int /*<<< orphan*/);
int /*<<< orphan*/ TimerBaseValid(unsigned long);
int /*<<< orphan*/ TimerIntUnregister(unsigned long, int);
void TimerQuiesce(unsigned long ulBase) {
  DEBUG_ASSERT(TimerBaseValid(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),%rdi
call   1030 <TimerBaseValid@plt>
mov    %eax,%edi
call   1040 <DEBUG_ASSERT@plt>
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   1050 <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
call   1030 <TimerBaseValid@plt>
mov    %eax,%edi
call   1040 <DEBUG_ASSERT@plt>
movq   $0x0,0xc(%rbx)
movq   $0x0,0x18(%rbx)
mov    $0xffffffff,%r14d
mov    %r14,0x24(%rbx)
mov    %rbx,%rdi
mov    $0xffff,%esi
call   1050 <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 = call i32 @TimerBaseValid(i64 %3)
%5 = call i32 @DEBUG_ASSERT(i32 %4)
%6 = load i64, i64* %2
%7 = add i64 %6, 12
%8 = inttoptr i64 %7 to i64*
store volatile i64 0, i64* %8
%9 = load i64, i64* %2
%10 = add i64 %9, 24
%11 = inttoptr i64 %10 to i64*
store volatile i64 0, i64* %11
%12 = load i64, i64* %2
%13 = add i64 %12, 36
%14 = inttoptr i64 %13 to i64*
store volatile i64 4294967295, i64* %14
%15 = load i64, i64* %2
%16 = call i32 @TimerIntUnregister(i64 %15, i32 65535)
%17 = load i64, i64* %2
%18 = add i64 %17, 0
%19 = inttoptr i64 %18 to i64*
store volatile i64 0, i64* %19
%20 = load i64, i64* %2
%21 = add i64 %20, 4
%22 = inttoptr i64 %21 to i64*
store volatile i64 0, i64* %22
%23 = load i64, i64* %2
%24 = add i64 %23, 8
%25 = inttoptr i64 %24 to i64*
store volatile i64 0, i64* %25
%26 = load i64, i64* %2
%27 = add i64 %26, 28
%28 = inttoptr i64 %27 to i64*
store volatile i64 0, i64* %28
%29 = load i64, i64* %2
%30 = add i64 %29, 32
%31 = inttoptr i64 %30 to i64*
store volatile i64 0, i64* %31
%32 = load i64, i64* %2
%33 = add i64 %32, 40
%34 = inttoptr i64 %33 to i64*
store volatile i64 4294967295, i64* %34
%35 = load i64, i64* %2
%36 = add i64 %35, 44
%37 = inttoptr i64 %36 to i64*
store volatile i64 65535, i64* %37
%38 = load i64, i64* %2
%39 = add i64 %38, 48
%40 = inttoptr i64 %39 to i64*
store volatile i64 4294967295, i64* %40
%41 = load i64, i64* %2
%42 = add i64 %41, 52
%43 = inttoptr i64 %42 to i64*
store volatile i64 65535, i64* %43
%44 = load i64, i64* %2
%45 = add i64 %44, 56
%46 = inttoptr i64 %45 to i64*
store volatile i64 0, i64* %46
%47 = load i64, i64* %2
%48 = add i64 %47, 60
%49 = inttoptr i64 %48 to i64*
store volatile i64 0, i64* %49
%50 = load i64, i64* %2
%51 = add i64 %50, 64
%52 = inttoptr i64 %51 to i64*
store volatile i64 0, i64* %52
%53 = load i64, i64* %2
%54 = add i64 %53, 68
%55 = inttoptr i64 %54 to i64*
store volatile i64 0, i64* %55
%56 = load i64, i64* %2
%57 = add i64 %56, 72
%58 = inttoptr i64 %57 to i64*
store volatile i64 4294967295, i64* %58
%59 = load i64, i64* %2
%60 = add i64 %59, 76
%61 = inttoptr i64 %60 to i64*
store volatile i64 65535, i64* %61
ret void
}

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