{"type": "func", "start": 4665074, "end": 4665168, "name": "GJBaseGameLayer::removeFromGroupParents", "pseudocode": "// \n// GJBaseGameLayer::removeFromGroupParents from 0x472ef2 to 0x472f50 (94 bytes)\n// \n// 1 xrefs:\n// > LevelEditorLayer::removeSpecial @ 0x36ab9e\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid GJBaseGameLayer::removeFromGroupParents(GJBaseGameLayer *a1, GameObject *a2)\n{\n  cocos2d::CCArray *v4; // r6\n  unsigned int i; // r7\n  int v6; // r0\n\n  if ( a2->m_hasGroupParentsString )\n  {\n    v4 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(a1->m_parentGroupIDs, a2->m_uniqueID);\n    if ( v4 )\n    {\n      for ( i = 0; i < cocos2d::CCArray::count(v4); ++i )\n      {\n        v6 = cocos2d::CCArray::objectAtIndex(v4, i);\n        cocos2d::CCDictionary::removeObjectForKey(a1->m_parentGroupsDict, *(_DWORD *)(v6 + 52));\n      }\n      cocos2d::CCDictionary::setObject(a1->m_removedParentGroupIDs, v4, a2->m_uniqueID);\n      cocos2d::CCDictionary::removeObjectForKey(a1->m_parentGroupIDs, a2->m_uniqueID);\n    }\n  }\n}", "assembly": "; \n; GJBaseGameLayer::removeFromGroupParents from 0x472ef2 to 0x472f50 (94 bytes)\n; \n; 1 xrefs:\n; > LevelEditorLayer::removeSpecial @ 0x36ab9e\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nPUSH            {R3-R7,LR}                                             ; +0x0, 0x472ef2\nMOV             R5, R0                                                 ; +0x2, 0x472ef4\nLDRB.W          R3, [R1,#0x3F6]                                        ; +0x4, 0x472ef6\nMOV             R4, R1                                                 ; +0x8, 0x472efa\nCBZ             R3, locret_472F4E                                      ; +0xa, 0x472efc\nLDR.W           R0, [R0,#0x9B4]; this                                  ; +0xc, 0x472efe\nLDR.W           R1, [R1,#0x304]; int                                   ; +0x10, 0x472f02\nBL              _ZN7cocos2d12CCDictionary12objectForKeyEi; cocos2d::CCDictionary::objectForKey(int) ; +0x14, 0x472f06\nMOV             R6, R0                                                 ; +0x18, 0x472f0a\nCBZ             R0, locret_472F4E                                      ; +0x1a, 0x472f0c\nMOVS            R7, #0                                                 ; +0x1c, 0x472f0e\nMOV             R0, R6; this                                           ; +0x1e, 0x472f10\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x20, 0x472f12\nCMP             R7, R0                                                 ; +0x24, 0x472f16\nBCS             loc_472F30                                             ; +0x26, 0x472f18\nMOV             R1, R7; unsigned int                                   ; +0x28, 0x472f1a\nMOV             R0, R6; this                                           ; +0x2a, 0x472f1c\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x2c, 0x472f1e\nADDS            R7, #1                                                 ; +0x30, 0x472f22\nLDR             R1, [R0,#0x34]; int                                    ; +0x32, 0x472f24\nLDR.W           R0, [R5,#0x9B0]; this                                  ; +0x34, 0x472f26\nBL              _ZN7cocos2d12CCDictionary18removeObjectForKeyEi; cocos2d::CCDictionary::removeObjectForKey(int) ; +0x38, 0x472f2a\nB               loc_472F10                                             ; +0x3c, 0x472f2e\nLDR.W           R0, [R5,#0x9B8]; this                                  ; +0x3e, 0x472f30\nMOV             R1, R6; cocos2d::CCObject *                            ; +0x42, 0x472f34\nLDR.W           R2, [R4,#0x304]; int                                   ; +0x44, 0x472f36\nBL              _ZN7cocos2d12CCDictionary9setObjectEPNS_8CCObjectEi; cocos2d::CCDictionary::setObject(cocos2d::CCObject *,int) ; +0x48, 0x472f3a\nLDR.W           R0, [R5,#0x9B4]; this                                  ; +0x4c, 0x472f3e\nLDR.W           R1, [R4,#0x304]; int                                   ; +0x50, 0x472f42\nPOP.W           {R3-R7,LR}                                             ; +0x54, 0x472f46\nB.W             _ZN7cocos2d12CCDictionary18removeObjectForKeyEi; cocos2d::CCDictionary::removeObjectForKey(int) ; +0x58, 0x472f4a\nPOP             {R3-R7,PC}                                             ; +0x5c, 0x472f4e", "xrefs": ["LevelEditorLayer::removeSpecial @ 0x36ab9e"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}