//
// sub_A96714 from 0xa96714 to 0xa967d0 (188 bytes)
//
// 1 xrefs:
// > ??> @ 0xc81508
//
// 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_A96714(int a1, _DWORD *a2)
{
int v2; // r4
int v5; // r6
_DWORD *v6; // r0
int *v8; // r0
int v9; // r7
int v10; // r5
v2 = *(_DWORD *)(a1 + 28);
v5 = *(_DWORD *)(a1 + 20);
if ( v2 )
{
v6 = (_DWORD *)BN_GENCB_new();
v2 = (int)v6;
if ( !v6 )
return 0;
evp_pkey_set_cb_translate(v6, a1);
}
v8 = DSA_new();
v9 = (int)v8;
if ( v8 )
{
v10 = dsa_builtin_paramgen(
v8,
*(_DWORD *)v5,
*(_DWORD *)(v5 + 4),
*(_DWORD *)(v5 + 8),
nullptr,
0,
nullptr,
nullptr,
nullptr,
v2);
BN_GENCB_free(v2);
if ( v10 )
{
EVP_PKEY_assign(a2, 116, v9);
return v10;
}
else
{
DSA_free(v9);
return 0;
}
}
else
{
BN_GENCB_free(v2);
return 0;
}
}