#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*/ COMP_zlib_cleanup();
int /*<<< orphan*/ CONF_modules_unload(int);
int /*<<< orphan*/ CRYPTO_cleanup_all_ex_data();
int /*<<< orphan*/ ENGINE_cleanup();
int /*<<< orphan*/ ERR_free_strings();
int /*<<< orphan*/ ERR_remove_thread_state(int /*<<< orphan*/ *);
int /*<<< orphan*/ EVP_cleanup();
int /*<<< orphan*/ OBJ_cleanup();
int /*<<< orphan*/ RAND_cleanup();
int /*<<< orphan*/ destroy_ui_method();
void openssl_shutdown(void) {
  CONF_modules_unload(1);
  destroy_ui_method();
  OBJ_cleanup();
  EVP_cleanup();
  ENGINE_cleanup();
  CRYPTO_cleanup_all_ex_data();
  ERR_remove_thread_state(NULL);
  RAND_cleanup();
  ERR_free_strings();
  COMP_zlib_cleanup();
}


x86 assembly (clang, -O0):
<openssl_shutdown>:
push   %rbp
mov    %rsp,%rbp
mov    $0x1,%edi
call   1060 <CONF_modules_unload@plt>
mov    $0x0,%al
call   10c0 <destroy_ui_method@plt>
mov    $0x0,%al
call   1070 <OBJ_cleanup@plt>
mov    $0x0,%al
call   1080 <EVP_cleanup@plt>
mov    $0x0,%al
call   1050 <ENGINE_cleanup@plt>
mov    $0x0,%al
call   1040 <CRYPTO_cleanup_all_ex_data@plt>
xor    %eax,%eax
mov    %eax,%edi
call   1030 <ERR_remove_thread_state@plt>
mov    $0x0,%al
call   10a0 <RAND_cleanup@plt>
mov    $0x0,%al
call   1090 <ERR_free_strings@plt>
mov    $0x0,%al
call   10b0 <COMP_zlib_cleanup@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<openssl_shutdown>:
push   %rax
mov    $0x1,%edi
call   1060 <CONF_modules_unload@plt>
xor    %eax,%eax
call   10c0 <destroy_ui_method@plt>
xor    %eax,%eax
call   1070 <OBJ_cleanup@plt>
xor    %eax,%eax
call   1080 <EVP_cleanup@plt>
xor    %eax,%eax
call   1050 <ENGINE_cleanup@plt>
xor    %eax,%eax
call   1040 <CRYPTO_cleanup_all_ex_data@plt>
xor    %edi,%edi
call   1030 <ERR_remove_thread_state@plt>
xor    %eax,%eax
call   10a0 <RAND_cleanup@plt>
xor    %eax,%eax
call   1090 <ERR_free_strings@plt>
xor    %eax,%eax
pop    %rcx
jmp    10b0 <COMP_zlib_cleanup@plt>

LLVM IR (-O0):
define void @openssl_shutdown() {
%1 = call i32 @CONF_modules_unload(i32 1)
%2 = call i32 (...) @destroy_ui_method()
%3 = call i32 (...) @OBJ_cleanup()
%4 = call i32 (...) @EVP_cleanup()
%5 = call i32 (...) @ENGINE_cleanup()
%6 = call i32 (...) @CRYPTO_cleanup_all_ex_data()
%7 = call i32 @ERR_remove_thread_state(i32* null)
%8 = call i32 (...) @RAND_cleanup()
%9 = call i32 (...) @ERR_free_strings()
%10 = call i32 (...) @COMP_zlib_cleanup()
ret void
}

LLVM IR (-O2):
define void @openssl_shutdown() {
%1 = tail call i32 @CONF_modules_unload(i32 1)
%2 = tail call i32 (...) @destroy_ui_method()
%3 = tail call i32 (...) @OBJ_cleanup()
%4 = tail call i32 (...) @EVP_cleanup()
%5 = tail call i32 (...) @ENGINE_cleanup()
%6 = tail call i32 (...) @CRYPTO_cleanup_all_ex_data()
%7 = tail call i32 @ERR_remove_thread_state(i32* null)
%8 = tail call i32 (...) @RAND_cleanup()
%9 = tail call i32 (...) @ERR_free_strings()
%10 = tail call i32 (...) @COMP_zlib_cleanup()
ret void
}