//
// ListButtonBar::goToPage from 0x1400782e0 to 0x140078366 (134 bytes)
//
// 4 xrefs:
// > ListButtonBar::onRight @ 0x14007837f
// > ListButtonBar::onLeft @ 0x14007839f
// > ??> @ 0x140911c6c
// > ??> @ 0x140911c78
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:25:52 +0000
//
void __fastcall ListButtonBar::goToPage(__int64 a1, unsigned int a2)
{
__int64 v4; // rcx
cocos2d::CCArray *v5; // rcx
__int64 *v6; // rcx
void (__fastcall ***v7)(_QWORD, __int64, _QWORD); // rcx
v4 = *(_QWORD *)(a1 + 320);
if ( *(_BYTE *)(v4 + 456) )
v5 = *(cocos2d::CCArray **)(v4 + 448);
else
v5 = *(cocos2d::CCArray **)(v4 + 480);
cocos2d::CCArray::count(v5);
v6 = *(__int64 **)(a1 + 320);
if ( *(_BYTE *)(a1 + 344) )
{
BoomScrollLayer::moveToPage(v6, a2);
}
else
{
BoomScrollLayer::instantMoveToPage((__int64)v6, a2 - 1);
BoomScrollLayer::instantMoveToPage(*(_QWORD *)(a1 + 320), a2);
}
v7 = *(void (__fastcall ****)(_QWORD, __int64, _QWORD))(a1 + 336);
if ( v7 )
(**v7)(v7, a1, a2);
}