//
// SetGroupIDLayer::addGroupID from 0x63a724 to 0x63a7a8 (132 bytes)
//
// 1 xrefs:
// > SetGroupIDLayer::onAddGroup @ 0x63a7ac
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:55:23 +0000
//
void __fastcall SetGroupIDLayer::addGroupID(SetGroupIDLayer *this, int a2)
{
int v3; // r0
int v5; // r0
unsigned int i; // r4
int v7; // r7
int v8; // r0
*((_BYTE *)this + 616) = 1;
v3 = *((_DWORD *)this + 131);
if ( v3 )
{
if ( (*(int (__fastcall **)(int))(*(_DWORD *)v3 + 800))(v3) == 1 )
{
v5 = GameManager::sharedState((GameManager *)((char *)&dword_0 + 1));
(*(void (__fastcall **)(_DWORD, _DWORD, int, _DWORD))(**(_DWORD **)(v5 + 408) + 676))(
*(_DWORD *)(v5 + 408),
*((_DWORD *)this + 131),
a2,
0);
}
}
else
{
for ( i = 0; i < cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 132)); ++i )
{
v7 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 132), i);
if ( (*(int (__fastcall **)(int, int))(*(_DWORD *)v7 + 800))(v7, a2) == 1 )
{
v8 = GameManager::sharedState((GameManager *)((char *)&dword_0 + 1));
(*(void (__fastcall **)(_DWORD, int, int, _DWORD))(**(_DWORD **)(v8 + 408) + 676))(
*(_DWORD *)(v8 + 408),
v7,
a2,
0);
}
}
}
SetGroupIDLayer::updateGroupIDButtons((cocos2d::CCArray **)this);
}