//
// BIO_ssl_copy_session_id from 0x99b2dc to 0x99b354 (120 bytes)
//
// 1 xrefs:
// > ??> @ 0x73a0c
//
// 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:44 +0000
//
bool __fastcall BIO_ssl_copy_session_id(int a1, int a2)
{
int type; // r5
int v4; // r0
bool v5; // zf
int v6; // r4
_DWORD *data; // r5
_DWORD *v9; // r0
type = BIO_find_type(a1, 519);
v4 = BIO_find_type(a2, 519);
v5 = type == 0;
if ( type )
v5 = v4 == 0;
v6 = v4;
if ( !v5 && (data = (_DWORD *)BIO_get_data(type), v9 = (_DWORD *)BIO_get_data(v6), *data && *v9) )
return SSL_copy_session_id(*data) != 0;
else
return 0;
}