#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*/ printBinary(unsigned int, int);
int /*<<< orphan*/ printf(char *, ...);
void dumpTransferInformation(unsigned int TI) {
  printf("Transfer Information (0x%x, ", TI);
  printBinary(TI, 32);
  printf(")\n");
  printf("	NO_WIDE_BURSTS: %d\n", TI & (1 << 26) ? 1 : 0);
  printf("	         WAITS: %d\n", (TI >> 21) & 0b11111);
  printf("	        PERMAP: %d\n", (TI >> 16) & 0b11111);
  printf("	  BURST_LENGTH: %d\n", (TI >> 12) & 0b1111);
  printf("	    SRC_IGNORE: %d\n", TI & (1 << 11) ? 1 : 0);
  printf("	      SRC_DREQ: %d\n", TI & (1 << 10) ? 1 : 0);
  printf("	     SRC_WIDTH: %d\n", TI & (1 << 9) ? 1 : 0);
  printf("	       SRC_INC: %d\n", TI & (1 << 8) ? 1 : 0);
  printf("	   DEST_IGNORE: %d\n", TI & (1 << 7) ? 1 : 0);
  printf("	     DEST_DREQ: %d\n", TI & (1 << 6) ? 1 : 0);
  printf("	    DEST_WIDTH: %d\n", TI & (1 << 5) ? 1 : 0);
  printf("	      DEST_INC: %d\n", TI & (1 << 4) ? 1 : 0);
  printf("	     WAIT_RESP: %d\n", TI & (1 << 3) ? 1 : 0);
  printf("	        TDMODE: %d\n", TI & (1 << 1) ? 1 : 0);
  printf("	         INTEN: %d\n", TI & (1 << 0) ? 1 : 0);
  printf("\n");
}


x86 assembly (clang, -O0):
<dumpTransferInformation>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%esi
lea    0xecb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x4(%rbp),%edi
mov    $0x20,%esi
call   1040 <printBinary@plt>
lea    0xecd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x4(%rbp),%ecx
and    $0x4000000,%ecx
xor    %esi,%esi
mov    $0x1,%eax
cmp    $0x0,%ecx
cmovne %eax,%esi
lea    0xeac(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x4(%rbp),%esi
shr    $0x15,%esi
and    $0x1f,%esi
lea    0xeaa(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x4(%rbp),%esi
shr    $0x10,%esi
and    $0x1f,%esi
lea    0xea8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x4(%rbp),%esi
shr    $0xc,%esi
and    $0xf,%esi
lea    0xea6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x4(%rbp),%ecx
and    $0x800,%ecx
xor    %esi,%esi
mov    $0x1,%eax
cmp    $0x0,%ecx
cmovne %eax,%esi
lea    0xe97(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x4(%rbp),%ecx
and    $0x400,%ecx
xor    %esi,%esi
mov    $0x1,%eax
cmp    $0x0,%ecx
cmovne %eax,%esi
lea    0xe88(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x4(%rbp),%ecx
and    $0x200,%ecx
xor    %esi,%esi
mov    $0x1,%eax
cmp    $0x0,%ecx
cmovne %eax,%esi
lea    0xe79(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x4(%rbp),%ecx
and    $0x100,%ecx
xor    %esi,%esi
mov    $0x1,%eax
cmp    $0x0,%ecx
cmovne %eax,%esi
lea    0xe6a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x4(%rbp),%ecx
and    $0x80,%ecx
xor    %esi,%esi
mov    $0x1,%eax
cmp    $0x0,%ecx
cmovne %eax,%esi
lea    0xe5b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x4(%rbp),%ecx
and    $0x40,%ecx
xor    %esi,%esi
mov    $0x1,%eax
cmp    $0x0,%ecx
cmovne %eax,%esi
lea    0xe4f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x4(%rbp),%ecx
and    $0x20,%ecx
xor    %esi,%esi
mov    $0x1,%eax
cmp    $0x0,%ecx
cmovne %eax,%esi
lea    0xe43(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x4(%rbp),%ecx
and    $0x10,%ecx
xor    %esi,%esi
mov    $0x1,%eax
cmp    $0x0,%ecx
cmovne %eax,%esi
lea    0xe37(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x4(%rbp),%ecx
and    $0x8,%ecx
xor    %esi,%esi
mov    $0x1,%eax
cmp    $0x0,%ecx
cmovne %eax,%esi
lea    0xe2b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x4(%rbp),%ecx
and    $0x2,%ecx
xor    %esi,%esi
mov    $0x1,%eax
cmp    $0x0,%ecx
cmovne %eax,%esi
lea    0xe1f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x4(%rbp),%ecx
and    $0x1,%ecx
xor    %esi,%esi
mov    $0x1,%eax
cmp    $0x0,%ecx
cmovne %eax,%esi
lea    0xe13(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xcdd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<dumpTransferInformation>:
push   %rbx
mov    %edi,%ebx
lea    0xeb6(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %ebx,%edi
mov    $0x20,%esi
call   1060 <printBinary@plt>
lea    0xff2(%rip),%rdi
call   1040 <puts@plt>
mov    %ebx,%esi
shr    $0x1a,%esi
and    $0x1,%esi
lea    0xea3(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %ebx,%esi
shr    $0x15,%esi
and    $0x1f,%esi
lea    0xea2(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %ebx,%esi
shr    $0x10,%esi
and    $0x1f,%esi
lea    0xea1(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %ebx,%esi
shr    $0xc,%esi
and    $0xf,%esi
lea    0xea0(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %ebx,%esi
shr    $0xb,%esi
and    $0x1,%esi
lea    0xe9f(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %ebx,%esi
shr    $0xa,%esi
and    $0x1,%esi
lea    0xe9e(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %ebx,%esi
shr    $0x9,%esi
and    $0x1,%esi
lea    0xe9d(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %ebx,%esi
shr    $0x8,%esi
and    $0x1,%esi
lea    0xe9c(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %ebx,%esi
shr    $0x7,%esi
and    $0x1,%esi
lea    0xe9b(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %ebx,%esi
shr    $0x6,%esi
and    $0x1,%esi
lea    0xe9a(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %ebx,%esi
shr    $0x5,%esi
and    $0x1,%esi
lea    0xe99(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %ebx,%esi
shr    $0x4,%esi
and    $0x1,%esi
lea    0xe98(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %ebx,%esi
shr    $0x3,%esi
and    $0x1,%esi
lea    0xe97(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %ebx,%esi
shr    %esi
and    $0x1,%esi
lea    0xe97(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
and    $0x1,%ebx
lea    0xe9b(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
pop    %rbx
jmp    1030 <putchar@plt>

LLVM IR (-O0):
@.str = [29 x i8] c"Transfer Information (0x%x, \00"
@.str.1 = [3 x i8] c")\0A\00"
@.str.2 = [21 x i8] c"\09NO_WIDE_BURSTS: %d\0A\00"
@.str.3 = [21 x i8] c"\09 WAITS: %d\0A\00"
@.str.4 = [21 x i8] c"\09 PERMAP: %d\0A\00"
@.str.5 = [21 x i8] c"\09 BURST_LENGTH: %d\0A\00"
@.str.6 = [21 x i8] c"\09 SRC_IGNORE: %d\0A\00"
@.str.7 = [21 x i8] c"\09 SRC_DREQ: %d\0A\00"
@.str.8 = [21 x i8] c"\09 SRC_WIDTH: %d\0A\00"
@.str.9 = [21 x i8] c"\09 SRC_INC: %d\0A\00"
@.str.10 = [21 x i8] c"\09 DEST_IGNORE: %d\0A\00"
@.str.11 = [21 x i8] c"\09 DEST_DREQ: %d\0A\00"
@.str.12 = [21 x i8] c"\09 DEST_WIDTH: %d\0A\00"
@.str.13 = [21 x i8] c"\09 DEST_INC: %d\0A\00"
@.str.14 = [21 x i8] c"\09 WAIT_RESP: %d\0A\00"
@.str.15 = [21 x i8] c"\09 TDMODE: %d\0A\00"
@.str.16 = [21 x i8] c"\09 INTEN: %d\0A\00"
@.str.17 = [2 x i8] c"\0A\00"
define void @dumpTransferInformation(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0), i32 %3)
%5 = load i32, i32* %2
%6 = call i32 @printBinary(i32 %5, i32 32)
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%8 = load i32, i32* %2
%9 = and i32 %8, 67108864
%10 = icmp ne i32 %9, 0
%11 = zext i1 %10 to i64
%12 = select i1 %10, i32 1, i32 0
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0), i32 %12)
%14 = load i32, i32* %2
%15 = lshr i32 %14, 21
%16 = and i32 %15, 31
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.3, i64 0, i64 0), i32 %16)
%18 = load i32, i32* %2
%19 = lshr i32 %18, 16
%20 = and i32 %19, 31
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0), i32 %20)
%22 = load i32, i32* %2
%23 = lshr i32 %22, 12
%24 = and i32 %23, 15
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.5, i64 0, i64 0), i32 %24)
%26 = load i32, i32* %2
%27 = and i32 %26, 2048
%28 = icmp ne i32 %27, 0
%29 = zext i1 %28 to i64
%30 = select i1 %28, i32 1, i32 0
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.6, i64 0, i64 0), i32 %30)
%32 = load i32, i32* %2
%33 = and i32 %32, 1024
%34 = icmp ne i32 %33, 0
%35 = zext i1 %34 to i64
%36 = select i1 %34, i32 1, i32 0
%37 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.7, i64 0, i64 0), i32 %36)
%38 = load i32, i32* %2
%39 = and i32 %38, 512
%40 = icmp ne i32 %39, 0
%41 = zext i1 %40 to i64
%42 = select i1 %40, i32 1, i32 0
%43 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.8, i64 0, i64 0), i32 %42)
%44 = load i32, i32* %2
%45 = and i32 %44, 256
%46 = icmp ne i32 %45, 0
%47 = zext i1 %46 to i64
%48 = select i1 %46, i32 1, i32 0
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.9, i64 0, i64 0), i32 %48)
%50 = load i32, i32* %2
%51 = and i32 %50, 128
%52 = icmp ne i32 %51, 0
%53 = zext i1 %52 to i64
%54 = select i1 %52, i32 1, i32 0
%55 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.10, i64 0, i64 0), i32 %54)
%56 = load i32, i32* %2
%57 = and i32 %56, 64
%58 = icmp ne i32 %57, 0
%59 = zext i1 %58 to i64
%60 = select i1 %58, i32 1, i32 0
%61 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.11, i64 0, i64 0), i32 %60)
%62 = load i32, i32* %2
%63 = and i32 %62, 32
%64 = icmp ne i32 %63, 0
%65 = zext i1 %64 to i64
%66 = select i1 %64, i32 1, i32 0
%67 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.12, i64 0, i64 0), i32 %66)
%68 = load i32, i32* %2
%69 = and i32 %68, 16
%70 = icmp ne i32 %69, 0
%71 = zext i1 %70 to i64
%72 = select i1 %70, i32 1, i32 0
%73 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.13, i64 0, i64 0), i32 %72)
%74 = load i32, i32* %2
%75 = and i32 %74, 8
%76 = icmp ne i32 %75, 0
%77 = zext i1 %76 to i64
%78 = select i1 %76, i32 1, i32 0
%79 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.14, i64 0, i64 0), i32 %78)
%80 = load i32, i32* %2
%81 = and i32 %80, 2
%82 = icmp ne i32 %81, 0
%83 = zext i1 %82 to i64
%84 = select i1 %82, i32 1, i32 0
%85 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.15, i64 0, i64 0), i32 %84)
%86 = load i32, i32* %2
%87 = and i32 %86, 1
%88 = icmp ne i32 %87, 0
%89 = zext i1 %88 to i64
%90 = select i1 %88, i32 1, i32 0
%91 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.16, i64 0, i64 0), i32 %90)
%92 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.17, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [29 x i8] c"Transfer Information (0x%x, \00"
@.str.2 = [21 x i8] c"\09NO_WIDE_BURSTS: %d\0A\00"
@.str.3 = [21 x i8] c"\09 WAITS: %d\0A\00"
@.str.4 = [21 x i8] c"\09 PERMAP: %d\0A\00"
@.str.5 = [21 x i8] c"\09 BURST_LENGTH: %d\0A\00"
@.str.6 = [21 x i8] c"\09 SRC_IGNORE: %d\0A\00"
@.str.7 = [21 x i8] c"\09 SRC_DREQ: %d\0A\00"
@.str.8 = [21 x i8] c"\09 SRC_WIDTH: %d\0A\00"
@.str.9 = [21 x i8] c"\09 SRC_INC: %d\0A\00"
@.str.10 = [21 x i8] c"\09 DEST_IGNORE: %d\0A\00"
@.str.11 = [21 x i8] c"\09 DEST_DREQ: %d\0A\00"
@.str.12 = [21 x i8] c"\09 DEST_WIDTH: %d\0A\00"
@.str.13 = [21 x i8] c"\09 DEST_INC: %d\0A\00"
@.str.14 = [21 x i8] c"\09 WAIT_RESP: %d\0A\00"
@.str.15 = [21 x i8] c"\09 TDMODE: %d\0A\00"
@.str.16 = [21 x i8] c"\09 INTEN: %d\0A\00"
@str = [2 x i8] c")\00"
define void @dumpTransferInformation(i32 %0) {
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0), i32 %0)
%3 = tail call i32 @printBinary(i32 %0, i32 32)
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str, i64 0, i64 0))
%5 = lshr i32 %0, 26
%6 = and i32 %5, 1
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0), i32 %6)
%8 = lshr i32 %0, 21
%9 = and i32 %8, 31
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.3, i64 0, i64 0), i32 %9)
%11 = lshr i32 %0, 16
%12 = and i32 %11, 31
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0), i32 %12)
%14 = lshr i32 %0, 12
%15 = and i32 %14, 15
%16 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.5, i64 0, i64 0), i32 %15)
%17 = lshr i32 %0, 11
%18 = and i32 %17, 1
%19 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.6, i64 0, i64 0), i32 %18)
%20 = lshr i32 %0, 10
%21 = and i32 %20, 1
%22 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.7, i64 0, i64 0), i32 %21)
%23 = lshr i32 %0, 9
%24 = and i32 %23, 1
%25 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.8, i64 0, i64 0), i32 %24)
%26 = lshr i32 %0, 8
%27 = and i32 %26, 1
%28 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.9, i64 0, i64 0), i32 %27)
%29 = lshr i32 %0, 7
%30 = and i32 %29, 1
%31 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.10, i64 0, i64 0), i32 %30)
%32 = lshr i32 %0, 6
%33 = and i32 %32, 1
%34 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.11, i64 0, i64 0), i32 %33)
%35 = lshr i32 %0, 5
%36 = and i32 %35, 1
%37 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.12, i64 0, i64 0), i32 %36)
%38 = lshr i32 %0, 4
%39 = and i32 %38, 1
%40 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.13, i64 0, i64 0), i32 %39)
%41 = lshr i32 %0, 3
%42 = and i32 %41, 1
%43 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.14, i64 0, i64 0), i32 %42)
%44 = lshr i32 %0, 1
%45 = and i32 %44, 1
%46 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.15, i64 0, i64 0), i32 %45)
%47 = and i32 %0, 1
%48 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.16, i64 0, i64 0), i32 %47)
%49 = tail call i32 @putchar(i32 10)
ret void
}