//
// sub_1406023F0 from 0x1406023f0 to 0x140602544 (340 bytes)
//
// 3 xrefs:
// > SetupItemCompareTriggerPopup::updateOpButton @ 0x140604e9c
// > SetupItemCompareTriggerPopup::updateFormulaLabel @ 0x1406058ef
// > ??> @ 0x14092f8c4
//
// 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 11:35:11 +0000
//
__int64 __fastcall sub_1406023F0(__int64 a1, int a2)
{
__int64 result; // rax
switch ( a2 )
{
case 0:
*(_OWORD *)a1 = 0;
*(_QWORD *)(a1 + 16) = 2;
*(_QWORD *)(a1 + 24) = 15;
strcpy((char *)a1, "==");
result = a1;
break;
case 1:
*(_OWORD *)a1 = 0;
*(_QWORD *)(a1 + 16) = 1;
*(_QWORD *)(a1 + 24) = 15;
*(_BYTE *)a1 = 62;
*(_BYTE *)(a1 + 1) = 0;
result = a1;
break;
case 2:
*(_OWORD *)a1 = 0;
*(_QWORD *)(a1 + 16) = 2;
*(_QWORD *)(a1 + 24) = 15;
strcpy((char *)a1, ">=");
result = a1;
break;
case 3:
*(_OWORD *)a1 = 0;
*(_QWORD *)(a1 + 16) = 1;
*(_QWORD *)(a1 + 24) = 15;
*(_BYTE *)a1 = 60;
*(_BYTE *)(a1 + 1) = 0;
result = a1;
break;
case 4:
*(_OWORD *)a1 = 0;
*(_QWORD *)(a1 + 16) = 2;
*(_QWORD *)(a1 + 24) = 15;
strcpy((char *)a1, "<=");
result = a1;
break;
case 5:
*(_OWORD *)a1 = 0;
*(_QWORD *)(a1 + 16) = 2;
*(_QWORD *)(a1 + 24) = 15;
strcpy((char *)a1, "!=");
result = a1;
break;
default:
*(_OWORD *)a1 = 0;
*(_QWORD *)(a1 + 16) = 1;
*(_QWORD *)(a1 + 24) = 15;
*(_WORD *)a1 = 63;
result = a1;
break;
}
return result;
}