#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*/ funcLSX(unsigned char *, unsigned char *, unsigned char *);
int /*<<< orphan*/ funcX(unsigned char *, unsigned char *, unsigned char *);
int /*<<< orphan*/ memcpy(unsigned char *, unsigned char *, int);
void funcF(unsigned char *inputKey, unsigned char *inputKeySecond,
           unsigned char *iterationConst, unsigned char *outputKey,
           unsigned char *outputKeySecond) {
  unsigned char temp1[16] = {0};
  unsigned char temp2[16] = {0};
  funcLSX(inputKey, iterationConst, temp1);
  funcX(temp1, inputKeySecond, temp2);
  memcpy(outputKeySecond, inputKey, 16);
  memcpy(outputKey, temp2, 16);
}


x86 assembly (clang, -O0):
<funcF>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
lea    -0x40(%rbp),%rdi
xor    %esi,%esi
mov    $0x10,%edx
call   1040 <memset@plt>
lea    -0x50(%rbp),%rdi
xor    %esi,%esi
mov    $0x10,%edx
call   1040 <memset@plt>
mov    -0x8(%rbp),%rdi
mov    -0x18(%rbp),%rsi
lea    -0x40(%rbp),%rdx
call   1030 <funcLSX@plt>
lea    -0x40(%rbp),%rdi
mov    -0x10(%rbp),%rsi
lea    -0x50(%rbp),%rdx
call   1060 <funcX@plt>
mov    -0x28(%rbp),%rdi
mov    -0x8(%rbp),%rsi
mov    $0x10,%edx
call   1050 <memcpy@plt>
mov    -0x20(%rbp),%rdi
lea    -0x50(%rbp),%rsi
mov    $0x10,%edx
call   1050 <memcpy@plt>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<funcF>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %r8,%r15
mov    %rcx,%r14
mov    %rsi,%r12
mov    %rdi,%rbx
xorps  %xmm0,%xmm0
movaps %xmm0,0x10(%rsp)
movaps %xmm0,(%rsp)
lea    0x10(%rsp),%r13
mov    %rdx,%rsi
mov    %r13,%rdx
call   1030 <funcLSX@plt>
mov    %rsp,%rbp
mov    %r13,%rdi
mov    %r12,%rsi
mov    %rbp,%rdx
call   1050 <funcX@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
mov    $0x10,%edx
call   1040 <memcpy@plt>
mov    %r14,%rdi
mov    %rbp,%rsi
mov    $0x10,%edx
call   1040 <memcpy@plt>
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @funcF(i8* %0, i8* %1, i8* %2, i8* %3, i8* %4) {
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca i8*
%10 = alloca i8*
%11 = alloca [16 x i8]
%12 = alloca [16 x i8]
store i8* %0, i8** %6
store i8* %1, i8** %7
store i8* %2, i8** %8
store i8* %3, i8** %9
store i8* %4, i8** %10
%13 = bitcast [16 x i8]* %11 to i8*
%14 = bitcast [16 x i8]* %12 to i8*
%15 = load i8*, i8** %6
%16 = load i8*, i8** %8
%17 = getelementptr inbounds [16 x i8], [16 x i8]* %11, i64 0, i64 0
%18 = call i32 @funcLSX(i8* %15, i8* %16, i8* %17)
%19 = getelementptr inbounds [16 x i8], [16 x i8]* %11, i64 0, i64 0
%20 = load i8*, i8** %7
%21 = getelementptr inbounds [16 x i8], [16 x i8]* %12, i64 0, i64 0
%22 = call i32 @funcX(i8* %19, i8* %20, i8* %21)
%23 = load i8*, i8** %10
%24 = load i8*, i8** %6
%25 = call i32 @memcpy(i8* %23, i8* %24, i32 16)
%26 = load i8*, i8** %9
%27 = getelementptr inbounds [16 x i8], [16 x i8]* %12, i64 0, i64 0
%28 = call i32 @memcpy(i8* %26, i8* %27, i32 16)
ret void
}

LLVM IR (-O2):
define void @funcF(i8* %0, i8* %1, i8* %2, i8* %3, i8* %4) {
%6 = alloca [16 x i8]
%7 = alloca [16 x i8]
%8 = getelementptr inbounds [16 x i8], [16 x i8]* %6, i64 0, i64 0
%9 = getelementptr inbounds [16 x i8], [16 x i8]* %7, i64 0, i64 0
%10 = call i32 @funcLSX(i8* %0, i8* %2, i8* %8)
%11 = call i32 @funcX(i8* %8, i8* %1, i8* %9)
%12 = call i32 @memcpy(i8* %4, i8* %0, i32 16)
%13 = call i32 @memcpy(i8* %3, i8* %9, i32 16)
ret void
}