#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_mib(unsigned char *macaddr, FILE *fp) {
  putc('U', fp);
  putc('D', fp);
  putc('M', fp);
  putc('I', fp);
  putc(1, fp);
  putc(0, fp);
  putc(24, fp);
  putc(0, fp);
  putc(0, fp);
  putc(0, fp);
  putc(0x16, fp);
  putc(0, fp);
  putc(0x30, fp);
  putc(0x14, fp);
  putc(0x06, fp);
  putc(0x0a, fp);
  putc(0x2a, fp);
  putc(0x86, fp);
  putc(0x48, fp);
  putc(0xce, fp);
  putc(0x34, fp);
  putc(0x02, fp);
  putc(0x01, fp);
  putc(0x01, fp);
  putc(0x01, fp);
  putc(0x01, fp);
  putc(0x04, fp);
  putc(0x06, 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_mib>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rsi
mov    $0x55,%edi
call   1030 <putc@plt>
mov    -0x10(%rbp),%rsi
mov    $0x44,%edi
call   1030 <putc@plt>
mov    -0x10(%rbp),%rsi
mov    $0x4d,%edi
call   1030 <putc@plt>
mov    -0x10(%rbp),%rsi
mov    $0x49,%edi
call   1030 <putc@plt>
mov    -0x10(%rbp),%rsi
mov    $0x1,%edi
call   1030 <putc@plt>
mov    -0x10(%rbp),%rsi
xor    %edi,%edi
call   1030 <putc@plt>
mov    -0x10(%rbp),%rsi
mov    $0x18,%edi
call   1030 <putc@plt>
mov    -0x10(%rbp),%rsi
xor    %edi,%edi
call   1030 <putc@plt>
mov    -0x10(%rbp),%rsi
xor    %edi,%edi
call   1030 <putc@plt>
mov    -0x10(%rbp),%rsi
xor    %edi,%edi
call   1030 <putc@plt>
mov    -0x10(%rbp),%rsi
mov    $0x16,%edi
call   1030 <putc@plt>
mov    -0x10(%rbp),%rsi
xor    %edi,%edi
call   1030 <putc@plt>
mov    -0x10(%rbp),%rsi
mov    $0x30,%edi
call   1030 <putc@plt>
mov    -0x10(%rbp),%rsi
mov    $0x14,%edi
call   1030 <putc@plt>
mov    -0x10(%rbp),%rsi
mov    $0x6,%edi
call   1030 <putc@plt>
mov    -0x10(%rbp),%rsi
mov    $0xa,%edi
call   1030 <putc@plt>
mov    -0x10(%rbp),%rsi
mov    $0x2a,%edi
call   1030 <putc@plt>
mov    -0x10(%rbp),%rsi
mov    $0x86,%edi
call   1030 <putc@plt>
mov    -0x10(%rbp),%rsi
mov    $0x48,%edi
call   1030 <putc@plt>
mov    -0x10(%rbp),%rsi
mov    $0xce,%edi
call   1030 <putc@plt>
mov    -0x10(%rbp),%rsi
mov    $0x34,%edi
call   1030 <putc@plt>
mov    -0x10(%rbp),%rsi
mov    $0x2,%edi
call   1030 <putc@plt>
mov    -0x10(%rbp),%rsi
mov    $0x1,%edi
call   1030 <putc@plt>
mov    -0x10(%rbp),%rsi
mov    $0x1,%edi
call   1030 <putc@plt>
mov    -0x10(%rbp),%rsi
mov    $0x1,%edi
call   1030 <putc@plt>
mov    -0x10(%rbp),%rsi
mov    $0x1,%edi
call   1030 <putc@plt>
mov    -0x10(%rbp),%rsi
mov    $0x4,%edi
call   1030 <putc@plt>
mov    -0x10(%rbp),%rsi
mov    $0x6,%edi
call   1030 <putc@plt>
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_mib>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%rbx
mov    %rdi,%r14
mov    $0x55,%edi
call   1030 <putc@plt>
mov    $0x44,%edi
mov    %rbx,%rsi
call   1030 <putc@plt>
mov    $0x4d,%edi
mov    %rbx,%rsi
call   1030 <putc@plt>
mov    $0x49,%edi
mov    %rbx,%rsi
call   1030 <putc@plt>
mov    $0x1,%edi
mov    %rbx,%rsi
call   1030 <putc@plt>
xor    %edi,%edi
mov    %rbx,%rsi
call   1030 <putc@plt>
mov    $0x18,%edi
mov    %rbx,%rsi
call   1030 <putc@plt>
xor    %edi,%edi
mov    %rbx,%rsi
call   1030 <putc@plt>
xor    %edi,%edi
mov    %rbx,%rsi
call   1030 <putc@plt>
xor    %edi,%edi
mov    %rbx,%rsi
call   1030 <putc@plt>
mov    $0x16,%edi
mov    %rbx,%rsi
call   1030 <putc@plt>
xor    %edi,%edi
mov    %rbx,%rsi
call   1030 <putc@plt>
mov    $0x30,%edi
mov    %rbx,%rsi
call   1030 <putc@plt>
mov    $0x14,%edi
mov    %rbx,%rsi
call   1030 <putc@plt>
mov    $0x6,%edi
mov    %rbx,%rsi
call   1030 <putc@plt>
mov    $0xa,%edi
mov    %rbx,%rsi
call   1030 <putc@plt>
mov    $0x2a,%edi
mov    %rbx,%rsi
call   1030 <putc@plt>
mov    $0x86,%edi
mov    %rbx,%rsi
call   1030 <putc@plt>
mov    $0x48,%edi
mov    %rbx,%rsi
call   1030 <putc@plt>
mov    $0xce,%edi
mov    %rbx,%rsi
call   1030 <putc@plt>
mov    $0x34,%edi
mov    %rbx,%rsi
call   1030 <putc@plt>
mov    $0x2,%edi
mov    %rbx,%rsi
call   1030 <putc@plt>
mov    $0x1,%edi
mov    %rbx,%rsi
call   1030 <putc@plt>
mov    $0x1,%edi
mov    %rbx,%rsi
call   1030 <putc@plt>
mov    $0x1,%edi
mov    %rbx,%rsi
call   1030 <putc@plt>
mov    $0x1,%edi
mov    %rbx,%rsi
call   1030 <putc@plt>
mov    $0x4,%edi
mov    %rbx,%rsi
call   1030 <putc@plt>
mov    $0x6,%edi
mov    %rbx,%rsi
call   1030 <putc@plt>
movzbl (%r14),%edi
mov    %rbx,%rsi
call   1030 <putc@plt>
movzbl 0x1(%r14),%edi
mov    %rbx,%rsi
call   1030 <putc@plt>
movzbl 0x2(%r14),%edi
mov    %rbx,%rsi
call   1030 <putc@plt>
movzbl 0x3(%r14),%edi
mov    %rbx,%rsi
call   1030 <putc@plt>
movzbl 0x4(%r14),%edi
mov    %rbx,%rsi
call   1030 <putc@plt>
movzbl 0x5(%r14),%edi
mov    %rbx,%rsi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <putc@plt>

LLVM IR (-O0):
define void @output_mib(i8* %0, i32* %1) {
%3 = alloca i8*
%4 = alloca i32*
store i8* %0, i8** %3
store i32* %1, i32** %4
%5 = load i32*, i32** %4
%6 = call i32 @putc(i8 zeroext 85, i32* %5)
%7 = load i32*, i32** %4
%8 = call i32 @putc(i8 zeroext 68, i32* %7)
%9 = load i32*, i32** %4
%10 = call i32 @putc(i8 zeroext 77, i32* %9)
%11 = load i32*, i32** %4
%12 = call i32 @putc(i8 zeroext 73, i32* %11)
%13 = load i32*, i32** %4
%14 = call i32 @putc(i8 zeroext 1, i32* %13)
%15 = load i32*, i32** %4
%16 = call i32 @putc(i8 zeroext 0, i32* %15)
%17 = load i32*, i32** %4
%18 = call i32 @putc(i8 zeroext 24, i32* %17)
%19 = load i32*, i32** %4
%20 = call i32 @putc(i8 zeroext 0, i32* %19)
%21 = load i32*, i32** %4
%22 = call i32 @putc(i8 zeroext 0, i32* %21)
%23 = load i32*, i32** %4
%24 = call i32 @putc(i8 zeroext 0, i32* %23)
%25 = load i32*, i32** %4
%26 = call i32 @putc(i8 zeroext 22, i32* %25)
%27 = load i32*, i32** %4
%28 = call i32 @putc(i8 zeroext 0, i32* %27)
%29 = load i32*, i32** %4
%30 = call i32 @putc(i8 zeroext 48, i32* %29)
%31 = load i32*, i32** %4
%32 = call i32 @putc(i8 zeroext 20, i32* %31)
%33 = load i32*, i32** %4
%34 = call i32 @putc(i8 zeroext 6, i32* %33)
%35 = load i32*, i32** %4
%36 = call i32 @putc(i8 zeroext 10, i32* %35)
%37 = load i32*, i32** %4
%38 = call i32 @putc(i8 zeroext 42, i32* %37)
%39 = load i32*, i32** %4
%40 = call i32 @putc(i8 zeroext -122, i32* %39)
%41 = load i32*, i32** %4
%42 = call i32 @putc(i8 zeroext 72, i32* %41)
%43 = load i32*, i32** %4
%44 = call i32 @putc(i8 zeroext -50, i32* %43)
%45 = load i32*, i32** %4
%46 = call i32 @putc(i8 zeroext 52, i32* %45)
%47 = load i32*, i32** %4
%48 = call i32 @putc(i8 zeroext 2, i32* %47)
%49 = load i32*, i32** %4
%50 = call i32 @putc(i8 zeroext 1, i32* %49)
%51 = load i32*, i32** %4
%52 = call i32 @putc(i8 zeroext 1, i32* %51)
%53 = load i32*, i32** %4
%54 = call i32 @putc(i8 zeroext 1, i32* %53)
%55 = load i32*, i32** %4
%56 = call i32 @putc(i8 zeroext 1, i32* %55)
%57 = load i32*, i32** %4
%58 = call i32 @putc(i8 zeroext 4, i32* %57)
%59 = load i32*, i32** %4
%60 = call i32 @putc(i8 zeroext 6, i32* %59)
%61 = load i8*, i8** %3
%62 = getelementptr inbounds i8, i8* %61, i64 0
%63 = load i8, i8* %62
%64 = load i32*, i32** %4
%65 = call i32 @putc(i8 zeroext %63, i32* %64)
%66 = load i8*, i8** %3
%67 = getelementptr inbounds i8, i8* %66, i64 1
%68 = load i8, i8* %67
%69 = load i32*, i32** %4
%70 = call i32 @putc(i8 zeroext %68, i32* %69)
%71 = load i8*, i8** %3
%72 = getelementptr inbounds i8, i8* %71, i64 2
%73 = load i8, i8* %72
%74 = load i32*, i32** %4
%75 = call i32 @putc(i8 zeroext %73, i32* %74)
%76 = load i8*, i8** %3
%77 = getelementptr inbounds i8, i8* %76, i64 3
%78 = load i8, i8* %77
%79 = load i32*, i32** %4
%80 = call i32 @putc(i8 zeroext %78, i32* %79)
%81 = load i8*, i8** %3
%82 = getelementptr inbounds i8, i8* %81, i64 4
%83 = load i8, i8* %82
%84 = load i32*, i32** %4
%85 = call i32 @putc(i8 zeroext %83, i32* %84)
%86 = load i8*, i8** %3
%87 = getelementptr inbounds i8, i8* %86, i64 5
%88 = load i8, i8* %87
%89 = load i32*, i32** %4
%90 = call i32 @putc(i8 zeroext %88, i32* %89)
ret void
}

LLVM IR (-O2):
define void @output_mib(i8* nocapture %0, i32* %1) {
%3 = tail call i32 @putc(i8 zeroext 85, i32* %1)
%4 = tail call i32 @putc(i8 zeroext 68, i32* %1)
%5 = tail call i32 @putc(i8 zeroext 77, i32* %1)
%6 = tail call i32 @putc(i8 zeroext 73, i32* %1)
%7 = tail call i32 @putc(i8 zeroext 1, i32* %1)
%8 = tail call i32 @putc(i8 zeroext 0, i32* %1)
%9 = tail call i32 @putc(i8 zeroext 24, i32* %1)
%10 = tail call i32 @putc(i8 zeroext 0, i32* %1)
%11 = tail call i32 @putc(i8 zeroext 0, i32* %1)
%12 = tail call i32 @putc(i8 zeroext 0, i32* %1)
%13 = tail call i32 @putc(i8 zeroext 22, i32* %1)
%14 = tail call i32 @putc(i8 zeroext 0, i32* %1)
%15 = tail call i32 @putc(i8 zeroext 48, i32* %1)
%16 = tail call i32 @putc(i8 zeroext 20, i32* %1)
%17 = tail call i32 @putc(i8 zeroext 6, i32* %1)
%18 = tail call i32 @putc(i8 zeroext 10, i32* %1)
%19 = tail call i32 @putc(i8 zeroext 42, i32* %1)
%20 = tail call i32 @putc(i8 zeroext -122, i32* %1)
%21 = tail call i32 @putc(i8 zeroext 72, i32* %1)
%22 = tail call i32 @putc(i8 zeroext -50, i32* %1)
%23 = tail call i32 @putc(i8 zeroext 52, i32* %1)
%24 = tail call i32 @putc(i8 zeroext 2, i32* %1)
%25 = tail call i32 @putc(i8 zeroext 1, i32* %1)
%26 = tail call i32 @putc(i8 zeroext 1, i32* %1)
%27 = tail call i32 @putc(i8 zeroext 1, i32* %1)
%28 = tail call i32 @putc(i8 zeroext 1, i32* %1)
%29 = tail call i32 @putc(i8 zeroext 4, i32* %1)
%30 = tail call i32 @putc(i8 zeroext 6, i32* %1)
%31 = load i8, i8* %0
%32 = tail call i32 @putc(i8 zeroext %31, i32* %1)
%33 = getelementptr inbounds i8, i8* %0, i64 1
%34 = load i8, i8* %33
%35 = tail call i32 @putc(i8 zeroext %34, i32* %1)
%36 = getelementptr inbounds i8, i8* %0, i64 2
%37 = load i8, i8* %36
%38 = tail call i32 @putc(i8 zeroext %37, i32* %1)
%39 = getelementptr inbounds i8, i8* %0, i64 3
%40 = load i8, i8* %39
%41 = tail call i32 @putc(i8 zeroext %40, i32* %1)
%42 = getelementptr inbounds i8, i8* %0, i64 4
%43 = load i8, i8* %42
%44 = tail call i32 @putc(i8 zeroext %43, i32* %1)
%45 = getelementptr inbounds i8, i8* %0, i64 5
%46 = load i8, i8* %45
%47 = tail call i32 @putc(i8 zeroext %46, i32* %1)
ret void
}