//
// sub_14046BF20 from 0x14046bf20 to 0x14046c064 (324 bytes)
//
// 3 xrefs:
// > SetupItemCompareTriggerPopup::updateOpButton @ 0x14046e7b0
// > SetupItemCompareTriggerPopup::updateFormulaLabel @ 0x14046f11f
// > ??> @ 0x1406db1e0
//
// 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
//
__int64 __fastcall sub_14046BF20(__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;
*(_WORD *)a1 = 62;
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;
*(_WORD *)a1 = 60;
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;
}