//
// SetupShaderEffectPopup::setupShockLine from 0x1002b44f0 to 0x1002b55e0 (4336 bytes)
//
// 1 xrefs:
// > SetupShaderEffectPopup::init @ 0x1002b2eef
//
// This function is hookable on this platform (idp: pc, 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 12:28:02 +0000
//
_QWORD *__fastcall SetupShaderEffectPopup::setupShockLine(float *a1)
{
float *v1; // rbx
__int64 v2; // r14
unsigned __int64 *v3; // r15
__int64 v4; // rax
__m128 v5; // xmm0
unsigned int v6; // r14d
__m128 v7; // xmm0
__m128 v8; // rt1
__m128 v9; // xmm0
unsigned __int64 v11; // [rsp+38h] [rbp-298h] BYREF
__int128 v12; // [rsp+40h] [rbp-290h] BYREF
void *v13; // [rsp+50h] [rbp-280h]
__int128 v14; // [rsp+58h] [rbp-278h] BYREF
void *v15; // [rsp+68h] [rbp-268h]
std::string v16; // [rsp+70h] [rbp-260h] BYREF
std::string v17; // [rsp+88h] [rbp-248h] BYREF
std::string v18; // [rsp+A0h] [rbp-230h] BYREF
std::string v19; // [rsp+B8h] [rbp-218h] BYREF
__int128 v20; // [rsp+D0h] [rbp-200h] BYREF
void *v21; // [rsp+E0h] [rbp-1F0h]
__int128 v22; // [rsp+E8h] [rbp-1E8h] BYREF
void *v23; // [rsp+F8h] [rbp-1D8h]
__int128 v24; // [rsp+100h] [rbp-1D0h] BYREF
void *v25; // [rsp+110h] [rbp-1C0h]
__int128 v26; // [rsp+118h] [rbp-1B8h] BYREF
void *v27; // [rsp+128h] [rbp-1A8h]
__int128 v28; // [rsp+130h] [rbp-1A0h] BYREF
void *v29; // [rsp+140h] [rbp-190h]
std::string v30; // [rsp+148h] [rbp-188h] BYREF
char v31; // [rsp+160h] [rbp-170h] BYREF
_BYTE v32[23]; // [rsp+161h] [rbp-16Fh] BYREF
std::string v33; // [rsp+178h] [rbp-158h] BYREF
std::string v34; // [rsp+190h] [rbp-140h] BYREF
std::string v35; // [rsp+1A8h] [rbp-128h] BYREF
std::string v36; // [rsp+1C0h] [rbp-110h] BYREF
__int128 v37; // [rsp+1D8h] [rbp-F8h] BYREF
void *v38; // [rsp+1E8h] [rbp-E8h]
__int128 v39; // [rsp+1F0h] [rbp-E0h] BYREF
void *v40; // [rsp+200h] [rbp-D0h]
__int128 v41; // [rsp+208h] [rbp-C8h] BYREF
void *v42; // [rsp+218h] [rbp-B8h]
__int128 v43; // [rsp+220h] [rbp-B0h] BYREF
void *v44; // [rsp+230h] [rbp-A0h]
std::string v45; // [rsp+238h] [rbp-98h] BYREF
__int128 v46; // [rsp+250h] [rbp-80h] BYREF
void *v47; // [rsp+260h] [rbp-70h]
unsigned __int64 v48; // [rsp+268h] [rbp-68h] BYREF
unsigned __int64 v49; // [rsp+270h] [rbp-60h] BYREF
unsigned __int64 v50; // [rsp+278h] [rbp-58h] BYREF
double v51[3]; // [rsp+280h] [rbp-50h] BYREF
unsigned __int64 v52; // [rsp+298h] [rbp-38h] BYREF
unsigned __int64 v53[6]; // [rsp+2A0h] [rbp-30h] BYREF
v1 = a1;
v31 = 30;
strcpy(v32, "Setup ShockLine");
v2 = SetupTriggerPopup::addTitle((__int64)a1, (__int64)&v31);
if ( (v31 & 1) != 0 )
operator delete(*(void **)&v32[15]);
v3 = (unsigned __int64 *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 192LL))(v2);
sub_100278250((float *)&v48, 0.0, 2.0);
sub_100278350(v51, v3, &v48);
(*(void (__fastcall **)(__int64, double *))(*(_QWORD *)v2 + 184LL))(v2, v51);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v2 + 160LL))(v2, 0.40000001);
LOBYTE(v12) = 18;
strcpy((char *)&v12 + 1, "ShockLine");
v15 = operator new(0x1C0u);
*(_QWORD *)&v14 = 449;
*((_QWORD *)&v14 + 1) = 447;
strcpy(
(char *)v15,
"Speed defines how fast the shockline 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"
"WaveW is line width.\n"
"TimeOff is offset in seconds before the effect begins.\n"
"Target lets you set a specific object to do the effect around.\n"
"Flip and Rotate change the direction of the effect.");
SetupTriggerPopup::addHelpButton((__int64)a1, &v12, &v14, 1.0);
if ( (v14 & 1) != 0 )
{
a1 = (float *)v15;
operator delete(v15);
}
if ( (v12 & 1) != 0 )
{
a1 = (float *)v13;
operator delete(v13);
}
v4 = cocos2d::CCDirector::sharedDirector(a1, &v12);
cocos2d::CCDirector::getWinSize(&v48, v4);
sub_100278250((float *)&v50, (float)(*(float *)&v48 * 0.5) + -10.0, (float)(*((float *)&v48 + 1) * 0.5) + 110.0);
v33.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)12;
strcpy(v33.__r_.__value_.__s.__data_, "Speed:");
sub_100278250((float *)v53, -100.0, 0.0);
sub_100278350(v51, &v50, v53);
SetupTriggerPopup::createValueControlAdvanced(
(__int64)v1,
175,
&v33,
(__int64)v51,
0,
1u,
0.60000002,
0.0,
5.0,
6u,
0,
0,
0,
1u,
3u,
1);
if ( (*(_BYTE *)&v33.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v33.__r_.__value_.__l.__data_);
v16.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)18;
strcpy(v16.__r_.__value_.__s.__data_, "Strength:");
sub_100278250((float *)v53, 100.0, 0.0);
sub_100278350(v51, &v50, v53);
SetupTriggerPopup::createValueControlAdvanced(
(__int64)v1,
176,
&v16,
(__int64)v51,
0,
1u,
0.60000002,
0.0,
1.0,
6u,
0,
0,
0,
1u,
3u,
1);
if ( (*(_BYTE *)&v16.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v16.__r_.__value_.__l.__data_);
v34.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)20;
strcpy(v34.__r_.__value_.__s.__data_, "Thickness:");
sub_100278250((float *)v53, -100.0, -25.0);
sub_100278350(v51, &v50, v53);
SetupTriggerPopup::createValueControlAdvanced(
(__int64)v1,
180,
&v34,
(__int64)v51,
0,
1u,
0.60000002,
0.0,
5.0,
6u,
0,
0,
0,
1u,
3u,
1);
if ( (*(_BYTE *)&v34.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v34.__r_.__value_.__l.__data_);
v35.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)12;
strcpy(v35.__r_.__value_.__s.__data_, "WaveW:");
sub_100278250((float *)v53, 100.0, -25.0);
sub_100278350(v51, &v50, v53);
SetupTriggerPopup::createValueControlAdvanced(
(__int64)v1,
179,
&v35,
(__int64)v51,
0,
1u,
0.60000002,
0.0,
5.0,
6u,
0,
0,
0,
1u,
3u,
1);
if ( (*(_BYTE *)&v35.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v35.__r_.__value_.__l.__data_);
v36.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)14;
strcpy(v36.__r_.__value_.__s.__data_, "FadeIn:");
sub_100278250((float *)v53, -100.0, -50.0);
sub_100278350(v51, &v50, v53);
SetupTriggerPopup::createValueControlAdvanced(
(__int64)v1,
181,
&v36,
(__int64)v51,
0,
1u,
0.60000002,
0.0,
5.0,
6u,
0,
0,
0,
1u,
3u,
1);
if ( (*(_BYTE *)&v36.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v36.__r_.__value_.__l.__data_);
v17.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)16;
strcpy(v17.__r_.__value_.__s.__data_, "FadeOut:");
sub_100278250((float *)v53, 100.0, -50.0);
sub_100278350(v51, &v50, v53);
SetupTriggerPopup::createValueControlAdvanced(
(__int64)v1,
182,
&v17,
(__int64)v51,
0,
1u,
0.60000002,
0.0,
5.0,
6u,
0,
0,
0,
1u,
3u,
1);
if ( (*(_BYTE *)&v17.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v17.__r_.__value_.__l.__data_);
v18.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)16;
strcpy(v18.__r_.__value_.__s.__data_, "TimeOff:");
sub_100278250((float *)v53, -100.0, -75.0);
sub_100278350(v51, &v50, v53);
SetupTriggerPopup::createValueControlAdvanced(
(__int64)v1,
177,
&v18,
(__int64)v51,
0,
1u,
0.60000002,
-10.0,
10.0,
6u,
0,
0,
0,
1u,
3u,
1);
if ( (*(_BYTE *)&v18.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v18.__r_.__value_.__l.__data_);
v19.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)16;
strcpy(v19.__r_.__value_.__s.__data_, "MaxSize:");
sub_100278250((float *)v53, 100.0, -75.0);
sub_100278350(v51, &v50, v53);
SetupTriggerPopup::createValueControlAdvanced(
(__int64)v1,
512,
&v19,
(__int64)v51,
0,
1u,
0.60000002,
0.0,
1.0,
6u,
0,
0,
0,
1u,
3u,
1);
if ( (*(_BYTE *)&v19.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v19.__r_.__value_.__l.__data_);
sub_100278250((float *)v53, (float)(*(float *)&v48 * 0.5) + -25.0, *((float *)&v50 + 1) + -100.0);
LOBYTE(v37) = 12;
strcpy((char *)&v37 + 1, "Invert");
sub_100278250((float *)&v52, -162.5, 0.0);
sub_100278350(v51, v53, &v52);
SetupTriggerPopup::createToggleValueControl((int)v1, 184, &v37, (__int64)v51, 0, 0, 0.80000001, 0);
if ( (v37 & 1) != 0 )
operator delete(v38);
LOBYTE(v20) = 8;
strcpy((char *)&v20 + 1, "Flip");
sub_100278250((float *)&v52, -97.5, 0.0);
sub_100278350(v51, v53, &v52);
SetupTriggerPopup::createToggleValueControl((int)v1, 185, &v20, (__int64)v51, 0, 0, 0.80000001, 0);
if ( (v20 & 1) != 0 )
operator delete(v21);
LOBYTE(v39) = 12;
strcpy((char *)&v39 + 1, "Rotate");
sub_100278250((float *)&v52, -32.5, 0.0);
sub_100278350(v51, v53, &v52);
SetupTriggerPopup::createToggleValueControl((int)v1, 186, &v39, (__int64)v51, 0, 0, 0.80000001, 0);
if ( (v39 & 1) != 0 )
operator delete(v40);
LOBYTE(v22) = 8;
strcpy((char *)&v22 + 1, "Dual");
sub_100278250((float *)&v52, 32.5, 0.0);
sub_100278350(v51, v53, &v52);
SetupTriggerPopup::createToggleValueControl((int)v1, 187, &v22, (__int64)v51, 0, 0, 0.80000001, 0);
if ( (v22 & 1) != 0 )
operator delete(v23);
LOBYTE(v41) = 12;
strcpy((char *)&v41 + 1, "Target");
sub_100278250((float *)&v52, 97.5, 0.0);
sub_100278350(v51, v53, &v52);
SetupTriggerPopup::createToggleValueControl((int)v1, 188, &v41, (__int64)v51, 0, 0, 0.80000001, 0);
if ( (v41 & 1) != 0 )
operator delete(v42);
LOBYTE(v24) = 16;
strcpy((char *)&v24 + 1, "Relative");
sub_100278250((float *)&v52, 162.5, 0.0);
sub_100278350(v51, v53, &v52);
SetupTriggerPopup::createToggleValueControl((int)v1, 514, &v24, (__int64)v51, 0, 0, 0.80000001, 0);
if ( (v24 & 1) != 0 )
operator delete(v25);
LOBYTE(v43) = 14;
strcpy((char *)&v43 + 1, "Animate");
sub_100278250(
(float *)v51,
(float)((float)((float)(v1[183] * 0.5) + (float)(*(float *)&v48 * 0.5)) + -72.0) + -90.0,
(float)((float)(*((float *)&v48 + 1) * 0.5) - (float)(0.5 * v1[184])) + 20.0);
SetupTriggerPopup::createToggleValueControl((int)v1, 513, &v43, (__int64)v51, 0, 0, 1.0, 0);
if ( (v43 & 1) != 0 )
operator delete(v44);
v45.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)20;
strcpy(v45.__r_.__value_.__s.__data_, "ScreenOff:");
sub_100278250((float *)&v52, -100.0, -125.0);
sub_100278350(v51, &v50, &v52);
SetupTriggerPopup::createValueControlAdvanced(
(__int64)v1,
290,
&v45,
(__int64)v51,
0,
1u,
0.60000002,
-1.0,
1.0,
6u,
0,
0,
0x65u,
1u,
3u,
1);
if ( (*(_BYTE *)&v45.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v45.__r_.__value_.__l.__data_);
sub_100278250((float *)&v52, (float)(*(float *)&v48 * 0.5) + -20.0, *((float *)&v50 + 1) + -125.0);
LOBYTE(v51[0]) = 16;
strcpy((char *)v51 + 1, "CenterID");
sub_100278250((float *)&v11, -100.0, 0.0);
sub_100278350((double *)&v49, &v52, &v11);
IDNameInput::create((_DWORD)v1, (_DWORD)v1 + 544, 1, 51, (unsigned int)v51, (unsigned int)&v49, 6, 100, 0, 1);
if ( (LOBYTE(v51[0]) & 1) != 0 )
operator delete(*(void **)&v51[2]);
LOBYTE(v26) = 4;
strcpy((char *)&v26 + 1, "P1");
sub_100278250((float *)&v49, 20.0, 0.0);
sub_100278350(v51, &v52, &v49);
SetupTriggerPopup::createToggleValueControl((int)v1, 138, &v26, (__int64)v51, 0, 0, 0.80000001, 100);
if ( (v26 & 1) != 0 )
operator delete(v27);
LOBYTE(v28) = 4;
strcpy((char *)&v28 + 1, "P2");
sub_100278250((float *)&v49, 80.0, 0.0);
sub_100278350(v51, &v52, &v49);
SetupTriggerPopup::createToggleValueControl((int)v1, 200, &v28, (__int64)v51, 0, 0, 0.80000001, 100);
if ( (v28 & 1) != 0 )
operator delete(v29);
LOBYTE(v46) = 12;
strcpy((char *)&v46 + 1, "Follow");
sub_100278250((float *)&v49, 140.0, 0.0);
sub_100278350(v51, &v52, &v49);
SetupTriggerPopup::createToggleValueControl((int)v1, 190, &v46, (__int64)v51, 0, 0, 0.80000001, 100);
if ( (v46 & 1) != 0 )
operator delete(v47);
v30.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)18;
strcpy(v30.__r_.__value_.__s.__data_, "FadeTime:");
sub_100278250((float *)&v49, -100.0, -185.0);
sub_100278350(v51, &v50, &v49);
SetupTriggerPopup::createValueControlAdvanced(
(__int64)v1,
10,
&v30,
(__int64)v51,
0,
1u,
0.60000002,
0.0,
1.0,
6u,
0,
0,
0x67u,
1u,
2u,
0);
if ( (*(_BYTE *)&v30.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v30.__r_.__value_.__l.__data_);
sub_100278250((float *)&v49, 100.0, -170.0);
sub_100278350(v51, &v50, &v49);
v5 = (__m128)0x3F266666u;
SetupTriggerPopup::createEasingControls((__int64)v1, (__int64)v51, 0, 0x67u, 0.64999998);
*(double *)v5.i64 = (*(double (__fastcall **)(float *, __int64))(*(_QWORD *)v1 + 1464LL))(v1, 188);
v6 = _mm_cvtsi128_si32((__m128i)_mm_cmpeq_ss(v5, (__m128)0LL)) & 1;
v7 = _mm_cmpneq_ss(v5, (__m128)0LL);
(*(void (__fastcall **)(float *, __int64, _QWORD))(*(_QWORD *)v1 + 1352LL))(
v1,
100,
_mm_cvtsi128_si32((__m128i)v7) & 1);
(*(void (__fastcall **)(float *, __int64, _QWORD))(*(_QWORD *)v1 + 1352LL))(v1, 101, v6);
*(double *)v7.i64 = (*(double (__fastcall **)(float *, __int64))(*(_QWORD *)v1 + 1464LL))(v1, 513);
v8.i32[0] = 0;
v9 = _mm_cmpneq_ss(v7, v8);
(*(void (__fastcall **)(float *, __int64, _QWORD))(*(_QWORD *)v1 + 1352LL))(
v1,
103,
_mm_cvtsi128_si32((__m128i)v9) & 1);
*(double *)v9.i64 = (*(double (__fastcall **)(float *, __int64))(*(_QWORD *)v1 + 1464LL))(v1, 513);
v8.i32[0] = 0;
return SetupTriggerPopup::toggleDisableButtons((__int64)v1, _mm_cvtsi128_si32((__m128i)_mm_cmpneq_ss(v9, v8)) & 1);
}