#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 uint8_t;

/* Variables and functions */
int /*<<< orphan*/ printf(char *, int, int, int, int, int, int, int, int, int,
                          int, int, int, int, int, int, int);
void print_ip6(uint8_t *bytes) {
  printf("%x:%x:%x:%x:%x:%x:%x:%x:%x:%x:%x:%x:%x:%x:%x:%x", bytes[0], bytes[1],
         bytes[2], bytes[3], bytes[4], bytes[5], bytes[6], bytes[7], bytes[8],
         bytes[9], bytes[10], bytes[11], bytes[12], bytes[13], bytes[14],
         bytes[15]);
}


x86 assembly (clang, -O0):
<print_ip6>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x78,%rsp
mov    %rdi,-0x30(%rbp)
mov    -0x30(%rbp),%rax
mov    (%rax),%esi
mov    -0x30(%rbp),%rax
mov    0x4(%rax),%edx
mov    -0x30(%rbp),%rax
mov    0x8(%rax),%ecx
mov    -0x30(%rbp),%rax
mov    0xc(%rax),%r8d
mov    -0x30(%rbp),%rax
mov    0x10(%rax),%r9d
mov    -0x30(%rbp),%rax
mov    0x14(%rax),%eax
mov    -0x30(%rbp),%rdi
mov    0x18(%rdi),%edi
mov    %edi,-0x3c(%rbp)
mov    -0x30(%rbp),%rdi
mov    0x1c(%rdi),%edi
mov    %edi,-0x38(%rbp)
mov    -0x30(%rbp),%rdi
mov    0x20(%rdi),%r13d
mov    -0x30(%rbp),%rdi
mov    0x24(%rdi),%r12d
mov    -0x30(%rbp),%rdi
mov    0x28(%rdi),%r15d
mov    -0x30(%rbp),%rdi
mov    0x2c(%rdi),%r14d
mov    -0x30(%rbp),%rdi
mov    0x30(%rdi),%ebx
mov    -0x30(%rbp),%rdi
mov    0x34(%rdi),%r11d
mov    -0x30(%rbp),%rdi
mov    0x38(%rdi),%r10d
mov    -0x30(%rbp),%rdi
mov    0x3c(%rdi),%edi
mov    %edi,-0x34(%rbp)
lea    0xe54(%rip),%rdi
mov    %eax,(%rsp)
mov    -0x3c(%rbp),%eax
mov    %eax,0x8(%rsp)
mov    -0x38(%rbp),%eax
mov    %eax,0x10(%rsp)
mov    -0x34(%rbp),%eax
mov    %r13d,0x18(%rsp)
mov    %r12d,0x20(%rsp)
mov    %r15d,0x28(%rsp)
mov    %r14d,0x30(%rsp)
mov    %ebx,0x38(%rsp)
mov    %r11d,0x40(%rsp)
mov    %r10d,0x48(%rsp)
mov    %eax,0x50(%rsp)
call   1030 <printf@plt>
add    $0x78,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_ip6>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    (%rdi),%esi
mov    0x4(%rdi),%edx
mov    0x8(%rdi),%ecx
mov    0xc(%rdi),%r8d
mov    0x10(%rdi),%r9d
mov    0x14(%rdi),%eax
mov    %rax,0x10(%rsp)
mov    0x18(%rdi),%eax
mov    %rax,0x8(%rsp)
mov    0x1c(%rdi),%r14d
mov    0x20(%rdi),%r15d
mov    0x24(%rdi),%r12d
mov    0x28(%rdi),%r13d
mov    0x2c(%rdi),%r11d
mov    0x30(%rdi),%ebx
mov    0x34(%rdi),%ebp
mov    0x38(%rdi),%r10d
mov    0x3c(%rdi),%eax
sub    $0x8,%rsp
lea    0xe96(%rip),%rdi
push   %rax
push   %r10
push   %rbp
push   %rbx
push   %r11
push   %r13
push   %r12
push   %r15
push   %r14
push   0x58(%rsp)
push   0x68(%rsp)
call   1030 <printf@plt>
add    $0x78,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [48 x i8] c"%x:%x:%x:%x:%x:%x:%x:%x:%x:%x:%x:%x:%x:%x:%x:%x\00"
define void @print_ip6(i32* %0) {
%2 = alloca i32*
store i32* %0, i32** %2
%3 = load i32*, i32** %2
%4 = getelementptr inbounds i32, i32* %3, i64 0
%5 = load i32, i32* %4
%6 = load i32*, i32** %2
%7 = getelementptr inbounds i32, i32* %6, i64 1
%8 = load i32, i32* %7
%9 = load i32*, i32** %2
%10 = getelementptr inbounds i32, i32* %9, i64 2
%11 = load i32, i32* %10
%12 = load i32*, i32** %2
%13 = getelementptr inbounds i32, i32* %12, i64 3
%14 = load i32, i32* %13
%15 = load i32*, i32** %2
%16 = getelementptr inbounds i32, i32* %15, i64 4
%17 = load i32, i32* %16
%18 = load i32*, i32** %2
%19 = getelementptr inbounds i32, i32* %18, i64 5
%20 = load i32, i32* %19
%21 = load i32*, i32** %2
%22 = getelementptr inbounds i32, i32* %21, i64 6
%23 = load i32, i32* %22
%24 = load i32*, i32** %2
%25 = getelementptr inbounds i32, i32* %24, i64 7
%26 = load i32, i32* %25
%27 = load i32*, i32** %2
%28 = getelementptr inbounds i32, i32* %27, i64 8
%29 = load i32, i32* %28
%30 = load i32*, i32** %2
%31 = getelementptr inbounds i32, i32* %30, i64 9
%32 = load i32, i32* %31
%33 = load i32*, i32** %2
%34 = getelementptr inbounds i32, i32* %33, i64 10
%35 = load i32, i32* %34
%36 = load i32*, i32** %2
%37 = getelementptr inbounds i32, i32* %36, i64 11
%38 = load i32, i32* %37
%39 = load i32*, i32** %2
%40 = getelementptr inbounds i32, i32* %39, i64 12
%41 = load i32, i32* %40
%42 = load i32*, i32** %2
%43 = getelementptr inbounds i32, i32* %42, i64 13
%44 = load i32, i32* %43
%45 = load i32*, i32** %2
%46 = getelementptr inbounds i32, i32* %45, i64 14
%47 = load i32, i32* %46
%48 = load i32*, i32** %2
%49 = getelementptr inbounds i32, i32* %48, i64 15
%50 = load i32, i32* %49
%51 = call i32 @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str, i64 0, i64 0), i32 %5, i32 %8, i32 %11, i32 %14, i32 %17, i32 %20, i32 %23, i32 %26, i32 %29, i32 %32, i32 %35, i32 %38, i32 %41, i32 %44, i32 %47, i32 %50)
ret void
}

LLVM IR (-O2):
@.str = [48 x i8] c"%x:%x:%x:%x:%x:%x:%x:%x:%x:%x:%x:%x:%x:%x:%x:%x\00"
define void @print_ip6(i32* nocapture %0) {
%2 = load i32, i32* %0
%3 = getelementptr inbounds i32, i32* %0, i64 1
%4 = load i32, i32* %3
%5 = getelementptr inbounds i32, i32* %0, i64 2
%6 = load i32, i32* %5
%7 = getelementptr inbounds i32, i32* %0, i64 3
%8 = load i32, i32* %7
%9 = getelementptr inbounds i32, i32* %0, i64 4
%10 = load i32, i32* %9
%11 = getelementptr inbounds i32, i32* %0, i64 5
%12 = load i32, i32* %11
%13 = getelementptr inbounds i32, i32* %0, i64 6
%14 = load i32, i32* %13
%15 = getelementptr inbounds i32, i32* %0, i64 7
%16 = load i32, i32* %15
%17 = getelementptr inbounds i32, i32* %0, i64 8
%18 = load i32, i32* %17
%19 = getelementptr inbounds i32, i32* %0, i64 9
%20 = load i32, i32* %19
%21 = getelementptr inbounds i32, i32* %0, i64 10
%22 = load i32, i32* %21
%23 = getelementptr inbounds i32, i32* %0, i64 11
%24 = load i32, i32* %23
%25 = getelementptr inbounds i32, i32* %0, i64 12
%26 = load i32, i32* %25
%27 = getelementptr inbounds i32, i32* %0, i64 13
%28 = load i32, i32* %27
%29 = getelementptr inbounds i32, i32* %0, i64 14
%30 = load i32, i32* %29
%31 = getelementptr inbounds i32, i32* %0, i64 15
%32 = load i32, i32* %31
%33 = tail call i32 @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str, i64 0, i64 0), i32 %2, i32 %4, i32 %6, i32 %8, i32 %10, i32 %12, i32 %14, i32 %16, i32 %18, i32 %20, i32 %22, i32 %24, i32 %26, i32 %28, i32 %30, i32 %32)
ret void
}