//
// sub_FAD8B4 from 0xfad8b4 to 0xfad94c (152 bytes)
//
// 1 xrefs:
// > ??> @ 0x13fd530
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 13:15:09 +0000
//
__int64 __fastcall sub_FAD8B4(__int64 result)
{
__int64 v1; // x19
_QWORD *data; // x20
v1 = result;
if ( result )
{
data = (_QWORD *)BIO_get_data();
if ( *data )
SSL_shutdown(*data);
if ( (unsigned int)BIO_get_shutdown(v1) )
{
if ( (unsigned int)BIO_get_init(v1) )
SSL_free(*data);
BIO_clear_flags(v1, 0xFFFFFFFFLL);
BIO_set_init(v1, 0);
}
CRYPTO_free(data, "ssl/bio_ssl.c", 85);
return 1;
}
return result;
}