{"type": "func", "start": 4297942736, "end": 4297942917, "name": "GJFollowCommandLayer::onUpdateGroupID", "pseudocode": "// \n// GJFollowCommandLayer::onUpdateGroupID from 0x1002d66d0 to 0x1002d6785 (181 bytes)\n// \n// 1 xrefs:\n// > GJFollowCommandLayer::init @ 0x1002d5dd3\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::onUpdateGroupID(GJFollowCommandLayer *a1, cocos2d::CCObject *a2)\n{\n  int v3; // eax\n  int v4; // ecx\n  int v5; // esi\n  EffectGameObject *m_gameObject; // rdi\n  unsigned int v7; // r14d\n  EffectGameObject *v8; // rax\n\n  v3 = a1->m_targetGroupID + 2 * (((unsigned int (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2) == 1) - 1;\n  v4 = 1;\n  if ( v3 >= 2 )\n    v4 = v3;\n  v5 = 9999;\n  if ( v4 < 9999 )\n    v5 = v4;\n  a1->m_targetGroupID = v5;\n  m_gameObject = a1->m_gameObject;\n  if ( m_gameObject )\n  {\n    EffectGameObject::setTargetID(m_gameObject, v5);\n  }\n  else if ( (unsigned int)sub_100720070(a1->m_gameObjects) )\n  {\n    v7 = 0;\n    do\n    {\n      v8 = (EffectGameObject *)sub_1007200C0(a1->m_gameObjects, v7);\n      EffectGameObject::setTargetID(v8, a1->m_targetGroupID);\n      ++v7;\n    }\n    while ( v7 < (unsigned int)sub_100720070(a1->m_gameObjects) );\n  }\n  SetupTriggerPopup::updateEditorLabel(a1);\n  GJFollowCommandLayer::updateTextInputLabel(a1);\n}", "assembly": "; \n; GJFollowCommandLayer::onUpdateGroupID from 0x1002d66d0 to 0x1002d6785 (181 bytes)\n; \n; 1 xrefs:\n; > GJFollowCommandLayer::init @ 0x1002d5dd3\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, 0x1002d66d0\nmov     rbp, rsp                                                       ; +0x1, 0x1002d66d1\npush    r14                                                            ; +0x4, 0x1002d66d4\npush    rbx                                                            ; +0x6, 0x1002d66d6\nmov     rbx, rdi                                                       ; +0x7, 0x1002d66d7\nmov     rax, [rsi]                                                     ; +0xa, 0x1002d66da\nmov     rdi, rsi                                                       ; +0xd, 0x1002d66dd\ncall    qword ptr [rax+40h]                                            ; +0x10, 0x1002d66e0\nxor     ecx, ecx                                                       ; +0x13, 0x1002d66e3\ncmp     eax, 1                                                         ; +0x15, 0x1002d66e5\nsetz    cl                                                             ; +0x18, 0x1002d66e8\nmov     eax, [rbx+3F8h]                                                ; +0x1b, 0x1002d66eb\nlea     eax, [rax+rcx*2]                                               ; +0x21, 0x1002d66f1\ndec     eax                                                            ; +0x24, 0x1002d66f4\ncmp     eax, 2                                                         ; +0x26, 0x1002d66f6\nmov     ecx, 1                                                         ; +0x29, 0x1002d66f9\ncmovge  ecx, eax                                                       ; +0x2e, 0x1002d66fe\ncmp     ecx, 270Fh                                                     ; +0x31, 0x1002d6701\nmov     esi, 270Fh                                                     ; +0x37, 0x1002d6707\ncmovl   esi, ecx                                                       ; +0x3c, 0x1002d670c\nmov     [rbx+3F8h], esi                                                ; +0x3f, 0x1002d670f\nmov     rdi, [rbx+290h]                                                ; +0x45, 0x1002d6715\ntest    rdi, rdi                                                       ; +0x4c, 0x1002d671c\njz      short loc_1002D6728                                            ; +0x4f, 0x1002d671f\ncall    EffectGameObject__setTargetID                                  ; +0x51, 0x1002d6721\njmp     short loc_1002D6771                                            ; +0x56, 0x1002d6726\nmov     rdi, [rbx+298h]                                                ; +0x58, 0x1002d6728\ncall    sub_100720070                                                  ; +0x5f, 0x1002d672f\ntest    eax, eax                                                       ; +0x64, 0x1002d6734\njz      short loc_1002D6771                                            ; +0x66, 0x1002d6736\nxor     r14d, r14d                                                     ; +0x68, 0x1002d6738\nnop     dword ptr [rax+rax+00h]                                        ; +0x6b, 0x1002d673b\nmov     rdi, [rbx+298h]                                                ; +0x70, 0x1002d6740\nmov     esi, r14d                                                      ; +0x77, 0x1002d6747\ncall    sub_1007200C0                                                  ; +0x7a, 0x1002d674a\nmov     esi, [rbx+3F8h]                                                ; +0x7f, 0x1002d674f\nmov     rdi, rax                                                       ; +0x85, 0x1002d6755\ncall    EffectGameObject__setTargetID                                  ; +0x88, 0x1002d6758\ninc     r14d                                                           ; +0x8d, 0x1002d675d\nmov     rdi, [rbx+298h]                                                ; +0x90, 0x1002d6760\ncall    sub_100720070                                                  ; +0x97, 0x1002d6767\ncmp     r14d, eax                                                      ; +0x9c, 0x1002d676c\njb      short loc_1002D6740                                            ; +0x9f, 0x1002d676f\nmov     rdi, rbx                                                       ; +0xa1, 0x1002d6771\ncall    SetupTriggerPopup__updateEditorLabel                           ; +0xa4, 0x1002d6774\nmov     rdi, rbx                                                       ; +0xa9, 0x1002d6779\npop     rbx                                                            ; +0xac, 0x1002d677c\npop     r14                                                            ; +0xad, 0x1002d677d\npop     rbp                                                            ; +0xaf, 0x1002d677f\njmp     GJFollowCommandLayer__updateTextInputLabel                     ; +0xb0, 0x1002d6780", "xrefs": ["GJFollowCommandLayer::init @ 0x1002d5dd3"], "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"}