//
// SetGroupIDLayer::onZLayer from 0xabb958 to 0xabba00 (168 bytes)
//
// 3 xrefs:
// > ??> @ 0x481d8
// > SetGroupIDLayer::init @ 0xabfbd0
// > ??> @ 0x1541640
//
// 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:02 +0000
//
__int64 __fastcall SetGroupIDLayer::onZLayer(SetGroupIDLayer *this, cocos2d::CCObject *a2)
{
int v3; // w1
__int64 v4; // x0
unsigned int v5; // w19
__int64 v6; // x21
bool v7; // cf
unsigned int v8; // w1
v3 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2);
v4 = *((_QWORD *)this + 84);
*((_DWORD *)this + 197) = v3;
if ( v4 )
{
GameObject::setCustomZLayer(v4, v3);
*(_BYTE *)(*((_QWORD *)this + 84) + 1148LL) = 1;
return SetGroupIDLayer::updateZLayerButtons((cocos2d::CCArray **)this);
}
else
{
v5 = 0;
while ( 1 )
{
v7 = v5 >= (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 85));
v8 = v5++;
if ( v7 )
break;
v6 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 85), v8);
GameObject::setCustomZLayer(v6, *((_DWORD *)this + 197));
*(_BYTE *)(v6 + 1148) = 1;
}
return SetGroupIDLayer::updateZLayerButtons((cocos2d::CCArray **)this);
}
}