#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__ OSA_MULxPOW(int /*<<< orphan*/, int, int);
uint32_t OSA_DIValpha(uint8_t c) {
  return ((((uint32_t)OSA_MULxPOW(c, 16, 0xa9)) << 24) |
          (((uint32_t)OSA_MULxPOW(c, 39, 0xa9)) << 16) |
          (((uint32_t)OSA_MULxPOW(c, 6, 0xa9)) << 8) |
          (((uint32_t)OSA_MULxPOW(c, 64, 0xa9))));
}


x86 assembly (clang, -O0):
<OSA_DIValpha>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
mov    $0x10,%esi
mov    $0xa9,%edx
call   1030 <OSA_MULxPOW@plt>
shl    $0x18,%eax
mov    %eax,-0x10(%rbp)
mov    -0x4(%rbp),%edi
mov    $0x27,%esi
mov    $0xa9,%edx
call   1030 <OSA_MULxPOW@plt>
mov    %rax,%rcx
mov    -0x10(%rbp),%eax
shl    $0x10,%ecx
or     %ecx,%eax
mov    %eax,-0xc(%rbp)
mov    -0x4(%rbp),%edi
mov    $0x6,%esi
mov    $0xa9,%edx
call   1030 <OSA_MULxPOW@plt>
mov    %rax,%rcx
mov    -0xc(%rbp),%eax
shl    $0x8,%ecx
or     %ecx,%eax
mov    %eax,-0x8(%rbp)
mov    -0x4(%rbp),%edi
mov    $0x40,%esi
mov    $0xa9,%edx
call   1030 <OSA_MULxPOW@plt>
mov    %rax,%rcx
mov    -0x8(%rbp),%eax
or     %ecx,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<OSA_DIValpha>:
push   %rbp
push   %r14
push   %rbx
mov    %edi,%r14d
mov    $0x10,%esi
mov    $0xa9,%edx
call   1030 <OSA_MULxPOW@plt>
mov    %rax,%rbx
shl    $0x18,%ebx
mov    %r14d,%edi
mov    $0x27,%esi
mov    $0xa9,%edx
call   1030 <OSA_MULxPOW@plt>
mov    %rax,%rbp
shl    $0x10,%ebp
or     %ebx,%ebp
mov    %r14d,%edi
mov    $0x6,%esi
mov    $0xa9,%edx
call   1030 <OSA_MULxPOW@plt>
mov    %rax,%rbx
shl    $0x8,%ebx
mov    %r14d,%edi
mov    $0x40,%esi
mov    $0xa9,%edx
call   1030 <OSA_MULxPOW@plt>
or     %ebx,%eax
or     %ebp,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
define i32 @OSA_DIValpha(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i64 @OSA_MULxPOW(i32 %3, i32 16, i32 169)
%5 = trunc i64 %4 to i32
%6 = shl i32 %5, 24
%7 = load i32, i32* %2
%8 = call i64 @OSA_MULxPOW(i32 %7, i32 39, 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 @OSA_MULxPOW(i32 %12, i32 6, 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 @OSA_MULxPOW(i32 %17, i32 64, i32 169)
%19 = trunc i64 %18 to i32
%20 = or i32 %16, %19
ret i32 %20
}

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