//
// RSA_set_method from 0xdd3d0c to 0xdd3d60 (84 bytes)
//
// 1 xrefs:
// > ??> @ 0x467e8
//
// 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 RSA_set_method(__int64 a1, __int64 a2)
{
void (*v4)(void); // x1
void (__fastcall *v5)(__int64); // x1
v4 = *(void (**)(void))(*(_QWORD *)(a1 + 16) + 64LL);
if ( v4 )
v4();
ENGINE_finish(*(_QWORD *)(a1 + 24));
v5 = *(void (__fastcall **)(__int64))(a2 + 56);
*(_QWORD *)(a1 + 24) = 0;
*(_QWORD *)(a1 + 16) = a2;
if ( v5 )
v5(a1);
return 1;
}