//
// BoomScrollLayer::getPage from 0x6894d8 to 0x689550 (120 bytes)
//
// 13 xrefs:
// > BoomScrollLayer::repositionPagesLooped @ 0x689e0c
// > BoomScrollLayer::repositionPagesLooped @ 0x689e44
// > BoomScrollLayer::repositionPagesLooped @ 0x689eb8
// > BoomScrollLayer::repositionPagesLooped @ 0x689ec8
// > BoomScrollLayer::repositionPagesLooped @ 0x689ed8
// > BoomScrollLayer::repositionPagesLooped @ 0x689f5c
// > BoomScrollLayer::repositionPagesLooped @ 0x689f70
// > BoomScrollLayer::repositionPagesLooped @ 0x689f84
// > BoomScrollLayer::repositionPagesLooped @ 0x68a014
// > LevelSelectLayer::onDeathTracker @ 0x8c6550
// > LevelSelectLayer::onPlay @ 0x8c84a8
// > LevelSelectLayer::onInfo @ 0x8c8ae4
// > ??> @ 0xb73a0
//
// 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::getPage(BoomScrollLayer *this, unsigned int a2)
{
signed int v3; // w19
int v4; // w0
cocos2d::CCArray *v5; // x0
v3 = a2;
if ( !*((_BYTE *)this + 456) )
{
v5 = *((cocos2d::CCArray **)this + 60);
return cocos2d::CCArray::objectAtIndex(v5, a2);
}
v4 = cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 60));
if ( v3 > 0 )
{
v3 %= v4;
LABEL_4:
v5 = *((cocos2d::CCArray **)this + 60);
a2 = v3;
return cocos2d::CCArray::objectAtIndex(v5, a2);
}
if ( !v3 )
goto LABEL_4;
do
v3 += v4;
while ( v3 < 0 );
return cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 60), v3);
}