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

/* Variables and functions */
int /*<<< orphan*/ putc(unsigned char, int /*<<< orphan*/ *);
void output_raw(unsigned char *macaddr, FILE *fp) {
  putc(macaddr[0], fp);
  putc(macaddr[1], fp);
  putc(macaddr[2], fp);
  putc(macaddr[3], fp);
  putc(macaddr[4], fp);
  putc(macaddr[5], fp);
}


x86 assembly (clang, -O0):
<output_raw>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%al
mov    -0x10(%rbp),%rsi
movzbl %al,%edi
call   1030 <putc@plt>
mov    -0x8(%rbp),%rax
mov    0x1(%rax),%al
mov    -0x10(%rbp),%rsi
movzbl %al,%edi
call   1030 <putc@plt>
mov    -0x8(%rbp),%rax
mov    0x2(%rax),%al
mov    -0x10(%rbp),%rsi
movzbl %al,%edi
call   1030 <putc@plt>
mov    -0x8(%rbp),%rax
mov    0x3(%rax),%al
mov    -0x10(%rbp),%rsi
movzbl %al,%edi
call   1030 <putc@plt>
mov    -0x8(%rbp),%rax
mov    0x4(%rax),%al
mov    -0x10(%rbp),%rsi
movzbl %al,%edi
call   1030 <putc@plt>
mov    -0x8(%rbp),%rax
mov    0x5(%rax),%al
mov    -0x10(%rbp),%rsi
movzbl %al,%edi
call   1030 <putc@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<output_raw>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%rbx
movzbl (%rdi),%edi
call   1030 <putc@plt>
movzbl 0x1(%rbx),%edi
mov    %r14,%rsi
call   1030 <putc@plt>
movzbl 0x2(%rbx),%edi
mov    %r14,%rsi
call   1030 <putc@plt>
movzbl 0x3(%rbx),%edi
mov    %r14,%rsi
call   1030 <putc@plt>
movzbl 0x4(%rbx),%edi
mov    %r14,%rsi
call   1030 <putc@plt>
movzbl 0x5(%rbx),%edi
mov    %r14,%rsi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <putc@plt>

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

LLVM IR (-O2):
define void @output_raw(i8* nocapture %0, i32* nocapture %1) {
%3 = load i8, i8* %0
%4 = tail call i32 @putc(i8 zeroext %3, i32* %1)
%5 = getelementptr inbounds i8, i8* %0, i64 1
%6 = load i8, i8* %5
%7 = tail call i32 @putc(i8 zeroext %6, i32* %1)
%8 = getelementptr inbounds i8, i8* %0, i64 2
%9 = load i8, i8* %8
%10 = tail call i32 @putc(i8 zeroext %9, i32* %1)
%11 = getelementptr inbounds i8, i8* %0, i64 3
%12 = load i8, i8* %11
%13 = tail call i32 @putc(i8 zeroext %12, i32* %1)
%14 = getelementptr inbounds i8, i8* %0, i64 4
%15 = load i8, i8* %14
%16 = tail call i32 @putc(i8 zeroext %15, i32* %1)
%17 = getelementptr inbounds i8, i8* %0, i64 5
%18 = load i8, i8* %17
%19 = tail call i32 @putc(i8 zeroext %18, i32* %1)
ret void
}