{"type": "func", "start": 4295024704, "end": 4295024832, "name": "EditorUI::toggleCustomGridEnabled", "pseudocode": "// \n// EditorUI::toggleCustomGridEnabled from 0x10000e040 to 0x10000e0c0 (128 bytes)\n// \n// 1 xrefs:\n// > EditorUI::handleEditorAction @ 0x10060be3b\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:18:50 +0000\n// \n\n__int64 __fastcall EditorUI::toggleCustomGridEnabled(__int64 a1, __int64 a2, __int64 a3, float a4)\n{\n  int v5; // r15d\n  __int64 v6; // rdi\n  __int64 v7; // rdx\n  __int64 v8; // rax\n\n  v5 = *(unsigned __int8 *)(a1 + 656);\n  *(_BYTE *)(a1 + 656) ^= 1u;\n  v6 = GameManager::sharedState(a1, a2, a3);\n  GameManager::setGameVariable(v6, \"0194\", v5 ^ 1u);\n  if ( !v5 )\n  {\n    a4 = 0.0;\n    if ( *(float *)(a1 + 652) <= 0.0 )\n    {\n      *(_DWORD *)(a1 + 652) = 1106247680;\n      v8 = GameManager::sharedState(v6, \"0194\", v7);\n      a4 = GameManager::setIntGameVariable(v8, \"0193\", 300);\n    }\n  }\n  return EditorUI::updateGridNodeSize_1(a1, a4);\n}", "assembly": "; \n; EditorUI::toggleCustomGridEnabled from 0x10000e040 to 0x10000e0c0 (128 bytes)\n; \n; 1 xrefs:\n; > EditorUI::handleEditorAction @ 0x10060be3b\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:18:50 +0000\n; \npush    rbp                                                            ; +0x0, 0x10000e040\nmov     rbp, rsp                                                       ; +0x1, 0x10000e041\npush    r15                                                            ; +0x4, 0x10000e044\npush    r14                                                            ; +0x6, 0x10000e046\npush    rbx                                                            ; +0x8, 0x10000e048\npush    rax                                                            ; +0x9, 0x10000e049\nmov     rbx, rdi                                                       ; +0xa, 0x10000e04a\nmovzx   r15d, byte ptr [rdi+290h]                                      ; +0xd, 0x10000e04d\nmov     r14d, r15d                                                     ; +0x15, 0x10000e055\nxor     r14d, 1                                                        ; +0x18, 0x10000e058\nmov     [rdi+290h], r14b                                               ; +0x1c, 0x10000e05c\ncall    GameManager__sharedState                                       ; +0x23, 0x10000e063\nlea     rsi, a0194; \"0194\"                                             ; +0x28, 0x10000e068\nmov     rdi, rax                                                       ; +0x2f, 0x10000e06f\nmov     edx, r14d                                                      ; +0x32, 0x10000e072\ncall    GameManager__setGameVariable                                   ; +0x35, 0x10000e075\ntest    r15d, r15d                                                     ; +0x3a, 0x10000e07a\njnz     short loc_10000E0AE                                            ; +0x3d, 0x10000e07d\nxorps   xmm0, xmm0                                                     ; +0x3f, 0x10000e07f\nucomiss xmm0, dword ptr [rbx+28Ch]                                     ; +0x42, 0x10000e082\njb      short loc_10000E0AE                                            ; +0x49, 0x10000e089\nmov     dword ptr [rbx+28Ch], 41F00000h                                ; +0x4b, 0x10000e08b\ncall    GameManager__sharedState                                       ; +0x55, 0x10000e095\nlea     rsi, a0193; \"0193\"                                             ; +0x5a, 0x10000e09a\nmov     rdi, rax                                                       ; +0x61, 0x10000e0a1\nmov     edx, 12Ch                                                      ; +0x64, 0x10000e0a4\ncall    GameManager__setIntGameVariable                                ; +0x69, 0x10000e0a9\nmov     rdi, rbx                                                       ; +0x6e, 0x10000e0ae\nadd     rsp, 8                                                         ; +0x71, 0x10000e0b1\npop     rbx                                                            ; +0x75, 0x10000e0b5\npop     r14                                                            ; +0x76, 0x10000e0b6\npop     r15                                                            ; +0x78, 0x10000e0b8\npop     rbp                                                            ; +0x7a, 0x10000e0ba\njmp     EditorUI__updateGridNodeSize_1                                 ; +0x7b, 0x10000e0bb", "xrefs": ["EditorUI::handleEditorAction @ 0x10060be3b"], "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"}