{"type": "func", "start": 5372890960, "end": 5372891114, "name": "LevelEditorLayer::resetToggledGroupsAndObjects", "pseudocode": "// \n// LevelEditorLayer::resetToggledGroupsAndObjects from 0x1403fcf50 to 0x1403fcfea (154 bytes)\n// \n// 2 xrefs:\n// > LevelEditorLayer::onPlaytest @ 0x1403fed8c\n// > SetGroupIDLayer::onClose @ 0x1405947f8\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 11:31:53 +0000\n// \n\nint __fastcall LevelEditorLayer::resetToggledGroupsAndObjects(_QWORD *a1)\n{\n  __int64 v1; // rax\n  __int64 v2; // r8\n  unsigned int *v4; // rax\n  __int64 v5; // rcx\n  __int64 *v6; // rax\n  __int64 *i; // rdx\n  __int64 v8; // rcx\n  unsigned __int64 v9; // r9\n  __int64 v10; // r11\n  int *v11; // rdx\n  int result; // eax\n\n  v1 = a1[442];\n  v2 = 0;\n  if ( v1 )\n  {\n    v4 = *(unsigned int **)(v1 + 56);\n    v5 = *v4;\n    if ( (_DWORD)v5 )\n    {\n      v6 = *((__int64 **)v4 + 2);\n      for ( i = &v6[v5 - 1]; v6 <= i; *(_BYTE *)(v8 + 654) = 0 )\n      {\n        v8 = *v6;\n        if ( !*v6 )\n          break;\n        ++v6;\n        *(_DWORD *)(v8 + 1216) = 0;\n      }\n    }\n  }\n  v9 = 0;\n  v10 = 10000;\n  do\n  {\n    *(_BYTE *)(++v2 + a1[1918] - 1) = 0;\n    v11 = (int *)(a1[1897] + 4 * (v9 >> 5));\n    result = *v11 & ~(1 << (v9++ & 0x1F));\n    *v11 = result;\n    --v10;\n  }\n  while ( v10 );\n  return result;\n}", "assembly": "; \n; LevelEditorLayer::resetToggledGroupsAndObjects from 0x1403fcf50 to 0x1403fcfea (154 bytes)\n; \n; 2 xrefs:\n; > LevelEditorLayer::onPlaytest @ 0x1403fed8c\n; > SetGroupIDLayer::onClose @ 0x1405947f8\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 11:31:53 +0000\n; \nmov     rax, [rcx+0DD0h]                                               ; +0x0, 0x1403fcf50\nxor     r8d, r8d                                                       ; +0x7, 0x1403fcf57\nmov     r10, rcx                                                       ; +0xa, 0x1403fcf5a\ntest    rax, rax                                                       ; +0xd, 0x1403fcf5d\njz      short loc_1403FCF9F                                            ; +0x10, 0x1403fcf60\nmov     rax, [rax+38h]                                                 ; +0x12, 0x1403fcf62\nmov     ecx, [rax]                                                     ; +0x16, 0x1403fcf66\ntest    ecx, ecx                                                       ; +0x18, 0x1403fcf68\njz      short loc_1403FCF9F                                            ; +0x1a, 0x1403fcf6a\nmov     rax, [rax+10h]                                                 ; +0x1c, 0x1403fcf6c\nlea     rdx, [rcx-1]                                                   ; +0x20, 0x1403fcf70\nlea     rdx, [rax+rdx*8]                                               ; +0x24, 0x1403fcf74\ncmp     rax, rdx                                                       ; +0x28, 0x1403fcf78\nja      short loc_1403FCF9F                                            ; +0x2b, 0x1403fcf7b\nnop     dword ptr [rax]                                                ; +0x2d, 0x1403fcf7d\nmov     rcx, [rax]                                                     ; +0x30, 0x1403fcf80\ntest    rcx, rcx                                                       ; +0x33, 0x1403fcf83\njz      short loc_1403FCF9F                                            ; +0x36, 0x1403fcf86\nadd     rax, 8                                                         ; +0x38, 0x1403fcf88\nmov     [rcx+4C0h], r8d                                                ; +0x3c, 0x1403fcf8c\nmov     [rcx+28Eh], r8b                                                ; +0x43, 0x1403fcf93\ncmp     rax, rdx                                                       ; +0x4a, 0x1403fcf9a\njbe     short loc_1403FCF80                                            ; +0x4d, 0x1403fcf9d\nmov     r9, r8                                                         ; +0x4f, 0x1403fcf9f\nmov     r11d, 2710h                                                    ; +0x52, 0x1403fcfa2\nnop     dword ptr [rax+rax+00000000h]                                  ; +0x58, 0x1403fcfa8\nmov     rax, [r10+3BF0h]                                               ; +0x60, 0x1403fcfb0\nlea     r8, [r8+1]                                                     ; +0x67, 0x1403fcfb7\nmov     rcx, r9                                                        ; +0x6b, 0x1403fcfbb\nshr     rcx, 5                                                         ; +0x6e, 0x1403fcfbe\nmov     byte ptr [r8+rax-1], 0                                         ; +0x72, 0x1403fcfc2\nmov     rax, [r10+3B48h]                                               ; +0x78, 0x1403fcfc8\nlea     rdx, [rax+rcx*4]                                               ; +0x7f, 0x1403fcfcf\nmov     ecx, r9d                                                       ; +0x83, 0x1403fcfd3\nmov     eax, [rdx]                                                     ; +0x86, 0x1403fcfd6\nand     ecx, 1Fh                                                       ; +0x88, 0x1403fcfd8\nbtr     eax, ecx                                                       ; +0x8b, 0x1403fcfdb\ninc     r9                                                             ; +0x8e, 0x1403fcfde\nmov     [rdx], eax                                                     ; +0x91, 0x1403fcfe1\nsub     r11, 1                                                         ; +0x93, 0x1403fcfe3\njnz     short loc_1403FCFB0                                            ; +0x97, 0x1403fcfe7\nretn                                                                   ; +0x99, 0x1403fcfe9", "xrefs": ["LevelEditorLayer::onPlaytest @ 0x1403fed8c", "SetGroupIDLayer::onClose @ 0x1405947f8"], "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"}