{"type": "func", "start": 4297945856, "end": 4297946006, "name": "GJFollowCommandLayer::updateTargetGroupID2", "pseudocode": "// \n// GJFollowCommandLayer::updateTargetGroupID2 from 0x1002d7300 to 0x1002d7396 (150 bytes)\n// \n// 0 xrefs:\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 m_followGroupID; // ecx\n  int v3; // esi\n  EffectGameObject *m_gameObject; // rdi\n  unsigned int v5; // r14d\n  EffectGameObject *v6; // rax\n\n  m_followGroupID = 0;\n  if ( a1->m_followGroupID > 0 )\n    m_followGroupID = a1->m_followGroupID;\n  v3 = 9999;\n  if ( m_followGroupID < 9999 )\n    v3 = m_followGroupID;\n  a1->m_followGroupID = v3;\n  m_gameObject = a1->m_gameObject;\n  if ( m_gameObject )\n  {\n    EffectGameObject::setTargetID2(m_gameObject, v3);\n  }\n  else if ( (unsigned int)sub_100720070(a1->m_gameObjects) )\n  {\n    v5 = 0;\n    do\n    {\n      v6 = (EffectGameObject *)sub_1007200C0(a1->m_gameObjects, v5);\n      EffectGameObject::setTargetID2(v6, a1->m_followGroupID);\n      ++v5;\n    }\n    while ( v5 < (unsigned int)sub_100720070(a1->m_gameObjects) );\n  }\n}", "assembly": "; \n; GJFollowCommandLayer::updateTargetGroupID2 from 0x1002d7300 to 0x1002d7396 (150 bytes)\n; \n; 0 xrefs:\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\npush    rbp                                                            ; +0x0, 0x1002d7300\nmov     rbp, rsp                                                       ; +0x1, 0x1002d7301\npush    r14                                                            ; +0x4, 0x1002d7304\npush    rbx                                                            ; +0x6, 0x1002d7306\nmov     rbx, rdi                                                       ; +0x7, 0x1002d7307\nmov     eax, [rdi+408h]                                                ; +0xa, 0x1002d730a\nxor     ecx, ecx                                                       ; +0x10, 0x1002d7310\ntest    eax, eax                                                       ; +0x12, 0x1002d7312\ncmovg   ecx, eax                                                       ; +0x14, 0x1002d7314\ncmp     ecx, 270Fh                                                     ; +0x17, 0x1002d7317\nmov     esi, 270Fh                                                     ; +0x1d, 0x1002d731d\ncmovl   esi, ecx                                                       ; +0x22, 0x1002d7322\nmov     [rdi+408h], esi                                                ; +0x25, 0x1002d7325\nmov     rdi, [rdi+290h]                                                ; +0x2b, 0x1002d732b\ntest    rdi, rdi                                                       ; +0x32, 0x1002d7332\njz      short loc_1002D7340                                            ; +0x35, 0x1002d7335\npop     rbx                                                            ; +0x37, 0x1002d7337\npop     r14                                                            ; +0x38, 0x1002d7338\npop     rbp                                                            ; +0x3a, 0x1002d733a\njmp     EffectGameObject__setTargetID2                                 ; +0x3b, 0x1002d733b\nmov     rdi, [rbx+298h]                                                ; +0x40, 0x1002d7340\ncall    sub_100720070                                                  ; +0x47, 0x1002d7347\ntest    eax, eax                                                       ; +0x4c, 0x1002d734c\njz      short loc_1002D7391                                            ; +0x4e, 0x1002d734e\nxor     r14d, r14d                                                     ; +0x50, 0x1002d7350\nnop     word ptr [rax+rax+00000000h]                                   ; +0x53, 0x1002d7353\nmov     rdi, [rbx+298h]                                                ; +0x60, 0x1002d7360\nmov     esi, r14d                                                      ; +0x67, 0x1002d7367\ncall    sub_1007200C0                                                  ; +0x6a, 0x1002d736a\nmov     esi, [rbx+408h]                                                ; +0x6f, 0x1002d736f\nmov     rdi, rax                                                       ; +0x75, 0x1002d7375\ncall    EffectGameObject__setTargetID2                                 ; +0x78, 0x1002d7378\ninc     r14d                                                           ; +0x7d, 0x1002d737d\nmov     rdi, [rbx+298h]                                                ; +0x80, 0x1002d7380\ncall    sub_100720070                                                  ; +0x87, 0x1002d7387\ncmp     r14d, eax                                                      ; +0x8c, 0x1002d738c\njb      short loc_1002D7360                                            ; +0x8f, 0x1002d738f\npop     rbx                                                            ; +0x91, 0x1002d7391\npop     r14                                                            ; +0x92, 0x1002d7392\npop     rbp                                                            ; +0x94, 0x1002d7394\nretn                                                                   ; +0x95, 0x1002d7395", "xrefs": [], "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"}