//
// EC_KEY_set_method from 0x100ede8 to 0x100ee48 (96 bytes)
//
// 1 xrefs:
// > ??> @ 0x80068
//
// 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_method(_QWORD *a1, __int64 a2)
{
void (*v4)(void); // x1
__int64 (__fastcall *v5)(_QWORD *); // x1
v4 = *(void (**)(void))(*a1 + 24LL);
if ( v4 )
v4();
ENGINE_finish(a1[1]);
v5 = *(__int64 (__fastcall **)(_QWORD *))(a2 + 16);
a1[1] = 0;
*a1 = a2;
if ( v5 )
return v5(a1);
else
return 1;
}