//
// sub_1004750EC from 0x1004750ec to 0x10047514c (96 bytes)
//
// 2 xrefs:
// > EditorUI::toggleCustomGridEnabled @ 0x100475158
// > GridSettingsLayer::valueDidChange @ 0x1004df664
//
// 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 sub_1004750EC(__int64 a1, int a2)
{
__int64 v4; // x0
*(_BYTE *)(a1 + 656) = a2;
v4 = GameManager::sharedState();
GameManager::setGameVariable(v4, "0194", a2);
if ( a2 && *(float *)(a1 + 652) <= 0.0 )
return sub_100475084(a1, 30.0);
else
return EditorUI::updateGridNodeSize(a1);
}