{"type": "func", "start": 4296244108, "end": 4296244236, "name": "GJFollowCommandLayer::updateTargetGroupID2", "pseudocode": "// \n// GJFollowCommandLayer::updateTargetGroupID2 from 0x100137b8c to 0x100137c0c (128 bytes)\n// \n// 2 xrefs:\n// > GJFollowCommandLayer::onUpdateGroupID2 @ 0x10013745c\n// > GJFollowCommandLayer::textChanged @ 0x100137d48\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 GJFollowCommandLayer::updateTargetGroupID2(GJFollowCommandLayer *a1)\n{\n  int v2; // w1\n  EffectGameObject *m_gameObject; // x0\n  __int64 v4; // x20\n  EffectGameObject *v5; // x0\n\n  if ( (a1->m_followGroupID & ~(a1->m_followGroupID >> 31)) >= 9999 )\n    v2 = 9999;\n  else\n    v2 = a1->m_followGroupID & ~(a1->m_followGroupID >> 31);\n  a1->m_followGroupID = v2;\n  m_gameObject = a1->m_gameObject;\n  if ( m_gameObject )\n  {\n    EffectGameObject::setTargetID2(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::setTargetID2(v5, a1->m_followGroupID);\n      v4 = (unsigned int)(v4 + 1);\n    }\n    while ( (unsigned int)v4 < (unsigned int)sub_10024A36C(a1->m_gameObjects) );\n  }\n}", "assembly": "; \n; GJFollowCommandLayer::updateTargetGroupID2 from 0x100137b8c to 0x100137c0c (128 bytes)\n; \n; 2 xrefs:\n; > GJFollowCommandLayer::onUpdateGroupID2 @ 0x10013745c\n; > GJFollowCommandLayer::textChanged @ 0x100137d48\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, 0x100137b8c\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x100137b90\nADD             X29, SP, #0x10                                         ; +0x8, 0x100137b94\nMOV             X19, X0                                                ; +0xc, 0x100137b98\nLDR             W8, [X0,#0x408]                                        ; +0x10, 0x100137b9c\nBIC             W8, W8, W8,ASR#31                                      ; +0x14, 0x100137ba0\nMOV             W9, #0x270F                                            ; +0x18, 0x100137ba4\nCMP             W8, W9                                                 ; +0x1c, 0x100137ba8\nCSEL            W1, W8, W9, LT                                         ; +0x20, 0x100137bac\nSTR             W1, [X0,#0x408]                                        ; +0x24, 0x100137bb0\nLDR             X0, [X0,#0x290]                                        ; +0x28, 0x100137bb4\nCBZ             X0, loc_100137BC8                                      ; +0x2c, 0x100137bb8\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x30, 0x100137bbc\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x34, 0x100137bc0\nB               EffectGameObject__setTargetID2                         ; +0x38, 0x100137bc4\nLDR             X0, [X19,#0x298]                                       ; +0x3c, 0x100137bc8\nBL              sub_10024A36C                                          ; +0x40, 0x100137bcc\nCBZ             W0, loc_100137C00                                      ; +0x44, 0x100137bd0\nMOV             W20, #0                                                ; +0x48, 0x100137bd4\nLDR             X0, [X19,#0x298]                                       ; +0x4c, 0x100137bd8\nMOV             X1, X20                                                ; +0x50, 0x100137bdc\nBL              sub_10024A388                                          ; +0x54, 0x100137be0\nLDR             W1, [X19,#0x408]                                       ; +0x58, 0x100137be4\nBL              EffectGameObject__setTargetID2                         ; +0x5c, 0x100137be8\nADD             W20, W20, #1                                           ; +0x60, 0x100137bec\nLDR             X0, [X19,#0x298]                                       ; +0x64, 0x100137bf0\nBL              sub_10024A36C                                          ; +0x68, 0x100137bf4\nCMP             W20, W0                                                ; +0x6c, 0x100137bf8\nB.CC            loc_100137BD8                                          ; +0x70, 0x100137bfc\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x74, 0x100137c00\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x78, 0x100137c04\nRET                                                                    ; +0x7c, 0x100137c08", "xrefs": ["GJFollowCommandLayer::onUpdateGroupID2 @ 0x10013745c", "GJFollowCommandLayer::textChanged @ 0x100137d48"], "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"}