//
// SetGroupIDLayer::updateZLayerButtons from 0x977420 to 0x9774a8 (136 bytes)
//
// 5 xrefs:
// > SetGroupIDLayer::onZLayer @ 0x9774fc
// > SetGroupIDLayer::onZLayer @ 0x97754c
// > SetGroupIDLayer::onPaste @ 0x9775a8
// > SetGroupIDLayer::init @ 0x978ea8
// > ??> @ 0xc5628
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void SetGroupIDLayer::updateZLayerButtons(SetGroupIDLayer *a1)
{
unsigned int v2; // w19
__int64 v3; // x0
ZLayer m_zLayerValue; // w22
ButtonSprite *v5; // x21
const char *v6; // x1
bool v7; // cf
unsigned int v8; // w1
v2 = 0;
while ( 1 )
{
v7 = v2 >= (unsigned int)cocos2d::CCArray::count(a1->m_zLayerButtons);
v8 = v2++;
if ( v7 )
break;
v3 = cocos2d::CCArray::objectAtIndex(a1->m_zLayerButtons, v8);
m_zLayerValue = a1->m_zLayerValue;
v5 = (ButtonSprite *)v3;
if ( m_zLayerValue == (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v3 + 64LL))(v3) )
v6 = "GJ_button_02.png";
else
v6 = "GJ_button_04.png";
ButtonSprite::updateBGImage(v5, v6);
}
}