{"type": "func", "start": 4675230, "end": 4675324, "name": "GJBaseGameLayer::moveObjectToStaticGroup", "pseudocode": "// \n// GJBaseGameLayer::moveObjectToStaticGroup from 0x47569e to 0x4756fc (94 bytes)\n// \n// 2 xrefs:\n// > GJBaseGameLayer::optimizeMoveGroups @ 0x488cfe\n// > GJBaseGameLayer::optimizeMoveGroups @ 0x488e70\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::moveObjectToStaticGroup(GJBaseGameLayer *a1, GameObject *a2)\n{\n  int v4; // r4\n  int GroupID; // r8\n  cocos2d::CCArray *StaticGroup; // r7\n  cocos2d::CCArray *OptimizedGroup; // r8\n\n  if ( a2->m_isDecoration2 )\n  {\n    v4 = 0;\n    a2->m_isDecoration2 = 0;\n    while ( v4 < a2->m_groupCount )\n    {\n      GroupID = GameObject::getGroupID(a2, v4);\n      StaticGroup = GJBaseGameLayer::getStaticGroup(a1, GroupID);\n      OptimizedGroup = GJBaseGameLayer::getOptimizedGroup(a1, GroupID);\n      if ( !cocos2d::CCArray::containsObject(StaticGroup, a2) )\n        cocos2d::CCArray::addObject(StaticGroup, a2);\n      ++v4;\n      cocos2d::CCArray::removeObject(OptimizedGroup, a2, 1);\n    }\n  }\n}", "assembly": "; \n; GJBaseGameLayer::moveObjectToStaticGroup from 0x47569e to 0x4756fc (94 bytes)\n; \n; 2 xrefs:\n; > GJBaseGameLayer::optimizeMoveGroups @ 0x488cfe\n; > GJBaseGameLayer::optimizeMoveGroups @ 0x488e70\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,#0x44E]                                        ; +0x0, 0x47569e\nPUSH.W          {R4-R8,LR}                                             ; +0x4, 0x4756a2\nMOV             R6, R0                                                 ; +0x8, 0x4756a6\nMOV             R5, R1                                                 ; +0xa, 0x4756a8\nCBZ             R3, locret_4756F8                                      ; +0xc, 0x4756aa\nMOVS            R4, #0                                                 ; +0xe, 0x4756ac\nSTRB.W          R4, [R1,#0x44E]                                        ; +0x10, 0x4756ae\nLDRSH.W         R3, [R5,#0x3F4]                                        ; +0x14, 0x4756b2\nCMP             R4, R3                                                 ; +0x18, 0x4756b6\nBGE             locret_4756F8                                          ; +0x1a, 0x4756b8\nMOV             R1, R4; int                                            ; +0x1c, 0x4756ba\nMOV             R0, R5; this                                           ; +0x1e, 0x4756bc\nBL              _ZN10GameObject10getGroupIDEi; GameObject::getGroupID(int) ; +0x20, 0x4756be\nMOV             R8, R0                                                 ; +0x24, 0x4756c2\nMOV             R0, R6; this                                           ; +0x26, 0x4756c4\nMOV             R1, R8; int                                            ; +0x28, 0x4756c6\nBL              _ZN15GJBaseGameLayer14getStaticGroupEi; GJBaseGameLayer::getStaticGroup(int) ; +0x2a, 0x4756c8\nMOV             R1, R8; int                                            ; +0x2e, 0x4756cc\nMOV             R7, R0                                                 ; +0x30, 0x4756ce\nMOV             R0, R6; this                                           ; +0x32, 0x4756d0\nBL              _ZN15GJBaseGameLayer17getOptimizedGroupEi; GJBaseGameLayer::getOptimizedGroup(int) ; +0x34, 0x4756d2\nMOV             R1, R5; cocos2d::CCObject *                            ; +0x38, 0x4756d6\nMOV             R8, R0                                                 ; +0x3a, 0x4756d8\nMOV             R0, R7; this                                           ; +0x3c, 0x4756da\nBL              _ZNK7cocos2d7CCArray14containsObjectEPNS_8CCObjectE; cocos2d::CCArray::containsObject(cocos2d::CCObject *) ; +0x3e, 0x4756dc\nCBNZ            R0, loc_4756EA                                         ; +0x42, 0x4756e0\nMOV             R0, R7; this                                           ; +0x44, 0x4756e2\nMOV             R1, R5; cocos2d::CCObject *                            ; +0x46, 0x4756e4\nBL              _ZN7cocos2d7CCArray9addObjectEPNS_8CCObjectE; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x48, 0x4756e6\nMOV             R0, R8; this                                           ; +0x4c, 0x4756ea\nMOV             R1, R5; cocos2d::CCObject *                            ; +0x4e, 0x4756ec\nMOVS            R2, #1; bool                                           ; +0x50, 0x4756ee\nADDS            R4, #1                                                 ; +0x52, 0x4756f0\nBL              _ZN7cocos2d7CCArray12removeObjectEPNS_8CCObjectEb; cocos2d::CCArray::removeObject(cocos2d::CCObject *,bool) ; +0x54, 0x4756f2\nB               loc_4756B2                                             ; +0x58, 0x4756f6\nPOP.W           {R4-R8,PC}                                             ; +0x5a, 0x4756f8", "xrefs": ["GJBaseGameLayer::optimizeMoveGroups @ 0x488cfe", "GJBaseGameLayer::optimizeMoveGroups @ 0x488e70"], "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"}