//
// sub_D887E4 from 0xd887e4 to 0xd888b0 (204 bytes)
//
// 1 xrefs:
// > ??> @ 0x1122cb0
//
// 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 sub_D887E4(__int64 a1, __int64 a2)
{
unsigned __int64 *v4; // x21
unsigned __int64 *v5; // x21
unsigned __int64 *v6; // x20
__int64 v8; // x0
if ( !*(_QWORD *)(a1 + 32) )
{
v8 = DSA_new();
*(_QWORD *)(a1 + 32) = v8;
if ( !v8 )
return 0;
}
v4 = BN_dup(*(_QWORD *)(*(_QWORD *)(a2 + 32) + 16LL));
if ( !v4 )
return 0;
BN_free(*(_QWORD *)(*(_QWORD *)(a1 + 32) + 16LL));
*(_QWORD *)(*(_QWORD *)(a1 + 32) + 16LL) = v4;
v5 = BN_dup(*(_QWORD *)(*(_QWORD *)(a2 + 32) + 24LL));
if ( !v5 )
return 0;
BN_free(*(_QWORD *)(*(_QWORD *)(a1 + 32) + 24LL));
*(_QWORD *)(*(_QWORD *)(a1 + 32) + 24LL) = v5;
v6 = BN_dup(*(_QWORD *)(*(_QWORD *)(a2 + 32) + 32LL));
if ( !v6 )
return 0;
BN_free(*(_QWORD *)(*(_QWORD *)(a1 + 32) + 32LL));
*(_QWORD *)(*(_QWORD *)(a1 + 32) + 32LL) = v6;
return 1;
}