//
// SetupTriggerPopup::getTruncatedValue from 0x677390 to 0x6773e6 (86 bytes)
//
// 2 xrefs:
// > SetupTriggerPopup::getTruncatedValueByTag @ 0x67740a
// > SetupTriggerPopup::textChanged @ 0x67e5ec
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:55:57 +0000
//
int __fastcall SetupTriggerPopup::getTruncatedValue(SetupTriggerPopup *this, float a2, int a3)
{
float v3; // s16
float v4; // s16
if ( a3 > 0 )
{
if ( a3 == 1 )
v4 = 10.0;
else
v4 = powf(10.0, (float)a3);
v3 = COERCE_FLOAT(roundf()) / v4;
}
else
{
v3 = (float)(int)a2;
}
return LODWORD(v3);
}