//
// SetupItemCompareTriggerPopup::onOpButton from 0x1005ae630 to 0x1005ae6ed (189 bytes)
//
// 1 xrefs:
// > SetupItemCompareTriggerPopup::init @ 0x1005ae204
//
// 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:32:38 +0000
//
__int64 __fastcall SetupItemCompareTriggerPopup::onOpButton(_QWORD *a1, __int64 a2, float a3)
{
__int64 v4; // r15
int v5; // eax
int v6; // esi
int v7; // r12d
v4 = (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
(*(void (__fastcall **)(_QWORD *, __int64))(*a1 + 1464LL))(a1, v4);
v5 = 4;
if ( (_DWORD)v4 != 482 )
{
v5 = 2;
if ( (unsigned int)(v4 - 485) >= 2 )
v5 = 2 * ((v4 & 0xFFFFFFFE) != 578) + 1;
}
v6 = 0;
if ( v5 >= (int)a3 )
v6 = (int)a3 + 1;
v7 = 1;
if ( v6 >= 2 )
v7 = v6;
if ( (v4 & 0xFFFFFFFE) != 0x1E0 )
v7 = v6;
SetupTriggerPopup::updateValue(a1, v4, (float)v7);
SetupItemCompareTriggerPopup::updateOpButton(a1, a2, (unsigned int)v7, (unsigned int)v4);
return SetupItemCompareTriggerPopup::updateFormulaLabel(a1);
}