{"type": "func", "start": 9575568, "end": 9575696, "name": "GJFollowCommandLayer::updateTargetGroupID", "pseudocode": "// \n// GJFollowCommandLayer::updateTargetGroupID from 0x921c90 to 0x921d10 (128 bytes)\n// \n// 3 xrefs:\n// > GJFollowCommandLayer::onUpdateGroupID @ 0x921d5c\n// > GJFollowCommandLayer::textChanged @ 0x9221a0\n// > <???> @ 0x802b0\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 m_targetGroupID; // 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_targetGroupID = a1->m_targetGroupID;\n  m_gameObject = a1->m_gameObject;\n  if ( m_targetGroupID < 0 )\n    m_targetGroupID = 0;\n  if ( m_targetGroupID > 9999 )\n    m_targetGroupID = 9999;\n  a1->m_targetGroupID = m_targetGroupID;\n  if ( m_gameObject )\n  {\n    EffectGameObject::setTargetID(m_gameObject, m_targetGroupID);\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::setTargetID(v5, a1->m_targetGroupID);\n    }\n  }\n}", "assembly": "; \n; GJFollowCommandLayer::updateTargetGroupID from 0x921c90 to 0x921d10 (128 bytes)\n; \n; 3 xrefs:\n; > GJFollowCommandLayer::onUpdateGroupID @ 0x921d5c\n; > GJFollowCommandLayer::textChanged @ 0x9221a0\n; > <???> @ 0x802b0\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, 0x921c90\nMOV             W2, #0x270F                                            ; +0x4, 0x921c94\nMOV             X29, SP                                                ; +0x8, 0x921c98\nLDR             W1, [X0,#0x410]                                        ; +0xc, 0x921c9c\nSTP             X19, X20, [SP,#var_s10]                                ; +0x10, 0x921ca0\nCMP             W1, WZR                                                ; +0x14, 0x921ca4\nLDR             X3, [X0,#0x290]                                        ; +0x18, 0x921ca8\nCSEL            W1, W1, WZR, GE                                        ; +0x1c, 0x921cac\nCMP             W1, W2                                                 ; +0x20, 0x921cb0\nCSEL            W1, W1, W2, LE; int                                    ; +0x24, 0x921cb4\nSTR             W1, [X0,#0x410]                                        ; +0x28, 0x921cb8\nCBZ             X3, loc_921CD0                                         ; +0x2c, 0x921cbc\nLDP             X19, X20, [SP,#var_s10]                                ; +0x30, 0x921cc0\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x34, 0x921cc4\nMOV             X0, X3; this                                           ; +0x38, 0x921cc8\nB               _ZN16EffectGameObject11setTargetIDEi; EffectGameObject::setTargetID(int) ; +0x3c, 0x921ccc\nMOV             X20, X0                                                ; +0x40, 0x921cd0\nMOV             W19, #0                                                ; +0x44, 0x921cd4\nB               loc_921CEC                                             ; +0x48, 0x921cd8\nLDR             X0, [X20,#0x298]; this                                 ; +0x4c, 0x921cdc\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x50, 0x921ce0\nLDR             W1, [X20,#0x410]; int                                  ; +0x54, 0x921ce4\nBL              _ZN16EffectGameObject11setTargetIDEi; EffectGameObject::setTargetID(int) ; +0x58, 0x921ce8\nLDR             X0, [X20,#0x298]; this                                 ; +0x5c, 0x921cec\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x60, 0x921cf0\nCMP             W19, W0                                                ; +0x64, 0x921cf4\nMOV             W1, W19; unsigned int                                  ; +0x68, 0x921cf8\nADD             W19, W19, #1                                           ; +0x6c, 0x921cfc\nB.CC            loc_921CDC                                             ; +0x70, 0x921d00\nLDP             X19, X20, [SP,#var_s10]                                ; +0x74, 0x921d04\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x78, 0x921d08\nRET                                                                    ; +0x7c, 0x921d0c", "xrefs": ["GJFollowCommandLayer::onUpdateGroupID @ 0x921d5c", "GJFollowCommandLayer::textChanged @ 0x9221a0", "<???> @ 0x802b0"], "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"}