{"type": "func", "start": 4294986016, "end": 4294986166, "name": "GJRotateCommandLayer::updateTargetGroupID2", "pseudocode": "// \n// GJRotateCommandLayer::updateTargetGroupID2 from 0x100004920 to 0x1000049b6 (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 GJRotateCommandLayer::updateTargetGroupID2(GJRotateCommandLayer *a1)\n{\n  int m_centerGroupID; // ecx\n  int v3; // esi\n  EffectGameObject *m_gameObject; // rdi\n  unsigned int v5; // r14d\n  EffectGameObject *v6; // rax\n\n  m_centerGroupID = 0;\n  if ( a1->m_centerGroupID > 0 )\n    m_centerGroupID = a1->m_centerGroupID;\n  v3 = 9999;\n  if ( m_centerGroupID < 9999 )\n    v3 = m_centerGroupID;\n  a1->m_centerGroupID = 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_centerGroupID);\n      ++v5;\n    }\n    while ( v5 < (unsigned int)sub_100720070(a1->m_gameObjects) );\n  }\n}", "assembly": "; \n; GJRotateCommandLayer::updateTargetGroupID2 from 0x100004920 to 0x1000049b6 (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, 0x100004920\nmov     rbp, rsp                                                       ; +0x1, 0x100004921\npush    r14                                                            ; +0x4, 0x100004924\npush    rbx                                                            ; +0x6, 0x100004926\nmov     rbx, rdi                                                       ; +0x7, 0x100004927\nmov     eax, [rdi+428h]                                                ; +0xa, 0x10000492a\nxor     ecx, ecx                                                       ; +0x10, 0x100004930\ntest    eax, eax                                                       ; +0x12, 0x100004932\ncmovg   ecx, eax                                                       ; +0x14, 0x100004934\ncmp     ecx, 270Fh                                                     ; +0x17, 0x100004937\nmov     esi, 270Fh                                                     ; +0x1d, 0x10000493d\ncmovl   esi, ecx                                                       ; +0x22, 0x100004942\nmov     [rdi+428h], esi                                                ; +0x25, 0x100004945\nmov     rdi, [rdi+290h]                                                ; +0x2b, 0x10000494b\ntest    rdi, rdi                                                       ; +0x32, 0x100004952\njz      short loc_100004960                                            ; +0x35, 0x100004955\npop     rbx                                                            ; +0x37, 0x100004957\npop     r14                                                            ; +0x38, 0x100004958\npop     rbp                                                            ; +0x3a, 0x10000495a\njmp     EffectGameObject__setTargetID2                                 ; +0x3b, 0x10000495b\nmov     rdi, [rbx+298h]                                                ; +0x40, 0x100004960\ncall    sub_100720070                                                  ; +0x47, 0x100004967\ntest    eax, eax                                                       ; +0x4c, 0x10000496c\njz      short loc_1000049B1                                            ; +0x4e, 0x10000496e\nxor     r14d, r14d                                                     ; +0x50, 0x100004970\nnop     word ptr [rax+rax+00000000h]                                   ; +0x53, 0x100004973\nmov     rdi, [rbx+298h]                                                ; +0x60, 0x100004980\nmov     esi, r14d                                                      ; +0x67, 0x100004987\ncall    sub_1007200C0                                                  ; +0x6a, 0x10000498a\nmov     esi, [rbx+428h]                                                ; +0x6f, 0x10000498f\nmov     rdi, rax                                                       ; +0x75, 0x100004995\ncall    EffectGameObject__setTargetID2                                 ; +0x78, 0x100004998\ninc     r14d                                                           ; +0x7d, 0x10000499d\nmov     rdi, [rbx+298h]                                                ; +0x80, 0x1000049a0\ncall    sub_100720070                                                  ; +0x87, 0x1000049a7\ncmp     r14d, eax                                                      ; +0x8c, 0x1000049ac\njb      short loc_100004980                                            ; +0x8f, 0x1000049af\npop     rbx                                                            ; +0x91, 0x1000049b1\npop     r14                                                            ; +0x92, 0x1000049b2\npop     rbp                                                            ; +0x94, 0x1000049b4\nretn                                                                   ; +0x95, 0x1000049b5", "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"}