{"type": "func", "start": 5097856, "end": 5097934, "name": "GJFollowCommandLayer::updateTargetGroupID", "pseudocode": "// \n// GJFollowCommandLayer::updateTargetGroupID from 0x4dc980 to 0x4dc9ce (78 bytes)\n// \n// 2 xrefs:\n// > GJFollowCommandLayer::onUpdateGroupID @ 0x4dca00\n// > GJFollowCommandLayer::textChanged @ 0x4dcc3a\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 GJFollowCommandLayer::updateTargetGroupID(GJFollowCommandLayer *a1)\n{\n  int v1; // r1\n  EffectGameObject *m_gameObject; // r0\n  unsigned int i; // r4\n  EffectGameObject *v5; // r0\n\n  v1 = a1->m_targetGroupID & ~(a1->m_targetGroupID >> 31);\n  if ( v1 >= 9999 )\n    v1 = 9999;\n  a1->m_targetGroupID = v1;\n  m_gameObject = a1->m_gameObject;\n  if ( m_gameObject )\n  {\n    EffectGameObject::setTargetID(m_gameObject, v1);\n  }\n  else\n  {\n    for ( i = 0; i < cocos2d::CCArray::count(a1->m_gameObjects); ++i )\n    {\n      v5 = (EffectGameObject *)cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, i);\n      EffectGameObject::setTargetID(v5, a1->m_targetGroupID);\n    }\n  }\n}", "assembly": "; \n; GJFollowCommandLayer::updateTargetGroupID from 0x4dc980 to 0x4dc9ce (78 bytes)\n; \n; 2 xrefs:\n; > GJFollowCommandLayer::onUpdateGroupID @ 0x4dca00\n; > GJFollowCommandLayer::textChanged @ 0x4dcc3a\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\nLDR.W           R1, [R0,#0x2D0]                                        ; +0x0, 0x4dc980\nPUSH            {R3-R5,LR}                                             ; +0x4, 0x4dc984\nMOVW            R3, #0x270F                                            ; +0x6, 0x4dc986\nBIC.W           R1, R1, R1,ASR#31                                      ; +0xa, 0x4dc98a\nMOV             R5, R0                                                 ; +0xe, 0x4dc98e\nCMP             R1, R3                                                 ; +0x10, 0x4dc990\nIT GE                                                                  ; +0x12, 0x4dc992\nMOVGE           R1, R3; int                                            ; +0x14, 0x4dc994\nSTR.W           R1, [R0,#0x2D0]                                        ; +0x16, 0x4dc996\nLDR.W           R0, [R0,#0x1FC]; this                                  ; +0x1a, 0x4dc99a\nCBNZ            R0, loc_4DC9C6                                         ; +0x1e, 0x4dc99e\nMOV             R4, R0                                                 ; +0x20, 0x4dc9a0\nLDR.W           R0, [R5,#0x200]; this                                  ; +0x22, 0x4dc9a2\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x26, 0x4dc9a6\nCMP             R4, R0                                                 ; +0x2a, 0x4dc9aa\nBCS             locret_4DC9C4                                          ; +0x2c, 0x4dc9ac\nMOV             R1, R4; unsigned int                                   ; +0x2e, 0x4dc9ae\nLDR.W           R0, [R5,#0x200]; this                                  ; +0x30, 0x4dc9b0\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x34, 0x4dc9b4\nLDR.W           R1, [R5,#0x2D0]; int                                   ; +0x38, 0x4dc9b8\nBL              _ZN16EffectGameObject11setTargetIDEi; EffectGameObject::setTargetID(int) ; +0x3c, 0x4dc9bc\nADDS            R4, #1                                                 ; +0x40, 0x4dc9c0\nB               loc_4DC9A2                                             ; +0x42, 0x4dc9c2\nPOP             {R3-R5,PC}                                             ; +0x44, 0x4dc9c4\nPOP.W           {R3-R5,LR}                                             ; +0x46, 0x4dc9c6\nB.W             _ZN16EffectGameObject11setTargetIDEi; EffectGameObject::setTargetID(int) ; +0x4a, 0x4dc9ca", "xrefs": ["GJFollowCommandLayer::onUpdateGroupID @ 0x4dca00", "GJFollowCommandLayer::textChanged @ 0x4dcc3a"], "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"}