//
// SetupRotatePopup::init from 0x628f7c to 0x62927e (770 bytes)
//
// 1 xrefs:
// > SetupRotatePopup::create @ 0x6294bc
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:55:11 +0000
//
int __fastcall SetupRotatePopup::init(SetupRotatePopup *this, EnhancedGameObject *a2, cocos2d::CCArray *a3)
{
cocos2d::CCDirector *v4; // r0
_BOOL4 v5; // r10
float v6; // s16
_BOOL4 v7; // r2
int v9; // [sp+30h] [bp-4Ch]
float v10[2]; // [sp+3Ch] [bp-40h] BYREF
_BYTE v11[8]; // [sp+44h] [bp-38h] BYREF
_BYTE v12[8]; // [sp+4Ch] [bp-30h] BYREF
_BYTE v13[8]; // [sp+54h] [bp-28h] BYREF
int v14[3]; // [sp+5Ch] [bp-20h] BYREF
int v15; // [sp+68h] [bp-14h] BYREF
int v16; // [sp+6Ch] [bp-10h]
int v17; // [sp+70h] [bp-Ch]
v9 = SetupTriggerPopup::init(this, a2, a3, 300.0, 240.0, 1, 0.0);
if ( v9 )
{
SetupTriggerPopup::preSetup(this);
v15 = 0;
v16 = 0;
v17 = 0;
std::string::__init(&v15, "Edit Rotate Action", 0x12u);
SetupTriggerPopup::addTitle(this, &v15);
std::string::~string((int)&v15);
v15 = 0;
v16 = 0;
v17 = 0;
std::string::__init(&v15, "OK", 2u);
SetupTriggerPopup::addCloseButton(this, &v15);
std::string::~string((int)&v15);
memset(v14, 0, sizeof(v14));
std::string::__init(v14, "Help", 4u);
v15 = 0;
v16 = 0;
v17 = 0;
std::string::__init(
&v15,
"Default uses the default rotation values.\n"
"Custom lets you specify degrees per second.\n"
"Disable stops rotation completely.",
0x90u);
SetupTriggerPopup::addHelpButton(this, v14, &v15, 1065353216);
std::string::~string((int)&v15);
v4 = (cocos2d::CCDirector *)std::string::~string((int)v14);
cocos2d::CCDirector::sharedDirector(v4);
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v10);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v11, v10[0] * 0.5, (float)(v10[1] * 0.5) + 50.0);
v5 = COERCE_FLOAT((*(int (__fastcall **)(SetupRotatePopup *, int))(*(_DWORD *)this + 732))(this, 98)) != 0.0;
v6 = COERCE_FLOAT((*(int (__fastcall **)(SetupRotatePopup *, int))(*(_DWORD *)this + 732))(this, 97));
v15 = 0;
v16 = 0;
v17 = 0;
std::string::__init(&v15, "Default", 7u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v12, -70.0, 0.0);
cocos2d::CCPoint::operator+(v13, v11, v12);
SetupTriggerPopup::createCustomToggleValueControl(this);
std::string::~string((int)&v15);
v15 = 0;
v16 = 0;
v17 = 0;
std::string::__init(&v15, "Custom", 6u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v12, 0.0, 0.0);
cocos2d::CCPoint::operator+(v13, v11, v12);
SetupTriggerPopup::createCustomToggleValueControl(this);
std::string::~string((int)&v15);
v15 = 0;
v16 = 0;
v17 = 0;
std::string::__init(&v15, "Disable", 7u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v12, 70.0, 0.0);
cocos2d::CCPoint::operator+(v13, v11, v12);
SetupTriggerPopup::createCustomToggleValueControl(this);
std::string::~string((int)&v15);
v15 = 0;
v16 = 0;
v17 = 0;
std::string::__init(&v15, "Degrees/s:", 0xAu);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v12, 0.0, -60.0);
cocos2d::CCPoint::operator+(v13, v11, v12);
SetupTriggerPopup::createValueControlAdvanced(
this,
97,
&v15,
v13,
1061997773,
0,
2,
4,
0,
-1011613696,
1135869952,
0,
2,
0,
3,
0);
std::string::~string((int)&v15);
v7 = !v5 && v6 != 0.0;
(*(void (__fastcall **)(SetupRotatePopup *, int, _BOOL4))(*(_DWORD *)this + 676))(this, 2, v7);
SetupTriggerPopup::postSetup(this);
}
return v9;
}