{"type": "func", "start": 4297942928, "end": 4297943101, "name": "GJFollowCommandLayer::onUpdateGroupID2", "pseudocode": "// \n// GJFollowCommandLayer::onUpdateGroupID2 from 0x1002d6790 to 0x1002d683d (173 bytes)\n// \n// 1 xrefs:\n// > GJFollowCommandLayer::init @ 0x1002d5e4b\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::onUpdateGroupID2(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_followGroupID + 2 * (((unsigned int (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2) == 1) - 1;\n  v4 = 0;\n  if ( v3 > 0 )\n    v4 = v3;\n  v5 = 9999;\n  if ( v4 < 9999 )\n    v5 = v4;\n  a1->m_followGroupID = v5;\n  m_gameObject = a1->m_gameObject;\n  if ( m_gameObject )\n  {\n    EffectGameObject::setTargetID2(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::setTargetID2(v8, a1->m_followGroupID);\n      ++v7;\n    }\n    while ( v7 < (unsigned int)sub_100720070(a1->m_gameObjects) );\n  }\n  GJFollowCommandLayer::updateTextInputLabel2(a1);\n}", "assembly": "; \n; GJFollowCommandLayer::onUpdateGroupID2 from 0x1002d6790 to 0x1002d683d (173 bytes)\n; \n; 1 xrefs:\n; > GJFollowCommandLayer::init @ 0x1002d5e4b\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, 0x1002d6790\nmov     rbp, rsp                                                       ; +0x1, 0x1002d6791\npush    r14                                                            ; +0x4, 0x1002d6794\npush    rbx                                                            ; +0x6, 0x1002d6796\nmov     rbx, rdi                                                       ; +0x7, 0x1002d6797\nmov     rax, [rsi]                                                     ; +0xa, 0x1002d679a\nmov     rdi, rsi                                                       ; +0xd, 0x1002d679d\ncall    qword ptr [rax+40h]                                            ; +0x10, 0x1002d67a0\nxor     ecx, ecx                                                       ; +0x13, 0x1002d67a3\ncmp     eax, 1                                                         ; +0x15, 0x1002d67a5\nsetz    cl                                                             ; +0x18, 0x1002d67a8\nmov     eax, [rbx+408h]                                                ; +0x1b, 0x1002d67ab\nlea     eax, [rax+rcx*2]                                               ; +0x21, 0x1002d67b1\ndec     eax                                                            ; +0x24, 0x1002d67b4\nxor     ecx, ecx                                                       ; +0x26, 0x1002d67b6\ntest    eax, eax                                                       ; +0x28, 0x1002d67b8\ncmovg   ecx, eax                                                       ; +0x2a, 0x1002d67ba\ncmp     ecx, 270Fh                                                     ; +0x2d, 0x1002d67bd\nmov     esi, 270Fh                                                     ; +0x33, 0x1002d67c3\ncmovl   esi, ecx                                                       ; +0x38, 0x1002d67c8\nmov     [rbx+408h], esi                                                ; +0x3b, 0x1002d67cb\nmov     rdi, [rbx+290h]                                                ; +0x41, 0x1002d67d1\ntest    rdi, rdi                                                       ; +0x48, 0x1002d67d8\njz      short loc_1002D67E4                                            ; +0x4b, 0x1002d67db\ncall    EffectGameObject__setTargetID2                                 ; +0x4d, 0x1002d67dd\njmp     short loc_1002D6831                                            ; +0x52, 0x1002d67e2\nmov     rdi, [rbx+298h]                                                ; +0x54, 0x1002d67e4\ncall    sub_100720070                                                  ; +0x5b, 0x1002d67eb\ntest    eax, eax                                                       ; +0x60, 0x1002d67f0\njz      short loc_1002D6831                                            ; +0x62, 0x1002d67f2\nxor     r14d, r14d                                                     ; +0x64, 0x1002d67f4\nnop     word ptr [rax+rax+00000000h]                                   ; +0x67, 0x1002d67f7\nmov     rdi, [rbx+298h]                                                ; +0x70, 0x1002d6800\nmov     esi, r14d                                                      ; +0x77, 0x1002d6807\ncall    sub_1007200C0                                                  ; +0x7a, 0x1002d680a\nmov     esi, [rbx+408h]                                                ; +0x7f, 0x1002d680f\nmov     rdi, rax                                                       ; +0x85, 0x1002d6815\ncall    EffectGameObject__setTargetID2                                 ; +0x88, 0x1002d6818\ninc     r14d                                                           ; +0x8d, 0x1002d681d\nmov     rdi, [rbx+298h]                                                ; +0x90, 0x1002d6820\ncall    sub_100720070                                                  ; +0x97, 0x1002d6827\ncmp     r14d, eax                                                      ; +0x9c, 0x1002d682c\njb      short loc_1002D6800                                            ; +0x9f, 0x1002d682f\nmov     rdi, rbx                                                       ; +0xa1, 0x1002d6831\npop     rbx                                                            ; +0xa4, 0x1002d6834\npop     r14                                                            ; +0xa5, 0x1002d6835\npop     rbp                                                            ; +0xa7, 0x1002d6837\njmp     GJFollowCommandLayer__updateTextInputLabel2                    ; +0xa8, 0x1002d6838", "xrefs": ["GJFollowCommandLayer::init @ 0x1002d5e4b"], "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"}