{"type": "func", "start": 4665168, "end": 4665270, "name": "GJBaseGameLayer::addToGroupParents", "pseudocode": "// \n// GJBaseGameLayer::addToGroupParents from 0x472f50 to 0x472fb6 (102 bytes)\n// \n// 1 xrefs:\n// > LevelEditorLayer::addSpecial @ 0x370d5a\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::addToGroupParents(GJBaseGameLayer *a1, GameObject *a2)\n{\n  cocos2d::CCArray *v4; // r7\n  unsigned int v5; // r4\n  int v6; // r8\n\n  if ( a2->m_hasGroupParentsString )\n  {\n    v4 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(a1->m_removedParentGroupIDs, a2->m_uniqueID);\n    if ( v4 )\n    {\n      v5 = 0;\n      a2->m_hasGroupParentsString = 0;\n      while ( v5 < cocos2d::CCArray::count(v4) )\n      {\n        v6 = *(_DWORD *)(cocos2d::CCArray::objectAtIndex(v4, v5) + 52);\n        if ( !GJBaseGameLayer::getGroupParent(a1, v6) )\n          GJBaseGameLayer::setGroupParent(a1, a2, v6);\n        ++v5;\n      }\n      cocos2d::CCDictionary::removeObjectForKey(a1->m_removedParentGroupIDs, a2->m_uniqueID);\n    }\n  }\n}", "assembly": "; \n; GJBaseGameLayer::addToGroupParents from 0x472f50 to 0x472fb6 (102 bytes)\n; \n; 1 xrefs:\n; > LevelEditorLayer::addSpecial @ 0x370d5a\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\nLDRB.W          R3, [R1,#0x3F6]                                        ; +0x0, 0x472f50\nPUSH.W          {R4-R8,LR}                                             ; +0x4, 0x472f54\nMOV             R6, R0                                                 ; +0x8, 0x472f58\nMOV             R5, R1                                                 ; +0xa, 0x472f5a\nCBZ             R3, locret_472FB2                                      ; +0xc, 0x472f5c\nLDR.W           R0, [R0,#0x9B8]; this                                  ; +0xe, 0x472f5e\nLDR.W           R1, [R1,#0x304]; int                                   ; +0x12, 0x472f62\nBL              _ZN7cocos2d12CCDictionary12objectForKeyEi; cocos2d::CCDictionary::objectForKey(int) ; +0x16, 0x472f66\nMOV             R7, R0                                                 ; +0x1a, 0x472f6a\nCBZ             R0, locret_472FB2                                      ; +0x1c, 0x472f6c\nMOVS            R4, #0                                                 ; +0x1e, 0x472f6e\nSTRB.W          R4, [R5,#0x3F6]                                        ; +0x20, 0x472f70\nMOV             R0, R7; this                                           ; +0x24, 0x472f74\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x26, 0x472f76\nCMP             R4, R0                                                 ; +0x2a, 0x472f7a\nBCS             loc_472FA2                                             ; +0x2c, 0x472f7c\nMOV             R1, R4; unsigned int                                   ; +0x2e, 0x472f7e\nMOV             R0, R7; this                                           ; +0x30, 0x472f80\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x32, 0x472f82\nLDR.W           R8, [R0,#0x34]                                         ; +0x36, 0x472f86\nMOV             R0, R6; this                                           ; +0x3a, 0x472f8a\nMOV             R1, R8; int                                            ; +0x3c, 0x472f8c\nBL              _ZN15GJBaseGameLayer14getGroupParentEi; GJBaseGameLayer::getGroupParent(int) ; +0x3e, 0x472f8e\nCBNZ            R0, loc_472F9E                                         ; +0x42, 0x472f92\nMOV             R0, R6; this                                           ; +0x44, 0x472f94\nMOV             R1, R5; GameObject *                                   ; +0x46, 0x472f96\nMOV             R2, R8; int                                            ; +0x48, 0x472f98\nBL              _ZN15GJBaseGameLayer14setGroupParentEP10GameObjecti; GJBaseGameLayer::setGroupParent(GameObject *,int) ; +0x4a, 0x472f9a\nADDS            R4, #1                                                 ; +0x4e, 0x472f9e\nB               loc_472F74                                             ; +0x50, 0x472fa0\nLDR.W           R0, [R6,#0x9B8]; this                                  ; +0x52, 0x472fa2\nLDR.W           R1, [R5,#0x304]; int                                   ; +0x56, 0x472fa6\nPOP.W           {R4-R8,LR}                                             ; +0x5a, 0x472faa\nB.W             _ZN7cocos2d12CCDictionary18removeObjectForKeyEi; cocos2d::CCDictionary::removeObjectForKey(int) ; +0x5e, 0x472fae\nPOP.W           {R4-R8,PC}                                             ; +0x62, 0x472fb2", "xrefs": ["LevelEditorLayer::addSpecial @ 0x370d5a"], "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"}