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

/* Variables and functions */
void Interp10(uint32_t *pc, uint32_t c1, uint32_t c2, uint32_t c3) {
  *pc = ((((c1 & 0x00FF00) * 14 + (c2 & 0x00FF00) + (c3 & 0x00FF00)) >> 4) &
         0x00FF00) +
        ((((c1 & 0xFF00FF) * 14 + (c2 & 0xFF00FF) + (c3 & 0xFF00FF)) >> 4) &
         0xFF00FF);
}


x86 assembly (clang, -O0):
<Interp10>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    %ecx,-0x14(%rbp)
mov    -0xc(%rbp),%eax
and    $0xff00,%eax
imul   $0xe,%eax,%ecx
mov    -0x10(%rbp),%eax
and    $0xff00,%eax
add    %eax,%ecx
mov    -0x14(%rbp),%eax
and    $0xff00,%eax
add    %eax,%ecx
sar    $0x4,%ecx
and    $0xff00,%ecx
mov    -0xc(%rbp),%eax
and    $0xff00ff,%eax
imul   $0xe,%eax,%eax
mov    -0x10(%rbp),%edx
and    $0xff00ff,%edx
add    %edx,%eax
mov    -0x14(%rbp),%edx
and    $0xff00ff,%edx
add    %edx,%eax
sar    $0x4,%eax
and    $0xff00ff,%eax
add    %eax,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<Interp10>:
mov    %esi,%r8d
and    $0xff00,%r8d
mov    %r8d,%eax
shl    $0x4,%eax
sub    %r8d,%eax
sub    %r8d,%eax
mov    %edx,%r8d
and    $0xff00,%r8d
add    %eax,%r8d
mov    %ecx,%r9d
and    $0xff00,%r9d
add    %r8d,%r9d
shr    $0x4,%r9d
and    $0xff00,%r9d
and    $0xff00ff,%esi
mov    %esi,%eax
shl    $0x4,%eax
sub    %esi,%eax
sub    %esi,%eax
and    $0xff00ff,%edx
add    %eax,%edx
and    $0xff00ff,%ecx
add    %edx,%ecx
shr    $0x4,%ecx
and    $0xff00ff,%ecx
or     %r9d,%ecx
mov    %ecx,(%rdi)
ret

LLVM IR (-O0):
define void @Interp10(i32* %0, i32 %1, i32 %2, i32 %3) {
%5 = alloca i32*
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
store i32* %0, i32** %5
store i32 %1, i32* %6
store i32 %2, i32* %7
store i32 %3, i32* %8
%9 = load i32, i32* %6
%10 = and i32 %9, 65280
%11 = mul nsw i32 %10, 14
%12 = load i32, i32* %7
%13 = and i32 %12, 65280
%14 = add nsw i32 %11, %13
%15 = load i32, i32* %8
%16 = and i32 %15, 65280
%17 = add nsw i32 %14, %16
%18 = ashr i32 %17, 4
%19 = and i32 %18, 65280
%20 = load i32, i32* %6
%21 = and i32 %20, 16711935
%22 = mul nsw i32 %21, 14
%23 = load i32, i32* %7
%24 = and i32 %23, 16711935
%25 = add nsw i32 %22, %24
%26 = load i32, i32* %8
%27 = and i32 %26, 16711935
%28 = add nsw i32 %25, %27
%29 = ashr i32 %28, 4
%30 = and i32 %29, 16711935
%31 = add nsw i32 %19, %30
%32 = load i32*, i32** %5
store i32 %31, i32* %32
ret void
}

LLVM IR (-O2):
define void @Interp10(i32* nocapture writeonly %0, i32 %1, i32 %2, i32 %3) {
%5 = and i32 %1, 65280
%6 = mul nuw nsw i32 %5, 14
%7 = and i32 %2, 65280
%8 = add nuw nsw i32 %6, %7
%9 = and i32 %3, 65280
%10 = add nuw nsw i32 %8, %9
%11 = lshr exact i32 %10, 4
%12 = and i32 %11, 65280
%13 = and i32 %1, 16711935
%14 = mul nuw nsw i32 %13, 14
%15 = and i32 %2, 16711935
%16 = add nuw nsw i32 %14, %15
%17 = and i32 %3, 16711935
%18 = add nuw nsw i32 %16, %17
%19 = lshr i32 %18, 4
%20 = and i32 %19, 16711935
%21 = or i32 %12, %20
store i32 %21, i32* %0
ret void
}