#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 */

/* Variables and functions */
int /*<<< orphan*/ memcpy(unsigned char *, unsigned char const *, int);
int /*<<< orphan*/ shake256(unsigned char *, int, unsigned char *, int);
void com_0(unsigned char *c, const unsigned char *inn,
           const unsigned char *inn2, const unsigned char *inm) {
  unsigned char buffer[2 * ((48 * 5) >> 3) + ((48 * 5) >> 3)];
  memcpy(buffer, inn, ((48 * 5) >> 3));
  memcpy(buffer + ((48 * 5) >> 3), inn2, ((48 * 5) >> 3));
  memcpy(buffer + 2 * ((48 * 5) >> 3), inm, ((48 * 5) >> 3));
  shake256(c, 32, buffer, 2 * ((48 * 5) >> 3) + ((48 * 5) >> 3));
}


x86 assembly (clang, -O0):
<com_0>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
lea    -0x80(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    $0x1e,%edx
call   1030 <memcpy@plt>
lea    -0x80(%rbp),%rdi
add    $0x1e,%rdi
mov    -0x18(%rbp),%rsi
mov    $0x1e,%edx
call   1030 <memcpy@plt>
lea    -0x80(%rbp),%rdi
add    $0x3c,%rdi
mov    -0x20(%rbp),%rsi
mov    $0x1e,%edx
call   1030 <memcpy@plt>
mov    -0x8(%rbp),%rdi
lea    -0x80(%rbp),%rdx
mov    $0x20,%esi
mov    $0x5a,%ecx
call   1040 <shake256@plt>
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<com_0>:
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x68,%rsp
mov    %rcx,%r14
mov    %rdx,%rbx
mov    %rdi,%r15
mov    %rsp,%r12
mov    %r12,%rdi
mov    $0x1e,%edx
call   1030 <memcpy@plt>
lea    0x1e(%rsp),%rdi
mov    %rbx,%rsi
mov    $0x1e,%edx
call   1030 <memcpy@plt>
lea    0x3c(%rsp),%rdi
mov    %r14,%rsi
mov    $0x1e,%edx
call   1030 <memcpy@plt>
mov    %r15,%rdi
mov    $0x20,%esi
mov    %r12,%rdx
mov    $0x5a,%ecx
call   1040 <shake256@plt>
add    $0x68,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
define void @com_0(i8* %0, i8* %1, i8* %2, i8* %3) {
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca [90 x i8]
store i8* %0, i8** %5
store i8* %1, i8** %6
store i8* %2, i8** %7
store i8* %3, i8** %8
%10 = getelementptr inbounds [90 x i8], [90 x i8]* %9, i64 0, i64 0
%11 = load i8*, i8** %6
%12 = call i32 @memcpy(i8* %10, i8* %11, i32 30)
%13 = getelementptr inbounds [90 x i8], [90 x i8]* %9, i64 0, i64 0
%14 = getelementptr inbounds i8, i8* %13, i64 30
%15 = load i8*, i8** %7
%16 = call i32 @memcpy(i8* %14, i8* %15, i32 30)
%17 = getelementptr inbounds [90 x i8], [90 x i8]* %9, i64 0, i64 0
%18 = getelementptr inbounds i8, i8* %17, i64 60
%19 = load i8*, i8** %8
%20 = call i32 @memcpy(i8* %18, i8* %19, i32 30)
%21 = load i8*, i8** %5
%22 = getelementptr inbounds [90 x i8], [90 x i8]* %9, i64 0, i64 0
%23 = call i32 @shake256(i8* %21, i32 32, i8* %22, i32 90)
ret void
}

LLVM IR (-O2):
define void @com_0(i8* %0, i8* %1, i8* %2, i8* %3) {
%5 = alloca [90 x i8]
%6 = getelementptr inbounds [90 x i8], [90 x i8]* %5, i64 0, i64 0
%7 = call i32 @memcpy(i8* %6, i8* %1, i32 30)
%8 = getelementptr inbounds [90 x i8], [90 x i8]* %5, i64 0, i64 30
%9 = call i32 @memcpy(i8* %8, i8* %2, i32 30)
%10 = getelementptr inbounds [90 x i8], [90 x i8]* %5, i64 0, i64 60
%11 = call i32 @memcpy(i8* %10, i8* %3, i32 30)
%12 = call i32 @shake256(i8* %0, i32 32, i8* %6, i32 90)
ret void
}