//
// EditButtonBar::onDotClicked from 0x1006b4ac0 to 0x1006b4b62 (162 bytes)
//
// 1 xrefs:
// > EditButtonBar::loadFromItems @ 0x1006b47ef
//
// 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 12:35:26 +0000
//
unsigned __int64 __fastcall EditButtonBar::onDotClicked(__int64 a1, __int64 a2)
{
int v3; // r15d
__int64 v4; // rdi
unsigned __int64 result; // rax
__int64 v6; // rax
int v7; // r14d
v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
v4 = *(_QWORD *)(a1 + 344);
result = BoomScrollLayer::getRelativePageForNum(v4, *(_DWORD *)(v4 + 588));
if ( v3 != (_DWORD)result )
{
if ( *(_BYTE *)(a1 + 328) == 1 )
{
v6 = EditorSFXManager::sharedState(v4);
EditorSFXManager::playAction_1(v6, 278);
}
v7 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
BoomScrollLayer::getTotalPages(*(_QWORD *)(a1 + 344));
BoomScrollLayer::instantMoveToPage(*(_QWORD *)(a1 + 344), v7 - 1);
BoomScrollLayer::instantMoveToPage(*(_QWORD *)(a1 + 344), v7);
return EditButtonBar::updateDotState(a1);
}
return result;
}