{"type": "func", "start": 4298531376, "end": 4298531557, "name": "GJPFollowCommandLayer::onUpdateGroupID", "pseudocode": "// \n// GJPFollowCommandLayer::onUpdateGroupID from 0x100366230 to 0x1003662e5 (181 bytes)\n// \n// 2 xrefs:\n// > GJPFollowCommandLayer::init @ 0x10036571b\n// > GJPFollowCommandLayer::init @ 0x1003657d5\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::onUpdateGroupID(GJPFollowCommandLayer *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  GJPFollowCommandLayer::updateTextInputLabel(a1);\n}", "assembly": "; \n; GJPFollowCommandLayer::onUpdateGroupID from 0x100366230 to 0x1003662e5 (181 bytes)\n; \n; 2 xrefs:\n; > GJPFollowCommandLayer::init @ 0x10036571b\n; > GJPFollowCommandLayer::init @ 0x1003657d5\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, 0x100366230\nmov     rbp, rsp                                                       ; +0x1, 0x100366231\npush    r14                                                            ; +0x4, 0x100366234\npush    rbx                                                            ; +0x6, 0x100366236\nmov     rbx, rdi                                                       ; +0x7, 0x100366237\nmov     rax, [rsi]                                                     ; +0xa, 0x10036623a\nmov     rdi, rsi                                                       ; +0xd, 0x10036623d\ncall    qword ptr [rax+40h]                                            ; +0x10, 0x100366240\nxor     ecx, ecx                                                       ; +0x13, 0x100366243\ncmp     eax, 1                                                         ; +0x15, 0x100366245\nsetz    cl                                                             ; +0x18, 0x100366248\nmov     eax, [rbx+410h]                                                ; +0x1b, 0x10036624b\nlea     eax, [rax+rcx*2]                                               ; +0x21, 0x100366251\ndec     eax                                                            ; +0x24, 0x100366254\ncmp     eax, 2                                                         ; +0x26, 0x100366256\nmov     ecx, 1                                                         ; +0x29, 0x100366259\ncmovge  ecx, eax                                                       ; +0x2e, 0x10036625e\ncmp     ecx, 270Fh                                                     ; +0x31, 0x100366261\nmov     esi, 270Fh                                                     ; +0x37, 0x100366267\ncmovl   esi, ecx                                                       ; +0x3c, 0x10036626c\nmov     [rbx+410h], esi                                                ; +0x3f, 0x10036626f\nmov     rdi, [rbx+290h]                                                ; +0x45, 0x100366275\ntest    rdi, rdi                                                       ; +0x4c, 0x10036627c\njz      short loc_100366288                                            ; +0x4f, 0x10036627f\ncall    EffectGameObject__setTargetID                                  ; +0x51, 0x100366281\njmp     short loc_1003662D1                                            ; +0x56, 0x100366286\nmov     rdi, [rbx+298h]                                                ; +0x58, 0x100366288\ncall    sub_100720070                                                  ; +0x5f, 0x10036628f\ntest    eax, eax                                                       ; +0x64, 0x100366294\njz      short loc_1003662D1                                            ; +0x66, 0x100366296\nxor     r14d, r14d                                                     ; +0x68, 0x100366298\nnop     dword ptr [rax+rax+00h]                                        ; +0x6b, 0x10036629b\nmov     rdi, [rbx+298h]                                                ; +0x70, 0x1003662a0\nmov     esi, r14d                                                      ; +0x77, 0x1003662a7\ncall    sub_1007200C0                                                  ; +0x7a, 0x1003662aa\nmov     esi, [rbx+410h]                                                ; +0x7f, 0x1003662af\nmov     rdi, rax                                                       ; +0x85, 0x1003662b5\ncall    EffectGameObject__setTargetID                                  ; +0x88, 0x1003662b8\ninc     r14d                                                           ; +0x8d, 0x1003662bd\nmov     rdi, [rbx+298h]                                                ; +0x90, 0x1003662c0\ncall    sub_100720070                                                  ; +0x97, 0x1003662c7\ncmp     r14d, eax                                                      ; +0x9c, 0x1003662cc\njb      short loc_1003662A0                                            ; +0x9f, 0x1003662cf\nmov     rdi, rbx                                                       ; +0xa1, 0x1003662d1\ncall    SetupTriggerPopup__updateEditorLabel                           ; +0xa4, 0x1003662d4\nmov     rdi, rbx                                                       ; +0xa9, 0x1003662d9\npop     rbx                                                            ; +0xac, 0x1003662dc\npop     r14                                                            ; +0xad, 0x1003662dd\npop     rbp                                                            ; +0xaf, 0x1003662df\njmp     GJPFollowCommandLayer__updateTextInputLabel                    ; +0xb0, 0x1003662e0", "xrefs": ["GJPFollowCommandLayer::init @ 0x10036571b", "GJPFollowCommandLayer::init @ 0x1003657d5"], "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"}