//
// sub_1002CD204 from 0x1002cd204 to 0x1002cd430 (556 bytes)
//
// 2 xrefs:
// > SetupInstantCollisionTriggerPopup::valueDidChange @ 0x1002cd1fc
// > SetupInstantCollisionTriggerPopup::updateDefaultTriggerValues @ 0x1002cd4e8
//
// 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 11:02:36 +0000
//
void __fastcall sub_1002CD204(_QWORD *a1)
{
float v2; // s8
float v3; // s9
float v4; // s10
_QWORD *v5; // x0
__n128 v6; // q0
_QWORD *v7; // x20
__int64 *v8; // x8
float v9; // s0
_QWORD *v10; // x0
__n128 v11; // q0
_QWORD *v12; // x20
__int64 *v13; // x8
float v14; // s0
__int64 v15[2]; // [xsp+8h] [xbp-D8h] BYREF
char v16; // [xsp+1Fh] [xbp-C1h]
__int64 v17[2]; // [xsp+20h] [xbp-C0h] BYREF
char v18; // [xsp+37h] [xbp-A9h]
__int64 v19[2]; // [xsp+38h] [xbp-A8h] BYREF
char v20; // [xsp+4Fh] [xbp-91h]
__int64 v21[2]; // [xsp+50h] [xbp-90h] BYREF
char v22; // [xsp+67h] [xbp-79h]
__int64 v23[2]; // [xsp+68h] [xbp-78h] BYREF
char v24; // [xsp+7Fh] [xbp-61h]
__int64 v25[2]; // [xsp+80h] [xbp-60h] BYREF
char v26; // [xsp+97h] [xbp-49h]
__int64 v27[2]; // [xsp+98h] [xbp-48h] BYREF
char v28; // [xsp+AFh] [xbp-31h]
v2 = (*(float (__fastcall **)(_QWORD *, __int64))(*a1 + 1464LL))(a1, 201);
v3 = (*(float (__fastcall **)(_QWORD *, __int64))(*a1 + 1464LL))(a1, 138);
v4 = (*(float (__fastcall **)(_QWORD *, __int64))(*a1 + 1464LL))(a1, 200);
v6 = cocos2d::CCDictionary::objectForKey_1(a1[95], 80);
if ( v5 )
{
v7 = v5;
if ( v2 == 0.0 )
{
if ( v3 == 0.0 || v4 == 0.0 )
{
if ( v3 == 0.0 )
{
if ( v4 == 0.0 )
{
v9 = (*(float (__fastcall **)(_QWORD *, __int64, __n128))(*a1 + 1464LL))(a1, 80, v6);
GameToolbox::intToString((unsigned int)(int)v9, v19);
CCTextInputNode::setString(v7, v19);
if ( (v20 & 0x80000000) == 0 )
goto LABEL_18;
v8 = v19;
}
else
{
sub_100009900(v21, "P2");
CCTextInputNode::setString(v7, v21);
if ( (v22 & 0x80000000) == 0 )
goto LABEL_18;
v8 = v21;
}
}
else
{
sub_100009900(v23, "P1");
CCTextInputNode::setString(v7, v23);
if ( (v24 & 0x80000000) == 0 )
goto LABEL_18;
v8 = v23;
}
}
else
{
sub_100009900(v25, "P");
CCTextInputNode::setString(v7, v25);
if ( (v26 & 0x80000000) == 0 )
goto LABEL_18;
v8 = v25;
}
}
else
{
sub_100009900(v27, "P1");
CCTextInputNode::setString(v7, v27);
if ( (v28 & 0x80000000) == 0 )
goto LABEL_18;
v8 = v27;
}
operator delete((void *)*v8);
}
LABEL_18:
v11 = cocos2d::CCDictionary::objectForKey_1(a1[95], 95);
if ( !v10 )
return;
v12 = v10;
if ( v2 == 0.0 )
{
v14 = (*(float (__fastcall **)(_QWORD *, __int64, __n128))(*a1 + 1464LL))(a1, 95, v11);
GameToolbox::intToString((unsigned int)(int)v14, v15);
CCTextInputNode::setString(v12, v15);
if ( (v16 & 0x80000000) == 0 )
return;
v13 = v15;
}
else
{
sub_100009900(v17, "P2");
CCTextInputNode::setString(v12, v17);
if ( (v18 & 0x80000000) == 0 )
return;
v13 = v17;
}
operator delete((void *)*v13);
}