//
// SSL_get1_session from 0xfc4c14 to 0xfc4c54 (64 bytes)
//
// 2 xrefs:
// > sub_E2C94C @ 0xe2cd18
// > ??> @ 0x80e18
//
// 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_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;
}