//
// BoomScrollLayer::updatePages from 0x10038e6f0 to 0x10038e808 (280 bytes)
//
// 5 xrefs:
// > BoomScrollLayer::init @ 0x10038e479
// > BoomScrollLayer::addPage_1 @ 0x10039011a
// > BoomScrollLayer::addPage @ 0x10039018e
// > BoomScrollLayer::removePage @ 0x1003901e5
// > BoomScrollLayer::removePageWithNumber @ 0x1003902a3
//
// 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 12:29:13 +0000
//
__int64 __fastcall BoomScrollLayer::updatePages(__int64 a1)
{
__int64 result; // rax
unsigned int v2; // r14d
__int64 v3; // r12
__int64 v4; // rax
float *v5; // rax
float v6[2]; // [rsp+4h] [rbp-2Ch] BYREF
float v7; // [rsp+Ch] [rbp-24h]
result = sub_1007FEF90(*(_QWORD *)(a1 + 480));
if ( (_DWORD)result )
{
v2 = 0;
do
{
v3 = sub_1007FEFE0(*(_QWORD *)(a1 + 480), v2);
sub_100278250(v6, 0.0, 0.0);
(*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v3 + 296LL))(v3, v6);
v4 = cocos2d::CCDirector::sharedDirector(v3, v6);
cocos2d::CCDirector::getWinSize(v6, v4);
(*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v3 + 320LL))(v3, v6);
v7 = (float)(int)v2;
v5 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 328LL))(a1);
sub_100278250(v6, (float)(*v5 - *(float *)(a1 + 592)) * v7, 0.0);
(*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v3 + 184LL))(v3, v6);
if ( !(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 512LL))(v3) )
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 504) + 456LL))(*(_QWORD *)(a1 + 504), v3);
++v2;
result = sub_1007FEF90(*(_QWORD *)(a1 + 480));
}
while ( v2 < (unsigned int)result );
}
return result;
}