//
// SetupShaderEffectPopup::updateZLayerButtons from 0x100189ca4 to 0x100189d58 (180 bytes)
//
// 2 xrefs:
// > SetupShaderEffectPopup::setupShaderTrigger @ 0x100189998
// > SetupShaderEffectPopup::onZLayer @ 0x100189c68
//
// 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 __fastcall SetupShaderEffectPopup::updateZLayerButtons(SetupShaderEffectPopup *a1)
{
__int64 v2; // x20
ButtonSprite *v3; // x21
int v4; // w0
int m_zLayerMin; // w8
int m_zLayerMax; // w9
const char *v7; // x1
if ( (unsigned int)sub_10024A36C(a1->m_zLayerSprites) )
{
v2 = 0;
do
{
v3 = (ButtonSprite *)sub_10024A388(a1->m_zLayerSprites, v2);
v4 = ((__int64 (__fastcall *)(ButtonSprite *))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_zLayerMax || v4 <= m_zLayerMin )
{
v7 = "GJ_button_04.png";
}
else
{
v7 = "GJ_button_01.png";
}
ButtonSprite::updateBGImage(v3, v7);
v2 = (unsigned int)(v2 + 1);
}
while ( (unsigned int)v2 < (unsigned int)sub_10024A36C(a1->m_zLayerSprites) );
}
}