//
// SetupGradientPopup::onZLayer from 0x100343514 to 0x100343590 (124 bytes)
//
// 1 xrefs:
// > SetupGradientPopup::init @ 0x100343030
//
// 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 SetupGradientPopup::onZLayer(SetupGradientPopup *a1, cocos2d::CCObject *a2)
{
int v3; // w0
EffectGameObject *m_gameObject; // x8
unsigned int v5; // w20
v3 = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2);
a1->m_blendingLayer = v3;
m_gameObject = a1->m_gameObject;
if ( m_gameObject )
{
*(_DWORD *)(&m_gameObject->m_canSpawnTriggers + 1) = v3;
}
else if ( (unsigned int)sub_10024A36C((__int64)a1->m_gameObjects) )
{
v5 = 0;
do
*(_DWORD *)(sub_10024A388((__int64)a1->m_gameObjects, v5++) + 1836) = a1->m_blendingLayer;
while ( v5 < (unsigned int)sub_10024A36C((__int64)a1->m_gameObjects) );
}
SetupGradientPopup::updateZLayerButtons(a1);
}