//
// sub_1006A9240 from 0x1006a9240 to 0x1006a92d4 (148 bytes)
//
// 1 xrefs:
// > sub_1006AD940 @ 0x1006ad940
//
// 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 11:11:43 +0000
//
__int64 __fastcall sub_1006A9240(size_t a1)
{
_QWORD *v2; // x21
__int64 v3; // x0
int v4; // w20
const char *v5; // x0
v2 = (_QWORD *)(a1 + 35464);
v3 = *(_QWORD *)(a1 + 35464);
if ( !v3 )
return 0;
v4 = sub_1006FE1E0(v3, 0xFFFF);
v5 = (const char *)sub_1006FC940(*v2);
if ( v4 < 1 )
{
sub_10067889C(a1, "set default crypto engine '%s' failed", v5);
return 54;
}
else
{
sub_10067860C(a1, "set default crypto engine '%s'\n", v5);
return 0;
}
}