{"type": "func", "start": 4297896752, "end": 4297896866, "name": "GJEffectManager::toggleGroup", "pseudocode": "// \n// GJEffectManager::toggleGroup from 0x1002cb330 to 0x1002cb3a2 (114 bytes)\n// \n// 2 xrefs:\n// > LevelEditorLayer::toggleGroupPreview @ 0x1000c3692\n// > GJBaseGameLayer::toggleGroup @ 0x10011a062\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:28:10 +0000\n// \n\n_QWORD *__fastcall GJEffectManager::toggleGroup(__int64 a1, int a2, int a3, __m128 a4)\n{\n  int v4; // eax\n  unsigned int v5; // ecx\n  __int64 v6; // rax\n  __int64 v7; // rsi\n  __int64 v8; // r8\n  unsigned int v10; // [rsp+Ch] [rbp-4h] BYREF\n\n  v4 = 0;\n  if ( a2 > 0 )\n    v4 = a2;\n  v5 = 9999;\n  if ( v4 < 9999 )\n    v5 = v4;\n  v10 = v5;\n  v6 = *(_QWORD *)(a1 + 1008);\n  v7 = v5 >> 6;\n  v8 = 1LL << v5;\n  if ( a3 )\n  {\n    *(_QWORD *)(v6 + 8 * v7) |= v8;\n    return (_QWORD *)sub_10001C120((__int64 *)(a1 + 1032), (int *)&v10);\n  }\n  else\n  {\n    *(_QWORD *)(v6 + 8 * v7) &= ~v8;\n    return sub_10001B800((float *)(a1 + 1032), (int *)&v10, &v10, a4);\n  }\n}", "assembly": "; \n; GJEffectManager::toggleGroup from 0x1002cb330 to 0x1002cb3a2 (114 bytes)\n; \n; 2 xrefs:\n; > LevelEditorLayer::toggleGroupPreview @ 0x1000c3692\n; > GJBaseGameLayer::toggleGroup @ 0x10011a062\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:28:10 +0000\n; \npush    rbp                                                            ; +0x0, 0x1002cb330\nmov     rbp, rsp                                                       ; +0x1, 0x1002cb331\nsub     rsp, 10h                                                       ; +0x4, 0x1002cb334\nxor     eax, eax                                                       ; +0x8, 0x1002cb338\ntest    esi, esi                                                       ; +0xa, 0x1002cb33a\ncmovg   eax, esi                                                       ; +0xc, 0x1002cb33c\ncmp     eax, 270Fh                                                     ; +0xf, 0x1002cb33f\nmov     ecx, 270Fh                                                     ; +0x14, 0x1002cb344\ncmovl   ecx, eax                                                       ; +0x19, 0x1002cb349\nmov     [rbp+var_4], ecx                                               ; +0x1c, 0x1002cb34c\nmov     rax, [rdi+3F0h]                                                ; +0x1f, 0x1002cb34f\nmov     esi, ecx                                                       ; +0x26, 0x1002cb356\nshr     esi, 6                                                         ; +0x28, 0x1002cb358\nmov     r8d, 1                                                         ; +0x2b, 0x1002cb35b\nshl     r8, cl                                                         ; +0x31, 0x1002cb361\ntest    edx, edx                                                       ; +0x34, 0x1002cb364\njz      short loc_1002CB382                                            ; +0x36, 0x1002cb366\nor      [rax+rsi*8], r8                                                ; +0x38, 0x1002cb368\nadd     rdi, 408h                                                      ; +0x3c, 0x1002cb36c\nlea     rsi, [rbp+var_4]                                               ; +0x43, 0x1002cb373\ncall    sub_10001C120                                                  ; +0x47, 0x1002cb377\nadd     rsp, 10h                                                       ; +0x4c, 0x1002cb37c\npop     rbp                                                            ; +0x50, 0x1002cb380\nretn                                                                   ; +0x51, 0x1002cb381\nnot     r8                                                             ; +0x52, 0x1002cb382\nand     [rax+rsi*8], r8                                                ; +0x55, 0x1002cb385\nadd     rdi, 408h                                                      ; +0x59, 0x1002cb389\nlea     rdx, [rbp+var_4]                                               ; +0x60, 0x1002cb390\nmov     rsi, rdx                                                       ; +0x64, 0x1002cb394\ncall    sub_10001B800                                                  ; +0x67, 0x1002cb397\nadd     rsp, 10h                                                       ; +0x6c, 0x1002cb39c\npop     rbp                                                            ; +0x70, 0x1002cb3a0\nretn                                                                   ; +0x71, 0x1002cb3a1", "xrefs": ["LevelEditorLayer::toggleGroupPreview @ 0x1000c3692", "GJBaseGameLayer::toggleGroup @ 0x10011a062"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}