//
// SetGroupIDLayer::onZLayer from 0x63a984 to 0x63a9e2 (94 bytes)
//
// 0 xrefs:
//
// 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
//
unsigned int __fastcall SetGroupIDLayer::onZLayer(SetGroupIDLayer *this, cocos2d::CCObject *a2)
{
int v3; // r1
int v4; // r0
unsigned int v5; // r4
int v6; // r0
int v7; // r7
v3 = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2);
*((_DWORD *)this + 150) = v3;
v4 = *((_DWORD *)this + 131);
if ( v4 )
{
GameObject::setCustomZLayer(v4, v3);
*(_BYTE *)(*((_DWORD *)this + 131) + 1004) = 1;
}
else
{
v5 = 0;
while ( v5 < cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 132)) )
{
v6 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 132), v5++);
v7 = v6;
GameObject::setCustomZLayer(v6, *((_DWORD *)this + 150));
*(_BYTE *)(v7 + 1004) = 1;
}
}
return SetGroupIDLayer::updateZLayerButtons((cocos2d::CCArray **)this);
}