//
// BoomScrollLayer::getRelativePageForNum from 0x2e1f56 to 0x2e1f7a (36 bytes)
//
// 6 xrefs:
// > BoomScrollLayer::updateDots @ 0x2e1fd6
// > BoomScrollLayer::repositionPagesLooped @ 0x2e22ee
// > BoomScrollLayer::repositionPagesLooped @ 0x2e22fc
// > BoomScrollLayer::repositionPagesLooped @ 0x2e230a
// > ListButtonBar::getPage @ 0x2fd426
// > EditButtonBar::getPage @ 0x3d90ee
//
// 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; // r0
TotalPages = BoomScrollLayer::getTotalPages(a1);
if ( a2 > 0 )
return a2 % TotalPages;
while ( a2 < 0 )
a2 += TotalPages;
return a2;
}