//
// SetupTransformPopup::init from 0xae9480 to 0xae9c9c (2076 bytes)
//
// 2 xrefs:
// > SetupTransformPopup::create @ 0xae9eec
// > ??> @ 0xa62d0
//
// 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:01:09 +0000
//
__int64 __fastcall SetupTransformPopup::init(
SetupTransformPopup *this,
TransformTriggerGameObject *a2,
cocos2d::CCArray *a3)
{
unsigned __int8 v4; // w0
unsigned int v5; // w25
cocos2d::CCDirector *v7; // x0
cocos2d::CCDirector *v8; // x0
int v9; // [xsp+8h] [xbp-28h]
int v10; // [xsp+8h] [xbp-28h]
int v11; // [xsp+20h] [xbp-10h]
int v12; // [xsp+20h] [xbp-10h]
__int64 v13; // [xsp+A8h] [xbp+78h] BYREF
_BYTE v14[8]; // [xsp+B0h] [xbp+80h] BYREF
_BYTE v15[8]; // [xsp+B8h] [xbp+88h] BYREF
__int64 v16; // [xsp+C0h] [xbp+90h] BYREF
__int64 v17[2]; // [xsp+C8h] [xbp+98h] BYREF
void *v18; // [xsp+D8h] [xbp+A8h]
__int64 v19; // [xsp+E0h] [xbp+B0h] BYREF
__int64 v20; // [xsp+E8h] [xbp+B8h]
void *v21; // [xsp+F0h] [xbp+C0h]
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(&v13, v8);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, *(float *)&v13 * 0.5, *((float *)&v13 + 1) * 0.5);
v19 = 0;
v20 = 0;
v21 = nullptr;
std::string::__init(&v19, "Setup Scale Command", 0x13u);
SetupTriggerPopup::addTitle(this, &v19);
if ( (v19 & 1) != 0 )
operator delete(v21);
v19 = 0;
v20 = 0;
v21 = nullptr;
std::string::__init(&v19, "OK", 2u);
SetupTriggerPopup::addCloseButton(this, &v19);
if ( (v19 & 1) != 0 )
operator delete(v21);
SetupTriggerPopup::createMultiTriggerItemsCorner(this);
v17[0] = 0;
v17[1] = 0;
v18 = nullptr;
std::string::__init(v17, "Help", 4u);
v19 = 0;
v20 = 0;
v21 = nullptr;
std::string::__init(
&v19,
"Scales a specific Target Group ID.\n"
"Center Group ID specifies a target object to use as the center. If none is set, all objects use their own "
"center.\n"
"Duration specifies how long the scaling lasts.\n"
"Div by Value X/Y divides the current scale by the values.\n"
"Only Move makes the objects move as if they were scaled.\n"
"Relative Rotation rotates the X- and Y-axis too.\n"
"Relative Scale bases scaling on the reference object.",
0x1DDu);
SetupTriggerPopup::addHelpButton(this, v17, &v19, 1.0);
if ( (v19 & 1) != 0 )
operator delete(v21);
if ( (v17[0] & 1) != 0 )
operator delete(v18);
v19 = 0;
v20 = 0;
v21 = nullptr;
std::string::__init(&v19, "Only\nMove", 9u);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v15,
110.0 - (float)(*((float *)this + 183) * 0.5),
50.0 - (float)(*((float *)this + 184) * 0.5));
cocos2d::CCPoint::operator+(&v16, v14);
SetupTriggerPopup::createToggleValueControl(this, 133, &v19, &v16, 0, 0, 0, 1.0);
if ( (v19 & 1) != 0 )
operator delete(v21);
v19 = 0;
v20 = 0;
v21 = nullptr;
std::string::__init(&v19, "ScaleX:", 7u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, -100.0, 105.0);
cocos2d::CCPoint::operator+(&v16, v14);
SetupTriggerPopup::createValueControlAdvanced(this, 150, &v19, &v16, 0, 1, 10, 0, 0.9, 0.5, 2.0, 0, 0, 0, 3, 0);
if ( (v19 & 1) != 0 )
operator delete(v21);
v19 = 0;
v20 = 0;
v21 = nullptr;
std::string::__init(&v19, "ScaleY:", 7u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, 105.0, 105.0);
cocos2d::CCPoint::operator+(&v16, v14);
LOBYTE(v11) = 0;
SetupTriggerPopup::createValueControlAdvanced(this, 151, &v19, &v16, 0, 1, 10, 0, 0.9, 0.5, 2.0, 0, 0, 0, 3, v11);
if ( (v19 & 1) != 0 )
operator delete(v21);
v19 = 0;
v20 = 0;
v21 = nullptr;
std::string::__init(&v19, "Div by Value X", 0xEu);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, -150.0, 50.0);
cocos2d::CCPoint::operator+(&v16, v14);
SetupTriggerPopup::createToggleValueControl(this, 153, &v19, &v16, 0, 0, 0, 1.0);
if ( (v19 & 1) != 0 )
operator delete(v21);
v19 = 0;
v20 = 0;
v21 = nullptr;
std::string::__init(&v19, "Div by Value Y", 0xEu);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, 55.0, 50.0);
cocos2d::CCPoint::operator+(&v16, v14);
SetupTriggerPopup::createToggleValueControl(this, 154, &v19, &v16, 0, 0, 0, 1.0);
if ( (v19 & 1) != 0 )
operator delete(v21);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, -100.0, 20.0);
cocos2d::CCPoint::operator+(&v16, v14);
SetupTriggerPopup::createEasingControls(this, &v16, 0, 0, 0.8);
v19 = 0;
v20 = 0;
v21 = nullptr;
std::string::__init(&v19, "Duration:", 9u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, -100.0, -45.0);
cocos2d::CCPoint::operator+(&v16, v14);
LOBYTE(v12) = 0;
SetupTriggerPopup::createValueControlAdvanced(this, 10, &v19, &v16, 0, 1, 10, 0, 0.9, 0.0, 10.0, 0, 0, 0, 2, v12);
if ( (v19 & 1) != 0 )
operator delete(v21);
v19 = 0;
v20 = 0;
v21 = nullptr;
std::string::__init(&v19, "Center Group ID:", 0x10u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, 115.0, -20.0);
cocos2d::CCPoint::operator+(&v16, v14);
LOBYTE(v9) = 0;
IDNameInput::create(this, (char *)this + 544, 1, 71, &v19, &v16, 6, 0, 0.9, 0, v9);
if ( (v19 & 1) != 0 )
operator delete(v21);
v19 = 0;
v20 = 0;
v21 = nullptr;
std::string::__init(&v19, "Target Group ID:", 0x10u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, 115.0, -90.0);
cocos2d::CCPoint::operator+(&v16, v14);
LOBYTE(v10) = 0;
IDNameInput::create(this, (char *)this + 544, 1, 51, &v19, &v16, 6, 0, 0.9, 0, v10);
if ( (v19 & 1) != 0 )
operator delete(v21);
v19 = 0;
v20 = 0;
v21 = nullptr;
std::string::__init(&v19, "Relative\nScale", 0xEu);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, 50.0, 20.0 - (float)(*((float *)this + 184) * 0.5));
cocos2d::CCPoint::operator+(&v16, v14);
SetupTriggerPopup::createToggleValueControl(this, 577, &v19, &v16, 0, 0, 0, 1.0);
if ( (v19 & 1) != 0 )
operator delete(v21);
v19 = 0;
v20 = 0;
v21 = nullptr;
std::string::__init(&v19, "Relative\nRotation", 0x11u);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v15,
(float)(*((float *)this + 183) * 0.5) + -85.0,
20.0 - (float)(*((float *)this + 184) * 0.5));
cocos2d::CCPoint::operator+(&v16, v14);
SetupTriggerPopup::createToggleValueControl(this, 452, &v19, &v16, 0, 0, 0, 1.0);
if ( (v19 & 1) != 0 )
operator delete(v21);
SetupTriggerPopup::postSetup(this);
}
return v5;
}