//
// BoomScrollLayer::selectPage from 0x1003a67c0 to 0x1003a686c (172 bytes)
//
// 0 xrefs:
//
// 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)
{
ExtendedLayer *m_extendedLayer; // r15
float *v3; // rax
float v4; // [rsp-34h] [rbp-34h] BYREF
float v5; // [rsp-2Ch] [rbp-2Ch]
if ( a2 >= 0 && (int)sub_100720070(*((_QWORD *)&a1->m_dynamicObjects + 4 * !a1->m_dynamic)) > a2 )
{
m_extendedLayer = a1->m_extendedLayer;
v5 = (float)-a2;
v3 = (float *)((__int64 (__fastcall *)(BoomScrollLayer *))a1->getContentSize)(a1);
sub_10028CBE0(&v4, (float)(*v3 - a1->m_pageOffset) * v5, 0.0);
((void (__fastcall *)(ExtendedLayer *, float *))m_extendedLayer->setPosition)(m_extendedLayer, &v4);
a1->m_slowPage = a1->m_page;
a1->m_page = a2;
}
}