//
// SetupMoveCommandPopup::init from 0xa3ddd0 to 0xa3ee18 (4168 bytes)
//
// 2 xrefs:
// > SetupMoveCommandPopup::create @ 0xa3f088
// > ??> @ 0x89f68
//
// 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 12:59:55 +0000
//
__int64 __fastcall SetupMoveCommandPopup::init(SetupMoveCommandPopup *this, EffectGameObject *a2, cocos2d::CCArray *a3)
{
unsigned __int8 v4; // w0
unsigned int v5; // w25
cocos2d::CCDirector *v7; // x0
cocos2d::CCDirector *v8; // x0
cocos2d::CCArray *v9; // x1
cocos2d::CCArray *v10; // x1
cocos2d::CCArray *v11; // x1
cocos2d::CCArray *v12; // x1
int v13; // w27
int v14; // [xsp+8h] [xbp-28h]
int v15; // [xsp+8h] [xbp-28h]
int v16; // [xsp+8h] [xbp-28h]
int v17; // [xsp+20h] [xbp-10h]
int v18; // [xsp+20h] [xbp-10h]
int v19; // [xsp+20h] [xbp-10h]
int v20; // [xsp+20h] [xbp-10h]
int v21; // [xsp+20h] [xbp-10h]
_QWORD v22[2]; // [xsp+30h] [xbp+0h] BYREF
cocos2d::CCArray *v23; // [xsp+D8h] [xbp+A8h]
__int64 v24; // [xsp+E8h] [xbp+B8h] BYREF
_BYTE v25[8]; // [xsp+F0h] [xbp+C0h] BYREF
_BYTE v26[8]; // [xsp+F8h] [xbp+C8h] BYREF
__int64 v27; // [xsp+100h] [xbp+D0h] BYREF
__int64 v28[2]; // [xsp+108h] [xbp+D8h] BYREF
void *v29; // [xsp+118h] [xbp+E8h]
__int64 v30; // [xsp+120h] [xbp+F0h] BYREF
__int64 v31; // [xsp+128h] [xbp+F8h]
void *v32; // [xsp+130h] [xbp+100h]
v4 = SetupTriggerPopup::init(this, a2, a3, 440.0, 310.0, 1, 0.0);
v5 = v4;
if ( v4 )
{
v7 = (cocos2d::CCDirector *)SetupTriggerPopup::preSetup(this);
v8 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v7);
cocos2d::CCDirector::getWinSize(&v24, v8);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v25, *(float *)&v24 * 0.5, *((float *)&v24 + 1) * 0.5);
v30 = 0;
v31 = 0;
v32 = nullptr;
std::string::__init(&v30, "Setup Move Command", 0x12u);
SetupTriggerPopup::addTitle(this, &v30);
if ( (v30 & 1) != 0 )
operator delete(v32);
v30 = 0;
v31 = 0;
v32 = nullptr;
std::string::__init(&v30, "OK", 2u);
SetupTriggerPopup::addCloseButton(this, &v30);
if ( (v30 & 1) != 0 )
operator delete(v32);
SetupTriggerPopup::createMultiTriggerItemsCorner(this);
v28[0] = 0;
v28[1] = 0;
v29 = nullptr;
std::string::__init(v28, "Help", 4u);
v30 = 0;
v31 = 0;
v32 = nullptr;
std::string::__init(
&v30,
"Moves a group of objects to another position.\n"
"Easing changes the method used.\n"
"Target Mode moves the group to the position of another group.\n"
"Direction Mode moves the group in the direction of another group. Use Dynamic Mode to update locat"
"ions in real-time for the 2 previous options.\n"
"Small Step changes steps to their actual number, so 1 grid space is 30 instead of 10.",
0x1A1u);
SetupTriggerPopup::addHelpButton(this, v28, &v30, 1.0);
if ( (v30 & 1) != 0 )
operator delete(v32);
if ( (v28[0] & 1) != 0 )
operator delete(v29);
v30 = 0;
v31 = 0;
v32 = nullptr;
std::string::__init(&v30, "Move X:", 7u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v26, -100.0, 100.0);
cocos2d::CCPoint::operator+(&v27, v25);
v9 = (cocos2d::CCArray *)SetupTriggerPopup::createValueControlAdvanced(
this,
28,
&v30,
&v27,
0,
2,
10,
0,
0.8,
-100.0,
100.0,
0,
28,
1,
0,
0);
if ( (v30 & 1) != 0 )
{
v23 = v9;
operator delete(v32);
v9 = v23;
}
SetupTriggerPopup::addObjectsToGroup(this, v9, 9001);
v30 = 0;
v31 = 0;
v32 = nullptr;
std::string::__init(&v30, "Move Y:", 7u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v26, 105.0, 100.0);
cocos2d::CCPoint::operator+(&v27, v25);
LOBYTE(v17) = 0;
v10 = (cocos2d::CCArray *)SetupTriggerPopup::createValueControlAdvanced(
this,
29,
&v30,
&v27,
0,
2,
10,
0,
0.8,
-100.0,
100.0,
0,
29,
1,
0,
v17);
if ( (v30 & 1) != 0 )
{
v23 = v10;
operator delete(v32);
v10 = v23;
}
SetupTriggerPopup::addObjectsToGroup(this, v10, 9001);
v30 = 0;
v31 = 0;
v32 = nullptr;
std::string::__init(&v30, "Mod X:", 6u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v26, -100.0, 100.0);
cocos2d::CCPoint::operator+(&v27, v25);
LOBYTE(v18) = 0;
v11 = (cocos2d::CCArray *)SetupTriggerPopup::createValueControlAdvanced(
this,
143,
&v30,
&v27,
0,
1,
10,
0,
0.8,
-1.0,
1.0,
0,
143,
1,
3,
v18);
if ( (v30 & 1) != 0 )
{
v23 = v11;
operator delete(v32);
v11 = v23;
}
SetupTriggerPopup::addObjectsToGroup(this, v11, 9001);
v30 = 0;
v31 = 0;
v32 = nullptr;
std::string::__init(&v30, "Mod Y:", 6u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v26, 105.0, 100.0);
cocos2d::CCPoint::operator+(&v27, v25);
LOBYTE(v19) = 0;
v12 = (cocos2d::CCArray *)SetupTriggerPopup::createValueControlAdvanced(
this,
144,
&v30,
&v27,
0,
1,
10,
0,
0.8,
-1.0,
1.0,
0,
144,
1,
3,
v19);
if ( (v30 & 1) != 0 )
{
v23 = v12;
operator delete(v32);
v12 = v23;
}
SetupTriggerPopup::addObjectsToGroup(this, v12, 9001);
v30 = 0;
v31 = 0;
v32 = nullptr;
std::string::__init(&v30, "Lock X:", 7u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v26, -120.0, 71.0);
cocos2d::CCPoint::operator+(&v27, v25);
SetupTriggerPopup::addInfoLabel(this, &v30, &v27, 0, 9001, 0.55);
if ( (v30 & 1) != 0 )
operator delete(v32);
v30 = 0;
v31 = 0;
v32 = nullptr;
std::string::__init(&v30, "Player", 6u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v26, -180.0, 45.0);
cocos2d::CCPoint::operator+(&v27, v25);
SetupTriggerPopup::createToggleValueControl(this, 58, &v30, &v27, 0, 0, 9001, 1.0);
if ( (v30 & 1) != 0 )
operator delete(v32);
v30 = 0;
v31 = 0;
v32 = nullptr;
std::string::__init(&v30, "Camera", 6u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v26, -90.0, 45.0);
cocos2d::CCPoint::operator+(&v27, v25);
SetupTriggerPopup::createToggleValueControl(this, 141, &v30, &v27, 0, 0, 9001, 1.0);
if ( (v30 & 1) != 0 )
operator delete(v32);
v30 = 0;
v31 = 0;
v32 = nullptr;
std::string::__init(&v30, "Lock Y:", 7u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v26, 105.0, 71.0);
cocos2d::CCPoint::operator+(&v27, v25);
SetupTriggerPopup::addInfoLabel(this, &v30, &v27, 0, 9001, 0.55);
if ( (v30 & 1) != 0 )
operator delete(v32);
v30 = 0;
v31 = 0;
v32 = nullptr;
std::string::__init(&v30, "Player", 6u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v26, 35.0, 45.0);
cocos2d::CCPoint::operator+(&v27, v25);
SetupTriggerPopup::createToggleValueControl(this, 59, &v30, &v27, 0, 0, 9001, 1.0);
if ( (v30 & 1) != 0 )
operator delete(v32);
v30 = 0;
v31 = 0;
v32 = nullptr;
std::string::__init(&v30, "Camera", 6u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v26, 125.0, 45.0);
cocos2d::CCPoint::operator+(&v27, v25);
SetupTriggerPopup::createToggleValueControl(this, 142, &v30, &v27, 0, 0, 9001, 1.0);
if ( (v30 & 1) != 0 )
operator delete(v32);
v30 = 0;
v31 = 0;
v32 = nullptr;
std::string::__init(&v30, "Center Group ID:", 0x10u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v26, -100.0, 90.0);
cocos2d::CCPoint::operator+(&v27, v25);
LOBYTE(v14) = 0;
IDNameInput::create(this, (char *)this + 544, 1, 395, &v30, &v27, 10, 9004, 0.8, 0, v14);
if ( (v30 & 1) != 0 )
operator delete(v32);
v30 = 0;
v31 = 0;
v32 = nullptr;
std::string::__init(&v30, "TargetPos Group ID:", 0x13u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v26, 60.0, 90.0);
cocos2d::CCPoint::operator+(&v27, v25);
LOBYTE(v15) = 0;
IDNameInput::create(this, (char *)this + 544, 1, 71, &v30, &v27, 10, 9004, 0.8, 0, v15);
if ( (v30 & 1) != 0 )
operator delete(v32);
v30 = 0;
v31 = 0;
v32 = nullptr;
std::string::__init(&v30, "P1", 2u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v26, 168.0, 105.0);
cocos2d::CCPoint::operator+(&v27, v25);
SetupTriggerPopup::createToggleValueControl(this, 138, &v30, &v27, 0, 0, 9004, 1.0);
if ( (v30 & 1) != 0 )
operator delete(v32);
v30 = 0;
v31 = 0;
v32 = nullptr;
std::string::__init(&v30, "P2", 2u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v26, 168.0, 75.0);
cocos2d::CCPoint::operator+(&v27, v25);
SetupTriggerPopup::createToggleValueControl(this, 200, &v30, &v27, 0, 0, 9004, 1.0);
if ( (v30 & 1) != 0 )
operator delete(v32);
v30 = 0;
v31 = 0;
v32 = nullptr;
std::string::__init(&v30, "X Only", 6u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v26, -70.0, 50.0);
cocos2d::CCPoint::operator+(&v27, v25);
SetupTriggerPopup::createCustomToggleValueControl(
(int)this,
1,
0,
1,
(unsigned int)v22 + 240,
(unsigned int)v22 + 208,
0,
0,
9002);
if ( (v30 & 1) != 0 )
operator delete(v32);
v30 = 0;
v31 = 0;
v32 = nullptr;
std::string::__init(&v30, "Y Only", 6u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v26, 30.0, 50.0);
cocos2d::CCPoint::operator+(&v27, v25);
SetupTriggerPopup::createCustomToggleValueControl(
(int)this,
2,
0,
1,
(unsigned int)v22 + 240,
(unsigned int)v22 + 208,
0,
0,
9002);
if ( (v30 & 1) != 0 )
operator delete(v32);
v13 = (int)(*(float (__fastcall **)(SetupMoveCommandPopup *, __int64))(*(_QWORD *)this + 1464LL))(this, 101);
SetupTriggerPopup::updateCustomToggleTrigger(this, 1, v13 == 1);
SetupTriggerPopup::updateCustomToggleTrigger(this, 2, v13 == 2);
v30 = 0;
v31 = 0;
v32 = nullptr;
std::string::__init(&v30, "Distance:", 9u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v26, 0.0, 50.0);
cocos2d::CCPoint::operator+(&v27, v25);
LOBYTE(v20) = 0;
SetupTriggerPopup::createValueControlAdvanced(
this,
396,
&v30,
&v27,
0,
2,
10,
0,
0.8,
-100.0,
100.0,
0,
9003,
1,
0,
v20);
if ( (v30 & 1) != 0 )
operator delete(v32);
v30 = 0;
v31 = 0;
v32 = nullptr;
std::string::__init(&v30, "Target\nMode", 0xBu);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v26, -180.0, 5.0);
cocos2d::CCPoint::operator+(&v27, v25);
SetupTriggerPopup::createToggleValueControl(this, 100, &v30, &v27, 0, 0, 0, 1.0);
if ( (v30 & 1) != 0 )
operator delete(v32);
v30 = 0;
v31 = 0;
v32 = nullptr;
std::string::__init(&v30, "Direction\nMode", 0xEu);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v26, -90.0, 5.0);
cocos2d::CCPoint::operator+(&v27, v25);
SetupTriggerPopup::createToggleValueControl(this, 394, &v30, &v27, 0, 0, 0, 1.0);
if ( (v30 & 1) != 0 )
operator delete(v32);
v30 = 0;
v31 = 0;
v32 = nullptr;
std::string::__init(&v30, "Small\nStep", 0xAu);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v26, 35.0, 5.0);
cocos2d::CCPoint::operator+(&v27, v25);
SetupTriggerPopup::createToggleValueControl(this, 393, &v30, &v27, 0, 0, 0, 1.0);
if ( (v30 & 1) != 0 )
operator delete(v32);
v30 = 0;
v31 = 0;
v32 = nullptr;
std::string::__init(&v30, "Dynamic\nMode", 0xCu);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v26, 125.0, 5.0);
cocos2d::CCPoint::operator+(&v27, v25);
SetupTriggerPopup::createToggleValueControl(this, 397, &v30, &v27, 0, 0, 0, 1.0);
if ( (v30 & 1) != 0 )
operator delete(v32);
v30 = 0;
v31 = 0;
v32 = nullptr;
std::string::__init(&v30, "Move Time:", 0xAu);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v26, -100.0, -35.0);
cocos2d::CCPoint::operator+(&v27, v25);
LOBYTE(v21) = 0;
SetupTriggerPopup::createValueControlAdvanced(this, 10, &v30, &v27, 0, 1, 10, 0, 0.8, 0.0, 10.0, 0, 0, 0, 2, v21);
if ( (v30 & 1) != 0 )
operator delete(v32);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v26, 105.0, -30.0);
cocos2d::CCPoint::operator+(&v27, v25);
SetupTriggerPopup::createEasingControls(this, &v27, 0, 0, 0.8);
v30 = 0;
v31 = 0;
v32 = nullptr;
std::string::__init(&v30, "Target Group ID:", 0x10u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v26, 125.0, -120.0);
cocos2d::CCPoint::operator+(&v27, v25);
LOBYTE(v16) = 0;
IDNameInput::create(this, (char *)this + 544, 1, 51, &v30, &v27, 10, 0, 0.8, 0, v16);
if ( (v30 & 1) != 0 )
operator delete(v32);
v30 = 0;
v31 = 0;
v32 = nullptr;
std::string::__init(&v30, "Silent", 6u);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v27,
(float)(20.0 - (float)((float)(*((float *)this + 183) * 0.5) - (float)(*(float *)&v24 * 0.5))) + 90.0,
(float)(20.0 - (float)((float)(*((float *)this + 184) * 0.5) - (float)(*((float *)&v24 + 1) * 0.5))) + 30.0);
SetupTriggerPopup::createToggleValueControl(this, 544, &v30, &v27, 0, 0, 0, 1.0);
if ( (v30 & 1) != 0 )
operator delete(v32);
*((_BYTE *)this + 1012) = (*(float (__fastcall **)(SetupMoveCommandPopup *, __int64))(*(_QWORD *)this + 1464LL))(
this,
393) != 0.0;
SetupMoveCommandPopup::updateControlVisibility(this);
SetupTriggerPopup::postSetup(this);
}
return v5;
}