//
// sub_A0A000 from 0xa0a000 to 0xa0a108 (264 bytes)
//
// 1 xrefs:
// > ??> @ 0xc78234
//
// 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:07:42 +0000
//
int __fastcall sub_A0A000(int a1, int a2)
{
int v3; // r6
int v4; // r0
int v5; // r4
if ( *(_DWORD *)(a2 + 20) )
{
v3 = CRYPTO_memdup(*(_DWORD *)(a2 + 20), 32, "crypto/ec/ecx_meth.c", 102);
if ( v3 )
{
v4 = OBJ_nid2obj(1034);
if ( !X509_PUBKEY_set0_param(a1, v4, -1, 0, v3, 32) )
{
CRYPTO_free(v3, "crypto/ec/ecx_meth.c", 110);
ERR_put_error(16, 268, 65, "crypto/ec/ecx_meth.c", 111);
return 0;
}
return 1;
}
else
{
v5 = 0;
ERR_put_error(16, 268, 65, "crypto/ec/ecx_meth.c", 104);
}
return v5;
}
else
{
ERR_put_error(16, 268, 116, "crypto/ec/ecx_meth.c", 98);
return 0;
}
}