//
// SetupShaderEffectPopup::setupMotionBlur from 0x68b4f0 to 0x68bbc4 (1748 bytes)
//
// 1 xrefs:
// > SetupShaderEffectPopup::init @ 0x68de74
//
// 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:56:08 +0000
//
int __fastcall SetupShaderEffectPopup::setupMotionBlur(cocos2d::CCDictionary **this)
{
cocos2d::CCDirector *v2; // r0
float v4; // [sp+34h] [bp-40h] BYREF
float v5; // [sp+38h] [bp-3Ch]
_BYTE v6[8]; // [sp+3Ch] [bp-38h] BYREF
_BYTE v7[8]; // [sp+44h] [bp-30h] BYREF
_BYTE v8[8]; // [sp+4Ch] [bp-28h] BYREF
int v9[3]; // [sp+54h] [bp-20h] BYREF
int v10; // [sp+60h] [bp-14h] BYREF
int v11; // [sp+64h] [bp-10h]
int v12; // [sp+68h] [bp-Ch]
v10 = 0;
v11 = 0;
v12 = 0;
std::string::__init(&v10, "Setup Motion Blur", 0x11u);
SetupTriggerPopup::addTitle((int)this, (unsigned __int8 *)&v10);
std::string::~string((int)&v10);
memset(v9, 0, sizeof(v9));
std::string::__init(v9, "Help", 4u);
v10 = 0;
v11 = 0;
v12 = 0;
std::string::__init(
&v10,
"Applies motion blur.\n"
"TargetX and TargetY is how much blur to apply to each axis.\n"
"FadeTime is time until final state is reached.\n"
"Fade sets how much blur fades out at the edges.\n"
"DualDir blurs in both directions instead of the default.\n"
"Target lets you set a specific target object as the reference.\n"
"You can also reference the player using P1 and P2 or the center of the screen using C.",
0x1BEu);
SetupTriggerPopup::addHelpButton((int)this, (int)v9, (int)&v10, 1065353216);
std::string::~string((int)&v10);
v2 = (cocos2d::CCDirector *)std::string::~string((int)v9);
cocos2d::CCDirector::sharedDirector(v2);
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v4);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v6, v4 * 0.5, (float)(v5 * 0.5) + 95.0);
v10 = 0;
v11 = 0;
v12 = 0;
std::string::__init(&v10, "TargetX:", 8u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v7, -130.0, 0.0);
cocos2d::CCPoint::operator+(v8, v6, v7);
SetupTriggerPopup::createValueControl(this, 180, (int)&v10, (const cocos2d::CCPoint *)v8, 1058642330, 0, 0);
std::string::~string((int)&v10);
v10 = 0;
v11 = 0;
v12 = 0;
std::string::__init(&v10, "TargetY:", 8u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v7, 0.0, 0.0);
cocos2d::CCPoint::operator+(v8, v6, v7);
SetupTriggerPopup::createValueControl(this, 189, (int)&v10, (const cocos2d::CCPoint *)v8, 1058642330, 0, 0);
std::string::~string((int)&v10);
v10 = 0;
v11 = 0;
v12 = 0;
std::string::__init(&v10, "FadeTime:", 9u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v7, -130.0, -50.0);
cocos2d::CCPoint::operator+(v8, v6, v7);
SetupTriggerPopup::createValueControl(this, 10, (int)&v10, (const cocos2d::CCPoint *)v8, 1058642330, 0, 0);
std::string::~string((int)&v10);
v10 = 0;
v11 = 0;
v12 = 0;
std::string::__init(&v10, "Use\nX", 5u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v7, -45.0, -105.0);
cocos2d::CCPoint::operator+(v8, v6, v7);
SetupTriggerPopup::createToggleValueControl((int)this, 188, (int)&v10, (const cocos2d::CCPoint *)v8, 0, 0, 0, 1.0);
std::string::~string((int)&v10);
v10 = 0;
v11 = 0;
v12 = 0;
std::string::__init(&v10, "Use\nY", 5u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v7, 20.0, -105.0);
cocos2d::CCPoint::operator+(v8, v6, v7);
SetupTriggerPopup::createToggleValueControl((int)this, 190, (int)&v10, (const cocos2d::CCPoint *)v8, 0, 0, 0, 1.0);
std::string::~string((int)&v10);
v10 = 0;
v11 = 0;
v12 = 0;
std::string::__init(&v10, "Intensity:", 0xAu);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v7, -130.0, -100.0);
cocos2d::CCPoint::operator+(v8, v6, v7);
SetupTriggerPopup::createValueControl(this, 176, (int)&v10, (const cocos2d::CCPoint *)v8, 1058642330, 0, 1084227584);
std::string::~string((int)&v10);
v10 = 0;
v11 = 0;
v12 = 0;
std::string::__init(&v10, "Fade:", 5u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v7, 0.0, -50.0);
cocos2d::CCPoint::operator+(v8, v6, v7);
SetupTriggerPopup::createValueControl(
this,
181,
(int)&v10,
(const cocos2d::CCPoint *)v8,
1058642330,
0,
COERCE_INT(1.0));
std::string::~string((int)&v10);
v10 = 0;
v11 = 0;
v12 = 0;
std::string::__init(&v10, "Ref\nChannel:", 0xCu);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v7, 130.0, 0.0);
cocos2d::CCPoint::operator+(v8, v6, v7);
SetupTriggerPopup::createValueControlAdvanced(
this,
71,
(unsigned __int8 *)&v10,
(int)v8,
1058642330,
1,
2,
6,
0,
0,
0,
0,
0,
0,
2,
0);
std::string::~string((int)&v10);
v10 = 0;
v11 = 0;
v12 = 0;
std::string::__init(&v10, "Follow\nEase:", 0xCu);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v7, 130.0, -50.0);
cocos2d::CCPoint::operator+(v8, v6, v7);
SetupTriggerPopup::createValueControl(this, 191, (int)&v10, (const cocos2d::CCPoint *)v8, 1058642330, 0, 1092616192);
std::string::~string((int)&v10);
v10 = 0;
v11 = 0;
v12 = 0;
std::string::__init(&v10, "Relative", 8u);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v8,
(float)((float)((float)(*((float *)this + 139) * 0.5) + (float)(v4 * 0.5)) - 72.0) - 90.0,
(float)((float)(v5 * 0.5) - (float)(*((float *)this + 140) * 0.5)) + 20.0);
SetupTriggerPopup::createToggleValueControl((int)this, 514, (int)&v10, (const cocos2d::CCPoint *)v8, 0, 0, 0, 1.0);
std::string::~string((int)&v10);
v10 = 0;
v11 = 0;
v12 = 0;
std::string::__init(&v10, "TargetID:", 9u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v7, 130.0, -115.0);
cocos2d::CCPoint::operator+(v8, v6, v7);
IDNameInput::create((int)this, (int)(this + 110), 1, 51, (int)&v10, (int)v8, 0.6, 6, 0, 0, 0);
std::string::~string((int)&v10);
v10 = 0;
v11 = 0;
v12 = 0;
std::string::__init(&v10, "P1", 2u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v7, 100.0, -150.0);
cocos2d::CCPoint::operator+(v8, v6, v7);
SetupTriggerPopup::createToggleValueControl((int)this, 138, (int)&v10, (const cocos2d::CCPoint *)v8, 0, 0, 0, 1.0);
std::string::~string((int)&v10);
v10 = 0;
v11 = 0;
v12 = 0;
std::string::__init(&v10, "P2", 2u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v7, 160.0, -150.0);
cocos2d::CCPoint::operator+(v8, v6, v7);
SetupTriggerPopup::createToggleValueControl((int)this, 200, (int)&v10, (const cocos2d::CCPoint *)v8, 0, 0, 0, 1.0);
std::string::~string((int)&v10);
v10 = 0;
v11 = 0;
v12 = 0;
std::string::__init(&v10, "C", 1u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v7, 130.0, -180.0);
cocos2d::CCPoint::operator+(v8, v6, v7);
SetupTriggerPopup::createToggleValueControl((int)this, 201, (int)&v10, (const cocos2d::CCPoint *)v8, 0, 0, 0, 1.0);
std::string::~string((int)&v10);
v10 = 0;
v11 = 0;
v12 = 0;
std::string::__init(&v10, "DualDir", 7u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v7, 0.0, -140.0);
cocos2d::CCPoint::operator+(v8, v6, v7);
SetupTriggerPopup::createToggleValueControl((int)this, 194, (int)&v10, (const cocos2d::CCPoint *)v8, 0, 0, 0, 0.9);
std::string::~string((int)&v10);
v10 = 0;
v11 = 0;
v12 = 0;
std::string::__init(&v10, "EmptyOnly", 9u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v7, 0.0, -170.0);
cocos2d::CCPoint::operator+(v8, v6, v7);
SetupTriggerPopup::createToggleValueControl((int)this, 515, (int)&v10, (const cocos2d::CCPoint *)v8, 0, 0, 0, 0.9);
std::string::~string((int)&v10);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v7, -110.0, -143.0);
cocos2d::CCPoint::operator+(v8, v6, v7);
return SetupTriggerPopup::createEasingControls((int)this, (int)v8, 0.7, 0, 0);
}