//
// sub_1006867D4 from 0x1006867d4 to 0x10068687c (168 bytes)
//
// 1 xrefs:
// > sub_100682ECC @ 0x100684598
//
// 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:25 +0000
//
__int64 __fastcall sub_1006867D4(__int64 a1, size_t a2)
{
if ( !(*(_QWORD *)(*(_QWORD *)(a1 + 920) + 24LL) + *(_QWORD *)(*(_QWORD *)(a1 + 928) + 24LL)) && !*(_BYTE *)(a1 + 72) )
{
if ( (*(_BYTE *)(*(_QWORD *)(a1 + 800) + 122LL) & 4) == 0 )
{
if ( !(unsigned int)sub_100696F50(*(unsigned int *)(a1 + 464), 0xFFFFFFFFLL, 0xFFFFFFFFLL, 0) )
return 0;
goto LABEL_7;
}
if ( (sub_1006A1A48(a1) & 1) != 0 )
{
LABEL_7:
*(_QWORD *)a1 = a2;
sub_10067860C(a2, "Connection %ld seems to be dead!\n", *(_QWORD *)(a1 + 80));
sub_1006825B8((__int64 *)a1, 1);
}
}
return 0;
}