//
// SetupCollisionTriggerPopup::updateItemIDInputLabel from 0x140419a10 to 0x140419ad3 (195 bytes)
//
// 6 xrefs:
// > SetupCollisionTriggerPopup::init @ 0x140418eae
// > SetupCollisionTriggerPopup::onTargetP1 @ 0x140419447
// > SetupCollisionTriggerPopup::onTargetP2 @ 0x140419507
// > SetupCollisionTriggerPopup::onTargetPP @ 0x1404195c7
// > SetupCollisionTriggerPopup::onItemIDArrow @ 0x140419737
// > ??> @ 0x1406d91a0
//
// 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
//
void SetupCollisionTriggerPopup::updateItemIDInputLabel(SetupCollisionTriggerPopup *a1)
{
int m_blockAID; // edx
cocos2d::CCString *v3; // rax
const char *CString; // rax
__int16 *v5; // rdx
__int16 *v6; // rax
size_t v7; // r8
__int128 v8; // [rsp+20h] [rbp-28h] BYREF
__int64 v9; // [rsp+30h] [rbp-18h]
__int64 v10; // [rsp+38h] [rbp-10h]
m_blockAID = a1->m_blockAID;
a1->m_disableTextDelegate = 1;
v3 = cocos2d::CCString::createWithFormat("%i", m_blockAID);
CString = cocos2d::CCString::getCString(v3);
if ( a1->m_targetPP )
{
v5 = &word_14056CA20;
}
else if ( a1->m_targetP1 )
{
v6 = (__int16 *)"P";
if ( !a1->m_targetP2 )
v6 = &word_14056CA20;
v5 = v6;
}
else
{
v5 = &word_14056CA1C;
if ( !a1->m_targetP2 )
v5 = (__int16 *)CString;
}
v8 = 0;
v9 = 0;
v7 = -1;
v10 = 0;
do
++v7;
while ( *((_BYTE *)v5 + v7) );
sub_14003A930(&v8, v5, v7);
CCTextInputNode::setString((__int64)a1->m_blockAInput, &v8);
a1->m_disableTextDelegate = 0;
}