//
// SetupKeyframeAnimPopup::init from 0xb69424 to 0xb69c20 (2044 bytes)
//
// 2 xrefs:
// > SetupKeyframeAnimPopup::create @ 0xb69e6c
// > ??> @ 0x957e8
//
// 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:02:16 +0000
//
__int64 __fastcall SetupKeyframeAnimPopup::init(
SetupKeyframeAnimPopup *this,
EffectGameObject *a2,
cocos2d::CCArray *a3)
{
unsigned __int8 v4; // w0
unsigned int v5; // w25
__int64 v7; // x2
__int64 v8; // x3
__int64 v9; // x4
__int64 v10; // x5
const char *v11; // x6
cocos2d::CCDirector *MultiTriggerItemsDefault; // x0
cocos2d::CCDirector *v13; // x0
int v14; // [xsp+8h] [xbp-28h]
int v15; // [xsp+8h] [xbp-28h]
__int64 v16; // [xsp+98h] [xbp+68h] BYREF
_BYTE v17[8]; // [xsp+A0h] [xbp+70h] BYREF
_BYTE v18[8]; // [xsp+A8h] [xbp+78h] BYREF
__int64 v19; // [xsp+B0h] [xbp+80h] BYREF
__int64 v20[2]; // [xsp+B8h] [xbp+88h] BYREF
void *v21; // [xsp+C8h] [xbp+98h]
__int64 v22; // [xsp+D0h] [xbp+A0h] BYREF
__int64 v23; // [xsp+D8h] [xbp+A8h]
void *v24; // [xsp+E0h] [xbp+B0h]
v4 = SetupTriggerPopup::init(this, a2, a3, 340.0, 280.0, 1u, 0.0);
v5 = v4;
if ( v4 )
{
SetupTriggerPopup::preSetup(this);
v22 = 0;
v23 = 0;
v24 = nullptr;
std::string::__init(&v22, "Setup Keyframe Anim", 0x13u);
SetupTriggerPopup::addTitle((__int64)this, (__int64)&v22);
if ( (v22 & 1) != 0 )
operator delete(v24);
v22 = 0;
v23 = 0;
v24 = nullptr;
std::string::__init(&v22, "OK", 2u);
SetupTriggerPopup::addCloseButton((__int64)this, (__int64)&v22, v7, v8, v9, v10, v11);
if ( (v22 & 1) != 0 )
operator delete(v24);
v20[0] = 0;
v20[1] = 0;
v21 = nullptr;
std::string::__init(v20, "Help", 4u);
v22 = 0;
v23 = 0;
v24 = nullptr;
std::string::__init(
&v22,
"Sets up a keyframe animation using Animation Group ID.\n"
"Use Target ID to specify a different target than the one set in the Keyframe trigger.\n"
"The animation itself is made in the Keyframe trigger.\n"
"By default, objects choose their own center for scaling and rotation, but you can set one using Parent ID."
"\n"
"On page 2, you can put modifiers for the keyframe sequence.",
0x189u);
SetupTriggerPopup::addHelpButton((__int64)this, (char *)v20, (char *)&v22, 1.0);
if ( (v22 & 1) != 0 )
operator delete(v24);
if ( (v20[0] & 1) != 0 )
operator delete(v21);
MultiTriggerItemsDefault = (cocos2d::CCDirector *)SetupTriggerPopup::createMultiTriggerItemsDefault(this);
v13 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(MultiTriggerItemsDefault);
cocos2d::CCDirector::getWinSize(&v16, v13);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v17, *(float *)&v16 * 0.5, (float)(*((float *)&v16 + 1) * 0.5) + 60.0);
v22 = 0;
v23 = 0;
v24 = nullptr;
std::string::__init(&v22, "Animation Group ID", 0x12u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v18, 0.0, 0.0);
cocos2d::CCPoint::operator+(&v19, v17);
IDNameInput::create(this, (char *)this + 544, 1, 76, &v22, &v19, 6, 0, 0.8, 0, 0);
if ( (v22 & 1) != 0 )
operator delete(v24);
v22 = 0;
v23 = 0;
v24 = nullptr;
std::string::__init(&v22, "Target ID", 9u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v18, -85.0, -70.0);
cocos2d::CCPoint::operator+(&v19, v17);
LOBYTE(v14) = 0;
IDNameInput::create(this, (char *)this + 544, 1, 51, &v22, &v19, 6, 0, 0.8, 0, v14);
if ( (v22 & 1) != 0 )
operator delete(v24);
v22 = 0;
v23 = 0;
v24 = nullptr;
std::string::__init(&v22, "Parent ID", 9u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v18, 85.0, -70.0);
cocos2d::CCPoint::operator+(&v19, v17);
LOBYTE(v15) = 0;
IDNameInput::create(this, (char *)this + 544, 1, 71, &v22, &v19, 6, 0, 0.8, 0, v15);
if ( (v22 & 1) != 0 )
operator delete(v24);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v19,
*(float *)&v16 * 0.5,
(float)(*((float *)&v16 + 1) * 0.5) + 95.0);
cocos2d::CCPoint::operator=(v17, &v19);
v22 = 0;
v23 = 0;
v24 = nullptr;
std::string::__init(&v22, "Time Mod:", 9u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v18, 0.0, 0.0);
cocos2d::CCPoint::operator+(&v19, v17);
SetupTriggerPopup::createValueControlAdvanced(
(cocos2d::CCArray **)this,
520,
(char *)&v22,
(__int64)&v19,
0,
1,
6,
0,
0.7,
0.0,
1.0,
1,
0,
1,
2,
0);
if ( (v22 & 1) != 0 )
operator delete(v24);
v22 = 0;
v23 = 0;
v24 = nullptr;
std::string::__init(&v22, "Position X Mod:", 0xFu);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v18, 0.0, -30.0);
cocos2d::CCPoint::operator+(&v19, v17);
SetupTriggerPopup::createValueControlAdvanced(
(cocos2d::CCArray **)this,
521,
(char *)&v22,
(__int64)&v19,
0,
1,
6,
0,
0.7,
-2.0,
2.0,
1,
0,
1,
2,
0);
if ( (v22 & 1) != 0 )
operator delete(v24);
v22 = 0;
v23 = 0;
v24 = nullptr;
std::string::__init(&v22, "Position Y Mod:", 0xFu);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v18, 0.0, -60.0);
cocos2d::CCPoint::operator+(&v19, v17);
SetupTriggerPopup::createValueControlAdvanced(
(cocos2d::CCArray **)this,
545,
(char *)&v22,
(__int64)&v19,
0,
1,
6,
0,
0.7,
-2.0,
2.0,
1,
0,
1,
2,
0);
if ( (v22 & 1) != 0 )
operator delete(v24);
v22 = 0;
v23 = 0;
v24 = nullptr;
std::string::__init(&v22, "Rotation mod:", 0xDu);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v18, 0.0, -90.0);
cocos2d::CCPoint::operator+(&v19, v17);
SetupTriggerPopup::createValueControlAdvanced(
(cocos2d::CCArray **)this,
522,
(char *)&v22,
(__int64)&v19,
0,
1,
6,
0,
0.7,
-2.0,
2.0,
1,
0,
1,
2,
0);
if ( (v22 & 1) != 0 )
operator delete(v24);
v22 = 0;
v23 = 0;
v24 = nullptr;
std::string::__init(&v22, "Scale X Mod:", 0xCu);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v18, 0.0, -120.0);
cocos2d::CCPoint::operator+(&v19, v17);
SetupTriggerPopup::createValueControlAdvanced(
(cocos2d::CCArray **)this,
523,
(char *)&v22,
(__int64)&v19,
0,
1,
6,
0,
0.7,
-2.0,
2.0,
1,
0,
1,
2,
0);
if ( (v22 & 1) != 0 )
operator delete(v24);
v22 = 0;
v23 = 0;
v24 = nullptr;
std::string::__init(&v22, "Scale Y Mod:", 0xCu);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v18, 0.0, -150.0);
cocos2d::CCPoint::operator+(&v19, v17);
SetupTriggerPopup::createValueControlAdvanced(
(cocos2d::CCArray **)this,
546,
(char *)&v22,
(__int64)&v19,
0,
1,
6,
0,
0.7,
-2.0,
2.0,
1,
0,
1,
2,
0);
if ( (v22 & 1) != 0 )
operator delete(v24);
SetupTriggerPopup::createPageButtons(this, (float)(*((float *)this + 183) * 0.5) + 15.0, 1);
SetupTriggerPopup::goToPage((cocos2d::CCArray **)this, 0, 0);
SetupTriggerPopup::postSetup(this);
}
return v5;
}