//
// EditButtonBar::goToPage from 0x1004a39dc to 0x1004a3a20 (68 bytes)
//
// 6 xrefs:
// > EditorUI::setupCreateMenu @ 0x1001842fc
// > EditorUI::setupCreateMenu @ 0x100184338
// > EditorUI::updateCreateMenu @ 0x100474758
// > EditButtonBar::onLeft @ 0x1004a378c
// > EditButtonBar::onRight @ 0x1004a37d0
// > EditButtonBar::onDotClicked @ 0x1004a3860
//
// 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 11:06:03 +0000
//
__int64 __fastcall EditButtonBar::goToPage(__int64 a1, int a2)
{
BoomScrollLayer::getTotalPages(*(_QWORD *)(a1 + 344));
BoomScrollLayer::instantMoveToPage(*(_QWORD *)(a1 + 344), a2 - 1);
BoomScrollLayer::instantMoveToPage(*(_QWORD *)(a1 + 344), a2);
return EditButtonBar::updateDotState(a1);
}