//
// GJRobotSprite::hideSecondary from 0x1006aea30 to 0x1006aea9a (106 bytes)
//
// 2 xrefs:
// > ??> @ 0x100b87c88
// > ??> @ 0x100b88250
//
// This function is hookable on this platform (idp: pc, 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 12:35:23 +0000
//
__int64 __fastcall GJRobotSprite::hideSecondary(__int64 a1)
{
unsigned int v1; // r14d
__int64 v2; // rax
if ( (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 736)) )
{
v1 = 0;
do
{
v2 = sub_1007FEFE0(*(_QWORD *)(a1 + 736), v1);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v2 + 344LL))(v2, 0);
++v1;
}
while ( v1 < (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 736)) );
}
return (*(__int64 (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 752) + 344LL))(*(_QWORD *)(a1 + 752), 0);
}