//
// BoomScrollLayer::updateDots from 0x689868 to 0x689a28 (448 bytes)
//
// 5 xrefs:
// > BoomScrollLayer::setPagesIndicatorPosition @ 0x689a50
// > BoomScrollLayer::moveToPageEnded @ 0x689aec
// > ??> @ 0xc8968
// > BoomScrollLayer::init @ 0x68adac
// > ??> @ 0x1545e10
//
// 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:50:32 +0000
//
__int64 __fastcall BoomScrollLayer::updateDots(cocos2d::CCArray **this, float a2)
{
int TotalPages; // w22
float v4; // s10
const cocos2d::CCPoint *v5; // x0
int RelativePageForNum; // w26
unsigned int i; // w19
float v8; // s8
__int64 v9; // x21
void (__fastcall *v10)(__int64, _BYTE *); // x28
__int64 v11; // x2
void (__fastcall *v12)(__int64, _BYTE *); // x2
_BYTE v14[8]; // [xsp+80h] [xbp+80h] BYREF
if ( *(this + 52) )
{
TotalPages = BoomScrollLayer::getTotalPages(this);
v4 = *((float *)this + 144);
v5 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)*(this + 63) + 192LL))(*(this + 63));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, v5);
RelativePageForNum = BoomScrollLayer::pageNumberForPosition(this);
if ( *((_BYTE *)this + 436) )
RelativePageForNum = BoomScrollLayer::getRelativePageForNum(this, RelativePageForNum);
if ( TotalPages > 0 )
{
for ( i = 0; i != TotalPages; ++i )
{
while ( 1 )
{
v8 = *((float *)this + 143);
if ( i < (unsigned int)cocos2d::CCArray::count(*(this + 52)) )
break;
if ( ++i == TotalPages )
return _stack_chk_guard;
}
v9 = cocos2d::CCArray::objectAtIndex(*(this + 52), i);
v10 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v9 + 184LL);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v14,
v8 + (float)((float)((float)(int)i - (float)((float)((float)TotalPages - 1.0) * 0.5)) * 16.0),
v4);
v10(v9, v14);
v11 = *(_QWORD *)v9;
if ( i == RelativePageForNum )
{
(*(void (__fastcall **)(__int64, void *))(v11 + 960))(v9, &unk_111BE10);
}
else
{
v12 = *(void (__fastcall **)(__int64, _BYTE *))(v11 + 960);
memset(v14, 125, 3);
v12(v9, v14);
}
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v9 + 344LL))(v9, *((unsigned __int8 *)this + 569));
}
}
}
return _stack_chk_guard;
}