//
// sub_99A660 from 0x99a660 to 0x99a6f0 (144 bytes)
//
// 1 xrefs:
// > ??> @ 0xc76110
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:06:44 +0000
//
int __fastcall sub_99A660(int a1)
{
_DWORD *data; // r5
if ( !a1 )
return 0;
data = (_DWORD *)BIO_get_data();
if ( *data )
SSL_shutdown(*data);
if ( BIO_get_shutdown(a1) )
{
if ( BIO_get_init(a1) )
SSL_free(*data);
BIO_clear_flags(a1, -1);
BIO_set_init(a1, 0);
}
CRYPTO_free(data, "ssl/bio_ssl.c", 85);
return 1;
}