#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*/ ReadFile(unsigned long long, unsigned long long,
                            unsigned long long, unsigned long long,
                            unsigned long long, unsigned long long,
                            unsigned long long, unsigned long long);
void ReadFileWrapper(void *vargs) {
  unsigned long long *args = vargs;
  ReadFile(args[0], args[1], args[2], args[3], args[4], args[5], args[6],
           args[7]);
}


x86 assembly (clang, -O0):
<ReadFileWrapper>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rsi
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdx
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rcx
mov    -0x10(%rbp),%rax
mov    0x20(%rax),%r8
mov    -0x10(%rbp),%rax
mov    0x28(%rax),%r9
mov    -0x10(%rbp),%rax
mov    0x30(%rax),%r10
mov    -0x10(%rbp),%rax
mov    0x38(%rax),%rax
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
call   1030 <ReadFile@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ReadFileWrapper>:
sub    $0x18,%rsp
mov    (%rdi),%rax
mov    0x8(%rdi),%rsi
mov    0x10(%rdi),%rdx
mov    0x18(%rdi),%rcx
mov    0x20(%rdi),%r8
mov    0x28(%rdi),%r9
movups 0x30(%rdi),%xmm0
movups %xmm0,(%rsp)
mov    %rax,%rdi
call   1030 <ReadFile@plt>
add    $0x18,%rsp
ret

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

LLVM IR (-O2):
define void @ReadFileWrapper(i8* nocapture %0) {
%2 = bitcast i8* %0 to i64*
%3 = load i64, i64* %2
%4 = getelementptr inbounds i8, i8* %0, i64 8
%5 = bitcast i8* %4 to i64*
%6 = load i64, i64* %5
%7 = getelementptr inbounds i8, i8* %0, i64 16
%8 = bitcast i8* %7 to i64*
%9 = load i64, i64* %8
%10 = getelementptr inbounds i8, i8* %0, i64 24
%11 = bitcast i8* %10 to i64*
%12 = load i64, i64* %11
%13 = getelementptr inbounds i8, i8* %0, i64 32
%14 = bitcast i8* %13 to i64*
%15 = load i64, i64* %14
%16 = getelementptr inbounds i8, i8* %0, i64 40
%17 = bitcast i8* %16 to i64*
%18 = load i64, i64* %17
%19 = getelementptr inbounds i8, i8* %0, i64 48
%20 = bitcast i8* %19 to i64*
%21 = load i64, i64* %20
%22 = getelementptr inbounds i8, i8* %0, i64 56
%23 = bitcast i8* %22 to i64*
%24 = load i64, i64* %23
%25 = tail call i32 @ReadFile(i64 %3, i64 %6, i64 %9, i64 %12, i64 %15, i64 %18, i64 %21, i64 %24)
ret void
}