#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 */
typedef struct TYPE_3__ TYPE_1__;

/* Type definitions */
typedef int /*<<< orphan*/ X509_REQ;
typedef int /*<<< orphan*/ X509_CRL;
struct TYPE_3__ {
  int flags;
  int /*<<< orphan*/ *subject_req;
  int /*<<< orphan*/ *crl;
  int /*<<< orphan*/ *subject_cert;
  int /*<<< orphan*/ *issuer_cert;
};
typedef TYPE_1__ X509V3_CTX;
typedef int /*<<< orphan*/ X509;

/* Variables and functions */
void X509V3_set_ctx(X509V3_CTX *ctx, X509 *issuer, X509 *subj, X509_REQ *req,
                    X509_CRL *crl, int flags) {
  ctx->issuer_cert = issuer;
  ctx->subject_cert = subj;
  ctx->crl = crl;
  ctx->subject_req = req;
  ctx->flags = flags;
}


x86 assembly (clang, -O0):
<X509V3_set_ctx>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9d,-0x2c(%rbp)
mov    -0x10(%rbp),%rcx
mov    -0x8(%rbp),%rax
mov    %rcx,0x20(%rax)
mov    -0x18(%rbp),%rcx
mov    -0x8(%rbp),%rax
mov    %rcx,0x18(%rax)
mov    -0x28(%rbp),%rcx
mov    -0x8(%rbp),%rax
mov    %rcx,0x10(%rax)
mov    -0x20(%rbp),%rcx
mov    -0x8(%rbp),%rax
mov    %rcx,0x8(%rax)
mov    -0x2c(%rbp),%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<X509V3_set_ctx>:
mov    %rsi,0x20(%rdi)
mov    %rdx,0x18(%rdi)
mov    %r8,0x10(%rdi)
mov    %rcx,0x8(%rdi)
mov    %r9d,(%rdi)
ret

LLVM IR (-O0):
%struct.TYPE_3__ = type { i32, i32*, i32*, i32*, i32* }
define void @X509V3_set_ctx(%struct.TYPE_3__* %0, i32* %1, i32* %2, i32* %3, i32* %4, i32 %5) {
%7 = alloca %struct.TYPE_3__*
%8 = alloca i32*
%9 = alloca i32*
%10 = alloca i32*
%11 = alloca i32*
%12 = alloca i32
store %struct.TYPE_3__* %0, %struct.TYPE_3__** %7
store i32* %1, i32** %8
store i32* %2, i32** %9
store i32* %3, i32** %10
store i32* %4, i32** %11
store i32 %5, i32* %12
%13 = load i32*, i32** %8
%14 = load %struct.TYPE_3__*, %struct.TYPE_3__** %7
%15 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %14, i32 0, i32 4
store i32* %13, i32** %15
%16 = load i32*, i32** %9
%17 = load %struct.TYPE_3__*, %struct.TYPE_3__** %7
%18 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %17, i32 0, i32 3
store i32* %16, i32** %18
%19 = load i32*, i32** %11
%20 = load %struct.TYPE_3__*, %struct.TYPE_3__** %7
%21 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %20, i32 0, i32 2
store i32* %19, i32** %21
%22 = load i32*, i32** %10
%23 = load %struct.TYPE_3__*, %struct.TYPE_3__** %7
%24 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %23, i32 0, i32 1
store i32* %22, i32** %24
%25 = load i32, i32* %12
%26 = load %struct.TYPE_3__*, %struct.TYPE_3__** %7
%27 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %26, i32 0, i32 0
store i32 %25, i32* %27
ret void
}

LLVM IR (-O2):
%struct.TYPE_3__ = type { i32, i32*, i32*, i32*, i32* }
define void @X509V3_set_ctx(%struct.TYPE_3__* nocapture writeonly %0, i32* %1, i32* %2, i32* %3, i32* %4, i32 %5) {
%7 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %0, i64 0, i32 4
store i32* %1, i32** %7
%8 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %0, i64 0, i32 3
store i32* %2, i32** %8
%9 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %0, i64 0, i32 2
store i32* %4, i32** %9
%10 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %0, i64 0, i32 1
store i32* %3, i32** %10
%11 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %0, i64 0, i32 0
store i32 %5, i32* %11
ret void
}