//
// SetupTriggerPopup::updateInputNode from 0x67acc0 to 0x67add6 (278 bytes)
//
// 7 xrefs:
// > CreateStartPosPopup::updateInputNode @ 0x48eace
// > SetupMoveCommandPopup::updateInputNode @ 0x5e717e
// > SetupRotateCommandPopup::updateInputNode @ 0x6100e6
// > SetupGameplayOffsetPopup::updateInputNode @ 0x67f9aa
// > SetupAreaMoveTriggerPopup::updateInputNode @ 0x68ee5a
// > SetupEnterEffectPopup::updateInputNode @ 0x693cf2
// > StartPosLayer::updateInputNode @ 0x6ab216
//
// 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:55:58 +0000
//
IDNameInput *__fastcall SetupTriggerPopup::updateInputNode(cocos2d::CCDictionary **this, int a2, float a3)
{
int v6; // r0
const char *v7; // r1
int v8; // r7
char *CString; // r1
unsigned int v10; // r5
cocos2d::CCString *v11; // r0
char *v12; // r0
IDNameInput *result; // r0
int v14[3]; // [sp+4h] [bp-20h] BYREF
int v15[3]; // [sp+10h] [bp-14h] BYREF
v6 = cocos2d::CCDictionary::objectForKey(*(this + 144), a2);
v8 = v6;
if ( v6 )
{
memset(v14, 0, sizeof(v14));
if ( a3 == -909190.0 )
{
CString = "NA";
}
else
{
v10 = *(_DWORD *)(v6 + 504) - 2;
if ( v10 <= 3 && ((1 << v10) & 0xB) != 0 )
{
LABEL_8:
v11 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)(int)a3);
}
else
{
switch ( *(_DWORD *)(v6 + 508) )
{
case 0:
goto LABEL_8;
case 1:
v12 = "%.01f";
break;
case 2:
v12 = "%.02f";
break;
case 3:
v12 = "%.03f";
break;
case 4:
v12 = "%.04f";
break;
default:
v12 = "%.02f";
break;
}
v11 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)v12, v7, a3);
}
CString = (char *)cocos2d::CCString::getCString(v11);
}
std::string::assign(v14, CString);
std::string::basic_string(v15, (int)v14);
CCTextInputNode::setString(v8, (int)v15);
std::string::~string((int)v15);
std::string::~string((int)v14);
}
result = (IDNameInput *)cocos2d::CCDictionary::objectForKey(*(this + 176), a2);
if ( result )
return (IDNameInput *)IDNameInput::refreshLabel(result);
return result;
}