{"type": "func", "start": 5098004, "end": 5098082, "name": "GJFollowCommandLayer::updateTargetGroupID2", "pseudocode": "// \n// GJFollowCommandLayer::updateTargetGroupID2 from 0x4dca14 to 0x4dca62 (78 bytes)\n// \n// 2 xrefs:\n// > GJFollowCommandLayer::onUpdateGroupID2 @ 0x4dca92\n// > GJFollowCommandLayer::textChanged @ 0x4dcc66\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::updateTargetGroupID2(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_followGroupID & ~(a1->m_followGroupID >> 31);\n  if ( v1 >= 9999 )\n    v1 = 9999;\n  a1->m_followGroupID = v1;\n  m_gameObject = a1->m_gameObject;\n  if ( m_gameObject )\n  {\n    EffectGameObject::setTargetID2(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::setTargetID2(v5, a1->m_followGroupID);\n    }\n  }\n}", "assembly": "; \n; GJFollowCommandLayer::updateTargetGroupID2 from 0x4dca14 to 0x4dca62 (78 bytes)\n; \n; 2 xrefs:\n; > GJFollowCommandLayer::onUpdateGroupID2 @ 0x4dca92\n; > GJFollowCommandLayer::textChanged @ 0x4dcc66\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,#0x2D8]                                        ; +0x0, 0x4dca14\nPUSH            {R3-R5,LR}                                             ; +0x4, 0x4dca18\nMOVW            R3, #0x270F                                            ; +0x6, 0x4dca1a\nBIC.W           R1, R1, R1,ASR#31                                      ; +0xa, 0x4dca1e\nMOV             R5, R0                                                 ; +0xe, 0x4dca22\nCMP             R1, R3                                                 ; +0x10, 0x4dca24\nIT GE                                                                  ; +0x12, 0x4dca26\nMOVGE           R1, R3; int                                            ; +0x14, 0x4dca28\nSTR.W           R1, [R0,#0x2D8]                                        ; +0x16, 0x4dca2a\nLDR.W           R0, [R0,#0x1FC]; this                                  ; +0x1a, 0x4dca2e\nCBNZ            R0, loc_4DCA5A                                         ; +0x1e, 0x4dca32\nMOV             R4, R0                                                 ; +0x20, 0x4dca34\nLDR.W           R0, [R5,#0x200]; this                                  ; +0x22, 0x4dca36\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x26, 0x4dca3a\nCMP             R4, R0                                                 ; +0x2a, 0x4dca3e\nBCS             locret_4DCA58                                          ; +0x2c, 0x4dca40\nMOV             R1, R4; unsigned int                                   ; +0x2e, 0x4dca42\nLDR.W           R0, [R5,#0x200]; this                                  ; +0x30, 0x4dca44\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x34, 0x4dca48\nLDR.W           R1, [R5,#0x2D8]; int                                   ; +0x38, 0x4dca4c\nBL              _ZN16EffectGameObject12setTargetID2Ei; EffectGameObject::setTargetID2(int) ; +0x3c, 0x4dca50\nADDS            R4, #1                                                 ; +0x40, 0x4dca54\nB               loc_4DCA36                                             ; +0x42, 0x4dca56\nPOP             {R3-R5,PC}                                             ; +0x44, 0x4dca58\nPOP.W           {R3-R5,LR}                                             ; +0x46, 0x4dca5a\nB.W             _ZN16EffectGameObject12setTargetID2Ei; EffectGameObject::setTargetID2(int) ; +0x4a, 0x4dca5e", "xrefs": ["GJFollowCommandLayer::onUpdateGroupID2 @ 0x4dca92", "GJFollowCommandLayer::textChanged @ 0x4dcc66"], "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"}