//
// SetupShaderEffectPopup::setupShockWave from 0x9fccdc to 0x9fe26c (5520 bytes)
//
// 2 xrefs:
// > SetupShaderEffectPopup::init @ 0xa086dc
// > ??> @ 0x4a7f0
//
// 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 SetupShaderEffectPopup::setupShockWave(SetupShaderEffectPopup *a1)
{
cocos2d::CCLabelBMFont *v2; // x25
void *v3; // x0
void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x28
void *v5; // x0
void *v6; // x0
cocos2d::CCDirector *v7; // x0
float v8; // s3
float v9; // s4
void *v10; // x0
float v11; // s3
float v12; // s4
void *v13; // x0
float v14; // s3
float v15; // s4
void *v16; // x0
float v17; // s3
float v18; // s4
void *v19; // x0
float v20; // s3
float v21; // s4
void *v22; // x0
float v23; // s3
float v24; // s4
void *v25; // x0
float v26; // s3
float v27; // s4
void *v28; // x0
float v29; // s3
float v30; // s4
void *v31; // x0
void *v32; // x0
void *v33; // x0
void *v34; // x0
void *v35; // x0
float v36; // s3
float v37; // s4
void *v38; // x0
float v39; // s3
float v40; // s4
void *v41; // x0
float v42; // s3
float v43; // s4
void *v44; // x0
void *v45; // x0
void *v46; // x0
void *v47; // x0
float v48; // s3
float v49; // s4
void *v50; // x0
float v51; // s3
float v52; // s4
void *v53; // x0
float v54; // s3
float v55; // s4
void *v56; // x0
float v57; // s2
float v58; // s0
_BOOL4 v59; // w19
void (__fastcall *toggleGroup)(SetupShaderEffectPopup *__hidden, int, bool); // x19
float v61; // s0
void (__fastcall *v62)(SetupShaderEffectPopup *__hidden, int, bool); // x19
float v63; // s0
float v64; // s0
unsigned int *v65; // x1
int v66; // w2
unsigned int *v67; // x1
int v68; // w2
unsigned int *v69; // x1
int v70; // w2
unsigned int *v71; // x1
int v72; // w2
unsigned int *v73; // x1
int v74; // w2
unsigned int *v75; // x1
int v76; // w2
unsigned int *v77; // x1
int v78; // w2
unsigned int *v79; // x1
int v80; // w2
unsigned int *v81; // x1
int v82; // w2
unsigned int *v83; // x1
int v84; // w2
unsigned int *v85; // x1
int v86; // w2
unsigned int *v87; // x1
int v88; // w2
unsigned int *v89; // x1
int v90; // w2
unsigned int *v91; // x1
int v92; // w2
unsigned int *v93; // x1
int v94; // w2
unsigned int *v95; // x1
int v96; // w2
unsigned int *v97; // x1
int v98; // w2
unsigned int *v99; // x1
int v100; // w2
unsigned int *v101; // x1
int v102; // w2
unsigned int *v103; // x1
int v104; // w2
unsigned int *v105; // x1
int v106; // w2
unsigned int *v107; // x1
int v108; // w2
unsigned int *v109; // x1
int v110; // w2
unsigned int *v111; // x21
int v112; // w1
__int64 v113; // [xsp+C8h] [xbp+98h]
float v114; // [xsp+E0h] [xbp+B0h]
float v115; // [xsp+E4h] [xbp+B4h]
cocos2d::CCPoint v116; // [xsp+E8h] [xbp+B8h] BYREF
cocos2d::CCPoint v117; // [xsp+F0h] [xbp+C0h] BYREF
cocos2d::CCPoint v118; // [xsp+F8h] [xbp+C8h] BYREF
cocos2d::CCPoint v119; // [xsp+100h] [xbp+D0h] BYREF
cocos2d::CCPoint v120; // [xsp+108h] [xbp+D8h] BYREF
__int64 v121; // [xsp+110h] [xbp+E0h] BYREF
cocos2d::CCPoint v122; // 0:s0.4,4:s1.4
cocos2d::CCPoint v123; // 0:s0.4,4:s1.4
cocos2d::CCPoint v124; // 0:s0.4,4:s1.4
cocos2d::CCPoint v125; // 0:s0.4,4:s1.4
cocos2d::CCPoint v126; // 0:s0.4,4:s1.4
cocos2d::CCPoint v127; // 0:s0.4,4:s1.4
cocos2d::CCPoint v128; // 0:s0.4,4:s1.4
cocos2d::CCPoint v129; // 0:s0.4,4:s1.4
cocos2d::CCPoint v130; // 0:s0.4,4:s1.4
cocos2d::CCPoint v131; // 0:s0.4,4:s1.4
cocos2d::CCPoint v132; // 0:s0.4,4:s1.4
cocos2d::CCPoint v133; // 0:s0.4,4:s1.4
cocos2d::CCPoint v134; // 0:s0.4,4:s1.4
cocos2d::CCPoint v135; // 0:s0.4,4:s1.4
cocos2d::CCPoint v136; // 0:s0.4,4:s1.4
sub_D153B8((int)&v121, "Setup ShockWave");
v2 = SetupTriggerPopup::addTitle((__int64)a1);
v3 = (void *)(v121 - 24);
if ( (__int64 *)(v121 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v65 = (unsigned int *)(v121 - 8);
do
v66 = __ldaxr(v65);
while ( __stlxr(v66 - 1, v65) );
}
else
{
v66 = *(_DWORD *)(v121 - 8);
*(_DWORD *)(v121 - 8) = v66 - 1;
}
if ( v66 <= 0 )
operator delete(v3);
}
setPosition = v2->setPosition;
v113 = (__int64)v2->getPosition(v2);
cocos2d::CCPoint::CCPoint(&v120, 0.0, 2.0);
cocos2d::CCPoint::operator+(&v121, v113, &v120);
setPosition(v2, (const cocos2d::CCPoint *)&v121);
v2->setScale(v2, 0.4);
sub_D153B8((int)&v120, "ShockWave");
sub_D153B8(
(int)&v121,
"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, 1.0);
v5 = (void *)(v121 - 24);
if ( (__int64 *)(v121 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v67 = (unsigned int *)(v121 - 8);
do
v68 = __ldaxr(v67);
while ( __stlxr(v68 - 1, v67) );
}
else
{
v68 = *(_DWORD *)(v121 - 8);
*(_DWORD *)(v121 - 8) = v68 - 1;
}
if ( v68 <= 0 )
operator delete(v5);
}
v6 = (void *)(*(_QWORD *)&v120 - 24LL);
if ( (__int64 *)(*(_QWORD *)&v120 - 24LL) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v69 = (unsigned int *)(*(_QWORD *)&v120 - 8LL);
do
v70 = __ldaxr(v69);
while ( __stlxr(v70 - 1, v69) );
}
else
{
v70 = *(_DWORD *)(*(_QWORD *)&v120 - 8LL);
*(_DWORD *)(*(_QWORD *)&v120 - 8LL) = v70 - 1;
}
if ( v70 <= 0 )
operator delete(v6);
}
v7 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(v7);
cocos2d::CCPoint::CCPoint(&v116, (float)(v114 * 0.5) + -10.0, (float)(v115 * 0.5) + 110.0);
sub_D153B8((int)&v121, "Speed:");
cocos2d::CCPoint::CCPoint(&v119, -100.0, 0.0);
cocos2d::CCPoint::operator+(&v120, &v116, &v119);
v122.y = 0.0;
v122.x = 0.6;
SetupTriggerPopup::createValueControlAdvanced(
a1,
0xAFu,
v122,
5.0,
v8,
v9,
(std::string)&v121,
&v120,
(InputValueType)0,
Float,
6,
0,
0,
0,
1,
3,
1);
v10 = (void *)(v121 - 24);
if ( (__int64 *)(v121 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v71 = (unsigned int *)(v121 - 8);
do
v72 = __ldaxr(v71);
while ( __stlxr(v72 - 1, v71) );
}
else
{
v72 = *(_DWORD *)(v121 - 8);
*(_DWORD *)(v121 - 8) = v72 - 1;
}
if ( v72 <= 0 )
operator delete(v10);
}
sub_D153B8((int)&v121, "Strength:");
cocos2d::CCPoint::CCPoint(&v119, 100.0, 0.0);
cocos2d::CCPoint::operator+(&v120, &v116, &v119);
v123.x = 0.6;
v123.y = 0.0;
SetupTriggerPopup::createValueControlAdvanced(
a1,
0xB0u,
v123,
1.0,
v11,
v12,
(std::string)&v121,
&v120,
(InputValueType)0,
Float,
6,
0,
0,
0,
1,
3,
1);
v13 = (void *)(v121 - 24);
if ( (__int64 *)(v121 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v73 = (unsigned int *)(v121 - 8);
do
v74 = __ldaxr(v73);
while ( __stlxr(v74 - 1, v73) );
}
else
{
v74 = *(_DWORD *)(v121 - 8);
*(_DWORD *)(v121 - 8) = v74 - 1;
}
if ( v74 <= 0 )
operator delete(v13);
}
sub_D153B8((int)&v121, "Thickness:");
cocos2d::CCPoint::CCPoint(&v119, -100.0, -25.0);
cocos2d::CCPoint::operator+(&v120, &v116, &v119);
v124.x = 0.6;
v124.y = 0.0;
SetupTriggerPopup::createValueControlAdvanced(
a1,
0xB4u,
v124,
5.0,
v14,
v15,
(std::string)&v121,
&v120,
(InputValueType)0,
Float,
6,
0,
0,
0,
1,
3,
1);
v16 = (void *)(v121 - 24);
if ( (__int64 *)(v121 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v75 = (unsigned int *)(v121 - 8);
do
v76 = __ldaxr(v75);
while ( __stlxr(v76 - 1, v75) );
}
else
{
v76 = *(_DWORD *)(v121 - 8);
*(_DWORD *)(v121 - 8) = v76 - 1;
}
if ( v76 <= 0 )
operator delete(v16);
}
sub_D153B8((int)&v121, "WaveW:");
cocos2d::CCPoint::CCPoint(&v119, 100.0, -25.0);
cocos2d::CCPoint::operator+(&v120, &v116, &v119);
v125.x = 0.6;
v125.y = 0.0;
SetupTriggerPopup::createValueControlAdvanced(
a1,
0xB3u,
v125,
5.0,
v17,
v18,
(std::string)&v121,
&v120,
(InputValueType)0,
Float,
6,
0,
0,
0,
1,
3,
1);
v19 = (void *)(v121 - 24);
if ( (__int64 *)(v121 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v77 = (unsigned int *)(v121 - 8);
do
v78 = __ldaxr(v77);
while ( __stlxr(v78 - 1, v77) );
}
else
{
v78 = *(_DWORD *)(v121 - 8);
*(_DWORD *)(v121 - 8) = v78 - 1;
}
if ( v78 <= 0 )
operator delete(v19);
}
sub_D153B8((int)&v121, "FadeIn:");
cocos2d::CCPoint::CCPoint(&v119, -100.0, -50.0);
cocos2d::CCPoint::operator+(&v120, &v116, &v119);
v126.x = 0.6;
v126.y = 0.0;
SetupTriggerPopup::createValueControlAdvanced(
a1,
0xB5u,
v126,
5.0,
v20,
v21,
(std::string)&v121,
&v120,
(InputValueType)0,
Float,
6,
0,
0,
0,
1,
3,
1);
v22 = (void *)(v121 - 24);
if ( (__int64 *)(v121 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v79 = (unsigned int *)(v121 - 8);
do
v80 = __ldaxr(v79);
while ( __stlxr(v80 - 1, v79) );
}
else
{
v80 = *(_DWORD *)(v121 - 8);
*(_DWORD *)(v121 - 8) = v80 - 1;
}
if ( v80 <= 0 )
operator delete(v22);
}
sub_D153B8((int)&v121, "FadeOut:");
cocos2d::CCPoint::CCPoint(&v119, 100.0, -50.0);
cocos2d::CCPoint::operator+(&v120, &v116, &v119);
v127.x = 0.6;
v127.y = 0.0;
SetupTriggerPopup::createValueControlAdvanced(
a1,
0xB6u,
v127,
5.0,
v23,
v24,
(std::string)&v121,
&v120,
(InputValueType)0,
Float,
6,
0,
0,
0,
1,
3,
1);
v25 = (void *)(v121 - 24);
if ( (__int64 *)(v121 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v81 = (unsigned int *)(v121 - 8);
do
v82 = __ldaxr(v81);
while ( __stlxr(v82 - 1, v81) );
}
else
{
v82 = *(_DWORD *)(v121 - 8);
*(_DWORD *)(v121 - 8) = v82 - 1;
}
if ( v82 <= 0 )
operator delete(v25);
}
sub_D153B8((int)&v121, "TimeOff:");
cocos2d::CCPoint::CCPoint(&v119, -100.0, -75.0);
cocos2d::CCPoint::operator+(&v120, &v116, &v119);
v128.x = 0.6;
v128.y = -10.0;
SetupTriggerPopup::createValueControlAdvanced(
a1,
0xB1u,
v128,
10.0,
v26,
v27,
(std::string)&v121,
&v120,
(InputValueType)0,
Float,
6,
0,
0,
0,
1,
3,
1);
v28 = (void *)(v121 - 24);
if ( (__int64 *)(v121 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v83 = (unsigned int *)(v121 - 8);
do
v84 = __ldaxr(v83);
while ( __stlxr(v84 - 1, v83) );
}
else
{
v84 = *(_DWORD *)(v121 - 8);
*(_DWORD *)(v121 - 8) = v84 - 1;
}
if ( v84 <= 0 )
operator delete(v28);
}
sub_D153B8((int)&v121, "MaxSize:");
cocos2d::CCPoint::CCPoint(&v119, 100.0, -75.0);
cocos2d::CCPoint::operator+(&v120, &v116, &v119);
v129.x = 0.6;
v129.y = 0.0;
SetupTriggerPopup::createValueControlAdvanced(
a1,
0x200u,
v129,
1.0,
v29,
v30,
(std::string)&v121,
&v120,
(InputValueType)0,
Float,
6,
0,
0,
0,
1,
3,
1);
v31 = (void *)(v121 - 24);
if ( (__int64 *)(v121 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v85 = (unsigned int *)(v121 - 8);
do
v86 = __ldaxr(v85);
while ( __stlxr(v86 - 1, v85) );
}
else
{
v86 = *(_DWORD *)(v121 - 8);
*(_DWORD *)(v121 - 8) = v86 - 1;
}
if ( v86 <= 0 )
operator delete(v31);
}
cocos2d::CCPoint::CCPoint(&v117, (float)(v114 * 0.5) + -35.0, v116.y - 100.0);
sub_D153B8((int)&v121, "Invert");
cocos2d::CCPoint::CCPoint(&v119, -100.0, 0.0);
cocos2d::CCPoint::operator+(&v120, &v117, &v119);
SetupTriggerPopup::createToggleValueControl(a1, 184, 0.8, (__int64)&v121, &v120, 0, 0, 0);
v32 = (void *)(v121 - 24);
if ( (__int64 *)(v121 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v87 = (unsigned int *)(v121 - 8);
do
v88 = __ldaxr(v87);
while ( __stlxr(v88 - 1, v87) );
}
else
{
v88 = *(_DWORD *)(v121 - 8);
*(_DWORD *)(v121 - 8) = v88 - 1;
}
if ( v88 <= 0 )
operator delete(v32);
}
sub_D153B8((int)&v121, "Target");
cocos2d::CCPoint::CCPoint(&v119, 0.0, 0.0);
cocos2d::CCPoint::operator+(&v120, &v117, &v119);
SetupTriggerPopup::createToggleValueControl(a1, 188, 0.8, (__int64)&v121, &v120, 0, 0, 0);
v33 = (void *)(v121 - 24);
if ( (__int64 *)(v121 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v89 = (unsigned int *)(v121 - 8);
do
v90 = __ldaxr(v89);
while ( __stlxr(v90 - 1, v89) );
}
else
{
v90 = *(_DWORD *)(v121 - 8);
*(_DWORD *)(v121 - 8) = v90 - 1;
}
if ( v90 <= 0 )
operator delete(v33);
}
sub_D153B8((int)&v121, "Relative");
cocos2d::CCPoint::CCPoint(&v119, 100.0, 0.0);
cocos2d::CCPoint::operator+(&v120, &v117, &v119);
SetupTriggerPopup::createToggleValueControl(a1, 514, 0.8, (__int64)&v121, &v120, 0, 0, 0);
v34 = (void *)(v121 - 24);
if ( (__int64 *)(v121 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v91 = (unsigned int *)(v121 - 8);
do
v92 = __ldaxr(v91);
while ( __stlxr(v92 - 1, v91) );
}
else
{
v92 = *(_DWORD *)(v121 - 8);
*(_DWORD *)(v121 - 8) = v92 - 1;
}
if ( v92 <= 0 )
operator delete(v34);
}
sub_D153B8((int)&v121, "Animate");
cocos2d::CCPoint::CCPoint(
&v120,
(float)((float)((float)(a1->m_width * 0.5) + (float)(v114 * 0.5)) - 72.0) - 90.0,
20.0 - (float)((float)(a1->m_height * 0.5) - (float)(v115 * 0.5)));
SetupTriggerPopup::createToggleValueControl(a1, 513, 1.0, (__int64)&v121, &v120, 0, 0, 0);
v35 = (void *)(v121 - 24);
if ( (__int64 *)(v121 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v93 = (unsigned int *)(v121 - 8);
do
v94 = __ldaxr(v93);
while ( __stlxr(v94 - 1, v93) );
}
else
{
v94 = *(_DWORD *)(v121 - 8);
*(_DWORD *)(v121 - 8) = v94 - 1;
}
if ( v94 <= 0 )
operator delete(v35);
}
sub_D153B8((int)&v121, "Screen\nOffX:");
cocos2d::CCPoint::CCPoint(&v119, -100.0, -125.0);
cocos2d::CCPoint::operator+(&v120, &v116, &v119);
v130.x = 0.6;
v130.y = -1.0;
SetupTriggerPopup::createValueControlAdvanced(
a1,
0x122u,
v130,
1.0,
v36,
v37,
(std::string)&v121,
&v120,
(InputValueType)0,
Float,
6,
0,
0,
101,
1,
3,
1);
v38 = (void *)(v121 - 24);
if ( (__int64 *)(v121 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v95 = (unsigned int *)(v121 - 8);
do
v96 = __ldaxr(v95);
while ( __stlxr(v96 - 1, v95) );
}
else
{
v96 = *(_DWORD *)(v121 - 8);
*(_DWORD *)(v121 - 8) = v96 - 1;
}
if ( v96 <= 0 )
operator delete(v38);
}
sub_D153B8((int)&v121, "Screen\nOffY:");
cocos2d::CCPoint::CCPoint(&v119, 100.0, -125.0);
cocos2d::CCPoint::operator+(&v120, &v116, &v119);
v131.x = 0.6;
v131.y = -1.0;
SetupTriggerPopup::createValueControlAdvanced(
a1,
0x123u,
v131,
1.0,
v39,
v40,
(std::string)&v121,
&v120,
(InputValueType)0,
Float,
6,
0,
0,
101,
1,
3,
1);
v41 = (void *)(v121 - 24);
if ( (__int64 *)(v121 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v97 = (unsigned int *)(v121 - 8);
do
v98 = __ldaxr(v97);
while ( __stlxr(v98 - 1, v97) );
}
else
{
v98 = *(_DWORD *)(v121 - 8);
*(_DWORD *)(v121 - 8) = v98 - 1;
}
if ( v98 <= 0 )
operator delete(v41);
}
cocos2d::CCPoint::CCPoint(&v118, (float)(v114 * 0.5) + -20.0, v116.y - 125.0);
sub_D153B8((int)&v121, "CenterID");
cocos2d::CCPoint::CCPoint(&v119, -100.0, 0.0);
cocos2d::CCPoint::operator+(&v120, &v118, &v119);
v132.x = 0.6;
v132.y = 0.0;
SetupTriggerPopup::createValueControlAdvanced(
a1,
0x33u,
v132,
1.0,
v42,
v43,
(std::string)&v121,
&v120,
Float,
Int,
6,
1u,
0,
100,
1,
2,
0);
v44 = (void *)(v121 - 24);
if ( (__int64 *)(v121 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v99 = (unsigned int *)(v121 - 8);
do
v100 = __ldaxr(v99);
while ( __stlxr(v100 - 1, v99) );
}
else
{
v100 = *(_DWORD *)(v121 - 8);
*(_DWORD *)(v121 - 8) = v100 - 1;
}
if ( v100 <= 0 )
operator delete(v44);
}
sub_D153B8((int)&v121, "P1");
cocos2d::CCPoint::CCPoint(&v119, 20.0, 0.0);
cocos2d::CCPoint::operator+(&v120, &v118, &v119);
SetupTriggerPopup::createToggleValueControl(a1, 138, 0.8, (__int64)&v121, &v120, 0, 0, 100);
v45 = (void *)(v121 - 24);
if ( (__int64 *)(v121 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v101 = (unsigned int *)(v121 - 8);
do
v102 = __ldaxr(v101);
while ( __stlxr(v102 - 1, v101) );
}
else
{
v102 = *(_DWORD *)(v121 - 8);
*(_DWORD *)(v121 - 8) = v102 - 1;
}
if ( v102 <= 0 )
operator delete(v45);
}
sub_D153B8((int)&v121, "P2");
cocos2d::CCPoint::CCPoint(&v119, 80.0, 0.0);
cocos2d::CCPoint::operator+(&v120, &v118, &v119);
SetupTriggerPopup::createToggleValueControl(a1, 200, 0.8, (__int64)&v121, &v120, 0, 0, 100);
v46 = (void *)(v121 - 24);
if ( (__int64 *)(v121 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v103 = (unsigned int *)(v121 - 8);
do
v104 = __ldaxr(v103);
while ( __stlxr(v104 - 1, v103) );
}
else
{
v104 = *(_DWORD *)(v121 - 8);
*(_DWORD *)(v121 - 8) = v104 - 1;
}
if ( v104 <= 0 )
operator delete(v46);
}
sub_D153B8((int)&v121, "Follow");
cocos2d::CCPoint::CCPoint(&v119, 140.0, 0.0);
cocos2d::CCPoint::operator+(&v120, &v118, &v119);
SetupTriggerPopup::createToggleValueControl(a1, 190, 0.8, (__int64)&v121, &v120, 0, 0, 100);
v47 = (void *)(v121 - 24);
if ( (__int64 *)(v121 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v105 = (unsigned int *)(v121 - 8);
do
v106 = __ldaxr(v105);
while ( __stlxr(v106 - 1, v105) );
}
else
{
v106 = *(_DWORD *)(v121 - 8);
*(_DWORD *)(v121 - 8) = v106 - 1;
}
if ( v106 <= 0 )
operator delete(v47);
}
sub_D153B8((int)&v121, "Inner:");
cocos2d::CCPoint::CCPoint(&v119, -100.0, -150.0);
cocos2d::CCPoint::operator+(&v120, &v116, &v119);
v133.x = 0.6;
v133.y = 0.0;
SetupTriggerPopup::createValueControlAdvanced(
a1,
0xB7u,
v133,
5.0,
v48,
v49,
(std::string)&v121,
&v120,
(InputValueType)0,
Float,
6,
0,
0,
102,
1,
3,
1);
v50 = (void *)(v121 - 24);
if ( (__int64 *)(v121 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v107 = (unsigned int *)(v121 - 8);
do
v108 = __ldaxr(v107);
while ( __stlxr(v108 - 1, v107) );
}
else
{
v108 = *(_DWORD *)(v121 - 8);
*(_DWORD *)(v121 - 8) = v108 - 1;
}
if ( v108 <= 0 )
operator delete(v50);
}
sub_D153B8((int)&v121, "Outer:");
cocos2d::CCPoint::CCPoint(&v119, 100.0, -150.0);
cocos2d::CCPoint::operator+(&v120, &v116, &v119);
v134.x = 0.6;
v134.y = 0.0;
SetupTriggerPopup::createValueControlAdvanced(
a1,
0xBFu,
v134,
5.0,
v51,
v52,
(std::string)&v121,
&v120,
(InputValueType)0,
Float,
6,
0,
0,
102,
1,
3,
1);
v53 = (void *)(v121 - 24);
if ( (__int64 *)(v121 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v109 = (unsigned int *)(v121 - 8);
do
v110 = __ldaxr(v109);
while ( __stlxr(v110 - 1, v109) );
}
else
{
v110 = *(_DWORD *)(v121 - 8);
*(_DWORD *)(v121 - 8) = v110 - 1;
}
if ( v110 <= 0 )
operator delete(v53);
}
sub_D153B8((int)&v121, "FadeTime:");
cocos2d::CCPoint::CCPoint(&v119, -100.0, -185.0);
cocos2d::CCPoint::operator+(&v120, &v116, &v119);
v135.x = 0.6;
v135.y = 0.0;
SetupTriggerPopup::createValueControlAdvanced(
a1,
0xAu,
v135,
1.0,
v54,
v55,
(std::string)&v121,
&v120,
(InputValueType)0,
Float,
6,
0,
0,
103,
1,
2,
0);
v56 = (void *)(v121 - 24);
if ( (__int64 *)(v121 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v111 = (unsigned int *)(v121 - 8);
do
v112 = __ldaxr(v111);
while ( __stlxr(v112 - 1, v111) );
}
else
{
v112 = *(_DWORD *)(v121 - 8);
*(_DWORD *)(v121 - 8) = v112 - 1;
}
if ( v112 <= 0 )
operator delete(v56);
}
cocos2d::CCPoint::CCPoint(&v120, 100.0, -170.0);
cocos2d::CCPoint::operator+(&v121, &v116, &v120);
v136.x = 0.65;
SetupTriggerPopup::createEasingControls(a1, v136, v57, (int)&v121, 0);
v58 = a1->getValue(a1, 188);
v59 = v58 != 0.0;
a1->toggleGroup(a1, 100, v58 != 0.0);
a1->toggleGroup(a1, 101, !v59);
toggleGroup = a1->toggleGroup;
v61 = a1->getValue(a1, 184);
toggleGroup(a1, 102, v61 != 0.0);
v62 = a1->toggleGroup;
v63 = a1->getValue(a1, 513);
v62(a1, 103, v63 != 0.0);
v64 = a1->getValue(a1, 513);
SetupTriggerPopup::toggleDisableButtons(a1, v64 != 0.0);
}