{"type": "func", "start": 8781892, "end": 8782100, "name": "GJBaseGameLayer::removeGroupParent", "pseudocode": "// \n// GJBaseGameLayer::removeGroupParent from 0x860044 to 0x860114 (208 bytes)\n// \n// 4 xrefs:\n// > GJBaseGameLayer::setGroupParent @ 0x860164\n// > GJBaseGameLayer::removeFromGroup @ 0x8602f0\n// > SetGroupIDLayer::callRemoveFromGroup @ 0x976bb8\n// > <???> @ 0x77598\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::removeGroupParent(GJBaseGameLayer *a1, int a2)\n{\n  GameObject *GroupParent; // x22\n  unsigned int v5; // w19\n  cocos2d::CCArray *v6; // x20\n\n  GroupParent = GJBaseGameLayer::getGroupParent(a1, a2);\n  if ( GroupParent )\n  {\n    v5 = 0;\n    v6 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(\n                               a1->m_parentGroupIDs,\n                               (unsigned int)GroupParent->m_uniqueID);\n    if ( v6 )\n    {\n      while ( 1 )\n      {\n        if ( v5 >= (unsigned int)cocos2d::CCArray::count(v6) )\n        {\n          if ( (unsigned int)cocos2d::CCArray::count(v6) )\n            goto LABEL_9;\n          goto LABEL_8;\n        }\n        if ( a2 == *(_DWORD *)(cocos2d::CCArray::objectAtIndex(v6, v5) + 56) )\n          break;\n        ++v5;\n      }\n      cocos2d::CCArray::removeObjectAtIndex(v6, v5, 1);\n      if ( !(unsigned int)cocos2d::CCArray::count(v6) )\n        goto LABEL_8;\n    }\n    else\n    {\nLABEL_8:\n      GroupParent->m_hasGroupParentsString = 0;\n    }\nLABEL_9:\n    cocos2d::CCDictionary::removeObjectForKey(a1->m_parentGroupsDict, a2);\n  }\n}", "assembly": "; \n; GJBaseGameLayer::removeGroupParent from 0x860044 to 0x860114 (208 bytes)\n; \n; 4 xrefs:\n; > GJBaseGameLayer::setGroupParent @ 0x860164\n; > GJBaseGameLayer::removeFromGroup @ 0x8602f0\n; > SetGroupIDLayer::callRemoveFromGroup @ 0x976bb8\n; > <???> @ 0x77598\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, 0x860044\nMOV             X29, SP                                                ; +0x4, 0x860048\nSTP             X21, X22, [SP,#0x40+var_20]                            ; +0x8, 0x86004c\nSTR             X23, [SP,#0x40+var_10]                                 ; +0xc, 0x860050\nMOV             W21, W1                                                ; +0x10, 0x860054\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0x14, 0x860058\nMOV             X23, X0                                                ; +0x18, 0x86005c\nBL              _ZN15GJBaseGameLayer14getGroupParentEi; GJBaseGameLayer::getGroupParent(int) ; +0x1c, 0x860060\nMOV             X22, X0                                                ; +0x20, 0x860064\nCBZ             X0, loc_860100                                         ; +0x24, 0x860068\nLDR             X0, [X23,#0xFB8]; this                                 ; +0x28, 0x86006c\nMOV             W19, #0                                                ; +0x2c, 0x860070\nLDR             W1, [X22,#0x384]; __int64                              ; +0x30, 0x860074\nBL              _ZN7cocos2d12CCDictionary12objectForKeyEl; cocos2d::CCDictionary::objectForKey(long) ; +0x34, 0x860078\nMOV             X20, X0                                                ; +0x38, 0x86007c\nCBNZ            X0, loc_86009C                                         ; +0x3c, 0x860080\nB               loc_8600C0                                             ; +0x40, 0x860084\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x44, 0x860088\nLDR             W0, [X0,#0x38]                                         ; +0x48, 0x86008c\nCMP             W21, W0                                                ; +0x4c, 0x860090\nB.EQ            loc_8600E0                                             ; +0x50, 0x860094\nADD             W19, W19, #1                                           ; +0x54, 0x860098\nMOV             X0, X20; this                                          ; +0x58, 0x86009c\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x5c, 0x8600a0\nCMP             W19, W0                                                ; +0x60, 0x8600a4\nMOV             W1, W19; unsigned int                                  ; +0x64, 0x8600a8\nMOV             X0, X20; this                                          ; +0x68, 0x8600ac\nB.CC            loc_860088                                             ; +0x6c, 0x8600b0\nMOV             X0, X20; this                                          ; +0x70, 0x8600b4\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x74, 0x8600b8\nCBNZ            W0, loc_8600C4                                         ; +0x78, 0x8600bc\nSTRB            WZR, [X22,#0x482]                                      ; +0x7c, 0x8600c0\nLDR             X0, [X23,#0xFB0]; this                                 ; +0x80, 0x8600c4\nSXTW            X1, W21; __int64                                       ; +0x84, 0x8600c8\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0x88, 0x8600cc\nLDP             X21, X22, [SP,#0x40+var_20]                            ; +0x8c, 0x8600d0\nLDR             X23, [SP,#0x40+var_10]                                 ; +0x90, 0x8600d4\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0x94, 0x8600d8\nB               _ZN7cocos2d12CCDictionary18removeObjectForKeyEl; cocos2d::CCDictionary::removeObjectForKey(long) ; +0x98, 0x8600dc\nMOV             X0, X20; this                                          ; +0x9c, 0x8600e0\nMOV             W1, W19; unsigned int                                  ; +0xa0, 0x8600e4\nMOV             W2, #1; bool                                           ; +0xa4, 0x8600e8\nBL              _ZN7cocos2d7CCArray19removeObjectAtIndexEjb; cocos2d::CCArray::removeObjectAtIndex(uint,bool) ; +0xa8, 0x8600ec\nMOV             X0, X20; this                                          ; +0xac, 0x8600f0\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0xb0, 0x8600f4\nCBZ             W0, loc_8600C0                                         ; +0xb4, 0x8600f8\nB               loc_8600C4                                             ; +0xb8, 0x8600fc\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0xbc, 0x860100\nLDP             X21, X22, [SP,#0x40+var_20]                            ; +0xc0, 0x860104\nLDR             X23, [SP,#0x40+var_10]                                 ; +0xc4, 0x860108\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0xc8, 0x86010c\nRET                                                                    ; +0xcc, 0x860110", "xrefs": ["GJBaseGameLayer::setGroupParent @ 0x860164", "GJBaseGameLayer::removeFromGroup @ 0x8602f0", "SetGroupIDLayer::callRemoveFromGroup @ 0x976bb8", "<???> @ 0x77598"], "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"}