{"type": "func", "start": 5370472176, "end": 5370472327, "name": "EditorUI::adjustCustomGridSize", "pseudocode": "// \n// EditorUI::adjustCustomGridSize from 0x1401ae6f0 to 0x1401ae787 (151 bytes)\n// \n// 3 xrefs:\n// > EditorUI::handleEditorAction @ 0x1401c29d7\n// > EditorUI::handleEditorAction @ 0x1401c29e6\n// > <???> @ 0x140919e14\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__int64 __fastcall EditorUI::adjustCustomGridSize(__int64 a1, int a2, __int64 a3)\n{\n  __int64 v4; // rcx\n  void *v6; // [rsp+30h] [rbp+8h]\n\n  if ( *(_BYTE *)(a1 + 704) )\n    return EditorUI::setCustomGridNodeSize(a1, (float)a2 + *(float *)(a1 + 700));\n  *(_BYTE *)(a1 + 704) = 1;\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  LOBYTE(a3) = 1;\n  GameManager::setGameVariable(v4, \"0194\", a3);\n  return EditorUI::setCustomGridNodeSize(a1, 30.0);\n}", "assembly": "; \n; EditorUI::adjustCustomGridSize from 0x1401ae6f0 to 0x1401ae787 (151 bytes)\n; \n; 3 xrefs:\n; > EditorUI::handleEditorAction @ 0x1401c29d7\n; > EditorUI::handleEditorAction @ 0x1401c29e6\n; > <???> @ 0x140919e14\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; \npush    rbx                                                            ; +0x0, 0x1401ae6f0\nsub     rsp, 20h                                                       ; +0x2, 0x1401ae6f2\nmov     rbx, rcx                                                       ; +0x6, 0x1401ae6f6\ncmp     byte ptr [rcx+2C0h], 0                                         ; +0x9, 0x1401ae6f9\njnz     short loc_1401AE76B                                            ; +0x10, 0x1401ae700\nmov     byte ptr [rcx+2C0h], 1                                         ; +0x12, 0x1401ae702\nmov     rcx, cs:qword_14090BFD0                                        ; +0x19, 0x1401ae709\ntest    rcx, rcx                                                       ; +0x20, 0x1401ae710\njnz     short loc_1401AE747                                            ; +0x23, 0x1401ae713\nmov     ecx, 6E8h; Size                                                ; +0x25, 0x1401ae715\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x2a, 0x1401ae71a\nmov     [rsp+28h+arg_0], rax                                           ; +0x2f, 0x1401ae71f\nmov     rcx, rax                                                       ; +0x34, 0x1401ae724\ncall    GameManager__GameManager                                       ; +0x37, 0x1401ae727\nnop                                                                    ; +0x3c, 0x1401ae72c\nmov     cs:qword_14090BFD0, rax                                        ; +0x3d, 0x1401ae72d\nmov     rcx, [rax]                                                     ; +0x44, 0x1401ae734\nmov     rdx, [rcx+48h]                                                 ; +0x47, 0x1401ae737\nmov     rcx, rax                                                       ; +0x4b, 0x1401ae73b\ncall    rdx                                                            ; +0x4e, 0x1401ae73e\nmov     rcx, cs:qword_14090BFD0                                        ; +0x50, 0x1401ae740\nmov     r8b, 1                                                         ; +0x57, 0x1401ae747\nlea     rdx, a0194; \"0194\"                                             ; +0x5a, 0x1401ae74a\ncall    GameManager__setGameVariable                                   ; +0x61, 0x1401ae751\nmovss   xmm1, cs:dword_140835624                                       ; +0x66, 0x1401ae756\nmov     rcx, rbx                                                       ; +0x6e, 0x1401ae75e\nadd     rsp, 20h                                                       ; +0x71, 0x1401ae761\npop     rbx                                                            ; +0x75, 0x1401ae765\njmp     EditorUI__setCustomGridNodeSize                                ; +0x76, 0x1401ae766\nmovd    xmm1, edx                                                      ; +0x7b, 0x1401ae76b\ncvtdq2ps xmm1, xmm1                                                    ; +0x7f, 0x1401ae76f\naddss   xmm1, dword ptr [rcx+2BCh]                                     ; +0x82, 0x1401ae772\nmov     rcx, rbx                                                       ; +0x8a, 0x1401ae77a\nadd     rsp, 20h                                                       ; +0x8d, 0x1401ae77d\npop     rbx                                                            ; +0x91, 0x1401ae781\njmp     EditorUI__setCustomGridNodeSize                                ; +0x92, 0x1401ae782", "xrefs": ["EditorUI::handleEditorAction @ 0x1401c29d7", "EditorUI::handleEditorAction @ 0x1401c29e6", "<???> @ 0x140919e14"], "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"}