//
// sub_10AA0A0 from 0x10aa0a0 to 0x10aa1a8 (264 bytes)
//
// 1 xrefs:
// > ??> @ 0x14103c0
//
// 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:17:37 +0000
//
__int64 __fastcall sub_10AA0A0(__int64 a1, __int64 a2)
{
__int64 v2; // x19
int *v5; // x21
__int64 result; // x0
__int64 *v7; // x0
__int64 v8; // x22
unsigned int v9; // w20
v2 = *(_QWORD *)(a1 + 56);
v5 = *(int **)(a1 + 40);
if ( v2 )
{
result = BN_GENCB_new();
v2 = result;
if ( !result )
return result;
evp_pkey_set_cb_translate(result, a1);
}
v7 = (__int64 *)DSA_new();
v8 = (__int64)v7;
if ( v7 )
{
v9 = dsa_builtin_paramgen(v7, *v5, v5[1], *((_QWORD *)v5 + 1), nullptr, 0, nullptr, nullptr, nullptr, v2);
BN_GENCB_free(v2);
if ( v9 )
{
EVP_PKEY_assign(a2, 0x74u, v8);
return v9;
}
else
{
DSA_free(v8);
return 0;
}
}
else
{
BN_GENCB_free(v2);
return 0;
}
}