//
// BoomScrollLayer::addPage from 0x100390140 to 0x1003901ab (107 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::addPage(__int64 a1, __int64 a2, unsigned int a3)
{
int v3; // r15d
__int64 v4; // rdx
v3 = a3;
if ( (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 480)) < a3 )
v3 = sub_1007FEF90(*(_QWORD *)(a1 + 480));
v4 = 0;
if ( v3 > 0 )
v4 = (unsigned int)v3;
sub_1007FF110(*(_QWORD *)(a1 + 480), a2, v4);
BoomScrollLayer::updatePages(a1);
BoomScrollLayer::moveToPage(a1, *(_DWORD *)(a1 + 588));
}