#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*/ uint8_t;
typedef int uint32_t;

/* Variables and functions */
scalar_t__ _MULxPOW(int /*<<< orphan*/, int, int);
uint32_t _MULalpha(uint8_t c) {
  return ((((uint32_t)_MULxPOW(c, 23, 0xa9)) << 24) |
          (((uint32_t)_MULxPOW(c, 245, 0xa9)) << 16) |
          (((uint32_t)_MULxPOW(c, 48, 0xa9)) << 8) |
          (((uint32_t)_MULxPOW(c, 239, 0xa9))));
}


x86 assembly (clang, -O0):
<_MULalpha>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
mov    $0x17,%esi
mov    $0xa9,%edx
call   1030 <_MULxPOW@plt>
shl    $0x18,%eax
mov    %eax,-0x10(%rbp)
mov    -0x4(%rbp),%edi
mov    $0xf5,%esi
mov    $0xa9,%edx
call   1030 <_MULxPOW@plt>
mov    %rax,%rcx
mov    -0x10(%rbp),%eax
shl    $0x10,%ecx
or     %ecx,%eax
mov    %eax,-0xc(%rbp)
mov    -0x4(%rbp),%edi
mov    $0x30,%esi
mov    $0xa9,%edx
call   1030 <_MULxPOW@plt>
mov    %rax,%rcx
mov    -0xc(%rbp),%eax
shl    $0x8,%ecx
or     %ecx,%eax
mov    %eax,-0x8(%rbp)
mov    -0x4(%rbp),%edi
mov    $0xef,%esi
mov    $0xa9,%edx
call   1030 <_MULxPOW@plt>
mov    %rax,%rcx
mov    -0x8(%rbp),%eax
or     %ecx,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_MULalpha>:
push   %rbp
push   %r14
push   %rbx
mov    %edi,%r14d
mov    $0x17,%esi
mov    $0xa9,%edx
call   1030 <_MULxPOW@plt>
mov    %rax,%rbx
shl    $0x18,%ebx
mov    %r14d,%edi
mov    $0xf5,%esi
mov    $0xa9,%edx
call   1030 <_MULxPOW@plt>
mov    %rax,%rbp
shl    $0x10,%ebp
or     %ebx,%ebp
mov    %r14d,%edi
mov    $0x30,%esi
mov    $0xa9,%edx
call   1030 <_MULxPOW@plt>
mov    %rax,%rbx
shl    $0x8,%ebx
mov    %r14d,%edi
mov    $0xef,%esi
mov    $0xa9,%edx
call   1030 <_MULxPOW@plt>
or     %ebx,%eax
or     %ebp,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
define i32 @_MULalpha(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i64 @_MULxPOW(i32 %3, i32 23, i32 169)
%5 = trunc i64 %4 to i32
%6 = shl i32 %5, 24
%7 = load i32, i32* %2
%8 = call i64 @_MULxPOW(i32 %7, i32 245, i32 169)
%9 = trunc i64 %8 to i32
%10 = shl i32 %9, 16
%11 = or i32 %6, %10
%12 = load i32, i32* %2
%13 = call i64 @_MULxPOW(i32 %12, i32 48, i32 169)
%14 = trunc i64 %13 to i32
%15 = shl i32 %14, 8
%16 = or i32 %11, %15
%17 = load i32, i32* %2
%18 = call i64 @_MULxPOW(i32 %17, i32 239, i32 169)
%19 = trunc i64 %18 to i32
%20 = or i32 %16, %19
ret i32 %20
}

LLVM IR (-O2):
define i32 @_MULalpha(i32 %0) {
%2 = tail call i64 @_MULxPOW(i32 %0, i32 23, i32 169)
%3 = trunc i64 %2 to i32
%4 = shl i32 %3, 24
%5 = tail call i64 @_MULxPOW(i32 %0, i32 245, i32 169)
%6 = trunc i64 %5 to i32
%7 = shl i32 %6, 16
%8 = or i32 %7, %4
%9 = tail call i64 @_MULxPOW(i32 %0, i32 48, i32 169)
%10 = trunc i64 %9 to i32
%11 = shl i32 %10, 8
%12 = or i32 %8, %11
%13 = tail call i64 @_MULxPOW(i32 %0, i32 239, i32 169)
%14 = trunc i64 %13 to i32
%15 = or i32 %12, %14
ret i32 %15
}