{"type": "func", "start": 4656502, "end": 4656560, "name": "GJBaseGameLayer::getGroup", "pseudocode": "// \n// GJBaseGameLayer::getGroup from 0x470d76 to 0x470db0 (58 bytes)\n// \n// 53 xrefs:\n// > PlayLayer::addToGroupOld @ 0x3115f0\n// > PlayLayer::removeFromGroupOld @ 0x31165e\n// > PlayLayer::processLoadedMoveActions @ 0x314e4c\n// > PlayLayer::optimizeColorGroups @ 0x3163c8\n// > PlayLayer::optimizeOpacityGroups @ 0x31649c\n// > PlayLayer::scanDynamicSaveObjects @ 0x317280\n// > PlayLayer::loadFromCheckpoint @ 0x31f648\n// > LevelTools::sortSpeedObjects @ 0x32ca5c\n// > LevelEditorLayer::processLoadedMoveActions @ 0x36fd6e\n// > processTraceOutSource @ 0x377704\n// > drawTrace @ 0x378064\n// > drawTrace @ 0x378342\n// > processTrace @ 0x37986e\n// > LevelEditorLayer::updateDebugDraw @ 0x37a664\n// > KeyframeGameObject::updateShadowObjects @ 0x3eb832\n// > GJBaseGameLayer::getPortalTarget @ 0x470dc6\n// > GJBaseGameLayer::playAnimationCommand @ 0x470e78\n// > GJBaseGameLayer::toggleGroup @ 0x470eca\n// > GJBaseGameLayer::addToGroup @ 0x470ffe\n// > GJBaseGameLayer::getSingleGroupObject @ 0x47102e\n// > GJBaseGameLayer::getCenterGroupObject @ 0x471094\n// > GJBaseGameLayer::tryGetGroupParent @ 0x4710d2\n// > GJBaseGameLayer::tryGetObject @ 0x472af6\n// > GJBaseGameLayer::removeFromGroup @ 0x472eaa\n// > GJBaseGameLayer::triggerAreaEffectAnimation @ 0x473d20\n// > GJBaseGameLayer::moveObjectsSilent @ 0x474d9c\n// > GJBaseGameLayer::processPlayerFollowActions @ 0x474e7e\n// > GJBaseGameLayer::processFollowActions @ 0x475484\n// > GJBaseGameLayer::activateResetTrigger @ 0x475fc6\n// > GJBaseGameLayer::spawnParticleTrigger @ 0x477928\n// > GJBaseGameLayer::volumeForProximityEffect @ 0x4785aa\n// > GJBaseGameLayer::processRotationActions @ 0x47f562\n// > GJBaseGameLayer::processTransformActions @ 0x47fa38\n// > GJBaseGameLayer::triggerAdvancedFollowEditCommand @ 0x480fa0\n// > GJBaseGameLayer::triggerAdvancedFollowEditCommand @ 0x480fbe\n// > GJBaseGameLayer::triggerAdvancedFollowEditCommand @ 0x48101a\n// > GJBaseGameLayer::spawnGroup @ 0x4817d6\n// > GJBaseGameLayer::positionUIObjects @ 0x4824fe\n// > GJBaseGameLayer::activateSFXEditTrigger @ 0x484c62\n// > GJBaseGameLayer::playKeyframeAnimation @ 0x4887fc\n// > GJBaseGameLayer::calculateColorGroups @ 0x488c10\n// > GJBaseGameLayer::optimizeMoveGroups @ 0x488d20\n// > GJBaseGameLayer::sortGroups @ 0x489d8e\n// > GJBaseGameLayer::processAdvancedFollowAction @ 0x48a162\n// > GJBaseGameLayer::processActivatedAudioTriggers @ 0x48b5de\n// > GJBaseGameLayer::generateVisibilityGroups @ 0x48d01a\n// > GJBaseGameLayer::generateVisibilityGroups @ 0x48d0c8\n// > GJBaseGameLayer::generateVisibilityGroups @ 0x48d154\n// > GJBaseGameLayer::generateTargetGroups @ 0x48d422\n// > GJBaseGameLayer::generateTargetGroups @ 0x48d7c8\n// > GJBaseGameLayer::generateTargetGroups @ 0x48d86a\n// > GJBaseGameLayer::controlTriggersInGroup @ 0x495e44\n// > GJBaseGameLayer::processAreaEffects @ 0x4969fe\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::getGroup(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_groups.m_start[v3];\n  if ( !v4 )\n  {\n    v4 = (cocos2d::CCArray *)cocos2d::CCArray::create((cocos2d::CCArray *)a1);\n    cocos2d::CCDictionary::setObject(a1->m_groupDict, v4, v3);\n    a1->m_groups.m_start[v3] = v4;\n  }\n  return v4;\n}", "assembly": "; \n; GJBaseGameLayer::getGroup from 0x470d76 to 0x470db0 (58 bytes)\n; \n; 53 xrefs:\n; > PlayLayer::addToGroupOld @ 0x3115f0\n; > PlayLayer::removeFromGroupOld @ 0x31165e\n; > PlayLayer::processLoadedMoveActions @ 0x314e4c\n; > PlayLayer::optimizeColorGroups @ 0x3163c8\n; > PlayLayer::optimizeOpacityGroups @ 0x31649c\n; > PlayLayer::scanDynamicSaveObjects @ 0x317280\n; > PlayLayer::loadFromCheckpoint @ 0x31f648\n; > LevelTools::sortSpeedObjects @ 0x32ca5c\n; > LevelEditorLayer::processLoadedMoveActions @ 0x36fd6e\n; > processTraceOutSource @ 0x377704\n; > drawTrace @ 0x378064\n; > drawTrace @ 0x378342\n; > processTrace @ 0x37986e\n; > LevelEditorLayer::updateDebugDraw @ 0x37a664\n; > KeyframeGameObject::updateShadowObjects @ 0x3eb832\n; > GJBaseGameLayer::getPortalTarget @ 0x470dc6\n; > GJBaseGameLayer::playAnimationCommand @ 0x470e78\n; > GJBaseGameLayer::toggleGroup @ 0x470eca\n; > GJBaseGameLayer::addToGroup @ 0x470ffe\n; > GJBaseGameLayer::getSingleGroupObject @ 0x47102e\n; > GJBaseGameLayer::getCenterGroupObject @ 0x471094\n; > GJBaseGameLayer::tryGetGroupParent @ 0x4710d2\n; > GJBaseGameLayer::tryGetObject @ 0x472af6\n; > GJBaseGameLayer::removeFromGroup @ 0x472eaa\n; > GJBaseGameLayer::triggerAreaEffectAnimation @ 0x473d20\n; > GJBaseGameLayer::moveObjectsSilent @ 0x474d9c\n; > GJBaseGameLayer::processPlayerFollowActions @ 0x474e7e\n; > GJBaseGameLayer::processFollowActions @ 0x475484\n; > GJBaseGameLayer::activateResetTrigger @ 0x475fc6\n; > GJBaseGameLayer::spawnParticleTrigger @ 0x477928\n; > GJBaseGameLayer::volumeForProximityEffect @ 0x4785aa\n; > GJBaseGameLayer::processRotationActions @ 0x47f562\n; > GJBaseGameLayer::processTransformActions @ 0x47fa38\n; > GJBaseGameLayer::triggerAdvancedFollowEditCommand @ 0x480fa0\n; > GJBaseGameLayer::triggerAdvancedFollowEditCommand @ 0x480fbe\n; > GJBaseGameLayer::triggerAdvancedFollowEditCommand @ 0x48101a\n; > GJBaseGameLayer::spawnGroup @ 0x4817d6\n; > GJBaseGameLayer::positionUIObjects @ 0x4824fe\n; > GJBaseGameLayer::activateSFXEditTrigger @ 0x484c62\n; > GJBaseGameLayer::playKeyframeAnimation @ 0x4887fc\n; > GJBaseGameLayer::calculateColorGroups @ 0x488c10\n; > GJBaseGameLayer::optimizeMoveGroups @ 0x488d20\n; > GJBaseGameLayer::sortGroups @ 0x489d8e\n; > GJBaseGameLayer::processAdvancedFollowAction @ 0x48a162\n; > GJBaseGameLayer::processActivatedAudioTriggers @ 0x48b5de\n; > GJBaseGameLayer::generateVisibilityGroups @ 0x48d01a\n; > GJBaseGameLayer::generateVisibilityGroups @ 0x48d0c8\n; > GJBaseGameLayer::generateVisibilityGroups @ 0x48d154\n; > GJBaseGameLayer::generateTargetGroups @ 0x48d422\n; > GJBaseGameLayer::generateTargetGroups @ 0x48d7c8\n; > GJBaseGameLayer::generateTargetGroups @ 0x48d86a\n; > GJBaseGameLayer::controlTriggersInGroup @ 0x495e44\n; > GJBaseGameLayer::processAreaEffects @ 0x4969fe\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, 0x470d76\nMOVW            R4, #0x270F                                            ; +0x2, 0x470d78\nCMP             R1, R4                                                 ; +0x6, 0x470d7c\nLDR.W           R3, [R0,#0x98C]                                        ; +0x8, 0x470d7e\nMOV             R6, R0                                                 ; +0xc, 0x470d82\nIT GE                                                                  ; +0xe, 0x470d84\nMOVGE           R1, R4                                                 ; +0x10, 0x470d86\nBIC.W           R4, R1, R1,ASR#31                                      ; +0x12, 0x470d88\nLDR.W           R5, [R3,R4,LSL#2]                                      ; +0x16, 0x470d8c\nCBNZ            R5, loc_470DAC                                         ; +0x1a, 0x470d90\nBL              _ZN7cocos2d7CCArray6createEv; cocos2d::CCArray::create(void) ; +0x1c, 0x470d92\nMOV             R2, R4; int                                            ; +0x20, 0x470d96\nMOV             R5, R0                                                 ; +0x22, 0x470d98\nLDR.W           R0, [R6,#0x980]; this                                  ; +0x24, 0x470d9a\nMOV             R1, R5; cocos2d::CCObject *                            ; +0x28, 0x470d9e\nBL              _ZN7cocos2d12CCDictionary9setObjectEPNS_8CCObjectEi; cocos2d::CCDictionary::setObject(cocos2d::CCObject *,int) ; +0x2a, 0x470da0\nLDR.W           R3, [R6,#0x98C]                                        ; +0x2e, 0x470da4\nSTR.W           R5, [R3,R4,LSL#2]                                      ; +0x32, 0x470da8\nMOV             R0, R5                                                 ; +0x36, 0x470dac\nPOP             {R4-R6,PC}                                             ; +0x38, 0x470dae", "xrefs": ["PlayLayer::addToGroupOld @ 0x3115f0", "PlayLayer::removeFromGroupOld @ 0x31165e", "PlayLayer::processLoadedMoveActions @ 0x314e4c", "PlayLayer::optimizeColorGroups @ 0x3163c8", "PlayLayer::optimizeOpacityGroups @ 0x31649c", "PlayLayer::scanDynamicSaveObjects @ 0x317280", "PlayLayer::loadFromCheckpoint @ 0x31f648", "LevelTools::sortSpeedObjects @ 0x32ca5c", "LevelEditorLayer::processLoadedMoveActions @ 0x36fd6e", "processTraceOutSource @ 0x377704", "drawTrace @ 0x378064", "drawTrace @ 0x378342", "processTrace @ 0x37986e", "LevelEditorLayer::updateDebugDraw @ 0x37a664", "KeyframeGameObject::updateShadowObjects @ 0x3eb832", "GJBaseGameLayer::getPortalTarget @ 0x470dc6", "GJBaseGameLayer::playAnimationCommand @ 0x470e78", "GJBaseGameLayer::toggleGroup @ 0x470eca", "GJBaseGameLayer::addToGroup @ 0x470ffe", "GJBaseGameLayer::getSingleGroupObject @ 0x47102e", "GJBaseGameLayer::getCenterGroupObject @ 0x471094", "GJBaseGameLayer::tryGetGroupParent @ 0x4710d2", "GJBaseGameLayer::tryGetObject @ 0x472af6", "GJBaseGameLayer::removeFromGroup @ 0x472eaa", "GJBaseGameLayer::triggerAreaEffectAnimation @ 0x473d20", "GJBaseGameLayer::moveObjectsSilent @ 0x474d9c", "GJBaseGameLayer::processPlayerFollowActions @ 0x474e7e", "GJBaseGameLayer::processFollowActions @ 0x475484", "GJBaseGameLayer::activateResetTrigger @ 0x475fc6", "GJBaseGameLayer::spawnParticleTrigger @ 0x477928", "GJBaseGameLayer::volumeForProximityEffect @ 0x4785aa", "GJBaseGameLayer::processRotationActions @ 0x47f562", "GJBaseGameLayer::processTransformActions @ 0x47fa38", "GJBaseGameLayer::triggerAdvancedFollowEditCommand @ 0x480fa0", "GJBaseGameLayer::triggerAdvancedFollowEditCommand @ 0x480fbe", "GJBaseGameLayer::triggerAdvancedFollowEditCommand @ 0x48101a", "GJBaseGameLayer::spawnGroup @ 0x4817d6", "GJBaseGameLayer::positionUIObjects @ 0x4824fe", "GJBaseGameLayer::activateSFXEditTrigger @ 0x484c62", "GJBaseGameLayer::playKeyframeAnimation @ 0x4887fc", "GJBaseGameLayer::calculateColorGroups @ 0x488c10", "GJBaseGameLayer::optimizeMoveGroups @ 0x488d20", "GJBaseGameLayer::sortGroups @ 0x489d8e", "GJBaseGameLayer::processAdvancedFollowAction @ 0x48a162", "GJBaseGameLayer::processActivatedAudioTriggers @ 0x48b5de", "GJBaseGameLayer::generateVisibilityGroups @ 0x48d01a", "GJBaseGameLayer::generateVisibilityGroups @ 0x48d0c8", "GJBaseGameLayer::generateVisibilityGroups @ 0x48d154", "GJBaseGameLayer::generateTargetGroups @ 0x48d422", "GJBaseGameLayer::generateTargetGroups @ 0x48d7c8", "GJBaseGameLayer::generateTargetGroups @ 0x48d86a", "GJBaseGameLayer::controlTriggersInGroup @ 0x495e44", "GJBaseGameLayer::processAreaEffects @ 0x4969fe"], "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"}