{"type": "func", "start": 4297984144, "end": 4297984258, "name": "GJEffectManager::toggleGroup", "pseudocode": "// \n// GJEffectManager::toggleGroup from 0x1002e0890 to 0x1002e0902 (114 bytes)\n// \n// 2 xrefs:\n// > LevelEditorLayer::toggleGroupPreview @ 0x1000eff62\n// > GJBaseGameLayer::toggleGroup @ 0x10013cbb2\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 GJEffectManager::toggleGroup(GJEffectManager *a1, int a2, bool a3)\n{\n  __m128 v3; // xmm0\n  double v4; // xmm1_8\n  double v5; // xmm2_8\n  int v6; // eax\n  unsigned int v7; // ecx\n  std::__vector_base<bool>::pointer begin; // rax\n  __int64 v9; // rsi\n  __int64 v10; // r8\n  unsigned int v11; // [rsp+Ch] [rbp-4h] BYREF\n\n  v6 = 0;\n  if ( a2 > 0 )\n    v6 = a2;\n  v7 = 9999;\n  if ( v6 < 9999 )\n    v7 = v6;\n  v11 = v7;\n  begin = a1->m_unkVector438.__begin_;\n  v9 = v7 >> 6;\n  v10 = 1LL << v7;\n  if ( a3 )\n  {\n    *(_QWORD *)&begin[8 * v9] |= v10;\n    sub_1000569A0(&a1->m_unkMap460.__table_.__bucket_list_.__ptr_.__value_, (int *)&v11);\n  }\n  else\n  {\n    *(_QWORD *)&begin[8 * v9] &= ~v10;\n    sub_100054F50((float *)&a1->m_unkMap460, (int *)&v11, &v11, v3, v4, v5);\n  }\n}", "assembly": "; \n; GJEffectManager::toggleGroup from 0x1002e0890 to 0x1002e0902 (114 bytes)\n; \n; 2 xrefs:\n; > LevelEditorLayer::toggleGroupPreview @ 0x1000eff62\n; > GJBaseGameLayer::toggleGroup @ 0x10013cbb2\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, 0x1002e0890\nmov     rbp, rsp                                                       ; +0x1, 0x1002e0891\nsub     rsp, 10h                                                       ; +0x4, 0x1002e0894\nxor     eax, eax                                                       ; +0x8, 0x1002e0898\ntest    esi, esi                                                       ; +0xa, 0x1002e089a\ncmovg   eax, esi                                                       ; +0xc, 0x1002e089c\ncmp     eax, 270Fh                                                     ; +0xf, 0x1002e089f\nmov     ecx, 270Fh                                                     ; +0x14, 0x1002e08a4\ncmovl   ecx, eax                                                       ; +0x19, 0x1002e08a9\nmov     [rbp+var_4], ecx                                               ; +0x1c, 0x1002e08ac\nmov     rax, [rdi+3E8h]                                                ; +0x1f, 0x1002e08af\nmov     esi, ecx                                                       ; +0x26, 0x1002e08b6\nshr     esi, 6                                                         ; +0x28, 0x1002e08b8\nmov     r8d, 1                                                         ; +0x2b, 0x1002e08bb\nshl     r8, cl                                                         ; +0x31, 0x1002e08c1\ntest    edx, edx                                                       ; +0x34, 0x1002e08c4\njz      short loc_1002E08E2                                            ; +0x36, 0x1002e08c6\nor      [rax+rsi*8], r8                                                ; +0x38, 0x1002e08c8\nadd     rdi, 400h                                                      ; +0x3c, 0x1002e08cc\nlea     rsi, [rbp+var_4]                                               ; +0x43, 0x1002e08d3\ncall    sub_1000569A0                                                  ; +0x47, 0x1002e08d7\nadd     rsp, 10h                                                       ; +0x4c, 0x1002e08dc\npop     rbp                                                            ; +0x50, 0x1002e08e0\nretn                                                                   ; +0x51, 0x1002e08e1\nnot     r8                                                             ; +0x52, 0x1002e08e2\nand     [rax+rsi*8], r8                                                ; +0x55, 0x1002e08e5\nadd     rdi, 400h                                                      ; +0x59, 0x1002e08e9\nlea     rdx, [rbp+var_4]                                               ; +0x60, 0x1002e08f0\nmov     rsi, rdx                                                       ; +0x64, 0x1002e08f4\ncall    sub_100054F50                                                  ; +0x67, 0x1002e08f7\nadd     rsp, 10h                                                       ; +0x6c, 0x1002e08fc\npop     rbp                                                            ; +0x70, 0x1002e0900\nretn                                                                   ; +0x71, 0x1002e0901", "xrefs": ["LevelEditorLayer::toggleGroupPreview @ 0x1000eff62", "GJBaseGameLayer::toggleGroup @ 0x10013cbb2"], "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"}