//
// EditButtonBar::onDotClicked from 0x8613cc to 0x861458 (140 bytes)
//
// 3 xrefs:
// > ??> @ 0x56020
// > EditButtonBar::loadFromItems @ 0x861cb4
// > ??> @ 0x1541ed0
//
// 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 12:55:36 +0000
//
__int64 __fastcall EditButtonBar::onDotClicked(cocos2d::CCArray ***this, cocos2d::CCObject *a2)
{
int v4; // w21
__int64 result; // x0
int v6; // w0
EditorSFXManager *v7; // x0
v4 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2);
result = EditButtonBar::getPage(this);
if ( v4 != (_DWORD)result )
{
if ( *((_BYTE *)this + 328) )
{
v7 = (EditorSFXManager *)EditorSFXManager::sharedState((EditorSFXManager *)*((unsigned __int8 *)this + 328));
EditorSFXManager::playAction(v7, 278);
}
v6 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2);
return EditButtonBar::goToPage(this, v6);
}
return result;
}