//
// NewsPopup::onNextPage from 0xb8c2b8 to 0xb8c2ec (52 bytes)
//
// 4 xrefs:
// > NewsPopup::keyDown @ 0xb8c304
// > ??> @ 0x4f0a8
// > NewsPopup::init @ 0xb8d914
// > ??> @ 0x1541a68
//
// This function is hookable on this platform (idp: arm, 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 13:02:34 +0000
//
__int64 __fastcall NewsPopup::onNextPage(__int64 this, cocos2d::CCObject *a2)
{
signed int v2; // w1
v2 = *(_DWORD *)(this + 704);
if ( v2 < (int)(-858993459 * ((__int64)(*(_QWORD *)(this + 688) - *(_QWORD *)(this + 680)) >> 4) - 1) )
return NewsPopup::rebuildPage((NewsPopup *)this, v2 + 1);
return this;
}