//
// SetupTriggerPopup::goToPage from 0x1002355c0 to 0x100235797 (471 bytes)
//
// 22 xrefs:
// > SetupRotateCommandPopup::init @ 0x100006358
// > SetupKeyframeAnimPopup::init @ 0x1001ff5c0
// > SetupTriggerPopup::onPage @ 0x10023553d
// > SetupTriggerPopup::hideAll @ 0x10023580c
// > SetupSpawnPopup::init @ 0x10028ffb7
// > SetupSongTriggerPopup::init @ 0x1002d3ba7
// > SetupSongTriggerPopup::updateApplyPrepare @ 0x1002d3f08
// > SetupSongTriggerPopup::valueDidChange @ 0x1002d4247
// > SetupAdvFollowPopup::init @ 0x100308cfe
// > SetupAdvFollowPopup::onMode @ 0x10030956c
// > SetupAdvFollowPopup::updateMode @ 0x100309a50
// > SetupAdvFollowPopup::selectPremadeClosed @ 0x100309eaa
// > SetupSFXPopup::init @ 0x1004b9c3d
// > SetupSFXEditPopup::init @ 0x1004bb9d6
// > SetupAreaMoveTriggerPopup::init @ 0x1004d2e86
// > SetupAreaTransformTriggerPopup::init @ 0x1004d5d29
// > SetupAreaRotateTriggerPopup::init @ 0x1004d6b30
// > SetupAreaFadeTriggerPopup::init @ 0x1004d7919
// > SetupAreaTintTriggerPopup::init @ 0x1004d8ab8
// > SetupAreaTriggerPopup::init @ 0x1004d9d63
// > SelectEventLayer::init @ 0x100579522
// > SetupOptionsTriggerPopup::init @ 0x1005e749b
//
// 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)
{
int v4; // r15d
unsigned int v6; // r14d
__int64 v7; // r13
bool v8; // r15
unsigned int v9; // r14d
unsigned int *v10; // r12
cocos2d::CCDictionary *m_inputNodes; // r15
intptr_t v12; // rsi
cocos2d::CCObject *v13; // rax
cocos2d::CCObject *v14; // r12
unsigned __int8 v15; // al
CCMenuItemSpriteExtra *m_prevButton; // rdi
CCMenuItemSpriteExtra *m_nextButton; // rdi
unsigned int v18; // [rsp+4h] [rbp-3Ch]
unsigned int v19; // [rsp+8h] [rbp-38h]
bool v21; // [rsp+10h] [rbp-30h]
v4 = a2;
if ( (unsigned int)sub_100720070(a1->m_pageContainers) && (unsigned int)sub_100720070(a1->m_pageContainers) >= a2 )
{
a1->m_page = a2;
v21 = a3;
a1->m_hideAll = a3;
if ( (unsigned int)sub_100720070(a1->m_pageContainers) )
{
v6 = 0;
do
{
v7 = sub_1007200C0(a1->m_pageContainers, v6);
v19 = v6;
v8 = v6 == v4;
if ( (unsigned int)sub_100720070(v7) )
{
v9 = 0;
v18 = !v21 && v8;
do
{
v10 = (unsigned int *)sub_1007200C0(v7, v9);
if ( !cocos2d::CCDictionary::objectForKey(a1->m_disabledEasingButtons, v10[2]) )
(*(void (__fastcall **)(unsigned int *, _QWORD))(*(_QWORD *)v10 + 328LL))(v10, v18);
m_inputNodes = a1->m_inputNodes;
v12 = (*(int (__fastcall **)(unsigned int *))(*(_QWORD *)v10 + 64LL))(v10);
v13 = cocos2d::CCDictionary::objectForKey(m_inputNodes, v12);
if ( v13 )
{
v14 = v13;
v15 = ((__int64 (__fastcall *)(cocos2d::CCObject *))v13->__vftable[4].~CCObject_0)(v13);
((void (__fastcall *)(cocos2d::CCObject *, _QWORD))v14->__vftable[12].isEqual)(v14, v15);
}
++v9;
}
while ( v9 < (unsigned int)sub_100720070(v7) );
}
v6 = v19 + 1;
v4 = a2;
}
while ( v19 + 1 < (unsigned int)sub_100720070(a1->m_pageContainers) );
}
m_prevButton = a1->m_prevButton;
if ( m_prevButton )
((void (__fastcall *)(CCMenuItemSpriteExtra *, bool))m_prevButton->setVisible)(m_prevButton, !v21);
m_nextButton = a1->m_nextButton;
if ( m_nextButton )
((void (__fastcall *)(CCMenuItemSpriteExtra *, bool))m_nextButton->setVisible)(m_nextButton, !v21);
SetupTriggerPopup::refreshGroupVisibility(a1);
((void (__fastcall *)(SetupTriggerPopup *))a1->pageChanged)(a1);
}
}