//
// SetupCollisionTriggerPopup::updateSpecialNodes from 0xa9bb18 to 0xa9be30 (792 bytes)
//
// 3 xrefs:
// > SetupCollisionTriggerPopup::valueDidChange @ 0xa9be60
// > SetupCollisionTriggerPopup::updateDefaultTriggerValues @ 0xa9be84
// > ??> @ 0xb0ec0
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:00:46 +0000
//
__int64 __fastcall SetupCollisionTriggerPopup::updateSpecialNodes(cocos2d::CCDictionary **this)
{
_BOOL4 v2; // w23
unsigned int v3; // w22
_BOOL4 v4; // w24
__int64 v5; // x0
_QWORD *v6; // x21
void (*v7)(void); // x2
__int64 v8; // x0
_QWORD *v9; // x21
__int64 v11; // x0
float v12; // s0
float v13; // s0
__int64 v14; // [xsp+50h] [xbp+50h] BYREF
__int64 v15; // [xsp+58h] [xbp+58h]
void *v16; // [xsp+60h] [xbp+60h]
v2 = (*((float (__fastcall **)(cocos2d::CCDictionary **, __int64))*this + 183))(this, 201) != 0.0;
v3 = (*((float (__fastcall **)(cocos2d::CCDictionary **, __int64))*this + 183))(this, 138) != 0.0;
v4 = (*((float (__fastcall **)(cocos2d::CCDictionary **, __int64))*this + 183))(this, 200) != 0.0;
v5 = cocos2d::CCDictionary::objectForKey(*(this + 95), 80);
v6 = (_QWORD *)v5;
if ( !v5 )
{
LABEL_10:
v8 = cocos2d::CCDictionary::objectForKey(*(this + 95), 95);
v9 = (_QWORD *)v8;
if ( !v8 )
return _stack_chk_guard;
(*(void (__fastcall **)(__int64, bool))(*(_QWORD *)v8 + 1000LL))(v8, !v2);
if ( !v2 )
{
v12 = (*((float (__fastcall **)(cocos2d::CCDictionary **, __int64))*this + 183))(this, 95);
GameToolbox::intToString((unsigned __int64 *)&v14, (GameToolbox *)(unsigned int)(int)v12);
CCTextInputNode::setString(v9, (char *)&v14);
LABEL_13:
if ( (v14 & 1) != 0 )
operator delete(v16);
return _stack_chk_guard;
}
LABEL_12:
v14 = 0;
v15 = 0;
v16 = nullptr;
std::string::__init(&v14, "P2", 2u);
CCTextInputNode::setString(v9, (char *)&v14);
goto LABEL_13;
}
v7 = *(void (**)(void))(*(_QWORD *)v5 + 1000LL);
if ( v3 < !v4 && !v2 )
{
v7();
goto LABEL_5;
}
((void (__fastcall *)(__int64, _QWORD))v7)(v5, 0);
if ( !v2 )
{
LABEL_5:
if ( v4 )
{
v14 = 0;
v15 = 0;
v16 = nullptr;
if ( v3 )
std::string::__init(&v14, "P", 1u);
else
std::string::__init(&v14, "P2", 2u);
CCTextInputNode::setString(v6, (char *)&v14);
}
else
{
if ( v3 )
{
v14 = 0;
v15 = 0;
v16 = nullptr;
std::string::__init(&v14, "P1", 2u);
CCTextInputNode::setString(v6, (char *)&v14);
if ( (v14 & 1) == 0 )
goto LABEL_10;
goto LABEL_24;
}
v13 = (*((float (__fastcall **)(cocos2d::CCDictionary **, __int64))*this + 183))(this, 80);
GameToolbox::intToString((unsigned __int64 *)&v14, (GameToolbox *)(unsigned int)(int)v13);
CCTextInputNode::setString(v6, (char *)&v14);
}
if ( (v14 & 1) == 0 )
goto LABEL_10;
LABEL_24:
operator delete(v16);
goto LABEL_10;
}
v14 = 0;
v15 = 0;
v16 = nullptr;
std::string::__init(&v14, "P1", 2u);
CCTextInputNode::setString(v6, (char *)&v14);
if ( (v14 & 1) != 0 )
operator delete(v16);
v11 = cocos2d::CCDictionary::objectForKey(*(this + 95), 95);
v9 = (_QWORD *)v11;
if ( v11 )
{
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v11 + 1000LL))(v11, 0);
goto LABEL_12;
}
return _stack_chk_guard;
}