// // GJBaseGameLayer::removeFromGroup from 0x140224150 to 0x140224273 (291 bytes) // // 5 xrefs: // > @ 0x140567030 // > @ 0x1405c9c18 // > @ 0x14067ff90 // > @ 0x14067ffa0 // > @ 0x1406cd680 // // 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::removeFromGroup(GJBaseGameLayer *a1, GameObject *a2, int a3) { __int64 v3; // rbp cocos2d::CCArray *Group; // rax int v7; // eax __int64 v8; // r14 std::_Simple_types::value_type v9; // rdi std::_Vector_val>::pointer Myfirst; // rax v3 = a3; Group = GJBaseGameLayer::getGroup(a1, a3); cocos2d::CCArray::removeObject(Group, a2, 1); v7 = v3; if ( a2->m_isDecoration2 ) { if ( (int)v3 > 9999 ) v7 = 9999; if ( v7 < 0 ) v7 = 0; v8 = (unsigned int)v7; v9 = a1->m_optimizedGroups._Mypair._Myval2._Myfirst[v7]; if ( !v9 ) { v9 = (std::_Simple_types::value_type)cocos2d::CCArray::create(0); cocos2d::CCDictionary::setObject(a1->m_optimizedGroupDict, v9, (unsigned int)v8); Myfirst = a1->m_optimizedGroups._Mypair._Myval2._Myfirst; LABEL_14: Myfirst[v8] = v9; } } else { if ( (int)v3 > 9999 ) v7 = 9999; if ( v7 < 0 ) v7 = 0; v8 = (unsigned int)v7; v9 = a1->m_staticGroups._Mypair._Myval2._Myfirst[v7]; if ( !v9 ) { v9 = (std::_Simple_types::value_type)cocos2d::CCArray::create(0); cocos2d::CCDictionary::setObject(a1->m_staticGroupDict, v9, (unsigned int)v8); Myfirst = a1->m_staticGroups._Mypair._Myval2._Myfirst; goto LABEL_14; } } cocos2d::CCArray::removeObject(v9, a2, 1); if ( a2->m_hasGroupParentsString && a2 == cocos2d::CCDictionary::objectForKey(a1->m_parentGroupsDict, v3) ) GJBaseGameLayer::removeGroupParent(a1, v3); }