void init_CAN0_Buffer() {
  unsigned char u1t_bufno;
  unsigned long sttp_MsgRegTypeBuf;
  for (u1t_bufno = 0; u1t_bufno < 16; u1t_bufno++) {
    sttp_MsgRegTypeBuf = ((0x03FEC100) + (0x20 * u1t_bufno));
    *((unsigned short *)(sttp_MsgRegTypeBuf + 0x0e)) = 0x0001;
    *((unsigned char *)(sttp_MsgRegTypeBuf + 0x09)) &= 0xf8;
    *((unsigned short *)(sttp_MsgRegTypeBuf + 0x0e)) = 0x0006;
  }
}


x86 assembly (clang, -O0):
<init_CAN0_Buffer>:
push   %rbp
mov    %rsp,%rbp
movb   $0x0,-0x1(%rbp)
movzbl -0x1(%rbp),%eax
cmp    $0x10,%eax
jge    1159 <init_CAN0_Buffer+0x59>
movzbl -0x1(%rbp),%eax
shl    $0x5,%eax
add    $0x3fec100,%eax
cltq
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
movw   $0x1,0xe(%rax)
mov    -0x10(%rbp),%rax
movzbl 0x9(%rax),%ecx
and    $0xf8,%ecx
mov    %cl,0x9(%rax)
mov    -0x10(%rbp),%rax
movw   $0x6,0xe(%rax)
mov    -0x1(%rbp),%al
add    $0x1,%al
mov    %al,-0x1(%rbp)
jmp    1108 <init_CAN0_Buffer+0x8>
pop    %rbp
ret

x86 assembly (clang, -O2):
<init_CAN0_Buffer>:
movw   $0x1,0x3fec10e
andb   $0xf8,0x3fec109
f8
movw   $0x6,0x3fec10e
movw   $0x1,0x3fec12e
andb   $0xf8,0x3fec129
f8
movw   $0x6,0x3fec12e
movw   $0x1,0x3fec14e
andb   $0xf8,0x3fec149
f8
movw   $0x6,0x3fec14e
movw   $0x1,0x3fec16e
andb   $0xf8,0x3fec169
f8
movw   $0x6,0x3fec16e
movw   $0x1,0x3fec18e
andb   $0xf8,0x3fec189
f8
movw   $0x6,0x3fec18e
movw   $0x1,0x3fec1ae
andb   $0xf8,0x3fec1a9
f8
movw   $0x6,0x3fec1ae
movw   $0x1,0x3fec1ce
andb   $0xf8,0x3fec1c9
f8
movw   $0x6,0x3fec1ce
movw   $0x1,0x3fec1ee
andb   $0xf8,0x3fec1e9
f8
movw   $0x6,0x3fec1ee
movw   $0x1,0x3fec20e
andb   $0xf8,0x3fec209
f8
movw   $0x6,0x3fec20e
movw   $0x1,0x3fec22e
andb   $0xf8,0x3fec229
f8
movw   $0x6,0x3fec22e
movw   $0x1,0x3fec24e
andb   $0xf8,0x3fec249
f8
movw   $0x6,0x3fec24e
movw   $0x1,0x3fec26e
andb   $0xf8,0x3fec269
f8
movw   $0x6,0x3fec26e
movw   $0x1,0x3fec28e
andb   $0xf8,0x3fec289
f8
movw   $0x6,0x3fec28e
movw   $0x1,0x3fec2ae
andb   $0xf8,0x3fec2a9
f8
movw   $0x6,0x3fec2ae
movw   $0x1,0x3fec2ce
andb   $0xf8,0x3fec2c9
f8
movw   $0x6,0x3fec2ce
movw   $0x1,0x3fec2ee
andb   $0xf8,0x3fec2e9
f8
movw   $0x6,0x3fec2ee
ret

LLVM IR (-O0):
define void @init_CAN0_Buffer() {
%1 = alloca i8
%2 = alloca i64
store i8 0, i8* %1
br label %3
3: ; preds = %26, %0
%4 = load i8, i8* %1
%5 = zext i8 %4 to i32
%6 = icmp slt i32 %5, 16
br i1 %6, label %7, label %29
7: ; preds = %3
%8 = load i8, i8* %1
%9 = zext i8 %8 to i32
%10 = mul nsw i32 32, %9
%11 = add nsw i32 67027200, %10
%12 = sext i32 %11 to i64
store i64 %12, i64* %2
%13 = load i64, i64* %2
%14 = add i64 %13, 14
%15 = inttoptr i64 %14 to i16*
store i16 1, i16* %15
%16 = load i64, i64* %2
%17 = add i64 %16, 9
%18 = inttoptr i64 %17 to i8*
%19 = load i8, i8* %18
%20 = zext i8 %19 to i32
%21 = and i32 %20, 248
%22 = trunc i32 %21 to i8
store i8 %22, i8* %18
%23 = load i64, i64* %2
%24 = add i64 %23, 14
%25 = inttoptr i64 %24 to i16*
store i16 6, i16* %25
br label %26
26: ; preds = %7
%27 = load i8, i8* %1
%28 = add i8 %27, 1
store i8 %28, i8* %1
br label %3
29: ; preds = %3
ret void
}

LLVM IR (-O2):
define void @init_CAN0_Buffer() {
store i16 1, i16* inttoptr (i64 67027214 to i16*)
%1 = load i8, i8* inttoptr (i64 67027209 to i8*)
%2 = and i8 %1, -8
store i8 %2, i8* inttoptr (i64 67027209 to i8*)
store i16 6, i16* inttoptr (i64 67027214 to i16*)
store i16 1, i16* inttoptr (i64 67027246 to i16*)
%3 = load i8, i8* inttoptr (i64 67027241 to i8*)
%4 = and i8 %3, -8
store i8 %4, i8* inttoptr (i64 67027241 to i8*)
store i16 6, i16* inttoptr (i64 67027246 to i16*)
store i16 1, i16* inttoptr (i64 67027278 to i16*)
%5 = load i8, i8* inttoptr (i64 67027273 to i8*)
%6 = and i8 %5, -8
store i8 %6, i8* inttoptr (i64 67027273 to i8*)
store i16 6, i16* inttoptr (i64 67027278 to i16*)
store i16 1, i16* inttoptr (i64 67027310 to i16*)
%7 = load i8, i8* inttoptr (i64 67027305 to i8*)
%8 = and i8 %7, -8
store i8 %8, i8* inttoptr (i64 67027305 to i8*)
store i16 6, i16* inttoptr (i64 67027310 to i16*)
store i16 1, i16* inttoptr (i64 67027342 to i16*)
%9 = load i8, i8* inttoptr (i64 67027337 to i8*)
%10 = and i8 %9, -8
store i8 %10, i8* inttoptr (i64 67027337 to i8*)
store i16 6, i16* inttoptr (i64 67027342 to i16*)
store i16 1, i16* inttoptr (i64 67027374 to i16*)
%11 = load i8, i8* inttoptr (i64 67027369 to i8*)
%12 = and i8 %11, -8
store i8 %12, i8* inttoptr (i64 67027369 to i8*)
store i16 6, i16* inttoptr (i64 67027374 to i16*)
store i16 1, i16* inttoptr (i64 67027406 to i16*)
%13 = load i8, i8* inttoptr (i64 67027401 to i8*)
%14 = and i8 %13, -8
store i8 %14, i8* inttoptr (i64 67027401 to i8*)
store i16 6, i16* inttoptr (i64 67027406 to i16*)
store i16 1, i16* inttoptr (i64 67027438 to i16*)
%15 = load i8, i8* inttoptr (i64 67027433 to i8*)
%16 = and i8 %15, -8
store i8 %16, i8* inttoptr (i64 67027433 to i8*)
store i16 6, i16* inttoptr (i64 67027438 to i16*)
store i16 1, i16* inttoptr (i64 67027470 to i16*)
%17 = load i8, i8* inttoptr (i64 67027465 to i8*)
%18 = and i8 %17, -8
store i8 %18, i8* inttoptr (i64 67027465 to i8*)
store i16 6, i16* inttoptr (i64 67027470 to i16*)
store i16 1, i16* inttoptr (i64 67027502 to i16*)
%19 = load i8, i8* inttoptr (i64 67027497 to i8*)
%20 = and i8 %19, -8
store i8 %20, i8* inttoptr (i64 67027497 to i8*)
store i16 6, i16* inttoptr (i64 67027502 to i16*)
store i16 1, i16* inttoptr (i64 67027534 to i16*)
%21 = load i8, i8* inttoptr (i64 67027529 to i8*)
%22 = and i8 %21, -8
store i8 %22, i8* inttoptr (i64 67027529 to i8*)
store i16 6, i16* inttoptr (i64 67027534 to i16*)
store i16 1, i16* inttoptr (i64 67027566 to i16*)
%23 = load i8, i8* inttoptr (i64 67027561 to i8*)
%24 = and i8 %23, -8
store i8 %24, i8* inttoptr (i64 67027561 to i8*)
store i16 6, i16* inttoptr (i64 67027566 to i16*)
store i16 1, i16* inttoptr (i64 67027598 to i16*)
%25 = load i8, i8* inttoptr (i64 67027593 to i8*)
%26 = and i8 %25, -8
store i8 %26, i8* inttoptr (i64 67027593 to i8*)
store i16 6, i16* inttoptr (i64 67027598 to i16*)
store i16 1, i16* inttoptr (i64 67027630 to i16*)
%27 = load i8, i8* inttoptr (i64 67027625 to i8*)
%28 = and i8 %27, -8
store i8 %28, i8* inttoptr (i64 67027625 to i8*)
store i16 6, i16* inttoptr (i64 67027630 to i16*)
store i16 1, i16* inttoptr (i64 67027662 to i16*)
%29 = load i8, i8* inttoptr (i64 67027657 to i8*)
%30 = and i8 %29, -8
store i8 %30, i8* inttoptr (i64 67027657 to i8*)
store i16 6, i16* inttoptr (i64 67027662 to i16*)
store i16 1, i16* inttoptr (i64 67027694 to i16*)
%31 = load i8, i8* inttoptr (i64 67027689 to i8*)
%32 = and i8 %31, -8
store i8 %32, i8* inttoptr (i64 67027689 to i8*)
store i16 6, i16* inttoptr (i64 67027694 to i16*)
ret void
}