//
// BoomScrollLayer::updatePages from 0x689550 to 0x68969c (332 bytes)
//
// 4 xrefs:
// > BoomScrollLayer::addPage @ 0x68a608
// > BoomScrollLayer::removePage @ 0x68a690
// > BoomScrollLayer::init @ 0x68ad20
// > ??> @ 0x80a10
//
// 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::updatePages(cocos2d::CCArray **this)
{
unsigned int i; // w22
cocos2d::CCDirector **v3; // x19
void (__fastcall *v4)(cocos2d::CCDirector **, __int64 *); // x24
void (__fastcall *v5)(cocos2d::CCDirector **, __int64 *); // x24
cocos2d::CCDirector *v6; // x0
void (__fastcall *v7)(cocos2d::CCDirector **, __int64 *); // x24
float *v8; // x0
__int64 v10; // [xsp+40h] [xbp+40h] BYREF
for ( i = 0; i < (unsigned int)cocos2d::CCArray::count(*(this + 60)); ++i )
{
v3 = (cocos2d::CCDirector **)cocos2d::CCArray::objectAtIndex(*(this + 60), i);
v4 = *((void (__fastcall **)(cocos2d::CCDirector **, __int64 *))*v3 + 37);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v10, 0.0, 0.0);
v4(v3, &v10);
v5 = *((void (__fastcall **)(cocos2d::CCDirector **, __int64 *))*v3 + 40);
v6 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(*v3);
cocos2d::CCDirector::getWinSize(&v10, v6);
v5(v3, &v10);
v7 = *((void (__fastcall **)(cocos2d::CCDirector **, __int64 *))*v3 + 23);
v8 = (float *)(*((__int64 (__fastcall **)(cocos2d::CCArray **))*this + 41))(this);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v10, (float)(int)i * (float)(*v8 - *((float *)this + 148)), 0.0);
v7(v3, &v10);
if ( !(*((__int64 (__fastcall **)(cocos2d::CCDirector **))*v3 + 64))(v3) )
(*(void (__fastcall **)(_QWORD, cocos2d::CCDirector **))(*(_QWORD *)*(this + 63) + 456LL))(*(this + 63), v3);
}
return _stack_chk_guard;
}