//
// sub_1006963A4 from 0x1006963a4 to 0x100696428 (132 bytes)
//
// 1 xrefs:
// > sub_10066FAFC @ 0x10066fba8
//
// 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:34 +0000
//
bool __fastcall sub_1006963A4(__int64 a1)
{
int v1; // w8
__int64 v2; // x8
if ( *(_QWORD *)(a1 + 816) != 2 )
return 1;
v1 = dword_1009E5FF8;
if ( dword_1009E5FF8 == -1 )
{
v2 = socket(30, 2, 0);
if ( (_DWORD)v2 == -1 )
{
v1 = 0;
dword_1009E5FF8 = 0;
}
else
{
dword_1009E5FF8 = 1;
sub_100690E30(0, v2);
v1 = dword_1009E5FF8;
}
}
return v1 > 0;
}