//
// sub_7E0F5C from 0x7e0f5c to 0x7e100c (176 bytes)
//
// 1 xrefs:
// > ??> @ 0xa30c50
//
// 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
//
int __fastcall sub_7E0F5C(int a1, int a2)
{
int v4; // r6
int v5; // r6
int v6; // r5
int v8; // r0
if ( !*(_DWORD *)(a1 + 20) )
{
v8 = DSA_new();
*(_DWORD *)(a1 + 20) = v8;
if ( !v8 )
return 0;
}
v4 = BN_dup(*(_DWORD *)(*(_DWORD *)(a2 + 20) + 8));
if ( !v4 )
return 0;
BN_free(*(_DWORD *)(*(_DWORD *)(a1 + 20) + 8));
*(_DWORD *)(*(_DWORD *)(a1 + 20) + 8) = v4;
v5 = BN_dup(*(_DWORD *)(*(_DWORD *)(a2 + 20) + 12));
if ( !v5 )
return 0;
BN_free(*(_DWORD *)(*(_DWORD *)(a1 + 20) + 12));
*(_DWORD *)(*(_DWORD *)(a1 + 20) + 12) = v5;
v6 = BN_dup(*(_DWORD *)(*(_DWORD *)(a2 + 20) + 16));
if ( !v6 )
return 0;
BN_free(*(_DWORD *)(*(_DWORD *)(a1 + 20) + 16));
*(_DWORD *)(*(_DWORD *)(a1 + 20) + 16) = v6;
return 1;
}