#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*/ __console_tx_nibble(unsigned int);
void __console_tx_hex32(unsigned int value) {
  __console_tx_nibble((value >> 28) & 0x0f);
  __console_tx_nibble((value >> 24) & 0x0f);
  __console_tx_nibble((value >> 20) & 0x0f);
  __console_tx_nibble((value >> 16) & 0x0f);
  __console_tx_nibble((value >> 12) & 0x0f);
  __console_tx_nibble((value >> 8) & 0x0f);
  __console_tx_nibble((value >> 4) & 0x0f);
  __console_tx_nibble(value & 0x0f);
}


x86 assembly (clang, -O0):
<__console_tx_hex32>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
shr    $0x1c,%edi
and    $0xf,%edi
call   1030 <__console_tx_nibble@plt>
mov    -0x4(%rbp),%edi
shr    $0x18,%edi
and    $0xf,%edi
call   1030 <__console_tx_nibble@plt>
mov    -0x4(%rbp),%edi
shr    $0x14,%edi
and    $0xf,%edi
call   1030 <__console_tx_nibble@plt>
mov    -0x4(%rbp),%edi
shr    $0x10,%edi
and    $0xf,%edi
call   1030 <__console_tx_nibble@plt>
mov    -0x4(%rbp),%edi
shr    $0xc,%edi
and    $0xf,%edi
call   1030 <__console_tx_nibble@plt>
mov    -0x4(%rbp),%edi
shr    $0x8,%edi
and    $0xf,%edi
call   1030 <__console_tx_nibble@plt>
mov    -0x4(%rbp),%edi
shr    $0x4,%edi
and    $0xf,%edi
call   1030 <__console_tx_nibble@plt>
mov    -0x4(%rbp),%edi
and    $0xf,%edi
call   1030 <__console_tx_nibble@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<__console_tx_hex32>:
push   %rbx
mov    %edi,%ebx
shr    $0x1c,%edi
call   1030 <__console_tx_nibble@plt>
mov    %ebx,%edi
shr    $0x18,%edi
and    $0xf,%edi
call   1030 <__console_tx_nibble@plt>
mov    %ebx,%edi
shr    $0x14,%edi
and    $0xf,%edi
call   1030 <__console_tx_nibble@plt>
mov    %ebx,%edi
shr    $0x10,%edi
and    $0xf,%edi
call   1030 <__console_tx_nibble@plt>
mov    %ebx,%edi
shr    $0xc,%edi
and    $0xf,%edi
call   1030 <__console_tx_nibble@plt>
mov    %ebx,%edi
shr    $0x8,%edi
and    $0xf,%edi
call   1030 <__console_tx_nibble@plt>
mov    %ebx,%edi
shr    $0x4,%edi
and    $0xf,%edi
call   1030 <__console_tx_nibble@plt>
and    $0xf,%ebx
mov    %ebx,%edi
pop    %rbx
jmp    1030 <__console_tx_nibble@plt>

LLVM IR (-O0):
define void @__console_tx_hex32(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = lshr i32 %3, 28
%5 = and i32 %4, 15
%6 = call i32 @__console_tx_nibble(i32 %5)
%7 = load i32, i32* %2
%8 = lshr i32 %7, 24
%9 = and i32 %8, 15
%10 = call i32 @__console_tx_nibble(i32 %9)
%11 = load i32, i32* %2
%12 = lshr i32 %11, 20
%13 = and i32 %12, 15
%14 = call i32 @__console_tx_nibble(i32 %13)
%15 = load i32, i32* %2
%16 = lshr i32 %15, 16
%17 = and i32 %16, 15
%18 = call i32 @__console_tx_nibble(i32 %17)
%19 = load i32, i32* %2
%20 = lshr i32 %19, 12
%21 = and i32 %20, 15
%22 = call i32 @__console_tx_nibble(i32 %21)
%23 = load i32, i32* %2
%24 = lshr i32 %23, 8
%25 = and i32 %24, 15
%26 = call i32 @__console_tx_nibble(i32 %25)
%27 = load i32, i32* %2
%28 = lshr i32 %27, 4
%29 = and i32 %28, 15
%30 = call i32 @__console_tx_nibble(i32 %29)
%31 = load i32, i32* %2
%32 = and i32 %31, 15
%33 = call i32 @__console_tx_nibble(i32 %32)
ret void
}

LLVM IR (-O2):
define void @__console_tx_hex32(i32 %0) {
%2 = lshr i32 %0, 28
%3 = tail call i32 @__console_tx_nibble(i32 %2)
%4 = lshr i32 %0, 24
%5 = and i32 %4, 15
%6 = tail call i32 @__console_tx_nibble(i32 %5)
%7 = lshr i32 %0, 20
%8 = and i32 %7, 15
%9 = tail call i32 @__console_tx_nibble(i32 %8)
%10 = lshr i32 %0, 16
%11 = and i32 %10, 15
%12 = tail call i32 @__console_tx_nibble(i32 %11)
%13 = lshr i32 %0, 12
%14 = and i32 %13, 15
%15 = tail call i32 @__console_tx_nibble(i32 %14)
%16 = lshr i32 %0, 8
%17 = and i32 %16, 15
%18 = tail call i32 @__console_tx_nibble(i32 %17)
%19 = lshr i32 %0, 4
%20 = and i32 %19, 15
%21 = tail call i32 @__console_tx_nibble(i32 %20)
%22 = and i32 %0, 15
%23 = tail call i32 @__console_tx_nibble(i32 %22)
ret void
}