//
// SSL_get_servername_type from 0xd40f9c to 0xd40fcc (48 bytes)
//
// 1 xrefs:
// > ??> @ 0x9a7d0
//
// 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_get_servername_type(__int64 a1)
{
__int64 v1; // x1
__int64 v2; // x2
__int64 result; // x0
v1 = *(_QWORD *)(a1 + 376);
if ( !v1 )
return 0xFFFFFFFFLL;
v2 = *(_QWORD *)(a1 + 552);
result = 0;
if ( !v2 )
{
if ( *(_QWORD *)(v1 + 264) )
return 0;
else
return 0xFFFFFFFFLL;
}
return result;
}