//
// RSA_set_method from 0x105206c to 0x10520c0 (84 bytes)
//
// 1 xrefs:
// > ??> @ 0x64120
//
// 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:16:39 +0000
//
__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;
}