//
// SetupGradientPopup::updateZLayerButtons from 0x68704c to 0x687096 (74 bytes)
//
// 2 xrefs:
// > SetupGradientPopup::onZLayer @ 0x6870e4
// > SetupGradientPopup::init @ 0x687a9c
//
// 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:56:05 +0000
//
unsigned int __fastcall SetupGradientPopup::updateZLayerButtons(cocos2d::CCArray **this)
{
unsigned int v2; // r4
unsigned int result; // r0
char *v4; // r0
char *v5; // r6
const char *v6; // r1
v2 = 0;
while ( 1 )
{
result = cocos2d::CCArray::count(*(this + 180));
if ( v2 >= result )
break;
v4 = (char *)cocos2d::CCArray::objectAtIndex(*(this + 180), v2++);
v5 = v4;
if ( (cocos2d::CCArray *)(*(int (__fastcall **)(char *))(*(_DWORD *)v4 + 32))(v4) == *(this + 181) )
v6 = "GJ_button_02.png";
else
v6 = "GJ_button_04.png";
ButtonSprite::updateBGImage(v5, v6);
}
return result;
}