//
// SetupZoomTriggerPopup::init from 0xab2454 to 0xab280c (952 bytes)
//
// 2 xrefs:
// > SetupZoomTriggerPopup::create @ 0xab2a40
// > ??> @ 0x51940
//
// 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:57 +0000
//
__int64 __fastcall SetupZoomTriggerPopup::init(SetupZoomTriggerPopup *this, EffectGameObject *a2, cocos2d::CCArray *a3)
{
unsigned __int8 v4; // w0
unsigned int v5; // w22
cocos2d::CCDirector *v7; // x0
cocos2d::CCDirector *v8; // x0
int v9; // [xsp+20h] [xbp-10h]
__int64 v10; // [xsp+88h] [xbp+58h] BYREF
_BYTE v11[8]; // [xsp+90h] [xbp+60h] BYREF
_BYTE v12[8]; // [xsp+98h] [xbp+68h] BYREF
__int64 v13; // [xsp+A0h] [xbp+70h] BYREF
__int64 v14[2]; // [xsp+A8h] [xbp+78h] BYREF
void *v15; // [xsp+B8h] [xbp+88h]
__int64 v16; // [xsp+C0h] [xbp+90h] BYREF
__int64 v17; // [xsp+C8h] [xbp+98h]
void *v18; // [xsp+D0h] [xbp+A0h]
v4 = SetupTriggerPopup::init(this, a2, a3, 360.0, 220.0, 1, 0.0);
v5 = v4;
if ( v4 )
{
v7 = (cocos2d::CCDirector *)SetupTriggerPopup::preSetup(this);
v8 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v7);
cocos2d::CCDirector::getWinSize(&v10, v8);
v16 = 0;
v17 = 0;
v18 = nullptr;
std::string::__init(&v16, "Setup Zoom", 0xAu);
SetupTriggerPopup::addTitle(this, &v16);
if ( (v16 & 1) != 0 )
operator delete(v18);
v16 = 0;
v17 = 0;
v18 = nullptr;
std::string::__init(&v16, "OK", 2u);
SetupTriggerPopup::addCloseButton(this, &v16);
if ( (v16 & 1) != 0 )
operator delete(v18);
v14[0] = 0;
v14[1] = 0;
v15 = nullptr;
std::string::__init(v14, "Help", 4u);
v16 = 0;
v17 = 0;
v18 = nullptr;
std::string::__init(
&v16,
"Zooms the camera a given amount.\n"
"Time is how fast the zoom happens.\n"
"Easing changes the method used.",
0x7Bu);
SetupTriggerPopup::addHelpButton(this, v14, &v16, 1.0);
if ( (v16 & 1) != 0 )
operator delete(v18);
if ( (v14[0] & 1) != 0 )
operator delete(v15);
SetupTriggerPopup::createMultiTriggerItemsDefault(this);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v11, *(float *)&v10 * 0.5, *((float *)&v10 + 1) * 0.5);
v16 = 0;
v17 = 0;
v18 = nullptr;
std::string::__init(&v16, "Zoom:", 5u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v12, 0.0, 55.0);
cocos2d::CCPoint::operator+(&v13, v11);
SetupTriggerPopup::createValueControlAdvanced(this, 371, &v16, &v13, 0, 1, 4, 0, 0.7, 0.4, 3.0, 0, 0, 0, 3, 0);
if ( (v16 & 1) != 0 )
operator delete(v18);
v16 = 0;
v17 = 0;
v18 = nullptr;
std::string::__init(&v16, "Time:", 5u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v12, -80.0, 0.0);
cocos2d::CCPoint::operator+(&v13, v11);
LOBYTE(v9) = 0;
SetupTriggerPopup::createValueControlAdvanced(this, 10, &v16, &v13, 0, 1, 4, 0, 0.7, 0.0, 10.0, 0, 0, 0, 2, v9);
if ( (v16 & 1) != 0 )
operator delete(v18);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v12, 80.0, 0.0);
cocos2d::CCPoint::operator+(&v13, v11);
SetupTriggerPopup::createEasingControls(this, &v13, 0, 0, 0.7);
SetupTriggerPopup::postSetup(this);
*((_BYTE *)this + 744) = 0;
}
return v5;
}