//
// SetupTriggerPopup::goToPage from 0x10012e954 to 0x10012eaf8 (420 bytes)
//
// 19 xrefs:
// > SetupAreaMoveTriggerPopup::init @ 0x100034b40
// > SetupAreaTransformTriggerPopup::init @ 0x100036a74
// > SetupAreaRotateTriggerPopup::init @ 0x100037174
// > SetupAreaFadeTriggerPopup::init @ 0x10003783c
// > SetupAreaTintTriggerPopup::init @ 0x100038108
// > SetupAreaTriggerPopup::init @ 0x100038b2c
// > SetupAdvFollowPopup::init @ 0x1000624b4
// > SetupAdvFollowPopup::updateMode @ 0x100062f5c
// > SetupSpawnPopup::init @ 0x1000f839c
// > SetupTriggerPopup::onPage @ 0x10012e8d8
// > SetupTriggerPopup::hideAll @ 0x10012eb5c
// > SetupSFXPopup::init @ 0x100180704
// > SetupSFXEditPopup::init @ 0x10018196c
// > SetupKeyframeAnimPopup::init @ 0x1001b4474
// > SetupSongTriggerPopup::init @ 0x1001c30d0
// > SetupSongTriggerPopup::updateApplyPrepare @ 0x1001c3450
// > SetupRotateCommandPopup::init @ 0x1004069d4
// > SelectEventLayer::init @ 0x10040863c
// > SetupOptionsTriggerPopup::init @ 0x100413b10
//
// 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 __fastcall SetupTriggerPopup::goToPage(SetupTriggerPopup *a1, int a2, bool a3)
{
_BOOL4 v3; // w20
__int64 v6; // x22
__int64 v7; // x0
__int64 v8; // x23
_BOOL8 v9; // x24
__int64 v10; // x25
unsigned int *v11; // x26
cocos2d::CCDictionary *m_inputNodes; // x27
int v13; // w0
cocos2d::CCObject *v14; // x0
cocos2d::CCObject *v15; // x26
__int64 v16; // x0
CCMenuItemSpriteExtra *m_prevButton; // x0
CCMenuItemSpriteExtra *m_nextButton; // x0
v3 = a3;
if ( (unsigned int)sub_10024A36C(a1->m_pageContainers) && (unsigned int)sub_10024A36C(a1->m_pageContainers) >= a2 )
{
a1->m_page = a2;
a1->m_hideAll = v3;
if ( (unsigned int)sub_10024A36C(a1->m_pageContainers) )
{
v6 = 0;
do
{
v7 = sub_10024A388(a1->m_pageContainers, v6);
v8 = v7;
v9 = (_DWORD)v6 == a2 && !v3;
if ( (unsigned int)sub_10024A36C(v7) )
{
v10 = 0;
do
{
v11 = (unsigned int *)sub_10024A388(v8, v10);
if ( !cocos2d::CCDictionary::objectForKey(a1->m_disabledEasingButtons, v11[2]) )
(*(void (__fastcall **)(unsigned int *, _BOOL8))(*(_QWORD *)v11 + 328LL))(v11, v9);
m_inputNodes = a1->m_inputNodes;
v13 = (*(__int64 (__fastcall **)(unsigned int *))(*(_QWORD *)v11 + 64LL))(v11);
v14 = cocos2d::CCDictionary::objectForKey(m_inputNodes, v13);
if ( v14 )
{
v15 = v14;
v16 = ((__int64 (__fastcall *)(cocos2d::CCObject *))v14->__vftable[4].~CCObject_0)(v14);
((void (__fastcall *)(cocos2d::CCObject *, __int64))v15->__vftable[12].isEqual)(v15, v16);
}
v10 = (unsigned int)(v10 + 1);
}
while ( (unsigned int)v10 < (unsigned int)sub_10024A36C(v8) );
}
v6 = (unsigned int)(v6 + 1);
}
while ( (unsigned int)v6 < (unsigned int)sub_10024A36C(a1->m_pageContainers) );
}
m_prevButton = a1->m_prevButton;
if ( m_prevButton )
((void (__fastcall *)(CCMenuItemSpriteExtra *, bool))m_prevButton->setVisible)(m_prevButton, !v3);
m_nextButton = a1->m_nextButton;
if ( m_nextButton )
((void (__fastcall *)(CCMenuItemSpriteExtra *, bool))m_nextButton->setVisible)(m_nextButton, !v3);
SetupTriggerPopup::refreshGroupVisibility(a1);
((void (__fastcall *)(SetupTriggerPopup *))a1->pageChanged)(a1);
}
}