//
// ListButtonBar::goToPage from 0x14006b3b0 to 0x14006b436 (134 bytes)
//
// 3 xrefs:
// > ListButtonBar::onRight @ 0x14006b44f
// > ListButtonBar::onLeft @ 0x14006b46f
// > ??> @ 0x1406c5fc4
//
// 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 ListButtonBar::goToPage(ListButtonBar *a1, int a2)
{
BoomScrollLayer *m_scrollLayer; // rcx
cocos2d::CCArray *m_dynamicObjects; // rcx
BoomScrollLayer *v6; // rcx
ListButtonBarDelegate *m_delegate; // rcx
m_scrollLayer = a1->m_scrollLayer;
if ( m_scrollLayer->m_dynamic )
m_dynamicObjects = m_scrollLayer->m_dynamicObjects;
else
m_dynamicObjects = m_scrollLayer->m_pages;
cocos2d::CCArray::count(m_dynamicObjects);
v6 = a1->m_scrollLayer;
if ( a1->m_useMoveAnimation )
{
BoomScrollLayer::moveToPage(v6, a2);
}
else
{
BoomScrollLayer::instantMoveToPage(v6, a2 - 1);
BoomScrollLayer::instantMoveToPage(a1->m_scrollLayer, a2);
}
m_delegate = a1->m_delegate;
if ( m_delegate )
m_delegate->listButtonBarSwitchedPage(m_delegate, a1, a2);
}