//
// EditorUI::updateGridNodeSize from 0x7c12f8 to 0x7c134c (84 bytes)
//
// 3 xrefs:
// > EditorUI::updateGridNodeSize @ 0x7c138c
// > EditorUI::updateGridNodeSize @ 0x7c1414
// > ??> @ 0x1017b8
//
// This function is hookable on this platform (idp: arm, 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 12:54:06 +0000
//
__int64 __fastcall EditorUI::updateGridNodeSize(EditorUI *this, int a2)
{
ObjectToolbox *v3; // x0
int v4; // s0
__int64 v5; // x0
__int64 result; // x0
v3 = (ObjectToolbox *)ObjectToolbox::sharedState(this);
ObjectToolbox::gridNodeSizeForKey(v3, a2);
if ( *((_BYTE *)this + 656) && *((float *)this + 163) > 0.0 )
v4 = *((_DWORD *)this + 163);
v5 = *((_QWORD *)this + 180);
*((_DWORD *)this + 162) = v4;
result = *(_QWORD *)(v5 + 14288);
*(_DWORD *)(result + 604) = v4;
return result;
}