//
// sub_854AAC from 0x854aac to 0x854af0 (68 bytes)
//
// 1 xrefs:
// > sub_855B30 @ 0x855b30
//
// 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:02:35 +0000
//
int __fastcall sub_854AAC(size_t a1)
{
bool v2; // cc
int v3; // r0
const char *id; // r0
const char *v6; // r0
if ( !*(_DWORD *)(a1 + 34608) )
return 0;
v2 = ENGINE_set_default(*(_DWORD *)(a1 + 34608), 0xFFFF) <= 0;
v3 = *(_DWORD *)(a1 + 34608);
if ( !v2 )
{
id = (const char *)ENGINE_get_id(v3);
sub_8280FC(a1, "set default crypto engine '%s'\n", id);
return 0;
}
v6 = (const char *)ENGINE_get_id(v3);
sub_828178(a1, "set default crypto engine '%s' failed", v6);
return 54;
}