#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 */
struct rsp_loadinfo {
  int dummy;
};
struct rsp_addrinfo {
  int dummy;
};

/* Variables and functions */
unsigned int rsp_pe_registration_tags(unsigned char const *, size_t const,
                                      struct rsp_addrinfo *,
                                      struct rsp_loadinfo const *,
                                      unsigned int const, int const,
                                      int /*<<< orphan*/ *);
unsigned int rsp_pe_registration(const unsigned char *poolHandle,
                                 const size_t poolHandleSize,
                                 struct rsp_addrinfo *rspAddrInfo,
                                 const struct rsp_loadinfo *rspLoadInfo,
                                 const unsigned int registrationLife,
                                 const int flags) {
  return (rsp_pe_registration_tags(poolHandle, poolHandleSize, rspAddrInfo,
                                   rspLoadInfo, registrationLife, flags, NULL));
}


x86 assembly (clang, -O0):
<rsp_pe_registration>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8d,-0x24(%rbp)
mov    %r9d,-0x28(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x20(%rbp),%rcx
mov    -0x24(%rbp),%r8d
mov    -0x28(%rbp),%r9d
xor    %eax,%eax
movq   $0x0,(%rsp)
call   1030 <rsp_pe_registration_tags@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<rsp_pe_registration>:
push   %rax
movq   $0x0,(%rsp)
call   1030 <rsp_pe_registration_tags@plt>
pop    %rcx
ret

LLVM IR (-O0):
%struct.rsp_addrinfo = type { i32 }
%struct.rsp_loadinfo = type { i32 }
define i32 @rsp_pe_registration(i8* %0, i64 %1, %struct.rsp_addrinfo* %2, %struct.rsp_loadinfo* %3, i32 %4, i32 %5) {
%7 = alloca i8*
%8 = alloca i64
%9 = alloca %struct.rsp_addrinfo*
%10 = alloca %struct.rsp_loadinfo*
%11 = alloca i32
%12 = alloca i32
store i8* %0, i8** %7
store i64 %1, i64* %8
store %struct.rsp_addrinfo* %2, %struct.rsp_addrinfo** %9
store %struct.rsp_loadinfo* %3, %struct.rsp_loadinfo** %10
store i32 %4, i32* %11
store i32 %5, i32* %12
%13 = load i8*, i8** %7
%14 = load i64, i64* %8
%15 = load %struct.rsp_addrinfo*, %struct.rsp_addrinfo** %9
%16 = load %struct.rsp_loadinfo*, %struct.rsp_loadinfo** %10
%17 = load i32, i32* %11
%18 = load i32, i32* %12
%19 = call i32 @rsp_pe_registration_tags(i8* %13, i64 %14, %struct.rsp_addrinfo* %15, %struct.rsp_loadinfo* %16, i32 %17, i32 %18, i32* null)
ret i32 %19
}

LLVM IR (-O2):
%struct.rsp_addrinfo = type { i32 }
%struct.rsp_loadinfo = type { i32 }
define i32 @rsp_pe_registration(i8* %0, i64 %1, %struct.rsp_addrinfo* %2, %struct.rsp_loadinfo* %3, i32 %4, i32 %5) {
%7 = tail call i32 @rsp_pe_registration_tags(i8* %0, i64 %1, %struct.rsp_addrinfo* %2, %struct.rsp_loadinfo* %3, i32 %4, i32 %5, i32* null)
ret i32 %7
}