#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 uint8_t;
typedef int uint64_t;

/* Variables and functions */
void manipulate(uint8_t key[0x40]) {
  uint64_t temp = ((uint64_t)key[0x38]) << 56 | ((uint64_t)key[0x39]) << 48 |
                  ((uint64_t)key[0x3a]) << 40 | ((uint64_t)key[0x3b]) << 32 |
                  key[0x3c] << 24 | key[0x3d] << 16 | key[0x3e] << 8 |
                  key[0x3f];
  temp++;
  key[0x38] = (temp >> 56) & 0xff;
  key[0x39] = (temp >> 48) & 0xff;
  key[0x3a] = (temp >> 40) & 0xff;
  key[0x3b] = (temp >> 32) & 0xff;
  key[0x3c] = (temp >> 24) & 0xff;
  key[0x3d] = (temp >> 16) & 0xff;
  key[0x3e] = (temp >> 8) & 0xff;
  key[0x3f] = (temp >> 0) & 0xff;
}


x86 assembly (clang, -O0):
<manipulate>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    0xe0(%rax),%eax
mov    $0x38,%ecx
shl    %cl,%eax
mov    -0x8(%rbp),%rcx
mov    0xe4(%rcx),%edx
mov    $0x30,%ecx
shl    %cl,%edx
mov    %edx,%ecx
or     %ecx,%eax
mov    -0x8(%rbp),%rcx
mov    0xe8(%rcx),%edx
mov    $0x28,%ecx
shl    %cl,%edx
mov    %edx,%ecx
or     %ecx,%eax
mov    -0x8(%rbp),%rcx
mov    0xec(%rcx),%edx
mov    $0x20,%ecx
shl    %cl,%edx
mov    %edx,%ecx
or     %ecx,%eax
mov    -0x8(%rbp),%rcx
mov    0xf0(%rcx),%ecx
shl    $0x18,%ecx
or     %ecx,%eax
mov    -0x8(%rbp),%rcx
mov    0xf4(%rcx),%ecx
shl    $0x10,%ecx
or     %ecx,%eax
mov    -0x8(%rbp),%rcx
mov    0xf8(%rcx),%ecx
shl    $0x8,%ecx
or     %ecx,%eax
mov    -0x8(%rbp),%rcx
or     0xfc(%rcx),%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
mov    $0x38,%ecx
sar    %cl,%eax
mov    %eax,%ecx
and    $0xff,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0xe0(%rax)
mov    -0xc(%rbp),%eax
mov    $0x30,%ecx
sar    %cl,%eax
mov    %eax,%ecx
and    $0xff,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0xe4(%rax)
mov    -0xc(%rbp),%eax
mov    $0x28,%ecx
sar    %cl,%eax
mov    %eax,%ecx
and    $0xff,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0xe8(%rax)
mov    -0xc(%rbp),%eax
mov    $0x20,%ecx
sar    %cl,%eax
mov    %eax,%ecx
and    $0xff,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0xec(%rax)
mov    -0xc(%rbp),%ecx
sar    $0x18,%ecx
and    $0xff,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0xf0(%rax)
mov    -0xc(%rbp),%ecx
sar    $0x10,%ecx
and    $0xff,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0xf4(%rax)
mov    -0xc(%rbp),%ecx
sar    $0x8,%ecx
and    $0xff,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0xf8(%rax)
mov    -0xc(%rbp),%ecx
sar    $0x0,%ecx
and    $0xff,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0xfc(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<manipulate>:
ret

LLVM IR (-O0):
define void @manipulate(i32* %0) {
%2 = alloca i32*
%3 = alloca i32
store i32* %0, i32** %2
%4 = load i32*, i32** %2
%5 = getelementptr inbounds i32, i32* %4, i64 56
%6 = load i32, i32* %5
%7 = shl i32 %6, 56
%8 = load i32*, i32** %2
%9 = getelementptr inbounds i32, i32* %8, i64 57
%10 = load i32, i32* %9
%11 = shl i32 %10, 48
%12 = or i32 %7, %11
%13 = load i32*, i32** %2
%14 = getelementptr inbounds i32, i32* %13, i64 58
%15 = load i32, i32* %14
%16 = shl i32 %15, 40
%17 = or i32 %12, %16
%18 = load i32*, i32** %2
%19 = getelementptr inbounds i32, i32* %18, i64 59
%20 = load i32, i32* %19
%21 = shl i32 %20, 32
%22 = or i32 %17, %21
%23 = load i32*, i32** %2
%24 = getelementptr inbounds i32, i32* %23, i64 60
%25 = load i32, i32* %24
%26 = shl i32 %25, 24
%27 = or i32 %22, %26
%28 = load i32*, i32** %2
%29 = getelementptr inbounds i32, i32* %28, i64 61
%30 = load i32, i32* %29
%31 = shl i32 %30, 16
%32 = or i32 %27, %31
%33 = load i32*, i32** %2
%34 = getelementptr inbounds i32, i32* %33, i64 62
%35 = load i32, i32* %34
%36 = shl i32 %35, 8
%37 = or i32 %32, %36
%38 = load i32*, i32** %2
%39 = getelementptr inbounds i32, i32* %38, i64 63
%40 = load i32, i32* %39
%41 = or i32 %37, %40
store i32 %41, i32* %3
%42 = load i32, i32* %3
%43 = add nsw i32 %42, 1
store i32 %43, i32* %3
%44 = load i32, i32* %3
%45 = ashr i32 %44, 56
%46 = and i32 %45, 255
%47 = load i32*, i32** %2
%48 = getelementptr inbounds i32, i32* %47, i64 56
store i32 %46, i32* %48
%49 = load i32, i32* %3
%50 = ashr i32 %49, 48
%51 = and i32 %50, 255
%52 = load i32*, i32** %2
%53 = getelementptr inbounds i32, i32* %52, i64 57
store i32 %51, i32* %53
%54 = load i32, i32* %3
%55 = ashr i32 %54, 40
%56 = and i32 %55, 255
%57 = load i32*, i32** %2
%58 = getelementptr inbounds i32, i32* %57, i64 58
store i32 %56, i32* %58
%59 = load i32, i32* %3
%60 = ashr i32 %59, 32
%61 = and i32 %60, 255
%62 = load i32*, i32** %2
%63 = getelementptr inbounds i32, i32* %62, i64 59
store i32 %61, i32* %63
%64 = load i32, i32* %3
%65 = ashr i32 %64, 24
%66 = and i32 %65, 255
%67 = load i32*, i32** %2
%68 = getelementptr inbounds i32, i32* %67, i64 60
store i32 %66, i32* %68
%69 = load i32, i32* %3
%70 = ashr i32 %69, 16
%71 = and i32 %70, 255
%72 = load i32*, i32** %2
%73 = getelementptr inbounds i32, i32* %72, i64 61
store i32 %71, i32* %73
%74 = load i32, i32* %3
%75 = ashr i32 %74, 8
%76 = and i32 %75, 255
%77 = load i32*, i32** %2
%78 = getelementptr inbounds i32, i32* %77, i64 62
store i32 %76, i32* %78
%79 = load i32, i32* %3
%80 = ashr i32 %79, 0
%81 = and i32 %80, 255
%82 = load i32*, i32** %2
%83 = getelementptr inbounds i32, i32* %82, i64 63
store i32 %81, i32* %83
ret void
}

LLVM IR (-O2):
define void @manipulate(i32* nocapture %0) {
ret void
}