//
// sub_FE02F8 from 0xfe02f8 to 0xfe03ac (180 bytes)
//
// 1 xrefs:
// > ??> @ 0x13fee10
//
// 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:37 +0000
//
bool __fastcall sub_FE02F8(__int64 a1, char *a2)
{
__int64 v3; // x0
char *v4; // x1
_QWORD *v5; // x20
_BOOL4 v6; // w19
__int64 v8; // x0
v3 = EC_curve_nist2nid(a2);
v4 = a2;
if ( !(_DWORD)v3 )
{
v3 = OBJ_sn2nid(a2);
if ( !(_DWORD)v3 )
return 0;
}
v5 = (_QWORD *)EC_KEY_new_by_curve_name(v3, v4);
if ( !v5 )
return 0;
if ( *(_QWORD *)(a1 + 24) )
{
v6 = (int)SSL_CTX_ctrl(*(_QWORD *)(a1 + 24), 4, 0, (__int64)v5) > 0;
}
else
{
v8 = *(_QWORD *)(a1 + 32);
if ( v8 )
v6 = (int)SSL_ctrl(v8, 4, 0, v5) > 0;
else
v6 = 1;
}
EC_KEY_free(v5);
return v6;
}