//
// SSL_SESSION_get_master_key from 0xfc0858 to 0xfc08c0 (104 bytes)
//
// 1 xrefs:
// > ??> @ 0xc2728
//
// 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:21 +0000
//
size_t __fastcall SSL_SESSION_get_master_key(__int64 a1, void *a2, unsigned __int64 a3)
{
size_t v3; // x19
LODWORD(v3) = *(_DWORD *)(a1 + 4);
if ( (v3 & 0x80000000) != 0 )
return 0;
if ( !a3 )
return (int)v3;
v3 = (int)v3;
if ( a3 <= (int)v3 )
v3 = a3;
memcpy(a2, (const void *)(a1 + 8), v3);
return v3;
}