void EVMMACAddrGet(unsigned int addrIdx, unsigned char *macAddr) {
  macAddr[0] =
      ((*((volatile unsigned int *)((0x44E10000) + (0x630 + (addrIdx * 8))))) >>
       8) &
      0xFF;
  macAddr[1] =
      ((*((volatile unsigned int *)((0x44E10000) + (0x630 + (addrIdx * 8)))))) &
      0xFF;
  macAddr[2] =
      ((*((volatile unsigned int *)((0x44E10000) + (0x634 + (addrIdx * 8))))) >>
       24) &
      0xFF;
  macAddr[3] =
      ((*((volatile unsigned int *)((0x44E10000) + (0x634 + (addrIdx * 8))))) >>
       16) &
      0xFF;
  macAddr[4] =
      ((*((volatile unsigned int *)((0x44E10000) + (0x634 + (addrIdx * 8))))) >>
       8) &
      0xFF;
  macAddr[5] =
      ((*((volatile unsigned int *)((0x44E10000) + (0x634 + (addrIdx * 8)))))) &
      0xFF;
}


x86 assembly (clang, -O0):
<EVMMACAddrGet>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x4(%rbp),%eax
shl    $0x3,%eax
add    $0x630,%eax
add    $0x44e10000,%eax
mov    %eax,%eax
mov    (%rax),%eax
shr    $0x8,%eax
and    $0xff,%eax
mov    %al,%cl
mov    -0x10(%rbp),%rax
mov    %cl,(%rax)
mov    -0x4(%rbp),%eax
shl    $0x3,%eax
add    $0x630,%eax
add    $0x44e10000,%eax
mov    %eax,%eax
mov    (%rax),%eax
and    $0xff,%eax
mov    %al,%cl
mov    -0x10(%rbp),%rax
mov    %cl,0x1(%rax)
mov    -0x4(%rbp),%eax
shl    $0x3,%eax
add    $0x634,%eax
add    $0x44e10000,%eax
mov    %eax,%eax
mov    (%rax),%eax
shr    $0x18,%eax
and    $0xff,%eax
mov    %al,%cl
mov    -0x10(%rbp),%rax
mov    %cl,0x2(%rax)
mov    -0x4(%rbp),%eax
shl    $0x3,%eax
add    $0x634,%eax
add    $0x44e10000,%eax
mov    %eax,%eax
mov    (%rax),%eax
shr    $0x10,%eax
and    $0xff,%eax
mov    %al,%cl
mov    -0x10(%rbp),%rax
mov    %cl,0x3(%rax)
mov    -0x4(%rbp),%eax
shl    $0x3,%eax
add    $0x634,%eax
add    $0x44e10000,%eax
mov    %eax,%eax
mov    (%rax),%eax
shr    $0x8,%eax
and    $0xff,%eax
mov    %al,%cl
mov    -0x10(%rbp),%rax
mov    %cl,0x4(%rax)
mov    -0x4(%rbp),%eax
shl    $0x3,%eax
add    $0x634,%eax
add    $0x44e10000,%eax
mov    %eax,%eax
mov    (%rax),%eax
and    $0xff,%eax
mov    %al,%cl
mov    -0x10(%rbp),%rax
mov    %cl,0x5(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<EVMMACAddrGet>:
lea    0x44e10630(,%rdi,8),%eax
mov    (%rax),%ecx
mov    %ch,(%rsi)
mov    (%rax),%eax
mov    %al,0x1(%rsi)
lea    0x44e10634(,%rdi,8),%eax
mov    (%rax),%ecx
shr    $0x18,%ecx
mov    %cl,0x2(%rsi)
mov    (%rax),%ecx
shr    $0x10,%ecx
mov    %cl,0x3(%rsi)
mov    (%rax),%ecx
mov    %ch,0x4(%rsi)
mov    (%rax),%eax
mov    %al,0x5(%rsi)
ret

LLVM IR (-O0):
define void @EVMMACAddrGet(i32 %0, i8* %1) {
%3 = alloca i32
%4 = alloca i8*
store i32 %0, i32* %3
store i8* %1, i8** %4
%5 = load i32, i32* %3
%6 = mul i32 %5, 8
%7 = add i32 1584, %6
%8 = add i32 1155596288, %7
%9 = zext i32 %8 to i64
%10 = inttoptr i64 %9 to i32*
%11 = load volatile i32, i32* %10
%12 = lshr i32 %11, 8
%13 = and i32 %12, 255
%14 = trunc i32 %13 to i8
%15 = load i8*, i8** %4
%16 = getelementptr inbounds i8, i8* %15, i64 0
store i8 %14, i8* %16
%17 = load i32, i32* %3
%18 = mul i32 %17, 8
%19 = add i32 1584, %18
%20 = add i32 1155596288, %19
%21 = zext i32 %20 to i64
%22 = inttoptr i64 %21 to i32*
%23 = load volatile i32, i32* %22
%24 = and i32 %23, 255
%25 = trunc i32 %24 to i8
%26 = load i8*, i8** %4
%27 = getelementptr inbounds i8, i8* %26, i64 1
store i8 %25, i8* %27
%28 = load i32, i32* %3
%29 = mul i32 %28, 8
%30 = add i32 1588, %29
%31 = add i32 1155596288, %30
%32 = zext i32 %31 to i64
%33 = inttoptr i64 %32 to i32*
%34 = load volatile i32, i32* %33
%35 = lshr i32 %34, 24
%36 = and i32 %35, 255
%37 = trunc i32 %36 to i8
%38 = load i8*, i8** %4
%39 = getelementptr inbounds i8, i8* %38, i64 2
store i8 %37, i8* %39
%40 = load i32, i32* %3
%41 = mul i32 %40, 8
%42 = add i32 1588, %41
%43 = add i32 1155596288, %42
%44 = zext i32 %43 to i64
%45 = inttoptr i64 %44 to i32*
%46 = load volatile i32, i32* %45
%47 = lshr i32 %46, 16
%48 = and i32 %47, 255
%49 = trunc i32 %48 to i8
%50 = load i8*, i8** %4
%51 = getelementptr inbounds i8, i8* %50, i64 3
store i8 %49, i8* %51
%52 = load i32, i32* %3
%53 = mul i32 %52, 8
%54 = add i32 1588, %53
%55 = add i32 1155596288, %54
%56 = zext i32 %55 to i64
%57 = inttoptr i64 %56 to i32*
%58 = load volatile i32, i32* %57
%59 = lshr i32 %58, 8
%60 = and i32 %59, 255
%61 = trunc i32 %60 to i8
%62 = load i8*, i8** %4
%63 = getelementptr inbounds i8, i8* %62, i64 4
store i8 %61, i8* %63
%64 = load i32, i32* %3
%65 = mul i32 %64, 8
%66 = add i32 1588, %65
%67 = add i32 1155596288, %66
%68 = zext i32 %67 to i64
%69 = inttoptr i64 %68 to i32*
%70 = load volatile i32, i32* %69
%71 = and i32 %70, 255
%72 = trunc i32 %71 to i8
%73 = load i8*, i8** %4
%74 = getelementptr inbounds i8, i8* %73, i64 5
store i8 %72, i8* %74
ret void
}

LLVM IR (-O2):
define void @EVMMACAddrGet(i32 %0, i8* nocapture writeonly %1) {
%3 = shl i32 %0, 3
%4 = add i32 %3, 1155597872
%5 = zext i32 %4 to i64
%6 = inttoptr i64 %5 to i32*
%7 = load volatile i32, i32* %6
%8 = lshr i32 %7, 8
%9 = trunc i32 %8 to i8
store i8 %9, i8* %1
%10 = load volatile i32, i32* %6
%11 = trunc i32 %10 to i8
%12 = getelementptr inbounds i8, i8* %1, i64 1
store i8 %11, i8* %12
%13 = add i32 %3, 1155597876
%14 = zext i32 %13 to i64
%15 = inttoptr i64 %14 to i32*
%16 = load volatile i32, i32* %15
%17 = lshr i32 %16, 24
%18 = trunc i32 %17 to i8
%19 = getelementptr inbounds i8, i8* %1, i64 2
store i8 %18, i8* %19
%20 = load volatile i32, i32* %15
%21 = lshr i32 %20, 16
%22 = trunc i32 %21 to i8
%23 = getelementptr inbounds i8, i8* %1, i64 3
store i8 %22, i8* %23
%24 = load volatile i32, i32* %15
%25 = lshr i32 %24, 8
%26 = trunc i32 %25 to i8
%27 = getelementptr inbounds i8, i8* %1, i64 4
store i8 %26, i8* %27
%28 = load volatile i32, i32* %15
%29 = trunc i32 %28 to i8
%30 = getelementptr inbounds i8, i8* %1, i64 5
store i8 %29, i8* %30
ret void
}