//
// SetupAreaAnimTriggerPopup::updateDefaultTriggerValues from 0xa128c0 to 0xa12a5c (412 bytes)
//
// 2 xrefs:
// > ??> @ 0xc1620
// > ??> @ 0x11d3ba8
//
// 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 SetupAreaAnimTriggerPopup::updateDefaultTriggerValues(SetupAreaAnimTriggerPopup *a1)
{
unsigned int v2; // w19
cocos2d::CCArray *v3; // x22
int v4; // w21
void *v5; // x0
unsigned int *v6; // x2
int v7; // w1
__int64 v8; // [xsp+70h] [xbp+70h] BYREF
v2 = 0;
SetupTriggerPopup::updateDefaultTriggerValues(a1);
v3 = cocos2d::CCDictionary::allKeys(a1->m_inputNodes);
if ( (unsigned int)cocos2d::CCArray::count(v3) )
{
do
{
v4 = *(_DWORD *)(cocos2d::CCArray::objectAtIndex(v3, v2) + 56);
if ( a1->getValue(a1, v4) != -99.0 )
goto LABEL_3;
sub_D153B8((int)&v8, "NA");
SetupTriggerPopup::updateInputNodeLabel((__int64)a1, v4);
v5 = (void *)(v8 - 24);
if ( (__int64 *)(v8 - 24) == &qword_124B6B0 )
goto LABEL_3;
if ( &pthread_create )
{
v6 = (unsigned int *)(v8 - 8);
do
v7 = __ldaxr(v6);
while ( __stlxr(v7 - 1, v6) );
}
else
{
v7 = *(_DWORD *)(v8 - 8);
*(_DWORD *)(v8 - 8) = v7 - 1;
}
if ( v7 > 0 )
{
LABEL_3:
++v2;
}
else
{
++v2;
operator delete(v5);
}
}
while ( v2 < (unsigned int)cocos2d::CCArray::count(v3) );
}
SetupAreaAnimTriggerPopup::updateTargetIDLabel(a1);
}