//
// EditButtonBar::updateDotState from 0x861150 to 0x861308 (440 bytes)
//
// 3 xrefs:
// > EditButtonBar::goToPage @ 0x861348
// > EditButtonBar::loadFromItems @ 0x861d64
// > ??> @ 0xa0f78
//
// 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::updateDotState(EditButtonBar *this)
{
__int64 v2; // x0
int RelativePageForNum; // w25
__int64 *v4; // x20
__int64 v5; // x24
unsigned __int64 v6; // x24
__int64 i; // x19
__int64 v8; // x21
void (__fastcall *v9)(__int64, char *); // x2
char v11; // [xsp+60h] [xbp+60h] BYREF
char v12; // [xsp+61h] [xbp+61h]
char v13; // [xsp+62h] [xbp+62h]
if ( *((_QWORD *)this + 45) )
{
v2 = *((_QWORD *)this + 43);
if ( v2 )
{
RelativePageForNum = BoomScrollLayer::getRelativePageForNum((cocos2d::CCArray **)v2, *(_DWORD *)(v2 + 588));
if ( (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 45) + 488LL))(*((_QWORD *)this + 45)) )
{
if ( **(_DWORD **)((*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 45) + 488LL))(*((_QWORD *)this + 45))
+ 56) )
{
v4 = *(__int64 **)(*(_QWORD *)((*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 45) + 488LL))(*((_QWORD *)this + 45))
+ 56)
+ 16LL);
v5 = *(_QWORD *)(*(_QWORD *)((*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 45) + 488LL))(*((_QWORD *)this + 45))
+ 56)
+ 16LL);
v6 = v5
+ 8LL
* **(unsigned int **)((*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 45) + 488LL))(*((_QWORD *)this + 45))
+ 56)
- 8;
if ( (unsigned __int64)v4 <= v6 )
{
for ( i = *v4; *v4; i = *v4 )
{
v8 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)i + 1072LL))(i);
if ( RelativePageForNum == (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)i + 64LL))(i) )
{
v9 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v8 + 960LL);
v11 = -1;
v12 = -1;
v13 = -1;
}
else
{
v9 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v8 + 960LL);
v11 = -106;
v12 = -106;
v13 = -106;
}
v9(v8, &v11);
if ( v6 < (unsigned __int64)++v4 )
break;
}
}
}
}
}
}
return _stack_chk_guard;
}