//
// sub_100475084 from 0x100475084 to 0x1004750ec (104 bytes)
//
// 5 xrefs:
// > sub_1004750EC @ 0x100475148
// > EditorUI::cycleCustomGridPreset @ 0x1004751e4
// > EditorUI::adjustCustomGridSize @ 0x100475274
// > sub_1004DF5A0 @ 0x1004df5bc
// > GridSettingsLayer::valueDidChange @ 0x1004df68c
//
// 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_100475084(__int64 a1, float a2)
{
float v3; // s1
float v4; // s8
__int64 v5; // x0
v3 = fmaxf(fminf(a2, 300.0), 5.0);
if ( a2 <= 0.0 )
v4 = 0.0;
else
v4 = v3;
*(float *)(a1 + 652) = v4;
v5 = GameManager::sharedState();
GameManager::setIntGameVariable(v5, "0193", (int)(float)(v4 * 10.0));
return EditorUI::updateGridNodeSize(a1);
}