{"type": "func", "start": 4657016, "end": 4657074, "name": "GJBaseGameLayer::getStaticGroup", "pseudocode": "// \n// GJBaseGameLayer::getStaticGroup from 0x470f78 to 0x470fb2 (58 bytes)\n// \n// 7 xrefs:\n// > PlayLayer::addToGroupOld @ 0x311618\n// > GJBaseGameLayer::addToGroup @ 0x471018\n// > GJBaseGameLayer::removeFromGroup @ 0x472ec6\n// > GJBaseGameLayer::processMoveActions @ 0x474d14\n// > GJBaseGameLayer::moveObjectToStaticGroup @ 0x4756c8\n// > GJBaseGameLayer::processRotationActions @ 0x47f540\n// > GJBaseGameLayer::processTransformActions @ 0x47fa14\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\ncocos2d::CCArray *GJBaseGameLayer::getStaticGroup(GJBaseGameLayer *a1, int a2)\n{\n  intptr_t v3; // r4\n  cocos2d::CCArray *v4; // r5\n\n  if ( a2 >= 9999 )\n    a2 = 9999;\n  v3 = a2 & ~(a2 >> 31);\n  v4 = a1->m_staticGroups.m_start[v3];\n  if ( !v4 )\n  {\n    v4 = (cocos2d::CCArray *)cocos2d::CCArray::create((cocos2d::CCArray *)a1);\n    cocos2d::CCDictionary::setObject(a1->m_staticGroupDict, v4, v3);\n    a1->m_staticGroups.m_start[v3] = v4;\n  }\n  return v4;\n}", "assembly": "; \n; GJBaseGameLayer::getStaticGroup from 0x470f78 to 0x470fb2 (58 bytes)\n; \n; 7 xrefs:\n; > PlayLayer::addToGroupOld @ 0x311618\n; > GJBaseGameLayer::addToGroup @ 0x471018\n; > GJBaseGameLayer::removeFromGroup @ 0x472ec6\n; > GJBaseGameLayer::processMoveActions @ 0x474d14\n; > GJBaseGameLayer::moveObjectToStaticGroup @ 0x4756c8\n; > GJBaseGameLayer::processRotationActions @ 0x47f540\n; > GJBaseGameLayer::processTransformActions @ 0x47fa14\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            {R4-R6,LR}                                             ; +0x0, 0x470f78\nMOVW            R4, #0x270F                                            ; +0x2, 0x470f7a\nCMP             R1, R4                                                 ; +0x6, 0x470f7e\nLDR.W           R3, [R0,#0x998]                                        ; +0x8, 0x470f80\nMOV             R6, R0                                                 ; +0xc, 0x470f84\nIT GE                                                                  ; +0xe, 0x470f86\nMOVGE           R1, R4                                                 ; +0x10, 0x470f88\nBIC.W           R4, R1, R1,ASR#31                                      ; +0x12, 0x470f8a\nLDR.W           R5, [R3,R4,LSL#2]                                      ; +0x16, 0x470f8e\nCBNZ            R5, loc_470FAE                                         ; +0x1a, 0x470f92\nBL              _ZN7cocos2d7CCArray6createEv; cocos2d::CCArray::create(void) ; +0x1c, 0x470f94\nMOV             R2, R4; int                                            ; +0x20, 0x470f98\nMOV             R5, R0                                                 ; +0x22, 0x470f9a\nLDR.W           R0, [R6,#0x984]; this                                  ; +0x24, 0x470f9c\nMOV             R1, R5; cocos2d::CCObject *                            ; +0x28, 0x470fa0\nBL              _ZN7cocos2d12CCDictionary9setObjectEPNS_8CCObjectEi; cocos2d::CCDictionary::setObject(cocos2d::CCObject *,int) ; +0x2a, 0x470fa2\nLDR.W           R3, [R6,#0x998]                                        ; +0x2e, 0x470fa6\nSTR.W           R5, [R3,R4,LSL#2]                                      ; +0x32, 0x470faa\nMOV             R0, R5                                                 ; +0x36, 0x470fae\nPOP             {R4-R6,PC}                                             ; +0x38, 0x470fb0", "xrefs": ["PlayLayer::addToGroupOld @ 0x311618", "GJBaseGameLayer::addToGroup @ 0x471018", "GJBaseGameLayer::removeFromGroup @ 0x472ec6", "GJBaseGameLayer::processMoveActions @ 0x474d14", "GJBaseGameLayer::moveObjectToStaticGroup @ 0x4756c8", "GJBaseGameLayer::processRotationActions @ 0x47f540", "GJBaseGameLayer::processTransformActions @ 0x47fa14"], "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"}