//
// isOpValid from 0x6b3200 to 0x6b3230 (48 bytes)
//
// 3 xrefs:
// > SetupItemEditTriggerPopup::updateFormulaLabel @ 0x6b8244
// > SetupItemCompareTriggerPopup::updateFormulaLabel @ 0x6b8a78
// > SetupItemCompareTriggerPopup::updateFormulaLabel @ 0x6b8bc8
//
// 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:56:40 +0000
//
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;
}