//
// sub_A9684C from 0xa9684c to 0xa968dc (144 bytes)
//
// 1 xrefs:
// > ??> @ 0xc81510
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:09:00 +0000
//
int __fastcall sub_A9684C(int a1, _DWORD *a2)
{
_DWORD *v4; // r2
if ( *(_DWORD *)(a1 + 8) )
{
v4 = DSA_new();
if ( v4 && (EVP_PKEY_assign(a2, 116, (int)v4), EVP_PKEY_copy_parameters(a2, *(int **)(a1 + 8))) )
return DSA_generate_key(a2[5]);
else
return 0;
}
else
{
ERR_put_error(10, 121, 107, (int)"crypto/dsa/dsa_pmeth.c", 229);
return 0;
}
}