//
// SSL_get0_alpn_selected from 0x79863c to 0x79867c (64 bytes)
//
// 2 xrefs:
// > sub_641F78 @ 0x642142
// > ??> @ 0x54bfc
//
// 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_alpn_selected(int result, _DWORD *a2, _DWORD *a3)
{
int v3; // r3
int v4; // r3
*a2 = 0;
v3 = *(_DWORD *)(result + 104);
if ( v3 && (v4 = *(_DWORD *)(v3 + 840), (*a2 = v4) != 0) )
*a3 = *(_DWORD *)(*(_DWORD *)(result + 104) + 844);
else
*a3 = 0;
return result;
}