//
// BoomScrollLayer::addPage_1 from 0x1003900c0 to 0x100390137 (119 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_1(__int64 a1, __int64 a2)
{
int v2; // r15d
__int64 v3; // rdx
v2 = sub_1007FEF90(*(_QWORD *)(a1 + 480));
if ( (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 480)) < v2 )
v2 = sub_1007FEF90(*(_QWORD *)(a1 + 480));
v3 = 0;
if ( v2 > 0 )
v3 = (unsigned int)v2;
sub_1007FF110(*(_QWORD *)(a1 + 480), a2, v3);
BoomScrollLayer::updatePages(a1);
BoomScrollLayer::moveToPage(a1, *(_DWORD *)(a1 + 588));
}