//
// SetupDashRingPopup::init from 0x14060a580 to 0x14060ac17 (1687 bytes)
//
// 2 xrefs:
// > EditorUI::editObjectSpecial @ 0x1401bd4d6
// > ??> @ 0x14092faec
//
// This function is hookable on this platform (idp: pc, 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:35:13 +0000
//
// Hidden C++ exception states: #wind=3
char __fastcall SetupDashRingPopup::init(__int64 a1, int a2, int a3, int a4)
{
char result; // al
_QWORD *v6; // r9
_QWORD *v7; // rcx
const char *v8; // rdx
__int64 v9; // r8
__int64 v10; // rcx
__int64 v11; // rax
__int64 v12; // rax
__int64 v13; // rax
__int64 v14; // rax
__int64 v15; // rax
__int64 v16; // rax
int v17; // eax
char v18; // [rsp+80h] [rbp-88h]
__int64 v19; // [rsp+80h] [rbp-88h]
__int64 v20; // [rsp+80h] [rbp-88h]
float v21; // [rsp+88h] [rbp-80h] BYREF
float v22; // [rsp+8Ch] [rbp-7Ch]
__int128 *v23; // [rsp+90h] [rbp-78h] BYREF
__int128 *v24; // [rsp+98h] [rbp-70h] BYREF
__int128 *v25; // [rsp+A0h] [rbp-68h] BYREF
__int128 v26; // [rsp+A8h] [rbp-60h] BYREF
__int64 v27; // [rsp+B8h] [rbp-50h]
__int64 v28; // [rsp+C0h] [rbp-48h]
__int128 v29; // [rsp+C8h] [rbp-40h] BYREF
__int64 v30; // [rsp+D8h] [rbp-30h]
__int64 v31; // [rsp+E0h] [rbp-28h]
char v32; // [rsp+160h] [rbp+58h] BYREF
result = SetupTriggerPopup::init(a1, a2, a3, a4, 1131413504, 1, 0);
if ( result )
{
*(_BYTE *)(a1 + 744) = 1;
(*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 1096LL))(a1);
v27 = 8;
v28 = 15;
v26 = 0x62724F2068736144uLL;
SetupTriggerPopup::addTitle(a1, &v26);
v26 = 0;
v27 = 2;
v28 = 15;
strcpy((char *)&v26, "OK");
SetupTriggerPopup::addCloseButton(a1, &v26);
v23 = &v26;
v26 = 0;
v27 = 0;
v28 = 0;
v6 = sub_14003D460(0x120u);
*(_QWORD *)&v26 = v6;
v27 = 281;
v28 = 287;
v7 = v6;
v8 = "Speed changes the speed of the dash.\n"
"End Boost is the force applied when the dash stops.\n"
"Max Duration will end the dash automatically after this time.\n"
"Allow Collide makes the dash not end on collision.\n"
"Stop Slide will limit the end momentum.";
v9 = 2;
do
{
*(_OWORD *)v7 = *(_OWORD *)v8;
*((_OWORD *)v7 + 1) = *((_OWORD *)v8 + 1);
*((_OWORD *)v7 + 2) = *((_OWORD *)v8 + 2);
*((_OWORD *)v7 + 3) = *((_OWORD *)v8 + 3);
*((_OWORD *)v7 + 4) = *((_OWORD *)v8 + 4);
*((_OWORD *)v7 + 5) = *((_OWORD *)v8 + 5);
*((_OWORD *)v7 + 6) = *((_OWORD *)v8 + 6);
v7 += 16;
*((_OWORD *)v7 - 1) = *((_OWORD *)v8 + 7);
v8 += 128;
--v9;
}
while ( v9 );
*(_OWORD *)v7 = *(_OWORD *)v8;
v7[2] = *((_QWORD *)v8 + 2);
*((_BYTE *)v7 + 24) = v8[24];
*((_BYTE *)v6 + 281) = 0;
v29 = 0;
v30 = 4;
v31 = 15;
strcpy((char *)&v29, "Help");
SetupTriggerPopup::addHelpButton(a1, &v29, &v26);
v11 = cocos2d::CCDirector::sharedDirector(v10);
cocos2d::CCDirector::getWinSize(v11, &v21);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v32, v21 * 0.5, (float)(v22 * 0.5) + 70.0);
v24 = &v26;
v26 = 0;
v27 = 5;
v28 = 15;
strcpy((char *)&v26, "Speed");
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v25, 0.0, 0.0);
cocos2d::CCPoint::operator+(&v32, &v23, v12);
v18 = 0;
SetupTriggerPopup::createValueControlAdvanced(
a1,
586,
(unsigned int)&v26,
(unsigned int)&v23,
1061997773,
0,
1,
6,
0,
0,
0x40000000,
0,
0,
1,
2,
v18);
v25 = &v26;
*((_QWORD *)&v26 + 1) = 116;
v27 = 9;
v28 = 15;
*(_QWORD *)&v26 = 0x736F6F4220646E45LL;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v24, 0.0, -40.0);
cocos2d::CCPoint::operator+(&v32, &v23, v13);
LOBYTE(v19) = 0;
SetupTriggerPopup::createValueControlAdvanced(
a1,
588,
(unsigned int)&v26,
(unsigned int)&v23,
1061997773,
0,
1,
6,
0,
0,
0x40000000,
0,
0,
1,
2,
v19);
v25 = &v26;
v27 = 12;
v28 = 15;
strcpy((char *)&v26, "Max Duration");
BYTE13(v26) = 0;
HIWORD(v26) = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v24, 0.0, -80.0);
cocos2d::CCPoint::operator+(&v32, &v23, v14);
LOBYTE(v20) = 0;
SetupTriggerPopup::createValueControlAdvanced(
a1,
590,
(unsigned int)&v26,
(unsigned int)&v23,
1061997773,
0,
1,
6,
0,
0,
0x40000000,
0,
0,
1,
2,
v20);
v25 = &v26;
v27 = 13;
v28 = 15;
strcpy((char *)&v26, "Allow\nCollide");
HIWORD(v26) = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v24, -80.0, -120.0);
cocos2d::CCPoint::operator+(&v32, &v23, v15);
SetupTriggerPopup::createToggleValueControl(a1, 587, (unsigned int)&v26, (unsigned int)&v23, 0, 0, 0, 1065353216);
v25 = &v26;
*((_QWORD *)&v26 + 1) = 25956;
v27 = 10;
v28 = 15;
*(_QWORD *)&v26 = 0x696C530A706F7453LL;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v24, 20.0, -120.0);
cocos2d::CCPoint::operator+(&v32, &v23, v16);
SetupTriggerPopup::createToggleValueControl(a1, 589, (unsigned int)&v26, (unsigned int)&v23, 0, 0, 0, 1065353216);
v25 = &v26;
v26 = 0;
v27 = 0;
v28 = 0;
*(_QWORD *)&v26 = sub_14003D460(0x20u);
v27 = 17;
v28 = 31;
strcpy((char *)v26, "NO Multi\nActivate");
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v24,
(float)((float)(v21 * 0.5) - (float)(*(float *)(a1 + 732) * 0.5)) + 20.0,
(float)((float)(v22 * 0.5) - (float)(*(float *)(a1 + 736) * 0.5)) + 25.0);
SetupTriggerPopup::createToggleValueControl(a1, 444, (unsigned int)&v26, v17, 0, 0, 0, 1065353216);
(*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 1136LL))(a1);
*(_BYTE *)(a1 + 744) = 0;
return 1;
}
return result;
}