{"type": "func", "start": 9575808, "end": 9575936, "name": "GJFollowCommandLayer::updateTargetGroupID2", "pseudocode": "// \n// GJFollowCommandLayer::updateTargetGroupID2 from 0x921d80 to 0x921e00 (128 bytes)\n// \n// 3 xrefs:\n// > GJFollowCommandLayer::onUpdateGroupID2 @ 0x921e4c\n// > GJFollowCommandLayer::textChanged @ 0x9222c0\n// > <???> @ 0xbb158\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 m_followGroupID; // w1\n  EffectGameObject *m_gameObject; // x3\n  unsigned int v4; // w19\n  EffectGameObject *v5; // x0\n  bool v6; // cf\n  unsigned int v7; // w1\n\n  m_followGroupID = a1->m_followGroupID;\n  m_gameObject = a1->m_gameObject;\n  if ( m_followGroupID < 0 )\n    m_followGroupID = 0;\n  if ( m_followGroupID > 9999 )\n    m_followGroupID = 9999;\n  a1->m_followGroupID = m_followGroupID;\n  if ( m_gameObject )\n  {\n    EffectGameObject::setTargetID2(m_gameObject, m_followGroupID);\n  }\n  else\n  {\n    v4 = 0;\n    while ( 1 )\n    {\n      v6 = v4 >= (unsigned int)cocos2d::CCArray::count(a1->m_gameObjects);\n      v7 = v4++;\n      if ( v6 )\n        break;\n      v5 = (EffectGameObject *)cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, v7);\n      EffectGameObject::setTargetID2(v5, a1->m_followGroupID);\n    }\n  }\n}", "assembly": "; \n; GJFollowCommandLayer::updateTargetGroupID2 from 0x921d80 to 0x921e00 (128 bytes)\n; \n; 3 xrefs:\n; > GJFollowCommandLayer::onUpdateGroupID2 @ 0x921e4c\n; > GJFollowCommandLayer::textChanged @ 0x9222c0\n; > <???> @ 0xbb158\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\nSTP             X29, X30, [SP,#-0x20+var_s0]!                          ; +0x0, 0x921d80\nMOV             W2, #0x270F                                            ; +0x4, 0x921d84\nMOV             X29, SP                                                ; +0x8, 0x921d88\nLDR             W1, [X0,#0x420]                                        ; +0xc, 0x921d8c\nSTP             X19, X20, [SP,#var_s10]                                ; +0x10, 0x921d90\nCMP             W1, WZR                                                ; +0x14, 0x921d94\nLDR             X3, [X0,#0x290]                                        ; +0x18, 0x921d98\nCSEL            W1, W1, WZR, GE                                        ; +0x1c, 0x921d9c\nCMP             W1, W2                                                 ; +0x20, 0x921da0\nCSEL            W1, W1, W2, LE; int                                    ; +0x24, 0x921da4\nSTR             W1, [X0,#0x420]                                        ; +0x28, 0x921da8\nCBZ             X3, loc_921DC0                                         ; +0x2c, 0x921dac\nLDP             X19, X20, [SP,#var_s10]                                ; +0x30, 0x921db0\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x34, 0x921db4\nMOV             X0, X3; this                                           ; +0x38, 0x921db8\nB               _ZN16EffectGameObject12setTargetID2Ei; EffectGameObject::setTargetID2(int) ; +0x3c, 0x921dbc\nMOV             X20, X0                                                ; +0x40, 0x921dc0\nMOV             W19, #0                                                ; +0x44, 0x921dc4\nB               loc_921DDC                                             ; +0x48, 0x921dc8\nLDR             X0, [X20,#0x298]; this                                 ; +0x4c, 0x921dcc\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x50, 0x921dd0\nLDR             W1, [X20,#0x420]; int                                  ; +0x54, 0x921dd4\nBL              _ZN16EffectGameObject12setTargetID2Ei; EffectGameObject::setTargetID2(int) ; +0x58, 0x921dd8\nLDR             X0, [X20,#0x298]; this                                 ; +0x5c, 0x921ddc\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x60, 0x921de0\nCMP             W19, W0                                                ; +0x64, 0x921de4\nMOV             W1, W19; unsigned int                                  ; +0x68, 0x921de8\nADD             W19, W19, #1                                           ; +0x6c, 0x921dec\nB.CC            loc_921DCC                                             ; +0x70, 0x921df0\nLDP             X19, X20, [SP,#var_s10]                                ; +0x74, 0x921df4\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x78, 0x921df8\nRET                                                                    ; +0x7c, 0x921dfc", "xrefs": ["GJFollowCommandLayer::onUpdateGroupID2 @ 0x921e4c", "GJFollowCommandLayer::textChanged @ 0x9222c0", "<???> @ 0xbb158"], "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"}