//
// opKeyToString from 0x6b32d8 to 0x6b3340 (104 bytes)
//
// 7 xrefs:
// > SetupItemEditTriggerPopup::updateFormulaLabel @ 0x6b8282
// > SetupItemEditTriggerPopup::updateFormulaLabel @ 0x6b83de
// > SetupItemEditTriggerPopup::updateFormulaLabel @ 0x6b84d0
// > SetupItemCompareTriggerPopup::updateFormulaLabel @ 0x6b8a96
// > SetupItemCompareTriggerPopup::updateFormulaLabel @ 0x6b8be6
// > SetupItemEditTriggerPopup::updateOpButton @ 0x6b8f88
// > SetupItemCompareTriggerPopup::updateOpButton @ 0x6b9d76
//
// 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:41 +0000
//
int *__fastcall opKeyToString(int *a1, int a2)
{
const char *v3; // r1
size_t v4; // r2
switch ( a2 )
{
case 0:
*a1 = 0;
a1[1] = 0;
v3 = "=";
a1[2] = 0;
goto LABEL_7;
case 1:
*a1 = 0;
a1[1] = 0;
v3 = "+";
a1[2] = 0;
goto LABEL_7;
case 2:
*a1 = 0;
a1[1] = 0;
v3 = "-";
a1[2] = 0;
goto LABEL_7;
case 3:
v4 = 3;
*a1 = 0;
a1[1] = 0;
v3 = (const char *)&unk_B7AF60;
a1[2] = 0;
break;
case 4:
*a1 = 0;
v3 = "/";
a1[1] = 0;
a1[2] = 0;
LABEL_7:
v4 = 1;
break;
default:
v4 = 2;
*a1 = 0;
v3 = "NA";
a1[1] = 0;
a1[2] = 0;
break;
}
std::string::__init(a1, v3, v4);
return a1;
}