#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*/ printf(char *, ...);
void dispLongs(unsigned int *pL, int count) {
  while (count) {
    printf("%x ", *pL);
    pL++;
    count--;
    if (!(count % 4))
      printf("\n");
  }
}


x86 assembly (clang, -O0):
<dispLongs>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
cmpl   $0x0,-0xc(%rbp)
je     1179 <dispLongs+0x69>
mov    -0x8(%rbp),%rax
mov    (%rax),%esi
lea    0xeca(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x8(%rbp)
mov    -0xc(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
mov    $0x4,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    1174 <dispLongs+0x64>
lea    0xe97(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    111f <dispLongs+0xf>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<dispLongs>:
push   %r15
push   %r14
push   %rbx
test   %esi,%esi
je     1167 <dispLongs+0x47>
mov    %esi,%ebx
mov    %rdi,%r14
add    $0xffffffff,%ebx
lea    0xec8(%rip),%r15
jmp    1149 <dispLongs+0x29>
nopw   0x0(%rax,%rax,1)
add    $0x4,%r14
add    $0xffffffff,%ebx
jae    1167 <dispLongs+0x47>
mov    (%r14),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
test   $0x3,%bl
jne    1140 <dispLongs+0x20>
mov    $0xa,%edi
call   1030 <putchar@plt>
jmp    1140 <dispLongs+0x20>
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [4 x i8] c"%x \00"
@.str.1 = [2 x i8] c"\0A\00"
define void @dispLongs(i32* %0, i32 %1) {
%3 = alloca i32*
%4 = alloca i32
store i32* %0, i32** %3
store i32 %1, i32* %4
br label %5
5: ; preds = %21, %2
%6 = load i32, i32* %4
%7 = icmp ne i32 %6, 0
br i1 %7, label %8, label %22
8: ; preds = %5
%9 = load i32*, i32** %3
%10 = load i32, i32* %9
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %10)
%12 = load i32*, i32** %3
%13 = getelementptr inbounds i32, i32* %12, i32 1
store i32* %13, i32** %3
%14 = load i32, i32* %4
%15 = add nsw i32 %14, -1
store i32 %15, i32* %4
%16 = load i32, i32* %4
%17 = srem i32 %16, 4
%18 = icmp ne i32 %17, 0
br i1 %18, label %21, label %19
19: ; preds = %8
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
br label %21
21: ; preds = %19, %8
br label %5
22: ; preds = %5
ret void
}

LLVM IR (-O2):
@.str = [4 x i8] c"%x \00"
define void @dispLongs(i32* nocapture %0, i32 %1) {
%3 = icmp eq i32 %1, 0
br i1 %3, label %17, label %4
4: ; preds = %2, %15
%5 = phi i32 [ %10, %15 ], [ %1, %2 ]
%6 = phi i32* [ %9, %15 ], [ %0, %2 ]
%7 = load i32, i32* %6
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %7)
%9 = getelementptr inbounds i32, i32* %6, i64 1
%10 = add nsw i32 %5, -1
%11 = and i32 %10, 3
%12 = icmp eq i32 %11, 0
br i1 %12, label %13, label %15
13: ; preds = %4
%14 = tail call i32 @putchar(i32 10)
br label %15
15: ; preds = %13, %4
%16 = icmp eq i32 %10, 0
br i1 %16, label %17, label %4
17: ; preds = %15, %2
ret void
}