//
// GJBaseGameLayer::resetGradientLayers from 0x1001efc28 to 0x1001efc90 (104 bytes)
//
// 3 xrefs:
// > GJBaseGameLayer::triggerGradientCommand @ 0x1001ef960
// > GJBaseGameLayer::resetLevelVariables @ 0x1002024b0
// > LevelEditorLayer::updateGameObjects @ 0x100358a54
//
// 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 GJBaseGameLayer::resetGradientLayers(GJBaseGameLayer *a1)
{
cocos2d::CCDictionary *m_gradientLayers; // x8
cocos2d::CCDictElement *m_pElements; // x8
cocos2d::CCDictElement *next; // x20
cocos2d::CCObject *m_pObject; // x19
m_gradientLayers = a1->m_gradientLayers;
if ( m_gradientLayers )
{
m_pElements = m_gradientLayers->m_pElements;
if ( m_pElements )
{
do
{
next = (cocos2d::CCDictElement *)m_pElements->hh.next;
m_pObject = m_pElements->m_pObject;
((void (__fastcall *)(cocos2d::CCObject *, _QWORD))m_pObject->__vftable[6].acceptVisitor)(m_pObject, 0);
*(_QWORD *)&m_pObject[10].m_uAutoReleaseCount = 0;
LOBYTE(m_pObject[10].m_uIndexInArray) = 0;
((void (__fastcall *)(cocos2d::CCObject *, _QWORD))m_pObject->__vftable[4].~CCObject)(m_pObject, 0);
m_pElements = next;
}
while ( next );
}
}
}