//
// EVP_PKEY_get1_tls_encodedpoint from 0x102adb4 to 0x102adfc (72 bytes)
//
// 3 xrefs:
// > tls_construct_client_key_exchange @ 0xfc8b5c
// > tls_construct_server_key_exchange @ 0xfd0828
// > ??> @ 0xbc800
//
// 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:16:16 +0000
//
__int64 __fastcall EVP_PKEY_get1_tls_encodedpoint(__int64 a1, __int64 a2)
{
__int64 v2; // x2
__int64 (__fastcall *v3)(__int64, __int64, _QWORD, __int64); // x4
__int64 result; // x0
v2 = *(_QWORD *)(a1 + 16);
if ( v2
&& (v3 = *(__int64 (__fastcall **)(__int64, __int64, _QWORD, __int64))(v2 + 176)) != nullptr
&& (LODWORD(result) = v3(a1, 10, 0, a2), (int)result > 0) )
{
return (int)result;
}
else
{
return 0;
}
}