//
// sub_1006A76E8 from 0x1006a76e8 to 0x1006a77c4 (220 bytes)
//
// 1 xrefs:
// > sub_100682ECC @ 0x100684f0c
//
// 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:42 +0000
//
__int64 __fastcall sub_1006A76E8(size_t a1, _QWORD *a2)
{
__int64 v4; // x21
__int64 v5; // x0
__int64 *v6; // x8
__int64 v7; // x8
__int64 v8; // x8
__int64 v9; // x21
const char *v10; // x11
if ( !a1 )
return 0;
v4 = sub_100695658(*(_QWORD *)(a1 + 96));
v5 = sub_10069566C(*(_QWORD *)(a1 + 96));
v6 = (__int64 *)a2[116];
if ( v6 && (v7 = *v6) != 0 )
{
v8 = *(_QWORD *)(*(_QWORD *)v7 + 120LL);
v9 = (v4 > 0) & (unsigned __int8)(v8 > v4);
}
else
{
v9 = 0;
v8 = -2;
}
if ( v5 >= 1 )
v9 = (unsigned int)v9 | (a2[5] > v5);
v10 = "FALSE";
if ( (_DWORD)v9 )
v10 = "TRUE";
sub_10067860C(a1, "Conn: %ld (%p) Receive pipe weight: (%ld/%zu), penalized: %s\n", a2[10], a2, v8, a2[5], v10);
return v9;
}