//
// SSL_get0_dane_authority from 0x795ef8 to 0x795f7c (132 bytes)
//
// 1 xrefs:
// > ??> @ 0x5b97c
//
// 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
//
int __fastcall SSL_get0_dane_authority(_DWORD *a1, _DWORD *a2, _DWORD *a3)
{
int v6; // r3
bool v7; // zf
int v8; // r3
if ( a1 == (_DWORD *)-128 )
return -1;
if ( OPENSSL_sk_num(a1[33]) <= 0 || a1[71] )
return -1;
if ( a1[35] )
{
if ( a2 )
*a2 = a1[36];
if ( a3 )
{
v6 = a1[36];
v7 = v6 == 0;
if ( v6 )
v8 = 0;
else
v8 = a1[35];
if ( v7 )
v8 = *(_DWORD *)(v8 + 12);
*a3 = v8;
}
}
return a1[38];
}