//
// roundKeyToString from 0xa48e0c to 0xa48f90 (388 bytes)
//
// 7 xrefs:
// > SetupItemEditTriggerPopup::updateOpButton @ 0xa494d8
// > SetupItemEditTriggerPopup::updateFormulaLabel @ 0xa49a1c
// > SetupItemEditTriggerPopup::updateFormulaLabel @ 0xa49d1c
// > SetupItemCompareTriggerPopup::updateOpButton @ 0xa4bedc
// > SetupItemCompareTriggerPopup::updateFormulaLabel @ 0xa4c28c
// > SetupItemCompareTriggerPopup::updateFormulaLabel @ 0xa4c3dc
// > ??> @ 0x87e40
//
// 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 __usercall roundKeyToString@(int a1@, char a2@, __int64 a3@)
{
__int64 v3; // x8
if ( a2 )
{
switch ( a1 )
{
case 0:
goto LABEL_7;
case 1:
sub_D153B8(a3, "rn");
v3 = a3;
break;
case 2:
sub_D153B8(a3, "fl");
v3 = a3;
break;
case 3:
sub_D153B8(a3, "ce");
v3 = a3;
break;
default:
goto LABEL_3;
}
}
else
{
switch ( a1 )
{
case 0:
LABEL_7:
sub_D153B8(a3, "na");
v3 = a3;
break;
case 1:
sub_D153B8(a3, "rnd");
v3 = a3;
break;
case 2:
sub_D153B8(a3, "flr");
v3 = a3;
break;
case 3:
sub_D153B8(a3, "cei");
v3 = a3;
break;
default:
LABEL_3:
sub_D153B8(a3, "?");
v3 = a3;
break;
}
}
return v3;
}