//
// SSL_get0_alpn_selected from 0xfbf56c to 0xfbf5a0 (52 bytes)
//
// 2 xrefs:
// > sub_E2B320 @ 0xe2b5e0
// > ??> @ 0x7b898
//
// 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:20 +0000
//
__int64 __fastcall SSL_get0_alpn_selected(__int64 a1, _QWORD *a2, _DWORD *a3)
{
__int64 v3; // x3
__int64 v4; // x3
__int64 result; // x0
*a2 = 0;
v3 = *(_QWORD *)(a1 + 144);
if ( v3 && (v4 = *(_QWORD *)(v3 + 976), (*a2 = v4) != 0) )
{
result = *(unsigned int *)(*(_QWORD *)(a1 + 144) + 984LL);
*a3 = result;
}
else
{
*a3 = 0;
return 0;
}
return result;
}