//
// sub_14046C070 from 0x14046c070 to 0x14046c1b2 (322 bytes)
//
// 6 xrefs:
// > SetupItemEditTriggerPopup::updateFormulaLabel @ 0x14046c6e6
// > SetupItemEditTriggerPopup::updateFormulaLabel @ 0x14046c6f8
// > SetupItemEditTriggerPopup::updateFormulaLabel @ 0x14046c70a
// > SetupItemCompareTriggerPopup::updateFormulaLabel @ 0x14046eda8
// > SetupItemCompareTriggerPopup::updateFormulaLabel @ 0x14046edbf
// > ??> @ 0x1406db1ec
//
// 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
//
// Hidden C++ exception states: #wind=2
void **__fastcall sub_14046C070(void **Src, int a2, unsigned int a3)
{
char *v6; // rdx
size_t v7; // r8
void **v8; // rax
void *v9; // rdx
_QWORD v11[4]; // [rsp+30h] [rbp-38h] BYREF
*(_OWORD *)Src = 0;
Src[2] = nullptr;
Src[3] = (void *)15;
*(_BYTE *)Src = 0;
switch ( a2 )
{
case 1:
case 2:
v6 = "T";
if ( a2 == 1 )
v6 = (char *)&unk_1405FC558;
v7 = -1;
do
++v7;
while ( v6[v7] );
sub_14003CCE0(Src, v6, v7);
v8 = (void **)GameToolbox::intToString(v11, a3);
v9 = v8;
if ( (unsigned __int64)v8[3] > 0xF )
v9 = *v8;
sub_140041270(Src, v9, (size_t)v8[2]);
sub_14003A830((__int64)v11);
break;
case 3:
sub_14003CCE0(Src, &dword_1405D71AC, 6u);
break;
case 4:
sub_14003CCE0(Src, "MainTime", 8u);
break;
case 5:
sub_14003CCE0(Src, "Attempts", 8u);
break;
default:
sub_14003CCE0(Src, &word_140532F44, 2u);
break;
}
return Src;
}