//
// isOpValid from 0x57a1fc to 0x57a22c (48 bytes)
//
// 3 xrefs:
// > SetupItemEditTriggerPopup::updateFormulaLabel @ 0x57a686
// > SetupItemCompareTriggerPopup::updateFormulaLabel @ 0x57ba14
// > SetupItemCompareTriggerPopup::updateFormulaLabel @ 0x57bb2c
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
int __fastcall isOpValid(int a1, float a2)
{
unsigned int v2; // r0
if ( a2 == 1.0 )
{
v2 = a1 - 3;
return v2 > 1;
}
if ( a2 == 0.0 )
{
v2 = a1 - 1;
return v2 > 1;
}
return 1;
}