//
// sub_1002EF970 from 0x1002ef970 to 0x1002ef9aa (58 bytes)
//
// 1 xrefs:
// > GridSettingsLayer::onBuildWindowContent @ 0x100908846
//
// 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:28:25 +0000
//
__int64 __fastcall sub_1002EF970(__int64 a1, __m128 a2, float a3, __m128 a4)
{
__int64 result; // rax
__m128 v5; // xmm1
a4.f32[0] = a4.f32[0] - a3;
result = *(_QWORD *)(*(_QWORD *)(a1 + 408) + 448LL);
v5 = a2;
v5.f32[0] = a2.f32[0] / a4.f32[0];
*(_DWORD *)(result + 416) = _mm_andnot_ps(
_mm_cmple_ss(a2, (__m128)0LL),
_mm_andnot_ps(_mm_cmple_ss(a4, (__m128)0LL), v5)).u32[0];
return result;
}