//
// GJBaseGameLayer::resetGradientLayers from 0x85c810 to 0x85c880 (112 bytes)
//
// 4 xrefs:
// > LevelEditorLayer::updateGameObjects @ 0x67b724
// > GJBaseGameLayer::triggerGradientCommand @ 0x86c324
// > GJBaseGameLayer::resetLevelVariables @ 0x88ac60
// > ??> @ 0xbb1b8
//
// 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 GJBaseGameLayer::resetGradientLayers(GJBaseGameLayer *a1)
{
cocos2d::CCDictionary *m_gradientLayers; // x0
cocos2d::CCDictElement *m_pElements; // x0
cocos2d::CCDictElement *i; // x20
cocos2d::CCObject *m_pObject; // x19
cocos2d::CCObject_vtbl *v5; // x2
m_gradientLayers = a1->m_gradientLayers;
if ( m_gradientLayers )
{
m_pElements = m_gradientLayers->m_pElements;
if ( m_pElements )
{
for ( i = (cocos2d::CCDictElement *)m_pElements->hh.next; ; i = (cocos2d::CCDictElement *)i->hh.next )
{
m_pObject = m_pElements->m_pObject;
m_pObject->__vftable[6].acceptVisitor(m_pObject, nullptr);
*(_QWORD *)&m_pObject[10].m_uAutoReleaseCount = 0;
v5 = m_pObject->__vftable;
LOBYTE(m_pObject[10].m_uIndexInArray) = 0;
((void (__fastcall *)(cocos2d::CCObject *, _QWORD))v5[4].~CCObject)(m_pObject, 0);
m_pElements = i;
if ( !i )
break;
}
}
}
}