#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 Interp7(uint32_t *pc, uint32_t c1, uint32_t c2, uint32_t c3) {
  *pc = ((((c1 & 0x00FF00) * 6 + (c2 & 0x00FF00) + (c3 & 0x00FF00)) >> 3) &
         0x00FF00) +
        ((((c1 & 0xFF00FF) * 6 + (c2 & 0xFF00FF) + (c3 & 0xFF00FF)) >> 3) &
         0xFF00FF);
}


x86 assembly (clang, -O0):
<Interp7>:
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   $0x6,%eax,%ecx
mov    -0x10(%rbp),%eax
and    $0xff00,%eax
add    %eax,%ecx
mov    -0x14(%rbp),%eax
and    $0xff00,%eax
add    %eax,%ecx
sar    $0x3,%ecx
and    $0xff00,%ecx
mov    -0xc(%rbp),%eax
and    $0xff00ff,%eax
imul   $0x6,%eax,%eax
mov    -0x10(%rbp),%edx
and    $0xff00ff,%edx
add    %edx,%eax
mov    -0x14(%rbp),%edx
and    $0xff00ff,%edx
add    %edx,%eax
sar    $0x3,%eax
and    $0xff00ff,%eax
add    %eax,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<Interp7>:
mov    %esi,%eax
and    $0xff00,%eax
lea    (%rax,%rax,2),%r8d
mov    %edx,%eax
and    $0xff00,%eax
lea    (%rax,%r8,2),%r8d
mov    %ecx,%eax
and    $0xff00,%eax
add    %r8d,%eax
shr    $0x3,%eax
and    $0xff00,%eax
and    $0xff00ff,%esi
lea    (%rsi,%rsi,2),%esi
and    $0xff00ff,%edx
lea    (%rdx,%rsi,2),%edx
and    $0xff00ff,%ecx
add    %edx,%ecx
shr    $0x3,%ecx
and    $0xff00ff,%ecx
or     %eax,%ecx
mov    %ecx,(%rdi)
ret

LLVM IR (-O0):
define void @Interp7(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, 6
%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, 3
%19 = and i32 %18, 65280
%20 = load i32, i32* %6
%21 = and i32 %20, 16711935
%22 = mul nsw i32 %21, 6
%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, 3
%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 @Interp7(i32* nocapture writeonly %0, i32 %1, i32 %2, i32 %3) {
%5 = and i32 %1, 65280
%6 = mul nuw nsw i32 %5, 6
%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, 3
%12 = and i32 %11, 65280
%13 = and i32 %1, 16711935
%14 = mul nuw nsw i32 %13, 6
%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, 3
%20 = and i32 %19, 16711935
%21 = or i32 %12, %20
store i32 %21, i32* %0
ret void
}