#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 /*<<< orphan*/ uint8_t;

/* Variables and functions */
int /*<<< orphan*/ print_bytes_sep(char const *, int /*<<< orphan*/ const *,
                                   int, char const *, char *);
void print_128(const char m[], const uint8_t a[16], const char m2[]) {
  print_bytes_sep(m, a, 4, "_", "");
  print_bytes_sep("", a + 4, 4, "_", "");
  print_bytes_sep("", a + 8, 4, "_", "");
  print_bytes_sep("", a + 12, 4, m2, "");
}


x86 assembly (clang, -O0):
<print_128>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    $0x4,%edx
lea    0xec8(%rip),%rcx
lea    0xec2(%rip),%r8
call   1030 <print_bytes_sep@plt>
mov    -0x10(%rbp),%rsi
add    $0x10,%rsi
lea    0xeae(%rip),%r8
mov    $0x4,%edx
lea    0xea1(%rip),%rcx
mov    %r8,%rdi
call   1030 <print_bytes_sep@plt>
mov    -0x10(%rbp),%rsi
add    $0x20,%rsi
lea    0xe8b(%rip),%r8
mov    $0x4,%edx
lea    0xe7e(%rip),%rcx
mov    %r8,%rdi
call   1030 <print_bytes_sep@plt>
mov    -0x10(%rbp),%rsi
add    $0x30,%rsi
mov    -0x18(%rbp),%rcx
lea    0xe64(%rip),%r8
mov    $0x4,%edx
mov    %r8,%rdi
call   1030 <print_bytes_sep@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_128>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
mov    %rdx,%r14
mov    %rsi,%rbx
lea    0xedb(%rip),%r12
lea    0xed5(%rip),%r15
mov    $0x4,%edx
mov    %r12,%rcx
mov    %r15,%r8
call   1030 <print_bytes_sep@plt>
lea    0x10(%rbx),%rsi
mov    %r15,%rdi
mov    $0x4,%edx
mov    %r12,%rcx
mov    %r15,%r8
call   1030 <print_bytes_sep@plt>
lea    0x20(%rbx),%rsi
mov    %r15,%rdi
mov    $0x4,%edx
mov    %r12,%rcx
mov    %r15,%r8
call   1030 <print_bytes_sep@plt>
add    $0x30,%rbx
mov    %r15,%rdi
mov    %rbx,%rsi
mov    $0x4,%edx
mov    %r14,%rcx
mov    %r15,%r8
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
jmp    1030 <print_bytes_sep@plt>

LLVM IR (-O0):
@.str = [2 x i8] c"_\00"
@.str.1 = [1 x i8] zeroinitializer
define void @print_128(i8* %0, i32* %1, i8* %2) {
%4 = alloca i8*
%5 = alloca i32*
%6 = alloca i8*
store i8* %0, i8** %4
store i32* %1, i32** %5
store i8* %2, i8** %6
%7 = load i8*, i8** %4
%8 = load i32*, i32** %5
%9 = call i32 @print_bytes_sep(i8* %7, i32* %8, i32 4, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
%10 = load i32*, i32** %5
%11 = getelementptr inbounds i32, i32* %10, i64 4
%12 = call i32 @print_bytes_sep(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i32* %11, i32 4, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
%13 = load i32*, i32** %5
%14 = getelementptr inbounds i32, i32* %13, i64 8
%15 = call i32 @print_bytes_sep(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i32* %14, i32 4, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
%16 = load i32*, i32** %5
%17 = getelementptr inbounds i32, i32* %16, i64 12
%18 = load i8*, i8** %6
%19 = call i32 @print_bytes_sep(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i32* %17, i32 4, i8* %18, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [2 x i8] c"_\00"
@.str.1 = [1 x i8] zeroinitializer
define void @print_128(i8* %0, i32* %1, i8* %2) {
%4 = tail call i32 @print_bytes_sep(i8* %0, i32* %1, i32 4, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
%5 = getelementptr inbounds i32, i32* %1, i64 4
%6 = tail call i32 @print_bytes_sep(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i32* %5, i32 4, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
%7 = getelementptr inbounds i32, i32* %1, i64 8
%8 = tail call i32 @print_bytes_sep(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i32* %7, i32 4, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
%9 = getelementptr inbounds i32, i32* %1, i64 12
%10 = tail call i32 @print_bytes_sep(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i32* %9, i32 4, i8* %2, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
ret void
}