{"type": "func", "start": 4294982016, "end": 4294982189, "name": "GJRotateCommandLayer::onUpdateGroupID2", "pseudocode": "// \n// GJRotateCommandLayer::onUpdateGroupID2 from 0x100003980 to 0x100003a2d (173 bytes)\n// \n// 1 xrefs:\n// > GJRotateCommandLayer::init @ 0x100002b0b\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 GJRotateCommandLayer::onUpdateGroupID2(GJRotateCommandLayer *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_centerGroupID + 2 * (((unsigned int (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2) == 1) - 1;\n  v4 = 0;\n  if ( v3 > 0 )\n    v4 = v3;\n  v5 = 999;\n  if ( v4 < 999 )\n    v5 = v4;\n  a1->m_centerGroupID = 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_centerGroupID);\n      ++v7;\n    }\n    while ( v7 < (unsigned int)sub_100720070(a1->m_gameObjects) );\n  }\n  GJRotateCommandLayer::updateTextInputLabel2(a1);\n}", "assembly": "; \n; GJRotateCommandLayer::onUpdateGroupID2 from 0x100003980 to 0x100003a2d (173 bytes)\n; \n; 1 xrefs:\n; > GJRotateCommandLayer::init @ 0x100002b0b\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, 0x100003980\nmov     rbp, rsp                                                       ; +0x1, 0x100003981\npush    r14                                                            ; +0x4, 0x100003984\npush    rbx                                                            ; +0x6, 0x100003986\nmov     rbx, rdi                                                       ; +0x7, 0x100003987\nmov     rax, [rsi]                                                     ; +0xa, 0x10000398a\nmov     rdi, rsi                                                       ; +0xd, 0x10000398d\ncall    qword ptr [rax+40h]                                            ; +0x10, 0x100003990\nxor     ecx, ecx                                                       ; +0x13, 0x100003993\ncmp     eax, 1                                                         ; +0x15, 0x100003995\nsetz    cl                                                             ; +0x18, 0x100003998\nmov     eax, [rbx+428h]                                                ; +0x1b, 0x10000399b\nlea     eax, [rax+rcx*2]                                               ; +0x21, 0x1000039a1\ndec     eax                                                            ; +0x24, 0x1000039a4\nxor     ecx, ecx                                                       ; +0x26, 0x1000039a6\ntest    eax, eax                                                       ; +0x28, 0x1000039a8\ncmovg   ecx, eax                                                       ; +0x2a, 0x1000039aa\ncmp     ecx, 3E7h                                                      ; +0x2d, 0x1000039ad\nmov     esi, 3E7h                                                      ; +0x33, 0x1000039b3\ncmovl   esi, ecx                                                       ; +0x38, 0x1000039b8\nmov     [rbx+428h], esi                                                ; +0x3b, 0x1000039bb\nmov     rdi, [rbx+290h]                                                ; +0x41, 0x1000039c1\ntest    rdi, rdi                                                       ; +0x48, 0x1000039c8\njz      short loc_1000039D4                                            ; +0x4b, 0x1000039cb\ncall    EffectGameObject__setTargetID2                                 ; +0x4d, 0x1000039cd\njmp     short loc_100003A21                                            ; +0x52, 0x1000039d2\nmov     rdi, [rbx+298h]                                                ; +0x54, 0x1000039d4\ncall    sub_100720070                                                  ; +0x5b, 0x1000039db\ntest    eax, eax                                                       ; +0x60, 0x1000039e0\njz      short loc_100003A21                                            ; +0x62, 0x1000039e2\nxor     r14d, r14d                                                     ; +0x64, 0x1000039e4\nnop     word ptr [rax+rax+00000000h]                                   ; +0x67, 0x1000039e7\nmov     rdi, [rbx+298h]                                                ; +0x70, 0x1000039f0\nmov     esi, r14d                                                      ; +0x77, 0x1000039f7\ncall    sub_1007200C0                                                  ; +0x7a, 0x1000039fa\nmov     esi, [rbx+428h]                                                ; +0x7f, 0x1000039ff\nmov     rdi, rax                                                       ; +0x85, 0x100003a05\ncall    EffectGameObject__setTargetID2                                 ; +0x88, 0x100003a08\ninc     r14d                                                           ; +0x8d, 0x100003a0d\nmov     rdi, [rbx+298h]                                                ; +0x90, 0x100003a10\ncall    sub_100720070                                                  ; +0x97, 0x100003a17\ncmp     r14d, eax                                                      ; +0x9c, 0x100003a1c\njb      short loc_1000039F0                                            ; +0x9f, 0x100003a1f\nmov     rdi, rbx                                                       ; +0xa1, 0x100003a21\npop     rbx                                                            ; +0xa4, 0x100003a24\npop     r14                                                            ; +0xa5, 0x100003a25\npop     rbp                                                            ; +0xa7, 0x100003a27\njmp     GJRotateCommandLayer__updateTextInputLabel2                    ; +0xa8, 0x100003a28", "xrefs": ["GJRotateCommandLayer::init @ 0x100002b0b"], "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"}