//
// GJBaseGameLayer::resetSpawnChannelIndex from 0x884d90 to 0x884e50 (192 bytes)
//
// 4 xrefs:
// > LevelEditorLayer::onPlaytest @ 0x664304
// > LevelEditorLayer::updateGameObjects @ 0x67b6ec
// > GJBaseGameLayer::resetLevelVariables @ 0x88b014
// > ??> @ 0xbf1f0
//
// 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::resetSpawnChannelIndex(GJBaseGameLayer *a1)
{
std::unordered_map *p_m_spawnChannelRelated0; // x23
std::unordered_map *p_m_spawnChannelRelated1; // x22
cocos2d::CCDictionary *m_spawnObjects; // x0
unsigned int v5; // w19
cocos2d::CCArray *v6; // x20
unsigned int v7; // w1
int v8; // [xsp+44h] [xbp+44h] BYREF
p_m_spawnChannelRelated0 = &a1->m_gameState.m_spawnChannelRelated0;
p_m_spawnChannelRelated1 = &a1->m_gameState.m_spawnChannelRelated1;
m_spawnObjects = a1->m_spawnObjects;
v5 = 0;
a1->m_gameState.m_currentChannel = 0;
v6 = cocos2d::CCDictionary::allKeys(m_spawnObjects);
while ( v5 < (unsigned int)cocos2d::CCArray::count(v6) )
{
v7 = v5++;
v8 = *(_DWORD *)(cocos2d::CCArray::objectAtIndex(v6, v7) + 56);
*(_DWORD *)std::__detail::_Map_base,std::allocator>,std::__detail::_Select1st,std::equal_to,std::hash,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits,true>::operator[](
p_m_spawnChannelRelated0,
&v8) = 0;
*std::__detail::_Map_base,std::allocator>,std::__detail::_Select1st,std::equal_to,std::hash,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits,true>::operator[](
(__int64)p_m_spawnChannelRelated1,
&v8) = 0;
}
}