//
// BIO_ssl_copy_session_id from 0xd30020 to 0xd300a4 (132 bytes)
//
// 1 xrefs:
// > ??> @ 0x724b0
//
// 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
//
bool __fastcall BIO_ssl_copy_session_id(__int64 a1, __int64 a2)
{
__int64 type; // x20
__int64 v4; // x19
_QWORD *data; // x20
_QWORD *v6; // x0
type = BIO_find_type(a1, 519);
v4 = BIO_find_type(a2, 519);
if ( v4 && type && (data = (_QWORD *)BIO_get_data(type), v6 = (_QWORD *)BIO_get_data(v4), *data) && *v6 )
return (unsigned int)SSL_copy_session_id(*data) != 0;
else
return 0;
}