//
// SetGroupIDLayer::updateZLayerButtons from 0xabb8d0 to 0xabb958 (136 bytes)
//
// 5 xrefs:
// > SetGroupIDLayer::onZLayer @ 0xabb9ac
// > SetGroupIDLayer::onZLayer @ 0xabb9fc
// > SetGroupIDLayer::onPaste @ 0xabba58
// > SetGroupIDLayer::init @ 0xac05e0
// > ??> @ 0x100d98
//
// 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::updateZLayerButtons(cocos2d::CCArray **this)
{
unsigned int v2; // w19
__int64 v3; // x0
int v4; // w22
ButtonSprite *v5; // x21
const char *v6; // x1
__int64 result; // x0
bool v8; // cf
unsigned int v9; // w1
v2 = 0;
while ( 1 )
{
result = cocos2d::CCArray::count(*(this + 86));
v8 = v2 >= (unsigned int)result;
v9 = v2++;
if ( v8 )
break;
v3 = cocos2d::CCArray::objectAtIndex(*(this + 86), v9);
v4 = *((_DWORD *)this + 197);
v5 = (ButtonSprite *)v3;
if ( v4 == (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v3 + 64LL))(v3) )
v6 = "GJ_button_02.png";
else
v6 = "GJ_button_04.png";
ButtonSprite::updateBGImage(v5, v6);
}
return result;
}