{"type": "func", "start": 8782740, "end": 8782928, "name": "GJBaseGameLayer::addToGroupParents", "pseudocode": "// \n// GJBaseGameLayer::addToGroupParents from 0x860394 to 0x860450 (188 bytes)\n// \n// 2 xrefs:\n// > LevelEditorLayer::addSpecial @ 0x6708d0\n// > <???> @ 0x7be70\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; // x20\n  unsigned int v5; // w19\n  int v6; // w21\n  bool v7; // cf\n  unsigned int v8; // w1\n\n  if ( a2->m_hasGroupParentsString )\n  {\n    v4 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(\n                               a1->m_removedParentGroupIDs,\n                               (unsigned int)a2->m_uniqueID);\n    if ( v4 )\n    {\n      a2->m_hasGroupParentsString = 0;\n      v5 = 0;\n      while ( 1 )\n      {\n        v7 = v5 >= (unsigned int)cocos2d::CCArray::count(v4);\n        v8 = v5++;\n        if ( v7 )\n          break;\n        v6 = *(_DWORD *)(cocos2d::CCArray::objectAtIndex(v4, v8) + 56);\n        if ( !GJBaseGameLayer::getGroupParent(a1, v6) )\n          GJBaseGameLayer::setGroupParent(a1, a2, v6);\n      }\n      cocos2d::CCDictionary::removeObjectForKey(a1->m_removedParentGroupIDs, (unsigned int)a2->m_uniqueID);\n    }\n  }\n}", "assembly": "; \n; GJBaseGameLayer::addToGroupParents from 0x860394 to 0x860450 (188 bytes)\n; \n; 2 xrefs:\n; > LevelEditorLayer::addSpecial @ 0x6708d0\n; > <???> @ 0x7be70\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\nSTP             X29, X30, [SP,#var_40]!                                ; +0x0, 0x860394\nMOV             X29, SP                                                ; +0x4, 0x860398\nLDRB            W2, [X1,#0x482]                                        ; +0x8, 0x86039c\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0xc, 0x8603a0\nSTP             X21, X22, [SP,#0x40+var_20]                            ; +0x10, 0x8603a4\nSTR             X23, [SP,#0x40+var_10]                                 ; +0x14, 0x8603a8\nCBNZ            W2, loc_8603C4                                         ; +0x18, 0x8603ac\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0x1c, 0x8603b0\nLDP             X21, X22, [SP,#0x40+var_20]                            ; +0x20, 0x8603b4\nLDR             X23, [SP,#0x40+var_10]                                 ; +0x24, 0x8603b8\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0x28, 0x8603bc\nRET                                                                    ; +0x2c, 0x8603c0\nMOV             X22, X0                                                ; +0x30, 0x8603c4\nMOV             X23, X1                                                ; +0x34, 0x8603c8\nLDR             X0, [X0,#0xFC0]; this                                  ; +0x38, 0x8603cc\nLDR             W1, [X1,#0x384]; __int64                               ; +0x3c, 0x8603d0\nBL              _ZN7cocos2d12CCDictionary12objectForKeyEl; cocos2d::CCDictionary::objectForKey(long) ; +0x40, 0x8603d4\nMOV             X20, X0                                                ; +0x44, 0x8603d8\nCBZ             X0, loc_8603B0                                         ; +0x48, 0x8603dc\nSTRB            WZR, [X23,#0x482]                                      ; +0x4c, 0x8603e0\nMOV             W19, #0                                                ; +0x50, 0x8603e4\nB               loc_860404                                             ; +0x54, 0x8603e8\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x58, 0x8603ec\nLDR             W21, [X0,#0x38]                                        ; +0x5c, 0x8603f0\nMOV             X0, X22; this                                          ; +0x60, 0x8603f4\nMOV             W1, W21; int                                           ; +0x64, 0x8603f8\nBL              _ZN15GJBaseGameLayer14getGroupParentEi; GJBaseGameLayer::getGroupParent(int) ; +0x68, 0x8603fc\nCBZ             X0, loc_86043C                                         ; +0x6c, 0x860400\nMOV             X0, X20; this                                          ; +0x70, 0x860404\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x74, 0x860408\nCMP             W19, W0                                                ; +0x78, 0x86040c\nMOV             W1, W19; unsigned int                                  ; +0x7c, 0x860410\nMOV             X0, X20; this                                          ; +0x80, 0x860414\nADD             W19, W19, #1                                           ; +0x84, 0x860418\nB.CC            loc_8603EC                                             ; +0x88, 0x86041c\nLDR             X0, [X22,#0xFC0]; this                                 ; +0x8c, 0x860420\nLDR             W1, [X23,#0x384]; __int64                              ; +0x90, 0x860424\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0x94, 0x860428\nLDP             X21, X22, [SP,#0x40+var_20]                            ; +0x98, 0x86042c\nLDR             X23, [SP,#0x40+var_10]                                 ; +0x9c, 0x860430\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0xa0, 0x860434\nB               _ZN7cocos2d12CCDictionary18removeObjectForKeyEl; cocos2d::CCDictionary::removeObjectForKey(long) ; +0xa4, 0x860438\nMOV             X0, X22; this                                          ; +0xa8, 0x86043c\nMOV             X1, X23; GameObject *                                  ; +0xac, 0x860440\nMOV             W2, W21; int                                           ; +0xb0, 0x860444\nBL              _ZN15GJBaseGameLayer14setGroupParentEP10GameObjecti; GJBaseGameLayer::setGroupParent(GameObject *,int) ; +0xb4, 0x860448\nB               loc_860404                                             ; +0xb8, 0x86044c", "xrefs": ["LevelEditorLayer::addSpecial @ 0x6708d0", "<???> @ 0x7be70"], "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"}