//
// sub_10040D2AC from 0x10040d2ac to 0x10040d2e8 (60 bytes)
//
// 6 xrefs:
// > SetupItemEditTriggerPopup::updateOpButton @ 0x10040c8e4
// > SetupItemEditTriggerPopup::updateFormulaLabel @ 0x10040cd14
// > SetupItemEditTriggerPopup::updateFormulaLabel @ 0x10040ce6c
// > SetupItemCompareTriggerPopup::updateOpButton @ 0x10040e784
// > SetupItemCompareTriggerPopup::updateFormulaLabel @ 0x10040eab0
// > SetupItemCompareTriggerPopup::updateFormulaLabel @ 0x10040ecd4
//
// 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
//
_QWORD *__usercall sub_10040D2AC@(unsigned int a1@, int a2@, _QWORD *a3@)
{
char **v5; // x8
char *v6; // x1
if ( a1 > 3 )
{
v6 = "?";
}
else
{
v5 = off_100821B80;
if ( a2 )
v5 = off_100821B60;
v6 = v5[a1];
}
return sub_100009900(a3, v6);
}