//
// sub_BB8EA0 from 0xbb8ea0 to 0xbb8f34 (148 bytes)
//
// 1 xrefs:
// > sub_B839AC @ 0xbba888
//
// 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
//
__int64 __fastcall sub_BB8EA0(__int64 a1)
{
__int64 v1; // x20
bool v3; // cc
const char *id; // x0
v1 = a1 + 0x8000;
if ( !*(_QWORD *)(a1 + 35912) )
return 0;
v3 = (int)ENGINE_set_default(*(_QWORD *)(a1 + 35912), 0xFFFF) <= 0;
id = (const char *)ENGINE_get_id(*(_QWORD *)(v1 + 3144));
if ( v3 )
{
sub_B7B690(a1, "set default crypto engine '%s' failed", id);
return 54;
}
else
{
sub_B7B528(a1, "set default crypto engine '%s'\n", id);
return 0;
}
}