//
// EditButtonBar::goToPage from 0x140177aa0 to 0x140177b04 (100 bytes)
//
// 6 xrefs:
// > EditButtonBar::onRight @ 0x140177b4b
// > EditButtonBar::onLeft @ 0x140177b8b
// > EditButtonBar::onDotClicked @ 0x140177c1f
// > EditorUI::setupCreateMenu @ 0x1401f0798
// > EditorUI::setupCreateMenu @ 0x1401f07fb
// > ??> @ 0x1409185fc
//
// 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:27:33 +0000
//
__int64 __fastcall EditButtonBar::goToPage(__int64 a1, int a2)
{
__int64 v4; // rcx
cocos2d::CCArray *v5; // rcx
v4 = *(_QWORD *)(a1 + 344);
if ( *(_BYTE *)(v4 + 456) )
v5 = *(cocos2d::CCArray **)(v4 + 448);
else
v5 = *(cocos2d::CCArray **)(v4 + 480);
cocos2d::CCArray::count(v5);
BoomScrollLayer::instantMoveToPage(*(_QWORD *)(a1 + 344), a2 - 1);
BoomScrollLayer::instantMoveToPage(*(_QWORD *)(a1 + 344), a2);
return EditButtonBar::updateDotState(a1);
}