//
// SetupInstantCollisionTriggerPopup::updateSpecialNodes from 0xa9c6d0 to 0xa9c9b4 (740 bytes)
//
// 3 xrefs:
// > SetupInstantCollisionTriggerPopup::valueDidChange @ 0xa9c9d0
// > SetupInstantCollisionTriggerPopup::updateDefaultTriggerValues @ 0xa9c9f4
// > ??> @ 0xa6018
//
// 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 SetupInstantCollisionTriggerPopup::updateSpecialNodes(cocos2d::CCDictionary **this)
{
_BOOL4 v2; // w20
float v3; // s8
_QWORD *v4; // x22
_QWORD *v5; // x22
float v7; // s0
float v8; // s0
long double v9; // [xsp+40h] [xbp+40h]
__int64 v10; // [xsp+50h] [xbp+50h] BYREF
__int64 v11; // [xsp+58h] [xbp+58h]
void *v12; // [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);
v9 = ((long double (__fastcall *)(cocos2d::CCDictionary **, __int64))*((_QWORD *)*this + 183))(this, 200);
v4 = (_QWORD *)cocos2d::CCDictionary::objectForKey(*(this + 95), 80);
if ( !v4 )
{
v5 = (_QWORD *)cocos2d::CCDictionary::objectForKey(*(this + 95), 95);
if ( !v5 )
return _stack_chk_guard;
if ( !v2 )
{
LABEL_12:
v7 = (*((float (__fastcall **)(cocos2d::CCDictionary **, __int64))*this + 183))(this, 95);
GameToolbox::intToString((unsigned __int64 *)&v10, (GameToolbox *)(unsigned int)(int)v7);
CCTextInputNode::setString(v5, (char *)&v10);
goto LABEL_13;
}
goto LABEL_15;
}
if ( !v2 )
{
if ( *(float *)&v9 == 0.0 )
{
if ( v3 != 0.0 )
{
v10 = 0;
v11 = 0;
v12 = nullptr;
std::string::__init(&v10, "P1", 2u);
CCTextInputNode::setString(v4, (char *)&v10);
if ( (v10 & 1) == 0 )
goto LABEL_8;
goto LABEL_18;
}
v8 = (*((float (__fastcall **)(cocos2d::CCDictionary **, __int64, long double))*this + 183))(this, 80, v9);
GameToolbox::intToString((unsigned __int64 *)&v10, (GameToolbox *)(unsigned int)(int)v8);
CCTextInputNode::setString(v4, (char *)&v10);
}
else
{
v10 = 0;
v11 = 0;
v12 = nullptr;
if ( v3 == 0.0 )
std::string::__init(&v10, "P2", 2u);
else
std::string::__init(&v10, "P", 1u);
CCTextInputNode::setString(v4, (char *)&v10);
}
if ( (v10 & 1) == 0 )
goto LABEL_8;
LABEL_18:
operator delete(v12);
LABEL_8:
v5 = (_QWORD *)cocos2d::CCDictionary::objectForKey(*(this + 95), 95);
if ( !v5 )
return _stack_chk_guard;
goto LABEL_12;
}
v10 = 0;
v11 = 0;
v12 = nullptr;
std::string::__init(&v10, "P1", 2u);
CCTextInputNode::setString(v4, (char *)&v10);
if ( (v10 & 1) != 0 )
operator delete(v12);
v5 = (_QWORD *)cocos2d::CCDictionary::objectForKey(*(this + 95), 95);
if ( v5 )
{
LABEL_15:
v10 = 0;
v11 = 0;
v12 = nullptr;
std::string::__init(&v10, "P2", 2u);
CCTextInputNode::setString(v5, (char *)&v10);
LABEL_13:
if ( (v10 & 1) != 0 )
operator delete(v12);
}
return _stack_chk_guard;
}