//
// SetupShaderEffectPopup::setupShockWave from 0x1002c63b0 to 0x1002c7607 (4695 bytes)
//
// 1 xrefs:
// > SetupShaderEffectPopup::init @ 0x1002c61f4
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall SetupShaderEffectPopup::setupShockWave(SetupShaderEffectPopup *a1)
{
cocos2d::CCLabelBMFont *v1; // r14
unsigned __int64 *v2; // r15
__m128 v3; // xmm0
unsigned int v4; // r14d
__m128 v5; // xmm0
__m128 v6; // rt1
__m128 v7; // xmm0
__m128 v8; // xmm0
char v9; // [rsp+38h] [rbp-298h] BYREF
_BYTE v10[23]; // [rsp+39h] [rbp-297h] BYREF
__int128 v11; // [rsp+50h] [rbp-280h] BYREF
void *v12; // [rsp+60h] [rbp-270h]
char v13; // [rsp+68h] [rbp-268h] BYREF
_BYTE v14[23]; // [rsp+69h] [rbp-267h] BYREF
char v15; // [rsp+80h] [rbp-250h] BYREF
_BYTE v16[23]; // [rsp+81h] [rbp-24Fh] BYREF
char v17; // [rsp+98h] [rbp-238h] BYREF
_BYTE v18[23]; // [rsp+99h] [rbp-237h] BYREF
char v19; // [rsp+B0h] [rbp-220h] BYREF
_BYTE v20[23]; // [rsp+B1h] [rbp-21Fh] BYREF
__int128 v21; // [rsp+C8h] [rbp-208h] BYREF
void *v22; // [rsp+D8h] [rbp-1F8h]
char v23; // [rsp+E0h] [rbp-1F0h] BYREF
_BYTE v24[23]; // [rsp+E1h] [rbp-1EFh] BYREF
__int128 v25; // [rsp+F8h] [rbp-1D8h] BYREF
void *v26; // [rsp+108h] [rbp-1C8h]
__int128 v27; // [rsp+110h] [rbp-1C0h] BYREF
void *v28; // [rsp+120h] [rbp-1B0h]
char v29; // [rsp+128h] [rbp-1A8h] BYREF
_BYTE v30[23]; // [rsp+129h] [rbp-1A7h] BYREF
char v31; // [rsp+140h] [rbp-190h] BYREF
_BYTE v32[23]; // [rsp+141h] [rbp-18Fh] BYREF
char v33; // [rsp+158h] [rbp-178h] BYREF
char v34[15]; // [rsp+159h] [rbp-177h] BYREF
void *v35; // [rsp+168h] [rbp-168h]
char v36; // [rsp+170h] [rbp-160h] BYREF
_BYTE v37[23]; // [rsp+171h] [rbp-15Fh] BYREF
char v38; // [rsp+188h] [rbp-148h] BYREF
char v39[15]; // [rsp+189h] [rbp-147h] BYREF
void *v40; // [rsp+198h] [rbp-138h]
char v41; // [rsp+1A0h] [rbp-130h] BYREF
char v42[15]; // [rsp+1A1h] [rbp-12Fh] BYREF
void *v43; // [rsp+1B0h] [rbp-120h]
__int128 v44; // [rsp+1B8h] [rbp-118h] BYREF
void *v45; // [rsp+1C8h] [rbp-108h]
__int128 v46; // [rsp+1D0h] [rbp-100h] BYREF
void *v47; // [rsp+1E0h] [rbp-F0h]
__int128 v48; // [rsp+1E8h] [rbp-E8h] BYREF
void *v49; // [rsp+1F8h] [rbp-D8h]
char v50; // [rsp+200h] [rbp-D0h] BYREF
_BYTE v51[23]; // [rsp+201h] [rbp-CFh] BYREF
char v52; // [rsp+218h] [rbp-B8h] BYREF
_BYTE v53[23]; // [rsp+219h] [rbp-B7h] BYREF
__int128 v54; // [rsp+230h] [rbp-A0h] BYREF
void *v55; // [rsp+240h] [rbp-90h]
char v56; // [rsp+248h] [rbp-88h] BYREF
char v57[15]; // [rsp+249h] [rbp-87h] BYREF
void *v58; // [rsp+258h] [rbp-78h]
char v59; // [rsp+260h] [rbp-70h] BYREF
char v60[15]; // [rsp+261h] [rbp-6Fh] BYREF
void *v61; // [rsp+270h] [rbp-60h]
double v62; // [rsp+278h] [rbp-58h] BYREF
unsigned __int64 v63; // [rsp+280h] [rbp-50h] BYREF
unsigned __int64 v64; // [rsp+288h] [rbp-48h] BYREF
unsigned __int64 v65; // [rsp+290h] [rbp-40h] BYREF
unsigned __int64 v66; // [rsp+298h] [rbp-38h] BYREF
unsigned __int64 v67[6]; // [rsp+2A0h] [rbp-30h] BYREF
v31 = 30;
strcpy(v32, "Setup ShockWave");
v1 = SetupTriggerPopup::addTitle((__int64)a1, (__int64)&v31);
if ( (v31 & 1) != 0 )
operator delete(*(void **)&v32[15]);
v2 = (unsigned __int64 *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v1->getPosition)(v1);
sub_10028CBE0((float *)&v64, 0.0, 2.0);
sub_10028CCE0(&v62, v2, &v64);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, double *))v1->setPosition)(v1, &v62);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v1->setScale)(v1, 0.40000001);
v9 = 18;
strcpy(v10, "ShockWave");
v12 = operator new(0x1D8u);
*(_QWORD *)&v11 = 473;
*((_QWORD *)&v11 + 1) = 471;
strcpy(
(char *)v12,
"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.");
SetupTriggerPopup::addHelpButton((__int64)a1, (__int64)&v9, &v11, (__m128)0x3F800000u);
if ( (v11 & 1) != 0 )
operator delete(v12);
if ( (v9 & 1) != 0 )
operator delete(*(void **)&v10[15]);
cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v62);
sub_10028CBE0((float *)&v64, (float)(*(float *)&v62 * 0.5) + -10.0, (float)(*((float *)&v62 + 1) * 0.5) + 110.0);
v33 = 12;
strcpy(v34, "Speed:");
sub_10028CBE0((float *)v67, -100.0, 0.0);
sub_10028CCE0((double *)&v65, &v64, v67);
SetupTriggerPopup::createValueControlAdvanced(
(__int64)a1,
175,
(__int64)&v33,
(float *)&v65,
0,
Float,
0.60000002,
0.0,
5.0,
6,
0,
0,
0,
1,
3,
1);
if ( (v33 & 1) != 0 )
operator delete(v35);
v13 = 18;
strcpy(v14, "Strength:");
sub_10028CBE0((float *)v67, 100.0, 0.0);
sub_10028CCE0((double *)&v65, &v64, v67);
SetupTriggerPopup::createValueControlAdvanced(
(__int64)a1,
176,
(__int64)&v13,
(float *)&v65,
0,
Float,
0.60000002,
0.0,
1.0,
6,
0,
0,
0,
1,
3,
1);
if ( (v13 & 1) != 0 )
operator delete(*(void **)&v14[15]);
v36 = 20;
strcpy(v37, "Thickness:");
sub_10028CBE0((float *)v67, -100.0, -25.0);
sub_10028CCE0((double *)&v65, &v64, v67);
SetupTriggerPopup::createValueControlAdvanced(
(__int64)a1,
180,
(__int64)&v36,
(float *)&v65,
0,
Float,
0.60000002,
0.0,
5.0,
6,
0,
0,
0,
1,
3,
1);
if ( (v36 & 1) != 0 )
operator delete(*(void **)&v37[15]);
v38 = 12;
strcpy(v39, "WaveW:");
sub_10028CBE0((float *)v67, 100.0, -25.0);
sub_10028CCE0((double *)&v65, &v64, v67);
SetupTriggerPopup::createValueControlAdvanced(
(__int64)a1,
179,
(__int64)&v38,
(float *)&v65,
0,
Float,
0.60000002,
0.0,
5.0,
6,
0,
0,
0,
1,
3,
1);
if ( (v38 & 1) != 0 )
operator delete(v40);
v41 = 14;
strcpy(v42, "FadeIn:");
sub_10028CBE0((float *)v67, -100.0, -50.0);
sub_10028CCE0((double *)&v65, &v64, v67);
SetupTriggerPopup::createValueControlAdvanced(
(__int64)a1,
181,
(__int64)&v41,
(float *)&v65,
0,
Float,
0.60000002,
0.0,
5.0,
6,
0,
0,
0,
1,
3,
1);
if ( (v41 & 1) != 0 )
operator delete(v43);
v15 = 16;
strcpy(v16, "FadeOut:");
sub_10028CBE0((float *)v67, 100.0, -50.0);
sub_10028CCE0((double *)&v65, &v64, v67);
SetupTriggerPopup::createValueControlAdvanced(
(__int64)a1,
182,
(__int64)&v15,
(float *)&v65,
0,
Float,
0.60000002,
0.0,
5.0,
6,
0,
0,
0,
1,
3,
1);
if ( (v15 & 1) != 0 )
operator delete(*(void **)&v16[15]);
v17 = 16;
strcpy(v18, "TimeOff:");
sub_10028CBE0((float *)v67, -100.0, -75.0);
sub_10028CCE0((double *)&v65, &v64, v67);
SetupTriggerPopup::createValueControlAdvanced(
(__int64)a1,
177,
(__int64)&v17,
(float *)&v65,
0,
Float,
0.60000002,
-10.0,
10.0,
6,
0,
0,
0,
1,
3,
1);
if ( (v17 & 1) != 0 )
operator delete(*(void **)&v18[15]);
v19 = 16;
strcpy(v20, "MaxSize:");
sub_10028CBE0((float *)v67, 100.0, -75.0);
sub_10028CCE0((double *)&v65, &v64, v67);
SetupTriggerPopup::createValueControlAdvanced(
(__int64)a1,
512,
(__int64)&v19,
(float *)&v65,
0,
Float,
0.60000002,
0.0,
1.0,
6,
0,
0,
0,
1,
3,
1);
if ( (v19 & 1) != 0 )
operator delete(*(void **)&v20[15]);
sub_10028CBE0((float *)&v65, (float)(*(float *)&v62 * 0.5) + -35.0, *((float *)&v64 + 1) + -100.0);
LOBYTE(v44) = 12;
strcpy((char *)&v44 + 1, "Invert");
sub_10028CBE0((float *)&v66, -100.0, 0.0);
sub_10028CCE0((double *)v67, &v65, &v66);
SetupTriggerPopup::createToggleValueControl((int)a1, 184, &v44, 0.80000001, (__int64)v67, 0, 0, 0);
if ( (v44 & 1) != 0 )
operator delete(v45);
LOBYTE(v46) = 12;
strcpy((char *)&v46 + 1, "Target");
sub_10028CBE0((float *)&v66, 0.0, 0.0);
sub_10028CCE0((double *)v67, &v65, &v66);
SetupTriggerPopup::createToggleValueControl((int)a1, 188, &v46, 0.80000001, (__int64)v67, 0, 0, 0);
if ( (v46 & 1) != 0 )
operator delete(v47);
LOBYTE(v21) = 16;
strcpy((char *)&v21 + 1, "Relative");
sub_10028CBE0((float *)&v66, 100.0, 0.0);
sub_10028CCE0((double *)v67, &v65, &v66);
SetupTriggerPopup::createToggleValueControl((int)a1, 514, &v21, 0.80000001, (__int64)v67, 0, 0, 0);
if ( (v21 & 1) != 0 )
operator delete(v22);
LOBYTE(v48) = 14;
strcpy((char *)&v48 + 1, "Animate");
sub_10028CBE0(
(float *)v67,
(float)((float)((float)(a1->m_width * 0.5) + (float)(*(float *)&v62 * 0.5)) + -72.0) + -90.0,
(float)((float)(*((float *)&v62 + 1) * 0.5) - (float)(0.5 * a1->m_height)) + 20.0);
SetupTriggerPopup::createToggleValueControl((int)a1, 513, &v48, 1.0, (__int64)v67, 0, 0, 0);
if ( (v48 & 1) != 0 )
operator delete(v49);
v50 = 24;
strcpy(v51, "Screen\nOffX:");
sub_10028CBE0((float *)&v66, -100.0, -125.0);
sub_10028CCE0((double *)v67, &v64, &v66);
SetupTriggerPopup::createValueControlAdvanced(
(__int64)a1,
290,
(__int64)&v50,
(float *)v67,
0,
Float,
0.60000002,
-1.0,
1.0,
6,
0,
0,
101,
1,
3,
1);
if ( (v50 & 1) != 0 )
operator delete(*(void **)&v51[15]);
v52 = 24;
strcpy(v53, "Screen\nOffY:");
sub_10028CBE0((float *)&v66, 100.0, -125.0);
sub_10028CCE0((double *)v67, &v64, &v66);
SetupTriggerPopup::createValueControlAdvanced(
(__int64)a1,
291,
(__int64)&v52,
(float *)v67,
0,
Float,
0.60000002,
-1.0,
1.0,
6,
0,
0,
101,
1,
3,
1);
if ( (v52 & 1) != 0 )
operator delete(*(void **)&v53[15]);
sub_10028CBE0((float *)v67, (float)(*(float *)&v62 * 0.5) + -20.0, *((float *)&v64 + 1) + -125.0);
v23 = 16;
strcpy(v24, "CenterID");
sub_10028CBE0((float *)&v63, -100.0, 0.0);
sub_10028CCE0((double *)&v66, v67, &v63);
SetupTriggerPopup::createValueControlAdvanced(
(__int64)a1,
51,
(__int64)&v23,
(float *)&v66,
1,
Int,
0.60000002,
0.0,
1.0,
6,
1,
0,
100,
1,
2,
0);
if ( (v23 & 1) != 0 )
operator delete(*(void **)&v24[15]);
LOBYTE(v25) = 4;
strcpy((char *)&v25 + 1, "P1");
sub_10028CBE0((float *)&v63, 20.0, 0.0);
sub_10028CCE0((double *)&v66, v67, &v63);
SetupTriggerPopup::createToggleValueControl((int)a1, 138, &v25, 0.80000001, (__int64)&v66, 0, 0, 100);
if ( (v25 & 1) != 0 )
operator delete(v26);
LOBYTE(v27) = 4;
strcpy((char *)&v27 + 1, "P2");
sub_10028CBE0((float *)&v63, 80.0, 0.0);
sub_10028CCE0((double *)&v66, v67, &v63);
SetupTriggerPopup::createToggleValueControl((int)a1, 200, &v27, 0.80000001, (__int64)&v66, 0, 0, 100);
if ( (v27 & 1) != 0 )
operator delete(v28);
LOBYTE(v54) = 12;
strcpy((char *)&v54 + 1, "Follow");
sub_10028CBE0((float *)&v63, 140.0, 0.0);
sub_10028CCE0((double *)&v66, v67, &v63);
SetupTriggerPopup::createToggleValueControl((int)a1, 190, &v54, 0.80000001, (__int64)&v66, 0, 0, 100);
if ( (v54 & 1) != 0 )
operator delete(v55);
v56 = 12;
strcpy(v57, "Inner:");
sub_10028CBE0((float *)&v63, -100.0, -150.0);
sub_10028CCE0((double *)&v66, &v64, &v63);
SetupTriggerPopup::createValueControlAdvanced(
(__int64)a1,
183,
(__int64)&v56,
(float *)&v66,
0,
Float,
0.60000002,
0.0,
5.0,
6,
0,
0,
102,
1,
3,
1);
if ( (v56 & 1) != 0 )
operator delete(v58);
v59 = 12;
strcpy(v60, "Outer:");
sub_10028CBE0((float *)&v63, 100.0, -150.0);
sub_10028CCE0((double *)&v66, &v64, &v63);
SetupTriggerPopup::createValueControlAdvanced(
(__int64)a1,
191,
(__int64)&v59,
(float *)&v66,
0,
Float,
0.60000002,
0.0,
5.0,
6,
0,
0,
102,
1,
3,
1);
if ( (v59 & 1) != 0 )
operator delete(v61);
v29 = 18;
strcpy(v30, "FadeTime:");
sub_10028CBE0((float *)&v63, -100.0, -185.0);
sub_10028CCE0((double *)&v66, &v64, &v63);
SetupTriggerPopup::createValueControlAdvanced(
(__int64)a1,
10,
(__int64)&v29,
(float *)&v66,
0,
Float,
0.60000002,
0.0,
1.0,
6,
0,
0,
103,
1,
2,
0);
if ( (v29 & 1) != 0 )
operator delete(*(void **)&v30[15]);
sub_10028CBE0((float *)&v63, 100.0, -170.0);
sub_10028CCE0((double *)&v66, &v64, &v63);
v3 = (__m128)0x3F266666u;
SetupTriggerPopup::createEasingControls(a1, (cocos2d::CCPoint)1059481190LL, -170.0, (int)&v66, 0);
*(double *)v3.i64 = ((double (__fastcall *)(SetupShaderEffectPopup *, __int64))a1->getValue)(a1, 188);
v4 = _mm_cvtsi128_si32((__m128i)_mm_cmpeq_ss(v3, (__m128)0LL)) & 1;
v5 = _mm_cmpneq_ss(v3, (__m128)0LL);
((void (__fastcall *)(SetupShaderEffectPopup *, __int64, _QWORD))a1->toggleGroup)(
a1,
100,
_mm_cvtsi128_si32((__m128i)v5) & 1);
((void (__fastcall *)(SetupShaderEffectPopup *, __int64, _QWORD))a1->toggleGroup)(a1, 101, v4);
*(double *)v5.i64 = ((double (__fastcall *)(SetupShaderEffectPopup *, __int64))a1->getValue)(a1, 184);
v6.i32[0] = 0;
v7 = _mm_cmpneq_ss(v5, v6);
((void (__fastcall *)(SetupShaderEffectPopup *, __int64, _QWORD))a1->toggleGroup)(
a1,
102,
_mm_cvtsi128_si32((__m128i)v7) & 1);
*(double *)v7.i64 = ((double (__fastcall *)(SetupShaderEffectPopup *, __int64))a1->getValue)(a1, 513);
v6.i32[0] = 0;
v8 = _mm_cmpneq_ss(v7, v6);
((void (__fastcall *)(SetupShaderEffectPopup *, __int64, _QWORD))a1->toggleGroup)(
a1,
103,
_mm_cvtsi128_si32((__m128i)v8) & 1);
*(double *)v8.i64 = ((double (__fastcall *)(SetupShaderEffectPopup *, __int64))a1->getValue)(a1, 513);
v6.i32[0] = 0;
SetupTriggerPopup::toggleDisableButtons(a1, _mm_cvtsi128_si32((__m128i)_mm_cmpneq_ss(v8, v6)) & 1);
}