//
// ListButtonBar::goToPage from 0x6c8c38 to 0x6c8cac (116 bytes)
//
// 4 xrefs:
// > ListButtonBar::onRight @ 0x6c8cb8
// > ListButtonBar::onLeft @ 0x6c8cc8
// > GJShopLayer::init @ 0xa7febc
// > ??> @ 0xb18e0
//
// This function is hookable on this platform (idp: arm, 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 12:51:22 +0000
//
__int64 (__fastcall ***__fastcall ListButtonBar::goToPage(
cocos2d::CCArray ***this,
unsigned int a2))(_QWORD, cocos2d::CCArray ***, _QWORD)
{
__int64 (__fastcall ***result)(_QWORD, cocos2d::CCArray ***, _QWORD); // x0
BoomScrollLayer::getTotalPages(*(this + 40));
if ( *((_BYTE *)this + 344) )
{
BoomScrollLayer::moveToPage((BoomScrollLayer *)*(this + 40), a2);
}
else
{
BoomScrollLayer::instantMoveToPage(*(this + 40), a2 - 1);
BoomScrollLayer::instantMoveToPage(*(this + 40), a2);
}
result = (__int64 (__fastcall ***)(_QWORD, cocos2d::CCArray ***, _QWORD))*(this + 42);
if ( result )
return (__int64 (__fastcall ***)(_QWORD, cocos2d::CCArray ***, _QWORD))(**result)(result, this, a2);
return result;
}