//
// ssl_clear_bad_session from 0xfc5654 to 0xfc56ac (88 bytes)
//
// 4 xrefs:
// > SSL_free @ 0xfc0e14
// > SSL_clear @ 0xfc10e4
// > SSL_set_session @ 0xfc56c0
// > ??> @ 0xc6b20
//
// 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:23 +0000
//
__int64 __fastcall ssl_clear_bad_session(__int64 a1)
{
if ( !*(_QWORD *)(a1 + 376)
|| (*(_DWORD *)(a1 + 68) & 1) != 0
|| (unsigned int)SSL_in_init(a1)
|| (unsigned int)SSL_in_before(a1) )
{
return 0;
}
SSL_CTX_remove_session(*(_QWORD **)(a1 + 720), *(_QWORD *)(a1 + 376));
return 1;
}