//
// SetupShaderEffectPopup::updateZLayerButtons from 0x9fc2ec to 0x9fc3d8 (236 bytes)
//
// 4 xrefs:
// > SetupShaderEffectPopup::onZLayer @ 0x9fc448
// > SetupShaderEffectPopup::onZLayer @ 0x9fc47c
// > SetupShaderEffectPopup::setupShaderTrigger @ 0x9fc9b0
// > ??> @ 0x36510
//
// 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 v2; // w19
int v3; // w0
unsigned int v4; // w1
ButtonSprite *v5; // x21
int v6; // w2
int m_zLayerMin; // w3
int m_zLayerMax; // w4
unsigned int v9; // w0
v2 = 0;
v3 = cocos2d::CCArray::count(a1->m_zLayerSprites);
v4 = 0;
if ( v3 )
{
do
{
v5 = (ButtonSprite *)cocos2d::CCArray::objectAtIndex(a1->m_zLayerSprites, v4);
v6 = v5->getTag(v5);
m_zLayerMin = a1->m_zLayerMin;
if ( v6 == m_zLayerMin || (m_zLayerMax = a1->m_zLayerMax, v6 == m_zLayerMax) )
{
++v2;
ButtonSprite::updateBGImage(v5, "GJ_button_02.png");
}
else if ( v6 > m_zLayerMin && v6 < m_zLayerMax )
{
++v2;
ButtonSprite::updateBGImage(v5, "GJ_button_01.png");
}
else
{
++v2;
ButtonSprite::updateBGImage(v5, "GJ_button_04.png");
}
v9 = cocos2d::CCArray::count(a1->m_zLayerSprites);
v4 = v2;
}
while ( v2 < v9 );
}
}