//
// DSA_set_method from 0x1007a00 to 0x1007a54 (84 bytes)
//
// 1 xrefs:
// > ??> @ 0xbcae8
//
// 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:15:57 +0000
//
__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;
}