//
// EC_KEY_set_group from 0x100e610 to 0x100e660 (80 bytes)
//
// 6 xrefs:
// > sub_100970C @ 0x1009764
// > sub_1009820 @ 0x1009ff0
// > sub_100A208 @ 0x100a238
// > sub_10B2BE8 @ 0x10b2c18
// > sub_10B2CA4 @ 0x10b2d4c
// > ??> @ 0x45910
//
// 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:01 +0000
//
__int64 __fastcall EC_KEY_set_group(_QWORD *a1, __int64 a2)
{
__int64 (*v4)(void); // x2
__int64 result; // x0
__int64 v6; // x0
v4 = *(__int64 (**)(void))(*a1 + 40LL);
if ( !v4 || (result = v4(), (_DWORD)result) )
{
EC_GROUP_free(a1[3]);
v6 = EC_GROUP_dup(a2);
a1[3] = v6;
return v6 != 0;
}
return result;
}