//
// BoomScrollLayer::selectPage from 0x10038ffb0 to 0x10039005c (172 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:29:13 +0000
//
void __fastcall BoomScrollLayer::selectPage(__int64 a1, int a2)
{
__int64 v2; // r15
float *v3; // rax
float v4; // [rsp-34h] [rbp-34h] BYREF
float v5; // [rsp-2Ch] [rbp-2Ch]
if ( a2 >= 0 && (int)sub_1007FEF90(*(_QWORD *)(a1 + 32 * (*(unsigned __int8 *)(a1 + 456) ^ 1u) + 448)) > a2 )
{
v2 = *(_QWORD *)(a1 + 504);
v5 = (float)-a2;
v3 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 328LL))(a1);
sub_100278250(&v4, (float)(*v3 - *(float *)(a1 + 592)) * v5, 0.0);
(*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v2 + 184LL))(v2, &v4);
*(_DWORD *)(a1 + 424) = *(_DWORD *)(a1 + 588);
*(_DWORD *)(a1 + 588) = a2;
}
}