//
// EditorSoundBrowserLayer::onNextPage from 0x14018fe70 to 0x14018fed4 (100 bytes)
//
// 2 xrefs:
// > EditorSoundBrowserLayer::init @ 0x14018e6d6
// > ??> @ 0x14091925c
//
// 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 11:27:42 +0000
//
void __fastcall EditorSoundBrowserLayer::onNextPage(__int64 a1)
{
cocos2d::CCArray *v2; // rcx
if ( *(_DWORD *)(a1 + 1032) < 2u )
{
if ( *(_DWORD *)(a1 + 1096) <= 10 * (*(_DWORD *)(a1 + 1036) + 1) )
return;
goto LABEL_6;
}
v2 = *(cocos2d::CCArray **)(a1 + 1088);
if ( !v2 || (int)cocos2d::CCArray::count(v2) >= 10 )
{
LABEL_6:
++*(_DWORD *)(a1 + 1036);
EditorSoundBrowserLayer::loadCurrentPage(a1, 0, 0);
}
}