//
// SetupShaderEffectPopup::updateZLayerButtons from 0x687ee8 to 0x687f52 (106 bytes)
//
// 2 xrefs:
// > SetupShaderEffectPopup::onZLayer @ 0x688008
// > SetupShaderEffectPopup::setupShaderTrigger @ 0x68dc6a
//
// 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:06 +0000
//
unsigned int __fastcall SetupShaderEffectPopup::updateZLayerButtons(cocos2d::CCArray **this)
{
unsigned int i; // r4
unsigned int result; // r0
char *v4; // r6
int v5; // r0
int v6; // r2
int v7; // r3
char *v8; // r0
const char *v9; // r1
for ( i = 0; ; ++i )
{
result = cocos2d::CCArray::count(*(this + 178));
if ( i >= result )
break;
v4 = (char *)cocos2d::CCArray::objectAtIndex(*(this + 178), i);
v5 = (*(int (__fastcall **)(char *))(*(_DWORD *)v4 + 32))(v4);
v6 = (int)*(this + 179);
if ( v5 == v6 || (v7 = (int)*(this + 180), v5 == v7) )
{
v8 = v4;
v9 = "GJ_button_02.png";
}
else if ( v5 <= v6 || v5 >= v7 )
{
v8 = v4;
v9 = "GJ_button_04.png";
}
else
{
v8 = v4;
v9 = "GJ_button_01.png";
}
ButtonSprite::updateBGImage(v8, v9);
}
return result;
}