//
// GridSettingsLayer::getValue from 0x100908c90 to 0x100908d04 (116 bytes)
//
// 1 xrefs:
// > ??> @ 0x100bbf6c0
//
// 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:38:06 +0000
//
float __fastcall GridSettingsLayer::getValue(_QWORD *a1, int a2)
{
__int64 v2; // rax
float result; // xmm0_4
__int64 v4; // rax
__m128 v5; // xmm2
__m128 v6; // xmm0
if ( a2 == -2 )
{
v4 = a1[127];
if ( v4 )
{
v5.i32[0] = 0;
v6 = _mm_cmpgt_ss((__m128)*(unsigned int *)(v4 + 652), v5);
LODWORD(result) = _mm_andnot_ps(v6, (__m128)0x41F00000u).u32[0] | *(_DWORD *)(v4 + 652) & v6.i32[0];
}
else
{
return 30.0;
}
}
else if ( a2 == -1 )
{
v2 = a1[127];
if ( v2 && *(_BYTE *)(v2 + 656) )
return 1.0;
else
return 0.0;
}
else
{
return SetupTriggerPopup::getValue(a1, a2);
}
return result;
}