{"type": "func", "start": 4664700, "end": 4664806, "name": "GJBaseGameLayer::removeGroupParent", "pseudocode": "// \n// GJBaseGameLayer::removeGroupParent from 0x472d7c to 0x472de6 (106 bytes)\n// \n// 3 xrefs:\n// > GJBaseGameLayer::setGroupParent @ 0x472e10\n// > GJBaseGameLayer::removeFromGroup @ 0x472eec\n// > SetGroupIDLayer::callRemoveFromGroup @ 0x509cd4\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; // r6\n  cocos2d::CCArray *v5; // r4\n  unsigned int i; // r5\n\n  GroupParent = GJBaseGameLayer::getGroupParent(a1, a2);\n  if ( GroupParent )\n  {\n    v5 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(a1->m_parentGroupIDs, GroupParent->m_uniqueID);\n    if ( !v5 )\n      goto LABEL_9;\n    for ( i = 0; i < cocos2d::CCArray::count(v5); ++i )\n    {\n      if ( *(_DWORD *)(cocos2d::CCArray::objectAtIndex(v5, i) + 52) == a2 )\n      {\n        cocos2d::CCArray::removeObjectAtIndex(v5, i, 1);\n        break;\n      }\n    }\n    if ( !cocos2d::CCArray::count(v5) )\nLABEL_9:\n      GroupParent->m_hasGroupParentsString = 0;\n    cocos2d::CCDictionary::removeObjectForKey(a1->m_parentGroupsDict, a2);\n  }\n}", "assembly": "; \n; GJBaseGameLayer::removeGroupParent from 0x472d7c to 0x472de6 (106 bytes)\n; \n; 3 xrefs:\n; > GJBaseGameLayer::setGroupParent @ 0x472e10\n; > GJBaseGameLayer::removeFromGroup @ 0x472eec\n; > SetGroupIDLayer::callRemoveFromGroup @ 0x509cd4\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.W          {R4-R8,LR}                                             ; +0x0, 0x472d7c\nMOV             R7, R0                                                 ; +0x4, 0x472d80\nMOV             R8, R1                                                 ; +0x6, 0x472d82\nBL              _ZN15GJBaseGameLayer14getGroupParentEi; GJBaseGameLayer::getGroupParent(int) ; +0x8, 0x472d84\nMOV             R6, R0                                                 ; +0xc, 0x472d88\nCBZ             R0, locret_472DE2                                      ; +0xe, 0x472d8a\nLDR.W           R0, [R7,#0x9B4]; this                                  ; +0x10, 0x472d8c\nLDR.W           R1, [R6,#0x304]; int                                   ; +0x14, 0x472d90\nBL              _ZN7cocos2d12CCDictionary12objectForKeyEi; cocos2d::CCDictionary::objectForKey(int) ; +0x18, 0x472d94\nMOV             R4, R0                                                 ; +0x1c, 0x472d98\nCBZ             R0, loc_472DCE                                         ; +0x1e, 0x472d9a\nMOVS            R5, #0                                                 ; +0x20, 0x472d9c\nMOV             R0, R4; this                                           ; +0x22, 0x472d9e\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x24, 0x472da0\nCMP             R5, R0                                                 ; +0x28, 0x472da4\nBCS             loc_472DC6                                             ; +0x2a, 0x472da6\nMOV             R0, R4; this                                           ; +0x2c, 0x472da8\nMOV             R1, R5; unsigned int                                   ; +0x2e, 0x472daa\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x30, 0x472dac\nLDR             R3, [R0,#0x34]                                         ; +0x34, 0x472db0\nCMP             R3, R8                                                 ; +0x36, 0x472db2\nBNE             loc_472DC2                                             ; +0x38, 0x472db4\nMOV             R0, R4; this                                           ; +0x3a, 0x472db6\nMOV             R1, R5; unsigned int                                   ; +0x3c, 0x472db8\nMOVS            R2, #1; bool                                           ; +0x3e, 0x472dba\nBL              _ZN7cocos2d7CCArray19removeObjectAtIndexEjb; cocos2d::CCArray::removeObjectAtIndex(uint,bool) ; +0x40, 0x472dbc\nB               loc_472DC6                                             ; +0x44, 0x472dc0\nADDS            R5, #1                                                 ; +0x46, 0x472dc2\nB               loc_472D9E                                             ; +0x48, 0x472dc4\nMOV             R0, R4; this                                           ; +0x4a, 0x472dc6\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x4c, 0x472dc8\nCBNZ            R0, loc_472DD4                                         ; +0x50, 0x472dcc\nMOVS            R3, #0                                                 ; +0x52, 0x472dce\nSTRB.W          R3, [R6,#0x3F6]                                        ; +0x54, 0x472dd0\nLDR.W           R0, [R7,#0x9B0]; this                                  ; +0x58, 0x472dd4\nMOV             R1, R8; int                                            ; +0x5c, 0x472dd8\nPOP.W           {R4-R8,LR}                                             ; +0x5e, 0x472dda\nB.W             _ZN7cocos2d12CCDictionary18removeObjectForKeyEi; cocos2d::CCDictionary::removeObjectForKey(int) ; +0x62, 0x472dde\nPOP.W           {R4-R8,PC}                                             ; +0x66, 0x472de2", "xrefs": ["GJBaseGameLayer::setGroupParent @ 0x472e10", "GJBaseGameLayer::removeFromGroup @ 0x472eec", "SetGroupIDLayer::callRemoveFromGroup @ 0x509cd4"], "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"}