//
// EC_KEY_set_method from 0x9fe73c to 0x9fe790 (84 bytes)
//
// 1 xrefs:
// > ??> @ 0x7b31c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:07:36 +0000
//
int __fastcall EC_KEY_set_method(_DWORD *a1, int a2)
{
void (*v2)(void); // r3
int (__fastcall *v5)(_DWORD *); // r3
v2 = *(void (**)(void))(*a1 + 12);
if ( v2 )
v2();
ENGINE_finish(a1[1]);
v5 = *(int (__fastcall **)(_DWORD *))(a2 + 8);
*a1 = a2;
a1[1] = 0;
if ( v5 )
return v5(a1);
else
return 1;
}