//
// sub_A9FBA8 from 0xa9fba8 to 0xa9fc40 (152 bytes)
//
// 1 xrefs:
// > ??> @ 0xc81574
//
// 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:11 +0000
//
int __fastcall sub_A9FBA8(int a1, _DWORD *a2)
{
int *v2; // r5
_DWORD *v4; // r0
int v5; // r6
int v7; // r4
v2 = *(int **)(a1 + 20);
if ( *v2 )
{
v4 = (_DWORD *)EC_KEY_new();
v5 = (int)v4;
if ( v4 )
{
v7 = EC_KEY_set_group(v4, *v2);
if ( v7 )
{
EVP_PKEY_assign(a2, 408, v5);
return v7;
}
else
{
EC_KEY_free(v5);
return 0;
}
}
else
{
return 0;
}
}
else
{
ERR_put_error(16, 219, 139, (int)"crypto/ec/ec_pmeth.c", 391);
return 0;
}
}