//
// BoomScrollLayer::getRelativePageForNum from 0x689824 to 0x689868 (68 bytes)
//
// 8 xrefs:
// > BoomScrollLayer::updateDots @ 0x689a08
// > BoomScrollLayer::repositionPagesLooped @ 0x689dbc
// > BoomScrollLayer::repositionPagesLooped @ 0x689dd0
// > BoomScrollLayer::repositionPagesLooped @ 0x689de4
// > ListButtonBar::getPage @ 0x6c8c34
// > EditButtonBar::getPage @ 0x86114c
// > EditButtonBar::updateDotState @ 0x861194
// > ??> @ 0x919d8
//
// 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::getRelativePageForNum(cocos2d::CCArray **this, int a2)
{
int TotalPages; // w0
int v3; // w1
TotalPages = BoomScrollLayer::getTotalPages(this);
v3 = a2;
if ( a2 > 0 )
return (unsigned int)(a2 % TotalPages);
if ( a2 )
{
do
v3 += TotalPages;
while ( v3 < 0 );
}
return (unsigned int)v3;
}