//
// sub_1005830D8 from 0x1005830d8 to 0x10058316c (148 bytes)
//
// 1 xrefs:
// > sub_1005877D8 @ 0x1005877d8
//
// 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_1005830D8(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_1005D8078(v3, 0xFFFF);
v5 = (const char *)sub_1005D67D8(*v2);
if ( v4 < 1 )
{
sub_100552734(a1, "set default crypto engine '%s' failed", v5);
return 54;
}
else
{
sub_1005524A4(a1, "set default crypto engine '%s'\n", v5);
return 0;
}
}