//
// EditButtonBar::updateDotState from 0x4ddd34 to 0x4dde2e (250 bytes)
//
// 2 xrefs:
// > EditButtonBar::goToPage @ 0x4dde5c
// > EditButtonBar::loadFromItems @ 0x4de60e
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:50:58 +0000
//
int __fastcall EditButtonBar::updateDotState(int this)
{
int v1; // r4
int RelativePageForNum; // r8
int *v3; // r5
int v4; // r7
unsigned int v5; // r7
int v6; // r4
int v7; // t1
int v8; // r0
int (__fastcall *v9)(int, char *); // r2
int v10; // [sp+4h] [bp-10h]
char v11; // [sp+8h] [bp-Ch] BYREF
char v12; // [sp+9h] [bp-Bh]
char v13; // [sp+Ah] [bp-Ah]
v1 = this;
if ( *(_DWORD *)(this + 292) )
{
this = *(_DWORD *)(this + 284);
if ( this )
{
RelativePageForNum = BoomScrollLayer::getRelativePageForNum((cocos2d::CCArray **)this, *(_DWORD *)(this + 460));
this = (*(int (__fastcall **)(_DWORD))(**(_DWORD **)(v1 + 292) + 244))(*(_DWORD *)(v1 + 292));
if ( this )
{
this = (*(int (__fastcall **)(_DWORD))(**(_DWORD **)(v1 + 292) + 244))(*(_DWORD *)(v1 + 292));
if ( **(_DWORD **)(this + 52) )
{
v3 = *(int **)(*(_DWORD *)((*(int (__fastcall **)(_DWORD))(**(_DWORD **)(v1 + 292) + 244))(*(_DWORD *)(v1 + 292))
+ 52)
+ 12);
v4 = *(_DWORD *)(*(_DWORD *)((*(int (__fastcall **)(_DWORD))(**(_DWORD **)(v1 + 292) + 244))(*(_DWORD *)(v1 + 292))
+ 52)
+ 12);
this = (*(int (__fastcall **)(_DWORD))(**(_DWORD **)(v1 + 292) + 244))(*(_DWORD *)(v1 + 292));
v5 = v4 + 4 * (**(_DWORD **)(this + 52) + 0x3FFFFFFF);
while ( (unsigned int)v3 <= v5 )
{
v7 = *v3++;
v6 = v7;
if ( !v7 )
break;
v10 = (*(int (__fastcall **)(int))(*(_DWORD *)v6 + 536))(v6);
v8 = (*(int (__fastcall **)(int))(*(_DWORD *)v6 + 32))(v6);
v9 = *(int (__fastcall **)(int, char *))(*(_DWORD *)v10 + 480);
if ( v8 == RelativePageForNum )
{
v11 = -1;
v12 = -1;
v13 = -1;
}
else
{
v11 = -106;
v12 = -106;
v13 = -106;
}
this = v9(v10, &v11);
}
}
}
}
}
return this;
}