//
// sub_10000DF60 from 0x10000df60 to 0x10000dfc4 (100 bytes)
//
// 2 xrefs:
// > sub_100908C40 @ 0x100908c5d
// > GridSettingsLayer::valueDidChange @ 0x100908d70
//
// 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 12:18:50 +0000
//
__int64 __fastcall sub_10000DF60(__int64 a1, __int64 a2, __int64 a3, float a4)
{
float v4; // xmm1_4
__int64 v5; // rax
float v6; // xmm0_4
v4 = 0.0;
if ( a4 > 0.0 )
v4 = fmaxf(fminf(a4, 300.0), 5.0);
*(float *)(a1 + 652) = v4;
v5 = GameManager::sharedState(a1, a2, a3);
v6 = GameManager::setIntGameVariable(v5, "0193", (unsigned int)(int)(float)(v4 * 10.0));
return EditorUI::updateGridNodeSize_1(a1, v6);
}