//
// SetupShaderEffectPopup::onZLayer from 0xb31d98 to 0xb31e64 (204 bytes)
//
// 3 xrefs:
// > ??> @ 0x104938
// > SetupShaderEffectPopup::setupShaderTrigger @ 0xb3a5cc
// > ??> @ 0x1547f50
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:01:44 +0000
//
__int64 __fastcall SetupShaderEffectPopup::onZLayer(SetupShaderEffectPopup *this, cocos2d::CCObject *a2)
{
int v3; // w0
int v4; // w1
int v5; // w2
v3 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2);
v4 = *((_DWORD *)this + 257);
if ( v3 > v4 )
goto LABEL_9;
v5 = *((_DWORD *)this + 256);
if ( v3 >= v5 )
{
if ( v3 == v5 || v3 == v4 )
{
*((_DWORD *)this + 256) = v3;
*((_DWORD *)this + 257) = v3;
*((_BYTE *)this + 1032) = 0;
SetupTriggerPopup::valueChanged(this, 197, (float)v3);
LABEL_12:
v3 = *((_DWORD *)this + 256);
goto LABEL_7;
}
if ( *((_BYTE *)this + 1032) )
goto LABEL_6;
LABEL_9:
*((_DWORD *)this + 257) = v3;
*((_BYTE *)this + 1032) = 1;
SetupTriggerPopup::valueChanged(this, 197, (float)v3);
if ( *((_BYTE *)this + 1032) )
return SetupShaderEffectPopup::updateZLayerButtons((cocos2d::CCArray **)this);
goto LABEL_12;
}
LABEL_6:
*((_DWORD *)this + 256) = v3;
*((_BYTE *)this + 1032) = 0;
LABEL_7:
SetupTriggerPopup::valueChanged(this, 196, (float)v3);
return SetupShaderEffectPopup::updateZLayerButtons((cocos2d::CCArray **)this);
}