//
// SetGroupIDLayer::onClose from 0xab9190 to 0xab9354 (452 bytes)
//
// 5 xrefs:
// > SetGroupIDLayer::onAnim @ 0xab9384
// > SetGroupIDLayer::keyBackClicked @ 0xab938c
// > ??> @ 0x46e58
// > SetGroupIDLayer::init @ 0xabf318
// > ??> @ 0x1541588
//
// 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 13:01:01 +0000
//
__int64 __fastcall SetGroupIDLayer::onClose(cocos2d::CCArray **this, cocos2d::CCObject *a2)
{
__int64 v3; // x0
__int64 v4; // x0
cocos2d::CCArray *v5; // x0
__int64 v6; // x0
GameManager *v7; // x0
__int64 v8; // x0
__int64 v10; // x0
unsigned int v11; // w20
bool v12; // cf
unsigned int v13; // w1
*(_DWORD *)(GameManager::sharedState((GameManager *)this) + 976) = *((_DWORD *)this + 191);
(*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)*(this + 91) + 1160LL))(*(this + 91), 0);
*((_QWORD *)*(this + 91) + 73) = 0;
(*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)*(this + 88) + 1160LL))(*(this + 88), 0);
*((_QWORD *)*(this + 88) + 73) = 0;
(*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)*(this + 89) + 1160LL))(*(this + 89), 0);
*((_QWORD *)*(this + 89) + 73) = 0;
(*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)*(this + 90) + 1160LL))(*(this + 90), 0);
*((_QWORD *)*(this + 90) + 73) = 0;
v3 = (__int64)*(this + 92);
if ( v3 )
{
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v3 + 1160LL))(v3, 0);
*((_QWORD *)*(this + 92) + 73) = 0;
}
v4 = (__int64)*(this + 93);
if ( v4 )
{
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v4 + 1160LL))(v4, 0);
*((_QWORD *)*(this + 93) + 73) = 0;
}
v5 = *(this + 84);
if ( v5 )
{
*((_BYTE *)v5 + 1148) = 1;
}
else
{
v5 = *(this + 85);
if ( v5 )
{
v11 = 0;
while ( 1 )
{
v5 = (cocos2d::CCArray *)cocos2d::CCArray::count(v5);
v12 = v11 >= (unsigned int)v5;
v13 = v11++;
if ( v12 )
break;
*(_BYTE *)(cocos2d::CCArray::objectAtIndex(*(this + 85), v13) + 1148) = 1;
v5 = *(this + 85);
}
}
}
v6 = GameManager::sharedState(v5);
EditorUI::updateObjectInfoLabel(*(EditorUI **)(*(_QWORD *)(v6 + 552) + 14248LL));
if ( *((_BYTE *)this + 804) )
{
v10 = GameManager::sharedState((GameManager *)*((unsigned __int8 *)this + 804));
LevelEditorLayer::resetToggledGroupsAndObjects(*(LevelEditorLayer **)(v10 + 552));
}
v7 = *(this + 84);
if ( v7 )
{
v7 = (GameManager *)*((unsigned __int8 *)this + 796);
if ( *((_BYTE *)this + 796) || (v7 = (GameManager *)*((unsigned __int8 *)this + 760), *((_BYTE *)this + 760)) )
{
v8 = GameManager::sharedState(v7);
v7 = (GameManager *)LevelEditorLayer::timeObjectChanged(*(LevelEditorLayer **)(v8 + 552));
}
}
*(_BYTE *)(*(_QWORD *)(GameManager::sharedState(v7) + 552) + 14938LL) = 1;
(*((void (__fastcall **)(cocos2d::CCArray **, _QWORD))*this + 134))(this, 0);
return (*((__int64 (__fastcall **)(cocos2d::CCArray **, __int64))*this + 66))(this, 1);
}