//
// sub_1006A9150 from 0x1006a9150 to 0x1006a9240 (240 bytes)
//
// 1 xrefs:
// > sub_1006AD93C @ 0x1006ad93c
//
// 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_1006A9150(__int64 a1, const char *a2)
{
__int64 v4; // x21
__int64 *v5; // x23
__int64 v7; // x0
__int64 v8; // x0
char v9[256]; // [xsp+18h] [xbp-138h] BYREF
v4 = sub_1006FCD48(a2);
if ( v4 )
{
v5 = (__int64 *)(a1 + 35464);
if ( *(_QWORD *)(a1 + 35464) )
{
sub_1006FD22C();
sub_1006FC6E8(*v5);
*v5 = 0;
}
if ( (unsigned int)sub_1006FD164(v4) )
{
*v5 = v4;
return 0;
}
else
{
v7 = sub_1006FC6E8(v4);
v8 = sub_100707344(v7);
sub_10070760C(v8, v9, 256);
sub_10067889C(a1, "Failed to initialise SSL Engine '%s':\n%s", a2, v9);
return 66;
}
}
else
{
sub_10067889C(a1, "SSL Engine '%s' not found", a2);
return 53;
}
}