#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 */
void CRYPTO_get_mem_debug_functions(
    void (**m)(void *, int, const char *, int, int),
    void (**r)(void *, void *, int, const char *, int, int),
    void (**f)(void *, int), void (**so)(long), long (**go)(void)) {
  if (m != NULL)
    *m = NULL;
  if (r != NULL)
    *r = NULL;
  if (f != NULL)
    *f = NULL;
  if (so != NULL)
    *so = NULL;
  if (go != NULL)
    *go = NULL;
}


x86 assembly (clang, -O0):
<CRYPTO_get_mem_debug_functions>:
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)
cmpq   $0x0,-0x8(%rbp)
je     112e <CRYPTO_get_mem_debug_functions+0x2e>
mov    -0x8(%rbp),%rax
movq   $0x0,(%rax)
cmpq   $0x0,-0x10(%rbp)
je     1144 <CRYPTO_get_mem_debug_functions+0x44>
mov    -0x10(%rbp),%rax
movq   $0x0,(%rax)
cmpq   $0x0,-0x18(%rbp)
je     115a <CRYPTO_get_mem_debug_functions+0x5a>
mov    -0x18(%rbp),%rax
movq   $0x0,(%rax)
cmpq   $0x0,-0x20(%rbp)
je     1170 <CRYPTO_get_mem_debug_functions+0x70>
mov    -0x20(%rbp),%rax
movq   $0x0,(%rax)
cmpq   $0x0,-0x28(%rbp)
je     1186 <CRYPTO_get_mem_debug_functions+0x86>
mov    -0x28(%rbp),%rax
movq   $0x0,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<CRYPTO_get_mem_debug_functions>:
test   %rdi,%rdi
je     110c <CRYPTO_get_mem_debug_functions+0xc>
movq   $0x0,(%rdi)
test   %rsi,%rsi
je     1118 <CRYPTO_get_mem_debug_functions+0x18>
movq   $0x0,(%rsi)
test   %rdx,%rdx
je     1124 <CRYPTO_get_mem_debug_functions+0x24>
movq   $0x0,(%rdx)
test   %rcx,%rcx
je     1130 <CRYPTO_get_mem_debug_functions+0x30>
movq   $0x0,(%rcx)
test   %r8,%r8
je     113c <CRYPTO_get_mem_debug_functions+0x3c>
movq   $0x0,(%r8)
ret

LLVM IR (-O0):
define void @CRYPTO_get_mem_debug_functions(void (i8*, i32, i8*, i32, i32)** %0, void (i8*, i8*, i32, i8*, i32, i32)** %1, void (i8*, i32)** %2, void (i64)** %3, i64 ()** %4) {
%6 = alloca void (i8*, i32, i8*, i32, i32)**
%7 = alloca void (i8*, i8*, i32, i8*, i32, i32)**
%8 = alloca void (i8*, i32)**
%9 = alloca void (i64)**
%10 = alloca i64 ()**
store void (i8*, i32, i8*, i32, i32)** %0, void (i8*, i32, i8*, i32, i32)*** %6
store void (i8*, i8*, i32, i8*, i32, i32)** %1, void (i8*, i8*, i32, i8*, i32, i32)*** %7
store void (i8*, i32)** %2, void (i8*, i32)*** %8
store void (i64)** %3, void (i64)*** %9
store i64 ()** %4, i64 ()*** %10
%11 = load void (i8*, i32, i8*, i32, i32)**, void (i8*, i32, i8*, i32, i32)*** %6
%12 = icmp ne void (i8*, i32, i8*, i32, i32)** %11, null
br i1 %12, label %13, label %15
13: ; preds = %5
%14 = load void (i8*, i32, i8*, i32, i32)**, void (i8*, i32, i8*, i32, i32)*** %6
store void (i8*, i32, i8*, i32, i32)* null, void (i8*, i32, i8*, i32, i32)** %14
br label %15
15: ; preds = %13, %5
%16 = load void (i8*, i8*, i32, i8*, i32, i32)**, void (i8*, i8*, i32, i8*, i32, i32)*** %7
%17 = icmp ne void (i8*, i8*, i32, i8*, i32, i32)** %16, null
br i1 %17, label %18, label %20
18: ; preds = %15
%19 = load void (i8*, i8*, i32, i8*, i32, i32)**, void (i8*, i8*, i32, i8*, i32, i32)*** %7
store void (i8*, i8*, i32, i8*, i32, i32)* null, void (i8*, i8*, i32, i8*, i32, i32)** %19
br label %20
20: ; preds = %18, %15
%21 = load void (i8*, i32)**, void (i8*, i32)*** %8
%22 = icmp ne void (i8*, i32)** %21, null
br i1 %22, label %23, label %25
23: ; preds = %20
%24 = load void (i8*, i32)**, void (i8*, i32)*** %8
store void (i8*, i32)* null, void (i8*, i32)** %24
br label %25
25: ; preds = %23, %20
%26 = load void (i64)**, void (i64)*** %9
%27 = icmp ne void (i64)** %26, null
br i1 %27, label %28, label %30
28: ; preds = %25
%29 = load void (i64)**, void (i64)*** %9
store void (i64)* null, void (i64)** %29
br label %30
30: ; preds = %28, %25
%31 = load i64 ()**, i64 ()*** %10
%32 = icmp ne i64 ()** %31, null
br i1 %32, label %33, label %35
33: ; preds = %30
%34 = load i64 ()**, i64 ()*** %10
store i64 ()* null, i64 ()** %34
br label %35
35: ; preds = %33, %30
ret void
}

LLVM IR (-O2):
define void @CRYPTO_get_mem_debug_functions(void (i8*, i32, i8*, i32, i32)** writeonly %0, void (i8*, i8*, i32, i8*, i32, i32)** writeonly %1, void (i8*, i32)** writeonly %2, void (i64)** writeonly %3, i64 ()** writeonly %4) {
%6 = icmp eq void (i8*, i32, i8*, i32, i32)** %0, null
br i1 %6, label %8, label %7
7: ; preds = %5
store void (i8*, i32, i8*, i32, i32)* null, void (i8*, i32, i8*, i32, i32)** %0
br label %8
8: ; preds = %7, %5
%9 = icmp eq void (i8*, i8*, i32, i8*, i32, i32)** %1, null
br i1 %9, label %11, label %10
10: ; preds = %8
store void (i8*, i8*, i32, i8*, i32, i32)* null, void (i8*, i8*, i32, i8*, i32, i32)** %1
br label %11
11: ; preds = %10, %8
%12 = icmp eq void (i8*, i32)** %2, null
br i1 %12, label %14, label %13
13: ; preds = %11
store void (i8*, i32)* null, void (i8*, i32)** %2
br label %14
14: ; preds = %13, %11
%15 = icmp eq void (i64)** %3, null
br i1 %15, label %17, label %16
16: ; preds = %14
store void (i64)* null, void (i64)** %3
br label %17
17: ; preds = %16, %14
%18 = icmp eq i64 ()** %4, null
br i1 %18, label %20, label %19
19: ; preds = %17
store i64 ()* null, i64 ()** %4
br label %20
20: ; preds = %19, %17
ret void
}