//
// DSA_set_method from 0xd896a0 to 0xd896f4 (84 bytes)
//
// 1 xrefs:
// > ??> @ 0x8e8f0
//
// 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 DSA_set_method(__int64 a1, __int64 a2)
{
void (*v4)(void); // x1
void (__fastcall *v5)(__int64); // x1
v4 = *(void (**)(void))(*(_QWORD *)(a1 + 88) + 56LL);
if ( v4 )
v4();
ENGINE_finish(*(_QWORD *)(a1 + 96));
v5 = *(void (__fastcall **)(__int64))(a2 + 48);
*(_QWORD *)(a1 + 96) = 0;
*(_QWORD *)(a1 + 88) = a2;
if ( v5 )
v5(a1);
return 1;
}