//
// sub_1005ACEB0 from 0x1005aceb0 to 0x1005acf6f (191 bytes)
//
// 5 xrefs:
// > SetupItemEditTriggerPopup::updateFormulaLabel @ 0x1005ac284
// > SetupItemEditTriggerPopup::updateFormulaLabel @ 0x1005ac2a4
// > SetupItemEditTriggerPopup::updateFormulaLabel @ 0x1005ac2b6
// > SetupItemCompareTriggerPopup::updateFormulaLabel @ 0x1005aea8c
// > SetupItemCompareTriggerPopup::updateFormulaLabel @ 0x1005aea9e
//
// 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 12:32:37 +0000
//
std::string *__fastcall sub_1005ACEB0(std::string *this, int a2, int a3)
{
bool v4; // zf
const std::string::value_type *v5; // rsi
const std::string::value_type *v6; // rsi
std::string::size_type v7; // rdx
const std::string::value_type *v8; // rsi
size_t v10[2]; // [rsp+8h] [rbp-28h] BYREF
void *__p; // [rsp+18h] [rbp-18h]
*(_WORD *)&this->__r_.__value_.__l.0 = 0;
switch ( a2 )
{
case 1:
case 2:
v4 = a2 == 1;
v5 = "T";
if ( v4 )
v5 = "I";
std::string::assign(this, v5);
GameToolbox::intToString(v10, a3);
if ( (v10[0] & 1) != 0 )
{
v6 = (const std::string::value_type *)__p;
v7 = v10[1];
}
else
{
v7 = LOBYTE(v10[0]) >> 1;
v6 = (char *)v10 + 1;
}
std::string::append(this, v6, v7);
if ( (v10[0] & 1) != 0 )
operator delete(__p);
return this;
case 3:
v8 = "Points";
goto LABEL_10;
case 4:
v8 = "MainTime";
goto LABEL_10;
case 5:
v8 = "Attempts";
goto LABEL_10;
default:
v8 = "NA";
LABEL_10:
std::string::assign(this, v8);
return this;
}
}