//
// EC_KEY_set_method from 0xd90a88 to 0xd90ae8 (96 bytes)
//
// 1 xrefs:
// > ??> @ 0x5d930
//
// 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 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;
}