//
// SetupAudioTriggerPopup::addProxVolControls from 0xb6db54 to 0xb6e5f4 (2720 bytes)
//
// 3 xrefs:
// > SetupSFXPopup::init @ 0xb6f1c8
// > SetupSFXEditPopup::init @ 0xb700b4
// > ??> @ 0xc55c0
//
// 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:02:19 +0000
//
__int64 __fastcall SetupAudioTriggerPopup::addProxVolControls(cocos2d::CCArray **this, unsigned int a2)
{
cocos2d::CCDirector *v4; // x0
cocos2d::CCArray *v5; // x0
cocos2d::CCObject *v6; // x0
int v7; // w21
cocos2d::CCArray *PageContainer; // x27
float v9; // s8
cocos2d::CCSprite *v10; // x0
ButtonSprite *v11; // x23
char *v12; // x4
__int64 v13; // x0
cocos2d::CCObject *v14; // x19
void (__fastcall *v15)(ButtonSprite *, __int64 *); // x28
float v16; // s8
__int64 v17; // x0
float v18; // s1
cocos2d::CCNode *v19; // x28
void (__fastcall *v20)(cocos2d::CCObject *, __int64 *); // x23
void (__fastcall *v21)(cocos2d::CCArray **, __int64, bool); // x19
float v22; // s0
int v24; // [xsp+8h] [xbp-28h]
int v25; // [xsp+DCh] [xbp+ACh]
__int64 v26; // [xsp+E8h] [xbp+B8h] BYREF
_BYTE v27[8]; // [xsp+F0h] [xbp+C0h] BYREF
_BYTE v28[8]; // [xsp+F8h] [xbp+C8h] BYREF
_BYTE v29[8]; // [xsp+100h] [xbp+D0h] BYREF
__int64 v30; // [xsp+108h] [xbp+D8h] BYREF
cocos2d::CCArray *v31; // [xsp+110h] [xbp+E0h] BYREF
__int64 v32; // [xsp+118h] [xbp+E8h]
void *v33; // [xsp+120h] [xbp+F0h]
v4 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(_stack_chk_guard);
cocos2d::CCDirector::getWinSize(&v26, v4);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v27, *(float *)&v26 * 0.5, *((float *)&v26 + 1) * 0.5);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v28, *(float *)&v26 * 0.5, (float)(*((float *)&v26 + 1) * 0.5) + 42.0);
v31 = nullptr;
v32 = 0;
v33 = nullptr;
std::string::__init((__int64 *)&v31, "Group ID 1:", 0xBu);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v29, -80.0, 80.0);
cocos2d::CCPoint::operator+(&v30, v27);
IDNameInput::create(this, this + 68, 1, 51, &v31, &v30, 6, 0, 0.65, a2, 0);
if ( ((unsigned __int8)v31 & 1) != 0 )
operator delete(v33);
v31 = nullptr;
v32 = 0;
v33 = nullptr;
std::string::__init((__int64 *)&v31, "Group ID 2:", 0xBu);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v29, 80.0, 80.0);
cocos2d::CCPoint::operator+(&v30, v27);
LOBYTE(v24) = 0;
IDNameInput::create(this, this + 68, 1, 71, &v31, &v30, 6, 9, 0.65, a2, v24);
if ( ((unsigned __int8)v31 & 1) != 0 )
operator delete(v33);
v31 = nullptr;
v32 = 0;
v33 = nullptr;
std::string::__init((__int64 *)&v31, "VolNear:", 8u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v29, -91.0, -0.0);
cocos2d::CCPoint::operator+(&v30, v28);
SetupTriggerPopup::createValueControlAdvanced(
this,
421,
(char *)&v31,
(__int64)&v30,
0,
1,
6,
0,
0.65,
0.0,
1.0,
a2,
0,
1,
2,
0);
if ( ((unsigned __int8)v31 & 1) != 0 )
operator delete(v33);
v31 = nullptr;
v32 = 0;
v33 = nullptr;
std::string::__init((__int64 *)&v31, "MinDist:", 8u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v29, 91.0, -0.0);
cocos2d::CCPoint::operator+(&v30, v28);
SetupTriggerPopup::createValueControlAdvanced(
this,
424,
(char *)&v31,
(__int64)&v30,
0,
2,
6,
0,
0.65,
0.0,
100.0,
a2,
0,
1,
0,
0);
if ( ((unsigned __int8)v31 & 1) != 0 )
operator delete(v33);
v31 = nullptr;
v32 = 0;
v33 = nullptr;
std::string::__init((__int64 *)&v31, "VolMed:", 7u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v29, -91.0, -30.0);
cocos2d::CCPoint::operator+(&v30, v28);
SetupTriggerPopup::createValueControlAdvanced(
this,
422,
(char *)&v31,
(__int64)&v30,
0,
1,
6,
0,
0.65,
0.0,
1.0,
a2,
0,
1,
2,
0);
if ( ((unsigned __int8)v31 & 1) != 0 )
operator delete(v33);
v31 = nullptr;
v32 = 0;
v33 = nullptr;
std::string::__init((__int64 *)&v31, "Dist2:", 6u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v29, 91.0, -30.0);
cocos2d::CCPoint::operator+(&v30, v28);
SetupTriggerPopup::createValueControlAdvanced(
this,
425,
(char *)&v31,
(__int64)&v30,
0,
2,
6,
0,
0.65,
0.0,
100.0,
a2,
0,
1,
0,
0);
if ( ((unsigned __int8)v31 & 1) != 0 )
operator delete(v33);
v31 = nullptr;
v32 = 0;
v33 = nullptr;
std::string::__init((__int64 *)&v31, "VolFar:", 7u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v29, -91.0, -60.0);
cocos2d::CCPoint::operator+(&v30, v28);
SetupTriggerPopup::createValueControlAdvanced(
this,
423,
(char *)&v31,
(__int64)&v30,
0,
1,
6,
0,
0.65,
0.0,
1.0,
a2,
0,
1,
2,
0);
if ( ((unsigned __int8)v31 & 1) != 0 )
operator delete(v33);
v31 = nullptr;
v32 = 0;
v33 = nullptr;
std::string::__init((__int64 *)&v31, "Dist3:", 6u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v29, 91.0, -60.0);
cocos2d::CCPoint::operator+(&v30, v28);
SetupTriggerPopup::createValueControlAdvanced(
this,
426,
(char *)&v31,
(__int64)&v30,
0,
2,
6,
0,
0.65,
0.0,
100.0,
a2,
0,
1,
0,
0);
if ( ((unsigned __int8)v31 & 1) != 0 )
operator delete(v33);
v31 = nullptr;
v32 = 0;
v33 = nullptr;
std::string::__init((__int64 *)&v31, "P1", 2u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v29, -170.0, -95.0);
cocos2d::CCPoint::operator+(&v30, v28);
SetupTriggerPopup::createToggleValueControl((__int64)this, 0x8Au, &v31, (const cocos2d::CCPoint *)&v30, 0, a2, 0, 1.0);
if ( ((unsigned __int8)v31 & 1) != 0 )
operator delete(v33);
v31 = nullptr;
v32 = 0;
v33 = nullptr;
std::string::__init((__int64 *)&v31, "P2", 2u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v29, -110.0, -95.0);
cocos2d::CCPoint::operator+(&v30, v28);
SetupTriggerPopup::createToggleValueControl((__int64)this, 0xC8u, &v31, (const cocos2d::CCPoint *)&v30, 0, a2, 0, 1.0);
if ( ((unsigned __int8)v31 & 1) != 0 )
operator delete(v33);
v31 = nullptr;
v32 = 0;
v33 = nullptr;
std::string::__init((__int64 *)&v31, "Cam", 3u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v29, -50.0, -95.0);
cocos2d::CCPoint::operator+(&v30, v28);
SetupTriggerPopup::createToggleValueControl(
(__int64)this,
0x1ACu,
&v31,
(const cocos2d::CCPoint *)&v30,
0,
a2,
0,
1.0);
v5 = (cocos2d::CCArray *)(unsigned __int8)v31;
if ( ((unsigned __int8)v31 & 1) != 0 )
operator delete(v33);
v6 = (cocos2d::CCObject *)cocos2d::CCArray::create(v5);
*(this + 127) = v6;
v7 = 0;
cocos2d::CCObject::retain(v6);
v25 = (int)(*((float (__fastcall **)(cocos2d::CCArray **, __int64))*this + 183))(this, 458);
PageContainer = (cocos2d::CCArray *)SetupTriggerPopup::getPageContainer(this, a2);
while ( 2 )
{
v31 = nullptr;
v32 = 0;
v33 = nullptr;
switch ( v7 )
{
case 1:
std::string::assign((__int64 *)&v31, "edit_areaModeBtn01_001.png");
goto LABEL_26;
case 2:
std::string::assign((__int64 *)&v31, "edit_areaModeBtn03_001.png");
v9 = 180.0;
goto LABEL_27;
case 3:
std::string::assign((__int64 *)&v31, "edit_areaModeBtn03_001.png");
goto LABEL_26;
case 4:
std::string::assign((__int64 *)&v31, "edit_areaModeBtn01_001.png");
v9 = 90.0;
goto LABEL_27;
case 5:
std::string::assign((__int64 *)&v31, "edit_areaModeBtn03_001.png");
v9 = 90.0;
goto LABEL_27;
case 6:
std::string::assign((__int64 *)&v31, "edit_areaModeBtn03_001.png");
v9 = -90.0;
goto LABEL_27;
default:
std::string::assign((__int64 *)&v31, "edit_areaModeBtn04_001.png");
LABEL_26:
v9 = 0.0;
LABEL_27:
v10 = (cocos2d::CCSprite *)((char *)&v31 + 1);
if ( ((unsigned __int8)v31 & 1) != 0 )
v10 = (cocos2d::CCSprite *)v33;
v11 = (ButtonSprite *)cocos2d::CCSprite::createWithSpriteFrameName(v10, (const char *)(unsigned __int8)v31);
(*(void (__fastcall **)(ButtonSprite *, float))(*(_QWORD *)v11 + 360LL))(v11, v9);
if ( v25 == v7 )
v12 = "GJ_button_02.png";
else
v12 = "GJ_button_04.png";
v13 = ButtonSprite::create(
v11,
(cocos2d::CCSprite *)&qword_20,
0,
(char)&dword_0 + 1,
32.0,
1.0,
(cocos2d::CCSprite *)v12,
(const char *)&dword_0 + 1,
0.0);
v14 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create(
v13,
0,
(__int64)this,
(__int64)SetupAudioTriggerPopup::onProxMode,
0);
(*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v14 + 72LL))(v14, (unsigned int)v7);
cocos2d::CCArray::addObject(PageContainer, v14);
cocos2d::CCArray::addObject(*(this + 127), v14);
(*(void (__fastcall **)(ButtonSprite *, float))(*(_QWORD *)v11 + 160LL))(v11, 1.8);
v15 = *(void (__fastcall **)(ButtonSprite *, __int64 *))(*(_QWORD *)v11 + 184LL);
v16 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v14 + 328LL))(v14);
v17 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v14 + 328LL))(v14);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v30, v16 * 0.5, *(float *)(v17 + 4) * 0.5);
v15(v11, &v30);
(*(void (__fastcall **)(cocos2d::CCObject *, float))(*(_QWORD *)v14 + 160LL))(v14, 0.6);
*((_DWORD *)v14 + 101) = 1058642330;
(*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(*(_QWORD *)*(this + 69) + 456LL))(*(this + 69), v14);
v18 = 0.0;
if ( v7 > 3 )
v18 = -30.0;
v19 = *(this + 69);
v20 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v14 + 184LL);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v29,
(float)((float)(*(float *)&v26 * 0.5) + 60.0) + (float)((float)(v7 & 3) * 30.0),
v18 + (float)((float)(*((float *)&v26 + 1) * 0.5) + -54.0));
cocos2d::CCNode::convertToNodeSpace(&v30, v19, (const cocos2d::CCPoint *)v29);
v20(v14, &v30);
if ( ((unsigned __int8)v31 & 1) != 0 )
operator delete(v33);
if ( ++v7 != 7 )
continue;
v21 = *((void (__fastcall **)(cocos2d::CCArray **, __int64, bool))*this + 169);
v22 = (*((float (__fastcall **)(cocos2d::CCArray **, __int64))*this + 183))(this, 428);
v21(this, 428, v22 != 0.0);
SetupAudioTriggerPopup::updateSpecialGroup((SetupAudioTriggerPopup *)this);
return _stack_chk_guard;
}
}
}