//
// EditorUI::updateGridNodeSize from 0x1401ae330 to 0x1401ae390 (96 bytes)
//
// 4 xrefs:
// > EditorUI::updateGridNodeSize_1 @ 0x1401ae1dd
// > EditorUI::updateGridNodeSize_1 @ 0x1401ae1f9
// > EditorUI::updateGridNodeSize_1 @ 0x1401ae2c9
// > ??> @ 0x140919de4
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:27:54 +0000
//
__int64 __fastcall EditorUI::updateGridNodeSize(__int64 a1, unsigned int a2)
{
int v2; // xmm0_4
__int64 v5; // rcx
__int64 result; // rax
ObjectToolbox::sharedState();
ObjectToolbox::gridNodeSizeForKey(v5, a2);
if ( *(_BYTE *)(a1 + 704) && *(float *)(a1 + 700) > 0.0 )
v2 = *(_DWORD *)(a1 + 700);
result = *(_QWORD *)(a1 + 1512);
*(_DWORD *)(a1 + 696) = v2;
*(_DWORD *)(*(_QWORD *)(result + 14944) + 636LL) = v2;
return result;
}