//
// SetupShaderEffectPopup::updateZLayerButtons from 0x14044b190 to 0x14044b23b (171 bytes)
//
// 5 xrefs:
// > SetupShaderEffectPopup::setupShaderTrigger @ 0x14044ad7d
// > SetupShaderEffectPopup::onZLayer @ 0x14044b17e
// > ??> @ 0x1406a2b04
// > ??> @ 0x1406a2b14
// > ??> @ 0x1406da754
//
// 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; // edi
ButtonSprite *v3; // rsi
int v4; // eax
int m_zLayerMin; // edx
int m_zLayerMax; // ecx
const char *v7; // rdx
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 = "GJ_button_02.png";
}
else if ( v4 <= m_zLayerMin || v4 >= m_zLayerMax )
{
v7 = "GJ_button_04.png";
}
else
{
v7 = "GJ_button_01.png";
}
ButtonSprite::updateBGImage(v3, v7);
}
}