//
// EVP_PKEY_get1_tls_encodedpoint from 0x805aa0 to 0x805ae8 (72 bytes)
//
// 3 xrefs:
// > tls_construct_client_key_exchange @ 0x7a2400
// > tls_construct_server_key_exchange @ 0x7aab3c
// > ??> @ 0x5d0fc
//
// 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 EVP_PKEY_get1_tls_encodedpoint(int a1, int a2)
{
int v2; // r2
int (__fastcall *v3)(int, int, _DWORD, int); // r12
int result; // r0
v2 = *(_DWORD *)(a1 + 12);
if ( !v2 )
return 0;
v3 = *(int (__fastcall **)(int, int, _DWORD, int))(v2 + 92);
if ( !v3 )
return 0;
result = v3(a1, 10, 0, a2);
if ( result <= 0 )
return 0;
return result;
}