//
// EditorUI::adjustCustomGridSize from 0x100475220 to 0x100475278 (88 bytes)
//
// 2 xrefs:
// > EditorUI::handleEditorAction @ 0x100163670
// > EditorUI::handleEditorAction @ 0x100163698
//
// 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 11:05:40 +0000
//
__int64 __fastcall EditorUI::adjustCustomGridSize(__int64 a1, int a2)
{
float v3; // s0
__int64 v4; // x0
if ( (*(_BYTE *)(a1 + 656) & 1) != 0 )
{
v3 = *(float *)(a1 + 652) + (float)a2;
}
else
{
*(_BYTE *)(a1 + 656) = 1;
v4 = GameManager::sharedState();
GameManager::setGameVariable(v4, "0194", 1);
v3 = 30.0;
}
return sub_100475084(a1, v3);
}