//
// sub_10B2BE8 from 0x10b2be8 to 0x10b2ca4 (188 bytes)
//
// 1 xrefs:
// > ??> @ 0x1410490
//
// 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:44 +0000
//
_QWORD *__fastcall sub_10B2BE8(__int64 a1, __int64 a2)
{
__int64 *v2; // x20
_QWORD *result; // x0
__int64 v5; // x21
unsigned int v6; // w19
v2 = *(__int64 **)(a1 + 40);
if ( *v2 )
{
result = (_QWORD *)EC_KEY_new();
v5 = (__int64)result;
if ( result )
{
v6 = EC_KEY_set_group(result, *v2);
if ( v6 )
{
EVP_PKEY_assign(a2, 0x198u, v5);
return (_QWORD *)v6;
}
else
{
EC_KEY_free(v5);
return nullptr;
}
}
}
else
{
ERR_put_error(16, 219, 139, (__int64)"crypto/ec/ec_pmeth.c", 391);
return nullptr;
}
return result;
}