#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 */
typedef int uint32_t;

/* Variables and functions */
int /*<<< orphan*/ vt_write_hex_4(int);
void vt_write_hex_32(uint32_t value) {
  vt_write_hex_4(value >> 28);
  vt_write_hex_4(value >> 24);
  vt_write_hex_4(value >> 20);
  vt_write_hex_4(value >> 16);
  vt_write_hex_4(value >> 12);
  vt_write_hex_4(value >> 8);
  vt_write_hex_4(value >> 4);
  vt_write_hex_4(value >> 0);
}


x86 assembly (clang, -O0):
<vt_write_hex_32>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
sar    $0x1c,%edi
call   1030 <vt_write_hex_4@plt>
mov    -0x4(%rbp),%edi
sar    $0x18,%edi
call   1030 <vt_write_hex_4@plt>
mov    -0x4(%rbp),%edi
sar    $0x14,%edi
call   1030 <vt_write_hex_4@plt>
mov    -0x4(%rbp),%edi
sar    $0x10,%edi
call   1030 <vt_write_hex_4@plt>
mov    -0x4(%rbp),%edi
sar    $0xc,%edi
call   1030 <vt_write_hex_4@plt>
mov    -0x4(%rbp),%edi
sar    $0x8,%edi
call   1030 <vt_write_hex_4@plt>
mov    -0x4(%rbp),%edi
sar    $0x4,%edi
call   1030 <vt_write_hex_4@plt>
mov    -0x4(%rbp),%edi
sar    $0x0,%edi
call   1030 <vt_write_hex_4@plt>
add    $0x10,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
define void @vt_write_hex_32(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = ashr i32 %3, 28
%5 = call i32 @vt_write_hex_4(i32 %4)
%6 = load i32, i32* %2
%7 = ashr i32 %6, 24
%8 = call i32 @vt_write_hex_4(i32 %7)
%9 = load i32, i32* %2
%10 = ashr i32 %9, 20
%11 = call i32 @vt_write_hex_4(i32 %10)
%12 = load i32, i32* %2
%13 = ashr i32 %12, 16
%14 = call i32 @vt_write_hex_4(i32 %13)
%15 = load i32, i32* %2
%16 = ashr i32 %15, 12
%17 = call i32 @vt_write_hex_4(i32 %16)
%18 = load i32, i32* %2
%19 = ashr i32 %18, 8
%20 = call i32 @vt_write_hex_4(i32 %19)
%21 = load i32, i32* %2
%22 = ashr i32 %21, 4
%23 = call i32 @vt_write_hex_4(i32 %22)
%24 = load i32, i32* %2
%25 = ashr i32 %24, 0
%26 = call i32 @vt_write_hex_4(i32 %25)
ret void
}

LLVM IR (-O2):
define void @vt_write_hex_32(i32 %0) {
%2 = ashr i32 %0, 28
%3 = tail call i32 @vt_write_hex_4(i32 %2)
%4 = ashr i32 %0, 24
%5 = tail call i32 @vt_write_hex_4(i32 %4)
%6 = ashr i32 %0, 20
%7 = tail call i32 @vt_write_hex_4(i32 %6)
%8 = ashr i32 %0, 16
%9 = tail call i32 @vt_write_hex_4(i32 %8)
%10 = ashr i32 %0, 12
%11 = tail call i32 @vt_write_hex_4(i32 %10)
%12 = ashr i32 %0, 8
%13 = tail call i32 @vt_write_hex_4(i32 %12)
%14 = ashr i32 %0, 4
%15 = tail call i32 @vt_write_hex_4(i32 %14)
%16 = tail call i32 @vt_write_hex_4(i32 %0)
ret void
}