//
// ListButtonBar::goToPage from 0x1003f0490 to 0x1003f0504 (116 bytes)
//
// 1 xrefs:
// > GJShopLayer::init @ 0x100324399
//
// 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 ListButtonBar::goToPage(ListButtonBar *a1, int a2)
{
BoomScrollLayer *m_scrollLayer; // rdi
ListButtonBarDelegate *m_delegate; // rdi
BoomScrollLayer::getTotalPages(a1->m_scrollLayer);
m_scrollLayer = a1->m_scrollLayer;
if ( a1->m_useMoveAnimation )
{
BoomScrollLayer::moveToPage(m_scrollLayer, a2);
m_delegate = a1->m_delegate;
if ( !m_delegate )
return;
goto LABEL_3;
}
BoomScrollLayer::instantMoveToPage(m_scrollLayer, a2 - 1);
BoomScrollLayer::instantMoveToPage(a1->m_scrollLayer, a2);
m_delegate = a1->m_delegate;
if ( m_delegate )
LABEL_3:
((void (__fastcall *)(ListButtonBarDelegate *, ListButtonBar *, _QWORD))m_delegate->listButtonBarSwitchedPage)(
m_delegate,
a1,
(unsigned int)a2);
}