//
// ListButtonBar::goToPage from 0x3e6a56 to 0x3e6a9c (70 bytes)
//
// 3 xrefs:
// > ListButtonBar::onRight @ 0x3e6aa6
// > ListButtonBar::onLeft @ 0x3e6ab4
// > GJShopLayer::init @ 0x613778
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:47:05 +0000
//
int (__fastcall ***__fastcall ListButtonBar::goToPage(
cocos2d::CCArray ***this,
cocos2d::CCArray *a2))(_DWORD, cocos2d::CCArray ***, cocos2d::CCArray *)
{
cocos2d::CCArray **v4; // r0
int (__fastcall ***result)(_DWORD, cocos2d::CCArray ***, cocos2d::CCArray *); // r0
BoomScrollLayer::getTotalPages(*(this + 66));
v4 = *(this + 66);
if ( *((_BYTE *)this + 276) )
{
BoomScrollLayer::moveToPage(v4, a2);
}
else
{
BoomScrollLayer::instantMoveToPage((signed int)v4, (int)a2 - 1);
BoomScrollLayer::instantMoveToPage((signed int)*(this + 66), (int)a2);
}
result = (int (__fastcall ***)(_DWORD, cocos2d::CCArray ***, cocos2d::CCArray *))*(this + 68);
if ( result )
return (int (__fastcall ***)(_DWORD, cocos2d::CCArray ***, cocos2d::CCArray *))(**result)(result, this, a2);
return result;
}