//
// BoomScrollLayer::getRelativePageForNum from 0x56d69c to 0x56d6e0 (68 bytes)
//
// 7 xrefs:
// > BoomScrollLayer::updateDots @ 0x56d880
// > BoomScrollLayer::repositionPagesLooped @ 0x56dc34
// > BoomScrollLayer::repositionPagesLooped @ 0x56dc48
// > BoomScrollLayer::repositionPagesLooped @ 0x56dc5c
// > ListButtonBar::getPage @ 0x5a88f4
// > EditButtonBar::getPage @ 0x73ab2c
// > ??> @ 0x6bc28
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
int BoomScrollLayer::getRelativePageForNum(BoomScrollLayer *a1, int a2)
{
int TotalPages; // w0
int v3; // w1
TotalPages = BoomScrollLayer::getTotalPages(a1);
v3 = a2;
if ( a2 > 0 )
return a2 % TotalPages;
if ( a2 )
{
do
v3 += TotalPages;
while ( v3 < 0 );
}
return v3;
}