//
// sub_100664CE0 from 0x100664ce0 to 0x100664d44 (100 bytes)
//
// 3 xrefs:
// > sub_100655AF8 @ 0x100655b7c
// > sub_1006A93C0 @ 0x1006a9464
// > sub_1006AC650 @ 0x1006ac6b4
//
// 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:00 +0000
//
__int64 __fastcall sub_100664CE0(__int64 a1)
{
__int64 v2; // x8
if ( *(_QWORD *)(a1 + 48) )
{
if ( (*(_BYTE *)(a1 + 68) & 2) == 0 )
return (*(__int64 (**)(void))(*(_QWORD *)(a1 + 8) + 48LL))();
v2 = 0;
*(_DWORD *)(a1 + 40) = 1;
}
else
{
sub_100706FB0(20, 223, 276, "ssl_lib.c", 1010);
return 0xFFFFFFFFLL;
}
return v2;
}