//
// SetupShaderEffectPopup::setupShockWave from 0xb322dc to 0xb332c0 (4068 bytes)
//
// 2 xrefs:
// > SetupShaderEffectPopup::init @ 0xb3ac70
// > ??> @ 0x68f80
//
// 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:44 +0000
//
__int64 __fastcall SetupShaderEffectPopup::setupShockWave(cocos2d::CCArray **this)
{
__int64 v2; // x23
void (__fastcall *v3)(__int64, __int64 *); // x26
__int64 v4; // x27
cocos2d::CCDirector *v5; // x0
cocos2d::CCDirector *v6; // x0
float v7; // s0
_BOOL4 v8; // w19
void (__fastcall *v9)(cocos2d::CCArray **, __int64, bool); // x19
float v10; // s0
void (__fastcall *v11)(cocos2d::CCArray **, __int64, bool); // x19
float v12; // s0
float v13; // s0
int v15; // [xsp+8h] [xbp-28h]
__int64 v16; // [xsp+B8h] [xbp+88h] BYREF
_BYTE v17[4]; // [xsp+C0h] [xbp+90h] BYREF
float v18; // [xsp+C4h] [xbp+94h]
_BYTE v19[8]; // [xsp+C8h] [xbp+98h] BYREF
_BYTE v20[8]; // [xsp+D0h] [xbp+A0h] BYREF
_BYTE v21[8]; // [xsp+D8h] [xbp+A8h] BYREF
__int64 v22; // [xsp+E0h] [xbp+B0h] BYREF
cocos2d::CCDirector *v23[2]; // [xsp+E8h] [xbp+B8h] BYREF
void *v24; // [xsp+F8h] [xbp+C8h]
__int64 v25; // [xsp+100h] [xbp+D0h] BYREF
__int64 v26; // [xsp+108h] [xbp+D8h]
void *v27; // [xsp+110h] [xbp+E0h]
v25 = 0;
v26 = 0;
v27 = nullptr;
std::string::__init(&v25, "Setup ShockWave", 0xFu);
v2 = SetupTriggerPopup::addTitle((__int64)this, (__int64)&v25);
if ( (v25 & 1) != 0 )
operator delete(v27);
v3 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v2 + 184LL);
v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 192LL))(v2);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v21, 0.0, 2.0);
cocos2d::CCPoint::operator+(&v22, v4);
v3(v2, &v22);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v2 + 160LL))(v2, 0.4);
v23[0] = nullptr;
v23[1] = nullptr;
v24 = nullptr;
std::string::__init((__int64 *)v23, "ShockWave", 9u);
v25 = 0;
v26 = 0;
v27 = nullptr;
std::string::__init(
&v25,
"Speed defines how fast the shockwave effect happens.\n"
"Strength sets how distorted objects get within the waves.\n"
"Thickness is how big each wave is.\n"
"MaxSize modifies the maximum size of the wave.\n"
"TimeOff is offset in seconds before the effect begins.\n"
"Target lets you set a specific object to do the effect around.\n"
"Relative makes the effect follow screen movement.\n"
"Invert makes the effect go towards the center.",
0x1D7u);
SetupTriggerPopup::addHelpButton((__int64)this, (char *)v23, (char *)&v25, 1.0);
if ( (v25 & 1) != 0 )
operator delete(v27);
v5 = (cocos2d::CCDirector *)LOBYTE(v23[0]);
if ( ((__int64)v23[0] & 1) != 0 )
operator delete(v24);
v6 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v5);
cocos2d::CCDirector::getWinSize(&v16, v6);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v17,
(float)(*(float *)&v16 * 0.5) + -10.0,
(float)(*((float *)&v16 + 1) * 0.5) + 110.0);
v25 = 0;
v26 = 0;
v27 = nullptr;
std::string::__init(&v25, "Speed:", 6u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v21, -100.0, 0.0);
cocos2d::CCPoint::operator+(&v22, v17);
SetupTriggerPopup::createValueControlAdvanced(
this,
175,
(char *)&v25,
(__int64)&v22,
0,
1,
6,
0,
0.6,
0.0,
5.0,
0,
0,
1,
3,
1);
if ( (v25 & 1) != 0 )
operator delete(v27);
v25 = 0;
v26 = 0;
v27 = nullptr;
std::string::__init(&v25, "Strength:", 9u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v21, 100.0, 0.0);
cocos2d::CCPoint::operator+(&v22, v17);
SetupTriggerPopup::createValueControlAdvanced(
this,
176,
(char *)&v25,
(__int64)&v22,
0,
1,
6,
0,
0.6,
0.0,
1.0,
0,
0,
1,
3,
1);
if ( (v25 & 1) != 0 )
operator delete(v27);
v25 = 0;
v26 = 0;
v27 = nullptr;
std::string::__init(&v25, "Thickness:", 0xAu);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v21, -100.0, -25.0);
cocos2d::CCPoint::operator+(&v22, v17);
SetupTriggerPopup::createValueControlAdvanced(
this,
180,
(char *)&v25,
(__int64)&v22,
0,
1,
6,
0,
0.6,
0.0,
5.0,
0,
0,
1,
3,
1);
if ( (v25 & 1) != 0 )
operator delete(v27);
v25 = 0;
v26 = 0;
v27 = nullptr;
std::string::__init(&v25, "WaveW:", 6u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v21, 100.0, -25.0);
cocos2d::CCPoint::operator+(&v22, v17);
SetupTriggerPopup::createValueControlAdvanced(
this,
179,
(char *)&v25,
(__int64)&v22,
0,
1,
6,
0,
0.6,
0.0,
5.0,
0,
0,
1,
3,
1);
if ( (v25 & 1) != 0 )
operator delete(v27);
v25 = 0;
v26 = 0;
v27 = nullptr;
std::string::__init(&v25, "FadeIn:", 7u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v21, -100.0, -50.0);
cocos2d::CCPoint::operator+(&v22, v17);
SetupTriggerPopup::createValueControlAdvanced(
this,
181,
(char *)&v25,
(__int64)&v22,
0,
1,
6,
0,
0.6,
0.0,
5.0,
0,
0,
1,
3,
1);
if ( (v25 & 1) != 0 )
operator delete(v27);
v25 = 0;
v26 = 0;
v27 = nullptr;
std::string::__init(&v25, "FadeOut:", 8u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v21, 100.0, -50.0);
cocos2d::CCPoint::operator+(&v22, v17);
SetupTriggerPopup::createValueControlAdvanced(
this,
182,
(char *)&v25,
(__int64)&v22,
0,
1,
6,
0,
0.6,
0.0,
5.0,
0,
0,
1,
3,
1);
if ( (v25 & 1) != 0 )
operator delete(v27);
v25 = 0;
v26 = 0;
v27 = nullptr;
std::string::__init(&v25, "TimeOff:", 8u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v21, -100.0, -75.0);
cocos2d::CCPoint::operator+(&v22, v17);
SetupTriggerPopup::createValueControlAdvanced(
this,
177,
(char *)&v25,
(__int64)&v22,
0,
1,
6,
0,
0.6,
-10.0,
10.0,
0,
0,
1,
3,
1);
if ( (v25 & 1) != 0 )
operator delete(v27);
v25 = 0;
v26 = 0;
v27 = nullptr;
std::string::__init(&v25, "MaxSize:", 8u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v21, 100.0, -75.0);
cocos2d::CCPoint::operator+(&v22, v17);
SetupTriggerPopup::createValueControlAdvanced(
this,
512,
(char *)&v25,
(__int64)&v22,
0,
1,
6,
0,
0.6,
0.0,
1.0,
0,
0,
1,
3,
1);
if ( (v25 & 1) != 0 )
operator delete(v27);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, (float)(*(float *)&v16 * 0.5) + -35.0, v18 - 100.0);
v25 = 0;
v26 = 0;
v27 = nullptr;
std::string::__init(&v25, "Invert", 6u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v21, -100.0, 0.0);
cocos2d::CCPoint::operator+(&v22, v19);
SetupTriggerPopup::createToggleValueControl((__int64)this, 0xB8u, &v25, (const cocos2d::CCPoint *)&v22, 0, 0, 0, 0.8);
if ( (v25 & 1) != 0 )
operator delete(v27);
v25 = 0;
v26 = 0;
v27 = nullptr;
std::string::__init(&v25, "Target", 6u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v21, 0.0, 0.0);
cocos2d::CCPoint::operator+(&v22, v19);
SetupTriggerPopup::createToggleValueControl((__int64)this, 0xBCu, &v25, (const cocos2d::CCPoint *)&v22, 0, 0, 0, 0.8);
if ( (v25 & 1) != 0 )
operator delete(v27);
v25 = 0;
v26 = 0;
v27 = nullptr;
std::string::__init(&v25, "Relative", 8u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v21, 100.0, 0.0);
cocos2d::CCPoint::operator+(&v22, v19);
SetupTriggerPopup::createToggleValueControl((__int64)this, 0x202u, &v25, (const cocos2d::CCPoint *)&v22, 0, 0, 0, 0.8);
if ( (v25 & 1) != 0 )
operator delete(v27);
v25 = 0;
v26 = 0;
v27 = nullptr;
std::string::__init(&v25, "Animate", 7u);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v22,
(float)((float)((float)(*((float *)this + 183) * 0.5) + (float)(*(float *)&v16 * 0.5)) - 72.0) - 90.0,
20.0 - (float)((float)(*((float *)this + 184) * 0.5) - (float)(*((float *)&v16 + 1) * 0.5)));
SetupTriggerPopup::createToggleValueControl((__int64)this, 0x201u, &v25, (const cocos2d::CCPoint *)&v22, 0, 0, 0, 1.0);
if ( (v25 & 1) != 0 )
operator delete(v27);
v25 = 0;
v26 = 0;
v27 = nullptr;
std::string::__init(&v25, "Screen\nOffX:", 0xCu);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v21, -100.0, -125.0);
cocos2d::CCPoint::operator+(&v22, v17);
SetupTriggerPopup::createValueControlAdvanced(
this,
290,
(char *)&v25,
(__int64)&v22,
0,
1,
6,
0,
0.6,
-1.0,
1.0,
0,
101,
1,
3,
1);
if ( (v25 & 1) != 0 )
operator delete(v27);
v25 = 0;
v26 = 0;
v27 = nullptr;
std::string::__init(&v25, "Screen\nOffY:", 0xCu);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v21, 100.0, -125.0);
cocos2d::CCPoint::operator+(&v22, v17);
SetupTriggerPopup::createValueControlAdvanced(
this,
291,
(char *)&v25,
(__int64)&v22,
0,
1,
6,
0,
0.6,
-1.0,
1.0,
0,
101,
1,
3,
1);
if ( (v25 & 1) != 0 )
operator delete(v27);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v20, (float)(*(float *)&v16 * 0.5) + -20.0, v18 - 125.0);
v25 = 0;
v26 = 0;
v27 = nullptr;
std::string::__init(&v25, "CenterID", 8u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v21, -100.0, 0.0);
cocos2d::CCPoint::operator+(&v22, v20);
LOBYTE(v15) = 1;
IDNameInput::create(this, this + 68, 1, 51, &v25, &v22, 6, 100, 0.6, 0, v15);
if ( (v25 & 1) != 0 )
operator delete(v27);
v25 = 0;
v26 = 0;
v27 = nullptr;
std::string::__init(&v25, "P1", 2u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v21, 20.0, 0.0);
cocos2d::CCPoint::operator+(&v22, v20);
SetupTriggerPopup::createToggleValueControl(
(__int64)this,
0x8Au,
&v25,
(const cocos2d::CCPoint *)&v22,
0,
0,
100,
0.8);
if ( (v25 & 1) != 0 )
operator delete(v27);
v25 = 0;
v26 = 0;
v27 = nullptr;
std::string::__init(&v25, "P2", 2u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v21, 80.0, 0.0);
cocos2d::CCPoint::operator+(&v22, v20);
SetupTriggerPopup::createToggleValueControl(
(__int64)this,
0xC8u,
&v25,
(const cocos2d::CCPoint *)&v22,
0,
0,
100,
0.8);
if ( (v25 & 1) != 0 )
operator delete(v27);
v25 = 0;
v26 = 0;
v27 = nullptr;
std::string::__init(&v25, "Follow", 6u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v21, 140.0, 0.0);
cocos2d::CCPoint::operator+(&v22, v20);
SetupTriggerPopup::createToggleValueControl(
(__int64)this,
0xBEu,
&v25,
(const cocos2d::CCPoint *)&v22,
0,
0,
100,
0.8);
if ( (v25 & 1) != 0 )
operator delete(v27);
v25 = 0;
v26 = 0;
v27 = nullptr;
std::string::__init(&v25, "Inner:", 6u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v21, -100.0, -150.0);
cocos2d::CCPoint::operator+(&v22, v17);
SetupTriggerPopup::createValueControlAdvanced(
this,
183,
(char *)&v25,
(__int64)&v22,
0,
1,
6,
0,
0.6,
0.0,
5.0,
0,
102,
1,
3,
1);
if ( (v25 & 1) != 0 )
operator delete(v27);
v25 = 0;
v26 = 0;
v27 = nullptr;
std::string::__init(&v25, "Outer:", 6u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v21, 100.0, -150.0);
cocos2d::CCPoint::operator+(&v22, v17);
SetupTriggerPopup::createValueControlAdvanced(
this,
191,
(char *)&v25,
(__int64)&v22,
0,
1,
6,
0,
0.6,
0.0,
5.0,
0,
102,
1,
3,
1);
if ( (v25 & 1) != 0 )
operator delete(v27);
v25 = 0;
v26 = 0;
v27 = nullptr;
std::string::__init(&v25, "FadeTime:", 9u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v21, -100.0, -185.0);
cocos2d::CCPoint::operator+(&v22, v17);
SetupTriggerPopup::createValueControlAdvanced(
this,
10,
(char *)&v25,
(__int64)&v22,
0,
1,
6,
0,
0.6,
0.0,
1.0,
0,
103,
1,
2,
0);
if ( (v25 & 1) != 0 )
operator delete(v27);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v21, 100.0, -170.0);
cocos2d::CCPoint::operator+(&v22, v17);
SetupTriggerPopup::createEasingControls((__int64)this, (__int64)&v22, 0, 103, 0.65);
v7 = (*((float (__fastcall **)(cocos2d::CCArray **, __int64))*this + 183))(this, 188);
v8 = v7 != 0.0;
(*((void (__fastcall **)(cocos2d::CCArray **, __int64, bool))*this + 169))(this, 100, v7 != 0.0);
(*((void (__fastcall **)(cocos2d::CCArray **, __int64, bool))*this + 169))(this, 101, !v8);
v9 = *((void (__fastcall **)(cocos2d::CCArray **, __int64, bool))*this + 169);
v10 = (*((float (__fastcall **)(cocos2d::CCArray **, __int64))*this + 183))(this, 184);
v9(this, 102, v10 != 0.0);
v11 = *((void (__fastcall **)(cocos2d::CCArray **, __int64, bool))*this + 169);
v12 = (*((float (__fastcall **)(cocos2d::CCArray **, __int64))*this + 183))(this, 513);
v11(this, 103, v12 != 0.0);
v13 = (*((float (__fastcall **)(cocos2d::CCArray **, __int64))*this + 183))(this, 513);
SetupTriggerPopup::toggleDisableButtons((__int64)this, v13 != 0.0);
return _stack_chk_guard;
}