// // BoomScrollLayer::getRelativePageForNum from 0x10012be48 to 0x10012beb0 (104 bytes) // // 5 xrefs: // > BoomScrollLayer::repositionPagesLooped @ 0x10012b4fc // > BoomScrollLayer::repositionPagesLooped @ 0x10012b510 // > BoomScrollLayer::repositionPagesLooped @ 0x10012b524 // > BoomScrollLayer::updateDots @ 0x10012badc // > EditButtonBar::getPage @ 0x100421510 // // 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 __fastcall BoomScrollLayer::getRelativePageForNum(BoomScrollLayer *a1, int a2) { __int64 v3; // x8 unsigned int v4; // w0 int v5; // w9 unsigned int v6; // w9 unsigned int v7; // w10 int v8; // w9 int v9; // w9 v3 = 472; if ( a1->m_dynamic ) v3 = 440; v4 = sub_10024A36C(*(BoomScrollLayer_vtbl **)((char *)&a1->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable + v3)); if ( a2 ) v5 = -1; else v5 = 0; v6 = v5 - a2; if ( v4 <= 1 ) v7 = 1; else v7 = v4; v8 = v6 / v7; if ( a2 ) ++v8; v9 = a2 + v4 * v8; if ( a2 <= 0 ) return v9; else return a2 % (int)v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source