//
// BoomScrollLayer::selectPage from 0x10012c27c to 0x10012c334 (184 bytes)
//
// 2 xrefs:
// > BoomScrollLayer::ccTouchCancelled @ 0x10012c4e0
// > sub_10012C4E4 @ 0x10012c50c
//
// 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
//
void __fastcall BoomScrollLayer::selectPage(BoomScrollLayer *a1, int a2)
{
__int64 v4; // x8
ExtendedLayer *m_extendedLayer; // x21
__n128 v6; // q0
__n128 v7; // q1
int v8; // [xsp+8h] [xbp-38h] BYREF
if ( (a2 & 0x80000000) == 0 )
{
v4 = 472;
if ( a1->m_dynamic )
v4 = 440;
if ( (int)sub_10024A36C(*(BoomScrollLayer_vtbl **)((char *)&a1->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable
+ v4)) > a2 )
{
m_extendedLayer = a1->m_extendedLayer;
v6.n128_f32[0] = (float)(*(float *)((__int64 (__fastcall *)(BoomScrollLayer *))a1->getContentSize)(a1)
- a1->m_pageOffset)
* (float)-a2;
v7.n128_u32[0] = 0;
sub_100022980(v6, v7, &v8);
((void (__fastcall *)(ExtendedLayer *, int *))m_extendedLayer->setPosition)(m_extendedLayer, &v8);
a1->m_slowPage = a1->m_page;
a1->m_page = a2;
}
}
}