//
// DH_set_method from 0x9f5094 to 0x9f50e4 (80 bytes)
//
// 1 xrefs:
// > ??> @ 0x7a57c
//
// 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:31 +0000
//
int __fastcall DH_set_method(int a1, int a2)
{
void (*v3)(void); // r3
void (__fastcall *v5)(int); // r3
v3 = *(void (**)(void))(*(_DWORD *)(a1 + 64) + 20);
if ( v3 )
v3();
ENGINE_finish(*(_DWORD *)(a1 + 68));
v5 = *(void (__fastcall **)(int))(a2 + 16);
*(_DWORD *)(a1 + 64) = a2;
*(_DWORD *)(a1 + 68) = 0;
if ( v5 )
v5(a1);
return 1;
}