//
// SetupCollisionTriggerPopup::updateSpecialNodes from 0x625e88 to 0x626072 (490 bytes)
//
// 2 xrefs:
// > SetupCollisionTriggerPopup::valueDidChange @ 0x6260a2
// > SetupCollisionTriggerPopup::updateDefaultTriggerValues @ 0x6260ba
//
// 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:09 +0000
//
int __fastcall SetupCollisionTriggerPopup::updateSpecialNodes(cocos2d::CCDictionary **this, int a2, int a3, int a4)
{
_BOOL4 v5; // r5
_BOOL4 v6; // r10
float v7; // s15
int v8; // r0
int v9; // r7
int v10; // r1
float v11; // r0
int result; // r0
int v13; // r7
float v14; // r0
cocos2d::CCDictionary **v15; // [sp+0h] [bp-10h] BYREF
int v16; // [sp+4h] [bp-Ch]
int v17; // [sp+8h] [bp-8h]
int v18; // [sp+Ch] [bp-4h]
v15 = this;
v16 = a2;
v17 = a3;
v18 = a4;
v5 = COERCE_FLOAT((*((int (__fastcall **)(cocos2d::CCDictionary **, int))*this + 183))(this, 201)) != 0.0;
v6 = COERCE_FLOAT((*((int (__fastcall **)(cocos2d::CCDictionary **, int))*this + 183))(this, 138)) != 0.0;
v7 = COERCE_FLOAT((*((int (__fastcall **)(cocos2d::CCDictionary **, int))*this + 183))(this, 200));
v8 = cocos2d::CCDictionary::objectForKey(*(this + 144), 80);
v9 = v8;
if ( v8 )
{
if ( v6 )
v10 = 0;
else
v10 = v7 == 0.0 && !v5;
(*(void (__fastcall **)(int, int))(*(_DWORD *)v8 + 500))(v8, v10);
if ( v5 )
{
v15 = nullptr;
v16 = 0;
v17 = 0;
std::string::__init((int *)&v15, "P1", 2u);
CCTextInputNode::setString(v9, (int)&v15);
}
else
{
if ( v6 )
{
v15 = nullptr;
v16 = 0;
v17 = 0;
if ( v7 == 0.0 )
std::string::__init((int *)&v15, "P1", 2u);
else
std::string::__init((int *)&v15, "P", 1u);
}
else if ( v7 == 0.0 )
{
v11 = (*((float (__fastcall **)(cocos2d::CCDictionary **, int))*this + 183))(this, 80);
GameToolbox::intToString((GameToolbox *)&v15, (int)v11);
}
else
{
v15 = nullptr;
v16 = 0;
v17 = 0;
std::string::__init((int *)&v15, "P2", 2u);
}
CCTextInputNode::setString(v9, (int)&v15);
}
std::string::~string((int)&v15);
}
result = cocos2d::CCDictionary::objectForKey(*(this + 144), 95);
v13 = result;
if ( result )
{
(*(void (__fastcall **)(int, bool))(*(_DWORD *)result + 500))(result, !v5);
if ( v5 )
{
v15 = nullptr;
v16 = 0;
v17 = 0;
std::string::__init((int *)&v15, "P2", 2u);
}
else
{
v14 = (*((float (__fastcall **)(cocos2d::CCDictionary **, int))*this + 183))(this, 95);
GameToolbox::intToString((GameToolbox *)&v15, (int)v14);
}
CCTextInputNode::setString(v13, (int)&v15);
return std::string::~string((int)&v15);
}
return result;
}