//
// SSL_get1_session from 0xd468c0 to 0xd46900 (64 bytes)
//
// 2 xrefs:
// > sub_BB678C @ 0xbb6b58
// > ??> @ 0x5e488
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall SSL_get1_session(__int64 a1)
{
__int64 v2; // x20
CRYPTO_THREAD_read_lock(*(_QWORD *)(a1 + 4432));
v2 = *(_QWORD *)(a1 + 376);
if ( v2 )
SSL_SESSION_up_ref(*(_QWORD *)(a1 + 376));
CRYPTO_THREAD_unlock(*(_QWORD *)(a1 + 4432));
return v2;
}