//
// GridSettingsLayer::getValue from 0x1004df5e4 to 0x1004df644 (96 bytes)
//
// 1 xrefs:
// > ??> @ 0x100992318
//
// 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:06:36 +0000
//
float __fastcall GridSettingsLayer::getValue(_QWORD *a1, int a2)
{
__int64 v2; // x8
float result; // s0
__int64 v4; // x8
if ( a2 == -2 )
{
v4 = a1[127];
if ( v4 )
{
result = *(float *)(v4 + 652);
if ( result <= 0.0 )
return 30.0;
}
else
{
return 30.0;
}
}
else if ( a2 == -1 )
{
v2 = a1[127];
if ( v2 )
{
result = 0.0;
if ( *(_BYTE *)(v2 + 656) )
return 1.0;
}
else
{
return 0.0;
}
}
else
{
return SetupTriggerPopup::getValue(a1, a2);
}
return result;
}