//
// SetGroupIDLayer::onToggleTraceOut from 0x1403fabc0 to 0x1403fac59 (153 bytes)
//
// 2 xrefs:
// > SetGroupIDLayer::init @ 0x1403fa7ef
// > ??> @ 0x1406d83b4
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void SetGroupIDLayer::onToggleTraceOut(SetGroupIDLayer *a1, cocos2d::CCObject *a2)
{
__int64 v3; // rax
GameObject *m_targetObject; // r8
__int64 v5; // rdx
__int64 v6; // rcx
void *v7; // [rsp+30h] [rbp+8h]
v3 = qword_1406C2ED8;
if ( !qword_1406C2ED8 )
{
v7 = operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00((__int64)v7);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
v3 = qword_1406C2ED8;
}
m_targetObject = a1->m_targetObject;
v5 = *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(v3 + 528) + 14496LL) + 1280LL);
v6 = *(_QWORD *)(v5 + 15008);
if ( v6 && *(_DWORD *)(v6 + 924) == m_targetObject->m_uniqueID )
*(_QWORD *)(v5 + 15008) = 0;
else
*(_QWORD *)(v5 + 15008) = m_targetObject;
}