//
// SetupShaderEffectPopup::updateZLayerButtons from 0x551df4 to 0x551e5e (106 bytes)
//
// 2 xrefs:
// > SetupShaderEffectPopup::onZLayer @ 0x551f14
// > SetupShaderEffectPopup::setupShaderTrigger @ 0x5521ba
//
// 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 SetupShaderEffectPopup::updateZLayerButtons(SetupShaderEffectPopup *a1)
{
unsigned int i; // r4
ButtonSprite *v3; // r6
int v4; // r0
int m_zLayerMin; // r2
int m_zLayerMax; // r3
ButtonSprite *v7; // r0
const char *v8; // r1
for ( i = 0; i < cocos2d::CCArray::count(a1->m_zLayerSprites); ++i )
{
v3 = (ButtonSprite *)cocos2d::CCArray::objectAtIndex(a1->m_zLayerSprites, i);
v4 = v3->getTag(v3);
m_zLayerMin = a1->m_zLayerMin;
if ( v4 == m_zLayerMin || (m_zLayerMax = a1->m_zLayerMax, v4 == m_zLayerMax) )
{
v7 = v3;
v8 = "GJ_button_02.png";
}
else if ( v4 <= m_zLayerMin || v4 >= m_zLayerMax )
{
v7 = v3;
v8 = "GJ_button_04.png";
}
else
{
v7 = v3;
v8 = "GJ_button_01.png";
}
ButtonSprite::updateBGImage(v7, v8);
}
}