//
// BoomScrollLayer::updateDots from 0x3c166c to 0x3c1784 (280 bytes)
//
// 2 xrefs:
// > BoomScrollLayer::setPagesIndicatorPosition @ 0x3c17a0
// > BoomScrollLayer::moveToPageEnded @ 0x3c1800
//
// 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:46:31 +0000
//
unsigned int __fastcall BoomScrollLayer::updateDots(unsigned int this, float a2)
{
int v2; // r4
int TotalPages; // r0
float v4; // r10
int v5; // s16
const cocos2d::CCPoint *v6; // r0
unsigned int v7; // r9
signed int i; // r5
float v9; // s20
int *v10; // r6
int v11; // r3
void (__fastcall *v12)(int *, _BYTE *); // r2
void (__fastcall *v13)(int *, _BYTE *); // [sp+4h] [bp-18h]
_BYTE v14[8]; // [sp+Ch] [bp-10h] BYREF
v2 = this;
if ( *(_DWORD *)(this + 320) )
{
TotalPages = BoomScrollLayer::getTotalPages((cocos2d::CCArray **)this);
v4 = *(float *)(v2 + 448);
v5 = TotalPages;
v6 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(_DWORD))(**(_DWORD **)(v2 + 384) + 96))(*(_DWORD *)(v2 + 384));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, v6);
this = BoomScrollLayer::pageNumberForPosition(v2);
v7 = this;
if ( *(_BYTE *)(v2 + 336) )
{
this = BoomScrollLayer::getRelativePageForNum((cocos2d::CCArray **)v2, this);
v7 = this;
}
for ( i = 0; i < v5; ++i )
{
v9 = *(float *)(v2 + 444);
this = cocos2d::CCArray::count(*(cocos2d::CCArray **)(v2 + 320));
if ( i < this )
{
v10 = (int *)cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(v2 + 320), i);
v13 = *(void (__fastcall **)(int *, _BYTE *))(*v10 + 92);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v14,
v9 + (float)((float)((float)i - (float)((float)((float)v5 - 1.0) * 0.5)) * 16.0),
v4);
v13(v10, v14);
v11 = *v10;
if ( i == v7 )
{
(*(void (__fastcall **)(int *, void *))(v11 + 480))(v10, &unk_BEAB9C);
}
else
{
v12 = *(void (__fastcall **)(int *, _BYTE *))(v11 + 480);
memset(v14, 125, 3);
v12(v10, v14);
}
this = (*(int (__fastcall **)(int *, _DWORD))(*v10 + 172))(v10, *(unsigned __int8 *)(v2 + 441));
}
}
}
return this;
}