//
// ssl_clear_bad_session from 0x9b3618 to 0x9b3678 (96 bytes)
//
// 4 xrefs:
// > SSL_free @ 0x9aebb0
// > SSL_clear @ 0x9aee94
// > SSL_set_session @ 0x9b3684
// > ??> @ 0x75eac
//
// 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:58 +0000
//
int __fastcall ssl_clear_bad_session(int a1)
{
if ( !*(_DWORD *)(a1 + 240) || (*(_DWORD *)(a1 + 40) & 1) != 0 )
return 0;
if ( SSL_in_init(a1) || SSL_in_before(a1) )
return 0;
SSL_CTX_remove_session(*(_DWORD **)(a1 + 444), *(_DWORD **)(a1 + 240));
return 1;
}