//
// sub_10038A99C from 0x10038a99c to 0x10038a9c4 (40 bytes)
//
// 1 xrefs:
// > GridSettingsLayer::onBuildWindowContent @ 0x1004df240
//
// 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:03:34 +0000
//
__int64 __fastcall sub_10038A99C(__int64 result, float a2, float a3, float a4)
{
float v4; // s1
float v5; // s2
float v6; // s0
v4 = a4 - a3;
v5 = fminf(a2, v4);
v6 = a2 / v4;
if ( v5 <= 0.0 )
v6 = 0.0;
*(float *)(*(_QWORD *)(*(_QWORD *)(result + 408) + 448LL) + 416LL) = v6;
return result;
}