//
// SetupAreaMoveTriggerPopup::addAreaDefaultControls from 0xa09c7c to 0xa0b1e8 (5484 bytes)
//
// 7 xrefs:
// > SetupAreaMoveTriggerPopup::init @ 0xa0bc78
// > SetupAreaTransformTriggerPopup::init @ 0xa0cd60
// > SetupAreaRotateTriggerPopup::init @ 0xa0d92c
// > SetupAreaFadeTriggerPopup::init @ 0xa0e474
// > SetupAreaTintTriggerPopup::init @ 0xa0f28c
// > SetupAreaTriggerPopup::init @ 0xa0fde4
// > ??> @ 0xc23b8
//
// 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 SetupAreaMoveTriggerPopup::addAreaDefaultControls(SetupAreaMoveTriggerPopup *a1, int a2)
{
cocos2d::CCDirector *v3; // x0
float v4; // s3
float v5; // s4
char *v6; // x0
float v7; // s3
float v8; // s4
char *v9; // x0
float v10; // s3
float v11; // s4
char *v12; // x0
cocos2d::CCSprite *v13; // x24
CCMenuItemSpriteExtra *v14; // x24
cocos2d::CCMenu *m_buttonMenu; // x26
void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x25
float v17; // s3
float v18; // s4
char *v19; // x0
float v20; // s3
float v21; // s4
char *v22; // x0
float v23; // s3
float v24; // s4
char *v25; // x0
float v26; // s3
float v27; // s4
char *v28; // x0
float v29; // s3
float v30; // s4
char *v31; // x0
float v32; // s3
float v33; // s4
cocos2d::CCArray *v34; // x0
cocos2d::CCArray *v35; // x0
int v36; // w24
cocos2d::CCArray *v37; // x0
cocos2d::CCPoint v38; // x1
char *v39; // x0
CCMenuItemToggler_vtbl *v40; // x2
unsigned int v41; // w25
cocos2d::CCLayer *m_mainLayer; // x26
CCMenuItemToggler *ToggleButton; // x26
char *v44; // x0
unsigned int *v45; // x1
int v46; // w2
unsigned int *v47; // x1
int v48; // w2
char *v49; // x0
void *v50; // x0
char *v51; // x0
unsigned __int64 v52; // x0
char *v53; // x0
void *v54; // x0
char *v55; // x0
void (__fastcall *toggleGroup)(SetupTriggerPopup *__hidden, int, bool); // x24
float v57; // s0
cocos2d::CCArray *v58; // x0
int v59; // w25
float v60; // s14
ButtonSprite *v61; // x26
char *v62; // x4
cocos2d::CCNode *v63; // x0
CCMenuItemSpriteExtra *v64; // x24
void (__fastcall *v65)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x28
float width; // s14
__int64 v67; // x0
cocos2d::CCMenu *v68; // x2
float v69; // s1
cocos2d::CCMenu *v70; // x28
void (__fastcall *v71)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x26
char *v72; // x0
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
_BOOL4 v106; // [xsp+F0h] [xbp+C0h]
_BOOL4 v107; // [xsp+F8h] [xbp+C8h]
cocos2d::CCMenu *v108; // [xsp+100h] [xbp+D0h]
cocos2d::CCArray *PageContainer; // [xsp+100h] [xbp+D0h]
cocos2d::CCArray *v110; // [xsp+108h] [xbp+D8h]
int v111; // [xsp+108h] [xbp+D8h]
bool v112; // [xsp+117h] [xbp+E7h] BYREF
bool v113; // [xsp+118h] [xbp+E8h] BYREF
float v114; // [xsp+120h] [xbp+F0h]
float v115; // [xsp+124h] [xbp+F4h]
cocos2d::CCPoint v116; // [xsp+128h] [xbp+F8h] BYREF
__int64 v117; // [xsp+130h] [xbp+100h] BYREF
cocos2d::CCPoint v118; // [xsp+138h] [xbp+108h] BYREF
char *v119; // [xsp+140h] [xbp+110h] BYREF
cocos2d::CCPoint v120; // [xsp+148h] [xbp+118h] BYREF
const char *v121; // [xsp+150h] [xbp+120h] BYREF
cocos2d::CCPoint v122; // [xsp+158h] [xbp+128h] BYREF
char *v123; // [xsp+160h] [xbp+130h] BYREF
cocos2d::CCPoint v124; // 0:kr08_8.8
cocos2d::CCPoint v125; // 0:kr10_8.8
cocos2d::SEL_MenuHandler v126; // 0:x2.16
cocos2d::SEL_MenuHandler v127; // 0:x2.16
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
v3 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(v3);
cocos2d::CCPoint::CCPoint(&v116, v114 * 0.5, (float)(v115 * 0.5) + 95.0);
sub_D153B8((int)&v123, "OffsetY");
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v121, -75.0, -0.0);
cocos2d::CCPoint::operator+(&v122, &v116, &v121);
v128.y = 0.0;
v128.x = 0.65;
SetupTriggerPopup::createValueControlAdvanced(
a1,
0xFCu,
v128,
100.0,
v4,
v5,
(std::string)&v123,
&v122,
(InputValueType)0,
Int,
6,
0,
1,
99,
1,
2,
0);
v6 = v123 - 24;
if ( v123 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v103 = (unsigned int *)(v123 - 8);
do
v104 = __ldaxr(v103);
while ( __stlxr(v104 - 1, v103) );
}
else
{
v104 = *((_DWORD *)v123 - 2);
*((_DWORD *)v123 - 2) = v104 - 1;
}
if ( v104 <= 0 )
operator delete(v6);
}
sub_D153B8((int)&v123, "+-");
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v121, 75.0, -0.0);
cocos2d::CCPoint::operator+(&v122, &v116, &v121);
v129.x = 0.65;
v129.y = 0.0;
SetupTriggerPopup::createValueControlAdvanced(
a1,
0xFDu,
v129,
100.0,
v7,
v8,
(std::string)&v123,
&v122,
(InputValueType)0,
Int,
6,
0,
1,
99,
1,
2,
0);
v9 = v123 - 24;
if ( v123 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v99 = (unsigned int *)(v123 - 8);
do
v100 = __ldaxr(v99);
while ( __stlxr(v100 - 1, v99) );
}
else
{
v100 = *((_DWORD *)v123 - 2);
*((_DWORD *)v123 - 2) = v100 - 1;
}
if ( v100 <= 0 )
operator delete(v9);
}
sub_D153B8((int)&v123, "EffectID:");
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v121, 85.0, -50.0);
cocos2d::CCPoint::operator+(&v122, &v116, &v121);
v130.x = 0.65;
v130.y = 0.0;
SetupTriggerPopup::createValueControlAdvanced(
a1,
0xE1u,
v130,
100.0,
v10,
v11,
(std::string)&v123,
&v122,
Float,
Uint,
6,
1u,
1,
0,
0,
2,
0);
v12 = v123 - 24;
if ( v123 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v101 = (unsigned int *)(v123 - 8);
do
v102 = __ldaxr(v101);
while ( __stlxr(v102 - 1, v101) );
}
else
{
v102 = *((_DWORD *)v123 - 2);
*((_DWORD *)v123 - 2) = v102 - 1;
}
if ( v102 <= 0 )
operator delete(v12);
}
v13 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_plus2Btn_001.png");
v13->setScale(v13, 0.8);
v126.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1;
v126.adj = (size_t)SetupAreaMoveTriggerPopup::onNextFreeEffectID;
v14 = CCMenuItemSpriteExtra::create(v13, nullptr, v126);
a1->m_buttonMenu->addChild(a1->m_buttonMenu, v14);
m_buttonMenu = a1->m_buttonMenu;
setPosition = v14->setPosition;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v121, 145.0, -50.0);
cocos2d::CCPoint::operator+(&v122, &v116, &v121);
v124 = cocos2d::CCNode::convertToNodeSpace(m_buttonMenu, &v122);
((void (__fastcall *)(CCMenuItemSpriteExtra *, char **, float, float))setPosition)(v14, &v123, v124.x, v124.y);
SetupTriggerPopup::addObjectToPage(a1, v14, 1);
sub_D153B8((int)&v123, "Target Group ID:");
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v121, 85.0, -100.0);
cocos2d::CCPoint::operator+(&v122, &v116, &v121);
v131.x = 0.65;
v131.y = 0.0;
SetupTriggerPopup::createValueControlAdvanced(
a1,
0x33u,
v131,
100.0,
v17,
v18,
(std::string)&v123,
&v122,
Float,
Uint,
6,
1u,
1,
0,
0,
2,
0);
v19 = v123 - 24;
if ( v123 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v91 = (unsigned int *)(v123 - 8);
do
v92 = __ldaxr(v91);
while ( __stlxr(v92 - 1, v91) );
}
else
{
v92 = *((_DWORD *)v123 - 2);
*((_DWORD *)v123 - 2) = v92 - 1;
}
if ( v92 <= 0 )
operator delete(v19);
}
sub_D153B8((int)&v123, "Center Group ID:");
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v121, 85.0, -150.0);
cocos2d::CCPoint::operator+(&v122, &v116, &v121);
v132.x = 0.65;
v132.y = 0.0;
SetupTriggerPopup::createValueControlAdvanced(
a1,
0x47u,
v132,
100.0,
v20,
v21,
(std::string)&v123,
&v122,
Float,
Uint,
6,
1u,
1,
0,
0,
2,
0);
v22 = v123 - 24;
if ( v123 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v93 = (unsigned int *)(v123 - 8);
do
v94 = __ldaxr(v93);
while ( __stlxr(v94 - 1, v93) );
}
else
{
v94 = *((_DWORD *)v123 - 2);
*((_DWORD *)v123 - 2) = v94 - 1;
}
if ( v94 <= 0 )
operator delete(v22);
}
sub_D153B8((int)&v123, "Priority:");
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v121, 85.0, -200.0);
cocos2d::CCPoint::operator+(&v122, &v116, &v121);
v133.x = 0.65;
v133.y = 0.0;
SetupTriggerPopup::createValueControlAdvanced(
a1,
0x155u,
v133,
100.0,
v23,
v24,
(std::string)&v123,
&v122,
Float,
Int,
6,
1u,
1,
0,
0,
2,
0);
v25 = v123 - 24;
if ( v123 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v95 = (unsigned int *)(v123 - 8);
do
v96 = __ldaxr(v95);
while ( __stlxr(v96 - 1, v95) );
}
else
{
v96 = *((_DWORD *)v123 - 2);
*((_DWORD *)v123 - 2) = v96 - 1;
}
if ( v96 <= 0 )
operator delete(v25);
}
sub_D153B8((int)&v123, "ModFront");
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v121, -75.0, -25.0);
cocos2d::CCPoint::operator+(&v122, &v116, &v121);
v134.x = 0.65;
v134.y = 0.0;
SetupTriggerPopup::createValueControlAdvanced(
a1,
0x107u,
v134,
10.0,
v26,
v27,
(std::string)&v123,
&v122,
(InputValueType)0,
Float,
6,
0,
1,
0,
1,
2,
0);
v28 = v123 - 24;
if ( v123 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v97 = (unsigned int *)(v123 - 8);
do
v98 = __ldaxr(v97);
while ( __stlxr(v98 - 1, v97) );
}
else
{
v98 = *((_DWORD *)v123 - 2);
*((_DWORD *)v123 - 2) = v98 - 1;
}
if ( v98 <= 0 )
operator delete(v28);
}
sub_D153B8((int)&v123, "ModBack");
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v121, -75.0, -50.0);
cocos2d::CCPoint::operator+(&v122, &v116, &v121);
v135.x = 0.65;
v135.y = 0.0;
SetupTriggerPopup::createValueControlAdvanced(
a1,
0x108u,
v135,
10.0,
v29,
v30,
(std::string)&v123,
&v122,
(InputValueType)0,
Float,
6,
0,
1,
0,
1,
2,
0);
v31 = v123 - 24;
if ( v123 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v85 = (unsigned int *)(v123 - 8);
do
v86 = __ldaxr(v85);
while ( __stlxr(v86 - 1, v85) );
}
else
{
v86 = *((_DWORD *)v123 - 2);
*((_DWORD *)v123 - 2) = v86 - 1;
}
if ( v86 <= 0 )
operator delete(v31);
}
sub_D153B8((int)&v123, "Deadzone");
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v121, -75.0, -75.0);
cocos2d::CCPoint::operator+(&v122, &v116, &v121);
v136.x = 0.65;
v136.y = 0.0;
SetupTriggerPopup::createValueControlAdvanced(
a1,
0x11Au,
v136,
1.0,
v32,
v33,
(std::string)&v123,
&v122,
(InputValueType)0,
Float,
6,
0,
1,
0,
1,
2,
0);
v34 = (cocos2d::CCArray *)(v123 - 24);
if ( v123 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v87 = (unsigned int *)(v123 - 8);
do
v88 = __ldaxr(v87);
while ( __stlxr(v88 - 1, v87) );
}
else
{
v88 = *((_DWORD *)v123 - 2);
*((_DWORD *)v123 - 2) = v88 - 1;
}
if ( v88 <= 0 )
operator delete(v34);
}
v35 = (cocos2d::CCArray *)cocos2d::CCArray::create(v34);
a1->m_targetButtons = v35;
v36 = 1;
cocos2d::CCObject::retain(v35);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v123, 170.0, 40.0);
v37 = (cocos2d::CCArray *)cocos2d::CCPoint::operator+(&v117, &v116, &v123);
do
{
v41 = -v36;
v110 = (cocos2d::CCArray *)cocos2d::CCArray::create(v37);
targetKeyToString(-v36, (__int64)&v119);
sub_D153B8((int)&v123, v119);
v108 = a1->m_buttonMenu;
cocos2d::CCPoint::CCPoint(&v120, 0.0, (float)v36 * -23.0);
cocos2d::CCPoint::operator+(&v121, &v117, &v120);
m_mainLayer = a1->m_mainLayer;
cocos2d::CCPoint::CCPoint(&v122, 6.0, 0.0);
ToggleButton = GameToolbox::createToggleButton(
0.6,
0.35,
110.0,
(__int64)&v123,
(void (__cdecl *)(cocos2d::CCObject *))SetupAreaMoveTriggerPopup::onSpecialTarget,
0,
0,
v108,
(const cocos2d::CCPoint *)&v121,
a1,
m_mainLayer,
(float *)&v122,
(__int64)"bigFont.fnt",
0,
0,
v110);
v44 = v123 - 24;
if ( v123 - 24 == (char *)&qword_124B6B0 )
goto LABEL_11;
if ( &pthread_create )
{
v45 = (unsigned int *)(v123 - 8);
do
v46 = __ldaxr(v45);
while ( __stlxr(v46 - 1, v45) );
}
else
{
v46 = *((_DWORD *)v123 - 2);
*((_DWORD *)v123 - 2) = v46 - 1;
}
if ( v46 > 0 )
{
LABEL_11:
v38 = (cocos2d::CCPoint)v119;
v39 = v119 - 24;
if ( v119 - 24 == (char *)&qword_124B6B0 )
goto LABEL_12;
}
else
{
operator delete(v44);
v38 = (cocos2d::CCPoint)v119;
v39 = v119 - 24;
if ( v119 - 24 == (char *)&qword_124B6B0 )
goto LABEL_12;
}
if ( &pthread_create )
{
v47 = (unsigned int *)(*(_QWORD *)&v38 - 8LL);
do
v48 = __ldaxr(v47);
while ( __stlxr(v48 - 1, v47) );
}
else
{
v48 = *(_DWORD *)(*(_QWORD *)&v38 - 8LL);
*(_DWORD *)(*(_QWORD *)&v38 - 8LL) = v48 - 1;
}
if ( v48 <= 0 )
operator delete(v39);
LABEL_12:
v40 = ToggleButton->cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
ToggleButton->m_notClickable = 1;
++v36;
v40->setTag(ToggleButton, v41);
SetupTriggerPopup::addObjectsToPage(a1, v110, 1);
v37 = (cocos2d::CCArray *)cocos2d::CCArray::addObject(a1->m_targetButtons, ToggleButton);
}
while ( v36 != 12 );
cocos2d::CCPoint::CCPoint(&v118, (float)(v114 * 0.5) + -10.0, (float)(v115 * 0.5) + -80.0);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v119,
20.0 - (float)((float)(a1->m_width * 0.5) - (float)(v114 * 0.5)),
(float)(20.0 - (float)((float)(a1->m_height * 0.5) - (float)(v115 * 0.5))) + 30.0);
sub_D153B8((int)&v123, "Ignore\nGParent");
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v121, 90.0, 0.0);
cocos2d::CCPoint::operator+(&v122, &v119, &v121);
SetupTriggerPopup::createToggleValueControl(a1, 280, 1.0, (__int64)&v123, &v122, 0, 1, 0);
v49 = v123 - 24;
if ( v123 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v83 = (unsigned int *)(v123 - 8);
do
v84 = __ldaxr(v83);
while ( __stlxr(v84 - 1, v83) );
}
else
{
v84 = *((_DWORD *)v123 - 2);
*((_DWORD *)v123 - 2) = v84 - 1;
}
if ( v84 <= 0 )
operator delete(v49);
}
sub_D153B8((int)&v122, "Ignore\nLinked");
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v123, (const cocos2d::CCPoint *)&v119);
SetupTriggerPopup::createToggleValueControl(a1, 281, 1.0, (__int64)&v122, (const cocos2d::CCPoint *)&v123, 0, 1, 0);
v50 = (void *)(*(_QWORD *)&v122 - 24LL);
if ( (__int64 *)(*(_QWORD *)&v122 - 24LL) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v89 = (unsigned int *)(*(_QWORD *)&v122 - 8LL);
do
v90 = __ldaxr(v89);
while ( __stlxr(v90 - 1, v89) );
}
else
{
v90 = *(_DWORD *)(*(_QWORD *)&v122 - 8LL);
*(_DWORD *)(*(_QWORD *)&v122 - 8LL) = v90 - 1;
}
if ( v90 <= 0 )
operator delete(v50);
}
sub_D153B8((int)&v123, "DE\nAP");
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v121, 180.0, 20.0);
cocos2d::CCPoint::operator+(&v122, &v119, &v121);
SetupTriggerPopup::createToggleValueControl(a1, 539, 1.0, (__int64)&v123, &v122, 0, 1, 0);
v51 = v123 - 24;
if ( v123 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v81 = (unsigned int *)(v123 - 8);
do
v82 = __ldaxr(v81);
while ( __stlxr(v82 - 1, v81) );
}
else
{
v82 = *((_DWORD *)v123 - 2);
*((_DWORD *)v123 - 2) = v82 - 1;
}
if ( v82 <= 0 )
operator delete(v51);
}
v52 = (unsigned int)(a2 - 3006);
if ( (unsigned int)v52 <= 2 )
{
sub_D153B8((int)&v123, "Easing");
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v121, -95.0, -150.0);
cocos2d::CCPoint::operator+(&v122, &v116, &v121);
SetupTriggerPopup::createCustomEasingControls(a1, (int)&v123, &v122, 242, 243, 0, 0.7, 0);
v53 = v123 - 24;
if ( v123 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v75 = (unsigned int *)(v123 - 8);
do
v76 = __ldaxr(v75);
while ( __stlxr(v76 - 1, v75) );
}
else
{
v76 = *((_DWORD *)v123 - 2);
*((_DWORD *)v123 - 2) = v76 - 1;
}
if ( v76 <= 0 )
operator delete(v53);
}
cocos2d::CCPoint::CCPoint(
&v120,
(float)(v114 * 0.5) + 50.0,
20.0 - (float)((float)(a1->m_height * 0.5) - (float)(v115 * 0.5)));
sub_D153B8((int)&v122, "Ease\nOut");
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v123, &v120);
SetupTriggerPopup::createToggleValueControl(a1, 261, 1.0, (__int64)&v122, (const cocos2d::CCPoint *)&v123, 0, 0, 0);
v54 = (void *)(*(_QWORD *)&v122 - 24LL);
if ( (__int64 *)(*(_QWORD *)&v122 - 24LL) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v77 = (unsigned int *)(*(_QWORD *)&v122 - 8LL);
do
v78 = __ldaxr(v77);
while ( __stlxr(v78 - 1, v77) );
}
else
{
v78 = *(_DWORD *)(*(_QWORD *)&v122 - 8LL);
*(_DWORD *)(*(_QWORD *)&v122 - 8LL) = v78 - 1;
}
if ( v78 <= 0 )
operator delete(v54);
}
sub_D153B8((int)&v123, "Easing2");
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v121, 95.0, -150.0);
cocos2d::CCPoint::operator+(&v122, &v116, &v121);
SetupTriggerPopup::createCustomEasingControls(a1, (int)&v123, &v122, 248, 249, 0, 0.7, 9);
v55 = v123 - 24;
if ( v123 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v79 = (unsigned int *)(v123 - 8);
do
v80 = __ldaxr(v79);
while ( __stlxr(v80 - 1, v79) );
}
else
{
v80 = *((_DWORD *)v123 - 2);
*((_DWORD *)v123 - 2) = v80 - 1;
}
if ( v80 <= 0 )
operator delete(v55);
}
toggleGroup = a1->toggleGroup;
v57 = a1->getValue(a1, 261);
v52 = ((__int64 (__fastcall *)(SetupAreaMoveTriggerPopup *, __int64, bool))toggleGroup)(a1, 9, v57 != 0.0);
}
v58 = (cocos2d::CCArray *)cocos2d::CCArray::create((cocos2d::CCArray *)v52);
a1->m_modeButtons = v58;
v59 = 0;
cocos2d::CCObject::retain(v58);
v111 = (int)a1->getValue(a1, 262);
v107 = a1->getValue(a1, 276) != 0.0;
v106 = a1->getValue(a1, 283) != 0.0;
PageContainer = SetupTriggerPopup::getPageContainer(a1, 1);
while ( 2 )
{
v121 = &byte_124B6C8;
switch ( v59 )
{
case 1:
sub_D1798C(&v121, "edit_areaModeBtn05_001.png", 26);
goto LABEL_35;
case 2:
sub_D1798C(&v121, "edit_areaModeBtn01_001.png", 26);
goto LABEL_35;
case 3:
sub_D1798C(&v121, "edit_areaModeBtn02_001.png", 26);
goto LABEL_35;
case 4:
sub_D1798C(&v121, "edit_areaModeBtn03_001.png", 26);
goto LABEL_35;
case 5:
sub_D1798C(&v121, "edit_areaModeBtn03b_001.png", 27);
goto LABEL_35;
case 6:
sub_D1798C(&v121, "edit_areaModeBtn01_001.png", 26);
v60 = 90.0;
goto LABEL_36;
case 7:
sub_D1798C(&v121, "edit_areaModeBtn02_001.png", 26);
v60 = 90.0;
goto LABEL_36;
case 8:
sub_D1798C(&v121, "edit_areaModeBtn03b_001.png", 27);
v60 = -90.0;
goto LABEL_36;
case 9:
sub_D1798C(&v121, "edit_areaModeBtn03_001.png", 26);
v60 = -90.0;
goto LABEL_36;
default:
sub_D1798C(&v121, "edit_areaModeBtn04_001.png", 26);
LABEL_35:
v60 = 0.0;
LABEL_36:
v61 = (ButtonSprite *)cocos2d::CCSprite::createWithSpriteFrameName(v121);
v61->setRotation(v61, v60);
SetupAreaMoveTriggerPopup::getModeValues(a1, v59, (int *)&v120, &v112, &v113);
if ( v111 == LODWORD(v120.x) && v112 == v107 && v113 == v106 )
v62 = "GJ_button_02.png";
else
v62 = "GJ_button_04.png";
v63 = (cocos2d::CCNode *)ButtonSprite::create(
v61,
(cocos2d::CCSprite *)&qword_20,
0,
(bool)&dword_0 + 1,
32.0,
1.0,
(cocos2d::CCSprite *)v62,
(const char *)&dword_0 + 1);
v127.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1;
v127.adj = (size_t)SetupAreaMoveTriggerPopup::onMode;
v64 = CCMenuItemSpriteExtra::create(v63, nullptr, v127);
v64->setTag(v64, v59);
cocos2d::CCArray::addObject(PageContainer, v64);
cocos2d::CCArray::addObject(a1->m_modeButtons, v64);
v61->setScale(v61, 1.8);
v65 = v61->setPosition;
width = v64->getContentSize(v64)->width;
v67 = (__int64)v64->getContentSize(v64);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v123, width * 0.5, *(float *)(v67 + 4) * 0.5);
v65(v61, (const cocos2d::CCPoint *)&v123);
v64->setScale(v64, 0.5);
v68 = a1->m_buttonMenu;
v64->m_baseScale = 0.5;
v68->addChild(v68, v64);
v69 = 0.0;
if ( v59 > 4 )
v69 = -25.0;
v70 = a1->m_buttonMenu;
v71 = v64->setPosition;
cocos2d::CCPoint::CCPoint(
&v122,
(float)(50.0 - (float)((float)(a1->m_width * 0.5) - (float)(v114 * 0.5))) + (float)((float)(v59 % 5) * 25.0),
v69 + (float)((float)(v115 * 0.5) + -20.0));
v125 = cocos2d::CCNode::convertToNodeSpace(v70, &v122);
((void (__fastcall *)(CCMenuItemSpriteExtra *, char **, float, float))v71)(v64, &v123, v125.x, v125.y);
v72 = (char *)(v121 - 24);
if ( v121 - 24 != (const char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v73 = (unsigned int *)(v121 - 8);
do
v74 = __ldaxr(v73);
while ( __stlxr(v74 - 1, v73) );
}
else
{
v74 = *((_DWORD *)v121 - 2);
*((_DWORD *)v121 - 2) = v74 - 1;
}
if ( v74 <= 0 )
operator delete(v72);
}
if ( ++v59 != 10 )
continue;
return;
}
}
}