//
// sub_E348E8 from 0xe348e8 to 0xe349a4 (188 bytes)
//
// 1 xrefs:
// > ??> @ 0x1132f00
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
_QWORD *__fastcall sub_E348E8(__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;
}