//
// ListButtonBar::goToPage from 0x5a88f8 to 0x5a896c (116 bytes)
//
// 4 xrefs:
// > ListButtonBar::onRight @ 0x5a8978
// > ListButtonBar::onLeft @ 0x5a8988
// > GJShopLayer::init @ 0x92ee1c
// > ??> @ 0x85c68
//
// 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)
{
ListButtonBarDelegate *m_delegate; // x0
BoomScrollLayer::getTotalPages(a1->m_scrollLayer);
if ( a1->m_useMoveAnimation )
{
BoomScrollLayer::moveToPage(a1->m_scrollLayer, a2);
}
else
{
BoomScrollLayer::instantMoveToPage(a1->m_scrollLayer, a2 - 1);
BoomScrollLayer::instantMoveToPage(a1->m_scrollLayer, a2);
}
m_delegate = a1->m_delegate;
if ( m_delegate )
m_delegate->listButtonBarSwitchedPage(m_delegate, a1, a2);
}