//
// SetupGradientPopup::onZLayer from 0x140421ef0 to 0x140421f80 (144 bytes)
//
// 2 xrefs:
// > SetupGradientPopup::init @ 0x1404219d9
// > ??> @ 0x1406d95b4
//
// 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 SetupGradientPopup::onZLayer(SetupGradientPopup *a1, cocos2d::CCObject *a2)
{
int v3; // eax
EffectGameObject *m_gameObject; // rcx
unsigned int i; // edi
struct cocos2d::CCObject *v6; // rax
v3 = a2->getTag(a2);
m_gameObject = a1->m_gameObject;
a1->m_blendingLayer = v3;
if ( m_gameObject )
{
LODWORD(m_gameObject[1].EnhancedGameObject::GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable) = v3;
SetupGradientPopup::updateZLayerButtons(a1);
}
else
{
for ( i = 0; i < cocos2d::CCArray::count(a1->m_gameObjects); v6[33].m_uID = a1->m_blendingLayer )
v6 = cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, i++);
SetupGradientPopup::updateZLayerButtons(a1);
}
}