//
// BoomScrollLayer::updatePages from 0x140041170 to 0x14004128a (282 bytes)
//
// 4 xrefs:
// > BoomScrollLayer::init @ 0x140040ddd
// > ??> @ 0x140884ca0
// > ??> @ 0x140884cb0
// > ??> @ 0x14090f4a0
//
// This function is hookable on this platform (idp: pc, 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 11:25:29 +0000
//
unsigned int __fastcall BoomScrollLayer::updatePages(__int64 a1)
{
unsigned int v2; // edi
unsigned int result; // eax
struct cocos2d::CCObject *v4; // r14
__int64 v5; // rbx
__int64 v6; // rax
__int64 v7; // rbx
__int64 v8; // rax
__int64 WinSize; // rax
float v10; // xmm6_4
float *v11; // rax
__int64 v12; // rbx
__int64 v13; // rax
char v14; // [rsp+50h] [rbp+8h] BYREF
char v15; // [rsp+58h] [rbp+10h] BYREF
char v16; // [rsp+60h] [rbp+18h] BYREF
v2 = 0;
result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 480));
if ( result )
{
do
{
v4 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 480), v2);
v5 = *(_QWORD *)v4;
v6 = cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v14, 0.0, 0.0);
(*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(v5 + 288))(v4, v6);
v7 = *(_QWORD *)v4;
v8 = cocos2d::CCDirector::sharedDirector();
WinSize = cocos2d::CCDirector::getWinSize(v8, &v15);
(*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(v7 + 312))(v4, WinSize);
v10 = *(float *)(a1 + 592);
v11 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 320LL))(a1);
v12 = *(_QWORD *)v4;
v13 = cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v16, (float)(*v11 - v10) * (float)(int)v2, 0.0);
(*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(v12 + 184))(v4, v13);
if ( !(*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v4 + 504LL))(v4) )
(*(void (__fastcall **)(_QWORD, struct cocos2d::CCObject *))(**(_QWORD **)(a1 + 504) + 464LL))(
*(_QWORD *)(a1 + 504),
v4);
++v2;
result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 480));
}
while ( v2 < result );
}
return result;
}