//
// SetupShaderEffectPopup::onZLayer from 0x687f60 to 0x68800c (172 bytes)
//
// 0 xrefs:
//
// 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::onZLayer(SetupShaderEffectPopup *this, cocos2d::CCObject *a2)
{
int v3; // r0
int v4; // r3
int v5; // r5
int v6; // r2
v3 = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2);
v4 = *((_DWORD *)this + 180);
if ( v3 <= v4 )
{
v6 = *((_DWORD *)this + 179);
if ( v3 >= v6 )
{
if ( v6 == v3 || v4 == v3 )
{
*((_DWORD *)this + 179) = v3;
*((_DWORD *)this + 180) = v3;
v5 = 1;
*((_BYTE *)this + 724) = 0;
goto LABEL_12;
}
v5 = 0;
if ( !*((_BYTE *)this + 724) )
{
v5 = *((unsigned __int8 *)this + 724);
*((_DWORD *)this + 180) = v3;
*((_BYTE *)this + 724) = 1;
goto LABEL_12;
}
*((_DWORD *)this + 179) = v3;
}
else
{
*((_DWORD *)this + 179) = v3;
v5 = 0;
}
*((_BYTE *)this + 724) = 0;
goto LABEL_12;
}
*((_DWORD *)this + 180) = v3;
*((_BYTE *)this + 724) = 1;
v5 = 0;
LABEL_12:
if ( *((_BYTE *)this + 724) || v5 )
SetupTriggerPopup::valueChanged((cocos2d::CCObject **)this, 197, (float)*((int *)this + 180));
if ( !*((_BYTE *)this + 724) || v5 )
SetupTriggerPopup::valueChanged((cocos2d::CCObject **)this, 196, (float)*((int *)this + 179));
return SetupShaderEffectPopup::updateZLayerButtons((cocos2d::CCArray **)this);
}