{"type": "func", "start": 5370471712, "end": 5370471873, "name": "EditorUI::setCustomGridEnabled", "pseudocode": "// \n// EditorUI::setCustomGridEnabled from 0x1401ae520 to 0x1401ae5c1 (161 bytes)\n// \n// 4 xrefs:\n// > EditorUI::handleEditorAction @ 0x1401c2983\n// > GridSettingsLayer::valueDidChange @ 0x1402c9502\n// > GridSettingsLayer::valueDidChange @ 0x1402c9509\n// > <???> @ 0x140919dfc\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:27:54 +0000\n// \n\n// Hidden C++ exception states: #wind=1\n__int64 __fastcall EditorUI::setCustomGridEnabled(__int64 a1, unsigned __int8 a2)\n{\n  __int64 v4; // rcx\n  void *v6; // [rsp+30h] [rbp+8h]\n\n  *(_BYTE *)(a1 + 704) = a2;\n  v4 = qword_14090BFD0;\n  if ( !qword_14090BFD0 )\n  {\n    v6 = operator new(0x6E8u);\n    qword_14090BFD0 = GameManager::GameManager(v6);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n    v4 = qword_14090BFD0;\n  }\n  GameManager::setGameVariable(v4, \"0194\", a2);\n  if ( a2 && *(float *)(a1 + 700) <= 0.0 )\n    return EditorUI::setCustomGridNodeSize(a1, 30.0);\n  else\n    return EditorUI::updateGridNodeSize_1(a1);\n}", "assembly": "; \n; EditorUI::setCustomGridEnabled from 0x1401ae520 to 0x1401ae5c1 (161 bytes)\n; \n; 4 xrefs:\n; > EditorUI::handleEditorAction @ 0x1401c2983\n; > GridSettingsLayer::valueDidChange @ 0x1402c9502\n; > GridSettingsLayer::valueDidChange @ 0x1402c9509\n; > <???> @ 0x140919dfc\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:27:54 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1401ae520\npush    rdi                                                            ; +0x5, 0x1401ae525\nsub     rsp, 20h                                                       ; +0x6, 0x1401ae526\nmovzx   edi, dl                                                        ; +0xa, 0x1401ae52a\nmov     rbx, rcx                                                       ; +0xd, 0x1401ae52d\nmov     [rcx+2C0h], dl                                                 ; +0x10, 0x1401ae530\nmov     rcx, cs:qword_14090BFD0                                        ; +0x16, 0x1401ae536\ntest    rcx, rcx                                                       ; +0x1d, 0x1401ae53d\njnz     short loc_1401AE574                                            ; +0x20, 0x1401ae540\nmov     ecx, 6E8h; Size                                                ; +0x22, 0x1401ae542\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x27, 0x1401ae547\nmov     [rsp+28h+arg_0], rax                                           ; +0x2c, 0x1401ae54c\nmov     rcx, rax                                                       ; +0x31, 0x1401ae551\ncall    GameManager__GameManager                                       ; +0x34, 0x1401ae554\nnop                                                                    ; +0x39, 0x1401ae559\nmov     cs:qword_14090BFD0, rax                                        ; +0x3a, 0x1401ae55a\nmov     rcx, [rax]                                                     ; +0x41, 0x1401ae561\nmov     rdx, [rcx+48h]                                                 ; +0x44, 0x1401ae564\nmov     rcx, rax                                                       ; +0x48, 0x1401ae568\ncall    rdx                                                            ; +0x4b, 0x1401ae56b\nmov     rcx, cs:qword_14090BFD0                                        ; +0x4d, 0x1401ae56d\nmovzx   r8d, dil                                                       ; +0x54, 0x1401ae574\nlea     rdx, a0194; \"0194\"                                             ; +0x58, 0x1401ae578\ncall    GameManager__setGameVariable                                   ; +0x5f, 0x1401ae57f\ntest    dil, dil                                                       ; +0x64, 0x1401ae584\njz      short loc_1401AE5AF                                            ; +0x67, 0x1401ae587\nxorps   xmm0, xmm0                                                     ; +0x69, 0x1401ae589\ncomiss  xmm0, dword ptr [rbx+2BCh]                                     ; +0x6c, 0x1401ae58c\njb      short loc_1401AE5AF                                            ; +0x73, 0x1401ae593\nmovss   xmm1, cs:dword_140835624                                       ; +0x75, 0x1401ae595\nmov     rcx, rbx                                                       ; +0x7d, 0x1401ae59d\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x80, 0x1401ae5a0\nadd     rsp, 20h                                                       ; +0x85, 0x1401ae5a5\npop     rdi                                                            ; +0x89, 0x1401ae5a9\njmp     EditorUI__setCustomGridNodeSize                                ; +0x8a, 0x1401ae5aa\nmov     rcx, rbx                                                       ; +0x8f, 0x1401ae5af\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x92, 0x1401ae5b2\nadd     rsp, 20h                                                       ; +0x97, 0x1401ae5b7\npop     rdi                                                            ; +0x9b, 0x1401ae5bb\njmp     EditorUI__updateGridNodeSize_1                                 ; +0x9c, 0x1401ae5bc", "xrefs": ["EditorUI::handleEditorAction @ 0x1401c2983", "GridSettingsLayer::valueDidChange @ 0x1402c9502", "GridSettingsLayer::valueDidChange @ 0x1402c9509", "<???> @ 0x140919dfc"], "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"}