//
// SetupShaderEffectPopup::setupRadialBlur from 0x68aeb8 to 0x68b4cc (1556 bytes)
//
// 1 xrefs:
// > SetupShaderEffectPopup::init @ 0x68de6c
//
// 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::setupRadialBlur(cocos2d::CCDictionary **this)
{
cocos2d::CCDirector *v2; // r0
float v3; // s15
float v5; // [sp+34h] [bp-48h] BYREF
float v6; // [sp+38h] [bp-44h]
_BYTE v7[8]; // [sp+3Ch] [bp-40h] BYREF
_BYTE v8[8]; // [sp+44h] [bp-38h] BYREF
_BYTE v9[8]; // [sp+4Ch] [bp-30h] BYREF
_BYTE v10[8]; // [sp+54h] [bp-28h] BYREF
int v11[3]; // [sp+5Ch] [bp-20h] BYREF
int v12; // [sp+68h] [bp-14h] BYREF
int v13; // [sp+6Ch] [bp-10h]
int v14; // [sp+70h] [bp-Ch]
v12 = 0;
v13 = 0;
v14 = 0;
std::string::__init(&v12, "Setup Radial Blur", 0x11u);
SetupTriggerPopup::addTitle((int)this, (unsigned __int8 *)&v12);
std::string::~string((int)&v12);
memset(v11, 0, sizeof(v11));
std::string::__init(v11, "Help", 4u);
v12 = 0;
v13 = 0;
v14 = 0;
std::string::__init(
&v12,
"Applies radial blur.\n"
"Size is how much blur to apply around the center.\n"
"FadeTime is time until final state is reached.\n"
"Intensity is opacity of the blur.\n"
"RefChannel uses a color channel to reference the effect.\n"
"Fade sets how much blur fades out at the edges.\n"
"Screen OffX and OffY offsets the center of the effect.\n"
"Target lets you set a specific target object as the center.",
0x1B3u);
SetupTriggerPopup::addHelpButton((int)this, (int)v11, (int)&v12, 1065353216);
std::string::~string((int)&v12);
v2 = (cocos2d::CCDirector *)std::string::~string((int)v11);
cocos2d::CCDirector::sharedDirector(v2);
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v5);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v7, v5 * 0.5, (float)(v6 * 0.5) + 85.0);
v12 = 0;
v13 = 0;
v14 = 0;
std::string::__init(&v12, "Size:", 5u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v9, -130.0, 0.0);
cocos2d::CCPoint::operator+(v10, v7, v9);
SetupTriggerPopup::createValueControl(this, 179, (int)&v12, (const cocos2d::CCPoint *)v10, 1058642330, 0, 0x40000000);
std::string::~string((int)&v12);
v12 = 0;
v13 = 0;
v14 = 0;
std::string::__init(&v12, "FadeTime:", 9u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v9, 0.0, 0.0);
cocos2d::CCPoint::operator+(v10, v7, v9);
SetupTriggerPopup::createValueControl(this, 10, (int)&v12, (const cocos2d::CCPoint *)v10, 1058642330, 0, 0);
std::string::~string((int)&v12);
v12 = 0;
v13 = 0;
v14 = 0;
std::string::__init(&v12, "Intensity:", 0xAu);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v9, -130.0, -50.0);
cocos2d::CCPoint::operator+(v10, v7, v9);
SetupTriggerPopup::createValueControl(this, 176, (int)&v12, (const cocos2d::CCPoint *)v10, 1058642330, 0, 1084227584);
std::string::~string((int)&v12);
v12 = 0;
v13 = 0;
v14 = 0;
std::string::__init(&v12, "Ref\nChannel:", 0xCu);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v9, 0.0, -55.0);
cocos2d::CCPoint::operator+(v10, v7, v9);
SetupTriggerPopup::createValueControlAdvanced(
this,
71,
(unsigned __int8 *)&v12,
(int)v10,
1058642330,
1,
2,
6,
0,
0,
0,
0,
0,
0,
2,
0);
std::string::~string((int)&v12);
v12 = 0;
v13 = 0;
v14 = 0;
std::string::__init(&v12, "Fade:", 5u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v9, -130.0, -100.0);
cocos2d::CCPoint::operator+(v10, v7, v9);
SetupTriggerPopup::createValueControl(
this,
181,
(int)&v12,
(const cocos2d::CCPoint *)v10,
1058642330,
COERCE_INT(-1.0),
COERCE_INT(1.0));
std::string::~string((int)&v12);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v8,
(float)((float)(v5 * 0.5) - (float)(*((float *)this + 139) * 0.5)) + 20.0,
(float)((float)((float)(v6 * 0.5) - (float)(*((float *)this + 140) * 0.5)) + 20.0) + 30.0);
v12 = 0;
v13 = 0;
v14 = 0;
std::string::__init(&v12, "Target", 6u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, (const cocos2d::CCPoint *)v8);
SetupTriggerPopup::createToggleValueControl((int)this, 188, (int)&v12, (const cocos2d::CCPoint *)v10, 0, 0, 0, 1.0);
std::string::~string((int)&v12);
v12 = 0;
v13 = 0;
v14 = 0;
std::string::__init(&v12, "EmptyOnly", 9u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v9, 90.0, 0.0);
cocos2d::CCPoint::operator+(v10, v8, v9);
SetupTriggerPopup::createToggleValueControl((int)this, 515, (int)&v12, (const cocos2d::CCPoint *)v10, 0, 0, 0, 1.0);
std::string::~string((int)&v12);
v12 = 0;
v13 = 0;
v14 = 0;
std::string::__init(&v12, "Screen\nOffX:", 0xCu);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v9, 130.0, 0.0);
cocos2d::CCPoint::operator+(v10, v7, v9);
SetupTriggerPopup::createValueControlAdvanced(
this,
290,
(unsigned __int8 *)&v12,
(int)v10,
1058642330,
0,
1,
6,
0,
COERCE_INT(-1.0),
COERCE_INT(1.0),
0,
101,
0,
2,
0);
std::string::~string((int)&v12);
v12 = 0;
v13 = 0;
v14 = 0;
std::string::__init(&v12, "Screen\nOffY:", 0xCu);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v9, 130.0, -50.0);
cocos2d::CCPoint::operator+(v10, v7, v9);
SetupTriggerPopup::createValueControlAdvanced(
this,
291,
(unsigned __int8 *)&v12,
(int)v10,
1058642330,
0,
1,
6,
0,
COERCE_INT(-1.0),
COERCE_INT(1.0),
0,
101,
0,
2,
0);
std::string::~string((int)&v12);
v12 = 0;
v13 = 0;
v14 = 0;
std::string::__init(&v12, "CenterID:", 9u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v9, 130.0, 0.0);
cocos2d::CCPoint::operator+(v10, v7, v9);
IDNameInput::create((int)this, (int)(this + 110), 1, 51, (int)&v12, (int)v10, 0.6, 6, 100, 0, 0);
std::string::~string((int)&v12);
v12 = 0;
v13 = 0;
v14 = 0;
std::string::__init(&v12, "P1", 2u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v9, 90.0, -40.0);
cocos2d::CCPoint::operator+(v10, v7, v9);
SetupTriggerPopup::createToggleValueControl((int)this, 138, (int)&v12, (const cocos2d::CCPoint *)v10, 0, 0, 100, 1.0);
std::string::~string((int)&v12);
v12 = 0;
v13 = 0;
v14 = 0;
std::string::__init(&v12, "P2", 2u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v9, 160.0, -40.0);
cocos2d::CCPoint::operator+(v10, v7, v9);
SetupTriggerPopup::createToggleValueControl((int)this, 200, (int)&v12, (const cocos2d::CCPoint *)v10, 0, 0, 100, 1.0);
std::string::~string((int)&v12);
v3 = COERCE_FLOAT((*((int (__fastcall **)(cocos2d::CCDictionary **, int))*this + 183))(this, 188));
(*((void (__fastcall **)(cocos2d::CCDictionary **, int, bool))*this + 169))(this, 100, v3 != 0.0);
(*((void (__fastcall **)(cocos2d::CCDictionary **, int, bool))*this + 169))(this, 101, v3 == 0.0);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v9, 65.0, -100.0);
cocos2d::CCPoint::operator+(v10, v7, v9);
return SetupTriggerPopup::createEasingControls((int)this, (int)v10, 0.8, 0, 0);
}