//
// SetupTriggerPopup::updateInputNodeLabel from 0x9e887c to 0x9e8994 (280 bytes)
//
// 3 xrefs:
// > SetupAreaAnimTriggerPopup::onDeactivateAnimValue @ 0xa09354
// > SetupAreaAnimTriggerPopup::updateDefaultTriggerValues @ 0xa129c8
// > ??> @ 0x524a0
//
// 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 __fastcall SetupTriggerPopup::updateInputNodeLabel(__int64 a1, int a2)
{
cocos2d::CCDictionary *v3; // x0
CCTextInputNode *v4; // x22
unsigned __int8 *v5; // x0
unsigned int *v7; // x2
int v8; // w1
const unsigned __int8 *v9; // [xsp+50h] [xbp+50h] BYREF
v3 = *(cocos2d::CCDictionary **)(a1 + 728);
*(_BYTE *)(a1 + 716) = 1;
v4 = (CCTextInputNode *)cocos2d::CCDictionary::objectForKey(v3, a2);
if ( v4 )
{
sub_D18D28(&v9);
CCTextInputNode::setString(v4, &v9);
v5 = (unsigned __int8 *)(v9 - 24);
if ( v9 - 24 != (const unsigned __int8 *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v7 = (unsigned int *)(v9 - 8);
do
v8 = __ldaxr(v7);
while ( __stlxr(v8 - 1, v7) );
}
else
{
v8 = *((_DWORD *)v9 - 2);
*((_DWORD *)v9 - 2) = v8 - 1;
}
if ( v8 <= 0 )
operator delete(v5);
}
}
*(_BYTE *)(a1 + 716) = 0;
return _stack_chk_guard;
}