//
// SSL_get0_dane_authority from 0xd3ebf0 to 0xd3ec80 (144 bytes)
//
// 1 xrefs:
// > ??> @ 0xb0be0
//
// 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_get0_dane_authority(__int64 a1, _QWORD *a2, _QWORD *a3)
{
__int64 v3; // x20
__int64 v7; // x0
v3 = a1 + 192;
if ( a1 == -192 || (int)OPENSSL_sk_num(*(_QWORD *)(a1 + 200)) <= 0 || *(_QWORD *)(a1 + 456) )
return 0xFFFFFFFFLL;
if ( *(_QWORD *)(v3 + 24) )
{
if ( a2 )
*a2 = *(_QWORD *)(v3 + 32);
if ( a3 )
{
v7 = 0;
if ( !*(_QWORD *)(v3 + 32) )
v7 = *(_QWORD *)(*(_QWORD *)(v3 + 24) + 24LL);
*a3 = v7;
}
}
return *(unsigned int *)(v3 + 44);
}