{"type": "func", "start": 4296411128, "end": 4296411256, "name": "GJPFollowCommandLayer::updateTargetGroupID", "pseudocode": "// \n// GJPFollowCommandLayer::updateTargetGroupID from 0x1001607f8 to 0x100160878 (128 bytes)\n// \n// 2 xrefs:\n// > GJPFollowCommandLayer::onUpdateGroupID @ 0x10015fff4\n// > GJPFollowCommandLayer::textChanged @ 0x100160ab0\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 __fastcall GJPFollowCommandLayer::updateTargetGroupID(GJPFollowCommandLayer *a1)\n{\n  int v2; // w1\n  EffectGameObject *m_gameObject; // x0\n  __int64 v4; // x20\n  EffectGameObject *v5; // x0\n\n  if ( (a1->m_targetGroupID & ~(a1->m_targetGroupID >> 31)) >= 9999 )\n    v2 = 9999;\n  else\n    v2 = a1->m_targetGroupID & ~(a1->m_targetGroupID >> 31);\n  a1->m_targetGroupID = v2;\n  m_gameObject = a1->m_gameObject;\n  if ( m_gameObject )\n  {\n    EffectGameObject::setTargetID(m_gameObject, v2);\n  }\n  else if ( (unsigned int)sub_10024A36C(a1->m_gameObjects) )\n  {\n    v4 = 0;\n    do\n    {\n      v5 = (EffectGameObject *)sub_10024A388(a1->m_gameObjects, v4);\n      EffectGameObject::setTargetID(v5, a1->m_targetGroupID);\n      v4 = (unsigned int)(v4 + 1);\n    }\n    while ( (unsigned int)v4 < (unsigned int)sub_10024A36C(a1->m_gameObjects) );\n  }\n}", "assembly": "; \n; GJPFollowCommandLayer::updateTargetGroupID from 0x1001607f8 to 0x100160878 (128 bytes)\n; \n; 2 xrefs:\n; > GJPFollowCommandLayer::onUpdateGroupID @ 0x10015fff4\n; > GJPFollowCommandLayer::textChanged @ 0x100160ab0\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             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x1001607f8\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x1001607fc\nADD             X29, SP, #0x10                                         ; +0x8, 0x100160800\nMOV             X19, X0                                                ; +0xc, 0x100160804\nLDR             W8, [X0,#0x410]                                        ; +0x10, 0x100160808\nBIC             W8, W8, W8,ASR#31                                      ; +0x14, 0x10016080c\nMOV             W9, #0x270F                                            ; +0x18, 0x100160810\nCMP             W8, W9                                                 ; +0x1c, 0x100160814\nCSEL            W1, W8, W9, LT                                         ; +0x20, 0x100160818\nSTR             W1, [X0,#0x410]                                        ; +0x24, 0x10016081c\nLDR             X0, [X0,#0x290]                                        ; +0x28, 0x100160820\nCBZ             X0, loc_100160834                                      ; +0x2c, 0x100160824\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x30, 0x100160828\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x34, 0x10016082c\nB               EffectGameObject__setTargetID                          ; +0x38, 0x100160830\nLDR             X0, [X19,#0x298]                                       ; +0x3c, 0x100160834\nBL              sub_10024A36C                                          ; +0x40, 0x100160838\nCBZ             W0, loc_10016086C                                      ; +0x44, 0x10016083c\nMOV             W20, #0                                                ; +0x48, 0x100160840\nLDR             X0, [X19,#0x298]                                       ; +0x4c, 0x100160844\nMOV             X1, X20                                                ; +0x50, 0x100160848\nBL              sub_10024A388                                          ; +0x54, 0x10016084c\nLDR             W1, [X19,#0x410]                                       ; +0x58, 0x100160850\nBL              EffectGameObject__setTargetID                          ; +0x5c, 0x100160854\nADD             W20, W20, #1                                           ; +0x60, 0x100160858\nLDR             X0, [X19,#0x298]                                       ; +0x64, 0x10016085c\nBL              sub_10024A36C                                          ; +0x68, 0x100160860\nCMP             W20, W0                                                ; +0x6c, 0x100160864\nB.CC            loc_100160844                                          ; +0x70, 0x100160868\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x74, 0x10016086c\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x78, 0x100160870\nRET                                                                    ; +0x7c, 0x100160874", "xrefs": ["GJPFollowCommandLayer::onUpdateGroupID @ 0x10015fff4", "GJPFollowCommandLayer::textChanged @ 0x100160ab0"], "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"}