//
// SetupAreaMoveTriggerPopup::addAreaDefaultControls from 0xb3e0bc to 0xb3f080 (4036 bytes)
//
// 7 xrefs:
// > SetupAreaMoveTriggerPopup::init @ 0xb3fafc
// > SetupAreaTransformTriggerPopup::init @ 0xb4065c
// > SetupAreaRotateTriggerPopup::init @ 0xb40f9c
// > SetupAreaFadeTriggerPopup::init @ 0xb418c8
// > SetupAreaTintTriggerPopup::init @ 0xb423f4
// > SetupAreaTriggerPopup::init @ 0xb42c88
// > ??> @ 0xfcf58
//
// This function is hookable on this platform (idp: arm, 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 13:01:50 +0000
//
__int64 __fastcall SetupAreaMoveTriggerPopup::addAreaDefaultControls(cocos2d::CCArray **this, int a2)
{
cocos2d::CCDirector *v3; // x0
cocos2d::CCArray *v4; // x0
cocos2d::CCObject *v5; // x0
int v6; // w23
cocos2d::CCArray *v7; // x0
__int64 v8; // x2
unsigned int v9; // w26
cocos2d::CCArray *v10; // x25
char *v11; // x24
size_t v12; // x0
CCMenuItemToggler *ToggleButton; // x24
unsigned __int64 v14; // x0
__int64 (__fastcall *v15)(cocos2d::CCArray **, __int64, bool); // x23
float v16; // s0
cocos2d::CCObject *v17; // x0
int v18; // w24
cocos2d::CCArray *PageContainer; // x26
float v20; // s14
cocos2d::CCSprite *v21; // x0
ButtonSprite *v22; // x25
char *v23; // x4
__int64 v24; // x0
float *v25; // x23
void (__fastcall *v26)(ButtonSprite *, __int64 *); // x27
float v27; // s14
__int64 v28; // x0
float v29; // s1
cocos2d::CCNode *v30; // x25
void (__fastcall *v31)(float *, __int64 *); // x27
int v33; // [xsp+8h] [xbp-28h]
int v34; // [xsp+8h] [xbp-28h]
int v35; // [xsp+8h] [xbp-28h]
_BOOL4 v37; // [xsp+E0h] [xbp+B0h]
__int64 v38; // [xsp+E8h] [xbp+B8h]
_BOOL4 v39; // [xsp+E8h] [xbp+B8h]
cocos2d::CCNode *v40; // [xsp+F0h] [xbp+C0h]
int v41; // [xsp+F0h] [xbp+C0h]
bool v42; // [xsp+106h] [xbp+D6h] BYREF
bool v43; // [xsp+107h] [xbp+D7h] BYREF
__int64 v44; // [xsp+108h] [xbp+D8h] BYREF
_BYTE v45[8]; // [xsp+110h] [xbp+E0h] BYREF
__int64 v46; // [xsp+118h] [xbp+E8h] BYREF
_BYTE v47[8]; // [xsp+120h] [xbp+F0h] BYREF
_BYTE v48[8]; // [xsp+128h] [xbp+F8h] BYREF
int v49; // [xsp+130h] [xbp+100h] BYREF
__int64 v50; // [xsp+138h] [xbp+108h] BYREF
__int64 v51; // [xsp+140h] [xbp+110h] BYREF
__int64 v52[2]; // [xsp+148h] [xbp+118h] BYREF
void *v53; // [xsp+158h] [xbp+128h]
cocos2d::CCArray *v54; // [xsp+160h] [xbp+130h] BYREF
__int64 v55; // [xsp+168h] [xbp+138h]
void *v56; // [xsp+170h] [xbp+140h]
v3 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(_stack_chk_guard);
cocos2d::CCDirector::getWinSize(&v44, v3);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v45, *(float *)&v44 * 0.5, (float)(*((float *)&v44 + 1) * 0.5) + 95.0);
v54 = nullptr;
v55 = 0;
v56 = nullptr;
std::string::__init((__int64 *)&v54, "OffsetY", 7u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v50, -75.0, -0.0);
cocos2d::CCPoint::operator+(&v51, v45);
SetupTriggerPopup::createValueControlAdvanced(
this,
252,
(char *)&v54,
(__int64)&v51,
0,
2,
6,
0,
0.65,
0.0,
100.0,
1,
99,
1,
2,
0);
if ( ((unsigned __int8)v54 & 1) != 0 )
operator delete(v56);
v54 = nullptr;
v55 = 0;
v56 = nullptr;
std::string::__init((__int64 *)&v54, "+-", 2u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v50, 75.0, -0.0);
cocos2d::CCPoint::operator+(&v51, v45);
SetupTriggerPopup::createValueControlAdvanced(
this,
253,
(char *)&v54,
(__int64)&v51,
0,
2,
6,
0,
0.65,
0.0,
100.0,
1,
99,
1,
2,
0);
if ( ((unsigned __int8)v54 & 1) != 0 )
operator delete(v56);
v54 = nullptr;
v55 = 0;
v56 = nullptr;
std::string::__init((__int64 *)&v54, "EffectID:", 9u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v50, 85.0, -50.0);
cocos2d::CCPoint::operator+(&v51, v45);
LOBYTE(v33) = 0;
IDNameInput::create(this, this + 68, 5, 225, &v54, &v51, 6, 0, 0.65, 1, v33);
if ( ((unsigned __int8)v54 & 1) != 0 )
operator delete(v56);
v54 = nullptr;
v55 = 0;
v56 = nullptr;
std::string::__init((__int64 *)&v54, "Target Group ID:", 0x10u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v50, 85.0, -100.0);
cocos2d::CCPoint::operator+(&v51, v45);
LOBYTE(v34) = 0;
IDNameInput::create(this, this + 68, 1, 51, &v54, &v51, 6, 0, 0.65, 1, v34);
if ( ((unsigned __int8)v54 & 1) != 0 )
operator delete(v56);
v54 = nullptr;
v55 = 0;
v56 = nullptr;
std::string::__init((__int64 *)&v54, "Center Group ID:", 0x10u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v50, 85.0, -150.0);
cocos2d::CCPoint::operator+(&v51, v45);
LOBYTE(v35) = 0;
IDNameInput::create(this, this + 68, 1, 71, &v54, &v51, 6, 0, 0.65, 1, v35);
if ( ((unsigned __int8)v54 & 1) != 0 )
operator delete(v56);
v54 = nullptr;
v55 = 0;
v56 = nullptr;
std::string::__init((__int64 *)&v54, "Priority:", 9u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v50, 85.0, -200.0);
cocos2d::CCPoint::operator+(&v51, v45);
SetupTriggerPopup::createValueControlAdvanced(
this,
341,
(char *)&v54,
(__int64)&v51,
1,
2,
6,
1,
0.65,
0.0,
100.0,
1,
0,
0,
2,
0);
if ( ((unsigned __int8)v54 & 1) != 0 )
operator delete(v56);
v54 = nullptr;
v55 = 0;
v56 = nullptr;
std::string::__init((__int64 *)&v54, "ModFront", 8u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v50, -75.0, -25.0);
cocos2d::CCPoint::operator+(&v51, v45);
SetupTriggerPopup::createValueControlAdvanced(
this,
263,
(char *)&v54,
(__int64)&v51,
0,
1,
6,
0,
0.65,
0.0,
10.0,
1,
0,
1,
2,
0);
if ( ((unsigned __int8)v54 & 1) != 0 )
operator delete(v56);
v54 = nullptr;
v55 = 0;
v56 = nullptr;
std::string::__init((__int64 *)&v54, "ModBack", 7u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v50, -75.0, -50.0);
cocos2d::CCPoint::operator+(&v51, v45);
SetupTriggerPopup::createValueControlAdvanced(
this,
264,
(char *)&v54,
(__int64)&v51,
0,
1,
6,
0,
0.65,
0.0,
10.0,
1,
0,
1,
2,
0);
if ( ((unsigned __int8)v54 & 1) != 0 )
operator delete(v56);
v54 = nullptr;
v55 = 0;
v56 = nullptr;
std::string::__init((__int64 *)&v54, "Deadzone", 8u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v50, -75.0, -75.0);
cocos2d::CCPoint::operator+(&v51, v45);
SetupTriggerPopup::createValueControlAdvanced(
this,
282,
(char *)&v54,
(__int64)&v51,
0,
1,
6,
0,
0.65,
0.0,
1.0,
1,
0,
1,
2,
0);
v4 = (cocos2d::CCArray *)(unsigned __int8)v54;
if ( ((unsigned __int8)v54 & 1) != 0 )
operator delete(v56);
v5 = (cocos2d::CCObject *)cocos2d::CCArray::create(v4);
*(this + 128) = v5;
v6 = 1;
cocos2d::CCObject::retain(v5);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v51, 170.0, 40.0);
v7 = (cocos2d::CCArray *)cocos2d::CCPoint::operator+(&v46, v45);
do
{
v9 = -v6;
v10 = (cocos2d::CCArray *)cocos2d::CCArray::create(v7);
targetKeyToString(-v6, v52);
v11 = (char *)v52 + 1;
if ( (v52[0] & 1) != 0 )
v11 = (char *)v53;
v54 = nullptr;
v55 = 0;
v56 = nullptr;
v12 = strlen(v11);
std::string::__init((__int64 *)&v54, v11, v12);
v40 = *(this + 69);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v49, 0.0, (float)v6 * -23.0);
cocos2d::CCPoint::operator+(&v50, &v46);
v38 = (__int64)*(this + 73);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v51, 6.0, 0.0);
ToggleButton = GameToolbox::createToggleButton(
(__int64)&v54,
(const char *)SetupAreaMoveTriggerPopup::onSpecialTarget,
0,
0,
v40,
(const cocos2d::CCPoint *)&v50,
(__int64)this,
v38,
0.6,
0.35,
110.0,
(float *)&v51,
"bigFont.fnt",
0,
0,
v10);
if ( ((unsigned __int8)v54 & 1) != 0 )
{
operator delete(v56);
if ( (v52[0] & 1) == 0 )
goto LABEL_21;
}
else if ( (v52[0] & 1) == 0 )
{
goto LABEL_21;
}
operator delete(v53);
LABEL_21:
v8 = *(_QWORD *)ToggleButton;
*((_BYTE *)ToggleButton + 393) = 1;
++v6;
(*(void (__fastcall **)(CCMenuItemToggler *, _QWORD))(v8 + 72))(ToggleButton, v9);
SetupTriggerPopup::addObjectsToPage(this, v10, 1u);
v7 = (cocos2d::CCArray *)cocos2d::CCArray::addObject(*(this + 128), ToggleButton);
}
while ( v6 != 12 );
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v47,
(float)(*(float *)&v44 * 0.5) + -10.0,
(float)(*((float *)&v44 + 1) * 0.5) + -80.0);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v48,
20.0 - (float)((float)(*((float *)this + 183) * 0.5) - (float)(*(float *)&v44 * 0.5)),
(float)(20.0 - (float)((float)(*((float *)this + 184) * 0.5) - (float)(*((float *)&v44 + 1) * 0.5))) + 30.0);
v54 = nullptr;
v55 = 0;
v56 = nullptr;
std::string::__init((__int64 *)&v54, "Ignore\nGParent", 0xEu);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v50, 90.0, 0.0);
cocos2d::CCPoint::operator+(&v51, v48);
SetupTriggerPopup::createToggleValueControl(
(__int64)this,
0x118u,
&v54,
(const cocos2d::CCPoint *)&v51,
0,
1u,
0,
1.0);
if ( ((unsigned __int8)v54 & 1) != 0 )
operator delete(v56);
v54 = nullptr;
v55 = 0;
v56 = nullptr;
std::string::__init((__int64 *)&v54, "Ignore\nLinked", 0xDu);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v51, (const cocos2d::CCPoint *)v48);
SetupTriggerPopup::createToggleValueControl(
(__int64)this,
0x119u,
&v54,
(const cocos2d::CCPoint *)&v51,
0,
1u,
0,
1.0);
if ( ((unsigned __int8)v54 & 1) != 0 )
operator delete(v56);
v54 = nullptr;
v55 = 0;
v56 = nullptr;
std::string::__init((__int64 *)&v54, "DE\nAP", 5u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v50, 180.0, 20.0);
cocos2d::CCPoint::operator+(&v51, v48);
SetupTriggerPopup::createToggleValueControl(
(__int64)this,
0x21Bu,
&v54,
(const cocos2d::CCPoint *)&v51,
0,
1u,
0,
1.0);
if ( ((unsigned __int8)v54 & 1) != 0 )
operator delete(v56);
v14 = (unsigned int)(a2 - 3006);
if ( (unsigned int)v14 <= 2 )
{
v54 = nullptr;
v55 = 0;
v56 = nullptr;
std::string::__init((__int64 *)&v54, "Easing", 6u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v50, -95.0, -150.0);
cocos2d::CCPoint::operator+(&v51, v45);
SetupTriggerPopup::createCustomEasingControls((__int64)this, (__int64)&v54, (__int64)&v51, 0xF2u, 243, 0, 0, 0.7);
if ( ((unsigned __int8)v54 & 1) != 0 )
operator delete(v56);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v49,
(float)(*(float *)&v44 * 0.5) + 50.0,
20.0 - (float)((float)(*((float *)this + 184) * 0.5) - (float)(*((float *)&v44 + 1) * 0.5)));
v54 = nullptr;
v55 = 0;
v56 = nullptr;
std::string::__init((__int64 *)&v54, "Ease\nOut", 8u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v51, (const cocos2d::CCPoint *)&v49);
SetupTriggerPopup::createToggleValueControl(
(__int64)this,
0x105u,
&v54,
(const cocos2d::CCPoint *)&v51,
0,
0,
0,
1.0);
if ( ((unsigned __int8)v54 & 1) != 0 )
operator delete(v56);
v54 = nullptr;
v55 = 0;
v56 = nullptr;
std::string::__init((__int64 *)&v54, "Easing2", 7u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v50, 95.0, -150.0);
cocos2d::CCPoint::operator+(&v51, v45);
SetupTriggerPopup::createCustomEasingControls((__int64)this, (__int64)&v54, (__int64)&v51, 0xF8u, 249, 0, 9, 0.7);
if ( ((unsigned __int8)v54 & 1) != 0 )
operator delete(v56);
v15 = *((__int64 (__fastcall **)(cocos2d::CCArray **, __int64, bool))*this + 169);
v16 = (*((float (__fastcall **)(cocos2d::CCArray **, __int64))*this + 183))(this, 261);
v14 = v15(this, 9, v16 != 0.0);
}
v17 = (cocos2d::CCObject *)cocos2d::CCArray::create((cocos2d::CCArray *)v14);
*(this + 127) = v17;
v18 = 0;
cocos2d::CCObject::retain(v17);
v41 = (int)(*((float (__fastcall **)(cocos2d::CCArray **, __int64))*this + 183))(this, 262);
v39 = (*((float (__fastcall **)(cocos2d::CCArray **, __int64))*this + 183))(this, 276) != 0.0;
v37 = (*((float (__fastcall **)(cocos2d::CCArray **, __int64))*this + 183))(this, 283) != 0.0;
PageContainer = (cocos2d::CCArray *)SetupTriggerPopup::getPageContainer(this, 1u);
while ( 2 )
{
v54 = nullptr;
v55 = 0;
v56 = nullptr;
switch ( v18 )
{
case 1:
std::string::assign((__int64 *)&v54, "edit_areaModeBtn05_001.png");
goto LABEL_44;
case 2:
std::string::assign((__int64 *)&v54, "edit_areaModeBtn01_001.png");
goto LABEL_44;
case 3:
std::string::assign((__int64 *)&v54, "edit_areaModeBtn02_001.png");
goto LABEL_44;
case 4:
std::string::assign((__int64 *)&v54, "edit_areaModeBtn03_001.png");
goto LABEL_44;
case 5:
std::string::assign((__int64 *)&v54, "edit_areaModeBtn03b_001.png");
goto LABEL_44;
case 6:
std::string::assign((__int64 *)&v54, "edit_areaModeBtn01_001.png");
v20 = 90.0;
goto LABEL_45;
case 7:
std::string::assign((__int64 *)&v54, "edit_areaModeBtn02_001.png");
v20 = 90.0;
goto LABEL_45;
case 8:
std::string::assign((__int64 *)&v54, "edit_areaModeBtn03b_001.png");
v20 = -90.0;
goto LABEL_45;
case 9:
std::string::assign((__int64 *)&v54, "edit_areaModeBtn03_001.png");
v20 = -90.0;
goto LABEL_45;
default:
std::string::assign((__int64 *)&v54, "edit_areaModeBtn04_001.png");
LABEL_44:
v20 = 0.0;
LABEL_45:
v21 = (cocos2d::CCSprite *)((char *)&v54 + 1);
if ( ((unsigned __int8)v54 & 1) != 0 )
v21 = (cocos2d::CCSprite *)v56;
v22 = (ButtonSprite *)cocos2d::CCSprite::createWithSpriteFrameName(v21, (const char *)(unsigned __int8)v54);
(*(void (__fastcall **)(ButtonSprite *, float))(*(_QWORD *)v22 + 360LL))(v22, v20);
SetupAreaMoveTriggerPopup::getModeValues((SetupAreaMoveTriggerPopup *)this, v18, &v49, &v42, &v43);
if ( v41 == v49 && v42 == v39 && v43 == v37 )
v23 = "GJ_button_02.png";
else
v23 = "GJ_button_04.png";
v24 = ButtonSprite::create(
v22,
(cocos2d::CCSprite *)&qword_20,
0,
(char)&dword_0 + 1,
32.0,
1.0,
(cocos2d::CCSprite *)v23,
(const char *)&dword_0 + 1,
0.0);
v25 = (float *)CCMenuItemSpriteExtra::create(
v24,
0,
(__int64)this,
(__int64)SetupAreaMoveTriggerPopup::onMode,
0);
(*(void (__fastcall **)(float *, _QWORD))(*(_QWORD *)v25 + 72LL))(v25, (unsigned int)v18);
cocos2d::CCArray::addObject(PageContainer, (cocos2d::CCObject *)v25);
cocos2d::CCArray::addObject(*(this + 127), (cocos2d::CCObject *)v25);
(*(void (__fastcall **)(ButtonSprite *, float))(*(_QWORD *)v22 + 160LL))(v22, 1.8);
v26 = *(void (__fastcall **)(ButtonSprite *, __int64 *))(*(_QWORD *)v22 + 184LL);
v27 = *(float *)(*(__int64 (__fastcall **)(float *))(*(_QWORD *)v25 + 328LL))(v25);
v28 = (*(__int64 (__fastcall **)(float *))(*(_QWORD *)v25 + 328LL))(v25);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v51, v27 * 0.5, *(float *)(v28 + 4) * 0.5);
v26(v22, &v51);
(*(void (__fastcall **)(float *, float))(*(_QWORD *)v25 + 160LL))(v25, 0.5);
v25[101] = 0.5;
(*(void (__fastcall **)(_QWORD, float *))(*(_QWORD *)*(this + 69) + 456LL))(*(this + 69), v25);
v29 = 0.0;
if ( v18 > 4 )
v29 = -25.0;
v30 = *(this + 69);
v31 = *(void (__fastcall **)(float *, __int64 *))(*(_QWORD *)v25 + 184LL);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v50,
(float)(50.0 - (float)((float)(*((float *)this + 183) * 0.5) - (float)(*(float *)&v44 * 0.5)))
+ (float)((float)(v18 % 5) * 25.0),
v29 + (float)((float)(*((float *)&v44 + 1) * 0.5) + -20.0));
cocos2d::CCNode::convertToNodeSpace(&v51, v30, (const cocos2d::CCPoint *)&v50);
v31(v25, &v51);
if ( ((unsigned __int8)v54 & 1) != 0 )
operator delete(v56);
if ( ++v18 != 10 )
continue;
return _stack_chk_guard;
}
}
}