//
// SetupAreaAnimTriggerPopup::init from 0xa105cc to 0xa12554 (8072 bytes)
//
// 2 xrefs:
// > SetupAreaAnimTriggerPopup::create @ 0xa12770
// > ??> @ 0x9d110
//
// 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
//
bool SetupAreaAnimTriggerPopup::init(
SetupAreaAnimTriggerPopup *a1,
EnterEffectObject *a2,
cocos2d::CCArray *a3,
int a4)
{
bool v5; // w27
char *v7; // x0
__int64 v8; // x2
__int64 v9; // x3
__int64 v10; // x4
__int64 v11; // x5
const char *v12; // x6
char *v13; // x0
char *v14; // x0
void *v15; // x0
cocos2d::CCDirector *v16; // x0
char *v17; // x0
char *v18; // x0
char *v19; // x0
char *v20; // x0
char *v21; // x0
char *v22; // x0
char *v23; // x0
char *v24; // x0
float v25; // s3
float v26; // s4
char *v27; // x0
char *v28; // x0
char *v29; // x0
float v30; // s3
float v31; // s4
char *v32; // x1
char *v33; // x0
char *v34; // x0
char *v35; // x21
char *v36; // x19
char *v37; // x0
char *v38; // x0
char *v39; // x0
unsigned int *v40; // x21
int v41; // w0
char *v42; // x0
unsigned int *v43; // x21
char *v44; // x0
char *v45; // x0
char *v46; // x0
char *v47; // x0
char *v48; // x0
char *v49; // x0
char *v50; // x0
char *v51; // x0
char *v52; // x0
char *v53; // x19
cocos2d::CCObject *v54; // x0
long double v55; // q0
char *v56; // x0
cocos2d::CCSprite *v57; // x0
CCMenuItemSpriteExtra *v58; // x0
cocos2d::CCMenu *m_buttonMenu; // x2
CCMenuItemSpriteExtra *m_hsvButton; // x28
CCMenuItemSpriteExtra_vtbl *v61; // x1
unsigned int *v62; // x21
float v63; // s3
float v64; // s4
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
unsigned int *v100; // x1
int v101; // w2
unsigned int *v102; // x21
int v103; // w0
unsigned int *v104; // x1
int v105; // w2
unsigned int *v106; // x1
int v107; // w2
unsigned int *v108; // x1
int v109; // w2
unsigned int *v110; // x1
int v111; // w2
unsigned int *v112; // x1
int v113; // w2
unsigned int *v114; // x1
int v115; // w2
unsigned int *v116; // x1
int v117; // w2
unsigned int *v118; // x1
int v119; // w2
unsigned int *v120; // x21
unsigned int *v121; // x1
int v122; // w2
unsigned int *v123; // x1
int v124; // w2
unsigned int *v125; // x1
int v126; // w2
unsigned int *v127; // x1
int v128; // w2
unsigned int *v129; // x1
int v130; // w2
cocos2d::CCNode *v131[2]; // [xsp+30h] [xbp+0h] BYREF
cocos2d::CCNode *v132; // [xsp+D0h] [xbp+A0h]
void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // [xsp+D8h] [xbp+A8h]
float v134; // [xsp+F0h] [xbp+C0h]
float v135; // [xsp+F4h] [xbp+C4h]
cocos2d::CCPoint v136; // [xsp+F8h] [xbp+C8h] BYREF
cocos2d::CCPoint v137; // [xsp+100h] [xbp+D0h] BYREF
cocos2d::CCPoint v138; // [xsp+108h] [xbp+D8h] BYREF
char *v139; // [xsp+110h] [xbp+E0h] BYREF
cocos2d::CCPoint v140; // 0:kr08_8.8
cocos2d::SEL_MenuHandler v141; // 0:x2.16
cocos2d::CCPoint v142; // 0:s0.4,4:s1.4
cocos2d::CCPoint v143; // 0:s0.4,4:s1.4
cocos2d::CCPoint v144; // 0:s0.4,4:s1.4
LODWORD(setPosition) = a4;
v5 = SetupTriggerPopup::init(a1, a2, a3, 420.0, 280.0, 1);
if ( !v5 )
return v5;
a1->determineStartValues(a1);
sub_D153B8((unsigned int)v131 + 224, "Area Anim Trigger");
SetupTriggerPopup::addTitle((__int64)a1);
v7 = v139 - 24;
if ( v139 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v71 = (unsigned int *)(v139 - 8);
do
v72 = __ldaxr(v71);
while ( __stlxr(v72 - 1, v71) );
}
else
{
v72 = *((_DWORD *)v139 - 2);
*((_DWORD *)v139 - 2) = v72 - 1;
}
if ( v72 <= 0 )
operator delete(v7);
}
sub_D153B8((unsigned int)v131 + 224, "OK");
SetupTriggerPopup::addCloseButton((__int64)a1, (ButtonSprite **)&v139, v8, v9, v10, v11, v12);
v13 = v139 - 24;
if ( v139 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v79 = (unsigned int *)(v139 - 8);
do
v80 = __ldaxr(v79);
while ( __stlxr(v80 - 1, v79) );
}
else
{
v80 = *((_DWORD *)v139 - 2);
*((_DWORD *)v139 - 2) = v80 - 1;
}
if ( v80 <= 0 )
operator delete(v13);
}
sub_D153B8((int)&v138, "Help");
sub_D153B8(
(int)&v139,
"Edits the properties of an Area trigger.\n"
"Use Group ID or Effect ID to link to the correct one.");
SetupTriggerPopup::addHelpButton((__int64)a1, 1.0);
v14 = v139 - 24;
if ( v139 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v75 = (unsigned int *)(v139 - 8);
do
v76 = __ldaxr(v75);
while ( __stlxr(v76 - 1, v75) );
}
else
{
v76 = *((_DWORD *)v139 - 2);
*((_DWORD *)v139 - 2) = v76 - 1;
}
if ( v76 <= 0 )
operator delete(v14);
}
v15 = (void *)(*(_QWORD *)&v138 - 24LL);
if ( (__int64 *)(*(_QWORD *)&v138 - 24LL) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v87 = (unsigned int *)(*(_QWORD *)&v138 - 8LL);
do
v88 = __ldaxr(v87);
while ( __stlxr(v88 - 1, v87) );
}
else
{
v88 = *(_DWORD *)(*(_QWORD *)&v138 - 8LL);
*(_DWORD *)(*(_QWORD *)&v138 - 8LL) = v88 - 1;
}
if ( v88 <= 0 )
operator delete(v15);
}
SetupTriggerPopup::createMultiTriggerItemsDefaultHorizontal(a1);
v16 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(v16);
cocos2d::CCPoint::CCPoint(&v136, v134 * 0.5, (float)(v135 * 0.5) + 96.0);
sub_D153B8((int)&v139, "Length");
cocos2d::CCPoint::CCPoint(&v137, -90.0, 0.0);
cocos2d::CCPoint::operator+(&v138, &v136, &v137);
SetupAreaAnimTriggerPopup::createValueControlAdvancedAnim(
a1,
0xDEu,
0.6,
0.0,
100.0,
(__int64)&v139,
&v138,
0,
Int,
6,
0,
0,
0,
1);
v17 = v139 - 24;
if ( v139 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v83 = (unsigned int *)(v139 - 8);
do
v84 = __ldaxr(v83);
while ( __stlxr(v84 - 1, v83) );
}
else
{
v84 = *((_DWORD *)v139 - 2);
*((_DWORD *)v139 - 2) = v84 - 1;
}
if ( v84 <= 0 )
operator delete(v17);
}
sub_D153B8((int)&v139, "+-");
cocos2d::CCPoint::CCPoint(&v137, 90.0, 0.0);
cocos2d::CCPoint::operator+(&v138, &v136, &v137);
SetupAreaAnimTriggerPopup::createValueControlAdvancedAnim(
a1,
0xDFu,
0.6,
0.0,
100.0,
(__int64)&v139,
&v138,
0,
Int,
6,
0,
0,
0,
1);
v18 = v139 - 24;
if ( v139 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v91 = (unsigned int *)(v139 - 8);
do
v92 = __ldaxr(v91);
while ( __stlxr(v92 - 1, v91) );
}
else
{
v92 = *((_DWORD *)v139 - 2);
*((_DWORD *)v139 - 2) = v92 - 1;
}
if ( v92 <= 0 )
operator delete(v18);
}
sub_D153B8((int)&v139, "Offset");
cocos2d::CCPoint::CCPoint(&v137, -90.0, -22.0);
cocos2d::CCPoint::operator+(&v138, &v136, &v137);
SetupAreaAnimTriggerPopup::createValueControlAdvancedAnim(
a1,
0xDCu,
0.6,
-100.0,
100.0,
(__int64)&v139,
&v138,
0,
Int,
6,
0,
0,
0,
1);
v19 = v139 - 24;
if ( v139 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v73 = (unsigned int *)(v139 - 8);
do
v74 = __ldaxr(v73);
while ( __stlxr(v74 - 1, v73) );
}
else
{
v74 = *((_DWORD *)v139 - 2);
*((_DWORD *)v139 - 2) = v74 - 1;
}
if ( v74 <= 0 )
operator delete(v19);
}
sub_D153B8((int)&v139, "+-");
cocos2d::CCPoint::CCPoint(&v137, 90.0, -22.0);
cocos2d::CCPoint::operator+(&v138, &v136, &v137);
SetupAreaAnimTriggerPopup::createValueControlAdvancedAnim(
a1,
0xDDu,
0.6,
-100.0,
100.0,
(__int64)&v139,
&v138,
0,
Int,
6,
0,
0,
0,
1);
v20 = v139 - 24;
if ( v139 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v89 = (unsigned int *)(v139 - 8);
do
v90 = __ldaxr(v89);
while ( __stlxr(v90 - 1, v89) );
}
else
{
v90 = *((_DWORD *)v139 - 2);
*((_DWORD *)v139 - 2) = v90 - 1;
}
if ( v90 <= 0 )
operator delete(v20);
}
sub_D153B8((int)&v139, "OffsetY");
cocos2d::CCPoint::CCPoint(&v137, -90.0, -44.0);
cocos2d::CCPoint::operator+(&v138, &v136, &v137);
SetupAreaAnimTriggerPopup::createValueControlAdvancedAnim(
a1,
0xFCu,
0.6,
-100.0,
100.0,
(__int64)&v139,
&v138,
0,
Int,
6,
0,
0,
0,
1);
v21 = v139 - 24;
if ( v139 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v81 = (unsigned int *)(v139 - 8);
do
v82 = __ldaxr(v81);
while ( __stlxr(v82 - 1, v81) );
}
else
{
v82 = *((_DWORD *)v139 - 2);
*((_DWORD *)v139 - 2) = v82 - 1;
}
if ( v82 <= 0 )
operator delete(v21);
}
sub_D153B8((int)&v139, "+-");
cocos2d::CCPoint::CCPoint(&v137, 90.0, -44.0);
cocos2d::CCPoint::operator+(&v138, &v136, &v137);
SetupAreaAnimTriggerPopup::createValueControlAdvancedAnim(
a1,
0xFDu,
0.6,
-100.0,
100.0,
(__int64)&v139,
&v138,
0,
Int,
6,
0,
0,
0,
1);
v22 = v139 - 24;
if ( v139 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v95 = (unsigned int *)(v139 - 8);
do
v96 = __ldaxr(v95);
while ( __stlxr(v96 - 1, v95) );
}
else
{
v96 = *((_DWORD *)v139 - 2);
*((_DWORD *)v139 - 2) = v96 - 1;
}
if ( v96 <= 0 )
operator delete(v22);
}
sub_D153B8((int)&v139, "ModFront");
cocos2d::CCPoint::CCPoint(&v137, -90.0, -66.0);
cocos2d::CCPoint::operator+(&v138, &v136, &v137);
SetupAreaAnimTriggerPopup::createValueControlAdvancedAnim(
a1,
0x107u,
0.6,
0.0,
10.0,
(__int64)&v139,
&v138,
0,
Float,
6,
0,
0,
0,
1);
v23 = v139 - 24;
if ( v139 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v77 = (unsigned int *)(v139 - 8);
do
v78 = __ldaxr(v77);
while ( __stlxr(v78 - 1, v77) );
}
else
{
v78 = *((_DWORD *)v139 - 2);
*((_DWORD *)v139 - 2) = v78 - 1;
}
if ( v78 <= 0 )
operator delete(v23);
}
sub_D153B8((int)&v139, "BK");
cocos2d::CCPoint::CCPoint(&v137, 90.0, -66.0);
cocos2d::CCPoint::operator+(&v138, &v136, &v137);
SetupAreaAnimTriggerPopup::createValueControlAdvancedAnim(
a1,
0x108u,
0.6,
0.0,
10.0,
(__int64)&v139,
&v138,
0,
Float,
6,
0,
0,
0,
1);
v24 = v139 - 24;
if ( v139 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v93 = (unsigned int *)(v139 - 8);
do
v94 = __ldaxr(v93);
while ( __stlxr(v94 - 1, v93) );
}
else
{
v94 = *((_DWORD *)v139 - 2);
*((_DWORD *)v139 - 2) = v94 - 1;
}
if ( v94 <= 0 )
operator delete(v24);
}
sub_D153B8((int)&v139, "Duration");
cocos2d::CCPoint::CCPoint(&v137, -90.0, -88.0);
cocos2d::CCPoint::operator+(&v138, &v136, &v137);
v142.x = 0.6;
v142.y = 0.0;
SetupTriggerPopup::createValueControlAdvanced(
a1,
0xAu,
v142,
2.0,
v25,
v26,
(std::string)&v139,
&v138,
(InputValueType)0,
Float,
6,
0,
0,
0,
1,
2,
0);
v27 = v139 - 24;
if ( v139 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v85 = (unsigned int *)(v139 - 8);
do
v86 = __ldaxr(v85);
while ( __stlxr(v86 - 1, v85) );
}
else
{
v86 = *((_DWORD *)v139 - 2);
*((_DWORD *)v139 - 2) = v86 - 1;
}
if ( v86 <= 0 )
operator delete(v27);
}
sub_D153B8((int)&v139, "DeadZ");
cocos2d::CCPoint::CCPoint(&v137, 90.0, -88.0);
cocos2d::CCPoint::operator+(&v138, &v136, &v137);
SetupAreaAnimTriggerPopup::createValueControlAdvancedAnim(
a1,
0x11Au,
0.6,
0.0,
1.0,
(__int64)&v139,
&v138,
0,
Float,
6,
0,
0,
0,
1);
v28 = v139 - 24;
if ( v139 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v67 = (unsigned int *)(v139 - 8);
do
v68 = __ldaxr(v67);
while ( __stlxr(v68 - 1, v67) );
}
else
{
v68 = *((_DWORD *)v139 - 2);
*((_DWORD *)v139 - 2) = v68 - 1;
}
if ( v68 <= 0 )
operator delete(v28);
}
sub_D153B8((int)&v139, "Easing");
cocos2d::CCPoint::CCPoint(&v137, -112.0, -154.0);
cocos2d::CCPoint::operator+(&v138, &v136, &v137);
SetupTriggerPopup::createCustomEasingControls(a1, (int)&v139, &v138, 242, 243, 0, 0.7, 0);
v29 = v139 - 24;
if ( v139 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v69 = (unsigned int *)(v139 - 8);
do
v70 = __ldaxr(v69);
while ( __stlxr(v70 - 1, v69) );
}
else
{
v70 = *((_DWORD *)v139 - 2);
*((_DWORD *)v139 - 2) = v70 - 1;
}
if ( v70 <= 0 )
operator delete(v29);
}
if ( (_DWORD)setPosition != 3011 )
{
sub_D153B8((int)&v139, "GroupID");
cocos2d::CCPoint::CCPoint(&v137, 110.0, -176.0);
cocos2d::CCPoint::operator+(&v138, &v136, &v137);
v143.x = 0.6;
v143.y = 0.0;
SetupTriggerPopup::createValueControlAdvanced(
a1,
0x33u,
v143,
100.0,
v30,
v31,
(std::string)&v139,
&v138,
Float,
Uint,
6,
1u,
1,
0,
0,
2,
0);
v32 = v139;
v33 = v139 - 24;
if ( v139 - 24 == (char *)&qword_124B6B0 )
goto LABEL_20;
if ( &pthread_create )
{
v99 = (unsigned int *)(v139 - 8);
do
v66 = __ldaxr(v99);
while ( __stlxr(v66 - 1, v99) );
goto LABEL_67;
}
goto LABEL_155;
}
sub_D153B8((int)&v139, "GroupID");
cocos2d::CCPoint::CCPoint(&v137, 90.0, -176.0);
cocos2d::CCPoint::operator+(&v138, &v136, &v137);
v144.x = 0.6;
v144.y = 0.0;
SetupTriggerPopup::createValueControlAdvanced(
a1,
0x33u,
v144,
100.0,
v63,
v64,
(std::string)&v139,
&v138,
Float,
Uint,
6,
1u,
1,
0,
1,
2,
0);
v32 = v139;
v33 = v139 - 24;
if ( v139 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v65 = (unsigned int *)(v139 - 8);
do
v66 = __ldaxr(v65);
while ( __stlxr(v66 - 1, v65) );
LABEL_67:
if ( v66 <= 0 )
operator delete(v33);
goto LABEL_20;
}
LABEL_155:
v66 = *((_DWORD *)v32 - 2);
*((_DWORD *)v32 - 2) = v66 - 1;
goto LABEL_67;
}
LABEL_20:
sub_D153B8((int)&v139, "Use\nEID");
cocos2d::CCPoint::CCPoint(
&v138,
(float)(v134 * 0.5) + 60.0,
20.0 - (float)((float)(a1->m_height * 0.5) - (float)(v135 * 0.5)));
SetupTriggerPopup::createToggleValueControl(a1, 355, 1.0, (__int64)&v139, &v138, 0, 0, 0);
v34 = v139 - 24;
if ( v139 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v97 = (unsigned int *)(v139 - 8);
do
v98 = __ldaxr(v97);
while ( __stlxr(v98 - 1, v97) );
}
else
{
v98 = *((_DWORD *)v139 - 2);
*((_DWORD *)v139 - 2) = v98 - 1;
}
if ( v98 <= 0 )
operator delete(v34);
}
switch ( (int)setPosition )
{
case 3011:
sub_D153B8((int)&v139, "MoveDist");
cocos2d::CCPoint::CCPoint(&v137, -90.0, -110.0);
cocos2d::CCPoint::operator+(&v138, &v136, &v137);
SetupAreaAnimTriggerPopup::createValueControlAdvancedAnim(
a1,
0xDAu,
0.6,
0.0,
100.0,
(__int64)&v139,
&v138,
0,
Int,
6,
0,
0,
1,
1);
v44 = v139 - 24;
if ( v139 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v129 = (unsigned int *)(v139 - 8);
do
v130 = __ldaxr(v129);
while ( __stlxr(v130 - 1, v129) );
}
else
{
v130 = *((_DWORD *)v139 - 2);
*((_DWORD *)v139 - 2) = v130 - 1;
}
if ( v130 <= 0 )
operator delete(v44);
}
sub_D153B8((int)&v139, "+-");
cocos2d::CCPoint::CCPoint(&v137, 90.0, -110.0);
cocos2d::CCPoint::operator+(&v138, &v136, &v137);
SetupAreaAnimTriggerPopup::createValueControlAdvancedAnim(
a1,
0xDBu,
0.6,
0.0,
100.0,
(__int64)&v139,
&v138,
0,
Int,
6,
0,
0,
1,
1);
v45 = v139 - 24;
if ( v139 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v123 = (unsigned int *)(v139 - 8);
do
v124 = __ldaxr(v123);
while ( __stlxr(v124 - 1, v123) );
}
else
{
v124 = *((_DWORD *)v139 - 2);
*((_DWORD *)v139 - 2) = v124 - 1;
}
if ( v124 <= 0 )
operator delete(v45);
}
sub_D153B8((int)&v139, "MoveAngle");
cocos2d::CCPoint::CCPoint(&v137, -90.0, -132.0);
cocos2d::CCPoint::operator+(&v138, &v136, &v137);
LODWORD(setPosition) = 1128792064;
SetupAreaAnimTriggerPopup::createValueControlAdvancedAnim(
a1,
0xE7u,
0.6,
0.0,
200.0,
(__int64)&v139,
&v138,
0,
Int,
6,
0,
0,
1,
1);
v46 = v139 - 24;
if ( v139 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v127 = (unsigned int *)(v139 - 8);
do
v128 = __ldaxr(v127);
while ( __stlxr(v128 - 1, v127) );
}
else
{
v128 = *((_DWORD *)v139 - 2);
*((_DWORD *)v139 - 2) = v128 - 1;
}
if ( v128 <= 0 )
operator delete(v46);
}
sub_D153B8((int)&v139, "+-");
cocos2d::CCPoint::CCPoint(&v137, 90.0, -132.0);
cocos2d::CCPoint::operator+(&v138, &v136, &v137);
SetupAreaAnimTriggerPopup::createValueControlAdvancedAnim(
a1,
0xE8u,
0.6,
0.0,
*(float *)&setPosition,
(__int64)&v139,
&v138,
0,
Int,
6,
0,
0,
1,
1);
v47 = v139 - 24;
if ( v139 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v118 = (unsigned int *)(v139 - 8);
do
v119 = __ldaxr(v118);
while ( __stlxr(v119 - 1, v118) );
}
else
{
v119 = *((_DWORD *)v139 - 2);
*((_DWORD *)v139 - 2) = v119 - 1;
}
if ( v119 <= 0 )
operator delete(v47);
}
sub_D153B8((int)&v139, "XY\nMode");
cocos2d::CCPoint::CCPoint(
&v138,
(float)((float)(a1->m_width * 0.5) + (float)(v134 * 0.5)) - 58.0,
(float)((float)(a1->m_height * 0.5) + (float)(v135 * 0.5)) - 20.0);
SetupTriggerPopup::createToggleValueControl(a1, 241, 1.0, (__int64)&v139, &v138, 0, 0, 0);
v48 = v139 - 24;
if ( v139 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v112 = (unsigned int *)(v139 - 8);
do
v113 = __ldaxr(v112);
while ( __stlxr(v113 - 1, v112) );
}
else
{
v113 = *((_DWORD *)v139 - 2);
*((_DWORD *)v139 - 2) = v113 - 1;
}
if ( v113 <= 0 )
operator delete(v48);
}
sub_D153B8((int)&v139, "RFade");
cocos2d::CCPoint::CCPoint(&v137, 90.0, -154.0);
cocos2d::CCPoint::operator+(&v138, &v136, &v137);
SetupAreaAnimTriggerPopup::createValueControlAdvancedAnim(
a1,
0x120u,
0.6,
0.0,
60.0,
(__int64)&v139,
&v138,
0,
Float,
6,
0,
0,
1,
1);
v49 = v139 - 24;
if ( v139 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v108 = (unsigned int *)(v139 - 8);
do
v109 = __ldaxr(v108);
while ( __stlxr(v109 - 1, v108) );
}
else
{
v109 = *((_DWORD *)v139 - 2);
*((_DWORD *)v139 - 2) = v109 - 1;
}
if ( v109 <= 0 )
operator delete(v49);
}
sub_D153B8((int)&v139, "MoveX");
cocos2d::CCPoint::CCPoint(&v137, -90.0, -110.0);
cocos2d::CCPoint::operator+(&v138, &v136, &v137);
SetupAreaAnimTriggerPopup::createValueControlAdvancedAnim(
a1,
0xEDu,
0.6,
0.0,
100.0,
(__int64)&v139,
&v138,
0,
Int,
6,
0,
0,
2,
1);
v50 = v139 - 24;
if ( v139 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v110 = (unsigned int *)(v139 - 8);
do
v111 = __ldaxr(v110);
while ( __stlxr(v111 - 1, v110) );
}
else
{
v111 = *((_DWORD *)v139 - 2);
*((_DWORD *)v139 - 2) = v111 - 1;
}
if ( v111 <= 0 )
operator delete(v50);
}
sub_D153B8((int)&v139, "+-");
cocos2d::CCPoint::CCPoint(&v137, 90.0, -110.0);
cocos2d::CCPoint::operator+(&v138, &v136, &v137);
SetupAreaAnimTriggerPopup::createValueControlAdvancedAnim(
a1,
0xEEu,
0.6,
0.0,
100.0,
(__int64)&v139,
&v138,
0,
Int,
6,
0,
0,
2,
1);
v51 = v139 - 24;
if ( v139 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v106 = (unsigned int *)(v139 - 8);
do
v107 = __ldaxr(v106);
while ( __stlxr(v107 - 1, v106) );
}
else
{
v107 = *((_DWORD *)v139 - 2);
*((_DWORD *)v139 - 2) = v107 - 1;
}
if ( v107 <= 0 )
operator delete(v51);
}
sub_D153B8((int)&v139, "MoveY");
cocos2d::CCPoint::CCPoint(&v137, -90.0, -132.0);
cocos2d::CCPoint::operator+(&v138, &v136, &v137);
SetupAreaAnimTriggerPopup::createValueControlAdvancedAnim(
a1,
0xEFu,
0.6,
0.0,
*(float *)&setPosition,
(__int64)&v139,
&v138,
0,
Int,
6,
0,
0,
2,
1);
v52 = v139 - 24;
if ( v139 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v104 = (unsigned int *)(v139 - 8);
do
v105 = __ldaxr(v104);
while ( __stlxr(v105 - 1, v104) );
}
else
{
v105 = *((_DWORD *)v139 - 2);
*((_DWORD *)v139 - 2) = v105 - 1;
}
if ( v105 <= 0 )
operator delete(v52);
}
sub_D153B8((int)&v139, "+-");
cocos2d::CCPoint::CCPoint(&v137, 90.0, -132.0);
cocos2d::CCPoint::operator+(&v138, &v136, &v137);
SetupAreaAnimTriggerPopup::createValueControlAdvancedAnim(
a1,
0xF0u,
0.6,
0.0,
*(float *)&setPosition,
(__int64)&v139,
&v138,
0,
Int,
6,
0,
0,
2,
1);
v53 = v139 - 24;
if ( v139 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v102 = (unsigned int *)(v139 - 8);
do
v103 = __ldaxr(v102);
while ( __stlxr(v103 - 1, v102) );
}
else
{
v103 = *((_DWORD *)v139 - 2);
*((_DWORD *)v139 - 2) = v103 - 1;
}
if ( v103 <= 0 )
operator delete(v53);
}
a1->updateDefaultTriggerValues(a1);
goto LABEL_52;
case 3012:
sub_D153B8((int)&v139, "Rotation");
cocos2d::CCPoint::CCPoint(&v137, -90.0, -110.0);
cocos2d::CCPoint::operator+(&v138, &v136, &v137);
SetupAreaAnimTriggerPopup::createValueControlAdvancedAnim(
a1,
0x10Eu,
0.6,
-360.0,
360.0,
(__int64)&v139,
&v138,
0,
Float,
6,
0,
0,
0,
1);
v42 = v139 - 24;
if ( v139 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v114 = (unsigned int *)(v139 - 8);
do
v115 = __ldaxr(v114);
while ( __stlxr(v115 - 1, v114) );
}
else
{
v115 = *((_DWORD *)v139 - 2);
*((_DWORD *)v139 - 2) = v115 - 1;
}
if ( v115 <= 0 )
operator delete(v42);
}
sub_D153B8((int)&v139, "+-");
cocos2d::CCPoint::CCPoint(&v137, 90.0, -110.0);
cocos2d::CCPoint::operator+(&v138, &v136, &v137);
SetupAreaAnimTriggerPopup::createValueControlAdvancedAnim(
a1,
0x10Fu,
0.6,
0.0,
180.0,
(__int64)&v139,
&v138,
0,
Float,
6,
0,
0,
0,
1);
v35 = v139;
v36 = v139 - 24;
if ( v139 - 24 == (char *)&qword_124B6B0 )
goto LABEL_26;
if ( !&pthread_create )
goto LABEL_172;
v43 = (unsigned int *)(v139 - 8);
do
v41 = __ldaxr(v43);
while ( __stlxr(v41 - 1, v43) );
break;
case 3013:
sub_D153B8((int)&v139, "ScaleX");
cocos2d::CCPoint::CCPoint(&v137, -90.0, -110.0);
cocos2d::CCPoint::operator+(&v138, &v136, &v137);
SetupAreaAnimTriggerPopup::createValueControlAdvancedAnim(
a1,
0xE9u,
0.6,
0.0,
100.0,
(__int64)&v139,
&v138,
0,
Float,
6,
0,
0,
0,
1);
v37 = v139 - 24;
if ( v139 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v125 = (unsigned int *)(v139 - 8);
do
v126 = __ldaxr(v125);
while ( __stlxr(v126 - 1, v125) );
}
else
{
v126 = *((_DWORD *)v139 - 2);
*((_DWORD *)v139 - 2) = v126 - 1;
}
if ( v126 <= 0 )
operator delete(v37);
}
sub_D153B8((int)&v139, "+-");
cocos2d::CCPoint::CCPoint(&v137, 90.0, -110.0);
cocos2d::CCPoint::operator+(&v138, &v136, &v137);
SetupAreaAnimTriggerPopup::createValueControlAdvancedAnim(
a1,
0xEAu,
0.6,
0.0,
100.0,
(__int64)&v139,
&v138,
0,
Float,
6,
0,
0,
0,
1);
v38 = v139 - 24;
if ( v139 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v116 = (unsigned int *)(v139 - 8);
do
v117 = __ldaxr(v116);
while ( __stlxr(v117 - 1, v116) );
}
else
{
v117 = *((_DWORD *)v139 - 2);
*((_DWORD *)v139 - 2) = v117 - 1;
}
if ( v117 <= 0 )
operator delete(v38);
}
sub_D153B8((int)&v139, "ScaleY");
cocos2d::CCPoint::CCPoint(&v137, -90.0, -132.0);
cocos2d::CCPoint::operator+(&v138, &v136, &v137);
LODWORD(setPosition) = 1128792064;
SetupAreaAnimTriggerPopup::createValueControlAdvancedAnim(
a1,
0xEBu,
0.6,
0.0,
200.0,
(__int64)&v139,
&v138,
0,
Float,
6,
0,
0,
0,
1);
v39 = v139 - 24;
if ( v139 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v121 = (unsigned int *)(v139 - 8);
do
v122 = __ldaxr(v121);
while ( __stlxr(v122 - 1, v121) );
}
else
{
v122 = *((_DWORD *)v139 - 2);
*((_DWORD *)v139 - 2) = v122 - 1;
}
if ( v122 <= 0 )
operator delete(v39);
}
sub_D153B8((int)&v139, "+-");
cocos2d::CCPoint::CCPoint(&v137, 90.0, -132.0);
cocos2d::CCPoint::operator+(&v138, &v136, &v137);
SetupAreaAnimTriggerPopup::createValueControlAdvancedAnim(
a1,
0xECu,
0.6,
0.0,
*(float *)&setPosition,
(__int64)&v139,
&v138,
0,
Float,
6,
0,
0,
0,
1);
v35 = v139;
v36 = v139 - 24;
if ( v139 - 24 == (char *)&qword_124B6B0 )
goto LABEL_26;
if ( !&pthread_create )
goto LABEL_172;
v40 = (unsigned int *)(v139 - 8);
do
v41 = __ldaxr(v40);
while ( __stlxr(v41 - 1, v40) );
break;
case 3014:
sub_D153B8((int)&v139, "Opacity");
cocos2d::CCPoint::CCPoint(&v137, -90.0, -110.0);
cocos2d::CCPoint::operator+(&v138, &v136, &v137);
SetupAreaAnimTriggerPopup::createValueControlAdvancedAnim(
a1,
0x113u,
0.6,
0.0,
1.0,
(__int64)&v139,
&v138,
0,
Float,
6,
0,
0,
0,
1);
v35 = v139;
v36 = v139 - 24;
if ( v139 - 24 == (char *)&qword_124B6B0 )
goto LABEL_26;
if ( !&pthread_create )
goto LABEL_172;
v120 = (unsigned int *)(v139 - 8);
do
v41 = __ldaxr(v120);
while ( __stlxr(v41 - 1, v120) );
break;
case 3015:
sub_D153B8((int)&v139, "Tint %");
cocos2d::CCPoint::CCPoint(&v137, -90.0, -110.0);
cocos2d::CCPoint::operator+(&v138, &v136, &v137);
SetupAreaAnimTriggerPopup::createValueControlAdvancedAnim(
a1,
0x109u,
0.6,
0.0,
1.0,
(__int64)&v139,
&v138,
0,
Float,
6,
0,
0,
1,
1);
v56 = v139 - 24;
if ( v139 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v100 = (unsigned int *)(v139 - 8);
do
v101 = __ldaxr(v100);
while ( __stlxr(v101 - 1, v100) );
}
else
{
v101 = *((_DWORD *)v139 - 2);
*((_DWORD *)v139 - 2) = v101 - 1;
}
if ( v101 <= 0 )
operator delete(v56);
}
v57 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_hsvBtn_001.png");
v141.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1;
v141.adj = (size_t)SetupAreaTintTriggerPopup::onHSV;
v58 = CCMenuItemSpriteExtra::create(v57, nullptr, v141);
m_buttonMenu = a1->m_buttonMenu;
a1->m_hsvButton = v58;
m_buttonMenu->addChild(m_buttonMenu, v58);
m_hsvButton = a1->m_hsvButton;
v61 = m_hsvButton->cocos2d::CCMenuItemSprite::cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v132 = a1->m_buttonMenu;
setPosition = v61->setPosition;
cocos2d::CCPoint::CCPoint(&v137, 75.0, -120.0);
cocos2d::CCPoint::operator+(&v138, &v136, &v137);
v140 = cocos2d::CCNode::convertToNodeSpace(v132, &v138);
((void (__fastcall *)(CCMenuItemSpriteExtra *, char **, float, float))setPosition)(
m_hsvButton,
&v139,
v140.x,
v140.y);
SetupAreaTintTriggerPopup::updateHSVButton(a1);
sub_D153B8((int)&v139, "Edit\nHSV");
cocos2d::CCPoint::CCPoint(&v137, 125.0, -120.0);
cocos2d::CCPoint::operator+(&v138, &v136, &v137);
SetupTriggerPopup::createToggleValueControl(a1, 278, 1.0, (__int64)&v139, &v138, 0, 0, 0);
v35 = v139;
v36 = v139 - 24;
if ( v139 - 24 == (char *)&qword_124B6B0 )
goto LABEL_26;
if ( &pthread_create )
{
v62 = (unsigned int *)(v139 - 8);
do
v41 = __ldaxr(v62);
while ( __stlxr(v41 - 1, v62) );
}
else
{
LABEL_172:
v41 = *((_DWORD *)v35 - 2);
*((_DWORD *)v35 - 2) = v41 - 1;
}
break;
default:
a1->updateDefaultTriggerValues(a1);
if ( (_DWORD)setPosition == 3011 )
{
LABEL_52:
v54 = cocos2d::CCDictionary::objectForKey(a1->m_triggerValues, 241);
if ( v54 )
{
if ( *(float *)&v54[1].__vftable == 0.0 )
LODWORD(v55) = 0;
else
LODWORD(v55) = 1.0;
a1->valueDidChange(a1, 241, v55);
a1->m_disableTextDelegate = 0;
}
else
{
a1->toggleGroup(a1, 1, 0);
a1->toggleGroup(a1, 2, 0);
a1->m_disableTextDelegate = 0;
}
}
else
{
a1->m_disableTextDelegate = 0;
}
return v5;
}
if ( v41 <= 0 )
operator delete(v36);
LABEL_26:
a1->updateDefaultTriggerValues(a1);
a1->m_disableTextDelegate = 0;
return v5;
}