//
// sub_1006B44 from 0x1006b44 to 0x1006c10 (204 bytes)
//
// 1 xrefs:
// > ??> @ 0x1400240
//
// 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 sub_1006B44(__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;
}