//
// EVP_PKEY_get1_tls_encodedpoint from 0xdaca54 to 0xdaca9c (72 bytes)
//
// 3 xrefs:
// > tls_construct_client_key_exchange @ 0xd4a808
// > tls_construct_server_key_exchange @ 0xd524d4
// > ??> @ 0x8e680
//
// 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 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;
}
}