//
// sub_E2F060 from 0xe2f060 to 0xe2f0f4 (148 bytes)
//
// 1 xrefs:
// > sub_DF9B64 @ 0xe30a48
//
// 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:09:54 +0000
//
__int64 __fastcall sub_E2F060(__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_DF1848(a1, "set default crypto engine '%s' failed", id);
return 54;
}
else
{
sub_DF16E0(a1, "set default crypto engine '%s'\n", id);
return 0;
}
}