//
// EditButtonBar::onDotClicked from 0x1004a37d4 to 0x1004a3864 (144 bytes)
//
// 1 xrefs:
// > EditButtonBar::loadFromItems @ 0x1004a354c
//
// 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::onDotClicked(__int64 a1, __int64 a2)
{
int v4; // w21
__int64 result; // x0
__n128 v6; // q0
__int64 v7; // x0
__int64 v8; // x1
v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
result = BoomScrollLayer::getRelativePageForNum(*(_QWORD *)(a1 + 344), *(_DWORD *)(*(_QWORD *)(a1 + 344) + 588LL));
if ( v4 != (_DWORD)result )
{
if ( *(_BYTE *)(a1 + 328) == 1 )
{
v7 = EditorSFXManager::sharedState(v6);
EditorSFXManager::playAction_1(v7, 278);
}
v8 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
return EditButtonBar::goToPage(a1, v8);
}
return result;
}