//
// SetupTimeWarpPopup::init from 0xaeb618 to 0xaeba00 (1000 bytes)
//
// 2 xrefs:
// > SetupTimeWarpPopup::create @ 0xaebc34
// > ??> @ 0x51298
//
// 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:10 +0000
//
__int64 __fastcall SetupTimeWarpPopup::init(Slider **this, EffectGameObject *a2, cocos2d::CCArray *a3)
{
unsigned __int8 v4; // w0
unsigned int v5; // w22
cocos2d::CCDirector *v7; // x0
cocos2d::CCDirector *v8; // x0
const char *v9; // x2
__int64 v10; // x23
void (__fastcall *v11)(__int64, __int64 *); // x28
const char *v12; // x6
__int64 v13; // x0
__int64 v14; // x0
__int64 v15; // x24
cocos2d::CCNode *v16; // x27
void (__fastcall *v17)(__int64, __int64 *); // x26
const char *v18; // x2
__int64 v19; // x0
Slider *v20; // x2
__int64 v21; // x24
void (__fastcall *v22)(__int64, __int64 *); // x25
__int64 v23; // x0
__int64 v24; // x24
void (__fastcall *v25)(__int64, __int64 *); // x25
__int64 v26; // x26
__int64 v27; // [xsp+70h] [xbp+70h] BYREF
_BYTE v28[8]; // [xsp+78h] [xbp+78h] BYREF
__int64 v29; // [xsp+80h] [xbp+80h] BYREF
__int64 v30[2]; // [xsp+88h] [xbp+88h] BYREF
void *v31; // [xsp+98h] [xbp+98h]
__int64 v32[2]; // [xsp+A0h] [xbp+A0h] BYREF
void *v33; // [xsp+B0h] [xbp+B0h]
v4 = SetupTriggerPopup::init((SetupTriggerPopup *)this, a2, a3, 340.0, 200.0, 1, 0.0);
v5 = v4;
if ( v4 )
{
v7 = (cocos2d::CCDirector *)(*((__int64 (__fastcall **)(Slider **))*this + 170))(this);
v8 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v7);
cocos2d::CCDirector::getWinSize(&v27, v8);
v10 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Setup TimeWarp Effect", "goldFont.fnt", v9);
(*((void (__fastcall **)(Slider **, __int64))*this + 57))(this, v10);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v10 + 160LL))(v10, 0.7);
v11 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v10 + 184LL);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v29,
*(float *)&v27 * 0.5,
(float)((float)(*((float *)this + 184) * 0.5) + (float)(*((float *)&v27 + 1) * 0.5)) - 18.0);
v11(v10, &v29);
v13 = ButtonSprite::create(
(ButtonSprite *)"OK",
(const char *)&qword_28,
0,
1,
0.8,
"goldFont.fnt",
"GJ_button_01.png",
v12,
30.0);
v14 = CCMenuItemSpriteExtra::create(v13, 0, (__int64)this, 1368, 1);
(*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 69) + 456LL))(*(this + 69), v14);
v30[0] = 0;
v30[1] = 0;
v31 = nullptr;
std::string::__init(v30, "Help", 4u);
v32[0] = 0;
v32[1] = 0;
v33 = nullptr;
std::string::__init(
v32,
"Lets you warp all time a given amount.\nI need to add more options\nbefore you can do Za Warudo...",
0x68u);
v15 = InfoAlertButton::create((char *)v30, (char *)v32, 1.0);
if ( (v32[0] & 1) != 0 )
{
operator delete(v33);
if ( (v30[0] & 1) == 0 )
goto LABEL_5;
}
else if ( (v30[0] & 1) == 0 )
{
LABEL_5:
(*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 69) + 456LL))(*(this + 69), v15);
v16 = *(this + 69);
v17 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v15 + 184LL);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v28,
18.0 - (float)((float)(*((float *)this + 183) * 0.5) - (float)(*(float *)&v27 * 0.5)),
(float)((float)(*((float *)this + 184) * 0.5) + (float)(*((float *)&v27 + 1) * 0.5)) - 18.0);
cocos2d::CCNode::convertToNodeSpace(&v29, v16, (const cocos2d::CCPoint *)v28);
v17(v15, &v29);
v19 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)&byte_11E1A70, "goldFont.fnt", v18);
v20 = *this;
*(this + 127) = (Slider *)v19;
(*((void (__fastcall **)(Slider **))v20 + 57))(this);
v21 = (__int64)*(this + 127);
v22 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v21 + 184LL);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v29,
*(float *)&v27 * 0.5,
(float)(*((float *)&v27 + 1) * 0.5) + 20.0);
v22(v21, &v29);
(*(void (__fastcall **)(_QWORD, float))(*(_QWORD *)*(this + 127) + 160LL))(*(this + 127), 0.8);
v23 = Slider::create((int)this, (int)SetupTimeWarpPopup::sliderChanged, 0);
*(this + 128) = (Slider *)v23;
(*((void (__fastcall **)(Slider **, __int64))*this + 57))(this, v23);
v24 = (__int64)*(this + 128);
v25 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v24 + 184LL);
v26 = (*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)*(this + 127) + 192LL))(*(this + 127));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v28, 0.0, -23.0);
cocos2d::CCPoint::operator+(&v29, v26);
v25(v24, &v29);
SetupTimeWarpPopup::updateTimeWarpLabel((SetupTimeWarpPopup *)this);
Slider::setValue(*(this + 128), (float)(*((float *)this + 258) - 0.1) / 1.9);
SetupTriggerPopup::createMultiTriggerItemsDefaultVertical((SetupTriggerPopup *)this);
return v5;
}
operator delete(v31);
goto LABEL_5;
}
return v5;
}